nve-designsystem 3.1.0 → 3.3.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 (197) hide show
  1. package/chunks/chunk.2PCBEMQZ.js +163 -226
  2. package/chunks/chunk.36O46B5H.js +15 -15
  3. package/chunks/chunk.4TUIT776.js +78 -96
  4. package/chunks/chunk.5JY5FUCG.js +965 -1245
  5. package/chunks/chunk.5P45LHIX.js +668 -96
  6. package/chunks/chunk.6CTB5ZDJ.js +107 -100
  7. package/chunks/chunk.B4BZKR24.js +29 -39
  8. package/chunks/chunk.D5YQDJ7X.js +122 -166
  9. package/chunks/chunk.EA437WHD.js +5 -5
  10. package/chunks/chunk.GI7VDIWX.js +14 -15
  11. package/chunks/chunk.GMYPQTFK.js +18 -20
  12. package/chunks/chunk.HVTXQL7M.js +191 -215
  13. package/chunks/chunk.IKV4VH3T.js +18 -16
  14. package/chunks/chunk.IVVHNXMC.js +26 -27
  15. package/chunks/chunk.JHOXTQXA.js +65 -74
  16. package/chunks/chunk.JXOKFADN.js +63 -90
  17. package/chunks/chunk.K7JGTRV7.js +24 -23
  18. package/chunks/chunk.KPLQLAWP.js +132 -147
  19. package/chunks/chunk.LD4M4QGE.js +61 -74
  20. package/chunks/chunk.MSKEYBDI.js +53 -71
  21. package/chunks/chunk.NYIIDP5N.js +39 -45
  22. package/chunks/chunk.RWUUFNUL.js +91 -114
  23. package/chunks/chunk.SAPQLUO4.js +249 -228
  24. package/chunks/chunk.SI4ACBFK.js +139 -5
  25. package/chunks/chunk.TP2GB2HO.js +361 -460
  26. package/chunks/chunk.UDWRA64J.js +185 -223
  27. package/chunks/chunk.URTPIBTY.js +119 -151
  28. package/chunks/chunk.VESXC477.js +63 -66
  29. package/chunks/chunk.XA43ZQPC.js +198 -313
  30. package/chunks/chunk.XQ2OKYYA.js +25 -26
  31. package/chunks/chunk.XZNBUGX7.js +6 -6
  32. package/chunks/chunk.YHLNUJ7P.js +93 -116
  33. package/chunks/chunk.ZH2AND3P.js +340 -399
  34. package/chunks/chunk.ZL53POKZ.js +61 -156
  35. package/chunks/chunk.js +20 -0
  36. package/chunks/class-map.js +49 -45
  37. package/chunks/decorate.js +105 -0
  38. package/chunks/directive-helpers.js +5 -7
  39. package/chunks/if-defined.js +5 -5
  40. package/chunks/lit.js +525 -0
  41. package/chunks/live.js +24 -24
  42. package/chunks/nve-alert.component.js +163 -0
  43. package/chunks/nve-carousel-item.component.js +36 -0
  44. package/chunks/nve-carousel.component.js +41 -0
  45. package/chunks/nve-checkbox-group.component.js +114 -0
  46. package/chunks/nve-checkbox.component.js +28 -0
  47. package/chunks/nve-dialog.component.js +39 -0
  48. package/chunks/nve-divider.component.js +23 -0
  49. package/chunks/nve-drawer.component.js +40 -0
  50. package/chunks/nve-dropdown.component.js +83 -0
  51. package/chunks/nve-input.component.js +80 -0
  52. package/chunks/nve-label.component.js +89 -0
  53. package/chunks/nve-menu-item.component.js +35 -0
  54. package/chunks/nve-menu.component.js +17 -0
  55. package/chunks/nve-option.component.js +27 -0
  56. package/chunks/nve-popup.component.js +15 -0
  57. package/chunks/nve-radio-button.component.js +20 -0
  58. package/chunks/nve-radio-group.component.js +78 -0
  59. package/chunks/nve-radio.component.js +18 -0
  60. package/chunks/nve-select.component.js +58 -0
  61. package/chunks/nve-skeleton.component.js +20 -0
  62. package/chunks/nve-spinner.component.js +23 -0
  63. package/chunks/nve-tooltip.component.js +20 -0
  64. package/chunks/nve-warning-level.component.js +57 -0
  65. package/chunks/ref.js +75 -84
  66. package/chunks/shoelace.js +10006 -0
  67. package/chunks/static-html.js +27 -0
  68. package/chunks/unsafe-html.js +24 -20
  69. package/chunks/updateInvalidProperty.js +7 -7
  70. package/chunks/watch.js +20 -20
  71. package/components/nve-accordion/nve-accordion.component.js +24 -30
  72. package/components/nve-accordion-item/nve-accordion-item.component.js +30 -64
  73. package/components/nve-accordion-item/nve-accordion-item.styles.js +5 -5
  74. package/components/nve-alert/nve-alert.component.js +2 -227
  75. package/components/nve-alert/nve-alert.styles.js +45 -27
  76. package/components/nve-badge/nve-badge.component.js +41 -45
  77. package/components/nve-badge/nve-badge.styles.js +33 -31
  78. package/components/nve-button/nve-button.component.d.ts +110 -10
  79. package/components/nve-button/nve-button.component.js +146 -39
  80. package/components/nve-button/nve-button.styles.js +214 -157
  81. package/components/nve-carousel/nve-carousel.component.js +2 -47
  82. package/components/nve-carousel/nve-carousel.styles.js +6 -6
  83. package/components/nve-carousel-item/nve-carousel-item.component.js +2 -40
  84. package/components/nve-carousel-item/nve-carousel-item.styles.js +5 -5
  85. package/components/nve-carousel-thumbnail/nve-carousel-thumbnail.component.js +44 -54
  86. package/components/nve-carousel-thumbnail/nve-carousel-thumbnail.styles.js +5 -5
  87. package/components/nve-checkbox/nve-checkbox.component.js +2 -34
  88. package/components/nve-checkbox/nve-checkbox.styles.js +7 -7
  89. package/components/nve-checkbox-group/nve-checkbox-group.component.js +2 -152
  90. package/components/nve-checkbox-group/nve-checkbox-group.styles.js +5 -5
  91. package/components/nve-combobox/nve-combobox.component.js +222 -440
  92. package/components/nve-combobox/nve-combobox.styles.js +6 -6
  93. package/components/nve-darkmode-switch/nve-darkmode-switch.component.js +32 -38
  94. package/components/nve-dialog/nve-dialog-styles.js +6 -6
  95. package/components/nve-dialog/nve-dialog.component.js +2 -54
  96. package/components/nve-divider/nve-divider.component.js +2 -30
  97. package/components/nve-drawer/nve-drawer.component.js +2 -44
  98. package/components/nve-drawer/nve-drawer.styles.js +6 -6
  99. package/components/nve-dropdown/nve-dropdown.component.js +2 -79
  100. package/components/nve-dropdown/nve-dropdown.styles.js +5 -5
  101. package/components/nve-heading/nve-heading.component.d.ts +29 -0
  102. package/components/nve-heading/nve-heading.component.js +45 -0
  103. package/components/nve-heading/nve-heading.styles.d.ts +2 -0
  104. package/components/nve-heading/nve-heading.styles.js +41 -0
  105. package/components/nve-icon/nve-icon.component.js +145 -164
  106. package/components/nve-icon/nve-icon.styles.js +11 -6
  107. package/components/nve-icon/offline-icons.js +16 -13
  108. package/components/nve-input/nve-input.component.js +2 -100
  109. package/components/nve-input/nve-input.styles.js +5 -5
  110. package/components/nve-label/nve-label.component.js +2 -115
  111. package/components/nve-label/nve-label.styles.js +5 -5
  112. package/components/nve-link-card/nve-link-card.component.d.ts +5 -2
  113. package/components/nve-link-card/nve-link-card.component.js +44 -80
  114. package/components/nve-link-card/nve-link-card.styles.js +71 -66
  115. package/components/nve-menu/nve-menu.component.js +2 -22
  116. package/components/nve-menu/nve-menu.styles.js +5 -5
  117. package/components/nve-menu-item/nve-menu-item.component.js +2 -43
  118. package/components/nve-menu-item/nve-menu-item.styles.js +7 -7
  119. package/components/nve-message-card/nve-message-card.component.js +61 -91
  120. package/components/nve-message-card/nve-message-card.styles.js +24 -27
  121. package/components/nve-navigation-card/nve-navigation-card.component.d.ts +52 -0
  122. package/components/nve-navigation-card/nve-navigation-card.component.js +60 -0
  123. package/components/nve-navigation-card/nve-navigation-card.styles.d.ts +2 -0
  124. package/components/nve-navigation-card/nve-navigation-card.styles.js +112 -0
  125. package/components/nve-option/nve-option.component.js +2 -41
  126. package/components/nve-option/nve-option.styles.js +5 -5
  127. package/components/nve-paragraph/nve-paragraph.component.d.ts +26 -0
  128. package/components/nve-paragraph/nve-paragraph.component.js +26 -0
  129. package/components/nve-paragraph/nve-paragraph.styles.d.ts +2 -0
  130. package/components/nve-paragraph/nve-paragraph.styles.js +105 -0
  131. package/components/nve-popup/nve-popup.component.js +2 -22
  132. package/components/nve-radio/nve-radio.component.js +2 -23
  133. package/components/nve-radio/nve-radio.styles.js +5 -5
  134. package/components/nve-radio-button/nve-radio-button.component.js +2 -25
  135. package/components/nve-radio-button/nve-radio-button.styles.js +5 -5
  136. package/components/nve-radio-group/nve-radio-group.component.js +2 -119
  137. package/components/nve-radio-group/nve-radio-group.styles.js +5 -5
  138. package/components/nve-relative-time/nve-relative-time.component.js +21 -56
  139. package/components/nve-relative-time/nve-relative-time.styles.js +5 -5
  140. package/components/nve-select/nve-select.component.js +2 -80
  141. package/components/nve-select/nve-select.styles.js +6 -6
  142. package/components/nve-skeleton/nve-skeleton.component.js +2 -27
  143. package/components/nve-skeleton/nve-skeleton.styles.js +5 -5
  144. package/components/nve-spinner/nve-spinner.component.js +2 -31
  145. package/components/nve-stepper/nve-step/nve-step.component.js +113 -173
  146. package/components/nve-stepper/nve-step/nve-step.styles.js +12 -12
  147. package/components/nve-stepper/nve-stepper-mobile.component.js +37 -49
  148. package/components/nve-stepper/nve-stepper-mobile.styles.js +7 -7
  149. package/components/nve-stepper/nve-stepper.component.js +94 -139
  150. package/components/nve-stepper/nve-stepper.styles.js +5 -5
  151. package/components/nve-switch/nve-switch.component.js +75 -107
  152. package/components/nve-switch/nve-switch.styles.js +7 -7
  153. package/components/nve-tab/nve-tab.component.js +30 -42
  154. package/components/nve-tab/nve-tab.styles.js +7 -7
  155. package/components/nve-tab-group/nve-tab-group.component.js +180 -260
  156. package/components/nve-tab-group/nve-tab-group.styles.js +5 -5
  157. package/components/nve-tab-panel/nve-tab-panel.component.js +21 -31
  158. package/components/nve-tab-panel/nve-tab-panel.styles.js +5 -5
  159. package/components/nve-tag/nve-tag.component.d.ts +3 -3
  160. package/components/nve-tag/nve-tag.component.js +71 -72
  161. package/components/nve-tag/nve-tag.styles.js +23 -22
  162. package/components/nve-textarea/nve-textarea.component.d.ts +3 -1
  163. package/components/nve-textarea/nve-textarea.component.js +112 -173
  164. package/components/nve-textarea/nve-textarea.styles.js +10 -5
  165. package/components/nve-tooltip/nve-tooltip.component.js +2 -30
  166. package/components/nve-tooltip/nve-tooltip.styles.js +5 -5
  167. package/components/nve-warning-level/nve-warning-level.component.js +2 -78
  168. package/components/nve-warning-level/nve-warning-level.styles.js +7 -7
  169. package/css/global.css +13 -55
  170. package/css/nve.css +1048 -393
  171. package/css/nve_dark.css +406 -305
  172. package/css/rme.css +1050 -395
  173. package/css/rme_dark.css +408 -307
  174. package/css/shoelace-styles.css +539 -0
  175. package/css/varsom.css +1046 -391
  176. package/css/varsom_dark.css +404 -303
  177. package/custom-elements.json +2905 -12389
  178. package/fonts/LICENSE.txt +37 -0
  179. package/fonts/SourceSans3-VariableFont_wght.woff2 +0 -0
  180. package/interfaces/NveComponent.interface.js +0 -1
  181. package/nve-designsystem.d.ts +5 -0
  182. package/nve-designsystem.js +46 -86
  183. package/package.json +26 -8
  184. package/registerIcons/systemLibraryCustomization.js +23 -91
  185. package/vite-env.d.js +0 -1
  186. package/chunks/chunk.3RPBFEDE.js +0 -162
  187. package/chunks/chunk.JCXLDPQF.js +0 -225
  188. package/chunks/chunk.JQBT7BOV.js +0 -8446
  189. package/chunks/chunk.MAQXLKQ7.js +0 -598
  190. package/chunks/lit-element.js +0 -508
  191. package/chunks/property.js +0 -37
  192. package/chunks/query.js +0 -13
  193. package/chunks/state.js +0 -7
  194. package/chunks/static.js +0 -26
  195. package/nve-designsystem.css +0 -1
  196. package/vscode.css-custom-data.json +0 -621
  197. package/vscode.html-custom-data.json +0 -2354
@@ -1,14 +1,14 @@
1
- import { i as f, x as y } from "./lit-element.js";
2
- import { S as g } from "./chunk.5JY5FUCG.js";
3
- import { s as m, g as l } from "./chunk.K7JGTRV7.js";
4
- import { p as h, s as d, a as c, w as u } from "./chunk.B4BZKR24.js";
5
- import { L as v } from "./chunk.6CTB5ZDJ.js";
6
- import { w as p } from "./chunk.GMYPQTFK.js";
7
- import { c as w, d as o, S as b } from "./chunk.4TUIT776.js";
8
- import { e as k } from "./class-map.js";
9
- import { n as i } from "./property.js";
10
- import { e as n } from "./query.js";
11
- var _ = f`
1
+ import { a as e, u as t } from "./lit.js";
2
+ import { o as n, r } from "./decorate.js";
3
+ import { n as i, r as a, t as o } from "./chunk.4TUIT776.js";
4
+ import { t as s } from "./chunk.GMYPQTFK.js";
5
+ import { t as c } from "./class-map.js";
6
+ import { t as l } from "./chunk.6CTB5ZDJ.js";
7
+ import { n as u, t as d } from "./chunk.K7JGTRV7.js";
8
+ import { n as f, o as p, r as m, t as h } from "./chunk.B4BZKR24.js";
9
+ import { t as g } from "./chunk.5JY5FUCG.js";
10
+ //#region .pnpm/@shoelace-style+shoelace@2.20.1_@floating-ui+utils@0.2.11_@types+react@19.2.15/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.FW7UWQXB.js
11
+ var _ = t`
12
12
  :host {
13
13
  --max-width: 20rem;
14
14
  --hide-delay: 0ms;
@@ -60,88 +60,77 @@ var _ = f`
60
60
  user-select: none;
61
61
  -webkit-user-select: none;
62
62
  }
63
- `, t = class extends b {
64
- constructor() {
65
- super(), this.localize = new v(this), this.content = "", this.placement = "top", this.disabled = !1, this.distance = 8, this.open = !1, this.skidding = 0, this.trigger = "hover focus", this.hoist = !1, this.handleBlur = () => {
66
- this.hasTrigger("focus") && this.hide();
67
- }, this.handleClick = () => {
68
- this.hasTrigger("click") && (this.open ? this.hide() : this.show());
69
- }, this.handleFocus = () => {
70
- this.hasTrigger("focus") && this.show();
71
- }, this.handleDocumentKeyDown = (e) => {
72
- e.key === "Escape" && (e.stopPropagation(), this.hide());
73
- }, this.handleMouseOver = () => {
74
- if (this.hasTrigger("hover")) {
75
- const e = h(getComputedStyle(this).getPropertyValue("--show-delay"));
76
- clearTimeout(this.hoverTimeout), this.hoverTimeout = window.setTimeout(() => this.show(), e);
77
- }
78
- }, this.handleMouseOut = () => {
79
- if (this.hasTrigger("hover")) {
80
- const e = h(getComputedStyle(this).getPropertyValue("--hide-delay"));
81
- clearTimeout(this.hoverTimeout), this.hoverTimeout = window.setTimeout(() => this.hide(), e);
82
- }
83
- }, this.addEventListener("blur", this.handleBlur, !0), this.addEventListener("focus", this.handleFocus, !0), this.addEventListener("click", this.handleClick), this.addEventListener("mouseover", this.handleMouseOver), this.addEventListener("mouseout", this.handleMouseOut);
84
- }
85
- disconnectedCallback() {
86
- var e;
87
- super.disconnectedCallback(), (e = this.closeWatcher) == null || e.destroy(), document.removeEventListener("keydown", this.handleDocumentKeyDown);
88
- }
89
- firstUpdated() {
90
- this.body.hidden = !this.open, this.open && (this.popup.active = !0, this.popup.reposition());
91
- }
92
- hasTrigger(e) {
93
- return this.trigger.split(" ").includes(e);
94
- }
95
- async handleOpenChange() {
96
- var e, s;
97
- if (this.open) {
98
- if (this.disabled)
99
- return;
100
- this.emit("sl-show"), "CloseWatcher" in window ? ((e = this.closeWatcher) == null || e.destroy(), this.closeWatcher = new CloseWatcher(), this.closeWatcher.onclose = () => {
101
- this.hide();
102
- }) : document.addEventListener("keydown", this.handleDocumentKeyDown), await d(this.body), this.body.hidden = !1, this.popup.active = !0;
103
- const { keyframes: a, options: r } = l(this, "tooltip.show", { dir: this.localize.dir() });
104
- await c(this.popup.popup, a, r), this.popup.reposition(), this.emit("sl-after-show");
105
- } else {
106
- this.emit("sl-hide"), (s = this.closeWatcher) == null || s.destroy(), document.removeEventListener("keydown", this.handleDocumentKeyDown), await d(this.body);
107
- const { keyframes: a, options: r } = l(this, "tooltip.hide", { dir: this.localize.dir() });
108
- await c(this.popup.popup, a, r), this.popup.active = !1, this.body.hidden = !0, this.emit("sl-after-hide");
109
- }
110
- }
111
- async handleOptionsChange() {
112
- this.hasUpdated && (await this.updateComplete, this.popup.reposition());
113
- }
114
- handleDisabledChange() {
115
- this.disabled && this.open && this.hide();
116
- }
117
- /** Shows the tooltip. */
118
- async show() {
119
- if (!this.open)
120
- return this.open = !0, u(this, "sl-after-show");
121
- }
122
- /** Hides the tooltip */
123
- async hide() {
124
- if (this.open)
125
- return this.open = !1, u(this, "sl-after-hide");
126
- }
127
- //
128
- // NOTE: Tooltip is a bit unique in that we're using aria-live instead of aria-labelledby to trick screen readers into
129
- // announcing the content. It works really well, but it violates an accessibility rule. We're also adding the
130
- // aria-describedby attribute to a slot, which is required by <sl-popup> to correctly locate the first assigned
131
- // element, otherwise positioning is incorrect.
132
- //
133
- render() {
134
- return y`
63
+ `, v = class extends o {
64
+ constructor() {
65
+ super(), this.localize = new l(this), this.content = "", this.placement = "top", this.disabled = !1, this.distance = 8, this.open = !1, this.skidding = 0, this.trigger = "hover focus", this.hoist = !1, this.handleBlur = () => {
66
+ this.hasTrigger("focus") && this.hide();
67
+ }, this.handleClick = () => {
68
+ this.hasTrigger("click") && (this.open ? this.hide() : this.show());
69
+ }, this.handleFocus = () => {
70
+ this.hasTrigger("focus") && this.show();
71
+ }, this.handleDocumentKeyDown = (e) => {
72
+ e.key === "Escape" && (e.stopPropagation(), this.hide());
73
+ }, this.handleMouseOver = () => {
74
+ if (this.hasTrigger("hover")) {
75
+ let e = m(getComputedStyle(this).getPropertyValue("--show-delay"));
76
+ clearTimeout(this.hoverTimeout), this.hoverTimeout = window.setTimeout(() => this.show(), e);
77
+ }
78
+ }, this.handleMouseOut = () => {
79
+ if (this.hasTrigger("hover")) {
80
+ let e = m(getComputedStyle(this).getPropertyValue("--hide-delay"));
81
+ clearTimeout(this.hoverTimeout), this.hoverTimeout = window.setTimeout(() => this.hide(), e);
82
+ }
83
+ }, this.addEventListener("blur", this.handleBlur, !0), this.addEventListener("focus", this.handleFocus, !0), this.addEventListener("click", this.handleClick), this.addEventListener("mouseover", this.handleMouseOver), this.addEventListener("mouseout", this.handleMouseOut);
84
+ }
85
+ disconnectedCallback() {
86
+ var e;
87
+ super.disconnectedCallback(), (e = this.closeWatcher) == null || e.destroy(), document.removeEventListener("keydown", this.handleDocumentKeyDown);
88
+ }
89
+ firstUpdated() {
90
+ this.body.hidden = !this.open, this.open && (this.popup.active = !0, this.popup.reposition());
91
+ }
92
+ hasTrigger(e) {
93
+ return this.trigger.split(" ").includes(e);
94
+ }
95
+ async handleOpenChange() {
96
+ var e, t;
97
+ if (this.open) {
98
+ if (this.disabled) return;
99
+ this.emit("sl-show"), "CloseWatcher" in window ? ((e = this.closeWatcher) == null || e.destroy(), this.closeWatcher = new CloseWatcher(), this.closeWatcher.onclose = () => {
100
+ this.hide();
101
+ }) : document.addEventListener("keydown", this.handleDocumentKeyDown), await p(this.body), this.body.hidden = !1, this.popup.active = !0;
102
+ let { keyframes: t, options: n } = d(this, "tooltip.show", { dir: this.localize.dir() });
103
+ await f(this.popup.popup, t, n), this.popup.reposition(), this.emit("sl-after-show");
104
+ } else {
105
+ this.emit("sl-hide"), (t = this.closeWatcher) == null || t.destroy(), document.removeEventListener("keydown", this.handleDocumentKeyDown), await p(this.body);
106
+ let { keyframes: e, options: n } = d(this, "tooltip.hide", { dir: this.localize.dir() });
107
+ await f(this.popup.popup, e, n), this.popup.active = !1, this.body.hidden = !0, this.emit("sl-after-hide");
108
+ }
109
+ }
110
+ async handleOptionsChange() {
111
+ this.hasUpdated && (await this.updateComplete, this.popup.reposition());
112
+ }
113
+ handleDisabledChange() {
114
+ this.disabled && this.open && this.hide();
115
+ }
116
+ async show() {
117
+ if (!this.open) return this.open = !0, h(this, "sl-after-show");
118
+ }
119
+ async hide() {
120
+ if (this.open) return this.open = !1, h(this, "sl-after-hide");
121
+ }
122
+ render() {
123
+ return e`
135
124
  <sl-popup
136
125
  part="base"
137
126
  exportparts="
138
127
  popup:base__popup,
139
128
  arrow:base__arrow
140
129
  "
141
- class=${k({
142
- tooltip: !0,
143
- "tooltip--open": this.open
144
- })}
130
+ class=${c({
131
+ tooltip: !0,
132
+ "tooltip--open": this.open
133
+ })}
145
134
  placement=${this.placement}
146
135
  distance=${this.distance}
147
136
  skidding=${this.skidding}
@@ -160,69 +149,48 @@ var _ = f`
160
149
  </div>
161
150
  </sl-popup>
162
151
  `;
163
- }
152
+ }
164
153
  };
165
- t.styles = [w, _];
166
- t.dependencies = { "sl-popup": g };
167
- o([
168
- n("slot:not([name])")
169
- ], t.prototype, "defaultSlot", 2);
170
- o([
171
- n(".tooltip__body")
172
- ], t.prototype, "body", 2);
173
- o([
174
- n("sl-popup")
175
- ], t.prototype, "popup", 2);
176
- o([
177
- i()
178
- ], t.prototype, "content", 2);
179
- o([
180
- i()
181
- ], t.prototype, "placement", 2);
182
- o([
183
- i({ type: Boolean, reflect: !0 })
184
- ], t.prototype, "disabled", 2);
185
- o([
186
- i({ type: Number })
187
- ], t.prototype, "distance", 2);
188
- o([
189
- i({ type: Boolean, reflect: !0 })
190
- ], t.prototype, "open", 2);
191
- o([
192
- i({ type: Number })
193
- ], t.prototype, "skidding", 2);
194
- o([
195
- i()
196
- ], t.prototype, "trigger", 2);
197
- o([
198
- i({ type: Boolean })
199
- ], t.prototype, "hoist", 2);
200
- o([
201
- p("open", { waitUntilFirstUpdate: !0 })
202
- ], t.prototype, "handleOpenChange", 1);
203
- o([
204
- p(["content", "distance", "hoist", "placement", "skidding"])
205
- ], t.prototype, "handleOptionsChange", 1);
206
- o([
207
- p("disabled")
208
- ], t.prototype, "handleDisabledChange", 1);
209
- m("tooltip.show", {
210
- keyframes: [
211
- { opacity: 0, scale: 0.8 },
212
- { opacity: 1, scale: 1 }
213
- ],
214
- options: { duration: 150, easing: "ease" }
215
- });
216
- m("tooltip.hide", {
217
- keyframes: [
218
- { opacity: 1, scale: 1 },
219
- { opacity: 0, scale: 0.8 }
220
- ],
221
- options: { duration: 150, easing: "ease" }
154
+ v.styles = [i, _], v.dependencies = { "sl-popup": g }, a([r("slot:not([name])")], v.prototype, "defaultSlot", 2), a([r(".tooltip__body")], v.prototype, "body", 2), a([r("sl-popup")], v.prototype, "popup", 2), a([n()], v.prototype, "content", 2), a([n()], v.prototype, "placement", 2), a([n({
155
+ type: Boolean,
156
+ reflect: !0
157
+ })], v.prototype, "disabled", 2), a([n({ type: Number })], v.prototype, "distance", 2), a([n({
158
+ type: Boolean,
159
+ reflect: !0
160
+ })], v.prototype, "open", 2), a([n({ type: Number })], v.prototype, "skidding", 2), a([n()], v.prototype, "trigger", 2), a([n({ type: Boolean })], v.prototype, "hoist", 2), a([s("open", { waitUntilFirstUpdate: !0 })], v.prototype, "handleOpenChange", 1), a([s([
161
+ "content",
162
+ "distance",
163
+ "hoist",
164
+ "placement",
165
+ "skidding"
166
+ ])], v.prototype, "handleOptionsChange", 1), a([s("disabled")], v.prototype, "handleDisabledChange", 1), u("tooltip.show", {
167
+ keyframes: [{
168
+ opacity: 0,
169
+ scale: .8
170
+ }, {
171
+ opacity: 1,
172
+ scale: 1
173
+ }],
174
+ options: {
175
+ duration: 150,
176
+ easing: "ease"
177
+ }
178
+ }), u("tooltip.hide", {
179
+ keyframes: [{
180
+ opacity: 1,
181
+ scale: 1
182
+ }, {
183
+ opacity: 0,
184
+ scale: .8
185
+ }],
186
+ options: {
187
+ duration: 150,
188
+ easing: "ease"
189
+ }
222
190
  });
223
- var W = t;
224
- t.define("sl-tooltip");
225
- export {
226
- t as S,
227
- W as t
228
- };
191
+ //#endregion
192
+ //#region .pnpm/@shoelace-style+shoelace@2.20.1_@floating-ui+utils@0.2.11_@types+react@19.2.15/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.URTPIBTY.js
193
+ var y = v;
194
+ v.define("sl-tooltip");
195
+ //#endregion
196
+ export { v as n, y as t };
@@ -1,75 +1,72 @@
1
- import { b } from "./chunk.4TUIT776.js";
2
- function* c(t = document.activeElement) {
3
- t != null && (yield t, "shadowRoot" in t && t.shadowRoot && t.shadowRoot.mode !== "closed" && (yield* b(c(t.shadowRoot.activeElement))));
1
+ import { o as e } from "./chunk.4TUIT776.js";
2
+ //#region .pnpm/@shoelace-style+shoelace@2.20.1_@floating-ui+utils@0.2.11_@types+react@19.2.15/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.VESXC477.js
3
+ function* t(n = document.activeElement) {
4
+ n != null && (yield n, "shadowRoot" in n && n.shadowRoot && n.shadowRoot.mode !== "closed" && (yield* e(t(n.shadowRoot.activeElement))));
4
5
  }
5
- function w() {
6
- return [...c()].pop();
6
+ function n() {
7
+ return [...t()].pop();
7
8
  }
8
- var u = /* @__PURE__ */ new WeakMap();
9
- function d(t) {
10
- let e = u.get(t);
11
- return e || (e = window.getComputedStyle(t, null), u.set(t, e)), e;
9
+ var r = /* @__PURE__ */ new WeakMap();
10
+ function i(e) {
11
+ let t = r.get(e);
12
+ return t || (t = window.getComputedStyle(e, null), r.set(e, t)), t;
12
13
  }
13
- function f(t) {
14
- if (typeof t.checkVisibility == "function")
15
- return t.checkVisibility({ checkOpacity: !1, checkVisibilityCSS: !0 });
16
- const e = d(t);
17
- return e.visibility !== "hidden" && e.display !== "none";
14
+ function a(e) {
15
+ if (typeof e.checkVisibility == "function") return e.checkVisibility({
16
+ checkOpacity: !1,
17
+ checkVisibilityCSS: !0
18
+ });
19
+ let t = i(e);
20
+ return t.visibility !== "hidden" && t.display !== "none";
18
21
  }
19
- function l(t) {
20
- const e = d(t), { overflowY: n, overflowX: o } = e;
21
- return n === "scroll" || o === "scroll" ? !0 : n !== "auto" || o !== "auto" ? !1 : t.scrollHeight > t.clientHeight && n === "auto" || t.scrollWidth > t.clientWidth && o === "auto";
22
+ function o(e) {
23
+ let { overflowY: t, overflowX: n } = i(e);
24
+ return t === "scroll" || n === "scroll" ? !0 : t !== "auto" || n !== "auto" ? !1 : e.scrollHeight > e.clientHeight && t === "auto" || e.scrollWidth > e.clientWidth && n === "auto";
22
25
  }
23
- function h(t) {
24
- const e = t.tagName.toLowerCase(), n = Number(t.getAttribute("tabindex"));
25
- if (t.hasAttribute("tabindex") && (isNaN(n) || n <= -1) || t.hasAttribute("disabled") || t.closest("[inert]"))
26
- return !1;
27
- if (e === "input" && t.getAttribute("type") === "radio") {
28
- const r = t.getRootNode(), a = `input[type='radio'][name="${t.getAttribute("name")}"]`, s = r.querySelector(`${a}:checked`);
29
- return s ? s === t : r.querySelector(a) === t;
30
- }
31
- return f(t) ? (e === "audio" || e === "video") && t.hasAttribute("controls") || t.hasAttribute("tabindex") || t.hasAttribute("contenteditable") && t.getAttribute("contenteditable") !== "false" || [
32
- "button",
33
- "input",
34
- "select",
35
- "textarea",
36
- "a",
37
- "audio",
38
- "video",
39
- "summary",
40
- "iframe"
41
- ].includes(e) ? !0 : l(t) : !1;
26
+ function s(e) {
27
+ let t = e.tagName.toLowerCase(), n = Number(e.getAttribute("tabindex"));
28
+ if (e.hasAttribute("tabindex") && (isNaN(n) || n <= -1) || e.hasAttribute("disabled") || e.closest("[inert]")) return !1;
29
+ if (t === "input" && e.getAttribute("type") === "radio") {
30
+ let t = e.getRootNode(), n = `input[type='radio'][name="${e.getAttribute("name")}"]`, r = t.querySelector(`${n}:checked`);
31
+ return r ? r === e : t.querySelector(n) === e;
32
+ }
33
+ return a(e) ? (t === "audio" || t === "video") && e.hasAttribute("controls") || e.hasAttribute("tabindex") || e.hasAttribute("contenteditable") && e.getAttribute("contenteditable") !== "false" || [
34
+ "button",
35
+ "input",
36
+ "select",
37
+ "textarea",
38
+ "a",
39
+ "audio",
40
+ "video",
41
+ "summary",
42
+ "iframe"
43
+ ].includes(t) ? !0 : o(e) : !1;
42
44
  }
43
- function v(t) {
44
- var e, n;
45
- const o = m(t), i = (e = o[0]) != null ? e : null, r = (n = o[o.length - 1]) != null ? n : null;
46
- return { start: i, end: r };
45
+ function c(e) {
46
+ let t = u(e);
47
+ return {
48
+ start: t[0] ?? null,
49
+ end: t[t.length - 1] ?? null
50
+ };
47
51
  }
48
- function g(t, e) {
49
- var n;
50
- return ((n = t.getRootNode({ composed: !0 })) == null ? void 0 : n.host) !== e;
52
+ function l(e, t) {
53
+ return e.getRootNode({ composed: !0 })?.host !== t;
51
54
  }
52
- function m(t) {
53
- const e = /* @__PURE__ */ new WeakMap(), n = [];
54
- function o(i) {
55
- if (i instanceof Element) {
56
- if (i.hasAttribute("inert") || i.closest("[inert]") || e.has(i))
57
- return;
58
- e.set(i, !0), !n.includes(i) && h(i) && n.push(i), i instanceof HTMLSlotElement && g(i, t) && i.assignedElements({ flatten: !0 }).forEach((r) => {
59
- o(r);
60
- }), i.shadowRoot !== null && i.shadowRoot.mode === "open" && o(i.shadowRoot);
61
- }
62
- for (const r of i.children)
63
- o(r);
64
- }
65
- return o(t), n.sort((i, r) => {
66
- const a = Number(i.getAttribute("tabindex")) || 0;
67
- return (Number(r.getAttribute("tabindex")) || 0) - a;
68
- });
55
+ function u(e) {
56
+ let t = /* @__PURE__ */ new WeakMap(), n = [];
57
+ function r(i) {
58
+ if (i instanceof Element) {
59
+ if (i.hasAttribute("inert") || i.closest("[inert]") || t.has(i)) return;
60
+ t.set(i, !0), !n.includes(i) && s(i) && n.push(i), i instanceof HTMLSlotElement && l(i, e) && i.assignedElements({ flatten: !0 }).forEach((e) => {
61
+ r(e);
62
+ }), i.shadowRoot !== null && i.shadowRoot.mode === "open" && r(i.shadowRoot);
63
+ }
64
+ for (let e of i.children) r(e);
65
+ }
66
+ return r(e), n.sort((e, t) => {
67
+ let n = Number(e.getAttribute("tabindex")) || 0;
68
+ return (Number(t.getAttribute("tabindex")) || 0) - n;
69
+ });
69
70
  }
70
- export {
71
- m as a,
72
- c as b,
73
- v as c,
74
- w as g
75
- };
71
+ //#endregion
72
+ export { u as i, n, c as r, t };