@marigold/components 13.0.0 → 14.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +13 -9
- package/dist/index.d.ts +13 -9
- package/dist/index.js +140 -142
- package/dist/index.mjs +146 -142
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -1745,21 +1745,11 @@ var ProgressCycle = ({
|
|
|
1745
1745
|
// src/Button/Button.tsx
|
|
1746
1746
|
import { Fragment as Fragment2, jsx as jsx30, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1747
1747
|
var _Button = forwardRef13(
|
|
1748
|
-
({
|
|
1749
|
-
children,
|
|
1750
|
-
variant,
|
|
1751
|
-
size: size2,
|
|
1752
|
-
className,
|
|
1753
|
-
disabled,
|
|
1754
|
-
loading,
|
|
1755
|
-
fullWidth,
|
|
1756
|
-
...props
|
|
1757
|
-
}, ref) => {
|
|
1748
|
+
({ children, variant, size: size2, disabled, loading, fullWidth, ...props }, ref) => {
|
|
1758
1749
|
const classNames3 = useClassNames15({
|
|
1759
1750
|
component: "Button",
|
|
1760
1751
|
variant,
|
|
1761
|
-
size: size2
|
|
1762
|
-
className
|
|
1752
|
+
size: size2
|
|
1763
1753
|
});
|
|
1764
1754
|
return /* @__PURE__ */ jsx30(
|
|
1765
1755
|
Button4,
|
|
@@ -2191,9 +2181,7 @@ var icons = {
|
|
|
2191
2181
|
}
|
|
2192
2182
|
)
|
|
2193
2183
|
};
|
|
2194
|
-
var DialogTrigger =
|
|
2195
|
-
({ open, ...rest }, ref) => /* @__PURE__ */ jsx39(RACDialogTrigger, { isOpen: open, ...rest })
|
|
2196
|
-
);
|
|
2184
|
+
var DialogTrigger = ({ open, ...rest }) => /* @__PURE__ */ jsx39(RACDialogTrigger, { isOpen: open, ...rest });
|
|
2197
2185
|
var _ContextualHelp = forwardRef15(
|
|
2198
2186
|
({
|
|
2199
2187
|
children,
|
|
@@ -3006,7 +2994,11 @@ var _DateField = forwardRef20(
|
|
|
3006
2994
|
// src/Calendar/Calendar.tsx
|
|
3007
2995
|
import { useState } from "react";
|
|
3008
2996
|
import { Calendar } from "react-aria-components";
|
|
3009
|
-
import {
|
|
2997
|
+
import {
|
|
2998
|
+
cn as cn44,
|
|
2999
|
+
width as twWidth2,
|
|
3000
|
+
useClassNames as useClassNames41
|
|
3001
|
+
} from "@marigold/system";
|
|
3010
3002
|
|
|
3011
3003
|
// src/Calendar/CalendarGrid.tsx
|
|
3012
3004
|
import {
|
|
@@ -3282,6 +3274,7 @@ var _Calendar = ({
|
|
|
3282
3274
|
readOnly,
|
|
3283
3275
|
size: size2,
|
|
3284
3276
|
variant,
|
|
3277
|
+
width = "fit",
|
|
3285
3278
|
dateUnavailable,
|
|
3286
3279
|
...rest
|
|
3287
3280
|
}) => {
|
|
@@ -3301,7 +3294,8 @@ var _Calendar = ({
|
|
|
3301
3294
|
Calendar,
|
|
3302
3295
|
{
|
|
3303
3296
|
className: cn44(
|
|
3304
|
-
"relative flex min-h-[350px]
|
|
3297
|
+
"relative flex min-h-[350px] flex-col rounded-xs p-4",
|
|
3298
|
+
twWidth2[width],
|
|
3305
3299
|
classNames3.calendar
|
|
3306
3300
|
),
|
|
3307
3301
|
...props,
|
|
@@ -9884,7 +9878,9 @@ var _SearchField = forwardRef27(
|
|
|
9884
9878
|
);
|
|
9885
9879
|
|
|
9886
9880
|
// src/Select/Select.tsx
|
|
9887
|
-
import {
|
|
9881
|
+
import {
|
|
9882
|
+
forwardRef as forwardRef28
|
|
9883
|
+
} from "react";
|
|
9888
9884
|
import { Select as Select2, SelectValue } from "react-aria-components";
|
|
9889
9885
|
import { cn as cn55, useClassNames as useClassNames57 } from "@marigold/system";
|
|
9890
9886
|
import { jsx as jsx96, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
@@ -9944,12 +9940,16 @@ var SelectListContext = createContext13(
|
|
|
9944
9940
|
);
|
|
9945
9941
|
var useSelectListContext = () => useContext23(SelectListContext);
|
|
9946
9942
|
|
|
9943
|
+
// src/SelectList/SelectListAction.tsx
|
|
9944
|
+
import { jsx as jsx97 } from "react/jsx-runtime";
|
|
9945
|
+
var SelectListAction = ({ children }) => /* @__PURE__ */ jsx97("div", { className: "order-last", children });
|
|
9946
|
+
|
|
9947
9947
|
// src/SelectList/SelectListItem.tsx
|
|
9948
9948
|
import { forwardRef as forwardRef29 } from "react";
|
|
9949
9949
|
import { GridListItem as SelectListItem } from "react-aria-components";
|
|
9950
9950
|
import { cn as cn56 } from "@marigold/system";
|
|
9951
|
-
import { jsx as
|
|
9952
|
-
var CheckMark3 = ({ className }) => /* @__PURE__ */
|
|
9951
|
+
import { jsx as jsx98, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
9952
|
+
var CheckMark3 = ({ className }) => /* @__PURE__ */ jsx98("svg", { width: "12px", height: "10px", viewBox: "0 0 12 10", className, children: /* @__PURE__ */ jsx98(
|
|
9953
9953
|
"path",
|
|
9954
9954
|
{
|
|
9955
9955
|
fill: "currentColor",
|
|
@@ -9960,10 +9960,10 @@ var CheckMark3 = ({ className }) => /* @__PURE__ */ jsx97("svg", { width: "12px"
|
|
|
9960
9960
|
var SelectionIndicator = ({ selectionMode }) => {
|
|
9961
9961
|
switch (selectionMode) {
|
|
9962
9962
|
case "multiple": {
|
|
9963
|
-
return /* @__PURE__ */
|
|
9963
|
+
return /* @__PURE__ */ jsx98(_Checkbox, { slot: "selection" });
|
|
9964
9964
|
}
|
|
9965
9965
|
case "single": {
|
|
9966
|
-
return /* @__PURE__ */
|
|
9966
|
+
return /* @__PURE__ */ jsx98(CheckMark3, { className: "invisible hidden" });
|
|
9967
9967
|
}
|
|
9968
9968
|
}
|
|
9969
9969
|
};
|
|
@@ -9971,16 +9971,19 @@ var _SelectListItem = forwardRef29(
|
|
|
9971
9971
|
({ children, disabled, ...props }, ref) => {
|
|
9972
9972
|
let textValue = typeof children === "string" ? children : void 0;
|
|
9973
9973
|
const { classNames: classNames3 } = useSelectListContext();
|
|
9974
|
-
return /* @__PURE__ */
|
|
9974
|
+
return /* @__PURE__ */ jsx98(
|
|
9975
9975
|
SelectListItem,
|
|
9976
9976
|
{
|
|
9977
9977
|
isDisabled: disabled,
|
|
9978
9978
|
textValue,
|
|
9979
9979
|
...props,
|
|
9980
|
-
className: cn56(
|
|
9980
|
+
className: cn56(
|
|
9981
|
+
classNames3 == null ? void 0 : classNames3.item,
|
|
9982
|
+
"grid grid-flow-col [grid-template-columns:min-content_1fr]"
|
|
9983
|
+
),
|
|
9981
9984
|
ref,
|
|
9982
9985
|
children: ({ selectionMode }) => /* @__PURE__ */ jsxs36("div", { className: "selection-indicator contents", children: [
|
|
9983
|
-
/* @__PURE__ */
|
|
9986
|
+
/* @__PURE__ */ jsx98(SelectionIndicator, { selectionMode }),
|
|
9984
9987
|
children
|
|
9985
9988
|
] })
|
|
9986
9989
|
}
|
|
@@ -9989,7 +9992,7 @@ var _SelectListItem = forwardRef29(
|
|
|
9989
9992
|
);
|
|
9990
9993
|
|
|
9991
9994
|
// src/SelectList/SelectList.tsx
|
|
9992
|
-
import { jsx as
|
|
9995
|
+
import { jsx as jsx99 } from "react/jsx-runtime";
|
|
9993
9996
|
var _SelectList = forwardRef30(
|
|
9994
9997
|
({ onChange: onChange2, ...rest }, ref) => {
|
|
9995
9998
|
const classNames3 = useClassNames58({ component: "ListBox" });
|
|
@@ -9997,7 +10000,7 @@ var _SelectList = forwardRef30(
|
|
|
9997
10000
|
onSelectionChange: onChange2,
|
|
9998
10001
|
...rest
|
|
9999
10002
|
};
|
|
10000
|
-
return /* @__PURE__ */
|
|
10003
|
+
return /* @__PURE__ */ jsx99(SelectListContext.Provider, { value: { classNames: classNames3 }, children: /* @__PURE__ */ jsx99("div", { className: classNames3.container, children: /* @__PURE__ */ jsx99(
|
|
10001
10004
|
SelectList,
|
|
10002
10005
|
{
|
|
10003
10006
|
...props,
|
|
@@ -10013,20 +10016,21 @@ var _SelectList = forwardRef30(
|
|
|
10013
10016
|
}
|
|
10014
10017
|
);
|
|
10015
10018
|
_SelectList.Item = _SelectListItem;
|
|
10019
|
+
_SelectList.Action = SelectListAction;
|
|
10016
10020
|
|
|
10017
10021
|
// src/Scrollable/Scrollable.tsx
|
|
10018
|
-
import { cn as cn58, createVar as createVar6, width as
|
|
10019
|
-
import { jsx as
|
|
10022
|
+
import { cn as cn58, createVar as createVar6, width as twWidth3 } from "@marigold/system";
|
|
10023
|
+
import { jsx as jsx100 } from "react/jsx-runtime";
|
|
10020
10024
|
var Scrollable = ({
|
|
10021
10025
|
children,
|
|
10022
10026
|
width = "full",
|
|
10023
10027
|
height,
|
|
10024
10028
|
...props
|
|
10025
|
-
}) => /* @__PURE__ */
|
|
10029
|
+
}) => /* @__PURE__ */ jsx100(
|
|
10026
10030
|
"div",
|
|
10027
10031
|
{
|
|
10028
10032
|
...props,
|
|
10029
|
-
className: cn58(["sticky h-(--height) overflow-auto",
|
|
10033
|
+
className: cn58(["sticky h-(--height) overflow-auto", twWidth3[width]]),
|
|
10030
10034
|
style: createVar6({ height }),
|
|
10031
10035
|
children
|
|
10032
10036
|
}
|
|
@@ -10042,10 +10046,10 @@ import {
|
|
|
10042
10046
|
} from "react-aria-components";
|
|
10043
10047
|
import {
|
|
10044
10048
|
cn as cn59,
|
|
10045
|
-
width as
|
|
10049
|
+
width as twWidth4,
|
|
10046
10050
|
useClassNames as useClassNames59
|
|
10047
10051
|
} from "@marigold/system";
|
|
10048
|
-
import { Fragment as Fragment10, jsx as
|
|
10052
|
+
import { Fragment as Fragment10, jsx as jsx101, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
10049
10053
|
var _Slider = forwardRef31(
|
|
10050
10054
|
({
|
|
10051
10055
|
thumbLabels,
|
|
@@ -10072,19 +10076,19 @@ var _Slider = forwardRef31(
|
|
|
10072
10076
|
className: cn59(
|
|
10073
10077
|
"grid grid-cols-[auto_1fr] gap-y-1",
|
|
10074
10078
|
classNames3.container,
|
|
10075
|
-
|
|
10079
|
+
twWidth4[width]
|
|
10076
10080
|
),
|
|
10077
10081
|
ref,
|
|
10078
10082
|
...props,
|
|
10079
10083
|
children: [
|
|
10080
|
-
label && /* @__PURE__ */
|
|
10081
|
-
/* @__PURE__ */
|
|
10082
|
-
/* @__PURE__ */
|
|
10084
|
+
label && /* @__PURE__ */ jsx101(_Label, { children: label }),
|
|
10085
|
+
/* @__PURE__ */ jsx101(SliderOutput, { className: cn59("flex justify-end", classNames3.output), children: ({ state }) => state.values.map((_, i) => state.getThumbValueLabel(i)).join(" \u2013 ") }),
|
|
10086
|
+
/* @__PURE__ */ jsx101(
|
|
10083
10087
|
SliderTrack,
|
|
10084
10088
|
{
|
|
10085
10089
|
className: cn59("relative col-span-2 h-2 w-full", classNames3.track),
|
|
10086
10090
|
children: ({ state }) => /* @__PURE__ */ jsxs37(Fragment10, { children: [
|
|
10087
|
-
/* @__PURE__ */
|
|
10091
|
+
/* @__PURE__ */ jsx101(
|
|
10088
10092
|
"div",
|
|
10089
10093
|
{
|
|
10090
10094
|
className: cn59(
|
|
@@ -10093,7 +10097,7 @@ var _Slider = forwardRef31(
|
|
|
10093
10097
|
)
|
|
10094
10098
|
}
|
|
10095
10099
|
),
|
|
10096
|
-
/* @__PURE__ */
|
|
10100
|
+
/* @__PURE__ */ jsx101(
|
|
10097
10101
|
"div",
|
|
10098
10102
|
{
|
|
10099
10103
|
className: cn59(
|
|
@@ -10106,7 +10110,7 @@ var _Slider = forwardRef31(
|
|
|
10106
10110
|
}
|
|
10107
10111
|
}
|
|
10108
10112
|
),
|
|
10109
|
-
state.values.map((_, i) => /* @__PURE__ */
|
|
10113
|
+
state.values.map((_, i) => /* @__PURE__ */ jsx101(
|
|
10110
10114
|
SliderThumb,
|
|
10111
10115
|
{
|
|
10112
10116
|
className: cn59("top-1/2 cursor-pointer", classNames3.thumb),
|
|
@@ -10126,13 +10130,13 @@ var _Slider = forwardRef31(
|
|
|
10126
10130
|
);
|
|
10127
10131
|
|
|
10128
10132
|
// src/Split/Split.tsx
|
|
10129
|
-
import { jsx as
|
|
10130
|
-
var Split = () => /* @__PURE__ */
|
|
10133
|
+
import { jsx as jsx102 } from "react/jsx-runtime";
|
|
10134
|
+
var Split = () => /* @__PURE__ */ jsx102("div", { role: "separator", className: "grow" });
|
|
10131
10135
|
|
|
10132
10136
|
// src/Stack/Stack.tsx
|
|
10133
10137
|
import { Children as Children3 } from "react";
|
|
10134
10138
|
import { alignment as alignment3, cn as cn60, gapSpace as gapSpace8 } from "@marigold/system";
|
|
10135
|
-
import { jsx as
|
|
10139
|
+
import { jsx as jsx103 } from "react/jsx-runtime";
|
|
10136
10140
|
var Stack = ({
|
|
10137
10141
|
children,
|
|
10138
10142
|
space = 0,
|
|
@@ -10144,8 +10148,8 @@ var Stack = ({
|
|
|
10144
10148
|
}) => {
|
|
10145
10149
|
var _a, _b, _c, _d;
|
|
10146
10150
|
const Component2 = asList ? "ul" : "div";
|
|
10147
|
-
const stackChildren = asList ? Children3.map(children, (child) => child != null ? /* @__PURE__ */
|
|
10148
|
-
return /* @__PURE__ */
|
|
10151
|
+
const stackChildren = asList ? Children3.map(children, (child) => child != null ? /* @__PURE__ */ jsx103("li", { children: child }) : null) : children;
|
|
10152
|
+
return /* @__PURE__ */ jsx103(
|
|
10149
10153
|
Component2,
|
|
10150
10154
|
{
|
|
10151
10155
|
className: cn60(
|
|
@@ -10166,10 +10170,10 @@ import { forwardRef as forwardRef32 } from "react";
|
|
|
10166
10170
|
import { Switch } from "react-aria-components";
|
|
10167
10171
|
import {
|
|
10168
10172
|
cn as cn61,
|
|
10169
|
-
width as
|
|
10173
|
+
width as twWidth5,
|
|
10170
10174
|
useClassNames as useClassNames60
|
|
10171
10175
|
} from "@marigold/system";
|
|
10172
|
-
import { jsx as
|
|
10176
|
+
import { jsx as jsx104, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
10173
10177
|
var _Switch = forwardRef32(
|
|
10174
10178
|
({
|
|
10175
10179
|
variant,
|
|
@@ -10194,14 +10198,14 @@ var _Switch = forwardRef32(
|
|
|
10194
10198
|
...props,
|
|
10195
10199
|
ref,
|
|
10196
10200
|
className: cn61(
|
|
10197
|
-
|
|
10201
|
+
twWidth5[width],
|
|
10198
10202
|
"group/switch",
|
|
10199
10203
|
"flex items-center gap-[1ch]",
|
|
10200
10204
|
classNames3.container
|
|
10201
10205
|
),
|
|
10202
10206
|
children: [
|
|
10203
|
-
label && /* @__PURE__ */
|
|
10204
|
-
/* @__PURE__ */
|
|
10207
|
+
label && /* @__PURE__ */ jsx104(_Label, { elementType: "span", children: label }),
|
|
10208
|
+
/* @__PURE__ */ jsx104("div", { className: "relative", children: /* @__PURE__ */ jsx104("div", { className: classNames3.track, children: /* @__PURE__ */ jsx104("div", { className: classNames3.thumb }) }) })
|
|
10205
10209
|
]
|
|
10206
10210
|
}
|
|
10207
10211
|
);
|
|
@@ -10228,7 +10232,7 @@ var useTableContext = () => useContext24(TableContext);
|
|
|
10228
10232
|
|
|
10229
10233
|
// src/Table/TableBody.tsx
|
|
10230
10234
|
import { useTableRowGroup } from "@react-aria/table";
|
|
10231
|
-
import { jsx as
|
|
10235
|
+
import { jsx as jsx105 } from "react/jsx-runtime";
|
|
10232
10236
|
var TableBody = ({
|
|
10233
10237
|
children,
|
|
10234
10238
|
className,
|
|
@@ -10237,7 +10241,7 @@ var TableBody = ({
|
|
|
10237
10241
|
const { rowGroupProps } = useTableRowGroup();
|
|
10238
10242
|
const { state, classNames: classNames3 } = useTableContext();
|
|
10239
10243
|
if (state.collection.size === 0 && emptyState) {
|
|
10240
|
-
return /* @__PURE__ */
|
|
10244
|
+
return /* @__PURE__ */ jsx105("tbody", { className, children: /* @__PURE__ */ jsx105("tr", { className: classNames3 == null ? void 0 : classNames3.row, role: "row", children: /* @__PURE__ */ jsx105(
|
|
10241
10245
|
"td",
|
|
10242
10246
|
{
|
|
10243
10247
|
className: classNames3 == null ? void 0 : classNames3.cell,
|
|
@@ -10247,7 +10251,7 @@ var TableBody = ({
|
|
|
10247
10251
|
}
|
|
10248
10252
|
) }) });
|
|
10249
10253
|
}
|
|
10250
|
-
return /* @__PURE__ */
|
|
10254
|
+
return /* @__PURE__ */ jsx105("tbody", { ...rowGroupProps, className, children });
|
|
10251
10255
|
};
|
|
10252
10256
|
|
|
10253
10257
|
// src/Table/TableCell.tsx
|
|
@@ -10256,7 +10260,7 @@ import { useFocusRing } from "@react-aria/focus";
|
|
|
10256
10260
|
import { useTableCell } from "@react-aria/table";
|
|
10257
10261
|
import { mergeProps as mergeProps2 } from "@react-aria/utils";
|
|
10258
10262
|
import { useStateProps } from "@marigold/system";
|
|
10259
|
-
import { jsx as
|
|
10263
|
+
import { jsx as jsx106 } from "react/jsx-runtime";
|
|
10260
10264
|
var TableCell = ({
|
|
10261
10265
|
cell,
|
|
10262
10266
|
align = "left",
|
|
@@ -10283,7 +10287,7 @@ var TableCell = ({
|
|
|
10283
10287
|
};
|
|
10284
10288
|
const { focusProps, isFocusVisible } = useFocusRing();
|
|
10285
10289
|
const stateProps = useStateProps({ disabled, focusVisible: isFocusVisible });
|
|
10286
|
-
return /* @__PURE__ */
|
|
10290
|
+
return /* @__PURE__ */ jsx106(
|
|
10287
10291
|
"td",
|
|
10288
10292
|
{
|
|
10289
10293
|
ref,
|
|
@@ -10325,7 +10329,7 @@ var mapCheckboxProps = ({
|
|
|
10325
10329
|
};
|
|
10326
10330
|
|
|
10327
10331
|
// src/Table/TableCheckboxCell.tsx
|
|
10328
|
-
import { jsx as
|
|
10332
|
+
import { jsx as jsx107 } from "react/jsx-runtime";
|
|
10329
10333
|
var TableCheckboxCell = ({
|
|
10330
10334
|
cell,
|
|
10331
10335
|
alignY = "middle"
|
|
@@ -10345,7 +10349,7 @@ var TableCheckboxCell = ({
|
|
|
10345
10349
|
);
|
|
10346
10350
|
const { focusProps, isFocusVisible } = useFocusRing2();
|
|
10347
10351
|
const stateProps = useStateProps2({ disabled, focusVisible: isFocusVisible });
|
|
10348
|
-
return /* @__PURE__ */
|
|
10352
|
+
return /* @__PURE__ */ jsx107(
|
|
10349
10353
|
"td",
|
|
10350
10354
|
{
|
|
10351
10355
|
ref,
|
|
@@ -10353,7 +10357,7 @@ var TableCheckboxCell = ({
|
|
|
10353
10357
|
...mergeProps3(gridCellProps, focusProps),
|
|
10354
10358
|
...stateProps,
|
|
10355
10359
|
valign: alignY,
|
|
10356
|
-
children: /* @__PURE__ */
|
|
10360
|
+
children: /* @__PURE__ */ jsx107(_Checkbox, { ...checkboxProps })
|
|
10357
10361
|
}
|
|
10358
10362
|
);
|
|
10359
10363
|
};
|
|
@@ -10364,8 +10368,8 @@ import { useFocusRing as useFocusRing3 } from "@react-aria/focus";
|
|
|
10364
10368
|
import { useHover } from "@react-aria/interactions";
|
|
10365
10369
|
import { useTableColumnHeader } from "@react-aria/table";
|
|
10366
10370
|
import { mergeProps as mergeProps4 } from "@react-aria/utils";
|
|
10367
|
-
import { cn as cn63, width as
|
|
10368
|
-
import { jsx as
|
|
10371
|
+
import { cn as cn63, width as twWidth6, useStateProps as useStateProps3 } from "@marigold/system";
|
|
10372
|
+
import { jsx as jsx108, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
10369
10373
|
var TableColumnHeader = ({
|
|
10370
10374
|
column: column2,
|
|
10371
10375
|
width = "auto",
|
|
@@ -10392,13 +10396,13 @@ var TableColumnHeader = ({
|
|
|
10392
10396
|
{
|
|
10393
10397
|
colSpan: column2.colspan,
|
|
10394
10398
|
ref,
|
|
10395
|
-
className: cn63("cursor-default",
|
|
10399
|
+
className: cn63("cursor-default", twWidth6[width], classNames3 == null ? void 0 : classNames3.header),
|
|
10396
10400
|
...mergeProps4(columnHeaderProps, hoverProps, focusProps),
|
|
10397
10401
|
...stateProps,
|
|
10398
10402
|
align,
|
|
10399
10403
|
children: [
|
|
10400
10404
|
column2.rendered,
|
|
10401
|
-
column2.props.allowsSorting && (((_a = state.sortDescriptor) == null ? void 0 : _a.column) === column2.key ? ((_b = state.sortDescriptor) == null ? void 0 : _b.direction) === "ascending" ? /* @__PURE__ */
|
|
10405
|
+
column2.props.allowsSorting && (((_a = state.sortDescriptor) == null ? void 0 : _a.column) === column2.key ? ((_b = state.sortDescriptor) == null ? void 0 : _b.direction) === "ascending" ? /* @__PURE__ */ jsx108(SortUp, { className: "inline-block" }) : /* @__PURE__ */ jsx108(SortDown, { className: "inline-block" }) : /* @__PURE__ */ jsx108("span", { className: "hidden", children: /* @__PURE__ */ jsx108(SortDown, { className: "inline-block" }) }))
|
|
10402
10406
|
]
|
|
10403
10407
|
}
|
|
10404
10408
|
);
|
|
@@ -10407,11 +10411,11 @@ var TableColumnHeader = ({
|
|
|
10407
10411
|
// src/Table/TableHeader.tsx
|
|
10408
10412
|
import { useTableRowGroup as useTableRowGroup2 } from "@react-aria/table";
|
|
10409
10413
|
import { cn as cn64 } from "@marigold/system";
|
|
10410
|
-
import { jsx as
|
|
10414
|
+
import { jsx as jsx109 } from "react/jsx-runtime";
|
|
10411
10415
|
var TableHeader = ({ stickyHeader, children }) => {
|
|
10412
10416
|
const { rowGroupProps } = useTableRowGroup2();
|
|
10413
10417
|
const { classNames: classNames3 } = useTableContext();
|
|
10414
|
-
return /* @__PURE__ */
|
|
10418
|
+
return /* @__PURE__ */ jsx109(
|
|
10415
10419
|
"thead",
|
|
10416
10420
|
{
|
|
10417
10421
|
...rowGroupProps,
|
|
@@ -10428,7 +10432,7 @@ var TableHeader = ({ stickyHeader, children }) => {
|
|
|
10428
10432
|
// src/Table/TableHeaderRow.tsx
|
|
10429
10433
|
import { useRef as useRef13 } from "react";
|
|
10430
10434
|
import { useTableHeaderRow } from "@react-aria/table";
|
|
10431
|
-
import { jsx as
|
|
10435
|
+
import { jsx as jsx110 } from "react/jsx-runtime";
|
|
10432
10436
|
var TableHeaderRow = ({
|
|
10433
10437
|
item,
|
|
10434
10438
|
className,
|
|
@@ -10437,7 +10441,7 @@ var TableHeaderRow = ({
|
|
|
10437
10441
|
const { state } = useTableContext();
|
|
10438
10442
|
const ref = useRef13(null);
|
|
10439
10443
|
const { rowProps } = useTableHeaderRow({ node: item }, state, ref);
|
|
10440
|
-
return /* @__PURE__ */
|
|
10444
|
+
return /* @__PURE__ */ jsx110("tr", { ...rowProps, className, ref, children });
|
|
10441
10445
|
};
|
|
10442
10446
|
|
|
10443
10447
|
// src/Table/TableRow.tsx
|
|
@@ -10447,7 +10451,7 @@ import { useHover as useHover2 } from "@react-aria/interactions";
|
|
|
10447
10451
|
import { useTableRow } from "@react-aria/table";
|
|
10448
10452
|
import { mergeProps as mergeProps5 } from "@react-aria/utils";
|
|
10449
10453
|
import { cn as cn65, useClassNames as useClassNames61, useStateProps as useStateProps4 } from "@marigold/system";
|
|
10450
|
-
import { jsx as
|
|
10454
|
+
import { jsx as jsx111 } from "react/jsx-runtime";
|
|
10451
10455
|
var TableRow = ({ children, row }) => {
|
|
10452
10456
|
const ref = useRef14(null);
|
|
10453
10457
|
const { interactive, state, ...ctx } = useTableContext();
|
|
@@ -10477,7 +10481,7 @@ var TableRow = ({ children, row }) => {
|
|
|
10477
10481
|
focusVisible: isFocusVisible,
|
|
10478
10482
|
active: isPressed
|
|
10479
10483
|
});
|
|
10480
|
-
return /* @__PURE__ */
|
|
10484
|
+
return /* @__PURE__ */ jsx111(
|
|
10481
10485
|
"tr",
|
|
10482
10486
|
{
|
|
10483
10487
|
ref,
|
|
@@ -10505,10 +10509,10 @@ import {
|
|
|
10505
10509
|
import { mergeProps as mergeProps6 } from "@react-aria/utils";
|
|
10506
10510
|
import {
|
|
10507
10511
|
cn as cn66,
|
|
10508
|
-
width as
|
|
10512
|
+
width as twWidth7,
|
|
10509
10513
|
useStateProps as useStateProps5
|
|
10510
10514
|
} from "@marigold/system";
|
|
10511
|
-
import { jsx as
|
|
10515
|
+
import { jsx as jsx112 } from "react/jsx-runtime";
|
|
10512
10516
|
var TableSelectAllCell = ({
|
|
10513
10517
|
column: column2,
|
|
10514
10518
|
width = "auto",
|
|
@@ -10530,21 +10534,21 @@ var TableSelectAllCell = ({
|
|
|
10530
10534
|
hover: isHovered,
|
|
10531
10535
|
focusVisible: isFocusVisible
|
|
10532
10536
|
});
|
|
10533
|
-
return /* @__PURE__ */
|
|
10537
|
+
return /* @__PURE__ */ jsx112(
|
|
10534
10538
|
"th",
|
|
10535
10539
|
{
|
|
10536
10540
|
ref,
|
|
10537
|
-
className: cn66(
|
|
10541
|
+
className: cn66(twWidth7[width], ["leading-none"], classNames3 == null ? void 0 : classNames3.header),
|
|
10538
10542
|
...mergeProps6(columnHeaderProps, hoverProps, focusProps),
|
|
10539
10543
|
...stateProps,
|
|
10540
10544
|
align,
|
|
10541
|
-
children: /* @__PURE__ */
|
|
10545
|
+
children: /* @__PURE__ */ jsx112(_Checkbox, { ...checkboxProps })
|
|
10542
10546
|
}
|
|
10543
10547
|
);
|
|
10544
10548
|
};
|
|
10545
10549
|
|
|
10546
10550
|
// src/Table/Table.tsx
|
|
10547
|
-
import { jsx as
|
|
10551
|
+
import { jsx as jsx113, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
10548
10552
|
var Table = ({
|
|
10549
10553
|
variant,
|
|
10550
10554
|
size: size2,
|
|
@@ -10574,7 +10578,7 @@ var Table = ({
|
|
|
10574
10578
|
size: size2
|
|
10575
10579
|
});
|
|
10576
10580
|
const { collection } = state;
|
|
10577
|
-
return /* @__PURE__ */
|
|
10581
|
+
return /* @__PURE__ */ jsx113(
|
|
10578
10582
|
TableContext.Provider,
|
|
10579
10583
|
{
|
|
10580
10584
|
value: { state, interactive, classNames: classNames3, variant, size: size2 },
|
|
@@ -10590,7 +10594,7 @@ var Table = ({
|
|
|
10590
10594
|
),
|
|
10591
10595
|
...gridProps,
|
|
10592
10596
|
children: [
|
|
10593
|
-
/* @__PURE__ */
|
|
10597
|
+
/* @__PURE__ */ jsx113(TableHeader, { stickyHeader, children: collection.headerRows.map((headerRow) => /* @__PURE__ */ jsx113(
|
|
10594
10598
|
TableHeaderRow,
|
|
10595
10599
|
{
|
|
10596
10600
|
item: headerRow,
|
|
@@ -10598,7 +10602,7 @@ var Table = ({
|
|
|
10598
10602
|
children: [...collection.getChildren(headerRow.key)].map(
|
|
10599
10603
|
(column2) => {
|
|
10600
10604
|
var _a, _b, _c, _d, _e;
|
|
10601
|
-
return ((_a = column2.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */
|
|
10605
|
+
return ((_a = column2.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ jsx113(
|
|
10602
10606
|
TableSelectAllCell,
|
|
10603
10607
|
{
|
|
10604
10608
|
width: (_b = column2.props) == null ? void 0 : _b.width,
|
|
@@ -10606,7 +10610,7 @@ var Table = ({
|
|
|
10606
10610
|
align: (_c = column2.props) == null ? void 0 : _c.align
|
|
10607
10611
|
},
|
|
10608
10612
|
column2.key
|
|
10609
|
-
) : /* @__PURE__ */
|
|
10613
|
+
) : /* @__PURE__ */ jsx113(
|
|
10610
10614
|
TableColumnHeader,
|
|
10611
10615
|
{
|
|
10612
10616
|
width: (_d = column2.props) == null ? void 0 : _d.width,
|
|
@@ -10622,17 +10626,17 @@ var Table = ({
|
|
|
10622
10626
|
)) }),
|
|
10623
10627
|
/* @__PURE__ */ jsxs40(TableBody, { className: classNames3.body, emptyState, children: [
|
|
10624
10628
|
...collection.rows.map(
|
|
10625
|
-
(row) => row.type === "item" && /* @__PURE__ */
|
|
10629
|
+
(row) => row.type === "item" && /* @__PURE__ */ jsx113(TableRow, { row, children: [...collection.getChildren(row.key)].map((cell, index2) => {
|
|
10626
10630
|
var _a, _b;
|
|
10627
10631
|
const currentColumn = collection.columns[index2];
|
|
10628
|
-
return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */
|
|
10632
|
+
return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ jsx113(
|
|
10629
10633
|
TableCheckboxCell,
|
|
10630
10634
|
{
|
|
10631
10635
|
cell,
|
|
10632
10636
|
alignY
|
|
10633
10637
|
},
|
|
10634
10638
|
cell.key
|
|
10635
|
-
) : /* @__PURE__ */
|
|
10639
|
+
) : /* @__PURE__ */ jsx113(
|
|
10636
10640
|
TableCell,
|
|
10637
10641
|
{
|
|
10638
10642
|
align: (_b = currentColumn.props) == null ? void 0 : _b.align,
|
|
@@ -10668,7 +10672,7 @@ import {
|
|
|
10668
10672
|
textStyle,
|
|
10669
10673
|
useClassNames as useClassNames63
|
|
10670
10674
|
} from "@marigold/system";
|
|
10671
|
-
import { jsx as
|
|
10675
|
+
import { jsx as jsx114 } from "react/jsx-runtime";
|
|
10672
10676
|
var _Text = ({
|
|
10673
10677
|
variant,
|
|
10674
10678
|
size: size2,
|
|
@@ -10689,7 +10693,7 @@ var _Text = ({
|
|
|
10689
10693
|
});
|
|
10690
10694
|
const Component2 = props.slot ? Text2 : as;
|
|
10691
10695
|
const elementType = props.slot ? { elementType: as } : {};
|
|
10692
|
-
return /* @__PURE__ */
|
|
10696
|
+
return /* @__PURE__ */ jsx114(
|
|
10693
10697
|
Component2,
|
|
10694
10698
|
{
|
|
10695
10699
|
...props,
|
|
@@ -10714,7 +10718,7 @@ var _Text = ({
|
|
|
10714
10718
|
import { forwardRef as forwardRef33 } from "react";
|
|
10715
10719
|
import { TextArea, TextField } from "react-aria-components";
|
|
10716
10720
|
import { useClassNames as useClassNames64 } from "@marigold/system";
|
|
10717
|
-
import { jsx as
|
|
10721
|
+
import { jsx as jsx115 } from "react/jsx-runtime";
|
|
10718
10722
|
var _TextArea = forwardRef33(
|
|
10719
10723
|
({
|
|
10720
10724
|
variant,
|
|
@@ -10734,14 +10738,14 @@ var _TextArea = forwardRef33(
|
|
|
10734
10738
|
isRequired: required,
|
|
10735
10739
|
...rest
|
|
10736
10740
|
};
|
|
10737
|
-
return /* @__PURE__ */
|
|
10741
|
+
return /* @__PURE__ */ jsx115(FieldBase, { as: TextField, ...props, variant, size: size2, children: /* @__PURE__ */ jsx115(TextArea, { className: classNames3, ref, rows }) });
|
|
10738
10742
|
}
|
|
10739
10743
|
);
|
|
10740
10744
|
|
|
10741
10745
|
// src/TextField/TextField.tsx
|
|
10742
10746
|
import { forwardRef as forwardRef34 } from "react";
|
|
10743
10747
|
import { TextField as TextField2 } from "react-aria-components";
|
|
10744
|
-
import { jsx as
|
|
10748
|
+
import { jsx as jsx116 } from "react/jsx-runtime";
|
|
10745
10749
|
var _TextField = forwardRef34(
|
|
10746
10750
|
({ required, disabled, readOnly, error, ...rest }, ref) => {
|
|
10747
10751
|
const props = {
|
|
@@ -10751,13 +10755,13 @@ var _TextField = forwardRef34(
|
|
|
10751
10755
|
isRequired: required,
|
|
10752
10756
|
...rest
|
|
10753
10757
|
};
|
|
10754
|
-
return /* @__PURE__ */
|
|
10758
|
+
return /* @__PURE__ */ jsx116(FieldBase, { as: TextField2, ...props, children: /* @__PURE__ */ jsx116(_Input, { ref }) });
|
|
10755
10759
|
}
|
|
10756
10760
|
);
|
|
10757
10761
|
|
|
10758
10762
|
// src/Tiles/Tiles.tsx
|
|
10759
10763
|
import { cn as cn69, createVar as createVar7, gapSpace as gapSpace9 } from "@marigold/system";
|
|
10760
|
-
import { jsx as
|
|
10764
|
+
import { jsx as jsx117 } from "react/jsx-runtime";
|
|
10761
10765
|
var Tiles = ({
|
|
10762
10766
|
space = 0,
|
|
10763
10767
|
stretch = false,
|
|
@@ -10770,7 +10774,7 @@ var Tiles = ({
|
|
|
10770
10774
|
if (stretch) {
|
|
10771
10775
|
column2 = `minmax(${column2}, 1fr)`;
|
|
10772
10776
|
}
|
|
10773
|
-
return /* @__PURE__ */
|
|
10777
|
+
return /* @__PURE__ */ jsx117(
|
|
10774
10778
|
"div",
|
|
10775
10779
|
{
|
|
10776
10780
|
...props,
|
|
@@ -10793,7 +10797,7 @@ import { cn as cn70, useClassNames as useClassNames65 } from "@marigold/system";
|
|
|
10793
10797
|
|
|
10794
10798
|
// src/Tooltip/TooltipTrigger.tsx
|
|
10795
10799
|
import { TooltipTrigger } from "react-aria-components";
|
|
10796
|
-
import { jsx as
|
|
10800
|
+
import { jsx as jsx118 } from "react/jsx-runtime";
|
|
10797
10801
|
var _TooltipTrigger = ({
|
|
10798
10802
|
delay = 1e3,
|
|
10799
10803
|
children,
|
|
@@ -10807,11 +10811,11 @@ var _TooltipTrigger = ({
|
|
|
10807
10811
|
isOpen: open,
|
|
10808
10812
|
delay
|
|
10809
10813
|
};
|
|
10810
|
-
return /* @__PURE__ */
|
|
10814
|
+
return /* @__PURE__ */ jsx118(TooltipTrigger, { ...props, children });
|
|
10811
10815
|
};
|
|
10812
10816
|
|
|
10813
10817
|
// src/Tooltip/Tooltip.tsx
|
|
10814
|
-
import { jsx as
|
|
10818
|
+
import { jsx as jsx119, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
10815
10819
|
var _Tooltip = ({ children, variant, size: size2, open, ...rest }) => {
|
|
10816
10820
|
const props = {
|
|
10817
10821
|
...rest,
|
|
@@ -10819,12 +10823,12 @@ var _Tooltip = ({ children, variant, size: size2, open, ...rest }) => {
|
|
|
10819
10823
|
};
|
|
10820
10824
|
const classNames3 = useClassNames65({ component: "Tooltip", variant, size: size2 });
|
|
10821
10825
|
const portal = usePortalContainer();
|
|
10822
|
-
return /* @__PURE__ */
|
|
10826
|
+
return /* @__PURE__ */ jsx119(
|
|
10823
10827
|
UNSAFE_PortalProvider3,
|
|
10824
10828
|
{
|
|
10825
10829
|
getContainer: () => portal instanceof HTMLElement ? portal : null,
|
|
10826
10830
|
children: /* @__PURE__ */ jsxs41(Tooltip, { ...props, className: cn70("group/tooltip", classNames3.container), children: [
|
|
10827
|
-
/* @__PURE__ */
|
|
10831
|
+
/* @__PURE__ */ jsx119(OverlayArrow, { className: classNames3.arrow, children: /* @__PURE__ */ jsx119("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ jsx119("path", { d: "M0 0 L4 4 L8 0" }) }) }),
|
|
10828
10832
|
children
|
|
10829
10833
|
] })
|
|
10830
10834
|
}
|
|
@@ -10843,13 +10847,13 @@ import { useClassNames as useClassNames66 } from "@marigold/system";
|
|
|
10843
10847
|
// src/TagGroup/TagGroupHiddenInput.tsx
|
|
10844
10848
|
import { useContext as useContext25 } from "react";
|
|
10845
10849
|
import { ListStateContext } from "react-aria-components";
|
|
10846
|
-
import { jsx as
|
|
10850
|
+
import { jsx as jsx120 } from "react/jsx-runtime";
|
|
10847
10851
|
var TagGroupHiddenInput = ({ name }) => {
|
|
10848
10852
|
var _a;
|
|
10849
10853
|
const state = useContext25(ListStateContext);
|
|
10850
10854
|
const selectedKeys = Array.from((_a = state == null ? void 0 : state.selectionManager.selectedKeys) != null ? _a : []);
|
|
10851
10855
|
if (!selectedKeys.length) return null;
|
|
10852
|
-
return /* @__PURE__ */
|
|
10856
|
+
return /* @__PURE__ */ jsx120("div", { hidden: true, "aria-hidden": "true", children: selectedKeys.map((key) => /* @__PURE__ */ jsx120(
|
|
10853
10857
|
"input",
|
|
10854
10858
|
{
|
|
10855
10859
|
type: "checkbox",
|
|
@@ -10863,7 +10867,7 @@ var TagGroupHiddenInput = ({ name }) => {
|
|
|
10863
10867
|
};
|
|
10864
10868
|
|
|
10865
10869
|
// src/TagGroup/TagGroup.tsx
|
|
10866
|
-
import { jsx as
|
|
10870
|
+
import { jsx as jsx121, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
10867
10871
|
var _TagGroup = ({
|
|
10868
10872
|
width,
|
|
10869
10873
|
items,
|
|
@@ -10876,7 +10880,7 @@ var _TagGroup = ({
|
|
|
10876
10880
|
}) => {
|
|
10877
10881
|
const classNames3 = useClassNames66({ component: "Tag", variant, size: size2 });
|
|
10878
10882
|
return /* @__PURE__ */ jsxs42(FieldBase, { as: TagGroup, ...rest, children: [
|
|
10879
|
-
/* @__PURE__ */
|
|
10883
|
+
/* @__PURE__ */ jsx121(
|
|
10880
10884
|
TagList,
|
|
10881
10885
|
{
|
|
10882
10886
|
items,
|
|
@@ -10885,12 +10889,12 @@ var _TagGroup = ({
|
|
|
10885
10889
|
children
|
|
10886
10890
|
}
|
|
10887
10891
|
),
|
|
10888
|
-
name ? /* @__PURE__ */
|
|
10892
|
+
name ? /* @__PURE__ */ jsx121(TagGroupHiddenInput, { name }) : null
|
|
10889
10893
|
] });
|
|
10890
10894
|
};
|
|
10891
10895
|
|
|
10892
10896
|
// src/TagGroup/Tag.tsx
|
|
10893
|
-
import { Fragment as Fragment11, jsx as
|
|
10897
|
+
import { Fragment as Fragment11, jsx as jsx122, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
10894
10898
|
var _Tag = ({ variant, size: size2, children, disabled, ...rest }) => {
|
|
10895
10899
|
let textValue = typeof children === "string" ? children : void 0;
|
|
10896
10900
|
const classNames3 = useClassNames67({ component: "Tag", variant, size: size2 });
|
|
@@ -10898,7 +10902,7 @@ var _Tag = ({ variant, size: size2, children, disabled, ...rest }) => {
|
|
|
10898
10902
|
isDisabled: disabled,
|
|
10899
10903
|
...rest
|
|
10900
10904
|
};
|
|
10901
|
-
return /* @__PURE__ */
|
|
10905
|
+
return /* @__PURE__ */ jsx122(
|
|
10902
10906
|
Tag,
|
|
10903
10907
|
{
|
|
10904
10908
|
textValue,
|
|
@@ -10906,7 +10910,7 @@ var _Tag = ({ variant, size: size2, children, disabled, ...rest }) => {
|
|
|
10906
10910
|
className: cn71("data-selection-mode:cursor-pointer", classNames3.tag),
|
|
10907
10911
|
children: ({ allowsRemoving }) => /* @__PURE__ */ jsxs43(Fragment11, { children: [
|
|
10908
10912
|
children,
|
|
10909
|
-
allowsRemoving && /* @__PURE__ */
|
|
10913
|
+
allowsRemoving && /* @__PURE__ */ jsx122(CloseButton, { className: classNames3.closeButton, slot: "remove" })
|
|
10910
10914
|
] })
|
|
10911
10915
|
}
|
|
10912
10916
|
);
|
|
@@ -10937,7 +10941,7 @@ var intlMessages2 = {
|
|
|
10937
10941
|
};
|
|
10938
10942
|
|
|
10939
10943
|
// src/XLoader/BaseLoader.tsx
|
|
10940
|
-
import { jsx as
|
|
10944
|
+
import { jsx as jsx123, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
10941
10945
|
var BaseLoader = ({
|
|
10942
10946
|
variant,
|
|
10943
10947
|
size: size2,
|
|
@@ -10963,13 +10967,13 @@ var BaseLoader = ({
|
|
|
10963
10967
|
fill: "currentColor",
|
|
10964
10968
|
className: className.loader,
|
|
10965
10969
|
children: [
|
|
10966
|
-
/* @__PURE__ */
|
|
10967
|
-
/* @__PURE__ */
|
|
10970
|
+
/* @__PURE__ */ jsx123("path", { id: "XMLID_1_", d: "M35.3 27h26.5l54 74.1H88.7z" }),
|
|
10971
|
+
/* @__PURE__ */ jsx123(
|
|
10968
10972
|
"path",
|
|
10969
10973
|
{
|
|
10970
10974
|
id: "XMLID_5_",
|
|
10971
10975
|
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",
|
|
10972
|
-
children: /* @__PURE__ */
|
|
10976
|
+
children: /* @__PURE__ */ jsx123(
|
|
10973
10977
|
"animate",
|
|
10974
10978
|
{
|
|
10975
10979
|
attributeName: "opacity",
|
|
@@ -10982,12 +10986,12 @@ var BaseLoader = ({
|
|
|
10982
10986
|
)
|
|
10983
10987
|
}
|
|
10984
10988
|
),
|
|
10985
|
-
/* @__PURE__ */
|
|
10989
|
+
/* @__PURE__ */ jsx123(
|
|
10986
10990
|
"path",
|
|
10987
10991
|
{
|
|
10988
10992
|
id: "XMLID_18_",
|
|
10989
10993
|
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",
|
|
10990
|
-
children: /* @__PURE__ */
|
|
10994
|
+
children: /* @__PURE__ */ jsx123(
|
|
10991
10995
|
"animate",
|
|
10992
10996
|
{
|
|
10993
10997
|
attributeName: "opacity",
|
|
@@ -11000,12 +11004,12 @@ var BaseLoader = ({
|
|
|
11000
11004
|
)
|
|
11001
11005
|
}
|
|
11002
11006
|
),
|
|
11003
|
-
/* @__PURE__ */
|
|
11007
|
+
/* @__PURE__ */ jsx123(
|
|
11004
11008
|
"path",
|
|
11005
11009
|
{
|
|
11006
11010
|
id: "XMLID_19_",
|
|
11007
11011
|
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",
|
|
11008
|
-
children: /* @__PURE__ */
|
|
11012
|
+
children: /* @__PURE__ */ jsx123(
|
|
11009
11013
|
"animate",
|
|
11010
11014
|
{
|
|
11011
11015
|
attributeName: "opacity",
|
|
@@ -11018,12 +11022,12 @@ var BaseLoader = ({
|
|
|
11018
11022
|
)
|
|
11019
11023
|
}
|
|
11020
11024
|
),
|
|
11021
|
-
/* @__PURE__ */
|
|
11025
|
+
/* @__PURE__ */ jsx123(
|
|
11022
11026
|
"path",
|
|
11023
11027
|
{
|
|
11024
11028
|
id: "XMLID_20_",
|
|
11025
11029
|
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",
|
|
11026
|
-
children: /* @__PURE__ */
|
|
11030
|
+
children: /* @__PURE__ */ jsx123(
|
|
11027
11031
|
"animate",
|
|
11028
11032
|
{
|
|
11029
11033
|
attributeName: "opacity",
|
|
@@ -11036,12 +11040,12 @@ var BaseLoader = ({
|
|
|
11036
11040
|
)
|
|
11037
11041
|
}
|
|
11038
11042
|
),
|
|
11039
|
-
/* @__PURE__ */
|
|
11043
|
+
/* @__PURE__ */ jsx123(
|
|
11040
11044
|
"path",
|
|
11041
11045
|
{
|
|
11042
11046
|
id: "XMLID_21_",
|
|
11043
11047
|
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",
|
|
11044
|
-
children: /* @__PURE__ */
|
|
11048
|
+
children: /* @__PURE__ */ jsx123(
|
|
11045
11049
|
"animate",
|
|
11046
11050
|
{
|
|
11047
11051
|
attributeName: "opacity",
|
|
@@ -11054,12 +11058,12 @@ var BaseLoader = ({
|
|
|
11054
11058
|
)
|
|
11055
11059
|
}
|
|
11056
11060
|
),
|
|
11057
|
-
/* @__PURE__ */
|
|
11061
|
+
/* @__PURE__ */ jsx123(
|
|
11058
11062
|
"path",
|
|
11059
11063
|
{
|
|
11060
11064
|
id: "XMLID_22_",
|
|
11061
11065
|
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",
|
|
11062
|
-
children: /* @__PURE__ */
|
|
11066
|
+
children: /* @__PURE__ */ jsx123(
|
|
11063
11067
|
"animate",
|
|
11064
11068
|
{
|
|
11065
11069
|
attributeName: "opacity",
|
|
@@ -11072,12 +11076,12 @@ var BaseLoader = ({
|
|
|
11072
11076
|
)
|
|
11073
11077
|
}
|
|
11074
11078
|
),
|
|
11075
|
-
/* @__PURE__ */
|
|
11079
|
+
/* @__PURE__ */ jsx123(
|
|
11076
11080
|
"path",
|
|
11077
11081
|
{
|
|
11078
11082
|
id: "XMLID_23_",
|
|
11079
11083
|
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",
|
|
11080
|
-
children: /* @__PURE__ */
|
|
11084
|
+
children: /* @__PURE__ */ jsx123(
|
|
11081
11085
|
"animate",
|
|
11082
11086
|
{
|
|
11083
11087
|
attributeName: "opacity",
|
|
@@ -11090,12 +11094,12 @@ var BaseLoader = ({
|
|
|
11090
11094
|
)
|
|
11091
11095
|
}
|
|
11092
11096
|
),
|
|
11093
|
-
/* @__PURE__ */
|
|
11097
|
+
/* @__PURE__ */ jsx123(
|
|
11094
11098
|
"path",
|
|
11095
11099
|
{
|
|
11096
11100
|
id: "XMLID_24_",
|
|
11097
11101
|
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",
|
|
11098
|
-
children: /* @__PURE__ */
|
|
11102
|
+
children: /* @__PURE__ */ jsx123(
|
|
11099
11103
|
"animate",
|
|
11100
11104
|
{
|
|
11101
11105
|
attributeName: "opacity",
|
|
@@ -11108,12 +11112,12 @@ var BaseLoader = ({
|
|
|
11108
11112
|
)
|
|
11109
11113
|
}
|
|
11110
11114
|
),
|
|
11111
|
-
/* @__PURE__ */
|
|
11115
|
+
/* @__PURE__ */ jsx123(
|
|
11112
11116
|
"path",
|
|
11113
11117
|
{
|
|
11114
11118
|
id: "XMLID_25_",
|
|
11115
11119
|
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",
|
|
11116
|
-
children: /* @__PURE__ */
|
|
11120
|
+
children: /* @__PURE__ */ jsx123(
|
|
11117
11121
|
"animate",
|
|
11118
11122
|
{
|
|
11119
11123
|
attributeName: "opacity",
|
|
@@ -11126,12 +11130,12 @@ var BaseLoader = ({
|
|
|
11126
11130
|
)
|
|
11127
11131
|
}
|
|
11128
11132
|
),
|
|
11129
|
-
/* @__PURE__ */
|
|
11133
|
+
/* @__PURE__ */ jsx123(
|
|
11130
11134
|
"path",
|
|
11131
11135
|
{
|
|
11132
11136
|
id: "XMLID_26_",
|
|
11133
11137
|
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",
|
|
11134
|
-
children: /* @__PURE__ */
|
|
11138
|
+
children: /* @__PURE__ */ jsx123(
|
|
11135
11139
|
"animate",
|
|
11136
11140
|
{
|
|
11137
11141
|
attributeName: "opacity",
|
|
@@ -11144,12 +11148,12 @@ var BaseLoader = ({
|
|
|
11144
11148
|
)
|
|
11145
11149
|
}
|
|
11146
11150
|
),
|
|
11147
|
-
/* @__PURE__ */
|
|
11151
|
+
/* @__PURE__ */ jsx123(
|
|
11148
11152
|
"path",
|
|
11149
11153
|
{
|
|
11150
11154
|
id: "XMLID_27_",
|
|
11151
11155
|
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",
|
|
11152
|
-
children: /* @__PURE__ */
|
|
11156
|
+
children: /* @__PURE__ */ jsx123(
|
|
11153
11157
|
"animate",
|
|
11154
11158
|
{
|
|
11155
11159
|
attributeName: "opacity",
|
|
@@ -11165,17 +11169,17 @@ var BaseLoader = ({
|
|
|
11165
11169
|
]
|
|
11166
11170
|
}
|
|
11167
11171
|
),
|
|
11168
|
-
children ? /* @__PURE__ */
|
|
11172
|
+
children ? /* @__PURE__ */ jsx123(Label2, { className: className.label, children }) : null
|
|
11169
11173
|
]
|
|
11170
11174
|
}
|
|
11171
11175
|
);
|
|
11172
11176
|
};
|
|
11173
11177
|
|
|
11174
11178
|
// src/XLoader/XLoader.tsx
|
|
11175
|
-
import { jsx as
|
|
11179
|
+
import { jsx as jsx124 } from "react/jsx-runtime";
|
|
11176
11180
|
var LoaderFullScreen = (props) => {
|
|
11177
11181
|
const id = useId2();
|
|
11178
|
-
return /* @__PURE__ */
|
|
11182
|
+
return /* @__PURE__ */ jsx124(Underlay, { defaultOpen: true, keyboardDismissable: true, variant: "modal", children: /* @__PURE__ */ jsx124(Modal2, { className: "grid h-(--visual-viewport-height) cursor-progress place-items-center", children: /* @__PURE__ */ jsx124(Dialog5, { className: "outline-0", "aria-labelledby": id, children: /* @__PURE__ */ jsx124(BaseLoader, { id, ...props }) }) }) });
|
|
11179
11183
|
};
|
|
11180
11184
|
var LoaderSection = (props) => {
|
|
11181
11185
|
const className = useClassNames69({
|
|
@@ -11183,9 +11187,9 @@ var LoaderSection = (props) => {
|
|
|
11183
11187
|
variant: "modal",
|
|
11184
11188
|
className: "flex size-full items-center justify-center"
|
|
11185
11189
|
});
|
|
11186
|
-
return /* @__PURE__ */
|
|
11190
|
+
return /* @__PURE__ */ jsx124("div", { className, children: /* @__PURE__ */ jsx124(BaseLoader, { ...props }) });
|
|
11187
11191
|
};
|
|
11188
|
-
var XLoader = ({ mode, variant, ...props }) => mode === "fullscreen" ? /* @__PURE__ */
|
|
11192
|
+
var XLoader = ({ mode, variant, ...props }) => mode === "fullscreen" ? /* @__PURE__ */ jsx124(LoaderFullScreen, { variant: variant != null ? variant : "inverted", ...props }) : mode === "section" ? /* @__PURE__ */ jsx124(LoaderSection, { variant: variant != null ? variant : "inverted", ...props }) : /* @__PURE__ */ jsx124(BaseLoader, { variant, ...props });
|
|
11189
11193
|
|
|
11190
11194
|
// src/Tabs/Tabs.tsx
|
|
11191
11195
|
import { Tabs } from "react-aria-components";
|
|
@@ -11199,10 +11203,10 @@ var useTabContext = () => useContext26(TabContext);
|
|
|
11199
11203
|
// src/Tabs/Tab.tsx
|
|
11200
11204
|
import { Tab } from "react-aria-components";
|
|
11201
11205
|
import { cn as cn72 } from "@marigold/system";
|
|
11202
|
-
import { jsx as
|
|
11206
|
+
import { jsx as jsx125 } from "react/jsx-runtime";
|
|
11203
11207
|
var _Tab = (props) => {
|
|
11204
11208
|
const { classNames: classNames3 } = useTabContext();
|
|
11205
|
-
return /* @__PURE__ */
|
|
11209
|
+
return /* @__PURE__ */ jsx125(
|
|
11206
11210
|
Tab,
|
|
11207
11211
|
{
|
|
11208
11212
|
...props,
|
|
@@ -11218,10 +11222,10 @@ var _Tab = (props) => {
|
|
|
11218
11222
|
// src/Tabs/TabList.tsx
|
|
11219
11223
|
import { TabList } from "react-aria-components";
|
|
11220
11224
|
import { cn as cn73, gapSpace as gapSpace10 } from "@marigold/system";
|
|
11221
|
-
import { jsx as
|
|
11225
|
+
import { jsx as jsx126 } from "react/jsx-runtime";
|
|
11222
11226
|
var _TabList = ({ space = 2, ...props }) => {
|
|
11223
11227
|
const { classNames: classNames3 } = useTabContext();
|
|
11224
|
-
return /* @__PURE__ */
|
|
11228
|
+
return /* @__PURE__ */ jsx126(
|
|
11225
11229
|
TabList,
|
|
11226
11230
|
{
|
|
11227
11231
|
...props,
|
|
@@ -11233,14 +11237,14 @@ var _TabList = ({ space = 2, ...props }) => {
|
|
|
11233
11237
|
|
|
11234
11238
|
// src/Tabs/TabPanel.tsx
|
|
11235
11239
|
import { TabPanel } from "react-aria-components";
|
|
11236
|
-
import { jsx as
|
|
11240
|
+
import { jsx as jsx127 } from "react/jsx-runtime";
|
|
11237
11241
|
var _TabPanel = (props) => {
|
|
11238
11242
|
const { classNames: classNames3 } = useTabContext();
|
|
11239
|
-
return /* @__PURE__ */
|
|
11243
|
+
return /* @__PURE__ */ jsx127(TabPanel, { ...props, className: classNames3.tabpanel, children: props.children });
|
|
11240
11244
|
};
|
|
11241
11245
|
|
|
11242
11246
|
// src/Tabs/Tabs.tsx
|
|
11243
|
-
import { jsx as
|
|
11247
|
+
import { jsx as jsx128 } from "react/jsx-runtime";
|
|
11244
11248
|
var _Tabs = ({ disabled, variant, size: size2 = "medium", ...rest }) => {
|
|
11245
11249
|
const props = {
|
|
11246
11250
|
isDisabled: disabled,
|
|
@@ -11251,7 +11255,7 @@ var _Tabs = ({ disabled, variant, size: size2 = "medium", ...rest }) => {
|
|
|
11251
11255
|
size: size2,
|
|
11252
11256
|
variant
|
|
11253
11257
|
});
|
|
11254
|
-
return /* @__PURE__ */
|
|
11258
|
+
return /* @__PURE__ */ jsx128(TabContext.Provider, { value: { classNames: classNames3 }, children: /* @__PURE__ */ jsx128(Tabs, { ...props, className: classNames3.container, children: props.children }) });
|
|
11255
11259
|
};
|
|
11256
11260
|
_Tabs.List = _TabList;
|
|
11257
11261
|
_Tabs.TabPanel = _TabPanel;
|
|
@@ -11264,7 +11268,7 @@ import { RouterProvider } from "react-aria-components";
|
|
|
11264
11268
|
import { forwardRef as forwardRef35 } from "react";
|
|
11265
11269
|
import { DateInput as DateInput2, DateSegment as DateSegment2, TimeField } from "react-aria-components";
|
|
11266
11270
|
import { useClassNames as useClassNames71 } from "@marigold/system";
|
|
11267
|
-
import { jsx as
|
|
11271
|
+
import { jsx as jsx129 } from "react/jsx-runtime";
|
|
11268
11272
|
var _TimeField = forwardRef35(
|
|
11269
11273
|
({
|
|
11270
11274
|
required,
|
|
@@ -11284,7 +11288,7 @@ var _TimeField = forwardRef35(
|
|
|
11284
11288
|
isRequired: required,
|
|
11285
11289
|
...rest
|
|
11286
11290
|
};
|
|
11287
|
-
return /* @__PURE__ */
|
|
11291
|
+
return /* @__PURE__ */ jsx129(
|
|
11288
11292
|
FieldBase,
|
|
11289
11293
|
{
|
|
11290
11294
|
as: TimeField,
|
|
@@ -11293,7 +11297,7 @@ var _TimeField = forwardRef35(
|
|
|
11293
11297
|
width,
|
|
11294
11298
|
...props,
|
|
11295
11299
|
ref,
|
|
11296
|
-
children: /* @__PURE__ */
|
|
11300
|
+
children: /* @__PURE__ */ jsx129(DateInput2, { className: classNames3.field, children: (segment) => /* @__PURE__ */ jsx129(DateSegment2, { className: classNames3.segment, segment }) })
|
|
11297
11301
|
}
|
|
11298
11302
|
);
|
|
11299
11303
|
}
|