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.
Files changed (152) hide show
  1. package/dist/_virtual/_commonjsHelpers.js +5 -0
  2. package/dist/_virtual/index.js +7 -0
  3. package/dist/components/Accordion/Accordion.js +40 -37
  4. package/dist/components/Button/Button.js +10 -9
  5. package/dist/components/Button/CustomButton.js +6 -5
  6. package/dist/components/Card/Card.js +7 -6
  7. package/dist/components/Checkbox/Checkbox.js +35 -30
  8. package/dist/components/CustomIcon/Icons/CadastroFacil.js +15 -5
  9. package/dist/components/CustomIcon/Icons/LogoLecom.js +15 -12
  10. package/dist/components/CustomIcon/Icons/LogoLecomBrand.js +8 -5
  11. package/dist/components/CustomIcon/Icons/ModoTeste.js +13 -5
  12. package/dist/components/CustomIcon/Icons/Rpa.js +17 -5
  13. package/dist/components/DataTable/DataTable.js +33 -158
  14. package/dist/components/Dialog/Dialog.js +40 -31
  15. package/dist/components/DropdownMenu/DropdownMenu.js +55 -46
  16. package/dist/components/Header/Header.js +51 -35
  17. package/dist/components/Header/HelpMenu.js +52 -41
  18. package/dist/components/Header/ImgBrand.js +5 -8
  19. package/dist/components/Header/ModulesMenu.js +63 -50
  20. package/dist/components/Header/SocialMenu.js +5 -6
  21. package/dist/components/Header/UserMenu.js +81 -51
  22. package/dist/components/Input/Input.js +11 -2
  23. package/dist/components/Layout/Layout.js +62 -45
  24. package/dist/components/Notification/Notification.js +9 -8
  25. package/dist/components/Notification/NotificationBase.js +5 -5
  26. package/dist/components/Notification/NotificationCallout.js +33 -27
  27. package/dist/components/Notification/NotificationCloseButton.js +4 -3
  28. package/dist/components/Notification/NotificationContent.js +24 -18
  29. package/dist/components/Notification/NotificationIcon.js +9 -6
  30. package/dist/components/Notification/NotificationInline.js +23 -20
  31. package/dist/components/Notification/NotificationToast.js +28 -25
  32. package/dist/components/Notification/useNotificationToast.js +0 -1
  33. package/dist/components/Popover/Popover.js +8 -7
  34. package/dist/components/ScrollArea/ScrollArea.js +18 -15
  35. package/dist/components/Select/Select.js +63 -54
  36. package/dist/components/Separator/Separator.js +5 -4
  37. package/dist/components/Sheet/Sheet.js +35 -26
  38. package/dist/components/Sidebar/Sidebar.js +112 -95
  39. package/dist/components/Skeleton/Skeleton.js +2 -2
  40. package/dist/components/Table/Table.js +15 -26
  41. package/dist/components/Tag/Tag.js +6 -5
  42. package/dist/components/Tooltip/Tooltip.js +17 -15
  43. package/dist/components/Typography/Typography.js +6 -7
  44. package/dist/hooks/use-mobile.js +1 -1
  45. package/dist/i18n/index.js +4 -53
  46. package/dist/i18n/locales/en_us.js +4 -3
  47. package/dist/i18n/locales/es_es.js +4 -3
  48. package/dist/i18n/locales/index.js +4 -4
  49. package/dist/i18n/locales/pt_br.js +4 -3
  50. package/dist/index.d.ts +108 -304
  51. package/dist/index.js +1 -12
  52. package/dist/lib/utils.js +2 -2
  53. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +806 -0
  54. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +726 -0
  55. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +347 -0
  56. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +154 -0
  57. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +136 -0
  58. package/dist/node_modules/@radix-ui/number/dist/index.js +6 -0
  59. package/dist/node_modules/@radix-ui/primitive/dist/index.js +11 -0
  60. package/dist/node_modules/@radix-ui/react-accordion/dist/index.js +303 -0
  61. package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +25 -0
  62. package/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +157 -0
  63. package/dist/node_modules/@radix-ui/react-collapsible/dist/index.js +144 -0
  64. package/dist/node_modules/@radix-ui/react-collection/dist/index.js +68 -0
  65. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +39 -0
  66. package/dist/node_modules/@radix-ui/react-context/dist/index.js +79 -0
  67. package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +319 -0
  68. package/dist/node_modules/@radix-ui/react-direction/dist/index.js +11 -0
  69. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +211 -0
  70. package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +265 -0
  71. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +29 -0
  72. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +207 -0
  73. package/dist/node_modules/@radix-ui/react-id/dist/index.js +15 -0
  74. package/dist/node_modules/@radix-ui/react-menu/dist/index.js +831 -0
  75. package/dist/node_modules/@radix-ui/react-popover/dist/index.js +296 -0
  76. package/dist/node_modules/@radix-ui/react-popper/dist/index.js +278 -0
  77. package/dist/node_modules/@radix-ui/react-portal/dist/index.js +17 -0
  78. package/dist/node_modules/@radix-ui/react-presence/dist/index.js +130 -0
  79. package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +41 -0
  80. package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +220 -0
  81. package/dist/node_modules/@radix-ui/react-scroll-area/dist/index.js +718 -0
  82. package/dist/node_modules/@radix-ui/react-select/dist/index.js +1143 -0
  83. package/dist/node_modules/@radix-ui/react-separator/dist/index.js +30 -0
  84. package/dist/node_modules/@radix-ui/react-slot/dist/index.js +81 -0
  85. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.js +476 -0
  86. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +12 -0
  87. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +46 -0
  88. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +18 -0
  89. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +7 -0
  90. package/dist/node_modules/@radix-ui/react-use-previous/dist/index.js +15 -0
  91. package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +40 -0
  92. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.js +35 -0
  93. package/dist/node_modules/@tanstack/react-table/build/lib/index.js +74 -0
  94. package/dist/node_modules/@tanstack/table-core/build/lib/index.js +3023 -0
  95. package/dist/node_modules/aria-hidden/dist/es2015/index.js +136 -0
  96. package/dist/node_modules/class-variance-authority/dist/index.js +44 -0
  97. package/dist/node_modules/clsx/dist/clsx.js +3 -0
  98. package/dist/node_modules/get-nonce/dist/es2015/index.js +8 -0
  99. package/dist/node_modules/hex-color-opacity/lib/index.js +22 -0
  100. package/dist/node_modules/i18next/dist/esm/i18next.js +2228 -0
  101. package/dist/node_modules/lucide-react/dist/esm/Icon.js +44 -0
  102. package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js +26 -0
  103. package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js +20 -0
  104. package/dist/node_modules/lucide-react/dist/esm/icons/check.js +13 -0
  105. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-down.js +15 -0
  106. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-right.js +15 -0
  107. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-up.js +13 -0
  108. package/dist/node_modules/lucide-react/dist/esm/icons/circle-alert.js +17 -0
  109. package/dist/node_modules/lucide-react/dist/esm/icons/circle-check.js +16 -0
  110. package/dist/node_modules/lucide-react/dist/esm/icons/circle-help.js +17 -0
  111. package/dist/node_modules/lucide-react/dist/esm/icons/circle.js +15 -0
  112. package/dist/node_modules/lucide-react/dist/esm/icons/info.js +17 -0
  113. package/dist/node_modules/lucide-react/dist/esm/icons/menu.js +17 -0
  114. package/dist/node_modules/lucide-react/dist/esm/icons/message-square.js +15 -0
  115. package/dist/node_modules/lucide-react/dist/esm/icons/minus.js +13 -0
  116. package/dist/node_modules/lucide-react/dist/esm/icons/panel-left.js +16 -0
  117. package/dist/node_modules/lucide-react/dist/esm/icons/triangle-alert.js +23 -0
  118. package/dist/node_modules/lucide-react/dist/esm/icons/user.js +16 -0
  119. package/dist/node_modules/lucide-react/dist/esm/icons/x.js +16 -0
  120. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.js +13 -0
  121. package/dist/node_modules/react-i18next/dist/es/context.js +18 -0
  122. package/dist/node_modules/react-i18next/dist/es/defaults.js +21 -0
  123. package/dist/node_modules/react-i18next/dist/es/i18nInstance.js +7 -0
  124. package/dist/node_modules/react-i18next/dist/es/initReactI18next.js +12 -0
  125. package/dist/node_modules/react-i18next/dist/es/unescape.js +27 -0
  126. package/dist/node_modules/react-i18next/dist/es/useTranslation.js +112 -0
  127. package/dist/node_modules/react-i18next/dist/es/utils.js +63 -0
  128. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +9 -0
  129. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +160 -0
  130. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +38 -0
  131. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +21 -0
  132. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +109 -0
  133. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +5 -0
  134. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +7 -0
  135. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +56 -0
  136. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +10 -0
  137. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +31 -0
  138. package/dist/node_modules/react-style-singleton/dist/es2015/component.js +19 -0
  139. package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +25 -0
  140. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +51 -0
  141. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +2493 -0
  142. package/dist/node_modules/tslib/tslib.es6.js +56 -0
  143. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +24 -0
  144. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +48 -0
  145. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +42 -0
  146. package/dist/node_modules/use-color-luminance/index.es.js +105 -0
  147. package/dist/node_modules/use-sidecar/dist/es2015/exports.js +21 -0
  148. package/dist/node_modules/use-sidecar/dist/es2015/medium.js +77 -0
  149. package/dist/plugin/typographies.ts +146 -152
  150. package/dist/style.min.css +1 -1
  151. package/dist/utils/cookie.js +9 -6
  152. 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 * as SelectPrimitive from '@radix-ui/react-select';
4
- import { ChevronDown, ChevronUp, Check } from 'lucide-react';
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 = SelectPrimitive.Root;
7
- const SelectValue = SelectPrimitive.Value;
8
- const SelectTrigger = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React.createElement(
9
- SelectPrimitive.Trigger,
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
- children,
19
- /* @__PURE__ */ React.createElement(SelectPrimitive.Icon, { asChild: true }, /* @__PURE__ */ React.createElement(ChevronDown, { className: "h-4 w-4 opacity-50" }))
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 = SelectPrimitive.Trigger.displayName;
22
- const SelectScrollUpButton = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
23
- SelectPrimitive.ScrollUpButton,
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
- /* @__PURE__ */ React.createElement(ChevronUp, { className: "h-4 w-4" })
35
+ ...props,
36
+ children: /* @__PURE__ */ jsx(ChevronUp, { className: "h-4 w-4" })
37
+ }
33
38
  ));
34
- SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
35
- const SelectScrollDownButton = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
36
- SelectPrimitive.ScrollDownButton,
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
- /* @__PURE__ */ React.createElement(ChevronDown, { className: "h-4 w-4" })
48
+ ...props,
49
+ children: /* @__PURE__ */ jsx(ChevronDown, { className: "h-4 w-4" })
50
+ }
46
51
  ));
47
- SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
48
- const SelectContent = React.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ React.createElement(SelectPrimitive.Portal, null, /* @__PURE__ */ React.createElement(
49
- SelectPrimitive.Content,
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
- /* @__PURE__ */ React.createElement(SelectScrollUpButton, null),
61
- /* @__PURE__ */ React.createElement(
62
- SelectPrimitive.Viewport,
63
- {
64
- className: cn(
65
- "p-1",
66
- position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
67
- )
68
- },
69
- children
70
- ),
71
- /* @__PURE__ */ React.createElement(SelectScrollDownButton, null)
72
- )));
73
- SelectContent.displayName = SelectPrimitive.Content.displayName;
74
- const SelectLabel = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
75
- SelectPrimitive.Label,
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 = SelectPrimitive.Label.displayName;
83
- const SelectItem = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React.createElement(
84
- SelectPrimitive.Item,
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
- /* @__PURE__ */ React.createElement("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center" }, /* @__PURE__ */ React.createElement(SelectPrimitive.ItemIndicator, null, /* @__PURE__ */ React.createElement(Check, { className: "h-4 w-4" }))),
94
- /* @__PURE__ */ React.createElement(SelectPrimitive.ItemText, null, children)
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 = SelectPrimitive.Item.displayName;
97
- const SelectSeparator = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
98
- SelectPrimitive.Separator,
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 = SelectPrimitive.Separator.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 * as SeparatorPrimitive from '@radix-ui/react-separator';
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__ */ React.createElement(
7
- SeparatorPrimitive.Root,
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 = SeparatorPrimitive.Root.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 * as SheetPrimitive from '@radix-ui/react-dialog';
4
- import { cva } from 'class-variance-authority';
5
- import { X } from 'lucide-react';
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 = SheetPrimitive.Root;
8
- const SheetPortal = SheetPrimitive.Portal;
9
- const SheetOverlay = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
10
- SheetPrimitive.Overlay,
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 = SheetPrimitive.Overlay.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__ */ React.createElement(SheetPortal, null, /* @__PURE__ */ React.createElement(SheetOverlay, null), /* @__PURE__ */ React.createElement(
38
- SheetPrimitive.Content,
39
- {
40
- ref,
41
- className: cn(sheetVariants({ side }), className),
42
- ...props
43
- },
44
- /* @__PURE__ */ React.createElement(SheetPrimitive.DialogTitle, null),
45
- children,
46
- /* @__PURE__ */ React.createElement(SheetPrimitive.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" }, /* @__PURE__ */ React.createElement(X, { className: "h-4 w-4" }), /* @__PURE__ */ React.createElement("span", { className: "sr-only" }, "Close"))
47
- )));
48
- SheetContent.displayName = SheetPrimitive.Content.displayName;
49
- const SheetTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
50
- SheetPrimitive.Title,
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 = SheetPrimitive.Title.displayName;
58
- const SheetDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
59
- SheetPrimitive.Description,
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 = SheetPrimitive.Description.displayName;
75
+ SheetDescription.displayName = Description.displayName;
67
76
 
68
77
  export { Sheet, SheetContent, SheetDescription, SheetOverlay, SheetPortal, SheetTitle };