@marigold/components 7.5.0 → 7.5.2
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 +6 -5
- package/dist/index.d.ts +6 -5
- package/dist/index.js +619 -566
- package/dist/index.mjs +482 -430
- package/package.json +5 -5
package/dist/index.mjs
CHANGED
|
@@ -424,7 +424,13 @@ var _FieldBase = (props, ref) => {
|
|
|
424
424
|
Component,
|
|
425
425
|
{
|
|
426
426
|
ref,
|
|
427
|
-
className: cn6(
|
|
427
|
+
className: cn6(
|
|
428
|
+
"group/field",
|
|
429
|
+
twWidth[width],
|
|
430
|
+
classNames2,
|
|
431
|
+
className,
|
|
432
|
+
!label && `gap-x-0`
|
|
433
|
+
),
|
|
428
434
|
"data-required": props.isRequired ? true : void 0,
|
|
429
435
|
"data-error": props.isInvalid ? true : void 0,
|
|
430
436
|
...rest,
|
|
@@ -554,7 +560,6 @@ var SearchInput = forwardRef5(
|
|
|
554
560
|
{
|
|
555
561
|
className: className == null ? void 0 : className.action,
|
|
556
562
|
onPress: () => onClear == null ? void 0 : onClear(),
|
|
557
|
-
slot: null,
|
|
558
563
|
"aria-label": stringFormatter.format("Clear search"),
|
|
559
564
|
excludeFromTabOrder: true,
|
|
560
565
|
preventFocusOnPress: true,
|
|
@@ -693,7 +698,7 @@ var Underlay = ({
|
|
|
693
698
|
ModalOverlay,
|
|
694
699
|
{
|
|
695
700
|
className: ({ isEntering, isExiting }) => cn11(
|
|
696
|
-
"fixed inset-0 z-
|
|
701
|
+
"fixed inset-0 z-40 flex min-h-full items-center justify-center overflow-y-auto backdrop-blur ",
|
|
697
702
|
isEntering ? "animate-in fade-in duration-300 ease-out" : "",
|
|
698
703
|
isExiting ? "animate-out fade-out duration-200 ease-in" : "",
|
|
699
704
|
classNames2
|
|
@@ -1014,11 +1019,25 @@ var Center = ({
|
|
|
1014
1019
|
};
|
|
1015
1020
|
|
|
1016
1021
|
// src/Checkbox/Checkbox.tsx
|
|
1017
|
-
import { forwardRef as forwardRef11 } from "react";
|
|
1022
|
+
import { forwardRef as forwardRef11, useContext as useContext4 } from "react";
|
|
1018
1023
|
import { Checkbox } from "react-aria-components";
|
|
1019
|
-
import {
|
|
1020
|
-
import {
|
|
1021
|
-
|
|
1024
|
+
import { CheckboxGroupStateContext } from "react-aria-components";
|
|
1025
|
+
import { cn as cn17, useClassNames as useClassNames15 } from "@marigold/system";
|
|
1026
|
+
|
|
1027
|
+
// src/Checkbox/CheckBoxField.tsx
|
|
1028
|
+
import { createVar as createVar6, useClassNames as useClassNames14 } from "@marigold/system";
|
|
1029
|
+
import { jsx as jsx27, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1030
|
+
var CheckboxField = ({ children, labelWidth }) => {
|
|
1031
|
+
const classNames2 = useClassNames14({ component: "Field" });
|
|
1032
|
+
return /* @__PURE__ */ jsxs10("div", { className: classNames2, children: [
|
|
1033
|
+
/* @__PURE__ */ jsx27("div", { className: "w-[--labelWidth]", style: createVar6({ labelWidth }) }),
|
|
1034
|
+
children
|
|
1035
|
+
] });
|
|
1036
|
+
};
|
|
1037
|
+
|
|
1038
|
+
// src/Checkbox/Checkbox.tsx
|
|
1039
|
+
import { Fragment as Fragment2, jsx as jsx28, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1040
|
+
var CheckMark = () => /* @__PURE__ */ jsx28("svg", { viewBox: "0 0 12 10", children: /* @__PURE__ */ jsx28(
|
|
1022
1041
|
"path",
|
|
1023
1042
|
{
|
|
1024
1043
|
fill: "currentColor",
|
|
@@ -1026,7 +1045,7 @@ var CheckMark = () => /* @__PURE__ */ jsx27("svg", { viewBox: "0 0 12 10", child
|
|
|
1026
1045
|
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"
|
|
1027
1046
|
}
|
|
1028
1047
|
) });
|
|
1029
|
-
var IndeterminateMark = () => /* @__PURE__ */
|
|
1048
|
+
var IndeterminateMark = () => /* @__PURE__ */ jsx28("svg", { width: "12", height: "3", viewBox: "0 0 12 3", children: /* @__PURE__ */ jsx28(
|
|
1030
1049
|
"path",
|
|
1031
1050
|
{
|
|
1032
1051
|
fill: "currentColor",
|
|
@@ -1035,7 +1054,7 @@ var IndeterminateMark = () => /* @__PURE__ */ jsx27("svg", { width: "12", height
|
|
|
1035
1054
|
}
|
|
1036
1055
|
) });
|
|
1037
1056
|
var Icon2 = ({ className, checked, indeterminate, ...props }) => {
|
|
1038
|
-
return /* @__PURE__ */
|
|
1057
|
+
return /* @__PURE__ */ jsx28(
|
|
1039
1058
|
"div",
|
|
1040
1059
|
{
|
|
1041
1060
|
"aria-hidden": "true",
|
|
@@ -1047,7 +1066,7 @@ var Icon2 = ({ className, checked, indeterminate, ...props }) => {
|
|
|
1047
1066
|
className
|
|
1048
1067
|
),
|
|
1049
1068
|
...props,
|
|
1050
|
-
children: indeterminate ? /* @__PURE__ */
|
|
1069
|
+
children: indeterminate ? /* @__PURE__ */ jsx28(IndeterminateMark, {}) : checked ? /* @__PURE__ */ jsx28(CheckMark, {}) : null
|
|
1051
1070
|
}
|
|
1052
1071
|
);
|
|
1053
1072
|
};
|
|
@@ -1076,8 +1095,10 @@ var _Checkbox = forwardRef11(
|
|
|
1076
1095
|
defaultSelected: defaultChecked,
|
|
1077
1096
|
...rest
|
|
1078
1097
|
};
|
|
1079
|
-
const
|
|
1080
|
-
|
|
1098
|
+
const { labelWidth } = useFieldGroupContext();
|
|
1099
|
+
const classNames2 = useClassNames15({ component: "Checkbox", variant, size });
|
|
1100
|
+
const state = useContext4(CheckboxGroupStateContext);
|
|
1101
|
+
const component = /* @__PURE__ */ jsx28(
|
|
1081
1102
|
Checkbox,
|
|
1082
1103
|
{
|
|
1083
1104
|
ref,
|
|
@@ -1087,8 +1108,8 @@ var _Checkbox = forwardRef11(
|
|
|
1087
1108
|
classNames2.container
|
|
1088
1109
|
),
|
|
1089
1110
|
...props,
|
|
1090
|
-
children: ({ isSelected, isIndeterminate }) => /* @__PURE__ */
|
|
1091
|
-
/* @__PURE__ */
|
|
1111
|
+
children: ({ isSelected, isIndeterminate }) => /* @__PURE__ */ jsxs11(Fragment2, { children: [
|
|
1112
|
+
/* @__PURE__ */ jsx28(
|
|
1092
1113
|
Icon2,
|
|
1093
1114
|
{
|
|
1094
1115
|
checked: isSelected,
|
|
@@ -1096,17 +1117,26 @@ var _Checkbox = forwardRef11(
|
|
|
1096
1117
|
className: classNames2.checkbox
|
|
1097
1118
|
}
|
|
1098
1119
|
),
|
|
1099
|
-
/* @__PURE__ */
|
|
1120
|
+
/* @__PURE__ */ jsx28("div", { className: classNames2.label, children })
|
|
1100
1121
|
] })
|
|
1101
1122
|
}
|
|
1102
1123
|
);
|
|
1124
|
+
return !state && labelWidth ? /* @__PURE__ */ jsx28(CheckboxField, { labelWidth, children: component }) : component;
|
|
1103
1125
|
}
|
|
1104
1126
|
);
|
|
1105
1127
|
|
|
1106
1128
|
// src/Checkbox/CheckboxGroup.tsx
|
|
1107
1129
|
import { CheckboxGroup } from "react-aria-components";
|
|
1108
|
-
import { useClassNames as
|
|
1109
|
-
|
|
1130
|
+
import { cn as cn18, useClassNames as useClassNames16 } from "@marigold/system";
|
|
1131
|
+
|
|
1132
|
+
// src/Checkbox/Context.tsx
|
|
1133
|
+
import { createContext as createContext4, useContext as useContext5 } from "react";
|
|
1134
|
+
var CheckboxGroupContext = createContext4(
|
|
1135
|
+
null
|
|
1136
|
+
);
|
|
1137
|
+
|
|
1138
|
+
// src/Checkbox/CheckboxGroup.tsx
|
|
1139
|
+
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
1110
1140
|
var _CheckboxGroup = ({
|
|
1111
1141
|
children,
|
|
1112
1142
|
variant,
|
|
@@ -1115,13 +1145,15 @@ var _CheckboxGroup = ({
|
|
|
1115
1145
|
disabled,
|
|
1116
1146
|
readOnly,
|
|
1117
1147
|
error,
|
|
1148
|
+
width,
|
|
1149
|
+
orientation = "vertical",
|
|
1118
1150
|
...rest
|
|
1119
1151
|
}) => {
|
|
1120
|
-
const classNames2 =
|
|
1152
|
+
const classNames2 = useClassNames16({
|
|
1121
1153
|
component: "Checkbox",
|
|
1122
1154
|
variant,
|
|
1123
1155
|
size,
|
|
1124
|
-
className: { group: "
|
|
1156
|
+
className: { group: "gap-x-2" }
|
|
1125
1157
|
});
|
|
1126
1158
|
const props = {
|
|
1127
1159
|
className: classNames2.group,
|
|
@@ -1131,13 +1163,25 @@ var _CheckboxGroup = ({
|
|
|
1131
1163
|
isInvalid: error,
|
|
1132
1164
|
...rest
|
|
1133
1165
|
};
|
|
1134
|
-
return /* @__PURE__ */
|
|
1166
|
+
return /* @__PURE__ */ jsx29(FieldBase, { as: CheckboxGroup, width, ...props, children: /* @__PURE__ */ jsx29(
|
|
1167
|
+
"div",
|
|
1168
|
+
{
|
|
1169
|
+
role: "presentation",
|
|
1170
|
+
"data-orientation": orientation,
|
|
1171
|
+
className: cn18(
|
|
1172
|
+
classNames2.group,
|
|
1173
|
+
"flex items-start",
|
|
1174
|
+
orientation === "vertical" ? "flex-col gap-[0.5ch]" : "flex-row gap-[1.5ch]"
|
|
1175
|
+
),
|
|
1176
|
+
children: /* @__PURE__ */ jsx29(CheckboxGroupContext.Provider, { value: { width, variant, size }, children })
|
|
1177
|
+
}
|
|
1178
|
+
) });
|
|
1135
1179
|
};
|
|
1136
1180
|
|
|
1137
1181
|
// src/Columns/Columns.tsx
|
|
1138
1182
|
import { Children as Children3 } from "react";
|
|
1139
|
-
import { cn as
|
|
1140
|
-
import { jsx as
|
|
1183
|
+
import { cn as cn19, createVar as createVar7, gapSpace as gapSpace4 } from "@marigold/system";
|
|
1184
|
+
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
1141
1185
|
var Columns = ({
|
|
1142
1186
|
space = 0,
|
|
1143
1187
|
columns,
|
|
@@ -1153,22 +1197,26 @@ var Columns = ({
|
|
|
1153
1197
|
)}`
|
|
1154
1198
|
);
|
|
1155
1199
|
}
|
|
1156
|
-
return /* @__PURE__ */
|
|
1200
|
+
return /* @__PURE__ */ jsx30(
|
|
1157
1201
|
"div",
|
|
1158
1202
|
{
|
|
1159
|
-
className:
|
|
1203
|
+
className: cn19(
|
|
1160
1204
|
"flex flex-wrap items-stretch",
|
|
1161
1205
|
stretch && "h-full",
|
|
1162
1206
|
gapSpace4[space]
|
|
1163
1207
|
),
|
|
1164
1208
|
...props,
|
|
1165
|
-
children: Children3.map(children, (child, idx) => /* @__PURE__ */
|
|
1209
|
+
children: Children3.map(children, (child, idx) => /* @__PURE__ */ jsx30(
|
|
1166
1210
|
"div",
|
|
1167
1211
|
{
|
|
1168
|
-
className:
|
|
1169
|
-
|
|
1212
|
+
className: cn19(
|
|
1213
|
+
columns[idx] === "fit" ? "flex h-fit w-fit" : "flex-[--columnSize]",
|
|
1214
|
+
"basis-[calc((var(--collapseAt)_-_100%)_*_999)]"
|
|
1170
1215
|
),
|
|
1171
|
-
style:
|
|
1216
|
+
style: createVar7({
|
|
1217
|
+
collapseAt,
|
|
1218
|
+
columnSize: columns[idx]
|
|
1219
|
+
}),
|
|
1172
1220
|
children: child
|
|
1173
1221
|
}
|
|
1174
1222
|
))
|
|
@@ -1178,13 +1226,13 @@ var Columns = ({
|
|
|
1178
1226
|
|
|
1179
1227
|
// src/Container/Container.tsx
|
|
1180
1228
|
import {
|
|
1181
|
-
cn as
|
|
1182
|
-
createVar as
|
|
1229
|
+
cn as cn20,
|
|
1230
|
+
createVar as createVar8,
|
|
1183
1231
|
gridColsAlign,
|
|
1184
1232
|
gridColumn,
|
|
1185
1233
|
placeItems
|
|
1186
1234
|
} from "@marigold/system";
|
|
1187
|
-
import { jsx as
|
|
1235
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
1188
1236
|
var content = {
|
|
1189
1237
|
small: "20ch",
|
|
1190
1238
|
medium: "45ch",
|
|
@@ -1204,38 +1252,38 @@ var Container = ({
|
|
|
1204
1252
|
...props
|
|
1205
1253
|
}) => {
|
|
1206
1254
|
const maxWidth = contentType === "content" ? content[size] : header[size];
|
|
1207
|
-
return /* @__PURE__ */
|
|
1255
|
+
return /* @__PURE__ */ jsx31(
|
|
1208
1256
|
"div",
|
|
1209
1257
|
{
|
|
1210
1258
|
...props,
|
|
1211
|
-
className:
|
|
1259
|
+
className: cn20(
|
|
1212
1260
|
"grid",
|
|
1213
1261
|
placeItems[alignItems],
|
|
1214
1262
|
gridColsAlign[align],
|
|
1215
1263
|
gridColumn[align]
|
|
1216
1264
|
),
|
|
1217
|
-
style:
|
|
1265
|
+
style: createVar8({ maxWidth }),
|
|
1218
1266
|
children
|
|
1219
1267
|
}
|
|
1220
1268
|
);
|
|
1221
1269
|
};
|
|
1222
1270
|
|
|
1223
1271
|
// src/Dialog/Dialog.tsx
|
|
1224
|
-
import { useContext as
|
|
1272
|
+
import { useContext as useContext6 } from "react";
|
|
1225
1273
|
import { Dialog, OverlayTriggerStateContext } from "react-aria-components";
|
|
1226
|
-
import { cn as
|
|
1274
|
+
import { cn as cn22, useClassNames as useClassNames18 } from "@marigold/system";
|
|
1227
1275
|
|
|
1228
1276
|
// src/Headline/Headline.tsx
|
|
1229
1277
|
import { Heading } from "react-aria-components";
|
|
1230
1278
|
import {
|
|
1231
|
-
cn as
|
|
1232
|
-
createVar as
|
|
1279
|
+
cn as cn21,
|
|
1280
|
+
createVar as createVar9,
|
|
1233
1281
|
getColor,
|
|
1234
1282
|
textAlign,
|
|
1235
|
-
useClassNames as
|
|
1283
|
+
useClassNames as useClassNames17,
|
|
1236
1284
|
useTheme as useTheme2
|
|
1237
1285
|
} from "@marigold/system";
|
|
1238
|
-
import { jsx as
|
|
1286
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
1239
1287
|
var _Headline = ({
|
|
1240
1288
|
variant,
|
|
1241
1289
|
size,
|
|
@@ -1246,18 +1294,18 @@ var _Headline = ({
|
|
|
1246
1294
|
...props
|
|
1247
1295
|
}) => {
|
|
1248
1296
|
const theme = useTheme2();
|
|
1249
|
-
const classNames2 =
|
|
1297
|
+
const classNames2 = useClassNames17({
|
|
1250
1298
|
component: "Headline",
|
|
1251
1299
|
variant,
|
|
1252
1300
|
size: size != null ? size : `level-${level}`
|
|
1253
1301
|
});
|
|
1254
|
-
return /* @__PURE__ */
|
|
1302
|
+
return /* @__PURE__ */ jsx32(
|
|
1255
1303
|
Heading,
|
|
1256
1304
|
{
|
|
1257
1305
|
level: Number(level),
|
|
1258
1306
|
...props,
|
|
1259
|
-
className:
|
|
1260
|
-
style:
|
|
1307
|
+
className: cn21(classNames2, "text-[--color]", textAlign[align]),
|
|
1308
|
+
style: createVar9({
|
|
1261
1309
|
color: color && getColor(
|
|
1262
1310
|
theme,
|
|
1263
1311
|
color,
|
|
@@ -1277,7 +1325,7 @@ import { DialogTrigger } from "react-aria-components";
|
|
|
1277
1325
|
// src/Overlay/Modal.tsx
|
|
1278
1326
|
import { forwardRef as forwardRef12 } from "react";
|
|
1279
1327
|
import { Modal } from "react-aria-components";
|
|
1280
|
-
import { jsx as
|
|
1328
|
+
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
1281
1329
|
var _Modal = forwardRef12(({ open, dismissable, keyboardDismissable, ...rest }, ref) => {
|
|
1282
1330
|
const props = {
|
|
1283
1331
|
isOpen: open,
|
|
@@ -1285,20 +1333,20 @@ var _Modal = forwardRef12(({ open, dismissable, keyboardDismissable, ...rest },
|
|
|
1285
1333
|
isKeyboardDismissDisabled: keyboardDismissable,
|
|
1286
1334
|
...rest
|
|
1287
1335
|
};
|
|
1288
|
-
return /* @__PURE__ */
|
|
1336
|
+
return /* @__PURE__ */ jsx33(
|
|
1289
1337
|
Underlay,
|
|
1290
1338
|
{
|
|
1291
1339
|
dismissable,
|
|
1292
1340
|
keyboardDismissable,
|
|
1293
1341
|
open,
|
|
1294
1342
|
variant: "modal",
|
|
1295
|
-
children: /* @__PURE__ */
|
|
1343
|
+
children: /* @__PURE__ */ jsx33(Modal, { ref, ...props, children: props.children })
|
|
1296
1344
|
}
|
|
1297
1345
|
);
|
|
1298
1346
|
});
|
|
1299
1347
|
|
|
1300
1348
|
// src/Dialog/DialogTrigger.tsx
|
|
1301
|
-
import { jsx as
|
|
1349
|
+
import { jsx as jsx34, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1302
1350
|
var _DialogTrigger = ({
|
|
1303
1351
|
open,
|
|
1304
1352
|
dismissable,
|
|
@@ -1315,10 +1363,10 @@ var _DialogTrigger = ({
|
|
|
1315
1363
|
const hasDialogTrigger = dialogTrigger.type !== _Dialog;
|
|
1316
1364
|
const currentDialog = children.length < 2 ? !hasDialogTrigger && dialogTrigger : dialog;
|
|
1317
1365
|
if (isNonModal)
|
|
1318
|
-
return /* @__PURE__ */
|
|
1319
|
-
return /* @__PURE__ */
|
|
1366
|
+
return /* @__PURE__ */ jsx34(DialogTrigger, { ...props, children: props.children });
|
|
1367
|
+
return /* @__PURE__ */ jsxs12(DialogTrigger, { ...props, children: [
|
|
1320
1368
|
hasDialogTrigger && dialogTrigger,
|
|
1321
|
-
/* @__PURE__ */
|
|
1369
|
+
/* @__PURE__ */ jsx34(
|
|
1322
1370
|
_Modal,
|
|
1323
1371
|
{
|
|
1324
1372
|
dismissable,
|
|
@@ -1330,18 +1378,18 @@ var _DialogTrigger = ({
|
|
|
1330
1378
|
};
|
|
1331
1379
|
|
|
1332
1380
|
// src/Dialog/Dialog.tsx
|
|
1333
|
-
import { Fragment as Fragment3, jsx as
|
|
1381
|
+
import { Fragment as Fragment3, jsx as jsx35, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1334
1382
|
var CloseButton = ({ className }) => {
|
|
1335
|
-
const { close } =
|
|
1336
|
-
return /* @__PURE__ */
|
|
1383
|
+
const { close } = useContext6(OverlayTriggerStateContext);
|
|
1384
|
+
return /* @__PURE__ */ jsx35("div", { className: "flex justify-end", children: /* @__PURE__ */ jsx35(
|
|
1337
1385
|
"button",
|
|
1338
1386
|
{
|
|
1339
|
-
className:
|
|
1387
|
+
className: cn22(
|
|
1340
1388
|
"h-4 w-4 cursor-pointer border-none p-0 leading-normal outline-0",
|
|
1341
1389
|
className
|
|
1342
1390
|
),
|
|
1343
1391
|
onClick: close,
|
|
1344
|
-
children: /* @__PURE__ */
|
|
1392
|
+
children: /* @__PURE__ */ jsx35("svg", { viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx35(
|
|
1345
1393
|
"path",
|
|
1346
1394
|
{
|
|
1347
1395
|
fillRule: "evenodd",
|
|
@@ -1352,7 +1400,7 @@ var CloseButton = ({ className }) => {
|
|
|
1352
1400
|
}
|
|
1353
1401
|
) });
|
|
1354
1402
|
};
|
|
1355
|
-
var DialogHeadline = ({ children }) => /* @__PURE__ */
|
|
1403
|
+
var DialogHeadline = ({ children }) => /* @__PURE__ */ jsx35(_Headline, { slot: "title", children });
|
|
1356
1404
|
var _Dialog = ({
|
|
1357
1405
|
variant,
|
|
1358
1406
|
size,
|
|
@@ -1360,8 +1408,8 @@ var _Dialog = ({
|
|
|
1360
1408
|
isNonModal,
|
|
1361
1409
|
...props
|
|
1362
1410
|
}) => {
|
|
1363
|
-
const classNames2 =
|
|
1364
|
-
let state =
|
|
1411
|
+
const classNames2 = useClassNames18({ component: "Dialog", variant, size });
|
|
1412
|
+
let state = useContext6(OverlayTriggerStateContext);
|
|
1365
1413
|
let children = props.children;
|
|
1366
1414
|
if (typeof children === "function") {
|
|
1367
1415
|
children = children({
|
|
@@ -1369,13 +1417,13 @@ var _Dialog = ({
|
|
|
1369
1417
|
})
|
|
1370
1418
|
});
|
|
1371
1419
|
}
|
|
1372
|
-
return /* @__PURE__ */
|
|
1420
|
+
return /* @__PURE__ */ jsx35(
|
|
1373
1421
|
Dialog,
|
|
1374
1422
|
{
|
|
1375
1423
|
...props,
|
|
1376
|
-
className:
|
|
1377
|
-
children: /* @__PURE__ */
|
|
1378
|
-
closeButton && /* @__PURE__ */
|
|
1424
|
+
className: cn22("relative outline-none", classNames2.container),
|
|
1425
|
+
children: /* @__PURE__ */ jsxs13(Fragment3, { children: [
|
|
1426
|
+
closeButton && /* @__PURE__ */ jsx35(CloseButton, { className: classNames2.closeButton }),
|
|
1379
1427
|
children
|
|
1380
1428
|
] })
|
|
1381
1429
|
}
|
|
@@ -1386,19 +1434,19 @@ _Dialog.Headline = DialogHeadline;
|
|
|
1386
1434
|
|
|
1387
1435
|
// src/Divider/Divider.tsx
|
|
1388
1436
|
import { Separator } from "react-aria-components";
|
|
1389
|
-
import { useClassNames as
|
|
1390
|
-
import { jsx as
|
|
1437
|
+
import { useClassNames as useClassNames19 } from "@marigold/system";
|
|
1438
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
1391
1439
|
var _Divider = ({ variant, ...props }) => {
|
|
1392
|
-
const classNames2 =
|
|
1393
|
-
return /* @__PURE__ */
|
|
1440
|
+
const classNames2 = useClassNames19({ component: "Divider", variant });
|
|
1441
|
+
return /* @__PURE__ */ jsx36(Separator, { className: classNames2, ...props });
|
|
1394
1442
|
};
|
|
1395
1443
|
|
|
1396
1444
|
// src/Footer/Footer.tsx
|
|
1397
|
-
import { useClassNames as
|
|
1398
|
-
import { jsx as
|
|
1445
|
+
import { useClassNames as useClassNames20 } from "@marigold/system";
|
|
1446
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
1399
1447
|
var Footer = ({ children, variant, size, ...props }) => {
|
|
1400
|
-
const classNames2 =
|
|
1401
|
-
return /* @__PURE__ */
|
|
1448
|
+
const classNames2 = useClassNames20({ component: "Footer", variant, size });
|
|
1449
|
+
return /* @__PURE__ */ jsx37("footer", { ...props, className: classNames2, children });
|
|
1402
1450
|
};
|
|
1403
1451
|
|
|
1404
1452
|
// src/Form/Form.tsx
|
|
@@ -1406,25 +1454,25 @@ import { Form } from "react-aria-components";
|
|
|
1406
1454
|
|
|
1407
1455
|
// src/Header/Header.tsx
|
|
1408
1456
|
import { Header } from "react-aria-components";
|
|
1409
|
-
import { useClassNames as
|
|
1410
|
-
import { jsx as
|
|
1457
|
+
import { useClassNames as useClassNames21 } from "@marigold/system";
|
|
1458
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
1411
1459
|
var _Header = ({ variant, size, ...props }) => {
|
|
1412
|
-
const classNames2 =
|
|
1460
|
+
const classNames2 = useClassNames21({
|
|
1413
1461
|
component: "Header",
|
|
1414
1462
|
variant,
|
|
1415
1463
|
size
|
|
1416
1464
|
});
|
|
1417
|
-
return /* @__PURE__ */
|
|
1465
|
+
return /* @__PURE__ */ jsx38(Header, { className: classNames2, ...props, children: props.children });
|
|
1418
1466
|
};
|
|
1419
1467
|
|
|
1420
1468
|
// src/Image/Image.tsx
|
|
1421
1469
|
import {
|
|
1422
|
-
cn as
|
|
1470
|
+
cn as cn23,
|
|
1423
1471
|
objectFit,
|
|
1424
1472
|
objectPosition,
|
|
1425
|
-
useClassNames as
|
|
1473
|
+
useClassNames as useClassNames22
|
|
1426
1474
|
} from "@marigold/system";
|
|
1427
|
-
import { jsx as
|
|
1475
|
+
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
1428
1476
|
var Image = ({
|
|
1429
1477
|
variant,
|
|
1430
1478
|
size,
|
|
@@ -1432,13 +1480,13 @@ var Image = ({
|
|
|
1432
1480
|
position = "none",
|
|
1433
1481
|
...props
|
|
1434
1482
|
}) => {
|
|
1435
|
-
const classNames2 =
|
|
1436
|
-
return /* @__PURE__ */
|
|
1483
|
+
const classNames2 = useClassNames22({ component: "Image", variant, size });
|
|
1484
|
+
return /* @__PURE__ */ jsx39(
|
|
1437
1485
|
"img",
|
|
1438
1486
|
{
|
|
1439
1487
|
...props,
|
|
1440
1488
|
alt: props.alt,
|
|
1441
|
-
className:
|
|
1489
|
+
className: cn23(
|
|
1442
1490
|
fit !== "none" && "h-full w-full",
|
|
1443
1491
|
classNames2,
|
|
1444
1492
|
objectFit[fit],
|
|
@@ -1451,10 +1499,10 @@ var Image = ({
|
|
|
1451
1499
|
// src/Inline/Inline.tsx
|
|
1452
1500
|
import {
|
|
1453
1501
|
alignment as alignment2,
|
|
1454
|
-
cn as
|
|
1502
|
+
cn as cn24,
|
|
1455
1503
|
gapSpace as gapSpace5
|
|
1456
1504
|
} from "@marigold/system";
|
|
1457
|
-
import { jsx as
|
|
1505
|
+
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
1458
1506
|
var Inline = ({
|
|
1459
1507
|
space = 0,
|
|
1460
1508
|
orientation,
|
|
@@ -1464,11 +1512,11 @@ var Inline = ({
|
|
|
1464
1512
|
...props
|
|
1465
1513
|
}) => {
|
|
1466
1514
|
var _a2, _b2, _c, _d;
|
|
1467
|
-
return /* @__PURE__ */
|
|
1515
|
+
return /* @__PURE__ */ jsx40(
|
|
1468
1516
|
"div",
|
|
1469
1517
|
{
|
|
1470
1518
|
...props,
|
|
1471
|
-
className:
|
|
1519
|
+
className: cn24(
|
|
1472
1520
|
"flex flex-wrap",
|
|
1473
1521
|
gapSpace5[space],
|
|
1474
1522
|
alignX && ((_b2 = (_a2 = alignment2) == null ? void 0 : _a2.horizontal) == null ? void 0 : _b2.alignmentX[alignX]),
|
|
@@ -1485,14 +1533,14 @@ import { DateField } from "react-aria-components";
|
|
|
1485
1533
|
|
|
1486
1534
|
// src/DateField/DateInput.tsx
|
|
1487
1535
|
import { DateInput, Group } from "react-aria-components";
|
|
1488
|
-
import { useClassNames as
|
|
1536
|
+
import { useClassNames as useClassNames23 } from "@marigold/system";
|
|
1489
1537
|
|
|
1490
1538
|
// src/DateField/DateSegment.tsx
|
|
1491
1539
|
import { DateSegment } from "react-aria-components";
|
|
1492
|
-
import { cn as
|
|
1493
|
-
import { Fragment as Fragment4, jsx as
|
|
1540
|
+
import { cn as cn25 } from "@marigold/system";
|
|
1541
|
+
import { Fragment as Fragment4, jsx as jsx41, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
1494
1542
|
var _DateSegment = ({ segment, ...props }) => {
|
|
1495
|
-
return /* @__PURE__ */
|
|
1543
|
+
return /* @__PURE__ */ jsx41(
|
|
1496
1544
|
DateSegment,
|
|
1497
1545
|
{
|
|
1498
1546
|
...props,
|
|
@@ -1500,31 +1548,31 @@ var _DateSegment = ({ segment, ...props }) => {
|
|
|
1500
1548
|
style: {
|
|
1501
1549
|
minWidth: segment.maxValue != null ? `${String(segment.maxValue).length}ch` : void 0
|
|
1502
1550
|
},
|
|
1503
|
-
children: ({ text, placeholder, isPlaceholder }) => /* @__PURE__ */
|
|
1504
|
-
/* @__PURE__ */
|
|
1551
|
+
children: ({ text, placeholder, isPlaceholder }) => /* @__PURE__ */ jsxs14(Fragment4, { children: [
|
|
1552
|
+
/* @__PURE__ */ jsx41(
|
|
1505
1553
|
"span",
|
|
1506
1554
|
{
|
|
1507
1555
|
"aria-hidden": "true",
|
|
1508
|
-
className:
|
|
1556
|
+
className: cn25(
|
|
1509
1557
|
isPlaceholder ? "visible block" : "invisible hidden",
|
|
1510
1558
|
"pointer-events-none w-full text-center"
|
|
1511
1559
|
),
|
|
1512
1560
|
children: isPlaceholder && (placeholder == null ? void 0 : placeholder.toUpperCase())
|
|
1513
1561
|
}
|
|
1514
1562
|
),
|
|
1515
|
-
/* @__PURE__ */
|
|
1563
|
+
/* @__PURE__ */ jsx41("span", { children: isPlaceholder ? "" : segment.type === "month" || segment.type === "day" ? segment.text.padStart(2, "0") : text })
|
|
1516
1564
|
] })
|
|
1517
1565
|
}
|
|
1518
1566
|
);
|
|
1519
1567
|
};
|
|
1520
1568
|
|
|
1521
1569
|
// src/DateField/DateInput.tsx
|
|
1522
|
-
import { jsx as
|
|
1570
|
+
import { jsx as jsx42, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
1523
1571
|
var _DateInput = ({ variant, size, action, ...props }) => {
|
|
1524
|
-
const classNames2 =
|
|
1525
|
-
return /* @__PURE__ */
|
|
1526
|
-
/* @__PURE__ */
|
|
1527
|
-
action ? action : /* @__PURE__ */
|
|
1572
|
+
const classNames2 = useClassNames23({ component: "DateField", variant, size });
|
|
1573
|
+
return /* @__PURE__ */ jsxs15(Group, { className: classNames2.field, children: [
|
|
1574
|
+
/* @__PURE__ */ jsx42(DateInput, { className: "flex flex-1 items-center", ...props, children: (segment) => /* @__PURE__ */ jsx42(_DateSegment, { className: classNames2.segment, segment }) }),
|
|
1575
|
+
action ? action : /* @__PURE__ */ jsx42("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx42(
|
|
1528
1576
|
"svg",
|
|
1529
1577
|
{
|
|
1530
1578
|
"data-testid": "action",
|
|
@@ -1532,14 +1580,14 @@ var _DateInput = ({ variant, size, action, ...props }) => {
|
|
|
1532
1580
|
viewBox: "0 0 24 24",
|
|
1533
1581
|
width: 24,
|
|
1534
1582
|
height: 24,
|
|
1535
|
-
children: /* @__PURE__ */
|
|
1583
|
+
children: /* @__PURE__ */ jsx42("path", { d: "M20.0906 19.2V6.6C20.0906 5.61 19.2806 4.8 18.2906 4.8H17.3906V3H15.5906V4.8H8.39062V3H6.59062V4.8H5.69063C4.69163 4.8 3.89962 5.61 3.89962 6.6L3.89062 19.2C3.89062 20.19 4.69163 21 5.69063 21H18.2906C19.2806 21 20.0906 20.19 20.0906 19.2ZM9.29062 11.1001H7.49061V12.9001H9.29062V11.1001ZM5.69062 8.40009H18.2906V6.60008H5.69062V8.40009ZM18.2906 10.2V19.2H5.69062V10.2H18.2906ZM14.6906 12.9001H16.4906V11.1001H14.6906V12.9001ZM12.8906 12.9001H11.0906V11.1001H12.8906V12.9001Z" })
|
|
1536
1584
|
}
|
|
1537
1585
|
) })
|
|
1538
1586
|
] });
|
|
1539
1587
|
};
|
|
1540
1588
|
|
|
1541
1589
|
// src/DateField/DateField.tsx
|
|
1542
|
-
import { jsx as
|
|
1590
|
+
import { jsx as jsx43 } from "react/jsx-runtime";
|
|
1543
1591
|
var _DateField = forwardRef13(
|
|
1544
1592
|
({
|
|
1545
1593
|
variant,
|
|
@@ -1558,7 +1606,7 @@ var _DateField = forwardRef13(
|
|
|
1558
1606
|
isRequired: required,
|
|
1559
1607
|
...rest
|
|
1560
1608
|
};
|
|
1561
|
-
return /* @__PURE__ */
|
|
1609
|
+
return /* @__PURE__ */ jsx43(
|
|
1562
1610
|
FieldBase,
|
|
1563
1611
|
{
|
|
1564
1612
|
as: DateField,
|
|
@@ -1566,7 +1614,7 @@ var _DateField = forwardRef13(
|
|
|
1566
1614
|
size,
|
|
1567
1615
|
ref,
|
|
1568
1616
|
...props,
|
|
1569
|
-
children: /* @__PURE__ */
|
|
1617
|
+
children: /* @__PURE__ */ jsx43(_DateInput, { action })
|
|
1570
1618
|
}
|
|
1571
1619
|
);
|
|
1572
1620
|
}
|
|
@@ -1575,7 +1623,7 @@ var _DateField = forwardRef13(
|
|
|
1575
1623
|
// src/Calendar/Calendar.tsx
|
|
1576
1624
|
import { useState } from "react";
|
|
1577
1625
|
import { Calendar } from "react-aria-components";
|
|
1578
|
-
import { cn as
|
|
1626
|
+
import { cn as cn29, useClassNames as useClassNames28 } from "@marigold/system";
|
|
1579
1627
|
|
|
1580
1628
|
// src/Calendar/CalendarGrid.tsx
|
|
1581
1629
|
import {
|
|
@@ -1583,18 +1631,18 @@ import {
|
|
|
1583
1631
|
CalendarGrid,
|
|
1584
1632
|
CalendarGridBody
|
|
1585
1633
|
} from "react-aria-components";
|
|
1586
|
-
import { cn as
|
|
1634
|
+
import { cn as cn26, useClassNames as useClassNames25 } from "@marigold/system";
|
|
1587
1635
|
|
|
1588
1636
|
// src/Calendar/CalendarGridHeader.tsx
|
|
1589
1637
|
import { startOfWeek, today } from "@internationalized/date";
|
|
1590
|
-
import { useContext as
|
|
1638
|
+
import { useContext as useContext7, useMemo } from "react";
|
|
1591
1639
|
import { CalendarStateContext } from "react-aria-components";
|
|
1592
1640
|
import { useCalendarGrid } from "@react-aria/calendar";
|
|
1593
1641
|
import { useDateFormatter, useLocale } from "@react-aria/i18n";
|
|
1594
|
-
import { useClassNames as
|
|
1595
|
-
import { jsx as
|
|
1642
|
+
import { useClassNames as useClassNames24 } from "@marigold/system";
|
|
1643
|
+
import { jsx as jsx44 } from "react/jsx-runtime";
|
|
1596
1644
|
function CalendarGridHeader(props) {
|
|
1597
|
-
const state =
|
|
1645
|
+
const state = useContext7(CalendarStateContext);
|
|
1598
1646
|
const { headerProps } = useCalendarGrid(props, state);
|
|
1599
1647
|
const { locale } = useLocale();
|
|
1600
1648
|
const dayFormatter = useDateFormatter({
|
|
@@ -1609,21 +1657,21 @@ function CalendarGridHeader(props) {
|
|
|
1609
1657
|
return dayFormatter.format(dateDay);
|
|
1610
1658
|
});
|
|
1611
1659
|
}, [locale, state.timeZone, dayFormatter]);
|
|
1612
|
-
const classNames2 =
|
|
1613
|
-
return /* @__PURE__ */
|
|
1660
|
+
const classNames2 = useClassNames24({ component: "Calendar" });
|
|
1661
|
+
return /* @__PURE__ */ jsx44("thead", { ...headerProps, children: /* @__PURE__ */ jsx44("tr", { children: weekDays.map((day, index) => /* @__PURE__ */ jsx44("th", { className: classNames2.calendarHeader, children: day.substring(0, 2) }, index)) }) });
|
|
1614
1662
|
}
|
|
1615
1663
|
|
|
1616
1664
|
// src/Calendar/CalendarGrid.tsx
|
|
1617
|
-
import { jsx as
|
|
1665
|
+
import { jsx as jsx45, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
1618
1666
|
var _CalendarGrid = () => {
|
|
1619
|
-
const classNames2 =
|
|
1620
|
-
return /* @__PURE__ */
|
|
1621
|
-
/* @__PURE__ */
|
|
1622
|
-
/* @__PURE__ */
|
|
1667
|
+
const classNames2 = useClassNames25({ component: "Calendar" });
|
|
1668
|
+
return /* @__PURE__ */ jsxs16(CalendarGrid, { className: classNames2.calendarGrid, children: [
|
|
1669
|
+
/* @__PURE__ */ jsx45(CalendarGridHeader, {}),
|
|
1670
|
+
/* @__PURE__ */ jsx45(CalendarGridBody, { children: (date) => /* @__PURE__ */ jsx45(
|
|
1623
1671
|
CalendarCell,
|
|
1624
1672
|
{
|
|
1625
1673
|
date,
|
|
1626
|
-
className:
|
|
1674
|
+
className: cn26(
|
|
1627
1675
|
"flex h-[30px] w-[30px] cursor-pointer items-center justify-center rounded-full p-[5.3px] text-sm font-normal aria-disabled:cursor-default",
|
|
1628
1676
|
classNames2.calendarCell
|
|
1629
1677
|
)
|
|
@@ -1633,10 +1681,10 @@ var _CalendarGrid = () => {
|
|
|
1633
1681
|
};
|
|
1634
1682
|
|
|
1635
1683
|
// src/Calendar/CalendarListBox.tsx
|
|
1636
|
-
import { useContext as
|
|
1684
|
+
import { useContext as useContext8 } from "react";
|
|
1637
1685
|
import { CalendarStateContext as CalendarStateContext2 } from "react-aria-components";
|
|
1638
1686
|
import { ChevronDown as ChevronDown2 } from "@marigold/icons";
|
|
1639
|
-
import { cn as
|
|
1687
|
+
import { cn as cn27, useClassNames as useClassNames26 } from "@marigold/system";
|
|
1640
1688
|
|
|
1641
1689
|
// src/Calendar/useFormattedMonths.tsx
|
|
1642
1690
|
import { useDateFormatter as useDateFormatter2 } from "@react-aria/i18n";
|
|
@@ -1655,26 +1703,26 @@ function useFormattedMonths(timeZone, focusedDate) {
|
|
|
1655
1703
|
}
|
|
1656
1704
|
|
|
1657
1705
|
// src/Calendar/CalendarListBox.tsx
|
|
1658
|
-
import { jsx as
|
|
1706
|
+
import { jsx as jsx46, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
1659
1707
|
function CalendarListBox({
|
|
1660
1708
|
type,
|
|
1661
1709
|
isDisabled,
|
|
1662
1710
|
setSelectedDropdown
|
|
1663
1711
|
}) {
|
|
1664
|
-
const state =
|
|
1712
|
+
const state = useContext8(CalendarStateContext2);
|
|
1665
1713
|
const months = useFormattedMonths(state.timeZone, state.focusedDate);
|
|
1666
1714
|
const buttonStyles = "flex items-center justify-between gap-1 overflow-hidden";
|
|
1667
|
-
const { select: selectClassNames } =
|
|
1668
|
-
return /* @__PURE__ */
|
|
1715
|
+
const { select: selectClassNames } = useClassNames26({ component: "Select" });
|
|
1716
|
+
return /* @__PURE__ */ jsxs17(
|
|
1669
1717
|
"button",
|
|
1670
1718
|
{
|
|
1671
1719
|
disabled: isDisabled,
|
|
1672
1720
|
onClick: () => setSelectedDropdown(type),
|
|
1673
|
-
className:
|
|
1721
|
+
className: cn27(buttonStyles, selectClassNames),
|
|
1674
1722
|
"data-testid": type,
|
|
1675
1723
|
children: [
|
|
1676
1724
|
type === "month" ? months[state.focusedDate.month - 1].substring(0, 3) : state.focusedDate.year,
|
|
1677
|
-
/* @__PURE__ */
|
|
1725
|
+
/* @__PURE__ */ jsx46(ChevronDown2, {})
|
|
1678
1726
|
]
|
|
1679
1727
|
}
|
|
1680
1728
|
);
|
|
@@ -1683,39 +1731,39 @@ function CalendarListBox({
|
|
|
1683
1731
|
// src/Calendar/MonthControls.tsx
|
|
1684
1732
|
import { Button as Button3 } from "react-aria-components";
|
|
1685
1733
|
import { ChevronLeft, ChevronRight } from "@marigold/icons";
|
|
1686
|
-
import { cn as
|
|
1687
|
-
import { jsx as
|
|
1734
|
+
import { cn as cn28, useClassNames as useClassNames27 } from "@marigold/system";
|
|
1735
|
+
import { jsx as jsx47, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
1688
1736
|
function MonthControls() {
|
|
1689
|
-
const classNames2 =
|
|
1690
|
-
const buttonClassNames =
|
|
1691
|
-
return /* @__PURE__ */
|
|
1737
|
+
const classNames2 = useClassNames27({ component: "Calendar" });
|
|
1738
|
+
const buttonClassNames = useClassNames27({ component: "Button" });
|
|
1739
|
+
return /* @__PURE__ */ jsxs18(
|
|
1692
1740
|
"div",
|
|
1693
1741
|
{
|
|
1694
|
-
className:
|
|
1742
|
+
className: cn28(
|
|
1695
1743
|
"flex w-full flex-nowrap justify-end gap-[10px] [&_button:disabled]:cursor-not-allowed [&_button]:px-2 [&_button]:py-1",
|
|
1696
1744
|
classNames2.calendarControllers
|
|
1697
1745
|
),
|
|
1698
1746
|
children: [
|
|
1699
|
-
/* @__PURE__ */
|
|
1747
|
+
/* @__PURE__ */ jsx47(
|
|
1700
1748
|
Button3,
|
|
1701
1749
|
{
|
|
1702
|
-
className:
|
|
1750
|
+
className: cn28(
|
|
1703
1751
|
"inline-flex items-center justify-center gap-[0.5ch]",
|
|
1704
1752
|
buttonClassNames
|
|
1705
1753
|
),
|
|
1706
1754
|
slot: "previous",
|
|
1707
|
-
children: /* @__PURE__ */
|
|
1755
|
+
children: /* @__PURE__ */ jsx47(ChevronLeft, {})
|
|
1708
1756
|
}
|
|
1709
1757
|
),
|
|
1710
|
-
/* @__PURE__ */
|
|
1758
|
+
/* @__PURE__ */ jsx47(
|
|
1711
1759
|
Button3,
|
|
1712
1760
|
{
|
|
1713
|
-
className:
|
|
1761
|
+
className: cn28(
|
|
1714
1762
|
"inline-flex items-center justify-center gap-[0.5ch]",
|
|
1715
1763
|
buttonClassNames
|
|
1716
1764
|
),
|
|
1717
1765
|
slot: "next",
|
|
1718
|
-
children: /* @__PURE__ */
|
|
1766
|
+
children: /* @__PURE__ */ jsx47(ChevronRight, {})
|
|
1719
1767
|
}
|
|
1720
1768
|
)
|
|
1721
1769
|
]
|
|
@@ -1725,24 +1773,24 @@ function MonthControls() {
|
|
|
1725
1773
|
var MonthControls_default = MonthControls;
|
|
1726
1774
|
|
|
1727
1775
|
// src/Calendar/MonthListBox.tsx
|
|
1728
|
-
import { useContext as
|
|
1776
|
+
import { useContext as useContext9 } from "react";
|
|
1729
1777
|
import { CalendarStateContext as CalendarStateContext3 } from "react-aria-components";
|
|
1730
|
-
import { jsx as
|
|
1778
|
+
import { jsx as jsx48 } from "react/jsx-runtime";
|
|
1731
1779
|
var MonthListBox = ({ setSelectedDropdown }) => {
|
|
1732
|
-
const state =
|
|
1780
|
+
const state = useContext9(CalendarStateContext3);
|
|
1733
1781
|
const months = useFormattedMonths(state.timeZone, state.focusedDate);
|
|
1734
1782
|
let onChange = (index) => {
|
|
1735
1783
|
let value = Number(index) + 1;
|
|
1736
1784
|
let date = state.focusedDate.set({ month: value });
|
|
1737
1785
|
state.setFocusedDate(date);
|
|
1738
1786
|
};
|
|
1739
|
-
return /* @__PURE__ */
|
|
1787
|
+
return /* @__PURE__ */ jsx48(
|
|
1740
1788
|
"ul",
|
|
1741
1789
|
{
|
|
1742
1790
|
"data-testid": "monthOptions",
|
|
1743
1791
|
className: "grid h-full max-h-[300px] min-w-[300px] grid-cols-3 gap-y-10 overflow-y-scroll p-2",
|
|
1744
1792
|
children: months.map((month, index) => {
|
|
1745
|
-
return /* @__PURE__ */
|
|
1793
|
+
return /* @__PURE__ */ jsx48("li", { className: "flex justify-center", children: /* @__PURE__ */ jsx48(
|
|
1746
1794
|
_Button,
|
|
1747
1795
|
{
|
|
1748
1796
|
slot: "previous",
|
|
@@ -1764,15 +1812,15 @@ var MonthListBox_default = MonthListBox;
|
|
|
1764
1812
|
|
|
1765
1813
|
// src/Calendar/YearListBox.tsx
|
|
1766
1814
|
import {
|
|
1767
|
-
useContext as
|
|
1815
|
+
useContext as useContext10,
|
|
1768
1816
|
useEffect as useEffect2,
|
|
1769
1817
|
useRef as useRef3
|
|
1770
1818
|
} from "react";
|
|
1771
1819
|
import { CalendarStateContext as CalendarStateContext4 } from "react-aria-components";
|
|
1772
1820
|
import { useDateFormatter as useDateFormatter3 } from "@react-aria/i18n";
|
|
1773
|
-
import { jsx as
|
|
1821
|
+
import { jsx as jsx49 } from "react/jsx-runtime";
|
|
1774
1822
|
var YearListBox = ({ setSelectedDropdown }) => {
|
|
1775
|
-
const state =
|
|
1823
|
+
const state = useContext10(CalendarStateContext4);
|
|
1776
1824
|
const years = [];
|
|
1777
1825
|
let formatter = useDateFormatter3({
|
|
1778
1826
|
year: "numeric",
|
|
@@ -1800,19 +1848,19 @@ var YearListBox = ({ setSelectedDropdown }) => {
|
|
|
1800
1848
|
let date = years[index].value;
|
|
1801
1849
|
state.setFocusedDate(date);
|
|
1802
1850
|
};
|
|
1803
|
-
return /* @__PURE__ */
|
|
1851
|
+
return /* @__PURE__ */ jsx49(
|
|
1804
1852
|
"ul",
|
|
1805
1853
|
{
|
|
1806
1854
|
"data-testid": "yearOptions",
|
|
1807
1855
|
className: "grid h-full max-h-[300px] min-w-[300px] grid-cols-3 gap-y-10 overflow-y-scroll p-2",
|
|
1808
1856
|
children: years.map((year, index) => {
|
|
1809
1857
|
const isActive = +year.formatted === state.focusedDate.year;
|
|
1810
|
-
return /* @__PURE__ */
|
|
1858
|
+
return /* @__PURE__ */ jsx49("li", { className: "flex justify-center", children: /* @__PURE__ */ jsx49(
|
|
1811
1859
|
"div",
|
|
1812
1860
|
{
|
|
1813
1861
|
ref: isActive ? activeButtonRef : null,
|
|
1814
1862
|
style: { height: "100%", width: "100%" },
|
|
1815
|
-
children: /* @__PURE__ */
|
|
1863
|
+
children: /* @__PURE__ */ jsx49(
|
|
1816
1864
|
_Button,
|
|
1817
1865
|
{
|
|
1818
1866
|
slot: "previous",
|
|
@@ -1837,7 +1885,7 @@ var YearListBox = ({ setSelectedDropdown }) => {
|
|
|
1837
1885
|
var YearListBox_default = YearListBox;
|
|
1838
1886
|
|
|
1839
1887
|
// src/Calendar/Calendar.tsx
|
|
1840
|
-
import { Fragment as Fragment5, jsx as
|
|
1888
|
+
import { Fragment as Fragment5, jsx as jsx50, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
1841
1889
|
var _Calendar = ({
|
|
1842
1890
|
disabled,
|
|
1843
1891
|
readOnly,
|
|
@@ -1850,24 +1898,24 @@ var _Calendar = ({
|
|
|
1850
1898
|
isReadOnly: readOnly,
|
|
1851
1899
|
...rest
|
|
1852
1900
|
};
|
|
1853
|
-
const classNames2 =
|
|
1901
|
+
const classNames2 = useClassNames28({ component: "Calendar" });
|
|
1854
1902
|
const [selectedDropdown, setSelectedDropdown] = useState();
|
|
1855
1903
|
const ViewMap = {
|
|
1856
|
-
month: /* @__PURE__ */
|
|
1857
|
-
year: /* @__PURE__ */
|
|
1904
|
+
month: /* @__PURE__ */ jsx50(MonthListBox_default, { setSelectedDropdown }),
|
|
1905
|
+
year: /* @__PURE__ */ jsx50(YearListBox_default, { setSelectedDropdown })
|
|
1858
1906
|
};
|
|
1859
|
-
return /* @__PURE__ */
|
|
1907
|
+
return /* @__PURE__ */ jsx50(
|
|
1860
1908
|
Calendar,
|
|
1861
1909
|
{
|
|
1862
|
-
className:
|
|
1910
|
+
className: cn29(
|
|
1863
1911
|
"flex min-h-[350px] w-[360px] flex-col rounded-sm p-4",
|
|
1864
1912
|
classNames2.calendar
|
|
1865
1913
|
),
|
|
1866
1914
|
...props,
|
|
1867
|
-
children: selectedDropdown ? ViewMap[selectedDropdown] : /* @__PURE__ */
|
|
1868
|
-
/* @__PURE__ */
|
|
1869
|
-
/* @__PURE__ */
|
|
1870
|
-
/* @__PURE__ */
|
|
1915
|
+
children: selectedDropdown ? ViewMap[selectedDropdown] : /* @__PURE__ */ jsxs19(Fragment5, { children: [
|
|
1916
|
+
/* @__PURE__ */ jsxs19("div", { className: "mb-4 flex items-center justify-between", children: [
|
|
1917
|
+
/* @__PURE__ */ jsxs19("div", { className: "flex w-full gap-4", children: [
|
|
1918
|
+
/* @__PURE__ */ jsx50(
|
|
1871
1919
|
CalendarListBox,
|
|
1872
1920
|
{
|
|
1873
1921
|
type: "month",
|
|
@@ -1875,7 +1923,7 @@ var _Calendar = ({
|
|
|
1875
1923
|
setSelectedDropdown
|
|
1876
1924
|
}
|
|
1877
1925
|
),
|
|
1878
|
-
/* @__PURE__ */
|
|
1926
|
+
/* @__PURE__ */ jsx50(
|
|
1879
1927
|
CalendarListBox,
|
|
1880
1928
|
{
|
|
1881
1929
|
type: "year",
|
|
@@ -1884,9 +1932,9 @@ var _Calendar = ({
|
|
|
1884
1932
|
}
|
|
1885
1933
|
)
|
|
1886
1934
|
] }),
|
|
1887
|
-
/* @__PURE__ */
|
|
1935
|
+
/* @__PURE__ */ jsx50(MonthControls_default, {})
|
|
1888
1936
|
] }),
|
|
1889
|
-
/* @__PURE__ */
|
|
1937
|
+
/* @__PURE__ */ jsx50(_CalendarGrid, {})
|
|
1890
1938
|
] })
|
|
1891
1939
|
}
|
|
1892
1940
|
);
|
|
@@ -1894,8 +1942,8 @@ var _Calendar = ({
|
|
|
1894
1942
|
|
|
1895
1943
|
// src/DatePicker/DatePicker.tsx
|
|
1896
1944
|
import { DatePicker } from "react-aria-components";
|
|
1897
|
-
import { useClassNames as
|
|
1898
|
-
import { jsx as
|
|
1945
|
+
import { useClassNames as useClassNames29 } from "@marigold/system";
|
|
1946
|
+
import { jsx as jsx51, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
1899
1947
|
var _DatePicker = ({
|
|
1900
1948
|
disabled,
|
|
1901
1949
|
required,
|
|
@@ -1914,22 +1962,22 @@ var _DatePicker = ({
|
|
|
1914
1962
|
isOpen: open,
|
|
1915
1963
|
...rest
|
|
1916
1964
|
};
|
|
1917
|
-
const classNames2 =
|
|
1965
|
+
const classNames2 = useClassNames29({
|
|
1918
1966
|
component: "DatePicker",
|
|
1919
1967
|
size,
|
|
1920
1968
|
variant
|
|
1921
1969
|
});
|
|
1922
|
-
return /* @__PURE__ */
|
|
1923
|
-
/* @__PURE__ */
|
|
1970
|
+
return /* @__PURE__ */ jsxs20(FieldBase, { as: DatePicker, variant, size, ...props, children: [
|
|
1971
|
+
/* @__PURE__ */ jsx51(
|
|
1924
1972
|
_DateInput,
|
|
1925
1973
|
{
|
|
1926
|
-
action: /* @__PURE__ */
|
|
1974
|
+
action: /* @__PURE__ */ jsx51("div", { className: classNames2.container, children: /* @__PURE__ */ jsx51(
|
|
1927
1975
|
_Button,
|
|
1928
1976
|
{
|
|
1929
1977
|
size: "small",
|
|
1930
1978
|
disabled,
|
|
1931
1979
|
className: classNames2.button,
|
|
1932
|
-
children: /* @__PURE__ */
|
|
1980
|
+
children: /* @__PURE__ */ jsx51(
|
|
1933
1981
|
"svg",
|
|
1934
1982
|
{
|
|
1935
1983
|
"data-testid": "action",
|
|
@@ -1937,29 +1985,29 @@ var _DatePicker = ({
|
|
|
1937
1985
|
width: 24,
|
|
1938
1986
|
height: 24,
|
|
1939
1987
|
fill: "currentColor",
|
|
1940
|
-
children: /* @__PURE__ */
|
|
1988
|
+
children: /* @__PURE__ */ jsx51("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" })
|
|
1941
1989
|
}
|
|
1942
1990
|
)
|
|
1943
1991
|
}
|
|
1944
1992
|
) })
|
|
1945
1993
|
}
|
|
1946
1994
|
),
|
|
1947
|
-
/* @__PURE__ */
|
|
1995
|
+
/* @__PURE__ */ jsx51(_Popover, { children: /* @__PURE__ */ jsx51(_Calendar, { disabled }) })
|
|
1948
1996
|
] });
|
|
1949
1997
|
};
|
|
1950
1998
|
|
|
1951
1999
|
// src/Inset/Inset.tsx
|
|
1952
2000
|
import {
|
|
1953
|
-
cn as
|
|
2001
|
+
cn as cn30,
|
|
1954
2002
|
paddingSpace as paddingSpace2,
|
|
1955
2003
|
paddingSpaceX as paddingSpaceX2,
|
|
1956
2004
|
paddingSpaceY as paddingSpaceY2
|
|
1957
2005
|
} from "@marigold/system";
|
|
1958
|
-
import { jsx as
|
|
1959
|
-
var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */
|
|
2006
|
+
import { jsx as jsx52 } from "react/jsx-runtime";
|
|
2007
|
+
var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ jsx52(
|
|
1960
2008
|
"div",
|
|
1961
2009
|
{
|
|
1962
|
-
className:
|
|
2010
|
+
className: cn30(
|
|
1963
2011
|
space && paddingSpace2[space],
|
|
1964
2012
|
!space && spaceX && paddingSpaceX2[spaceX],
|
|
1965
2013
|
!space && spaceY && paddingSpaceY2[spaceY]
|
|
@@ -1971,36 +2019,36 @@ var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ jsx51(
|
|
|
1971
2019
|
// src/Link/Link.tsx
|
|
1972
2020
|
import { forwardRef as forwardRef14 } from "react";
|
|
1973
2021
|
import { Link } from "react-aria-components";
|
|
1974
|
-
import { useClassNames as
|
|
1975
|
-
import { jsx as
|
|
2022
|
+
import { useClassNames as useClassNames30 } from "@marigold/system";
|
|
2023
|
+
import { jsx as jsx53 } from "react/jsx-runtime";
|
|
1976
2024
|
var _Link = forwardRef14(
|
|
1977
2025
|
({ variant, size, disabled, children, ...props }, ref) => {
|
|
1978
|
-
const classNames2 =
|
|
2026
|
+
const classNames2 = useClassNames30({
|
|
1979
2027
|
component: "Link",
|
|
1980
2028
|
variant,
|
|
1981
2029
|
size
|
|
1982
2030
|
});
|
|
1983
|
-
return /* @__PURE__ */
|
|
2031
|
+
return /* @__PURE__ */ jsx53(Link, { ...props, ref, className: classNames2, isDisabled: disabled, children });
|
|
1984
2032
|
}
|
|
1985
2033
|
);
|
|
1986
2034
|
|
|
1987
2035
|
// src/List/List.tsx
|
|
1988
|
-
import { useClassNames as
|
|
2036
|
+
import { useClassNames as useClassNames31 } from "@marigold/system";
|
|
1989
2037
|
|
|
1990
2038
|
// src/List/Context.ts
|
|
1991
|
-
import { createContext as
|
|
1992
|
-
var ListContext =
|
|
1993
|
-
var useListContext = () =>
|
|
2039
|
+
import { createContext as createContext5, useContext as useContext11 } from "react";
|
|
2040
|
+
var ListContext = createContext5({});
|
|
2041
|
+
var useListContext = () => useContext11(ListContext);
|
|
1994
2042
|
|
|
1995
2043
|
// src/List/ListItem.tsx
|
|
1996
|
-
import { jsx as
|
|
2044
|
+
import { jsx as jsx54 } from "react/jsx-runtime";
|
|
1997
2045
|
var ListItem = ({ children, ...props }) => {
|
|
1998
2046
|
const { classNames: classNames2 } = useListContext();
|
|
1999
|
-
return /* @__PURE__ */
|
|
2047
|
+
return /* @__PURE__ */ jsx54("li", { ...props, className: classNames2, children });
|
|
2000
2048
|
};
|
|
2001
2049
|
|
|
2002
2050
|
// src/List/List.tsx
|
|
2003
|
-
import { jsx as
|
|
2051
|
+
import { jsx as jsx55 } from "react/jsx-runtime";
|
|
2004
2052
|
var List = ({
|
|
2005
2053
|
as = "ul",
|
|
2006
2054
|
children,
|
|
@@ -2009,38 +2057,38 @@ var List = ({
|
|
|
2009
2057
|
...props
|
|
2010
2058
|
}) => {
|
|
2011
2059
|
const Component = as;
|
|
2012
|
-
const classNames2 =
|
|
2013
|
-
return /* @__PURE__ */
|
|
2060
|
+
const classNames2 = useClassNames31({ component: "List", variant, size });
|
|
2061
|
+
return /* @__PURE__ */ jsx55(Component, { ...props, className: classNames2[as], children: /* @__PURE__ */ jsx55(ListContext.Provider, { value: { classNames: classNames2.item }, children }) });
|
|
2014
2062
|
};
|
|
2015
2063
|
List.Item = ListItem;
|
|
2016
2064
|
|
|
2017
2065
|
// src/Menu/Menu.tsx
|
|
2018
2066
|
import { Menu, MenuTrigger } from "react-aria-components";
|
|
2019
|
-
import { useClassNames as
|
|
2067
|
+
import { useClassNames as useClassNames34 } from "@marigold/system";
|
|
2020
2068
|
|
|
2021
2069
|
// src/Menu/MenuItem.tsx
|
|
2022
2070
|
import { MenuItem } from "react-aria-components";
|
|
2023
|
-
import { useClassNames as
|
|
2024
|
-
import { jsx as
|
|
2071
|
+
import { useClassNames as useClassNames32 } from "@marigold/system";
|
|
2072
|
+
import { jsx as jsx56 } from "react/jsx-runtime";
|
|
2025
2073
|
var _MenuItem = ({ children, ...props }) => {
|
|
2026
|
-
const classNames2 =
|
|
2027
|
-
return /* @__PURE__ */
|
|
2074
|
+
const classNames2 = useClassNames32({ component: "Menu" });
|
|
2075
|
+
return /* @__PURE__ */ jsx56(MenuItem, { ...props, className: classNames2.item, children });
|
|
2028
2076
|
};
|
|
2029
2077
|
|
|
2030
2078
|
// src/Menu/MenuSection.tsx
|
|
2031
2079
|
import { Section as Section2 } from "react-aria-components";
|
|
2032
|
-
import { useClassNames as
|
|
2033
|
-
import { jsx as
|
|
2080
|
+
import { useClassNames as useClassNames33 } from "@marigold/system";
|
|
2081
|
+
import { jsx as jsx57, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
2034
2082
|
var _MenuSection = ({ children, title, ...props }) => {
|
|
2035
|
-
const className =
|
|
2036
|
-
return /* @__PURE__ */
|
|
2037
|
-
/* @__PURE__ */
|
|
2083
|
+
const className = useClassNames33({ component: "Menu" });
|
|
2084
|
+
return /* @__PURE__ */ jsxs21(Section2, { ...props, children: [
|
|
2085
|
+
/* @__PURE__ */ jsx57(_Header, { className: className.section, children: title }),
|
|
2038
2086
|
children
|
|
2039
2087
|
] });
|
|
2040
2088
|
};
|
|
2041
2089
|
|
|
2042
2090
|
// src/Menu/Menu.tsx
|
|
2043
|
-
import { jsx as
|
|
2091
|
+
import { jsx as jsx58, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
2044
2092
|
var _Menu = ({
|
|
2045
2093
|
children,
|
|
2046
2094
|
label,
|
|
@@ -2050,10 +2098,10 @@ var _Menu = ({
|
|
|
2050
2098
|
open,
|
|
2051
2099
|
...props
|
|
2052
2100
|
}) => {
|
|
2053
|
-
const classNames2 =
|
|
2054
|
-
return /* @__PURE__ */
|
|
2055
|
-
/* @__PURE__ */
|
|
2056
|
-
/* @__PURE__ */
|
|
2101
|
+
const classNames2 = useClassNames34({ component: "Menu", variant, size });
|
|
2102
|
+
return /* @__PURE__ */ jsxs22(MenuTrigger, { ...props, children: [
|
|
2103
|
+
/* @__PURE__ */ jsx58(_Button, { variant: "menu", disabled, children: label }),
|
|
2104
|
+
/* @__PURE__ */ jsx58(_Popover, { open, children: /* @__PURE__ */ jsx58(Menu, { ...props, className: classNames2.container, children }) })
|
|
2057
2105
|
] });
|
|
2058
2106
|
};
|
|
2059
2107
|
_Menu.Item = _MenuItem;
|
|
@@ -2061,33 +2109,33 @@ _Menu.Section = _MenuSection;
|
|
|
2061
2109
|
|
|
2062
2110
|
// src/Menu/ActionMenu.tsx
|
|
2063
2111
|
import { Menu as Menu2, MenuTrigger as MenuTrigger2 } from "react-aria-components";
|
|
2064
|
-
import { SVG as SVG4, useClassNames as
|
|
2065
|
-
import { jsx as
|
|
2112
|
+
import { SVG as SVG4, useClassNames as useClassNames35 } from "@marigold/system";
|
|
2113
|
+
import { jsx as jsx59, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
2066
2114
|
var ActionMenu = ({
|
|
2067
2115
|
variant,
|
|
2068
2116
|
size,
|
|
2069
2117
|
disabled,
|
|
2070
2118
|
...props
|
|
2071
2119
|
}) => {
|
|
2072
|
-
const classNames2 =
|
|
2073
|
-
return /* @__PURE__ */
|
|
2074
|
-
/* @__PURE__ */
|
|
2075
|
-
/* @__PURE__ */
|
|
2120
|
+
const classNames2 = useClassNames35({ component: "Menu", variant, size });
|
|
2121
|
+
return /* @__PURE__ */ jsxs23(MenuTrigger2, { children: [
|
|
2122
|
+
/* @__PURE__ */ jsx59(_Button, { variant: "menu", size: "small", disabled, children: /* @__PURE__ */ jsx59(SVG4, { viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx59("path", { d: "M12.0117 7.47656C13.2557 7.47656 14.2734 6.45879 14.2734 5.21484C14.2734 3.9709 13.2557 2.95312 12.0117 2.95312C10.7678 2.95312 9.75 3.9709 9.75 5.21484C9.75 6.45879 10.7678 7.47656 12.0117 7.47656ZM12.0117 9.73828C10.7678 9.73828 9.75 10.7561 9.75 12C9.75 13.2439 10.7678 14.2617 12.0117 14.2617C13.2557 14.2617 14.2734 13.2439 14.2734 12C14.2734 10.7561 13.2557 9.73828 12.0117 9.73828ZM12.0117 16.5234C10.7678 16.5234 9.75 17.5412 9.75 18.7852C9.75 20.0291 10.7678 21.0469 12.0117 21.0469C13.2557 21.0469 14.2734 20.0291 14.2734 18.7852C14.2734 17.5412 13.2557 16.5234 12.0117 16.5234Z" }) }) }),
|
|
2123
|
+
/* @__PURE__ */ jsx59(_Popover, { children: /* @__PURE__ */ jsx59(Menu2, { ...props, className: classNames2.container, children: props.children }) })
|
|
2076
2124
|
] });
|
|
2077
2125
|
};
|
|
2078
2126
|
|
|
2079
2127
|
// src/Message/Message.tsx
|
|
2080
2128
|
import { forwardRef as forwardRef15 } from "react";
|
|
2081
|
-
import { cn as
|
|
2082
|
-
import { jsx as
|
|
2129
|
+
import { cn as cn31, useClassNames as useClassNames36 } from "@marigold/system";
|
|
2130
|
+
import { jsx as jsx60, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
2083
2131
|
var icons = {
|
|
2084
|
-
success: () => /* @__PURE__ */
|
|
2132
|
+
success: () => /* @__PURE__ */ jsx60(
|
|
2085
2133
|
"svg",
|
|
2086
2134
|
{
|
|
2087
2135
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2088
2136
|
viewBox: "0 0 24 24",
|
|
2089
2137
|
fill: "currentColor",
|
|
2090
|
-
children: /* @__PURE__ */
|
|
2138
|
+
children: /* @__PURE__ */ jsx60(
|
|
2091
2139
|
"path",
|
|
2092
2140
|
{
|
|
2093
2141
|
fillRule: "evenodd",
|
|
@@ -2097,13 +2145,13 @@ var icons = {
|
|
|
2097
2145
|
)
|
|
2098
2146
|
}
|
|
2099
2147
|
),
|
|
2100
|
-
info: () => /* @__PURE__ */
|
|
2148
|
+
info: () => /* @__PURE__ */ jsx60(
|
|
2101
2149
|
"svg",
|
|
2102
2150
|
{
|
|
2103
2151
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2104
2152
|
viewBox: "0 0 24 24",
|
|
2105
2153
|
fill: "currentColor",
|
|
2106
|
-
children: /* @__PURE__ */
|
|
2154
|
+
children: /* @__PURE__ */ jsx60(
|
|
2107
2155
|
"path",
|
|
2108
2156
|
{
|
|
2109
2157
|
fillRule: "evenodd",
|
|
@@ -2113,13 +2161,13 @@ var icons = {
|
|
|
2113
2161
|
)
|
|
2114
2162
|
}
|
|
2115
2163
|
),
|
|
2116
|
-
warning: () => /* @__PURE__ */
|
|
2164
|
+
warning: () => /* @__PURE__ */ jsx60(
|
|
2117
2165
|
"svg",
|
|
2118
2166
|
{
|
|
2119
2167
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2120
2168
|
viewBox: "0 0 24 24",
|
|
2121
2169
|
fill: "currentColor",
|
|
2122
|
-
children: /* @__PURE__ */
|
|
2170
|
+
children: /* @__PURE__ */ jsx60(
|
|
2123
2171
|
"path",
|
|
2124
2172
|
{
|
|
2125
2173
|
fillRule: "evenodd",
|
|
@@ -2129,13 +2177,13 @@ var icons = {
|
|
|
2129
2177
|
)
|
|
2130
2178
|
}
|
|
2131
2179
|
),
|
|
2132
|
-
error: () => /* @__PURE__ */
|
|
2180
|
+
error: () => /* @__PURE__ */ jsx60(
|
|
2133
2181
|
"svg",
|
|
2134
2182
|
{
|
|
2135
2183
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2136
2184
|
viewBox: "0 0 24 24",
|
|
2137
2185
|
fill: "currentColor",
|
|
2138
|
-
children: /* @__PURE__ */
|
|
2186
|
+
children: /* @__PURE__ */ jsx60(
|
|
2139
2187
|
"path",
|
|
2140
2188
|
{
|
|
2141
2189
|
fillRule: "evenodd",
|
|
@@ -2148,30 +2196,30 @@ var icons = {
|
|
|
2148
2196
|
};
|
|
2149
2197
|
var Message = forwardRef15(
|
|
2150
2198
|
({ messageTitle, variant = "info", size, children, ...props }, ref) => {
|
|
2151
|
-
const classNames2 =
|
|
2199
|
+
const classNames2 = useClassNames36({ component: "Message", variant, size });
|
|
2152
2200
|
const Icon4 = icons[variant];
|
|
2153
|
-
return /* @__PURE__ */
|
|
2201
|
+
return /* @__PURE__ */ jsxs24(
|
|
2154
2202
|
"div",
|
|
2155
2203
|
{
|
|
2156
|
-
className:
|
|
2204
|
+
className: cn31(
|
|
2157
2205
|
"grid auto-rows-min grid-cols-[min-content_auto] gap-1",
|
|
2158
2206
|
classNames2.container
|
|
2159
2207
|
),
|
|
2160
2208
|
ref,
|
|
2161
2209
|
...props,
|
|
2162
2210
|
children: [
|
|
2163
|
-
/* @__PURE__ */
|
|
2164
|
-
/* @__PURE__ */
|
|
2211
|
+
/* @__PURE__ */ jsx60("div", { className: cn31("col-span-1 h-5 w-5 self-center", classNames2.icon), children: /* @__PURE__ */ jsx60(Icon4, {}) }),
|
|
2212
|
+
/* @__PURE__ */ jsx60(
|
|
2165
2213
|
"div",
|
|
2166
2214
|
{
|
|
2167
|
-
className:
|
|
2215
|
+
className: cn31(
|
|
2168
2216
|
"col-start-2 row-start-1 self-center",
|
|
2169
2217
|
classNames2.title
|
|
2170
2218
|
),
|
|
2171
2219
|
children: messageTitle
|
|
2172
2220
|
}
|
|
2173
2221
|
),
|
|
2174
|
-
/* @__PURE__ */
|
|
2222
|
+
/* @__PURE__ */ jsx60("div", { className: cn31("col-start-2", classNames2.content), children })
|
|
2175
2223
|
]
|
|
2176
2224
|
}
|
|
2177
2225
|
);
|
|
@@ -2181,13 +2229,13 @@ var Message = forwardRef15(
|
|
|
2181
2229
|
// src/NumberField/NumberField.tsx
|
|
2182
2230
|
import { forwardRef as forwardRef16 } from "react";
|
|
2183
2231
|
import { Group as Group2, NumberField } from "react-aria-components";
|
|
2184
|
-
import { cn as
|
|
2232
|
+
import { cn as cn33, useClassNames as useClassNames37 } from "@marigold/system";
|
|
2185
2233
|
|
|
2186
2234
|
// src/NumberField/StepButton.tsx
|
|
2187
2235
|
import { Button as Button4 } from "react-aria-components";
|
|
2188
|
-
import { cn as
|
|
2189
|
-
import { jsx as
|
|
2190
|
-
var Plus = () => /* @__PURE__ */
|
|
2236
|
+
import { cn as cn32 } from "@marigold/system";
|
|
2237
|
+
import { jsx as jsx61 } from "react/jsx-runtime";
|
|
2238
|
+
var Plus = () => /* @__PURE__ */ jsx61("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx61(
|
|
2191
2239
|
"path",
|
|
2192
2240
|
{
|
|
2193
2241
|
fillRule: "evenodd",
|
|
@@ -2195,7 +2243,7 @@ var Plus = () => /* @__PURE__ */ jsx60("svg", { width: 16, height: 16, viewBox:
|
|
|
2195
2243
|
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"
|
|
2196
2244
|
}
|
|
2197
2245
|
) });
|
|
2198
|
-
var Minus = () => /* @__PURE__ */
|
|
2246
|
+
var Minus = () => /* @__PURE__ */ jsx61("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx61(
|
|
2199
2247
|
"path",
|
|
2200
2248
|
{
|
|
2201
2249
|
fillRule: "evenodd",
|
|
@@ -2205,10 +2253,10 @@ var Minus = () => /* @__PURE__ */ jsx60("svg", { width: 16, height: 16, viewBox:
|
|
|
2205
2253
|
) });
|
|
2206
2254
|
var _StepButton = ({ direction, className, ...props }) => {
|
|
2207
2255
|
const Icon4 = direction === "up" ? Plus : Minus;
|
|
2208
|
-
return /* @__PURE__ */
|
|
2256
|
+
return /* @__PURE__ */ jsx61(
|
|
2209
2257
|
Button4,
|
|
2210
2258
|
{
|
|
2211
|
-
className:
|
|
2259
|
+
className: cn32(
|
|
2212
2260
|
[
|
|
2213
2261
|
"flex items-center justify-center",
|
|
2214
2262
|
"cursor-pointer data-[disabled]:cursor-not-allowed"
|
|
@@ -2216,13 +2264,13 @@ var _StepButton = ({ direction, className, ...props }) => {
|
|
|
2216
2264
|
className
|
|
2217
2265
|
),
|
|
2218
2266
|
...props,
|
|
2219
|
-
children: /* @__PURE__ */
|
|
2267
|
+
children: /* @__PURE__ */ jsx61(Icon4, {})
|
|
2220
2268
|
}
|
|
2221
2269
|
);
|
|
2222
2270
|
};
|
|
2223
2271
|
|
|
2224
2272
|
// src/NumberField/NumberField.tsx
|
|
2225
|
-
import { jsx as
|
|
2273
|
+
import { jsx as jsx62, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
2226
2274
|
var _NumberField = forwardRef16(
|
|
2227
2275
|
({
|
|
2228
2276
|
variant,
|
|
@@ -2234,7 +2282,7 @@ var _NumberField = forwardRef16(
|
|
|
2234
2282
|
hideStepper,
|
|
2235
2283
|
...rest
|
|
2236
2284
|
}, ref) => {
|
|
2237
|
-
const classNames2 =
|
|
2285
|
+
const classNames2 = useClassNames37({
|
|
2238
2286
|
component: "NumberField",
|
|
2239
2287
|
size,
|
|
2240
2288
|
variant
|
|
@@ -2247,8 +2295,8 @@ var _NumberField = forwardRef16(
|
|
|
2247
2295
|
...rest
|
|
2248
2296
|
};
|
|
2249
2297
|
const showStepper = !hideStepper;
|
|
2250
|
-
return /* @__PURE__ */
|
|
2251
|
-
showStepper && /* @__PURE__ */
|
|
2298
|
+
return /* @__PURE__ */ jsx62(FieldBase, { as: NumberField, ...props, children: /* @__PURE__ */ jsxs25(Group2, { className: cn33("flex items-stretch", classNames2.group), children: [
|
|
2299
|
+
showStepper && /* @__PURE__ */ jsx62(
|
|
2252
2300
|
_StepButton,
|
|
2253
2301
|
{
|
|
2254
2302
|
className: classNames2.stepper,
|
|
@@ -2256,7 +2304,7 @@ var _NumberField = forwardRef16(
|
|
|
2256
2304
|
slot: "decrement"
|
|
2257
2305
|
}
|
|
2258
2306
|
),
|
|
2259
|
-
/* @__PURE__ */
|
|
2307
|
+
/* @__PURE__ */ jsx62("div", { className: "flex-1", children: /* @__PURE__ */ jsx62(
|
|
2260
2308
|
_Input,
|
|
2261
2309
|
{
|
|
2262
2310
|
ref,
|
|
@@ -2265,7 +2313,7 @@ var _NumberField = forwardRef16(
|
|
|
2265
2313
|
className: classNames2.input
|
|
2266
2314
|
}
|
|
2267
2315
|
) }),
|
|
2268
|
-
showStepper && /* @__PURE__ */
|
|
2316
|
+
showStepper && /* @__PURE__ */ jsx62(
|
|
2269
2317
|
_StepButton,
|
|
2270
2318
|
{
|
|
2271
2319
|
className: classNames2.stepper,
|
|
@@ -2282,19 +2330,19 @@ import {
|
|
|
2282
2330
|
forwardRef as forwardRef17
|
|
2283
2331
|
} from "react";
|
|
2284
2332
|
import { Radio } from "react-aria-components";
|
|
2285
|
-
import { cn as
|
|
2333
|
+
import { cn as cn35, useClassNames as useClassNames39 } from "@marigold/system";
|
|
2286
2334
|
|
|
2287
2335
|
// src/Radio/Context.ts
|
|
2288
|
-
import { createContext as
|
|
2289
|
-
var RadioGroupContext =
|
|
2336
|
+
import { createContext as createContext6, useContext as useContext12 } from "react";
|
|
2337
|
+
var RadioGroupContext = createContext6(
|
|
2290
2338
|
null
|
|
2291
2339
|
);
|
|
2292
|
-
var useRadioGroupContext = () =>
|
|
2340
|
+
var useRadioGroupContext = () => useContext12(RadioGroupContext);
|
|
2293
2341
|
|
|
2294
2342
|
// src/Radio/RadioGroup.tsx
|
|
2295
2343
|
import { RadioGroup } from "react-aria-components";
|
|
2296
|
-
import { cn as
|
|
2297
|
-
import { jsx as
|
|
2344
|
+
import { cn as cn34, useClassNames as useClassNames38 } from "@marigold/system";
|
|
2345
|
+
import { jsx as jsx63 } from "react/jsx-runtime";
|
|
2298
2346
|
var _RadioGroup = ({
|
|
2299
2347
|
variant,
|
|
2300
2348
|
size,
|
|
@@ -2310,7 +2358,7 @@ var _RadioGroup = ({
|
|
|
2310
2358
|
width,
|
|
2311
2359
|
...rest
|
|
2312
2360
|
}) => {
|
|
2313
|
-
const classNames2 =
|
|
2361
|
+
const classNames2 = useClassNames38({ component: "Radio", variant, size });
|
|
2314
2362
|
const props = {
|
|
2315
2363
|
isDisabled: disabled,
|
|
2316
2364
|
isReadOnly: readOnly,
|
|
@@ -2318,7 +2366,7 @@ var _RadioGroup = ({
|
|
|
2318
2366
|
isInvalid: error,
|
|
2319
2367
|
...rest
|
|
2320
2368
|
};
|
|
2321
|
-
return /* @__PURE__ */
|
|
2369
|
+
return /* @__PURE__ */ jsx63(
|
|
2322
2370
|
FieldBase,
|
|
2323
2371
|
{
|
|
2324
2372
|
as: RadioGroup,
|
|
@@ -2329,18 +2377,18 @@ var _RadioGroup = ({
|
|
|
2329
2377
|
variant,
|
|
2330
2378
|
size,
|
|
2331
2379
|
...props,
|
|
2332
|
-
children: /* @__PURE__ */
|
|
2380
|
+
children: /* @__PURE__ */ jsx63(
|
|
2333
2381
|
"div",
|
|
2334
2382
|
{
|
|
2335
2383
|
role: "presentation",
|
|
2336
2384
|
"data-testid": "group",
|
|
2337
2385
|
"data-orientation": orientation,
|
|
2338
|
-
className:
|
|
2386
|
+
className: cn34(
|
|
2339
2387
|
classNames2.group,
|
|
2340
2388
|
"flex items-start",
|
|
2341
2389
|
orientation === "vertical" ? "flex-col gap-[0.5ch]" : "flex-row gap-[1.5ch]"
|
|
2342
2390
|
),
|
|
2343
|
-
children: /* @__PURE__ */
|
|
2391
|
+
children: /* @__PURE__ */ jsx63(RadioGroupContext.Provider, { value: { width, variant, size }, children })
|
|
2344
2392
|
}
|
|
2345
2393
|
)
|
|
2346
2394
|
}
|
|
@@ -2348,33 +2396,33 @@ var _RadioGroup = ({
|
|
|
2348
2396
|
};
|
|
2349
2397
|
|
|
2350
2398
|
// src/Radio/Radio.tsx
|
|
2351
|
-
import { Fragment as Fragment6, jsx as
|
|
2352
|
-
var Dot = () => /* @__PURE__ */
|
|
2353
|
-
var Icon3 = ({ checked, className, ...props }) => /* @__PURE__ */
|
|
2399
|
+
import { Fragment as Fragment6, jsx as jsx64, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
2400
|
+
var Dot = () => /* @__PURE__ */ jsx64("svg", { viewBox: "0 0 6 6", children: /* @__PURE__ */ jsx64("circle", { fill: "currentColor", cx: "3", cy: "3", r: "3" }) });
|
|
2401
|
+
var Icon3 = ({ checked, className, ...props }) => /* @__PURE__ */ jsx64(
|
|
2354
2402
|
"div",
|
|
2355
2403
|
{
|
|
2356
|
-
className:
|
|
2404
|
+
className: cn35(
|
|
2357
2405
|
"bg-secondary-50 flex h-4 w-4 items-center justify-center rounded-[50%] border p-1",
|
|
2358
2406
|
className
|
|
2359
2407
|
),
|
|
2360
2408
|
"aria-hidden": "true",
|
|
2361
2409
|
...props,
|
|
2362
|
-
children: checked ? /* @__PURE__ */
|
|
2410
|
+
children: checked ? /* @__PURE__ */ jsx64(Dot, {}) : null
|
|
2363
2411
|
}
|
|
2364
2412
|
);
|
|
2365
2413
|
var _Radio = forwardRef17(
|
|
2366
2414
|
({ value, disabled, width, children, ...props }, ref) => {
|
|
2367
2415
|
const { variant, size, width: groupWidth } = useRadioGroupContext();
|
|
2368
|
-
const classNames2 =
|
|
2416
|
+
const classNames2 = useClassNames39({
|
|
2369
2417
|
component: "Radio",
|
|
2370
2418
|
variant: variant || props.variant,
|
|
2371
2419
|
size: size || props.size
|
|
2372
2420
|
});
|
|
2373
|
-
return /* @__PURE__ */
|
|
2421
|
+
return /* @__PURE__ */ jsx64(
|
|
2374
2422
|
Radio,
|
|
2375
2423
|
{
|
|
2376
2424
|
ref,
|
|
2377
|
-
className:
|
|
2425
|
+
className: cn35(
|
|
2378
2426
|
"group/radio",
|
|
2379
2427
|
"relative flex items-center gap-[1ch]",
|
|
2380
2428
|
width || groupWidth || "w-full",
|
|
@@ -2383,18 +2431,18 @@ var _Radio = forwardRef17(
|
|
|
2383
2431
|
value,
|
|
2384
2432
|
isDisabled: disabled,
|
|
2385
2433
|
...props,
|
|
2386
|
-
children: ({ isSelected }) => /* @__PURE__ */
|
|
2387
|
-
/* @__PURE__ */
|
|
2434
|
+
children: ({ isSelected }) => /* @__PURE__ */ jsxs26(Fragment6, { children: [
|
|
2435
|
+
/* @__PURE__ */ jsx64(
|
|
2388
2436
|
Icon3,
|
|
2389
2437
|
{
|
|
2390
2438
|
checked: isSelected,
|
|
2391
|
-
className:
|
|
2439
|
+
className: cn35(
|
|
2392
2440
|
disabled ? "cursor-not-allowed" : "cursor-pointer",
|
|
2393
2441
|
classNames2.radio
|
|
2394
2442
|
)
|
|
2395
2443
|
}
|
|
2396
2444
|
),
|
|
2397
|
-
/* @__PURE__ */
|
|
2445
|
+
/* @__PURE__ */ jsx64("div", { className: classNames2.label, children })
|
|
2398
2446
|
] })
|
|
2399
2447
|
}
|
|
2400
2448
|
);
|
|
@@ -2405,7 +2453,7 @@ _Radio.Group = _RadioGroup;
|
|
|
2405
2453
|
// src/SearchField/SearchField.tsx
|
|
2406
2454
|
import { forwardRef as forwardRef18 } from "react";
|
|
2407
2455
|
import { SearchField } from "react-aria-components";
|
|
2408
|
-
import { jsx as
|
|
2456
|
+
import { jsx as jsx65 } from "react/jsx-runtime";
|
|
2409
2457
|
var _SearchField = forwardRef18(
|
|
2410
2458
|
({ disabled, required, readOnly, error, action, ...rest }, ref) => {
|
|
2411
2459
|
const props = {
|
|
@@ -2415,7 +2463,7 @@ var _SearchField = forwardRef18(
|
|
|
2415
2463
|
isReadOnly: readOnly,
|
|
2416
2464
|
isInvalid: error
|
|
2417
2465
|
};
|
|
2418
|
-
return /* @__PURE__ */
|
|
2466
|
+
return /* @__PURE__ */ jsx65(FieldBase, { as: SearchField, ...props, children: /* @__PURE__ */ jsx65(
|
|
2419
2467
|
SearchInput,
|
|
2420
2468
|
{
|
|
2421
2469
|
ref,
|
|
@@ -2432,8 +2480,8 @@ import {
|
|
|
2432
2480
|
Select,
|
|
2433
2481
|
SelectValue
|
|
2434
2482
|
} from "react-aria-components";
|
|
2435
|
-
import { cn as
|
|
2436
|
-
import { jsx as
|
|
2483
|
+
import { cn as cn36, useClassNames as useClassNames40 } from "@marigold/system";
|
|
2484
|
+
import { jsx as jsx66, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
2437
2485
|
var _Select = forwardRef19(
|
|
2438
2486
|
({
|
|
2439
2487
|
disabled,
|
|
@@ -2454,22 +2502,22 @@ var _Select = forwardRef19(
|
|
|
2454
2502
|
onSelectionChange: onChange,
|
|
2455
2503
|
...rest
|
|
2456
2504
|
};
|
|
2457
|
-
const classNames2 =
|
|
2458
|
-
return /* @__PURE__ */
|
|
2459
|
-
/* @__PURE__ */
|
|
2505
|
+
const classNames2 = useClassNames40({ component: "Select", variant, size });
|
|
2506
|
+
return /* @__PURE__ */ jsxs27(FieldBase, { isOpen: true, as: Select, ref, ...props, children: [
|
|
2507
|
+
/* @__PURE__ */ jsxs27(
|
|
2460
2508
|
Button5,
|
|
2461
2509
|
{
|
|
2462
|
-
className:
|
|
2510
|
+
className: cn36(
|
|
2463
2511
|
"flex w-full items-center justify-between gap-1 overflow-hidden",
|
|
2464
2512
|
classNames2.select
|
|
2465
2513
|
),
|
|
2466
2514
|
children: [
|
|
2467
|
-
/* @__PURE__ */
|
|
2468
|
-
/* @__PURE__ */
|
|
2515
|
+
/* @__PURE__ */ jsx66(SelectValue, {}),
|
|
2516
|
+
/* @__PURE__ */ jsx66(ChevronDown, { className: "size-4" })
|
|
2469
2517
|
]
|
|
2470
2518
|
}
|
|
2471
2519
|
),
|
|
2472
|
-
/* @__PURE__ */
|
|
2520
|
+
/* @__PURE__ */ jsx66(_Popover, { children: /* @__PURE__ */ jsx66(_ListBox, { items, children: props.children }) })
|
|
2473
2521
|
] });
|
|
2474
2522
|
}
|
|
2475
2523
|
);
|
|
@@ -2477,19 +2525,19 @@ _Select.Option = _ListBox.Item;
|
|
|
2477
2525
|
_Select.Section = _ListBox.Section;
|
|
2478
2526
|
|
|
2479
2527
|
// src/Scrollable/Scrollable.tsx
|
|
2480
|
-
import { cn as
|
|
2481
|
-
import { jsx as
|
|
2528
|
+
import { cn as cn37, createVar as createVar10, width as twWidth2 } from "@marigold/system";
|
|
2529
|
+
import { jsx as jsx67 } from "react/jsx-runtime";
|
|
2482
2530
|
var Scrollable = ({
|
|
2483
2531
|
children,
|
|
2484
2532
|
width = "full",
|
|
2485
2533
|
height,
|
|
2486
2534
|
...props
|
|
2487
|
-
}) => /* @__PURE__ */
|
|
2535
|
+
}) => /* @__PURE__ */ jsx67(
|
|
2488
2536
|
"div",
|
|
2489
2537
|
{
|
|
2490
2538
|
...props,
|
|
2491
|
-
className:
|
|
2492
|
-
style:
|
|
2539
|
+
className: cn37(["sticky h-[--height] overflow-auto", twWidth2[width]]),
|
|
2540
|
+
style: createVar10({ height }),
|
|
2493
2541
|
children
|
|
2494
2542
|
}
|
|
2495
2543
|
);
|
|
@@ -2503,11 +2551,11 @@ import {
|
|
|
2503
2551
|
SliderTrack
|
|
2504
2552
|
} from "react-aria-components";
|
|
2505
2553
|
import {
|
|
2506
|
-
cn as
|
|
2554
|
+
cn as cn38,
|
|
2507
2555
|
width as twWidth3,
|
|
2508
|
-
useClassNames as
|
|
2556
|
+
useClassNames as useClassNames41
|
|
2509
2557
|
} from "@marigold/system";
|
|
2510
|
-
import { jsx as
|
|
2558
|
+
import { jsx as jsx68, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
2511
2559
|
var _Slider = forwardRef20(
|
|
2512
2560
|
({
|
|
2513
2561
|
thumbLabels,
|
|
@@ -2517,7 +2565,7 @@ var _Slider = forwardRef20(
|
|
|
2517
2565
|
disabled,
|
|
2518
2566
|
...rest
|
|
2519
2567
|
}, ref) => {
|
|
2520
|
-
const classNames2 =
|
|
2568
|
+
const classNames2 = useClassNames41({
|
|
2521
2569
|
component: "Slider",
|
|
2522
2570
|
variant,
|
|
2523
2571
|
size
|
|
@@ -2526,10 +2574,10 @@ var _Slider = forwardRef20(
|
|
|
2526
2574
|
isDisabled: disabled,
|
|
2527
2575
|
...rest
|
|
2528
2576
|
};
|
|
2529
|
-
return /* @__PURE__ */
|
|
2577
|
+
return /* @__PURE__ */ jsxs28(
|
|
2530
2578
|
Slider,
|
|
2531
2579
|
{
|
|
2532
|
-
className:
|
|
2580
|
+
className: cn38(
|
|
2533
2581
|
"grid grid-cols-[auto_1fr] gap-y-1",
|
|
2534
2582
|
classNames2.container,
|
|
2535
2583
|
twWidth3[width]
|
|
@@ -2537,16 +2585,16 @@ var _Slider = forwardRef20(
|
|
|
2537
2585
|
ref,
|
|
2538
2586
|
...props,
|
|
2539
2587
|
children: [
|
|
2540
|
-
/* @__PURE__ */
|
|
2541
|
-
/* @__PURE__ */
|
|
2542
|
-
/* @__PURE__ */
|
|
2588
|
+
/* @__PURE__ */ jsx68(_Label, { children: props.children }),
|
|
2589
|
+
/* @__PURE__ */ jsx68(SliderOutput, { className: cn38("flex justify-end", classNames2.output), children: ({ state }) => state.values.map((_, i) => state.getThumbValueLabel(i)).join(" \u2013 ") }),
|
|
2590
|
+
/* @__PURE__ */ jsx68(
|
|
2543
2591
|
SliderTrack,
|
|
2544
2592
|
{
|
|
2545
|
-
className:
|
|
2546
|
-
children: ({ state }) => state.values.map((_, i) => /* @__PURE__ */
|
|
2593
|
+
className: cn38("relative col-span-2 h-2 w-full", classNames2.track),
|
|
2594
|
+
children: ({ state }) => state.values.map((_, i) => /* @__PURE__ */ jsx68(
|
|
2547
2595
|
SliderThumb,
|
|
2548
2596
|
{
|
|
2549
|
-
className:
|
|
2597
|
+
className: cn38("top-1/2 cursor-pointer", classNames2.thumb),
|
|
2550
2598
|
index: i,
|
|
2551
2599
|
"aria-label": thumbLabels == null ? void 0 : thumbLabels[i]
|
|
2552
2600
|
},
|
|
@@ -2561,16 +2609,16 @@ var _Slider = forwardRef20(
|
|
|
2561
2609
|
);
|
|
2562
2610
|
|
|
2563
2611
|
// src/Split/Split.tsx
|
|
2564
|
-
import { jsx as
|
|
2565
|
-
var Split = (props) => /* @__PURE__ */
|
|
2612
|
+
import { jsx as jsx69 } from "react/jsx-runtime";
|
|
2613
|
+
var Split = (props) => /* @__PURE__ */ jsx69("div", { ...props, role: "separator", className: "grow" });
|
|
2566
2614
|
|
|
2567
2615
|
// src/Stack/Stack.tsx
|
|
2568
2616
|
import {
|
|
2569
2617
|
alignment as alignment3,
|
|
2570
|
-
cn as
|
|
2618
|
+
cn as cn39,
|
|
2571
2619
|
gapSpace as gapSpace6
|
|
2572
2620
|
} from "@marigold/system";
|
|
2573
|
-
import { jsx as
|
|
2621
|
+
import { jsx as jsx70 } from "react/jsx-runtime";
|
|
2574
2622
|
var Stack = ({
|
|
2575
2623
|
children,
|
|
2576
2624
|
space = 0,
|
|
@@ -2581,10 +2629,10 @@ var Stack = ({
|
|
|
2581
2629
|
...props
|
|
2582
2630
|
}) => {
|
|
2583
2631
|
var _a, _b, _c, _d;
|
|
2584
|
-
return /* @__PURE__ */
|
|
2632
|
+
return /* @__PURE__ */ jsx70(
|
|
2585
2633
|
"div",
|
|
2586
2634
|
{
|
|
2587
|
-
className:
|
|
2635
|
+
className: cn39(
|
|
2588
2636
|
"flex flex-col",
|
|
2589
2637
|
gapSpace6[space],
|
|
2590
2638
|
alignX && ((_b = (_a = alignment3) == null ? void 0 : _a.vertical) == null ? void 0 : _b.alignmentX[alignX]),
|
|
@@ -2601,11 +2649,11 @@ var Stack = ({
|
|
|
2601
2649
|
import { forwardRef as forwardRef21 } from "react";
|
|
2602
2650
|
import { Switch } from "react-aria-components";
|
|
2603
2651
|
import {
|
|
2604
|
-
cn as
|
|
2652
|
+
cn as cn40,
|
|
2605
2653
|
width as twWidth4,
|
|
2606
|
-
useClassNames as
|
|
2654
|
+
useClassNames as useClassNames42
|
|
2607
2655
|
} from "@marigold/system";
|
|
2608
|
-
import { jsx as
|
|
2656
|
+
import { jsx as jsx71, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
2609
2657
|
var _Switch = forwardRef21(
|
|
2610
2658
|
({
|
|
2611
2659
|
variant,
|
|
@@ -2617,37 +2665,37 @@ var _Switch = forwardRef21(
|
|
|
2617
2665
|
readOnly,
|
|
2618
2666
|
...rest
|
|
2619
2667
|
}, ref) => {
|
|
2620
|
-
const classNames2 =
|
|
2668
|
+
const classNames2 = useClassNames42({ component: "Switch", size, variant });
|
|
2621
2669
|
const props = {
|
|
2622
2670
|
isDisabled: disabled,
|
|
2623
2671
|
isReadOnly: readOnly,
|
|
2624
2672
|
isSelected: selected,
|
|
2625
2673
|
...rest
|
|
2626
2674
|
};
|
|
2627
|
-
return /* @__PURE__ */
|
|
2675
|
+
return /* @__PURE__ */ jsxs29(
|
|
2628
2676
|
Switch,
|
|
2629
2677
|
{
|
|
2630
2678
|
...props,
|
|
2631
2679
|
ref,
|
|
2632
|
-
className:
|
|
2680
|
+
className: cn40(
|
|
2633
2681
|
twWidth4[width],
|
|
2634
2682
|
"group/switch",
|
|
2635
2683
|
"flex items-center gap-[1ch]",
|
|
2636
2684
|
classNames2.container
|
|
2637
2685
|
),
|
|
2638
2686
|
children: [
|
|
2639
|
-
/* @__PURE__ */
|
|
2640
|
-
/* @__PURE__ */
|
|
2687
|
+
/* @__PURE__ */ jsx71(_Label, { elementType: "span", children }),
|
|
2688
|
+
/* @__PURE__ */ jsx71("div", { className: "relative", children: /* @__PURE__ */ jsx71(
|
|
2641
2689
|
"div",
|
|
2642
2690
|
{
|
|
2643
|
-
className:
|
|
2691
|
+
className: cn40(
|
|
2644
2692
|
"h-6 w-12 basis-12 rounded-3xl group-disabled/switch:cursor-not-allowed ",
|
|
2645
2693
|
classNames2.track
|
|
2646
2694
|
),
|
|
2647
|
-
children: /* @__PURE__ */
|
|
2695
|
+
children: /* @__PURE__ */ jsx71(
|
|
2648
2696
|
"div",
|
|
2649
2697
|
{
|
|
2650
|
-
className:
|
|
2698
|
+
className: cn40(
|
|
2651
2699
|
"h-[22px] w-[22px]",
|
|
2652
2700
|
"cubic-bezier(.7,0,.3,1)",
|
|
2653
2701
|
"absolute left-0 top-px",
|
|
@@ -2676,19 +2724,19 @@ import {
|
|
|
2676
2724
|
Row,
|
|
2677
2725
|
useTableState
|
|
2678
2726
|
} from "@react-stately/table";
|
|
2679
|
-
import { cn as
|
|
2727
|
+
import { cn as cn46, useClassNames as useClassNames44 } from "@marigold/system";
|
|
2680
2728
|
|
|
2681
2729
|
// src/Table/Context.tsx
|
|
2682
|
-
import { createContext as
|
|
2683
|
-
var TableContext =
|
|
2684
|
-
var useTableContext = () =>
|
|
2730
|
+
import { createContext as createContext7, useContext as useContext13 } from "react";
|
|
2731
|
+
var TableContext = createContext7({});
|
|
2732
|
+
var useTableContext = () => useContext13(TableContext);
|
|
2685
2733
|
|
|
2686
2734
|
// src/Table/TableBody.tsx
|
|
2687
2735
|
import { useTableRowGroup } from "@react-aria/table";
|
|
2688
|
-
import { jsx as
|
|
2736
|
+
import { jsx as jsx72 } from "react/jsx-runtime";
|
|
2689
2737
|
var TableBody = ({ children }) => {
|
|
2690
2738
|
const { rowGroupProps } = useTableRowGroup();
|
|
2691
|
-
return /* @__PURE__ */
|
|
2739
|
+
return /* @__PURE__ */ jsx72("tbody", { ...rowGroupProps, children });
|
|
2692
2740
|
};
|
|
2693
2741
|
|
|
2694
2742
|
// src/Table/TableCell.tsx
|
|
@@ -2696,8 +2744,8 @@ import { useRef as useRef4 } from "react";
|
|
|
2696
2744
|
import { useFocusRing as useFocusRing2 } from "@react-aria/focus";
|
|
2697
2745
|
import { useTableCell } from "@react-aria/table";
|
|
2698
2746
|
import { mergeProps as mergeProps3 } from "@react-aria/utils";
|
|
2699
|
-
import { cn as
|
|
2700
|
-
import { jsx as
|
|
2747
|
+
import { cn as cn41, useStateProps as useStateProps2 } from "@marigold/system";
|
|
2748
|
+
import { jsx as jsx73 } from "react/jsx-runtime";
|
|
2701
2749
|
var TableCell = ({ cell, align = "left" }) => {
|
|
2702
2750
|
const ref = useRef4(null);
|
|
2703
2751
|
const { interactive, state, classNames: classNames2 } = useTableContext();
|
|
@@ -2720,11 +2768,11 @@ var TableCell = ({ cell, align = "left" }) => {
|
|
|
2720
2768
|
};
|
|
2721
2769
|
const { focusProps, isFocusVisible } = useFocusRing2();
|
|
2722
2770
|
const stateProps = useStateProps2({ disabled, focusVisible: isFocusVisible });
|
|
2723
|
-
return /* @__PURE__ */
|
|
2771
|
+
return /* @__PURE__ */ jsx73(
|
|
2724
2772
|
"td",
|
|
2725
2773
|
{
|
|
2726
2774
|
ref,
|
|
2727
|
-
className:
|
|
2775
|
+
className: cn41(classNames2 == null ? void 0 : classNames2.cell),
|
|
2728
2776
|
...mergeProps3(cellProps, focusProps),
|
|
2729
2777
|
...stateProps,
|
|
2730
2778
|
align,
|
|
@@ -2738,7 +2786,7 @@ import { useRef as useRef5 } from "react";
|
|
|
2738
2786
|
import { useFocusRing as useFocusRing3 } from "@react-aria/focus";
|
|
2739
2787
|
import { useTableCell as useTableCell2, useTableSelectionCheckbox } from "@react-aria/table";
|
|
2740
2788
|
import { mergeProps as mergeProps4 } from "@react-aria/utils";
|
|
2741
|
-
import { cn as
|
|
2789
|
+
import { cn as cn42, useStateProps as useStateProps3 } from "@marigold/system";
|
|
2742
2790
|
|
|
2743
2791
|
// src/Table/utils.ts
|
|
2744
2792
|
var mapCheckboxProps = ({
|
|
@@ -2761,7 +2809,7 @@ var mapCheckboxProps = ({
|
|
|
2761
2809
|
};
|
|
2762
2810
|
|
|
2763
2811
|
// src/Table/TableCheckboxCell.tsx
|
|
2764
|
-
import { jsx as
|
|
2812
|
+
import { jsx as jsx74 } from "react/jsx-runtime";
|
|
2765
2813
|
var TableCheckboxCell = ({ cell }) => {
|
|
2766
2814
|
const ref = useRef5(null);
|
|
2767
2815
|
const { state, classNames: classNames2 } = useTableContext();
|
|
@@ -2778,14 +2826,14 @@ var TableCheckboxCell = ({ cell }) => {
|
|
|
2778
2826
|
);
|
|
2779
2827
|
const { focusProps, isFocusVisible } = useFocusRing3();
|
|
2780
2828
|
const stateProps = useStateProps3({ disabled, focusVisible: isFocusVisible });
|
|
2781
|
-
return /* @__PURE__ */
|
|
2829
|
+
return /* @__PURE__ */ jsx74(
|
|
2782
2830
|
"td",
|
|
2783
2831
|
{
|
|
2784
2832
|
ref,
|
|
2785
|
-
className:
|
|
2833
|
+
className: cn42("text-center align-middle leading-none", classNames2 == null ? void 0 : classNames2.cell),
|
|
2786
2834
|
...mergeProps4(gridCellProps, focusProps),
|
|
2787
2835
|
...stateProps,
|
|
2788
|
-
children: /* @__PURE__ */
|
|
2836
|
+
children: /* @__PURE__ */ jsx74(_Checkbox, { ...checkboxProps })
|
|
2789
2837
|
}
|
|
2790
2838
|
);
|
|
2791
2839
|
};
|
|
@@ -2797,9 +2845,9 @@ import { useHover } from "@react-aria/interactions";
|
|
|
2797
2845
|
import { useTableColumnHeader } from "@react-aria/table";
|
|
2798
2846
|
import { mergeProps as mergeProps5 } from "@react-aria/utils";
|
|
2799
2847
|
import { SortDown, SortUp } from "@marigold/icons";
|
|
2800
|
-
import { cn as
|
|
2848
|
+
import { cn as cn43, useStateProps as useStateProps4 } from "@marigold/system";
|
|
2801
2849
|
import { width as twWidth5 } from "@marigold/system";
|
|
2802
|
-
import { jsx as
|
|
2850
|
+
import { jsx as jsx75, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
2803
2851
|
var TableColumnHeader = ({
|
|
2804
2852
|
column,
|
|
2805
2853
|
width = "auto",
|
|
@@ -2821,18 +2869,18 @@ var TableColumnHeader = ({
|
|
|
2821
2869
|
hover: isHovered,
|
|
2822
2870
|
focusVisible: isFocusVisible
|
|
2823
2871
|
});
|
|
2824
|
-
return /* @__PURE__ */
|
|
2872
|
+
return /* @__PURE__ */ jsxs30(
|
|
2825
2873
|
"th",
|
|
2826
2874
|
{
|
|
2827
2875
|
colSpan: column.colspan,
|
|
2828
2876
|
ref,
|
|
2829
|
-
className:
|
|
2877
|
+
className: cn43("cursor-default", twWidth5[width], classNames2 == null ? void 0 : classNames2.header),
|
|
2830
2878
|
...mergeProps5(columnHeaderProps, hoverProps, focusProps),
|
|
2831
2879
|
...stateProps,
|
|
2832
2880
|
align,
|
|
2833
2881
|
children: [
|
|
2834
2882
|
column.rendered,
|
|
2835
|
-
column.props.allowsSorting && (((_a = state.sortDescriptor) == null ? void 0 : _a.column) === column.key ? ((_b = state.sortDescriptor) == null ? void 0 : _b.direction) === "ascending" ? /* @__PURE__ */
|
|
2883
|
+
column.props.allowsSorting && (((_a = state.sortDescriptor) == null ? void 0 : _a.column) === column.key ? ((_b = state.sortDescriptor) == null ? void 0 : _b.direction) === "ascending" ? /* @__PURE__ */ jsx75(SortUp, { className: "inline-block" }) : /* @__PURE__ */ jsx75(SortDown, { className: "inline-block" }) : /* @__PURE__ */ jsx75(SortDown, { className: "inline-block" }))
|
|
2836
2884
|
]
|
|
2837
2885
|
}
|
|
2838
2886
|
);
|
|
@@ -2840,10 +2888,10 @@ var TableColumnHeader = ({
|
|
|
2840
2888
|
|
|
2841
2889
|
// src/Table/TableHeader.tsx
|
|
2842
2890
|
import { useTableRowGroup as useTableRowGroup2 } from "@react-aria/table";
|
|
2843
|
-
import { jsx as
|
|
2891
|
+
import { jsx as jsx76 } from "react/jsx-runtime";
|
|
2844
2892
|
var TableHeader = ({ stickyHeader, children }) => {
|
|
2845
2893
|
const { rowGroupProps } = useTableRowGroup2();
|
|
2846
|
-
return /* @__PURE__ */
|
|
2894
|
+
return /* @__PURE__ */ jsx76(
|
|
2847
2895
|
"thead",
|
|
2848
2896
|
{
|
|
2849
2897
|
...rowGroupProps,
|
|
@@ -2856,12 +2904,12 @@ var TableHeader = ({ stickyHeader, children }) => {
|
|
|
2856
2904
|
// src/Table/TableHeaderRow.tsx
|
|
2857
2905
|
import { useRef as useRef7 } from "react";
|
|
2858
2906
|
import { useTableHeaderRow } from "@react-aria/table";
|
|
2859
|
-
import { jsx as
|
|
2907
|
+
import { jsx as jsx77 } from "react/jsx-runtime";
|
|
2860
2908
|
var TableHeaderRow = ({ item, children }) => {
|
|
2861
2909
|
const { state } = useTableContext();
|
|
2862
2910
|
const ref = useRef7(null);
|
|
2863
2911
|
const { rowProps } = useTableHeaderRow({ node: item }, state, ref);
|
|
2864
|
-
return /* @__PURE__ */
|
|
2912
|
+
return /* @__PURE__ */ jsx77("tr", { ...rowProps, ref, children });
|
|
2865
2913
|
};
|
|
2866
2914
|
|
|
2867
2915
|
// src/Table/TableRow.tsx
|
|
@@ -2870,13 +2918,13 @@ import { useFocusRing as useFocusRing5 } from "@react-aria/focus";
|
|
|
2870
2918
|
import { useHover as useHover2 } from "@react-aria/interactions";
|
|
2871
2919
|
import { useTableRow } from "@react-aria/table";
|
|
2872
2920
|
import { mergeProps as mergeProps6 } from "@react-aria/utils";
|
|
2873
|
-
import { cn as
|
|
2874
|
-
import { jsx as
|
|
2921
|
+
import { cn as cn44, useClassNames as useClassNames43, useStateProps as useStateProps5 } from "@marigold/system";
|
|
2922
|
+
import { jsx as jsx78 } from "react/jsx-runtime";
|
|
2875
2923
|
var TableRow = ({ children, row }) => {
|
|
2876
2924
|
const ref = useRef8(null);
|
|
2877
2925
|
const { interactive, state, ...ctx } = useTableContext();
|
|
2878
2926
|
const { variant, size } = row.props;
|
|
2879
|
-
const classNames2 =
|
|
2927
|
+
const classNames2 = useClassNames43({
|
|
2880
2928
|
component: "Table",
|
|
2881
2929
|
variant: variant || ctx.variant,
|
|
2882
2930
|
size: size || ctx.size
|
|
@@ -2901,11 +2949,11 @@ var TableRow = ({ children, row }) => {
|
|
|
2901
2949
|
focusVisible: isFocusVisible,
|
|
2902
2950
|
active: isPressed
|
|
2903
2951
|
});
|
|
2904
|
-
return /* @__PURE__ */
|
|
2952
|
+
return /* @__PURE__ */ jsx78(
|
|
2905
2953
|
"tr",
|
|
2906
2954
|
{
|
|
2907
2955
|
ref,
|
|
2908
|
-
className:
|
|
2956
|
+
className: cn44(
|
|
2909
2957
|
[
|
|
2910
2958
|
!interactive ? "cursor-text" : disabled ? "cursor-default" : "cursor-pointer"
|
|
2911
2959
|
],
|
|
@@ -2928,11 +2976,11 @@ import {
|
|
|
2928
2976
|
} from "@react-aria/table";
|
|
2929
2977
|
import { mergeProps as mergeProps7 } from "@react-aria/utils";
|
|
2930
2978
|
import {
|
|
2931
|
-
cn as
|
|
2979
|
+
cn as cn45,
|
|
2932
2980
|
width as twWidth6,
|
|
2933
2981
|
useStateProps as useStateProps6
|
|
2934
2982
|
} from "@marigold/system";
|
|
2935
|
-
import { jsx as
|
|
2983
|
+
import { jsx as jsx79 } from "react/jsx-runtime";
|
|
2936
2984
|
var TableSelectAllCell = ({
|
|
2937
2985
|
column,
|
|
2938
2986
|
width = "auto",
|
|
@@ -2954,21 +3002,21 @@ var TableSelectAllCell = ({
|
|
|
2954
3002
|
hover: isHovered,
|
|
2955
3003
|
focusVisible: isFocusVisible
|
|
2956
3004
|
});
|
|
2957
|
-
return /* @__PURE__ */
|
|
3005
|
+
return /* @__PURE__ */ jsx79(
|
|
2958
3006
|
"th",
|
|
2959
3007
|
{
|
|
2960
3008
|
ref,
|
|
2961
|
-
className:
|
|
3009
|
+
className: cn45(twWidth6[width], [" leading-none"], classNames2 == null ? void 0 : classNames2.header),
|
|
2962
3010
|
...mergeProps7(columnHeaderProps, hoverProps, focusProps),
|
|
2963
3011
|
...stateProps,
|
|
2964
3012
|
align,
|
|
2965
|
-
children: /* @__PURE__ */
|
|
3013
|
+
children: /* @__PURE__ */ jsx79(_Checkbox, { ...checkboxProps })
|
|
2966
3014
|
}
|
|
2967
3015
|
);
|
|
2968
3016
|
};
|
|
2969
3017
|
|
|
2970
3018
|
// src/Table/Table.tsx
|
|
2971
|
-
import { jsx as
|
|
3019
|
+
import { jsx as jsx80, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
2972
3020
|
var Table = ({
|
|
2973
3021
|
variant,
|
|
2974
3022
|
size,
|
|
@@ -2986,21 +3034,21 @@ var Table = ({
|
|
|
2986
3034
|
props.selectionBehavior !== "replace"
|
|
2987
3035
|
});
|
|
2988
3036
|
const { gridProps } = useTable(props, state, tableRef);
|
|
2989
|
-
const classNames2 =
|
|
3037
|
+
const classNames2 = useClassNames44({
|
|
2990
3038
|
component: "Table",
|
|
2991
3039
|
variant,
|
|
2992
3040
|
size
|
|
2993
3041
|
});
|
|
2994
3042
|
const { collection } = state;
|
|
2995
|
-
return /* @__PURE__ */
|
|
3043
|
+
return /* @__PURE__ */ jsx80(
|
|
2996
3044
|
TableContext.Provider,
|
|
2997
3045
|
{
|
|
2998
3046
|
value: { state, interactive, classNames: classNames2, variant, size },
|
|
2999
|
-
children: /* @__PURE__ */
|
|
3047
|
+
children: /* @__PURE__ */ jsxs31(
|
|
3000
3048
|
"table",
|
|
3001
3049
|
{
|
|
3002
3050
|
ref: tableRef,
|
|
3003
|
-
className:
|
|
3051
|
+
className: cn46(
|
|
3004
3052
|
"group/table",
|
|
3005
3053
|
"border-collapse whitespace-nowrap",
|
|
3006
3054
|
stretch ? "table w-full" : "block",
|
|
@@ -3008,10 +3056,10 @@ var Table = ({
|
|
|
3008
3056
|
),
|
|
3009
3057
|
...gridProps,
|
|
3010
3058
|
children: [
|
|
3011
|
-
/* @__PURE__ */
|
|
3059
|
+
/* @__PURE__ */ jsx80(TableHeader, { stickyHeader, children: collection.headerRows.map((headerRow) => /* @__PURE__ */ jsx80(TableHeaderRow, { item: headerRow, children: [...collection.getChildren(headerRow.key)].map(
|
|
3012
3060
|
(column) => {
|
|
3013
3061
|
var _a, _b, _c, _d, _e;
|
|
3014
|
-
return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */
|
|
3062
|
+
return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ jsx80(
|
|
3015
3063
|
TableSelectAllCell,
|
|
3016
3064
|
{
|
|
3017
3065
|
width: (_b = column.props) == null ? void 0 : _b.width,
|
|
@@ -3019,7 +3067,7 @@ var Table = ({
|
|
|
3019
3067
|
align: (_c = column.props) == null ? void 0 : _c.align
|
|
3020
3068
|
},
|
|
3021
3069
|
column.key
|
|
3022
|
-
) : /* @__PURE__ */
|
|
3070
|
+
) : /* @__PURE__ */ jsx80(
|
|
3023
3071
|
TableColumnHeader,
|
|
3024
3072
|
{
|
|
3025
3073
|
width: (_d = column.props) == null ? void 0 : _d.width,
|
|
@@ -3030,12 +3078,12 @@ var Table = ({
|
|
|
3030
3078
|
);
|
|
3031
3079
|
}
|
|
3032
3080
|
) }, headerRow.key)) }),
|
|
3033
|
-
/* @__PURE__ */
|
|
3081
|
+
/* @__PURE__ */ jsxs31(TableBody, { children: [
|
|
3034
3082
|
...collection.rows.map(
|
|
3035
|
-
(row) => row.type === "item" && /* @__PURE__ */
|
|
3083
|
+
(row) => row.type === "item" && /* @__PURE__ */ jsx80(TableRow, { row, children: [...collection.getChildren(row.key)].map((cell, index) => {
|
|
3036
3084
|
var _a, _b;
|
|
3037
3085
|
const currentColumn = collection.columns[index];
|
|
3038
|
-
return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */
|
|
3086
|
+
return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ jsx80(TableCheckboxCell, { cell }, cell.key) : /* @__PURE__ */ jsx80(
|
|
3039
3087
|
TableCell,
|
|
3040
3088
|
{
|
|
3041
3089
|
align: (_b = currentColumn.props) == null ? void 0 : _b.align,
|
|
@@ -3060,18 +3108,18 @@ Table.Row = Row;
|
|
|
3060
3108
|
|
|
3061
3109
|
// src/Text/Text.tsx
|
|
3062
3110
|
import {
|
|
3063
|
-
cn as
|
|
3064
|
-
createVar as
|
|
3111
|
+
cn as cn47,
|
|
3112
|
+
createVar as createVar11,
|
|
3065
3113
|
cursorStyle,
|
|
3066
3114
|
fontWeight,
|
|
3067
3115
|
getColor as getColor2,
|
|
3068
3116
|
textAlign as textAlign2,
|
|
3069
3117
|
textSize,
|
|
3070
3118
|
textStyle,
|
|
3071
|
-
useClassNames as
|
|
3119
|
+
useClassNames as useClassNames45,
|
|
3072
3120
|
useTheme as useTheme3
|
|
3073
3121
|
} from "@marigold/system";
|
|
3074
|
-
import { jsx as
|
|
3122
|
+
import { jsx as jsx81 } from "react/jsx-runtime";
|
|
3075
3123
|
var Text2 = ({
|
|
3076
3124
|
variant,
|
|
3077
3125
|
size,
|
|
@@ -3085,16 +3133,16 @@ var Text2 = ({
|
|
|
3085
3133
|
...props
|
|
3086
3134
|
}) => {
|
|
3087
3135
|
const theme = useTheme3();
|
|
3088
|
-
const classNames2 =
|
|
3136
|
+
const classNames2 = useClassNames45({
|
|
3089
3137
|
component: "Text",
|
|
3090
3138
|
variant,
|
|
3091
3139
|
size
|
|
3092
3140
|
});
|
|
3093
|
-
return /* @__PURE__ */
|
|
3141
|
+
return /* @__PURE__ */ jsx81(
|
|
3094
3142
|
"p",
|
|
3095
3143
|
{
|
|
3096
3144
|
...props,
|
|
3097
|
-
className:
|
|
3145
|
+
className: cn47(
|
|
3098
3146
|
"text-[--color] outline-[--outline]",
|
|
3099
3147
|
classNames2,
|
|
3100
3148
|
fontStyle && textStyle[fontStyle],
|
|
@@ -3103,7 +3151,7 @@ var Text2 = ({
|
|
|
3103
3151
|
weight && fontWeight[weight],
|
|
3104
3152
|
fontSize && textSize[fontSize]
|
|
3105
3153
|
),
|
|
3106
|
-
style:
|
|
3154
|
+
style: createVar11({
|
|
3107
3155
|
color: color && getColor2(
|
|
3108
3156
|
theme,
|
|
3109
3157
|
color,
|
|
@@ -3119,8 +3167,8 @@ var Text2 = ({
|
|
|
3119
3167
|
// src/TextArea/TextArea.tsx
|
|
3120
3168
|
import { forwardRef as forwardRef22 } from "react";
|
|
3121
3169
|
import { TextArea, TextField } from "react-aria-components";
|
|
3122
|
-
import { useClassNames as
|
|
3123
|
-
import { jsx as
|
|
3170
|
+
import { useClassNames as useClassNames46 } from "@marigold/system";
|
|
3171
|
+
import { jsx as jsx82 } from "react/jsx-runtime";
|
|
3124
3172
|
var _TextArea = forwardRef22(
|
|
3125
3173
|
({
|
|
3126
3174
|
variant,
|
|
@@ -3132,7 +3180,7 @@ var _TextArea = forwardRef22(
|
|
|
3132
3180
|
rows,
|
|
3133
3181
|
...rest
|
|
3134
3182
|
}, ref) => {
|
|
3135
|
-
const classNames2 =
|
|
3183
|
+
const classNames2 = useClassNames46({ component: "TextArea", variant, size });
|
|
3136
3184
|
const props = {
|
|
3137
3185
|
isDisabled: disabled,
|
|
3138
3186
|
isReadOnly: readOnly,
|
|
@@ -3140,14 +3188,14 @@ var _TextArea = forwardRef22(
|
|
|
3140
3188
|
isRequired: required,
|
|
3141
3189
|
...rest
|
|
3142
3190
|
};
|
|
3143
|
-
return /* @__PURE__ */
|
|
3191
|
+
return /* @__PURE__ */ jsx82(FieldBase, { as: TextField, ...props, variant, size, children: /* @__PURE__ */ jsx82(TextArea, { className: classNames2, ref, rows }) });
|
|
3144
3192
|
}
|
|
3145
3193
|
);
|
|
3146
3194
|
|
|
3147
3195
|
// src/TextField/TextField.tsx
|
|
3148
3196
|
import { forwardRef as forwardRef23 } from "react";
|
|
3149
3197
|
import { TextField as TextField2 } from "react-aria-components";
|
|
3150
|
-
import { jsx as
|
|
3198
|
+
import { jsx as jsx83 } from "react/jsx-runtime";
|
|
3151
3199
|
var _TextField = forwardRef23(
|
|
3152
3200
|
({
|
|
3153
3201
|
variant,
|
|
@@ -3165,13 +3213,13 @@ var _TextField = forwardRef23(
|
|
|
3165
3213
|
isRequired: required,
|
|
3166
3214
|
...rest
|
|
3167
3215
|
};
|
|
3168
|
-
return /* @__PURE__ */
|
|
3216
|
+
return /* @__PURE__ */ jsx83(FieldBase, { as: TextField2, ...props, children: /* @__PURE__ */ jsx83(_Input, { ref }) });
|
|
3169
3217
|
}
|
|
3170
3218
|
);
|
|
3171
3219
|
|
|
3172
3220
|
// src/Tiles/Tiles.tsx
|
|
3173
|
-
import { cn as
|
|
3174
|
-
import { jsx as
|
|
3221
|
+
import { cn as cn48, createVar as createVar12, gapSpace as gapSpace7 } from "@marigold/system";
|
|
3222
|
+
import { jsx as jsx84 } from "react/jsx-runtime";
|
|
3175
3223
|
var Tiles = ({
|
|
3176
3224
|
space = 0,
|
|
3177
3225
|
stretch = false,
|
|
@@ -3184,17 +3232,17 @@ var Tiles = ({
|
|
|
3184
3232
|
if (stretch) {
|
|
3185
3233
|
column = `minmax(${column}, 1fr)`;
|
|
3186
3234
|
}
|
|
3187
|
-
return /* @__PURE__ */
|
|
3235
|
+
return /* @__PURE__ */ jsx84(
|
|
3188
3236
|
"div",
|
|
3189
3237
|
{
|
|
3190
3238
|
...props,
|
|
3191
|
-
className:
|
|
3239
|
+
className: cn48(
|
|
3192
3240
|
"grid",
|
|
3193
3241
|
gapSpace7[space],
|
|
3194
3242
|
"grid-cols-[repeat(auto-fit,var(--column))]",
|
|
3195
3243
|
equalHeight && "auto-rows-[1fr]"
|
|
3196
3244
|
),
|
|
3197
|
-
style:
|
|
3245
|
+
style: createVar12({ column, tilesWidth }),
|
|
3198
3246
|
children
|
|
3199
3247
|
}
|
|
3200
3248
|
);
|
|
@@ -3202,11 +3250,11 @@ var Tiles = ({
|
|
|
3202
3250
|
|
|
3203
3251
|
// src/Tooltip/Tooltip.tsx
|
|
3204
3252
|
import { OverlayArrow, Tooltip } from "react-aria-components";
|
|
3205
|
-
import { cn as
|
|
3253
|
+
import { cn as cn49, useClassNames as useClassNames47 } from "@marigold/system";
|
|
3206
3254
|
|
|
3207
3255
|
// src/Tooltip/TooltipTrigger.tsx
|
|
3208
3256
|
import { TooltipTrigger } from "react-aria-components";
|
|
3209
|
-
import { jsx as
|
|
3257
|
+
import { jsx as jsx85 } from "react/jsx-runtime";
|
|
3210
3258
|
var _TooltipTrigger = ({
|
|
3211
3259
|
delay = 1e3,
|
|
3212
3260
|
children,
|
|
@@ -3220,19 +3268,19 @@ var _TooltipTrigger = ({
|
|
|
3220
3268
|
isOpen: open,
|
|
3221
3269
|
delay
|
|
3222
3270
|
};
|
|
3223
|
-
return /* @__PURE__ */
|
|
3271
|
+
return /* @__PURE__ */ jsx85(TooltipTrigger, { ...props, children });
|
|
3224
3272
|
};
|
|
3225
3273
|
|
|
3226
3274
|
// src/Tooltip/Tooltip.tsx
|
|
3227
|
-
import { jsx as
|
|
3275
|
+
import { jsx as jsx86, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
3228
3276
|
var _Tooltip = ({ children, variant, size, open, ...rest }) => {
|
|
3229
3277
|
const props = {
|
|
3230
3278
|
...rest,
|
|
3231
3279
|
isOpen: open
|
|
3232
3280
|
};
|
|
3233
|
-
const classNames2 =
|
|
3234
|
-
return /* @__PURE__ */
|
|
3235
|
-
/* @__PURE__ */
|
|
3281
|
+
const classNames2 = useClassNames47({ component: "Tooltip", variant, size });
|
|
3282
|
+
return /* @__PURE__ */ jsxs32(Tooltip, { ...props, className: cn49("group/tooltip", classNames2.container), children: [
|
|
3283
|
+
/* @__PURE__ */ jsx86(OverlayArrow, { className: classNames2.arrow, children: /* @__PURE__ */ jsx86("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ jsx86("path", { d: "M0 0 L4 4 L8 0" }) }) }),
|
|
3236
3284
|
children
|
|
3237
3285
|
] });
|
|
3238
3286
|
};
|
|
@@ -3240,12 +3288,12 @@ _Tooltip.Trigger = _TooltipTrigger;
|
|
|
3240
3288
|
|
|
3241
3289
|
// src/TagGroup/Tag.tsx
|
|
3242
3290
|
import { Button as Button6, Tag } from "react-aria-components";
|
|
3243
|
-
import { cn as
|
|
3291
|
+
import { cn as cn50, useClassNames as useClassNames49 } from "@marigold/system";
|
|
3244
3292
|
|
|
3245
3293
|
// src/TagGroup/TagGroup.tsx
|
|
3246
3294
|
import { TagGroup, TagList } from "react-aria-components";
|
|
3247
|
-
import { useClassNames as
|
|
3248
|
-
import { jsx as
|
|
3295
|
+
import { useClassNames as useClassNames48 } from "@marigold/system";
|
|
3296
|
+
import { jsx as jsx87 } from "react/jsx-runtime";
|
|
3249
3297
|
var _TagGroup = ({
|
|
3250
3298
|
width,
|
|
3251
3299
|
items,
|
|
@@ -3255,8 +3303,8 @@ var _TagGroup = ({
|
|
|
3255
3303
|
size,
|
|
3256
3304
|
...rest
|
|
3257
3305
|
}) => {
|
|
3258
|
-
const classNames2 =
|
|
3259
|
-
return /* @__PURE__ */
|
|
3306
|
+
const classNames2 = useClassNames48({ component: "Tag", variant, size });
|
|
3307
|
+
return /* @__PURE__ */ jsx87(FieldBase, { as: TagGroup, ...rest, children: /* @__PURE__ */ jsx87(
|
|
3260
3308
|
TagList,
|
|
3261
3309
|
{
|
|
3262
3310
|
items,
|
|
@@ -3268,19 +3316,19 @@ var _TagGroup = ({
|
|
|
3268
3316
|
};
|
|
3269
3317
|
|
|
3270
3318
|
// src/TagGroup/Tag.tsx
|
|
3271
|
-
import { Fragment as Fragment7, jsx as
|
|
3319
|
+
import { Fragment as Fragment7, jsx as jsx88, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
3272
3320
|
var CloseButton2 = ({ className }) => {
|
|
3273
|
-
return /* @__PURE__ */
|
|
3321
|
+
return /* @__PURE__ */ jsx88(Button6, { slot: "remove", className, children: /* @__PURE__ */ jsx88("svg", { viewBox: "0 0 20 20", fill: "currentColor", width: 20, height: 20, children: /* @__PURE__ */ jsx88("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" }) }) });
|
|
3274
3322
|
};
|
|
3275
3323
|
var _Tag = ({ variant, size, children, ...props }) => {
|
|
3276
3324
|
let textValue = typeof children === "string" ? children : void 0;
|
|
3277
|
-
const classNames2 =
|
|
3278
|
-
return /* @__PURE__ */
|
|
3325
|
+
const classNames2 = useClassNames49({ component: "Tag", variant, size });
|
|
3326
|
+
return /* @__PURE__ */ jsx88(Tag, { textValue, ...props, className: classNames2.tag, children: ({ allowsRemoving }) => /* @__PURE__ */ jsxs33(Fragment7, { children: [
|
|
3279
3327
|
children,
|
|
3280
|
-
allowsRemoving && /* @__PURE__ */
|
|
3328
|
+
allowsRemoving && /* @__PURE__ */ jsx88(
|
|
3281
3329
|
CloseButton2,
|
|
3282
3330
|
{
|
|
3283
|
-
className:
|
|
3331
|
+
className: cn50("flex items-center", classNames2.closeButton)
|
|
3284
3332
|
}
|
|
3285
3333
|
)
|
|
3286
3334
|
] }) });
|
|
@@ -3293,8 +3341,8 @@ import { VisuallyHidden } from "@react-aria/visually-hidden";
|
|
|
3293
3341
|
// src/XLoader/XLoader.tsx
|
|
3294
3342
|
import { forwardRef as forwardRef24 } from "react";
|
|
3295
3343
|
import { SVG as SVG5 } from "@marigold/system";
|
|
3296
|
-
import { jsx as
|
|
3297
|
-
var XLoader = forwardRef24((props, ref) => /* @__PURE__ */
|
|
3344
|
+
import { jsx as jsx89, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
3345
|
+
var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs34(
|
|
3298
3346
|
SVG5,
|
|
3299
3347
|
{
|
|
3300
3348
|
id: "XLoader",
|
|
@@ -3304,13 +3352,13 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs33(
|
|
|
3304
3352
|
...props,
|
|
3305
3353
|
...ref,
|
|
3306
3354
|
children: [
|
|
3307
|
-
/* @__PURE__ */
|
|
3308
|
-
/* @__PURE__ */
|
|
3355
|
+
/* @__PURE__ */ jsx89("path", { id: "XMLID_1_", d: "M35.3 27h26.5l54 74.1H88.7z" }),
|
|
3356
|
+
/* @__PURE__ */ jsx89(
|
|
3309
3357
|
"path",
|
|
3310
3358
|
{
|
|
3311
3359
|
id: "XMLID_5_",
|
|
3312
3360
|
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",
|
|
3313
|
-
children: /* @__PURE__ */
|
|
3361
|
+
children: /* @__PURE__ */ jsx89(
|
|
3314
3362
|
"animate",
|
|
3315
3363
|
{
|
|
3316
3364
|
attributeName: "opacity",
|
|
@@ -3323,12 +3371,12 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs33(
|
|
|
3323
3371
|
)
|
|
3324
3372
|
}
|
|
3325
3373
|
),
|
|
3326
|
-
/* @__PURE__ */
|
|
3374
|
+
/* @__PURE__ */ jsx89(
|
|
3327
3375
|
"path",
|
|
3328
3376
|
{
|
|
3329
3377
|
id: "XMLID_18_",
|
|
3330
3378
|
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",
|
|
3331
|
-
children: /* @__PURE__ */
|
|
3379
|
+
children: /* @__PURE__ */ jsx89(
|
|
3332
3380
|
"animate",
|
|
3333
3381
|
{
|
|
3334
3382
|
attributeName: "opacity",
|
|
@@ -3341,12 +3389,12 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs33(
|
|
|
3341
3389
|
)
|
|
3342
3390
|
}
|
|
3343
3391
|
),
|
|
3344
|
-
/* @__PURE__ */
|
|
3392
|
+
/* @__PURE__ */ jsx89(
|
|
3345
3393
|
"path",
|
|
3346
3394
|
{
|
|
3347
3395
|
id: "XMLID_19_",
|
|
3348
3396
|
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",
|
|
3349
|
-
children: /* @__PURE__ */
|
|
3397
|
+
children: /* @__PURE__ */ jsx89(
|
|
3350
3398
|
"animate",
|
|
3351
3399
|
{
|
|
3352
3400
|
attributeName: "opacity",
|
|
@@ -3359,12 +3407,12 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs33(
|
|
|
3359
3407
|
)
|
|
3360
3408
|
}
|
|
3361
3409
|
),
|
|
3362
|
-
/* @__PURE__ */
|
|
3410
|
+
/* @__PURE__ */ jsx89(
|
|
3363
3411
|
"path",
|
|
3364
3412
|
{
|
|
3365
3413
|
id: "XMLID_20_",
|
|
3366
3414
|
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",
|
|
3367
|
-
children: /* @__PURE__ */
|
|
3415
|
+
children: /* @__PURE__ */ jsx89(
|
|
3368
3416
|
"animate",
|
|
3369
3417
|
{
|
|
3370
3418
|
attributeName: "opacity",
|
|
@@ -3377,12 +3425,12 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs33(
|
|
|
3377
3425
|
)
|
|
3378
3426
|
}
|
|
3379
3427
|
),
|
|
3380
|
-
/* @__PURE__ */
|
|
3428
|
+
/* @__PURE__ */ jsx89(
|
|
3381
3429
|
"path",
|
|
3382
3430
|
{
|
|
3383
3431
|
id: "XMLID_21_",
|
|
3384
3432
|
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",
|
|
3385
|
-
children: /* @__PURE__ */
|
|
3433
|
+
children: /* @__PURE__ */ jsx89(
|
|
3386
3434
|
"animate",
|
|
3387
3435
|
{
|
|
3388
3436
|
attributeName: "opacity",
|
|
@@ -3395,12 +3443,12 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs33(
|
|
|
3395
3443
|
)
|
|
3396
3444
|
}
|
|
3397
3445
|
),
|
|
3398
|
-
/* @__PURE__ */
|
|
3446
|
+
/* @__PURE__ */ jsx89(
|
|
3399
3447
|
"path",
|
|
3400
3448
|
{
|
|
3401
3449
|
id: "XMLID_22_",
|
|
3402
3450
|
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",
|
|
3403
|
-
children: /* @__PURE__ */
|
|
3451
|
+
children: /* @__PURE__ */ jsx89(
|
|
3404
3452
|
"animate",
|
|
3405
3453
|
{
|
|
3406
3454
|
attributeName: "opacity",
|
|
@@ -3413,12 +3461,12 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs33(
|
|
|
3413
3461
|
)
|
|
3414
3462
|
}
|
|
3415
3463
|
),
|
|
3416
|
-
/* @__PURE__ */
|
|
3464
|
+
/* @__PURE__ */ jsx89(
|
|
3417
3465
|
"path",
|
|
3418
3466
|
{
|
|
3419
3467
|
id: "XMLID_23_",
|
|
3420
3468
|
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",
|
|
3421
|
-
children: /* @__PURE__ */
|
|
3469
|
+
children: /* @__PURE__ */ jsx89(
|
|
3422
3470
|
"animate",
|
|
3423
3471
|
{
|
|
3424
3472
|
attributeName: "opacity",
|
|
@@ -3431,12 +3479,12 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs33(
|
|
|
3431
3479
|
)
|
|
3432
3480
|
}
|
|
3433
3481
|
),
|
|
3434
|
-
/* @__PURE__ */
|
|
3482
|
+
/* @__PURE__ */ jsx89(
|
|
3435
3483
|
"path",
|
|
3436
3484
|
{
|
|
3437
3485
|
id: "XMLID_24_",
|
|
3438
3486
|
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",
|
|
3439
|
-
children: /* @__PURE__ */
|
|
3487
|
+
children: /* @__PURE__ */ jsx89(
|
|
3440
3488
|
"animate",
|
|
3441
3489
|
{
|
|
3442
3490
|
attributeName: "opacity",
|
|
@@ -3449,12 +3497,12 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs33(
|
|
|
3449
3497
|
)
|
|
3450
3498
|
}
|
|
3451
3499
|
),
|
|
3452
|
-
/* @__PURE__ */
|
|
3500
|
+
/* @__PURE__ */ jsx89(
|
|
3453
3501
|
"path",
|
|
3454
3502
|
{
|
|
3455
3503
|
id: "XMLID_25_",
|
|
3456
3504
|
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",
|
|
3457
|
-
children: /* @__PURE__ */
|
|
3505
|
+
children: /* @__PURE__ */ jsx89(
|
|
3458
3506
|
"animate",
|
|
3459
3507
|
{
|
|
3460
3508
|
attributeName: "opacity",
|
|
@@ -3467,12 +3515,12 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs33(
|
|
|
3467
3515
|
)
|
|
3468
3516
|
}
|
|
3469
3517
|
),
|
|
3470
|
-
/* @__PURE__ */
|
|
3518
|
+
/* @__PURE__ */ jsx89(
|
|
3471
3519
|
"path",
|
|
3472
3520
|
{
|
|
3473
3521
|
id: "XMLID_26_",
|
|
3474
3522
|
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",
|
|
3475
|
-
children: /* @__PURE__ */
|
|
3523
|
+
children: /* @__PURE__ */ jsx89(
|
|
3476
3524
|
"animate",
|
|
3477
3525
|
{
|
|
3478
3526
|
attributeName: "opacity",
|
|
@@ -3485,12 +3533,12 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs33(
|
|
|
3485
3533
|
)
|
|
3486
3534
|
}
|
|
3487
3535
|
),
|
|
3488
|
-
/* @__PURE__ */
|
|
3536
|
+
/* @__PURE__ */ jsx89(
|
|
3489
3537
|
"path",
|
|
3490
3538
|
{
|
|
3491
3539
|
id: "XMLID_27_",
|
|
3492
3540
|
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",
|
|
3493
|
-
children: /* @__PURE__ */
|
|
3541
|
+
children: /* @__PURE__ */ jsx89(
|
|
3494
3542
|
"animate",
|
|
3495
3543
|
{
|
|
3496
3544
|
attributeName: "opacity",
|
|
@@ -3509,24 +3557,24 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs33(
|
|
|
3509
3557
|
|
|
3510
3558
|
// src/Tabs/Tabs.tsx
|
|
3511
3559
|
import { Tabs } from "react-aria-components";
|
|
3512
|
-
import { useClassNames as
|
|
3560
|
+
import { useClassNames as useClassNames50 } from "@marigold/system";
|
|
3513
3561
|
|
|
3514
3562
|
// src/Tabs/Context.ts
|
|
3515
|
-
import { createContext as
|
|
3516
|
-
var TabContext =
|
|
3517
|
-
var useTabContext = () =>
|
|
3563
|
+
import { createContext as createContext8, useContext as useContext14 } from "react";
|
|
3564
|
+
var TabContext = createContext8({});
|
|
3565
|
+
var useTabContext = () => useContext14(TabContext);
|
|
3518
3566
|
|
|
3519
3567
|
// src/Tabs/Tab.tsx
|
|
3520
3568
|
import { Tab } from "react-aria-components";
|
|
3521
|
-
import { cn as
|
|
3522
|
-
import { jsx as
|
|
3569
|
+
import { cn as cn51 } from "@marigold/system";
|
|
3570
|
+
import { jsx as jsx90 } from "react/jsx-runtime";
|
|
3523
3571
|
var _Tab = (props) => {
|
|
3524
3572
|
const { classNames: classNames2 } = useTabContext();
|
|
3525
|
-
return /* @__PURE__ */
|
|
3573
|
+
return /* @__PURE__ */ jsx90(
|
|
3526
3574
|
Tab,
|
|
3527
3575
|
{
|
|
3528
3576
|
...props,
|
|
3529
|
-
className:
|
|
3577
|
+
className: cn51(
|
|
3530
3578
|
"flex cursor-pointer justify-center aria-disabled:cursor-not-allowed",
|
|
3531
3579
|
classNames2.tab
|
|
3532
3580
|
),
|
|
@@ -3537,15 +3585,15 @@ var _Tab = (props) => {
|
|
|
3537
3585
|
|
|
3538
3586
|
// src/Tabs/TabList.tsx
|
|
3539
3587
|
import { TabList } from "react-aria-components";
|
|
3540
|
-
import { cn as
|
|
3541
|
-
import { jsx as
|
|
3588
|
+
import { cn as cn52, gapSpace as gapSpace8 } from "@marigold/system";
|
|
3589
|
+
import { jsx as jsx91 } from "react/jsx-runtime";
|
|
3542
3590
|
var _TabList = ({ space = 2, ...props }) => {
|
|
3543
3591
|
const { classNames: classNames2 } = useTabContext();
|
|
3544
|
-
return /* @__PURE__ */
|
|
3592
|
+
return /* @__PURE__ */ jsx91(
|
|
3545
3593
|
TabList,
|
|
3546
3594
|
{
|
|
3547
3595
|
...props,
|
|
3548
|
-
className:
|
|
3596
|
+
className: cn52("flex", gapSpace8[space], classNames2.tabsList),
|
|
3549
3597
|
children: props.children
|
|
3550
3598
|
}
|
|
3551
3599
|
);
|
|
@@ -3553,29 +3601,32 @@ var _TabList = ({ space = 2, ...props }) => {
|
|
|
3553
3601
|
|
|
3554
3602
|
// src/Tabs/TabPanel.tsx
|
|
3555
3603
|
import { TabPanel } from "react-aria-components";
|
|
3556
|
-
import { jsx as
|
|
3604
|
+
import { jsx as jsx92 } from "react/jsx-runtime";
|
|
3557
3605
|
var _TabPanel = (props) => {
|
|
3558
3606
|
const { classNames: classNames2 } = useTabContext();
|
|
3559
|
-
return /* @__PURE__ */
|
|
3607
|
+
return /* @__PURE__ */ jsx92(TabPanel, { ...props, className: classNames2.tabpanel, children: props.children });
|
|
3560
3608
|
};
|
|
3561
3609
|
|
|
3562
3610
|
// src/Tabs/Tabs.tsx
|
|
3563
|
-
import { jsx as
|
|
3611
|
+
import { jsx as jsx93 } from "react/jsx-runtime";
|
|
3564
3612
|
var _Tabs = ({ disabled, variant, size = "medium", ...rest }) => {
|
|
3565
3613
|
const props = {
|
|
3566
3614
|
isDisabled: disabled,
|
|
3567
3615
|
...rest
|
|
3568
3616
|
};
|
|
3569
|
-
const classNames2 =
|
|
3617
|
+
const classNames2 = useClassNames50({
|
|
3570
3618
|
component: "Tabs",
|
|
3571
3619
|
size,
|
|
3572
3620
|
variant
|
|
3573
3621
|
});
|
|
3574
|
-
return /* @__PURE__ */
|
|
3622
|
+
return /* @__PURE__ */ jsx93(TabContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ jsx93(Tabs, { ...props, className: classNames2.container, children: props.children }) });
|
|
3575
3623
|
};
|
|
3576
3624
|
_Tabs.List = _TabList;
|
|
3577
3625
|
_Tabs.TabPanel = _TabPanel;
|
|
3578
3626
|
_Tabs.Item = _Tab;
|
|
3627
|
+
|
|
3628
|
+
// src/RouterProvider/RouterProvider.tsx
|
|
3629
|
+
import { RouterProvider } from "react-aria-components";
|
|
3579
3630
|
export {
|
|
3580
3631
|
Accordion,
|
|
3581
3632
|
AccordionItem,
|
|
@@ -3624,6 +3675,7 @@ export {
|
|
|
3624
3675
|
_Popover as Popover,
|
|
3625
3676
|
_Radio as Radio,
|
|
3626
3677
|
_RadioGroup as RadioGroup,
|
|
3678
|
+
RouterProvider,
|
|
3627
3679
|
Scrollable,
|
|
3628
3680
|
_SearchField as SearchField,
|
|
3629
3681
|
_Select as Select,
|