@stenajs-webui/core 20.6.5 → 20.6.7

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.
package/dist/index.es.js CHANGED
@@ -1,37 +1,35 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("._separatorLine_nzfcz_1{display:flex;border:0;margin:0;flex:none}._visuallyHidden_1gevf_1{border:0;clip:rect(0 0 0 0);height:1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}._text_1iisw_1{--swui-text-color: var(--swui-text-primary-color);--swui-text-color-caption: var(--lhds-color-ui-600);--swui-text-color-overline: var(--lhds-color-ui-600);--swui-text-font-family: var(--swui-font-primary);--swui-text-font-weight: var(--swui-font-weight-text);--current-color: var(--swui-text-color);--current-font-size: var(--swui-font-size-medium);--current-line-height: var(--swui-line-height-medium);--current-font-weight: var(--swui-text-font-weight);--current-letter-spacing: var(--swui-text-letter-spacing);font-size:var(--current-font-size);line-height:var(--current-line-height);color:var(--current-color);letter-spacing:var(--current-letter-spacing);font-family:var(--swui-text-font-family);font-weight:var(--current-font-weight)}._text_1iisw_1._bold_1iisw_27{--current-font-weight: var(--swui-font-weight-text-bold)}._text_1iisw_1._caption_1iisw_31{--current-font-size: var(--swui-font-size-small);--current-line-height: var(--swui-line-height-small);--current-color: var(--swui-text-color-caption);--current-letter-spacing: 0;font-style:italic}._text_1iisw_1._overline_1iisw_39{--current-font-size: var(--swui-font-size-smaller);--current-line-height: var(--swui-line-height-smaller);--current-color: var(--swui-text-color-overline);--current-font-weight: var(--swui-font-weight-text-bold);--current-letter-spacing: .1rem;text-transform:uppercase}._text_1iisw_1._large_1iisw_48{--current-font-size: var(--swui-font-size-large);--current-line-height: var(--swui-line-height-large)}._text_1iisw_1._medium_1iisw_53{--current-font-size: var(--swui-font-size-medium);--current-line-height: var(--swui-line-height-medium)}._text_1iisw_1._small_1iisw_58{--current-font-size: var(--swui-font-size-small);--current-line-height: var(--swui-line-height-small)}._text_1iisw_1._smaller_1iisw_63{--current-font-size: var(--swui-font-size-smaller);--current-line-height: var(--swui-line-height-smaller)}._heading_1cnsg_1{font-size:2rem;color:var(--swui-text-primary-color);letter-spacing:0;margin:0;line-height:var(--swui-line-height);font-family:var(--swui-font-primary);font-weight:var(--swui-font-weight-text-bold)}._heading_1cnsg_1._h1_1cnsg_10{font-size:2.8rem}._heading_1cnsg_1._h2_1cnsg_14{font-size:2.4rem}._heading_1cnsg_1._h3_1cnsg_18{font-size:2rem}._heading_1cnsg_1._h4_1cnsg_22{font-size:1.8rem}._heading_1cnsg_1._h5_1cnsg_26{font-size:1.6rem}._heading_1cnsg_1._h6_1cnsg_30{font-size:1.4rem}")),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}})();
2
- import { cssColor as R } from "@stenajs-webui/theme";
3
- import { jsx as i, Fragment as I } from "react/jsx-runtime";
4
- import { forwardRef as h, useState as g, useCallback as p, useLayoutEffect as H, useRef as v, useEffect as l, useMemo as z } from "react";
5
- import y from "@emotion/styled";
6
- import F from "@emotion/is-prop-valid";
7
- import { system as N, background as P, border as V, borderRight as A, borderLeft as G, borderTop as j, borderBottom as U, borderColor as q, borderRadius as W, borderStyle as B, borderWidth as K, boxShadow as J, flexbox as Q, overflow as X, position as Y, layout as Z, zIndex as ee, left as te, right as ne, top as re, bottom as se } from "styled-system";
8
- import oe from "lodash/pickBy";
9
- import O from "classnames";
10
- import * as ce from "react-dom";
11
- import ue from "lodash/debounce";
12
- const ie = "_separatorLine_nzfcz_1", ae = {
13
- separatorLine: ie
14
- }, et = h(
2
+ import { cssColor as A } from "@stenajs-webui/theme";
3
+ import { jsx as a, Fragment as S } from "react/jsx-runtime";
4
+ import { forwardRef as h, useState as f, useCallback as m, useLayoutEffect as P, useRef as v, useEffect as d, useMemo as D } from "react";
5
+ import _ from "@emotion/styled";
6
+ import { system as H, background as z, border as F, borderRight as N, borderLeft as U, borderTop as V, borderBottom as q, borderColor as j, borderRadius as B, borderStyle as W, borderWidth as X, boxShadow as G, flexbox as Y, overflow as K, position as Z, layout as J, zIndex as Q, left as ee, right as te, top as re, bottom as ue } from "styled-system";
7
+ import { memoize as ne, pickBy as oe, debounce as se } from "lodash-es";
8
+ import R from "classnames";
9
+ import * as ie from "react-dom";
10
+ const ae = "_separatorLine_nzfcz_1", ce = {
11
+ separatorLine: ae
12
+ }, rt = h(
15
13
  ({
16
- color: e = R("--lhds-color-ui-300"),
14
+ color: e = A("--lhds-color-ui-300"),
17
15
  size: t = "100%",
18
- width: n = "1px",
19
- vertical: r = !1
20
- }, s) => /* @__PURE__ */ i(
16
+ width: r = "1px",
17
+ vertical: u = !1
18
+ }, n) => /* @__PURE__ */ a(
21
19
  "hr",
22
20
  {
23
- className: ae.separatorLine,
21
+ className: ce.separatorLine,
24
22
  "aria-hidden": !0,
25
23
  color: e,
26
24
  style: {
27
25
  backgroundColor: e,
28
- height: r ? t || "100%" : n || "1px",
29
- width: r ? n || "1px" : t || "100%"
26
+ height: u ? t || "100%" : r || "1px",
27
+ width: u ? r || "1px" : t || "100%"
30
28
  },
31
- ref: s
29
+ ref: n
32
30
  }
33
31
  )
34
- ), de = y.button`
32
+ ), le = _.button`
35
33
  display: inline-block;
36
34
  user-select: none;
37
35
  border: 0;
@@ -54,51 +52,543 @@ const ie = "_separatorLine_nzfcz_1", ae = {
54
52
  ${({ width: e }) => e ? `width: ${e};` : ""}
55
53
  ${({ height: e }) => e ? `height: ${e};` : ""}
56
54
  ${({ borderRadius: e }) => e ? `border-radius: ${e};` : ""}
57
- `, tt = h(
55
+ `, ut = h(
58
56
  ({
59
57
  disableFocusHighlight: e,
60
58
  onClick: t,
61
- onDblClick: n,
62
- tooltip: r,
63
- disableOpacityOnClick: s,
59
+ onDblClick: r,
60
+ tooltip: u,
61
+ disableOpacityOnClick: n,
64
62
  disablePointer: o,
65
- opacityOnHover: c,
66
- disabled: a,
67
- children: u,
68
- background: d = "transparent",
69
- hoverBackground: m,
70
- focusBackground: f,
71
- type: D = "button",
72
- ...L
73
- }, k) => /* @__PURE__ */ i(
74
- de,
63
+ opacityOnHover: s,
64
+ disabled: c,
65
+ children: i,
66
+ background: l = "transparent",
67
+ hoverBackground: p,
68
+ focusBackground: g,
69
+ type: M = "button",
70
+ ...O
71
+ }, L) => /* @__PURE__ */ a(
72
+ le,
75
73
  {
76
- opacityOnHover: c,
77
- title: r,
78
- disabled: a,
79
- disableOpacityOnClick: s,
74
+ opacityOnHover: s,
75
+ title: u,
76
+ disabled: c,
77
+ disableOpacityOnClick: n,
80
78
  onClick: t,
81
- onDoubleClick: n,
79
+ onDoubleClick: r,
82
80
  disableFocusHighlight: e,
83
- pointer: !!(t || n) && !o,
84
- ref: k,
85
- background: d,
86
- hoverBackground: m,
87
- focusBackground: f,
88
- type: D,
89
- ...L,
90
- children: u
81
+ pointer: !!(t || r) && !o,
82
+ ref: L,
83
+ background: l,
84
+ hoverBackground: p,
85
+ focusBackground: g,
86
+ type: M,
87
+ ...O,
88
+ children: i
91
89
  }
92
90
  )
93
- ), $ = (e) => e == null ? 0 : typeof e == "boolean" ? e ? 1 : 0 : e, le = (e) => {
91
+ ), x = (e) => e == null ? 0 : typeof e == "boolean" ? e ? 1 : 0 : e, de = (e) => {
94
92
  if (e !== 0)
95
93
  return `calc(${e} * var(--swui-metrics-space))`;
96
- }, S = (e) => le($(e)), me = {
94
+ }, E = (e) => de(x(e)), pe = {
95
+ // react props
96
+ // https://github.com/facebook/react/blob/5495a7f24aef85ba6937truetrue1ce962673ca9f5fde6/src/renderers/dom/shared/hooks/ReactDOMUnknownPropertyHook.js
97
+ children: !0,
98
+ dangerouslySetInnerHTML: !0,
99
+ key: !0,
100
+ ref: !0,
101
+ autoFocus: !0,
102
+ defaultValue: !0,
103
+ defaultChecked: !0,
104
+ innerHTML: !0,
105
+ suppressContentEditableWarning: !0,
106
+ suppressHydrationWarning: !0,
107
+ // deprecated react prop
108
+ valueLink: !0,
109
+ // https://github.com/facebook/react/blob/d7157651f7b72d9888ctrue123e191f9b88cd8f41e9/src/renderers/dom/shared/HTMLDOMPropertyConfig.js
110
+ /**
111
+ * Standard Properties
112
+ */
113
+ abbr: !0,
114
+ accept: !0,
115
+ acceptCharset: !0,
116
+ accessKey: !0,
117
+ action: !0,
118
+ allow: !0,
119
+ allowUserMedia: !0,
120
+ allowPaymentRequest: !0,
121
+ allowFullScreen: !0,
122
+ allowTransparency: !0,
123
+ alt: !0,
124
+ // specifies target context for links with `preload` type
125
+ // as: true,
126
+ async: !0,
127
+ autoComplete: !0,
128
+ // autoFocus is polyfilled/normalized by AutoFocusUtils
129
+ // autoFocus: true,
130
+ autoPlay: !0,
131
+ capture: !0,
132
+ cellPadding: !0,
133
+ cellSpacing: !0,
134
+ // keygen prop
135
+ challenge: !0,
136
+ charSet: !0,
137
+ checked: !0,
138
+ cite: !0,
139
+ classID: !0,
140
+ className: !0,
141
+ cols: !0,
142
+ colSpan: !0,
143
+ content: !0,
144
+ contentEditable: !0,
145
+ contextMenu: !0,
146
+ controls: !0,
147
+ controlsList: !0,
148
+ coords: !0,
149
+ crossOrigin: !0,
150
+ data: !0,
151
+ // For `<object />` acts as `src`.
152
+ dateTime: !0,
153
+ decoding: !0,
154
+ default: !0,
155
+ defer: !0,
156
+ dir: !0,
157
+ disabled: !0,
158
+ disablePictureInPicture: !0,
159
+ disableRemotePlayback: !0,
160
+ download: !0,
161
+ draggable: !0,
162
+ encType: !0,
163
+ enterKeyHint: !0,
164
+ form: !0,
165
+ formAction: !0,
166
+ formEncType: !0,
167
+ formMethod: !0,
168
+ formNoValidate: !0,
169
+ formTarget: !0,
170
+ frameBorder: !0,
171
+ headers: !0,
172
+ height: !0,
173
+ hidden: !0,
174
+ high: !0,
175
+ href: !0,
176
+ hrefLang: !0,
177
+ htmlFor: !0,
178
+ httpEquiv: !0,
179
+ id: !0,
180
+ inputMode: !0,
181
+ integrity: !0,
182
+ is: !0,
183
+ keyParams: !0,
184
+ keyType: !0,
185
+ kind: !0,
186
+ label: !0,
187
+ lang: !0,
188
+ list: !0,
189
+ loading: !0,
190
+ loop: !0,
191
+ low: !0,
192
+ // manifest: true,
193
+ marginHeight: !0,
194
+ marginWidth: !0,
195
+ max: !0,
196
+ maxLength: !0,
197
+ media: !0,
198
+ mediaGroup: !0,
199
+ method: !0,
200
+ min: !0,
201
+ minLength: !0,
202
+ // Caution; `option.selected` is not updated if `select.multiple` is
203
+ // disabled with `removeAttribute`.
204
+ multiple: !0,
205
+ muted: !0,
206
+ name: !0,
207
+ nonce: !0,
208
+ noValidate: !0,
209
+ open: !0,
210
+ optimum: !0,
211
+ pattern: !0,
212
+ placeholder: !0,
213
+ playsInline: !0,
214
+ poster: !0,
215
+ preload: !0,
216
+ profile: !0,
217
+ radioGroup: !0,
218
+ readOnly: !0,
219
+ referrerPolicy: !0,
220
+ rel: !0,
221
+ required: !0,
222
+ reversed: !0,
223
+ role: !0,
224
+ rows: !0,
225
+ rowSpan: !0,
226
+ sandbox: !0,
227
+ scope: !0,
228
+ scoped: !0,
229
+ scrolling: !0,
230
+ seamless: !0,
231
+ selected: !0,
232
+ shape: !0,
233
+ size: !0,
234
+ sizes: !0,
235
+ // support for projecting regular DOM Elements via V1 named slots ( shadow dom )
236
+ slot: !0,
237
+ span: !0,
238
+ spellCheck: !0,
239
+ src: !0,
240
+ srcDoc: !0,
241
+ srcLang: !0,
242
+ srcSet: !0,
243
+ start: !0,
244
+ step: !0,
245
+ style: !0,
246
+ summary: !0,
247
+ tabIndex: !0,
248
+ target: !0,
249
+ title: !0,
250
+ translate: !0,
251
+ // Setting .type throws on non-<input> tags
252
+ type: !0,
253
+ useMap: !0,
254
+ value: !0,
255
+ width: !0,
256
+ wmode: !0,
257
+ wrap: !0,
258
+ /**
259
+ * RDFa Properties
260
+ */
261
+ about: !0,
262
+ datatype: !0,
263
+ inlist: !0,
264
+ prefix: !0,
265
+ // property is also supported for OpenGraph in meta tags.
266
+ property: !0,
267
+ resource: !0,
268
+ typeof: !0,
269
+ vocab: !0,
270
+ /**
271
+ * Non-standard Properties
272
+ */
273
+ // autoCapitalize and autoCorrect are supported in Mobile Safari for
274
+ // keyboard hints.
275
+ autoCapitalize: !0,
276
+ autoCorrect: !0,
277
+ // autoSave allows WebKit/Blink to persist values of input fields on page reloads
278
+ autoSave: !0,
279
+ // color is for Safari mask-icon link
280
+ color: !0,
281
+ // https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/search#incremental_This_API_has_not_been_standardized
282
+ incremental: !0,
283
+ // used in amp html for indicating the fallback behavior
284
+ // https://amp.dev/documentation/guides-and-tutorials/develop/style_and_layout/placeholders/
285
+ fallback: !0,
286
+ // https://html.spec.whatwg.org/multipage/interaction.html#inert
287
+ inert: !0,
288
+ // itemProp, itemScope, itemType are for
289
+ // Microdata support. See http://schema.org/docs/gs.html
290
+ itemProp: !0,
291
+ itemScope: !0,
292
+ itemType: !0,
293
+ // itemID and itemRef are for Microdata support as well but
294
+ // only specified in the WHATWG spec document. See
295
+ // https://html.spec.whatwg.org/multipage/microdata.html#microdata-dom-api
296
+ itemID: !0,
297
+ itemRef: !0,
298
+ // used in amp html for eventing purposes
299
+ // https://amp.dev/documentation/guides-and-tutorials/learn/common_attributes/
300
+ on: !0,
301
+ // used in amp html for indicating that the option is selectable
302
+ // https://amp.dev/documentation/components/amp-selector/
303
+ option: !0,
304
+ // results show looking glass icon and recent searches on input
305
+ // search fields in WebKit/Blink
306
+ results: !0,
307
+ // IE-only attribute that specifies security restrictions on an iframe
308
+ // as an alternative to the sandbox attribute on IE<1true
309
+ security: !0,
310
+ // IE-only attribute that controls focus behavior
311
+ unselectable: !0,
312
+ //
313
+ // SVG properties: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute
314
+ // The following "onX" events have been omitted:
315
+ //
316
+ // onabort
317
+ // onactivate
318
+ // onbegin
319
+ // onclick
320
+ // onend
321
+ // onerror
322
+ // onfocusin
323
+ // onfocusout
324
+ // onload
325
+ // onmousedown
326
+ // onmousemove
327
+ // onmouseout
328
+ // onmouseover
329
+ // onmouseup
330
+ // onrepeat
331
+ // onresize
332
+ // onscroll
333
+ // onunload
334
+ accentHeight: !0,
335
+ accumulate: !0,
336
+ additive: !0,
337
+ alignmentBaseline: !0,
338
+ allowReorder: !0,
339
+ alphabetic: !0,
340
+ amplitude: !0,
341
+ arabicForm: !0,
342
+ ascent: !0,
343
+ attributeName: !0,
344
+ attributeType: !0,
345
+ autoReverse: !0,
346
+ azimuth: !0,
347
+ baseFrequency: !0,
348
+ baselineShift: !0,
349
+ baseProfile: !0,
350
+ bbox: !0,
351
+ begin: !0,
352
+ bias: !0,
353
+ by: !0,
354
+ calcMode: !0,
355
+ capHeight: !0,
356
+ clip: !0,
357
+ clipPathUnits: !0,
358
+ clipPath: !0,
359
+ clipRule: !0,
360
+ colorInterpolation: !0,
361
+ colorInterpolationFilters: !0,
362
+ colorProfile: !0,
363
+ colorRendering: !0,
364
+ contentScriptType: !0,
365
+ contentStyleType: !0,
366
+ cursor: !0,
367
+ cx: !0,
368
+ cy: !0,
369
+ d: !0,
370
+ decelerate: !0,
371
+ descent: !0,
372
+ diffuseConstant: !0,
373
+ direction: !0,
374
+ display: !0,
375
+ divisor: !0,
376
+ dominantBaseline: !0,
377
+ dur: !0,
378
+ dx: !0,
379
+ dy: !0,
380
+ edgeMode: !0,
381
+ elevation: !0,
382
+ enableBackground: !0,
383
+ end: !0,
384
+ exponent: !0,
385
+ externalResourcesRequired: !0,
386
+ fill: !0,
387
+ fillOpacity: !0,
388
+ fillRule: !0,
389
+ filter: !0,
390
+ filterRes: !0,
391
+ filterUnits: !0,
392
+ floodColor: !0,
393
+ floodOpacity: !0,
394
+ focusable: !0,
395
+ fontFamily: !0,
396
+ fontSize: !0,
397
+ fontSizeAdjust: !0,
398
+ fontStretch: !0,
399
+ fontStyle: !0,
400
+ fontVariant: !0,
401
+ fontWeight: !0,
402
+ format: !0,
403
+ from: !0,
404
+ fr: !0,
405
+ // valid SVG element but React will ask for removal
406
+ fx: !0,
407
+ fy: !0,
408
+ g1: !0,
409
+ g2: !0,
410
+ glyphName: !0,
411
+ glyphOrientationHorizontal: !0,
412
+ glyphOrientationVertical: !0,
413
+ glyphRef: !0,
414
+ gradientTransform: !0,
415
+ gradientUnits: !0,
416
+ hanging: !0,
417
+ horizAdvX: !0,
418
+ horizOriginX: !0,
419
+ ideographic: !0,
420
+ imageRendering: !0,
421
+ in: !0,
422
+ in2: !0,
423
+ intercept: !0,
424
+ k: !0,
425
+ k1: !0,
426
+ k2: !0,
427
+ k3: !0,
428
+ k4: !0,
429
+ kernelMatrix: !0,
430
+ kernelUnitLength: !0,
431
+ kerning: !0,
432
+ keyPoints: !0,
433
+ keySplines: !0,
434
+ keyTimes: !0,
435
+ lengthAdjust: !0,
436
+ letterSpacing: !0,
437
+ lightingColor: !0,
438
+ limitingConeAngle: !0,
439
+ local: !0,
440
+ markerEnd: !0,
441
+ markerMid: !0,
442
+ markerStart: !0,
443
+ markerHeight: !0,
444
+ markerUnits: !0,
445
+ markerWidth: !0,
446
+ mask: !0,
447
+ maskContentUnits: !0,
448
+ maskUnits: !0,
449
+ mathematical: !0,
450
+ mode: !0,
451
+ numOctaves: !0,
452
+ offset: !0,
453
+ opacity: !0,
454
+ operator: !0,
455
+ order: !0,
456
+ orient: !0,
457
+ orientation: !0,
458
+ origin: !0,
459
+ overflow: !0,
460
+ overlinePosition: !0,
461
+ overlineThickness: !0,
462
+ panose1: !0,
463
+ paintOrder: !0,
464
+ pathLength: !0,
465
+ patternContentUnits: !0,
466
+ patternTransform: !0,
467
+ patternUnits: !0,
468
+ pointerEvents: !0,
469
+ points: !0,
470
+ pointsAtX: !0,
471
+ pointsAtY: !0,
472
+ pointsAtZ: !0,
473
+ preserveAlpha: !0,
474
+ preserveAspectRatio: !0,
475
+ primitiveUnits: !0,
476
+ r: !0,
477
+ radius: !0,
478
+ refX: !0,
479
+ refY: !0,
480
+ renderingIntent: !0,
481
+ repeatCount: !0,
482
+ repeatDur: !0,
483
+ requiredExtensions: !0,
484
+ requiredFeatures: !0,
485
+ restart: !0,
486
+ result: !0,
487
+ rotate: !0,
488
+ rx: !0,
489
+ ry: !0,
490
+ scale: !0,
491
+ seed: !0,
492
+ shapeRendering: !0,
493
+ slope: !0,
494
+ spacing: !0,
495
+ specularConstant: !0,
496
+ specularExponent: !0,
497
+ speed: !0,
498
+ spreadMethod: !0,
499
+ startOffset: !0,
500
+ stdDeviation: !0,
501
+ stemh: !0,
502
+ stemv: !0,
503
+ stitchTiles: !0,
504
+ stopColor: !0,
505
+ stopOpacity: !0,
506
+ strikethroughPosition: !0,
507
+ strikethroughThickness: !0,
508
+ string: !0,
509
+ stroke: !0,
510
+ strokeDasharray: !0,
511
+ strokeDashoffset: !0,
512
+ strokeLinecap: !0,
513
+ strokeLinejoin: !0,
514
+ strokeMiterlimit: !0,
515
+ strokeOpacity: !0,
516
+ strokeWidth: !0,
517
+ surfaceScale: !0,
518
+ systemLanguage: !0,
519
+ tableValues: !0,
520
+ targetX: !0,
521
+ targetY: !0,
522
+ textAnchor: !0,
523
+ textDecoration: !0,
524
+ textRendering: !0,
525
+ textLength: !0,
526
+ to: !0,
527
+ transform: !0,
528
+ u1: !0,
529
+ u2: !0,
530
+ underlinePosition: !0,
531
+ underlineThickness: !0,
532
+ unicode: !0,
533
+ unicodeBidi: !0,
534
+ unicodeRange: !0,
535
+ unitsPerEm: !0,
536
+ vAlphabetic: !0,
537
+ vHanging: !0,
538
+ vIdeographic: !0,
539
+ vMathematical: !0,
540
+ values: !0,
541
+ vectorEffect: !0,
542
+ version: !0,
543
+ vertAdvY: !0,
544
+ vertOriginX: !0,
545
+ vertOriginY: !0,
546
+ viewBox: !0,
547
+ viewTarget: !0,
548
+ visibility: !0,
549
+ widths: !0,
550
+ wordSpacing: !0,
551
+ writingMode: !0,
552
+ x: !0,
553
+ xHeight: !0,
554
+ x1: !0,
555
+ x2: !0,
556
+ xChannelSelector: !0,
557
+ xlinkActuate: !0,
558
+ xlinkArcrole: !0,
559
+ xlinkHref: !0,
560
+ xlinkRole: !0,
561
+ xlinkShow: !0,
562
+ xlinkTitle: !0,
563
+ xlinkType: !0,
564
+ xmlBase: !0,
565
+ xmlns: !0,
566
+ xmlnsXlink: !0,
567
+ xmlLang: !0,
568
+ xmlSpace: !0,
569
+ y: !0,
570
+ y1: !0,
571
+ y2: !0,
572
+ yChannelSelector: !0,
573
+ z: !0,
574
+ zoomAndPan: !0,
575
+ // For preact. We have this code here even though Emotion doesn't support
576
+ // Preact, since @emotion/is-prop-valid is used by some libraries outside of
577
+ // the context of Emotion.
578
+ for: !0,
579
+ class: !0,
580
+ autofocus: !0
581
+ }, me = `/^((${Object.keys(pe).join(
582
+ "|"
583
+ )})|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/`, he = new RegExp(me), ge = ne(
584
+ (e) => he.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91
585
+ /* Z+1 */
586
+ ), fe = {
97
587
  box: "var(--swui-shadow-box)",
98
588
  popover: "var(--swui-shadow-popover)",
99
589
  modal: "var(--swui-shadow-modal)",
100
590
  bottom: "var(--swui-shadow-bottom)"
101
- }, pe = [
591
+ }, ve = [
102
592
  "spacing",
103
593
  "indent",
104
594
  "gap",
@@ -106,7 +596,7 @@ const ie = "_separatorLine_nzfcz_1", ae = {
106
596
  "height",
107
597
  "overflow",
108
598
  "display"
109
- ], he = (e) => pe.includes(e), fe = N({
599
+ ], ye = (e) => ve.includes(e), be = H({
110
600
  row: {
111
601
  property: "flexDirection",
112
602
  transform: (e) => e ? "row" : "column"
@@ -114,32 +604,32 @@ const ie = "_separatorLine_nzfcz_1", ae = {
114
604
  indent: {
115
605
  // @ts-ignore
116
606
  property: "--current-indent",
117
- transform: $
607
+ transform: x
118
608
  },
119
609
  spacing: {
120
610
  // @ts-ignore
121
611
  property: "--current-spacing",
122
- transform: $
612
+ transform: x
123
613
  },
124
614
  gap: {
125
615
  // @ts-ignore
126
616
  property: "--current-gap",
127
- transform: $
617
+ transform: x
128
618
  },
129
619
  columnGap: {
130
620
  property: "columnGap",
131
- transform: S
621
+ transform: E
132
622
  },
133
623
  rowGap: {
134
624
  property: "rowGap",
135
- transform: S
625
+ transform: E
136
626
  },
137
627
  shadow: {
138
628
  property: "boxShadow",
139
- transform: (e) => me[e] ?? e
629
+ transform: (e) => fe[e] ?? e
140
630
  }
141
- }), b = y("div", {
142
- shouldForwardProp: (e) => typeof e == "string" ? he(e) ? !1 : F(e) : !1
631
+ }), b = _("div", {
632
+ shouldForwardProp: (e) => typeof e == "string" ? ye(e) ? !1 : ge(e) : !1
143
633
  })`
144
634
  --current-spacing: 0;
145
635
  --current-indent: 0;
@@ -147,27 +637,27 @@ const ie = "_separatorLine_nzfcz_1", ae = {
147
637
  box-sizing: border-box;
148
638
  display: flex;
149
639
  flex-direction: column;
150
- ${fe};
151
- ${P};
152
- ${V};
153
- ${A};
154
- ${G};
155
- ${j};
640
+ ${be};
641
+ ${z};
642
+ ${F};
643
+ ${N};
156
644
  ${U};
645
+ ${V};
157
646
  ${q};
158
- ${W};
647
+ ${j};
159
648
  ${B};
160
- ${K};
161
- ${J};
162
- ${Q};
649
+ ${W};
163
650
  ${X};
651
+ ${G};
164
652
  ${Y};
653
+ ${K};
165
654
  ${Z};
655
+ ${J};
656
+ ${Q};
166
657
  ${ee};
167
658
  ${te};
168
- ${ne};
169
659
  ${re};
170
- ${se};
660
+ ${ue};
171
661
 
172
662
  gap: calc(var(--current-gap) * var(--swui-metrics-space));
173
663
 
@@ -188,325 +678,325 @@ const ie = "_separatorLine_nzfcz_1", ae = {
188
678
  ${({ focusWithinBackground: e }) => e ? `background: ${e};` : ""}
189
679
  ${({ focusWithinBorder: e }) => e ? `border: ${e};` : ""}
190
680
  }
191
- `, nt = h(function(t, n) {
192
- return /* @__PURE__ */ i(b, { ref: n, ...t });
193
- }), ge = (e) => {
194
- const { x: t, y: n, width: r, height: s, bottom: o, top: c, left: a, right: u } = e.getBoundingClientRect();
681
+ `, nt = h(function(t, r) {
682
+ return /* @__PURE__ */ a(b, { ref: r, ...t });
683
+ }), we = (e) => {
684
+ const { x: t, y: r, width: u, height: n, bottom: o, top: s, left: c, right: i } = e.getBoundingClientRect();
195
685
  return {
196
- width: r,
197
- height: s,
198
- top: c,
199
- left: a,
686
+ width: u,
687
+ height: n,
688
+ top: s,
689
+ left: c,
200
690
  x: t,
201
- y: n,
202
- right: u,
691
+ y: r,
692
+ right: i,
203
693
  bottom: o
204
694
  };
205
- }, ve = (e, t) => e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height && e.bottom === t.bottom && e.top === t.top && e.left === t.left && e.right === t.right, we = (e, t) => {
206
- const [n, r] = g(), s = p(() => {
695
+ }, xe = (e, t) => e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height && e.bottom === t.bottom && e.top === t.top && e.left === t.left && e.right === t.right, ke = (e, t) => {
696
+ const [r, u] = f(), n = m(() => {
207
697
  window.requestAnimationFrame(() => {
208
698
  if (e.current) {
209
- const o = ge(e.current);
210
- (!n || !ve(n, o)) && t && t(o), r(o);
699
+ const o = we(e.current);
700
+ (!r || !xe(r, o)) && t && t(o), u(o);
211
701
  }
212
702
  });
213
- }, [e, n, r, t]);
214
- return H(() => {
215
- s();
216
- }, [s]), {
217
- dimensions: n
703
+ }, [e, r, u, t]);
704
+ return P(() => {
705
+ n();
706
+ }, [n]), {
707
+ dimensions: r
218
708
  };
219
- }, rt = h(
220
- function({ onResize: t, ...n }, r) {
221
- const s = v(null);
222
- return we(r ?? s, t), /* @__PURE__ */ i(b, { ...n, ref: r });
709
+ }, ot = h(
710
+ function({ onResize: t, ...r }, u) {
711
+ const n = v(null);
712
+ return ke(u ?? n, t), /* @__PURE__ */ a(b, { ...r, ref: u });
223
713
  }
224
- ), st = h(function(t, n) {
225
- return /* @__PURE__ */ i(b, { row: !0, ref: n, ...t });
226
- }), ot = h(function({ num: t = 1, ...n }, r) {
227
- return /* @__PURE__ */ i(b, { indent: t, ref: r, ...n });
228
- }), ct = h(
229
- function({ num: t = 1, ...n }, r) {
230
- return /* @__PURE__ */ i(b, { spacing: t, ref: r, ...n });
714
+ ), st = h(function(t, r) {
715
+ return /* @__PURE__ */ a(b, { row: !0, ref: r, ...t });
716
+ }), it = h(function({ num: t = 1, ...r }, u) {
717
+ return /* @__PURE__ */ a(b, { indent: t, ref: u, ...r });
718
+ }), at = h(
719
+ function({ num: t = 1, ...r }, u) {
720
+ return /* @__PURE__ */ a(b, { spacing: t, ref: u, ...r });
231
721
  }
232
- ), be = y.div`
722
+ ), _e = _.div`
233
723
  --current-size: 1;
234
724
  flex: none;
235
725
  width: calc(var(--current-size) * var(--swui-metrics-space));
236
726
  height: calc(var(--current-size) * var(--swui-metrics-space));
237
- `, ut = ({
727
+ `, ct = ({
238
728
  half: e = !1,
239
729
  horizontal: t = !1,
240
- num: n = 1,
241
- vertical: r = !1
730
+ num: r = 1,
731
+ vertical: u = !1
242
732
  }) => {
243
- const s = n * (e ? 0.5 : 1);
244
- return /* @__PURE__ */ i(
245
- be,
733
+ const n = r * (e ? 0.5 : 1);
734
+ return /* @__PURE__ */ a(
735
+ _e,
246
736
  {
247
737
  style: {
248
- "--current-size": s,
738
+ "--current-size": n,
249
739
  height: t ? 1 : void 0,
250
- width: r ? 1 : void 0
740
+ width: u ? 1 : void 0
251
741
  }
252
742
  }
253
743
  );
254
- }, it = ({ children: e, nest: t, render: n }) => t ? /* @__PURE__ */ i(I, { children: n(e) }) : /* @__PURE__ */ i(I, { children: e }), _e = "_visuallyHidden_1gevf_1", $e = {
255
- visuallyHidden: _e
256
- }, xe = (e) => oe(e, ye), ye = (e, t) => Ee(t), Ee = (e) => e.startsWith("data-") || e.startsWith("aria-"), at = ({
744
+ }, lt = ({ children: e, nest: t, render: r }) => t ? /* @__PURE__ */ a(S, { children: r(e) }) : /* @__PURE__ */ a(S, { children: e }), $e = "_visuallyHidden_1gevf_1", Se = {
745
+ visuallyHidden: $e
746
+ }, Ee = (e) => oe(e, Te), Te = (e, t) => Ce(t), Ce = (e) => e.startsWith("data-") || e.startsWith("aria-"), dt = ({
257
747
  children: e,
258
748
  ...t
259
- }) => /* @__PURE__ */ i("span", { className: $e.visuallyHidden, ...xe(t), children: e }), Ie = "_text_1iisw_1", Se = "_standard_1iisw_24", Ce = "_bold_1iisw_27", Te = "_caption_1iisw_31", Me = "_overline_1iisw_39", Oe = "_large_1iisw_48", De = "_medium_1iisw_53", Le = "_small_1iisw_58", ke = "_smaller_1iisw_63", x = {
749
+ }) => /* @__PURE__ */ a("span", { className: Se.visuallyHidden, ...Ee(t), children: e }), Ie = "_text_1iisw_1", Re = "_standard_1iisw_24", Me = "_bold_1iisw_27", Oe = "_caption_1iisw_31", Le = "_overline_1iisw_39", Ae = "_large_1iisw_48", Pe = "_medium_1iisw_53", De = "_small_1iisw_58", He = "_smaller_1iisw_63", k = {
260
750
  text: Ie,
261
- standard: Se,
262
- bold: Ce,
263
- caption: Te,
264
- overline: Me,
265
- large: Oe,
266
- medium: De,
267
- small: Le,
268
- smaller: ke
269
- }, _ = h(
751
+ standard: Re,
752
+ bold: Me,
753
+ caption: Oe,
754
+ overline: Le,
755
+ large: Ae,
756
+ medium: Pe,
757
+ small: De,
758
+ smaller: He
759
+ }, w = h(
270
760
  ({
271
761
  children: e,
272
762
  variant: t = "standard",
273
- size: n = "medium",
274
- className: r,
275
- color: s,
763
+ size: r = "medium",
764
+ className: u,
765
+ color: n,
276
766
  userSelect: o,
277
- whiteSpace: c,
278
- wordBreak: a,
279
- textAlign: u,
280
- style: d,
281
- ...m
282
- }, f) => /* @__PURE__ */ i(
767
+ whiteSpace: s,
768
+ wordBreak: c,
769
+ textAlign: i,
770
+ style: l,
771
+ ...p
772
+ }, g) => /* @__PURE__ */ a(
283
773
  "span",
284
774
  {
285
- className: O(x.text, x[t], x[n], r),
286
- ref: f,
775
+ className: R(k.text, k[t], k[r], u),
776
+ ref: g,
287
777
  style: {
288
- color: s,
778
+ color: n,
289
779
  userSelect: o,
290
- whiteSpace: c,
291
- wordBreak: a,
292
- textAlign: u,
293
- ...d
780
+ whiteSpace: s,
781
+ wordBreak: c,
782
+ textAlign: i,
783
+ ...l
294
784
  },
295
- ...m,
785
+ ...p,
296
786
  children: e
297
787
  }
298
788
  )
299
- ), dt = _, lt = (e) => /* @__PURE__ */ i(_, { size: "small", ...e }), mt = (e) => /* @__PURE__ */ i(_, { size: "smaller", ...e }), pt = (e) => /* @__PURE__ */ i(_, { size: "medium", ...e }), ht = (e) => /* @__PURE__ */ i(_, { size: "large", ...e }), Re = "_heading_1cnsg_1", He = "_h1_1cnsg_10", ze = "_h2_1cnsg_14", Fe = "_h3_1cnsg_18", Ne = "_h4_1cnsg_22", Pe = "_h5_1cnsg_26", Ve = "_h6_1cnsg_30", C = {
300
- heading: Re,
301
- h1: He,
302
- h2: ze,
303
- h3: Fe,
304
- h4: Ne,
305
- h5: Pe,
306
- h6: Ve
307
- }, Ae = h(
789
+ ), pt = w, mt = (e) => /* @__PURE__ */ a(w, { size: "small", ...e }), ht = (e) => /* @__PURE__ */ a(w, { size: "smaller", ...e }), gt = (e) => /* @__PURE__ */ a(w, { size: "medium", ...e }), ft = (e) => /* @__PURE__ */ a(w, { size: "large", ...e }), ze = "_heading_1cnsg_1", Fe = "_h1_1cnsg_10", Ne = "_h2_1cnsg_14", Ue = "_h3_1cnsg_18", Ve = "_h4_1cnsg_22", qe = "_h5_1cnsg_26", je = "_h6_1cnsg_30", T = {
790
+ heading: ze,
791
+ h1: Fe,
792
+ h2: Ne,
793
+ h3: Ue,
794
+ h4: Ve,
795
+ h5: qe,
796
+ h6: je
797
+ }, Be = h(
308
798
  ({
309
799
  variant: e = "h3",
310
800
  className: t,
311
- color: n,
312
- whiteSpace: r,
313
- wordBreak: s,
801
+ color: r,
802
+ whiteSpace: u,
803
+ wordBreak: n,
314
804
  style: o,
315
- children: c,
316
- as: a,
317
- ...u
318
- }, d) => /* @__PURE__ */ i(
319
- a ?? e,
805
+ children: s,
806
+ as: c,
807
+ ...i
808
+ }, l) => /* @__PURE__ */ a(
809
+ c ?? e,
320
810
  {
321
- className: O(C.heading, C[e], t),
322
- style: { color: n, whiteSpace: r, wordBreak: s, ...o },
323
- ref: d,
324
- ...u,
325
- children: c
811
+ className: R(T.heading, T[e], t),
812
+ style: { color: r, whiteSpace: u, wordBreak: n, ...o },
813
+ ref: l,
814
+ ...i,
815
+ children: s
326
816
  }
327
817
  )
328
- ), ft = (e) => /* @__PURE__ */ i(Ae, { variant: "h2", ...e }), Ge = (e, t) => e === t, gt = (e, t, n = Ge) => {
329
- const r = p(
330
- (u) => {
331
- e.some((d) => n(d, u)) || t([...e, u]);
818
+ ), vt = (e) => /* @__PURE__ */ a(Be, { variant: "h2", ...e }), We = (e, t) => e === t, yt = (e, t, r = We) => {
819
+ const u = m(
820
+ (i) => {
821
+ e.some((l) => r(l, i)) || t([...e, i]);
332
822
  },
333
- [e, t, n]
334
- ), s = p(
335
- (u) => {
823
+ [e, t, r]
824
+ ), n = m(
825
+ (i) => {
336
826
  t(
337
- u.reduce((d, m) => d.some((f) => n(f, m)) ? d : [...d, m], e)
827
+ i.reduce((l, p) => l.some((g) => r(g, p)) ? l : [...l, p], e)
338
828
  );
339
829
  },
340
- [e, t, n]
341
- ), o = p(
342
- (u) => {
343
- const d = e.findIndex((m) => n(m, u));
344
- d >= 0 && t(e.filter((m, f) => f !== d));
830
+ [e, t, r]
831
+ ), o = m(
832
+ (i) => {
833
+ const l = e.findIndex((p) => r(p, i));
834
+ l >= 0 && t(e.filter((p, g) => g !== l));
345
835
  },
346
- [e, t, n]
347
- ), c = p(
348
- (u) => {
349
- t(e.filter((d) => !u.some((m) => n(m, d))));
836
+ [e, t, r]
837
+ ), s = m(
838
+ (i) => {
839
+ t(e.filter((l) => !i.some((p) => r(p, l))));
350
840
  },
351
- [e, t, n]
352
- ), a = p(
353
- (u) => {
354
- e.some((m) => n(m, u)) ? o(u) : r(u);
841
+ [e, t, r]
842
+ ), c = m(
843
+ (i) => {
844
+ e.some((p) => r(p, i)) ? o(i) : u(i);
355
845
  },
356
- [e, r, o, n]
846
+ [e, u, o, r]
357
847
  );
358
848
  return {
359
- add: r,
360
- addMultiple: s,
849
+ add: u,
850
+ addMultiple: n,
361
851
  remove: o,
362
- removeMultiple: c,
363
- toggle: a
852
+ removeMultiple: s,
853
+ toggle: c
364
854
  };
365
- }, E = (e) => {
366
- const [t, n] = g(e), r = p(() => {
367
- n(!0);
368
- }, [n]), s = p(() => {
369
- n(!1);
370
- }, [n]), o = p(() => {
371
- n((c) => !c);
372
- }, [n]);
373
- return [t, r, s, o];
374
- }, vt = (e, t) => {
375
- const [n, r] = g(e);
376
- return l(() => {
377
- const s = setTimeout(() => {
378
- r(e);
855
+ }, $ = (e) => {
856
+ const [t, r] = f(e), u = m(() => {
857
+ r(!0);
858
+ }, [r]), n = m(() => {
859
+ r(!1);
860
+ }, [r]), o = m(() => {
861
+ r((s) => !s);
862
+ }, [r]);
863
+ return [t, u, n, o];
864
+ }, bt = (e, t) => {
865
+ const [r, u] = f(e);
866
+ return d(() => {
867
+ const n = setTimeout(() => {
868
+ u(e);
379
869
  }, t);
380
870
  return () => {
381
- clearTimeout(s);
871
+ clearTimeout(n);
382
872
  };
383
- }, [e, t]), n;
873
+ }, [e, t]), r;
384
874
  }, wt = (e, t) => {
385
- const [n, r] = g(e);
386
- return l(() => {
387
- e && r(!0);
388
- const s = setTimeout(() => {
389
- e || r(e);
875
+ const [r, u] = f(e);
876
+ return d(() => {
877
+ e && u(!0);
878
+ const n = setTimeout(() => {
879
+ e || u(e);
390
880
  }, t);
391
881
  return () => {
392
- clearTimeout(s);
882
+ clearTimeout(n);
393
883
  };
394
- }, [e, t]), n;
884
+ }, [e, t]), r;
395
885
  };
396
- let je = 0;
397
- const T = (e) => `webui-${e ? e + "-" : ""}${++je}`, bt = (e) => {
398
- const [t, n] = g(() => T(e));
399
- return l(() => n(T(e)), [e]), t;
400
- }, w = (e, t, n) => {
401
- const r = v();
402
- l(() => {
403
- r.current = n;
404
- }, [n]), l(() => {
886
+ let Xe = 0;
887
+ const C = (e) => `webui-${e ? e + "-" : ""}${++Xe}`, xt = (e) => {
888
+ const [t, r] = f(() => C(e));
889
+ return d(() => r(C(e)), [e]), t;
890
+ }, y = (e, t, r) => {
891
+ const u = v();
892
+ d(() => {
893
+ u.current = r;
894
+ }, [r]), d(() => {
405
895
  if (!(e.current && e.current.addEventListener))
406
896
  return;
407
- const o = (a) => {
408
- if (r.current)
409
- return r.current(a);
897
+ const o = (c) => {
898
+ if (u.current)
899
+ return u.current(c);
410
900
  };
411
901
  if (!e.current)
412
902
  return;
413
- const c = e.current;
414
- return c.addEventListener(t, o), () => {
415
- c && c.removeEventListener(t, o);
903
+ const s = e.current;
904
+ return s.addEventListener(t, o), () => {
905
+ s && s.removeEventListener(t, o);
416
906
  };
417
907
  }, [t, e]);
418
- }, _t = (e) => {
419
- const [t, n, r] = E(!1);
420
- l(() => {
421
- document.activeElement === ce.findDOMNode(e.current) ? n() : r();
422
- }, [e, r, n]), w(e, "focus", n), w(e, "blur", r);
423
- const s = p(() => {
908
+ }, kt = (e) => {
909
+ const [t, r, u] = $(!1);
910
+ d(() => {
911
+ document.activeElement === ie.findDOMNode(e.current) ? r() : u();
912
+ }, [e, u, r]), y(e, "focus", r), y(e, "blur", u);
913
+ const n = m(() => {
424
914
  e.current && e.current.focus();
425
- }, [e]), o = p(() => {
915
+ }, [e]), o = m(() => {
426
916
  e.current && e.current.blur();
427
917
  }, [e]);
428
- return { isInFocus: t, focus: s, blur: o };
918
+ return { isInFocus: t, focus: n, blur: o };
919
+ }, _t = (e) => {
920
+ const [t, r, u] = $(!1);
921
+ return y(e, "mouseover", r), y(e, "mouseout", u), t;
429
922
  }, $t = (e) => {
430
- const [t, n, r] = E(!1);
431
- return w(e, "mouseover", n), w(e, "mouseout", r), t;
432
- }, xt = (e) => {
433
- const [t, n, r] = E(!1);
434
- return w(e, "mouseenter", n), w(e, "mouseleave", r), t;
435
- }, yt = (e, t) => {
436
- const n = v(() => {
923
+ const [t, r, u] = $(!1);
924
+ return y(e, "mouseenter", r), y(e, "mouseleave", u), t;
925
+ }, St = (e, t) => {
926
+ const r = v(() => {
437
927
  });
438
- l(() => {
439
- n.current = t;
440
- }, [t]), l(() => {
441
- const r = (s) => {
442
- e.filter((c) => c.current).every((c) => c.current && !c.current.contains(s.target)) && n.current(s);
928
+ d(() => {
929
+ r.current = t;
930
+ }, [t]), d(() => {
931
+ const u = (n) => {
932
+ e.filter((s) => s.current).every((s) => s.current && !s.current.contains(n.target)) && r.current(n);
443
933
  };
444
- return document.addEventListener("mousedown", r), document.addEventListener("touchstart", r), () => {
445
- document.removeEventListener("mousedown", r), document.removeEventListener("touchstart", r);
934
+ return document.addEventListener("mousedown", u), document.addEventListener("touchstart", u), () => {
935
+ document.removeEventListener("mousedown", u), document.removeEventListener("touchstart", u);
446
936
  };
447
937
  }, [...e]);
448
- }, Et = (e, t, n) => {
449
- const r = v(() => {
938
+ }, Et = (e, t, r) => {
939
+ const u = v(() => {
450
940
  });
451
- l(() => {
452
- r.current = t;
453
- }, [t]), l(() => {
454
- const s = (o) => {
455
- !e.current || e.current.contains(o.target) || r.current(o);
941
+ d(() => {
942
+ u.current = t;
943
+ }, [t]), d(() => {
944
+ const n = (o) => {
945
+ !e.current || e.current.contains(o.target) || u.current(o);
456
946
  };
457
- return document.addEventListener("mousedown", s, n), document.addEventListener("touchstart", s, n), () => {
458
- document.removeEventListener("mousedown", s, n), document.removeEventListener("touchstart", s, n);
947
+ return document.addEventListener("mousedown", n, r), document.addEventListener("touchstart", n, r), () => {
948
+ document.removeEventListener("mousedown", n, r), document.removeEventListener("touchstart", n, r);
459
949
  };
460
- }, [e, n]);
461
- }, M = ["mousemove", "mousedown", "keydown", "touchstart", "scroll"], It = (e, t) => {
462
- const n = v(() => {
950
+ }, [e, r]);
951
+ }, I = ["mousemove", "mousedown", "keydown", "touchstart", "scroll"], Tt = (e, t) => {
952
+ const r = v(() => {
463
953
  });
464
- l(() => {
465
- n.current = e;
466
- }, [e]), l(() => {
467
- const r = ue(n.current, t);
468
- return M.forEach((s) => window.addEventListener(s, r)), () => {
469
- M.forEach(
470
- (s) => window.removeEventListener(s, r)
954
+ d(() => {
955
+ r.current = e;
956
+ }, [e]), d(() => {
957
+ const u = se(r.current, t);
958
+ return I.forEach((n) => window.addEventListener(n, u)), () => {
959
+ I.forEach(
960
+ (n) => window.removeEventListener(n, u)
471
961
  );
472
962
  };
473
963
  }, [t]);
474
- }, St = (e, t) => {
475
- const [n, r] = g(!1), { rootMargin: s, root: o, threshold: c } = t || {}, a = z(() => new IntersectionObserver(
476
- ([u]) => r(u.isIntersecting),
964
+ }, Ct = (e, t) => {
965
+ const [r, u] = f(!1), { rootMargin: n, root: o, threshold: s } = t || {}, c = D(() => new IntersectionObserver(
966
+ ([i]) => u(i.isIntersecting),
477
967
  {
478
- rootMargin: s,
968
+ rootMargin: n,
479
969
  root: o,
480
- threshold: c
970
+ threshold: s
481
971
  }
482
- ), [r, s, o, c]);
483
- return l(() => (e.current && a.observe(e.current), () => {
484
- a.disconnect();
485
- }), [a, e]), n;
486
- }, Ct = (e) => {
972
+ ), [u, n, o, s]);
973
+ return d(() => (e.current && c.observe(e.current), () => {
974
+ c.disconnect();
975
+ }), [c, e]), r;
976
+ }, It = (e) => {
487
977
  const t = v(null);
488
- return l(() => {
978
+ return d(() => {
489
979
  e && (typeof e == "function" ? e(t.current) : e.current = t.current);
490
980
  }), t;
491
- }, Tt = (e, t, n = !0) => {
492
- const [r, s] = g(e), o = v(), c = p(
493
- (a, u = t) => {
494
- s(a), n && clearTimeout(o.current), o.current = setTimeout(() => s(e), u);
981
+ }, Rt = (e, t, r = !0) => {
982
+ const [u, n] = f(e), o = v(), s = m(
983
+ (c, i = t) => {
984
+ n(c), r && clearTimeout(o.current), o.current = setTimeout(() => n(e), i);
495
985
  },
496
- [t, n, e]
986
+ [t, r, e]
497
987
  );
498
- return l(() => () => {
988
+ return d(() => () => {
499
989
  clearTimeout(o.current);
500
- }, []), [r, c];
990
+ }, []), [u, s];
501
991
  }, Mt = (e) => {
502
992
  throw new Error(`Switch unhandled case: ${e}`);
503
- }, Ot = (e, t) => t, Dt = (e) => Object.keys(e).filter((t) => e[t]), Lt = (e) => {
993
+ }, Ot = (e, t) => t, Lt = (e) => Object.keys(e).filter((t) => e[t]), At = (e) => {
504
994
  try {
505
995
  const t = parseFloat(e);
506
996
  return isNaN(t) || t == null ? void 0 : t;
507
997
  } catch {
508
998
  }
509
- }, kt = (e) => {
999
+ }, Pt = (e) => {
510
1000
  try {
511
1001
  const t = parseInt(e, 10);
512
1002
  return isNaN(t) || t == null ? void 0 : t;
@@ -515,47 +1005,47 @@ const T = (e) => `webui-${e ? e + "-" : ""}${++je}`, bt = (e) => {
515
1005
  };
516
1006
  export {
517
1007
  b as Box,
518
- tt as Clickable,
1008
+ ut as Clickable,
519
1009
  nt as Column,
520
- ft as HeaderText,
521
- Ae as Heading,
522
- ot as Indent,
523
- ht as LargeText,
524
- it as Nest,
525
- rt as ResizeAwareBox,
1010
+ vt as HeaderText,
1011
+ Be as Heading,
1012
+ it as Indent,
1013
+ ft as LargeText,
1014
+ lt as Nest,
1015
+ ot as ResizeAwareBox,
526
1016
  st as Row,
527
- at as ScreenReaderOnlyText,
528
- et as SeparatorLine,
529
- lt as SmallText,
530
- mt as SmallerText,
531
- ut as Space,
532
- ct as Spacing,
533
- pt as StandardText,
534
- _ as Text,
535
- dt as Txt,
536
- $ as booleanOrNumberToNumber,
1017
+ dt as ScreenReaderOnlyText,
1018
+ rt as SeparatorLine,
1019
+ mt as SmallText,
1020
+ ht as SmallerText,
1021
+ ct as Space,
1022
+ at as Spacing,
1023
+ gt as StandardText,
1024
+ w as Text,
1025
+ pt as Txt,
1026
+ x as booleanOrNumberToNumber,
537
1027
  Ot as exhaustSwitchCase,
538
1028
  Mt as exhaustSwitchCaseElseThrow,
539
- xe as getDataProps,
540
- ge as getDimensionObject,
541
- Lt as parseFloatElseUndefined,
542
- kt as parseIntElseUndefined,
543
- Dt as truthyKeysAsList,
544
- gt as useArraySet,
545
- E as useBoolean,
546
- vt as useDebounce,
1029
+ Ee as getDataProps,
1030
+ we as getDimensionObject,
1031
+ At as parseFloatElseUndefined,
1032
+ Pt as parseIntElseUndefined,
1033
+ Lt as truthyKeysAsList,
1034
+ yt as useArraySet,
1035
+ $ as useBoolean,
1036
+ bt as useDebounce,
547
1037
  wt as useDelayedFalse,
548
- bt as useDomId,
549
- we as useElementDimensions,
550
- _t as useElementFocus,
551
- w as useEventListener,
552
- Ct as useForwardedRef,
553
- xt as useMouseIsEntered,
554
- $t as useMouseIsOver,
555
- yt as useMultiOnClickOutside,
1038
+ xt as useDomId,
1039
+ ke as useElementDimensions,
1040
+ kt as useElementFocus,
1041
+ y as useEventListener,
1042
+ It as useForwardedRef,
1043
+ $t as useMouseIsEntered,
1044
+ _t as useMouseIsOver,
1045
+ St as useMultiOnClickOutside,
556
1046
  Et as useOnClickOutside,
557
- It as useOnNoMouseMovement,
558
- St as useOnScreen,
559
- Tt as useTimeoutState
1047
+ Tt as useOnNoMouseMovement,
1048
+ Ct as useOnScreen,
1049
+ Rt as useTimeoutState
560
1050
  };
561
1051
  //# sourceMappingURL=index.es.js.map