@studiolxd/brand 38.17.0 → 40.0.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 (141) hide show
  1. package/CHANGELOG.md +141 -0
  2. package/dist/_shared/brandmessagescontext.js +15 -0
  3. package/dist/_shared/calendargrid.js +42 -42
  4. package/dist/_shared/datepicker.js +41 -41
  5. package/dist/_shared/imagecropdialog.js +54 -54
  6. package/dist/_shared/tokens.js +4 -0
  7. package/dist/_types/atoms/StarRating/StarRating.d.ts +87 -30
  8. package/dist/_types/messages/BrandMessages.d.ts +26 -0
  9. package/dist/_types/messages/BrandMessagesContext.d.ts +21 -0
  10. package/dist/_types/messages/BrandMessagesProvider.d.ts +46 -0
  11. package/dist/_types/messages/index.d.ts +5 -0
  12. package/dist/_types/molecules/Card/Card.d.ts +12 -1
  13. package/dist/_types/molecules/ConfirmDialog/ConfirmDialog.d.ts +42 -2
  14. package/dist/_types/molecules/Pagination/Pagination.d.ts +40 -23
  15. package/dist/_types/organisms/DataTable/DataTable.d.ts +3 -2
  16. package/dist/accordion.js +26 -26
  17. package/dist/alert.js +26 -26
  18. package/dist/annotation-thread.js +1 -1
  19. package/dist/app-header.js +8 -8
  20. package/dist/app-launcher.js +34 -34
  21. package/dist/app-shell.js +14 -14
  22. package/dist/assistant-message.js +8 -8
  23. package/dist/async-multi-select-field.js +9 -9
  24. package/dist/async-multi-select.js +40 -40
  25. package/dist/async-select-field.js +9 -9
  26. package/dist/async-select.js +64 -64
  27. package/dist/avatar-upload.js +40 -40
  28. package/dist/avatar.js +5 -5
  29. package/dist/banner.js +9 -9
  30. package/dist/brand.css +11 -2
  31. package/dist/button.js +7 -7
  32. package/dist/calendar-planner.js +16 -16
  33. package/dist/calendar.js +38 -38
  34. package/dist/card.js +28 -29
  35. package/dist/carousel.js +19 -19
  36. package/dist/chart.js +137 -137
  37. package/dist/chat-shell.js +23 -23
  38. package/dist/checkbox-field.js +11 -11
  39. package/dist/checkbox.js +7 -7
  40. package/dist/close-button.js +6 -6
  41. package/dist/code-block.js +15 -15
  42. package/dist/code.js +5 -5
  43. package/dist/collapsible.js +1 -1
  44. package/dist/columns.js +7 -7
  45. package/dist/command-palette.js +14 -14
  46. package/dist/confirm-dialog.css +1 -1
  47. package/dist/confirm-dialog.js +65 -42
  48. package/dist/connector-auth-shell.js +9 -9
  49. package/dist/consent.js +23 -23
  50. package/dist/container.js +6 -6
  51. package/dist/conversation-list.js +19 -19
  52. package/dist/conversation-thread.js +15 -15
  53. package/dist/copy-button.js +9 -9
  54. package/dist/copyable-value.js +17 -17
  55. package/dist/data-table.js +29 -29
  56. package/dist/date-picker-field.js +9 -9
  57. package/dist/date-time-field.js +12 -12
  58. package/dist/description-list.js +12 -12
  59. package/dist/docs-search.js +1 -1
  60. package/dist/dots-button.js +7 -7
  61. package/dist/dropdown-field.js +13 -13
  62. package/dist/email.js +44 -44
  63. package/dist/error-text.js +4 -4
  64. package/dist/field-row.js +20 -20
  65. package/dist/figure.js +8 -8
  66. package/dist/file-upload-field.js +9 -9
  67. package/dist/file-upload.js +29 -29
  68. package/dist/filter-bar.js +10 -10
  69. package/dist/floating-dock.js +17 -17
  70. package/dist/form-field.js +43 -43
  71. package/dist/form.js +14 -14
  72. package/dist/heading.js +5 -5
  73. package/dist/input-field.js +20 -20
  74. package/dist/input-phone-field.js +9 -9
  75. package/dist/input-phone.js +19 -19
  76. package/dist/input.js +5 -5
  77. package/dist/kbd.js +5 -5
  78. package/dist/label.js +5 -5
  79. package/dist/link.js +7 -7
  80. package/dist/list.js +7 -7
  81. package/dist/menu-button.js +7 -7
  82. package/dist/message-bubble.js +5 -5
  83. package/dist/message-composer.js +13 -13
  84. package/dist/messages.js +12 -0
  85. package/dist/multi-select-field.js +9 -9
  86. package/dist/multi-select.js +52 -52
  87. package/dist/notification-button.js +8 -8
  88. package/dist/notification-panel.js +25 -25
  89. package/dist/number-input-field.js +9 -9
  90. package/dist/number-input.js +11 -11
  91. package/dist/otp-field.js +9 -9
  92. package/dist/otp-input.js +48 -48
  93. package/dist/pagination.js +92 -89
  94. package/dist/paragraph.js +5 -5
  95. package/dist/password-field.js +15 -15
  96. package/dist/prose.js +4 -4
  97. package/dist/public-page-shell.js +11 -11
  98. package/dist/radio-field.js +11 -11
  99. package/dist/radio-group.js +5 -5
  100. package/dist/radio.js +5 -5
  101. package/dist/scroll-area.js +11 -11
  102. package/dist/search-form.js +8 -8
  103. package/dist/select-field.js +9 -9
  104. package/dist/select.js +85 -85
  105. package/dist/separator.js +6 -6
  106. package/dist/sidebar.js +16 -16
  107. package/dist/site-header.js +14 -14
  108. package/dist/site-shell.js +6 -6
  109. package/dist/sparkline.js +9 -9
  110. package/dist/star-rating.css +1 -1
  111. package/dist/star-rating.js +55 -41
  112. package/dist/stat-tile.js +12 -12
  113. package/dist/steps.js +32 -32
  114. package/dist/switcher-field.js +13 -13
  115. package/dist/switcher.js +8 -8
  116. package/dist/table-of-contents.js +14 -14
  117. package/dist/tag.js +5 -5
  118. package/dist/text.js +7 -7
  119. package/dist/textarea-field.js +11 -11
  120. package/dist/textarea.js +5 -5
  121. package/dist/time-field.js +9 -9
  122. package/dist/time-select.js +17 -17
  123. package/dist/toaster.js +16 -16
  124. package/dist/toggle-group.js +7 -7
  125. package/dist/toggle.js +5 -5
  126. package/dist/tokens.css +11 -2
  127. package/dist/tooltip.js +16 -16
  128. package/dist/tree-view.js +41 -41
  129. package/dist/uptime-bars.js +34 -34
  130. package/dist/user-message.js +8 -8
  131. package/dist/visually-hidden.js +5 -5
  132. package/package.json +5 -1
  133. package/src/tokens/components/description-list.css +1 -1
  134. package/src/tokens/components/star-rating.css +5 -0
  135. package/src/tokens/molecules/confirm-dialog.css +1 -0
  136. package/src/tokens/scss/components/_description-list.scss +1 -1
  137. package/src/tokens/scss/components/_star-rating.scss +3 -0
  138. package/src/tokens/scss/molecules/_confirm-dialog.scss +1 -0
  139. package/src/tokens/surface-invert.css +2 -0
  140. package/src/tokens/surface-public.css +1 -0
  141. package/src/tokens/tokens.json +4 -0
@@ -5,24 +5,24 @@ import { ErrorText as t } from "./error-text.js";
5
5
  import { Label as n } from "./label.js";
6
6
  import { Textarea as r } from "./textarea.js";
7
7
  import { n as i } from "./_shared/field-labels.js";
8
- import { jsx as a, jsxs as o } from "react/jsx-runtime";
9
- import { forwardRef as s } from "react";
8
+ import { forwardRef as a } from "react";
9
+ import { jsx as o, jsxs as s } from "react/jsx-runtime";
10
10
  //#region src/stories/molecules/TextareaField/TextareaField.tsx
11
- var c = s(function({ id: s, label: c, labelHidden: l, name: u, placeholder: d, value: f, defaultValue: p, rows: m, disabled: h, readOnly: g, size: _, error: v = !1, errorMessage: y, helperText: b, onChange: x, onBlur: S, onFocus: C, className: w, ...T }, E) {
12
- let D = i(l), O = e(_), k = y ? `${s}-error` : void 0, A = b ? `${s}-helper` : void 0, j = [k, A].filter(Boolean).join(" ") || void 0, M = v || !!y;
13
- return /* @__PURE__ */ o("div", {
11
+ var c = a(function({ id: a, label: c, labelHidden: l, name: u, placeholder: d, value: f, defaultValue: p, rows: m, disabled: h, readOnly: g, size: _, error: v = !1, errorMessage: y, helperText: b, onChange: x, onBlur: S, onFocus: C, className: w, ...T }, E) {
12
+ let D = i(l), O = e(_), k = y ? `${a}-error` : void 0, A = b ? `${a}-helper` : void 0, j = [k, A].filter(Boolean).join(" ") || void 0, M = v || !!y;
13
+ return /* @__PURE__ */ s("div", {
14
14
  className: ["textarea-field", w].filter(Boolean).join(" "),
15
15
  children: [
16
- /* @__PURE__ */ a(n, {
17
- htmlFor: s,
16
+ /* @__PURE__ */ o(n, {
17
+ htmlFor: a,
18
18
  hidden: D,
19
19
  size: O,
20
20
  children: c
21
21
  }),
22
- /* @__PURE__ */ a(r, {
22
+ /* @__PURE__ */ o(r, {
23
23
  ref: E,
24
24
  ...T,
25
- id: s,
25
+ id: a,
26
26
  name: u,
27
27
  placeholder: d ?? (D ? c : void 0),
28
28
  value: f,
@@ -37,11 +37,11 @@ var c = s(function({ id: s, label: c, labelHidden: l, name: u, placeholder: d, v
37
37
  onBlur: S,
38
38
  onFocus: C
39
39
  }),
40
- y && /* @__PURE__ */ a(t, {
40
+ y && /* @__PURE__ */ o(t, {
41
41
  id: k,
42
42
  children: y
43
43
  }),
44
- b && /* @__PURE__ */ a("span", {
44
+ b && /* @__PURE__ */ o("span", {
45
45
  id: A,
46
46
  className: "textarea-field__helper",
47
47
  children: b
package/dist/textarea.js CHANGED
@@ -1,14 +1,14 @@
1
1
  'use client';
2
2
  import './textarea.css';
3
- import { jsx as e } from "react/jsx-runtime";
4
- import { forwardRef as t } from "react";
3
+ import { forwardRef as e } from "react";
4
+ import { jsx as t } from "react/jsx-runtime";
5
5
  //#region src/stories/atoms/Textarea/Textarea.tsx
6
- var n = t(function({ size: t = "md", error: n = !1, bare: r = !1, className: i, describedBy: a, ...o }, s) {
7
- return /* @__PURE__ */ e("textarea", {
6
+ var n = e(function({ size: e = "md", error: n = !1, bare: r = !1, className: i, describedBy: a, ...o }, s) {
7
+ return /* @__PURE__ */ t("textarea", {
8
8
  ref: s,
9
9
  className: [
10
10
  "textarea",
11
- t === "md" ? "" : `textarea--${t}`,
11
+ e === "md" ? "" : `textarea--${e}`,
12
12
  n ? "textarea--error" : "",
13
13
  r ? "textarea--bare" : "",
14
14
  i ?? ""
@@ -5,22 +5,22 @@ import { ErrorText as t } from "./error-text.js";
5
5
  import { Label as n } from "./label.js";
6
6
  import { TimeSelect as r } from "./time-select.js";
7
7
  import { n as i } from "./_shared/field-labels.js";
8
- import { jsx as a, jsxs as o } from "react/jsx-runtime";
9
- import { forwardRef as s, useId as c } from "react";
8
+ import { forwardRef as a, useId as o } from "react";
9
+ import { jsx as s, jsxs as c } from "react/jsx-runtime";
10
10
  //#region src/stories/molecules/TimeField/TimeField.tsx
11
- var l = s(function({ id: s, label: l, labelHidden: u, value: d, step: f, name: p, size: m, disabled: h, readOnly: g, required: _, error: v = !1, errorMessage: y, helperText: b, className: x, hoursLabel: S, minutesLabel: C, onChange: w, onBlur: T }, E) {
12
- let D = i(u), O = e(m), k = c(), A = s ?? k, j = y ? `${A}-error` : void 0, M = b ? `${A}-helper` : void 0, N = [j, M].filter(Boolean).join(" ") || void 0, P = v || !!y;
13
- return /* @__PURE__ */ o("div", {
11
+ var l = a(function({ id: a, label: l, labelHidden: u, value: d, step: f, name: p, size: m, disabled: h, readOnly: g, required: _, error: v = !1, errorMessage: y, helperText: b, className: x, hoursLabel: S, minutesLabel: C, onChange: w, onBlur: T }, E) {
12
+ let D = i(u), O = e(m), k = o(), A = a ?? k, j = y ? `${A}-error` : void 0, M = b ? `${A}-helper` : void 0, N = [j, M].filter(Boolean).join(" ") || void 0, P = v || !!y;
13
+ return /* @__PURE__ */ c("div", {
14
14
  className: ["time-field", x].filter(Boolean).join(" "),
15
15
  children: [
16
- /* @__PURE__ */ a(n, {
16
+ /* @__PURE__ */ s(n, {
17
17
  id: `${A}-label`,
18
18
  htmlFor: A,
19
19
  hidden: D,
20
20
  size: O,
21
21
  children: l
22
22
  }),
23
- /* @__PURE__ */ a(r, {
23
+ /* @__PURE__ */ s(r, {
24
24
  ref: E,
25
25
  id: A,
26
26
  name: p,
@@ -38,11 +38,11 @@ var l = s(function({ id: s, label: l, labelHidden: u, value: d, step: f, name: p
38
38
  onChange: w,
39
39
  onBlur: T
40
40
  }),
41
- y && /* @__PURE__ */ a(t, {
41
+ y && /* @__PURE__ */ s(t, {
42
42
  id: j,
43
43
  children: y
44
44
  }),
45
- b && /* @__PURE__ */ a("span", {
45
+ b && /* @__PURE__ */ s("span", {
46
46
  id: M,
47
47
  className: "time-field__helper",
48
48
  children: b
@@ -1,17 +1,17 @@
1
1
  'use client';
2
2
  import './time-select.css';
3
3
  import { Select as e } from "./select.js";
4
- import { jsx as t, jsxs as n } from "react/jsx-runtime";
5
- import { forwardRef as r, useMemo as i } from "react";
4
+ import { forwardRef as t, useMemo as n } from "react";
5
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
6
6
  //#region src/stories/atoms/TimeSelect/TimeSelect.tsx
7
7
  function a(e) {
8
8
  return String(e).padStart(2, "0");
9
9
  }
10
- var o = r(function({ value: r, onChange: o, step: s = 5, size: c = "md", disabled: l, readOnly: u, error: d, id: f, name: p, required: m, "aria-labelledby": h, "aria-describedby": g, onBlur: _, className: v, hoursLabel: y = "Horas", minutesLabel: b = "Minutos", hoursPlaceholder: x = "HH", minutesPlaceholder: S = "MM" }, C) {
11
- let w = i(() => Array.from({ length: 24 }, (e, t) => ({
10
+ var o = t(function({ value: t, onChange: o, step: s = 5, size: c = "md", disabled: l, readOnly: u, error: d, id: f, name: p, required: m, "aria-labelledby": h, "aria-describedby": g, onBlur: _, className: v, hoursLabel: y = "Horas", minutesLabel: b = "Minutos", hoursPlaceholder: x = "HH", minutesPlaceholder: S = "MM" }, C) {
11
+ let w = n(() => Array.from({ length: 24 }, (e, t) => ({
12
12
  value: String(t),
13
13
  label: a(t)
14
- })), []), T = i(() => {
14
+ })), []), T = n(() => {
15
15
  let e = [];
16
16
  for (let t = 0; t < 60; t += s) e.push({
17
17
  value: String(t),
@@ -19,19 +19,19 @@ var o = r(function({ value: r, onChange: o, step: s = 5, size: c = "md", disable
19
19
  });
20
20
  return e;
21
21
  }, [s]), E = (e) => {
22
- let t = parseInt(e, 10), n = r?.m ?? 0;
22
+ let n = parseInt(e, 10), r = t?.m ?? 0;
23
23
  o?.({
24
- h: t,
25
- m: n
24
+ h: n,
25
+ m: r
26
26
  });
27
27
  }, D = (e) => {
28
- let t = r?.h ?? 0;
28
+ let n = t?.h ?? 0;
29
29
  o?.({
30
- h: t,
30
+ h: n,
31
31
  m: parseInt(e, 10)
32
32
  });
33
- }, O = ["time-select", v ?? ""].filter(Boolean).join(" "), k = r == null ? "" : String(r.h), A = r == null ? "" : String(r.m);
34
- return /* @__PURE__ */ n("div", {
33
+ }, O = ["time-select", v ?? ""].filter(Boolean).join(" "), k = t == null ? "" : String(t.h), A = t == null ? "" : String(t.m);
34
+ return /* @__PURE__ */ i("div", {
35
35
  className: O,
36
36
  role: "group",
37
37
  "aria-labelledby": h,
@@ -39,7 +39,7 @@ var o = r(function({ value: r, onChange: o, step: s = 5, size: c = "md", disable
39
39
  "aria-invalid": d || void 0,
40
40
  "aria-required": m || void 0,
41
41
  children: [
42
- /* @__PURE__ */ t(e, {
42
+ /* @__PURE__ */ r(e, {
43
43
  ref: C,
44
44
  id: f,
45
45
  options: w,
@@ -54,12 +54,12 @@ var o = r(function({ value: r, onChange: o, step: s = 5, size: c = "md", disable
54
54
  onValueChange: E,
55
55
  onBlur: _
56
56
  }),
57
- /* @__PURE__ */ t("span", {
57
+ /* @__PURE__ */ r("span", {
58
58
  className: "time-select__sep",
59
59
  "aria-hidden": "true",
60
60
  children: ":"
61
61
  }),
62
- /* @__PURE__ */ t(e, {
62
+ /* @__PURE__ */ r(e, {
63
63
  options: T,
64
64
  value: A,
65
65
  placeholder: S,
@@ -72,10 +72,10 @@ var o = r(function({ value: r, onChange: o, step: s = 5, size: c = "md", disable
72
72
  onValueChange: D,
73
73
  onBlur: _
74
74
  }),
75
- p && /* @__PURE__ */ t("input", {
75
+ p && /* @__PURE__ */ r("input", {
76
76
  type: "hidden",
77
77
  name: p,
78
- value: r == null ? "" : `${a(r.h)}:${a(r.m)}`
78
+ value: t == null ? "" : `${a(t.h)}:${a(t.m)}`
79
79
  })
80
80
  ]
81
81
  });
package/dist/toaster.js CHANGED
@@ -4,8 +4,8 @@ import { Button as e } from "./button.js";
4
4
  import { CloseButton as t } from "./close-button.js";
5
5
  import { t as n } from "./_shared/css-properties.js";
6
6
  import { TOAST_DURATION as r, setToastDefaultDuration as i, syncLiveToasts as a, toastManager as o } from "./toast.js";
7
- import { jsx as s, jsxs as c } from "react/jsx-runtime";
8
- import { useEffect as l } from "react";
7
+ import { useEffect as s } from "react";
8
+ import { jsx as c, jsxs as l } from "react/jsx-runtime";
9
9
  import { Toast as u } from "@base-ui/react/toast";
10
10
  //#region src/stories/molecules/Toast/Toaster.tsx
11
11
  var d = 8, f = {
@@ -24,7 +24,7 @@ function p(e, t) {
24
24
  }
25
25
  function m({ position: r, containerAriaLabel: i, closeLabel: o, closeButton: d, gap: f, expand: m }) {
26
26
  let { toasts: h } = u.useToastManager(), [g, _] = r.split("-"), v = h.map((e) => e.id).join(",");
27
- l(() => {
27
+ s(() => {
28
28
  a(v ? v.split(",") : []);
29
29
  }, [v]);
30
30
  let y = n({ "--toast-gap": `${f}px` }), b = [
@@ -33,40 +33,40 @@ function m({ position: r, containerAriaLabel: i, closeLabel: o, closeButton: d,
33
33
  _ === "right" ? "" : `toaster--${_}`,
34
34
  m ? "toaster--expanded" : ""
35
35
  ].filter(Boolean).join(" ");
36
- return /* @__PURE__ */ s(u.Portal, { children: /* @__PURE__ */ s(u.Viewport, {
36
+ return /* @__PURE__ */ c(u.Portal, { children: /* @__PURE__ */ c(u.Viewport, {
37
37
  ref: y,
38
38
  className: b,
39
39
  "aria-label": i,
40
- children: h.map((n) => /* @__PURE__ */ c(u.Root, {
40
+ children: h.map((n) => /* @__PURE__ */ l(u.Root, {
41
41
  toast: n,
42
42
  className: p(n.type, d),
43
- children: [/* @__PURE__ */ c("div", {
43
+ children: [/* @__PURE__ */ l("div", {
44
44
  className: "alert__content",
45
45
  children: [
46
- /* @__PURE__ */ s(u.Title, { className: "alert__title" }),
47
- /* @__PURE__ */ s(u.Description, { className: "alert__description" }),
48
- /* @__PURE__ */ s(u.Action, {
46
+ /* @__PURE__ */ c(u.Title, { className: "alert__title" }),
47
+ /* @__PURE__ */ c(u.Description, { className: "alert__description" }),
48
+ /* @__PURE__ */ c(u.Action, {
49
49
  className: "toast__action",
50
- render: /* @__PURE__ */ s(e, {
50
+ render: /* @__PURE__ */ c(e, {
51
51
  variant: "ghost",
52
52
  size: "sm"
53
53
  })
54
54
  })
55
55
  ]
56
- }), d && /* @__PURE__ */ s(u.Close, {
56
+ }), d && /* @__PURE__ */ c(u.Close, {
57
57
  className: "alert__close",
58
- render: /* @__PURE__ */ s(t, { label: o })
58
+ render: /* @__PURE__ */ c(t, { label: o })
59
59
  })]
60
60
  }, n.id))
61
61
  }) });
62
62
  }
63
- function h({ position: e = "bottom-right", containerAriaLabel: t = "Notificaciones", closeLabel: n = "Cerrar", closeButton: a = !0, duration: c = r, gap: f = d, visibleToasts: p = 3, expand: h = !1 }) {
64
- let g = Number.isFinite(c) ? c : 0;
65
- return l(() => i(g), [g]), /* @__PURE__ */ s(u.Provider, {
63
+ function h({ position: e = "bottom-right", containerAriaLabel: t = "Notificaciones", closeLabel: n = "Cerrar", closeButton: a = !0, duration: l = r, gap: f = d, visibleToasts: p = 3, expand: h = !1 }) {
64
+ let g = Number.isFinite(l) ? l : 0;
65
+ return s(() => i(g), [g]), /* @__PURE__ */ c(u.Provider, {
66
66
  toastManager: o,
67
67
  timeout: g,
68
68
  limit: p,
69
- children: /* @__PURE__ */ s(m, {
69
+ children: /* @__PURE__ */ c(m, {
70
70
  position: e,
71
71
  containerAriaLabel: t,
72
72
  closeLabel: n,
@@ -1,22 +1,22 @@
1
1
  'use client';
2
2
  import './toggle-group.css';
3
3
  import { t as e } from "./_shared/togglegroupcontext.js";
4
- import { jsx as t } from "react/jsx-runtime";
5
- import { forwardRef as n, useMemo as r } from "react";
4
+ import { forwardRef as t, useMemo as n } from "react";
5
+ import { jsx as r } from "react/jsx-runtime";
6
6
  import { ToggleGroup as i } from "@base-ui/react/toggle-group";
7
7
  //#region src/stories/atoms/ToggleGroup/ToggleGroup.tsx
8
- var a = n(function({ value: n, defaultValue: a, onValueChange: o, multiple: s = !1, size: c, orientation: l = "horizontal", children: u, className: d, ...f }, p) {
8
+ var a = t(function({ value: t, defaultValue: a, onValueChange: o, multiple: s = !1, size: c, orientation: l = "horizontal", children: u, className: d, ...f }, p) {
9
9
  let m = [
10
10
  "toggle-group",
11
11
  l === "vertical" ? "toggle-group--vertical" : "",
12
12
  d ?? ""
13
- ].filter(Boolean).join(" "), h = r(() => ({ size: c }), [c]);
14
- return /* @__PURE__ */ t(e.Provider, {
13
+ ].filter(Boolean).join(" "), h = n(() => ({ size: c }), [c]);
14
+ return /* @__PURE__ */ r(e.Provider, {
15
15
  value: h,
16
- children: /* @__PURE__ */ t(i, {
16
+ children: /* @__PURE__ */ r(i, {
17
17
  ref: p,
18
18
  className: m,
19
- value: n,
19
+ value: t,
20
20
  defaultValue: a,
21
21
  multiple: s,
22
22
  orientation: l,
package/dist/toggle.js CHANGED
@@ -1,13 +1,13 @@
1
1
  'use client';
2
2
  import './toggle.css';
3
3
  import { n as e } from "./_shared/togglegroupcontext.js";
4
- import { jsx as t } from "react/jsx-runtime";
5
- import { forwardRef as n } from "react";
4
+ import { forwardRef as t } from "react";
5
+ import { jsx as n } from "react/jsx-runtime";
6
6
  import { Toggle as r } from "@base-ui/react/toggle";
7
7
  //#region src/stories/atoms/Toggle/Toggle.tsx
8
- var i = n(function({ size: n, iconOnly: i = !1, className: a, onPressedChange: o, ...s }, c) {
9
- let l = e(), u = n ?? l?.size ?? "md";
10
- return /* @__PURE__ */ t(r, {
8
+ var i = t(function({ size: t, iconOnly: i = !1, className: a, onPressedChange: o, ...s }, c) {
9
+ let l = e(), u = t ?? l?.size ?? "md";
10
+ return /* @__PURE__ */ n(r, {
11
11
  ref: c,
12
12
  className: [
13
13
  "toggle",