From 8924fa3c635298c92f5325585c3ce72824ba49d1 Mon Sep 17 00:00:00 2001 From: Konstantin Burkalev Date: Wed, 25 Sep 2024 15:31:38 +0300 Subject: [PATCH 1/4] feat: add CalendarEditIcon --- .changeset/idk-new-icon-change-set.md | 5 +++++ src/icons/CalendarEditIcon.tsx | 16 ++++++++++++++++ src/icons/index.ts | 2 ++ 3 files changed, 23 insertions(+) create mode 100644 .changeset/idk-new-icon-change-set.md create mode 100644 src/icons/CalendarEditIcon.tsx diff --git a/.changeset/idk-new-icon-change-set.md b/.changeset/idk-new-icon-change-set.md new file mode 100644 index 00000000..fd8f079b --- /dev/null +++ b/.changeset/idk-new-icon-change-set.md @@ -0,0 +1,5 @@ +--- +'@cube-dev/ui-kit': patch +--- + +Add CalendarEditIcon. \ No newline at end of file diff --git a/src/icons/CalendarEditIcon.tsx b/src/icons/CalendarEditIcon.tsx new file mode 100644 index 00000000..ef266b7f --- /dev/null +++ b/src/icons/CalendarEditIcon.tsx @@ -0,0 +1,16 @@ +export const CalendarEditIcon = ( + + + +); diff --git a/src/icons/index.ts b/src/icons/index.ts index 29c4ebbc..6cb5410d 100644 --- a/src/icons/index.ts +++ b/src/icons/index.ts @@ -11,6 +11,7 @@ import { BooleanIcon as _BooleanIcon } from './BooleanIcon'; import { CountIcon as _CountIcon } from './CountIcon'; import { CubeIcon as _CubeIcon } from './CubeIcon'; import { CalendarIcon as _CalendarIcon } from './CalendarIcon'; +import { CalendarEditIcon as _CalendarEditIcon } from './CalendarEditIcon'; import { DonutIcon as _DonutIcon } from './DonutIcon'; import { DownIcon as _DownIcon } from './DownIcon'; import { FilterIcon as _FilterIcon } from './FilterIcon'; @@ -79,6 +80,7 @@ export const BooleanIcon = wrapIcon('BooleanIcon', _BooleanIcon); export const CountIcon = wrapIcon('CountIcon', _CountIcon); export const CubeIcon = wrapIcon('CubeIcon', _CubeIcon); export const CalendarIcon = wrapIcon('CalendarIcon', _CalendarIcon); +export const CalendarEditIcon = wrapIcon('CalendarEditIcon', _CalendarEditIcon); export const DonutIcon = wrapIcon('DonutIcon', _DonutIcon); export const DownIcon = wrapIcon('DownIcon', _DownIcon); export const FilterIcon = wrapIcon('FilterIcon', _FilterIcon); From e5a83c85323c812d8d0c2cd6e252116963a23ec5 Mon Sep 17 00:00:00 2001 From: Andrey Yamanov Date: Mon, 7 Oct 2024 15:54:16 +0200 Subject: [PATCH 2/4] chore: config update --- .github/workflows/size-limit.yml | 4 +-- src/components/pickers/Menu/Menu.stories.tsx | 31 +++++++++----------- 2 files changed, 16 insertions(+), 19 deletions(-) diff --git a/.github/workflows/size-limit.yml b/.github/workflows/size-limit.yml index 4b1697b8..bf2534a9 100644 --- a/.github/workflows/size-limit.yml +++ b/.github/workflows/size-limit.yml @@ -44,7 +44,7 @@ jobs: run: pnpm build - name: Download baseline stats - uses: dawidd6/action-download-artifact@v2 + uses: dawidd6/action-download-artifact@v4 if: github.event.number with: workflow: size-limit.yml @@ -60,7 +60,7 @@ jobs: run: echo '${{ steps.measure_size.outputs.result }}' > ./size-limit-report/output.json - name: Upload stats - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: size-limit-report path: ${{ env.REPORT_FOLDER }} diff --git a/src/components/pickers/Menu/Menu.stories.tsx b/src/components/pickers/Menu/Menu.stories.tsx index 08dc92e9..a6b9dec4 100644 --- a/src/components/pickers/Menu/Menu.stories.tsx +++ b/src/components/pickers/Menu/Menu.stories.tsx @@ -15,7 +15,6 @@ import { Flex, Button, Text, - Root, Space, AlertDialog, DialogContainer, @@ -39,22 +38,20 @@ export default { const MenuTemplate = (props) => { return ( - - - - Item 1 - - - Item 2 - - - Item 3 - - - Item 4 - - - + + + Item 1 + + + Item 2 + + + Item 3 + + + Item 4 + + ); }; From 9d3b2e1adad2ad592116af54205fae8d14270e9b Mon Sep 17 00:00:00 2001 From: Andrey Yamanov Date: Mon, 7 Oct 2024 16:58:19 +0200 Subject: [PATCH 3/4] chore: config update * 2 --- .size-limit.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.size-limit.js b/.size-limit.js index 32d2c42f..2b069507 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: '34 kB', + limit: '36 kB', }, { name: 'Tree shaking (just an Icon)', path: './dist/es/index.js', webpack: true, import: '{ AiIcon }', - limit: '23 kB', + limit: '25 kB', }, ]; From 79fee043a2fc3714b71f3bf56c298c4d68b02e99 Mon Sep 17 00:00:00 2001 From: Andrey Yamanov Date: Mon, 7 Oct 2024 17:06:45 +0200 Subject: [PATCH 4/4] Revert "fix(Field): pass qa prop (#498)" This reverts commit 77e7ab77c2797e1f5f986e0e6b40c760689eb25c. --- .changeset/idk-new-icon-change-set.md | 5 ----- src/components/forms/FieldWrapper/FieldWrapper.tsx | 2 -- src/components/forms/FieldWrapper/types.ts | 1 - src/components/forms/wrapper.tsx | 2 -- 4 files changed, 10 deletions(-) delete mode 100644 .changeset/idk-new-icon-change-set.md diff --git a/.changeset/idk-new-icon-change-set.md b/.changeset/idk-new-icon-change-set.md deleted file mode 100644 index fd8f079b..00000000 --- a/.changeset/idk-new-icon-change-set.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@cube-dev/ui-kit': patch ---- - -Add CalendarEditIcon. \ No newline at end of file diff --git a/src/components/forms/FieldWrapper/FieldWrapper.tsx b/src/components/forms/FieldWrapper/FieldWrapper.tsx index be678d6c..5998913c 100644 --- a/src/components/forms/FieldWrapper/FieldWrapper.tsx +++ b/src/components/forms/FieldWrapper/FieldWrapper.tsx @@ -77,7 +77,6 @@ export const FieldWrapper = forwardRef(function FieldWrapper( ) { const { as, - qa, labelPosition = 'top', label, extra, @@ -158,7 +157,6 @@ export const FieldWrapper = forwardRef(function FieldWrapper( <> ( props: T, ) { let { - qa, label, extra, labelPosition = 'top', @@ -39,7 +38,6 @@ export function wrapWithField( return (