@nordhealth/components 3.18.0 → 3.18.1-alpha.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 (82) hide show
  1. package/README.md +11 -11
  2. package/custom-elements.json +2584 -2584
  3. package/lib/DatePicker.js +1 -1
  4. package/lib/Dropdown.js +1 -1
  5. package/lib/Icon.js.map +1 -1
  6. package/lib/{Popout-CqmQIaOr.js → Popout-8ZXIGZFg.js} +2 -2
  7. package/lib/{Popout-CqmQIaOr.js.map → Popout-8ZXIGZFg.js.map} +1 -1
  8. package/lib/Popout.js +1 -1
  9. package/lib/Qrcode.js.map +1 -1
  10. package/lib/Radio.js +1 -1
  11. package/lib/Radio.js.map +1 -1
  12. package/lib/Toggle.js +1 -1
  13. package/lib/Toggle.js.map +1 -1
  14. package/lib/Tooltip.js +1 -1
  15. package/lib/bundle.js +1 -1
  16. package/lib/bundle.js.map +1 -1
  17. package/lib/class-map-BQZJmA_8.js.map +1 -1
  18. package/lib/collection-CJHuUy_1.js.map +1 -1
  19. package/lib/custom-element-CDWT-yC_.js.map +1 -1
  20. package/lib/directive-DQ0jBES2.js.map +1 -1
  21. package/lib/if-defined-C2kZHWU2.js.map +1 -1
  22. package/lib/index.js +1 -1
  23. package/lib/positioning-BIzQxDMX.js +2 -0
  24. package/lib/positioning-BIzQxDMX.js.map +1 -0
  25. package/lib/property-DeTTNf1t.js.map +1 -1
  26. package/lib/query-hiZs21fO.js.map +1 -1
  27. package/lib/ref-BYkj-TPb.js.map +1 -1
  28. package/lib/src/avatar/Avatar.d.ts +3 -3
  29. package/lib/src/badge/Badge.d.ts +1 -1
  30. package/lib/src/banner/Banner.d.ts +1 -1
  31. package/lib/src/button-group/ButtonGroup.d.ts +1 -1
  32. package/lib/src/calendar/Calendar.d.ts +1 -1
  33. package/lib/src/card/Card.d.ts +1 -1
  34. package/lib/src/checkbox/Checkbox.d.ts +1 -1
  35. package/lib/src/command-menu/CommandMenu.d.ts +1 -1
  36. package/lib/src/command-menu/CommandMenuAction.d.ts +1 -1
  37. package/lib/src/date-picker/DatePicker.d.ts +1 -1
  38. package/lib/src/drawer/Drawer.d.ts +1 -1
  39. package/lib/src/dropdown/Dropdown.d.ts +1 -1
  40. package/lib/src/dropdown-group/DropdownGroup.d.ts +1 -1
  41. package/lib/src/empty-state/EmptyState.d.ts +1 -1
  42. package/lib/src/fieldset/Fieldset.d.ts +1 -1
  43. package/lib/src/footer/Footer.d.ts +1 -1
  44. package/lib/src/header/Header.d.ts +1 -1
  45. package/lib/src/icon/Icon.d.ts +1 -1
  46. package/lib/src/input/Input.d.ts +1 -1
  47. package/lib/src/layout/Layout.d.ts +1 -1
  48. package/lib/src/modal/Modal.d.ts +1 -1
  49. package/lib/src/nav-group/NavGroup.d.ts +1 -1
  50. package/lib/src/nav-toggle/NavToggle.d.ts +1 -1
  51. package/lib/src/navigation/Navigation.d.ts +1 -1
  52. package/lib/src/notification/Notification.d.ts +1 -1
  53. package/lib/src/notification-group/NotificationGroup.d.ts +1 -1
  54. package/lib/src/popout/Popout.d.ts +1 -1
  55. package/lib/src/progress-bar/ProgressBar.d.ts +1 -1
  56. package/lib/src/qrcode/Qrcode.d.ts +1 -1
  57. package/lib/src/radio/Radio.d.ts +1 -1
  58. package/lib/src/range/Range.d.ts +1 -1
  59. package/lib/src/segmented-control/SegmentedControl.d.ts +1 -1
  60. package/lib/src/segmented-control-item/SegmentedControlItem.d.ts +1 -1
  61. package/lib/src/select/Select.d.ts +1 -1
  62. package/lib/src/skeleton/Skeleton.d.ts +1 -1
  63. package/lib/src/spinner/Spinner.d.ts +1 -1
  64. package/lib/src/stack/Stack.d.ts +1 -1
  65. package/lib/src/tab/Tab.d.ts +1 -1
  66. package/lib/src/tab-group/TabGroup.d.ts +1 -1
  67. package/lib/src/tab-panel/TabPanel.d.ts +1 -1
  68. package/lib/src/tag/Tag.d.ts +1 -1
  69. package/lib/src/tag-group/TagGroup.d.ts +1 -1
  70. package/lib/src/textarea/Textarea.d.ts +1 -1
  71. package/lib/src/toast/Toast.d.ts +1 -1
  72. package/lib/src/toast-group/ToastGroup.d.ts +1 -1
  73. package/lib/src/toggle/Toggle.d.ts +1 -1
  74. package/lib/src/tooltip/Tooltip.d.ts +1 -1
  75. package/lib/src/top-bar/TopBar.d.ts +1 -1
  76. package/lib/src/visually-hidden/VisuallyHidden.d.ts +1 -1
  77. package/lib/state-BFYKuryf.js.map +1 -1
  78. package/lib/style-map-VR90KNpY.js.map +1 -1
  79. package/lib/tinykeys.module-_6MZt7MP.js.map +1 -1
  80. package/package.json +48 -48
  81. package/lib/positioning-CHP-_dKQ.js +0 -2
  82. package/lib/positioning-CHP-_dKQ.js.map +0 -1
@@ -10,7 +10,7 @@ import { LitElement } from "lit";
10
10
  */
11
11
  export default class NotificationGroup extends LitElement {
12
12
  static styles: import("lit").CSSResult[];
13
- render(): import("lit-html").TemplateResult<1>;
13
+ render(): import("lit").TemplateResult<1>;
14
14
  }
15
15
  declare global {
16
16
  interface HTMLElementTagNameMap {
@@ -49,7 +49,7 @@ export default class Popout extends Popout_base {
49
49
  firstUpdated(): void;
50
50
  connectedCallback(): void;
51
51
  disconnectedCallback(): void;
52
- render(): import("lit-html").TemplateResult<1>;
52
+ render(): import("lit").TemplateResult<1>;
53
53
  protected handleIdChange(): void;
54
54
  protected handleOpenChange(): void;
55
55
  protected handleAnchorChange(): void;
@@ -32,7 +32,7 @@ export default class ProgressBar extends ProgressBar_base {
32
32
  * for assistive technology.
33
33
  */
34
34
  label: string;
35
- render(): import("lit-html").TemplateResult<1>;
35
+ render(): import("lit").TemplateResult<1>;
36
36
  }
37
37
  declare global {
38
38
  interface HTMLElementTagNameMap {
@@ -42,7 +42,7 @@ export default class Qrcode extends LitElement {
42
42
  correction: "L" | "M" | "Q" | "H";
43
43
  firstUpdated(): void;
44
44
  private generate;
45
- render(): import("lit-html").TemplateResult<1>;
45
+ render(): import("lit").TemplateResult<1>;
46
46
  }
47
47
  declare global {
48
48
  interface HTMLElementTagNameMap {
@@ -31,7 +31,7 @@ export default class Radio extends Radio_base {
31
31
  * Controls whether the checkbox is checked or not.
32
32
  */
33
33
  checked: boolean;
34
- render(): import("lit-html").TemplateResult<1>;
34
+ render(): import("lit").TemplateResult<1>;
35
35
  protected handleCheckedChange(previousChecked: boolean): void;
36
36
  private uncheckSiblings;
37
37
  protected handleChange(e: Event): void;
@@ -34,7 +34,7 @@ export default class Range extends Range_base {
34
34
  * Controls whether the input expands to fill the width of its container.
35
35
  */
36
36
  expand: boolean;
37
- render(): import("lit-html").TemplateResult<1>;
37
+ render(): import("lit").TemplateResult<1>;
38
38
  protected handleInput(e: Event): void;
39
39
  }
40
40
  declare global {
@@ -16,7 +16,7 @@ export default class SegmentedControl extends LitElement {
16
16
  * Controls whether the segmented control expands to fill the width of its container.
17
17
  */
18
18
  expand: boolean;
19
- render(): import("lit-html").TemplateResult<1>;
19
+ render(): import("lit").TemplateResult<1>;
20
20
  }
21
21
  declare global {
22
22
  interface HTMLElementTagNameMap {
@@ -43,7 +43,7 @@ export default class SegmentedControlItem extends SegmentedControlItem_base {
43
43
  * Label for the segmented control item.
44
44
  */
45
45
  label: string;
46
- render(): import("lit-html").TemplateResult<1>;
46
+ render(): import("lit").TemplateResult<1>;
47
47
  protected handleCheckedChange(previousChecked: boolean): void;
48
48
  private uncheckSiblings;
49
49
  protected handleChange(e: Event): void;
@@ -25,7 +25,7 @@ export default class Select extends Select_base {
25
25
  * Controls whether the select expands to fill the width of its container.
26
26
  */
27
27
  expand: boolean;
28
- render(): import("lit-html").TemplateResult<1>;
28
+ render(): import("lit").TemplateResult<1>;
29
29
  private get options();
30
30
  private getButtonText;
31
31
  private renderOption;
@@ -18,7 +18,7 @@ export default class Skeleton extends LitElement {
18
18
  * The default is no animation.
19
19
  */
20
20
  effect?: "pulse" | "sheen";
21
- render(): import("lit-html").TemplateResult<1>;
21
+ render(): import("lit").TemplateResult<1>;
22
22
  }
23
23
  declare global {
24
24
  interface HTMLElementTagNameMap {
@@ -25,7 +25,7 @@ export default class Spinner extends LitElement {
25
25
  * If no label is supplied, the spinner is hidden from assistive technology.
26
26
  */
27
27
  label?: string;
28
- render(): import("lit-html").TemplateResult<1>;
28
+ render(): import("lit").TemplateResult<1>;
29
29
  }
30
30
  declare global {
31
31
  interface HTMLElementTagNameMap {
@@ -32,7 +32,7 @@ export default class Stack extends LitElement {
32
32
  * How to justify the child items inside the stack.
33
33
  */
34
34
  justifyContent?: "center" | "start" | "end" | "baseline" | "space-between" | "space-around" | "space-evenly";
35
- render(): import("lit-html").TemplateResult<1>;
35
+ render(): import("lit").TemplateResult<1>;
36
36
  }
37
37
  declare global {
38
38
  interface HTMLElementTagNameMap {
@@ -16,7 +16,7 @@ export default class Tab extends LitElement {
16
16
  * Whether the tab item is selected
17
17
  */
18
18
  selected: boolean;
19
- render(): import("lit-html").TemplateResult<1>;
19
+ render(): import("lit").TemplateResult<1>;
20
20
  /**
21
21
  * Apply accessible attributes and values to the tab button.
22
22
  * Observe the selected property if it changes
@@ -35,7 +35,7 @@ export default class TabGroup extends LitElement {
35
35
  * The current tab node selected in the tab group.
36
36
  */
37
37
  private selectedTab;
38
- render(): import("lit-html").TemplateResult<1>;
38
+ render(): import("lit").TemplateResult<1>;
39
39
  connectedCallback(): void;
40
40
  private updateSlots;
41
41
  firstUpdated(): void;
@@ -9,7 +9,7 @@ import { LitElement } from "lit";
9
9
  */
10
10
  export default class TabPanel extends LitElement {
11
11
  static styles: import("lit").CSSResult[];
12
- render(): import("lit-html").TemplateResult<1>;
12
+ render(): import("lit").TemplateResult<1>;
13
13
  connectedCallback(): void;
14
14
  }
15
15
  declare global {
@@ -35,7 +35,7 @@ export default class Tag extends Tag_base {
35
35
  expand: boolean;
36
36
  protected handleChange(e: Event): void;
37
37
  protected handleRemove(): void;
38
- render(): import("lit-html").TemplateResult<1>;
38
+ render(): import("lit").TemplateResult<1>;
39
39
  private renderStaticTag;
40
40
  private renderRemovableTag;
41
41
  private renderSelectableTag;
@@ -33,7 +33,7 @@ export default class TagGroup extends LitElement {
33
33
  * The appropriate role for the containing element.
34
34
  */
35
35
  role: string;
36
- render(): import("lit-html").TemplateResult<1>;
36
+ render(): import("lit").TemplateResult<1>;
37
37
  }
38
38
  declare global {
39
39
  interface HTMLElementTagNameMap {
@@ -45,7 +45,7 @@ export default class Textarea extends Textarea_base {
45
45
  * When combined with `maxlength`, both the count and the max length are shown.
46
46
  */
47
47
  characterCounter: boolean;
48
- render(): import("lit-html").TemplateResult<1>;
48
+ render(): import("lit").TemplateResult<1>;
49
49
  protected handleSelect(e: Event): void;
50
50
  private renderCharacterCounter;
51
51
  private handleLangChange;
@@ -26,7 +26,7 @@ export default class Toast extends Toast_base {
26
26
  * The returned promise resolves when toast's exit animation is complete.
27
27
  */
28
28
  dismiss(): Promise<void>;
29
- render(): import("lit-html").TemplateResult<1>;
29
+ render(): import("lit").TemplateResult<1>;
30
30
  protected handleAutoDismissChange(): void;
31
31
  }
32
32
  declare global {
@@ -12,7 +12,7 @@ type ToastOptions = Partial<Pick<Toast, "variant" | "autoDismiss">>;
12
12
  */
13
13
  export default class ToastGroup extends LitElement {
14
14
  static styles: import("lit").CSSResult[];
15
- render(): import("lit-html").TemplateResult<1>;
15
+ render(): import("lit").TemplateResult<1>;
16
16
  /**
17
17
  * Convenience method for creating and adding a toast to the group.
18
18
  * @param {string} text - The text/message of the toast.
@@ -29,7 +29,7 @@ export default class Toggle extends Toggle_base {
29
29
  * The size of the toggle switch.
30
30
  */
31
31
  size: "s" | "m" | "l";
32
- render(): import("lit-html").TemplateResult<1>;
32
+ render(): import("lit").TemplateResult<1>;
33
33
  protected handleChange(e: Event): void;
34
34
  }
35
35
  declare global {
@@ -52,7 +52,7 @@ export default class Tooltip extends LitElement {
52
52
  * Apply all event listeners
53
53
  */
54
54
  connectedCallback(): void;
55
- render(): import("lit-html").TemplateResult<1>;
55
+ render(): import("lit").TemplateResult<1>;
56
56
  protected handleIdChange(): void;
57
57
  private handleStateChange;
58
58
  /**
@@ -9,7 +9,7 @@ import { LitElement } from "lit";
9
9
  */
10
10
  export default class TopBar extends LitElement {
11
11
  static styles: import("lit").CSSResult[];
12
- render(): import("lit-html").TemplateResult<1>;
12
+ render(): import("lit").TemplateResult<1>;
13
13
  }
14
14
  declare global {
15
15
  interface HTMLElementTagNameMap {
@@ -10,7 +10,7 @@ import { LitElement } from "lit";
10
10
  */
11
11
  export default class VisuallyHidden extends LitElement {
12
12
  static styles: import("lit").CSSResult;
13
- render(): import("lit-html").TemplateResult<1>;
13
+ render(): import("lit").TemplateResult<1>;
14
14
  }
15
15
  declare global {
16
16
  interface HTMLElementTagNameMap {
@@ -1 +1 @@
1
- {"version":3,"file":"state-BFYKuryf.js","sources":["../node_modules/@lit/reactive-element/decorators/state.js"],"sourcesContent":["import{property as t}from\"./property.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */function r(r){return t({...r,state:!0,attribute:!1})}export{r as state};\n//# sourceMappingURL=state.js.map\n"],"names":["r","t","state","attribute"],"mappings":";;;;;GAKG,SAASA,EAAEA,GAAG,OAAOC,EAAE,IAAID,EAAEE,OAAM,EAAGC,WAAU,GAAI","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"state-BFYKuryf.js","sources":["../../../node_modules/.pnpm/@lit+reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/state.js"],"sourcesContent":["import{property as t}from\"./property.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */function r(r){return t({...r,state:!0,attribute:!1})}export{r as state};\n//# sourceMappingURL=state.js.map\n"],"names":["r","t","state","attribute"],"mappings":";;;;;GAKG,SAASA,EAAEA,GAAG,OAAOC,EAAE,IAAID,EAAEE,OAAM,EAAGC,WAAU,GAAI","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"style-map-VR90KNpY.js","sources":["../node_modules/lit-html/directives/style-map.js"],"sourcesContent":["import{noChange as R}from\"../lit-html.js\";import{directive as e,Directive as i,PartType as t}from\"../directive.js\";\n/**\n * @license\n * Copyright 2018 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const ee=\"important\",ie=\" !\"+ee,se=e(class extends i{constructor(e){if(super(e),e.type!==t.ATTRIBUTE||\"style\"!==e.name||e.strings?.length>2)throw Error(\"The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.\")}render(t){return Object.keys(t).reduce(((e,r)=>{const s=t[r];return null==s?e:e+`${r=r.includes(\"-\")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,\"-$&\").toLowerCase()}:${s};`}),\"\")}update(t,[e]){const{style:r}=t.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(e)),this.render(e);for(const t of this.ft)null==e[t]&&(this.ft.delete(t),t.includes(\"-\")?r.removeProperty(t):r[t]=null);for(const t in e){const s=e[t];if(null!=s){this.ft.add(t);const e=\"string\"==typeof s&&s.endsWith(ie);t.includes(\"-\")||e?r.setProperty(t,e?s.slice(0,-11):s,e?ee:\"\"):r[t]=s}}return R}});export{se as styleMap};\n//# sourceMappingURL=style-map.js.map\n"],"names":["ee","ie","se","e","i","constructor","super","type","t","ATTRIBUTE","name","strings","length","Error","render","Object","keys","reduce","r","s","includes","replace","toLowerCase","update","style","element","this","ft","Set","delete","removeProperty","add","endsWith","setProperty","slice","R"],"mappings":";;;;;GAKQ,MAACA,EAAG,YAAYC,EAAG,KAAKD,EAAGE,EAAGC,EAAE,cAAcC,EAAE,WAAAC,CAAYF,GAAG,GAAGG,MAAMH,GAAGA,EAAEI,OAAOC,EAAEC,WAAW,UAAUN,EAAEO,MAAMP,EAAEQ,SAASC,OAAO,EAAE,MAAMC,MAAM,6GAA6G,CAAC,MAAAC,CAAON,GAAG,OAAOO,OAAOC,KAAKR,GAAGS,QAAQ,CAACd,EAAEe,KAAK,MAAMC,EAAEX,EAAEU,GAAG,OAAO,MAAMC,EAAEhB,EAAEA,EAAE,GAAGe,EAAEA,EAAEE,SAAS,KAAKF,EAAEA,EAAEG,QAAQ,oCAAoC,OAAOC,iBAAiBH,IAAK,GAAE,GAAG,CAAC,MAAAI,CAAOf,GAAGL,IAAI,MAAMqB,MAAMN,GAAGV,EAAEiB,QAAQ,QAAG,IAASC,KAAKC,GAAG,OAAOD,KAAKC,GAAG,IAAIC,IAAIb,OAAOC,KAAKb,IAAIuB,KAAKZ,OAAOX,GAAG,IAAI,MAAMK,KAAKkB,KAAKC,GAAG,MAAMxB,EAAEK,KAAKkB,KAAKC,GAAGE,OAAOrB,GAAGA,EAAEY,SAAS,KAAKF,EAAEY,eAAetB,GAAGU,EAAEV,GAAG,MAAM,IAAI,MAAMA,KAAKL,EAAE,CAAC,MAAMgB,EAAEhB,EAAEK,GAAG,GAAG,MAAMW,EAAE,CAACO,KAAKC,GAAGI,IAAIvB,GAAG,MAAML,EAAE,iBAAiBgB,GAAGA,EAAEa,SAAS/B,GAAIO,EAAEY,SAAS,MAAMjB,EAAEe,EAAEe,YAAYzB,EAAEL,EAAEgB,EAAEe,MAAM,GAAG,IAAIf,EAAEhB,EAAEH,EAAG,IAAIkB,EAAEV,GAAGW,CAAC,CAAC,CAAC,OAAOgB,CAAC","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"style-map-VR90KNpY.js","sources":["../../../node_modules/.pnpm/lit-html@3.2.0/node_modules/lit-html/directives/style-map.js"],"sourcesContent":["import{noChange as R}from\"../lit-html.js\";import{directive as e,Directive as i,PartType as t}from\"../directive.js\";\n/**\n * @license\n * Copyright 2018 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const ee=\"important\",ie=\" !\"+ee,se=e(class extends i{constructor(e){if(super(e),e.type!==t.ATTRIBUTE||\"style\"!==e.name||e.strings?.length>2)throw Error(\"The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.\")}render(t){return Object.keys(t).reduce(((e,r)=>{const s=t[r];return null==s?e:e+`${r=r.includes(\"-\")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,\"-$&\").toLowerCase()}:${s};`}),\"\")}update(t,[e]){const{style:r}=t.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(e)),this.render(e);for(const t of this.ft)null==e[t]&&(this.ft.delete(t),t.includes(\"-\")?r.removeProperty(t):r[t]=null);for(const t in e){const s=e[t];if(null!=s){this.ft.add(t);const e=\"string\"==typeof s&&s.endsWith(ie);t.includes(\"-\")||e?r.setProperty(t,e?s.slice(0,-11):s,e?ee:\"\"):r[t]=s}}return R}});export{se as styleMap};\n//# sourceMappingURL=style-map.js.map\n"],"names":["ee","ie","se","e","i","constructor","super","type","t","ATTRIBUTE","name","strings","length","Error","render","Object","keys","reduce","r","s","includes","replace","toLowerCase","update","style","element","this","ft","Set","delete","removeProperty","add","endsWith","setProperty","slice","R"],"mappings":";;;;;GAKQ,MAACA,EAAG,YAAYC,EAAG,KAAKD,EAAGE,EAAGC,EAAE,cAAcC,EAAE,WAAAC,CAAYF,GAAG,GAAGG,MAAMH,GAAGA,EAAEI,OAAOC,EAAEC,WAAW,UAAUN,EAAEO,MAAMP,EAAEQ,SAASC,OAAO,EAAE,MAAMC,MAAM,6GAA6G,CAAC,MAAAC,CAAON,GAAG,OAAOO,OAAOC,KAAKR,GAAGS,QAAQ,CAACd,EAAEe,KAAK,MAAMC,EAAEX,EAAEU,GAAG,OAAO,MAAMC,EAAEhB,EAAEA,EAAE,GAAGe,EAAEA,EAAEE,SAAS,KAAKF,EAAEA,EAAEG,QAAQ,oCAAoC,OAAOC,iBAAiBH,IAAK,GAAE,GAAG,CAAC,MAAAI,CAAOf,GAAGL,IAAI,MAAMqB,MAAMN,GAAGV,EAAEiB,QAAQ,QAAG,IAASC,KAAKC,GAAG,OAAOD,KAAKC,GAAG,IAAIC,IAAIb,OAAOC,KAAKb,IAAIuB,KAAKZ,OAAOX,GAAG,IAAI,MAAMK,KAAKkB,KAAKC,GAAG,MAAMxB,EAAEK,KAAKkB,KAAKC,GAAGE,OAAOrB,GAAGA,EAAEY,SAAS,KAAKF,EAAEY,eAAetB,GAAGU,EAAEV,GAAG,MAAM,IAAI,MAAMA,KAAKL,EAAE,CAAC,MAAMgB,EAAEhB,EAAEK,GAAG,GAAG,MAAMW,EAAE,CAACO,KAAKC,GAAGI,IAAIvB,GAAG,MAAML,EAAE,iBAAiBgB,GAAGA,EAAEa,SAAS/B,GAAIO,EAAEY,SAAS,MAAMjB,EAAEe,EAAEe,YAAYzB,EAAEL,EAAEgB,EAAEe,MAAM,GAAG,IAAIf,EAAEhB,EAAEH,EAAG,IAAIkB,EAAEV,GAAGW,CAAC,CAAC,CAAC,OAAOgB,CAAC","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"tinykeys.module-_6MZt7MP.js","sources":["../node_modules/tinykeys/dist/tinykeys.module.js"],"sourcesContent":["var t=[\"Shift\",\"Meta\",\"Alt\",\"Control\"],e=\"object\"==typeof navigator&&/Mac|iPod|iPhone|iPad/.test(navigator.platform)?\"Meta\":\"Control\";function n(t,e){return\"function\"==typeof t.getModifierState&&t.getModifierState(e)}function r(t){return t.trim().split(\" \").map(function(t){var n=t.split(/\\b\\+/),r=n.pop();return[n=n.map(function(t){return\"$mod\"===t?e:t}),r]})}function o(e,o){var i;void 0===o&&(o={});var u=null!=(i=o.timeout)?i:1e3,a=Object.keys(e).map(function(t){return[r(t),e[t]]}),f=new Map,c=null;return function(e){e instanceof KeyboardEvent&&(a.forEach(function(r){var o=r[0],i=r[1],u=f.get(o)||o;!function(e,r){return!(r[1].toUpperCase()!==e.key.toUpperCase()&&r[1]!==e.code||r[0].find(function(t){return!n(e,t)})||t.find(function(t){return!r[0].includes(t)&&r[1]!==t&&n(e,t)}))}(e,u[0])?n(e,e.key)||f.delete(o):u.length>1?f.set(o,u.slice(1)):(f.delete(o),i(e))}),c&&clearTimeout(c),c=setTimeout(f.clear.bind(f),u))}}function i(t,e,n){var r;void 0===n&&(n={});var i=null!=(r=n.event)?r:\"keydown\",u=o(e,n);return t.addEventListener(i,u),function(){t.removeEventListener(i,u)}}export default i;export{o as createKeybindingsHandler,r as parseKeybinding};\n//# sourceMappingURL=tinykeys.module.js.map\n"],"names":["t","e","navigator","test","platform","n","getModifierState","r","trim","split","map","pop","o","i","u","timeout","a","Object","keys","f","Map","c","KeyboardEvent","forEach","get","toUpperCase","key","code","find","includes","delete","length","set","slice","clearTimeout","setTimeout","clear","bind","event","addEventListener","removeEventListener"],"mappings":"AAAA,IAAIA,EAAE,CAAC,QAAQ,OAAO,MAAM,WAAWC,EAAE,iBAAiBC,WAAW,uBAAuBC,KAAKD,UAAUE,UAAU,OAAO,UAAU,SAASC,EAAEL,EAAEC,GAAG,MAAM,mBAAmBD,EAAEM,kBAAkBN,EAAEM,iBAAiBL,EAAE,CAAC,SAASM,EAAEP,GAAG,OAAOA,EAAEQ,OAAOC,MAAM,KAAKC,KAAI,SAASV,GAAG,IAAIK,EAAEL,EAAES,MAAM,QAAQF,EAAEF,EAAEM,MAAM,MAAM,CAACN,EAAEA,EAAEK,KAAI,SAASV,GAAG,MAAM,SAASA,EAAEC,EAAED,CAAC,IAAGO,EAAE,GAAE,CAAC,SAASK,EAAEX,EAAEW,GAAG,IAAIC,OAAE,IAASD,IAAIA,EAAE,CAAA,GAAI,IAAIE,EAAE,OAAOD,EAAED,EAAEG,SAASF,EAAE,IAAIG,EAAEC,OAAOC,KAAKjB,GAAGS,KAAI,SAASV,GAAG,MAAM,CAACO,EAAEP,GAAGC,EAAED,GAAG,IAAGmB,EAAE,IAAIC,IAAIC,EAAE,KAAK,OAAO,SAASpB,GAAGA,aAAaqB,gBAAgBN,EAAEO,SAAQ,SAAShB,GAAG,IAAIK,EAAEL,EAAE,GAAGM,EAAEN,EAAE,GAAGO,EAAEK,EAAEK,IAAIZ,IAAIA,GAAG,SAASX,EAAEM,GAAG,QAAQA,EAAE,GAAGkB,gBAAgBxB,EAAEyB,IAAID,eAAelB,EAAE,KAAKN,EAAE0B,MAAMpB,EAAE,GAAGqB,MAAK,SAAS5B,GAAG,OAAOK,EAAEJ,EAAED,EAAE,KAAIA,EAAE4B,MAAK,SAAS5B,GAAG,OAAOO,EAAE,GAAGsB,SAAS7B,IAAIO,EAAE,KAAKP,GAAGK,EAAEJ,EAAED,EAAE,IAAG,CAArL,CAAuLC,EAAEa,EAAE,IAAIT,EAAEJ,EAAEA,EAAEyB,MAAMP,EAAEW,OAAOlB,GAAGE,EAAEiB,OAAO,EAAEZ,EAAEa,IAAIpB,EAAEE,EAAEmB,MAAM,KAAKd,EAAEW,OAAOlB,GAAGC,EAAEZ,GAAG,IAAGoB,GAAGa,aAAab,GAAGA,EAAEc,WAAWhB,EAAEiB,MAAMC,KAAKlB,GAAGL,GAAG,CAAC,CAAC,SAASD,EAAEb,EAAEC,EAAEI,GAAG,IAAIE,OAAE,IAASF,IAAIA,EAAE,CAAA,GAAI,IAAIQ,EAAE,OAAON,EAAEF,EAAEiC,OAAO/B,EAAE,UAAUO,EAAEF,EAAEX,EAAEI,GAAG,OAAOL,EAAEuC,iBAAiB1B,EAAEC,GAAG,WAAWd,EAAEwC,oBAAoB3B,EAAEC,EAAE,CAAC","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"tinykeys.module-_6MZt7MP.js","sources":["../../../node_modules/.pnpm/tinykeys@1.4.0/node_modules/tinykeys/dist/tinykeys.module.js"],"sourcesContent":["var t=[\"Shift\",\"Meta\",\"Alt\",\"Control\"],e=\"object\"==typeof navigator&&/Mac|iPod|iPhone|iPad/.test(navigator.platform)?\"Meta\":\"Control\";function n(t,e){return\"function\"==typeof t.getModifierState&&t.getModifierState(e)}function r(t){return t.trim().split(\" \").map(function(t){var n=t.split(/\\b\\+/),r=n.pop();return[n=n.map(function(t){return\"$mod\"===t?e:t}),r]})}function o(e,o){var i;void 0===o&&(o={});var u=null!=(i=o.timeout)?i:1e3,a=Object.keys(e).map(function(t){return[r(t),e[t]]}),f=new Map,c=null;return function(e){e instanceof KeyboardEvent&&(a.forEach(function(r){var o=r[0],i=r[1],u=f.get(o)||o;!function(e,r){return!(r[1].toUpperCase()!==e.key.toUpperCase()&&r[1]!==e.code||r[0].find(function(t){return!n(e,t)})||t.find(function(t){return!r[0].includes(t)&&r[1]!==t&&n(e,t)}))}(e,u[0])?n(e,e.key)||f.delete(o):u.length>1?f.set(o,u.slice(1)):(f.delete(o),i(e))}),c&&clearTimeout(c),c=setTimeout(f.clear.bind(f),u))}}function i(t,e,n){var r;void 0===n&&(n={});var i=null!=(r=n.event)?r:\"keydown\",u=o(e,n);return t.addEventListener(i,u),function(){t.removeEventListener(i,u)}}export default i;export{o as createKeybindingsHandler,r as parseKeybinding};\n//# sourceMappingURL=tinykeys.module.js.map\n"],"names":["t","e","navigator","test","platform","n","getModifierState","r","trim","split","map","pop","o","i","u","timeout","a","Object","keys","f","Map","c","KeyboardEvent","forEach","get","toUpperCase","key","code","find","includes","delete","length","set","slice","clearTimeout","setTimeout","clear","bind","event","addEventListener","removeEventListener"],"mappings":"AAAA,IAAIA,EAAE,CAAC,QAAQ,OAAO,MAAM,WAAWC,EAAE,iBAAiBC,WAAW,uBAAuBC,KAAKD,UAAUE,UAAU,OAAO,UAAU,SAASC,EAAEL,EAAEC,GAAG,MAAM,mBAAmBD,EAAEM,kBAAkBN,EAAEM,iBAAiBL,EAAE,CAAC,SAASM,EAAEP,GAAG,OAAOA,EAAEQ,OAAOC,MAAM,KAAKC,KAAI,SAASV,GAAG,IAAIK,EAAEL,EAAES,MAAM,QAAQF,EAAEF,EAAEM,MAAM,MAAM,CAACN,EAAEA,EAAEK,KAAI,SAASV,GAAG,MAAM,SAASA,EAAEC,EAAED,CAAC,IAAGO,EAAE,GAAE,CAAC,SAASK,EAAEX,EAAEW,GAAG,IAAIC,OAAE,IAASD,IAAIA,EAAE,CAAA,GAAI,IAAIE,EAAE,OAAOD,EAAED,EAAEG,SAASF,EAAE,IAAIG,EAAEC,OAAOC,KAAKjB,GAAGS,KAAI,SAASV,GAAG,MAAM,CAACO,EAAEP,GAAGC,EAAED,GAAG,IAAGmB,EAAE,IAAIC,IAAIC,EAAE,KAAK,OAAO,SAASpB,GAAGA,aAAaqB,gBAAgBN,EAAEO,SAAQ,SAAShB,GAAG,IAAIK,EAAEL,EAAE,GAAGM,EAAEN,EAAE,GAAGO,EAAEK,EAAEK,IAAIZ,IAAIA,GAAG,SAASX,EAAEM,GAAG,QAAQA,EAAE,GAAGkB,gBAAgBxB,EAAEyB,IAAID,eAAelB,EAAE,KAAKN,EAAE0B,MAAMpB,EAAE,GAAGqB,MAAK,SAAS5B,GAAG,OAAOK,EAAEJ,EAAED,EAAE,KAAIA,EAAE4B,MAAK,SAAS5B,GAAG,OAAOO,EAAE,GAAGsB,SAAS7B,IAAIO,EAAE,KAAKP,GAAGK,EAAEJ,EAAED,EAAE,IAAG,CAArL,CAAuLC,EAAEa,EAAE,IAAIT,EAAEJ,EAAEA,EAAEyB,MAAMP,EAAEW,OAAOlB,GAAGE,EAAEiB,OAAO,EAAEZ,EAAEa,IAAIpB,EAAEE,EAAEmB,MAAM,KAAKd,EAAEW,OAAOlB,GAAGC,EAAEZ,GAAG,IAAGoB,GAAGa,aAAab,GAAGA,EAAEc,WAAWhB,EAAEiB,MAAMC,KAAKlB,GAAGL,GAAG,CAAC,CAAC,SAASD,EAAEb,EAAEC,EAAEI,GAAG,IAAIE,OAAE,IAASF,IAAIA,EAAE,CAAA,GAAI,IAAIQ,EAAE,OAAON,EAAEF,EAAEiC,OAAO/B,EAAE,UAAUO,EAAEF,EAAEX,EAAEI,GAAG,OAAOL,EAAEuC,iBAAiB1B,EAAEC,GAAG,WAAWd,EAAEwC,oBAAoB3B,EAAEC,EAAE,CAAC","x_google_ignoreList":[0]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nordhealth/components",
3
- "version": "3.18.0",
3
+ "version": "3.18.1-alpha.0",
4
4
  "description": "This package includes Nord Design System Web Components",
5
5
  "author": "Nordhealth <support@nordhealth.design>",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -18,68 +18,68 @@
18
18
  ],
19
19
  "scripts": {
20
20
  "start": "concurrently -k -n TSC,HTTP -c blue.bold,magenta.bold \"tsc -w --noEmit\" \"wds\"",
21
- "prebuild": "npm run clean",
21
+ "prebuild": "pnpm clean",
22
22
  "build": "rollup -c",
23
- "postbuild": "npm run analyze",
23
+ "postbuild": "pnpm analyze",
24
24
  "build:docker": "docker compose build test",
25
25
  "clean": "rm -rf lib/",
26
26
  "clean:snapshots": "rm -rf src/*/screenshots/*/failed/*.png",
27
- "pretest": "npm run clean:snapshots",
27
+ "pretest": "pnpm clean:snapshots",
28
28
  "test": "docker compose run --rm -e INCLUDE_VISUAL_REGRESSION test",
29
29
  "test:watch": "docker compose run --rm -e INCLUDE_VISUAL_REGRESSION test --watch",
30
- "test:capture": "npm test -- --update-visual-baseline",
30
+ "test:capture": "pnpm test -- --update-visual-baseline",
31
31
  "test:local": "wtr --coverage --watch",
32
32
  "analyze": "custom-elements-manifest analyze --litelement",
33
33
  "scaffold": "node ./utils/scaffold.mjs"
34
34
  },
35
35
  "dependencies": {
36
- "@floating-ui/dom": "1.6.10",
37
- "@nordhealth/icons": "^3.5.0",
38
- "lit": "3.2.0",
39
- "qr-creator": "1.0.0",
40
- "tinykeys": "1.4.0"
36
+ "@floating-ui/dom": "^1.6.11",
37
+ "@nordhealth/icons": "^3.5.1-alpha.0",
38
+ "lit": "^3.2.0",
39
+ "qr-creator": "^1.0.0",
40
+ "tinykeys": "^1.4.0"
41
41
  },
42
42
  "devDependencies": {
43
- "@custom-elements-manifest/analyzer": "0.10.3",
44
- "@nordhealth/css": "^3.3.0",
45
- "@nordhealth/fonts": "^3.0.1",
46
- "@nordhealth/themes": "^8.1.0",
47
- "@nordhealth/tokens": "^7.1.1",
48
- "@open-wc/eslint-config": "12.0.3",
49
- "@open-wc/testing": "4.0.0",
50
- "@rollup/plugin-node-resolve": "15.2.3",
51
- "@rollup/plugin-replace": "5.0.7",
52
- "@rollup/plugin-terser": "0.4.4",
53
- "@rollup/plugin-typescript": "11.1.6",
54
- "@types/mocha": "10.0.7",
55
- "@types/node": "22.5.4",
56
- "@typescript-eslint/eslint-plugin": "8.4.0",
57
- "@typescript-eslint/parser": "8.4.0",
58
- "@web/dev-server": "0.4.6",
59
- "@web/dev-server-esbuild": "0.2.16",
60
- "@web/dev-server-rollup": "0.6.4",
61
- "@web/test-runner": "0.16.1",
62
- "@web/test-runner-commands": "0.7.0",
63
- "@web/test-runner-visual-regression": "0.8.0",
64
- "concurrently": "9.0.0",
65
- "eslint": "8.57.0",
66
- "eslint-config-prettier": "9.1.0",
67
- "eslint-plugin-import": "2.30.0",
68
- "eslint-plugin-lit": "1.15.0",
69
- "eslint-plugin-lit-a11y": "4.1.4",
70
- "eslint-plugin-wc": "2.1.1",
71
- "glob": "11.0.0",
72
- "prettier": "3.3.3",
73
- "rollup": "4.21.2",
74
- "rollup-plugin-lit-css": "5.0.0",
75
- "rollup-plugin-minify-html-literals-v3": "1.3.4",
76
- "rollup-plugin-summary": "2.0.1",
77
- "tslib": "2.7.0",
78
- "typescript": "5.5.4"
43
+ "@custom-elements-manifest/analyzer": "^0.10.3",
44
+ "@nordhealth/css": "^3.3.1-alpha.0",
45
+ "@nordhealth/fonts": "^3.0.2-alpha.0",
46
+ "@nordhealth/themes": "^8.1.1-alpha.0",
47
+ "@nordhealth/tokens": "^7.1.2-alpha.0",
48
+ "@open-wc/eslint-config": "^12.0.3",
49
+ "@open-wc/testing": "^4.0.0",
50
+ "@rollup/plugin-node-resolve": "^15.2.3",
51
+ "@rollup/plugin-replace": "^5.0.7",
52
+ "@rollup/plugin-terser": "^0.4.4",
53
+ "@rollup/plugin-typescript": "^11.1.6",
54
+ "@types/mocha": "^10.0.8",
55
+ "@types/node": "^22.5.5",
56
+ "@typescript-eslint/eslint-plugin": "^8.6.0",
57
+ "@typescript-eslint/parser": "^8.6.0",
58
+ "@web/dev-server": "^0.4.6",
59
+ "@web/dev-server-esbuild": "~0.2.16",
60
+ "@web/dev-server-rollup": "^0.6.4",
61
+ "@web/test-runner": "~0.16.1",
62
+ "@web/test-runner-commands": "~0.7.0",
63
+ "@web/test-runner-visual-regression": "~0.8.3",
64
+ "concurrently": "^9.0.1",
65
+ "eslint": "^8.57.1",
66
+ "eslint-config-prettier": "^9.1.0",
67
+ "eslint-plugin-import": "^2.30.0",
68
+ "eslint-plugin-lit": "^1.15.0",
69
+ "eslint-plugin-lit-a11y": "^4.1.4",
70
+ "eslint-plugin-wc": "^1.5.0",
71
+ "glob": "^11.0.0",
72
+ "prettier": "^3.3.3",
73
+ "rollup": "~4.21.3",
74
+ "rollup-plugin-lit-css": "^5.0.1",
75
+ "rollup-plugin-minify-html-literals-v3": "^1.3.4",
76
+ "rollup-plugin-summary": "^2.0.1",
77
+ "tslib": "^2.7.0",
78
+ "typescript": "~5.5.4"
79
79
  },
80
80
  "overrides": {
81
81
  "rollup-plugin-summary": {
82
- "rollup": "4.21.2"
82
+ "rollup": "~4.21.3"
83
83
  }
84
84
  },
85
85
  "eslintConfig": {
@@ -175,5 +175,5 @@
175
175
  }
176
176
  ]
177
177
  },
178
- "gitHead": "61a0bb78ba949925d79ca8ebf2476f333be78936"
178
+ "gitHead": "45f51d9f7ed25ba9fbc41ed8ef1ce5d879930417"
179
179
  }
@@ -1,2 +0,0 @@
1
- const t=["top","right","bottom","left"],e=Math.min,n=Math.max,o=Math.round,i=Math.floor,r=t=>({x:t,y:t}),l={left:"right",right:"left",bottom:"top",top:"bottom"},c={start:"end",end:"start"};function s(t,o,i){return n(t,e(o,i))}function a(t,e){return"function"==typeof t?t(e):t}function f(t){return t.split("-")[0]}function u(t){return t.split("-")[1]}function d(t){return"x"===t?"y":"x"}function h(t){return"y"===t?"height":"width"}function m(t){return["top","bottom"].includes(f(t))?"y":"x"}function p(t){return d(m(t))}function g(t){return t.replace(/start|end/g,(t=>c[t]))}function y(t){return t.replace(/left|right|bottom|top/g,(t=>l[t]))}function w(t){const{x:e,y:n,width:o,height:i}=t;return{width:o,height:i,top:n,left:e,right:e+o,bottom:n+i,x:e,y:n}}function x(t,e,n){let{reference:o,floating:i}=t;const r=m(e),l=p(e),c=h(l),s=f(e),a="y"===r,d=o.x+o.width/2-i.width/2,g=o.y+o.height/2-i.height/2,y=o[c]/2-i[c]/2;let w;switch(s){case"top":w={x:d,y:o.y-i.height};break;case"bottom":w={x:d,y:o.y+o.height};break;case"right":w={x:o.x+o.width,y:g};break;case"left":w={x:o.x-i.width,y:g};break;default:w={x:o.x,y:o.y}}switch(u(e)){case"start":w[l]-=y*(n&&a?-1:1);break;case"end":w[l]+=y*(n&&a?-1:1)}return w}async function v(t,e){var n;void 0===e&&(e={});const{x:o,y:i,platform:r,rects:l,elements:c,strategy:s}=t,{boundary:f="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:m=0}=a(e,t),p=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(m),g=c[h?"floating"===d?"reference":"floating":d],y=w(await r.getClippingRect({element:null==(n=await(null==r.isElement?void 0:r.isElement(g)))||n?g:g.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(c.floating)),boundary:f,rootBoundary:u,strategy:s})),x="floating"===d?{x:o,y:i,width:l.floating.width,height:l.floating.height}:l.reference,v=await(null==r.getOffsetParent?void 0:r.getOffsetParent(c.floating)),b=await(null==r.isElement?void 0:r.isElement(v))&&await(null==r.getScale?void 0:r.getScale(v))||{x:1,y:1},R=w(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:x,offsetParent:v,strategy:s}):x);return{top:(y.top-R.top+p.top)/b.y,bottom:(R.bottom-y.bottom+p.bottom)/b.y,left:(y.left-R.left+p.left)/b.x,right:(R.right-y.right+p.right)/b.x}}function b(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function R(e){return t.some((t=>e[t]>=0))}function T(){return"undefined"!=typeof window}function L(t){return k(t)?(t.nodeName||"").toLowerCase():"#document"}function A(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function E(t){var e;return null==(e=(k(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function k(t){return!!T()&&(t instanceof Node||t instanceof A(t).Node)}function O(t){return!!T()&&(t instanceof Element||t instanceof A(t).Element)}function S(t){return!!T()&&(t instanceof HTMLElement||t instanceof A(t).HTMLElement)}function D(t){return!(!T()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof A(t).ShadowRoot)}function C(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=V(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(i)}function F(t){return["table","td","th"].includes(L(t))}function P(t){return[":popover-open",":modal"].some((e=>{try{return t.matches(e)}catch(t){return!1}}))}function H(t){const e=B(),n=O(t)?V(t):t;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((t=>(n.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(n.contain||"").includes(t)))}function B(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function W(t){return["html","body","#document"].includes(L(t))}function V(t){return A(t).getComputedStyle(t)}function M(t){return O(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function z(t){if("html"===L(t))return t;const e=t.assignedSlot||t.parentNode||D(t)&&t.host||E(t);return D(e)?e.host:e}function N(t){const e=z(t);return W(e)?t.ownerDocument?t.ownerDocument.body:t.body:S(e)&&C(e)?e:N(e)}function $(t,e,n){var o;void 0===e&&(e=[]),void 0===n&&(n=!0);const i=N(t),r=i===(null==(o=t.ownerDocument)?void 0:o.body),l=A(i);if(r){const t=I(l);return e.concat(l,l.visualViewport||[],C(i)?i:[],t&&n?$(t):[])}return e.concat(i,$(i,[],n))}function I(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function j(t){const e=V(t);let n=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const r=S(t),l=r?t.offsetWidth:n,c=r?t.offsetHeight:i,s=o(n)!==l||o(i)!==c;return s&&(n=l,i=c),{width:n,height:i,$:s}}function q(t){return O(t)?t:t.contextElement}function X(t){const e=q(t);if(!S(e))return r(1);const n=e.getBoundingClientRect(),{width:i,height:l,$:c}=j(e);let s=(c?o(n.width):n.width)/i,a=(c?o(n.height):n.height)/l;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const Y=r(0);function _(t){const e=A(t);return B()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:Y}function G(t,e,n,o){void 0===e&&(e=!1),void 0===n&&(n=!1);const i=t.getBoundingClientRect(),l=q(t);let c=r(1);e&&(o?O(o)&&(c=X(o)):c=X(t));const s=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==A(t))&&e}(l,n,o)?_(l):r(0);let a=(i.left+s.x)/c.x,f=(i.top+s.y)/c.y,u=i.width/c.x,d=i.height/c.y;if(l){const t=A(l),e=o&&O(o)?A(o):o;let n=t,i=I(n);for(;i&&o&&e!==n;){const t=X(i),e=i.getBoundingClientRect(),o=V(i),r=e.left+(i.clientLeft+parseFloat(o.paddingLeft))*t.x,l=e.top+(i.clientTop+parseFloat(o.paddingTop))*t.y;a*=t.x,f*=t.y,u*=t.x,d*=t.y,a+=r,f+=l,n=A(i),i=I(n)}}return w({width:u,height:d,x:a,y:f})}function J(t){return G(E(t)).left+M(t).scrollLeft}function K(t,e,o){let i;if("viewport"===e)i=function(t,e){const n=A(t),o=E(t),i=n.visualViewport;let r=o.clientWidth,l=o.clientHeight,c=0,s=0;if(i){r=i.width,l=i.height;const t=B();(!t||t&&"fixed"===e)&&(c=i.offsetLeft,s=i.offsetTop)}return{width:r,height:l,x:c,y:s}}(t,o);else if("document"===e)i=function(t){const e=E(t),o=M(t),i=t.ownerDocument.body,r=n(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),l=n(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let c=-o.scrollLeft+J(t);const s=-o.scrollTop;return"rtl"===V(i).direction&&(c+=n(e.clientWidth,i.clientWidth)-r),{width:r,height:l,x:c,y:s}}(E(t));else if(O(e))i=function(t,e){const n=G(t,!0,"fixed"===e),o=n.top+t.clientTop,i=n.left+t.clientLeft,l=S(t)?X(t):r(1);return{width:t.clientWidth*l.x,height:t.clientHeight*l.y,x:i*l.x,y:o*l.y}}(e,o);else{const n=_(t);i={...e,x:e.x-n.x,y:e.y-n.y}}return w(i)}function Q(t,e){const n=z(t);return!(n===e||!O(n)||W(n))&&("fixed"===V(n).position||Q(n,e))}function U(t,e,n){const o=S(e),i=E(e),l="fixed"===n,c=G(t,!0,l,e);let s={scrollLeft:0,scrollTop:0};const a=r(0);if(o||!o&&!l)if(("body"!==L(e)||C(i))&&(s=M(e)),o){const t=G(e,!0,l,e);a.x=t.x+e.clientLeft,a.y=t.y+e.clientTop}else i&&(a.x=J(i));return{x:c.left+s.scrollLeft-a.x,y:c.top+s.scrollTop-a.y,width:c.width,height:c.height}}function Z(t){return"static"===V(t).position}function tt(t,e){return S(t)&&"fixed"!==V(t).position?e?e(t):t.offsetParent:null}function et(t,e){const n=A(t);if(P(t))return n;if(!S(t)){let e=z(t);for(;e&&!W(e);){if(O(e)&&!Z(e))return e;e=z(e)}return n}let o=tt(t,e);for(;o&&F(o)&&Z(o);)o=tt(o,e);return o&&W(o)&&Z(o)&&!H(o)?n:o||function(t){let e=z(t);for(;S(e)&&!W(e);){if(H(e))return e;if(P(e))return null;e=z(e)}return null}(t)||n}const nt={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const l="fixed"===i,c=E(o),s=!!e&&P(e.floating);if(o===c||s&&l)return n;let a={scrollLeft:0,scrollTop:0},f=r(1);const u=r(0),d=S(o);if((d||!d&&!l)&&(("body"!==L(o)||C(c))&&(a=M(o)),S(o))){const t=G(o);f=X(o),u.x=t.x+o.clientLeft,u.y=t.y+o.clientTop}return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-a.scrollLeft*f.x+u.x,y:n.y*f.y-a.scrollTop*f.y+u.y}},getDocumentElement:E,getClippingRect:function(t){let{element:o,boundary:i,rootBoundary:r,strategy:l}=t;const c=[..."clippingAncestors"===i?P(o)?[]:function(t,e){const n=e.get(t);if(n)return n;let o=$(t,[],!1).filter((t=>O(t)&&"body"!==L(t))),i=null;const r="fixed"===V(t).position;let l=r?z(t):t;for(;O(l)&&!W(l);){const e=V(l),n=H(l);n||"fixed"!==e.position||(i=null),(r?!n&&!i:!n&&"static"===e.position&&i&&["absolute","fixed"].includes(i.position)||C(l)&&!n&&Q(t,l))?o=o.filter((t=>t!==l)):i=e,l=z(l)}return e.set(t,o),o}(o,this._c):[].concat(i),r],s=c[0],a=c.reduce(((t,i)=>{const r=K(o,i,l);return t.top=n(r.top,t.top),t.right=e(r.right,t.right),t.bottom=e(r.bottom,t.bottom),t.left=n(r.left,t.left),t}),K(o,s,l));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:et,getElementRects:async function(t){const e=this.getOffsetParent||et,n=this.getDimensions,o=await n(t.floating);return{reference:U(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:n}=j(t);return{width:e,height:n}},getScale:X,isElement:O,isRTL:function(t){return"rtl"===V(t).direction}};function ot(t,o,r,l){void 0===l&&(l={});const{ancestorScroll:c=!0,ancestorResize:s=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:f="function"==typeof IntersectionObserver,animationFrame:u=!1}=l,d=q(t),h=c||s?[...d?$(d):[],...$(o)]:[];h.forEach((t=>{c&&t.addEventListener("scroll",r,{passive:!0}),s&&t.addEventListener("resize",r)}));const m=d&&f?function(t,o){let r,l=null;const c=E(t);function s(){var t;clearTimeout(r),null==(t=l)||t.disconnect(),l=null}return function a(f,u){void 0===f&&(f=!1),void 0===u&&(u=1),s();const{left:d,top:h,width:m,height:p}=t.getBoundingClientRect();if(f||o(),!m||!p)return;const g={rootMargin:-i(h)+"px "+-i(c.clientWidth-(d+m))+"px "+-i(c.clientHeight-(h+p))+"px "+-i(d)+"px",threshold:n(0,e(1,u))||1};let y=!0;function w(t){const e=t[0].intersectionRatio;if(e!==u){if(!y)return a();e?a(!1,e):r=setTimeout((()=>{a(!1,1e-7)}),1e3)}y=!1}try{l=new IntersectionObserver(w,{...g,root:c.ownerDocument})}catch(t){l=new IntersectionObserver(w,g)}l.observe(t)}(!0),s}(d,r):null;let p,g=-1,y=null;a&&(y=new ResizeObserver((t=>{let[e]=t;e&&e.target===d&&y&&(y.unobserve(o),cancelAnimationFrame(g),g=requestAnimationFrame((()=>{var t;null==(t=y)||t.observe(o)}))),r()})),d&&!u&&y.observe(d),y.observe(o));let w=u?G(t):null;return u&&function e(){const n=G(t);!w||n.x===w.x&&n.y===w.y&&n.width===w.width&&n.height===w.height||r();w=n,p=requestAnimationFrame(e)}(),r(),()=>{var t;h.forEach((t=>{c&&t.removeEventListener("scroll",r),s&&t.removeEventListener("resize",r)})),null==m||m(),null==(t=y)||t.disconnect(),y=null,u&&cancelAnimationFrame(p)}}const it=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:i,y:r,placement:l,middlewareData:c}=e,s=await async function(t,e){const{placement:n,platform:o,elements:i}=t,r=await(null==o.isRTL?void 0:o.isRTL(i.floating)),l=f(n),c=u(n),s="y"===m(n),d=["left","top"].includes(l)?-1:1,h=r&&s?-1:1,p=a(e,t);let{mainAxis:g,crossAxis:y,alignmentAxis:w}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return c&&"number"==typeof w&&(y="end"===c?-1*w:w),s?{x:y*h,y:g*d}:{x:g*d,y:y*h}}(e,t);return l===(null==(n=c.offset)?void 0:n.placement)&&null!=(o=c.arrow)&&o.alignmentOffset?{}:{x:i+s.x,y:r+s.y,data:{...s,placement:l}}}}},rt=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i}=e,{mainAxis:r=!0,crossAxis:l=!1,limiter:c={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...u}=a(t,e),h={x:n,y:o},p=await v(e,u),g=m(f(i)),y=d(g);let w=h[y],x=h[g];if(r){const t="y"===y?"bottom":"right";w=s(w+p["y"===y?"top":"left"],w,w-p[t])}if(l){const t="y"===g?"bottom":"right";x=s(x+p["y"===g?"top":"left"],x,x-p[t])}const b=c.fn({...e,[y]:w,[g]:x});return{...b,data:{x:b.x-n,y:b.y-o,enabled:{[y]:r,[g]:l}}}}}},lt=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:r,rects:l,initialPlacement:c,platform:s,elements:d}=e,{mainAxis:w=!0,crossAxis:x=!0,fallbackPlacements:b,fallbackStrategy:R="bestFit",fallbackAxisSideDirection:T="none",flipAlignment:L=!0,...A}=a(t,e);if(null!=(n=r.arrow)&&n.alignmentOffset)return{};const E=f(i),k=m(c),O=f(c)===c,S=await(null==s.isRTL?void 0:s.isRTL(d.floating)),D=b||(O||!L?[y(c)]:function(t){const e=y(t);return[g(t),e,g(e)]}(c)),C="none"!==T;!b&&C&&D.push(...function(t,e,n,o){const i=u(t);let r=function(t,e,n){const o=["left","right"],i=["right","left"],r=["top","bottom"],l=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:o:e?o:i;case"left":case"right":return e?r:l;default:return[]}}(f(t),"start"===n,o);return i&&(r=r.map((t=>t+"-"+i)),e&&(r=r.concat(r.map(g)))),r}(c,L,T,S));const F=[c,...D],P=await v(e,A),H=[];let B=(null==(o=r.flip)?void 0:o.overflows)||[];if(w&&H.push(P[E]),x){const t=function(t,e,n){void 0===n&&(n=!1);const o=u(t),i=p(t),r=h(i);let l="x"===i?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[r]>e.floating[r]&&(l=y(l)),[l,y(l)]}(i,l,S);H.push(P[t[0]],P[t[1]])}if(B=[...B,{placement:i,overflows:H}],!H.every((t=>t<=0))){var W,V;const t=((null==(W=r.flip)?void 0:W.index)||0)+1,e=F[t];if(e)return{data:{index:t,overflows:B},reset:{placement:e}};let n=null==(V=B.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:V.placement;if(!n)switch(R){case"bestFit":{var M;const t=null==(M=B.filter((t=>{if(C){const e=m(t.placement);return e===k||"y"===e}return!0})).map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:M[0];t&&(n=t);break}case"initialPlacement":n=c}if(i!==n)return{reset:{placement:n}}}return{}}}},ct=function(t){return void 0===t&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:o="referenceHidden",...i}=a(t,e);switch(o){case"referenceHidden":{const t=b(await v(e,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:R(t)}}}case"escaped":{const t=b(await v(e,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:t,escaped:R(t)}}}default:return{}}}}},st=(t,e,n)=>{const o=new Map,i={platform:nt,...n},r={...i.platform,_c:o};return(async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:l}=n,c=r.filter(Boolean),s=await(null==l.isRTL?void 0:l.isRTL(e));let a=await l.getElementRects({reference:t,floating:e,strategy:i}),{x:f,y:u}=x(a,o,s),d=o,h={},m=0;for(let n=0;n<c.length;n++){const{name:r,fn:p}=c[n],{x:g,y,data:w,reset:v}=await p({x:f,y:u,initialPlacement:o,placement:d,strategy:i,middlewareData:h,rects:a,platform:l,elements:{reference:t,floating:e}});f=null!=g?g:f,u=null!=y?y:u,h={...h,[r]:{...h[r],...w}},v&&m<=50&&(m++,"object"==typeof v&&(v.placement&&(d=v.placement),v.rects&&(a=!0===v.rects?await l.getElementRects({reference:t,floating:e,strategy:i}):v.rects),({x:f,y:u}=x(a,d,s))),n=-1)}return{x:f,y:u,placement:d,strategy:i,middlewareData:h}})(t,e,{...i,platform:r})},at={"inline-start-start":"left-start","inline-start-end":"left-end","inline-end-start":"right-start","inline-end-end":"right-end","block-start-start":"top-start","block-start-end":"top-end","block-end-start":"bottom-start","block-end-end":"bottom-end"},ft={"inline-start-start":"right-start","inline-start-end":"right-end","inline-end-start":"left-start","inline-end-end":"left-end","block-start-start":"top-start","block-start-end":"top-end","block-end-start":"bottom-start","block-end-end":"bottom-end"},ut={"block-end":"bottom","block-start":"top","inline-start":"left","inline-end":"right"};function dt(t,e,n){if(null!=e&&null!=n){const o=`${t}-${e}`;return"ltr"===n?at[o]:ft[o]}return ut[t]}export{ot as a,st as c,lt as f,ct as h,dt as l,it as o,rt as s};
2
- //# sourceMappingURL=positioning-CHP-_dKQ.js.map