@umami/react-zen 0.8.0 → 0.10.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
@@ -225,143 +225,9 @@ var require_classnames = __commonJS({
225
225
  }
226
226
  });
227
227
 
228
- // node_modules/zustand/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js
229
- var require_use_sync_external_store_shim_development2 = __commonJS({
230
- "node_modules/zustand/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js"(exports) {
231
- "use strict";
232
- if (true) {
233
- (function() {
234
- "use strict";
235
- if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function") {
236
- __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
237
- }
238
- var React19 = require("react");
239
- var ReactSharedInternals = React19.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
240
- function error(format) {
241
- {
242
- {
243
- for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
244
- args[_key2 - 1] = arguments[_key2];
245
- }
246
- printWarning("error", format, args);
247
- }
248
- }
249
- }
250
- function printWarning(level, format, args) {
251
- {
252
- var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
253
- var stack = ReactDebugCurrentFrame.getStackAddendum();
254
- if (stack !== "") {
255
- format += "%s";
256
- args = args.concat([stack]);
257
- }
258
- var argsWithFormat = args.map(function(item) {
259
- return String(item);
260
- });
261
- argsWithFormat.unshift("Warning: " + format);
262
- Function.prototype.apply.call(console[level], console, argsWithFormat);
263
- }
264
- }
265
- function is(x, y) {
266
- return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y;
267
- }
268
- var objectIs = typeof Object.is === "function" ? Object.is : is;
269
- var useState14 = React19.useState, useEffect11 = React19.useEffect, useLayoutEffect3 = React19.useLayoutEffect, useDebugValue2 = React19.useDebugValue;
270
- var didWarnOld18Alpha = false;
271
- var didWarnUncachedGetSnapshot = false;
272
- function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {
273
- {
274
- if (!didWarnOld18Alpha) {
275
- if (React19.startTransition !== void 0) {
276
- didWarnOld18Alpha = true;
277
- error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release.");
278
- }
279
- }
280
- }
281
- var value = getSnapshot();
282
- {
283
- if (!didWarnUncachedGetSnapshot) {
284
- var cachedValue = getSnapshot();
285
- if (!objectIs(value, cachedValue)) {
286
- error("The result of getSnapshot should be cached to avoid an infinite loop");
287
- didWarnUncachedGetSnapshot = true;
288
- }
289
- }
290
- }
291
- var _useState = useState14({
292
- inst: {
293
- value,
294
- getSnapshot
295
- }
296
- }), inst = _useState[0].inst, forceUpdate = _useState[1];
297
- useLayoutEffect3(function() {
298
- inst.value = value;
299
- inst.getSnapshot = getSnapshot;
300
- if (checkIfSnapshotChanged(inst)) {
301
- forceUpdate({
302
- inst
303
- });
304
- }
305
- }, [subscribe, value, getSnapshot]);
306
- useEffect11(function() {
307
- if (checkIfSnapshotChanged(inst)) {
308
- forceUpdate({
309
- inst
310
- });
311
- }
312
- var handleStoreChange = function() {
313
- if (checkIfSnapshotChanged(inst)) {
314
- forceUpdate({
315
- inst
316
- });
317
- }
318
- };
319
- return subscribe(handleStoreChange);
320
- }, [subscribe]);
321
- useDebugValue2(value);
322
- return value;
323
- }
324
- function checkIfSnapshotChanged(inst) {
325
- var latestGetSnapshot = inst.getSnapshot;
326
- var prevValue = inst.value;
327
- try {
328
- var nextValue = latestGetSnapshot();
329
- return !objectIs(prevValue, nextValue);
330
- } catch (error2) {
331
- return true;
332
- }
333
- }
334
- function useSyncExternalStore$1(subscribe, getSnapshot, getServerSnapshot) {
335
- return getSnapshot();
336
- }
337
- var canUseDOM = !!(typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined");
338
- var isServerEnvironment = !canUseDOM;
339
- var shim = isServerEnvironment ? useSyncExternalStore$1 : useSyncExternalStore;
340
- var useSyncExternalStore$2 = React19.useSyncExternalStore !== void 0 ? React19.useSyncExternalStore : shim;
341
- exports.useSyncExternalStore = useSyncExternalStore$2;
342
- if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function") {
343
- __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
344
- }
345
- })();
346
- }
347
- }
348
- });
349
-
350
- // node_modules/zustand/node_modules/use-sync-external-store/shim/index.js
351
- var require_shim2 = __commonJS({
352
- "node_modules/zustand/node_modules/use-sync-external-store/shim/index.js"(exports, module2) {
353
- "use strict";
354
- if (false) {
355
- module2.exports = null;
356
- } else {
357
- module2.exports = require_use_sync_external_store_shim_development2();
358
- }
359
- }
360
- });
361
-
362
- // node_modules/zustand/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js
228
+ // node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js
363
229
  var require_with_selector_development = __commonJS({
364
- "node_modules/zustand/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js"(exports) {
230
+ "node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js"(exports) {
365
231
  "use strict";
366
232
  if (true) {
367
233
  (function() {
@@ -370,7 +236,7 @@ var require_with_selector_development = __commonJS({
370
236
  __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
371
237
  }
372
238
  var React19 = require("react");
373
- var shim = require_shim2();
239
+ var shim = require_shim();
374
240
  function is(x, y) {
375
241
  return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y;
376
242
  }
@@ -449,9 +315,9 @@ var require_with_selector_development = __commonJS({
449
315
  }
450
316
  });
451
317
 
452
- // node_modules/zustand/node_modules/use-sync-external-store/shim/with-selector.js
318
+ // node_modules/use-sync-external-store/shim/with-selector.js
453
319
  var require_with_selector = __commonJS({
454
- "node_modules/zustand/node_modules/use-sync-external-store/shim/with-selector.js"(exports, module2) {
320
+ "node_modules/use-sync-external-store/shim/with-selector.js"(exports, module2) {
455
321
  "use strict";
456
322
  if (false) {
457
323
  module2.exports = null;
@@ -2767,7 +2633,7 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
2767
2633
  }
2768
2634
  };
2769
2635
  let onTouchEnd = (e) => {
2770
- if ($f6c31cce2adf654f$var$shouldPreventDefaultUp(e.target)) e.preventDefault();
2636
+ if ($f6c31cce2adf654f$var$shouldPreventDefaultUp(e.currentTarget)) e.preventDefault();
2771
2637
  };
2772
2638
  let onPointerCancel = (e) => {
2773
2639
  cancel(e);
@@ -19224,7 +19090,7 @@ function $bc237834342dbd75$var$Checkbox(props, ref) {
19224
19090
  let groupState = (0, import_react110.useContext)($bc237834342dbd75$export$139c5b8563afc1fc);
19225
19091
  let inputRef = (0, $df56164dff5785e2$export$4338b53315abf666)((0, $5dc95899b306f630$export$c9058316764c140e)(userProvidedInputRef, props.inputRef !== void 0 ? props.inputRef : null));
19226
19092
  let { labelProps, inputProps, isSelected, isDisabled, isReadOnly, isPressed, isInvalid } = groupState ? (0, $fba3e38d5ca8983f$export$353b32fc6898d37d)({
19227
- ...props,
19093
+ ...(0, $64fa3d84918910a7$export$ef03459518577ad4)(props),
19228
19094
  // Value is optional for standalone checkboxes, but required for CheckboxGroup items;
19229
19095
  // it's passed explicitly here to avoid typescript error (requires ignore).
19230
19096
  // @ts-ignore
@@ -19232,7 +19098,7 @@ function $bc237834342dbd75$var$Checkbox(props, ref) {
19232
19098
  // ReactNode type doesn't allow function children.
19233
19099
  children: typeof props.children === "function" ? true : props.children
19234
19100
  }, groupState, inputRef) : (0, $406796ff087fe49b$export$e375f10ce42261c5)({
19235
- ...props,
19101
+ ...(0, $64fa3d84918910a7$export$ef03459518577ad4)(props),
19236
19102
  children: typeof props.children === "function" ? true : props.children,
19237
19103
  validationBehavior
19238
19104
  }, (0, $3017fa7ffdddec74$export$8042c6c013fd5226)(props), inputRef);
@@ -19243,7 +19109,6 @@ function $bc237834342dbd75$var$Checkbox(props, ref) {
19243
19109
  isDisabled: isInteractionDisabled
19244
19110
  });
19245
19111
  let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({
19246
- // TODO: should data attrs go on the label or on the <input>? useCheckbox passes them to the input...
19247
19112
  ...props,
19248
19113
  defaultClassName: "react-aria-Checkbox",
19249
19114
  values: {
@@ -23815,7 +23680,7 @@ function createFormControl(props = {}) {
23815
23680
  timer = setTimeout(callback, wait);
23816
23681
  };
23817
23682
  const _updateValid = async (shouldUpdateValid) => {
23818
- if (_proxyFormState.isValid || shouldUpdateValid) {
23683
+ if (!props.disabled && (_proxyFormState.isValid || shouldUpdateValid)) {
23819
23684
  const isValid = _options.resolver ? isEmptyObject((await _executeSchema()).errors) : await executeBuiltInValidation(_fields, true);
23820
23685
  if (isValid !== _formState.isValid) {
23821
23686
  _subjects.state.next({
@@ -23825,7 +23690,7 @@ function createFormControl(props = {}) {
23825
23690
  }
23826
23691
  };
23827
23692
  const _updateIsValidating = (names, isValidating) => {
23828
- if (_proxyFormState.isValidating || _proxyFormState.validatingFields) {
23693
+ if (!props.disabled && (_proxyFormState.isValidating || _proxyFormState.validatingFields)) {
23829
23694
  (names || Array.from(_names.mount)).forEach((name) => {
23830
23695
  if (name) {
23831
23696
  isValidating ? set(_formState.validatingFields, name, isValidating) : unset(_formState.validatingFields, name);
@@ -23838,7 +23703,7 @@ function createFormControl(props = {}) {
23838
23703
  }
23839
23704
  };
23840
23705
  const _updateFieldArray = (name, values = [], method, args, shouldSetValues = true, shouldUpdateFieldsAndState = true) => {
23841
- if (args && method) {
23706
+ if (args && method && !props.disabled) {
23842
23707
  _state.action = true;
23843
23708
  if (shouldUpdateFieldsAndState && Array.isArray(get(_fields, name))) {
23844
23709
  const fieldValues = method(get(_fields, name), args.argA, args.argB);
@@ -23894,28 +23759,30 @@ function createFormControl(props = {}) {
23894
23759
  const output = {
23895
23760
  name
23896
23761
  };
23897
- const disabledField = !!(get(_fields, name) && get(_fields, name)._f && get(_fields, name)._f.disabled);
23898
- if (!isBlurEvent || shouldDirty) {
23899
- if (_proxyFormState.isDirty) {
23900
- isPreviousDirty = _formState.isDirty;
23901
- _formState.isDirty = output.isDirty = _getDirty();
23902
- shouldUpdateField = isPreviousDirty !== output.isDirty;
23762
+ if (!props.disabled) {
23763
+ const disabledField = !!(get(_fields, name) && get(_fields, name)._f && get(_fields, name)._f.disabled);
23764
+ if (!isBlurEvent || shouldDirty) {
23765
+ if (_proxyFormState.isDirty) {
23766
+ isPreviousDirty = _formState.isDirty;
23767
+ _formState.isDirty = output.isDirty = _getDirty();
23768
+ shouldUpdateField = isPreviousDirty !== output.isDirty;
23769
+ }
23770
+ const isCurrentFieldPristine = disabledField || deepEqual(get(_defaultValues, name), fieldValue);
23771
+ isPreviousDirty = !!(!disabledField && get(_formState.dirtyFields, name));
23772
+ isCurrentFieldPristine || disabledField ? unset(_formState.dirtyFields, name) : set(_formState.dirtyFields, name, true);
23773
+ output.dirtyFields = _formState.dirtyFields;
23774
+ shouldUpdateField = shouldUpdateField || _proxyFormState.dirtyFields && isPreviousDirty !== !isCurrentFieldPristine;
23903
23775
  }
23904
- const isCurrentFieldPristine = disabledField || deepEqual(get(_defaultValues, name), fieldValue);
23905
- isPreviousDirty = !!(!disabledField && get(_formState.dirtyFields, name));
23906
- isCurrentFieldPristine || disabledField ? unset(_formState.dirtyFields, name) : set(_formState.dirtyFields, name, true);
23907
- output.dirtyFields = _formState.dirtyFields;
23908
- shouldUpdateField = shouldUpdateField || _proxyFormState.dirtyFields && isPreviousDirty !== !isCurrentFieldPristine;
23909
- }
23910
- if (isBlurEvent) {
23911
- const isPreviousFieldTouched = get(_formState.touchedFields, name);
23912
- if (!isPreviousFieldTouched) {
23913
- set(_formState.touchedFields, name, isBlurEvent);
23914
- output.touchedFields = _formState.touchedFields;
23915
- shouldUpdateField = shouldUpdateField || _proxyFormState.touchedFields && isPreviousFieldTouched !== isBlurEvent;
23776
+ if (isBlurEvent) {
23777
+ const isPreviousFieldTouched = get(_formState.touchedFields, name);
23778
+ if (!isPreviousFieldTouched) {
23779
+ set(_formState.touchedFields, name, isBlurEvent);
23780
+ output.touchedFields = _formState.touchedFields;
23781
+ shouldUpdateField = shouldUpdateField || _proxyFormState.touchedFields && isPreviousFieldTouched !== isBlurEvent;
23782
+ }
23916
23783
  }
23784
+ shouldUpdateField && shouldRender && _subjects.state.next(output);
23917
23785
  }
23918
- shouldUpdateField && shouldRender && _subjects.state.next(output);
23919
23786
  return shouldUpdateField ? output : {};
23920
23787
  };
23921
23788
  const shouldRenderByError = (name, isValid, error, fieldState) => {
@@ -23998,7 +23865,7 @@ function createFormControl(props = {}) {
23998
23865
  }
23999
23866
  _names.unMount = /* @__PURE__ */ new Set();
24000
23867
  };
24001
- const _getDirty = (name, data) => (name && data && set(_formValues, name, data), !deepEqual(getValues(), _defaultValues));
23868
+ const _getDirty = (name, data) => !props.disabled && (name && data && set(_formValues, name, data), !deepEqual(getValues(), _defaultValues));
24002
23869
  const _getWatch = (names, defaultValue, isGlobal) => generateWatchOutput(names, _names, {
24003
23870
  ..._state.mount ? _formValues : isUndefined(defaultValue) ? _defaultValues : isString(names) ? { [names]: defaultValue } : defaultValue
24004
23871
  }, isGlobal, defaultValue);
@@ -24040,7 +23907,7 @@ function createFormControl(props = {}) {
24040
23907
  const fieldValue = value[fieldKey];
24041
23908
  const fieldName = `${name}.${fieldKey}`;
24042
23909
  const field = get(_fields, fieldName);
24043
- (_names.array.has(name) || !isPrimitive(fieldValue) || field && !field._f) && !isDateObject(fieldValue) ? setValues(fieldName, fieldValue, options) : setFieldValue(fieldName, fieldValue, options);
23910
+ (_names.array.has(name) || isObject(fieldValue) || field && !field._f) && !isDateObject(fieldValue) ? setValues(fieldName, fieldValue, options) : setFieldValue(fieldName, fieldValue, options);
24044
23911
  }
24045
23912
  };
24046
23913
  const setValue = (name, value, options = {}) => {
@@ -24077,7 +23944,7 @@ function createFormControl(props = {}) {
24077
23944
  const field = get(_fields, name);
24078
23945
  const getCurrentFieldValue = () => target.type ? getFieldValue(field._f) : getEventValue(event);
24079
23946
  const _updateIsFieldValueUpdated = (fieldValue) => {
24080
- isFieldValueUpdated = Number.isNaN(fieldValue) || deepEqual(fieldValue, get(_formValues, name, fieldValue));
23947
+ isFieldValueUpdated = Number.isNaN(fieldValue) || isDateObject(fieldValue) && isNaN(fieldValue.getTime()) || deepEqual(fieldValue, get(_formValues, name, fieldValue));
24081
23948
  };
24082
23949
  if (field) {
24083
23950
  let error;
@@ -24406,7 +24273,11 @@ function createFormControl(props = {}) {
24406
24273
  }
24407
24274
  if (!keepStateOptions.keepValues) {
24408
24275
  if (keepStateOptions.keepDirtyValues) {
24409
- for (const fieldName of _names.mount) {
24276
+ const fieldsToCheck = /* @__PURE__ */ new Set([
24277
+ ..._names.mount,
24278
+ ...Object.keys(getDirtyFields(_defaultValues, _formValues))
24279
+ ]);
24280
+ for (const fieldName of Array.from(fieldsToCheck)) {
24410
24281
  get(_formState.dirtyFields, fieldName) ? set(values, fieldName, get(_formValues, fieldName)) : setValue(fieldName, get(values, fieldName));
24411
24282
  }
24412
24283
  } else {
@@ -24630,6 +24501,11 @@ function useForm(props = {}) {
24630
24501
  values: control._getWatch()
24631
24502
  });
24632
24503
  }, [props.shouldUnregister, control]);
24504
+ import_react139.default.useEffect(() => {
24505
+ if (_formControl.current) {
24506
+ _formControl.current.watch = _formControl.current.watch.bind({});
24507
+ }
24508
+ }, [formState]);
24633
24509
  _formControl.current.formState = getProxyFormState(formState, control);
24634
24510
  return _formControl.current;
24635
24511
  }
@@ -24658,36 +24534,119 @@ var Box_default = {
24658
24534
  "font-size-md": "Box_font-size-md",
24659
24535
  "font-size-lg": "Box_font-size-lg",
24660
24536
  "font-size-xl": "Box_font-size-xl",
24661
- "border-thin": "Box_border-thin",
24662
- "border-medium": "Box_border-medium",
24663
- "border-thick": "Box_border-thick",
24537
+ "border-sm": "Box_border-sm",
24538
+ "border-md": "Box_border-md",
24539
+ "border-lg": "Box_border-lg",
24664
24540
  "border-radius-sm": "Box_border-radius-sm",
24665
24541
  "border-radius-md": "Box_border-radius-md",
24666
24542
  "border-radius-lg": "Box_border-radius-lg",
24667
24543
  "border-radius-full": "Box_border-radius-full",
24668
- "gap-xs": "Box_gap-xs",
24669
- "gap-sm": "Box_gap-sm",
24670
- "gap-md": "Box_gap-md",
24671
- "gap-lg": "Box_gap-lg",
24672
- "gap-xl": "Box_gap-xl",
24673
24544
  "shadow-1": "Box_shadow-1",
24674
24545
  "shadow-2": "Box_shadow-2",
24675
24546
  "shadow-3": "Box_shadow-3",
24676
24547
  "shadow-4": "Box_shadow-4",
24677
24548
  "shadow-5": "Box_shadow-5",
24678
- "shadow-6": "Box_shadow-6"
24549
+ "shadow-6": "Box_shadow-6",
24550
+ "background-color-50": "Box_background-color-50",
24551
+ "background-color-100": "Box_background-color-100",
24552
+ "background-color-200": "Box_background-color-200",
24553
+ "background-color-300": "Box_background-color-300",
24554
+ "background-color-400": "Box_background-color-400",
24555
+ "background-color-500": "Box_background-color-500",
24556
+ "background-color-600": "Box_background-color-600",
24557
+ "background-color-700": "Box_background-color-700",
24558
+ "background-color-800": "Box_background-color-800",
24559
+ "background-color-900": "Box_background-color-900",
24560
+ "background-color-950": "Box_background-color-950",
24561
+ "padding-1": "Box_padding-1",
24562
+ "margin-1": "Box_margin-1",
24563
+ "padding-2": "Box_padding-2",
24564
+ "margin-2": "Box_margin-2",
24565
+ "padding-3": "Box_padding-3",
24566
+ "margin-3": "Box_margin-3",
24567
+ "padding-4": "Box_padding-4",
24568
+ "margin-4": "Box_margin-4",
24569
+ "padding-5": "Box_padding-5",
24570
+ "margin-5": "Box_margin-5",
24571
+ "padding-6": "Box_padding-6",
24572
+ "margin-6": "Box_margin-6",
24573
+ "padding-7": "Box_padding-7",
24574
+ "margin-7": "Box_margin-7",
24575
+ "padding-8": "Box_padding-8",
24576
+ "margin-8": "Box_margin-8",
24577
+ "padding-9": "Box_padding-9",
24578
+ "margin-9": "Box_margin-9",
24579
+ "padding-10": "Box_padding-10",
24580
+ "margin-10": "Box_margin-10",
24581
+ "padding-11": "Box_padding-11",
24582
+ "margin-11": "Box_margin-11",
24583
+ "padding-12": "Box_padding-12",
24584
+ "margin-12": "Box_margin-12",
24585
+ "padding-x-1": "Box_padding-x-1",
24586
+ "margin-x-1": "Box_margin-x-1",
24587
+ "padding-x-2": "Box_padding-x-2",
24588
+ "margin-x-2": "Box_margin-x-2",
24589
+ "padding-x-3": "Box_padding-x-3",
24590
+ "margin-x-3": "Box_margin-x-3",
24591
+ "padding-x-4": "Box_padding-x-4",
24592
+ "margin-x-4": "Box_margin-x-4",
24593
+ "padding-x-5": "Box_padding-x-5",
24594
+ "margin-x-5": "Box_margin-x-5",
24595
+ "padding-x-6": "Box_padding-x-6",
24596
+ "margin-x-6": "Box_margin-x-6",
24597
+ "padding-x-7": "Box_padding-x-7",
24598
+ "margin-x-7": "Box_margin-x-7",
24599
+ "padding-x-8": "Box_padding-x-8",
24600
+ "margin-x-8": "Box_margin-x-8",
24601
+ "padding-x-9": "Box_padding-x-9",
24602
+ "margin-x-9": "Box_margin-x-9",
24603
+ "padding-x-10": "Box_padding-x-10",
24604
+ "margin-x-10": "Box_margin-x-10",
24605
+ "padding-x-11": "Box_padding-x-11",
24606
+ "margin-x-11": "Box_margin-x-11",
24607
+ "padding-x-12": "Box_padding-x-12",
24608
+ "margin-x-12": "Box_margin-x-12",
24609
+ "padding-y-1": "Box_padding-y-1",
24610
+ "margin-y-1": "Box_margin-y-1",
24611
+ "padding-y-2": "Box_padding-y-2",
24612
+ "margin-y-2": "Box_margin-y-2",
24613
+ "padding-y-3": "Box_padding-y-3",
24614
+ "margin-y-3": "Box_margin-y-3",
24615
+ "padding-y-4": "Box_padding-y-4",
24616
+ "margin-y-4": "Box_margin-y-4",
24617
+ "padding-y-5": "Box_padding-y-5",
24618
+ "margin-y-5": "Box_margin-y-5",
24619
+ "padding-y-6": "Box_padding-y-6",
24620
+ "margin-y-6": "Box_margin-y-6",
24621
+ "padding-y-7": "Box_padding-y-7",
24622
+ "margin-y-7": "Box_margin-y-7",
24623
+ "padding-y-8": "Box_padding-y-8",
24624
+ "margin-y-8": "Box_margin-y-8",
24625
+ "padding-y-9": "Box_padding-y-9",
24626
+ "margin-y-9": "Box_margin-y-9",
24627
+ "padding-y-10": "Box_padding-y-10",
24628
+ "margin-y-10": "Box_margin-y-10",
24629
+ "padding-y-11": "Box_padding-y-11",
24630
+ "margin-y-11": "Box_margin-y-11",
24631
+ "padding-y-12": "Box_padding-y-12",
24632
+ "margin-y-12": "Box_margin-y-12"
24679
24633
  };
24680
24634
 
24681
24635
  // src/components/Box.tsx
24682
24636
  var import_jsx_runtime = require("react/jsx-runtime");
24683
24637
  function Box({
24684
24638
  className,
24685
- spacing,
24686
24639
  fontSize,
24640
+ backgroundColor,
24687
24641
  border,
24688
24642
  borderRadius,
24689
24643
  shadow,
24690
- gap,
24644
+ padding,
24645
+ margin,
24646
+ paddingX,
24647
+ marginX,
24648
+ paddingY,
24649
+ marginY,
24691
24650
  asChild,
24692
24651
  children,
24693
24652
  ...props
@@ -24700,11 +24659,16 @@ function Box({
24700
24659
  className: (0, import_classnames.default)(
24701
24660
  className,
24702
24661
  fontSize && Box_default[`font-size-${fontSize}`],
24703
- gap && Box_default[`gap-${gap}`],
24662
+ backgroundColor && Box_default[`background-color-${backgroundColor}`],
24704
24663
  border && Box_default[`border-${border}`],
24705
24664
  borderRadius && Box_default[`border-radius-${borderRadius}`],
24706
24665
  shadow && Box_default[`shadow-${shadow}`],
24707
- spacing && Box_default[`spacing-${spacing}`]
24666
+ padding && Box_default[`padding-${padding}`],
24667
+ margin && Box_default[`margin-${margin}`],
24668
+ paddingX && Box_default[`padding-x-${padding}`],
24669
+ marginX && Box_default[`margin-x-${margin}`],
24670
+ paddingY && Box_default[`padding-y-${padding}`],
24671
+ marginY && Box_default[`margin-y-${margin}`]
24708
24672
  ),
24709
24673
  children
24710
24674
  }
@@ -24790,18 +24754,11 @@ var Flexbox_default = {
24790
24754
  "align-self-safe-center": "Flexbox_align-self-safe-center",
24791
24755
  "align-self-unsafe-center": "Flexbox_align-self-unsafe-center",
24792
24756
  inline: "Flexbox_inline",
24793
- spacing1: "Flexbox_spacing1",
24794
- spacing2: "Flexbox_spacing2",
24795
- spacing3: "Flexbox_spacing3",
24796
- spacing4: "Flexbox_spacing4",
24797
- spacing5: "Flexbox_spacing5",
24798
- spacing6: "Flexbox_spacing6",
24799
- spacing7: "Flexbox_spacing7",
24800
- spacing8: "Flexbox_spacing8",
24801
- spacing9: "Flexbox_spacing9",
24802
- spacing10: "Flexbox_spacing10",
24803
- spacing11: "Flexbox_spacing11",
24804
- spacing12: "Flexbox_spacing12"
24757
+ "gap-xs": "Flexbox_gap-xs",
24758
+ "gap-sm": "Flexbox_gap-sm",
24759
+ "gap-md": "Flexbox_gap-md",
24760
+ "gap-lg": "Flexbox_gap-lg",
24761
+ "gap-xl": "Flexbox_gap-xl"
24805
24762
  };
24806
24763
 
24807
24764
  // src/components/Flexbox.tsx
@@ -24818,7 +24775,7 @@ function Flexbox({
24818
24775
  grow,
24819
24776
  shrink,
24820
24777
  basis,
24821
- spacing,
24778
+ gap,
24822
24779
  style,
24823
24780
  className,
24824
24781
  children,
@@ -24833,6 +24790,7 @@ function Flexbox({
24833
24790
  className,
24834
24791
  direction && Flexbox_default[direction],
24835
24792
  wrap && Flexbox_default[wrap],
24793
+ gap && Flexbox_default[`gap-${gap}`],
24836
24794
  justifyContent && Flexbox_default[`justify-content-${replace(justifyContent)}`],
24837
24795
  justifyItems && Flexbox_default[`justify-items-${replace(justifyItems)}`],
24838
24796
  alignContent && Flexbox_default[`align-content-${replace(alignContent)}`],
@@ -25214,19 +25172,48 @@ function Text({ children, type, size, spacing, weight, asChild, className, ...pr
25214
25172
 
25215
25173
  // src/components/form/Form.tsx
25216
25174
  var import_jsx_runtime7 = require("react/jsx-runtime");
25217
- function Form(props) {
25218
- const {
25175
+ function Form({
25176
+ gap = "md",
25177
+ autoComplete,
25178
+ onSubmit,
25179
+ error,
25180
+ preventSubmit = false,
25181
+ mode,
25182
+ disabled,
25183
+ reValidateMode,
25184
+ defaultValues,
25185
+ values,
25186
+ errors,
25187
+ resetOptions,
25188
+ resolver,
25189
+ context,
25190
+ shouldFocusError,
25191
+ shouldUnregister,
25192
+ shouldUseNativeValidation,
25193
+ progressive,
25194
+ criteriaMode,
25195
+ delayError,
25196
+ className,
25197
+ children,
25198
+ ...props
25199
+ }) {
25200
+ const formValues = useForm({
25201
+ mode,
25202
+ disabled,
25203
+ reValidateMode,
25204
+ defaultValues,
25219
25205
  values,
25220
- autoComplete,
25221
- onSubmit,
25222
- error,
25223
- className,
25224
- style,
25225
- children,
25226
- preventSubmit = false,
25227
- ...formProps
25228
- } = props;
25229
- const formValues = useForm({ defaultValues: values });
25206
+ errors,
25207
+ resetOptions,
25208
+ resolver,
25209
+ context,
25210
+ shouldFocusError,
25211
+ shouldUnregister,
25212
+ shouldUseNativeValidation,
25213
+ progressive,
25214
+ criteriaMode,
25215
+ delayError
25216
+ });
25230
25217
  const { handleSubmit } = formValues;
25231
25218
  const onKeyDown = !onSubmit || preventSubmit ? (e) => e.key === "Enter" && e.preventDefault() : void 0;
25232
25219
  (0, import_react143.useEffect)(() => {
@@ -25245,13 +25232,12 @@ function Form(props) {
25245
25232
  /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
25246
25233
  "form",
25247
25234
  {
25248
- ...formProps,
25235
+ ...props,
25249
25236
  autoComplete,
25250
25237
  className: (0, import_classnames6.default)(Form_default.form, className),
25251
- style,
25252
25238
  onSubmit: onSubmit ? handleSubmit(onSubmit) : void 0,
25253
25239
  onKeyDown,
25254
- children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Column, { gap: "md", children: typeof children === "function" ? children(formValues) : children })
25240
+ children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Column, { gap, children: typeof children === "function" ? children(formValues) : children })
25255
25241
  }
25256
25242
  )
25257
25243
  ] });
@@ -25277,24 +25263,29 @@ function mapChildren(children, handler) {
25277
25263
 
25278
25264
  // src/components/form/FormField.module.css
25279
25265
  var FormField_default = {
25280
- input: "FormField_input",
25266
+ field: "FormField_field",
25281
25267
  description: "FormField_description",
25282
25268
  error: "FormField_error"
25283
25269
  };
25284
25270
 
25285
25271
  // src/components/form/FormField.tsx
25286
25272
  var import_jsx_runtime8 = require("react/jsx-runtime");
25287
- function FormField({ name, description, rules, className, children, ...props }) {
25288
- const { formState, control } = useFormContext();
25289
- const { field } = useController({ name, control, rules });
25290
- const errors = formState?.errors || {};
25291
- const errorMessage = errors[name]?.message;
25292
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { ...props, className: (0, import_classnames7.default)(FormField_default.input, className), children: [
25293
- typeof children === "function" ? children(field) : mapChildren(children, (child) => child ? (0, import_react145.cloneElement)(child, field) : null),
25294
- description && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: FormField_default.description, children: description }),
25295
- errorMessage && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: FormField_default.error, children: errorMessage })
25296
- ] });
25297
- }
25273
+ var FormField = (0, import_react145.forwardRef)(
25274
+ ({ name, description, label, rules, className, children, ...props }, ref) => {
25275
+ const { formState, control } = useFormContext();
25276
+ const { field } = useController({ name, control, rules });
25277
+ const errors = formState?.errors || {};
25278
+ const errorMessage = errors[name]?.message;
25279
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { ...props, ref, className: (0, import_classnames7.default)(FormField_default.input, className), children: [
25280
+ typeof children === "function" ? children(field) : mapChildren(
25281
+ children,
25282
+ (child) => child ? (0, import_react145.cloneElement)(child, { ...field, label: child.props.label || label }) : null
25283
+ ),
25284
+ description && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: FormField_default.description, children: description }),
25285
+ errorMessage && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: FormField_default.error, children: errorMessage })
25286
+ ] });
25287
+ }
25288
+ );
25298
25289
 
25299
25290
  // src/components/Button.tsx
25300
25291
  var import_classnames8 = __toESM(require_classnames());
@@ -25344,16 +25335,13 @@ function Button({
25344
25335
 
25345
25336
  // src/components/form/FormResetButton.tsx
25346
25337
  var import_jsx_runtime10 = require("react/jsx-runtime");
25347
- function FormResetButton(props) {
25348
- const { className, children, onPress, ...buttonProps } = props;
25338
+ function FormResetButton({ values = {}, children, onPress, ...props }) {
25349
25339
  const { reset } = useFormContext();
25350
25340
  const handleReset = (e) => {
25351
- reset();
25352
- if (onPress) {
25353
- onPress(e);
25354
- }
25341
+ reset(values);
25342
+ onPress?.(e);
25355
25343
  };
25356
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Button, { ...buttonProps, type: "reset", onPress: handleReset, className, children });
25344
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Button, { ...props, type: "reset", onPress: handleReset, children });
25357
25345
  }
25358
25346
 
25359
25347
  // src/components/Spinner.tsx
@@ -25407,7 +25395,6 @@ function FormSubmitButton({ children, disabled, isLoading, ...props }) {
25407
25395
  const {
25408
25396
  formState: { isDirty, isValid, isSubmitting, isSubmitted, isSubmitSuccessful }
25409
25397
  } = useFormContext();
25410
- console.log({ isLoading, isValid, isSubmitSuccessful, isSubmitting, isSubmitted });
25411
25398
  return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
25412
25399
  LoadingButton,
25413
25400
  {
@@ -26546,6 +26533,14 @@ function Calendar({ className, ...props }) {
26546
26533
  ] });
26547
26534
  }
26548
26535
 
26536
+ // src/components/Checkbox.tsx
26537
+ var import_react158 = require("react");
26538
+
26539
+ // node_modules/react-icons/im/index.mjs
26540
+ function ImCheckmark(props) {
26541
+ return GenIcon({ "tag": "svg", "attr": { "version": "1.1", "viewBox": "0 0 16 16" }, "child": [{ "tag": "path", "attr": { "d": "M13.5 2l-7.5 7.5-3.5-3.5-2.5 2.5 6 6 10-10z" }, "child": [] }] })(props);
26542
+ }
26543
+
26549
26544
  // src/components/Checkbox.tsx
26550
26545
  var import_classnames15 = __toESM(require_classnames());
26551
26546
 
@@ -26558,14 +26553,26 @@ var Checkbox_default = {
26558
26553
 
26559
26554
  // src/components/Checkbox.tsx
26560
26555
  var import_jsx_runtime20 = require("react/jsx-runtime");
26561
- function Checkbox({ className, children, ...props }) {
26562
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)($bc237834342dbd75$export$48513f6b9f8ce62d, { ...props, className: (0, import_classnames15.default)(Checkbox_default.checkbox, className), children: ({ isIndeterminate, isSelected }) => {
26563
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_jsx_runtime20.Fragment, { children: [
26564
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: Checkbox_default.box, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Icon, { className: Checkbox_default.icon, size: "xs", children: isIndeterminate ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Icons.Minus, {}) : isSelected ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Icons.Check, {}) : null }) }),
26565
- children
26566
- ] });
26567
- } });
26568
- }
26556
+ var Checkbox = (0, import_react158.forwardRef)(
26557
+ ({ label, className, children, ...props }, ref) => {
26558
+ const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
26559
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
26560
+ $bc237834342dbd75$export$48513f6b9f8ce62d,
26561
+ {
26562
+ ...props,
26563
+ ref,
26564
+ isSelected,
26565
+ className: (0, import_classnames15.default)(Checkbox_default.checkbox, className),
26566
+ children: ({ isIndeterminate, isSelected: isSelected2 }) => {
26567
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_jsx_runtime20.Fragment, { children: [
26568
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: Checkbox_default.box, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Icon, { className: Checkbox_default.icon, size: "xs", children: isIndeterminate ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Icons.Minus, {}) : isSelected2 ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(ImCheckmark, {}) : null }) }),
26569
+ children
26570
+ ] });
26571
+ }
26572
+ }
26573
+ );
26574
+ }
26575
+ );
26569
26576
 
26570
26577
  // src/components/Combobox.tsx
26571
26578
  var import_classnames19 = __toESM(require_classnames());
@@ -26646,16 +26653,30 @@ function Combobox({ items, className, ...props }) {
26646
26653
  }
26647
26654
 
26648
26655
  // src/components/ConfirmationDialog.tsx
26656
+ var import_react161 = require("react");
26657
+ var import_classnames23 = __toESM(require_classnames());
26658
+
26659
+ // src/components/TextField.tsx
26649
26660
  var import_react160 = require("react");
26650
26661
  var import_classnames22 = __toESM(require_classnames());
26651
26662
 
26652
- // src/components/TextField.tsx
26653
- var import_react159 = require("react");
26654
- var import_classnames21 = __toESM(require_classnames());
26663
+ // src/components/Label.tsx
26664
+ var import_classnames20 = __toESM(require_classnames());
26665
+
26666
+ // src/components/Label.module.css
26667
+ var Label_default = {
26668
+ label: "Label_label"
26669
+ };
26670
+
26671
+ // src/components/Label.tsx
26672
+ var import_jsx_runtime25 = require("react/jsx-runtime");
26673
+ function Label({ className, ...props }) {
26674
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)($01b77f81d0f07f68$export$b04be29aa201d4f5, { ...props, className: (0, import_classnames20.default)(Label_default.label, className) });
26675
+ }
26655
26676
 
26656
26677
  // src/components/CopyButton.tsx
26657
- var import_react158 = require("react");
26658
- var import_classnames20 = __toESM(require_classnames());
26678
+ var import_react159 = require("react");
26679
+ var import_classnames21 = __toESM(require_classnames());
26659
26680
 
26660
26681
  // src/components/CopyButton.module.css
26661
26682
  var CopyButton_default = {
@@ -26664,20 +26685,20 @@ var CopyButton_default = {
26664
26685
  };
26665
26686
 
26666
26687
  // src/components/CopyButton.tsx
26667
- var import_jsx_runtime25 = require("react/jsx-runtime");
26688
+ var import_jsx_runtime26 = require("react/jsx-runtime");
26668
26689
  var TIMEOUT = 2e3;
26669
- function CopyButton({ value, className, children, ...props }) {
26670
- const [copied, setCopied] = (0, import_react158.useState)(false);
26671
- const timeout = (0, import_react158.useRef)(0);
26690
+ function CopyButton({ value, timeout = TIMEOUT, className, children, ...props }) {
26691
+ const [copied, setCopied] = (0, import_react159.useState)(false);
26692
+ const ref = (0, import_react159.useRef)(timeout);
26672
26693
  const handleCopy = async () => {
26673
26694
  if (value) {
26674
26695
  await navigator.clipboard.writeText(value);
26675
26696
  setCopied(true);
26676
- clearTimeout(timeout.current);
26677
- timeout.current = +setTimeout(() => setCopied(false), TIMEOUT);
26697
+ clearTimeout(ref.current);
26698
+ ref.current = +setTimeout(() => setCopied(false), timeout);
26678
26699
  }
26679
26700
  };
26680
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Icon, { ...props, className: (0, import_classnames20.default)(CopyButton_default.icon, className), onClick: handleCopy, children: copied ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Icons.Check, {}) : /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Icons.Copy, {}) });
26701
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Icon, { ...props, className: (0, import_classnames21.default)(CopyButton_default.icon, className), onClick: handleCopy, children: copied ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Icons.Check, {}) : /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Icons.Copy, {}) });
26681
26702
  }
26682
26703
 
26683
26704
  // src/components/Input.module.css
@@ -26685,7 +26706,6 @@ var Input_default = {
26685
26706
  field: "Input_field",
26686
26707
  row: "Input_row",
26687
26708
  input: "Input_input",
26688
- label: "Input_label",
26689
26709
  icon: "Input_icon"
26690
26710
  };
26691
26711
 
@@ -26697,48 +26717,57 @@ var TextField_default = {
26697
26717
  };
26698
26718
 
26699
26719
  // src/components/TextField.tsx
26700
- var import_jsx_runtime26 = require("react/jsx-runtime");
26701
- function TextField({
26702
- name,
26703
- value,
26704
- defaultValue,
26705
- label,
26706
- asTextArea,
26707
- allowCopy,
26708
- className,
26709
- onChange,
26710
- ...props
26711
- }) {
26712
- const [inputValue, setInputValue] = (0, import_react159.useState)(defaultValue || value);
26713
- const Component = asTextArea ? $216918bed6669f72$export$f5c9f3c2c4054eec : $3985021b0ad6602f$export$f5b8910cec6cf069;
26714
- const handleChange = (e) => {
26715
- setInputValue(e.target.value);
26716
- return onChange?.(e);
26717
- };
26718
- (0, import_react159.useEffect)(() => {
26719
- setInputValue(value);
26720
- }, [value]);
26721
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)($bcdf0525bf22703d$export$2c73285ae9390cec, { className: (0, import_classnames21.default)(Input_default.field, className), children: [
26722
- label && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)($01b77f81d0f07f68$export$b04be29aa201d4f5, { className: Input_default.label, children: label }),
26723
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: Input_default.row, children: [
26724
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
26725
- Component,
26726
- {
26727
- ...props,
26728
- value: inputValue,
26729
- className: (0, import_classnames21.default)(
26730
- TextField_default.input,
26731
- Input_default.input,
26732
- asTextArea && TextField_default.textarea,
26733
- allowCopy && TextField_default.allowCopy
26734
- ),
26735
- onChange: handleChange
26736
- }
26737
- ),
26738
- allowCopy && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(CopyButton, { className: (0, import_classnames21.default)(TextField_default.icon, Input_default.icon), value: inputValue })
26739
- ] })
26740
- ] });
26741
- }
26720
+ var import_jsx_runtime27 = require("react/jsx-runtime");
26721
+ var TextField = (0, import_react160.forwardRef)(
26722
+ ({
26723
+ value,
26724
+ defaultValue,
26725
+ label,
26726
+ placeholder,
26727
+ asTextArea,
26728
+ allowCopy,
26729
+ className,
26730
+ onChange,
26731
+ ...props
26732
+ }, ref) => {
26733
+ const [inputValue, setInputValue] = (0, import_react160.useState)(defaultValue || value);
26734
+ const Component = asTextArea ? $216918bed6669f72$export$f5c9f3c2c4054eec : $3985021b0ad6602f$export$f5b8910cec6cf069;
26735
+ const handleChange = (e) => {
26736
+ setInputValue(e.target.value);
26737
+ return onChange?.(e);
26738
+ };
26739
+ (0, import_react160.useEffect)(() => {
26740
+ setInputValue(value);
26741
+ }, [value]);
26742
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
26743
+ $bcdf0525bf22703d$export$2c73285ae9390cec,
26744
+ {
26745
+ ...props,
26746
+ ref,
26747
+ value: inputValue,
26748
+ className: (0, import_classnames22.default)(Input_default.field, className),
26749
+ children: [
26750
+ label && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Label, { children: label }),
26751
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: Input_default.row, children: [
26752
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
26753
+ Component,
26754
+ {
26755
+ className: (0, import_classnames22.default)(
26756
+ TextField_default.input,
26757
+ Input_default.input,
26758
+ asTextArea && TextField_default.textarea,
26759
+ allowCopy && TextField_default.allowCopy
26760
+ ),
26761
+ onChange: handleChange
26762
+ }
26763
+ ),
26764
+ allowCopy && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(CopyButton, { className: (0, import_classnames22.default)(TextField_default.icon, Input_default.icon), value: inputValue })
26765
+ ] })
26766
+ ]
26767
+ }
26768
+ );
26769
+ }
26770
+ );
26742
26771
 
26743
26772
  // src/components/ConfirmationDialog.module.css
26744
26773
  var ConfirmationDialog_default = {
@@ -26747,7 +26776,7 @@ var ConfirmationDialog_default = {
26747
26776
  };
26748
26777
 
26749
26778
  // src/components/ConfirmationDialog.tsx
26750
- var import_jsx_runtime27 = require("react/jsx-runtime");
26779
+ var import_jsx_runtime28 = require("react/jsx-runtime");
26751
26780
  function ConfirmationDialog({
26752
26781
  value,
26753
26782
  confirmMessage,
@@ -26755,25 +26784,25 @@ function ConfirmationDialog({
26755
26784
  children,
26756
26785
  ...props
26757
26786
  }) {
26758
- const [canSave, setCanSave] = (0, import_react160.useState)(false);
26787
+ const [canSave, setCanSave] = (0, import_react161.useState)(false);
26759
26788
  const handleChange = (e) => {
26760
26789
  setCanSave(e.target.value === value);
26761
26790
  };
26762
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
26791
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
26763
26792
  AlertDialog,
26764
26793
  {
26765
26794
  ...props,
26766
- className: (0, import_classnames22.default)(ConfirmationDialog_default.dialog, className),
26795
+ className: (0, import_classnames23.default)(ConfirmationDialog_default.dialog, className),
26767
26796
  isConfirmDisabled: !canSave,
26768
26797
  children: ({ close }) => {
26769
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_jsx_runtime27.Fragment, { children: [
26798
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_jsx_runtime28.Fragment, { children: [
26770
26799
  typeof children === "function" ? children({ close }) : children,
26771
- /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(Text, { children: [
26800
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(Text, { children: [
26772
26801
  confirmMessage || "Type the following value to confirm",
26773
26802
  ":"
26774
26803
  ] }),
26775
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: ConfirmationDialog_default.value, children: value }),
26776
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(TextField, { autoFocus: true, "aria-label": "Confirmation", onChange: handleChange })
26804
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: ConfirmationDialog_default.value, children: value }),
26805
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(TextField, { autoFocus: true, "aria-label": "Confirmation", onChange: handleChange })
26777
26806
  ] });
26778
26807
  }
26779
26808
  }
@@ -26781,11 +26810,11 @@ function ConfirmationDialog({
26781
26810
  }
26782
26811
 
26783
26812
  // src/components/DataTable.tsx
26784
- var import_classnames24 = __toESM(require_classnames());
26785
- var import_react161 = require("react");
26813
+ var import_classnames25 = __toESM(require_classnames());
26814
+ var import_react162 = require("react");
26786
26815
 
26787
26816
  // src/components/Table.tsx
26788
- var import_classnames23 = __toESM(require_classnames());
26817
+ var import_classnames24 = __toESM(require_classnames());
26789
26818
 
26790
26819
  // src/components/Table.module.css
26791
26820
  var Table_default = {
@@ -26801,32 +26830,32 @@ var Table_default = {
26801
26830
  };
26802
26831
 
26803
26832
  // src/components/Table.tsx
26804
- var import_jsx_runtime28 = require("react/jsx-runtime");
26833
+ var import_jsx_runtime29 = require("react/jsx-runtime");
26805
26834
  function Table({ children, className, ...props }) {
26806
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)($1910c06f0ca9905e$export$54ec01a60f47d33d, { ...props, className: (0, import_classnames23.default)(Table_default.table, className), "aria-label": "Table", children });
26835
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)($1910c06f0ca9905e$export$54ec01a60f47d33d, { ...props, className: (0, import_classnames24.default)(Table_default.table, className), "aria-label": "Table", children });
26807
26836
  }
26808
26837
  function TableHeader({ children, className, ...props }) {
26809
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)($1910c06f0ca9905e$export$f850895b287ef28e, { ...props, className: (0, import_classnames23.default)(Table_default.header, className), children });
26838
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)($1910c06f0ca9905e$export$f850895b287ef28e, { ...props, className: (0, import_classnames24.default)(Table_default.header, className), children });
26810
26839
  }
26811
26840
  function TableBody({ children, className, ...props }) {
26812
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)($1910c06f0ca9905e$export$76ccd210b9029917, { ...props, className: (0, import_classnames23.default)(Table_default.body, className), children });
26841
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)($1910c06f0ca9905e$export$76ccd210b9029917, { ...props, className: (0, import_classnames24.default)(Table_default.body, className), children });
26813
26842
  }
26814
26843
  function TableRow({ children, className, ...props }) {
26815
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)($1910c06f0ca9905e$export$b59bdbef9ce70de2, { ...props, className: (0, import_classnames23.default)(Table_default.row, className), children });
26844
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)($1910c06f0ca9905e$export$b59bdbef9ce70de2, { ...props, className: (0, import_classnames24.default)(Table_default.row, className), children });
26816
26845
  }
26817
26846
  function TableColumn({ children, className, alignment, ...props }) {
26818
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
26847
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
26819
26848
  $1910c06f0ca9905e$export$816b5d811295e6bc,
26820
26849
  {
26821
26850
  ...props,
26822
- className: (0, import_classnames23.default)(Table_default.column, className, alignment && Table_default[alignment]),
26851
+ className: (0, import_classnames24.default)(Table_default.column, className, alignment && Table_default[alignment]),
26823
26852
  isRowHeader: true,
26824
26853
  children
26825
26854
  }
26826
26855
  );
26827
26856
  }
26828
26857
  function TableCell({ children, className, alignment, ...props }) {
26829
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)($1910c06f0ca9905e$export$f6f0c3fe4ec306ea, { ...props, className: (0, import_classnames23.default)(Table_default.cell, className, alignment && Table_default[alignment]), children });
26858
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)($1910c06f0ca9905e$export$f6f0c3fe4ec306ea, { ...props, className: (0, import_classnames24.default)(Table_default.cell, className, alignment && Table_default[alignment]), children });
26830
26859
  }
26831
26860
 
26832
26861
  // src/components/DataTable.module.css
@@ -26836,22 +26865,22 @@ var DataTable_default = {
26836
26865
  };
26837
26866
 
26838
26867
  // src/components/DataTable.tsx
26839
- var import_jsx_runtime29 = require("react/jsx-runtime");
26840
- var import_react162 = require("react");
26868
+ var import_jsx_runtime30 = require("react/jsx-runtime");
26869
+ var import_react163 = require("react");
26841
26870
  function DataTable({ data = [], className, children, ...props }) {
26842
- const columns = import_react161.Children.map(children, (child) => {
26871
+ const columns = import_react162.Children.map(children, (child) => {
26843
26872
  return { ...child.props, value: child.props.children };
26844
26873
  });
26845
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(Table, { ...props, className: (0, import_classnames24.default)(DataTable_default.datatable, className), children: [
26846
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(TableHeader, { children: columns.map(({ id, label, hidden, ...columnProps }) => {
26874
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(Table, { ...props, className: (0, import_classnames25.default)(DataTable_default.datatable, className), children: [
26875
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(TableHeader, { children: columns.map(({ id, label, hidden, ...columnProps }) => {
26847
26876
  if (hidden) {
26848
26877
  return null;
26849
26878
  }
26850
- return /* @__PURE__ */ (0, import_react162.createElement)(TableColumn, { ...columnProps, key: id, id }, label);
26879
+ return /* @__PURE__ */ (0, import_react163.createElement)(TableColumn, { ...columnProps, key: id, id }, label);
26851
26880
  }) }),
26852
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(TableBody, { items: data, children: (row) => {
26853
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(TableRow, { children: columns.map(({ id, value, className: className2, ...cellProps }) => {
26854
- return /* @__PURE__ */ (0, import_react162.createElement)(TableCell, { ...cellProps, key: id, className: (0, import_classnames24.default)(DataTable_default.cell, className2) }, !value && row[id], typeof value === "function" ? value(row, id) : value);
26881
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(TableBody, { items: data, children: (row) => {
26882
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(TableRow, { children: columns.map(({ id, value, className: className2, ...cellProps }) => {
26883
+ return /* @__PURE__ */ (0, import_react163.createElement)(TableCell, { ...cellProps, key: id, className: (0, import_classnames25.default)(DataTable_default.cell, className2) }, !value && row[id], typeof value === "function" ? value(row, id) : value);
26855
26884
  }) });
26856
26885
  } })
26857
26886
  ] });
@@ -26861,7 +26890,7 @@ function DataColumn(props) {
26861
26890
  }
26862
26891
 
26863
26892
  // src/components/Dots.tsx
26864
- var import_classnames25 = __toESM(require_classnames());
26893
+ var import_classnames26 = __toESM(require_classnames());
26865
26894
 
26866
26895
  // src/components/Dots.module.css
26867
26896
  var Dots_default = {
@@ -26871,17 +26900,17 @@ var Dots_default = {
26871
26900
  };
26872
26901
 
26873
26902
  // src/components/Dots.tsx
26874
- var import_jsx_runtime30 = require("react/jsx-runtime");
26903
+ var import_jsx_runtime31 = require("react/jsx-runtime");
26875
26904
  function Dots({ className, ...props }) {
26876
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { ...props, className: (0, import_classnames25.default)(Dots_default.dots, className), children: [
26877
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: Dots_default.dot }),
26878
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: Dots_default.dot }),
26879
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: Dots_default.dot })
26905
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { ...props, className: (0, import_classnames26.default)(Dots_default.dots, className), children: [
26906
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: Dots_default.dot }),
26907
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: Dots_default.dot }),
26908
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: Dots_default.dot })
26880
26909
  ] });
26881
26910
  }
26882
26911
 
26883
26912
  // src/components/Heading.tsx
26884
- var import_classnames26 = __toESM(require_classnames());
26913
+ var import_classnames27 = __toESM(require_classnames());
26885
26914
 
26886
26915
  // src/components/Heading.module.css
26887
26916
  var Heading_default = {
@@ -26898,22 +26927,22 @@ var Heading_default = {
26898
26927
  };
26899
26928
 
26900
26929
  // src/components/Heading.tsx
26901
- var import_jsx_runtime31 = require("react/jsx-runtime");
26930
+ var import_jsx_runtime32 = require("react/jsx-runtime");
26902
26931
  function Heading({ size = 5, className, children, asChild, ...props }) {
26903
26932
  const Component = asChild ? $5e63c961fc1ce211$export$8c6ed5c666ac1360 : "h1";
26904
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
26933
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
26905
26934
  Component,
26906
26935
  {
26907
26936
  ...props,
26908
- className: (0, import_classnames26.default)(Heading_default.heading, className, size && Heading_default[`size${size}`]),
26937
+ className: (0, import_classnames27.default)(Heading_default.heading, className, size && Heading_default[`size${size}`]),
26909
26938
  children
26910
26939
  }
26911
26940
  );
26912
26941
  }
26913
26942
 
26914
26943
  // src/components/InlineEditField.tsx
26915
- var import_react163 = require("react");
26916
- var import_classnames27 = __toESM(require_classnames());
26944
+ var import_react164 = require("react");
26945
+ var import_classnames28 = __toESM(require_classnames());
26917
26946
 
26918
26947
  // src/components/InlineEditField.module.css
26919
26948
  var InlineEditField_default = {
@@ -26922,7 +26951,7 @@ var InlineEditField_default = {
26922
26951
  };
26923
26952
 
26924
26953
  // src/components/InlineEditField.tsx
26925
- var import_jsx_runtime32 = require("react/jsx-runtime");
26954
+ var import_jsx_runtime33 = require("react/jsx-runtime");
26926
26955
  function InlineEditField({
26927
26956
  value: defaultValue = "",
26928
26957
  defaultEdit,
@@ -26933,8 +26962,8 @@ function InlineEditField({
26933
26962
  onCancel,
26934
26963
  ...props
26935
26964
  }) {
26936
- const [value, setValue] = (0, import_react163.useState)(defaultValue);
26937
- const [edit, setEdit] = (0, import_react163.useState)(defaultEdit);
26965
+ const [value, setValue] = (0, import_react164.useState)(defaultValue);
26966
+ const [edit, setEdit] = (0, import_react164.useState)(defaultEdit);
26938
26967
  const handleEdit = () => setEdit(true);
26939
26968
  const handleChange = (e) => {
26940
26969
  const val = e.target.value;
@@ -26945,7 +26974,7 @@ function InlineEditField({
26945
26974
  setEdit(false);
26946
26975
  onCommit?.(value);
26947
26976
  };
26948
- const handleCancel = (0, import_react163.useCallback)(() => {
26977
+ const handleCancel = (0, import_react164.useCallback)(() => {
26949
26978
  setEdit(false);
26950
26979
  setValue(defaultValue);
26951
26980
  onCancel?.();
@@ -26957,17 +26986,17 @@ function InlineEditField({
26957
26986
  handleCancel();
26958
26987
  }
26959
26988
  };
26960
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
26989
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
26961
26990
  "div",
26962
26991
  {
26963
26992
  "aria-label": "Edit",
26964
26993
  ...props,
26965
- className: (0, import_classnames27.default)(InlineEditField_default.edit, className),
26994
+ className: (0, import_classnames28.default)(InlineEditField_default.edit, className),
26966
26995
  onClick: handleEdit,
26967
26996
  children: [
26968
26997
  !edit && children,
26969
- !edit && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Icon, { className: InlineEditField_default.icon, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Icons.Edit, {}) }),
26970
- edit && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
26998
+ !edit && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Icon, { className: InlineEditField_default.icon, children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Icons.Edit, {}) }),
26999
+ edit && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
26971
27000
  TextField,
26972
27001
  {
26973
27002
  value,
@@ -26982,20 +27011,6 @@ function InlineEditField({
26982
27011
  );
26983
27012
  }
26984
27013
 
26985
- // src/components/Label.tsx
26986
- var import_classnames28 = __toESM(require_classnames());
26987
-
26988
- // src/components/Label.module.css
26989
- var Label_default = {
26990
- label: "Label_label"
26991
- };
26992
-
26993
- // src/components/Label.tsx
26994
- var import_jsx_runtime33 = require("react/jsx-runtime");
26995
- function Label({ asChild, className, ...props }) {
26996
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)($01b77f81d0f07f68$export$b04be29aa201d4f5, { ...props, className: (0, import_classnames28.default)(Label_default.label, className) });
26997
- }
26998
-
26999
27014
  // src/components/Loading.tsx
27000
27015
  var import_classnames29 = __toESM(require_classnames());
27001
27016
 
@@ -27081,7 +27096,8 @@ function Modal({ children, className, ...props }) {
27081
27096
  }
27082
27097
 
27083
27098
  // src/components/PasswordField.tsx
27084
- var import_react164 = require("react");
27099
+ var import_react165 = require("react");
27100
+ var import_classnames33 = __toESM(require_classnames());
27085
27101
 
27086
27102
  // src/components/PasswordField.module.css
27087
27103
  var PasswordField_default = {
@@ -27089,20 +27105,21 @@ var PasswordField_default = {
27089
27105
  };
27090
27106
 
27091
27107
  // src/components/PasswordField.tsx
27092
- var import_classnames33 = __toESM(require_classnames());
27093
27108
  var import_jsx_runtime38 = require("react/jsx-runtime");
27094
- function PasswordField({ label, ...props }) {
27095
- const [show, setShow] = (0, import_react164.useState)(false);
27096
- const type = show ? "text" : "password";
27097
- const handleShowPassword = () => setShow((state) => !state);
27098
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)($bcdf0525bf22703d$export$2c73285ae9390cec, { ...props, className: Input_default.field, children: [
27099
- label && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)($01b77f81d0f07f68$export$b04be29aa201d4f5, { className: Input_default.label, children: label }),
27100
- /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: Input_default.row, children: [
27101
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)($3985021b0ad6602f$export$f5b8910cec6cf069, { type, className: Input_default.input }),
27102
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Icon, { onClick: handleShowPassword, className: (0, import_classnames33.default)(PasswordField_default.icon, Input_default.icon), children: show ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Icons.EyeSlash, {}) : /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Icons.Eye, {}) })
27103
- ] })
27104
- ] });
27105
- }
27109
+ var PasswordField = (0, import_react165.forwardRef)(
27110
+ ({ label, className, ...props }, ref) => {
27111
+ const [show, setShow] = (0, import_react165.useState)(false);
27112
+ const type = show ? "text" : "password";
27113
+ const handleShowPassword = () => setShow((state) => !state);
27114
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)($bcdf0525bf22703d$export$2c73285ae9390cec, { ...props, ref, className: (0, import_classnames33.default)(Input_default.field, className), children: [
27115
+ label && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Label, { children: label }),
27116
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: Input_default.row, children: [
27117
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)($3985021b0ad6602f$export$f5b8910cec6cf069, { type, className: Input_default.input }),
27118
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Icon, { onClick: handleShowPassword, className: (0, import_classnames33.default)(PasswordField_default.icon, Input_default.icon), children: show ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Icons.EyeSlash, {}) : /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Icons.Eye, {}) })
27119
+ ] })
27120
+ ] });
27121
+ }
27122
+ );
27106
27123
 
27107
27124
  // src/components/Page.tsx
27108
27125
  var import_classnames34 = __toESM(require_classnames());
@@ -27179,6 +27196,7 @@ function ProgressCircle({ className, showValue, ...props }) {
27179
27196
  }
27180
27197
 
27181
27198
  // src/components/RadioGroup.tsx
27199
+ var import_react166 = require("react");
27182
27200
  var import_classnames37 = __toESM(require_classnames());
27183
27201
 
27184
27202
  // src/components/RadioGroup.module.css
@@ -27189,15 +27207,20 @@ var RadioGroup_default = {
27189
27207
 
27190
27208
  // src/components/RadioGroup.tsx
27191
27209
  var import_jsx_runtime42 = require("react/jsx-runtime");
27192
- function RadioGroup({ children, className, ...props }) {
27193
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)($b6c3ddc6086f204d$export$a98f0dcb43a68a25, { ...props, className: (0, import_classnames37.default)(RadioGroup_default.radiogroup, className), children });
27194
- }
27210
+ var RadioGroup = (0, import_react166.forwardRef)(
27211
+ ({ label, children, className, ...props }, ref) => {
27212
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)($b6c3ddc6086f204d$export$a98f0dcb43a68a25, { ...props, ref, className: (0, import_classnames37.default)(RadioGroup_default.radiogroup, className), children: [
27213
+ label && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Label, { children: label }),
27214
+ children
27215
+ ] });
27216
+ }
27217
+ );
27195
27218
  function Radio({ children, className, ...props }) {
27196
27219
  return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)($b6c3ddc6086f204d$export$d7b12c4107be0d61, { ...props, className: (0, import_classnames37.default)(RadioGroup_default.radio, className), children });
27197
27220
  }
27198
27221
 
27199
27222
  // src/components/SearchField.tsx
27200
- var import_react165 = require("react");
27223
+ var import_react167 = require("react");
27201
27224
  var import_classnames38 = __toESM(require_classnames());
27202
27225
 
27203
27226
  // src/components/SearchField.module.css
@@ -27209,41 +27232,54 @@ var SearchField_default = {
27209
27232
 
27210
27233
  // src/components/SearchField.tsx
27211
27234
  var import_jsx_runtime43 = require("react/jsx-runtime");
27212
- function SearchField({ value, delay = 0, onSearch, className, ...props }) {
27213
- const [search, setSearch] = (0, import_react165.useState)(value ?? "");
27214
- const searchValue = useDebounce(search, delay);
27215
- const handleChange = (e) => {
27216
- const { value: value2 } = e.target;
27217
- setSearch(value2);
27218
- if (delay === 0 || value2 === "") {
27219
- onSearch?.(value2);
27220
- }
27221
- };
27222
- const resetSearch = () => {
27223
- setSearch("");
27224
- onSearch?.("");
27225
- };
27226
- (0, import_react165.useEffect)(() => {
27227
- if (delay > 0) {
27228
- onSearch?.(searchValue);
27229
- }
27230
- }, [searchValue, delay, onSearch]);
27231
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)($440f4836bcb56932$export$b94867ecbd698f21, { ...props, className: (0, import_classnames38.default)(Input_default.field, className), children: ({ state }) => {
27232
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: Input_default.row, children: [
27233
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Icons.MagnifyingGlass, { className: (0, import_classnames38.default)(SearchField_default.search, Input_default.icon) }),
27234
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
27235
- $3985021b0ad6602f$export$f5b8910cec6cf069,
27236
- {
27237
- className: (0, import_classnames38.default)(SearchField_default.input, Input_default.input),
27238
- onChange: handleChange
27239
- }
27240
- ),
27241
- state.value && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)($d2b4bc8c273e7be6$export$353f5b6fc5456de1, { className: (0, import_classnames38.default)(SearchField_default.close, Input_default.icon), onPress: resetSearch, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Icon, { children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Icons.Close, {}) }) })
27242
- ] });
27243
- } });
27244
- }
27235
+ var SearchField = (0, import_react167.forwardRef)(
27236
+ ({ label, value, delay = 0, onSearch, className, ...props }, ref) => {
27237
+ const [search, setSearch] = (0, import_react167.useState)(value ?? "");
27238
+ const searchValue = useDebounce(search, delay);
27239
+ const handleChange = (e) => {
27240
+ const { value: value2 } = e.target;
27241
+ setSearch(value2);
27242
+ if (delay === 0 || value2 === "") {
27243
+ onSearch?.(value2);
27244
+ }
27245
+ };
27246
+ const resetSearch = () => {
27247
+ setSearch("");
27248
+ onSearch?.("");
27249
+ };
27250
+ (0, import_react167.useEffect)(() => {
27251
+ if (delay > 0) {
27252
+ onSearch?.(searchValue);
27253
+ }
27254
+ }, [searchValue, delay, onSearch]);
27255
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)($440f4836bcb56932$export$b94867ecbd698f21, { ...props, ref, className: (0, import_classnames38.default)(Input_default.field, className), children: ({ state }) => {
27256
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_jsx_runtime43.Fragment, { children: [
27257
+ label && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Label, { children: label }),
27258
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: Input_default.row, children: [
27259
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Icons.MagnifyingGlass, { className: (0, import_classnames38.default)(SearchField_default.search, Input_default.icon) }),
27260
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
27261
+ $3985021b0ad6602f$export$f5b8910cec6cf069,
27262
+ {
27263
+ className: (0, import_classnames38.default)(SearchField_default.input, Input_default.input),
27264
+ onChange: handleChange
27265
+ }
27266
+ ),
27267
+ state.value && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
27268
+ $d2b4bc8c273e7be6$export$353f5b6fc5456de1,
27269
+ {
27270
+ className: (0, import_classnames38.default)(SearchField_default.close, Input_default.icon),
27271
+ onPress: resetSearch,
27272
+ children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Icon, { children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Icons.Close, {}) })
27273
+ }
27274
+ )
27275
+ ] })
27276
+ ] });
27277
+ } });
27278
+ }
27279
+ );
27245
27280
 
27246
27281
  // src/components/Select.tsx
27282
+ var import_react168 = require("react");
27247
27283
  var import_classnames39 = __toESM(require_classnames());
27248
27284
 
27249
27285
  // src/components/Select.module.css
@@ -27256,46 +27292,49 @@ var Select_default = {
27256
27292
 
27257
27293
  // src/components/Select.tsx
27258
27294
  var import_jsx_runtime44 = require("react/jsx-runtime");
27259
- function Select({
27260
- children,
27261
- items = [],
27262
- value,
27263
- label,
27264
- className,
27265
- onSelectionChange,
27266
- onChange,
27267
- ...props
27268
- }) {
27269
- const handleChange = (e) => {
27270
- onSelectionChange?.(e);
27271
- onChange?.(e);
27272
- };
27273
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
27274
- $82d7e5349645de74$export$ef9b1a59e592288f,
27275
- {
27276
- ...props,
27277
- className: (0, import_classnames39.default)(Input_default.field, className),
27278
- onSelectionChange: handleChange,
27279
- children: [
27280
- label && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)($01b77f81d0f07f68$export$b04be29aa201d4f5, { className: Input_default.label, children: label }),
27281
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)($d2b4bc8c273e7be6$export$353f5b6fc5456de1, { className: (0, import_classnames39.default)(Input_default.input, className), children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(Row, { justifyContent: "space-between", gap: "md", children: [
27282
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)($82d7e5349645de74$export$e288731fd71264f0, {}),
27283
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Icon, { rotate: 90, size: "xs", className: Input_default.icon, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Icons.Chevron, {}) }) })
27284
- ] }) }),
27285
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Popover, { children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(List, { items, className: Select_default.list, children }) })
27286
- ]
27287
- }
27288
- );
27289
- }
27295
+ var Select = (0, import_react168.forwardRef)(
27296
+ ({
27297
+ children,
27298
+ items = [],
27299
+ value,
27300
+ label,
27301
+ className,
27302
+ onSelectionChange,
27303
+ onChange,
27304
+ ...props
27305
+ }, ref) => {
27306
+ const handleChange = (e) => {
27307
+ onSelectionChange?.(e);
27308
+ onChange?.(e);
27309
+ };
27310
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
27311
+ $82d7e5349645de74$export$ef9b1a59e592288f,
27312
+ {
27313
+ ...props,
27314
+ ref,
27315
+ className: (0, import_classnames39.default)(Input_default.field, className),
27316
+ onSelectionChange: handleChange,
27317
+ children: [
27318
+ label && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Label, { children: label }),
27319
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)($d2b4bc8c273e7be6$export$353f5b6fc5456de1, { className: (0, import_classnames39.default)(Input_default.input, className), children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(Row, { justifyContent: "space-between", gap: "md", children: [
27320
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)($82d7e5349645de74$export$e288731fd71264f0, {}),
27321
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Icon, { rotate: 90, size: "xs", className: Input_default.icon, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Icons.Chevron, {}) }) })
27322
+ ] }) }),
27323
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Popover, { children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(List, { items, className: Select_default.list, children }) })
27324
+ ]
27325
+ }
27326
+ );
27327
+ }
27328
+ );
27290
27329
 
27291
27330
  // src/components/Slider.tsx
27331
+ var import_react169 = require("react");
27292
27332
  var import_classnames40 = __toESM(require_classnames());
27293
27333
 
27294
27334
  // src/components/Slider.module.css
27295
27335
  var Slider_default = {
27296
27336
  slider: "Slider_slider",
27297
- label: "Slider_label",
27298
- output: "Slider_output",
27337
+ header: "Slider_header",
27299
27338
  track: "Slider_track",
27300
27339
  fill: "Slider_fill",
27301
27340
  thumb: "Slider_thumb"
@@ -27303,27 +27342,31 @@ var Slider_default = {
27303
27342
 
27304
27343
  // src/components/Slider.tsx
27305
27344
  var import_jsx_runtime45 = require("react/jsx-runtime");
27306
- function Slider({ className, showValue = true, label, ...props }) {
27307
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)($6f909507e6374d18$export$472062a354075cee, { ...props, className: (0, import_classnames40.default)(Slider_default.slider, className), children: [
27308
- label && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Label, { className: Slider_default.label, children: label }),
27309
- showValue && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)($6f909507e6374d18$export$a590f758a961cb5b, { className: Slider_default.output }),
27310
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)($6f909507e6374d18$export$105594979f116971, { className: Slider_default.track, children: ({ state }) => {
27311
- const isHorizontal = state.orientation === "horizontal";
27312
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_jsx_runtime45.Fragment, { children: [
27313
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
27314
- "div",
27315
- {
27316
- className: Slider_default.fill,
27317
- style: {
27318
- [isHorizontal ? "width" : "height"]: (isHorizontal ? state.getThumbPercent(0) : 1 - state.getThumbPercent(0)) * 100 + "%"
27345
+ var Slider = (0, import_react169.forwardRef)(
27346
+ ({ className, showValue = true, label, ...props }, ref) => {
27347
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)($6f909507e6374d18$export$472062a354075cee, { ...props, ref, className: (0, import_classnames40.default)(Slider_default.slider, className), children: [
27348
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: Slider_default.header, children: [
27349
+ label && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Label, { className: Slider_default.label, children: label }),
27350
+ showValue && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)($6f909507e6374d18$export$a590f758a961cb5b, { className: Slider_default.output })
27351
+ ] }),
27352
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)($6f909507e6374d18$export$105594979f116971, { className: Slider_default.track, children: ({ state }) => {
27353
+ const isHorizontal = state.orientation === "horizontal";
27354
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_jsx_runtime45.Fragment, { children: [
27355
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
27356
+ "div",
27357
+ {
27358
+ className: Slider_default.fill,
27359
+ style: {
27360
+ [isHorizontal ? "width" : "height"]: (isHorizontal ? state.getThumbPercent(0) : 1 - state.getThumbPercent(0)) * 100 + "%"
27361
+ }
27319
27362
  }
27320
- }
27321
- ),
27322
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)($6f909507e6374d18$export$2c1b491743890dec, { className: Slider_default.thumb })
27323
- ] });
27324
- } })
27325
- ] });
27326
- }
27363
+ ),
27364
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)($6f909507e6374d18$export$2c1b491743890dec, { className: Slider_default.thumb })
27365
+ ] });
27366
+ } })
27367
+ ] });
27368
+ }
27369
+ );
27327
27370
 
27328
27371
  // src/components/StatusLight.tsx
27329
27372
  var import_classnames41 = __toESM(require_classnames());
@@ -27357,6 +27400,7 @@ function StatusLight(props) {
27357
27400
  }
27358
27401
 
27359
27402
  // src/components/Switch.tsx
27403
+ var import_react170 = require("react");
27360
27404
  var import_classnames42 = __toESM(require_classnames());
27361
27405
 
27362
27406
  // src/components/Switch.module.css
@@ -27368,12 +27412,27 @@ var Switch_default = {
27368
27412
 
27369
27413
  // src/components/Switch.tsx
27370
27414
  var import_jsx_runtime47 = require("react/jsx-runtime");
27371
- function Switch({ children, className, ...props }) {
27372
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)($8e59e948500a8fe1$export$b5d5cf8927ab7262, { ...props, className: (0, import_classnames42.default)(Switch_default.switch, className), children: [
27373
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: Switch_default.track, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: Switch_default.knob }) }),
27374
- children
27375
- ] });
27376
- }
27415
+ var Switch = (0, import_react170.forwardRef)(
27416
+ ({ label, children, className, ...props }, ref) => {
27417
+ const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
27418
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_jsx_runtime47.Fragment, { children: [
27419
+ label && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Label, { children: label }),
27420
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
27421
+ $8e59e948500a8fe1$export$b5d5cf8927ab7262,
27422
+ {
27423
+ ...props,
27424
+ isSelected,
27425
+ ref,
27426
+ className: (0, import_classnames42.default)(Switch_default.switch, className),
27427
+ children: [
27428
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: Switch_default.track, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: Switch_default.knob }) }),
27429
+ children
27430
+ ]
27431
+ }
27432
+ )
27433
+ ] });
27434
+ }
27435
+ );
27377
27436
 
27378
27437
  // src/components/Tabs.module.css
27379
27438
  var Tabs_default = {
@@ -27415,25 +27474,34 @@ function TextOverflow({ asChild, children, className, ...props }) {
27415
27474
  }
27416
27475
 
27417
27476
  // src/components/TextArea.tsx
27477
+ var import_react171 = require("react");
27418
27478
  var import_classnames44 = __toESM(require_classnames());
27419
27479
 
27420
27480
  // src/components/TextArea.module.css
27421
27481
  var TextArea_default = {
27422
27482
  textarea: "TextArea_textarea",
27423
- none: "TextArea_none",
27424
- horizontal: "TextArea_horizontal",
27425
- vertical: "TextArea_vertical"
27483
+ "resize-none": "TextArea_resize-none",
27484
+ "resize-horizontal": "TextArea_resize-horizontal",
27485
+ "resize-vertical": "TextArea_resize-vertical"
27426
27486
  };
27427
27487
 
27428
27488
  // src/components/TextArea.tsx
27429
27489
  var import_jsx_runtime50 = require("react/jsx-runtime");
27430
- function TextArea({ resize, className, ...props }) {
27431
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(TextField, { ...props, className: (0, import_classnames44.default)(resize && TextArea_default[resize]), asTextArea: true });
27432
- }
27490
+ var TextArea = (0, import_react171.forwardRef)(({ resize, className, ...props }, ref) => {
27491
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
27492
+ TextField,
27493
+ {
27494
+ ...props,
27495
+ ref,
27496
+ className: (0, import_classnames44.default)(resize && TextArea_default[`resize-${resize}`]),
27497
+ asTextArea: true
27498
+ }
27499
+ );
27500
+ });
27433
27501
 
27434
27502
  // src/components/Toast.tsx
27435
27503
  var import_classnames45 = __toESM(require_classnames());
27436
- var import_react167 = require("react");
27504
+ var import_react173 = require("react");
27437
27505
 
27438
27506
  // node_modules/@radix-ui/react-toast/dist/index.mjs
27439
27507
  var React18 = __toESM(require("react"), 1);
@@ -27466,7 +27534,7 @@ function useComposedRefs(...refs) {
27466
27534
  }
27467
27535
 
27468
27536
  // node_modules/@radix-ui/react-toast/node_modules/@radix-ui/react-collection/dist/index.mjs
27469
- var import_react166 = __toESM(require("react"), 1);
27537
+ var import_react172 = __toESM(require("react"), 1);
27470
27538
 
27471
27539
  // node_modules/@radix-ui/react-toast/node_modules/@radix-ui/react-context/dist/index.mjs
27472
27540
  var React6 = __toESM(require("react"), 1);
@@ -27618,13 +27686,13 @@ function createCollection(name) {
27618
27686
  );
27619
27687
  const CollectionProvider = (props) => {
27620
27688
  const { scope, children } = props;
27621
- const ref = import_react166.default.useRef(null);
27622
- const itemMap = import_react166.default.useRef(/* @__PURE__ */ new Map()).current;
27689
+ const ref = import_react172.default.useRef(null);
27690
+ const itemMap = import_react172.default.useRef(/* @__PURE__ */ new Map()).current;
27623
27691
  return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });
27624
27692
  };
27625
27693
  CollectionProvider.displayName = PROVIDER_NAME2;
27626
27694
  const COLLECTION_SLOT_NAME = name + "CollectionSlot";
27627
- const CollectionSlot = import_react166.default.forwardRef(
27695
+ const CollectionSlot = import_react172.default.forwardRef(
27628
27696
  (props, forwardedRef) => {
27629
27697
  const { scope, children } = props;
27630
27698
  const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);
@@ -27635,13 +27703,13 @@ function createCollection(name) {
27635
27703
  CollectionSlot.displayName = COLLECTION_SLOT_NAME;
27636
27704
  const ITEM_SLOT_NAME = name + "CollectionItemSlot";
27637
27705
  const ITEM_DATA_ATTR = "data-radix-collection-item";
27638
- const CollectionItemSlot = import_react166.default.forwardRef(
27706
+ const CollectionItemSlot = import_react172.default.forwardRef(
27639
27707
  (props, forwardedRef) => {
27640
27708
  const { scope, children, ...itemData } = props;
27641
- const ref = import_react166.default.useRef(null);
27709
+ const ref = import_react172.default.useRef(null);
27642
27710
  const composedRefs = useComposedRefs(forwardedRef, ref);
27643
27711
  const context = useCollectionContext(ITEM_SLOT_NAME, scope);
27644
- import_react166.default.useEffect(() => {
27712
+ import_react172.default.useEffect(() => {
27645
27713
  context.itemMap.set(ref, { ref, ...itemData });
27646
27714
  return () => void context.itemMap.delete(ref);
27647
27715
  });
@@ -27651,7 +27719,7 @@ function createCollection(name) {
27651
27719
  CollectionItemSlot.displayName = ITEM_SLOT_NAME;
27652
27720
  function useCollection2(scope) {
27653
27721
  const context = useCollectionContext(name + "CollectionConsumer", scope);
27654
- const getItems = import_react166.default.useCallback(() => {
27722
+ const getItems = import_react172.default.useCallback(() => {
27655
27723
  const collectionNode = context.collectionRef.current;
27656
27724
  if (!collectionNode) return [];
27657
27725
  const orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));
@@ -28782,7 +28850,7 @@ var Toast_default = {
28782
28850
 
28783
28851
  // src/components/Toast.tsx
28784
28852
  var import_jsx_runtime59 = require("react/jsx-runtime");
28785
- var import_react168 = require("react");
28853
+ var import_react174 = require("react");
28786
28854
  var icons = {
28787
28855
  info: Icons.Info,
28788
28856
  error: Icons.Alert
@@ -28798,7 +28866,7 @@ function Toast2({
28798
28866
  ...props
28799
28867
  }) {
28800
28868
  return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(Root2, { ...props, className: (0, import_classnames45.default)(Toast_default.toast, className, variant && Toast_default[variant]), children: [
28801
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Icon, { className: Toast_default.icon, size: "md", children: variant && (0, import_react167.createElement)(icons[variant]) }),
28869
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Icon, { className: Toast_default.icon, size: "md", children: variant && (0, import_react173.createElement)(icons[variant]) }),
28802
28870
  title && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(ToastTitle, { className: Toast_default.title, children: title }),
28803
28871
  description && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(ToastDescription, { className: Toast_default.description, children: description }),
28804
28872
  children && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(ToastAction, { className: Toast_default.action, altText: actionText || "Action", asChild: true, children }),
@@ -28809,13 +28877,14 @@ function Toaster(props) {
28809
28877
  const { toasts } = useToast();
28810
28878
  return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_jsx_runtime59.Fragment, { children: [
28811
28879
  toasts.map(({ id, message, props: props2 }) => {
28812
- return /* @__PURE__ */ (0, import_react168.createElement)(Toast2, { ...props2, key: id, description: message });
28880
+ return /* @__PURE__ */ (0, import_react174.createElement)(Toast2, { ...props2, key: id, description: message });
28813
28881
  }),
28814
28882
  /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Viewport, { className: Toast_default.viewport, ...props })
28815
28883
  ] });
28816
28884
  }
28817
28885
 
28818
28886
  // src/components/Toggle.tsx
28887
+ var import_react175 = require("react");
28819
28888
  var import_classnames46 = __toESM(require_classnames());
28820
28889
 
28821
28890
  // src/components/Toggle.module.css
@@ -28825,18 +28894,33 @@ var Toggle_default = {
28825
28894
 
28826
28895
  // src/components/Toggle.tsx
28827
28896
  var import_jsx_runtime60 = require("react/jsx-runtime");
28828
- function Toggle({ children, className, ...props }) {
28829
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)($efde0372d7a700fe$export$d2b052e7b4be1756, { ...props, className: (0, import_classnames46.default)(Toggle_default.toggle, className), children });
28830
- }
28897
+ var Toggle = (0, import_react175.forwardRef)(
28898
+ ({ label, children, className, ...props }, ref) => {
28899
+ const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
28900
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_jsx_runtime60.Fragment, { children: [
28901
+ label && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Label, { children: label }),
28902
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
28903
+ $efde0372d7a700fe$export$d2b052e7b4be1756,
28904
+ {
28905
+ ...props,
28906
+ ref,
28907
+ isSelected,
28908
+ className: (0, import_classnames46.default)(Toggle_default.toggle, className),
28909
+ children
28910
+ }
28911
+ )
28912
+ ] });
28913
+ }
28914
+ );
28831
28915
 
28832
28916
  // src/components/ToggleGroup.tsx
28833
28917
  var import_classnames47 = __toESM(require_classnames());
28834
28918
 
28835
28919
  // node_modules/@radix-ui/react-toggle-group/dist/index.mjs
28836
- var import_react171 = __toESM(require("react"), 1);
28920
+ var import_react178 = __toESM(require("react"), 1);
28837
28921
 
28838
28922
  // node_modules/@radix-ui/react-roving-focus/dist/index.mjs
28839
- var import_react169 = require("react");
28923
+ var import_react176 = require("react");
28840
28924
  var $d7bdfb9eb0fdf311$var$ENTRY_FOCUS = "rovingFocusGroup.onEntryFocus";
28841
28925
  var $d7bdfb9eb0fdf311$var$EVENT_OPTIONS = {
28842
28926
  bubbles: false,
@@ -28848,18 +28932,18 @@ var [$d7bdfb9eb0fdf311$var$createRovingFocusGroupContext, $d7bdfb9eb0fdf311$expo
28848
28932
  $d7bdfb9eb0fdf311$var$createCollectionScope
28849
28933
  ]);
28850
28934
  var [$d7bdfb9eb0fdf311$var$RovingFocusProvider, $d7bdfb9eb0fdf311$var$useRovingFocusContext] = $d7bdfb9eb0fdf311$var$createRovingFocusGroupContext($d7bdfb9eb0fdf311$var$GROUP_NAME);
28851
- var $d7bdfb9eb0fdf311$export$8699f7c8af148338 = /* @__PURE__ */ (0, import_react169.forwardRef)((props, forwardedRef) => {
28852
- return /* @__PURE__ */ (0, import_react169.createElement)($d7bdfb9eb0fdf311$var$Collection.Provider, {
28935
+ var $d7bdfb9eb0fdf311$export$8699f7c8af148338 = /* @__PURE__ */ (0, import_react176.forwardRef)((props, forwardedRef) => {
28936
+ return /* @__PURE__ */ (0, import_react176.createElement)($d7bdfb9eb0fdf311$var$Collection.Provider, {
28853
28937
  scope: props.__scopeRovingFocusGroup
28854
- }, /* @__PURE__ */ (0, import_react169.createElement)($d7bdfb9eb0fdf311$var$Collection.Slot, {
28938
+ }, /* @__PURE__ */ (0, import_react176.createElement)($d7bdfb9eb0fdf311$var$Collection.Slot, {
28855
28939
  scope: props.__scopeRovingFocusGroup
28856
- }, /* @__PURE__ */ (0, import_react169.createElement)($d7bdfb9eb0fdf311$var$RovingFocusGroupImpl, _extends({}, props, {
28940
+ }, /* @__PURE__ */ (0, import_react176.createElement)($d7bdfb9eb0fdf311$var$RovingFocusGroupImpl, _extends({}, props, {
28857
28941
  ref: forwardedRef
28858
28942
  }))));
28859
28943
  });
28860
- var $d7bdfb9eb0fdf311$var$RovingFocusGroupImpl = /* @__PURE__ */ (0, import_react169.forwardRef)((props, forwardedRef) => {
28944
+ var $d7bdfb9eb0fdf311$var$RovingFocusGroupImpl = /* @__PURE__ */ (0, import_react176.forwardRef)((props, forwardedRef) => {
28861
28945
  const { __scopeRovingFocusGroup, orientation, loop = false, dir, currentTabStopId: currentTabStopIdProp, defaultCurrentTabStopId, onCurrentTabStopIdChange, onEntryFocus, ...groupProps } = props;
28862
- const ref = (0, import_react169.useRef)(null);
28946
+ const ref = (0, import_react176.useRef)(null);
28863
28947
  const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, ref);
28864
28948
  const direction = $f631663db3294ace$export$b39126d51d94e6f3(dir);
28865
28949
  const [currentTabStopId = null, setCurrentTabStopId] = $71cd76cc60e0454e$export$6f32135080cb4c3({
@@ -28867,12 +28951,12 @@ var $d7bdfb9eb0fdf311$var$RovingFocusGroupImpl = /* @__PURE__ */ (0, import_reac
28867
28951
  defaultProp: defaultCurrentTabStopId,
28868
28952
  onChange: onCurrentTabStopIdChange
28869
28953
  });
28870
- const [isTabbingBackOut, setIsTabbingBackOut] = (0, import_react169.useState)(false);
28954
+ const [isTabbingBackOut, setIsTabbingBackOut] = (0, import_react176.useState)(false);
28871
28955
  const handleEntryFocus = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onEntryFocus);
28872
28956
  const getItems = $d7bdfb9eb0fdf311$var$useCollection(__scopeRovingFocusGroup);
28873
- const isClickFocusRef = (0, import_react169.useRef)(false);
28874
- const [focusableItemsCount, setFocusableItemsCount] = (0, import_react169.useState)(0);
28875
- (0, import_react169.useEffect)(() => {
28957
+ const isClickFocusRef = (0, import_react176.useRef)(false);
28958
+ const [focusableItemsCount, setFocusableItemsCount] = (0, import_react176.useState)(0);
28959
+ (0, import_react176.useEffect)(() => {
28876
28960
  const node = ref.current;
28877
28961
  if (node) {
28878
28962
  node.addEventListener($d7bdfb9eb0fdf311$var$ENTRY_FOCUS, handleEntryFocus);
@@ -28881,35 +28965,35 @@ var $d7bdfb9eb0fdf311$var$RovingFocusGroupImpl = /* @__PURE__ */ (0, import_reac
28881
28965
  }, [
28882
28966
  handleEntryFocus
28883
28967
  ]);
28884
- return /* @__PURE__ */ (0, import_react169.createElement)($d7bdfb9eb0fdf311$var$RovingFocusProvider, {
28968
+ return /* @__PURE__ */ (0, import_react176.createElement)($d7bdfb9eb0fdf311$var$RovingFocusProvider, {
28885
28969
  scope: __scopeRovingFocusGroup,
28886
28970
  orientation,
28887
28971
  dir: direction,
28888
28972
  loop,
28889
28973
  currentTabStopId,
28890
- onItemFocus: (0, import_react169.useCallback)(
28974
+ onItemFocus: (0, import_react176.useCallback)(
28891
28975
  (tabStopId) => setCurrentTabStopId(tabStopId),
28892
28976
  [
28893
28977
  setCurrentTabStopId
28894
28978
  ]
28895
28979
  ),
28896
- onItemShiftTab: (0, import_react169.useCallback)(
28980
+ onItemShiftTab: (0, import_react176.useCallback)(
28897
28981
  () => setIsTabbingBackOut(true),
28898
28982
  []
28899
28983
  ),
28900
- onFocusableItemAdd: (0, import_react169.useCallback)(
28984
+ onFocusableItemAdd: (0, import_react176.useCallback)(
28901
28985
  () => setFocusableItemsCount(
28902
28986
  (prevCount) => prevCount + 1
28903
28987
  ),
28904
28988
  []
28905
28989
  ),
28906
- onFocusableItemRemove: (0, import_react169.useCallback)(
28990
+ onFocusableItemRemove: (0, import_react176.useCallback)(
28907
28991
  () => setFocusableItemsCount(
28908
28992
  (prevCount) => prevCount - 1
28909
28993
  ),
28910
28994
  []
28911
28995
  )
28912
- }, /* @__PURE__ */ (0, import_react169.createElement)($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
28996
+ }, /* @__PURE__ */ (0, import_react176.createElement)($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
28913
28997
  tabIndex: isTabbingBackOut || focusableItemsCount === 0 ? -1 : 0,
28914
28998
  "data-orientation": orientation
28915
28999
  }, groupProps, {
@@ -28956,7 +29040,7 @@ var $d7bdfb9eb0fdf311$var$RovingFocusGroupImpl = /* @__PURE__ */ (0, import_reac
28956
29040
  })));
28957
29041
  });
28958
29042
  var $d7bdfb9eb0fdf311$var$ITEM_NAME = "RovingFocusGroupItem";
28959
- var $d7bdfb9eb0fdf311$export$ab9df7c53fe8454 = /* @__PURE__ */ (0, import_react169.forwardRef)((props, forwardedRef) => {
29043
+ var $d7bdfb9eb0fdf311$export$ab9df7c53fe8454 = /* @__PURE__ */ (0, import_react176.forwardRef)((props, forwardedRef) => {
28960
29044
  const { __scopeRovingFocusGroup, focusable = true, active = false, tabStopId, ...itemProps } = props;
28961
29045
  const autoId = $1746a345f3d73bb7$export$f680877a34711e37();
28962
29046
  const id = tabStopId || autoId;
@@ -28964,7 +29048,7 @@ var $d7bdfb9eb0fdf311$export$ab9df7c53fe8454 = /* @__PURE__ */ (0, import_react1
28964
29048
  const isCurrentTabStop = context.currentTabStopId === id;
28965
29049
  const getItems = $d7bdfb9eb0fdf311$var$useCollection(__scopeRovingFocusGroup);
28966
29050
  const { onFocusableItemAdd, onFocusableItemRemove } = context;
28967
- (0, import_react169.useEffect)(() => {
29051
+ (0, import_react176.useEffect)(() => {
28968
29052
  if (focusable) {
28969
29053
  onFocusableItemAdd();
28970
29054
  return () => onFocusableItemRemove();
@@ -28974,12 +29058,12 @@ var $d7bdfb9eb0fdf311$export$ab9df7c53fe8454 = /* @__PURE__ */ (0, import_react1
28974
29058
  onFocusableItemAdd,
28975
29059
  onFocusableItemRemove
28976
29060
  ]);
28977
- return /* @__PURE__ */ (0, import_react169.createElement)($d7bdfb9eb0fdf311$var$Collection.ItemSlot, {
29061
+ return /* @__PURE__ */ (0, import_react176.createElement)($d7bdfb9eb0fdf311$var$Collection.ItemSlot, {
28978
29062
  scope: __scopeRovingFocusGroup,
28979
29063
  id,
28980
29064
  focusable,
28981
29065
  active
28982
- }, /* @__PURE__ */ (0, import_react169.createElement)($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends({
29066
+ }, /* @__PURE__ */ (0, import_react176.createElement)($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends({
28983
29067
  tabIndex: isCurrentTabStop ? 0 : -1,
28984
29068
  "data-orientation": context.orientation
28985
29069
  }, itemProps, {
@@ -29063,15 +29147,15 @@ var $d7bdfb9eb0fdf311$export$be92b6f5f03c0fe9 = $d7bdfb9eb0fdf311$export$8699f7c
29063
29147
  var $d7bdfb9eb0fdf311$export$6d08773d2e66f8f2 = $d7bdfb9eb0fdf311$export$ab9df7c53fe8454;
29064
29148
 
29065
29149
  // node_modules/@radix-ui/react-toggle/dist/index.mjs
29066
- var import_react170 = require("react");
29067
- var $b3bbe2732c13b576$export$bea8ebba691c5813 = /* @__PURE__ */ (0, import_react170.forwardRef)((props, forwardedRef) => {
29150
+ var import_react177 = require("react");
29151
+ var $b3bbe2732c13b576$export$bea8ebba691c5813 = /* @__PURE__ */ (0, import_react177.forwardRef)((props, forwardedRef) => {
29068
29152
  const { pressed: pressedProp, defaultPressed = false, onPressedChange, ...buttonProps } = props;
29069
29153
  const [pressed = false, setPressed] = $71cd76cc60e0454e$export$6f32135080cb4c3({
29070
29154
  prop: pressedProp,
29071
29155
  onChange: onPressedChange,
29072
29156
  defaultProp: defaultPressed
29073
29157
  });
29074
- return /* @__PURE__ */ (0, import_react170.createElement)($8927f6f2acc4f386$export$250ffa63cdc0d034.button, _extends({
29158
+ return /* @__PURE__ */ (0, import_react177.createElement)($8927f6f2acc4f386$export$250ffa63cdc0d034.button, _extends({
29075
29159
  type: "button",
29076
29160
  "aria-pressed": pressed,
29077
29161
  "data-state": pressed ? "on" : "off",
@@ -29090,24 +29174,24 @@ var [$6c1fd9e6a8969628$var$createToggleGroupContext, $6c1fd9e6a8969628$export$d1
29090
29174
  $d7bdfb9eb0fdf311$export$c7109489551a4f4
29091
29175
  ]);
29092
29176
  var $6c1fd9e6a8969628$var$useRovingFocusGroupScope = $d7bdfb9eb0fdf311$export$c7109489551a4f4();
29093
- var $6c1fd9e6a8969628$export$af3ec21f6cfb5e30 = /* @__PURE__ */ import_react171.default.forwardRef((props, forwardedRef) => {
29177
+ var $6c1fd9e6a8969628$export$af3ec21f6cfb5e30 = /* @__PURE__ */ import_react178.default.forwardRef((props, forwardedRef) => {
29094
29178
  const { type, ...toggleGroupProps } = props;
29095
29179
  if (type === "single") {
29096
29180
  const singleProps = toggleGroupProps;
29097
- return /* @__PURE__ */ import_react171.default.createElement($6c1fd9e6a8969628$var$ToggleGroupImplSingle, _extends({}, singleProps, {
29181
+ return /* @__PURE__ */ import_react178.default.createElement($6c1fd9e6a8969628$var$ToggleGroupImplSingle, _extends({}, singleProps, {
29098
29182
  ref: forwardedRef
29099
29183
  }));
29100
29184
  }
29101
29185
  if (type === "multiple") {
29102
29186
  const multipleProps = toggleGroupProps;
29103
- return /* @__PURE__ */ import_react171.default.createElement($6c1fd9e6a8969628$var$ToggleGroupImplMultiple, _extends({}, multipleProps, {
29187
+ return /* @__PURE__ */ import_react178.default.createElement($6c1fd9e6a8969628$var$ToggleGroupImplMultiple, _extends({}, multipleProps, {
29104
29188
  ref: forwardedRef
29105
29189
  }));
29106
29190
  }
29107
29191
  throw new Error(`Missing prop \`type\` expected on \`${$6c1fd9e6a8969628$var$TOGGLE_GROUP_NAME}\``);
29108
29192
  });
29109
29193
  var [$6c1fd9e6a8969628$var$ToggleGroupValueProvider, $6c1fd9e6a8969628$var$useToggleGroupValueContext] = $6c1fd9e6a8969628$var$createToggleGroupContext($6c1fd9e6a8969628$var$TOGGLE_GROUP_NAME);
29110
- var $6c1fd9e6a8969628$var$ToggleGroupImplSingle = /* @__PURE__ */ import_react171.default.forwardRef((props, forwardedRef) => {
29194
+ var $6c1fd9e6a8969628$var$ToggleGroupImplSingle = /* @__PURE__ */ import_react178.default.forwardRef((props, forwardedRef) => {
29111
29195
  const { value: valueProp, defaultValue, onValueChange = () => {
29112
29196
  }, ...toggleGroupSingleProps } = props;
29113
29197
  const [value, setValue] = $71cd76cc60e0454e$export$6f32135080cb4c3({
@@ -29115,24 +29199,24 @@ var $6c1fd9e6a8969628$var$ToggleGroupImplSingle = /* @__PURE__ */ import_react17
29115
29199
  defaultProp: defaultValue,
29116
29200
  onChange: onValueChange
29117
29201
  });
29118
- return /* @__PURE__ */ import_react171.default.createElement($6c1fd9e6a8969628$var$ToggleGroupValueProvider, {
29202
+ return /* @__PURE__ */ import_react178.default.createElement($6c1fd9e6a8969628$var$ToggleGroupValueProvider, {
29119
29203
  scope: props.__scopeToggleGroup,
29120
29204
  type: "single",
29121
29205
  value: value ? [
29122
29206
  value
29123
29207
  ] : [],
29124
29208
  onItemActivate: setValue,
29125
- onItemDeactivate: import_react171.default.useCallback(
29209
+ onItemDeactivate: import_react178.default.useCallback(
29126
29210
  () => setValue(""),
29127
29211
  [
29128
29212
  setValue
29129
29213
  ]
29130
29214
  )
29131
- }, /* @__PURE__ */ import_react171.default.createElement($6c1fd9e6a8969628$var$ToggleGroupImpl, _extends({}, toggleGroupSingleProps, {
29215
+ }, /* @__PURE__ */ import_react178.default.createElement($6c1fd9e6a8969628$var$ToggleGroupImpl, _extends({}, toggleGroupSingleProps, {
29132
29216
  ref: forwardedRef
29133
29217
  })));
29134
29218
  });
29135
- var $6c1fd9e6a8969628$var$ToggleGroupImplMultiple = /* @__PURE__ */ import_react171.default.forwardRef((props, forwardedRef) => {
29219
+ var $6c1fd9e6a8969628$var$ToggleGroupImplMultiple = /* @__PURE__ */ import_react178.default.forwardRef((props, forwardedRef) => {
29136
29220
  const { value: valueProp, defaultValue, onValueChange = () => {
29137
29221
  }, ...toggleGroupMultipleProps } = props;
29138
29222
  const [value1 = [], setValue] = $71cd76cc60e0454e$export$6f32135080cb4c3({
@@ -29140,7 +29224,7 @@ var $6c1fd9e6a8969628$var$ToggleGroupImplMultiple = /* @__PURE__ */ import_react
29140
29224
  defaultProp: defaultValue,
29141
29225
  onChange: onValueChange
29142
29226
  });
29143
- const handleButtonActivate = import_react171.default.useCallback(
29227
+ const handleButtonActivate = import_react178.default.useCallback(
29144
29228
  (itemValue) => setValue(
29145
29229
  (prevValue = []) => [
29146
29230
  ...prevValue,
@@ -29151,7 +29235,7 @@ var $6c1fd9e6a8969628$var$ToggleGroupImplMultiple = /* @__PURE__ */ import_react
29151
29235
  setValue
29152
29236
  ]
29153
29237
  );
29154
- const handleButtonDeactivate = import_react171.default.useCallback(
29238
+ const handleButtonDeactivate = import_react178.default.useCallback(
29155
29239
  (itemValue) => setValue(
29156
29240
  (prevValue = []) => prevValue.filter(
29157
29241
  (value) => value !== itemValue
@@ -29161,18 +29245,18 @@ var $6c1fd9e6a8969628$var$ToggleGroupImplMultiple = /* @__PURE__ */ import_react
29161
29245
  setValue
29162
29246
  ]
29163
29247
  );
29164
- return /* @__PURE__ */ import_react171.default.createElement($6c1fd9e6a8969628$var$ToggleGroupValueProvider, {
29248
+ return /* @__PURE__ */ import_react178.default.createElement($6c1fd9e6a8969628$var$ToggleGroupValueProvider, {
29165
29249
  scope: props.__scopeToggleGroup,
29166
29250
  type: "multiple",
29167
29251
  value: value1,
29168
29252
  onItemActivate: handleButtonActivate,
29169
29253
  onItemDeactivate: handleButtonDeactivate
29170
- }, /* @__PURE__ */ import_react171.default.createElement($6c1fd9e6a8969628$var$ToggleGroupImpl, _extends({}, toggleGroupMultipleProps, {
29254
+ }, /* @__PURE__ */ import_react178.default.createElement($6c1fd9e6a8969628$var$ToggleGroupImpl, _extends({}, toggleGroupMultipleProps, {
29171
29255
  ref: forwardedRef
29172
29256
  })));
29173
29257
  });
29174
29258
  var [$6c1fd9e6a8969628$var$ToggleGroupContext, $6c1fd9e6a8969628$var$useToggleGroupContext] = $6c1fd9e6a8969628$var$createToggleGroupContext($6c1fd9e6a8969628$var$TOGGLE_GROUP_NAME);
29175
- var $6c1fd9e6a8969628$var$ToggleGroupImpl = /* @__PURE__ */ import_react171.default.forwardRef((props, forwardedRef) => {
29259
+ var $6c1fd9e6a8969628$var$ToggleGroupImpl = /* @__PURE__ */ import_react178.default.forwardRef((props, forwardedRef) => {
29176
29260
  const { __scopeToggleGroup, disabled = false, rovingFocus = true, orientation, dir, loop = true, ...toggleGroupProps } = props;
29177
29261
  const rovingFocusGroupScope = $6c1fd9e6a8969628$var$useRovingFocusGroupScope(__scopeToggleGroup);
29178
29262
  const direction = $f631663db3294ace$export$b39126d51d94e6f3(dir);
@@ -29181,24 +29265,24 @@ var $6c1fd9e6a8969628$var$ToggleGroupImpl = /* @__PURE__ */ import_react171.defa
29181
29265
  dir: direction,
29182
29266
  ...toggleGroupProps
29183
29267
  };
29184
- return /* @__PURE__ */ import_react171.default.createElement($6c1fd9e6a8969628$var$ToggleGroupContext, {
29268
+ return /* @__PURE__ */ import_react178.default.createElement($6c1fd9e6a8969628$var$ToggleGroupContext, {
29185
29269
  scope: __scopeToggleGroup,
29186
29270
  rovingFocus,
29187
29271
  disabled
29188
- }, rovingFocus ? /* @__PURE__ */ import_react171.default.createElement($d7bdfb9eb0fdf311$export$be92b6f5f03c0fe9, _extends({
29272
+ }, rovingFocus ? /* @__PURE__ */ import_react178.default.createElement($d7bdfb9eb0fdf311$export$be92b6f5f03c0fe9, _extends({
29189
29273
  asChild: true
29190
29274
  }, rovingFocusGroupScope, {
29191
29275
  orientation,
29192
29276
  dir: direction,
29193
29277
  loop
29194
- }), /* @__PURE__ */ import_react171.default.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({}, commonProps, {
29278
+ }), /* @__PURE__ */ import_react178.default.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({}, commonProps, {
29195
29279
  ref: forwardedRef
29196
- }))) : /* @__PURE__ */ import_react171.default.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({}, commonProps, {
29280
+ }))) : /* @__PURE__ */ import_react178.default.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({}, commonProps, {
29197
29281
  ref: forwardedRef
29198
29282
  })));
29199
29283
  });
29200
29284
  var $6c1fd9e6a8969628$var$ITEM_NAME = "ToggleGroupItem";
29201
- var $6c1fd9e6a8969628$export$b453109e13abe10b = /* @__PURE__ */ import_react171.default.forwardRef((props, forwardedRef) => {
29285
+ var $6c1fd9e6a8969628$export$b453109e13abe10b = /* @__PURE__ */ import_react178.default.forwardRef((props, forwardedRef) => {
29202
29286
  const valueContext = $6c1fd9e6a8969628$var$useToggleGroupValueContext($6c1fd9e6a8969628$var$ITEM_NAME, props.__scopeToggleGroup);
29203
29287
  const context = $6c1fd9e6a8969628$var$useToggleGroupContext($6c1fd9e6a8969628$var$ITEM_NAME, props.__scopeToggleGroup);
29204
29288
  const rovingFocusGroupScope = $6c1fd9e6a8969628$var$useRovingFocusGroupScope(props.__scopeToggleGroup);
@@ -29209,20 +29293,20 @@ var $6c1fd9e6a8969628$export$b453109e13abe10b = /* @__PURE__ */ import_react171.
29209
29293
  pressed,
29210
29294
  disabled
29211
29295
  };
29212
- const ref = import_react171.default.useRef(null);
29213
- return context.rovingFocus ? /* @__PURE__ */ import_react171.default.createElement($d7bdfb9eb0fdf311$export$6d08773d2e66f8f2, _extends({
29296
+ const ref = import_react178.default.useRef(null);
29297
+ return context.rovingFocus ? /* @__PURE__ */ import_react178.default.createElement($d7bdfb9eb0fdf311$export$6d08773d2e66f8f2, _extends({
29214
29298
  asChild: true
29215
29299
  }, rovingFocusGroupScope, {
29216
29300
  focusable: !disabled,
29217
29301
  active: pressed,
29218
29302
  ref
29219
- }), /* @__PURE__ */ import_react171.default.createElement($6c1fd9e6a8969628$var$ToggleGroupItemImpl, _extends({}, commonProps, {
29303
+ }), /* @__PURE__ */ import_react178.default.createElement($6c1fd9e6a8969628$var$ToggleGroupItemImpl, _extends({}, commonProps, {
29220
29304
  ref: forwardedRef
29221
- }))) : /* @__PURE__ */ import_react171.default.createElement($6c1fd9e6a8969628$var$ToggleGroupItemImpl, _extends({}, commonProps, {
29305
+ }))) : /* @__PURE__ */ import_react178.default.createElement($6c1fd9e6a8969628$var$ToggleGroupItemImpl, _extends({}, commonProps, {
29222
29306
  ref: forwardedRef
29223
29307
  }));
29224
29308
  });
29225
- var $6c1fd9e6a8969628$var$ToggleGroupItemImpl = /* @__PURE__ */ import_react171.default.forwardRef((props, forwardedRef) => {
29309
+ var $6c1fd9e6a8969628$var$ToggleGroupItemImpl = /* @__PURE__ */ import_react178.default.forwardRef((props, forwardedRef) => {
29226
29310
  const { __scopeToggleGroup, value, ...itemProps } = props;
29227
29311
  const valueContext = $6c1fd9e6a8969628$var$useToggleGroupValueContext($6c1fd9e6a8969628$var$ITEM_NAME, __scopeToggleGroup);
29228
29312
  const singleProps = {
@@ -29231,7 +29315,7 @@ var $6c1fd9e6a8969628$var$ToggleGroupItemImpl = /* @__PURE__ */ import_react171.
29231
29315
  "aria-pressed": void 0
29232
29316
  };
29233
29317
  const typeProps = valueContext.type === "single" ? singleProps : void 0;
29234
- return /* @__PURE__ */ import_react171.default.createElement($b3bbe2732c13b576$export$bea8ebba691c5813, _extends({}, typeProps, itemProps, {
29318
+ return /* @__PURE__ */ import_react178.default.createElement($b3bbe2732c13b576$export$bea8ebba691c5813, _extends({}, typeProps, itemProps, {
29235
29319
  ref: forwardedRef,
29236
29320
  onPressedChange: (pressed) => {
29237
29321
  if (pressed) valueContext.onItemActivate(value);
@@ -29303,17 +29387,6 @@ classnames/index.js:
29303
29387
  http://jedwatson.github.io/classnames
29304
29388
  *)
29305
29389
 
29306
- use-sync-external-store/cjs/use-sync-external-store-shim.development.js:
29307
- (**
29308
- * @license React
29309
- * use-sync-external-store-shim.development.js
29310
- *
29311
- * Copyright (c) Facebook, Inc. and its affiliates.
29312
- *
29313
- * This source code is licensed under the MIT license found in the
29314
- * LICENSE file in the root directory of this source tree.
29315
- *)
29316
-
29317
29390
  use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js:
29318
29391
  (**
29319
29392
  * @license React