Skip to content

Commit

Permalink
Merge branch 'prod'
Browse files Browse the repository at this point in the history
  • Loading branch information
tugcekucukoglu committed Mar 29, 2024
2 parents d5c901a + 15c296d commit dad9f1b
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 8 deletions.
3 changes: 2 additions & 1 deletion assets/menu/menu.json
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,8 @@
"children": [
{
"name": "Prime Icons",
"to": "/icons"
"to": "/icons",
"badge": "UPDATED"
},
{
"name": "Custom Icons",
Expand Down
8 changes: 8 additions & 0 deletions doc/icons/FigmaDoc.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<template>
<DocSectionText v-bind="$attrs">
<p>
PrimeIcons library is now available on <a href="https://www.figma.com/community/file/1354343849355792252/primeicons" target="_blank" rel="noopener noreferrer">Figma Community</a>. By adding them as a library, you can easily use these
icons in your designs.
</p>
</DocSectionText>
</template>
19 changes: 18 additions & 1 deletion doc/icons/ListDoc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,24 @@ export default {
},
computed: {
filteredIcons() {
if (this.filter) return this.icons.filter((icon) => icon.properties.name.indexOf(this.filter.toLowerCase()) > -1);
let sanitizedInput = this.filter?.replace(/[^\w\s]/gi, '').replace(/\s/g, '');
if (this.filter)
return this.icons.filter((icon) => {
return (
icon.icon.tags.some((tag) =>
tag
.replace(/[^\w\s]/gi, '')
.replace(/\s/g, '')
.includes(sanitizedInput.toLowerCase())
) ||
icon.properties.name
.replace(/[^\w\s]/gi, '')
.replace(/\s/g, '')
.toLowerCase()
.includes(sanitizedInput.toLowerCase())
);
});
else return this.icons;
}
}
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"nuxt": "3.3.2",
"prettier": "2.7.1",
"primeflex": "^3.3.1",
"primeicons": "^6.0.1",
"primeicons": "^7.0.0",
"quill": "^1.3.7",
"rollup-plugin-postcss": "^4.0.0",
"rollup-plugin-terser": "^7.0.2",
Expand Down
6 changes: 6 additions & 0 deletions pages/icons/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import BasicDoc from '@/doc/icons/BasicDoc.vue';
import ColorDoc from '@/doc/icons/ColorDoc.vue';
import ConstantsDoc from '@/doc/icons/ConstantsDoc.vue';
import DownloadDoc from '@/doc/icons/DownloadDoc.vue';
import FigmaDoc from '@/doc/icons/FigmaDoc.vue';
import ImportDoc from '@/doc/icons/ImportDoc.vue';
import ListDoc from '@/doc/icons/ListDoc.vue';
import SizeDoc from '@/doc/icons/SizeDoc.vue';
Expand All @@ -45,6 +46,11 @@ export default {
label: 'Import',
component: ImportDoc
},
{
id: 'figma',
label: 'Figma',
component: FigmaDoc
},
{
id: 'basic',
label: 'Basic',
Expand Down
2 changes: 1 addition & 1 deletion public/demo/data/icons.json

Large diffs are not rendered by default.

0 comments on commit dad9f1b

Please sign in to comment.