@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
@@ -1,108 +1,52 @@
|
|
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
|
-
exports.DoughnutChart = exports.PieChart = exports.LineChart = exports.RadarChart = exports.BubbleChart = exports.BarChart = exports.Tooltip = exports.ToggleSwitch = exports.ToggleGroup = exports.ToggleWithText = exports.Toggle = exports.Toast = exports.TextField = exports.TextArea = exports.Tabs = exports.TabNav = exports.Table = exports.Spinner = exports.Slider = exports.Skeleton = exports.Separator = exports.Select = exports.SegmentedControl = exports.ScrollArea = exports.RadioGroup = exports.RadioCards = exports.Radio = exports.Progress = exports.Popover = exports.NavigationMenu = exports.Menubar = exports.Label = exports.Inset = exports.IconButton = exports.HoverCard = exports.DropdownMenu = exports.Dialog = exports.DataList = exports.ContextMenu = exports.CheckboxGroup = exports.CheckboxCard = exports.Checkbox = exports.Card = exports.Callout = exports.Button = exports.Badge = exports.Avatar = exports.AspectRatio = exports.AlertDialog = exports.Accordion = void 0;
|
7
1
|
// Component
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
var Progress_1 = require("./Progress");
|
53
|
-
Object.defineProperty(exports, "Progress", { enumerable: true, get: function () { return __importDefault(Progress_1).default; } });
|
54
|
-
var Radio_1 = require("./Radio");
|
55
|
-
Object.defineProperty(exports, "Radio", { enumerable: true, get: function () { return __importDefault(Radio_1).default; } });
|
56
|
-
var RadioCards_1 = require("./RadioCards");
|
57
|
-
Object.defineProperty(exports, "RadioCards", { enumerable: true, get: function () { return __importDefault(RadioCards_1).default; } });
|
58
|
-
var RadioGroup_1 = require("./RadioGroup");
|
59
|
-
Object.defineProperty(exports, "RadioGroup", { enumerable: true, get: function () { return __importDefault(RadioGroup_1).default; } });
|
60
|
-
var ScrollArea_1 = require("./ScrollArea");
|
61
|
-
Object.defineProperty(exports, "ScrollArea", { enumerable: true, get: function () { return __importDefault(ScrollArea_1).default; } });
|
62
|
-
var SegmentedControl_1 = require("./SegmentedControl");
|
63
|
-
Object.defineProperty(exports, "SegmentedControl", { enumerable: true, get: function () { return __importDefault(SegmentedControl_1).default; } });
|
64
|
-
var Select_1 = require("./Select");
|
65
|
-
Object.defineProperty(exports, "Select", { enumerable: true, get: function () { return __importDefault(Select_1).default; } });
|
66
|
-
var Separator_1 = require("./Separator");
|
67
|
-
Object.defineProperty(exports, "Separator", { enumerable: true, get: function () { return __importDefault(Separator_1).default; } });
|
68
|
-
var Skeleton_1 = require("./Skeleton");
|
69
|
-
Object.defineProperty(exports, "Skeleton", { enumerable: true, get: function () { return __importDefault(Skeleton_1).default; } });
|
70
|
-
var Slider_1 = require("./Slider");
|
71
|
-
Object.defineProperty(exports, "Slider", { enumerable: true, get: function () { return __importDefault(Slider_1).default; } });
|
72
|
-
var Spinner_1 = require("./Spinner");
|
73
|
-
Object.defineProperty(exports, "Spinner", { enumerable: true, get: function () { return __importDefault(Spinner_1).default; } });
|
74
|
-
var Table_1 = require("./Table");
|
75
|
-
Object.defineProperty(exports, "Table", { enumerable: true, get: function () { return __importDefault(Table_1).default; } });
|
76
|
-
var TabNav_1 = require("./TabNav");
|
77
|
-
Object.defineProperty(exports, "TabNav", { enumerable: true, get: function () { return __importDefault(TabNav_1).default; } });
|
78
|
-
var Tabs_1 = require("./Tabs");
|
79
|
-
Object.defineProperty(exports, "Tabs", { enumerable: true, get: function () { return __importDefault(Tabs_1).default; } });
|
80
|
-
var TextArea_1 = require("./TextArea");
|
81
|
-
Object.defineProperty(exports, "TextArea", { enumerable: true, get: function () { return __importDefault(TextArea_1).default; } });
|
82
|
-
var TextField_1 = require("./TextField");
|
83
|
-
Object.defineProperty(exports, "TextField", { enumerable: true, get: function () { return __importDefault(TextField_1).default; } });
|
84
|
-
var Toast_1 = require("./Toast");
|
85
|
-
Object.defineProperty(exports, "Toast", { enumerable: true, get: function () { return __importDefault(Toast_1).default; } });
|
86
|
-
var Toggle_1 = require("./Toggle");
|
87
|
-
Object.defineProperty(exports, "Toggle", { enumerable: true, get: function () { return __importDefault(Toggle_1).default; } });
|
88
|
-
var ToggleWithText_1 = require("./Toggle/ToggleWithText");
|
89
|
-
Object.defineProperty(exports, "ToggleWithText", { enumerable: true, get: function () { return __importDefault(ToggleWithText_1).default; } });
|
90
|
-
var ToggleGroup_1 = require("./ToggleGroup");
|
91
|
-
Object.defineProperty(exports, "ToggleGroup", { enumerable: true, get: function () { return __importDefault(ToggleGroup_1).default; } });
|
92
|
-
var ToggleSwitch_1 = require("./ToggleSwitch");
|
93
|
-
Object.defineProperty(exports, "ToggleSwitch", { enumerable: true, get: function () { return __importDefault(ToggleSwitch_1).default; } });
|
94
|
-
var Tooltip_1 = require("./Tooltip");
|
95
|
-
Object.defineProperty(exports, "Tooltip", { enumerable: true, get: function () { return __importDefault(Tooltip_1).default; } });
|
2
|
+
export { default as Accordion } from './Accordion';
|
3
|
+
export { default as AlertDialog } from './AlertDialog';
|
4
|
+
export { default as AspectRatio } from './AspectRatio';
|
5
|
+
export { default as Avatar } from './Avatar';
|
6
|
+
export { default as Badge } from './Badge';
|
7
|
+
export { default as Button } from './Button';
|
8
|
+
export { default as Callout } from './Callout';
|
9
|
+
export { default as Card } from './Card';
|
10
|
+
export { default as Checkbox } from './Checkbox';
|
11
|
+
export { default as CheckboxCard } from './CheckboxCard';
|
12
|
+
export { default as CheckboxGroup } from './CheckboxGroup';
|
13
|
+
export { default as ContextMenu } from './ContextMenu';
|
14
|
+
export { default as DataList } from './DataList';
|
15
|
+
export { default as Dialog } from './Dialog';
|
16
|
+
export { default as DropdownMenu } from './DropdownMenu';
|
17
|
+
export { default as HoverCard } from './HoverCard';
|
18
|
+
export { default as IconButton } from './IconButton';
|
19
|
+
export { default as Inset } from './Inset';
|
20
|
+
export { default as Label } from './Label';
|
21
|
+
export { default as Menubar } from './Menubar';
|
22
|
+
export { default as NavigationMenu } from './NavigationMenu';
|
23
|
+
export { default as Popover } from './Popover';
|
24
|
+
export { default as Progress } from './Progress';
|
25
|
+
export { default as Radio } from './Radio';
|
26
|
+
export { default as RadioCards } from './RadioCards';
|
27
|
+
export { default as RadioGroup } from './RadioGroup';
|
28
|
+
export { default as ScrollArea } from './ScrollArea';
|
29
|
+
export { default as SegmentedControl } from './SegmentedControl';
|
30
|
+
export { default as Select } from './Select';
|
31
|
+
export { default as Separator } from './Separator';
|
32
|
+
export { default as Skeleton } from './Skeleton';
|
33
|
+
export { default as Slider } from './Slider';
|
34
|
+
export { default as Spinner } from './Spinner';
|
35
|
+
export { default as Table } from './Table';
|
36
|
+
export { default as TabNav } from './TabNav';
|
37
|
+
export { default as Tabs } from './Tabs';
|
38
|
+
export { default as TextArea } from './TextArea';
|
39
|
+
export { default as TextField } from './TextField';
|
40
|
+
export { default as Toast } from './Toast';
|
41
|
+
export { default as Toggle } from './Toggle';
|
42
|
+
export { default as ToggleWithText } from './Toggle/ToggleWithText';
|
43
|
+
export { default as ToggleGroup } from './ToggleGroup';
|
44
|
+
export { default as ToggleSwitch } from './ToggleSwitch';
|
45
|
+
export { default as Tooltip } from './Tooltip';
|
96
46
|
// Chart
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
var LineChart_1 = require("./LineChart");
|
104
|
-
Object.defineProperty(exports, "LineChart", { enumerable: true, get: function () { return __importDefault(LineChart_1).default; } });
|
105
|
-
var PieChart_1 = require("./PieChart");
|
106
|
-
Object.defineProperty(exports, "PieChart", { enumerable: true, get: function () { return __importDefault(PieChart_1).default; } });
|
107
|
-
var DoughnutChart_1 = require("./DoughnutChart");
|
108
|
-
Object.defineProperty(exports, "DoughnutChart", { enumerable: true, get: function () { return __importDefault(DoughnutChart_1).default; } });
|
47
|
+
export { default as BarChart } from './BarChart';
|
48
|
+
export { default as BubbleChart } from './BubbleChart';
|
49
|
+
export { default as RadarChart } from './RadarChart';
|
50
|
+
export { default as LineChart } from './LineChart';
|
51
|
+
export { default as PieChart } from './PieChart';
|
52
|
+
export { default as DoughnutChart } from './DoughnutChart';
|
@@ -1,38 +1,12 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
if (k2 === undefined) k2 = k;
|
11
|
-
o[k2] = m[k];
|
12
|
-
}));
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
15
|
-
}) : function(o, v) {
|
16
|
-
o["default"] = v;
|
17
|
-
});
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
19
|
-
if (mod && mod.__esModule) return mod;
|
20
|
-
var result = {};
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
22
|
-
__setModuleDefault(result, mod);
|
23
|
-
return result;
|
24
|
-
};
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
26
|
-
exports.selectAppearanceStyle = exports.checkboxAppearanceStyle = exports.switchCheckedApperanceStyle = exports.menuItemAppearanceStyle = exports.toggleAppearanceStyle = exports.appearanceStyle = exports.textColorStyle = exports.bgColorStyle = exports.primaryColorStyle = exports.blackText = exports.chartDatalabelsArgsTypes = exports.chartDatasetsArgsTypes = exports.chartLegendArgTypes = exports.chartTitleArgTypes = exports.chartColorStyle = exports.commonArgTypes = exports.scalingVariants = exports.weightVariants = exports.radiusVariants = exports.pointStyleList = exports.labelPositionList = exports.appearanceOptions = exports.themeOptions = exports.weightOptions = exports.sizeOptions = exports.scalingOptions = exports.typoSizeOptions = exports.radiusOptions = void 0;
|
27
|
-
var constants_1 = require("lib/color/constants");
|
28
|
-
var lightColors = __importStar(require("lib/color/light"));
|
29
|
-
exports.radiusOptions = ['none', 'small', 'medium', 'large', 'full'];
|
30
|
-
exports.typoSizeOptions = ['1', '2', '3', '4', '5', '6', '7', '8', '9'];
|
31
|
-
exports.scalingOptions = ['90%', '95%', '100%', '105%', '110%'];
|
32
|
-
exports.sizeOptions = ['x-small', 'small', 'medium', 'large', 'x-large'];
|
33
|
-
exports.weightOptions = ['regular', 'medium', 'semibold', 'bold'];
|
34
|
-
exports.themeOptions = ['light', 'dark'];
|
35
|
-
exports.appearanceOptions = [
|
1
|
+
import { ColorStyle, DarkColorStyle, colorOptions, chartColorOptions } from 'lib/color/constants';
|
2
|
+
import * as lightColors from 'lib/color/light';
|
3
|
+
export var radiusOptions = ['none', 'small', 'medium', 'large', 'full'];
|
4
|
+
export var typoSizeOptions = ['1', '2', '3', '4', '5', '6', '7', '8', '9'];
|
5
|
+
export var scalingOptions = ['90%', '95%', '100%', '105%', '110%'];
|
6
|
+
export var sizeOptions = ['x-small', 'small', 'medium', 'large', 'x-large'];
|
7
|
+
export var weightOptions = ['regular', 'medium', 'semibold', 'bold'];
|
8
|
+
export var themeOptions = ['light', 'dark'];
|
9
|
+
export var appearanceOptions = [
|
36
10
|
'classic',
|
37
11
|
'ghost',
|
38
12
|
'outline',
|
@@ -41,8 +15,8 @@ exports.appearanceOptions = [
|
|
41
15
|
'surface',
|
42
16
|
];
|
43
17
|
//차트
|
44
|
-
|
45
|
-
|
18
|
+
export var labelPositionList = ['top', 'bottom', 'left', 'right'];
|
19
|
+
export var pointStyleList = [
|
46
20
|
'circle',
|
47
21
|
'cross',
|
48
22
|
'crossRot',
|
@@ -55,7 +29,7 @@ exports.pointStyleList = [
|
|
55
29
|
'triangle',
|
56
30
|
false,
|
57
31
|
];
|
58
|
-
|
32
|
+
export var radiusVariants = {
|
59
33
|
// 체크박스
|
60
34
|
small: {
|
61
35
|
none: 'rounded-none',
|
@@ -97,13 +71,13 @@ exports.radiusVariants = {
|
|
97
71
|
full: 'rounded',
|
98
72
|
},
|
99
73
|
};
|
100
|
-
|
74
|
+
export var weightVariants = {
|
101
75
|
regular: 'font-normal', // 400
|
102
76
|
medium: 'font-medium', // 500
|
103
77
|
semibold: 'font-semibold', // 600
|
104
78
|
bold: 'font-bold', // 700
|
105
79
|
};
|
106
|
-
|
80
|
+
export var scalingVariants = {
|
107
81
|
'90%': 'scale-90',
|
108
82
|
'95%': 'scale-95',
|
109
83
|
'100%': 'scale-100',
|
@@ -111,40 +85,40 @@ exports.scalingVariants = {
|
|
111
85
|
'110%': 'scale-110',
|
112
86
|
};
|
113
87
|
// 스토리북 공통 argTypes 설정
|
114
|
-
|
88
|
+
export var commonArgTypes = {
|
115
89
|
typoSize: {
|
116
90
|
table: {
|
117
91
|
category: 'Theme Props',
|
118
92
|
type: { summary: '1 ~ 9' },
|
119
93
|
},
|
120
94
|
control: { type: 'select' },
|
121
|
-
options:
|
95
|
+
options: typoSizeOptions,
|
122
96
|
defaultValue: { summary: '3' },
|
123
97
|
},
|
124
98
|
scaling: {
|
125
99
|
table: {
|
126
100
|
category: 'Theme Props',
|
127
|
-
type: { summary:
|
101
|
+
type: { summary: scalingOptions.join(' | ') },
|
128
102
|
},
|
129
103
|
control: { type: 'select' },
|
130
|
-
options:
|
104
|
+
options: scalingOptions,
|
131
105
|
defaultValue: { summary: '100%' },
|
132
106
|
},
|
133
107
|
weight: {
|
134
108
|
table: {
|
135
109
|
category: 'Theme Props',
|
136
|
-
type: { summary:
|
110
|
+
type: { summary: weightOptions.join(' | ') },
|
137
111
|
},
|
138
|
-
options:
|
112
|
+
options: weightOptions,
|
139
113
|
control: { type: 'select' },
|
140
114
|
defaultValue: { summary: 'medium' },
|
141
115
|
},
|
142
116
|
radius: {
|
143
117
|
table: {
|
144
118
|
category: 'Theme Props',
|
145
|
-
type: { summary:
|
119
|
+
type: { summary: radiusOptions.join(' | ') },
|
146
120
|
},
|
147
|
-
options:
|
121
|
+
options: radiusOptions,
|
148
122
|
control: { type: 'select' },
|
149
123
|
defaultValue: { summary: 'medium' },
|
150
124
|
},
|
@@ -153,7 +127,7 @@ exports.commonArgTypes = {
|
|
153
127
|
category: 'Theme Props',
|
154
128
|
type: { summary: 'colorVariants' },
|
155
129
|
},
|
156
|
-
options:
|
130
|
+
options: colorOptions,
|
157
131
|
control: { type: 'select' },
|
158
132
|
defaultValue: { summary: 'red' },
|
159
133
|
},
|
@@ -167,19 +141,19 @@ exports.commonArgTypes = {
|
|
167
141
|
appearance: {
|
168
142
|
table: {
|
169
143
|
category: 'Props',
|
170
|
-
type: { summary:
|
144
|
+
type: { summary: appearanceOptions.join(' | ') },
|
171
145
|
},
|
172
|
-
options:
|
146
|
+
options: appearanceOptions,
|
173
147
|
control: { type: 'select' },
|
174
148
|
defaultValue: { summary: 'solid' },
|
175
149
|
},
|
176
150
|
size: {
|
177
151
|
table: {
|
178
152
|
category: 'Props',
|
179
|
-
type: { summary:
|
153
|
+
type: { summary: sizeOptions.join(' | ') },
|
180
154
|
},
|
181
155
|
control: { type: 'select' },
|
182
|
-
options:
|
156
|
+
options: sizeOptions,
|
183
157
|
defaultValue: { summary: 'medium' },
|
184
158
|
},
|
185
159
|
isColorMixed: {
|
@@ -217,16 +191,15 @@ exports.commonArgTypes = {
|
|
217
191
|
},
|
218
192
|
},
|
219
193
|
};
|
220
|
-
var chartColorStyle = function () {
|
194
|
+
export var chartColorStyle = function () {
|
221
195
|
var colorValues = lightColors;
|
222
196
|
var colorMappings = {};
|
223
|
-
|
197
|
+
chartColorOptions.forEach(function (color) {
|
224
198
|
colorMappings[color] = colorValues[color][9];
|
225
199
|
});
|
226
200
|
return colorMappings;
|
227
201
|
};
|
228
|
-
|
229
|
-
exports.chartTitleArgTypes = {
|
202
|
+
export var chartTitleArgTypes = {
|
230
203
|
title: {
|
231
204
|
description: '차트 타이틀',
|
232
205
|
table: {
|
@@ -282,7 +255,7 @@ exports.chartTitleArgTypes = {
|
|
282
255
|
defaultValue: { summary: 12 },
|
283
256
|
},
|
284
257
|
};
|
285
|
-
|
258
|
+
export var chartLegendArgTypes = {
|
286
259
|
legend: {
|
287
260
|
description: '차트 범례',
|
288
261
|
table: {
|
@@ -368,14 +341,14 @@ exports.chartLegendArgTypes = {
|
|
368
341
|
description: "- \uB77C\uBCA8 \uD3EC\uC778\uD2B8 \uC2A4\uD0C0\uC77C\n - usePointStyle\uAC00 true\uC778 \uACBD\uC6B0 \uC801\uC6A9",
|
369
342
|
table: {
|
370
343
|
category: 'Legend Props',
|
371
|
-
type: { summary:
|
344
|
+
type: { summary: pointStyleList.join(' | ') },
|
372
345
|
},
|
373
346
|
control: { type: 'select' },
|
374
|
-
options:
|
347
|
+
options: pointStyleList,
|
375
348
|
defaultValue: { summary: 'false' },
|
376
349
|
},
|
377
350
|
};
|
378
|
-
|
351
|
+
export var chartDatasetsArgsTypes = {
|
379
352
|
'datasets[n].data': {
|
380
353
|
description: '데이터셋 데이터',
|
381
354
|
table: {
|
@@ -489,7 +462,7 @@ exports.chartDatasetsArgsTypes = {
|
|
489
462
|
},
|
490
463
|
},
|
491
464
|
};
|
492
|
-
|
465
|
+
export var chartDatalabelsArgsTypes = {
|
493
466
|
datalabels: {
|
494
467
|
table: {
|
495
468
|
disable: true,
|
@@ -515,36 +488,33 @@ exports.chartDatalabelsArgsTypes = {
|
|
515
488
|
defaultValue: { summary: 'gray' },
|
516
489
|
},
|
517
490
|
};
|
518
|
-
|
519
|
-
var primaryColorStyle = function () {
|
491
|
+
export var blackText = ['sky', 'mint', 'lime', 'yellow', 'amber', 'orange', 'white'];
|
492
|
+
export var primaryColorStyle = function () {
|
520
493
|
var color = {};
|
521
|
-
for (var i in
|
494
|
+
for (var i in ColorStyle) {
|
522
495
|
var darkColor = "".concat(i, "Dark");
|
523
|
-
color[i] =
|
524
|
-
? "bg-".concat(
|
525
|
-
: "bg-".concat(
|
496
|
+
color[i] = blackText.includes(i)
|
497
|
+
? "bg-".concat(ColorStyle[i], " text-slate-12 dark:bg-").concat(DarkColorStyle[darkColor], " dark:text-slateDark-12")
|
498
|
+
: "bg-".concat(ColorStyle[i], " text-white dark:bg-").concat(DarkColorStyle[darkColor], " dark:text-slateDark-1");
|
526
499
|
}
|
527
500
|
return color;
|
528
501
|
};
|
529
|
-
|
530
|
-
var bgColorStyle = function () {
|
502
|
+
export var bgColorStyle = function () {
|
531
503
|
var color = {};
|
532
|
-
for (var i in
|
504
|
+
for (var i in ColorStyle) {
|
533
505
|
var darkColor = "".concat(i, "Dark");
|
534
|
-
color[i] = "bg-".concat(
|
506
|
+
color[i] = "bg-".concat(ColorStyle[i], " dark:bg-").concat(DarkColorStyle[darkColor]);
|
535
507
|
}
|
536
508
|
return color;
|
537
509
|
};
|
538
|
-
|
539
|
-
var textColorStyle = function () {
|
510
|
+
export var textColorStyle = function () {
|
540
511
|
var color = {};
|
541
|
-
for (var i in
|
512
|
+
for (var i in ColorStyle) {
|
542
513
|
var darkColor = "".concat(i, "Dark");
|
543
|
-
color[i] = "text-".concat(
|
514
|
+
color[i] = "text-".concat(ColorStyle[i], " dark:text-").concat(DarkColorStyle[darkColor]);
|
544
515
|
}
|
545
516
|
return color;
|
546
517
|
};
|
547
|
-
exports.textColorStyle = textColorStyle;
|
548
518
|
var makeClassName = function (type, isClickable) {
|
549
519
|
var className = '';
|
550
520
|
className += "".concat(type.light.default, " ").concat(type.dark.default);
|
@@ -553,7 +523,7 @@ var makeClassName = function (type, isClickable) {
|
|
553
523
|
}
|
554
524
|
return className;
|
555
525
|
};
|
556
|
-
var appearanceStyle = function (type, color, isClickable) {
|
526
|
+
export var appearanceStyle = function (type, color, isClickable) {
|
557
527
|
if (isClickable === void 0) { isClickable = true; }
|
558
528
|
var darkColor = "".concat(color, "Dark");
|
559
529
|
var classic = {
|
@@ -657,8 +627,7 @@ var appearanceStyle = function (type, color, isClickable) {
|
|
657
627
|
return '';
|
658
628
|
}
|
659
629
|
};
|
660
|
-
|
661
|
-
var toggleAppearanceStyle = function (type, color, isClickable, stateOn) {
|
630
|
+
export var toggleAppearanceStyle = function (type, color, isClickable, stateOn) {
|
662
631
|
if (isClickable === void 0) { isClickable = true; }
|
663
632
|
if (stateOn === void 0) { stateOn = ''; }
|
664
633
|
var darkColor = "".concat(color, "Dark");
|
@@ -763,12 +732,11 @@ var toggleAppearanceStyle = function (type, color, isClickable, stateOn) {
|
|
763
732
|
return '';
|
764
733
|
}
|
765
734
|
};
|
766
|
-
|
767
|
-
var menuItemAppearanceStyle = function (type, color) {
|
735
|
+
export var menuItemAppearanceStyle = function (type, color) {
|
768
736
|
var appearanceStyle = '';
|
769
737
|
if (type === 'solid') {
|
770
738
|
appearanceStyle = "hover:bg-".concat(color, "-9 dark:hover:bg-").concat(color, "Dark-9 ");
|
771
|
-
appearanceStyle +=
|
739
|
+
appearanceStyle += blackText.includes(color)
|
772
740
|
? "hover:text-slateA-11 dark:hover:text-white"
|
773
741
|
: "hover:text-white dark:hover:text-white";
|
774
742
|
}
|
@@ -780,8 +748,7 @@ var menuItemAppearanceStyle = function (type, color) {
|
|
780
748
|
}
|
781
749
|
return appearanceStyle;
|
782
750
|
};
|
783
|
-
|
784
|
-
var switchCheckedApperanceStyle = function (type, color) {
|
751
|
+
export var switchCheckedApperanceStyle = function (type, color) {
|
785
752
|
var softStyle = "data-[state=checked]:bg-".concat(color, "A-3 data-[state=unchecked]:bg-").concat(color, "A-2 ");
|
786
753
|
var surfaceStyle = "data-[state=checked]:bg-".concat(color, "A-2 border border-solid border-").concat(color, "A-7 data-[state=unchecked]:bg-slateA-2 data-[state=unchecked]:bg-slateA-6 ");
|
787
754
|
var classicStyle = "data-[state=checked]:bg-".concat(color, "-9 text-white border border-solid border-").concat(color, "-9 shadow-custom-1 shadow-custom-2 shadow-custom-3 data-[state=unchecked]:border-slate-4 data-[state=unchecked]:bg-slateA-3 data-[state=unchecked]:text-slateA-8");
|
@@ -796,8 +763,7 @@ var switchCheckedApperanceStyle = function (type, color) {
|
|
796
763
|
return '';
|
797
764
|
}
|
798
765
|
};
|
799
|
-
|
800
|
-
var checkboxAppearanceStyle = function (type, color, indeterminate) {
|
766
|
+
export var checkboxAppearanceStyle = function (type, color, indeterminate) {
|
801
767
|
var darkColor = "".concat(color, "Dark");
|
802
768
|
var surface = {
|
803
769
|
light: {
|
@@ -870,8 +836,7 @@ var checkboxAppearanceStyle = function (type, color, indeterminate) {
|
|
870
836
|
return makeClassName(surface, true);
|
871
837
|
}
|
872
838
|
};
|
873
|
-
|
874
|
-
var selectAppearanceStyle = function (type, color) {
|
839
|
+
export var selectAppearanceStyle = function (type, color) {
|
875
840
|
var darkColor = "".concat(color, "Dark");
|
876
841
|
var surface = {
|
877
842
|
light: {
|
@@ -947,4 +912,3 @@ var selectAppearanceStyle = function (type, color) {
|
|
947
912
|
return '';
|
948
913
|
}
|
949
914
|
};
|
950
|
-
exports.selectAppearanceStyle = selectAppearanceStyle;
|
package/dist/cjs/lib/index.js
CHANGED
@@ -1,18 +1,2 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
if (k2 === undefined) k2 = k;
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
-
}
|
8
|
-
Object.defineProperty(o, k2, desc);
|
9
|
-
}) : (function(o, m, k, k2) {
|
10
|
-
if (k2 === undefined) k2 = k;
|
11
|
-
o[k2] = m[k];
|
12
|
-
}));
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
-
};
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
-
__exportStar(require("./components"), exports);
|
18
|
-
__exportStar(require("./Typography"), exports);
|
1
|
+
export * from './components';
|
2
|
+
export * from './Typography';
|
package/dist/cjs/lib/types.js
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
1
|
+
export {};
|
@@ -1,38 +1,35 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
var alpha_1 = require("lib/color/alpha");
|
5
|
-
var react_1 = require("react");
|
6
|
-
var useDarkMode = function (isRAxes) {
|
1
|
+
import { slateA, slateDarkA } from 'lib/color/alpha';
|
2
|
+
import { useEffect, useState } from 'react';
|
3
|
+
export var useDarkMode = function (isRAxes) {
|
7
4
|
if (isRAxes === void 0) { isRAxes = false; }
|
8
5
|
var lightmode = {};
|
9
6
|
var darkmode = {};
|
10
7
|
if (isRAxes === true) {
|
11
8
|
lightmode = {
|
12
|
-
r: { grid: { color:
|
9
|
+
r: { grid: { color: slateA[8] } },
|
13
10
|
};
|
14
11
|
darkmode = {
|
15
|
-
r: { grid: { color:
|
12
|
+
r: { grid: { color: slateDarkA[8] }, ticks: { backdropColor: 'rgba(0, 0, 0, 0)' } },
|
16
13
|
};
|
17
14
|
}
|
18
15
|
else {
|
19
16
|
lightmode = {
|
20
|
-
x: { grid: { color:
|
21
|
-
y: { grid: { color:
|
17
|
+
x: { grid: { color: slateA[8] } },
|
18
|
+
y: { grid: { color: slateA[8] } },
|
22
19
|
};
|
23
20
|
darkmode = {
|
24
|
-
x: { grid: { color:
|
25
|
-
y: { grid: { color:
|
21
|
+
x: { grid: { color: slateDarkA[8] } },
|
22
|
+
y: { grid: { color: slateDarkA[8] } },
|
26
23
|
};
|
27
24
|
}
|
28
|
-
var _a =
|
29
|
-
var _b =
|
25
|
+
var _a = useState(checkDarkMode()), isDarkMode = _a[0], setIsDarkMode = _a[1];
|
26
|
+
var _b = useState({
|
30
27
|
linescale: {},
|
31
28
|
}), defaultOptions = _b[0], setDefaultOptions = _b[1];
|
32
29
|
function checkDarkMode() {
|
33
30
|
return document.body.classList.contains('dark');
|
34
31
|
}
|
35
|
-
|
32
|
+
useEffect(function () {
|
36
33
|
setIsDarkMode(checkDarkMode());
|
37
34
|
setDefaultOptions({ linescale: !checkDarkMode() ? lightmode : darkmode });
|
38
35
|
var mutationObserver = new MutationObserver(function (mutations) {
|
@@ -50,4 +47,3 @@ var useDarkMode = function (isRAxes) {
|
|
50
47
|
}, []);
|
51
48
|
return [isDarkMode, defaultOptions];
|
52
49
|
};
|
53
|
-
exports.useDarkMode = useDarkMode;
|
@@ -1,14 +1,10 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
exports.cn = void 0;
|
4
|
-
var clsx_1 = require("clsx");
|
5
|
-
var tailwind_merge_1 = require("tailwind-merge");
|
1
|
+
import { clsx } from 'clsx';
|
2
|
+
import { twMerge } from 'tailwind-merge';
|
6
3
|
// tailwind를 merge할 때 발생할 수 있는 클래스 충돌 문제 해결
|
7
|
-
function cn() {
|
4
|
+
export function cn() {
|
8
5
|
var inputs = [];
|
9
6
|
for (var _i = 0; _i < arguments.length; _i++) {
|
10
7
|
inputs[_i] = arguments[_i];
|
11
8
|
}
|
12
|
-
return
|
9
|
+
return twMerge(clsx(inputs));
|
13
10
|
}
|
14
|
-
exports.cn = cn;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.metadata = void 0;
|
4
|
+
// import { Inter } from 'next/font/google';
|
5
|
+
require("./globals.css");
|
6
|
+
// const inter = Inter({ subsets: ['latin'] });
|
7
|
+
exports.metadata = {
|
8
|
+
title: 'Create Next App',
|
9
|
+
description: 'Generated by create next app',
|
10
|
+
};
|
11
|
+
function RootLayout(_a) {
|
12
|
+
var children = _a.children;
|
13
|
+
return (<html lang="en">
|
14
|
+
<body>{children}</body>
|
15
|
+
</html>);
|
16
|
+
}
|
17
|
+
exports.default = RootLayout;
|