@studiolxd/brand 39.0.0 → 40.1.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 (132) hide show
  1. package/CHANGELOG.md +107 -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 +1 -0
  7. package/dist/_types/messages/BrandMessages.d.ts +26 -0
  8. package/dist/_types/messages/BrandMessagesContext.d.ts +21 -0
  9. package/dist/_types/messages/BrandMessagesProvider.d.ts +46 -0
  10. package/dist/_types/messages/index.d.ts +5 -0
  11. package/dist/_types/molecules/Pagination/Pagination.d.ts +40 -23
  12. package/dist/_types/organisms/AnnotationThread/AnnotationThread.d.ts +27 -5
  13. package/dist/_types/organisms/DataTable/DataTable.d.ts +3 -2
  14. package/dist/accordion.js +26 -26
  15. package/dist/alert.js +26 -26
  16. package/dist/annotation-thread.css +1 -1
  17. package/dist/annotation-thread.js +37 -26
  18. package/dist/app-header.js +8 -8
  19. package/dist/app-launcher.js +34 -34
  20. package/dist/app-shell.js +14 -14
  21. package/dist/assistant-message.js +8 -8
  22. package/dist/async-multi-select-field.js +9 -9
  23. package/dist/async-multi-select.js +40 -40
  24. package/dist/async-select-field.js +9 -9
  25. package/dist/async-select.js +64 -64
  26. package/dist/avatar-upload.js +40 -40
  27. package/dist/avatar.js +5 -5
  28. package/dist/banner.js +9 -9
  29. package/dist/brand.css +2 -1
  30. package/dist/button.js +7 -7
  31. package/dist/calendar-planner.js +16 -16
  32. package/dist/calendar.js +38 -38
  33. package/dist/card.js +28 -28
  34. package/dist/carousel.js +19 -19
  35. package/dist/chart.js +137 -137
  36. package/dist/chat-shell.js +23 -23
  37. package/dist/checkbox-field.js +11 -11
  38. package/dist/checkbox.js +7 -7
  39. package/dist/close-button.js +6 -6
  40. package/dist/code-block.js +15 -15
  41. package/dist/code.js +5 -5
  42. package/dist/collapsible.js +1 -1
  43. package/dist/columns.js +7 -7
  44. package/dist/command-palette.js +14 -14
  45. package/dist/confirm-dialog.js +10 -10
  46. package/dist/connector-auth-shell.js +9 -9
  47. package/dist/consent.js +23 -23
  48. package/dist/container.js +6 -6
  49. package/dist/conversation-list.js +19 -19
  50. package/dist/conversation-thread.js +15 -15
  51. package/dist/copy-button.js +9 -9
  52. package/dist/copyable-value.js +17 -17
  53. package/dist/data-table.js +29 -29
  54. package/dist/date-picker-field.js +9 -9
  55. package/dist/date-time-field.js +12 -12
  56. package/dist/description-list.js +12 -12
  57. package/dist/docs-search.js +1 -1
  58. package/dist/dots-button.js +7 -7
  59. package/dist/dropdown-field.js +13 -13
  60. package/dist/email.js +44 -44
  61. package/dist/error-text.js +4 -4
  62. package/dist/field-row.js +20 -20
  63. package/dist/figure.js +8 -8
  64. package/dist/file-upload-field.js +9 -9
  65. package/dist/file-upload.js +29 -29
  66. package/dist/filter-bar.js +10 -10
  67. package/dist/floating-dock.js +17 -17
  68. package/dist/form-field.js +43 -43
  69. package/dist/form.js +14 -14
  70. package/dist/heading.js +5 -5
  71. package/dist/input-field.js +20 -20
  72. package/dist/input-phone-field.js +9 -9
  73. package/dist/input-phone.js +19 -19
  74. package/dist/input.js +5 -5
  75. package/dist/kbd.js +5 -5
  76. package/dist/label.js +5 -5
  77. package/dist/link.js +7 -7
  78. package/dist/list.js +7 -7
  79. package/dist/menu-button.js +7 -7
  80. package/dist/message-bubble.js +5 -5
  81. package/dist/message-composer.js +13 -13
  82. package/dist/messages.js +12 -0
  83. package/dist/multi-select-field.js +9 -9
  84. package/dist/multi-select.js +52 -52
  85. package/dist/notification-button.js +8 -8
  86. package/dist/notification-panel.js +25 -25
  87. package/dist/number-input-field.js +9 -9
  88. package/dist/number-input.js +11 -11
  89. package/dist/otp-field.js +9 -9
  90. package/dist/otp-input.js +48 -48
  91. package/dist/pagination.js +92 -89
  92. package/dist/paragraph.js +5 -5
  93. package/dist/password-field.js +15 -15
  94. package/dist/prose.js +4 -4
  95. package/dist/public-page-shell.js +11 -11
  96. package/dist/radio-field.js +11 -11
  97. package/dist/radio-group.js +5 -5
  98. package/dist/radio.js +5 -5
  99. package/dist/scroll-area.js +11 -11
  100. package/dist/search-form.js +8 -8
  101. package/dist/select-field.js +9 -9
  102. package/dist/select.js +85 -85
  103. package/dist/separator.js +6 -6
  104. package/dist/sidebar.js +16 -16
  105. package/dist/site-header.js +14 -14
  106. package/dist/site-shell.js +6 -6
  107. package/dist/sparkline.js +9 -9
  108. package/dist/star-rating.js +24 -24
  109. package/dist/stat-tile.js +12 -12
  110. package/dist/steps.js +32 -32
  111. package/dist/switcher-field.js +13 -13
  112. package/dist/switcher.js +8 -8
  113. package/dist/table-of-contents.js +14 -14
  114. package/dist/tag.js +5 -5
  115. package/dist/text.js +7 -7
  116. package/dist/textarea-field.js +11 -11
  117. package/dist/textarea.js +5 -5
  118. package/dist/time-field.js +9 -9
  119. package/dist/time-select.js +17 -17
  120. package/dist/toaster.js +16 -16
  121. package/dist/toggle-group.js +7 -7
  122. package/dist/toggle.js +5 -5
  123. package/dist/tokens.css +2 -1
  124. package/dist/tooltip.js +16 -16
  125. package/dist/tree-view.js +41 -41
  126. package/dist/uptime-bars.js +34 -34
  127. package/dist/user-message.js +8 -8
  128. package/dist/visually-hidden.js +5 -5
  129. package/package.json +5 -1
  130. package/src/tokens/molecules/annotation-thread.css +1 -0
  131. package/src/tokens/scss/molecules/_annotation-thread.scss +1 -0
  132. package/src/tokens/tokens.json +1 -0
@@ -3,23 +3,23 @@ import './chat-shell.css';
3
3
  import { Icon as e } from "./icon.js";
4
4
  import { Button as t } from "./button.js";
5
5
  import { Sheet as n } from "./sheet.js";
6
- import { jsx as r, jsxs as i } from "react/jsx-runtime";
7
- import { forwardRef as a, useCallback as o, useEffect as s, useState as c } from "react";
6
+ import { forwardRef as r, useCallback as i, useEffect as a, useState as o } from "react";
7
+ import { jsx as s, jsxs as c } from "react/jsx-runtime";
8
8
  //#region src/stories/templates/ChatShell/ChatShell.tsx
9
- var l = "(min-width: 1024px)", u = a(function({ list: a, header: u, children: d, composer: f, listLabel: p = "Conversaciones", listTriggerLabel: m = "Abrir conversaciones", listOpen: h, onListOpenChange: g, className: _, ...v }, y) {
10
- let [b, x] = c(() => typeof window > "u" ? !0 : window.matchMedia(l).matches), [S, C] = c(!1), [w, T] = c(null), E = o((e) => {
9
+ var l = "(min-width: 1024px)", u = r(function({ list: r, header: u, children: d, composer: f, listLabel: p = "Conversaciones", listTriggerLabel: m = "Abrir conversaciones", listOpen: h, onListOpenChange: g, className: _, ...v }, y) {
10
+ let [b, x] = o(() => typeof window > "u" ? !0 : window.matchMedia(l).matches), [S, C] = o(!1), [w, T] = o(null), E = i((e) => {
11
11
  T(e), typeof y == "function" ? y(e) : y && (y.current = e);
12
12
  }, [y]);
13
- s(() => {
13
+ a(() => {
14
14
  let e = window.matchMedia(l), t = () => {
15
15
  x(e.matches), e.matches && C(!1);
16
16
  };
17
17
  return t(), e.addEventListener("change", t), () => e.removeEventListener("change", t);
18
18
  }, []);
19
- let D = o((e) => {
19
+ let D = i((e) => {
20
20
  h === void 0 && C(e), g?.(e);
21
- }, [h, g]), O = !b && (h ?? S), k = a != null && b, A = a != null && !b;
22
- return /* @__PURE__ */ i("div", {
21
+ }, [h, g]), O = !b && (h ?? S), k = r != null && b, A = r != null && !b;
22
+ return /* @__PURE__ */ c("div", {
23
23
  ref: E,
24
24
  className: [
25
25
  "chat-shell",
@@ -28,17 +28,17 @@ var l = "(min-width: 1024px)", u = a(function({ list: a, header: u, children: d,
28
28
  ].filter(Boolean).join(" "),
29
29
  ...v,
30
30
  children: [
31
- k && /* @__PURE__ */ r("aside", {
31
+ k && /* @__PURE__ */ s("aside", {
32
32
  className: "chat-shell__list",
33
33
  "aria-label": p,
34
- children: a
34
+ children: r
35
35
  }),
36
- /* @__PURE__ */ i("div", {
36
+ /* @__PURE__ */ c("div", {
37
37
  className: "chat-shell__main",
38
38
  children: [
39
- (u || A) && /* @__PURE__ */ i("header", {
39
+ (u || A) && /* @__PURE__ */ c("header", {
40
40
  className: "chat-shell__header",
41
- children: [A && /* @__PURE__ */ r(t, {
41
+ children: [A && /* @__PURE__ */ s(t, {
42
42
  variant: "ghost",
43
43
  size: "sm",
44
44
  iconOnly: !0,
@@ -47,26 +47,26 @@ var l = "(min-width: 1024px)", u = a(function({ list: a, header: u, children: d,
47
47
  "aria-expanded": O,
48
48
  className: "chat-shell__list-trigger",
49
49
  onClick: () => D(!0),
50
- children: /* @__PURE__ */ r(e, {
50
+ children: /* @__PURE__ */ s(e, {
51
51
  name: "layout-sidebar",
52
52
  size: "sm"
53
53
  })
54
- }), u && /* @__PURE__ */ r("div", {
54
+ }), u && /* @__PURE__ */ s("div", {
55
55
  className: "chat-shell__header-content",
56
56
  children: u
57
57
  })]
58
58
  }),
59
- /* @__PURE__ */ r("div", {
59
+ /* @__PURE__ */ s("div", {
60
60
  className: "chat-shell__thread",
61
61
  children: d
62
62
  }),
63
- f && /* @__PURE__ */ r("div", {
63
+ f && /* @__PURE__ */ s("div", {
64
64
  className: "chat-shell__composer",
65
65
  children: f
66
66
  })
67
67
  ]
68
68
  }),
69
- A && /* @__PURE__ */ i(n, {
69
+ A && /* @__PURE__ */ c(n, {
70
70
  side: "left",
71
71
  open: O,
72
72
  onOpenChange: D,
@@ -75,9 +75,9 @@ var l = "(min-width: 1024px)", u = a(function({ list: a, header: u, children: d,
75
75
  container: w ?? void 0,
76
76
  hideClose: !0,
77
77
  className: "chat-shell__drawer",
78
- children: [/* @__PURE__ */ r("header", {
78
+ children: [/* @__PURE__ */ s("header", {
79
79
  className: "chat-shell__header",
80
- children: /* @__PURE__ */ r(t, {
80
+ children: /* @__PURE__ */ s(t, {
81
81
  variant: "ghost",
82
82
  size: "sm",
83
83
  iconOnly: !0,
@@ -85,14 +85,14 @@ var l = "(min-width: 1024px)", u = a(function({ list: a, header: u, children: d,
85
85
  "aria-expanded": !0,
86
86
  className: "chat-shell__list-trigger",
87
87
  onClick: () => D(!1),
88
- children: /* @__PURE__ */ r(e, {
88
+ children: /* @__PURE__ */ s(e, {
89
89
  name: "layout-sidebar",
90
90
  size: "sm"
91
91
  })
92
92
  })
93
- }), /* @__PURE__ */ r("div", {
93
+ }), /* @__PURE__ */ s("div", {
94
94
  className: "chat-shell__drawer-list",
95
- children: a
95
+ children: r
96
96
  })]
97
97
  })
98
98
  ]
@@ -5,12 +5,12 @@ import { n as t } from "./_shared/form-size.js";
5
5
  import { Checkbox as n } from "./checkbox.js";
6
6
  import { ErrorText as r } from "./error-text.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/CheckboxField/CheckboxField.tsx
11
- var l = s(function({ label: s, labelHidden: l, checked: u, defaultChecked: d, disabled: f, size: p, id: m, name: h, value: g, error: _ = !1, errorMessage: v, helperText: y, className: b, onCheckedChange: x, onBlur: S }, C) {
12
- let w = i(l), T = t(p), E = c(), D = m ?? E, O = v ? `${D}-error` : void 0, k = y ? `${D}-helper` : void 0, A = [O, k].filter(Boolean).join(" ") || void 0, j = _ || !!v;
13
- return /* @__PURE__ */ o("div", {
11
+ var l = a(function({ label: a, labelHidden: l, checked: u, defaultChecked: d, disabled: f, size: p, id: m, name: h, value: g, error: _ = !1, errorMessage: v, helperText: y, className: b, onCheckedChange: x, onBlur: S }, C) {
12
+ let w = i(l), T = t(p), E = o(), D = m ?? E, O = v ? `${D}-error` : void 0, k = y ? `${D}-helper` : void 0, A = [O, k].filter(Boolean).join(" ") || void 0, j = _ || !!v;
13
+ return /* @__PURE__ */ c("div", {
14
14
  className: [
15
15
  "checkbox-field",
16
16
  T === "md" ? "" : `checkbox-field--${T}`,
@@ -18,10 +18,10 @@ var l = s(function({ label: s, labelHidden: l, checked: u, defaultChecked: d, di
18
18
  b
19
19
  ].filter(Boolean).join(" "),
20
20
  children: [
21
- /* @__PURE__ */ o("label", {
21
+ /* @__PURE__ */ c("label", {
22
22
  className: "checkbox-field__control",
23
23
  htmlFor: D,
24
- children: [/* @__PURE__ */ a(n, {
24
+ children: [/* @__PURE__ */ s(n, {
25
25
  ref: C,
26
26
  id: D,
27
27
  checked: u,
@@ -34,16 +34,16 @@ var l = s(function({ label: s, labelHidden: l, checked: u, defaultChecked: d, di
34
34
  "aria-describedby": A,
35
35
  onCheckedChange: x,
36
36
  onBlur: S
37
- }), a(w ? e : "span", {
37
+ }), s(w ? e : "span", {
38
38
  className: "checkbox-field__label",
39
- children: s
39
+ children: a
40
40
  })]
41
41
  }),
42
- v && /* @__PURE__ */ a(r, {
42
+ v && /* @__PURE__ */ s(r, {
43
43
  id: O,
44
44
  children: v
45
45
  }),
46
- y && /* @__PURE__ */ a("span", {
46
+ y && /* @__PURE__ */ s("span", {
47
47
  id: k,
48
48
  className: "checkbox-field__helper",
49
49
  children: y
package/dist/checkbox.js CHANGED
@@ -1,20 +1,20 @@
1
1
  'use client';
2
2
  import './checkbox.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
  import { Checkbox as n } from "@base-ui/react/checkbox";
6
6
  //#region src/stories/atoms/Checkbox/Checkbox.tsx
7
- var r = t(function({ size: t = "md", className: r, checked: i, indeterminate: a, onCheckedChange: o, id: s, error: c = !1, ...l }, u) {
7
+ var r = e(function({ size: e = "md", className: r, checked: i, indeterminate: a, onCheckedChange: o, id: s, error: c = !1, ...l }, u) {
8
8
  let d = [
9
9
  "checkbox",
10
- t === "md" ? "" : `checkbox--${t}`,
10
+ e === "md" ? "" : `checkbox--${e}`,
11
11
  c ? "checkbox--error" : "",
12
12
  r ?? ""
13
13
  ].filter(Boolean).join(" "), f = i === "indeterminate" || a;
14
- return /* @__PURE__ */ e(n.Root, {
14
+ return /* @__PURE__ */ t(n.Root, {
15
15
  ref: u,
16
16
  className: d,
17
- render: /* @__PURE__ */ e("button", {
17
+ render: /* @__PURE__ */ t("button", {
18
18
  type: "button",
19
19
  id: s
20
20
  }),
@@ -25,7 +25,7 @@ var r = t(function({ size: t = "md", className: r, checked: i, indeterminate: a,
25
25
  "aria-invalid": c || void 0,
26
26
  onCheckedChange: o ? (e) => o(e) : void 0,
27
27
  ...l,
28
- children: /* @__PURE__ */ e(n.Indicator, {
28
+ children: /* @__PURE__ */ t(n.Indicator, {
29
29
  className: "checkbox__indicator",
30
30
  keepMounted: !0
31
31
  })
@@ -1,11 +1,11 @@
1
1
  'use client';
2
2
  import './close-button.css';
3
3
  import { Icon as e } from "./icon.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
  //#region src/stories/atoms/CloseButton/CloseButton.tsx
7
- var r = n(function({ label: n = "Cerrar", size: r = "md", className: i, ...a }, o) {
8
- return /* @__PURE__ */ t("button", {
7
+ var r = t(function({ label: t = "Cerrar", size: r = "md", className: i, ...a }, o) {
8
+ return /* @__PURE__ */ n("button", {
9
9
  ref: o,
10
10
  type: "button",
11
11
  className: [
@@ -13,9 +13,9 @@ var r = n(function({ label: n = "Cerrar", size: r = "md", className: i, ...a },
13
13
  r === "md" ? "" : `close-button--${r}`,
14
14
  i
15
15
  ].filter(Boolean).join(" "),
16
- "aria-label": n,
16
+ "aria-label": t,
17
17
  ...a,
18
- children: /* @__PURE__ */ t(e, { name: "close" })
18
+ children: /* @__PURE__ */ n(e, { name: "close" })
19
19
  });
20
20
  });
21
21
  //#endregion
@@ -5,65 +5,65 @@ import { VisuallyHidden as t } from "./visually-hidden.js";
5
5
  import { Button as n } from "./button.js";
6
6
  import { n as r } from "./_shared/copy-to-clipboard.js";
7
7
  import { Tag as i } from "./tag.js";
8
- import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
9
- import { useRef as c } from "react";
8
+ import { useRef as a } from "react";
9
+ import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
10
10
  //#region src/stories/molecules/CodeBlock/CodeBlock.tsx
11
11
  var l = (e) => e ? `Bloque de código ${e}` : "Bloque de código";
12
12
  function u({ children: u, language: d, copyable: f = !1, singleLine: p, copyLabel: m = "Copiar código", copiedLabel: h = "Copiado", codeLabel: g = l, className: _, ...v }) {
13
- let y = c(null), { status: b, copy: x } = r(), S = b === "copied", C = () => x(() => y.current?.textContent ?? ""), w = typeof u == "string" && !u.includes("\n"), T = p ?? w, E = !!d || f, D = [
13
+ let y = a(null), { status: b, copy: x } = r(), S = b === "copied", C = () => x(() => y.current?.textContent ?? ""), w = typeof u == "string" && !u.includes("\n"), T = p ?? w, E = !!d || f, D = [
14
14
  "code-block",
15
15
  T ? "code-block--single-line" : "",
16
16
  _ ?? ""
17
- ].filter(Boolean).join(" "), O = d && /* @__PURE__ */ o(i, {
17
+ ].filter(Boolean).join(" "), O = d && /* @__PURE__ */ s(i, {
18
18
  variant: "neutral",
19
19
  className: "code-block__language",
20
20
  children: d
21
- }), k = f && /* @__PURE__ */ s(a, { children: [/* @__PURE__ */ o(n, {
21
+ }), k = f && /* @__PURE__ */ c(o, { children: [/* @__PURE__ */ s(n, {
22
22
  iconOnly: !0,
23
23
  variant: "ghost",
24
24
  size: "sm",
25
25
  "aria-label": m,
26
26
  onClick: C,
27
27
  className: "code-block__copy",
28
- children: /* @__PURE__ */ o(e, {
28
+ children: /* @__PURE__ */ s(e, {
29
29
  name: S ? "check" : "copy",
30
30
  size: "sm"
31
31
  })
32
- }), /* @__PURE__ */ o(t, {
32
+ }), /* @__PURE__ */ s(t, {
33
33
  role: "status",
34
34
  children: S ? h : ""
35
- })] }), A = /* @__PURE__ */ o("pre", {
35
+ })] }), A = /* @__PURE__ */ s("pre", {
36
36
  className: "code-block__pre",
37
37
  tabIndex: 0,
38
38
  role: "region",
39
39
  "aria-label": g(d),
40
- children: /* @__PURE__ */ o("code", {
40
+ children: /* @__PURE__ */ s("code", {
41
41
  ref: y,
42
42
  className: "code-block__code",
43
43
  children: u
44
44
  })
45
45
  });
46
- return T ? /* @__PURE__ */ o("div", {
46
+ return T ? /* @__PURE__ */ s("div", {
47
47
  className: D,
48
48
  ...v,
49
- children: /* @__PURE__ */ s("div", {
49
+ children: /* @__PURE__ */ c("div", {
50
50
  className: "code-block__row",
51
- children: [A, E && /* @__PURE__ */ s("div", {
51
+ children: [A, E && /* @__PURE__ */ c("div", {
52
52
  className: "code-block__controls",
53
53
  children: [O, k]
54
54
  })]
55
55
  })
56
- }) : /* @__PURE__ */ s("div", {
56
+ }) : /* @__PURE__ */ c("div", {
57
57
  className: D,
58
58
  ...v,
59
- children: [E && /* @__PURE__ */ s("div", {
59
+ children: [E && /* @__PURE__ */ c("div", {
60
60
  className: "code-block__header",
61
61
  children: [O, k]
62
62
  }), A]
63
63
  });
64
64
  }
65
65
  function d({ type: e, className: t, children: n, ...r }) {
66
- return /* @__PURE__ */ o("span", {
66
+ return /* @__PURE__ */ s("span", {
67
67
  className: [
68
68
  "code-block__token",
69
69
  `code-block__token--${e}`,
package/dist/code.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import './code.css';
2
- import { jsx as e } from "react/jsx-runtime";
3
- import { forwardRef as t } from "react";
2
+ import { forwardRef as e } from "react";
3
+ import { jsx as t } from "react/jsx-runtime";
4
4
  //#region src/stories/atoms/Code/Code.tsx
5
- var n = t(function({ className: t, children: n, ...r }, i) {
6
- return /* @__PURE__ */ e("code", {
5
+ var n = e(function({ className: e, children: n, ...r }, i) {
6
+ return /* @__PURE__ */ t("code", {
7
7
  ref: i,
8
- className: ["code", t].filter(Boolean).join(" "),
8
+ className: ["code", e].filter(Boolean).join(" "),
9
9
  ...r,
10
10
  children: n
11
11
  });
@@ -1,8 +1,8 @@
1
1
  'use client';
2
2
  import './collapsible.css';
3
3
  import { Icon as e } from "./icon.js";
4
- import { jsx as t, jsxs as n } from "react/jsx-runtime";
5
4
  import "react";
5
+ import { jsx as t, jsxs as n } from "react/jsx-runtime";
6
6
  import { Collapsible as r } from "@base-ui/react/collapsible";
7
7
  //#region src/stories/atoms/Collapsible/Collapsible.tsx
8
8
  function i({ onOpenChange: e, children: n, className: i, ...a }) {
package/dist/columns.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import './columns.css';
2
- import { jsx as e } from "react/jsx-runtime";
3
- import { Children as t, Fragment as n, isValidElement as r } from "react";
2
+ import { Children as e, Fragment as t, isValidElement as n } from "react";
3
+ import { jsx as r } from "react/jsx-runtime";
4
4
  //#region src/stories/atoms/Columns/Columns.tsx
5
5
  function i({ columns: i = 2, ratio: a = "1:1", align: o = "start", gap: s = "md", intermediate: c = !0, stackOrder: l = "normal", children: u, className: d, ...f }) {
6
6
  let p = [
@@ -12,14 +12,14 @@ function i({ columns: i = 2, ratio: a = "1:1", align: o = "start", gap: s = "md"
12
12
  c ? "" : "columns--no-intermediate",
13
13
  l === "reverse" ? "columns--reverse" : "",
14
14
  d
15
- ].filter(Boolean).join(" "), m = r(u) && u.type === n ? u.props.children : u, h = t.toArray(m);
16
- return /* @__PURE__ */ e("div", {
15
+ ].filter(Boolean).join(" "), m = n(u) && u.type === t ? u.props.children : u, h = e.toArray(m);
16
+ return /* @__PURE__ */ r("div", {
17
17
  className: p,
18
18
  ...f,
19
- children: h.map((t, n) => /* @__PURE__ */ e("div", {
19
+ children: h.map((e, t) => /* @__PURE__ */ r("div", {
20
20
  className: "columns__col",
21
- children: t
22
- }, n))
21
+ children: e
22
+ }, t))
23
23
  });
24
24
  }
25
25
  //#endregion
@@ -1,12 +1,12 @@
1
1
  'use client';
2
2
  import './command-palette.css';
3
3
  import { Modal as e } from "./modal.js";
4
- import { jsx as t, jsxs as n } from "react/jsx-runtime";
5
- import { useCallback as r, useEffect as i } from "react";
4
+ import { useCallback as t, useEffect as n } from "react";
5
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
6
6
  import { Autocomplete as a } from "@base-ui/react/autocomplete";
7
7
  //#region src/stories/molecules/CommandPalette/CommandPalette.tsx
8
8
  function o({ open: o, onOpenChange: s, groups: c, title: l, placeholder: u, emptyLabel: d, listLabel: f, closeLabel: p, shortcut: m = "k", locale: h, className: g }) {
9
- i(() => {
9
+ n(() => {
10
10
  if (m === !1) return;
11
11
  let e = (e) => {
12
12
  typeof e.key == "string" && e.key.toLowerCase() === m && (e.metaKey || e.ctrlKey) && (e.preventDefault(), s(!o));
@@ -20,43 +20,43 @@ function o({ open: o, onOpenChange: s, groups: c, title: l, placeholder: u, empt
20
20
  let _ = a.useFilter({
21
21
  sensitivity: "base",
22
22
  locale: h
23
- }), v = r((e, t) => _.contains(e.label, t) || (e.keywords ?? []).some((e) => _.contains(e, t)), [_]);
24
- return /* @__PURE__ */ t(e, {
23
+ }), v = t((e, t) => _.contains(e.label, t) || (e.keywords ?? []).some((e) => _.contains(e, t)), [_]);
24
+ return /* @__PURE__ */ r(e, {
25
25
  open: o,
26
26
  onClose: () => s(!1),
27
27
  title: l,
28
28
  ...p ? { closeLabel: p } : {},
29
- children: /* @__PURE__ */ t(a.Root, {
29
+ children: /* @__PURE__ */ r(a.Root, {
30
30
  inline: !0,
31
31
  open: !0,
32
32
  items: c,
33
33
  filter: v,
34
34
  autoHighlight: "always",
35
- children: /* @__PURE__ */ n("div", {
35
+ children: /* @__PURE__ */ i("div", {
36
36
  className: ["command-palette", g].filter(Boolean).join(" "),
37
37
  children: [
38
- /* @__PURE__ */ t(a.Input, {
38
+ /* @__PURE__ */ r(a.Input, {
39
39
  className: "command-palette__input",
40
40
  placeholder: u,
41
41
  autoFocus: !0
42
42
  }),
43
- /* @__PURE__ */ t(a.List, {
43
+ /* @__PURE__ */ r(a.List, {
44
44
  className: "command-palette__list",
45
45
  "aria-label": f,
46
- children: (e) => /* @__PURE__ */ n(a.Group, {
46
+ children: (e) => /* @__PURE__ */ i(a.Group, {
47
47
  items: e.items,
48
48
  className: "command-palette__group",
49
- children: [/* @__PURE__ */ t(a.GroupLabel, {
49
+ children: [/* @__PURE__ */ r(a.GroupLabel, {
50
50
  className: "command-palette__heading",
51
51
  children: e.heading
52
- }), /* @__PURE__ */ t(a.Collection, { children: (e) => /* @__PURE__ */ n(a.Item, {
52
+ }), /* @__PURE__ */ r(a.Collection, { children: (e) => /* @__PURE__ */ i(a.Item, {
53
53
  value: e,
54
54
  disabled: e.disabled,
55
55
  className: "command-palette__item",
56
56
  onClick: () => {
57
57
  s(!1), e.onSelect();
58
58
  },
59
- children: [e.icon && /* @__PURE__ */ t("span", {
59
+ children: [e.icon && /* @__PURE__ */ r("span", {
60
60
  className: "command-palette__item-icon",
61
61
  "aria-hidden": "true",
62
62
  children: e.icon
@@ -64,7 +64,7 @@ function o({ open: o, onOpenChange: s, groups: c, title: l, placeholder: u, empt
64
64
  }, e.id) })]
65
65
  }, e.id)
66
66
  }),
67
- /* @__PURE__ */ t(a.Empty, {
67
+ /* @__PURE__ */ r(a.Empty, {
68
68
  className: "command-palette__empty",
69
69
  children: d
70
70
  })
@@ -3,12 +3,12 @@ import './confirm-dialog.css';
3
3
  import { Button as e } from "./button.js";
4
4
  import { Modal as t } from "./modal.js";
5
5
  import { InputField as n } from "./input-field.js";
6
- import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
7
- import { useEffect as o, useId as s, useRef as c, useState as l } from "react";
6
+ import { useEffect as r, useId as i, useRef as a, useState as o } from "react";
7
+ import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
8
8
  //#region src/stories/molecules/ConfirmDialog/ConfirmDialog.tsx
9
9
  function u({ open: u, title: d, description: f, children: p, onConfirm: m, onCancel: h, onConfirmError: g, secondaryActionLabel: _, onSecondaryAction: v, destructive: y = !1, confirmLabel: b = "Confirmar", cancelLabel: x = "Cancelar", pendingLabel: S = "Confirmando…", closeLabel: C = "Cerrar", confirmPhrase: w, confirmPhraseLabel: T, confirmPhraseMismatch: E, container: D, className: O }) {
10
- let k = c(null), A = c(null), j = s(), [M, N] = l(!1), [P, F] = l(""), [I, L] = l(!1), R = w === void 0 || P.trim() === w, z = I && !R;
11
- o(() => {
10
+ let k = a(null), A = a(null), j = i(), [M, N] = o(!1), [P, F] = o(""), [I, L] = o(!1), R = w === void 0 || P.trim() === w, z = I && !R;
11
+ r(() => {
12
12
  u || (N(!1), F(""), L(!1));
13
13
  }, [u]);
14
14
  let B = () => {
@@ -27,7 +27,7 @@ function u({ open: u, title: d, description: f, children: p, onConfirm: m, onCan
27
27
  }
28
28
  }
29
29
  };
30
- return /* @__PURE__ */ a(t, {
30
+ return /* @__PURE__ */ l(t, {
31
31
  open: u,
32
32
  onClose: B,
33
33
  title: d,
@@ -36,21 +36,21 @@ function u({ open: u, title: d, description: f, children: p, onConfirm: m, onCan
36
36
  initialFocus: w === void 0 ? k : A,
37
37
  ...f == null ? {} : { description: f },
38
38
  footerClassName: ["confirm-dialog__actions", O].filter(Boolean).join(" "),
39
- footer: /* @__PURE__ */ a(r, { children: [
40
- /* @__PURE__ */ i(e, {
39
+ footer: /* @__PURE__ */ l(s, { children: [
40
+ /* @__PURE__ */ c(e, {
41
41
  ref: k,
42
42
  variant: "outline",
43
43
  onClick: B,
44
44
  disabled: M,
45
45
  children: x
46
46
  }),
47
- _ && v && /* @__PURE__ */ i(e, {
47
+ _ && v && /* @__PURE__ */ c(e, {
48
48
  variant: "outline",
49
49
  onClick: v,
50
50
  disabled: M,
51
51
  children: _
52
52
  }),
53
- /* @__PURE__ */ i(e, {
53
+ /* @__PURE__ */ c(e, {
54
54
  variant: y ? "outline" : "primary",
55
55
  destructive: y,
56
56
  onClick: V,
@@ -58,7 +58,7 @@ function u({ open: u, title: d, description: f, children: p, onConfirm: m, onCan
58
58
  children: M ? S : b
59
59
  })
60
60
  ] }),
61
- children: [p, w !== void 0 && /* @__PURE__ */ i(n, {
61
+ children: [p, w !== void 0 && /* @__PURE__ */ c(n, {
62
62
  ref: A,
63
63
  id: `${j}-confirm-phrase`,
64
64
  className: "confirm-dialog__phrase",
@@ -4,16 +4,16 @@ import { Columns as t } from "./columns.js";
4
4
  import { Stack as n } from "./stack.js";
5
5
  import { PageIntro as r } from "./page-intro.js";
6
6
  import { PublicPageShell as i } from "./public-page-shell.js";
7
- import { jsx as a, jsxs as o } from "react/jsx-runtime";
8
- import { forwardRef as s } from "react";
7
+ import { forwardRef as a } from "react";
8
+ import { jsx as o, jsxs as s } from "react/jsx-runtime";
9
9
  //#region src/stories/templates/ConnectorAuth/ConnectorAuthShell.tsx
10
- var c = s(function({ title: s, description: c, intro: l, aside: u, children: d, header: f, footer: p, preferences: m, preferencesLabel: h, id: g, shell: _, className: v }, y) {
11
- let b = /* @__PURE__ */ a(r, {
12
- title: s,
10
+ var c = a(function({ title: a, description: c, intro: l, aside: u, children: d, header: f, footer: p, preferences: m, preferencesLabel: h, id: g, shell: _, className: v }, y) {
11
+ let b = /* @__PURE__ */ o(r, {
12
+ title: a,
13
13
  description: c,
14
14
  children: l
15
15
  });
16
- return /* @__PURE__ */ a(i, {
16
+ return /* @__PURE__ */ o(i, {
17
17
  ref: y,
18
18
  header: f,
19
19
  footer: p,
@@ -21,11 +21,11 @@ var c = s(function({ title: s, description: c, intro: l, aside: u, children: d,
21
21
  preferencesLabel: h,
22
22
  id: g,
23
23
  shell: _,
24
- children: /* @__PURE__ */ a(e.Provider, {
24
+ children: /* @__PURE__ */ o(e.Provider, {
25
25
  value: "lg",
26
- children: /* @__PURE__ */ o(t, {
26
+ children: /* @__PURE__ */ s(t, {
27
27
  className: v,
28
- children: [u ? /* @__PURE__ */ o(n, {
28
+ children: [u ? /* @__PURE__ */ s(n, {
29
29
  mobileOrder: "reverse",
30
30
  children: [b, u]
31
31
  }) : b, d]