@marigold/components 12.0.4 → 13.0.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 +74 -65
- package/dist/index.d.ts +74 -65
- package/dist/index.js +983 -1005
- package/dist/index.mjs +739 -758
- package/package.json +25 -25
package/dist/index.mjs
CHANGED
|
@@ -206,7 +206,7 @@ var require_react_is_development = __commonJS({
|
|
|
206
206
|
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
207
207
|
var Element2 = REACT_ELEMENT_TYPE;
|
|
208
208
|
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
209
|
-
var
|
|
209
|
+
var Fragment12 = REACT_FRAGMENT_TYPE;
|
|
210
210
|
var Lazy = REACT_LAZY_TYPE;
|
|
211
211
|
var Memo = REACT_MEMO_TYPE;
|
|
212
212
|
var Portal = REACT_PORTAL_TYPE;
|
|
@@ -265,7 +265,7 @@ var require_react_is_development = __commonJS({
|
|
|
265
265
|
exports.ContextProvider = ContextProvider;
|
|
266
266
|
exports.Element = Element2;
|
|
267
267
|
exports.ForwardRef = ForwardRef;
|
|
268
|
-
exports.Fragment =
|
|
268
|
+
exports.Fragment = Fragment12;
|
|
269
269
|
exports.Lazy = Lazy;
|
|
270
270
|
exports.Memo = Memo;
|
|
271
271
|
exports.Portal = Portal;
|
|
@@ -1070,47 +1070,27 @@ var HelpText = ({
|
|
|
1070
1070
|
|
|
1071
1071
|
// src/Label/Label.tsx
|
|
1072
1072
|
import { Label } from "react-aria-components";
|
|
1073
|
-
import { SVG as SVG2, cn as cn5,
|
|
1074
|
-
|
|
1075
|
-
// src/FieldBase/FieldGroup.tsx
|
|
1076
|
-
import { createContext as createContext2, useContext as useContext4 } from "react";
|
|
1077
|
-
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
1078
|
-
var FieldGroupContext = createContext2({});
|
|
1079
|
-
var useFieldGroupContext = () => useContext4(FieldGroupContext);
|
|
1080
|
-
var FieldGroup = ({ labelWidth, children }) => {
|
|
1081
|
-
return /* @__PURE__ */ jsx9(FieldGroupContext.Provider, { value: { labelWidth }, children });
|
|
1082
|
-
};
|
|
1083
|
-
|
|
1084
|
-
// src/Label/Label.tsx
|
|
1085
|
-
import { jsx as jsx10, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
1073
|
+
import { SVG as SVG2, cn as cn5, useClassNames as useClassNames3 } from "@marigold/system";
|
|
1074
|
+
import { jsx as jsx9, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
1086
1075
|
var _Label = ({ size: size2, variant, children, ...props }) => {
|
|
1087
1076
|
const classNames3 = useClassNames3({ component: "Label", size: size2, variant });
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
/* @__PURE__ */
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
role: "presentation",
|
|
1102
|
-
size: 16,
|
|
1103
|
-
className: cn5("hidden", classNames3.indicator),
|
|
1104
|
-
children: /* @__PURE__ */ jsx10("path", { d: "M10.8 3.84003H13.2V9.85259L18.1543 7.01815L19.3461 9.10132L14.3584 11.9549L19.3371 14.7999L18.1463 16.8836L13.2 14.0572V20.16H10.8V13.9907L5.76116 16.8735L4.56935 14.7903L9.5232 11.9561L4.56 9.12003L5.75073 7.03624L10.8 9.92154V3.84003Z" })
|
|
1105
|
-
}
|
|
1106
|
-
)
|
|
1107
|
-
]
|
|
1108
|
-
}
|
|
1109
|
-
);
|
|
1077
|
+
return /* @__PURE__ */ jsxs4(Label, { ...props, className: cn5(classNames3.container, "inline-flex"), children: [
|
|
1078
|
+
children,
|
|
1079
|
+
/* @__PURE__ */ jsx9(
|
|
1080
|
+
SVG2,
|
|
1081
|
+
{
|
|
1082
|
+
viewBox: "0 0 24 24",
|
|
1083
|
+
role: "presentation",
|
|
1084
|
+
size: 16,
|
|
1085
|
+
className: cn5("hidden", classNames3.indicator),
|
|
1086
|
+
children: /* @__PURE__ */ jsx9("path", { d: "M10.8 3.84003H13.2V9.85259L18.1543 7.01815L19.3461 9.10132L14.3584 11.9549L19.3371 14.7999L18.1463 16.8836L13.2 14.0572V20.16H10.8V13.9907L5.76116 16.8735L4.56935 14.7903L9.5232 11.9561L4.56 9.12003L5.75073 7.03624L10.8 9.92154V3.84003Z" })
|
|
1087
|
+
}
|
|
1088
|
+
)
|
|
1089
|
+
] });
|
|
1110
1090
|
};
|
|
1111
1091
|
|
|
1112
1092
|
// src/FieldBase/FieldBase.tsx
|
|
1113
|
-
import { jsx as
|
|
1093
|
+
import { jsx as jsx10, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
1114
1094
|
var fixedForwardRef = forwardRef2;
|
|
1115
1095
|
var _FieldBase = (props, ref) => {
|
|
1116
1096
|
const {
|
|
@@ -1137,6 +1117,7 @@ var _FieldBase = (props, ref) => {
|
|
|
1137
1117
|
ref,
|
|
1138
1118
|
className: cn6(
|
|
1139
1119
|
"group/field",
|
|
1120
|
+
"flex flex-col",
|
|
1140
1121
|
twWidth[width],
|
|
1141
1122
|
classNames3,
|
|
1142
1123
|
className,
|
|
@@ -1146,9 +1127,9 @@ var _FieldBase = (props, ref) => {
|
|
|
1146
1127
|
"data-error": props.isInvalid ? true : void 0,
|
|
1147
1128
|
...rest,
|
|
1148
1129
|
children: [
|
|
1149
|
-
label ? /* @__PURE__ */
|
|
1130
|
+
label ? /* @__PURE__ */ jsx10(_Label, { variant, size: size2, children: label }) : /* @__PURE__ */ jsx10("span", { "aria-hidden": "true" }),
|
|
1150
1131
|
children,
|
|
1151
|
-
/* @__PURE__ */
|
|
1132
|
+
/* @__PURE__ */ jsx10(
|
|
1152
1133
|
HelpText,
|
|
1153
1134
|
{
|
|
1154
1135
|
variant,
|
|
@@ -1173,7 +1154,7 @@ import { cn as cn8 } from "@marigold/system";
|
|
|
1173
1154
|
import { cloneElement, forwardRef as forwardRef3 } from "react";
|
|
1174
1155
|
import { Input } from "react-aria-components";
|
|
1175
1156
|
import { cn as cn7, useClassNames as useClassNames5 } from "@marigold/system";
|
|
1176
|
-
import { jsx as
|
|
1157
|
+
import { jsx as jsx11, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1177
1158
|
var _Input = forwardRef3(
|
|
1178
1159
|
({ type, icon, action, variant, size: size2, className, ...props }, ref) => {
|
|
1179
1160
|
const classNames3 = useClassNames5({
|
|
@@ -1205,7 +1186,7 @@ var _Input = forwardRef3(
|
|
|
1205
1186
|
"data-action": action && "",
|
|
1206
1187
|
children: [
|
|
1207
1188
|
inputIcon,
|
|
1208
|
-
/* @__PURE__ */
|
|
1189
|
+
/* @__PURE__ */ jsx11(
|
|
1209
1190
|
Input,
|
|
1210
1191
|
{
|
|
1211
1192
|
...props,
|
|
@@ -1229,7 +1210,7 @@ var _Input = forwardRef3(
|
|
|
1229
1210
|
);
|
|
1230
1211
|
|
|
1231
1212
|
// src/Input/SearchInput.tsx
|
|
1232
|
-
import { jsx as
|
|
1213
|
+
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
1233
1214
|
var intlMessages = {
|
|
1234
1215
|
"de-DE": {
|
|
1235
1216
|
"Clear search": "Suche zur\xFCcksetzen"
|
|
@@ -1241,7 +1222,7 @@ var intlMessages = {
|
|
|
1241
1222
|
"Clear search": "Effacer la recherche"
|
|
1242
1223
|
}
|
|
1243
1224
|
};
|
|
1244
|
-
var SearchIcon = (props) => /* @__PURE__ */
|
|
1225
|
+
var SearchIcon = (props) => /* @__PURE__ */ jsx12(
|
|
1245
1226
|
"svg",
|
|
1246
1227
|
{
|
|
1247
1228
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1250,13 +1231,13 @@ var SearchIcon = (props) => /* @__PURE__ */ jsx13(
|
|
|
1250
1231
|
width: 24,
|
|
1251
1232
|
height: 24,
|
|
1252
1233
|
...props,
|
|
1253
|
-
children: /* @__PURE__ */
|
|
1234
|
+
children: /* @__PURE__ */ jsx12("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" })
|
|
1254
1235
|
}
|
|
1255
1236
|
);
|
|
1256
1237
|
var SearchInput = forwardRef4(
|
|
1257
1238
|
({ className, onClear, ...props }, ref) => {
|
|
1258
1239
|
const stringFormatter = useLocalizedStringFormatter(intlMessages);
|
|
1259
|
-
return /* @__PURE__ */
|
|
1240
|
+
return /* @__PURE__ */ jsx12(
|
|
1260
1241
|
_Input,
|
|
1261
1242
|
{
|
|
1262
1243
|
type: "search",
|
|
@@ -1265,8 +1246,8 @@ var SearchInput = forwardRef4(
|
|
|
1265
1246
|
className == null ? void 0 : className.input
|
|
1266
1247
|
),
|
|
1267
1248
|
ref,
|
|
1268
|
-
icon: /* @__PURE__ */
|
|
1269
|
-
action: /* @__PURE__ */
|
|
1249
|
+
icon: /* @__PURE__ */ jsx12(SearchIcon, {}),
|
|
1250
|
+
action: /* @__PURE__ */ jsx12(
|
|
1270
1251
|
Button2,
|
|
1271
1252
|
{
|
|
1272
1253
|
className: className == null ? void 0 : className.action,
|
|
@@ -1274,7 +1255,7 @@ var SearchInput = forwardRef4(
|
|
|
1274
1255
|
"aria-label": stringFormatter.format("Clear search"),
|
|
1275
1256
|
excludeFromTabOrder: true,
|
|
1276
1257
|
preventFocusOnPress: true,
|
|
1277
|
-
children: /* @__PURE__ */
|
|
1258
|
+
children: /* @__PURE__ */ jsx12(
|
|
1278
1259
|
"svg",
|
|
1279
1260
|
{
|
|
1280
1261
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1282,7 +1263,7 @@ var SearchInput = forwardRef4(
|
|
|
1282
1263
|
fill: "currentColor",
|
|
1283
1264
|
width: 20,
|
|
1284
1265
|
height: 20,
|
|
1285
|
-
children: /* @__PURE__ */
|
|
1266
|
+
children: /* @__PURE__ */ jsx12("path", { d: "M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 00-1.06-1.06L10 8.94 6.28 5.22z" })
|
|
1286
1267
|
}
|
|
1287
1268
|
)
|
|
1288
1269
|
}
|
|
@@ -1301,14 +1282,14 @@ import { ListBox } from "react-aria-components";
|
|
|
1301
1282
|
import { cn as cn10, useClassNames as useClassNames6 } from "@marigold/system";
|
|
1302
1283
|
|
|
1303
1284
|
// src/ListBox/Context.ts
|
|
1304
|
-
import { createContext as
|
|
1305
|
-
var ListBoxContext =
|
|
1306
|
-
var useListBoxContext = () =>
|
|
1285
|
+
import { createContext as createContext2, useContext as useContext4 } from "react";
|
|
1286
|
+
var ListBoxContext = createContext2({});
|
|
1287
|
+
var useListBoxContext = () => useContext4(ListBoxContext);
|
|
1307
1288
|
|
|
1308
1289
|
// src/ListBox/ListBoxItem.tsx
|
|
1309
1290
|
import { ListBoxItem } from "react-aria-components";
|
|
1310
|
-
import {
|
|
1311
|
-
var CheckMark = ({ className }) => /* @__PURE__ */
|
|
1291
|
+
import { jsx as jsx13, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1292
|
+
var CheckMark = ({ className }) => /* @__PURE__ */ jsx13("svg", { width: "12px", height: "10px", viewBox: "0 0 12 10", className, children: /* @__PURE__ */ jsx13(
|
|
1312
1293
|
"path",
|
|
1313
1294
|
{
|
|
1314
1295
|
fill: "currentColor",
|
|
@@ -1319,14 +1300,14 @@ var CheckMark = ({ className }) => /* @__PURE__ */ jsx14("svg", { width: "12px",
|
|
|
1319
1300
|
var _ListBoxItem = ({ ...props }) => {
|
|
1320
1301
|
var _a;
|
|
1321
1302
|
const { classNames: classNames3 } = useListBoxContext();
|
|
1322
|
-
return /* @__PURE__ */
|
|
1303
|
+
return /* @__PURE__ */ jsx13(
|
|
1323
1304
|
ListBoxItem,
|
|
1324
1305
|
{
|
|
1325
1306
|
...props,
|
|
1326
1307
|
className: classNames3.item,
|
|
1327
1308
|
textValue: (_a = props.textValue) != null ? _a : String(props.children),
|
|
1328
|
-
children: /* @__PURE__ */ jsxs7(
|
|
1329
|
-
/* @__PURE__ */
|
|
1309
|
+
children: /* @__PURE__ */ jsxs7("div", { className: "selection-indicator contents", children: [
|
|
1310
|
+
/* @__PURE__ */ jsx13(CheckMark, { className: "hidden" }),
|
|
1330
1311
|
props.children
|
|
1331
1312
|
] })
|
|
1332
1313
|
}
|
|
@@ -1336,7 +1317,7 @@ var _ListBoxItem = ({ ...props }) => {
|
|
|
1336
1317
|
// src/ListBox/ListBoxSection.tsx
|
|
1337
1318
|
import { Header, ListBoxSection } from "react-aria-components";
|
|
1338
1319
|
import { cn as cn9 } from "@marigold/system";
|
|
1339
|
-
import { jsx as
|
|
1320
|
+
import { jsx as jsx14, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1340
1321
|
var _Section = ({ header, children, ...props }) => {
|
|
1341
1322
|
const { classNames: classNames3 } = useListBoxContext();
|
|
1342
1323
|
return /* @__PURE__ */ jsxs8(
|
|
@@ -1345,7 +1326,7 @@ var _Section = ({ header, children, ...props }) => {
|
|
|
1345
1326
|
...props,
|
|
1346
1327
|
className: cn9(classNames3.section, classNames3.header),
|
|
1347
1328
|
children: [
|
|
1348
|
-
/* @__PURE__ */
|
|
1329
|
+
/* @__PURE__ */ jsx14(Header, { children: header }),
|
|
1349
1330
|
children
|
|
1350
1331
|
]
|
|
1351
1332
|
}
|
|
@@ -1353,12 +1334,12 @@ var _Section = ({ header, children, ...props }) => {
|
|
|
1353
1334
|
};
|
|
1354
1335
|
|
|
1355
1336
|
// src/ListBox/ListBox.tsx
|
|
1356
|
-
import { jsx as
|
|
1337
|
+
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
1357
1338
|
var _ListBox = forwardRef5(
|
|
1358
1339
|
({ variant, size: size2, ...props }, ref) => {
|
|
1359
1340
|
const classNames3 = useClassNames6({ component: "ListBox", variant, size: size2 });
|
|
1360
1341
|
const listBoxProps = { shouldSelectOnPressUp: false };
|
|
1361
|
-
return /* @__PURE__ */
|
|
1342
|
+
return /* @__PURE__ */ jsx15(ListBoxContext.Provider, { value: { classNames: classNames3 }, children: /* @__PURE__ */ jsx15("div", { className: classNames3.container, children: /* @__PURE__ */ jsx15(
|
|
1362
1343
|
ListBox,
|
|
1363
1344
|
{
|
|
1364
1345
|
...props,
|
|
@@ -1379,15 +1360,16 @@ _ListBox.Section = _Section;
|
|
|
1379
1360
|
// src/Overlay/Popover.tsx
|
|
1380
1361
|
import { forwardRef as forwardRef6 } from "react";
|
|
1381
1362
|
import { Popover } from "react-aria-components";
|
|
1363
|
+
import { UNSAFE_PortalProvider as UNSAFE_PortalProvider2 } from "@react-aria/overlays";
|
|
1382
1364
|
import { cn as cn12, useClassNames as useClassNames8, useSmallScreen } from "@marigold/system";
|
|
1383
1365
|
|
|
1384
1366
|
// src/Provider/OverlayContainerProvider.tsx
|
|
1385
|
-
import { createContext as
|
|
1367
|
+
import { createContext as createContext3, useContext as useContext5 } from "react";
|
|
1386
1368
|
import { useIsSSR } from "@react-aria/ssr";
|
|
1387
|
-
var OverlayContainerContext =
|
|
1369
|
+
var OverlayContainerContext = createContext3(void 0);
|
|
1388
1370
|
var OverlayContainerProvider = OverlayContainerContext.Provider;
|
|
1389
1371
|
var usePortalContainer = () => {
|
|
1390
|
-
const portalContainer =
|
|
1372
|
+
const portalContainer = useContext5(OverlayContainerContext);
|
|
1391
1373
|
const isSSR = useIsSSR();
|
|
1392
1374
|
const portal = isSSR ? void 0 : portalContainer ? document.getElementById(portalContainer) || void 0 : document.body;
|
|
1393
1375
|
return portal;
|
|
@@ -1395,6 +1377,7 @@ var usePortalContainer = () => {
|
|
|
1395
1377
|
|
|
1396
1378
|
// src/Overlay/Underlay.tsx
|
|
1397
1379
|
import { ModalOverlay } from "react-aria-components";
|
|
1380
|
+
import { UNSAFE_PortalProvider } from "@react-aria/overlays";
|
|
1398
1381
|
import { cn as cn11, useClassNames as useClassNames7 } from "@marigold/system";
|
|
1399
1382
|
|
|
1400
1383
|
// src/Provider/index.ts
|
|
@@ -1403,17 +1386,17 @@ import { I18nProvider } from "@react-aria/i18n";
|
|
|
1403
1386
|
|
|
1404
1387
|
// src/Provider/MarigoldProvider.tsx
|
|
1405
1388
|
import { ThemeProvider } from "@marigold/system";
|
|
1406
|
-
import { jsx as
|
|
1389
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
1407
1390
|
function MarigoldProvider({
|
|
1408
1391
|
children,
|
|
1409
1392
|
className,
|
|
1410
1393
|
theme
|
|
1411
1394
|
}) {
|
|
1412
|
-
return /* @__PURE__ */
|
|
1395
|
+
return /* @__PURE__ */ jsx16(ThemeProvider, { theme, className, children });
|
|
1413
1396
|
}
|
|
1414
1397
|
|
|
1415
1398
|
// src/Overlay/Underlay.tsx
|
|
1416
|
-
import { jsx as
|
|
1399
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
1417
1400
|
var Underlay = ({
|
|
1418
1401
|
size: size2,
|
|
1419
1402
|
variant,
|
|
@@ -1430,7 +1413,7 @@ var Underlay = ({
|
|
|
1430
1413
|
...rest
|
|
1431
1414
|
};
|
|
1432
1415
|
const portal = usePortalContainer();
|
|
1433
|
-
return /* @__PURE__ */
|
|
1416
|
+
return /* @__PURE__ */ jsx17(UNSAFE_PortalProvider, { getContainer: () => portal, children: /* @__PURE__ */ jsx17(
|
|
1434
1417
|
ModalOverlay,
|
|
1435
1418
|
{
|
|
1436
1419
|
className: ({ isEntering, isExiting }) => cn11(
|
|
@@ -1441,14 +1424,13 @@ var Underlay = ({
|
|
|
1441
1424
|
),
|
|
1442
1425
|
...props,
|
|
1443
1426
|
"data-testid": "underlay-id",
|
|
1444
|
-
UNSTABLE_portalContainer: portal,
|
|
1445
1427
|
children: props.children
|
|
1446
1428
|
}
|
|
1447
|
-
);
|
|
1429
|
+
) });
|
|
1448
1430
|
};
|
|
1449
1431
|
|
|
1450
1432
|
// src/Overlay/Popover.tsx
|
|
1451
|
-
import { Fragment
|
|
1433
|
+
import { Fragment, jsx as jsx18, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1452
1434
|
var _Popover = forwardRef6(
|
|
1453
1435
|
({ keyboardDismissDisabled, placement, open, children, container, ...rest }, ref) => {
|
|
1454
1436
|
const props = {
|
|
@@ -1465,38 +1447,48 @@ var _Popover = forwardRef6(
|
|
|
1465
1447
|
});
|
|
1466
1448
|
const isSmallScreen = useSmallScreen();
|
|
1467
1449
|
const portal = usePortalContainer();
|
|
1468
|
-
return /* @__PURE__ */
|
|
1469
|
-
|
|
1450
|
+
return /* @__PURE__ */ jsx18(Fragment, { children: isSmallScreen ? /* @__PURE__ */ jsx18(
|
|
1451
|
+
UNSAFE_PortalProvider2,
|
|
1470
1452
|
{
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1453
|
+
getContainer: () => portal instanceof HTMLElement ? portal : null,
|
|
1454
|
+
children: /* @__PURE__ */ jsxs9(
|
|
1455
|
+
Popover,
|
|
1456
|
+
{
|
|
1457
|
+
ref,
|
|
1458
|
+
...props,
|
|
1459
|
+
className: cn12(
|
|
1460
|
+
"fixed! top-auto! bottom-0! left-0! max-h-fit! w-full",
|
|
1461
|
+
classNames3
|
|
1462
|
+
),
|
|
1463
|
+
children: [
|
|
1464
|
+
children,
|
|
1465
|
+
/* @__PURE__ */ jsx18(Underlay, { open })
|
|
1466
|
+
]
|
|
1467
|
+
}
|
|
1468
|
+
)
|
|
1482
1469
|
}
|
|
1483
|
-
)
|
|
1484
|
-
|
|
1470
|
+
) : /* @__PURE__ */ jsx18(
|
|
1471
|
+
UNSAFE_PortalProvider2,
|
|
1485
1472
|
{
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1473
|
+
getContainer: () => portal instanceof HTMLElement ? portal : null,
|
|
1474
|
+
children: /* @__PURE__ */ jsx18(
|
|
1475
|
+
Popover,
|
|
1476
|
+
{
|
|
1477
|
+
ref,
|
|
1478
|
+
...props,
|
|
1479
|
+
className: classNames3,
|
|
1480
|
+
placement,
|
|
1481
|
+
offset: 0,
|
|
1482
|
+
children
|
|
1483
|
+
}
|
|
1484
|
+
)
|
|
1493
1485
|
}
|
|
1494
1486
|
) });
|
|
1495
1487
|
}
|
|
1496
1488
|
);
|
|
1497
1489
|
|
|
1498
1490
|
// src/Autocomplete/Autocomplete.tsx
|
|
1499
|
-
import { jsx as
|
|
1491
|
+
import { jsx as jsx19, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1500
1492
|
var AutocompleteInput = ({
|
|
1501
1493
|
onSubmit,
|
|
1502
1494
|
onClear,
|
|
@@ -1504,7 +1496,7 @@ var AutocompleteInput = ({
|
|
|
1504
1496
|
}) => {
|
|
1505
1497
|
const state = React.useContext(ComboBoxStateContext);
|
|
1506
1498
|
const classNames3 = useClassNames9({ component: "ComboBox" });
|
|
1507
|
-
return /* @__PURE__ */
|
|
1499
|
+
return /* @__PURE__ */ jsx19(
|
|
1508
1500
|
SearchInput,
|
|
1509
1501
|
{
|
|
1510
1502
|
ref,
|
|
@@ -1559,8 +1551,8 @@ var _Autocomplete = forwardRef7(
|
|
|
1559
1551
|
...rest
|
|
1560
1552
|
};
|
|
1561
1553
|
return /* @__PURE__ */ jsxs10(FieldBase, { as: ComboBox, ref, ...props, children: [
|
|
1562
|
-
/* @__PURE__ */
|
|
1563
|
-
/* @__PURE__ */
|
|
1554
|
+
/* @__PURE__ */ jsx19(AutocompleteInput, { onSubmit, onClear, ref }),
|
|
1555
|
+
/* @__PURE__ */ jsx19(_Popover, { children: /* @__PURE__ */ jsx19(_ListBox, { children }) })
|
|
1564
1556
|
] });
|
|
1565
1557
|
}
|
|
1566
1558
|
);
|
|
@@ -1575,7 +1567,7 @@ import { useClassNames as useClassNames11 } from "@marigold/system";
|
|
|
1575
1567
|
// src/IconButton/IconButton.tsx
|
|
1576
1568
|
import { Button as Button3 } from "react-aria-components";
|
|
1577
1569
|
import { cn as cn14, useClassNames as useClassNames10 } from "@marigold/system";
|
|
1578
|
-
import { jsx as
|
|
1570
|
+
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
1579
1571
|
var IconButton = ({
|
|
1580
1572
|
className,
|
|
1581
1573
|
children,
|
|
@@ -1588,7 +1580,7 @@ var IconButton = ({
|
|
|
1588
1580
|
variant,
|
|
1589
1581
|
size: size2
|
|
1590
1582
|
});
|
|
1591
|
-
return /* @__PURE__ */
|
|
1583
|
+
return /* @__PURE__ */ jsx20(
|
|
1592
1584
|
Button3,
|
|
1593
1585
|
{
|
|
1594
1586
|
className: cn14("shrink-0 cursor-pointer outline-0", classNames3, className),
|
|
@@ -1601,33 +1593,33 @@ var IconButton = ({
|
|
|
1601
1593
|
// src/icons/ChevronRight.tsx
|
|
1602
1594
|
import { forwardRef as forwardRef8 } from "react";
|
|
1603
1595
|
import { SVG as SVG3 } from "@marigold/system";
|
|
1604
|
-
import { jsx as
|
|
1596
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
1605
1597
|
var ChevronRight = forwardRef8(
|
|
1606
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
1598
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx21(SVG3, { className, ...props, viewBox: "0 0 24 24", ref, children: /* @__PURE__ */ jsx21("path", { d: "M7.125 18.0244L13.1363 12L7.125 5.97563L8.97563 4.125L16.8506 12L8.97563 19.875L7.125 18.0244Z" }) })
|
|
1607
1599
|
);
|
|
1608
1600
|
|
|
1609
1601
|
// src/icons/ChevronLeft.tsx
|
|
1610
1602
|
import { forwardRef as forwardRef9 } from "react";
|
|
1611
1603
|
import { SVG as SVG4 } from "@marigold/system";
|
|
1612
|
-
import { jsx as
|
|
1604
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
1613
1605
|
var ChevronLeft = forwardRef9(
|
|
1614
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
1606
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx22(SVG4, { className, ...props, viewBox: "0 0 24 24", ref, children: /* @__PURE__ */ jsx22("path", { d: "M16.8506 18.0244L10.8394 12L16.8506 5.97563L15 4.125L7.125 12L15 19.875L16.8506 18.0244Z" }) })
|
|
1615
1607
|
);
|
|
1616
1608
|
|
|
1617
1609
|
// src/icons/SortDown.tsx
|
|
1618
1610
|
import { forwardRef as forwardRef10 } from "react";
|
|
1619
1611
|
import { SVG as SVG5 } from "@marigold/system";
|
|
1620
|
-
import { jsx as
|
|
1621
|
-
var SortDown = forwardRef10((props, ref) => /* @__PURE__ */
|
|
1612
|
+
import { jsx as jsx23 } from "react/jsx-runtime";
|
|
1613
|
+
var SortDown = forwardRef10((props, ref) => /* @__PURE__ */ jsx23(SVG5, { ...props, viewBox: "0 0 24 24", ref, children: /* @__PURE__ */ jsx23("path", { d: "M17.3962 10.0496L12.5042 14.9416C12.3731 15.0727 12.1984 15.1492 12.0128 15.1492C11.8272 15.1492 11.6524 15.0727 11.5214 14.9416L6.62934 10.0496C6.49827 9.91854 6.42188 9.7439 6.42188 9.55816C6.42188 9.17606 6.73856 8.85938 7.12078 8.85938H16.9048C17.287 8.85938 17.6037 9.17606 17.6037 9.55816C17.6037 9.7439 17.5273 9.91854 17.3962 10.0496Z" }) }));
|
|
1622
1614
|
|
|
1623
1615
|
// src/icons/SortUp.tsx
|
|
1624
1616
|
import { forwardRef as forwardRef11 } from "react";
|
|
1625
1617
|
import { SVG as SVG6 } from "@marigold/system";
|
|
1626
|
-
import { jsx as
|
|
1627
|
-
var SortUp = forwardRef11((props, ref) => /* @__PURE__ */
|
|
1618
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
1619
|
+
var SortUp = forwardRef11((props, ref) => /* @__PURE__ */ jsx24(SVG6, { ...props, viewBox: "0 0 24 24", ref, children: /* @__PURE__ */ jsx24("path", { d: "M16.9048 15.1491H7.12078C6.73856 15.1491 6.42188 14.8324 6.42188 14.4503C6.42188 14.2645 6.49827 14.0899 6.62934 13.9588L11.5214 9.06684C11.6524 8.93577 11.8272 8.85938 12.0128 8.85938C12.1984 8.85938 12.3731 8.93577 12.5042 9.06684L17.3962 13.9588C17.5273 14.0899 17.6037 14.2645 17.6037 14.4503C17.6037 14.8324 17.287 15.1491 16.9048 15.1491Z" }) }));
|
|
1628
1620
|
|
|
1629
1621
|
// src/ComboBox/ComboBox.tsx
|
|
1630
|
-
import { jsx as
|
|
1622
|
+
import { jsx as jsx25, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1631
1623
|
var _ComboBox = forwardRef12(
|
|
1632
1624
|
({
|
|
1633
1625
|
variant,
|
|
@@ -1654,13 +1646,13 @@ var _ComboBox = forwardRef12(
|
|
|
1654
1646
|
};
|
|
1655
1647
|
const classNames3 = useClassNames11({ component: "ComboBox", variant, size: size2 });
|
|
1656
1648
|
return /* @__PURE__ */ jsxs11(FieldBase, { as: ComboBox2, ref, ...props, children: [
|
|
1657
|
-
/* @__PURE__ */
|
|
1649
|
+
/* @__PURE__ */ jsx25(
|
|
1658
1650
|
_Input,
|
|
1659
1651
|
{
|
|
1660
|
-
action: /* @__PURE__ */
|
|
1652
|
+
action: /* @__PURE__ */ jsx25(IconButton, { className: classNames3, children: /* @__PURE__ */ jsx25(ChevronDown, { className: "size-4" }) })
|
|
1661
1653
|
}
|
|
1662
1654
|
),
|
|
1663
|
-
/* @__PURE__ */
|
|
1655
|
+
/* @__PURE__ */ jsx25(_Popover, { children: /* @__PURE__ */ jsx25(_ListBox, { children }) })
|
|
1664
1656
|
] });
|
|
1665
1657
|
}
|
|
1666
1658
|
);
|
|
@@ -1669,24 +1661,24 @@ _ComboBox.Section = _ListBox.Section;
|
|
|
1669
1661
|
|
|
1670
1662
|
// src/Badge/Badge.tsx
|
|
1671
1663
|
import { useClassNames as useClassNames12 } from "@marigold/system";
|
|
1672
|
-
import { jsx as
|
|
1664
|
+
import { jsx as jsx26 } from "react/jsx-runtime";
|
|
1673
1665
|
var Badge = ({ variant, size: size2, children, ...props }) => {
|
|
1674
1666
|
const classNames3 = useClassNames12({ component: "Badge", variant, size: size2 });
|
|
1675
|
-
return /* @__PURE__ */
|
|
1667
|
+
return /* @__PURE__ */ jsx26("div", { className: classNames3, ...props, children });
|
|
1676
1668
|
};
|
|
1677
1669
|
|
|
1678
1670
|
// src/Breakout/Breakout.tsx
|
|
1679
|
-
import { jsx as
|
|
1671
|
+
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
1680
1672
|
var Breakout = ({ children }) => {
|
|
1681
|
-
return /* @__PURE__ */
|
|
1673
|
+
return /* @__PURE__ */ jsx27("div", { className: "![grid-column:1/-1]", children });
|
|
1682
1674
|
};
|
|
1683
1675
|
|
|
1684
1676
|
// src/Body/Body.tsx
|
|
1685
1677
|
import { useClassNames as useClassNames13 } from "@marigold/system";
|
|
1686
|
-
import { jsx as
|
|
1678
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
1687
1679
|
var Body = ({ children, variant, size: size2, ...props }) => {
|
|
1688
1680
|
const classNames3 = useClassNames13({ component: "Body", variant, size: size2 });
|
|
1689
|
-
return /* @__PURE__ */
|
|
1681
|
+
return /* @__PURE__ */ jsx28("section", { ...props, className: classNames3, children });
|
|
1690
1682
|
};
|
|
1691
1683
|
|
|
1692
1684
|
// src/Button/Button.tsx
|
|
@@ -1697,7 +1689,7 @@ import { cn as cn16, useClassNames as useClassNames15 } from "@marigold/system";
|
|
|
1697
1689
|
// src/ProgressCycle/ProgressCycle.tsx
|
|
1698
1690
|
import { ProgressBar } from "react-aria-components";
|
|
1699
1691
|
import { SVG as SVG7, cn as cn15, useClassNames as useClassNames14 } from "@marigold/system";
|
|
1700
|
-
import { jsx as
|
|
1692
|
+
import { jsx as jsx29, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1701
1693
|
var ProgressCycle = ({
|
|
1702
1694
|
size: size2 = "16",
|
|
1703
1695
|
...props
|
|
@@ -1710,7 +1702,7 @@ var ProgressCycle = ({
|
|
|
1710
1702
|
}
|
|
1711
1703
|
const radius = `calc(50% - ${strokeWidth / 2}px)`;
|
|
1712
1704
|
const classNames3 = useClassNames14({ component: "ProgressCycle" });
|
|
1713
|
-
return /* @__PURE__ */
|
|
1705
|
+
return /* @__PURE__ */ jsx29(ProgressBar, { ...props, "aria-label": "loading", isIndeterminate: true, children: /* @__PURE__ */ jsxs12(
|
|
1714
1706
|
SVG7,
|
|
1715
1707
|
{
|
|
1716
1708
|
className: "animate-rotate-spinner origin-center fill-none",
|
|
@@ -1718,7 +1710,7 @@ var ProgressCycle = ({
|
|
|
1718
1710
|
"aria-hidden": "true",
|
|
1719
1711
|
role: "img",
|
|
1720
1712
|
children: [
|
|
1721
|
-
/* @__PURE__ */
|
|
1713
|
+
/* @__PURE__ */ jsx29(
|
|
1722
1714
|
"circle",
|
|
1723
1715
|
{
|
|
1724
1716
|
cx: "50%",
|
|
@@ -1728,7 +1720,7 @@ var ProgressCycle = ({
|
|
|
1728
1720
|
className: "stroke-transparent"
|
|
1729
1721
|
}
|
|
1730
1722
|
),
|
|
1731
|
-
/* @__PURE__ */
|
|
1723
|
+
/* @__PURE__ */ jsx29(
|
|
1732
1724
|
"circle",
|
|
1733
1725
|
{
|
|
1734
1726
|
cx: "50%",
|
|
@@ -1751,7 +1743,7 @@ var ProgressCycle = ({
|
|
|
1751
1743
|
};
|
|
1752
1744
|
|
|
1753
1745
|
// src/Button/Button.tsx
|
|
1754
|
-
import { Fragment as
|
|
1746
|
+
import { Fragment as Fragment2, jsx as jsx30, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1755
1747
|
var _Button = forwardRef13(
|
|
1756
1748
|
({
|
|
1757
1749
|
children,
|
|
@@ -1769,7 +1761,7 @@ var _Button = forwardRef13(
|
|
|
1769
1761
|
size: size2,
|
|
1770
1762
|
className
|
|
1771
1763
|
});
|
|
1772
|
-
return /* @__PURE__ */
|
|
1764
|
+
return /* @__PURE__ */ jsx30(
|
|
1773
1765
|
Button4,
|
|
1774
1766
|
{
|
|
1775
1767
|
...props,
|
|
@@ -1782,9 +1774,9 @@ var _Button = forwardRef13(
|
|
|
1782
1774
|
),
|
|
1783
1775
|
isPending: loading,
|
|
1784
1776
|
isDisabled: disabled,
|
|
1785
|
-
children: loading ? /* @__PURE__ */ jsxs13(
|
|
1786
|
-
/* @__PURE__ */
|
|
1787
|
-
/* @__PURE__ */
|
|
1777
|
+
children: loading ? /* @__PURE__ */ jsxs13(Fragment2, { children: [
|
|
1778
|
+
/* @__PURE__ */ jsx30("span", { className: "absolute", children: /* @__PURE__ */ jsx30(ProgressCycle, {}) }),
|
|
1779
|
+
/* @__PURE__ */ jsx30("span", { className: "invisible flex gap-[inherit]", children })
|
|
1788
1780
|
] }) : children
|
|
1789
1781
|
}
|
|
1790
1782
|
);
|
|
@@ -1804,7 +1796,7 @@ import {
|
|
|
1804
1796
|
paddingTop,
|
|
1805
1797
|
useClassNames as useClassNames16
|
|
1806
1798
|
} from "@marigold/system";
|
|
1807
|
-
import { jsx as
|
|
1799
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
1808
1800
|
var Card = ({
|
|
1809
1801
|
children,
|
|
1810
1802
|
variant,
|
|
@@ -1820,7 +1812,7 @@ var Card = ({
|
|
|
1820
1812
|
...props
|
|
1821
1813
|
}) => {
|
|
1822
1814
|
const classNames3 = useClassNames16({ component: "Card", variant, size: size2 });
|
|
1823
|
-
return /* @__PURE__ */
|
|
1815
|
+
return /* @__PURE__ */ jsx31(
|
|
1824
1816
|
"div",
|
|
1825
1817
|
{
|
|
1826
1818
|
...props,
|
|
@@ -1842,15 +1834,15 @@ var Card = ({
|
|
|
1842
1834
|
};
|
|
1843
1835
|
|
|
1844
1836
|
// src/Center/Center.tsx
|
|
1845
|
-
import { cn as cn18, createVar as
|
|
1846
|
-
import { jsx as
|
|
1837
|
+
import { cn as cn18, createVar as createVar3, gapSpace as gapSpace3 } from "@marigold/system";
|
|
1838
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
1847
1839
|
var Center = ({
|
|
1848
1840
|
maxWidth = "100%",
|
|
1849
1841
|
space = 0,
|
|
1850
1842
|
children,
|
|
1851
1843
|
...props
|
|
1852
1844
|
}) => {
|
|
1853
|
-
return /* @__PURE__ */
|
|
1845
|
+
return /* @__PURE__ */ jsx32(
|
|
1854
1846
|
"div",
|
|
1855
1847
|
{
|
|
1856
1848
|
...props,
|
|
@@ -1859,7 +1851,7 @@ var Center = ({
|
|
|
1859
1851
|
gapSpace3[space],
|
|
1860
1852
|
"max-w-(--maxWidth)"
|
|
1861
1853
|
),
|
|
1862
|
-
style:
|
|
1854
|
+
style: createVar3({ maxWidth }),
|
|
1863
1855
|
children
|
|
1864
1856
|
}
|
|
1865
1857
|
);
|
|
@@ -1868,30 +1860,19 @@ var Center = ({
|
|
|
1868
1860
|
// src/Checkbox/Checkbox.tsx
|
|
1869
1861
|
import { forwardRef as forwardRef14 } from "react";
|
|
1870
1862
|
import { Checkbox } from "react-aria-components";
|
|
1871
|
-
import { cn as cn20, useClassNames as
|
|
1872
|
-
|
|
1873
|
-
// src/Checkbox/CheckBoxField.tsx
|
|
1874
|
-
import { createVar as createVar5, useClassNames as useClassNames17 } from "@marigold/system";
|
|
1875
|
-
import { jsx as jsx34, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
1876
|
-
var CheckboxField = ({ children, labelWidth }) => {
|
|
1877
|
-
const classNames3 = useClassNames17({ component: "Field" });
|
|
1878
|
-
return /* @__PURE__ */ jsxs14("div", { className: classNames3, children: [
|
|
1879
|
-
/* @__PURE__ */ jsx34("div", { className: "w-(--labelWidth)", style: createVar5({ labelWidth }) }),
|
|
1880
|
-
children
|
|
1881
|
-
] });
|
|
1882
|
-
};
|
|
1863
|
+
import { cn as cn20, useClassNames as useClassNames18 } from "@marigold/system";
|
|
1883
1864
|
|
|
1884
1865
|
// src/Checkbox/CheckboxGroup.tsx
|
|
1885
1866
|
import { CheckboxGroup } from "react-aria-components";
|
|
1886
|
-
import { cn as cn19, useClassNames as
|
|
1867
|
+
import { cn as cn19, useClassNames as useClassNames17 } from "@marigold/system";
|
|
1887
1868
|
|
|
1888
1869
|
// src/Checkbox/Context.tsx
|
|
1889
|
-
import { createContext as
|
|
1890
|
-
var CheckboxGroupContext =
|
|
1891
|
-
var useCheckboxGroupContext = () =>
|
|
1870
|
+
import { createContext as createContext4, useContext as useContext6 } from "react";
|
|
1871
|
+
var CheckboxGroupContext = createContext4(null);
|
|
1872
|
+
var useCheckboxGroupContext = () => useContext6(CheckboxGroupContext);
|
|
1892
1873
|
|
|
1893
1874
|
// src/Checkbox/CheckboxGroup.tsx
|
|
1894
|
-
import { jsx as
|
|
1875
|
+
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
1895
1876
|
var _CheckboxGroup = ({
|
|
1896
1877
|
children,
|
|
1897
1878
|
variant,
|
|
@@ -1904,7 +1885,7 @@ var _CheckboxGroup = ({
|
|
|
1904
1885
|
orientation = "vertical",
|
|
1905
1886
|
...rest
|
|
1906
1887
|
}) => {
|
|
1907
|
-
const classNames3 =
|
|
1888
|
+
const classNames3 = useClassNames17({
|
|
1908
1889
|
component: "Checkbox",
|
|
1909
1890
|
variant,
|
|
1910
1891
|
size: size2,
|
|
@@ -1918,7 +1899,7 @@ var _CheckboxGroup = ({
|
|
|
1918
1899
|
isInvalid: error,
|
|
1919
1900
|
...rest
|
|
1920
1901
|
};
|
|
1921
|
-
return /* @__PURE__ */
|
|
1902
|
+
return /* @__PURE__ */ jsx33(FieldBase, { as: CheckboxGroup, width, ...props, children: /* @__PURE__ */ jsx33(
|
|
1922
1903
|
"div",
|
|
1923
1904
|
{
|
|
1924
1905
|
role: "presentation",
|
|
@@ -1929,14 +1910,14 @@ var _CheckboxGroup = ({
|
|
|
1929
1910
|
"group/checkboxgroup flex items-start",
|
|
1930
1911
|
orientation === "vertical" ? "flex-col gap-[0.5ch]" : "flex-row gap-[1.5ch]"
|
|
1931
1912
|
),
|
|
1932
|
-
children: /* @__PURE__ */
|
|
1913
|
+
children: /* @__PURE__ */ jsx33(CheckboxGroupContext.Provider, { value: { width, variant, size: size2 }, children })
|
|
1933
1914
|
}
|
|
1934
1915
|
) });
|
|
1935
1916
|
};
|
|
1936
1917
|
|
|
1937
1918
|
// src/Checkbox/Checkbox.tsx
|
|
1938
|
-
import { Fragment as
|
|
1939
|
-
var CheckMark2 = () => /* @__PURE__ */
|
|
1919
|
+
import { Fragment as Fragment3, jsx as jsx34, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
1920
|
+
var CheckMark2 = () => /* @__PURE__ */ jsx34("svg", { width: "12px", height: "10px", viewBox: "0 0 12 10", children: /* @__PURE__ */ jsx34(
|
|
1940
1921
|
"path",
|
|
1941
1922
|
{
|
|
1942
1923
|
fill: "currentColor",
|
|
@@ -1944,7 +1925,7 @@ var CheckMark2 = () => /* @__PURE__ */ jsx36("svg", { width: "12px", height: "10
|
|
|
1944
1925
|
d: "M11.915 1.548 10.367 0 4.045 6.315 1.557 3.827 0 5.373l4.045 4.046 7.87-7.871Z"
|
|
1945
1926
|
}
|
|
1946
1927
|
) });
|
|
1947
|
-
var IndeterminateMark = () => /* @__PURE__ */
|
|
1928
|
+
var IndeterminateMark = () => /* @__PURE__ */ jsx34("svg", { width: "12px", height: "3px", viewBox: "0 0 12 3", children: /* @__PURE__ */ jsx34(
|
|
1948
1929
|
"path",
|
|
1949
1930
|
{
|
|
1950
1931
|
fill: "currentColor",
|
|
@@ -1953,7 +1934,7 @@ var IndeterminateMark = () => /* @__PURE__ */ jsx36("svg", { width: "12px", heig
|
|
|
1953
1934
|
}
|
|
1954
1935
|
) });
|
|
1955
1936
|
var Icon2 = ({ className, checked, indeterminate, ...props }) => {
|
|
1956
|
-
return /* @__PURE__ */
|
|
1937
|
+
return /* @__PURE__ */ jsx34(
|
|
1957
1938
|
"div",
|
|
1958
1939
|
{
|
|
1959
1940
|
"aria-hidden": "true",
|
|
@@ -1965,7 +1946,7 @@ var Icon2 = ({ className, checked, indeterminate, ...props }) => {
|
|
|
1965
1946
|
className
|
|
1966
1947
|
),
|
|
1967
1948
|
...props,
|
|
1968
|
-
children: indeterminate ? /* @__PURE__ */
|
|
1949
|
+
children: indeterminate ? /* @__PURE__ */ jsx34(IndeterminateMark, {}) : checked ? /* @__PURE__ */ jsx34(CheckMark2, {}) : null
|
|
1969
1950
|
}
|
|
1970
1951
|
);
|
|
1971
1952
|
};
|
|
@@ -1993,14 +1974,13 @@ var _Checkbox = forwardRef14(
|
|
|
1993
1974
|
defaultSelected: defaultChecked,
|
|
1994
1975
|
...rest
|
|
1995
1976
|
};
|
|
1996
|
-
const { labelWidth } = useFieldGroupContext();
|
|
1997
1977
|
const group = useCheckboxGroupContext();
|
|
1998
|
-
const classNames3 =
|
|
1978
|
+
const classNames3 = useClassNames18({
|
|
1999
1979
|
component: "Checkbox",
|
|
2000
1980
|
variant: variant || (group == null ? void 0 : group.variant),
|
|
2001
1981
|
size: size2 || (group == null ? void 0 : group.size)
|
|
2002
1982
|
});
|
|
2003
|
-
|
|
1983
|
+
return /* @__PURE__ */ jsx34(
|
|
2004
1984
|
Checkbox,
|
|
2005
1985
|
{
|
|
2006
1986
|
ref,
|
|
@@ -2010,8 +1990,8 @@ var _Checkbox = forwardRef14(
|
|
|
2010
1990
|
classNames3.container
|
|
2011
1991
|
),
|
|
2012
1992
|
...props,
|
|
2013
|
-
children: ({ isSelected, isIndeterminate }) => /* @__PURE__ */
|
|
2014
|
-
/* @__PURE__ */
|
|
1993
|
+
children: ({ isSelected, isIndeterminate }) => /* @__PURE__ */ jsxs14(Fragment3, { children: [
|
|
1994
|
+
/* @__PURE__ */ jsx34(
|
|
2015
1995
|
Icon2,
|
|
2016
1996
|
{
|
|
2017
1997
|
checked: isSelected,
|
|
@@ -2019,19 +1999,18 @@ var _Checkbox = forwardRef14(
|
|
|
2019
1999
|
className: classNames3.checkbox
|
|
2020
2000
|
}
|
|
2021
2001
|
),
|
|
2022
|
-
label && /* @__PURE__ */
|
|
2002
|
+
label && /* @__PURE__ */ jsx34("div", { className: classNames3.label, children: label })
|
|
2023
2003
|
] })
|
|
2024
2004
|
}
|
|
2025
2005
|
);
|
|
2026
|
-
return !group && !!labelWidth ? /* @__PURE__ */ jsx36(CheckboxField, { labelWidth, children: component }) : component;
|
|
2027
2006
|
}
|
|
2028
2007
|
);
|
|
2029
2008
|
_Checkbox.Group = _CheckboxGroup;
|
|
2030
2009
|
|
|
2031
2010
|
// src/Columns/Columns.tsx
|
|
2032
2011
|
import { Children as Children2 } from "react";
|
|
2033
|
-
import { cn as cn21, createVar as
|
|
2034
|
-
import { jsx as
|
|
2012
|
+
import { cn as cn21, createVar as createVar4, gapSpace as gapSpace4 } from "@marigold/system";
|
|
2013
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
2035
2014
|
var Columns = ({
|
|
2036
2015
|
space = 0,
|
|
2037
2016
|
columns,
|
|
@@ -2047,7 +2026,7 @@ var Columns = ({
|
|
|
2047
2026
|
)}`
|
|
2048
2027
|
);
|
|
2049
2028
|
}
|
|
2050
|
-
return /* @__PURE__ */
|
|
2029
|
+
return /* @__PURE__ */ jsx35(
|
|
2051
2030
|
"div",
|
|
2052
2031
|
{
|
|
2053
2032
|
className: cn21(
|
|
@@ -2056,14 +2035,14 @@ var Columns = ({
|
|
|
2056
2035
|
gapSpace4[space]
|
|
2057
2036
|
),
|
|
2058
2037
|
...props,
|
|
2059
|
-
children: Children2.map(children, (child, idx) => /* @__PURE__ */
|
|
2038
|
+
children: Children2.map(children, (child, idx) => /* @__PURE__ */ jsx35(
|
|
2060
2039
|
"div",
|
|
2061
2040
|
{
|
|
2062
2041
|
className: cn21(
|
|
2063
2042
|
columns[idx] === "fit" ? "flex h-fit w-fit" : "flex-(--columnSize)",
|
|
2064
2043
|
"basis-[calc((var(--collapseAt)_-_100%)_*_999)]"
|
|
2065
2044
|
),
|
|
2066
|
-
style:
|
|
2045
|
+
style: createVar4({
|
|
2067
2046
|
collapseAt,
|
|
2068
2047
|
columnSize: columns[idx]
|
|
2069
2048
|
}),
|
|
@@ -2075,8 +2054,8 @@ var Columns = ({
|
|
|
2075
2054
|
};
|
|
2076
2055
|
|
|
2077
2056
|
// src/Container/Container.tsx
|
|
2078
|
-
import { cn as cn22, createVar as
|
|
2079
|
-
import { jsx as
|
|
2057
|
+
import { cn as cn22, createVar as createVar5, gapSpace as gapSpace5, placeItems } from "@marigold/system";
|
|
2058
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
2080
2059
|
var containerTextLength = {
|
|
2081
2060
|
short: "40ch",
|
|
2082
2061
|
default: "60ch",
|
|
@@ -2104,7 +2083,7 @@ var Container = ({
|
|
|
2104
2083
|
space = 0,
|
|
2105
2084
|
children,
|
|
2106
2085
|
...props
|
|
2107
|
-
}) => /* @__PURE__ */
|
|
2086
|
+
}) => /* @__PURE__ */ jsx36(
|
|
2108
2087
|
"div",
|
|
2109
2088
|
{
|
|
2110
2089
|
...props,
|
|
@@ -2115,7 +2094,7 @@ var Container = ({
|
|
|
2115
2094
|
gridColumn[align],
|
|
2116
2095
|
gapSpace5[space]
|
|
2117
2096
|
),
|
|
2118
|
-
style:
|
|
2097
|
+
style: createVar5({
|
|
2119
2098
|
maxTextWidth: containerTextLength[contentLength],
|
|
2120
2099
|
maxHeadlineWidth: containerHeadlineLength[contentLength]
|
|
2121
2100
|
}),
|
|
@@ -2133,45 +2112,45 @@ import {
|
|
|
2133
2112
|
Popover as Popover2,
|
|
2134
2113
|
DialogTrigger as RACDialogTrigger
|
|
2135
2114
|
} from "react-aria-components";
|
|
2136
|
-
import { useClassNames as
|
|
2115
|
+
import { useClassNames as useClassNames21 } from "@marigold/system";
|
|
2137
2116
|
|
|
2138
2117
|
// src/ContextualHelp/ContextualHelpContent.tsx
|
|
2139
|
-
import { useClassNames as
|
|
2140
|
-
import { jsx as
|
|
2118
|
+
import { useClassNames as useClassNames19 } from "@marigold/system";
|
|
2119
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
2141
2120
|
var ContextualHelpContent = ({
|
|
2142
2121
|
children,
|
|
2143
2122
|
variant,
|
|
2144
2123
|
size: size2
|
|
2145
2124
|
}) => {
|
|
2146
|
-
const classNames3 =
|
|
2125
|
+
const classNames3 = useClassNames19({
|
|
2147
2126
|
component: "ContextualHelp",
|
|
2148
2127
|
variant,
|
|
2149
2128
|
size: size2
|
|
2150
2129
|
});
|
|
2151
|
-
return /* @__PURE__ */
|
|
2130
|
+
return /* @__PURE__ */ jsx37("div", { className: classNames3.content, children });
|
|
2152
2131
|
};
|
|
2153
2132
|
|
|
2154
2133
|
// src/ContextualHelp/ContextualHelpTitle.tsx
|
|
2155
2134
|
import { Heading as Heading2 } from "react-aria-components";
|
|
2156
|
-
import { useClassNames as
|
|
2157
|
-
import { jsx as
|
|
2135
|
+
import { useClassNames as useClassNames20 } from "@marigold/system";
|
|
2136
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
2158
2137
|
var ContextualHelpTitle = ({
|
|
2159
2138
|
children,
|
|
2160
2139
|
variant,
|
|
2161
2140
|
size: size2
|
|
2162
2141
|
}) => {
|
|
2163
|
-
const classNames3 =
|
|
2142
|
+
const classNames3 = useClassNames20({
|
|
2164
2143
|
component: "ContextualHelp",
|
|
2165
2144
|
variant,
|
|
2166
2145
|
size: size2
|
|
2167
2146
|
});
|
|
2168
|
-
return /* @__PURE__ */
|
|
2147
|
+
return /* @__PURE__ */ jsx38(Heading2, { className: classNames3.title, children });
|
|
2169
2148
|
};
|
|
2170
2149
|
|
|
2171
2150
|
// src/ContextualHelp/ContextualHelp.tsx
|
|
2172
|
-
import { jsx as
|
|
2151
|
+
import { jsx as jsx39, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
2173
2152
|
var icons = {
|
|
2174
|
-
help: () => /* @__PURE__ */
|
|
2153
|
+
help: () => /* @__PURE__ */ jsxs15(
|
|
2175
2154
|
"svg",
|
|
2176
2155
|
{
|
|
2177
2156
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2185,13 +2164,13 @@ var icons = {
|
|
|
2185
2164
|
strokeLinejoin: "round",
|
|
2186
2165
|
className: "lucide lucide-circle-help-icon lucide-circle-help h-5",
|
|
2187
2166
|
children: [
|
|
2188
|
-
/* @__PURE__ */
|
|
2189
|
-
/* @__PURE__ */
|
|
2190
|
-
/* @__PURE__ */
|
|
2167
|
+
/* @__PURE__ */ jsx39("circle", { cx: "12", cy: "12", r: "10" }),
|
|
2168
|
+
/* @__PURE__ */ jsx39("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
|
|
2169
|
+
/* @__PURE__ */ jsx39("path", { d: "M12 17h.01" })
|
|
2191
2170
|
]
|
|
2192
2171
|
}
|
|
2193
2172
|
),
|
|
2194
|
-
info: () => /* @__PURE__ */
|
|
2173
|
+
info: () => /* @__PURE__ */ jsxs15(
|
|
2195
2174
|
"svg",
|
|
2196
2175
|
{
|
|
2197
2176
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2205,15 +2184,15 @@ var icons = {
|
|
|
2205
2184
|
strokeLinejoin: "round",
|
|
2206
2185
|
className: "lucide lucide-info-icon lucide-info h-5",
|
|
2207
2186
|
children: [
|
|
2208
|
-
/* @__PURE__ */
|
|
2209
|
-
/* @__PURE__ */
|
|
2210
|
-
/* @__PURE__ */
|
|
2187
|
+
/* @__PURE__ */ jsx39("circle", { cx: "12", cy: "12", r: "10" }),
|
|
2188
|
+
/* @__PURE__ */ jsx39("path", { d: "M12 16v-4" }),
|
|
2189
|
+
/* @__PURE__ */ jsx39("path", { d: "M12 8h.01" })
|
|
2211
2190
|
]
|
|
2212
2191
|
}
|
|
2213
2192
|
)
|
|
2214
2193
|
};
|
|
2215
2194
|
var DialogTrigger = forwardRef15(
|
|
2216
|
-
({ open, ...rest }, ref) => /* @__PURE__ */
|
|
2195
|
+
({ open, ...rest }, ref) => /* @__PURE__ */ jsx39(RACDialogTrigger, { isOpen: open, ...rest })
|
|
2217
2196
|
);
|
|
2218
2197
|
var _ContextualHelp = forwardRef15(
|
|
2219
2198
|
({
|
|
@@ -2229,19 +2208,19 @@ var _ContextualHelp = forwardRef15(
|
|
|
2229
2208
|
}, ref) => {
|
|
2230
2209
|
var _a;
|
|
2231
2210
|
const icon = (_a = icons[variant]) == null ? void 0 : _a.call(icons);
|
|
2232
|
-
const classNames3 =
|
|
2211
|
+
const classNames3 = useClassNames21({
|
|
2233
2212
|
component: "ContextualHelp",
|
|
2234
2213
|
variant,
|
|
2235
2214
|
size: size2
|
|
2236
2215
|
});
|
|
2237
|
-
return /* @__PURE__ */
|
|
2216
|
+
return /* @__PURE__ */ jsxs15(
|
|
2238
2217
|
DialogTrigger,
|
|
2239
2218
|
{
|
|
2240
2219
|
defaultOpen,
|
|
2241
2220
|
open,
|
|
2242
2221
|
onOpenChange,
|
|
2243
2222
|
children: [
|
|
2244
|
-
/* @__PURE__ */
|
|
2223
|
+
/* @__PURE__ */ jsx39(
|
|
2245
2224
|
Button5,
|
|
2246
2225
|
{
|
|
2247
2226
|
ref,
|
|
@@ -2250,7 +2229,7 @@ var _ContextualHelp = forwardRef15(
|
|
|
2250
2229
|
children: icon
|
|
2251
2230
|
}
|
|
2252
2231
|
),
|
|
2253
|
-
/* @__PURE__ */
|
|
2232
|
+
/* @__PURE__ */ jsx39(
|
|
2254
2233
|
Popover2,
|
|
2255
2234
|
{
|
|
2256
2235
|
placement,
|
|
@@ -2259,7 +2238,7 @@ var _ContextualHelp = forwardRef15(
|
|
|
2259
2238
|
...{
|
|
2260
2239
|
[`data-${width != null ? width : "medium"}`]: true
|
|
2261
2240
|
},
|
|
2262
|
-
children: /* @__PURE__ */
|
|
2241
|
+
children: /* @__PURE__ */ jsx39(Dialog, { className: (classNames3.dialog, "prose"), children })
|
|
2263
2242
|
}
|
|
2264
2243
|
)
|
|
2265
2244
|
]
|
|
@@ -2273,33 +2252,33 @@ _ContextualHelp.Content = ContextualHelpContent;
|
|
|
2273
2252
|
// src/Dialog/Dialog.tsx
|
|
2274
2253
|
import {
|
|
2275
2254
|
forwardRef as forwardRef19,
|
|
2276
|
-
useContext as
|
|
2255
|
+
useContext as useContext8
|
|
2277
2256
|
} from "react";
|
|
2278
2257
|
import { Dialog as Dialog2, OverlayTriggerStateContext as OverlayTriggerStateContext2 } from "react-aria-components";
|
|
2279
|
-
import { cn as cn26, useClassNames as
|
|
2258
|
+
import { cn as cn26, useClassNames as useClassNames27 } from "@marigold/system";
|
|
2280
2259
|
|
|
2281
2260
|
// src/CloseButton/CloseButton.tsx
|
|
2282
2261
|
import { forwardRef as forwardRef16 } from "react";
|
|
2283
2262
|
import { Button as Button6 } from "react-aria-components";
|
|
2284
|
-
import { useClassNames as
|
|
2285
|
-
import { jsx as
|
|
2263
|
+
import { useClassNames as useClassNames22 } from "@marigold/system";
|
|
2264
|
+
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
2286
2265
|
var CloseButton = forwardRef16(
|
|
2287
2266
|
({ className, size: size2, variant, ...props }, ref) => {
|
|
2288
|
-
const classNames3 =
|
|
2267
|
+
const classNames3 = useClassNames22({
|
|
2289
2268
|
component: "CloseButton",
|
|
2290
2269
|
className,
|
|
2291
2270
|
size: size2,
|
|
2292
2271
|
variant
|
|
2293
2272
|
});
|
|
2294
|
-
return /* @__PURE__ */
|
|
2273
|
+
return /* @__PURE__ */ jsx40(Button6, { ref, className: classNames3, ...props, children: /* @__PURE__ */ jsx40("svg", { viewBox: "0 0 20 20", fill: "currentColor", width: 20, height: 20, children: /* @__PURE__ */ jsx40("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" }) }) });
|
|
2295
2274
|
}
|
|
2296
2275
|
);
|
|
2297
2276
|
|
|
2298
2277
|
// src/Overlay/Modal.tsx
|
|
2299
2278
|
import { forwardRef as forwardRef17 } from "react";
|
|
2300
2279
|
import { Modal } from "react-aria-components";
|
|
2301
|
-
import { useClassNames as
|
|
2302
|
-
import { jsx as
|
|
2280
|
+
import { useClassNames as useClassNames23 } from "@marigold/system";
|
|
2281
|
+
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
2303
2282
|
var _Modal = forwardRef17(({ size: size2, open, dismissable, keyboardDismissable, ...rest }, ref) => {
|
|
2304
2283
|
const props = {
|
|
2305
2284
|
isOpen: open,
|
|
@@ -2307,20 +2286,20 @@ var _Modal = forwardRef17(({ size: size2, open, dismissable, keyboardDismissable
|
|
|
2307
2286
|
isKeyboardDismissDisabled: keyboardDismissable,
|
|
2308
2287
|
...rest
|
|
2309
2288
|
};
|
|
2310
|
-
const className =
|
|
2311
|
-
return /* @__PURE__ */
|
|
2289
|
+
const className = useClassNames23({ component: "Modal", size: size2 });
|
|
2290
|
+
return /* @__PURE__ */ jsx41(
|
|
2312
2291
|
Underlay,
|
|
2313
2292
|
{
|
|
2314
2293
|
dismissable,
|
|
2315
2294
|
keyboardDismissable,
|
|
2316
2295
|
open,
|
|
2317
|
-
children: /* @__PURE__ */
|
|
2296
|
+
children: /* @__PURE__ */ jsx41(Modal, { ...props, className, ref, children: props.children })
|
|
2318
2297
|
}
|
|
2319
2298
|
);
|
|
2320
2299
|
});
|
|
2321
2300
|
|
|
2322
2301
|
// src/Overlay/NonModal.tsx
|
|
2323
|
-
import { forwardRef as forwardRef18, useContext as
|
|
2302
|
+
import { forwardRef as forwardRef18, useContext as useContext7 } from "react";
|
|
2324
2303
|
import {
|
|
2325
2304
|
OverlayTriggerStateContext,
|
|
2326
2305
|
Provider
|
|
@@ -2409,7 +2388,7 @@ var useNonModal = ({ nonModalRef, keyboardDismissable = true }, state) => {
|
|
|
2409
2388
|
};
|
|
2410
2389
|
|
|
2411
2390
|
// src/Overlay/NonModal.tsx
|
|
2412
|
-
import { jsx as
|
|
2391
|
+
import { jsx as jsx42, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
2413
2392
|
var NonModalInner = ({ state, isExiting, ...props }) => {
|
|
2414
2393
|
const { nonModalProps } = useNonModal(props, state);
|
|
2415
2394
|
const ref = props.nonModalRef;
|
|
@@ -2429,7 +2408,7 @@ var NonModalInner = ({ state, isExiting, ...props }) => {
|
|
|
2429
2408
|
...renderProps.style,
|
|
2430
2409
|
"--visual-viewport-height": viewport.height + "px"
|
|
2431
2410
|
};
|
|
2432
|
-
const overlay = /* @__PURE__ */
|
|
2411
|
+
const overlay = /* @__PURE__ */ jsxs16(
|
|
2433
2412
|
"div",
|
|
2434
2413
|
{
|
|
2435
2414
|
...mergeProps(filterDOMProps(props), nonModalProps),
|
|
@@ -2444,17 +2423,17 @@ var NonModalInner = ({ state, isExiting, ...props }) => {
|
|
|
2444
2423
|
"data-exiting": isExiting || void 0,
|
|
2445
2424
|
children: [
|
|
2446
2425
|
renderProps.children,
|
|
2447
|
-
/* @__PURE__ */
|
|
2426
|
+
/* @__PURE__ */ jsx42(DismissButton, { onDismiss: state.close })
|
|
2448
2427
|
]
|
|
2449
2428
|
}
|
|
2450
2429
|
);
|
|
2451
|
-
return /* @__PURE__ */
|
|
2430
|
+
return /* @__PURE__ */ jsx42(
|
|
2452
2431
|
Overlay,
|
|
2453
2432
|
{
|
|
2454
2433
|
isExiting,
|
|
2455
2434
|
portalContainer,
|
|
2456
2435
|
disableFocusManagement: true,
|
|
2457
|
-
children: /* @__PURE__ */
|
|
2436
|
+
children: /* @__PURE__ */ jsx42(FocusScope, { restoreFocus: true, children: /* @__PURE__ */ jsx42(Provider, { values: [[OverlayTriggerStateContext, state]], children: overlay }) })
|
|
2458
2437
|
}
|
|
2459
2438
|
);
|
|
2460
2439
|
};
|
|
@@ -2465,7 +2444,7 @@ var NonModal = forwardRef18(
|
|
|
2465
2444
|
...rest
|
|
2466
2445
|
};
|
|
2467
2446
|
ref = useObjectRef(ref);
|
|
2468
|
-
const contextState =
|
|
2447
|
+
const contextState = useContext7(OverlayTriggerStateContext);
|
|
2469
2448
|
const localState = useOverlayTriggerState(props);
|
|
2470
2449
|
const state = props.isOpen != null || props.defaultOpen != null || !contextState ? localState : contextState;
|
|
2471
2450
|
const isExiting = useExitAnimation(ref, state.isOpen) || props.isExiting || false;
|
|
@@ -2473,7 +2452,7 @@ var NonModal = forwardRef18(
|
|
|
2473
2452
|
if (state && !state.isOpen && !isExiting || isSSR) {
|
|
2474
2453
|
return null;
|
|
2475
2454
|
}
|
|
2476
|
-
return /* @__PURE__ */
|
|
2455
|
+
return /* @__PURE__ */ jsx42(
|
|
2477
2456
|
NonModalInner,
|
|
2478
2457
|
{
|
|
2479
2458
|
...props,
|
|
@@ -2486,44 +2465,44 @@ var NonModal = forwardRef18(
|
|
|
2486
2465
|
);
|
|
2487
2466
|
|
|
2488
2467
|
// src/Dialog/DialogActions.tsx
|
|
2489
|
-
import { cn as cn23, useClassNames as
|
|
2490
|
-
import { jsx as
|
|
2468
|
+
import { cn as cn23, useClassNames as useClassNames24 } from "@marigold/system";
|
|
2469
|
+
import { jsx as jsx43 } from "react/jsx-runtime";
|
|
2491
2470
|
var DialogActions = ({ variant, size: size2, children }) => {
|
|
2492
|
-
const classNames3 =
|
|
2493
|
-
return /* @__PURE__ */
|
|
2471
|
+
const classNames3 = useClassNames24({ component: "Dialog", variant, size: size2 });
|
|
2472
|
+
return /* @__PURE__ */ jsx43("div", { className: cn23("[grid-area:actions]", classNames3.actions), children });
|
|
2494
2473
|
};
|
|
2495
2474
|
|
|
2496
2475
|
// src/Dialog/DialogContent.tsx
|
|
2497
|
-
import { cn as cn24, useClassNames as
|
|
2498
|
-
import { jsx as
|
|
2476
|
+
import { cn as cn24, useClassNames as useClassNames25 } from "@marigold/system";
|
|
2477
|
+
import { jsx as jsx44 } from "react/jsx-runtime";
|
|
2499
2478
|
var DialogContent = ({
|
|
2500
2479
|
variant,
|
|
2501
2480
|
size: size2,
|
|
2502
2481
|
children
|
|
2503
2482
|
}) => {
|
|
2504
|
-
const classNames3 =
|
|
2505
|
-
return /* @__PURE__ */
|
|
2483
|
+
const classNames3 = useClassNames25({ component: "Dialog", variant, size: size2 });
|
|
2484
|
+
return /* @__PURE__ */ jsx44("div", { className: cn24("[grid-area:content]", classNames3.content), children });
|
|
2506
2485
|
};
|
|
2507
2486
|
|
|
2508
2487
|
// src/Dialog/DialogTitle.tsx
|
|
2509
2488
|
import { Header as Header2, Heading as Heading3 } from "react-aria-components";
|
|
2510
|
-
import { cn as cn25, useClassNames as
|
|
2511
|
-
import { jsx as
|
|
2489
|
+
import { cn as cn25, useClassNames as useClassNames26 } from "@marigold/system";
|
|
2490
|
+
import { jsx as jsx45 } from "react/jsx-runtime";
|
|
2512
2491
|
var DialogTitle = ({ variant, size: size2, children }) => {
|
|
2513
|
-
const classNames3 =
|
|
2492
|
+
const classNames3 = useClassNames26({
|
|
2514
2493
|
component: "Dialog",
|
|
2515
2494
|
variant,
|
|
2516
2495
|
size: size2
|
|
2517
2496
|
});
|
|
2518
|
-
return /* @__PURE__ */
|
|
2497
|
+
return /* @__PURE__ */ jsx45(Header2, { className: cn25("[grid-area:title]", classNames3.header), children: /* @__PURE__ */ jsx45(Heading3, { slot: "title", className: classNames3.title, children }) });
|
|
2519
2498
|
};
|
|
2520
2499
|
|
|
2521
2500
|
// src/Dialog/DialogTrigger.tsx
|
|
2522
|
-
import { createContext as
|
|
2501
|
+
import { createContext as createContext5 } from "react";
|
|
2523
2502
|
import { DialogTrigger as DialogTrigger2 } from "react-aria-components";
|
|
2524
2503
|
import { PressResponder } from "@react-aria/interactions";
|
|
2525
|
-
import { jsx as
|
|
2526
|
-
var DialogContext =
|
|
2504
|
+
import { jsx as jsx46 } from "react/jsx-runtime";
|
|
2505
|
+
var DialogContext = createContext5({});
|
|
2527
2506
|
var _DialogTrigger = ({
|
|
2528
2507
|
open,
|
|
2529
2508
|
dismissable,
|
|
@@ -2536,33 +2515,33 @@ var _DialogTrigger = ({
|
|
|
2536
2515
|
isKeyboardDismissDisabled: !keyboardDismissable,
|
|
2537
2516
|
...rest
|
|
2538
2517
|
};
|
|
2539
|
-
return /* @__PURE__ */
|
|
2518
|
+
return /* @__PURE__ */ jsx46(DialogContext.Provider, { value: props, children: /* @__PURE__ */ jsx46(DialogTrigger2, { ...props, children: /* @__PURE__ */ jsx46(PressResponder, { isPressed: false, children: props.children }) }) });
|
|
2540
2519
|
};
|
|
2541
2520
|
|
|
2542
2521
|
// src/Dialog/Dialog.tsx
|
|
2543
|
-
import { jsx as
|
|
2522
|
+
import { jsx as jsx47, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
2544
2523
|
var _Dialog = forwardRef19(
|
|
2545
2524
|
({ variant, size: size2, ...props }, ref) => {
|
|
2546
2525
|
var _a;
|
|
2547
|
-
const classNames3 =
|
|
2526
|
+
const classNames3 = useClassNames27({
|
|
2548
2527
|
component: "Dialog",
|
|
2549
2528
|
variant,
|
|
2550
2529
|
size: size2
|
|
2551
2530
|
});
|
|
2552
|
-
const { isDismissable, isKeyboardDismissDisabled, isOpen } =
|
|
2553
|
-
const state =
|
|
2531
|
+
const { isDismissable, isKeyboardDismissDisabled, isOpen } = useContext8(DialogContext);
|
|
2532
|
+
const state = useContext8(OverlayTriggerStateContext2);
|
|
2554
2533
|
const children = typeof props.children === "function" ? props.children({
|
|
2555
2534
|
close: (_a = state == null ? void 0 : state.close) != null ? _a : () => {
|
|
2556
2535
|
}
|
|
2557
2536
|
}) : props.children;
|
|
2558
|
-
return /* @__PURE__ */
|
|
2537
|
+
return /* @__PURE__ */ jsx47(
|
|
2559
2538
|
_Modal,
|
|
2560
2539
|
{
|
|
2561
2540
|
dismissable: isDismissable,
|
|
2562
2541
|
keyboardDismissable: isKeyboardDismissDisabled,
|
|
2563
2542
|
open: isOpen,
|
|
2564
2543
|
size: size2,
|
|
2565
|
-
children: /* @__PURE__ */
|
|
2544
|
+
children: /* @__PURE__ */ jsxs17(
|
|
2566
2545
|
Dialog2,
|
|
2567
2546
|
{
|
|
2568
2547
|
...props,
|
|
@@ -2573,7 +2552,7 @@ var _Dialog = forwardRef19(
|
|
|
2573
2552
|
classNames3.container
|
|
2574
2553
|
),
|
|
2575
2554
|
children: [
|
|
2576
|
-
props.closeButton && /* @__PURE__ */
|
|
2555
|
+
props.closeButton && /* @__PURE__ */ jsx47(
|
|
2577
2556
|
CloseButton,
|
|
2578
2557
|
{
|
|
2579
2558
|
className: classNames3.closeButton,
|
|
@@ -2595,38 +2574,38 @@ _Dialog.Actions = DialogActions;
|
|
|
2595
2574
|
|
|
2596
2575
|
// src/Divider/Divider.tsx
|
|
2597
2576
|
import { Separator } from "react-aria-components";
|
|
2598
|
-
import { cn as cn27, useClassNames as
|
|
2599
|
-
import { jsx as
|
|
2577
|
+
import { cn as cn27, useClassNames as useClassNames28 } from "@marigold/system";
|
|
2578
|
+
import { jsx as jsx48 } from "react/jsx-runtime";
|
|
2600
2579
|
var _Divider = ({ variant, ...props }) => {
|
|
2601
|
-
const classNames3 =
|
|
2602
|
-
return /* @__PURE__ */
|
|
2580
|
+
const classNames3 = useClassNames28({ component: "Divider", variant });
|
|
2581
|
+
return /* @__PURE__ */ jsx48(Separator, { className: cn27("border-none", classNames3), ...props });
|
|
2603
2582
|
};
|
|
2604
2583
|
|
|
2605
2584
|
// src/Drawer/Drawer.tsx
|
|
2606
|
-
import { useContext as
|
|
2585
|
+
import { useContext as useContext10, useRef } from "react";
|
|
2607
2586
|
import { Dialog as Dialog3, OverlayTriggerStateContext as OverlayTriggerStateContext3 } from "react-aria-components";
|
|
2608
2587
|
import { useLandmark } from "@react-aria/landmark";
|
|
2609
|
-
import { cn as cn32, useClassNames as
|
|
2588
|
+
import { cn as cn32, useClassNames as useClassNames32, useSmallScreen as useSmallScreen3 } from "@marigold/system";
|
|
2610
2589
|
|
|
2611
2590
|
// src/Drawer/Context.tsx
|
|
2612
|
-
import { createContext as
|
|
2613
|
-
var DrawerContext =
|
|
2591
|
+
import { createContext as createContext6, useContext as useContext9 } from "react";
|
|
2592
|
+
var DrawerContext = createContext6({
|
|
2614
2593
|
variant: void 0,
|
|
2615
2594
|
size: void 0
|
|
2616
2595
|
});
|
|
2617
|
-
var useDrawerContext = () =>
|
|
2596
|
+
var useDrawerContext = () => useContext9(DrawerContext);
|
|
2618
2597
|
|
|
2619
2598
|
// src/Drawer/DrawerActions.tsx
|
|
2620
|
-
import { cn as cn28, useClassNames as
|
|
2621
|
-
import { jsx as
|
|
2599
|
+
import { cn as cn28, useClassNames as useClassNames29 } from "@marigold/system";
|
|
2600
|
+
import { jsx as jsx49 } from "react/jsx-runtime";
|
|
2622
2601
|
var DrawerActions = ({ variant, size: size2, children }) => {
|
|
2623
2602
|
const ctx = useDrawerContext();
|
|
2624
|
-
const classNames3 =
|
|
2603
|
+
const classNames3 = useClassNames29({
|
|
2625
2604
|
component: "Drawer",
|
|
2626
2605
|
variant: variant != null ? variant : ctx.variant,
|
|
2627
2606
|
size: size2 != null ? size2 : ctx.size
|
|
2628
2607
|
});
|
|
2629
|
-
return /* @__PURE__ */
|
|
2608
|
+
return /* @__PURE__ */ jsx49(
|
|
2630
2609
|
"div",
|
|
2631
2610
|
{
|
|
2632
2611
|
className: cn28("[grid-area:actions]", classNames3.actions),
|
|
@@ -2637,20 +2616,20 @@ var DrawerActions = ({ variant, size: size2, children }) => {
|
|
|
2637
2616
|
};
|
|
2638
2617
|
|
|
2639
2618
|
// src/Drawer/DrawerContent.tsx
|
|
2640
|
-
import { cn as cn29, useClassNames as
|
|
2641
|
-
import { jsx as
|
|
2619
|
+
import { cn as cn29, useClassNames as useClassNames30 } from "@marigold/system";
|
|
2620
|
+
import { jsx as jsx50 } from "react/jsx-runtime";
|
|
2642
2621
|
var DrawerContent = ({
|
|
2643
2622
|
variant,
|
|
2644
2623
|
size: size2,
|
|
2645
2624
|
children
|
|
2646
2625
|
}) => {
|
|
2647
2626
|
const ctx = useDrawerContext();
|
|
2648
|
-
const classNames3 =
|
|
2627
|
+
const classNames3 = useClassNames30({
|
|
2649
2628
|
component: "Drawer",
|
|
2650
2629
|
variant: variant != null ? variant : ctx.variant,
|
|
2651
2630
|
size: size2 != null ? size2 : ctx.size
|
|
2652
2631
|
});
|
|
2653
|
-
return /* @__PURE__ */
|
|
2632
|
+
return /* @__PURE__ */ jsx50(
|
|
2654
2633
|
"div",
|
|
2655
2634
|
{
|
|
2656
2635
|
className: cn29("[grid-area:content]", classNames3.content),
|
|
@@ -2662,14 +2641,14 @@ var DrawerContent = ({
|
|
|
2662
2641
|
|
|
2663
2642
|
// src/Drawer/DrawerModal.tsx
|
|
2664
2643
|
import { cn as cn30, useSmallScreen as useSmallScreen2 } from "@marigold/system";
|
|
2665
|
-
import { jsx as
|
|
2644
|
+
import { jsx as jsx51 } from "react/jsx-runtime";
|
|
2666
2645
|
var DrawerModal = ({
|
|
2667
2646
|
children,
|
|
2668
2647
|
className,
|
|
2669
2648
|
...props
|
|
2670
2649
|
}) => {
|
|
2671
2650
|
const isSmallScreen = useSmallScreen2();
|
|
2672
|
-
return isSmallScreen ? /* @__PURE__ */
|
|
2651
|
+
return isSmallScreen ? /* @__PURE__ */ jsx51(_Modal, { children }) : /* @__PURE__ */ jsx51(
|
|
2673
2652
|
NonModal,
|
|
2674
2653
|
{
|
|
2675
2654
|
...props,
|
|
@@ -2681,36 +2660,36 @@ var DrawerModal = ({
|
|
|
2681
2660
|
|
|
2682
2661
|
// src/Drawer/DrawerTitle.tsx
|
|
2683
2662
|
import { Header as Header3, Heading as Heading4 } from "react-aria-components";
|
|
2684
|
-
import { cn as cn31, useClassNames as
|
|
2685
|
-
import { jsx as
|
|
2663
|
+
import { cn as cn31, useClassNames as useClassNames31 } from "@marigold/system";
|
|
2664
|
+
import { jsx as jsx52 } from "react/jsx-runtime";
|
|
2686
2665
|
var DrawerTitle = ({ variant, size: size2, children }) => {
|
|
2687
|
-
const classNames3 =
|
|
2666
|
+
const classNames3 = useClassNames31({
|
|
2688
2667
|
component: "Drawer",
|
|
2689
2668
|
size: size2,
|
|
2690
2669
|
variant,
|
|
2691
2670
|
context: DrawerContext
|
|
2692
2671
|
});
|
|
2693
|
-
return /* @__PURE__ */
|
|
2672
|
+
return /* @__PURE__ */ jsx52(
|
|
2694
2673
|
Header3,
|
|
2695
2674
|
{
|
|
2696
2675
|
className: cn31("[grid-area:title]", classNames3.header),
|
|
2697
2676
|
style: { "--i": 0 },
|
|
2698
|
-
children: /* @__PURE__ */
|
|
2677
|
+
children: /* @__PURE__ */ jsx52(Heading4, { slot: "title", level: 2, className: classNames3.title, children })
|
|
2699
2678
|
}
|
|
2700
2679
|
);
|
|
2701
2680
|
};
|
|
2702
2681
|
|
|
2703
2682
|
// src/Drawer/DrawerTrigger.tsx
|
|
2704
2683
|
import { DialogTrigger as DialogTrigger3 } from "react-aria-components";
|
|
2705
|
-
import { jsx as
|
|
2684
|
+
import { jsx as jsx53 } from "react/jsx-runtime";
|
|
2706
2685
|
var DrawerTrigger = ({
|
|
2707
2686
|
open,
|
|
2708
2687
|
children,
|
|
2709
2688
|
...props
|
|
2710
|
-
}) => /* @__PURE__ */
|
|
2689
|
+
}) => /* @__PURE__ */ jsx53(DialogTrigger3, { isOpen: open, ...props, children });
|
|
2711
2690
|
|
|
2712
2691
|
// src/Drawer/Drawer.tsx
|
|
2713
|
-
import { jsx as
|
|
2692
|
+
import { jsx as jsx54, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
2714
2693
|
var Drawer = ({
|
|
2715
2694
|
children,
|
|
2716
2695
|
variant,
|
|
@@ -2722,18 +2701,18 @@ var Drawer = ({
|
|
|
2722
2701
|
...props
|
|
2723
2702
|
}) => {
|
|
2724
2703
|
const ref = useRef(null);
|
|
2725
|
-
const classNames3 =
|
|
2726
|
-
const ctx =
|
|
2704
|
+
const classNames3 = useClassNames32({ component: "Drawer", variant, size: size2 });
|
|
2705
|
+
const ctx = useContext10(OverlayTriggerStateContext3);
|
|
2727
2706
|
const isSmallScreen = useSmallScreen3();
|
|
2728
2707
|
const landmarkAria = useLandmark({ ...props, role }, ref);
|
|
2729
2708
|
const landmarkProps = isSmallScreen ? {} : landmarkAria.landmarkProps;
|
|
2730
|
-
return /* @__PURE__ */
|
|
2709
|
+
return /* @__PURE__ */ jsx54(
|
|
2731
2710
|
DrawerModal,
|
|
2732
2711
|
{
|
|
2733
2712
|
className: classNames3.overlay,
|
|
2734
2713
|
open,
|
|
2735
2714
|
keyboardDismissable,
|
|
2736
|
-
children: /* @__PURE__ */
|
|
2715
|
+
children: /* @__PURE__ */ jsx54(DrawerContext.Provider, { value: { variant, size: size2 }, children: /* @__PURE__ */ jsxs18(
|
|
2737
2716
|
Dialog3,
|
|
2738
2717
|
{
|
|
2739
2718
|
...props,
|
|
@@ -2744,7 +2723,7 @@ var Drawer = ({
|
|
|
2744
2723
|
classNames3.container
|
|
2745
2724
|
),
|
|
2746
2725
|
children: [
|
|
2747
|
-
closeButton && /* @__PURE__ */
|
|
2726
|
+
closeButton && /* @__PURE__ */ jsx54(
|
|
2748
2727
|
CloseButton,
|
|
2749
2728
|
{
|
|
2750
2729
|
"aria-label": "dismiss drawer",
|
|
@@ -2766,18 +2745,18 @@ Drawer.Content = DrawerContent;
|
|
|
2766
2745
|
Drawer.Actions = DrawerActions;
|
|
2767
2746
|
|
|
2768
2747
|
// src/Footer/Footer.tsx
|
|
2769
|
-
import { useClassNames as
|
|
2770
|
-
import { jsx as
|
|
2748
|
+
import { useClassNames as useClassNames33 } from "@marigold/system";
|
|
2749
|
+
import { jsx as jsx55 } from "react/jsx-runtime";
|
|
2771
2750
|
var Footer = ({ children, variant, size: size2, ...props }) => {
|
|
2772
|
-
const classNames3 =
|
|
2773
|
-
return /* @__PURE__ */
|
|
2751
|
+
const classNames3 = useClassNames33({ component: "Footer", variant, size: size2 });
|
|
2752
|
+
return /* @__PURE__ */ jsx55("footer", { ...props, className: classNames3, children });
|
|
2774
2753
|
};
|
|
2775
2754
|
|
|
2776
2755
|
// src/Form/Form.tsx
|
|
2777
2756
|
import { Form } from "react-aria-components";
|
|
2778
2757
|
import { cn as cn33, maxWidth as twMaxWidth } from "@marigold/system";
|
|
2779
|
-
import { jsx as
|
|
2780
|
-
var _Form = ({ unstyled, maxWidth = "full", ...props }) => /* @__PURE__ */
|
|
2758
|
+
import { jsx as jsx56 } from "react/jsx-runtime";
|
|
2759
|
+
var _Form = ({ unstyled, maxWidth = "full", ...props }) => /* @__PURE__ */ jsx56(
|
|
2781
2760
|
Form,
|
|
2782
2761
|
{
|
|
2783
2762
|
...props,
|
|
@@ -2789,11 +2768,11 @@ var _Form = ({ unstyled, maxWidth = "full", ...props }) => /* @__PURE__ */ jsx58
|
|
|
2789
2768
|
import { alignment, cn as cn34, gapSpace as gapSpace6, height as twHeight } from "@marigold/system";
|
|
2790
2769
|
|
|
2791
2770
|
// src/Grid/GridArea.tsx
|
|
2792
|
-
import { jsx as
|
|
2793
|
-
var GridArea = ({ name, children }) => /* @__PURE__ */
|
|
2771
|
+
import { jsx as jsx57 } from "react/jsx-runtime";
|
|
2772
|
+
var GridArea = ({ name, children }) => /* @__PURE__ */ jsx57("div", { style: { gridArea: name }, children });
|
|
2794
2773
|
|
|
2795
2774
|
// src/Grid/Grid.tsx
|
|
2796
|
-
import { jsx as
|
|
2775
|
+
import { jsx as jsx58 } from "react/jsx-runtime";
|
|
2797
2776
|
var parseGridAreas = (areas) => areas.map((area) => `"${area}"`).join("\n");
|
|
2798
2777
|
var parseTemplateValue = (values) => values.map((val) => typeof val === "number" ? `${val}fr` : val).join(" ");
|
|
2799
2778
|
var Grid = ({
|
|
@@ -2808,7 +2787,7 @@ var Grid = ({
|
|
|
2808
2787
|
...props
|
|
2809
2788
|
}) => {
|
|
2810
2789
|
var _a, _b, _c, _d;
|
|
2811
|
-
return /* @__PURE__ */
|
|
2790
|
+
return /* @__PURE__ */ jsx58(
|
|
2812
2791
|
"div",
|
|
2813
2792
|
{
|
|
2814
2793
|
className: cn34(
|
|
@@ -2832,15 +2811,15 @@ Grid.Area = GridArea;
|
|
|
2832
2811
|
|
|
2833
2812
|
// src/Header/Header.tsx
|
|
2834
2813
|
import { Header as Header4 } from "react-aria-components";
|
|
2835
|
-
import { useClassNames as
|
|
2836
|
-
import { jsx as
|
|
2814
|
+
import { useClassNames as useClassNames34 } from "@marigold/system";
|
|
2815
|
+
import { jsx as jsx59 } from "react/jsx-runtime";
|
|
2837
2816
|
var _Header = ({ variant, size: size2, ...props }) => {
|
|
2838
|
-
const classNames3 =
|
|
2817
|
+
const classNames3 = useClassNames34({
|
|
2839
2818
|
component: "Header",
|
|
2840
2819
|
variant,
|
|
2841
2820
|
size: size2
|
|
2842
2821
|
});
|
|
2843
|
-
return /* @__PURE__ */
|
|
2822
|
+
return /* @__PURE__ */ jsx59(Header4, { className: classNames3, ...props, children: props.children });
|
|
2844
2823
|
};
|
|
2845
2824
|
|
|
2846
2825
|
// src/Headline/Headline.tsx
|
|
@@ -2849,9 +2828,9 @@ import {
|
|
|
2849
2828
|
cn as cn35,
|
|
2850
2829
|
ensureCssVar,
|
|
2851
2830
|
textAlign,
|
|
2852
|
-
useClassNames as
|
|
2831
|
+
useClassNames as useClassNames35
|
|
2853
2832
|
} from "@marigold/system";
|
|
2854
|
-
import { jsx as
|
|
2833
|
+
import { jsx as jsx60 } from "react/jsx-runtime";
|
|
2855
2834
|
var _Headline = ({
|
|
2856
2835
|
variant,
|
|
2857
2836
|
size: size2,
|
|
@@ -2861,12 +2840,12 @@ var _Headline = ({
|
|
|
2861
2840
|
level = "1",
|
|
2862
2841
|
...props
|
|
2863
2842
|
}) => {
|
|
2864
|
-
const classNames3 =
|
|
2843
|
+
const classNames3 = useClassNames35({
|
|
2865
2844
|
component: "Headline",
|
|
2866
2845
|
variant,
|
|
2867
2846
|
size: size2 != null ? size2 : `level-${level}`
|
|
2868
2847
|
});
|
|
2869
|
-
return /* @__PURE__ */
|
|
2848
|
+
return /* @__PURE__ */ jsx60(
|
|
2870
2849
|
Heading5,
|
|
2871
2850
|
{
|
|
2872
2851
|
level: Number(level),
|
|
@@ -2888,9 +2867,9 @@ import {
|
|
|
2888
2867
|
cn as cn36,
|
|
2889
2868
|
objectFit,
|
|
2890
2869
|
objectPosition,
|
|
2891
|
-
useClassNames as
|
|
2870
|
+
useClassNames as useClassNames36
|
|
2892
2871
|
} from "@marigold/system";
|
|
2893
|
-
import { jsx as
|
|
2872
|
+
import { jsx as jsx61 } from "react/jsx-runtime";
|
|
2894
2873
|
var Image = ({
|
|
2895
2874
|
variant,
|
|
2896
2875
|
size: size2,
|
|
@@ -2898,8 +2877,8 @@ var Image = ({
|
|
|
2898
2877
|
position: position2 = "none",
|
|
2899
2878
|
...props
|
|
2900
2879
|
}) => {
|
|
2901
|
-
const classNames3 =
|
|
2902
|
-
return /* @__PURE__ */
|
|
2880
|
+
const classNames3 = useClassNames36({ component: "Image", variant, size: size2 });
|
|
2881
|
+
return /* @__PURE__ */ jsx61(
|
|
2903
2882
|
"img",
|
|
2904
2883
|
{
|
|
2905
2884
|
...props,
|
|
@@ -2916,7 +2895,7 @@ var Image = ({
|
|
|
2916
2895
|
|
|
2917
2896
|
// src/Inline/Inline.tsx
|
|
2918
2897
|
import { alignment as alignment2, cn as cn37, gapSpace as gapSpace7 } from "@marigold/system";
|
|
2919
|
-
import { jsx as
|
|
2898
|
+
import { jsx as jsx62 } from "react/jsx-runtime";
|
|
2920
2899
|
var Inline = ({
|
|
2921
2900
|
space = 0,
|
|
2922
2901
|
alignX,
|
|
@@ -2925,7 +2904,7 @@ var Inline = ({
|
|
|
2925
2904
|
...props
|
|
2926
2905
|
}) => {
|
|
2927
2906
|
var _a, _b, _c, _d;
|
|
2928
|
-
return /* @__PURE__ */
|
|
2907
|
+
return /* @__PURE__ */ jsx62(
|
|
2929
2908
|
"div",
|
|
2930
2909
|
{
|
|
2931
2910
|
...props,
|
|
@@ -2933,7 +2912,8 @@ var Inline = ({
|
|
|
2933
2912
|
"flex flex-wrap",
|
|
2934
2913
|
gapSpace7[space],
|
|
2935
2914
|
alignX && ((_b = (_a = alignment2) == null ? void 0 : _a.horizontal) == null ? void 0 : _b.alignmentX[alignX]),
|
|
2936
|
-
alignY && ((_d = (_c = alignment2) == null ? void 0 : _c.horizontal) == null ? void 0 : _d.alignmentY[alignY])
|
|
2915
|
+
alignY && ((_d = (_c = alignment2) == null ? void 0 : _c.horizontal) == null ? void 0 : _d.alignmentY[alignY]),
|
|
2916
|
+
alignY === "center" && "items-end [&:has([slot=description])]:items-center [&:has([slot=errorMessage])]:items-center"
|
|
2937
2917
|
),
|
|
2938
2918
|
children
|
|
2939
2919
|
}
|
|
@@ -2946,14 +2926,14 @@ import { DateField } from "react-aria-components";
|
|
|
2946
2926
|
|
|
2947
2927
|
// src/DateField/DateInput.tsx
|
|
2948
2928
|
import { DateInput, Group } from "react-aria-components";
|
|
2949
|
-
import { useClassNames as
|
|
2929
|
+
import { useClassNames as useClassNames37 } from "@marigold/system";
|
|
2950
2930
|
|
|
2951
2931
|
// src/DateField/DateSegment.tsx
|
|
2952
2932
|
import { DateSegment } from "react-aria-components";
|
|
2953
2933
|
import { cn as cn38 } from "@marigold/system";
|
|
2954
|
-
import { Fragment as
|
|
2934
|
+
import { Fragment as Fragment4, jsx as jsx63, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
2955
2935
|
var _DateSegment = ({ segment, ...props }) => {
|
|
2956
|
-
return /* @__PURE__ */
|
|
2936
|
+
return /* @__PURE__ */ jsx63(
|
|
2957
2937
|
DateSegment,
|
|
2958
2938
|
{
|
|
2959
2939
|
...props,
|
|
@@ -2961,8 +2941,8 @@ var _DateSegment = ({ segment, ...props }) => {
|
|
|
2961
2941
|
style: {
|
|
2962
2942
|
minWidth: segment.maxValue != null ? `${String(segment.maxValue).length}ch` : void 0
|
|
2963
2943
|
},
|
|
2964
|
-
children: ({ text, placeholder, isPlaceholder }) => /* @__PURE__ */
|
|
2965
|
-
/* @__PURE__ */
|
|
2944
|
+
children: ({ text, placeholder, isPlaceholder }) => /* @__PURE__ */ jsxs19(Fragment4, { children: [
|
|
2945
|
+
/* @__PURE__ */ jsx63(
|
|
2966
2946
|
"span",
|
|
2967
2947
|
{
|
|
2968
2948
|
"aria-hidden": "true",
|
|
@@ -2973,24 +2953,24 @@ var _DateSegment = ({ segment, ...props }) => {
|
|
|
2973
2953
|
children: isPlaceholder && (placeholder == null ? void 0 : placeholder.toUpperCase())
|
|
2974
2954
|
}
|
|
2975
2955
|
),
|
|
2976
|
-
/* @__PURE__ */
|
|
2956
|
+
/* @__PURE__ */ jsx63("span", { children: isPlaceholder ? "" : segment.type === "month" || segment.type === "day" ? segment.text.padStart(2, "0") : text })
|
|
2977
2957
|
] })
|
|
2978
2958
|
}
|
|
2979
2959
|
);
|
|
2980
2960
|
};
|
|
2981
2961
|
|
|
2982
2962
|
// src/DateField/DateInput.tsx
|
|
2983
|
-
import { jsx as
|
|
2963
|
+
import { jsx as jsx64, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
2984
2964
|
var _DateInput = ({ variant, size: size2, action, ...props }) => {
|
|
2985
|
-
const classNames3 =
|
|
2986
|
-
return /* @__PURE__ */
|
|
2987
|
-
/* @__PURE__ */
|
|
2965
|
+
const classNames3 = useClassNames37({ component: "DateField", variant, size: size2 });
|
|
2966
|
+
return /* @__PURE__ */ jsxs20(Group, { className: classNames3.field, children: [
|
|
2967
|
+
/* @__PURE__ */ jsx64(DateInput, { className: "flex flex-1 items-center", ...props, children: (segment) => /* @__PURE__ */ jsx64(_DateSegment, { className: classNames3.segment, segment }) }),
|
|
2988
2968
|
action ? action : null
|
|
2989
2969
|
] });
|
|
2990
2970
|
};
|
|
2991
2971
|
|
|
2992
2972
|
// src/DateField/DateField.tsx
|
|
2993
|
-
import { jsx as
|
|
2973
|
+
import { jsx as jsx65 } from "react/jsx-runtime";
|
|
2994
2974
|
var _DateField = forwardRef20(
|
|
2995
2975
|
({
|
|
2996
2976
|
variant,
|
|
@@ -3009,7 +2989,7 @@ var _DateField = forwardRef20(
|
|
|
3009
2989
|
isRequired: required,
|
|
3010
2990
|
...rest
|
|
3011
2991
|
};
|
|
3012
|
-
return /* @__PURE__ */
|
|
2992
|
+
return /* @__PURE__ */ jsx65(
|
|
3013
2993
|
FieldBase,
|
|
3014
2994
|
{
|
|
3015
2995
|
as: DateField,
|
|
@@ -3017,7 +2997,7 @@ var _DateField = forwardRef20(
|
|
|
3017
2997
|
size: size2,
|
|
3018
2998
|
ref,
|
|
3019
2999
|
...props,
|
|
3020
|
-
children: /* @__PURE__ */
|
|
3000
|
+
children: /* @__PURE__ */ jsx65(_DateInput, { action })
|
|
3021
3001
|
}
|
|
3022
3002
|
);
|
|
3023
3003
|
}
|
|
@@ -3026,7 +3006,7 @@ var _DateField = forwardRef20(
|
|
|
3026
3006
|
// src/Calendar/Calendar.tsx
|
|
3027
3007
|
import { useState } from "react";
|
|
3028
3008
|
import { Calendar } from "react-aria-components";
|
|
3029
|
-
import { cn as cn44, useClassNames as
|
|
3009
|
+
import { cn as cn44, useClassNames as useClassNames41 } from "@marigold/system";
|
|
3030
3010
|
|
|
3031
3011
|
// src/Calendar/CalendarGrid.tsx
|
|
3032
3012
|
import {
|
|
@@ -3034,18 +3014,18 @@ import {
|
|
|
3034
3014
|
CalendarGrid,
|
|
3035
3015
|
CalendarGridBody
|
|
3036
3016
|
} from "react-aria-components";
|
|
3037
|
-
import { cn as cn39, useClassNames as
|
|
3017
|
+
import { cn as cn39, useClassNames as useClassNames39 } from "@marigold/system";
|
|
3038
3018
|
|
|
3039
3019
|
// src/Calendar/CalendarGridHeader.tsx
|
|
3040
3020
|
import { startOfWeek, today } from "@internationalized/date";
|
|
3041
|
-
import { useContext as
|
|
3021
|
+
import { useContext as useContext11, useMemo as useMemo2 } from "react";
|
|
3042
3022
|
import { CalendarStateContext } from "react-aria-components";
|
|
3043
3023
|
import { useCalendarGrid } from "@react-aria/calendar";
|
|
3044
3024
|
import { useDateFormatter, useLocale } from "@react-aria/i18n";
|
|
3045
|
-
import { useClassNames as
|
|
3046
|
-
import { jsx as
|
|
3025
|
+
import { useClassNames as useClassNames38 } from "@marigold/system";
|
|
3026
|
+
import { jsx as jsx66 } from "react/jsx-runtime";
|
|
3047
3027
|
function CalendarGridHeader(props) {
|
|
3048
|
-
const state =
|
|
3028
|
+
const state = useContext11(CalendarStateContext);
|
|
3049
3029
|
const { headerProps } = useCalendarGrid(props, state);
|
|
3050
3030
|
const { locale } = useLocale();
|
|
3051
3031
|
const dayFormatter = useDateFormatter({
|
|
@@ -3060,17 +3040,17 @@ function CalendarGridHeader(props) {
|
|
|
3060
3040
|
return dayFormatter.format(dateDay);
|
|
3061
3041
|
});
|
|
3062
3042
|
}, [locale, state.timeZone, dayFormatter]);
|
|
3063
|
-
const classNames3 =
|
|
3064
|
-
return /* @__PURE__ */
|
|
3043
|
+
const classNames3 = useClassNames38({ component: "Calendar" });
|
|
3044
|
+
return /* @__PURE__ */ jsx66("thead", { ...headerProps, children: /* @__PURE__ */ jsx66("tr", { children: weekDays.map((day, index2) => /* @__PURE__ */ jsx66("th", { className: classNames3.calendarHeader, children: day.substring(0, 2) }, index2)) }) });
|
|
3065
3045
|
}
|
|
3066
3046
|
|
|
3067
3047
|
// src/Calendar/CalendarGrid.tsx
|
|
3068
|
-
import { jsx as
|
|
3048
|
+
import { jsx as jsx67, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
3069
3049
|
var _CalendarGrid = () => {
|
|
3070
|
-
const classNames3 =
|
|
3071
|
-
return /* @__PURE__ */
|
|
3072
|
-
/* @__PURE__ */
|
|
3073
|
-
/* @__PURE__ */
|
|
3050
|
+
const classNames3 = useClassNames39({ component: "Calendar" });
|
|
3051
|
+
return /* @__PURE__ */ jsxs21(CalendarGrid, { className: classNames3.calendarGrid, children: [
|
|
3052
|
+
/* @__PURE__ */ jsx67(CalendarGridHeader, {}),
|
|
3053
|
+
/* @__PURE__ */ jsx67(CalendarGridBody, { children: (date) => /* @__PURE__ */ jsx67(
|
|
3074
3054
|
CalendarCell,
|
|
3075
3055
|
{
|
|
3076
3056
|
date,
|
|
@@ -3084,14 +3064,14 @@ var _CalendarGrid = () => {
|
|
|
3084
3064
|
};
|
|
3085
3065
|
|
|
3086
3066
|
// src/Calendar/CalendarListBox.tsx
|
|
3087
|
-
import { useContext as
|
|
3067
|
+
import { useContext as useContext13 } from "react";
|
|
3088
3068
|
import { CalendarStateContext as CalendarStateContext2 } from "react-aria-components";
|
|
3089
3069
|
import { cn as cn40 } from "@marigold/system";
|
|
3090
3070
|
|
|
3091
3071
|
// src/Calendar/Context.tsx
|
|
3092
|
-
import { createContext as
|
|
3093
|
-
var CalendarContext =
|
|
3094
|
-
var useCalendarContext = () =>
|
|
3072
|
+
import { createContext as createContext7, useContext as useContext12 } from "react";
|
|
3073
|
+
var CalendarContext = createContext7({});
|
|
3074
|
+
var useCalendarContext = () => useContext12(CalendarContext);
|
|
3095
3075
|
|
|
3096
3076
|
// src/Calendar/useFormattedMonths.tsx
|
|
3097
3077
|
import { useDateFormatter as useDateFormatter2 } from "@react-aria/i18n";
|
|
@@ -3110,17 +3090,17 @@ function useFormattedMonths(timeZone, focusedDate) {
|
|
|
3110
3090
|
}
|
|
3111
3091
|
|
|
3112
3092
|
// src/Calendar/CalendarListBox.tsx
|
|
3113
|
-
import { jsx as
|
|
3093
|
+
import { jsx as jsx68, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
3114
3094
|
function CalendarListBox({
|
|
3115
3095
|
type,
|
|
3116
3096
|
isDisabled,
|
|
3117
3097
|
setSelectedDropdown
|
|
3118
3098
|
}) {
|
|
3119
|
-
const state =
|
|
3099
|
+
const state = useContext13(CalendarStateContext2);
|
|
3120
3100
|
const months = useFormattedMonths(state.timeZone, state.focusedDate);
|
|
3121
3101
|
const buttonStyles = "flex items-center justify-between gap-1 overflow-hidden";
|
|
3122
3102
|
const { classNames: classNames3 } = useCalendarContext();
|
|
3123
|
-
return /* @__PURE__ */
|
|
3103
|
+
return /* @__PURE__ */ jsxs22(
|
|
3124
3104
|
"button",
|
|
3125
3105
|
{
|
|
3126
3106
|
disabled: isDisabled,
|
|
@@ -3129,18 +3109,18 @@ function CalendarListBox({
|
|
|
3129
3109
|
"data-testid": type,
|
|
3130
3110
|
children: [
|
|
3131
3111
|
type === "month" ? months[state.focusedDate.month - 1].substring(0, 3) : state.focusedDate.year,
|
|
3132
|
-
/* @__PURE__ */
|
|
3112
|
+
/* @__PURE__ */ jsx68(ChevronDown, {})
|
|
3133
3113
|
]
|
|
3134
3114
|
}
|
|
3135
3115
|
);
|
|
3136
3116
|
}
|
|
3137
3117
|
|
|
3138
3118
|
// src/Calendar/MonthControls.tsx
|
|
3139
|
-
import { cn as cn41, useClassNames as
|
|
3140
|
-
import { jsx as
|
|
3119
|
+
import { cn as cn41, useClassNames as useClassNames40 } from "@marigold/system";
|
|
3120
|
+
import { jsx as jsx69, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
3141
3121
|
function MonthControls() {
|
|
3142
|
-
const classNames3 =
|
|
3143
|
-
return /* @__PURE__ */
|
|
3122
|
+
const classNames3 = useClassNames40({ component: "Calendar" });
|
|
3123
|
+
return /* @__PURE__ */ jsxs23(
|
|
3144
3124
|
"div",
|
|
3145
3125
|
{
|
|
3146
3126
|
className: cn41(
|
|
@@ -3148,22 +3128,22 @@ function MonthControls() {
|
|
|
3148
3128
|
classNames3.calendarControllers
|
|
3149
3129
|
),
|
|
3150
3130
|
children: [
|
|
3151
|
-
/* @__PURE__ */
|
|
3131
|
+
/* @__PURE__ */ jsx69(
|
|
3152
3132
|
IconButton,
|
|
3153
3133
|
{
|
|
3154
3134
|
className: cn41("inline-flex items-center justify-center gap-[0.5ch]"),
|
|
3155
3135
|
variant: "navigation",
|
|
3156
3136
|
slot: "previous",
|
|
3157
|
-
children: /* @__PURE__ */
|
|
3137
|
+
children: /* @__PURE__ */ jsx69(ChevronLeft, {})
|
|
3158
3138
|
}
|
|
3159
3139
|
),
|
|
3160
|
-
/* @__PURE__ */
|
|
3140
|
+
/* @__PURE__ */ jsx69(
|
|
3161
3141
|
IconButton,
|
|
3162
3142
|
{
|
|
3163
3143
|
className: cn41("inline-flex items-center justify-center gap-[0.5ch]"),
|
|
3164
3144
|
variant: "navigation",
|
|
3165
3145
|
slot: "next",
|
|
3166
|
-
children: /* @__PURE__ */
|
|
3146
|
+
children: /* @__PURE__ */ jsx69(ChevronRight, {})
|
|
3167
3147
|
}
|
|
3168
3148
|
)
|
|
3169
3149
|
]
|
|
@@ -3173,13 +3153,13 @@ function MonthControls() {
|
|
|
3173
3153
|
var MonthControls_default = MonthControls;
|
|
3174
3154
|
|
|
3175
3155
|
// src/Calendar/MonthListBox.tsx
|
|
3176
|
-
import { useContext as
|
|
3156
|
+
import { useContext as useContext14 } from "react";
|
|
3177
3157
|
import { CalendarStateContext as CalendarStateContext3 } from "react-aria-components";
|
|
3178
3158
|
import { Button as Button7 } from "react-aria-components";
|
|
3179
3159
|
import { cn as cn42 } from "@marigold/system";
|
|
3180
|
-
import { jsx as
|
|
3160
|
+
import { jsx as jsx70 } from "react/jsx-runtime";
|
|
3181
3161
|
var MonthListBox = ({ setSelectedDropdown }) => {
|
|
3182
|
-
const state =
|
|
3162
|
+
const state = useContext14(CalendarStateContext3);
|
|
3183
3163
|
const months = useFormattedMonths(state.timeZone, state.focusedDate);
|
|
3184
3164
|
let onChange2 = (index2) => {
|
|
3185
3165
|
let value = Number(index2) + 1;
|
|
@@ -3187,14 +3167,14 @@ var MonthListBox = ({ setSelectedDropdown }) => {
|
|
|
3187
3167
|
state.setFocusedDate(date);
|
|
3188
3168
|
};
|
|
3189
3169
|
const { classNames: classNames3 } = useCalendarContext();
|
|
3190
|
-
return /* @__PURE__ */
|
|
3170
|
+
return /* @__PURE__ */ jsx70(
|
|
3191
3171
|
"ul",
|
|
3192
3172
|
{
|
|
3193
3173
|
"data-testid": "monthOptions",
|
|
3194
3174
|
className: "grid h-full max-h-[300px] min-w-[300px] grid-cols-3 gap-y-10 p-2",
|
|
3195
3175
|
children: months.map((month, index2) => {
|
|
3196
3176
|
const isSelected = index2 === state.focusedDate.month - 1;
|
|
3197
|
-
return /* @__PURE__ */
|
|
3177
|
+
return /* @__PURE__ */ jsx70("li", { className: "flex justify-center", children: /* @__PURE__ */ jsx70(
|
|
3198
3178
|
Button7,
|
|
3199
3179
|
{
|
|
3200
3180
|
slot: "previous",
|
|
@@ -3219,16 +3199,16 @@ var MonthListBox_default = MonthListBox;
|
|
|
3219
3199
|
|
|
3220
3200
|
// src/Calendar/YearListBox.tsx
|
|
3221
3201
|
import {
|
|
3222
|
-
useContext as
|
|
3202
|
+
useContext as useContext15,
|
|
3223
3203
|
useEffect,
|
|
3224
3204
|
useRef as useRef2
|
|
3225
3205
|
} from "react";
|
|
3226
3206
|
import { Button as Button8, CalendarStateContext as CalendarStateContext4 } from "react-aria-components";
|
|
3227
3207
|
import { useDateFormatter as useDateFormatter3 } from "@react-aria/i18n";
|
|
3228
3208
|
import { cn as cn43 } from "@marigold/system";
|
|
3229
|
-
import { jsx as
|
|
3209
|
+
import { jsx as jsx71 } from "react/jsx-runtime";
|
|
3230
3210
|
var YearListBox = ({ setSelectedDropdown }) => {
|
|
3231
|
-
const state =
|
|
3211
|
+
const state = useContext15(CalendarStateContext4);
|
|
3232
3212
|
const { classNames: classNames3 } = useCalendarContext();
|
|
3233
3213
|
const years = [];
|
|
3234
3214
|
let formatter = useDateFormatter3({
|
|
@@ -3257,19 +3237,19 @@ var YearListBox = ({ setSelectedDropdown }) => {
|
|
|
3257
3237
|
let date = years[index2].value;
|
|
3258
3238
|
state.setFocusedDate(date);
|
|
3259
3239
|
};
|
|
3260
|
-
return /* @__PURE__ */
|
|
3240
|
+
return /* @__PURE__ */ jsx71(
|
|
3261
3241
|
"ul",
|
|
3262
3242
|
{
|
|
3263
3243
|
"data-testid": "yearOptions",
|
|
3264
3244
|
className: "grid h-full max-h-[300px] min-w-[300px] grid-cols-3 gap-y-10 overflow-y-scroll p-2",
|
|
3265
3245
|
children: years.map((year, index2) => {
|
|
3266
3246
|
const isSelected = +year.formatted === state.focusedDate.year;
|
|
3267
|
-
return /* @__PURE__ */
|
|
3247
|
+
return /* @__PURE__ */ jsx71("li", { className: "flex justify-center", children: /* @__PURE__ */ jsx71(
|
|
3268
3248
|
"div",
|
|
3269
3249
|
{
|
|
3270
3250
|
ref: isSelected ? activeButtonRef : null,
|
|
3271
3251
|
className: "flex size-full justify-center",
|
|
3272
|
-
children: /* @__PURE__ */
|
|
3252
|
+
children: /* @__PURE__ */ jsx71(
|
|
3273
3253
|
Button8,
|
|
3274
3254
|
{
|
|
3275
3255
|
slot: "previous",
|
|
@@ -3296,7 +3276,7 @@ var YearListBox = ({ setSelectedDropdown }) => {
|
|
|
3296
3276
|
var YearListBox_default = YearListBox;
|
|
3297
3277
|
|
|
3298
3278
|
// src/Calendar/Calendar.tsx
|
|
3299
|
-
import { jsx as
|
|
3279
|
+
import { jsx as jsx72, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
3300
3280
|
var _Calendar = ({
|
|
3301
3281
|
disabled,
|
|
3302
3282
|
readOnly,
|
|
@@ -3311,13 +3291,13 @@ var _Calendar = ({
|
|
|
3311
3291
|
isDateUnavailable: dateUnavailable,
|
|
3312
3292
|
...rest
|
|
3313
3293
|
};
|
|
3314
|
-
const classNames3 =
|
|
3294
|
+
const classNames3 = useClassNames41({ component: "Calendar", size: size2, variant });
|
|
3315
3295
|
const [selectedDropdown, setSelectedDropdown] = useState();
|
|
3316
3296
|
const ViewMap = {
|
|
3317
|
-
month: /* @__PURE__ */
|
|
3318
|
-
year: /* @__PURE__ */
|
|
3297
|
+
month: /* @__PURE__ */ jsx72(MonthListBox_default, { setSelectedDropdown }),
|
|
3298
|
+
year: /* @__PURE__ */ jsx72(YearListBox_default, { setSelectedDropdown })
|
|
3319
3299
|
};
|
|
3320
|
-
return /* @__PURE__ */
|
|
3300
|
+
return /* @__PURE__ */ jsx72(CalendarContext.Provider, { value: { classNames: classNames3 }, children: /* @__PURE__ */ jsxs24(
|
|
3321
3301
|
Calendar,
|
|
3322
3302
|
{
|
|
3323
3303
|
className: cn44(
|
|
@@ -3326,7 +3306,7 @@ var _Calendar = ({
|
|
|
3326
3306
|
),
|
|
3327
3307
|
...props,
|
|
3328
3308
|
children: [
|
|
3329
|
-
/* @__PURE__ */
|
|
3309
|
+
/* @__PURE__ */ jsx72(
|
|
3330
3310
|
"div",
|
|
3331
3311
|
{
|
|
3332
3312
|
className: cn44(
|
|
@@ -3336,7 +3316,7 @@ var _Calendar = ({
|
|
|
3336
3316
|
children: ViewMap[selectedDropdown]
|
|
3337
3317
|
}
|
|
3338
3318
|
),
|
|
3339
|
-
/* @__PURE__ */
|
|
3319
|
+
/* @__PURE__ */ jsxs24(
|
|
3340
3320
|
"div",
|
|
3341
3321
|
{
|
|
3342
3322
|
className: cn44(
|
|
@@ -3344,8 +3324,8 @@ var _Calendar = ({
|
|
|
3344
3324
|
selectedDropdown && "pointer-events-none opacity-0"
|
|
3345
3325
|
),
|
|
3346
3326
|
children: [
|
|
3347
|
-
/* @__PURE__ */
|
|
3348
|
-
/* @__PURE__ */
|
|
3327
|
+
/* @__PURE__ */ jsxs24("div", { className: "mb-4 flex items-center justify-between", children: [
|
|
3328
|
+
/* @__PURE__ */ jsx72("div", { className: "flex w-fit gap-4", children: ["month", "year"].map((dateType) => /* @__PURE__ */ jsx72(
|
|
3349
3329
|
CalendarListBox,
|
|
3350
3330
|
{
|
|
3351
3331
|
type: dateType,
|
|
@@ -3354,9 +3334,9 @@ var _Calendar = ({
|
|
|
3354
3334
|
},
|
|
3355
3335
|
dateType
|
|
3356
3336
|
)) }),
|
|
3357
|
-
/* @__PURE__ */
|
|
3337
|
+
/* @__PURE__ */ jsx72(MonthControls_default, {})
|
|
3358
3338
|
] }),
|
|
3359
|
-
/* @__PURE__ */
|
|
3339
|
+
/* @__PURE__ */ jsx72(_CalendarGrid, {})
|
|
3360
3340
|
]
|
|
3361
3341
|
}
|
|
3362
3342
|
)
|
|
@@ -3368,8 +3348,8 @@ var _Calendar = ({
|
|
|
3368
3348
|
// src/DatePicker/DatePicker.tsx
|
|
3369
3349
|
import React6 from "react";
|
|
3370
3350
|
import { DatePicker, Dialog as Dialog4 } from "react-aria-components";
|
|
3371
|
-
import { useClassNames as
|
|
3372
|
-
import { jsx as
|
|
3351
|
+
import { useClassNames as useClassNames42 } from "@marigold/system";
|
|
3352
|
+
import { jsx as jsx73, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
3373
3353
|
var _DatePicker = React6.forwardRef(
|
|
3374
3354
|
({
|
|
3375
3355
|
dateUnavailable,
|
|
@@ -3393,12 +3373,12 @@ var _DatePicker = React6.forwardRef(
|
|
|
3393
3373
|
granularity,
|
|
3394
3374
|
...rest
|
|
3395
3375
|
};
|
|
3396
|
-
const classNames3 =
|
|
3376
|
+
const classNames3 = useClassNames42({
|
|
3397
3377
|
component: "DatePicker",
|
|
3398
3378
|
size: size2,
|
|
3399
3379
|
variant
|
|
3400
3380
|
});
|
|
3401
|
-
return /* @__PURE__ */
|
|
3381
|
+
return /* @__PURE__ */ jsxs25(
|
|
3402
3382
|
FieldBase,
|
|
3403
3383
|
{
|
|
3404
3384
|
as: DatePicker,
|
|
@@ -3407,10 +3387,10 @@ var _DatePicker = React6.forwardRef(
|
|
|
3407
3387
|
...props,
|
|
3408
3388
|
ref,
|
|
3409
3389
|
children: [
|
|
3410
|
-
/* @__PURE__ */
|
|
3390
|
+
/* @__PURE__ */ jsx73(
|
|
3411
3391
|
_DateInput,
|
|
3412
3392
|
{
|
|
3413
|
-
action: /* @__PURE__ */
|
|
3393
|
+
action: /* @__PURE__ */ jsx73(IconButton, { className: classNames3, children: /* @__PURE__ */ jsx73(
|
|
3414
3394
|
"svg",
|
|
3415
3395
|
{
|
|
3416
3396
|
"data-testid": "action",
|
|
@@ -3418,12 +3398,12 @@ var _DatePicker = React6.forwardRef(
|
|
|
3418
3398
|
width: 24,
|
|
3419
3399
|
height: 24,
|
|
3420
3400
|
fill: "currentColor",
|
|
3421
|
-
children: /* @__PURE__ */
|
|
3401
|
+
children: /* @__PURE__ */ jsx73("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" })
|
|
3422
3402
|
}
|
|
3423
3403
|
) })
|
|
3424
3404
|
}
|
|
3425
3405
|
),
|
|
3426
|
-
/* @__PURE__ */
|
|
3406
|
+
/* @__PURE__ */ jsx73(_Popover, { children: /* @__PURE__ */ jsx73(Dialog4, { children: /* @__PURE__ */ jsx73(_Calendar, { disabled }) }) })
|
|
3427
3407
|
]
|
|
3428
3408
|
}
|
|
3429
3409
|
);
|
|
@@ -3437,8 +3417,8 @@ import {
|
|
|
3437
3417
|
paddingSpaceX as paddingSpaceX2,
|
|
3438
3418
|
paddingSpaceY as paddingSpaceY2
|
|
3439
3419
|
} from "@marigold/system";
|
|
3440
|
-
import { jsx as
|
|
3441
|
-
var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */
|
|
3420
|
+
import { jsx as jsx74 } from "react/jsx-runtime";
|
|
3421
|
+
var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ jsx74(
|
|
3442
3422
|
"div",
|
|
3443
3423
|
{
|
|
3444
3424
|
className: cn45(
|
|
@@ -3453,36 +3433,36 @@ var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ jsx76(
|
|
|
3453
3433
|
// src/Link/Link.tsx
|
|
3454
3434
|
import { forwardRef as forwardRef21 } from "react";
|
|
3455
3435
|
import { Link } from "react-aria-components";
|
|
3456
|
-
import { useClassNames as
|
|
3457
|
-
import { jsx as
|
|
3436
|
+
import { useClassNames as useClassNames43 } from "@marigold/system";
|
|
3437
|
+
import { jsx as jsx75 } from "react/jsx-runtime";
|
|
3458
3438
|
var _Link = forwardRef21(
|
|
3459
3439
|
({ variant, size: size2, disabled, children, ...props }, ref) => {
|
|
3460
|
-
const classNames3 =
|
|
3440
|
+
const classNames3 = useClassNames43({
|
|
3461
3441
|
component: "Link",
|
|
3462
3442
|
variant,
|
|
3463
3443
|
size: size2
|
|
3464
3444
|
});
|
|
3465
|
-
return /* @__PURE__ */
|
|
3445
|
+
return /* @__PURE__ */ jsx75(Link, { ...props, ref, className: classNames3, isDisabled: disabled, children });
|
|
3466
3446
|
}
|
|
3467
3447
|
);
|
|
3468
3448
|
|
|
3469
3449
|
// src/List/List.tsx
|
|
3470
|
-
import { useClassNames as
|
|
3450
|
+
import { useClassNames as useClassNames44 } from "@marigold/system";
|
|
3471
3451
|
|
|
3472
3452
|
// src/List/Context.ts
|
|
3473
|
-
import { createContext as
|
|
3474
|
-
var ListContext =
|
|
3475
|
-
var useListContext = () =>
|
|
3453
|
+
import { createContext as createContext8, useContext as useContext16 } from "react";
|
|
3454
|
+
var ListContext = createContext8({});
|
|
3455
|
+
var useListContext = () => useContext16(ListContext);
|
|
3476
3456
|
|
|
3477
3457
|
// src/List/ListItem.tsx
|
|
3478
|
-
import { jsx as
|
|
3458
|
+
import { jsx as jsx76 } from "react/jsx-runtime";
|
|
3479
3459
|
var ListItem = ({ children, ...props }) => {
|
|
3480
3460
|
const { classNames: classNames3 } = useListContext();
|
|
3481
|
-
return /* @__PURE__ */
|
|
3461
|
+
return /* @__PURE__ */ jsx76("li", { ...props, className: classNames3, children });
|
|
3482
3462
|
};
|
|
3483
3463
|
|
|
3484
3464
|
// src/List/List.tsx
|
|
3485
|
-
import { jsx as
|
|
3465
|
+
import { jsx as jsx77 } from "react/jsx-runtime";
|
|
3486
3466
|
var List = ({
|
|
3487
3467
|
as = "ul",
|
|
3488
3468
|
children,
|
|
@@ -3491,38 +3471,38 @@ var List = ({
|
|
|
3491
3471
|
...props
|
|
3492
3472
|
}) => {
|
|
3493
3473
|
const Component2 = as;
|
|
3494
|
-
const classNames3 =
|
|
3495
|
-
return /* @__PURE__ */
|
|
3474
|
+
const classNames3 = useClassNames44({ component: "List", variant, size: size2 });
|
|
3475
|
+
return /* @__PURE__ */ jsx77(Component2, { ...props, className: classNames3[as], children: /* @__PURE__ */ jsx77(ListContext.Provider, { value: { classNames: classNames3.item }, children }) });
|
|
3496
3476
|
};
|
|
3497
3477
|
List.Item = ListItem;
|
|
3498
3478
|
|
|
3499
3479
|
// src/Menu/Menu.tsx
|
|
3500
3480
|
import { Button as Button9, Menu, MenuTrigger } from "react-aria-components";
|
|
3501
|
-
import { useClassNames as
|
|
3481
|
+
import { useClassNames as useClassNames47 } from "@marigold/system";
|
|
3502
3482
|
|
|
3503
3483
|
// src/Menu/MenuItem.tsx
|
|
3504
3484
|
import { MenuItem } from "react-aria-components";
|
|
3505
|
-
import { useClassNames as
|
|
3506
|
-
import { jsx as
|
|
3485
|
+
import { useClassNames as useClassNames45 } from "@marigold/system";
|
|
3486
|
+
import { jsx as jsx78 } from "react/jsx-runtime";
|
|
3507
3487
|
var _MenuItem = ({ children, ...props }) => {
|
|
3508
|
-
const classNames3 =
|
|
3509
|
-
return /* @__PURE__ */
|
|
3488
|
+
const classNames3 = useClassNames45({ component: "Menu" });
|
|
3489
|
+
return /* @__PURE__ */ jsx78(MenuItem, { ...props, className: classNames3.item, children });
|
|
3510
3490
|
};
|
|
3511
3491
|
|
|
3512
3492
|
// src/Menu/MenuSection.tsx
|
|
3513
3493
|
import { MenuSection } from "react-aria-components";
|
|
3514
|
-
import { useClassNames as
|
|
3515
|
-
import { jsx as
|
|
3494
|
+
import { useClassNames as useClassNames46 } from "@marigold/system";
|
|
3495
|
+
import { jsx as jsx79, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
3516
3496
|
var _MenuSection = ({ children, title, ...props }) => {
|
|
3517
|
-
const className =
|
|
3518
|
-
return /* @__PURE__ */
|
|
3519
|
-
/* @__PURE__ */
|
|
3497
|
+
const className = useClassNames46({ component: "Menu" });
|
|
3498
|
+
return /* @__PURE__ */ jsxs26(MenuSection, { ...props, children: [
|
|
3499
|
+
/* @__PURE__ */ jsx79(_Header, { className: className.section, children: title }),
|
|
3520
3500
|
children
|
|
3521
3501
|
] });
|
|
3522
3502
|
};
|
|
3523
3503
|
|
|
3524
3504
|
// src/Menu/Menu.tsx
|
|
3525
|
-
import { jsx as
|
|
3505
|
+
import { jsx as jsx80, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
3526
3506
|
var _Menu = ({
|
|
3527
3507
|
children,
|
|
3528
3508
|
label,
|
|
@@ -3534,9 +3514,9 @@ var _Menu = ({
|
|
|
3534
3514
|
"aria-label": ariaLabel,
|
|
3535
3515
|
...props
|
|
3536
3516
|
}) => {
|
|
3537
|
-
const classNames3 =
|
|
3538
|
-
return /* @__PURE__ */
|
|
3539
|
-
/* @__PURE__ */
|
|
3517
|
+
const classNames3 = useClassNames47({ component: "Menu", variant, size: size2 });
|
|
3518
|
+
return /* @__PURE__ */ jsxs27(MenuTrigger, { ...props, children: [
|
|
3519
|
+
/* @__PURE__ */ jsx80(
|
|
3540
3520
|
Button9,
|
|
3541
3521
|
{
|
|
3542
3522
|
className: classNames3.button,
|
|
@@ -3545,7 +3525,7 @@ var _Menu = ({
|
|
|
3545
3525
|
children: label
|
|
3546
3526
|
}
|
|
3547
3527
|
),
|
|
3548
|
-
/* @__PURE__ */
|
|
3528
|
+
/* @__PURE__ */ jsx80(_Popover, { open, placement, children: /* @__PURE__ */ jsx80(Menu, { ...props, className: classNames3.container, children }) })
|
|
3549
3529
|
] });
|
|
3550
3530
|
};
|
|
3551
3531
|
_Menu.Item = _MenuItem;
|
|
@@ -3553,17 +3533,17 @@ _Menu.Section = _MenuSection;
|
|
|
3553
3533
|
|
|
3554
3534
|
// src/Menu/ActionMenu.tsx
|
|
3555
3535
|
import { Button as Button10, Menu as Menu2, MenuTrigger as MenuTrigger2 } from "react-aria-components";
|
|
3556
|
-
import { useClassNames as
|
|
3557
|
-
import { jsx as
|
|
3536
|
+
import { useClassNames as useClassNames48 } from "@marigold/system";
|
|
3537
|
+
import { jsx as jsx81, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
3558
3538
|
var ActionMenu = ({
|
|
3559
3539
|
variant,
|
|
3560
3540
|
size: size2,
|
|
3561
3541
|
disabled,
|
|
3562
3542
|
...props
|
|
3563
3543
|
}) => {
|
|
3564
|
-
const classNames3 =
|
|
3565
|
-
return /* @__PURE__ */
|
|
3566
|
-
/* @__PURE__ */
|
|
3544
|
+
const classNames3 = useClassNames48({ component: "Menu", variant, size: size2 });
|
|
3545
|
+
return /* @__PURE__ */ jsxs28(MenuTrigger2, { children: [
|
|
3546
|
+
/* @__PURE__ */ jsx81(Button10, { className: classNames3.button, isDisabled: disabled, children: /* @__PURE__ */ jsxs28(
|
|
3567
3547
|
"svg",
|
|
3568
3548
|
{
|
|
3569
3549
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3574,54 +3554,54 @@ var ActionMenu = ({
|
|
|
3574
3554
|
strokeLinecap: "round",
|
|
3575
3555
|
strokeLinejoin: "round",
|
|
3576
3556
|
children: [
|
|
3577
|
-
/* @__PURE__ */
|
|
3578
|
-
/* @__PURE__ */
|
|
3579
|
-
/* @__PURE__ */
|
|
3557
|
+
/* @__PURE__ */ jsx81("circle", { cx: 12, cy: 12, r: 1 }),
|
|
3558
|
+
/* @__PURE__ */ jsx81("circle", { cx: 12, cy: 5, r: 1 }),
|
|
3559
|
+
/* @__PURE__ */ jsx81("circle", { cx: 12, cy: 19, r: 1 })
|
|
3580
3560
|
]
|
|
3581
3561
|
}
|
|
3582
3562
|
) }),
|
|
3583
|
-
/* @__PURE__ */
|
|
3563
|
+
/* @__PURE__ */ jsx81(_Popover, { children: /* @__PURE__ */ jsx81(Menu2, { ...props, className: classNames3.container, children: props.children }) })
|
|
3584
3564
|
] });
|
|
3585
3565
|
};
|
|
3586
3566
|
|
|
3587
3567
|
// src/SectionMessage/SectionMessage.tsx
|
|
3588
3568
|
import { useRef as useRef3, useState as useState2 } from "react";
|
|
3589
3569
|
import { useButton } from "@react-aria/button";
|
|
3590
|
-
import { cn as cn48, useClassNames as
|
|
3570
|
+
import { cn as cn48, useClassNames as useClassNames49 } from "@marigold/system";
|
|
3591
3571
|
|
|
3592
3572
|
// src/SectionMessage/Context.tsx
|
|
3593
|
-
import { createContext as
|
|
3594
|
-
var SectionMessageContext =
|
|
3595
|
-
var useSectionMessageContext = () =>
|
|
3573
|
+
import { createContext as createContext9, useContext as useContext17 } from "react";
|
|
3574
|
+
var SectionMessageContext = createContext9({});
|
|
3575
|
+
var useSectionMessageContext = () => useContext17(SectionMessageContext);
|
|
3596
3576
|
|
|
3597
3577
|
// src/SectionMessage/SectionMessageContent.tsx
|
|
3598
3578
|
import { cn as cn46 } from "@marigold/system";
|
|
3599
|
-
import { jsx as
|
|
3579
|
+
import { jsx as jsx82 } from "react/jsx-runtime";
|
|
3600
3580
|
var SectionMessageContent = ({
|
|
3601
3581
|
children
|
|
3602
3582
|
}) => {
|
|
3603
3583
|
const { classNames: classNames3 } = useSectionMessageContext();
|
|
3604
|
-
return /* @__PURE__ */
|
|
3584
|
+
return /* @__PURE__ */ jsx82("div", { className: cn46("[grid-area:content]", classNames3.content), children });
|
|
3605
3585
|
};
|
|
3606
3586
|
|
|
3607
3587
|
// src/SectionMessage/SectionMessageTitle.tsx
|
|
3608
3588
|
import { cn as cn47 } from "@marigold/system";
|
|
3609
|
-
import { jsx as
|
|
3589
|
+
import { jsx as jsx83 } from "react/jsx-runtime";
|
|
3610
3590
|
var SectionMessageTitle = ({ children }) => {
|
|
3611
3591
|
const { classNames: classNames3 } = useSectionMessageContext();
|
|
3612
|
-
return /* @__PURE__ */
|
|
3592
|
+
return /* @__PURE__ */ jsx83("div", { className: cn47("[grid-area:title]", classNames3.title), children });
|
|
3613
3593
|
};
|
|
3614
3594
|
|
|
3615
3595
|
// src/SectionMessage/SectionMessage.tsx
|
|
3616
|
-
import { jsx as
|
|
3596
|
+
import { jsx as jsx84, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
3617
3597
|
var icons2 = {
|
|
3618
|
-
success: () => /* @__PURE__ */
|
|
3598
|
+
success: () => /* @__PURE__ */ jsx84(
|
|
3619
3599
|
"svg",
|
|
3620
3600
|
{
|
|
3621
3601
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3622
3602
|
viewBox: "0 0 24 24",
|
|
3623
3603
|
fill: "currentColor",
|
|
3624
|
-
children: /* @__PURE__ */
|
|
3604
|
+
children: /* @__PURE__ */ jsx84(
|
|
3625
3605
|
"path",
|
|
3626
3606
|
{
|
|
3627
3607
|
fillRule: "evenodd",
|
|
@@ -3631,13 +3611,13 @@ var icons2 = {
|
|
|
3631
3611
|
)
|
|
3632
3612
|
}
|
|
3633
3613
|
),
|
|
3634
|
-
info: () => /* @__PURE__ */
|
|
3614
|
+
info: () => /* @__PURE__ */ jsx84(
|
|
3635
3615
|
"svg",
|
|
3636
3616
|
{
|
|
3637
3617
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3638
3618
|
viewBox: "0 0 24 24",
|
|
3639
3619
|
fill: "currentColor",
|
|
3640
|
-
children: /* @__PURE__ */
|
|
3620
|
+
children: /* @__PURE__ */ jsx84(
|
|
3641
3621
|
"path",
|
|
3642
3622
|
{
|
|
3643
3623
|
fillRule: "evenodd",
|
|
@@ -3647,13 +3627,13 @@ var icons2 = {
|
|
|
3647
3627
|
)
|
|
3648
3628
|
}
|
|
3649
3629
|
),
|
|
3650
|
-
warning: () => /* @__PURE__ */
|
|
3630
|
+
warning: () => /* @__PURE__ */ jsx84(
|
|
3651
3631
|
"svg",
|
|
3652
3632
|
{
|
|
3653
3633
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3654
3634
|
viewBox: "0 0 24 24",
|
|
3655
3635
|
fill: "currentColor",
|
|
3656
|
-
children: /* @__PURE__ */
|
|
3636
|
+
children: /* @__PURE__ */ jsx84(
|
|
3657
3637
|
"path",
|
|
3658
3638
|
{
|
|
3659
3639
|
fillRule: "evenodd",
|
|
@@ -3663,13 +3643,13 @@ var icons2 = {
|
|
|
3663
3643
|
)
|
|
3664
3644
|
}
|
|
3665
3645
|
),
|
|
3666
|
-
error: () => /* @__PURE__ */
|
|
3646
|
+
error: () => /* @__PURE__ */ jsx84(
|
|
3667
3647
|
"svg",
|
|
3668
3648
|
{
|
|
3669
3649
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3670
3650
|
viewBox: "0 0 24 24",
|
|
3671
3651
|
fill: "currentColor",
|
|
3672
|
-
children: /* @__PURE__ */
|
|
3652
|
+
children: /* @__PURE__ */ jsx84(
|
|
3673
3653
|
"path",
|
|
3674
3654
|
{
|
|
3675
3655
|
fillRule: "evenodd",
|
|
@@ -3690,7 +3670,7 @@ var SectionMessage = ({
|
|
|
3690
3670
|
...props
|
|
3691
3671
|
}) => {
|
|
3692
3672
|
const buttonRef = useRef3(null);
|
|
3693
|
-
const classNames3 =
|
|
3673
|
+
const classNames3 = useClassNames49({
|
|
3694
3674
|
component: "SectionMessage",
|
|
3695
3675
|
variant,
|
|
3696
3676
|
size: size2
|
|
@@ -3706,15 +3686,15 @@ var SectionMessage = ({
|
|
|
3706
3686
|
}
|
|
3707
3687
|
};
|
|
3708
3688
|
if (!isCurrentlyVisible) return null;
|
|
3709
|
-
return /* @__PURE__ */
|
|
3689
|
+
return /* @__PURE__ */ jsx84(SectionMessageContext.Provider, { value: { classNames: classNames3 }, children: /* @__PURE__ */ jsxs29(
|
|
3710
3690
|
"div",
|
|
3711
3691
|
{
|
|
3712
3692
|
role: variant === "error" ? "alert" : void 0,
|
|
3713
3693
|
...props,
|
|
3714
3694
|
className: cn48("grid auto-rows-min", classNames3.container),
|
|
3715
3695
|
children: [
|
|
3716
|
-
/* @__PURE__ */
|
|
3717
|
-
closeButton && /* @__PURE__ */
|
|
3696
|
+
/* @__PURE__ */ jsx84("div", { className: cn48("[grid-area:icon]", classNames3.icon), children: Icon4 && /* @__PURE__ */ jsx84(Icon4, {}) }),
|
|
3697
|
+
closeButton && /* @__PURE__ */ jsx84(
|
|
3718
3698
|
CloseButton,
|
|
3719
3699
|
{
|
|
3720
3700
|
...buttonProps,
|
|
@@ -3879,7 +3859,7 @@ function _objectWithoutProperties(e, t) {
|
|
|
3879
3859
|
return i;
|
|
3880
3860
|
}
|
|
3881
3861
|
|
|
3882
|
-
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.
|
|
3862
|
+
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.8_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-select/dist/useStateManager-7e1e8489.esm.js
|
|
3883
3863
|
import { useState as useState3, useCallback } from "react";
|
|
3884
3864
|
var _excluded = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
|
|
3885
3865
|
function useStateManager(_ref3) {
|
|
@@ -3937,7 +3917,7 @@ function _extends() {
|
|
|
3937
3917
|
}, _extends.apply(null, arguments);
|
|
3938
3918
|
}
|
|
3939
3919
|
|
|
3940
|
-
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.
|
|
3920
|
+
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.8_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-select/dist/react-select.esm.js
|
|
3941
3921
|
import * as React11 from "react";
|
|
3942
3922
|
import { forwardRef as forwardRef24, useMemo as useMemo5 } from "react";
|
|
3943
3923
|
|
|
@@ -4045,13 +4025,13 @@ function _toConsumableArray(r) {
|
|
|
4045
4025
|
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
4046
4026
|
}
|
|
4047
4027
|
|
|
4048
|
-
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.
|
|
4028
|
+
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.8_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-select/dist/Select-aab027f3.esm.js
|
|
4049
4029
|
import * as React10 from "react";
|
|
4050
|
-
import { useMemo as useMemo4, Fragment as
|
|
4030
|
+
import { useMemo as useMemo4, Fragment as Fragment7, useRef as useRef6, useCallback as useCallback3, useEffect as useEffect3, Component } from "react";
|
|
4051
4031
|
|
|
4052
|
-
// ../../node_modules/.pnpm/@emotion+react@11.14.0_@types+react@19.1.
|
|
4032
|
+
// ../../node_modules/.pnpm/@emotion+react@11.14.0_@types+react@19.1.8_react@19.1.0/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js
|
|
4053
4033
|
import * as React8 from "react";
|
|
4054
|
-
import { useContext as
|
|
4034
|
+
import { useContext as useContext19, forwardRef as forwardRef23 } from "react";
|
|
4055
4035
|
|
|
4056
4036
|
// ../../node_modules/.pnpm/@emotion+sheet@1.4.0/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js
|
|
4057
4037
|
var isDevelopment = false;
|
|
@@ -5223,7 +5203,7 @@ var syncFallback = function syncFallback2(create) {
|
|
|
5223
5203
|
var useInsertionEffect2 = React7["useInsertionEffect"] ? React7["useInsertionEffect"] : false;
|
|
5224
5204
|
var useInsertionEffectAlwaysWithSyncFallback = !isBrowser3 ? syncFallback : useInsertionEffect2 || syncFallback;
|
|
5225
5205
|
|
|
5226
|
-
// ../../node_modules/.pnpm/@emotion+react@11.14.0_@types+react@19.1.
|
|
5206
|
+
// ../../node_modules/.pnpm/@emotion+react@11.14.0_@types+react@19.1.8_react@19.1.0/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js
|
|
5227
5207
|
var isDevelopment3 = false;
|
|
5228
5208
|
var isBrowser4 = typeof document !== "undefined";
|
|
5229
5209
|
var EmotionCacheContext = /* @__PURE__ */ React8.createContext(
|
|
@@ -5240,14 +5220,14 @@ var EmotionCacheContext = /* @__PURE__ */ React8.createContext(
|
|
|
5240
5220
|
var CacheProvider = EmotionCacheContext.Provider;
|
|
5241
5221
|
var withEmotionCache = function withEmotionCache2(func) {
|
|
5242
5222
|
return /* @__PURE__ */ forwardRef23(function(props, ref) {
|
|
5243
|
-
var cache =
|
|
5223
|
+
var cache = useContext19(EmotionCacheContext);
|
|
5244
5224
|
return func(props, cache, ref);
|
|
5245
5225
|
});
|
|
5246
5226
|
};
|
|
5247
5227
|
if (!isBrowser4) {
|
|
5248
5228
|
withEmotionCache = function withEmotionCache3(func) {
|
|
5249
5229
|
return function(props) {
|
|
5250
|
-
var cache =
|
|
5230
|
+
var cache = useContext19(EmotionCacheContext);
|
|
5251
5231
|
if (cache === null) {
|
|
5252
5232
|
cache = createCache({
|
|
5253
5233
|
key: "css"
|
|
@@ -5327,11 +5307,11 @@ var Emotion = /* @__PURE__ */ withEmotionCache(function(props, cache, ref) {
|
|
|
5327
5307
|
});
|
|
5328
5308
|
var Emotion$1 = Emotion;
|
|
5329
5309
|
|
|
5330
|
-
// ../../node_modules/.pnpm/@emotion+react@11.14.0_@types+react@19.1.
|
|
5310
|
+
// ../../node_modules/.pnpm/@emotion+react@11.14.0_@types+react@19.1.8_react@19.1.0/node_modules/@emotion/react/dist/emotion-react.esm.js
|
|
5331
5311
|
import * as React9 from "react";
|
|
5332
5312
|
var import_extends2 = __toESM(require_extends());
|
|
5333
5313
|
var import_hoist_non_react_statics = __toESM(require_hoist_non_react_statics_cjs());
|
|
5334
|
-
var
|
|
5314
|
+
var jsx85 = function jsx86(type, props) {
|
|
5335
5315
|
var args = arguments;
|
|
5336
5316
|
if (props == null || !hasOwn.call(props, "css")) {
|
|
5337
5317
|
return React9.createElement.apply(void 0, args);
|
|
@@ -5349,7 +5329,7 @@ var jsx87 = function jsx88(type, props) {
|
|
|
5349
5329
|
var JSX2;
|
|
5350
5330
|
/* @__PURE__ */ (function(_JSX) {
|
|
5351
5331
|
})(JSX2 || (JSX2 = _jsx.JSX || (_jsx.JSX = {})));
|
|
5352
|
-
})(
|
|
5332
|
+
})(jsx85 || (jsx85 = {}));
|
|
5353
5333
|
function css() {
|
|
5354
5334
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
5355
5335
|
args[_key] = arguments[_key];
|
|
@@ -5378,8 +5358,8 @@ function _taggedTemplateLiteral(e, t) {
|
|
|
5378
5358
|
}));
|
|
5379
5359
|
}
|
|
5380
5360
|
|
|
5381
|
-
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.
|
|
5382
|
-
import { useContext as
|
|
5361
|
+
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.8_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-select/dist/index-641ee5b8.esm.js
|
|
5362
|
+
import { useContext as useContext21, useRef as useRef5, useState as useState4, useMemo as useMemo3, useCallback as useCallback2, createContext as createContext11 } from "react";
|
|
5383
5363
|
import { createPortal } from "react-dom";
|
|
5384
5364
|
|
|
5385
5365
|
// ../../node_modules/.pnpm/@floating-ui+utils@0.2.9/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
|
@@ -5779,12 +5759,12 @@ function autoUpdate(reference, floating, update, options2) {
|
|
|
5779
5759
|
};
|
|
5780
5760
|
}
|
|
5781
5761
|
|
|
5782
|
-
// ../../node_modules/.pnpm/use-isomorphic-layout-effect@1.2.0_@types+react@19.1.
|
|
5762
|
+
// ../../node_modules/.pnpm/use-isomorphic-layout-effect@1.2.0_@types+react@19.1.8_react@19.1.0/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js
|
|
5783
5763
|
import { useLayoutEffect as useLayoutEffect2, useEffect as useEffect2 } from "react";
|
|
5784
5764
|
var isClient = typeof document !== "undefined";
|
|
5785
5765
|
var index = isClient ? useLayoutEffect2 : useEffect2;
|
|
5786
5766
|
|
|
5787
|
-
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.
|
|
5767
|
+
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.8_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-select/dist/index-641ee5b8.esm.js
|
|
5788
5768
|
var _excluded$4 = ["className", "clearValue", "cx", "getStyles", "getClassNames", "getValue", "hasValue", "isMulti", "isRtl", "options", "selectOption", "selectProps", "setValue", "theme"];
|
|
5789
5769
|
var noop = function noop2() {
|
|
5790
5770
|
};
|
|
@@ -6116,10 +6096,10 @@ var menuCSS = function menuCSS2(_ref23, unstyled) {
|
|
|
6116
6096
|
marginTop: spacing2.menuGutter
|
|
6117
6097
|
});
|
|
6118
6098
|
};
|
|
6119
|
-
var PortalPlacementContext = /* @__PURE__ */
|
|
6099
|
+
var PortalPlacementContext = /* @__PURE__ */ createContext11(null);
|
|
6120
6100
|
var MenuPlacer = function MenuPlacer2(props) {
|
|
6121
6101
|
var children = props.children, minMenuHeight = props.minMenuHeight, maxMenuHeight = props.maxMenuHeight, menuPlacement = props.menuPlacement, menuPosition = props.menuPosition, menuShouldScrollIntoView = props.menuShouldScrollIntoView, theme = props.theme;
|
|
6122
|
-
var _ref3 =
|
|
6102
|
+
var _ref3 = useContext21(PortalPlacementContext) || {}, setPortalPlacement = _ref3.setPortalPlacement;
|
|
6123
6103
|
var ref = useRef5(null);
|
|
6124
6104
|
var _useState = useState4(maxMenuHeight), _useState2 = _slicedToArray(_useState, 2), maxHeight = _useState2[0], setMaxHeight = _useState2[1];
|
|
6125
6105
|
var _useState3 = useState4(null), _useState4 = _slicedToArray(_useState3, 2), placement = _useState4[0], setPlacement = _useState4[1];
|
|
@@ -6152,7 +6132,7 @@ var MenuPlacer = function MenuPlacer2(props) {
|
|
|
6152
6132
|
};
|
|
6153
6133
|
var Menu3 = function Menu4(props) {
|
|
6154
6134
|
var children = props.children, innerRef = props.innerRef, innerProps = props.innerProps;
|
|
6155
|
-
return
|
|
6135
|
+
return jsx85("div", _extends({}, getStyleProps(props, "menu", {
|
|
6156
6136
|
menu: true
|
|
6157
6137
|
}), {
|
|
6158
6138
|
ref: innerRef
|
|
@@ -6174,7 +6154,7 @@ var menuListCSS = function menuListCSS2(_ref4, unstyled) {
|
|
|
6174
6154
|
};
|
|
6175
6155
|
var MenuList = function MenuList2(props) {
|
|
6176
6156
|
var children = props.children, innerProps = props.innerProps, innerRef = props.innerRef, isMulti = props.isMulti;
|
|
6177
|
-
return
|
|
6157
|
+
return jsx85("div", _extends({}, getStyleProps(props, "menuList", {
|
|
6178
6158
|
"menu-list": true,
|
|
6179
6159
|
"menu-list--is-multi": isMulti
|
|
6180
6160
|
}), {
|
|
@@ -6194,7 +6174,7 @@ var noOptionsMessageCSS = noticeCSS;
|
|
|
6194
6174
|
var loadingMessageCSS = noticeCSS;
|
|
6195
6175
|
var NoOptionsMessage = function NoOptionsMessage2(_ref6) {
|
|
6196
6176
|
var _ref6$children = _ref6.children, children = _ref6$children === void 0 ? "No options" : _ref6$children, innerProps = _ref6.innerProps, restProps = _objectWithoutProperties(_ref6, _excluded$3);
|
|
6197
|
-
return
|
|
6177
|
+
return jsx85("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
6198
6178
|
children,
|
|
6199
6179
|
innerProps
|
|
6200
6180
|
}), "noOptionsMessage", {
|
|
@@ -6204,7 +6184,7 @@ var NoOptionsMessage = function NoOptionsMessage2(_ref6) {
|
|
|
6204
6184
|
};
|
|
6205
6185
|
var LoadingMessage = function LoadingMessage2(_ref7) {
|
|
6206
6186
|
var _ref7$children = _ref7.children, children = _ref7$children === void 0 ? "Loading..." : _ref7$children, innerProps = _ref7.innerProps, restProps = _objectWithoutProperties(_ref7, _excluded2$1);
|
|
6207
|
-
return
|
|
6187
|
+
return jsx85("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
6208
6188
|
children,
|
|
6209
6189
|
innerProps
|
|
6210
6190
|
}), "loadingMessage", {
|
|
@@ -6267,7 +6247,7 @@ var MenuPortal = function MenuPortal2(props) {
|
|
|
6267
6247
|
runAutoUpdate();
|
|
6268
6248
|
}, [runAutoUpdate]);
|
|
6269
6249
|
if (!appendTo && menuPosition !== "fixed" || !computedPosition) return null;
|
|
6270
|
-
var menuWrapper =
|
|
6250
|
+
var menuWrapper = jsx85("div", _extends({
|
|
6271
6251
|
ref: setMenuPortalElement
|
|
6272
6252
|
}, getStyleProps(_objectSpread2(_objectSpread2({}, props), {}, {
|
|
6273
6253
|
offset: computedPosition.offset,
|
|
@@ -6276,7 +6256,7 @@ var MenuPortal = function MenuPortal2(props) {
|
|
|
6276
6256
|
}), "menuPortal", {
|
|
6277
6257
|
"menu-portal": true
|
|
6278
6258
|
}), innerProps), children);
|
|
6279
|
-
return
|
|
6259
|
+
return jsx85(PortalPlacementContext.Provider, {
|
|
6280
6260
|
value: portalPlacementContext
|
|
6281
6261
|
}, appendTo ? /* @__PURE__ */ createPortal(menuWrapper, appendTo) : menuWrapper);
|
|
6282
6262
|
};
|
|
@@ -6292,7 +6272,7 @@ var containerCSS = function containerCSS2(_ref3) {
|
|
|
6292
6272
|
};
|
|
6293
6273
|
var SelectContainer = function SelectContainer2(props) {
|
|
6294
6274
|
var children = props.children, innerProps = props.innerProps, isDisabled = props.isDisabled, isRtl = props.isRtl;
|
|
6295
|
-
return
|
|
6275
|
+
return jsx85("div", _extends({}, getStyleProps(props, "container", {
|
|
6296
6276
|
"--is-disabled": isDisabled,
|
|
6297
6277
|
"--is-rtl": isRtl
|
|
6298
6278
|
}), innerProps), children);
|
|
@@ -6313,7 +6293,7 @@ var valueContainerCSS = function valueContainerCSS2(_ref23, unstyled) {
|
|
|
6313
6293
|
};
|
|
6314
6294
|
var ValueContainer = function ValueContainer2(props) {
|
|
6315
6295
|
var children = props.children, innerProps = props.innerProps, isMulti = props.isMulti, hasValue = props.hasValue;
|
|
6316
|
-
return
|
|
6296
|
+
return jsx85("div", _extends({}, getStyleProps(props, "valueContainer", {
|
|
6317
6297
|
"value-container": true,
|
|
6318
6298
|
"value-container--is-multi": isMulti,
|
|
6319
6299
|
"value-container--has-value": hasValue
|
|
@@ -6329,7 +6309,7 @@ var indicatorsContainerCSS = function indicatorsContainerCSS2() {
|
|
|
6329
6309
|
};
|
|
6330
6310
|
var IndicatorsContainer = function IndicatorsContainer2(props) {
|
|
6331
6311
|
var children = props.children, innerProps = props.innerProps;
|
|
6332
|
-
return
|
|
6312
|
+
return jsx85("div", _extends({}, getStyleProps(props, "indicatorsContainer", {
|
|
6333
6313
|
indicators: true
|
|
6334
6314
|
}), innerProps), children);
|
|
6335
6315
|
};
|
|
@@ -6350,7 +6330,7 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
|
|
|
6350
6330
|
};
|
|
6351
6331
|
var Svg = function Svg2(_ref3) {
|
|
6352
6332
|
var size2 = _ref3.size, props = _objectWithoutProperties(_ref3, _excluded$2);
|
|
6353
|
-
return
|
|
6333
|
+
return jsx85("svg", _extends({
|
|
6354
6334
|
height: size2,
|
|
6355
6335
|
width: size2,
|
|
6356
6336
|
viewBox: "0 0 20 20",
|
|
@@ -6360,16 +6340,16 @@ var Svg = function Svg2(_ref3) {
|
|
|
6360
6340
|
}, props));
|
|
6361
6341
|
};
|
|
6362
6342
|
var CrossIcon = function CrossIcon2(props) {
|
|
6363
|
-
return
|
|
6343
|
+
return jsx85(Svg, _extends({
|
|
6364
6344
|
size: 20
|
|
6365
|
-
}, props),
|
|
6345
|
+
}, props), jsx85("path", {
|
|
6366
6346
|
d: "M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"
|
|
6367
6347
|
}));
|
|
6368
6348
|
};
|
|
6369
6349
|
var DownChevron = function DownChevron2(props) {
|
|
6370
|
-
return
|
|
6350
|
+
return jsx85(Svg, _extends({
|
|
6371
6351
|
size: 20
|
|
6372
|
-
}, props),
|
|
6352
|
+
}, props), jsx85("path", {
|
|
6373
6353
|
d: "M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"
|
|
6374
6354
|
}));
|
|
6375
6355
|
};
|
|
@@ -6390,18 +6370,18 @@ var baseCSS = function baseCSS2(_ref3, unstyled) {
|
|
|
6390
6370
|
var dropdownIndicatorCSS = baseCSS;
|
|
6391
6371
|
var DropdownIndicator = function DropdownIndicator2(props) {
|
|
6392
6372
|
var children = props.children, innerProps = props.innerProps;
|
|
6393
|
-
return
|
|
6373
|
+
return jsx85("div", _extends({}, getStyleProps(props, "dropdownIndicator", {
|
|
6394
6374
|
indicator: true,
|
|
6395
6375
|
"dropdown-indicator": true
|
|
6396
|
-
}), innerProps), children ||
|
|
6376
|
+
}), innerProps), children || jsx85(DownChevron, null));
|
|
6397
6377
|
};
|
|
6398
6378
|
var clearIndicatorCSS = baseCSS;
|
|
6399
6379
|
var ClearIndicator = function ClearIndicator2(props) {
|
|
6400
6380
|
var children = props.children, innerProps = props.innerProps;
|
|
6401
|
-
return
|
|
6381
|
+
return jsx85("div", _extends({}, getStyleProps(props, "clearIndicator", {
|
|
6402
6382
|
indicator: true,
|
|
6403
6383
|
"clear-indicator": true
|
|
6404
|
-
}), innerProps), children ||
|
|
6384
|
+
}), innerProps), children || jsx85(CrossIcon, null));
|
|
6405
6385
|
};
|
|
6406
6386
|
var indicatorSeparatorCSS = function indicatorSeparatorCSS2(_ref4, unstyled) {
|
|
6407
6387
|
var isDisabled = _ref4.isDisabled, _ref4$theme = _ref4.theme, baseUnit2 = _ref4$theme.spacing.baseUnit, colors2 = _ref4$theme.colors;
|
|
@@ -6417,7 +6397,7 @@ var indicatorSeparatorCSS = function indicatorSeparatorCSS2(_ref4, unstyled) {
|
|
|
6417
6397
|
};
|
|
6418
6398
|
var IndicatorSeparator = function IndicatorSeparator2(props) {
|
|
6419
6399
|
var innerProps = props.innerProps;
|
|
6420
|
-
return
|
|
6400
|
+
return jsx85("span", _extends({}, innerProps, getStyleProps(props, "indicatorSeparator", {
|
|
6421
6401
|
"indicator-separator": true
|
|
6422
6402
|
})));
|
|
6423
6403
|
};
|
|
@@ -6441,7 +6421,7 @@ var loadingIndicatorCSS = function loadingIndicatorCSS2(_ref5, unstyled) {
|
|
|
6441
6421
|
};
|
|
6442
6422
|
var LoadingDot = function LoadingDot2(_ref6) {
|
|
6443
6423
|
var delay = _ref6.delay, offset2 = _ref6.offset;
|
|
6444
|
-
return
|
|
6424
|
+
return jsx85("span", {
|
|
6445
6425
|
css: /* @__PURE__ */ css({
|
|
6446
6426
|
animation: "".concat(loadingDotAnimations, " 1s ease-in-out ").concat(delay, "ms infinite;"),
|
|
6447
6427
|
backgroundColor: "currentColor",
|
|
@@ -6456,20 +6436,20 @@ var LoadingDot = function LoadingDot2(_ref6) {
|
|
|
6456
6436
|
};
|
|
6457
6437
|
var LoadingIndicator = function LoadingIndicator2(_ref7) {
|
|
6458
6438
|
var innerProps = _ref7.innerProps, isRtl = _ref7.isRtl, _ref7$size = _ref7.size, size2 = _ref7$size === void 0 ? 4 : _ref7$size, restProps = _objectWithoutProperties(_ref7, _excluded2);
|
|
6459
|
-
return
|
|
6439
|
+
return jsx85("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
6460
6440
|
innerProps,
|
|
6461
6441
|
isRtl,
|
|
6462
6442
|
size: size2
|
|
6463
6443
|
}), "loadingIndicator", {
|
|
6464
6444
|
indicator: true,
|
|
6465
6445
|
"loading-indicator": true
|
|
6466
|
-
}), innerProps),
|
|
6446
|
+
}), innerProps), jsx85(LoadingDot, {
|
|
6467
6447
|
delay: 0,
|
|
6468
6448
|
offset: isRtl
|
|
6469
|
-
}),
|
|
6449
|
+
}), jsx85(LoadingDot, {
|
|
6470
6450
|
delay: 160,
|
|
6471
6451
|
offset: true
|
|
6472
|
-
}),
|
|
6452
|
+
}), jsx85(LoadingDot, {
|
|
6473
6453
|
delay: 320,
|
|
6474
6454
|
offset: !isRtl
|
|
6475
6455
|
}));
|
|
@@ -6501,7 +6481,7 @@ var css$1 = function css2(_ref3, unstyled) {
|
|
|
6501
6481
|
};
|
|
6502
6482
|
var Control = function Control2(props) {
|
|
6503
6483
|
var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, innerRef = props.innerRef, innerProps = props.innerProps, menuIsOpen = props.menuIsOpen;
|
|
6504
|
-
return
|
|
6484
|
+
return jsx85("div", _extends({
|
|
6505
6485
|
ref: innerRef
|
|
6506
6486
|
}, getStyleProps(props, "control", {
|
|
6507
6487
|
control: true,
|
|
@@ -6523,15 +6503,15 @@ var groupCSS = function groupCSS2(_ref3, unstyled) {
|
|
|
6523
6503
|
};
|
|
6524
6504
|
var Group2 = function Group3(props) {
|
|
6525
6505
|
var children = props.children, cx = props.cx, getStyles = props.getStyles, getClassNames2 = props.getClassNames, Heading6 = props.Heading, headingProps = props.headingProps, innerProps = props.innerProps, label = props.label, theme = props.theme, selectProps = props.selectProps;
|
|
6526
|
-
return
|
|
6506
|
+
return jsx85("div", _extends({}, getStyleProps(props, "group", {
|
|
6527
6507
|
group: true
|
|
6528
|
-
}), innerProps),
|
|
6508
|
+
}), innerProps), jsx85(Heading6, _extends({}, headingProps, {
|
|
6529
6509
|
selectProps,
|
|
6530
6510
|
theme,
|
|
6531
6511
|
getStyles,
|
|
6532
6512
|
getClassNames: getClassNames2,
|
|
6533
6513
|
cx
|
|
6534
|
-
}), label),
|
|
6514
|
+
}), label), jsx85("div", null, children));
|
|
6535
6515
|
};
|
|
6536
6516
|
var groupHeadingCSS = function groupHeadingCSS2(_ref23, unstyled) {
|
|
6537
6517
|
var _ref2$theme = _ref23.theme, colors2 = _ref2$theme.colors, spacing2 = _ref2$theme.spacing;
|
|
@@ -6553,7 +6533,7 @@ var GroupHeading = function GroupHeading2(props) {
|
|
|
6553
6533
|
var _cleanCommonProps = cleanCommonProps(props);
|
|
6554
6534
|
_cleanCommonProps.data;
|
|
6555
6535
|
var innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$1);
|
|
6556
|
-
return
|
|
6536
|
+
return jsx85("div", _extends({}, getStyleProps(props, "groupHeading", {
|
|
6557
6537
|
"group-heading": true
|
|
6558
6538
|
}), innerProps));
|
|
6559
6539
|
};
|
|
@@ -6605,11 +6585,11 @@ var inputStyle = function inputStyle2(isHidden) {
|
|
|
6605
6585
|
var Input2 = function Input3(props) {
|
|
6606
6586
|
var cx = props.cx, value = props.value;
|
|
6607
6587
|
var _cleanCommonProps = cleanCommonProps(props), innerRef = _cleanCommonProps.innerRef, isDisabled = _cleanCommonProps.isDisabled, isHidden = _cleanCommonProps.isHidden, inputClassName = _cleanCommonProps.inputClassName, innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded3);
|
|
6608
|
-
return
|
|
6588
|
+
return jsx85("div", _extends({}, getStyleProps(props, "input", {
|
|
6609
6589
|
"input-container": true
|
|
6610
6590
|
}), {
|
|
6611
6591
|
"data-value": value || ""
|
|
6612
|
-
}),
|
|
6592
|
+
}), jsx85("input", _extends({
|
|
6613
6593
|
className: cx({
|
|
6614
6594
|
input: true
|
|
6615
6595
|
}, inputClassName),
|
|
@@ -6663,35 +6643,35 @@ var multiValueRemoveCSS = function multiValueRemoveCSS2(_ref3, unstyled) {
|
|
|
6663
6643
|
};
|
|
6664
6644
|
var MultiValueGeneric = function MultiValueGeneric2(_ref4) {
|
|
6665
6645
|
var children = _ref4.children, innerProps = _ref4.innerProps;
|
|
6666
|
-
return
|
|
6646
|
+
return jsx85("div", innerProps, children);
|
|
6667
6647
|
};
|
|
6668
6648
|
var MultiValueContainer = MultiValueGeneric;
|
|
6669
6649
|
var MultiValueLabel = MultiValueGeneric;
|
|
6670
6650
|
function MultiValueRemove(_ref5) {
|
|
6671
6651
|
var children = _ref5.children, innerProps = _ref5.innerProps;
|
|
6672
|
-
return
|
|
6652
|
+
return jsx85("div", _extends({
|
|
6673
6653
|
role: "button"
|
|
6674
|
-
}, innerProps), children ||
|
|
6654
|
+
}, innerProps), children || jsx85(CrossIcon, {
|
|
6675
6655
|
size: 14
|
|
6676
6656
|
}));
|
|
6677
6657
|
}
|
|
6678
6658
|
var MultiValue = function MultiValue2(props) {
|
|
6679
6659
|
var children = props.children, components2 = props.components, data = props.data, innerProps = props.innerProps, isDisabled = props.isDisabled, removeProps3 = props.removeProps, selectProps = props.selectProps;
|
|
6680
6660
|
var Container2 = components2.Container, Label3 = components2.Label, Remove = components2.Remove;
|
|
6681
|
-
return
|
|
6661
|
+
return jsx85(Container2, {
|
|
6682
6662
|
data,
|
|
6683
6663
|
innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, "multiValue", {
|
|
6684
6664
|
"multi-value": true,
|
|
6685
6665
|
"multi-value--is-disabled": isDisabled
|
|
6686
6666
|
})), innerProps),
|
|
6687
6667
|
selectProps
|
|
6688
|
-
},
|
|
6668
|
+
}, jsx85(Label3, {
|
|
6689
6669
|
data,
|
|
6690
6670
|
innerProps: _objectSpread2({}, getStyleProps(props, "multiValueLabel", {
|
|
6691
6671
|
"multi-value__label": true
|
|
6692
6672
|
})),
|
|
6693
6673
|
selectProps
|
|
6694
|
-
}, children),
|
|
6674
|
+
}, children), jsx85(Remove, {
|
|
6695
6675
|
data,
|
|
6696
6676
|
innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, "multiValueRemove", {
|
|
6697
6677
|
"multi-value__remove": true
|
|
@@ -6724,7 +6704,7 @@ var optionCSS = function optionCSS2(_ref3, unstyled) {
|
|
|
6724
6704
|
};
|
|
6725
6705
|
var Option = function Option2(props) {
|
|
6726
6706
|
var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, isSelected = props.isSelected, innerRef = props.innerRef, innerProps = props.innerProps;
|
|
6727
|
-
return
|
|
6707
|
+
return jsx85("div", _extends({}, getStyleProps(props, "option", {
|
|
6728
6708
|
option: true,
|
|
6729
6709
|
"option--is-disabled": isDisabled,
|
|
6730
6710
|
"option--is-focused": isFocused,
|
|
@@ -6748,7 +6728,7 @@ var placeholderCSS = function placeholderCSS2(_ref3, unstyled) {
|
|
|
6748
6728
|
};
|
|
6749
6729
|
var Placeholder = function Placeholder2(props) {
|
|
6750
6730
|
var children = props.children, innerProps = props.innerProps;
|
|
6751
|
-
return
|
|
6731
|
+
return jsx85("div", _extends({}, getStyleProps(props, "placeholder", {
|
|
6752
6732
|
placeholder: true
|
|
6753
6733
|
}), innerProps), children);
|
|
6754
6734
|
};
|
|
@@ -6770,7 +6750,7 @@ var css3 = function css4(_ref3, unstyled) {
|
|
|
6770
6750
|
};
|
|
6771
6751
|
var SingleValue = function SingleValue2(props) {
|
|
6772
6752
|
var children = props.children, isDisabled = props.isDisabled, innerProps = props.innerProps;
|
|
6773
|
-
return
|
|
6753
|
+
return jsx85("div", _extends({}, getStyleProps(props, "singleValue", {
|
|
6774
6754
|
"single-value": true,
|
|
6775
6755
|
"single-value--is-disabled": isDisabled
|
|
6776
6756
|
}), innerProps), children);
|
|
@@ -6858,7 +6838,7 @@ function memoizeOne(resultFn, isEqual2) {
|
|
|
6858
6838
|
return memoized;
|
|
6859
6839
|
}
|
|
6860
6840
|
|
|
6861
|
-
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.
|
|
6841
|
+
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.8_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-select/dist/Select-aab027f3.esm.js
|
|
6862
6842
|
function _EMOTION_STRINGIFIED_CSS_ERROR__$2() {
|
|
6863
6843
|
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
6864
6844
|
}
|
|
@@ -6872,7 +6852,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
6872
6852
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$2
|
|
6873
6853
|
};
|
|
6874
6854
|
var A11yText = function A11yText2(props) {
|
|
6875
|
-
return
|
|
6855
|
+
return jsx85("span", _extends({
|
|
6876
6856
|
css: _ref
|
|
6877
6857
|
}, props));
|
|
6878
6858
|
};
|
|
@@ -7007,18 +6987,18 @@ var LiveRegion = function LiveRegion2(props) {
|
|
|
7007
6987
|
}
|
|
7008
6988
|
return guidanceMsg;
|
|
7009
6989
|
}, [ariaLabel, focusedOption, focusedValue, isMulti, isOptionDisabled3, isSearchable, menuIsOpen, messages, selectValue, tabSelectsValue, isInitialFocus]);
|
|
7010
|
-
var ScreenReaderText =
|
|
6990
|
+
var ScreenReaderText = jsx85(Fragment7, null, jsx85("span", {
|
|
7011
6991
|
id: "aria-selection"
|
|
7012
|
-
}, ariaSelected),
|
|
6992
|
+
}, ariaSelected), jsx85("span", {
|
|
7013
6993
|
id: "aria-focused"
|
|
7014
|
-
}, ariaFocused),
|
|
6994
|
+
}, ariaFocused), jsx85("span", {
|
|
7015
6995
|
id: "aria-results"
|
|
7016
|
-
}, ariaResults),
|
|
6996
|
+
}, ariaResults), jsx85("span", {
|
|
7017
6997
|
id: "aria-guidance"
|
|
7018
6998
|
}, ariaGuidance));
|
|
7019
|
-
return
|
|
6999
|
+
return jsx85(Fragment7, null, jsx85(A11yText$1, {
|
|
7020
7000
|
id
|
|
7021
|
-
}, isInitialFocus && ScreenReaderText),
|
|
7001
|
+
}, isInitialFocus && ScreenReaderText), jsx85(A11yText$1, {
|
|
7022
7002
|
"aria-live": ariaLive,
|
|
7023
7003
|
"aria-atomic": "false",
|
|
7024
7004
|
"aria-relevant": "additions text",
|
|
@@ -7331,7 +7311,7 @@ var _excluded4 = ["innerRef"];
|
|
|
7331
7311
|
function DummyInput(_ref3) {
|
|
7332
7312
|
var innerRef = _ref3.innerRef, props = _objectWithoutProperties(_ref3, _excluded4);
|
|
7333
7313
|
var filteredProps = removeProps(props, "onExited", "in", "enter", "exit", "appear");
|
|
7334
|
-
return
|
|
7314
|
+
return jsx85("input", _extends({
|
|
7335
7315
|
ref: innerRef
|
|
7336
7316
|
}, filteredProps, {
|
|
7337
7317
|
css: /* @__PURE__ */ css({
|
|
@@ -7573,7 +7553,7 @@ function ScrollManager(_ref3) {
|
|
|
7573
7553
|
setScrollCaptureTarget(element);
|
|
7574
7554
|
setScrollLockTarget(element);
|
|
7575
7555
|
};
|
|
7576
|
-
return
|
|
7556
|
+
return jsx85(Fragment7, null, lockEnabled && jsx85("div", {
|
|
7577
7557
|
onClick: blurSelectInput,
|
|
7578
7558
|
css: _ref2$1
|
|
7579
7559
|
}), children(targetRef));
|
|
@@ -7592,7 +7572,7 @@ var _ref22 = process.env.NODE_ENV === "production" ? {
|
|
|
7592
7572
|
};
|
|
7593
7573
|
var RequiredInput = function RequiredInput2(_ref3) {
|
|
7594
7574
|
var name = _ref3.name, onFocus2 = _ref3.onFocus;
|
|
7595
|
-
return
|
|
7575
|
+
return jsx85("input", {
|
|
7596
7576
|
required: true,
|
|
7597
7577
|
name,
|
|
7598
7578
|
tabIndex: -1,
|
|
@@ -9154,7 +9134,7 @@ var Select = /* @__PURE__ */ function(_Component) {
|
|
|
9154
9134
|
}(Component);
|
|
9155
9135
|
Select.defaultProps = defaultProps;
|
|
9156
9136
|
|
|
9157
|
-
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.
|
|
9137
|
+
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.8_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-select/dist/react-select.esm.js
|
|
9158
9138
|
var import_objectSpread24 = __toESM(require_objectSpread2());
|
|
9159
9139
|
var import_slicedToArray3 = __toESM(require_slicedToArray());
|
|
9160
9140
|
var import_objectWithoutProperties4 = __toESM(require_objectWithoutProperties());
|
|
@@ -9175,7 +9155,7 @@ var StateManagedSelect = /* @__PURE__ */ forwardRef24(function(props, ref) {
|
|
|
9175
9155
|
});
|
|
9176
9156
|
var StateManagedSelect$1 = StateManagedSelect;
|
|
9177
9157
|
|
|
9178
|
-
// ../../node_modules/.pnpm/@react-aria+label@3.7.
|
|
9158
|
+
// ../../node_modules/.pnpm/@react-aria+label@3.7.19_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/label/dist/useLabel.mjs
|
|
9179
9159
|
import { useId as $83Elw$useId, useLabels as $83Elw$useLabels } from "@react-aria/utils";
|
|
9180
9160
|
function $d191a55c9702f145$export$8467354a121f1b9f(props) {
|
|
9181
9161
|
let { id, label, "aria-labelledby": ariaLabelledby, "aria-label": ariaLabel, labelElementType = "label" } = props;
|
|
@@ -9200,7 +9180,7 @@ function $d191a55c9702f145$export$8467354a121f1b9f(props) {
|
|
|
9200
9180
|
};
|
|
9201
9181
|
}
|
|
9202
9182
|
|
|
9203
|
-
// ../../node_modules/.pnpm/@react-aria+label@3.7.
|
|
9183
|
+
// ../../node_modules/.pnpm/@react-aria+label@3.7.19_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/label/dist/useField.mjs
|
|
9204
9184
|
import { useSlotId as $2kC82$useSlotId, mergeProps as $2kC82$mergeProps } from "@react-aria/utils";
|
|
9205
9185
|
function $2baaea4c71418dea$export$294aa081a6c6f55d(props) {
|
|
9206
9186
|
let { description, errorMessage, isInvalid, validationState } = props;
|
|
@@ -9239,8 +9219,8 @@ function $2baaea4c71418dea$export$294aa081a6c6f55d(props) {
|
|
|
9239
9219
|
|
|
9240
9220
|
// src/Multiselect/Multiselect.tsx
|
|
9241
9221
|
import { useId } from "@react-aria/utils";
|
|
9242
|
-
import { cn as cn49, useClassNames as
|
|
9243
|
-
import { jsx as
|
|
9222
|
+
import { cn as cn49, useClassNames as useClassNames50 } from "@marigold/system";
|
|
9223
|
+
import { jsx as jsx87, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
9244
9224
|
var propsToBeRemoved = [
|
|
9245
9225
|
"clearValue",
|
|
9246
9226
|
"getStyles",
|
|
@@ -9266,7 +9246,7 @@ var Input4 = ({ innerRef, placeholder, hasValue, ...props }) => {
|
|
|
9266
9246
|
},
|
|
9267
9247
|
{}
|
|
9268
9248
|
);
|
|
9269
|
-
return /* @__PURE__ */
|
|
9249
|
+
return /* @__PURE__ */ jsx87(
|
|
9270
9250
|
_Input2,
|
|
9271
9251
|
{
|
|
9272
9252
|
disabled: props.isDisabled,
|
|
@@ -9277,7 +9257,7 @@ var Input4 = ({ innerRef, placeholder, hasValue, ...props }) => {
|
|
|
9277
9257
|
);
|
|
9278
9258
|
};
|
|
9279
9259
|
var MultiValueRemove2 = ({ innerProps }) => {
|
|
9280
|
-
return /* @__PURE__ */
|
|
9260
|
+
return /* @__PURE__ */ jsx87(Button11, { slot: "remove", ...innerProps, children: /* @__PURE__ */ jsx87("svg", { viewBox: "0 0 20 20", fill: "currentColor", width: 20, height: 20, children: /* @__PURE__ */ jsx87("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" }) }) });
|
|
9281
9261
|
};
|
|
9282
9262
|
var getClassNames = (classNames3) => ({
|
|
9283
9263
|
control: () => cn49(
|
|
@@ -9309,9 +9289,10 @@ var Multiselect = ({
|
|
|
9309
9289
|
description,
|
|
9310
9290
|
onChange: onChange2,
|
|
9311
9291
|
onSelectionChange,
|
|
9292
|
+
width,
|
|
9312
9293
|
...rest
|
|
9313
9294
|
}) => {
|
|
9314
|
-
const classNames3 =
|
|
9295
|
+
const classNames3 = useClassNames50({
|
|
9315
9296
|
component: "MultiSelect",
|
|
9316
9297
|
size: size2,
|
|
9317
9298
|
variant
|
|
@@ -9329,7 +9310,7 @@ var Multiselect = ({
|
|
|
9329
9310
|
label: props.label,
|
|
9330
9311
|
errorMessage
|
|
9331
9312
|
});
|
|
9332
|
-
return /* @__PURE__ */
|
|
9313
|
+
return /* @__PURE__ */ jsx87(
|
|
9333
9314
|
Provider2,
|
|
9334
9315
|
{
|
|
9335
9316
|
values: [
|
|
@@ -9359,16 +9340,16 @@ var Multiselect = ({
|
|
|
9359
9340
|
}
|
|
9360
9341
|
]
|
|
9361
9342
|
],
|
|
9362
|
-
children: /* @__PURE__ */
|
|
9343
|
+
children: /* @__PURE__ */ jsxs30(
|
|
9363
9344
|
"div",
|
|
9364
9345
|
{
|
|
9365
|
-
className: cn49(classNames3.field, "group/field"),
|
|
9346
|
+
className: cn49(classNames3.field, "group/field", `w-${width}`),
|
|
9366
9347
|
"data-required": props.required,
|
|
9367
9348
|
"data-invalid": error,
|
|
9368
9349
|
"data-readonly": readOnly,
|
|
9369
9350
|
children: [
|
|
9370
|
-
props.label && /* @__PURE__ */
|
|
9371
|
-
/* @__PURE__ */
|
|
9351
|
+
props.label && /* @__PURE__ */ jsx87(_Label, { ...labelProps, children: props.label }),
|
|
9352
|
+
/* @__PURE__ */ jsx87(
|
|
9372
9353
|
StateManagedSelect$1,
|
|
9373
9354
|
{
|
|
9374
9355
|
...props,
|
|
@@ -9404,19 +9385,19 @@ var Multiselect = ({
|
|
|
9404
9385
|
Input: Input4,
|
|
9405
9386
|
MultiValueRemove: MultiValueRemove2,
|
|
9406
9387
|
// eslint-disable-next-line react/prop-types
|
|
9407
|
-
DropdownIndicator: ({ innerProps, isDisabled }) => /* @__PURE__ */
|
|
9388
|
+
DropdownIndicator: ({ innerProps, isDisabled }) => /* @__PURE__ */ jsx87(
|
|
9408
9389
|
"button",
|
|
9409
9390
|
{
|
|
9410
9391
|
...innerProps,
|
|
9411
9392
|
disabled: isDisabled,
|
|
9412
9393
|
className: classNames3.icon,
|
|
9413
|
-
children: /* @__PURE__ */
|
|
9394
|
+
children: /* @__PURE__ */ jsx87(ChevronDown, { className: "size-4" })
|
|
9414
9395
|
}
|
|
9415
9396
|
)
|
|
9416
9397
|
}
|
|
9417
9398
|
}
|
|
9418
9399
|
),
|
|
9419
|
-
/* @__PURE__ */
|
|
9400
|
+
/* @__PURE__ */ jsx87(HelpText, { description, errorMessage })
|
|
9420
9401
|
]
|
|
9421
9402
|
}
|
|
9422
9403
|
)
|
|
@@ -9427,13 +9408,13 @@ var Multiselect = ({
|
|
|
9427
9408
|
// src/NumberField/NumberField.tsx
|
|
9428
9409
|
import { forwardRef as forwardRef25 } from "react";
|
|
9429
9410
|
import { Group as Group4, Input as Input5, NumberField } from "react-aria-components";
|
|
9430
|
-
import { cn as cn51, useClassNames as
|
|
9411
|
+
import { cn as cn51, useClassNames as useClassNames51 } from "@marigold/system";
|
|
9431
9412
|
|
|
9432
9413
|
// src/NumberField/StepButton.tsx
|
|
9433
9414
|
import { Button as Button12 } from "react-aria-components";
|
|
9434
9415
|
import { cn as cn50 } from "@marigold/system";
|
|
9435
|
-
import { jsx as
|
|
9436
|
-
var Plus = () => /* @__PURE__ */
|
|
9416
|
+
import { jsx as jsx88 } from "react/jsx-runtime";
|
|
9417
|
+
var Plus = () => /* @__PURE__ */ jsx88("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx88(
|
|
9437
9418
|
"path",
|
|
9438
9419
|
{
|
|
9439
9420
|
fillRule: "evenodd",
|
|
@@ -9441,7 +9422,7 @@ var Plus = () => /* @__PURE__ */ jsx90("svg", { width: 16, height: 16, viewBox:
|
|
|
9441
9422
|
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"
|
|
9442
9423
|
}
|
|
9443
9424
|
) });
|
|
9444
|
-
var Minus = () => /* @__PURE__ */
|
|
9425
|
+
var Minus = () => /* @__PURE__ */ jsx88("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx88(
|
|
9445
9426
|
"path",
|
|
9446
9427
|
{
|
|
9447
9428
|
fillRule: "evenodd",
|
|
@@ -9451,7 +9432,7 @@ var Minus = () => /* @__PURE__ */ jsx90("svg", { width: 16, height: 16, viewBox:
|
|
|
9451
9432
|
) });
|
|
9452
9433
|
var _StepButton = ({ direction, className, ...props }) => {
|
|
9453
9434
|
const Icon4 = direction === "up" ? Plus : Minus;
|
|
9454
|
-
return /* @__PURE__ */
|
|
9435
|
+
return /* @__PURE__ */ jsx88(
|
|
9455
9436
|
Button12,
|
|
9456
9437
|
{
|
|
9457
9438
|
className: cn50(
|
|
@@ -9462,13 +9443,13 @@ var _StepButton = ({ direction, className, ...props }) => {
|
|
|
9462
9443
|
className
|
|
9463
9444
|
),
|
|
9464
9445
|
...props,
|
|
9465
|
-
children: /* @__PURE__ */
|
|
9446
|
+
children: /* @__PURE__ */ jsx88(Icon4, {})
|
|
9466
9447
|
}
|
|
9467
9448
|
);
|
|
9468
9449
|
};
|
|
9469
9450
|
|
|
9470
9451
|
// src/NumberField/NumberField.tsx
|
|
9471
|
-
import { jsx as
|
|
9452
|
+
import { jsx as jsx89, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
9472
9453
|
var _NumberField = forwardRef25(
|
|
9473
9454
|
({
|
|
9474
9455
|
variant,
|
|
@@ -9480,7 +9461,7 @@ var _NumberField = forwardRef25(
|
|
|
9480
9461
|
hideStepper,
|
|
9481
9462
|
...rest
|
|
9482
9463
|
}, ref) => {
|
|
9483
|
-
const classNames3 =
|
|
9464
|
+
const classNames3 = useClassNames51({
|
|
9484
9465
|
component: "NumberField",
|
|
9485
9466
|
size: size2,
|
|
9486
9467
|
variant
|
|
@@ -9493,15 +9474,15 @@ var _NumberField = forwardRef25(
|
|
|
9493
9474
|
...rest
|
|
9494
9475
|
};
|
|
9495
9476
|
const showStepper = !hideStepper && !readOnly;
|
|
9496
|
-
return /* @__PURE__ */
|
|
9477
|
+
return /* @__PURE__ */ jsx89(
|
|
9497
9478
|
FieldBase,
|
|
9498
9479
|
{
|
|
9499
9480
|
as: NumberField,
|
|
9500
9481
|
...props,
|
|
9501
9482
|
"data-readonly": readOnly ? "true" : void 0,
|
|
9502
9483
|
"data-stepper": showStepper ? "true" : void 0,
|
|
9503
|
-
children: /* @__PURE__ */
|
|
9504
|
-
showStepper && /* @__PURE__ */
|
|
9484
|
+
children: /* @__PURE__ */ jsxs31(Group4, { className: cn51("flex items-stretch", classNames3.group), children: [
|
|
9485
|
+
showStepper && /* @__PURE__ */ jsx89(
|
|
9505
9486
|
_StepButton,
|
|
9506
9487
|
{
|
|
9507
9488
|
className: classNames3.stepper,
|
|
@@ -9509,14 +9490,14 @@ var _NumberField = forwardRef25(
|
|
|
9509
9490
|
slot: "decrement"
|
|
9510
9491
|
}
|
|
9511
9492
|
),
|
|
9512
|
-
/* @__PURE__ */
|
|
9493
|
+
/* @__PURE__ */ jsx89(
|
|
9513
9494
|
Input5,
|
|
9514
9495
|
{
|
|
9515
9496
|
ref,
|
|
9516
9497
|
className: cn51("h-full flex-1 outline-none", classNames3.input)
|
|
9517
9498
|
}
|
|
9518
9499
|
),
|
|
9519
|
-
showStepper && /* @__PURE__ */
|
|
9500
|
+
showStepper && /* @__PURE__ */ jsx89(
|
|
9520
9501
|
_StepButton,
|
|
9521
9502
|
{
|
|
9522
9503
|
className: classNames3.stepper,
|
|
@@ -9533,12 +9514,12 @@ var _NumberField = forwardRef25(
|
|
|
9533
9514
|
// src/Pagination/Pagination.tsx
|
|
9534
9515
|
import { useEffect as useEffect4, useRef as useRef9, useState as useState5 } from "react";
|
|
9535
9516
|
import { FocusScope as FocusScope2, useFocusManager } from "@react-aria/focus";
|
|
9536
|
-
import { useClassNames as
|
|
9517
|
+
import { useClassNames as useClassNames54 } from "@marigold/system";
|
|
9537
9518
|
|
|
9538
9519
|
// src/Pagination/Ellipsis.tsx
|
|
9539
|
-
import { jsx as
|
|
9520
|
+
import { jsx as jsx90 } from "react/jsx-runtime";
|
|
9540
9521
|
var Ellipsis = () => {
|
|
9541
|
-
return /* @__PURE__ */
|
|
9522
|
+
return /* @__PURE__ */ jsx90(
|
|
9542
9523
|
"span",
|
|
9543
9524
|
{
|
|
9544
9525
|
className: "text-text-base flex h-8 w-8 items-center justify-center",
|
|
@@ -9551,11 +9532,11 @@ var Ellipsis = () => {
|
|
|
9551
9532
|
// src/Pagination/NavigationButton.tsx
|
|
9552
9533
|
import { useRef as useRef7 } from "react";
|
|
9553
9534
|
import { useButton as useButton2 } from "@react-aria/button";
|
|
9554
|
-
import { cn as cn52, useClassNames as
|
|
9555
|
-
import { jsxs as
|
|
9535
|
+
import { cn as cn52, useClassNames as useClassNames52 } from "@marigold/system";
|
|
9536
|
+
import { jsxs as jsxs32 } from "react/jsx-runtime";
|
|
9556
9537
|
var NavigationButton = (props) => {
|
|
9557
9538
|
const ref = useRef7(null);
|
|
9558
|
-
const classNames3 =
|
|
9539
|
+
const classNames3 = useClassNames52({
|
|
9559
9540
|
component: "Pagination"
|
|
9560
9541
|
});
|
|
9561
9542
|
let { buttonProps } = useButton2(props, ref);
|
|
@@ -9568,7 +9549,7 @@ var NavigationButton = (props) => {
|
|
|
9568
9549
|
position: position2,
|
|
9569
9550
|
...rest
|
|
9570
9551
|
} = props;
|
|
9571
|
-
return /* @__PURE__ */
|
|
9552
|
+
return /* @__PURE__ */ jsxs32(
|
|
9572
9553
|
"button",
|
|
9573
9554
|
{
|
|
9574
9555
|
ref,
|
|
@@ -9589,16 +9570,16 @@ var NavigationButton = (props) => {
|
|
|
9589
9570
|
// src/Pagination/PageButton.tsx
|
|
9590
9571
|
import { useRef as useRef8 } from "react";
|
|
9591
9572
|
import { useButton as useButton3 } from "@react-aria/button";
|
|
9592
|
-
import { useClassNames as
|
|
9593
|
-
import { jsx as
|
|
9573
|
+
import { useClassNames as useClassNames53 } from "@marigold/system";
|
|
9574
|
+
import { jsx as jsx91 } from "react/jsx-runtime";
|
|
9594
9575
|
var PageButton = (props) => {
|
|
9595
9576
|
const ref = useRef8(null);
|
|
9596
|
-
const classNames3 =
|
|
9577
|
+
const classNames3 = useClassNames53({
|
|
9597
9578
|
component: "Pagination"
|
|
9598
9579
|
});
|
|
9599
9580
|
let { buttonProps } = useButton3(props, ref);
|
|
9600
9581
|
let { page, selected, isDisabled } = props;
|
|
9601
|
-
return /* @__PURE__ */
|
|
9582
|
+
return /* @__PURE__ */ jsx91(
|
|
9602
9583
|
"button",
|
|
9603
9584
|
{
|
|
9604
9585
|
ref,
|
|
@@ -9645,7 +9626,7 @@ var usePageRange = ({ currentPage, totalPages }) => {
|
|
|
9645
9626
|
};
|
|
9646
9627
|
|
|
9647
9628
|
// src/Pagination/Pagination.tsx
|
|
9648
|
-
import { Fragment as
|
|
9629
|
+
import { Fragment as Fragment8, jsx as jsx92, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
9649
9630
|
var InnerPagination = ({
|
|
9650
9631
|
currentPage,
|
|
9651
9632
|
pageSize,
|
|
@@ -9672,7 +9653,7 @@ var InnerPagination = ({
|
|
|
9672
9653
|
onChange2(newPage);
|
|
9673
9654
|
}
|
|
9674
9655
|
};
|
|
9675
|
-
const classNames3 =
|
|
9656
|
+
const classNames3 = useClassNames54({ component: "Pagination" });
|
|
9676
9657
|
const handleKeyDown = (onEnter) => (e) => {
|
|
9677
9658
|
if (e.key === "ArrowRight") {
|
|
9678
9659
|
e.preventDefault();
|
|
@@ -9685,8 +9666,8 @@ var InnerPagination = ({
|
|
|
9685
9666
|
onEnter();
|
|
9686
9667
|
}
|
|
9687
9668
|
};
|
|
9688
|
-
return /* @__PURE__ */
|
|
9689
|
-
/* @__PURE__ */
|
|
9669
|
+
return /* @__PURE__ */ jsxs33(Fragment8, { children: [
|
|
9670
|
+
/* @__PURE__ */ jsx92(
|
|
9690
9671
|
NavigationButton,
|
|
9691
9672
|
{
|
|
9692
9673
|
onClick: () => handlePageChange(Math.max(1, currentPage - 1)),
|
|
@@ -9695,11 +9676,11 @@ var InnerPagination = ({
|
|
|
9695
9676
|
controlLabel: controlLabels == null ? void 0 : controlLabels[0],
|
|
9696
9677
|
position: "left",
|
|
9697
9678
|
onKeyDown: handleKeyDown(() => handlePageChange(currentPage - 1)),
|
|
9698
|
-
children: /* @__PURE__ */
|
|
9679
|
+
children: /* @__PURE__ */ jsx92(ChevronLeft, { className: classNames3.icon })
|
|
9699
9680
|
}
|
|
9700
9681
|
),
|
|
9701
|
-
/* @__PURE__ */
|
|
9702
|
-
(pageNumber, index2) => pageNumber === "ellipsis" ? /* @__PURE__ */
|
|
9682
|
+
/* @__PURE__ */ jsx92("div", { className: "flex items-center space-x-2", children: totalPages > 0 ? pageRange.map(
|
|
9683
|
+
(pageNumber, index2) => pageNumber === "ellipsis" ? /* @__PURE__ */ jsx92(Ellipsis, {}, `ellipsis-${index2}`) : /* @__PURE__ */ jsx92(
|
|
9703
9684
|
PageButton,
|
|
9704
9685
|
{
|
|
9705
9686
|
page: pageNumber,
|
|
@@ -9709,8 +9690,8 @@ var InnerPagination = ({
|
|
|
9709
9690
|
},
|
|
9710
9691
|
pageNumber
|
|
9711
9692
|
)
|
|
9712
|
-
) : /* @__PURE__ */
|
|
9713
|
-
/* @__PURE__ */
|
|
9693
|
+
) : /* @__PURE__ */ jsx92(PageButton, { page: 1, isDisabled: true }, 1) }),
|
|
9694
|
+
/* @__PURE__ */ jsx92(
|
|
9714
9695
|
NavigationButton,
|
|
9715
9696
|
{
|
|
9716
9697
|
onClick: () => handlePageChange(Math.min(totalPages, currentPage + 1)),
|
|
@@ -9719,7 +9700,7 @@ var InnerPagination = ({
|
|
|
9719
9700
|
controlLabel: controlLabels == null ? void 0 : controlLabels[1],
|
|
9720
9701
|
position: "right",
|
|
9721
9702
|
onKeyDown: handleKeyDown(() => handlePageChange(currentPage + 1)),
|
|
9722
|
-
children: /* @__PURE__ */
|
|
9703
|
+
children: /* @__PURE__ */ jsx92(ChevronRight, { className: classNames3.icon })
|
|
9723
9704
|
}
|
|
9724
9705
|
)
|
|
9725
9706
|
] });
|
|
@@ -9734,12 +9715,12 @@ var _Pagination = ({
|
|
|
9734
9715
|
const [currentPage, setCurrentPage] = useState5(page != null ? page : defaultPage);
|
|
9735
9716
|
const totalPages = Math.ceil(totalItems / pageSize);
|
|
9736
9717
|
const pageRange = usePageRange({ currentPage, totalPages });
|
|
9737
|
-
return /* @__PURE__ */
|
|
9718
|
+
return /* @__PURE__ */ jsx92(
|
|
9738
9719
|
"nav",
|
|
9739
9720
|
{
|
|
9740
9721
|
className: "flex items-center justify-center space-x-2",
|
|
9741
9722
|
"aria-label": `Page ${currentPage} of ${totalPages}`,
|
|
9742
|
-
children: /* @__PURE__ */
|
|
9723
|
+
children: /* @__PURE__ */ jsx92(FocusScope2, { restoreFocus: true, children: /* @__PURE__ */ jsx92(
|
|
9743
9724
|
InnerPagination,
|
|
9744
9725
|
{
|
|
9745
9726
|
pageSize,
|
|
@@ -9759,19 +9740,19 @@ import {
|
|
|
9759
9740
|
forwardRef as forwardRef26
|
|
9760
9741
|
} from "react";
|
|
9761
9742
|
import { Radio } from "react-aria-components";
|
|
9762
|
-
import { cn as cn54, useClassNames as
|
|
9743
|
+
import { cn as cn54, useClassNames as useClassNames56 } from "@marigold/system";
|
|
9763
9744
|
|
|
9764
9745
|
// src/Radio/Context.ts
|
|
9765
|
-
import { createContext as
|
|
9766
|
-
var RadioGroupContext =
|
|
9746
|
+
import { createContext as createContext12, useContext as useContext22 } from "react";
|
|
9747
|
+
var RadioGroupContext = createContext12(
|
|
9767
9748
|
null
|
|
9768
9749
|
);
|
|
9769
|
-
var useRadioGroupContext = () =>
|
|
9750
|
+
var useRadioGroupContext = () => useContext22(RadioGroupContext);
|
|
9770
9751
|
|
|
9771
9752
|
// src/Radio/RadioGroup.tsx
|
|
9772
9753
|
import { RadioGroup } from "react-aria-components";
|
|
9773
|
-
import { cn as cn53, useClassNames as
|
|
9774
|
-
import { jsx as
|
|
9754
|
+
import { cn as cn53, useClassNames as useClassNames55 } from "@marigold/system";
|
|
9755
|
+
import { jsx as jsx93 } from "react/jsx-runtime";
|
|
9775
9756
|
var _RadioGroup = ({
|
|
9776
9757
|
variant,
|
|
9777
9758
|
size: size2,
|
|
@@ -9787,7 +9768,7 @@ var _RadioGroup = ({
|
|
|
9787
9768
|
width,
|
|
9788
9769
|
...rest
|
|
9789
9770
|
}) => {
|
|
9790
|
-
const classNames3 =
|
|
9771
|
+
const classNames3 = useClassNames55({ component: "Radio", variant, size: size2 });
|
|
9791
9772
|
const props = {
|
|
9792
9773
|
isDisabled: disabled,
|
|
9793
9774
|
isReadOnly: readOnly,
|
|
@@ -9795,7 +9776,7 @@ var _RadioGroup = ({
|
|
|
9795
9776
|
isInvalid: error,
|
|
9796
9777
|
...rest
|
|
9797
9778
|
};
|
|
9798
|
-
return /* @__PURE__ */
|
|
9779
|
+
return /* @__PURE__ */ jsx93(
|
|
9799
9780
|
FieldBase,
|
|
9800
9781
|
{
|
|
9801
9782
|
as: RadioGroup,
|
|
@@ -9806,7 +9787,7 @@ var _RadioGroup = ({
|
|
|
9806
9787
|
variant,
|
|
9807
9788
|
size: size2,
|
|
9808
9789
|
...props,
|
|
9809
|
-
children: /* @__PURE__ */
|
|
9790
|
+
children: /* @__PURE__ */ jsx93(
|
|
9810
9791
|
"div",
|
|
9811
9792
|
{
|
|
9812
9793
|
role: "presentation",
|
|
@@ -9817,7 +9798,7 @@ var _RadioGroup = ({
|
|
|
9817
9798
|
"flex items-start",
|
|
9818
9799
|
orientation === "vertical" ? "flex-col gap-[0.5ch]" : "flex-row gap-[1.5ch]"
|
|
9819
9800
|
),
|
|
9820
|
-
children: /* @__PURE__ */
|
|
9801
|
+
children: /* @__PURE__ */ jsx93(RadioGroupContext.Provider, { value: { width, variant, size: size2 }, children })
|
|
9821
9802
|
}
|
|
9822
9803
|
)
|
|
9823
9804
|
}
|
|
@@ -9825,9 +9806,9 @@ var _RadioGroup = ({
|
|
|
9825
9806
|
};
|
|
9826
9807
|
|
|
9827
9808
|
// src/Radio/Radio.tsx
|
|
9828
|
-
import { Fragment as
|
|
9829
|
-
var Dot = () => /* @__PURE__ */
|
|
9830
|
-
var Icon3 = ({ checked, className, ...props }) => /* @__PURE__ */
|
|
9809
|
+
import { Fragment as Fragment9, jsx as jsx94, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
9810
|
+
var Dot = () => /* @__PURE__ */ jsx94("svg", { viewBox: "0 0 6 6", children: /* @__PURE__ */ jsx94("circle", { fill: "currentColor", cx: "3", cy: "3", r: "3" }) });
|
|
9811
|
+
var Icon3 = ({ checked, className, ...props }) => /* @__PURE__ */ jsx94(
|
|
9831
9812
|
"div",
|
|
9832
9813
|
{
|
|
9833
9814
|
className: cn54(
|
|
@@ -9836,18 +9817,18 @@ var Icon3 = ({ checked, className, ...props }) => /* @__PURE__ */ jsx96(
|
|
|
9836
9817
|
),
|
|
9837
9818
|
"aria-hidden": "true",
|
|
9838
9819
|
...props,
|
|
9839
|
-
children: checked ? /* @__PURE__ */
|
|
9820
|
+
children: checked ? /* @__PURE__ */ jsx94(Dot, {}) : null
|
|
9840
9821
|
}
|
|
9841
9822
|
);
|
|
9842
9823
|
var _Radio = forwardRef26(
|
|
9843
9824
|
({ value, disabled, width, children, ...props }, ref) => {
|
|
9844
9825
|
const { variant, size: size2, width: groupWidth } = useRadioGroupContext();
|
|
9845
|
-
const classNames3 =
|
|
9826
|
+
const classNames3 = useClassNames56({
|
|
9846
9827
|
component: "Radio",
|
|
9847
9828
|
variant: variant || props.variant,
|
|
9848
9829
|
size: size2 || props.size
|
|
9849
9830
|
});
|
|
9850
|
-
return /* @__PURE__ */
|
|
9831
|
+
return /* @__PURE__ */ jsx94(
|
|
9851
9832
|
Radio,
|
|
9852
9833
|
{
|
|
9853
9834
|
ref,
|
|
@@ -9860,8 +9841,8 @@ var _Radio = forwardRef26(
|
|
|
9860
9841
|
value,
|
|
9861
9842
|
isDisabled: disabled,
|
|
9862
9843
|
...props,
|
|
9863
|
-
children: ({ isSelected }) => /* @__PURE__ */
|
|
9864
|
-
/* @__PURE__ */
|
|
9844
|
+
children: ({ isSelected }) => /* @__PURE__ */ jsxs34(Fragment9, { children: [
|
|
9845
|
+
/* @__PURE__ */ jsx94(
|
|
9865
9846
|
Icon3,
|
|
9866
9847
|
{
|
|
9867
9848
|
checked: isSelected,
|
|
@@ -9871,7 +9852,7 @@ var _Radio = forwardRef26(
|
|
|
9871
9852
|
)
|
|
9872
9853
|
}
|
|
9873
9854
|
),
|
|
9874
|
-
/* @__PURE__ */
|
|
9855
|
+
/* @__PURE__ */ jsx94("div", { className: classNames3.label, children })
|
|
9875
9856
|
] })
|
|
9876
9857
|
}
|
|
9877
9858
|
);
|
|
@@ -9882,7 +9863,7 @@ _Radio.Group = _RadioGroup;
|
|
|
9882
9863
|
// src/SearchField/SearchField.tsx
|
|
9883
9864
|
import { forwardRef as forwardRef27 } from "react";
|
|
9884
9865
|
import { SearchField } from "react-aria-components";
|
|
9885
|
-
import { jsx as
|
|
9866
|
+
import { jsx as jsx95 } from "react/jsx-runtime";
|
|
9886
9867
|
var _SearchField = forwardRef27(
|
|
9887
9868
|
({ disabled, required, readOnly, error, action, ...rest }, ref) => {
|
|
9888
9869
|
const props = {
|
|
@@ -9892,7 +9873,7 @@ var _SearchField = forwardRef27(
|
|
|
9892
9873
|
isReadOnly: readOnly,
|
|
9893
9874
|
isInvalid: error
|
|
9894
9875
|
};
|
|
9895
|
-
return /* @__PURE__ */
|
|
9876
|
+
return /* @__PURE__ */ jsx95(FieldBase, { as: SearchField, ...props, children: /* @__PURE__ */ jsx95(
|
|
9896
9877
|
SearchInput,
|
|
9897
9878
|
{
|
|
9898
9879
|
ref,
|
|
@@ -9905,8 +9886,8 @@ var _SearchField = forwardRef27(
|
|
|
9905
9886
|
// src/Select/Select.tsx
|
|
9906
9887
|
import { forwardRef as forwardRef28 } from "react";
|
|
9907
9888
|
import { Select as Select2, SelectValue } from "react-aria-components";
|
|
9908
|
-
import { cn as cn55, useClassNames as
|
|
9909
|
-
import { jsx as
|
|
9889
|
+
import { cn as cn55, useClassNames as useClassNames57 } from "@marigold/system";
|
|
9890
|
+
import { jsx as jsx96, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
9910
9891
|
var _Select = forwardRef28(
|
|
9911
9892
|
({
|
|
9912
9893
|
disabled,
|
|
@@ -9927,9 +9908,9 @@ var _Select = forwardRef28(
|
|
|
9927
9908
|
onSelectionChange: onChange2,
|
|
9928
9909
|
...rest
|
|
9929
9910
|
};
|
|
9930
|
-
const classNames3 =
|
|
9931
|
-
return /* @__PURE__ */
|
|
9932
|
-
/* @__PURE__ */
|
|
9911
|
+
const classNames3 = useClassNames57({ component: "Select", variant, size: size2 });
|
|
9912
|
+
return /* @__PURE__ */ jsxs35(FieldBase, { as: Select2, ref, variant, size: size2, ...props, children: [
|
|
9913
|
+
/* @__PURE__ */ jsxs35(
|
|
9933
9914
|
IconButton,
|
|
9934
9915
|
{
|
|
9935
9916
|
className: cn55(
|
|
@@ -9937,12 +9918,12 @@ var _Select = forwardRef28(
|
|
|
9937
9918
|
classNames3.select
|
|
9938
9919
|
),
|
|
9939
9920
|
children: [
|
|
9940
|
-
/* @__PURE__ */
|
|
9941
|
-
/* @__PURE__ */
|
|
9921
|
+
/* @__PURE__ */ jsx96(SelectValue, { className: "[&>[slot=description]]:hidden" }),
|
|
9922
|
+
/* @__PURE__ */ jsx96(ChevronDown, { className: cn55("size-4", classNames3.icon) })
|
|
9942
9923
|
]
|
|
9943
9924
|
}
|
|
9944
9925
|
),
|
|
9945
|
-
/* @__PURE__ */
|
|
9926
|
+
/* @__PURE__ */ jsx96(_Popover, { children: /* @__PURE__ */ jsx96(_ListBox, { items, children: props.children }) })
|
|
9946
9927
|
] });
|
|
9947
9928
|
}
|
|
9948
9929
|
);
|
|
@@ -9954,21 +9935,21 @@ import {
|
|
|
9954
9935
|
forwardRef as forwardRef30
|
|
9955
9936
|
} from "react";
|
|
9956
9937
|
import { GridList as SelectList } from "react-aria-components";
|
|
9957
|
-
import { cn as cn57, useClassNames as
|
|
9938
|
+
import { cn as cn57, useClassNames as useClassNames58 } from "@marigold/system";
|
|
9958
9939
|
|
|
9959
9940
|
// src/SelectList/Context.ts
|
|
9960
|
-
import { createContext as
|
|
9961
|
-
var SelectListContext =
|
|
9941
|
+
import { createContext as createContext13, useContext as useContext23 } from "react";
|
|
9942
|
+
var SelectListContext = createContext13(
|
|
9962
9943
|
{}
|
|
9963
9944
|
);
|
|
9964
|
-
var useSelectListContext = () =>
|
|
9945
|
+
var useSelectListContext = () => useContext23(SelectListContext);
|
|
9965
9946
|
|
|
9966
9947
|
// src/SelectList/SelectListItem.tsx
|
|
9967
9948
|
import { forwardRef as forwardRef29 } from "react";
|
|
9968
9949
|
import { GridListItem as SelectListItem } from "react-aria-components";
|
|
9969
9950
|
import { cn as cn56 } from "@marigold/system";
|
|
9970
|
-
import {
|
|
9971
|
-
var CheckMark3 = ({ className }) => /* @__PURE__ */
|
|
9951
|
+
import { jsx as jsx97, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
9952
|
+
var CheckMark3 = ({ className }) => /* @__PURE__ */ jsx97("svg", { width: "12px", height: "10px", viewBox: "0 0 12 10", className, children: /* @__PURE__ */ jsx97(
|
|
9972
9953
|
"path",
|
|
9973
9954
|
{
|
|
9974
9955
|
fill: "currentColor",
|
|
@@ -9979,26 +9960,27 @@ var CheckMark3 = ({ className }) => /* @__PURE__ */ jsx99("svg", { width: "12px"
|
|
|
9979
9960
|
var SelectionIndicator = ({ selectionMode }) => {
|
|
9980
9961
|
switch (selectionMode) {
|
|
9981
9962
|
case "multiple": {
|
|
9982
|
-
return /* @__PURE__ */
|
|
9963
|
+
return /* @__PURE__ */ jsx97(_Checkbox, { slot: "selection" });
|
|
9983
9964
|
}
|
|
9984
9965
|
case "single": {
|
|
9985
|
-
return /* @__PURE__ */
|
|
9966
|
+
return /* @__PURE__ */ jsx97(CheckMark3, { className: "invisible hidden" });
|
|
9986
9967
|
}
|
|
9987
9968
|
}
|
|
9988
9969
|
};
|
|
9989
9970
|
var _SelectListItem = forwardRef29(
|
|
9990
|
-
({ children, ...props }, ref) => {
|
|
9971
|
+
({ children, disabled, ...props }, ref) => {
|
|
9991
9972
|
let textValue = typeof children === "string" ? children : void 0;
|
|
9992
9973
|
const { classNames: classNames3 } = useSelectListContext();
|
|
9993
|
-
return /* @__PURE__ */
|
|
9974
|
+
return /* @__PURE__ */ jsx97(
|
|
9994
9975
|
SelectListItem,
|
|
9995
9976
|
{
|
|
9977
|
+
isDisabled: disabled,
|
|
9996
9978
|
textValue,
|
|
9997
9979
|
...props,
|
|
9998
9980
|
className: cn56("group-[layout=grid]/list:flex-row", classNames3 == null ? void 0 : classNames3.item),
|
|
9999
9981
|
ref,
|
|
10000
|
-
children: ({ selectionMode }) => /* @__PURE__ */
|
|
10001
|
-
/* @__PURE__ */
|
|
9982
|
+
children: ({ selectionMode }) => /* @__PURE__ */ jsxs36("div", { className: "selection-indicator contents", children: [
|
|
9983
|
+
/* @__PURE__ */ jsx97(SelectionIndicator, { selectionMode }),
|
|
10002
9984
|
children
|
|
10003
9985
|
] })
|
|
10004
9986
|
}
|
|
@@ -10007,15 +9989,15 @@ var _SelectListItem = forwardRef29(
|
|
|
10007
9989
|
);
|
|
10008
9990
|
|
|
10009
9991
|
// src/SelectList/SelectList.tsx
|
|
10010
|
-
import { jsx as
|
|
9992
|
+
import { jsx as jsx98 } from "react/jsx-runtime";
|
|
10011
9993
|
var _SelectList = forwardRef30(
|
|
10012
9994
|
({ onChange: onChange2, ...rest }, ref) => {
|
|
10013
|
-
const classNames3 =
|
|
9995
|
+
const classNames3 = useClassNames58({ component: "ListBox" });
|
|
10014
9996
|
const props = {
|
|
10015
9997
|
onSelectionChange: onChange2,
|
|
10016
9998
|
...rest
|
|
10017
9999
|
};
|
|
10018
|
-
return /* @__PURE__ */
|
|
10000
|
+
return /* @__PURE__ */ jsx98(SelectListContext.Provider, { value: { classNames: classNames3 }, children: /* @__PURE__ */ jsx98("div", { className: classNames3.container, children: /* @__PURE__ */ jsx98(
|
|
10019
10001
|
SelectList,
|
|
10020
10002
|
{
|
|
10021
10003
|
...props,
|
|
@@ -10033,19 +10015,19 @@ var _SelectList = forwardRef30(
|
|
|
10033
10015
|
_SelectList.Item = _SelectListItem;
|
|
10034
10016
|
|
|
10035
10017
|
// src/Scrollable/Scrollable.tsx
|
|
10036
|
-
import { cn as cn58, createVar as
|
|
10037
|
-
import { jsx as
|
|
10018
|
+
import { cn as cn58, createVar as createVar6, width as twWidth2 } from "@marigold/system";
|
|
10019
|
+
import { jsx as jsx99 } from "react/jsx-runtime";
|
|
10038
10020
|
var Scrollable = ({
|
|
10039
10021
|
children,
|
|
10040
10022
|
width = "full",
|
|
10041
10023
|
height,
|
|
10042
10024
|
...props
|
|
10043
|
-
}) => /* @__PURE__ */
|
|
10025
|
+
}) => /* @__PURE__ */ jsx99(
|
|
10044
10026
|
"div",
|
|
10045
10027
|
{
|
|
10046
10028
|
...props,
|
|
10047
10029
|
className: cn58(["sticky h-(--height) overflow-auto", twWidth2[width]]),
|
|
10048
|
-
style:
|
|
10030
|
+
style: createVar6({ height }),
|
|
10049
10031
|
children
|
|
10050
10032
|
}
|
|
10051
10033
|
);
|
|
@@ -10061,9 +10043,9 @@ import {
|
|
|
10061
10043
|
import {
|
|
10062
10044
|
cn as cn59,
|
|
10063
10045
|
width as twWidth3,
|
|
10064
|
-
useClassNames as
|
|
10046
|
+
useClassNames as useClassNames59
|
|
10065
10047
|
} from "@marigold/system";
|
|
10066
|
-
import { Fragment as
|
|
10048
|
+
import { Fragment as Fragment10, jsx as jsx100, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
10067
10049
|
var _Slider = forwardRef31(
|
|
10068
10050
|
({
|
|
10069
10051
|
thumbLabels,
|
|
@@ -10074,7 +10056,7 @@ var _Slider = forwardRef31(
|
|
|
10074
10056
|
label,
|
|
10075
10057
|
...rest
|
|
10076
10058
|
}, ref) => {
|
|
10077
|
-
const classNames3 =
|
|
10059
|
+
const classNames3 = useClassNames59({
|
|
10078
10060
|
component: "Slider",
|
|
10079
10061
|
variant,
|
|
10080
10062
|
size: size2
|
|
@@ -10083,7 +10065,7 @@ var _Slider = forwardRef31(
|
|
|
10083
10065
|
isDisabled: disabled,
|
|
10084
10066
|
...rest
|
|
10085
10067
|
};
|
|
10086
|
-
return /* @__PURE__ */
|
|
10068
|
+
return /* @__PURE__ */ jsxs37(
|
|
10087
10069
|
FieldBase,
|
|
10088
10070
|
{
|
|
10089
10071
|
as: Slider,
|
|
@@ -10095,14 +10077,14 @@ var _Slider = forwardRef31(
|
|
|
10095
10077
|
ref,
|
|
10096
10078
|
...props,
|
|
10097
10079
|
children: [
|
|
10098
|
-
label && /* @__PURE__ */
|
|
10099
|
-
/* @__PURE__ */
|
|
10100
|
-
/* @__PURE__ */
|
|
10080
|
+
label && /* @__PURE__ */ jsx100(_Label, { children: label }),
|
|
10081
|
+
/* @__PURE__ */ jsx100(SliderOutput, { className: cn59("flex justify-end", classNames3.output), children: ({ state }) => state.values.map((_, i) => state.getThumbValueLabel(i)).join(" \u2013 ") }),
|
|
10082
|
+
/* @__PURE__ */ jsx100(
|
|
10101
10083
|
SliderTrack,
|
|
10102
10084
|
{
|
|
10103
10085
|
className: cn59("relative col-span-2 h-2 w-full", classNames3.track),
|
|
10104
|
-
children: ({ state }) => /* @__PURE__ */
|
|
10105
|
-
/* @__PURE__ */
|
|
10086
|
+
children: ({ state }) => /* @__PURE__ */ jsxs37(Fragment10, { children: [
|
|
10087
|
+
/* @__PURE__ */ jsx100(
|
|
10106
10088
|
"div",
|
|
10107
10089
|
{
|
|
10108
10090
|
className: cn59(
|
|
@@ -10111,7 +10093,7 @@ var _Slider = forwardRef31(
|
|
|
10111
10093
|
)
|
|
10112
10094
|
}
|
|
10113
10095
|
),
|
|
10114
|
-
/* @__PURE__ */
|
|
10096
|
+
/* @__PURE__ */ jsx100(
|
|
10115
10097
|
"div",
|
|
10116
10098
|
{
|
|
10117
10099
|
className: cn59(
|
|
@@ -10124,7 +10106,7 @@ var _Slider = forwardRef31(
|
|
|
10124
10106
|
}
|
|
10125
10107
|
}
|
|
10126
10108
|
),
|
|
10127
|
-
state.values.map((_, i) => /* @__PURE__ */
|
|
10109
|
+
state.values.map((_, i) => /* @__PURE__ */ jsx100(
|
|
10128
10110
|
SliderThumb,
|
|
10129
10111
|
{
|
|
10130
10112
|
className: cn59("top-1/2 cursor-pointer", classNames3.thumb),
|
|
@@ -10144,23 +10126,27 @@ var _Slider = forwardRef31(
|
|
|
10144
10126
|
);
|
|
10145
10127
|
|
|
10146
10128
|
// src/Split/Split.tsx
|
|
10147
|
-
import { jsx as
|
|
10148
|
-
var Split = () => /* @__PURE__ */
|
|
10129
|
+
import { jsx as jsx101 } from "react/jsx-runtime";
|
|
10130
|
+
var Split = () => /* @__PURE__ */ jsx101("div", { role: "separator", className: "grow" });
|
|
10149
10131
|
|
|
10150
10132
|
// src/Stack/Stack.tsx
|
|
10133
|
+
import { Children as Children3 } from "react";
|
|
10151
10134
|
import { alignment as alignment3, cn as cn60, gapSpace as gapSpace8 } from "@marigold/system";
|
|
10152
|
-
import { jsx as
|
|
10135
|
+
import { jsx as jsx102 } from "react/jsx-runtime";
|
|
10153
10136
|
var Stack = ({
|
|
10154
10137
|
children,
|
|
10155
10138
|
space = 0,
|
|
10156
10139
|
stretch = false,
|
|
10157
10140
|
alignX,
|
|
10158
10141
|
alignY,
|
|
10142
|
+
asList = false,
|
|
10159
10143
|
...props
|
|
10160
10144
|
}) => {
|
|
10161
10145
|
var _a, _b, _c, _d;
|
|
10162
|
-
|
|
10163
|
-
|
|
10146
|
+
const Component2 = asList ? "ul" : "div";
|
|
10147
|
+
const stackChildren = asList ? Children3.map(children, (child) => child != null ? /* @__PURE__ */ jsx102("li", { children: child }) : null) : children;
|
|
10148
|
+
return /* @__PURE__ */ jsx102(
|
|
10149
|
+
Component2,
|
|
10164
10150
|
{
|
|
10165
10151
|
className: cn60(
|
|
10166
10152
|
"flex flex-col",
|
|
@@ -10170,7 +10156,7 @@ var Stack = ({
|
|
|
10170
10156
|
stretch && "h-full w-full"
|
|
10171
10157
|
),
|
|
10172
10158
|
...props,
|
|
10173
|
-
children
|
|
10159
|
+
children: stackChildren
|
|
10174
10160
|
}
|
|
10175
10161
|
);
|
|
10176
10162
|
};
|
|
@@ -10181,9 +10167,9 @@ import { Switch } from "react-aria-components";
|
|
|
10181
10167
|
import {
|
|
10182
10168
|
cn as cn61,
|
|
10183
10169
|
width as twWidth4,
|
|
10184
|
-
useClassNames as
|
|
10170
|
+
useClassNames as useClassNames60
|
|
10185
10171
|
} from "@marigold/system";
|
|
10186
|
-
import { jsx as
|
|
10172
|
+
import { jsx as jsx103, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
10187
10173
|
var _Switch = forwardRef32(
|
|
10188
10174
|
({
|
|
10189
10175
|
variant,
|
|
@@ -10195,14 +10181,14 @@ var _Switch = forwardRef32(
|
|
|
10195
10181
|
readOnly,
|
|
10196
10182
|
...rest
|
|
10197
10183
|
}, ref) => {
|
|
10198
|
-
const classNames3 =
|
|
10184
|
+
const classNames3 = useClassNames60({ component: "Switch", size: size2, variant });
|
|
10199
10185
|
const props = {
|
|
10200
10186
|
isDisabled: disabled,
|
|
10201
10187
|
isReadOnly: readOnly,
|
|
10202
10188
|
isSelected: selected,
|
|
10203
10189
|
...rest
|
|
10204
10190
|
};
|
|
10205
|
-
return /* @__PURE__ */
|
|
10191
|
+
return /* @__PURE__ */ jsxs38(
|
|
10206
10192
|
Switch,
|
|
10207
10193
|
{
|
|
10208
10194
|
...props,
|
|
@@ -10214,8 +10200,8 @@ var _Switch = forwardRef32(
|
|
|
10214
10200
|
classNames3.container
|
|
10215
10201
|
),
|
|
10216
10202
|
children: [
|
|
10217
|
-
label && /* @__PURE__ */
|
|
10218
|
-
/* @__PURE__ */
|
|
10203
|
+
label && /* @__PURE__ */ jsx103(_Label, { elementType: "span", children: label }),
|
|
10204
|
+
/* @__PURE__ */ jsx103("div", { className: "relative", children: /* @__PURE__ */ jsx103("div", { className: classNames3.track, children: /* @__PURE__ */ jsx103("div", { className: classNames3.thumb }) }) })
|
|
10219
10205
|
]
|
|
10220
10206
|
}
|
|
10221
10207
|
);
|
|
@@ -10233,16 +10219,16 @@ import {
|
|
|
10233
10219
|
Row,
|
|
10234
10220
|
useTableState
|
|
10235
10221
|
} from "@react-stately/table";
|
|
10236
|
-
import { cn as cn67, useClassNames as
|
|
10222
|
+
import { cn as cn67, useClassNames as useClassNames62 } from "@marigold/system";
|
|
10237
10223
|
|
|
10238
10224
|
// src/Table/Context.tsx
|
|
10239
|
-
import { createContext as
|
|
10240
|
-
var TableContext =
|
|
10241
|
-
var useTableContext = () =>
|
|
10225
|
+
import { createContext as createContext14, useContext as useContext24 } from "react";
|
|
10226
|
+
var TableContext = createContext14({});
|
|
10227
|
+
var useTableContext = () => useContext24(TableContext);
|
|
10242
10228
|
|
|
10243
10229
|
// src/Table/TableBody.tsx
|
|
10244
10230
|
import { useTableRowGroup } from "@react-aria/table";
|
|
10245
|
-
import { jsx as
|
|
10231
|
+
import { jsx as jsx104 } from "react/jsx-runtime";
|
|
10246
10232
|
var TableBody = ({
|
|
10247
10233
|
children,
|
|
10248
10234
|
className,
|
|
@@ -10251,7 +10237,7 @@ var TableBody = ({
|
|
|
10251
10237
|
const { rowGroupProps } = useTableRowGroup();
|
|
10252
10238
|
const { state, classNames: classNames3 } = useTableContext();
|
|
10253
10239
|
if (state.collection.size === 0 && emptyState) {
|
|
10254
|
-
return /* @__PURE__ */
|
|
10240
|
+
return /* @__PURE__ */ jsx104("tbody", { className, children: /* @__PURE__ */ jsx104("tr", { className: classNames3 == null ? void 0 : classNames3.row, role: "row", children: /* @__PURE__ */ jsx104(
|
|
10255
10241
|
"td",
|
|
10256
10242
|
{
|
|
10257
10243
|
className: classNames3 == null ? void 0 : classNames3.cell,
|
|
@@ -10261,7 +10247,7 @@ var TableBody = ({
|
|
|
10261
10247
|
}
|
|
10262
10248
|
) }) });
|
|
10263
10249
|
}
|
|
10264
|
-
return /* @__PURE__ */
|
|
10250
|
+
return /* @__PURE__ */ jsx104("tbody", { ...rowGroupProps, className, children });
|
|
10265
10251
|
};
|
|
10266
10252
|
|
|
10267
10253
|
// src/Table/TableCell.tsx
|
|
@@ -10270,7 +10256,7 @@ import { useFocusRing } from "@react-aria/focus";
|
|
|
10270
10256
|
import { useTableCell } from "@react-aria/table";
|
|
10271
10257
|
import { mergeProps as mergeProps2 } from "@react-aria/utils";
|
|
10272
10258
|
import { useStateProps } from "@marigold/system";
|
|
10273
|
-
import { jsx as
|
|
10259
|
+
import { jsx as jsx105 } from "react/jsx-runtime";
|
|
10274
10260
|
var TableCell = ({
|
|
10275
10261
|
cell,
|
|
10276
10262
|
align = "left",
|
|
@@ -10297,7 +10283,7 @@ var TableCell = ({
|
|
|
10297
10283
|
};
|
|
10298
10284
|
const { focusProps, isFocusVisible } = useFocusRing();
|
|
10299
10285
|
const stateProps = useStateProps({ disabled, focusVisible: isFocusVisible });
|
|
10300
|
-
return /* @__PURE__ */
|
|
10286
|
+
return /* @__PURE__ */ jsx105(
|
|
10301
10287
|
"td",
|
|
10302
10288
|
{
|
|
10303
10289
|
ref,
|
|
@@ -10339,7 +10325,7 @@ var mapCheckboxProps = ({
|
|
|
10339
10325
|
};
|
|
10340
10326
|
|
|
10341
10327
|
// src/Table/TableCheckboxCell.tsx
|
|
10342
|
-
import { jsx as
|
|
10328
|
+
import { jsx as jsx106 } from "react/jsx-runtime";
|
|
10343
10329
|
var TableCheckboxCell = ({
|
|
10344
10330
|
cell,
|
|
10345
10331
|
alignY = "middle"
|
|
@@ -10359,7 +10345,7 @@ var TableCheckboxCell = ({
|
|
|
10359
10345
|
);
|
|
10360
10346
|
const { focusProps, isFocusVisible } = useFocusRing2();
|
|
10361
10347
|
const stateProps = useStateProps2({ disabled, focusVisible: isFocusVisible });
|
|
10362
|
-
return /* @__PURE__ */
|
|
10348
|
+
return /* @__PURE__ */ jsx106(
|
|
10363
10349
|
"td",
|
|
10364
10350
|
{
|
|
10365
10351
|
ref,
|
|
@@ -10367,7 +10353,7 @@ var TableCheckboxCell = ({
|
|
|
10367
10353
|
...mergeProps3(gridCellProps, focusProps),
|
|
10368
10354
|
...stateProps,
|
|
10369
10355
|
valign: alignY,
|
|
10370
|
-
children: /* @__PURE__ */
|
|
10356
|
+
children: /* @__PURE__ */ jsx106(_Checkbox, { ...checkboxProps })
|
|
10371
10357
|
}
|
|
10372
10358
|
);
|
|
10373
10359
|
};
|
|
@@ -10379,7 +10365,7 @@ import { useHover } from "@react-aria/interactions";
|
|
|
10379
10365
|
import { useTableColumnHeader } from "@react-aria/table";
|
|
10380
10366
|
import { mergeProps as mergeProps4 } from "@react-aria/utils";
|
|
10381
10367
|
import { cn as cn63, width as twWidth5, useStateProps as useStateProps3 } from "@marigold/system";
|
|
10382
|
-
import { jsx as
|
|
10368
|
+
import { jsx as jsx107, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
10383
10369
|
var TableColumnHeader = ({
|
|
10384
10370
|
column: column2,
|
|
10385
10371
|
width = "auto",
|
|
@@ -10401,7 +10387,7 @@ var TableColumnHeader = ({
|
|
|
10401
10387
|
hover: isHovered,
|
|
10402
10388
|
focusVisible: isFocusVisible
|
|
10403
10389
|
});
|
|
10404
|
-
return /* @__PURE__ */
|
|
10390
|
+
return /* @__PURE__ */ jsxs39(
|
|
10405
10391
|
"th",
|
|
10406
10392
|
{
|
|
10407
10393
|
colSpan: column2.colspan,
|
|
@@ -10412,7 +10398,7 @@ var TableColumnHeader = ({
|
|
|
10412
10398
|
align,
|
|
10413
10399
|
children: [
|
|
10414
10400
|
column2.rendered,
|
|
10415
|
-
column2.props.allowsSorting && (((_a = state.sortDescriptor) == null ? void 0 : _a.column) === column2.key ? ((_b = state.sortDescriptor) == null ? void 0 : _b.direction) === "ascending" ? /* @__PURE__ */
|
|
10401
|
+
column2.props.allowsSorting && (((_a = state.sortDescriptor) == null ? void 0 : _a.column) === column2.key ? ((_b = state.sortDescriptor) == null ? void 0 : _b.direction) === "ascending" ? /* @__PURE__ */ jsx107(SortUp, { className: "inline-block" }) : /* @__PURE__ */ jsx107(SortDown, { className: "inline-block" }) : /* @__PURE__ */ jsx107("span", { className: "hidden", children: /* @__PURE__ */ jsx107(SortDown, { className: "inline-block" }) }))
|
|
10416
10402
|
]
|
|
10417
10403
|
}
|
|
10418
10404
|
);
|
|
@@ -10421,17 +10407,16 @@ var TableColumnHeader = ({
|
|
|
10421
10407
|
// src/Table/TableHeader.tsx
|
|
10422
10408
|
import { useTableRowGroup as useTableRowGroup2 } from "@react-aria/table";
|
|
10423
10409
|
import { cn as cn64 } from "@marigold/system";
|
|
10424
|
-
import { jsx as
|
|
10410
|
+
import { jsx as jsx108 } from "react/jsx-runtime";
|
|
10425
10411
|
var TableHeader = ({ stickyHeader, children }) => {
|
|
10426
10412
|
const { rowGroupProps } = useTableRowGroup2();
|
|
10427
10413
|
const { classNames: classNames3 } = useTableContext();
|
|
10428
|
-
return /* @__PURE__ */
|
|
10414
|
+
return /* @__PURE__ */ jsx108(
|
|
10429
10415
|
"thead",
|
|
10430
10416
|
{
|
|
10431
10417
|
...rowGroupProps,
|
|
10432
10418
|
className: cn64(
|
|
10433
10419
|
classNames3 == null ? void 0 : classNames3.thead,
|
|
10434
|
-
// for sticky header &th needs to be sticky for b2b and core theme
|
|
10435
10420
|
// for rui sticky is applied to thead
|
|
10436
10421
|
stickyHeader ? "sticky [&_th]:sticky [&_th]:top-0" : ""
|
|
10437
10422
|
),
|
|
@@ -10443,7 +10428,7 @@ var TableHeader = ({ stickyHeader, children }) => {
|
|
|
10443
10428
|
// src/Table/TableHeaderRow.tsx
|
|
10444
10429
|
import { useRef as useRef13 } from "react";
|
|
10445
10430
|
import { useTableHeaderRow } from "@react-aria/table";
|
|
10446
|
-
import { jsx as
|
|
10431
|
+
import { jsx as jsx109 } from "react/jsx-runtime";
|
|
10447
10432
|
var TableHeaderRow = ({
|
|
10448
10433
|
item,
|
|
10449
10434
|
className,
|
|
@@ -10452,7 +10437,7 @@ var TableHeaderRow = ({
|
|
|
10452
10437
|
const { state } = useTableContext();
|
|
10453
10438
|
const ref = useRef13(null);
|
|
10454
10439
|
const { rowProps } = useTableHeaderRow({ node: item }, state, ref);
|
|
10455
|
-
return /* @__PURE__ */
|
|
10440
|
+
return /* @__PURE__ */ jsx109("tr", { ...rowProps, className, ref, children });
|
|
10456
10441
|
};
|
|
10457
10442
|
|
|
10458
10443
|
// src/Table/TableRow.tsx
|
|
@@ -10461,13 +10446,13 @@ import { useFocusRing as useFocusRing4 } from "@react-aria/focus";
|
|
|
10461
10446
|
import { useHover as useHover2 } from "@react-aria/interactions";
|
|
10462
10447
|
import { useTableRow } from "@react-aria/table";
|
|
10463
10448
|
import { mergeProps as mergeProps5 } from "@react-aria/utils";
|
|
10464
|
-
import { cn as cn65, useClassNames as
|
|
10465
|
-
import { jsx as
|
|
10449
|
+
import { cn as cn65, useClassNames as useClassNames61, useStateProps as useStateProps4 } from "@marigold/system";
|
|
10450
|
+
import { jsx as jsx110 } from "react/jsx-runtime";
|
|
10466
10451
|
var TableRow = ({ children, row }) => {
|
|
10467
10452
|
const ref = useRef14(null);
|
|
10468
10453
|
const { interactive, state, ...ctx } = useTableContext();
|
|
10469
10454
|
const { variant, size: size2 } = row.props;
|
|
10470
|
-
const classNames3 =
|
|
10455
|
+
const classNames3 = useClassNames61({
|
|
10471
10456
|
component: "Table",
|
|
10472
10457
|
variant: variant || ctx.variant,
|
|
10473
10458
|
size: size2 || ctx.size
|
|
@@ -10492,7 +10477,7 @@ var TableRow = ({ children, row }) => {
|
|
|
10492
10477
|
focusVisible: isFocusVisible,
|
|
10493
10478
|
active: isPressed
|
|
10494
10479
|
});
|
|
10495
|
-
return /* @__PURE__ */
|
|
10480
|
+
return /* @__PURE__ */ jsx110(
|
|
10496
10481
|
"tr",
|
|
10497
10482
|
{
|
|
10498
10483
|
ref,
|
|
@@ -10523,7 +10508,7 @@ import {
|
|
|
10523
10508
|
width as twWidth6,
|
|
10524
10509
|
useStateProps as useStateProps5
|
|
10525
10510
|
} from "@marigold/system";
|
|
10526
|
-
import { jsx as
|
|
10511
|
+
import { jsx as jsx111 } from "react/jsx-runtime";
|
|
10527
10512
|
var TableSelectAllCell = ({
|
|
10528
10513
|
column: column2,
|
|
10529
10514
|
width = "auto",
|
|
@@ -10545,7 +10530,7 @@ var TableSelectAllCell = ({
|
|
|
10545
10530
|
hover: isHovered,
|
|
10546
10531
|
focusVisible: isFocusVisible
|
|
10547
10532
|
});
|
|
10548
|
-
return /* @__PURE__ */
|
|
10533
|
+
return /* @__PURE__ */ jsx111(
|
|
10549
10534
|
"th",
|
|
10550
10535
|
{
|
|
10551
10536
|
ref,
|
|
@@ -10553,13 +10538,13 @@ var TableSelectAllCell = ({
|
|
|
10553
10538
|
...mergeProps6(columnHeaderProps, hoverProps, focusProps),
|
|
10554
10539
|
...stateProps,
|
|
10555
10540
|
align,
|
|
10556
|
-
children: /* @__PURE__ */
|
|
10541
|
+
children: /* @__PURE__ */ jsx111(_Checkbox, { ...checkboxProps })
|
|
10557
10542
|
}
|
|
10558
10543
|
);
|
|
10559
10544
|
};
|
|
10560
10545
|
|
|
10561
10546
|
// src/Table/Table.tsx
|
|
10562
|
-
import { jsx as
|
|
10547
|
+
import { jsx as jsx112, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
10563
10548
|
var Table = ({
|
|
10564
10549
|
variant,
|
|
10565
10550
|
size: size2,
|
|
@@ -10583,17 +10568,17 @@ var Table = ({
|
|
|
10583
10568
|
state.isKeyboardNavigationDisabled = disableKeyboardNavigation;
|
|
10584
10569
|
}
|
|
10585
10570
|
const { gridProps } = useTable(props, state, tableRef);
|
|
10586
|
-
const classNames3 =
|
|
10571
|
+
const classNames3 = useClassNames62({
|
|
10587
10572
|
component: "Table",
|
|
10588
10573
|
variant,
|
|
10589
10574
|
size: size2
|
|
10590
10575
|
});
|
|
10591
10576
|
const { collection } = state;
|
|
10592
|
-
return /* @__PURE__ */
|
|
10577
|
+
return /* @__PURE__ */ jsx112(
|
|
10593
10578
|
TableContext.Provider,
|
|
10594
10579
|
{
|
|
10595
10580
|
value: { state, interactive, classNames: classNames3, variant, size: size2 },
|
|
10596
|
-
children: /* @__PURE__ */
|
|
10581
|
+
children: /* @__PURE__ */ jsxs40(
|
|
10597
10582
|
"table",
|
|
10598
10583
|
{
|
|
10599
10584
|
ref: tableRef,
|
|
@@ -10605,7 +10590,7 @@ var Table = ({
|
|
|
10605
10590
|
),
|
|
10606
10591
|
...gridProps,
|
|
10607
10592
|
children: [
|
|
10608
|
-
/* @__PURE__ */
|
|
10593
|
+
/* @__PURE__ */ jsx112(TableHeader, { stickyHeader, children: collection.headerRows.map((headerRow) => /* @__PURE__ */ jsx112(
|
|
10609
10594
|
TableHeaderRow,
|
|
10610
10595
|
{
|
|
10611
10596
|
item: headerRow,
|
|
@@ -10613,7 +10598,7 @@ var Table = ({
|
|
|
10613
10598
|
children: [...collection.getChildren(headerRow.key)].map(
|
|
10614
10599
|
(column2) => {
|
|
10615
10600
|
var _a, _b, _c, _d, _e;
|
|
10616
|
-
return ((_a = column2.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */
|
|
10601
|
+
return ((_a = column2.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ jsx112(
|
|
10617
10602
|
TableSelectAllCell,
|
|
10618
10603
|
{
|
|
10619
10604
|
width: (_b = column2.props) == null ? void 0 : _b.width,
|
|
@@ -10621,7 +10606,7 @@ var Table = ({
|
|
|
10621
10606
|
align: (_c = column2.props) == null ? void 0 : _c.align
|
|
10622
10607
|
},
|
|
10623
10608
|
column2.key
|
|
10624
|
-
) : /* @__PURE__ */
|
|
10609
|
+
) : /* @__PURE__ */ jsx112(
|
|
10625
10610
|
TableColumnHeader,
|
|
10626
10611
|
{
|
|
10627
10612
|
width: (_d = column2.props) == null ? void 0 : _d.width,
|
|
@@ -10635,19 +10620,19 @@ var Table = ({
|
|
|
10635
10620
|
},
|
|
10636
10621
|
headerRow.key
|
|
10637
10622
|
)) }),
|
|
10638
|
-
/* @__PURE__ */
|
|
10623
|
+
/* @__PURE__ */ jsxs40(TableBody, { className: classNames3.body, emptyState, children: [
|
|
10639
10624
|
...collection.rows.map(
|
|
10640
|
-
(row) => row.type === "item" && /* @__PURE__ */
|
|
10625
|
+
(row) => row.type === "item" && /* @__PURE__ */ jsx112(TableRow, { row, children: [...collection.getChildren(row.key)].map((cell, index2) => {
|
|
10641
10626
|
var _a, _b;
|
|
10642
10627
|
const currentColumn = collection.columns[index2];
|
|
10643
|
-
return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */
|
|
10628
|
+
return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ jsx112(
|
|
10644
10629
|
TableCheckboxCell,
|
|
10645
10630
|
{
|
|
10646
10631
|
cell,
|
|
10647
10632
|
alignY
|
|
10648
10633
|
},
|
|
10649
10634
|
cell.key
|
|
10650
|
-
) : /* @__PURE__ */
|
|
10635
|
+
) : /* @__PURE__ */ jsx112(
|
|
10651
10636
|
TableCell,
|
|
10652
10637
|
{
|
|
10653
10638
|
align: (_b = currentColumn.props) == null ? void 0 : _b.align,
|
|
@@ -10681,9 +10666,9 @@ import {
|
|
|
10681
10666
|
textAlign as textAlign2,
|
|
10682
10667
|
textSize,
|
|
10683
10668
|
textStyle,
|
|
10684
|
-
useClassNames as
|
|
10669
|
+
useClassNames as useClassNames63
|
|
10685
10670
|
} from "@marigold/system";
|
|
10686
|
-
import { jsx as
|
|
10671
|
+
import { jsx as jsx113 } from "react/jsx-runtime";
|
|
10687
10672
|
var _Text = ({
|
|
10688
10673
|
variant,
|
|
10689
10674
|
size: size2,
|
|
@@ -10697,14 +10682,14 @@ var _Text = ({
|
|
|
10697
10682
|
as = "div",
|
|
10698
10683
|
...props
|
|
10699
10684
|
}) => {
|
|
10700
|
-
const classNames3 =
|
|
10685
|
+
const classNames3 = useClassNames63({
|
|
10701
10686
|
component: "Text",
|
|
10702
10687
|
variant,
|
|
10703
10688
|
size: size2
|
|
10704
10689
|
});
|
|
10705
10690
|
const Component2 = props.slot ? Text2 : as;
|
|
10706
10691
|
const elementType = props.slot ? { elementType: as } : {};
|
|
10707
|
-
return /* @__PURE__ */
|
|
10692
|
+
return /* @__PURE__ */ jsx113(
|
|
10708
10693
|
Component2,
|
|
10709
10694
|
{
|
|
10710
10695
|
...props,
|
|
@@ -10728,8 +10713,8 @@ var _Text = ({
|
|
|
10728
10713
|
// src/TextArea/TextArea.tsx
|
|
10729
10714
|
import { forwardRef as forwardRef33 } from "react";
|
|
10730
10715
|
import { TextArea, TextField } from "react-aria-components";
|
|
10731
|
-
import { useClassNames as
|
|
10732
|
-
import { jsx as
|
|
10716
|
+
import { useClassNames as useClassNames64 } from "@marigold/system";
|
|
10717
|
+
import { jsx as jsx114 } from "react/jsx-runtime";
|
|
10733
10718
|
var _TextArea = forwardRef33(
|
|
10734
10719
|
({
|
|
10735
10720
|
variant,
|
|
@@ -10741,7 +10726,7 @@ var _TextArea = forwardRef33(
|
|
|
10741
10726
|
rows,
|
|
10742
10727
|
...rest
|
|
10743
10728
|
}, ref) => {
|
|
10744
|
-
const classNames3 =
|
|
10729
|
+
const classNames3 = useClassNames64({ component: "TextArea", variant, size: size2 });
|
|
10745
10730
|
const props = {
|
|
10746
10731
|
isDisabled: disabled,
|
|
10747
10732
|
isReadOnly: readOnly,
|
|
@@ -10749,14 +10734,14 @@ var _TextArea = forwardRef33(
|
|
|
10749
10734
|
isRequired: required,
|
|
10750
10735
|
...rest
|
|
10751
10736
|
};
|
|
10752
|
-
return /* @__PURE__ */
|
|
10737
|
+
return /* @__PURE__ */ jsx114(FieldBase, { as: TextField, ...props, variant, size: size2, children: /* @__PURE__ */ jsx114(TextArea, { className: classNames3, ref, rows }) });
|
|
10753
10738
|
}
|
|
10754
10739
|
);
|
|
10755
10740
|
|
|
10756
10741
|
// src/TextField/TextField.tsx
|
|
10757
10742
|
import { forwardRef as forwardRef34 } from "react";
|
|
10758
10743
|
import { TextField as TextField2 } from "react-aria-components";
|
|
10759
|
-
import { jsx as
|
|
10744
|
+
import { jsx as jsx115 } from "react/jsx-runtime";
|
|
10760
10745
|
var _TextField = forwardRef34(
|
|
10761
10746
|
({ required, disabled, readOnly, error, ...rest }, ref) => {
|
|
10762
10747
|
const props = {
|
|
@@ -10766,13 +10751,13 @@ var _TextField = forwardRef34(
|
|
|
10766
10751
|
isRequired: required,
|
|
10767
10752
|
...rest
|
|
10768
10753
|
};
|
|
10769
|
-
return /* @__PURE__ */
|
|
10754
|
+
return /* @__PURE__ */ jsx115(FieldBase, { as: TextField2, ...props, children: /* @__PURE__ */ jsx115(_Input, { ref }) });
|
|
10770
10755
|
}
|
|
10771
10756
|
);
|
|
10772
10757
|
|
|
10773
10758
|
// src/Tiles/Tiles.tsx
|
|
10774
|
-
import { cn as cn69, createVar as
|
|
10775
|
-
import { jsx as
|
|
10759
|
+
import { cn as cn69, createVar as createVar7, gapSpace as gapSpace9 } from "@marigold/system";
|
|
10760
|
+
import { jsx as jsx116 } from "react/jsx-runtime";
|
|
10776
10761
|
var Tiles = ({
|
|
10777
10762
|
space = 0,
|
|
10778
10763
|
stretch = false,
|
|
@@ -10785,7 +10770,7 @@ var Tiles = ({
|
|
|
10785
10770
|
if (stretch) {
|
|
10786
10771
|
column2 = `minmax(${column2}, 1fr)`;
|
|
10787
10772
|
}
|
|
10788
|
-
return /* @__PURE__ */
|
|
10773
|
+
return /* @__PURE__ */ jsx116(
|
|
10789
10774
|
"div",
|
|
10790
10775
|
{
|
|
10791
10776
|
...props,
|
|
@@ -10795,7 +10780,7 @@ var Tiles = ({
|
|
|
10795
10780
|
"grid-cols-[repeat(auto-fit,var(--column))]",
|
|
10796
10781
|
equalHeight && "auto-rows-[1fr]"
|
|
10797
10782
|
),
|
|
10798
|
-
style:
|
|
10783
|
+
style: createVar7({ column: column2, tilesWidth }),
|
|
10799
10784
|
children
|
|
10800
10785
|
}
|
|
10801
10786
|
);
|
|
@@ -10803,11 +10788,12 @@ var Tiles = ({
|
|
|
10803
10788
|
|
|
10804
10789
|
// src/Tooltip/Tooltip.tsx
|
|
10805
10790
|
import { OverlayArrow, Tooltip } from "react-aria-components";
|
|
10806
|
-
import {
|
|
10791
|
+
import { UNSAFE_PortalProvider as UNSAFE_PortalProvider3 } from "@react-aria/overlays";
|
|
10792
|
+
import { cn as cn70, useClassNames as useClassNames65 } from "@marigold/system";
|
|
10807
10793
|
|
|
10808
10794
|
// src/Tooltip/TooltipTrigger.tsx
|
|
10809
10795
|
import { TooltipTrigger } from "react-aria-components";
|
|
10810
|
-
import { jsx as
|
|
10796
|
+
import { jsx as jsx117 } from "react/jsx-runtime";
|
|
10811
10797
|
var _TooltipTrigger = ({
|
|
10812
10798
|
delay = 1e3,
|
|
10813
10799
|
children,
|
|
@@ -10821,28 +10807,26 @@ var _TooltipTrigger = ({
|
|
|
10821
10807
|
isOpen: open,
|
|
10822
10808
|
delay
|
|
10823
10809
|
};
|
|
10824
|
-
return /* @__PURE__ */
|
|
10810
|
+
return /* @__PURE__ */ jsx117(TooltipTrigger, { ...props, children });
|
|
10825
10811
|
};
|
|
10826
10812
|
|
|
10827
10813
|
// src/Tooltip/Tooltip.tsx
|
|
10828
|
-
import { jsx as
|
|
10814
|
+
import { jsx as jsx118, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
10829
10815
|
var _Tooltip = ({ children, variant, size: size2, open, ...rest }) => {
|
|
10830
10816
|
const props = {
|
|
10831
10817
|
...rest,
|
|
10832
10818
|
isOpen: open
|
|
10833
10819
|
};
|
|
10834
|
-
const classNames3 =
|
|
10820
|
+
const classNames3 = useClassNames65({ component: "Tooltip", variant, size: size2 });
|
|
10835
10821
|
const portal = usePortalContainer();
|
|
10836
|
-
return /* @__PURE__ */
|
|
10837
|
-
|
|
10822
|
+
return /* @__PURE__ */ jsx118(
|
|
10823
|
+
UNSAFE_PortalProvider3,
|
|
10838
10824
|
{
|
|
10839
|
-
|
|
10840
|
-
className: cn70("group/tooltip", classNames3.container),
|
|
10841
|
-
|
|
10842
|
-
children: [
|
|
10843
|
-
/* @__PURE__ */ jsx120(OverlayArrow, { className: classNames3.arrow, children: /* @__PURE__ */ jsx120("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ jsx120("path", { d: "M0 0 L4 4 L8 0" }) }) }),
|
|
10825
|
+
getContainer: () => portal instanceof HTMLElement ? portal : null,
|
|
10826
|
+
children: /* @__PURE__ */ jsxs41(Tooltip, { ...props, className: cn70("group/tooltip", classNames3.container), children: [
|
|
10827
|
+
/* @__PURE__ */ jsx118(OverlayArrow, { className: classNames3.arrow, children: /* @__PURE__ */ jsx118("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ jsx118("path", { d: "M0 0 L4 4 L8 0" }) }) }),
|
|
10844
10828
|
children
|
|
10845
|
-
]
|
|
10829
|
+
] })
|
|
10846
10830
|
}
|
|
10847
10831
|
);
|
|
10848
10832
|
};
|
|
@@ -10850,22 +10834,22 @@ _Tooltip.Trigger = _TooltipTrigger;
|
|
|
10850
10834
|
|
|
10851
10835
|
// src/TagGroup/Tag.tsx
|
|
10852
10836
|
import { Tag } from "react-aria-components";
|
|
10853
|
-
import { cn as cn71, useClassNames as
|
|
10837
|
+
import { cn as cn71, useClassNames as useClassNames67 } from "@marigold/system";
|
|
10854
10838
|
|
|
10855
10839
|
// src/TagGroup/TagGroup.tsx
|
|
10856
10840
|
import { TagGroup, TagList } from "react-aria-components";
|
|
10857
|
-
import { useClassNames as
|
|
10841
|
+
import { useClassNames as useClassNames66 } from "@marigold/system";
|
|
10858
10842
|
|
|
10859
10843
|
// src/TagGroup/TagGroupHiddenInput.tsx
|
|
10860
|
-
import { useContext as
|
|
10844
|
+
import { useContext as useContext25 } from "react";
|
|
10861
10845
|
import { ListStateContext } from "react-aria-components";
|
|
10862
|
-
import { jsx as
|
|
10846
|
+
import { jsx as jsx119 } from "react/jsx-runtime";
|
|
10863
10847
|
var TagGroupHiddenInput = ({ name }) => {
|
|
10864
10848
|
var _a;
|
|
10865
|
-
const state =
|
|
10849
|
+
const state = useContext25(ListStateContext);
|
|
10866
10850
|
const selectedKeys = Array.from((_a = state == null ? void 0 : state.selectionManager.selectedKeys) != null ? _a : []);
|
|
10867
10851
|
if (!selectedKeys.length) return null;
|
|
10868
|
-
return /* @__PURE__ */
|
|
10852
|
+
return /* @__PURE__ */ jsx119("div", { hidden: true, "aria-hidden": "true", children: selectedKeys.map((key) => /* @__PURE__ */ jsx119(
|
|
10869
10853
|
"input",
|
|
10870
10854
|
{
|
|
10871
10855
|
type: "checkbox",
|
|
@@ -10879,7 +10863,7 @@ var TagGroupHiddenInput = ({ name }) => {
|
|
|
10879
10863
|
};
|
|
10880
10864
|
|
|
10881
10865
|
// src/TagGroup/TagGroup.tsx
|
|
10882
|
-
import { jsx as
|
|
10866
|
+
import { jsx as jsx120, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
10883
10867
|
var _TagGroup = ({
|
|
10884
10868
|
width,
|
|
10885
10869
|
items,
|
|
@@ -10890,9 +10874,9 @@ var _TagGroup = ({
|
|
|
10890
10874
|
name,
|
|
10891
10875
|
...rest
|
|
10892
10876
|
}) => {
|
|
10893
|
-
const classNames3 =
|
|
10894
|
-
return /* @__PURE__ */
|
|
10895
|
-
/* @__PURE__ */
|
|
10877
|
+
const classNames3 = useClassNames66({ component: "Tag", variant, size: size2 });
|
|
10878
|
+
return /* @__PURE__ */ jsxs42(FieldBase, { as: TagGroup, ...rest, children: [
|
|
10879
|
+
/* @__PURE__ */ jsx120(
|
|
10896
10880
|
TagList,
|
|
10897
10881
|
{
|
|
10898
10882
|
items,
|
|
@@ -10901,28 +10885,28 @@ var _TagGroup = ({
|
|
|
10901
10885
|
children
|
|
10902
10886
|
}
|
|
10903
10887
|
),
|
|
10904
|
-
name ? /* @__PURE__ */
|
|
10888
|
+
name ? /* @__PURE__ */ jsx120(TagGroupHiddenInput, { name }) : null
|
|
10905
10889
|
] });
|
|
10906
10890
|
};
|
|
10907
10891
|
|
|
10908
10892
|
// src/TagGroup/Tag.tsx
|
|
10909
|
-
import { Fragment as
|
|
10893
|
+
import { Fragment as Fragment11, jsx as jsx121, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
10910
10894
|
var _Tag = ({ variant, size: size2, children, disabled, ...rest }) => {
|
|
10911
10895
|
let textValue = typeof children === "string" ? children : void 0;
|
|
10912
|
-
const classNames3 =
|
|
10896
|
+
const classNames3 = useClassNames67({ component: "Tag", variant, size: size2 });
|
|
10913
10897
|
const props = {
|
|
10914
10898
|
isDisabled: disabled,
|
|
10915
10899
|
...rest
|
|
10916
10900
|
};
|
|
10917
|
-
return /* @__PURE__ */
|
|
10901
|
+
return /* @__PURE__ */ jsx121(
|
|
10918
10902
|
Tag,
|
|
10919
10903
|
{
|
|
10920
10904
|
textValue,
|
|
10921
10905
|
...props,
|
|
10922
10906
|
className: cn71("data-selection-mode:cursor-pointer", classNames3.tag),
|
|
10923
|
-
children: ({ allowsRemoving }) => /* @__PURE__ */
|
|
10907
|
+
children: ({ allowsRemoving }) => /* @__PURE__ */ jsxs43(Fragment11, { children: [
|
|
10924
10908
|
children,
|
|
10925
|
-
allowsRemoving && /* @__PURE__ */
|
|
10909
|
+
allowsRemoving && /* @__PURE__ */ jsx121(CloseButton, { className: classNames3.closeButton, slot: "remove" })
|
|
10926
10910
|
] })
|
|
10927
10911
|
}
|
|
10928
10912
|
);
|
|
@@ -10935,12 +10919,12 @@ import { VisuallyHidden } from "@react-aria/visually-hidden";
|
|
|
10935
10919
|
// src/XLoader/XLoader.tsx
|
|
10936
10920
|
import { Dialog as Dialog5, Modal as Modal2 } from "react-aria-components";
|
|
10937
10921
|
import { useId as useId2 } from "@react-aria/utils";
|
|
10938
|
-
import { useClassNames as
|
|
10922
|
+
import { useClassNames as useClassNames69 } from "@marigold/system";
|
|
10939
10923
|
|
|
10940
10924
|
// src/XLoader/BaseLoader.tsx
|
|
10941
10925
|
import { Label as Label2, ProgressBar as ProgressBar2 } from "react-aria-components";
|
|
10942
10926
|
import { useLocalizedStringFormatter as useLocalizedStringFormatter2 } from "@react-aria/i18n";
|
|
10943
|
-
import { useClassNames as
|
|
10927
|
+
import { useClassNames as useClassNames68 } from "@marigold/system";
|
|
10944
10928
|
|
|
10945
10929
|
// src/intl/messages.ts
|
|
10946
10930
|
var intlMessages2 = {
|
|
@@ -10953,7 +10937,7 @@ var intlMessages2 = {
|
|
|
10953
10937
|
};
|
|
10954
10938
|
|
|
10955
10939
|
// src/XLoader/BaseLoader.tsx
|
|
10956
|
-
import { jsx as
|
|
10940
|
+
import { jsx as jsx122, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
10957
10941
|
var BaseLoader = ({
|
|
10958
10942
|
variant,
|
|
10959
10943
|
size: size2,
|
|
@@ -10962,8 +10946,8 @@ var BaseLoader = ({
|
|
|
10962
10946
|
...props
|
|
10963
10947
|
}) => {
|
|
10964
10948
|
const stringFormatter = useLocalizedStringFormatter2(intlMessages2, "marigold");
|
|
10965
|
-
const className =
|
|
10966
|
-
return /* @__PURE__ */
|
|
10949
|
+
const className = useClassNames68({ component: "XLoader", variant, size: size2 });
|
|
10950
|
+
return /* @__PURE__ */ jsxs44(
|
|
10967
10951
|
ProgressBar2,
|
|
10968
10952
|
{
|
|
10969
10953
|
className: className.container,
|
|
@@ -10971,7 +10955,7 @@ var BaseLoader = ({
|
|
|
10971
10955
|
"aria-label": ariaLabel || children ? ariaLabel : stringFormatter.format("loadingMessage"),
|
|
10972
10956
|
...props,
|
|
10973
10957
|
children: [
|
|
10974
|
-
/* @__PURE__ */
|
|
10958
|
+
/* @__PURE__ */ jsxs44(
|
|
10975
10959
|
"svg",
|
|
10976
10960
|
{
|
|
10977
10961
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -10979,13 +10963,13 @@ var BaseLoader = ({
|
|
|
10979
10963
|
fill: "currentColor",
|
|
10980
10964
|
className: className.loader,
|
|
10981
10965
|
children: [
|
|
10982
|
-
/* @__PURE__ */
|
|
10983
|
-
/* @__PURE__ */
|
|
10966
|
+
/* @__PURE__ */ jsx122("path", { id: "XMLID_1_", d: "M35.3 27h26.5l54 74.1H88.7z" }),
|
|
10967
|
+
/* @__PURE__ */ jsx122(
|
|
10984
10968
|
"path",
|
|
10985
10969
|
{
|
|
10986
10970
|
id: "XMLID_5_",
|
|
10987
10971
|
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",
|
|
10988
|
-
children: /* @__PURE__ */
|
|
10972
|
+
children: /* @__PURE__ */ jsx122(
|
|
10989
10973
|
"animate",
|
|
10990
10974
|
{
|
|
10991
10975
|
attributeName: "opacity",
|
|
@@ -10998,12 +10982,12 @@ var BaseLoader = ({
|
|
|
10998
10982
|
)
|
|
10999
10983
|
}
|
|
11000
10984
|
),
|
|
11001
|
-
/* @__PURE__ */
|
|
10985
|
+
/* @__PURE__ */ jsx122(
|
|
11002
10986
|
"path",
|
|
11003
10987
|
{
|
|
11004
10988
|
id: "XMLID_18_",
|
|
11005
10989
|
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",
|
|
11006
|
-
children: /* @__PURE__ */
|
|
10990
|
+
children: /* @__PURE__ */ jsx122(
|
|
11007
10991
|
"animate",
|
|
11008
10992
|
{
|
|
11009
10993
|
attributeName: "opacity",
|
|
@@ -11016,12 +11000,12 @@ var BaseLoader = ({
|
|
|
11016
11000
|
)
|
|
11017
11001
|
}
|
|
11018
11002
|
),
|
|
11019
|
-
/* @__PURE__ */
|
|
11003
|
+
/* @__PURE__ */ jsx122(
|
|
11020
11004
|
"path",
|
|
11021
11005
|
{
|
|
11022
11006
|
id: "XMLID_19_",
|
|
11023
11007
|
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",
|
|
11024
|
-
children: /* @__PURE__ */
|
|
11008
|
+
children: /* @__PURE__ */ jsx122(
|
|
11025
11009
|
"animate",
|
|
11026
11010
|
{
|
|
11027
11011
|
attributeName: "opacity",
|
|
@@ -11034,12 +11018,12 @@ var BaseLoader = ({
|
|
|
11034
11018
|
)
|
|
11035
11019
|
}
|
|
11036
11020
|
),
|
|
11037
|
-
/* @__PURE__ */
|
|
11021
|
+
/* @__PURE__ */ jsx122(
|
|
11038
11022
|
"path",
|
|
11039
11023
|
{
|
|
11040
11024
|
id: "XMLID_20_",
|
|
11041
11025
|
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",
|
|
11042
|
-
children: /* @__PURE__ */
|
|
11026
|
+
children: /* @__PURE__ */ jsx122(
|
|
11043
11027
|
"animate",
|
|
11044
11028
|
{
|
|
11045
11029
|
attributeName: "opacity",
|
|
@@ -11052,12 +11036,12 @@ var BaseLoader = ({
|
|
|
11052
11036
|
)
|
|
11053
11037
|
}
|
|
11054
11038
|
),
|
|
11055
|
-
/* @__PURE__ */
|
|
11039
|
+
/* @__PURE__ */ jsx122(
|
|
11056
11040
|
"path",
|
|
11057
11041
|
{
|
|
11058
11042
|
id: "XMLID_21_",
|
|
11059
11043
|
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",
|
|
11060
|
-
children: /* @__PURE__ */
|
|
11044
|
+
children: /* @__PURE__ */ jsx122(
|
|
11061
11045
|
"animate",
|
|
11062
11046
|
{
|
|
11063
11047
|
attributeName: "opacity",
|
|
@@ -11070,12 +11054,12 @@ var BaseLoader = ({
|
|
|
11070
11054
|
)
|
|
11071
11055
|
}
|
|
11072
11056
|
),
|
|
11073
|
-
/* @__PURE__ */
|
|
11057
|
+
/* @__PURE__ */ jsx122(
|
|
11074
11058
|
"path",
|
|
11075
11059
|
{
|
|
11076
11060
|
id: "XMLID_22_",
|
|
11077
11061
|
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",
|
|
11078
|
-
children: /* @__PURE__ */
|
|
11062
|
+
children: /* @__PURE__ */ jsx122(
|
|
11079
11063
|
"animate",
|
|
11080
11064
|
{
|
|
11081
11065
|
attributeName: "opacity",
|
|
@@ -11088,12 +11072,12 @@ var BaseLoader = ({
|
|
|
11088
11072
|
)
|
|
11089
11073
|
}
|
|
11090
11074
|
),
|
|
11091
|
-
/* @__PURE__ */
|
|
11075
|
+
/* @__PURE__ */ jsx122(
|
|
11092
11076
|
"path",
|
|
11093
11077
|
{
|
|
11094
11078
|
id: "XMLID_23_",
|
|
11095
11079
|
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",
|
|
11096
|
-
children: /* @__PURE__ */
|
|
11080
|
+
children: /* @__PURE__ */ jsx122(
|
|
11097
11081
|
"animate",
|
|
11098
11082
|
{
|
|
11099
11083
|
attributeName: "opacity",
|
|
@@ -11106,12 +11090,12 @@ var BaseLoader = ({
|
|
|
11106
11090
|
)
|
|
11107
11091
|
}
|
|
11108
11092
|
),
|
|
11109
|
-
/* @__PURE__ */
|
|
11093
|
+
/* @__PURE__ */ jsx122(
|
|
11110
11094
|
"path",
|
|
11111
11095
|
{
|
|
11112
11096
|
id: "XMLID_24_",
|
|
11113
11097
|
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",
|
|
11114
|
-
children: /* @__PURE__ */
|
|
11098
|
+
children: /* @__PURE__ */ jsx122(
|
|
11115
11099
|
"animate",
|
|
11116
11100
|
{
|
|
11117
11101
|
attributeName: "opacity",
|
|
@@ -11124,12 +11108,12 @@ var BaseLoader = ({
|
|
|
11124
11108
|
)
|
|
11125
11109
|
}
|
|
11126
11110
|
),
|
|
11127
|
-
/* @__PURE__ */
|
|
11111
|
+
/* @__PURE__ */ jsx122(
|
|
11128
11112
|
"path",
|
|
11129
11113
|
{
|
|
11130
11114
|
id: "XMLID_25_",
|
|
11131
11115
|
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",
|
|
11132
|
-
children: /* @__PURE__ */
|
|
11116
|
+
children: /* @__PURE__ */ jsx122(
|
|
11133
11117
|
"animate",
|
|
11134
11118
|
{
|
|
11135
11119
|
attributeName: "opacity",
|
|
@@ -11142,12 +11126,12 @@ var BaseLoader = ({
|
|
|
11142
11126
|
)
|
|
11143
11127
|
}
|
|
11144
11128
|
),
|
|
11145
|
-
/* @__PURE__ */
|
|
11129
|
+
/* @__PURE__ */ jsx122(
|
|
11146
11130
|
"path",
|
|
11147
11131
|
{
|
|
11148
11132
|
id: "XMLID_26_",
|
|
11149
11133
|
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",
|
|
11150
|
-
children: /* @__PURE__ */
|
|
11134
|
+
children: /* @__PURE__ */ jsx122(
|
|
11151
11135
|
"animate",
|
|
11152
11136
|
{
|
|
11153
11137
|
attributeName: "opacity",
|
|
@@ -11160,12 +11144,12 @@ var BaseLoader = ({
|
|
|
11160
11144
|
)
|
|
11161
11145
|
}
|
|
11162
11146
|
),
|
|
11163
|
-
/* @__PURE__ */
|
|
11147
|
+
/* @__PURE__ */ jsx122(
|
|
11164
11148
|
"path",
|
|
11165
11149
|
{
|
|
11166
11150
|
id: "XMLID_27_",
|
|
11167
11151
|
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",
|
|
11168
|
-
children: /* @__PURE__ */
|
|
11152
|
+
children: /* @__PURE__ */ jsx122(
|
|
11169
11153
|
"animate",
|
|
11170
11154
|
{
|
|
11171
11155
|
attributeName: "opacity",
|
|
@@ -11181,44 +11165,44 @@ var BaseLoader = ({
|
|
|
11181
11165
|
]
|
|
11182
11166
|
}
|
|
11183
11167
|
),
|
|
11184
|
-
children ? /* @__PURE__ */
|
|
11168
|
+
children ? /* @__PURE__ */ jsx122(Label2, { className: className.label, children }) : null
|
|
11185
11169
|
]
|
|
11186
11170
|
}
|
|
11187
11171
|
);
|
|
11188
11172
|
};
|
|
11189
11173
|
|
|
11190
11174
|
// src/XLoader/XLoader.tsx
|
|
11191
|
-
import { jsx as
|
|
11175
|
+
import { jsx as jsx123 } from "react/jsx-runtime";
|
|
11192
11176
|
var LoaderFullScreen = (props) => {
|
|
11193
11177
|
const id = useId2();
|
|
11194
|
-
return /* @__PURE__ */
|
|
11178
|
+
return /* @__PURE__ */ jsx123(Underlay, { defaultOpen: true, keyboardDismissable: true, variant: "modal", children: /* @__PURE__ */ jsx123(Modal2, { className: "grid h-(--visual-viewport-height) cursor-progress place-items-center", children: /* @__PURE__ */ jsx123(Dialog5, { className: "outline-0", "aria-labelledby": id, children: /* @__PURE__ */ jsx123(BaseLoader, { id, ...props }) }) }) });
|
|
11195
11179
|
};
|
|
11196
11180
|
var LoaderSection = (props) => {
|
|
11197
|
-
const className =
|
|
11181
|
+
const className = useClassNames69({
|
|
11198
11182
|
component: "Underlay",
|
|
11199
11183
|
variant: "modal",
|
|
11200
11184
|
className: "flex size-full items-center justify-center"
|
|
11201
11185
|
});
|
|
11202
|
-
return /* @__PURE__ */
|
|
11186
|
+
return /* @__PURE__ */ jsx123("div", { className, children: /* @__PURE__ */ jsx123(BaseLoader, { ...props }) });
|
|
11203
11187
|
};
|
|
11204
|
-
var XLoader = ({ mode, variant, ...props }) => mode === "fullscreen" ? /* @__PURE__ */
|
|
11188
|
+
var XLoader = ({ mode, variant, ...props }) => mode === "fullscreen" ? /* @__PURE__ */ jsx123(LoaderFullScreen, { variant: variant != null ? variant : "inverted", ...props }) : mode === "section" ? /* @__PURE__ */ jsx123(LoaderSection, { variant: variant != null ? variant : "inverted", ...props }) : /* @__PURE__ */ jsx123(BaseLoader, { variant, ...props });
|
|
11205
11189
|
|
|
11206
11190
|
// src/Tabs/Tabs.tsx
|
|
11207
11191
|
import { Tabs } from "react-aria-components";
|
|
11208
|
-
import { useClassNames as
|
|
11192
|
+
import { useClassNames as useClassNames70 } from "@marigold/system";
|
|
11209
11193
|
|
|
11210
11194
|
// src/Tabs/Context.ts
|
|
11211
|
-
import { createContext as
|
|
11212
|
-
var TabContext =
|
|
11213
|
-
var useTabContext = () =>
|
|
11195
|
+
import { createContext as createContext15, useContext as useContext26 } from "react";
|
|
11196
|
+
var TabContext = createContext15({});
|
|
11197
|
+
var useTabContext = () => useContext26(TabContext);
|
|
11214
11198
|
|
|
11215
11199
|
// src/Tabs/Tab.tsx
|
|
11216
11200
|
import { Tab } from "react-aria-components";
|
|
11217
11201
|
import { cn as cn72 } from "@marigold/system";
|
|
11218
|
-
import { jsx as
|
|
11202
|
+
import { jsx as jsx124 } from "react/jsx-runtime";
|
|
11219
11203
|
var _Tab = (props) => {
|
|
11220
11204
|
const { classNames: classNames3 } = useTabContext();
|
|
11221
|
-
return /* @__PURE__ */
|
|
11205
|
+
return /* @__PURE__ */ jsx124(
|
|
11222
11206
|
Tab,
|
|
11223
11207
|
{
|
|
11224
11208
|
...props,
|
|
@@ -11234,10 +11218,10 @@ var _Tab = (props) => {
|
|
|
11234
11218
|
// src/Tabs/TabList.tsx
|
|
11235
11219
|
import { TabList } from "react-aria-components";
|
|
11236
11220
|
import { cn as cn73, gapSpace as gapSpace10 } from "@marigold/system";
|
|
11237
|
-
import { jsx as
|
|
11221
|
+
import { jsx as jsx125 } from "react/jsx-runtime";
|
|
11238
11222
|
var _TabList = ({ space = 2, ...props }) => {
|
|
11239
11223
|
const { classNames: classNames3 } = useTabContext();
|
|
11240
|
-
return /* @__PURE__ */
|
|
11224
|
+
return /* @__PURE__ */ jsx125(
|
|
11241
11225
|
TabList,
|
|
11242
11226
|
{
|
|
11243
11227
|
...props,
|
|
@@ -11249,25 +11233,25 @@ var _TabList = ({ space = 2, ...props }) => {
|
|
|
11249
11233
|
|
|
11250
11234
|
// src/Tabs/TabPanel.tsx
|
|
11251
11235
|
import { TabPanel } from "react-aria-components";
|
|
11252
|
-
import { jsx as
|
|
11236
|
+
import { jsx as jsx126 } from "react/jsx-runtime";
|
|
11253
11237
|
var _TabPanel = (props) => {
|
|
11254
11238
|
const { classNames: classNames3 } = useTabContext();
|
|
11255
|
-
return /* @__PURE__ */
|
|
11239
|
+
return /* @__PURE__ */ jsx126(TabPanel, { ...props, className: classNames3.tabpanel, children: props.children });
|
|
11256
11240
|
};
|
|
11257
11241
|
|
|
11258
11242
|
// src/Tabs/Tabs.tsx
|
|
11259
|
-
import { jsx as
|
|
11243
|
+
import { jsx as jsx127 } from "react/jsx-runtime";
|
|
11260
11244
|
var _Tabs = ({ disabled, variant, size: size2 = "medium", ...rest }) => {
|
|
11261
11245
|
const props = {
|
|
11262
11246
|
isDisabled: disabled,
|
|
11263
11247
|
...rest
|
|
11264
11248
|
};
|
|
11265
|
-
const classNames3 =
|
|
11249
|
+
const classNames3 = useClassNames70({
|
|
11266
11250
|
component: "Tabs",
|
|
11267
11251
|
size: size2,
|
|
11268
11252
|
variant
|
|
11269
11253
|
});
|
|
11270
|
-
return /* @__PURE__ */
|
|
11254
|
+
return /* @__PURE__ */ jsx127(TabContext.Provider, { value: { classNames: classNames3 }, children: /* @__PURE__ */ jsx127(Tabs, { ...props, className: classNames3.container, children: props.children }) });
|
|
11271
11255
|
};
|
|
11272
11256
|
_Tabs.List = _TabList;
|
|
11273
11257
|
_Tabs.TabPanel = _TabPanel;
|
|
@@ -11279,8 +11263,8 @@ import { RouterProvider } from "react-aria-components";
|
|
|
11279
11263
|
// src/TimeField/TimeField.tsx
|
|
11280
11264
|
import { forwardRef as forwardRef35 } from "react";
|
|
11281
11265
|
import { DateInput as DateInput2, DateSegment as DateSegment2, TimeField } from "react-aria-components";
|
|
11282
|
-
import { useClassNames as
|
|
11283
|
-
import { jsx as
|
|
11266
|
+
import { useClassNames as useClassNames71 } from "@marigold/system";
|
|
11267
|
+
import { jsx as jsx128 } from "react/jsx-runtime";
|
|
11284
11268
|
var _TimeField = forwardRef35(
|
|
11285
11269
|
({
|
|
11286
11270
|
required,
|
|
@@ -11292,7 +11276,7 @@ var _TimeField = forwardRef35(
|
|
|
11292
11276
|
width = "full",
|
|
11293
11277
|
...rest
|
|
11294
11278
|
}, ref) => {
|
|
11295
|
-
const classNames3 =
|
|
11279
|
+
const classNames3 = useClassNames71({ component: "DateField", variant, size: size2 });
|
|
11296
11280
|
const props = {
|
|
11297
11281
|
isDisabled: disabled,
|
|
11298
11282
|
isReadOnly: readOnly,
|
|
@@ -11300,7 +11284,7 @@ var _TimeField = forwardRef35(
|
|
|
11300
11284
|
isRequired: required,
|
|
11301
11285
|
...rest
|
|
11302
11286
|
};
|
|
11303
|
-
return /* @__PURE__ */
|
|
11287
|
+
return /* @__PURE__ */ jsx128(
|
|
11304
11288
|
FieldBase,
|
|
11305
11289
|
{
|
|
11306
11290
|
as: TimeField,
|
|
@@ -11309,7 +11293,7 @@ var _TimeField = forwardRef35(
|
|
|
11309
11293
|
width,
|
|
11310
11294
|
...props,
|
|
11311
11295
|
ref,
|
|
11312
|
-
children: /* @__PURE__ */
|
|
11296
|
+
children: /* @__PURE__ */ jsx128(DateInput2, { className: classNames3.field, children: (segment) => /* @__PURE__ */ jsx128(DateSegment2, { className: classNames3.segment, segment }) })
|
|
11313
11297
|
}
|
|
11314
11298
|
);
|
|
11315
11299
|
}
|
|
@@ -11341,8 +11325,6 @@ export {
|
|
|
11341
11325
|
_Divider as Divider,
|
|
11342
11326
|
Drawer,
|
|
11343
11327
|
FieldBase,
|
|
11344
|
-
FieldGroup,
|
|
11345
|
-
FieldGroupContext,
|
|
11346
11328
|
Footer,
|
|
11347
11329
|
_Form as Form,
|
|
11348
11330
|
Grid,
|
|
@@ -11395,7 +11377,6 @@ export {
|
|
|
11395
11377
|
gridColsAlign,
|
|
11396
11378
|
gridColumn,
|
|
11397
11379
|
useAsyncList,
|
|
11398
|
-
useFieldGroupContext,
|
|
11399
11380
|
useListData,
|
|
11400
11381
|
usePortalContainer,
|
|
11401
11382
|
useTheme
|