@studiolxd/brand 45.1.0 → 47.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 (71) hide show
  1. package/CHANGELOG.md +168 -0
  2. package/dist/_shared/portal-container.js +9 -0
  3. package/dist/_types/atoms/AsyncMultiSelect/AsyncMultiSelect.d.ts +8 -7
  4. package/dist/_types/atoms/AsyncSelect/AsyncSelect.d.ts +8 -6
  5. package/dist/_types/atoms/InputPhone/InputPhone.d.ts +8 -5
  6. package/dist/_types/atoms/MenuButton/MenuButton.d.ts +22 -2
  7. package/dist/_types/atoms/MultiSelect/MultiSelect.d.ts +8 -6
  8. package/dist/_types/atoms/Popover/Popover.d.ts +8 -1
  9. package/dist/_types/atoms/Select/Select.d.ts +8 -7
  10. package/dist/_types/atoms/Tooltip/Tooltip.d.ts +7 -0
  11. package/dist/_types/constants/portal-container.d.ts +42 -0
  12. package/dist/_types/messages/BrandMessages.d.ts +41 -1
  13. package/dist/_types/messages/index.d.ts +1 -1
  14. package/dist/_types/molecules/AppLauncher/AppLauncher.d.ts +43 -8
  15. package/dist/_types/molecules/Breadcrumb/Breadcrumb.d.ts +10 -2
  16. package/dist/_types/molecules/CommandPalette/CommandPalette.d.ts +43 -8
  17. package/dist/_types/molecules/Consent/Consent.d.ts +93 -20
  18. package/dist/_types/molecules/Menu/Menu.d.ts +8 -1
  19. package/dist/_types/molecules/Modal/Modal.d.ts +8 -6
  20. package/dist/_types/molecules/NotificationButton/NotificationButton.d.ts +17 -4
  21. package/dist/_types/molecules/NotificationPanel/NotificationPanel.d.ts +54 -8
  22. package/dist/_types/molecules/OrgSwitcher/OrgSwitcher.d.ts +15 -1
  23. package/dist/_types/molecules/PrevNextNav/PrevNextNav.d.ts +17 -2
  24. package/dist/_types/molecules/Sheet/Sheet.d.ts +8 -7
  25. package/dist/_types/molecules/SidebarNav/SidebarNav.d.ts +18 -3
  26. package/dist/_types/molecules/SiteNav/SiteNav.d.ts +9 -0
  27. package/dist/_types/molecules/TableOfContents/TableOfContents.d.ts +11 -2
  28. package/dist/_types/molecules/UserMenu/UserMenu.d.ts +16 -1
  29. package/dist/_types/sections/AppHeader/AppHeader.d.ts +8 -2
  30. package/dist/_types/sections/AppRoot/AppRoot.d.ts +12 -1
  31. package/dist/_types/sections/AppShell/AppShell.d.ts +14 -1
  32. package/dist/_types/sections/FloatingDock/FloatingDock.d.ts +33 -3
  33. package/dist/_types/sections/Sidebar/Sidebar.d.ts +27 -3
  34. package/dist/_types/sections/SiteHeader/SiteHeader.d.ts +22 -3
  35. package/dist/_types/sections/SiteShell/SiteShell.d.ts +11 -5
  36. package/dist/_types/templates/OnboardingShell/OnboardingShell.d.ts +19 -2
  37. package/dist/_types/templates/PublicPageShell/PublicPageShell.d.ts +42 -6
  38. package/dist/app-header.js +1 -1
  39. package/dist/app-launcher.js +73 -63
  40. package/dist/app-root.js +10 -8
  41. package/dist/app-shell.js +51 -50
  42. package/dist/async-multi-select.js +65 -64
  43. package/dist/async-select.js +49 -48
  44. package/dist/breadcrumb.js +24 -21
  45. package/dist/command-palette.js +38 -36
  46. package/dist/consent.js +75 -73
  47. package/dist/floating-dock.js +42 -41
  48. package/dist/input-phone.js +38 -37
  49. package/dist/menu-button.js +16 -14
  50. package/dist/menu.js +44 -40
  51. package/dist/modal.js +32 -31
  52. package/dist/multi-select.js +106 -105
  53. package/dist/notification-button.js +18 -17
  54. package/dist/notification-panel.js +81 -80
  55. package/dist/onboarding-shell.js +36 -35
  56. package/dist/org-switcher.js +64 -59
  57. package/dist/popover.js +27 -22
  58. package/dist/prev-next-nav.js +38 -36
  59. package/dist/public-page-shell.js +24 -20
  60. package/dist/select.js +70 -69
  61. package/dist/sheet.js +30 -29
  62. package/dist/sidebar-nav.js +91 -90
  63. package/dist/sidebar.js +72 -71
  64. package/dist/site-header.js +44 -43
  65. package/dist/site-nav.js +27 -25
  66. package/dist/site-shell.js +23 -15
  67. package/dist/table-of-contents.js +30 -27
  68. package/dist/toaster.js +57 -53
  69. package/dist/tooltip.js +45 -41
  70. package/dist/user-menu.js +58 -52
  71. package/package.json +1 -1
package/dist/modal.js CHANGED
@@ -2,56 +2,57 @@
2
2
  import './modal.css';
3
3
  import { n as e } from "./_shared/brandmessagescontext.js";
4
4
  import { VisuallyHidden as t } from "./visually-hidden.js";
5
- import { CloseButton as n } from "./close-button.js";
6
- import { n as r, r as i, t as a } from "./_shared/dialogsurface.js";
7
- import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
8
- import { Dialog as l } from "@base-ui/react/dialog";
5
+ import { n } from "./_shared/portal-container.js";
6
+ import { CloseButton as r } from "./close-button.js";
7
+ import { n as i, r as a, t as o } from "./_shared/dialogsurface.js";
8
+ import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
9
+ import { Dialog as u } from "@base-ui/react/dialog";
9
10
  //#region src/stories/molecules/Modal/Modal.tsx
10
- function u({ open: u, onClose: d, title: f, children: p, closeLabel: m, fallbackTitle: h, container: g, description: _, "aria-describedby": v, initialFocus: y, footer: b, footerClassName: x, ...S }) {
11
- let C = e("modal"), w = v === void 0 ? {} : { "aria-describedby": v }, T = y === void 0 ? {} : { initialFocus: y };
12
- return /* @__PURE__ */ s(l.Root, {
13
- open: u,
11
+ function d({ open: d, onClose: f, title: p, children: m, closeLabel: h, fallbackTitle: g, container: _, description: v, "aria-describedby": y, initialFocus: b, footer: x, footerClassName: S, ...C }) {
12
+ let w = e("modal"), T = n(_), E = y === void 0 ? {} : { "aria-describedby": y }, D = b === void 0 ? {} : { initialFocus: b };
13
+ return /* @__PURE__ */ c(u.Root, {
14
+ open: d,
14
15
  onOpenChange: (e) => {
15
- e || d();
16
+ e || f();
16
17
  },
17
- children: /* @__PURE__ */ c(l.Portal, {
18
- container: g,
19
- children: [/* @__PURE__ */ s(i, { className: "modal__overlay" }), /* @__PURE__ */ c(l.Popup, {
18
+ children: /* @__PURE__ */ l(u.Portal, {
19
+ container: T,
20
+ children: [/* @__PURE__ */ c(a, { className: "modal__overlay" }), /* @__PURE__ */ l(u.Popup, {
20
21
  className: "modal__content",
21
- ...w,
22
- ...T,
23
- ...S,
22
+ ...E,
23
+ ...D,
24
+ ...C,
24
25
  children: [
25
- f ? /* @__PURE__ */ c(r, {
26
+ p ? /* @__PURE__ */ l(i, {
26
27
  layout: "inline",
27
28
  className: "modal__header",
28
- children: [/* @__PURE__ */ s(l.Title, {
29
+ children: [/* @__PURE__ */ c(u.Title, {
29
30
  className: "modal__title",
30
- children: f
31
- }), /* @__PURE__ */ s(l.Close, {
31
+ children: p
32
+ }), /* @__PURE__ */ c(u.Close, {
32
33
  className: "modal__close",
33
- render: /* @__PURE__ */ s(n, { label: C("close", m) })
34
+ render: /* @__PURE__ */ c(r, { label: w("close", h) })
34
35
  })]
35
- }) : /* @__PURE__ */ c(o, { children: [/* @__PURE__ */ s(l.Title, { render: /* @__PURE__ */ s(t, { children: C("fallbackTitle", h) }) }), /* @__PURE__ */ s(r, {
36
+ }) : /* @__PURE__ */ l(s, { children: [/* @__PURE__ */ c(u.Title, { render: /* @__PURE__ */ c(t, { children: w("fallbackTitle", g) }) }), /* @__PURE__ */ c(i, {
36
37
  layout: "inline",
37
38
  noTitle: !0,
38
39
  className: "modal__header modal__header--no-title",
39
- children: /* @__PURE__ */ s(l.Close, {
40
+ children: /* @__PURE__ */ c(u.Close, {
40
41
  className: "modal__close",
41
- render: /* @__PURE__ */ s(n, { label: C("close", m) })
42
+ render: /* @__PURE__ */ c(r, { label: w("close", h) })
42
43
  })
43
44
  })] }),
44
- _ != null && /* @__PURE__ */ s(l.Description, {
45
+ v != null && /* @__PURE__ */ c(u.Description, {
45
46
  className: "modal__description",
46
- children: _
47
+ children: v
47
48
  }),
48
- /* @__PURE__ */ s("div", {
49
+ /* @__PURE__ */ c("div", {
49
50
  className: "modal__body",
50
- children: p
51
+ children: m
51
52
  }),
52
- b != null && /* @__PURE__ */ s(a, {
53
- className: ["modal__footer", x].filter(Boolean).join(" "),
54
- children: b
53
+ x != null && /* @__PURE__ */ c(o, {
54
+ className: ["modal__footer", S].filter(Boolean).join(" "),
55
+ children: x
55
56
  })
56
57
  ]
57
58
  })]
@@ -59,4 +60,4 @@ function u({ open: u, onClose: d, title: f, children: p, closeLabel: m, fallback
59
60
  });
60
61
  }
61
62
  //#endregion
62
- export { u as Modal };
63
+ export { d as Modal };
@@ -2,165 +2,166 @@
2
2
  import './multi-select.css';
3
3
  import { n as e } from "./_shared/brandmessagescontext.js";
4
4
  import { Icon as t } from "./icon.js";
5
- import { forwardRef as n, useEffect as r, useId as i, useRef as a, useState as o } from "react";
6
- import { jsx as s, jsxs as c } from "react/jsx-runtime";
7
- import { Popover as l } from "@base-ui/react/popover";
5
+ import { n } from "./_shared/portal-container.js";
6
+ import { forwardRef as r, useEffect as i, useId as a, useRef as o, useState as s } from "react";
7
+ import { jsx as c, jsxs as l } from "react/jsx-runtime";
8
+ import { Popover as u } from "@base-ui/react/popover";
8
9
  //#region src/stories/atoms/MultiSelect/MultiSelect.tsx
9
- function u(e, t) {
10
+ function d(e, t) {
10
11
  typeof e == "function" ? e(t) : e && (e.current = t);
11
12
  }
12
- var d = 500, f = n(function({ options: n, value: f, defaultValue: p = [], placeholder: m, disabled: h, readOnly: g, size: _ = "md", onValueChange: v, id: y, name: b, error: x = !1, onBlur: S, className: C, "aria-label": w, "aria-labelledby": T, "aria-describedby": E, removeLabel: D, container: O }, k) {
13
- let A = e("multiSelect"), [j, M] = o(!1), [N, P] = o(p), [F, I] = o(-1), L = a(null), R = a(null), z = i(), B = i(), V = a(""), H = a(0), U = f === void 0 ? N : f, W = (e) => `${B}-opt-${e}`;
14
- function G(e) {
15
- let t = U.includes(e) ? U.filter((t) => t !== e) : [...U, e];
16
- f === void 0 && P(t), v?.(t);
13
+ var f = 500, p = r(function({ options: r, value: p, defaultValue: m = [], placeholder: h, disabled: g, readOnly: _, size: v = "md", onValueChange: y, id: b, name: x, error: S = !1, onBlur: C, className: w, "aria-label": T, "aria-labelledby": E, "aria-describedby": D, removeLabel: O, container: k }, A) {
14
+ let j = e("multiSelect"), M = n(k), [N, P] = s(!1), [F, I] = s(m), [L, R] = s(-1), z = o(null), B = o(null), V = a(), H = a(), U = o(""), W = o(0), G = p === void 0 ? F : p, K = (e) => `${H}-opt-${e}`;
15
+ function q(e) {
16
+ let t = G.includes(e) ? G.filter((t) => t !== e) : [...G, e];
17
+ p === void 0 && I(t), y?.(t);
17
18
  }
18
- function K(e) {
19
- h || g || (M(!0), I(n.length === 0 ? -1 : e));
19
+ function J(e) {
20
+ g || _ || (P(!0), R(r.length === 0 ? -1 : e));
20
21
  }
21
- function q() {
22
- M(!1), I(-1), V.current = "";
22
+ function Y() {
23
+ P(!1), R(-1), U.current = "";
23
24
  }
24
- function J(e, t) {
25
+ function X(e, t) {
25
26
  if (!e) {
26
27
  if (t.reason === "outside-press") {
27
28
  let e = t.event?.target;
28
- if (e instanceof Node && L.current?.contains(e)) return;
29
+ if (e instanceof Node && z.current?.contains(e)) return;
29
30
  }
30
- q();
31
+ Y();
31
32
  }
32
33
  }
33
- function Y(e) {
34
- if (n.length === 0) return;
35
- let t = Date.now(), r = t - H.current > d ? e : V.current + e;
36
- V.current = r, H.current = t;
37
- let i = r.length === 1 ? F + 1 : Math.max(F, 0), a = r.toLowerCase();
38
- for (let e = 0; e < n.length; e++) {
39
- let t = (i + e) % n.length;
40
- if (n[t].label.toLowerCase().startsWith(a)) {
41
- I(t), j || M(!0);
34
+ function Z(e) {
35
+ if (r.length === 0) return;
36
+ let t = Date.now(), n = t - W.current > f ? e : U.current + e;
37
+ U.current = n, W.current = t;
38
+ let i = n.length === 1 ? L + 1 : Math.max(L, 0), a = n.toLowerCase();
39
+ for (let e = 0; e < r.length; e++) {
40
+ let t = (i + e) % r.length;
41
+ if (r[t].label.toLowerCase().startsWith(a)) {
42
+ R(t), N || P(!0);
42
43
  return;
43
44
  }
44
45
  }
45
46
  }
46
- function X(e) {
47
- if (h || g) return;
48
- let t = n.length - 1;
49
- if (e.key === "ArrowDown") e.preventDefault(), j ? I((e) => Math.min(e + 1, t)) : K(0);
50
- else if (e.key === "ArrowUp") e.preventDefault(), j ? I((e) => Math.max(e - 1, 0)) : K(t);
51
- else if (e.key === "Home") e.preventDefault(), j ? I(n.length === 0 ? -1 : 0) : K(0);
52
- else if (e.key === "End") e.preventDefault(), j ? I(t) : K(t);
53
- else if (e.key === "Enter" || e.key === " ") e.preventDefault(), j ? F >= 0 && F < n.length && G(n[F].value) : K(0);
47
+ function Q(e) {
48
+ if (g || _) return;
49
+ let t = r.length - 1;
50
+ if (e.key === "ArrowDown") e.preventDefault(), N ? R((e) => Math.min(e + 1, t)) : J(0);
51
+ else if (e.key === "ArrowUp") e.preventDefault(), N ? R((e) => Math.max(e - 1, 0)) : J(t);
52
+ else if (e.key === "Home") e.preventDefault(), N ? R(r.length === 0 ? -1 : 0) : J(0);
53
+ else if (e.key === "End") e.preventDefault(), N ? R(t) : J(t);
54
+ else if (e.key === "Enter" || e.key === " ") e.preventDefault(), N ? L >= 0 && L < r.length && q(r[L].value) : J(0);
54
55
  else if (e.key === "Escape") {
55
- if (!j) return;
56
- e.preventDefault(), q();
57
- } else e.key === "Tab" ? j && q() : e.key.length === 1 && !e.ctrlKey && !e.metaKey && !e.altKey && (e.preventDefault(), Y(e.key));
56
+ if (!N) return;
57
+ e.preventDefault(), Y();
58
+ } else e.key === "Tab" ? N && Y() : e.key.length === 1 && !e.ctrlKey && !e.metaKey && !e.altKey && (e.preventDefault(), Z(e.key));
58
59
  }
59
- function Z(e) {
60
- h || g || e.target instanceof Element && e.target.closest(".multi-select__pill-remove") || (e.preventDefault(), R.current?.focus(), j ? q() : K(0));
60
+ function $(e) {
61
+ g || _ || e.target instanceof Element && e.target.closest(".multi-select__pill-remove") || (e.preventDefault(), B.current?.focus(), N ? Y() : J(0));
61
62
  }
62
- r(() => {
63
- !j || F < 0 || document.getElementById(W(F))?.scrollIntoView({ block: "nearest" });
63
+ i(() => {
64
+ !N || L < 0 || document.getElementById(K(L))?.scrollIntoView({ block: "nearest" });
64
65
  }, [
65
- j,
66
- F,
67
- B
66
+ N,
67
+ L,
68
+ H
68
69
  ]);
69
- let Q = [
70
+ let ee = [
70
71
  "multi-select",
71
- _ === "md" ? "" : `multi-select--${_}`,
72
- h ? "multi-select--disabled" : "",
73
- x ? "multi-select--error" : "",
74
- C ?? ""
75
- ].filter(Boolean).join(" "), $ = ["multi-select__content", _ === "md" ? "" : `multi-select__content--${_}`].filter(Boolean).join(" ");
76
- return /* @__PURE__ */ c(l.Root, {
77
- open: j,
78
- onOpenChange: J,
79
- children: [/* @__PURE__ */ c("div", {
80
- ref: L,
81
- className: Q,
82
- "data-popup-open": j || void 0,
83
- onPointerDown: Z,
72
+ v === "md" ? "" : `multi-select--${v}`,
73
+ g ? "multi-select--disabled" : "",
74
+ S ? "multi-select--error" : "",
75
+ w ?? ""
76
+ ].filter(Boolean).join(" "), te = ["multi-select__content", v === "md" ? "" : `multi-select__content--${v}`].filter(Boolean).join(" ");
77
+ return /* @__PURE__ */ l(u.Root, {
78
+ open: N,
79
+ onOpenChange: X,
80
+ children: [/* @__PURE__ */ l("div", {
81
+ ref: z,
82
+ className: ee,
83
+ "data-popup-open": N || void 0,
84
+ onPointerDown: $,
84
85
  children: [
85
- /* @__PURE__ */ c("div", {
86
+ /* @__PURE__ */ l("div", {
86
87
  className: "multi-select__values",
87
- children: [U.map((e) => {
88
- let r = n.find((t) => t.value === e);
89
- return r ? /* @__PURE__ */ c("span", {
88
+ children: [G.map((e) => {
89
+ let n = r.find((t) => t.value === e);
90
+ return n ? /* @__PURE__ */ l("span", {
90
91
  className: "multi-select__pill",
91
- children: [/* @__PURE__ */ s("span", {
92
+ children: [/* @__PURE__ */ c("span", {
92
93
  className: "multi-select__pill-label",
93
- children: r.label
94
- }), !h && !g && /* @__PURE__ */ s("button", {
94
+ children: n.label
95
+ }), !g && !_ && /* @__PURE__ */ c("button", {
95
96
  type: "button",
96
97
  className: "multi-select__pill-remove",
97
- "aria-label": A("remove", D)(r.label),
98
+ "aria-label": j("remove", O)(n.label),
98
99
  tabIndex: -1,
99
100
  onClick: (t) => {
100
- t.stopPropagation(), G(e), R.current?.focus();
101
+ t.stopPropagation(), q(e), B.current?.focus();
101
102
  },
102
- children: /* @__PURE__ */ s(t, {
103
+ children: /* @__PURE__ */ c(t, {
103
104
  name: "close",
104
105
  size: "xs"
105
106
  })
106
107
  })]
107
108
  }, e) : null;
108
- }), /* @__PURE__ */ s("div", {
109
+ }), /* @__PURE__ */ c("div", {
109
110
  ref: (e) => {
110
- R.current = e, u(k, e);
111
+ B.current = e, d(A, e);
111
112
  },
112
113
  className: "multi-select__combobox",
113
- tabIndex: h ? -1 : 0,
114
+ tabIndex: g ? -1 : 0,
114
115
  role: "combobox",
115
- "aria-expanded": j,
116
+ "aria-expanded": N,
116
117
  "aria-haspopup": "listbox",
117
- "aria-controls": j ? z : void 0,
118
- "aria-activedescendant": j && F >= 0 ? W(F) : void 0,
119
- "aria-label": T ? void 0 : w ?? A("placeholder", m),
120
- "aria-labelledby": T,
121
- "aria-describedby": E,
122
- "aria-invalid": x || void 0,
123
- "aria-disabled": h || void 0,
124
- "aria-readonly": g || void 0,
125
- id: y,
126
- onKeyDown: X,
127
- onBlur: S,
128
- children: U.length === 0 && /* @__PURE__ */ s("span", {
118
+ "aria-controls": N ? V : void 0,
119
+ "aria-activedescendant": N && L >= 0 ? K(L) : void 0,
120
+ "aria-label": E ? void 0 : T ?? j("placeholder", h),
121
+ "aria-labelledby": E,
122
+ "aria-describedby": D,
123
+ "aria-invalid": S || void 0,
124
+ "aria-disabled": g || void 0,
125
+ "aria-readonly": _ || void 0,
126
+ id: b,
127
+ onKeyDown: Q,
128
+ onBlur: C,
129
+ children: G.length === 0 && /* @__PURE__ */ c("span", {
129
130
  className: "multi-select__placeholder",
130
- children: A("placeholder", m)
131
+ children: j("placeholder", h)
131
132
  })
132
133
  })]
133
134
  }),
134
- /* @__PURE__ */ s(t, {
135
+ /* @__PURE__ */ c(t, {
135
136
  name: "chevron",
136
137
  className: "multi-select__icon"
137
138
  }),
138
- b && U.map((e) => /* @__PURE__ */ s("input", {
139
+ x && G.map((e) => /* @__PURE__ */ c("input", {
139
140
  type: "hidden",
140
- name: b,
141
+ name: x,
141
142
  value: e
142
143
  }, e))
143
144
  ]
144
- }), /* @__PURE__ */ s(l.Portal, {
145
- container: O,
146
- children: /* @__PURE__ */ s(l.Positioner, {
145
+ }), /* @__PURE__ */ c(u.Portal, {
146
+ container: M,
147
+ children: /* @__PURE__ */ c(u.Positioner, {
147
148
  className: "multi-select__positioner",
148
- anchor: L,
149
+ anchor: z,
149
150
  align: "start",
150
151
  sideOffset: -1,
151
- children: /* @__PURE__ */ s(l.Popup, {
152
- className: $,
152
+ children: /* @__PURE__ */ c(u.Popup, {
153
+ className: te,
153
154
  initialFocus: !1,
154
155
  finalFocus: !1,
155
- children: /* @__PURE__ */ s("div", {
156
+ children: /* @__PURE__ */ c("div", {
156
157
  role: "listbox",
157
158
  "aria-multiselectable": "true",
158
- "aria-label": w ?? m,
159
- id: z,
160
- children: n.map((e, t) => {
161
- let n = U.includes(e.value), r = F === t;
162
- return /* @__PURE__ */ c("div", {
163
- id: W(t),
159
+ "aria-label": T ?? h,
160
+ id: V,
161
+ children: r.map((e, t) => {
162
+ let n = G.includes(e.value), r = L === t;
163
+ return /* @__PURE__ */ l("div", {
164
+ id: K(t),
164
165
  role: "option",
165
166
  "aria-selected": n,
166
167
  "aria-label": e["aria-label"] ?? e.label,
@@ -173,13 +174,13 @@ var d = 500, f = n(function({ options: n, value: f, defaultValue: p = [], placeh
173
174
  e.preventDefault(), e.stopPropagation();
174
175
  },
175
176
  onClick: () => {
176
- G(e.value), I(t), R.current?.focus();
177
+ q(e.value), R(t), B.current?.focus();
177
178
  },
178
- children: [/* @__PURE__ */ s("span", {
179
+ children: [/* @__PURE__ */ c("span", {
179
180
  className: "multi-select__item-check",
180
181
  "aria-hidden": "true",
181
- children: /* @__PURE__ */ s("span", { className: "multi-select__item-check-mark" })
182
- }), /* @__PURE__ */ s("span", { children: e.label })]
182
+ children: /* @__PURE__ */ c("span", { className: "multi-select__item-check-mark" })
183
+ }), /* @__PURE__ */ c("span", { children: e.label })]
183
184
  }, e.value);
184
185
  })
185
186
  })
@@ -189,4 +190,4 @@ var d = 500, f = n(function({ options: n, value: f, defaultValue: p = [], placeh
189
190
  });
190
191
  });
191
192
  //#endregion
192
- export { f as MultiSelect };
193
+ export { p as MultiSelect };
@@ -1,27 +1,28 @@
1
1
  'use client';
2
2
  import './notification-button.css';
3
- import { Icon as e } from "./icon.js";
4
- import { Button as t } from "./button.js";
5
- import { NumberBadge as n } from "./number-badge.js";
6
- import { forwardRef as r } from "react";
7
- import { jsx as i, jsxs as a } from "react/jsx-runtime";
3
+ import { n as e } from "./_shared/brandmessagescontext.js";
4
+ import { Icon as t } from "./icon.js";
5
+ import { Button as n } from "./button.js";
6
+ import { NumberBadge as r } from "./number-badge.js";
7
+ import { forwardRef as i } from "react";
8
+ import { jsx as a, jsxs as o } from "react/jsx-runtime";
8
9
  //#region src/stories/molecules/NotificationButton/NotificationButton.tsx
9
- var o = r(function({ count: r = 0, max: o = 99, label: s = "Notificaciones", countLabel: c = (e) => `Notificaciones: ${e} sin leer`, className: l, ...u }, d) {
10
- let f = r > 0 ? c(r) : s;
11
- return /* @__PURE__ */ a(t, {
12
- ref: d,
10
+ var s = i(function({ count: i = 0, max: s = 99, label: c, countLabel: l, className: u, ...d }, f) {
11
+ let p = e("notificationButton"), m = i > 0 ? p("countLabel", l)(i) : p("label", c);
12
+ return /* @__PURE__ */ o(n, {
13
+ ref: f,
13
14
  variant: "ghost",
14
15
  iconOnly: !0,
15
16
  size: "md",
16
- "aria-label": f,
17
- className: ["notification-button", l].filter(Boolean).join(" "),
18
- ...u,
19
- children: [/* @__PURE__ */ i(e, {
17
+ "aria-label": m,
18
+ className: ["notification-button", u].filter(Boolean).join(" "),
19
+ ...d,
20
+ children: [/* @__PURE__ */ a(t, {
20
21
  name: "bell",
21
22
  size: "md"
22
- }), r > 0 && /* @__PURE__ */ i(n, {
23
- count: r,
24
- max: o,
23
+ }), i > 0 && /* @__PURE__ */ a(r, {
24
+ count: i,
25
+ max: s,
25
26
  variant: "danger",
26
27
  "aria-hidden": "true",
27
28
  className: "notification-button__badge"
@@ -29,4 +30,4 @@ var o = r(function({ count: r = 0, max: o = 99, label: s = "Notificaciones", cou
29
30
  });
30
31
  });
31
32
  //#endregion
32
- export { o as NotificationButton };
33
+ export { s as NotificationButton };