lecom-ui 4.1.9 → 4.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/_commonjsHelpers.js +5 -0
- package/dist/_virtual/index.js +7 -0
- package/dist/components/Accordion/Accordion.js +40 -37
- package/dist/components/Button/Button.js +10 -9
- package/dist/components/Button/CustomButton.js +6 -5
- package/dist/components/Card/Card.js +7 -6
- package/dist/components/Checkbox/Checkbox.js +35 -30
- package/dist/components/CustomIcon/Icons/CadastroFacil.js +15 -5
- package/dist/components/CustomIcon/Icons/LogoLecom.js +15 -12
- package/dist/components/CustomIcon/Icons/LogoLecomBrand.js +8 -5
- package/dist/components/CustomIcon/Icons/ModoTeste.js +13 -5
- package/dist/components/CustomIcon/Icons/Rpa.js +17 -5
- package/dist/components/DataTable/DataTable.js +33 -158
- package/dist/components/Dialog/Dialog.js +40 -31
- package/dist/components/DropdownMenu/DropdownMenu.js +55 -46
- package/dist/components/Header/Header.js +51 -35
- package/dist/components/Header/HelpMenu.js +52 -41
- package/dist/components/Header/ImgBrand.js +5 -8
- package/dist/components/Header/ModulesMenu.js +63 -50
- package/dist/components/Header/SocialMenu.js +5 -6
- package/dist/components/Header/UserMenu.js +81 -51
- package/dist/components/Input/Input.js +11 -2
- package/dist/components/Layout/Layout.js +62 -45
- package/dist/components/Notification/Notification.js +9 -8
- package/dist/components/Notification/NotificationBase.js +5 -5
- package/dist/components/Notification/NotificationCallout.js +33 -27
- package/dist/components/Notification/NotificationCloseButton.js +4 -3
- package/dist/components/Notification/NotificationContent.js +24 -18
- package/dist/components/Notification/NotificationIcon.js +9 -6
- package/dist/components/Notification/NotificationInline.js +23 -20
- package/dist/components/Notification/NotificationToast.js +28 -25
- package/dist/components/Notification/useNotificationToast.js +0 -1
- package/dist/components/Popover/Popover.js +8 -7
- package/dist/components/ScrollArea/ScrollArea.js +18 -15
- package/dist/components/Select/Select.js +63 -54
- package/dist/components/Separator/Separator.js +5 -4
- package/dist/components/Sheet/Sheet.js +35 -26
- package/dist/components/Sidebar/Sidebar.js +112 -95
- package/dist/components/Skeleton/Skeleton.js +2 -2
- package/dist/components/Table/Table.js +15 -26
- package/dist/components/Tag/Tag.js +6 -5
- package/dist/components/Tooltip/Tooltip.js +17 -15
- package/dist/components/Typography/Typography.js +6 -7
- package/dist/hooks/use-mobile.js +1 -1
- package/dist/i18n/index.js +4 -53
- package/dist/i18n/locales/en_us.js +4 -3
- package/dist/i18n/locales/es_es.js +4 -3
- package/dist/i18n/locales/index.js +4 -4
- package/dist/i18n/locales/pt_br.js +4 -3
- package/dist/index.d.ts +108 -304
- package/dist/index.js +1 -12
- package/dist/lib/utils.js +2 -2
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +806 -0
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +726 -0
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +347 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +154 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +136 -0
- package/dist/node_modules/@radix-ui/number/dist/index.js +6 -0
- package/dist/node_modules/@radix-ui/primitive/dist/index.js +11 -0
- package/dist/node_modules/@radix-ui/react-accordion/dist/index.js +303 -0
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +25 -0
- package/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +157 -0
- package/dist/node_modules/@radix-ui/react-collapsible/dist/index.js +144 -0
- package/dist/node_modules/@radix-ui/react-collection/dist/index.js +68 -0
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +39 -0
- package/dist/node_modules/@radix-ui/react-context/dist/index.js +79 -0
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +319 -0
- package/dist/node_modules/@radix-ui/react-direction/dist/index.js +11 -0
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +211 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +265 -0
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +29 -0
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +207 -0
- package/dist/node_modules/@radix-ui/react-id/dist/index.js +15 -0
- package/dist/node_modules/@radix-ui/react-menu/dist/index.js +831 -0
- package/dist/node_modules/@radix-ui/react-popover/dist/index.js +296 -0
- package/dist/node_modules/@radix-ui/react-popper/dist/index.js +278 -0
- package/dist/node_modules/@radix-ui/react-portal/dist/index.js +17 -0
- package/dist/node_modules/@radix-ui/react-presence/dist/index.js +130 -0
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +41 -0
- package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +220 -0
- package/dist/node_modules/@radix-ui/react-scroll-area/dist/index.js +718 -0
- package/dist/node_modules/@radix-ui/react-select/dist/index.js +1143 -0
- package/dist/node_modules/@radix-ui/react-separator/dist/index.js +30 -0
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js +81 -0
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.js +476 -0
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +12 -0
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +46 -0
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +18 -0
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +7 -0
- package/dist/node_modules/@radix-ui/react-use-previous/dist/index.js +15 -0
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +40 -0
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.js +35 -0
- package/dist/node_modules/@tanstack/react-table/build/lib/index.js +74 -0
- package/dist/node_modules/@tanstack/table-core/build/lib/index.js +3023 -0
- package/dist/node_modules/aria-hidden/dist/es2015/index.js +136 -0
- package/dist/node_modules/class-variance-authority/dist/index.js +44 -0
- package/dist/node_modules/clsx/dist/clsx.js +3 -0
- package/dist/node_modules/get-nonce/dist/es2015/index.js +8 -0
- package/dist/node_modules/hex-color-opacity/lib/index.js +22 -0
- package/dist/node_modules/i18next/dist/esm/i18next.js +2228 -0
- package/dist/node_modules/lucide-react/dist/esm/Icon.js +44 -0
- package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js +26 -0
- package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js +20 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/check.js +13 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-down.js +15 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-right.js +15 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-up.js +13 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/circle-alert.js +17 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/circle-check.js +16 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/circle-help.js +17 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/circle.js +15 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/info.js +17 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/menu.js +17 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/message-square.js +15 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/minus.js +13 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/panel-left.js +16 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/triangle-alert.js +23 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/user.js +16 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/x.js +16 -0
- package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.js +13 -0
- package/dist/node_modules/react-i18next/dist/es/context.js +18 -0
- package/dist/node_modules/react-i18next/dist/es/defaults.js +21 -0
- package/dist/node_modules/react-i18next/dist/es/i18nInstance.js +7 -0
- package/dist/node_modules/react-i18next/dist/es/initReactI18next.js +12 -0
- package/dist/node_modules/react-i18next/dist/es/unescape.js +27 -0
- package/dist/node_modules/react-i18next/dist/es/useTranslation.js +112 -0
- package/dist/node_modules/react-i18next/dist/es/utils.js +63 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +9 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +160 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +38 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +21 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +109 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +5 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +7 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +56 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +10 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +31 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/component.js +19 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +25 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +51 -0
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +2493 -0
- package/dist/node_modules/tslib/tslib.es6.js +56 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +24 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +48 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +42 -0
- package/dist/node_modules/use-color-luminance/index.es.js +105 -0
- package/dist/node_modules/use-sidecar/dist/es2015/exports.js +21 -0
- package/dist/node_modules/use-sidecar/dist/es2015/medium.js +77 -0
- package/dist/plugin/typographies.ts +146 -152
- package/dist/style.min.css +1 -1
- package/dist/utils/cookie.js +9 -6
- package/package.json +11 -3
|
@@ -1,52 +1,57 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
1
2
|
import * as React from 'react';
|
|
2
3
|
import { cn } from '../../lib/utils.js';
|
|
3
|
-
import
|
|
4
|
-
import
|
|
4
|
+
import { Trigger, Icon, ScrollUpButton, ScrollDownButton, Portal, Content as Content2, Viewport, Label, Item, ItemIndicator, ItemText, Separator, Root as Root2, Value } from '../../node_modules/@radix-ui/react-select/dist/index.js';
|
|
5
|
+
import ChevronDown from '../../node_modules/lucide-react/dist/esm/icons/chevron-down.js';
|
|
6
|
+
import ChevronUp from '../../node_modules/lucide-react/dist/esm/icons/chevron-up.js';
|
|
7
|
+
import Check from '../../node_modules/lucide-react/dist/esm/icons/check.js';
|
|
5
8
|
|
|
6
|
-
const Select =
|
|
7
|
-
const SelectValue =
|
|
8
|
-
const SelectTrigger = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */
|
|
9
|
-
|
|
9
|
+
const Select = Root2;
|
|
10
|
+
const SelectValue = Value;
|
|
11
|
+
const SelectTrigger = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
12
|
+
Trigger,
|
|
10
13
|
{
|
|
11
14
|
ref,
|
|
12
15
|
className: cn(
|
|
13
16
|
"flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm placeholder:text-muted-foreground focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
|
|
14
17
|
className
|
|
15
18
|
),
|
|
16
|
-
...props
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
...props,
|
|
20
|
+
children: [
|
|
21
|
+
children,
|
|
22
|
+
/* @__PURE__ */ jsx(Icon, { asChild: true, children: /* @__PURE__ */ jsx(ChevronDown, { className: "h-4 w-4 opacity-50" }) })
|
|
23
|
+
]
|
|
24
|
+
}
|
|
20
25
|
));
|
|
21
|
-
SelectTrigger.displayName =
|
|
22
|
-
const SelectScrollUpButton = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
23
|
-
|
|
26
|
+
SelectTrigger.displayName = Trigger.displayName;
|
|
27
|
+
const SelectScrollUpButton = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
28
|
+
ScrollUpButton,
|
|
24
29
|
{
|
|
25
30
|
ref,
|
|
26
31
|
className: cn(
|
|
27
32
|
"flex cursor-default items-center justify-center py-1",
|
|
28
33
|
className
|
|
29
34
|
),
|
|
30
|
-
...props
|
|
31
|
-
|
|
32
|
-
|
|
35
|
+
...props,
|
|
36
|
+
children: /* @__PURE__ */ jsx(ChevronUp, { className: "h-4 w-4" })
|
|
37
|
+
}
|
|
33
38
|
));
|
|
34
|
-
SelectScrollUpButton.displayName =
|
|
35
|
-
const SelectScrollDownButton = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
36
|
-
|
|
39
|
+
SelectScrollUpButton.displayName = ScrollUpButton.displayName;
|
|
40
|
+
const SelectScrollDownButton = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
41
|
+
ScrollDownButton,
|
|
37
42
|
{
|
|
38
43
|
ref,
|
|
39
44
|
className: cn(
|
|
40
45
|
"flex cursor-default items-center justify-center py-1",
|
|
41
46
|
className
|
|
42
47
|
),
|
|
43
|
-
...props
|
|
44
|
-
|
|
45
|
-
|
|
48
|
+
...props,
|
|
49
|
+
children: /* @__PURE__ */ jsx(ChevronDown, { className: "h-4 w-4" })
|
|
50
|
+
}
|
|
46
51
|
));
|
|
47
|
-
SelectScrollDownButton.displayName =
|
|
48
|
-
const SelectContent = React.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */
|
|
49
|
-
|
|
52
|
+
SelectScrollDownButton.displayName = ScrollDownButton.displayName;
|
|
53
|
+
const SelectContent = React.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx(Portal, { children: /* @__PURE__ */ jsxs(
|
|
54
|
+
Content2,
|
|
50
55
|
{
|
|
51
56
|
ref,
|
|
52
57
|
className: cn(
|
|
@@ -55,53 +60,57 @@ const SelectContent = React.forwardRef(({ className, children, position = "poppe
|
|
|
55
60
|
className
|
|
56
61
|
),
|
|
57
62
|
position,
|
|
58
|
-
...props
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
63
|
+
...props,
|
|
64
|
+
children: [
|
|
65
|
+
/* @__PURE__ */ jsx(SelectScrollUpButton, {}),
|
|
66
|
+
/* @__PURE__ */ jsx(
|
|
67
|
+
Viewport,
|
|
68
|
+
{
|
|
69
|
+
className: cn(
|
|
70
|
+
"p-1",
|
|
71
|
+
position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
|
|
72
|
+
),
|
|
73
|
+
children
|
|
74
|
+
}
|
|
75
|
+
),
|
|
76
|
+
/* @__PURE__ */ jsx(SelectScrollDownButton, {})
|
|
77
|
+
]
|
|
78
|
+
}
|
|
79
|
+
) }));
|
|
80
|
+
SelectContent.displayName = Content2.displayName;
|
|
81
|
+
const SelectLabel = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
82
|
+
Label,
|
|
76
83
|
{
|
|
77
84
|
ref,
|
|
78
85
|
className: cn("py-1.5 pl-8 pr-2 text-sm font-semibold", className),
|
|
79
86
|
...props
|
|
80
87
|
}
|
|
81
88
|
));
|
|
82
|
-
SelectLabel.displayName =
|
|
83
|
-
const SelectItem = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */
|
|
84
|
-
|
|
89
|
+
SelectLabel.displayName = Label.displayName;
|
|
90
|
+
const SelectItem = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
91
|
+
Item,
|
|
85
92
|
{
|
|
86
93
|
ref,
|
|
87
94
|
className: cn(
|
|
88
95
|
"relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
89
96
|
className
|
|
90
97
|
),
|
|
91
|
-
...props
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
98
|
+
...props,
|
|
99
|
+
children: [
|
|
100
|
+
/* @__PURE__ */ jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(ItemIndicator, { children: /* @__PURE__ */ jsx(Check, { className: "h-4 w-4" }) }) }),
|
|
101
|
+
/* @__PURE__ */ jsx(ItemText, { children })
|
|
102
|
+
]
|
|
103
|
+
}
|
|
95
104
|
));
|
|
96
|
-
SelectItem.displayName =
|
|
97
|
-
const SelectSeparator = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
98
|
-
|
|
105
|
+
SelectItem.displayName = Item.displayName;
|
|
106
|
+
const SelectSeparator = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
107
|
+
Separator,
|
|
99
108
|
{
|
|
100
109
|
ref,
|
|
101
110
|
className: cn("-mx-1 my-1 h-px bg-muted", className),
|
|
102
111
|
...props
|
|
103
112
|
}
|
|
104
113
|
));
|
|
105
|
-
SelectSeparator.displayName =
|
|
114
|
+
SelectSeparator.displayName = Separator.displayName;
|
|
106
115
|
|
|
107
116
|
export { Select, SelectContent, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
1
2
|
import * as React from 'react';
|
|
2
3
|
import { cn } from '../../lib/utils.js';
|
|
3
|
-
import
|
|
4
|
+
import { Root } from '../../node_modules/@radix-ui/react-separator/dist/index.js';
|
|
4
5
|
|
|
5
6
|
const Separator = React.forwardRef(
|
|
6
|
-
({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */
|
|
7
|
-
|
|
7
|
+
({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
8
|
+
Root,
|
|
8
9
|
{
|
|
9
10
|
ref,
|
|
10
11
|
decorative,
|
|
@@ -18,6 +19,6 @@ const Separator = React.forwardRef(
|
|
|
18
19
|
}
|
|
19
20
|
)
|
|
20
21
|
);
|
|
21
|
-
Separator.displayName =
|
|
22
|
+
Separator.displayName = Root.displayName;
|
|
22
23
|
|
|
23
24
|
export { Separator };
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
1
2
|
import * as React from 'react';
|
|
2
3
|
import { cn } from '../../lib/utils.js';
|
|
3
|
-
import
|
|
4
|
-
import { cva } from 'class-variance-authority';
|
|
5
|
-
import
|
|
4
|
+
import { Overlay, Portal, Content, DialogTitle, Close, Title, Description, Root } from '../../node_modules/@radix-ui/react-dialog/dist/index.js';
|
|
5
|
+
import { cva } from '../../node_modules/class-variance-authority/dist/index.js';
|
|
6
|
+
import X from '../../node_modules/lucide-react/dist/esm/icons/x.js';
|
|
6
7
|
|
|
7
|
-
const Sheet =
|
|
8
|
-
const SheetPortal =
|
|
9
|
-
const SheetOverlay = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
10
|
-
|
|
8
|
+
const Sheet = Root;
|
|
9
|
+
const SheetPortal = Portal;
|
|
10
|
+
const SheetOverlay = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
11
|
+
Overlay,
|
|
11
12
|
{
|
|
12
13
|
className: cn(
|
|
13
14
|
"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
@@ -17,7 +18,7 @@ const SheetOverlay = React.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
17
18
|
ref
|
|
18
19
|
}
|
|
19
20
|
));
|
|
20
|
-
SheetOverlay.displayName =
|
|
21
|
+
SheetOverlay.displayName = Overlay.displayName;
|
|
21
22
|
const sheetVariants = cva(
|
|
22
23
|
"fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
|
|
23
24
|
{
|
|
@@ -34,35 +35,43 @@ const sheetVariants = cva(
|
|
|
34
35
|
}
|
|
35
36
|
}
|
|
36
37
|
);
|
|
37
|
-
const SheetContent = React.forwardRef(({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
38
|
+
const SheetContent = React.forwardRef(({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ jsxs(SheetPortal, { children: [
|
|
39
|
+
/* @__PURE__ */ jsx(SheetOverlay, {}),
|
|
40
|
+
/* @__PURE__ */ jsxs(
|
|
41
|
+
Content,
|
|
42
|
+
{
|
|
43
|
+
ref,
|
|
44
|
+
className: cn(sheetVariants({ side }), className),
|
|
45
|
+
...props,
|
|
46
|
+
children: [
|
|
47
|
+
/* @__PURE__ */ jsx(DialogTitle, {}),
|
|
48
|
+
children,
|
|
49
|
+
/* @__PURE__ */ jsxs(Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
|
|
50
|
+
/* @__PURE__ */ jsx(X, { className: "h-4 w-4" }),
|
|
51
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
|
|
52
|
+
] })
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
)
|
|
56
|
+
] }));
|
|
57
|
+
SheetContent.displayName = Content.displayName;
|
|
58
|
+
const SheetTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
59
|
+
Title,
|
|
51
60
|
{
|
|
52
61
|
ref,
|
|
53
62
|
className: cn("text-lg font-semibold text-foreground", className),
|
|
54
63
|
...props
|
|
55
64
|
}
|
|
56
65
|
));
|
|
57
|
-
SheetTitle.displayName =
|
|
58
|
-
const SheetDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
59
|
-
|
|
66
|
+
SheetTitle.displayName = Title.displayName;
|
|
67
|
+
const SheetDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
68
|
+
Description,
|
|
60
69
|
{
|
|
61
70
|
ref,
|
|
62
71
|
className: cn("text-sm text-muted-foreground", className),
|
|
63
72
|
...props
|
|
64
73
|
}
|
|
65
74
|
));
|
|
66
|
-
SheetDescription.displayName =
|
|
75
|
+
SheetDescription.displayName = Description.displayName;
|
|
67
76
|
|
|
68
77
|
export { Sheet, SheetContent, SheetDescription, SheetOverlay, SheetPortal, SheetTitle };
|