@ledgerhq/lumen-ui-react 0.1.8 → 0.1.10

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 (62) hide show
  1. package/ai-rules/RULES.md +4 -0
  2. package/dist/i18n/i18n.d.ts.map +1 -1
  3. package/dist/index.js +134 -132
  4. package/dist/lib/Components/Avatar/Avatar.d.ts.map +1 -1
  5. package/dist/lib/Components/Avatar/Avatar.js +17 -14
  6. package/dist/lib/Components/Avatar/types.d.ts +1 -1
  7. package/dist/lib/Components/Avatar/types.d.ts.map +1 -1
  8. package/dist/lib/Components/Banner/Banner.d.ts.map +1 -1
  9. package/dist/lib/Components/Button/BaseButton.d.ts +1 -1
  10. package/dist/lib/Components/ButtonTrigger/ButtonTrigger.js +1 -1
  11. package/dist/lib/Components/Card/Card.d.ts.map +1 -1
  12. package/dist/lib/Components/Card/Card.js +1 -1
  13. package/dist/lib/Components/Card/types.d.ts +1 -1
  14. package/dist/lib/Components/DataTable/useLumenDataTable/useLumenDataTable.d.ts.map +1 -1
  15. package/dist/lib/Components/Design-tokens/shared.d.ts.map +1 -1
  16. package/dist/lib/Components/Dialog/Dialog.d.ts +22 -1
  17. package/dist/lib/Components/Dialog/Dialog.d.ts.map +1 -1
  18. package/dist/lib/Components/Dialog/Dialog.js +43 -26
  19. package/dist/lib/Components/Dialog/types.d.ts +10 -0
  20. package/dist/lib/Components/Dialog/types.d.ts.map +1 -1
  21. package/dist/lib/Components/Icon/createIcon.d.ts.map +1 -1
  22. package/dist/lib/Components/IconButton/IconButton.d.ts +1 -1
  23. package/dist/lib/Components/IconButton/IconButton.d.ts.map +1 -1
  24. package/dist/lib/Components/IconButton/IconButton.js +23 -22
  25. package/dist/lib/Components/IconButton/types.d.ts +6 -0
  26. package/dist/lib/Components/IconButton/types.d.ts.map +1 -1
  27. package/dist/lib/Components/Select/Select.d.ts +6 -8
  28. package/dist/lib/Components/Select/Select.d.ts.map +1 -1
  29. package/dist/lib/Components/Select/Select.js +125 -87
  30. package/dist/lib/Components/Select/SelectContext.d.ts +12 -0
  31. package/dist/lib/Components/Select/SelectContext.d.ts.map +1 -0
  32. package/dist/lib/Components/Select/SelectContext.js +6 -0
  33. package/dist/lib/Components/Select/index.d.ts +1 -1
  34. package/dist/lib/Components/Select/index.d.ts.map +1 -1
  35. package/dist/lib/Components/Select/types.d.ts +28 -0
  36. package/dist/lib/Components/Select/types.d.ts.map +1 -1
  37. package/dist/lib/Components/Spinner/Spinner.d.ts.map +1 -1
  38. package/dist/lib/Components/Subheader/Subheader.d.ts.map +1 -1
  39. package/dist/lib/Components/Table/utils/useThrottledScrollBottom.d.ts.map +1 -1
  40. package/dist/lib/Components/ThemeProvider/useRootColorModeSideEffect.d.ts.map +1 -1
  41. package/dist/lib/Components/Tooltip/Tooltip.d.ts.map +1 -1
  42. package/dist/lib/Symbols/Icons/Ar.js +2 -2
  43. package/dist/lib/Symbols/Icons/ColorPalette.d.ts +29 -0
  44. package/dist/lib/Symbols/Icons/ColorPalette.d.ts.map +1 -0
  45. package/dist/lib/Symbols/Icons/ColorPalette.js +28 -0
  46. package/dist/lib/Symbols/Icons/Feather.d.ts +29 -0
  47. package/dist/lib/Symbols/Icons/Feather.d.ts.map +1 -0
  48. package/dist/lib/Symbols/Icons/Feather.js +28 -0
  49. package/dist/lib/Symbols/Icons/HandKey.d.ts +29 -0
  50. package/dist/lib/Symbols/Icons/HandKey.d.ts.map +1 -0
  51. package/dist/lib/Symbols/Icons/HandKey.js +28 -0
  52. package/dist/lib/Symbols/Icons/Reduce.d.ts +29 -0
  53. package/dist/lib/Symbols/Icons/Reduce.d.ts.map +1 -0
  54. package/dist/lib/Symbols/Icons/Reduce.js +28 -0
  55. package/dist/lib/Symbols/Icons/RefreshBack.js +1 -1
  56. package/dist/lib/Symbols/Icons/Usb.js +1 -1
  57. package/dist/lib/Symbols/Icons/WalletInput.js +1 -1
  58. package/dist/lib/Symbols/index.d.ts +4 -0
  59. package/dist/lib/Symbols/index.d.ts.map +1 -1
  60. package/dist/lib/Symbols/index.js +390 -382
  61. package/dist/package.json +1 -1
  62. package/package.json +1 -1
@@ -1,8 +1,8 @@
1
- import { jsx as o, jsxs as u } from "react/jsx-runtime";
2
- import { createSafeContext as m, cn as n } from "../../../libs/utils-shared/dist/index.js";
3
- import * as i from "@radix-ui/react-dialog";
1
+ import { jsx as o, jsxs as m } from "react/jsx-runtime";
2
+ import { createSafeContext as u, cn as l } from "../../../libs/utils-shared/dist/index.js";
3
+ import * as n from "@radix-ui/react-dialog";
4
4
  import { cva as f } from "class-variance-authority";
5
- const [h, r] = m("Dialog"), x = f(
5
+ const [y, r] = u("Dialog"), h = f(
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,23 +20,23 @@ const [h, r] = m("Dialog"), x = f(
20
20
  }
21
21
  }
22
22
  );
23
- function C({ height: a = "hug", ...t }) {
24
- return /* @__PURE__ */ o(h, { value: { height: a }, children: /* @__PURE__ */ o(i.Root, { "data-slot": "dialog", ...t }) });
23
+ function k({ height: a = "hug", ...t }) {
24
+ return /* @__PURE__ */ o(y, { value: { height: a }, children: /* @__PURE__ */ o(n.Root, { "data-slot": "dialog", ...t }) });
25
25
  }
26
26
  function w({ ...a }) {
27
- return /* @__PURE__ */ o(i.Trigger, { "data-slot": "dialog-trigger", ...a });
27
+ return /* @__PURE__ */ o(n.Trigger, { "data-slot": "dialog-trigger", ...a });
28
28
  }
29
29
  function p({
30
30
  ...a
31
31
  }) {
32
- return /* @__PURE__ */ o(i.Portal, { "data-slot": "dialog-portal", ...a });
32
+ return /* @__PURE__ */ o(n.Portal, { "data-slot": "dialog-portal", ...a });
33
33
  }
34
34
  const s = ({ ref: a, className: t, ...e }) => /* @__PURE__ */ o(
35
- i.Overlay,
35
+ n.Overlay,
36
36
  {
37
37
  ref: a,
38
38
  "data-slot": "dialog-overlay",
39
- className: n(
39
+ className: l(
40
40
  t,
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
  ),
@@ -44,33 +44,33 @@ const s = ({ ref: a, className: t, ...e }) => /* @__PURE__ */ o(
44
44
  }
45
45
  );
46
46
  s.displayName = "DialogOverlay";
47
- function P({
47
+ function B({
48
48
  className: a,
49
49
  children: t,
50
50
  ...e
51
51
  }) {
52
- const { height: l } = r({
52
+ const { height: i } = r({
53
53
  consumerName: "DialogContent",
54
54
  contextRequired: !0
55
55
  });
56
- return /* @__PURE__ */ u(p, { "data-slot": "dialog-portal", children: [
56
+ return /* @__PURE__ */ m(p, { "data-slot": "dialog-portal", children: [
57
57
  /* @__PURE__ */ o(s, {}),
58
58
  /* @__PURE__ */ o(
59
- i.Content,
59
+ n.Content,
60
60
  {
61
61
  "data-slot": "dialog-content",
62
- className: n(x({ height: l }), a),
62
+ className: l(h({ height: i }), a),
63
63
  ...e,
64
64
  children: t
65
65
  }
66
66
  )
67
67
  ] });
68
68
  }
69
- const v = ({
69
+ const x = ({
70
70
  ref: a,
71
71
  className: t,
72
72
  children: e,
73
- scrollbarWidth: l = "none",
73
+ scrollbarWidth: i = "none",
74
74
  style: d,
75
75
  ...g
76
76
  }) => {
@@ -84,38 +84,55 @@ const v = ({
84
84
  ref: a,
85
85
  "data-slot": "dialog-body",
86
86
  style: d,
87
- className: n(
87
+ className: l(
88
88
  "-mb-24 flex min-h-0 grow flex-col overflow-y-auto px-24 pb-24",
89
89
  c === "hug" ? "basis-auto" : "basis-0",
90
90
  t,
91
- l === "auto" ? "scrollbar-custom" : "scrollbar-none"
91
+ i === "auto" ? "scrollbar-custom" : "scrollbar-none"
92
92
  ),
93
93
  ...g,
94
94
  children: e
95
95
  }
96
96
  );
97
97
  };
98
- v.displayName = "DialogBody";
98
+ x.displayName = "DialogBody";
99
+ const v = ({
100
+ ref: a,
101
+ className: t,
102
+ children: e,
103
+ ...i
104
+ }) => /* @__PURE__ */ o(
105
+ "div",
106
+ {
107
+ ref: a,
108
+ "data-slot": "dialog-body-sticky-content",
109
+ className: l("sticky top-0 bg-canvas-sheet py-8", t),
110
+ ...i,
111
+ children: e
112
+ }
113
+ );
114
+ v.displayName = "DialogBodyStickyContent";
99
115
  const D = ({
100
116
  ref: a,
101
117
  className: t,
102
118
  children: e,
103
- ...l
119
+ ...i
104
120
  }) => /* @__PURE__ */ o(
105
121
  "div",
106
122
  {
107
123
  ref: a,
108
124
  "data-slot": "dialog-footer",
109
- className: n("flex shrink-0 justify-end gap-8 px-24 pt-24", t),
110
- ...l,
125
+ className: l("flex shrink-0 justify-end gap-8 px-24 pt-24", t),
126
+ ...i,
111
127
  children: e
112
128
  }
113
129
  );
114
130
  D.displayName = "DialogFooter";
115
131
  export {
116
- C as Dialog,
117
- v as DialogBody,
118
- P as DialogContent,
132
+ k as Dialog,
133
+ x as DialogBody,
134
+ v as DialogBodyStickyContent,
135
+ B as DialogContent,
119
136
  D as DialogFooter,
120
137
  w as DialogTrigger
121
138
  };
@@ -147,6 +147,16 @@ export type DialogBodyProps = {
147
147
  */
148
148
  scrollbarWidth?: 'none' | 'auto';
149
149
  } & ComponentPropsWithRef<'div'>;
150
+ export type DialogBodyStickyContentProps = {
151
+ /**
152
+ * The content to display in the sticky region inside the dialog body.
153
+ */
154
+ children?: ReactNode;
155
+ /**
156
+ * Additional custom CSS classes to apply.
157
+ */
158
+ className?: string;
159
+ } & ComponentPropsWithRef<'div'>;
150
160
  export type DialogFooterProps = {
151
161
  /**
152
162
  * The content to display inside the dialog footer.
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Dialog/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE9D,MAAM,MAAM,YAAY,GAAG,KAAK,GAAG,O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}
@@ -1 +1 @@
1
- {"version":3,"file":"createIcon.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Icon/createIcon.ts"],"names":[],"mappings":"AAKA,OAAO,EAAiB,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEhD,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC;;;;;;GAMG;AACH,QAAA,MAAM,UAAU,aACJ,MAAM,WACP,KAAK,CAAC,YAAY,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC;6CAOjD,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC;;CAkB/B,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"createIcon.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Icon/createIcon.ts"],"names":[],"mappings":"AAKA,OAAO,EAAiB,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEhD,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC;;;;;;GAMG;AACH,QAAA,MAAM,UAAU,GACd,UAAU,MAAM,EAChB,SAAS,KAAK,CAAC,YAAY,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC;6CAOjD,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC;;CAkB/B,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { IconButtonProps } from './types';
2
2
  export declare const IconButton: {
3
- ({ ref, className, icon, tooltip, tooltipPlacement, tooltipText, "aria-label": ariaLabel, ...props }: IconButtonProps): import("react/jsx-runtime").JSX.Element;
3
+ ({ ref, className, icon, tooltip, tooltipPlacement, tooltipText, onTooltipOpenChange, "aria-label": ariaLabel, ...props }: IconButtonProps): import("react/jsx-runtime").JSX.Element;
4
4
  displayName: string;
5
5
  };
6
6
  //# sourceMappingURL=IconButton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/IconButton/IconButton.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,eAAO,MAAM,UAAU;0GASpB,eAAe;;CAuBjB,CAAC"}
1
+ {"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/IconButton/IconButton.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,eAAO,MAAM,UAAU;+HAUpB,eAAe;;CAuBjB,CAAC"}
@@ -1,32 +1,33 @@
1
- import { jsxs as c, jsx as o } from "react/jsx-runtime";
2
- import { Tooltip as m, TooltipTrigger as u, TooltipContent as d } from "../Tooltip/Tooltip.js";
3
- import { BaseButton as f } from "../Button/BaseButton.js";
4
- const h = ({
5
- ref: i,
6
- className: n,
7
- icon: e,
1
+ import { jsxs as m, jsx as o } from "react/jsx-runtime";
2
+ import { Tooltip as u, TooltipTrigger as d, TooltipContent as f } from "../Tooltip/Tooltip.js";
3
+ import { BaseButton as h } from "../Button/BaseButton.js";
4
+ const B = ({
5
+ ref: r,
6
+ className: e,
7
+ icon: i,
8
8
  tooltip: l = !1,
9
- tooltipPlacement: s = "top",
10
- tooltipText: p,
9
+ tooltipPlacement: p = "top",
10
+ tooltipText: s,
11
+ onTooltipOpenChange: a,
11
12
  "aria-label": t,
12
- ...a
13
+ ...c
13
14
  }) => {
14
- const r = /* @__PURE__ */ o(
15
- f,
15
+ const n = /* @__PURE__ */ o(
16
+ h,
16
17
  {
17
- ref: i,
18
- icon: e,
19
- className: n,
18
+ ref: r,
19
+ icon: i,
20
+ className: e,
20
21
  "aria-label": t,
21
- ...a
22
+ ...c
22
23
  }
23
24
  );
24
- return l ? /* @__PURE__ */ c(m, { children: [
25
- /* @__PURE__ */ o(u, { asChild: !0, children: r }),
26
- /* @__PURE__ */ o(d, { side: s, children: p || t })
27
- ] }) : r;
25
+ return l ? /* @__PURE__ */ m(u, { onOpenChange: a, children: [
26
+ /* @__PURE__ */ o(d, { asChild: !0, children: n }),
27
+ /* @__PURE__ */ o(f, { side: p, children: s || t })
28
+ ] }) : n;
28
29
  };
29
- h.displayName = "IconButton";
30
+ B.displayName = "IconButton";
30
31
  export {
31
- h as IconButton
32
+ B as IconButton
32
33
  };
@@ -24,5 +24,11 @@ export type IconButtonProps = {
24
24
  * Optional text to show in the tooltip. If not provided, aria-label will be used
25
25
  */
26
26
  tooltipText?: string;
27
+ /**
28
+ * Callback fired when the tooltip open state changes.
29
+ * Mirrors the Tooltip's `onOpenChange` API.
30
+ * Useful for analytics tracking (e.g. logging tooltip impressions).
31
+ */
32
+ onTooltipOpenChange?: (open: boolean) => void;
27
33
  } & Omit<BaseButtonProps, 'isFull'> & ComponentPropsWithRef<'button'>;
28
34
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/IconButton/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,gBAAgB,MAAM,yBAAyB,CAAC;AACjE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,IAAI,EAAE,WAAW,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC;IAC3C;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,gBAAgB,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC;IAChE;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,IAAI,CAAC,eAAe,EAAE,QAAQ,CAAC,GACjC,qBAAqB,CAAC,QAAQ,CAAC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/IconButton/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,gBAAgB,MAAM,yBAAyB,CAAC;AACjE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,IAAI,EAAE,WAAW,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC;IAC3C;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,gBAAgB,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC;IAChE;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CAC/C,GAAG,IAAI,CAAC,eAAe,EAAE,QAAQ,CAAC,GACjC,qBAAqB,CAAC,QAAQ,CAAC,CAAC"}
@@ -1,9 +1,8 @@
1
- import { SelectProps, SelectTriggerProps, SelectContentProps, SelectGroupProps, SelectLabelProps, SelectItemTextProps, SelectItemProps, SelectSeparatorProps } from './types';
2
- import * as React from 'react';
3
- declare function Select({ ...props }: SelectProps): import("react/jsx-runtime").JSX.Element;
1
+ import { SelectProps, SelectTriggerProps, SelectContentProps, SelectGroupProps, SelectLabelProps, SelectItemTextProps, SelectItemProps, SelectSeparatorProps, SelectButtonTriggerProps } from './types';
2
+ declare function Select({ value, defaultValue, onValueChange, ...props }: SelectProps): import("react/jsx-runtime").JSX.Element;
4
3
  declare function SelectGroup({ ...props }: SelectGroupProps): import("react/jsx-runtime").JSX.Element;
5
4
  declare const SelectTrigger: {
6
- ({ ref, className, labelClassName, label, ...props }: SelectTriggerProps): import("react/jsx-runtime").JSX.Element;
5
+ ({ render, ...props }: SelectTriggerProps): import("react/jsx-runtime").JSX.Element;
7
6
  displayName: string | undefined;
8
7
  };
9
8
  declare const SelectContent: {
@@ -19,14 +18,13 @@ declare const SelectItem: {
19
18
  displayName: string | undefined;
20
19
  };
21
20
  declare const SelectSeparator: {
22
- ({ ref, className, ...props }: SelectSeparatorProps & {
23
- ref?: React.Ref<HTMLDivElement>;
24
- }): import("react/jsx-runtime").JSX.Element;
21
+ ({ ref, className, ...props }: SelectSeparatorProps): import("react/jsx-runtime").JSX.Element;
25
22
  displayName: string;
26
23
  };
27
24
  declare const SelectItemText: {
28
25
  ({ ref, className, ...props }: SelectItemTextProps): import("react/jsx-runtime").JSX.Element;
29
26
  displayName: string | undefined;
30
27
  };
31
- export { Select, SelectGroup, SelectTrigger, SelectContent, SelectLabel, SelectItemText, SelectItem, SelectSeparator, };
28
+ declare const SelectButtonTrigger: ({ selectedValue, selectedContent, label, ...props }: SelectButtonTriggerProps) => import("react/jsx-runtime").JSX.Element;
29
+ export { Select, SelectGroup, SelectTrigger, SelectContent, SelectLabel, SelectItemText, SelectItem, SelectSeparator, SelectButtonTrigger, };
32
30
  //# sourceMappingURL=Select.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Select/Select.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EACV,WAAW,EACX,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,EACnB,eAAe,EACf,oBAAoB,EACrB,MAAM,SAAS,CAAC;AAEjB,iBAAS,MAAM,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,WAAW,2CAExC;AAED,iBAAS,WAAW,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,2CAElD;AAmBD,QAAA,MAAM,aAAa;0DAMhB,kBAAkB;;CA2BpB,CAAC;AAwCF,QAAA,MAAM,aAAa;uDAMhB,kBAAkB;;C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AI1B,CAAC;AAEF,OAAO,EACL,MAAM,EACN,WAAW,EACX,aAAa,EACb,aAAa,EACb,WAAW,EACX,cAAc,EACd,UAAU,EACV,eAAe,EACf,mBAAmB,GACpB,CAAC"}
@@ -1,58 +1,74 @@
1
- import { jsxs as d, jsx as e } from "react/jsx-runtime";
1
+ import { jsx as e, jsxs as d } from "react/jsx-runtime";
2
2
  import { cn as s } from "../../../libs/utils-shared/dist/index.js";
3
- import * as a from "@radix-ui/react-select";
4
- import { cva as n } from "class-variance-authority";
5
- import { ChevronDown as c } from "../../Symbols/Icons/ChevronDown.js";
6
- import { Check as m } from "../../Symbols/Icons/Check.js";
7
- import { Divider as p } from "../Divider/Divider.js";
8
- import { ChevronUp as u } from "../../Symbols/Icons/ChevronUp.js";
9
- function k({ ...t }) {
10
- return /* @__PURE__ */ e(a.Root, { "data-slot": "select", ...t });
3
+ import * as l from "@radix-ui/react-select";
4
+ import { cva as c } from "class-variance-authority";
5
+ import { SelectProvider as p, useSelectContext as u } from "./SelectContext.js";
6
+ import { useControllableState as g } from "../../../utils/useControllableState/useControllableState.js";
7
+ import { Check as f } from "../../Symbols/Icons/Check.js";
8
+ import { Divider as h } from "../Divider/Divider.js";
9
+ import { ButtonTrigger as b } from "../ButtonTrigger/ButtonTrigger.js";
10
+ import { ChevronDown as m } from "../../Symbols/Icons/ChevronDown.js";
11
+ import { ChevronUp as x } from "../../Symbols/Icons/ChevronUp.js";
12
+ function J({ value: t, defaultValue: a, onValueChange: r, ...o }) {
13
+ const [i, n] = g({
14
+ prop: t,
15
+ defaultProp: a ?? "",
16
+ onChange: r
17
+ });
18
+ return /* @__PURE__ */ e(p, { value: { selectedValue: i }, children: /* @__PURE__ */ e(
19
+ l.Root,
20
+ {
21
+ "data-slot": "select",
22
+ value: i,
23
+ onValueChange: n,
24
+ ...o
25
+ }
26
+ ) });
11
27
  }
12
- function G({ ...t }) {
13
- return /* @__PURE__ */ e(a.Group, { "data-slot": "select-group", ...t });
28
+ function K({ ...t }) {
29
+ return /* @__PURE__ */ e(l.Group, { "data-slot": "select-group", ...t });
14
30
  }
15
- const f = s(
31
+ const y = s(
16
32
  "group relative flex h-48 w-full cursor-pointer items-center justify-between gap-8",
17
33
  "rounded-sm bg-muted px-16",
18
34
  "body-2 text-base",
19
35
  "hover:bg-muted-hover",
20
36
  "transition-colors duration-200 focus:ring-2 focus:ring-focus focus:outline-hidden",
21
37
  "disabled:cursor-not-allowed disabled:text-disabled"
22
- ), b = s(
38
+ ), S = s(
23
39
  "pointer-events-none absolute left-16 origin-left text-muted transition-all duration-300",
24
40
  "top-10 -translate-y-4 body-4",
25
41
  "group-data-placeholder:top-14 group-data-placeholder:translate-y-0 group-data-placeholder:body-2",
26
42
  "group-data-disabled:text-disabled disabled:text-disabled",
27
43
  "max-w-[calc(100%-var(--size-56))] truncate"
28
- ), g = ({
44
+ ), N = ({
29
45
  ref: t,
30
- className: l,
31
- labelClassName: o,
32
- label: r,
33
- ...i
46
+ className: a,
47
+ labelClassName: r,
48
+ label: o,
49
+ selectedContent: i,
50
+ ...n
34
51
  }) => /* @__PURE__ */ d(
35
- a.Trigger,
52
+ l.Trigger,
36
53
  {
37
54
  ref: t,
38
55
  "data-slot": "select-trigger",
39
- className: s(f, l),
40
- ...i,
56
+ className: s(y, a),
57
+ ...n,
41
58
  children: [
42
- r && /* @__PURE__ */ e("label", { className: s(b, o), children: r }),
59
+ o && /* @__PURE__ */ e("label", { className: s(S, r), children: o }),
43
60
  /* @__PURE__ */ e(
44
61
  "span",
45
62
  {
46
63
  className: s(
47
64
  "flex-1 truncate text-left",
48
- r && "mt-16 opacity-100 transition-opacity delay-100 duration-300 group-data-placeholder:mt-0 group-data-placeholder:opacity-0",
49
- l
65
+ o && "mt-16 opacity-100 transition-opacity delay-100 duration-300 group-data-placeholder:mt-0 group-data-placeholder:opacity-0"
50
66
  ),
51
- children: /* @__PURE__ */ e(a.Value, { "data-slot": "select-value" })
67
+ children: i
52
68
  }
53
69
  ),
54
- /* @__PURE__ */ e(a.Icon, { asChild: !0, children: /* @__PURE__ */ e(
55
- c,
70
+ /* @__PURE__ */ e(l.Icon, { asChild: !0, children: /* @__PURE__ */ e(
71
+ m,
56
72
  {
57
73
  size: 20,
58
74
  className: "shrink-0 text-muted group-data-disabled:text-disabled"
@@ -60,9 +76,23 @@ const f = s(
60
76
  ) })
61
77
  ]
62
78
  }
63
- );
64
- g.displayName = a.Trigger.displayName;
65
- const h = n(
79
+ ), v = ({ render: t, ...a }) => {
80
+ const { selectedValue: r } = u({
81
+ consumerName: "SelectTrigger",
82
+ contextRequired: !0
83
+ }), o = /* @__PURE__ */ e(l.Value, { "data-slot": "select-value" });
84
+ return t ? /* @__PURE__ */ e(
85
+ l.Trigger,
86
+ {
87
+ ref: a.ref,
88
+ "data-slot": "select-trigger",
89
+ asChild: !0,
90
+ children: t({ selectedValue: r, selectedContent: o })
91
+ }
92
+ ) : /* @__PURE__ */ e(N, { ...a, selectedContent: o });
93
+ };
94
+ v.displayName = l.Trigger.displayName;
95
+ const w = c(
66
96
  [
67
97
  "relative z-select max-h-(--radix-select-content-available-height) overflow-x-hidden overflow-y-auto",
68
98
  "rounded-sm bg-muted",
@@ -83,7 +113,7 @@ const h = n(
83
113
  position: "popper"
84
114
  }
85
115
  }
86
- ), x = n("p-8", {
116
+ ), C = c("p-8", {
87
117
  variants: {
88
118
  position: {
89
119
  popper: "h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width)",
@@ -93,122 +123,130 @@ const h = n(
93
123
  defaultVariants: {
94
124
  position: "popper"
95
125
  }
96
- }), y = ({
126
+ }), T = ({
97
127
  ref: t,
98
- className: l,
99
- children: o,
100
- position: r = "popper",
128
+ className: a,
129
+ children: r,
130
+ position: o = "popper",
101
131
  ...i
102
- }) => /* @__PURE__ */ e(a.Portal, { "data-slot": "select-portal", children: /* @__PURE__ */ d(
103
- a.Content,
132
+ }) => /* @__PURE__ */ e(l.Portal, { "data-slot": "select-portal", children: /* @__PURE__ */ d(
133
+ l.Content,
104
134
  {
105
135
  ref: t,
106
136
  "data-slot": "select-content",
107
- className: s(h({ position: r }), l),
108
- position: r,
137
+ className: s(w({ position: o }), a),
138
+ position: o,
109
139
  ...i,
110
140
  children: [
111
- /* @__PURE__ */ e(z, {}),
112
- /* @__PURE__ */ e(a.Viewport, { className: x({ position: r }), children: o }),
113
- /* @__PURE__ */ e(C, {})
141
+ /* @__PURE__ */ e(D, {}),
142
+ /* @__PURE__ */ e(l.Viewport, { className: C({ position: o }), children: r }),
143
+ /* @__PURE__ */ e(P, {})
114
144
  ]
115
145
  }
116
146
  ) });
117
- y.displayName = a.Content.displayName;
118
- const N = ({ ref: t, className: l, ...o }) => /* @__PURE__ */ e(
119
- a.Label,
147
+ T.displayName = l.Content.displayName;
148
+ const I = ({ ref: t, className: a, ...r }) => /* @__PURE__ */ e(
149
+ l.Label,
120
150
  {
121
151
  ref: t,
122
152
  "data-slot": "select-label",
123
- className: s("mb-4 px-8 pt-8 pb-0 body-3-semi-bold text-muted", l),
124
- ...o
153
+ className: s("mb-4 px-8 pt-8 pb-0 body-3-semi-bold text-muted", a),
154
+ ...r
125
155
  }
126
156
  );
127
- N.displayName = a.Label.displayName;
128
- const S = s(
157
+ I.displayName = l.Label.displayName;
158
+ const V = s(
129
159
  "relative flex w-full cursor-pointer items-center bg-base-transparent select-none",
130
160
  "rounded-sm p-8",
131
161
  "body-2 text-base",
132
162
  "outline-hidden",
163
+ "truncate",
133
164
  "focus:bg-base-transparent-hover",
134
165
  "active:bg-base-transparent-pressed",
135
166
  "data-disabled:cursor-not-allowed data-disabled:text-disabled"
136
- ), v = ({
167
+ ), z = ({
137
168
  ref: t,
138
- className: l,
139
- children: o,
140
- ...r
169
+ className: a,
170
+ children: r,
171
+ ...o
141
172
  }) => /* @__PURE__ */ d(
142
- a.Item,
173
+ l.Item,
143
174
  {
144
175
  ref: t,
145
176
  "data-slot": "select-item",
146
- className: s(S, l),
147
- ...r,
177
+ className: s(V, a),
178
+ ...o,
148
179
  children: [
149
- o,
150
- /* @__PURE__ */ e("span", { className: "absolute right-8 flex size-24 items-center justify-center", children: /* @__PURE__ */ e(a.ItemIndicator, { children: /* @__PURE__ */ e(m, { size: 24, className: "text-active" }) }) })
180
+ r,
181
+ /* @__PURE__ */ e("span", { className: "absolute right-8 flex size-24 items-center justify-center", children: /* @__PURE__ */ e(l.ItemIndicator, { children: /* @__PURE__ */ e(f, { size: 24, className: "ms-8 shrink-0 text-active" }) }) })
151
182
  ]
152
183
  }
153
184
  );
154
- v.displayName = a.Item.displayName;
155
- const w = ({
185
+ z.displayName = l.Item.displayName;
186
+ const j = ({
156
187
  ref: t,
157
- className: l,
158
- ...o
159
- }) => /* @__PURE__ */ e(p, { ref: t, className: s("mx-8 my-4 w-auto", l), ...o });
160
- w.displayName = "SelectSeparator";
161
- const I = ({ ref: t, className: l, ...o }) => /* @__PURE__ */ e(
162
- a.ItemText,
188
+ className: a,
189
+ ...r
190
+ }) => /* @__PURE__ */ e(h, { ref: t, className: s("mx-8 my-4 w-auto", a), ...r });
191
+ j.displayName = "SelectSeparator";
192
+ const B = ({ ref: t, className: a, ...r }) => /* @__PURE__ */ e(
193
+ l.ItemText,
163
194
  {
164
195
  ref: t,
165
196
  "data-slot": "select-item-text",
166
- className: s("body-2 text-muted", l),
167
- ...o
197
+ className: s("body-2 text-muted", a),
198
+ ...r
168
199
  }
169
200
  );
170
- I.displayName = a.ItemText.displayName;
171
- function z({
201
+ B.displayName = l.ItemText.displayName;
202
+ function D({
172
203
  className: t,
173
- ...l
204
+ ...a
174
205
  }) {
175
206
  return /* @__PURE__ */ e(
176
- a.ScrollUpButton,
207
+ l.ScrollUpButton,
177
208
  {
178
209
  "data-slot": "select-scroll-up-button",
179
210
  className: s(
180
211
  "flex cursor-default items-center justify-center py-1 text-muted",
181
212
  t
182
213
  ),
183
- ...l,
184
- children: /* @__PURE__ */ e(u, { className: "size-4" })
214
+ ...a,
215
+ children: /* @__PURE__ */ e(x, { className: "size-4" })
185
216
  }
186
217
  );
187
218
  }
188
- function C({
219
+ function P({
189
220
  className: t,
190
- ...l
221
+ ...a
191
222
  }) {
192
223
  return /* @__PURE__ */ e(
193
- a.ScrollDownButton,
224
+ l.ScrollDownButton,
194
225
  {
195
226
  "data-slot": "select-scroll-down-button",
196
227
  className: s(
197
228
  "flex cursor-default items-center justify-center py-1 text-muted",
198
229
  t
199
230
  ),
200
- ...l,
201
- children: /* @__PURE__ */ e(c, { className: "size-4" })
231
+ ...a,
232
+ children: /* @__PURE__ */ e(m, { className: "size-4" })
202
233
  }
203
234
  );
204
235
  }
236
+ const M = ({
237
+ selectedValue: t,
238
+ selectedContent: a,
239
+ label: r,
240
+ ...o
241
+ }) => /* @__PURE__ */ e(b, { ...o, children: t ? a : r });
205
242
  export {
206
- k as Select,
207
- y as SelectContent,
208
- G as SelectGroup,
209
- v as SelectItem,
210
- I as SelectItemText,
211
- N as SelectLabel,
212
- w as SelectSeparator,
213
- g as SelectTrigger
243
+ J as Select,
244
+ M as SelectButtonTrigger,
245
+ T as SelectContent,
246
+ K as SelectGroup,
247
+ z as SelectItem,
248
+ B as SelectItemText,
249
+ I as SelectLabel,
250
+ j as SelectSeparator,
251
+ v as SelectTrigger
214
252
  };
@@ -0,0 +1,12 @@
1
+ type SelectContextValue = {
2
+ selectedValue: string;
3
+ };
4
+ export declare const SelectProvider: import('react').FC<{
5
+ children: import('react').ReactNode;
6
+ value: SelectContextValue;
7
+ }>, useSelectContext: <ContextRequired extends boolean = boolean>({ consumerName, contextRequired, }: {
8
+ consumerName: string;
9
+ contextRequired: ContextRequired;
10
+ }) => ContextRequired extends true ? SelectContextValue : Partial<SelectContextValue>;
11
+ export {};
12
+ //# sourceMappingURL=SelectContext.d.ts.map