diff --git a/scripts/utilities/__snapshots__/generate-icon-components.spec.ts.snap b/scripts/utilities/__snapshots__/generate-icon-components.spec.ts.snap index 94a404eb..c70d262f 100644 --- a/scripts/utilities/__snapshots__/generate-icon-components.spec.ts.snap +++ b/scripts/utilities/__snapshots__/generate-icon-components.spec.ts.snap @@ -285,6 +285,8 @@ exports[`generate > \`/src/components/index.ts\` file > has exports that match t "CheckCircleIcon", "CheckSmallIcon", "CheckIcon", + "ChevronDoubleLeftIcon", + "ChevronDoubleRightIcon", "ChevronDownIcon", "ChevronLeftIcon", "ChevronRightIcon", @@ -302,6 +304,7 @@ exports[`generate > \`/src/components/index.ts\` file > has exports that match t "CogIcon", "CollapsePanelIcon", "CollapseIcon", + "ColorsIcon", "ConnectionsIcon", "CopyIcon", "DangerCircleIcon", @@ -366,6 +369,7 @@ exports[`generate > \`/src/components/index.ts\` file > has exports that match t "OrganizationIcon", "OverviewIcon", "PeopleIcon", + "PhoneIcon", "PlugIcon", "PortalIcon", "PresentationIcon", @@ -393,6 +397,7 @@ exports[`generate > \`/src/components/index.ts\` file > has exports that match t "TableColumnsIcon", "TableRowsIcon", "TableIcon", + "TabletIcon", "TasklistIcon", "TeamIcon", "TeammateIcon", @@ -401,6 +406,7 @@ exports[`generate > \`/src/components/index.ts\` file > has exports that match t "TrashIcon", "TrendDownIcon", "TrendUpIcon", + "TvIcon", "UnderlineIcon", "UnfoldMoreIcon", "UploadIcon", diff --git a/scripts/utilities/generate-icon-components.ts b/scripts/utilities/generate-icon-components.ts index 0e6e24ca..be0c5c52 100644 --- a/scripts/utilities/generate-icon-components.ts +++ b/scripts/utilities/generate-icon-components.ts @@ -39,14 +39,21 @@ export default async function generate() { process.exit(0) } - // Check if there are duplicate SVG filenames + // Check if there are duplicate SVG filenames in the "flags" and "multi-color" directories const uniqueFilenames = new Set() for (const filepath of svgFiles) { + const parentDir = path.basename(path.dirname(filepath)) + // Do not need to check for duplicates in the "flags" directory since they are prefixed with `Flag*` + if (parentDir === 'flags') { + continue + } + const name = basename(filepath) if (!uniqueFilenames.has(name)) { uniqueFilenames.add(name) } else { - console.log(pc.red(`Duplicate SVG filename '${name}' found. All SVG source files must have a unique name.`)) + console.log(pc.red(`Duplicate SVG filename '${name}' found.`)) + console.log(pc.red('All SVG source files in the "svg/solid" and "svg/multi-color" directories must have a unique filename.')) console.log('') process.exit(1) } diff --git a/src/tests/__snapshots__/ChevronDoubleLeftIcon.html b/src/tests/__snapshots__/ChevronDoubleLeftIcon.html new file mode 100644 index 00000000..ff20be7a --- /dev/null +++ b/src/tests/__snapshots__/ChevronDoubleLeftIcon.html @@ -0,0 +1 @@ +My custom title \ No newline at end of file diff --git a/src/tests/__snapshots__/ChevronDoubleRightIcon.html b/src/tests/__snapshots__/ChevronDoubleRightIcon.html new file mode 100644 index 00000000..f3f2c601 --- /dev/null +++ b/src/tests/__snapshots__/ChevronDoubleRightIcon.html @@ -0,0 +1 @@ +My custom title \ No newline at end of file diff --git a/src/tests/__snapshots__/ColorsIcon.html b/src/tests/__snapshots__/ColorsIcon.html new file mode 100644 index 00000000..b3e79cc8 --- /dev/null +++ b/src/tests/__snapshots__/ColorsIcon.html @@ -0,0 +1 @@ +My custom title \ No newline at end of file diff --git a/src/tests/__snapshots__/PhoneIcon.html b/src/tests/__snapshots__/PhoneIcon.html new file mode 100644 index 00000000..2ac74883 --- /dev/null +++ b/src/tests/__snapshots__/PhoneIcon.html @@ -0,0 +1 @@ +My custom title \ No newline at end of file diff --git a/src/tests/__snapshots__/TabletIcon.html b/src/tests/__snapshots__/TabletIcon.html new file mode 100644 index 00000000..6167ceba --- /dev/null +++ b/src/tests/__snapshots__/TabletIcon.html @@ -0,0 +1 @@ +My custom title \ No newline at end of file diff --git a/src/tests/__snapshots__/TelevisionIcon.html b/src/tests/__snapshots__/TelevisionIcon.html new file mode 100644 index 00000000..c2c029a6 --- /dev/null +++ b/src/tests/__snapshots__/TelevisionIcon.html @@ -0,0 +1 @@ +My custom title \ No newline at end of file diff --git a/src/tests/__snapshots__/TvIcon.html b/src/tests/__snapshots__/TvIcon.html new file mode 100644 index 00000000..cf448b00 --- /dev/null +++ b/src/tests/__snapshots__/TvIcon.html @@ -0,0 +1 @@ +My custom title \ No newline at end of file diff --git a/svg/solid/chevron-double-left.svg b/svg/solid/chevron-double-left.svg new file mode 100644 index 00000000..5f01a543 --- /dev/null +++ b/svg/solid/chevron-double-left.svg @@ -0,0 +1,3 @@ + + + diff --git a/svg/solid/chevron-double-right.svg b/svg/solid/chevron-double-right.svg new file mode 100644 index 00000000..286a9db7 --- /dev/null +++ b/svg/solid/chevron-double-right.svg @@ -0,0 +1,3 @@ + + + diff --git a/svg/solid/colors.svg b/svg/solid/colors.svg new file mode 100644 index 00000000..aa0e320d --- /dev/null +++ b/svg/solid/colors.svg @@ -0,0 +1,3 @@ + + + diff --git a/svg/solid/phone.svg b/svg/solid/phone.svg new file mode 100644 index 00000000..b9a06613 --- /dev/null +++ b/svg/solid/phone.svg @@ -0,0 +1,3 @@ + + + diff --git a/svg/solid/tablet.svg b/svg/solid/tablet.svg new file mode 100644 index 00000000..6be4caa6 --- /dev/null +++ b/svg/solid/tablet.svg @@ -0,0 +1,3 @@ + + + diff --git a/svg/solid/tv.svg b/svg/solid/tv.svg new file mode 100644 index 00000000..3848c8d0 --- /dev/null +++ b/svg/solid/tv.svg @@ -0,0 +1,3 @@ + + +