@ledgerhq/lumen-ui-react 0.1.16 → 0.1.18

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 (219) hide show
  1. package/ai-rules/RULES.md +7 -1
  2. package/dist/index.js +148 -142
  3. package/dist/lib/Components/AddressInput/AddressInput.d.ts +1 -4
  4. package/dist/lib/Components/AddressInput/AddressInput.d.ts.map +1 -1
  5. package/dist/lib/Components/AddressInput/AddressInput.js +21 -21
  6. package/dist/lib/Components/AmountDisplay/AmountDisplay.d.ts +1 -4
  7. package/dist/lib/Components/AmountDisplay/AmountDisplay.d.ts.map +1 -1
  8. package/dist/lib/Components/AmountDisplay/AmountDisplay.js +32 -29
  9. package/dist/lib/Components/AmountInput/AmountInput.d.ts +1 -4
  10. package/dist/lib/Components/AmountInput/AmountInput.d.ts.map +1 -1
  11. package/dist/lib/Components/AmountInput/AmountInput.js +13 -14
  12. package/dist/lib/Components/Avatar/Avatar.d.ts +1 -4
  13. package/dist/lib/Components/Avatar/Avatar.d.ts.map +1 -1
  14. package/dist/lib/Components/Avatar/Avatar.js +8 -9
  15. package/dist/lib/Components/BaseInput/BaseInput.d.ts +1 -4
  16. package/dist/lib/Components/BaseInput/BaseInput.d.ts.map +1 -1
  17. package/dist/lib/Components/BaseInput/BaseInput.js +66 -73
  18. package/dist/lib/Components/Button/BaseButton.d.ts +1 -4
  19. package/dist/lib/Components/Button/BaseButton.d.ts.map +1 -1
  20. package/dist/lib/Components/Button/BaseButton.js +14 -15
  21. package/dist/lib/Components/Button/Button.d.ts +1 -4
  22. package/dist/lib/Components/Button/Button.d.ts.map +1 -1
  23. package/dist/lib/Components/Button/Button.js +6 -7
  24. package/dist/lib/Components/Card/Card.d.ts +10 -40
  25. package/dist/lib/Components/Card/Card.d.ts.map +1 -1
  26. package/dist/lib/Components/Card/Card.js +115 -134
  27. package/dist/lib/Components/CardButton/CardButton.d.ts +1 -4
  28. package/dist/lib/Components/CardButton/CardButton.d.ts.map +1 -1
  29. package/dist/lib/Components/CardButton/CardButton.js +10 -11
  30. package/dist/lib/Components/Checkbox/Checkbox.d.ts +1 -4
  31. package/dist/lib/Components/Checkbox/Checkbox.d.ts.map +1 -1
  32. package/dist/lib/Components/Checkbox/Checkbox.js +2 -3
  33. package/dist/lib/Components/ContentBanner/ContentBanner.d.ts +4 -16
  34. package/dist/lib/Components/ContentBanner/ContentBanner.d.ts.map +1 -1
  35. package/dist/lib/Components/ContentBanner/ContentBanner.js +48 -54
  36. package/dist/lib/Components/DataTable/DataTable.d.ts +3 -12
  37. package/dist/lib/Components/DataTable/DataTable.d.ts.map +1 -1
  38. package/dist/lib/Components/DataTable/DataTable.js +84 -97
  39. package/dist/lib/Components/Dialog/Dialog.d.ts +3 -12
  40. package/dist/lib/Components/Dialog/Dialog.d.ts.map +1 -1
  41. package/dist/lib/Components/Dialog/Dialog.js +44 -50
  42. package/dist/lib/Components/Dialog/DialogHeader/DialogHeader.d.ts +1 -4
  43. package/dist/lib/Components/Dialog/DialogHeader/DialogHeader.d.ts.map +1 -1
  44. package/dist/lib/Components/Dialog/DialogHeader/DialogHeader.js +31 -34
  45. package/dist/lib/Components/Divider/Divider.d.ts +1 -4
  46. package/dist/lib/Components/Divider/Divider.d.ts.map +1 -1
  47. package/dist/lib/Components/Divider/Divider.js +10 -11
  48. package/dist/lib/Components/Icon/Icon.d.ts +1 -4
  49. package/dist/lib/Components/Icon/Icon.d.ts.map +1 -1
  50. package/dist/lib/Components/Icon/Icon.js +6 -7
  51. package/dist/lib/Components/IconButton/IconButton.d.ts +1 -4
  52. package/dist/lib/Components/IconButton/IconButton.d.ts.map +1 -1
  53. package/dist/lib/Components/IconButton/IconButton.js +5 -6
  54. package/dist/lib/Components/InteractiveIcon/InteractiveIcon.d.ts +3 -11
  55. package/dist/lib/Components/InteractiveIcon/InteractiveIcon.d.ts.map +1 -1
  56. package/dist/lib/Components/InteractiveIcon/InteractiveIcon.js +24 -22
  57. package/dist/lib/Components/InteractiveIcon/types.d.ts +14 -9
  58. package/dist/lib/Components/InteractiveIcon/types.d.ts.map +1 -1
  59. package/dist/lib/Components/Link/Link.d.ts +1 -4
  60. package/dist/lib/Components/Link/Link.d.ts.map +1 -1
  61. package/dist/lib/Components/Link/Link.js +13 -14
  62. package/dist/lib/Components/ListItem/ListItem.d.ts +7 -28
  63. package/dist/lib/Components/ListItem/ListItem.d.ts.map +1 -1
  64. package/dist/lib/Components/ListItem/ListItem.js +60 -63
  65. package/dist/lib/Components/MediaBanner/MediaBanner.d.ts +3 -12
  66. package/dist/lib/Components/MediaBanner/MediaBanner.d.ts.map +1 -1
  67. package/dist/lib/Components/MediaBanner/MediaBanner.js +39 -43
  68. package/dist/lib/Components/MediaCard/MediaCard.d.ts +2 -8
  69. package/dist/lib/Components/MediaCard/MediaCard.d.ts.map +1 -1
  70. package/dist/lib/Components/MediaCard/MediaCard.js +38 -40
  71. package/dist/lib/Components/MediaImage/MediaImage.d.ts +16 -0
  72. package/dist/lib/Components/MediaImage/MediaImage.d.ts.map +1 -0
  73. package/dist/lib/Components/MediaImage/MediaImage.js +74 -0
  74. package/dist/lib/Components/MediaImage/index.d.ts +3 -0
  75. package/dist/lib/Components/MediaImage/index.d.ts.map +1 -0
  76. package/dist/lib/Components/MediaImage/types.d.ts +38 -0
  77. package/dist/lib/Components/MediaImage/types.d.ts.map +1 -0
  78. package/dist/lib/Components/Menu/Menu.d.ts +11 -38
  79. package/dist/lib/Components/Menu/Menu.d.ts.map +1 -1
  80. package/dist/lib/Components/Menu/Menu.js +100 -116
  81. package/dist/lib/Components/NavBar/CoinCapsule.d.ts +1 -4
  82. package/dist/lib/Components/NavBar/CoinCapsule.d.ts.map +1 -1
  83. package/dist/lib/Components/NavBar/CoinCapsule.js +8 -9
  84. package/dist/lib/Components/NavBar/NavBar.d.ts +7 -22
  85. package/dist/lib/Components/NavBar/NavBar.d.ts.map +1 -1
  86. package/dist/lib/Components/NavBar/NavBar.js +25 -34
  87. package/dist/lib/Components/PageIndicator/PageIndicator.d.ts +1 -4
  88. package/dist/lib/Components/PageIndicator/PageIndicator.d.ts.map +1 -1
  89. package/dist/lib/Components/PageIndicator/PageIndicator.js +15 -16
  90. package/dist/lib/Components/Popover/Popover.d.ts +1 -4
  91. package/dist/lib/Components/Popover/Popover.d.ts.map +1 -1
  92. package/dist/lib/Components/Popover/Popover.js +5 -7
  93. package/dist/lib/Components/SearchInput/SearchInput.d.ts +1 -4
  94. package/dist/lib/Components/SearchInput/SearchInput.d.ts.map +1 -1
  95. package/dist/lib/Components/SearchInput/SearchInput.js +23 -20
  96. package/dist/lib/Components/SearchInput/types.d.ts +1 -1
  97. package/dist/lib/Components/SearchInput/types.d.ts.map +1 -1
  98. package/dist/lib/Components/SegmentedControl/SegmentedControl.d.ts +0 -6
  99. package/dist/lib/Components/SegmentedControl/SegmentedControl.d.ts.map +1 -1
  100. package/dist/lib/Components/SegmentedControl/SegmentedControl.js +19 -21
  101. package/dist/lib/Components/Select/Select.d.ts +13 -28
  102. package/dist/lib/Components/Select/Select.d.ts.map +1 -1
  103. package/dist/lib/Components/Select/Select.js +339 -207
  104. package/dist/lib/Components/Select/SelectContext.d.ts +3 -1
  105. package/dist/lib/Components/Select/SelectContext.d.ts.map +1 -1
  106. package/dist/lib/Components/Select/index.d.ts +1 -1
  107. package/dist/lib/Components/Select/index.d.ts.map +1 -1
  108. package/dist/lib/Components/Select/types.d.ts +171 -140
  109. package/dist/lib/Components/Select/types.d.ts.map +1 -1
  110. package/dist/lib/Components/Select/useSelectItems/index.d.ts +2 -0
  111. package/dist/lib/Components/Select/useSelectItems/index.d.ts.map +1 -0
  112. package/dist/lib/Components/Select/useSelectItems/useSelectItems.d.ts +30 -0
  113. package/dist/lib/Components/Select/useSelectItems/useSelectItems.d.ts.map +1 -0
  114. package/dist/lib/Components/Select/useSelectItems/useSelectItems.js +42 -0
  115. package/dist/lib/Components/Select/utils/groupItems.d.ts +13 -0
  116. package/dist/lib/Components/Select/utils/groupItems.d.ts.map +1 -0
  117. package/dist/lib/Components/Select/utils/groupItems.js +16 -0
  118. package/dist/lib/Components/Select/utils/index.d.ts +2 -0
  119. package/dist/lib/Components/Select/utils/index.d.ts.map +1 -0
  120. package/dist/lib/Components/SideBar/SideBar.d.ts +5 -20
  121. package/dist/lib/Components/SideBar/SideBar.d.ts.map +1 -1
  122. package/dist/lib/Components/SideBar/SideBar.js +44 -53
  123. package/dist/lib/Components/Skeleton/Skeleton.d.ts +1 -4
  124. package/dist/lib/Components/Skeleton/Skeleton.d.ts.map +1 -1
  125. package/dist/lib/Components/Skeleton/Skeleton.js +15 -22
  126. package/dist/lib/Components/Spot/Spot.d.ts +1 -4
  127. package/dist/lib/Components/Spot/Spot.d.ts.map +1 -1
  128. package/dist/lib/Components/Spot/Spot.js +11 -12
  129. package/dist/lib/Components/Stepper/Stepper.d.ts +1 -4
  130. package/dist/lib/Components/Stepper/Stepper.d.ts.map +1 -1
  131. package/dist/lib/Components/Stepper/Stepper.js +10 -11
  132. package/dist/lib/Components/Subheader/Subheader.d.ts +1 -4
  133. package/dist/lib/Components/Subheader/Subheader.d.ts.map +1 -1
  134. package/dist/lib/Components/Subheader/Subheader.js +14 -15
  135. package/dist/lib/Components/Subheader/types.d.ts +1 -1
  136. package/dist/lib/Components/Subheader/types.d.ts.map +1 -1
  137. package/dist/lib/Components/Switch/Switch.d.ts +1 -4
  138. package/dist/lib/Components/Switch/Switch.d.ts.map +1 -1
  139. package/dist/lib/Components/Switch/Switch.js +2 -3
  140. package/dist/lib/Components/Table/Table.d.ts +16 -64
  141. package/dist/lib/Components/Table/Table.d.ts.map +1 -1
  142. package/dist/lib/Components/Table/Table.js +146 -176
  143. package/dist/lib/Components/Tag/Tag.d.ts +1 -4
  144. package/dist/lib/Components/Tag/Tag.d.ts.map +1 -1
  145. package/dist/lib/Components/Tag/Tag.js +10 -11
  146. package/dist/lib/Components/TextInput/TextInput.d.ts +1 -4
  147. package/dist/lib/Components/TextInput/TextInput.d.ts.map +1 -1
  148. package/dist/lib/Components/TextInput/TextInput.js +4 -5
  149. package/dist/lib/Components/Tile/Tile.d.ts +6 -24
  150. package/dist/lib/Components/Tile/Tile.d.ts.map +1 -1
  151. package/dist/lib/Components/Tile/Tile.js +58 -71
  152. package/dist/lib/Components/TileButton/TileButton.d.ts +1 -4
  153. package/dist/lib/Components/TileButton/TileButton.d.ts.map +1 -1
  154. package/dist/lib/Components/TileButton/TileButton.js +12 -13
  155. package/dist/lib/Components/TriggerButton/TriggerButton.d.ts +1 -4
  156. package/dist/lib/Components/TriggerButton/TriggerButton.d.ts.map +1 -1
  157. package/dist/lib/Components/TriggerButton/TriggerButton.js +11 -12
  158. package/dist/lib/Components/index.d.ts +1 -0
  159. package/dist/lib/Components/index.d.ts.map +1 -1
  160. package/dist/libs/utils-shared/dist/index.js +151 -124
  161. package/dist/node_modules/@base-ui/react/esm/combobox/chips/ComboboxChipsContext.js +10 -0
  162. package/dist/node_modules/@base-ui/react/esm/combobox/collection/ComboboxCollection.js +17 -0
  163. package/dist/node_modules/@base-ui/react/esm/combobox/collection/GroupCollectionContext.js +23 -0
  164. package/dist/node_modules/@base-ui/react/esm/combobox/empty/ComboboxEmpty.js +26 -0
  165. package/dist/node_modules/@base-ui/react/esm/combobox/group/ComboboxGroup.js +34 -0
  166. package/dist/node_modules/@base-ui/react/esm/combobox/group/ComboboxGroupContext.js +14 -0
  167. package/dist/node_modules/@base-ui/react/esm/combobox/group-label/ComboboxGroupLabel.js +27 -0
  168. package/dist/node_modules/@base-ui/react/esm/combobox/input/ComboboxInput.js +221 -0
  169. package/dist/node_modules/@base-ui/react/esm/combobox/item/ComboboxItem.js +113 -0
  170. package/dist/node_modules/@base-ui/react/esm/combobox/item/ComboboxItemContext.js +14 -0
  171. package/dist/node_modules/@base-ui/react/esm/combobox/item-indicator/ComboboxItemIndicator.js +52 -0
  172. package/dist/node_modules/@base-ui/react/esm/combobox/list/ComboboxList.js +65 -0
  173. package/dist/node_modules/@base-ui/react/esm/combobox/popup/ComboboxPopup.js +76 -0
  174. package/dist/node_modules/@base-ui/react/esm/combobox/portal/ComboboxPortal.js +24 -0
  175. package/dist/node_modules/@base-ui/react/esm/combobox/portal/ComboboxPortalContext.js +14 -0
  176. package/dist/node_modules/@base-ui/react/esm/combobox/positioner/ComboboxPositioner.js +102 -0
  177. package/dist/node_modules/@base-ui/react/esm/combobox/positioner/ComboboxPositionerContext.js +14 -0
  178. package/dist/node_modules/@base-ui/react/esm/combobox/root/AriaCombobox.js +596 -0
  179. package/dist/node_modules/@base-ui/react/esm/combobox/root/ComboboxRoot.js +23 -0
  180. package/dist/node_modules/@base-ui/react/esm/combobox/root/ComboboxRootContext.js +41 -0
  181. package/dist/node_modules/@base-ui/react/esm/combobox/root/utils/constants.js +8 -0
  182. package/dist/node_modules/@base-ui/react/esm/combobox/root/utils/index.js +23 -0
  183. package/dist/node_modules/@base-ui/react/esm/combobox/root/utils/useFilter.js +43 -0
  184. package/dist/node_modules/@base-ui/react/esm/combobox/row/ComboboxRowContext.js +10 -0
  185. package/dist/node_modules/@base-ui/react/esm/combobox/store.js +74 -0
  186. package/dist/node_modules/@base-ui/react/esm/combobox/trigger/ComboboxTrigger.js +135 -0
  187. package/dist/node_modules/@base-ui/react/esm/combobox/utils/ComboboxInternalDismissButton.js +32 -0
  188. package/dist/node_modules/@base-ui/react/esm/combobox/utils/stateAttributesMapping.js +15 -0
  189. package/dist/node_modules/@base-ui/react/esm/combobox/value/ComboboxValue.js +19 -0
  190. package/dist/node_modules/@base-ui/react/esm/composite/list/CompositeList.js +81 -0
  191. package/dist/node_modules/@base-ui/react/esm/composite/list/CompositeListContext.js +23 -0
  192. package/dist/node_modules/@base-ui/react/esm/composite/list/useCompositeListItem.js +55 -0
  193. package/dist/node_modules/@base-ui/react/esm/field/control/FieldControlDataAttributes.js +6 -0
  194. package/dist/node_modules/@base-ui/react/esm/field/root/FieldRootContext.js +53 -0
  195. package/dist/node_modules/@base-ui/react/esm/field/useField.js +51 -0
  196. package/dist/node_modules/@base-ui/react/esm/field/utils/constants.js +37 -0
  197. package/dist/node_modules/@base-ui/react/esm/field/utils/getCombinedFieldValidityData.js +12 -0
  198. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useListNavigation.js +287 -0
  199. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useTypeahead.js +71 -0
  200. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/composite.js +218 -4
  201. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/constants.js +7 -3
  202. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/element.js +3 -3
  203. package/dist/node_modules/@base-ui/react/esm/form/FormContext.js +23 -0
  204. package/dist/node_modules/@base-ui/react/esm/labelable-provider/LabelableContext.js +19 -0
  205. package/dist/node_modules/@base-ui/react/esm/labelable-provider/useLabelableId.js +44 -0
  206. package/dist/node_modules/@base-ui/react/esm/utils/constants.js +11 -8
  207. package/dist/node_modules/@base-ui/react/esm/utils/createBaseUIEventDetails.js +22 -13
  208. package/dist/node_modules/@base-ui/react/esm/utils/getPseudoElementBounds.js +18 -0
  209. package/dist/node_modules/@base-ui/react/esm/utils/itemEquality.js +20 -0
  210. package/dist/node_modules/@base-ui/react/esm/utils/reason-parts.js +13 -6
  211. package/dist/node_modules/@base-ui/react/esm/utils/resolveAriaLabelledBy.js +6 -0
  212. package/dist/node_modules/@base-ui/react/esm/utils/resolveValueLabel.js +73 -0
  213. package/dist/node_modules/@base-ui/react/esm/utils/serializeValue.js +14 -0
  214. package/dist/node_modules/@base-ui/utils/esm/detectBrowser.js +8 -7
  215. package/dist/node_modules/@base-ui/utils/esm/empty.js +3 -2
  216. package/dist/node_modules/@base-ui/utils/esm/useControlled.js +31 -0
  217. package/dist/node_modules/@base-ui/utils/esm/visuallyHidden.js +5 -1
  218. package/dist/package.json +1 -2
  219. package/package.json +1 -2
@@ -1,93 +1,87 @@
1
- import { jsx as o, jsxs as m } from "react/jsx-runtime";
2
- import { cn as r } from "../../../libs/utils-shared/dist/index.js";
3
- import { useCommonTranslation as c } from "../../../i18n/useCommonTranslation.js";
1
+ import { jsx as r, jsxs as c } from "react/jsx-runtime";
2
+ import { cn as a } from "../../../libs/utils-shared/dist/index.js";
3
+ import { useCommonTranslation as m } from "../../../i18n/useCommonTranslation.js";
4
4
  import { Close as p } from "../../Symbols/Icons/Close.js";
5
5
  import { InteractiveIcon as d } from "../InteractiveIcon/InteractiveIcon.js";
6
- const f = ({
7
- ref: n,
8
- children: t,
9
- className: a,
6
+ const C = ({
7
+ ref: t,
8
+ children: n,
9
+ className: o,
10
10
  ...e
11
- }) => /* @__PURE__ */ o(
11
+ }) => /* @__PURE__ */ r(
12
12
  "div",
13
13
  {
14
- ref: n,
15
- className: r("flex min-w-0 flex-1 flex-col gap-4", a),
14
+ ref: t,
15
+ className: a("flex min-w-0 flex-1 flex-col gap-4", o),
16
16
  ...e,
17
- children: t
17
+ children: n
18
18
  }
19
- );
20
- f.displayName = "ContentBannerContent";
21
- const u = ({
22
- ref: n,
23
- children: t,
24
- className: a,
19
+ ), N = ({
20
+ ref: t,
21
+ children: n,
22
+ className: o,
25
23
  ...e
26
- }) => /* @__PURE__ */ o(
24
+ }) => /* @__PURE__ */ r(
27
25
  "div",
28
26
  {
29
- ref: n,
30
- className: r("line-clamp-1 body-2-semi-bold text-base", a),
27
+ ref: t,
28
+ className: a("line-clamp-1 body-2-semi-bold text-base", o),
31
29
  ...e,
32
- children: t
30
+ children: n
33
31
  }
34
- );
35
- u.displayName = "ContentBannerTitle";
36
- const C = ({
37
- ref: n,
38
- children: t,
39
- className: a,
32
+ ), g = ({
33
+ ref: t,
34
+ children: n,
35
+ className: o,
40
36
  ...e
41
- }) => /* @__PURE__ */ o(
37
+ }) => /* @__PURE__ */ r(
42
38
  "div",
43
39
  {
44
- ref: n,
45
- className: r("line-clamp-2 body-3 text-muted", a),
40
+ ref: t,
41
+ className: a("line-clamp-2 body-3 text-muted", o),
46
42
  ...e,
47
- children: t
43
+ children: n
48
44
  }
49
- );
50
- C.displayName = "ContentBannerDescription";
51
- const b = ({
52
- ref: n,
53
- children: t,
54
- className: a,
45
+ ), y = ({
46
+ ref: t,
47
+ children: n,
48
+ className: o,
55
49
  onClose: e,
56
- closeAriaLabel: i,
57
- ...s
50
+ closeAriaLabel: s,
51
+ ...i
58
52
  }) => {
59
- const { t: l } = c();
60
- return /* @__PURE__ */ m(
53
+ const { t: l } = m();
54
+ return /* @__PURE__ */ c(
61
55
  "div",
62
56
  {
63
- ref: n,
64
- className: r(
57
+ ref: t,
58
+ className: a(
65
59
  "relative flex w-full items-center gap-12 rounded-md bg-surface p-12",
66
60
  e && "pr-48",
67
- a
61
+ o
68
62
  ),
69
- ...s,
63
+ ...i,
70
64
  children: [
71
- t,
72
- e && /* @__PURE__ */ o(
65
+ n,
66
+ e && /* @__PURE__ */ r(
73
67
  d,
74
68
  {
75
69
  type: "button",
76
70
  iconType: "stroked",
71
+ icon: p,
72
+ size: 16,
77
73
  className: "absolute top-8 right-8",
78
74
  onClick: () => e(),
79
- "aria-label": i || l("components.banner.closeAriaLabel"),
80
- children: /* @__PURE__ */ o(p, { size: 16 })
75
+ "aria-label": s || l("components.banner.closeAriaLabel")
81
76
  }
82
77
  )
83
78
  ]
84
79
  }
85
80
  );
86
81
  };
87
- b.displayName = "ContentBanner";
88
82
  export {
89
- b as ContentBanner,
90
- f as ContentBannerContent,
91
- C as ContentBannerDescription,
92
- u as ContentBannerTitle
83
+ y as ContentBanner,
84
+ C as ContentBannerContent,
85
+ g as ContentBannerDescription,
86
+ N as ContentBannerTitle
93
87
  };
@@ -11,10 +11,7 @@ import { DataTableProps, DataTableRootProps } from './types';
11
11
  * <DataTable />
12
12
  * </DataTableRoot>
13
13
  */
14
- export declare const DataTableRoot: {
15
- <TData extends RowData>({ table, appearance, paginationMode, loading, onScrollBottom, onRowClick, groupBy, renderGroupHeader, hideHeader, children, className, ref, ...props }: DataTableRootProps<TData>): import("react/jsx-runtime").JSX.Element;
16
- displayName: string;
17
- };
14
+ export declare const DataTableRoot: <TData extends RowData>({ table, appearance, paginationMode, loading, onScrollBottom, onRowClick, groupBy, renderGroupHeader, hideHeader, children, className, ref, ...props }: DataTableRootProps<TData>) => import("react/jsx-runtime").JSX.Element;
18
15
  /**
19
16
  * Renders the full table (header + body) from the TanStack table instance
20
17
  * provided by `DataTableRoot`. Internally composes the pure-UI Table building blocks.
@@ -24,16 +21,10 @@ export declare const DataTableRoot: {
24
21
  * <DataTable />
25
22
  * </DataTableRoot>
26
23
  */
27
- export declare const DataTable: {
28
- ({ className, ref, ...props }: DataTableProps): import("react/jsx-runtime").JSX.Element;
29
- displayName: string;
30
- };
24
+ export declare const DataTable: ({ className, ref, ...props }: DataTableProps) => import("react/jsx-runtime").JSX.Element;
31
25
  /**
32
26
  * A search input that connects to the TanStack table's `globalFilter` state
33
27
  * via the `DataTableRoot` context. No external state management is required.
34
28
  */
35
- export declare const DataTableGlobalSearchInput: {
36
- ({ onChange, ...props }: SearchInputProps): import("react/jsx-runtime").JSX.Element;
37
- displayName: string;
38
- };
29
+ export declare const DataTableGlobalSearchInput: ({ onChange, ...props }: SearchInputProps) => import("react/jsx-runtime").JSX.Element;
39
30
  //# sourceMappingURL=DataTable.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DataTable.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/DataTable/DataTable.tsx"],"names":[],"mappings":"AACA,OAAO,EAGL,OAAO,EAER,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAe,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAe/D,OAAO,EAGL,cAAc,EACd,kBAAkB,EACnB,MAAM,SAAS,CAAC;AAcjB;;;;;;;;;GASG;AACH,eAAO,MAAM,aAAa;KAAI,KAAK,SAAS,OAAO,0JAchD,kBAAkB,CAAC,KAAK,CAAC;;CAoB3B,CAAC;AA2DF;;;;;;;;GAQG;AACH,eAAO,MAAM,SAAS;mCAAkC,cAAc;;CA6BrE,CAAC;AA0HF;;;GAGG;AACH,eAAO,MAAM,0BAA0B;6BAGpC,gBAAgB;;CAqBlB,CAAC"}
1
+ {"version":3,"file":"DataTable.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/DataTable/DataTable.tsx"],"names":[],"mappings":"AACA,OAAO,EAGL,OAAO,EAER,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAe,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAe/D,OAAO,EAGL,cAAc,EACd,kBAAkB,EACnB,MAAM,SAAS,CAAC;AAcjB;;;;;;;;;GASG;AACH,eAAO,MAAM,aAAa,GAAI,KAAK,SAAS,OAAO,EAAE,wJAclD,kBAAkB,CAAC,KAAK,CAAC,4CAoB3B,CAAC;AAyDF;;;;;;;;GAQG;AACH,eAAO,MAAM,SAAS,GAAI,8BAA8B,cAAc,4CA6BrE,CAAC;AAsHF;;;GAGG;AACH,eAAO,MAAM,0BAA0B,GAAI,wBAGxC,gBAAgB,4CAqBlB,CAAC"}
@@ -1,61 +1,59 @@
1
- import { jsx as l, jsxs as u } from "react/jsx-runtime";
2
- import { createSafeContext as y, cn as C } from "../../../libs/utils-shared/dist/index.js";
1
+ import { jsx as n, jsxs as d } from "react/jsx-runtime";
2
+ import { createSafeContext as h, cn as w } from "../../../libs/utils-shared/dist/index.js";
3
3
  import { flexRender as m } from "@tanstack/react-table";
4
- import { useCallback as x, Fragment as N } from "react";
5
- import { TableRoot as B, Table as S, TableLoadingRow as k, TableHeader as H, TableHeaderRow as G, TableHeaderCell as v, TableSortButton as q, TableBody as T, TableGroupHeaderRow as I, TableRow as F, TableCell as M } from "../Table/Table.js";
6
- import { SearchInput as j } from "../SearchInput/SearchInput.js";
7
- const [P, d] = y("DataTableContext"), V = ({
8
- table: n,
4
+ import { useCallback as C, Fragment as R } from "react";
5
+ import { TableRoot as x, Table as B, TableLoadingRow as k, TableHeader as y, TableHeaderRow as N, TableHeaderCell as S, TableSortButton as H, TableBody as b, TableGroupHeaderRow as v, TableRow as G, TableCell as q } from "../Table/Table.js";
6
+ import { SearchInput as I } from "../SearchInput/SearchInput.js";
7
+ const [F, u] = h("DataTableContext"), O = ({
8
+ table: l,
9
9
  appearance: r = "no-background",
10
- paginationMode: o = "none",
10
+ paginationMode: a = "none",
11
11
  loading: e = !1,
12
- onScrollBottom: a,
12
+ onScrollBottom: o,
13
13
  onRowClick: t,
14
14
  groupBy: c,
15
15
  renderGroupHeader: i,
16
16
  hideHeader: s = !1,
17
- children: h,
18
- className: f,
19
- ref: w,
20
- ...R
21
- }) => /* @__PURE__ */ l(
22
- P,
17
+ children: T,
18
+ className: p,
19
+ ref: D,
20
+ ...f
21
+ }) => /* @__PURE__ */ n(
22
+ F,
23
23
  {
24
24
  value: {
25
25
  hideHeader: s,
26
- paginationMode: o,
27
- table: n,
26
+ paginationMode: a,
27
+ table: l,
28
28
  appearance: r,
29
29
  loading: e,
30
- onScrollBottom: a,
30
+ onScrollBottom: o,
31
31
  onRowClick: t,
32
32
  groupBy: c,
33
33
  renderGroupHeader: i
34
34
  },
35
- children: /* @__PURE__ */ l("div", { ref: w, className: C("flex flex-col", f), ...R, children: h })
35
+ children: /* @__PURE__ */ n("div", { ref: D, className: w("flex flex-col", p), ...f, children: T })
36
36
  }
37
- );
38
- V.displayName = "DataTableRoot";
39
- const p = ({
40
- className: n,
37
+ ), M = ({
38
+ className: l,
41
39
  ref: r,
42
- ...o
40
+ ...a
43
41
  }) => {
44
- const { table: e } = d({
42
+ const { table: e } = u({
45
43
  consumerName: "DataTableHeader",
46
44
  contextRequired: !0
47
45
  });
48
- return /* @__PURE__ */ l(H, { ref: r, className: n, ...o, children: e.getHeaderGroups().map((a) => /* @__PURE__ */ l(G, { children: a.headers.map((t) => {
46
+ return /* @__PURE__ */ n(y, { ref: r, className: l, ...a, children: e.getHeaderGroups().map((o) => /* @__PURE__ */ n(N, { children: o.headers.map((t) => {
49
47
  const c = t.column.columnDef.meta;
50
- return /* @__PURE__ */ l(
51
- v,
48
+ return /* @__PURE__ */ n(
49
+ S,
52
50
  {
53
51
  align: c?.align,
54
52
  hideBelow: c?.hideBelow,
55
53
  className: c?.className,
56
54
  trailingContent: c?.headerTrailingContent,
57
- children: t.isPlaceholder ? null : t.column.getCanSort() ? /* @__PURE__ */ l(
58
- q,
55
+ children: t.isPlaceholder ? null : t.column.getCanSort() ? /* @__PURE__ */ n(
56
+ H,
59
57
  {
60
58
  sortDirection: t.column.getIsSorted() || void 0,
61
59
  onClick: t.column.getToggleSortingHandler(),
@@ -72,90 +70,82 @@ const p = ({
72
70
  },
73
71
  t.id
74
72
  );
75
- }) }, a.id)) });
76
- };
77
- p.displayName = "DataTableHeader";
78
- const z = ({ className: n, ref: r, ...o }) => {
73
+ }) }, o.id)) });
74
+ }, Q = ({ className: l, ref: r, ...a }) => {
79
75
  const {
80
76
  appearance: e,
81
- paginationMode: a,
77
+ paginationMode: o,
82
78
  hideHeader: t,
83
79
  loading: c,
84
80
  onScrollBottom: i,
85
81
  groupBy: s
86
- } = d({
82
+ } = u({
87
83
  consumerName: "DataTable",
88
84
  contextRequired: !0
89
85
  });
90
- return /* @__PURE__ */ u(
91
- B,
86
+ return /* @__PURE__ */ d(
87
+ x,
92
88
  {
93
89
  ref: r,
94
90
  appearance: e,
95
91
  loading: c,
96
92
  onScrollBottom: i,
97
- className: n,
98
- ...o,
93
+ className: l,
94
+ ...a,
99
95
  children: [
100
- /* @__PURE__ */ u(S, { children: [
101
- !t && /* @__PURE__ */ l(p, {}),
102
- s ? /* @__PURE__ */ l(D, {}) : /* @__PURE__ */ l(g, {})
96
+ /* @__PURE__ */ d(B, { children: [
97
+ !t && /* @__PURE__ */ n(M, {}),
98
+ s ? /* @__PURE__ */ n(V, {}) : /* @__PURE__ */ n(j, {})
103
99
  ] }),
104
- a === "infinite-scroll" && /* @__PURE__ */ l(k, {})
100
+ o === "infinite-scroll" && /* @__PURE__ */ n(k, {})
105
101
  ]
106
102
  }
107
103
  );
108
- };
109
- z.displayName = "DataTable";
110
- const g = ({ className: n, ref: r, ...o }) => {
111
- const { table: e } = d({
104
+ }, j = ({ className: l, ref: r, ...a }) => {
105
+ const { table: e } = u({
112
106
  consumerName: "DataTableBody",
113
107
  contextRequired: !0
114
108
  });
115
- return /* @__PURE__ */ l(T, { ref: r, className: n, ...o, children: e.getRowModel().rows.map((a) => /* @__PURE__ */ l(b, { row: a }, a.id)) });
116
- };
117
- g.displayName = "DataTableBody";
118
- const L = (n, r) => {
119
- const o = [];
109
+ return /* @__PURE__ */ n(b, { ref: r, className: l, ...a, children: e.getRowModel().rows.map((o) => /* @__PURE__ */ n(g, { row: o }, o.id)) });
110
+ }, P = (l, r) => {
111
+ const a = [];
120
112
  let e = null;
121
- for (const a of n) {
122
- const t = r(a);
123
- (!e || e.key !== t) && (e = { key: t, rows: [], count: 0 }, o.push(e)), e.rows.push(a), e.count++;
113
+ for (const o of l) {
114
+ const t = r(o);
115
+ (!e || e.key !== t) && (e = { key: t, rows: [], count: 0 }, a.push(e)), e.rows.push(o), e.count++;
124
116
  }
125
- return o;
126
- }, D = ({
127
- className: n,
117
+ return a;
118
+ }, V = ({
119
+ className: l,
128
120
  ref: r,
129
- ...o
121
+ ...a
130
122
  }) => {
131
- const { table: e, groupBy: a, renderGroupHeader: t } = d({
123
+ const { table: e, groupBy: o, renderGroupHeader: t } = u({
132
124
  consumerName: "DataTableGroupedBody",
133
125
  contextRequired: !0
134
- }), c = L(e.getRowModel().rows, a);
135
- return /* @__PURE__ */ l(T, { ref: r, className: n, ...o, children: c.map((i) => /* @__PURE__ */ u(N, { children: [
136
- /* @__PURE__ */ l(I, { colSpan: i.rows[0].getVisibleCells().length, children: t ? t({ row: i.rows[0], count: i.count }) : i.key }),
137
- i.rows.map((s) => /* @__PURE__ */ l(b, { row: s }, s.id))
126
+ }), c = P(e.getRowModel().rows, o);
127
+ return /* @__PURE__ */ n(b, { ref: r, className: l, ...a, children: c.map((i) => /* @__PURE__ */ d(R, { children: [
128
+ /* @__PURE__ */ n(v, { colSpan: i.rows[0].getVisibleCells().length, children: t ? t({ row: i.rows[0], count: i.count }) : i.key }),
129
+ i.rows.map((s) => /* @__PURE__ */ n(g, { row: s }, s.id))
138
130
  ] }, i.key)) });
139
- };
140
- D.displayName = "DataTableGroupedBody";
141
- const b = ({ row: n }) => {
142
- const { onRowClick: r } = d({
131
+ }, g = ({ row: l }) => {
132
+ const { onRowClick: r } = u({
143
133
  consumerName: "DataTableRow",
144
134
  contextRequired: !0
145
- }), o = !!r;
146
- return /* @__PURE__ */ l(
147
- F,
135
+ }), a = !!r;
136
+ return /* @__PURE__ */ n(
137
+ G,
148
138
  {
149
- clickable: o,
150
- onClick: o ? () => r?.(n) : void 0,
151
- children: n.getVisibleCells().map((e) => {
152
- const a = e.column.columnDef.meta;
153
- return /* @__PURE__ */ l(
154
- M,
139
+ clickable: a,
140
+ onClick: a ? () => r?.(l) : void 0,
141
+ children: l.getVisibleCells().map((e) => {
142
+ const o = e.column.columnDef.meta;
143
+ return /* @__PURE__ */ n(
144
+ q,
155
145
  {
156
- align: a?.align,
157
- hideBelow: a?.hideBelow,
158
- className: a?.className,
146
+ align: o?.align,
147
+ hideBelow: o?.hideBelow,
148
+ className: o?.className,
159
149
  children: m(e.column.columnDef.cell, e.getContext())
160
150
  },
161
151
  e.id
@@ -163,33 +153,30 @@ const b = ({ row: n }) => {
163
153
  })
164
154
  }
165
155
  );
166
- };
167
- b.displayName = "DataTableRow";
168
- const A = ({
169
- onChange: n,
156
+ }, U = ({
157
+ onChange: l,
170
158
  ...r
171
159
  }) => {
172
- const { table: o } = d({
160
+ const { table: a } = u({
173
161
  consumerName: "DataTableGlobalSearchInput",
174
162
  contextRequired: !0
175
- }), e = x(
176
- (a) => {
177
- o.setGlobalFilter(a.target.value), n?.(a);
163
+ }), e = C(
164
+ (o) => {
165
+ a.setGlobalFilter(o.target.value), l?.(o);
178
166
  },
179
- [o, n]
167
+ [a, l]
180
168
  );
181
- return /* @__PURE__ */ l(
182
- j,
169
+ return /* @__PURE__ */ n(
170
+ I,
183
171
  {
184
- value: o.getState().globalFilter ?? "",
172
+ value: a.getState().globalFilter ?? "",
185
173
  onChange: e,
186
174
  ...r
187
175
  }
188
176
  );
189
177
  };
190
- A.displayName = "DataTableGlobalSearchInput";
191
178
  export {
192
- z as DataTable,
193
- A as DataTableGlobalSearchInput,
194
- V as DataTableRoot
179
+ Q as DataTable,
180
+ U as DataTableGlobalSearchInput,
181
+ O as DataTableRoot
195
182
  };
@@ -99,10 +99,7 @@ export declare function DialogContent({ className, children, ...props }: DialogC
99
99
  * </DialogFooter>
100
100
  * </DialogContent>
101
101
  */
102
- export declare const DialogBody: {
103
- ({ ref, className, children, scrollbarWidth, style, ...props }: DialogBodyProps): import("react/jsx-runtime").JSX.Element;
104
- displayName: string;
105
- };
102
+ export declare const DialogBody: ({ ref, className, children, scrollbarWidth, style, ...props }: DialogBodyProps) => import("react/jsx-runtime").JSX.Element;
106
103
  /**
107
104
  * A sticky region inside the dialog body.
108
105
  *
@@ -120,10 +117,7 @@ export declare const DialogBody: {
120
117
  * <div>Scrollable content</div>
121
118
  * </DialogBody>
122
119
  */
123
- export declare const DialogBodyStickyContent: {
124
- ({ ref, className, children, ...props }: DialogBodyStickyContentProps): import("react/jsx-runtime").JSX.Element;
125
- displayName: string;
126
- };
120
+ export declare const DialogBodyStickyContent: ({ ref, className, children, ...props }: DialogBodyStickyContentProps) => import("react/jsx-runtime").JSX.Element;
127
121
  /**
128
122
  * The fixed footer area of the dialog.
129
123
  *
@@ -144,9 +138,6 @@ export declare const DialogBodyStickyContent: {
144
138
  * </DialogFooter>
145
139
  * </DialogContent>
146
140
  */
147
- export declare const DialogFooter: {
148
- ({ ref, className, children, ...props }: DialogFooterProps): import("react/jsx-runtime").JSX.Element;
149
- displayName: string;
150
- };
141
+ export declare const DialogFooter: ({ ref, className, children, ...props }: DialogFooterProps) => import("react/jsx-runtime").JSX.Element;
151
142
  export { DialogHeader };
152
143
  //# sourceMappingURL=Dialog.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Dialog/Dialog.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EACL,eAAe,EACf,4BAA4B,EAC5B,kBAAkB,EAClB,iBAAiB,EAGjB,WAAW,EACX,kBAAkB,EACnB,MAAM,SAAS,CAAC;AAwBjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAgB,MAAM,CAAC,EAAE,MAAc,EAAE,GAAG,KAAK,EAAE,EAAE,WAAW,2CAM/D;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,aAAa,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,2CAE7D;AAED,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAqDxD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,aAAa,CAAC,EAC5B,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,kBAAkB,2CAkBpB;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,UAAU;oEAOpB,eAAe;;CAqBjB,CAAC;AAGF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,uBAAuB;6CAKjC,4BAA4B;;CAW9B,CAAC;AAGF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,YAAY;6CAKtB,iBAAiB;;CAWnB,CAAC;AAGF,OAAO,EAAE,YAAY,EAAE,CAAC"}
1
+ {"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Dialog/Dialog.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EACL,eAAe,EACf,4BAA4B,EAC5B,kBAAkB,EAClB,iBAAiB,EAGjB,WAAW,EACX,kBAAkB,EACnB,MAAM,SAAS,CAAC;AAwBjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAgB,MAAM,CAAC,EAAE,MAAc,EAAE,GAAG,KAAK,EAAE,EAAE,WAAW,2CAM/D;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,aAAa,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,2CAE7D;AAED,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAoDxD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,aAAa,CAAC,EAC5B,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,kBAAkB,2CAkBpB;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,UAAU,GAAI,+DAOxB,eAAe,4CAqBjB,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,uBAAuB,GAAI,wCAKrC,4BAA4B,4CAW9B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,YAAY,GAAI,wCAK1B,iBAAiB,4CAWnB,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,CAAC"}
@@ -1,8 +1,8 @@
1
- import { jsx as o, jsxs as m } from "react/jsx-runtime";
2
- import { createSafeContext as f, cn as l } from "../../../libs/utils-shared/dist/index.js";
3
- import * as n from "@radix-ui/react-dialog";
4
- import { cva as u } from "class-variance-authority";
5
- const [y, r] = f("Dialog"), p = u(
1
+ import { jsx as o, jsxs as g } from "react/jsx-runtime";
2
+ import { createSafeContext as f, cn as i } from "../../../libs/utils-shared/dist/index.js";
3
+ import * as l from "@radix-ui/react-dialog";
4
+ import { cva as m } from "class-variance-authority";
5
+ const [u, r] = f("Dialog"), x = m(
6
6
  [
7
7
  "flex w-400 max-w-[calc(100%-2rem)] flex-col overflow-hidden rounded-2xl bg-canvas-sheet pb-24",
8
8
  "fixed top-[50%] left-[50%] z-dialog-content translate-[-50%]",
@@ -20,61 +20,60 @@ const [y, r] = f("Dialog"), p = u(
20
20
  }
21
21
  }
22
22
  );
23
- function k({ height: t = "fit", ...a }) {
24
- return /* @__PURE__ */ o(y, { value: { height: t }, children: /* @__PURE__ */ o(n.Root, { "data-slot": "dialog", ...a }) });
23
+ function D({ height: t = "fit", ...a }) {
24
+ return /* @__PURE__ */ o(u, { value: { height: t }, children: /* @__PURE__ */ o(l.Root, { "data-slot": "dialog", ...a }) });
25
25
  }
26
- function w({ ...t }) {
27
- return /* @__PURE__ */ o(n.Trigger, { "data-slot": "dialog-trigger", ...t });
26
+ function C({ ...t }) {
27
+ return /* @__PURE__ */ o(l.Trigger, { "data-slot": "dialog-trigger", ...t });
28
28
  }
29
- function x({
29
+ function h({
30
30
  ...t
31
31
  }) {
32
- return /* @__PURE__ */ o(n.Portal, { "data-slot": "dialog-portal", ...t });
32
+ return /* @__PURE__ */ o(l.Portal, { "data-slot": "dialog-portal", ...t });
33
33
  }
34
- const s = ({ ref: t, className: a, ...e }) => /* @__PURE__ */ o(
35
- n.Overlay,
34
+ const p = ({ ref: t, className: a, ...e }) => /* @__PURE__ */ o(
35
+ l.Overlay,
36
36
  {
37
37
  ref: t,
38
38
  "data-slot": "dialog-overlay",
39
- className: l(
39
+ className: i(
40
40
  a,
41
41
  "fixed inset-0 z-dialog-overlay bg-canvas-overlay backdrop-blur-sm data-[state=closed]:animate-fade-out data-[state=open]:animate-fade-in"
42
42
  ),
43
43
  ...e
44
44
  }
45
45
  );
46
- s.displayName = "DialogOverlay";
47
- function B({
46
+ function N({
48
47
  className: t,
49
48
  children: a,
50
49
  ...e
51
50
  }) {
52
- const { height: i } = r({
51
+ const { height: n } = r({
53
52
  consumerName: "DialogContent",
54
53
  contextRequired: !0
55
54
  });
56
- return /* @__PURE__ */ m(x, { "data-slot": "dialog-portal", children: [
57
- /* @__PURE__ */ o(s, {}),
55
+ return /* @__PURE__ */ g(h, { "data-slot": "dialog-portal", children: [
56
+ /* @__PURE__ */ o(p, {}),
58
57
  /* @__PURE__ */ o(
59
- n.Content,
58
+ l.Content,
60
59
  {
61
60
  "data-slot": "dialog-content",
62
- className: l(p({ height: i }), t),
61
+ className: i(x({ height: n }), t),
63
62
  ...e,
64
63
  children: a
65
64
  }
66
65
  )
67
66
  ] });
68
67
  }
69
- const h = ({
68
+ const w = ({
70
69
  ref: t,
71
70
  className: a,
72
71
  children: e,
73
- scrollbarWidth: i = "none",
74
- style: d,
75
- ...c
72
+ scrollbarWidth: n = "none",
73
+ style: s,
74
+ ...d
76
75
  }) => {
77
- const { height: g } = r({
76
+ const { height: c } = r({
78
77
  consumerName: "DialogBody",
79
78
  contextRequired: !0
80
79
  });
@@ -83,56 +82,51 @@ const h = ({
83
82
  {
84
83
  ref: t,
85
84
  "data-slot": "dialog-body",
86
- style: d,
87
- className: l(
85
+ style: s,
86
+ className: i(
88
87
  "-mb-24 flex min-h-0 grow flex-col overflow-y-auto px-24 pb-24",
89
- g === "fit" ? "basis-auto" : "basis-0",
88
+ c === "fit" ? "basis-auto" : "basis-0",
90
89
  a,
91
- i === "auto" ? "scrollbar-custom" : "scrollbar-none"
90
+ n === "auto" ? "scrollbar-custom" : "scrollbar-none"
92
91
  ),
93
- ...c,
92
+ ...d,
94
93
  children: e
95
94
  }
96
95
  );
97
- };
98
- h.displayName = "DialogBody";
99
- const v = ({
96
+ }, k = ({
100
97
  ref: t,
101
98
  className: a,
102
99
  children: e,
103
- ...i
100
+ ...n
104
101
  }) => /* @__PURE__ */ o(
105
102
  "div",
106
103
  {
107
104
  ref: t,
108
105
  "data-slot": "dialog-body-sticky-content",
109
- className: l("sticky top-0 bg-canvas-sheet py-8", a),
110
- ...i,
106
+ className: i("sticky top-0 bg-canvas-sheet py-8", a),
107
+ ...n,
111
108
  children: e
112
109
  }
113
- );
114
- v.displayName = "DialogBodyStickyContent";
115
- const D = ({
110
+ ), P = ({
116
111
  ref: t,
117
112
  className: a,
118
113
  children: e,
119
- ...i
114
+ ...n
120
115
  }) => /* @__PURE__ */ o(
121
116
  "div",
122
117
  {
123
118
  ref: t,
124
119
  "data-slot": "dialog-footer",
125
- className: l("flex shrink-0 justify-end gap-8 px-24 pt-24", a),
126
- ...i,
120
+ className: i("flex shrink-0 justify-end gap-8 px-24 pt-24", a),
121
+ ...n,
127
122
  children: e
128
123
  }
129
124
  );
130
- D.displayName = "DialogFooter";
131
125
  export {
132
- k as Dialog,
133
- h as DialogBody,
134
- v as DialogBodyStickyContent,
135
- B as DialogContent,
136
- D as DialogFooter,
137
- w as DialogTrigger
126
+ D as Dialog,
127
+ w as DialogBody,
128
+ k as DialogBodyStickyContent,
129
+ N as DialogContent,
130
+ P as DialogFooter,
131
+ C as DialogTrigger
138
132
  };