@marigold/components 7.0.0 → 7.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.mts +73 -110
- package/dist/index.d.ts +73 -110
- package/dist/index.js +651 -977
- package/dist/index.mjs +560 -896
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -37,9 +37,7 @@ var ChevronDown = forwardRef2(
|
|
|
37
37
|
// src/Accordion/useAccordionItem.ts
|
|
38
38
|
import { useButton } from "@react-aria/button";
|
|
39
39
|
import { useSelectableItem } from "@react-aria/selection";
|
|
40
|
-
import { mergeProps, useId } from "@react-aria/utils";
|
|
41
|
-
import { isAppleDevice } from "@react-aria/utils";
|
|
42
|
-
import { isMac } from "@react-aria/utils";
|
|
40
|
+
import { isAppleDevice, isMac, mergeProps, useId } from "@react-aria/utils";
|
|
43
41
|
function isNonContiguousSelectionModifier(e) {
|
|
44
42
|
return isAppleDevice() ? e.altKey : e.ctrlKey;
|
|
45
43
|
}
|
|
@@ -61,9 +59,7 @@ function useAccordionItem(props, state, ref) {
|
|
|
61
59
|
key,
|
|
62
60
|
ref
|
|
63
61
|
});
|
|
64
|
-
const isDefaultExpanded = state.expandedKeys.has(
|
|
65
|
-
item.key.toString().replace(".$", "")
|
|
66
|
-
);
|
|
62
|
+
const isDefaultExpanded = state.expandedKeys.has(item.key);
|
|
67
63
|
let onSelect = (e) => {
|
|
68
64
|
if (e.pointerType === "keyboard" && isNonContiguousSelectionModifier(e)) {
|
|
69
65
|
if (isDefaultExpanded) {
|
|
@@ -141,16 +137,17 @@ var AccordionItem = ({
|
|
|
141
137
|
...props
|
|
142
138
|
}) => {
|
|
143
139
|
const ref = useRef(null);
|
|
144
|
-
const defaultExpanded = state.expandedKeys.
|
|
145
|
-
item.key.toString().replace(".$", "")
|
|
146
|
-
);
|
|
140
|
+
const defaultExpanded = Array.from(state.expandedKeys).some((key) => {
|
|
141
|
+
return key.toString() === item.key.toString().replace(".$", "");
|
|
142
|
+
});
|
|
147
143
|
const expanded = state.selectionManager.isSelected(item.key);
|
|
148
144
|
useEffect(() => {
|
|
149
145
|
if (defaultExpanded) {
|
|
150
146
|
if (state.selectionManager.selectionMode === "multiple") {
|
|
151
|
-
state.
|
|
152
|
-
state.selectionManager.
|
|
153
|
-
|
|
147
|
+
state.selectionManager.setSelectedKeys([
|
|
148
|
+
...state.selectionManager.selectedKeys,
|
|
149
|
+
item.key
|
|
150
|
+
]);
|
|
154
151
|
} else {
|
|
155
152
|
state.expandedKeys.clear();
|
|
156
153
|
state.selectionManager.toggleSelection(item.key);
|
|
@@ -187,14 +184,14 @@ var AccordionItem = ({
|
|
|
187
184
|
]
|
|
188
185
|
}
|
|
189
186
|
) }),
|
|
190
|
-
|
|
187
|
+
/* @__PURE__ */ jsx3(
|
|
191
188
|
"div",
|
|
192
189
|
{
|
|
193
190
|
...mergeProps2(regionProps, focusProps, stateProps),
|
|
194
|
-
className: classNames2.item,
|
|
191
|
+
className: expanded || defaultExpanded ? classNames2.item : cn(classNames2.item, "hidden"),
|
|
195
192
|
children: item.props.children
|
|
196
193
|
}
|
|
197
|
-
)
|
|
194
|
+
)
|
|
198
195
|
] });
|
|
199
196
|
};
|
|
200
197
|
|
|
@@ -204,26 +201,25 @@ var Accordion = ({ children, ...props }) => {
|
|
|
204
201
|
const ownProps = {
|
|
205
202
|
...props,
|
|
206
203
|
// we have to do this because JSX childs are not supported
|
|
207
|
-
children:
|
|
208
|
-
if (!isValidElement(child)) {
|
|
209
|
-
return child;
|
|
210
|
-
}
|
|
211
|
-
return cloneElement(child, {
|
|
212
|
-
hasChildItems: false,
|
|
213
|
-
...child.props
|
|
214
|
-
});
|
|
215
|
-
})
|
|
204
|
+
children: []
|
|
216
205
|
};
|
|
206
|
+
Children.forEach(children, (child) => {
|
|
207
|
+
var _a;
|
|
208
|
+
if (isValidElement(child) && typeof ((_a = child.props) == null ? void 0 : _a.children) !== "string") {
|
|
209
|
+
const clone = cloneElement(child, {
|
|
210
|
+
hasChildItems: false
|
|
211
|
+
});
|
|
212
|
+
ownProps.children.push(clone);
|
|
213
|
+
return;
|
|
214
|
+
}
|
|
215
|
+
ownProps.children.push(child);
|
|
216
|
+
});
|
|
217
217
|
const ref = useRef2(null);
|
|
218
218
|
const state = useTreeState({
|
|
219
219
|
selectionMode: "single",
|
|
220
220
|
...ownProps
|
|
221
221
|
});
|
|
222
|
-
const { accordionProps } = useAccordion(
|
|
223
|
-
{ ...ownProps, children },
|
|
224
|
-
state,
|
|
225
|
-
ref
|
|
226
|
-
);
|
|
222
|
+
const { accordionProps } = useAccordion({ ...ownProps }, state, ref);
|
|
227
223
|
delete accordionProps.onKeyDownCapture;
|
|
228
224
|
return /* @__PURE__ */ jsx4("div", { ...accordionProps, ref, children: [...state.collection].map((item) => /* @__PURE__ */ jsx4(
|
|
229
225
|
AccordionItem,
|
|
@@ -308,11 +304,11 @@ import {
|
|
|
308
304
|
import React2 from "react";
|
|
309
305
|
import { ComboBox, ComboBoxStateContext as ComboBoxStateContext2 } from "react-aria-components";
|
|
310
306
|
|
|
311
|
-
// src/FieldBase/
|
|
307
|
+
// src/FieldBase/FieldBase.tsx
|
|
312
308
|
import { forwardRef as forwardRef3 } from "react";
|
|
313
309
|
import { cn as cn6, width as twWidth, useClassNames as useClassNames4 } from "@marigold/system";
|
|
314
310
|
|
|
315
|
-
// src/HelpText/
|
|
311
|
+
// src/HelpText/HelpText.tsx
|
|
316
312
|
import { FieldError, Text } from "react-aria-components";
|
|
317
313
|
import { cn as cn4, useClassNames as useClassNames2 } from "@marigold/system";
|
|
318
314
|
import { jsx as jsx7, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
@@ -399,7 +395,7 @@ var _Label = ({ size, variant, children, ...props }) => {
|
|
|
399
395
|
);
|
|
400
396
|
};
|
|
401
397
|
|
|
402
|
-
// src/FieldBase/
|
|
398
|
+
// src/FieldBase/FieldBase.tsx
|
|
403
399
|
import { jsx as jsx10, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
404
400
|
var fixedForwardRef = forwardRef3;
|
|
405
401
|
var _FieldBase = (props, ref) => {
|
|
@@ -1064,7 +1060,7 @@ var _CheckboxGroup = ({
|
|
|
1064
1060
|
};
|
|
1065
1061
|
|
|
1066
1062
|
// src/Columns/Columns.tsx
|
|
1067
|
-
import { Children as Children3
|
|
1063
|
+
import { Children as Children3 } from "react";
|
|
1068
1064
|
import { cn as cn18, createVar as createVar6, gapSpace as gapSpace4 } from "@marigold/system";
|
|
1069
1065
|
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
1070
1066
|
var Columns = ({
|
|
@@ -1098,7 +1094,7 @@ var Columns = ({
|
|
|
1098
1094
|
"grow-[--columnSize] basis-[calc((var(--collapseAt)_-_100%)_*_999)]"
|
|
1099
1095
|
),
|
|
1100
1096
|
style: createVar6({ collapseAt, columnSize: columns[idx] }),
|
|
1101
|
-
children:
|
|
1097
|
+
children: child
|
|
1102
1098
|
}
|
|
1103
1099
|
))
|
|
1104
1100
|
}
|
|
@@ -1324,135 +1320,38 @@ var _Divider = ({ variant, ...props }) => {
|
|
|
1324
1320
|
return /* @__PURE__ */ jsx34(Separator, { className: classNames2, ...props });
|
|
1325
1321
|
};
|
|
1326
1322
|
|
|
1327
|
-
// src/FieldBase/FieldBase.tsx
|
|
1328
|
-
import {
|
|
1329
|
-
cn as cn23,
|
|
1330
|
-
width as twWidth2,
|
|
1331
|
-
useClassNames as useClassNames19
|
|
1332
|
-
} from "@marigold/system";
|
|
1333
|
-
|
|
1334
|
-
// src/HelpText/HelpText.tsx
|
|
1335
|
-
import { SVG as SVG4, cn as cn22, useClassNames as useClassNames18 } from "@marigold/system";
|
|
1336
|
-
import { Fragment as Fragment5, jsx as jsx35, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1337
|
-
var HelpText2 = ({
|
|
1338
|
-
variant,
|
|
1339
|
-
size,
|
|
1340
|
-
disabled,
|
|
1341
|
-
description,
|
|
1342
|
-
descriptionProps,
|
|
1343
|
-
error,
|
|
1344
|
-
errorMessage,
|
|
1345
|
-
errorMessageProps,
|
|
1346
|
-
...props
|
|
1347
|
-
}) => {
|
|
1348
|
-
const hasErrorMessage = errorMessage && error;
|
|
1349
|
-
const classNames2 = useClassNames18({
|
|
1350
|
-
component: "HelpText",
|
|
1351
|
-
variant,
|
|
1352
|
-
size
|
|
1353
|
-
});
|
|
1354
|
-
return /* @__PURE__ */ jsx35(
|
|
1355
|
-
"div",
|
|
1356
|
-
{
|
|
1357
|
-
...props,
|
|
1358
|
-
...hasErrorMessage ? errorMessageProps : descriptionProps,
|
|
1359
|
-
className: cn22("flex items-center gap-1", classNames2.container),
|
|
1360
|
-
children: hasErrorMessage ? /* @__PURE__ */ jsxs13(Fragment5, { children: [
|
|
1361
|
-
/* @__PURE__ */ jsx35(
|
|
1362
|
-
SVG4,
|
|
1363
|
-
{
|
|
1364
|
-
className: cn22("h-4 w-4", classNames2.icon),
|
|
1365
|
-
viewBox: "0 0 24 24",
|
|
1366
|
-
role: "presentation",
|
|
1367
|
-
children: /* @__PURE__ */ jsx35("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" })
|
|
1368
|
-
}
|
|
1369
|
-
),
|
|
1370
|
-
errorMessage
|
|
1371
|
-
] }) : /* @__PURE__ */ jsx35(Fragment5, { children: description })
|
|
1372
|
-
}
|
|
1373
|
-
);
|
|
1374
|
-
};
|
|
1375
|
-
|
|
1376
|
-
// src/FieldBase/FieldBase.tsx
|
|
1377
|
-
import { jsx as jsx36, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
1378
|
-
var FieldBase2 = ({
|
|
1379
|
-
children,
|
|
1380
|
-
variant,
|
|
1381
|
-
size,
|
|
1382
|
-
width = "full",
|
|
1383
|
-
disabled,
|
|
1384
|
-
label,
|
|
1385
|
-
labelProps,
|
|
1386
|
-
description,
|
|
1387
|
-
descriptionProps,
|
|
1388
|
-
error,
|
|
1389
|
-
errorMessage,
|
|
1390
|
-
errorMessageProps,
|
|
1391
|
-
stateProps,
|
|
1392
|
-
...props
|
|
1393
|
-
}) => {
|
|
1394
|
-
const hasHelpText = !!description || errorMessage && error;
|
|
1395
|
-
const classNames2 = useClassNames19({
|
|
1396
|
-
component: "Field",
|
|
1397
|
-
variant,
|
|
1398
|
-
size
|
|
1399
|
-
});
|
|
1400
|
-
return /* @__PURE__ */ jsxs14(
|
|
1401
|
-
"div",
|
|
1402
|
-
{
|
|
1403
|
-
...props,
|
|
1404
|
-
...stateProps,
|
|
1405
|
-
className: cn23("group/field", twWidth2[width], classNames2),
|
|
1406
|
-
children: [
|
|
1407
|
-
label ? /* @__PURE__ */ jsx36(_Label, { variant, size, ...labelProps, children: label }) : /* @__PURE__ */ jsx36("span", { "aria-hidden": "true" }),
|
|
1408
|
-
children,
|
|
1409
|
-
hasHelpText && /* @__PURE__ */ jsx36(
|
|
1410
|
-
HelpText2,
|
|
1411
|
-
{
|
|
1412
|
-
variant,
|
|
1413
|
-
size,
|
|
1414
|
-
disabled,
|
|
1415
|
-
description,
|
|
1416
|
-
descriptionProps,
|
|
1417
|
-
error,
|
|
1418
|
-
errorMessage,
|
|
1419
|
-
errorMessageProps
|
|
1420
|
-
}
|
|
1421
|
-
)
|
|
1422
|
-
]
|
|
1423
|
-
}
|
|
1424
|
-
);
|
|
1425
|
-
};
|
|
1426
|
-
|
|
1427
1323
|
// src/Footer/Footer.tsx
|
|
1428
|
-
import { useClassNames as
|
|
1429
|
-
import { jsx as
|
|
1324
|
+
import { useClassNames as useClassNames18 } from "@marigold/system";
|
|
1325
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
1430
1326
|
var Footer = ({ children, variant, size, ...props }) => {
|
|
1431
|
-
const classNames2 =
|
|
1432
|
-
return /* @__PURE__ */
|
|
1327
|
+
const classNames2 = useClassNames18({ component: "Footer", variant, size });
|
|
1328
|
+
return /* @__PURE__ */ jsx35("footer", { ...props, className: classNames2, children });
|
|
1433
1329
|
};
|
|
1434
1330
|
|
|
1331
|
+
// src/Form/Form.tsx
|
|
1332
|
+
import { Form } from "react-aria-components";
|
|
1333
|
+
|
|
1435
1334
|
// src/Header/Header.tsx
|
|
1436
1335
|
import { Header } from "react-aria-components";
|
|
1437
|
-
import { useClassNames as
|
|
1438
|
-
import { jsx as
|
|
1336
|
+
import { useClassNames as useClassNames19 } from "@marigold/system";
|
|
1337
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
1439
1338
|
var _Header = ({ variant, size, ...props }) => {
|
|
1440
|
-
const classNames2 =
|
|
1339
|
+
const classNames2 = useClassNames19({
|
|
1441
1340
|
component: "Header",
|
|
1442
1341
|
variant,
|
|
1443
1342
|
size
|
|
1444
1343
|
});
|
|
1445
|
-
return /* @__PURE__ */
|
|
1344
|
+
return /* @__PURE__ */ jsx36(Header, { className: classNames2, ...props, children: props.children });
|
|
1446
1345
|
};
|
|
1447
1346
|
|
|
1448
1347
|
// src/Image/Image.tsx
|
|
1449
1348
|
import {
|
|
1450
|
-
cn as
|
|
1349
|
+
cn as cn22,
|
|
1451
1350
|
objectFit,
|
|
1452
1351
|
objectPosition,
|
|
1453
|
-
useClassNames as
|
|
1352
|
+
useClassNames as useClassNames20
|
|
1454
1353
|
} from "@marigold/system";
|
|
1455
|
-
import { jsx as
|
|
1354
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
1456
1355
|
var Image = ({
|
|
1457
1356
|
variant,
|
|
1458
1357
|
size,
|
|
@@ -1460,13 +1359,13 @@ var Image = ({
|
|
|
1460
1359
|
position = "none",
|
|
1461
1360
|
...props
|
|
1462
1361
|
}) => {
|
|
1463
|
-
const classNames2 =
|
|
1464
|
-
return /* @__PURE__ */
|
|
1362
|
+
const classNames2 = useClassNames20({ component: "Image", variant, size });
|
|
1363
|
+
return /* @__PURE__ */ jsx37(
|
|
1465
1364
|
"img",
|
|
1466
1365
|
{
|
|
1467
1366
|
...props,
|
|
1468
1367
|
alt: props.alt,
|
|
1469
|
-
className:
|
|
1368
|
+
className: cn22(
|
|
1470
1369
|
fit !== "none" && "h-full w-full",
|
|
1471
1370
|
classNames2,
|
|
1472
1371
|
objectFit[fit],
|
|
@@ -1479,10 +1378,10 @@ var Image = ({
|
|
|
1479
1378
|
// src/Inline/Inline.tsx
|
|
1480
1379
|
import {
|
|
1481
1380
|
alignment as alignment2,
|
|
1482
|
-
cn as
|
|
1381
|
+
cn as cn23,
|
|
1483
1382
|
gapSpace as gapSpace5
|
|
1484
1383
|
} from "@marigold/system";
|
|
1485
|
-
import { jsx as
|
|
1384
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
1486
1385
|
var Inline = ({
|
|
1487
1386
|
space = 0,
|
|
1488
1387
|
orientation,
|
|
@@ -1492,11 +1391,11 @@ var Inline = ({
|
|
|
1492
1391
|
...props
|
|
1493
1392
|
}) => {
|
|
1494
1393
|
var _a2, _b2, _c, _d;
|
|
1495
|
-
return /* @__PURE__ */
|
|
1394
|
+
return /* @__PURE__ */ jsx38(
|
|
1496
1395
|
"div",
|
|
1497
1396
|
{
|
|
1498
1397
|
...props,
|
|
1499
|
-
className:
|
|
1398
|
+
className: cn23(
|
|
1500
1399
|
"flex flex-wrap",
|
|
1501
1400
|
gapSpace5[space],
|
|
1502
1401
|
alignX && ((_b2 = (_a2 = alignment2) == null ? void 0 : _a2.horizontal) == null ? void 0 : _b2.alignmentX[alignX]),
|
|
@@ -1508,186 +1407,102 @@ var Inline = ({
|
|
|
1508
1407
|
};
|
|
1509
1408
|
|
|
1510
1409
|
// src/DateField/DateField.tsx
|
|
1511
|
-
import {
|
|
1512
|
-
import {
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
import {
|
|
1516
|
-
import {
|
|
1517
|
-
import { mergeProps as mergeProps4 } from "@react-aria/utils";
|
|
1518
|
-
import { useDateFieldState } from "@react-stately/datepicker";
|
|
1519
|
-
import { cn as cn27, useClassNames as useClassNames23, useStateProps as useStateProps3 } from "@marigold/system";
|
|
1410
|
+
import { forwardRef as forwardRef12 } from "react";
|
|
1411
|
+
import { DateField } from "react-aria-components";
|
|
1412
|
+
|
|
1413
|
+
// src/DateField/DateInput.tsx
|
|
1414
|
+
import { DateInput, Group } from "react-aria-components";
|
|
1415
|
+
import { useClassNames as useClassNames21 } from "@marigold/system";
|
|
1520
1416
|
|
|
1521
1417
|
// src/DateField/DateSegment.tsx
|
|
1522
|
-
import {
|
|
1523
|
-
import {
|
|
1524
|
-
import {
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
var DateSegment = ({
|
|
1529
|
-
className,
|
|
1530
|
-
segment,
|
|
1531
|
-
state,
|
|
1532
|
-
isPrevPlaceholder
|
|
1533
|
-
}) => {
|
|
1534
|
-
const ref = useRef3(null);
|
|
1535
|
-
const { segmentProps } = useDateSegment(segment, state, ref);
|
|
1536
|
-
const { focusProps, isFocused } = useFocusRing2({
|
|
1537
|
-
within: true,
|
|
1538
|
-
isTextInput: true
|
|
1539
|
-
});
|
|
1540
|
-
const stateProps = useStateProps2({
|
|
1541
|
-
disabled: state.isDisabled,
|
|
1542
|
-
focusVisible: isFocused
|
|
1543
|
-
});
|
|
1544
|
-
const { isPlaceholder, placeholder, text, type, maxValue } = segment;
|
|
1545
|
-
return /* @__PURE__ */ jsxs15(
|
|
1546
|
-
"div",
|
|
1418
|
+
import { DateSegment } from "react-aria-components";
|
|
1419
|
+
import { cn as cn24 } from "@marigold/system";
|
|
1420
|
+
import { Fragment as Fragment5, jsx as jsx39, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1421
|
+
var _DateSegment = ({ segment, ...props }) => {
|
|
1422
|
+
return /* @__PURE__ */ jsx39(
|
|
1423
|
+
DateSegment,
|
|
1547
1424
|
{
|
|
1548
|
-
...
|
|
1549
|
-
|
|
1550
|
-
className: cn26(
|
|
1551
|
-
"group/segment",
|
|
1552
|
-
"text-center leading-none outline-0",
|
|
1553
|
-
type !== "literal" && "p-0.5",
|
|
1554
|
-
className
|
|
1555
|
-
),
|
|
1425
|
+
...props,
|
|
1426
|
+
segment,
|
|
1556
1427
|
style: {
|
|
1557
|
-
|
|
1558
|
-
minWidth: maxValue != null ? String(maxValue).length + "ch" : void 0
|
|
1428
|
+
minWidth: segment.maxValue != null ? `${String(segment.maxValue).length}ch` : void 0
|
|
1559
1429
|
},
|
|
1560
|
-
children: [
|
|
1561
|
-
/* @__PURE__ */
|
|
1430
|
+
children: ({ text, placeholder, isPlaceholder }) => /* @__PURE__ */ jsxs13(Fragment5, { children: [
|
|
1431
|
+
/* @__PURE__ */ jsx39(
|
|
1562
1432
|
"span",
|
|
1563
1433
|
{
|
|
1564
1434
|
"aria-hidden": "true",
|
|
1565
|
-
className:
|
|
1435
|
+
className: cn24(
|
|
1566
1436
|
isPlaceholder ? "visible block" : "invisible hidden",
|
|
1567
1437
|
"pointer-events-none w-full text-center"
|
|
1568
1438
|
),
|
|
1569
1439
|
children: isPlaceholder && (placeholder == null ? void 0 : placeholder.toUpperCase())
|
|
1570
1440
|
}
|
|
1571
1441
|
),
|
|
1572
|
-
/* @__PURE__ */
|
|
1573
|
-
]
|
|
1442
|
+
/* @__PURE__ */ jsx39("span", { children: isPlaceholder ? "" : (segment.type === "month" || segment.type === "day") && Number(segment.text) < 10 ? "0" + segment.text : text })
|
|
1443
|
+
] })
|
|
1574
1444
|
}
|
|
1575
1445
|
);
|
|
1576
1446
|
};
|
|
1577
1447
|
|
|
1448
|
+
// src/DateField/DateInput.tsx
|
|
1449
|
+
import { jsx as jsx40, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
1450
|
+
var _DateInput = ({ variant, size, action, ...props }) => {
|
|
1451
|
+
const classNames2 = useClassNames21({ component: "DateField", variant, size });
|
|
1452
|
+
return /* @__PURE__ */ jsxs14(Group, { className: classNames2.field, children: [
|
|
1453
|
+
/* @__PURE__ */ jsx40(DateInput, { className: "flex flex-1 items-center", ...props, children: (segment) => /* @__PURE__ */ jsx40(_DateSegment, { className: classNames2.segment, segment }) }),
|
|
1454
|
+
action ? action : /* @__PURE__ */ jsx40("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx40(
|
|
1455
|
+
"svg",
|
|
1456
|
+
{
|
|
1457
|
+
"data-testid": "action",
|
|
1458
|
+
className: classNames2.action,
|
|
1459
|
+
viewBox: "0 0 24 24",
|
|
1460
|
+
width: 24,
|
|
1461
|
+
height: 24,
|
|
1462
|
+
children: /* @__PURE__ */ jsx40("path", { d: "M20.0906 19.2V6.6C20.0906 5.61 19.2806 4.8 18.2906 4.8H17.3906V3H15.5906V4.8H8.39062V3H6.59062V4.8H5.69063C4.69163 4.8 3.89962 5.61 3.89962 6.6L3.89062 19.2C3.89062 20.19 4.69163 21 5.69063 21H18.2906C19.2806 21 20.0906 20.19 20.0906 19.2ZM9.29062 11.1001H7.49061V12.9001H9.29062V11.1001ZM5.69062 8.40009H18.2906V6.60008H5.69062V8.40009ZM18.2906 10.2V19.2H5.69062V10.2H18.2906ZM14.6906 12.9001H16.4906V11.1001H14.6906V12.9001ZM12.8906 12.9001H11.0906V11.1001H12.8906V12.9001Z" })
|
|
1463
|
+
}
|
|
1464
|
+
) })
|
|
1465
|
+
] });
|
|
1466
|
+
};
|
|
1467
|
+
|
|
1578
1468
|
// src/DateField/DateField.tsx
|
|
1579
|
-
import { jsx as
|
|
1580
|
-
var
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
errorMessage,
|
|
1586
|
-
errorMessageProps,
|
|
1587
|
-
variant,
|
|
1588
|
-
size,
|
|
1589
|
-
action,
|
|
1590
|
-
isPressed,
|
|
1591
|
-
triggerRef,
|
|
1592
|
-
width,
|
|
1593
|
-
...res
|
|
1594
|
-
}) => {
|
|
1595
|
-
const { locale } = useLocale();
|
|
1596
|
-
const props = {
|
|
1597
|
-
isDisabled: disabled,
|
|
1598
|
-
isReadOnly: readOnly,
|
|
1599
|
-
isRequired: required,
|
|
1600
|
-
...res
|
|
1601
|
-
};
|
|
1602
|
-
const { label, description } = props;
|
|
1603
|
-
const state = useDateFieldState({
|
|
1604
|
-
...props,
|
|
1605
|
-
locale,
|
|
1606
|
-
createCalendar
|
|
1607
|
-
});
|
|
1608
|
-
const ref = useRef4(null);
|
|
1609
|
-
const { fieldProps, labelProps, descriptionProps } = useDateField(
|
|
1610
|
-
props,
|
|
1611
|
-
state,
|
|
1612
|
-
ref
|
|
1613
|
-
);
|
|
1614
|
-
const classNames2 = useClassNames23({ component: "DateField", variant, size });
|
|
1615
|
-
const { focusProps, isFocused } = useFocusRing3({
|
|
1616
|
-
within: true,
|
|
1617
|
-
isTextInput: true,
|
|
1618
|
-
autoFocus: props.autoFocus
|
|
1619
|
-
});
|
|
1620
|
-
const { hoverProps, isHovered } = useHover({ isDisabled: disabled });
|
|
1621
|
-
const stateProps = useStateProps3({
|
|
1622
|
-
hover: isHovered,
|
|
1623
|
-
error,
|
|
1624
|
-
readOnly,
|
|
1469
|
+
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
1470
|
+
var _DateField = forwardRef12(
|
|
1471
|
+
({
|
|
1472
|
+
variant,
|
|
1473
|
+
size,
|
|
1474
|
+
action,
|
|
1625
1475
|
disabled,
|
|
1626
1476
|
required,
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
{
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
{
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
classNames2.field
|
|
1652
|
-
),
|
|
1653
|
-
"data-testid": "date-field",
|
|
1654
|
-
ref: triggerRef,
|
|
1655
|
-
children: [
|
|
1656
|
-
/* @__PURE__ */ jsx42("div", { ref, className: "flex basis-full items-center", children: state.segments.map((segment, i) => {
|
|
1657
|
-
var _a;
|
|
1658
|
-
return /* @__PURE__ */ jsx42(
|
|
1659
|
-
DateSegment,
|
|
1660
|
-
{
|
|
1661
|
-
className: classNames2.segment,
|
|
1662
|
-
isPrevPlaceholder: (_a = state.segments[i - 1]) == null ? void 0 : _a.isPlaceholder,
|
|
1663
|
-
segment,
|
|
1664
|
-
state
|
|
1665
|
-
},
|
|
1666
|
-
i
|
|
1667
|
-
);
|
|
1668
|
-
}) }),
|
|
1669
|
-
action ? action : /* @__PURE__ */ jsx42("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx42(
|
|
1670
|
-
"svg",
|
|
1671
|
-
{
|
|
1672
|
-
"data-testid": "action",
|
|
1673
|
-
className: cn27(classNames2.action),
|
|
1674
|
-
viewBox: "0 0 24 24",
|
|
1675
|
-
width: 24,
|
|
1676
|
-
height: 24,
|
|
1677
|
-
children: /* @__PURE__ */ jsx42("path", { d: "M20.0906 19.2V6.6C20.0906 5.61 19.2806 4.8 18.2906 4.8H17.3906V3H15.5906V4.8H8.39062V3H6.59062V4.8H5.69063C4.69163 4.8 3.89962 5.61 3.89962 6.6L3.89062 19.2C3.89062 20.19 4.69163 21 5.69063 21H18.2906C19.2806 21 20.0906 20.19 20.0906 19.2ZM9.29062 11.1001H7.49061V12.9001H9.29062V11.1001ZM5.69062 8.40009H18.2906V6.60008H5.69062V8.40009ZM18.2906 10.2V19.2H5.69062V10.2H18.2906ZM14.6906 12.9001H16.4906V11.1001H14.6906V12.9001ZM12.8906 12.9001H11.0906V11.1001H12.8906V12.9001Z" })
|
|
1678
|
-
}
|
|
1679
|
-
) })
|
|
1680
|
-
]
|
|
1681
|
-
}
|
|
1682
|
-
)
|
|
1683
|
-
}
|
|
1684
|
-
);
|
|
1685
|
-
};
|
|
1477
|
+
error,
|
|
1478
|
+
readOnly,
|
|
1479
|
+
...rest
|
|
1480
|
+
}, ref) => {
|
|
1481
|
+
const props = {
|
|
1482
|
+
isDisabled: disabled,
|
|
1483
|
+
isReadOnly: readOnly,
|
|
1484
|
+
isInvalid: error,
|
|
1485
|
+
isRequired: required,
|
|
1486
|
+
...rest
|
|
1487
|
+
};
|
|
1488
|
+
return /* @__PURE__ */ jsx41(
|
|
1489
|
+
FieldBase,
|
|
1490
|
+
{
|
|
1491
|
+
as: DateField,
|
|
1492
|
+
variant,
|
|
1493
|
+
size,
|
|
1494
|
+
ref,
|
|
1495
|
+
...props,
|
|
1496
|
+
children: /* @__PURE__ */ jsx41(_DateInput, { action })
|
|
1497
|
+
}
|
|
1498
|
+
);
|
|
1499
|
+
}
|
|
1500
|
+
);
|
|
1686
1501
|
|
|
1687
1502
|
// src/Calendar/Calendar.tsx
|
|
1688
1503
|
import { useState } from "react";
|
|
1689
1504
|
import { Calendar } from "react-aria-components";
|
|
1690
|
-
import { cn as
|
|
1505
|
+
import { cn as cn28, useClassNames as useClassNames26 } from "@marigold/system";
|
|
1691
1506
|
|
|
1692
1507
|
// src/Calendar/CalendarGrid.tsx
|
|
1693
1508
|
import {
|
|
@@ -1695,20 +1510,20 @@ import {
|
|
|
1695
1510
|
CalendarGrid,
|
|
1696
1511
|
CalendarGridBody
|
|
1697
1512
|
} from "react-aria-components";
|
|
1698
|
-
import { cn as
|
|
1513
|
+
import { cn as cn25, useClassNames as useClassNames23 } from "@marigold/system";
|
|
1699
1514
|
|
|
1700
1515
|
// src/Calendar/CalendarGridHeader.tsx
|
|
1701
1516
|
import { startOfWeek, today } from "@internationalized/date";
|
|
1702
1517
|
import { useContext as useContext4, useMemo } from "react";
|
|
1703
1518
|
import { CalendarStateContext } from "react-aria-components";
|
|
1704
1519
|
import { useCalendarGrid } from "@react-aria/calendar";
|
|
1705
|
-
import { useDateFormatter, useLocale
|
|
1706
|
-
import { useClassNames as
|
|
1707
|
-
import { jsx as
|
|
1520
|
+
import { useDateFormatter, useLocale } from "@react-aria/i18n";
|
|
1521
|
+
import { useClassNames as useClassNames22 } from "@marigold/system";
|
|
1522
|
+
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
1708
1523
|
function CalendarGridHeader(props) {
|
|
1709
1524
|
const state = useContext4(CalendarStateContext);
|
|
1710
1525
|
const { headerProps } = useCalendarGrid(props, state);
|
|
1711
|
-
const { locale } =
|
|
1526
|
+
const { locale } = useLocale();
|
|
1712
1527
|
const dayFormatter = useDateFormatter({
|
|
1713
1528
|
weekday: "short",
|
|
1714
1529
|
timeZone: state.timeZone
|
|
@@ -1721,21 +1536,21 @@ function CalendarGridHeader(props) {
|
|
|
1721
1536
|
return dayFormatter.format(dateDay);
|
|
1722
1537
|
});
|
|
1723
1538
|
}, [locale, state.timeZone, dayFormatter]);
|
|
1724
|
-
const classNames2 =
|
|
1725
|
-
return /* @__PURE__ */
|
|
1539
|
+
const classNames2 = useClassNames22({ component: "Calendar" });
|
|
1540
|
+
return /* @__PURE__ */ jsx42("thead", { ...headerProps, children: /* @__PURE__ */ jsx42("tr", { children: weekDays.map((day, index) => /* @__PURE__ */ jsx42("th", { className: classNames2.calendarHeader, children: day.substring(0, 2) }, index)) }) });
|
|
1726
1541
|
}
|
|
1727
1542
|
|
|
1728
1543
|
// src/Calendar/CalendarGrid.tsx
|
|
1729
|
-
import { jsx as
|
|
1544
|
+
import { jsx as jsx43, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
1730
1545
|
var _CalendarGrid = () => {
|
|
1731
|
-
const classNames2 =
|
|
1732
|
-
return /* @__PURE__ */
|
|
1733
|
-
/* @__PURE__ */
|
|
1734
|
-
/* @__PURE__ */
|
|
1546
|
+
const classNames2 = useClassNames23({ component: "Calendar" });
|
|
1547
|
+
return /* @__PURE__ */ jsxs15(CalendarGrid, { className: classNames2.calendarGrid, children: [
|
|
1548
|
+
/* @__PURE__ */ jsx43(CalendarGridHeader, {}),
|
|
1549
|
+
/* @__PURE__ */ jsx43(CalendarGridBody, { children: (date) => /* @__PURE__ */ jsx43(
|
|
1735
1550
|
CalendarCell,
|
|
1736
1551
|
{
|
|
1737
1552
|
date,
|
|
1738
|
-
className:
|
|
1553
|
+
className: cn25(
|
|
1739
1554
|
"flex h-[30px] w-[30px] cursor-pointer items-center justify-center rounded-full p-[5.3px] text-sm font-normal aria-disabled:cursor-default",
|
|
1740
1555
|
classNames2.calendarCell
|
|
1741
1556
|
)
|
|
@@ -1748,7 +1563,7 @@ var _CalendarGrid = () => {
|
|
|
1748
1563
|
import { useContext as useContext5 } from "react";
|
|
1749
1564
|
import { CalendarStateContext as CalendarStateContext2 } from "react-aria-components";
|
|
1750
1565
|
import { ChevronDown as ChevronDown2 } from "@marigold/icons";
|
|
1751
|
-
import { cn as
|
|
1566
|
+
import { cn as cn26, useClassNames as useClassNames24 } from "@marigold/system";
|
|
1752
1567
|
|
|
1753
1568
|
// src/Calendar/useFormattedMonths.tsx
|
|
1754
1569
|
import { useDateFormatter as useDateFormatter2 } from "@react-aria/i18n";
|
|
@@ -1767,7 +1582,7 @@ function useFormattedMonths(timeZone, focusedDate) {
|
|
|
1767
1582
|
}
|
|
1768
1583
|
|
|
1769
1584
|
// src/Calendar/CalendarListBox.tsx
|
|
1770
|
-
import { jsx as
|
|
1585
|
+
import { jsx as jsx44, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
1771
1586
|
function CalendarListBox({
|
|
1772
1587
|
type,
|
|
1773
1588
|
isDisabled,
|
|
@@ -1776,71 +1591,70 @@ function CalendarListBox({
|
|
|
1776
1591
|
const state = useContext5(CalendarStateContext2);
|
|
1777
1592
|
const months = useFormattedMonths(state.timeZone, state.focusedDate);
|
|
1778
1593
|
const buttonStyles = "flex items-center justify-between gap-1 overflow-hidden";
|
|
1779
|
-
const { select: selectClassNames } =
|
|
1780
|
-
return /* @__PURE__ */
|
|
1594
|
+
const { select: selectClassNames } = useClassNames24({ component: "Select" });
|
|
1595
|
+
return /* @__PURE__ */ jsxs16(
|
|
1781
1596
|
"button",
|
|
1782
1597
|
{
|
|
1783
1598
|
disabled: isDisabled,
|
|
1784
1599
|
onClick: () => setSelectedDropdown(type),
|
|
1785
|
-
className:
|
|
1600
|
+
className: cn26(buttonStyles, selectClassNames),
|
|
1786
1601
|
"data-testid": type,
|
|
1787
1602
|
children: [
|
|
1788
1603
|
type === "month" ? months[state.focusedDate.month - 1].substring(0, 3) : state.focusedDate.year,
|
|
1789
|
-
/* @__PURE__ */
|
|
1604
|
+
/* @__PURE__ */ jsx44(ChevronDown2, {})
|
|
1790
1605
|
]
|
|
1791
1606
|
}
|
|
1792
1607
|
);
|
|
1793
1608
|
}
|
|
1794
1609
|
|
|
1795
1610
|
// src/Calendar/MonthControls.tsx
|
|
1796
|
-
import React4 from "react";
|
|
1797
1611
|
import { Button as Button2 } from "react-aria-components";
|
|
1798
1612
|
import { ChevronLeft, ChevronRight } from "@marigold/icons";
|
|
1799
|
-
import { cn as
|
|
1800
|
-
import { jsx as
|
|
1613
|
+
import { cn as cn27, useClassNames as useClassNames25 } from "@marigold/system";
|
|
1614
|
+
import { jsx as jsx45, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
1801
1615
|
function MonthControls() {
|
|
1802
|
-
const classNames2 =
|
|
1803
|
-
const buttonClassNames =
|
|
1804
|
-
return /* @__PURE__ */
|
|
1616
|
+
const classNames2 = useClassNames25({ component: "Calendar" });
|
|
1617
|
+
const buttonClassNames = useClassNames25({ component: "Button" });
|
|
1618
|
+
return /* @__PURE__ */ jsxs17(
|
|
1805
1619
|
"div",
|
|
1806
1620
|
{
|
|
1807
|
-
className:
|
|
1621
|
+
className: cn27(
|
|
1808
1622
|
"flex w-full flex-nowrap justify-end gap-[10px] [&_button:disabled]:cursor-not-allowed [&_button]:px-2 [&_button]:py-1",
|
|
1809
1623
|
classNames2.calendarControllers
|
|
1810
1624
|
),
|
|
1811
1625
|
children: [
|
|
1812
|
-
/* @__PURE__ */
|
|
1626
|
+
/* @__PURE__ */ jsx45(
|
|
1813
1627
|
Button2,
|
|
1814
1628
|
{
|
|
1815
|
-
className:
|
|
1629
|
+
className: cn27(
|
|
1816
1630
|
"inline-flex items-center justify-center gap-[0.5ch]",
|
|
1817
1631
|
buttonClassNames
|
|
1818
1632
|
),
|
|
1819
1633
|
slot: "previous",
|
|
1820
|
-
children: /* @__PURE__ */
|
|
1634
|
+
children: /* @__PURE__ */ jsx45(ChevronLeft, {})
|
|
1821
1635
|
}
|
|
1822
1636
|
),
|
|
1823
|
-
/* @__PURE__ */
|
|
1637
|
+
/* @__PURE__ */ jsx45(
|
|
1824
1638
|
Button2,
|
|
1825
1639
|
{
|
|
1826
|
-
className:
|
|
1640
|
+
className: cn27(
|
|
1827
1641
|
"inline-flex items-center justify-center gap-[0.5ch]",
|
|
1828
1642
|
buttonClassNames
|
|
1829
1643
|
),
|
|
1830
1644
|
slot: "next",
|
|
1831
|
-
children: /* @__PURE__ */
|
|
1645
|
+
children: /* @__PURE__ */ jsx45(ChevronRight, {})
|
|
1832
1646
|
}
|
|
1833
1647
|
)
|
|
1834
1648
|
]
|
|
1835
1649
|
}
|
|
1836
1650
|
);
|
|
1837
1651
|
}
|
|
1838
|
-
var MonthControls_default =
|
|
1652
|
+
var MonthControls_default = MonthControls;
|
|
1839
1653
|
|
|
1840
1654
|
// src/Calendar/MonthListBox.tsx
|
|
1841
1655
|
import { useContext as useContext6 } from "react";
|
|
1842
1656
|
import { CalendarStateContext as CalendarStateContext3 } from "react-aria-components";
|
|
1843
|
-
import { jsx as
|
|
1657
|
+
import { jsx as jsx46 } from "react/jsx-runtime";
|
|
1844
1658
|
var MonthListBox = ({ setSelectedDropdown }) => {
|
|
1845
1659
|
const state = useContext6(CalendarStateContext3);
|
|
1846
1660
|
const months = useFormattedMonths(state.timeZone, state.focusedDate);
|
|
@@ -1849,13 +1663,13 @@ var MonthListBox = ({ setSelectedDropdown }) => {
|
|
|
1849
1663
|
let date = state.focusedDate.set({ month: value });
|
|
1850
1664
|
state.setFocusedDate(date);
|
|
1851
1665
|
};
|
|
1852
|
-
return /* @__PURE__ */
|
|
1666
|
+
return /* @__PURE__ */ jsx46(
|
|
1853
1667
|
"ul",
|
|
1854
1668
|
{
|
|
1855
1669
|
"data-testid": "monthOptions",
|
|
1856
1670
|
className: "grid h-full max-h-[300px] min-w-[300px] grid-cols-3 gap-y-10 overflow-y-scroll p-2",
|
|
1857
1671
|
children: months.map((month, index) => {
|
|
1858
|
-
return /* @__PURE__ */
|
|
1672
|
+
return /* @__PURE__ */ jsx46("li", { className: "flex justify-center", children: /* @__PURE__ */ jsx46(
|
|
1859
1673
|
_Button,
|
|
1860
1674
|
{
|
|
1861
1675
|
slot: "previous",
|
|
@@ -1879,11 +1693,11 @@ var MonthListBox_default = MonthListBox;
|
|
|
1879
1693
|
import {
|
|
1880
1694
|
useContext as useContext7,
|
|
1881
1695
|
useEffect as useEffect2,
|
|
1882
|
-
useRef as
|
|
1696
|
+
useRef as useRef3
|
|
1883
1697
|
} from "react";
|
|
1884
1698
|
import { CalendarStateContext as CalendarStateContext4 } from "react-aria-components";
|
|
1885
1699
|
import { useDateFormatter as useDateFormatter3 } from "@react-aria/i18n";
|
|
1886
|
-
import { jsx as
|
|
1700
|
+
import { jsx as jsx47 } from "react/jsx-runtime";
|
|
1887
1701
|
var YearListBox = ({ setSelectedDropdown }) => {
|
|
1888
1702
|
const state = useContext7(CalendarStateContext4);
|
|
1889
1703
|
const years = [];
|
|
@@ -1898,7 +1712,7 @@ var YearListBox = ({ setSelectedDropdown }) => {
|
|
|
1898
1712
|
formatted: formatter.format(date.toDate(state.timeZone))
|
|
1899
1713
|
});
|
|
1900
1714
|
}
|
|
1901
|
-
const activeButtonRef =
|
|
1715
|
+
const activeButtonRef = useRef3(null);
|
|
1902
1716
|
useEffect2(() => {
|
|
1903
1717
|
if (activeButtonRef.current) {
|
|
1904
1718
|
const activeButton = activeButtonRef.current;
|
|
@@ -1913,19 +1727,19 @@ var YearListBox = ({ setSelectedDropdown }) => {
|
|
|
1913
1727
|
let date = years[index].value;
|
|
1914
1728
|
state.setFocusedDate(date);
|
|
1915
1729
|
};
|
|
1916
|
-
return /* @__PURE__ */
|
|
1730
|
+
return /* @__PURE__ */ jsx47(
|
|
1917
1731
|
"ul",
|
|
1918
1732
|
{
|
|
1919
1733
|
"data-testid": "yearOptions",
|
|
1920
1734
|
className: "grid h-full max-h-[300px] min-w-[300px] grid-cols-3 gap-y-10 overflow-y-scroll p-2",
|
|
1921
1735
|
children: years.map((year, index) => {
|
|
1922
1736
|
const isActive = +year.formatted === state.focusedDate.year;
|
|
1923
|
-
return /* @__PURE__ */
|
|
1737
|
+
return /* @__PURE__ */ jsx47("li", { className: "flex justify-center", children: /* @__PURE__ */ jsx47(
|
|
1924
1738
|
"div",
|
|
1925
1739
|
{
|
|
1926
1740
|
ref: isActive ? activeButtonRef : null,
|
|
1927
1741
|
style: { height: "100%", width: "100%" },
|
|
1928
|
-
children: /* @__PURE__ */
|
|
1742
|
+
children: /* @__PURE__ */ jsx47(
|
|
1929
1743
|
_Button,
|
|
1930
1744
|
{
|
|
1931
1745
|
slot: "previous",
|
|
@@ -1950,7 +1764,7 @@ var YearListBox = ({ setSelectedDropdown }) => {
|
|
|
1950
1764
|
var YearListBox_default = YearListBox;
|
|
1951
1765
|
|
|
1952
1766
|
// src/Calendar/Calendar.tsx
|
|
1953
|
-
import { Fragment as Fragment6, jsx as
|
|
1767
|
+
import { Fragment as Fragment6, jsx as jsx48, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
1954
1768
|
var _Calendar = ({
|
|
1955
1769
|
disabled,
|
|
1956
1770
|
readOnly,
|
|
@@ -1963,24 +1777,24 @@ var _Calendar = ({
|
|
|
1963
1777
|
isReadOnly: readOnly,
|
|
1964
1778
|
...rest
|
|
1965
1779
|
};
|
|
1966
|
-
const classNames2 =
|
|
1780
|
+
const classNames2 = useClassNames26({ component: "Calendar" });
|
|
1967
1781
|
const [selectedDropdown, setSelectedDropdown] = useState();
|
|
1968
1782
|
const ViewMap = {
|
|
1969
|
-
month: /* @__PURE__ */
|
|
1970
|
-
year: /* @__PURE__ */
|
|
1783
|
+
month: /* @__PURE__ */ jsx48(MonthListBox_default, { setSelectedDropdown }),
|
|
1784
|
+
year: /* @__PURE__ */ jsx48(YearListBox_default, { setSelectedDropdown })
|
|
1971
1785
|
};
|
|
1972
|
-
return /* @__PURE__ */
|
|
1786
|
+
return /* @__PURE__ */ jsx48(
|
|
1973
1787
|
Calendar,
|
|
1974
1788
|
{
|
|
1975
|
-
className:
|
|
1789
|
+
className: cn28(
|
|
1976
1790
|
"flex min-h-[350px] w-[360px] flex-col rounded-sm p-4 shadow-[0_4px_4px_rgba(165,165,165,0.25)]",
|
|
1977
1791
|
classNames2.calendar
|
|
1978
1792
|
),
|
|
1979
1793
|
...props,
|
|
1980
|
-
children: selectedDropdown ? ViewMap[selectedDropdown] : /* @__PURE__ */
|
|
1981
|
-
/* @__PURE__ */
|
|
1982
|
-
/* @__PURE__ */
|
|
1983
|
-
/* @__PURE__ */
|
|
1794
|
+
children: selectedDropdown ? ViewMap[selectedDropdown] : /* @__PURE__ */ jsxs18(Fragment6, { children: [
|
|
1795
|
+
/* @__PURE__ */ jsxs18("div", { className: "mb-4 flex items-center justify-between", children: [
|
|
1796
|
+
/* @__PURE__ */ jsxs18("div", { className: "flex w-full gap-4", children: [
|
|
1797
|
+
/* @__PURE__ */ jsx48(
|
|
1984
1798
|
CalendarListBox,
|
|
1985
1799
|
{
|
|
1986
1800
|
type: "month",
|
|
@@ -1988,7 +1802,7 @@ var _Calendar = ({
|
|
|
1988
1802
|
setSelectedDropdown
|
|
1989
1803
|
}
|
|
1990
1804
|
),
|
|
1991
|
-
/* @__PURE__ */
|
|
1805
|
+
/* @__PURE__ */ jsx48(
|
|
1992
1806
|
CalendarListBox,
|
|
1993
1807
|
{
|
|
1994
1808
|
type: "year",
|
|
@@ -1997,251 +1811,82 @@ var _Calendar = ({
|
|
|
1997
1811
|
}
|
|
1998
1812
|
)
|
|
1999
1813
|
] }),
|
|
2000
|
-
/* @__PURE__ */
|
|
1814
|
+
/* @__PURE__ */ jsx48(MonthControls_default, {})
|
|
2001
1815
|
] }),
|
|
2002
|
-
/* @__PURE__ */
|
|
1816
|
+
/* @__PURE__ */ jsx48(_CalendarGrid, {})
|
|
2003
1817
|
] })
|
|
2004
1818
|
}
|
|
2005
1819
|
);
|
|
2006
1820
|
};
|
|
2007
1821
|
|
|
2008
1822
|
// src/DatePicker/DatePicker.tsx
|
|
2009
|
-
import {
|
|
2010
|
-
import {
|
|
2011
|
-
import {
|
|
2012
|
-
|
|
2013
|
-
import { useClassNames as useClassNames31, useStateProps as useStateProps4 } from "@marigold/system";
|
|
2014
|
-
|
|
2015
|
-
// src/Overlay/Overlay.tsx
|
|
2016
|
-
import { useRef as useRef6 } from "react";
|
|
2017
|
-
import {
|
|
2018
|
-
Overlay as ReactAriaOverlay
|
|
2019
|
-
} from "@react-aria/overlays";
|
|
2020
|
-
import { useTheme as useTheme4 } from "@marigold/system";
|
|
2021
|
-
import { jsx as jsx50 } from "react/jsx-runtime";
|
|
2022
|
-
var Overlay = ({ children, container, open }) => {
|
|
2023
|
-
const nodeRef = useRef6(null);
|
|
2024
|
-
const theme = useTheme4();
|
|
2025
|
-
let mountOverlay = open;
|
|
2026
|
-
if (!mountOverlay) {
|
|
2027
|
-
return null;
|
|
2028
|
-
}
|
|
2029
|
-
return /* @__PURE__ */ jsx50(ReactAriaOverlay, { portalContainer: container, children: /* @__PURE__ */ jsx50(
|
|
2030
|
-
"div",
|
|
2031
|
-
{
|
|
2032
|
-
ref: nodeRef,
|
|
2033
|
-
"data-testid": "overlay",
|
|
2034
|
-
"data-theme": theme.name,
|
|
2035
|
-
className: "opacity-100",
|
|
2036
|
-
children
|
|
2037
|
-
}
|
|
2038
|
-
) });
|
|
2039
|
-
};
|
|
2040
|
-
|
|
2041
|
-
// src/Overlay/_Popover.tsx
|
|
2042
|
-
import { forwardRef as forwardRef12, useRef as useRef7 } from "react";
|
|
2043
|
-
import { FocusScope } from "@react-aria/focus";
|
|
2044
|
-
import {
|
|
2045
|
-
DismissButton,
|
|
2046
|
-
usePopover
|
|
2047
|
-
} from "@react-aria/overlays";
|
|
2048
|
-
import { useClassNames as useClassNames29 } from "@marigold/system";
|
|
2049
|
-
import { jsx as jsx51, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
2050
|
-
var Popover2 = forwardRef12(
|
|
2051
|
-
(props, ref) => {
|
|
2052
|
-
const fallbackRef = useRef7(null);
|
|
2053
|
-
const popoverRef = ref || fallbackRef;
|
|
2054
|
-
let { children, state, ...otherProps } = props;
|
|
2055
|
-
return /* @__PURE__ */ jsx51(Overlay, { open: state.isOpen, ...otherProps, children: /* @__PURE__ */ jsx51(PopoverWrapper, { ref: popoverRef, ...props, children }) });
|
|
2056
|
-
}
|
|
2057
|
-
);
|
|
2058
|
-
var PopoverWrapper = forwardRef12(
|
|
2059
|
-
({
|
|
2060
|
-
children,
|
|
2061
|
-
isNonModal,
|
|
2062
|
-
state,
|
|
2063
|
-
keyboardDismissDisabled,
|
|
2064
|
-
...props
|
|
2065
|
-
}, ref) => {
|
|
2066
|
-
const { popoverProps, underlayProps, placement } = usePopover(
|
|
2067
|
-
{
|
|
2068
|
-
...props,
|
|
2069
|
-
isNonModal,
|
|
2070
|
-
isKeyboardDismissDisabled: keyboardDismissDisabled,
|
|
2071
|
-
popoverRef: ref,
|
|
2072
|
-
placement: "bottom left"
|
|
2073
|
-
},
|
|
2074
|
-
state
|
|
2075
|
-
);
|
|
2076
|
-
const classNames2 = useClassNames29({
|
|
2077
|
-
component: "Popover",
|
|
2078
|
-
variant: placement
|
|
2079
|
-
});
|
|
2080
|
-
return /* @__PURE__ */ jsxs21(FocusScope, { restoreFocus: true, children: [
|
|
2081
|
-
!isNonModal && /* @__PURE__ */ jsx51(Underlay, { ...underlayProps }),
|
|
2082
|
-
/* @__PURE__ */ jsxs21(
|
|
2083
|
-
"div",
|
|
2084
|
-
{
|
|
2085
|
-
...popoverProps,
|
|
2086
|
-
className: classNames2,
|
|
2087
|
-
style: {
|
|
2088
|
-
...popoverProps.style,
|
|
2089
|
-
minWidth: props.triggerRef.current ? props.triggerRef.current.offsetWidth : void 0
|
|
2090
|
-
},
|
|
2091
|
-
ref,
|
|
2092
|
-
role: "presentation",
|
|
2093
|
-
children: [
|
|
2094
|
-
!isNonModal && /* @__PURE__ */ jsx51(DismissButton, { onDismiss: state.close }),
|
|
2095
|
-
children,
|
|
2096
|
-
/* @__PURE__ */ jsx51(DismissButton, { onDismiss: state.close })
|
|
2097
|
-
]
|
|
2098
|
-
}
|
|
2099
|
-
)
|
|
2100
|
-
] });
|
|
2101
|
-
}
|
|
2102
|
-
);
|
|
2103
|
-
|
|
2104
|
-
// src/Overlay/Tray.tsx
|
|
2105
|
-
import { forwardRef as forwardRef13 } from "react";
|
|
2106
|
-
import { FocusScope as FocusScope2 } from "@react-aria/focus";
|
|
2107
|
-
import {
|
|
2108
|
-
DismissButton as DismissButton2,
|
|
2109
|
-
useModalOverlay
|
|
2110
|
-
} from "@react-aria/overlays";
|
|
2111
|
-
import { useObjectRef } from "@react-aria/utils";
|
|
2112
|
-
|
|
2113
|
-
// src/Overlay/_Underlay.tsx
|
|
2114
|
-
import { cn as cn32, useClassNames as useClassNames30 } from "@marigold/system";
|
|
2115
|
-
import { jsx as jsx52 } from "react/jsx-runtime";
|
|
2116
|
-
var Underlay2 = ({ size, variant, ...props }) => {
|
|
2117
|
-
const classNames2 = useClassNames30({ component: "Underlay", size, variant });
|
|
2118
|
-
return /* @__PURE__ */ jsx52("div", { className: cn32("fixed inset-0 z-40", classNames2), ...props });
|
|
2119
|
-
};
|
|
2120
|
-
|
|
2121
|
-
// src/Overlay/Tray.tsx
|
|
2122
|
-
import { jsx as jsx53, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
2123
|
-
var Tray = forwardRef13(
|
|
2124
|
-
({ state, children, ...props }, ref) => {
|
|
2125
|
-
const trayRef = useObjectRef(ref);
|
|
2126
|
-
return /* @__PURE__ */ jsx53(Overlay, { open: state.isOpen, children: /* @__PURE__ */ jsx53(TrayWrapper, { state, ...props, ref: trayRef, children }) });
|
|
2127
|
-
}
|
|
2128
|
-
);
|
|
2129
|
-
var TrayWrapper = forwardRef13(
|
|
2130
|
-
({ children, state, ...props }, ref) => {
|
|
2131
|
-
let { modalProps, underlayProps } = useModalOverlay(
|
|
2132
|
-
{
|
|
2133
|
-
...props,
|
|
2134
|
-
isDismissable: true
|
|
2135
|
-
},
|
|
2136
|
-
state,
|
|
2137
|
-
ref
|
|
2138
|
-
);
|
|
2139
|
-
return /* @__PURE__ */ jsx53(FocusScope2, { contain: true, restoreFocus: true, autoFocus: true, children: /* @__PURE__ */ jsx53(Underlay2, { ...underlayProps, variant: "modal", children: /* @__PURE__ */ jsxs22(
|
|
2140
|
-
"div",
|
|
2141
|
-
{
|
|
2142
|
-
...modalProps,
|
|
2143
|
-
ref,
|
|
2144
|
-
className: "absolute bottom-0 w-full",
|
|
2145
|
-
"data-testid": "tray",
|
|
2146
|
-
children: [
|
|
2147
|
-
/* @__PURE__ */ jsx53(DismissButton2, { onDismiss: state.close }),
|
|
2148
|
-
children,
|
|
2149
|
-
/* @__PURE__ */ jsx53(DismissButton2, { onDismiss: state.close })
|
|
2150
|
-
]
|
|
2151
|
-
}
|
|
2152
|
-
) }) });
|
|
2153
|
-
}
|
|
2154
|
-
);
|
|
2155
|
-
|
|
2156
|
-
// src/DatePicker/DatePicker.tsx
|
|
2157
|
-
import { Fragment as Fragment7, jsx as jsx54, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
2158
|
-
var DatePicker = ({
|
|
1823
|
+
import { DatePicker } from "react-aria-components";
|
|
1824
|
+
import { useClassNames as useClassNames27 } from "@marigold/system";
|
|
1825
|
+
import { jsx as jsx49, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
1826
|
+
var _DatePicker = ({
|
|
2159
1827
|
disabled,
|
|
2160
1828
|
required,
|
|
2161
|
-
|
|
2162
|
-
open,
|
|
1829
|
+
readOnly,
|
|
2163
1830
|
error,
|
|
2164
|
-
shouldCloseOnSelect,
|
|
2165
1831
|
variant,
|
|
2166
1832
|
size,
|
|
2167
|
-
|
|
1833
|
+
open,
|
|
2168
1834
|
...rest
|
|
2169
1835
|
}) => {
|
|
2170
1836
|
const props = {
|
|
2171
1837
|
isDisabled: disabled,
|
|
2172
|
-
isReadOnly:
|
|
1838
|
+
isReadOnly: readOnly,
|
|
2173
1839
|
isRequired: required,
|
|
1840
|
+
isInvalid: error,
|
|
2174
1841
|
isOpen: open,
|
|
2175
1842
|
...rest
|
|
2176
1843
|
};
|
|
2177
|
-
const
|
|
2178
|
-
shouldCloseOnSelect,
|
|
2179
|
-
...props
|
|
2180
|
-
});
|
|
2181
|
-
const ref = useRef8(null);
|
|
2182
|
-
const stateProps = useStateProps4({
|
|
2183
|
-
focus: state.isOpen
|
|
2184
|
-
});
|
|
2185
|
-
const { groupProps, fieldProps, buttonProps, calendarProps } = useDatePicker(
|
|
2186
|
-
props,
|
|
2187
|
-
state,
|
|
2188
|
-
ref
|
|
2189
|
-
);
|
|
2190
|
-
const { isDisabled, errorMessage, description, label } = props;
|
|
2191
|
-
const classNames2 = useClassNames31({
|
|
1844
|
+
const classNames2 = useClassNames27({
|
|
2192
1845
|
component: "DatePicker",
|
|
2193
1846
|
size,
|
|
2194
1847
|
variant
|
|
2195
1848
|
});
|
|
2196
|
-
return /* @__PURE__ */
|
|
2197
|
-
/* @__PURE__ */
|
|
2198
|
-
|
|
1849
|
+
return /* @__PURE__ */ jsxs19(FieldBase, { as: DatePicker, variant, size, ...props, children: [
|
|
1850
|
+
/* @__PURE__ */ jsx49(
|
|
1851
|
+
_DateInput,
|
|
2199
1852
|
{
|
|
2200
|
-
|
|
2201
|
-
label,
|
|
2202
|
-
isPressed: state.isOpen,
|
|
2203
|
-
disabled,
|
|
2204
|
-
required,
|
|
2205
|
-
errorMessage,
|
|
2206
|
-
error,
|
|
2207
|
-
description: !state.isOpen && description,
|
|
2208
|
-
triggerRef: ref,
|
|
2209
|
-
width,
|
|
2210
|
-
action: /* @__PURE__ */ jsx54("div", { className: classNames2.container, children: /* @__PURE__ */ jsx54(
|
|
1853
|
+
action: /* @__PURE__ */ jsx49("div", { className: classNames2.container, children: /* @__PURE__ */ jsx49(
|
|
2211
1854
|
_Button,
|
|
2212
1855
|
{
|
|
2213
|
-
|
|
2214
|
-
disabled
|
|
2215
|
-
|
|
1856
|
+
size: "small",
|
|
1857
|
+
disabled,
|
|
1858
|
+
className: classNames2.button,
|
|
1859
|
+
children: /* @__PURE__ */ jsx49(
|
|
2216
1860
|
"svg",
|
|
2217
1861
|
{
|
|
2218
|
-
|
|
2219
|
-
height: "24",
|
|
1862
|
+
"data-testid": "action",
|
|
2220
1863
|
viewBox: "0 0 24 24",
|
|
1864
|
+
width: 24,
|
|
1865
|
+
height: 24,
|
|
2221
1866
|
fill: "currentColor",
|
|
2222
|
-
children: /* @__PURE__ */
|
|
1867
|
+
children: /* @__PURE__ */ jsx49("path", { d: "M20.0906 19.2V6.6C20.0906 5.61 19.2806 4.8 18.2906 4.8H17.3906V3H15.5906V4.8H8.39062V3H6.59062V4.8H5.69063C4.69163 4.8 3.89962 5.61 3.89962 6.6L3.89062 19.2C3.89062 20.19 4.69163 21 5.69063 21H18.2906C19.2806 21 20.0906 20.19 20.0906 19.2ZM9.29062 11.1001H7.49061V12.9001H9.29062V11.1001ZM5.69062 8.40009H18.2906V6.60008H5.69062V8.40009ZM18.2906 10.2V19.2H5.69062V10.2H18.2906ZM14.6906 12.9001H16.4906V11.1001H14.6906V12.9001ZM12.8906 12.9001H11.0906V11.1001H12.8906V12.9001Z" })
|
|
2223
1868
|
}
|
|
2224
1869
|
)
|
|
2225
1870
|
}
|
|
2226
1871
|
) })
|
|
2227
1872
|
}
|
|
2228
|
-
)
|
|
2229
|
-
|
|
1873
|
+
),
|
|
1874
|
+
/* @__PURE__ */ jsx49(_Popover, { children: /* @__PURE__ */ jsx49(_Calendar, { disabled }) })
|
|
2230
1875
|
] });
|
|
2231
1876
|
};
|
|
2232
1877
|
|
|
2233
1878
|
// src/Inset/Inset.tsx
|
|
2234
1879
|
import {
|
|
2235
|
-
cn as
|
|
1880
|
+
cn as cn29,
|
|
2236
1881
|
paddingSpace as paddingSpace2,
|
|
2237
1882
|
paddingSpaceX as paddingSpaceX2,
|
|
2238
1883
|
paddingSpaceY as paddingSpaceY2
|
|
2239
1884
|
} from "@marigold/system";
|
|
2240
|
-
import { jsx as
|
|
2241
|
-
var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */
|
|
1885
|
+
import { jsx as jsx50 } from "react/jsx-runtime";
|
|
1886
|
+
var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ jsx50(
|
|
2242
1887
|
"div",
|
|
2243
1888
|
{
|
|
2244
|
-
className:
|
|
1889
|
+
className: cn29(
|
|
2245
1890
|
space && paddingSpace2[space],
|
|
2246
1891
|
!space && spaceX && paddingSpaceX2[spaceX],
|
|
2247
1892
|
!space && spaceY && paddingSpaceY2[spaceY]
|
|
@@ -2251,23 +1896,23 @@ var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ jsx55(
|
|
|
2251
1896
|
);
|
|
2252
1897
|
|
|
2253
1898
|
// src/Link/Link.tsx
|
|
2254
|
-
import { forwardRef as
|
|
1899
|
+
import { forwardRef as forwardRef13 } from "react";
|
|
2255
1900
|
import { Link } from "react-aria-components";
|
|
2256
|
-
import { useClassNames as
|
|
2257
|
-
import { jsx as
|
|
2258
|
-
var _Link =
|
|
1901
|
+
import { useClassNames as useClassNames28 } from "@marigold/system";
|
|
1902
|
+
import { jsx as jsx51 } from "react/jsx-runtime";
|
|
1903
|
+
var _Link = forwardRef13(
|
|
2259
1904
|
({ variant, size, disabled, children, ...props }, ref) => {
|
|
2260
|
-
const classNames2 =
|
|
1905
|
+
const classNames2 = useClassNames28({
|
|
2261
1906
|
component: "Link",
|
|
2262
1907
|
variant,
|
|
2263
1908
|
size
|
|
2264
1909
|
});
|
|
2265
|
-
return /* @__PURE__ */
|
|
1910
|
+
return /* @__PURE__ */ jsx51(Link, { ...props, ref, className: classNames2, isDisabled: disabled, children });
|
|
2266
1911
|
}
|
|
2267
1912
|
);
|
|
2268
1913
|
|
|
2269
1914
|
// src/List/List.tsx
|
|
2270
|
-
import { useClassNames as
|
|
1915
|
+
import { useClassNames as useClassNames29 } from "@marigold/system";
|
|
2271
1916
|
|
|
2272
1917
|
// src/List/Context.ts
|
|
2273
1918
|
import { createContext as createContext3, useContext as useContext8 } from "react";
|
|
@@ -2275,14 +1920,14 @@ var ListContext = createContext3({});
|
|
|
2275
1920
|
var useListContext = () => useContext8(ListContext);
|
|
2276
1921
|
|
|
2277
1922
|
// src/List/ListItem.tsx
|
|
2278
|
-
import { jsx as
|
|
1923
|
+
import { jsx as jsx52 } from "react/jsx-runtime";
|
|
2279
1924
|
var ListItem = ({ children, ...props }) => {
|
|
2280
1925
|
const { classNames: classNames2 } = useListContext();
|
|
2281
|
-
return /* @__PURE__ */
|
|
1926
|
+
return /* @__PURE__ */ jsx52("li", { ...props, className: classNames2, children });
|
|
2282
1927
|
};
|
|
2283
1928
|
|
|
2284
1929
|
// src/List/List.tsx
|
|
2285
|
-
import { jsx as
|
|
1930
|
+
import { jsx as jsx53 } from "react/jsx-runtime";
|
|
2286
1931
|
var List = ({
|
|
2287
1932
|
as = "ul",
|
|
2288
1933
|
children,
|
|
@@ -2291,50 +1936,51 @@ var List = ({
|
|
|
2291
1936
|
...props
|
|
2292
1937
|
}) => {
|
|
2293
1938
|
const Component = as;
|
|
2294
|
-
const classNames2 =
|
|
2295
|
-
return /* @__PURE__ */
|
|
1939
|
+
const classNames2 = useClassNames29({ component: "List", variant, size });
|
|
1940
|
+
return /* @__PURE__ */ jsx53(Component, { ...props, className: classNames2[as], children: /* @__PURE__ */ jsx53(ListContext.Provider, { value: { classNames: classNames2.item }, children }) });
|
|
2296
1941
|
};
|
|
2297
1942
|
List.Item = ListItem;
|
|
2298
1943
|
|
|
2299
1944
|
// src/Menu/Menu.tsx
|
|
2300
1945
|
import { Menu, MenuTrigger } from "react-aria-components";
|
|
2301
|
-
import { useClassNames as
|
|
1946
|
+
import { useClassNames as useClassNames32 } from "@marigold/system";
|
|
2302
1947
|
|
|
2303
1948
|
// src/Menu/MenuItem.tsx
|
|
2304
1949
|
import { MenuItem } from "react-aria-components";
|
|
2305
|
-
import { useClassNames as
|
|
2306
|
-
import { jsx as
|
|
1950
|
+
import { useClassNames as useClassNames30 } from "@marigold/system";
|
|
1951
|
+
import { jsx as jsx54 } from "react/jsx-runtime";
|
|
2307
1952
|
var _MenuItem = ({ children, ...props }) => {
|
|
2308
|
-
const classNames2 =
|
|
2309
|
-
return /* @__PURE__ */
|
|
1953
|
+
const classNames2 = useClassNames30({ component: "Menu" });
|
|
1954
|
+
return /* @__PURE__ */ jsx54(MenuItem, { ...props, className: classNames2.item, children });
|
|
2310
1955
|
};
|
|
2311
1956
|
|
|
2312
1957
|
// src/Menu/MenuSection.tsx
|
|
2313
1958
|
import { Section as Section2 } from "react-aria-components";
|
|
2314
|
-
import { useClassNames as
|
|
2315
|
-
import { jsx as
|
|
1959
|
+
import { useClassNames as useClassNames31 } from "@marigold/system";
|
|
1960
|
+
import { jsx as jsx55, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
2316
1961
|
var _MenuSection = ({ children, title, ...props }) => {
|
|
2317
|
-
const className =
|
|
2318
|
-
return /* @__PURE__ */
|
|
2319
|
-
/* @__PURE__ */
|
|
1962
|
+
const className = useClassNames31({ component: "Menu" });
|
|
1963
|
+
return /* @__PURE__ */ jsxs20(Section2, { ...props, children: [
|
|
1964
|
+
/* @__PURE__ */ jsx55(_Header, { className: className.section, children: title }),
|
|
2320
1965
|
children
|
|
2321
1966
|
] });
|
|
2322
1967
|
};
|
|
2323
1968
|
|
|
2324
1969
|
// src/Menu/Menu.tsx
|
|
2325
|
-
import { jsx as
|
|
1970
|
+
import { jsx as jsx56, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
2326
1971
|
var _Menu = ({
|
|
2327
1972
|
children,
|
|
2328
1973
|
label,
|
|
2329
1974
|
variant,
|
|
2330
1975
|
size,
|
|
1976
|
+
disabled,
|
|
2331
1977
|
open,
|
|
2332
1978
|
...props
|
|
2333
1979
|
}) => {
|
|
2334
|
-
const classNames2 =
|
|
2335
|
-
return /* @__PURE__ */
|
|
2336
|
-
/* @__PURE__ */
|
|
2337
|
-
/* @__PURE__ */
|
|
1980
|
+
const classNames2 = useClassNames32({ component: "Menu", variant, size });
|
|
1981
|
+
return /* @__PURE__ */ jsxs21(MenuTrigger, { ...props, children: [
|
|
1982
|
+
/* @__PURE__ */ jsx56(_Button, { variant: "menu", disabled, children: label }),
|
|
1983
|
+
/* @__PURE__ */ jsx56(_Popover, { open, children: /* @__PURE__ */ jsx56(Menu, { ...props, className: classNames2.container, children }) })
|
|
2338
1984
|
] });
|
|
2339
1985
|
};
|
|
2340
1986
|
_Menu.Item = _MenuItem;
|
|
@@ -2342,27 +1988,27 @@ _Menu.Section = _MenuSection;
|
|
|
2342
1988
|
|
|
2343
1989
|
// src/Menu/ActionMenu.tsx
|
|
2344
1990
|
import { Menu as Menu2, MenuTrigger as MenuTrigger2 } from "react-aria-components";
|
|
2345
|
-
import { SVG as
|
|
2346
|
-
import { jsx as
|
|
1991
|
+
import { SVG as SVG4, useClassNames as useClassNames33 } from "@marigold/system";
|
|
1992
|
+
import { jsx as jsx57, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
2347
1993
|
var ActionMenu = ({ variant, size, ...props }) => {
|
|
2348
|
-
const classNames2 =
|
|
2349
|
-
return /* @__PURE__ */
|
|
2350
|
-
/* @__PURE__ */
|
|
2351
|
-
/* @__PURE__ */
|
|
1994
|
+
const classNames2 = useClassNames33({ component: "Menu", variant, size });
|
|
1995
|
+
return /* @__PURE__ */ jsxs22(MenuTrigger2, { children: [
|
|
1996
|
+
/* @__PURE__ */ jsx57(_Button, { variant: "menu", size: "small", children: /* @__PURE__ */ jsx57(SVG4, { viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx57("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" }) }) }),
|
|
1997
|
+
/* @__PURE__ */ jsx57(_Popover, { children: /* @__PURE__ */ jsx57(Menu2, { ...props, className: classNames2.container, children: props.children }) })
|
|
2352
1998
|
] });
|
|
2353
1999
|
};
|
|
2354
2000
|
|
|
2355
2001
|
// src/Message/Message.tsx
|
|
2356
|
-
import { cn as
|
|
2357
|
-
import { jsx as
|
|
2002
|
+
import { cn as cn30, useClassNames as useClassNames34 } from "@marigold/system";
|
|
2003
|
+
import { jsx as jsx58, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
2358
2004
|
var icons = {
|
|
2359
|
-
success: () => /* @__PURE__ */
|
|
2005
|
+
success: () => /* @__PURE__ */ jsx58(
|
|
2360
2006
|
"svg",
|
|
2361
2007
|
{
|
|
2362
2008
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2363
2009
|
viewBox: "0 0 24 24",
|
|
2364
2010
|
fill: "currentColor",
|
|
2365
|
-
children: /* @__PURE__ */
|
|
2011
|
+
children: /* @__PURE__ */ jsx58(
|
|
2366
2012
|
"path",
|
|
2367
2013
|
{
|
|
2368
2014
|
fillRule: "evenodd",
|
|
@@ -2372,13 +2018,13 @@ var icons = {
|
|
|
2372
2018
|
)
|
|
2373
2019
|
}
|
|
2374
2020
|
),
|
|
2375
|
-
info: () => /* @__PURE__ */
|
|
2021
|
+
info: () => /* @__PURE__ */ jsx58(
|
|
2376
2022
|
"svg",
|
|
2377
2023
|
{
|
|
2378
2024
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2379
2025
|
viewBox: "0 0 24 24",
|
|
2380
2026
|
fill: "currentColor",
|
|
2381
|
-
children: /* @__PURE__ */
|
|
2027
|
+
children: /* @__PURE__ */ jsx58(
|
|
2382
2028
|
"path",
|
|
2383
2029
|
{
|
|
2384
2030
|
fillRule: "evenodd",
|
|
@@ -2388,13 +2034,13 @@ var icons = {
|
|
|
2388
2034
|
)
|
|
2389
2035
|
}
|
|
2390
2036
|
),
|
|
2391
|
-
warning: () => /* @__PURE__ */
|
|
2037
|
+
warning: () => /* @__PURE__ */ jsx58(
|
|
2392
2038
|
"svg",
|
|
2393
2039
|
{
|
|
2394
2040
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2395
2041
|
viewBox: "0 0 24 24",
|
|
2396
2042
|
fill: "currentColor",
|
|
2397
|
-
children: /* @__PURE__ */
|
|
2043
|
+
children: /* @__PURE__ */ jsx58(
|
|
2398
2044
|
"path",
|
|
2399
2045
|
{
|
|
2400
2046
|
fillRule: "evenodd",
|
|
@@ -2404,13 +2050,13 @@ var icons = {
|
|
|
2404
2050
|
)
|
|
2405
2051
|
}
|
|
2406
2052
|
),
|
|
2407
|
-
error: () => /* @__PURE__ */
|
|
2053
|
+
error: () => /* @__PURE__ */ jsx58(
|
|
2408
2054
|
"svg",
|
|
2409
2055
|
{
|
|
2410
2056
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2411
2057
|
viewBox: "0 0 24 24",
|
|
2412
2058
|
fill: "currentColor",
|
|
2413
|
-
children: /* @__PURE__ */
|
|
2059
|
+
children: /* @__PURE__ */ jsx58(
|
|
2414
2060
|
"path",
|
|
2415
2061
|
{
|
|
2416
2062
|
fillRule: "evenodd",
|
|
@@ -2428,41 +2074,41 @@ var Message = ({
|
|
|
2428
2074
|
children,
|
|
2429
2075
|
...props
|
|
2430
2076
|
}) => {
|
|
2431
|
-
const classNames2 =
|
|
2077
|
+
const classNames2 = useClassNames34({ component: "Message", variant, size });
|
|
2432
2078
|
const Icon3 = icons[variant];
|
|
2433
|
-
return /* @__PURE__ */
|
|
2079
|
+
return /* @__PURE__ */ jsxs23(
|
|
2434
2080
|
"div",
|
|
2435
2081
|
{
|
|
2436
|
-
className:
|
|
2082
|
+
className: cn30(
|
|
2437
2083
|
"grid auto-rows-min grid-cols-[min-content_auto] gap-1",
|
|
2438
2084
|
classNames2.container
|
|
2439
2085
|
),
|
|
2440
2086
|
...props,
|
|
2441
2087
|
children: [
|
|
2442
|
-
/* @__PURE__ */
|
|
2443
|
-
/* @__PURE__ */
|
|
2088
|
+
/* @__PURE__ */ jsx58("div", { className: cn30("col-span-1 h-5 w-5 self-center", classNames2.icon), children: /* @__PURE__ */ jsx58(Icon3, {}) }),
|
|
2089
|
+
/* @__PURE__ */ jsx58(
|
|
2444
2090
|
"div",
|
|
2445
2091
|
{
|
|
2446
|
-
className:
|
|
2092
|
+
className: cn30("col-start-2 row-start-1 self-center", classNames2.title),
|
|
2447
2093
|
children: messageTitle
|
|
2448
2094
|
}
|
|
2449
2095
|
),
|
|
2450
|
-
/* @__PURE__ */
|
|
2096
|
+
/* @__PURE__ */ jsx58("div", { className: cn30("col-start-2", classNames2.content), children })
|
|
2451
2097
|
]
|
|
2452
2098
|
}
|
|
2453
2099
|
);
|
|
2454
2100
|
};
|
|
2455
2101
|
|
|
2456
2102
|
// src/NumberField/NumberField.tsx
|
|
2457
|
-
import { forwardRef as
|
|
2458
|
-
import { Group, NumberField } from "react-aria-components";
|
|
2459
|
-
import { cn as
|
|
2103
|
+
import { forwardRef as forwardRef14 } from "react";
|
|
2104
|
+
import { Group as Group2, NumberField } from "react-aria-components";
|
|
2105
|
+
import { cn as cn32, useClassNames as useClassNames35 } from "@marigold/system";
|
|
2460
2106
|
|
|
2461
2107
|
// src/NumberField/StepButton.tsx
|
|
2462
2108
|
import { Button as Button3 } from "react-aria-components";
|
|
2463
|
-
import { cn as
|
|
2464
|
-
import { jsx as
|
|
2465
|
-
var Plus = () => /* @__PURE__ */
|
|
2109
|
+
import { cn as cn31 } from "@marigold/system";
|
|
2110
|
+
import { jsx as jsx59 } from "react/jsx-runtime";
|
|
2111
|
+
var Plus = () => /* @__PURE__ */ jsx59("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx59(
|
|
2466
2112
|
"path",
|
|
2467
2113
|
{
|
|
2468
2114
|
fillRule: "evenodd",
|
|
@@ -2470,7 +2116,7 @@ var Plus = () => /* @__PURE__ */ jsx64("svg", { width: 16, height: 16, viewBox:
|
|
|
2470
2116
|
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"
|
|
2471
2117
|
}
|
|
2472
2118
|
) });
|
|
2473
|
-
var Minus = () => /* @__PURE__ */
|
|
2119
|
+
var Minus = () => /* @__PURE__ */ jsx59("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx59(
|
|
2474
2120
|
"path",
|
|
2475
2121
|
{
|
|
2476
2122
|
fillRule: "evenodd",
|
|
@@ -2480,10 +2126,10 @@ var Minus = () => /* @__PURE__ */ jsx64("svg", { width: 16, height: 16, viewBox:
|
|
|
2480
2126
|
) });
|
|
2481
2127
|
var _StepButton = ({ direction, className, ...props }) => {
|
|
2482
2128
|
const Icon3 = direction === "up" ? Plus : Minus;
|
|
2483
|
-
return /* @__PURE__ */
|
|
2129
|
+
return /* @__PURE__ */ jsx59(
|
|
2484
2130
|
Button3,
|
|
2485
2131
|
{
|
|
2486
|
-
className:
|
|
2132
|
+
className: cn31(
|
|
2487
2133
|
[
|
|
2488
2134
|
"flex items-center justify-center",
|
|
2489
2135
|
"cursor-pointer data-[disabled]:cursor-not-allowed"
|
|
@@ -2491,14 +2137,14 @@ var _StepButton = ({ direction, className, ...props }) => {
|
|
|
2491
2137
|
className
|
|
2492
2138
|
),
|
|
2493
2139
|
...props,
|
|
2494
|
-
children: /* @__PURE__ */
|
|
2140
|
+
children: /* @__PURE__ */ jsx59(Icon3, {})
|
|
2495
2141
|
}
|
|
2496
2142
|
);
|
|
2497
2143
|
};
|
|
2498
2144
|
|
|
2499
2145
|
// src/NumberField/NumberField.tsx
|
|
2500
|
-
import { jsx as
|
|
2501
|
-
var _NumberField =
|
|
2146
|
+
import { jsx as jsx60, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
2147
|
+
var _NumberField = forwardRef14(
|
|
2502
2148
|
({
|
|
2503
2149
|
variant,
|
|
2504
2150
|
size,
|
|
@@ -2509,7 +2155,7 @@ var _NumberField = forwardRef15(
|
|
|
2509
2155
|
hideStepper,
|
|
2510
2156
|
...rest
|
|
2511
2157
|
}, ref) => {
|
|
2512
|
-
const classNames2 =
|
|
2158
|
+
const classNames2 = useClassNames35({
|
|
2513
2159
|
component: "NumberField",
|
|
2514
2160
|
size,
|
|
2515
2161
|
variant
|
|
@@ -2522,8 +2168,8 @@ var _NumberField = forwardRef15(
|
|
|
2522
2168
|
...rest
|
|
2523
2169
|
};
|
|
2524
2170
|
const showStepper = !hideStepper;
|
|
2525
|
-
return /* @__PURE__ */
|
|
2526
|
-
showStepper && /* @__PURE__ */
|
|
2171
|
+
return /* @__PURE__ */ jsx60(FieldBase, { as: NumberField, ...props, children: /* @__PURE__ */ jsxs24(Group2, { className: cn32("flex items-stretch", classNames2.group), children: [
|
|
2172
|
+
showStepper && /* @__PURE__ */ jsx60(
|
|
2527
2173
|
_StepButton,
|
|
2528
2174
|
{
|
|
2529
2175
|
className: classNames2.stepper,
|
|
@@ -2531,7 +2177,7 @@ var _NumberField = forwardRef15(
|
|
|
2531
2177
|
slot: "decrement"
|
|
2532
2178
|
}
|
|
2533
2179
|
),
|
|
2534
|
-
/* @__PURE__ */
|
|
2180
|
+
/* @__PURE__ */ jsx60("div", { className: "flex-1", children: /* @__PURE__ */ jsx60(
|
|
2535
2181
|
_Input,
|
|
2536
2182
|
{
|
|
2537
2183
|
ref,
|
|
@@ -2540,7 +2186,7 @@ var _NumberField = forwardRef15(
|
|
|
2540
2186
|
className: classNames2.input
|
|
2541
2187
|
}
|
|
2542
2188
|
) }),
|
|
2543
|
-
showStepper && /* @__PURE__ */
|
|
2189
|
+
showStepper && /* @__PURE__ */ jsx60(
|
|
2544
2190
|
_StepButton,
|
|
2545
2191
|
{
|
|
2546
2192
|
className: classNames2.stepper,
|
|
@@ -2553,31 +2199,31 @@ var _NumberField = forwardRef15(
|
|
|
2553
2199
|
);
|
|
2554
2200
|
|
|
2555
2201
|
// src/Provider/index.ts
|
|
2556
|
-
import { useTheme as
|
|
2202
|
+
import { useTheme as useTheme5, ThemeProvider as ThemeProvider2 } from "@marigold/system";
|
|
2557
2203
|
|
|
2558
2204
|
// src/Provider/MarigoldProvider.tsx
|
|
2559
2205
|
import { OverlayProvider } from "@react-aria/overlays";
|
|
2560
2206
|
import {
|
|
2561
2207
|
ThemeProvider,
|
|
2562
2208
|
defaultTheme,
|
|
2563
|
-
useTheme as
|
|
2209
|
+
useTheme as useTheme4
|
|
2564
2210
|
} from "@marigold/system";
|
|
2565
|
-
import { jsx as
|
|
2211
|
+
import { jsx as jsx61 } from "react/jsx-runtime";
|
|
2566
2212
|
function MarigoldProvider({
|
|
2567
2213
|
children,
|
|
2568
2214
|
theme
|
|
2569
2215
|
}) {
|
|
2570
|
-
const outerTheme =
|
|
2216
|
+
const outerTheme = useTheme4();
|
|
2571
2217
|
const isTopLevel = outerTheme === defaultTheme;
|
|
2572
|
-
return /* @__PURE__ */
|
|
2218
|
+
return /* @__PURE__ */ jsx61(ThemeProvider, { theme, children: isTopLevel ? /* @__PURE__ */ jsx61(OverlayProvider, { children }) : children });
|
|
2573
2219
|
}
|
|
2574
2220
|
|
|
2575
2221
|
// src/Radio/Radio.tsx
|
|
2576
2222
|
import {
|
|
2577
|
-
forwardRef as
|
|
2223
|
+
forwardRef as forwardRef15
|
|
2578
2224
|
} from "react";
|
|
2579
2225
|
import { Radio } from "react-aria-components";
|
|
2580
|
-
import { cn as
|
|
2226
|
+
import { cn as cn34, useClassNames as useClassNames37 } from "@marigold/system";
|
|
2581
2227
|
|
|
2582
2228
|
// src/Radio/Context.ts
|
|
2583
2229
|
import { createContext as createContext4, useContext as useContext9 } from "react";
|
|
@@ -2588,8 +2234,8 @@ var useRadioGroupContext = () => useContext9(RadioGroupContext);
|
|
|
2588
2234
|
|
|
2589
2235
|
// src/Radio/RadioGroup.tsx
|
|
2590
2236
|
import { RadioGroup } from "react-aria-components";
|
|
2591
|
-
import { cn as
|
|
2592
|
-
import { jsx as
|
|
2237
|
+
import { cn as cn33, useClassNames as useClassNames36 } from "@marigold/system";
|
|
2238
|
+
import { jsx as jsx62 } from "react/jsx-runtime";
|
|
2593
2239
|
var _RadioGroup = ({
|
|
2594
2240
|
variant,
|
|
2595
2241
|
size,
|
|
@@ -2605,7 +2251,7 @@ var _RadioGroup = ({
|
|
|
2605
2251
|
width,
|
|
2606
2252
|
...rest
|
|
2607
2253
|
}) => {
|
|
2608
|
-
const classNames2 =
|
|
2254
|
+
const classNames2 = useClassNames36({ component: "Radio", variant, size });
|
|
2609
2255
|
const props = {
|
|
2610
2256
|
isDisabled: disabled,
|
|
2611
2257
|
isReadOnly: readOnly,
|
|
@@ -2613,7 +2259,7 @@ var _RadioGroup = ({
|
|
|
2613
2259
|
isInvalid: error,
|
|
2614
2260
|
...rest
|
|
2615
2261
|
};
|
|
2616
|
-
return /* @__PURE__ */
|
|
2262
|
+
return /* @__PURE__ */ jsx62(
|
|
2617
2263
|
FieldBase,
|
|
2618
2264
|
{
|
|
2619
2265
|
as: RadioGroup,
|
|
@@ -2624,18 +2270,18 @@ var _RadioGroup = ({
|
|
|
2624
2270
|
variant,
|
|
2625
2271
|
size,
|
|
2626
2272
|
...props,
|
|
2627
|
-
children: /* @__PURE__ */
|
|
2273
|
+
children: /* @__PURE__ */ jsx62(
|
|
2628
2274
|
"div",
|
|
2629
2275
|
{
|
|
2630
2276
|
role: "presentation",
|
|
2631
2277
|
"data-testid": "group",
|
|
2632
2278
|
"data-orientation": orientation,
|
|
2633
|
-
className:
|
|
2279
|
+
className: cn33(
|
|
2634
2280
|
classNames2.group,
|
|
2635
2281
|
"flex items-start",
|
|
2636
2282
|
orientation === "vertical" ? "flex-col gap-[0.5ch]" : "flex-row gap-[1.5ch]"
|
|
2637
2283
|
),
|
|
2638
|
-
children: /* @__PURE__ */
|
|
2284
|
+
children: /* @__PURE__ */ jsx62(RadioGroupContext.Provider, { value: { width, variant, size }, children })
|
|
2639
2285
|
}
|
|
2640
2286
|
)
|
|
2641
2287
|
}
|
|
@@ -2643,33 +2289,33 @@ var _RadioGroup = ({
|
|
|
2643
2289
|
};
|
|
2644
2290
|
|
|
2645
2291
|
// src/Radio/Radio.tsx
|
|
2646
|
-
import { Fragment as
|
|
2647
|
-
var Dot = () => /* @__PURE__ */
|
|
2648
|
-
var Icon2 = ({ checked, className, ...props }) => /* @__PURE__ */
|
|
2292
|
+
import { Fragment as Fragment7, jsx as jsx63, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
2293
|
+
var Dot = () => /* @__PURE__ */ jsx63("svg", { viewBox: "0 0 6 6", children: /* @__PURE__ */ jsx63("circle", { fill: "currentColor", cx: "3", cy: "3", r: "3" }) });
|
|
2294
|
+
var Icon2 = ({ checked, className, ...props }) => /* @__PURE__ */ jsx63(
|
|
2649
2295
|
"div",
|
|
2650
2296
|
{
|
|
2651
|
-
className:
|
|
2297
|
+
className: cn34(
|
|
2652
2298
|
"bg-secondary-50 flex h-4 w-4 items-center justify-center rounded-[50%] border p-1",
|
|
2653
2299
|
className
|
|
2654
2300
|
),
|
|
2655
2301
|
"aria-hidden": "true",
|
|
2656
2302
|
...props,
|
|
2657
|
-
children: checked ? /* @__PURE__ */
|
|
2303
|
+
children: checked ? /* @__PURE__ */ jsx63(Dot, {}) : null
|
|
2658
2304
|
}
|
|
2659
2305
|
);
|
|
2660
|
-
var _Radio =
|
|
2306
|
+
var _Radio = forwardRef15(
|
|
2661
2307
|
({ value, disabled, width, children, ...props }, ref) => {
|
|
2662
2308
|
const { variant, size, width: groupWidth } = useRadioGroupContext();
|
|
2663
|
-
const classNames2 =
|
|
2309
|
+
const classNames2 = useClassNames37({
|
|
2664
2310
|
component: "Radio",
|
|
2665
2311
|
variant: variant || props.variant,
|
|
2666
2312
|
size: size || props.size
|
|
2667
2313
|
});
|
|
2668
|
-
return /* @__PURE__ */
|
|
2314
|
+
return /* @__PURE__ */ jsx63(
|
|
2669
2315
|
Radio,
|
|
2670
2316
|
{
|
|
2671
2317
|
ref,
|
|
2672
|
-
className:
|
|
2318
|
+
className: cn34(
|
|
2673
2319
|
"group/radio",
|
|
2674
2320
|
"relative flex items-center gap-[1ch]",
|
|
2675
2321
|
width || groupWidth || "w-full",
|
|
@@ -2678,18 +2324,18 @@ var _Radio = forwardRef16(
|
|
|
2678
2324
|
value,
|
|
2679
2325
|
isDisabled: disabled,
|
|
2680
2326
|
...props,
|
|
2681
|
-
children: ({ isSelected }) => /* @__PURE__ */
|
|
2682
|
-
/* @__PURE__ */
|
|
2327
|
+
children: ({ isSelected }) => /* @__PURE__ */ jsxs25(Fragment7, { children: [
|
|
2328
|
+
/* @__PURE__ */ jsx63(
|
|
2683
2329
|
Icon2,
|
|
2684
2330
|
{
|
|
2685
2331
|
checked: isSelected,
|
|
2686
|
-
className:
|
|
2332
|
+
className: cn34(
|
|
2687
2333
|
disabled ? "cursor-not-allowed" : "cursor-pointer",
|
|
2688
2334
|
classNames2.radio
|
|
2689
2335
|
)
|
|
2690
2336
|
}
|
|
2691
2337
|
),
|
|
2692
|
-
/* @__PURE__ */
|
|
2338
|
+
/* @__PURE__ */ jsx63("div", { className: classNames2.label, children })
|
|
2693
2339
|
] })
|
|
2694
2340
|
}
|
|
2695
2341
|
);
|
|
@@ -2698,10 +2344,10 @@ var _Radio = forwardRef16(
|
|
|
2698
2344
|
_Radio.Group = _RadioGroup;
|
|
2699
2345
|
|
|
2700
2346
|
// src/SearchField/SearchField.tsx
|
|
2701
|
-
import { forwardRef as
|
|
2347
|
+
import { forwardRef as forwardRef16 } from "react";
|
|
2702
2348
|
import { SearchField } from "react-aria-components";
|
|
2703
|
-
import { jsx as
|
|
2704
|
-
var SearchIcon2 = (props) => /* @__PURE__ */
|
|
2349
|
+
import { jsx as jsx64 } from "react/jsx-runtime";
|
|
2350
|
+
var SearchIcon2 = (props) => /* @__PURE__ */ jsx64(
|
|
2705
2351
|
"svg",
|
|
2706
2352
|
{
|
|
2707
2353
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2710,10 +2356,10 @@ var SearchIcon2 = (props) => /* @__PURE__ */ jsx69(
|
|
|
2710
2356
|
width: 24,
|
|
2711
2357
|
height: 24,
|
|
2712
2358
|
...props,
|
|
2713
|
-
children: /* @__PURE__ */
|
|
2359
|
+
children: /* @__PURE__ */ jsx64("path", { d: "M16.1865 14.5142H15.3057L14.9936 14.2131C16.0862 12.9421 16.744 11.292 16.744 9.497C16.744 5.49443 13.4996 2.25 9.497 2.25C5.49443 2.25 2.25 5.49443 2.25 9.497C2.25 13.4996 5.49443 16.744 9.497 16.744C11.292 16.744 12.9421 16.0862 14.2131 14.9936L14.5142 15.3057V16.1865L20.0888 21.75L21.75 20.0888L16.1865 14.5142ZM9.49701 14.5142C6.72085 14.5142 4.47986 12.2732 4.47986 9.49701C4.47986 6.72085 6.72085 4.47986 9.49701 4.47986C12.2732 4.47986 14.5142 6.72085 14.5142 9.49701C14.5142 12.2732 12.2732 14.5142 9.49701 14.5142Z" })
|
|
2714
2360
|
}
|
|
2715
2361
|
);
|
|
2716
|
-
var _SearchField =
|
|
2362
|
+
var _SearchField = forwardRef16(
|
|
2717
2363
|
({ disabled, required, readOnly, error, action, ...rest }, ref) => {
|
|
2718
2364
|
const props = {
|
|
2719
2365
|
...rest,
|
|
@@ -2722,20 +2368,20 @@ var _SearchField = forwardRef17(
|
|
|
2722
2368
|
isReadOnly: readOnly,
|
|
2723
2369
|
isInvalid: error
|
|
2724
2370
|
};
|
|
2725
|
-
return /* @__PURE__ */
|
|
2371
|
+
return /* @__PURE__ */ jsx64(FieldBase, { as: SearchField, ...props, children: /* @__PURE__ */ jsx64(_Input, { ref, icon: /* @__PURE__ */ jsx64(SearchIcon2, {}) }) });
|
|
2726
2372
|
}
|
|
2727
2373
|
);
|
|
2728
2374
|
|
|
2729
2375
|
// src/Select/Select.tsx
|
|
2730
|
-
import { forwardRef as
|
|
2376
|
+
import { forwardRef as forwardRef17 } from "react";
|
|
2731
2377
|
import {
|
|
2732
2378
|
Button as Button4,
|
|
2733
2379
|
Select,
|
|
2734
2380
|
SelectValue
|
|
2735
2381
|
} from "react-aria-components";
|
|
2736
|
-
import { cn as
|
|
2737
|
-
import { jsx as
|
|
2738
|
-
var _Select =
|
|
2382
|
+
import { cn as cn35, useClassNames as useClassNames38 } from "@marigold/system";
|
|
2383
|
+
import { jsx as jsx65, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
2384
|
+
var _Select = forwardRef17(
|
|
2739
2385
|
({
|
|
2740
2386
|
width,
|
|
2741
2387
|
disabled,
|
|
@@ -2756,22 +2402,22 @@ var _Select = forwardRef18(
|
|
|
2756
2402
|
onSelectionChange: onChange,
|
|
2757
2403
|
...rest
|
|
2758
2404
|
};
|
|
2759
|
-
const classNames2 =
|
|
2760
|
-
return /* @__PURE__ */
|
|
2761
|
-
/* @__PURE__ */
|
|
2405
|
+
const classNames2 = useClassNames38({ component: "Select", variant, size });
|
|
2406
|
+
return /* @__PURE__ */ jsxs26(FieldBase, { isOpen: true, as: Select, ref, ...props, children: [
|
|
2407
|
+
/* @__PURE__ */ jsxs26(
|
|
2762
2408
|
Button4,
|
|
2763
2409
|
{
|
|
2764
|
-
className:
|
|
2410
|
+
className: cn35(
|
|
2765
2411
|
"flex w-full items-center justify-between gap-1 overflow-hidden",
|
|
2766
2412
|
classNames2.select
|
|
2767
2413
|
),
|
|
2768
2414
|
children: [
|
|
2769
|
-
/* @__PURE__ */
|
|
2770
|
-
/* @__PURE__ */
|
|
2415
|
+
/* @__PURE__ */ jsx65(SelectValue, {}),
|
|
2416
|
+
/* @__PURE__ */ jsx65(ChevronDown, { className: "h-4 w-4" })
|
|
2771
2417
|
]
|
|
2772
2418
|
}
|
|
2773
2419
|
),
|
|
2774
|
-
/* @__PURE__ */
|
|
2420
|
+
/* @__PURE__ */ jsx65(_Popover, { children: /* @__PURE__ */ jsx65(_ListBox, { items, children: props.children }) })
|
|
2775
2421
|
] });
|
|
2776
2422
|
}
|
|
2777
2423
|
);
|
|
@@ -2779,7 +2425,7 @@ _Select.Option = _ListBox.Item;
|
|
|
2779
2425
|
_Select.Section = _ListBox.Section;
|
|
2780
2426
|
|
|
2781
2427
|
// src/Slider/Slider.tsx
|
|
2782
|
-
import { forwardRef as
|
|
2428
|
+
import { forwardRef as forwardRef18 } from "react";
|
|
2783
2429
|
import {
|
|
2784
2430
|
Slider,
|
|
2785
2431
|
SliderOutput,
|
|
@@ -2787,12 +2433,12 @@ import {
|
|
|
2787
2433
|
SliderTrack
|
|
2788
2434
|
} from "react-aria-components";
|
|
2789
2435
|
import {
|
|
2790
|
-
cn as
|
|
2791
|
-
width as
|
|
2792
|
-
useClassNames as
|
|
2436
|
+
cn as cn36,
|
|
2437
|
+
width as twWidth2,
|
|
2438
|
+
useClassNames as useClassNames39
|
|
2793
2439
|
} from "@marigold/system";
|
|
2794
|
-
import { jsx as
|
|
2795
|
-
var _Slider =
|
|
2440
|
+
import { jsx as jsx66, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
2441
|
+
var _Slider = forwardRef18(
|
|
2796
2442
|
({
|
|
2797
2443
|
thumbLabels,
|
|
2798
2444
|
variant,
|
|
@@ -2801,7 +2447,7 @@ var _Slider = forwardRef19(
|
|
|
2801
2447
|
disabled,
|
|
2802
2448
|
...rest
|
|
2803
2449
|
}, ref) => {
|
|
2804
|
-
const classNames2 =
|
|
2450
|
+
const classNames2 = useClassNames39({
|
|
2805
2451
|
component: "Slider",
|
|
2806
2452
|
variant,
|
|
2807
2453
|
size
|
|
@@ -2810,27 +2456,27 @@ var _Slider = forwardRef19(
|
|
|
2810
2456
|
isDisabled: disabled,
|
|
2811
2457
|
...rest
|
|
2812
2458
|
};
|
|
2813
|
-
return /* @__PURE__ */
|
|
2459
|
+
return /* @__PURE__ */ jsxs27(
|
|
2814
2460
|
Slider,
|
|
2815
2461
|
{
|
|
2816
|
-
className:
|
|
2462
|
+
className: cn36(
|
|
2817
2463
|
"grid grid-cols-[auto_1fr] gap-y-1",
|
|
2818
2464
|
classNames2.container,
|
|
2819
|
-
|
|
2465
|
+
twWidth2[width]
|
|
2820
2466
|
),
|
|
2821
2467
|
ref,
|
|
2822
2468
|
...props,
|
|
2823
2469
|
children: [
|
|
2824
|
-
/* @__PURE__ */
|
|
2825
|
-
/* @__PURE__ */
|
|
2826
|
-
/* @__PURE__ */
|
|
2470
|
+
/* @__PURE__ */ jsx66(_Label, { children: props.children }),
|
|
2471
|
+
/* @__PURE__ */ jsx66(SliderOutput, { className: cn36("flex justify-end", classNames2.output), children: ({ state }) => state.values.map((_, i) => state.getThumbValueLabel(i)).join(" \u2013 ") }),
|
|
2472
|
+
/* @__PURE__ */ jsx66(
|
|
2827
2473
|
SliderTrack,
|
|
2828
2474
|
{
|
|
2829
|
-
className:
|
|
2830
|
-
children: ({ state }) => state.values.map((_, i) => /* @__PURE__ */
|
|
2475
|
+
className: cn36("relative col-span-2 h-2 w-full", classNames2.track),
|
|
2476
|
+
children: ({ state }) => state.values.map((_, i) => /* @__PURE__ */ jsx66(
|
|
2831
2477
|
SliderThumb,
|
|
2832
2478
|
{
|
|
2833
|
-
className:
|
|
2479
|
+
className: cn36("top-1/2 cursor-pointer", classNames2.thumb),
|
|
2834
2480
|
index: i,
|
|
2835
2481
|
"aria-label": thumbLabels == null ? void 0 : thumbLabels[i]
|
|
2836
2482
|
},
|
|
@@ -2845,16 +2491,16 @@ var _Slider = forwardRef19(
|
|
|
2845
2491
|
);
|
|
2846
2492
|
|
|
2847
2493
|
// src/Split/Split.tsx
|
|
2848
|
-
import { jsx as
|
|
2849
|
-
var Split = (props) => /* @__PURE__ */
|
|
2494
|
+
import { jsx as jsx67 } from "react/jsx-runtime";
|
|
2495
|
+
var Split = (props) => /* @__PURE__ */ jsx67("div", { ...props, role: "separator", className: "grow" });
|
|
2850
2496
|
|
|
2851
2497
|
// src/Stack/Stack.tsx
|
|
2852
2498
|
import {
|
|
2853
2499
|
alignment as alignment3,
|
|
2854
|
-
cn as
|
|
2500
|
+
cn as cn37,
|
|
2855
2501
|
gapSpace as gapSpace6
|
|
2856
2502
|
} from "@marigold/system";
|
|
2857
|
-
import { jsx as
|
|
2503
|
+
import { jsx as jsx68 } from "react/jsx-runtime";
|
|
2858
2504
|
var Stack = ({
|
|
2859
2505
|
children,
|
|
2860
2506
|
space = 0,
|
|
@@ -2865,10 +2511,10 @@ var Stack = ({
|
|
|
2865
2511
|
...props
|
|
2866
2512
|
}) => {
|
|
2867
2513
|
var _a, _b, _c, _d;
|
|
2868
|
-
return /* @__PURE__ */
|
|
2514
|
+
return /* @__PURE__ */ jsx68(
|
|
2869
2515
|
"div",
|
|
2870
2516
|
{
|
|
2871
|
-
className:
|
|
2517
|
+
className: cn37(
|
|
2872
2518
|
"flex flex-col",
|
|
2873
2519
|
gapSpace6[space],
|
|
2874
2520
|
alignX && ((_b = (_a = alignment3) == null ? void 0 : _a.vertical) == null ? void 0 : _b.alignmentX[alignX]),
|
|
@@ -2882,15 +2528,15 @@ var Stack = ({
|
|
|
2882
2528
|
};
|
|
2883
2529
|
|
|
2884
2530
|
// src/Switch/Switch.tsx
|
|
2885
|
-
import { forwardRef as
|
|
2531
|
+
import { forwardRef as forwardRef19 } from "react";
|
|
2886
2532
|
import { Switch } from "react-aria-components";
|
|
2887
2533
|
import {
|
|
2888
|
-
cn as
|
|
2889
|
-
width as
|
|
2890
|
-
useClassNames as
|
|
2534
|
+
cn as cn38,
|
|
2535
|
+
width as twWidth3,
|
|
2536
|
+
useClassNames as useClassNames40
|
|
2891
2537
|
} from "@marigold/system";
|
|
2892
|
-
import { jsx as
|
|
2893
|
-
var _Switch =
|
|
2538
|
+
import { jsx as jsx69, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
2539
|
+
var _Switch = forwardRef19(
|
|
2894
2540
|
({
|
|
2895
2541
|
variant,
|
|
2896
2542
|
size,
|
|
@@ -2901,37 +2547,37 @@ var _Switch = forwardRef20(
|
|
|
2901
2547
|
readOnly,
|
|
2902
2548
|
...rest
|
|
2903
2549
|
}, ref) => {
|
|
2904
|
-
const classNames2 =
|
|
2550
|
+
const classNames2 = useClassNames40({ component: "Switch", size, variant });
|
|
2905
2551
|
const props = {
|
|
2906
2552
|
isDisabled: disabled,
|
|
2907
2553
|
isReadOnly: readOnly,
|
|
2908
2554
|
isSelected: selected,
|
|
2909
2555
|
...rest
|
|
2910
2556
|
};
|
|
2911
|
-
return /* @__PURE__ */
|
|
2557
|
+
return /* @__PURE__ */ jsxs28(
|
|
2912
2558
|
Switch,
|
|
2913
2559
|
{
|
|
2914
2560
|
...props,
|
|
2915
2561
|
ref,
|
|
2916
|
-
className:
|
|
2917
|
-
|
|
2562
|
+
className: cn38(
|
|
2563
|
+
twWidth3[width],
|
|
2918
2564
|
"group/switch",
|
|
2919
2565
|
"flex items-center justify-between gap-[1ch]",
|
|
2920
2566
|
classNames2.container
|
|
2921
2567
|
),
|
|
2922
2568
|
children: [
|
|
2923
|
-
/* @__PURE__ */
|
|
2924
|
-
/* @__PURE__ */
|
|
2569
|
+
/* @__PURE__ */ jsx69(_Label, { elementType: "span", children }),
|
|
2570
|
+
/* @__PURE__ */ jsx69("div", { className: "relative", children: /* @__PURE__ */ jsx69(
|
|
2925
2571
|
"div",
|
|
2926
2572
|
{
|
|
2927
|
-
className:
|
|
2573
|
+
className: cn38(
|
|
2928
2574
|
"h-6 w-12 basis-12 rounded-3xl group-disabled/switch:cursor-not-allowed ",
|
|
2929
2575
|
classNames2.track
|
|
2930
2576
|
),
|
|
2931
|
-
children: /* @__PURE__ */
|
|
2577
|
+
children: /* @__PURE__ */ jsx69(
|
|
2932
2578
|
"div",
|
|
2933
2579
|
{
|
|
2934
|
-
className:
|
|
2580
|
+
className: cn38(
|
|
2935
2581
|
"h-[22px] w-[22px]",
|
|
2936
2582
|
"cubic-bezier(.7,0,.3,1)",
|
|
2937
2583
|
"absolute left-0 top-px",
|
|
@@ -2950,7 +2596,7 @@ var _Switch = forwardRef20(
|
|
|
2950
2596
|
);
|
|
2951
2597
|
|
|
2952
2598
|
// src/Table/Table.tsx
|
|
2953
|
-
import { useRef as
|
|
2599
|
+
import { useRef as useRef10 } from "react";
|
|
2954
2600
|
import { useTable } from "@react-aria/table";
|
|
2955
2601
|
import {
|
|
2956
2602
|
TableBody as Body2,
|
|
@@ -2960,7 +2606,7 @@ import {
|
|
|
2960
2606
|
Row,
|
|
2961
2607
|
useTableState
|
|
2962
2608
|
} from "@react-stately/table";
|
|
2963
|
-
import { cn as
|
|
2609
|
+
import { cn as cn43, useClassNames as useClassNames42 } from "@marigold/system";
|
|
2964
2610
|
|
|
2965
2611
|
// src/Table/Context.tsx
|
|
2966
2612
|
import { createContext as createContext5, useContext as useContext10 } from "react";
|
|
@@ -2969,21 +2615,21 @@ var useTableContext = () => useContext10(TableContext);
|
|
|
2969
2615
|
|
|
2970
2616
|
// src/Table/TableBody.tsx
|
|
2971
2617
|
import { useTableRowGroup } from "@react-aria/table";
|
|
2972
|
-
import { jsx as
|
|
2618
|
+
import { jsx as jsx70 } from "react/jsx-runtime";
|
|
2973
2619
|
var TableBody = ({ children }) => {
|
|
2974
2620
|
const { rowGroupProps } = useTableRowGroup();
|
|
2975
|
-
return /* @__PURE__ */
|
|
2621
|
+
return /* @__PURE__ */ jsx70("tbody", { ...rowGroupProps, children });
|
|
2976
2622
|
};
|
|
2977
2623
|
|
|
2978
2624
|
// src/Table/TableCell.tsx
|
|
2979
|
-
import { useRef as
|
|
2980
|
-
import { useFocusRing as
|
|
2625
|
+
import { useRef as useRef4 } from "react";
|
|
2626
|
+
import { useFocusRing as useFocusRing2 } from "@react-aria/focus";
|
|
2981
2627
|
import { useTableCell } from "@react-aria/table";
|
|
2982
|
-
import { mergeProps as
|
|
2983
|
-
import { useStateProps as
|
|
2984
|
-
import { jsx as
|
|
2985
|
-
var TableCell = ({ cell }) => {
|
|
2986
|
-
const ref =
|
|
2628
|
+
import { mergeProps as mergeProps3 } from "@react-aria/utils";
|
|
2629
|
+
import { useStateProps as useStateProps2 } from "@marigold/system";
|
|
2630
|
+
import { jsx as jsx71 } from "react/jsx-runtime";
|
|
2631
|
+
var TableCell = ({ cell, align }) => {
|
|
2632
|
+
const ref = useRef4(null);
|
|
2987
2633
|
const { interactive, state, classNames: classNames2 } = useTableContext();
|
|
2988
2634
|
const disabled = state.disabledKeys.has(cell.parentKey);
|
|
2989
2635
|
const { gridCellProps } = useTableCell(
|
|
@@ -3002,26 +2648,27 @@ var TableCell = ({ cell }) => {
|
|
|
3002
2648
|
onMouseDown: (e) => e.stopPropagation(),
|
|
3003
2649
|
onPointerDown: (e) => e.stopPropagation()
|
|
3004
2650
|
};
|
|
3005
|
-
const { focusProps, isFocusVisible } =
|
|
3006
|
-
const stateProps =
|
|
3007
|
-
return /* @__PURE__ */
|
|
2651
|
+
const { focusProps, isFocusVisible } = useFocusRing2();
|
|
2652
|
+
const stateProps = useStateProps2({ disabled, focusVisible: isFocusVisible });
|
|
2653
|
+
return /* @__PURE__ */ jsx71(
|
|
3008
2654
|
"td",
|
|
3009
2655
|
{
|
|
3010
2656
|
ref,
|
|
3011
2657
|
className: classNames2 == null ? void 0 : classNames2.cell,
|
|
3012
|
-
...
|
|
2658
|
+
...mergeProps3(cellProps, focusProps),
|
|
3013
2659
|
...stateProps,
|
|
2660
|
+
align,
|
|
3014
2661
|
children: cell.rendered
|
|
3015
2662
|
}
|
|
3016
2663
|
);
|
|
3017
2664
|
};
|
|
3018
2665
|
|
|
3019
2666
|
// src/Table/TableCheckboxCell.tsx
|
|
3020
|
-
import { useRef as
|
|
3021
|
-
import { useFocusRing as
|
|
2667
|
+
import { useRef as useRef5 } from "react";
|
|
2668
|
+
import { useFocusRing as useFocusRing3 } from "@react-aria/focus";
|
|
3022
2669
|
import { useTableCell as useTableCell2, useTableSelectionCheckbox } from "@react-aria/table";
|
|
3023
|
-
import { mergeProps as
|
|
3024
|
-
import { cn as
|
|
2670
|
+
import { mergeProps as mergeProps4 } from "@react-aria/utils";
|
|
2671
|
+
import { cn as cn39, useStateProps as useStateProps3 } from "@marigold/system";
|
|
3025
2672
|
|
|
3026
2673
|
// src/Table/utils.ts
|
|
3027
2674
|
var mapCheckboxProps = ({
|
|
@@ -3044,9 +2691,9 @@ var mapCheckboxProps = ({
|
|
|
3044
2691
|
};
|
|
3045
2692
|
|
|
3046
2693
|
// src/Table/TableCheckboxCell.tsx
|
|
3047
|
-
import { jsx as
|
|
3048
|
-
var TableCheckboxCell = ({ cell }) => {
|
|
3049
|
-
const ref =
|
|
2694
|
+
import { jsx as jsx72 } from "react/jsx-runtime";
|
|
2695
|
+
var TableCheckboxCell = ({ cell, align }) => {
|
|
2696
|
+
const ref = useRef5(null);
|
|
3050
2697
|
const { state, classNames: classNames2 } = useTableContext();
|
|
3051
2698
|
const disabled = state.disabledKeys.has(cell.parentKey);
|
|
3052
2699
|
const { gridCellProps } = useTableCell2(
|
|
@@ -3059,36 +2706,38 @@ var TableCheckboxCell = ({ cell }) => {
|
|
|
3059
2706
|
const { checkboxProps } = mapCheckboxProps(
|
|
3060
2707
|
useTableSelectionCheckbox({ key: cell.parentKey }, state)
|
|
3061
2708
|
);
|
|
3062
|
-
const { focusProps, isFocusVisible } =
|
|
3063
|
-
const stateProps =
|
|
3064
|
-
return /* @__PURE__ */
|
|
2709
|
+
const { focusProps, isFocusVisible } = useFocusRing3();
|
|
2710
|
+
const stateProps = useStateProps3({ disabled, focusVisible: isFocusVisible });
|
|
2711
|
+
return /* @__PURE__ */ jsx72(
|
|
3065
2712
|
"td",
|
|
3066
2713
|
{
|
|
3067
2714
|
ref,
|
|
3068
|
-
className:
|
|
3069
|
-
|
|
2715
|
+
className: cn39("text-center align-middle leading-none", classNames2 == null ? void 0 : classNames2.cell),
|
|
2716
|
+
align,
|
|
2717
|
+
...mergeProps4(gridCellProps, focusProps),
|
|
3070
2718
|
...stateProps,
|
|
3071
|
-
children: /* @__PURE__ */
|
|
2719
|
+
children: /* @__PURE__ */ jsx72(_Checkbox, { ...checkboxProps })
|
|
3072
2720
|
}
|
|
3073
2721
|
);
|
|
3074
2722
|
};
|
|
3075
2723
|
|
|
3076
2724
|
// src/Table/TableColumnHeader.tsx
|
|
3077
|
-
import { useRef as
|
|
3078
|
-
import { useFocusRing as
|
|
3079
|
-
import { useHover
|
|
2725
|
+
import { useRef as useRef6 } from "react";
|
|
2726
|
+
import { useFocusRing as useFocusRing4 } from "@react-aria/focus";
|
|
2727
|
+
import { useHover } from "@react-aria/interactions";
|
|
3080
2728
|
import { useTableColumnHeader } from "@react-aria/table";
|
|
3081
|
-
import { mergeProps as
|
|
2729
|
+
import { mergeProps as mergeProps5 } from "@react-aria/utils";
|
|
3082
2730
|
import { SortDown, SortUp } from "@marigold/icons";
|
|
3083
|
-
import { cn as
|
|
3084
|
-
import { width as
|
|
3085
|
-
import { jsx as
|
|
2731
|
+
import { cn as cn40, useStateProps as useStateProps4 } from "@marigold/system";
|
|
2732
|
+
import { width as twWidth4 } from "@marigold/system";
|
|
2733
|
+
import { jsx as jsx73, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
3086
2734
|
var TableColumnHeader = ({
|
|
3087
2735
|
column,
|
|
3088
|
-
width = "auto"
|
|
2736
|
+
width = "auto",
|
|
2737
|
+
align
|
|
3089
2738
|
}) => {
|
|
3090
2739
|
var _a, _b;
|
|
3091
|
-
const ref =
|
|
2740
|
+
const ref = useRef6(null);
|
|
3092
2741
|
const { state, classNames: classNames2 } = useTableContext();
|
|
3093
2742
|
const { columnHeaderProps } = useTableColumnHeader(
|
|
3094
2743
|
{
|
|
@@ -3097,23 +2746,24 @@ var TableColumnHeader = ({
|
|
|
3097
2746
|
state,
|
|
3098
2747
|
ref
|
|
3099
2748
|
);
|
|
3100
|
-
const { hoverProps, isHovered } =
|
|
3101
|
-
const { focusProps, isFocusVisible } =
|
|
3102
|
-
const stateProps =
|
|
2749
|
+
const { hoverProps, isHovered } = useHover({});
|
|
2750
|
+
const { focusProps, isFocusVisible } = useFocusRing4();
|
|
2751
|
+
const stateProps = useStateProps4({
|
|
3103
2752
|
hover: isHovered,
|
|
3104
2753
|
focusVisible: isFocusVisible
|
|
3105
2754
|
});
|
|
3106
|
-
return /* @__PURE__ */
|
|
2755
|
+
return /* @__PURE__ */ jsxs29(
|
|
3107
2756
|
"th",
|
|
3108
2757
|
{
|
|
3109
2758
|
colSpan: column.colspan,
|
|
3110
2759
|
ref,
|
|
3111
|
-
className:
|
|
3112
|
-
...
|
|
2760
|
+
className: cn40("cursor-default", twWidth4[width], classNames2 == null ? void 0 : classNames2.header),
|
|
2761
|
+
...mergeProps5(columnHeaderProps, hoverProps, focusProps),
|
|
3113
2762
|
...stateProps,
|
|
2763
|
+
align,
|
|
3114
2764
|
children: [
|
|
3115
2765
|
column.rendered,
|
|
3116
|
-
column.props.allowsSorting && (((_a = state.sortDescriptor) == null ? void 0 : _a.column) === column.key ? ((_b = state.sortDescriptor) == null ? void 0 : _b.direction) === "ascending" ? /* @__PURE__ */
|
|
2766
|
+
column.props.allowsSorting && (((_a = state.sortDescriptor) == null ? void 0 : _a.column) === column.key ? ((_b = state.sortDescriptor) == null ? void 0 : _b.direction) === "ascending" ? /* @__PURE__ */ jsx73(SortUp, { className: "inline-block" }) : /* @__PURE__ */ jsx73(SortDown, { className: "inline-block" }) : /* @__PURE__ */ jsx73(SortDown, { className: "inline-block" }))
|
|
3117
2767
|
]
|
|
3118
2768
|
}
|
|
3119
2769
|
);
|
|
@@ -3121,36 +2771,36 @@ var TableColumnHeader = ({
|
|
|
3121
2771
|
|
|
3122
2772
|
// src/Table/TableHeader.tsx
|
|
3123
2773
|
import { useTableRowGroup as useTableRowGroup2 } from "@react-aria/table";
|
|
3124
|
-
import { jsx as
|
|
2774
|
+
import { jsx as jsx74 } from "react/jsx-runtime";
|
|
3125
2775
|
var TableHeader = ({ children }) => {
|
|
3126
2776
|
const { rowGroupProps } = useTableRowGroup2();
|
|
3127
|
-
return /* @__PURE__ */
|
|
2777
|
+
return /* @__PURE__ */ jsx74("thead", { ...rowGroupProps, children });
|
|
3128
2778
|
};
|
|
3129
2779
|
|
|
3130
2780
|
// src/Table/TableHeaderRow.tsx
|
|
3131
|
-
import { useRef as
|
|
2781
|
+
import { useRef as useRef7 } from "react";
|
|
3132
2782
|
import { useTableHeaderRow } from "@react-aria/table";
|
|
3133
|
-
import { jsx as
|
|
2783
|
+
import { jsx as jsx75 } from "react/jsx-runtime";
|
|
3134
2784
|
var TableHeaderRow = ({ item, children }) => {
|
|
3135
2785
|
const { state } = useTableContext();
|
|
3136
|
-
const ref =
|
|
2786
|
+
const ref = useRef7(null);
|
|
3137
2787
|
const { rowProps } = useTableHeaderRow({ node: item }, state, ref);
|
|
3138
|
-
return /* @__PURE__ */
|
|
2788
|
+
return /* @__PURE__ */ jsx75("tr", { ...rowProps, ref, children });
|
|
3139
2789
|
};
|
|
3140
2790
|
|
|
3141
2791
|
// src/Table/TableRow.tsx
|
|
3142
|
-
import { useRef as
|
|
3143
|
-
import { useFocusRing as
|
|
3144
|
-
import { useHover as
|
|
2792
|
+
import { useRef as useRef8 } from "react";
|
|
2793
|
+
import { useFocusRing as useFocusRing5 } from "@react-aria/focus";
|
|
2794
|
+
import { useHover as useHover2 } from "@react-aria/interactions";
|
|
3145
2795
|
import { useTableRow } from "@react-aria/table";
|
|
3146
|
-
import { mergeProps as
|
|
3147
|
-
import { cn as
|
|
3148
|
-
import { jsx as
|
|
2796
|
+
import { mergeProps as mergeProps6 } from "@react-aria/utils";
|
|
2797
|
+
import { cn as cn41, useClassNames as useClassNames41, useStateProps as useStateProps5 } from "@marigold/system";
|
|
2798
|
+
import { jsx as jsx76 } from "react/jsx-runtime";
|
|
3149
2799
|
var TableRow = ({ children, row }) => {
|
|
3150
|
-
const ref =
|
|
2800
|
+
const ref = useRef8(null);
|
|
3151
2801
|
const { interactive, state, ...ctx } = useTableContext();
|
|
3152
2802
|
const { variant, size } = row.props;
|
|
3153
|
-
const classNames2 =
|
|
2803
|
+
const classNames2 = useClassNames41({
|
|
3154
2804
|
component: "Table",
|
|
3155
2805
|
variant: variant || ctx.variant,
|
|
3156
2806
|
size: size || ctx.size
|
|
@@ -3164,28 +2814,28 @@ var TableRow = ({ children, row }) => {
|
|
|
3164
2814
|
);
|
|
3165
2815
|
const disabled = state.disabledKeys.has(row.key);
|
|
3166
2816
|
const selected = state.selectionManager.isSelected(row.key);
|
|
3167
|
-
const { focusProps, isFocusVisible } =
|
|
3168
|
-
const { hoverProps, isHovered } =
|
|
2817
|
+
const { focusProps, isFocusVisible } = useFocusRing5({ within: true });
|
|
2818
|
+
const { hoverProps, isHovered } = useHover2({
|
|
3169
2819
|
isDisabled: disabled || !interactive
|
|
3170
2820
|
});
|
|
3171
|
-
const stateProps =
|
|
2821
|
+
const stateProps = useStateProps5({
|
|
3172
2822
|
disabled,
|
|
3173
2823
|
selected,
|
|
3174
2824
|
hover: isHovered,
|
|
3175
2825
|
focusVisible: isFocusVisible,
|
|
3176
2826
|
active: isPressed
|
|
3177
2827
|
});
|
|
3178
|
-
return /* @__PURE__ */
|
|
2828
|
+
return /* @__PURE__ */ jsx76(
|
|
3179
2829
|
"tr",
|
|
3180
2830
|
{
|
|
3181
2831
|
ref,
|
|
3182
|
-
className:
|
|
2832
|
+
className: cn41(
|
|
3183
2833
|
[
|
|
3184
2834
|
!interactive ? "cursor-text" : disabled ? "cursor-default" : "cursor-pointer"
|
|
3185
2835
|
],
|
|
3186
2836
|
classNames2 == null ? void 0 : classNames2.row
|
|
3187
2837
|
),
|
|
3188
|
-
...
|
|
2838
|
+
...mergeProps6(rowProps, focusProps, hoverProps),
|
|
3189
2839
|
...stateProps,
|
|
3190
2840
|
children
|
|
3191
2841
|
}
|
|
@@ -3193,25 +2843,26 @@ var TableRow = ({ children, row }) => {
|
|
|
3193
2843
|
};
|
|
3194
2844
|
|
|
3195
2845
|
// src/Table/TableSelectAllCell.tsx
|
|
3196
|
-
import { useRef as
|
|
3197
|
-
import { useFocusRing as
|
|
3198
|
-
import { useHover as
|
|
2846
|
+
import { useRef as useRef9 } from "react";
|
|
2847
|
+
import { useFocusRing as useFocusRing6 } from "@react-aria/focus";
|
|
2848
|
+
import { useHover as useHover3 } from "@react-aria/interactions";
|
|
3199
2849
|
import {
|
|
3200
2850
|
useTableColumnHeader as useTableColumnHeader2,
|
|
3201
2851
|
useTableSelectAllCheckbox
|
|
3202
2852
|
} from "@react-aria/table";
|
|
3203
|
-
import { mergeProps as
|
|
2853
|
+
import { mergeProps as mergeProps7 } from "@react-aria/utils";
|
|
3204
2854
|
import {
|
|
3205
|
-
cn as
|
|
3206
|
-
width as
|
|
3207
|
-
useStateProps as
|
|
2855
|
+
cn as cn42,
|
|
2856
|
+
width as twWidth5,
|
|
2857
|
+
useStateProps as useStateProps6
|
|
3208
2858
|
} from "@marigold/system";
|
|
3209
|
-
import { jsx as
|
|
2859
|
+
import { jsx as jsx77 } from "react/jsx-runtime";
|
|
3210
2860
|
var TableSelectAllCell = ({
|
|
3211
2861
|
column,
|
|
3212
|
-
width = "auto"
|
|
2862
|
+
width = "auto",
|
|
2863
|
+
align
|
|
3213
2864
|
}) => {
|
|
3214
|
-
const ref =
|
|
2865
|
+
const ref = useRef9(null);
|
|
3215
2866
|
const { state, classNames: classNames2 } = useTableContext();
|
|
3216
2867
|
const { columnHeaderProps } = useTableColumnHeader2(
|
|
3217
2868
|
{
|
|
@@ -3221,30 +2872,31 @@ var TableSelectAllCell = ({
|
|
|
3221
2872
|
ref
|
|
3222
2873
|
);
|
|
3223
2874
|
const { checkboxProps } = mapCheckboxProps(useTableSelectAllCheckbox(state));
|
|
3224
|
-
const { hoverProps, isHovered } =
|
|
3225
|
-
const { focusProps, isFocusVisible } =
|
|
3226
|
-
const stateProps =
|
|
2875
|
+
const { hoverProps, isHovered } = useHover3({});
|
|
2876
|
+
const { focusProps, isFocusVisible } = useFocusRing6();
|
|
2877
|
+
const stateProps = useStateProps6({
|
|
3227
2878
|
hover: isHovered,
|
|
3228
2879
|
focusVisible: isFocusVisible
|
|
3229
2880
|
});
|
|
3230
|
-
return /* @__PURE__ */
|
|
2881
|
+
return /* @__PURE__ */ jsx77(
|
|
3231
2882
|
"th",
|
|
3232
2883
|
{
|
|
3233
2884
|
ref,
|
|
3234
|
-
className:
|
|
3235
|
-
|
|
2885
|
+
className: cn42(
|
|
2886
|
+
twWidth5[width],
|
|
3236
2887
|
["text-center align-middle leading-none"],
|
|
3237
2888
|
classNames2 == null ? void 0 : classNames2.header
|
|
3238
2889
|
),
|
|
3239
|
-
|
|
2890
|
+
align,
|
|
2891
|
+
...mergeProps7(columnHeaderProps, hoverProps, focusProps),
|
|
3240
2892
|
...stateProps,
|
|
3241
|
-
children: /* @__PURE__ */
|
|
2893
|
+
children: /* @__PURE__ */ jsx77(_Checkbox, { ...checkboxProps })
|
|
3242
2894
|
}
|
|
3243
2895
|
);
|
|
3244
2896
|
};
|
|
3245
2897
|
|
|
3246
2898
|
// src/Table/Table.tsx
|
|
3247
|
-
import { jsx as
|
|
2899
|
+
import { jsx as jsx78, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
3248
2900
|
var Table = ({
|
|
3249
2901
|
variant,
|
|
3250
2902
|
size,
|
|
@@ -3253,7 +2905,7 @@ var Table = ({
|
|
|
3253
2905
|
...props
|
|
3254
2906
|
}) => {
|
|
3255
2907
|
const interactive = selectionMode !== "none";
|
|
3256
|
-
const tableRef =
|
|
2908
|
+
const tableRef = useRef10(null);
|
|
3257
2909
|
const state = useTableState({
|
|
3258
2910
|
...props,
|
|
3259
2911
|
selectionMode,
|
|
@@ -3261,21 +2913,21 @@ var Table = ({
|
|
|
3261
2913
|
props.selectionBehavior !== "replace"
|
|
3262
2914
|
});
|
|
3263
2915
|
const { gridProps } = useTable(props, state, tableRef);
|
|
3264
|
-
const classNames2 =
|
|
2916
|
+
const classNames2 = useClassNames42({
|
|
3265
2917
|
component: "Table",
|
|
3266
2918
|
variant,
|
|
3267
2919
|
size
|
|
3268
2920
|
});
|
|
3269
2921
|
const { collection } = state;
|
|
3270
|
-
return /* @__PURE__ */
|
|
2922
|
+
return /* @__PURE__ */ jsx78(
|
|
3271
2923
|
TableContext.Provider,
|
|
3272
2924
|
{
|
|
3273
2925
|
value: { state, interactive, classNames: classNames2, variant, size },
|
|
3274
|
-
children: /* @__PURE__ */
|
|
2926
|
+
children: /* @__PURE__ */ jsxs30(
|
|
3275
2927
|
"table",
|
|
3276
2928
|
{
|
|
3277
2929
|
ref: tableRef,
|
|
3278
|
-
className:
|
|
2930
|
+
className: cn43(
|
|
3279
2931
|
"group/table",
|
|
3280
2932
|
"border-collapse overflow-auto whitespace-nowrap",
|
|
3281
2933
|
stretch ? "table w-full" : "block",
|
|
@@ -3283,34 +2935,48 @@ var Table = ({
|
|
|
3283
2935
|
),
|
|
3284
2936
|
...gridProps,
|
|
3285
2937
|
children: [
|
|
3286
|
-
/* @__PURE__ */
|
|
2938
|
+
/* @__PURE__ */ jsx78(TableHeader, { children: collection.headerRows.map((headerRow) => /* @__PURE__ */ jsx78(TableHeaderRow, { item: headerRow, children: [...collection.getChildren(headerRow.key)].map(
|
|
3287
2939
|
(column) => {
|
|
3288
|
-
var _a, _b, _c;
|
|
3289
|
-
return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */
|
|
2940
|
+
var _a, _b, _c, _d;
|
|
2941
|
+
return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ jsx78(
|
|
3290
2942
|
TableSelectAllCell,
|
|
3291
2943
|
{
|
|
3292
2944
|
width: (_b = column.props) == null ? void 0 : _b.width,
|
|
3293
2945
|
column
|
|
3294
2946
|
},
|
|
3295
2947
|
column.key
|
|
3296
|
-
) : /* @__PURE__ */
|
|
2948
|
+
) : /* @__PURE__ */ jsx78(
|
|
3297
2949
|
TableColumnHeader,
|
|
3298
2950
|
{
|
|
3299
2951
|
width: (_c = column.props) == null ? void 0 : _c.width,
|
|
3300
|
-
column
|
|
2952
|
+
column,
|
|
2953
|
+
align: (_d = column.props) == null ? void 0 : _d.align
|
|
3301
2954
|
},
|
|
3302
2955
|
column.key
|
|
3303
2956
|
);
|
|
3304
2957
|
}
|
|
3305
2958
|
) }, headerRow.key)) }),
|
|
3306
|
-
/* @__PURE__ */
|
|
2959
|
+
/* @__PURE__ */ jsxs30(TableBody, { children: [
|
|
3307
2960
|
...collection.rows.map(
|
|
3308
|
-
(row) => row.type === "item" && /* @__PURE__ */
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
2961
|
+
(row) => row.type === "item" && /* @__PURE__ */ jsx78(TableRow, { row, children: [...collection.getChildren(row.key)].map((cell, index) => {
|
|
2962
|
+
var _a, _b, _c;
|
|
2963
|
+
const currentColumn = collection.columns[index];
|
|
2964
|
+
return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ jsx78(
|
|
2965
|
+
TableCheckboxCell,
|
|
2966
|
+
{
|
|
2967
|
+
align: (_b = currentColumn.props) == null ? void 0 : _b.align,
|
|
2968
|
+
cell
|
|
2969
|
+
},
|
|
2970
|
+
cell.key
|
|
2971
|
+
) : /* @__PURE__ */ jsx78(
|
|
2972
|
+
TableCell,
|
|
2973
|
+
{
|
|
2974
|
+
align: (_c = currentColumn.props) == null ? void 0 : _c.align,
|
|
2975
|
+
cell
|
|
2976
|
+
},
|
|
2977
|
+
cell.key
|
|
2978
|
+
);
|
|
2979
|
+
}) }, row.key)
|
|
3314
2980
|
)
|
|
3315
2981
|
] })
|
|
3316
2982
|
]
|
|
@@ -3327,7 +2993,7 @@ Table.Row = Row;
|
|
|
3327
2993
|
|
|
3328
2994
|
// src/Text/Text.tsx
|
|
3329
2995
|
import {
|
|
3330
|
-
cn as
|
|
2996
|
+
cn as cn44,
|
|
3331
2997
|
createVar as createVar9,
|
|
3332
2998
|
cursorStyle,
|
|
3333
2999
|
fontWeight,
|
|
@@ -3335,10 +3001,10 @@ import {
|
|
|
3335
3001
|
textAlign as textAlign2,
|
|
3336
3002
|
textSize,
|
|
3337
3003
|
textStyle,
|
|
3338
|
-
useClassNames as
|
|
3339
|
-
useTheme as
|
|
3004
|
+
useClassNames as useClassNames43,
|
|
3005
|
+
useTheme as useTheme6
|
|
3340
3006
|
} from "@marigold/system";
|
|
3341
|
-
import { jsx as
|
|
3007
|
+
import { jsx as jsx79 } from "react/jsx-runtime";
|
|
3342
3008
|
var Text2 = ({
|
|
3343
3009
|
variant,
|
|
3344
3010
|
size,
|
|
@@ -3351,17 +3017,17 @@ var Text2 = ({
|
|
|
3351
3017
|
children,
|
|
3352
3018
|
...props
|
|
3353
3019
|
}) => {
|
|
3354
|
-
const theme =
|
|
3355
|
-
const classNames2 =
|
|
3020
|
+
const theme = useTheme6();
|
|
3021
|
+
const classNames2 = useClassNames43({
|
|
3356
3022
|
component: "Text",
|
|
3357
3023
|
variant,
|
|
3358
3024
|
size
|
|
3359
3025
|
});
|
|
3360
|
-
return /* @__PURE__ */
|
|
3026
|
+
return /* @__PURE__ */ jsx79(
|
|
3361
3027
|
"p",
|
|
3362
3028
|
{
|
|
3363
3029
|
...props,
|
|
3364
|
-
className:
|
|
3030
|
+
className: cn44(
|
|
3365
3031
|
classNames2,
|
|
3366
3032
|
"text-[--color] outline-[--outline]",
|
|
3367
3033
|
fontStyle && textStyle[fontStyle],
|
|
@@ -3384,11 +3050,11 @@ var Text2 = ({
|
|
|
3384
3050
|
};
|
|
3385
3051
|
|
|
3386
3052
|
// src/TextArea/TextArea.tsx
|
|
3387
|
-
import { forwardRef as
|
|
3053
|
+
import { forwardRef as forwardRef20 } from "react";
|
|
3388
3054
|
import { TextArea, TextField } from "react-aria-components";
|
|
3389
|
-
import { useClassNames as
|
|
3390
|
-
import { jsx as
|
|
3391
|
-
var _TextArea =
|
|
3055
|
+
import { useClassNames as useClassNames44 } from "@marigold/system";
|
|
3056
|
+
import { jsx as jsx80 } from "react/jsx-runtime";
|
|
3057
|
+
var _TextArea = forwardRef20(
|
|
3392
3058
|
({
|
|
3393
3059
|
variant,
|
|
3394
3060
|
size,
|
|
@@ -3399,7 +3065,7 @@ var _TextArea = forwardRef21(
|
|
|
3399
3065
|
rows,
|
|
3400
3066
|
...rest
|
|
3401
3067
|
}, ref) => {
|
|
3402
|
-
const classNames2 =
|
|
3068
|
+
const classNames2 = useClassNames44({ component: "TextArea", variant, size });
|
|
3403
3069
|
const props = {
|
|
3404
3070
|
isDisabled: disabled,
|
|
3405
3071
|
isReadOnly: readOnly,
|
|
@@ -3407,15 +3073,15 @@ var _TextArea = forwardRef21(
|
|
|
3407
3073
|
isRequired: required,
|
|
3408
3074
|
...rest
|
|
3409
3075
|
};
|
|
3410
|
-
return /* @__PURE__ */
|
|
3076
|
+
return /* @__PURE__ */ jsx80(FieldBase, { as: TextField, ...props, variant, size, children: /* @__PURE__ */ jsx80(TextArea, { className: classNames2, ref, rows }) });
|
|
3411
3077
|
}
|
|
3412
3078
|
);
|
|
3413
3079
|
|
|
3414
3080
|
// src/TextField/TextField.tsx
|
|
3415
|
-
import { forwardRef as
|
|
3081
|
+
import { forwardRef as forwardRef21 } from "react";
|
|
3416
3082
|
import { TextField as TextField2 } from "react-aria-components";
|
|
3417
|
-
import { jsx as
|
|
3418
|
-
var _TextField =
|
|
3083
|
+
import { jsx as jsx81 } from "react/jsx-runtime";
|
|
3084
|
+
var _TextField = forwardRef21(
|
|
3419
3085
|
({
|
|
3420
3086
|
variant,
|
|
3421
3087
|
size,
|
|
@@ -3432,13 +3098,13 @@ var _TextField = forwardRef22(
|
|
|
3432
3098
|
isRequired: required,
|
|
3433
3099
|
...rest
|
|
3434
3100
|
};
|
|
3435
|
-
return /* @__PURE__ */
|
|
3101
|
+
return /* @__PURE__ */ jsx81(FieldBase, { as: TextField2, ...props, children: /* @__PURE__ */ jsx81(_Input, { ref }) });
|
|
3436
3102
|
}
|
|
3437
3103
|
);
|
|
3438
3104
|
|
|
3439
3105
|
// src/Tiles/Tiles.tsx
|
|
3440
|
-
import { cn as
|
|
3441
|
-
import { jsx as
|
|
3106
|
+
import { cn as cn45, createVar as createVar10, gapSpace as gapSpace7 } from "@marigold/system";
|
|
3107
|
+
import { jsx as jsx82 } from "react/jsx-runtime";
|
|
3442
3108
|
var Tiles = ({
|
|
3443
3109
|
space = 0,
|
|
3444
3110
|
stretch = false,
|
|
@@ -3451,11 +3117,11 @@ var Tiles = ({
|
|
|
3451
3117
|
if (stretch) {
|
|
3452
3118
|
column = `minmax(${column}, 1fr)`;
|
|
3453
3119
|
}
|
|
3454
|
-
return /* @__PURE__ */
|
|
3120
|
+
return /* @__PURE__ */ jsx82(
|
|
3455
3121
|
"div",
|
|
3456
3122
|
{
|
|
3457
3123
|
...props,
|
|
3458
|
-
className:
|
|
3124
|
+
className: cn45(
|
|
3459
3125
|
"grid",
|
|
3460
3126
|
gapSpace7[space],
|
|
3461
3127
|
"grid-cols-[repeat(auto-fit,var(--column))]",
|
|
@@ -3469,11 +3135,11 @@ var Tiles = ({
|
|
|
3469
3135
|
|
|
3470
3136
|
// src/Tooltip/Tooltip.tsx
|
|
3471
3137
|
import { OverlayArrow, Tooltip } from "react-aria-components";
|
|
3472
|
-
import { cn as
|
|
3138
|
+
import { cn as cn46, useClassNames as useClassNames45 } from "@marigold/system";
|
|
3473
3139
|
|
|
3474
3140
|
// src/Tooltip/TooltipTrigger.tsx
|
|
3475
3141
|
import { TooltipTrigger } from "react-aria-components";
|
|
3476
|
-
import { jsx as
|
|
3142
|
+
import { jsx as jsx83 } from "react/jsx-runtime";
|
|
3477
3143
|
var _TooltipTrigger = ({
|
|
3478
3144
|
delay = 1e3,
|
|
3479
3145
|
children,
|
|
@@ -3487,19 +3153,19 @@ var _TooltipTrigger = ({
|
|
|
3487
3153
|
isOpen: open,
|
|
3488
3154
|
delay
|
|
3489
3155
|
};
|
|
3490
|
-
return /* @__PURE__ */
|
|
3156
|
+
return /* @__PURE__ */ jsx83(TooltipTrigger, { ...props, children });
|
|
3491
3157
|
};
|
|
3492
3158
|
|
|
3493
3159
|
// src/Tooltip/Tooltip.tsx
|
|
3494
|
-
import { jsx as
|
|
3160
|
+
import { jsx as jsx84, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
3495
3161
|
var _Tooltip = ({ children, variant, size, open, ...rest }) => {
|
|
3496
3162
|
const props = {
|
|
3497
3163
|
...rest,
|
|
3498
3164
|
isOpen: open
|
|
3499
3165
|
};
|
|
3500
|
-
const classNames2 =
|
|
3501
|
-
return /* @__PURE__ */
|
|
3502
|
-
/* @__PURE__ */
|
|
3166
|
+
const classNames2 = useClassNames45({ component: "Tooltip", variant, size });
|
|
3167
|
+
return /* @__PURE__ */ jsxs31(Tooltip, { ...props, className: cn46("group/tooltip", classNames2.container), children: [
|
|
3168
|
+
/* @__PURE__ */ jsx84(OverlayArrow, { className: classNames2.arrow, children: /* @__PURE__ */ jsx84("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ jsx84("path", { d: "M0 0 L4 4 L8 0" }) }) }),
|
|
3503
3169
|
children
|
|
3504
3170
|
] });
|
|
3505
3171
|
};
|
|
@@ -3507,12 +3173,12 @@ _Tooltip.Trigger = _TooltipTrigger;
|
|
|
3507
3173
|
|
|
3508
3174
|
// src/TagGroup/Tag.tsx
|
|
3509
3175
|
import { Button as Button5, Tag } from "react-aria-components";
|
|
3510
|
-
import { cn as
|
|
3176
|
+
import { cn as cn47, useClassNames as useClassNames47 } from "@marigold/system";
|
|
3511
3177
|
|
|
3512
3178
|
// src/TagGroup/TagGroup.tsx
|
|
3513
3179
|
import { TagGroup, TagList } from "react-aria-components";
|
|
3514
|
-
import { useClassNames as
|
|
3515
|
-
import { jsx as
|
|
3180
|
+
import { useClassNames as useClassNames46 } from "@marigold/system";
|
|
3181
|
+
import { jsx as jsx85 } from "react/jsx-runtime";
|
|
3516
3182
|
var _TagGroup = ({
|
|
3517
3183
|
width,
|
|
3518
3184
|
items,
|
|
@@ -3521,24 +3187,24 @@ var _TagGroup = ({
|
|
|
3521
3187
|
size,
|
|
3522
3188
|
...rest
|
|
3523
3189
|
}) => {
|
|
3524
|
-
const classNames2 =
|
|
3525
|
-
return /* @__PURE__ */
|
|
3190
|
+
const classNames2 = useClassNames46({ component: "Tag", variant, size });
|
|
3191
|
+
return /* @__PURE__ */ jsx85(FieldBase, { as: TagGroup, ...rest, children: /* @__PURE__ */ jsx85(TagList, { items, className: classNames2.listItems, children }) });
|
|
3526
3192
|
};
|
|
3527
3193
|
|
|
3528
3194
|
// src/TagGroup/Tag.tsx
|
|
3529
|
-
import { Fragment as
|
|
3195
|
+
import { Fragment as Fragment8, jsx as jsx86, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
3530
3196
|
var CloseButton2 = ({ className }) => {
|
|
3531
|
-
return /* @__PURE__ */
|
|
3197
|
+
return /* @__PURE__ */ jsx86(Button5, { slot: "remove", className, children: /* @__PURE__ */ jsx86("svg", { viewBox: "0 0 20 20", fill: "currentColor", width: 20, height: 20, children: /* @__PURE__ */ jsx86("path", { 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" }) }) });
|
|
3532
3198
|
};
|
|
3533
3199
|
var _Tag = ({ variant, size, children, ...props }) => {
|
|
3534
3200
|
let textValue = typeof children === "string" ? children : void 0;
|
|
3535
|
-
const classNames2 =
|
|
3536
|
-
return /* @__PURE__ */
|
|
3201
|
+
const classNames2 = useClassNames47({ component: "Tag", variant, size });
|
|
3202
|
+
return /* @__PURE__ */ jsx86(Tag, { textValue, ...props, className: classNames2.tag, children: ({ allowsRemoving }) => /* @__PURE__ */ jsxs32(Fragment8, { children: [
|
|
3537
3203
|
children,
|
|
3538
|
-
allowsRemoving && /* @__PURE__ */
|
|
3204
|
+
allowsRemoving && /* @__PURE__ */ jsx86(
|
|
3539
3205
|
CloseButton2,
|
|
3540
3206
|
{
|
|
3541
|
-
className:
|
|
3207
|
+
className: cn47("flex items-center", classNames2.closeButton)
|
|
3542
3208
|
}
|
|
3543
3209
|
)
|
|
3544
3210
|
] }) });
|
|
@@ -3549,11 +3215,11 @@ _Tag.Group = _TagGroup;
|
|
|
3549
3215
|
import { VisuallyHidden } from "@react-aria/visually-hidden";
|
|
3550
3216
|
|
|
3551
3217
|
// src/XLoader/XLoader.tsx
|
|
3552
|
-
import { forwardRef as
|
|
3553
|
-
import { SVG as
|
|
3554
|
-
import { jsx as
|
|
3555
|
-
var XLoader =
|
|
3556
|
-
|
|
3218
|
+
import { forwardRef as forwardRef22 } from "react";
|
|
3219
|
+
import { SVG as SVG5 } from "@marigold/system";
|
|
3220
|
+
import { jsx as jsx87, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
3221
|
+
var XLoader = forwardRef22((props, ref) => /* @__PURE__ */ jsxs33(
|
|
3222
|
+
SVG5,
|
|
3557
3223
|
{
|
|
3558
3224
|
id: "XLoader",
|
|
3559
3225
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3562,13 +3228,13 @@ var XLoader = forwardRef23((props, ref) => /* @__PURE__ */ jsxs37(
|
|
|
3562
3228
|
...props,
|
|
3563
3229
|
...ref,
|
|
3564
3230
|
children: [
|
|
3565
|
-
/* @__PURE__ */
|
|
3566
|
-
/* @__PURE__ */
|
|
3231
|
+
/* @__PURE__ */ jsx87("path", { id: "XMLID_1_", d: "M35.3 27h26.5l54 74.1H88.7z" }),
|
|
3232
|
+
/* @__PURE__ */ jsx87(
|
|
3567
3233
|
"path",
|
|
3568
3234
|
{
|
|
3569
3235
|
id: "XMLID_5_",
|
|
3570
3236
|
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",
|
|
3571
|
-
children: /* @__PURE__ */
|
|
3237
|
+
children: /* @__PURE__ */ jsx87(
|
|
3572
3238
|
"animate",
|
|
3573
3239
|
{
|
|
3574
3240
|
attributeName: "opacity",
|
|
@@ -3581,12 +3247,12 @@ var XLoader = forwardRef23((props, ref) => /* @__PURE__ */ jsxs37(
|
|
|
3581
3247
|
)
|
|
3582
3248
|
}
|
|
3583
3249
|
),
|
|
3584
|
-
/* @__PURE__ */
|
|
3250
|
+
/* @__PURE__ */ jsx87(
|
|
3585
3251
|
"path",
|
|
3586
3252
|
{
|
|
3587
3253
|
id: "XMLID_18_",
|
|
3588
3254
|
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",
|
|
3589
|
-
children: /* @__PURE__ */
|
|
3255
|
+
children: /* @__PURE__ */ jsx87(
|
|
3590
3256
|
"animate",
|
|
3591
3257
|
{
|
|
3592
3258
|
attributeName: "opacity",
|
|
@@ -3599,12 +3265,12 @@ var XLoader = forwardRef23((props, ref) => /* @__PURE__ */ jsxs37(
|
|
|
3599
3265
|
)
|
|
3600
3266
|
}
|
|
3601
3267
|
),
|
|
3602
|
-
/* @__PURE__ */
|
|
3268
|
+
/* @__PURE__ */ jsx87(
|
|
3603
3269
|
"path",
|
|
3604
3270
|
{
|
|
3605
3271
|
id: "XMLID_19_",
|
|
3606
3272
|
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",
|
|
3607
|
-
children: /* @__PURE__ */
|
|
3273
|
+
children: /* @__PURE__ */ jsx87(
|
|
3608
3274
|
"animate",
|
|
3609
3275
|
{
|
|
3610
3276
|
attributeName: "opacity",
|
|
@@ -3617,12 +3283,12 @@ var XLoader = forwardRef23((props, ref) => /* @__PURE__ */ jsxs37(
|
|
|
3617
3283
|
)
|
|
3618
3284
|
}
|
|
3619
3285
|
),
|
|
3620
|
-
/* @__PURE__ */
|
|
3286
|
+
/* @__PURE__ */ jsx87(
|
|
3621
3287
|
"path",
|
|
3622
3288
|
{
|
|
3623
3289
|
id: "XMLID_20_",
|
|
3624
3290
|
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",
|
|
3625
|
-
children: /* @__PURE__ */
|
|
3291
|
+
children: /* @__PURE__ */ jsx87(
|
|
3626
3292
|
"animate",
|
|
3627
3293
|
{
|
|
3628
3294
|
attributeName: "opacity",
|
|
@@ -3635,12 +3301,12 @@ var XLoader = forwardRef23((props, ref) => /* @__PURE__ */ jsxs37(
|
|
|
3635
3301
|
)
|
|
3636
3302
|
}
|
|
3637
3303
|
),
|
|
3638
|
-
/* @__PURE__ */
|
|
3304
|
+
/* @__PURE__ */ jsx87(
|
|
3639
3305
|
"path",
|
|
3640
3306
|
{
|
|
3641
3307
|
id: "XMLID_21_",
|
|
3642
3308
|
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",
|
|
3643
|
-
children: /* @__PURE__ */
|
|
3309
|
+
children: /* @__PURE__ */ jsx87(
|
|
3644
3310
|
"animate",
|
|
3645
3311
|
{
|
|
3646
3312
|
attributeName: "opacity",
|
|
@@ -3653,12 +3319,12 @@ var XLoader = forwardRef23((props, ref) => /* @__PURE__ */ jsxs37(
|
|
|
3653
3319
|
)
|
|
3654
3320
|
}
|
|
3655
3321
|
),
|
|
3656
|
-
/* @__PURE__ */
|
|
3322
|
+
/* @__PURE__ */ jsx87(
|
|
3657
3323
|
"path",
|
|
3658
3324
|
{
|
|
3659
3325
|
id: "XMLID_22_",
|
|
3660
3326
|
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",
|
|
3661
|
-
children: /* @__PURE__ */
|
|
3327
|
+
children: /* @__PURE__ */ jsx87(
|
|
3662
3328
|
"animate",
|
|
3663
3329
|
{
|
|
3664
3330
|
attributeName: "opacity",
|
|
@@ -3671,12 +3337,12 @@ var XLoader = forwardRef23((props, ref) => /* @__PURE__ */ jsxs37(
|
|
|
3671
3337
|
)
|
|
3672
3338
|
}
|
|
3673
3339
|
),
|
|
3674
|
-
/* @__PURE__ */
|
|
3340
|
+
/* @__PURE__ */ jsx87(
|
|
3675
3341
|
"path",
|
|
3676
3342
|
{
|
|
3677
3343
|
id: "XMLID_23_",
|
|
3678
3344
|
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",
|
|
3679
|
-
children: /* @__PURE__ */
|
|
3345
|
+
children: /* @__PURE__ */ jsx87(
|
|
3680
3346
|
"animate",
|
|
3681
3347
|
{
|
|
3682
3348
|
attributeName: "opacity",
|
|
@@ -3689,12 +3355,12 @@ var XLoader = forwardRef23((props, ref) => /* @__PURE__ */ jsxs37(
|
|
|
3689
3355
|
)
|
|
3690
3356
|
}
|
|
3691
3357
|
),
|
|
3692
|
-
/* @__PURE__ */
|
|
3358
|
+
/* @__PURE__ */ jsx87(
|
|
3693
3359
|
"path",
|
|
3694
3360
|
{
|
|
3695
3361
|
id: "XMLID_24_",
|
|
3696
3362
|
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",
|
|
3697
|
-
children: /* @__PURE__ */
|
|
3363
|
+
children: /* @__PURE__ */ jsx87(
|
|
3698
3364
|
"animate",
|
|
3699
3365
|
{
|
|
3700
3366
|
attributeName: "opacity",
|
|
@@ -3707,12 +3373,12 @@ var XLoader = forwardRef23((props, ref) => /* @__PURE__ */ jsxs37(
|
|
|
3707
3373
|
)
|
|
3708
3374
|
}
|
|
3709
3375
|
),
|
|
3710
|
-
/* @__PURE__ */
|
|
3376
|
+
/* @__PURE__ */ jsx87(
|
|
3711
3377
|
"path",
|
|
3712
3378
|
{
|
|
3713
3379
|
id: "XMLID_25_",
|
|
3714
3380
|
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",
|
|
3715
|
-
children: /* @__PURE__ */
|
|
3381
|
+
children: /* @__PURE__ */ jsx87(
|
|
3716
3382
|
"animate",
|
|
3717
3383
|
{
|
|
3718
3384
|
attributeName: "opacity",
|
|
@@ -3725,12 +3391,12 @@ var XLoader = forwardRef23((props, ref) => /* @__PURE__ */ jsxs37(
|
|
|
3725
3391
|
)
|
|
3726
3392
|
}
|
|
3727
3393
|
),
|
|
3728
|
-
/* @__PURE__ */
|
|
3394
|
+
/* @__PURE__ */ jsx87(
|
|
3729
3395
|
"path",
|
|
3730
3396
|
{
|
|
3731
3397
|
id: "XMLID_26_",
|
|
3732
3398
|
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",
|
|
3733
|
-
children: /* @__PURE__ */
|
|
3399
|
+
children: /* @__PURE__ */ jsx87(
|
|
3734
3400
|
"animate",
|
|
3735
3401
|
{
|
|
3736
3402
|
attributeName: "opacity",
|
|
@@ -3743,12 +3409,12 @@ var XLoader = forwardRef23((props, ref) => /* @__PURE__ */ jsxs37(
|
|
|
3743
3409
|
)
|
|
3744
3410
|
}
|
|
3745
3411
|
),
|
|
3746
|
-
/* @__PURE__ */
|
|
3412
|
+
/* @__PURE__ */ jsx87(
|
|
3747
3413
|
"path",
|
|
3748
3414
|
{
|
|
3749
3415
|
id: "XMLID_27_",
|
|
3750
3416
|
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",
|
|
3751
|
-
children: /* @__PURE__ */
|
|
3417
|
+
children: /* @__PURE__ */ jsx87(
|
|
3752
3418
|
"animate",
|
|
3753
3419
|
{
|
|
3754
3420
|
attributeName: "opacity",
|
|
@@ -3767,7 +3433,7 @@ var XLoader = forwardRef23((props, ref) => /* @__PURE__ */ jsxs37(
|
|
|
3767
3433
|
|
|
3768
3434
|
// src/Tabs/Tabs.tsx
|
|
3769
3435
|
import { Tabs } from "react-aria-components";
|
|
3770
|
-
import { useClassNames as
|
|
3436
|
+
import { useClassNames as useClassNames48 } from "@marigold/system";
|
|
3771
3437
|
|
|
3772
3438
|
// src/Tabs/Context.ts
|
|
3773
3439
|
import { createContext as createContext6, useContext as useContext11 } from "react";
|
|
@@ -3776,15 +3442,15 @@ var useTabContext = () => useContext11(TabContext);
|
|
|
3776
3442
|
|
|
3777
3443
|
// src/Tabs/Tab.tsx
|
|
3778
3444
|
import { Tab } from "react-aria-components";
|
|
3779
|
-
import { cn as
|
|
3780
|
-
import { jsx as
|
|
3445
|
+
import { cn as cn48 } from "@marigold/system";
|
|
3446
|
+
import { jsx as jsx88 } from "react/jsx-runtime";
|
|
3781
3447
|
var _Tab = (props) => {
|
|
3782
3448
|
const { classNames: classNames2 } = useTabContext();
|
|
3783
|
-
return /* @__PURE__ */
|
|
3449
|
+
return /* @__PURE__ */ jsx88(
|
|
3784
3450
|
Tab,
|
|
3785
3451
|
{
|
|
3786
3452
|
...props,
|
|
3787
|
-
className:
|
|
3453
|
+
className: cn48(
|
|
3788
3454
|
"flex cursor-pointer justify-center aria-disabled:cursor-not-allowed",
|
|
3789
3455
|
classNames2.tab
|
|
3790
3456
|
),
|
|
@@ -3795,15 +3461,15 @@ var _Tab = (props) => {
|
|
|
3795
3461
|
|
|
3796
3462
|
// src/Tabs/TabList.tsx
|
|
3797
3463
|
import { TabList } from "react-aria-components";
|
|
3798
|
-
import { cn as
|
|
3799
|
-
import { jsx as
|
|
3464
|
+
import { cn as cn49, gapSpace as gapSpace8 } from "@marigold/system";
|
|
3465
|
+
import { jsx as jsx89 } from "react/jsx-runtime";
|
|
3800
3466
|
var _TabList = ({ space = 2, ...props }) => {
|
|
3801
3467
|
const { classNames: classNames2 } = useTabContext();
|
|
3802
|
-
return /* @__PURE__ */
|
|
3468
|
+
return /* @__PURE__ */ jsx89(
|
|
3803
3469
|
TabList,
|
|
3804
3470
|
{
|
|
3805
3471
|
...props,
|
|
3806
|
-
className:
|
|
3472
|
+
className: cn49("flex", gapSpace8[space], classNames2.tabsList),
|
|
3807
3473
|
children: props.children
|
|
3808
3474
|
}
|
|
3809
3475
|
);
|
|
@@ -3811,25 +3477,25 @@ var _TabList = ({ space = 2, ...props }) => {
|
|
|
3811
3477
|
|
|
3812
3478
|
// src/Tabs/TabPanel.tsx
|
|
3813
3479
|
import { TabPanel } from "react-aria-components";
|
|
3814
|
-
import { jsx as
|
|
3480
|
+
import { jsx as jsx90 } from "react/jsx-runtime";
|
|
3815
3481
|
var _TabPanel = (props) => {
|
|
3816
3482
|
const { classNames: classNames2 } = useTabContext();
|
|
3817
|
-
return /* @__PURE__ */
|
|
3483
|
+
return /* @__PURE__ */ jsx90(TabPanel, { ...props, className: classNames2.tabpanel, children: props.children });
|
|
3818
3484
|
};
|
|
3819
3485
|
|
|
3820
3486
|
// src/Tabs/Tabs.tsx
|
|
3821
|
-
import { jsx as
|
|
3487
|
+
import { jsx as jsx91 } from "react/jsx-runtime";
|
|
3822
3488
|
var _Tabs = ({ disabled, variant, size = "medium", ...rest }) => {
|
|
3823
3489
|
const props = {
|
|
3824
3490
|
isDisabled: disabled,
|
|
3825
3491
|
...rest
|
|
3826
3492
|
};
|
|
3827
|
-
const classNames2 =
|
|
3493
|
+
const classNames2 = useClassNames48({
|
|
3828
3494
|
component: "Tabs",
|
|
3829
3495
|
size,
|
|
3830
3496
|
variant
|
|
3831
3497
|
});
|
|
3832
|
-
return /* @__PURE__ */
|
|
3498
|
+
return /* @__PURE__ */ jsx91(TabContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ jsx91(Tabs, { ...props, className: classNames2.container, children: props.children }) });
|
|
3833
3499
|
};
|
|
3834
3500
|
_Tabs.List = _TabList;
|
|
3835
3501
|
_Tabs.TabPanel = _TabPanel;
|
|
@@ -3854,14 +3520,15 @@ export {
|
|
|
3854
3520
|
Columns,
|
|
3855
3521
|
_ComboBox as ComboBox,
|
|
3856
3522
|
Container,
|
|
3857
|
-
DateField,
|
|
3858
|
-
DatePicker,
|
|
3523
|
+
_DateField as DateField,
|
|
3524
|
+
_DatePicker as DatePicker,
|
|
3859
3525
|
_Dialog as Dialog,
|
|
3860
3526
|
_Divider as Divider,
|
|
3861
|
-
|
|
3527
|
+
FieldBase,
|
|
3862
3528
|
FieldGroup,
|
|
3863
3529
|
FieldGroupContext,
|
|
3864
3530
|
Footer,
|
|
3531
|
+
Form,
|
|
3865
3532
|
_Header as Header,
|
|
3866
3533
|
_Headline as Headline,
|
|
3867
3534
|
Image,
|
|
@@ -3876,8 +3543,7 @@ export {
|
|
|
3876
3543
|
Message,
|
|
3877
3544
|
_Modal as Modal,
|
|
3878
3545
|
_NumberField as NumberField,
|
|
3879
|
-
|
|
3880
|
-
Popover2 as Popover,
|
|
3546
|
+
_Popover as Popover,
|
|
3881
3547
|
_Radio as Radio,
|
|
3882
3548
|
_RadioGroup as RadioGroup,
|
|
3883
3549
|
_SearchField as SearchField,
|
|
@@ -3895,8 +3561,6 @@ export {
|
|
|
3895
3561
|
ThemeProvider2 as ThemeProvider,
|
|
3896
3562
|
Tiles,
|
|
3897
3563
|
_Tooltip as Tooltip,
|
|
3898
|
-
Tray,
|
|
3899
|
-
TrayWrapper,
|
|
3900
3564
|
Underlay,
|
|
3901
3565
|
VisuallyHidden,
|
|
3902
3566
|
XLoader,
|
|
@@ -3904,5 +3568,5 @@ export {
|
|
|
3904
3568
|
useAsyncList,
|
|
3905
3569
|
useFieldGroupContext,
|
|
3906
3570
|
useListData,
|
|
3907
|
-
|
|
3571
|
+
useTheme5 as useTheme
|
|
3908
3572
|
};
|