From 1cf6c8c75d60c4585a26ea0d1fada26680f658c0 Mon Sep 17 00:00:00 2001 From: Andrey Yamanov Date: Mon, 10 Jun 2024 13:52:39 +0200 Subject: [PATCH 1/2] feat: add StringIcon --- .changeset/swift-rocks-decide.md | 5 +++++ src/icons/index.ts | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 .changeset/swift-rocks-decide.md diff --git a/.changeset/swift-rocks-decide.md b/.changeset/swift-rocks-decide.md new file mode 100644 index 00000000..ca19ce9b --- /dev/null +++ b/.changeset/swift-rocks-decide.md @@ -0,0 +1,5 @@ +--- +'@cube-dev/ui-kit': patch +--- + +Add StringIcon component. diff --git a/src/icons/index.ts b/src/icons/index.ts index b8d93da0..c000c284 100644 --- a/src/icons/index.ts +++ b/src/icons/index.ts @@ -54,6 +54,7 @@ import { SlashIcon as _SlashIcon } from './SlashIcon'; import { ThumbsUpIcon as _ThumbsUpIcon } from './ThumbsUpIcon'; import { ThumbsDownIcon as _ThumbsDownIcon } from './ThumbsDownIcon'; import { SparklesIcon as _SparklesIcon } from './SparklesIcon'; +import { StringIcon as _StringIcon } from './StringIcon'; export const CloseIcon = wrapIcon('CloseIcon', _CloseIcon); export const ExclamationIcon = wrapIcon('ExclamationIcon', _ExclamationIcon); @@ -119,6 +120,7 @@ export const SlashIcon = wrapIcon('SlashIcon', _SlashIcon); export const ThumbsUpIcon = wrapIcon('ThumbsUpIcon', _ThumbsUpIcon); export const ThumbsDownIcon = wrapIcon('ThumbsDownIcon', _ThumbsDownIcon); export const SparklesIcon = wrapIcon('SparklesIcon', _SparklesIcon); +export const StringIcon = wrapIcon('StringIcon', _StringIcon); export { IconContainer } from './IconContainer'; From 3f90b92dbd6f2f27da848af212d7492c20ae981e Mon Sep 17 00:00:00 2001 From: Andrey Yamanov Date: Mon, 10 Jun 2024 13:58:13 +0200 Subject: [PATCH 2/2] feat: add StringIcon * 2 --- .size-limit.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.size-limit.js b/.size-limit.js index 7ca55cac..32d2c42f 100644 --- a/.size-limit.js +++ b/.size-limit.js @@ -26,13 +26,13 @@ module.exports = [ path: './dist/es/index.js', webpack: true, import: '{ Button }', - limit: '33 kB', + limit: '34 kB', }, { name: 'Tree shaking (just an Icon)', path: './dist/es/index.js', webpack: true, import: '{ AiIcon }', - limit: '22 kB', + limit: '23 kB', }, ];