From b37d0db190ac8980e85a056f5a459cc63260d7c1 Mon Sep 17 00:00:00 2001 From: WK Wong Date: Mon, 12 May 2025 23:33:47 +0800 Subject: [PATCH 1/5] chore(switch): remove xl size --- packages/components/switch/stories/switch.stories.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/components/switch/stories/switch.stories.tsx b/packages/components/switch/stories/switch.stories.tsx index a4abe5c9ff..d5e72ff2c4 100644 --- a/packages/components/switch/stories/switch.stories.tsx +++ b/packages/components/switch/stories/switch.stories.tsx @@ -202,7 +202,6 @@ export const DisableAnimation = { export const WithThumbIcon = { args: { ...defaultProps, - size: "xl", thumbIcon: (props: SwitchThumbIconProps) => props.isSelected ? ( @@ -217,7 +216,6 @@ export const WithIcons = { args: { ...defaultProps, - size: "xl", }, }; From 2c8431ebc0bbb27fbb9d38a6f28064bcc2394414 Mon Sep 17 00:00:00 2001 From: WK Wong Date: Mon, 12 May 2025 23:37:59 +0800 Subject: [PATCH 2/5] chore(docs): remove xl size --- apps/docs/content/docs/customization/custom-variants.mdx | 1 - 1 file changed, 1 deletion(-) diff --git a/apps/docs/content/docs/customization/custom-variants.mdx b/apps/docs/content/docs/customization/custom-variants.mdx index 74994beead..abcb7cfff4 100644 --- a/apps/docs/content/docs/customization/custom-variants.mdx +++ b/apps/docs/content/docs/customization/custom-variants.mdx @@ -46,7 +46,6 @@ export const MyButton = extendVariants(Button, { }, defaultVariants: { // <- modify/add default variants color: "olive", - size: "xl", }, compoundVariants: [ // <- modify/add compound variants { From 87312ad468b7230315cc719070a8d8855278332e Mon Sep 17 00:00:00 2001 From: WK Wong Date: Mon, 12 May 2025 23:38:15 +0800 Subject: [PATCH 3/5] chore(system-rsc): remove xl size --- packages/core/system-rsc/__tests__/extend-variants.test.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/core/system-rsc/__tests__/extend-variants.test.tsx b/packages/core/system-rsc/__tests__/extend-variants.test.tsx index d2baf7fdc5..e2fdedd05f 100644 --- a/packages/core/system-rsc/__tests__/extend-variants.test.tsx +++ b/packages/core/system-rsc/__tests__/extend-variants.test.tsx @@ -23,7 +23,6 @@ const createExtendNoSlotsComponent = (styles: ExtendVariantProps = {}) => ...styles?.variants, }, defaultVariants: { - size: "xl", ...styles?.defaultVariants, }, compoundVariants: styles?.compoundVariants ?? [ From 1f2ee534e907b34dfa8441587d7f2cf9e4a83b27 Mon Sep 17 00:00:00 2001 From: WK Wong Date: Mon, 12 May 2025 23:38:30 +0800 Subject: [PATCH 4/5] chore(circular-progress): remove xl size --- .../components/progress/stories/circular-progress.stories.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/components/progress/stories/circular-progress.stories.tsx b/packages/components/progress/stories/circular-progress.stories.tsx index b2255d1195..e92e43b77f 100644 --- a/packages/components/progress/stories/circular-progress.stories.tsx +++ b/packages/components/progress/stories/circular-progress.stories.tsx @@ -106,7 +106,6 @@ export const WithValueFormatting = { args: { ...defaultProps, label: "Loading...", - size: "xl", value: 70, color: "warning", showValueLabel: true, @@ -119,7 +118,6 @@ export const CustomClassnames = { args: { ...defaultProps, - size: "xl", strokeWidth: 4, value: 70, showValueLabel: true, From 2e7fec8a67d49b2a70598e979bb44c8aa2b42a39 Mon Sep 17 00:00:00 2001 From: WK Wong Date: Mon, 12 May 2025 23:49:17 +0800 Subject: [PATCH 5/5] chore: undo --- apps/docs/content/docs/customization/custom-variants.mdx | 1 + packages/core/system-rsc/__tests__/extend-variants.test.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/apps/docs/content/docs/customization/custom-variants.mdx b/apps/docs/content/docs/customization/custom-variants.mdx index abcb7cfff4..74994beead 100644 --- a/apps/docs/content/docs/customization/custom-variants.mdx +++ b/apps/docs/content/docs/customization/custom-variants.mdx @@ -46,6 +46,7 @@ export const MyButton = extendVariants(Button, { }, defaultVariants: { // <- modify/add default variants color: "olive", + size: "xl", }, compoundVariants: [ // <- modify/add compound variants { diff --git a/packages/core/system-rsc/__tests__/extend-variants.test.tsx b/packages/core/system-rsc/__tests__/extend-variants.test.tsx index e2fdedd05f..d2baf7fdc5 100644 --- a/packages/core/system-rsc/__tests__/extend-variants.test.tsx +++ b/packages/core/system-rsc/__tests__/extend-variants.test.tsx @@ -23,6 +23,7 @@ const createExtendNoSlotsComponent = (styles: ExtendVariantProps = {}) => ...styles?.variants, }, defaultVariants: { + size: "xl", ...styles?.defaultVariants, }, compoundVariants: styles?.compoundVariants ?? [