@lotte-innovate/ui-component-test 0.0.10 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Typography/Header/{index.js → index.jsx} +5 -2
- package/dist/Typography/Text/{index.js → index.jsx} +6 -3
- package/dist/Typography/index.js +0 -1
- package/dist/app/layout.d.ts +1 -1
- package/dist/app/{layout.js → layout.jsx} +3 -2
- package/dist/app/page.d.ts +2 -1
- package/dist/app/page.jsx +9 -0
- package/dist/app/template/colorPicker.d.ts +3 -2
- package/dist/app/template/colorPicker.jsx +19 -0
- package/dist/app/template/theme.d.ts +2 -2
- package/dist/app/template/theme.jsx +17 -0
- package/dist/components/Accordion/{index.js → index.jsx} +17 -5
- package/dist/components/AlertDialog/{AlertDialogAction.js → AlertDialogAction.jsx} +4 -3
- package/dist/components/AlertDialog/{AlertDialogCancel.js → AlertDialogCancel.jsx} +4 -3
- package/dist/components/AlertDialog/{AlertDialogContent.js → AlertDialogContent.jsx} +7 -3
- package/dist/components/AlertDialog/{AlertDialogDescription.js → AlertDialogDescription.jsx} +4 -14
- package/dist/components/AlertDialog/{AlertDialogTitle.js → AlertDialogTitle.jsx} +4 -14
- package/dist/components/AlertDialog/{AlertDialogTrigger.js → AlertDialogTrigger.jsx} +4 -3
- package/dist/components/AlertDialog/{index.js → index.jsx} +5 -15
- package/dist/components/AspectRatio/{index.js → index.jsx} +4 -3
- package/dist/components/Avatar/{index.js → index.jsx} +7 -3
- package/dist/components/Badge/{index.js → index.jsx} +4 -3
- package/dist/components/BubbleChart/index.d.ts +2 -1
- package/dist/components/BubbleChart/{index.js → index.jsx} +2 -2
- package/dist/components/Button/{index.js → index.jsx} +4 -3
- package/dist/components/Callout/{CalloutIcon.js → CalloutIcon.jsx} +8 -3
- package/dist/components/Callout/{CalloutText.js → CalloutText.jsx} +4 -14
- package/dist/components/Callout/{index.js → index.jsx} +6 -3
- package/dist/components/Card/{index.js → index.jsx} +4 -3
- package/dist/components/Checkbox/{index.js → index.jsx} +11 -3
- package/dist/components/CheckboxCard/{index.js → index.jsx} +5 -3
- package/dist/components/CheckboxGroup/{CheckboxGroupItem.js → CheckboxGroupItem.jsx} +6 -14
- package/dist/components/CheckboxGroup/{index.js → index.jsx} +5 -2
- package/dist/components/ContextMenu/{ContextMenuCheckboxItem.js → ContextMenuCheckboxItem.jsx} +7 -14
- package/dist/components/ContextMenu/{ContextMenuContent.js → ContextMenuContent.jsx} +6 -3
- package/dist/components/ContextMenu/{ContextMenuGroup.js → ContextMenuGroup.jsx} +4 -14
- package/dist/components/ContextMenu/{ContextMenuItem.js → ContextMenuItem.jsx} +5 -3
- package/dist/components/ContextMenu/{ContextMenuItemIndicator.js → ContextMenuItemIndicator.jsx} +4 -3
- package/dist/components/ContextMenu/{ContextMenuLabel.js → ContextMenuLabel.jsx} +4 -3
- package/dist/components/ContextMenu/{ContextMenuRadioGroup.js → ContextMenuRadioGroup.jsx} +6 -14
- package/dist/components/ContextMenu/{ContextMenuRadioItem.js → ContextMenuRadioItem.jsx} +7 -14
- package/dist/components/ContextMenu/{ContextMenuSeparator.js → ContextMenuSeparator.jsx} +4 -14
- package/dist/components/ContextMenu/{ContextMenuSubContent.js → ContextMenuSubContent.jsx} +10 -7
- package/dist/components/ContextMenu/{ContextMenuSubTrigger.js → ContextMenuSubTrigger.jsx} +9 -14
- package/dist/components/ContextMenu/{ContextMenuTrigger.js → ContextMenuTrigger.jsx} +4 -14
- package/dist/components/ContextMenu/{index.js → index.jsx} +7 -15
- package/dist/components/DataList/{DataListItem.js → DataListItem.jsx} +4 -3
- package/dist/components/DataList/{DataListLabel.js → DataListLabel.jsx} +4 -3
- package/dist/components/DataList/{DataListValue.js → DataListValue.jsx} +4 -3
- package/dist/components/DataList/{index.js → index.jsx} +6 -14
- package/dist/components/Dialog/{DialogAction.js → DialogAction.jsx} +4 -14
- package/dist/components/Dialog/{DialogCancel.js → DialogCancel.jsx} +4 -14
- package/dist/components/Dialog/{DialogContent.js → DialogContent.jsx} +4 -3
- package/dist/components/Dialog/{DialogDescription.js → DialogDescription.jsx} +4 -14
- package/dist/components/Dialog/{DialogSlot.js → DialogSlot.jsx} +4 -14
- package/dist/components/Dialog/{DialogTitle.js → DialogTitle.jsx} +4 -14
- package/dist/components/Dialog/{DialogTrigger.js → DialogTrigger.jsx} +4 -14
- package/dist/components/Dialog/{index.js → index.jsx} +4 -14
- package/dist/components/DoughnutChart/index.d.ts +2 -1
- package/dist/components/DoughnutChart/{index.js → index.jsx} +2 -2
- package/dist/components/DropdownMenu/{DropdonMenuRadioGroup.js → DropdonMenuRadioGroup.jsx} +6 -14
- package/dist/components/DropdownMenu/{DropdonMenuSubContent.js → DropdonMenuSubContent.jsx} +10 -7
- package/dist/components/DropdownMenu/{DropdownMenuCheckboxItem.js → DropdownMenuCheckboxItem.jsx} +7 -14
- package/dist/components/DropdownMenu/{DropdownMenuContent.js → DropdownMenuContent.jsx} +6 -3
- package/dist/components/DropdownMenu/{DropdownMenuItem.js → DropdownMenuItem.jsx} +5 -3
- package/dist/components/DropdownMenu/{DropdownMenuItemIndicator.js → DropdownMenuItemIndicator.jsx} +4 -3
- package/dist/components/DropdownMenu/{DropdownMenuLable.js → DropdownMenuLable.jsx} +4 -3
- package/dist/components/DropdownMenu/{DropdownMenuRadioItem.js → DropdownMenuRadioItem.jsx} +7 -14
- package/dist/components/DropdownMenu/{DropdownMenuSeparator.js → DropdownMenuSeparator.jsx} +2 -14
- package/dist/components/DropdownMenu/{DropdownMenuSub.js → DropdownMenuSub.jsx} +2 -14
- package/dist/components/DropdownMenu/{DropdownMenuSubTrigger.js → DropdownMenuSubTrigger.jsx} +7 -14
- package/dist/components/DropdownMenu/{DropdownMenuTrigger.js → DropdownMenuTrigger.jsx} +4 -14
- package/dist/components/DropdownMenu/{index.js → index.jsx} +2 -14
- package/dist/components/HoverCard/{HoverCardContent.js → HoverCardContent.jsx} +4 -3
- package/dist/components/HoverCard/{HoverCardTrigger.js → HoverCardTrigger.jsx} +4 -14
- package/dist/components/HoverCard/{index.js → index.jsx} +4 -14
- package/dist/components/IconButton/{index.js → index.jsx} +3 -2
- package/dist/components/Inset/{index.js → index.jsx} +6 -3
- package/dist/components/Label/{index.js → index.jsx} +3 -2
- package/dist/components/Menubar/{MenubarCheckboxItem.js → MenubarCheckboxItem.jsx} +7 -14
- package/dist/components/Menubar/{MenubarContent.js → MenubarContent.jsx} +10 -7
- package/dist/components/Menubar/{MenubarItem.js → MenubarItem.jsx} +5 -3
- package/dist/components/Menubar/{MenubarItemIndicator.js → MenubarItemIndicator.jsx} +4 -3
- package/dist/components/Menubar/{MenubarMenu.js → MenubarMenu.jsx} +2 -14
- package/dist/components/Menubar/{MenubarRadioGroup.js → MenubarRadioGroup.jsx} +6 -14
- package/dist/components/Menubar/{MenubarRadioItem.js → MenubarRadioItem.jsx} +7 -14
- package/dist/components/Menubar/{MenubarSeparator.js → MenubarSeparator.jsx} +4 -14
- package/dist/components/Menubar/{MenubarSub.js → MenubarSub.jsx} +2 -14
- package/dist/components/Menubar/{MenubarSubContent.js → MenubarSubContent.jsx} +5 -4
- package/dist/components/Menubar/{MenubarSubTrigger.js → MenubarSubTrigger.jsx} +7 -14
- package/dist/components/Menubar/{MenubarTrigger.js → MenubarTrigger.jsx} +4 -3
- package/dist/components/Menubar/{index.js → index.jsx} +6 -3
- package/dist/components/NavigationMenu/{NavigationMenuContent.js → NavigationMenuContent.jsx} +4 -3
- package/dist/components/NavigationMenu/NavigationMenuIndicator.jsx +22 -0
- package/dist/components/NavigationMenu/{NavigationMenuItem.js → NavigationMenuItem.jsx} +4 -14
- package/dist/components/NavigationMenu/{NavigationMenuLink.js → NavigationMenuLink.jsx} +4 -3
- package/dist/components/NavigationMenu/{NavigationMenuList.js → NavigationMenuList.jsx} +5 -3
- package/dist/components/NavigationMenu/{NavigationMenuTrigger.js → NavigationMenuTrigger.jsx} +5 -3
- package/dist/components/NavigationMenu/{NavigationMenuViewport.js → NavigationMenuViewport.jsx} +4 -3
- package/dist/components/NavigationMenu/{index.js → index.jsx} +6 -14
- package/dist/components/PieChart/index.d.ts +2 -1
- package/dist/components/PieChart/{index.js → index.jsx} +2 -2
- package/dist/components/Popover/{PopoverClose.js → PopoverClose.jsx} +4 -14
- package/dist/components/Popover/{PopoverContent.js → PopoverContent.jsx} +4 -3
- package/dist/components/Popover/{PopoverTrigger.js → PopoverTrigger.jsx} +4 -14
- package/dist/components/Popover/{index.js → index.jsx} +4 -14
- package/dist/components/Progress/{index.js → index.jsx} +4 -3
- package/dist/components/RadarChart/index.d.ts +2 -1
- package/dist/components/RadarChart/{index.js → index.jsx} +2 -2
- package/dist/components/Radio/{index.js → index.jsx} +8 -13
- package/dist/components/RadioCards/{RadioCardsItem.js → RadioCardsItem.jsx} +4 -14
- package/dist/components/RadioCards/{index.js → index.jsx} +6 -3
- package/dist/components/RadioGroup/{RadioGroupItem.js → RadioGroupItem.jsx} +4 -14
- package/dist/components/RadioGroup/{index.js → index.jsx} +6 -14
- package/dist/components/ScrollArea/{index.js → index.jsx} +6 -14
- package/dist/components/SegmentedControl/{SegmentedControlItem.js → SegmentedControlItem.jsx} +4 -14
- package/dist/components/SegmentedControl/{index.js → index.jsx} +5 -2
- package/dist/components/Select/{index.js → index.jsx} +26 -9
- package/dist/components/Separator/{index.js → index.jsx} +5 -2
- package/dist/components/Skeleton/{index.js → index.jsx} +5 -2
- package/dist/components/Slider/{index.js → index.jsx} +3 -2
- package/dist/components/Spinner/{index.js → index.jsx} +5 -2
- package/dist/components/TabNav/{index.js → index.jsx} +8 -14
- package/dist/components/Table/index.d.ts +2 -1
- package/dist/components/Table/{index.js → index.jsx} +24 -9
- package/dist/components/Tabs/{index.js → index.jsx} +14 -5
- package/dist/components/TextArea/{index.js → index.jsx} +3 -2
- package/dist/components/TextField/{index.js → index.jsx} +8 -3
- package/dist/components/Toast/{ToastActionButton.js → ToastActionButton.jsx} +4 -3
- package/dist/components/Toast/{ToastDescription.js → ToastDescription.jsx} +6 -14
- package/dist/components/Toast/{ToastTitle.js → ToastTitle.jsx} +4 -14
- package/dist/components/Toast/{index.js → index.jsx} +9 -3
- package/dist/components/Toggle/{ToggleWithText.js → ToggleWithText.jsx} +6 -4
- package/dist/components/Toggle/{index.js → index.jsx} +4 -3
- package/dist/components/ToggleGroup/{index.js → index.jsx} +6 -3
- package/dist/components/ToggleGroup/{toggleGroupItem.js → toggleGroupItem.jsx} +4 -14
- package/dist/components/ToggleSwitch/{index.js → index.jsx} +6 -2
- package/dist/components/Tooltip/{index.js → index.jsx} +11 -2
- package/dist/stories/Welcome.d.ts +2 -1
- package/dist/stories/Welcome.jsx +48 -0
- package/dist/stories/accordion/Accordion.stories.d.ts +1 -1
- package/dist/stories/accordion/{Accordion.stories.js → Accordion.stories.jsx} +20 -2
- package/dist/stories/alert-dialog/AlertDialog.stories.d.ts +1 -1
- package/dist/stories/alert-dialog/{AlertDialog.stories.js → AlertDialog.stories.jsx} +15 -2
- package/dist/stories/aspect-ratio/AspectRatio.stories.d.ts +3 -3
- package/dist/stories/aspect-ratio/AspectRatio.stories.jsx +106 -0
- package/dist/stories/avatar/Avatar.stories.d.ts +5 -5
- package/dist/stories/avatar/{Avatar.stories.js → Avatar.stories.jsx} +17 -6
- package/dist/stories/badge/Badge.stories.d.ts +6 -6
- package/dist/stories/badge/{Badge.stories.js → Badge.stories.jsx} +51 -7
- package/dist/stories/bubble-chart/BubbleChart.stories.d.ts +5 -4
- package/dist/stories/bubble-chart/{BubbleChart.stories.js → BubbleChart.stories.jsx} +12 -4
- package/dist/stories/button/Button.stories.d.ts +7 -7
- package/dist/stories/button/{Button.stories.js → Button.stories.jsx} +41 -8
- package/dist/stories/button/IconButton.stories.d.ts +4 -4
- package/dist/stories/button/{IconButton.stories.js → IconButton.stories.jsx} +18 -5
- package/dist/stories/callout/Callout.stories.d.ts +7 -7
- package/dist/stories/callout/Callout.stories.jsx +205 -0
- package/dist/stories/card/Card.stories.d.ts +5 -5
- package/dist/stories/card/{Card.stories.js → Card.stories.jsx} +56 -6
- package/dist/stories/checkbox/Checkbox.stories.d.ts +6 -6
- package/dist/stories/checkbox/{Checkbox.stories.js → Checkbox.stories.jsx} +63 -7
- package/dist/stories/checkbox/CheckboxCard.stories.d.ts +5 -5
- package/dist/stories/checkbox/{CheckboxCard.stories.js → CheckboxCard.stories.jsx} +41 -6
- package/dist/stories/checkbox/CheckboxGroup.stories.d.ts +3 -3
- package/dist/stories/checkbox/{CheckboxGroup.stories.js → CheckboxGroup.stories.jsx} +76 -4
- package/dist/stories/context-menu/ContextMenu.stories.d.ts +4 -4
- package/dist/stories/context-menu/{ContextMenu.stories.js → ContextMenu.stories.jsx} +74 -5
- package/dist/stories/data-list/DataList.stories.d.ts +4 -4
- package/dist/stories/data-list/DataList.stories.jsx +185 -0
- package/dist/stories/dialog/Dialog.stories.d.ts +1 -1
- package/dist/stories/dialog/{Dialog.stories.js → Dialog.stories.jsx} +25 -2
- package/dist/stories/doughnut-chart/DoughnutChart.stories.d.ts +5 -4
- package/dist/stories/doughnut-chart/{DoughnutChart.stories.js → DoughnutChart.stories.jsx} +12 -4
- package/dist/stories/dropdown-menu/DropdownMenu.stories.d.ts +4 -4
- package/dist/stories/dropdown-menu/DropdownMenu.stories.jsx +170 -0
- package/dist/stories/header/Header.stories.d.ts +6 -6
- package/dist/stories/header/{Header.stories.js → Header.stories.jsx} +26 -7
- package/dist/stories/hover-card/HoverCard.stories.d.ts +2 -2
- package/dist/stories/hover-card/{HoverCard.stories.js → HoverCard.stories.jsx} +30 -3
- package/dist/stories/inset/Inset.stories.d.ts +2 -2
- package/dist/stories/inset/{Inset.stories.js → Inset.stories.jsx} +27 -12
- package/dist/stories/label/Label.stories.d.ts +4 -4
- package/dist/stories/label/{Label.stories.js → Label.stories.jsx} +26 -5
- package/dist/stories/menubar/Menubar.stories.d.ts +1 -1
- package/dist/stories/menubar/{Menubar.stories.js → Menubar.stories.jsx} +45 -8
- package/dist/stories/navigation-menu/NavigationMenu.stories.d.ts +2 -2
- package/dist/stories/navigation-menu/{NavigationMenu.stories.js → NavigationMenu.stories.jsx} +68 -3
- package/dist/stories/pie-chart/PieChart.stories.d.ts +6 -5
- package/dist/stories/pie-chart/{PieChart.stories.js → PieChart.stories.jsx} +32 -13
- package/dist/stories/popover/Popover.stories.d.ts +2 -2
- package/dist/stories/popover/{Popover.stories.js → Popover.stories.jsx} +42 -9
- package/dist/stories/progress/Progress.stories.d.ts +4 -4
- package/dist/stories/progress/{Progress.stories.js → Progress.stories.jsx} +11 -6
- package/dist/stories/radar-chart/RadarChart.stories.d.ts +6 -5
- package/dist/stories/radar-chart/{RadarChart.stories.js → RadarChart.stories.jsx} +4 -5
- package/dist/stories/radio/Radio.stories.d.ts +3 -3
- package/dist/stories/radio/{Radio.stories.js → Radio.stories.jsx} +14 -4
- package/dist/stories/radio/RadioCards.stories.d.ts +4 -4
- package/dist/stories/radio/{RadioCards.stories.js → RadioCards.stories.jsx} +64 -5
- package/dist/stories/radio/RadioGroup.stories.d.ts +4 -4
- package/dist/stories/radio/{RadioGroup.stories.js → RadioGroup.stories.jsx} +59 -5
- package/dist/stories/scroll-area/ScrollArea.stories.d.ts +2 -2
- package/dist/stories/scroll-area/ScrollArea.stories.jsx +123 -0
- package/dist/stories/segmented-control/SegmentedControl.stories.d.ts +4 -4
- package/dist/stories/segmented-control/{SegmentedControl.stories.js → SegmentedControl.stories.jsx} +26 -5
- package/dist/stories/select/Select.stories.d.ts +5 -5
- package/dist/stories/select/{Select.stories.js → Select.stories.jsx} +67 -6
- package/dist/stories/separator/Separator.stories.d.ts +4 -4
- package/dist/stories/separator/{Separator.stories.js → Separator.stories.jsx} +29 -5
- package/dist/stories/skeleton/Skeleton.stories.d.ts +5 -5
- package/dist/stories/skeleton/{Skeleton.stories.js → Skeleton.stories.jsx} +33 -6
- package/dist/stories/slider/Slider.stories.d.ts +4 -4
- package/dist/stories/slider/{Slider.stories.js → Slider.stories.jsx} +16 -5
- package/dist/stories/spinner/Spinner.stories.d.ts +5 -5
- package/dist/stories/spinner/{Spinner.stories.js → Spinner.stories.jsx} +31 -6
- package/dist/stories/switch/Switch.stories.d.ts +4 -4
- package/dist/stories/switch/{Switch.stories.js → Switch.stories.jsx} +16 -5
- package/dist/stories/tab-nav/TabNav.stories.d.ts +1 -1
- package/dist/stories/tab-nav/{TabNav.stories.js → TabNav.stories.jsx} +11 -2
- package/dist/stories/table/Table.stories.d.ts +1 -1
- package/dist/stories/table/{Table.stories.js → Table.stories.jsx} +29 -2
- package/dist/stories/tabs/Tabs.stories.d.ts +1 -1
- package/dist/stories/tabs/{Tabs.stories.js → Tabs.stories.jsx} +19 -2
- package/dist/stories/text/Text.stories.d.ts +5 -5
- package/dist/stories/text/{Text.stories.js → Text.stories.jsx} +21 -6
- package/dist/stories/textArea/TextArea.stories.d.ts +5 -5
- package/dist/stories/textArea/{TextArea.stories.js → TextArea.stories.jsx} +22 -6
- package/dist/stories/textfield/TextField.stories.d.ts +5 -5
- package/dist/stories/textfield/{TextField.stories.js → TextField.stories.jsx} +38 -6
- package/dist/stories/toast/Toast.stories.d.ts +3 -3
- package/dist/stories/toast/{Toast.stories.js → Toast.stories.jsx} +22 -4
- package/dist/stories/toggle/Toggle.stories.d.ts +5 -5
- package/dist/stories/toggle/{Toggle.stories.js → Toggle.stories.jsx} +23 -6
- package/dist/stories/toggle/ToggleGroup.stories.d.ts +3 -3
- package/dist/stories/toggle/{ToggleGroup.stories.js → ToggleGroup.stories.jsx} +39 -6
- package/dist/stories/tooltip/Tooltip.stories.d.ts +3 -3
- package/dist/stories/tooltip/{Tooltip.stories.js → Tooltip.stories.jsx} +17 -4
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/app/page.js +0 -6
- package/dist/app/template/badgeTemplate.d.ts +0 -11
- package/dist/app/template/badgeTemplate.js +0 -11
- package/dist/app/template/buttonTemplate.d.ts +0 -11
- package/dist/app/template/buttonTemplate.js +0 -11
- package/dist/app/template/colorPicker.js +0 -14
- package/dist/app/template/textTemplate.d.ts +0 -10
- package/dist/app/template/textTemplate.js +0 -23
- package/dist/app/template/theme.js +0 -12
- package/dist/components/Input/Input.stories.d.ts +0 -77
- package/dist/components/Input/Input.stories.js +0 -74
- package/dist/components/Input/index.d.ts +0 -14
- package/dist/components/Input/index.js +0 -53
- package/dist/components/NavigationMenu/NavigationMenuIndicator.js +0 -31
- package/dist/stories/Welcome.js +0 -30
- package/dist/stories/aspect-ratio/AspectRatio.stories.js +0 -78
- package/dist/stories/callout/Callout.stories.js +0 -104
- package/dist/stories/data-list/DataList.stories.js +0 -87
- package/dist/stories/dropdown-menu/DropdownMenu.stories.js +0 -75
- package/dist/stories/scroll-area/ScrollArea.stories.js +0 -63
@@ -20,7 +20,6 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
20
20
|
}
|
21
21
|
return t;
|
22
22
|
};
|
23
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
24
23
|
import { commonArgTypes, radiusOptions, sizeOptions } from '../../constants';
|
25
24
|
import { RadioCards, RadioCardsItem } from '../../components/RadioCards';
|
26
25
|
var meta = {
|
@@ -78,17 +77,77 @@ var meta = {
|
|
78
77
|
export default meta;
|
79
78
|
export var Default = function (_a) {
|
80
79
|
var args = __rest(_a, []);
|
81
|
-
return (
|
80
|
+
return (<RadioCards {...args} defaultValue="1">
|
81
|
+
<RadioCardsItem value="1" {...args}>
|
82
|
+
radioCard 1
|
83
|
+
</RadioCardsItem>
|
84
|
+
<RadioCardsItem value="2" {...args}>
|
85
|
+
radioCard 2
|
86
|
+
</RadioCardsItem>
|
87
|
+
<RadioCardsItem value="3" {...args}>
|
88
|
+
radioCard 3
|
89
|
+
</RadioCardsItem>
|
90
|
+
</RadioCards>);
|
82
91
|
};
|
83
92
|
export var Radius = function (_a) {
|
84
93
|
var args = __rest(_a, []);
|
85
|
-
return (
|
94
|
+
return (<div className="flex items-center space-x-4">
|
95
|
+
<div className="flex space-x-1">
|
96
|
+
<RadioCards {...args} defaultValue="none">
|
97
|
+
<RadioCardsItem value="none" {...args} radius={'none'}>
|
98
|
+
none
|
99
|
+
</RadioCardsItem>
|
100
|
+
<RadioCardsItem value="small" {...args} radius={'small'}>
|
101
|
+
small
|
102
|
+
</RadioCardsItem>
|
103
|
+
<RadioCardsItem value="medium" {...args} radius={'medium'}>
|
104
|
+
medium
|
105
|
+
</RadioCardsItem>
|
106
|
+
<RadioCardsItem value="large" {...args} radius={'large'}>
|
107
|
+
large
|
108
|
+
</RadioCardsItem>
|
109
|
+
</RadioCards>
|
110
|
+
</div>
|
111
|
+
</div>);
|
86
112
|
};
|
87
113
|
export var Size = function (_a) {
|
88
114
|
var args = __rest(_a, []);
|
89
|
-
return (
|
115
|
+
return (<div className="flex items-center space-x-4">
|
116
|
+
<RadioCards defaultValue="small" {...args}>
|
117
|
+
<RadioCardsItem value={'small'} {...args} size={'small'}>
|
118
|
+
small
|
119
|
+
</RadioCardsItem>
|
120
|
+
<RadioCardsItem value={'medium'} {...args} size={'medium'}>
|
121
|
+
medium
|
122
|
+
</RadioCardsItem>
|
123
|
+
<RadioCardsItem value={'large'} {...args} size={'large'}>
|
124
|
+
large
|
125
|
+
</RadioCardsItem>
|
126
|
+
</RadioCards>
|
127
|
+
</div>);
|
90
128
|
};
|
91
129
|
export var States = function (_a) {
|
92
130
|
var args = __rest(_a, []);
|
93
|
-
return (
|
131
|
+
return (<div className="space-y-2">
|
132
|
+
<div className="flex items-center space-x-4">
|
133
|
+
<RadioCards {...args} defaultValue="On">
|
134
|
+
<RadioCardsItem value="Off" {...args}>
|
135
|
+
Off
|
136
|
+
</RadioCardsItem>
|
137
|
+
<RadioCardsItem value="On" {...args}>
|
138
|
+
On
|
139
|
+
</RadioCardsItem>
|
140
|
+
</RadioCards>
|
141
|
+
</div>
|
142
|
+
<div className="flex items-center space-x-4">
|
143
|
+
<RadioCards {...args} defaultValue="On">
|
144
|
+
<RadioCardsItem value="Off" {...args} disabled>
|
145
|
+
Off
|
146
|
+
</RadioCardsItem>
|
147
|
+
<RadioCardsItem value="On" {...args} disabled>
|
148
|
+
On
|
149
|
+
</RadioCardsItem>
|
150
|
+
</RadioCards>
|
151
|
+
</div>
|
152
|
+
</div>);
|
94
153
|
};
|
@@ -99,13 +99,13 @@ declare const meta: {
|
|
99
99
|
export default meta;
|
100
100
|
export declare const Default: ({ ...args }: {
|
101
101
|
[x: string]: any;
|
102
|
-
}) => import("react
|
102
|
+
}) => import("react").JSX.Element;
|
103
103
|
export declare const Size: ({ ...args }: {
|
104
104
|
[x: string]: any;
|
105
|
-
}) => import("react
|
105
|
+
}) => import("react").JSX.Element;
|
106
106
|
export declare const Appearance: ({ ...args }: {
|
107
107
|
[x: string]: any;
|
108
|
-
}) => import("react
|
108
|
+
}) => import("react").JSX.Element;
|
109
109
|
export declare const Disabled: ({ ...args }: {
|
110
110
|
[x: string]: any;
|
111
|
-
}) => import("react
|
111
|
+
}) => import("react").JSX.Element;
|
@@ -20,7 +20,6 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
20
20
|
}
|
21
21
|
return t;
|
22
22
|
};
|
23
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
24
23
|
import { commonArgTypes, sizeOptions } from '../../constants';
|
25
24
|
import { RadioGroup, RadioGroupItem } from '../../components/RadioGroup';
|
26
25
|
var meta = {
|
@@ -72,17 +71,72 @@ var meta = {
|
|
72
71
|
export default meta;
|
73
72
|
export var Default = function (_a) {
|
74
73
|
var args = __rest(_a, []);
|
75
|
-
return (
|
74
|
+
return (<RadioGroup defaultValue={'1'} name="example" {...args}>
|
75
|
+
<RadioGroupItem value="1" {...args}>
|
76
|
+
Default
|
77
|
+
</RadioGroupItem>
|
78
|
+
<RadioGroupItem value="2" {...args}>
|
79
|
+
Comfortable
|
80
|
+
</RadioGroupItem>
|
81
|
+
<RadioGroupItem value="3" {...args}>
|
82
|
+
Compact
|
83
|
+
</RadioGroupItem>
|
84
|
+
</RadioGroup>);
|
76
85
|
};
|
77
86
|
export var Size = function (_a) {
|
78
87
|
var args = __rest(_a, []);
|
79
|
-
return (
|
88
|
+
return (<div className="flex items-center space-x-4">
|
89
|
+
{['small', 'medium', 'large'].map(function (size) { return (<RadioGroup key={size} defaultValue={'1'} name={size} {...args} size={size}>
|
90
|
+
<RadioGroupItem value="1" {...args}>
|
91
|
+
Default
|
92
|
+
</RadioGroupItem>
|
93
|
+
<RadioGroupItem value="2" {...args}>
|
94
|
+
Comfortable
|
95
|
+
</RadioGroupItem>
|
96
|
+
<RadioGroupItem value="3" {...args}>
|
97
|
+
Compact
|
98
|
+
</RadioGroupItem>
|
99
|
+
</RadioGroup>); })}
|
100
|
+
</div>);
|
80
101
|
};
|
81
102
|
export var Appearance = function (_a) {
|
82
103
|
var args = __rest(_a, []);
|
83
|
-
return (
|
104
|
+
return (<div className="flex items-center space-x-4">
|
105
|
+
{['classic', 'soft', 'surface'].map(function (appearance) { return (<RadioGroup key={appearance} defaultValue={'1'} name={appearance} {...args} appearance={appearance}>
|
106
|
+
<RadioGroupItem value="1" {...args}>
|
107
|
+
Default
|
108
|
+
</RadioGroupItem>
|
109
|
+
<RadioGroupItem value="2" {...args}>
|
110
|
+
Comfortable
|
111
|
+
</RadioGroupItem>
|
112
|
+
<RadioGroupItem value="3" {...args}>
|
113
|
+
Compact
|
114
|
+
</RadioGroupItem>
|
115
|
+
</RadioGroup>); })}
|
116
|
+
</div>);
|
84
117
|
};
|
85
118
|
export var Disabled = function (_a) {
|
86
119
|
var args = __rest(_a, []);
|
87
|
-
return (
|
120
|
+
return (<div className="flex items-center space-x-4">
|
121
|
+
<div>
|
122
|
+
<RadioGroup defaultValue={'On'} {...args}>
|
123
|
+
<RadioGroupItem value="Off" {...args}>
|
124
|
+
Off
|
125
|
+
</RadioGroupItem>
|
126
|
+
<RadioGroupItem value="On" {...args}>
|
127
|
+
On
|
128
|
+
</RadioGroupItem>
|
129
|
+
</RadioGroup>
|
130
|
+
</div>
|
131
|
+
<div>
|
132
|
+
<RadioGroup defaultValue={'On'} {...args}>
|
133
|
+
<RadioGroupItem value="Off" {...args} disabled>
|
134
|
+
Off
|
135
|
+
</RadioGroupItem>
|
136
|
+
<RadioGroupItem value="On" {...args} disabled>
|
137
|
+
On
|
138
|
+
</RadioGroupItem>
|
139
|
+
</RadioGroup>
|
140
|
+
</div>
|
141
|
+
</div>);
|
88
142
|
};
|
@@ -53,7 +53,7 @@ declare const meta: {
|
|
53
53
|
export default meta;
|
54
54
|
export declare const Default: ({ ...args }: {
|
55
55
|
[x: string]: any;
|
56
|
-
}) => import("react
|
56
|
+
}) => import("react").JSX.Element;
|
57
57
|
export declare const Type: ({ ...args }: {
|
58
58
|
[x: string]: any;
|
59
|
-
}) => import("react
|
59
|
+
}) => import("react").JSX.Element;
|
@@ -0,0 +1,123 @@
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
2
|
+
__assign = Object.assign || function(t) {
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
4
|
+
s = arguments[i];
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
6
|
+
t[p] = s[p];
|
7
|
+
}
|
8
|
+
return t;
|
9
|
+
};
|
10
|
+
return __assign.apply(this, arguments);
|
11
|
+
};
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
13
|
+
var t = {};
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
15
|
+
t[p] = s[p];
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
19
|
+
t[p[i]] = s[p[i]];
|
20
|
+
}
|
21
|
+
return t;
|
22
|
+
};
|
23
|
+
import { commonArgTypes, sizeOptions } from '../../constants';
|
24
|
+
import { ScrollArea } from '../../components/ScrollArea';
|
25
|
+
import { Header } from 'Typography/Header';
|
26
|
+
import { Text } from 'Typography/Text';
|
27
|
+
var meta = {
|
28
|
+
title: 'Component/ScrollArea',
|
29
|
+
component: ScrollArea,
|
30
|
+
parameters: {
|
31
|
+
layout: 'centered',
|
32
|
+
themes: {
|
33
|
+
themeOverride: 'dark',
|
34
|
+
},
|
35
|
+
docs: {
|
36
|
+
description: {
|
37
|
+
component: '스크롤 가능 영역',
|
38
|
+
},
|
39
|
+
},
|
40
|
+
},
|
41
|
+
tags: ['autodocs'],
|
42
|
+
argTypes: {
|
43
|
+
radius: __assign(__assign({}, commonArgTypes.radius), { description: 'scrollArea 둥글기' }),
|
44
|
+
size: __assign(__assign({}, commonArgTypes.size), { table: {
|
45
|
+
category: 'Props',
|
46
|
+
type: {
|
47
|
+
summary: sizeOptions
|
48
|
+
.filter(function (value) { return value != 'x-small' && value != 'x-large'; })
|
49
|
+
.join(' | '),
|
50
|
+
},
|
51
|
+
}, options: sizeOptions.filter(function (value) { return value != 'x-small' && value != 'x-large'; }), description: 'scrollArea 크기' }),
|
52
|
+
},
|
53
|
+
};
|
54
|
+
export default meta;
|
55
|
+
export var Default = function (_a) {
|
56
|
+
var args = __rest(_a, []);
|
57
|
+
return (<ScrollArea type="always" scrollbars="vertical" className="h-[180px]" {...args}>
|
58
|
+
<div className="p-2 pr-8">
|
59
|
+
<Header size={'4'} mb={'2'} trim={'start'}>
|
60
|
+
Principles of the typographic craft
|
61
|
+
</Header>
|
62
|
+
<div className="flex flex-col gap-4">
|
63
|
+
<Text as="p">
|
64
|
+
Three fundamental aspects of typography are legibility, readability, and aesthetics.
|
65
|
+
Although in a non-technical sense “legible” and “readable” are often used synonymously,
|
66
|
+
typographically they are separate but related concepts.
|
67
|
+
</Text>
|
68
|
+
|
69
|
+
<Text as="p">
|
70
|
+
Legibility describes how easily individual characters can be distinguished from one
|
71
|
+
another. It is described by Walter Tracy as “the quality of being decipherable and
|
72
|
+
recognisable”. For instance, if a “b” and an “h”, or a “3” and an “8”, are difficult to
|
73
|
+
distinguish at small sizes, this is a problem of legibility.
|
74
|
+
</Text>
|
75
|
+
|
76
|
+
<Text as="p">
|
77
|
+
Typographers are concerned with legibility insofar as it is their job to select the
|
78
|
+
correct font to use. Brush Script is an example of a font containing many characters that
|
79
|
+
might be difficult to distinguish. The selection of cases influences the legibility of
|
80
|
+
typography because using only uppercase letters (all-caps) reduces legibility.
|
81
|
+
</Text>
|
82
|
+
</div>
|
83
|
+
</div>
|
84
|
+
</ScrollArea>);
|
85
|
+
};
|
86
|
+
export var Type = function (_a) {
|
87
|
+
var args = __rest(_a, []);
|
88
|
+
return (<div className="grid grid-cols-2 gap-2">
|
89
|
+
<ScrollArea type="always" scrollbars="vertical" className="h-[150px]" {...args}>
|
90
|
+
<div className="flex flex-col p-2 pr-8 gap-4">
|
91
|
+
<Text size="2">
|
92
|
+
Three fundamental aspects of typography are legibility, readability, and aesthetics.
|
93
|
+
Although in a non-technical sense legible and readable are often used synonymously,
|
94
|
+
typographically they are separate but related concepts.
|
95
|
+
</Text>
|
96
|
+
|
97
|
+
<Text size="2">
|
98
|
+
Legibility describes how easily individual characters can be distinguished from one
|
99
|
+
another. It is described by Walter Tracy as the quality of being decipherable and
|
100
|
+
recognisable. For instance, if a b and an h, or a 3 and an 8, are difficult to distinguish
|
101
|
+
at small sizes, this is a problem of legibility.
|
102
|
+
</Text>
|
103
|
+
</div>
|
104
|
+
</ScrollArea>
|
105
|
+
|
106
|
+
<ScrollArea type="always" scrollbars="horizontal" className="h-[150px]" {...args}>
|
107
|
+
<div className="gap-4 p-2 w-[700px]">
|
108
|
+
<Text size="2">
|
109
|
+
Three fundamental aspects of typography are legibility, readability, and aesthetics.
|
110
|
+
Although in a non-technical sense legible and readable are often used synonymously,
|
111
|
+
typographically they are separate but related concepts.
|
112
|
+
</Text>
|
113
|
+
|
114
|
+
<Text size="2">
|
115
|
+
Legibility describes how easily individual characters can be distinguished from one
|
116
|
+
another. It is described by Walter Tracy as the quality of being decipherable and
|
117
|
+
recognisable. For instance, if a b and an h, or a 3 and an 8, are difficult to distinguish
|
118
|
+
at small sizes, this is a problem of legibility.
|
119
|
+
</Text>
|
120
|
+
</div>
|
121
|
+
</ScrollArea>
|
122
|
+
</div>);
|
123
|
+
};
|
@@ -85,13 +85,13 @@ declare const meta: {
|
|
85
85
|
export default meta;
|
86
86
|
export declare const Default: ({ ...args }: {
|
87
87
|
[x: string]: any;
|
88
|
-
}) => import("react
|
88
|
+
}) => import("react").JSX.Element;
|
89
89
|
export declare const Size: ({ ...args }: {
|
90
90
|
[x: string]: any;
|
91
|
-
}) => import("react
|
91
|
+
}) => import("react").JSX.Element;
|
92
92
|
export declare const Radius: ({ ...args }: {
|
93
93
|
[x: string]: any;
|
94
|
-
}) => import("react
|
94
|
+
}) => import("react").JSX.Element;
|
95
95
|
export declare const Variant: ({ ...args }: {
|
96
96
|
[x: string]: any;
|
97
|
-
}) => import("react
|
97
|
+
}) => import("react").JSX.Element;
|
package/dist/stories/segmented-control/{SegmentedControl.stories.js → SegmentedControl.stories.jsx}
RENAMED
@@ -20,7 +20,6 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
20
20
|
}
|
21
21
|
return t;
|
22
22
|
};
|
23
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
24
23
|
import { SegmentedControl, SegmentedControlItem } from '../../components/SegmentedControl';
|
25
24
|
import { commonArgTypes, radiusOptions, sizeOptions } from '../../constants';
|
26
25
|
var meta = {
|
@@ -64,17 +63,39 @@ var meta = {
|
|
64
63
|
export default meta;
|
65
64
|
export var Default = function (_a) {
|
66
65
|
var args = __rest(_a, []);
|
67
|
-
return (
|
66
|
+
return (<SegmentedControl {...args} defaultValue={'inbox'}>
|
67
|
+
<SegmentedControlItem value={'inbox'}>Inbox</SegmentedControlItem>
|
68
|
+
<SegmentedControlItem value={'drafts'}>Drafts</SegmentedControlItem>
|
69
|
+
<SegmentedControlItem value={'sent'}>Sent</SegmentedControlItem>
|
70
|
+
</SegmentedControl>);
|
68
71
|
};
|
69
72
|
export var Size = function (_a) {
|
70
73
|
var args = __rest(_a, []);
|
71
|
-
return (
|
74
|
+
return (<div className="flex flex-col space-y-3">
|
75
|
+
{['small', 'medium', 'large'].map(function (size) { return (<SegmentedControl key={size} defaultValue={'inbox'} {...args} size={size}>
|
76
|
+
<SegmentedControlItem value={'inbox'}>Inbox</SegmentedControlItem>
|
77
|
+
<SegmentedControlItem value={'drafts'}>Drafts</SegmentedControlItem>
|
78
|
+
<SegmentedControlItem value={'sent'}>Sent</SegmentedControlItem>
|
79
|
+
</SegmentedControl>); })}
|
80
|
+
</div>);
|
72
81
|
};
|
73
82
|
export var Radius = function (_a) {
|
74
83
|
var args = __rest(_a, []);
|
75
|
-
return (
|
84
|
+
return (<div className="flex flex-col space-y-3">
|
85
|
+
{radiusOptions.map(function (radius) { return (<SegmentedControl key={radius} defaultValue={'inbox'} {...args} radius={radius}>
|
86
|
+
<SegmentedControlItem value={'inbox'}>Inbox</SegmentedControlItem>
|
87
|
+
<SegmentedControlItem value={'drafts'}>Drafts</SegmentedControlItem>
|
88
|
+
<SegmentedControlItem value={'sent'}>Sent</SegmentedControlItem>
|
89
|
+
</SegmentedControl>); })}
|
90
|
+
</div>);
|
76
91
|
};
|
77
92
|
export var Variant = function (_a) {
|
78
93
|
var args = __rest(_a, []);
|
79
|
-
return (
|
94
|
+
return (<div className="flex flex-col space-y-3">
|
95
|
+
{['surface', 'classic'].map(function (appearance) { return (<SegmentedControl key={appearance} defaultValue={'inbox'} {...args} appearance={appearance}>
|
96
|
+
<SegmentedControlItem value={'inbox'}>Inbox</SegmentedControlItem>
|
97
|
+
<SegmentedControlItem value={'drafts'}>Drafts</SegmentedControlItem>
|
98
|
+
<SegmentedControlItem value={'sent'}>Sent</SegmentedControlItem>
|
99
|
+
</SegmentedControl>); })}
|
100
|
+
</div>);
|
80
101
|
};
|
@@ -101,16 +101,16 @@ declare const meta: {
|
|
101
101
|
export default meta;
|
102
102
|
export declare const Default: ({ ...args }: {
|
103
103
|
[x: string]: any;
|
104
|
-
}) => import("react
|
104
|
+
}) => import("react").JSX.Element;
|
105
105
|
export declare const Size: ({ ...args }: {
|
106
106
|
[x: string]: any;
|
107
|
-
}) => import("react
|
107
|
+
}) => import("react").JSX.Element;
|
108
108
|
export declare const Appearance: ({ ...args }: {
|
109
109
|
[x: string]: any;
|
110
|
-
}) => import("react
|
110
|
+
}) => import("react").JSX.Element;
|
111
111
|
export declare const Radius: ({ ...args }: {
|
112
112
|
[x: string]: any;
|
113
|
-
}) => import("react
|
113
|
+
}) => import("react").JSX.Element;
|
114
114
|
export declare const WithIcon: ({ ...args }: {
|
115
115
|
[x: string]: any;
|
116
|
-
}) => import("react
|
116
|
+
}) => import("react").JSX.Element;
|
@@ -20,7 +20,6 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
20
20
|
}
|
21
21
|
return t;
|
22
22
|
};
|
23
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
24
23
|
import { Select, SelectContent, SelectItem, SelectTrigger } from '../../components/Select/index';
|
25
24
|
import { commonArgTypes, radiusOptions } from '../../constants';
|
26
25
|
import { MoonIcon, SunIcon } from '@radix-ui/react-icons';
|
@@ -68,21 +67,83 @@ var meta = {
|
|
68
67
|
export default meta;
|
69
68
|
export var Default = function (_a) {
|
70
69
|
var args = __rest(_a, []);
|
71
|
-
return (
|
70
|
+
return (<Select {...args}>
|
71
|
+
<SelectTrigger {...args} placeholder="Select..."/>
|
72
|
+
<SelectContent {...args}>
|
73
|
+
<SelectItem value="apple" {...args}>
|
74
|
+
Apple
|
75
|
+
</SelectItem>
|
76
|
+
<SelectItem value="orange" {...args}>
|
77
|
+
Orange
|
78
|
+
</SelectItem>
|
79
|
+
</SelectContent>
|
80
|
+
</Select>);
|
72
81
|
};
|
73
82
|
export var Size = function (_a) {
|
74
83
|
var args = __rest(_a, []);
|
75
|
-
return (
|
84
|
+
return (<div className="flex gap-3">
|
85
|
+
{['small', 'medium', 'large'].map(function (size) { return (<Select key={size} size={size} {...args}>
|
86
|
+
<SelectTrigger {...args} placeholder="Select..."/>
|
87
|
+
<SelectContent {...args}>
|
88
|
+
<SelectItem value="apple" {...args}>
|
89
|
+
Apple
|
90
|
+
</SelectItem>
|
91
|
+
<SelectItem value="orange" {...args}>
|
92
|
+
Orange
|
93
|
+
</SelectItem>
|
94
|
+
</SelectContent>
|
95
|
+
</Select>); })}
|
96
|
+
</div>);
|
76
97
|
};
|
77
98
|
export var Appearance = function (_a) {
|
78
99
|
var args = __rest(_a, []);
|
79
|
-
return (
|
100
|
+
return (<div className="flex gap-3">
|
101
|
+
{['classic', 'surface', 'soft', 'ghost'].map(function (appearance) { return (<Select key={appearance} {...args}>
|
102
|
+
<SelectTrigger appearance={appearance} {...args} placeholder="Select..."/>
|
103
|
+
<SelectContent {...args}>
|
104
|
+
<SelectItem value="apple" {...args}>
|
105
|
+
Apple
|
106
|
+
</SelectItem>
|
107
|
+
<SelectItem value="orange" {...args}>
|
108
|
+
Orange
|
109
|
+
</SelectItem>
|
110
|
+
</SelectContent>
|
111
|
+
</Select>); })}
|
112
|
+
</div>);
|
80
113
|
};
|
81
114
|
export var Radius = function (_a) {
|
82
115
|
var args = __rest(_a, []);
|
83
|
-
return (
|
116
|
+
return (<div className="flex gap-3">
|
117
|
+
{radiusOptions.map(function (radius) { return (<Select key={radius} {...args}>
|
118
|
+
<SelectTrigger radius={radius} {...args} placeholder="Select..."/>
|
119
|
+
<SelectContent {...args}>
|
120
|
+
<SelectItem value="apple" {...args}>
|
121
|
+
Apple
|
122
|
+
</SelectItem>
|
123
|
+
<SelectItem value="orange" {...args}>
|
124
|
+
Orange
|
125
|
+
</SelectItem>
|
126
|
+
</SelectContent>
|
127
|
+
</Select>); })}
|
128
|
+
</div>);
|
84
129
|
};
|
85
130
|
export var WithIcon = function (_a) {
|
86
131
|
var args = __rest(_a, []);
|
87
|
-
return (
|
132
|
+
return (<Select defaultValue="dark" {...args}>
|
133
|
+
<SelectTrigger {...args}></SelectTrigger>
|
134
|
+
<SelectContent {...args}>
|
135
|
+
<SelectItem value="dark" {...args}>
|
136
|
+
<div className="flex gap-2 items-center">
|
137
|
+
<MoonIcon />
|
138
|
+
<label>Dark</label>
|
139
|
+
</div>
|
140
|
+
</SelectItem>
|
141
|
+
<SelectItem value="light" {...args}>
|
142
|
+
<div className="flex gap-2 items-center">
|
143
|
+
<SunIcon />
|
144
|
+
<label>Light</label>
|
145
|
+
</div>
|
146
|
+
</SelectItem>
|
147
|
+
</SelectContent>
|
148
|
+
</Select>);
|
88
149
|
};
|
@@ -81,13 +81,13 @@ declare const meta: {
|
|
81
81
|
export default meta;
|
82
82
|
export declare const Default: ({ ...args }: {
|
83
83
|
[x: string]: any;
|
84
|
-
}) => import("react
|
84
|
+
}) => import("react").JSX.Element;
|
85
85
|
export declare const Orientation: ({ ...args }: {
|
86
86
|
[x: string]: any;
|
87
|
-
}) => import("react
|
87
|
+
}) => import("react").JSX.Element;
|
88
88
|
export declare const HorizontalSize: ({ ...args }: {
|
89
89
|
[x: string]: any;
|
90
|
-
}) => import("react
|
90
|
+
}) => import("react").JSX.Element;
|
91
91
|
export declare const VerticalSize: ({ ...args }: {
|
92
92
|
[x: string]: any;
|
93
|
-
}) => import("react
|
93
|
+
}) => import("react").JSX.Element;
|
@@ -20,7 +20,6 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
20
20
|
}
|
21
21
|
return t;
|
22
22
|
};
|
23
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
24
23
|
import { Separator } from '../../components/Separator/index';
|
25
24
|
import { commonArgTypes } from '../../constants';
|
26
25
|
var meta = {
|
@@ -66,17 +65,42 @@ var meta = {
|
|
66
65
|
export default meta;
|
67
66
|
export var Default = function (_a) {
|
68
67
|
var args = __rest(_a, []);
|
69
|
-
return (
|
68
|
+
return (<div className="text-slate-12 dark:text-slate-1 w-full max-w-[300px] mx-[15px]">
|
69
|
+
Tools for building high-quality, accessible UI.
|
70
|
+
<Separator my="3" size="fill-large" {...args}/>
|
71
|
+
<div className="flex gap-3 text-slate-12 dark:text-slate-1 ">
|
72
|
+
Themes
|
73
|
+
<Separator orientation="vertical" {...args}/>
|
74
|
+
Primitives
|
75
|
+
<Separator orientation="vertical" {...args}/>
|
76
|
+
Icons
|
77
|
+
<Separator orientation="vertical" {...args}/>
|
78
|
+
Colors
|
79
|
+
</div>
|
80
|
+
</div>);
|
70
81
|
};
|
71
82
|
export var Orientation = function (_a) {
|
72
83
|
var args = __rest(_a, []);
|
73
|
-
return (
|
84
|
+
return (<div className="grid grid-cols-2 gap-2">
|
85
|
+
<Separator orientation={'horizontal'} {...args}/>
|
86
|
+
<Separator orientation={'vertical'} {...args}/>
|
87
|
+
</div>);
|
74
88
|
};
|
75
89
|
export var HorizontalSize = function (_a) {
|
76
90
|
var args = __rest(_a, []);
|
77
|
-
return (
|
91
|
+
return (<div className="w-96 grid gap-4">
|
92
|
+
<Separator orientation={'horizontal'} size={'small'} {...args}/>
|
93
|
+
<Separator orientation={'horizontal'} size={'medium'} {...args}/>
|
94
|
+
<Separator orientation={'horizontal'} size={'large'} {...args}/>
|
95
|
+
<Separator orientation={'horizontal'} size={'fill-large'} {...args}/>
|
96
|
+
</div>);
|
78
97
|
};
|
79
98
|
export var VerticalSize = function (_a) {
|
80
99
|
var args = __rest(_a, []);
|
81
|
-
return (
|
100
|
+
return (<div className="h-60 grid grid-cols-4 gap-4">
|
101
|
+
<Separator orientation={'vertical'} size={'small'} {...args}/>
|
102
|
+
<Separator orientation={'vertical'} size={'medium'} {...args}/>
|
103
|
+
<Separator orientation={'vertical'} size={'large'} {...args}/>
|
104
|
+
<Separator orientation={'vertical'} size={'fill-large'} {...args}/>
|
105
|
+
</div>);
|
82
106
|
};
|
@@ -73,16 +73,16 @@ declare const meta: {
|
|
73
73
|
export default meta;
|
74
74
|
export declare const Default: ({ ...args }: {
|
75
75
|
[x: string]: any;
|
76
|
-
}) => import("react
|
76
|
+
}) => import("react").JSX.Element;
|
77
77
|
export declare const Loading: ({ ...args }: {
|
78
78
|
[x: string]: any;
|
79
|
-
}) => import("react
|
79
|
+
}) => import("react").JSX.Element;
|
80
80
|
export declare const WithChildren: ({ ...args }: {
|
81
81
|
[x: string]: any;
|
82
|
-
}) => import("react
|
82
|
+
}) => import("react").JSX.Element;
|
83
83
|
export declare const Radius: ({ ...args }: {
|
84
84
|
[x: string]: any;
|
85
|
-
}) => import("react
|
85
|
+
}) => import("react").JSX.Element;
|
86
86
|
export declare const Size: ({ ...args }: {
|
87
87
|
[x: string]: any;
|
88
|
-
}) => import("react
|
88
|
+
}) => import("react").JSX.Element;
|