@marigold/components 11.4.0 → 11.4.1
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 +147 -71
- package/dist/index.d.ts +147 -71
- package/dist/index.js +661 -667
- package/dist/index.mjs +577 -580
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -1309,7 +1309,7 @@ import { ListBoxItem } from "react-aria-components";
|
|
|
1309
1309
|
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
1310
1310
|
var _ListBoxItem = ({ ...props }) => {
|
|
1311
1311
|
const { classNames: classNames3 } = useListBoxContext();
|
|
1312
|
-
return /* @__PURE__ */ jsx14(ListBoxItem, { ...props, className: classNames3.
|
|
1312
|
+
return /* @__PURE__ */ jsx14(ListBoxItem, { ...props, className: classNames3.item });
|
|
1313
1313
|
};
|
|
1314
1314
|
|
|
1315
1315
|
// src/ListBox/ListBoxSection.tsx
|
|
@@ -2103,106 +2103,17 @@ var Container = ({
|
|
|
2103
2103
|
);
|
|
2104
2104
|
|
|
2105
2105
|
// src/Dialog/Dialog.tsx
|
|
2106
|
-
import { useContext as useContext8 } from "react";
|
|
2107
|
-
import { Dialog, OverlayTriggerStateContext } from "react-aria-components";
|
|
2108
|
-
import { cn as cn27, useClassNames as useClassNames25 } from "@marigold/system";
|
|
2109
|
-
|
|
2110
|
-
// src/Dialog/DialogActions.tsx
|
|
2111
|
-
import { cn as cn23, useClassNames as useClassNames20 } from "@marigold/system";
|
|
2112
|
-
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
2113
|
-
var DialogActions = ({ variant, size: size2, children }) => {
|
|
2114
|
-
const classNames3 = useClassNames20({ component: "Dialog", variant, size: size2 });
|
|
2115
|
-
return /* @__PURE__ */ jsx39("div", { className: cn23("[grid-area:actions]", classNames3.actions), children });
|
|
2116
|
-
};
|
|
2117
|
-
|
|
2118
|
-
// src/Dialog/DialogContent.tsx
|
|
2119
|
-
import { cn as cn24, useClassNames as useClassNames21 } from "@marigold/system";
|
|
2120
|
-
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
2121
|
-
var DialogContent = ({
|
|
2122
|
-
variant,
|
|
2123
|
-
size: size2,
|
|
2124
|
-
children
|
|
2125
|
-
}) => {
|
|
2126
|
-
const classNames3 = useClassNames21({ component: "Dialog", variant, size: size2 });
|
|
2127
|
-
return /* @__PURE__ */ jsx40("div", { className: cn24("[grid-area:content]", classNames3.content), children });
|
|
2128
|
-
};
|
|
2129
|
-
|
|
2130
|
-
// src/Dialog/DialogTitle.tsx
|
|
2131
|
-
import { cn as cn26, useClassNames as useClassNames24 } from "@marigold/system";
|
|
2132
|
-
|
|
2133
|
-
// src/Header/Header.tsx
|
|
2134
|
-
import { Header as Header2 } from "react-aria-components";
|
|
2135
|
-
import { useClassNames as useClassNames22 } from "@marigold/system";
|
|
2136
|
-
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
2137
|
-
var _Header = ({ variant, size: size2, ...props }) => {
|
|
2138
|
-
const classNames3 = useClassNames22({
|
|
2139
|
-
component: "Header",
|
|
2140
|
-
variant,
|
|
2141
|
-
size: size2
|
|
2142
|
-
});
|
|
2143
|
-
return /* @__PURE__ */ jsx41(Header2, { className: classNames3, ...props, children: props.children });
|
|
2144
|
-
};
|
|
2145
|
-
|
|
2146
|
-
// src/Headline/Headline.tsx
|
|
2147
|
-
import { Heading as Heading2 } from "react-aria-components";
|
|
2148
2106
|
import {
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
} from "@marigold/system";
|
|
2154
|
-
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
2155
|
-
var _Headline = ({
|
|
2156
|
-
variant,
|
|
2157
|
-
size: size2,
|
|
2158
|
-
children,
|
|
2159
|
-
align = "left",
|
|
2160
|
-
color,
|
|
2161
|
-
level = "1",
|
|
2162
|
-
...props
|
|
2163
|
-
}) => {
|
|
2164
|
-
const classNames3 = useClassNames23({
|
|
2165
|
-
component: "Headline",
|
|
2166
|
-
variant,
|
|
2167
|
-
size: size2 != null ? size2 : `level-${level}`
|
|
2168
|
-
});
|
|
2169
|
-
return /* @__PURE__ */ jsx42(
|
|
2170
|
-
Heading2,
|
|
2171
|
-
{
|
|
2172
|
-
level: Number(level),
|
|
2173
|
-
...props,
|
|
2174
|
-
className: cn25(
|
|
2175
|
-
classNames3,
|
|
2176
|
-
"max-w-(--maxHeadlineWidth)",
|
|
2177
|
-
// possibly set by a <Container>
|
|
2178
|
-
textAlign[align]
|
|
2179
|
-
),
|
|
2180
|
-
style: { color: color && ensureCssVar(color, "color") },
|
|
2181
|
-
children
|
|
2182
|
-
}
|
|
2183
|
-
);
|
|
2184
|
-
};
|
|
2185
|
-
|
|
2186
|
-
// src/Dialog/DialogTitle.tsx
|
|
2187
|
-
import { jsx as jsx43 } from "react/jsx-runtime";
|
|
2188
|
-
var DialogTitle = ({
|
|
2189
|
-
level = "2",
|
|
2190
|
-
variant,
|
|
2191
|
-
size: size2,
|
|
2192
|
-
children
|
|
2193
|
-
}) => {
|
|
2194
|
-
const classNames3 = useClassNames24({ component: "Dialog", variant, size: size2 });
|
|
2195
|
-
return /* @__PURE__ */ jsx43(_Header, { className: cn26("[grid-area:title]", classNames3.header), children: /* @__PURE__ */ jsx43(_Headline, { slot: "title", level, children }) });
|
|
2196
|
-
};
|
|
2197
|
-
|
|
2198
|
-
// src/Dialog/DialogTrigger.tsx
|
|
2199
|
-
import { Children as Children3 } from "react";
|
|
2200
|
-
import { DialogTrigger } from "react-aria-components";
|
|
2107
|
+
forwardRef as forwardRef17,
|
|
2108
|
+
useContext as useContext9
|
|
2109
|
+
} from "react";
|
|
2110
|
+
import { Dialog, OverlayTriggerStateContext as OverlayTriggerStateContext2 } from "react-aria-components";
|
|
2111
|
+
import { cn as cn26, useClassNames as useClassNames23 } from "@marigold/system";
|
|
2201
2112
|
|
|
2202
2113
|
// src/Overlay/Modal.tsx
|
|
2203
2114
|
import { forwardRef as forwardRef15 } from "react";
|
|
2204
2115
|
import { Modal } from "react-aria-components";
|
|
2205
|
-
import { jsx as
|
|
2116
|
+
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
2206
2117
|
var _Modal = forwardRef15(({ open, dismissable, keyboardDismissable, ...rest }, ref) => {
|
|
2207
2118
|
const props = {
|
|
2208
2119
|
isOpen: open,
|
|
@@ -2210,14 +2121,14 @@ var _Modal = forwardRef15(({ open, dismissable, keyboardDismissable, ...rest },
|
|
|
2210
2121
|
isKeyboardDismissDisabled: keyboardDismissable,
|
|
2211
2122
|
...rest
|
|
2212
2123
|
};
|
|
2213
|
-
return /* @__PURE__ */
|
|
2124
|
+
return /* @__PURE__ */ jsx39(
|
|
2214
2125
|
Underlay,
|
|
2215
2126
|
{
|
|
2216
2127
|
dismissable,
|
|
2217
2128
|
keyboardDismissable,
|
|
2218
2129
|
open,
|
|
2219
2130
|
variant: "modal",
|
|
2220
|
-
children: /* @__PURE__ */
|
|
2131
|
+
children: /* @__PURE__ */ jsx39(
|
|
2221
2132
|
Modal,
|
|
2222
2133
|
{
|
|
2223
2134
|
ref,
|
|
@@ -2230,52 +2141,241 @@ var _Modal = forwardRef15(({ open, dismissable, keyboardDismissable, ...rest },
|
|
|
2230
2141
|
);
|
|
2231
2142
|
});
|
|
2232
2143
|
|
|
2144
|
+
// src/Overlay/NonModal.tsx
|
|
2145
|
+
import { forwardRef as forwardRef16, useContext as useContext8 } from "react";
|
|
2146
|
+
import {
|
|
2147
|
+
OverlayTriggerStateContext,
|
|
2148
|
+
Provider
|
|
2149
|
+
} from "react-aria-components";
|
|
2150
|
+
import {
|
|
2151
|
+
useOverlayTriggerState
|
|
2152
|
+
} from "react-stately";
|
|
2153
|
+
import { FocusScope } from "@react-aria/focus";
|
|
2154
|
+
import { DismissButton, Overlay } from "@react-aria/overlays";
|
|
2155
|
+
import { useIsSSR as useIsSSR2 } from "@react-aria/ssr";
|
|
2156
|
+
import {
|
|
2157
|
+
filterDOMProps,
|
|
2158
|
+
mergeProps,
|
|
2159
|
+
useEnterAnimation,
|
|
2160
|
+
useExitAnimation,
|
|
2161
|
+
useObjectRef,
|
|
2162
|
+
useViewportSize
|
|
2163
|
+
} from "@react-aria/utils";
|
|
2164
|
+
|
|
2165
|
+
// src/utils/useRenderProps.tsx
|
|
2166
|
+
import { useMemo } from "react";
|
|
2167
|
+
function useRenderProps(props) {
|
|
2168
|
+
let {
|
|
2169
|
+
className,
|
|
2170
|
+
style,
|
|
2171
|
+
children,
|
|
2172
|
+
defaultClassName = void 0,
|
|
2173
|
+
defaultChildren = void 0,
|
|
2174
|
+
defaultStyle,
|
|
2175
|
+
values
|
|
2176
|
+
} = props;
|
|
2177
|
+
return useMemo(() => {
|
|
2178
|
+
let computedClassName;
|
|
2179
|
+
let computedStyle;
|
|
2180
|
+
let computedChildren;
|
|
2181
|
+
if (typeof className === "function") {
|
|
2182
|
+
computedClassName = className({ ...values, defaultClassName });
|
|
2183
|
+
} else {
|
|
2184
|
+
computedClassName = className;
|
|
2185
|
+
}
|
|
2186
|
+
if (typeof style === "function") {
|
|
2187
|
+
computedStyle = style({ ...values, defaultStyle: defaultStyle || {} });
|
|
2188
|
+
} else {
|
|
2189
|
+
computedStyle = style;
|
|
2190
|
+
}
|
|
2191
|
+
if (typeof children === "function") {
|
|
2192
|
+
computedChildren = children({ ...values, defaultChildren });
|
|
2193
|
+
} else if (children == null) {
|
|
2194
|
+
computedChildren = defaultChildren;
|
|
2195
|
+
} else {
|
|
2196
|
+
computedChildren = children;
|
|
2197
|
+
}
|
|
2198
|
+
return {
|
|
2199
|
+
className: computedClassName != null ? computedClassName : defaultClassName,
|
|
2200
|
+
style: computedStyle || defaultStyle ? { ...defaultStyle, ...computedStyle } : void 0,
|
|
2201
|
+
children: computedChildren != null ? computedChildren : defaultChildren,
|
|
2202
|
+
"data-rac": ""
|
|
2203
|
+
};
|
|
2204
|
+
}, [
|
|
2205
|
+
className,
|
|
2206
|
+
style,
|
|
2207
|
+
children,
|
|
2208
|
+
defaultClassName,
|
|
2209
|
+
defaultChildren,
|
|
2210
|
+
defaultStyle,
|
|
2211
|
+
values
|
|
2212
|
+
]);
|
|
2213
|
+
}
|
|
2214
|
+
|
|
2215
|
+
// src/Overlay/useNonModal.ts
|
|
2216
|
+
import { useOverlay } from "@react-aria/overlays";
|
|
2217
|
+
var useNonModal = ({ nonModalRef, keyboardDismissable = true }, state) => {
|
|
2218
|
+
let { overlayProps } = useOverlay(
|
|
2219
|
+
{
|
|
2220
|
+
isOpen: state.isOpen,
|
|
2221
|
+
onClose: state.close,
|
|
2222
|
+
shouldCloseOnBlur: false,
|
|
2223
|
+
isDismissable: false,
|
|
2224
|
+
isKeyboardDismissDisabled: keyboardDismissable ? false : true
|
|
2225
|
+
},
|
|
2226
|
+
nonModalRef
|
|
2227
|
+
);
|
|
2228
|
+
return {
|
|
2229
|
+
nonModalProps: overlayProps
|
|
2230
|
+
};
|
|
2231
|
+
};
|
|
2232
|
+
|
|
2233
|
+
// src/Overlay/NonModal.tsx
|
|
2234
|
+
import { jsx as jsx40, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
2235
|
+
var NonModalInner = ({ state, isExiting, ...props }) => {
|
|
2236
|
+
const { nonModalProps } = useNonModal(props, state);
|
|
2237
|
+
const ref = props.nonModalRef;
|
|
2238
|
+
const portalContainer = usePortalContainer();
|
|
2239
|
+
const isEntering = useEnterAnimation(ref) || props.isEntering || false;
|
|
2240
|
+
const renderProps = useRenderProps({
|
|
2241
|
+
...props,
|
|
2242
|
+
defaultClassName: "react-aria-NonModalOverlay",
|
|
2243
|
+
values: {
|
|
2244
|
+
isEntering,
|
|
2245
|
+
isExiting,
|
|
2246
|
+
state
|
|
2247
|
+
}
|
|
2248
|
+
});
|
|
2249
|
+
const viewport = useViewportSize();
|
|
2250
|
+
const style = {
|
|
2251
|
+
...renderProps.style,
|
|
2252
|
+
"--visual-viewport-height": viewport.height + "px"
|
|
2253
|
+
};
|
|
2254
|
+
const overlay = /* @__PURE__ */ jsxs15(
|
|
2255
|
+
"div",
|
|
2256
|
+
{
|
|
2257
|
+
...mergeProps(filterDOMProps(props), nonModalProps),
|
|
2258
|
+
...renderProps,
|
|
2259
|
+
tabIndex: -1,
|
|
2260
|
+
"aria-label": props["aria-label"],
|
|
2261
|
+
"aria-labelledby": props["aria-labelledby"],
|
|
2262
|
+
ref,
|
|
2263
|
+
slot: props.slot || void 0,
|
|
2264
|
+
style,
|
|
2265
|
+
"data-entering": isEntering || void 0,
|
|
2266
|
+
"data-exiting": isExiting || void 0,
|
|
2267
|
+
children: [
|
|
2268
|
+
renderProps.children,
|
|
2269
|
+
/* @__PURE__ */ jsx40(DismissButton, { onDismiss: state.close })
|
|
2270
|
+
]
|
|
2271
|
+
}
|
|
2272
|
+
);
|
|
2273
|
+
return /* @__PURE__ */ jsx40(
|
|
2274
|
+
Overlay,
|
|
2275
|
+
{
|
|
2276
|
+
isExiting,
|
|
2277
|
+
portalContainer,
|
|
2278
|
+
disableFocusManagement: true,
|
|
2279
|
+
children: /* @__PURE__ */ jsx40(FocusScope, { restoreFocus: true, children: /* @__PURE__ */ jsx40(Provider, { values: [[OverlayTriggerStateContext, state]], children: overlay }) })
|
|
2280
|
+
}
|
|
2281
|
+
);
|
|
2282
|
+
};
|
|
2283
|
+
var NonModal = forwardRef16(
|
|
2284
|
+
({ open, ...rest }, ref) => {
|
|
2285
|
+
const props = {
|
|
2286
|
+
isOpen: open,
|
|
2287
|
+
...rest
|
|
2288
|
+
};
|
|
2289
|
+
ref = useObjectRef(ref);
|
|
2290
|
+
const contextState = useContext8(OverlayTriggerStateContext);
|
|
2291
|
+
const localState = useOverlayTriggerState(props);
|
|
2292
|
+
const state = props.isOpen != null || props.defaultOpen != null || !contextState ? localState : contextState;
|
|
2293
|
+
const isExiting = useExitAnimation(ref, state.isOpen) || props.isExiting || false;
|
|
2294
|
+
const isSSR = useIsSSR2();
|
|
2295
|
+
if (state && !state.isOpen && !isExiting || isSSR) {
|
|
2296
|
+
return null;
|
|
2297
|
+
}
|
|
2298
|
+
return /* @__PURE__ */ jsx40(
|
|
2299
|
+
NonModalInner,
|
|
2300
|
+
{
|
|
2301
|
+
...props,
|
|
2302
|
+
nonModalRef: ref,
|
|
2303
|
+
state,
|
|
2304
|
+
isExiting
|
|
2305
|
+
}
|
|
2306
|
+
);
|
|
2307
|
+
}
|
|
2308
|
+
);
|
|
2309
|
+
|
|
2310
|
+
// src/Dialog/DialogActions.tsx
|
|
2311
|
+
import { cn as cn23, useClassNames as useClassNames20 } from "@marigold/system";
|
|
2312
|
+
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
2313
|
+
var DialogActions = ({ variant, size: size2, children }) => {
|
|
2314
|
+
const classNames3 = useClassNames20({ component: "Dialog", variant, size: size2 });
|
|
2315
|
+
return /* @__PURE__ */ jsx41("div", { className: cn23("[grid-area:actions]", classNames3.actions), children });
|
|
2316
|
+
};
|
|
2317
|
+
|
|
2318
|
+
// src/Dialog/DialogContent.tsx
|
|
2319
|
+
import { cn as cn24, useClassNames as useClassNames21 } from "@marigold/system";
|
|
2320
|
+
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
2321
|
+
var DialogContent = ({
|
|
2322
|
+
variant,
|
|
2323
|
+
size: size2,
|
|
2324
|
+
children
|
|
2325
|
+
}) => {
|
|
2326
|
+
const classNames3 = useClassNames21({ component: "Dialog", variant, size: size2 });
|
|
2327
|
+
return /* @__PURE__ */ jsx42("div", { className: cn24("[grid-area:content]", classNames3.content), children });
|
|
2328
|
+
};
|
|
2329
|
+
|
|
2330
|
+
// src/Dialog/DialogTitle.tsx
|
|
2331
|
+
import { Header as Header2, Heading as Heading2 } from "react-aria-components";
|
|
2332
|
+
import { cn as cn25, useClassNames as useClassNames22 } from "@marigold/system";
|
|
2333
|
+
import { jsx as jsx43 } from "react/jsx-runtime";
|
|
2334
|
+
var DialogTitle = ({ variant, size: size2, children }) => {
|
|
2335
|
+
const classNames3 = useClassNames22({
|
|
2336
|
+
component: "Dialog",
|
|
2337
|
+
variant,
|
|
2338
|
+
size: size2
|
|
2339
|
+
});
|
|
2340
|
+
return /* @__PURE__ */ jsx43(Header2, { className: cn25("[grid-area:title]", classNames3.header), children: /* @__PURE__ */ jsx43(Heading2, { slot: "title", className: classNames3.title, children }) });
|
|
2341
|
+
};
|
|
2342
|
+
|
|
2233
2343
|
// src/Dialog/DialogTrigger.tsx
|
|
2234
|
-
import {
|
|
2344
|
+
import { createContext as createContext6 } from "react";
|
|
2345
|
+
import { DialogTrigger } from "react-aria-components";
|
|
2346
|
+
import { PressResponder } from "@react-aria/interactions";
|
|
2347
|
+
import { jsx as jsx44 } from "react/jsx-runtime";
|
|
2348
|
+
var DialogContext = createContext6({});
|
|
2235
2349
|
var _DialogTrigger = ({
|
|
2236
2350
|
open,
|
|
2237
2351
|
dismissable,
|
|
2238
2352
|
keyboardDismissable,
|
|
2239
|
-
|
|
2353
|
+
size: size2,
|
|
2240
2354
|
...rest
|
|
2241
2355
|
}) => {
|
|
2242
2356
|
const props = {
|
|
2243
2357
|
isOpen: open,
|
|
2358
|
+
isDismissable: dismissable,
|
|
2359
|
+
isKeyboardDismissDisabled: !keyboardDismissable,
|
|
2244
2360
|
...rest
|
|
2245
2361
|
};
|
|
2246
|
-
|
|
2247
|
-
const [dialogTrigger, dialog] = children;
|
|
2248
|
-
const hasDialogTrigger = dialogTrigger.type !== _Dialog;
|
|
2249
|
-
const currentDialog = children.length < 2 ? !hasDialogTrigger && dialogTrigger : dialog;
|
|
2250
|
-
if (isNonModal)
|
|
2251
|
-
return /* @__PURE__ */ jsx45(DialogTrigger, { ...props, children: props.children });
|
|
2252
|
-
return /* @__PURE__ */ jsxs15(DialogTrigger, { ...props, children: [
|
|
2253
|
-
hasDialogTrigger && dialogTrigger,
|
|
2254
|
-
/* @__PURE__ */ jsx45(
|
|
2255
|
-
_Modal,
|
|
2256
|
-
{
|
|
2257
|
-
dismissable,
|
|
2258
|
-
keyboardDismissable,
|
|
2259
|
-
children: currentDialog
|
|
2260
|
-
}
|
|
2261
|
-
)
|
|
2262
|
-
] });
|
|
2362
|
+
return /* @__PURE__ */ jsx44(DialogContext.Provider, { value: props, children: /* @__PURE__ */ jsx44(DialogTrigger, { ...props, children: /* @__PURE__ */ jsx44(PressResponder, { isPressed: false, children: props.children }) }) });
|
|
2263
2363
|
};
|
|
2264
2364
|
|
|
2265
2365
|
// src/Dialog/Dialog.tsx
|
|
2266
|
-
import { jsx as
|
|
2366
|
+
import { jsx as jsx45, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
2267
2367
|
var CloseButton = ({ className }) => {
|
|
2268
|
-
const ctx =
|
|
2269
|
-
return /* @__PURE__ */
|
|
2368
|
+
const ctx = useContext9(OverlayTriggerStateContext2);
|
|
2369
|
+
return /* @__PURE__ */ jsx45(
|
|
2270
2370
|
"button",
|
|
2271
2371
|
{
|
|
2272
|
-
className:
|
|
2372
|
+
className: cn26(
|
|
2273
2373
|
"h-4 w-4 cursor-pointer border-none p-0 leading-normal outline-0",
|
|
2274
2374
|
className
|
|
2275
2375
|
),
|
|
2276
2376
|
onClick: ctx == null ? void 0 : ctx.close,
|
|
2277
2377
|
slot: "dismiss-button",
|
|
2278
|
-
children: /* @__PURE__ */
|
|
2378
|
+
children: /* @__PURE__ */ jsx45("svg", { viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx45(
|
|
2279
2379
|
"path",
|
|
2280
2380
|
{
|
|
2281
2381
|
fillRule: "evenodd",
|
|
@@ -2286,36 +2386,46 @@ var CloseButton = ({ className }) => {
|
|
|
2286
2386
|
}
|
|
2287
2387
|
);
|
|
2288
2388
|
};
|
|
2289
|
-
var _Dialog = (
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2389
|
+
var _Dialog = forwardRef17(
|
|
2390
|
+
(props, ref) => {
|
|
2391
|
+
var _a;
|
|
2392
|
+
const classNames3 = useClassNames23({
|
|
2393
|
+
component: "Dialog",
|
|
2394
|
+
variant: props.variant,
|
|
2395
|
+
size: props.size
|
|
2396
|
+
});
|
|
2397
|
+
const { isDismissable, isKeyboardDismissDisabled, isOpen } = useContext9(DialogContext);
|
|
2398
|
+
const state = useContext9(OverlayTriggerStateContext2);
|
|
2399
|
+
const children = typeof props.children === "function" ? props.children({
|
|
2400
|
+
close: (_a = state == null ? void 0 : state.close) != null ? _a : () => {
|
|
2401
|
+
}
|
|
2402
|
+
}) : props.children;
|
|
2403
|
+
return /* @__PURE__ */ jsx45(
|
|
2404
|
+
_Modal,
|
|
2405
|
+
{
|
|
2406
|
+
dismissable: isDismissable,
|
|
2407
|
+
keyboardDismissable: isKeyboardDismissDisabled,
|
|
2408
|
+
open: isOpen,
|
|
2409
|
+
children: /* @__PURE__ */ jsxs16(
|
|
2410
|
+
Dialog,
|
|
2411
|
+
{
|
|
2412
|
+
...props,
|
|
2413
|
+
ref,
|
|
2414
|
+
className: cn26(
|
|
2415
|
+
"relative outline-hidden [&>*:not(:last-child)]:mb-4",
|
|
2416
|
+
"grid [grid-template-areas:'title'_'content'_'actions']",
|
|
2417
|
+
classNames3.container
|
|
2418
|
+
),
|
|
2419
|
+
children: [
|
|
2420
|
+
props.closeButton && /* @__PURE__ */ jsx45(CloseButton, { className: classNames3.closeButton }),
|
|
2421
|
+
children
|
|
2422
|
+
]
|
|
2423
|
+
}
|
|
2424
|
+
)
|
|
2425
|
+
}
|
|
2426
|
+
);
|
|
2427
|
+
}
|
|
2428
|
+
);
|
|
2319
2429
|
_Dialog.Trigger = _DialogTrigger;
|
|
2320
2430
|
_Dialog.Title = DialogTitle;
|
|
2321
2431
|
_Dialog.Content = DialogContent;
|
|
@@ -2323,33 +2433,33 @@ _Dialog.Actions = DialogActions;
|
|
|
2323
2433
|
|
|
2324
2434
|
// src/Divider/Divider.tsx
|
|
2325
2435
|
import { Separator } from "react-aria-components";
|
|
2326
|
-
import { cn as
|
|
2327
|
-
import { jsx as
|
|
2436
|
+
import { cn as cn27, useClassNames as useClassNames24 } from "@marigold/system";
|
|
2437
|
+
import { jsx as jsx46 } from "react/jsx-runtime";
|
|
2328
2438
|
var _Divider = ({ variant, ...props }) => {
|
|
2329
|
-
const classNames3 =
|
|
2330
|
-
return /* @__PURE__ */
|
|
2439
|
+
const classNames3 = useClassNames24({ component: "Divider", variant });
|
|
2440
|
+
return /* @__PURE__ */ jsx46(Separator, { className: cn27("border-none", classNames3), ...props });
|
|
2331
2441
|
};
|
|
2332
2442
|
|
|
2333
2443
|
// src/Footer/Footer.tsx
|
|
2334
|
-
import { useClassNames as
|
|
2335
|
-
import { jsx as
|
|
2444
|
+
import { useClassNames as useClassNames25 } from "@marigold/system";
|
|
2445
|
+
import { jsx as jsx47 } from "react/jsx-runtime";
|
|
2336
2446
|
var Footer = ({ children, variant, size: size2, ...props }) => {
|
|
2337
|
-
const classNames3 =
|
|
2338
|
-
return /* @__PURE__ */
|
|
2447
|
+
const classNames3 = useClassNames25({ component: "Footer", variant, size: size2 });
|
|
2448
|
+
return /* @__PURE__ */ jsx47("footer", { ...props, className: classNames3, children });
|
|
2339
2449
|
};
|
|
2340
2450
|
|
|
2341
2451
|
// src/Form/Form.tsx
|
|
2342
2452
|
import { Form } from "react-aria-components";
|
|
2343
2453
|
|
|
2344
2454
|
// src/Grid/Grid.tsx
|
|
2345
|
-
import { cn as
|
|
2455
|
+
import { cn as cn28, gapSpace as gapSpace6, height as twHeight } from "@marigold/system";
|
|
2346
2456
|
|
|
2347
2457
|
// src/Grid/GridArea.tsx
|
|
2348
|
-
import { jsx as
|
|
2349
|
-
var GridArea = ({ name, children }) => /* @__PURE__ */
|
|
2458
|
+
import { jsx as jsx48 } from "react/jsx-runtime";
|
|
2459
|
+
var GridArea = ({ name, children }) => /* @__PURE__ */ jsx48("div", { style: { gridArea: name }, children });
|
|
2350
2460
|
|
|
2351
2461
|
// src/Grid/Grid.tsx
|
|
2352
|
-
import { jsx as
|
|
2462
|
+
import { jsx as jsx49 } from "react/jsx-runtime";
|
|
2353
2463
|
var parseGridAreas = (areas) => areas.map((area) => `"${area}"`).join("\n");
|
|
2354
2464
|
var parseTemplateValue = (values) => values.map((val) => typeof val === "number" ? `${val}fr` : val).join(" ");
|
|
2355
2465
|
var Grid = ({
|
|
@@ -2361,10 +2471,10 @@ var Grid = ({
|
|
|
2361
2471
|
space = 0,
|
|
2362
2472
|
...props
|
|
2363
2473
|
}) => {
|
|
2364
|
-
return /* @__PURE__ */
|
|
2474
|
+
return /* @__PURE__ */ jsx49(
|
|
2365
2475
|
"div",
|
|
2366
2476
|
{
|
|
2367
|
-
className:
|
|
2477
|
+
className: cn28("grid", gapSpace6[space], twHeight[height]),
|
|
2368
2478
|
style: {
|
|
2369
2479
|
gridTemplateAreas: parseGridAreas(areas),
|
|
2370
2480
|
gridTemplateColumns: parseTemplateValue(columns),
|
|
@@ -2377,6 +2487,59 @@ var Grid = ({
|
|
|
2377
2487
|
};
|
|
2378
2488
|
Grid.Area = GridArea;
|
|
2379
2489
|
|
|
2490
|
+
// src/Header/Header.tsx
|
|
2491
|
+
import { Header as Header3 } from "react-aria-components";
|
|
2492
|
+
import { useClassNames as useClassNames26 } from "@marigold/system";
|
|
2493
|
+
import { jsx as jsx50 } from "react/jsx-runtime";
|
|
2494
|
+
var _Header = ({ variant, size: size2, ...props }) => {
|
|
2495
|
+
const classNames3 = useClassNames26({
|
|
2496
|
+
component: "Header",
|
|
2497
|
+
variant,
|
|
2498
|
+
size: size2
|
|
2499
|
+
});
|
|
2500
|
+
return /* @__PURE__ */ jsx50(Header3, { className: classNames3, ...props, children: props.children });
|
|
2501
|
+
};
|
|
2502
|
+
|
|
2503
|
+
// src/Headline/Headline.tsx
|
|
2504
|
+
import { Heading as Heading3 } from "react-aria-components";
|
|
2505
|
+
import {
|
|
2506
|
+
cn as cn29,
|
|
2507
|
+
ensureCssVar,
|
|
2508
|
+
textAlign,
|
|
2509
|
+
useClassNames as useClassNames27
|
|
2510
|
+
} from "@marigold/system";
|
|
2511
|
+
import { jsx as jsx51 } from "react/jsx-runtime";
|
|
2512
|
+
var _Headline = ({
|
|
2513
|
+
variant,
|
|
2514
|
+
size: size2,
|
|
2515
|
+
children,
|
|
2516
|
+
align = "left",
|
|
2517
|
+
color,
|
|
2518
|
+
level = "1",
|
|
2519
|
+
...props
|
|
2520
|
+
}) => {
|
|
2521
|
+
const classNames3 = useClassNames27({
|
|
2522
|
+
component: "Headline",
|
|
2523
|
+
variant,
|
|
2524
|
+
size: size2 != null ? size2 : `level-${level}`
|
|
2525
|
+
});
|
|
2526
|
+
return /* @__PURE__ */ jsx51(
|
|
2527
|
+
Heading3,
|
|
2528
|
+
{
|
|
2529
|
+
level: Number(level),
|
|
2530
|
+
...props,
|
|
2531
|
+
className: cn29(
|
|
2532
|
+
classNames3,
|
|
2533
|
+
"max-w-(--maxHeadlineWidth)",
|
|
2534
|
+
// possibly set by a <Container>
|
|
2535
|
+
textAlign[align]
|
|
2536
|
+
),
|
|
2537
|
+
style: { color: color && ensureCssVar(color, "color") },
|
|
2538
|
+
children
|
|
2539
|
+
}
|
|
2540
|
+
);
|
|
2541
|
+
};
|
|
2542
|
+
|
|
2380
2543
|
// src/Image/Image.tsx
|
|
2381
2544
|
import {
|
|
2382
2545
|
cn as cn30,
|
|
@@ -2384,7 +2547,7 @@ import {
|
|
|
2384
2547
|
objectPosition,
|
|
2385
2548
|
useClassNames as useClassNames28
|
|
2386
2549
|
} from "@marigold/system";
|
|
2387
|
-
import { jsx as
|
|
2550
|
+
import { jsx as jsx52 } from "react/jsx-runtime";
|
|
2388
2551
|
var Image = ({
|
|
2389
2552
|
variant,
|
|
2390
2553
|
size: size2,
|
|
@@ -2393,7 +2556,7 @@ var Image = ({
|
|
|
2393
2556
|
...props
|
|
2394
2557
|
}) => {
|
|
2395
2558
|
const classNames3 = useClassNames28({ component: "Image", variant, size: size2 });
|
|
2396
|
-
return /* @__PURE__ */
|
|
2559
|
+
return /* @__PURE__ */ jsx52(
|
|
2397
2560
|
"img",
|
|
2398
2561
|
{
|
|
2399
2562
|
...props,
|
|
@@ -2410,7 +2573,7 @@ var Image = ({
|
|
|
2410
2573
|
|
|
2411
2574
|
// src/Inline/Inline.tsx
|
|
2412
2575
|
import { alignment, cn as cn31, gapSpace as gapSpace7 } from "@marigold/system";
|
|
2413
|
-
import { jsx as
|
|
2576
|
+
import { jsx as jsx53 } from "react/jsx-runtime";
|
|
2414
2577
|
var Inline = ({
|
|
2415
2578
|
space = 0,
|
|
2416
2579
|
alignX,
|
|
@@ -2419,7 +2582,7 @@ var Inline = ({
|
|
|
2419
2582
|
...props
|
|
2420
2583
|
}) => {
|
|
2421
2584
|
var _a, _b, _c, _d;
|
|
2422
|
-
return /* @__PURE__ */
|
|
2585
|
+
return /* @__PURE__ */ jsx53(
|
|
2423
2586
|
"div",
|
|
2424
2587
|
{
|
|
2425
2588
|
...props,
|
|
@@ -2435,7 +2598,7 @@ var Inline = ({
|
|
|
2435
2598
|
};
|
|
2436
2599
|
|
|
2437
2600
|
// src/DateField/DateField.tsx
|
|
2438
|
-
import { forwardRef as
|
|
2601
|
+
import { forwardRef as forwardRef18 } from "react";
|
|
2439
2602
|
import { DateField } from "react-aria-components";
|
|
2440
2603
|
|
|
2441
2604
|
// src/DateField/DateInput.tsx
|
|
@@ -2445,9 +2608,9 @@ import { useClassNames as useClassNames29 } from "@marigold/system";
|
|
|
2445
2608
|
// src/DateField/DateSegment.tsx
|
|
2446
2609
|
import { DateSegment } from "react-aria-components";
|
|
2447
2610
|
import { cn as cn32 } from "@marigold/system";
|
|
2448
|
-
import { Fragment as Fragment4, jsx as
|
|
2611
|
+
import { Fragment as Fragment4, jsx as jsx54, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
2449
2612
|
var _DateSegment = ({ segment, ...props }) => {
|
|
2450
|
-
return /* @__PURE__ */
|
|
2613
|
+
return /* @__PURE__ */ jsx54(
|
|
2451
2614
|
DateSegment,
|
|
2452
2615
|
{
|
|
2453
2616
|
...props,
|
|
@@ -2456,7 +2619,7 @@ var _DateSegment = ({ segment, ...props }) => {
|
|
|
2456
2619
|
minWidth: segment.maxValue != null ? `${String(segment.maxValue).length}ch` : void 0
|
|
2457
2620
|
},
|
|
2458
2621
|
children: ({ text, placeholder, isPlaceholder }) => /* @__PURE__ */ jsxs17(Fragment4, { children: [
|
|
2459
|
-
/* @__PURE__ */
|
|
2622
|
+
/* @__PURE__ */ jsx54(
|
|
2460
2623
|
"span",
|
|
2461
2624
|
{
|
|
2462
2625
|
"aria-hidden": "true",
|
|
@@ -2467,25 +2630,25 @@ var _DateSegment = ({ segment, ...props }) => {
|
|
|
2467
2630
|
children: isPlaceholder && (placeholder == null ? void 0 : placeholder.toUpperCase())
|
|
2468
2631
|
}
|
|
2469
2632
|
),
|
|
2470
|
-
/* @__PURE__ */
|
|
2633
|
+
/* @__PURE__ */ jsx54("span", { children: isPlaceholder ? "" : segment.type === "month" || segment.type === "day" ? segment.text.padStart(2, "0") : text })
|
|
2471
2634
|
] })
|
|
2472
2635
|
}
|
|
2473
2636
|
);
|
|
2474
2637
|
};
|
|
2475
2638
|
|
|
2476
2639
|
// src/DateField/DateInput.tsx
|
|
2477
|
-
import { jsx as
|
|
2640
|
+
import { jsx as jsx55, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
2478
2641
|
var _DateInput = ({ variant, size: size2, action, ...props }) => {
|
|
2479
2642
|
const classNames3 = useClassNames29({ component: "DateField", variant, size: size2 });
|
|
2480
2643
|
return /* @__PURE__ */ jsxs18(Group, { className: classNames3.field, children: [
|
|
2481
|
-
/* @__PURE__ */
|
|
2644
|
+
/* @__PURE__ */ jsx55(DateInput, { className: "flex flex-1 items-center", ...props, children: (segment) => /* @__PURE__ */ jsx55(_DateSegment, { className: classNames3.segment, segment }) }),
|
|
2482
2645
|
action ? action : null
|
|
2483
2646
|
] });
|
|
2484
2647
|
};
|
|
2485
2648
|
|
|
2486
2649
|
// src/DateField/DateField.tsx
|
|
2487
|
-
import { jsx as
|
|
2488
|
-
var _DateField =
|
|
2650
|
+
import { jsx as jsx56 } from "react/jsx-runtime";
|
|
2651
|
+
var _DateField = forwardRef18(
|
|
2489
2652
|
({
|
|
2490
2653
|
variant,
|
|
2491
2654
|
size: size2,
|
|
@@ -2503,7 +2666,7 @@ var _DateField = forwardRef16(
|
|
|
2503
2666
|
isRequired: required,
|
|
2504
2667
|
...rest
|
|
2505
2668
|
};
|
|
2506
|
-
return /* @__PURE__ */
|
|
2669
|
+
return /* @__PURE__ */ jsx56(
|
|
2507
2670
|
FieldBase,
|
|
2508
2671
|
{
|
|
2509
2672
|
as: DateField,
|
|
@@ -2511,7 +2674,7 @@ var _DateField = forwardRef16(
|
|
|
2511
2674
|
size: size2,
|
|
2512
2675
|
ref,
|
|
2513
2676
|
...props,
|
|
2514
|
-
children: /* @__PURE__ */
|
|
2677
|
+
children: /* @__PURE__ */ jsx56(_DateInput, { action })
|
|
2515
2678
|
}
|
|
2516
2679
|
);
|
|
2517
2680
|
}
|
|
@@ -2532,21 +2695,21 @@ import { cn as cn33, useClassNames as useClassNames31 } from "@marigold/system";
|
|
|
2532
2695
|
|
|
2533
2696
|
// src/Calendar/CalendarGridHeader.tsx
|
|
2534
2697
|
import { startOfWeek, today } from "@internationalized/date";
|
|
2535
|
-
import { useContext as
|
|
2698
|
+
import { useContext as useContext10, useMemo as useMemo2 } from "react";
|
|
2536
2699
|
import { CalendarStateContext } from "react-aria-components";
|
|
2537
2700
|
import { useCalendarGrid } from "@react-aria/calendar";
|
|
2538
2701
|
import { useDateFormatter, useLocale } from "@react-aria/i18n";
|
|
2539
2702
|
import { useClassNames as useClassNames30 } from "@marigold/system";
|
|
2540
|
-
import { jsx as
|
|
2703
|
+
import { jsx as jsx57 } from "react/jsx-runtime";
|
|
2541
2704
|
function CalendarGridHeader(props) {
|
|
2542
|
-
const state =
|
|
2705
|
+
const state = useContext10(CalendarStateContext);
|
|
2543
2706
|
const { headerProps } = useCalendarGrid(props, state);
|
|
2544
2707
|
const { locale } = useLocale();
|
|
2545
2708
|
const dayFormatter = useDateFormatter({
|
|
2546
2709
|
weekday: "short",
|
|
2547
2710
|
timeZone: state.timeZone
|
|
2548
2711
|
});
|
|
2549
|
-
const weekDays =
|
|
2712
|
+
const weekDays = useMemo2(() => {
|
|
2550
2713
|
const weekStart = startOfWeek(today(state.timeZone), locale);
|
|
2551
2714
|
return [...new Array(7).keys()].map((index2) => {
|
|
2552
2715
|
const date = weekStart.add({ days: index2 });
|
|
@@ -2555,16 +2718,16 @@ function CalendarGridHeader(props) {
|
|
|
2555
2718
|
});
|
|
2556
2719
|
}, [locale, state.timeZone, dayFormatter]);
|
|
2557
2720
|
const classNames3 = useClassNames30({ component: "Calendar" });
|
|
2558
|
-
return /* @__PURE__ */
|
|
2721
|
+
return /* @__PURE__ */ jsx57("thead", { ...headerProps, children: /* @__PURE__ */ jsx57("tr", { children: weekDays.map((day, index2) => /* @__PURE__ */ jsx57("th", { className: classNames3.calendarHeader, children: day.substring(0, 2) }, index2)) }) });
|
|
2559
2722
|
}
|
|
2560
2723
|
|
|
2561
2724
|
// src/Calendar/CalendarGrid.tsx
|
|
2562
|
-
import { jsx as
|
|
2725
|
+
import { jsx as jsx58, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
2563
2726
|
var _CalendarGrid = () => {
|
|
2564
2727
|
const classNames3 = useClassNames31({ component: "Calendar" });
|
|
2565
2728
|
return /* @__PURE__ */ jsxs19(CalendarGrid, { className: classNames3.calendarGrid, children: [
|
|
2566
|
-
/* @__PURE__ */
|
|
2567
|
-
/* @__PURE__ */
|
|
2729
|
+
/* @__PURE__ */ jsx58(CalendarGridHeader, {}),
|
|
2730
|
+
/* @__PURE__ */ jsx58(CalendarGridBody, { children: (date) => /* @__PURE__ */ jsx58(
|
|
2568
2731
|
CalendarCell,
|
|
2569
2732
|
{
|
|
2570
2733
|
date,
|
|
@@ -2578,7 +2741,7 @@ var _CalendarGrid = () => {
|
|
|
2578
2741
|
};
|
|
2579
2742
|
|
|
2580
2743
|
// src/Calendar/CalendarListBox.tsx
|
|
2581
|
-
import { useContext as
|
|
2744
|
+
import { useContext as useContext11 } from "react";
|
|
2582
2745
|
import { CalendarStateContext as CalendarStateContext2 } from "react-aria-components";
|
|
2583
2746
|
import { cn as cn34, useClassNames as useClassNames32 } from "@marigold/system";
|
|
2584
2747
|
|
|
@@ -2599,13 +2762,13 @@ function useFormattedMonths(timeZone, focusedDate) {
|
|
|
2599
2762
|
}
|
|
2600
2763
|
|
|
2601
2764
|
// src/Calendar/CalendarListBox.tsx
|
|
2602
|
-
import { jsx as
|
|
2765
|
+
import { jsx as jsx59, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
2603
2766
|
function CalendarListBox({
|
|
2604
2767
|
type,
|
|
2605
2768
|
isDisabled,
|
|
2606
2769
|
setSelectedDropdown
|
|
2607
2770
|
}) {
|
|
2608
|
-
const state =
|
|
2771
|
+
const state = useContext11(CalendarStateContext2);
|
|
2609
2772
|
const months = useFormattedMonths(state.timeZone, state.focusedDate);
|
|
2610
2773
|
const buttonStyles = "flex items-center justify-between gap-1 overflow-hidden";
|
|
2611
2774
|
const { select: selectClassNames } = useClassNames32({ component: "Select" });
|
|
@@ -2618,7 +2781,7 @@ function CalendarListBox({
|
|
|
2618
2781
|
"data-testid": type,
|
|
2619
2782
|
children: [
|
|
2620
2783
|
type === "month" ? months[state.focusedDate.month - 1].substring(0, 3) : state.focusedDate.year,
|
|
2621
|
-
/* @__PURE__ */
|
|
2784
|
+
/* @__PURE__ */ jsx59(ChevronDown, {})
|
|
2622
2785
|
]
|
|
2623
2786
|
}
|
|
2624
2787
|
);
|
|
@@ -2626,7 +2789,7 @@ function CalendarListBox({
|
|
|
2626
2789
|
|
|
2627
2790
|
// src/Calendar/MonthControls.tsx
|
|
2628
2791
|
import { cn as cn35, useClassNames as useClassNames33 } from "@marigold/system";
|
|
2629
|
-
import { jsx as
|
|
2792
|
+
import { jsx as jsx60, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
2630
2793
|
function MonthControls() {
|
|
2631
2794
|
const classNames3 = useClassNames33({ component: "Calendar" });
|
|
2632
2795
|
return /* @__PURE__ */ jsxs21(
|
|
@@ -2637,22 +2800,22 @@ function MonthControls() {
|
|
|
2637
2800
|
classNames3.calendarControllers
|
|
2638
2801
|
),
|
|
2639
2802
|
children: [
|
|
2640
|
-
/* @__PURE__ */
|
|
2803
|
+
/* @__PURE__ */ jsx60(
|
|
2641
2804
|
IconButton,
|
|
2642
2805
|
{
|
|
2643
2806
|
className: cn35("inline-flex items-center justify-center gap-[0.5ch]"),
|
|
2644
2807
|
variant: "navigation",
|
|
2645
2808
|
slot: "previous",
|
|
2646
|
-
children: /* @__PURE__ */
|
|
2809
|
+
children: /* @__PURE__ */ jsx60(ChevronLeft, {})
|
|
2647
2810
|
}
|
|
2648
2811
|
),
|
|
2649
|
-
/* @__PURE__ */
|
|
2812
|
+
/* @__PURE__ */ jsx60(
|
|
2650
2813
|
IconButton,
|
|
2651
2814
|
{
|
|
2652
2815
|
className: cn35("inline-flex items-center justify-center gap-[0.5ch]"),
|
|
2653
2816
|
variant: "navigation",
|
|
2654
2817
|
slot: "next",
|
|
2655
|
-
children: /* @__PURE__ */
|
|
2818
|
+
children: /* @__PURE__ */ jsx60(ChevronRight, {})
|
|
2656
2819
|
}
|
|
2657
2820
|
)
|
|
2658
2821
|
]
|
|
@@ -2662,24 +2825,24 @@ function MonthControls() {
|
|
|
2662
2825
|
var MonthControls_default = MonthControls;
|
|
2663
2826
|
|
|
2664
2827
|
// src/Calendar/MonthListBox.tsx
|
|
2665
|
-
import { useContext as
|
|
2828
|
+
import { useContext as useContext12 } from "react";
|
|
2666
2829
|
import { CalendarStateContext as CalendarStateContext3 } from "react-aria-components";
|
|
2667
|
-
import { jsx as
|
|
2830
|
+
import { jsx as jsx61 } from "react/jsx-runtime";
|
|
2668
2831
|
var MonthListBox = ({ setSelectedDropdown }) => {
|
|
2669
|
-
const state =
|
|
2832
|
+
const state = useContext12(CalendarStateContext3);
|
|
2670
2833
|
const months = useFormattedMonths(state.timeZone, state.focusedDate);
|
|
2671
2834
|
let onChange2 = (index2) => {
|
|
2672
2835
|
let value = Number(index2) + 1;
|
|
2673
2836
|
let date = state.focusedDate.set({ month: value });
|
|
2674
2837
|
state.setFocusedDate(date);
|
|
2675
2838
|
};
|
|
2676
|
-
return /* @__PURE__ */
|
|
2839
|
+
return /* @__PURE__ */ jsx61(
|
|
2677
2840
|
"ul",
|
|
2678
2841
|
{
|
|
2679
2842
|
"data-testid": "monthOptions",
|
|
2680
2843
|
className: "grid h-full max-h-[300px] min-w-[300px] grid-cols-3 gap-y-10 overflow-y-scroll p-2",
|
|
2681
2844
|
children: months.map((month, index2) => {
|
|
2682
|
-
return /* @__PURE__ */
|
|
2845
|
+
return /* @__PURE__ */ jsx61("li", { className: "flex justify-center", children: /* @__PURE__ */ jsx61(
|
|
2683
2846
|
_Button,
|
|
2684
2847
|
{
|
|
2685
2848
|
slot: "previous",
|
|
@@ -2701,15 +2864,15 @@ var MonthListBox_default = MonthListBox;
|
|
|
2701
2864
|
|
|
2702
2865
|
// src/Calendar/YearListBox.tsx
|
|
2703
2866
|
import {
|
|
2704
|
-
useContext as
|
|
2867
|
+
useContext as useContext13,
|
|
2705
2868
|
useEffect,
|
|
2706
2869
|
useRef
|
|
2707
2870
|
} from "react";
|
|
2708
2871
|
import { CalendarStateContext as CalendarStateContext4 } from "react-aria-components";
|
|
2709
2872
|
import { useDateFormatter as useDateFormatter3 } from "@react-aria/i18n";
|
|
2710
|
-
import { jsx as
|
|
2873
|
+
import { jsx as jsx62 } from "react/jsx-runtime";
|
|
2711
2874
|
var YearListBox = ({ setSelectedDropdown }) => {
|
|
2712
|
-
const state =
|
|
2875
|
+
const state = useContext13(CalendarStateContext4);
|
|
2713
2876
|
const years = [];
|
|
2714
2877
|
let formatter = useDateFormatter3({
|
|
2715
2878
|
year: "numeric",
|
|
@@ -2737,19 +2900,19 @@ var YearListBox = ({ setSelectedDropdown }) => {
|
|
|
2737
2900
|
let date = years[index2].value;
|
|
2738
2901
|
state.setFocusedDate(date);
|
|
2739
2902
|
};
|
|
2740
|
-
return /* @__PURE__ */
|
|
2903
|
+
return /* @__PURE__ */ jsx62(
|
|
2741
2904
|
"ul",
|
|
2742
2905
|
{
|
|
2743
2906
|
"data-testid": "yearOptions",
|
|
2744
2907
|
className: "grid h-full max-h-[300px] min-w-[300px] grid-cols-3 gap-y-10 overflow-y-scroll p-2",
|
|
2745
2908
|
children: years.map((year, index2) => {
|
|
2746
2909
|
const isActive = +year.formatted === state.focusedDate.year;
|
|
2747
|
-
return /* @__PURE__ */
|
|
2910
|
+
return /* @__PURE__ */ jsx62("li", { className: "flex justify-center", children: /* @__PURE__ */ jsx62(
|
|
2748
2911
|
"div",
|
|
2749
2912
|
{
|
|
2750
2913
|
ref: isActive ? activeButtonRef : null,
|
|
2751
2914
|
style: { height: "100%", width: "100%" },
|
|
2752
|
-
children: /* @__PURE__ */
|
|
2915
|
+
children: /* @__PURE__ */ jsx62(
|
|
2753
2916
|
_Button,
|
|
2754
2917
|
{
|
|
2755
2918
|
slot: "previous",
|
|
@@ -2774,7 +2937,7 @@ var YearListBox = ({ setSelectedDropdown }) => {
|
|
|
2774
2937
|
var YearListBox_default = YearListBox;
|
|
2775
2938
|
|
|
2776
2939
|
// src/Calendar/Calendar.tsx
|
|
2777
|
-
import { Fragment as Fragment5, jsx as
|
|
2940
|
+
import { Fragment as Fragment5, jsx as jsx63, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
2778
2941
|
var _Calendar = ({
|
|
2779
2942
|
disabled,
|
|
2780
2943
|
readOnly,
|
|
@@ -2792,10 +2955,10 @@ var _Calendar = ({
|
|
|
2792
2955
|
const classNames3 = useClassNames34({ component: "Calendar" });
|
|
2793
2956
|
const [selectedDropdown, setSelectedDropdown] = useState();
|
|
2794
2957
|
const ViewMap = {
|
|
2795
|
-
month: /* @__PURE__ */
|
|
2796
|
-
year: /* @__PURE__ */
|
|
2958
|
+
month: /* @__PURE__ */ jsx63(MonthListBox_default, { setSelectedDropdown }),
|
|
2959
|
+
year: /* @__PURE__ */ jsx63(YearListBox_default, { setSelectedDropdown })
|
|
2797
2960
|
};
|
|
2798
|
-
return /* @__PURE__ */
|
|
2961
|
+
return /* @__PURE__ */ jsx63(
|
|
2799
2962
|
Calendar,
|
|
2800
2963
|
{
|
|
2801
2964
|
className: cn36(
|
|
@@ -2806,7 +2969,7 @@ var _Calendar = ({
|
|
|
2806
2969
|
children: selectedDropdown ? ViewMap[selectedDropdown] : /* @__PURE__ */ jsxs22(Fragment5, { children: [
|
|
2807
2970
|
/* @__PURE__ */ jsxs22("div", { className: "mb-4 flex items-center justify-between", children: [
|
|
2808
2971
|
/* @__PURE__ */ jsxs22("div", { className: "flex w-fit gap-4", children: [
|
|
2809
|
-
/* @__PURE__ */
|
|
2972
|
+
/* @__PURE__ */ jsx63(
|
|
2810
2973
|
CalendarListBox,
|
|
2811
2974
|
{
|
|
2812
2975
|
type: "month",
|
|
@@ -2814,7 +2977,7 @@ var _Calendar = ({
|
|
|
2814
2977
|
setSelectedDropdown
|
|
2815
2978
|
}
|
|
2816
2979
|
),
|
|
2817
|
-
/* @__PURE__ */
|
|
2980
|
+
/* @__PURE__ */ jsx63(
|
|
2818
2981
|
CalendarListBox,
|
|
2819
2982
|
{
|
|
2820
2983
|
type: "year",
|
|
@@ -2823,9 +2986,9 @@ var _Calendar = ({
|
|
|
2823
2986
|
}
|
|
2824
2987
|
)
|
|
2825
2988
|
] }),
|
|
2826
|
-
/* @__PURE__ */
|
|
2989
|
+
/* @__PURE__ */ jsx63(MonthControls_default, {})
|
|
2827
2990
|
] }),
|
|
2828
|
-
/* @__PURE__ */
|
|
2991
|
+
/* @__PURE__ */ jsx63(_CalendarGrid, {})
|
|
2829
2992
|
] })
|
|
2830
2993
|
}
|
|
2831
2994
|
);
|
|
@@ -2835,7 +2998,7 @@ var _Calendar = ({
|
|
|
2835
2998
|
import React6 from "react";
|
|
2836
2999
|
import { DatePicker, Dialog as Dialog2 } from "react-aria-components";
|
|
2837
3000
|
import { useClassNames as useClassNames35 } from "@marigold/system";
|
|
2838
|
-
import { jsx as
|
|
3001
|
+
import { jsx as jsx64, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
2839
3002
|
var _DatePicker = React6.forwardRef(
|
|
2840
3003
|
({
|
|
2841
3004
|
dateUnavailable,
|
|
@@ -2873,10 +3036,10 @@ var _DatePicker = React6.forwardRef(
|
|
|
2873
3036
|
...props,
|
|
2874
3037
|
ref,
|
|
2875
3038
|
children: [
|
|
2876
|
-
/* @__PURE__ */
|
|
3039
|
+
/* @__PURE__ */ jsx64(
|
|
2877
3040
|
_DateInput,
|
|
2878
3041
|
{
|
|
2879
|
-
action: /* @__PURE__ */
|
|
3042
|
+
action: /* @__PURE__ */ jsx64(IconButton, { className: classNames3, children: /* @__PURE__ */ jsx64(
|
|
2880
3043
|
"svg",
|
|
2881
3044
|
{
|
|
2882
3045
|
"data-testid": "action",
|
|
@@ -2884,12 +3047,12 @@ var _DatePicker = React6.forwardRef(
|
|
|
2884
3047
|
width: 24,
|
|
2885
3048
|
height: 24,
|
|
2886
3049
|
fill: "currentColor",
|
|
2887
|
-
children: /* @__PURE__ */
|
|
3050
|
+
children: /* @__PURE__ */ jsx64("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" })
|
|
2888
3051
|
}
|
|
2889
3052
|
) })
|
|
2890
3053
|
}
|
|
2891
3054
|
),
|
|
2892
|
-
/* @__PURE__ */
|
|
3055
|
+
/* @__PURE__ */ jsx64(_Popover, { children: /* @__PURE__ */ jsx64(Dialog2, { children: /* @__PURE__ */ jsx64(_Calendar, { disabled }) }) })
|
|
2893
3056
|
]
|
|
2894
3057
|
}
|
|
2895
3058
|
);
|
|
@@ -2903,8 +3066,8 @@ import {
|
|
|
2903
3066
|
paddingSpaceX as paddingSpaceX2,
|
|
2904
3067
|
paddingSpaceY as paddingSpaceY2
|
|
2905
3068
|
} from "@marigold/system";
|
|
2906
|
-
import { jsx as
|
|
2907
|
-
var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */
|
|
3069
|
+
import { jsx as jsx65 } from "react/jsx-runtime";
|
|
3070
|
+
var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ jsx65(
|
|
2908
3071
|
"div",
|
|
2909
3072
|
{
|
|
2910
3073
|
className: cn37(
|
|
@@ -2917,18 +3080,18 @@ var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ jsx64(
|
|
|
2917
3080
|
);
|
|
2918
3081
|
|
|
2919
3082
|
// src/Link/Link.tsx
|
|
2920
|
-
import { forwardRef as
|
|
3083
|
+
import { forwardRef as forwardRef19 } from "react";
|
|
2921
3084
|
import { Link } from "react-aria-components";
|
|
2922
3085
|
import { useClassNames as useClassNames36 } from "@marigold/system";
|
|
2923
|
-
import { jsx as
|
|
2924
|
-
var _Link =
|
|
3086
|
+
import { jsx as jsx66 } from "react/jsx-runtime";
|
|
3087
|
+
var _Link = forwardRef19(
|
|
2925
3088
|
({ variant, size: size2, disabled, children, ...props }, ref) => {
|
|
2926
3089
|
const classNames3 = useClassNames36({
|
|
2927
3090
|
component: "Link",
|
|
2928
3091
|
variant,
|
|
2929
3092
|
size: size2
|
|
2930
3093
|
});
|
|
2931
|
-
return /* @__PURE__ */
|
|
3094
|
+
return /* @__PURE__ */ jsx66(Link, { ...props, ref, className: classNames3, isDisabled: disabled, children });
|
|
2932
3095
|
}
|
|
2933
3096
|
);
|
|
2934
3097
|
|
|
@@ -2936,19 +3099,19 @@ var _Link = forwardRef17(
|
|
|
2936
3099
|
import { useClassNames as useClassNames37 } from "@marigold/system";
|
|
2937
3100
|
|
|
2938
3101
|
// src/List/Context.ts
|
|
2939
|
-
import { createContext as
|
|
2940
|
-
var ListContext =
|
|
2941
|
-
var useListContext = () =>
|
|
3102
|
+
import { createContext as createContext7, useContext as useContext14 } from "react";
|
|
3103
|
+
var ListContext = createContext7({});
|
|
3104
|
+
var useListContext = () => useContext14(ListContext);
|
|
2942
3105
|
|
|
2943
3106
|
// src/List/ListItem.tsx
|
|
2944
|
-
import { jsx as
|
|
3107
|
+
import { jsx as jsx67 } from "react/jsx-runtime";
|
|
2945
3108
|
var ListItem = ({ children, ...props }) => {
|
|
2946
3109
|
const { classNames: classNames3 } = useListContext();
|
|
2947
|
-
return /* @__PURE__ */
|
|
3110
|
+
return /* @__PURE__ */ jsx67("li", { ...props, className: classNames3, children });
|
|
2948
3111
|
};
|
|
2949
3112
|
|
|
2950
3113
|
// src/List/List.tsx
|
|
2951
|
-
import { jsx as
|
|
3114
|
+
import { jsx as jsx68 } from "react/jsx-runtime";
|
|
2952
3115
|
var List = ({
|
|
2953
3116
|
as = "ul",
|
|
2954
3117
|
children,
|
|
@@ -2958,7 +3121,7 @@ var List = ({
|
|
|
2958
3121
|
}) => {
|
|
2959
3122
|
const Component2 = as;
|
|
2960
3123
|
const classNames3 = useClassNames37({ component: "List", variant, size: size2 });
|
|
2961
|
-
return /* @__PURE__ */
|
|
3124
|
+
return /* @__PURE__ */ jsx68(Component2, { ...props, className: classNames3[as], children: /* @__PURE__ */ jsx68(ListContext.Provider, { value: { classNames: classNames3.item }, children }) });
|
|
2962
3125
|
};
|
|
2963
3126
|
List.Item = ListItem;
|
|
2964
3127
|
|
|
@@ -2969,26 +3132,26 @@ import { useClassNames as useClassNames40 } from "@marigold/system";
|
|
|
2969
3132
|
// src/Menu/MenuItem.tsx
|
|
2970
3133
|
import { MenuItem } from "react-aria-components";
|
|
2971
3134
|
import { useClassNames as useClassNames38 } from "@marigold/system";
|
|
2972
|
-
import { jsx as
|
|
3135
|
+
import { jsx as jsx69 } from "react/jsx-runtime";
|
|
2973
3136
|
var _MenuItem = ({ children, ...props }) => {
|
|
2974
3137
|
const classNames3 = useClassNames38({ component: "Menu" });
|
|
2975
|
-
return /* @__PURE__ */
|
|
3138
|
+
return /* @__PURE__ */ jsx69(MenuItem, { ...props, className: classNames3.item, children });
|
|
2976
3139
|
};
|
|
2977
3140
|
|
|
2978
3141
|
// src/Menu/MenuSection.tsx
|
|
2979
3142
|
import { MenuSection } from "react-aria-components";
|
|
2980
3143
|
import { useClassNames as useClassNames39 } from "@marigold/system";
|
|
2981
|
-
import { jsx as
|
|
3144
|
+
import { jsx as jsx70, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
2982
3145
|
var _MenuSection = ({ children, title, ...props }) => {
|
|
2983
3146
|
const className = useClassNames39({ component: "Menu" });
|
|
2984
3147
|
return /* @__PURE__ */ jsxs24(MenuSection, { ...props, children: [
|
|
2985
|
-
/* @__PURE__ */
|
|
3148
|
+
/* @__PURE__ */ jsx70(_Header, { className: className.section, children: title }),
|
|
2986
3149
|
children
|
|
2987
3150
|
] });
|
|
2988
3151
|
};
|
|
2989
3152
|
|
|
2990
3153
|
// src/Menu/Menu.tsx
|
|
2991
|
-
import { jsx as
|
|
3154
|
+
import { jsx as jsx71, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
2992
3155
|
var _Menu = ({
|
|
2993
3156
|
children,
|
|
2994
3157
|
label,
|
|
@@ -3002,8 +3165,8 @@ var _Menu = ({
|
|
|
3002
3165
|
}) => {
|
|
3003
3166
|
const classNames3 = useClassNames40({ component: "Menu", variant, size: size2 });
|
|
3004
3167
|
return /* @__PURE__ */ jsxs25(MenuTrigger, { ...props, children: [
|
|
3005
|
-
/* @__PURE__ */
|
|
3006
|
-
/* @__PURE__ */
|
|
3168
|
+
/* @__PURE__ */ jsx71(_Button, { variant: "menu", disabled, "aria-label": ariaLabel, children: label }),
|
|
3169
|
+
/* @__PURE__ */ jsx71(_Popover, { open, placement, children: /* @__PURE__ */ jsx71(Menu, { ...props, className: classNames3.container, children }) })
|
|
3007
3170
|
] });
|
|
3008
3171
|
};
|
|
3009
3172
|
_Menu.Item = _MenuItem;
|
|
@@ -3012,7 +3175,7 @@ _Menu.Section = _MenuSection;
|
|
|
3012
3175
|
// src/Menu/ActionMenu.tsx
|
|
3013
3176
|
import { Menu as Menu2, MenuTrigger as MenuTrigger2 } from "react-aria-components";
|
|
3014
3177
|
import { SVG as SVG8, useClassNames as useClassNames41 } from "@marigold/system";
|
|
3015
|
-
import { jsx as
|
|
3178
|
+
import { jsx as jsx72, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
3016
3179
|
var ActionMenu = ({
|
|
3017
3180
|
variant,
|
|
3018
3181
|
size: size2,
|
|
@@ -3021,8 +3184,8 @@ var ActionMenu = ({
|
|
|
3021
3184
|
}) => {
|
|
3022
3185
|
const classNames3 = useClassNames41({ component: "Menu", variant, size: size2 });
|
|
3023
3186
|
return /* @__PURE__ */ jsxs26(MenuTrigger2, { children: [
|
|
3024
|
-
/* @__PURE__ */
|
|
3025
|
-
/* @__PURE__ */
|
|
3187
|
+
/* @__PURE__ */ jsx72(_Button, { variant: "menu", size: "small", disabled, children: /* @__PURE__ */ jsx72(SVG8, { viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx72("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" }) }) }),
|
|
3188
|
+
/* @__PURE__ */ jsx72(_Popover, { children: /* @__PURE__ */ jsx72(Menu2, { ...props, className: classNames3.container, children: props.children }) })
|
|
3026
3189
|
] });
|
|
3027
3190
|
};
|
|
3028
3191
|
|
|
@@ -3032,38 +3195,38 @@ import { useButton } from "@react-aria/button";
|
|
|
3032
3195
|
import { cn as cn40, useClassNames as useClassNames42 } from "@marigold/system";
|
|
3033
3196
|
|
|
3034
3197
|
// src/SectionMessage/Context.tsx
|
|
3035
|
-
import { createContext as
|
|
3036
|
-
var SectionMessageContext =
|
|
3037
|
-
var useSectionMessageContext = () =>
|
|
3198
|
+
import { createContext as createContext8, useContext as useContext15 } from "react";
|
|
3199
|
+
var SectionMessageContext = createContext8({});
|
|
3200
|
+
var useSectionMessageContext = () => useContext15(SectionMessageContext);
|
|
3038
3201
|
|
|
3039
3202
|
// src/SectionMessage/SectionMessageContent.tsx
|
|
3040
3203
|
import { cn as cn38 } from "@marigold/system";
|
|
3041
|
-
import { jsx as
|
|
3204
|
+
import { jsx as jsx73 } from "react/jsx-runtime";
|
|
3042
3205
|
var SectionMessageContent = ({
|
|
3043
3206
|
children
|
|
3044
3207
|
}) => {
|
|
3045
3208
|
const { classNames: classNames3 } = useSectionMessageContext();
|
|
3046
|
-
return /* @__PURE__ */
|
|
3209
|
+
return /* @__PURE__ */ jsx73("div", { className: cn38("[grid-area:content]", classNames3.content), children });
|
|
3047
3210
|
};
|
|
3048
3211
|
|
|
3049
3212
|
// src/SectionMessage/SectionMessageTitle.tsx
|
|
3050
3213
|
import { cn as cn39 } from "@marigold/system";
|
|
3051
|
-
import { jsx as
|
|
3214
|
+
import { jsx as jsx74 } from "react/jsx-runtime";
|
|
3052
3215
|
var SectionMessageTitle = ({ children }) => {
|
|
3053
3216
|
const { classNames: classNames3 } = useSectionMessageContext();
|
|
3054
|
-
return /* @__PURE__ */
|
|
3217
|
+
return /* @__PURE__ */ jsx74("div", { className: cn39("[grid-area:title]", classNames3.title), children });
|
|
3055
3218
|
};
|
|
3056
3219
|
|
|
3057
3220
|
// src/SectionMessage/SectionMessage.tsx
|
|
3058
|
-
import { jsx as
|
|
3221
|
+
import { jsx as jsx75, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
3059
3222
|
var icons = {
|
|
3060
|
-
success: () => /* @__PURE__ */
|
|
3223
|
+
success: () => /* @__PURE__ */ jsx75(
|
|
3061
3224
|
"svg",
|
|
3062
3225
|
{
|
|
3063
3226
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3064
3227
|
viewBox: "0 0 24 24",
|
|
3065
3228
|
fill: "currentColor",
|
|
3066
|
-
children: /* @__PURE__ */
|
|
3229
|
+
children: /* @__PURE__ */ jsx75(
|
|
3067
3230
|
"path",
|
|
3068
3231
|
{
|
|
3069
3232
|
fillRule: "evenodd",
|
|
@@ -3073,13 +3236,13 @@ var icons = {
|
|
|
3073
3236
|
)
|
|
3074
3237
|
}
|
|
3075
3238
|
),
|
|
3076
|
-
info: () => /* @__PURE__ */
|
|
3239
|
+
info: () => /* @__PURE__ */ jsx75(
|
|
3077
3240
|
"svg",
|
|
3078
3241
|
{
|
|
3079
3242
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3080
3243
|
viewBox: "0 0 24 24",
|
|
3081
3244
|
fill: "currentColor",
|
|
3082
|
-
children: /* @__PURE__ */
|
|
3245
|
+
children: /* @__PURE__ */ jsx75(
|
|
3083
3246
|
"path",
|
|
3084
3247
|
{
|
|
3085
3248
|
fillRule: "evenodd",
|
|
@@ -3089,13 +3252,13 @@ var icons = {
|
|
|
3089
3252
|
)
|
|
3090
3253
|
}
|
|
3091
3254
|
),
|
|
3092
|
-
warning: () => /* @__PURE__ */
|
|
3255
|
+
warning: () => /* @__PURE__ */ jsx75(
|
|
3093
3256
|
"svg",
|
|
3094
3257
|
{
|
|
3095
3258
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3096
3259
|
viewBox: "0 0 24 24",
|
|
3097
3260
|
fill: "currentColor",
|
|
3098
|
-
children: /* @__PURE__ */
|
|
3261
|
+
children: /* @__PURE__ */ jsx75(
|
|
3099
3262
|
"path",
|
|
3100
3263
|
{
|
|
3101
3264
|
fillRule: "evenodd",
|
|
@@ -3105,13 +3268,13 @@ var icons = {
|
|
|
3105
3268
|
)
|
|
3106
3269
|
}
|
|
3107
3270
|
),
|
|
3108
|
-
error: () => /* @__PURE__ */
|
|
3271
|
+
error: () => /* @__PURE__ */ jsx75(
|
|
3109
3272
|
"svg",
|
|
3110
3273
|
{
|
|
3111
3274
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3112
3275
|
viewBox: "0 0 24 24",
|
|
3113
3276
|
fill: "currentColor",
|
|
3114
|
-
children: /* @__PURE__ */
|
|
3277
|
+
children: /* @__PURE__ */ jsx75(
|
|
3115
3278
|
"path",
|
|
3116
3279
|
{
|
|
3117
3280
|
fillRule: "evenodd",
|
|
@@ -3148,15 +3311,15 @@ var SectionMessage = ({
|
|
|
3148
3311
|
}
|
|
3149
3312
|
};
|
|
3150
3313
|
if (!isCurrentlyVisible) return null;
|
|
3151
|
-
return /* @__PURE__ */
|
|
3314
|
+
return /* @__PURE__ */ jsx75(SectionMessageContext.Provider, { value: { classNames: classNames3 }, children: /* @__PURE__ */ jsxs27(
|
|
3152
3315
|
"div",
|
|
3153
3316
|
{
|
|
3154
3317
|
role: variant === "error" ? "alert" : void 0,
|
|
3155
3318
|
...props,
|
|
3156
3319
|
className: cn40("grid auto-rows-min", classNames3.container),
|
|
3157
3320
|
children: [
|
|
3158
|
-
/* @__PURE__ */
|
|
3159
|
-
closeButton && /* @__PURE__ */
|
|
3321
|
+
/* @__PURE__ */ jsx75("div", { className: cn40("[grid-area:icon]", classNames3.icon), children: Icon4 && /* @__PURE__ */ jsx75(Icon4, {}) }),
|
|
3322
|
+
closeButton && /* @__PURE__ */ jsx75(
|
|
3160
3323
|
"button",
|
|
3161
3324
|
{
|
|
3162
3325
|
...buttonProps,
|
|
@@ -3164,7 +3327,7 @@ var SectionMessage = ({
|
|
|
3164
3327
|
"aria-label": "close",
|
|
3165
3328
|
className: cn40("[grid-area:close]", classNames3.close),
|
|
3166
3329
|
onClick: handleClose,
|
|
3167
|
-
children: /* @__PURE__ */
|
|
3330
|
+
children: /* @__PURE__ */ jsx75("svg", { viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ jsx75(
|
|
3168
3331
|
"path",
|
|
3169
3332
|
{
|
|
3170
3333
|
fillRule: "evenodd",
|
|
@@ -3188,7 +3351,7 @@ import {
|
|
|
3188
3351
|
ButtonContext,
|
|
3189
3352
|
FieldErrorContext as FieldErrorContext2,
|
|
3190
3353
|
InputContext,
|
|
3191
|
-
Provider,
|
|
3354
|
+
Provider as Provider2,
|
|
3192
3355
|
Input as _Input2
|
|
3193
3356
|
} from "react-aria-components";
|
|
3194
3357
|
|
|
@@ -3389,7 +3552,7 @@ function _extends() {
|
|
|
3389
3552
|
|
|
3390
3553
|
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-select/dist/react-select.esm.js
|
|
3391
3554
|
import * as React11 from "react";
|
|
3392
|
-
import { forwardRef as
|
|
3555
|
+
import { forwardRef as forwardRef22, useMemo as useMemo5 } from "react";
|
|
3393
3556
|
|
|
3394
3557
|
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
3395
3558
|
function _classCallCheck(a, n) {
|
|
@@ -3497,11 +3660,11 @@ function _toConsumableArray(r) {
|
|
|
3497
3660
|
|
|
3498
3661
|
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-select/dist/Select-aab027f3.esm.js
|
|
3499
3662
|
import * as React10 from "react";
|
|
3500
|
-
import { useMemo as
|
|
3663
|
+
import { useMemo as useMemo4, Fragment as Fragment8, useRef as useRef5, useCallback as useCallback3, useEffect as useEffect3, Component } from "react";
|
|
3501
3664
|
|
|
3502
3665
|
// ../../node_modules/.pnpm/@emotion+react@11.14.0_@types+react@19.1.0_react@19.1.0/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js
|
|
3503
3666
|
import * as React8 from "react";
|
|
3504
|
-
import { useContext as
|
|
3667
|
+
import { useContext as useContext17, forwardRef as forwardRef21 } from "react";
|
|
3505
3668
|
|
|
3506
3669
|
// ../../node_modules/.pnpm/@emotion+sheet@1.4.0/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js
|
|
3507
3670
|
var isDevelopment = false;
|
|
@@ -4689,15 +4852,15 @@ var EmotionCacheContext = /* @__PURE__ */ React8.createContext(
|
|
|
4689
4852
|
);
|
|
4690
4853
|
var CacheProvider = EmotionCacheContext.Provider;
|
|
4691
4854
|
var withEmotionCache = function withEmotionCache2(func) {
|
|
4692
|
-
return /* @__PURE__ */
|
|
4693
|
-
var cache =
|
|
4855
|
+
return /* @__PURE__ */ forwardRef21(function(props, ref) {
|
|
4856
|
+
var cache = useContext17(EmotionCacheContext);
|
|
4694
4857
|
return func(props, cache, ref);
|
|
4695
4858
|
});
|
|
4696
4859
|
};
|
|
4697
4860
|
if (!isBrowser4) {
|
|
4698
4861
|
withEmotionCache = function withEmotionCache3(func) {
|
|
4699
4862
|
return function(props) {
|
|
4700
|
-
var cache =
|
|
4863
|
+
var cache = useContext17(EmotionCacheContext);
|
|
4701
4864
|
if (cache === null) {
|
|
4702
4865
|
cache = createCache({
|
|
4703
4866
|
key: "css"
|
|
@@ -4781,7 +4944,7 @@ var Emotion$1 = Emotion;
|
|
|
4781
4944
|
import * as React9 from "react";
|
|
4782
4945
|
var import_extends2 = __toESM(require_extends());
|
|
4783
4946
|
var import_hoist_non_react_statics = __toESM(require_hoist_non_react_statics_cjs());
|
|
4784
|
-
var
|
|
4947
|
+
var jsx76 = function jsx77(type, props) {
|
|
4785
4948
|
var args = arguments;
|
|
4786
4949
|
if (props == null || !hasOwn.call(props, "css")) {
|
|
4787
4950
|
return React9.createElement.apply(void 0, args);
|
|
@@ -4799,7 +4962,7 @@ var jsx75 = function jsx76(type, props) {
|
|
|
4799
4962
|
var JSX;
|
|
4800
4963
|
/* @__PURE__ */ (function(_JSX) {
|
|
4801
4964
|
})(JSX || (JSX = _jsx.JSX || (_jsx.JSX = {})));
|
|
4802
|
-
})(
|
|
4965
|
+
})(jsx76 || (jsx76 = {}));
|
|
4803
4966
|
function css() {
|
|
4804
4967
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4805
4968
|
args[_key] = arguments[_key];
|
|
@@ -4829,7 +4992,7 @@ function _taggedTemplateLiteral(e, t) {
|
|
|
4829
4992
|
}
|
|
4830
4993
|
|
|
4831
4994
|
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-select/dist/index-641ee5b8.esm.js
|
|
4832
|
-
import { useContext as
|
|
4995
|
+
import { useContext as useContext19, useRef as useRef4, useState as useState4, useMemo as useMemo3, useCallback as useCallback2, createContext as createContext10 } from "react";
|
|
4833
4996
|
import { createPortal } from "react-dom";
|
|
4834
4997
|
|
|
4835
4998
|
// ../../node_modules/.pnpm/@floating-ui+utils@0.2.9/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
|
@@ -5566,10 +5729,10 @@ var menuCSS = function menuCSS2(_ref23, unstyled) {
|
|
|
5566
5729
|
marginTop: spacing2.menuGutter
|
|
5567
5730
|
});
|
|
5568
5731
|
};
|
|
5569
|
-
var PortalPlacementContext = /* @__PURE__ */
|
|
5732
|
+
var PortalPlacementContext = /* @__PURE__ */ createContext10(null);
|
|
5570
5733
|
var MenuPlacer = function MenuPlacer2(props) {
|
|
5571
5734
|
var children = props.children, minMenuHeight = props.minMenuHeight, maxMenuHeight = props.maxMenuHeight, menuPlacement = props.menuPlacement, menuPosition = props.menuPosition, menuShouldScrollIntoView = props.menuShouldScrollIntoView, theme = props.theme;
|
|
5572
|
-
var _ref3 =
|
|
5735
|
+
var _ref3 = useContext19(PortalPlacementContext) || {}, setPortalPlacement = _ref3.setPortalPlacement;
|
|
5573
5736
|
var ref = useRef4(null);
|
|
5574
5737
|
var _useState = useState4(maxMenuHeight), _useState2 = _slicedToArray(_useState, 2), maxHeight = _useState2[0], setMaxHeight = _useState2[1];
|
|
5575
5738
|
var _useState3 = useState4(null), _useState4 = _slicedToArray(_useState3, 2), placement = _useState4[0], setPlacement = _useState4[1];
|
|
@@ -5602,7 +5765,7 @@ var MenuPlacer = function MenuPlacer2(props) {
|
|
|
5602
5765
|
};
|
|
5603
5766
|
var Menu3 = function Menu4(props) {
|
|
5604
5767
|
var children = props.children, innerRef = props.innerRef, innerProps = props.innerProps;
|
|
5605
|
-
return
|
|
5768
|
+
return jsx76("div", _extends({}, getStyleProps(props, "menu", {
|
|
5606
5769
|
menu: true
|
|
5607
5770
|
}), {
|
|
5608
5771
|
ref: innerRef
|
|
@@ -5624,7 +5787,7 @@ var menuListCSS = function menuListCSS2(_ref4, unstyled) {
|
|
|
5624
5787
|
};
|
|
5625
5788
|
var MenuList = function MenuList2(props) {
|
|
5626
5789
|
var children = props.children, innerProps = props.innerProps, innerRef = props.innerRef, isMulti = props.isMulti;
|
|
5627
|
-
return
|
|
5790
|
+
return jsx76("div", _extends({}, getStyleProps(props, "menuList", {
|
|
5628
5791
|
"menu-list": true,
|
|
5629
5792
|
"menu-list--is-multi": isMulti
|
|
5630
5793
|
}), {
|
|
@@ -5644,7 +5807,7 @@ var noOptionsMessageCSS = noticeCSS;
|
|
|
5644
5807
|
var loadingMessageCSS = noticeCSS;
|
|
5645
5808
|
var NoOptionsMessage = function NoOptionsMessage2(_ref6) {
|
|
5646
5809
|
var _ref6$children = _ref6.children, children = _ref6$children === void 0 ? "No options" : _ref6$children, innerProps = _ref6.innerProps, restProps = _objectWithoutProperties(_ref6, _excluded$3);
|
|
5647
|
-
return
|
|
5810
|
+
return jsx76("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
5648
5811
|
children,
|
|
5649
5812
|
innerProps
|
|
5650
5813
|
}), "noOptionsMessage", {
|
|
@@ -5654,7 +5817,7 @@ var NoOptionsMessage = function NoOptionsMessage2(_ref6) {
|
|
|
5654
5817
|
};
|
|
5655
5818
|
var LoadingMessage = function LoadingMessage2(_ref7) {
|
|
5656
5819
|
var _ref7$children = _ref7.children, children = _ref7$children === void 0 ? "Loading..." : _ref7$children, innerProps = _ref7.innerProps, restProps = _objectWithoutProperties(_ref7, _excluded2$1);
|
|
5657
|
-
return
|
|
5820
|
+
return jsx76("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
5658
5821
|
children,
|
|
5659
5822
|
innerProps
|
|
5660
5823
|
}), "loadingMessage", {
|
|
@@ -5677,7 +5840,7 @@ var MenuPortal = function MenuPortal2(props) {
|
|
|
5677
5840
|
var menuPortalRef = useRef4(null);
|
|
5678
5841
|
var cleanupRef = useRef4(null);
|
|
5679
5842
|
var _useState5 = useState4(coercePlacement(menuPlacement)), _useState6 = _slicedToArray(_useState5, 2), placement = _useState6[0], setPortalPlacement = _useState6[1];
|
|
5680
|
-
var portalPlacementContext =
|
|
5843
|
+
var portalPlacementContext = useMemo3(function() {
|
|
5681
5844
|
return {
|
|
5682
5845
|
setPortalPlacement
|
|
5683
5846
|
};
|
|
@@ -5717,7 +5880,7 @@ var MenuPortal = function MenuPortal2(props) {
|
|
|
5717
5880
|
runAutoUpdate();
|
|
5718
5881
|
}, [runAutoUpdate]);
|
|
5719
5882
|
if (!appendTo && menuPosition !== "fixed" || !computedPosition) return null;
|
|
5720
|
-
var menuWrapper =
|
|
5883
|
+
var menuWrapper = jsx76("div", _extends({
|
|
5721
5884
|
ref: setMenuPortalElement
|
|
5722
5885
|
}, getStyleProps(_objectSpread2(_objectSpread2({}, props), {}, {
|
|
5723
5886
|
offset: computedPosition.offset,
|
|
@@ -5726,7 +5889,7 @@ var MenuPortal = function MenuPortal2(props) {
|
|
|
5726
5889
|
}), "menuPortal", {
|
|
5727
5890
|
"menu-portal": true
|
|
5728
5891
|
}), innerProps), children);
|
|
5729
|
-
return
|
|
5892
|
+
return jsx76(PortalPlacementContext.Provider, {
|
|
5730
5893
|
value: portalPlacementContext
|
|
5731
5894
|
}, appendTo ? /* @__PURE__ */ createPortal(menuWrapper, appendTo) : menuWrapper);
|
|
5732
5895
|
};
|
|
@@ -5742,7 +5905,7 @@ var containerCSS = function containerCSS2(_ref3) {
|
|
|
5742
5905
|
};
|
|
5743
5906
|
var SelectContainer = function SelectContainer2(props) {
|
|
5744
5907
|
var children = props.children, innerProps = props.innerProps, isDisabled = props.isDisabled, isRtl = props.isRtl;
|
|
5745
|
-
return
|
|
5908
|
+
return jsx76("div", _extends({}, getStyleProps(props, "container", {
|
|
5746
5909
|
"--is-disabled": isDisabled,
|
|
5747
5910
|
"--is-rtl": isRtl
|
|
5748
5911
|
}), innerProps), children);
|
|
@@ -5763,7 +5926,7 @@ var valueContainerCSS = function valueContainerCSS2(_ref23, unstyled) {
|
|
|
5763
5926
|
};
|
|
5764
5927
|
var ValueContainer = function ValueContainer2(props) {
|
|
5765
5928
|
var children = props.children, innerProps = props.innerProps, isMulti = props.isMulti, hasValue = props.hasValue;
|
|
5766
|
-
return
|
|
5929
|
+
return jsx76("div", _extends({}, getStyleProps(props, "valueContainer", {
|
|
5767
5930
|
"value-container": true,
|
|
5768
5931
|
"value-container--is-multi": isMulti,
|
|
5769
5932
|
"value-container--has-value": hasValue
|
|
@@ -5779,7 +5942,7 @@ var indicatorsContainerCSS = function indicatorsContainerCSS2() {
|
|
|
5779
5942
|
};
|
|
5780
5943
|
var IndicatorsContainer = function IndicatorsContainer2(props) {
|
|
5781
5944
|
var children = props.children, innerProps = props.innerProps;
|
|
5782
|
-
return
|
|
5945
|
+
return jsx76("div", _extends({}, getStyleProps(props, "indicatorsContainer", {
|
|
5783
5946
|
indicators: true
|
|
5784
5947
|
}), innerProps), children);
|
|
5785
5948
|
};
|
|
@@ -5800,7 +5963,7 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
|
|
|
5800
5963
|
};
|
|
5801
5964
|
var Svg = function Svg2(_ref3) {
|
|
5802
5965
|
var size2 = _ref3.size, props = _objectWithoutProperties(_ref3, _excluded$2);
|
|
5803
|
-
return
|
|
5966
|
+
return jsx76("svg", _extends({
|
|
5804
5967
|
height: size2,
|
|
5805
5968
|
width: size2,
|
|
5806
5969
|
viewBox: "0 0 20 20",
|
|
@@ -5810,16 +5973,16 @@ var Svg = function Svg2(_ref3) {
|
|
|
5810
5973
|
}, props));
|
|
5811
5974
|
};
|
|
5812
5975
|
var CrossIcon = function CrossIcon2(props) {
|
|
5813
|
-
return
|
|
5976
|
+
return jsx76(Svg, _extends({
|
|
5814
5977
|
size: 20
|
|
5815
|
-
}, props),
|
|
5978
|
+
}, props), jsx76("path", {
|
|
5816
5979
|
d: "M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"
|
|
5817
5980
|
}));
|
|
5818
5981
|
};
|
|
5819
5982
|
var DownChevron = function DownChevron2(props) {
|
|
5820
|
-
return
|
|
5983
|
+
return jsx76(Svg, _extends({
|
|
5821
5984
|
size: 20
|
|
5822
|
-
}, props),
|
|
5985
|
+
}, props), jsx76("path", {
|
|
5823
5986
|
d: "M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"
|
|
5824
5987
|
}));
|
|
5825
5988
|
};
|
|
@@ -5840,18 +6003,18 @@ var baseCSS = function baseCSS2(_ref3, unstyled) {
|
|
|
5840
6003
|
var dropdownIndicatorCSS = baseCSS;
|
|
5841
6004
|
var DropdownIndicator = function DropdownIndicator2(props) {
|
|
5842
6005
|
var children = props.children, innerProps = props.innerProps;
|
|
5843
|
-
return
|
|
6006
|
+
return jsx76("div", _extends({}, getStyleProps(props, "dropdownIndicator", {
|
|
5844
6007
|
indicator: true,
|
|
5845
6008
|
"dropdown-indicator": true
|
|
5846
|
-
}), innerProps), children ||
|
|
6009
|
+
}), innerProps), children || jsx76(DownChevron, null));
|
|
5847
6010
|
};
|
|
5848
6011
|
var clearIndicatorCSS = baseCSS;
|
|
5849
6012
|
var ClearIndicator = function ClearIndicator2(props) {
|
|
5850
6013
|
var children = props.children, innerProps = props.innerProps;
|
|
5851
|
-
return
|
|
6014
|
+
return jsx76("div", _extends({}, getStyleProps(props, "clearIndicator", {
|
|
5852
6015
|
indicator: true,
|
|
5853
6016
|
"clear-indicator": true
|
|
5854
|
-
}), innerProps), children ||
|
|
6017
|
+
}), innerProps), children || jsx76(CrossIcon, null));
|
|
5855
6018
|
};
|
|
5856
6019
|
var indicatorSeparatorCSS = function indicatorSeparatorCSS2(_ref4, unstyled) {
|
|
5857
6020
|
var isDisabled = _ref4.isDisabled, _ref4$theme = _ref4.theme, baseUnit2 = _ref4$theme.spacing.baseUnit, colors2 = _ref4$theme.colors;
|
|
@@ -5867,7 +6030,7 @@ var indicatorSeparatorCSS = function indicatorSeparatorCSS2(_ref4, unstyled) {
|
|
|
5867
6030
|
};
|
|
5868
6031
|
var IndicatorSeparator = function IndicatorSeparator2(props) {
|
|
5869
6032
|
var innerProps = props.innerProps;
|
|
5870
|
-
return
|
|
6033
|
+
return jsx76("span", _extends({}, innerProps, getStyleProps(props, "indicatorSeparator", {
|
|
5871
6034
|
"indicator-separator": true
|
|
5872
6035
|
})));
|
|
5873
6036
|
};
|
|
@@ -5891,7 +6054,7 @@ var loadingIndicatorCSS = function loadingIndicatorCSS2(_ref5, unstyled) {
|
|
|
5891
6054
|
};
|
|
5892
6055
|
var LoadingDot = function LoadingDot2(_ref6) {
|
|
5893
6056
|
var delay = _ref6.delay, offset2 = _ref6.offset;
|
|
5894
|
-
return
|
|
6057
|
+
return jsx76("span", {
|
|
5895
6058
|
css: /* @__PURE__ */ css({
|
|
5896
6059
|
animation: "".concat(loadingDotAnimations, " 1s ease-in-out ").concat(delay, "ms infinite;"),
|
|
5897
6060
|
backgroundColor: "currentColor",
|
|
@@ -5906,20 +6069,20 @@ var LoadingDot = function LoadingDot2(_ref6) {
|
|
|
5906
6069
|
};
|
|
5907
6070
|
var LoadingIndicator = function LoadingIndicator2(_ref7) {
|
|
5908
6071
|
var innerProps = _ref7.innerProps, isRtl = _ref7.isRtl, _ref7$size = _ref7.size, size2 = _ref7$size === void 0 ? 4 : _ref7$size, restProps = _objectWithoutProperties(_ref7, _excluded2);
|
|
5909
|
-
return
|
|
6072
|
+
return jsx76("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
5910
6073
|
innerProps,
|
|
5911
6074
|
isRtl,
|
|
5912
6075
|
size: size2
|
|
5913
6076
|
}), "loadingIndicator", {
|
|
5914
6077
|
indicator: true,
|
|
5915
6078
|
"loading-indicator": true
|
|
5916
|
-
}), innerProps),
|
|
6079
|
+
}), innerProps), jsx76(LoadingDot, {
|
|
5917
6080
|
delay: 0,
|
|
5918
6081
|
offset: isRtl
|
|
5919
|
-
}),
|
|
6082
|
+
}), jsx76(LoadingDot, {
|
|
5920
6083
|
delay: 160,
|
|
5921
6084
|
offset: true
|
|
5922
|
-
}),
|
|
6085
|
+
}), jsx76(LoadingDot, {
|
|
5923
6086
|
delay: 320,
|
|
5924
6087
|
offset: !isRtl
|
|
5925
6088
|
}));
|
|
@@ -5951,7 +6114,7 @@ var css$1 = function css2(_ref3, unstyled) {
|
|
|
5951
6114
|
};
|
|
5952
6115
|
var Control = function Control2(props) {
|
|
5953
6116
|
var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, innerRef = props.innerRef, innerProps = props.innerProps, menuIsOpen = props.menuIsOpen;
|
|
5954
|
-
return
|
|
6117
|
+
return jsx76("div", _extends({
|
|
5955
6118
|
ref: innerRef
|
|
5956
6119
|
}, getStyleProps(props, "control", {
|
|
5957
6120
|
control: true,
|
|
@@ -5972,16 +6135,16 @@ var groupCSS = function groupCSS2(_ref3, unstyled) {
|
|
|
5972
6135
|
};
|
|
5973
6136
|
};
|
|
5974
6137
|
var Group2 = function Group3(props) {
|
|
5975
|
-
var children = props.children, cx = props.cx, getStyles = props.getStyles, getClassNames2 = props.getClassNames,
|
|
5976
|
-
return
|
|
6138
|
+
var children = props.children, cx = props.cx, getStyles = props.getStyles, getClassNames2 = props.getClassNames, Heading4 = props.Heading, headingProps = props.headingProps, innerProps = props.innerProps, label = props.label, theme = props.theme, selectProps = props.selectProps;
|
|
6139
|
+
return jsx76("div", _extends({}, getStyleProps(props, "group", {
|
|
5977
6140
|
group: true
|
|
5978
|
-
}), innerProps),
|
|
6141
|
+
}), innerProps), jsx76(Heading4, _extends({}, headingProps, {
|
|
5979
6142
|
selectProps,
|
|
5980
6143
|
theme,
|
|
5981
6144
|
getStyles,
|
|
5982
6145
|
getClassNames: getClassNames2,
|
|
5983
6146
|
cx
|
|
5984
|
-
}), label),
|
|
6147
|
+
}), label), jsx76("div", null, children));
|
|
5985
6148
|
};
|
|
5986
6149
|
var groupHeadingCSS = function groupHeadingCSS2(_ref23, unstyled) {
|
|
5987
6150
|
var _ref2$theme = _ref23.theme, colors2 = _ref2$theme.colors, spacing2 = _ref2$theme.spacing;
|
|
@@ -6003,7 +6166,7 @@ var GroupHeading = function GroupHeading2(props) {
|
|
|
6003
6166
|
var _cleanCommonProps = cleanCommonProps(props);
|
|
6004
6167
|
_cleanCommonProps.data;
|
|
6005
6168
|
var innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$1);
|
|
6006
|
-
return
|
|
6169
|
+
return jsx76("div", _extends({}, getStyleProps(props, "groupHeading", {
|
|
6007
6170
|
"group-heading": true
|
|
6008
6171
|
}), innerProps));
|
|
6009
6172
|
};
|
|
@@ -6055,11 +6218,11 @@ var inputStyle = function inputStyle2(isHidden) {
|
|
|
6055
6218
|
var Input2 = function Input3(props) {
|
|
6056
6219
|
var cx = props.cx, value = props.value;
|
|
6057
6220
|
var _cleanCommonProps = cleanCommonProps(props), innerRef = _cleanCommonProps.innerRef, isDisabled = _cleanCommonProps.isDisabled, isHidden = _cleanCommonProps.isHidden, inputClassName = _cleanCommonProps.inputClassName, innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded3);
|
|
6058
|
-
return
|
|
6221
|
+
return jsx76("div", _extends({}, getStyleProps(props, "input", {
|
|
6059
6222
|
"input-container": true
|
|
6060
6223
|
}), {
|
|
6061
6224
|
"data-value": value || ""
|
|
6062
|
-
}),
|
|
6225
|
+
}), jsx76("input", _extends({
|
|
6063
6226
|
className: cx({
|
|
6064
6227
|
input: true
|
|
6065
6228
|
}, inputClassName),
|
|
@@ -6113,35 +6276,35 @@ var multiValueRemoveCSS = function multiValueRemoveCSS2(_ref3, unstyled) {
|
|
|
6113
6276
|
};
|
|
6114
6277
|
var MultiValueGeneric = function MultiValueGeneric2(_ref4) {
|
|
6115
6278
|
var children = _ref4.children, innerProps = _ref4.innerProps;
|
|
6116
|
-
return
|
|
6279
|
+
return jsx76("div", innerProps, children);
|
|
6117
6280
|
};
|
|
6118
6281
|
var MultiValueContainer = MultiValueGeneric;
|
|
6119
6282
|
var MultiValueLabel = MultiValueGeneric;
|
|
6120
6283
|
function MultiValueRemove(_ref5) {
|
|
6121
6284
|
var children = _ref5.children, innerProps = _ref5.innerProps;
|
|
6122
|
-
return
|
|
6285
|
+
return jsx76("div", _extends({
|
|
6123
6286
|
role: "button"
|
|
6124
|
-
}, innerProps), children ||
|
|
6287
|
+
}, innerProps), children || jsx76(CrossIcon, {
|
|
6125
6288
|
size: 14
|
|
6126
6289
|
}));
|
|
6127
6290
|
}
|
|
6128
6291
|
var MultiValue = function MultiValue2(props) {
|
|
6129
6292
|
var children = props.children, components2 = props.components, data = props.data, innerProps = props.innerProps, isDisabled = props.isDisabled, removeProps3 = props.removeProps, selectProps = props.selectProps;
|
|
6130
6293
|
var Container2 = components2.Container, Label3 = components2.Label, Remove = components2.Remove;
|
|
6131
|
-
return
|
|
6294
|
+
return jsx76(Container2, {
|
|
6132
6295
|
data,
|
|
6133
6296
|
innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, "multiValue", {
|
|
6134
6297
|
"multi-value": true,
|
|
6135
6298
|
"multi-value--is-disabled": isDisabled
|
|
6136
6299
|
})), innerProps),
|
|
6137
6300
|
selectProps
|
|
6138
|
-
},
|
|
6301
|
+
}, jsx76(Label3, {
|
|
6139
6302
|
data,
|
|
6140
6303
|
innerProps: _objectSpread2({}, getStyleProps(props, "multiValueLabel", {
|
|
6141
6304
|
"multi-value__label": true
|
|
6142
6305
|
})),
|
|
6143
6306
|
selectProps
|
|
6144
|
-
}, children),
|
|
6307
|
+
}, children), jsx76(Remove, {
|
|
6145
6308
|
data,
|
|
6146
6309
|
innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, "multiValueRemove", {
|
|
6147
6310
|
"multi-value__remove": true
|
|
@@ -6174,7 +6337,7 @@ var optionCSS = function optionCSS2(_ref3, unstyled) {
|
|
|
6174
6337
|
};
|
|
6175
6338
|
var Option = function Option2(props) {
|
|
6176
6339
|
var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, isSelected = props.isSelected, innerRef = props.innerRef, innerProps = props.innerProps;
|
|
6177
|
-
return
|
|
6340
|
+
return jsx76("div", _extends({}, getStyleProps(props, "option", {
|
|
6178
6341
|
option: true,
|
|
6179
6342
|
"option--is-disabled": isDisabled,
|
|
6180
6343
|
"option--is-focused": isFocused,
|
|
@@ -6198,7 +6361,7 @@ var placeholderCSS = function placeholderCSS2(_ref3, unstyled) {
|
|
|
6198
6361
|
};
|
|
6199
6362
|
var Placeholder = function Placeholder2(props) {
|
|
6200
6363
|
var children = props.children, innerProps = props.innerProps;
|
|
6201
|
-
return
|
|
6364
|
+
return jsx76("div", _extends({}, getStyleProps(props, "placeholder", {
|
|
6202
6365
|
placeholder: true
|
|
6203
6366
|
}), innerProps), children);
|
|
6204
6367
|
};
|
|
@@ -6220,7 +6383,7 @@ var css3 = function css4(_ref3, unstyled) {
|
|
|
6220
6383
|
};
|
|
6221
6384
|
var SingleValue = function SingleValue2(props) {
|
|
6222
6385
|
var children = props.children, isDisabled = props.isDisabled, innerProps = props.innerProps;
|
|
6223
|
-
return
|
|
6386
|
+
return jsx76("div", _extends({}, getStyleProps(props, "singleValue", {
|
|
6224
6387
|
"single-value": true,
|
|
6225
6388
|
"single-value--is-disabled": isDisabled
|
|
6226
6389
|
}), innerProps), children);
|
|
@@ -6322,7 +6485,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
6322
6485
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$2
|
|
6323
6486
|
};
|
|
6324
6487
|
var A11yText = function A11yText2(props) {
|
|
6325
|
-
return
|
|
6488
|
+
return jsx76("span", _extends({
|
|
6326
6489
|
css: _ref
|
|
6327
6490
|
}, props));
|
|
6328
6491
|
};
|
|
@@ -6383,10 +6546,10 @@ var LiveRegion = function LiveRegion2(props) {
|
|
|
6383
6546
|
var ariaLiveMessages = selectProps.ariaLiveMessages, getOptionLabel4 = selectProps.getOptionLabel, inputValue = selectProps.inputValue, isMulti = selectProps.isMulti, isOptionDisabled3 = selectProps.isOptionDisabled, isSearchable = selectProps.isSearchable, menuIsOpen = selectProps.menuIsOpen, options2 = selectProps.options, screenReaderStatus2 = selectProps.screenReaderStatus, tabSelectsValue = selectProps.tabSelectsValue, isLoading = selectProps.isLoading;
|
|
6384
6547
|
var ariaLabel = selectProps["aria-label"];
|
|
6385
6548
|
var ariaLive = selectProps["aria-live"];
|
|
6386
|
-
var messages =
|
|
6549
|
+
var messages = useMemo4(function() {
|
|
6387
6550
|
return _objectSpread2(_objectSpread2({}, defaultAriaLiveMessages), ariaLiveMessages || {});
|
|
6388
6551
|
}, [ariaLiveMessages]);
|
|
6389
|
-
var ariaSelected =
|
|
6552
|
+
var ariaSelected = useMemo4(function() {
|
|
6390
6553
|
var message = "";
|
|
6391
6554
|
if (ariaSelection && messages.onChange) {
|
|
6392
6555
|
var option = ariaSelection.option, selectedOptions = ariaSelection.options, removedValue = ariaSelection.removedValue, removedValues = ariaSelection.removedValues, value = ariaSelection.value;
|
|
@@ -6408,7 +6571,7 @@ var LiveRegion = function LiveRegion2(props) {
|
|
|
6408
6571
|
}
|
|
6409
6572
|
return message;
|
|
6410
6573
|
}, [ariaSelection, messages, isOptionDisabled3, selectValue, getOptionLabel4]);
|
|
6411
|
-
var ariaFocused =
|
|
6574
|
+
var ariaFocused = useMemo4(function() {
|
|
6412
6575
|
var focusMsg = "";
|
|
6413
6576
|
var focused = focusedOption || focusedValue;
|
|
6414
6577
|
var isSelected = !!(focusedOption && selectValue && selectValue.includes(focusedOption));
|
|
@@ -6427,7 +6590,7 @@ var LiveRegion = function LiveRegion2(props) {
|
|
|
6427
6590
|
}
|
|
6428
6591
|
return focusMsg;
|
|
6429
6592
|
}, [focusedOption, focusedValue, getOptionLabel4, isOptionDisabled3, messages, focusableOptions, selectValue, isAppleDevice2]);
|
|
6430
|
-
var ariaResults =
|
|
6593
|
+
var ariaResults = useMemo4(function() {
|
|
6431
6594
|
var resultsMsg = "";
|
|
6432
6595
|
if (menuIsOpen && options2.length && !isLoading && messages.onFilter) {
|
|
6433
6596
|
var resultsMessage = screenReaderStatus2({
|
|
@@ -6441,7 +6604,7 @@ var LiveRegion = function LiveRegion2(props) {
|
|
|
6441
6604
|
return resultsMsg;
|
|
6442
6605
|
}, [focusableOptions, inputValue, menuIsOpen, messages, options2, screenReaderStatus2, isLoading]);
|
|
6443
6606
|
var isInitialFocus = (ariaSelection === null || ariaSelection === void 0 ? void 0 : ariaSelection.action) === "initial-input-focus";
|
|
6444
|
-
var ariaGuidance =
|
|
6607
|
+
var ariaGuidance = useMemo4(function() {
|
|
6445
6608
|
var guidanceMsg = "";
|
|
6446
6609
|
if (messages.guidance) {
|
|
6447
6610
|
var context = focusedValue ? "value" : menuIsOpen ? "menu" : "input";
|
|
@@ -6457,18 +6620,18 @@ var LiveRegion = function LiveRegion2(props) {
|
|
|
6457
6620
|
}
|
|
6458
6621
|
return guidanceMsg;
|
|
6459
6622
|
}, [ariaLabel, focusedOption, focusedValue, isMulti, isOptionDisabled3, isSearchable, menuIsOpen, messages, selectValue, tabSelectsValue, isInitialFocus]);
|
|
6460
|
-
var ScreenReaderText =
|
|
6623
|
+
var ScreenReaderText = jsx76(Fragment8, null, jsx76("span", {
|
|
6461
6624
|
id: "aria-selection"
|
|
6462
|
-
}, ariaSelected),
|
|
6625
|
+
}, ariaSelected), jsx76("span", {
|
|
6463
6626
|
id: "aria-focused"
|
|
6464
|
-
}, ariaFocused),
|
|
6627
|
+
}, ariaFocused), jsx76("span", {
|
|
6465
6628
|
id: "aria-results"
|
|
6466
|
-
}, ariaResults),
|
|
6629
|
+
}, ariaResults), jsx76("span", {
|
|
6467
6630
|
id: "aria-guidance"
|
|
6468
6631
|
}, ariaGuidance));
|
|
6469
|
-
return
|
|
6632
|
+
return jsx76(Fragment8, null, jsx76(A11yText$1, {
|
|
6470
6633
|
id
|
|
6471
|
-
}, isInitialFocus && ScreenReaderText),
|
|
6634
|
+
}, isInitialFocus && ScreenReaderText), jsx76(A11yText$1, {
|
|
6472
6635
|
"aria-live": ariaLive,
|
|
6473
6636
|
"aria-atomic": "false",
|
|
6474
6637
|
"aria-relevant": "additions text",
|
|
@@ -6781,7 +6944,7 @@ var _excluded4 = ["innerRef"];
|
|
|
6781
6944
|
function DummyInput(_ref3) {
|
|
6782
6945
|
var innerRef = _ref3.innerRef, props = _objectWithoutProperties(_ref3, _excluded4);
|
|
6783
6946
|
var filteredProps = removeProps(props, "onExited", "in", "enter", "exit", "appear");
|
|
6784
|
-
return
|
|
6947
|
+
return jsx76("input", _extends({
|
|
6785
6948
|
ref: innerRef
|
|
6786
6949
|
}, filteredProps, {
|
|
6787
6950
|
css: /* @__PURE__ */ css({
|
|
@@ -7023,7 +7186,7 @@ function ScrollManager(_ref3) {
|
|
|
7023
7186
|
setScrollCaptureTarget(element);
|
|
7024
7187
|
setScrollLockTarget(element);
|
|
7025
7188
|
};
|
|
7026
|
-
return
|
|
7189
|
+
return jsx76(Fragment8, null, lockEnabled && jsx76("div", {
|
|
7027
7190
|
onClick: blurSelectInput,
|
|
7028
7191
|
css: _ref2$1
|
|
7029
7192
|
}), children(targetRef));
|
|
@@ -7042,7 +7205,7 @@ var _ref22 = process.env.NODE_ENV === "production" ? {
|
|
|
7042
7205
|
};
|
|
7043
7206
|
var RequiredInput = function RequiredInput2(_ref3) {
|
|
7044
7207
|
var name = _ref3.name, onFocus2 = _ref3.onFocus;
|
|
7045
|
-
return
|
|
7208
|
+
return jsx76("input", {
|
|
7046
7209
|
required: true,
|
|
7047
7210
|
name,
|
|
7048
7211
|
tabIndex: -1,
|
|
@@ -8617,7 +8780,7 @@ var import_typeof5 = __toESM(require_typeof());
|
|
|
8617
8780
|
var import_taggedTemplateLiteral2 = __toESM(require_taggedTemplateLiteral());
|
|
8618
8781
|
var import_defineProperty3 = __toESM(require_defineProperty());
|
|
8619
8782
|
import "react-dom";
|
|
8620
|
-
var StateManagedSelect = /* @__PURE__ */
|
|
8783
|
+
var StateManagedSelect = /* @__PURE__ */ forwardRef22(function(props, ref) {
|
|
8621
8784
|
var baseSelectProps = useStateManager(props);
|
|
8622
8785
|
return /* @__PURE__ */ React11.createElement(Select, _extends({
|
|
8623
8786
|
ref
|
|
@@ -8690,7 +8853,7 @@ function $2baaea4c71418dea$export$294aa081a6c6f55d(props) {
|
|
|
8690
8853
|
// src/Multiselect/Multiselect.tsx
|
|
8691
8854
|
import { useId } from "@react-aria/utils";
|
|
8692
8855
|
import { cn as cn41, useClassNames as useClassNames43 } from "@marigold/system";
|
|
8693
|
-
import { jsx as
|
|
8856
|
+
import { jsx as jsx78, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
8694
8857
|
var propsToBeRemoved = [
|
|
8695
8858
|
"clearValue",
|
|
8696
8859
|
"getStyles",
|
|
@@ -8716,7 +8879,7 @@ var Input4 = ({ innerRef, placeholder, hasValue, ...props }) => {
|
|
|
8716
8879
|
},
|
|
8717
8880
|
{}
|
|
8718
8881
|
);
|
|
8719
|
-
return /* @__PURE__ */
|
|
8882
|
+
return /* @__PURE__ */ jsx78(
|
|
8720
8883
|
_Input2,
|
|
8721
8884
|
{
|
|
8722
8885
|
disabled: props.isDisabled,
|
|
@@ -8727,11 +8890,11 @@ var Input4 = ({ innerRef, placeholder, hasValue, ...props }) => {
|
|
|
8727
8890
|
);
|
|
8728
8891
|
};
|
|
8729
8892
|
var MultiValueRemove2 = ({ innerProps }) => {
|
|
8730
|
-
return /* @__PURE__ */
|
|
8893
|
+
return /* @__PURE__ */ jsx78(Button5, { slot: "remove", ...innerProps, children: /* @__PURE__ */ jsx78("svg", { viewBox: "0 0 20 20", fill: "currentColor", width: 20, height: 20, children: /* @__PURE__ */ jsx78("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" }) }) });
|
|
8731
8894
|
};
|
|
8732
8895
|
var getClassNames = (classNames3) => ({
|
|
8733
8896
|
control: () => cn41(
|
|
8734
|
-
"relative flex items-center box-border flex-wrap justify-between
|
|
8897
|
+
"relative flex items-center box-border flex-wrap justify-between",
|
|
8735
8898
|
classNames3.container
|
|
8736
8899
|
),
|
|
8737
8900
|
container: () => "pointer-events-auto",
|
|
@@ -8779,8 +8942,8 @@ var Multiselect = ({
|
|
|
8779
8942
|
label: props.label,
|
|
8780
8943
|
errorMessage
|
|
8781
8944
|
});
|
|
8782
|
-
return /* @__PURE__ */
|
|
8783
|
-
|
|
8945
|
+
return /* @__PURE__ */ jsx78(
|
|
8946
|
+
Provider2,
|
|
8784
8947
|
{
|
|
8785
8948
|
values: [
|
|
8786
8949
|
[
|
|
@@ -8817,8 +8980,8 @@ var Multiselect = ({
|
|
|
8817
8980
|
"data-invalid": error,
|
|
8818
8981
|
"data-readonly": readOnly,
|
|
8819
8982
|
children: [
|
|
8820
|
-
props.label && /* @__PURE__ */
|
|
8821
|
-
/* @__PURE__ */
|
|
8983
|
+
props.label && /* @__PURE__ */ jsx78(_Label, { ...labelProps, children: props.label }),
|
|
8984
|
+
/* @__PURE__ */ jsx78(
|
|
8822
8985
|
StateManagedSelect$1,
|
|
8823
8986
|
{
|
|
8824
8987
|
...props,
|
|
@@ -8852,19 +9015,19 @@ var Multiselect = ({
|
|
|
8852
9015
|
components: {
|
|
8853
9016
|
Input: Input4,
|
|
8854
9017
|
MultiValueRemove: MultiValueRemove2,
|
|
8855
|
-
DropdownIndicator: ({ innerProps, isDisabled }) => /* @__PURE__ */
|
|
9018
|
+
DropdownIndicator: ({ innerProps, isDisabled }) => /* @__PURE__ */ jsx78(
|
|
8856
9019
|
"button",
|
|
8857
9020
|
{
|
|
8858
9021
|
...innerProps,
|
|
8859
9022
|
disabled: isDisabled,
|
|
8860
9023
|
className: classNames3.icon,
|
|
8861
|
-
children: /* @__PURE__ */
|
|
9024
|
+
children: /* @__PURE__ */ jsx78(ChevronDown, { className: "size-4" })
|
|
8862
9025
|
}
|
|
8863
9026
|
)
|
|
8864
9027
|
}
|
|
8865
9028
|
}
|
|
8866
9029
|
),
|
|
8867
|
-
/* @__PURE__ */
|
|
9030
|
+
/* @__PURE__ */ jsx78(HelpText, { description, errorMessage })
|
|
8868
9031
|
]
|
|
8869
9032
|
}
|
|
8870
9033
|
)
|
|
@@ -8873,15 +9036,15 @@ var Multiselect = ({
|
|
|
8873
9036
|
};
|
|
8874
9037
|
|
|
8875
9038
|
// src/NumberField/NumberField.tsx
|
|
8876
|
-
import { forwardRef as
|
|
9039
|
+
import { forwardRef as forwardRef23 } from "react";
|
|
8877
9040
|
import { Group as Group4, Input as Input5, NumberField } from "react-aria-components";
|
|
8878
9041
|
import { cn as cn43, useClassNames as useClassNames44 } from "@marigold/system";
|
|
8879
9042
|
|
|
8880
9043
|
// src/NumberField/StepButton.tsx
|
|
8881
9044
|
import { Button as Button6 } from "react-aria-components";
|
|
8882
9045
|
import { cn as cn42 } from "@marigold/system";
|
|
8883
|
-
import { jsx as
|
|
8884
|
-
var Plus = () => /* @__PURE__ */
|
|
9046
|
+
import { jsx as jsx79 } from "react/jsx-runtime";
|
|
9047
|
+
var Plus = () => /* @__PURE__ */ jsx79("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx79(
|
|
8885
9048
|
"path",
|
|
8886
9049
|
{
|
|
8887
9050
|
fillRule: "evenodd",
|
|
@@ -8889,7 +9052,7 @@ var Plus = () => /* @__PURE__ */ jsx78("svg", { width: 16, height: 16, viewBox:
|
|
|
8889
9052
|
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"
|
|
8890
9053
|
}
|
|
8891
9054
|
) });
|
|
8892
|
-
var Minus = () => /* @__PURE__ */
|
|
9055
|
+
var Minus = () => /* @__PURE__ */ jsx79("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx79(
|
|
8893
9056
|
"path",
|
|
8894
9057
|
{
|
|
8895
9058
|
fillRule: "evenodd",
|
|
@@ -8899,7 +9062,7 @@ var Minus = () => /* @__PURE__ */ jsx78("svg", { width: 16, height: 16, viewBox:
|
|
|
8899
9062
|
) });
|
|
8900
9063
|
var _StepButton = ({ direction, className, ...props }) => {
|
|
8901
9064
|
const Icon4 = direction === "up" ? Plus : Minus;
|
|
8902
|
-
return /* @__PURE__ */
|
|
9065
|
+
return /* @__PURE__ */ jsx79(
|
|
8903
9066
|
Button6,
|
|
8904
9067
|
{
|
|
8905
9068
|
className: cn42(
|
|
@@ -8910,14 +9073,14 @@ var _StepButton = ({ direction, className, ...props }) => {
|
|
|
8910
9073
|
className
|
|
8911
9074
|
),
|
|
8912
9075
|
...props,
|
|
8913
|
-
children: /* @__PURE__ */
|
|
9076
|
+
children: /* @__PURE__ */ jsx79(Icon4, {})
|
|
8914
9077
|
}
|
|
8915
9078
|
);
|
|
8916
9079
|
};
|
|
8917
9080
|
|
|
8918
9081
|
// src/NumberField/NumberField.tsx
|
|
8919
|
-
import { jsx as
|
|
8920
|
-
var _NumberField =
|
|
9082
|
+
import { jsx as jsx80, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
9083
|
+
var _NumberField = forwardRef23(
|
|
8921
9084
|
({
|
|
8922
9085
|
variant,
|
|
8923
9086
|
size: size2,
|
|
@@ -8941,7 +9104,7 @@ var _NumberField = forwardRef21(
|
|
|
8941
9104
|
...rest
|
|
8942
9105
|
};
|
|
8943
9106
|
const showStepper = !hideStepper && !readOnly;
|
|
8944
|
-
return /* @__PURE__ */
|
|
9107
|
+
return /* @__PURE__ */ jsx80(
|
|
8945
9108
|
FieldBase,
|
|
8946
9109
|
{
|
|
8947
9110
|
as: NumberField,
|
|
@@ -8949,7 +9112,7 @@ var _NumberField = forwardRef21(
|
|
|
8949
9112
|
"data-readonly": readOnly ? "true" : void 0,
|
|
8950
9113
|
"data-stepper": showStepper ? "true" : void 0,
|
|
8951
9114
|
children: /* @__PURE__ */ jsxs29(Group4, { className: cn43("flex items-stretch", classNames3.group), children: [
|
|
8952
|
-
showStepper && /* @__PURE__ */
|
|
9115
|
+
showStepper && /* @__PURE__ */ jsx80(
|
|
8953
9116
|
_StepButton,
|
|
8954
9117
|
{
|
|
8955
9118
|
className: classNames3.stepper,
|
|
@@ -8957,14 +9120,14 @@ var _NumberField = forwardRef21(
|
|
|
8957
9120
|
slot: "decrement"
|
|
8958
9121
|
}
|
|
8959
9122
|
),
|
|
8960
|
-
/* @__PURE__ */
|
|
9123
|
+
/* @__PURE__ */ jsx80(
|
|
8961
9124
|
Input5,
|
|
8962
9125
|
{
|
|
8963
9126
|
ref,
|
|
8964
9127
|
className: cn43("h-full flex-1 outline-none", classNames3.input)
|
|
8965
9128
|
}
|
|
8966
9129
|
),
|
|
8967
|
-
showStepper && /* @__PURE__ */
|
|
9130
|
+
showStepper && /* @__PURE__ */ jsx80(
|
|
8968
9131
|
_StepButton,
|
|
8969
9132
|
{
|
|
8970
9133
|
className: classNames3.stepper,
|
|
@@ -8978,172 +9141,6 @@ var _NumberField = forwardRef21(
|
|
|
8978
9141
|
}
|
|
8979
9142
|
);
|
|
8980
9143
|
|
|
8981
|
-
// src/Overlay/NonModal.tsx
|
|
8982
|
-
import { forwardRef as forwardRef22, useContext as useContext19 } from "react";
|
|
8983
|
-
import {
|
|
8984
|
-
OverlayTriggerStateContext as OverlayTriggerStateContext2,
|
|
8985
|
-
Provider as Provider2
|
|
8986
|
-
} from "react-aria-components";
|
|
8987
|
-
import {
|
|
8988
|
-
useOverlayTriggerState
|
|
8989
|
-
} from "react-stately";
|
|
8990
|
-
import { FocusScope } from "@react-aria/focus";
|
|
8991
|
-
import { DismissButton, Overlay } from "@react-aria/overlays";
|
|
8992
|
-
import { useIsSSR as useIsSSR2 } from "@react-aria/ssr";
|
|
8993
|
-
import {
|
|
8994
|
-
filterDOMProps,
|
|
8995
|
-
mergeProps,
|
|
8996
|
-
useEnterAnimation,
|
|
8997
|
-
useExitAnimation,
|
|
8998
|
-
useObjectRef,
|
|
8999
|
-
useViewportSize
|
|
9000
|
-
} from "@react-aria/utils";
|
|
9001
|
-
|
|
9002
|
-
// src/utils/useRenderProps.tsx
|
|
9003
|
-
import { useMemo as useMemo5 } from "react";
|
|
9004
|
-
function useRenderProps(props) {
|
|
9005
|
-
let {
|
|
9006
|
-
className,
|
|
9007
|
-
style,
|
|
9008
|
-
children,
|
|
9009
|
-
defaultClassName = void 0,
|
|
9010
|
-
defaultChildren = void 0,
|
|
9011
|
-
defaultStyle,
|
|
9012
|
-
values
|
|
9013
|
-
} = props;
|
|
9014
|
-
return useMemo5(() => {
|
|
9015
|
-
let computedClassName;
|
|
9016
|
-
let computedStyle;
|
|
9017
|
-
let computedChildren;
|
|
9018
|
-
if (typeof className === "function") {
|
|
9019
|
-
computedClassName = className({ ...values, defaultClassName });
|
|
9020
|
-
} else {
|
|
9021
|
-
computedClassName = className;
|
|
9022
|
-
}
|
|
9023
|
-
if (typeof style === "function") {
|
|
9024
|
-
computedStyle = style({ ...values, defaultStyle: defaultStyle || {} });
|
|
9025
|
-
} else {
|
|
9026
|
-
computedStyle = style;
|
|
9027
|
-
}
|
|
9028
|
-
if (typeof children === "function") {
|
|
9029
|
-
computedChildren = children({ ...values, defaultChildren });
|
|
9030
|
-
} else if (children == null) {
|
|
9031
|
-
computedChildren = defaultChildren;
|
|
9032
|
-
} else {
|
|
9033
|
-
computedChildren = children;
|
|
9034
|
-
}
|
|
9035
|
-
return {
|
|
9036
|
-
className: computedClassName != null ? computedClassName : defaultClassName,
|
|
9037
|
-
style: computedStyle || defaultStyle ? { ...defaultStyle, ...computedStyle } : void 0,
|
|
9038
|
-
children: computedChildren != null ? computedChildren : defaultChildren,
|
|
9039
|
-
"data-rac": ""
|
|
9040
|
-
};
|
|
9041
|
-
}, [
|
|
9042
|
-
className,
|
|
9043
|
-
style,
|
|
9044
|
-
children,
|
|
9045
|
-
defaultClassName,
|
|
9046
|
-
defaultChildren,
|
|
9047
|
-
defaultStyle,
|
|
9048
|
-
values
|
|
9049
|
-
]);
|
|
9050
|
-
}
|
|
9051
|
-
|
|
9052
|
-
// src/Overlay/useNonModal.ts
|
|
9053
|
-
import { useOverlay } from "@react-aria/overlays";
|
|
9054
|
-
var useNonModal = ({ nonModalRef, keyboardDismissable = true }, state) => {
|
|
9055
|
-
let { overlayProps } = useOverlay(
|
|
9056
|
-
{
|
|
9057
|
-
isOpen: state.isOpen,
|
|
9058
|
-
onClose: state.close,
|
|
9059
|
-
shouldCloseOnBlur: false,
|
|
9060
|
-
isDismissable: false,
|
|
9061
|
-
isKeyboardDismissDisabled: keyboardDismissable ? false : true
|
|
9062
|
-
},
|
|
9063
|
-
nonModalRef
|
|
9064
|
-
);
|
|
9065
|
-
return {
|
|
9066
|
-
nonModalProps: overlayProps
|
|
9067
|
-
};
|
|
9068
|
-
};
|
|
9069
|
-
|
|
9070
|
-
// src/Overlay/NonModal.tsx
|
|
9071
|
-
import { jsx as jsx80, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
9072
|
-
var NonModalInner = ({ state, isExiting, ...props }) => {
|
|
9073
|
-
const { nonModalProps } = useNonModal(props, state);
|
|
9074
|
-
const ref = props.nonModalRef;
|
|
9075
|
-
const portalContainer = usePortalContainer();
|
|
9076
|
-
const isEntering = useEnterAnimation(ref) || props.isEntering || false;
|
|
9077
|
-
const renderProps = useRenderProps({
|
|
9078
|
-
...props,
|
|
9079
|
-
defaultClassName: "react-aria-NonModalOverlay",
|
|
9080
|
-
values: {
|
|
9081
|
-
isEntering,
|
|
9082
|
-
isExiting,
|
|
9083
|
-
state
|
|
9084
|
-
}
|
|
9085
|
-
});
|
|
9086
|
-
const viewport = useViewportSize();
|
|
9087
|
-
const style = {
|
|
9088
|
-
...renderProps.style,
|
|
9089
|
-
"--visual-viewport-height": viewport.height + "px"
|
|
9090
|
-
};
|
|
9091
|
-
const overlay = /* @__PURE__ */ jsxs30(
|
|
9092
|
-
"div",
|
|
9093
|
-
{
|
|
9094
|
-
...mergeProps(filterDOMProps(props), nonModalProps),
|
|
9095
|
-
...renderProps,
|
|
9096
|
-
tabIndex: -1,
|
|
9097
|
-
"aria-label": props["aria-label"],
|
|
9098
|
-
"aria-labelledby": props["aria-labelledby"],
|
|
9099
|
-
ref,
|
|
9100
|
-
slot: props.slot || void 0,
|
|
9101
|
-
style,
|
|
9102
|
-
"data-entering": isEntering || void 0,
|
|
9103
|
-
"data-exiting": isExiting || void 0,
|
|
9104
|
-
children: [
|
|
9105
|
-
renderProps.children,
|
|
9106
|
-
/* @__PURE__ */ jsx80(DismissButton, { onDismiss: state.close })
|
|
9107
|
-
]
|
|
9108
|
-
}
|
|
9109
|
-
);
|
|
9110
|
-
return /* @__PURE__ */ jsx80(
|
|
9111
|
-
Overlay,
|
|
9112
|
-
{
|
|
9113
|
-
isExiting,
|
|
9114
|
-
portalContainer,
|
|
9115
|
-
disableFocusManagement: true,
|
|
9116
|
-
children: /* @__PURE__ */ jsx80(FocusScope, { restoreFocus: true, children: /* @__PURE__ */ jsx80(Provider2, { values: [[OverlayTriggerStateContext2, state]], children: overlay }) })
|
|
9117
|
-
}
|
|
9118
|
-
);
|
|
9119
|
-
};
|
|
9120
|
-
var NonModal = forwardRef22(
|
|
9121
|
-
({ open, ...rest }, ref) => {
|
|
9122
|
-
const props = {
|
|
9123
|
-
isOpen: open,
|
|
9124
|
-
...rest
|
|
9125
|
-
};
|
|
9126
|
-
ref = useObjectRef(ref);
|
|
9127
|
-
const contextState = useContext19(OverlayTriggerStateContext2);
|
|
9128
|
-
const localState = useOverlayTriggerState(props);
|
|
9129
|
-
const state = props.isOpen != null || props.defaultOpen != null || !contextState ? localState : contextState;
|
|
9130
|
-
const isExiting = useExitAnimation(ref, state.isOpen) || props.isExiting || false;
|
|
9131
|
-
const isSSR = useIsSSR2();
|
|
9132
|
-
if (state && !state.isOpen && !isExiting || isSSR) {
|
|
9133
|
-
return null;
|
|
9134
|
-
}
|
|
9135
|
-
return /* @__PURE__ */ jsx80(
|
|
9136
|
-
NonModalInner,
|
|
9137
|
-
{
|
|
9138
|
-
...props,
|
|
9139
|
-
nonModalRef: ref,
|
|
9140
|
-
state,
|
|
9141
|
-
isExiting
|
|
9142
|
-
}
|
|
9143
|
-
);
|
|
9144
|
-
}
|
|
9145
|
-
);
|
|
9146
|
-
|
|
9147
9144
|
// src/Pagination/Pagination.tsx
|
|
9148
9145
|
import { useEffect as useEffect6, useRef as useRef8, useState as useState6 } from "react";
|
|
9149
9146
|
import { cn as cn45, useClassNames as useClassNames47 } from "@marigold/system";
|
|
@@ -9165,7 +9162,7 @@ var Ellipsis = () => {
|
|
|
9165
9162
|
import React12, { useEffect as useEffect4 } from "react";
|
|
9166
9163
|
import { useButton as useButton2 } from "@react-aria/button";
|
|
9167
9164
|
import { cn as cn44, useClassNames as useClassNames45 } from "@marigold/system";
|
|
9168
|
-
import { jsxs as
|
|
9165
|
+
import { jsxs as jsxs30 } from "react/jsx-runtime";
|
|
9169
9166
|
var NavigationButton = (props) => {
|
|
9170
9167
|
const ref = React12.useRef(null);
|
|
9171
9168
|
const classNames3 = useClassNames45({
|
|
@@ -9187,7 +9184,7 @@ var NavigationButton = (props) => {
|
|
|
9187
9184
|
return () => registerRef(null);
|
|
9188
9185
|
}
|
|
9189
9186
|
}, [registerRef]);
|
|
9190
|
-
return /* @__PURE__ */
|
|
9187
|
+
return /* @__PURE__ */ jsxs30(
|
|
9191
9188
|
"button",
|
|
9192
9189
|
{
|
|
9193
9190
|
ref,
|
|
@@ -9386,7 +9383,7 @@ var usePageRange = ({ currentPage, totalPages }) => {
|
|
|
9386
9383
|
};
|
|
9387
9384
|
|
|
9388
9385
|
// src/Pagination/Pagination.tsx
|
|
9389
|
-
import { jsx as jsx83, jsxs as
|
|
9386
|
+
import { jsx as jsx83, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
9390
9387
|
var _Pagination = ({
|
|
9391
9388
|
defaultPage = 1,
|
|
9392
9389
|
page,
|
|
@@ -9435,7 +9432,7 @@ var _Pagination = ({
|
|
|
9435
9432
|
}, [currentPage, setFocusedItem]);
|
|
9436
9433
|
const isFirstPage = currentPage === 1;
|
|
9437
9434
|
const isLastPage = currentPage === totalPages || totalPages === 0;
|
|
9438
|
-
return /* @__PURE__ */
|
|
9435
|
+
return /* @__PURE__ */ jsxs31(
|
|
9439
9436
|
"nav",
|
|
9440
9437
|
{
|
|
9441
9438
|
className: "flex items-center justify-center space-x-2",
|
|
@@ -9485,14 +9482,14 @@ var _Pagination = ({
|
|
|
9485
9482
|
|
|
9486
9483
|
// src/Radio/Radio.tsx
|
|
9487
9484
|
import {
|
|
9488
|
-
forwardRef as
|
|
9485
|
+
forwardRef as forwardRef24
|
|
9489
9486
|
} from "react";
|
|
9490
9487
|
import { Radio } from "react-aria-components";
|
|
9491
9488
|
import { cn as cn47, useClassNames as useClassNames49 } from "@marigold/system";
|
|
9492
9489
|
|
|
9493
9490
|
// src/Radio/Context.ts
|
|
9494
|
-
import { createContext as
|
|
9495
|
-
var RadioGroupContext =
|
|
9491
|
+
import { createContext as createContext11, useContext as useContext20 } from "react";
|
|
9492
|
+
var RadioGroupContext = createContext11(
|
|
9496
9493
|
null
|
|
9497
9494
|
);
|
|
9498
9495
|
var useRadioGroupContext = () => useContext20(RadioGroupContext);
|
|
@@ -9554,7 +9551,7 @@ var _RadioGroup = ({
|
|
|
9554
9551
|
};
|
|
9555
9552
|
|
|
9556
9553
|
// src/Radio/Radio.tsx
|
|
9557
|
-
import { Fragment as Fragment9, jsx as jsx85, jsxs as
|
|
9554
|
+
import { Fragment as Fragment9, jsx as jsx85, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
9558
9555
|
var Dot = () => /* @__PURE__ */ jsx85("svg", { viewBox: "0 0 6 6", children: /* @__PURE__ */ jsx85("circle", { fill: "currentColor", cx: "3", cy: "3", r: "3" }) });
|
|
9559
9556
|
var Icon3 = ({ checked, className, ...props }) => /* @__PURE__ */ jsx85(
|
|
9560
9557
|
"div",
|
|
@@ -9568,7 +9565,7 @@ var Icon3 = ({ checked, className, ...props }) => /* @__PURE__ */ jsx85(
|
|
|
9568
9565
|
children: checked ? /* @__PURE__ */ jsx85(Dot, {}) : null
|
|
9569
9566
|
}
|
|
9570
9567
|
);
|
|
9571
|
-
var _Radio =
|
|
9568
|
+
var _Radio = forwardRef24(
|
|
9572
9569
|
({ value, disabled, width, children, ...props }, ref) => {
|
|
9573
9570
|
const { variant, size: size2, width: groupWidth } = useRadioGroupContext();
|
|
9574
9571
|
const classNames3 = useClassNames49({
|
|
@@ -9589,7 +9586,7 @@ var _Radio = forwardRef23(
|
|
|
9589
9586
|
value,
|
|
9590
9587
|
isDisabled: disabled,
|
|
9591
9588
|
...props,
|
|
9592
|
-
children: ({ isSelected }) => /* @__PURE__ */
|
|
9589
|
+
children: ({ isSelected }) => /* @__PURE__ */ jsxs32(Fragment9, { children: [
|
|
9593
9590
|
/* @__PURE__ */ jsx85(
|
|
9594
9591
|
Icon3,
|
|
9595
9592
|
{
|
|
@@ -9609,10 +9606,10 @@ var _Radio = forwardRef23(
|
|
|
9609
9606
|
_Radio.Group = _RadioGroup;
|
|
9610
9607
|
|
|
9611
9608
|
// src/SearchField/SearchField.tsx
|
|
9612
|
-
import { forwardRef as
|
|
9609
|
+
import { forwardRef as forwardRef25 } from "react";
|
|
9613
9610
|
import { SearchField } from "react-aria-components";
|
|
9614
9611
|
import { jsx as jsx86 } from "react/jsx-runtime";
|
|
9615
|
-
var _SearchField =
|
|
9612
|
+
var _SearchField = forwardRef25(
|
|
9616
9613
|
({ disabled, required, readOnly, error, action, ...rest }, ref) => {
|
|
9617
9614
|
const props = {
|
|
9618
9615
|
...rest,
|
|
@@ -9632,11 +9629,11 @@ var _SearchField = forwardRef24(
|
|
|
9632
9629
|
);
|
|
9633
9630
|
|
|
9634
9631
|
// src/Select/Select.tsx
|
|
9635
|
-
import { forwardRef as
|
|
9632
|
+
import { forwardRef as forwardRef26 } from "react";
|
|
9636
9633
|
import { Select as Select2, SelectValue } from "react-aria-components";
|
|
9637
9634
|
import { cn as cn48, useClassNames as useClassNames50 } from "@marigold/system";
|
|
9638
|
-
import { jsx as jsx87, jsxs as
|
|
9639
|
-
var _Select =
|
|
9635
|
+
import { jsx as jsx87, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
9636
|
+
var _Select = forwardRef26(
|
|
9640
9637
|
({
|
|
9641
9638
|
disabled,
|
|
9642
9639
|
required,
|
|
@@ -9657,8 +9654,8 @@ var _Select = forwardRef25(
|
|
|
9657
9654
|
...rest
|
|
9658
9655
|
};
|
|
9659
9656
|
const classNames3 = useClassNames50({ component: "Select", variant, size: size2 });
|
|
9660
|
-
return /* @__PURE__ */
|
|
9661
|
-
/* @__PURE__ */
|
|
9657
|
+
return /* @__PURE__ */ jsxs33(FieldBase, { as: Select2, ref, variant, size: size2, ...props, children: [
|
|
9658
|
+
/* @__PURE__ */ jsxs33(
|
|
9662
9659
|
IconButton,
|
|
9663
9660
|
{
|
|
9664
9661
|
className: cn48(
|
|
@@ -9680,24 +9677,24 @@ _Select.Section = _ListBox.Section;
|
|
|
9680
9677
|
|
|
9681
9678
|
// src/SelectList/SelectList.tsx
|
|
9682
9679
|
import {
|
|
9683
|
-
forwardRef as
|
|
9680
|
+
forwardRef as forwardRef28
|
|
9684
9681
|
} from "react";
|
|
9685
9682
|
import { GridList as SelectList } from "react-aria-components";
|
|
9686
9683
|
import { cn as cn50, useClassNames as useClassNames51 } from "@marigold/system";
|
|
9687
9684
|
|
|
9688
9685
|
// src/SelectList/Context.ts
|
|
9689
|
-
import { createContext as
|
|
9690
|
-
var SelectListContext =
|
|
9686
|
+
import { createContext as createContext12, useContext as useContext21 } from "react";
|
|
9687
|
+
var SelectListContext = createContext12(
|
|
9691
9688
|
{}
|
|
9692
9689
|
);
|
|
9693
9690
|
var useSelectListContext = () => useContext21(SelectListContext);
|
|
9694
9691
|
|
|
9695
9692
|
// src/SelectList/SelectListItem.tsx
|
|
9696
|
-
import { forwardRef as
|
|
9693
|
+
import { forwardRef as forwardRef27 } from "react";
|
|
9697
9694
|
import { GridListItem as SelectListItem } from "react-aria-components";
|
|
9698
9695
|
import { cn as cn49 } from "@marigold/system";
|
|
9699
|
-
import { jsx as jsx88, jsxs as
|
|
9700
|
-
var _SelectListItem =
|
|
9696
|
+
import { jsx as jsx88, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
9697
|
+
var _SelectListItem = forwardRef27(
|
|
9701
9698
|
({ children, ...props }, ref) => {
|
|
9702
9699
|
let textValue = typeof children === "string" ? children : void 0;
|
|
9703
9700
|
const { classNames: classNames3 } = useSelectListContext();
|
|
@@ -9708,7 +9705,7 @@ var _SelectListItem = forwardRef26(
|
|
|
9708
9705
|
...props,
|
|
9709
9706
|
className: cn49("group-[layout=grid]/list:flex-row", classNames3 == null ? void 0 : classNames3.option),
|
|
9710
9707
|
ref,
|
|
9711
|
-
children: ({ selectionMode }) => /* @__PURE__ */
|
|
9708
|
+
children: ({ selectionMode }) => /* @__PURE__ */ jsxs34("div", { className: "flex gap-2", children: [
|
|
9712
9709
|
selectionMode === "multiple" && /* @__PURE__ */ jsx88(_Checkbox, { slot: "selection" }),
|
|
9713
9710
|
children
|
|
9714
9711
|
] })
|
|
@@ -9719,7 +9716,7 @@ var _SelectListItem = forwardRef26(
|
|
|
9719
9716
|
|
|
9720
9717
|
// src/SelectList/SelectList.tsx
|
|
9721
9718
|
import { jsx as jsx89 } from "react/jsx-runtime";
|
|
9722
|
-
var _SelectList =
|
|
9719
|
+
var _SelectList = forwardRef28(
|
|
9723
9720
|
({ onChange: onChange2, ...rest }, ref) => {
|
|
9724
9721
|
const classNames3 = useClassNames51({ component: "ListBox" });
|
|
9725
9722
|
const props = {
|
|
@@ -9762,7 +9759,7 @@ var Scrollable = ({
|
|
|
9762
9759
|
);
|
|
9763
9760
|
|
|
9764
9761
|
// src/Slider/Slider.tsx
|
|
9765
|
-
import { forwardRef as
|
|
9762
|
+
import { forwardRef as forwardRef29 } from "react";
|
|
9766
9763
|
import {
|
|
9767
9764
|
Slider,
|
|
9768
9765
|
SliderOutput,
|
|
@@ -9774,8 +9771,8 @@ import {
|
|
|
9774
9771
|
width as twWidth3,
|
|
9775
9772
|
useClassNames as useClassNames52
|
|
9776
9773
|
} from "@marigold/system";
|
|
9777
|
-
import { Fragment as Fragment10, jsx as jsx91, jsxs as
|
|
9778
|
-
var _Slider =
|
|
9774
|
+
import { Fragment as Fragment10, jsx as jsx91, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
9775
|
+
var _Slider = forwardRef29(
|
|
9779
9776
|
({
|
|
9780
9777
|
thumbLabels,
|
|
9781
9778
|
variant,
|
|
@@ -9794,7 +9791,7 @@ var _Slider = forwardRef28(
|
|
|
9794
9791
|
isDisabled: disabled,
|
|
9795
9792
|
...rest
|
|
9796
9793
|
};
|
|
9797
|
-
return /* @__PURE__ */
|
|
9794
|
+
return /* @__PURE__ */ jsxs35(
|
|
9798
9795
|
FieldBase,
|
|
9799
9796
|
{
|
|
9800
9797
|
as: Slider,
|
|
@@ -9812,7 +9809,7 @@ var _Slider = forwardRef28(
|
|
|
9812
9809
|
SliderTrack,
|
|
9813
9810
|
{
|
|
9814
9811
|
className: cn52("relative col-span-2 h-2 w-full", classNames3.track),
|
|
9815
|
-
children: ({ state }) => /* @__PURE__ */
|
|
9812
|
+
children: ({ state }) => /* @__PURE__ */ jsxs35(Fragment10, { children: [
|
|
9816
9813
|
/* @__PURE__ */ jsx91(
|
|
9817
9814
|
"div",
|
|
9818
9815
|
{
|
|
@@ -9887,15 +9884,15 @@ var Stack = ({
|
|
|
9887
9884
|
};
|
|
9888
9885
|
|
|
9889
9886
|
// src/Switch/Switch.tsx
|
|
9890
|
-
import { forwardRef as
|
|
9887
|
+
import { forwardRef as forwardRef30 } from "react";
|
|
9891
9888
|
import { Switch } from "react-aria-components";
|
|
9892
9889
|
import {
|
|
9893
9890
|
cn as cn54,
|
|
9894
9891
|
width as twWidth4,
|
|
9895
9892
|
useClassNames as useClassNames53
|
|
9896
9893
|
} from "@marigold/system";
|
|
9897
|
-
import { jsx as jsx94, jsxs as
|
|
9898
|
-
var _Switch =
|
|
9894
|
+
import { jsx as jsx94, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
9895
|
+
var _Switch = forwardRef30(
|
|
9899
9896
|
({
|
|
9900
9897
|
variant,
|
|
9901
9898
|
size: size2,
|
|
@@ -9913,7 +9910,7 @@ var _Switch = forwardRef29(
|
|
|
9913
9910
|
isSelected: selected,
|
|
9914
9911
|
...rest
|
|
9915
9912
|
};
|
|
9916
|
-
return /* @__PURE__ */
|
|
9913
|
+
return /* @__PURE__ */ jsxs36(
|
|
9917
9914
|
Switch,
|
|
9918
9915
|
{
|
|
9919
9916
|
...props,
|
|
@@ -9940,15 +9937,15 @@ import {
|
|
|
9940
9937
|
TableBody as Body2,
|
|
9941
9938
|
Cell,
|
|
9942
9939
|
Column,
|
|
9943
|
-
TableHeader as
|
|
9940
|
+
TableHeader as Header4,
|
|
9944
9941
|
Row,
|
|
9945
9942
|
useTableState
|
|
9946
9943
|
} from "@react-stately/table";
|
|
9947
9944
|
import { cn as cn61, useClassNames as useClassNames55 } from "@marigold/system";
|
|
9948
9945
|
|
|
9949
9946
|
// src/Table/Context.tsx
|
|
9950
|
-
import { createContext as
|
|
9951
|
-
var TableContext =
|
|
9947
|
+
import { createContext as createContext13, useContext as useContext22 } from "react";
|
|
9948
|
+
var TableContext = createContext13({});
|
|
9952
9949
|
var useTableContext = () => useContext22(TableContext);
|
|
9953
9950
|
|
|
9954
9951
|
// src/Table/TableBody.tsx
|
|
@@ -10081,7 +10078,7 @@ import { useHover } from "@react-aria/interactions";
|
|
|
10081
10078
|
import { useTableColumnHeader } from "@react-aria/table";
|
|
10082
10079
|
import { mergeProps as mergeProps4 } from "@react-aria/utils";
|
|
10083
10080
|
import { cn as cn57, width as twWidth5, useStateProps as useStateProps3 } from "@marigold/system";
|
|
10084
|
-
import { jsx as jsx98, jsxs as
|
|
10081
|
+
import { jsx as jsx98, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
10085
10082
|
var TableColumnHeader = ({
|
|
10086
10083
|
column: column2,
|
|
10087
10084
|
width = "auto",
|
|
@@ -10103,7 +10100,7 @@ var TableColumnHeader = ({
|
|
|
10103
10100
|
hover: isHovered,
|
|
10104
10101
|
focusVisible: isFocusVisible
|
|
10105
10102
|
});
|
|
10106
|
-
return /* @__PURE__ */
|
|
10103
|
+
return /* @__PURE__ */ jsxs37(
|
|
10107
10104
|
"th",
|
|
10108
10105
|
{
|
|
10109
10106
|
colSpan: column2.colspan,
|
|
@@ -10261,7 +10258,7 @@ var TableSelectAllCell = ({
|
|
|
10261
10258
|
};
|
|
10262
10259
|
|
|
10263
10260
|
// src/Table/Table.tsx
|
|
10264
|
-
import { jsx as jsx103, jsxs as
|
|
10261
|
+
import { jsx as jsx103, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
10265
10262
|
var Table = ({
|
|
10266
10263
|
variant,
|
|
10267
10264
|
size: size2,
|
|
@@ -10294,7 +10291,7 @@ var Table = ({
|
|
|
10294
10291
|
TableContext.Provider,
|
|
10295
10292
|
{
|
|
10296
10293
|
value: { state, interactive, classNames: classNames3, variant, size: size2 },
|
|
10297
|
-
children: /* @__PURE__ */
|
|
10294
|
+
children: /* @__PURE__ */ jsxs38(
|
|
10298
10295
|
"table",
|
|
10299
10296
|
{
|
|
10300
10297
|
ref: tableRef,
|
|
@@ -10336,7 +10333,7 @@ var Table = ({
|
|
|
10336
10333
|
},
|
|
10337
10334
|
headerRow.key
|
|
10338
10335
|
)) }),
|
|
10339
|
-
/* @__PURE__ */
|
|
10336
|
+
/* @__PURE__ */ jsxs38(TableBody, { className: classNames3.body, emptyState, children: [
|
|
10340
10337
|
...collection.rows.map(
|
|
10341
10338
|
(row) => row.type === "item" && /* @__PURE__ */ jsx103(TableRow, { row, children: [...collection.getChildren(row.key)].map((cell, index2) => {
|
|
10342
10339
|
var _a, _b;
|
|
@@ -10361,7 +10358,7 @@ var Table = ({
|
|
|
10361
10358
|
Table.Body = Body2;
|
|
10362
10359
|
Table.Cell = Cell;
|
|
10363
10360
|
Table.Column = Column;
|
|
10364
|
-
Table.Header =
|
|
10361
|
+
Table.Header = Header4;
|
|
10365
10362
|
Table.Row = Row;
|
|
10366
10363
|
|
|
10367
10364
|
// src/Text/Text.tsx
|
|
@@ -10419,11 +10416,11 @@ var _Text = ({
|
|
|
10419
10416
|
};
|
|
10420
10417
|
|
|
10421
10418
|
// src/TextArea/TextArea.tsx
|
|
10422
|
-
import { forwardRef as
|
|
10419
|
+
import { forwardRef as forwardRef31 } from "react";
|
|
10423
10420
|
import { TextArea, TextField } from "react-aria-components";
|
|
10424
10421
|
import { useClassNames as useClassNames57 } from "@marigold/system";
|
|
10425
10422
|
import { jsx as jsx105 } from "react/jsx-runtime";
|
|
10426
|
-
var _TextArea =
|
|
10423
|
+
var _TextArea = forwardRef31(
|
|
10427
10424
|
({
|
|
10428
10425
|
variant,
|
|
10429
10426
|
size: size2,
|
|
@@ -10447,10 +10444,10 @@ var _TextArea = forwardRef30(
|
|
|
10447
10444
|
);
|
|
10448
10445
|
|
|
10449
10446
|
// src/TextField/TextField.tsx
|
|
10450
|
-
import { forwardRef as
|
|
10447
|
+
import { forwardRef as forwardRef32 } from "react";
|
|
10451
10448
|
import { TextField as TextField2 } from "react-aria-components";
|
|
10452
10449
|
import { jsx as jsx106 } from "react/jsx-runtime";
|
|
10453
|
-
var _TextField =
|
|
10450
|
+
var _TextField = forwardRef32(
|
|
10454
10451
|
({ required, disabled, readOnly, error, ...rest }, ref) => {
|
|
10455
10452
|
const props = {
|
|
10456
10453
|
isDisabled: disabled,
|
|
@@ -10518,7 +10515,7 @@ var _TooltipTrigger = ({
|
|
|
10518
10515
|
};
|
|
10519
10516
|
|
|
10520
10517
|
// src/Tooltip/Tooltip.tsx
|
|
10521
|
-
import { jsx as jsx109, jsxs as
|
|
10518
|
+
import { jsx as jsx109, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
10522
10519
|
var _Tooltip = ({ children, variant, size: size2, open, ...rest }) => {
|
|
10523
10520
|
const props = {
|
|
10524
10521
|
...rest,
|
|
@@ -10526,7 +10523,7 @@ var _Tooltip = ({ children, variant, size: size2, open, ...rest }) => {
|
|
|
10526
10523
|
};
|
|
10527
10524
|
const classNames3 = useClassNames58({ component: "Tooltip", variant, size: size2 });
|
|
10528
10525
|
const portal = usePortalContainer();
|
|
10529
|
-
return /* @__PURE__ */
|
|
10526
|
+
return /* @__PURE__ */ jsxs39(
|
|
10530
10527
|
Tooltip,
|
|
10531
10528
|
{
|
|
10532
10529
|
...props,
|
|
@@ -10571,7 +10568,7 @@ var _TagGroup = ({
|
|
|
10571
10568
|
};
|
|
10572
10569
|
|
|
10573
10570
|
// src/TagGroup/Tag.tsx
|
|
10574
|
-
import { Fragment as Fragment11, jsx as jsx111, jsxs as
|
|
10571
|
+
import { Fragment as Fragment11, jsx as jsx111, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
10575
10572
|
var CloseButton2 = ({ className }) => {
|
|
10576
10573
|
return /* @__PURE__ */ jsx111(Button7, { slot: "remove", className, children: /* @__PURE__ */ jsx111("svg", { viewBox: "0 0 20 20", fill: "currentColor", width: 20, height: 20, children: /* @__PURE__ */ jsx111("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" }) }) });
|
|
10577
10574
|
};
|
|
@@ -10588,7 +10585,7 @@ var _Tag = ({ variant, size: size2, children, disabled, ...rest }) => {
|
|
|
10588
10585
|
textValue,
|
|
10589
10586
|
...props,
|
|
10590
10587
|
className: cn65("data-selection-mode:cursor-pointer", classNames3.tag),
|
|
10591
|
-
children: ({ allowsRemoving }) => /* @__PURE__ */
|
|
10588
|
+
children: ({ allowsRemoving }) => /* @__PURE__ */ jsxs40(Fragment11, { children: [
|
|
10592
10589
|
children,
|
|
10593
10590
|
allowsRemoving && /* @__PURE__ */ jsx111(
|
|
10594
10591
|
CloseButton2,
|
|
@@ -10626,7 +10623,7 @@ var intlMessages2 = {
|
|
|
10626
10623
|
};
|
|
10627
10624
|
|
|
10628
10625
|
// src/XLoader/BaseLoader.tsx
|
|
10629
|
-
import { jsx as jsx112, jsxs as
|
|
10626
|
+
import { jsx as jsx112, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
10630
10627
|
var BaseLoader = ({
|
|
10631
10628
|
variant,
|
|
10632
10629
|
size: size2,
|
|
@@ -10636,7 +10633,7 @@ var BaseLoader = ({
|
|
|
10636
10633
|
}) => {
|
|
10637
10634
|
const stringFormatter = useLocalizedStringFormatter2(intlMessages2, "marigold");
|
|
10638
10635
|
const className = useClassNames61({ component: "XLoader", variant, size: size2 });
|
|
10639
|
-
return /* @__PURE__ */
|
|
10636
|
+
return /* @__PURE__ */ jsxs41(
|
|
10640
10637
|
ProgressBar2,
|
|
10641
10638
|
{
|
|
10642
10639
|
className: className.container,
|
|
@@ -10644,7 +10641,7 @@ var BaseLoader = ({
|
|
|
10644
10641
|
"aria-label": ariaLabel || children ? ariaLabel : stringFormatter.format("loadingMessage"),
|
|
10645
10642
|
...props,
|
|
10646
10643
|
children: [
|
|
10647
|
-
/* @__PURE__ */
|
|
10644
|
+
/* @__PURE__ */ jsxs41(
|
|
10648
10645
|
"svg",
|
|
10649
10646
|
{
|
|
10650
10647
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -10881,8 +10878,8 @@ import { Tabs } from "react-aria-components";
|
|
|
10881
10878
|
import { useClassNames as useClassNames63 } from "@marigold/system";
|
|
10882
10879
|
|
|
10883
10880
|
// src/Tabs/Context.ts
|
|
10884
|
-
import { createContext as
|
|
10885
|
-
var TabContext =
|
|
10881
|
+
import { createContext as createContext14, useContext as useContext23 } from "react";
|
|
10882
|
+
var TabContext = createContext14({});
|
|
10886
10883
|
var useTabContext = () => useContext23(TabContext);
|
|
10887
10884
|
|
|
10888
10885
|
// src/Tabs/Tab.tsx
|