-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
37 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "action-chip", | ||
"dependencies": [ | ||
"@radix-ui/react-slot" | ||
"@seed-design/react" | ||
], | ||
"registries": [ | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "badge", | ||
"dependencies": [ | ||
"@radix-ui/react-slot" | ||
"@seed-design/react" | ||
], | ||
"registries": [ | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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<HTMLLabelElement, ControlChipProps>(\n (\n { className, children, prefixIcon, suffixIcon, count, ...otherProps },\n ref,\n ) => {\n return (\n <SeedControlChip.Root ref={ref} {...otherProps}>\n {otherProps.layout === \"withText\" ? (\n <>\n {prefixIcon && <SeedControlChip.PrefixIcon svg={prefixIcon} />}\n <SeedControlChip.Label>{children}</SeedControlChip.Label>\n {count && <SeedControlChip.Count>{count}</SeedControlChip.Count>}\n {suffixIcon && <SeedControlChip.SuffixIcon svg={suffixIcon} />}\n </>\n ) : (\n <SeedControlChip.Icon svg={children} />\n )}\n </SeedControlChip.Root>\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 <SeedControlChip.Root ref={ref} {...otherProps}>\n {otherProps.layout === \"withText\" ? (\n <>\n {prefixIcon && <SeedControlChip.PrefixIcon svg={prefixIcon} />}\n <SeedControlChip.Label>{children}</SeedControlChip.Label>\n {count && <SeedControlChip.Count>{count}</SeedControlChip.Count>}\n {suffixIcon && <SeedControlChip.SuffixIcon svg={suffixIcon} />}\n </>\n ) : (\n <SeedControlChip.Icon svg={children} />\n )}\n </SeedControlChip.Root>\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" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 <SeedExtendedFab.Root ref={ref} {...otherProps}>\n {prefixIcon && <SeedExtendedFab.PrefixIcon svg={prefixIcon} />}\n <SeedExtendedFab.Label>{children}</SeedExtendedFab.Label>\n </SeedExtendedFab.Root>\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 <SeedExtendedFab.Root ref={ref} {...otherProps}>\n {prefixIcon && <SeedExtendedFab.PrefixIcon svg={prefixIcon} />}\n <SeedExtendedFab.Label>{children}</SeedExtendedFab.Label>\n </SeedExtendedFab.Root>\n );\n});\nExtendedFab.displayName = \"ExtendedFab\";\n" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "fab", | ||
"dependencies": [ | ||
"@radix-ui/react-slot" | ||
"@seed-design/react" | ||
], | ||
"registries": [ | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters