@lotte-innovate/ui-component-test 0.1.50 → 0.1.52
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/.storybook/main.js +24 -0
- package/dist/cjs/.storybook/manager.js +17 -0
- package/dist/cjs/.storybook/preview.jsx +106 -0
- package/dist/cjs/lib/Typography/index.js +2 -10
- package/dist/cjs/lib/color/alpha.js +56 -60
- package/dist/cjs/lib/color/constants.js +75 -78
- package/dist/cjs/lib/color/dark.js +28 -31
- package/dist/cjs/lib/color/krdsColors.js +1 -4
- package/dist/cjs/lib/color/light.js +28 -31
- package/dist/cjs/lib/components/index.js +50 -106
- package/dist/cjs/lib/constants.js +54 -90
- package/dist/cjs/lib/index.js +2 -18
- package/dist/cjs/lib/types.js +1 -2
- package/dist/cjs/lib/utils/useDarkMode.js +12 -16
- package/dist/cjs/lib/utils/utils.js +4 -8
- package/dist/cjs/src/app/layout.jsx +17 -0
- package/dist/cjs/src/app/page.jsx +65 -0
- package/dist/cjs/src/app/template/colorPicker.jsx +21 -0
- package/dist/cjs/src/app/template/theme.jsx +22 -0
- package/dist/cjs/src/lib/Typography/index.js +10 -0
- package/dist/cjs/src/lib/color/alpha.js +788 -0
- package/dist/cjs/src/lib/color/constants.js +299 -0
- package/dist/cjs/src/lib/color/dark.js +395 -0
- package/dist/cjs/src/lib/color/krdsColors.js +312 -0
- package/dist/cjs/src/lib/color/light.js +396 -0
- package/dist/cjs/src/lib/components/index.js +108 -0
- package/dist/cjs/src/lib/constants.js +950 -0
- package/dist/cjs/src/lib/index.js +18 -0
- package/dist/cjs/src/lib/types.js +2 -0
- package/dist/cjs/src/lib/utils/useDarkMode.js +53 -0
- package/dist/cjs/src/lib/utils/utils.js +14 -0
- package/dist/cjs/src/stories/ToggleSwitch/ToggleSwitch.stories.jsx +125 -0
- package/dist/cjs/src/stories/Welcome.jsx +96 -0
- package/dist/cjs/src/stories/accordion/Accordion.stories.jsx +88 -0
- package/dist/cjs/src/stories/alert-dialog/AlertDialog.stories.jsx +79 -0
- package/dist/cjs/src/stories/aspect-ratio/AspectRatio.stories.jsx +115 -0
- package/dist/cjs/src/stories/avatar/Avatar.stories.jsx +120 -0
- package/dist/cjs/src/stories/badge/Badge.stories.jsx +148 -0
- package/dist/cjs/src/stories/bar-chart/BarChart.stories.jsx +114 -0
- package/dist/cjs/src/stories/bubble-chart/BubbleChart.stories.jsx +182 -0
- package/dist/cjs/src/stories/button/Button.stories.jsx +119 -0
- package/dist/cjs/src/stories/button/IconButton.stories.jsx +118 -0
- package/dist/cjs/src/stories/callout/Callout.stories.jsx +212 -0
- package/dist/cjs/src/stories/card/Card.stories.jsx +168 -0
- package/dist/cjs/src/stories/checkbox/Checkbox.stories.jsx +187 -0
- package/dist/cjs/src/stories/checkbox/CheckboxCard.stories.jsx +150 -0
- package/dist/cjs/src/stories/checkbox/CheckboxGroup.stories.jsx +150 -0
- package/dist/cjs/src/stories/context-menu/ContextMenu.stories.jsx +163 -0
- package/dist/cjs/src/stories/data-list/DataList.stories.jsx +193 -0
- package/dist/cjs/src/stories/dialog/Dialog.stories.jsx +183 -0
- package/dist/cjs/src/stories/doughnut-chart/DoughnutChart.stories.jsx +130 -0
- package/dist/cjs/src/stories/dropdown-menu/DropdownMenu.stories.jsx +156 -0
- package/dist/cjs/src/stories/header/Header.stories.jsx +127 -0
- package/dist/cjs/src/stories/hover-card/HoverCard.stories.jsx +150 -0
- package/dist/cjs/src/stories/inset/Inset.stories.jsx +105 -0
- package/dist/cjs/src/stories/label/Label.stories.jsx +119 -0
- package/dist/cjs/src/stories/line-chart/LineChart.stories.jsx +245 -0
- package/dist/cjs/src/stories/menubar/Menubar.stories.jsx +282 -0
- package/dist/cjs/src/stories/navigation-menu/NavigationMenu.stories.jsx +249 -0
- package/dist/cjs/src/stories/pie-chart/PieChart.stories.jsx +156 -0
- package/dist/cjs/src/stories/popover/Popover.stories.jsx +137 -0
- package/dist/cjs/src/stories/progress/Progress.stories.jsx +88 -0
- package/dist/cjs/src/stories/radar-chart/RadarChart.stories.jsx +134 -0
- package/dist/cjs/src/stories/radio/Radio.stories.jsx +117 -0
- package/dist/cjs/src/stories/radio/RadioCards.stories.jsx +147 -0
- package/dist/cjs/src/stories/radio/RadioGroup.stories.jsx +132 -0
- package/dist/cjs/src/stories/scroll-area/ScrollArea.stories.jsx +204 -0
- package/dist/cjs/src/stories/segmented-control/SegmentedControl.stories.jsx +107 -0
- package/dist/cjs/src/stories/select/Select.stories.jsx +187 -0
- package/dist/cjs/src/stories/separator/Separator.stories.jsx +112 -0
- package/dist/cjs/src/stories/skeleton/Skeleton.stories.jsx +126 -0
- package/dist/cjs/src/stories/slider/Slider.stories.jsx +100 -0
- package/dist/cjs/src/stories/spinner/Spinner.stories.jsx +122 -0
- package/dist/cjs/src/stories/tab-nav/TabNav.stories.jsx +102 -0
- package/dist/cjs/src/stories/table/Table.stories.jsx +139 -0
- package/dist/cjs/src/stories/tabs/Tabs.stories.jsx +126 -0
- package/dist/cjs/src/stories/text/Text.stories.jsx +123 -0
- package/dist/cjs/src/stories/textArea/TextArea.stories.jsx +119 -0
- package/dist/cjs/src/stories/textfield/TextField.stories.jsx +133 -0
- package/dist/cjs/src/stories/toast/Toast.stories.jsx +230 -0
- package/dist/cjs/src/stories/toggle/Toggle.stories.jsx +114 -0
- package/dist/cjs/src/stories/toggle/ToggleGroup.stories.jsx +158 -0
- package/dist/cjs/src/stories/tooltip/Tooltip.stories.jsx +98 -0
- package/dist/cjs/src/utils/chart.js +582 -0
- package/dist/cjs/src/utils/move-cjs.mjs +26 -0
- package/dist/cjs/src/utils/move-esm.mjs +40 -0
- package/dist/cjs/src/utils/move.mjs +60 -0
- package/dist/cjs/src/utils/post-publish.mjs +28 -0
- package/dist/cjs/tailwind.config.js +169 -0
- package/dist/cjs/tsconfig.tsbuildinfo +1 -0
- package/dist/esm/.storybook/main.js +22 -0
- package/dist/esm/.storybook/manager.js +12 -0
- package/dist/esm/.storybook/preview.jsx +80 -0
- package/dist/esm/src/app/layout.jsx +13 -0
- package/dist/esm/src/app/page.jsx +36 -0
- package/dist/esm/src/app/template/colorPicker.jsx +19 -0
- package/dist/esm/src/app/template/theme.jsx +17 -0
- package/dist/esm/src/stories/ToggleSwitch/ToggleSwitch.stories.jsx +118 -0
- package/dist/esm/src/stories/Welcome.jsx +68 -0
- package/dist/esm/src/stories/accordion/Accordion.stories.jsx +81 -0
- package/dist/esm/src/stories/alert-dialog/AlertDialog.stories.jsx +72 -0
- package/dist/esm/src/stories/aspect-ratio/AspectRatio.stories.jsx +106 -0
- package/dist/esm/src/stories/avatar/Avatar.stories.jsx +109 -0
- package/dist/esm/src/stories/badge/Badge.stories.jsx +135 -0
- package/dist/esm/src/stories/bar-chart/BarChart.stories.jsx +105 -0
- package/dist/esm/src/stories/bubble-chart/BubbleChart.stories.jsx +175 -0
- package/dist/esm/src/stories/button/Button.stories.jsx +105 -0
- package/dist/esm/src/stories/button/IconButton.stories.jsx +110 -0
- package/dist/esm/src/stories/callout/Callout.stories.jsx +202 -0
- package/dist/esm/src/stories/card/Card.stories.jsx +156 -0
- package/dist/esm/src/stories/checkbox/Checkbox.stories.jsx +174 -0
- package/dist/esm/src/stories/checkbox/CheckboxCard.stories.jsx +138 -0
- package/dist/esm/src/stories/checkbox/CheckboxGroup.stories.jsx +144 -0
- package/dist/esm/src/stories/context-menu/ContextMenu.stories.jsx +156 -0
- package/dist/esm/src/stories/data-list/DataList.stories.jsx +186 -0
- package/dist/esm/src/stories/dialog/Dialog.stories.jsx +173 -0
- package/dist/esm/src/stories/doughnut-chart/DoughnutChart.stories.jsx +118 -0
- package/dist/esm/src/stories/dropdown-menu/DropdownMenu.stories.jsx +146 -0
- package/dist/esm/src/stories/header/Header.stories.jsx +118 -0
- package/dist/esm/src/stories/hover-card/HoverCard.stories.jsx +143 -0
- package/dist/esm/src/stories/inset/Inset.stories.jsx +99 -0
- package/dist/esm/src/stories/label/Label.stories.jsx +112 -0
- package/dist/esm/src/stories/line-chart/LineChart.stories.jsx +234 -0
- package/dist/esm/src/stories/menubar/Menubar.stories.jsx +274 -0
- package/dist/esm/src/stories/navigation-menu/NavigationMenu.stories.jsx +237 -0
- package/dist/esm/src/stories/pie-chart/PieChart.stories.jsx +144 -0
- package/dist/esm/src/stories/popover/Popover.stories.jsx +128 -0
- package/dist/esm/src/stories/progress/Progress.stories.jsx +81 -0
- package/dist/esm/src/stories/radar-chart/RadarChart.stories.jsx +126 -0
- package/dist/esm/src/stories/radio/Radio.stories.jsx +110 -0
- package/dist/esm/src/stories/radio/RadioCards.stories.jsx +136 -0
- package/dist/esm/src/stories/radio/RadioGroup.stories.jsx +125 -0
- package/dist/esm/src/stories/scroll-area/ScrollArea.stories.jsx +197 -0
- package/dist/esm/src/stories/segmented-control/SegmentedControl.stories.jsx +100 -0
- package/dist/esm/src/stories/select/Select.stories.jsx +175 -0
- package/dist/esm/src/stories/separator/Separator.stories.jsx +105 -0
- package/dist/esm/src/stories/skeleton/Skeleton.stories.jsx +118 -0
- package/dist/esm/src/stories/slider/Slider.stories.jsx +93 -0
- package/dist/esm/src/stories/spinner/Spinner.stories.jsx +111 -0
- package/dist/esm/src/stories/tab-nav/TabNav.stories.jsx +94 -0
- package/dist/esm/src/stories/table/Table.stories.jsx +129 -0
- package/dist/esm/src/stories/tabs/Tabs.stories.jsx +118 -0
- package/dist/esm/src/stories/text/Text.stories.jsx +115 -0
- package/dist/esm/src/stories/textArea/TextArea.stories.jsx +111 -0
- package/dist/esm/src/stories/textfield/TextField.stories.jsx +122 -0
- package/dist/esm/src/stories/toast/Toast.stories.jsx +197 -0
- package/dist/esm/src/stories/toggle/Toggle.stories.jsx +106 -0
- package/dist/esm/src/stories/toggle/ToggleGroup.stories.jsx +151 -0
- package/dist/esm/src/stories/tooltip/Tooltip.stories.jsx +89 -0
- package/dist/esm/src/utils/chart.js +572 -0
- package/dist/esm/src/utils/move-cjs.mjs +21 -0
- package/dist/esm/src/utils/move-esm.mjs +35 -0
- package/dist/esm/src/utils/move.mjs +55 -0
- package/dist/esm/src/utils/post-publish.mjs +23 -0
- package/dist/esm/tailwind.config.js +144 -0
- package/dist/esm/tsconfig.tsbuildinfo +1 -0
- package/package.json +4 -5
- /package/dist/cjs/{lib → src/lib}/Typography/Header/index.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/Typography/Text/index.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/Accordion/index.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/AlertDialog/AlertDialogAction.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/AlertDialog/AlertDialogCancel.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/AlertDialog/AlertDialogContent.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/AlertDialog/AlertDialogDescription.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/AlertDialog/AlertDialogRoot.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/AlertDialog/AlertDialogTitle.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/AlertDialog/AlertDialogTrigger.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/AlertDialog/index.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/AspectRatio/index.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/Avatar/index.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/Badge/index.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/BarChart/index.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/BubbleChart/index.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/Button/index.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/Callout/CalloutIcon.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/Callout/CalloutRoot.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/Callout/CalloutText.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/Callout/index.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/Card/index.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/Checkbox/index.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/CheckboxCard/index.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/CheckboxGroup/CheckboxGroupItem.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/CheckboxGroup/CheckboxGroupRoot.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/CheckboxGroup/index.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/ContextMenu/ContextMenuCheckboxItem.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/ContextMenu/ContextMenuContent.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/ContextMenu/ContextMenuGroup.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/ContextMenu/ContextMenuItem.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/ContextMenu/ContextMenuItemIndicator.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/ContextMenu/ContextMenuLabel.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/ContextMenu/ContextMenuRadioGroup.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/ContextMenu/ContextMenuRadioItem.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/ContextMenu/ContextMenuRoot.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/ContextMenu/ContextMenuSeparator.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/ContextMenu/ContextMenuSubContent.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/ContextMenu/ContextMenuSubTrigger.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/ContextMenu/ContextMenuTrigger.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/ContextMenu/index.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/DataList/DataListItem.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/DataList/DataListLabel.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/DataList/DataListRoot.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/DataList/DataListValue.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/DataList/index.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/Dialog/DialogAction.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/Dialog/DialogCancel.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/Dialog/DialogContent.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/Dialog/DialogDescription.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/Dialog/DialogRoot.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/Dialog/DialogSlot.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/Dialog/DialogTitle.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/Dialog/DialogTrigger.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/Dialog/index.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/DoughnutChart/index.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/DropdownMenu/DropdonMenuRadioGroup.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/DropdownMenu/DropdonMenuSubContent.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/DropdownMenu/DropdownMenuCheckboxItem.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/DropdownMenu/DropdownMenuContent.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/DropdownMenu/DropdownMenuItem.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/DropdownMenu/DropdownMenuItemIndicator.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/DropdownMenu/DropdownMenuLable.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/DropdownMenu/DropdownMenuRadioItem.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/DropdownMenu/DropdownMenuRoot.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/DropdownMenu/DropdownMenuSeparator.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/DropdownMenu/DropdownMenuSub.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/DropdownMenu/DropdownMenuSubTrigger.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/DropdownMenu/DropdownMenuTrigger.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/DropdownMenu/index.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/HoverCard/HoverCardContent.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/HoverCard/HoverCardRoot.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/HoverCard/HoverCardTrigger.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/HoverCard/index.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/IconButton/index.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/Inset/index.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/Label/index.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/LineChart/index.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/Menubar/MenubarCheckboxItem.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/Menubar/MenubarContent.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/Menubar/MenubarItem.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/Menubar/MenubarItemIndicator.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/Menubar/MenubarMenu.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/Menubar/MenubarRadioGroup.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/Menubar/MenubarRadioItem.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/Menubar/MenubarRoot.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/Menubar/MenubarSeparator.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/Menubar/MenubarSub.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/Menubar/MenubarSubContent.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/Menubar/MenubarSubTrigger.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/Menubar/MenubarTrigger.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/Menubar/index.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/NavigationMenu/NavigationMenuContent.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/NavigationMenu/NavigationMenuIndicator.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/NavigationMenu/NavigationMenuItem.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/NavigationMenu/NavigationMenuLink.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/NavigationMenu/NavigationMenuList.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/NavigationMenu/NavigationMenuRoot.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/NavigationMenu/NavigationMenuTrigger.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/NavigationMenu/NavigationMenuViewport.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/NavigationMenu/index.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/PieChart/index.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/Popover/PopoverClose.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/Popover/PopoverContent.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/Popover/PopoverRoot.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/Popover/PopoverTrigger.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/Popover/index.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/Progress/index.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/RadarChart/index.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/Radio/index.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/RadioCards/RadioCardsItem.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/RadioCards/RadioCardsRoot.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/RadioCards/index.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/RadioGroup/RadioGroupItem.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/RadioGroup/RadioGroupRoot.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/RadioGroup/index.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/ScrollArea/index.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/SegmentedControl/SegmentedControlItem.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/SegmentedControl/SegmentedControlRoot.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/SegmentedControl/index.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/Select/index.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/Separator/index.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/Skeleton/index.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/Slider/index.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/Spinner/index.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/TabNav/index.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/Table/index.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/Tabs/index.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/TextArea/index.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/TextField/index.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/Toast/ToastActionButton.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/Toast/ToastDescription.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/Toast/ToastRoot.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/Toast/ToastTitle.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/Toast/index.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/Toggle/ToggleWithText.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/Toggle/index.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/ToggleGroup/ToggleGroupItem.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/ToggleGroup/ToggleGroupRoot.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/ToggleGroup/index.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/ToggleSwitch/index.jsx +0 -0
- /package/dist/cjs/{lib → src/lib}/components/Tooltip/index.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/Typography/Header/index.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/Typography/Text/index.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/Typography/index.js +0 -0
- /package/dist/esm/{lib → src/lib}/color/alpha.js +0 -0
- /package/dist/esm/{lib → src/lib}/color/constants.js +0 -0
- /package/dist/esm/{lib → src/lib}/color/dark.js +0 -0
- /package/dist/esm/{lib → src/lib}/color/krdsColors.js +0 -0
- /package/dist/esm/{lib → src/lib}/color/light.js +0 -0
- /package/dist/esm/{lib → src/lib}/components/Accordion/index.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/AlertDialog/AlertDialogAction.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/AlertDialog/AlertDialogCancel.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/AlertDialog/AlertDialogContent.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/AlertDialog/AlertDialogDescription.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/AlertDialog/AlertDialogRoot.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/AlertDialog/AlertDialogTitle.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/AlertDialog/AlertDialogTrigger.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/AlertDialog/index.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/AspectRatio/index.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/Avatar/index.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/Badge/index.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/BarChart/index.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/BubbleChart/index.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/Button/index.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/Callout/CalloutIcon.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/Callout/CalloutRoot.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/Callout/CalloutText.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/Callout/index.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/Card/index.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/Checkbox/index.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/CheckboxCard/index.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/CheckboxGroup/CheckboxGroupItem.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/CheckboxGroup/CheckboxGroupRoot.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/CheckboxGroup/index.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/ContextMenu/ContextMenuCheckboxItem.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/ContextMenu/ContextMenuContent.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/ContextMenu/ContextMenuGroup.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/ContextMenu/ContextMenuItem.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/ContextMenu/ContextMenuItemIndicator.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/ContextMenu/ContextMenuLabel.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/ContextMenu/ContextMenuRadioGroup.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/ContextMenu/ContextMenuRadioItem.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/ContextMenu/ContextMenuRoot.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/ContextMenu/ContextMenuSeparator.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/ContextMenu/ContextMenuSubContent.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/ContextMenu/ContextMenuSubTrigger.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/ContextMenu/ContextMenuTrigger.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/ContextMenu/index.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/DataList/DataListItem.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/DataList/DataListLabel.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/DataList/DataListRoot.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/DataList/DataListValue.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/DataList/index.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/Dialog/DialogAction.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/Dialog/DialogCancel.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/Dialog/DialogContent.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/Dialog/DialogDescription.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/Dialog/DialogRoot.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/Dialog/DialogSlot.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/Dialog/DialogTitle.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/Dialog/DialogTrigger.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/Dialog/index.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/DoughnutChart/index.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/DropdownMenu/DropdonMenuRadioGroup.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/DropdownMenu/DropdonMenuSubContent.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/DropdownMenu/DropdownMenuCheckboxItem.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/DropdownMenu/DropdownMenuContent.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/DropdownMenu/DropdownMenuItem.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/DropdownMenu/DropdownMenuItemIndicator.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/DropdownMenu/DropdownMenuLable.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/DropdownMenu/DropdownMenuRadioItem.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/DropdownMenu/DropdownMenuRoot.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/DropdownMenu/DropdownMenuSeparator.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/DropdownMenu/DropdownMenuSub.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/DropdownMenu/DropdownMenuSubTrigger.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/DropdownMenu/DropdownMenuTrigger.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/DropdownMenu/index.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/HoverCard/HoverCardContent.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/HoverCard/HoverCardRoot.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/HoverCard/HoverCardTrigger.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/HoverCard/index.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/IconButton/index.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/Inset/index.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/Label/index.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/LineChart/index.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/Menubar/MenubarCheckboxItem.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/Menubar/MenubarContent.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/Menubar/MenubarItem.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/Menubar/MenubarItemIndicator.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/Menubar/MenubarMenu.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/Menubar/MenubarRadioGroup.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/Menubar/MenubarRadioItem.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/Menubar/MenubarRoot.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/Menubar/MenubarSeparator.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/Menubar/MenubarSub.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/Menubar/MenubarSubContent.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/Menubar/MenubarSubTrigger.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/Menubar/MenubarTrigger.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/Menubar/index.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/NavigationMenu/NavigationMenuContent.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/NavigationMenu/NavigationMenuIndicator.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/NavigationMenu/NavigationMenuItem.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/NavigationMenu/NavigationMenuLink.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/NavigationMenu/NavigationMenuList.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/NavigationMenu/NavigationMenuRoot.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/NavigationMenu/NavigationMenuTrigger.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/NavigationMenu/NavigationMenuViewport.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/NavigationMenu/index.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/PieChart/index.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/Popover/PopoverClose.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/Popover/PopoverContent.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/Popover/PopoverRoot.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/Popover/PopoverTrigger.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/Popover/index.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/Progress/index.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/RadarChart/index.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/Radio/index.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/RadioCards/RadioCardsItem.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/RadioCards/RadioCardsRoot.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/RadioCards/index.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/RadioGroup/RadioGroupItem.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/RadioGroup/RadioGroupRoot.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/RadioGroup/index.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/ScrollArea/index.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/SegmentedControl/SegmentedControlItem.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/SegmentedControl/SegmentedControlRoot.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/SegmentedControl/index.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/Select/index.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/Separator/index.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/Skeleton/index.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/Slider/index.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/Spinner/index.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/TabNav/index.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/Table/index.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/Tabs/index.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/TextArea/index.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/TextField/index.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/Toast/ToastActionButton.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/Toast/ToastDescription.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/Toast/ToastRoot.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/Toast/ToastTitle.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/Toast/index.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/Toggle/ToggleWithText.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/Toggle/index.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/ToggleGroup/ToggleGroupItem.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/ToggleGroup/ToggleGroupRoot.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/ToggleGroup/index.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/ToggleSwitch/index.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/Tooltip/index.jsx +0 -0
- /package/dist/esm/{lib → src/lib}/components/index.js +0 -0
- /package/dist/esm/{lib → src/lib}/constants.js +0 -0
- /package/dist/esm/{lib → src/lib}/index.js +0 -0
- /package/dist/esm/{lib → src/lib}/types.js +0 -0
- /package/dist/esm/{lib → src/lib}/utils/useDarkMode.js +0 -0
- /package/dist/esm/{lib → src/lib}/utils/utils.js +0 -0
@@ -0,0 +1,128 @@
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
2
|
+
__assign = Object.assign || function(t) {
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
4
|
+
s = arguments[i];
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
6
|
+
t[p] = s[p];
|
7
|
+
}
|
8
|
+
return t;
|
9
|
+
};
|
10
|
+
return __assign.apply(this, arguments);
|
11
|
+
};
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
13
|
+
var t = {};
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
15
|
+
t[p] = s[p];
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
19
|
+
t[p[i]] = s[p[i]];
|
20
|
+
}
|
21
|
+
return t;
|
22
|
+
};
|
23
|
+
import { commonArgTypes, sizeOptions, radiusOptions } from 'lib/constants';
|
24
|
+
import { Popover, Inset, TextArea } from 'lib';
|
25
|
+
import Button from 'lib/components/Button';
|
26
|
+
import Avatar from 'lib/components/Avatar';
|
27
|
+
var meta = {
|
28
|
+
title: 'Component/Popover',
|
29
|
+
component: Popover.Root,
|
30
|
+
parameters: {
|
31
|
+
layout: 'centered',
|
32
|
+
themes: {
|
33
|
+
themeOverride: 'dark',
|
34
|
+
},
|
35
|
+
docs: {
|
36
|
+
description: {
|
37
|
+
component: '특정 개체 위에 포인트를 클릭했을 때 제공되는 컨테이너 요소',
|
38
|
+
},
|
39
|
+
},
|
40
|
+
},
|
41
|
+
argTypes: {
|
42
|
+
radius: __assign(__assign({}, commonArgTypes.radius), { description: 'popover 둥글기' }),
|
43
|
+
size: __assign(__assign({}, commonArgTypes.size), { table: {
|
44
|
+
category: 'Props',
|
45
|
+
type: {
|
46
|
+
summary: sizeOptions.filter(function (value) { return value != 'x-small'; }).join(' | '),
|
47
|
+
},
|
48
|
+
}, options: sizeOptions.filter(function (value) { return value != 'x-small'; }), description: 'popover 크기' }),
|
49
|
+
scaling: __assign(__assign({}, commonArgTypes.scaling), { description: 'popover 비율' }),
|
50
|
+
},
|
51
|
+
args: {
|
52
|
+
size: 'medium',
|
53
|
+
},
|
54
|
+
};
|
55
|
+
export default meta;
|
56
|
+
var avatarSize = {
|
57
|
+
small: '2',
|
58
|
+
medium: '3',
|
59
|
+
large: '4',
|
60
|
+
'x-large': '5',
|
61
|
+
};
|
62
|
+
export var Default = function (_a) {
|
63
|
+
var args = __rest(_a, []);
|
64
|
+
return (<Popover.Root {...args}>
|
65
|
+
<Popover.Trigger>
|
66
|
+
<Button>Comment</Button>
|
67
|
+
</Popover.Trigger>
|
68
|
+
<Popover.Content>
|
69
|
+
<Avatar imagePath="https://images.unsplash.com/photo-1607346256330-dee7af15f7c5?&w=64&h=64&dpr=2&q=70&crop=focalpoint&fp-x=0.67&fp-y=0.5&fp-z=1.4&fit=crop" size={avatarSize[args.size]} radius={args.radius}/>
|
70
|
+
<div className="grow">
|
71
|
+
<TextArea placeholder="Write a comment…" size={args.size} radius={args.radius} className="w-full"/>
|
72
|
+
<div className="mt-3 flex justify-end">
|
73
|
+
<Popover.Close>
|
74
|
+
<Button size={args.size} radius={args.radius}>
|
75
|
+
Comment
|
76
|
+
</Button>
|
77
|
+
</Popover.Close>
|
78
|
+
</div>
|
79
|
+
</div>
|
80
|
+
</Popover.Content>
|
81
|
+
</Popover.Root>);
|
82
|
+
};
|
83
|
+
export var Radius = function (_a) {
|
84
|
+
var args = __rest(_a, []);
|
85
|
+
return (<div className="flex space-x-4">
|
86
|
+
{radiusOptions.map(function (radius) { return (<Popover.Root {...args} key={radius} radius={radius}>
|
87
|
+
<Popover.Trigger>
|
88
|
+
<Button>{radius}</Button>
|
89
|
+
</Popover.Trigger>
|
90
|
+
<Popover.Content>
|
91
|
+
<Avatar imagePath="https://images.unsplash.com/photo-1607346256330-dee7af15f7c5?&w=64&h=64&dpr=2&q=70&crop=focalpoint&fp-x=0.67&fp-y=0.5&fp-z=1.4&fit=crop" size={avatarSize[args.size]} radius={args.radius}/>
|
92
|
+
<div className="grow">
|
93
|
+
<TextArea placeholder="Write a comment…" size={args.size} radius={args.radius} className="w-full"/>
|
94
|
+
<div className="mt-3 flex justify-end">
|
95
|
+
<Popover.Close>
|
96
|
+
<Button size={args.size} radius={args.radius}>
|
97
|
+
Comment
|
98
|
+
</Button>
|
99
|
+
</Popover.Close>
|
100
|
+
</div>
|
101
|
+
</div>
|
102
|
+
</Popover.Content>
|
103
|
+
</Popover.Root>); })}
|
104
|
+
</div>);
|
105
|
+
};
|
106
|
+
export var WithInset = function (_a) {
|
107
|
+
var args = __rest(_a, []);
|
108
|
+
return (<Popover.Root {...args}>
|
109
|
+
<Popover.Trigger>
|
110
|
+
<Button>Share image</Button>
|
111
|
+
</Popover.Trigger>
|
112
|
+
<Popover.Content>
|
113
|
+
<Inset side="left" pr="current">
|
114
|
+
<div className="grid grid-cols-[130px_1fr]">
|
115
|
+
<img src="https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?&auto=format&fit=crop&w=400&q=80" alt="toggle with inset" style={{ objectFit: 'cover', width: '100%', height: '100%' }}/>
|
116
|
+
<div className="p-4">
|
117
|
+
<span>Minimalistic 3D rendering wallpaper.</span>
|
118
|
+
<div className="mt-2 flex-col items-stretch">
|
119
|
+
<Popover.Close>
|
120
|
+
<Button {...args}>Copy link</Button>
|
121
|
+
</Popover.Close>
|
122
|
+
</div>
|
123
|
+
</div>
|
124
|
+
</div>
|
125
|
+
</Inset>
|
126
|
+
</Popover.Content>
|
127
|
+
</Popover.Root>);
|
128
|
+
};
|
@@ -0,0 +1,81 @@
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
2
|
+
__assign = Object.assign || function(t) {
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
4
|
+
s = arguments[i];
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
6
|
+
t[p] = s[p];
|
7
|
+
}
|
8
|
+
return t;
|
9
|
+
};
|
10
|
+
return __assign.apply(this, arguments);
|
11
|
+
};
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
13
|
+
var t = {};
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
15
|
+
t[p] = s[p];
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
19
|
+
t[p[i]] = s[p[i]];
|
20
|
+
}
|
21
|
+
return t;
|
22
|
+
};
|
23
|
+
import { commonArgTypes, radiusOptions, sizeOptions } from 'lib/constants';
|
24
|
+
import { Progress } from 'lib/components/Progress';
|
25
|
+
var meta = {
|
26
|
+
title: 'Component/Progress',
|
27
|
+
component: Progress,
|
28
|
+
parameters: {
|
29
|
+
layout: 'centered',
|
30
|
+
themes: {
|
31
|
+
themeOverride: 'dark',
|
32
|
+
},
|
33
|
+
docs: {
|
34
|
+
description: {
|
35
|
+
component: '작업의 진행 상황을 시각적으로 표시',
|
36
|
+
},
|
37
|
+
},
|
38
|
+
},
|
39
|
+
argTypes: {
|
40
|
+
radius: __assign(__assign({}, commonArgTypes.radius), { description: 'progress 둥글기' }),
|
41
|
+
size: __assign(__assign({}, commonArgTypes.size), { table: {
|
42
|
+
category: 'Props',
|
43
|
+
type: {
|
44
|
+
summary: sizeOptions
|
45
|
+
.filter(function (value) { return value != 'x-small' && value != 'x-large'; })
|
46
|
+
.join(' | '),
|
47
|
+
},
|
48
|
+
}, options: sizeOptions.filter(function (value) { return value != 'x-small' && value != 'x-large'; }), description: 'popover 크기' }),
|
49
|
+
scaling: __assign(__assign({}, commonArgTypes.scaling), { description: 'progress 비율' }),
|
50
|
+
color: __assign(__assign({}, commonArgTypes.color), { description: 'progress color' }),
|
51
|
+
appearance: __assign(__assign({}, commonArgTypes.appearance), { table: {
|
52
|
+
category: 'Props',
|
53
|
+
type: { summary: ['classic', 'surface', 'soft'].join(' | ') },
|
54
|
+
}, description: 'progress 스타일', options: ['classic', 'surface', 'soft'], defaultValue: { summary: 'surface' } }),
|
55
|
+
},
|
56
|
+
};
|
57
|
+
export default meta;
|
58
|
+
export var Default = function (_a) {
|
59
|
+
var args = __rest(_a, []);
|
60
|
+
return <Progress {...args} aria-label="Progress"/>;
|
61
|
+
};
|
62
|
+
export var Radius = function (_a) {
|
63
|
+
var args = __rest(_a, []);
|
64
|
+
return (<div className="flex flex-col space-y-3">
|
65
|
+
{radiusOptions.map(function (radius) { return (<Progress key={radius} value={25} {...args} radius={radius}/>); })}
|
66
|
+
</div>);
|
67
|
+
};
|
68
|
+
export var Size = function (_a) {
|
69
|
+
var args = __rest(_a, []);
|
70
|
+
return (<div className="flex flex-col space-y-3">
|
71
|
+
{sizeOptions
|
72
|
+
.filter(function (value) { return value != 'x-small' && value != 'x-large'; })
|
73
|
+
.map(function (size) { return (<Progress key={size} value={25} {...args} size={size}/>); })}
|
74
|
+
</div>);
|
75
|
+
};
|
76
|
+
export var Appearance = function (_a) {
|
77
|
+
var args = __rest(_a, []);
|
78
|
+
return (<div className="flex flex-col space-y-3">
|
79
|
+
{['classic', 'surface', 'soft'].map(function (appearance) { return (<Default key={appearance} value={25} {...args} appearance={appearance}/>); })}
|
80
|
+
</div>);
|
81
|
+
};
|
@@ -0,0 +1,126 @@
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
2
|
+
__assign = Object.assign || function(t) {
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
4
|
+
s = arguments[i];
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
6
|
+
t[p] = s[p];
|
7
|
+
}
|
8
|
+
return t;
|
9
|
+
};
|
10
|
+
return __assign.apply(this, arguments);
|
11
|
+
};
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
13
|
+
var t = {};
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
15
|
+
t[p] = s[p];
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
19
|
+
t[p[i]] = s[p[i]];
|
20
|
+
}
|
21
|
+
return t;
|
22
|
+
};
|
23
|
+
import { RadarChart } from 'lib/components/RadarChart';
|
24
|
+
import { commonArgTypes, chartDatalabelsArgsTypes, chartLegendArgTypes, chartTitleArgTypes, } from 'lib/constants';
|
25
|
+
var data = {
|
26
|
+
title: {
|
27
|
+
display: true,
|
28
|
+
text: '레이더 차트 타이틀 영역입니다.',
|
29
|
+
},
|
30
|
+
labels: ['Red', 'Blue', 'Yellow', 'Green', 'Purple', 'Orange'],
|
31
|
+
datasets: [
|
32
|
+
{
|
33
|
+
label: 'A',
|
34
|
+
data: [160, 200, 180, 190, 170, 180],
|
35
|
+
pointStyle: false,
|
36
|
+
fill: false,
|
37
|
+
},
|
38
|
+
{
|
39
|
+
label: 'B',
|
40
|
+
data: [186, 215, 207, 200, 209, 214],
|
41
|
+
pointStyle: false,
|
42
|
+
fill: false,
|
43
|
+
},
|
44
|
+
{
|
45
|
+
label: 'C',
|
46
|
+
data: [250, 230, 237, 250, 240, 250],
|
47
|
+
pointStyle: false,
|
48
|
+
fill: false,
|
49
|
+
},
|
50
|
+
],
|
51
|
+
datalabels: {
|
52
|
+
display: true,
|
53
|
+
},
|
54
|
+
};
|
55
|
+
var meta = {
|
56
|
+
title: 'Chart/RadarChart',
|
57
|
+
component: RadarChart,
|
58
|
+
parameters: {
|
59
|
+
layout: 'centered',
|
60
|
+
themes: {
|
61
|
+
themeOverride: 'dark',
|
62
|
+
},
|
63
|
+
docs: {
|
64
|
+
description: {
|
65
|
+
component: '여러 변수의 상대적인 크기를 한 눈에 비교하기 쉽게 표현하는데 사용되는 그래프',
|
66
|
+
},
|
67
|
+
},
|
68
|
+
},
|
69
|
+
args: {
|
70
|
+
title: data.title,
|
71
|
+
labels: data.labels,
|
72
|
+
datasets: data.datasets,
|
73
|
+
},
|
74
|
+
argTypes: __assign(__assign(__assign(__assign({ scaling: __assign(__assign({}, commonArgTypes.scaling), { description: '차트 크기 비율' }), labels: __assign({}, commonArgTypes.labels), datasets: __assign({}, commonArgTypes.datasets), appearance: __assign({}, commonArgTypes.chartAppearance), isColorMixed: __assign({}, commonArgTypes.isColorMixed) }, chartTitleArgTypes), chartLegendArgTypes), chartDatalabelsArgsTypes), { className: {
|
75
|
+
table: {
|
76
|
+
disable: true,
|
77
|
+
},
|
78
|
+
}, width: {
|
79
|
+
table: {
|
80
|
+
disable: true,
|
81
|
+
},
|
82
|
+
}, height: {
|
83
|
+
table: {
|
84
|
+
disable: true,
|
85
|
+
},
|
86
|
+
} }),
|
87
|
+
};
|
88
|
+
export default meta;
|
89
|
+
export var Default = function (_a) {
|
90
|
+
var args = __rest(_a, []);
|
91
|
+
return (<div className="w-[400px]">
|
92
|
+
<RadarChart width={400} height={300} title={args.title} labels={args.labels} datasets={args.datasets} {...args} aria-label="RadarChart"/>
|
93
|
+
</div>);
|
94
|
+
};
|
95
|
+
export var DotsRadarChart = function (_a) {
|
96
|
+
var args = __rest(_a, []);
|
97
|
+
var datasets = [
|
98
|
+
__assign(__assign({}, data.datasets[0]), { pointStyle: 'circle' }),
|
99
|
+
];
|
100
|
+
return (<div className="w-[400px]">
|
101
|
+
<RadarChart width={400} height={300} labels={args.labels} {...args} datasets={datasets}/>
|
102
|
+
</div>);
|
103
|
+
};
|
104
|
+
export var SoftAppearance = function (_a) {
|
105
|
+
var args = __rest(_a, []);
|
106
|
+
var datasets = [
|
107
|
+
__assign(__assign({}, data.datasets[0]), { fill: true }),
|
108
|
+
__assign(__assign({}, data.datasets[1]), { fill: true }),
|
109
|
+
__assign(__assign({}, data.datasets[2]), { fill: true }),
|
110
|
+
];
|
111
|
+
return (<div className="w-[400px]">
|
112
|
+
<RadarChart width={400} height={300} labels={args.labels} {...args} appearance="soft" datasets={datasets}/>
|
113
|
+
</div>);
|
114
|
+
};
|
115
|
+
export var NotMixedAppearance = function (_a) {
|
116
|
+
var args = __rest(_a, []);
|
117
|
+
return (<div className="w-[400px]">
|
118
|
+
<RadarChart width={400} height={300} labels={args.labels} datasets={args.datasets} isColorMixed={false} {...args}/>
|
119
|
+
</div>);
|
120
|
+
};
|
121
|
+
export var DataLabels = function (_a) {
|
122
|
+
var args = __rest(_a, []);
|
123
|
+
return (<div className="w-[400px]">
|
124
|
+
<RadarChart width={400} height={300} labels={args.labels} datasets={args.datasets} datalabels={args.datalabels} {...args}/>
|
125
|
+
</div>);
|
126
|
+
};
|
@@ -0,0 +1,110 @@
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
2
|
+
__assign = Object.assign || function(t) {
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
4
|
+
s = arguments[i];
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
6
|
+
t[p] = s[p];
|
7
|
+
}
|
8
|
+
return t;
|
9
|
+
};
|
10
|
+
return __assign.apply(this, arguments);
|
11
|
+
};
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
13
|
+
var t = {};
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
15
|
+
t[p] = s[p];
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
19
|
+
t[p[i]] = s[p[i]];
|
20
|
+
}
|
21
|
+
return t;
|
22
|
+
};
|
23
|
+
import { commonArgTypes, sizeOptions } from 'lib/constants';
|
24
|
+
import { Radio } from 'lib/components/Radio/index';
|
25
|
+
var meta = {
|
26
|
+
title: 'Component/Radio',
|
27
|
+
component: Radio,
|
28
|
+
parameters: {
|
29
|
+
layout: 'centered',
|
30
|
+
themes: {
|
31
|
+
themeOverride: 'dark',
|
32
|
+
},
|
33
|
+
docs: {
|
34
|
+
description: {
|
35
|
+
component: '선택지 중 한가지만 선택할 수 있는 기능',
|
36
|
+
},
|
37
|
+
},
|
38
|
+
},
|
39
|
+
argTypes: {
|
40
|
+
disabled: {
|
41
|
+
description: 'radio disabled',
|
42
|
+
defaultValue: { summary: 'false' },
|
43
|
+
table: {
|
44
|
+
category: 'Props',
|
45
|
+
type: { summary: 'boolean' },
|
46
|
+
},
|
47
|
+
control: { type: 'boolean' },
|
48
|
+
},
|
49
|
+
size: __assign(__assign({}, commonArgTypes.size), { table: {
|
50
|
+
category: 'Props',
|
51
|
+
type: {
|
52
|
+
summary: sizeOptions
|
53
|
+
.filter(function (size) { return !['x-small', 'x-large'].includes(size); })
|
54
|
+
.join(' | '),
|
55
|
+
},
|
56
|
+
}, options: sizeOptions.filter(function (size) { return !['x-small', 'x-large'].includes(size); }), description: 'radio 크기' }),
|
57
|
+
scaling: __assign(__assign({}, commonArgTypes.scaling), { description: 'radio scaling' }),
|
58
|
+
color: __assign(__assign({}, commonArgTypes.color), { description: 'radio color', defaultValue: { summary: 'red' } }),
|
59
|
+
appearance: {
|
60
|
+
table: {
|
61
|
+
category: 'Props',
|
62
|
+
type: { summary: ['classic', 'soft', 'surface'].join(' | ') },
|
63
|
+
},
|
64
|
+
control: { type: 'select' },
|
65
|
+
options: ['classic', 'soft', 'surface'],
|
66
|
+
defaultValue: { summary: 'surface' },
|
67
|
+
},
|
68
|
+
},
|
69
|
+
};
|
70
|
+
export default meta;
|
71
|
+
export var Default = function (_a) {
|
72
|
+
var args = __rest(_a, []);
|
73
|
+
return (<>
|
74
|
+
<Radio value={'1'} name={'example'} {...args} defaultChecked>
|
75
|
+
radio option1
|
76
|
+
</Radio>
|
77
|
+
<Radio value={'2'} name={'example'} {...args}>
|
78
|
+
radio option2
|
79
|
+
</Radio>
|
80
|
+
</>);
|
81
|
+
};
|
82
|
+
export var Size = function (_a) {
|
83
|
+
var args = __rest(_a, []);
|
84
|
+
return (<div className="flex items-center space-x-4">
|
85
|
+
{['small', 'medium', 'large'].map(function (size) { return (<Radio key={size} size={size} value={'1'} name={'size'} defaultChecked={size === 'small'} {...args}/>); })}
|
86
|
+
</div>);
|
87
|
+
};
|
88
|
+
export var Appearance = function (_a) {
|
89
|
+
var args = __rest(_a, []);
|
90
|
+
return (<div className="flex items-center space-x-4">
|
91
|
+
{['classic', 'soft', 'surface'].map(function (appearance) { return (<Radio key={appearance} value={appearance} appearance={appearance} name={'appearance'} defaultChecked={appearance === 'classic'} {...args}/>); })}
|
92
|
+
</div>);
|
93
|
+
};
|
94
|
+
export var Color = function (_a) {
|
95
|
+
var args = __rest(_a, []);
|
96
|
+
return (<div className="flex items-center space-x-3">
|
97
|
+
<Radio value={'1'} name={'color'} {...args} color={'blue'} defaultChecked>
|
98
|
+
blue
|
99
|
+
</Radio>
|
100
|
+
<Radio value={'2'} name={'color'} {...args} color={'crimson'}>
|
101
|
+
crimson
|
102
|
+
</Radio>
|
103
|
+
<Radio value={'3'} name={'color'} {...args} color={'teal'}>
|
104
|
+
teal
|
105
|
+
</Radio>
|
106
|
+
<Radio value={'4'} name={'color'} {...args} color={'orange'}>
|
107
|
+
orange
|
108
|
+
</Radio>
|
109
|
+
</div>);
|
110
|
+
};
|
@@ -0,0 +1,136 @@
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
2
|
+
__assign = Object.assign || function(t) {
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
4
|
+
s = arguments[i];
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
6
|
+
t[p] = s[p];
|
7
|
+
}
|
8
|
+
return t;
|
9
|
+
};
|
10
|
+
return __assign.apply(this, arguments);
|
11
|
+
};
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
13
|
+
var t = {};
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
15
|
+
t[p] = s[p];
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
19
|
+
t[p[i]] = s[p[i]];
|
20
|
+
}
|
21
|
+
return t;
|
22
|
+
};
|
23
|
+
import { commonArgTypes, radiusOptions, sizeOptions } from 'lib/constants';
|
24
|
+
import RadioCards from 'lib/components/RadioCards';
|
25
|
+
var meta = {
|
26
|
+
title: 'Component/RadioCards',
|
27
|
+
component: RadioCards.Root,
|
28
|
+
parameters: {
|
29
|
+
layout: 'centered',
|
30
|
+
themes: {
|
31
|
+
themeOverride: 'dark',
|
32
|
+
},
|
33
|
+
docs: {
|
34
|
+
description: {
|
35
|
+
component: '선택 가능한 Radio가 카드 형식으로 구성되어 있다.',
|
36
|
+
},
|
37
|
+
},
|
38
|
+
},
|
39
|
+
argTypes: {
|
40
|
+
radius: __assign(__assign({}, commonArgTypes.radius), { table: {
|
41
|
+
category: 'Theme Props',
|
42
|
+
type: {
|
43
|
+
summary: radiusOptions.join(' | '),
|
44
|
+
},
|
45
|
+
}, options: radiusOptions, description: 'radioCards 둥글기' }),
|
46
|
+
disabled: {
|
47
|
+
description: 'radioCards disabled',
|
48
|
+
defaultValue: { summary: 'false' },
|
49
|
+
table: {
|
50
|
+
category: 'Props',
|
51
|
+
type: { summary: 'boolean' },
|
52
|
+
},
|
53
|
+
control: { type: 'boolean' },
|
54
|
+
},
|
55
|
+
size: __assign(__assign({}, commonArgTypes.size), { table: {
|
56
|
+
category: 'Props',
|
57
|
+
type: {
|
58
|
+
summary: sizeOptions
|
59
|
+
.filter(function (size) { return !['x-small', 'x-large'].includes(size); })
|
60
|
+
.join(' | '),
|
61
|
+
},
|
62
|
+
}, options: sizeOptions.filter(function (size) { return !['x-small', 'x-large'].includes(size); }), description: 'radioCards 크기' }),
|
63
|
+
scaling: __assign(__assign({}, commonArgTypes.scaling), { description: 'radioCards scaling' }),
|
64
|
+
color: __assign(__assign({}, commonArgTypes.color), { description: 'radioCards 테두리 color', defaultValue: { summary: 'red' } }),
|
65
|
+
appearance: {
|
66
|
+
table: {
|
67
|
+
category: 'Props',
|
68
|
+
type: { summary: ['classic', 'surface'].join(' | ') },
|
69
|
+
},
|
70
|
+
control: { type: 'select' },
|
71
|
+
options: ['classic', 'surface'],
|
72
|
+
defaultValue: { summary: 'surface' },
|
73
|
+
},
|
74
|
+
},
|
75
|
+
};
|
76
|
+
export default meta;
|
77
|
+
export var Default = function (_a) {
|
78
|
+
var args = __rest(_a, []);
|
79
|
+
return (<RadioCards.Root {...args} defaultValue="1">
|
80
|
+
<RadioCards.Item value="1">radioCard 1</RadioCards.Item>
|
81
|
+
<RadioCards.Item value="2">radioCard 2</RadioCards.Item>
|
82
|
+
<RadioCards.Item value="3">radioCard 3</RadioCards.Item>
|
83
|
+
</RadioCards.Root>);
|
84
|
+
};
|
85
|
+
export var Radius = function (_a) {
|
86
|
+
var args = __rest(_a, []);
|
87
|
+
return (<div className="space-y-2">
|
88
|
+
{radiusOptions.map(function (radius) { return (<div className="flex items-center space-x-4" key={radius}>
|
89
|
+
<RadioCards.Root {...args} radius={radius}>
|
90
|
+
<RadioCards.Item value={radius}>{radius}</RadioCards.Item>
|
91
|
+
</RadioCards.Root>
|
92
|
+
</div>); })}
|
93
|
+
</div>);
|
94
|
+
};
|
95
|
+
export var Appearance = function (_a) {
|
96
|
+
var args = __rest(_a, []);
|
97
|
+
return (<div className="flex space-x-4">
|
98
|
+
<RadioCards.Root {...args} appearance={'classic'}>
|
99
|
+
<RadioCards.Item value={'classic'}>classic</RadioCards.Item>
|
100
|
+
</RadioCards.Root>
|
101
|
+
<RadioCards.Root {...args} appearance={'surface'}>
|
102
|
+
<RadioCards.Item value={'surface'}>surface</RadioCards.Item>
|
103
|
+
</RadioCards.Root>
|
104
|
+
</div>);
|
105
|
+
};
|
106
|
+
export var Size = function (_a) {
|
107
|
+
var args = __rest(_a, []);
|
108
|
+
return (<div className="space-y-2">
|
109
|
+
{['small', 'medium', 'large'].map(function (size) { return (<div className="flex items-center space-x-4" key={size}>
|
110
|
+
<RadioCards.Root {...args} size={size}>
|
111
|
+
<RadioCards.Item value={size}>{size}</RadioCards.Item>
|
112
|
+
</RadioCards.Root>
|
113
|
+
</div>); })}
|
114
|
+
</div>);
|
115
|
+
};
|
116
|
+
export var States = function (_a) {
|
117
|
+
var args = __rest(_a, []);
|
118
|
+
return (<div className="space-y-2">
|
119
|
+
<div className="flex items-center space-x-4">
|
120
|
+
<RadioCards.Root {...args} defaultValue="On">
|
121
|
+
<RadioCards.Item value="Off">Off</RadioCards.Item>
|
122
|
+
<RadioCards.Item value="On">On</RadioCards.Item>
|
123
|
+
</RadioCards.Root>
|
124
|
+
</div>
|
125
|
+
<div className="flex items-center space-x-4">
|
126
|
+
<RadioCards.Root {...args} defaultValue="On">
|
127
|
+
<RadioCards.Item value="Off" disabled>
|
128
|
+
Off
|
129
|
+
</RadioCards.Item>
|
130
|
+
<RadioCards.Item value="On" disabled>
|
131
|
+
On
|
132
|
+
</RadioCards.Item>
|
133
|
+
</RadioCards.Root>
|
134
|
+
</div>
|
135
|
+
</div>);
|
136
|
+
};
|