@lotte-innovate/ui-component-test 0.0.45 → 0.0.49
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/lib/Typography/Header/index.d.ts +13 -0
- package/dist/lib/Typography/Header/index.jsx +58 -0
- package/dist/lib/Typography/Text/index.d.ts +15 -0
- package/dist/lib/Typography/Text/index.jsx +47 -0
- package/dist/lib/Typography/index.d.ts +2 -0
- package/dist/lib/Typography/index.js +2 -0
- package/dist/lib/color/alpha.d.ts +784 -0
- package/dist/lib/color/alpha.js +784 -0
- package/dist/lib/color/constants.d.ts +29 -0
- package/dist/lib/color/constants.js +296 -0
- package/dist/lib/color/dark.d.ts +392 -0
- package/dist/lib/color/dark.js +392 -0
- package/dist/lib/color/krdsColors.d.ts +309 -0
- package/dist/lib/color/krdsColors.js +309 -0
- package/dist/lib/color/light.d.ts +392 -0
- package/dist/lib/color/light.js +393 -0
- package/dist/lib/components/Accordion/index.d.ts +22 -0
- package/dist/lib/components/Accordion/index.jsx +76 -0
- package/dist/lib/components/AlertDialog/AlertDialogAction.d.ts +14 -0
- package/dist/lib/components/AlertDialog/AlertDialogAction.jsx +62 -0
- package/dist/lib/components/AlertDialog/AlertDialogCancel.d.ts +13 -0
- package/dist/lib/components/AlertDialog/AlertDialogCancel.jsx +61 -0
- package/dist/lib/components/AlertDialog/AlertDialogContent.d.ts +11 -0
- package/dist/lib/components/AlertDialog/AlertDialogContent.jsx +55 -0
- package/dist/lib/components/AlertDialog/AlertDialogDescription.d.ts +10 -0
- package/dist/lib/components/AlertDialog/AlertDialogDescription.jsx +37 -0
- package/dist/lib/components/AlertDialog/AlertDialogRoot.d.ts +16 -0
- package/dist/lib/components/AlertDialog/AlertDialogRoot.jsx +38 -0
- package/dist/lib/components/AlertDialog/AlertDialogTitle.d.ts +10 -0
- package/dist/lib/components/AlertDialog/AlertDialogTitle.jsx +37 -0
- package/dist/lib/components/AlertDialog/AlertDialogTrigger.d.ts +17 -0
- package/dist/lib/components/AlertDialog/AlertDialogTrigger.jsx +56 -0
- package/dist/lib/components/AlertDialog/index.d.ts +11 -0
- package/dist/lib/components/AlertDialog/index.jsx +17 -0
- package/dist/lib/components/AspectRatio/index.d.ts +10 -0
- package/dist/lib/components/AspectRatio/index.jsx +43 -0
- package/dist/lib/components/Avatar/index.d.ts +21 -0
- package/dist/lib/components/Avatar/index.jsx +62 -0
- package/dist/lib/components/Badge/index.d.ts +18 -0
- package/dist/lib/components/Badge/index.jsx +55 -0
- package/dist/lib/components/BarChart/index.d.ts +38 -0
- package/dist/lib/components/BarChart/index.jsx +62 -0
- package/dist/lib/components/BubbleChart/index.d.ts +29 -0
- package/dist/lib/components/BubbleChart/index.jsx +73 -0
- package/dist/lib/components/Button/index.d.ts +16 -0
- package/dist/lib/components/Button/index.jsx +57 -0
- package/dist/lib/components/Callout/CalloutIcon.d.ts +13 -0
- package/dist/lib/components/Callout/CalloutIcon.jsx +62 -0
- package/dist/lib/components/Callout/CalloutRoot.d.ts +18 -0
- package/dist/lib/components/Callout/CalloutRoot.jsx +75 -0
- package/dist/lib/components/Callout/CalloutText.d.ts +10 -0
- package/dist/lib/components/Callout/CalloutText.jsx +42 -0
- package/dist/lib/components/Callout/index.d.ts +7 -0
- package/dist/lib/components/Callout/index.jsx +9 -0
- package/dist/lib/components/Card/index.d.ts +14 -0
- package/dist/lib/components/Card/index.jsx +65 -0
- package/dist/lib/components/Checkbox/index.d.ts +17 -0
- package/dist/lib/components/Checkbox/index.jsx +97 -0
- package/dist/lib/components/CheckboxCard/index.d.ts +20 -0
- package/dist/lib/components/CheckboxCard/index.jsx +60 -0
- package/dist/lib/components/CheckboxGroup/CheckboxGroupItem.d.ts +5 -0
- package/dist/lib/components/CheckboxGroup/CheckboxGroupItem.jsx +25 -0
- package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.d.ts +17 -0
- package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.jsx +37 -0
- package/dist/lib/components/CheckboxGroup/index.d.ts +6 -0
- package/dist/lib/components/CheckboxGroup/index.jsx +4 -0
- package/dist/lib/components/ContextMenu/ContextMenuCheckboxItem.d.ts +4 -0
- package/dist/lib/components/ContextMenu/ContextMenuCheckboxItem.jsx +35 -0
- package/dist/lib/components/ContextMenu/ContextMenuContent.d.ts +11 -0
- package/dist/lib/components/ContextMenu/ContextMenuContent.jsx +59 -0
- package/dist/lib/components/ContextMenu/ContextMenuGroup.d.ts +4 -0
- package/dist/lib/components/ContextMenu/ContextMenuGroup.jsx +20 -0
- package/dist/lib/components/ContextMenu/ContextMenuItem.d.ts +13 -0
- package/dist/lib/components/ContextMenu/ContextMenuItem.jsx +61 -0
- package/dist/lib/components/ContextMenu/ContextMenuItemIndicator.d.ts +10 -0
- package/dist/lib/components/ContextMenu/ContextMenuItemIndicator.jsx +51 -0
- package/dist/lib/components/ContextMenu/ContextMenuLabel.d.ts +11 -0
- package/dist/lib/components/ContextMenu/ContextMenuLabel.jsx +49 -0
- package/dist/lib/components/ContextMenu/ContextMenuRadioGroup.d.ts +8 -0
- package/dist/lib/components/ContextMenu/ContextMenuRadioGroup.jsx +23 -0
- package/dist/lib/components/ContextMenu/ContextMenuRadioItem.d.ts +4 -0
- package/dist/lib/components/ContextMenu/ContextMenuRadioItem.jsx +37 -0
- package/dist/lib/components/ContextMenu/ContextMenuRoot.d.ts +13 -0
- package/dist/lib/components/ContextMenu/ContextMenuRoot.jsx +34 -0
- package/dist/lib/components/ContextMenu/ContextMenuSeparator.d.ts +3 -0
- package/dist/lib/components/ContextMenu/ContextMenuSeparator.jsx +21 -0
- package/dist/lib/components/ContextMenu/ContextMenuSubContent.d.ts +11 -0
- package/dist/lib/components/ContextMenu/ContextMenuSubContent.jsx +57 -0
- package/dist/lib/components/ContextMenu/ContextMenuSubTrigger.d.ts +4 -0
- package/dist/lib/components/ContextMenu/ContextMenuSubTrigger.jsx +35 -0
- package/dist/lib/components/ContextMenu/ContextMenuTrigger.d.ts +4 -0
- package/dist/lib/components/ContextMenu/ContextMenuTrigger.jsx +21 -0
- package/dist/lib/components/ContextMenu/index.d.ts +17 -0
- package/dist/lib/components/ContextMenu/index.jsx +29 -0
- package/dist/lib/components/DataList/DataListItem.d.ts +9 -0
- package/dist/lib/components/DataList/DataListItem.jsx +44 -0
- package/dist/lib/components/DataList/DataListLabel.d.ts +10 -0
- package/dist/lib/components/DataList/DataListLabel.jsx +50 -0
- package/dist/lib/components/DataList/DataListRoot.d.ts +14 -0
- package/dist/lib/components/DataList/DataListRoot.jsx +46 -0
- package/dist/lib/components/DataList/DataListValue.d.ts +11 -0
- package/dist/lib/components/DataList/DataListValue.jsx +52 -0
- package/dist/lib/components/DataList/index.d.ts +8 -0
- package/dist/lib/components/DataList/index.jsx +6 -0
- package/dist/lib/components/Dialog/DialogAction.d.ts +13 -0
- package/dist/lib/components/Dialog/DialogAction.jsx +49 -0
- package/dist/lib/components/Dialog/DialogCancel.d.ts +11 -0
- package/dist/lib/components/Dialog/DialogCancel.jsx +45 -0
- package/dist/lib/components/Dialog/DialogContent.d.ts +11 -0
- package/dist/lib/components/Dialog/DialogContent.jsx +58 -0
- package/dist/lib/components/Dialog/DialogDescription.d.ts +9 -0
- package/dist/lib/components/Dialog/DialogDescription.jsx +37 -0
- package/dist/lib/components/Dialog/DialogRoot.d.ts +15 -0
- package/dist/lib/components/Dialog/DialogRoot.jsx +29 -0
- package/dist/lib/components/Dialog/DialogSlot.d.ts +9 -0
- package/dist/lib/components/Dialog/DialogSlot.jsx +36 -0
- package/dist/lib/components/Dialog/DialogTitle.d.ts +11 -0
- package/dist/lib/components/Dialog/DialogTitle.jsx +37 -0
- package/dist/lib/components/Dialog/DialogTrigger.d.ts +3 -0
- package/dist/lib/components/Dialog/DialogTrigger.jsx +20 -0
- package/dist/lib/components/Dialog/index.d.ts +15 -0
- package/dist/lib/components/Dialog/index.jsx +19 -0
- package/dist/lib/components/DoughnutChart/index.d.ts +23 -0
- package/dist/lib/components/DoughnutChart/index.jsx +65 -0
- package/dist/lib/components/DropdownMenu/DropdonMenuRadioGroup.d.ts +3 -0
- package/dist/lib/components/DropdownMenu/DropdonMenuRadioGroup.jsx +20 -0
- package/dist/lib/components/DropdownMenu/DropdonMenuSubContent.d.ts +11 -0
- package/dist/lib/components/DropdownMenu/DropdonMenuSubContent.jsx +63 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuCheckboxItem.d.ts +7 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuCheckboxItem.jsx +34 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuContent.d.ts +11 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuContent.jsx +59 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuItem.d.ts +15 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuItem.jsx +60 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.d.ts +10 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.jsx +49 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuLable.d.ts +10 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuLable.jsx +35 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuRadioItem.d.ts +6 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuRadioItem.jsx +34 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuRoot.d.ts +15 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuRoot.jsx +28 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuSeparator.d.ts +3 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuSeparator.jsx +19 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuSub.d.ts +3 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuSub.jsx +18 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuSubTrigger.d.ts +4 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuSubTrigger.jsx +33 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.d.ts +14 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.jsx +43 -0
- package/dist/lib/components/DropdownMenu/index.d.ts +20 -0
- package/dist/lib/components/DropdownMenu/index.jsx +29 -0
- package/dist/lib/components/HoverCard/HoverCardContent.d.ts +14 -0
- package/dist/lib/components/HoverCard/HoverCardContent.jsx +62 -0
- package/dist/lib/components/HoverCard/HoverCardRoot.d.ts +11 -0
- package/dist/lib/components/HoverCard/HoverCardRoot.jsx +30 -0
- package/dist/lib/components/HoverCard/HoverCardTrigger.d.ts +3 -0
- package/dist/lib/components/HoverCard/HoverCardTrigger.jsx +20 -0
- package/dist/lib/components/HoverCard/index.d.ts +10 -0
- package/dist/lib/components/HoverCard/index.jsx +9 -0
- package/dist/lib/components/IconButton/index.d.ts +15 -0
- package/dist/lib/components/IconButton/index.jsx +64 -0
- package/dist/lib/components/Inset/index.d.ts +10 -0
- package/dist/lib/components/Inset/index.jsx +53 -0
- package/dist/lib/components/Label/index.d.ts +17 -0
- package/dist/lib/components/Label/index.jsx +54 -0
- package/dist/lib/components/LineChart/index.d.ts +44 -0
- package/dist/lib/components/LineChart/index.jsx +60 -0
- package/dist/lib/components/Menubar/MenubarCheckboxItem.d.ts +4 -0
- package/dist/lib/components/Menubar/MenubarCheckboxItem.jsx +31 -0
- package/dist/lib/components/Menubar/MenubarContent.d.ts +11 -0
- package/dist/lib/components/Menubar/MenubarContent.jsx +63 -0
- package/dist/lib/components/Menubar/MenubarItem.d.ts +13 -0
- package/dist/lib/components/Menubar/MenubarItem.jsx +56 -0
- package/dist/lib/components/Menubar/MenubarItemIndicator.d.ts +10 -0
- package/dist/lib/components/Menubar/MenubarItemIndicator.jsx +50 -0
- package/dist/lib/components/Menubar/MenubarMenu.d.ts +5 -0
- package/dist/lib/components/Menubar/MenubarMenu.jsx +18 -0
- package/dist/lib/components/Menubar/MenubarRadioGroup.d.ts +8 -0
- package/dist/lib/components/Menubar/MenubarRadioGroup.jsx +23 -0
- package/dist/lib/components/Menubar/MenubarRadioItem.d.ts +4 -0
- package/dist/lib/components/Menubar/MenubarRadioItem.jsx +33 -0
- package/dist/lib/components/Menubar/MenubarRoot.d.ts +19 -0
- package/dist/lib/components/Menubar/MenubarRoot.jsx +64 -0
- package/dist/lib/components/Menubar/MenubarSeparator.d.ts +3 -0
- package/dist/lib/components/Menubar/MenubarSeparator.jsx +21 -0
- package/dist/lib/components/Menubar/MenubarSub.d.ts +3 -0
- package/dist/lib/components/Menubar/MenubarSub.jsx +18 -0
- package/dist/lib/components/Menubar/MenubarSubContent.d.ts +10 -0
- package/dist/lib/components/Menubar/MenubarSubContent.jsx +52 -0
- package/dist/lib/components/Menubar/MenubarSubTrigger.d.ts +4 -0
- package/dist/lib/components/Menubar/MenubarSubTrigger.jsx +34 -0
- package/dist/lib/components/Menubar/MenubarTrigger.d.ts +12 -0
- package/dist/lib/components/Menubar/MenubarTrigger.jsx +58 -0
- package/dist/lib/components/Menubar/index.d.ts +19 -0
- package/dist/lib/components/Menubar/index.jsx +29 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuContent.d.ts +11 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuContent.jsx +49 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.d.ts +3 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.jsx +22 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuItem.d.ts +3 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuItem.jsx +20 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuLink.d.ts +13 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuLink.jsx +52 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuList.d.ts +12 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuList.jsx +49 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuRoot.d.ts +14 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuRoot.jsx +35 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuTrigger.d.ts +13 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuTrigger.jsx +60 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuViewport.d.ts +12 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuViewport.jsx +54 -0
- package/dist/lib/components/NavigationMenu/index.d.ts +12 -0
- package/dist/lib/components/NavigationMenu/index.jsx +10 -0
- package/dist/lib/components/PieChart/index.d.ts +23 -0
- package/dist/lib/components/PieChart/index.jsx +65 -0
- package/dist/lib/components/Popover/PopoverClose.d.ts +9 -0
- package/dist/lib/components/Popover/PopoverClose.jsx +38 -0
- package/dist/lib/components/Popover/PopoverContent.d.ts +11 -0
- package/dist/lib/components/Popover/PopoverContent.jsx +66 -0
- package/dist/lib/components/Popover/PopoverRoot.d.ts +12 -0
- package/dist/lib/components/Popover/PopoverRoot.jsx +28 -0
- package/dist/lib/components/Popover/PopoverTrigger.d.ts +3 -0
- package/dist/lib/components/Popover/PopoverTrigger.jsx +20 -0
- package/dist/lib/components/Popover/index.d.ts +11 -0
- package/dist/lib/components/Popover/index.jsx +11 -0
- package/dist/lib/components/Progress/index.d.ts +13 -0
- package/dist/lib/components/Progress/index.jsx +57 -0
- package/dist/lib/components/RadarChart/index.d.ts +33 -0
- package/dist/lib/components/RadarChart/index.jsx +76 -0
- package/dist/lib/components/Radio/index.d.ts +13 -0
- package/dist/lib/components/Radio/index.jsx +48 -0
- package/dist/lib/components/RadioCards/RadioCardsItem.d.ts +10 -0
- package/dist/lib/components/RadioCards/RadioCardsItem.jsx +44 -0
- package/dist/lib/components/RadioCards/RadioCardsRoot.d.ts +13 -0
- package/dist/lib/components/RadioCards/RadioCardsRoot.jsx +51 -0
- package/dist/lib/components/RadioCards/index.d.ts +6 -0
- package/dist/lib/components/RadioCards/index.jsx +7 -0
- package/dist/lib/components/RadioGroup/RadioGroupItem.d.ts +13 -0
- package/dist/lib/components/RadioGroup/RadioGroupItem.jsx +36 -0
- package/dist/lib/components/RadioGroup/RadioGroupRoot.d.ts +15 -0
- package/dist/lib/components/RadioGroup/RadioGroupRoot.jsx +47 -0
- package/dist/lib/components/RadioGroup/index.d.ts +6 -0
- package/dist/lib/components/RadioGroup/index.jsx +7 -0
- package/dist/lib/components/ScrollArea/index.d.ts +9 -0
- package/dist/lib/components/ScrollArea/index.jsx +28 -0
- package/dist/lib/components/SegmentedControl/SegmentedControlItem.d.ts +6 -0
- package/dist/lib/components/SegmentedControl/SegmentedControlItem.jsx +25 -0
- package/dist/lib/components/SegmentedControl/SegmentedControlRoot.d.ts +14 -0
- package/dist/lib/components/SegmentedControl/SegmentedControlRoot.jsx +50 -0
- package/dist/lib/components/SegmentedControl/index.d.ts +6 -0
- package/dist/lib/components/SegmentedControl/index.jsx +7 -0
- package/dist/lib/components/Select/index.d.ts +34 -0
- package/dist/lib/components/Select/index.jsx +109 -0
- package/dist/lib/components/Separator/index.d.ts +11 -0
- package/dist/lib/components/Separator/index.jsx +50 -0
- package/dist/lib/components/Skeleton/index.d.ts +14 -0
- package/dist/lib/components/Skeleton/index.jsx +45 -0
- package/dist/lib/components/Slider/index.d.ts +14 -0
- package/dist/lib/components/Slider/index.jsx +50 -0
- package/dist/lib/components/Spinner/index.d.ts +15 -0
- package/dist/lib/components/Spinner/index.jsx +50 -0
- package/dist/lib/components/TabNav/index.d.ts +15 -0
- package/dist/lib/components/TabNav/index.jsx +44 -0
- package/dist/lib/components/Table/index.d.ts +30 -0
- package/dist/lib/components/Table/index.jsx +113 -0
- package/dist/lib/components/Tabs/index.d.ts +22 -0
- package/dist/lib/components/Tabs/index.jsx +74 -0
- package/dist/lib/components/TextArea/index.d.ts +16 -0
- package/dist/lib/components/TextArea/index.jsx +59 -0
- package/dist/lib/components/TextField/index.d.ts +21 -0
- package/dist/lib/components/TextField/index.jsx +61 -0
- package/dist/lib/components/Toast/ToastActionButton.d.ts +14 -0
- package/dist/lib/components/Toast/ToastActionButton.jsx +68 -0
- package/dist/lib/components/Toast/ToastDescription.d.ts +13 -0
- package/dist/lib/components/Toast/ToastDescription.jsx +45 -0
- package/dist/lib/components/Toast/ToastRoot.d.ts +27 -0
- package/dist/lib/components/Toast/ToastRoot.jsx +96 -0
- package/dist/lib/components/Toast/ToastTitle.d.ts +13 -0
- package/dist/lib/components/Toast/ToastTitle.jsx +43 -0
- package/dist/lib/components/Toast/index.d.ts +8 -0
- package/dist/lib/components/Toast/index.jsx +11 -0
- package/dist/lib/components/Toggle/ToggleWithText.d.ts +21 -0
- package/dist/lib/components/Toggle/ToggleWithText.jsx +60 -0
- package/dist/lib/components/Toggle/index.d.ts +21 -0
- package/dist/lib/components/Toggle/index.jsx +59 -0
- package/dist/lib/components/ToggleGroup/ToggleGroupItem.d.ts +17 -0
- package/dist/lib/components/ToggleGroup/ToggleGroupItem.jsx +44 -0
- package/dist/lib/components/ToggleGroup/ToggleGroupRoot.d.ts +15 -0
- package/dist/lib/components/ToggleGroup/ToggleGroupRoot.jsx +53 -0
- package/dist/lib/components/ToggleGroup/index.d.ts +6 -0
- package/dist/lib/components/ToggleGroup/index.jsx +7 -0
- package/dist/lib/components/ToggleSwitch/index.d.ts +13 -0
- package/dist/lib/components/ToggleSwitch/index.jsx +75 -0
- package/dist/lib/components/Tooltip/index.d.ts +19 -0
- package/dist/lib/components/Tooltip/index.jsx +58 -0
- package/dist/lib/components/index.d.ts +50 -0
- package/dist/lib/components/index.js +52 -0
- package/dist/lib/constants.d.ts +655 -0
- package/dist/lib/constants.js +914 -0
- package/dist/lib/index.d.ts +2 -0
- package/dist/lib/index.js +2 -0
- package/dist/lib/types.d.ts +81 -0
- package/dist/lib/types.js +1 -0
- package/dist/lib/utils/useDarkMode.d.ts +1 -0
- package/dist/lib/utils/useDarkMode.js +49 -0
- package/dist/lib/utils/utils.d.ts +2 -0
- package/dist/lib/utils/utils.js +10 -0
- package/package.json +4 -13
- package/dist/tailwind.config.d.ts +0 -3
@@ -0,0 +1,25 @@
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
2
|
+
var t = {};
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
4
|
+
t[p] = s[p];
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
8
|
+
t[p[i]] = s[p[i]];
|
9
|
+
}
|
10
|
+
return t;
|
11
|
+
};
|
12
|
+
import React, { forwardRef } from 'react';
|
13
|
+
import { SegmentedControl as SegmentedControlTheme } from '@radix-ui/themes';
|
14
|
+
import { cn } from 'lib/utils/utils';
|
15
|
+
export var SegmentedControlItem = forwardRef(function (_a, ref) {
|
16
|
+
var children = _a.children, className = _a.className, appearance = _a.appearance, props = __rest(_a, ["children", "className", "appearance"]);
|
17
|
+
var appearanceClassName = '';
|
18
|
+
if (appearance === 'classic') {
|
19
|
+
appearanceClassName = 'dark:data-[state=on]:shadow-segmented-control-dark-classic';
|
20
|
+
}
|
21
|
+
return (<SegmentedControlTheme.Item ref={ref} className={cn(appearanceClassName, className)} {...props}>
|
22
|
+
{children}
|
23
|
+
</SegmentedControlTheme.Item>);
|
24
|
+
});
|
25
|
+
SegmentedControlItem.displayName = 'SegmentedControl.Item';
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
3
|
+
import { SegmentedControl as SegmentedControlTheme } from '@radix-ui/themes';
|
4
|
+
export * from './SegmentedControlItem';
|
5
|
+
import { ISize } from 'lib/types';
|
6
|
+
export interface SegmentedControlProps extends VariantProps<typeof segmentedControlVariants> {
|
7
|
+
appearance?: 'surface' | 'classic';
|
8
|
+
size?: Exclude<ISize, 'x-small' | 'x-large'>;
|
9
|
+
radius?: 'none' | 'small' | 'medium' | 'large' | 'full';
|
10
|
+
}
|
11
|
+
declare const segmentedControlVariants: (props?: ({
|
12
|
+
scaling?: "90%" | "95%" | "100%" | "105%" | "110%" | null | undefined;
|
13
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
14
|
+
export declare const SegmentedControlRoot: React.ForwardRefExoticComponent<Omit<SegmentedControlTheme.RootProps & React.RefAttributes<HTMLDivElement>, "ref"> & SegmentedControlProps & React.RefAttributes<HTMLDivElement>>;
|
@@ -0,0 +1,50 @@
|
|
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 React, { Children, forwardRef } from 'react';
|
24
|
+
import { cva } from 'class-variance-authority';
|
25
|
+
import { SegmentedControl as SegmentedControlTheme, Theme } from '@radix-ui/themes';
|
26
|
+
import { scalingVariants } from 'lib/constants';
|
27
|
+
export * from './SegmentedControlItem';
|
28
|
+
import { cn } from 'lib/utils/utils';
|
29
|
+
var segmentedControlVariants = cva('text-slateA-12 dark:text-slateDarkA-12', {
|
30
|
+
variants: {
|
31
|
+
scaling: __assign({}, scalingVariants),
|
32
|
+
},
|
33
|
+
defaultVariants: {
|
34
|
+
scaling: '100%',
|
35
|
+
},
|
36
|
+
});
|
37
|
+
export var SegmentedControlRoot = forwardRef(function (_a, ref) {
|
38
|
+
var children = _a.children, className = _a.className, _b = _a.appearance, appearance = _b === void 0 ? 'surface' : _b, _c = _a.radius, radius = _c === void 0 ? 'medium' : _c, _d = _a.size, size = _d === void 0 ? 'medium' : _d, scaling = _a.scaling, props = __rest(_a, ["children", "className", "appearance", "radius", "size", "scaling"]);
|
39
|
+
var sizeTheme = '2';
|
40
|
+
if (size === 'small')
|
41
|
+
sizeTheme = '1';
|
42
|
+
if (size === 'large')
|
43
|
+
sizeTheme = '3';
|
44
|
+
return (<Theme>
|
45
|
+
<SegmentedControlTheme.Root ref={ref} size={sizeTheme} radius={radius} variant={appearance} className={cn(segmentedControlVariants({ scaling: scaling }), className)} {...props}>
|
46
|
+
{Children.map(children, function (child) { return React.cloneElement(child, { appearance: appearance }); })}
|
47
|
+
</SegmentedControlTheme.Root>
|
48
|
+
</Theme>);
|
49
|
+
});
|
50
|
+
SegmentedControlRoot.displayName = 'SegmentedControl.Root';
|
@@ -0,0 +1,6 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
declare const SegmentedControl: {
|
3
|
+
Root: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/themes/dist/cjs/components/segmented-control").RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("./SegmentedControlRoot").SegmentedControlProps & import("react").RefAttributes<HTMLDivElement>>;
|
4
|
+
Item: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/themes/dist/cjs/components/segmented-control").ItemProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("lib/components/SegmentedControl/SegmentedControlItem").SegmentedControlItemProps & import("react").RefAttributes<HTMLButtonElement>>;
|
5
|
+
};
|
6
|
+
export default SegmentedControl;
|
@@ -0,0 +1,34 @@
|
|
1
|
+
import { Select as SelectTheme } from '@radix-ui/themes';
|
2
|
+
import React from 'react';
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
4
|
+
import { IScaling } from 'lib/types';
|
5
|
+
export interface SelectProps extends VariantProps<typeof selectVariants> {
|
6
|
+
label?: string;
|
7
|
+
defaultValue?: string;
|
8
|
+
selected?: string;
|
9
|
+
disabled?: boolean;
|
10
|
+
color?: any;
|
11
|
+
scaling?: IScaling;
|
12
|
+
appearance?: 'classic' | 'surface' | 'soft' | 'ghost';
|
13
|
+
size?: 'small' | 'medium' | 'large';
|
14
|
+
}
|
15
|
+
declare const selectVariants: (props?: ({
|
16
|
+
radius?: "small" | "none" | "medium" | "large" | "full" | null | undefined;
|
17
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
18
|
+
export declare const Root: React.ForwardRefExoticComponent<SelectTheme.RootProps & SelectProps & React.RefAttributes<never>>;
|
19
|
+
export declare const Trigger: React.ForwardRefExoticComponent<Omit<SelectTheme.TriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & SelectProps & React.RefAttributes<HTMLButtonElement>>;
|
20
|
+
export declare const Content: React.ForwardRefExoticComponent<Omit<SelectTheme.ContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & SelectProps & React.RefAttributes<HTMLDivElement>>;
|
21
|
+
export declare const Item: React.ForwardRefExoticComponent<Omit<SelectTheme.ItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & SelectProps & React.RefAttributes<HTMLDivElement>>;
|
22
|
+
export declare const Group: React.ForwardRefExoticComponent<Omit<SelectTheme.GroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & SelectProps & React.RefAttributes<HTMLDivElement>>;
|
23
|
+
export declare const Label: React.ForwardRefExoticComponent<Omit<SelectTheme.LabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & SelectProps & React.RefAttributes<HTMLDivElement>>;
|
24
|
+
export declare const Separator: React.ForwardRefExoticComponent<Omit<SelectTheme.SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & SelectProps & React.RefAttributes<HTMLDivElement>>;
|
25
|
+
declare const Select: {
|
26
|
+
Root: React.ForwardRefExoticComponent<SelectTheme.RootProps & SelectProps & React.RefAttributes<never>>;
|
27
|
+
Trigger: React.ForwardRefExoticComponent<Omit<SelectTheme.TriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & SelectProps & React.RefAttributes<HTMLButtonElement>>;
|
28
|
+
Content: React.ForwardRefExoticComponent<Omit<SelectTheme.ContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & SelectProps & React.RefAttributes<HTMLDivElement>>;
|
29
|
+
Item: React.ForwardRefExoticComponent<Omit<SelectTheme.ItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & SelectProps & React.RefAttributes<HTMLDivElement>>;
|
30
|
+
Group: React.ForwardRefExoticComponent<Omit<SelectTheme.GroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & SelectProps & React.RefAttributes<HTMLDivElement>>;
|
31
|
+
Label: React.ForwardRefExoticComponent<Omit<SelectTheme.LabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & SelectProps & React.RefAttributes<HTMLDivElement>>;
|
32
|
+
Separator: React.ForwardRefExoticComponent<Omit<SelectTheme.SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & SelectProps & React.RefAttributes<HTMLDivElement>>;
|
33
|
+
};
|
34
|
+
export default Select;
|
@@ -0,0 +1,109 @@
|
|
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 { Theme, Select as SelectTheme } from '@radix-ui/themes';
|
24
|
+
import React from 'react';
|
25
|
+
import { cva } from 'class-variance-authority';
|
26
|
+
import { cn } from 'lib/utils/utils';
|
27
|
+
import { radiusVariants, selectAppearanceStyle } from 'lib/constants';
|
28
|
+
var selectVariants = cva('', {
|
29
|
+
variants: {
|
30
|
+
radius: __assign({}, radiusVariants['base']),
|
31
|
+
},
|
32
|
+
defaultVariants: {
|
33
|
+
radius: 'medium',
|
34
|
+
},
|
35
|
+
});
|
36
|
+
export var Root = React.forwardRef(function (_a, ref) {
|
37
|
+
var scaling = _a.scaling, size = _a.size, color = _a.color, children = _a.children, props = __rest(_a, ["scaling", "size", "color", "children"]);
|
38
|
+
var sizeTheme = '2';
|
39
|
+
if (size === 'small')
|
40
|
+
sizeTheme = '1';
|
41
|
+
if (size === 'large')
|
42
|
+
sizeTheme = '3';
|
43
|
+
return (<Theme scaling={scaling} accentColor={color} hasBackground={false}>
|
44
|
+
<div ref={ref}>
|
45
|
+
<SelectTheme.Root size={sizeTheme} {...props}>
|
46
|
+
{children}
|
47
|
+
</SelectTheme.Root>
|
48
|
+
</div>
|
49
|
+
</Theme>);
|
50
|
+
});
|
51
|
+
Root.displayName = 'Select.Root';
|
52
|
+
export var Trigger = React.forwardRef(function (_a, forwardedRef) {
|
53
|
+
var _b = _a.appearance, appearance = _b === void 0 ? 'classic' : _b, color = _a.color, size = _a.size, radius = _a.radius, children = _a.children, className = _a.className, props = __rest(_a, ["appearance", "color", "size", "radius", "children", "className"]);
|
54
|
+
if (!color)
|
55
|
+
color = 'red';
|
56
|
+
return (<SelectTheme.Trigger ref={forwardedRef} variant={appearance} radius={radius} className={cn(selectVariants({ radius: radius }), selectAppearanceStyle(appearance, color), className)} {...props}>
|
57
|
+
{children}
|
58
|
+
</SelectTheme.Trigger>);
|
59
|
+
});
|
60
|
+
Trigger.displayName = 'Select.Trigger';
|
61
|
+
export var Content = React.forwardRef(function (_a, forwardedRef) {
|
62
|
+
var appearance = _a.appearance, color = _a.color, size = _a.size, radius = _a.radius, children = _a.children, className = _a.className, props = __rest(_a, ["appearance", "color", "size", "radius", "children", "className"]);
|
63
|
+
if (!color)
|
64
|
+
color = 'red';
|
65
|
+
if (radius === 'full')
|
66
|
+
radius = 'large';
|
67
|
+
return (<SelectTheme.Content ref={forwardedRef} color={color} {...props} className={cn(selectVariants({ radius: radius }), className)}>
|
68
|
+
{children}
|
69
|
+
</SelectTheme.Content>);
|
70
|
+
});
|
71
|
+
Content.displayName = 'Select.Content';
|
72
|
+
export var Item = React.forwardRef(function (_a, forwardedRef) {
|
73
|
+
var value = _a.value, children = _a.children, className = _a.className, radius = _a.radius, props = __rest(_a, ["value", "children", "className", "radius"]);
|
74
|
+
return (<SelectTheme.Item ref={forwardedRef} value={value} {...props} className={cn(selectVariants({ radius: radius }), className)}>
|
75
|
+
{children}
|
76
|
+
</SelectTheme.Item>);
|
77
|
+
});
|
78
|
+
Item.displayName = 'Select.Item';
|
79
|
+
export var Group = React.forwardRef(function (_a, forwardedRef) {
|
80
|
+
var children = _a.children, className = _a.className, props = __rest(_a, ["children", "className"]);
|
81
|
+
return (<SelectTheme.Group ref={forwardedRef} {...props} className={className}>
|
82
|
+
{children}
|
83
|
+
</SelectTheme.Group>);
|
84
|
+
});
|
85
|
+
Group.displayName = 'Select.Group';
|
86
|
+
export var Label = React.forwardRef(function (_a, forwardedRef) {
|
87
|
+
var children = _a.children, className = _a.className, props = __rest(_a, ["children", "className"]);
|
88
|
+
return (<SelectTheme.Label ref={forwardedRef} {...props} className={className}>
|
89
|
+
{children}
|
90
|
+
</SelectTheme.Label>);
|
91
|
+
});
|
92
|
+
Label.displayName = 'Select.Label';
|
93
|
+
export var Separator = React.forwardRef(function (_a, forwardedRef) {
|
94
|
+
var children = _a.children, className = _a.className, props = __rest(_a, ["children", "className"]);
|
95
|
+
return (<SelectTheme.Separator ref={forwardedRef} {...props} className={className}>
|
96
|
+
{children}
|
97
|
+
</SelectTheme.Separator>);
|
98
|
+
});
|
99
|
+
Separator.displayName = 'Select.Separator';
|
100
|
+
var Select = {
|
101
|
+
Root: Root,
|
102
|
+
Trigger: Trigger,
|
103
|
+
Content: Content,
|
104
|
+
Item: Item,
|
105
|
+
Group: Group,
|
106
|
+
Label: Label,
|
107
|
+
Separator: Separator,
|
108
|
+
};
|
109
|
+
export default Select;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
3
|
+
export interface SeparatorProps extends VariantProps<typeof separatorVariants> {
|
4
|
+
size?: 'small' | 'medium' | 'large' | 'fill-large';
|
5
|
+
}
|
6
|
+
declare const separatorVariants: (props?: ({
|
7
|
+
scaling?: "90%" | "95%" | "100%" | "105%" | "110%" | null | undefined;
|
8
|
+
color?: string | null | undefined;
|
9
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
10
|
+
export declare const Separator: React.ForwardRefExoticComponent<Omit<import("@radix-ui/themes").SeparatorProps & React.RefAttributes<HTMLSpanElement>, "ref"> & SeparatorProps & React.RefAttributes<HTMLSpanElement>>;
|
11
|
+
export default Separator;
|
@@ -0,0 +1,50 @@
|
|
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 React from 'react';
|
24
|
+
import { cva } from 'class-variance-authority';
|
25
|
+
import { cn } from 'lib/utils/utils';
|
26
|
+
import { bgColorStyle, scalingVariants } from 'lib/constants';
|
27
|
+
import { Separator as SeparatorTheme, Theme } from '@radix-ui/themes';
|
28
|
+
var separatorVariants = cva('', {
|
29
|
+
variants: {
|
30
|
+
scaling: __assign({}, scalingVariants),
|
31
|
+
color: bgColorStyle(),
|
32
|
+
},
|
33
|
+
});
|
34
|
+
export var Separator = React.forwardRef(function (_a, forwardedRef) {
|
35
|
+
var orientation = _a.orientation, scaling = _a.scaling, size = _a.size, _b = _a.color, color = _b === void 0 ? 'slate' : _b, className = _a.className, children = _a.children, props = __rest(_a, ["orientation", "scaling", "size", "color", "className", "children"]);
|
36
|
+
var sizeTheme = '1';
|
37
|
+
if (size === 'medium')
|
38
|
+
sizeTheme = '2';
|
39
|
+
if (size === 'large')
|
40
|
+
sizeTheme = '3';
|
41
|
+
if (size === 'fill-large')
|
42
|
+
sizeTheme = '4';
|
43
|
+
return (<Theme hasBackground={false} className="flex justify-center items-center">
|
44
|
+
<SeparatorTheme orientation={orientation} size={sizeTheme} className={cn("bg-".concat(color, "A-6 dark:bg-").concat(color, "DarkA-6"), separatorVariants({ scaling: scaling }), className)} {...props}>
|
45
|
+
{children}
|
46
|
+
</SeparatorTheme>
|
47
|
+
</Theme>);
|
48
|
+
});
|
49
|
+
Separator.displayName = 'Separator';
|
50
|
+
export default Separator;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
3
|
+
import { IColor } from 'lib/types';
|
4
|
+
export interface SkeletonProps extends VariantProps<typeof separatorVariants> {
|
5
|
+
color?: IColor;
|
6
|
+
loading?: boolean;
|
7
|
+
width?: string;
|
8
|
+
height?: string;
|
9
|
+
}
|
10
|
+
declare const separatorVariants: (props?: ({
|
11
|
+
radius?: "small" | "none" | "medium" | "large" | "full" | null | undefined;
|
12
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
13
|
+
export declare const Skeleton: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & SkeletonProps & React.RefAttributes<HTMLSpanElement>>;
|
14
|
+
export default Skeleton;
|
@@ -0,0 +1,45 @@
|
|
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 React from 'react';
|
24
|
+
import { cva } from 'class-variance-authority';
|
25
|
+
import { Theme, Skeleton as SkeletonTheme } from '@radix-ui/themes';
|
26
|
+
import { cn } from 'lib/utils/utils';
|
27
|
+
import { radiusVariants } from 'lib/constants';
|
28
|
+
var separatorVariants = cva('', {
|
29
|
+
variants: {
|
30
|
+
radius: __assign({}, radiusVariants['base']),
|
31
|
+
},
|
32
|
+
defaultVariants: {
|
33
|
+
radius: 'medium',
|
34
|
+
},
|
35
|
+
});
|
36
|
+
export var Skeleton = React.forwardRef(function (_a, forwardedRef) {
|
37
|
+
var children = _a.children, className = _a.className, radius = _a.radius, loading = _a.loading, width = _a.width, height = _a.height, skeletonProps = __rest(_a, ["children", "className", "radius", "loading", "width", "height"]);
|
38
|
+
return (<Theme>
|
39
|
+
<SkeletonTheme ref={forwardedRef} loading={loading} width={width} height={height} className={cn('', radius && cn(separatorVariants({ radius: radius }), className))} {...skeletonProps}>
|
40
|
+
{children}
|
41
|
+
</SkeletonTheme>
|
42
|
+
</Theme>);
|
43
|
+
});
|
44
|
+
Skeleton.displayName = 'Skeleton';
|
45
|
+
export default Skeleton;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
3
|
+
import { IScaling } from 'lib/types';
|
4
|
+
export interface SliderProps extends VariantProps<typeof sliderVariants> {
|
5
|
+
appearance?: 'classic' | 'soft' | 'surface';
|
6
|
+
label?: string;
|
7
|
+
size?: 'small' | 'medium' | 'large';
|
8
|
+
scaling?: IScaling;
|
9
|
+
}
|
10
|
+
declare const sliderVariants: (props?: ({
|
11
|
+
radius?: "small" | "none" | "medium" | "large" | "full" | null | undefined;
|
12
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
13
|
+
export declare const Slider: React.ForwardRefExoticComponent<Omit<import("@radix-ui/themes").SliderProps & React.RefAttributes<HTMLSpanElement>, "ref"> & SliderProps & React.RefAttributes<HTMLSpanElement>>;
|
14
|
+
export default Slider;
|
@@ -0,0 +1,50 @@
|
|
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 React from 'react';
|
24
|
+
import { cva } from 'class-variance-authority';
|
25
|
+
import { cn } from 'lib/utils/utils';
|
26
|
+
import { radiusVariants } from 'lib/constants';
|
27
|
+
import { Theme, Slider as SliderTheme } from '@radix-ui/themes';
|
28
|
+
var sliderVariants = cva('relative flex items-center select-none touch-none w-[200px] h-5', {
|
29
|
+
variants: {
|
30
|
+
radius: __assign({}, radiusVariants['base']),
|
31
|
+
// color: bgColorStyle(),
|
32
|
+
},
|
33
|
+
});
|
34
|
+
export var Slider = React.forwardRef(function (_a, forwardedRef) {
|
35
|
+
var className = _a.className, color = _a.color, size = _a.size, appearance = _a.appearance, _b = _a.scaling, scaling = _b === void 0 ? '100%' : _b, radius = _a.radius, tabIndex = _a.tabIndex, sliderProps = __rest(_a, ["className", "color", "size", "appearance", "scaling", "radius", "tabIndex"]);
|
36
|
+
if (!color)
|
37
|
+
color = 'red';
|
38
|
+
if (radius === 'medium' || radius === 'large')
|
39
|
+
radius = 'full';
|
40
|
+
var sizeTheme = '2';
|
41
|
+
if (size === 'small')
|
42
|
+
sizeTheme = '1';
|
43
|
+
if (size === 'large')
|
44
|
+
sizeTheme = '3';
|
45
|
+
return (<Theme accentColor={color} scaling={scaling} hasBackground={false}>
|
46
|
+
<SliderTheme ref={forwardedRef} variant={appearance} size={sizeTheme} radius={radius} color={color} className={cn(sliderVariants({ radius: radius }), className)} {...sliderProps}/>
|
47
|
+
</Theme>);
|
48
|
+
});
|
49
|
+
Slider.displayName = 'Slider';
|
50
|
+
export default Slider;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
3
|
+
import { IColor } from 'lib/types';
|
4
|
+
export interface SpinnerProps extends VariantProps<typeof spinnerVariants> {
|
5
|
+
color?: IColor;
|
6
|
+
loading?: boolean;
|
7
|
+
width?: string;
|
8
|
+
height?: string;
|
9
|
+
size?: 'small' | 'medium' | 'large';
|
10
|
+
}
|
11
|
+
declare const spinnerVariants: (props?: ({
|
12
|
+
scaling?: "90%" | "95%" | "100%" | "105%" | "110%" | null | undefined;
|
13
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
14
|
+
export declare const Spinner: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & SpinnerProps & React.RefAttributes<HTMLSpanElement>>;
|
15
|
+
export default Spinner;
|
@@ -0,0 +1,50 @@
|
|
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 React from 'react';
|
24
|
+
import { cva } from 'class-variance-authority';
|
25
|
+
import { Spinner as SpinnerTheme, Theme } from '@radix-ui/themes';
|
26
|
+
import { cn } from 'lib/utils/utils';
|
27
|
+
import { scalingVariants } from 'lib/constants';
|
28
|
+
var spinnerVariants = cva('', {
|
29
|
+
variants: {
|
30
|
+
scaling: __assign({}, scalingVariants),
|
31
|
+
},
|
32
|
+
defaultVariants: {
|
33
|
+
scaling: '100%',
|
34
|
+
},
|
35
|
+
});
|
36
|
+
export var Spinner = React.forwardRef(function (_a, forwardedRef) {
|
37
|
+
var className = _a.className, children = _a.children, size = _a.size, scaling = _a.scaling, loading = _a.loading, spinnerProps = __rest(_a, ["className", "children", "size", "scaling", "loading"]);
|
38
|
+
var sizeTheme = '2';
|
39
|
+
if (size === 'small')
|
40
|
+
sizeTheme = '1';
|
41
|
+
if (size === 'large')
|
42
|
+
sizeTheme = '3';
|
43
|
+
return (<Theme hasBackground={false}>
|
44
|
+
<SpinnerTheme ref={forwardedRef} loading={loading} size={sizeTheme} className={cn('', spinnerVariants({ scaling: scaling }), className)} {...spinnerProps}>
|
45
|
+
{children}
|
46
|
+
</SpinnerTheme>
|
47
|
+
</Theme>);
|
48
|
+
});
|
49
|
+
Spinner.displayName = 'Spinner';
|
50
|
+
export default Spinner;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
3
|
+
import { TabNav as TabNavTheme } from '@radix-ui/themes';
|
4
|
+
export interface TabNavProps extends VariantProps<typeof tabNavVariants> {
|
5
|
+
href?: string;
|
6
|
+
size?: 'small' | 'medium';
|
7
|
+
}
|
8
|
+
declare const tabNavVariants: (props?: ({} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
9
|
+
export declare const Root: React.ForwardRefExoticComponent<Omit<TabNavTheme.RootProps & React.RefAttributes<HTMLElement>, "ref"> & TabNavProps & React.RefAttributes<HTMLElement>>;
|
10
|
+
export declare const Link: React.ForwardRefExoticComponent<Omit<TabNavTheme.LinkProps & React.RefAttributes<HTMLAnchorElement>, "ref"> & TabNavProps & React.RefAttributes<HTMLAnchorElement>>;
|
11
|
+
declare const TabNav: {
|
12
|
+
Root: React.ForwardRefExoticComponent<Omit<TabNavTheme.RootProps & React.RefAttributes<HTMLElement>, "ref"> & TabNavProps & React.RefAttributes<HTMLElement>>;
|
13
|
+
Link: React.ForwardRefExoticComponent<Omit<TabNavTheme.LinkProps & React.RefAttributes<HTMLAnchorElement>, "ref"> & TabNavProps & React.RefAttributes<HTMLAnchorElement>>;
|
14
|
+
};
|
15
|
+
export default TabNav;
|
@@ -0,0 +1,44 @@
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
2
|
+
var t = {};
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
4
|
+
t[p] = s[p];
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
8
|
+
t[p[i]] = s[p[i]];
|
9
|
+
}
|
10
|
+
return t;
|
11
|
+
};
|
12
|
+
import React from 'react';
|
13
|
+
import { cva } from 'class-variance-authority';
|
14
|
+
import { TabNav as TabNavTheme, Theme } from '@radix-ui/themes';
|
15
|
+
import { cn } from 'lib/utils/utils';
|
16
|
+
var tabNavVariants = cva('', {
|
17
|
+
variants: {},
|
18
|
+
});
|
19
|
+
export var Root = React.forwardRef(function (_a, ref) {
|
20
|
+
var className = _a.className, children = _a.children, size = _a.size, color = _a.color, rootProps = __rest(_a, ["className", "children", "size", "color"]);
|
21
|
+
if (!color)
|
22
|
+
color = 'red';
|
23
|
+
var sizeTheme = '2';
|
24
|
+
if (size === 'small')
|
25
|
+
sizeTheme = '1';
|
26
|
+
return (<Theme accentColor={color} hasBackground={false}>
|
27
|
+
<TabNavTheme.Root ref={ref} size={sizeTheme} className={cn('', tabNavVariants({}), className)} {...rootProps}>
|
28
|
+
{children}
|
29
|
+
</TabNavTheme.Root>
|
30
|
+
</Theme>);
|
31
|
+
});
|
32
|
+
Root.displayName = 'TabNav.Root';
|
33
|
+
export var Link = React.forwardRef(function (_a, ref) {
|
34
|
+
var className = _a.className, children = _a.children, href = _a.href, linkProps = __rest(_a, ["className", "children", "href"]);
|
35
|
+
return (<TabNavTheme.Link ref={ref} className={cn('text-slateA-11 data-[state=active]:text-slateA-12 dark:text-slateDarkA-11 dark:data-[state=active]:text-slateDarkA-12', tabNavVariants({}), className)} href={href} {...linkProps}>
|
36
|
+
{children}
|
37
|
+
</TabNavTheme.Link>);
|
38
|
+
});
|
39
|
+
Link.displayName = 'TabNav.Link';
|
40
|
+
var TabNav = {
|
41
|
+
Root: Root,
|
42
|
+
Link: Link,
|
43
|
+
};
|
44
|
+
export default TabNav;
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
3
|
+
import { IColor } from 'lib/types';
|
4
|
+
import { Table as TableTheme } from '@radix-ui/themes';
|
5
|
+
export interface TableProps extends VariantProps<typeof tableVariants> {
|
6
|
+
color?: IColor;
|
7
|
+
appearance?: 'ghost' | 'surface';
|
8
|
+
size?: 'small' | 'medium' | 'large';
|
9
|
+
}
|
10
|
+
declare const tableVariants: (props?: ({
|
11
|
+
scaling?: "90%" | "95%" | "100%" | "105%" | "110%" | null | undefined;
|
12
|
+
radius?: "small" | "none" | "medium" | "large" | "full" | null | undefined;
|
13
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
14
|
+
export declare const Root: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & TableProps & React.RefAttributes<HTMLDivElement>>;
|
15
|
+
export declare const Header: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref"> & TableProps & React.RefAttributes<HTMLTableSectionElement>>;
|
16
|
+
export declare const Body: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref"> & TableProps & React.RefAttributes<HTMLTableSectionElement>>;
|
17
|
+
export declare const Row: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, "ref"> & TableProps & React.RefAttributes<HTMLTableRowElement>>;
|
18
|
+
export declare const Cell: React.ForwardRefExoticComponent<Omit<TableTheme.CellProps & React.RefAttributes<HTMLTableDataCellElement>, "ref"> & TableProps & React.RefAttributes<HTMLTableDataCellElement>>;
|
19
|
+
export declare const ColumnHeaderCell: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, "ref"> & TableProps & React.RefAttributes<HTMLTableHeaderCellElement>>;
|
20
|
+
export declare const RowHeaderCell: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, "ref"> & TableProps & React.RefAttributes<HTMLTableHeaderCellElement>>;
|
21
|
+
declare const Table: {
|
22
|
+
Root: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & TableProps & React.RefAttributes<HTMLDivElement>>;
|
23
|
+
Header: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref"> & TableProps & React.RefAttributes<HTMLTableSectionElement>>;
|
24
|
+
Body: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref"> & TableProps & React.RefAttributes<HTMLTableSectionElement>>;
|
25
|
+
Row: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, "ref"> & TableProps & React.RefAttributes<HTMLTableRowElement>>;
|
26
|
+
Cell: React.ForwardRefExoticComponent<Omit<TableTheme.CellProps & React.RefAttributes<HTMLTableDataCellElement>, "ref"> & TableProps & React.RefAttributes<HTMLTableDataCellElement>>;
|
27
|
+
ColumnHeaderCell: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, "ref"> & TableProps & React.RefAttributes<HTMLTableHeaderCellElement>>;
|
28
|
+
RowHeaderCell: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, "ref"> & TableProps & React.RefAttributes<HTMLTableHeaderCellElement>>;
|
29
|
+
};
|
30
|
+
export default Table;
|