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