@stenajs-webui/core 20.6.6 → 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/components/util/IsPropValid.d.ts +1 -0
- package/dist/index.es.js +818 -327
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +24 -24
- package/dist/index.js.map +1 -1
- package/package.json +7 -8
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
|
|
3
|
-
import { jsx as
|
|
4
|
-
import { forwardRef as h, useState as
|
|
5
|
-
import
|
|
6
|
-
import F from "
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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 =
|
|
14
|
+
color: e = A("--lhds-color-ui-300"),
|
|
16
15
|
size: t = "100%",
|
|
17
|
-
width:
|
|
18
|
-
vertical:
|
|
19
|
-
},
|
|
16
|
+
width: r = "1px",
|
|
17
|
+
vertical: u = !1
|
|
18
|
+
}, n) => /* @__PURE__ */ a(
|
|
20
19
|
"hr",
|
|
21
20
|
{
|
|
22
|
-
className:
|
|
21
|
+
className: ce.separatorLine,
|
|
23
22
|
"aria-hidden": !0,
|
|
24
23
|
color: e,
|
|
25
24
|
style: {
|
|
26
25
|
backgroundColor: e,
|
|
27
|
-
height:
|
|
28
|
-
width:
|
|
26
|
+
height: u ? t || "100%" : r || "1px",
|
|
27
|
+
width: u ? r || "1px" : t || "100%"
|
|
29
28
|
},
|
|
30
|
-
ref:
|
|
29
|
+
ref: n
|
|
31
30
|
}
|
|
32
31
|
)
|
|
33
|
-
),
|
|
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
|
-
`,
|
|
55
|
+
`, ut = h(
|
|
57
56
|
({
|
|
58
57
|
disableFocusHighlight: e,
|
|
59
58
|
onClick: t,
|
|
60
|
-
onDblClick:
|
|
61
|
-
tooltip:
|
|
62
|
-
disableOpacityOnClick:
|
|
59
|
+
onDblClick: r,
|
|
60
|
+
tooltip: u,
|
|
61
|
+
disableOpacityOnClick: n,
|
|
63
62
|
disablePointer: o,
|
|
64
|
-
opacityOnHover:
|
|
65
|
-
disabled:
|
|
66
|
-
children:
|
|
67
|
-
background:
|
|
68
|
-
hoverBackground:
|
|
69
|
-
focusBackground:
|
|
70
|
-
type:
|
|
71
|
-
...
|
|
72
|
-
},
|
|
73
|
-
|
|
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:
|
|
76
|
-
title:
|
|
77
|
-
disabled:
|
|
78
|
-
disableOpacityOnClick:
|
|
74
|
+
opacityOnHover: s,
|
|
75
|
+
title: u,
|
|
76
|
+
disabled: c,
|
|
77
|
+
disableOpacityOnClick: n,
|
|
79
78
|
onClick: t,
|
|
80
|
-
onDoubleClick:
|
|
79
|
+
onDoubleClick: r,
|
|
81
80
|
disableFocusHighlight: e,
|
|
82
|
-
pointer: !!(t ||
|
|
83
|
-
ref:
|
|
84
|
-
background:
|
|
85
|
-
hoverBackground:
|
|
86
|
-
focusBackground:
|
|
87
|
-
type:
|
|
88
|
-
...
|
|
89
|
-
children:
|
|
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
|
-
),
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
],
|
|
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:
|
|
621
|
+
transform: E
|
|
131
622
|
},
|
|
132
623
|
rowGap: {
|
|
133
624
|
property: "rowGap",
|
|
134
|
-
transform:
|
|
625
|
+
transform: E
|
|
135
626
|
},
|
|
136
627
|
shadow: {
|
|
137
628
|
property: "boxShadow",
|
|
138
|
-
transform: (e) =>
|
|
629
|
+
transform: (e) => fe[e] ?? e
|
|
139
630
|
}
|
|
140
|
-
}), b =
|
|
141
|
-
shouldForwardProp: (e) => typeof e == "string" ?
|
|
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
|
-
${
|
|
150
|
-
${
|
|
151
|
-
${
|
|
152
|
-
${
|
|
153
|
-
${G};
|
|
154
|
-
${j};
|
|
640
|
+
${be};
|
|
641
|
+
${z};
|
|
642
|
+
${F};
|
|
643
|
+
${N};
|
|
155
644
|
${U};
|
|
645
|
+
${V};
|
|
156
646
|
${q};
|
|
157
|
-
${
|
|
647
|
+
${j};
|
|
158
648
|
${B};
|
|
159
|
-
${
|
|
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
|
-
${
|
|
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
|
-
`,
|
|
191
|
-
return /* @__PURE__ */
|
|
192
|
-
}),
|
|
193
|
-
const { x: t, y:
|
|
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:
|
|
196
|
-
height:
|
|
197
|
-
top:
|
|
198
|
-
left:
|
|
686
|
+
width: u,
|
|
687
|
+
height: n,
|
|
688
|
+
top: s,
|
|
689
|
+
left: c,
|
|
199
690
|
x: t,
|
|
200
|
-
y:
|
|
201
|
-
right:
|
|
691
|
+
y: r,
|
|
692
|
+
right: i,
|
|
202
693
|
bottom: o
|
|
203
694
|
};
|
|
204
|
-
},
|
|
205
|
-
const [
|
|
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 =
|
|
209
|
-
(!
|
|
699
|
+
const o = we(e.current);
|
|
700
|
+
(!r || !xe(r, o)) && t && t(o), u(o);
|
|
210
701
|
}
|
|
211
702
|
});
|
|
212
|
-
}, [e,
|
|
213
|
-
return
|
|
214
|
-
|
|
215
|
-
}, [
|
|
216
|
-
dimensions:
|
|
703
|
+
}, [e, r, u, t]);
|
|
704
|
+
return P(() => {
|
|
705
|
+
n();
|
|
706
|
+
}, [n]), {
|
|
707
|
+
dimensions: r
|
|
217
708
|
};
|
|
218
|
-
},
|
|
219
|
-
function({ onResize: t, ...
|
|
220
|
-
const
|
|
221
|
-
return
|
|
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
|
-
),
|
|
224
|
-
return /* @__PURE__ */
|
|
225
|
-
}),
|
|
226
|
-
return /* @__PURE__ */
|
|
227
|
-
}),
|
|
228
|
-
function({ num: t = 1, ...
|
|
229
|
-
return /* @__PURE__ */
|
|
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
|
-
),
|
|
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:
|
|
240
|
-
vertical:
|
|
730
|
+
num: r = 1,
|
|
731
|
+
vertical: u = !1
|
|
241
732
|
}) => {
|
|
242
|
-
const
|
|
243
|
-
return /* @__PURE__ */
|
|
244
|
-
|
|
733
|
+
const n = r * (e ? 0.5 : 1);
|
|
734
|
+
return /* @__PURE__ */ a(
|
|
735
|
+
_e,
|
|
245
736
|
{
|
|
246
737
|
style: {
|
|
247
|
-
"--current-size":
|
|
738
|
+
"--current-size": n,
|
|
248
739
|
height: t ? 1 : void 0,
|
|
249
|
-
width:
|
|
740
|
+
width: u ? 1 : void 0
|
|
250
741
|
}
|
|
251
742
|
}
|
|
252
743
|
);
|
|
253
|
-
},
|
|
254
|
-
visuallyHidden:
|
|
255
|
-
},
|
|
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__ */
|
|
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:
|
|
261
|
-
bold:
|
|
262
|
-
caption:
|
|
263
|
-
overline:
|
|
264
|
-
large:
|
|
265
|
-
medium:
|
|
266
|
-
small:
|
|
267
|
-
smaller:
|
|
268
|
-
},
|
|
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:
|
|
273
|
-
className:
|
|
274
|
-
color:
|
|
763
|
+
size: r = "medium",
|
|
764
|
+
className: u,
|
|
765
|
+
color: n,
|
|
275
766
|
userSelect: o,
|
|
276
|
-
whiteSpace:
|
|
277
|
-
wordBreak:
|
|
278
|
-
textAlign:
|
|
279
|
-
style:
|
|
280
|
-
...
|
|
281
|
-
},
|
|
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:
|
|
285
|
-
ref:
|
|
775
|
+
className: R(k.text, k[t], k[r], u),
|
|
776
|
+
ref: g,
|
|
286
777
|
style: {
|
|
287
|
-
color:
|
|
778
|
+
color: n,
|
|
288
779
|
userSelect: o,
|
|
289
|
-
whiteSpace:
|
|
290
|
-
wordBreak:
|
|
291
|
-
textAlign:
|
|
292
|
-
...
|
|
780
|
+
whiteSpace: s,
|
|
781
|
+
wordBreak: c,
|
|
782
|
+
textAlign: i,
|
|
783
|
+
...l
|
|
293
784
|
},
|
|
294
|
-
...
|
|
785
|
+
...p,
|
|
295
786
|
children: e
|
|
296
787
|
}
|
|
297
788
|
)
|
|
298
|
-
),
|
|
299
|
-
heading:
|
|
300
|
-
h1:
|
|
301
|
-
h2:
|
|
302
|
-
h3:
|
|
303
|
-
h4:
|
|
304
|
-
h5:
|
|
305
|
-
h6:
|
|
306
|
-
},
|
|
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:
|
|
311
|
-
whiteSpace:
|
|
312
|
-
wordBreak:
|
|
801
|
+
color: r,
|
|
802
|
+
whiteSpace: u,
|
|
803
|
+
wordBreak: n,
|
|
313
804
|
style: o,
|
|
314
|
-
children:
|
|
315
|
-
as:
|
|
316
|
-
...
|
|
317
|
-
},
|
|
318
|
-
|
|
805
|
+
children: s,
|
|
806
|
+
as: c,
|
|
807
|
+
...i
|
|
808
|
+
}, l) => /* @__PURE__ */ a(
|
|
809
|
+
c ?? e,
|
|
319
810
|
{
|
|
320
|
-
className:
|
|
321
|
-
style: { color:
|
|
322
|
-
ref:
|
|
323
|
-
...
|
|
324
|
-
children:
|
|
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
|
-
),
|
|
328
|
-
const
|
|
329
|
-
(
|
|
330
|
-
e.some((
|
|
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,
|
|
333
|
-
),
|
|
334
|
-
(
|
|
823
|
+
[e, t, r]
|
|
824
|
+
), n = m(
|
|
825
|
+
(i) => {
|
|
335
826
|
t(
|
|
336
|
-
|
|
827
|
+
i.reduce((l, p) => l.some((g) => r(g, p)) ? l : [...l, p], e)
|
|
337
828
|
);
|
|
338
829
|
},
|
|
339
|
-
[e, t,
|
|
340
|
-
), o =
|
|
341
|
-
(
|
|
342
|
-
const
|
|
343
|
-
|
|
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,
|
|
346
|
-
),
|
|
347
|
-
(
|
|
348
|
-
t(e.filter((
|
|
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,
|
|
351
|
-
),
|
|
352
|
-
(
|
|
353
|
-
e.some((
|
|
841
|
+
[e, t, r]
|
|
842
|
+
), c = m(
|
|
843
|
+
(i) => {
|
|
844
|
+
e.some((p) => r(p, i)) ? o(i) : u(i);
|
|
354
845
|
},
|
|
355
|
-
[e,
|
|
846
|
+
[e, u, o, r]
|
|
356
847
|
);
|
|
357
848
|
return {
|
|
358
|
-
add:
|
|
359
|
-
addMultiple:
|
|
849
|
+
add: u,
|
|
850
|
+
addMultiple: n,
|
|
360
851
|
remove: o,
|
|
361
|
-
removeMultiple:
|
|
362
|
-
toggle:
|
|
852
|
+
removeMultiple: s,
|
|
853
|
+
toggle: c
|
|
363
854
|
};
|
|
364
|
-
},
|
|
365
|
-
const [t,
|
|
366
|
-
|
|
367
|
-
}, [
|
|
368
|
-
|
|
369
|
-
}, [
|
|
370
|
-
|
|
371
|
-
}, [
|
|
372
|
-
return [t,
|
|
373
|
-
},
|
|
374
|
-
const [
|
|
375
|
-
return
|
|
376
|
-
const
|
|
377
|
-
|
|
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(
|
|
871
|
+
clearTimeout(n);
|
|
381
872
|
};
|
|
382
|
-
}, [e, t]),
|
|
383
|
-
},
|
|
384
|
-
const [
|
|
385
|
-
return
|
|
386
|
-
e &&
|
|
387
|
-
const
|
|
388
|
-
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(
|
|
882
|
+
clearTimeout(n);
|
|
392
883
|
};
|
|
393
|
-
}, [e, t]),
|
|
884
|
+
}, [e, t]), r;
|
|
394
885
|
};
|
|
395
|
-
let
|
|
396
|
-
const
|
|
397
|
-
const [t,
|
|
398
|
-
return
|
|
399
|
-
},
|
|
400
|
-
const
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
}, [
|
|
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 = (
|
|
407
|
-
if (
|
|
408
|
-
return
|
|
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
|
|
413
|
-
return
|
|
414
|
-
|
|
903
|
+
const s = e.current;
|
|
904
|
+
return s.addEventListener(t, o), () => {
|
|
905
|
+
s && s.removeEventListener(t, o);
|
|
415
906
|
};
|
|
416
907
|
}, [t, e]);
|
|
417
|
-
},
|
|
418
|
-
const [t,
|
|
419
|
-
|
|
420
|
-
document.activeElement ===
|
|
421
|
-
}, [e,
|
|
422
|
-
const
|
|
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 =
|
|
915
|
+
}, [e]), o = m(() => {
|
|
425
916
|
e.current && e.current.blur();
|
|
426
917
|
}, [e]);
|
|
427
|
-
return { isInFocus: t, focus:
|
|
918
|
+
return { isInFocus: t, focus: n, blur: o };
|
|
428
919
|
}, _t = (e) => {
|
|
429
|
-
const [t,
|
|
430
|
-
return
|
|
920
|
+
const [t, r, u] = $(!1);
|
|
921
|
+
return y(e, "mouseover", r), y(e, "mouseout", u), t;
|
|
431
922
|
}, $t = (e) => {
|
|
432
|
-
const [t,
|
|
433
|
-
return
|
|
434
|
-
},
|
|
435
|
-
const
|
|
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
|
-
|
|
438
|
-
|
|
439
|
-
}, [t]),
|
|
440
|
-
const
|
|
441
|
-
e.filter((
|
|
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",
|
|
444
|
-
document.removeEventListener("mousedown",
|
|
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
|
-
},
|
|
448
|
-
const
|
|
938
|
+
}, Et = (e, t, r) => {
|
|
939
|
+
const u = v(() => {
|
|
449
940
|
});
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
}, [t]),
|
|
453
|
-
const
|
|
454
|
-
!e.current || e.current.contains(o.target) ||
|
|
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",
|
|
457
|
-
document.removeEventListener("mousedown",
|
|
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,
|
|
460
|
-
},
|
|
461
|
-
const
|
|
950
|
+
}, [e, r]);
|
|
951
|
+
}, I = ["mousemove", "mousedown", "keydown", "touchstart", "scroll"], Tt = (e, t) => {
|
|
952
|
+
const r = v(() => {
|
|
462
953
|
});
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
}, [e]),
|
|
466
|
-
const
|
|
467
|
-
return
|
|
468
|
-
|
|
469
|
-
(
|
|
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
|
-
},
|
|
474
|
-
const [
|
|
475
|
-
([
|
|
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:
|
|
968
|
+
rootMargin: n,
|
|
478
969
|
root: o,
|
|
479
|
-
threshold:
|
|
970
|
+
threshold: s
|
|
480
971
|
}
|
|
481
|
-
), [
|
|
482
|
-
return
|
|
483
|
-
|
|
484
|
-
}), [
|
|
485
|
-
},
|
|
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
|
|
978
|
+
return d(() => {
|
|
488
979
|
e && (typeof e == "function" ? e(t.current) : e.current = t.current);
|
|
489
980
|
}), t;
|
|
490
|
-
},
|
|
491
|
-
const [
|
|
492
|
-
(
|
|
493
|
-
|
|
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,
|
|
986
|
+
[t, r, e]
|
|
496
987
|
);
|
|
497
|
-
return
|
|
988
|
+
return d(() => () => {
|
|
498
989
|
clearTimeout(o.current);
|
|
499
|
-
}, []), [
|
|
500
|
-
},
|
|
990
|
+
}, []), [u, s];
|
|
991
|
+
}, Mt = (e) => {
|
|
501
992
|
throw new Error(`Switch unhandled case: ${e}`);
|
|
502
|
-
},
|
|
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
|
-
},
|
|
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
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
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
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
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
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
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
|