@studiolxd/brand 45.0.0 → 46.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 (33) hide show
  1. package/CHANGELOG.md +70 -0
  2. package/dist/_shared/tokens.js +9 -0
  3. package/dist/_types/messages/BrandMessages.d.ts +13 -1
  4. package/dist/_types/messages/index.d.ts +1 -1
  5. package/dist/_types/molecules/AppLauncher/AppLauncher.d.ts +43 -8
  6. package/dist/_types/molecules/CommandPalette/CommandPalette.d.ts +43 -8
  7. package/dist/_types/molecules/Consent/Consent.d.ts +93 -20
  8. package/dist/_types/molecules/NotificationButton/NotificationButton.d.ts +17 -4
  9. package/dist/_types/molecules/NotificationPanel/NotificationPanel.d.ts +54 -8
  10. package/dist/_types/sections/FloatingDock/FloatingDock.d.ts +33 -3
  11. package/dist/app-launcher.js +67 -61
  12. package/dist/brand.css +137 -6
  13. package/dist/command-palette.js +38 -36
  14. package/dist/consent.js +75 -73
  15. package/dist/floating-dock.js +42 -41
  16. package/dist/multi-select.css +1 -1
  17. package/dist/multi-select.js +1 -2
  18. package/dist/notification-button.js +18 -17
  19. package/dist/notification-panel.js +81 -80
  20. package/dist/select.css +1 -1
  21. package/dist/select.js +1 -2
  22. package/dist/tokens.css +137 -6
  23. package/package.json +1 -1
  24. package/src/tokens/components/control.css +4 -1
  25. package/src/tokens/components/multi-select.css +3 -0
  26. package/src/tokens/components/select.css +3 -0
  27. package/src/tokens/molecules/filter-bar.css +2 -2
  28. package/src/tokens/scss/components/_control.scss +4 -1
  29. package/src/tokens/scss/components/_multi-select.scss +3 -0
  30. package/src/tokens/scss/components/_select.scss +3 -0
  31. package/src/tokens/scss/molecules/_filter-bar.scss +2 -2
  32. package/src/tokens/surface-public.css +124 -2
  33. package/src/tokens/tokens.json +9 -0
@@ -1,62 +1,64 @@
1
1
  'use client';
2
2
  import './command-palette.css';
3
- import { Modal as e } from "./modal.js";
4
- import { useCallback as t, useEffect as n } from "react";
5
- import { jsx as r, jsxs as i } from "react/jsx-runtime";
6
- import { Autocomplete as a } from "@base-ui/react/autocomplete";
3
+ import { n as e } from "./_shared/brandmessagescontext.js";
4
+ import { Modal as t } from "./modal.js";
5
+ import { useCallback as n, useEffect as r } from "react";
6
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
7
+ import { Autocomplete as o } from "@base-ui/react/autocomplete";
7
8
  //#region src/stories/molecules/CommandPalette/CommandPalette.tsx
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
- n(() => {
10
- if (m === !1) return;
9
+ function s({ open: s, onOpenChange: c, groups: l, title: u, placeholder: d, emptyLabel: f, listLabel: p, closeLabel: m, shortcut: h = "k", locale: g, className: _ }) {
10
+ let v = e("commandPalette");
11
+ r(() => {
12
+ if (h === !1) return;
11
13
  let e = (e) => {
12
- typeof e.key == "string" && e.key.toLowerCase() === m && (e.metaKey || e.ctrlKey) && (e.preventDefault(), s(!o));
14
+ typeof e.key == "string" && e.key.toLowerCase() === h && (e.metaKey || e.ctrlKey) && (e.preventDefault(), c(!s));
13
15
  };
14
16
  return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
15
17
  }, [
16
- m,
17
- o,
18
- s
18
+ h,
19
+ s,
20
+ c
19
21
  ]);
20
- let _ = a.useFilter({
22
+ let y = o.useFilter({
21
23
  sensitivity: "base",
22
- locale: h
23
- }), v = t((e, t) => _.contains(e.label, t) || (e.keywords ?? []).some((e) => _.contains(e, t)), [_]);
24
- return /* @__PURE__ */ r(e, {
25
- open: o,
26
- onClose: () => s(!1),
27
- title: l,
28
- ...p ? { closeLabel: p } : {},
29
- children: /* @__PURE__ */ r(a.Root, {
24
+ locale: g
25
+ }), b = n((e, t) => y.contains(e.label, t) || (e.keywords ?? []).some((e) => y.contains(e, t)), [y]);
26
+ return /* @__PURE__ */ i(t, {
27
+ open: s,
28
+ onClose: () => c(!1),
29
+ title: v("title", u),
30
+ ...m ? { closeLabel: m } : {},
31
+ children: /* @__PURE__ */ i(o.Root, {
30
32
  inline: !0,
31
33
  open: !0,
32
- items: c,
33
- filter: v,
34
+ items: l,
35
+ filter: b,
34
36
  autoHighlight: "always",
35
- children: /* @__PURE__ */ i("div", {
36
- className: ["command-palette", g].filter(Boolean).join(" "),
37
+ children: /* @__PURE__ */ a("div", {
38
+ className: ["command-palette", _].filter(Boolean).join(" "),
37
39
  children: [
38
- /* @__PURE__ */ r(a.Input, {
40
+ /* @__PURE__ */ i(o.Input, {
39
41
  className: "command-palette__input",
40
- placeholder: u,
42
+ placeholder: v("placeholder", d),
41
43
  autoFocus: !0
42
44
  }),
43
- /* @__PURE__ */ r(a.List, {
45
+ /* @__PURE__ */ i(o.List, {
44
46
  className: "command-palette__list",
45
- "aria-label": f,
46
- children: (e) => /* @__PURE__ */ i(a.Group, {
47
+ "aria-label": v("list", p),
48
+ children: (e) => /* @__PURE__ */ a(o.Group, {
47
49
  items: e.items,
48
50
  className: "command-palette__group",
49
- children: [/* @__PURE__ */ r(a.GroupLabel, {
51
+ children: [/* @__PURE__ */ i(o.GroupLabel, {
50
52
  className: "command-palette__heading",
51
53
  children: e.heading
52
- }), /* @__PURE__ */ r(a.Collection, { children: (e) => /* @__PURE__ */ i(a.Item, {
54
+ }), /* @__PURE__ */ i(o.Collection, { children: (e) => /* @__PURE__ */ a(o.Item, {
53
55
  value: e,
54
56
  disabled: e.disabled,
55
57
  className: "command-palette__item",
56
58
  onClick: () => {
57
- s(!1), e.onSelect();
59
+ c(!1), e.onSelect();
58
60
  },
59
- children: [e.icon && /* @__PURE__ */ r("span", {
61
+ children: [e.icon && /* @__PURE__ */ i("span", {
60
62
  className: "command-palette__item-icon",
61
63
  "aria-hidden": "true",
62
64
  children: e.icon
@@ -64,9 +66,9 @@ function o({ open: o, onOpenChange: s, groups: c, title: l, placeholder: u, empt
64
66
  }, e.id) })]
65
67
  }, e.id)
66
68
  }),
67
- /* @__PURE__ */ r(a.Empty, {
69
+ /* @__PURE__ */ i(o.Empty, {
68
70
  className: "command-palette__empty",
69
- children: d
71
+ children: v("empty", f)
70
72
  })
71
73
  ]
72
74
  })
@@ -74,4 +76,4 @@ function o({ open: o, onOpenChange: s, groups: c, title: l, placeholder: u, empt
74
76
  });
75
77
  }
76
78
  //#endregion
77
- export { o as CommandPalette };
79
+ export { s as CommandPalette };
package/dist/consent.js CHANGED
@@ -1,109 +1,111 @@
1
1
  'use client';
2
2
  import './consent.css';
3
- import { VisuallyHidden as e } from "./visually-hidden.js";
4
- import { Button as t } from "./button.js";
5
- import { Heading as n } from "./heading.js";
6
- import { Link as r } from "./link.js";
7
- import { Paragraph as i } from "./paragraph.js";
8
- import { SwitcherField as a } from "./switcher-field.js";
9
- import { Sheet as o } from "./sheet.js";
10
- import { Modal as s } from "./modal.js";
11
- import { useEffect as c, useState as l } from "react";
12
- import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
3
+ import { n as e } from "./_shared/brandmessagescontext.js";
4
+ import { VisuallyHidden as t } from "./visually-hidden.js";
5
+ import { Button as n } from "./button.js";
6
+ import { Heading as r } from "./heading.js";
7
+ import { Link as i } from "./link.js";
8
+ import { Paragraph as a } from "./paragraph.js";
9
+ import { SwitcherField as o } from "./switcher-field.js";
10
+ import { Sheet as s } from "./sheet.js";
11
+ import { Modal as c } from "./modal.js";
12
+ import { useEffect as l, useState as u } from "react";
13
+ import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
13
14
  //#region src/stories/molecules/Consent/Consent.tsx
14
- function p({ open: e = !0, onAcceptAll: a, onRejectAll: o, onOpenPreferences: s, title: c = "Cookies", description: l = "Usamos cookies propias y de terceros para que el sitio funcione y para entender cómo se usa. Puedes aceptarlas todas, rechazarlas o elegir por categorías.", policyHref: p, policyLabel: m = "Política de cookies", policyExternal: h = !1, acceptAllLabel: g = "Aceptar todas", rejectAllLabel: _ = "Rechazar", preferencesLabel: v = "Preferencias", regionLabel: y = "Consentimiento de cookies", className: b, ...x }) {
15
- return e ? /* @__PURE__ */ d("aside", {
16
- className: ["consent-banner", b].filter(Boolean).join(" "),
15
+ function m({ open: t = !0, onAcceptAll: o, onRejectAll: s, onOpenPreferences: c, title: l, description: u, policyHref: m, policyLabel: h, policyExternal: g = !1, acceptAllLabel: _, rejectAllLabel: v, preferencesLabel: y, regionLabel: b, className: x, ...S }) {
16
+ let C = e("consent");
17
+ return t ? /* @__PURE__ */ f("aside", {
18
+ className: ["consent-banner", x].filter(Boolean).join(" "),
17
19
  role: "region",
18
- "aria-label": y,
19
- ...x,
20
- children: /* @__PURE__ */ f("div", {
20
+ "aria-label": C("regionLabel", b),
21
+ ...S,
22
+ children: /* @__PURE__ */ p("div", {
21
23
  className: "consent-banner__inner",
22
- children: [/* @__PURE__ */ f("div", {
24
+ children: [/* @__PURE__ */ p("div", {
23
25
  className: "consent-banner__text",
24
- children: [/* @__PURE__ */ d(n, {
26
+ children: [/* @__PURE__ */ f(r, {
25
27
  level: 2,
26
28
  size: 3,
27
29
  className: "consent-banner__title",
28
- children: c
29
- }), /* @__PURE__ */ f(i, {
30
+ children: l === void 0 ? C("title") : l
31
+ }), /* @__PURE__ */ p(a, {
30
32
  className: "consent-banner__description",
31
- children: [l, p !== void 0 && /* @__PURE__ */ f(u, { children: [" ", /* @__PURE__ */ d(r, {
32
- href: p,
33
- external: h,
34
- children: m
33
+ children: [u, m !== void 0 && /* @__PURE__ */ p(d, { children: [" ", /* @__PURE__ */ f(i, {
34
+ href: m,
35
+ external: g,
36
+ children: h
35
37
  })] })]
36
38
  })]
37
- }), /* @__PURE__ */ f("div", {
39
+ }), /* @__PURE__ */ p("div", {
38
40
  className: "consent-banner__actions",
39
41
  children: [
40
- /* @__PURE__ */ d(t, {
41
- onClick: a,
42
- children: g
43
- }),
44
- /* @__PURE__ */ d(t, {
42
+ /* @__PURE__ */ f(n, {
45
43
  onClick: o,
46
- children: _
44
+ children: C("acceptAll", _)
47
45
  }),
48
- s && /* @__PURE__ */ d(t, {
49
- variant: "outline",
46
+ /* @__PURE__ */ f(n, {
50
47
  onClick: s,
51
- children: v
48
+ children: C("rejectAll", v)
49
+ }),
50
+ c && /* @__PURE__ */ f(n, {
51
+ variant: "outline",
52
+ onClick: c,
53
+ children: C("preferences", y)
52
54
  })
53
55
  ]
54
56
  })]
55
57
  })
56
58
  }) : null;
57
59
  }
58
- function m(e, t) {
60
+ function h(e, t) {
59
61
  let n = { ...e };
60
62
  for (let e of t) e.required && (n[e.id] = !0);
61
63
  return n;
62
64
  }
63
- function h({ open: t, onOpenChange: n, categories: r, value: i, onChange: p, onSave: h, surface: g = "modal", side: _ = "right", title: v = "Preferencias de cookies", closeLabel: y, alwaysOnLabel: b = "Siempre activa", container: x, className: S }) {
64
- let C = p !== void 0, [w, T] = l(() => m(i, r));
65
- c(() => {
66
- t && !C && T(m(i, r));
67
- }, [t, C]);
68
- let E = C ? m(i, r) : w, D = (e) => {
69
- C ? p(e) : T(e), h?.(e);
70
- }, O = (e, t) => {
71
- D({
72
- ...E,
65
+ function g({ open: n, onOpenChange: r, categories: i, value: a, onChange: m, onSave: g, surface: _ = "modal", side: v = "right", title: y, closeLabel: b, alwaysOnLabel: x, container: S, className: C }) {
66
+ let w = e("consent"), T = m !== void 0, [E, D] = u(() => h(a, i));
67
+ l(() => {
68
+ n && !T && D(h(a, i));
69
+ }, [n, T]);
70
+ let O = T ? h(a, i) : E, k = (e) => {
71
+ T ? m(e) : D(e), g?.(e);
72
+ }, A = (e, t) => {
73
+ k({
74
+ ...O,
73
75
  [e]: t
74
76
  });
75
- }, k = /* @__PURE__ */ d("div", {
76
- className: ["consent-preferences", S].filter(Boolean).join(" "),
77
- children: /* @__PURE__ */ d("ul", {
77
+ }, j = /* @__PURE__ */ f("div", {
78
+ className: ["consent-preferences", C].filter(Boolean).join(" "),
79
+ children: /* @__PURE__ */ f("ul", {
78
80
  className: "consent-preferences__list",
79
- children: r.map((t) => /* @__PURE__ */ d("li", {
81
+ children: i.map((e) => /* @__PURE__ */ f("li", {
80
82
  className: "consent-preferences__category",
81
- children: /* @__PURE__ */ d(a, {
82
- label: t.required ? /* @__PURE__ */ f(u, { children: [t.name, /* @__PURE__ */ d(e, { children: `, ${b}` })] }) : t.name,
83
- helperText: t.description,
84
- checked: t.required ? !0 : E[t.id] === !0,
85
- disabled: t.required,
86
- onCheckedChange: (e) => O(t.id, e)
83
+ children: /* @__PURE__ */ f(o, {
84
+ label: e.required ? /* @__PURE__ */ p(d, { children: [e.name, /* @__PURE__ */ f(t, { children: `, ${w("alwaysOn", x)}` })] }) : e.name,
85
+ helperText: e.description,
86
+ checked: e.required ? !0 : O[e.id] === !0,
87
+ disabled: e.required,
88
+ onCheckedChange: (t) => A(e.id, t)
87
89
  })
88
- }, t.id))
90
+ }, e.id))
89
91
  })
90
- });
91
- return g === "modal" ? /* @__PURE__ */ d(s, {
92
- open: t,
93
- onClose: () => n(!1),
94
- title: typeof v == "string" ? v : void 0,
95
- ...y === void 0 ? {} : { closeLabel: y },
96
- container: x,
97
- children: k
98
- }) : /* @__PURE__ */ d(o, {
99
- open: t,
100
- onOpenChange: n,
101
- side: _,
102
- title: v,
103
- ...y === void 0 ? {} : { closeLabel: y },
104
- container: x,
105
- children: k
92
+ }), M = y === void 0 ? w("preferencesTitle") : y;
93
+ return _ === "modal" ? /* @__PURE__ */ f(c, {
94
+ open: n,
95
+ onClose: () => r(!1),
96
+ title: typeof M == "string" ? M : void 0,
97
+ ...b === void 0 ? {} : { closeLabel: b },
98
+ container: S,
99
+ children: j
100
+ }) : /* @__PURE__ */ f(s, {
101
+ open: n,
102
+ onOpenChange: r,
103
+ side: v,
104
+ title: M,
105
+ ...b === void 0 ? {} : { closeLabel: b },
106
+ container: S,
107
+ children: j
106
108
  });
107
109
  }
108
110
  //#endregion
109
- export { p as ConsentBanner, h as ConsentPreferences };
111
+ export { m as ConsentBanner, g as ConsentPreferences };
@@ -1,72 +1,73 @@
1
1
  'use client';
2
2
  import './floating-dock.css';
3
- import { Icon as e } from "./icon.js";
4
- import { VisuallyHidden as t } from "./visually-hidden.js";
5
- import { Button as n } from "./button.js";
6
- import { CloseButton as r } from "./close-button.js";
7
- import { NumberBadge as i } from "./number-badge.js";
8
- import { useState as a } from "react";
9
- import { jsx as o, jsxs as s } from "react/jsx-runtime";
10
- import { Dialog as c } from "@base-ui/react/dialog";
3
+ import { n as e } from "./_shared/brandmessagescontext.js";
4
+ import { Icon as t } from "./icon.js";
5
+ import { VisuallyHidden as n } from "./visually-hidden.js";
6
+ import { Button as r } from "./button.js";
7
+ import { CloseButton as i } from "./close-button.js";
8
+ import { NumberBadge as a } from "./number-badge.js";
9
+ import { useState as o } from "react";
10
+ import { jsx as s, jsxs as c } from "react/jsx-runtime";
11
+ import { Dialog as l } from "@base-ui/react/dialog";
11
12
  //#region src/stories/sections/FloatingDock/FloatingDock.tsx
12
- function l({ label: l, title: u, titleHidden: d = !1, description: f, children: p, icon: m, position: h = "bottom-end", open: g, defaultOpen: _, onOpenChange: v, closeLabel: y = "Cerrar", badge: b = 0, badgeMax: x = 99, badgeLabel: S = (e) => `${e} mensajes nuevos`, badgeLive: C = !0, dismissOnOutsidePress: w = !1, className: T, ...E }) {
13
- let [D, O] = a(null);
14
- return /* @__PURE__ */ o("div", {
15
- ref: O,
16
- className: ["floating-dock", T].filter(Boolean).join(" "),
17
- "data-position": h,
18
- ...E,
19
- children: /* @__PURE__ */ s(c.Root, {
20
- open: g,
21
- defaultOpen: _,
13
+ function u({ label: u, title: d, titleHidden: f = !1, description: p, children: m, icon: h, position: g = "bottom-end", open: _, defaultOpen: v, onOpenChange: y, closeLabel: b, badge: x = 0, badgeMax: S = 99, badgeLabel: C, badgeLive: w = !0, dismissOnOutsidePress: T = !1, className: E, ...D }) {
14
+ let O = e("floatingDock"), [k, A] = o(null);
15
+ return /* @__PURE__ */ s("div", {
16
+ ref: A,
17
+ className: ["floating-dock", E].filter(Boolean).join(" "),
18
+ "data-position": g,
19
+ ...D,
20
+ children: /* @__PURE__ */ c(l.Root, {
21
+ open: _,
22
+ defaultOpen: v,
22
23
  modal: !1,
23
- disablePointerDismissal: !w,
24
- onOpenChange: (e) => v?.(e),
24
+ disablePointerDismissal: !T,
25
+ onOpenChange: (e) => y?.(e),
25
26
  children: [
26
- /* @__PURE__ */ o(c.Trigger, { render: /* @__PURE__ */ s(n, {
27
+ /* @__PURE__ */ s(l.Trigger, { render: /* @__PURE__ */ c(r, {
27
28
  variant: "primary",
28
29
  size: "lg",
29
30
  iconOnly: !0,
30
- "aria-label": l,
31
+ "aria-label": u,
31
32
  className: "floating-dock__trigger",
32
- children: [m ?? /* @__PURE__ */ o(e, {
33
+ children: [h ?? /* @__PURE__ */ s(t, {
33
34
  name: "message",
34
35
  size: "md"
35
- }), b > 0 && /* @__PURE__ */ o(i, {
36
- count: b,
37
- max: x,
36
+ }), x > 0 && /* @__PURE__ */ s(a, {
37
+ count: x,
38
+ max: S,
38
39
  variant: "danger",
39
40
  "aria-hidden": "true",
40
41
  className: "floating-dock__badge"
41
42
  })]
42
43
  }) }),
43
- C && b > 0 && /* @__PURE__ */ o(t, {
44
+ w && x > 0 && /* @__PURE__ */ s(n, {
44
45
  "aria-live": "polite",
45
- children: S(b)
46
+ children: O("badge", C)(x)
46
47
  }),
47
- D && /* @__PURE__ */ o(c.Portal, {
48
- container: D,
48
+ k && /* @__PURE__ */ s(l.Portal, {
49
+ container: k,
49
50
  className: "floating-dock__portal",
50
- children: /* @__PURE__ */ s(c.Popup, {
51
+ children: /* @__PURE__ */ c(l.Popup, {
51
52
  className: "floating-dock__panel",
52
53
  children: [
53
- /* @__PURE__ */ s("header", {
54
+ /* @__PURE__ */ c("header", {
54
55
  className: "floating-dock__header",
55
- children: [d ? /* @__PURE__ */ o(c.Title, { render: /* @__PURE__ */ o(t, { children: u }) }) : /* @__PURE__ */ o(c.Title, {
56
+ children: [f ? /* @__PURE__ */ s(l.Title, { render: /* @__PURE__ */ s(n, { children: d }) }) : /* @__PURE__ */ s(l.Title, {
56
57
  className: "floating-dock__title",
57
- children: u
58
- }), f != null && /* @__PURE__ */ o(c.Description, {
58
+ children: d
59
+ }), p != null && /* @__PURE__ */ s(l.Description, {
59
60
  className: "floating-dock__description",
60
- children: f
61
+ children: p
61
62
  })]
62
63
  }),
63
- /* @__PURE__ */ o(c.Close, {
64
+ /* @__PURE__ */ s(l.Close, {
64
65
  className: "floating-dock__close",
65
- render: /* @__PURE__ */ o(r, { label: y })
66
+ render: /* @__PURE__ */ s(i, { label: O("close", b) })
66
67
  }),
67
- /* @__PURE__ */ o("div", {
68
+ /* @__PURE__ */ s("div", {
68
69
  className: "floating-dock__body",
69
- children: p
70
+ children: m
70
71
  })
71
72
  ]
72
73
  })
@@ -76,4 +77,4 @@ function l({ label: l, title: u, titleHidden: d = !1, description: f, children:
76
77
  });
77
78
  }
78
79
  //#endregion
79
- export { l as FloatingDock };
80
+ export { u as FloatingDock };
@@ -1 +1 @@
1
- .multi-select{justify-content:space-between;align-items:center;gap:var(--multi-select-content-gap);min-block-size:var(--multi-select-height);padding-block:0;padding-inline:var(--multi-select-padding-inline);font-family:var(--multi-select-font-family);font-size:var(--multi-select-font-size);line-height:var(--multi-select-line-height);font-weight:var(--multi-select-font-weight);color:var(--multi-select-color);background-color:var(--multi-select-bg);border-width:var(--multi-select-border-width);border-style:var(--multi-select-border-style);border-color:var(--multi-select-border-color);border-radius:var(--multi-select-border-radius);box-sizing:border-box;cursor:pointer;width:100%;display:inline-flex}.multi-select:focus,.multi-select[data-popup-open]{outline:none}.multi-select:has(.multi-select__combobox:focus-visible){outline:var(--multi-select-focus-ring-width) solid var(--multi-select-focus-ring-color);outline-offset:calc(-1 * (var(--multi-select-focus-ring-width) + var(--multi-select-border-width)))}.multi-select__combobox{outline:none;flex:auto;align-items:center;min-width:0;display:inline-flex}.multi-select.multi-select--disabled{opacity:var(--multi-select-disabled-opacity);cursor:var(--multi-select-disabled-cursor);pointer-events:none}.multi-select__values{align-items:center;gap:var(--multi-select-selection-gap);flex-wrap:wrap;flex:1;min-width:0;display:flex}.multi-select__placeholder{color:var(--multi-select-placeholder-color)}.multi-select__pill{align-items:center;gap:var(--multi-select-pill-gap);padding-block:var(--multi-select-pill-padding-block);padding-inline:var(--multi-select-pill-padding-inline);background-color:var(--multi-select-pill-bg);color:var(--multi-select-pill-color);border-radius:var(--multi-select-pill-border-radius);font-size:var(--multi-select-pill-font-size);line-height:var(--multi-select-pill-line-height);white-space:nowrap;display:inline-flex}.multi-select__pill-label{line-height:var(--multi-select-pill-line-height)}.multi-select__pill-remove{all:unset;cursor:pointer;line-height:var(--multi-select-pill-line-height);font-size:var(--multi-select-pill-font-size);opacity:var(--multi-select-pill-remove-opacity);justify-content:center;align-items:center;display:inline-flex}.multi-select__pill-remove:hover{opacity:var(--multi-select-pill-remove-hover-opacity)}.multi-select__icon{transition:transform var(--multi-select-icon-transition) var(--multi-select-icon-transition-easing);flex-shrink:0;transform:rotate(90deg)}[data-popup-open] .multi-select__icon{transform:rotate(-90deg)}.multi-select__content{background-color:var(--multi-select-content-bg);border-width:var(--multi-select-border-width);border-style:var(--multi-select-border-style);border-color:var(--multi-select-content-border-color);min-width:var(--anchor-width);max-height:var(--multi-select-content-max-height,var(--available-height));overscroll-behavior:contain;overflow-y:auto}.multi-select__content[data-side=bottom]{border-top:none}.multi-select__content[data-side=top]{border-bottom:none}.multi-select__item{all:unset;box-sizing:border-box;align-items:center;gap:var(--multi-select-padding-inline);width:100%;padding-block:var(--multi-select-item-padding-block);padding-inline:var(--multi-select-padding-inline);font-size:var(--multi-select-font-size);font-family:var(--multi-select-font-family);color:var(--multi-select-color);cursor:pointer;display:flex}.multi-select__item.multi-select__item--active,.multi-select__item:hover{background-color:var(--multi-select-item-highlighted-bg);color:var(--multi-select-item-highlighted-color)}.multi-select__item.multi-select__item--selected{font-weight:var(--multi-select-item-selected-font-weight)}.multi-select__content .multi-select__item+.multi-select__item,.multi-select__content[data-side=bottom] .multi-select__item:first-child{border-top:var(--multi-select-border-width) var(--multi-select-border-style) var(--multi-select-content-border-color)}.multi-select__content[data-side=top] .multi-select__item:last-child{border-bottom:var(--multi-select-border-width) var(--multi-select-border-style) var(--multi-select-content-border-color)}.multi-select__item-check{width:var(--checkbox-size);height:var(--checkbox-size);border-width:var(--checkbox-border-width);border-style:var(--checkbox-border-style);transition:background-color var(--checkbox-transition-duration) var(--checkbox-transition-easing);background-color:#0000;border-color:currentColor;flex-shrink:0;place-content:center;display:grid}.multi-select__item--selected .multi-select__item-check{background-color:currentColor}.multi-select__item-check-mark{width:var(--checkbox-check-size);height:var(--checkbox-check-size);background-color:var(--multi-select-content-bg);clip-path:polygon(14% 44%,0 65%,50% 100%,100% 16%,80% 0%,43% 62%);transition:transform var(--checkbox-transition-duration) var(--checkbox-transition-easing);transform:scale(0)}.multi-select__item--selected .multi-select__item-check-mark{transform:scale(1)}.multi-select__item--active .multi-select__item-check-mark,.multi-select__item:hover .multi-select__item-check-mark{background-color:var(--multi-select-item-highlighted-bg)}.multi-select.multi-select--sm{font-size:var(--multi-select-sm-font-size);--multi-select-height:var(--multi-select-sm-height);padding-inline:var(--multi-select-sm-padding-inline)}.multi-select__content--sm .multi-select__item{font-size:var(--multi-select-sm-font-size);padding-block:var(--multi-select-sm-item-padding-block)}.multi-select.multi-select--lg{font-size:var(--multi-select-lg-font-size);--multi-select-height:var(--multi-select-lg-height);padding-inline:var(--multi-select-lg-padding-inline)}.multi-select__content--lg .multi-select__item{font-size:var(--multi-select-lg-font-size);padding-block:var(--multi-select-lg-item-padding-block)}.multi-select__positioner{z-index:var(--multi-select-content-z-index)}.multi-select.multi-select--error{border-color:var(--multi-select-error-border-color)}
1
+ .multi-select{justify-content:space-between;align-items:center;gap:var(--multi-select-content-gap);min-block-size:var(--multi-select-height);padding-block:0;padding-inline:var(--multi-select-padding-inline);font-family:var(--multi-select-font-family);font-size:var(--multi-select-font-size);line-height:var(--multi-select-line-height);font-weight:var(--multi-select-font-weight);color:var(--multi-select-color);background-color:var(--multi-select-bg);border-width:var(--multi-select-border-width);border-style:var(--multi-select-border-style);border-color:var(--multi-select-border-color);border-radius:var(--multi-select-border-radius);box-sizing:border-box;cursor:pointer;width:100%;display:inline-flex}.multi-select:focus,.multi-select[data-popup-open]{outline:none}.multi-select:has(.multi-select__combobox:focus-visible){outline:var(--multi-select-focus-ring-width) solid var(--multi-select-focus-ring-color);outline-offset:calc(-1 * (var(--multi-select-focus-ring-width) + var(--multi-select-border-width)))}.multi-select__combobox{outline:none;flex:auto;align-items:center;min-width:0;display:inline-flex}.multi-select.multi-select--disabled{opacity:var(--multi-select-disabled-opacity);cursor:var(--multi-select-disabled-cursor);pointer-events:none}.multi-select__values{align-items:center;gap:var(--multi-select-selection-gap);flex-wrap:wrap;flex:1;min-width:0;display:flex}.multi-select__placeholder{color:var(--multi-select-placeholder-color)}.multi-select__pill{align-items:center;gap:var(--multi-select-pill-gap);padding-block:var(--multi-select-pill-padding-block);padding-inline:var(--multi-select-pill-padding-inline);background-color:var(--multi-select-pill-bg);color:var(--multi-select-pill-color);border-radius:var(--multi-select-pill-border-radius);font-size:var(--multi-select-pill-font-size);line-height:var(--multi-select-pill-line-height);white-space:nowrap;display:inline-flex}.multi-select__pill-label{line-height:var(--multi-select-pill-line-height)}.multi-select__pill-remove{all:unset;cursor:pointer;line-height:var(--multi-select-pill-line-height);font-size:var(--multi-select-pill-font-size);opacity:var(--multi-select-pill-remove-opacity);justify-content:center;align-items:center;display:inline-flex}.multi-select__pill-remove:hover{opacity:var(--multi-select-pill-remove-hover-opacity)}.multi-select .multi-select__icon{--icon-size:var(--multi-select-icon-size)}.multi-select__icon{transition:transform var(--multi-select-icon-transition) var(--multi-select-icon-transition-easing);flex-shrink:0;transform:rotate(90deg)}[data-popup-open] .multi-select__icon{transform:rotate(-90deg)}.multi-select__content{background-color:var(--multi-select-content-bg);border-width:var(--multi-select-border-width);border-style:var(--multi-select-border-style);border-color:var(--multi-select-content-border-color);min-width:var(--anchor-width);max-height:var(--multi-select-content-max-height,var(--available-height));overscroll-behavior:contain;overflow-y:auto}.multi-select__content[data-side=bottom]{border-top:none}.multi-select__content[data-side=top]{border-bottom:none}.multi-select__item{all:unset;box-sizing:border-box;align-items:center;gap:var(--multi-select-padding-inline);width:100%;padding-block:var(--multi-select-item-padding-block);padding-inline:var(--multi-select-padding-inline);font-size:var(--multi-select-font-size);font-family:var(--multi-select-font-family);color:var(--multi-select-color);cursor:pointer;display:flex}.multi-select__item.multi-select__item--active,.multi-select__item:hover{background-color:var(--multi-select-item-highlighted-bg);color:var(--multi-select-item-highlighted-color)}.multi-select__item.multi-select__item--selected{font-weight:var(--multi-select-item-selected-font-weight)}.multi-select__content .multi-select__item+.multi-select__item,.multi-select__content[data-side=bottom] .multi-select__item:first-child{border-top:var(--multi-select-border-width) var(--multi-select-border-style) var(--multi-select-content-border-color)}.multi-select__content[data-side=top] .multi-select__item:last-child{border-bottom:var(--multi-select-border-width) var(--multi-select-border-style) var(--multi-select-content-border-color)}.multi-select__item-check{width:var(--checkbox-size);height:var(--checkbox-size);border-width:var(--checkbox-border-width);border-style:var(--checkbox-border-style);transition:background-color var(--checkbox-transition-duration) var(--checkbox-transition-easing);background-color:#0000;border-color:currentColor;flex-shrink:0;place-content:center;display:grid}.multi-select__item--selected .multi-select__item-check{background-color:currentColor}.multi-select__item-check-mark{width:var(--checkbox-check-size);height:var(--checkbox-check-size);background-color:var(--multi-select-content-bg);clip-path:polygon(14% 44%,0 65%,50% 100%,100% 16%,80% 0%,43% 62%);transition:transform var(--checkbox-transition-duration) var(--checkbox-transition-easing);transform:scale(0)}.multi-select__item--selected .multi-select__item-check-mark{transform:scale(1)}.multi-select__item--active .multi-select__item-check-mark,.multi-select__item:hover .multi-select__item-check-mark{background-color:var(--multi-select-item-highlighted-bg)}.multi-select.multi-select--sm{font-size:var(--multi-select-sm-font-size);--multi-select-height:var(--multi-select-sm-height);padding-inline:var(--multi-select-sm-padding-inline);--multi-select-icon-size:var(--multi-select-sm-icon-size)}.multi-select__content--sm .multi-select__item{font-size:var(--multi-select-sm-font-size);padding-block:var(--multi-select-sm-item-padding-block)}.multi-select.multi-select--lg{font-size:var(--multi-select-lg-font-size);--multi-select-height:var(--multi-select-lg-height);padding-inline:var(--multi-select-lg-padding-inline);--multi-select-icon-size:var(--multi-select-lg-icon-size)}.multi-select__content--lg .multi-select__item{font-size:var(--multi-select-lg-font-size);padding-block:var(--multi-select-lg-item-padding-block)}.multi-select__positioner{z-index:var(--multi-select-content-z-index)}.multi-select.multi-select--error{border-color:var(--multi-select-error-border-color)}
@@ -133,8 +133,7 @@ var d = 500, f = n(function({ options: n, value: f, defaultValue: p = [], placeh
133
133
  }),
134
134
  /* @__PURE__ */ s(t, {
135
135
  name: "chevron",
136
- className: "multi-select__icon",
137
- size: _ === "sm" ? "xs" : _ === "lg" ? "md" : "sm"
136
+ className: "multi-select__icon"
138
137
  }),
139
138
  b && U.map((e) => /* @__PURE__ */ s("input", {
140
139
  type: "hidden",
@@ -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 };