@ledgerhq/lumen-ui-react 0.1.60 → 0.1.62

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 (89) hide show
  1. package/dist/index.js +150 -132
  2. package/dist/lib/Components/core/AmountInput/AmountInput.d.ts +1 -1
  3. package/dist/lib/Components/core/AmountInput/AmountInput.d.ts.map +1 -1
  4. package/dist/lib/Components/core/AmountInput/AmountInput.js +53 -51
  5. package/dist/lib/Components/core/AmountInput/useAmountInputValue/useAmountInputValue.js +3 -3
  6. package/dist/lib/Components/core/Avatar/resolveAvatarColor.js +2 -2
  7. package/dist/lib/Components/core/AvatarButton/AvatarButton.js +6 -6
  8. package/dist/lib/Components/core/Banner/Banner.js +8 -8
  9. package/dist/lib/Components/core/Button/Button.js +10 -10
  10. package/dist/lib/Components/core/Card/Card.js +6 -6
  11. package/dist/lib/Components/core/CardButton/CardButton.d.ts +2 -0
  12. package/dist/lib/Components/core/CardButton/CardButton.d.ts.map +1 -1
  13. package/dist/lib/Components/core/CardButton/CardButton.js +4 -4
  14. package/dist/lib/Components/core/DataTable/DataTable.js +7 -7
  15. package/dist/lib/Components/core/Divider/Divider.js +8 -8
  16. package/dist/lib/Components/core/DotCount/DotCount.js +3 -3
  17. package/dist/lib/Components/core/DotIcon/DotIcon.js +9 -9
  18. package/dist/lib/Components/core/DotSymbol/DotSymbol.js +16 -16
  19. package/dist/lib/Components/core/Link/Link.d.ts +1 -1
  20. package/dist/lib/Components/core/Link/Link.d.ts.map +1 -1
  21. package/dist/lib/Components/core/Link/Link.js +21 -20
  22. package/dist/lib/Components/core/Link/types.d.ts +1 -1
  23. package/dist/lib/Components/core/Link/types.d.ts.map +1 -1
  24. package/dist/lib/Components/core/ListItem/ListItem.js +4 -4
  25. package/dist/lib/Components/core/MediaBanner/MediaBanner.js +19 -19
  26. package/dist/lib/Components/core/MediaButton/MediaButton.js +2 -2
  27. package/dist/lib/Components/core/Menu/Menu.d.ts +3 -2
  28. package/dist/lib/Components/core/Menu/Menu.d.ts.map +1 -1
  29. package/dist/lib/Components/core/Menu/Menu.js +157 -108
  30. package/dist/lib/Components/core/Menu/types.d.ts +31 -0
  31. package/dist/lib/Components/core/Menu/types.d.ts.map +1 -1
  32. package/dist/lib/Components/core/NavBar/CoinCapsule.js +8 -8
  33. package/dist/lib/Components/core/Pagination/Pagination.js +14 -14
  34. package/dist/lib/Components/core/Popover/Popover.js +6 -6
  35. package/dist/lib/Components/core/SearchInput/SearchInput.js +5 -5
  36. package/dist/lib/Components/core/SegmentedControl/SegmentedControl.js +19 -19
  37. package/dist/lib/Components/core/Select/Select.js +8 -8
  38. package/dist/lib/Components/core/SideBar/SideBar.js +14 -14
  39. package/dist/lib/Components/core/Spinner/Spinner.js +4 -4
  40. package/dist/lib/Components/core/Spot/Spot.js +9 -9
  41. package/dist/lib/Components/core/Stepper/Stepper.d.ts +4 -3
  42. package/dist/lib/Components/core/Stepper/Stepper.d.ts.map +1 -1
  43. package/dist/lib/Components/core/Stepper/Stepper.js +137 -65
  44. package/dist/lib/Components/core/Stepper/types.d.ts +12 -2
  45. package/dist/lib/Components/core/Stepper/types.d.ts.map +1 -1
  46. package/dist/lib/Components/core/Switch/Switch.js +5 -5
  47. package/dist/lib/Components/core/Table/Table.js +9 -9
  48. package/dist/lib/Components/core/TileButton/TileButton.js +8 -8
  49. package/dist/lib/Components/core/Timeline/Timeline.d.ts +54 -0
  50. package/dist/lib/Components/core/Timeline/Timeline.d.ts.map +1 -0
  51. package/dist/lib/Components/core/Timeline/Timeline.js +228 -0
  52. package/dist/lib/Components/core/Timeline/index.d.ts +3 -0
  53. package/dist/lib/Components/core/Timeline/index.d.ts.map +1 -0
  54. package/dist/lib/Components/core/Timeline/types.d.ts +148 -0
  55. package/dist/lib/Components/core/Timeline/types.d.ts.map +1 -0
  56. package/dist/lib/Components/core/Toast/Toast.d.ts +25 -0
  57. package/dist/lib/Components/core/Toast/Toast.d.ts.map +1 -0
  58. package/dist/lib/Components/core/Toast/Toast.js +68 -0
  59. package/dist/lib/Components/core/Toast/Toaster.d.ts +27 -0
  60. package/dist/lib/Components/core/Toast/Toaster.d.ts.map +1 -0
  61. package/dist/lib/Components/core/Toast/Toaster.js +92 -0
  62. package/dist/lib/Components/core/Toast/hooks/useToastCollapse.d.ts +15 -0
  63. package/dist/lib/Components/core/Toast/hooks/useToastCollapse.d.ts.map +1 -0
  64. package/dist/lib/Components/core/Toast/hooks/useToastCollapse.js +15 -0
  65. package/dist/lib/Components/core/Toast/hooks/useToastViewportPause.d.ts +24 -0
  66. package/dist/lib/Components/core/Toast/hooks/useToastViewportPause.d.ts.map +1 -0
  67. package/dist/lib/Components/core/Toast/hooks/useToastViewportPause.js +27 -0
  68. package/dist/lib/Components/core/Toast/index.d.ts +5 -0
  69. package/dist/lib/Components/core/Toast/index.d.ts.map +1 -0
  70. package/dist/lib/Components/core/Toast/styles.d.ts +20 -0
  71. package/dist/lib/Components/core/Toast/styles.d.ts.map +1 -0
  72. package/dist/lib/Components/core/Toast/styles.js +77 -0
  73. package/dist/lib/Components/core/Toast/types.d.ts +81 -0
  74. package/dist/lib/Components/core/Toast/types.d.ts.map +1 -0
  75. package/dist/lib/Components/core/Trend/Trend.js +2 -2
  76. package/dist/lib/Components/core/index.d.ts +2 -0
  77. package/dist/lib/Components/core/index.d.ts.map +1 -1
  78. package/dist/lib/Components/internal/BaseButton/BaseButton.js +2 -2
  79. package/dist/lib/Components/internal/BaseInput/BaseInput.js +9 -9
  80. package/dist/lib/Components/internal/BaseInput/BaseInputMultiline.js +12 -12
  81. package/dist/lib/Components/internal/BaseTag/BaseTag.js +8 -8
  82. package/dist/lib/Components/symbols/Icon/Icon.js +4 -4
  83. package/dist/lib/Components/symbols/Icon/createIcon.js +8 -8
  84. package/dist/lib/Components/visualization/DonutChart/DonutChartCenter.js +6 -6
  85. package/dist/lib/Components/visualization/DonutChart/donutSizeContext.js +2 -2
  86. package/dist/lib/Components/visualization/Legend/Legend.js +8 -8
  87. package/dist/libs/utils-shared/dist/index.js +306 -141
  88. package/dist/package.json +3 -3
  89. package/package.json +3 -3
@@ -81,7 +81,7 @@ const b = S("gap-8 body-2-semi-bold", {
81
81
  leadingContentShape: "none",
82
82
  hasChevron: !0
83
83
  }
84
- }), k = ({
84
+ }), M = ({
85
85
  ref: r,
86
86
  className: p,
87
87
  appearance: i = "gray",
@@ -129,5 +129,5 @@ const b = S("gap-8 body-2-semi-bold", {
129
129
  );
130
130
  };
131
131
  export {
132
- k as MediaButton
132
+ M as MediaButton
133
133
  };
@@ -1,5 +1,5 @@
1
1
  import { ReactElement } from 'react';
2
- import { MenuProps, MenuTriggerProps, MenuContentProps, MenuItemProps, MenuCheckboxItemProps, MenuRadioItemProps, MenuRadioValue, MenuLabelProps, MenuSeparatorProps, MenuSubTriggerProps, MenuSubContentProps, MenuGroupProps, MenuRadioGroupProps, MenuSubProps } from './types';
2
+ import { MenuProps, MenuTriggerProps, MenuContentProps, MenuItemProps, MenuCheckboxItemProps, MenuSwitchItemProps, MenuRadioItemProps, MenuRadioValue, MenuLabelProps, MenuSeparatorProps, MenuSubTriggerProps, MenuSubContentProps, MenuGroupProps, MenuRadioGroupProps, MenuSubProps } from './types';
3
3
  declare function Menu({ ...props }: MenuProps): import("react/jsx-runtime").JSX.Element;
4
4
  declare const MenuTrigger: ({ ref, render, className, ...props }: MenuTriggerProps) => import("react/jsx-runtime").JSX.Element;
5
5
  declare function MenuGroup({ ...props }: MenuGroupProps): import("react/jsx-runtime").JSX.Element;
@@ -10,10 +10,11 @@ declare const MenuSubContent: ({ className, children }: MenuSubContentProps) =>
10
10
  declare const MenuContent: ({ side, sideOffset, align, alignOffset, sticky, className, children, }: MenuContentProps) => import("react/jsx-runtime").JSX.Element;
11
11
  declare const MenuItem: ({ ref, className, appearance, disabled: disabledProp, onClick, label, closeOnClick, ...props }: MenuItemProps) => import("react/jsx-runtime").JSX.Element;
12
12
  declare const MenuCheckboxItem: ({ ref, className, children, checked, defaultChecked, onCheckedChange, disabled: disabledProp, label, closeOnClick, ...props }: MenuCheckboxItemProps) => import("react/jsx-runtime").JSX.Element;
13
+ declare const MenuSwitchItem: ({ ref, className, children, checked: checkedProp, defaultChecked, onCheckedChange: onCheckedChangeProp, disabled: disabledProp, label, closeOnClick, ...props }: MenuSwitchItemProps) => import("react/jsx-runtime").JSX.Element;
13
14
  declare const MenuRadioItem: <T extends MenuRadioValue = MenuRadioValue>({ ref, className, children, disabled: disabledProp, ...props }: MenuRadioItemProps<T>) => import("react/jsx-runtime").JSX.Element;
14
15
  declare const MenuLabel: ({ ref, className, ...props }: MenuLabelProps) => import("react/jsx-runtime").JSX.Element;
15
16
  declare const MenuSeparator: ({ ref, className, ...props }: MenuSeparatorProps) => import("react/jsx-runtime").JSX.Element;
16
- export { Menu, MenuTrigger, MenuContent, MenuItem, MenuCheckboxItem, MenuRadioItem, MenuLabel, MenuSeparator, MenuGroup, MenuSub, MenuSubContent, MenuSubTrigger, MenuRadioGroup, };
17
+ export { Menu, MenuTrigger, MenuContent, MenuItem, MenuCheckboxItem, MenuSwitchItem, MenuRadioItem, MenuLabel, MenuSeparator, MenuGroup, MenuSub, MenuSubContent, MenuSubTrigger, MenuRadioGroup, };
17
18
  export declare function createMenuRadioGroup<T extends MenuRadioValue = never>(): {
18
19
  MenuRadioGroup: (props: MenuRadioGroupProps<T>) => ReactElement;
19
20
  MenuRadioItem: (props: MenuRadioItemProps<T>) => ReactElement;
@@ -1 +1 @@
1
- {"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/core/Menu/Menu.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAG1C,OAAO,KAAK,EACV,SAAS,EACT,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,qBAAqB,EACrB,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,EACd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I,+HAWvB,qBAAqB,4CA6BvB,CAAC;AAEF,QAAA,MAAM,cAAc,GAAI,iKAWrB,mBAAmB,4CAoCrB,CAAC;AAEF,QAAA,MAAM,aAAa,GAAI,CAAC,SAAS,cAAc,GAAG,cAAc,EAAE,gEAM/D,kBAAkB,CAAC,CAAC,CAAC,4CAwBvB,CAAC;AAEF,QAAA,MAAM,SAAS,GAAI,8BAA8B,cAAc,4CAO9D,CAAC;AAEF,QAAA,MAAM,aAAa,GAAI,8BAA8B,kBAAkB,4CAEtE,CAAC;AAEF,OAAO,EACL,IAAI,EACJ,WAAW,EACX,WAAW,EACX,QAAQ,EACR,gBAAgB,EAChB,cAAc,EACd,aAAa,EACb,SAAS,EACT,aAAa,EACb,SAAS,EACT,OAAO,EACP,cAAc,EACd,cAAc,EACd,cAAc,GACf,CAAC;AAEF,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,cAAc,GAAG,KAAK,KAAK;IACxE,cAAc,EAAE,CAAC,KAAK,EAAE,mBAAmB,CAAC,CAAC,CAAC,KAAK,YAAY,CAAC;IAChE,aAAa,EAAE,CAAC,KAAK,EAAE,kBAAkB,CAAC,CAAC,CAAC,KAAK,YAAY,CAAC;CAC/D,CAEA"}
@@ -1,25 +1,27 @@
1
1
  import { jsx as t, jsxs as p } from "react/jsx-runtime";
2
- import { cn as n, useDisabledContext as b, DisabledProvider as f } from "../../../../libs/utils-shared/dist/index.js";
3
- import { cva as h } from "class-variance-authority";
4
- import { Check as g } from "../../symbols/icons/Check.js";
5
- import { Divider as C } from "../Divider/Divider.js";
6
- import { ChevronRight as R } from "../../symbols/icons/ChevronRight.js";
7
- import { MenuRoot as S } from "../../../../node_modules/@base-ui/react/esm/menu/root/MenuRoot.js";
8
- import { MenuTrigger as k } from "../../../../node_modules/@base-ui/react/esm/menu/trigger/MenuTrigger.js";
9
- import { MenuPortal as M } from "../../../../node_modules/@base-ui/react/esm/menu/portal/MenuPortal.js";
10
- import { MenuPositioner as x } from "../../../../node_modules/@base-ui/react/esm/menu/positioner/MenuPositioner.js";
11
- import { MenuPopup as N } from "../../../../node_modules/@base-ui/react/esm/menu/popup/MenuPopup.js";
12
- import { MenuItem as y } from "../../../../node_modules/@base-ui/react/esm/menu/item/MenuItem.js";
13
- import { MenuCheckboxItem as z } from "../../../../node_modules/@base-ui/react/esm/menu/checkbox-item/MenuCheckboxItem.js";
14
- import { MenuCheckboxItemIndicator as G } from "../../../../node_modules/@base-ui/react/esm/menu/checkbox-item-indicator/MenuCheckboxItemIndicator.js";
15
- import { MenuRadioItem as P } from "../../../../node_modules/@base-ui/react/esm/menu/radio-item/MenuRadioItem.js";
16
- import { MenuRadioItemIndicator as T } from "../../../../node_modules/@base-ui/react/esm/menu/radio-item-indicator/MenuRadioItemIndicator.js";
17
- import { MenuGroupLabel as $ } from "../../../../node_modules/@base-ui/react/esm/menu/group-label/MenuGroupLabel.js";
18
- import { MenuGroup as j } from "../../../../node_modules/@base-ui/react/esm/menu/group/MenuGroup.js";
19
- import { MenuSubmenuRoot as w } from "../../../../node_modules/@base-ui/react/esm/menu/submenu-root/MenuSubmenuRoot.js";
20
- import { MenuSubmenuTrigger as D } from "../../../../node_modules/@base-ui/react/esm/menu/submenu-trigger/MenuSubmenuTrigger.js";
21
- import { MenuRadioGroup as V } from "../../../../node_modules/@base-ui/react/esm/menu/radio-group/MenuRadioGroup.js";
22
- const v = h(
2
+ import { cn as r, useDisabledContext as b, DisabledProvider as h } from "../../../../libs/utils-shared/dist/index.js";
3
+ import { cva as M } from "class-variance-authority";
4
+ import { Check as x } from "../../symbols/icons/Check.js";
5
+ import { useControllableState as R } from "../../../../utils/useControllableState/useControllableState.js";
6
+ import { Switch as y } from "../Switch/Switch.js";
7
+ import { Divider as w } from "../Divider/Divider.js";
8
+ import { ChevronRight as z } from "../../symbols/icons/ChevronRight.js";
9
+ import { MenuRoot as G } from "../../../../node_modules/@base-ui/react/esm/menu/root/MenuRoot.js";
10
+ import { MenuTrigger as P } from "../../../../node_modules/@base-ui/react/esm/menu/trigger/MenuTrigger.js";
11
+ import { MenuPortal as C } from "../../../../node_modules/@base-ui/react/esm/menu/portal/MenuPortal.js";
12
+ import { MenuPositioner as N } from "../../../../node_modules/@base-ui/react/esm/menu/positioner/MenuPositioner.js";
13
+ import { MenuPopup as v } from "../../../../node_modules/@base-ui/react/esm/menu/popup/MenuPopup.js";
14
+ import { MenuItem as T } from "../../../../node_modules/@base-ui/react/esm/menu/item/MenuItem.js";
15
+ import { MenuCheckboxItem as I } from "../../../../node_modules/@base-ui/react/esm/menu/checkbox-item/MenuCheckboxItem.js";
16
+ import { MenuCheckboxItemIndicator as $ } from "../../../../node_modules/@base-ui/react/esm/menu/checkbox-item-indicator/MenuCheckboxItemIndicator.js";
17
+ import { MenuRadioItem as j } from "../../../../node_modules/@base-ui/react/esm/menu/radio-item/MenuRadioItem.js";
18
+ import { MenuRadioItemIndicator as W } from "../../../../node_modules/@base-ui/react/esm/menu/radio-item-indicator/MenuRadioItemIndicator.js";
19
+ import { MenuGroupLabel as D } from "../../../../node_modules/@base-ui/react/esm/menu/group-label/MenuGroupLabel.js";
20
+ import { MenuGroup as L } from "../../../../node_modules/@base-ui/react/esm/menu/group/MenuGroup.js";
21
+ import { MenuSubmenuRoot as O } from "../../../../node_modules/@base-ui/react/esm/menu/submenu-root/MenuSubmenuRoot.js";
22
+ import { MenuSubmenuTrigger as V } from "../../../../node_modules/@base-ui/react/esm/menu/submenu-trigger/MenuSubmenuTrigger.js";
23
+ import { MenuRadioGroup as q } from "../../../../node_modules/@base-ui/react/esm/menu/radio-group/MenuRadioGroup.js";
24
+ const k = M(
23
25
  [
24
26
  "min-w-160 overflow-hidden rounded-sm bg-muted p-8",
25
27
  "shadow-sm outline-none"
@@ -49,9 +51,9 @@ const v = h(
49
51
  side: "bottom"
50
52
  }
51
53
  }
52
- ), l = h(
53
- n(
54
- "relative flex cursor-default items-center gap-12 select-none",
54
+ ), c = M(
55
+ r(
56
+ "relative flex cursor-pointer items-center gap-12 select-none",
55
57
  "h-44 rounded-sm px-8 outline-hidden",
56
58
  "body-2-semi-bold",
57
59
  "transition-colors",
@@ -70,40 +72,40 @@ const v = h(
70
72
  appearance: "base"
71
73
  }
72
74
  }
73
- ), W = n("px-8 py-4 body-3-semi-bold text-muted"), L = n(
74
- l(),
75
+ ), A = r("px-8 py-4 body-3-semi-bold text-muted"), B = r(
76
+ c(),
75
77
  "data-popup-open:bg-base-transparent-hover"
76
78
  );
77
- function me({ ...e }) {
78
- return /* @__PURE__ */ t(S, { ...e });
79
+ function be({ ...e }) {
80
+ return /* @__PURE__ */ t(G, { ...e });
79
81
  }
80
- const ue = ({
82
+ const he = ({
81
83
  ref: e,
82
84
  render: a,
83
85
  className: o,
84
- ...r
86
+ ...n
85
87
  }) => /* @__PURE__ */ t(
86
- k,
88
+ P,
87
89
  {
88
90
  ref: e,
89
91
  "data-slot": "menu-trigger",
90
92
  render: a,
91
- className: n("data-popup-open:z-menu", o),
92
- ...r
93
+ className: r("data-popup-open:z-menu", o),
94
+ ...n
93
95
  }
94
96
  );
95
- function de({ ...e }) {
96
- return /* @__PURE__ */ t(j, { "data-slot": "menu-group", ...e });
97
+ function fe({ ...e }) {
98
+ return /* @__PURE__ */ t(L, { "data-slot": "menu-group", ...e });
97
99
  }
98
- function le({ ...e }) {
99
- return /* @__PURE__ */ t(w, { ...e });
100
+ function ge({ ...e }) {
101
+ return /* @__PURE__ */ t(O, { ...e });
100
102
  }
101
- function O({
103
+ function E({
102
104
  onValueChange: e,
103
105
  ...a
104
106
  }) {
105
107
  return /* @__PURE__ */ t(
106
- V,
108
+ q,
107
109
  {
108
110
  "data-slot": "menu-radio-group",
109
111
  onValueChange: (o) => e?.(String(o)),
@@ -111,170 +113,217 @@ function O({
111
113
  }
112
114
  );
113
115
  }
114
- const ce = ({
116
+ const Me = ({
115
117
  ref: e,
116
118
  className: a,
117
119
  children: o,
118
- ...r
120
+ ...n
119
121
  }) => /* @__PURE__ */ p(
120
- D,
122
+ V,
121
123
  {
122
124
  ref: e,
123
125
  "data-slot": "menu-sub-trigger",
124
- className: n(L, a),
125
- ...r,
126
+ className: r(B, a),
127
+ ...n,
126
128
  children: [
127
129
  o,
128
- /* @__PURE__ */ t(R, { size: 20, className: "ml-auto text-muted" })
130
+ /* @__PURE__ */ t(z, { size: 20, className: "ml-auto text-muted" })
129
131
  ]
130
132
  }
131
- ), pe = ({ className: e, children: a }) => /* @__PURE__ */ t(M, { children: /* @__PURE__ */ t(x, { className: "z-menu", side: "right", sideOffset: 4, children: /* @__PURE__ */ t(
132
- N,
133
+ ), xe = ({ className: e, children: a }) => /* @__PURE__ */ t(C, { children: /* @__PURE__ */ t(N, { className: "z-menu", side: "right", sideOffset: 4, children: /* @__PURE__ */ t(
134
+ v,
133
135
  {
134
136
  "data-slot": "menu-sub-content",
135
- className: n(v({ side: "right" }), e),
137
+ className: r(k({ side: "right" }), e),
136
138
  onClick: (o) => o.stopPropagation(),
137
139
  children: a
138
140
  }
139
- ) }) }), be = ({
141
+ ) }) }), Ce = ({
140
142
  side: e = "bottom",
141
143
  sideOffset: a = 4,
142
144
  align: o = "start",
143
- alignOffset: r,
145
+ alignOffset: n,
144
146
  sticky: i = !0,
145
147
  className: s,
146
148
  children: m
147
- }) => /* @__PURE__ */ t(M, { children: /* @__PURE__ */ t(
148
- x,
149
+ }) => /* @__PURE__ */ t(C, { children: /* @__PURE__ */ t(
150
+ N,
149
151
  {
150
152
  className: "z-menu",
151
153
  side: e,
152
154
  sideOffset: a,
153
155
  align: o,
154
- alignOffset: r,
156
+ alignOffset: n,
155
157
  sticky: i,
156
158
  children: /* @__PURE__ */ t(
157
- N,
159
+ v,
158
160
  {
159
161
  "data-slot": "menu-content",
160
- className: n(v({ side: e }), s),
161
- onClick: (u) => u.stopPropagation(),
162
+ className: r(k({ side: e }), s),
163
+ onClick: (d) => d.stopPropagation(),
162
164
  children: m
163
165
  }
164
166
  )
165
167
  }
166
- ) }), fe = ({
168
+ ) }), Ne = ({
167
169
  ref: e,
168
170
  className: a,
169
171
  appearance: o = "base",
170
- disabled: r,
172
+ disabled: n,
171
173
  onClick: i,
172
174
  label: s,
173
175
  closeOnClick: m = !0,
174
- ...u
176
+ ...d
175
177
  }) => {
176
- const d = b({
178
+ const l = b({
177
179
  consumerName: "MenuItem",
178
- mergeWith: { disabled: r }
180
+ mergeWith: { disabled: n }
179
181
  });
180
- return /* @__PURE__ */ t(f, { value: { disabled: d }, children: /* @__PURE__ */ t(
181
- y,
182
+ return /* @__PURE__ */ t(h, { value: { disabled: l }, children: /* @__PURE__ */ t(
183
+ T,
182
184
  {
183
185
  ref: e,
184
186
  "data-slot": "menu-item",
185
187
  label: s,
186
- disabled: d,
188
+ disabled: l,
187
189
  closeOnClick: m,
188
- className: n(l({ appearance: o }), a),
190
+ className: r(c({ appearance: o }), a),
189
191
  onClick: i,
190
- ...u
192
+ ...d
191
193
  }
192
194
  ) });
193
- }, he = ({
195
+ }, ve = ({
194
196
  ref: e,
195
197
  className: a,
196
198
  children: o,
197
- checked: r,
199
+ checked: n,
198
200
  defaultChecked: i,
199
201
  onCheckedChange: s,
200
202
  disabled: m,
201
- label: u,
202
- closeOnClick: d,
203
- ...I
203
+ label: d,
204
+ closeOnClick: l,
205
+ ...f
204
206
  }) => {
205
- const c = b({
207
+ const u = b({
206
208
  consumerName: "MenuCheckboxItem",
207
209
  mergeWith: { disabled: m }
208
210
  });
209
- return /* @__PURE__ */ t(f, { value: { disabled: c }, children: /* @__PURE__ */ p(
210
- z,
211
+ return /* @__PURE__ */ t(h, { value: { disabled: u }, children: /* @__PURE__ */ p(
212
+ I,
211
213
  {
212
214
  ref: e,
213
215
  "data-slot": "menu-checkbox-item",
214
- label: u,
215
- checked: r,
216
+ label: d,
217
+ checked: n,
216
218
  defaultChecked: i,
217
- disabled: c,
218
- closeOnClick: d ?? !1,
219
- className: n(l(), a),
219
+ disabled: u,
220
+ closeOnClick: l ?? !1,
221
+ className: r(c(), a),
220
222
  onCheckedChange: s,
221
- ...I,
223
+ ...f,
224
+ children: [
225
+ o,
226
+ /* @__PURE__ */ t("span", { className: "ml-auto flex size-24 items-center justify-center", children: /* @__PURE__ */ t($, { children: /* @__PURE__ */ t(x, { disabled: u, size: 24, className: "text-active" }) }) })
227
+ ]
228
+ }
229
+ ) });
230
+ }, Ie = ({
231
+ ref: e,
232
+ className: a,
233
+ children: o,
234
+ checked: n,
235
+ defaultChecked: i,
236
+ onCheckedChange: s,
237
+ disabled: m,
238
+ label: d,
239
+ closeOnClick: l,
240
+ ...f
241
+ }) => {
242
+ const u = b({
243
+ consumerName: "MenuSwitchItem",
244
+ mergeWith: { disabled: m }
245
+ }), [g, S] = R({
246
+ prop: n,
247
+ onChange: s,
248
+ defaultProp: i ?? !1
249
+ });
250
+ return /* @__PURE__ */ t(h, { value: { disabled: u }, children: /* @__PURE__ */ p(
251
+ I,
252
+ {
253
+ ref: e,
254
+ "data-slot": "menu-switch-item",
255
+ label: d,
256
+ checked: g,
257
+ disabled: u,
258
+ closeOnClick: l ?? !1,
259
+ className: r(c(), a),
260
+ onCheckedChange: S,
261
+ ...f,
222
262
  children: [
223
263
  o,
224
- /* @__PURE__ */ t("span", { className: "ml-auto flex size-24 items-center justify-center", children: /* @__PURE__ */ t(G, { children: /* @__PURE__ */ t(g, { disabled: c, size: 24, className: "text-active" }) }) })
264
+ /* @__PURE__ */ t("span", { className: "pointer-events-none ml-auto", children: /* @__PURE__ */ t(
265
+ y,
266
+ {
267
+ selected: g,
268
+ disabled: u,
269
+ "aria-hidden": !0,
270
+ tabIndex: -1
271
+ }
272
+ ) })
225
273
  ]
226
274
  }
227
275
  ) });
228
- }, q = ({
276
+ }, F = ({
229
277
  ref: e,
230
278
  className: a,
231
279
  children: o,
232
- disabled: r,
280
+ disabled: n,
233
281
  ...i
234
282
  }) => {
235
283
  const s = b({
236
284
  consumerName: "MenuRadioItem",
237
- mergeWith: { disabled: r }
285
+ mergeWith: { disabled: n }
238
286
  });
239
- return /* @__PURE__ */ t(f, { value: { disabled: s }, children: /* @__PURE__ */ p(
240
- P,
287
+ return /* @__PURE__ */ t(h, { value: { disabled: s }, children: /* @__PURE__ */ p(
288
+ j,
241
289
  {
242
290
  ref: e,
243
291
  "data-slot": "menu-radio-item",
244
292
  disabled: s,
245
- className: n(l(), a),
293
+ className: r(c(), a),
246
294
  ...i,
247
295
  children: [
248
296
  o,
249
- /* @__PURE__ */ t("span", { className: "ml-auto flex size-24 items-center justify-center", children: /* @__PURE__ */ t(T, { children: /* @__PURE__ */ t(g, { disabled: s, size: 24, className: "text-active" }) }) })
297
+ /* @__PURE__ */ t("span", { className: "ml-auto flex size-24 items-center justify-center", children: /* @__PURE__ */ t(W, { children: /* @__PURE__ */ t(x, { disabled: s, size: 24, className: "text-active" }) }) })
250
298
  ]
251
299
  }
252
300
  ) });
253
- }, ge = ({ ref: e, className: a, ...o }) => /* @__PURE__ */ t(
254
- $,
301
+ }, ke = ({ ref: e, className: a, ...o }) => /* @__PURE__ */ t(
302
+ D,
255
303
  {
256
304
  ref: e,
257
305
  "data-slot": "menu-label",
258
- className: n(W, a),
306
+ className: r(A, a),
259
307
  ...o
260
308
  }
261
- ), Me = ({ ref: e, className: a, ...o }) => /* @__PURE__ */ t(C, { ref: e, className: n("mx-8 my-4 w-auto", a), ...o });
262
- function xe() {
263
- return { MenuRadioGroup: O, MenuRadioItem: q };
309
+ ), Se = ({ ref: e, className: a, ...o }) => /* @__PURE__ */ t(w, { ref: e, className: r("mx-8 my-4 w-auto", a), ...o });
310
+ function Re() {
311
+ return { MenuRadioGroup: E, MenuRadioItem: F };
264
312
  }
265
313
  export {
266
- me as Menu,
267
- he as MenuCheckboxItem,
268
- be as MenuContent,
269
- de as MenuGroup,
270
- fe as MenuItem,
271
- ge as MenuLabel,
272
- O as MenuRadioGroup,
273
- q as MenuRadioItem,
274
- Me as MenuSeparator,
275
- le as MenuSub,
276
- pe as MenuSubContent,
277
- ce as MenuSubTrigger,
278
- ue as MenuTrigger,
279
- xe as createMenuRadioGroup
314
+ be as Menu,
315
+ ve as MenuCheckboxItem,
316
+ Ce as MenuContent,
317
+ fe as MenuGroup,
318
+ Ne as MenuItem,
319
+ ke as MenuLabel,
320
+ E as MenuRadioGroup,
321
+ F as MenuRadioItem,
322
+ Se as MenuSeparator,
323
+ ge as MenuSub,
324
+ xe as MenuSubContent,
325
+ Me as MenuSubTrigger,
326
+ Ie as MenuSwitchItem,
327
+ he as MenuTrigger,
328
+ Re as createMenuRadioGroup
280
329
  };
@@ -157,6 +157,37 @@ export type MenuCheckboxItemProps = {
157
157
  */
158
158
  closeOnClick?: boolean;
159
159
  } & Omit<MenuItemProps, 'closeOnClick'>;
160
+ /**
161
+ * Props for a Menu switch item component.
162
+ *
163
+ * An item that can be controlled and rendered like a switch.
164
+ */
165
+ export type MenuSwitchItemProps = {
166
+ /**
167
+ * The controlled checked state of the switch.
168
+ * Must be used in conjunction with `onCheckedChange`.
169
+ */
170
+ checked?: boolean;
171
+ /**
172
+ * The checked state of the switch when it is initially rendered.
173
+ * Use when you do not need to control its checked state.
174
+ *
175
+ * @default false
176
+ */
177
+ defaultChecked?: boolean;
178
+ /**
179
+ * Event handler called when the checked state changes.
180
+ *
181
+ * @param checked - The new checked state
182
+ */
183
+ onCheckedChange?: (checked: boolean) => void;
184
+ /**
185
+ * Whether the menu closes when this item is clicked.
186
+ *
187
+ * @default false
188
+ */
189
+ closeOnClick?: boolean;
190
+ } & Pick<MenuItemProps, 'className' | 'disabled' | 'label'> & ComponentPropsWithRef<'div'>;
160
191
  /**
161
192
  * Props for a Menu radio item component.
162
193
  *
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/core/Menu/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,KAAK,EACV,qBAAqB,EACrB,wBAAwB,EACxB,SAAS,EACV,MAAM,OAAO,CAAC;AAEf,KAAK,0BAA0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cAAc,GAAG,wBAAwB,CAAC,KAAK,CAAC,CAAC;AAE7D;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,CAAC,CAAC,SAAS,cAAc,GAAG,cAAc,IAAI;IAC3E;;;OAGG;IACH,KAAK,CAAC,EAAE,CAAC,CAAC;IAEV;;;;OAIG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;CACpC,GAAG,wBAAwB,CAAC,KAAK,CAAC,CAAC;AAEpC;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IAErB;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;;OAIG;IACH,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CACxC,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC;AAEjC;;;;;GAKG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC"}
@@ -1,22 +1,22 @@
1
- import { jsxs as r, jsx as e } from "react/jsx-runtime";
1
+ import { jsxs as a, jsx as e } from "react/jsx-runtime";
2
2
  import { cn as c } from "../../../../libs/utils-shared/dist/index.js";
3
3
  const o = ({
4
4
  ref: s,
5
- ticker: t,
6
- leadingContent: n,
7
- className: a
8
- }) => /* @__PURE__ */ r(
5
+ ticker: n,
6
+ leadingContent: t,
7
+ className: r
8
+ }) => /* @__PURE__ */ a(
9
9
  "div",
10
10
  {
11
11
  ref: s,
12
12
  className: c(
13
13
  "flex items-center gap-8 rounded-full bg-muted-transparent p-8 pr-12",
14
- a
14
+ r
15
15
  ),
16
16
  "data-slot": "coin-capsule",
17
17
  children: [
18
- /* @__PURE__ */ e("span", { className: "flex size-24 shrink-0 items-center justify-center", children: n }),
19
- /* @__PURE__ */ e("span", { className: "body-1 text-base select-none", children: t })
18
+ /* @__PURE__ */ e("span", { className: "flex size-24 shrink-0 items-center justify-center", children: t }),
19
+ /* @__PURE__ */ e("span", { className: "body-1 text-base select-none", children: n })
20
20
  ]
21
21
  }
22
22
  );
@@ -4,30 +4,30 @@ import { getPaginationRange as h } from "./getPaginationRange.js";
4
4
  import { useCommonTranslation as v } from "../../../../i18n/useCommonTranslation.js";
5
5
  import { IconButton as s } from "../IconButton/IconButton.js";
6
6
  import { ChevronLeft as y } from "../../symbols/icons/ChevronLeft.js";
7
- import { Button as k } from "../Button/Button.js";
8
- import { ChevronRight as A } from "../../symbols/icons/ChevronRight.js";
7
+ import { Button as L } from "../Button/Button.js";
8
+ import { ChevronRight as k } from "../../symbols/icons/ChevronRight.js";
9
9
  const R = ({
10
10
  page: p,
11
- totalPages: i,
11
+ totalPages: e,
12
12
  onPageChange: r,
13
13
  siblingCount: c = 1,
14
14
  className: l,
15
15
  ref: m,
16
16
  ...u
17
17
  }) => {
18
- const { t: e } = v();
19
- if (i <= 0)
18
+ const { t: i } = v();
19
+ if (e <= 0)
20
20
  return null;
21
- const a = Math.min(Math.max(p, 1), i), b = Math.max(c, 0), d = h(
21
+ const a = Math.min(Math.max(p, 1), e), b = Math.max(c, 0), d = h(
22
22
  a,
23
- i,
23
+ e,
24
24
  b
25
25
  );
26
26
  return /* @__PURE__ */ g(
27
27
  "nav",
28
28
  {
29
29
  ref: m,
30
- "aria-label": e("components.pagination.navigationAriaLabel"),
30
+ "aria-label": i("components.pagination.navigationAriaLabel"),
31
31
  className: x("flex items-center gap-8 overflow-x-auto p-4", l),
32
32
  ...u,
33
33
  children: [
@@ -39,7 +39,7 @@ const R = ({
39
39
  size: "sm",
40
40
  appearance: "gray",
41
41
  disabled: a <= 1,
42
- "aria-label": e("components.pagination.previousPageAriaLabel"),
42
+ "aria-label": i("components.pagination.previousPageAriaLabel"),
43
43
  onClick: () => r(a - 1)
44
44
  }
45
45
  ),
@@ -56,13 +56,13 @@ const R = ({
56
56
  );
57
57
  const t = n === a;
58
58
  return /* @__PURE__ */ o(
59
- k,
59
+ L,
60
60
  {
61
61
  type: "button",
62
62
  size: "sm",
63
63
  appearance: t ? "gray" : "no-background",
64
64
  className: "shrink-0",
65
- "aria-label": e("components.pagination.pageAriaLabel", {
65
+ "aria-label": i("components.pagination.pageAriaLabel", {
66
66
  page: n
67
67
  }),
68
68
  "aria-current": t ? "page" : void 0,
@@ -76,11 +76,11 @@ const R = ({
76
76
  s,
77
77
  {
78
78
  type: "button",
79
- icon: A,
79
+ icon: k,
80
80
  size: "sm",
81
81
  appearance: "gray",
82
- disabled: a >= i,
83
- "aria-label": e("components.pagination.nextPageAriaLabel"),
82
+ disabled: a >= e,
83
+ "aria-label": i("components.pagination.nextPageAriaLabel"),
84
84
  onClick: () => r(a + 1)
85
85
  }
86
86
  )
@@ -43,7 +43,7 @@ const [b, y] = l("Popover"), C = v(
43
43
  "fixed inset-0 z-dialog-overlay bg-canvas-overlay-subtle",
44
44
  "data-open:animate-fade-in",
45
45
  "data-closed:animate-fade-out"
46
- ), q = ({
46
+ ), B = ({
47
47
  open: o,
48
48
  defaultOpen: a,
49
49
  onOpenChange: r,
@@ -60,7 +60,7 @@ const [b, y] = l("Popover"), C = v(
60
60
  handle: n,
61
61
  children: i
62
62
  }
63
- ) }), B = ({
63
+ ) }), L = ({
64
64
  handle: o,
65
65
  payload: a,
66
66
  render: r,
@@ -117,10 +117,10 @@ const [b, y] = l("Popover"), C = v(
117
117
  }
118
118
  )
119
119
  ] });
120
- }, A = c;
120
+ }, V = c;
121
121
  export {
122
- q as Popover,
122
+ B as Popover,
123
123
  O as PopoverContent,
124
- B as PopoverTrigger,
125
- A as createPopoverHandle
124
+ L as PopoverTrigger,
125
+ V as createPopoverHandle
126
126
  };