@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.js CHANGED
@@ -25904,6 +25904,7 @@ var cssMap = {
25904
25904
  bottom: "bottom",
25905
25905
  left: "left",
25906
25906
  order: "order",
25907
+ zIndex: "z-index",
25907
25908
  textTransform: "text-transform"
25908
25909
  };
25909
25910
  var aliasMap = {
@@ -25936,7 +25937,8 @@ var excludedProps = [
25936
25937
  "right",
25937
25938
  "bottom",
25938
25939
  "left",
25939
- "order"
25940
+ "order",
25941
+ "zIndex"
25940
25942
  ];
25941
25943
  function parseValue(name, value) {
25942
25944
  if (/^\d+$/.test(value)) {
@@ -26211,6 +26213,7 @@ function Box({
26211
26213
  gridRow,
26212
26214
  gridColumn,
26213
26215
  order,
26216
+ zIndex,
26214
26217
  theme,
26215
26218
  as = "div",
26216
26219
  asChild,
@@ -26270,7 +26273,8 @@ function Box({
26270
26273
  gridArea,
26271
26274
  gridRow,
26272
26275
  gridColumn,
26273
- order
26276
+ order,
26277
+ zIndex
26274
26278
  });
26275
26279
  return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
26276
26280
  Component,
@@ -26357,55 +26361,70 @@ function FormField({
26357
26361
  }) {
26358
26362
  const context = useFormContext();
26359
26363
  const { formState, control } = context;
26360
- const controller = useController({ name, control, rules });
26361
- const { field } = controller;
26362
26364
  const errors = formState?.errors || {};
26363
26365
  const errorMessage = errors[name]?.message;
26364
26366
  return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { ...props, className: (0, import_classnames6.default)(FormField_default.input, className), children: [
26365
- import_react153.Children.map(
26366
- typeof children === "function" ? children({ context, controller }) : children,
26367
- (child) => child ? (0, import_react153.cloneElement)(child, { ...field, label: child.props.label || label }) : null
26368
- ),
26367
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(FormController, { name, control, rules, children: ({ field }) => {
26368
+ return import_react153.Children.map(
26369
+ typeof children === "function" ? children({ ...context }) : children,
26370
+ (child) => child ? (0, import_react153.cloneElement)(child, { ...field, label: child.props.label || label }) : null
26371
+ );
26372
+ } }),
26369
26373
  description && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: FormField_default.description, children: description }),
26370
26374
  errorMessage && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: FormField_default.error, children: errorMessage })
26371
26375
  ] });
26372
26376
  }
26373
26377
 
26374
26378
  // src/components/forms/FormFieldArray.tsx
26379
+ var import_classnames8 = __toESM(require_classnames());
26380
+
26381
+ // src/components/Label.tsx
26375
26382
  var import_classnames7 = __toESM(require_classnames());
26383
+
26384
+ // css-modules:E:\dev\umami-react-zen\src\components\Label.module.css
26385
+ var Label_default = { "label": "Label_label__YWE3M" };
26386
+
26387
+ // src/components/Label.tsx
26376
26388
  var import_jsx_runtime14 = require("react/jsx-runtime");
26389
+ function Label2({ className, ...props }) {
26390
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)($01b77f81d0f07f68$export$b04be29aa201d4f5, { ...props, className: (0, import_classnames7.default)(Label_default.label, className) });
26391
+ }
26392
+
26393
+ // src/components/forms/FormFieldArray.tsx
26394
+ var import_jsx_runtime15 = require("react/jsx-runtime");
26377
26395
  function FormFieldArray({
26378
26396
  name,
26379
26397
  description,
26380
26398
  label,
26399
+ rules,
26381
26400
  className,
26382
26401
  children,
26383
26402
  ...props
26384
26403
  }) {
26385
26404
  const context = useFormContext();
26386
- const { control, formState } = context;
26405
+ const { formState, control } = context;
26387
26406
  const fieldProps = useFieldArray({
26388
26407
  control,
26389
26408
  name
26390
26409
  });
26391
26410
  const errors = formState?.errors || {};
26392
26411
  const errorMessage = errors[name]?.message;
26393
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { ...props, className: (0, import_classnames7.default)(FormField_default.input, className), children: [
26394
- label && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Label2, { children: label }),
26395
- description && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: FormField_default.description, children: description }),
26396
- errorMessage && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: FormField_default.error, children: errorMessage }),
26397
- children({ context, ...fieldProps })
26412
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { ...props, className: (0, import_classnames8.default)(FormField_default.input, className), children: [
26413
+ label && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Label2, { children: label }),
26414
+ description && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: FormField_default.description, children: description }),
26415
+ errorMessage && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: FormField_default.error, children: errorMessage }),
26416
+ children({ ...context, ...fieldProps })
26398
26417
  ] });
26399
26418
  }
26400
26419
 
26401
26420
  // src/components/Button.tsx
26402
- var import_classnames8 = __toESM(require_classnames());
26421
+ var import_classnames9 = __toESM(require_classnames());
26403
26422
 
26404
26423
  // css-modules:E:\dev\umami-react-zen\src\components\Button.module.css
26405
26424
  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" };
26406
26425
 
26407
26426
  // src/components/Button.tsx
26408
- var import_jsx_runtime15 = require("react/jsx-runtime");
26427
+ var import_jsx_runtime16 = require("react/jsx-runtime");
26409
26428
  function Button2({
26410
26429
  variant = "secondary",
26411
26430
  size = "md",
@@ -26417,12 +26436,12 @@ function Button2({
26417
26436
  }) {
26418
26437
  const Component = asChild ? Slot : $d2b4bc8c273e7be6$export$353f5b6fc5456de1;
26419
26438
  const buttonProps = Component === $d2b4bc8c273e7be6$export$353f5b6fc5456de1 ? { preventFocusOnPress } : void 0;
26420
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
26439
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
26421
26440
  Component,
26422
26441
  {
26423
26442
  ...props,
26424
26443
  ...buttonProps,
26425
- className: (0, import_classnames8.default)(
26444
+ className: (0, import_classnames9.default)(
26426
26445
  Button_default.button,
26427
26446
  className,
26428
26447
  variant && Button_default[variant],
@@ -26434,44 +26453,44 @@ function Button2({
26434
26453
  }
26435
26454
 
26436
26455
  // src/components/forms/FormResetButton.tsx
26437
- var import_jsx_runtime16 = require("react/jsx-runtime");
26456
+ var import_jsx_runtime17 = require("react/jsx-runtime");
26438
26457
  function FormResetButton({ values = {}, children, onPress, ...props }) {
26439
26458
  const { reset } = useFormContext();
26440
26459
  const handleReset = (e) => {
26441
26460
  reset(values);
26442
26461
  onPress?.(e);
26443
26462
  };
26444
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Button2, { ...props, type: "reset", onPress: handleReset, children });
26463
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Button2, { ...props, type: "reset", onPress: handleReset, children });
26445
26464
  }
26446
26465
 
26447
26466
  // src/components/Spinner.tsx
26448
- var import_classnames9 = __toESM(require_classnames());
26467
+ var import_classnames10 = __toESM(require_classnames());
26449
26468
 
26450
26469
  // css-modules:E:\dev\umami-react-zen\src\components\Spinner.module.css
26451
26470
  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" };
26452
26471
 
26453
26472
  // src/components/Spinner.tsx
26454
- var import_jsx_runtime17 = require("react/jsx-runtime");
26473
+ var import_jsx_runtime18 = require("react/jsx-runtime");
26455
26474
  function Spinner(props) {
26456
26475
  const { size = "lg", quiet, className, isDisabled, ...domProps } = props;
26457
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
26476
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
26458
26477
  "div",
26459
26478
  {
26460
26479
  ...domProps,
26461
- className: (0, import_classnames9.default)(Spinner_default.spinner, className, Spinner_default[`size-${size}`], {
26480
+ className: (0, import_classnames10.default)(Spinner_default.spinner, className, Spinner_default[`size-${size}`], {
26462
26481
  [Spinner_default.quiet]: quiet,
26463
26482
  [Spinner_default.disabled]: isDisabled
26464
26483
  }),
26465
- children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("svg", { viewBox: "25 25 50 50", children: [
26466
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("circle", { className: Spinner_default.track, cx: "50", cy: "50", r: "20" }),
26467
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("circle", { className: Spinner_default.fill, cx: "50", cy: "50", r: "20" })
26484
+ children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("svg", { viewBox: "25 25 50 50", children: [
26485
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("circle", { className: Spinner_default.track, cx: "50", cy: "50", r: "20" }),
26486
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("circle", { className: Spinner_default.fill, cx: "50", cy: "50", r: "20" })
26468
26487
  ] })
26469
26488
  }
26470
26489
  );
26471
26490
  }
26472
26491
 
26473
26492
  // src/components/LoadingButton.tsx
26474
- var import_jsx_runtime18 = require("react/jsx-runtime");
26493
+ var import_jsx_runtime19 = require("react/jsx-runtime");
26475
26494
  function LoadingButton({
26476
26495
  isLoading,
26477
26496
  isDisabled,
@@ -26479,14 +26498,14 @@ function LoadingButton({
26479
26498
  children,
26480
26499
  ...props
26481
26500
  }) {
26482
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(Button2, { ...props, isDisabled, children: [
26483
- isLoading && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Icon2, { size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Spinner, { isDisabled }) }),
26501
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(Button2, { ...props, isDisabled, children: [
26502
+ isLoading && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Icon2, { size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Spinner, { isDisabled }) }),
26484
26503
  showText && children
26485
26504
  ] });
26486
26505
  }
26487
26506
 
26488
26507
  // src/components/forms/FormSubmitButton.tsx
26489
- var import_jsx_runtime19 = require("react/jsx-runtime");
26508
+ var import_jsx_runtime20 = require("react/jsx-runtime");
26490
26509
  function FormSubmitButton({
26491
26510
  variant = "primary",
26492
26511
  isDisabled,
@@ -26497,7 +26516,7 @@ function FormSubmitButton({
26497
26516
  const {
26498
26517
  formState: { isDirty, isValid, isSubmitting, isSubmitted, isSubmitSuccessful }
26499
26518
  } = useFormContext();
26500
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
26519
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
26501
26520
  LoadingButton,
26502
26521
  {
26503
26522
  ...props,
@@ -26511,13 +26530,13 @@ function FormSubmitButton({
26511
26530
  }
26512
26531
 
26513
26532
  // src/components/toast/Toast.tsx
26514
- var import_classnames10 = __toESM(require_classnames());
26533
+ var import_classnames11 = __toESM(require_classnames());
26515
26534
 
26516
26535
  // css-modules:E:\dev\umami-react-zen\src\components\toast\Toast.module.css
26517
26536
  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" };
26518
26537
 
26519
26538
  // src/components/toast/Toast.tsx
26520
- var import_jsx_runtime20 = require("react/jsx-runtime");
26539
+ var import_jsx_runtime21 = require("react/jsx-runtime");
26521
26540
  var TOAST_CLOSE_ACTION = "close";
26522
26541
  function Toast({
26523
26542
  id,
@@ -26532,11 +26551,11 @@ function Toast({
26532
26551
  ...props
26533
26552
  }) {
26534
26553
  const hasActions = actions?.length > 0;
26535
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { ...props, className: (0, import_classnames10.default)(Toast_default.toast, className, variant && Toast_default[variant]), children: [
26536
- title && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: Toast_default.title, children: title }),
26537
- message && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: Toast_default.description, children: message }),
26554
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { ...props, className: (0, import_classnames11.default)(Toast_default.toast, className, variant && Toast_default[variant]), children: [
26555
+ title && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: Toast_default.title, children: title }),
26556
+ message && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: Toast_default.description, children: message }),
26538
26557
  hasActions && actions.map((action) => {
26539
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
26558
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
26540
26559
  Button2,
26541
26560
  {
26542
26561
  variant: "outline",
@@ -26547,7 +26566,7 @@ function Toast({
26547
26566
  action
26548
26567
  );
26549
26568
  }),
26550
- !hasActions && allowClose && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
26569
+ !hasActions && allowClose && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
26551
26570
  Icon2,
26552
26571
  {
26553
26572
  "aria-hidden": true,
@@ -26555,7 +26574,7 @@ function Toast({
26555
26574
  size: "sm",
26556
26575
  className: Toast_default.close,
26557
26576
  onClick: () => onClose?.(TOAST_CLOSE_ACTION),
26558
- children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(X, {})
26577
+ children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(X, {})
26559
26578
  }
26560
26579
  )
26561
26580
  ] });
@@ -30135,7 +30154,7 @@ var host = createHost(primitives, {
30135
30154
  var animated = host.animated;
30136
30155
 
30137
30156
  // src/components/toast/Toaster.tsx
30138
- var import_classnames11 = __toESM(require_classnames());
30157
+ var import_classnames12 = __toESM(require_classnames());
30139
30158
  var import_react171 = require("react");
30140
30159
 
30141
30160
  // node_modules/.pnpm/zustand@5.0.5_@types+react@_a1d6b7db10f76afd26403e7782bb5bbf/node_modules/zustand/esm/vanilla.mjs
@@ -30187,12 +30206,12 @@ var import_react170 = require("react");
30187
30206
 
30188
30207
  // src/components/toast/ToastProvider.tsx
30189
30208
  var import_react169 = require("react");
30190
- var import_jsx_runtime21 = require("react/jsx-runtime");
30209
+ var import_jsx_runtime22 = require("react/jsx-runtime");
30191
30210
  var ToastContext = (0, import_react169.createContext)({});
30192
30211
  function ToastProvider({ children, ...props }) {
30193
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(ToastContext.Provider, { value: props, children: [
30212
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(ToastContext.Provider, { value: props, children: [
30194
30213
  children,
30195
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Toaster, { ...props })
30214
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Toaster, { ...props })
30196
30215
  ] });
30197
30216
  }
30198
30217
 
@@ -30230,7 +30249,7 @@ function useToast() {
30230
30249
  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" };
30231
30250
 
30232
30251
  // src/components/toast/Toaster.tsx
30233
- var import_jsx_runtime22 = require("react/jsx-runtime");
30252
+ var import_jsx_runtime23 = require("react/jsx-runtime");
30234
30253
  function Toaster({ duration = 0, position = "bottom-right" }) {
30235
30254
  const { toasts } = useToast();
30236
30255
  const [hovered, setHovered] = (0, import_react171.useState)(false);
@@ -30262,17 +30281,17 @@ function Toaster({ duration = 0, position = "bottom-right" }) {
30262
30281
  };
30263
30282
  }
30264
30283
  }, [duration, toasts, hovered]);
30265
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
30284
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
30266
30285
  "div",
30267
30286
  {
30268
- className: (0, import_classnames11.default)(Toaster_default.toaster, Toaster_default[`position-${position}`]),
30287
+ className: (0, import_classnames12.default)(Toaster_default.toaster, Toaster_default[`position-${position}`]),
30269
30288
  onMouseEnter: () => setHovered(true),
30270
30289
  onMouseLeave: () => setHovered(false),
30271
30290
  children: transitions((style, item) => {
30272
30291
  const { id, ...props } = item;
30273
30292
  return (
30274
30293
  // @ts-ignore
30275
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(animated.div, { style, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Toast, { ...props, id, onClose: () => removeToast(id) }) }, id)
30294
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(animated.div, { style, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Toast, { ...props, id, onClose: () => removeToast(id) }) }, id)
30276
30295
  );
30277
30296
  })
30278
30297
  }
@@ -30319,16 +30338,16 @@ function useTheme(defaultTheme) {
30319
30338
 
30320
30339
  // src/components/Accordion.tsx
30321
30340
  var import_react174 = require("react");
30322
- var import_classnames13 = __toESM(require_classnames());
30341
+ var import_classnames14 = __toESM(require_classnames());
30323
30342
 
30324
30343
  // src/components/Text.tsx
30325
- var import_classnames12 = __toESM(require_classnames());
30344
+ var import_classnames13 = __toESM(require_classnames());
30326
30345
 
30327
30346
  // css-modules:E:\dev\umami-react-zen\src\components\Text.module.css
30328
30347
  var Text_default = { "truncate": "Text_truncate__NjQ2M", "italic": "Text_italic__MmI4Y", "underline": "Text_underline__MzZmN", "strikethrough": "Text_strikethrough__ZTg3Y" };
30329
30348
 
30330
30349
  // src/components/Text.tsx
30331
- var import_jsx_runtime23 = require("react/jsx-runtime");
30350
+ var import_jsx_runtime24 = require("react/jsx-runtime");
30332
30351
  function Text({
30333
30352
  color,
30334
30353
  size,
@@ -30358,11 +30377,11 @@ function Text({
30358
30377
  textTransform: transform,
30359
30378
  color
30360
30379
  });
30361
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
30380
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
30362
30381
  Component,
30363
30382
  {
30364
30383
  ...props,
30365
- className: (0, import_classnames12.default)(
30384
+ className: (0, import_classnames13.default)(
30366
30385
  Text_default.text,
30367
30386
  className,
30368
30387
  classes,
@@ -30381,9 +30400,9 @@ function Text({
30381
30400
  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" };
30382
30401
 
30383
30402
  // src/components/Accordion.tsx
30384
- var import_jsx_runtime24 = require("react/jsx-runtime");
30403
+ var import_jsx_runtime25 = require("react/jsx-runtime");
30385
30404
  function Accordion({ className, children, ...props }) {
30386
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)($28f4fd908f0de97f$export$944aceb4f8c89f10, { ...props, className: (0, import_classnames13.default)(Accordion_default.accordion, className), children });
30405
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)($28f4fd908f0de97f$export$944aceb4f8c89f10, { ...props, className: (0, import_classnames14.default)(Accordion_default.accordion, className), children });
30387
30406
  }
30388
30407
  function AccordionItem({
30389
30408
  defaultExpanded,
@@ -30396,43 +30415,43 @@ function AccordionItem({
30396
30415
  const handleExpandedChange = (isExpanded) => {
30397
30416
  requestAnimationFrame(() => setExpanded(isExpanded));
30398
30417
  };
30399
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
30418
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
30400
30419
  $28f4fd908f0de97f$export$74a362b31437ec83,
30401
30420
  {
30402
30421
  ...props,
30403
- className: (0, import_classnames13.default)(Accordion_default.item, className),
30422
+ className: (0, import_classnames14.default)(Accordion_default.item, className),
30404
30423
  onExpandedChange: handleExpandedChange,
30405
30424
  children: [
30406
- /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(Button2, { slot: "trigger", className: Accordion_default.button, children: [
30407
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Text, { children: trigger }),
30408
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Icon2, { className: Accordion_default.icon, size: "xs", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(ChevronRight, {}) })
30425
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(Button2, { slot: "trigger", className: Accordion_default.button, children: [
30426
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Text, { children: trigger }),
30427
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Icon2, { className: Accordion_default.icon, size: "xs", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(ChevronRight, {}) })
30409
30428
  ] }),
30410
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)($28f4fd908f0de97f$export$feabaa331e1d464c, { className: (0, import_classnames13.default)(Accordion_default.panel, expanded && Accordion_default.expanded), children: panel })
30429
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)($28f4fd908f0de97f$export$feabaa331e1d464c, { className: (0, import_classnames14.default)(Accordion_default.panel, expanded && Accordion_default.expanded), children: panel })
30411
30430
  ]
30412
30431
  }
30413
30432
  );
30414
30433
  }
30415
30434
 
30416
30435
  // src/components/AlertDialog.tsx
30417
- var import_classnames15 = __toESM(require_classnames());
30436
+ var import_classnames16 = __toESM(require_classnames());
30418
30437
 
30419
30438
  // src/components/Dialog.tsx
30420
- var import_classnames14 = __toESM(require_classnames());
30439
+ var import_classnames15 = __toESM(require_classnames());
30421
30440
 
30422
30441
  // css-modules:E:\dev\umami-react-zen\src\components\Dialog.module.css
30423
30442
  var Dialog_default = { "dialog": "Dialog_dialog__YzZhN", "title": "Dialog_title__NjZlN", "modal": "Dialog_modal__YjEzN", "menu": "Dialog_menu__ZmFhN", "sheet": "Dialog_sheet__NzkxM" };
30424
30443
 
30425
30444
  // src/components/Dialog.tsx
30426
- var import_jsx_runtime25 = require("react/jsx-runtime");
30445
+ var import_jsx_runtime26 = require("react/jsx-runtime");
30427
30446
  function Dialog2({ title, variant = "modal", children, className, ...props }) {
30428
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
30447
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
30429
30448
  $de32f1b87079253c$export$3ddf2d174ce01153,
30430
30449
  {
30431
30450
  ...props,
30432
- className: (0, import_classnames14.default)(Dialog_default.dialog, variant && Dialog_default[variant], className),
30451
+ className: (0, import_classnames15.default)(Dialog_default.dialog, variant && Dialog_default[variant], className),
30433
30452
  children: (dialogProps) => {
30434
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_jsx_runtime25.Fragment, { children: [
30435
- title && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: Dialog_default.title, children: title }),
30453
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_jsx_runtime26.Fragment, { children: [
30454
+ title && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: Dialog_default.title, children: title }),
30436
30455
  typeof children === "function" ? children(dialogProps) : children
30437
30456
  ] });
30438
30457
  }
@@ -30441,16 +30460,16 @@ function Dialog2({ title, variant = "modal", children, className, ...props }) {
30441
30460
  }
30442
30461
 
30443
30462
  // src/components/Column.tsx
30444
- var import_jsx_runtime26 = require("react/jsx-runtime");
30463
+ var import_jsx_runtime27 = require("react/jsx-runtime");
30445
30464
  function Column({ reverse, children, ...props }) {
30446
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Flexbox, { ...props, direction: reverse ? "column-reverse" : "column", children });
30465
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Flexbox, { ...props, direction: reverse ? "column-reverse" : "column", children });
30447
30466
  }
30448
30467
 
30449
30468
  // css-modules:E:\dev\umami-react-zen\src\components\AlertDialog.module.css
30450
30469
  var AlertDialog_default = { "dialog": "AlertDialog_dialog__OTkwN", "title": "AlertDialog_title__ZGIwY" };
30451
30470
 
30452
30471
  // src/components/AlertDialog.tsx
30453
- var import_jsx_runtime27 = require("react/jsx-runtime");
30472
+ var import_jsx_runtime28 = require("react/jsx-runtime");
30454
30473
  function AlertDialog({
30455
30474
  title,
30456
30475
  description,
@@ -30472,12 +30491,12 @@ function AlertDialog({
30472
30491
  onCancel?.();
30473
30492
  close();
30474
30493
  };
30475
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Dialog2, { ...props, title, className: (0, import_classnames15.default)(AlertDialog_default.dialog, className), children: ({ close }) => {
30476
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(Column, { gap: "4", children: [
30494
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Dialog2, { ...props, title, className: (0, import_classnames16.default)(AlertDialog_default.dialog, className), children: ({ close }) => {
30495
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(Column, { gap: "4", children: [
30477
30496
  typeof children === "function" ? children({ close }) : children,
30478
- /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(Row, { gap: "3", justifyContent: "end", children: [
30479
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Button2, { onPress: () => handleClose(close), children: cancelLabel }),
30480
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
30497
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(Row, { gap: "3", justifyContent: "end", children: [
30498
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Button2, { onPress: () => handleClose(close), children: cancelLabel }),
30499
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
30481
30500
  Button2,
30482
30501
  {
30483
30502
  variant: isDanger ? "danger" : "primary",
@@ -30495,32 +30514,32 @@ function AlertDialog({
30495
30514
  var Blockquote_default = { "blockquote": "Blockquote_blockquote__MzZmO" };
30496
30515
 
30497
30516
  // src/components/Blockquote.tsx
30498
- var import_jsx_runtime28 = require("react/jsx-runtime");
30517
+ var import_jsx_runtime29 = require("react/jsx-runtime");
30499
30518
  function Blockquote({ asChild, children }) {
30500
30519
  const Component = asChild ? Slot : "blockquote";
30501
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Component, { className: Blockquote_default.blockquote, children });
30520
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Component, { className: Blockquote_default.blockquote, children });
30502
30521
  }
30503
30522
 
30504
30523
  // src/components/Breadcrumbs.tsx
30505
- var import_classnames16 = __toESM(require_classnames());
30524
+ var import_classnames17 = __toESM(require_classnames());
30506
30525
 
30507
30526
  // css-modules:E:\dev\umami-react-zen\src\components\Breadcrumbs.module.css
30508
30527
  var Breadcrumbs_default = { "breadcrumbs": "Breadcrumbs_breadcrumbs__OTJlN", "breadcrumb": "Breadcrumbs_breadcrumb__YjU2O", "icon": "Breadcrumbs_icon__MWFiY" };
30509
30528
 
30510
30529
  // src/components/Breadcrumbs.tsx
30511
- var import_jsx_runtime29 = require("react/jsx-runtime");
30530
+ var import_jsx_runtime30 = require("react/jsx-runtime");
30512
30531
  function Breadcrumbs2({ children, className, ...props }) {
30513
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)($778035c5624f61e7$export$2dc68d50d56fbbd, { ...props, className: (0, import_classnames16.default)(Breadcrumbs_default.breadcrumbs, className), children });
30532
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)($778035c5624f61e7$export$2dc68d50d56fbbd, { ...props, className: (0, import_classnames17.default)(Breadcrumbs_default.breadcrumbs, className), children });
30514
30533
  }
30515
30534
  function Breadcrumb2({ children, className, ...props }) {
30516
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)($778035c5624f61e7$export$dabcc1ec9dd9d1cc, { ...props, className: (0, import_classnames16.default)(Breadcrumbs_default.breadcrumb, className), children: [
30535
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)($778035c5624f61e7$export$dabcc1ec9dd9d1cc, { ...props, className: (0, import_classnames17.default)(Breadcrumbs_default.breadcrumb, className), children: [
30517
30536
  children,
30518
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Icon2, { className: Breadcrumbs_default.icon, size: "xs", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(ChevronRight, {}) })
30537
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Icon2, { className: Breadcrumbs_default.icon, size: "xs", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(ChevronRight, {}) })
30519
30538
  ] });
30520
30539
  }
30521
30540
 
30522
30541
  // src/components/Calendar.tsx
30523
- var import_classnames17 = __toESM(require_classnames());
30542
+ var import_classnames18 = __toESM(require_classnames());
30524
30543
 
30525
30544
  // src/lib/date.ts
30526
30545
  function toCalendarDate(date) {
@@ -30533,7 +30552,7 @@ function toCalendarDate(date) {
30533
30552
  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" };
30534
30553
 
30535
30554
  // src/components/Calendar.tsx
30536
- var import_jsx_runtime30 = require("react/jsx-runtime");
30555
+ var import_jsx_runtime31 = require("react/jsx-runtime");
30537
30556
  function Calendar2({
30538
30557
  className,
30539
30558
  value,
@@ -30547,7 +30566,7 @@ function Calendar2({
30547
30566
  console.log({ raw: date });
30548
30567
  onChange?.(date.toDate($14e0f24ef4ac5c92$export$aa8b41735afcabd2()));
30549
30568
  };
30550
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
30569
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
30551
30570
  $dfd62f934fc76fed$export$e1aef45b828286de,
30552
30571
  {
30553
30572
  ...props,
@@ -30555,17 +30574,17 @@ function Calendar2({
30555
30574
  minValue: toCalendarDate(minValue),
30556
30575
  maxValue: toCalendarDate(maxValue),
30557
30576
  defaultValue: toCalendarDate(defaultValue),
30558
- className: (0, import_classnames17.default)(Calendar_default.calendar, className),
30577
+ className: (0, import_classnames18.default)(Calendar_default.calendar, className),
30559
30578
  onChange: handleChange,
30560
30579
  children: [
30561
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("header", { className: Calendar_default.header, children: [
30562
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Button2, { slot: "previous", className: Calendar_default.button, variant: "quiet", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Icon2, { rotate: 180, children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(ChevronRight, {}) }) }),
30563
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)($5cb03073d3f54797$export$a8a3e93435678ff9, { className: Calendar_default.heading }),
30564
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Button2, { slot: "next", className: Calendar_default.button, variant: "quiet", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Icon2, { children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(ChevronRight, {}) }) })
30580
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("header", { className: Calendar_default.header, children: [
30581
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Button2, { slot: "previous", className: Calendar_default.button, variant: "quiet", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Icon2, { rotate: 180, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(ChevronRight, {}) }) }),
30582
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)($5cb03073d3f54797$export$a8a3e93435678ff9, { className: Calendar_default.heading }),
30583
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Button2, { slot: "next", className: Calendar_default.button, variant: "quiet", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Icon2, { children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(ChevronRight, {}) }) })
30565
30584
  ] }),
30566
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)($dfd62f934fc76fed$export$5bd780d491cfc46c, { children: [
30567
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)($dfd62f934fc76fed$export$22e2d15eaa4d2377, { children: (day) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)($dfd62f934fc76fed$export$ad2135cac3a11b3d, { className: Calendar_default.headerCell, children: day }) }),
30568
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)($dfd62f934fc76fed$export$e11f8ba65d857bff, { className: Calendar_default.body, children: (date) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)($dfd62f934fc76fed$export$5d847498420df57b, { className: Calendar_default.cell, date }) })
30585
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)($dfd62f934fc76fed$export$5bd780d491cfc46c, { children: [
30586
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)($dfd62f934fc76fed$export$22e2d15eaa4d2377, { children: (day) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)($dfd62f934fc76fed$export$ad2135cac3a11b3d, { className: Calendar_default.headerCell, children: day }) }),
30587
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)($dfd62f934fc76fed$export$e11f8ba65d857bff, { className: Calendar_default.body, children: (date) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)($dfd62f934fc76fed$export$5d847498420df57b, { className: Calendar_default.cell, date }) })
30569
30588
  ] })
30570
30589
  ]
30571
30590
  }
@@ -30573,24 +30592,24 @@ function Calendar2({
30573
30592
  }
30574
30593
 
30575
30594
  // src/components/Checkbox.tsx
30576
- var import_classnames18 = __toESM(require_classnames());
30595
+ var import_classnames19 = __toESM(require_classnames());
30577
30596
 
30578
30597
  // css-modules:E:\dev\umami-react-zen\src\components\Checkbox.module.css
30579
30598
  var Checkbox_default = { "checkbox": "Checkbox_checkbox__OTliN", "box": "Checkbox_box__M2E3Z", "icon": "Checkbox_icon__ODgyZ" };
30580
30599
 
30581
30600
  // src/components/Checkbox.tsx
30582
- var import_jsx_runtime31 = require("react/jsx-runtime");
30601
+ var import_jsx_runtime32 = require("react/jsx-runtime");
30583
30602
  function Checkbox2({ label, className, children, ...props }) {
30584
30603
  const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
30585
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
30604
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
30586
30605
  $bc237834342dbd75$export$48513f6b9f8ce62d,
30587
30606
  {
30588
30607
  ...props,
30589
30608
  isSelected,
30590
- className: (0, import_classnames18.default)(Checkbox_default.checkbox, className),
30609
+ className: (0, import_classnames19.default)(Checkbox_default.checkbox, className),
30591
30610
  children: ({ isIndeterminate, isSelected: isSelected2 }) => {
30592
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_jsx_runtime31.Fragment, { children: [
30593
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: Checkbox_default.box, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Icon2, { className: Checkbox_default.icon, size: "sm", children: isIndeterminate ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Minus, {}) : isSelected2 ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Check, {}) : null }) }),
30611
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_jsx_runtime32.Fragment, { children: [
30612
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: Checkbox_default.box, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Icon2, { className: Checkbox_default.icon, size: "sm", children: isIndeterminate ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Minus, {}) : isSelected2 ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Check, {}) : null }) }),
30594
30613
  children
30595
30614
  ] });
30596
30615
  }
@@ -30602,20 +30621,20 @@ function Checkbox2({ label, className, children, ...props }) {
30602
30621
  var Code_default = { "code": "Code_code__NmYxN" };
30603
30622
 
30604
30623
  // src/components/Code.tsx
30605
- var import_jsx_runtime32 = require("react/jsx-runtime");
30624
+ var import_jsx_runtime33 = require("react/jsx-runtime");
30606
30625
  function Code({ asChild, children }) {
30607
30626
  const Component = asChild ? Slot : "code";
30608
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Component, { className: Code_default.code, children });
30627
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Component, { className: Code_default.code, children });
30609
30628
  }
30610
30629
 
30611
30630
  // src/components/Container.tsx
30612
- var import_classnames19 = __toESM(require_classnames());
30631
+ var import_classnames20 = __toESM(require_classnames());
30613
30632
 
30614
30633
  // css-modules:E:\dev\umami-react-zen\src\components\Container.module.css
30615
30634
  var Container_default = { "container": "Container_container__ZWU0Y", "centered": "Container_centered__OTM1M", "fluid": "Container_fluid__NTBhY" };
30616
30635
 
30617
30636
  // src/components/Container.tsx
30618
- var import_jsx_runtime33 = require("react/jsx-runtime");
30637
+ var import_jsx_runtime34 = require("react/jsx-runtime");
30619
30638
  function Container({
30620
30639
  isCentered = true,
30621
30640
  isFluid,
@@ -30623,11 +30642,11 @@ function Container({
30623
30642
  children,
30624
30643
  ...props
30625
30644
  }) {
30626
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
30645
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
30627
30646
  Box,
30628
30647
  {
30629
30648
  ...props,
30630
- className: (0, import_classnames19.default)(
30649
+ className: (0, import_classnames20.default)(
30631
30650
  Container_default.container,
30632
30651
  className,
30633
30652
  isCentered && Container_default.centered,
@@ -30646,18 +30665,6 @@ var import_classnames23 = __toESM(require_classnames());
30646
30665
  var import_react176 = require("react");
30647
30666
  var import_classnames22 = __toESM(require_classnames());
30648
30667
 
30649
- // src/components/Label.tsx
30650
- var import_classnames20 = __toESM(require_classnames());
30651
-
30652
- // css-modules:E:\dev\umami-react-zen\src\components\Label.module.css
30653
- var Label_default = { "label": "Label_label__YWE3M" };
30654
-
30655
- // src/components/Label.tsx
30656
- var import_jsx_runtime34 = require("react/jsx-runtime");
30657
- function Label2({ className, ...props }) {
30658
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)($01b77f81d0f07f68$export$b04be29aa201d4f5, { ...props, className: (0, import_classnames20.default)(Label_default.label, className) });
30659
- }
30660
-
30661
30668
  // src/components/CopyButton.tsx
30662
30669
  var import_react175 = require("react");
30663
30670
  var import_classnames21 = __toESM(require_classnames());
@@ -31543,6 +31550,7 @@ function SearchField2({
31543
31550
  value,
31544
31551
  defaultValue = "",
31545
31552
  delay = 0,
31553
+ onChange,
31546
31554
  onSearch,
31547
31555
  className,
31548
31556
  ...props
@@ -31554,10 +31562,12 @@ function SearchField2({
31554
31562
  if (delay === 0 || value2 === "") {
31555
31563
  onSearch?.(value2);
31556
31564
  }
31565
+ onChange?.(value2);
31557
31566
  };
31558
31567
  const resetSearch = () => {
31559
31568
  setSearch("");
31560
31569
  onSearch?.("");
31570
+ onChange?.("");
31561
31571
  };
31562
31572
  (0, import_react186.useEffect)(() => {
31563
31573
  if (delay > 0) {