diff --git a/.changeset/flat-rings-sneeze.md b/.changeset/flat-rings-sneeze.md new file mode 100644 index 0000000000..5be2666bfb --- /dev/null +++ b/.changeset/flat-rings-sneeze.md @@ -0,0 +1,6 @@ +--- +"@ultraviolet/icons": minor +--- + +- New product icons `macMiniM4`, `InstanceScalingGroups`, `GpuServers` +- New logo `github` diff --git a/.changeset/unlucky-snails-think.md b/.changeset/unlucky-snails-think.md new file mode 100644 index 0000000000..8994ffe0f8 --- /dev/null +++ b/.changeset/unlucky-snails-think.md @@ -0,0 +1,5 @@ +--- +"@ultraviolet/illustrations": major +--- + +Rename illustration `documentDB` into `mongoDB` diff --git a/codecov.yml b/codecov.yml index 203d639937..714c4f24dd 100644 --- a/codecov.yml +++ b/codecov.yml @@ -30,3 +30,5 @@ ignore: - "packages/plus" - "packages/illustrations" - "examples" + - "packages/fonts" + - "packages/icons" diff --git a/packages/icons/src/components/Logo/__generatedIcons__/GithubLogo.tsx b/packages/icons/src/components/Logo/__generatedIcons__/GithubLogo.tsx new file mode 100644 index 0000000000..0ec7319b5a --- /dev/null +++ b/packages/icons/src/components/Logo/__generatedIcons__/GithubLogo.tsx @@ -0,0 +1,19 @@ +/** + * Provide the icon component for the icon name. + * This file is automatically generated from /scripts/generateIconFiles.ts. + * PLEASE DO NOT EDIT HERE + */ +import { Icon } from '../Icon' +import type { IconProps } from '../Icon' + +export const GithubLogo = ({ ...props }: Omit) => ( + // eslint-disable-next-line react/jsx-props-no-spreading + + + +) diff --git a/packages/icons/src/components/Logo/assets/github.svg b/packages/icons/src/components/Logo/assets/github.svg new file mode 100644 index 0000000000..9e7515137a --- /dev/null +++ b/packages/icons/src/components/Logo/assets/github.svg @@ -0,0 +1,3 @@ + + + diff --git a/packages/icons/src/components/ProductIcon/__generatedIcons__/GpuServersProductIcon.tsx b/packages/icons/src/components/ProductIcon/__generatedIcons__/GpuServersProductIcon.tsx new file mode 100644 index 0000000000..040987a974 --- /dev/null +++ b/packages/icons/src/components/ProductIcon/__generatedIcons__/GpuServersProductIcon.tsx @@ -0,0 +1,45 @@ +/** + * Provide the icon component for the icon name. + * This file is automatically generated from /scripts/generateIconFiles.ts. + * PLEASE DO NOT EDIT HERE + */ +import { Icon } from '../Icon' +import type { IconProps } from '../Icon' + +export const GpuServersProductIcon = ({ + ...props +}: Omit) => ( + // eslint-disable-next-line react/jsx-props-no-spreading + + + + + + + + + + + + +) diff --git a/packages/icons/src/components/ProductIcon/__generatedIcons__/InstanceScallingGroupsProductIcon.tsx b/packages/icons/src/components/ProductIcon/__generatedIcons__/InstanceScallingGroupsProductIcon.tsx new file mode 100644 index 0000000000..810e188f79 --- /dev/null +++ b/packages/icons/src/components/ProductIcon/__generatedIcons__/InstanceScallingGroupsProductIcon.tsx @@ -0,0 +1,52 @@ +/** + * Provide the icon component for the icon name. + * This file is automatically generated from /scripts/generateIconFiles.ts. + * PLEASE DO NOT EDIT HERE + */ +import { Icon } from '../Icon' +import type { IconProps } from '../Icon' + +export const InstanceScallingGroupsProductIcon = ({ + ...props +}: Omit) => ( + // eslint-disable-next-line react/jsx-props-no-spreading + + + + + + + + + + + + + + + + +) diff --git a/packages/icons/src/components/ProductIcon/__generatedIcons__/MacMiniM4ProductIcon.tsx b/packages/icons/src/components/ProductIcon/__generatedIcons__/MacMiniM4ProductIcon.tsx new file mode 100644 index 0000000000..eae0b178d0 --- /dev/null +++ b/packages/icons/src/components/ProductIcon/__generatedIcons__/MacMiniM4ProductIcon.tsx @@ -0,0 +1,50 @@ +/** + * Provide the icon component for the icon name. + * This file is automatically generated from /scripts/generateIconFiles.ts. + * PLEASE DO NOT EDIT HERE + */ +import { Icon } from '../Icon' +import type { IconProps } from '../Icon' + +export const MacMiniM4ProductIcon = ({ + ...props +}: Omit) => ( + // eslint-disable-next-line react/jsx-props-no-spreading + + + + + + + + + + + + + + + +) diff --git a/packages/icons/src/components/ProductIcon/__generatedIcons__/index.ts b/packages/icons/src/components/ProductIcon/__generatedIcons__/index.ts index de28ab6246..f376768665 100644 --- a/packages/icons/src/components/ProductIcon/__generatedIcons__/index.ts +++ b/packages/icons/src/components/ProductIcon/__generatedIcons__/index.ts @@ -62,6 +62,7 @@ export { FrontEndsProductIcon } from './FrontEndsProductIcon' export { FunctionsProductIcon } from './FunctionsProductIcon' export { GenerativeApiProductIcon } from './GenerativeApiProductIcon' export { GoldSupportProductIcon } from './GoldSupportProductIcon' +export { GpuServersProductIcon } from './GpuServersProductIcon' export { HubNetworksProductIcon } from './HubNetworksProductIcon' export { HubRoutesProductIcon } from './HubRoutesProductIcon' export { IamProductIcon } from './IamProductIcon' @@ -75,6 +76,7 @@ export { InstanceEnterpriseProductIcon } from './InstanceEnterpriseProductIcon' export { InstanceGpuProductIcon } from './InstanceGpuProductIcon' export { InstanceLearnProductIcon } from './InstanceLearnProductIcon' export { InstancePopProductIcon } from './InstancePopProductIcon' +export { InstanceScallingGroupsProductIcon } from './InstanceScallingGroupsProductIcon' export { InstanceWopProductIcon } from './InstanceWopProductIcon' export { InstanceProductIcon } from './InstanceProductIcon' export { InterlinkProductIcon } from './InterlinkProductIcon' @@ -91,6 +93,7 @@ export { KubernetesProductIcon } from './KubernetesProductIcon' export { LbProductIcon } from './LbProductIcon' export { LifeCycleRulesProductIcon } from './LifeCycleRulesProductIcon' export { MacMiniM2ProductIcon } from './MacMiniM2ProductIcon' +export { MacMiniM4ProductIcon } from './MacMiniM4ProductIcon' export { MacMiniProductIcon } from './MacMiniProductIcon' export { ManagedSearchDatabaseProductIcon } from './ManagedSearchDatabaseProductIcon' export { MonitoringProductIcon } from './MonitoringProductIcon' diff --git a/packages/icons/src/components/ProductIcon/assets/gpu-servers.svg b/packages/icons/src/components/ProductIcon/assets/gpu-servers.svg new file mode 100644 index 0000000000..553acfaa9a --- /dev/null +++ b/packages/icons/src/components/ProductIcon/assets/gpu-servers.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/packages/icons/src/components/ProductIcon/assets/instance-scalling-groups.svg b/packages/icons/src/components/ProductIcon/assets/instance-scalling-groups.svg new file mode 100644 index 0000000000..eca7d4755d --- /dev/null +++ b/packages/icons/src/components/ProductIcon/assets/instance-scalling-groups.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/packages/icons/src/components/ProductIcon/assets/mac-mini-m4.svg b/packages/icons/src/components/ProductIcon/assets/mac-mini-m4.svg new file mode 100644 index 0000000000..857c43a3b3 --- /dev/null +++ b/packages/icons/src/components/ProductIcon/assets/mac-mini-m4.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/packages/illustrations/src/assets/products/documentDB/index.ts b/packages/illustrations/src/assets/products/documentDB/index.ts deleted file mode 100644 index 73bc46fd32..0000000000 --- a/packages/illustrations/src/assets/products/documentDB/index.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * This file is automatically generated from /utils/illustrations/uploadIllustrations.js - * PLEASE DO NOT EDIT HERE - */ - -const BASE_URL = 'https://assets.scaleway.com/illustrations' - -const documentDBContent = `${BASE_URL}/products/documentDB/documentDB-content.webp` -const documentDBKeyvisual = `${BASE_URL}/products/documentDB/documentDB-keyvisual.webp` -const documentDBOriginal = `${BASE_URL}/products/documentDB/documentDB-original.webp` -const documentDBWire = `${BASE_URL}/products/documentDB/documentDB-wire.svg` - -export { - documentDBContent, - documentDBKeyvisual, - documentDBOriginal, - documentDBWire, -} diff --git a/packages/illustrations/src/assets/products/index.ts b/packages/illustrations/src/assets/products/index.ts index 365319520e..fb3163c67d 100644 --- a/packages/illustrations/src/assets/products/index.ts +++ b/packages/illustrations/src/assets/products/index.ts @@ -15,7 +15,6 @@ import * as costManager from './costManager' import * as dedibox from './dedibox' import * as dediboxVps from './dediboxVps' import * as distributedDataLab from './distributedDataLab' -import * as documentDB from './documentDB' import * as domainsAndDns from './domainsAndDns' import * as edgeServices from './edgeServices' import * as elasticMetal from './elasticMetal' @@ -37,6 +36,7 @@ import * as kms from './kms' import * as loadBalancers from './loadBalancers' import * as managedDatabase from './managedDatabase' import * as managedSearchDatabase from './managedSearchDatabase' +import * as mongoDB from './mongoDB' import * as nabu from './nabu' import * as nats from './nats' import * as objectStorage from './objectStorage' @@ -69,7 +69,6 @@ export { dedibox, dediboxVps, distributedDataLab, - documentDB, domainsAndDns, edgeServices, elasticMetal, @@ -91,6 +90,7 @@ export { loadBalancers, managedDatabase, managedSearchDatabase, + mongoDB, nabu, nats, objectStorage, diff --git a/packages/illustrations/src/assets/products/mongoDB/index.ts b/packages/illustrations/src/assets/products/mongoDB/index.ts new file mode 100644 index 0000000000..dcd45b2d8c --- /dev/null +++ b/packages/illustrations/src/assets/products/mongoDB/index.ts @@ -0,0 +1,13 @@ +/** + * This file is automatically generated from /utils/illustrations/uploadIllustrations.js + * PLEASE DO NOT EDIT HERE + */ + +const BASE_URL = 'https://assets.scaleway.com/illustrations' + +const mongoDBContent = `${BASE_URL}/products/mongoDB/mongoDB-content.webp` +const mongoDBKeyvisual = `${BASE_URL}/products/mongoDB/mongoDB-keyvisual.webp` +const mongoDBOriginal = `${BASE_URL}/products/mongoDB/mongoDB-original.webp` +const mongoDBWire = `${BASE_URL}/products/mongoDB/mongoDB-wire.svg` + +export { mongoDBContent, mongoDBKeyvisual, mongoDBOriginal, mongoDBWire } diff --git a/packages/illustrations/src/assets/products/documentDB/documentDB-content.webp b/packages/illustrations/src/assets/products/mongoDB/mongoDB-content.webp similarity index 100% rename from packages/illustrations/src/assets/products/documentDB/documentDB-content.webp rename to packages/illustrations/src/assets/products/mongoDB/mongoDB-content.webp diff --git a/packages/illustrations/src/assets/products/documentDB/documentDB-keyvisual.webp b/packages/illustrations/src/assets/products/mongoDB/mongoDB-keyvisual.webp similarity index 100% rename from packages/illustrations/src/assets/products/documentDB/documentDB-keyvisual.webp rename to packages/illustrations/src/assets/products/mongoDB/mongoDB-keyvisual.webp diff --git a/packages/illustrations/src/assets/products/documentDB/documentDB-original.webp b/packages/illustrations/src/assets/products/mongoDB/mongoDB-original.webp similarity index 100% rename from packages/illustrations/src/assets/products/documentDB/documentDB-original.webp rename to packages/illustrations/src/assets/products/mongoDB/mongoDB-original.webp diff --git a/packages/illustrations/src/assets/products/documentDB/documentDB-wire.svg b/packages/illustrations/src/assets/products/mongoDB/mongoDB-wire.svg similarity index 100% rename from packages/illustrations/src/assets/products/documentDB/documentDB-wire.svg rename to packages/illustrations/src/assets/products/mongoDB/mongoDB-wire.svg diff --git a/scripts/generate-icons-file.ts b/scripts/generate-icons-file.ts index 6fa767979b..8fe82bdad8 100644 --- a/scripts/generate-icons-file.ts +++ b/scripts/generate-icons-file.ts @@ -86,7 +86,11 @@ const readSvg = async (filePath: string) => { const innerSvgContent = svgContent.replace(/]*>|<\/svg>/g, '') // Remove and tags // Replace class with className - const updatedSvgContent = innerSvgContent.replace(/class=/g, 'className=') + const updatedSvgContent = innerSvgContent + .replace(/class=/g, 'className=') + .replace(/fill-rule=/g, 'fillRule=') + .replace(/fill-opacity=/g, 'fillOpacity=') + .replace(/clip-rule=/g, 'clipRule=') return updatedSvgContent.replace(/`/g, '\\`') // Escape backticks }