@lotte-innovate/ui-component-test 0.1.51 → 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 +3 -3
- /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,60 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
var child_process_1 = require("child_process");
|
7
|
+
var os_1 = __importDefault(require("os"));
|
8
|
+
var isWindows = os_1.default.platform() === 'win32';
|
9
|
+
var source = 'dist/src/lib';
|
10
|
+
var destination = 'dist/cjs/lib';
|
11
|
+
try {
|
12
|
+
if (isWindows) {
|
13
|
+
(0, child_process_1.execSync)("xcopy /s /e \"".concat(source.replace(/\//g, '\\'), "\" \"").concat(destination.replace(/\//g, '\\'), "\""), {
|
14
|
+
stdio: 'inherit',
|
15
|
+
});
|
16
|
+
}
|
17
|
+
else {
|
18
|
+
(0, child_process_1.execSync)("cp -r ".concat(source, " ").concat(destination), { stdio: 'inherit' });
|
19
|
+
}
|
20
|
+
(0, child_process_1.execSync)('rimraf dist/cjs/src');
|
21
|
+
// if (isWindows) {
|
22
|
+
// execSync(`move "${source.replace(/\//g, '\\')}" "${destination.replace(/\//g, '\\')}"`, {
|
23
|
+
// stdio: 'inherit',
|
24
|
+
// });
|
25
|
+
// } else {
|
26
|
+
// execSync(`mv ${source} ${destination}`, { stdio: 'inherit' });
|
27
|
+
// }
|
28
|
+
// execSync('rimraf dist/cjs/src');
|
29
|
+
source = 'dist/src/lib';
|
30
|
+
destination = 'dist/esm/lib';
|
31
|
+
if (isWindows) {
|
32
|
+
(0, child_process_1.execSync)("xcopy /s /e \"".concat(source.replace(/\//g, '\\'), "\" \"").concat(destination.replace(/\//g, '\\'), "\""), {
|
33
|
+
stdio: 'inherit',
|
34
|
+
});
|
35
|
+
}
|
36
|
+
else {
|
37
|
+
(0, child_process_1.execSync)("cp -r ".concat(source, " ").concat(destination), { stdio: 'inherit' });
|
38
|
+
}
|
39
|
+
(0, child_process_1.execSync)('rimraf dist/esm/src');
|
40
|
+
(0, child_process_1.execSync)('rimraf dist/src');
|
41
|
+
// 기존 리드미파일 백업
|
42
|
+
if (isWindows) {
|
43
|
+
(0, child_process_1.execSync)('move README.md README_backup.md', { stdio: 'inherit' });
|
44
|
+
}
|
45
|
+
else {
|
46
|
+
(0, child_process_1.execSync)('mv README.md README_backup.md', { stdio: 'inherit' });
|
47
|
+
}
|
48
|
+
// npm 패키지 리드미 파일 이름 변경
|
49
|
+
if (isWindows) {
|
50
|
+
(0, child_process_1.execSync)('copy src\\lib\\README.md README.md', { stdio: 'inherit' });
|
51
|
+
}
|
52
|
+
else {
|
53
|
+
(0, child_process_1.execSync)('cp src/lib/README.md README.md', { stdio: 'inherit' });
|
54
|
+
}
|
55
|
+
console.log('Move operation completed successfully.');
|
56
|
+
}
|
57
|
+
catch (error) {
|
58
|
+
console.error('Error during move operation:', error);
|
59
|
+
process.exit(1);
|
60
|
+
}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
var child_process_1 = require("child_process");
|
7
|
+
var os_1 = __importDefault(require("os"));
|
8
|
+
var isWindows = os_1.default.platform() === 'win32';
|
9
|
+
try {
|
10
|
+
// npm 리드미파일 제거
|
11
|
+
if (isWindows) {
|
12
|
+
(0, child_process_1.execSync)('del README.md');
|
13
|
+
}
|
14
|
+
else {
|
15
|
+
(0, child_process_1.execSync)('rm -rf README.md');
|
16
|
+
}
|
17
|
+
// 기존 리드미파일 이름 변경
|
18
|
+
if (isWindows) {
|
19
|
+
(0, child_process_1.execSync)('move README_backup.md README.md');
|
20
|
+
}
|
21
|
+
else {
|
22
|
+
(0, child_process_1.execSync)('mv README_backup.md README.md');
|
23
|
+
}
|
24
|
+
}
|
25
|
+
catch (error) {
|
26
|
+
console.error('Error during move operation:', error);
|
27
|
+
process.exit(1);
|
28
|
+
}
|
@@ -0,0 +1,169 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
3
|
+
__assign = Object.assign || function(t) {
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
5
|
+
s = arguments[i];
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
7
|
+
t[p] = s[p];
|
8
|
+
}
|
9
|
+
return t;
|
10
|
+
};
|
11
|
+
return __assign.apply(this, arguments);
|
12
|
+
};
|
13
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
14
|
+
if (k2 === undefined) k2 = k;
|
15
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
16
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
17
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
18
|
+
}
|
19
|
+
Object.defineProperty(o, k2, desc);
|
20
|
+
}) : (function(o, m, k, k2) {
|
21
|
+
if (k2 === undefined) k2 = k;
|
22
|
+
o[k2] = m[k];
|
23
|
+
}));
|
24
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
25
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
26
|
+
}) : function(o, v) {
|
27
|
+
o["default"] = v;
|
28
|
+
});
|
29
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
30
|
+
if (mod && mod.__esModule) return mod;
|
31
|
+
var result = {};
|
32
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
33
|
+
__setModuleDefault(result, mod);
|
34
|
+
return result;
|
35
|
+
};
|
36
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
37
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
38
|
+
if (ar || !(i in from)) {
|
39
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
40
|
+
ar[i] = from[i];
|
41
|
+
}
|
42
|
+
}
|
43
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
44
|
+
};
|
45
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
46
|
+
var lightColors = __importStar(require("./src/lib/color/light"));
|
47
|
+
var darkColors = __importStar(require("./src/lib/color/dark"));
|
48
|
+
var alphaColors = __importStar(require("./src/lib/color/alpha"));
|
49
|
+
var constants_1 = require("./src/lib/color/constants");
|
50
|
+
var classes = [];
|
51
|
+
var darkClasses = [];
|
52
|
+
var colorScale = Array.from({ length: 12 }, function (_, i) { return (i + 1).toString(); });
|
53
|
+
var allColorOptions = [constants_1.colorOptions, constants_1.alphaColorOptions];
|
54
|
+
var generateClasses = function (colorList, colorScale) {
|
55
|
+
var classPrefixes = ['accent', 'fill', 'border', 'outline', 'bg', 'text'];
|
56
|
+
return colorList.flatMap(function (color) {
|
57
|
+
return colorScale.flatMap(function (scale) { return classPrefixes.map(function (prefix) { return "".concat(prefix, "-").concat(color, "-").concat(scale); }); });
|
58
|
+
});
|
59
|
+
};
|
60
|
+
var generateDarkClasses = function (colorList, colorScale) {
|
61
|
+
var classPrefixes = [
|
62
|
+
'dark:accent',
|
63
|
+
'dark:fill',
|
64
|
+
'dark:outline',
|
65
|
+
'dark:border',
|
66
|
+
'dark:bg',
|
67
|
+
'dark:text',
|
68
|
+
'dark:hover:bg',
|
69
|
+
'dark:hover:border',
|
70
|
+
'dark:hover:text',
|
71
|
+
'dark:active:bg',
|
72
|
+
'dark:active:border',
|
73
|
+
'dark:active:text',
|
74
|
+
'dark:before:checked:bg',
|
75
|
+
'dark:data-[state=on]:bg',
|
76
|
+
'dark:data-[state=open]:bg',
|
77
|
+
'dark:data-[state=on]:text',
|
78
|
+
'dark:data-[state=on]:hover:bg',
|
79
|
+
'dark:data-[state=on]:hover:border',
|
80
|
+
'dark:data-[state=on]:hover:text',
|
81
|
+
];
|
82
|
+
return colorList.flatMap(function (color) {
|
83
|
+
return colorScale.flatMap(function (scale) { return classPrefixes.map(function (prefix) { return "".concat(prefix, "-").concat(color, "-").concat(scale); }); });
|
84
|
+
});
|
85
|
+
};
|
86
|
+
allColorOptions.forEach(function (options) {
|
87
|
+
classes = classes.concat(generateClasses(options, colorScale));
|
88
|
+
});
|
89
|
+
darkClasses.push.apply(darkClasses, generateDarkClasses(constants_1.darkColorOptions, colorScale));
|
90
|
+
var config = {
|
91
|
+
content: [
|
92
|
+
'./src/app/**/*.{js,ts,jsx,tsx,mdx,zip}',
|
93
|
+
'./src/lib/**/*.{js,ts,jsx,tsx,mdx,zip}',
|
94
|
+
'./src/stories/**/*.{js,ts,jsx,tsx,mdx,zip}',
|
95
|
+
'./src/**/*.{js,ts,jsx,tsx,mdx,zip}',
|
96
|
+
],
|
97
|
+
safelist: __spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray([], classes, true), classes.map(function (cls) { return "hover:".concat(cls); }), true), classes.map(function (cls) { return "active:".concat(cls); }), true), classes.map(function (cls) { return "before:".concat(cls); }), true), classes.map(function (cls) { return "data-[state=checked]:".concat(cls); }), true), classes.map(function (cls) { return "data-[state=unchecked]:".concat(cls); }), true), classes.map(function (cls) { return "data-[state=on]:".concat(cls); }), true), classes.map(function (cls) { return "data-[state=on]:hover:".concat(cls); }), true), classes.map(function (cls) { return "data-[state=open]:".concat(cls); }), true), classes.map(function (cls) { return "after:checked:".concat(cls); }), true), classes.map(function (cls) { return "before:checked:".concat(cls); }), true), darkClasses, true),
|
98
|
+
theme: {
|
99
|
+
extend: {
|
100
|
+
fontFamily: {
|
101
|
+
sans: ['Noto Sans KR', 'sans-serif', 'Nunito Sans', 'Helvetica Neue', 'Helvetica', 'Arial'],
|
102
|
+
},
|
103
|
+
backgroundImage: {
|
104
|
+
'gradient-radial': 'radial-gradient(var(--tw-gradient-stops))',
|
105
|
+
'gradient-conic': 'conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))',
|
106
|
+
},
|
107
|
+
colors: __assign(__assign(__assign({ danger: '#C40006', warning: '#AB6400', success: '#00713F', information: '#00749E' }, formatColors(lightColors)), formatColors(darkColors)), formatColors(alphaColors)),
|
108
|
+
// radix tailwind
|
109
|
+
keyframes: {
|
110
|
+
overlayShow: {
|
111
|
+
from: { opacity: '0' },
|
112
|
+
to: { opacity: '1' },
|
113
|
+
},
|
114
|
+
contentShow: {
|
115
|
+
from: { opacity: '0', transform: 'translate(-50%, -48%) scale(0.96)' },
|
116
|
+
to: { opacity: '1', transform: 'translate(-50%, -50%) scale(1)' },
|
117
|
+
},
|
118
|
+
slideDown: {
|
119
|
+
from: { height: '0px' },
|
120
|
+
to: { height: 'var(--radix-accordion-content-height)' },
|
121
|
+
},
|
122
|
+
slideUp: {
|
123
|
+
from: { height: 'var(--radix-accordion-content-height)' },
|
124
|
+
to: { height: '0px' },
|
125
|
+
},
|
126
|
+
},
|
127
|
+
animation: {
|
128
|
+
overlayShow: 'overlayShow 150ms cubic-bezier(0.16, 1, 0.3, 1)',
|
129
|
+
contentShow: 'contentShow 150ms cubic-bezier(0.16, 1, 0.3, 1)',
|
130
|
+
slideDown: 'slideDown 300ms cubic-bezier(0.87, 0, 0.13, 1)',
|
131
|
+
slideUp: 'slideUp 300ms cubic-bezier(0.87, 0, 0.13, 1)',
|
132
|
+
},
|
133
|
+
boxShadow: {
|
134
|
+
'button-classic': '0px 0px 0px 1px #00002D17 inset, 0px -2px 1px 0px #0000330F inset, 0px 4px 2px -2px #FFFFFFB2 inset, 0px 2px 1px -1px #FFFFFFB2 inset',
|
135
|
+
'checkbox-classic': '0px 0px 0px 1px #00002D17 inset, 0px -2px 1px 0px #0000330F inset, 0px 4px 2px -2px #FFFFFF66 inset, 0px 2px 1px -1px #FFFFFF66 inset',
|
136
|
+
'button-dark-classic': '0px 0px 0px 1px #414142 inset, 0px -2px 1px 0px #414142 inset, 0px 4px 2px -2px #414142 inset, 0px 2px 1px -1px #414142 inset',
|
137
|
+
'card-classic': '0px 0px 0px 0.5px #0000000D, 0px 1px 4px 0px #00002D17, 0px 2px 1px -1px #0000000D, 0px 1px 3px 0px #0000000D',
|
138
|
+
'card-dark-classic': '0px 0px 0px 0.5px #414142, 0px 1px 4px 0px #414142, 0px 2px 1px -1px #414142, 0px 1px 3px 0px #414142',
|
139
|
+
'segmented-control-dark-classic': '0px 0px 0px 0.5px #0000000D, 0px 1px 4px 0px #363636, 0px 2px 1px -1px #0000000D, 0px 1px 3px 0px #0000000D',
|
140
|
+
},
|
141
|
+
},
|
142
|
+
},
|
143
|
+
plugins: [
|
144
|
+
function (_a) {
|
145
|
+
var addVariant = _a.addVariant;
|
146
|
+
addVariant('data-placeholder', '&:where([data-placeholder])');
|
147
|
+
},
|
148
|
+
],
|
149
|
+
darkMode: 'class',
|
150
|
+
};
|
151
|
+
/**
|
152
|
+
* tailwind 방식으로 변경
|
153
|
+
* ex) bg-yellow-3
|
154
|
+
*/
|
155
|
+
function formatColors(colors) {
|
156
|
+
var formatcolors = {};
|
157
|
+
for (var _i = 0, _a = Object.entries(colors); _i < _a.length; _i++) {
|
158
|
+
var _b = _a[_i], cn = _b[0], c = _b[1];
|
159
|
+
for (var _c = 0, _d = Object.entries(c); _c < _d.length; _c++) {
|
160
|
+
var _e = _d[_c], scale = _e[0], value = _e[1];
|
161
|
+
if (!scale) {
|
162
|
+
continue;
|
163
|
+
}
|
164
|
+
formatcolors["".concat(cn, "-").concat(scale)] = value;
|
165
|
+
}
|
166
|
+
}
|
167
|
+
return formatcolors;
|
168
|
+
}
|
169
|
+
exports.default = config;
|