From c97ab1818f420d091dfa7359ced333ae553c6489 Mon Sep 17 00:00:00 2001 From: malangcat Date: Sat, 4 Jan 2025 00:59:21 +0900 Subject: [PATCH] feat: update registry --- docs/public/__registry__/ui/action-chip.json | 2 +- docs/public/__registry__/ui/avatar.json | 3 +-- docs/public/__registry__/ui/badge.json | 2 +- docs/public/__registry__/ui/checkbox.json | 2 +- docs/public/__registry__/ui/control-chip.json | 4 +-- docs/public/__registry__/ui/extended-fab.json | 4 +-- docs/public/__registry__/ui/fab.json | 2 +- docs/public/__registry__/ui/index.json | 25 +++++++++---------- .../__registry__/ui/progress-circle.json | 2 +- .../__registry__/ui/reaction-button.json | 3 +-- docs/public/__registry__/ui/skeleton.json | 4 ++- .../public/__registry__/ui/toggle-button.json | 3 +-- docs/registry/registry-ui.ts | 20 +++++++-------- 13 files changed, 37 insertions(+), 39 deletions(-) diff --git a/docs/public/__registry__/ui/action-chip.json b/docs/public/__registry__/ui/action-chip.json index c5dcaf34a..49f13fbce 100644 --- a/docs/public/__registry__/ui/action-chip.json +++ b/docs/public/__registry__/ui/action-chip.json @@ -1,7 +1,7 @@ { "name": "action-chip", "dependencies": [ - "@radix-ui/react-slot" + "@seed-design/react" ], "registries": [ { diff --git a/docs/public/__registry__/ui/avatar.json b/docs/public/__registry__/ui/avatar.json index e04be7410..d862b1c24 100644 --- a/docs/public/__registry__/ui/avatar.json +++ b/docs/public/__registry__/ui/avatar.json @@ -1,8 +1,7 @@ { "name": "avatar", "dependencies": [ - "@radix-ui/react-slot", - "@seed-design/react-avatar" + "@seed-design/react" ], "innerDependencies": [ "identity-placeholder" diff --git a/docs/public/__registry__/ui/badge.json b/docs/public/__registry__/ui/badge.json index d3754dbb7..a78c762aa 100644 --- a/docs/public/__registry__/ui/badge.json +++ b/docs/public/__registry__/ui/badge.json @@ -1,7 +1,7 @@ { "name": "badge", "dependencies": [ - "@radix-ui/react-slot" + "@seed-design/react" ], "registries": [ { diff --git a/docs/public/__registry__/ui/checkbox.json b/docs/public/__registry__/ui/checkbox.json index 799058064..5b961dc24 100644 --- a/docs/public/__registry__/ui/checkbox.json +++ b/docs/public/__registry__/ui/checkbox.json @@ -8,7 +8,7 @@ { "name": "checkbox.tsx", "type": "ui", - "content": "\"use client\";\n\nimport IconCheckmarkFatFill from \"@daangn/react-monochrome-icon/IconCheckmarkFatFill\";\nimport { Checkbox as SeedCheckbox } from \"@seed-design/react\";\nimport * as React from \"react\";\n\nimport \"@seed-design/stylesheet/checkbox.css\";\n\nexport interface CheckboxProps extends SeedCheckbox.RootProps {\n inputProps?: React.InputHTMLAttributes;\n\n rootRef?: React.Ref;\n\n label?: React.ReactNode;\n}\n\nexport const Checkbox = React.forwardRef(\n ({ inputProps, rootRef, label, ...otherProps }, ref) => {\n return (\n \n \n } />\n \n {label}\n \n \n );\n },\n);\nCheckbox.displayName = \"Checkbox\";\n" + "content": "\"use client\";\n\nimport IconCheckmarkFatFill from \"@daangn/react-monochrome-icon/IconCheckmarkFatFill\";\nimport IconMinusFatFill from \"@daangn/react-monochrome-icon/IconMinusFatFill\";\nimport { Checkbox as SeedCheckbox } from \"@seed-design/react\";\nimport * as React from \"react\";\n\nimport \"@seed-design/stylesheet/checkbox.css\";\n\nexport interface CheckboxProps extends SeedCheckbox.RootProps {\n inputProps?: React.InputHTMLAttributes;\n\n rootRef?: React.Ref;\n\n label?: React.ReactNode;\n}\n\nexport const Checkbox = React.forwardRef(\n ({ inputProps, rootRef, label, ...otherProps }, ref) => {\n return (\n \n \n } />\n } />\n \n {label}\n \n \n );\n },\n);\nCheckbox.displayName = \"Checkbox\";\n" } ] } \ No newline at end of file diff --git a/docs/public/__registry__/ui/control-chip.json b/docs/public/__registry__/ui/control-chip.json index ed3d5ffaf..c14f2ff1d 100644 --- a/docs/public/__registry__/ui/control-chip.json +++ b/docs/public/__registry__/ui/control-chip.json @@ -1,13 +1,13 @@ { "name": "control-chip", "dependencies": [ - "@radix-ui/react-slot" + "@seed-design/react" ], "registries": [ { "name": "control-chip.tsx", "type": "ui", - "content": "\"use client\";\n\nimport { ControlChip as SeedControlChip } from \"@seed-design/react\";\nimport * as React from \"react\";\n\nimport \"@seed-design/stylesheet/controlChip.css\";\n\nexport interface ControlChipProps extends SeedControlChip.RootProps {\n prefixIcon?: React.ReactNode;\n\n suffixIcon?: React.ReactNode;\n\n count?: number;\n}\n\nexport const ControlChip = React.forwardRef(\n (\n { className, children, prefixIcon, suffixIcon, count, ...otherProps },\n ref,\n ) => {\n return (\n \n {otherProps.layout === \"withText\" ? (\n <>\n {prefixIcon && }\n {children}\n {count && {count}}\n {suffixIcon && }\n \n ) : (\n \n )}\n \n );\n },\n);\nControlChip.displayName = \"ControlChip\";\n\n/**\n * This file is generated snippet from the Seed Design.\n * You can extend the functionality from this snippet if needed.\n */\n" + "content": "\"use client\";\n\nimport { ControlChip as SeedControlChip } from \"@seed-design/react\";\nimport * as React from \"react\";\n\nimport \"@seed-design/stylesheet/controlChip.css\";\n\nexport interface ControlChipToggleProps extends SeedControlChip.RootProps {\n prefixIcon?: React.ReactNode;\n\n suffixIcon?: React.ReactNode;\n\n count?: number;\n}\n\nexport const ControlChipToggle = React.forwardRef<\n HTMLLabelElement,\n ControlChipToggleProps\n>(\n (\n { className, children, prefixIcon, suffixIcon, count, ...otherProps },\n ref,\n ) => {\n return (\n \n {otherProps.layout === \"withText\" ? (\n <>\n {prefixIcon && }\n {children}\n {count && {count}}\n {suffixIcon && }\n \n ) : (\n \n )}\n \n );\n },\n);\nControlChipToggle.displayName = \"ControlChip.Toggle\";\n\nexport const ControlChip = Object.assign(\n () => {\n console.warn(\n \"ControlChip is a base component and should not be rendered. Use ControlChip.Toggle or ControlChip.Radio instead.\",\n );\n },\n {\n Toggle: ControlChipToggle,\n },\n);\n\n/**\n * This file is generated snippet from the Seed Design.\n * You can extend the functionality from this snippet if needed.\n */\n" } ] } \ No newline at end of file diff --git a/docs/public/__registry__/ui/extended-fab.json b/docs/public/__registry__/ui/extended-fab.json index 0b6b9baa0..3f82b626c 100644 --- a/docs/public/__registry__/ui/extended-fab.json +++ b/docs/public/__registry__/ui/extended-fab.json @@ -1,13 +1,13 @@ { "name": "extended-fab", "dependencies": [ - "@radix-ui/react-slot" + "@seed-design/react" ], "registries": [ { "name": "extended-fab.tsx", "type": "ui", - "content": "\"use client\";\n\nimport \"@seed-design/stylesheet/extendedFab.css\";\n\nimport { ExtendedFab as SeedExtendedFab } from \"@seed-design/react\";\nimport * as React from \"react\";\n\nexport interface ExtendedFabProps extends SeedExtendedFab.RootProps {\n prefixIcon?: React.ReactNode;\n}\n\n/**\n * @see https://v3.seed-design.io/docs/react/components/action-button\n */\nexport const ExtendedFab = React.forwardRef<\n HTMLButtonElement,\n ExtendedFabProps\n>(({ className, children, prefixIcon, ...otherProps }, ref) => {\n return (\n \n {prefixIcon && }\n {children}\n \n );\n});\nExtendedFab.displayName = \"ExtendedFab\";\n" + "content": "\"use client\";\n\nimport \"@seed-design/stylesheet/extendedFab.css\";\n\nimport { ExtendedFab as SeedExtendedFab } from \"@seed-design/react\";\nimport * as React from \"react\";\n\nexport interface ExtendedFabProps extends SeedExtendedFab.RootProps {\n prefixIcon?: React.ReactNode;\n}\n\n/**\n * @see https://v3.seed-design.io/docs/react/components/extended-fab\n */\nexport const ExtendedFab = React.forwardRef<\n HTMLButtonElement,\n ExtendedFabProps\n>(({ className, children, prefixIcon, ...otherProps }, ref) => {\n return (\n \n {prefixIcon && }\n {children}\n \n );\n});\nExtendedFab.displayName = \"ExtendedFab\";\n" } ] } \ No newline at end of file diff --git a/docs/public/__registry__/ui/fab.json b/docs/public/__registry__/ui/fab.json index ed0d95b38..40fbd1c4c 100644 --- a/docs/public/__registry__/ui/fab.json +++ b/docs/public/__registry__/ui/fab.json @@ -1,7 +1,7 @@ { "name": "fab", "dependencies": [ - "@radix-ui/react-slot" + "@seed-design/react" ], "registries": [ { diff --git a/docs/public/__registry__/ui/index.json b/docs/public/__registry__/ui/index.json index 872632415..dd48b46f0 100644 --- a/docs/public/__registry__/ui/index.json +++ b/docs/public/__registry__/ui/index.json @@ -53,8 +53,7 @@ "identity-placeholder" ], "dependencies": [ - "@radix-ui/react-slot", - "@seed-design/react-avatar" + "@seed-design/react" ], "files": [ "ui:avatar.tsx" @@ -72,8 +71,7 @@ { "name": "toggle-button", "dependencies": [ - "@radix-ui/react-slot", - "@seed-design/react-toggle" + "@seed-design/react" ], "files": [ "ui:toggle-button.tsx" @@ -82,8 +80,7 @@ { "name": "reaction-button", "dependencies": [ - "@radix-ui/react-slot", - "@seed-design/react-toggle" + "@seed-design/react" ], "files": [ "ui:reaction-button.tsx" @@ -92,7 +89,7 @@ { "name": "fab", "dependencies": [ - "@radix-ui/react-slot" + "@seed-design/react" ], "files": [ "ui:fab.tsx" @@ -101,7 +98,7 @@ { "name": "extended-fab", "dependencies": [ - "@radix-ui/react-slot" + "@seed-design/react" ], "files": [ "ui:extended-fab.tsx" @@ -110,7 +107,7 @@ { "name": "action-chip", "dependencies": [ - "@radix-ui/react-slot" + "@seed-design/react" ], "files": [ "ui:action-chip.tsx" @@ -119,7 +116,7 @@ { "name": "badge", "dependencies": [ - "@radix-ui/react-slot" + "@seed-design/react" ], "files": [ "ui:badge.tsx" @@ -139,7 +136,7 @@ { "name": "control-chip", "dependencies": [ - "@radix-ui/react-slot" + "@seed-design/react" ], "files": [ "ui:control-chip.tsx" @@ -204,7 +201,7 @@ { "name": "progress-circle", "dependencies": [ - "@seed-design/react-progress" + "@seed-design/react" ], "files": [ "ui:progress-circle.tsx" @@ -240,7 +237,9 @@ }, { "name": "skeleton", - "dependencies": [], + "dependencies": [ + "@seed-design/react" + ], "files": [ "ui:skeleton.tsx" ] diff --git a/docs/public/__registry__/ui/progress-circle.json b/docs/public/__registry__/ui/progress-circle.json index 6b05cf7f6..9285ca270 100644 --- a/docs/public/__registry__/ui/progress-circle.json +++ b/docs/public/__registry__/ui/progress-circle.json @@ -1,7 +1,7 @@ { "name": "progress-circle", "dependencies": [ - "@seed-design/react-progress" + "@seed-design/react" ], "registries": [ { diff --git a/docs/public/__registry__/ui/reaction-button.json b/docs/public/__registry__/ui/reaction-button.json index e6811f925..75c3ed950 100644 --- a/docs/public/__registry__/ui/reaction-button.json +++ b/docs/public/__registry__/ui/reaction-button.json @@ -1,8 +1,7 @@ { "name": "reaction-button", "dependencies": [ - "@radix-ui/react-slot", - "@seed-design/react-toggle" + "@seed-design/react" ], "registries": [ { diff --git a/docs/public/__registry__/ui/skeleton.json b/docs/public/__registry__/ui/skeleton.json index 2de380dab..f75a479e0 100644 --- a/docs/public/__registry__/ui/skeleton.json +++ b/docs/public/__registry__/ui/skeleton.json @@ -1,6 +1,8 @@ { "name": "skeleton", - "dependencies": [], + "dependencies": [ + "@seed-design/react" + ], "registries": [ { "name": "skeleton.tsx", diff --git a/docs/public/__registry__/ui/toggle-button.json b/docs/public/__registry__/ui/toggle-button.json index 4e59bb1a6..eeea5bac6 100644 --- a/docs/public/__registry__/ui/toggle-button.json +++ b/docs/public/__registry__/ui/toggle-button.json @@ -1,8 +1,7 @@ { "name": "toggle-button", "dependencies": [ - "@radix-ui/react-slot", - "@seed-design/react-toggle" + "@seed-design/react" ], "registries": [ { diff --git a/docs/registry/registry-ui.ts b/docs/registry/registry-ui.ts index 564c4c15c..3f6cc740b 100644 --- a/docs/registry/registry-ui.ts +++ b/docs/registry/registry-ui.ts @@ -36,7 +36,7 @@ export const registryUI: RegistryUI = [ { name: "avatar", innerDependencies: ["identity-placeholder"], - dependencies: ["@radix-ui/react-slot", "@seed-design/react-avatar"], + dependencies: ["@seed-design/react"], files: ["ui:avatar.tsx"], }, { @@ -46,32 +46,32 @@ export const registryUI: RegistryUI = [ }, { name: "toggle-button", - dependencies: ["@radix-ui/react-slot", "@seed-design/react-toggle"], + dependencies: ["@seed-design/react"], files: ["ui:toggle-button.tsx"], }, { name: "reaction-button", - dependencies: ["@radix-ui/react-slot", "@seed-design/react-toggle"], + dependencies: ["@seed-design/react"], files: ["ui:reaction-button.tsx"], }, { name: "fab", - dependencies: ["@radix-ui/react-slot"], + dependencies: ["@seed-design/react"], files: ["ui:fab.tsx"], }, { name: "extended-fab", - dependencies: ["@radix-ui/react-slot"], + dependencies: ["@seed-design/react"], files: ["ui:extended-fab.tsx"], }, { name: "action-chip", - dependencies: ["@radix-ui/react-slot"], + dependencies: ["@seed-design/react"], files: ["ui:action-chip.tsx"], }, { name: "badge", - dependencies: ["@radix-ui/react-slot"], + dependencies: ["@seed-design/react"], files: ["ui:badge.tsx"], }, { @@ -85,7 +85,7 @@ export const registryUI: RegistryUI = [ }, { name: "control-chip", - dependencies: ["@radix-ui/react-slot"], + dependencies: ["@seed-design/react"], files: ["ui:control-chip.tsx"], }, { @@ -127,7 +127,7 @@ export const registryUI: RegistryUI = [ }, { name: "progress-circle", - dependencies: ["@seed-design/react-progress"], + dependencies: ["@seed-design/react"], files: ["ui:progress-circle.tsx"], }, { @@ -149,7 +149,7 @@ export const registryUI: RegistryUI = [ }, { name: "skeleton", - dependencies: [], + dependencies: ["@seed-design/react"], files: ["ui:skeleton.tsx"], }, {