@lotte-innovate/ui-component-test 0.0.8 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Typography/Header/index.d.ts +1 -1
- package/dist/Typography/Header/{index.jsx → index.js} +2 -5
- package/dist/Typography/Text/{index.jsx → index.js} +3 -6
- package/dist/app/layout.d.ts +1 -1
- package/dist/app/{layout.jsx → layout.js} +2 -3
- package/dist/app/page.d.ts +1 -2
- package/dist/app/{page.jsx → page.js} +2 -2
- package/dist/app/template/badgeTemplate.d.ts +1 -2
- package/dist/app/template/badgeTemplate.js +11 -0
- package/dist/app/template/buttonTemplate.d.ts +1 -2
- package/dist/app/template/buttonTemplate.js +11 -0
- package/dist/app/template/colorPicker.d.ts +1 -2
- package/dist/app/template/colorPicker.js +14 -0
- package/dist/app/template/textTemplate.d.ts +1 -2
- package/dist/app/template/textTemplate.js +23 -0
- package/dist/app/template/theme.d.ts +2 -2
- package/dist/app/template/theme.js +12 -0
- package/dist/components/Accordion/{index.jsx → index.js} +5 -17
- package/dist/components/AlertDialog/{AlertDialogAction.jsx → AlertDialogAction.js} +3 -4
- package/dist/components/AlertDialog/{AlertDialogCancel.jsx → AlertDialogCancel.js} +3 -4
- package/dist/components/AlertDialog/{AlertDialogContent.jsx → AlertDialogContent.js} +3 -7
- package/dist/components/AlertDialog/{AlertDialogDescription.jsx → AlertDialogDescription.js} +14 -4
- package/dist/components/AlertDialog/{AlertDialogTitle.jsx → AlertDialogTitle.js} +14 -4
- package/dist/components/AlertDialog/{AlertDialogTrigger.jsx → AlertDialogTrigger.js} +3 -4
- package/dist/components/AlertDialog/{index.jsx → index.js} +14 -2
- package/dist/components/AspectRatio/{index.jsx → index.js} +3 -4
- package/dist/components/Avatar/{index.jsx → index.js} +3 -7
- package/dist/components/Badge/{index.jsx → index.js} +3 -4
- package/dist/components/BubbleChart/index.d.ts +1 -2
- package/dist/components/BubbleChart/{index.jsx → index.js} +2 -2
- package/dist/components/Button/{index.jsx → index.js} +3 -4
- package/dist/components/Callout/{CalloutIcon.jsx → CalloutIcon.js} +3 -8
- package/dist/components/Callout/{CalloutText.jsx → CalloutText.js} +14 -4
- package/dist/components/Callout/{index.jsx → index.js} +3 -6
- package/dist/components/Card/{index.jsx → index.js} +3 -4
- package/dist/components/Checkbox/{index.jsx → index.js} +3 -11
- package/dist/components/CheckboxCard/{index.jsx → index.js} +3 -5
- package/dist/components/CheckboxGroup/{CheckboxGroupItem.jsx → CheckboxGroupItem.js} +14 -6
- package/dist/components/CheckboxGroup/{index.jsx → index.js} +2 -5
- package/dist/components/ContextMenu/{ContextMenuCheckboxItem.jsx → ContextMenuCheckboxItem.js} +14 -7
- package/dist/components/ContextMenu/{ContextMenuContent.jsx → ContextMenuContent.js} +3 -6
- package/dist/components/ContextMenu/{ContextMenuGroup.jsx → ContextMenuGroup.js} +14 -4
- package/dist/components/ContextMenu/{ContextMenuItem.jsx → ContextMenuItem.js} +3 -5
- package/dist/components/ContextMenu/{ContextMenuItemIndicator.jsx → ContextMenuItemIndicator.js} +3 -4
- package/dist/components/ContextMenu/{ContextMenuLabel.jsx → ContextMenuLabel.js} +3 -4
- package/dist/components/ContextMenu/{ContextMenuRadioGroup.jsx → ContextMenuRadioGroup.js} +14 -6
- package/dist/components/ContextMenu/{ContextMenuRadioItem.jsx → ContextMenuRadioItem.js} +14 -7
- package/dist/components/ContextMenu/{ContextMenuSeparator.jsx → ContextMenuSeparator.js} +14 -4
- package/dist/components/ContextMenu/{ContextMenuSubContent.jsx → ContextMenuSubContent.js} +6 -9
- package/dist/components/ContextMenu/{ContextMenuSubTrigger.jsx → ContextMenuSubTrigger.js} +14 -9
- package/dist/components/ContextMenu/{ContextMenuTrigger.jsx → ContextMenuTrigger.js} +14 -4
- package/dist/components/ContextMenu/{index.jsx → index.js} +14 -4
- package/dist/components/DataList/{DataListItem.jsx → DataListItem.js} +3 -4
- package/dist/components/DataList/{DataListLabel.jsx → DataListLabel.js} +3 -4
- package/dist/components/DataList/{DataListValue.jsx → DataListValue.js} +3 -4
- package/dist/components/DataList/{index.jsx → index.js} +14 -6
- package/dist/components/Dialog/{DialogAction.jsx → DialogAction.js} +14 -4
- package/dist/components/Dialog/{DialogCancel.jsx → DialogCancel.js} +14 -4
- package/dist/components/Dialog/{DialogContent.jsx → DialogContent.js} +3 -4
- package/dist/components/Dialog/{DialogDescription.jsx → DialogDescription.js} +14 -4
- package/dist/components/Dialog/{DialogSlot.jsx → DialogSlot.js} +14 -4
- package/dist/components/Dialog/{DialogTitle.jsx → DialogTitle.js} +14 -4
- package/dist/components/Dialog/{DialogTrigger.jsx → DialogTrigger.js} +14 -4
- package/dist/components/Dialog/{index.jsx → index.js} +14 -4
- package/dist/components/DoughnutChart/index.d.ts +1 -2
- package/dist/components/DoughnutChart/{index.jsx → index.js} +2 -2
- package/dist/components/DropdownMenu/{DropdonMenuRadioGroup.jsx → DropdonMenuRadioGroup.js} +14 -6
- package/dist/components/DropdownMenu/{DropdonMenuSubContent.jsx → DropdonMenuSubContent.js} +7 -10
- package/dist/components/DropdownMenu/{DropdownMenuCheckboxItem.jsx → DropdownMenuCheckboxItem.js} +14 -7
- package/dist/components/DropdownMenu/{DropdownMenuContent.jsx → DropdownMenuContent.js} +3 -6
- package/dist/components/DropdownMenu/{DropdownMenuItem.jsx → DropdownMenuItem.js} +3 -5
- package/dist/components/DropdownMenu/{DropdownMenuItemIndicator.jsx → DropdownMenuItemIndicator.js} +3 -4
- package/dist/components/DropdownMenu/{DropdownMenuLable.jsx → DropdownMenuLable.js} +3 -4
- package/dist/components/DropdownMenu/{DropdownMenuRadioItem.jsx → DropdownMenuRadioItem.js} +14 -7
- package/dist/components/DropdownMenu/{DropdownMenuSeparator.jsx → DropdownMenuSeparator.js} +14 -2
- package/dist/components/DropdownMenu/{DropdownMenuSub.jsx → DropdownMenuSub.js} +14 -2
- package/dist/components/DropdownMenu/{DropdownMenuSubTrigger.jsx → DropdownMenuSubTrigger.js} +14 -7
- package/dist/components/DropdownMenu/{DropdownMenuTrigger.jsx → DropdownMenuTrigger.js} +14 -4
- package/dist/components/DropdownMenu/{index.jsx → index.js} +14 -2
- package/dist/components/HoverCard/{HoverCardContent.jsx → HoverCardContent.js} +3 -4
- package/dist/components/HoverCard/{HoverCardTrigger.jsx → HoverCardTrigger.js} +14 -4
- package/dist/components/HoverCard/{index.jsx → index.js} +14 -4
- package/dist/components/IconButton/{index.jsx → index.js} +2 -3
- package/dist/components/Input/Input.stories.d.ts +4 -4
- package/dist/components/Input/{Input.stories.jsx → Input.stories.js} +15 -9
- package/dist/components/Input/index.d.ts +1 -1
- package/dist/components/Input/{index.jsx → index.js} +3 -3
- package/dist/components/Inset/{index.jsx → index.js} +3 -6
- package/dist/components/Label/{index.jsx → index.js} +2 -3
- package/dist/components/Menubar/{MenubarCheckboxItem.jsx → MenubarCheckboxItem.js} +14 -7
- package/dist/components/Menubar/{MenubarContent.jsx → MenubarContent.js} +7 -10
- package/dist/components/Menubar/{MenubarItem.jsx → MenubarItem.js} +3 -5
- package/dist/components/Menubar/{MenubarItemIndicator.jsx → MenubarItemIndicator.js} +3 -4
- package/dist/components/Menubar/{MenubarMenu.jsx → MenubarMenu.js} +14 -2
- package/dist/components/Menubar/{MenubarRadioGroup.jsx → MenubarRadioGroup.js} +14 -6
- package/dist/components/Menubar/{MenubarRadioItem.jsx → MenubarRadioItem.js} +14 -7
- package/dist/components/Menubar/{MenubarSeparator.jsx → MenubarSeparator.js} +14 -4
- package/dist/components/Menubar/{MenubarSub.jsx → MenubarSub.js} +14 -2
- package/dist/components/Menubar/{MenubarSubContent.jsx → MenubarSubContent.js} +4 -5
- package/dist/components/Menubar/{MenubarSubTrigger.jsx → MenubarSubTrigger.js} +14 -7
- package/dist/components/Menubar/{MenubarTrigger.jsx → MenubarTrigger.js} +3 -4
- package/dist/components/Menubar/{index.jsx → index.js} +3 -6
- package/dist/components/NavigationMenu/{NavigationMenuContent.jsx → NavigationMenuContent.js} +3 -4
- package/dist/components/NavigationMenu/NavigationMenuIndicator.js +31 -0
- package/dist/components/NavigationMenu/{NavigationMenuItem.jsx → NavigationMenuItem.js} +14 -4
- package/dist/components/NavigationMenu/{NavigationMenuLink.jsx → NavigationMenuLink.js} +3 -4
- package/dist/components/NavigationMenu/{NavigationMenuList.jsx → NavigationMenuList.js} +3 -5
- package/dist/components/NavigationMenu/{NavigationMenuTrigger.jsx → NavigationMenuTrigger.js} +3 -5
- package/dist/components/NavigationMenu/{NavigationMenuViewport.jsx → NavigationMenuViewport.js} +3 -4
- package/dist/components/NavigationMenu/{index.jsx → index.js} +14 -6
- package/dist/components/PieChart/index.d.ts +1 -2
- package/dist/components/PieChart/{index.jsx → index.js} +2 -2
- package/dist/components/Popover/{PopoverClose.jsx → PopoverClose.js} +14 -4
- package/dist/components/Popover/{PopoverContent.jsx → PopoverContent.js} +3 -4
- package/dist/components/Popover/{PopoverTrigger.jsx → PopoverTrigger.js} +14 -4
- package/dist/components/Popover/{index.jsx → index.js} +14 -4
- package/dist/components/Progress/{index.jsx → index.js} +3 -4
- package/dist/components/RadarChart/index.d.ts +1 -2
- package/dist/components/RadarChart/{index.jsx → index.js} +2 -2
- package/dist/components/Radio/{index.jsx → index.js} +13 -8
- package/dist/components/RadioCards/{RadioCardsItem.jsx → RadioCardsItem.js} +14 -4
- package/dist/components/RadioCards/{index.jsx → index.js} +3 -6
- package/dist/components/RadioGroup/{RadioGroupItem.jsx → RadioGroupItem.js} +14 -4
- package/dist/components/RadioGroup/{index.jsx → index.js} +14 -6
- package/dist/components/ScrollArea/{index.jsx → index.js} +14 -6
- package/dist/components/SegmentedControl/{SegmentedControlItem.jsx → SegmentedControlItem.js} +14 -4
- package/dist/components/SegmentedControl/{index.jsx → index.js} +2 -5
- package/dist/components/Select/{index.jsx → index.js} +8 -23
- package/dist/components/Separator/{index.jsx → index.js} +2 -5
- package/dist/components/Skeleton/{index.jsx → index.js} +2 -5
- package/dist/components/Slider/{index.jsx → index.js} +2 -3
- package/dist/components/Spinner/{index.jsx → index.js} +2 -5
- package/dist/components/TabNav/{index.jsx → index.js} +14 -8
- package/dist/components/Table/{index.jsx → index.js} +8 -23
- package/dist/components/Tabs/{index.jsx → index.js} +5 -14
- package/dist/components/TextArea/{index.jsx → index.js} +2 -3
- package/dist/components/TextField/{index.jsx → index.js} +3 -8
- package/dist/components/Toast/{ToastActionButton.jsx → ToastActionButton.js} +3 -4
- package/dist/components/Toast/{ToastDescription.jsx → ToastDescription.js} +14 -6
- package/dist/components/Toast/{ToastTitle.jsx → ToastTitle.js} +14 -4
- package/dist/components/Toast/{index.jsx → index.js} +3 -9
- package/dist/components/Toggle/{ToggleWithText.jsx → ToggleWithText.js} +4 -6
- package/dist/components/Toggle/{index.jsx → index.js} +3 -4
- package/dist/components/ToggleGroup/{index.jsx → index.js} +3 -6
- package/dist/components/ToggleGroup/{toggleGroupItem.jsx → toggleGroupItem.js} +14 -4
- package/dist/components/ToggleSwitch/{index.jsx → index.js} +2 -6
- package/dist/components/Tooltip/index.d.ts +1 -1
- package/dist/components/Tooltip/{index.jsx → index.js} +2 -11
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -3
- package/dist/stories/Welcome.d.ts +1 -2
- package/dist/stories/Welcome.js +30 -0
- package/dist/stories/accordion/Accordion.stories.d.ts +1 -1
- package/dist/stories/accordion/{Accordion.stories.jsx → Accordion.stories.js} +2 -20
- package/dist/stories/alert-dialog/AlertDialog.stories.d.ts +1 -1
- package/dist/stories/alert-dialog/{AlertDialog.stories.jsx → AlertDialog.stories.js} +2 -15
- package/dist/stories/aspect-ratio/AspectRatio.stories.d.ts +3 -3
- package/dist/stories/aspect-ratio/AspectRatio.stories.js +78 -0
- package/dist/stories/avatar/Avatar.stories.d.ts +5 -5
- package/dist/stories/avatar/{Avatar.stories.jsx → Avatar.stories.js} +6 -17
- package/dist/stories/badge/Badge.stories.d.ts +6 -6
- package/dist/stories/badge/{Badge.stories.jsx → Badge.stories.js} +7 -51
- package/dist/stories/bubble-chart/BubbleChart.stories.d.ts +4 -5
- package/dist/stories/bubble-chart/{BubbleChart.stories.jsx → BubbleChart.stories.js} +4 -12
- package/dist/stories/button/Button.stories.d.ts +7 -7
- package/dist/stories/button/{Button.stories.jsx → Button.stories.js} +8 -41
- package/dist/stories/button/IconButton.stories.d.ts +4 -4
- package/dist/stories/button/{IconButton.stories.jsx → IconButton.stories.js} +5 -18
- package/dist/stories/callout/Callout.stories.d.ts +7 -7
- package/dist/stories/callout/Callout.stories.js +104 -0
- package/dist/stories/card/Card.stories.d.ts +5 -5
- package/dist/stories/card/{Card.stories.jsx → Card.stories.js} +6 -56
- package/dist/stories/checkbox/Checkbox.stories.d.ts +6 -6
- package/dist/stories/checkbox/{Checkbox.stories.jsx → Checkbox.stories.js} +7 -63
- package/dist/stories/checkbox/CheckboxCard.stories.d.ts +5 -5
- package/dist/stories/checkbox/{CheckboxCard.stories.jsx → CheckboxCard.stories.js} +6 -41
- package/dist/stories/checkbox/CheckboxGroup.stories.d.ts +3 -3
- package/dist/stories/checkbox/{CheckboxGroup.stories.jsx → CheckboxGroup.stories.js} +4 -76
- package/dist/stories/context-menu/ContextMenu.stories.d.ts +4 -4
- package/dist/stories/context-menu/{ContextMenu.stories.jsx → ContextMenu.stories.js} +5 -74
- package/dist/stories/data-list/DataList.stories.d.ts +4 -4
- package/dist/stories/data-list/DataList.stories.js +87 -0
- package/dist/stories/dialog/Dialog.stories.d.ts +1 -1
- package/dist/stories/dialog/{Dialog.stories.jsx → Dialog.stories.js} +2 -25
- package/dist/stories/doughnut-chart/DoughnutChart.stories.d.ts +4 -5
- package/dist/stories/doughnut-chart/{DoughnutChart.stories.jsx → DoughnutChart.stories.js} +4 -12
- package/dist/stories/dropdown-menu/DropdownMenu.stories.d.ts +4 -4
- package/dist/stories/dropdown-menu/DropdownMenu.stories.js +75 -0
- package/dist/stories/header/Header.stories.d.ts +6 -6
- package/dist/stories/header/{Header.stories.jsx → Header.stories.js} +7 -26
- package/dist/stories/hover-card/HoverCard.stories.d.ts +2 -2
- package/dist/stories/hover-card/{HoverCard.stories.jsx → HoverCard.stories.js} +3 -30
- package/dist/stories/inset/Inset.stories.d.ts +2 -2
- package/dist/stories/inset/{Inset.stories.jsx → Inset.stories.js} +12 -27
- package/dist/stories/label/Label.stories.d.ts +4 -4
- package/dist/stories/label/{Label.stories.jsx → Label.stories.js} +5 -26
- package/dist/stories/menubar/Menubar.stories.d.ts +1 -1
- package/dist/stories/menubar/{Menubar.stories.jsx → Menubar.stories.js} +8 -45
- package/dist/stories/navigation-menu/NavigationMenu.stories.d.ts +13 -13
- package/dist/stories/navigation-menu/{NavigationMenu.stories.jsx → NavigationMenu.stories.js} +3 -68
- package/dist/stories/pie-chart/PieChart.stories.d.ts +5 -6
- package/dist/stories/pie-chart/{PieChart.stories.jsx → PieChart.stories.js} +13 -32
- package/dist/stories/popover/Popover.stories.d.ts +2 -2
- package/dist/stories/popover/{Popover.stories.jsx → Popover.stories.js} +9 -42
- package/dist/stories/progress/Progress.stories.d.ts +4 -4
- package/dist/stories/progress/{Progress.stories.jsx → Progress.stories.js} +6 -11
- package/dist/stories/radar-chart/RadarChart.stories.d.ts +5 -6
- package/dist/stories/radar-chart/{RadarChart.stories.jsx → RadarChart.stories.js} +5 -4
- package/dist/stories/radio/Radio.stories.d.ts +3 -3
- package/dist/stories/radio/{Radio.stories.jsx → Radio.stories.js} +4 -14
- package/dist/stories/radio/RadioCards.stories.d.ts +4 -4
- package/dist/stories/radio/{RadioCards.stories.jsx → RadioCards.stories.js} +5 -64
- package/dist/stories/radio/RadioGroup.stories.d.ts +4 -4
- package/dist/stories/radio/{RadioGroup.stories.jsx → RadioGroup.stories.js} +5 -59
- package/dist/stories/scroll-area/ScrollArea.stories.d.ts +2 -2
- package/dist/stories/scroll-area/ScrollArea.stories.js +63 -0
- package/dist/stories/segmented-control/SegmentedControl.stories.d.ts +4 -4
- package/dist/stories/segmented-control/{SegmentedControl.stories.jsx → SegmentedControl.stories.js} +5 -26
- package/dist/stories/select/Select.stories.d.ts +5 -5
- package/dist/stories/select/{Select.stories.jsx → Select.stories.js} +6 -67
- package/dist/stories/separator/Separator.stories.d.ts +4 -4
- package/dist/stories/separator/{Separator.stories.jsx → Separator.stories.js} +5 -29
- package/dist/stories/skeleton/Skeleton.stories.d.ts +5 -5
- package/dist/stories/skeleton/{Skeleton.stories.jsx → Skeleton.stories.js} +6 -33
- package/dist/stories/slider/Slider.stories.d.ts +4 -4
- package/dist/stories/slider/{Slider.stories.jsx → Slider.stories.js} +5 -16
- package/dist/stories/spinner/Spinner.stories.d.ts +5 -5
- package/dist/stories/spinner/{Spinner.stories.jsx → Spinner.stories.js} +6 -31
- package/dist/stories/switch/Switch.stories.d.ts +4 -4
- package/dist/stories/switch/{Switch.stories.jsx → Switch.stories.js} +5 -16
- package/dist/stories/tab-nav/TabNav.stories.d.ts +1 -1
- package/dist/stories/tab-nav/{TabNav.stories.jsx → TabNav.stories.js} +2 -11
- package/dist/stories/table/Table.stories.d.ts +1 -1
- package/dist/stories/table/{Table.stories.jsx → Table.stories.js} +2 -29
- package/dist/stories/tabs/Tabs.stories.d.ts +1 -1
- package/dist/stories/tabs/{Tabs.stories.jsx → Tabs.stories.js} +2 -19
- package/dist/stories/text/Text.stories.d.ts +5 -5
- package/dist/stories/text/{Text.stories.jsx → Text.stories.js} +6 -21
- package/dist/stories/textArea/TextArea.stories.d.ts +5 -5
- package/dist/stories/textArea/{TextArea.stories.jsx → TextArea.stories.js} +6 -22
- package/dist/stories/textfield/TextField.stories.d.ts +5 -5
- package/dist/stories/textfield/{TextField.stories.jsx → TextField.stories.js} +6 -38
- package/dist/stories/toast/Toast.stories.d.ts +3 -3
- package/dist/stories/toast/{Toast.stories.jsx → Toast.stories.js} +4 -22
- package/dist/stories/toggle/Toggle.stories.d.ts +5 -5
- package/dist/stories/toggle/{Toggle.stories.jsx → Toggle.stories.js} +6 -23
- package/dist/stories/toggle/ToggleGroup.stories.d.ts +3 -3
- package/dist/stories/toggle/{ToggleGroup.stories.jsx → ToggleGroup.stories.js} +6 -39
- package/dist/stories/tooltip/Tooltip.stories.d.ts +3 -3
- package/dist/stories/tooltip/{Tooltip.stories.jsx → Tooltip.stories.js} +4 -17
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -3
- package/dist/app/template/badgeTemplate.jsx +0 -82
- package/dist/app/template/buttonTemplate.jsx +0 -82
- package/dist/app/template/colorPicker.jsx +0 -19
- package/dist/app/template/textTemplate.jsx +0 -72
- package/dist/app/template/theme.jsx +0 -44
- package/dist/components/NavigationMenu/NavigationMenuIndicator.jsx +0 -22
- package/dist/stories/Welcome.jsx +0 -48
- package/dist/stories/aspect-ratio/AspectRatio.stories.jsx +0 -106
- package/dist/stories/callout/Callout.stories.jsx +0 -205
- package/dist/stories/data-list/DataList.stories.jsx +0 -185
- package/dist/stories/dropdown-menu/DropdownMenu.stories.jsx +0 -170
- package/dist/stories/scroll-area/ScrollArea.stories.jsx +0 -123
@@ -20,6 +20,7 @@ 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";
|
23
24
|
import React from 'react';
|
24
25
|
import '@radix-ui/themes/styles.css';
|
25
26
|
import { cva } from 'class-variance-authority';
|
@@ -41,18 +42,12 @@ export var TextField = React.forwardRef(function (_a, forwardedRef) {
|
|
41
42
|
sizeTheme = '1';
|
42
43
|
if (size === 'large')
|
43
44
|
sizeTheme = '3';
|
44
|
-
return (
|
45
|
-
<TextFieldTheme.Root ref={forwardedRef} variant={appearance} size={sizeTheme} radius={radius} color={color} className={cn(textFieldVariants({ radius: radius }), className)} {...sliderProps}>
|
46
|
-
{children}
|
47
|
-
</TextFieldTheme.Root>
|
48
|
-
</Theme>);
|
45
|
+
return (_jsx(Theme, { scaling: scaling, accentColor: color, hasBackground: false, children: _jsx(TextFieldTheme.Root, __assign({ ref: forwardedRef, variant: appearance, size: sizeTheme, radius: radius, color: color, className: cn(textFieldVariants({ radius: radius }), className) }, sliderProps, { children: children })) }));
|
49
46
|
});
|
50
47
|
TextField.displayName = 'TextField';
|
51
48
|
export var TextFieldSlot = React.forwardRef(function (_a, forwardedRef) {
|
52
49
|
var className = _a.className, color = _a.color, side = _a.side, radius = _a.radius, children = _a.children, sliderProps = __rest(_a, ["className", "color", "side", "radius", "children"]);
|
53
|
-
return (
|
54
|
-
{children}
|
55
|
-
</TextFieldTheme.Slot>);
|
50
|
+
return (_jsx(TextFieldTheme.Slot, __assign({ ref: forwardedRef, color: color, side: side, className: cn(textFieldVariants({ radius: radius }), className) }, sliderProps, { children: children })));
|
56
51
|
});
|
57
52
|
TextFieldSlot.displayName = 'TextFieldSlot';
|
58
53
|
export default TextField;
|
@@ -20,7 +20,8 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
20
20
|
}
|
21
21
|
return t;
|
22
22
|
};
|
23
|
-
import
|
23
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
24
|
+
import { forwardRef } from 'react';
|
24
25
|
import * as ToastPrimitive from '@radix-ui/react-toast';
|
25
26
|
import { cva } from 'class-variance-authority';
|
26
27
|
import { cn } from 'utils/utils';
|
@@ -61,8 +62,6 @@ export var ToastActionButton = forwardRef(function (_a, ref) {
|
|
61
62
|
var buttonClassName = cn(toastActionButtonVariants({ size: size, radius: radius, scaling: scaling }), color && semantics.includes(color)
|
62
63
|
? getSemanticsStyle(color)
|
63
64
|
: appearanceStyle(appearance, color !== null && color !== void 0 ? color : 'red'), className);
|
64
|
-
return (
|
65
|
-
<Button>{children}</Button>
|
66
|
-
</ToastPrimitive.Action>);
|
65
|
+
return (_jsx(ToastPrimitive.Action, __assign({ ref: ref, altText: altText }, props, { className: buttonClassName, asChild: true, children: _jsx(Button, { children: children }) })));
|
67
66
|
});
|
68
67
|
ToastActionButton.displayName = 'ToastActionButton';
|
@@ -1,3 +1,14 @@
|
|
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
|
+
};
|
1
12
|
var __rest = (this && this.__rest) || function (s, e) {
|
2
13
|
var t = {};
|
3
14
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
@@ -9,7 +20,8 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
9
20
|
}
|
10
21
|
return t;
|
11
22
|
};
|
12
|
-
import
|
23
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
24
|
+
import { forwardRef } from 'react';
|
13
25
|
import * as ToastPrimitive from '@radix-ui/react-toast';
|
14
26
|
import { cva } from 'class-variance-authority';
|
15
27
|
import { cn } from 'utils/utils';
|
@@ -36,10 +48,6 @@ export var toastDescriptionVariants = cva('flex m-0 text-wrap text-slate-11 dark
|
|
36
48
|
export var ToastDescription = forwardRef(function (_a, ref) {
|
37
49
|
var className = _a.className, children = _a.children, contentText = _a.contentText, props = __rest(_a, ["className", "children", "contentText"]);
|
38
50
|
var _b = useToastContext(), size = _b.size, color = _b.color;
|
39
|
-
return (
|
40
|
-
<p className={cn(toastDescriptionVariants({ size: size, color: color }), className)}>
|
41
|
-
{contentText !== null && contentText !== void 0 ? contentText : children}
|
42
|
-
</p>
|
43
|
-
</ToastPrimitive.Description>);
|
51
|
+
return (_jsx(ToastPrimitive.Description, __assign({ ref: ref }, props, { children: _jsx("p", { className: cn(toastDescriptionVariants({ size: size, color: color }), className), children: contentText !== null && contentText !== void 0 ? contentText : children }) })));
|
44
52
|
});
|
45
53
|
ToastDescription.displayName = 'ToastDescription';
|
@@ -1,3 +1,14 @@
|
|
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
|
+
};
|
1
12
|
var __rest = (this && this.__rest) || function (s, e) {
|
2
13
|
var t = {};
|
3
14
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
@@ -9,7 +20,8 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
9
20
|
}
|
10
21
|
return t;
|
11
22
|
};
|
12
|
-
import
|
23
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
24
|
+
import { forwardRef } from 'react';
|
13
25
|
import * as ToastPrimitive from '@radix-ui/react-toast';
|
14
26
|
import { cva } from 'class-variance-authority';
|
15
27
|
import { cn } from 'utils/utils';
|
@@ -36,8 +48,6 @@ export var toastTitleVariants = cva('flex mb-[5px] text-slate-12 dark:text-slate
|
|
36
48
|
export var ToastTitle = forwardRef(function (_a, ref) {
|
37
49
|
var className = _a.className, children = _a.children, titleText = _a.titleText, props = __rest(_a, ["className", "children", "titleText"]);
|
38
50
|
var _b = useToastContext(), size = _b.size, color = _b.color;
|
39
|
-
return (
|
40
|
-
<p className={cn(toastTitleVariants({ size: size, color: color }), className)}>{titleText !== null && titleText !== void 0 ? titleText : children}</p>
|
41
|
-
</ToastPrimitive.Title>);
|
51
|
+
return (_jsx(ToastPrimitive.Title, __assign({ ref: ref }, props, { children: _jsx("p", { className: cn(toastTitleVariants({ size: size, color: color }), className), children: titleText !== null && titleText !== void 0 ? titleText : children }) })));
|
42
52
|
});
|
43
53
|
ToastTitle.displayName = 'ToastTitle';
|
@@ -20,7 +20,8 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
20
20
|
}
|
21
21
|
return t;
|
22
22
|
};
|
23
|
-
import
|
23
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
24
|
+
import { forwardRef, createContext, useContext, } from 'react';
|
24
25
|
import ReactDOM from 'react-dom';
|
25
26
|
import { cva } from 'class-variance-authority';
|
26
27
|
import { cn } from 'utils/utils';
|
@@ -87,14 +88,7 @@ export var Toast = forwardRef(function (_a, ref) {
|
|
87
88
|
var contextValue = { radius: radius, size: size, scaling: scaling, color: color };
|
88
89
|
var toastRootStyle = "\n shadow-[hsl(206_22%_7%_/_35%)_0px_10px_38px_-10px,_hsl(206_22%_7%_/_20%)_0px_10px_20px_-15px] \n flex flex-col px-[15px] relative justify-center\n data-[state=open]:animate-slideIn \n data-[state=closed]:animate-hide \n data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] \n data-[swipe=cancel]:translate-x-0 \n data-[swipe=cancel]:transition-[transform_200ms_ease-out] \n data-[swipe=end]:animate-swipeOut\n ";
|
89
90
|
var toastClassName = cn(toastVariants({ radius: radius, scaling: scaling, size: size, color: color }), toastRootStyle, className);
|
90
|
-
return ReactDOM.createPortal(
|
91
|
-
<ToastPrimitive.Provider swipeDirection="right" duration={duration}>
|
92
|
-
<ToastPrimitive.Root ref={ref} className={toastClassName} open={openToast} onOpenChange={setOpenToast} {...props}>
|
93
|
-
{children}
|
94
|
-
</ToastPrimitive.Root>
|
95
|
-
<ToastPrimitive.Viewport className={cn(toastViewportVariants({ toastPosition: toastPosition }))}/>
|
96
|
-
</ToastPrimitive.Provider>
|
97
|
-
</ToastContext.Provider>, document.body);
|
91
|
+
return ReactDOM.createPortal(_jsx(ToastContext.Provider, { value: contextValue, children: _jsxs(ToastPrimitive.Provider, { swipeDirection: "right", duration: duration, children: [_jsx(ToastPrimitive.Root, __assign({ ref: ref, className: toastClassName, open: openToast, onOpenChange: setOpenToast }, props, { children: children })), _jsx(ToastPrimitive.Viewport, { className: cn(toastViewportVariants({ toastPosition: toastPosition })) })] }) }), document.body);
|
98
92
|
});
|
99
93
|
Toast.displayName = 'Toast';
|
100
94
|
export default Toast;
|
@@ -20,6 +20,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
20
20
|
}
|
21
21
|
return t;
|
22
22
|
};
|
23
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
23
24
|
import React, { Children, forwardRef } from 'react';
|
24
25
|
import { cva } from 'class-variance-authority';
|
25
26
|
import * as TogglePrimitive from '@radix-ui/react-toggle';
|
@@ -49,11 +50,8 @@ export var IconScaling = {
|
|
49
50
|
};
|
50
51
|
export var ToggleWithText = forwardRef(function (_a, ref) {
|
51
52
|
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, text = _a.text, props = __rest(_a, ["className", "children", "radius", "size", "scaling", "color", "appearance", "text"]);
|
52
|
-
return (
|
53
|
-
|
54
|
-
|
55
|
-
})}
|
56
|
-
{text}
|
57
|
-
</TogglePrimitive.Root>);
|
53
|
+
return (_jsxs(TogglePrimitive.Root, __assign({ ref: ref, className: cn(toggleWithTextVariants({ radius: radius, size: size, scaling: scaling }), toggleAppearanceStyle(appearance, color, true, 'data-[state=on]:'), className) }, props, { children: [Children.map(children, function (child) {
|
54
|
+
return React.cloneElement(child, { className: IconScaling[size] });
|
55
|
+
}), text] })));
|
58
56
|
});
|
59
57
|
ToggleWithText.displayName = 'ToggleWithText';
|
@@ -20,6 +20,7 @@ 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";
|
23
24
|
import React, { Children, forwardRef } from 'react';
|
24
25
|
import { cva } from 'class-variance-authority';
|
25
26
|
import * as TogglePrimitive from '@radix-ui/react-toggle';
|
@@ -49,11 +50,9 @@ export var IconScaling = {
|
|
49
50
|
};
|
50
51
|
export var Toggle = forwardRef(function (_a, ref) {
|
51
52
|
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"]);
|
52
|
-
return (
|
53
|
-
{Children.map(children, function (child) {
|
53
|
+
return (_jsx(TogglePrimitive.Root, __assign({ ref: ref, className: cn(toggleVariants({ radius: radius, size: size, scaling: scaling }), toggleAppearanceStyle(appearance, color, true, 'data-[state=on]:'), className) }, props, { children: Children.map(children, function (child) {
|
54
54
|
return React.cloneElement(child, { className: IconScaling[size] });
|
55
|
-
})}
|
56
|
-
</TogglePrimitive.Root>);
|
55
|
+
}) })));
|
57
56
|
});
|
58
57
|
Toggle.displayName = 'Toggle';
|
59
58
|
export default Toggle;
|
@@ -20,7 +20,8 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
20
20
|
}
|
21
21
|
return t;
|
22
22
|
};
|
23
|
-
import
|
23
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
24
|
+
import { forwardRef } from 'react';
|
24
25
|
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
25
26
|
import { cva } from 'class-variance-authority';
|
26
27
|
import { scalingVariants } from '../../constants';
|
@@ -36,11 +37,7 @@ var toggleVariants = cva('inline-flex', {
|
|
36
37
|
});
|
37
38
|
export var ToggleGroup = forwardRef(function (_a, ref) {
|
38
39
|
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"]);
|
39
|
-
return type === 'single' ? (
|
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>);
|
40
|
+
return type === 'single' ? (_jsx(ToggleGroupPrimitive.Root, __assign({ ref: ref, type: type, value: value, defaultValue: defaultValue, className: cn(toggleVariants({ scaling: scaling }), className) }, props, { children: children }))) : (_jsx(ToggleGroupPrimitive.Root, __assign({ ref: ref, type: type, value: value, defaultValue: defaultValue, className: cn(toggleVariants({ scaling: scaling }), className) }, props, { children: children })));
|
44
41
|
});
|
45
42
|
ToggleGroup.displayName = 'ToggleGroup';
|
46
43
|
export default ToggleGroup;
|
@@ -1,3 +1,14 @@
|
|
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
|
+
};
|
1
12
|
var __rest = (this && this.__rest) || function (s, e) {
|
2
13
|
var t = {};
|
3
14
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
@@ -9,6 +20,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
9
20
|
}
|
10
21
|
return t;
|
11
22
|
};
|
23
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
12
24
|
import React, { Children, forwardRef } from 'react';
|
13
25
|
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
14
26
|
import { cva } from 'class-variance-authority';
|
@@ -33,10 +45,8 @@ export var IconScaling = {
|
|
33
45
|
};
|
34
46
|
export var ToggleGroupItem = forwardRef(function (_a, ref) {
|
35
47
|
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"]);
|
36
|
-
return (
|
37
|
-
{Children.map(children, function (child) {
|
48
|
+
return (_jsx(ToggleGroupPrimitive.Item, __assign({ ref: ref, value: value, className: cn(toggleGroupItemVariants({ size: size }), toggleAppearanceStyle(appearance, color, true, 'data-[state=on]:'), className) }, props, { children: Children.map(children, function (child) {
|
38
49
|
return React.cloneElement(child, { className: IconScaling[size] });
|
39
|
-
})}
|
40
|
-
</ToggleGroupPrimitive.Item>);
|
50
|
+
}) })));
|
41
51
|
});
|
42
52
|
ToggleGroupItem.displayName = 'ToggleGroupItem';
|
@@ -20,6 +20,7 @@ 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";
|
23
24
|
import React from 'react';
|
24
25
|
import { cva } from 'class-variance-authority';
|
25
26
|
import { cn } from '../../utils/utils';
|
@@ -64,12 +65,7 @@ export var ToggleSwitch = React.forwardRef(function (_a, forwardedRef) {
|
|
64
65
|
sizeTheme = '1';
|
65
66
|
if (size === 'large')
|
66
67
|
sizeTheme = '3';
|
67
|
-
return (
|
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>);
|
68
|
+
return (_jsx(Theme, { className: "flex", accentColor: color, hasBackground: false, children: _jsxs(Text, { as: "label", className: cn('flex items-center', SwitchLabelVariants({ size: size, scaling: scaling })), children: [_jsx(SwitchTheme, __assign({ ref: forwardedRef }, switchProps, { variant: appearance, radius: radius, size: sizeTheme, color: color, className: cn(toggleSwitchVariants({ scaling: scaling, radius: radius, size: size }), className) })), children] }) }));
|
73
69
|
});
|
74
70
|
ToggleSwitch.displayName = 'ToggleSwitch';
|
75
71
|
export default ToggleSwitch;
|
@@ -11,7 +11,7 @@ export interface TooltipProps extends React.InputHTMLAttributes<HTMLInputElement
|
|
11
11
|
side?: 'top' | 'right' | 'bottom' | 'left';
|
12
12
|
}
|
13
13
|
declare const tooltipVariants: (props?: ({
|
14
|
-
scaling?: number | typeof Symbol.iterator | typeof Symbol.unscopables | "
|
14
|
+
scaling?: number | typeof Symbol.iterator | typeof Symbol.unscopables | "map" | "filter" | "fill" | "values" | "concat" | "indexOf" | "lastIndexOf" | "slice" | "length" | "includes" | "at" | "toLocaleString" | "toString" | "pop" | "push" | "join" | "reverse" | "shift" | "sort" | "splice" | "unshift" | "every" | "some" | "forEach" | "reduce" | "reduceRight" | "find" | "findIndex" | "copyWithin" | "entries" | "keys" | "flatMap" | "flat" | "findLast" | "findLastIndex" | "toReversed" | "toSorted" | "toSpliced" | "with" | null | undefined;
|
15
15
|
weight?: "medium" | "regular" | "semibold" | "bold" | null | undefined;
|
16
16
|
radius?: "none" | "small" | "medium" | "large" | "full" | null | undefined;
|
17
17
|
color?: string | null | undefined;
|
@@ -20,6 +20,7 @@ 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";
|
23
24
|
// your-tooltip.jsx
|
24
25
|
import React from 'react';
|
25
26
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
@@ -43,16 +44,6 @@ export var Tooltip = React.forwardRef(function (_a) {
|
|
43
44
|
var arrowColor = color
|
44
45
|
? "fill-".concat(color, "-9 dark:fill-").concat(color, "Dark-9")
|
45
46
|
: 'fill-slate-12 dark:fill-slateDark-12';
|
46
|
-
return (
|
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>);
|
47
|
+
return (_jsx(TooltipPrimitive.Provider, { children: _jsxs(TooltipPrimitive.Root, { open: open, defaultOpen: defaultOpen, onOpenChange: onOpenChange, children: [_jsx(TooltipPrimitive.Trigger, { className: "cursor-pointer text-slate-12 dark:text-slateDark-12", asChild: true, children: children }), _jsxs(TooltipPrimitive.Content, __assign({ align: "center" }, props, { side: side, className: cn('mr-2', tooltipVariants({ scaling: scaling, weight: weight, radius: radius, color: color }), className), sideOffset: 5, children: [content, _jsx(TooltipPrimitive.Arrow, { width: 11, height: 5, className: arrowColor })] }))] }) }));
|
57
48
|
});
|
58
49
|
Tooltip.displayName = TooltipPrimitive.Root.displayName;
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
@@ -1,3 +1,2 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
// export * from './Typography';
|
1
|
+
export * from './components';
|
2
|
+
export * from './Typography';
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import { useEffect } from 'react';
|
3
|
+
import Landing from './assets/landing.svg';
|
4
|
+
import Logo from './assets/logo.svg';
|
5
|
+
import Figma from './assets/figma.svg';
|
6
|
+
import Gitlab from './assets/gitlab.svg';
|
7
|
+
import Image from 'next/image';
|
8
|
+
import Button from 'components/Button';
|
9
|
+
var addParentClass = function () {
|
10
|
+
var elements = document.querySelectorAll('.welcome-wrap');
|
11
|
+
elements.forEach(function (element) {
|
12
|
+
var parent = element.parentElement.parentElement;
|
13
|
+
if (parent) {
|
14
|
+
parent.classList.add('welcome-wrap-layout');
|
15
|
+
}
|
16
|
+
});
|
17
|
+
};
|
18
|
+
var Welcome = function () {
|
19
|
+
useEffect(function () {
|
20
|
+
addParentClass();
|
21
|
+
}, []);
|
22
|
+
var navigateToGitlab = function () {
|
23
|
+
window.open('http://s-gitlab.ldcc.co.kr/l-ui/ui-component', '_blank');
|
24
|
+
};
|
25
|
+
var navigateToFigma = function () {
|
26
|
+
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');
|
27
|
+
};
|
28
|
+
return (_jsxs("div", { className: "welcome-wrap", children: [_jsxs("div", { children: [_jsxs("div", { children: [_jsx(Image, { className: "w-[150px] h-auto", layout: "fixed", src: Logo, alt: "LOTTE INNOVATE" }), _jsx("p", { className: "welcome-sub", children: "Style Guide UI Kit" }), _jsx("h1", { className: "welcome-title", children: "LOTTE UI Library" })] }), _jsxs("div", { className: "flex gap-2 pt-[40px]", children: [_jsxs(Button, { color: "slate", radius: "medium", scaling: "100%", weight: "medium", size: 'x-large', appearance: 'outline', onClick: navigateToGitlab, className: "relative z-10", children: [_jsx(Image, { src: Gitlab, width: 0, height: 0, alt: "Gitlab", className: "mr-2" }), "GitLab"] }), _jsxs(Button, { color: "slate", radius: "medium", scaling: "100%", weight: "medium", size: 'x-large', appearance: 'outline', onClick: navigateToFigma, className: "relative z-10", children: [_jsx(Image, { src: Figma, width: 0, height: 0, alt: "Figma", className: "mr-2" }), "Figma"] })] })] }), _jsx(Image, { className: "absolute bottom-0 w-auto", src: Landing, width: 0, height: 0, alt: "\uCEF4\uD3EC\uB10C\uD2B8 \uC774\uBBF8\uC9C0\uC785\uB2C8\uB2E4." })] }));
|
29
|
+
};
|
30
|
+
export default Welcome;
|
@@ -20,6 +20,7 @@ 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";
|
23
24
|
import { Accordion, AccordionContent, AccordionItem, AccordionTrigger, } from '../../components/Accordion/index';
|
24
25
|
import { commonArgTypes } from '../../constants';
|
25
26
|
var meta = {
|
@@ -56,24 +57,5 @@ export default meta;
|
|
56
57
|
export var Default = function (_a) {
|
57
58
|
var _b;
|
58
59
|
var args = __rest(_a, []);
|
59
|
-
return (
|
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>);
|
60
|
+
return (_jsxs(Accordion, __assign({ defaultValue: "item-1", type: (_b = args.type) !== null && _b !== void 0 ? _b : 'single' }, args, { children: [_jsxs(AccordionItem, { value: "item-1", children: [_jsx(AccordionTrigger, __assign({}, args, { children: "\uB9AC\uC561\uD2B8\uB294 \uBB34\uC5C7\uC778\uAC00\uC694?" })), _jsx(AccordionContent, { children: "\uB9AC\uC561\uD2B8\uB294 \uC790\uBC14\uC2A4\uD06C\uB9BD\uD2B8 \uB77C\uC774\uBE0C\uB7EC\uB9AC\uC758 \uD558\uB098\uB85C\uC11C \uC0AC\uC6A9\uC790 \uC778\uD130\uD398\uC774\uC2A4\uB97C \uB9CC\uB4E4\uAE30 \uC704\uD574 \uC0AC\uC6A9\uB41C\uB2E4." })] }), _jsxs(AccordionItem, { value: "item-2", children: [_jsx(AccordionTrigger, __assign({}, args, { children: "\uC790\uBC14\uC2A4\uD06C\uB9BD\uD2B8\uB780 \uBB34\uC5C7\uC778\uAC00\uC694?" })), _jsx(AccordionContent, { children: "\uC790\uBC14\uC2A4\uD06C\uB9BD\uD2B8\uB294 \uAC1D\uCCB4 \uAE30\uBC18\uC758 \uC2A4\uD06C\uB9BD\uD2B8 \uD504\uB85C\uADF8\uB798\uBC0D \uC5B8\uC5B4\uC774\uB2E4." })] }), _jsxs(AccordionItem, { value: "item-3", disabled: true, children: [_jsx(AccordionTrigger, __assign({}, args, { children: "Can it be animated?" })), _jsx(AccordionContent, { children: "Yes! You can animate the Accordion with CSS or JavaScript." })] })] })));
|
79
61
|
};
|
@@ -20,6 +20,7 @@ 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";
|
23
24
|
import { commonArgTypes, sizeOptions } from '../../constants';
|
24
25
|
import Button from 'components/Button';
|
25
26
|
import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogTitle, AlertDialogTrigger, } from 'components/AlertDialog';
|
@@ -55,19 +56,5 @@ var meta = {
|
|
55
56
|
export default meta;
|
56
57
|
export var Default = function (_a) {
|
57
58
|
var args = __rest(_a, []);
|
58
|
-
return (
|
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>);
|
59
|
+
return (_jsxs(AlertDialog, { children: [_jsx(AlertDialogTrigger, { children: _jsx(Button, { children: "\uBC84\uD2BC\uC744 \uD074\uB9AD\uD574\uC8FC\uC138\uC694" }) }), _jsxs(AlertDialogContent, __assign({}, args, { children: [_jsx(AlertDialogTitle, __assign({}, args, { children: "AlertDialog \uC81C\uBAA9" })), _jsx(AlertDialogDescription, __assign({}, args, { children: "AlertDialog \uB0B4\uC6A9\uC774 \uB4E4\uC5B4\uAC08 \uACF5\uAC04\uC785\uB2C8\uB2E4." })), _jsxs("div", { className: "flex justify-end", children: [_jsx(AlertDialogCancel, __assign({}, args, { children: "\uCDE8\uC18C" })), _jsx(AlertDialogAction, __assign({}, args, { children: "\uD655\uC778" }))] })] }))] }));
|
73
60
|
};
|
@@ -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").JSX.Element;
|
62
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
63
63
|
export declare const Ratio: ({ ...args }: {
|
64
64
|
[x: string]: any;
|
65
|
-
}) => import("react").JSX.Element;
|
65
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
66
66
|
export declare const Scaling: ({ ...args }: {
|
67
67
|
[x: string]: any;
|
68
|
-
}) => import("react").JSX.Element;
|
68
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
@@ -0,0 +1,78 @@
|
|
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 { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
24
|
+
import Image from 'next/image';
|
25
|
+
import AspectRatio from 'components/AspectRatio';
|
26
|
+
import { Text } from 'Typography/Text';
|
27
|
+
import { commonArgTypes, scalingOptions } from '../../constants';
|
28
|
+
var aspectOptions = {
|
29
|
+
'1': 1,
|
30
|
+
'5/4': 1.25,
|
31
|
+
'5/3': 1.66,
|
32
|
+
'5/2': 2.5,
|
33
|
+
'5/1': 5,
|
34
|
+
'16/9': 1.77,
|
35
|
+
};
|
36
|
+
var meta = {
|
37
|
+
title: 'Component/AspectRatio',
|
38
|
+
component: AspectRatio,
|
39
|
+
parameters: {
|
40
|
+
layout: 'centered',
|
41
|
+
docs: {
|
42
|
+
description: {
|
43
|
+
component: '원하는 비율로 콘텐츠를 표시하는 컴포넌트',
|
44
|
+
},
|
45
|
+
},
|
46
|
+
},
|
47
|
+
tags: ['autodocs'],
|
48
|
+
argTypes: {
|
49
|
+
ratio: {
|
50
|
+
table: {
|
51
|
+
category: 'Props',
|
52
|
+
type: { summary: 'number' },
|
53
|
+
},
|
54
|
+
options: Object.keys(aspectOptions),
|
55
|
+
mapping: aspectOptions,
|
56
|
+
control: {
|
57
|
+
type: 'select',
|
58
|
+
},
|
59
|
+
description: 'width / height 비율',
|
60
|
+
defaultValue: { summary: '16/9' },
|
61
|
+
},
|
62
|
+
scaling: __assign(__assign({}, commonArgTypes.scaling), { description: 'AspectRatio 비율' }),
|
63
|
+
},
|
64
|
+
args: {},
|
65
|
+
};
|
66
|
+
export default meta;
|
67
|
+
export var Default = function (_a) {
|
68
|
+
var args = __rest(_a, []);
|
69
|
+
return (_jsx("div", { className: "w-[300px]", children: _jsx(AspectRatio, __assign({ id: "defaultAspectRatio" }, args, { children: _jsx(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 }) })) }));
|
70
|
+
};
|
71
|
+
export var Ratio = function (_a) {
|
72
|
+
var args = __rest(_a, []);
|
73
|
+
return (_jsxs("div", { className: "flex space-x-2", children: [_jsxs("div", { className: "flex flex-col w-[200px] items-center", children: [_jsx(Text, { children: '3 / 1' }), _jsx(AspectRatio, __assign({ id: "defaultAspectRatio" }, args, { ratio: 3 / 1, children: _jsx(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 }) }))] }), _jsxs("div", { className: "flex flex-col w-[200px] items-center", children: [_jsx(Text, { children: '3 / 2' }), _jsx(AspectRatio, __assign({ id: "defaultAspectRatio" }, args, { ratio: 3 / 2, children: _jsx(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 }) }))] }), _jsxs("div", { className: "flex flex-col w-[200px] items-center", children: [_jsx(Text, { children: '3 / 3' }), _jsx(AspectRatio, __assign({ id: "defaultAspectRatio" }, args, { ratio: 3 / 3, children: _jsx(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 }) }))] })] }));
|
74
|
+
};
|
75
|
+
export var Scaling = function (_a) {
|
76
|
+
var args = __rest(_a, []);
|
77
|
+
return (_jsx("div", { className: "flex flex-row space-x-5", children: scalingOptions.map(function (scaling) { return (_jsx("div", { className: "w-[130px] border border-red-9", children: _jsx(AspectRatio, __assign({ id: scaling, scaling: scaling }, args, { children: _jsx(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 }) })) }, scaling)); }) }));
|
78
|
+
};
|
@@ -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").JSX.Element;
|
115
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
116
116
|
export declare const Radius: ({ ...args }: {
|
117
117
|
[x: string]: any;
|
118
|
-
}) => import("react").JSX.Element;
|
118
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
119
119
|
export declare const Size: ({ ...args }: {
|
120
120
|
[x: string]: any;
|
121
|
-
}) => import("react").JSX.Element;
|
121
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
122
122
|
export declare const Scaling: ({ ...args }: {
|
123
123
|
[x: string]: any;
|
124
|
-
}) => import("react").JSX.Element;
|
124
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
125
125
|
export declare const Appearance: ({ ...args }: {
|
126
126
|
[x: string]: any;
|
127
|
-
}) => import("react").JSX.Element;
|
127
|
+
}) => import("react/jsx-runtime").JSX.Element;
|