@stenajs-webui/core 20.6.6 → 20.6.8

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,36 +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 { pickBy as oe, debounce as ce } from "lodash-es";
9
- import O from "classnames";
10
- import * as ue from "react-dom";
11
- const ie = "_separatorLine_nzfcz_1", ae = {
12
- separatorLine: ie
13
- }, Ze = 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(
14
13
  ({
15
- color: e = R("--lhds-color-ui-300"),
14
+ color: e = A("--lhds-color-ui-300"),
16
15
  size: t = "100%",
17
- width: n = "1px",
18
- vertical: r = !1
19
- }, s) => /* @__PURE__ */ i(
16
+ width: r = "1px",
17
+ vertical: u = !1
18
+ }, n) => /* @__PURE__ */ a(
20
19
  "hr",
21
20
  {
22
- className: ae.separatorLine,
21
+ className: ce.separatorLine,
23
22
  "aria-hidden": !0,
24
23
  color: e,
25
24
  style: {
26
25
  backgroundColor: e,
27
- height: r ? t || "100%" : n || "1px",
28
- width: r ? n || "1px" : t || "100%"
26
+ height: u ? t || "100%" : r || "1px",
27
+ width: u ? r || "1px" : t || "100%"
29
28
  },
30
- ref: s
29
+ ref: n
31
30
  }
32
31
  )
33
- ), de = y.button`
32
+ ), le = _.button`
34
33
  display: inline-block;
35
34
  user-select: none;
36
35
  border: 0;
@@ -53,51 +52,543 @@ const ie = "_separatorLine_nzfcz_1", ae = {
53
52
  ${({ width: e }) => e ? `width: ${e};` : ""}
54
53
  ${({ height: e }) => e ? `height: ${e};` : ""}
55
54
  ${({ borderRadius: e }) => e ? `border-radius: ${e};` : ""}
56
- `, et = h(
55
+ `, ut = h(
57
56
  ({
58
57
  disableFocusHighlight: e,
59
58
  onClick: t,
60
- onDblClick: n,
61
- tooltip: r,
62
- disableOpacityOnClick: s,
59
+ onDblClick: r,
60
+ tooltip: u,
61
+ disableOpacityOnClick: n,
63
62
  disablePointer: o,
64
- opacityOnHover: c,
65
- disabled: a,
66
- children: u,
67
- background: d = "transparent",
68
- hoverBackground: m,
69
- focusBackground: f,
70
- type: D = "button",
71
- ...L
72
- }, k) => /* @__PURE__ */ i(
73
- 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,
74
73
  {
75
- opacityOnHover: c,
76
- title: r,
77
- disabled: a,
78
- disableOpacityOnClick: s,
74
+ opacityOnHover: s,
75
+ title: u,
76
+ disabled: c,
77
+ disableOpacityOnClick: n,
79
78
  onClick: t,
80
- onDoubleClick: n,
79
+ onDoubleClick: r,
81
80
  disableFocusHighlight: e,
82
- pointer: !!(t || n) && !o,
83
- ref: k,
84
- background: d,
85
- hoverBackground: m,
86
- focusBackground: f,
87
- type: D,
88
- ...L,
89
- 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
90
89
  }
91
90
  )
92
- ), $ = (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) => {
93
92
  if (e !== 0)
94
93
  return `calc(${e} * var(--swui-metrics-space))`;
95
- }, 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 = {
96
587
  box: "var(--swui-shadow-box)",
97
588
  popover: "var(--swui-shadow-popover)",
98
589
  modal: "var(--swui-shadow-modal)",
99
590
  bottom: "var(--swui-shadow-bottom)"
100
- }, pe = [
591
+ }, ve = [
101
592
  "spacing",
102
593
  "indent",
103
594
  "gap",
@@ -105,7 +596,7 @@ const ie = "_separatorLine_nzfcz_1", ae = {
105
596
  "height",
106
597
  "overflow",
107
598
  "display"
108
- ], he = (e) => pe.includes(e), fe = N({
599
+ ], ye = (e) => ve.includes(e), be = H({
109
600
  row: {
110
601
  property: "flexDirection",
111
602
  transform: (e) => e ? "row" : "column"
@@ -113,32 +604,32 @@ const ie = "_separatorLine_nzfcz_1", ae = {
113
604
  indent: {
114
605
  // @ts-ignore
115
606
  property: "--current-indent",
116
- transform: $
607
+ transform: x
117
608
  },
118
609
  spacing: {
119
610
  // @ts-ignore
120
611
  property: "--current-spacing",
121
- transform: $
612
+ transform: x
122
613
  },
123
614
  gap: {
124
615
  // @ts-ignore
125
616
  property: "--current-gap",
126
- transform: $
617
+ transform: x
127
618
  },
128
619
  columnGap: {
129
620
  property: "columnGap",
130
- transform: S
621
+ transform: E
131
622
  },
132
623
  rowGap: {
133
624
  property: "rowGap",
134
- transform: S
625
+ transform: E
135
626
  },
136
627
  shadow: {
137
628
  property: "boxShadow",
138
- transform: (e) => me[e] ?? e
629
+ transform: (e) => fe[e] ?? e
139
630
  }
140
- }), b = y("div", {
141
- 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
142
633
  })`
143
634
  --current-spacing: 0;
144
635
  --current-indent: 0;
@@ -146,27 +637,27 @@ const ie = "_separatorLine_nzfcz_1", ae = {
146
637
  box-sizing: border-box;
147
638
  display: flex;
148
639
  flex-direction: column;
149
- ${fe};
150
- ${P};
151
- ${V};
152
- ${A};
153
- ${G};
154
- ${j};
640
+ ${be};
641
+ ${z};
642
+ ${F};
643
+ ${N};
155
644
  ${U};
645
+ ${V};
156
646
  ${q};
157
- ${W};
647
+ ${j};
158
648
  ${B};
159
- ${K};
160
- ${J};
161
- ${Q};
649
+ ${W};
162
650
  ${X};
651
+ ${G};
163
652
  ${Y};
653
+ ${K};
164
654
  ${Z};
655
+ ${J};
656
+ ${Q};
165
657
  ${ee};
166
658
  ${te};
167
- ${ne};
168
659
  ${re};
169
- ${se};
660
+ ${ue};
170
661
 
171
662
  gap: calc(var(--current-gap) * var(--swui-metrics-space));
172
663
 
@@ -187,48 +678,48 @@ const ie = "_separatorLine_nzfcz_1", ae = {
187
678
  ${({ focusWithinBackground: e }) => e ? `background: ${e};` : ""}
188
679
  ${({ focusWithinBorder: e }) => e ? `border: ${e};` : ""}
189
680
  }
190
- `, tt = h(function(t, n) {
191
- return /* @__PURE__ */ i(b, { ref: n, ...t });
192
- }), ge = (e) => {
193
- 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();
194
685
  return {
195
- width: r,
196
- height: s,
197
- top: c,
198
- left: a,
686
+ width: u,
687
+ height: n,
688
+ top: s,
689
+ left: c,
199
690
  x: t,
200
- y: n,
201
- right: u,
691
+ y: r,
692
+ right: i,
202
693
  bottom: o
203
694
  };
204
- }, 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) => {
205
- 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(() => {
206
697
  window.requestAnimationFrame(() => {
207
698
  if (e.current) {
208
- const o = ge(e.current);
209
- (!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);
210
701
  }
211
702
  });
212
- }, [e, n, r, t]);
213
- return H(() => {
214
- s();
215
- }, [s]), {
216
- dimensions: n
703
+ }, [e, r, u, t]);
704
+ return P(() => {
705
+ n();
706
+ }, [n]), {
707
+ dimensions: r
217
708
  };
218
- }, nt = h(
219
- function({ onResize: t, ...n }, r) {
220
- const s = v(null);
221
- 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 });
222
713
  }
223
- ), rt = h(function(t, n) {
224
- return /* @__PURE__ */ i(b, { row: !0, ref: n, ...t });
225
- }), st = h(function({ num: t = 1, ...n }, r) {
226
- return /* @__PURE__ */ i(b, { indent: t, ref: r, ...n });
227
- }), ot = h(
228
- function({ num: t = 1, ...n }, r) {
229
- 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 });
230
721
  }
231
- ), be = y.div`
722
+ ), _e = _.div`
232
723
  --current-size: 1;
233
724
  flex: none;
234
725
  width: calc(var(--current-size) * var(--swui-metrics-space));
@@ -236,276 +727,276 @@ const ie = "_separatorLine_nzfcz_1", ae = {
236
727
  `, ct = ({
237
728
  half: e = !1,
238
729
  horizontal: t = !1,
239
- num: n = 1,
240
- vertical: r = !1
730
+ num: r = 1,
731
+ vertical: u = !1
241
732
  }) => {
242
- const s = n * (e ? 0.5 : 1);
243
- return /* @__PURE__ */ i(
244
- be,
733
+ const n = r * (e ? 0.5 : 1);
734
+ return /* @__PURE__ */ a(
735
+ _e,
245
736
  {
246
737
  style: {
247
- "--current-size": s,
738
+ "--current-size": n,
248
739
  height: t ? 1 : void 0,
249
- width: r ? 1 : void 0
740
+ width: u ? 1 : void 0
250
741
  }
251
742
  }
252
743
  );
253
- }, ut = ({ children: e, nest: t, render: n }) => t ? /* @__PURE__ */ i(I, { children: n(e) }) : /* @__PURE__ */ i(I, { children: e }), _e = "_visuallyHidden_1gevf_1", $e = {
254
- visuallyHidden: _e
255
- }, xe = (e) => oe(e, ye), ye = (e, t) => Ee(t), Ee = (e) => e.startsWith("data-") || e.startsWith("aria-"), it = ({
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 = ({
256
747
  children: e,
257
748
  ...t
258
- }) => /* @__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 = {
259
750
  text: Ie,
260
- standard: Se,
261
- bold: Ce,
262
- caption: Te,
263
- overline: Me,
264
- large: Oe,
265
- medium: De,
266
- small: Le,
267
- smaller: ke
268
- }, _ = 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(
269
760
  ({
270
761
  children: e,
271
762
  variant: t = "standard",
272
- size: n = "medium",
273
- className: r,
274
- color: s,
763
+ size: r = "medium",
764
+ className: u,
765
+ color: n,
275
766
  userSelect: o,
276
- whiteSpace: c,
277
- wordBreak: a,
278
- textAlign: u,
279
- style: d,
280
- ...m
281
- }, f) => /* @__PURE__ */ i(
767
+ whiteSpace: s,
768
+ wordBreak: c,
769
+ textAlign: i,
770
+ style: l,
771
+ ...p
772
+ }, g) => /* @__PURE__ */ a(
282
773
  "span",
283
774
  {
284
- className: O(x.text, x[t], x[n], r),
285
- ref: f,
775
+ className: R(k.text, k[t], k[r], u),
776
+ ref: g,
286
777
  style: {
287
- color: s,
778
+ color: n,
288
779
  userSelect: o,
289
- whiteSpace: c,
290
- wordBreak: a,
291
- textAlign: u,
292
- ...d
780
+ whiteSpace: s,
781
+ wordBreak: c,
782
+ textAlign: i,
783
+ ...l
293
784
  },
294
- ...m,
785
+ ...p,
295
786
  children: e
296
787
  }
297
788
  )
298
- ), at = _, dt = (e) => /* @__PURE__ */ i(_, { size: "small", ...e }), lt = (e) => /* @__PURE__ */ i(_, { size: "smaller", ...e }), mt = (e) => /* @__PURE__ */ i(_, { size: "medium", ...e }), pt = (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 = {
299
- heading: Re,
300
- h1: He,
301
- h2: ze,
302
- h3: Fe,
303
- h4: Ne,
304
- h5: Pe,
305
- h6: Ve
306
- }, 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(
307
798
  ({
308
799
  variant: e = "h3",
309
800
  className: t,
310
- color: n,
311
- whiteSpace: r,
312
- wordBreak: s,
801
+ color: r,
802
+ whiteSpace: u,
803
+ wordBreak: n,
313
804
  style: o,
314
- children: c,
315
- as: a,
316
- ...u
317
- }, d) => /* @__PURE__ */ i(
318
- a ?? e,
805
+ children: s,
806
+ as: c,
807
+ ...i
808
+ }, l) => /* @__PURE__ */ a(
809
+ c ?? e,
319
810
  {
320
- className: O(C.heading, C[e], t),
321
- style: { color: n, whiteSpace: r, wordBreak: s, ...o },
322
- ref: d,
323
- ...u,
324
- 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
325
816
  }
326
817
  )
327
- ), ht = (e) => /* @__PURE__ */ i(Ae, { variant: "h2", ...e }), Ge = (e, t) => e === t, ft = (e, t, n = Ge) => {
328
- const r = p(
329
- (u) => {
330
- 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]);
331
822
  },
332
- [e, t, n]
333
- ), s = p(
334
- (u) => {
823
+ [e, t, r]
824
+ ), n = m(
825
+ (i) => {
335
826
  t(
336
- 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)
337
828
  );
338
829
  },
339
- [e, t, n]
340
- ), o = p(
341
- (u) => {
342
- const d = e.findIndex((m) => n(m, u));
343
- 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));
344
835
  },
345
- [e, t, n]
346
- ), c = p(
347
- (u) => {
348
- 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))));
349
840
  },
350
- [e, t, n]
351
- ), a = p(
352
- (u) => {
353
- 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);
354
845
  },
355
- [e, r, o, n]
846
+ [e, u, o, r]
356
847
  );
357
848
  return {
358
- add: r,
359
- addMultiple: s,
849
+ add: u,
850
+ addMultiple: n,
360
851
  remove: o,
361
- removeMultiple: c,
362
- toggle: a
852
+ removeMultiple: s,
853
+ toggle: c
363
854
  };
364
- }, E = (e) => {
365
- const [t, n] = g(e), r = p(() => {
366
- n(!0);
367
- }, [n]), s = p(() => {
368
- n(!1);
369
- }, [n]), o = p(() => {
370
- n((c) => !c);
371
- }, [n]);
372
- return [t, r, s, o];
373
- }, gt = (e, t) => {
374
- const [n, r] = g(e);
375
- return l(() => {
376
- const s = setTimeout(() => {
377
- 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);
378
869
  }, t);
379
870
  return () => {
380
- clearTimeout(s);
871
+ clearTimeout(n);
381
872
  };
382
- }, [e, t]), n;
383
- }, vt = (e, t) => {
384
- const [n, r] = g(e);
385
- return l(() => {
386
- e && r(!0);
387
- const s = setTimeout(() => {
388
- e || r(e);
873
+ }, [e, t]), r;
874
+ }, wt = (e, t) => {
875
+ const [r, u] = f(e);
876
+ return d(() => {
877
+ e && u(!0);
878
+ const n = setTimeout(() => {
879
+ e || u(e);
389
880
  }, t);
390
881
  return () => {
391
- clearTimeout(s);
882
+ clearTimeout(n);
392
883
  };
393
- }, [e, t]), n;
884
+ }, [e, t]), r;
394
885
  };
395
- let je = 0;
396
- const T = (e) => `webui-${e ? e + "-" : ""}${++je}`, wt = (e) => {
397
- const [t, n] = g(() => T(e));
398
- return l(() => n(T(e)), [e]), t;
399
- }, w = (e, t, n) => {
400
- const r = v();
401
- l(() => {
402
- r.current = n;
403
- }, [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(() => {
404
895
  if (!(e.current && e.current.addEventListener))
405
896
  return;
406
- const o = (a) => {
407
- if (r.current)
408
- return r.current(a);
897
+ const o = (c) => {
898
+ if (u.current)
899
+ return u.current(c);
409
900
  };
410
901
  if (!e.current)
411
902
  return;
412
- const c = e.current;
413
- return c.addEventListener(t, o), () => {
414
- c && c.removeEventListener(t, o);
903
+ const s = e.current;
904
+ return s.addEventListener(t, o), () => {
905
+ s && s.removeEventListener(t, o);
415
906
  };
416
907
  }, [t, e]);
417
- }, bt = (e) => {
418
- const [t, n, r] = E(!1);
419
- l(() => {
420
- document.activeElement === ue.findDOMNode(e.current) ? n() : r();
421
- }, [e, r, n]), w(e, "focus", n), w(e, "blur", r);
422
- 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(() => {
423
914
  e.current && e.current.focus();
424
- }, [e]), o = p(() => {
915
+ }, [e]), o = m(() => {
425
916
  e.current && e.current.blur();
426
917
  }, [e]);
427
- return { isInFocus: t, focus: s, blur: o };
918
+ return { isInFocus: t, focus: n, blur: o };
428
919
  }, _t = (e) => {
429
- const [t, n, r] = E(!1);
430
- return w(e, "mouseover", n), w(e, "mouseout", r), t;
920
+ const [t, r, u] = $(!1);
921
+ return y(e, "mouseover", r), y(e, "mouseout", u), t;
431
922
  }, $t = (e) => {
432
- const [t, n, r] = E(!1);
433
- return w(e, "mouseenter", n), w(e, "mouseleave", r), t;
434
- }, xt = (e, t) => {
435
- 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(() => {
436
927
  });
437
- l(() => {
438
- n.current = t;
439
- }, [t]), l(() => {
440
- const r = (s) => {
441
- 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);
442
933
  };
443
- return document.addEventListener("mousedown", r), document.addEventListener("touchstart", r), () => {
444
- 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);
445
936
  };
446
937
  }, [...e]);
447
- }, yt = (e, t, n) => {
448
- const r = v(() => {
938
+ }, Et = (e, t, r) => {
939
+ const u = v(() => {
449
940
  });
450
- l(() => {
451
- r.current = t;
452
- }, [t]), l(() => {
453
- const s = (o) => {
454
- !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);
455
946
  };
456
- return document.addEventListener("mousedown", s, n), document.addEventListener("touchstart", s, n), () => {
457
- 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);
458
949
  };
459
- }, [e, n]);
460
- }, M = ["mousemove", "mousedown", "keydown", "touchstart", "scroll"], Et = (e, t) => {
461
- const n = v(() => {
950
+ }, [e, r]);
951
+ }, I = ["mousemove", "mousedown", "keydown", "touchstart", "scroll"], Tt = (e, t) => {
952
+ const r = v(() => {
462
953
  });
463
- l(() => {
464
- n.current = e;
465
- }, [e]), l(() => {
466
- const r = ce(n.current, t);
467
- return M.forEach((s) => window.addEventListener(s, r)), () => {
468
- M.forEach(
469
- (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)
470
961
  );
471
962
  };
472
963
  }, [t]);
473
- }, It = (e, t) => {
474
- const [n, r] = g(!1), { rootMargin: s, root: o, threshold: c } = t || {}, a = z(() => new IntersectionObserver(
475
- ([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),
476
967
  {
477
- rootMargin: s,
968
+ rootMargin: n,
478
969
  root: o,
479
- threshold: c
970
+ threshold: s
480
971
  }
481
- ), [r, s, o, c]);
482
- return l(() => (e.current && a.observe(e.current), () => {
483
- a.disconnect();
484
- }), [a, e]), n;
485
- }, St = (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) => {
486
977
  const t = v(null);
487
- return l(() => {
978
+ return d(() => {
488
979
  e && (typeof e == "function" ? e(t.current) : e.current = t.current);
489
980
  }), t;
490
- }, Ct = (e, t, n = !0) => {
491
- const [r, s] = g(e), o = v(), c = p(
492
- (a, u = t) => {
493
- 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);
494
985
  },
495
- [t, n, e]
986
+ [t, r, e]
496
987
  );
497
- return l(() => () => {
988
+ return d(() => () => {
498
989
  clearTimeout(o.current);
499
- }, []), [r, c];
500
- }, Tt = (e) => {
990
+ }, []), [u, s];
991
+ }, Mt = (e) => {
501
992
  throw new Error(`Switch unhandled case: ${e}`);
502
- }, Mt = (e, t) => t, Ot = (e) => Object.keys(e).filter((t) => e[t]), Dt = (e) => {
993
+ }, Ot = (e, t) => t, Lt = (e) => Object.keys(e).filter((t) => e[t]), At = (e) => {
503
994
  try {
504
995
  const t = parseFloat(e);
505
996
  return isNaN(t) || t == null ? void 0 : t;
506
997
  } catch {
507
998
  }
508
- }, Lt = (e) => {
999
+ }, Pt = (e) => {
509
1000
  try {
510
1001
  const t = parseInt(e, 10);
511
1002
  return isNaN(t) || t == null ? void 0 : t;
@@ -514,47 +1005,47 @@ const T = (e) => `webui-${e ? e + "-" : ""}${++je}`, wt = (e) => {
514
1005
  };
515
1006
  export {
516
1007
  b as Box,
517
- et as Clickable,
518
- tt as Column,
519
- ht as HeaderText,
520
- Ae as Heading,
521
- st as Indent,
522
- pt as LargeText,
523
- ut as Nest,
524
- nt as ResizeAwareBox,
525
- rt as Row,
526
- it as ScreenReaderOnlyText,
527
- Ze as SeparatorLine,
528
- dt as SmallText,
529
- lt as SmallerText,
1008
+ ut as Clickable,
1009
+ nt as Column,
1010
+ vt as HeaderText,
1011
+ Be as Heading,
1012
+ it as Indent,
1013
+ ft as LargeText,
1014
+ lt as Nest,
1015
+ ot as ResizeAwareBox,
1016
+ st as Row,
1017
+ dt as ScreenReaderOnlyText,
1018
+ rt as SeparatorLine,
1019
+ mt as SmallText,
1020
+ ht as SmallerText,
530
1021
  ct as Space,
531
- ot as Spacing,
532
- mt as StandardText,
533
- _ as Text,
534
- at as Txt,
535
- $ as booleanOrNumberToNumber,
536
- Mt as exhaustSwitchCase,
537
- Tt as exhaustSwitchCaseElseThrow,
538
- xe as getDataProps,
539
- ge as getDimensionObject,
540
- Dt as parseFloatElseUndefined,
541
- Lt as parseIntElseUndefined,
542
- Ot as truthyKeysAsList,
543
- ft as useArraySet,
544
- E as useBoolean,
545
- gt as useDebounce,
546
- vt as useDelayedFalse,
547
- wt as useDomId,
548
- we as useElementDimensions,
549
- bt as useElementFocus,
550
- w as useEventListener,
551
- St as useForwardedRef,
1022
+ at as Spacing,
1023
+ gt as StandardText,
1024
+ w as Text,
1025
+ pt as Txt,
1026
+ x as booleanOrNumberToNumber,
1027
+ Ot as exhaustSwitchCase,
1028
+ Mt as exhaustSwitchCaseElseThrow,
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,
1037
+ wt as useDelayedFalse,
1038
+ xt as useDomId,
1039
+ ke as useElementDimensions,
1040
+ kt as useElementFocus,
1041
+ y as useEventListener,
1042
+ It as useForwardedRef,
552
1043
  $t as useMouseIsEntered,
553
1044
  _t as useMouseIsOver,
554
- xt as useMultiOnClickOutside,
555
- yt as useOnClickOutside,
556
- Et as useOnNoMouseMovement,
557
- It as useOnScreen,
558
- Ct as useTimeoutState
1045
+ St as useMultiOnClickOutside,
1046
+ Et as useOnClickOutside,
1047
+ Tt as useOnNoMouseMovement,
1048
+ Ct as useOnScreen,
1049
+ Rt as useTimeoutState
559
1050
  };
560
1051
  //# sourceMappingURL=index.es.js.map