@ledgerhq/lumen-ui-react 0.1.20 → 0.1.22

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 (57) hide show
  1. package/dist/index.js +121 -121
  2. package/dist/lib/Components/Banner/Banner.js +1 -1
  3. package/dist/lib/Components/CardButton/CardButton.js +2 -2
  4. package/dist/lib/Components/Dialog/Dialog.d.ts +1 -1
  5. package/dist/lib/Components/Dialog/Dialog.js +4 -4
  6. package/dist/lib/Components/Dialog/DialogHeader/DialogHeader.d.ts +1 -1
  7. package/dist/lib/Components/Dialog/DialogHeader/DialogHeader.d.ts.map +1 -1
  8. package/dist/lib/Components/Dialog/DialogHeader/DialogHeader.js +31 -31
  9. package/dist/lib/Components/Dialog/types.d.ts +3 -2
  10. package/dist/lib/Components/Dialog/types.d.ts.map +1 -1
  11. package/dist/lib/Components/Icon/Icon.js +1 -1
  12. package/dist/lib/Components/InteractiveIcon/InteractiveIcon.js +2 -2
  13. package/dist/lib/Components/Link/Link.js +2 -2
  14. package/dist/lib/Components/ListItem/ListItem.d.ts +2 -2
  15. package/dist/lib/Components/ListItem/ListItem.d.ts.map +1 -1
  16. package/dist/lib/Components/ListItem/ListItem.js +87 -51
  17. package/dist/lib/Components/ListItem/types.d.ts +9 -9
  18. package/dist/lib/Components/ListItem/types.d.ts.map +1 -1
  19. package/dist/lib/Components/MediaButton/MediaButton.d.ts +30 -0
  20. package/dist/lib/Components/MediaButton/MediaButton.d.ts.map +1 -0
  21. package/dist/lib/Components/{TriggerButton/TriggerButton.js → MediaButton/MediaButton.js} +24 -23
  22. package/dist/lib/Components/MediaButton/index.d.ts +3 -0
  23. package/dist/lib/Components/MediaButton/index.d.ts.map +1 -0
  24. package/dist/lib/Components/{TriggerButton → MediaButton}/types.d.ts +9 -4
  25. package/dist/lib/Components/MediaButton/types.d.ts.map +1 -0
  26. package/dist/lib/Components/Popover/Popover.d.ts +1 -1
  27. package/dist/lib/Components/Popover/Popover.d.ts.map +1 -1
  28. package/dist/lib/Components/Popover/Popover.js +36 -34
  29. package/dist/lib/Components/Popover/types.d.ts +11 -1
  30. package/dist/lib/Components/Popover/types.d.ts.map +1 -1
  31. package/dist/lib/Components/Select/Select.d.ts +2 -3
  32. package/dist/lib/Components/Select/Select.d.ts.map +1 -1
  33. package/dist/lib/Components/Select/Select.js +132 -139
  34. package/dist/lib/Components/Select/index.d.ts +1 -1
  35. package/dist/lib/Components/Select/index.d.ts.map +1 -1
  36. package/dist/lib/Components/Select/types.d.ts +2 -10
  37. package/dist/lib/Components/Select/types.d.ts.map +1 -1
  38. package/dist/lib/Components/Spot/Spot.js +2 -2
  39. package/dist/lib/Components/Switch/Switch.js +1 -1
  40. package/dist/lib/Components/Tag/Tag.js +1 -1
  41. package/dist/lib/Components/ThemeProvider/ThemeProvider.d.ts +7 -0
  42. package/dist/lib/Components/ThemeProvider/ThemeProvider.d.ts.map +1 -1
  43. package/dist/lib/Components/ThemeProvider/ThemeProvider.js +24 -18
  44. package/dist/lib/Components/ThemeProvider/ThemeProvider.types.d.ts +7 -1
  45. package/dist/lib/Components/ThemeProvider/ThemeProvider.types.d.ts.map +1 -1
  46. package/dist/lib/Components/ThemeProvider/useRootColorModeSideEffect.d.ts +10 -5
  47. package/dist/lib/Components/ThemeProvider/useRootColorModeSideEffect.d.ts.map +1 -1
  48. package/dist/lib/Components/ThemeProvider/useRootColorModeSideEffect.js +22 -21
  49. package/dist/lib/Components/index.d.ts +1 -1
  50. package/dist/lib/Components/index.d.ts.map +1 -1
  51. package/dist/package.json +3 -2
  52. package/package.json +2 -1
  53. package/dist/lib/Components/TriggerButton/TriggerButton.d.ts +0 -30
  54. package/dist/lib/Components/TriggerButton/TriggerButton.d.ts.map +0 -1
  55. package/dist/lib/Components/TriggerButton/index.d.ts +0 -3
  56. package/dist/lib/Components/TriggerButton/index.d.ts.map +0 -1
  57. package/dist/lib/Components/TriggerButton/types.d.ts.map +0 -1
@@ -1,69 +1,105 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import { useDisabledContext as l, DisabledProvider as m, cn as a, createSafeContext as u } from "../../../libs/utils-shared/dist/index.js";
3
- const [b, d] = u("ListItemTrailing", {
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import { useDisabledContext as c, DisabledProvider as x, cn as r, getButtonA11yProps as b, createSafeContext as f } from "../../../libs/utils-shared/dist/index.js";
3
+ import { cva as p } from "class-variance-authority";
4
+ const [I, l] = f("ListItemTrailing", {
4
5
  isInTrailing: !1
5
- }), I = ({ ref: e, ...t }) => {
6
- const { children: s, className: i, disabled: n, ...o } = t, c = l({
6
+ }), g = p(
7
+ [
8
+ "flex w-full items-center gap-16 px-8",
9
+ "rounded-md bg-base-transparent text-base transition-colors"
10
+ ],
11
+ {
12
+ variants: {
13
+ density: {
14
+ compact: "h-40",
15
+ expanded: "h-64"
16
+ },
17
+ interactive: {
18
+ true: "",
19
+ false: ""
20
+ },
21
+ disabled: {
22
+ true: "cursor-default bg-base-transparent text-disabled",
23
+ false: ""
24
+ }
25
+ },
26
+ compoundVariants: [
27
+ {
28
+ interactive: !0,
29
+ disabled: !1,
30
+ className: "cursor-pointer hover:bg-base-transparent-hover focus-visible:outline-2 focus-visible:outline-focus active:bg-base-transparent-pressed"
31
+ }
32
+ ]
33
+ }
34
+ ), T = ({ onClick: e, ref: t, ...s }) => {
35
+ const {
36
+ children: i,
37
+ className: n,
38
+ disabled: o = !1,
39
+ density: m = "expanded",
40
+ ...u
41
+ } = s, d = c({
7
42
  consumerName: "ListItem",
8
- mergeWith: { disabled: n }
43
+ mergeWith: { disabled: o }
9
44
  });
10
- return /* @__PURE__ */ r(m, { value: { disabled: c }, children: /* @__PURE__ */ r(
11
- "button",
45
+ return /* @__PURE__ */ a(x, { value: { disabled: d }, children: /* @__PURE__ */ a(
46
+ "div",
12
47
  {
13
- ref: e,
14
- type: "button",
15
- disabled: c,
16
- className: a(
17
- "flex h-64 w-full cursor-pointer items-center gap-16 rounded-md bg-base-transparent px-8 py-12 text-base transition-colors",
18
- "hover:bg-base-transparent-hover focus-visible:outline-2 focus-visible:outline-focus active:bg-base-transparent-pressed",
19
- "disabled:cursor-default disabled:bg-base-transparent disabled:text-disabled",
20
- i
48
+ ref: t,
49
+ ...b({ onClick: e, disabled: d }),
50
+ className: r(
51
+ g({
52
+ density: m,
53
+ interactive: !!e,
54
+ disabled: d
55
+ }),
56
+ n
21
57
  ),
22
- ...o,
23
- children: s
58
+ ...u,
59
+ children: i
24
60
  }
25
61
  ) });
26
- }, p = ({
62
+ }, y = ({
27
63
  ref: e,
28
64
  children: t,
29
65
  className: s,
30
66
  ...i
31
- }) => /* @__PURE__ */ r(
67
+ }) => /* @__PURE__ */ a(
32
68
  "div",
33
69
  {
34
70
  ref: e,
35
- className: a("flex min-w-0 flex-1 items-center gap-12", s),
71
+ className: r("flex min-w-0 flex-1 items-center gap-12", s),
36
72
  ...i,
37
73
  children: t
38
74
  }
39
- ), g = ({
75
+ ), h = ({
40
76
  ref: e,
41
77
  children: t,
42
78
  className: s,
43
79
  ...i
44
- }) => /* @__PURE__ */ r(
80
+ }) => /* @__PURE__ */ a(
45
81
  "div",
46
82
  {
47
83
  ref: e,
48
- className: a("flex min-w-0 flex-1 flex-col gap-4", s),
84
+ className: r("flex min-w-0 flex-1 flex-col gap-4", s),
49
85
  ...i,
50
86
  children: t
51
87
  }
52
- ), L = ({
88
+ ), w = ({
53
89
  ref: e,
54
90
  children: t,
55
91
  className: s,
56
92
  ...i
57
93
  }) => {
58
- const { isInTrailing: n } = d({
94
+ const { isInTrailing: n } = l({
59
95
  consumerName: "ListItemContentRow",
60
96
  contextRequired: !1
61
97
  });
62
- return /* @__PURE__ */ r(
98
+ return /* @__PURE__ */ a(
63
99
  "div",
64
100
  {
65
101
  ref: e,
66
- className: a(
102
+ className: r(
67
103
  "flex min-w-0 items-center gap-8",
68
104
  n && "justify-end",
69
105
  s
@@ -72,25 +108,25 @@ const [b, d] = u("ListItemTrailing", {
72
108
  children: t
73
109
  }
74
110
  );
75
- }, v = ({
111
+ }, R = ({
76
112
  ref: e,
77
113
  children: t,
78
114
  className: s,
79
115
  ...i
80
116
  }) => {
81
- const n = l({
117
+ const n = c({
82
118
  consumerName: "ListItemTitle",
83
119
  contextRequired: !0
84
- }), { isInTrailing: o } = d({
120
+ }), { isInTrailing: o } = l({
85
121
  consumerName: "ListItemTitle",
86
122
  contextRequired: !1
87
123
  });
88
- return /* @__PURE__ */ r(
124
+ return /* @__PURE__ */ a(
89
125
  "div",
90
126
  {
91
127
  ref: e,
92
- className: a(
93
- "min-w-0 flex-1 truncate body-2-semi-bold",
128
+ className: r(
129
+ "min-w-0 truncate body-2-semi-bold",
94
130
  o ? "justify-end text-end" : "justify-start text-start",
95
131
  n && "text-disabled",
96
132
  s
@@ -99,25 +135,25 @@ const [b, d] = u("ListItemTrailing", {
99
135
  children: t
100
136
  }
101
137
  );
102
- }, N = ({
138
+ }, j = ({
103
139
  ref: e,
104
140
  children: t,
105
141
  className: s,
106
142
  ...i
107
143
  }) => {
108
- const n = l({
144
+ const n = c({
109
145
  consumerName: "ListItemDescription",
110
146
  contextRequired: !0
111
- }), { isInTrailing: o } = d({
147
+ }), { isInTrailing: o } = l({
112
148
  consumerName: "ListItemDescription",
113
149
  contextRequired: !1
114
150
  });
115
- return /* @__PURE__ */ r(
151
+ return /* @__PURE__ */ a(
116
152
  "div",
117
153
  {
118
154
  ref: e,
119
- className: a(
120
- "min-w-0 flex-1 items-center truncate body-3 text-muted",
155
+ className: r(
156
+ "min-w-0 items-center truncate body-3 text-muted",
121
157
  o ? "justify-end text-end" : "justify-start text-start",
122
158
  n && "text-disabled",
123
159
  s
@@ -126,21 +162,21 @@ const [b, d] = u("ListItemTrailing", {
126
162
  children: t
127
163
  }
128
164
  );
129
- }, T = ({
165
+ }, q = ({
130
166
  ref: e,
131
167
  children: t,
132
168
  className: s,
133
169
  ...i
134
170
  }) => {
135
- const n = l({
171
+ const n = c({
136
172
  consumerName: "ListItemTrailing",
137
173
  contextRequired: !0
138
174
  });
139
- return /* @__PURE__ */ r(b, { value: { isInTrailing: !0 }, children: /* @__PURE__ */ r(
175
+ return /* @__PURE__ */ a(I, { value: { isInTrailing: !0 }, children: /* @__PURE__ */ a(
140
176
  "div",
141
177
  {
142
178
  ref: e,
143
- className: a(
179
+ className: r(
144
180
  "flex shrink-0 items-center",
145
181
  n && "text-disabled",
146
182
  s
@@ -151,11 +187,11 @@ const [b, d] = u("ListItemTrailing", {
151
187
  ) });
152
188
  };
153
189
  export {
154
- I as ListItem,
155
- g as ListItemContent,
156
- L as ListItemContentRow,
157
- N as ListItemDescription,
158
- p as ListItemLeading,
159
- v as ListItemTitle,
160
- T as ListItemTrailing
190
+ T as ListItem,
191
+ h as ListItemContent,
192
+ w as ListItemContentRow,
193
+ j as ListItemDescription,
194
+ y as ListItemLeading,
195
+ R as ListItemTitle,
196
+ q as ListItemTrailing
161
197
  };
@@ -1,10 +1,5 @@
1
- import { ButtonHTMLAttributes, ComponentPropsWithRef, ReactNode } from 'react';
2
- /**
3
- * Context value for passing state to sub-components
4
- */
5
- export type ListItemContextValue = {
6
- disabled?: boolean;
7
- };
1
+ import { Density } from '@ledgerhq/lumen-utils-shared';
2
+ import { ComponentPropsWithRef, MouseEventHandler, ReactNode } from 'react';
8
3
  /**
9
4
  * Props for the ListItem root component
10
5
  */
@@ -13,6 +8,11 @@ export type ListItemProps = {
13
8
  * The content of the list item (ListItemLeading, ListItemTrailing)
14
9
  */
15
10
  children: ReactNode;
11
+ /**
12
+ * The density of the list item.
13
+ * @default 'expanded'
14
+ */
15
+ density?: Density;
16
16
  /**
17
17
  * custom classname
18
18
  */
@@ -24,8 +24,8 @@ export type ListItemProps = {
24
24
  /**
25
25
  * Callback function when the list item is pressed.
26
26
  */
27
- onClick?: ButtonHTMLAttributes<HTMLButtonElement>['onClick'];
28
- } & Omit<ComponentPropsWithRef<'button'>, 'children'>;
27
+ onClick?: MouseEventHandler<HTMLDivElement>;
28
+ } & Omit<ComponentPropsWithRef<'div'>, 'children'>;
29
29
  /**
30
30
  * Props for the ListItemLeading component
31
31
  */
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/ListItem/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,qBAAqB,EACrB,SAAS,EACV,MAAM,OAAO,CAAC;AAEf;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,OAAO,CAAC,EAAE,oBAAoB,CAAC,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC;CAC9D,GAAG,IAAI,CAAC,qBAAqB,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC,CAAC;AAEtD;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC;AAEjC;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC;AAEjC;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC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AAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC;AAEjC;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC;AAEjC;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC;AAEjC;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC;AAEjC;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC;AAEjC;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,30 @@
1
+ import { MediaButtonProps } from './types';
2
+ /**
3
+ * Media button for select/dropdown components. Displays a label with an optional
4
+ * leading icon and a trailing chevron indicator.
5
+ *
6
+ * This component is intended to be used exclusively as the trigger inside a Select or
7
+ * dropdown pattern. It should not be used as a standalone action button — use `Button`
8
+ * or `IconButton` instead.
9
+ *
10
+ * @see {@link https://www.figma.com/design/JxaLVMTWirCpU0rsbZ30k7/2.-Components-Library?node-id=6389-45680 Figma}
11
+ *
12
+ * @example
13
+ * import { MediaButton } from '@ledgerhq/lumen-ui-react';
14
+ * import { Settings } from '@ledgerhq/lumen-ui-react/symbols';
15
+ *
16
+ * // With flat interface icon
17
+ * <MediaButton icon={<Settings size={20} />} iconType="flat">
18
+ * Network
19
+ * </MediaButton>
20
+ *
21
+ * // With rounded crypto icon
22
+ * <MediaButton icon={<CryptoIcon ledgerId="bitcoin" size="32px" />} iconType="rounded">
23
+ * Bitcoin
24
+ * </MediaButton>
25
+ *
26
+ * // Without icon
27
+ * <MediaButton>All accounts</MediaButton>
28
+ */
29
+ export declare const MediaButton: ({ ref, className, appearance, size, disabled: disabledProp, asChild, icon, iconType, hideChevron, children, ...props }: MediaButtonProps) => import("react/jsx-runtime").JSX.Element;
30
+ //# sourceMappingURL=MediaButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MediaButton.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/MediaButton/MediaButton.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AA4BhD;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,WAAW,GAAI,wHAYzB,gBAAgB,4CAmClB,CAAC"}
@@ -1,10 +1,10 @@
1
1
  import { jsxs as t, jsx as e } from "react/jsx-runtime";
2
- import { useDisabledContext as y, cn as u } from "../../../libs/utils-shared/dist/index.js";
3
- import { Slot as T, Slottable as g } from "@radix-ui/react-slot";
4
- import { cva as b } from "class-variance-authority";
5
- import { baseButtonVariants as x } from "../Button/BaseButton.js";
6
- import { ChevronDown as z } from "../../Symbols/Icons/ChevronDown.js";
7
- const v = b("gap-8 body-2-semi-bold", {
2
+ import { useDisabledContext as u, cn as b } from "../../../libs/utils-shared/dist/index.js";
3
+ import { Slot as x, Slottable as T } from "@radix-ui/react-slot";
4
+ import { cva as z } from "class-variance-authority";
5
+ import { baseButtonVariants as g } from "../Button/BaseButton.js";
6
+ import { ChevronDown as v } from "../../Symbols/Icons/ChevronDown.js";
7
+ const N = z("gap-8 body-2-semi-bold", {
8
8
  variants: {
9
9
  size: {
10
10
  sm: "",
@@ -31,45 +31,46 @@ const v = b("gap-8 body-2-semi-bold", {
31
31
  }), S = ({
32
32
  ref: i,
33
33
  className: p,
34
- appearance: r = "gray",
35
- size: l = "md",
36
- disabled: m = !1,
34
+ appearance: l = "gray",
35
+ size: m = "md",
36
+ disabled: r = !1,
37
37
  asChild: n = !1,
38
38
  icon: s,
39
39
  iconType: c = "flat",
40
+ hideChevron: d = !1,
40
41
  children: o,
41
- ...d
42
+ ...f
42
43
  }) => {
43
- const a = y({
44
- consumerName: "TriggerButton",
45
- mergeWith: { disabled: m }
46
- }), f = s ? c : "none";
44
+ const a = u({
45
+ consumerName: "MediaButton",
46
+ mergeWith: { disabled: r }
47
+ }), y = s ? c : "none";
47
48
  return /* @__PURE__ */ t(
48
- n ? T : "button",
49
+ n ? x : "button",
49
50
  {
50
51
  ref: i,
51
- className: u(
52
- x({
53
- appearance: r,
52
+ className: b(
53
+ g({
54
+ appearance: l,
54
55
  disabled: a,
55
56
  loading: !1
56
57
  }),
57
- v({ size: l, iconType: f }),
58
+ N({ size: m, iconType: y }),
58
59
  p
59
60
  ),
60
61
  "data-disabled": a || void 0,
61
62
  disabled: a,
62
- ...d,
63
+ ...f,
63
64
  children: [
64
65
  s && /* @__PURE__ */ e("span", { className: "shrink-0", children: s }),
65
66
  /* @__PURE__ */ t("span", { className: "flex items-center gap-2", children: [
66
- n ? /* @__PURE__ */ e(g, { children: o }) : /* @__PURE__ */ e("span", { className: "line-clamp-1 text-left", children: o }),
67
- /* @__PURE__ */ e(z, { size: 20 })
67
+ n ? /* @__PURE__ */ e(T, { children: o }) : /* @__PURE__ */ e("span", { className: "line-clamp-1 text-left", children: o }),
68
+ !d && /* @__PURE__ */ e(v, { size: 20 })
68
69
  ] })
69
70
  ]
70
71
  }
71
72
  );
72
73
  };
73
74
  export {
74
- S as TriggerButton
75
+ S as MediaButton
75
76
  };
@@ -0,0 +1,3 @@
1
+ export { MediaButton } from './MediaButton';
2
+ export * from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/MediaButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,cAAc,SAAS,CAAC"}
@@ -1,13 +1,13 @@
1
1
  import { ComponentPropsWithRef, ReactNode } from 'react';
2
2
  import { BaseButtonProps } from '../Button/types';
3
- export type TriggerButtonProps = {
3
+ export type MediaButtonProps = {
4
4
  /**
5
- * The visual style of the trigger button.
5
+ * The visual style of the media button.
6
6
  * @default 'gray'
7
7
  */
8
8
  appearance?: 'gray' | 'transparent' | 'no-background';
9
9
  /**
10
- * The size variant of the trigger button.
10
+ * The size variant of the media button.
11
11
  * @default 'md'
12
12
  */
13
13
  size?: 'sm' | 'md';
@@ -26,7 +26,12 @@ export type TriggerButtonProps = {
26
26
  */
27
27
  iconType?: 'flat' | 'rounded';
28
28
  /**
29
- * The label content of the trigger button.
29
+ * When true, hides the trailing chevron indicator.
30
+ * @default false
31
+ */
32
+ hideChevron?: boolean;
33
+ /**
34
+ * The label content of the media button.
30
35
  */
31
36
  children: ReactNode;
32
37
  } & Pick<BaseButtonProps, 'disabled' | 'className' | 'asChild'> & ComponentPropsWithRef<'button'>;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/MediaButton/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,aAAa,GAAG,eAAe,CAAC;IACtD;;;OAGG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;CACrB,GAAG,IAAI,CAAC,eAAe,EAAE,UAAU,GAAG,WAAW,GAAG,SAAS,CAAC,GAC7D,qBAAqB,CAAC,QAAQ,CAAC,CAAC"}
@@ -34,7 +34,7 @@ declare const PopoverTrigger: <Payload>({ handle, payload, render, className, ..
34
34
  *
35
35
  * @see {@link https://ldls.vercel.app/?path=/docs/components-popover-overview--docs Storybook}
36
36
  */
37
- declare const PopoverContent: ({ side, sideOffset, align, width, className, children, }: PopoverContentProps) => import("react/jsx-runtime").JSX.Element;
37
+ declare const PopoverContent: ({ side, sideOffset, align, width, initialFocus, className, children, }: PopoverContentProps) => import("react/jsx-runtime").JSX.Element;
38
38
  /**
39
39
  * Creates a handle for connecting a `Popover` with detached `PopoverTrigger` components.
40
40
  *
@@ -1 +1 @@
1
- {"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Popover/Popover.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAGrE,OAAO,KAAK,EACV,YAAY,EACZ,mBAAmB,EACnB,mBAAmB,EAEpB,MAAM,SAAS,CAAC;AA4CjB;;;;;;;;;;;;;;;;;;;GAmBG;AACH,QAAA,MAAM,OAAO,GAAI,OAAO,EAAG,iEAOxB,YAAY,CAAC,OAAO,CAAC,4CAcvB,CAAC;AAEF;;;;;GAKG;AACH,QAAA,MAAM,cAAc,GAAI,OAAO,EAAG,kDAM/B,mBAAmB,CAAC,OAAO,CAAC,4CAS9B,CAAC;AAEF;;;;;GAKG;AACH,QAAA,MAAM,cAAc,GAAI,0DAOrB,mBAAmB,4CA8BrB,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,QAAA,MAAM,mBAAmB,sCAAgC,CAAC;AAE1D,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,mBAAmB,EAAE,CAAC"}
1
+ {"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Popover/Popover.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAGrE,OAAO,KAAK,EACV,YAAY,EACZ,mBAAmB,EACnB,mBAAmB,EAEpB,MAAM,SAAS,CAAC;AA4CjB;;;;;;;;;;;;;;;;;;;GAmBG;AACH,QAAA,MAAM,OAAO,GAAI,OAAO,EAAG,iEAOxB,YAAY,CAAC,OAAO,CAAC,4CAcvB,CAAC;AAEF;;;;;GAKG;AACH,QAAA,MAAM,cAAc,GAAI,OAAO,EAAG,kDAM/B,mBAAmB,CAAC,OAAO,CAAC,4CAS9B,CAAC;AAEF;;;;;GAKG;AACH,QAAA,MAAM,cAAc,GAAI,wEAQrB,mBAAmB,4CA+BrB,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,QAAA,MAAM,mBAAmB,sCAAgC,CAAC;AAE1D,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,mBAAmB,EAAE,CAAC"}
@@ -1,14 +1,14 @@
1
- import { jsx as t, jsxs as d } from "react/jsx-runtime";
2
- import { createSafeContext as m, cn as p } from "../../../libs/utils-shared/dist/index.js";
3
- import { cva as l } from "class-variance-authority";
4
- import { createPopoverHandle as v } from "../../../node_modules/@base-ui/react/esm/popover/store/PopoverHandle.js";
5
- import { PopoverRoot as c } from "../../../node_modules/@base-ui/react/esm/popover/root/PopoverRoot.js";
6
- import { PopoverTrigger as f } from "../../../node_modules/@base-ui/react/esm/popover/trigger/PopoverTrigger.js";
7
- import { PopoverPortal as P } from "../../../node_modules/@base-ui/react/esm/popover/portal/PopoverPortal.js";
8
- import { PopoverBackdrop as u } from "../../../node_modules/@base-ui/react/esm/popover/backdrop/PopoverBackdrop.js";
9
- import { PopoverPositioner as g } from "../../../node_modules/@base-ui/react/esm/popover/positioner/PopoverPositioner.js";
10
- import { PopoverPopup as h } from "../../../node_modules/@base-ui/react/esm/popover/popup/PopoverPopup.js";
11
- const [x, b] = m("Popover"), y = l(
1
+ import { jsx as t, jsxs as m } from "react/jsx-runtime";
2
+ import { createSafeContext as l, cn as p } from "../../../libs/utils-shared/dist/index.js";
3
+ import { cva as v } from "class-variance-authority";
4
+ import { createPopoverHandle as c } from "../../../node_modules/@base-ui/react/esm/popover/store/PopoverHandle.js";
5
+ import { PopoverRoot as f } from "../../../node_modules/@base-ui/react/esm/popover/root/PopoverRoot.js";
6
+ import { PopoverTrigger as P } from "../../../node_modules/@base-ui/react/esm/popover/trigger/PopoverTrigger.js";
7
+ import { PopoverPortal as u } from "../../../node_modules/@base-ui/react/esm/popover/portal/PopoverPortal.js";
8
+ import { PopoverBackdrop as g } from "../../../node_modules/@base-ui/react/esm/popover/backdrop/PopoverBackdrop.js";
9
+ import { PopoverPositioner as h } from "../../../node_modules/@base-ui/react/esm/popover/positioner/PopoverPositioner.js";
10
+ import { PopoverPopup as x } from "../../../node_modules/@base-ui/react/esm/popover/popup/PopoverPopup.js";
11
+ const [b, y] = l("Popover"), C = v(
12
12
  ["overflow-hidden rounded-md bg-canvas-sheet p-16 outline-none", "shadow-xl"],
13
13
  {
14
14
  variants: {
@@ -39,19 +39,19 @@ const [x, b] = m("Popover"), y = l(
39
39
  width: "fit"
40
40
  }
41
41
  }
42
- ), C = p(
42
+ ), w = p(
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,
50
50
  overlay: e = !1,
51
51
  handle: n,
52
52
  children: i
53
- }) => /* @__PURE__ */ t(x, { value: { overlay: e }, children: /* @__PURE__ */ t(
54
- c,
53
+ }) => /* @__PURE__ */ t(b, { value: { overlay: e }, children: /* @__PURE__ */ t(
54
+ f,
55
55
  {
56
56
  open: o,
57
57
  defaultOpen: a,
@@ -60,14 +60,14 @@ const [x, b] = m("Popover"), y = l(
60
60
  handle: n,
61
61
  children: i
62
62
  }
63
- ) }), B = ({
63
+ ) }), O = ({
64
64
  handle: o,
65
65
  payload: a,
66
66
  render: r,
67
67
  className: e,
68
68
  ...n
69
69
  }) => /* @__PURE__ */ t(
70
- f,
70
+ P,
71
71
  {
72
72
  "data-slot": "popover-trigger",
73
73
  handle: o,
@@ -76,28 +76,29 @@ const [x, b] = m("Popover"), y = l(
76
76
  className: p("data-popup-open:z-menu", e),
77
77
  ...n
78
78
  }
79
- ), O = ({
79
+ ), V = ({
80
80
  side: o = "bottom",
81
81
  sideOffset: a = 8,
82
82
  align: r = "start",
83
83
  width: e = "fit",
84
- className: n,
85
- children: i
84
+ initialFocus: n = !1,
85
+ className: i,
86
+ children: s
86
87
  }) => {
87
- const { overlay: s } = b({
88
+ const { overlay: d } = y({
88
89
  consumerName: "PopoverContent",
89
90
  contextRequired: !0
90
91
  });
91
- return /* @__PURE__ */ d(P, { children: [
92
- s && /* @__PURE__ */ t(
93
- u,
92
+ return /* @__PURE__ */ m(u, { children: [
93
+ d && /* @__PURE__ */ t(
94
+ g,
94
95
  {
95
96
  "data-slot": "popover-overlay",
96
- className: C
97
+ className: w
97
98
  }
98
99
  ),
99
100
  /* @__PURE__ */ t(
100
- g,
101
+ h,
101
102
  {
102
103
  "data-slot": "popover-positioner",
103
104
  className: "z-menu",
@@ -105,20 +106,21 @@ const [x, b] = m("Popover"), y = l(
105
106
  sideOffset: a,
106
107
  align: r,
107
108
  children: /* @__PURE__ */ t(
108
- h,
109
+ x,
109
110
  {
110
111
  "data-slot": "popover-content",
111
- className: p(y({ width: e, side: o }), n),
112
- children: i
112
+ initialFocus: n,
113
+ className: p(C({ width: e, side: o }), i),
114
+ children: s
113
115
  }
114
116
  )
115
117
  }
116
118
  )
117
119
  ] });
118
- }, V = v;
120
+ }, A = c;
119
121
  export {
120
- q as Popover,
121
- O as PopoverContent,
122
- B as PopoverTrigger,
123
- V as createPopoverHandle
122
+ B as Popover,
123
+ V as PopoverContent,
124
+ O as PopoverTrigger,
125
+ A as createPopoverHandle
124
126
  };
@@ -1,5 +1,5 @@
1
1
  import { PopoverRootChangeEventDetails, Popover as PopoverNamespace } from '@base-ui/react/popover';
2
- import { ComponentPropsWithRef, ReactNode } from 'react';
2
+ import { ComponentPropsWithRef, ReactNode, RefObject } from 'react';
3
3
  type PopoverHandle<Payload> = PopoverNamespace.Handle<Payload>;
4
4
  export type PopoverWidth = 'fit' | 'fixed';
5
5
  export type PopoverSide = 'top' | 'right' | 'bottom' | 'left';
@@ -110,6 +110,16 @@ export type PopoverContentProps = {
110
110
  * @default 'fit'
111
111
  */
112
112
  width?: PopoverWidth;
113
+ /**
114
+ * Determines the element to focus when the popover is opened.
115
+ *
116
+ * - `false`: Do not move focus.
117
+ * - `true`: Move focus based on the default behavior (first tabbable element or popup).
118
+ * - `RefObject`: Move focus to the ref element.
119
+ *
120
+ * @default false
121
+ */
122
+ initialFocus?: boolean | RefObject<HTMLElement | null>;
113
123
  /**
114
124
  * Additional CSS class names to apply to the popup panel.
115
125
  */
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Popover/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,6BAA6B,EAC7B,OAAO,IAAI,gBAAgB,EAC5B,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,OAAO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1,4 +1,4 @@
1
- import { SelectProps, SelectTriggerProps, SelectContentProps, SelectListProps, SelectSearchProps, SelectItemTextProps, SelectItemProps, SelectItemContentProps, SelectItemDescriptionProps, SelectSeparatorProps, SelectEmptyStateProps, SelectTriggerButtonProps } from './types';
1
+ import { SelectProps, SelectTriggerProps, SelectContentProps, SelectListProps, SelectSearchProps, SelectItemTextProps, SelectItemProps, SelectItemContentProps, SelectItemDescriptionProps, SelectSeparatorProps, SelectEmptyStateProps } from './types';
2
2
  declare function Select({ value, defaultValue, onValueChange, disabled: disabledProp, items, filter, filteredItems, searchValue: searchValueProp, defaultSearchValue, onSearchValueChange, open, defaultOpen, onOpenChange, name, required, children, }: SelectProps): import("react/jsx-runtime").JSX.Element;
3
3
  declare const SelectTrigger: ({ render, disabled, ...props }: SelectTriggerProps) => import("react/jsx-runtime").JSX.Element;
4
4
  declare const SelectContent: ({ ref, className, children, side, sideOffset, align, autoFocusSearch, ...props }: SelectContentProps) => import("react/jsx-runtime").JSX.Element;
@@ -10,6 +10,5 @@ declare const SelectItemContent: ({ ref, className, children, ...props }: Select
10
10
  declare const SelectItemDescription: ({ ref, className, children, ...props }: SelectItemDescriptionProps) => import("react/jsx-runtime").JSX.Element;
11
11
  declare const SelectSearch: ({ className, placeholder, errorMessage, "aria-invalid": ariaInvalid, suffix, onClear, hideClearButton, }: SelectSearchProps) => import("react/jsx-runtime").JSX.Element;
12
12
  declare const SelectEmptyState: ({ ref, className, title, description, ...props }: SelectEmptyStateProps) => import("react/jsx-runtime").JSX.Element;
13
- declare const SelectTriggerButton: ({ selectedValue, selectedContent, label, ...props }: SelectTriggerButtonProps) => import("react/jsx-runtime").JSX.Element;
14
- export { Select, SelectTrigger, SelectContent, SelectSearch, SelectList, SelectItemText, SelectItemContent, SelectItemDescription, SelectItem, SelectSeparator, SelectEmptyState, SelectTriggerButton, };
13
+ export { Select, SelectTrigger, SelectContent, SelectSearch, SelectList, SelectItemText, SelectItemContent, SelectItemDescription, SelectItem, SelectSeparator, SelectEmptyState, };
15
14
  //# sourceMappingURL=Select.d.ts.map