@umami/react-zen 0.132.0 → 0.134.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +8 -8
- package/dist/index.d.mts +6 -3
- package/dist/index.d.ts +6 -3
- package/dist/index.js +128 -118
- package/dist/index.mjs +117 -107
- package/package.json +1 -1
- package/styles.css +8 -8
package/dist/index.mjs
CHANGED
|
@@ -25789,6 +25789,7 @@ var cssMap = {
|
|
|
25789
25789
|
bottom: "bottom",
|
|
25790
25790
|
left: "left",
|
|
25791
25791
|
order: "order",
|
|
25792
|
+
zIndex: "z-index",
|
|
25792
25793
|
textTransform: "text-transform"
|
|
25793
25794
|
};
|
|
25794
25795
|
var aliasMap = {
|
|
@@ -25821,7 +25822,8 @@ var excludedProps = [
|
|
|
25821
25822
|
"right",
|
|
25822
25823
|
"bottom",
|
|
25823
25824
|
"left",
|
|
25824
|
-
"order"
|
|
25825
|
+
"order",
|
|
25826
|
+
"zIndex"
|
|
25825
25827
|
];
|
|
25826
25828
|
function parseValue(name, value) {
|
|
25827
25829
|
if (/^\d+$/.test(value)) {
|
|
@@ -26096,6 +26098,7 @@ function Box({
|
|
|
26096
26098
|
gridRow,
|
|
26097
26099
|
gridColumn,
|
|
26098
26100
|
order,
|
|
26101
|
+
zIndex,
|
|
26099
26102
|
theme,
|
|
26100
26103
|
as = "div",
|
|
26101
26104
|
asChild,
|
|
@@ -26155,7 +26158,8 @@ function Box({
|
|
|
26155
26158
|
gridArea,
|
|
26156
26159
|
gridRow,
|
|
26157
26160
|
gridColumn,
|
|
26158
|
-
order
|
|
26161
|
+
order,
|
|
26162
|
+
zIndex
|
|
26159
26163
|
});
|
|
26160
26164
|
return /* @__PURE__ */ jsx8(
|
|
26161
26165
|
Component,
|
|
@@ -26242,55 +26246,70 @@ function FormField({
|
|
|
26242
26246
|
}) {
|
|
26243
26247
|
const context = useFormContext();
|
|
26244
26248
|
const { formState, control } = context;
|
|
26245
|
-
const controller = useController({ name, control, rules });
|
|
26246
|
-
const { field } = controller;
|
|
26247
26249
|
const errors = formState?.errors || {};
|
|
26248
26250
|
const errorMessage = errors[name]?.message;
|
|
26249
26251
|
return /* @__PURE__ */ jsxs6("div", { ...props, className: (0, import_classnames6.default)(FormField_default.input, className), children: [
|
|
26250
|
-
|
|
26251
|
-
|
|
26252
|
-
|
|
26253
|
-
|
|
26252
|
+
/* @__PURE__ */ jsx13(FormController, { name, control, rules, children: ({ field }) => {
|
|
26253
|
+
return Children.map(
|
|
26254
|
+
typeof children === "function" ? children({ ...context }) : children,
|
|
26255
|
+
(child) => child ? cloneElement2(child, { ...field, label: child.props.label || label }) : null
|
|
26256
|
+
);
|
|
26257
|
+
} }),
|
|
26254
26258
|
description && /* @__PURE__ */ jsx13("div", { className: FormField_default.description, children: description }),
|
|
26255
26259
|
errorMessage && /* @__PURE__ */ jsx13("div", { className: FormField_default.error, children: errorMessage })
|
|
26256
26260
|
] });
|
|
26257
26261
|
}
|
|
26258
26262
|
|
|
26259
26263
|
// src/components/forms/FormFieldArray.tsx
|
|
26264
|
+
var import_classnames8 = __toESM(require_classnames());
|
|
26265
|
+
|
|
26266
|
+
// src/components/Label.tsx
|
|
26260
26267
|
var import_classnames7 = __toESM(require_classnames());
|
|
26261
|
-
|
|
26268
|
+
|
|
26269
|
+
// css-modules:E:\dev\umami-react-zen\src\components\Label.module.css
|
|
26270
|
+
var Label_default = { "label": "Label_label__YWE3M" };
|
|
26271
|
+
|
|
26272
|
+
// src/components/Label.tsx
|
|
26273
|
+
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
26274
|
+
function Label2({ className, ...props }) {
|
|
26275
|
+
return /* @__PURE__ */ jsx14($01b77f81d0f07f68$export$b04be29aa201d4f5, { ...props, className: (0, import_classnames7.default)(Label_default.label, className) });
|
|
26276
|
+
}
|
|
26277
|
+
|
|
26278
|
+
// src/components/forms/FormFieldArray.tsx
|
|
26279
|
+
import { jsx as jsx15, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
26262
26280
|
function FormFieldArray({
|
|
26263
26281
|
name,
|
|
26264
26282
|
description,
|
|
26265
26283
|
label,
|
|
26284
|
+
rules,
|
|
26266
26285
|
className,
|
|
26267
26286
|
children,
|
|
26268
26287
|
...props
|
|
26269
26288
|
}) {
|
|
26270
26289
|
const context = useFormContext();
|
|
26271
|
-
const {
|
|
26290
|
+
const { formState, control } = context;
|
|
26272
26291
|
const fieldProps = useFieldArray({
|
|
26273
26292
|
control,
|
|
26274
26293
|
name
|
|
26275
26294
|
});
|
|
26276
26295
|
const errors = formState?.errors || {};
|
|
26277
26296
|
const errorMessage = errors[name]?.message;
|
|
26278
|
-
return /* @__PURE__ */ jsxs7("div", { ...props, className: (0,
|
|
26279
|
-
label && /* @__PURE__ */
|
|
26280
|
-
description && /* @__PURE__ */
|
|
26281
|
-
errorMessage && /* @__PURE__ */
|
|
26282
|
-
children({ context, ...fieldProps })
|
|
26297
|
+
return /* @__PURE__ */ jsxs7("div", { ...props, className: (0, import_classnames8.default)(FormField_default.input, className), children: [
|
|
26298
|
+
label && /* @__PURE__ */ jsx15(Label2, { children: label }),
|
|
26299
|
+
description && /* @__PURE__ */ jsx15("div", { className: FormField_default.description, children: description }),
|
|
26300
|
+
errorMessage && /* @__PURE__ */ jsx15("div", { className: FormField_default.error, children: errorMessage }),
|
|
26301
|
+
children({ ...context, ...fieldProps })
|
|
26283
26302
|
] });
|
|
26284
26303
|
}
|
|
26285
26304
|
|
|
26286
26305
|
// src/components/Button.tsx
|
|
26287
|
-
var
|
|
26306
|
+
var import_classnames9 = __toESM(require_classnames());
|
|
26288
26307
|
|
|
26289
26308
|
// css-modules:E:\dev\umami-react-zen\src\components\Button.module.css
|
|
26290
26309
|
var Button_default = { "button": "Button_button__YTAxZ", "primary": "Button_primary__NDFlY", "outline": "Button_outline__ZjQ3O", "quiet": "Button_quiet__ZWYwN", "danger": "Button_danger__YTg1M", "sm": "Button_sm__ZTAwM", "md": "Button_md__MDNjZ", "lg": "Button_lg__Njc0N", "xl": "Button_xl__MmUxM" };
|
|
26291
26310
|
|
|
26292
26311
|
// src/components/Button.tsx
|
|
26293
|
-
import { jsx as
|
|
26312
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
26294
26313
|
function Button2({
|
|
26295
26314
|
variant = "secondary",
|
|
26296
26315
|
size = "md",
|
|
@@ -26302,12 +26321,12 @@ function Button2({
|
|
|
26302
26321
|
}) {
|
|
26303
26322
|
const Component = asChild ? Slot : $d2b4bc8c273e7be6$export$353f5b6fc5456de1;
|
|
26304
26323
|
const buttonProps = Component === $d2b4bc8c273e7be6$export$353f5b6fc5456de1 ? { preventFocusOnPress } : void 0;
|
|
26305
|
-
return /* @__PURE__ */
|
|
26324
|
+
return /* @__PURE__ */ jsx16(
|
|
26306
26325
|
Component,
|
|
26307
26326
|
{
|
|
26308
26327
|
...props,
|
|
26309
26328
|
...buttonProps,
|
|
26310
|
-
className: (0,
|
|
26329
|
+
className: (0, import_classnames9.default)(
|
|
26311
26330
|
Button_default.button,
|
|
26312
26331
|
className,
|
|
26313
26332
|
variant && Button_default[variant],
|
|
@@ -26319,44 +26338,44 @@ function Button2({
|
|
|
26319
26338
|
}
|
|
26320
26339
|
|
|
26321
26340
|
// src/components/forms/FormResetButton.tsx
|
|
26322
|
-
import { jsx as
|
|
26341
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
26323
26342
|
function FormResetButton({ values = {}, children, onPress, ...props }) {
|
|
26324
26343
|
const { reset } = useFormContext();
|
|
26325
26344
|
const handleReset = (e) => {
|
|
26326
26345
|
reset(values);
|
|
26327
26346
|
onPress?.(e);
|
|
26328
26347
|
};
|
|
26329
|
-
return /* @__PURE__ */
|
|
26348
|
+
return /* @__PURE__ */ jsx17(Button2, { ...props, type: "reset", onPress: handleReset, children });
|
|
26330
26349
|
}
|
|
26331
26350
|
|
|
26332
26351
|
// src/components/Spinner.tsx
|
|
26333
|
-
var
|
|
26352
|
+
var import_classnames10 = __toESM(require_classnames());
|
|
26334
26353
|
|
|
26335
26354
|
// css-modules:E:\dev\umami-react-zen\src\components\Spinner.module.css
|
|
26336
26355
|
var Spinner_default = { "spinner": "Spinner_spinner__MmRhN", "spinner-rotate": "Spinner_spinner-rotate__MDI2M", "track": "Spinner_track__ODIyN", "fill": "Spinner_fill__OGY5Y", "spinner-dash": "Spinner_spinner-dash__ZDE2N", "size-sm": "Spinner_size-sm__YWEwM", "size-md": "Spinner_size-md__NThiM", "size-lg": "Spinner_size-lg__MDEzN", "size-xl": "Spinner_size-xl__ZTNkN", "quiet": "Spinner_quiet__ZGJlM", "disabled": "Spinner_disabled__YjdjY" };
|
|
26337
26356
|
|
|
26338
26357
|
// src/components/Spinner.tsx
|
|
26339
|
-
import { jsx as
|
|
26358
|
+
import { jsx as jsx18, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
26340
26359
|
function Spinner(props) {
|
|
26341
26360
|
const { size = "lg", quiet, className, isDisabled, ...domProps } = props;
|
|
26342
|
-
return /* @__PURE__ */
|
|
26361
|
+
return /* @__PURE__ */ jsx18(
|
|
26343
26362
|
"div",
|
|
26344
26363
|
{
|
|
26345
26364
|
...domProps,
|
|
26346
|
-
className: (0,
|
|
26365
|
+
className: (0, import_classnames10.default)(Spinner_default.spinner, className, Spinner_default[`size-${size}`], {
|
|
26347
26366
|
[Spinner_default.quiet]: quiet,
|
|
26348
26367
|
[Spinner_default.disabled]: isDisabled
|
|
26349
26368
|
}),
|
|
26350
26369
|
children: /* @__PURE__ */ jsxs8("svg", { viewBox: "25 25 50 50", children: [
|
|
26351
|
-
/* @__PURE__ */
|
|
26352
|
-
/* @__PURE__ */
|
|
26370
|
+
/* @__PURE__ */ jsx18("circle", { className: Spinner_default.track, cx: "50", cy: "50", r: "20" }),
|
|
26371
|
+
/* @__PURE__ */ jsx18("circle", { className: Spinner_default.fill, cx: "50", cy: "50", r: "20" })
|
|
26353
26372
|
] })
|
|
26354
26373
|
}
|
|
26355
26374
|
);
|
|
26356
26375
|
}
|
|
26357
26376
|
|
|
26358
26377
|
// src/components/LoadingButton.tsx
|
|
26359
|
-
import { jsx as
|
|
26378
|
+
import { jsx as jsx19, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
26360
26379
|
function LoadingButton({
|
|
26361
26380
|
isLoading,
|
|
26362
26381
|
isDisabled,
|
|
@@ -26365,13 +26384,13 @@ function LoadingButton({
|
|
|
26365
26384
|
...props
|
|
26366
26385
|
}) {
|
|
26367
26386
|
return /* @__PURE__ */ jsxs9(Button2, { ...props, isDisabled, children: [
|
|
26368
|
-
isLoading && /* @__PURE__ */
|
|
26387
|
+
isLoading && /* @__PURE__ */ jsx19(Icon2, { size: "sm", children: /* @__PURE__ */ jsx19(Spinner, { isDisabled }) }),
|
|
26369
26388
|
showText && children
|
|
26370
26389
|
] });
|
|
26371
26390
|
}
|
|
26372
26391
|
|
|
26373
26392
|
// src/components/forms/FormSubmitButton.tsx
|
|
26374
|
-
import { jsx as
|
|
26393
|
+
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
26375
26394
|
function FormSubmitButton({
|
|
26376
26395
|
variant = "primary",
|
|
26377
26396
|
isDisabled,
|
|
@@ -26382,7 +26401,7 @@ function FormSubmitButton({
|
|
|
26382
26401
|
const {
|
|
26383
26402
|
formState: { isDirty, isValid, isSubmitting, isSubmitted, isSubmitSuccessful }
|
|
26384
26403
|
} = useFormContext();
|
|
26385
|
-
return /* @__PURE__ */
|
|
26404
|
+
return /* @__PURE__ */ jsx20(
|
|
26386
26405
|
LoadingButton,
|
|
26387
26406
|
{
|
|
26388
26407
|
...props,
|
|
@@ -26396,13 +26415,13 @@ function FormSubmitButton({
|
|
|
26396
26415
|
}
|
|
26397
26416
|
|
|
26398
26417
|
// src/components/toast/Toast.tsx
|
|
26399
|
-
var
|
|
26418
|
+
var import_classnames11 = __toESM(require_classnames());
|
|
26400
26419
|
|
|
26401
26420
|
// css-modules:E:\dev\umami-react-zen\src\components\toast\Toast.module.css
|
|
26402
26421
|
var Toast_default = { "toast": "Toast_toast__ODE0M", "icon": "Toast_icon__ZmRlO", "title": "Toast_title__OGFiM", "description": "Toast_description__OTAxY", "action": "Toast_action__YzYxM", "close": "Toast_close__ZmMzM", "success": "Toast_success__Y2ZhZ", "error": "Toast_error__YzE0Y" };
|
|
26403
26422
|
|
|
26404
26423
|
// src/components/toast/Toast.tsx
|
|
26405
|
-
import { jsx as
|
|
26424
|
+
import { jsx as jsx21, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
26406
26425
|
var TOAST_CLOSE_ACTION = "close";
|
|
26407
26426
|
function Toast({
|
|
26408
26427
|
id,
|
|
@@ -26417,11 +26436,11 @@ function Toast({
|
|
|
26417
26436
|
...props
|
|
26418
26437
|
}) {
|
|
26419
26438
|
const hasActions = actions?.length > 0;
|
|
26420
|
-
return /* @__PURE__ */ jsxs10("div", { ...props, className: (0,
|
|
26421
|
-
title && /* @__PURE__ */
|
|
26422
|
-
message && /* @__PURE__ */
|
|
26439
|
+
return /* @__PURE__ */ jsxs10("div", { ...props, className: (0, import_classnames11.default)(Toast_default.toast, className, variant && Toast_default[variant]), children: [
|
|
26440
|
+
title && /* @__PURE__ */ jsx21("div", { className: Toast_default.title, children: title }),
|
|
26441
|
+
message && /* @__PURE__ */ jsx21("div", { className: Toast_default.description, children: message }),
|
|
26423
26442
|
hasActions && actions.map((action) => {
|
|
26424
|
-
return /* @__PURE__ */
|
|
26443
|
+
return /* @__PURE__ */ jsx21(
|
|
26425
26444
|
Button2,
|
|
26426
26445
|
{
|
|
26427
26446
|
variant: "outline",
|
|
@@ -26432,7 +26451,7 @@ function Toast({
|
|
|
26432
26451
|
action
|
|
26433
26452
|
);
|
|
26434
26453
|
}),
|
|
26435
|
-
!hasActions && allowClose && /* @__PURE__ */
|
|
26454
|
+
!hasActions && allowClose && /* @__PURE__ */ jsx21(
|
|
26436
26455
|
Icon2,
|
|
26437
26456
|
{
|
|
26438
26457
|
"aria-hidden": true,
|
|
@@ -26440,7 +26459,7 @@ function Toast({
|
|
|
26440
26459
|
size: "sm",
|
|
26441
26460
|
className: Toast_default.close,
|
|
26442
26461
|
onClick: () => onClose?.(TOAST_CLOSE_ACTION),
|
|
26443
|
-
children: /* @__PURE__ */
|
|
26462
|
+
children: /* @__PURE__ */ jsx21(X, {})
|
|
26444
26463
|
}
|
|
26445
26464
|
)
|
|
26446
26465
|
] });
|
|
@@ -30020,7 +30039,7 @@ var host = createHost(primitives, {
|
|
|
30020
30039
|
var animated = host.animated;
|
|
30021
30040
|
|
|
30022
30041
|
// src/components/toast/Toaster.tsx
|
|
30023
|
-
var
|
|
30042
|
+
var import_classnames12 = __toESM(require_classnames());
|
|
30024
30043
|
import { useEffect as useEffect6, useState as useState5 } from "react";
|
|
30025
30044
|
|
|
30026
30045
|
// node_modules/.pnpm/zustand@5.0.5_@types+react@_a1d6b7db10f76afd26403e7782bb5bbf/node_modules/zustand/esm/vanilla.mjs
|
|
@@ -30072,12 +30091,12 @@ import { useContext as useContext4 } from "react";
|
|
|
30072
30091
|
|
|
30073
30092
|
// src/components/toast/ToastProvider.tsx
|
|
30074
30093
|
import { createContext as createContext2 } from "react";
|
|
30075
|
-
import { jsx as
|
|
30094
|
+
import { jsx as jsx22, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
30076
30095
|
var ToastContext = createContext2({});
|
|
30077
30096
|
function ToastProvider({ children, ...props }) {
|
|
30078
30097
|
return /* @__PURE__ */ jsxs11(ToastContext.Provider, { value: props, children: [
|
|
30079
30098
|
children,
|
|
30080
|
-
/* @__PURE__ */
|
|
30099
|
+
/* @__PURE__ */ jsx22(Toaster, { ...props })
|
|
30081
30100
|
] });
|
|
30082
30101
|
}
|
|
30083
30102
|
|
|
@@ -30115,7 +30134,7 @@ function useToast() {
|
|
|
30115
30134
|
var Toaster_default = { "toaster": "Toaster_toaster__OGJjM", "position-top": "Toaster_position-top__Y2YyM", "position-top-right": "Toaster_position-top-right__Y2I1Y", "position-top-left": "Toaster_position-top-left__ZGZlM", "position-bottom": "Toaster_position-bottom__NjJmM", "position-bottom-right": "Toaster_position-bottom-right__MGVjY", "position-bottom-left": "Toaster_position-bottom-left__ODBhZ", "position-left": "Toaster_position-left__MWMzM", "position-right": "Toaster_position-right__YWYzZ" };
|
|
30116
30135
|
|
|
30117
30136
|
// src/components/toast/Toaster.tsx
|
|
30118
|
-
import { jsx as
|
|
30137
|
+
import { jsx as jsx23 } from "react/jsx-runtime";
|
|
30119
30138
|
function Toaster({ duration = 0, position = "bottom-right" }) {
|
|
30120
30139
|
const { toasts } = useToast();
|
|
30121
30140
|
const [hovered, setHovered] = useState5(false);
|
|
@@ -30147,17 +30166,17 @@ function Toaster({ duration = 0, position = "bottom-right" }) {
|
|
|
30147
30166
|
};
|
|
30148
30167
|
}
|
|
30149
30168
|
}, [duration, toasts, hovered]);
|
|
30150
|
-
return /* @__PURE__ */
|
|
30169
|
+
return /* @__PURE__ */ jsx23(
|
|
30151
30170
|
"div",
|
|
30152
30171
|
{
|
|
30153
|
-
className: (0,
|
|
30172
|
+
className: (0, import_classnames12.default)(Toaster_default.toaster, Toaster_default[`position-${position}`]),
|
|
30154
30173
|
onMouseEnter: () => setHovered(true),
|
|
30155
30174
|
onMouseLeave: () => setHovered(false),
|
|
30156
30175
|
children: transitions((style, item) => {
|
|
30157
30176
|
const { id, ...props } = item;
|
|
30158
30177
|
return (
|
|
30159
30178
|
// @ts-ignore
|
|
30160
|
-
/* @__PURE__ */
|
|
30179
|
+
/* @__PURE__ */ jsx23(animated.div, { style, children: /* @__PURE__ */ jsx23(Toast, { ...props, id, onClose: () => removeToast(id) }) }, id)
|
|
30161
30180
|
);
|
|
30162
30181
|
})
|
|
30163
30182
|
}
|
|
@@ -30204,16 +30223,16 @@ function useTheme(defaultTheme) {
|
|
|
30204
30223
|
|
|
30205
30224
|
// src/components/Accordion.tsx
|
|
30206
30225
|
import { useState as useState7 } from "react";
|
|
30207
|
-
var
|
|
30226
|
+
var import_classnames14 = __toESM(require_classnames());
|
|
30208
30227
|
|
|
30209
30228
|
// src/components/Text.tsx
|
|
30210
|
-
var
|
|
30229
|
+
var import_classnames13 = __toESM(require_classnames());
|
|
30211
30230
|
|
|
30212
30231
|
// css-modules:E:\dev\umami-react-zen\src\components\Text.module.css
|
|
30213
30232
|
var Text_default = { "truncate": "Text_truncate__NjQ2M", "italic": "Text_italic__MmI4Y", "underline": "Text_underline__MzZmN", "strikethrough": "Text_strikethrough__ZTg3Y" };
|
|
30214
30233
|
|
|
30215
30234
|
// src/components/Text.tsx
|
|
30216
|
-
import { jsx as
|
|
30235
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
30217
30236
|
function Text({
|
|
30218
30237
|
color,
|
|
30219
30238
|
size,
|
|
@@ -30243,11 +30262,11 @@ function Text({
|
|
|
30243
30262
|
textTransform: transform,
|
|
30244
30263
|
color
|
|
30245
30264
|
});
|
|
30246
|
-
return /* @__PURE__ */
|
|
30265
|
+
return /* @__PURE__ */ jsx24(
|
|
30247
30266
|
Component,
|
|
30248
30267
|
{
|
|
30249
30268
|
...props,
|
|
30250
|
-
className: (0,
|
|
30269
|
+
className: (0, import_classnames13.default)(
|
|
30251
30270
|
Text_default.text,
|
|
30252
30271
|
className,
|
|
30253
30272
|
classes,
|
|
@@ -30266,9 +30285,9 @@ function Text({
|
|
|
30266
30285
|
var Accordion_default = { "accordion": "Accordion_accordion__ODg3O", "item": "Accordion_item__ZDU3Z", "button": "Accordion_button__MTRiY", "icon": "Accordion_icon__NDMwM", "panel": "Accordion_panel__OTQ4M", "expanded": "Accordion_expanded__ODY0N" };
|
|
30267
30286
|
|
|
30268
30287
|
// src/components/Accordion.tsx
|
|
30269
|
-
import { jsx as
|
|
30288
|
+
import { jsx as jsx25, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
30270
30289
|
function Accordion({ className, children, ...props }) {
|
|
30271
|
-
return /* @__PURE__ */
|
|
30290
|
+
return /* @__PURE__ */ jsx25($28f4fd908f0de97f$export$944aceb4f8c89f10, { ...props, className: (0, import_classnames14.default)(Accordion_default.accordion, className), children });
|
|
30272
30291
|
}
|
|
30273
30292
|
function AccordionItem({
|
|
30274
30293
|
defaultExpanded,
|
|
@@ -30285,39 +30304,39 @@ function AccordionItem({
|
|
|
30285
30304
|
$28f4fd908f0de97f$export$74a362b31437ec83,
|
|
30286
30305
|
{
|
|
30287
30306
|
...props,
|
|
30288
|
-
className: (0,
|
|
30307
|
+
className: (0, import_classnames14.default)(Accordion_default.item, className),
|
|
30289
30308
|
onExpandedChange: handleExpandedChange,
|
|
30290
30309
|
children: [
|
|
30291
30310
|
/* @__PURE__ */ jsxs12(Button2, { slot: "trigger", className: Accordion_default.button, children: [
|
|
30292
|
-
/* @__PURE__ */
|
|
30293
|
-
/* @__PURE__ */
|
|
30311
|
+
/* @__PURE__ */ jsx25(Text, { children: trigger }),
|
|
30312
|
+
/* @__PURE__ */ jsx25(Icon2, { className: Accordion_default.icon, size: "xs", children: /* @__PURE__ */ jsx25(ChevronRight, {}) })
|
|
30294
30313
|
] }),
|
|
30295
|
-
/* @__PURE__ */
|
|
30314
|
+
/* @__PURE__ */ jsx25($28f4fd908f0de97f$export$feabaa331e1d464c, { className: (0, import_classnames14.default)(Accordion_default.panel, expanded && Accordion_default.expanded), children: panel })
|
|
30296
30315
|
]
|
|
30297
30316
|
}
|
|
30298
30317
|
);
|
|
30299
30318
|
}
|
|
30300
30319
|
|
|
30301
30320
|
// src/components/AlertDialog.tsx
|
|
30302
|
-
var
|
|
30321
|
+
var import_classnames16 = __toESM(require_classnames());
|
|
30303
30322
|
|
|
30304
30323
|
// src/components/Dialog.tsx
|
|
30305
|
-
var
|
|
30324
|
+
var import_classnames15 = __toESM(require_classnames());
|
|
30306
30325
|
|
|
30307
30326
|
// css-modules:E:\dev\umami-react-zen\src\components\Dialog.module.css
|
|
30308
30327
|
var Dialog_default = { "dialog": "Dialog_dialog__YzZhN", "title": "Dialog_title__NjZlN", "modal": "Dialog_modal__YjEzN", "menu": "Dialog_menu__ZmFhN", "sheet": "Dialog_sheet__NzkxM" };
|
|
30309
30328
|
|
|
30310
30329
|
// src/components/Dialog.tsx
|
|
30311
|
-
import { Fragment as Fragment2, jsx as
|
|
30330
|
+
import { Fragment as Fragment2, jsx as jsx26, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
30312
30331
|
function Dialog2({ title, variant = "modal", children, className, ...props }) {
|
|
30313
|
-
return /* @__PURE__ */
|
|
30332
|
+
return /* @__PURE__ */ jsx26(
|
|
30314
30333
|
$de32f1b87079253c$export$3ddf2d174ce01153,
|
|
30315
30334
|
{
|
|
30316
30335
|
...props,
|
|
30317
|
-
className: (0,
|
|
30336
|
+
className: (0, import_classnames15.default)(Dialog_default.dialog, variant && Dialog_default[variant], className),
|
|
30318
30337
|
children: (dialogProps) => {
|
|
30319
30338
|
return /* @__PURE__ */ jsxs13(Fragment2, { children: [
|
|
30320
|
-
title && /* @__PURE__ */
|
|
30339
|
+
title && /* @__PURE__ */ jsx26("div", { className: Dialog_default.title, children: title }),
|
|
30321
30340
|
typeof children === "function" ? children(dialogProps) : children
|
|
30322
30341
|
] });
|
|
30323
30342
|
}
|
|
@@ -30326,16 +30345,16 @@ function Dialog2({ title, variant = "modal", children, className, ...props }) {
|
|
|
30326
30345
|
}
|
|
30327
30346
|
|
|
30328
30347
|
// src/components/Column.tsx
|
|
30329
|
-
import { jsx as
|
|
30348
|
+
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
30330
30349
|
function Column({ reverse, children, ...props }) {
|
|
30331
|
-
return /* @__PURE__ */
|
|
30350
|
+
return /* @__PURE__ */ jsx27(Flexbox, { ...props, direction: reverse ? "column-reverse" : "column", children });
|
|
30332
30351
|
}
|
|
30333
30352
|
|
|
30334
30353
|
// css-modules:E:\dev\umami-react-zen\src\components\AlertDialog.module.css
|
|
30335
30354
|
var AlertDialog_default = { "dialog": "AlertDialog_dialog__OTkwN", "title": "AlertDialog_title__ZGIwY" };
|
|
30336
30355
|
|
|
30337
30356
|
// src/components/AlertDialog.tsx
|
|
30338
|
-
import { jsx as
|
|
30357
|
+
import { jsx as jsx28, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
30339
30358
|
function AlertDialog({
|
|
30340
30359
|
title,
|
|
30341
30360
|
description,
|
|
@@ -30357,12 +30376,12 @@ function AlertDialog({
|
|
|
30357
30376
|
onCancel?.();
|
|
30358
30377
|
close();
|
|
30359
30378
|
};
|
|
30360
|
-
return /* @__PURE__ */
|
|
30379
|
+
return /* @__PURE__ */ jsx28(Dialog2, { ...props, title, className: (0, import_classnames16.default)(AlertDialog_default.dialog, className), children: ({ close }) => {
|
|
30361
30380
|
return /* @__PURE__ */ jsxs14(Column, { gap: "4", children: [
|
|
30362
30381
|
typeof children === "function" ? children({ close }) : children,
|
|
30363
30382
|
/* @__PURE__ */ jsxs14(Row, { gap: "3", justifyContent: "end", children: [
|
|
30364
|
-
/* @__PURE__ */
|
|
30365
|
-
/* @__PURE__ */
|
|
30383
|
+
/* @__PURE__ */ jsx28(Button2, { onPress: () => handleClose(close), children: cancelLabel }),
|
|
30384
|
+
/* @__PURE__ */ jsx28(
|
|
30366
30385
|
Button2,
|
|
30367
30386
|
{
|
|
30368
30387
|
variant: isDanger ? "danger" : "primary",
|
|
@@ -30380,32 +30399,32 @@ function AlertDialog({
|
|
|
30380
30399
|
var Blockquote_default = { "blockquote": "Blockquote_blockquote__MzZmO" };
|
|
30381
30400
|
|
|
30382
30401
|
// src/components/Blockquote.tsx
|
|
30383
|
-
import { jsx as
|
|
30402
|
+
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
30384
30403
|
function Blockquote({ asChild, children }) {
|
|
30385
30404
|
const Component = asChild ? Slot : "blockquote";
|
|
30386
|
-
return /* @__PURE__ */
|
|
30405
|
+
return /* @__PURE__ */ jsx29(Component, { className: Blockquote_default.blockquote, children });
|
|
30387
30406
|
}
|
|
30388
30407
|
|
|
30389
30408
|
// src/components/Breadcrumbs.tsx
|
|
30390
|
-
var
|
|
30409
|
+
var import_classnames17 = __toESM(require_classnames());
|
|
30391
30410
|
|
|
30392
30411
|
// css-modules:E:\dev\umami-react-zen\src\components\Breadcrumbs.module.css
|
|
30393
30412
|
var Breadcrumbs_default = { "breadcrumbs": "Breadcrumbs_breadcrumbs__OTJlN", "breadcrumb": "Breadcrumbs_breadcrumb__YjU2O", "icon": "Breadcrumbs_icon__MWFiY" };
|
|
30394
30413
|
|
|
30395
30414
|
// src/components/Breadcrumbs.tsx
|
|
30396
|
-
import { jsx as
|
|
30415
|
+
import { jsx as jsx30, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
30397
30416
|
function Breadcrumbs2({ children, className, ...props }) {
|
|
30398
|
-
return /* @__PURE__ */
|
|
30417
|
+
return /* @__PURE__ */ jsx30($778035c5624f61e7$export$2dc68d50d56fbbd, { ...props, className: (0, import_classnames17.default)(Breadcrumbs_default.breadcrumbs, className), children });
|
|
30399
30418
|
}
|
|
30400
30419
|
function Breadcrumb2({ children, className, ...props }) {
|
|
30401
|
-
return /* @__PURE__ */ jsxs15($778035c5624f61e7$export$dabcc1ec9dd9d1cc, { ...props, className: (0,
|
|
30420
|
+
return /* @__PURE__ */ jsxs15($778035c5624f61e7$export$dabcc1ec9dd9d1cc, { ...props, className: (0, import_classnames17.default)(Breadcrumbs_default.breadcrumb, className), children: [
|
|
30402
30421
|
children,
|
|
30403
|
-
/* @__PURE__ */
|
|
30422
|
+
/* @__PURE__ */ jsx30(Icon2, { className: Breadcrumbs_default.icon, size: "xs", children: /* @__PURE__ */ jsx30(ChevronRight, {}) })
|
|
30404
30423
|
] });
|
|
30405
30424
|
}
|
|
30406
30425
|
|
|
30407
30426
|
// src/components/Calendar.tsx
|
|
30408
|
-
var
|
|
30427
|
+
var import_classnames18 = __toESM(require_classnames());
|
|
30409
30428
|
|
|
30410
30429
|
// src/lib/date.ts
|
|
30411
30430
|
function toCalendarDate(date) {
|
|
@@ -30418,7 +30437,7 @@ function toCalendarDate(date) {
|
|
|
30418
30437
|
var Calendar_default = { "calendar": "Calendar_calendar__ZDMwM", "header": "Calendar_header__ZDE0Y", "heading": "Calendar_heading__MTk3Z", "button": "Calendar_button__MmIyO", "headerCell": "Calendar_headerCell__MjEwY", "cell": "Calendar_cell__MTc4M" };
|
|
30419
30438
|
|
|
30420
30439
|
// src/components/Calendar.tsx
|
|
30421
|
-
import { jsx as
|
|
30440
|
+
import { jsx as jsx31, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
30422
30441
|
function Calendar2({
|
|
30423
30442
|
className,
|
|
30424
30443
|
value,
|
|
@@ -30440,17 +30459,17 @@ function Calendar2({
|
|
|
30440
30459
|
minValue: toCalendarDate(minValue),
|
|
30441
30460
|
maxValue: toCalendarDate(maxValue),
|
|
30442
30461
|
defaultValue: toCalendarDate(defaultValue),
|
|
30443
|
-
className: (0,
|
|
30462
|
+
className: (0, import_classnames18.default)(Calendar_default.calendar, className),
|
|
30444
30463
|
onChange: handleChange,
|
|
30445
30464
|
children: [
|
|
30446
30465
|
/* @__PURE__ */ jsxs16("header", { className: Calendar_default.header, children: [
|
|
30447
|
-
/* @__PURE__ */
|
|
30448
|
-
/* @__PURE__ */
|
|
30449
|
-
/* @__PURE__ */
|
|
30466
|
+
/* @__PURE__ */ jsx31(Button2, { slot: "previous", className: Calendar_default.button, variant: "quiet", children: /* @__PURE__ */ jsx31(Icon2, { rotate: 180, children: /* @__PURE__ */ jsx31(ChevronRight, {}) }) }),
|
|
30467
|
+
/* @__PURE__ */ jsx31($5cb03073d3f54797$export$a8a3e93435678ff9, { className: Calendar_default.heading }),
|
|
30468
|
+
/* @__PURE__ */ jsx31(Button2, { slot: "next", className: Calendar_default.button, variant: "quiet", children: /* @__PURE__ */ jsx31(Icon2, { children: /* @__PURE__ */ jsx31(ChevronRight, {}) }) })
|
|
30450
30469
|
] }),
|
|
30451
30470
|
/* @__PURE__ */ jsxs16($dfd62f934fc76fed$export$5bd780d491cfc46c, { children: [
|
|
30452
|
-
/* @__PURE__ */
|
|
30453
|
-
/* @__PURE__ */
|
|
30471
|
+
/* @__PURE__ */ jsx31($dfd62f934fc76fed$export$22e2d15eaa4d2377, { children: (day) => /* @__PURE__ */ jsx31($dfd62f934fc76fed$export$ad2135cac3a11b3d, { className: Calendar_default.headerCell, children: day }) }),
|
|
30472
|
+
/* @__PURE__ */ jsx31($dfd62f934fc76fed$export$e11f8ba65d857bff, { className: Calendar_default.body, children: (date) => /* @__PURE__ */ jsx31($dfd62f934fc76fed$export$5d847498420df57b, { className: Calendar_default.cell, date }) })
|
|
30454
30473
|
] })
|
|
30455
30474
|
]
|
|
30456
30475
|
}
|
|
@@ -30458,24 +30477,24 @@ function Calendar2({
|
|
|
30458
30477
|
}
|
|
30459
30478
|
|
|
30460
30479
|
// src/components/Checkbox.tsx
|
|
30461
|
-
var
|
|
30480
|
+
var import_classnames19 = __toESM(require_classnames());
|
|
30462
30481
|
|
|
30463
30482
|
// css-modules:E:\dev\umami-react-zen\src\components\Checkbox.module.css
|
|
30464
30483
|
var Checkbox_default = { "checkbox": "Checkbox_checkbox__OTliN", "box": "Checkbox_box__M2E3Z", "icon": "Checkbox_icon__ODgyZ" };
|
|
30465
30484
|
|
|
30466
30485
|
// src/components/Checkbox.tsx
|
|
30467
|
-
import { Fragment as Fragment3, jsx as
|
|
30486
|
+
import { Fragment as Fragment3, jsx as jsx32, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
30468
30487
|
function Checkbox2({ label, className, children, ...props }) {
|
|
30469
30488
|
const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
|
|
30470
|
-
return /* @__PURE__ */
|
|
30489
|
+
return /* @__PURE__ */ jsx32(
|
|
30471
30490
|
$bc237834342dbd75$export$48513f6b9f8ce62d,
|
|
30472
30491
|
{
|
|
30473
30492
|
...props,
|
|
30474
30493
|
isSelected,
|
|
30475
|
-
className: (0,
|
|
30494
|
+
className: (0, import_classnames19.default)(Checkbox_default.checkbox, className),
|
|
30476
30495
|
children: ({ isIndeterminate, isSelected: isSelected2 }) => {
|
|
30477
30496
|
return /* @__PURE__ */ jsxs17(Fragment3, { children: [
|
|
30478
|
-
/* @__PURE__ */
|
|
30497
|
+
/* @__PURE__ */ jsx32("div", { className: Checkbox_default.box, children: /* @__PURE__ */ jsx32(Icon2, { className: Checkbox_default.icon, size: "sm", children: isIndeterminate ? /* @__PURE__ */ jsx32(Minus, {}) : isSelected2 ? /* @__PURE__ */ jsx32(Check, {}) : null }) }),
|
|
30479
30498
|
children
|
|
30480
30499
|
] });
|
|
30481
30500
|
}
|
|
@@ -30487,20 +30506,20 @@ function Checkbox2({ label, className, children, ...props }) {
|
|
|
30487
30506
|
var Code_default = { "code": "Code_code__NmYxN" };
|
|
30488
30507
|
|
|
30489
30508
|
// src/components/Code.tsx
|
|
30490
|
-
import { jsx as
|
|
30509
|
+
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
30491
30510
|
function Code({ asChild, children }) {
|
|
30492
30511
|
const Component = asChild ? Slot : "code";
|
|
30493
|
-
return /* @__PURE__ */
|
|
30512
|
+
return /* @__PURE__ */ jsx33(Component, { className: Code_default.code, children });
|
|
30494
30513
|
}
|
|
30495
30514
|
|
|
30496
30515
|
// src/components/Container.tsx
|
|
30497
|
-
var
|
|
30516
|
+
var import_classnames20 = __toESM(require_classnames());
|
|
30498
30517
|
|
|
30499
30518
|
// css-modules:E:\dev\umami-react-zen\src\components\Container.module.css
|
|
30500
30519
|
var Container_default = { "container": "Container_container__ZWU0Y", "centered": "Container_centered__OTM1M", "fluid": "Container_fluid__NTBhY" };
|
|
30501
30520
|
|
|
30502
30521
|
// src/components/Container.tsx
|
|
30503
|
-
import { jsx as
|
|
30522
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
30504
30523
|
function Container({
|
|
30505
30524
|
isCentered = true,
|
|
30506
30525
|
isFluid,
|
|
@@ -30508,11 +30527,11 @@ function Container({
|
|
|
30508
30527
|
children,
|
|
30509
30528
|
...props
|
|
30510
30529
|
}) {
|
|
30511
|
-
return /* @__PURE__ */
|
|
30530
|
+
return /* @__PURE__ */ jsx34(
|
|
30512
30531
|
Box,
|
|
30513
30532
|
{
|
|
30514
30533
|
...props,
|
|
30515
|
-
className: (0,
|
|
30534
|
+
className: (0, import_classnames20.default)(
|
|
30516
30535
|
Container_default.container,
|
|
30517
30536
|
className,
|
|
30518
30537
|
isCentered && Container_default.centered,
|
|
@@ -30531,18 +30550,6 @@ import { useState as useState10 } from "react";
|
|
|
30531
30550
|
import { useEffect as useEffect9, useState as useState9 } from "react";
|
|
30532
30551
|
var import_classnames22 = __toESM(require_classnames());
|
|
30533
30552
|
|
|
30534
|
-
// src/components/Label.tsx
|
|
30535
|
-
var import_classnames20 = __toESM(require_classnames());
|
|
30536
|
-
|
|
30537
|
-
// css-modules:E:\dev\umami-react-zen\src\components\Label.module.css
|
|
30538
|
-
var Label_default = { "label": "Label_label__YWE3M" };
|
|
30539
|
-
|
|
30540
|
-
// src/components/Label.tsx
|
|
30541
|
-
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
30542
|
-
function Label2({ className, ...props }) {
|
|
30543
|
-
return /* @__PURE__ */ jsx34($01b77f81d0f07f68$export$b04be29aa201d4f5, { ...props, className: (0, import_classnames20.default)(Label_default.label, className) });
|
|
30544
|
-
}
|
|
30545
|
-
|
|
30546
30553
|
// src/components/CopyButton.tsx
|
|
30547
30554
|
var import_classnames21 = __toESM(require_classnames());
|
|
30548
30555
|
import { useState as useState8, useRef as useRef7 } from "react";
|
|
@@ -31432,6 +31439,7 @@ function SearchField2({
|
|
|
31432
31439
|
value,
|
|
31433
31440
|
defaultValue = "",
|
|
31434
31441
|
delay = 0,
|
|
31442
|
+
onChange,
|
|
31435
31443
|
onSearch,
|
|
31436
31444
|
className,
|
|
31437
31445
|
...props
|
|
@@ -31443,10 +31451,12 @@ function SearchField2({
|
|
|
31443
31451
|
if (delay === 0 || value2 === "") {
|
|
31444
31452
|
onSearch?.(value2);
|
|
31445
31453
|
}
|
|
31454
|
+
onChange?.(value2);
|
|
31446
31455
|
};
|
|
31447
31456
|
const resetSearch = () => {
|
|
31448
31457
|
setSearch("");
|
|
31449
31458
|
onSearch?.("");
|
|
31459
|
+
onChange?.("");
|
|
31450
31460
|
};
|
|
31451
31461
|
useEffect12(() => {
|
|
31452
31462
|
if (delay > 0) {
|