@marigold/components 4.2.2 → 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.d.ts +57 -40
- package/dist/index.js +1703 -1402
- package/dist/index.mjs +1590 -1294
- package/package.json +6 -6
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,21 +723,25 @@ 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
|
|
678
|
-
import
|
|
744
|
+
import React26, { useRef as useRef3 } from "react";
|
|
679
745
|
import { useButton as useButton2 } from "@react-aria/button";
|
|
680
746
|
import { useDialog } from "@react-aria/dialog";
|
|
681
747
|
import {
|
|
@@ -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,51 @@ 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
|
+
)));
|
|
1020
|
+
};
|
|
1021
|
+
|
|
1022
|
+
// src/Dialog/DialogController.tsx
|
|
1023
|
+
import { useOverlayTriggerState as useOverlayTriggerState2 } from "@react-stately/overlays";
|
|
1024
|
+
import React25 from "react";
|
|
1025
|
+
var DialogController = ({
|
|
1026
|
+
children,
|
|
1027
|
+
dismissable = true,
|
|
1028
|
+
keyboardDismissable = true,
|
|
1029
|
+
open,
|
|
1030
|
+
onOpenChange
|
|
1031
|
+
}) => {
|
|
1032
|
+
const state = useOverlayTriggerState2({
|
|
1033
|
+
isOpen: open,
|
|
1034
|
+
onOpenChange
|
|
1035
|
+
});
|
|
1036
|
+
const ctx = { open: state.isOpen, close: state.close };
|
|
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
|
+
)));
|
|
974
1047
|
};
|
|
975
1048
|
|
|
976
1049
|
// src/Dialog/Dialog.tsx
|
|
@@ -983,35 +1056,37 @@ var CloseButton = ({ css }) => {
|
|
|
983
1056
|
},
|
|
984
1057
|
ref
|
|
985
1058
|
);
|
|
986
|
-
return /* @__PURE__ */
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
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
|
|
998
1075
|
},
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
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"
|
|
1009
|
-
}))));
|
|
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
|
+
));
|
|
1010
1085
|
};
|
|
1011
1086
|
var addTitleProps = (children, titleProps) => {
|
|
1012
|
-
const childs =
|
|
1087
|
+
const childs = React26.Children.toArray(children);
|
|
1013
1088
|
const titleIndex = childs.findIndex(
|
|
1014
|
-
(child) =>
|
|
1089
|
+
(child) => React26.isValidElement(child) && (child.type === Header || child.type === Headline)
|
|
1015
1090
|
);
|
|
1016
1091
|
if (titleIndex < 0) {
|
|
1017
1092
|
console.warn(
|
|
@@ -1019,7 +1094,7 @@ var addTitleProps = (children, titleProps) => {
|
|
|
1019
1094
|
);
|
|
1020
1095
|
return children;
|
|
1021
1096
|
}
|
|
1022
|
-
const titleChild =
|
|
1097
|
+
const titleChild = React26.cloneElement(
|
|
1023
1098
|
childs[titleIndex],
|
|
1024
1099
|
titleProps
|
|
1025
1100
|
);
|
|
@@ -1041,46 +1116,33 @@ var Dialog = ({
|
|
|
1041
1116
|
{ variant, size },
|
|
1042
1117
|
{ parts: ["container", "closeButton"] }
|
|
1043
1118
|
);
|
|
1044
|
-
return /* @__PURE__ */
|
|
1045
|
-
__baseCSS: { bg: "#fff" },
|
|
1046
|
-
css: styles.container,
|
|
1047
|
-
...dialogProps
|
|
1048
|
-
}, closeButton && /* @__PURE__ */ React25.createElement(CloseButton, {
|
|
1049
|
-
css: styles.closeButton
|
|
1050
|
-
}), 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));
|
|
1051
1120
|
};
|
|
1052
1121
|
Dialog.Trigger = DialogTrigger;
|
|
1122
|
+
Dialog.Controller = DialogController;
|
|
1053
1123
|
|
|
1054
1124
|
// src/Divider/Divider.tsx
|
|
1055
|
-
import
|
|
1125
|
+
import React27 from "react";
|
|
1056
1126
|
import { useSeparator } from "@react-aria/separator";
|
|
1057
1127
|
import { Box as Box14, useComponentStyles as useComponentStyles13 } from "@marigold/system";
|
|
1058
1128
|
var Divider = ({ variant, ...props }) => {
|
|
1059
1129
|
const { separatorProps } = useSeparator(props);
|
|
1060
1130
|
const styles = useComponentStyles13("Divider", { variant });
|
|
1061
|
-
return /* @__PURE__ */
|
|
1062
|
-
css: styles,
|
|
1063
|
-
...props,
|
|
1064
|
-
...separatorProps
|
|
1065
|
-
});
|
|
1131
|
+
return /* @__PURE__ */ React27.createElement(Box14, { css: styles, ...props, ...separatorProps });
|
|
1066
1132
|
};
|
|
1067
1133
|
|
|
1068
1134
|
// src/Footer/Footer.tsx
|
|
1069
|
-
import
|
|
1135
|
+
import React28 from "react";
|
|
1070
1136
|
import {
|
|
1071
1137
|
useComponentStyles as useComponentStyles14
|
|
1072
1138
|
} from "@marigold/system";
|
|
1073
1139
|
var Footer = ({ children, variant, size, ...props }) => {
|
|
1074
1140
|
const styles = useComponentStyles14("Footer", { variant, size });
|
|
1075
|
-
return /* @__PURE__ */
|
|
1076
|
-
as: "footer",
|
|
1077
|
-
...props,
|
|
1078
|
-
css: styles
|
|
1079
|
-
}, children);
|
|
1141
|
+
return /* @__PURE__ */ React28.createElement(Box, { as: "footer", ...props, css: styles }, children);
|
|
1080
1142
|
};
|
|
1081
1143
|
|
|
1082
1144
|
// src/Image/Image.tsx
|
|
1083
|
-
import
|
|
1145
|
+
import React29 from "react";
|
|
1084
1146
|
import { Box as Box15 } from "@marigold/system";
|
|
1085
1147
|
import { useComponentStyles as useComponentStyles15 } from "@marigold/system";
|
|
1086
1148
|
var Image = ({
|
|
@@ -1096,16 +1158,19 @@ var Image = ({
|
|
|
1096
1158
|
objectFit: fit,
|
|
1097
1159
|
objectPosition: position
|
|
1098
1160
|
};
|
|
1099
|
-
return /* @__PURE__ */
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1161
|
+
return /* @__PURE__ */ React29.createElement(
|
|
1162
|
+
Box15,
|
|
1163
|
+
{
|
|
1164
|
+
...props,
|
|
1165
|
+
as: "img",
|
|
1166
|
+
__baseCSS: fit ? { width: " 100%", height: "100%" } : {},
|
|
1167
|
+
css
|
|
1168
|
+
}
|
|
1169
|
+
);
|
|
1105
1170
|
};
|
|
1106
1171
|
|
|
1107
1172
|
// src/Inline/Inline.tsx
|
|
1108
|
-
import
|
|
1173
|
+
import React30 from "react";
|
|
1109
1174
|
var ALIGNMENT_X = {
|
|
1110
1175
|
left: "flex-start",
|
|
1111
1176
|
center: "center",
|
|
@@ -1122,35 +1187,33 @@ var Inline = ({
|
|
|
1122
1187
|
alignY = "center",
|
|
1123
1188
|
children,
|
|
1124
1189
|
...props
|
|
1125
|
-
}) => /* @__PURE__ */
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
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
|
|
1132
1201
|
},
|
|
1133
|
-
|
|
1134
|
-
|
|
1202
|
+
children
|
|
1203
|
+
);
|
|
1135
1204
|
|
|
1136
1205
|
// src/Input/Input.tsx
|
|
1137
|
-
import
|
|
1206
|
+
import React31, { forwardRef as forwardRef6 } from "react";
|
|
1138
1207
|
import { Box as Box16, useComponentStyles as useComponentStyles16 } from "@marigold/system";
|
|
1139
1208
|
var Input = forwardRef6(
|
|
1140
1209
|
({ variant, size, type = "text", ...props }, ref) => {
|
|
1141
1210
|
const styles = useComponentStyles16("Input", { variant, size });
|
|
1142
|
-
return /* @__PURE__ */
|
|
1143
|
-
...props,
|
|
1144
|
-
ref,
|
|
1145
|
-
as: "input",
|
|
1146
|
-
type,
|
|
1147
|
-
css: styles
|
|
1148
|
-
});
|
|
1211
|
+
return /* @__PURE__ */ React31.createElement(Box16, { ...props, ref, as: "input", type, css: styles });
|
|
1149
1212
|
}
|
|
1150
1213
|
);
|
|
1151
1214
|
|
|
1152
1215
|
// src/Link/Link.tsx
|
|
1153
|
-
import
|
|
1216
|
+
import React32, { forwardRef as forwardRef7 } from "react";
|
|
1154
1217
|
import { useLink } from "@react-aria/link";
|
|
1155
1218
|
import { useComponentStyles as useComponentStyles17 } from "@marigold/system";
|
|
1156
1219
|
import { useObjectRef as useObjectRef6 } from "@react-aria/utils";
|
|
@@ -1175,19 +1238,23 @@ var Link = forwardRef7(
|
|
|
1175
1238
|
linkRef
|
|
1176
1239
|
);
|
|
1177
1240
|
const styles = useComponentStyles17("Link", { variant, size });
|
|
1178
|
-
return /* @__PURE__ */
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
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
|
+
);
|
|
1186
1253
|
}
|
|
1187
1254
|
);
|
|
1188
1255
|
|
|
1189
1256
|
// src/List/List.tsx
|
|
1190
|
-
import
|
|
1257
|
+
import React34 from "react";
|
|
1191
1258
|
import {
|
|
1192
1259
|
Box as Box18,
|
|
1193
1260
|
useComponentStyles as useComponentStyles18
|
|
@@ -1199,15 +1266,11 @@ var ListContext = createContext4({});
|
|
|
1199
1266
|
var useListContext = () => useContext4(ListContext);
|
|
1200
1267
|
|
|
1201
1268
|
// src/List/ListItem.tsx
|
|
1202
|
-
import
|
|
1269
|
+
import React33 from "react";
|
|
1203
1270
|
import { Box as Box17 } from "@marigold/system";
|
|
1204
1271
|
var ListItem = ({ children, ...props }) => {
|
|
1205
1272
|
const { styles } = useListContext();
|
|
1206
|
-
return /* @__PURE__ */
|
|
1207
|
-
...props,
|
|
1208
|
-
as: "li",
|
|
1209
|
-
css: styles
|
|
1210
|
-
}, children);
|
|
1273
|
+
return /* @__PURE__ */ React33.createElement(Box17, { ...props, as: "li", css: styles }, children);
|
|
1211
1274
|
};
|
|
1212
1275
|
|
|
1213
1276
|
// src/List/List.tsx
|
|
@@ -1223,18 +1286,12 @@ var List = ({
|
|
|
1223
1286
|
{ variant, size },
|
|
1224
1287
|
{ parts: ["ul", "ol", "item"] }
|
|
1225
1288
|
);
|
|
1226
|
-
return /* @__PURE__ */
|
|
1227
|
-
...props,
|
|
1228
|
-
as,
|
|
1229
|
-
css: styles[as]
|
|
1230
|
-
}, /* @__PURE__ */ React33.createElement(ListContext.Provider, {
|
|
1231
|
-
value: { styles: styles.item }
|
|
1232
|
-
}, children));
|
|
1289
|
+
return /* @__PURE__ */ React34.createElement(Box18, { ...props, as, css: styles[as] }, /* @__PURE__ */ React34.createElement(ListContext.Provider, { value: { styles: styles.item } }, children));
|
|
1233
1290
|
};
|
|
1234
1291
|
List.Item = ListItem;
|
|
1235
1292
|
|
|
1236
1293
|
// src/Menu/Menu.tsx
|
|
1237
|
-
import
|
|
1294
|
+
import React37, { useRef as useRef6 } from "react";
|
|
1238
1295
|
import { useMenu } from "@react-aria/menu";
|
|
1239
1296
|
import { Item } from "@react-stately/collections";
|
|
1240
1297
|
import { useTreeState } from "@react-stately/tree";
|
|
@@ -1252,17 +1309,25 @@ var MenuContext = createContext5({});
|
|
|
1252
1309
|
var useMenuContext = () => useContext5(MenuContext);
|
|
1253
1310
|
|
|
1254
1311
|
// src/Menu/MenuTrigger.tsx
|
|
1255
|
-
import
|
|
1312
|
+
import React35, { useRef as useRef4 } from "react";
|
|
1256
1313
|
import { useMenuTriggerState } from "@react-stately/menu";
|
|
1257
1314
|
import { PressResponder as PressResponder2 } from "@react-aria/interactions";
|
|
1258
1315
|
import { useMenuTrigger } from "@react-aria/menu";
|
|
1259
1316
|
import { useObjectRef as useObjectRef7 } from "@react-aria/utils";
|
|
1260
1317
|
import { useResponsiveValue } from "@marigold/system";
|
|
1261
|
-
var MenuTrigger = ({
|
|
1262
|
-
|
|
1318
|
+
var MenuTrigger = ({
|
|
1319
|
+
disabled,
|
|
1320
|
+
open,
|
|
1321
|
+
onOpenChange,
|
|
1322
|
+
children
|
|
1323
|
+
}) => {
|
|
1324
|
+
const [menuTrigger, menu] = React35.Children.toArray(children);
|
|
1263
1325
|
const menuTriggerRef = useRef4(null);
|
|
1264
1326
|
const menuRef = useObjectRef7();
|
|
1265
|
-
const state = useMenuTriggerState({
|
|
1327
|
+
const state = useMenuTriggerState({
|
|
1328
|
+
isOpen: open,
|
|
1329
|
+
onOpenChange
|
|
1330
|
+
});
|
|
1266
1331
|
const { menuTriggerProps, menuProps } = useMenuTrigger(
|
|
1267
1332
|
{ trigger: "press", isDisabled: disabled },
|
|
1268
1333
|
state,
|
|
@@ -1276,23 +1341,19 @@ var MenuTrigger = ({ disabled, children }) => {
|
|
|
1276
1341
|
autoFocus: state.focusStrategy
|
|
1277
1342
|
};
|
|
1278
1343
|
const isSmallScreen = useResponsiveValue([true, false, false], 2);
|
|
1279
|
-
return /* @__PURE__ */
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
}, menu) : /* @__PURE__ */
|
|
1288
|
-
triggerRef: menuTriggerRef,
|
|
1289
|
-
scrollRef: menuRef,
|
|
1290
|
-
state
|
|
1291
|
-
}, 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));
|
|
1292
1353
|
};
|
|
1293
1354
|
|
|
1294
1355
|
// src/Menu/MenuItem.tsx
|
|
1295
|
-
import
|
|
1356
|
+
import React36, { useRef as useRef5 } from "react";
|
|
1296
1357
|
import { useFocusRing as useFocusRing3 } from "@react-aria/focus";
|
|
1297
1358
|
import { useMenuItem } from "@react-aria/menu";
|
|
1298
1359
|
import { mergeProps as mergeProps3 } from "@react-aria/utils";
|
|
@@ -1314,18 +1375,22 @@ var MenuItem = ({ item, state, onAction, css }) => {
|
|
|
1314
1375
|
focus: isFocusVisible
|
|
1315
1376
|
});
|
|
1316
1377
|
const { onPointerUp, ...props } = menuItemProps;
|
|
1317
|
-
return /* @__PURE__ */
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
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
|
|
1324
1391
|
},
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
...stateProps
|
|
1328
|
-
}, item.rendered);
|
|
1392
|
+
item.rendered
|
|
1393
|
+
);
|
|
1329
1394
|
};
|
|
1330
1395
|
|
|
1331
1396
|
// src/Menu/Menu.tsx
|
|
@@ -1342,29 +1407,43 @@ var Menu = ({ variant, size, ...props }) => {
|
|
|
1342
1407
|
{ variant, size },
|
|
1343
1408
|
{ parts: ["container", "item"] }
|
|
1344
1409
|
);
|
|
1345
|
-
return /* @__PURE__ */
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
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
|
|
1352
1422
|
},
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
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
|
+
);
|
|
1362
1434
|
};
|
|
1363
1435
|
Menu.Trigger = MenuTrigger;
|
|
1364
1436
|
Menu.Item = Item;
|
|
1365
1437
|
|
|
1438
|
+
// src/Menu/ActionMenu.tsx
|
|
1439
|
+
import React38 from "react";
|
|
1440
|
+
import { SVG as SVG3 } from "@marigold/system";
|
|
1441
|
+
var ActionMenu = (props) => {
|
|
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 }));
|
|
1443
|
+
};
|
|
1444
|
+
|
|
1366
1445
|
// src/Message/Message.tsx
|
|
1367
|
-
import
|
|
1446
|
+
import React39 from "react";
|
|
1368
1447
|
import { useComponentStyles as useComponentStyles20 } from "@marigold/system";
|
|
1369
1448
|
var Message = ({
|
|
1370
1449
|
messageTitle,
|
|
@@ -1381,43 +1460,26 @@ var Message = ({
|
|
|
1381
1460
|
},
|
|
1382
1461
|
{ parts: ["container", "icon", "title", "content"] }
|
|
1383
1462
|
);
|
|
1384
|
-
var icon = /* @__PURE__ */
|
|
1385
|
-
viewBox: "0 0 24 24"
|
|
1386
|
-
}, /* @__PURE__ */ React37.createElement("path", {
|
|
1387
|
-
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"
|
|
1388
|
-
}));
|
|
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" }));
|
|
1389
1464
|
if (variant === "warning") {
|
|
1390
|
-
icon = /* @__PURE__ */
|
|
1391
|
-
viewBox: "0 0 24 24"
|
|
1392
|
-
}, /* @__PURE__ */ React37.createElement("path", {
|
|
1393
|
-
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"
|
|
1394
|
-
}));
|
|
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" }));
|
|
1395
1466
|
}
|
|
1396
1467
|
if (variant === "error") {
|
|
1397
|
-
icon = /* @__PURE__ */
|
|
1398
|
-
viewBox: "0 0 24 24"
|
|
1399
|
-
}, /* @__PURE__ */ React37.createElement("path", {
|
|
1400
|
-
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"
|
|
1401
|
-
}));
|
|
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" }));
|
|
1402
1469
|
}
|
|
1403
|
-
return /* @__PURE__ */
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
}, icon), /* @__PURE__ */ React37.createElement(Box, {
|
|
1413
|
-
css: styles.title
|
|
1414
|
-
}, messageTitle)), /* @__PURE__ */ React37.createElement(Box, {
|
|
1415
|
-
css: styles.content
|
|
1416
|
-
}, 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));
|
|
1417
1479
|
};
|
|
1418
1480
|
|
|
1419
1481
|
// src/NumberField/NumberField.tsx
|
|
1420
|
-
import
|
|
1482
|
+
import React41, { forwardRef as forwardRef8 } from "react";
|
|
1421
1483
|
import { useFocusRing as useFocusRing4 } from "@react-aria/focus";
|
|
1422
1484
|
import { useHover as useHover4 } from "@react-aria/interactions";
|
|
1423
1485
|
import { useLocale } from "@react-aria/i18n";
|
|
@@ -1431,31 +1493,45 @@ import {
|
|
|
1431
1493
|
} from "@marigold/system";
|
|
1432
1494
|
|
|
1433
1495
|
// src/NumberField/StepButton.tsx
|
|
1434
|
-
import
|
|
1496
|
+
import React40, { useRef as useRef7 } from "react";
|
|
1435
1497
|
import { useButton as useButton3 } from "@react-aria/button";
|
|
1436
1498
|
import { useHover as useHover3 } from "@react-aria/interactions";
|
|
1437
1499
|
import { mergeProps as mergeProps4 } from "@react-aria/utils";
|
|
1438
1500
|
import { Box as Box21, useStateProps as useStateProps5 } from "@marigold/system";
|
|
1439
|
-
var Plus = () => /* @__PURE__ */
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
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
|
+
);
|
|
1459
1535
|
var StepButton = ({ direction, css, ...props }) => {
|
|
1460
1536
|
const ref = useRef7(null);
|
|
1461
1537
|
const { buttonProps, isPressed } = useButton3(
|
|
@@ -1469,17 +1545,21 @@ var StepButton = ({ direction, css, ...props }) => {
|
|
|
1469
1545
|
disabled: props.isDisabled
|
|
1470
1546
|
});
|
|
1471
1547
|
const Icon3 = direction === "up" ? Plus : Minus;
|
|
1472
|
-
return /* @__PURE__ */
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
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
|
|
1478
1560
|
},
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
...stateProps
|
|
1482
|
-
}, /* @__PURE__ */ React38.createElement(Icon3, null));
|
|
1561
|
+
/* @__PURE__ */ React40.createElement(Icon3, null)
|
|
1562
|
+
);
|
|
1483
1563
|
};
|
|
1484
1564
|
|
|
1485
1565
|
// src/NumberField/NumberField.tsx
|
|
@@ -1533,47 +1613,67 @@ var NumberField = forwardRef8(
|
|
|
1533
1613
|
readOnly,
|
|
1534
1614
|
error
|
|
1535
1615
|
});
|
|
1536
|
-
return /* @__PURE__ */
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
__baseCSS: {
|
|
1552
|
-
display: "flex",
|
|
1553
|
-
alignItems: "stretch",
|
|
1554
|
-
"> input": {
|
|
1555
|
-
flex: 1,
|
|
1556
|
-
minWidth: 0
|
|
1557
|
-
}
|
|
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
|
|
1558
1631
|
},
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
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
|
+
);
|
|
1577
1677
|
}
|
|
1578
1678
|
);
|
|
1579
1679
|
|
|
@@ -1582,7 +1682,7 @@ import { useTheme as useTheme2, ThemeProvider as ThemeProvider2 } from "@marigol
|
|
|
1582
1682
|
import { SSRProvider } from "@react-aria/ssr";
|
|
1583
1683
|
|
|
1584
1684
|
// src/Provider/MarigoldProvider.tsx
|
|
1585
|
-
import
|
|
1685
|
+
import React42 from "react";
|
|
1586
1686
|
import { OverlayProvider } from "@react-aria/overlays";
|
|
1587
1687
|
import {
|
|
1588
1688
|
Global,
|
|
@@ -1605,16 +1705,17 @@ function MarigoldProvider({
|
|
|
1605
1705
|
Nested themes with a "root" property must specify a "selector" to prevent accidentally overriding global CSS`
|
|
1606
1706
|
);
|
|
1607
1707
|
}
|
|
1608
|
-
return /* @__PURE__ */
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
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);
|
|
1614
1715
|
}
|
|
1615
1716
|
|
|
1616
1717
|
// src/Radio/Radio.tsx
|
|
1617
|
-
import
|
|
1718
|
+
import React44, {
|
|
1618
1719
|
forwardRef as forwardRef9
|
|
1619
1720
|
} from "react";
|
|
1620
1721
|
import { useHover as useHover5 } from "@react-aria/interactions";
|
|
@@ -1635,7 +1736,7 @@ var RadioGroupContext = createContext6(
|
|
|
1635
1736
|
var useRadioGroupContext = () => useContext6(RadioGroupContext);
|
|
1636
1737
|
|
|
1637
1738
|
// src/Radio/RadioGroup.tsx
|
|
1638
|
-
import
|
|
1739
|
+
import React43 from "react";
|
|
1639
1740
|
import { useRadioGroup } from "@react-aria/radio";
|
|
1640
1741
|
import { useRadioGroupState } from "@react-stately/radio";
|
|
1641
1742
|
import { Box as Box23, useStateProps as useStateProps7 } from "@marigold/system";
|
|
@@ -1663,58 +1764,61 @@ var RadioGroup = ({
|
|
|
1663
1764
|
readOnly,
|
|
1664
1765
|
error
|
|
1665
1766
|
});
|
|
1666
|
-
return /* @__PURE__ */
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
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
|
+
);
|
|
1691
1798
|
};
|
|
1692
1799
|
|
|
1693
1800
|
// src/Radio/Radio.tsx
|
|
1694
|
-
var Dot = () => /* @__PURE__ */
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
justifyContent: "center",
|
|
1713
|
-
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
|
|
1714
1819
|
},
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
}, checked ? /* @__PURE__ */ React42.createElement(Dot, null) : null);
|
|
1820
|
+
checked ? /* @__PURE__ */ React44.createElement(Dot, null) : null
|
|
1821
|
+
);
|
|
1718
1822
|
var Radio = forwardRef9(
|
|
1719
1823
|
({ width, disabled, ...props }, ref) => {
|
|
1720
1824
|
const {
|
|
@@ -1745,45 +1849,47 @@ var Radio = forwardRef9(
|
|
|
1745
1849
|
readOnly: props.readOnly,
|
|
1746
1850
|
error
|
|
1747
1851
|
});
|
|
1748
|
-
return /* @__PURE__ */
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
ref: inputRef,
|
|
1762
|
-
css: {
|
|
1763
|
-
position: "absolute",
|
|
1764
|
-
width: "100%",
|
|
1765
|
-
height: "100%",
|
|
1766
|
-
top: 0,
|
|
1767
|
-
left: 0,
|
|
1768
|
-
zIndex: 1,
|
|
1769
|
-
opacity: 1e-4,
|
|
1770
|
-
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)
|
|
1771
1865
|
},
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
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
|
+
);
|
|
1781
1887
|
}
|
|
1782
1888
|
);
|
|
1783
1889
|
Radio.Group = RadioGroup;
|
|
1784
1890
|
|
|
1785
1891
|
// src/Select/Select.tsx
|
|
1786
|
-
import
|
|
1892
|
+
import React48, {
|
|
1787
1893
|
forwardRef as forwardRef11,
|
|
1788
1894
|
useRef as useRef9
|
|
1789
1895
|
} from "react";
|
|
@@ -1802,7 +1908,7 @@ import {
|
|
|
1802
1908
|
} from "@marigold/system";
|
|
1803
1909
|
|
|
1804
1910
|
// src/ListBox/ListBox.tsx
|
|
1805
|
-
import
|
|
1911
|
+
import React47, { forwardRef as forwardRef10 } from "react";
|
|
1806
1912
|
import { useObjectRef as useObjectRef10 } from "@react-aria/utils";
|
|
1807
1913
|
import {
|
|
1808
1914
|
Box as Box27,
|
|
@@ -1816,12 +1922,12 @@ var ListBoxContext = createContext7({});
|
|
|
1816
1922
|
var useListBoxContext = () => useContext7(ListBoxContext);
|
|
1817
1923
|
|
|
1818
1924
|
// src/ListBox/ListBoxSection.tsx
|
|
1819
|
-
import
|
|
1925
|
+
import React46 from "react";
|
|
1820
1926
|
import { useListBoxSection } from "@react-aria/listbox";
|
|
1821
1927
|
import { Box as Box26 } from "@marigold/system";
|
|
1822
1928
|
|
|
1823
1929
|
// src/ListBox/ListBoxOption.tsx
|
|
1824
|
-
import
|
|
1930
|
+
import React45, { useRef as useRef8 } from "react";
|
|
1825
1931
|
import { useOption } from "@react-aria/listbox";
|
|
1826
1932
|
import { mergeProps as mergeProps7 } from "@react-aria/utils";
|
|
1827
1933
|
import { Box as Box25, useStateProps as useStateProps9 } from "@marigold/system";
|
|
@@ -1841,12 +1947,16 @@ var ListBoxOption = ({ item, state }) => {
|
|
|
1841
1947
|
disabled: isDisabled,
|
|
1842
1948
|
focusVisible: isFocused
|
|
1843
1949
|
});
|
|
1844
|
-
return /* @__PURE__ */
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
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
|
+
);
|
|
1850
1960
|
};
|
|
1851
1961
|
|
|
1852
1962
|
// src/ListBox/ListBoxSection.tsx
|
|
@@ -1856,23 +1966,16 @@ var ListBoxSection = ({ section, state }) => {
|
|
|
1856
1966
|
"aria-label": section["aria-label"]
|
|
1857
1967
|
});
|
|
1858
1968
|
const { styles } = useListBoxContext();
|
|
1859
|
-
return /* @__PURE__ */
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
css: styles.list,
|
|
1870
|
-
...groupProps
|
|
1871
|
-
}, [...section.childNodes].map((node) => /* @__PURE__ */ React44.createElement(ListBoxOption, {
|
|
1872
|
-
key: node.key,
|
|
1873
|
-
item: node,
|
|
1874
|
-
state
|
|
1875
|
-
}))));
|
|
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
|
+
));
|
|
1876
1979
|
};
|
|
1877
1980
|
|
|
1878
1981
|
// src/ListBox/ListBox.tsx
|
|
@@ -1885,27 +1988,19 @@ var ListBox = forwardRef10(
|
|
|
1885
1988
|
{ variant, size },
|
|
1886
1989
|
{ parts: ["container", "list", "option", "section", "sectionTitle"] }
|
|
1887
1990
|
);
|
|
1888
|
-
return /* @__PURE__ */
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
...
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
section: item,
|
|
1902
|
-
state
|
|
1903
|
-
}) : /* @__PURE__ */ React45.createElement(ListBoxOption, {
|
|
1904
|
-
key: item.key,
|
|
1905
|
-
item,
|
|
1906
|
-
state
|
|
1907
|
-
})
|
|
1908
|
-
))));
|
|
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
|
+
)));
|
|
1909
2004
|
}
|
|
1910
2005
|
);
|
|
1911
2006
|
|
|
@@ -1920,20 +2015,30 @@ var messages = {
|
|
|
1920
2015
|
};
|
|
1921
2016
|
|
|
1922
2017
|
// src/Select/Select.tsx
|
|
1923
|
-
var Chevron = ({ css }) => /* @__PURE__ */
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
d: "M19 9l-7 7-7-7"
|
|
1934
|
-
|
|
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
|
+
);
|
|
1935
2030
|
var Select = forwardRef11(
|
|
1936
|
-
({
|
|
2031
|
+
({
|
|
2032
|
+
variant,
|
|
2033
|
+
size,
|
|
2034
|
+
width,
|
|
2035
|
+
open,
|
|
2036
|
+
disabled,
|
|
2037
|
+
required,
|
|
2038
|
+
error,
|
|
2039
|
+
onChange,
|
|
2040
|
+
...rest
|
|
2041
|
+
}, ref) => {
|
|
1937
2042
|
const formatMessage = useLocalizedStringFormatter(messages);
|
|
1938
2043
|
const props = {
|
|
1939
2044
|
isOpen: open,
|
|
@@ -1941,6 +2046,7 @@ var Select = forwardRef11(
|
|
|
1941
2046
|
isRequired: required,
|
|
1942
2047
|
validationState: error ? "invalid" : "valid",
|
|
1943
2048
|
placeholder: rest.placeholder || formatMessage.format("placeholder"),
|
|
2049
|
+
onSelectionChange: onChange,
|
|
1944
2050
|
...rest
|
|
1945
2051
|
};
|
|
1946
2052
|
const state = useSelectState(props);
|
|
@@ -1971,73 +2077,89 @@ var Select = forwardRef11(
|
|
|
1971
2077
|
focusVisible: isFocusVisible,
|
|
1972
2078
|
expanded: state.isOpen
|
|
1973
2079
|
});
|
|
1974
|
-
return /* @__PURE__ */
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
triggerRef: buttonRef,
|
|
1991
|
-
label: props.label,
|
|
1992
|
-
name: props.name,
|
|
1993
|
-
isDisabled: disabled
|
|
1994
|
-
}), /* @__PURE__ */ React46.createElement(Box28, {
|
|
1995
|
-
as: "button",
|
|
1996
|
-
__baseCSS: {
|
|
1997
|
-
display: "flex",
|
|
1998
|
-
position: "relative",
|
|
1999
|
-
alignItems: "center",
|
|
2000
|
-
justifyContent: "space-between",
|
|
2001
|
-
width: "100%"
|
|
2002
|
-
},
|
|
2003
|
-
css: styles.button,
|
|
2004
|
-
ref: buttonRef,
|
|
2005
|
-
...mergeProps8(buttonProps, focusProps),
|
|
2006
|
-
...stateProps
|
|
2007
|
-
}, /* @__PURE__ */ React46.createElement(Box28, {
|
|
2008
|
-
css: {
|
|
2009
|
-
overflow: "hidden",
|
|
2010
|
-
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
|
|
2011
2096
|
},
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
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
|
+
);
|
|
2034
2156
|
}
|
|
2035
2157
|
);
|
|
2036
2158
|
Select.Option = Item2;
|
|
2037
2159
|
Select.Section = Section;
|
|
2038
2160
|
|
|
2039
2161
|
// src/Slider/Slider.tsx
|
|
2040
|
-
import
|
|
2162
|
+
import React50, { forwardRef as forwardRef12 } from "react";
|
|
2041
2163
|
import { useSlider } from "@react-aria/slider";
|
|
2042
2164
|
import { useSliderState } from "@react-stately/slider";
|
|
2043
2165
|
import { useNumberFormatter } from "@react-aria/i18n";
|
|
@@ -2045,7 +2167,7 @@ import { useObjectRef as useObjectRef12 } from "@react-aria/utils";
|
|
|
2045
2167
|
import { useComponentStyles as useComponentStyles25 } from "@marigold/system";
|
|
2046
2168
|
|
|
2047
2169
|
// src/Slider/Thumb.tsx
|
|
2048
|
-
import
|
|
2170
|
+
import React49, { useEffect } from "react";
|
|
2049
2171
|
import { useSliderThumb } from "@react-aria/slider";
|
|
2050
2172
|
import { mergeProps as mergeProps9 } from "@react-aria/utils";
|
|
2051
2173
|
import { useStateProps as useStateProps11 } from "@marigold/system";
|
|
@@ -2057,7 +2179,7 @@ import { VisuallyHidden } from "@react-aria/visually-hidden";
|
|
|
2057
2179
|
import { useFocusRing as useFocusRing7 } from "@react-aria/focus";
|
|
2058
2180
|
var Thumb = ({ state, trackRef, styles, ...props }) => {
|
|
2059
2181
|
const { disabled } = props;
|
|
2060
|
-
const inputRef =
|
|
2182
|
+
const inputRef = React49.useRef(null);
|
|
2061
2183
|
const { isFocusVisible, focusProps, isFocused } = useFocusRing7();
|
|
2062
2184
|
const focused = isFocused || isFocusVisible || state.isThumbDragging(0);
|
|
2063
2185
|
const stateProps = useStateProps11({
|
|
@@ -2076,17 +2198,24 @@ var Thumb = ({ state, trackRef, styles, ...props }) => {
|
|
|
2076
2198
|
useEffect(() => {
|
|
2077
2199
|
state.setThumbEditable(0, !disabled);
|
|
2078
2200
|
}, [disabled, state]);
|
|
2079
|
-
return /* @__PURE__ */
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
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
|
+
);
|
|
2090
2219
|
};
|
|
2091
2220
|
|
|
2092
2221
|
// src/Slider/Slider.tsx
|
|
@@ -2109,59 +2238,69 @@ var Slider = forwardRef12(
|
|
|
2109
2238
|
{ variant, size },
|
|
2110
2239
|
{ parts: ["track", "thumb", "label", "output"] }
|
|
2111
2240
|
);
|
|
2112
|
-
return /* @__PURE__ */
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
}, props.children && /* @__PURE__ */ React48.createElement(Box, {
|
|
2123
|
-
as: "label",
|
|
2124
|
-
__baseCSS: styles.label,
|
|
2125
|
-
...labelProps
|
|
2126
|
-
}, props.children), /* @__PURE__ */ React48.createElement(Box, {
|
|
2127
|
-
as: "output",
|
|
2128
|
-
...outputProps,
|
|
2129
|
-
__baseCSS: { flex: "1 0 auto", textAlign: "end" },
|
|
2130
|
-
css: styles.output
|
|
2131
|
-
}, state.getThumbValueLabel(0))), /* @__PURE__ */ React48.createElement(Box, {
|
|
2132
|
-
...trackProps,
|
|
2133
|
-
ref: trackRef,
|
|
2134
|
-
__baseCSS: {
|
|
2135
|
-
height: 32,
|
|
2136
|
-
width: "100%",
|
|
2137
|
-
cursor: props.disabled ? "not-allowed" : "pointer"
|
|
2138
|
-
}
|
|
2139
|
-
}, /* @__PURE__ */ React48.createElement(Box, {
|
|
2140
|
-
__baseCSS: {
|
|
2141
|
-
top: "50%",
|
|
2142
|
-
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
|
|
2143
2251
|
},
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
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
|
+
);
|
|
2151
2294
|
}
|
|
2152
2295
|
);
|
|
2153
2296
|
|
|
2154
2297
|
// src/Split/Split.tsx
|
|
2155
|
-
import
|
|
2298
|
+
import React51 from "react";
|
|
2156
2299
|
import { Box as Box29 } from "@marigold/system";
|
|
2157
|
-
var Split = (props) => /* @__PURE__ */
|
|
2158
|
-
...props,
|
|
2159
|
-
role: "separator",
|
|
2160
|
-
css: { flexGrow: 1 }
|
|
2161
|
-
});
|
|
2300
|
+
var Split = (props) => /* @__PURE__ */ React51.createElement(Box29, { ...props, role: "separator", css: { flexGrow: 1 } });
|
|
2162
2301
|
|
|
2163
2302
|
// src/Stack/Stack.tsx
|
|
2164
|
-
import
|
|
2303
|
+
import React52 from "react";
|
|
2165
2304
|
var ALIGNMENT_X2 = {
|
|
2166
2305
|
none: "initial",
|
|
2167
2306
|
left: "flex-start",
|
|
@@ -2181,21 +2320,25 @@ var Stack = ({
|
|
|
2181
2320
|
alignY = "none",
|
|
2182
2321
|
stretch = false,
|
|
2183
2322
|
...props
|
|
2184
|
-
}) => /* @__PURE__ */
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
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
|
|
2193
2336
|
},
|
|
2194
|
-
|
|
2195
|
-
|
|
2337
|
+
children
|
|
2338
|
+
);
|
|
2196
2339
|
|
|
2197
2340
|
// src/Switch/Switch.tsx
|
|
2198
|
-
import
|
|
2341
|
+
import React53, { forwardRef as forwardRef13 } from "react";
|
|
2199
2342
|
import { useFocusRing as useFocusRing8 } from "@react-aria/focus";
|
|
2200
2343
|
import { useSwitch } from "@react-aria/switch";
|
|
2201
2344
|
import { useObjectRef as useObjectRef13 } from "@react-aria/utils";
|
|
@@ -2237,70 +2380,84 @@ var Switch = forwardRef13(
|
|
|
2237
2380
|
{ variant, size },
|
|
2238
2381
|
{ parts: ["container", "label", "track", "thumb"] }
|
|
2239
2382
|
);
|
|
2240
|
-
return /* @__PURE__ */
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
ref: inputRef,
|
|
2254
|
-
css: {
|
|
2255
|
-
position: "absolute",
|
|
2256
|
-
width: "100%",
|
|
2257
|
-
height: "100%",
|
|
2258
|
-
top: 0,
|
|
2259
|
-
left: 0,
|
|
2260
|
-
zIndex: 1,
|
|
2261
|
-
opacity: 1e-4,
|
|
2262
|
-
cursor: inputProps.disabled ? "not-allowed" : "pointer"
|
|
2263
|
-
},
|
|
2264
|
-
...inputProps,
|
|
2265
|
-
...focusProps
|
|
2266
|
-
}), props.children && /* @__PURE__ */ React51.createElement(Box, {
|
|
2267
|
-
css: styles.label
|
|
2268
|
-
}, props.children), /* @__PURE__ */ React51.createElement(Box, {
|
|
2269
|
-
__baseCSS: {
|
|
2270
|
-
position: "relative",
|
|
2271
|
-
width: 48,
|
|
2272
|
-
height: 24,
|
|
2273
|
-
bg: "#dee2e6",
|
|
2274
|
-
borderRadius: 20,
|
|
2275
|
-
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
|
|
2276
2396
|
},
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
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
|
|
2294
2414
|
}
|
|
2295
|
-
|
|
2296
|
-
css: styles.
|
|
2297
|
-
|
|
2298
|
-
|
|
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
|
+
);
|
|
2299
2456
|
}
|
|
2300
2457
|
);
|
|
2301
2458
|
|
|
2302
2459
|
// src/Table/Table.tsx
|
|
2303
|
-
import
|
|
2460
|
+
import React62, { useRef as useRef16 } from "react";
|
|
2304
2461
|
import { useTable } from "@react-aria/table";
|
|
2305
2462
|
import {
|
|
2306
2463
|
Cell,
|
|
@@ -2321,17 +2478,15 @@ var TableContext = createContext8({});
|
|
|
2321
2478
|
var useTableContext = () => useContext8(TableContext);
|
|
2322
2479
|
|
|
2323
2480
|
// src/Table/TableBody.tsx
|
|
2324
|
-
import
|
|
2481
|
+
import React54 from "react";
|
|
2325
2482
|
import { useTableRowGroup } from "@react-aria/table";
|
|
2326
2483
|
var TableBody = ({ children }) => {
|
|
2327
2484
|
const { rowGroupProps } = useTableRowGroup();
|
|
2328
|
-
return /* @__PURE__ */
|
|
2329
|
-
...rowGroupProps
|
|
2330
|
-
}, children);
|
|
2485
|
+
return /* @__PURE__ */ React54.createElement("tbody", { ...rowGroupProps }, children);
|
|
2331
2486
|
};
|
|
2332
2487
|
|
|
2333
2488
|
// src/Table/TableCell.tsx
|
|
2334
|
-
import
|
|
2489
|
+
import React55, { useRef as useRef10 } from "react";
|
|
2335
2490
|
import { useTableCell } from "@react-aria/table";
|
|
2336
2491
|
import { useFocusRing as useFocusRing9 } from "@react-aria/focus";
|
|
2337
2492
|
import { mergeProps as mergeProps10 } from "@react-aria/utils";
|
|
@@ -2348,23 +2503,31 @@ var TableCell = ({ cell }) => {
|
|
|
2348
2503
|
ref
|
|
2349
2504
|
);
|
|
2350
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
|
+
*/
|
|
2351
2510
|
...gridCellProps,
|
|
2352
2511
|
onMouseDown: (e) => e.stopPropagation(),
|
|
2353
2512
|
onPointerDown: (e) => e.stopPropagation()
|
|
2354
2513
|
};
|
|
2355
2514
|
const { focusProps, isFocusVisible } = useFocusRing9();
|
|
2356
2515
|
const stateProps = useStateProps13({ disabled, focusVisible: isFocusVisible });
|
|
2357
|
-
return /* @__PURE__ */
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
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
|
+
);
|
|
2364
2527
|
};
|
|
2365
2528
|
|
|
2366
2529
|
// src/Table/TableCheckboxCell.tsx
|
|
2367
|
-
import
|
|
2530
|
+
import React56, { useRef as useRef11 } from "react";
|
|
2368
2531
|
import { useTableCell as useTableCell2, useTableSelectionCheckbox } from "@react-aria/table";
|
|
2369
2532
|
import { useFocusRing as useFocusRing10 } from "@react-aria/focus";
|
|
2370
2533
|
import { mergeProps as mergeProps11 } from "@react-aria/utils";
|
|
@@ -2407,24 +2570,26 @@ var TableCheckboxCell = ({ cell }) => {
|
|
|
2407
2570
|
);
|
|
2408
2571
|
const { focusProps, isFocusVisible } = useFocusRing10();
|
|
2409
2572
|
const stateProps = useStateProps14({ disabled, focusVisible: isFocusVisible });
|
|
2410
|
-
return /* @__PURE__ */
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
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
|
|
2417
2586
|
},
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
...stateProps
|
|
2421
|
-
}, /* @__PURE__ */ React54.createElement(Checkbox, {
|
|
2422
|
-
...checkboxProps
|
|
2423
|
-
}));
|
|
2587
|
+
/* @__PURE__ */ React56.createElement(Checkbox, { ...checkboxProps })
|
|
2588
|
+
);
|
|
2424
2589
|
};
|
|
2425
2590
|
|
|
2426
2591
|
// src/Table/TableColumnHeader.tsx
|
|
2427
|
-
import
|
|
2592
|
+
import React57, { useRef as useRef12 } from "react";
|
|
2428
2593
|
import { useFocusRing as useFocusRing11 } from "@react-aria/focus";
|
|
2429
2594
|
import { useHover as useHover6 } from "@react-aria/interactions";
|
|
2430
2595
|
import { useTableColumnHeader } from "@react-aria/table";
|
|
@@ -2433,16 +2598,20 @@ import { Box as Box32, useStateProps as useStateProps15 } from "@marigold/system
|
|
|
2433
2598
|
var SortIndicator = ({
|
|
2434
2599
|
direction = "ascending",
|
|
2435
2600
|
visible
|
|
2436
|
-
}) => /* @__PURE__ */
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
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
|
+
);
|
|
2446
2615
|
var TableColumnHeader = ({ column }) => {
|
|
2447
2616
|
var _a, _b;
|
|
2448
2617
|
const ref = useRef12(null);
|
|
@@ -2460,45 +2629,48 @@ var TableColumnHeader = ({ column }) => {
|
|
|
2460
2629
|
hover: isHovered,
|
|
2461
2630
|
focusVisible: isFocusVisible
|
|
2462
2631
|
});
|
|
2463
|
-
return /* @__PURE__ */
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
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
|
+
);
|
|
2475
2652
|
};
|
|
2476
2653
|
|
|
2477
2654
|
// src/Table/TableHeader.tsx
|
|
2478
|
-
import
|
|
2655
|
+
import React58 from "react";
|
|
2479
2656
|
import { useTableRowGroup as useTableRowGroup2 } from "@react-aria/table";
|
|
2480
2657
|
var TableHeader = ({ children }) => {
|
|
2481
2658
|
const { rowGroupProps } = useTableRowGroup2();
|
|
2482
|
-
return /* @__PURE__ */
|
|
2483
|
-
...rowGroupProps
|
|
2484
|
-
}, children);
|
|
2659
|
+
return /* @__PURE__ */ React58.createElement("thead", { ...rowGroupProps }, children);
|
|
2485
2660
|
};
|
|
2486
2661
|
|
|
2487
2662
|
// src/Table/TableHeaderRow.tsx
|
|
2488
|
-
import
|
|
2663
|
+
import React59, { useRef as useRef13 } from "react";
|
|
2489
2664
|
import { useTableHeaderRow } from "@react-aria/table";
|
|
2490
2665
|
var TableHeaderRow = ({ item, children }) => {
|
|
2491
2666
|
const { state } = useTableContext();
|
|
2492
2667
|
const ref = useRef13(null);
|
|
2493
2668
|
const { rowProps } = useTableHeaderRow({ node: item }, state, ref);
|
|
2494
|
-
return /* @__PURE__ */
|
|
2495
|
-
...rowProps,
|
|
2496
|
-
ref
|
|
2497
|
-
}, children);
|
|
2669
|
+
return /* @__PURE__ */ React59.createElement("tr", { ...rowProps, ref }, children);
|
|
2498
2670
|
};
|
|
2499
2671
|
|
|
2500
2672
|
// src/Table/TableRow.tsx
|
|
2501
|
-
import
|
|
2673
|
+
import React60, { useRef as useRef14 } from "react";
|
|
2502
2674
|
import { useFocusRing as useFocusRing12 } from "@react-aria/focus";
|
|
2503
2675
|
import { useHover as useHover7 } from "@react-aria/interactions";
|
|
2504
2676
|
import { useTableRow } from "@react-aria/table";
|
|
@@ -2533,20 +2705,24 @@ var TableRow = ({ children, row }) => {
|
|
|
2533
2705
|
focusVisible: isFocusVisible,
|
|
2534
2706
|
active: isPressed
|
|
2535
2707
|
});
|
|
2536
|
-
return /* @__PURE__ */
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
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
|
|
2541
2719
|
},
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
...stateProps
|
|
2545
|
-
}, children);
|
|
2720
|
+
children
|
|
2721
|
+
);
|
|
2546
2722
|
};
|
|
2547
2723
|
|
|
2548
2724
|
// src/Table/TableSelectAllCell.tsx
|
|
2549
|
-
import
|
|
2725
|
+
import React61, { useRef as useRef15 } from "react";
|
|
2550
2726
|
import { useFocusRing as useFocusRing13 } from "@react-aria/focus";
|
|
2551
2727
|
import { useHover as useHover8 } from "@react-aria/interactions";
|
|
2552
2728
|
import {
|
|
@@ -2572,20 +2748,22 @@ var TableSelectAllCell = ({ column }) => {
|
|
|
2572
2748
|
hover: isHovered,
|
|
2573
2749
|
focusVisible: isFocusVisible
|
|
2574
2750
|
});
|
|
2575
|
-
return /* @__PURE__ */
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
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
|
|
2582
2764
|
},
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
...stateProps
|
|
2586
|
-
}, /* @__PURE__ */ React59.createElement(Checkbox, {
|
|
2587
|
-
...checkboxProps
|
|
2588
|
-
}));
|
|
2765
|
+
/* @__PURE__ */ React61.createElement(Checkbox, { ...checkboxProps })
|
|
2766
|
+
);
|
|
2589
2767
|
};
|
|
2590
2768
|
|
|
2591
2769
|
// src/Table/Table.tsx
|
|
@@ -2601,7 +2779,8 @@ var Table = ({
|
|
|
2601
2779
|
const state = useTableState({
|
|
2602
2780
|
...props,
|
|
2603
2781
|
selectionMode,
|
|
2604
|
-
showSelectionCheckboxes: selectionMode === "multiple" &&
|
|
2782
|
+
showSelectionCheckboxes: selectionMode === "multiple" && // TODO: It this necessary?
|
|
2783
|
+
props.selectionBehavior !== "replace"
|
|
2605
2784
|
});
|
|
2606
2785
|
const { gridProps } = useTable(props, state, tableRef);
|
|
2607
2786
|
const styles = useComponentStyles28(
|
|
@@ -2610,49 +2789,34 @@ var Table = ({
|
|
|
2610
2789
|
{ parts: ["table", "header", "row", "cell"] }
|
|
2611
2790
|
);
|
|
2612
2791
|
const { collection } = state;
|
|
2613
|
-
return /* @__PURE__ */
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
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
|
|
2624
2806
|
},
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
(
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
key:
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
column
|
|
2639
|
-
});
|
|
2640
|
-
}
|
|
2641
|
-
)))), /* @__PURE__ */ React60.createElement(TableBody, null, [...collection.body.childNodes].map((row) => /* @__PURE__ */ React60.createElement(TableRow, {
|
|
2642
|
-
key: row.key,
|
|
2643
|
-
row
|
|
2644
|
-
}, [...row.childNodes].map(
|
|
2645
|
-
(cell) => {
|
|
2646
|
-
var _a;
|
|
2647
|
-
return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ React60.createElement(TableCheckboxCell, {
|
|
2648
|
-
key: cell.key,
|
|
2649
|
-
cell
|
|
2650
|
-
}) : /* @__PURE__ */ React60.createElement(TableCell, {
|
|
2651
|
-
key: cell.key,
|
|
2652
|
-
cell
|
|
2653
|
-
});
|
|
2654
|
-
}
|
|
2655
|
-
))))));
|
|
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
|
+
));
|
|
2656
2820
|
};
|
|
2657
2821
|
Table.Body = Body2;
|
|
2658
2822
|
Table.Cell = Cell;
|
|
@@ -2661,7 +2825,7 @@ Table.Header = Header2;
|
|
|
2661
2825
|
Table.Row = Row;
|
|
2662
2826
|
|
|
2663
2827
|
// src/Text/Text.tsx
|
|
2664
|
-
import
|
|
2828
|
+
import React63 from "react";
|
|
2665
2829
|
import {
|
|
2666
2830
|
useComponentStyles as useComponentStyles29
|
|
2667
2831
|
} from "@marigold/system";
|
|
@@ -2669,6 +2833,7 @@ import { Box as Box36 } from "@marigold/system";
|
|
|
2669
2833
|
var Text = ({
|
|
2670
2834
|
variant,
|
|
2671
2835
|
size,
|
|
2836
|
+
display,
|
|
2672
2837
|
align,
|
|
2673
2838
|
color,
|
|
2674
2839
|
fontSize,
|
|
@@ -2682,18 +2847,30 @@ var Text = ({
|
|
|
2682
2847
|
variant,
|
|
2683
2848
|
size
|
|
2684
2849
|
});
|
|
2685
|
-
return /* @__PURE__ */
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
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
|
+
);
|
|
2693
2870
|
};
|
|
2694
2871
|
|
|
2695
2872
|
// src/TextArea/TextArea.tsx
|
|
2696
|
-
import
|
|
2873
|
+
import React64, { forwardRef as forwardRef14 } from "react";
|
|
2697
2874
|
import { useHover as useHover9 } from "@react-aria/interactions";
|
|
2698
2875
|
import { useFocusRing as useFocusRing14 } from "@react-aria/focus";
|
|
2699
2876
|
import { useTextField } from "@react-aria/textfield";
|
|
@@ -2738,34 +2915,41 @@ var TextArea = forwardRef14(
|
|
|
2738
2915
|
error
|
|
2739
2916
|
});
|
|
2740
2917
|
const styles = useComponentStyles30("TextArea", { variant, size });
|
|
2741
|
-
return /* @__PURE__ */
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
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
|
+
);
|
|
2764
2948
|
}
|
|
2765
2949
|
);
|
|
2766
2950
|
|
|
2767
2951
|
// src/TextField/TextField.tsx
|
|
2768
|
-
import
|
|
2952
|
+
import React65, { forwardRef as forwardRef15 } from "react";
|
|
2769
2953
|
import { useHover as useHover10 } from "@react-aria/interactions";
|
|
2770
2954
|
import { useFocusRing as useFocusRing15 } from "@react-aria/focus";
|
|
2771
2955
|
import { useTextField as useTextField2 } from "@react-aria/textfield";
|
|
@@ -2797,33 +2981,40 @@ var TextField = forwardRef15(
|
|
|
2797
2981
|
readOnly,
|
|
2798
2982
|
error
|
|
2799
2983
|
});
|
|
2800
|
-
return /* @__PURE__ */
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
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
|
+
);
|
|
2822
3013
|
}
|
|
2823
3014
|
);
|
|
2824
3015
|
|
|
2825
3016
|
// src/Tiles/Tiles.tsx
|
|
2826
|
-
import
|
|
3017
|
+
import React66 from "react";
|
|
2827
3018
|
import { useTheme as useTheme3 } from "@marigold/system";
|
|
2828
3019
|
var Tiles = ({
|
|
2829
3020
|
space = "none",
|
|
@@ -2839,19 +3030,27 @@ var Tiles = ({
|
|
|
2839
3030
|
if (stretch) {
|
|
2840
3031
|
column = `minmax(${column}, 1fr)`;
|
|
2841
3032
|
}
|
|
2842
|
-
return /* @__PURE__ */
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
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
|
+
);
|
|
2851
3050
|
};
|
|
2852
3051
|
|
|
2853
3052
|
// src/Tooltip/Tooltip.tsx
|
|
2854
|
-
import
|
|
3053
|
+
import React68 from "react";
|
|
2855
3054
|
import { useTooltip } from "@react-aria/tooltip";
|
|
2856
3055
|
import {
|
|
2857
3056
|
Box as Box38,
|
|
@@ -2864,7 +3063,7 @@ var TooltipContext = createContext9({});
|
|
|
2864
3063
|
var useTooltipContext = () => useContext9(TooltipContext);
|
|
2865
3064
|
|
|
2866
3065
|
// src/Tooltip/TooltipTrigger.tsx
|
|
2867
|
-
import
|
|
3066
|
+
import React67, { useRef as useRef17 } from "react";
|
|
2868
3067
|
import { FocusableProvider } from "@react-aria/focus";
|
|
2869
3068
|
import { useOverlayPosition } from "@react-aria/overlays";
|
|
2870
3069
|
import { useTooltipTrigger } from "@react-aria/tooltip";
|
|
@@ -2877,7 +3076,7 @@ var TooltipTrigger = ({
|
|
|
2877
3076
|
children,
|
|
2878
3077
|
...rest
|
|
2879
3078
|
}) => {
|
|
2880
|
-
const [tooltipTrigger, tooltip] =
|
|
3079
|
+
const [tooltipTrigger, tooltip] = React67.Children.toArray(children);
|
|
2881
3080
|
const props = {
|
|
2882
3081
|
...rest,
|
|
2883
3082
|
isDisabled: disabled,
|
|
@@ -2905,21 +3104,20 @@ var TooltipTrigger = ({
|
|
|
2905
3104
|
isOpen: state.isOpen,
|
|
2906
3105
|
overlayRef
|
|
2907
3106
|
});
|
|
2908
|
-
return /* @__PURE__ */
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
}
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
}, 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
|
+
));
|
|
2923
3121
|
};
|
|
2924
3122
|
|
|
2925
3123
|
// src/Tooltip/Tooltip.tsx
|
|
@@ -2931,153 +3129,251 @@ var Tooltip = ({ children, variant, size }) => {
|
|
|
2931
3129
|
{ variant, size },
|
|
2932
3130
|
{ parts: ["container", "arrow"] }
|
|
2933
3131
|
);
|
|
2934
|
-
return /* @__PURE__ */
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
__baseCSS: {
|
|
2943
|
-
position: "absolute",
|
|
2944
|
-
height: 0,
|
|
2945
|
-
width: 0,
|
|
2946
|
-
borderStyle: "solid",
|
|
2947
|
-
borderLeftColor: "transparent",
|
|
2948
|
-
borderRightColor: "transparent",
|
|
2949
|
-
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
|
|
2950
3140
|
},
|
|
2951
|
-
|
|
2952
|
-
|
|
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
|
+
);
|
|
2953
3159
|
};
|
|
2954
3160
|
Tooltip.Trigger = TooltipTrigger;
|
|
2955
3161
|
|
|
2956
3162
|
// src/XLoader/XLoader.tsx
|
|
2957
|
-
import { SVG as
|
|
2958
|
-
import
|
|
2959
|
-
var XLoader = forwardRef16((props, ref) => /* @__PURE__ */
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
}
|
|
3030
|
-
|
|
3031
|
-
|
|
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
|
-
|
|
3163
|
+
import { SVG as SVG4 } from "@marigold/system";
|
|
3164
|
+
import React69, { forwardRef as forwardRef16 } from "react";
|
|
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
|
+
));
|
|
3080
3375
|
export {
|
|
3376
|
+
ActionMenu,
|
|
3081
3377
|
Aside,
|
|
3082
3378
|
Aspect,
|
|
3083
3379
|
Badge,
|