@uva-glass/component-library 1.41.2 → 1.41.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/dist/{MenuLink-CSnr2Az4.js → MenuLink-yPEEfABB.js} +4 -4
  2. package/dist/MenuLink-yPEEfABB.js.map +1 -0
  3. package/dist/{MultiSelect-CkfmzGsn.js → MultiSelect-DFMb82q4.js} +2 -2
  4. package/dist/{MultiSelect-CkfmzGsn.js.map → MultiSelect-DFMb82q4.js.map} +1 -1
  5. package/dist/MultiSelectItem-CsSIAJRX.js +24 -0
  6. package/dist/{MultiSelectItem-BKDbs8D_.js.map → MultiSelectItem-CsSIAJRX.js.map} +1 -1
  7. package/dist/assets/MultiSelectItem.css +1 -1
  8. package/dist/components/ActionList/ActionList.js +21 -26
  9. package/dist/components/ActionList/ActionList.js.map +1 -1
  10. package/dist/components/Button/Button.stories.js +1 -1
  11. package/dist/components/Checkbox/Checkbox.stories.js +1 -1
  12. package/dist/components/Drawer/Drawer.stories.js +1 -1
  13. package/dist/components/IconButton/IconButton.stories.js +1 -1
  14. package/dist/components/InputField/InputField.stories.js +2 -2
  15. package/dist/components/MenuButton/MenuButton.js +49 -60
  16. package/dist/components/MenuButton/MenuButton.js.map +1 -1
  17. package/dist/components/MenuButton/MenuButton.stories.js +1 -1
  18. package/dist/components/MenuLink/MenuLink.js +1 -1
  19. package/dist/components/MenuLink/MenuLink.stories.js +1 -1
  20. package/dist/components/MenuLink/index.js +1 -1
  21. package/dist/components/ModalDialog/ModalDialog.stories.js +1 -1
  22. package/dist/components/MultiSelect/MultiSelect.js +2 -2
  23. package/dist/components/MultiSelect/MultiSelect.stories.js +2 -2
  24. package/dist/components/MultiSelect/components/MultiSelectHeader.js +2 -2
  25. package/dist/components/MultiSelect/components/MultiSelectItem.js +1 -1
  26. package/dist/components/MultiSelect/index.js +1 -1
  27. package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js +1 -1
  28. package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +2 -2
  29. package/dist/components/SelectListbox/SelectListBox.stories.js +1 -1
  30. package/dist/components/index.js +2 -2
  31. package/dist/index-C7tAT8j7.js +25529 -0
  32. package/dist/index-C7tAT8j7.js.map +1 -0
  33. package/dist/index.js +2 -2
  34. package/package.json +12 -14
  35. package/dist/MenuLink-CSnr2Az4.js.map +0 -1
  36. package/dist/MultiSelectItem-BKDbs8D_.js +0 -24
  37. package/dist/index-0Faxlks_.js +0 -25525
  38. package/dist/index-0Faxlks_.js.map +0 -1
@@ -1,6 +1,6 @@
1
1
  import { jsxs as s, jsx as l, Fragment as a } from "react/jsx-runtime";
2
2
  import { c as m } from "./clsx-OuTLNxxd.js";
3
- import { s as t, M as u } from "./MultiSelectItem-BKDbs8D_.js";
3
+ import { s as t, M as u } from "./MultiSelectItem-CsSIAJRX.js";
4
4
  import { Label as n } from "./components/Label/Label.js";
5
5
  import "react";
6
6
  import { Button as p } from "./components/Button/Button.js";
@@ -44,4 +44,4 @@ export {
44
44
  o as M,
45
45
  d as a
46
46
  };
47
- //# sourceMappingURL=MultiSelect-CkfmzGsn.js.map
47
+ //# sourceMappingURL=MultiSelect-DFMb82q4.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MultiSelect-CkfmzGsn.js","sources":["../src/components/MultiSelect/components/MultiSelectHeader.tsx","../src/components/MultiSelect/MultiSelect.tsx"],"sourcesContent":["import styles from 'components/MultiSelect/MultiSelect.module.css';\nimport { Label } from 'components/Label';\nimport { Button } from 'components';\n\nexport interface MultiSelectHeaderProps {\n label: string;\n clearTrigger?: string;\n onClear?: () => void;\n}\n\nexport function MultiSelectHeader({ label, clearTrigger, onClear }: MultiSelectHeaderProps) {\n return (\n <header className={styles['multi-select__header']}>\n <Label htmlFor=\"multi-select-list\">{label}</Label>\n {clearTrigger && (\n <Button variant={'blank'} onClick={onClear}>\n {clearTrigger}\n </Button>\n )}\n </header>\n );\n}\n","import clsx from 'clsx';\n\nimport type { PropsWithChildren, ReactNode } from 'react';\n\nimport styles from './MultiSelect.module.css';\n\nimport { MultiSelectItem } from 'components/MultiSelect/components/MultiSelectItem';\nimport { MultiSelectHeader } from 'components/MultiSelect/components/MultiSelectHeader';\nexport interface MultiSelectProps {\n scrollable?: boolean;\n noBorder?: boolean;\n header?: ReactNode;\n}\n\nexport const MultiSelect = ({ scrollable = true, noBorder, header, children }: PropsWithChildren<MultiSelectProps>) => (\n <>\n {header}\n <div\n className={clsx(styles['multi-select'], {\n [styles['multi-select--no-border']]: noBorder,\n })}\n >\n <ul\n className={clsx(styles['multi-select__list'], {\n [styles['multi-select__list--scrollable']]: scrollable,\n })}\n id=\"multi-select-list\"\n >\n {children}\n </ul>\n </div>\n </>\n);\n\nMultiSelect.MultiSelectHeader = MultiSelectHeader;\nMultiSelect.MultiSelectItem = MultiSelectItem;\n"],"names":["MultiSelectHeader","label","clearTrigger","onClear","jsxs","styles","jsx","Label","Button","MultiSelect","scrollable","noBorder","header","children","Fragment","clsx","MultiSelectItem"],"mappings":";;;;;;;;;;;;;AAUO,SAASA,EAAkB,EAAE,OAAAC,GAAO,cAAAC,GAAc,SAAAC,KAAmC;AAC1F,SACG,gBAAAC,EAAA,UAAA,EAAO,WAAWC,EAAO,sBAAsB,GAC9C,UAAA;AAAA,IAAC,gBAAAC,EAAAC,GAAA,EAAM,SAAQ,qBAAqB,UAAMN,GAAA;AAAA,IACzCC,KACE,gBAAAI,EAAAE,GAAA,EAAO,SAAS,SAAS,SAASL,GAChC,UACHD,GAAA;AAAA,EAEJ,EAAA,CAAA;AAEJ;ACPa,MAAAO,IAAc,CAAC,EAAE,YAAAC,IAAa,IAAM,UAAAC,GAAU,QAAAC,GAAQ,UAAAC,QAE9D,gBAAAT,EAAAU,GAAA,EAAA,UAAA;AAAA,EAAAF;AAAA,EACD,gBAAAN;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWS,EAAKV,EAAO,cAAc,GAAG;AAAA,QACtC,CAACA,EAAO,yBAAyB,CAAC,GAAGM;AAAA,MAAA,CACtC;AAAA,MAED,UAAA,gBAAAL;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,WAAWS,EAAKV,EAAO,oBAAoB,GAAG;AAAA,YAC5C,CAACA,EAAO,gCAAgC,CAAC,GAAGK;AAAA,UAAA,CAC7C;AAAA,UACD,IAAG;AAAA,UAEF,UAAAG;AAAA,QAAA;AAAA,MACH;AAAA,IAAA;AAAA,EACF;AAAA,GACF;AAGFJ,EAAY,oBAAoBT;AAChCS,EAAY,kBAAkBO;"}
1
+ {"version":3,"file":"MultiSelect-DFMb82q4.js","sources":["../src/components/MultiSelect/components/MultiSelectHeader.tsx","../src/components/MultiSelect/MultiSelect.tsx"],"sourcesContent":["import styles from 'components/MultiSelect/MultiSelect.module.css';\nimport { Label } from 'components/Label';\nimport { Button } from 'components';\n\nexport interface MultiSelectHeaderProps {\n label: string;\n clearTrigger?: string;\n onClear?: () => void;\n}\n\nexport function MultiSelectHeader({ label, clearTrigger, onClear }: MultiSelectHeaderProps) {\n return (\n <header className={styles['multi-select__header']}>\n <Label htmlFor=\"multi-select-list\">{label}</Label>\n {clearTrigger && (\n <Button variant={'blank'} onClick={onClear}>\n {clearTrigger}\n </Button>\n )}\n </header>\n );\n}\n","import clsx from 'clsx';\n\nimport type { PropsWithChildren, ReactNode } from 'react';\n\nimport styles from './MultiSelect.module.css';\n\nimport { MultiSelectItem } from 'components/MultiSelect/components/MultiSelectItem';\nimport { MultiSelectHeader } from 'components/MultiSelect/components/MultiSelectHeader';\nexport interface MultiSelectProps {\n scrollable?: boolean;\n noBorder?: boolean;\n header?: ReactNode;\n}\n\nexport const MultiSelect = ({ scrollable = true, noBorder, header, children }: PropsWithChildren<MultiSelectProps>) => (\n <>\n {header}\n <div\n className={clsx(styles['multi-select'], {\n [styles['multi-select--no-border']]: noBorder,\n })}\n >\n <ul\n className={clsx(styles['multi-select__list'], {\n [styles['multi-select__list--scrollable']]: scrollable,\n })}\n id=\"multi-select-list\"\n >\n {children}\n </ul>\n </div>\n </>\n);\n\nMultiSelect.MultiSelectHeader = MultiSelectHeader;\nMultiSelect.MultiSelectItem = MultiSelectItem;\n"],"names":["MultiSelectHeader","label","clearTrigger","onClear","jsxs","styles","jsx","Label","Button","MultiSelect","scrollable","noBorder","header","children","Fragment","clsx","MultiSelectItem"],"mappings":";;;;;;;;;;;;;AAUO,SAASA,EAAkB,EAAE,OAAAC,GAAO,cAAAC,GAAc,SAAAC,KAAmC;AAC1F,SACG,gBAAAC,EAAA,UAAA,EAAO,WAAWC,EAAO,sBAAsB,GAC9C,UAAA;AAAA,IAAC,gBAAAC,EAAAC,GAAA,EAAM,SAAQ,qBAAqB,UAAMN,GAAA;AAAA,IACzCC,KACE,gBAAAI,EAAAE,GAAA,EAAO,SAAS,SAAS,SAASL,GAChC,UACHD,GAAA;AAAA,EAEJ,EAAA,CAAA;AAEJ;ACPa,MAAAO,IAAc,CAAC,EAAE,YAAAC,IAAa,IAAM,UAAAC,GAAU,QAAAC,GAAQ,UAAAC,QAE9D,gBAAAT,EAAAU,GAAA,EAAA,UAAA;AAAA,EAAAF;AAAA,EACD,gBAAAN;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWS,EAAKV,EAAO,cAAc,GAAG;AAAA,QACtC,CAACA,EAAO,yBAAyB,CAAC,GAAGM;AAAA,MAAA,CACtC;AAAA,MAED,UAAA,gBAAAL;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,WAAWS,EAAKV,EAAO,oBAAoB,GAAG;AAAA,YAC5C,CAACA,EAAO,gCAAgC,CAAC,GAAGK;AAAA,UAAA,CAC7C;AAAA,UACD,IAAG;AAAA,UAEF,UAAAG;AAAA,QAAA;AAAA,MACH;AAAA,IAAA;AAAA,EACF;AAAA,GACF;AAGFJ,EAAY,oBAAoBT;AAChCS,EAAY,kBAAkBO;"}
@@ -0,0 +1,24 @@
1
+ import { jsxs as o, jsx as l } from "react/jsx-runtime";
2
+ import { useId as r } from "react";
3
+ import { Checkbox as c } from "./components/Checkbox/Checkbox.js";
4
+ import { Label as u } from "./components/Label/Label.js";
5
+ import './assets/MultiSelectItem.css';const b = {
6
+ "multi-select": "_multi-select_7vbm3_1",
7
+ "multi-select--no-border": "_multi-select--no-border_7vbm3_7",
8
+ "multi-select__header": "_multi-select__header_7vbm3_12",
9
+ "multi-select__list": "_multi-select__list_7vbm3_18",
10
+ "multi-select__list--scrollable": "_multi-select__list--scrollable_7vbm3_27",
11
+ "multi-select__item": "_multi-select__item_7vbm3_32"
12
+ };
13
+ function h({ label: _, value: m, checked: e, disabled: s = !1, onChange: i }) {
14
+ const t = r();
15
+ return /* @__PURE__ */ o("li", { className: b["multi-select__item"], children: [
16
+ /* @__PURE__ */ l(c, { id: t, value: m, checked: e, onChange: i, disabled: s }),
17
+ /* @__PURE__ */ l(u, { htmlFor: t, noFontWeight: !e, children: _ })
18
+ ] });
19
+ }
20
+ export {
21
+ h as M,
22
+ b as s
23
+ };
24
+ //# sourceMappingURL=MultiSelectItem-CsSIAJRX.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MultiSelectItem-BKDbs8D_.js","sources":["../src/components/MultiSelect/components/MultiSelectItem.tsx"],"sourcesContent":["import { useId } from 'react';\n\nimport type { ChangeEvent } from 'react';\n\nimport styles from 'components/MultiSelect/MultiSelect.module.css';\nimport { Checkbox } from 'components/Checkbox';\nimport { Label } from 'components/Label';\n\nexport interface MultiSelectItemProps {\n label: string;\n value: string | number;\n checked: boolean;\n disabled?: boolean;\n onChange(event: ChangeEvent<HTMLInputElement>): void;\n}\n\nexport function MultiSelectItem({ label, value, checked, disabled = false, onChange }: MultiSelectItemProps) {\n const id = useId();\n\n return (\n <li className={styles['multi-select__item']}>\n <Checkbox id={id} value={value} checked={checked} onChange={onChange} disabled={disabled} />\n <Label htmlFor={id} noFontWeight={!checked}>\n {label}\n </Label>\n </li>\n );\n}\n"],"names":["MultiSelectItem","label","value","checked","disabled","onChange","id","useId","jsxs","styles","jsx","Checkbox","Label"],"mappings":";;;;;;;;;;;;AAgBgB,SAAAA,EAAgB,EAAE,OAAAC,GAAO,OAAAC,GAAO,SAAAC,GAAS,UAAAC,IAAW,IAAO,UAAAC,KAAkC;AAC3G,QAAMC,IAAKC;AAEX,SACG,gBAAAC,EAAA,MAAA,EAAG,WAAWC,EAAO,oBAAoB,GACxC,UAAA;AAAA,IAAA,gBAAAC,EAACC,GAAS,EAAA,IAAAL,GAAQ,OAAAJ,GAAc,SAAAC,GAAkB,UAAAE,GAAoB,UAAAD,GAAoB;AAAA,sBACzFQ,GAAM,EAAA,SAASN,GAAI,cAAc,CAACH,GAChC,UACHF,GAAA;AAAA,EACF,EAAA,CAAA;AAEJ;"}
1
+ {"version":3,"file":"MultiSelectItem-CsSIAJRX.js","sources":["../src/components/MultiSelect/components/MultiSelectItem.tsx"],"sourcesContent":["import { useId } from 'react';\n\nimport type { ChangeEvent } from 'react';\n\nimport styles from 'components/MultiSelect/MultiSelect.module.css';\nimport { Checkbox } from 'components/Checkbox';\nimport { Label } from 'components/Label';\n\nexport interface MultiSelectItemProps {\n label: string;\n value: string | number;\n checked: boolean;\n disabled?: boolean;\n onChange(event: ChangeEvent<HTMLInputElement>): void;\n}\n\nexport function MultiSelectItem({ label, value, checked, disabled = false, onChange }: MultiSelectItemProps) {\n const id = useId();\n\n return (\n <li className={styles['multi-select__item']}>\n <Checkbox id={id} value={value} checked={checked} onChange={onChange} disabled={disabled} />\n <Label htmlFor={id} noFontWeight={!checked}>\n {label}\n </Label>\n </li>\n );\n}\n"],"names":["MultiSelectItem","label","value","checked","disabled","onChange","id","useId","jsxs","styles","jsx","Checkbox","Label"],"mappings":";;;;;;;;;;;;AAgBgB,SAAAA,EAAgB,EAAE,OAAAC,GAAO,OAAAC,GAAO,SAAAC,GAAS,UAAAC,IAAW,IAAO,UAAAC,KAAkC;AAC3G,QAAMC,IAAKC;AAEX,SACG,gBAAAC,EAAA,MAAA,EAAG,WAAWC,EAAO,oBAAoB,GACxC,UAAA;AAAA,IAAA,gBAAAC,EAACC,GAAS,EAAA,IAAAL,GAAQ,OAAAJ,GAAc,SAAAC,GAAkB,UAAAE,GAAoB,UAAAD,GAAoB;AAAA,sBACzFQ,GAAM,EAAA,SAASN,GAAI,cAAc,CAACH,GAChC,UACHF,GAAA;AAAA,EACF,EAAA,CAAA;AAEJ;"}
@@ -1 +1 @@
1
- ._multi-select_1t0b0_1{border:1px solid var(--color-black);border-radius:var(--border-radius-default);padding:.75rem}._multi-select--no-border_1t0b0_7{border:none;padding:0}._multi-select__header_1t0b0_12{display:flex;justify-content:space-between;margin-bottom:.5rem}._multi-select__list_1t0b0_18{display:flex;flex-direction:column;gap:.5rem;list-style:none;margin:0;padding:0}._multi-select__list--scrollable_1t0b0_27{max-height:8.75rem;overflow:auto}._multi-select__item_1t0b0_32{display:grid;grid-template-columns:auto 1fr;align-items:start;-webkit-user-select:none;user-select:none}._multi-select__item_1t0b0_32 input[type=checkbox]{margin-right:.75rem;margin-top:3px}._multi-select__item_1t0b0_32 input[type=checkbox]:disabled+label{color:var(--color-grey-300)}
1
+ ._multi-select_7vbm3_1{border:1px solid var(--color-black);border-radius:var(--border-radius-default);padding:.75rem}._multi-select--no-border_7vbm3_7{border:none;padding:0}._multi-select__header_7vbm3_12{display:flex;justify-content:space-between;margin-bottom:.5rem}._multi-select__list_7vbm3_18{display:flex;flex-direction:column;gap:.5rem;list-style:none;margin:0;padding:0}._multi-select__list--scrollable_7vbm3_27{max-height:8.75rem;overflow:auto}._multi-select__item_7vbm3_32{align-items:start;display:grid;grid-template-columns:auto 1fr;-webkit-user-select:none;user-select:none}._multi-select__item_7vbm3_32 input[type=checkbox]{margin-right:.75rem;margin-top:3px}._multi-select__item_7vbm3_32 input[type=checkbox]:disabled+label{color:var(--color-grey-300)}
@@ -1,35 +1,30 @@
1
1
  import { jsxs as k, jsx as c } from "react/jsx-runtime";
2
2
  import { c as T } from "../../clsx-OuTLNxxd.js";
3
- import { useId as U, useRef as m, Children as w, useState as b, useEffect as D } from "react";
3
+ import { useId as U, useRef as l, Children as w, useState as b, useEffect as D } from "react";
4
4
  import { MenuButton as $ } from "../MenuButton/MenuButton.js";
5
- import { Icon as p } from "../Icon/Icon.js";
6
- import '../../assets/ActionList.css';const h = {
5
+ import { Icon as m } from "../Icon/Icon.js";
6
+ import '../../assets/ActionList.css';const p = {
7
7
  "action-list": "_action-list_1vi7f_1",
8
8
  "action-list--open": "_action-list--open_1vi7f_13",
9
9
  "action-list-container": "_action-list-container_1vi7f_17"
10
10
  }, O = -1, s = 1;
11
- function K({ label: E, prefixIcon: C, iconName: I, variant: L = "secondary", children: a }) {
12
- const _ = U(), l = m(null), n = m(null), r = m(null), d = w.count(a), [f, i] = b(O), [u, g] = b(!1);
11
+ function K({ label: h, prefixIcon: E, iconName: C, variant: L = "secondary", children: u }) {
12
+ const I = U(), _ = l(null), n = l(null), r = l(null), d = w.count(u), [f, i] = b(O), [a, g] = b(!1);
13
13
  function R() {
14
- g(!0), document.addEventListener("click", N, { once: !1, capture: !0 });
14
+ g(!0), document.addEventListener("click", N, { once: !0, capture: !0 });
15
15
  }
16
16
  function o(e) {
17
- var t;
18
- e && r.current && !r.current.contains(e.target) || (i(O), g(!1), document.removeEventListener("click", N, { capture: !0 }), (t = l.current) == null || t.focus());
17
+ e && r.current && !r.current.contains(e.target) || (i(O), g(!1), document.removeEventListener("click", N, { capture: !0 }));
19
18
  }
20
19
  function x() {
21
- u ? o() : R();
20
+ a ? o() : R();
22
21
  }
23
22
  function y(e) {
24
- if (!u) return;
25
- if (["ArrowUp", "ArrowDown", "Home", "End"].includes(e.code)) {
26
- e.preventDefault();
27
- return;
28
- }
29
- e.code === "Tab" && o();
23
+ if (!a) return;
24
+ ["ArrowUp", "ArrowDown", "Home", "End"].includes(e.code) && e.preventDefault(), e.code === "Tab" && o();
30
25
  }
31
26
  function A(e) {
32
- (e.code === "Space" || e.key === "Enter") && (e.target === l.current ? x() : e.key === "Enter" && e.target !== n.current && "firstChild" in e.target && e.target.firstChild.click()), e.code === "Escape" && o(), e.code === "ArrowUp" && i((t) => t === 0 ? d - s : t - s), e.code === "ArrowDown" && i((t) => t === d - s ? 0 : t + s), e.code === "Home" && i(0), e.code === "End" && i(d - s);
27
+ (e.code === "Space" || e.key === "Enter") && (e.target === _.current ? x() : e.key === "Enter" && e.target !== n.current && "firstChild" in e.target && e.target.firstChild.click()), e.code === "Escape" && o(), e.code === "ArrowUp" && i((t) => t === 0 ? d - s : t - s), e.code === "ArrowDown" && i((t) => t === d - s ? 0 : t + s), e.code === "Home" && i(0), e.code === "End" && i(d - s);
33
28
  }
34
29
  const N = (e) => {
35
30
  const { target: t } = e;
@@ -45,19 +40,19 @@ function K({ label: E, prefixIcon: C, iconName: I, variant: L = "secondary", chi
45
40
  t.setAttribute("tabIndex", "-1");
46
41
  });
47
42
  });
48
- }, [a]), /* @__PURE__ */ k("div", { className: h["action-list-container"], ref: r, children: [
49
- /* @__PURE__ */ k($, { onClick: x, onKeyDown: y, onKeyUp: A, buttonRef: l, variant: L, children: [
50
- C && /* @__PURE__ */ c(p, { size: 24, name: C }),
51
- E,
52
- I ? /* @__PURE__ */ c(p, { size: 24, name: I }) : /* @__PURE__ */ c(p, { size: 16, name: u ? "CheveronUp" : "CheveronDown" })
43
+ }, [u]), /* @__PURE__ */ k("div", { className: p["action-list-container"], ref: r, children: [
44
+ /* @__PURE__ */ k($, { onClick: x, onKeyDown: y, onKeyUp: A, buttonRef: _, variant: L, children: [
45
+ E && /* @__PURE__ */ c(m, { size: 24, name: E }),
46
+ h,
47
+ C ? /* @__PURE__ */ c(m, { size: 24, name: C }) : /* @__PURE__ */ c(m, { size: 16, name: a ? "CheveronUp" : "CheveronDown" })
53
48
  ] }),
54
49
  /* @__PURE__ */ c(
55
50
  "div",
56
51
  {
57
- "aria-activedescendant": `${_}-child-${f}`,
58
- "aria-label": E,
59
- className: T(h["action-list"], {
60
- [h["action-list--open"]]: u
52
+ "aria-activedescendant": `${I}-child-${f}`,
53
+ "aria-label": h,
54
+ className: T(p["action-list"], {
55
+ [p["action-list--open"]]: a
61
56
  }),
62
57
  onClickCapture: o,
63
58
  onKeyDown: y,
@@ -65,7 +60,7 @@ function K({ label: E, prefixIcon: C, iconName: I, variant: L = "secondary", chi
65
60
  ref: n,
66
61
  role: "menu",
67
62
  tabIndex: -1,
68
- children: w.map(a, (e, t) => /* @__PURE__ */ c("div", { role: "menuitem", tabIndex: -1, children: e }, `${_}-child-${t}`))
63
+ children: w.map(u, (e, t) => /* @__PURE__ */ c("div", { role: "menuitem", tabIndex: -1, children: e }, `${I}-child-${t}`))
69
64
  }
70
65
  )
71
66
  ] });
@@ -1 +1 @@
1
- {"version":3,"file":"ActionList.js","sources":["../../../src/components/ActionList/ActionList.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport { Children, useEffect, useId, useRef, useState } from 'react';\n\nimport type { KeyboardEvent, ReactElement, MouseEvent as ReactMouseEvent } from 'react';\nimport type { IconProps } from 'components/Icon';\nimport type { UIButtonVariant } from 'types/UserInterface';\n\nimport styles from './ActionList.module.css';\n\nimport { MenuButton } from 'components/MenuButton';\nimport { Icon } from 'components/Icon';\n\nexport interface ActionListProps {\n label: string;\n prefixIcon?: IconProps['name'];\n iconName?: IconProps['name'];\n variant?: UIButtonVariant;\n children: ReactElement | ReactElement[];\n}\n\nconst inactiveIndex = -1;\nconst indexIncrement = 1;\n\nexport function ActionList({ label, prefixIcon, iconName, variant = 'secondary', children }: ActionListProps) {\n const listId = useId();\n const triggerRef = useRef<HTMLButtonElement>(null);\n const listRef = useRef<HTMLDivElement>(null);\n const containerRef = useRef<HTMLDivElement>(null);\n\n const numberOfChildren = Children.count(children);\n\n const [activeIndex, setActiveIndex] = useState(inactiveIndex);\n const [isOpen, setIsOpen] = useState(false);\n\n function open() {\n setIsOpen(true);\n\n document.addEventListener('click', onClickOutside, { once: false, capture: true });\n }\n\n function close(event?: ReactMouseEvent<HTMLDivElement>) {\n // When a click occurs on an element that is not an immediate descendant of the action list container\n // (can happen when a modal window is triggered from a button in the action list), the setIsOpen state\n // handler should not be called, because this causes a re-render of the entire component and can lead\n // to undesired effects, like a select element closing immediately after it has been clicked.\n if (event && containerRef.current && !containerRef.current.contains(event.target as Node)) {\n return;\n }\n\n setActiveIndex(inactiveIndex);\n setIsOpen(false);\n\n document.removeEventListener('click', onClickOutside, { capture: true });\n\n triggerRef.current?.focus();\n }\n\n function toggle() {\n if (isOpen) close();\n else open();\n }\n\n function onKeyDown(event: KeyboardEvent) {\n if (!isOpen) return;\n\n const eventPreventCodes = ['ArrowUp', 'ArrowDown', 'Home', 'End'];\n\n if (eventPreventCodes.includes(event.code)) {\n // prevent page from scrolling when navigating through items in list\n event.preventDefault();\n return;\n }\n\n if (event.code === 'Tab') {\n close();\n }\n }\n\n function onKeyUp(event: KeyboardEvent) {\n if (event.code === 'Space' || event.key === 'Enter') {\n if (event.target === triggerRef.current) {\n toggle();\n } else if (event.key === 'Enter' && event.target !== listRef.current) {\n if ('firstChild' in event.target) {\n const firstChild = event.target.firstChild as HTMLButtonElement;\n\n firstChild.click();\n }\n }\n }\n\n if (event.code === 'Escape') close();\n\n if (event.code === 'ArrowUp') {\n setActiveIndex((prevState) => {\n if (prevState === 0) return numberOfChildren - indexIncrement;\n\n return prevState - indexIncrement;\n });\n }\n\n if (event.code === 'ArrowDown') {\n setActiveIndex((prevState) => {\n if (prevState === numberOfChildren - indexIncrement) return 0;\n\n return prevState + indexIncrement;\n });\n }\n\n if (event.code === 'Home') {\n setActiveIndex(0);\n }\n\n if (event.code === 'End') {\n setActiveIndex(numberOfChildren - indexIncrement);\n }\n }\n\n const onClickOutside = (event: MouseEvent) => {\n const { target } = event;\n\n if (!target || !containerRef.current) return;\n\n if (!containerRef.current.contains(target as Node)) {\n close();\n }\n };\n\n useEffect(() => {\n if (activeIndex < 0 || !listRef.current) return;\n\n const listItem = listRef.current.children.item(activeIndex);\n\n if (listItem) {\n (listItem as HTMLDivElement).focus();\n }\n }, [activeIndex]);\n\n useEffect(() => {\n if (!listRef.current || !listRef.current.hasChildNodes()) return;\n\n Array.from(listRef.current.children)\n .filter((overlayChild) => overlayChild.nodeType === Node.ELEMENT_NODE && overlayChild.hasChildNodes())\n .forEach((overlayChild) => {\n Array.from(overlayChild.children)\n .filter((childOfChild) => childOfChild.nodeType === Node.ELEMENT_NODE)\n .forEach((childOfChild) => {\n // internal children may be buttons and can get focus when tab is pressed; preventing those elements\n // from getting focus so that list can be tabbed over and traversed with arrow keys\n childOfChild.setAttribute('tabIndex', '-1');\n });\n });\n }, [children]);\n\n return (\n <div className={styles['action-list-container']} ref={containerRef}>\n <MenuButton onClick={toggle} onKeyDown={onKeyDown} onKeyUp={onKeyUp} buttonRef={triggerRef} variant={variant}>\n {prefixIcon && <Icon size={24} name={prefixIcon} />}\n {label}\n {iconName ? (\n <Icon size={24} name={iconName} />\n ) : (\n <Icon size={16} name={isOpen ? 'CheveronUp' : 'CheveronDown'} />\n )}\n </MenuButton>\n <div\n aria-activedescendant={`${listId}-child-${activeIndex}`}\n aria-label={label}\n className={clsx(styles['action-list'], {\n [styles['action-list--open']]: isOpen,\n })}\n onClickCapture={close}\n onKeyDown={onKeyDown}\n onKeyUp={onKeyUp}\n ref={listRef}\n role=\"menu\"\n tabIndex={-1}\n >\n {Children.map(children, (child, index) => (\n <div key={`${listId}-child-${index}`} role=\"menuitem\" tabIndex={-1}>\n {child}\n </div>\n ))}\n </div>\n </div>\n );\n}\n"],"names":["inactiveIndex","indexIncrement","ActionList","label","prefixIcon","iconName","variant","children","listId","useId","triggerRef","useRef","listRef","containerRef","numberOfChildren","Children","activeIndex","setActiveIndex","useState","isOpen","setIsOpen","open","onClickOutside","close","event","_a","toggle","onKeyDown","onKeyUp","prevState","target","useEffect","listItem","overlayChild","childOfChild","styles","jsxs","MenuButton","jsx","Icon","clsx","child","index"],"mappings":";;;;;;;;;GAoBMA,IAAgB,IAChBC,IAAiB;AAEP,SAAAC,EAAW,EAAE,OAAAC,GAAO,YAAAC,GAAY,UAAAC,GAAU,SAAAC,IAAU,aAAa,UAAAC,KAA6B;AAC5G,QAAMC,IAASC,KACTC,IAAaC,EAA0B,IAAI,GAC3CC,IAAUD,EAAuB,IAAI,GACrCE,IAAeF,EAAuB,IAAI,GAE1CG,IAAmBC,EAAS,MAAMR,CAAQ,GAE1C,CAACS,GAAaC,CAAc,IAAIC,EAASlB,CAAa,GACtD,CAACmB,GAAQC,CAAS,IAAIF,EAAS,EAAK;AAE1C,WAASG,IAAO;AACd,IAAAD,EAAU,EAAI,GAEL,SAAA,iBAAiB,SAASE,GAAgB,EAAE,MAAM,IAAO,SAAS,IAAM;AAAA,EACnF;AAEA,WAASC,EAAMC,GAAyC;;AAKlD,IAAAA,KAASX,EAAa,WAAW,CAACA,EAAa,QAAQ,SAASW,EAAM,MAAc,MAIxFP,EAAejB,CAAa,GAC5BoB,EAAU,EAAK,GAEf,SAAS,oBAAoB,SAASE,GAAgB,EAAE,SAAS,IAAM,IAEvEG,IAAAf,EAAW,YAAX,QAAAe,EAAoB;AAAA,EACtB;AAEA,WAASC,IAAS;AAChB,IAAIP,IAAcI,MACRF;EACZ;AAEA,WAASM,EAAUH,GAAsB;AACvC,QAAI,CAACL,EAAQ;AAIb,QAF0B,CAAC,WAAW,aAAa,QAAQ,KAAK,EAE1C,SAASK,EAAM,IAAI,GAAG;AAE1C,MAAAA,EAAM,eAAe;AACrB;AAAA,IACF;AAEI,IAAAA,EAAM,SAAS,SACXD;EAEV;AAEA,WAASK,EAAQJ,GAAsB;AACrC,KAAIA,EAAM,SAAS,WAAWA,EAAM,QAAQ,aACtCA,EAAM,WAAWd,EAAW,UACvBgB,MACEF,EAAM,QAAQ,WAAWA,EAAM,WAAWZ,EAAQ,WACvD,gBAAgBY,EAAM,UACLA,EAAM,OAAO,WAErB,MAAM,IAKnBA,EAAM,SAAS,YAAgBD,EAAA,GAE/BC,EAAM,SAAS,aACjBP,EAAe,CAACY,MACVA,MAAc,IAAUf,IAAmBb,IAExC4B,IAAY5B,CACpB,GAGCuB,EAAM,SAAS,eACjBP,EAAe,CAACY,MACVA,MAAcf,IAAmBb,IAAuB,IAErD4B,IAAY5B,CACpB,GAGCuB,EAAM,SAAS,UACjBP,EAAe,CAAC,GAGdO,EAAM,SAAS,SACjBP,EAAeH,IAAmBb,CAAc;AAAA,EAEpD;AAEM,QAAAqB,IAAiB,CAACE,MAAsB;AACtC,UAAA,EAAE,QAAAM,EAAW,IAAAN;AAEnB,IAAI,CAACM,KAAU,CAACjB,EAAa,WAExBA,EAAa,QAAQ,SAASiB,CAAc,KACzCP;EACR;AAGF,SAAAQ,EAAU,MAAM;AACd,QAAIf,IAAc,KAAK,CAACJ,EAAQ,QAAS;AAEzC,UAAMoB,IAAWpB,EAAQ,QAAQ,SAAS,KAAKI,CAAW;AAE1D,IAAIgB,KACDA,EAA4B,MAAM;AAAA,EACrC,GACC,CAAChB,CAAW,CAAC,GAEhBe,EAAU,MAAM;AACd,IAAI,CAACnB,EAAQ,WAAW,CAACA,EAAQ,QAAQ,mBAEzC,MAAM,KAAKA,EAAQ,QAAQ,QAAQ,EAChC,OAAO,CAACqB,MAAiBA,EAAa,aAAa,KAAK,gBAAgBA,EAAa,cAAA,CAAe,EACpG,QAAQ,CAACA,MAAiB;AACzB,YAAM,KAAKA,EAAa,QAAQ,EAC7B,OAAO,CAACC,MAAiBA,EAAa,aAAa,KAAK,YAAY,EACpE,QAAQ,CAACA,MAAiB;AAGZ,QAAAA,EAAA,aAAa,YAAY,IAAI;AAAA,MAAA,CAC3C;AAAA,IAAA,CACJ;AAAA,EAAA,GACF,CAAC3B,CAAQ,CAAC,qBAGV,OAAI,EAAA,WAAW4B,EAAO,uBAAuB,GAAG,KAAKtB,GACpD,UAAA;AAAA,IAAA,gBAAAuB,EAACC,KAAW,SAASX,GAAQ,WAAAC,GAAsB,SAAAC,GAAkB,WAAWlB,GAAY,SAAAJ,GACzF,UAAA;AAAA,MAAAF,KAAe,gBAAAkC,EAAAC,GAAA,EAAK,MAAM,IAAI,MAAMnC,GAAY;AAAA,MAChDD;AAAA,MACAE,IACC,gBAAAiC,EAACC,GAAK,EAAA,MAAM,IAAI,MAAMlC,GAAU,IAEhC,gBAAAiC,EAACC,KAAK,MAAM,IAAI,MAAMpB,IAAS,eAAe,gBAAgB;AAAA,IAAA,GAElE;AAAA,IACA,gBAAAmB;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,yBAAuB,GAAG9B,CAAM,UAAUQ,CAAW;AAAA,QACrD,cAAYb;AAAA,QACZ,WAAWqC,EAAKL,EAAO,aAAa,GAAG;AAAA,UACrC,CAACA,EAAO,mBAAmB,CAAC,GAAGhB;AAAA,QAAA,CAChC;AAAA,QACD,gBAAgBI;AAAA,QAChB,WAAAI;AAAA,QACA,SAAAC;AAAA,QACA,KAAKhB;AAAA,QACL,MAAK;AAAA,QACL,UAAU;AAAA,QAET,YAAS,IAAIL,GAAU,CAACkC,GAAOC,wBAC7B,OAAqC,EAAA,MAAK,YAAW,UAAU,IAC7D,UADOD,EAAA,GAAA,GAAGjC,CAAM,UAAUkC,CAAK,EAElC,CACD;AAAA,MAAA;AAAA,IACH;AAAA,EACF,EAAA,CAAA;AAEJ;"}
1
+ {"version":3,"file":"ActionList.js","sources":["../../../src/components/ActionList/ActionList.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport { Children, useEffect, useId, useRef, useState } from 'react';\n\nimport type { KeyboardEvent, ReactElement, MouseEvent as ReactMouseEvent } from 'react';\nimport type { IconProps } from 'components/Icon';\nimport type { UIButtonVariant } from 'types/UserInterface';\n\nimport styles from './ActionList.module.css';\n\nimport { MenuButton } from 'components/MenuButton';\nimport { Icon } from 'components/Icon';\n\nexport interface ActionListProps {\n label: string;\n prefixIcon?: IconProps['name'];\n iconName?: IconProps['name'];\n variant?: UIButtonVariant;\n children: ReactElement | ReactElement[];\n}\n\nconst inactiveIndex = -1;\nconst indexIncrement = 1;\n\nexport function ActionList({ label, prefixIcon, iconName, variant = 'secondary', children }: ActionListProps) {\n const listId = useId();\n const triggerRef = useRef<HTMLButtonElement>(null);\n const listRef = useRef<HTMLDivElement>(null);\n const containerRef = useRef<HTMLDivElement>(null);\n\n const numberOfChildren = Children.count(children);\n\n const [activeIndex, setActiveIndex] = useState(inactiveIndex);\n const [isOpen, setIsOpen] = useState(false);\n\n function open() {\n setIsOpen(true);\n\n document.addEventListener('click', onClickOutside, { once: true, capture: true });\n }\n\n function close(event?: ReactMouseEvent<HTMLDivElement>) {\n // When a click occurs on an element that is not an immediate descendant of the action list container\n // (can happen when a modal window is triggered from a button in the action list), the setIsOpen state\n // handler should not be called, because this causes a re-render of the entire component and can lead\n // to undesired effects, like a select element closing immediately after it has been clicked.\n if (event && containerRef.current && !containerRef.current.contains(event.target as Node)) {\n return;\n }\n\n setActiveIndex(inactiveIndex);\n setIsOpen(false);\n\n document.removeEventListener('click', onClickOutside, { capture: true });\n }\n\n function toggle() {\n if (isOpen) close();\n else open();\n }\n\n function onKeyDown(event: KeyboardEvent) {\n if (!isOpen) return;\n\n const eventPreventCodes = ['ArrowUp', 'ArrowDown', 'Home', 'End'];\n\n if (eventPreventCodes.includes(event.code)) {\n // prevent page from scrolling when navigating through items in list\n event.preventDefault();\n }\n\n if (event.code === 'Tab') {\n close();\n }\n }\n\n function onKeyUp(event: KeyboardEvent) {\n if (event.code === 'Space' || event.key === 'Enter') {\n if (event.target === triggerRef.current) {\n toggle();\n } else if (event.key === 'Enter' && event.target !== listRef.current) {\n if ('firstChild' in event.target) {\n const firstChild = event.target.firstChild as HTMLButtonElement;\n\n firstChild.click();\n }\n }\n }\n\n if (event.code === 'Escape') close();\n\n if (event.code === 'ArrowUp') {\n setActiveIndex((prevState) => {\n if (prevState === 0) return numberOfChildren - indexIncrement;\n\n return prevState - indexIncrement;\n });\n }\n\n if (event.code === 'ArrowDown') {\n setActiveIndex((prevState) => {\n if (prevState === numberOfChildren - indexIncrement) return 0;\n\n return prevState + indexIncrement;\n });\n }\n\n if (event.code === 'Home') {\n setActiveIndex(0);\n }\n\n if (event.code === 'End') {\n setActiveIndex(numberOfChildren - indexIncrement);\n }\n }\n\n const onClickOutside = (event: MouseEvent) => {\n const { target } = event;\n\n if (!target || !containerRef.current) return;\n\n if (!containerRef.current.contains(target as Node)) {\n close();\n }\n };\n\n useEffect(() => {\n if (activeIndex < 0 || !listRef.current) return;\n\n const listItem = listRef.current.children.item(activeIndex);\n\n if (listItem) {\n (listItem as HTMLDivElement).focus();\n }\n }, [activeIndex]);\n\n useEffect(() => {\n if (!listRef.current || !listRef.current.hasChildNodes()) return;\n\n Array.from(listRef.current.children)\n .filter((overlayChild) => overlayChild.nodeType === Node.ELEMENT_NODE && overlayChild.hasChildNodes())\n .forEach((overlayChild) => {\n Array.from(overlayChild.children)\n .filter((childOfChild) => childOfChild.nodeType === Node.ELEMENT_NODE)\n .forEach((childOfChild) => {\n // internal children may be buttons and can get focus when tab is pressed; preventing those elements\n // from getting focus so that list can be tabbed over and traversed with arrow keys\n childOfChild.setAttribute('tabIndex', '-1');\n });\n });\n }, [children]);\n\n return (\n <div className={styles['action-list-container']} ref={containerRef}>\n <MenuButton onClick={toggle} onKeyDown={onKeyDown} onKeyUp={onKeyUp} buttonRef={triggerRef} variant={variant}>\n {prefixIcon && <Icon size={24} name={prefixIcon} />}\n {label}\n {iconName ? (\n <Icon size={24} name={iconName} />\n ) : (\n <Icon size={16} name={isOpen ? 'CheveronUp' : 'CheveronDown'} />\n )}\n </MenuButton>\n <div\n aria-activedescendant={`${listId}-child-${activeIndex}`}\n aria-label={label}\n className={clsx(styles['action-list'], {\n [styles['action-list--open']]: isOpen,\n })}\n onClickCapture={close}\n onKeyDown={onKeyDown}\n onKeyUp={onKeyUp}\n ref={listRef}\n role=\"menu\"\n tabIndex={-1}\n >\n {Children.map(children, (child, index) => (\n <div key={`${listId}-child-${index}`} role=\"menuitem\" tabIndex={-1}>\n {child}\n </div>\n ))}\n </div>\n </div>\n );\n}\n"],"names":["inactiveIndex","indexIncrement","ActionList","label","prefixIcon","iconName","variant","children","listId","useId","triggerRef","useRef","listRef","containerRef","numberOfChildren","Children","activeIndex","setActiveIndex","useState","isOpen","setIsOpen","open","onClickOutside","close","event","toggle","onKeyDown","onKeyUp","prevState","target","useEffect","listItem","overlayChild","childOfChild","styles","jsxs","MenuButton","jsx","Icon","clsx","child","index"],"mappings":"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"}
@@ -1,5 +1,5 @@
1
1
  import { jsxs as o, Fragment as s, jsx as t } from "react/jsx-runtime";
2
- import { f as l } from "../../index-0Faxlks_.js";
2
+ import { f as l } from "../../index-C7tAT8j7.js";
3
3
  import { Button as e } from "./Button.js";
4
4
  const u = {
5
5
  title: "Atoms/Button",
@@ -1,5 +1,5 @@
1
1
  import { jsxs as g, jsx as o } from "react/jsx-runtime";
2
- import { f as e } from "../../index-0Faxlks_.js";
2
+ import { f as e } from "../../index-C7tAT8j7.js";
3
3
  import { Checkbox as l } from "./Checkbox.js";
4
4
  import { FormField as t } from "../FormField/FormField.js";
5
5
  import { Label as i } from "../Label/Label.js";
@@ -1,6 +1,6 @@
1
1
  import { jsxs as o, jsx as e } from "react/jsx-runtime";
2
2
  import { a as m } from "../../useDialog-DZhIlo2a.js";
3
- import { f as p } from "../../index-0Faxlks_.js";
3
+ import { f as p } from "../../index-C7tAT8j7.js";
4
4
  import { useState as c } from "react";
5
5
  import { Drawer as n } from "./Drawer.js";
6
6
  import { Button as t } from "../Button/Button.js";
@@ -1,5 +1,5 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { f as a } from "../../index-0Faxlks_.js";
2
+ import { f as a } from "../../index-C7tAT8j7.js";
3
3
  import { IconButton as e } from "./IconButton.js";
4
4
  import { Icon as l } from "../Icon/Icon.js";
5
5
  const m = {
@@ -1,6 +1,6 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
2
  import { useState as d, useRef as g } from "react";
3
- import { f as i } from "../../index-0Faxlks_.js";
3
+ import { f as i } from "../../index-C7tAT8j7.js";
4
4
  import { InputField as l } from "./InputField.js";
5
5
  import { Container as u } from "../storyComponents/Container/Container.js";
6
6
  import { Icon as f } from "../Icon/Icon.js";
@@ -9,7 +9,7 @@ import "../OverlayCloseButton/OverlayCloseButton.js";
9
9
  import "../GridRow/GridRow.js";
10
10
  import "../IconButton/IconButton.js";
11
11
  import "../Input/Input.js";
12
- import "../../MultiSelect-CkfmzGsn.js";
12
+ import "../../MultiSelect-DFMb82q4.js";
13
13
  import "../SelectListbox/SelectListbox.js";
14
14
  import "../SelectListbox/SelectProvider.js";
15
15
  const C = (t) => {
@@ -1,9 +1,9 @@
1
- import { jsxs as $e, jsx as Te } from "react/jsx-runtime";
2
- import { g as le, k as he, l as me, m as V, n as Ee, o as Ke, p as I, d as xe, f as ue, b as w, q as Se, a as F, r as ke, s as ee, c as z, $ as we, e as Oe, j as Ce } from "../../focusSafely-b94Glb9J.js";
1
+ import { jsxs as be, jsx as $e } from "react/jsx-runtime";
2
+ import { g as le, k as Te, l as he, m as V, n as me, o as Ee, p as I, d as Ke, f as ue, b as k, q as xe, a as F, r as Se, s as ee, c as z, $ as we, e as ke, j as Oe } from "../../focusSafely-b94Glb9J.js";
3
3
  import { c as ce } from "../../clsx-OuTLNxxd.js";
4
- import fe, { useRef as J, useCallback as L, useEffect as Q, useState as _e, useMemo as Me, useContext as de } from "react";
4
+ import fe, { useRef as J, useCallback as L, useEffect as Q, useState as Ce, useMemo as _e, useContext as de } from "react";
5
5
  import { s as te } from "../../Button.module-DfLXeuUK.js";
6
- import { Icon as De } from "../Icon/Icon.js";
6
+ import { Icon as Me } from "../Icon/Icon.js";
7
7
  function D(...t) {
8
8
  let r = {
9
9
  ...t[0]
@@ -15,7 +15,7 @@ function D(...t) {
15
15
  typeof c == "function" && typeof u == "function" && // This is a lot faster than a regex.
16
16
  o[0] === "o" && o[1] === "n" && o.charCodeAt(2) >= /* 'A' */
17
17
  65 && o.charCodeAt(2) <= /* 'Z' */
18
- 90 ? r[o] = le(c, u) : (o === "className" || o === "UNSAFE_className") && typeof c == "string" && typeof u == "string" ? r[o] = ce(c, u) : o === "id" && c && u ? r.id = he(c, u) : r[o] = u !== void 0 ? u : c;
18
+ 90 ? r[o] = le(c, u) : (o === "className" || o === "UNSAFE_className") && typeof c == "string" && typeof u == "string" ? r[o] = ce(c, u) : o === "id" && c && u ? r.id = Te(c, u) : r[o] = u !== void 0 ? u : c;
19
19
  }
20
20
  }
21
21
  return r;
@@ -23,8 +23,8 @@ function D(...t) {
23
23
  function U(t, r, a = !0) {
24
24
  var i, o;
25
25
  let { metaKey: c, ctrlKey: u, altKey: p, shiftKey: d } = r;
26
- me() && (!((o = window.event) === null || o === void 0 || (i = o.type) === null || i === void 0) && i.startsWith("key")) && t.target === "_blank" && (V() ? c = !0 : u = !0);
27
- let y = Ee() && V() && !Ke() ? new KeyboardEvent("keydown", {
26
+ he() && (!((o = window.event) === null || o === void 0 || (i = o.type) === null || i === void 0) && i.startsWith("key")) && t.target === "_blank" && (V() ? c = !0 : u = !0);
27
+ let y = me() && V() && !Ee() ? new KeyboardEvent("keydown", {
28
28
  keyIdentifier: "Enter",
29
29
  metaKey: c,
30
30
  ctrlKey: u,
@@ -41,7 +41,7 @@ function U(t, r, a = !0) {
41
41
  U.isOpening = a, I(t), t.dispatchEvent(y), U.isOpening = !1;
42
42
  }
43
43
  U.isOpening = !1;
44
- function Fe() {
44
+ function De() {
45
45
  let t = J(/* @__PURE__ */ new Map()), r = L((o, c, u, p) => {
46
46
  let d = p != null && p.once ? (...y) => {
47
47
  t.current.delete(u), u(...y);
@@ -72,7 +72,7 @@ function Fe() {
72
72
  };
73
73
  }
74
74
  function pe(t, r) {
75
- xe(() => {
75
+ Ke(() => {
76
76
  if (t && t.ref && r)
77
77
  return t.ref.current = r.current, () => {
78
78
  t.ref && (t.ref.current = null);
@@ -83,7 +83,7 @@ let M = "default", q = "", H = /* @__PURE__ */ new WeakMap();
83
83
  function re(t) {
84
84
  if (ue()) {
85
85
  if (M === "default") {
86
- const r = w(t);
86
+ const r = k(t);
87
87
  q = r.documentElement.style.webkitUserSelect, r.documentElement.style.webkitUserSelect = "none";
88
88
  }
89
89
  M = "disabled";
@@ -93,9 +93,9 @@ function X(t) {
93
93
  if (ue()) {
94
94
  if (M !== "disabled") return;
95
95
  M = "restoring", setTimeout(() => {
96
- Se(() => {
96
+ xe(() => {
97
97
  if (M === "restoring") {
98
- const r = w(t);
98
+ const r = k(t);
99
99
  r.documentElement.style.webkitUserSelect === "none" && (r.documentElement.style.webkitUserSelect = q || ""), q = "", M = "default";
100
100
  }
101
101
  });
@@ -110,25 +110,25 @@ const ge = fe.createContext({
110
110
  }
111
111
  });
112
112
  ge.displayName = "PressResponderContext";
113
- function Ie(t, r) {
113
+ function Fe(t, r) {
114
114
  return r.get ? r.get.call(t) : r.value;
115
115
  }
116
116
  function ve(t, r, a) {
117
117
  if (!r.has(t)) throw new TypeError("attempted to " + a + " private field on non-instance");
118
118
  return r.get(t);
119
119
  }
120
- function Le(t, r) {
120
+ function Ie(t, r) {
121
121
  var a = ve(t, r, "get");
122
- return Ie(t, a);
122
+ return Fe(t, a);
123
123
  }
124
- function Ue(t, r) {
124
+ function Le(t, r) {
125
125
  if (r.has(t))
126
126
  throw new TypeError("Cannot initialize the same private elements twice on an object");
127
127
  }
128
- function Ae(t, r, a) {
129
- Ue(t, r), r.set(t, a);
128
+ function Ue(t, r, a) {
129
+ Le(t, r), r.set(t, a);
130
130
  }
131
- function Ye(t, r, a) {
131
+ function Ae(t, r, a) {
132
132
  if (r.set) r.set.call(t, a);
133
133
  else {
134
134
  if (!r.writable)
@@ -138,9 +138,9 @@ function Ye(t, r, a) {
138
138
  }
139
139
  function ne(t, r, a) {
140
140
  var i = ve(t, r, "set");
141
- return Ye(t, i, a), a;
141
+ return Ae(t, i, a), a;
142
142
  }
143
- function Xe(t) {
143
+ function Ye(t) {
144
144
  let r = de(ge);
145
145
  if (r) {
146
146
  let { register: a, ...i } = r;
@@ -154,10 +154,10 @@ class B {
154
154
  ne(this, G, !1);
155
155
  }
156
156
  get shouldStopPropagation() {
157
- return Le(this, G);
157
+ return Ie(this, G);
158
158
  }
159
159
  constructor(r, a, i, o) {
160
- Ae(this, G, {
160
+ Ue(this, G, {
161
161
  writable: !0,
162
162
  value: void 0
163
163
  }), ne(this, G, !0);
@@ -169,7 +169,7 @@ class B {
169
169
  }
170
170
  }
171
171
  const ae = Symbol("linkClicked");
172
- function Pe(t) {
172
+ function Xe(t) {
173
173
  let {
174
174
  onPress: r,
175
175
  onPressChange: a,
@@ -184,7 +184,7 @@ function Pe(t) {
184
184
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
185
185
  ref: O,
186
186
  ...R
187
- } = Xe(t), [N, A] = _e(!1), m = J({
187
+ } = Ye(t), [N, A] = Ce(!1), m = J({
188
188
  isPressed: !1,
189
189
  ignoreEmulatedMouseEvents: !1,
190
190
  ignoreClickAfterPress: !1,
@@ -194,7 +194,7 @@ function Pe(t) {
194
194
  target: null,
195
195
  isOverTarget: !1,
196
196
  pointerType: null
197
- }), { addGlobalListener: $, removeAllGlobalListeners: x } = Fe(), T = F((e, f) => {
197
+ }), { addGlobalListener: $, removeAllGlobalListeners: x } = De(), T = F((e, f) => {
198
198
  let h = m.current;
199
199
  if (u || h.didFirePressStart) return !1;
200
200
  let l = !0;
@@ -231,7 +231,7 @@ function Pe(t) {
231
231
  f.isPressed && f.target && (f.isOverTarget && f.pointerType != null && P(K(f.target, e), f.pointerType, !1), f.isPressed = !1, f.isOverTarget = !1, f.activePointerId = null, f.pointerType = null, x(), b || X(f.target));
232
232
  }), Y = F((e) => {
233
233
  y && E(e);
234
- }), be = Me(() => {
234
+ }), ye = _e(() => {
235
235
  let e = m.current, f = {
236
236
  onKeyDown(l) {
237
237
  if (j(l.nativeEvent, l.currentTarget) && l.currentTarget.contains(l.target)) {
@@ -243,7 +243,7 @@ function Pe(t) {
243
243
  let s = l.currentTarget, v = (C) => {
244
244
  j(C, s) && !C.repeat && s.contains(C.target) && e.target && S(K(e.target, C), "keyboard");
245
245
  };
246
- $(w(l.currentTarget), "keyup", le(v, h), !0);
246
+ $(k(l.currentTarget), "keyup", le(v, h), !0);
247
247
  }
248
248
  n && l.stopPropagation(), l.metaKey && V() && ((g = e.metaKeyEvents) === null || g === void 0 || g.set(l.key, l.nativeEvent));
249
249
  } else l.key === "Meta" && (e.metaKeyEvents = /* @__PURE__ */ new Map());
@@ -276,13 +276,13 @@ function Pe(t) {
276
276
  if (typeof PointerEvent < "u") {
277
277
  f.onPointerDown = (s) => {
278
278
  if (s.button !== 0 || !s.currentTarget.contains(s.target)) return;
279
- if (ke(s.nativeEvent)) {
279
+ if (Se(s.nativeEvent)) {
280
280
  e.pointerType = "virtual";
281
281
  return;
282
282
  }
283
283
  W(s.currentTarget) && s.preventDefault(), e.pointerType = s.pointerType;
284
284
  let v = !0;
285
- e.isPressed || (e.isPressed = !0, e.isOverTarget = !0, e.activePointerId = s.pointerId, e.target = s.currentTarget, !u && !d && I(s.currentTarget), b || re(e.target), v = T(s, e.pointerType), $(w(s.currentTarget), "pointermove", l, !1), $(w(s.currentTarget), "pointerup", g, !1), $(w(s.currentTarget), "pointercancel", n, !1)), v && s.stopPropagation();
285
+ e.isPressed || (e.isPressed = !0, e.isOverTarget = !0, e.activePointerId = s.pointerId, e.target = s.currentTarget, !u && !d && I(s.currentTarget), b || re(e.target), v = T(s, e.pointerType), $(k(s.currentTarget), "pointermove", l, !1), $(k(s.currentTarget), "pointerup", g, !1), $(k(s.currentTarget), "pointercancel", n, !1)), v && s.stopPropagation();
286
286
  }, f.onMouseDown = (s) => {
287
287
  s.currentTarget.contains(s.target) && s.button === 0 && (W(s.currentTarget) && s.preventDefault(), s.stopPropagation());
288
288
  }, f.onPointerUp = (s) => {
@@ -305,7 +305,7 @@ function Pe(t) {
305
305
  n.stopPropagation();
306
306
  return;
307
307
  }
308
- e.isPressed = !0, e.isOverTarget = !0, e.target = n.currentTarget, e.pointerType = ee(n.nativeEvent) ? "virtual" : "mouse", !u && !d && I(n.currentTarget), T(n, e.pointerType) && n.stopPropagation(), $(w(n.currentTarget), "mouseup", l, !1);
308
+ e.isPressed = !0, e.isOverTarget = !0, e.target = n.currentTarget, e.pointerType = ee(n.nativeEvent) ? "virtual" : "mouse", !u && !d && I(n.currentTarget), T(n, e.pointerType) && n.stopPropagation(), $(k(n.currentTarget), "mouseup", l, !1);
309
309
  }, f.onMouseEnter = (n) => {
310
310
  if (!n.currentTarget.contains(n.target)) return;
311
311
  let s = !0;
@@ -330,7 +330,7 @@ function Pe(t) {
330
330
  if (!n.currentTarget.contains(n.target)) return;
331
331
  let s = Ge(n.nativeEvent);
332
332
  if (!s) return;
333
- e.activePointerId = s.identifier, e.ignoreEmulatedMouseEvents = !0, e.isOverTarget = !0, e.isPressed = !0, e.target = n.currentTarget, e.pointerType = "touch", !u && !d && I(n.currentTarget), b || re(e.target), T(k(e.target, n), e.pointerType) && n.stopPropagation(), $(z(n.currentTarget), "scroll", g, !0);
333
+ e.activePointerId = s.identifier, e.ignoreEmulatedMouseEvents = !0, e.isOverTarget = !0, e.isPressed = !0, e.target = n.currentTarget, e.pointerType = "touch", !u && !d && I(n.currentTarget), b || re(e.target), T(w(e.target, n), e.pointerType) && n.stopPropagation(), $(z(n.currentTarget), "scroll", g, !0);
334
334
  }, f.onTouchMove = (n) => {
335
335
  if (!n.currentTarget.contains(n.target)) return;
336
336
  if (!e.isPressed) {
@@ -338,7 +338,7 @@ function Pe(t) {
338
338
  return;
339
339
  }
340
340
  let s = se(n.nativeEvent, e.activePointerId), v = !0;
341
- s && _(s, n.currentTarget) ? !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, v = T(k(e.target, n), e.pointerType)) : e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, v = P(k(e.target, n), e.pointerType, !1), Y(k(e.target, n))), v && n.stopPropagation();
341
+ s && _(s, n.currentTarget) ? !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, v = T(w(e.target, n), e.pointerType)) : e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, v = P(w(e.target, n), e.pointerType, !1), Y(w(e.target, n))), v && n.stopPropagation();
342
342
  }, f.onTouchEnd = (n) => {
343
343
  if (!n.currentTarget.contains(n.target)) return;
344
344
  if (!e.isPressed) {
@@ -346,9 +346,9 @@ function Pe(t) {
346
346
  return;
347
347
  }
348
348
  let s = se(n.nativeEvent, e.activePointerId), v = !0;
349
- s && _(s, n.currentTarget) && e.pointerType != null ? (S(k(e.target, n), e.pointerType), v = P(k(e.target, n), e.pointerType)) : e.isOverTarget && e.pointerType != null && (v = P(k(e.target, n), e.pointerType, !1)), v && n.stopPropagation(), e.isPressed = !1, e.activePointerId = null, e.isOverTarget = !1, e.ignoreEmulatedMouseEvents = !0, e.target && !b && X(e.target), x();
349
+ s && _(s, n.currentTarget) && e.pointerType != null ? (S(w(e.target, n), e.pointerType), v = P(w(e.target, n), e.pointerType)) : e.isOverTarget && e.pointerType != null && (v = P(w(e.target, n), e.pointerType, !1)), v && n.stopPropagation(), e.isPressed = !1, e.activePointerId = null, e.isOverTarget = !1, e.ignoreEmulatedMouseEvents = !0, e.target && !b && X(e.target), x();
350
350
  }, f.onTouchCancel = (n) => {
351
- n.currentTarget.contains(n.target) && (n.stopPropagation(), e.isPressed && E(k(e.target, n)));
351
+ n.currentTarget.contains(n.target) && (n.stopPropagation(), e.isPressed && E(w(e.target, n)));
352
352
  };
353
353
  let g = (n) => {
354
354
  e.isPressed && n.target.contains(e.target) && E({
@@ -383,7 +383,7 @@ function Pe(t) {
383
383
  b
384
384
  ]), {
385
385
  isPressed: p || N,
386
- pressProps: D(R, be)
386
+ pressProps: D(R, ye)
387
387
  };
388
388
  }
389
389
  function Z(t) {
@@ -391,7 +391,7 @@ function Z(t) {
391
391
  }
392
392
  function j(t, r) {
393
393
  const { key: a, code: i } = t, o = r, c = o.getAttribute("role");
394
- return (a === "Enter" || a === " " || a === "Spacebar" || i === "Space") && !(o instanceof z(o).HTMLInputElement && !ye(o, a) || o instanceof z(o).HTMLTextAreaElement || o.isContentEditable) && // Links should only trigger with Enter key
394
+ return (a === "Enter" || a === " " || a === "Spacebar" || i === "Space") && !(o instanceof z(o).HTMLInputElement && !Pe(o, a) || o instanceof z(o).HTMLTextAreaElement || o.isContentEditable) && // Links should only trigger with Enter key
395
395
  !((c === "link" || !c && Z(o)) && a !== "Enter");
396
396
  }
397
397
  function Ge(t) {
@@ -406,7 +406,7 @@ function se(t, r) {
406
406
  }
407
407
  return null;
408
408
  }
409
- function k(t, r) {
409
+ function w(t, r) {
410
410
  let a = 0, i = 0;
411
411
  return r.targetTouches && r.targetTouches.length === 1 && (a = r.targetTouches[0].clientX, i = r.targetTouches[0].clientY), {
412
412
  currentTarget: t,
@@ -450,7 +450,7 @@ function W(t) {
450
450
  return !(t instanceof HTMLElement) || !t.hasAttribute("draggable");
451
451
  }
452
452
  function ie(t, r) {
453
- return t instanceof HTMLInputElement ? !ye(t, r) : t instanceof HTMLButtonElement ? t.type !== "submit" && t.type !== "reset" : !Z(t);
453
+ return t instanceof HTMLInputElement ? !Pe(t, r) : t instanceof HTMLButtonElement ? t.type !== "submit" && t.type !== "reset" : !Z(t);
454
454
  }
455
455
  const Re = /* @__PURE__ */ new Set([
456
456
  "checkbox",
@@ -463,7 +463,7 @@ const Re = /* @__PURE__ */ new Set([
463
463
  "submit",
464
464
  "reset"
465
465
  ]);
466
- function ye(t, r) {
466
+ function Pe(t, r) {
467
467
  return t.type === "checkbox" || t.type === "radio" ? r === " " : Re.has(t.type);
468
468
  }
469
469
  function Ne(t) {
@@ -475,7 +475,7 @@ function Ne(t) {
475
475
  i,
476
476
  o
477
477
  ]), u = we(c), p = L((d) => {
478
- const y = w(d.target);
478
+ const y = k(d.target);
479
479
  d.target === d.currentTarget && y.activeElement === d.target && (a && a(d), o && o(!0), u(d));
480
480
  }, [
481
481
  o,
@@ -529,7 +529,7 @@ function Ve(t) {
529
529
  function ze(t, r) {
530
530
  let { focusProps: a } = Ne(t), { keyboardProps: i } = je(t), o = D(a, i), c = Ve(r), u = t.isDisabled ? {} : c, p = J(t.autoFocus);
531
531
  return Q(() => {
532
- p.current && r.current && Oe(r.current), p.current = !1;
532
+ p.current && r.current && ke(r.current), p.current = !1;
533
533
  }, [
534
534
  r
535
535
  ]), {
@@ -570,7 +570,7 @@ function qe(t, r) {
570
570
  "aria-disabled": !i || a === "input" ? void 0 : i,
571
571
  rel: a === "a" ? A : void 0
572
572
  };
573
- let { pressProps: x, isPressed: T } = Pe({
573
+ let { pressProps: x, isPressed: T } = Xe({
574
574
  onPressStart: c,
575
575
  onPressEnd: u,
576
576
  onPressChange: d,
@@ -581,7 +581,7 @@ function qe(t, r) {
581
581
  ref: r
582
582
  }), { focusableProps: P } = ze(t, r);
583
583
  b && (P.tabIndex = i ? -1 : P.tabIndex);
584
- let S = D(P, x, Ce(t, {
584
+ let S = D(P, x, Oe(t, {
585
585
  labelable: !0
586
586
  }));
587
587
  return {
@@ -598,22 +598,11 @@ function qe(t, r) {
598
598
  };
599
599
  }
600
600
  function nt({ buttonRef: t, variant: r, iconName: a, children: i, ...o }) {
601
- const { buttonProps: c } = qe(o, t), { pressProps: u } = Pe({
602
- onPress: (p) => typeof o.onClick == "function" && o.onClick(p)
603
- });
604
- return /* @__PURE__ */ $e(
605
- "button",
606
- {
607
- ...c,
608
- ...u,
609
- ref: t,
610
- className: ce(te.button, te[`button--${r}`]),
611
- children: [
612
- i,
613
- a && /* @__PURE__ */ Te(De, { name: a })
614
- ]
615
- }
616
- );
601
+ const { buttonProps: c } = qe(o, t);
602
+ return /* @__PURE__ */ be("button", { ...c, ref: t, className: ce(te.button, te[`button--${r}`]), children: [
603
+ i,
604
+ a && /* @__PURE__ */ $e(Me, { name: a })
605
+ ] });
617
606
  }
618
607
  export {
619
608
  nt as MenuButton