@ledgerhq/lumen-ui-react 0.1.17 → 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 (136) hide show
  1. package/ai-rules/RULES.md +6 -0
  2. package/dist/lib/Components/AddressInput/AddressInput.d.ts +1 -4
  3. package/dist/lib/Components/AddressInput/AddressInput.d.ts.map +1 -1
  4. package/dist/lib/Components/AddressInput/AddressInput.js +21 -21
  5. package/dist/lib/Components/AmountDisplay/AmountDisplay.d.ts +1 -4
  6. package/dist/lib/Components/AmountDisplay/AmountDisplay.d.ts.map +1 -1
  7. package/dist/lib/Components/AmountDisplay/AmountDisplay.js +32 -29
  8. package/dist/lib/Components/AmountInput/AmountInput.d.ts +1 -4
  9. package/dist/lib/Components/AmountInput/AmountInput.d.ts.map +1 -1
  10. package/dist/lib/Components/AmountInput/AmountInput.js +13 -14
  11. package/dist/lib/Components/Avatar/Avatar.d.ts +1 -4
  12. package/dist/lib/Components/Avatar/Avatar.d.ts.map +1 -1
  13. package/dist/lib/Components/Avatar/Avatar.js +8 -9
  14. package/dist/lib/Components/BaseInput/BaseInput.d.ts +1 -4
  15. package/dist/lib/Components/BaseInput/BaseInput.d.ts.map +1 -1
  16. package/dist/lib/Components/BaseInput/BaseInput.js +44 -44
  17. package/dist/lib/Components/Button/BaseButton.d.ts +1 -4
  18. package/dist/lib/Components/Button/BaseButton.d.ts.map +1 -1
  19. package/dist/lib/Components/Button/BaseButton.js +14 -15
  20. package/dist/lib/Components/Button/Button.d.ts +1 -4
  21. package/dist/lib/Components/Button/Button.d.ts.map +1 -1
  22. package/dist/lib/Components/Button/Button.js +6 -7
  23. package/dist/lib/Components/Card/Card.d.ts +10 -40
  24. package/dist/lib/Components/Card/Card.d.ts.map +1 -1
  25. package/dist/lib/Components/Card/Card.js +115 -134
  26. package/dist/lib/Components/CardButton/CardButton.d.ts +1 -4
  27. package/dist/lib/Components/CardButton/CardButton.d.ts.map +1 -1
  28. package/dist/lib/Components/CardButton/CardButton.js +10 -11
  29. package/dist/lib/Components/Checkbox/Checkbox.d.ts +1 -4
  30. package/dist/lib/Components/Checkbox/Checkbox.d.ts.map +1 -1
  31. package/dist/lib/Components/Checkbox/Checkbox.js +2 -3
  32. package/dist/lib/Components/ContentBanner/ContentBanner.d.ts +4 -16
  33. package/dist/lib/Components/ContentBanner/ContentBanner.d.ts.map +1 -1
  34. package/dist/lib/Components/ContentBanner/ContentBanner.js +48 -54
  35. package/dist/lib/Components/DataTable/DataTable.d.ts +3 -12
  36. package/dist/lib/Components/DataTable/DataTable.d.ts.map +1 -1
  37. package/dist/lib/Components/DataTable/DataTable.js +84 -97
  38. package/dist/lib/Components/Dialog/Dialog.d.ts +3 -12
  39. package/dist/lib/Components/Dialog/Dialog.d.ts.map +1 -1
  40. package/dist/lib/Components/Dialog/Dialog.js +44 -50
  41. package/dist/lib/Components/Dialog/DialogHeader/DialogHeader.d.ts +1 -4
  42. package/dist/lib/Components/Dialog/DialogHeader/DialogHeader.d.ts.map +1 -1
  43. package/dist/lib/Components/Dialog/DialogHeader/DialogHeader.js +31 -34
  44. package/dist/lib/Components/Divider/Divider.d.ts +1 -4
  45. package/dist/lib/Components/Divider/Divider.d.ts.map +1 -1
  46. package/dist/lib/Components/Divider/Divider.js +10 -11
  47. package/dist/lib/Components/Icon/Icon.d.ts +1 -4
  48. package/dist/lib/Components/Icon/Icon.d.ts.map +1 -1
  49. package/dist/lib/Components/Icon/Icon.js +6 -7
  50. package/dist/lib/Components/IconButton/IconButton.d.ts +1 -4
  51. package/dist/lib/Components/IconButton/IconButton.d.ts.map +1 -1
  52. package/dist/lib/Components/IconButton/IconButton.js +5 -6
  53. package/dist/lib/Components/InteractiveIcon/InteractiveIcon.d.ts +3 -11
  54. package/dist/lib/Components/InteractiveIcon/InteractiveIcon.d.ts.map +1 -1
  55. package/dist/lib/Components/InteractiveIcon/InteractiveIcon.js +24 -22
  56. package/dist/lib/Components/InteractiveIcon/types.d.ts +14 -9
  57. package/dist/lib/Components/InteractiveIcon/types.d.ts.map +1 -1
  58. package/dist/lib/Components/Link/Link.d.ts +1 -4
  59. package/dist/lib/Components/Link/Link.d.ts.map +1 -1
  60. package/dist/lib/Components/Link/Link.js +13 -14
  61. package/dist/lib/Components/ListItem/ListItem.d.ts +7 -28
  62. package/dist/lib/Components/ListItem/ListItem.d.ts.map +1 -1
  63. package/dist/lib/Components/ListItem/ListItem.js +60 -63
  64. package/dist/lib/Components/MediaBanner/MediaBanner.d.ts +3 -12
  65. package/dist/lib/Components/MediaBanner/MediaBanner.d.ts.map +1 -1
  66. package/dist/lib/Components/MediaBanner/MediaBanner.js +39 -43
  67. package/dist/lib/Components/MediaCard/MediaCard.d.ts +2 -8
  68. package/dist/lib/Components/MediaCard/MediaCard.d.ts.map +1 -1
  69. package/dist/lib/Components/MediaCard/MediaCard.js +38 -40
  70. package/dist/lib/Components/MediaImage/MediaImage.d.ts +1 -4
  71. package/dist/lib/Components/MediaImage/MediaImage.d.ts.map +1 -1
  72. package/dist/lib/Components/MediaImage/MediaImage.js +15 -16
  73. package/dist/lib/Components/Menu/Menu.d.ts +11 -38
  74. package/dist/lib/Components/Menu/Menu.d.ts.map +1 -1
  75. package/dist/lib/Components/Menu/Menu.js +100 -116
  76. package/dist/lib/Components/NavBar/CoinCapsule.d.ts +1 -4
  77. package/dist/lib/Components/NavBar/CoinCapsule.d.ts.map +1 -1
  78. package/dist/lib/Components/NavBar/CoinCapsule.js +8 -9
  79. package/dist/lib/Components/NavBar/NavBar.d.ts +7 -22
  80. package/dist/lib/Components/NavBar/NavBar.d.ts.map +1 -1
  81. package/dist/lib/Components/NavBar/NavBar.js +25 -34
  82. package/dist/lib/Components/PageIndicator/PageIndicator.d.ts +1 -4
  83. package/dist/lib/Components/PageIndicator/PageIndicator.d.ts.map +1 -1
  84. package/dist/lib/Components/PageIndicator/PageIndicator.js +15 -16
  85. package/dist/lib/Components/Popover/Popover.d.ts +1 -4
  86. package/dist/lib/Components/Popover/Popover.d.ts.map +1 -1
  87. package/dist/lib/Components/Popover/Popover.js +5 -7
  88. package/dist/lib/Components/SearchInput/SearchInput.d.ts +1 -4
  89. package/dist/lib/Components/SearchInput/SearchInput.d.ts.map +1 -1
  90. package/dist/lib/Components/SearchInput/SearchInput.js +2 -3
  91. package/dist/lib/Components/SegmentedControl/SegmentedControl.d.ts +0 -6
  92. package/dist/lib/Components/SegmentedControl/SegmentedControl.d.ts.map +1 -1
  93. package/dist/lib/Components/SegmentedControl/SegmentedControl.js +19 -21
  94. package/dist/lib/Components/Select/Select.d.ts +10 -40
  95. package/dist/lib/Components/Select/Select.d.ts.map +1 -1
  96. package/dist/lib/Components/Select/Select.js +141 -163
  97. package/dist/lib/Components/SideBar/SideBar.d.ts +5 -20
  98. package/dist/lib/Components/SideBar/SideBar.d.ts.map +1 -1
  99. package/dist/lib/Components/SideBar/SideBar.js +44 -53
  100. package/dist/lib/Components/Skeleton/Skeleton.d.ts +1 -4
  101. package/dist/lib/Components/Skeleton/Skeleton.d.ts.map +1 -1
  102. package/dist/lib/Components/Skeleton/Skeleton.js +15 -22
  103. package/dist/lib/Components/Spot/Spot.d.ts +1 -4
  104. package/dist/lib/Components/Spot/Spot.d.ts.map +1 -1
  105. package/dist/lib/Components/Spot/Spot.js +11 -12
  106. package/dist/lib/Components/Stepper/Stepper.d.ts +1 -4
  107. package/dist/lib/Components/Stepper/Stepper.d.ts.map +1 -1
  108. package/dist/lib/Components/Stepper/Stepper.js +10 -11
  109. package/dist/lib/Components/Subheader/Subheader.d.ts +1 -4
  110. package/dist/lib/Components/Subheader/Subheader.d.ts.map +1 -1
  111. package/dist/lib/Components/Subheader/Subheader.js +14 -15
  112. package/dist/lib/Components/Subheader/types.d.ts +1 -1
  113. package/dist/lib/Components/Subheader/types.d.ts.map +1 -1
  114. package/dist/lib/Components/Switch/Switch.d.ts +1 -4
  115. package/dist/lib/Components/Switch/Switch.d.ts.map +1 -1
  116. package/dist/lib/Components/Switch/Switch.js +2 -3
  117. package/dist/lib/Components/Table/Table.d.ts +16 -64
  118. package/dist/lib/Components/Table/Table.d.ts.map +1 -1
  119. package/dist/lib/Components/Table/Table.js +146 -176
  120. package/dist/lib/Components/Tag/Tag.d.ts +1 -4
  121. package/dist/lib/Components/Tag/Tag.d.ts.map +1 -1
  122. package/dist/lib/Components/Tag/Tag.js +10 -11
  123. package/dist/lib/Components/TextInput/TextInput.d.ts +1 -4
  124. package/dist/lib/Components/TextInput/TextInput.d.ts.map +1 -1
  125. package/dist/lib/Components/TextInput/TextInput.js +4 -5
  126. package/dist/lib/Components/Tile/Tile.d.ts +6 -24
  127. package/dist/lib/Components/Tile/Tile.d.ts.map +1 -1
  128. package/dist/lib/Components/Tile/Tile.js +58 -71
  129. package/dist/lib/Components/TileButton/TileButton.d.ts +1 -4
  130. package/dist/lib/Components/TileButton/TileButton.d.ts.map +1 -1
  131. package/dist/lib/Components/TileButton/TileButton.js +12 -13
  132. package/dist/lib/Components/TriggerButton/TriggerButton.d.ts +1 -4
  133. package/dist/lib/Components/TriggerButton/TriggerButton.d.ts.map +1 -1
  134. package/dist/lib/Components/TriggerButton/TriggerButton.js +11 -12
  135. package/dist/package.json +1 -1
  136. package/package.json +1 -1
@@ -15,33 +15,33 @@ const h = f(
15
15
  appearance: "base"
16
16
  }
17
17
  }
18
- ), x = ({
18
+ ), w = ({
19
19
  ref: i,
20
- className: d,
21
- appearance: o,
20
+ className: o,
21
+ appearance: d,
22
22
  icon: l,
23
23
  title: n,
24
24
  description: t,
25
25
  hideChevron: r,
26
- disabled: u,
27
- ...b
26
+ disabled: b,
27
+ ...u
28
28
  }) => {
29
29
  const c = m({
30
30
  consumerName: "CardButton",
31
- mergeWith: { disabled: u }
31
+ mergeWith: { disabled: b }
32
32
  }), s = l;
33
33
  return /* @__PURE__ */ a(
34
34
  "button",
35
35
  {
36
36
  ref: i,
37
37
  className: p(
38
- d,
38
+ o,
39
39
  h({
40
- appearance: o
40
+ appearance: d
41
41
  })
42
42
  ),
43
43
  disabled: c,
44
- ...b,
44
+ ...u,
45
45
  children: [
46
46
  s && /* @__PURE__ */ e(s, { size: 24 }),
47
47
  /* @__PURE__ */ a("div", { className: "flex min-w-0 flex-1 flex-col gap-4 text-left", children: [
@@ -59,7 +59,6 @@ const h = f(
59
59
  }
60
60
  );
61
61
  };
62
- x.displayName = "CardButton";
63
62
  export {
64
- x as CardButton
63
+ w as CardButton
65
64
  };
@@ -38,8 +38,5 @@ import { CheckboxProps } from './types';
38
38
  * // With custom styling (layout only)
39
39
  * <Checkbox className="mr-8" />
40
40
  */
41
- export declare const Checkbox: {
42
- ({ ref, className, disabled: disabledProp, ...props }: CheckboxProps): import("react/jsx-runtime").JSX.Element;
43
- displayName: string | undefined;
44
- };
41
+ export declare const Checkbox: ({ ref, className, disabled: disabledProp, ...props }: CheckboxProps) => import("react/jsx-runtime").JSX.Element;
45
42
  //# sourceMappingURL=Checkbox.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAiBxC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,eAAO,MAAM,QAAQ;2DAKlB,aAAa;;CAkBf,CAAC"}
1
+ {"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAiBxC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,eAAO,MAAM,QAAQ,GAAI,sDAKtB,aAAa,4CAkBf,CAAC"}
@@ -13,7 +13,7 @@ const n = a(
13
13
  "data-[state=checked]:hover:bg-active-hover",
14
14
  "data-[state=checked]:active:bg-active-pressed",
15
15
  "data-[state=checked]:disabled:bg-disabled data-[state=checked]:disabled:text-disabled"
16
- ), h = ({
16
+ ), k = ({
17
17
  ref: s,
18
18
  className: d,
19
19
  disabled: c,
@@ -34,7 +34,6 @@ const n = a(
34
34
  }
35
35
  );
36
36
  };
37
- h.displayName = t.Root.displayName;
38
37
  export {
39
- h as Checkbox
38
+ k as Checkbox
40
39
  };
@@ -2,24 +2,15 @@ import { ContentBannerContentProps, ContentBannerDescriptionProps, ContentBanner
2
2
  /**
3
3
  * Container for the text content (title and description) within the content banner.
4
4
  */
5
- export declare const ContentBannerContent: {
6
- ({ ref, children, className, ...props }: ContentBannerContentProps): import("react/jsx-runtime").JSX.Element;
7
- displayName: string;
8
- };
5
+ export declare const ContentBannerContent: ({ ref, children, className, ...props }: ContentBannerContentProps) => import("react/jsx-runtime").JSX.Element;
9
6
  /**
10
7
  * The main title of the content banner.
11
8
  */
12
- export declare const ContentBannerTitle: {
13
- ({ ref, children, className, ...props }: ContentBannerTitleProps): import("react/jsx-runtime").JSX.Element;
14
- displayName: string;
15
- };
9
+ export declare const ContentBannerTitle: ({ ref, children, className, ...props }: ContentBannerTitleProps) => import("react/jsx-runtime").JSX.Element;
16
10
  /**
17
11
  * Optional description text below the title.
18
12
  */
19
- export declare const ContentBannerDescription: {
20
- ({ ref, children, className, ...props }: ContentBannerDescriptionProps): import("react/jsx-runtime").JSX.Element;
21
- displayName: string;
22
- };
13
+ export declare const ContentBannerDescription: ({ ref, children, className, ...props }: ContentBannerDescriptionProps) => import("react/jsx-runtime").JSX.Element;
23
14
  /**
24
15
  * A content banner component for displaying a composable banner with an optional
25
16
  * leading visual, title, description, and close button.
@@ -35,8 +26,5 @@ export declare const ContentBannerDescription: {
35
26
  * </ContentBannerContent>
36
27
  * </ContentBanner>
37
28
  */
38
- export declare const ContentBanner: {
39
- ({ ref, children, className, onClose, closeAriaLabel, ...props }: ContentBannerProps): import("react/jsx-runtime").JSX.Element;
40
- displayName: string;
41
- };
29
+ export declare const ContentBanner: ({ ref, children, className, onClose, closeAriaLabel, ...props }: ContentBannerProps) => import("react/jsx-runtime").JSX.Element;
42
30
  //# sourceMappingURL=ContentBanner.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ContentBanner.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/ContentBanner/ContentBanner.tsx"],"names":[],"mappings":"AAIA,OAAO,EACL,yBAAyB,EACzB,6BAA6B,EAC7B,kBAAkB,EAClB,uBAAuB,EACxB,MAAM,SAAS,CAAC;AAEjB;;GAEG;AACH,eAAO,MAAM,oBAAoB;6CAK9B,yBAAyB;;CAU3B,CAAC;AAIF;;GAEG;AACH,eAAO,MAAM,kBAAkB;6CAK5B,uBAAuB;;CAUzB,CAAC;AAIF;;GAEG;AACH,eAAO,MAAM,wBAAwB;6CAKlC,6BAA6B;;CAU/B,CAAC;AAIF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,aAAa;sEAOvB,kBAAkB;;CA2BpB,CAAC"}
1
+ {"version":3,"file":"ContentBanner.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/ContentBanner/ContentBanner.tsx"],"names":[],"mappings":"AAIA,OAAO,EACL,yBAAyB,EACzB,6BAA6B,EAC7B,kBAAkB,EAClB,uBAAuB,EACxB,MAAM,SAAS,CAAC;AAEjB;;GAEG;AACH,eAAO,MAAM,oBAAoB,GAAI,wCAKlC,yBAAyB,4CAU3B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,GAAI,wCAKhC,uBAAuB,4CAUzB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,wBAAwB,GAAI,wCAKtC,6BAA6B,4CAU/B,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,aAAa,GAAI,iEAO3B,kBAAkB,4CA2BpB,CAAC"}
@@ -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"}