@marigold/components 5.0.0 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1498 -1271
- package/dist/index.mjs +1494 -1271
- package/package.json +5 -5
package/dist/index.mjs
CHANGED
|
@@ -25,23 +25,27 @@ var Aside = ({
|
|
|
25
25
|
wrap = "50%"
|
|
26
26
|
}) => {
|
|
27
27
|
const [aside, content] = SIDE_MAP[side];
|
|
28
|
-
return /* @__PURE__ */ React.createElement(
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
28
|
+
return /* @__PURE__ */ React.createElement(
|
|
29
|
+
Box,
|
|
30
|
+
{
|
|
31
|
+
css: {
|
|
32
|
+
display: "flex",
|
|
33
|
+
flexWrap: "wrap",
|
|
34
|
+
gap: space,
|
|
35
|
+
alignItems: stretch ? void 0 : "flex-start",
|
|
36
|
+
[`> ${aside}`]: {
|
|
37
|
+
flexBasis: sideWidth,
|
|
38
|
+
flexGrow: 1
|
|
39
|
+
},
|
|
40
|
+
[`> ${content}`]: {
|
|
41
|
+
flexBasis: 0,
|
|
42
|
+
flexGrow: 999,
|
|
43
|
+
minInlineSize: wrap
|
|
44
|
+
}
|
|
42
45
|
}
|
|
43
|
-
}
|
|
44
|
-
|
|
46
|
+
},
|
|
47
|
+
children
|
|
48
|
+
);
|
|
45
49
|
};
|
|
46
50
|
|
|
47
51
|
// src/Aspect/Aspect.tsx
|
|
@@ -51,23 +55,24 @@ var Aspect = ({
|
|
|
51
55
|
ratio = "square",
|
|
52
56
|
maxWidth,
|
|
53
57
|
children
|
|
54
|
-
}) => /* @__PURE__ */ React2.createElement(
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
}) => /* @__PURE__ */ React2.createElement(
|
|
59
|
+
Box,
|
|
60
|
+
{
|
|
61
|
+
css: {
|
|
62
|
+
aspectRatio: aspect[ratio],
|
|
63
|
+
overflow: "hidden",
|
|
64
|
+
maxWidth
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
children
|
|
68
|
+
);
|
|
61
69
|
|
|
62
70
|
// src/Badge/Badge.tsx
|
|
63
71
|
import React3 from "react";
|
|
64
72
|
import { useComponentStyles } from "@marigold/system";
|
|
65
73
|
var Badge = ({ variant, size, children, ...props }) => {
|
|
66
74
|
const styles = useComponentStyles("Badge", { variant, size });
|
|
67
|
-
return /* @__PURE__ */ React3.createElement(Box, {
|
|
68
|
-
...props,
|
|
69
|
-
css: styles
|
|
70
|
-
}, children);
|
|
75
|
+
return /* @__PURE__ */ React3.createElement(Box, { ...props, css: styles }, children);
|
|
71
76
|
};
|
|
72
77
|
|
|
73
78
|
// src/Breakout/Breakout.tsx
|
|
@@ -92,17 +97,21 @@ var Breakout = ({
|
|
|
92
97
|
}) => {
|
|
93
98
|
const alignItems = useAlignment(alignY);
|
|
94
99
|
const justifyContent = useAlignment(alignX);
|
|
95
|
-
return /* @__PURE__ */ React4.createElement(
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
100
|
+
return /* @__PURE__ */ React4.createElement(
|
|
101
|
+
Box,
|
|
102
|
+
{
|
|
103
|
+
css: {
|
|
104
|
+
alignItems,
|
|
105
|
+
justifyContent,
|
|
106
|
+
height,
|
|
107
|
+
width: "100%",
|
|
108
|
+
display: alignY || alignX ? "flex" : "block",
|
|
109
|
+
gridColumn: "1 / -1 !important"
|
|
110
|
+
},
|
|
111
|
+
...props
|
|
103
112
|
},
|
|
104
|
-
|
|
105
|
-
|
|
113
|
+
children
|
|
114
|
+
);
|
|
106
115
|
};
|
|
107
116
|
|
|
108
117
|
// src/Body/Body.tsx
|
|
@@ -113,11 +122,7 @@ import {
|
|
|
113
122
|
} from "@marigold/system";
|
|
114
123
|
var Body = ({ children, variant, size, ...props }) => {
|
|
115
124
|
const styles = useComponentStyles2("Body", { variant, size });
|
|
116
|
-
return /* @__PURE__ */ React5.createElement(Box2, {
|
|
117
|
-
as: "section",
|
|
118
|
-
...props,
|
|
119
|
-
css: styles
|
|
120
|
-
}, children);
|
|
125
|
+
return /* @__PURE__ */ React5.createElement(Box2, { as: "section", ...props, css: styles }, children);
|
|
121
126
|
};
|
|
122
127
|
|
|
123
128
|
// src/Button/Button.tsx
|
|
@@ -154,6 +159,10 @@ var Button = forwardRef(
|
|
|
154
159
|
});
|
|
155
160
|
const { buttonProps, isPressed } = useButton(
|
|
156
161
|
{
|
|
162
|
+
/**
|
|
163
|
+
* `react-aria` only expected `Element` but we casted
|
|
164
|
+
* it to a `HTMLButtonElement` internally.
|
|
165
|
+
*/
|
|
157
166
|
...props,
|
|
158
167
|
onClick,
|
|
159
168
|
onPress,
|
|
@@ -172,24 +181,28 @@ var Button = forwardRef(
|
|
|
172
181
|
focusVisible: isFocusVisible,
|
|
173
182
|
hover: isHovered
|
|
174
183
|
});
|
|
175
|
-
return /* @__PURE__ */ React6.createElement(
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
184
|
+
return /* @__PURE__ */ React6.createElement(
|
|
185
|
+
Box3,
|
|
186
|
+
{
|
|
187
|
+
...mergeProps(buttonProps, focusProps, hoverProps, props),
|
|
188
|
+
...stateProps,
|
|
189
|
+
as,
|
|
190
|
+
ref: buttonRef,
|
|
191
|
+
__baseCSS: {
|
|
192
|
+
display: "inline-flex",
|
|
193
|
+
alignItems: "center",
|
|
194
|
+
justifyContent: "center",
|
|
195
|
+
gap: "0.5ch",
|
|
196
|
+
cursor: disabled ? "not-allowed" : "pointer",
|
|
197
|
+
width: fullWidth ? "100%" : void 0,
|
|
198
|
+
"&:focus": {
|
|
199
|
+
outline: 0
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
css: styles
|
|
190
203
|
},
|
|
191
|
-
|
|
192
|
-
|
|
204
|
+
children
|
|
205
|
+
);
|
|
193
206
|
}
|
|
194
207
|
);
|
|
195
208
|
|
|
@@ -213,10 +226,7 @@ var Card = ({
|
|
|
213
226
|
...props
|
|
214
227
|
}) => {
|
|
215
228
|
const styles = useComponentStyles4("Card", { variant, size });
|
|
216
|
-
return /* @__PURE__ */ React7.createElement(Box4, {
|
|
217
|
-
...props,
|
|
218
|
-
css: [styles, { p, px, py, pt, pb, pl, pr }]
|
|
219
|
-
}, children);
|
|
229
|
+
return /* @__PURE__ */ React7.createElement(Box4, { ...props, css: [styles, { p, px, py, pt, pb, pl, pr }] }, children);
|
|
220
230
|
};
|
|
221
231
|
|
|
222
232
|
// src/Center/Center.tsx
|
|
@@ -226,19 +236,23 @@ var Center = ({
|
|
|
226
236
|
space = "none",
|
|
227
237
|
children,
|
|
228
238
|
...props
|
|
229
|
-
}) => /* @__PURE__ */ React8.createElement(
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
+
}) => /* @__PURE__ */ React8.createElement(
|
|
240
|
+
Box,
|
|
241
|
+
{
|
|
242
|
+
css: {
|
|
243
|
+
boxSizing: "content-box",
|
|
244
|
+
display: "flex",
|
|
245
|
+
flexDirection: "column",
|
|
246
|
+
alignItems: "center",
|
|
247
|
+
justifyContent: "center",
|
|
248
|
+
marginInline: "auto",
|
|
249
|
+
maxInlineSize: maxWidth,
|
|
250
|
+
gap: space
|
|
251
|
+
},
|
|
252
|
+
...props
|
|
239
253
|
},
|
|
240
|
-
|
|
241
|
-
|
|
254
|
+
children
|
|
255
|
+
);
|
|
242
256
|
|
|
243
257
|
// src/Checkbox/Checkbox.tsx
|
|
244
258
|
import React14, { forwardRef as forwardRef2 } from "react";
|
|
@@ -281,23 +295,21 @@ var Label = ({
|
|
|
281
295
|
...props
|
|
282
296
|
}) => {
|
|
283
297
|
const styles = useComponentStyles5("Label", { size, variant });
|
|
284
|
-
return /* @__PURE__ */ React9.createElement(
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
298
|
+
return /* @__PURE__ */ React9.createElement(
|
|
299
|
+
Box5,
|
|
300
|
+
{
|
|
301
|
+
...props,
|
|
302
|
+
as,
|
|
303
|
+
"aria-required": required,
|
|
304
|
+
__baseCSS: {
|
|
305
|
+
display: "flex",
|
|
306
|
+
width: labelWidth
|
|
307
|
+
},
|
|
308
|
+
css: styles
|
|
291
309
|
},
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
role: "presentation",
|
|
296
|
-
size: 16,
|
|
297
|
-
fill: "error"
|
|
298
|
-
}, /* @__PURE__ */ React9.createElement("path", {
|
|
299
|
-
d: "M10.8 3.84003H13.2V9.85259L18.1543 7.01815L19.3461 9.10132L14.3584 11.9549L19.3371 14.7999L18.1463 16.8836L13.2 14.0572V20.16H10.8V13.9907L5.76116 16.8735L4.56935 14.7903L9.5232 11.9561L4.56 9.12003L5.75073 7.03624L10.8 9.92154V3.84003Z"
|
|
300
|
-
})));
|
|
310
|
+
children,
|
|
311
|
+
required && /* @__PURE__ */ React9.createElement(SVG, { viewBox: "0 0 24 24", role: "presentation", size: 16, fill: "error" }, /* @__PURE__ */ React9.createElement("path", { d: "M10.8 3.84003H13.2V9.85259L18.1543 7.01815L19.3461 9.10132L14.3584 11.9549L19.3371 14.7999L18.1463 16.8836L13.2 14.0572V20.16H10.8V13.9907L5.76116 16.8735L4.56935 14.7903L9.5232 11.9561L4.56 9.12003L5.75073 7.03624L10.8 9.92154V3.84003Z" }))
|
|
312
|
+
);
|
|
301
313
|
};
|
|
302
314
|
|
|
303
315
|
// src/HelpText/HelpText.tsx
|
|
@@ -325,18 +337,24 @@ var HelpText = ({
|
|
|
325
337
|
{ variant, size },
|
|
326
338
|
{ parts: ["container", "icon"] }
|
|
327
339
|
);
|
|
328
|
-
return /* @__PURE__ */ React10.createElement(
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
+
return /* @__PURE__ */ React10.createElement(
|
|
341
|
+
Box6,
|
|
342
|
+
{
|
|
343
|
+
...hasErrorMessage ? errorMessageProps : descriptionProps,
|
|
344
|
+
...props,
|
|
345
|
+
__baseCSS: { display: "flex", alignItems: "center", gap: 4 },
|
|
346
|
+
css: styles.container
|
|
347
|
+
},
|
|
348
|
+
hasErrorMessage ? /* @__PURE__ */ React10.createElement(React10.Fragment, null, /* @__PURE__ */ React10.createElement(
|
|
349
|
+
SVG2,
|
|
350
|
+
{
|
|
351
|
+
viewBox: "0 0 24 24",
|
|
352
|
+
role: "presentation",
|
|
353
|
+
size: ((_a = styles == null ? void 0 : styles.icon) == null ? void 0 : _a.size) || 16
|
|
354
|
+
},
|
|
355
|
+
/* @__PURE__ */ React10.createElement("path", { d: "M2.25 20.3097H21.75L12 3.46875L2.25 20.3097ZM12.8864 17.2606H11.1136V15.4879H12.8864V17.2606ZM12.8864 13.7151H11.1136V10.1697H12.8864V13.7151Z" })
|
|
356
|
+
), errorMessage) : /* @__PURE__ */ React10.createElement(React10.Fragment, null, description)
|
|
357
|
+
);
|
|
340
358
|
};
|
|
341
359
|
|
|
342
360
|
// src/FieldBase/FieldGroup.tsx
|
|
@@ -345,9 +363,7 @@ import { createContext, useContext } from "react";
|
|
|
345
363
|
var FieldGroupContext = createContext({});
|
|
346
364
|
var useFieldGroupContext = () => useContext(FieldGroupContext);
|
|
347
365
|
var FieldGroup = ({ labelWidth, children }) => {
|
|
348
|
-
return /* @__PURE__ */ React11.createElement(FieldGroupContext.Provider, {
|
|
349
|
-
value: { labelWidth }
|
|
350
|
-
}, children);
|
|
366
|
+
return /* @__PURE__ */ React11.createElement(FieldGroupContext.Provider, { value: { labelWidth } }, children);
|
|
351
367
|
};
|
|
352
368
|
|
|
353
369
|
// src/FieldBase/FieldBase.tsx
|
|
@@ -371,35 +387,45 @@ var FieldBase = ({
|
|
|
371
387
|
const hasHelpText = !!description || errorMessage && error;
|
|
372
388
|
const style = useComponentStyles7("Field", { variant, size });
|
|
373
389
|
const { labelWidth } = useFieldGroupContext();
|
|
374
|
-
return /* @__PURE__ */ React12.createElement(
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
390
|
+
return /* @__PURE__ */ React12.createElement(
|
|
391
|
+
Box7,
|
|
392
|
+
{
|
|
393
|
+
...props,
|
|
394
|
+
__baseCSS: {
|
|
395
|
+
display: "flex",
|
|
396
|
+
flexDirection: "column",
|
|
397
|
+
width,
|
|
398
|
+
position: "relative"
|
|
399
|
+
},
|
|
400
|
+
css: style
|
|
381
401
|
},
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
402
|
+
label && /* @__PURE__ */ React12.createElement(
|
|
403
|
+
Label,
|
|
404
|
+
{
|
|
405
|
+
required,
|
|
406
|
+
variant,
|
|
407
|
+
size,
|
|
408
|
+
labelWidth,
|
|
409
|
+
...labelProps,
|
|
410
|
+
...stateProps
|
|
411
|
+
},
|
|
412
|
+
label
|
|
413
|
+
),
|
|
414
|
+
/* @__PURE__ */ React12.createElement(Box7, { __baseCSS: { display: "flex", flexDirection: "column" } }, children, hasHelpText && /* @__PURE__ */ React12.createElement(
|
|
415
|
+
HelpText,
|
|
416
|
+
{
|
|
417
|
+
...stateProps,
|
|
418
|
+
variant,
|
|
419
|
+
size,
|
|
420
|
+
disabled,
|
|
421
|
+
description,
|
|
422
|
+
descriptionProps,
|
|
423
|
+
error,
|
|
424
|
+
errorMessage,
|
|
425
|
+
errorMessageProps
|
|
426
|
+
}
|
|
427
|
+
))
|
|
428
|
+
);
|
|
403
429
|
};
|
|
404
430
|
|
|
405
431
|
// src/Checkbox/CheckboxGroup.tsx
|
|
@@ -429,64 +455,74 @@ var CheckboxGroup = ({
|
|
|
429
455
|
readOnly,
|
|
430
456
|
error
|
|
431
457
|
});
|
|
432
|
-
return /* @__PURE__ */ React13.createElement(
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
458
|
+
return /* @__PURE__ */ React13.createElement(
|
|
459
|
+
FieldBase,
|
|
460
|
+
{
|
|
461
|
+
label: props.label,
|
|
462
|
+
labelProps: { as: "span", ...labelProps },
|
|
463
|
+
description: props.description,
|
|
464
|
+
descriptionProps,
|
|
465
|
+
error,
|
|
466
|
+
errorMessage: props.errorMessage,
|
|
467
|
+
errorMessageProps,
|
|
468
|
+
disabled,
|
|
469
|
+
stateProps,
|
|
470
|
+
required,
|
|
471
|
+
...groupProps
|
|
472
|
+
},
|
|
473
|
+
/* @__PURE__ */ React13.createElement(
|
|
474
|
+
Box8,
|
|
475
|
+
{
|
|
476
|
+
role: "presentation",
|
|
477
|
+
__baseCSS: {
|
|
478
|
+
display: "flex",
|
|
479
|
+
flexDirection: "column",
|
|
480
|
+
alignItems: "start"
|
|
481
|
+
}
|
|
482
|
+
},
|
|
483
|
+
/* @__PURE__ */ React13.createElement(CheckboxGroupContext.Provider, { value: { error, ...state } }, children)
|
|
484
|
+
)
|
|
485
|
+
);
|
|
454
486
|
};
|
|
455
487
|
|
|
456
488
|
// src/Checkbox/Checkbox.tsx
|
|
457
|
-
var CheckMark = () => /* @__PURE__ */ React14.createElement("svg", {
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
var Icon = ({ css, checked, indeterminate, ...props }) => /* @__PURE__ */ React14.createElement(
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
489
|
+
var CheckMark = () => /* @__PURE__ */ React14.createElement("svg", { viewBox: "0 0 12 10" }, /* @__PURE__ */ React14.createElement(
|
|
490
|
+
"path",
|
|
491
|
+
{
|
|
492
|
+
fill: "currentColor",
|
|
493
|
+
stroke: "none",
|
|
494
|
+
d: "M11.915 1.548 10.367 0 4.045 6.315 1.557 3.827 0 5.373l4.045 4.046 7.87-7.871Z"
|
|
495
|
+
}
|
|
496
|
+
));
|
|
497
|
+
var IndeterminateMark = () => /* @__PURE__ */ React14.createElement("svg", { width: "12", height: "3", viewBox: "0 0 12 3" }, /* @__PURE__ */ React14.createElement(
|
|
498
|
+
"path",
|
|
499
|
+
{
|
|
500
|
+
fill: "currentColor",
|
|
501
|
+
stroke: "none",
|
|
502
|
+
d: "M11.5 2.04018H0.5V0.46875H11.5V2.04018Z"
|
|
503
|
+
}
|
|
504
|
+
));
|
|
505
|
+
var Icon = ({ css, checked, indeterminate, ...props }) => /* @__PURE__ */ React14.createElement(
|
|
506
|
+
Box9,
|
|
507
|
+
{
|
|
508
|
+
"aria-hidden": "true",
|
|
509
|
+
__baseCSS: {
|
|
510
|
+
flex: "0 0 16px",
|
|
511
|
+
width: 16,
|
|
512
|
+
height: 16,
|
|
513
|
+
bg: "#fff",
|
|
514
|
+
border: "1px solid #000",
|
|
515
|
+
borderRadius: 3,
|
|
516
|
+
display: "flex",
|
|
517
|
+
alignItems: "center",
|
|
518
|
+
justifyContent: "center",
|
|
519
|
+
p: 1
|
|
520
|
+
},
|
|
521
|
+
css,
|
|
522
|
+
...props
|
|
486
523
|
},
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
}, indeterminate ? /* @__PURE__ */ React14.createElement(IndeterminateMark, null) : checked ? /* @__PURE__ */ React14.createElement(CheckMark, null) : null);
|
|
524
|
+
indeterminate ? /* @__PURE__ */ React14.createElement(IndeterminateMark, null) : checked ? /* @__PURE__ */ React14.createElement(CheckMark, null) : null
|
|
525
|
+
);
|
|
490
526
|
var Checkbox = forwardRef2(
|
|
491
527
|
({
|
|
492
528
|
size,
|
|
@@ -513,6 +549,10 @@ var Checkbox = forwardRef2(
|
|
|
513
549
|
{
|
|
514
550
|
...props,
|
|
515
551
|
...checkboxProps,
|
|
552
|
+
/**
|
|
553
|
+
* value is optional for standalone checkboxes, but required when
|
|
554
|
+
* used inside a group.
|
|
555
|
+
*/
|
|
516
556
|
value: props.value
|
|
517
557
|
},
|
|
518
558
|
groupState,
|
|
@@ -551,41 +591,50 @@ var Checkbox = forwardRef2(
|
|
|
551
591
|
readOnly,
|
|
552
592
|
indeterminate
|
|
553
593
|
});
|
|
554
|
-
return /* @__PURE__ */ React14.createElement(
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
ref: inputRef,
|
|
568
|
-
css: {
|
|
569
|
-
position: "absolute",
|
|
570
|
-
width: "100%",
|
|
571
|
-
height: "100%",
|
|
572
|
-
top: 0,
|
|
573
|
-
left: 0,
|
|
574
|
-
zIndex: 1,
|
|
575
|
-
opacity: 1e-4,
|
|
576
|
-
cursor: inputProps.disabled ? "not-allowed" : "pointer"
|
|
594
|
+
return /* @__PURE__ */ React14.createElement(
|
|
595
|
+
Box9,
|
|
596
|
+
{
|
|
597
|
+
as: "label",
|
|
598
|
+
__baseCSS: {
|
|
599
|
+
display: "flex",
|
|
600
|
+
alignItems: "center",
|
|
601
|
+
gap: "1ch",
|
|
602
|
+
position: "relative"
|
|
603
|
+
},
|
|
604
|
+
css: styles.container,
|
|
605
|
+
...hoverProps,
|
|
606
|
+
...stateProps
|
|
577
607
|
},
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
608
|
+
/* @__PURE__ */ React14.createElement(
|
|
609
|
+
Box9,
|
|
610
|
+
{
|
|
611
|
+
as: "input",
|
|
612
|
+
ref: inputRef,
|
|
613
|
+
css: {
|
|
614
|
+
position: "absolute",
|
|
615
|
+
width: "100%",
|
|
616
|
+
height: "100%",
|
|
617
|
+
top: 0,
|
|
618
|
+
left: 0,
|
|
619
|
+
zIndex: 1,
|
|
620
|
+
opacity: 1e-4,
|
|
621
|
+
cursor: inputProps.disabled ? "not-allowed" : "pointer"
|
|
622
|
+
},
|
|
623
|
+
...inputProps,
|
|
624
|
+
...focusProps
|
|
625
|
+
}
|
|
626
|
+
),
|
|
627
|
+
/* @__PURE__ */ React14.createElement(
|
|
628
|
+
Icon,
|
|
629
|
+
{
|
|
630
|
+
checked: inputProps.checked,
|
|
631
|
+
indeterminate,
|
|
632
|
+
css: styles.checkbox,
|
|
633
|
+
...stateProps
|
|
634
|
+
}
|
|
635
|
+
),
|
|
636
|
+
props.children && /* @__PURE__ */ React14.createElement(Box9, { css: styles.label, ...stateProps }, props.children)
|
|
637
|
+
);
|
|
589
638
|
}
|
|
590
639
|
);
|
|
591
640
|
|
|
@@ -610,23 +659,36 @@ var Columns = ({
|
|
|
610
659
|
)}`
|
|
611
660
|
);
|
|
612
661
|
}
|
|
613
|
-
return /* @__PURE__ */ React15.createElement(
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
662
|
+
return /* @__PURE__ */ React15.createElement(
|
|
663
|
+
Box,
|
|
664
|
+
{
|
|
665
|
+
css: {
|
|
666
|
+
display: "flex",
|
|
667
|
+
flexWrap: "wrap",
|
|
668
|
+
alignItems: "stretch",
|
|
669
|
+
height: stretch ? "100%" : void 0,
|
|
670
|
+
gap: space,
|
|
671
|
+
"> *": {
|
|
672
|
+
/**
|
|
673
|
+
* "Container Query": collapses at given width
|
|
674
|
+
* (https://heydonworks.com/article/the-flexbox-holy-albatross/)
|
|
675
|
+
*/
|
|
676
|
+
flexBasis: `calc(( ${collapseAt} - 100%) * 999)`
|
|
677
|
+
}
|
|
678
|
+
},
|
|
679
|
+
...props
|
|
623
680
|
},
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
681
|
+
Children.map(children, (child, idx) => /* @__PURE__ */ React15.createElement(
|
|
682
|
+
Box,
|
|
683
|
+
{
|
|
684
|
+
css: {
|
|
685
|
+
// Stretch each column to the given value
|
|
686
|
+
flexGrow: columns[idx]
|
|
687
|
+
}
|
|
688
|
+
},
|
|
689
|
+
isValidElement(child) ? cloneElement(child) : child
|
|
690
|
+
))
|
|
691
|
+
);
|
|
630
692
|
};
|
|
631
693
|
|
|
632
694
|
// src/Container/Container.tsx
|
|
@@ -661,17 +723,21 @@ var Container = ({
|
|
|
661
723
|
...props
|
|
662
724
|
}) => {
|
|
663
725
|
const maxWidth = tokenSize[contentType][size];
|
|
664
|
-
return /* @__PURE__ */ React16.createElement(
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
726
|
+
return /* @__PURE__ */ React16.createElement(
|
|
727
|
+
Box,
|
|
728
|
+
{
|
|
729
|
+
css: {
|
|
730
|
+
display: "grid",
|
|
731
|
+
gridTemplateColumns: ALIGN[align](maxWidth).gridTemplateColumns,
|
|
732
|
+
placeItems: ALIGN_ITEMS[alignItems],
|
|
733
|
+
"> *": {
|
|
734
|
+
gridColumn: ALIGN[align](maxWidth).gridColumn
|
|
735
|
+
}
|
|
736
|
+
},
|
|
737
|
+
...props
|
|
672
738
|
},
|
|
673
|
-
|
|
674
|
-
|
|
739
|
+
children
|
|
740
|
+
);
|
|
675
741
|
};
|
|
676
742
|
|
|
677
743
|
// src/Dialog/Dialog.tsx
|
|
@@ -690,11 +756,7 @@ import {
|
|
|
690
756
|
} from "@marigold/system";
|
|
691
757
|
var Header = ({ children, variant, size, ...props }) => {
|
|
692
758
|
const styles = useComponentStyles9("Header", { variant, size });
|
|
693
|
-
return /* @__PURE__ */ React17.createElement(Box, {
|
|
694
|
-
as: "header",
|
|
695
|
-
...props,
|
|
696
|
-
css: styles
|
|
697
|
-
}, children);
|
|
759
|
+
return /* @__PURE__ */ React17.createElement(Box, { as: "header", ...props, css: styles }, children);
|
|
698
760
|
};
|
|
699
761
|
|
|
700
762
|
// src/Headline/Headline.tsx
|
|
@@ -716,11 +778,15 @@ var Headline = ({
|
|
|
716
778
|
variant,
|
|
717
779
|
size: size != null ? size : `level-${level}`
|
|
718
780
|
});
|
|
719
|
-
return /* @__PURE__ */ React18.createElement(
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
781
|
+
return /* @__PURE__ */ React18.createElement(
|
|
782
|
+
Box10,
|
|
783
|
+
{
|
|
784
|
+
as: `h${level}`,
|
|
785
|
+
...props,
|
|
786
|
+
css: [styles, { color, textAlign: align }]
|
|
787
|
+
},
|
|
788
|
+
children
|
|
789
|
+
);
|
|
724
790
|
};
|
|
725
791
|
|
|
726
792
|
// src/Dialog/Context.ts
|
|
@@ -744,15 +810,18 @@ import React19 from "react";
|
|
|
744
810
|
import { Box as Box11, useComponentStyles as useComponentStyles11 } from "@marigold/system";
|
|
745
811
|
var Underlay = ({ size, variant, ...props }) => {
|
|
746
812
|
const styles = useComponentStyles11("Underlay", { size, variant });
|
|
747
|
-
return /* @__PURE__ */ React19.createElement(
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
813
|
+
return /* @__PURE__ */ React19.createElement(
|
|
814
|
+
Box11,
|
|
815
|
+
{
|
|
816
|
+
__baseCSS: {
|
|
817
|
+
position: "fixed",
|
|
818
|
+
inset: 0,
|
|
819
|
+
zIndex: 1
|
|
820
|
+
},
|
|
821
|
+
css: styles,
|
|
822
|
+
...props
|
|
823
|
+
}
|
|
824
|
+
);
|
|
756
825
|
};
|
|
757
826
|
|
|
758
827
|
// src/Overlay/Modal.tsx
|
|
@@ -770,28 +839,23 @@ var Modal = forwardRef3(
|
|
|
770
839
|
);
|
|
771
840
|
usePreventScroll();
|
|
772
841
|
const { modalProps } = useModal({});
|
|
773
|
-
return /* @__PURE__ */ React20.createElement(FocusScope, {
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
zIndex: 2,
|
|
788
|
-
pointerEvents: "none"
|
|
842
|
+
return /* @__PURE__ */ React20.createElement(FocusScope, { contain: true, restoreFocus: true, autoFocus: true }, /* @__PURE__ */ React20.createElement(Underlay, { ...underlayProps, variant: "modal" }), /* @__PURE__ */ React20.createElement(
|
|
843
|
+
"div",
|
|
844
|
+
{
|
|
845
|
+
style: {
|
|
846
|
+
display: "flex",
|
|
847
|
+
alignItems: "center",
|
|
848
|
+
justifyContent: "center",
|
|
849
|
+
position: "fixed",
|
|
850
|
+
inset: 0,
|
|
851
|
+
zIndex: 2,
|
|
852
|
+
pointerEvents: "none"
|
|
853
|
+
},
|
|
854
|
+
ref: modalRef,
|
|
855
|
+
...mergeProps2(props, overlayProps, modalProps)
|
|
789
856
|
},
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
}, /* @__PURE__ */ React20.createElement("div", {
|
|
793
|
-
style: { pointerEvents: "auto" }
|
|
794
|
-
}, children)));
|
|
857
|
+
/* @__PURE__ */ React20.createElement("div", { style: { pointerEvents: "auto" } }, children)
|
|
858
|
+
));
|
|
795
859
|
}
|
|
796
860
|
);
|
|
797
861
|
|
|
@@ -819,21 +883,18 @@ var Overlay = ({ children, container, open }) => {
|
|
|
819
883
|
if (!mountOverlay) {
|
|
820
884
|
return null;
|
|
821
885
|
}
|
|
822
|
-
return /* @__PURE__ */ React21.createElement(ReactAriaOverlay, {
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
...transitionStyles[state]
|
|
835
|
-
}
|
|
836
|
-
}, children)));
|
|
886
|
+
return /* @__PURE__ */ React21.createElement(ReactAriaOverlay, { portalContainer: container }, /* @__PURE__ */ React21.createElement(Transition, { nodeRef, timeout: duration, in: open, appear: true }, (state) => /* @__PURE__ */ React21.createElement(
|
|
887
|
+
"div",
|
|
888
|
+
{
|
|
889
|
+
ref: nodeRef,
|
|
890
|
+
"data-testid": "overlay",
|
|
891
|
+
style: {
|
|
892
|
+
...defaultStyle,
|
|
893
|
+
...transitionStyles[state]
|
|
894
|
+
}
|
|
895
|
+
},
|
|
896
|
+
children
|
|
897
|
+
)));
|
|
837
898
|
};
|
|
838
899
|
|
|
839
900
|
// src/Overlay/Popover.tsx
|
|
@@ -848,13 +909,7 @@ var Popover = forwardRef4(
|
|
|
848
909
|
(props, ref) => {
|
|
849
910
|
const popoverRef = useObjectRef4(ref);
|
|
850
911
|
let { children, state, ...otherProps } = props;
|
|
851
|
-
return /* @__PURE__ */ React22.createElement(Overlay, {
|
|
852
|
-
open: state.isOpen,
|
|
853
|
-
...otherProps
|
|
854
|
-
}, /* @__PURE__ */ React22.createElement(PopoverWrapper, {
|
|
855
|
-
ref: popoverRef,
|
|
856
|
-
...props
|
|
857
|
-
}, children));
|
|
912
|
+
return /* @__PURE__ */ React22.createElement(Overlay, { open: state.isOpen, ...otherProps }, /* @__PURE__ */ React22.createElement(PopoverWrapper, { ref: popoverRef, ...props }, children));
|
|
858
913
|
}
|
|
859
914
|
);
|
|
860
915
|
var PopoverWrapper = forwardRef4(
|
|
@@ -875,23 +930,21 @@ var PopoverWrapper = forwardRef4(
|
|
|
875
930
|
},
|
|
876
931
|
state
|
|
877
932
|
);
|
|
878
|
-
return /* @__PURE__ */ React22.createElement(FocusScope2, {
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
933
|
+
return /* @__PURE__ */ React22.createElement(FocusScope2, { restoreFocus: true }, !isNonModal && /* @__PURE__ */ React22.createElement(Underlay, { ...underlayProps }), /* @__PURE__ */ React22.createElement(
|
|
934
|
+
"div",
|
|
935
|
+
{
|
|
936
|
+
...popoverProps,
|
|
937
|
+
style: {
|
|
938
|
+
...popoverProps.style,
|
|
939
|
+
minWidth: props.triggerRef.current ? props.triggerRef.current.offsetWidth : void 0
|
|
940
|
+
},
|
|
941
|
+
ref,
|
|
942
|
+
role: "presentation"
|
|
887
943
|
},
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
}), children, /* @__PURE__ */ React22.createElement(DismissButton, {
|
|
893
|
-
onDismiss: state.close
|
|
894
|
-
})));
|
|
944
|
+
!isNonModal && /* @__PURE__ */ React22.createElement(DismissButton, { onDismiss: state.close }),
|
|
945
|
+
children,
|
|
946
|
+
/* @__PURE__ */ React22.createElement(DismissButton, { onDismiss: state.close })
|
|
947
|
+
));
|
|
895
948
|
}
|
|
896
949
|
);
|
|
897
950
|
|
|
@@ -908,13 +961,7 @@ import { forwardRef as forwardRef5 } from "react";
|
|
|
908
961
|
var Tray = forwardRef5(
|
|
909
962
|
({ state, children, ...props }, ref) => {
|
|
910
963
|
const trayRef = useObjectRef5(ref);
|
|
911
|
-
return /* @__PURE__ */ React23.createElement(Overlay, {
|
|
912
|
-
open: state.isOpen
|
|
913
|
-
}, /* @__PURE__ */ React23.createElement(TrayWrapper, {
|
|
914
|
-
state,
|
|
915
|
-
...props,
|
|
916
|
-
ref: trayRef
|
|
917
|
-
}, children));
|
|
964
|
+
return /* @__PURE__ */ React23.createElement(Overlay, { open: state.isOpen }, /* @__PURE__ */ React23.createElement(TrayWrapper, { state, ...props, ref: trayRef }, children));
|
|
918
965
|
}
|
|
919
966
|
);
|
|
920
967
|
var TrayWrapper = forwardRef5(
|
|
@@ -927,23 +974,18 @@ var TrayWrapper = forwardRef5(
|
|
|
927
974
|
state,
|
|
928
975
|
ref
|
|
929
976
|
);
|
|
930
|
-
return /* @__PURE__ */ React23.createElement(FocusScope3, {
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
}, /* @__PURE__ */ React23.createElement(DismissButton2, {
|
|
943
|
-
onDismiss: state.close
|
|
944
|
-
}), children, /* @__PURE__ */ React23.createElement(DismissButton2, {
|
|
945
|
-
onDismiss: state.close
|
|
946
|
-
}))));
|
|
977
|
+
return /* @__PURE__ */ React23.createElement(FocusScope3, { contain: true, restoreFocus: true, autoFocus: true }, /* @__PURE__ */ React23.createElement(Underlay, { ...underlayProps, variant: "modal" }, /* @__PURE__ */ React23.createElement(
|
|
978
|
+
Box12,
|
|
979
|
+
{
|
|
980
|
+
...modalProps,
|
|
981
|
+
ref,
|
|
982
|
+
__baseCSS: { position: "absolute", width: "100%", bottom: 0 },
|
|
983
|
+
"data-testid": "tray"
|
|
984
|
+
},
|
|
985
|
+
/* @__PURE__ */ React23.createElement(DismissButton2, { onDismiss: state.close }),
|
|
986
|
+
children,
|
|
987
|
+
/* @__PURE__ */ React23.createElement(DismissButton2, { onDismiss: state.close })
|
|
988
|
+
)));
|
|
947
989
|
}
|
|
948
990
|
);
|
|
949
991
|
|
|
@@ -957,20 +999,24 @@ var DialogTrigger = ({
|
|
|
957
999
|
const dialogTriggerRef = useRef2(null);
|
|
958
1000
|
const state = useOverlayTriggerState({});
|
|
959
1001
|
const ctx = { open: state.isOpen, close: state.close };
|
|
960
|
-
return /* @__PURE__ */ React24.createElement(DialogContext.Provider, {
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
1002
|
+
return /* @__PURE__ */ React24.createElement(DialogContext.Provider, { value: ctx }, /* @__PURE__ */ React24.createElement(
|
|
1003
|
+
PressResponder,
|
|
1004
|
+
{
|
|
1005
|
+
ref: dialogTriggerRef,
|
|
1006
|
+
isPressed: state.isOpen,
|
|
1007
|
+
onPress: state.toggle
|
|
1008
|
+
},
|
|
1009
|
+
dialogTrigger
|
|
1010
|
+
), /* @__PURE__ */ React24.createElement(Overlay, { open: state.isOpen }, /* @__PURE__ */ React24.createElement(
|
|
1011
|
+
Modal,
|
|
1012
|
+
{
|
|
1013
|
+
open: state.isOpen,
|
|
1014
|
+
onClose: state.close,
|
|
1015
|
+
dismissable,
|
|
1016
|
+
keyboardDismissable
|
|
1017
|
+
},
|
|
1018
|
+
dialog
|
|
1019
|
+
)));
|
|
974
1020
|
};
|
|
975
1021
|
|
|
976
1022
|
// src/Dialog/DialogController.tsx
|
|
@@ -988,16 +1034,16 @@ var DialogController = ({
|
|
|
988
1034
|
onOpenChange
|
|
989
1035
|
});
|
|
990
1036
|
const ctx = { open: state.isOpen, close: state.close };
|
|
991
|
-
return /* @__PURE__ */ React25.createElement(DialogContext.Provider, {
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1037
|
+
return /* @__PURE__ */ React25.createElement(DialogContext.Provider, { value: ctx }, /* @__PURE__ */ React25.createElement(Overlay, { open: state.isOpen }, /* @__PURE__ */ React25.createElement(
|
|
1038
|
+
Modal,
|
|
1039
|
+
{
|
|
1040
|
+
open: state.isOpen,
|
|
1041
|
+
onClose: state.close,
|
|
1042
|
+
dismissable,
|
|
1043
|
+
keyboardDismissable
|
|
1044
|
+
},
|
|
1045
|
+
children
|
|
1046
|
+
)));
|
|
1001
1047
|
};
|
|
1002
1048
|
|
|
1003
1049
|
// src/Dialog/Dialog.tsx
|
|
@@ -1010,30 +1056,32 @@ var CloseButton = ({ css }) => {
|
|
|
1010
1056
|
},
|
|
1011
1057
|
ref
|
|
1012
1058
|
);
|
|
1013
|
-
return /* @__PURE__ */ React26.createElement(Box13, {
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1059
|
+
return /* @__PURE__ */ React26.createElement(Box13, { css: { display: "flex", justifyContent: "flex-end" } }, /* @__PURE__ */ React26.createElement(
|
|
1060
|
+
Box13,
|
|
1061
|
+
{
|
|
1062
|
+
as: "button",
|
|
1063
|
+
__baseCSS: {
|
|
1064
|
+
outline: "none",
|
|
1065
|
+
border: "none",
|
|
1066
|
+
cursor: "pointer",
|
|
1067
|
+
height: 16,
|
|
1068
|
+
width: 16,
|
|
1069
|
+
lineHeight: 1,
|
|
1070
|
+
p: 0
|
|
1071
|
+
},
|
|
1072
|
+
css,
|
|
1073
|
+
ref,
|
|
1074
|
+
...buttonProps
|
|
1025
1075
|
},
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z"
|
|
1036
|
-
}))));
|
|
1076
|
+
/* @__PURE__ */ React26.createElement("svg", { viewBox: "0 0 20 20", fill: "currentColor" }, /* @__PURE__ */ React26.createElement(
|
|
1077
|
+
"path",
|
|
1078
|
+
{
|
|
1079
|
+
fillRule: "evenodd",
|
|
1080
|
+
clipRule: "evenodd",
|
|
1081
|
+
d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z"
|
|
1082
|
+
}
|
|
1083
|
+
))
|
|
1084
|
+
));
|
|
1037
1085
|
};
|
|
1038
1086
|
var addTitleProps = (children, titleProps) => {
|
|
1039
1087
|
const childs = React26.Children.toArray(children);
|
|
@@ -1068,13 +1116,7 @@ var Dialog = ({
|
|
|
1068
1116
|
{ variant, size },
|
|
1069
1117
|
{ parts: ["container", "closeButton"] }
|
|
1070
1118
|
);
|
|
1071
|
-
return /* @__PURE__ */ React26.createElement(Box13, {
|
|
1072
|
-
__baseCSS: { bg: "#fff" },
|
|
1073
|
-
css: styles.container,
|
|
1074
|
-
...dialogProps
|
|
1075
|
-
}, closeButton && /* @__PURE__ */ React26.createElement(CloseButton, {
|
|
1076
|
-
css: styles.closeButton
|
|
1077
|
-
}), typeof children === "function" ? children({ close, titleProps }) : props["aria-labelledby"] ? children : addTitleProps(children, titleProps));
|
|
1119
|
+
return /* @__PURE__ */ React26.createElement(Box13, { __baseCSS: { bg: "#fff" }, css: styles.container, ...dialogProps }, closeButton && /* @__PURE__ */ React26.createElement(CloseButton, { css: styles.closeButton }), typeof children === "function" ? children({ close, titleProps }) : props["aria-labelledby"] ? children : addTitleProps(children, titleProps));
|
|
1078
1120
|
};
|
|
1079
1121
|
Dialog.Trigger = DialogTrigger;
|
|
1080
1122
|
Dialog.Controller = DialogController;
|
|
@@ -1086,11 +1128,7 @@ import { Box as Box14, useComponentStyles as useComponentStyles13 } from "@marig
|
|
|
1086
1128
|
var Divider = ({ variant, ...props }) => {
|
|
1087
1129
|
const { separatorProps } = useSeparator(props);
|
|
1088
1130
|
const styles = useComponentStyles13("Divider", { variant });
|
|
1089
|
-
return /* @__PURE__ */ React27.createElement(Box14, {
|
|
1090
|
-
css: styles,
|
|
1091
|
-
...props,
|
|
1092
|
-
...separatorProps
|
|
1093
|
-
});
|
|
1131
|
+
return /* @__PURE__ */ React27.createElement(Box14, { css: styles, ...props, ...separatorProps });
|
|
1094
1132
|
};
|
|
1095
1133
|
|
|
1096
1134
|
// src/Footer/Footer.tsx
|
|
@@ -1100,11 +1138,7 @@ import {
|
|
|
1100
1138
|
} from "@marigold/system";
|
|
1101
1139
|
var Footer = ({ children, variant, size, ...props }) => {
|
|
1102
1140
|
const styles = useComponentStyles14("Footer", { variant, size });
|
|
1103
|
-
return /* @__PURE__ */ React28.createElement(Box, {
|
|
1104
|
-
as: "footer",
|
|
1105
|
-
...props,
|
|
1106
|
-
css: styles
|
|
1107
|
-
}, children);
|
|
1141
|
+
return /* @__PURE__ */ React28.createElement(Box, { as: "footer", ...props, css: styles }, children);
|
|
1108
1142
|
};
|
|
1109
1143
|
|
|
1110
1144
|
// src/Image/Image.tsx
|
|
@@ -1124,14 +1158,17 @@ var Image = ({
|
|
|
1124
1158
|
objectFit: fit,
|
|
1125
1159
|
objectPosition: position
|
|
1126
1160
|
};
|
|
1127
|
-
return /* @__PURE__ */ React29.createElement(
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1161
|
+
return /* @__PURE__ */ React29.createElement(
|
|
1162
|
+
Box15,
|
|
1163
|
+
{
|
|
1164
|
+
...props,
|
|
1165
|
+
as: "img",
|
|
1166
|
+
__baseCSS: fit ? { width: " 100%", height: "100%" } : {},
|
|
1167
|
+
css
|
|
1168
|
+
}
|
|
1169
|
+
);
|
|
1170
|
+
};
|
|
1171
|
+
|
|
1135
1172
|
// src/Inline/Inline.tsx
|
|
1136
1173
|
import React30 from "react";
|
|
1137
1174
|
var ALIGNMENT_X = {
|
|
@@ -1150,16 +1187,20 @@ var Inline = ({
|
|
|
1150
1187
|
alignY = "center",
|
|
1151
1188
|
children,
|
|
1152
1189
|
...props
|
|
1153
|
-
}) => /* @__PURE__ */ React30.createElement(
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1190
|
+
}) => /* @__PURE__ */ React30.createElement(
|
|
1191
|
+
Box,
|
|
1192
|
+
{
|
|
1193
|
+
css: {
|
|
1194
|
+
display: "flex",
|
|
1195
|
+
flexWrap: "wrap",
|
|
1196
|
+
gap: space,
|
|
1197
|
+
alignItems: ALIGNMENT_Y[alignY],
|
|
1198
|
+
justifyContent: ALIGNMENT_X[alignX]
|
|
1199
|
+
},
|
|
1200
|
+
...props
|
|
1160
1201
|
},
|
|
1161
|
-
|
|
1162
|
-
|
|
1202
|
+
children
|
|
1203
|
+
);
|
|
1163
1204
|
|
|
1164
1205
|
// src/Input/Input.tsx
|
|
1165
1206
|
import React31, { forwardRef as forwardRef6 } from "react";
|
|
@@ -1167,13 +1208,7 @@ import { Box as Box16, useComponentStyles as useComponentStyles16 } from "@marig
|
|
|
1167
1208
|
var Input = forwardRef6(
|
|
1168
1209
|
({ variant, size, type = "text", ...props }, ref) => {
|
|
1169
1210
|
const styles = useComponentStyles16("Input", { variant, size });
|
|
1170
|
-
return /* @__PURE__ */ React31.createElement(Box16, {
|
|
1171
|
-
...props,
|
|
1172
|
-
ref,
|
|
1173
|
-
as: "input",
|
|
1174
|
-
type,
|
|
1175
|
-
css: styles
|
|
1176
|
-
});
|
|
1211
|
+
return /* @__PURE__ */ React31.createElement(Box16, { ...props, ref, as: "input", type, css: styles });
|
|
1177
1212
|
}
|
|
1178
1213
|
);
|
|
1179
1214
|
|
|
@@ -1203,14 +1238,18 @@ var Link = forwardRef7(
|
|
|
1203
1238
|
linkRef
|
|
1204
1239
|
);
|
|
1205
1240
|
const styles = useComponentStyles17("Link", { variant, size });
|
|
1206
|
-
return /* @__PURE__ */ React32.createElement(
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1241
|
+
return /* @__PURE__ */ React32.createElement(
|
|
1242
|
+
Box,
|
|
1243
|
+
{
|
|
1244
|
+
as,
|
|
1245
|
+
role: "link",
|
|
1246
|
+
css: styles,
|
|
1247
|
+
ref: linkRef,
|
|
1248
|
+
...props,
|
|
1249
|
+
...linkProps
|
|
1250
|
+
},
|
|
1251
|
+
children
|
|
1252
|
+
);
|
|
1214
1253
|
}
|
|
1215
1254
|
);
|
|
1216
1255
|
|
|
@@ -1231,11 +1270,7 @@ import React33 from "react";
|
|
|
1231
1270
|
import { Box as Box17 } from "@marigold/system";
|
|
1232
1271
|
var ListItem = ({ children, ...props }) => {
|
|
1233
1272
|
const { styles } = useListContext();
|
|
1234
|
-
return /* @__PURE__ */ React33.createElement(Box17, {
|
|
1235
|
-
...props,
|
|
1236
|
-
as: "li",
|
|
1237
|
-
css: styles
|
|
1238
|
-
}, children);
|
|
1273
|
+
return /* @__PURE__ */ React33.createElement(Box17, { ...props, as: "li", css: styles }, children);
|
|
1239
1274
|
};
|
|
1240
1275
|
|
|
1241
1276
|
// src/List/List.tsx
|
|
@@ -1251,13 +1286,7 @@ var List = ({
|
|
|
1251
1286
|
{ variant, size },
|
|
1252
1287
|
{ parts: ["ul", "ol", "item"] }
|
|
1253
1288
|
);
|
|
1254
|
-
return /* @__PURE__ */ React34.createElement(Box18, {
|
|
1255
|
-
...props,
|
|
1256
|
-
as,
|
|
1257
|
-
css: styles[as]
|
|
1258
|
-
}, /* @__PURE__ */ React34.createElement(ListContext.Provider, {
|
|
1259
|
-
value: { styles: styles.item }
|
|
1260
|
-
}, children));
|
|
1289
|
+
return /* @__PURE__ */ React34.createElement(Box18, { ...props, as, css: styles[as] }, /* @__PURE__ */ React34.createElement(ListContext.Provider, { value: { styles: styles.item } }, children));
|
|
1261
1290
|
};
|
|
1262
1291
|
List.Item = ListItem;
|
|
1263
1292
|
|
|
@@ -1312,19 +1341,15 @@ var MenuTrigger = ({
|
|
|
1312
1341
|
autoFocus: state.focusStrategy
|
|
1313
1342
|
};
|
|
1314
1343
|
const isSmallScreen = useResponsiveValue([true, false, false], 2);
|
|
1315
|
-
return /* @__PURE__ */ React35.createElement(MenuContext.Provider, {
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
}, menu) : /* @__PURE__ */ React35.createElement(Popover, {
|
|
1324
|
-
triggerRef: menuTriggerRef,
|
|
1325
|
-
scrollRef: menuRef,
|
|
1326
|
-
state
|
|
1327
|
-
}, menu));
|
|
1344
|
+
return /* @__PURE__ */ React35.createElement(MenuContext.Provider, { value: menuContext }, /* @__PURE__ */ React35.createElement(
|
|
1345
|
+
PressResponder2,
|
|
1346
|
+
{
|
|
1347
|
+
...menuTriggerProps,
|
|
1348
|
+
ref: menuTriggerRef,
|
|
1349
|
+
isPressed: state.isOpen
|
|
1350
|
+
},
|
|
1351
|
+
menuTrigger
|
|
1352
|
+
), isSmallScreen ? /* @__PURE__ */ React35.createElement(Tray, { state }, menu) : /* @__PURE__ */ React35.createElement(Popover, { triggerRef: menuTriggerRef, scrollRef: menuRef, state }, menu));
|
|
1328
1353
|
};
|
|
1329
1354
|
|
|
1330
1355
|
// src/Menu/MenuItem.tsx
|
|
@@ -1350,18 +1375,22 @@ var MenuItem = ({ item, state, onAction, css }) => {
|
|
|
1350
1375
|
focus: isFocusVisible
|
|
1351
1376
|
});
|
|
1352
1377
|
const { onPointerUp, ...props } = menuItemProps;
|
|
1353
|
-
return /* @__PURE__ */ React36.createElement(
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1378
|
+
return /* @__PURE__ */ React36.createElement(
|
|
1379
|
+
Box19,
|
|
1380
|
+
{
|
|
1381
|
+
as: "li",
|
|
1382
|
+
ref,
|
|
1383
|
+
__baseCSS: {
|
|
1384
|
+
"&:focus": {
|
|
1385
|
+
outline: 0
|
|
1386
|
+
}
|
|
1387
|
+
},
|
|
1388
|
+
css,
|
|
1389
|
+
...mergeProps3(props, { onPointerDown: onPointerUp }, focusProps),
|
|
1390
|
+
...stateProps
|
|
1360
1391
|
},
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
...stateProps
|
|
1364
|
-
}, item.rendered);
|
|
1392
|
+
item.rendered
|
|
1393
|
+
);
|
|
1365
1394
|
};
|
|
1366
1395
|
|
|
1367
1396
|
// src/Menu/Menu.tsx
|
|
@@ -1378,23 +1407,30 @@ var Menu = ({ variant, size, ...props }) => {
|
|
|
1378
1407
|
{ variant, size },
|
|
1379
1408
|
{ parts: ["container", "item"] }
|
|
1380
1409
|
);
|
|
1381
|
-
return /* @__PURE__ */ React37.createElement(
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1410
|
+
return /* @__PURE__ */ React37.createElement(
|
|
1411
|
+
Box20,
|
|
1412
|
+
{
|
|
1413
|
+
as: "ul",
|
|
1414
|
+
ref,
|
|
1415
|
+
__baseCSS: {
|
|
1416
|
+
listStyle: "none",
|
|
1417
|
+
p: 0,
|
|
1418
|
+
overflowWrap: "break-word"
|
|
1419
|
+
},
|
|
1420
|
+
css: styles.container,
|
|
1421
|
+
...menuProps
|
|
1388
1422
|
},
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1423
|
+
[...state.collection].map((item) => /* @__PURE__ */ React37.createElement(
|
|
1424
|
+
MenuItem,
|
|
1425
|
+
{
|
|
1426
|
+
key: item.key,
|
|
1427
|
+
item,
|
|
1428
|
+
state,
|
|
1429
|
+
onAction: props.onAction,
|
|
1430
|
+
css: styles.item
|
|
1431
|
+
}
|
|
1432
|
+
))
|
|
1433
|
+
);
|
|
1398
1434
|
};
|
|
1399
1435
|
Menu.Trigger = MenuTrigger;
|
|
1400
1436
|
Menu.Item = Item;
|
|
@@ -1403,16 +1439,7 @@ Menu.Item = Item;
|
|
|
1403
1439
|
import React38 from "react";
|
|
1404
1440
|
import { SVG as SVG3 } from "@marigold/system";
|
|
1405
1441
|
var ActionMenu = (props) => {
|
|
1406
|
-
return /* @__PURE__ */ React38.createElement(Menu.Trigger, null, /* @__PURE__ */ React38.createElement(Button, {
|
|
1407
|
-
variant: "menu",
|
|
1408
|
-
size: "small"
|
|
1409
|
-
}, /* @__PURE__ */ React38.createElement(SVG3, {
|
|
1410
|
-
viewBox: "0 0 24 24"
|
|
1411
|
-
}, /* @__PURE__ */ React38.createElement("path", {
|
|
1412
|
-
d: "M12.0117 7.47656C13.2557 7.47656 14.2734 6.45879 14.2734 5.21484C14.2734 3.9709 13.2557 2.95312 12.0117 2.95312C10.7678 2.95312 9.75 3.9709 9.75 5.21484C9.75 6.45879 10.7678 7.47656 12.0117 7.47656ZM12.0117 9.73828C10.7678 9.73828 9.75 10.7561 9.75 12C9.75 13.2439 10.7678 14.2617 12.0117 14.2617C13.2557 14.2617 14.2734 13.2439 14.2734 12C14.2734 10.7561 13.2557 9.73828 12.0117 9.73828ZM12.0117 16.5234C10.7678 16.5234 9.75 17.5412 9.75 18.7852C9.75 20.0291 10.7678 21.0469 12.0117 21.0469C13.2557 21.0469 14.2734 20.0291 14.2734 18.7852C14.2734 17.5412 13.2557 16.5234 12.0117 16.5234Z"
|
|
1413
|
-
}))), /* @__PURE__ */ React38.createElement(Menu, {
|
|
1414
|
-
...props
|
|
1415
|
-
}));
|
|
1442
|
+
return /* @__PURE__ */ React38.createElement(Menu.Trigger, null, /* @__PURE__ */ React38.createElement(Button, { variant: "menu", size: "small" }, /* @__PURE__ */ React38.createElement(SVG3, { viewBox: "0 0 24 24" }, /* @__PURE__ */ React38.createElement("path", { d: "M12.0117 7.47656C13.2557 7.47656 14.2734 6.45879 14.2734 5.21484C14.2734 3.9709 13.2557 2.95312 12.0117 2.95312C10.7678 2.95312 9.75 3.9709 9.75 5.21484C9.75 6.45879 10.7678 7.47656 12.0117 7.47656ZM12.0117 9.73828C10.7678 9.73828 9.75 10.7561 9.75 12C9.75 13.2439 10.7678 14.2617 12.0117 14.2617C13.2557 14.2617 14.2734 13.2439 14.2734 12C14.2734 10.7561 13.2557 9.73828 12.0117 9.73828ZM12.0117 16.5234C10.7678 16.5234 9.75 17.5412 9.75 18.7852C9.75 20.0291 10.7678 21.0469 12.0117 21.0469C13.2557 21.0469 14.2734 20.0291 14.2734 18.7852C14.2734 17.5412 13.2557 16.5234 12.0117 16.5234Z" }))), /* @__PURE__ */ React38.createElement(Menu, { ...props }));
|
|
1416
1443
|
};
|
|
1417
1444
|
|
|
1418
1445
|
// src/Message/Message.tsx
|
|
@@ -1433,39 +1460,22 @@ var Message = ({
|
|
|
1433
1460
|
},
|
|
1434
1461
|
{ parts: ["container", "icon", "title", "content"] }
|
|
1435
1462
|
);
|
|
1436
|
-
var icon = /* @__PURE__ */ React39.createElement("svg", {
|
|
1437
|
-
viewBox: "0 0 24 24"
|
|
1438
|
-
}, /* @__PURE__ */ React39.createElement("path", {
|
|
1439
|
-
d: "M12 2.85938C6.95437 2.85938 2.85938 6.95437 2.85938 12C2.85938 17.0456 6.95437 21.1406 12 21.1406C17.0456 21.1406 21.1406 17.0456 21.1406 12C21.1406 6.95437 17.0456 2.85938 12 2.85938ZM12.7875 15.9374H11.2125V11.2124H12.7875V15.9374ZM12.7875 9.6375H11.2125V8.0625H12.7875V9.6375Z"
|
|
1440
|
-
}));
|
|
1463
|
+
var icon = /* @__PURE__ */ React39.createElement("svg", { viewBox: "0 0 24 24" }, /* @__PURE__ */ React39.createElement("path", { d: "M12 2.85938C6.95437 2.85938 2.85938 6.95437 2.85938 12C2.85938 17.0456 6.95437 21.1406 12 21.1406C17.0456 21.1406 21.1406 17.0456 21.1406 12C21.1406 6.95437 17.0456 2.85938 12 2.85938ZM12.7875 15.9374H11.2125V11.2124H12.7875V15.9374ZM12.7875 9.6375H11.2125V8.0625H12.7875V9.6375Z" }));
|
|
1441
1464
|
if (variant === "warning") {
|
|
1442
|
-
icon = /* @__PURE__ */ React39.createElement("svg", {
|
|
1443
|
-
viewBox: "0 0 24 24"
|
|
1444
|
-
}, /* @__PURE__ */ React39.createElement("path", {
|
|
1445
|
-
d: "M19.2 3H4.8C3.81 3 3.009 3.81 3.009 4.8L3 21L6.6 17.4H19.2C20.19 17.4 21 16.59 21 15.6V4.8C21 3.81 20.19 3 19.2 3ZM12.9 13.8H11.1V12H12.9V13.8ZM12.9 10.2001H11.1V6.60008H12.9V10.2001Z"
|
|
1446
|
-
}));
|
|
1465
|
+
icon = /* @__PURE__ */ React39.createElement("svg", { viewBox: "0 0 24 24" }, /* @__PURE__ */ React39.createElement("path", { d: "M19.2 3H4.8C3.81 3 3.009 3.81 3.009 4.8L3 21L6.6 17.4H19.2C20.19 17.4 21 16.59 21 15.6V4.8C21 3.81 20.19 3 19.2 3ZM12.9 13.8H11.1V12H12.9V13.8ZM12.9 10.2001H11.1V6.60008H12.9V10.2001Z" }));
|
|
1447
1466
|
}
|
|
1448
1467
|
if (variant === "error") {
|
|
1449
|
-
icon = /* @__PURE__ */ React39.createElement("svg", {
|
|
1450
|
-
viewBox: "0 0 24 24"
|
|
1451
|
-
}, /* @__PURE__ */ React39.createElement("path", {
|
|
1452
|
-
d: "M2.25 20.3097H21.75L12 3.46875L2.25 20.3097ZM12.8864 17.2606H11.1136V15.4879H12.8864V17.2606ZM12.8864 13.7151H11.1136V10.1697H12.8864V13.7151Z"
|
|
1453
|
-
}));
|
|
1468
|
+
icon = /* @__PURE__ */ React39.createElement("svg", { viewBox: "0 0 24 24" }, /* @__PURE__ */ React39.createElement("path", { d: "M2.25 20.3097H21.75L12 3.46875L2.25 20.3097ZM12.8864 17.2606H11.1136V15.4879H12.8864V17.2606ZM12.8864 13.7151H11.1136V10.1697H12.8864V13.7151Z" }));
|
|
1454
1469
|
}
|
|
1455
|
-
return /* @__PURE__ */ React39.createElement(Box, {
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
}, icon), /* @__PURE__ */ React39.createElement(Box, {
|
|
1465
|
-
css: styles.title
|
|
1466
|
-
}, messageTitle)), /* @__PURE__ */ React39.createElement(Box, {
|
|
1467
|
-
css: styles.content
|
|
1468
|
-
}, children));
|
|
1470
|
+
return /* @__PURE__ */ React39.createElement(Box, { css: styles.container, ...props }, /* @__PURE__ */ React39.createElement(Box, { __baseCSS: { display: "flex", alignItems: "top", gap: 4 } }, /* @__PURE__ */ React39.createElement(
|
|
1471
|
+
Box,
|
|
1472
|
+
{
|
|
1473
|
+
role: "presentation",
|
|
1474
|
+
__baseCSS: { flex: "0 0 16px" },
|
|
1475
|
+
css: styles.icon
|
|
1476
|
+
},
|
|
1477
|
+
icon
|
|
1478
|
+
), /* @__PURE__ */ React39.createElement(Box, { css: styles.title }, messageTitle)), /* @__PURE__ */ React39.createElement(Box, { css: styles.content }, children));
|
|
1469
1479
|
};
|
|
1470
1480
|
|
|
1471
1481
|
// src/NumberField/NumberField.tsx
|
|
@@ -1488,26 +1498,40 @@ import { useButton as useButton3 } from "@react-aria/button";
|
|
|
1488
1498
|
import { useHover as useHover3 } from "@react-aria/interactions";
|
|
1489
1499
|
import { mergeProps as mergeProps4 } from "@react-aria/utils";
|
|
1490
1500
|
import { Box as Box21, useStateProps as useStateProps5 } from "@marigold/system";
|
|
1491
|
-
var Plus = () => /* @__PURE__ */ React40.createElement(
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1501
|
+
var Plus = () => /* @__PURE__ */ React40.createElement(
|
|
1502
|
+
Box21,
|
|
1503
|
+
{
|
|
1504
|
+
as: "svg",
|
|
1505
|
+
__baseCSS: { width: 16, height: 16 },
|
|
1506
|
+
viewBox: "0 0 20 20",
|
|
1507
|
+
fill: "currentColor"
|
|
1508
|
+
},
|
|
1509
|
+
/* @__PURE__ */ React40.createElement(
|
|
1510
|
+
"path",
|
|
1511
|
+
{
|
|
1512
|
+
fillRule: "evenodd",
|
|
1513
|
+
clipRule: "evenodd",
|
|
1514
|
+
d: "M10 3a1 1 0 011 1v5h5a1 1 0 110 2h-5v5a1 1 0 11-2 0v-5H4a1 1 0 110-2h5V4a1 1 0 011-1z"
|
|
1515
|
+
}
|
|
1516
|
+
)
|
|
1517
|
+
);
|
|
1518
|
+
var Minus = () => /* @__PURE__ */ React40.createElement(
|
|
1519
|
+
Box21,
|
|
1520
|
+
{
|
|
1521
|
+
as: "svg",
|
|
1522
|
+
__baseCSS: { width: 16, height: 16 },
|
|
1523
|
+
viewBox: "0 0 20 20",
|
|
1524
|
+
fill: "currentColor"
|
|
1525
|
+
},
|
|
1526
|
+
/* @__PURE__ */ React40.createElement(
|
|
1527
|
+
"path",
|
|
1528
|
+
{
|
|
1529
|
+
fillRule: "evenodd",
|
|
1530
|
+
clipRule: "evenodd",
|
|
1531
|
+
d: "M3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z"
|
|
1532
|
+
}
|
|
1533
|
+
)
|
|
1534
|
+
);
|
|
1511
1535
|
var StepButton = ({ direction, css, ...props }) => {
|
|
1512
1536
|
const ref = useRef7(null);
|
|
1513
1537
|
const { buttonProps, isPressed } = useButton3(
|
|
@@ -1521,17 +1545,21 @@ var StepButton = ({ direction, css, ...props }) => {
|
|
|
1521
1545
|
disabled: props.isDisabled
|
|
1522
1546
|
});
|
|
1523
1547
|
const Icon3 = direction === "up" ? Plus : Minus;
|
|
1524
|
-
return /* @__PURE__ */ React40.createElement(
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1548
|
+
return /* @__PURE__ */ React40.createElement(
|
|
1549
|
+
Box21,
|
|
1550
|
+
{
|
|
1551
|
+
__baseCSS: {
|
|
1552
|
+
display: "flex",
|
|
1553
|
+
alignItems: "center",
|
|
1554
|
+
justifyContent: "center",
|
|
1555
|
+
cursor: props.isDisabled ? "not-allowed" : "pointer"
|
|
1556
|
+
},
|
|
1557
|
+
css,
|
|
1558
|
+
...mergeProps4(buttonProps, hoverProps),
|
|
1559
|
+
...stateProps
|
|
1530
1560
|
},
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
...stateProps
|
|
1534
|
-
}, /* @__PURE__ */ React40.createElement(Icon3, null));
|
|
1561
|
+
/* @__PURE__ */ React40.createElement(Icon3, null)
|
|
1562
|
+
);
|
|
1535
1563
|
};
|
|
1536
1564
|
|
|
1537
1565
|
// src/NumberField/NumberField.tsx
|
|
@@ -1585,47 +1613,67 @@ var NumberField = forwardRef8(
|
|
|
1585
1613
|
readOnly,
|
|
1586
1614
|
error
|
|
1587
1615
|
});
|
|
1588
|
-
return /* @__PURE__ */ React41.createElement(
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
__baseCSS: {
|
|
1604
|
-
display: "flex",
|
|
1605
|
-
alignItems: "stretch",
|
|
1606
|
-
"> input": {
|
|
1607
|
-
flex: 1,
|
|
1608
|
-
minWidth: 0
|
|
1609
|
-
}
|
|
1616
|
+
return /* @__PURE__ */ React41.createElement(
|
|
1617
|
+
FieldBase,
|
|
1618
|
+
{
|
|
1619
|
+
label: props.label,
|
|
1620
|
+
labelProps,
|
|
1621
|
+
required,
|
|
1622
|
+
description: props.description,
|
|
1623
|
+
descriptionProps,
|
|
1624
|
+
error,
|
|
1625
|
+
errorMessage: props.errorMessage,
|
|
1626
|
+
errorMessageProps,
|
|
1627
|
+
stateProps,
|
|
1628
|
+
variant,
|
|
1629
|
+
size,
|
|
1630
|
+
width
|
|
1610
1631
|
},
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1632
|
+
/* @__PURE__ */ React41.createElement(
|
|
1633
|
+
Box22,
|
|
1634
|
+
{
|
|
1635
|
+
"data-group": true,
|
|
1636
|
+
__baseCSS: {
|
|
1637
|
+
display: "flex",
|
|
1638
|
+
alignItems: "stretch",
|
|
1639
|
+
"> input": {
|
|
1640
|
+
flex: 1,
|
|
1641
|
+
minWidth: 0
|
|
1642
|
+
// Override browser default
|
|
1643
|
+
}
|
|
1644
|
+
},
|
|
1645
|
+
css: styles.group,
|
|
1646
|
+
...mergeProps5(groupProps, focusProps, hoverProps),
|
|
1647
|
+
...stateProps
|
|
1648
|
+
},
|
|
1649
|
+
showStepper && /* @__PURE__ */ React41.createElement(
|
|
1650
|
+
StepButton,
|
|
1651
|
+
{
|
|
1652
|
+
direction: "down",
|
|
1653
|
+
css: styles.stepper,
|
|
1654
|
+
...decrementButtonProps
|
|
1655
|
+
}
|
|
1656
|
+
),
|
|
1657
|
+
/* @__PURE__ */ React41.createElement(
|
|
1658
|
+
Input,
|
|
1659
|
+
{
|
|
1660
|
+
ref: inputRef,
|
|
1661
|
+
variant,
|
|
1662
|
+
size,
|
|
1663
|
+
...inputProps,
|
|
1664
|
+
...stateProps
|
|
1665
|
+
}
|
|
1666
|
+
),
|
|
1667
|
+
showStepper && /* @__PURE__ */ React41.createElement(
|
|
1668
|
+
StepButton,
|
|
1669
|
+
{
|
|
1670
|
+
direction: "up",
|
|
1671
|
+
css: styles.stepper,
|
|
1672
|
+
...incrementButtonProps
|
|
1673
|
+
}
|
|
1674
|
+
)
|
|
1675
|
+
)
|
|
1676
|
+
);
|
|
1629
1677
|
}
|
|
1630
1678
|
);
|
|
1631
1679
|
|
|
@@ -1657,12 +1705,13 @@ function MarigoldProvider({
|
|
|
1657
1705
|
Nested themes with a "root" property must specify a "selector" to prevent accidentally overriding global CSS`
|
|
1658
1706
|
);
|
|
1659
1707
|
}
|
|
1660
|
-
return /* @__PURE__ */ React42.createElement(ThemeProvider, {
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1708
|
+
return /* @__PURE__ */ React42.createElement(ThemeProvider, { theme }, /* @__PURE__ */ React42.createElement(
|
|
1709
|
+
Global,
|
|
1710
|
+
{
|
|
1711
|
+
normalizeDocument: isTopLevel && normalizeDocument,
|
|
1712
|
+
selector
|
|
1713
|
+
}
|
|
1714
|
+
), isTopLevel ? /* @__PURE__ */ React42.createElement(OverlayProvider, null, children) : children);
|
|
1666
1715
|
}
|
|
1667
1716
|
|
|
1668
1717
|
// src/Radio/Radio.tsx
|
|
@@ -1715,58 +1764,61 @@ var RadioGroup = ({
|
|
|
1715
1764
|
readOnly,
|
|
1716
1765
|
error
|
|
1717
1766
|
});
|
|
1718
|
-
return /* @__PURE__ */ React43.createElement(
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1767
|
+
return /* @__PURE__ */ React43.createElement(
|
|
1768
|
+
FieldBase,
|
|
1769
|
+
{
|
|
1770
|
+
width,
|
|
1771
|
+
label: props.label,
|
|
1772
|
+
labelProps: { as: "span", ...labelProps },
|
|
1773
|
+
description: props.description,
|
|
1774
|
+
descriptionProps,
|
|
1775
|
+
error,
|
|
1776
|
+
errorMessage: props.errorMessage,
|
|
1777
|
+
errorMessageProps,
|
|
1778
|
+
disabled,
|
|
1779
|
+
stateProps,
|
|
1780
|
+
required,
|
|
1781
|
+
...radioGroupProps
|
|
1782
|
+
},
|
|
1783
|
+
/* @__PURE__ */ React43.createElement(
|
|
1784
|
+
Box23,
|
|
1785
|
+
{
|
|
1786
|
+
role: "presentation",
|
|
1787
|
+
"data-orientation": orientation,
|
|
1788
|
+
__baseCSS: {
|
|
1789
|
+
display: "flex",
|
|
1790
|
+
flexDirection: orientation === "vertical" ? "column" : "row",
|
|
1791
|
+
alignItems: "start",
|
|
1792
|
+
gap: orientation === "vertical" ? "0.5ch" : "1.5ch"
|
|
1793
|
+
}
|
|
1794
|
+
},
|
|
1795
|
+
/* @__PURE__ */ React43.createElement(RadioGroupContext.Provider, { value: { width, error, state } }, children)
|
|
1796
|
+
)
|
|
1797
|
+
);
|
|
1743
1798
|
};
|
|
1744
1799
|
|
|
1745
1800
|
// src/Radio/Radio.tsx
|
|
1746
|
-
var Dot = () => /* @__PURE__ */ React44.createElement("svg", {
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
justifyContent: "center",
|
|
1765
|
-
p: 4
|
|
1801
|
+
var Dot = () => /* @__PURE__ */ React44.createElement("svg", { viewBox: "0 0 6 6" }, /* @__PURE__ */ React44.createElement("circle", { fill: "currentColor", cx: "3", cy: "3", r: "3" }));
|
|
1802
|
+
var Icon2 = ({ checked, css, ...props }) => /* @__PURE__ */ React44.createElement(
|
|
1803
|
+
Box24,
|
|
1804
|
+
{
|
|
1805
|
+
"aria-hidden": "true",
|
|
1806
|
+
__baseCSS: {
|
|
1807
|
+
width: 16,
|
|
1808
|
+
height: 16,
|
|
1809
|
+
bg: "#fff",
|
|
1810
|
+
border: "1px solid #000",
|
|
1811
|
+
borderRadius: "50%",
|
|
1812
|
+
display: "flex",
|
|
1813
|
+
alignItems: "center",
|
|
1814
|
+
justifyContent: "center",
|
|
1815
|
+
p: 4
|
|
1816
|
+
},
|
|
1817
|
+
css,
|
|
1818
|
+
...props
|
|
1766
1819
|
},
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
}, checked ? /* @__PURE__ */ React44.createElement(Dot, null) : null);
|
|
1820
|
+
checked ? /* @__PURE__ */ React44.createElement(Dot, null) : null
|
|
1821
|
+
);
|
|
1770
1822
|
var Radio = forwardRef9(
|
|
1771
1823
|
({ width, disabled, ...props }, ref) => {
|
|
1772
1824
|
const {
|
|
@@ -1797,39 +1849,41 @@ var Radio = forwardRef9(
|
|
|
1797
1849
|
readOnly: props.readOnly,
|
|
1798
1850
|
error
|
|
1799
1851
|
});
|
|
1800
|
-
return /* @__PURE__ */ React44.createElement(
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
ref: inputRef,
|
|
1814
|
-
css: {
|
|
1815
|
-
position: "absolute",
|
|
1816
|
-
width: "100%",
|
|
1817
|
-
height: "100%",
|
|
1818
|
-
top: 0,
|
|
1819
|
-
left: 0,
|
|
1820
|
-
zIndex: 1,
|
|
1821
|
-
opacity: 1e-4,
|
|
1822
|
-
cursor: inputProps.disabled ? "not-allowed" : "pointer"
|
|
1852
|
+
return /* @__PURE__ */ React44.createElement(
|
|
1853
|
+
Box24,
|
|
1854
|
+
{
|
|
1855
|
+
as: "label",
|
|
1856
|
+
__baseCSS: {
|
|
1857
|
+
display: "flex",
|
|
1858
|
+
alignItems: "center",
|
|
1859
|
+
gap: "1ch",
|
|
1860
|
+
position: "relative",
|
|
1861
|
+
width: width || groupWidth || "100%"
|
|
1862
|
+
},
|
|
1863
|
+
css: styles.container,
|
|
1864
|
+
...mergeProps6(hoverProps, stateProps)
|
|
1823
1865
|
},
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1866
|
+
/* @__PURE__ */ React44.createElement(
|
|
1867
|
+
Box24,
|
|
1868
|
+
{
|
|
1869
|
+
as: "input",
|
|
1870
|
+
ref: inputRef,
|
|
1871
|
+
css: {
|
|
1872
|
+
position: "absolute",
|
|
1873
|
+
width: "100%",
|
|
1874
|
+
height: "100%",
|
|
1875
|
+
top: 0,
|
|
1876
|
+
left: 0,
|
|
1877
|
+
zIndex: 1,
|
|
1878
|
+
opacity: 1e-4,
|
|
1879
|
+
cursor: inputProps.disabled ? "not-allowed" : "pointer"
|
|
1880
|
+
},
|
|
1881
|
+
...mergeProps6(inputProps, focusProps)
|
|
1882
|
+
}
|
|
1883
|
+
),
|
|
1884
|
+
/* @__PURE__ */ React44.createElement(Icon2, { checked: inputProps.checked, css: styles.radio, ...stateProps }),
|
|
1885
|
+
/* @__PURE__ */ React44.createElement(Box24, { css: styles.label, ...stateProps }, props.children)
|
|
1886
|
+
);
|
|
1833
1887
|
}
|
|
1834
1888
|
);
|
|
1835
1889
|
Radio.Group = RadioGroup;
|
|
@@ -1893,12 +1947,16 @@ var ListBoxOption = ({ item, state }) => {
|
|
|
1893
1947
|
disabled: isDisabled,
|
|
1894
1948
|
focusVisible: isFocused
|
|
1895
1949
|
});
|
|
1896
|
-
return /* @__PURE__ */ React45.createElement(
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1950
|
+
return /* @__PURE__ */ React45.createElement(
|
|
1951
|
+
Box25,
|
|
1952
|
+
{
|
|
1953
|
+
as: "li",
|
|
1954
|
+
ref,
|
|
1955
|
+
css: styles.option,
|
|
1956
|
+
...mergeProps7(props, { onPointerDown: onPointerUp }, { ...stateProps })
|
|
1957
|
+
},
|
|
1958
|
+
item.rendered
|
|
1959
|
+
);
|
|
1902
1960
|
};
|
|
1903
1961
|
|
|
1904
1962
|
// src/ListBox/ListBoxSection.tsx
|
|
@@ -1908,23 +1966,16 @@ var ListBoxSection = ({ section, state }) => {
|
|
|
1908
1966
|
"aria-label": section["aria-label"]
|
|
1909
1967
|
});
|
|
1910
1968
|
const { styles } = useListBoxContext();
|
|
1911
|
-
return /* @__PURE__ */ React46.createElement(Box26, {
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
css: styles.list,
|
|
1922
|
-
...groupProps
|
|
1923
|
-
}, [...section.childNodes].map((node) => /* @__PURE__ */ React46.createElement(ListBoxOption, {
|
|
1924
|
-
key: node.key,
|
|
1925
|
-
item: node,
|
|
1926
|
-
state
|
|
1927
|
-
}))));
|
|
1969
|
+
return /* @__PURE__ */ React46.createElement(Box26, { as: "li", css: styles.section, ...itemProps }, section.rendered && /* @__PURE__ */ React46.createElement(Box26, { css: styles.sectionTitle, ...headingProps }, section.rendered), /* @__PURE__ */ React46.createElement(
|
|
1970
|
+
Box26,
|
|
1971
|
+
{
|
|
1972
|
+
as: "ul",
|
|
1973
|
+
__baseCSS: { listStyle: "none", p: 0 },
|
|
1974
|
+
css: styles.list,
|
|
1975
|
+
...groupProps
|
|
1976
|
+
},
|
|
1977
|
+
[...section.childNodes].map((node) => /* @__PURE__ */ React46.createElement(ListBoxOption, { key: node.key, item: node, state }))
|
|
1978
|
+
));
|
|
1928
1979
|
};
|
|
1929
1980
|
|
|
1930
1981
|
// src/ListBox/ListBox.tsx
|
|
@@ -1937,27 +1988,19 @@ var ListBox = forwardRef10(
|
|
|
1937
1988
|
{ variant, size },
|
|
1938
1989
|
{ parts: ["container", "list", "option", "section", "sectionTitle"] }
|
|
1939
1990
|
);
|
|
1940
|
-
return /* @__PURE__ */ React47.createElement(ListBoxContext.Provider, {
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
...
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
section: item,
|
|
1954
|
-
state
|
|
1955
|
-
}) : /* @__PURE__ */ React47.createElement(ListBoxOption, {
|
|
1956
|
-
key: item.key,
|
|
1957
|
-
item,
|
|
1958
|
-
state
|
|
1959
|
-
})
|
|
1960
|
-
))));
|
|
1991
|
+
return /* @__PURE__ */ React47.createElement(ListBoxContext.Provider, { value: { styles } }, /* @__PURE__ */ React47.createElement(Box27, { css: styles.container }, /* @__PURE__ */ React47.createElement(
|
|
1992
|
+
Box27,
|
|
1993
|
+
{
|
|
1994
|
+
as: "ul",
|
|
1995
|
+
ref: innerRef,
|
|
1996
|
+
__baseCSS: { listStyle: "none", p: 0 },
|
|
1997
|
+
css: styles.list,
|
|
1998
|
+
...listBoxProps
|
|
1999
|
+
},
|
|
2000
|
+
[...state.collection].map(
|
|
2001
|
+
(item) => item.type === "section" ? /* @__PURE__ */ React47.createElement(ListBoxSection, { key: item.key, section: item, state }) : /* @__PURE__ */ React47.createElement(ListBoxOption, { key: item.key, item, state })
|
|
2002
|
+
)
|
|
2003
|
+
)));
|
|
1961
2004
|
}
|
|
1962
2005
|
);
|
|
1963
2006
|
|
|
@@ -1972,18 +2015,18 @@ var messages = {
|
|
|
1972
2015
|
};
|
|
1973
2016
|
|
|
1974
2017
|
// src/Select/Select.tsx
|
|
1975
|
-
var Chevron = ({ css }) => /* @__PURE__ */ React48.createElement(
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
d: "M19 9l-7 7-7-7"
|
|
1986
|
-
|
|
2018
|
+
var Chevron = ({ css }) => /* @__PURE__ */ React48.createElement(
|
|
2019
|
+
Box28,
|
|
2020
|
+
{
|
|
2021
|
+
as: "svg",
|
|
2022
|
+
__baseCSS: { width: 16, height: 16, fill: "none" },
|
|
2023
|
+
css,
|
|
2024
|
+
viewBox: "0 0 24 24",
|
|
2025
|
+
stroke: "currentColor",
|
|
2026
|
+
strokeWidth: 2
|
|
2027
|
+
},
|
|
2028
|
+
/* @__PURE__ */ React48.createElement("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M19 9l-7 7-7-7" })
|
|
2029
|
+
);
|
|
1987
2030
|
var Select = forwardRef11(
|
|
1988
2031
|
({
|
|
1989
2032
|
variant,
|
|
@@ -2034,66 +2077,82 @@ var Select = forwardRef11(
|
|
|
2034
2077
|
focusVisible: isFocusVisible,
|
|
2035
2078
|
expanded: state.isOpen
|
|
2036
2079
|
});
|
|
2037
|
-
return /* @__PURE__ */ React48.createElement(
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
triggerRef: buttonRef,
|
|
2054
|
-
label: props.label,
|
|
2055
|
-
name: props.name,
|
|
2056
|
-
isDisabled: disabled
|
|
2057
|
-
}), /* @__PURE__ */ React48.createElement(Box28, {
|
|
2058
|
-
as: "button",
|
|
2059
|
-
__baseCSS: {
|
|
2060
|
-
display: "flex",
|
|
2061
|
-
position: "relative",
|
|
2062
|
-
alignItems: "center",
|
|
2063
|
-
justifyContent: "space-between",
|
|
2064
|
-
width: "100%"
|
|
2065
|
-
},
|
|
2066
|
-
css: styles.button,
|
|
2067
|
-
ref: buttonRef,
|
|
2068
|
-
...mergeProps8(buttonProps, focusProps),
|
|
2069
|
-
...stateProps
|
|
2070
|
-
}, /* @__PURE__ */ React48.createElement(Box28, {
|
|
2071
|
-
css: {
|
|
2072
|
-
overflow: "hidden",
|
|
2073
|
-
whiteSpace: "nowrap"
|
|
2080
|
+
return /* @__PURE__ */ React48.createElement(
|
|
2081
|
+
FieldBase,
|
|
2082
|
+
{
|
|
2083
|
+
variant,
|
|
2084
|
+
size,
|
|
2085
|
+
width,
|
|
2086
|
+
label: props.label,
|
|
2087
|
+
labelProps: { as: "span", ...labelProps },
|
|
2088
|
+
description: props.description,
|
|
2089
|
+
descriptionProps,
|
|
2090
|
+
error,
|
|
2091
|
+
errorMessage: props.errorMessage,
|
|
2092
|
+
errorMessageProps,
|
|
2093
|
+
stateProps,
|
|
2094
|
+
disabled,
|
|
2095
|
+
required
|
|
2074
2096
|
},
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
+
/* @__PURE__ */ React48.createElement(
|
|
2098
|
+
HiddenSelect,
|
|
2099
|
+
{
|
|
2100
|
+
state,
|
|
2101
|
+
triggerRef: buttonRef,
|
|
2102
|
+
label: props.label,
|
|
2103
|
+
name: props.name,
|
|
2104
|
+
isDisabled: disabled
|
|
2105
|
+
}
|
|
2106
|
+
),
|
|
2107
|
+
/* @__PURE__ */ React48.createElement(
|
|
2108
|
+
Box28,
|
|
2109
|
+
{
|
|
2110
|
+
as: "button",
|
|
2111
|
+
__baseCSS: {
|
|
2112
|
+
display: "flex",
|
|
2113
|
+
position: "relative",
|
|
2114
|
+
alignItems: "center",
|
|
2115
|
+
justifyContent: "space-between",
|
|
2116
|
+
width: "100%"
|
|
2117
|
+
},
|
|
2118
|
+
css: styles.button,
|
|
2119
|
+
ref: buttonRef,
|
|
2120
|
+
...mergeProps8(buttonProps, focusProps),
|
|
2121
|
+
...stateProps
|
|
2122
|
+
},
|
|
2123
|
+
/* @__PURE__ */ React48.createElement(
|
|
2124
|
+
Box28,
|
|
2125
|
+
{
|
|
2126
|
+
css: {
|
|
2127
|
+
overflow: "hidden",
|
|
2128
|
+
whiteSpace: "nowrap"
|
|
2129
|
+
},
|
|
2130
|
+
...valueProps
|
|
2131
|
+
},
|
|
2132
|
+
state.selectedItem ? state.selectedItem.rendered : props.placeholder
|
|
2133
|
+
),
|
|
2134
|
+
/* @__PURE__ */ React48.createElement(Chevron, { css: styles.icon })
|
|
2135
|
+
),
|
|
2136
|
+
isSmallScreen ? /* @__PURE__ */ React48.createElement(Tray, { state }, /* @__PURE__ */ React48.createElement(
|
|
2137
|
+
ListBox,
|
|
2138
|
+
{
|
|
2139
|
+
ref: listboxRef,
|
|
2140
|
+
state,
|
|
2141
|
+
variant,
|
|
2142
|
+
size,
|
|
2143
|
+
...menuProps
|
|
2144
|
+
}
|
|
2145
|
+
)) : /* @__PURE__ */ React48.createElement(Popover, { state, triggerRef: buttonRef, scrollRef: listboxRef }, /* @__PURE__ */ React48.createElement(
|
|
2146
|
+
ListBox,
|
|
2147
|
+
{
|
|
2148
|
+
ref: listboxRef,
|
|
2149
|
+
state,
|
|
2150
|
+
variant,
|
|
2151
|
+
size,
|
|
2152
|
+
...menuProps
|
|
2153
|
+
}
|
|
2154
|
+
))
|
|
2155
|
+
);
|
|
2097
2156
|
}
|
|
2098
2157
|
);
|
|
2099
2158
|
Select.Option = Item2;
|
|
@@ -2139,17 +2198,24 @@ var Thumb = ({ state, trackRef, styles, ...props }) => {
|
|
|
2139
2198
|
useEffect(() => {
|
|
2140
2199
|
state.setThumbEditable(0, !disabled);
|
|
2141
2200
|
}, [disabled, state]);
|
|
2142
|
-
return /* @__PURE__ */ React49.createElement(
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2201
|
+
return /* @__PURE__ */ React49.createElement(
|
|
2202
|
+
Box,
|
|
2203
|
+
{
|
|
2204
|
+
__baseCSS: { top: "50%" },
|
|
2205
|
+
css: styles,
|
|
2206
|
+
...thumbProps,
|
|
2207
|
+
...stateProps
|
|
2208
|
+
},
|
|
2209
|
+
/* @__PURE__ */ React49.createElement(VisuallyHidden, null, /* @__PURE__ */ React49.createElement(
|
|
2210
|
+
Box,
|
|
2211
|
+
{
|
|
2212
|
+
as: "input",
|
|
2213
|
+
type: "range",
|
|
2214
|
+
ref: inputRef,
|
|
2215
|
+
...mergeProps9(inputProps, focusProps)
|
|
2216
|
+
}
|
|
2217
|
+
))
|
|
2218
|
+
);
|
|
2153
2219
|
};
|
|
2154
2220
|
|
|
2155
2221
|
// src/Slider/Slider.tsx
|
|
@@ -2172,56 +2238,66 @@ var Slider = forwardRef12(
|
|
|
2172
2238
|
{ variant, size },
|
|
2173
2239
|
{ parts: ["track", "thumb", "label", "output"] }
|
|
2174
2240
|
);
|
|
2175
|
-
return /* @__PURE__ */ React50.createElement(
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
}, props.children && /* @__PURE__ */ React50.createElement(Box, {
|
|
2186
|
-
as: "label",
|
|
2187
|
-
__baseCSS: styles.label,
|
|
2188
|
-
...labelProps
|
|
2189
|
-
}, props.children), /* @__PURE__ */ React50.createElement(Box, {
|
|
2190
|
-
as: "output",
|
|
2191
|
-
...outputProps,
|
|
2192
|
-
__baseCSS: { flex: "1 0 auto", textAlign: "end" },
|
|
2193
|
-
css: styles.output
|
|
2194
|
-
}, state.getThumbValueLabel(0))), /* @__PURE__ */ React50.createElement(Box, {
|
|
2195
|
-
...trackProps,
|
|
2196
|
-
ref: trackRef,
|
|
2197
|
-
__baseCSS: {
|
|
2198
|
-
height: 32,
|
|
2199
|
-
width: "100%",
|
|
2200
|
-
cursor: props.disabled ? "not-allowed" : "pointer"
|
|
2201
|
-
}
|
|
2202
|
-
}, /* @__PURE__ */ React50.createElement(Box, {
|
|
2203
|
-
__baseCSS: {
|
|
2204
|
-
top: "50%",
|
|
2205
|
-
transform: "translateY(-50%)"
|
|
2241
|
+
return /* @__PURE__ */ React50.createElement(
|
|
2242
|
+
Box,
|
|
2243
|
+
{
|
|
2244
|
+
__baseCSS: {
|
|
2245
|
+
display: "flex",
|
|
2246
|
+
flexDirection: "column",
|
|
2247
|
+
touchAction: "none",
|
|
2248
|
+
width
|
|
2249
|
+
},
|
|
2250
|
+
...groupProps
|
|
2206
2251
|
},
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2252
|
+
/* @__PURE__ */ React50.createElement(Box, { __baseCSS: { display: "flex", alignSelf: "stretch" } }, props.children && /* @__PURE__ */ React50.createElement(Box, { as: "label", __baseCSS: styles.label, ...labelProps }, props.children), /* @__PURE__ */ React50.createElement(
|
|
2253
|
+
Box,
|
|
2254
|
+
{
|
|
2255
|
+
as: "output",
|
|
2256
|
+
...outputProps,
|
|
2257
|
+
__baseCSS: { flex: "1 0 auto", textAlign: "end" },
|
|
2258
|
+
css: styles.output
|
|
2259
|
+
},
|
|
2260
|
+
state.getThumbValueLabel(0)
|
|
2261
|
+
)),
|
|
2262
|
+
/* @__PURE__ */ React50.createElement(
|
|
2263
|
+
Box,
|
|
2264
|
+
{
|
|
2265
|
+
...trackProps,
|
|
2266
|
+
ref: trackRef,
|
|
2267
|
+
__baseCSS: {
|
|
2268
|
+
height: 32,
|
|
2269
|
+
width: "100%",
|
|
2270
|
+
cursor: props.disabled ? "not-allowed" : "pointer"
|
|
2271
|
+
}
|
|
2272
|
+
},
|
|
2273
|
+
/* @__PURE__ */ React50.createElement(
|
|
2274
|
+
Box,
|
|
2275
|
+
{
|
|
2276
|
+
__baseCSS: {
|
|
2277
|
+
top: "50%",
|
|
2278
|
+
transform: "translateY(-50%)"
|
|
2279
|
+
},
|
|
2280
|
+
css: styles.track
|
|
2281
|
+
}
|
|
2282
|
+
),
|
|
2283
|
+
/* @__PURE__ */ React50.createElement(
|
|
2284
|
+
Thumb,
|
|
2285
|
+
{
|
|
2286
|
+
state,
|
|
2287
|
+
trackRef,
|
|
2288
|
+
disabled: props.disabled,
|
|
2289
|
+
styles: styles.thumb
|
|
2290
|
+
}
|
|
2291
|
+
)
|
|
2292
|
+
)
|
|
2293
|
+
);
|
|
2214
2294
|
}
|
|
2215
2295
|
);
|
|
2216
2296
|
|
|
2217
2297
|
// src/Split/Split.tsx
|
|
2218
2298
|
import React51 from "react";
|
|
2219
2299
|
import { Box as Box29 } from "@marigold/system";
|
|
2220
|
-
var Split = (props) => /* @__PURE__ */ React51.createElement(Box29, {
|
|
2221
|
-
...props,
|
|
2222
|
-
role: "separator",
|
|
2223
|
-
css: { flexGrow: 1 }
|
|
2224
|
-
});
|
|
2300
|
+
var Split = (props) => /* @__PURE__ */ React51.createElement(Box29, { ...props, role: "separator", css: { flexGrow: 1 } });
|
|
2225
2301
|
|
|
2226
2302
|
// src/Stack/Stack.tsx
|
|
2227
2303
|
import React52 from "react";
|
|
@@ -2244,18 +2320,22 @@ var Stack = ({
|
|
|
2244
2320
|
alignY = "none",
|
|
2245
2321
|
stretch = false,
|
|
2246
2322
|
...props
|
|
2247
|
-
}) => /* @__PURE__ */ React52.createElement(
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2323
|
+
}) => /* @__PURE__ */ React52.createElement(
|
|
2324
|
+
Box,
|
|
2325
|
+
{
|
|
2326
|
+
css: {
|
|
2327
|
+
display: "flex",
|
|
2328
|
+
flexDirection: "column",
|
|
2329
|
+
p: 0,
|
|
2330
|
+
gap: space,
|
|
2331
|
+
alignItems: ALIGNMENT_X2[alignX],
|
|
2332
|
+
justifyContent: ALIGNMENT_Y2[alignY],
|
|
2333
|
+
blockSize: stretch ? "100%" : "initial"
|
|
2334
|
+
},
|
|
2335
|
+
...props
|
|
2256
2336
|
},
|
|
2257
|
-
|
|
2258
|
-
|
|
2337
|
+
children
|
|
2338
|
+
);
|
|
2259
2339
|
|
|
2260
2340
|
// src/Switch/Switch.tsx
|
|
2261
2341
|
import React53, { forwardRef as forwardRef13 } from "react";
|
|
@@ -2300,65 +2380,79 @@ var Switch = forwardRef13(
|
|
|
2300
2380
|
{ variant, size },
|
|
2301
2381
|
{ parts: ["container", "label", "track", "thumb"] }
|
|
2302
2382
|
);
|
|
2303
|
-
return /* @__PURE__ */ React53.createElement(
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
ref: inputRef,
|
|
2317
|
-
css: {
|
|
2318
|
-
position: "absolute",
|
|
2319
|
-
width: "100%",
|
|
2320
|
-
height: "100%",
|
|
2321
|
-
top: 0,
|
|
2322
|
-
left: 0,
|
|
2323
|
-
zIndex: 1,
|
|
2324
|
-
opacity: 1e-4,
|
|
2325
|
-
cursor: inputProps.disabled ? "not-allowed" : "pointer"
|
|
2326
|
-
},
|
|
2327
|
-
...inputProps,
|
|
2328
|
-
...focusProps
|
|
2329
|
-
}), props.children && /* @__PURE__ */ React53.createElement(Box, {
|
|
2330
|
-
css: styles.label
|
|
2331
|
-
}, props.children), /* @__PURE__ */ React53.createElement(Box, {
|
|
2332
|
-
__baseCSS: {
|
|
2333
|
-
position: "relative",
|
|
2334
|
-
width: 48,
|
|
2335
|
-
height: 24,
|
|
2336
|
-
bg: "#dee2e6",
|
|
2337
|
-
borderRadius: 20,
|
|
2338
|
-
flex: "0 0 48px"
|
|
2383
|
+
return /* @__PURE__ */ React53.createElement(
|
|
2384
|
+
Box,
|
|
2385
|
+
{
|
|
2386
|
+
as: "label",
|
|
2387
|
+
__baseCSS: {
|
|
2388
|
+
display: "flex",
|
|
2389
|
+
alignItems: "center",
|
|
2390
|
+
justifyContent: "space-between",
|
|
2391
|
+
gap: "1ch",
|
|
2392
|
+
position: "relative",
|
|
2393
|
+
width
|
|
2394
|
+
},
|
|
2395
|
+
css: styles.container
|
|
2339
2396
|
},
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2397
|
+
/* @__PURE__ */ React53.createElement(
|
|
2398
|
+
Box,
|
|
2399
|
+
{
|
|
2400
|
+
as: "input",
|
|
2401
|
+
ref: inputRef,
|
|
2402
|
+
css: {
|
|
2403
|
+
position: "absolute",
|
|
2404
|
+
width: "100%",
|
|
2405
|
+
height: "100%",
|
|
2406
|
+
top: 0,
|
|
2407
|
+
left: 0,
|
|
2408
|
+
zIndex: 1,
|
|
2409
|
+
opacity: 1e-4,
|
|
2410
|
+
cursor: inputProps.disabled ? "not-allowed" : "pointer"
|
|
2411
|
+
},
|
|
2412
|
+
...inputProps,
|
|
2413
|
+
...focusProps
|
|
2357
2414
|
}
|
|
2358
|
-
|
|
2359
|
-
css: styles.
|
|
2360
|
-
|
|
2361
|
-
|
|
2415
|
+
),
|
|
2416
|
+
props.children && /* @__PURE__ */ React53.createElement(Box, { css: styles.label }, props.children),
|
|
2417
|
+
/* @__PURE__ */ React53.createElement(
|
|
2418
|
+
Box,
|
|
2419
|
+
{
|
|
2420
|
+
__baseCSS: {
|
|
2421
|
+
position: "relative",
|
|
2422
|
+
width: 48,
|
|
2423
|
+
height: 24,
|
|
2424
|
+
bg: "#dee2e6",
|
|
2425
|
+
borderRadius: 20,
|
|
2426
|
+
flex: "0 0 48px"
|
|
2427
|
+
},
|
|
2428
|
+
css: styles.track,
|
|
2429
|
+
...stateProps
|
|
2430
|
+
},
|
|
2431
|
+
/* @__PURE__ */ React53.createElement(
|
|
2432
|
+
Box,
|
|
2433
|
+
{
|
|
2434
|
+
__baseCSS: {
|
|
2435
|
+
display: "block",
|
|
2436
|
+
position: "absolute",
|
|
2437
|
+
top: 1,
|
|
2438
|
+
left: 0,
|
|
2439
|
+
willChange: "transform",
|
|
2440
|
+
transform: "translateX(1px)",
|
|
2441
|
+
transition: "all 0.1s cubic-bezier(.7, 0, .3, 1)",
|
|
2442
|
+
height: 22,
|
|
2443
|
+
width: 22,
|
|
2444
|
+
borderRadius: 9999,
|
|
2445
|
+
bg: "#fff",
|
|
2446
|
+
"&:checked": {
|
|
2447
|
+
transform: "translateX(calc(47px - 100%))"
|
|
2448
|
+
}
|
|
2449
|
+
},
|
|
2450
|
+
css: styles.thumb,
|
|
2451
|
+
...stateProps
|
|
2452
|
+
}
|
|
2453
|
+
)
|
|
2454
|
+
)
|
|
2455
|
+
);
|
|
2362
2456
|
}
|
|
2363
2457
|
);
|
|
2364
2458
|
|
|
@@ -2388,9 +2482,7 @@ import React54 from "react";
|
|
|
2388
2482
|
import { useTableRowGroup } from "@react-aria/table";
|
|
2389
2483
|
var TableBody = ({ children }) => {
|
|
2390
2484
|
const { rowGroupProps } = useTableRowGroup();
|
|
2391
|
-
return /* @__PURE__ */ React54.createElement("tbody", {
|
|
2392
|
-
...rowGroupProps
|
|
2393
|
-
}, children);
|
|
2485
|
+
return /* @__PURE__ */ React54.createElement("tbody", { ...rowGroupProps }, children);
|
|
2394
2486
|
};
|
|
2395
2487
|
|
|
2396
2488
|
// src/Table/TableCell.tsx
|
|
@@ -2411,19 +2503,27 @@ var TableCell = ({ cell }) => {
|
|
|
2411
2503
|
ref
|
|
2412
2504
|
);
|
|
2413
2505
|
const cellProps = interactive ? gridCellProps : {
|
|
2506
|
+
/**
|
|
2507
|
+
* Override `react-aria` handler so users can select text.
|
|
2508
|
+
* Solution from https://github.com/adobe/react-spectrum/issues/2585
|
|
2509
|
+
*/
|
|
2414
2510
|
...gridCellProps,
|
|
2415
2511
|
onMouseDown: (e) => e.stopPropagation(),
|
|
2416
2512
|
onPointerDown: (e) => e.stopPropagation()
|
|
2417
2513
|
};
|
|
2418
2514
|
const { focusProps, isFocusVisible } = useFocusRing9();
|
|
2419
2515
|
const stateProps = useStateProps13({ disabled, focusVisible: isFocusVisible });
|
|
2420
|
-
return /* @__PURE__ */ React55.createElement(
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2516
|
+
return /* @__PURE__ */ React55.createElement(
|
|
2517
|
+
Box30,
|
|
2518
|
+
{
|
|
2519
|
+
as: "td",
|
|
2520
|
+
ref,
|
|
2521
|
+
css: styles.cell,
|
|
2522
|
+
...mergeProps10(cellProps, focusProps),
|
|
2523
|
+
...stateProps
|
|
2524
|
+
},
|
|
2525
|
+
cell.rendered
|
|
2526
|
+
);
|
|
2427
2527
|
};
|
|
2428
2528
|
|
|
2429
2529
|
// src/Table/TableCheckboxCell.tsx
|
|
@@ -2470,20 +2570,22 @@ var TableCheckboxCell = ({ cell }) => {
|
|
|
2470
2570
|
);
|
|
2471
2571
|
const { focusProps, isFocusVisible } = useFocusRing10();
|
|
2472
2572
|
const stateProps = useStateProps14({ disabled, focusVisible: isFocusVisible });
|
|
2473
|
-
return /* @__PURE__ */ React56.createElement(
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2573
|
+
return /* @__PURE__ */ React56.createElement(
|
|
2574
|
+
Box31,
|
|
2575
|
+
{
|
|
2576
|
+
as: "td",
|
|
2577
|
+
ref,
|
|
2578
|
+
__baseCSS: {
|
|
2579
|
+
textAlign: "center",
|
|
2580
|
+
verticalAlign: "middle",
|
|
2581
|
+
lineHeight: 1
|
|
2582
|
+
},
|
|
2583
|
+
css: styles.cell,
|
|
2584
|
+
...mergeProps11(gridCellProps, focusProps),
|
|
2585
|
+
...stateProps
|
|
2480
2586
|
},
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
...stateProps
|
|
2484
|
-
}, /* @__PURE__ */ React56.createElement(Checkbox, {
|
|
2485
|
-
...checkboxProps
|
|
2486
|
-
}));
|
|
2587
|
+
/* @__PURE__ */ React56.createElement(Checkbox, { ...checkboxProps })
|
|
2588
|
+
);
|
|
2487
2589
|
};
|
|
2488
2590
|
|
|
2489
2591
|
// src/Table/TableColumnHeader.tsx
|
|
@@ -2496,16 +2598,20 @@ import { Box as Box32, useStateProps as useStateProps15 } from "@marigold/system
|
|
|
2496
2598
|
var SortIndicator = ({
|
|
2497
2599
|
direction = "ascending",
|
|
2498
2600
|
visible
|
|
2499
|
-
}) => /* @__PURE__ */ React57.createElement(
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2601
|
+
}) => /* @__PURE__ */ React57.createElement(
|
|
2602
|
+
Box32,
|
|
2603
|
+
{
|
|
2604
|
+
as: "span",
|
|
2605
|
+
role: "presentation",
|
|
2606
|
+
"aria-hidden": "true",
|
|
2607
|
+
css: {
|
|
2608
|
+
color: "currentColor",
|
|
2609
|
+
paddingInlineStart: "0.5ch",
|
|
2610
|
+
visibility: visible ? "visible" : "hidden"
|
|
2611
|
+
}
|
|
2612
|
+
},
|
|
2613
|
+
direction === "ascending" ? "\u25B2" : "\u25BC"
|
|
2614
|
+
);
|
|
2509
2615
|
var TableColumnHeader = ({ column }) => {
|
|
2510
2616
|
var _a, _b;
|
|
2511
2617
|
const ref = useRef12(null);
|
|
@@ -2523,18 +2629,26 @@ var TableColumnHeader = ({ column }) => {
|
|
|
2523
2629
|
hover: isHovered,
|
|
2524
2630
|
focusVisible: isFocusVisible
|
|
2525
2631
|
});
|
|
2526
|
-
return /* @__PURE__ */ React57.createElement(
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2632
|
+
return /* @__PURE__ */ React57.createElement(
|
|
2633
|
+
Box32,
|
|
2634
|
+
{
|
|
2635
|
+
as: "th",
|
|
2636
|
+
colSpan: column.colspan,
|
|
2637
|
+
ref,
|
|
2638
|
+
__baseCSS: { cursor: "default" },
|
|
2639
|
+
css: styles.header,
|
|
2640
|
+
...mergeProps12(columnHeaderProps, hoverProps, focusProps),
|
|
2641
|
+
...stateProps
|
|
2642
|
+
},
|
|
2643
|
+
column.rendered,
|
|
2644
|
+
column.props.allowsSorting && /* @__PURE__ */ React57.createElement(
|
|
2645
|
+
SortIndicator,
|
|
2646
|
+
{
|
|
2647
|
+
direction: (_a = state.sortDescriptor) == null ? void 0 : _a.direction,
|
|
2648
|
+
visible: ((_b = state.sortDescriptor) == null ? void 0 : _b.column) === column.key
|
|
2649
|
+
}
|
|
2650
|
+
)
|
|
2651
|
+
);
|
|
2538
2652
|
};
|
|
2539
2653
|
|
|
2540
2654
|
// src/Table/TableHeader.tsx
|
|
@@ -2542,9 +2656,7 @@ import React58 from "react";
|
|
|
2542
2656
|
import { useTableRowGroup as useTableRowGroup2 } from "@react-aria/table";
|
|
2543
2657
|
var TableHeader = ({ children }) => {
|
|
2544
2658
|
const { rowGroupProps } = useTableRowGroup2();
|
|
2545
|
-
return /* @__PURE__ */ React58.createElement("thead", {
|
|
2546
|
-
...rowGroupProps
|
|
2547
|
-
}, children);
|
|
2659
|
+
return /* @__PURE__ */ React58.createElement("thead", { ...rowGroupProps }, children);
|
|
2548
2660
|
};
|
|
2549
2661
|
|
|
2550
2662
|
// src/Table/TableHeaderRow.tsx
|
|
@@ -2554,10 +2666,7 @@ var TableHeaderRow = ({ item, children }) => {
|
|
|
2554
2666
|
const { state } = useTableContext();
|
|
2555
2667
|
const ref = useRef13(null);
|
|
2556
2668
|
const { rowProps } = useTableHeaderRow({ node: item }, state, ref);
|
|
2557
|
-
return /* @__PURE__ */ React59.createElement("tr", {
|
|
2558
|
-
...rowProps,
|
|
2559
|
-
ref
|
|
2560
|
-
}, children);
|
|
2669
|
+
return /* @__PURE__ */ React59.createElement("tr", { ...rowProps, ref }, children);
|
|
2561
2670
|
};
|
|
2562
2671
|
|
|
2563
2672
|
// src/Table/TableRow.tsx
|
|
@@ -2596,16 +2705,20 @@ var TableRow = ({ children, row }) => {
|
|
|
2596
2705
|
focusVisible: isFocusVisible,
|
|
2597
2706
|
active: isPressed
|
|
2598
2707
|
});
|
|
2599
|
-
return /* @__PURE__ */ React60.createElement(
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2708
|
+
return /* @__PURE__ */ React60.createElement(
|
|
2709
|
+
Box33,
|
|
2710
|
+
{
|
|
2711
|
+
as: "tr",
|
|
2712
|
+
ref,
|
|
2713
|
+
__baseCSS: {
|
|
2714
|
+
cursor: !interactive ? "text" : disabled ? "default" : "pointer"
|
|
2715
|
+
},
|
|
2716
|
+
css: styles,
|
|
2717
|
+
...mergeProps13(rowProps, focusProps, hoverProps),
|
|
2718
|
+
...stateProps
|
|
2604
2719
|
},
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
...stateProps
|
|
2608
|
-
}, children);
|
|
2720
|
+
children
|
|
2721
|
+
);
|
|
2609
2722
|
};
|
|
2610
2723
|
|
|
2611
2724
|
// src/Table/TableSelectAllCell.tsx
|
|
@@ -2635,20 +2748,22 @@ var TableSelectAllCell = ({ column }) => {
|
|
|
2635
2748
|
hover: isHovered,
|
|
2636
2749
|
focusVisible: isFocusVisible
|
|
2637
2750
|
});
|
|
2638
|
-
return /* @__PURE__ */ React61.createElement(
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2751
|
+
return /* @__PURE__ */ React61.createElement(
|
|
2752
|
+
Box34,
|
|
2753
|
+
{
|
|
2754
|
+
as: "th",
|
|
2755
|
+
ref,
|
|
2756
|
+
__baseCSS: {
|
|
2757
|
+
textAlign: "center",
|
|
2758
|
+
verticalAlign: "middle",
|
|
2759
|
+
lineHeight: 1
|
|
2760
|
+
},
|
|
2761
|
+
css: styles.header,
|
|
2762
|
+
...mergeProps14(columnHeaderProps, hoverProps, focusProps),
|
|
2763
|
+
...stateProps
|
|
2645
2764
|
},
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
...stateProps
|
|
2649
|
-
}, /* @__PURE__ */ React61.createElement(Checkbox, {
|
|
2650
|
-
...checkboxProps
|
|
2651
|
-
}));
|
|
2765
|
+
/* @__PURE__ */ React61.createElement(Checkbox, { ...checkboxProps })
|
|
2766
|
+
);
|
|
2652
2767
|
};
|
|
2653
2768
|
|
|
2654
2769
|
// src/Table/Table.tsx
|
|
@@ -2664,7 +2779,8 @@ var Table = ({
|
|
|
2664
2779
|
const state = useTableState({
|
|
2665
2780
|
...props,
|
|
2666
2781
|
selectionMode,
|
|
2667
|
-
showSelectionCheckboxes: selectionMode === "multiple" &&
|
|
2782
|
+
showSelectionCheckboxes: selectionMode === "multiple" && // TODO: It this necessary?
|
|
2783
|
+
props.selectionBehavior !== "replace"
|
|
2668
2784
|
});
|
|
2669
2785
|
const { gridProps } = useTable(props, state, tableRef);
|
|
2670
2786
|
const styles = useComponentStyles28(
|
|
@@ -2673,49 +2789,34 @@ var Table = ({
|
|
|
2673
2789
|
{ parts: ["table", "header", "row", "cell"] }
|
|
2674
2790
|
);
|
|
2675
2791
|
const { collection } = state;
|
|
2676
|
-
return /* @__PURE__ */ React62.createElement(TableContext.Provider, {
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2792
|
+
return /* @__PURE__ */ React62.createElement(TableContext.Provider, { value: { state, interactive, styles } }, /* @__PURE__ */ React62.createElement(
|
|
2793
|
+
Box35,
|
|
2794
|
+
{
|
|
2795
|
+
as: "table",
|
|
2796
|
+
ref: tableRef,
|
|
2797
|
+
__baseCSS: {
|
|
2798
|
+
display: stretch ? "table" : "block",
|
|
2799
|
+
width: stretch ? "100%" : void 0,
|
|
2800
|
+
borderCollapse: "collapse",
|
|
2801
|
+
overflow: "auto",
|
|
2802
|
+
whiteSpace: "nowrap"
|
|
2803
|
+
},
|
|
2804
|
+
css: styles.table,
|
|
2805
|
+
...gridProps
|
|
2687
2806
|
},
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
(
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
key:
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
column
|
|
2702
|
-
});
|
|
2703
|
-
}
|
|
2704
|
-
)))), /* @__PURE__ */ React62.createElement(TableBody, null, [...collection.body.childNodes].map((row) => /* @__PURE__ */ React62.createElement(TableRow, {
|
|
2705
|
-
key: row.key,
|
|
2706
|
-
row
|
|
2707
|
-
}, [...row.childNodes].map(
|
|
2708
|
-
(cell) => {
|
|
2709
|
-
var _a;
|
|
2710
|
-
return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ React62.createElement(TableCheckboxCell, {
|
|
2711
|
-
key: cell.key,
|
|
2712
|
-
cell
|
|
2713
|
-
}) : /* @__PURE__ */ React62.createElement(TableCell, {
|
|
2714
|
-
key: cell.key,
|
|
2715
|
-
cell
|
|
2716
|
-
});
|
|
2717
|
-
}
|
|
2718
|
-
))))));
|
|
2807
|
+
/* @__PURE__ */ React62.createElement(TableHeader, null, collection.headerRows.map((headerRow) => /* @__PURE__ */ React62.createElement(TableHeaderRow, { key: headerRow.key, item: headerRow }, [...headerRow.childNodes].map(
|
|
2808
|
+
(column) => {
|
|
2809
|
+
var _a;
|
|
2810
|
+
return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ React62.createElement(TableSelectAllCell, { key: column.key, column }) : /* @__PURE__ */ React62.createElement(TableColumnHeader, { key: column.key, column });
|
|
2811
|
+
}
|
|
2812
|
+
)))),
|
|
2813
|
+
/* @__PURE__ */ React62.createElement(TableBody, null, [...collection.body.childNodes].map((row) => /* @__PURE__ */ React62.createElement(TableRow, { key: row.key, row }, [...row.childNodes].map(
|
|
2814
|
+
(cell) => {
|
|
2815
|
+
var _a;
|
|
2816
|
+
return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ React62.createElement(TableCheckboxCell, { key: cell.key, cell }) : /* @__PURE__ */ React62.createElement(TableCell, { key: cell.key, cell });
|
|
2817
|
+
}
|
|
2818
|
+
))))
|
|
2819
|
+
));
|
|
2719
2820
|
};
|
|
2720
2821
|
Table.Body = Body2;
|
|
2721
2822
|
Table.Cell = Cell;
|
|
@@ -2746,22 +2847,26 @@ var Text = ({
|
|
|
2746
2847
|
variant,
|
|
2747
2848
|
size
|
|
2748
2849
|
});
|
|
2749
|
-
return /* @__PURE__ */ React63.createElement(
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2850
|
+
return /* @__PURE__ */ React63.createElement(
|
|
2851
|
+
Box36,
|
|
2852
|
+
{
|
|
2853
|
+
as: "p",
|
|
2854
|
+
...props,
|
|
2855
|
+
css: [
|
|
2856
|
+
styles,
|
|
2857
|
+
{
|
|
2858
|
+
display,
|
|
2859
|
+
color,
|
|
2860
|
+
cursor,
|
|
2861
|
+
outline,
|
|
2862
|
+
fontSize,
|
|
2863
|
+
fontWeight,
|
|
2864
|
+
textAlign: align
|
|
2865
|
+
}
|
|
2866
|
+
]
|
|
2867
|
+
},
|
|
2868
|
+
children
|
|
2869
|
+
);
|
|
2765
2870
|
};
|
|
2766
2871
|
|
|
2767
2872
|
// src/TextArea/TextArea.tsx
|
|
@@ -2810,29 +2915,36 @@ var TextArea = forwardRef14(
|
|
|
2810
2915
|
error
|
|
2811
2916
|
});
|
|
2812
2917
|
const styles = useComponentStyles30("TextArea", { variant, size });
|
|
2813
|
-
return /* @__PURE__ */ React64.createElement(
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2918
|
+
return /* @__PURE__ */ React64.createElement(
|
|
2919
|
+
FieldBase,
|
|
2920
|
+
{
|
|
2921
|
+
label,
|
|
2922
|
+
labelProps,
|
|
2923
|
+
required,
|
|
2924
|
+
description,
|
|
2925
|
+
descriptionProps,
|
|
2926
|
+
error,
|
|
2927
|
+
errorMessage,
|
|
2928
|
+
errorMessageProps,
|
|
2929
|
+
stateProps,
|
|
2930
|
+
variant,
|
|
2931
|
+
size,
|
|
2932
|
+
width
|
|
2933
|
+
},
|
|
2934
|
+
/* @__PURE__ */ React64.createElement(
|
|
2935
|
+
Box37,
|
|
2936
|
+
{
|
|
2937
|
+
as: "textarea",
|
|
2938
|
+
css: styles,
|
|
2939
|
+
ref: textAreaRef,
|
|
2940
|
+
rows,
|
|
2941
|
+
...inputProps,
|
|
2942
|
+
...focusProps,
|
|
2943
|
+
...hoverProps,
|
|
2944
|
+
...stateProps
|
|
2945
|
+
}
|
|
2946
|
+
)
|
|
2947
|
+
);
|
|
2836
2948
|
}
|
|
2837
2949
|
);
|
|
2838
2950
|
|
|
@@ -2869,28 +2981,35 @@ var TextField = forwardRef15(
|
|
|
2869
2981
|
readOnly,
|
|
2870
2982
|
error
|
|
2871
2983
|
});
|
|
2872
|
-
return /* @__PURE__ */ React65.createElement(
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2984
|
+
return /* @__PURE__ */ React65.createElement(
|
|
2985
|
+
FieldBase,
|
|
2986
|
+
{
|
|
2987
|
+
label,
|
|
2988
|
+
labelProps,
|
|
2989
|
+
required,
|
|
2990
|
+
description,
|
|
2991
|
+
descriptionProps,
|
|
2992
|
+
error,
|
|
2993
|
+
errorMessage,
|
|
2994
|
+
errorMessageProps,
|
|
2995
|
+
stateProps,
|
|
2996
|
+
variant,
|
|
2997
|
+
size,
|
|
2998
|
+
width
|
|
2999
|
+
},
|
|
3000
|
+
/* @__PURE__ */ React65.createElement(
|
|
3001
|
+
Input,
|
|
3002
|
+
{
|
|
3003
|
+
ref: inputRef,
|
|
3004
|
+
variant,
|
|
3005
|
+
size,
|
|
3006
|
+
...inputProps,
|
|
3007
|
+
...focusProps,
|
|
3008
|
+
...hoverProps,
|
|
3009
|
+
...stateProps
|
|
3010
|
+
}
|
|
3011
|
+
)
|
|
3012
|
+
);
|
|
2894
3013
|
}
|
|
2895
3014
|
);
|
|
2896
3015
|
|
|
@@ -2911,15 +3030,23 @@ var Tiles = ({
|
|
|
2911
3030
|
if (stretch) {
|
|
2912
3031
|
column = `minmax(${column}, 1fr)`;
|
|
2913
3032
|
}
|
|
2914
|
-
return /* @__PURE__ */ React66.createElement(
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
3033
|
+
return /* @__PURE__ */ React66.createElement(
|
|
3034
|
+
Box,
|
|
3035
|
+
{
|
|
3036
|
+
...props,
|
|
3037
|
+
css: {
|
|
3038
|
+
display: "grid",
|
|
3039
|
+
gap: space,
|
|
3040
|
+
gridTemplateColumns: `repeat(auto-fit, ${column})`,
|
|
3041
|
+
/**
|
|
3042
|
+
* Make height of all tiles in each row
|
|
3043
|
+
* match the heighest tile.
|
|
3044
|
+
*/
|
|
3045
|
+
gridAutoRows: equalHeight ? "1fr" : void 0
|
|
3046
|
+
}
|
|
3047
|
+
},
|
|
3048
|
+
children
|
|
3049
|
+
);
|
|
2923
3050
|
};
|
|
2924
3051
|
|
|
2925
3052
|
// src/Tooltip/Tooltip.tsx
|
|
@@ -2977,21 +3104,20 @@ var TooltipTrigger = ({
|
|
|
2977
3104
|
isOpen: state.isOpen,
|
|
2978
3105
|
overlayRef
|
|
2979
3106
|
});
|
|
2980
|
-
return /* @__PURE__ */ React67.createElement(FocusableProvider, {
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
}
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
}, tooltip)));
|
|
3107
|
+
return /* @__PURE__ */ React67.createElement(FocusableProvider, { ref: tooltipTriggerRef, ...triggerProps }, tooltipTrigger, /* @__PURE__ */ React67.createElement(
|
|
3108
|
+
TooltipContext.Provider,
|
|
3109
|
+
{
|
|
3110
|
+
value: {
|
|
3111
|
+
state,
|
|
3112
|
+
overlayRef,
|
|
3113
|
+
arrowProps,
|
|
3114
|
+
placement: overlayPlacement,
|
|
3115
|
+
...tooltipProps,
|
|
3116
|
+
...positionProps
|
|
3117
|
+
}
|
|
3118
|
+
},
|
|
3119
|
+
/* @__PURE__ */ React67.createElement(Overlay, { open: state.isOpen }, tooltip)
|
|
3120
|
+
));
|
|
2995
3121
|
};
|
|
2996
3122
|
|
|
2997
3123
|
// src/Tooltip/Tooltip.tsx
|
|
@@ -3003,152 +3129,249 @@ var Tooltip = ({ children, variant, size }) => {
|
|
|
3003
3129
|
{ variant, size },
|
|
3004
3130
|
{ parts: ["container", "arrow"] }
|
|
3005
3131
|
);
|
|
3006
|
-
return /* @__PURE__ */ React68.createElement(
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
__baseCSS: {
|
|
3015
|
-
position: "absolute",
|
|
3016
|
-
height: 0,
|
|
3017
|
-
width: 0,
|
|
3018
|
-
borderStyle: "solid",
|
|
3019
|
-
borderLeftColor: "transparent",
|
|
3020
|
-
borderRightColor: "transparent",
|
|
3021
|
-
borderBottomColor: "transparent"
|
|
3132
|
+
return /* @__PURE__ */ React68.createElement(
|
|
3133
|
+
Box38,
|
|
3134
|
+
{
|
|
3135
|
+
...tooltipProps,
|
|
3136
|
+
...rest,
|
|
3137
|
+
ref: overlayRef,
|
|
3138
|
+
css: styles.container,
|
|
3139
|
+
"data-placement": placement
|
|
3022
3140
|
},
|
|
3023
|
-
|
|
3024
|
-
|
|
3141
|
+
/* @__PURE__ */ React68.createElement("div", null, children),
|
|
3142
|
+
/* @__PURE__ */ React68.createElement(
|
|
3143
|
+
Box38,
|
|
3144
|
+
{
|
|
3145
|
+
...arrowProps,
|
|
3146
|
+
__baseCSS: {
|
|
3147
|
+
position: "absolute",
|
|
3148
|
+
height: 0,
|
|
3149
|
+
width: 0,
|
|
3150
|
+
borderStyle: "solid",
|
|
3151
|
+
borderLeftColor: "transparent",
|
|
3152
|
+
borderRightColor: "transparent",
|
|
3153
|
+
borderBottomColor: "transparent"
|
|
3154
|
+
},
|
|
3155
|
+
css: styles.arrow
|
|
3156
|
+
}
|
|
3157
|
+
)
|
|
3158
|
+
);
|
|
3025
3159
|
};
|
|
3026
3160
|
Tooltip.Trigger = TooltipTrigger;
|
|
3027
3161
|
|
|
3028
3162
|
// src/XLoader/XLoader.tsx
|
|
3029
3163
|
import { SVG as SVG4 } from "@marigold/system";
|
|
3030
3164
|
import React69, { forwardRef as forwardRef16 } from "react";
|
|
3031
|
-
var XLoader = forwardRef16((props, ref) => /* @__PURE__ */ React69.createElement(
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
}
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
}
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3165
|
+
var XLoader = forwardRef16((props, ref) => /* @__PURE__ */ React69.createElement(
|
|
3166
|
+
SVG4,
|
|
3167
|
+
{
|
|
3168
|
+
id: "XLoader",
|
|
3169
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3170
|
+
size: 150,
|
|
3171
|
+
viewBox: "0 0 150 150",
|
|
3172
|
+
...props,
|
|
3173
|
+
...ref
|
|
3174
|
+
},
|
|
3175
|
+
/* @__PURE__ */ React69.createElement("path", { id: "XMLID_1_", d: "M35.3 27h26.5l54 74.1H88.7z" }),
|
|
3176
|
+
/* @__PURE__ */ React69.createElement(
|
|
3177
|
+
"path",
|
|
3178
|
+
{
|
|
3179
|
+
id: "XMLID_5_",
|
|
3180
|
+
d: "M124.3 12.8h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c0 2.7-2.2 4.9-4.9 4.9z"
|
|
3181
|
+
},
|
|
3182
|
+
/* @__PURE__ */ React69.createElement(
|
|
3183
|
+
"animate",
|
|
3184
|
+
{
|
|
3185
|
+
attributeName: "opacity",
|
|
3186
|
+
attributeType: "XML",
|
|
3187
|
+
values: "1; .01; 1; 1; 1;",
|
|
3188
|
+
begin: "1.0s",
|
|
3189
|
+
dur: "2.5s",
|
|
3190
|
+
repeatCount: "indefinite"
|
|
3191
|
+
}
|
|
3192
|
+
)
|
|
3193
|
+
),
|
|
3194
|
+
/* @__PURE__ */ React69.createElement(
|
|
3195
|
+
"path",
|
|
3196
|
+
{
|
|
3197
|
+
id: "XMLID_18_",
|
|
3198
|
+
d: "M115.9 24.4h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c0 2.7-2.2 4.9-4.9 4.9z"
|
|
3199
|
+
},
|
|
3200
|
+
/* @__PURE__ */ React69.createElement(
|
|
3201
|
+
"animate",
|
|
3202
|
+
{
|
|
3203
|
+
attributeName: "opacity",
|
|
3204
|
+
attributeType: "XML",
|
|
3205
|
+
values: "1; .01; 1; 1; 1;",
|
|
3206
|
+
begin: "0.9s",
|
|
3207
|
+
dur: "2.5s",
|
|
3208
|
+
repeatCount: "indefinite"
|
|
3209
|
+
}
|
|
3210
|
+
)
|
|
3211
|
+
),
|
|
3212
|
+
/* @__PURE__ */ React69.createElement(
|
|
3213
|
+
"path",
|
|
3214
|
+
{
|
|
3215
|
+
id: "XMLID_19_",
|
|
3216
|
+
d: "M107.5 35.9h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c0 2.7-2.2 4.9-4.9 4.9z"
|
|
3217
|
+
},
|
|
3218
|
+
/* @__PURE__ */ React69.createElement(
|
|
3219
|
+
"animate",
|
|
3220
|
+
{
|
|
3221
|
+
attributeName: "opacity",
|
|
3222
|
+
attributeType: "XML",
|
|
3223
|
+
values: "1; .01; 1; 1; 1;",
|
|
3224
|
+
begin: "0.8s",
|
|
3225
|
+
dur: "2.5s",
|
|
3226
|
+
repeatCount: "indefinite"
|
|
3227
|
+
}
|
|
3228
|
+
)
|
|
3229
|
+
),
|
|
3230
|
+
/* @__PURE__ */ React69.createElement(
|
|
3231
|
+
"path",
|
|
3232
|
+
{
|
|
3233
|
+
id: "XMLID_20_",
|
|
3234
|
+
d: "M99.1 47.5h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c0 2.7-2.2 4.9-4.9 4.9z"
|
|
3235
|
+
},
|
|
3236
|
+
/* @__PURE__ */ React69.createElement(
|
|
3237
|
+
"animate",
|
|
3238
|
+
{
|
|
3239
|
+
attributeName: "opacity",
|
|
3240
|
+
attributeType: "XML",
|
|
3241
|
+
values: "1; .01; 1; 1; 1;",
|
|
3242
|
+
begin: "0.7s",
|
|
3243
|
+
dur: "2.5s",
|
|
3244
|
+
repeatCount: "indefinite"
|
|
3245
|
+
}
|
|
3246
|
+
)
|
|
3247
|
+
),
|
|
3248
|
+
/* @__PURE__ */ React69.createElement(
|
|
3249
|
+
"path",
|
|
3250
|
+
{
|
|
3251
|
+
id: "XMLID_21_",
|
|
3252
|
+
d: "M90.7 59H90c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c0 2.8-2.2 4.9-4.9 4.9z"
|
|
3253
|
+
},
|
|
3254
|
+
/* @__PURE__ */ React69.createElement(
|
|
3255
|
+
"animate",
|
|
3256
|
+
{
|
|
3257
|
+
attributeName: "opacity",
|
|
3258
|
+
attributeType: "XML",
|
|
3259
|
+
values: "1; .01; 1; 1; 1;",
|
|
3260
|
+
begin: "0.6s",
|
|
3261
|
+
dur: "2.5s",
|
|
3262
|
+
repeatCount: "indefinite"
|
|
3263
|
+
}
|
|
3264
|
+
)
|
|
3265
|
+
),
|
|
3266
|
+
/* @__PURE__ */ React69.createElement(
|
|
3267
|
+
"path",
|
|
3268
|
+
{
|
|
3269
|
+
id: "XMLID_22_",
|
|
3270
|
+
d: "M68 89.8h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.8c0 2.6-2.2 4.8-4.9 4.8z"
|
|
3271
|
+
},
|
|
3272
|
+
/* @__PURE__ */ React69.createElement(
|
|
3273
|
+
"animate",
|
|
3274
|
+
{
|
|
3275
|
+
attributeName: "opacity",
|
|
3276
|
+
attributeType: "XML",
|
|
3277
|
+
values: "1; .01; 1; 1; 1;",
|
|
3278
|
+
begin: "0.5s",
|
|
3279
|
+
dur: "2.5s",
|
|
3280
|
+
repeatCount: "indefinite"
|
|
3281
|
+
}
|
|
3282
|
+
)
|
|
3283
|
+
),
|
|
3284
|
+
/* @__PURE__ */ React69.createElement(
|
|
3285
|
+
"path",
|
|
3286
|
+
{
|
|
3287
|
+
id: "XMLID_23_",
|
|
3288
|
+
d: "M59.6 101.4h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c0 2.7-2.2 4.9-4.9 4.9z"
|
|
3289
|
+
},
|
|
3290
|
+
/* @__PURE__ */ React69.createElement(
|
|
3291
|
+
"animate",
|
|
3292
|
+
{
|
|
3293
|
+
attributeName: "opacity",
|
|
3294
|
+
attributeType: "XML",
|
|
3295
|
+
values: "1; .01; 1; 1; 1;",
|
|
3296
|
+
begin: "0.4s",
|
|
3297
|
+
dur: "2.5s",
|
|
3298
|
+
repeatCount: "indefinite"
|
|
3299
|
+
}
|
|
3300
|
+
)
|
|
3301
|
+
),
|
|
3302
|
+
/* @__PURE__ */ React69.createElement(
|
|
3303
|
+
"path",
|
|
3304
|
+
{
|
|
3305
|
+
id: "XMLID_24_",
|
|
3306
|
+
d: "M51.2 112.9h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c-.1 2.8-2.2 4.9-4.9 4.9z"
|
|
3307
|
+
},
|
|
3308
|
+
/* @__PURE__ */ React69.createElement(
|
|
3309
|
+
"animate",
|
|
3310
|
+
{
|
|
3311
|
+
attributeName: "opacity",
|
|
3312
|
+
attributeType: "XML",
|
|
3313
|
+
values: "1; .01; 1; 1; 1;",
|
|
3314
|
+
begin: "0.3s",
|
|
3315
|
+
dur: "2.5s",
|
|
3316
|
+
repeatCount: "indefinite"
|
|
3317
|
+
}
|
|
3318
|
+
)
|
|
3319
|
+
),
|
|
3320
|
+
/* @__PURE__ */ React69.createElement(
|
|
3321
|
+
"path",
|
|
3322
|
+
{
|
|
3323
|
+
id: "XMLID_25_",
|
|
3324
|
+
d: "M42.8 124.5h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c-.1 2.7-2.2 4.9-4.9 4.9z"
|
|
3325
|
+
},
|
|
3326
|
+
/* @__PURE__ */ React69.createElement(
|
|
3327
|
+
"animate",
|
|
3328
|
+
{
|
|
3329
|
+
attributeName: "opacity",
|
|
3330
|
+
attributeType: "XML",
|
|
3331
|
+
values: "1; .01; 1; 1; 1;",
|
|
3332
|
+
begin: "0.2s",
|
|
3333
|
+
dur: "2.5s",
|
|
3334
|
+
repeatCount: "indefinite"
|
|
3335
|
+
}
|
|
3336
|
+
)
|
|
3337
|
+
),
|
|
3338
|
+
/* @__PURE__ */ React69.createElement(
|
|
3339
|
+
"path",
|
|
3340
|
+
{
|
|
3341
|
+
id: "XMLID_26_",
|
|
3342
|
+
d: "M34.4 136h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c-.1 2.7-2.2 4.9-4.9 4.9z"
|
|
3343
|
+
},
|
|
3344
|
+
/* @__PURE__ */ React69.createElement(
|
|
3345
|
+
"animate",
|
|
3346
|
+
{
|
|
3347
|
+
attributeName: "opacity",
|
|
3348
|
+
attributeType: "XML",
|
|
3349
|
+
values: "1; .01; 1; 1; 1;",
|
|
3350
|
+
begin: "0.1s",
|
|
3351
|
+
dur: "2.5s",
|
|
3352
|
+
repeatCount: "indefinite"
|
|
3353
|
+
}
|
|
3354
|
+
)
|
|
3355
|
+
),
|
|
3356
|
+
/* @__PURE__ */ React69.createElement(
|
|
3357
|
+
"path",
|
|
3358
|
+
{
|
|
3359
|
+
id: "XMLID_27_",
|
|
3360
|
+
d: "M26 147.6h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c-.1 2.8-2.2 4.9-4.9 4.9z"
|
|
3361
|
+
},
|
|
3362
|
+
/* @__PURE__ */ React69.createElement(
|
|
3363
|
+
"animate",
|
|
3364
|
+
{
|
|
3365
|
+
attributeName: "opacity",
|
|
3366
|
+
attributeType: "XML",
|
|
3367
|
+
values: "1; .01; 1; 1; 1;",
|
|
3368
|
+
begin: "0.0s",
|
|
3369
|
+
dur: "2.5s",
|
|
3370
|
+
repeatCount: "indefinite"
|
|
3371
|
+
}
|
|
3372
|
+
)
|
|
3373
|
+
)
|
|
3374
|
+
));
|
|
3152
3375
|
export {
|
|
3153
3376
|
ActionMenu,
|
|
3154
3377
|
Aside,
|