@vkzstudio/muza-ui 1.5.2 → 1.6.0

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 (38) hide show
  1. package/dist/components/Button/Button.d.ts.map +1 -1
  2. package/dist/components/Button/Button.js +42 -40
  3. package/dist/components/Button/Button.stories.d.ts.map +1 -1
  4. package/dist/components/Carousel/Carousel.d.ts +99 -2
  5. package/dist/components/Carousel/Carousel.d.ts.map +1 -1
  6. package/dist/components/Carousel/Carousel.js +208 -151
  7. package/dist/components/Carousel/Carousel.stories.d.ts +2 -0
  8. package/dist/components/Carousel/Carousel.stories.d.ts.map +1 -1
  9. package/dist/components/Carousel/index.js +3 -2
  10. package/dist/components/DropdownMenu/DropdownMenu.d.ts +22 -3
  11. package/dist/components/DropdownMenu/DropdownMenu.d.ts.map +1 -1
  12. package/dist/components/DropdownMenu/DropdownMenu.js +131 -105
  13. package/dist/components/DropdownMenu/DropdownMenu.stories.d.ts +3 -2
  14. package/dist/components/DropdownMenu/DropdownMenu.stories.d.ts.map +1 -1
  15. package/dist/components/MarketNav/MarketNav.examples.d.ts.map +1 -1
  16. package/dist/components/MultiSelect/MultiSelect.d.ts.map +1 -1
  17. package/dist/components/MultiSelect/MultiSelect.js +28 -29
  18. package/dist/components/Select/Select.d.ts.map +1 -1
  19. package/dist/components/Select/Select.js +74 -100
  20. package/dist/components/Select/Select.stories.d.ts.map +1 -1
  21. package/dist/components/Select/SelectTrigger.d.ts +54 -0
  22. package/dist/components/Select/SelectTrigger.d.ts.map +1 -0
  23. package/dist/components/Select/SelectTrigger.js +57 -0
  24. package/dist/components/Select/SelectTrigger.stories.d.ts +11 -0
  25. package/dist/components/Select/SelectTrigger.stories.d.ts.map +1 -0
  26. package/dist/components/Select/index.d.ts +2 -0
  27. package/dist/components/Select/index.d.ts.map +1 -1
  28. package/dist/components/Select/index.js +6 -2
  29. package/dist/components/Select/utils.d.ts +10 -1
  30. package/dist/components/Select/utils.d.ts.map +1 -1
  31. package/dist/components/Select/utils.js +3 -5
  32. package/dist/components/UniversalFooter/UniversalFooter.js +1 -1
  33. package/dist/components/WebCheckoutNav/WebCheckoutNav.examples.d.ts.map +1 -1
  34. package/dist/index.js +354 -349
  35. package/dist/muza-ui.css +1 -1
  36. package/llms-full.md +133 -2
  37. package/llms.txt +2 -0
  38. package/package.json +2 -1
@@ -1,36 +1,34 @@
1
- import { jsx as t, jsxs as u } from "react/jsx-runtime";
2
- import f, { forwardRef as G, useId as L, useMemo as U, useRef as S, useEffect as T } from "react";
1
+ import { jsx as t, jsxs as N } from "react/jsx-runtime";
2
+ import u, { forwardRef as B, useId as G, useMemo as L, useRef as z, useEffect as S } from "react";
3
3
  import { useMuzaTranslations as H } from "../../translations/TranslationContext.js";
4
- import { cn as D } from "../../utils/cn.js";
5
- import { DropdownMenu as J, DropdownMenuTrigger as K, DropdownMenuContent as Q, DropdownMenuRadioGroup as X, DropdownMenuRadioItem as Y } from "../DropdownMenu/DropdownMenu.js";
6
- import { Flex as Z } from "../Flex/Flex.js";
7
- import { FormField as ee } from "../FormField/FormField.js";
8
- import { AltArrowUpOutline as te } from "@solar-icons/react-perf";
9
- import { Typography as o } from "../Typography/Typography.js";
10
- import { triggerWrapperVariants as re } from "./utils.js";
11
- const ne = G(
12
- (I, h) => {
13
- const g = H(), {
14
- label: x,
15
- hint: b,
16
- error: w,
17
- options: a,
18
- onChange: d,
4
+ import { DropdownMenu as J, DropdownMenuTrigger as K, DropdownMenuContent as Q, DropdownMenuRadioGroup as U, DropdownMenuRadioItem as X } from "../DropdownMenu/DropdownMenu.js";
5
+ import { Flex as Y } from "../Flex/Flex.js";
6
+ import { FormField as Z } from "../FormField/FormField.js";
7
+ import { Typography as l } from "../Typography/Typography.js";
8
+ import { SelectTrigger as ee } from "./SelectTrigger.js";
9
+ const te = B(
10
+ (T, p) => {
11
+ const m = H(), {
12
+ label: f,
13
+ hint: h,
14
+ error: g,
15
+ options: s,
16
+ onChange: c,
19
17
  value: n,
20
- disabled: s,
21
- prefix: y,
22
- size: O,
23
- placeholder: W,
24
- emptyMessage: A,
25
- shouldScrollToSelectedOption: v,
26
- collisionPadding: C,
27
- required: N,
28
- disableRequiredAsterisk: F,
29
- labelExtra: V,
30
- infoTooltip: q
31
- } = I, R = W ?? g.select.placeholder, E = A ?? g.select.noOptions, M = L(), P = x ? `${M}-label` : void 0, $ = b ? `${M}-hint` : void 0, r = n ? a.find((e) => e.value === n) : void 0, j = U(() => r ? r.description ? /* @__PURE__ */ u(Z, { flex: 1, direction: "column", className: "min-w-0 text-left", children: [
18
+ disabled: x,
19
+ prefix: D,
20
+ size: I,
21
+ placeholder: C,
22
+ emptyMessage: F,
23
+ shouldScrollToSelectedOption: b,
24
+ collisionPadding: O,
25
+ required: y,
26
+ disableRequiredAsterisk: W,
27
+ labelExtra: q,
28
+ infoTooltip: E
29
+ } = T, v = C ?? m.select.placeholder, P = F ?? m.select.noOptions, w = G(), V = f ? `${w}-label` : void 0, $ = h ? `${w}-hint` : void 0, r = n ? s.find((e) => e.value === n) : void 0, j = L(() => r ? r.description ? /* @__PURE__ */ N(Y, { flex: 1, direction: "column", className: "min-w-0 text-left", children: [
32
30
  /* @__PURE__ */ t(
33
- o,
31
+ l,
34
32
  {
35
33
  size: "sm",
36
34
  variant: "title",
@@ -41,7 +39,7 @@ const ne = G(
41
39
  }
42
40
  ),
43
41
  /* @__PURE__ */ t(
44
- o,
42
+ l,
45
43
  {
46
44
  size: "sm",
47
45
  variant: "body",
@@ -52,7 +50,7 @@ const ne = G(
52
50
  }
53
51
  )
54
52
  ] }) : typeof r.label != "function" ? /* @__PURE__ */ t(
55
- o,
53
+ l,
56
54
  {
57
55
  size: "input",
58
56
  className: "grow-1 fix-y-text truncate text-left text-comp-select-text-primary",
@@ -61,84 +59,60 @@ const ne = G(
61
59
  children: r.label
62
60
  }
63
61
  ) : r.label : /* @__PURE__ */ t(
64
- o,
62
+ l,
65
63
  {
66
64
  size: "input",
67
65
  className: "grow-1 fix-y-text truncate text-left text-comp-select-text-placeholder",
68
66
  weight: "regular",
69
67
  component: "span",
70
- children: R
68
+ children: v
71
69
  }
72
- ), [r, R]), [l, k] = f.useState(!1), [z, _] = f.useState(0), p = f.useRef(!1), B = S(null), m = S({}), i = (typeof h == "function" ? null : h) ?? B;
73
- return T(() => {
70
+ ), [r, v]), [R, k] = u.useState(!1), [M, A] = u.useState(0), a = u.useRef(!1), _ = z(null), d = z({}), i = (typeof p == "function" ? null : p) ?? _;
71
+ return S(() => {
74
72
  const e = () => {
75
- i.current && _(i.current.offsetWidth);
73
+ i.current && A(i.current.offsetWidth);
76
74
  };
77
75
  e();
78
- const c = new ResizeObserver(e);
79
- return i.current && c.observe(i.current), () => {
80
- c.disconnect();
76
+ const o = new ResizeObserver(e);
77
+ return i.current && o.observe(i.current), () => {
78
+ o.disconnect();
81
79
  };
82
- }, [i]), T(() => {
80
+ }, [i]), S(() => {
83
81
  var e;
84
- l && n && m.current[n] && v && ((e = m.current[n]) == null || e.scrollIntoView({ block: "nearest" }));
85
- }, [l, v, n]), /* @__PURE__ */ t(
86
- ee,
82
+ R && n && d.current[n] && b && ((e = d.current[n]) == null || e.scrollIntoView({ block: "nearest" }));
83
+ }, [R, b, n]), /* @__PURE__ */ t(
84
+ Z,
87
85
  {
88
- label: x,
89
- hint: b,
90
- error: w,
91
- required: N,
92
- disableRequiredAsterisk: F,
93
- labelId: P,
86
+ label: f,
87
+ hint: h,
88
+ error: g,
89
+ required: y,
90
+ disableRequiredAsterisk: W,
91
+ labelId: V,
94
92
  hintId: $,
95
- labelExtra: V,
96
- infoTooltip: q,
93
+ labelExtra: q,
94
+ infoTooltip: E,
97
95
  className: "flex-1",
98
- children: /* @__PURE__ */ u(
96
+ children: /* @__PURE__ */ N(
99
97
  J,
100
98
  {
101
99
  onOpenChange: (e) => {
102
100
  k(e);
103
101
  },
104
102
  children: [
105
- /* @__PURE__ */ t(K, { disabled: s, asChild: !0, children: /* @__PURE__ */ t(
106
- "button",
103
+ /* @__PURE__ */ t(K, { disabled: x, asChild: !0, children: /* @__PURE__ */ t(
104
+ ee,
107
105
  {
108
106
  ref: i,
109
- type: "button",
110
107
  role: "input",
111
108
  tabIndex: 0,
112
- disabled: s,
113
- "aria-required": N,
114
- className: D(
115
- re({
116
- size: O,
117
- error: w,
118
- expanded: l,
119
- hasDescription: !!(r != null && r.description)
120
- })
121
- ),
122
- children: /* @__PURE__ */ u("div", { className: "flex min-w-0 flex-1 items-center gap-sm", children: [
123
- y && /* @__PURE__ */ t(
124
- "span",
125
- {
126
- className: s ? "text-comp-select-icon-disabled" : "text-comp-select-icon-brand-def",
127
- children: y
128
- }
129
- ),
130
- j,
131
- /* @__PURE__ */ t(
132
- te,
133
- {
134
- className: D(
135
- "transition-transform duration-200",
136
- l ? "rotate-0" : "rotate-180",
137
- s ? "text-comp-select-icon-disabled" : "text-comp-select-icon-brand-def"
138
- )
139
- }
140
- )
141
- ] })
109
+ disabled: x,
110
+ "aria-required": y,
111
+ size: I,
112
+ error: g,
113
+ prefix: D,
114
+ hasDescription: !!(r != null && r.description),
115
+ children: j
142
116
  }
143
117
  ) }),
144
118
  /* @__PURE__ */ t(
@@ -146,38 +120,38 @@ const ne = G(
146
120
  {
147
121
  className: "mt-1",
148
122
  style: {
149
- width: z > 0 ? `${z}px` : void 0
123
+ width: M > 0 ? `${M}px` : void 0
150
124
  },
151
125
  align: "center",
152
126
  onCloseAutoFocus: (e) => {
153
- p.current || e.preventDefault(), p.current = !1;
127
+ a.current || e.preventDefault(), a.current = !1;
154
128
  },
155
- collisionPadding: C,
156
- children: a.length === 0 ? /* @__PURE__ */ t("div", { className: "px-lg py-md", role: "presentation", children: /* @__PURE__ */ t(
157
- o,
129
+ collisionPadding: O,
130
+ children: s.length === 0 ? /* @__PURE__ */ t("div", { className: "px-lg py-md", role: "presentation", children: /* @__PURE__ */ t(
131
+ l,
158
132
  {
159
133
  component: "span",
160
134
  size: "input",
161
135
  weight: "regular",
162
136
  className: "text-comp-select-text-secondary",
163
- children: E
137
+ children: P
164
138
  }
165
139
  ) }) : /* @__PURE__ */ t(
166
- X,
140
+ U,
167
141
  {
168
142
  value: n,
169
143
  onValueChange: (e) => {
170
- p.current = !0, d == null || d(e);
144
+ a.current = !0, c == null || c(e);
171
145
  },
172
- children: a.map((e) => /* @__PURE__ */ t(
173
- Y,
146
+ children: s.map((e) => /* @__PURE__ */ t(
147
+ X,
174
148
  {
175
149
  value: e.value.toString(),
176
150
  disabled: e.disabled,
177
151
  icon: e.icon,
178
152
  description: e.description,
179
- ref: (c) => {
180
- m.current[e.value] = c;
153
+ ref: (o) => {
154
+ d.current[e.value] = o;
181
155
  },
182
156
  children: e.label
183
157
  },
@@ -194,7 +168,7 @@ const ne = G(
194
168
  );
195
169
  }
196
170
  );
197
- ne.displayName = "Select";
171
+ te.displayName = "Select";
198
172
  export {
199
- ne as Select
173
+ te as Select
200
174
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Select.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAU3D,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEjC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,CAoI7B,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,MAAM,CAAC,CAAA;AA6BpC,eAAO,MAAM,OAAO,EAAE,KAwBrB,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KA2BvB,CAAA;AAED,eAAO,MAAM,gBAAgB,EAAE,KA0B9B,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KA0BvB,CAAA;AAED,eAAO,MAAM,iBAAiB,EAAE,KAwB/B,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KA0BtB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KA0BtB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KA6DtB,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,KA0C7B,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,KAgCzB,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAyBxB,CAAA;AAED,eAAO,MAAM,kBAAkB,EAAE,KAqDhC,CAAA;AAED,eAAO,MAAM,mBAAmB,EAAE,KAkCjC,CAAA;AAED,eAAO,MAAM,OAAO,EAAE,KAoDrB,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KAqBvB,CAAA"}
1
+ {"version":3,"file":"Select.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAU3D,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEjC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,CAsI7B,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,MAAM,CAAC,CAAA;AA6BpC,eAAO,MAAM,OAAO,EAAE,KAwBrB,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KA2BvB,CAAA;AAED,eAAO,MAAM,gBAAgB,EAAE,KA0B9B,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KA0BvB,CAAA;AAED,eAAO,MAAM,iBAAiB,EAAE,KAwB/B,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KA0BtB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KA0BtB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KA6DtB,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,KA0C7B,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,KAgCzB,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAyBxB,CAAA;AAED,eAAO,MAAM,kBAAkB,EAAE,KAqDhC,CAAA;AAED,eAAO,MAAM,mBAAmB,EAAE,KAkCjC,CAAA;AAED,eAAO,MAAM,OAAO,EAAE,KAoDrB,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KAqBvB,CAAA"}
@@ -0,0 +1,54 @@
1
+ import * as React from 'react';
2
+ /**
3
+ * Props for the SelectTrigger component.
4
+ *
5
+ * Extends the native `<button>` attributes — every unrecognised prop is spread onto
6
+ * the root element, so overlay primitives such as `DropdownMenuTrigger asChild` can
7
+ * inject their handlers, `aria-*` attributes and `data-state`.
8
+ */
9
+ export interface ISelectTriggerProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'prefix'> {
10
+ /**
11
+ * Label content. A `string` or `number` is rendered in the standard truncated
12
+ * trigger label style; pass your own node to control the layout (as `Select`
13
+ * does for its two-line options).
14
+ */
15
+ children?: React.ReactNode;
16
+ /** Controls height and horizontal padding. Matches the `Select` size scale. @default 'base' */
17
+ size?: 'xs' | 'sm' | 'base' | 'lg';
18
+ /** Applies the error border color. @default false */
19
+ error?: boolean;
20
+ /** Icon or element rendered before the label. */
21
+ prefix?: React.ReactNode;
22
+ /** Adds vertical padding for two-line label content. @default false */
23
+ hasDescription?: boolean;
24
+ }
25
+ /**
26
+ * The presentational trigger used by {@link Select} — a pill-shaped button with an
27
+ * optional prefix, a truncated label and a chevron that flips when the surrounding
28
+ * overlay opens.
29
+ *
30
+ * It is fully stateless: the expanded styling is derived from the `data-state="open"`
31
+ * attribute that Radix sets on a trigger, so the same component works inside
32
+ * `Select`, `DropdownMenu`, `Popover` or any other overlay without an extra prop.
33
+ * Use it directly when a menu needs to *look* like a select but is not a combobox —
34
+ * an account menu, a filter menu, a navigation dropdown.
35
+ *
36
+ * @example Standalone
37
+ * ```tsx
38
+ * <SelectTrigger size="sm">Jan Novák</SelectTrigger>
39
+ * ```
40
+ *
41
+ * @example As a DropdownMenu trigger
42
+ * ```tsx
43
+ * <DropdownMenu>
44
+ * <DropdownMenuTrigger asChild>
45
+ * <SelectTrigger size="sm" className="max-w-comp-market-nav-select-max-w">
46
+ * {userName}
47
+ * </SelectTrigger>
48
+ * </DropdownMenuTrigger>
49
+ * <DropdownMenuContent align="end">…</DropdownMenuContent>
50
+ * </DropdownMenu>
51
+ * ```
52
+ */
53
+ export declare const SelectTrigger: React.ForwardRefExoticComponent<ISelectTriggerProps & React.RefAttributes<HTMLButtonElement>>;
54
+ //# sourceMappingURL=SelectTrigger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectTrigger.d.ts","sourceRoot":"","sources":["../../../src/components/Select/SelectTrigger.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAM9B;;;;;;GAMG;AACH,MAAM,WAAW,mBACf,SAAQ,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,QAAQ,CAAC;IACrE;;;;OAIG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,+FAA+F;IAC/F,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,MAAM,GAAG,IAAI,CAAA;IAClC,qDAAqD;IACrD,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,iDAAiD;IACjD,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACxB,uEAAuE;IACvE,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,aAAa,+FAuDzB,CAAA"}
@@ -0,0 +1,57 @@
1
+ import { jsx as t, jsxs as l } from "react/jsx-runtime";
2
+ import * as g from "react";
3
+ import { cn as o } from "../../utils/cn.js";
4
+ import { AltArrowUpOutline as d } from "@solar-icons/react-perf";
5
+ import { Typography as f } from "../Typography/Typography.js";
6
+ import { triggerWrapperVariants as x } from "./utils.js";
7
+ const u = g.forwardRef(
8
+ ({
9
+ children: e,
10
+ className: s,
11
+ size: a,
12
+ error: i,
13
+ prefix: r,
14
+ hasDescription: m,
15
+ type: c = "button",
16
+ ...p
17
+ }, n) => /* @__PURE__ */ t(
18
+ "button",
19
+ {
20
+ ref: n,
21
+ type: c,
22
+ className: o(
23
+ x({ size: a, error: i, hasDescription: m }),
24
+ "group/select-trigger",
25
+ s
26
+ ),
27
+ ...p,
28
+ children: /* @__PURE__ */ l("div", { className: "flex min-w-0 flex-1 items-center gap-sm", children: [
29
+ r && /* @__PURE__ */ t("span", { className: "text-comp-select-icon-brand-def group-disabled/select-trigger:text-comp-select-icon-disabled", children: r }),
30
+ typeof e == "string" || typeof e == "number" ? /* @__PURE__ */ t(
31
+ f,
32
+ {
33
+ size: "input",
34
+ className: "grow-1 fix-y-text truncate text-left text-comp-select-text-primary",
35
+ weight: "medium",
36
+ component: "span",
37
+ children: e
38
+ }
39
+ ) : e,
40
+ /* @__PURE__ */ t(
41
+ d,
42
+ {
43
+ className: o(
44
+ "shrink-0 rotate-180 transition-transform duration-200",
45
+ "group-data-[state=open]/select-trigger:rotate-0",
46
+ "text-comp-select-icon-brand-def group-disabled/select-trigger:text-comp-select-icon-disabled"
47
+ )
48
+ }
49
+ )
50
+ ] })
51
+ }
52
+ )
53
+ );
54
+ u.displayName = "SelectTrigger";
55
+ export {
56
+ u as SelectTrigger
57
+ };
@@ -0,0 +1,11 @@
1
+ import { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { SelectTrigger } from './SelectTrigger';
3
+ declare const meta: Meta<typeof SelectTrigger>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof SelectTrigger>;
6
+ export declare const Default: Story;
7
+ export declare const AsDropdownMenuTrigger: Story;
8
+ export declare const OpenState: Story;
9
+ export declare const AllSizes: Story;
10
+ export declare const AllStates: Story;
11
+ //# sourceMappingURL=SelectTrigger.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectTrigger.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Select/SelectTrigger.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAiB3D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE/C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,aAAa,CA8DpC,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,aAAa,CAAC,CAAA;AAE3C,eAAO,MAAM,OAAO,EAAE,KAkBrB,CAAA;AAED,eAAO,MAAM,qBAAqB,EAAE,KA8BnC,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KA6BvB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAkBtB,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KAwBvB,CAAA"}
@@ -1,2 +1,4 @@
1
1
  export { Select, type ISelectOption, type ISelectProps } from './Select';
2
+ export { SelectTrigger, type ISelectTriggerProps } from './SelectTrigger';
3
+ export { triggerWrapperVariants } from './utils';
2
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Select/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,aAAa,EAAE,KAAK,YAAY,EAAE,MAAM,UAAU,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Select/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,aAAa,EAAE,KAAK,YAAY,EAAE,MAAM,UAAU,CAAA;AACxE,OAAO,EAAE,aAAa,EAAE,KAAK,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA"}
@@ -1,4 +1,8 @@
1
- import { Select as r } from "./Select.js";
1
+ import { Select as t } from "./Select.js";
2
+ import { SelectTrigger as p } from "./SelectTrigger.js";
3
+ import { triggerWrapperVariants as a } from "./utils.js";
2
4
  export {
3
- r as Select
5
+ t as Select,
6
+ p as SelectTrigger,
7
+ a as triggerWrapperVariants
4
8
  };
@@ -1,7 +1,16 @@
1
+ /**
2
+ * Styling for the `Select` trigger button.
3
+ *
4
+ * Exported as an escape hatch for cases that cannot use the `SelectTrigger`
5
+ * component itself. Prefer `SelectTrigger` — it also owns the label truncation
6
+ * and the chevron.
7
+ *
8
+ * The expanded border is driven by `data-state="open"`, which Radix sets on any
9
+ * trigger (Select, DropdownMenu, Popover…), so no `expanded` flag is needed.
10
+ */
1
11
  export declare const triggerWrapperVariants: (props?: ({
2
12
  size?: "xs" | "sm" | "lg" | "base" | null | undefined;
3
13
  error?: boolean | null | undefined;
4
- expanded?: boolean | null | undefined;
5
14
  hasIcon?: boolean | null | undefined;
6
15
  hasDescription?: boolean | null | undefined;
7
16
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/Select/utils.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,sBAAsB;;;;;;8EAkClC,CAAA"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/Select/utils.ts"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AACH,eAAO,MAAM,sBAAsB;;;;;8EAgClC,CAAA"}
@@ -1,10 +1,11 @@
1
1
  import { cva as e } from "class-variance-authority";
2
- const r = e(
2
+ const o = e(
3
3
  [
4
4
  "flex w-full cursor-pointer items-center gap-sm rounded-full border border-comp-select-stroke-def",
5
5
  "overflow-hidden bg-comp-select-fill-def whitespace-nowrap focus-visible-default transition-colors",
6
6
  "hover:border-comp-select-stroke-hover",
7
7
  "focus-visible:border-comp-select-stroke-focused",
8
+ "data-[state=open]:border-comp-select-stroke-focused",
8
9
  "disabled:cursor-not-allowed disabled:border-comp-select-stroke-disabled disabled:bg-comp-select-fill-disabled"
9
10
  ],
10
11
  {
@@ -18,9 +19,6 @@ const r = e(
18
19
  error: {
19
20
  true: "border-comp-select-stroke-error-def"
20
21
  },
21
- expanded: {
22
- true: "border-comp-select-stroke-focused"
23
- },
24
22
  hasIcon: {
25
23
  false: "pl-comp-select-p-large"
26
24
  },
@@ -35,5 +33,5 @@ const r = e(
35
33
  }
36
34
  );
37
35
  export {
38
- r as triggerWrapperVariants
36
+ o as triggerWrapperVariants
39
37
  };
@@ -166,7 +166,7 @@ const j = ({
166
166
  "data-slot": "universal-footer-sections",
167
167
  className: l(
168
168
  "flex w-full flex-col gap-4xl",
169
- "md:grid md:grid-cols-2 md:grid-rows-[auto_1fr] md:items-start md:gap-x-4xl md:gap-y-2xl md:[&>:first-child]:row-span-2",
169
+ "md:grid md:grid-cols-2 md:grid-rows-[auto_1fr] md:items-start md:gap-x-4xl md:gap-y-4xl md:[&>:first-child]:row-span-2",
170
170
  "lg:flex lg:flex-row lg:items-start lg:justify-between lg:gap-x-2xl lg:gap-y-0",
171
171
  t
172
172
  ),
@@ -1 +1 @@
1
- {"version":3,"file":"WebCheckoutNav.examples.d.ts","sourceRoot":"","sources":["../../../src/components/WebCheckoutNav/WebCheckoutNav.examples.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAY,MAAM,OAAO,CAAA;AA8BhD,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,SAAS,CAAA;CAChB;AAED,MAAM,WAAW,mBAAmB;IAClC,cAAc,EAAE,aAAa,EAAE,CAAA;IAC/B,SAAS,EAAE,QAAQ,EAAE,CAAA;CACtB;AAID,eAAO,MAAM,cAAc,EAAE,aAAa,EAgBzC,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,QAAQ,EAI/B,CAAA;AAID,eAAO,MAAM,cAAc,GAAI,gCAG5B,mBAAmB,4CA6MrB,CAAA"}
1
+ {"version":3,"file":"WebCheckoutNav.examples.d.ts","sourceRoot":"","sources":["../../../src/components/WebCheckoutNav/WebCheckoutNav.examples.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAY,MAAM,OAAO,CAAA;AA8BhD,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,SAAS,CAAA;CAChB;AAED,MAAM,WAAW,mBAAmB;IAClC,cAAc,EAAE,aAAa,EAAE,CAAA;IAC/B,SAAS,EAAE,QAAQ,EAAE,CAAA;CACtB;AAID,eAAO,MAAM,cAAc,EAAE,aAAa,EAgBzC,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,QAAQ,EAI/B,CAAA;AAID,eAAO,MAAM,cAAc,GAAI,gCAG5B,mBAAmB,4CAwMrB,CAAA"}