@lotte-innovate/ui-component-test 0.0.13 → 0.0.14
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/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 +2 -1
- package/dist/app/template/colorPicker.jsx +19 -0
- package/dist/app/template/theme.d.ts +2 -2
- package/dist/app/template/{theme.js → theme.jsx} +8 -2
- 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} +4 -14
- 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} +9 -6
- 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} +6 -14
- 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} +25 -8
- 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.js → index.jsx} +23 -8
- 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/colorPicker.js +0 -14
- 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 } from "react/jsx-runtime";
|
24
23
|
import React, { Children, forwardRef } from 'react';
|
25
24
|
import { cva } from 'class-variance-authority';
|
26
25
|
import * as TogglePrimitive from '@radix-ui/react-toggle';
|
@@ -50,9 +49,11 @@ export var IconScaling = {
|
|
50
49
|
};
|
51
50
|
export var Toggle = forwardRef(function (_a, ref) {
|
52
51
|
var className = _a.className, children = _a.children, radius = _a.radius, _b = _a.size, size = _b === void 0 ? 'medium' : _b, scaling = _a.scaling, _c = _a.color, color = _c === void 0 ? 'red' : _c, _d = _a.appearance, appearance = _d === void 0 ? 'surface' : _d, props = __rest(_a, ["className", "children", "radius", "size", "scaling", "color", "appearance"]);
|
53
|
-
return (
|
52
|
+
return (<TogglePrimitive.Root ref={ref} className={cn(toggleVariants({ radius: radius, size: size, scaling: scaling }), toggleAppearanceStyle(appearance, color, true, 'data-[state=on]:'), className)} {...props}>
|
53
|
+
{Children.map(children, function (child) {
|
54
54
|
return React.cloneElement(child, { className: IconScaling[size] });
|
55
|
-
})
|
55
|
+
})}
|
56
|
+
</TogglePrimitive.Root>);
|
56
57
|
});
|
57
58
|
Toggle.displayName = 'Toggle';
|
58
59
|
export default Toggle;
|
@@ -20,8 +20,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
20
20
|
}
|
21
21
|
return t;
|
22
22
|
};
|
23
|
-
import {
|
24
|
-
import { forwardRef } from 'react';
|
23
|
+
import React, { forwardRef } from 'react';
|
25
24
|
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
26
25
|
import { cva } from 'class-variance-authority';
|
27
26
|
import { scalingVariants } from '../../constants';
|
@@ -37,7 +36,11 @@ var toggleVariants = cva('inline-flex', {
|
|
37
36
|
});
|
38
37
|
export var ToggleGroup = forwardRef(function (_a, ref) {
|
39
38
|
var className = _a.className, children = _a.children, defaultValue = _a.defaultValue, value = _a.value, type = _a.type, onValueChange = _a.onValueChange, scaling = _a.scaling, props = __rest(_a, ["className", "children", "defaultValue", "value", "type", "onValueChange", "scaling"]);
|
40
|
-
return type === 'single' ? (
|
39
|
+
return type === 'single' ? (<ToggleGroupPrimitive.Root ref={ref} type={type} value={value} defaultValue={defaultValue} className={cn(toggleVariants({ scaling: scaling }), className)} {...props}>
|
40
|
+
{children}
|
41
|
+
</ToggleGroupPrimitive.Root>) : (<ToggleGroupPrimitive.Root ref={ref} type={type} value={value} defaultValue={defaultValue} className={cn(toggleVariants({ scaling: scaling }), className)} {...props}>
|
42
|
+
{children}
|
43
|
+
</ToggleGroupPrimitive.Root>);
|
41
44
|
});
|
42
45
|
ToggleGroup.displayName = 'ToggleGroup';
|
43
46
|
export default ToggleGroup;
|
@@ -1,14 +1,3 @@
|
|
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
1
|
var __rest = (this && this.__rest) || function (s, e) {
|
13
2
|
var t = {};
|
14
3
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
@@ -20,7 +9,6 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
20
9
|
}
|
21
10
|
return t;
|
22
11
|
};
|
23
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
24
12
|
import React, { Children, forwardRef } from 'react';
|
25
13
|
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
26
14
|
import { cva } from 'class-variance-authority';
|
@@ -45,8 +33,10 @@ export var IconScaling = {
|
|
45
33
|
};
|
46
34
|
export var ToggleGroupItem = forwardRef(function (_a, ref) {
|
47
35
|
var className = _a.className, children = _a.children, value = _a.value, _b = _a.size, size = _b === void 0 ? 'medium' : _b, _c = _a.color, color = _c === void 0 ? 'red' : _c, _d = _a.appearance, appearance = _d === void 0 ? 'surface' : _d, props = __rest(_a, ["className", "children", "value", "size", "color", "appearance"]);
|
48
|
-
return (
|
36
|
+
return (<ToggleGroupPrimitive.Item ref={ref} value={value} className={cn(toggleGroupItemVariants({ size: size }), toggleAppearanceStyle(appearance, color, true, 'data-[state=on]:'), className)} {...props}>
|
37
|
+
{Children.map(children, function (child) {
|
49
38
|
return React.cloneElement(child, { className: IconScaling[size] });
|
50
|
-
})
|
39
|
+
})}
|
40
|
+
</ToggleGroupPrimitive.Item>);
|
51
41
|
});
|
52
42
|
ToggleGroupItem.displayName = 'ToggleGroupItem';
|
@@ -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 React from 'react';
|
25
24
|
import { cva } from 'class-variance-authority';
|
26
25
|
import { cn } from '../../utils/utils';
|
@@ -65,7 +64,12 @@ export var ToggleSwitch = React.forwardRef(function (_a, forwardedRef) {
|
|
65
64
|
sizeTheme = '1';
|
66
65
|
if (size === 'large')
|
67
66
|
sizeTheme = '3';
|
68
|
-
return (
|
67
|
+
return (<Theme className="flex" accentColor={color} hasBackground={false}>
|
68
|
+
<Text as="label" className={cn('flex items-center', SwitchLabelVariants({ size: size, scaling: scaling }))}>
|
69
|
+
<SwitchTheme ref={forwardedRef} {...switchProps} variant={appearance} radius={radius} size={sizeTheme} color={color} className={cn(toggleSwitchVariants({ scaling: scaling, radius: radius, size: size }), className)}></SwitchTheme>
|
70
|
+
{children}
|
71
|
+
</Text>
|
72
|
+
</Theme>);
|
69
73
|
});
|
70
74
|
ToggleSwitch.displayName = 'ToggleSwitch';
|
71
75
|
export default ToggleSwitch;
|
@@ -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
|
// your-tooltip.jsx
|
25
24
|
import React from 'react';
|
26
25
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
@@ -44,6 +43,16 @@ export var Tooltip = React.forwardRef(function (_a) {
|
|
44
43
|
var arrowColor = color
|
45
44
|
? "fill-".concat(color, "-9 dark:fill-").concat(color, "Dark-9")
|
46
45
|
: 'fill-slate-12 dark:fill-slateDark-12';
|
47
|
-
return (
|
46
|
+
return (<TooltipPrimitive.Provider>
|
47
|
+
<TooltipPrimitive.Root open={open} defaultOpen={defaultOpen} onOpenChange={onOpenChange}>
|
48
|
+
<TooltipPrimitive.Trigger className="cursor-pointer text-slate-12 dark:text-slateDark-12" asChild>
|
49
|
+
{children}
|
50
|
+
</TooltipPrimitive.Trigger>
|
51
|
+
<TooltipPrimitive.Content align="center" {...props} side={side} className={cn('mr-2', tooltipVariants({ scaling: scaling, weight: weight, radius: radius, color: color }), className)} sideOffset={5}>
|
52
|
+
{content}
|
53
|
+
<TooltipPrimitive.Arrow width={11} height={5} className={arrowColor}/>
|
54
|
+
</TooltipPrimitive.Content>
|
55
|
+
</TooltipPrimitive.Root>
|
56
|
+
</TooltipPrimitive.Provider>);
|
48
57
|
});
|
49
58
|
Tooltip.displayName = TooltipPrimitive.Root.displayName;
|
@@ -0,0 +1,48 @@
|
|
1
|
+
import React, { useEffect } from 'react';
|
2
|
+
import Landing from './assets/landing.svg';
|
3
|
+
import Logo from './assets/logo.svg';
|
4
|
+
import Figma from './assets/figma.svg';
|
5
|
+
import Gitlab from './assets/gitlab.svg';
|
6
|
+
import Image from 'next/image';
|
7
|
+
import Button from 'components/Button';
|
8
|
+
var addParentClass = function () {
|
9
|
+
var elements = document.querySelectorAll('.welcome-wrap');
|
10
|
+
elements.forEach(function (element) {
|
11
|
+
var parent = element.parentElement.parentElement;
|
12
|
+
if (parent) {
|
13
|
+
parent.classList.add('welcome-wrap-layout');
|
14
|
+
}
|
15
|
+
});
|
16
|
+
};
|
17
|
+
var Welcome = function () {
|
18
|
+
useEffect(function () {
|
19
|
+
addParentClass();
|
20
|
+
}, []);
|
21
|
+
var navigateToGitlab = function () {
|
22
|
+
window.open('http://s-gitlab.ldcc.co.kr/l-ui/ui-component', '_blank');
|
23
|
+
};
|
24
|
+
var navigateToFigma = function () {
|
25
|
+
window.open('https://www.figma.com/design/tlcB7UYdvUNzPk5T66FqLf/UI-%EB%9D%BC%EC%9D%B4%EB%B8%8C%EB%9F%AC%EB%A6%AC-%EA%B3%B5%EC%9C%A0%EC%9A%A9?node-id=0-1&t=k7fMSU17MKc42lzy-0', '_blank');
|
26
|
+
};
|
27
|
+
return (<div className="welcome-wrap">
|
28
|
+
<div>
|
29
|
+
<div>
|
30
|
+
<Image className="w-[150px] h-auto" layout="fixed" src={Logo} alt="LOTTE INNOVATE"/>
|
31
|
+
<p className="welcome-sub">Style Guide UI Kit</p>
|
32
|
+
<h1 className="welcome-title">LOTTE UI Library</h1>
|
33
|
+
</div>
|
34
|
+
<div className="flex gap-2 pt-[40px]">
|
35
|
+
<Button color="slate" radius="medium" scaling="100%" weight="medium" size={'x-large'} appearance={'outline'} onClick={navigateToGitlab} className="relative z-10">
|
36
|
+
<Image src={Gitlab} width={0} height={0} alt="Gitlab" className="mr-2"/>
|
37
|
+
GitLab
|
38
|
+
</Button>
|
39
|
+
<Button color="slate" radius="medium" scaling="100%" weight="medium" size={'x-large'} appearance={'outline'} onClick={navigateToFigma} className="relative z-10">
|
40
|
+
<Image src={Figma} width={0} height={0} alt="Figma" className="mr-2"/>
|
41
|
+
Figma
|
42
|
+
</Button>
|
43
|
+
</div>
|
44
|
+
</div>
|
45
|
+
<Image className="absolute bottom-0 w-auto" src={Landing} width={0} height={0} alt="컴포넌트 이미지입니다."/>
|
46
|
+
</div>);
|
47
|
+
};
|
48
|
+
export default Welcome;
|
@@ -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 { Accordion, AccordionContent, AccordionItem, AccordionTrigger, } from '../../components/Accordion/index';
|
25
24
|
import { commonArgTypes } from '../../constants';
|
26
25
|
var meta = {
|
@@ -57,5 +56,24 @@ export default meta;
|
|
57
56
|
export var Default = function (_a) {
|
58
57
|
var _b;
|
59
58
|
var args = __rest(_a, []);
|
60
|
-
return (
|
59
|
+
return (<Accordion defaultValue="item-1" type={(_b = args.type) !== null && _b !== void 0 ? _b : 'single'} {...args}>
|
60
|
+
<AccordionItem value="item-1">
|
61
|
+
<AccordionTrigger {...args}>리액트는 무엇인가요?</AccordionTrigger>
|
62
|
+
<AccordionContent>
|
63
|
+
리액트는 자바스크립트 라이브러리의 하나로서 사용자 인터페이스를 만들기 위해 사용된다.
|
64
|
+
</AccordionContent>
|
65
|
+
</AccordionItem>
|
66
|
+
|
67
|
+
<AccordionItem value="item-2">
|
68
|
+
<AccordionTrigger {...args}>자바스크립트란 무엇인가요?</AccordionTrigger>
|
69
|
+
<AccordionContent>자바스크립트는 객체 기반의 스크립트 프로그래밍 언어이다.</AccordionContent>
|
70
|
+
</AccordionItem>
|
71
|
+
|
72
|
+
<AccordionItem value="item-3" disabled={true}>
|
73
|
+
<AccordionTrigger {...args}>Can it be animated?</AccordionTrigger>
|
74
|
+
<AccordionContent>
|
75
|
+
Yes! You can animate the Accordion with CSS or JavaScript.
|
76
|
+
</AccordionContent>
|
77
|
+
</AccordionItem>
|
78
|
+
</Accordion>);
|
61
79
|
};
|
@@ -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 Button from 'components/Button';
|
26
25
|
import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogTitle, AlertDialogTrigger, } from 'components/AlertDialog';
|
@@ -56,5 +55,19 @@ var meta = {
|
|
56
55
|
export default meta;
|
57
56
|
export var Default = function (_a) {
|
58
57
|
var args = __rest(_a, []);
|
59
|
-
return (
|
58
|
+
return (<AlertDialog>
|
59
|
+
<AlertDialogTrigger>
|
60
|
+
<Button>버튼을 클릭해주세요</Button>
|
61
|
+
</AlertDialogTrigger>
|
62
|
+
<AlertDialogContent {...args}>
|
63
|
+
<AlertDialogTitle {...args}>AlertDialog 제목</AlertDialogTitle>
|
64
|
+
<AlertDialogDescription {...args}>
|
65
|
+
AlertDialog 내용이 들어갈 공간입니다.
|
66
|
+
</AlertDialogDescription>
|
67
|
+
<div className="flex justify-end">
|
68
|
+
<AlertDialogCancel {...args}>취소</AlertDialogCancel>
|
69
|
+
<AlertDialogAction {...args}>확인</AlertDialogAction>
|
70
|
+
</div>
|
71
|
+
</AlertDialogContent>
|
72
|
+
</AlertDialog>);
|
60
73
|
};
|
@@ -59,10 +59,10 @@ declare const meta: {
|
|
59
59
|
export default meta;
|
60
60
|
export declare const Default: ({ ...args }: {
|
61
61
|
[x: string]: any;
|
62
|
-
}) => import("react
|
62
|
+
}) => import("react").JSX.Element;
|
63
63
|
export declare const Ratio: ({ ...args }: {
|
64
64
|
[x: string]: any;
|
65
|
-
}) => import("react
|
65
|
+
}) => import("react").JSX.Element;
|
66
66
|
export declare const Scaling: ({ ...args }: {
|
67
67
|
[x: string]: any;
|
68
|
-
}) => import("react
|
68
|
+
}) => import("react").JSX.Element;
|
@@ -0,0 +1,106 @@
|
|
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 Image from 'next/image';
|
24
|
+
import AspectRatio from 'components/AspectRatio';
|
25
|
+
import { Text } from 'Typography/Text';
|
26
|
+
import { commonArgTypes, scalingOptions } from '../../constants';
|
27
|
+
var aspectOptions = {
|
28
|
+
'1': 1,
|
29
|
+
'5/4': 1.25,
|
30
|
+
'5/3': 1.66,
|
31
|
+
'5/2': 2.5,
|
32
|
+
'5/1': 5,
|
33
|
+
'16/9': 1.77,
|
34
|
+
};
|
35
|
+
var meta = {
|
36
|
+
title: 'Component/AspectRatio',
|
37
|
+
component: AspectRatio,
|
38
|
+
parameters: {
|
39
|
+
layout: 'centered',
|
40
|
+
docs: {
|
41
|
+
description: {
|
42
|
+
component: '원하는 비율로 콘텐츠를 표시하는 컴포넌트',
|
43
|
+
},
|
44
|
+
},
|
45
|
+
},
|
46
|
+
tags: ['autodocs'],
|
47
|
+
argTypes: {
|
48
|
+
ratio: {
|
49
|
+
table: {
|
50
|
+
category: 'Props',
|
51
|
+
type: { summary: 'number' },
|
52
|
+
},
|
53
|
+
options: Object.keys(aspectOptions),
|
54
|
+
mapping: aspectOptions,
|
55
|
+
control: {
|
56
|
+
type: 'select',
|
57
|
+
},
|
58
|
+
description: 'width / height 비율',
|
59
|
+
defaultValue: { summary: '16/9' },
|
60
|
+
},
|
61
|
+
scaling: __assign(__assign({}, commonArgTypes.scaling), { description: 'AspectRatio 비율' }),
|
62
|
+
},
|
63
|
+
args: {},
|
64
|
+
};
|
65
|
+
export default meta;
|
66
|
+
export var Default = function (_a) {
|
67
|
+
var args = __rest(_a, []);
|
68
|
+
return (<div className="w-[300px]">
|
69
|
+
<AspectRatio id="defaultAspectRatio" {...args}>
|
70
|
+
<Image className="h-full w-full object-cover" src="https://images.unsplash.com/photo-1535025183041-0991a977e25b?w=300&dpr=2&q=80" alt="Landscape photograph by Tobias Tullius" width={100} height={100}/>
|
71
|
+
</AspectRatio>
|
72
|
+
</div>);
|
73
|
+
};
|
74
|
+
export var Ratio = function (_a) {
|
75
|
+
var args = __rest(_a, []);
|
76
|
+
return (<div className="flex space-x-2">
|
77
|
+
<div className="flex flex-col w-[200px] items-center">
|
78
|
+
<Text>{'3 / 1'}</Text>
|
79
|
+
<AspectRatio id="defaultAspectRatio" {...args} ratio={3 / 1}>
|
80
|
+
<Image className="h-full w-full object-cover" src="https://images.unsplash.com/photo-1535025183041-0991a977e25b?w=300&dpr=2&q=80" alt="Landscape photograph by Tobias Tullius" width={100} height={100}/>
|
81
|
+
</AspectRatio>
|
82
|
+
</div>
|
83
|
+
<div className="flex flex-col w-[200px] items-center">
|
84
|
+
<Text>{'3 / 2'}</Text>
|
85
|
+
<AspectRatio id="defaultAspectRatio" {...args} ratio={3 / 2}>
|
86
|
+
<Image className="h-full w-full object-cover" src="https://images.unsplash.com/photo-1535025183041-0991a977e25b?w=300&dpr=2&q=80" alt="Landscape photograph by Tobias Tullius" width={100} height={100}/>
|
87
|
+
</AspectRatio>
|
88
|
+
</div>
|
89
|
+
<div className="flex flex-col w-[200px] items-center">
|
90
|
+
<Text>{'3 / 3'}</Text>
|
91
|
+
<AspectRatio id="defaultAspectRatio" {...args} ratio={3 / 3}>
|
92
|
+
<Image className="h-full w-full object-cover" src="https://images.unsplash.com/photo-1535025183041-0991a977e25b?w=300&dpr=2&q=80" alt="Landscape photograph by Tobias Tullius" width={100} height={100}/>
|
93
|
+
</AspectRatio>
|
94
|
+
</div>
|
95
|
+
</div>);
|
96
|
+
};
|
97
|
+
export var Scaling = function (_a) {
|
98
|
+
var args = __rest(_a, []);
|
99
|
+
return (<div className="flex flex-row space-x-5">
|
100
|
+
{scalingOptions.map(function (scaling) { return (<div className="w-[130px] border border-red-9" key={scaling}>
|
101
|
+
<AspectRatio id={scaling} scaling={scaling} {...args}>
|
102
|
+
<Image className="h-full w-full object-cover" src="https://images.unsplash.com/photo-1535025183041-0991a977e25b?w=300&dpr=2&q=80" alt="Landscape photograph by Tobias Tullius" width={100} height={100}/>
|
103
|
+
</AspectRatio>
|
104
|
+
</div>); })}
|
105
|
+
</div>);
|
106
|
+
};
|
@@ -112,16 +112,16 @@ declare const meta: {
|
|
112
112
|
export default meta;
|
113
113
|
export declare const Default: ({ ...args }: {
|
114
114
|
[x: string]: any;
|
115
|
-
}) => import("react
|
115
|
+
}) => import("react").JSX.Element;
|
116
116
|
export declare const Radius: ({ ...args }: {
|
117
117
|
[x: string]: any;
|
118
|
-
}) => import("react
|
118
|
+
}) => import("react").JSX.Element;
|
119
119
|
export declare const Size: ({ ...args }: {
|
120
120
|
[x: string]: any;
|
121
|
-
}) => import("react
|
121
|
+
}) => import("react").JSX.Element;
|
122
122
|
export declare const Scaling: ({ ...args }: {
|
123
123
|
[x: string]: any;
|
124
|
-
}) => import("react
|
124
|
+
}) => import("react").JSX.Element;
|
125
125
|
export declare const Appearance: ({ ...args }: {
|
126
126
|
[x: string]: any;
|
127
|
-
}) => import("react
|
127
|
+
}) => 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 Avatar from 'components/Avatar';
|
25
24
|
import { radiusOptions, scalingOptions, commonArgTypes, typoSizeOptions, appearanceOptions, } from '../../constants';
|
26
25
|
var meta = {
|
@@ -74,21 +73,33 @@ var meta = {
|
|
74
73
|
export default meta;
|
75
74
|
export var Default = function (_a) {
|
76
75
|
var args = __rest(_a, []);
|
77
|
-
return (
|
76
|
+
return (<div className="flex space-x-4">
|
77
|
+
<Avatar imagePath="https://images.unsplash.com/photo-1492633423870-43d1cd2775eb?&w=128&h=128&dpr=2&q=80" {...args}/>
|
78
|
+
<Avatar fallbackText="A" {...args}/>
|
79
|
+
</div>);
|
78
80
|
};
|
79
81
|
export var Radius = function (_a) {
|
80
82
|
var args = __rest(_a, []);
|
81
|
-
return (
|
83
|
+
return (<div className="flex space-x-4">
|
84
|
+
{radiusOptions.map(function (radius) { return (<Avatar key={radius} radius={radius} imagePath="https://images.unsplash.com/photo-1511485977113-f34c92461ad9?ixlib=rb-1.2.1&w=128&h=128&dpr=2&q=80" {...args}/>); })}
|
85
|
+
</div>);
|
82
86
|
};
|
83
87
|
export var Size = function (_a) {
|
84
88
|
var args = __rest(_a, []);
|
85
|
-
return (
|
89
|
+
return (<div className="flex space-x-4">
|
90
|
+
{typoSizeOptions.map(function (size) { return (<Avatar key={size} size={size} fallbackText="A" {...args}/>); })}
|
91
|
+
</div>);
|
86
92
|
};
|
87
93
|
export var Scaling = function (_a) {
|
88
94
|
var args = __rest(_a, []);
|
89
|
-
return (
|
95
|
+
return (<div className="flex space-x-4">
|
96
|
+
{scalingOptions.map(function (scaling) { return (<Avatar key={scaling} scaling={scaling} imagePath="https://images.unsplash.com/photo-1502823403499-6ccfcf4fb453?&w=256&h=256&q=70&crop=focalpoint&fp-x=0.5&fp-y=0.3&fp-z=1&fit=crop" {...args}/>); })}
|
97
|
+
</div>);
|
90
98
|
};
|
91
99
|
export var Appearance = function (_a) {
|
92
100
|
var args = __rest(_a, []);
|
93
|
-
return (
|
101
|
+
return (<div className="flex space-x-4">
|
102
|
+
<Avatar appearance="solid" fallbackText={'A'} {...args}/>
|
103
|
+
<Avatar appearance="soft" fallbackText={'A'} {...args}/>
|
104
|
+
</div>);
|
94
105
|
};
|
@@ -115,19 +115,19 @@ declare const meta: {
|
|
115
115
|
export default meta;
|
116
116
|
export declare const Default: ({ ...args }: {
|
117
117
|
[x: string]: any;
|
118
|
-
}) =>
|
118
|
+
}) => React.JSX.Element;
|
119
119
|
export declare const Radius: ({ ...args }: {
|
120
120
|
[x: string]: any;
|
121
|
-
}) =>
|
121
|
+
}) => React.JSX.Element;
|
122
122
|
export declare const Size: ({ ...args }: {
|
123
123
|
[x: string]: any;
|
124
|
-
}) =>
|
124
|
+
}) => React.JSX.Element;
|
125
125
|
export declare const Scaling: ({ ...args }: {
|
126
126
|
[x: string]: any;
|
127
|
-
}) =>
|
127
|
+
}) => React.JSX.Element;
|
128
128
|
export declare const Weight: ({ ...args }: {
|
129
129
|
[x: string]: any;
|
130
|
-
}) =>
|
130
|
+
}) => React.JSX.Element;
|
131
131
|
export declare const Appearance: ({ ...args }: {
|
132
132
|
[x: string]: any;
|
133
|
-
}) =>
|
133
|
+
}) => React.JSX.Element;
|
@@ -20,7 +20,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
20
20
|
}
|
21
21
|
return t;
|
22
22
|
};
|
23
|
-
import
|
23
|
+
import React from 'react';
|
24
24
|
import Badge from 'components/Badge';
|
25
25
|
import { radiusOptions, commonArgTypes, appearanceOptions, sizeOptions, scalingOptions, } from '../../../src/constants';
|
26
26
|
var meta = {
|
@@ -62,25 +62,69 @@ var meta = {
|
|
62
62
|
export default meta;
|
63
63
|
export var Default = function (_a) {
|
64
64
|
var args = __rest(_a, []);
|
65
|
-
return
|
65
|
+
return <Badge {...args}>Badge</Badge>;
|
66
66
|
};
|
67
67
|
export var Radius = function (_a) {
|
68
68
|
var args = __rest(_a, []);
|
69
|
-
return (
|
69
|
+
return (<div className="flex gap-3">
|
70
|
+
{radiusOptions.map(function (radius) { return (<Badge key={radius} {...args} radius={radius}>
|
71
|
+
{radius}
|
72
|
+
</Badge>); })}
|
73
|
+
</div>);
|
70
74
|
};
|
71
75
|
export var Size = function (_a) {
|
72
76
|
var args = __rest(_a, []);
|
73
|
-
return (
|
77
|
+
return (<div className="flex items-center gap-3">
|
78
|
+
<Badge {...args} size={'small'}>
|
79
|
+
small
|
80
|
+
</Badge>
|
81
|
+
<Badge {...args} size={'medium'}>
|
82
|
+
medium
|
83
|
+
</Badge>
|
84
|
+
<Badge {...args} size={'large'}>
|
85
|
+
large
|
86
|
+
</Badge>
|
87
|
+
</div>);
|
74
88
|
};
|
75
89
|
export var Scaling = function (_a) {
|
76
90
|
var args = __rest(_a, []);
|
77
|
-
return (
|
91
|
+
return (<div className="flex items-center gap-3">
|
92
|
+
{scalingOptions.map(function (scaling) { return (<Badge key={scaling} {...args} scaling={scaling}>
|
93
|
+
{scaling}
|
94
|
+
</Badge>); })}
|
95
|
+
</div>);
|
78
96
|
};
|
79
97
|
export var Weight = function (_a) {
|
80
98
|
var args = __rest(_a, []);
|
81
|
-
return (
|
99
|
+
return (<div className="flex items-center gap-3">
|
100
|
+
<Badge {...args} weight="regular">
|
101
|
+
regular
|
102
|
+
</Badge>
|
103
|
+
<Badge {...args} weight="medium">
|
104
|
+
medium
|
105
|
+
</Badge>
|
106
|
+
<Badge {...args} weight="semibold">
|
107
|
+
semibold
|
108
|
+
</Badge>
|
109
|
+
<Badge {...args} weight="bold">
|
110
|
+
bold
|
111
|
+
</Badge>
|
112
|
+
</div>);
|
82
113
|
};
|
83
114
|
export var Appearance = function (_a) {
|
84
115
|
var args = __rest(_a, []);
|
85
|
-
return (
|
116
|
+
return (<div className="flex items-center gap-3">
|
117
|
+
<Badge {...args} appearance="solid">
|
118
|
+
solid
|
119
|
+
</Badge>
|
120
|
+
<Badge {...args} appearance="soft">
|
121
|
+
soft
|
122
|
+
</Badge>
|
123
|
+
<Badge {...args} appearance="surface">
|
124
|
+
surface
|
125
|
+
</Badge>
|
126
|
+
<Badge {...args} appearance="outline">
|
127
|
+
outline
|
128
|
+
</Badge>
|
129
|
+
</div>);
|
86
130
|
};
|
@@ -1,8 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
1
2
|
import { PointStyle } from 'types';
|
2
3
|
declare const meta: {
|
3
4
|
title: string;
|
4
5
|
component: {
|
5
|
-
({ className, datasets, scaling, width, height, ...props }: import("components/BubbleChart").BubbleChartProps): import("react
|
6
|
+
({ className, datasets, scaling, width, height, ...props }: import("components/BubbleChart").BubbleChartProps): import("react").JSX.Element;
|
6
7
|
displayName: string;
|
7
8
|
};
|
8
9
|
parameters: {
|
@@ -93,10 +94,10 @@ declare const meta: {
|
|
93
94
|
export default meta;
|
94
95
|
export declare const Default: ({ ...args }: {
|
95
96
|
[x: string]: any;
|
96
|
-
}) => import("react
|
97
|
+
}) => import("react").JSX.Element;
|
97
98
|
export declare const MultiDatasets: ({ ...args }: {
|
98
99
|
[x: string]: any;
|
99
|
-
}) => import("react
|
100
|
+
}) => import("react").JSX.Element;
|
100
101
|
export declare const PointStyles: ({ ...args }: {
|
101
102
|
[x: string]: any;
|
102
|
-
}) => import("react
|
103
|
+
}) => import("react").JSX.Element;
|