@fuf-stack/uniform 1.22.3 → 1.22.4
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/RadioBoxes/index.d.cts +1 -1
- package/dist/RadioBoxes/index.d.ts +1 -1
- package/dist/Radios/index.d.cts +1 -1
- package/dist/Radios/index.d.ts +1 -1
- package/dist/Select/index.d.cts +1 -1
- package/dist/Select/index.d.ts +1 -1
- package/dist/Slider/index.d.cts +1 -1
- package/dist/Slider/index.d.ts +1 -1
- package/dist/Switch/index.d.cts +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Time/index.d.cts +1 -1
- package/dist/Time/index.d.ts +1 -1
- package/dist/hooks/useFormContext/index.d.cts +1 -1
- package/dist/hooks/useFormContext/index.d.ts +1 -1
- package/dist/hooks/useUniformField/index.d.cts +1 -1
- package/dist/hooks/useUniformField/index.d.ts +1 -1
- package/dist/hooks/useUniformFieldArray/index.cjs +4 -4
- package/dist/hooks/useUniformFieldArray/index.cjs.map +1 -1
- package/dist/hooks/useUniformFieldArray/index.d.cts +1 -1
- package/dist/hooks/useUniformFieldArray/index.d.ts +1 -1
- package/dist/hooks/useUniformFieldArray/index.js +4 -4
- package/dist/hooks/useUniformFieldArray/index.js.map +1 -1
- package/dist/{index-BE4OAqJ2.d.cts → index-7UT2Ki5e.d.cts} +4 -4
- package/dist/{index-BE4OAqJ2.d.cts.map → index-7UT2Ki5e.d.cts.map} +1 -1
- package/dist/{index-Bgo2Dr6X.d.cts → index-9_3XTDJC.d.cts} +4 -4
- package/dist/{index-Bgo2Dr6X.d.cts.map → index-9_3XTDJC.d.cts.map} +1 -1
- package/dist/{index-C6DBVs7t.d.ts → index-B7gQppgQ.d.ts} +4 -4
- package/dist/{index-C6DBVs7t.d.ts.map → index-B7gQppgQ.d.ts.map} +1 -1
- package/dist/{index-DMOhTl4I.d.cts → index-Bzs7_gnk.d.cts} +4 -4
- package/dist/{index-DMOhTl4I.d.cts.map → index-Bzs7_gnk.d.cts.map} +1 -1
- package/dist/{index-GqydEAFk.d.ts → index-C4GJH8Xv.d.ts} +7 -7
- package/dist/{index-GqydEAFk.d.ts.map → index-C4GJH8Xv.d.ts.map} +1 -1
- package/dist/{index-B4jKGy-P.d.ts → index-CE8fnXuQ.d.ts} +4 -4
- package/dist/{index-B4jKGy-P.d.ts.map → index-CE8fnXuQ.d.ts.map} +1 -1
- package/dist/{index-CbQ8Ft4o.d.ts → index-C_zjtsGM.d.ts} +4 -4
- package/dist/{index-CbQ8Ft4o.d.ts.map → index-C_zjtsGM.d.ts.map} +1 -1
- package/dist/{index-CSRKNes5.d.cts → index-D8udSkgA.d.cts} +4 -4
- package/dist/{index-CSRKNes5.d.cts.map → index-D8udSkgA.d.cts.map} +1 -1
- package/dist/{index-BvbHkoH5.d.cts → index-DNADTCoc.d.cts} +7 -7
- package/dist/{index-BvbHkoH5.d.cts.map → index-DNADTCoc.d.cts.map} +1 -1
- package/dist/{index-BMEKfOWp.d.ts → index-GxTY7aAc.d.ts} +4 -4
- package/dist/{index-BMEKfOWp.d.ts.map → index-GxTY7aAc.d.ts.map} +1 -1
- package/dist/{index-Q3BWGyUO.d.cts → index-QgVr4iWX.d.cts} +4 -4
- package/dist/{index-Q3BWGyUO.d.cts.map → index-QgVr4iWX.d.cts.map} +1 -1
- package/dist/{index-Cz4JaCWd.d.ts → index-dgho7gpc.d.ts} +4 -4
- package/dist/{index-Cz4JaCWd.d.ts.map → index-dgho7gpc.d.ts.map} +1 -1
- package/dist/index.d.cts +9 -9
- package/dist/index.d.ts +9 -9
- package/dist/{useFormContext-Bj1gXLt_.d.ts → useFormContext-CpLVpNAf.d.ts} +3 -3
- package/dist/{useFormContext-Bj1gXLt_.d.ts.map → useFormContext-CpLVpNAf.d.ts.map} +1 -1
- package/dist/{useFormContext-M94eQfHm.d.cts → useFormContext-Ddc1HWKv.d.cts} +3 -3
- package/dist/{useFormContext-M94eQfHm.d.cts.map → useFormContext-Ddc1HWKv.d.cts.map} +1 -1
- package/dist/{useUniformField-BE-e3C4Y.d.cts → useUniformField-CmAYcGER.d.cts} +2 -2
- package/dist/{useUniformField-BE-e3C4Y.d.cts.map → useUniformField-CmAYcGER.d.cts.map} +1 -1
- package/dist/{useUniformField-DUW-svZD.d.ts → useUniformField-DJDpQzRo.d.ts} +2 -2
- package/dist/{useUniformField-DUW-svZD.d.ts.map → useUniformField-DJDpQzRo.d.ts.map} +1 -1
- package/dist/{useUniformFieldArray-kkOHxNFF.d.cts → useUniformFieldArray-D3fdzwzD.d.cts} +2 -2
- package/dist/{useUniformFieldArray-kkOHxNFF.d.cts.map → useUniformFieldArray-D3fdzwzD.d.cts.map} +1 -1
- package/dist/{useUniformFieldArray-CdWv1SEk.d.ts → useUniformFieldArray-zGcIhwhF.d.ts} +2 -2
- package/dist/{useUniformFieldArray-CdWv1SEk.d.ts.map → useUniformFieldArray-zGcIhwhF.d.ts.map} +1 -1
- package/package.json +2 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as RadioBoxes, r as RadioBoxesProps, t as radioBoxVariants } from "../index-
|
|
1
|
+
import { n as RadioBoxes, r as RadioBoxesProps, t as radioBoxVariants } from "../index-9_3XTDJC.cjs";
|
|
2
2
|
export { RadioBoxes, RadioBoxes as default, type RadioBoxesProps, radioBoxVariants };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as RadioBoxes, r as RadioBoxesProps, t as radioBoxVariants } from "../index-
|
|
1
|
+
import { n as RadioBoxes, r as RadioBoxesProps, t as radioBoxVariants } from "../index-GxTY7aAc.js";
|
|
2
2
|
export { RadioBoxes, RadioBoxes as default, type RadioBoxesProps, radioBoxVariants };
|
package/dist/Radios/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as RadiosProps, t as Radios } from "../index-
|
|
1
|
+
import { n as RadiosProps, t as Radios } from "../index-QgVr4iWX.cjs";
|
|
2
2
|
export { Radios, Radios as default, type RadiosProps };
|
package/dist/Radios/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as RadiosProps, t as Radios } from "../index-
|
|
1
|
+
import { n as RadiosProps, t as Radios } from "../index-dgho7gpc.js";
|
|
2
2
|
export { Radios, Radios as default, type RadiosProps };
|
package/dist/Select/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as SelectProps, t as Select } from "../index-
|
|
1
|
+
import { n as SelectProps, t as Select } from "../index-DNADTCoc.cjs";
|
|
2
2
|
export { Select, Select as default, type SelectProps };
|
package/dist/Select/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as SelectProps, t as Select } from "../index-
|
|
1
|
+
import { n as SelectProps, t as Select } from "../index-C4GJH8Xv.js";
|
|
2
2
|
export { Select, Select as default, type SelectProps };
|
package/dist/Slider/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as SliderProps, t as Slider } from "../index-
|
|
1
|
+
import { n as SliderProps, t as Slider } from "../index-D8udSkgA.cjs";
|
|
2
2
|
export { Slider, Slider as default, type SliderProps };
|
package/dist/Slider/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as SliderProps, t as Slider } from "../index-
|
|
1
|
+
import { n as SliderProps, t as Slider } from "../index-CE8fnXuQ.js";
|
|
2
2
|
export { Slider, Slider as default, type SliderProps };
|
package/dist/Switch/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as SwitchProps, t as Switch } from "../index-
|
|
1
|
+
import { n as SwitchProps, t as Switch } from "../index-Bzs7_gnk.cjs";
|
|
2
2
|
export { Switch, Switch as default, type SwitchProps };
|
package/dist/Switch/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as SwitchProps, t as Switch } from "../index-
|
|
1
|
+
import { n as SwitchProps, t as Switch } from "../index-B7gQppgQ.js";
|
|
2
2
|
export { Switch, Switch as default, type SwitchProps };
|
package/dist/Time/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as TimeProps, t as Time } from "../index-
|
|
1
|
+
import { n as TimeProps, t as Time } from "../index-7UT2Ki5e.cjs";
|
|
2
2
|
export { Time, type TimeProps };
|
package/dist/Time/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as TimeProps, t as Time } from "../index-
|
|
1
|
+
import { n as TimeProps, t as Time } from "../index-C_zjtsGM.js";
|
|
2
2
|
export { Time, type TimeProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as useFormContext, t as checkFieldIsRequired } from "../../useFormContext-
|
|
1
|
+
import { n as useFormContext, t as checkFieldIsRequired } from "../../useFormContext-Ddc1HWKv.cjs";
|
|
2
2
|
export { checkFieldIsRequired, useFormContext };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as useFormContext, t as checkFieldIsRequired } from "../../useFormContext-
|
|
1
|
+
import { n as useFormContext, t as checkFieldIsRequired } from "../../useFormContext-CpLVpNAf.js";
|
|
2
2
|
export { checkFieldIsRequired, useFormContext };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as UseUniformFieldReturn, r as useUniformField, t as UseUniformFieldParams } from "../../useUniformField-
|
|
1
|
+
import { n as UseUniformFieldReturn, r as useUniformField, t as UseUniformFieldParams } from "../../useUniformField-CmAYcGER.cjs";
|
|
2
2
|
export { UseUniformFieldParams, UseUniformFieldReturn, useUniformField };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as UseUniformFieldReturn, r as useUniformField, t as UseUniformFieldParams } from "../../useUniformField-
|
|
1
|
+
import { n as UseUniformFieldReturn, r as useUniformField, t as UseUniformFieldParams } from "../../useUniformField-DJDpQzRo.js";
|
|
2
2
|
export { UseUniformFieldParams, UseUniformFieldReturn, useUniformField };
|
|
@@ -56,17 +56,17 @@ const useUniformFieldArray = ({ name, flat = false, elementInitialValue: _elemen
|
|
|
56
56
|
return flat ? { [require_helpers_index.flatArrayKey]: _elementInitialValue ?? null } : _elementInitialValue ?? {};
|
|
57
57
|
}, [flat, _elementInitialValue]);
|
|
58
58
|
require_hooks_useWatchFormReset_index.useWatchFormReset({ onReset: () => {
|
|
59
|
-
if (!lastElementNotRemovable) return;
|
|
60
59
|
const currentValue = getValues(name);
|
|
61
60
|
const valueIsArray = Array.isArray(currentValue);
|
|
62
61
|
const arrayValue = valueIsArray ? currentValue : [];
|
|
63
|
-
const
|
|
62
|
+
const normalizedLength = lastElementNotRemovable ? 1 : 0;
|
|
63
|
+
const alreadyNormalized = valueIsArray && arrayValue.length === normalizedLength;
|
|
64
64
|
if (!(!valueIsArray || arrayValue.length === 0 || arrayValue.every((entry) => {
|
|
65
65
|
return require_helpers_index.isValueEmpty(entry);
|
|
66
66
|
}))) return;
|
|
67
|
-
if (
|
|
67
|
+
if (alreadyNormalized) return;
|
|
68
68
|
setDisableAnimation(true);
|
|
69
|
-
replace([elementInitialValue]);
|
|
69
|
+
replace(lastElementNotRemovable ? [elementInitialValue] : []);
|
|
70
70
|
if (!prefersReducedMotion) setTimeout(() => {
|
|
71
71
|
setDisableAnimation(false);
|
|
72
72
|
}, 1);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":["useUniformField","useFormContext","flatArrayKey","isValueEmpty"],"sources":["../../../src/hooks/useUniformFieldArray/useUniformFieldArray.ts","../../../src/hooks/useUniformFieldArray/index.ts"],"sourcesContent":["import type { ReactNode } from 'react';\nimport type { ArrayPath, FieldValues, Path } from 'react-hook-form';\n\nimport { useEffect, useMemo, useRef, useState } from 'react';\nimport { useFieldArray as useRHFFieldArray } from 'react-hook-form';\n\nimport { useReducedMotion } from '@fuf-stack/pixel-motion';\n\nimport { flatArrayKey, isValueEmpty } from '../../helpers';\nimport { useFormContext } from '../useFormContext';\nimport { useUniformField } from '../useUniformField';\nimport { useWatchFormReset } from '../useWatchFormReset';\n\nexport interface UseUniformFieldArrayProps<\n TFieldValues extends FieldValues = FieldValues,\n> {\n /** Field name for the array */\n name: ArrayPath<TFieldValues>;\n /** Whether this is a flat array (array of primitives) */\n flat?: boolean;\n /** Initial value for new array elements */\n elementInitialValue?: unknown;\n /** Whether the last element cannot be removed (always maintain at least one element) */\n lastElementNotRemovable?: boolean;\n /** Disable the field */\n disabled?: boolean;\n /** Optional explicit test id used to build stable test ids */\n testId?: string;\n /** Optional label content */\n label?: ReactNode;\n}\n\n/**\n * Enhanced useFieldArray hook with initialization and animation logic.\n * Based on React Hook Form's useFieldArray with additional features:\n * - Automatic initialization when lastElementNotRemovable is set\n * - Reset-only normalization for stale empty placeholder rows (via useWatchFormReset)\n * - Animation control (disabled during initialization)\n * - Temporary animation disable during reset normalization collapse\n * - Support for flat arrays (arrays of primitives)\n *\n * Note: Automatic validation triggering on length change is disabled to prevent\n * triggering form-wide validation. Array validation still runs on form submission.\n *\n * @see https://react-hook-form.com/docs/usefieldarray\n */\nexport const useUniformFieldArray = <\n TFieldValues extends FieldValues = FieldValues,\n>({\n name,\n flat = false,\n elementInitialValue: _elementInitialValue = null,\n lastElementNotRemovable = false,\n disabled,\n testId: explicitTestId,\n label,\n}: UseUniformFieldArrayProps<TFieldValues>) => {\n // Get uniform field state and utilities\n const uniformField = useUniformField<TFieldValues>({\n name: name as Path<TFieldValues> & string,\n disabled,\n testId: explicitTestId,\n label,\n });\n\n const { control } = uniformField;\n\n const { fields, append, remove, insert, move, replace } = useRHFFieldArray({\n control,\n name,\n });\n\n const { trigger, setValue, getValues } = useFormContext<TFieldValues>();\n\n // Determine if initialization is needed (initially or after reset).\n // lastElementNotRemovable is purely a minimum-count guarantee: when there are\n // no rows, add one. This handles both:\n // - Initial mount: fields.length starts at 0\n // - Form reset to an empty array: fields.length becomes 0 again\n // It intentionally does NOT inspect row contents, so manually added empty rows\n // are never collapsed.\n const needsInitialize = useMemo(() => {\n return lastElementNotRemovable && fields.length === 0;\n }, [lastElementNotRemovable, fields.length]);\n\n // Track whether initialization has completed. Initialized contextually:\n // - If initialization IS needed (needsInitialize = true): starts as false, set to true after init\n // - If initialization is NOT needed (needsInitialize = false): starts as true (already initialized)\n // This ref is used to:\n // 1. Skip validation during initialization/re-initialization\n // 2. Gate animation enabling until after initialization\n // 3. Gate motion preference effect until after initialization\n const hasInitialized = useRef(!needsInitialize);\n\n // Reset initialization flag when needsInitialize changes to true.\n // This handles form reset: when fields become empty (needsInitialize becomes true),\n // hasInitialized is reset to false, triggering re-initialization in the effect below.\n useEffect(() => {\n if (needsInitialize) {\n hasInitialized.current = false;\n }\n }, [needsInitialize]);\n\n // Validate array-level constraints (min/max items) when length changes.\n // This ensures min/max errors appear instantly when user adds/removes items.\n // Note: Child field validation also runs, but new empty fields won't show as invalid\n // because useFormContext only sets invalid=true for touched fields or after form submission.\n // Skip validation during initialization/re-initialization to avoid showing errors prematurely.\n useEffect(() => {\n if (hasInitialized.current) {\n setTimeout(() => {\n trigger(name as Path<TFieldValues>);\n }, 200);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [fields.length]);\n\n // Animation control: Start with animations disabled to prevent animating in initial elements.\n // Will be enabled after initialization completes (unless user prefers reduced motion).\n const [disableAnimation, setDisableAnimation] = useState(true);\n\n // Respond to user's motion preference changes (after initialization).\n // During initialization, animations stay disabled regardless of preference.\n const prefersReducedMotion = useReducedMotion();\n useEffect(() => {\n if (hasInitialized.current) {\n setDisableAnimation(!!prefersReducedMotion);\n }\n }, [prefersReducedMotion]);\n\n // Prepare initial element value based on mode\n // - flat=true: arrays of primitives → object with flatArrayKey and null value by default\n // - flat=false: arrays of objects → empty object by default\n const elementInitialValue = useMemo(() => {\n return flat\n ? { [flatArrayKey]: _elementInitialValue ?? null }\n : (_elementInitialValue ?? {});\n }, [flat, _elementInitialValue]);\n\n // Reset normalization:\n // Run ONLY when an actual form reset is emitted (via useWatchFormReset), not\n // on regular field edits. This does not collapse rows users add manually.\n //\n // Why this exists:\n // RHF can keep stale field-array rows after reset when array defaults are\n // missing (e.g. value becomes undefined or [null, null] while UI still has\n // multiple rows). For lastElementNotRemovable arrays we normalize that state\n // back to exactly one empty row.\n useWatchFormReset({\n onReset: () => {\n // This normalization is only relevant for min-one arrays.\n if (!lastElementNotRemovable) {\n return;\n }\n\n const currentValue = getValues(name as Path<TFieldValues>) as unknown;\n const valueIsArray = Array.isArray(currentValue);\n const arrayValue = valueIsArray ? (currentValue as unknown[]) : [];\n const hasSingleRow = valueIsArray && arrayValue.length === 1;\n\n // Treat these as \"effectively empty after reset\":\n // - value missing/not-array\n // - empty array\n // - array where all entries are empty placeholders\n const isEffectivelyEmptyAfterReset =\n !valueIsArray ||\n arrayValue.length === 0 ||\n arrayValue.every((entry) => {\n return isValueEmpty(entry);\n });\n\n // Nothing to fix when the reset restored real values (e.g. from defaults).\n if (!isEffectivelyEmptyAfterReset) {\n return;\n }\n\n // Already normalized: exactly one row remains.\n if (hasSingleRow) {\n return;\n }\n\n // Avoid collapse animation flicker during reset normalization.\n setDisableAnimation(true);\n\n // use replace so the RHF field-array length actually collapses to one row\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n replace([elementInitialValue] as any);\n\n // Restore normal animation state right after normalization.\n if (!prefersReducedMotion) {\n setTimeout(() => {\n setDisableAnimation(false);\n }, 1);\n }\n },\n });\n\n // Initialization/Re-initialization: add one element only when array length is 0.\n // This is the min-count behavior for lastElementNotRemovable and is intentionally\n // separate from reset normalization above.\n //\n // Reset behavior in this hook is split into two phases:\n // 1) Reset normalization (useWatchFormReset): collapse stale placeholder rows\n // left by reset edge cases.\n // 2) Length-based initialization (this effect): ensure a min-one array when\n // the field array is truly empty.\n // CRITICAL: This effect MUST be the LAST hook in this component.\n // It sets hasInitialized.current = true, which acts as a gate for other effects.\n // If this runs before other effects, hasInitialized will be true during their first run,\n // causing them to execute logic meant only for post-initialization (e.g., validation,\n // animation enabling). By placing this last, all other effects run first with\n // hasInitialized = false, allowing them to skip initialization-phase logic.\n useEffect(\n () => {\n if (needsInitialize) {\n // use setValue instead of append to avoid focusing the added element\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n setValue(name as Path<TFieldValues>, [elementInitialValue] as any, {\n shouldDirty: false,\n shouldTouch: false,\n });\n\n // Mark initialization as complete\n hasInitialized.current = true;\n\n // Enable animations after a brief delay (unless user prefers reduced motion or animations are already enabled).\n // This only runs on initial mount when animations start disabled.\n // On reset, disableAnimation is typically false, so this setTimeout won't run and animations stay enabled.\n if (!prefersReducedMotion && disableAnimation) {\n setTimeout(() => {\n setDisableAnimation(false);\n }, 1);\n }\n }\n },\n // Run when needsInitialize changes (initial mount or reset)\n // needsInitialize is memoized based on fields.length and lastElementNotRemovable\n // Other dependencies are intentionally omitted:\n // - append, setValue, trigger, setDisableAnimation are stable refs/functions\n // - elementInitialValue, name, flat, prefersReducedMotion, disableAnimation are props/stable values\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [needsInitialize],\n );\n\n return {\n // Field array methods and state\n fields,\n append,\n remove,\n insert,\n move,\n disableAnimation,\n elementInitialValue,\n // Uniform field state and utilities (spread all)\n ...uniformField,\n };\n};\n","/* v8 ignore start */\n\nexport * from './useUniformFieldArray';\n\n/* v8 ignore stop */\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AA8CA,MAAa,wBAEX,EACA,MACA,OAAO,OACP,qBAAqB,uBAAuB,MAC5C,0BAA0B,OAC1B,UACA,QAAQ,gBACR,YAC6C;CAE7C,MAAM,eAAeA,oCAAAA,gBAA8B;EAC3C;EACN;EACA,QAAQ;EACR;CACF,CAAC;CAED,MAAM,EAAE,YAAY;CAEpB,MAAM,EAAE,QAAQ,QAAQ,QAAQ,QAAQ,MAAM,aAAA,GAAA,gBAAA,eAA6B;EACzE;EACA;CACF,CAAC;CAED,MAAM,EAAE,SAAS,UAAU,cAAcC,uBAAAA,eAA6B;CAStE,MAAM,mBAAA,GAAA,MAAA,eAAgC;EACpC,OAAO,2BAA2B,OAAO,WAAW;CACtD,GAAG,CAAC,yBAAyB,OAAO,MAAM,CAAC;CAS3C,MAAM,kBAAA,GAAA,MAAA,QAAwB,CAAC,eAAe;CAK9C,CAAA,GAAA,MAAA,iBAAgB;EACd,IAAI,iBACF,eAAe,UAAU;CAE7B,GAAG,CAAC,eAAe,CAAC;CAOpB,CAAA,GAAA,MAAA,iBAAgB;EACd,IAAI,eAAe,SACjB,iBAAiB;GACf,QAAQ,IAA0B;EACpC,GAAG,GAAG;CAGV,GAAG,CAAC,OAAO,MAAM,CAAC;CAIlB,MAAM,CAAC,kBAAkB,wBAAA,GAAA,MAAA,UAAgC,IAAI;CAI7D,MAAM,wBAAA,GAAA,wBAAA,kBAAwC;CAC9C,CAAA,GAAA,MAAA,iBAAgB;EACd,IAAI,eAAe,SACjB,oBAAoB,CAAC,CAAC,oBAAoB;CAE9C,GAAG,CAAC,oBAAoB,CAAC;CAKzB,MAAM,uBAAA,GAAA,MAAA,eAAoC;EACxC,OAAO,OACH,GAAGC,sBAAAA,eAAe,wBAAwB,KAAK,IAC9C,wBAAwB,CAAC;CAChC,GAAG,CAAC,MAAM,oBAAoB,CAAC;CAW/B,sCAAA,kBAAkB,EAChB,eAAe;EAEb,IAAI,CAAC,yBACH;EAGF,MAAM,eAAe,UAAU,IAA0B;EACzD,MAAM,eAAe,MAAM,QAAQ,YAAY;EAC/C,MAAM,aAAa,eAAgB,eAA6B,CAAC;EACjE,MAAM,eAAe,gBAAgB,WAAW,WAAW;EAc3D,IAAI,EAPF,CAAC,gBACD,WAAW,WAAW,KACtB,WAAW,OAAO,UAAU;GAC1B,OAAOC,sBAAAA,aAAa,KAAK;EAC3B,CAAC,IAID;EAIF,IAAI,cACF;EAIF,oBAAoB,IAAI;EAIxB,QAAQ,CAAC,mBAAmB,CAAQ;EAGpC,IAAI,CAAC,sBACH,iBAAiB;GACf,oBAAoB,KAAK;EAC3B,GAAG,CAAC;CAER,EACF,CAAC;CAiBD,CAAA,GAAA,MAAA,iBACQ;EACJ,IAAI,iBAAiB;GAGnB,SAAS,MAA4B,CAAC,mBAAmB,GAAU;IACjE,aAAa;IACb,aAAa;GACf,CAAC;GAGD,eAAe,UAAU;GAKzB,IAAI,CAAC,wBAAwB,kBAC3B,iBAAiB;IACf,oBAAoB,KAAK;GAC3B,GAAG,CAAC;EAER;CACF,GAOA,CAAC,eAAe,CAClB;CAEA,OAAO;EAEL;EACA;EACA;EACA;EACA;EACA;EACA;EAEA,GAAG;CACL;AACF"}
|
|
1
|
+
{"version":3,"file":"index.cjs","names":["useUniformField","useFormContext","flatArrayKey","isValueEmpty"],"sources":["../../../src/hooks/useUniformFieldArray/useUniformFieldArray.ts","../../../src/hooks/useUniformFieldArray/index.ts"],"sourcesContent":["import type { ReactNode } from 'react';\nimport type { ArrayPath, FieldValues, Path } from 'react-hook-form';\n\nimport { useEffect, useMemo, useRef, useState } from 'react';\nimport { useFieldArray as useRHFFieldArray } from 'react-hook-form';\n\nimport { useReducedMotion } from '@fuf-stack/pixel-motion';\n\nimport { flatArrayKey, isValueEmpty } from '../../helpers';\nimport { useFormContext } from '../useFormContext';\nimport { useUniformField } from '../useUniformField';\nimport { useWatchFormReset } from '../useWatchFormReset';\n\nexport interface UseUniformFieldArrayProps<\n TFieldValues extends FieldValues = FieldValues,\n> {\n /** Field name for the array */\n name: ArrayPath<TFieldValues>;\n /** Whether this is a flat array (array of primitives) */\n flat?: boolean;\n /** Initial value for new array elements */\n elementInitialValue?: unknown;\n /** Whether the last element cannot be removed (always maintain at least one element) */\n lastElementNotRemovable?: boolean;\n /** Disable the field */\n disabled?: boolean;\n /** Optional explicit test id used to build stable test ids */\n testId?: string;\n /** Optional label content */\n label?: ReactNode;\n}\n\n/**\n * Enhanced useFieldArray hook with initialization and animation logic.\n * Based on React Hook Form's useFieldArray with additional features:\n * - Automatic initialization when lastElementNotRemovable is set\n * - Reset-only normalization for stale empty placeholder rows (via useWatchFormReset)\n * - Animation control (disabled during initialization)\n * - Temporary animation disable during reset normalization collapse\n * - Support for flat arrays (arrays of primitives)\n *\n * Note: Automatic validation triggering on length change is disabled to prevent\n * triggering form-wide validation. Array validation still runs on form submission.\n *\n * @see https://react-hook-form.com/docs/usefieldarray\n */\nexport const useUniformFieldArray = <\n TFieldValues extends FieldValues = FieldValues,\n>({\n name,\n flat = false,\n elementInitialValue: _elementInitialValue = null,\n lastElementNotRemovable = false,\n disabled,\n testId: explicitTestId,\n label,\n}: UseUniformFieldArrayProps<TFieldValues>) => {\n // Get uniform field state and utilities\n const uniformField = useUniformField<TFieldValues>({\n name: name as Path<TFieldValues> & string,\n disabled,\n testId: explicitTestId,\n label,\n });\n\n const { control } = uniformField;\n\n const { fields, append, remove, insert, move, replace } = useRHFFieldArray({\n control,\n name,\n });\n\n const { trigger, setValue, getValues } = useFormContext<TFieldValues>();\n\n // Determine if initialization is needed (initially or after reset).\n // lastElementNotRemovable is purely a minimum-count guarantee: when there are\n // no rows, add one. This handles both:\n // - Initial mount: fields.length starts at 0\n // - Form reset to an empty array: fields.length becomes 0 again\n // It intentionally does NOT inspect row contents, so manually added empty rows\n // are never collapsed.\n const needsInitialize = useMemo(() => {\n return lastElementNotRemovable && fields.length === 0;\n }, [lastElementNotRemovable, fields.length]);\n\n // Track whether initialization has completed. Initialized contextually:\n // - If initialization IS needed (needsInitialize = true): starts as false, set to true after init\n // - If initialization is NOT needed (needsInitialize = false): starts as true (already initialized)\n // This ref is used to:\n // 1. Skip validation during initialization/re-initialization\n // 2. Gate animation enabling until after initialization\n // 3. Gate motion preference effect until after initialization\n const hasInitialized = useRef(!needsInitialize);\n\n // Reset initialization flag when needsInitialize changes to true.\n // This handles form reset: when fields become empty (needsInitialize becomes true),\n // hasInitialized is reset to false, triggering re-initialization in the effect below.\n useEffect(() => {\n if (needsInitialize) {\n hasInitialized.current = false;\n }\n }, [needsInitialize]);\n\n // Validate array-level constraints (min/max items) when length changes.\n // This ensures min/max errors appear instantly when user adds/removes items.\n // Note: Child field validation also runs, but new empty fields won't show as invalid\n // because useFormContext only sets invalid=true for touched fields or after form submission.\n // Skip validation during initialization/re-initialization to avoid showing errors prematurely.\n useEffect(() => {\n if (hasInitialized.current) {\n setTimeout(() => {\n trigger(name as Path<TFieldValues>);\n }, 200);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [fields.length]);\n\n // Animation control: Start with animations disabled to prevent animating in initial elements.\n // Will be enabled after initialization completes (unless user prefers reduced motion).\n const [disableAnimation, setDisableAnimation] = useState(true);\n\n // Respond to user's motion preference changes (after initialization).\n // During initialization, animations stay disabled regardless of preference.\n const prefersReducedMotion = useReducedMotion();\n useEffect(() => {\n if (hasInitialized.current) {\n setDisableAnimation(!!prefersReducedMotion);\n }\n }, [prefersReducedMotion]);\n\n // Prepare initial element value based on mode\n // - flat=true: arrays of primitives → object with flatArrayKey and null value by default\n // - flat=false: arrays of objects → empty object by default\n const elementInitialValue = useMemo(() => {\n return flat\n ? { [flatArrayKey]: _elementInitialValue ?? null }\n : (_elementInitialValue ?? {});\n }, [flat, _elementInitialValue]);\n\n // Reset normalization:\n // Run ONLY when an actual form reset is emitted (via useWatchFormReset), not\n // on regular field edits. This does not collapse rows users add manually.\n //\n // Why this exists:\n // RHF can keep stale field-array rows after reset when array defaults are\n // missing (e.g. value becomes undefined or [null, null] while UI still has\n // multiple rows). We normalize this reset-only state to:\n // - one row when lastElementNotRemovable is enabled\n // - zero rows otherwise\n useWatchFormReset({\n onReset: () => {\n const currentValue = getValues(name as Path<TFieldValues>) as unknown;\n const valueIsArray = Array.isArray(currentValue);\n const arrayValue = valueIsArray ? (currentValue as unknown[]) : [];\n const normalizedLength = lastElementNotRemovable ? 1 : 0;\n const alreadyNormalized =\n valueIsArray && arrayValue.length === normalizedLength;\n\n // Treat these as \"effectively empty after reset\":\n // - value missing/not-array\n // - empty array\n // - array where all entries are empty placeholders\n const isEffectivelyEmptyAfterReset =\n !valueIsArray ||\n arrayValue.length === 0 ||\n arrayValue.every((entry) => {\n return isValueEmpty(entry);\n });\n\n // Nothing to fix when the reset restored real values (e.g. from defaults).\n if (!isEffectivelyEmptyAfterReset) {\n return;\n }\n\n // Already normalized to the target row count.\n if (alreadyNormalized) {\n return;\n }\n\n // Avoid collapse animation flicker during reset normalization.\n setDisableAnimation(true);\n\n // use replace so the RHF field-array length actually matches the target.\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n replace((lastElementNotRemovable ? [elementInitialValue] : []) as any);\n\n // Restore normal animation state right after normalization.\n if (!prefersReducedMotion) {\n setTimeout(() => {\n setDisableAnimation(false);\n }, 1);\n }\n },\n });\n\n // Initialization/Re-initialization: add one element only when array length is 0.\n // This is the min-count behavior for lastElementNotRemovable and is intentionally\n // separate from reset normalization above.\n //\n // Reset behavior in this hook is split into two phases:\n // 1) Reset normalization (useWatchFormReset): collapse stale placeholder rows\n // left by reset edge cases.\n // 2) Length-based initialization (this effect): ensure a min-one array when\n // the field array is truly empty.\n // CRITICAL: This effect MUST be the LAST hook in this component.\n // It sets hasInitialized.current = true, which acts as a gate for other effects.\n // If this runs before other effects, hasInitialized will be true during their first run,\n // causing them to execute logic meant only for post-initialization (e.g., validation,\n // animation enabling). By placing this last, all other effects run first with\n // hasInitialized = false, allowing them to skip initialization-phase logic.\n useEffect(\n () => {\n if (needsInitialize) {\n // use setValue instead of append to avoid focusing the added element\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n setValue(name as Path<TFieldValues>, [elementInitialValue] as any, {\n shouldDirty: false,\n shouldTouch: false,\n });\n\n // Mark initialization as complete\n hasInitialized.current = true;\n\n // Enable animations after a brief delay (unless user prefers reduced motion or animations are already enabled).\n // This only runs on initial mount when animations start disabled.\n // On reset, disableAnimation is typically false, so this setTimeout won't run and animations stay enabled.\n if (!prefersReducedMotion && disableAnimation) {\n setTimeout(() => {\n setDisableAnimation(false);\n }, 1);\n }\n }\n },\n // Run when needsInitialize changes (initial mount or reset)\n // needsInitialize is memoized based on fields.length and lastElementNotRemovable\n // Other dependencies are intentionally omitted:\n // - append, setValue, trigger, setDisableAnimation are stable refs/functions\n // - elementInitialValue, name, flat, prefersReducedMotion, disableAnimation are props/stable values\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [needsInitialize],\n );\n\n return {\n // Field array methods and state\n fields,\n append,\n remove,\n insert,\n move,\n disableAnimation,\n elementInitialValue,\n // Uniform field state and utilities (spread all)\n ...uniformField,\n };\n};\n","/* v8 ignore start */\n\nexport * from './useUniformFieldArray';\n\n/* v8 ignore stop */\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AA8CA,MAAa,wBAEX,EACA,MACA,OAAO,OACP,qBAAqB,uBAAuB,MAC5C,0BAA0B,OAC1B,UACA,QAAQ,gBACR,YAC6C;CAE7C,MAAM,eAAeA,oCAAAA,gBAA8B;EAC3C;EACN;EACA,QAAQ;EACR;CACF,CAAC;CAED,MAAM,EAAE,YAAY;CAEpB,MAAM,EAAE,QAAQ,QAAQ,QAAQ,QAAQ,MAAM,aAAA,GAAA,gBAAA,eAA6B;EACzE;EACA;CACF,CAAC;CAED,MAAM,EAAE,SAAS,UAAU,cAAcC,uBAAAA,eAA6B;CAStE,MAAM,mBAAA,GAAA,MAAA,eAAgC;EACpC,OAAO,2BAA2B,OAAO,WAAW;CACtD,GAAG,CAAC,yBAAyB,OAAO,MAAM,CAAC;CAS3C,MAAM,kBAAA,GAAA,MAAA,QAAwB,CAAC,eAAe;CAK9C,CAAA,GAAA,MAAA,iBAAgB;EACd,IAAI,iBACF,eAAe,UAAU;CAE7B,GAAG,CAAC,eAAe,CAAC;CAOpB,CAAA,GAAA,MAAA,iBAAgB;EACd,IAAI,eAAe,SACjB,iBAAiB;GACf,QAAQ,IAA0B;EACpC,GAAG,GAAG;CAGV,GAAG,CAAC,OAAO,MAAM,CAAC;CAIlB,MAAM,CAAC,kBAAkB,wBAAA,GAAA,MAAA,UAAgC,IAAI;CAI7D,MAAM,wBAAA,GAAA,wBAAA,kBAAwC;CAC9C,CAAA,GAAA,MAAA,iBAAgB;EACd,IAAI,eAAe,SACjB,oBAAoB,CAAC,CAAC,oBAAoB;CAE9C,GAAG,CAAC,oBAAoB,CAAC;CAKzB,MAAM,uBAAA,GAAA,MAAA,eAAoC;EACxC,OAAO,OACH,GAAGC,sBAAAA,eAAe,wBAAwB,KAAK,IAC9C,wBAAwB,CAAC;CAChC,GAAG,CAAC,MAAM,oBAAoB,CAAC;CAY/B,sCAAA,kBAAkB,EAChB,eAAe;EACb,MAAM,eAAe,UAAU,IAA0B;EACzD,MAAM,eAAe,MAAM,QAAQ,YAAY;EAC/C,MAAM,aAAa,eAAgB,eAA6B,CAAC;EACjE,MAAM,mBAAmB,0BAA0B,IAAI;EACvD,MAAM,oBACJ,gBAAgB,WAAW,WAAW;EAcxC,IAAI,EAPF,CAAC,gBACD,WAAW,WAAW,KACtB,WAAW,OAAO,UAAU;GAC1B,OAAOC,sBAAAA,aAAa,KAAK;EAC3B,CAAC,IAID;EAIF,IAAI,mBACF;EAIF,oBAAoB,IAAI;EAIxB,QAAS,0BAA0B,CAAC,mBAAmB,IAAI,CAAC,CAAS;EAGrE,IAAI,CAAC,sBACH,iBAAiB;GACf,oBAAoB,KAAK;EAC3B,GAAG,CAAC;CAER,EACF,CAAC;CAiBD,CAAA,GAAA,MAAA,iBACQ;EACJ,IAAI,iBAAiB;GAGnB,SAAS,MAA4B,CAAC,mBAAmB,GAAU;IACjE,aAAa;IACb,aAAa;GACf,CAAC;GAGD,eAAe,UAAU;GAKzB,IAAI,CAAC,wBAAwB,kBAC3B,iBAAiB;IACf,oBAAoB,KAAK;GAC3B,GAAG,CAAC;EAER;CACF,GAOA,CAAC,eAAe,CAClB;CAEA,OAAO;EAEL;EACA;EACA;EACA;EACA;EACA;EACA;EAEA,GAAG;CACL;AACF"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as useUniformFieldArray, t as UseUniformFieldArrayProps } from "../../useUniformFieldArray-
|
|
1
|
+
import { n as useUniformFieldArray, t as UseUniformFieldArrayProps } from "../../useUniformFieldArray-D3fdzwzD.cjs";
|
|
2
2
|
export { UseUniformFieldArrayProps, useUniformFieldArray };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as useUniformFieldArray, t as UseUniformFieldArrayProps } from "../../useUniformFieldArray-
|
|
1
|
+
import { n as useUniformFieldArray, t as UseUniformFieldArrayProps } from "../../useUniformFieldArray-zGcIhwhF.js";
|
|
2
2
|
export { UseUniformFieldArrayProps, useUniformFieldArray };
|
|
@@ -54,17 +54,17 @@ const useUniformFieldArray = ({ name, flat = false, elementInitialValue: _elemen
|
|
|
54
54
|
return flat ? { [flatArrayKey]: _elementInitialValue ?? null } : _elementInitialValue ?? {};
|
|
55
55
|
}, [flat, _elementInitialValue]);
|
|
56
56
|
useWatchFormReset({ onReset: () => {
|
|
57
|
-
if (!lastElementNotRemovable) return;
|
|
58
57
|
const currentValue = getValues(name);
|
|
59
58
|
const valueIsArray = Array.isArray(currentValue);
|
|
60
59
|
const arrayValue = valueIsArray ? currentValue : [];
|
|
61
|
-
const
|
|
60
|
+
const normalizedLength = lastElementNotRemovable ? 1 : 0;
|
|
61
|
+
const alreadyNormalized = valueIsArray && arrayValue.length === normalizedLength;
|
|
62
62
|
if (!(!valueIsArray || arrayValue.length === 0 || arrayValue.every((entry) => {
|
|
63
63
|
return isValueEmpty(entry);
|
|
64
64
|
}))) return;
|
|
65
|
-
if (
|
|
65
|
+
if (alreadyNormalized) return;
|
|
66
66
|
setDisableAnimation(true);
|
|
67
|
-
replace([elementInitialValue]);
|
|
67
|
+
replace(lastElementNotRemovable ? [elementInitialValue] : []);
|
|
68
68
|
if (!prefersReducedMotion) setTimeout(() => {
|
|
69
69
|
setDisableAnimation(false);
|
|
70
70
|
}, 1);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["useRHFFieldArray","useFormContext"],"sources":["../../../src/hooks/useUniformFieldArray/useUniformFieldArray.ts","../../../src/hooks/useUniformFieldArray/index.ts"],"sourcesContent":["import type { ReactNode } from 'react';\nimport type { ArrayPath, FieldValues, Path } from 'react-hook-form';\n\nimport { useEffect, useMemo, useRef, useState } from 'react';\nimport { useFieldArray as useRHFFieldArray } from 'react-hook-form';\n\nimport { useReducedMotion } from '@fuf-stack/pixel-motion';\n\nimport { flatArrayKey, isValueEmpty } from '../../helpers';\nimport { useFormContext } from '../useFormContext';\nimport { useUniformField } from '../useUniformField';\nimport { useWatchFormReset } from '../useWatchFormReset';\n\nexport interface UseUniformFieldArrayProps<\n TFieldValues extends FieldValues = FieldValues,\n> {\n /** Field name for the array */\n name: ArrayPath<TFieldValues>;\n /** Whether this is a flat array (array of primitives) */\n flat?: boolean;\n /** Initial value for new array elements */\n elementInitialValue?: unknown;\n /** Whether the last element cannot be removed (always maintain at least one element) */\n lastElementNotRemovable?: boolean;\n /** Disable the field */\n disabled?: boolean;\n /** Optional explicit test id used to build stable test ids */\n testId?: string;\n /** Optional label content */\n label?: ReactNode;\n}\n\n/**\n * Enhanced useFieldArray hook with initialization and animation logic.\n * Based on React Hook Form's useFieldArray with additional features:\n * - Automatic initialization when lastElementNotRemovable is set\n * - Reset-only normalization for stale empty placeholder rows (via useWatchFormReset)\n * - Animation control (disabled during initialization)\n * - Temporary animation disable during reset normalization collapse\n * - Support for flat arrays (arrays of primitives)\n *\n * Note: Automatic validation triggering on length change is disabled to prevent\n * triggering form-wide validation. Array validation still runs on form submission.\n *\n * @see https://react-hook-form.com/docs/usefieldarray\n */\nexport const useUniformFieldArray = <\n TFieldValues extends FieldValues = FieldValues,\n>({\n name,\n flat = false,\n elementInitialValue: _elementInitialValue = null,\n lastElementNotRemovable = false,\n disabled,\n testId: explicitTestId,\n label,\n}: UseUniformFieldArrayProps<TFieldValues>) => {\n // Get uniform field state and utilities\n const uniformField = useUniformField<TFieldValues>({\n name: name as Path<TFieldValues> & string,\n disabled,\n testId: explicitTestId,\n label,\n });\n\n const { control } = uniformField;\n\n const { fields, append, remove, insert, move, replace } = useRHFFieldArray({\n control,\n name,\n });\n\n const { trigger, setValue, getValues } = useFormContext<TFieldValues>();\n\n // Determine if initialization is needed (initially or after reset).\n // lastElementNotRemovable is purely a minimum-count guarantee: when there are\n // no rows, add one. This handles both:\n // - Initial mount: fields.length starts at 0\n // - Form reset to an empty array: fields.length becomes 0 again\n // It intentionally does NOT inspect row contents, so manually added empty rows\n // are never collapsed.\n const needsInitialize = useMemo(() => {\n return lastElementNotRemovable && fields.length === 0;\n }, [lastElementNotRemovable, fields.length]);\n\n // Track whether initialization has completed. Initialized contextually:\n // - If initialization IS needed (needsInitialize = true): starts as false, set to true after init\n // - If initialization is NOT needed (needsInitialize = false): starts as true (already initialized)\n // This ref is used to:\n // 1. Skip validation during initialization/re-initialization\n // 2. Gate animation enabling until after initialization\n // 3. Gate motion preference effect until after initialization\n const hasInitialized = useRef(!needsInitialize);\n\n // Reset initialization flag when needsInitialize changes to true.\n // This handles form reset: when fields become empty (needsInitialize becomes true),\n // hasInitialized is reset to false, triggering re-initialization in the effect below.\n useEffect(() => {\n if (needsInitialize) {\n hasInitialized.current = false;\n }\n }, [needsInitialize]);\n\n // Validate array-level constraints (min/max items) when length changes.\n // This ensures min/max errors appear instantly when user adds/removes items.\n // Note: Child field validation also runs, but new empty fields won't show as invalid\n // because useFormContext only sets invalid=true for touched fields or after form submission.\n // Skip validation during initialization/re-initialization to avoid showing errors prematurely.\n useEffect(() => {\n if (hasInitialized.current) {\n setTimeout(() => {\n trigger(name as Path<TFieldValues>);\n }, 200);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [fields.length]);\n\n // Animation control: Start with animations disabled to prevent animating in initial elements.\n // Will be enabled after initialization completes (unless user prefers reduced motion).\n const [disableAnimation, setDisableAnimation] = useState(true);\n\n // Respond to user's motion preference changes (after initialization).\n // During initialization, animations stay disabled regardless of preference.\n const prefersReducedMotion = useReducedMotion();\n useEffect(() => {\n if (hasInitialized.current) {\n setDisableAnimation(!!prefersReducedMotion);\n }\n }, [prefersReducedMotion]);\n\n // Prepare initial element value based on mode\n // - flat=true: arrays of primitives → object with flatArrayKey and null value by default\n // - flat=false: arrays of objects → empty object by default\n const elementInitialValue = useMemo(() => {\n return flat\n ? { [flatArrayKey]: _elementInitialValue ?? null }\n : (_elementInitialValue ?? {});\n }, [flat, _elementInitialValue]);\n\n // Reset normalization:\n // Run ONLY when an actual form reset is emitted (via useWatchFormReset), not\n // on regular field edits. This does not collapse rows users add manually.\n //\n // Why this exists:\n // RHF can keep stale field-array rows after reset when array defaults are\n // missing (e.g. value becomes undefined or [null, null] while UI still has\n // multiple rows). For lastElementNotRemovable arrays we normalize that state\n // back to exactly one empty row.\n useWatchFormReset({\n onReset: () => {\n // This normalization is only relevant for min-one arrays.\n if (!lastElementNotRemovable) {\n return;\n }\n\n const currentValue = getValues(name as Path<TFieldValues>) as unknown;\n const valueIsArray = Array.isArray(currentValue);\n const arrayValue = valueIsArray ? (currentValue as unknown[]) : [];\n const hasSingleRow = valueIsArray && arrayValue.length === 1;\n\n // Treat these as \"effectively empty after reset\":\n // - value missing/not-array\n // - empty array\n // - array where all entries are empty placeholders\n const isEffectivelyEmptyAfterReset =\n !valueIsArray ||\n arrayValue.length === 0 ||\n arrayValue.every((entry) => {\n return isValueEmpty(entry);\n });\n\n // Nothing to fix when the reset restored real values (e.g. from defaults).\n if (!isEffectivelyEmptyAfterReset) {\n return;\n }\n\n // Already normalized: exactly one row remains.\n if (hasSingleRow) {\n return;\n }\n\n // Avoid collapse animation flicker during reset normalization.\n setDisableAnimation(true);\n\n // use replace so the RHF field-array length actually collapses to one row\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n replace([elementInitialValue] as any);\n\n // Restore normal animation state right after normalization.\n if (!prefersReducedMotion) {\n setTimeout(() => {\n setDisableAnimation(false);\n }, 1);\n }\n },\n });\n\n // Initialization/Re-initialization: add one element only when array length is 0.\n // This is the min-count behavior for lastElementNotRemovable and is intentionally\n // separate from reset normalization above.\n //\n // Reset behavior in this hook is split into two phases:\n // 1) Reset normalization (useWatchFormReset): collapse stale placeholder rows\n // left by reset edge cases.\n // 2) Length-based initialization (this effect): ensure a min-one array when\n // the field array is truly empty.\n // CRITICAL: This effect MUST be the LAST hook in this component.\n // It sets hasInitialized.current = true, which acts as a gate for other effects.\n // If this runs before other effects, hasInitialized will be true during their first run,\n // causing them to execute logic meant only for post-initialization (e.g., validation,\n // animation enabling). By placing this last, all other effects run first with\n // hasInitialized = false, allowing them to skip initialization-phase logic.\n useEffect(\n () => {\n if (needsInitialize) {\n // use setValue instead of append to avoid focusing the added element\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n setValue(name as Path<TFieldValues>, [elementInitialValue] as any, {\n shouldDirty: false,\n shouldTouch: false,\n });\n\n // Mark initialization as complete\n hasInitialized.current = true;\n\n // Enable animations after a brief delay (unless user prefers reduced motion or animations are already enabled).\n // This only runs on initial mount when animations start disabled.\n // On reset, disableAnimation is typically false, so this setTimeout won't run and animations stay enabled.\n if (!prefersReducedMotion && disableAnimation) {\n setTimeout(() => {\n setDisableAnimation(false);\n }, 1);\n }\n }\n },\n // Run when needsInitialize changes (initial mount or reset)\n // needsInitialize is memoized based on fields.length and lastElementNotRemovable\n // Other dependencies are intentionally omitted:\n // - append, setValue, trigger, setDisableAnimation are stable refs/functions\n // - elementInitialValue, name, flat, prefersReducedMotion, disableAnimation are props/stable values\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [needsInitialize],\n );\n\n return {\n // Field array methods and state\n fields,\n append,\n remove,\n insert,\n move,\n disableAnimation,\n elementInitialValue,\n // Uniform field state and utilities (spread all)\n ...uniformField,\n };\n};\n","/* v8 ignore start */\n\nexport * from './useUniformFieldArray';\n\n/* v8 ignore stop */\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AA8CA,MAAa,wBAEX,EACA,MACA,OAAO,OACP,qBAAqB,uBAAuB,MAC5C,0BAA0B,OAC1B,UACA,QAAQ,gBACR,YAC6C;CAE7C,MAAM,eAAe,gBAA8B;EAC3C;EACN;EACA,QAAQ;EACR;CACF,CAAC;CAED,MAAM,EAAE,YAAY;CAEpB,MAAM,EAAE,QAAQ,QAAQ,QAAQ,QAAQ,MAAM,YAAYA,cAAiB;EACzE;EACA;CACF,CAAC;CAED,MAAM,EAAE,SAAS,UAAU,cAAcC,iBAA6B;CAStE,MAAM,kBAAkB,cAAc;EACpC,OAAO,2BAA2B,OAAO,WAAW;CACtD,GAAG,CAAC,yBAAyB,OAAO,MAAM,CAAC;CAS3C,MAAM,iBAAiB,OAAO,CAAC,eAAe;CAK9C,gBAAgB;EACd,IAAI,iBACF,eAAe,UAAU;CAE7B,GAAG,CAAC,eAAe,CAAC;CAOpB,gBAAgB;EACd,IAAI,eAAe,SACjB,iBAAiB;GACf,QAAQ,IAA0B;EACpC,GAAG,GAAG;CAGV,GAAG,CAAC,OAAO,MAAM,CAAC;CAIlB,MAAM,CAAC,kBAAkB,uBAAuB,SAAS,IAAI;CAI7D,MAAM,uBAAuB,iBAAiB;CAC9C,gBAAgB;EACd,IAAI,eAAe,SACjB,oBAAoB,CAAC,CAAC,oBAAoB;CAE9C,GAAG,CAAC,oBAAoB,CAAC;CAKzB,MAAM,sBAAsB,cAAc;EACxC,OAAO,OACH,GAAG,eAAe,wBAAwB,KAAK,IAC9C,wBAAwB,CAAC;CAChC,GAAG,CAAC,MAAM,oBAAoB,CAAC;CAW/B,kBAAkB,EAChB,eAAe;EAEb,IAAI,CAAC,yBACH;EAGF,MAAM,eAAe,UAAU,IAA0B;EACzD,MAAM,eAAe,MAAM,QAAQ,YAAY;EAC/C,MAAM,aAAa,eAAgB,eAA6B,CAAC;EACjE,MAAM,eAAe,gBAAgB,WAAW,WAAW;EAc3D,IAAI,EAPF,CAAC,gBACD,WAAW,WAAW,KACtB,WAAW,OAAO,UAAU;GAC1B,OAAO,aAAa,KAAK;EAC3B,CAAC,IAID;EAIF,IAAI,cACF;EAIF,oBAAoB,IAAI;EAIxB,QAAQ,CAAC,mBAAmB,CAAQ;EAGpC,IAAI,CAAC,sBACH,iBAAiB;GACf,oBAAoB,KAAK;EAC3B,GAAG,CAAC;CAER,EACF,CAAC;CAiBD,gBACQ;EACJ,IAAI,iBAAiB;GAGnB,SAAS,MAA4B,CAAC,mBAAmB,GAAU;IACjE,aAAa;IACb,aAAa;GACf,CAAC;GAGD,eAAe,UAAU;GAKzB,IAAI,CAAC,wBAAwB,kBAC3B,iBAAiB;IACf,oBAAoB,KAAK;GAC3B,GAAG,CAAC;EAER;CACF,GAOA,CAAC,eAAe,CAClB;CAEA,OAAO;EAEL;EACA;EACA;EACA;EACA;EACA;EACA;EAEA,GAAG;CACL;AACF"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["useRHFFieldArray","useFormContext"],"sources":["../../../src/hooks/useUniformFieldArray/useUniformFieldArray.ts","../../../src/hooks/useUniformFieldArray/index.ts"],"sourcesContent":["import type { ReactNode } from 'react';\nimport type { ArrayPath, FieldValues, Path } from 'react-hook-form';\n\nimport { useEffect, useMemo, useRef, useState } from 'react';\nimport { useFieldArray as useRHFFieldArray } from 'react-hook-form';\n\nimport { useReducedMotion } from '@fuf-stack/pixel-motion';\n\nimport { flatArrayKey, isValueEmpty } from '../../helpers';\nimport { useFormContext } from '../useFormContext';\nimport { useUniformField } from '../useUniformField';\nimport { useWatchFormReset } from '../useWatchFormReset';\n\nexport interface UseUniformFieldArrayProps<\n TFieldValues extends FieldValues = FieldValues,\n> {\n /** Field name for the array */\n name: ArrayPath<TFieldValues>;\n /** Whether this is a flat array (array of primitives) */\n flat?: boolean;\n /** Initial value for new array elements */\n elementInitialValue?: unknown;\n /** Whether the last element cannot be removed (always maintain at least one element) */\n lastElementNotRemovable?: boolean;\n /** Disable the field */\n disabled?: boolean;\n /** Optional explicit test id used to build stable test ids */\n testId?: string;\n /** Optional label content */\n label?: ReactNode;\n}\n\n/**\n * Enhanced useFieldArray hook with initialization and animation logic.\n * Based on React Hook Form's useFieldArray with additional features:\n * - Automatic initialization when lastElementNotRemovable is set\n * - Reset-only normalization for stale empty placeholder rows (via useWatchFormReset)\n * - Animation control (disabled during initialization)\n * - Temporary animation disable during reset normalization collapse\n * - Support for flat arrays (arrays of primitives)\n *\n * Note: Automatic validation triggering on length change is disabled to prevent\n * triggering form-wide validation. Array validation still runs on form submission.\n *\n * @see https://react-hook-form.com/docs/usefieldarray\n */\nexport const useUniformFieldArray = <\n TFieldValues extends FieldValues = FieldValues,\n>({\n name,\n flat = false,\n elementInitialValue: _elementInitialValue = null,\n lastElementNotRemovable = false,\n disabled,\n testId: explicitTestId,\n label,\n}: UseUniformFieldArrayProps<TFieldValues>) => {\n // Get uniform field state and utilities\n const uniformField = useUniformField<TFieldValues>({\n name: name as Path<TFieldValues> & string,\n disabled,\n testId: explicitTestId,\n label,\n });\n\n const { control } = uniformField;\n\n const { fields, append, remove, insert, move, replace } = useRHFFieldArray({\n control,\n name,\n });\n\n const { trigger, setValue, getValues } = useFormContext<TFieldValues>();\n\n // Determine if initialization is needed (initially or after reset).\n // lastElementNotRemovable is purely a minimum-count guarantee: when there are\n // no rows, add one. This handles both:\n // - Initial mount: fields.length starts at 0\n // - Form reset to an empty array: fields.length becomes 0 again\n // It intentionally does NOT inspect row contents, so manually added empty rows\n // are never collapsed.\n const needsInitialize = useMemo(() => {\n return lastElementNotRemovable && fields.length === 0;\n }, [lastElementNotRemovable, fields.length]);\n\n // Track whether initialization has completed. Initialized contextually:\n // - If initialization IS needed (needsInitialize = true): starts as false, set to true after init\n // - If initialization is NOT needed (needsInitialize = false): starts as true (already initialized)\n // This ref is used to:\n // 1. Skip validation during initialization/re-initialization\n // 2. Gate animation enabling until after initialization\n // 3. Gate motion preference effect until after initialization\n const hasInitialized = useRef(!needsInitialize);\n\n // Reset initialization flag when needsInitialize changes to true.\n // This handles form reset: when fields become empty (needsInitialize becomes true),\n // hasInitialized is reset to false, triggering re-initialization in the effect below.\n useEffect(() => {\n if (needsInitialize) {\n hasInitialized.current = false;\n }\n }, [needsInitialize]);\n\n // Validate array-level constraints (min/max items) when length changes.\n // This ensures min/max errors appear instantly when user adds/removes items.\n // Note: Child field validation also runs, but new empty fields won't show as invalid\n // because useFormContext only sets invalid=true for touched fields or after form submission.\n // Skip validation during initialization/re-initialization to avoid showing errors prematurely.\n useEffect(() => {\n if (hasInitialized.current) {\n setTimeout(() => {\n trigger(name as Path<TFieldValues>);\n }, 200);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [fields.length]);\n\n // Animation control: Start with animations disabled to prevent animating in initial elements.\n // Will be enabled after initialization completes (unless user prefers reduced motion).\n const [disableAnimation, setDisableAnimation] = useState(true);\n\n // Respond to user's motion preference changes (after initialization).\n // During initialization, animations stay disabled regardless of preference.\n const prefersReducedMotion = useReducedMotion();\n useEffect(() => {\n if (hasInitialized.current) {\n setDisableAnimation(!!prefersReducedMotion);\n }\n }, [prefersReducedMotion]);\n\n // Prepare initial element value based on mode\n // - flat=true: arrays of primitives → object with flatArrayKey and null value by default\n // - flat=false: arrays of objects → empty object by default\n const elementInitialValue = useMemo(() => {\n return flat\n ? { [flatArrayKey]: _elementInitialValue ?? null }\n : (_elementInitialValue ?? {});\n }, [flat, _elementInitialValue]);\n\n // Reset normalization:\n // Run ONLY when an actual form reset is emitted (via useWatchFormReset), not\n // on regular field edits. This does not collapse rows users add manually.\n //\n // Why this exists:\n // RHF can keep stale field-array rows after reset when array defaults are\n // missing (e.g. value becomes undefined or [null, null] while UI still has\n // multiple rows). We normalize this reset-only state to:\n // - one row when lastElementNotRemovable is enabled\n // - zero rows otherwise\n useWatchFormReset({\n onReset: () => {\n const currentValue = getValues(name as Path<TFieldValues>) as unknown;\n const valueIsArray = Array.isArray(currentValue);\n const arrayValue = valueIsArray ? (currentValue as unknown[]) : [];\n const normalizedLength = lastElementNotRemovable ? 1 : 0;\n const alreadyNormalized =\n valueIsArray && arrayValue.length === normalizedLength;\n\n // Treat these as \"effectively empty after reset\":\n // - value missing/not-array\n // - empty array\n // - array where all entries are empty placeholders\n const isEffectivelyEmptyAfterReset =\n !valueIsArray ||\n arrayValue.length === 0 ||\n arrayValue.every((entry) => {\n return isValueEmpty(entry);\n });\n\n // Nothing to fix when the reset restored real values (e.g. from defaults).\n if (!isEffectivelyEmptyAfterReset) {\n return;\n }\n\n // Already normalized to the target row count.\n if (alreadyNormalized) {\n return;\n }\n\n // Avoid collapse animation flicker during reset normalization.\n setDisableAnimation(true);\n\n // use replace so the RHF field-array length actually matches the target.\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n replace((lastElementNotRemovable ? [elementInitialValue] : []) as any);\n\n // Restore normal animation state right after normalization.\n if (!prefersReducedMotion) {\n setTimeout(() => {\n setDisableAnimation(false);\n }, 1);\n }\n },\n });\n\n // Initialization/Re-initialization: add one element only when array length is 0.\n // This is the min-count behavior for lastElementNotRemovable and is intentionally\n // separate from reset normalization above.\n //\n // Reset behavior in this hook is split into two phases:\n // 1) Reset normalization (useWatchFormReset): collapse stale placeholder rows\n // left by reset edge cases.\n // 2) Length-based initialization (this effect): ensure a min-one array when\n // the field array is truly empty.\n // CRITICAL: This effect MUST be the LAST hook in this component.\n // It sets hasInitialized.current = true, which acts as a gate for other effects.\n // If this runs before other effects, hasInitialized will be true during their first run,\n // causing them to execute logic meant only for post-initialization (e.g., validation,\n // animation enabling). By placing this last, all other effects run first with\n // hasInitialized = false, allowing them to skip initialization-phase logic.\n useEffect(\n () => {\n if (needsInitialize) {\n // use setValue instead of append to avoid focusing the added element\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n setValue(name as Path<TFieldValues>, [elementInitialValue] as any, {\n shouldDirty: false,\n shouldTouch: false,\n });\n\n // Mark initialization as complete\n hasInitialized.current = true;\n\n // Enable animations after a brief delay (unless user prefers reduced motion or animations are already enabled).\n // This only runs on initial mount when animations start disabled.\n // On reset, disableAnimation is typically false, so this setTimeout won't run and animations stay enabled.\n if (!prefersReducedMotion && disableAnimation) {\n setTimeout(() => {\n setDisableAnimation(false);\n }, 1);\n }\n }\n },\n // Run when needsInitialize changes (initial mount or reset)\n // needsInitialize is memoized based on fields.length and lastElementNotRemovable\n // Other dependencies are intentionally omitted:\n // - append, setValue, trigger, setDisableAnimation are stable refs/functions\n // - elementInitialValue, name, flat, prefersReducedMotion, disableAnimation are props/stable values\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [needsInitialize],\n );\n\n return {\n // Field array methods and state\n fields,\n append,\n remove,\n insert,\n move,\n disableAnimation,\n elementInitialValue,\n // Uniform field state and utilities (spread all)\n ...uniformField,\n };\n};\n","/* v8 ignore start */\n\nexport * from './useUniformFieldArray';\n\n/* v8 ignore stop */\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AA8CA,MAAa,wBAEX,EACA,MACA,OAAO,OACP,qBAAqB,uBAAuB,MAC5C,0BAA0B,OAC1B,UACA,QAAQ,gBACR,YAC6C;CAE7C,MAAM,eAAe,gBAA8B;EAC3C;EACN;EACA,QAAQ;EACR;CACF,CAAC;CAED,MAAM,EAAE,YAAY;CAEpB,MAAM,EAAE,QAAQ,QAAQ,QAAQ,QAAQ,MAAM,YAAYA,cAAiB;EACzE;EACA;CACF,CAAC;CAED,MAAM,EAAE,SAAS,UAAU,cAAcC,iBAA6B;CAStE,MAAM,kBAAkB,cAAc;EACpC,OAAO,2BAA2B,OAAO,WAAW;CACtD,GAAG,CAAC,yBAAyB,OAAO,MAAM,CAAC;CAS3C,MAAM,iBAAiB,OAAO,CAAC,eAAe;CAK9C,gBAAgB;EACd,IAAI,iBACF,eAAe,UAAU;CAE7B,GAAG,CAAC,eAAe,CAAC;CAOpB,gBAAgB;EACd,IAAI,eAAe,SACjB,iBAAiB;GACf,QAAQ,IAA0B;EACpC,GAAG,GAAG;CAGV,GAAG,CAAC,OAAO,MAAM,CAAC;CAIlB,MAAM,CAAC,kBAAkB,uBAAuB,SAAS,IAAI;CAI7D,MAAM,uBAAuB,iBAAiB;CAC9C,gBAAgB;EACd,IAAI,eAAe,SACjB,oBAAoB,CAAC,CAAC,oBAAoB;CAE9C,GAAG,CAAC,oBAAoB,CAAC;CAKzB,MAAM,sBAAsB,cAAc;EACxC,OAAO,OACH,GAAG,eAAe,wBAAwB,KAAK,IAC9C,wBAAwB,CAAC;CAChC,GAAG,CAAC,MAAM,oBAAoB,CAAC;CAY/B,kBAAkB,EAChB,eAAe;EACb,MAAM,eAAe,UAAU,IAA0B;EACzD,MAAM,eAAe,MAAM,QAAQ,YAAY;EAC/C,MAAM,aAAa,eAAgB,eAA6B,CAAC;EACjE,MAAM,mBAAmB,0BAA0B,IAAI;EACvD,MAAM,oBACJ,gBAAgB,WAAW,WAAW;EAcxC,IAAI,EAPF,CAAC,gBACD,WAAW,WAAW,KACtB,WAAW,OAAO,UAAU;GAC1B,OAAO,aAAa,KAAK;EAC3B,CAAC,IAID;EAIF,IAAI,mBACF;EAIF,oBAAoB,IAAI;EAIxB,QAAS,0BAA0B,CAAC,mBAAmB,IAAI,CAAC,CAAS;EAGrE,IAAI,CAAC,sBACH,iBAAiB;GACf,oBAAoB,KAAK;EAC3B,GAAG,CAAC;CAER,EACF,CAAC;CAiBD,gBACQ;EACJ,IAAI,iBAAiB;GAGnB,SAAS,MAA4B,CAAC,mBAAmB,GAAU;IACjE,aAAa;IACb,aAAa;GACf,CAAC;GAGD,eAAe,UAAU;GAKzB,IAAI,CAAC,wBAAwB,kBAC3B,iBAAiB;IACf,oBAAoB,KAAK;GAC3B,GAAG,CAAC;EAER;CACF,GAOA,CAAC,eAAe,CAClB;CAEA,OAAO;EAEL;EACA;EACA;EACA;EACA;EACA;EACA;EAEA,GAAG;CACL;AACF"}
|
|
@@ -5,8 +5,8 @@ import { ReactNode } from "react";
|
|
|
5
5
|
declare const timeVariants: import("tailwind-variants").TVReturnType<{
|
|
6
6
|
[key: string]: {
|
|
7
7
|
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
8
|
-
label?: import("tailwind-merge").ClassNameValue;
|
|
9
8
|
base?: import("tailwind-merge").ClassNameValue;
|
|
9
|
+
label?: import("tailwind-merge").ClassNameValue;
|
|
10
10
|
input?: import("tailwind-merge").ClassNameValue;
|
|
11
11
|
helperWrapper?: import("tailwind-merge").ClassNameValue;
|
|
12
12
|
inputWrapper?: import("tailwind-merge").ClassNameValue;
|
|
@@ -17,8 +17,8 @@ declare const timeVariants: import("tailwind-variants").TVReturnType<{
|
|
|
17
17
|
} | {
|
|
18
18
|
[x: string]: {
|
|
19
19
|
[x: string]: import("tailwind-merge").ClassNameValue | {
|
|
20
|
-
label?: import("tailwind-merge").ClassNameValue;
|
|
21
20
|
base?: import("tailwind-merge").ClassNameValue;
|
|
21
|
+
label?: import("tailwind-merge").ClassNameValue;
|
|
22
22
|
input?: import("tailwind-merge").ClassNameValue;
|
|
23
23
|
helperWrapper?: import("tailwind-merge").ClassNameValue;
|
|
24
24
|
inputWrapper?: import("tailwind-merge").ClassNameValue;
|
|
@@ -37,8 +37,8 @@ declare const timeVariants: import("tailwind-variants").TVReturnType<{
|
|
|
37
37
|
}, undefined, {
|
|
38
38
|
[key: string]: {
|
|
39
39
|
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
40
|
-
label?: import("tailwind-merge").ClassNameValue;
|
|
41
40
|
base?: import("tailwind-merge").ClassNameValue;
|
|
41
|
+
label?: import("tailwind-merge").ClassNameValue;
|
|
42
42
|
input?: import("tailwind-merge").ClassNameValue;
|
|
43
43
|
helperWrapper?: import("tailwind-merge").ClassNameValue;
|
|
44
44
|
inputWrapper?: import("tailwind-merge").ClassNameValue;
|
|
@@ -110,4 +110,4 @@ declare const Time: ({
|
|
|
110
110
|
}: TimeProps) => import("react/jsx-runtime").JSX.Element;
|
|
111
111
|
//#endregion
|
|
112
112
|
export { TimeProps as n, Time as t };
|
|
113
|
-
//# sourceMappingURL=index-
|
|
113
|
+
//# sourceMappingURL=index-7UT2Ki5e.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-7UT2Ki5e.d.cts","names":[],"sources":["../src/Time/Time.tsx"],"mappings":";;;;cAgBa,YAAA,8BAAY,YAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAsBpB,YAAA,GAAe,OAAO,QAAQ,YAAA;AAAA,KAC9B,SAAA,GAAY,WAAW,QAAQ,YAAA;AAAA,UAEnB,SAAA,SAAkB,YAAA;EAHf;EAKlB,SAAA;EAJG;EAMH,SAAA,GAAY,SAAA;;EAEZ,QAAA;EAR8C;EAU9C,WAAA;EARyB;EAUzB,YAAA;EANY;EAQZ,YAAA;EAZiC;EAcjC,SAAA;EAd6C;EAgB7C,KAAA,GAAQ,SAAA;EAdR;EAgBA,IAAA;EAdY;EAgBZ,MAAA;EAZA;;;;EAiBA,QAAA;EATQ;EAWR,SAAA;AAAA;;;;cAMI,IAAA;EAAQ,SAAA,EAAA,UAAA;EAAA,WAAA;EAAA,YAAA;EAAA,YAAA;EAAA,SAAA;EAAA,IAAA;EAAA,QAAA;EAAA,SAAA;EAAA,GAAA;AAAA,GAUX,SAAA,iCAAS,GAAA,CAAA,OAAA"}
|
|
@@ -4,8 +4,8 @@ import { ReactNode } from "react";
|
|
|
4
4
|
declare const radioBoxesVariants: import("tailwind-variants").TVReturnType<{
|
|
5
5
|
[key: string]: {
|
|
6
6
|
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
7
|
-
label?: import("tailwind-merge").ClassNameValue;
|
|
8
7
|
base?: import("tailwind-merge").ClassNameValue;
|
|
8
|
+
label?: import("tailwind-merge").ClassNameValue;
|
|
9
9
|
wrapper?: import("tailwind-merge").ClassNameValue;
|
|
10
10
|
boxBase?: import("tailwind-merge").ClassNameValue;
|
|
11
11
|
boxControl?: import("tailwind-merge").ClassNameValue;
|
|
@@ -17,8 +17,8 @@ declare const radioBoxesVariants: import("tailwind-variants").TVReturnType<{
|
|
|
17
17
|
} | {
|
|
18
18
|
[x: string]: {
|
|
19
19
|
[x: string]: import("tailwind-merge").ClassNameValue | {
|
|
20
|
-
label?: import("tailwind-merge").ClassNameValue;
|
|
21
20
|
base?: import("tailwind-merge").ClassNameValue;
|
|
21
|
+
label?: import("tailwind-merge").ClassNameValue;
|
|
22
22
|
wrapper?: import("tailwind-merge").ClassNameValue;
|
|
23
23
|
boxBase?: import("tailwind-merge").ClassNameValue;
|
|
24
24
|
boxControl?: import("tailwind-merge").ClassNameValue;
|
|
@@ -39,8 +39,8 @@ declare const radioBoxesVariants: import("tailwind-variants").TVReturnType<{
|
|
|
39
39
|
}, undefined, {
|
|
40
40
|
[key: string]: {
|
|
41
41
|
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
42
|
-
label?: import("tailwind-merge").ClassNameValue;
|
|
43
42
|
base?: import("tailwind-merge").ClassNameValue;
|
|
43
|
+
label?: import("tailwind-merge").ClassNameValue;
|
|
44
44
|
wrapper?: import("tailwind-merge").ClassNameValue;
|
|
45
45
|
boxBase?: import("tailwind-merge").ClassNameValue;
|
|
46
46
|
boxControl?: import("tailwind-merge").ClassNameValue;
|
|
@@ -171,4 +171,4 @@ declare const radioBoxVariants: import("tailwind-variants").TVReturnType<{
|
|
|
171
171
|
}, undefined, unknown, unknown, undefined>>;
|
|
172
172
|
//#endregion
|
|
173
173
|
export { RadioBoxes as n, RadioBoxesProps as r, radioBoxVariants as t };
|
|
174
|
-
//# sourceMappingURL=index-
|
|
174
|
+
//# sourceMappingURL=index-9_3XTDJC.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-9_3XTDJC.d.cts","names":[],"sources":["../src/RadioBoxes/RadioBoxes.tsx","../src/RadioBoxes/RadioBox.tsx"],"mappings":";;;cAaa,kBAAA,8BAAkB,YAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAgB1B,YAAA,GAAe,OAAO,QAAQ,kBAAA;AAAA,KAC9B,SAAA,GAAY,WAAW,QAAQ,kBAAA;AAAA,UAEnB,gBAAA;;EAEf,WAAA,GAAc,SAAA;;EAEd,QAAA;;EAEA,KAAA,GAAQ,SAAA;;EAER,IAAA,GAAO,SAAA;;EAEP,MAAA;;EAEA,KAAA;AAAA;AAAA,UAGe,eAAA,SAAwB,YAAA;;EAEvC,SAAA;;EAEA,SAAA,GAAY,SAAA;;EAEZ,QAAA;;EAEA,MAAA;EA1BG;EA4BH,KAAA,GAAQ,SAAA;;EAER,IAAA;EA9BmD;EAgCnD,OAAA,EAAS,gBAAA;EA/BG;EAiCZ,MAAA;AAAA;AAjCoD;AAEtD;;AAFsD,cAuChD,UAAA;EAAc,SAAA;EAAA,MAAA;EAAA,IAAA;EAAA,OAAA;EAAA,GAAA;AAAA,GAMjB,eAAA,iCAAe,GAAA,CAAA,OAAA;;;cClEL,gBAAA,8BAAgB,YAAA"}
|
|
@@ -6,9 +6,9 @@ import { SwitchProps } from "@heroui/switch";
|
|
|
6
6
|
declare const switchVariants: import("tailwind-variants").TVReturnType<{
|
|
7
7
|
[key: string]: {
|
|
8
8
|
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
9
|
+
base?: import("tailwind-merge").ClassNameValue;
|
|
9
10
|
label?: import("tailwind-merge").ClassNameValue;
|
|
10
11
|
errorMessage?: import("tailwind-merge").ClassNameValue;
|
|
11
|
-
base?: import("tailwind-merge").ClassNameValue;
|
|
12
12
|
endContent?: import("tailwind-merge").ClassNameValue;
|
|
13
13
|
outerWrapper?: import("tailwind-merge").ClassNameValue;
|
|
14
14
|
startContent?: import("tailwind-merge").ClassNameValue;
|
|
@@ -20,9 +20,9 @@ declare const switchVariants: import("tailwind-variants").TVReturnType<{
|
|
|
20
20
|
} | {
|
|
21
21
|
[x: string]: {
|
|
22
22
|
[x: string]: import("tailwind-merge").ClassNameValue | {
|
|
23
|
+
base?: import("tailwind-merge").ClassNameValue;
|
|
23
24
|
label?: import("tailwind-merge").ClassNameValue;
|
|
24
25
|
errorMessage?: import("tailwind-merge").ClassNameValue;
|
|
25
|
-
base?: import("tailwind-merge").ClassNameValue;
|
|
26
26
|
endContent?: import("tailwind-merge").ClassNameValue;
|
|
27
27
|
outerWrapper?: import("tailwind-merge").ClassNameValue;
|
|
28
28
|
startContent?: import("tailwind-merge").ClassNameValue;
|
|
@@ -44,9 +44,9 @@ declare const switchVariants: import("tailwind-variants").TVReturnType<{
|
|
|
44
44
|
}, undefined, {
|
|
45
45
|
[key: string]: {
|
|
46
46
|
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
47
|
+
base?: import("tailwind-merge").ClassNameValue;
|
|
47
48
|
label?: import("tailwind-merge").ClassNameValue;
|
|
48
49
|
errorMessage?: import("tailwind-merge").ClassNameValue;
|
|
49
|
-
base?: import("tailwind-merge").ClassNameValue;
|
|
50
50
|
endContent?: import("tailwind-merge").ClassNameValue;
|
|
51
51
|
outerWrapper?: import("tailwind-merge").ClassNameValue;
|
|
52
52
|
startContent?: import("tailwind-merge").ClassNameValue;
|
|
@@ -113,4 +113,4 @@ declare const Switch$1: ({
|
|
|
113
113
|
}: SwitchProps$1) => import("react/jsx-runtime").JSX.Element;
|
|
114
114
|
//#endregion
|
|
115
115
|
export { SwitchProps$1 as n, Switch$1 as t };
|
|
116
|
-
//# sourceMappingURL=index-
|
|
116
|
+
//# sourceMappingURL=index-B7gQppgQ.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-B7gQppgQ.d.ts","names":[],"sources":["../src/Switch/Switch.tsx"],"mappings":";;;;;cAaa,cAAA,8BAAc,YAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAiBtB,YAAA,GAAe,OAAO,QAAQ,cAAA;AAAA,KAC9B,SAAA,GAAY,WAAW,QAAQ,cAAA;AAAA,UAEnB,aAAA,SAAoB,YAAA;;EAEnC,SAAA;;EAEA,SAAA,GAAY,SAAA;;EAEZ,QAAA;;EAEA,UAAA,GAAa,SAAA;;EAEb,KAAA,GAAQ,SAAA;;EAER,IAAA;EAEA,IAAA;;EAEA,YAAA,GAAe,SAAA;;EAEf,MAAA;;EAEA,SAAA,GAAY,WAAA;AAAA;;;;cAMR,QAAA;EAAU,SAAA;EAAA,UAAA;EAAA,IAAA;EAAA,IAAA;EAAA,YAAA;EAAA,SAAA;EAAA,GAAA;AAAA,GAQb,aAAA,iCAAW,GAAA,CAAA,OAAA"}
|
|
@@ -6,9 +6,9 @@ import { SwitchProps } from "@heroui/switch";
|
|
|
6
6
|
declare const switchVariants: import("tailwind-variants").TVReturnType<{
|
|
7
7
|
[key: string]: {
|
|
8
8
|
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
9
|
+
base?: import("tailwind-merge").ClassNameValue;
|
|
9
10
|
label?: import("tailwind-merge").ClassNameValue;
|
|
10
11
|
errorMessage?: import("tailwind-merge").ClassNameValue;
|
|
11
|
-
base?: import("tailwind-merge").ClassNameValue;
|
|
12
12
|
endContent?: import("tailwind-merge").ClassNameValue;
|
|
13
13
|
outerWrapper?: import("tailwind-merge").ClassNameValue;
|
|
14
14
|
startContent?: import("tailwind-merge").ClassNameValue;
|
|
@@ -20,9 +20,9 @@ declare const switchVariants: import("tailwind-variants").TVReturnType<{
|
|
|
20
20
|
} | {
|
|
21
21
|
[x: string]: {
|
|
22
22
|
[x: string]: import("tailwind-merge").ClassNameValue | {
|
|
23
|
+
base?: import("tailwind-merge").ClassNameValue;
|
|
23
24
|
label?: import("tailwind-merge").ClassNameValue;
|
|
24
25
|
errorMessage?: import("tailwind-merge").ClassNameValue;
|
|
25
|
-
base?: import("tailwind-merge").ClassNameValue;
|
|
26
26
|
endContent?: import("tailwind-merge").ClassNameValue;
|
|
27
27
|
outerWrapper?: import("tailwind-merge").ClassNameValue;
|
|
28
28
|
startContent?: import("tailwind-merge").ClassNameValue;
|
|
@@ -44,9 +44,9 @@ declare const switchVariants: import("tailwind-variants").TVReturnType<{
|
|
|
44
44
|
}, undefined, {
|
|
45
45
|
[key: string]: {
|
|
46
46
|
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
47
|
+
base?: import("tailwind-merge").ClassNameValue;
|
|
47
48
|
label?: import("tailwind-merge").ClassNameValue;
|
|
48
49
|
errorMessage?: import("tailwind-merge").ClassNameValue;
|
|
49
|
-
base?: import("tailwind-merge").ClassNameValue;
|
|
50
50
|
endContent?: import("tailwind-merge").ClassNameValue;
|
|
51
51
|
outerWrapper?: import("tailwind-merge").ClassNameValue;
|
|
52
52
|
startContent?: import("tailwind-merge").ClassNameValue;
|
|
@@ -113,4 +113,4 @@ declare const Switch: ({
|
|
|
113
113
|
}: SwitchProps$1) => import("react/jsx-runtime").JSX.Element;
|
|
114
114
|
//#endregion
|
|
115
115
|
export { SwitchProps$1 as n, Switch as t };
|
|
116
|
-
//# sourceMappingURL=index-
|
|
116
|
+
//# sourceMappingURL=index-Bzs7_gnk.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-Bzs7_gnk.d.cts","names":[],"sources":["../src/Switch/Switch.tsx"],"mappings":";;;;;cAaa,cAAA,8BAAc,YAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAiBtB,YAAA,GAAe,OAAO,QAAQ,cAAA;AAAA,KAC9B,SAAA,GAAY,WAAW,QAAQ,cAAA;AAAA,UAEnB,aAAA,SAAoB,YAAA;;EAEnC,SAAA;;EAEA,SAAA,GAAY,SAAA;;EAEZ,QAAA;;EAEA,UAAA,GAAa,SAAA;;EAEb,KAAA,GAAQ,SAAA;;EAER,IAAA;EAEA,IAAA;;EAEA,YAAA,GAAe,SAAA;;EAEf,MAAA;;EAEA,SAAA,GAAY,WAAA;AAAA;;;;cAMR,MAAA;EAAU,SAAA;EAAA,UAAA;EAAA,IAAA;EAAA,IAAA;EAAA,YAAA;EAAA,SAAA;EAAA,GAAA;AAAA,GAQb,aAAA,iCAAW,GAAA,CAAA,OAAA"}
|
|
@@ -6,11 +6,11 @@ import { Props } from "react-select";
|
|
|
6
6
|
declare const selectVariants: import("tailwind-variants").TVReturnType<{
|
|
7
7
|
[key: string]: {
|
|
8
8
|
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
9
|
+
base?: import("tailwind-merge").ClassNameValue;
|
|
9
10
|
label?: import("tailwind-merge").ClassNameValue;
|
|
11
|
+
input?: import("tailwind-merge").ClassNameValue;
|
|
10
12
|
control?: import("tailwind-merge").ClassNameValue;
|
|
11
13
|
placeholder?: import("tailwind-merge").ClassNameValue;
|
|
12
|
-
base?: import("tailwind-merge").ClassNameValue;
|
|
13
|
-
input?: import("tailwind-merge").ClassNameValue;
|
|
14
14
|
menu?: import("tailwind-merge").ClassNameValue;
|
|
15
15
|
option?: import("tailwind-merge").ClassNameValue;
|
|
16
16
|
group?: import("tailwind-merge").ClassNameValue;
|
|
@@ -42,11 +42,11 @@ declare const selectVariants: import("tailwind-variants").TVReturnType<{
|
|
|
42
42
|
} | {
|
|
43
43
|
[x: string]: {
|
|
44
44
|
[x: string]: import("tailwind-merge").ClassNameValue | {
|
|
45
|
+
base?: import("tailwind-merge").ClassNameValue;
|
|
45
46
|
label?: import("tailwind-merge").ClassNameValue;
|
|
47
|
+
input?: import("tailwind-merge").ClassNameValue;
|
|
46
48
|
control?: import("tailwind-merge").ClassNameValue;
|
|
47
49
|
placeholder?: import("tailwind-merge").ClassNameValue;
|
|
48
|
-
base?: import("tailwind-merge").ClassNameValue;
|
|
49
|
-
input?: import("tailwind-merge").ClassNameValue;
|
|
50
50
|
menu?: import("tailwind-merge").ClassNameValue;
|
|
51
51
|
option?: import("tailwind-merge").ClassNameValue;
|
|
52
52
|
group?: import("tailwind-merge").ClassNameValue;
|
|
@@ -110,11 +110,11 @@ declare const selectVariants: import("tailwind-variants").TVReturnType<{
|
|
|
110
110
|
}, undefined, {
|
|
111
111
|
[key: string]: {
|
|
112
112
|
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
113
|
+
base?: import("tailwind-merge").ClassNameValue;
|
|
113
114
|
label?: import("tailwind-merge").ClassNameValue;
|
|
115
|
+
input?: import("tailwind-merge").ClassNameValue;
|
|
114
116
|
control?: import("tailwind-merge").ClassNameValue;
|
|
115
117
|
placeholder?: import("tailwind-merge").ClassNameValue;
|
|
116
|
-
base?: import("tailwind-merge").ClassNameValue;
|
|
117
|
-
input?: import("tailwind-merge").ClassNameValue;
|
|
118
118
|
menu?: import("tailwind-merge").ClassNameValue;
|
|
119
119
|
option?: import("tailwind-merge").ClassNameValue;
|
|
120
120
|
group?: import("tailwind-merge").ClassNameValue;
|
|
@@ -287,4 +287,4 @@ declare const Select: ({
|
|
|
287
287
|
}: SelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
288
288
|
//#endregion
|
|
289
289
|
export { SelectProps as n, Select as t };
|
|
290
|
-
//# sourceMappingURL=index-
|
|
290
|
+
//# sourceMappingURL=index-C4GJH8Xv.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-C4GJH8Xv.d.ts","names":[],"sources":["../src/Select/Select.tsx"],"mappings":";;;;;cAea,cAAA,8BAAc,YAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UA8CjB,YAAA;;EAER,QAAA;;;;;EAKA,UAAA;;EAEA,KAAA,GAAQ,SAAS;;EAEjB,KAAA;AAAA;AAAA,KAGG,YAAA,GAAe,OAAO,QAAQ,cAAA;AAAA,KAC9B,SAAA,GAAY,WAAW,QAAQ,cAAA;AAAA,UAEnB,WAAA,SAAoB,YAAA;;EAEnC,SAAA;;EAEA,SAAA,GAAY,SAAA;;EAEZ,SAAA;;EAEA,QAAA;;EAEA,aAAA;;EAEA,YAAA,iBAEM,MAAA,GAAS,YAAA,EAAc,UAAA;;EAE7B,UAAA;;EAEA,KAAA,GAAQ,SAAA;;EAER,OAAA;;EAEA,WAAA;;EAEA,IAAA;;EAEA,WAAA;;EAEA,aAAA,GAAgB,KAAA;;EAEhB,OAAA,EAAS,YAAA;;EAET,kBAAA,GAAqB,KAAA;;EAErB,iBAAA,eAAgC,KAAA;;;;;;;;EAQhC,sBAAA,GAAyB,YAAA,GAAe,YAAA;;EAExC,MAAA;AAAA;;cA8CI,MAAA;EAAU,SAAA;EAAA,SAAA;EAAA,aAAA;EAAA,YAAA;EAAA,UAAA;EAAA,OAAA;EAAA,WAAA;EAAA,IAAA;EAAA,aAAA;EAAA,OAAA;EAAA,WAAA;EAAA,kBAAA;EAAA,iBAAA;EAAA,sBAAA;EAAA,GAAA;AAAA,GAgBb,WAAA,iCAAW,GAAA,CAAA,OAAA"}
|
|
@@ -5,10 +5,10 @@ import { ReactNode } from "react";
|
|
|
5
5
|
declare const sliderVariants: import("tailwind-variants").TVReturnType<{
|
|
6
6
|
[key: string]: {
|
|
7
7
|
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
8
|
+
base?: import("tailwind-merge").ClassNameValue;
|
|
8
9
|
label?: import("tailwind-merge").ClassNameValue;
|
|
9
10
|
value?: import("tailwind-merge").ClassNameValue;
|
|
10
11
|
errorMessage?: import("tailwind-merge").ClassNameValue;
|
|
11
|
-
base?: import("tailwind-merge").ClassNameValue;
|
|
12
12
|
mark?: import("tailwind-merge").ClassNameValue;
|
|
13
13
|
track?: import("tailwind-merge").ClassNameValue;
|
|
14
14
|
step?: import("tailwind-merge").ClassNameValue;
|
|
@@ -23,10 +23,10 @@ declare const sliderVariants: import("tailwind-variants").TVReturnType<{
|
|
|
23
23
|
} | {
|
|
24
24
|
[x: string]: {
|
|
25
25
|
[x: string]: import("tailwind-merge").ClassNameValue | {
|
|
26
|
+
base?: import("tailwind-merge").ClassNameValue;
|
|
26
27
|
label?: import("tailwind-merge").ClassNameValue;
|
|
27
28
|
value?: import("tailwind-merge").ClassNameValue;
|
|
28
29
|
errorMessage?: import("tailwind-merge").ClassNameValue;
|
|
29
|
-
base?: import("tailwind-merge").ClassNameValue;
|
|
30
30
|
mark?: import("tailwind-merge").ClassNameValue;
|
|
31
31
|
track?: import("tailwind-merge").ClassNameValue;
|
|
32
32
|
step?: import("tailwind-merge").ClassNameValue;
|
|
@@ -55,10 +55,10 @@ declare const sliderVariants: import("tailwind-variants").TVReturnType<{
|
|
|
55
55
|
}, undefined, {
|
|
56
56
|
[key: string]: {
|
|
57
57
|
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
58
|
+
base?: import("tailwind-merge").ClassNameValue;
|
|
58
59
|
label?: import("tailwind-merge").ClassNameValue;
|
|
59
60
|
value?: import("tailwind-merge").ClassNameValue;
|
|
60
61
|
errorMessage?: import("tailwind-merge").ClassNameValue;
|
|
61
|
-
base?: import("tailwind-merge").ClassNameValue;
|
|
62
62
|
mark?: import("tailwind-merge").ClassNameValue;
|
|
63
63
|
track?: import("tailwind-merge").ClassNameValue;
|
|
64
64
|
step?: import("tailwind-merge").ClassNameValue;
|
|
@@ -164,4 +164,4 @@ declare const Slider: ({
|
|
|
164
164
|
}: SliderProps) => import("react/jsx-runtime").JSX.Element;
|
|
165
165
|
//#endregion
|
|
166
166
|
export { SliderProps as n, Slider as t };
|
|
167
|
-
//# sourceMappingURL=index-
|
|
167
|
+
//# sourceMappingURL=index-CE8fnXuQ.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-CE8fnXuQ.d.ts","names":[],"sources":["../src/Slider/Slider.tsx"],"mappings":";;;;cAYa,cAAA,8BAAc,YAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAqBtB,YAAA,GAAe,OAAO,QAAQ,cAAA;AAAA,KAC9B,SAAA,GAAY,WAAW,QAAQ,cAAA;AAAA,UAEnB,WAAA,SAAoB,YAAA;;EAEnC,SAAA;;EAEA,SAAA,GAAY,SAAA;;EAEZ,QAAA;;EAEA,UAAA,GAAa,SAAA;;EAEb,UAAA;;EAEA,KAAA;;EAEA,IAAA;;;;;EAKA,SAAA;;;;;EAKA,IAAA;;EAEA,YAAA,GAAe,SAAA;;;;;EAKf,IAAA;;EAEA,MAAA;;;;AAtCC;EA2CD,QAAA;;;AAzC+C;AAAA;EA8C/C,QAAA;AAAA;;AA7CgD;AAElD;cAiDM,MAAA;EAAU,SAAA;EAAA,UAAA;EAAA,UAAA;EAAA,IAAA;EAAA,SAAA;EAAA,IAAA;EAAA,YAAA;EAAA,IAAA;EAAA,QAAA;EAAA,QAAA;EAAA,GAAA;AAAA,GAYb,WAAA,iCAAW,GAAA,CAAA,OAAA"}
|
|
@@ -5,8 +5,8 @@ import { ReactNode } from "react";
|
|
|
5
5
|
declare const timeVariants: import("tailwind-variants").TVReturnType<{
|
|
6
6
|
[key: string]: {
|
|
7
7
|
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
8
|
-
label?: import("tailwind-merge").ClassNameValue;
|
|
9
8
|
base?: import("tailwind-merge").ClassNameValue;
|
|
9
|
+
label?: import("tailwind-merge").ClassNameValue;
|
|
10
10
|
input?: import("tailwind-merge").ClassNameValue;
|
|
11
11
|
helperWrapper?: import("tailwind-merge").ClassNameValue;
|
|
12
12
|
inputWrapper?: import("tailwind-merge").ClassNameValue;
|
|
@@ -17,8 +17,8 @@ declare const timeVariants: import("tailwind-variants").TVReturnType<{
|
|
|
17
17
|
} | {
|
|
18
18
|
[x: string]: {
|
|
19
19
|
[x: string]: import("tailwind-merge").ClassNameValue | {
|
|
20
|
-
label?: import("tailwind-merge").ClassNameValue;
|
|
21
20
|
base?: import("tailwind-merge").ClassNameValue;
|
|
21
|
+
label?: import("tailwind-merge").ClassNameValue;
|
|
22
22
|
input?: import("tailwind-merge").ClassNameValue;
|
|
23
23
|
helperWrapper?: import("tailwind-merge").ClassNameValue;
|
|
24
24
|
inputWrapper?: import("tailwind-merge").ClassNameValue;
|
|
@@ -37,8 +37,8 @@ declare const timeVariants: import("tailwind-variants").TVReturnType<{
|
|
|
37
37
|
}, undefined, {
|
|
38
38
|
[key: string]: {
|
|
39
39
|
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
40
|
-
label?: import("tailwind-merge").ClassNameValue;
|
|
41
40
|
base?: import("tailwind-merge").ClassNameValue;
|
|
41
|
+
label?: import("tailwind-merge").ClassNameValue;
|
|
42
42
|
input?: import("tailwind-merge").ClassNameValue;
|
|
43
43
|
helperWrapper?: import("tailwind-merge").ClassNameValue;
|
|
44
44
|
inputWrapper?: import("tailwind-merge").ClassNameValue;
|
|
@@ -110,4 +110,4 @@ declare const Time: ({
|
|
|
110
110
|
}: TimeProps) => import("react/jsx-runtime").JSX.Element;
|
|
111
111
|
//#endregion
|
|
112
112
|
export { TimeProps as n, Time as t };
|
|
113
|
-
//# sourceMappingURL=index-
|
|
113
|
+
//# sourceMappingURL=index-C_zjtsGM.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-C_zjtsGM.d.ts","names":[],"sources":["../src/Time/Time.tsx"],"mappings":";;;;cAgBa,YAAA,8BAAY,YAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAsBpB,YAAA,GAAe,OAAO,QAAQ,YAAA;AAAA,KAC9B,SAAA,GAAY,WAAW,QAAQ,YAAA;AAAA,UAEnB,SAAA,SAAkB,YAAA;EAHf;EAKlB,SAAA;EAJG;EAMH,SAAA,GAAY,SAAA;;EAEZ,QAAA;EAR8C;EAU9C,WAAA;EARyB;EAUzB,YAAA;EANY;EAQZ,YAAA;EAZiC;EAcjC,SAAA;EAd6C;EAgB7C,KAAA,GAAQ,SAAA;EAdR;EAgBA,IAAA;EAdY;EAgBZ,MAAA;EAZA;;;;EAiBA,QAAA;EATQ;EAWR,SAAA;AAAA;;;;cAMI,IAAA;EAAQ,SAAA,EAAA,UAAA;EAAA,WAAA;EAAA,YAAA;EAAA,YAAA;EAAA,SAAA;EAAA,IAAA;EAAA,QAAA;EAAA,SAAA;EAAA,GAAA;AAAA,GAUX,SAAA,iCAAS,GAAA,CAAA,OAAA"}
|
|
@@ -5,10 +5,10 @@ import { ReactNode } from "react";
|
|
|
5
5
|
declare const sliderVariants: import("tailwind-variants").TVReturnType<{
|
|
6
6
|
[key: string]: {
|
|
7
7
|
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
8
|
+
base?: import("tailwind-merge").ClassNameValue;
|
|
8
9
|
label?: import("tailwind-merge").ClassNameValue;
|
|
9
10
|
value?: import("tailwind-merge").ClassNameValue;
|
|
10
11
|
errorMessage?: import("tailwind-merge").ClassNameValue;
|
|
11
|
-
base?: import("tailwind-merge").ClassNameValue;
|
|
12
12
|
mark?: import("tailwind-merge").ClassNameValue;
|
|
13
13
|
track?: import("tailwind-merge").ClassNameValue;
|
|
14
14
|
step?: import("tailwind-merge").ClassNameValue;
|
|
@@ -23,10 +23,10 @@ declare const sliderVariants: import("tailwind-variants").TVReturnType<{
|
|
|
23
23
|
} | {
|
|
24
24
|
[x: string]: {
|
|
25
25
|
[x: string]: import("tailwind-merge").ClassNameValue | {
|
|
26
|
+
base?: import("tailwind-merge").ClassNameValue;
|
|
26
27
|
label?: import("tailwind-merge").ClassNameValue;
|
|
27
28
|
value?: import("tailwind-merge").ClassNameValue;
|
|
28
29
|
errorMessage?: import("tailwind-merge").ClassNameValue;
|
|
29
|
-
base?: import("tailwind-merge").ClassNameValue;
|
|
30
30
|
mark?: import("tailwind-merge").ClassNameValue;
|
|
31
31
|
track?: import("tailwind-merge").ClassNameValue;
|
|
32
32
|
step?: import("tailwind-merge").ClassNameValue;
|
|
@@ -55,10 +55,10 @@ declare const sliderVariants: import("tailwind-variants").TVReturnType<{
|
|
|
55
55
|
}, undefined, {
|
|
56
56
|
[key: string]: {
|
|
57
57
|
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
58
|
+
base?: import("tailwind-merge").ClassNameValue;
|
|
58
59
|
label?: import("tailwind-merge").ClassNameValue;
|
|
59
60
|
value?: import("tailwind-merge").ClassNameValue;
|
|
60
61
|
errorMessage?: import("tailwind-merge").ClassNameValue;
|
|
61
|
-
base?: import("tailwind-merge").ClassNameValue;
|
|
62
62
|
mark?: import("tailwind-merge").ClassNameValue;
|
|
63
63
|
track?: import("tailwind-merge").ClassNameValue;
|
|
64
64
|
step?: import("tailwind-merge").ClassNameValue;
|
|
@@ -164,4 +164,4 @@ declare const Slider: ({
|
|
|
164
164
|
}: SliderProps) => import("react/jsx-runtime").JSX.Element;
|
|
165
165
|
//#endregion
|
|
166
166
|
export { SliderProps as n, Slider as t };
|
|
167
|
-
//# sourceMappingURL=index-
|
|
167
|
+
//# sourceMappingURL=index-D8udSkgA.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-D8udSkgA.d.cts","names":[],"sources":["../src/Slider/Slider.tsx"],"mappings":";;;;cAYa,cAAA,8BAAc,YAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAqBtB,YAAA,GAAe,OAAO,QAAQ,cAAA;AAAA,KAC9B,SAAA,GAAY,WAAW,QAAQ,cAAA;AAAA,UAEnB,WAAA,SAAoB,YAAA;;EAEnC,SAAA;;EAEA,SAAA,GAAY,SAAA;;EAEZ,QAAA;;EAEA,UAAA,GAAa,SAAA;;EAEb,UAAA;;EAEA,KAAA;;EAEA,IAAA;;;;;EAKA,SAAA;;;;;EAKA,IAAA;;EAEA,YAAA,GAAe,SAAA;;;;;EAKf,IAAA;;EAEA,MAAA;;;;AAtCC;EA2CD,QAAA;;;AAzC+C;AAAA;EA8C/C,QAAA;AAAA;;AA7CgD;AAElD;cAiDM,MAAA;EAAU,SAAA;EAAA,UAAA;EAAA,UAAA;EAAA,IAAA;EAAA,SAAA;EAAA,IAAA;EAAA,YAAA;EAAA,IAAA;EAAA,QAAA;EAAA,QAAA;EAAA,GAAA;AAAA,GAYb,WAAA,iCAAW,GAAA,CAAA,OAAA"}
|
|
@@ -6,11 +6,11 @@ import { Props } from "react-select";
|
|
|
6
6
|
declare const selectVariants: import("tailwind-variants").TVReturnType<{
|
|
7
7
|
[key: string]: {
|
|
8
8
|
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
9
|
+
base?: import("tailwind-merge").ClassNameValue;
|
|
9
10
|
label?: import("tailwind-merge").ClassNameValue;
|
|
11
|
+
input?: import("tailwind-merge").ClassNameValue;
|
|
10
12
|
control?: import("tailwind-merge").ClassNameValue;
|
|
11
13
|
placeholder?: import("tailwind-merge").ClassNameValue;
|
|
12
|
-
base?: import("tailwind-merge").ClassNameValue;
|
|
13
|
-
input?: import("tailwind-merge").ClassNameValue;
|
|
14
14
|
menu?: import("tailwind-merge").ClassNameValue;
|
|
15
15
|
option?: import("tailwind-merge").ClassNameValue;
|
|
16
16
|
group?: import("tailwind-merge").ClassNameValue;
|
|
@@ -42,11 +42,11 @@ declare const selectVariants: import("tailwind-variants").TVReturnType<{
|
|
|
42
42
|
} | {
|
|
43
43
|
[x: string]: {
|
|
44
44
|
[x: string]: import("tailwind-merge").ClassNameValue | {
|
|
45
|
+
base?: import("tailwind-merge").ClassNameValue;
|
|
45
46
|
label?: import("tailwind-merge").ClassNameValue;
|
|
47
|
+
input?: import("tailwind-merge").ClassNameValue;
|
|
46
48
|
control?: import("tailwind-merge").ClassNameValue;
|
|
47
49
|
placeholder?: import("tailwind-merge").ClassNameValue;
|
|
48
|
-
base?: import("tailwind-merge").ClassNameValue;
|
|
49
|
-
input?: import("tailwind-merge").ClassNameValue;
|
|
50
50
|
menu?: import("tailwind-merge").ClassNameValue;
|
|
51
51
|
option?: import("tailwind-merge").ClassNameValue;
|
|
52
52
|
group?: import("tailwind-merge").ClassNameValue;
|
|
@@ -110,11 +110,11 @@ declare const selectVariants: import("tailwind-variants").TVReturnType<{
|
|
|
110
110
|
}, undefined, {
|
|
111
111
|
[key: string]: {
|
|
112
112
|
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
113
|
+
base?: import("tailwind-merge").ClassNameValue;
|
|
113
114
|
label?: import("tailwind-merge").ClassNameValue;
|
|
115
|
+
input?: import("tailwind-merge").ClassNameValue;
|
|
114
116
|
control?: import("tailwind-merge").ClassNameValue;
|
|
115
117
|
placeholder?: import("tailwind-merge").ClassNameValue;
|
|
116
|
-
base?: import("tailwind-merge").ClassNameValue;
|
|
117
|
-
input?: import("tailwind-merge").ClassNameValue;
|
|
118
118
|
menu?: import("tailwind-merge").ClassNameValue;
|
|
119
119
|
option?: import("tailwind-merge").ClassNameValue;
|
|
120
120
|
group?: import("tailwind-merge").ClassNameValue;
|
|
@@ -287,4 +287,4 @@ declare const Select: ({
|
|
|
287
287
|
}: SelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
288
288
|
//#endregion
|
|
289
289
|
export { SelectProps as n, Select as t };
|
|
290
|
-
//# sourceMappingURL=index-
|
|
290
|
+
//# sourceMappingURL=index-DNADTCoc.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-DNADTCoc.d.cts","names":[],"sources":["../src/Select/Select.tsx"],"mappings":";;;;;cAea,cAAA,8BAAc,YAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UA8CjB,YAAA;;EAER,QAAA;;;;;EAKA,UAAA;;EAEA,KAAA,GAAQ,SAAS;;EAEjB,KAAA;AAAA;AAAA,KAGG,YAAA,GAAe,OAAO,QAAQ,cAAA;AAAA,KAC9B,SAAA,GAAY,WAAW,QAAQ,cAAA;AAAA,UAEnB,WAAA,SAAoB,YAAA;;EAEnC,SAAA;;EAEA,SAAA,GAAY,SAAA;;EAEZ,SAAA;;EAEA,QAAA;;EAEA,aAAA;;EAEA,YAAA,iBAEM,MAAA,GAAS,YAAA,EAAc,UAAA;;EAE7B,UAAA;;EAEA,KAAA,GAAQ,SAAA;;EAER,OAAA;;EAEA,WAAA;;EAEA,IAAA;;EAEA,WAAA;;EAEA,aAAA,GAAgB,KAAA;;EAEhB,OAAA,EAAS,YAAA;;EAET,kBAAA,GAAqB,KAAA;;EAErB,iBAAA,eAAgC,KAAA;;;;;;;;EAQhC,sBAAA,GAAyB,YAAA,GAAe,YAAA;;EAExC,MAAA;AAAA;;cA8CI,MAAA;EAAU,SAAA;EAAA,SAAA;EAAA,aAAA;EAAA,YAAA;EAAA,UAAA;EAAA,OAAA;EAAA,WAAA;EAAA,IAAA;EAAA,aAAA;EAAA,OAAA;EAAA,WAAA;EAAA,kBAAA;EAAA,iBAAA;EAAA,sBAAA;EAAA,GAAA;AAAA,GAgBb,WAAA,iCAAW,GAAA,CAAA,OAAA"}
|
|
@@ -4,8 +4,8 @@ import { ReactNode } from "react";
|
|
|
4
4
|
declare const radioBoxesVariants: import("tailwind-variants").TVReturnType<{
|
|
5
5
|
[key: string]: {
|
|
6
6
|
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
7
|
-
label?: import("tailwind-merge").ClassNameValue;
|
|
8
7
|
base?: import("tailwind-merge").ClassNameValue;
|
|
8
|
+
label?: import("tailwind-merge").ClassNameValue;
|
|
9
9
|
wrapper?: import("tailwind-merge").ClassNameValue;
|
|
10
10
|
boxBase?: import("tailwind-merge").ClassNameValue;
|
|
11
11
|
boxControl?: import("tailwind-merge").ClassNameValue;
|
|
@@ -17,8 +17,8 @@ declare const radioBoxesVariants: import("tailwind-variants").TVReturnType<{
|
|
|
17
17
|
} | {
|
|
18
18
|
[x: string]: {
|
|
19
19
|
[x: string]: import("tailwind-merge").ClassNameValue | {
|
|
20
|
-
label?: import("tailwind-merge").ClassNameValue;
|
|
21
20
|
base?: import("tailwind-merge").ClassNameValue;
|
|
21
|
+
label?: import("tailwind-merge").ClassNameValue;
|
|
22
22
|
wrapper?: import("tailwind-merge").ClassNameValue;
|
|
23
23
|
boxBase?: import("tailwind-merge").ClassNameValue;
|
|
24
24
|
boxControl?: import("tailwind-merge").ClassNameValue;
|
|
@@ -39,8 +39,8 @@ declare const radioBoxesVariants: import("tailwind-variants").TVReturnType<{
|
|
|
39
39
|
}, undefined, {
|
|
40
40
|
[key: string]: {
|
|
41
41
|
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
42
|
-
label?: import("tailwind-merge").ClassNameValue;
|
|
43
42
|
base?: import("tailwind-merge").ClassNameValue;
|
|
43
|
+
label?: import("tailwind-merge").ClassNameValue;
|
|
44
44
|
wrapper?: import("tailwind-merge").ClassNameValue;
|
|
45
45
|
boxBase?: import("tailwind-merge").ClassNameValue;
|
|
46
46
|
boxControl?: import("tailwind-merge").ClassNameValue;
|
|
@@ -171,4 +171,4 @@ declare const radioBoxVariants: import("tailwind-variants").TVReturnType<{
|
|
|
171
171
|
}, undefined, unknown, unknown, undefined>>;
|
|
172
172
|
//#endregion
|
|
173
173
|
export { RadioBoxes as n, RadioBoxesProps as r, radioBoxVariants as t };
|
|
174
|
-
//# sourceMappingURL=index-
|
|
174
|
+
//# sourceMappingURL=index-GxTY7aAc.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-GxTY7aAc.d.ts","names":[],"sources":["../src/RadioBoxes/RadioBoxes.tsx","../src/RadioBoxes/RadioBox.tsx"],"mappings":";;;cAaa,kBAAA,8BAAkB,YAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAgB1B,YAAA,GAAe,OAAO,QAAQ,kBAAA;AAAA,KAC9B,SAAA,GAAY,WAAW,QAAQ,kBAAA;AAAA,UAEnB,gBAAA;;EAEf,WAAA,GAAc,SAAA;;EAEd,QAAA;;EAEA,KAAA,GAAQ,SAAA;;EAER,IAAA,GAAO,SAAA;;EAEP,MAAA;;EAEA,KAAA;AAAA;AAAA,UAGe,eAAA,SAAwB,YAAA;;EAEvC,SAAA;;EAEA,SAAA,GAAY,SAAA;;EAEZ,QAAA;;EAEA,MAAA;EA1BG;EA4BH,KAAA,GAAQ,SAAA;;EAER,IAAA;EA9BmD;EAgCnD,OAAA,EAAS,gBAAA;EA/BG;EAiCZ,MAAA;AAAA;AAjCoD;AAEtD;;AAFsD,cAuChD,UAAA;EAAc,SAAA;EAAA,MAAA;EAAA,IAAA;EAAA,OAAA;EAAA,GAAA;AAAA,GAMjB,eAAA,iCAAe,GAAA,CAAA,OAAA;;;cClEL,gBAAA,8BAAgB,YAAA"}
|
|
@@ -5,8 +5,8 @@ import { ReactElement, ReactNode } from "react";
|
|
|
5
5
|
declare const radiosVariants: import("tailwind-variants").TVReturnType<{
|
|
6
6
|
[key: string]: {
|
|
7
7
|
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
8
|
-
label?: import("tailwind-merge").ClassNameValue;
|
|
9
8
|
base?: import("tailwind-merge").ClassNameValue;
|
|
9
|
+
label?: import("tailwind-merge").ClassNameValue;
|
|
10
10
|
wrapper?: import("tailwind-merge").ClassNameValue;
|
|
11
11
|
itemBase?: import("tailwind-merge").ClassNameValue;
|
|
12
12
|
itemControl?: import("tailwind-merge").ClassNameValue;
|
|
@@ -19,8 +19,8 @@ declare const radiosVariants: import("tailwind-variants").TVReturnType<{
|
|
|
19
19
|
} | {
|
|
20
20
|
[x: string]: {
|
|
21
21
|
[x: string]: import("tailwind-merge").ClassNameValue | {
|
|
22
|
-
label?: import("tailwind-merge").ClassNameValue;
|
|
23
22
|
base?: import("tailwind-merge").ClassNameValue;
|
|
23
|
+
label?: import("tailwind-merge").ClassNameValue;
|
|
24
24
|
wrapper?: import("tailwind-merge").ClassNameValue;
|
|
25
25
|
itemBase?: import("tailwind-merge").ClassNameValue;
|
|
26
26
|
itemControl?: import("tailwind-merge").ClassNameValue;
|
|
@@ -43,8 +43,8 @@ declare const radiosVariants: import("tailwind-variants").TVReturnType<{
|
|
|
43
43
|
}, undefined, {
|
|
44
44
|
[key: string]: {
|
|
45
45
|
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
46
|
-
label?: import("tailwind-merge").ClassNameValue;
|
|
47
46
|
base?: import("tailwind-merge").ClassNameValue;
|
|
47
|
+
label?: import("tailwind-merge").ClassNameValue;
|
|
48
48
|
wrapper?: import("tailwind-merge").ClassNameValue;
|
|
49
49
|
itemBase?: import("tailwind-merge").ClassNameValue;
|
|
50
50
|
itemControl?: import("tailwind-merge").ClassNameValue;
|
|
@@ -119,4 +119,4 @@ declare const Radios: ({
|
|
|
119
119
|
}: RadiosProps) => ReactElement;
|
|
120
120
|
//#endregion
|
|
121
121
|
export { RadiosProps as n, Radios as t };
|
|
122
|
-
//# sourceMappingURL=index-
|
|
122
|
+
//# sourceMappingURL=index-QgVr4iWX.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-QgVr4iWX.d.cts","names":[],"sources":["../src/Radios/Radios.tsx"],"mappings":";;;;cAaa,cAAA,8BAAc,YAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAkBtB,YAAA,GAAe,OAAO,QAAQ,cAAA;AAAA,KAC9B,SAAA,GAAY,WAAW,QAAQ,cAAA;AAAA,UAEnB,WAAA;;EAEf,QAAA;;EAEA,KAAA,GAAQ,SAAA;;EAER,IAAA,GAAO,SAAS;;EAEhB,MAAA;;EAEA,KAAA;AAAA;AAAA,UAGe,WAAA,SAAoB,YAAA;;EAEnC,SAAA;;EAEA,SAAA,GAAY,SAAA;;EAEZ,QAAA;;EAEA,MAAA;;EAEA,KAAA,GAAQ,SAAA;;EAER,IAAA;EA5BG;EA8BH,OAAA,EAAS,WAAA;;EAET,MAAA;AAAA;AAhC+C;;;AAAA,cAsC3C,MAAA;EAAU,SAAA;EAAA,MAAA;EAAA,IAAA;EAAA,OAAA;EAAA,GAAA;AAAA,GAMb,WAAA,KAAc,YAAA"}
|
|
@@ -5,8 +5,8 @@ import { ReactElement, ReactNode } from "react";
|
|
|
5
5
|
declare const radiosVariants: import("tailwind-variants").TVReturnType<{
|
|
6
6
|
[key: string]: {
|
|
7
7
|
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
8
|
-
label?: import("tailwind-merge").ClassNameValue;
|
|
9
8
|
base?: import("tailwind-merge").ClassNameValue;
|
|
9
|
+
label?: import("tailwind-merge").ClassNameValue;
|
|
10
10
|
wrapper?: import("tailwind-merge").ClassNameValue;
|
|
11
11
|
itemBase?: import("tailwind-merge").ClassNameValue;
|
|
12
12
|
itemControl?: import("tailwind-merge").ClassNameValue;
|
|
@@ -19,8 +19,8 @@ declare const radiosVariants: import("tailwind-variants").TVReturnType<{
|
|
|
19
19
|
} | {
|
|
20
20
|
[x: string]: {
|
|
21
21
|
[x: string]: import("tailwind-merge").ClassNameValue | {
|
|
22
|
-
label?: import("tailwind-merge").ClassNameValue;
|
|
23
22
|
base?: import("tailwind-merge").ClassNameValue;
|
|
23
|
+
label?: import("tailwind-merge").ClassNameValue;
|
|
24
24
|
wrapper?: import("tailwind-merge").ClassNameValue;
|
|
25
25
|
itemBase?: import("tailwind-merge").ClassNameValue;
|
|
26
26
|
itemControl?: import("tailwind-merge").ClassNameValue;
|
|
@@ -43,8 +43,8 @@ declare const radiosVariants: import("tailwind-variants").TVReturnType<{
|
|
|
43
43
|
}, undefined, {
|
|
44
44
|
[key: string]: {
|
|
45
45
|
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
46
|
-
label?: import("tailwind-merge").ClassNameValue;
|
|
47
46
|
base?: import("tailwind-merge").ClassNameValue;
|
|
47
|
+
label?: import("tailwind-merge").ClassNameValue;
|
|
48
48
|
wrapper?: import("tailwind-merge").ClassNameValue;
|
|
49
49
|
itemBase?: import("tailwind-merge").ClassNameValue;
|
|
50
50
|
itemControl?: import("tailwind-merge").ClassNameValue;
|
|
@@ -119,4 +119,4 @@ declare const Radios: ({
|
|
|
119
119
|
}: RadiosProps) => ReactElement;
|
|
120
120
|
//#endregion
|
|
121
121
|
export { RadiosProps as n, Radios as t };
|
|
122
|
-
//# sourceMappingURL=index-
|
|
122
|
+
//# sourceMappingURL=index-dgho7gpc.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-dgho7gpc.d.ts","names":[],"sources":["../src/Radios/Radios.tsx"],"mappings":";;;;cAaa,cAAA,8BAAc,YAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAkBtB,YAAA,GAAe,OAAO,QAAQ,cAAA;AAAA,KAC9B,SAAA,GAAY,WAAW,QAAQ,cAAA;AAAA,UAEnB,WAAA;;EAEf,QAAA;;EAEA,KAAA,GAAQ,SAAA;;EAER,IAAA,GAAO,SAAS;;EAEhB,MAAA;;EAEA,KAAA;AAAA;AAAA,UAGe,WAAA,SAAoB,YAAA;;EAEnC,SAAA;;EAEA,SAAA,GAAY,SAAA;;EAEZ,QAAA;;EAEA,MAAA;;EAEA,KAAA,GAAQ,SAAA;;EAER,IAAA;EA5BG;EA8BH,OAAA,EAAS,WAAA;;EAET,MAAA;AAAA;AAhC+C;;;AAAA,cAsC3C,MAAA;EAAU,SAAA;EAAA,MAAA;EAAA,IAAA;EAAA,OAAA;EAAA,GAAA;AAAA,GAMb,WAAA,KAAc,YAAA"}
|
package/dist/index.d.cts
CHANGED
|
@@ -6,24 +6,24 @@ import { n as FieldCardProps, r as fieldCardVariants, t as FieldCard } from "./i
|
|
|
6
6
|
import { n as FormProps, t as Form } from "./index-C3-TV4Up.cjs";
|
|
7
7
|
import { n as GridProps, t as Grid } from "./index-BqxDWhNr.cjs";
|
|
8
8
|
import { n as InputProps, t as Input } from "./index-B61zRzeS.cjs";
|
|
9
|
-
import { n as RadioBoxes, r as RadioBoxesProps, t as radioBoxVariants } from "./index-
|
|
9
|
+
import { n as RadioBoxes, r as RadioBoxesProps, t as radioBoxVariants } from "./index-9_3XTDJC.cjs";
|
|
10
10
|
import { n as RadioTabsProps, t as RadioTabs } from "./index-DBsF7xsq.cjs";
|
|
11
|
-
import { n as RadiosProps, t as Radios } from "./index-
|
|
12
|
-
import { n as SelectProps, t as Select } from "./index-
|
|
13
|
-
import { n as SliderProps, t as Slider } from "./index-
|
|
11
|
+
import { n as RadiosProps, t as Radios } from "./index-QgVr4iWX.cjs";
|
|
12
|
+
import { n as SelectProps, t as Select } from "./index-DNADTCoc.cjs";
|
|
13
|
+
import { n as SliderProps, t as Slider } from "./index-D8udSkgA.cjs";
|
|
14
14
|
import { n as SubmitButtonProps, t as SubmitButton } from "./index-DpXSZCZe.cjs";
|
|
15
|
-
import { n as SwitchProps, t as Switch } from "./index-
|
|
15
|
+
import { n as SwitchProps, t as Switch } from "./index-Bzs7_gnk.cjs";
|
|
16
16
|
import { n as SwitchBoxProps, r as switchBoxVariants, t as SwitchBox } from "./index-CxY9VWv5.cjs";
|
|
17
17
|
import { n as TextAreaProps, t as TextArea } from "./index-DUmNI6cE.cjs";
|
|
18
|
-
import { n as TimeProps, t as Time } from "./index-
|
|
18
|
+
import { n as TimeProps, t as Time } from "./index-7UT2Ki5e.cjs";
|
|
19
19
|
import { createOptionValueConverter, flatArrayKey, fromNullishString, isValueEmpty, nameToTestId, toFormFormat, toNullishString, toSubmitFormat, toValidationFormat } from "./helpers/index.cjs";
|
|
20
20
|
import { n as useClientValidation, t as clientValidationSchemaByName } from "./useClientValidation-C2dLJnDI.cjs";
|
|
21
21
|
import { n as UseControllerReturn, r as useController, t as UseControllerProps } from "./useController-BT3Fd0IO.cjs";
|
|
22
|
-
import { n as useFormContext, t as checkFieldIsRequired } from "./useFormContext-
|
|
22
|
+
import { n as useFormContext, t as checkFieldIsRequired } from "./useFormContext-Ddc1HWKv.cjs";
|
|
23
23
|
import { t as useInput } from "./useInput-DZOmMKcp.cjs";
|
|
24
24
|
import { n as UseInputValueDebounceReturn, r as useInputValueDebounce, t as UseInputValueDebounceOptions } from "./useInputValueDebounce-CfQDiomI.cjs";
|
|
25
|
-
import { n as UseUniformFieldReturn, r as useUniformField, t as UseUniformFieldParams } from "./useUniformField-
|
|
26
|
-
import { n as useUniformFieldArray, t as UseUniformFieldArrayProps } from "./useUniformFieldArray-
|
|
25
|
+
import { n as UseUniformFieldReturn, r as useUniformField, t as UseUniformFieldParams } from "./useUniformField-CmAYcGER.cjs";
|
|
26
|
+
import { n as useUniformFieldArray, t as UseUniformFieldArrayProps } from "./useUniformFieldArray-D3fdzwzD.cjs";
|
|
27
27
|
import { n as useWatchFormReset, t as UseWatchFormResetOptions } from "./useWatchFormReset-BSd6jMxU.cjs";
|
|
28
28
|
import { n as useWatchUserChange, t as UseWatchUserChangeOptions } from "./useWatchUserChange-DSAboNCs.cjs";
|
|
29
29
|
import { n as FieldCopyTestIdButtonProps, t as FieldCopyTestIdButton } from "./index-CXvUaeCL.cjs";
|
package/dist/index.d.ts
CHANGED
|
@@ -6,24 +6,24 @@ import { n as FieldCardProps, r as fieldCardVariants, t as FieldCard } from "./i
|
|
|
6
6
|
import { n as FormProps, t as Form } from "./index-54OZEaUU.js";
|
|
7
7
|
import { n as GridProps, t as Grid } from "./index-PWRw2bPH.js";
|
|
8
8
|
import { n as InputProps, t as Input } from "./index-PMCqBX0t.js";
|
|
9
|
-
import { n as RadioBoxes, r as RadioBoxesProps, t as radioBoxVariants } from "./index-
|
|
9
|
+
import { n as RadioBoxes, r as RadioBoxesProps, t as radioBoxVariants } from "./index-GxTY7aAc.js";
|
|
10
10
|
import { n as RadioTabsProps, t as RadioTabs } from "./index-BSjcTo7A.js";
|
|
11
|
-
import { n as RadiosProps, t as Radios } from "./index-
|
|
12
|
-
import { n as SelectProps, t as Select } from "./index-
|
|
13
|
-
import { n as SliderProps, t as Slider } from "./index-
|
|
11
|
+
import { n as RadiosProps, t as Radios } from "./index-dgho7gpc.js";
|
|
12
|
+
import { n as SelectProps, t as Select } from "./index-C4GJH8Xv.js";
|
|
13
|
+
import { n as SliderProps, t as Slider } from "./index-CE8fnXuQ.js";
|
|
14
14
|
import { n as SubmitButtonProps, t as SubmitButton } from "./index-CV7wqRev.js";
|
|
15
|
-
import { n as SwitchProps, t as Switch } from "./index-
|
|
15
|
+
import { n as SwitchProps, t as Switch } from "./index-B7gQppgQ.js";
|
|
16
16
|
import { n as SwitchBoxProps, r as switchBoxVariants, t as SwitchBox } from "./index-Cwb7sTO0.js";
|
|
17
17
|
import { n as TextAreaProps, t as TextArea } from "./index-CbPJiRK2.js";
|
|
18
|
-
import { n as TimeProps, t as Time } from "./index-
|
|
18
|
+
import { n as TimeProps, t as Time } from "./index-C_zjtsGM.js";
|
|
19
19
|
import { createOptionValueConverter, flatArrayKey, fromNullishString, isValueEmpty, nameToTestId, toFormFormat, toNullishString, toSubmitFormat, toValidationFormat } from "./helpers/index.js";
|
|
20
20
|
import { n as useClientValidation, t as clientValidationSchemaByName } from "./useClientValidation-qRq2_spX.js";
|
|
21
21
|
import { n as UseControllerReturn, r as useController, t as UseControllerProps } from "./useController-CzP0aVFC.js";
|
|
22
|
-
import { n as useFormContext, t as checkFieldIsRequired } from "./useFormContext-
|
|
22
|
+
import { n as useFormContext, t as checkFieldIsRequired } from "./useFormContext-CpLVpNAf.js";
|
|
23
23
|
import { t as useInput } from "./useInput-BdH8oftG.js";
|
|
24
24
|
import { n as UseInputValueDebounceReturn, r as useInputValueDebounce, t as UseInputValueDebounceOptions } from "./useInputValueDebounce-DZgzL7GQ.js";
|
|
25
|
-
import { n as UseUniformFieldReturn, r as useUniformField, t as UseUniformFieldParams } from "./useUniformField-
|
|
26
|
-
import { n as useUniformFieldArray, t as UseUniformFieldArrayProps } from "./useUniformFieldArray-
|
|
25
|
+
import { n as UseUniformFieldReturn, r as useUniformField, t as UseUniformFieldParams } from "./useUniformField-DJDpQzRo.js";
|
|
26
|
+
import { n as useUniformFieldArray, t as UseUniformFieldArrayProps } from "./useUniformFieldArray-zGcIhwhF.js";
|
|
27
27
|
import { n as useWatchFormReset, t as UseWatchFormResetOptions } from "./useWatchFormReset-C7YJ-I3N.js";
|
|
28
28
|
import { n as useWatchUserChange, t as UseWatchUserChangeOptions } from "./useWatchUserChange-CpyZz2i7.js";
|
|
29
29
|
import { n as FieldCopyTestIdButtonProps, t as FieldCopyTestIdButton } from "./index-CHQKk_fN2.js";
|
|
@@ -30,14 +30,14 @@ declare const useFormContext$1: <TFieldValues extends FieldValues = FieldValues,
|
|
|
30
30
|
reset: import("react-hook-form").UseFormReset<TFieldValues>;
|
|
31
31
|
subscribe: import("react-hook-form").UseFormSubscribe<TFieldValues>;
|
|
32
32
|
watch: import("react-hook-form").UseFormWatch<TFieldValues>;
|
|
33
|
-
debugMode: "
|
|
33
|
+
debugMode: "debug" | "disabled" | "debug-testids" | "off";
|
|
34
34
|
debugModeSettings?: DebugModeSettings;
|
|
35
35
|
formReset: {
|
|
36
36
|
subscribe: (listener: FormResetListener) => () => void;
|
|
37
37
|
notify: () => void;
|
|
38
38
|
};
|
|
39
39
|
preventSubmit: (prevent: boolean) => void;
|
|
40
|
-
setDebugMode: (debugMode: "
|
|
40
|
+
setDebugMode: (debugMode: "debug" | "disabled" | "debug-testids" | "off") => void;
|
|
41
41
|
triggerSubmit: (e?: import("react").BaseSyntheticEvent) => Promise<void> | void;
|
|
42
42
|
userChange: {
|
|
43
43
|
subscribe: (listener: UserChangeListener) => () => void;
|
|
@@ -63,4 +63,4 @@ declare const useFormContext$1: <TFieldValues extends FieldValues = FieldValues,
|
|
|
63
63
|
};
|
|
64
64
|
//#endregion
|
|
65
65
|
export { useFormContext$1 as n, checkFieldIsRequired as t };
|
|
66
|
-
//# sourceMappingURL=useFormContext-
|
|
66
|
+
//# sourceMappingURL=useFormContext-CpLVpNAf.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFormContext-
|
|
1
|
+
{"version":3,"file":"useFormContext-CpLVpNAf.d.ts","names":[],"sources":["../src/hooks/useFormContext/useFormContext.ts"],"mappings":";;;;;;cAYa,oBAAA,GACX,UAAA,EAAY,YAAY,EACxB,IAAA;;AAFF;;;;;;;;AAEgB;cAmEH,gBAAA,wBACU,WAAA,GAAc,WAAA,uCAEd,YAAA;;wBAoCQ,IAAA,CAAK,YAAA,GAAa,MAAA;;;;;;;;;;;;;;;;;;;;;sCAwB3C,kBAAA,KAAA,OAAA;;0BAAA,kBAAA;;;;mBAiBa,YAAA;eAEE,YAAA;aAC6B,kBAAA"}
|
|
@@ -30,14 +30,14 @@ declare const useFormContext: <TFieldValues extends FieldValues = FieldValues, T
|
|
|
30
30
|
reset: import("react-hook-form").UseFormReset<TFieldValues>;
|
|
31
31
|
subscribe: import("react-hook-form").UseFormSubscribe<TFieldValues>;
|
|
32
32
|
watch: import("react-hook-form").UseFormWatch<TFieldValues>;
|
|
33
|
-
debugMode: "
|
|
33
|
+
debugMode: "debug" | "disabled" | "debug-testids" | "off";
|
|
34
34
|
debugModeSettings?: DebugModeSettings;
|
|
35
35
|
formReset: {
|
|
36
36
|
subscribe: (listener: FormResetListener) => () => void;
|
|
37
37
|
notify: () => void;
|
|
38
38
|
};
|
|
39
39
|
preventSubmit: (prevent: boolean) => void;
|
|
40
|
-
setDebugMode: (debugMode: "
|
|
40
|
+
setDebugMode: (debugMode: "debug" | "disabled" | "debug-testids" | "off") => void;
|
|
41
41
|
triggerSubmit: (e?: import("react").BaseSyntheticEvent) => Promise<void> | void;
|
|
42
42
|
userChange: {
|
|
43
43
|
subscribe: (listener: UserChangeListener) => () => void;
|
|
@@ -63,4 +63,4 @@ declare const useFormContext: <TFieldValues extends FieldValues = FieldValues, T
|
|
|
63
63
|
};
|
|
64
64
|
//#endregion
|
|
65
65
|
export { useFormContext as n, checkFieldIsRequired as t };
|
|
66
|
-
//# sourceMappingURL=useFormContext-
|
|
66
|
+
//# sourceMappingURL=useFormContext-Ddc1HWKv.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFormContext-
|
|
1
|
+
{"version":3,"file":"useFormContext-Ddc1HWKv.d.cts","names":[],"sources":["../src/hooks/useFormContext/useFormContext.ts"],"mappings":";;;;;;cAYa,oBAAA,GACX,UAAA,EAAY,YAAY,EACxB,IAAA;;AAFF;;;;;;;;AAEgB;cAmEH,cAAA,wBACU,WAAA,GAAc,WAAA,uCAEd,YAAA;;wBAoCQ,IAAA,CAAK,YAAA,GAAa,MAAA;;;;;;;;;;;;;;;;;;;;;sCAwB3C,kBAAA,KAAA,OAAA;;0BAAA,kBAAA;;;;mBAiBa,YAAA;eAEE,YAAA;aAC6B,kBAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as InputValueTransform } from "./useInputValueTransform-CNCBU7a9.cjs";
|
|
2
2
|
import { r as useController } from "./useController-BT3Fd0IO.cjs";
|
|
3
|
-
import { n as useFormContext } from "./useFormContext-
|
|
3
|
+
import { n as useFormContext } from "./useFormContext-Ddc1HWKv.cjs";
|
|
4
4
|
import { t as useInput } from "./useInput-DZOmMKcp.cjs";
|
|
5
5
|
import { ReactNode } from "react";
|
|
6
6
|
import { FieldError, FieldValues, Path } from "react-hook-form";
|
|
@@ -95,4 +95,4 @@ interface UseUniformFieldReturn<TFieldValues extends FieldValues = FieldValues>
|
|
|
95
95
|
declare const useUniformField: <TFieldValues extends FieldValues = FieldValues, TDisplay = unknown>(params: UseUniformFieldParams<TFieldValues, TDisplay>) => UseUniformFieldReturn<TFieldValues>;
|
|
96
96
|
//#endregion
|
|
97
97
|
export { UseUniformFieldReturn as n, useUniformField as r, UseUniformFieldParams as t };
|
|
98
|
-
//# sourceMappingURL=useUniformField-
|
|
98
|
+
//# sourceMappingURL=useUniformField-CmAYcGER.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUniformField-
|
|
1
|
+
{"version":3,"file":"useUniformField-CmAYcGER.d.cts","names":[],"sources":["../src/hooks/useUniformField/useUniformField.tsx"],"mappings":";;;;;;;;UAgBiB,qBAAA,sBACM,WAAA,GAAc,WAAA;;EAInC,IAAA,EAAM,IAAA,CAAK,YAAA;EALyB;EAOpC,SAAA;EANqB;EAQrB,QAAA;EAJW;EAMX,KAAA,GAAQ,SAAA;EAAA;EAER,MAAA;EAEY;EAAZ,SAAA,GAAY,mBAAA,CAAoB,QAAA;EAAD;EAE/B,IAAA;AAAA;AAAA,UAGe,qBAAA,sBACM,WAAA,GAAc,WAAA;EAnBnC;EAsBA,SAAA;EAnBM;EAqBN,OAAA,EAAS,UAAA,QAAkB,cAAA,CAAe,YAAA;EAnB1C;EAqBA,SAAA,EAAW,UAAA,QAAkB,cAAA,CAAe,YAAA;EAjB5C;EAmBA,YAAA;EAjBA;EAmBA,QAAA;EAjBY;EAmBZ,KAAA,EAAO,UAAA;EAjBP;EAmBA,YAAA,EAAc,SAAA;EAnBV;EAqBJ,KAAA,EAAO,UAAA,QAAkB,aAAA,CAAc,YAAA;EAlBH;EAoBpC,oBAAA,EAAsB,UAAA,QAAkB,QAAA;EAnBnB;EAqBrB,qBAAA,EAAuB,UAAA,QAAkB,QAAA;EAhBC;EAkB1C,aAAA,EAAe,UAAA,QAAkB,QAAA;EAlBxB;EAoBT,SAAA,EAAW,UAAA,QAAkB,cAAA,CAAe,YAAA;EAlBf;EAoB7B,OAAA;EAdO;EAgBP,KAAA,EAAO,SAAA;EAZgC;EAcvC,MAAA,EAAQ,UAAA,QAAkB,aAAA,CAAc,YAAA;EAdjC;EAgBP,QAAA,EAAU,UAAA,QAAkB,aAAA,CAAc,YAAA;EAdpB;EAgBtB,GAAA,EAAK,UAAA,QAAkB,aAAA,CAAc,YAAA;EAdd;EAgBvB,QAAA;EAde;EAgBf,UAAA,EAAY,UAAA,QAAkB,cAAA,CAAe,YAAA;EAdhB;EAgB7B,MAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA+BW,eAAA,wBACU,WAAA,GAAc,WAAA,sBAGnC,MAAA,EAAQ,qBAAA,CAAsB,YAAA,EAAc,QAAA,MAC3C,qBAAA,CAAsB,YAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as InputValueTransform } from "./useInputValueTransform-dLfFIYW4.js";
|
|
2
2
|
import { r as useController$1 } from "./useController-CzP0aVFC.js";
|
|
3
|
-
import { n as useFormContext$1 } from "./useFormContext-
|
|
3
|
+
import { n as useFormContext$1 } from "./useFormContext-CpLVpNAf.js";
|
|
4
4
|
import { t as useInput } from "./useInput-BdH8oftG.js";
|
|
5
5
|
import { ReactNode } from "react";
|
|
6
6
|
import { FieldError, FieldValues, Path } from "react-hook-form";
|
|
@@ -95,4 +95,4 @@ interface UseUniformFieldReturn<TFieldValues extends FieldValues = FieldValues>
|
|
|
95
95
|
declare const useUniformField: <TFieldValues extends FieldValues = FieldValues, TDisplay = unknown>(params: UseUniformFieldParams<TFieldValues, TDisplay>) => UseUniformFieldReturn<TFieldValues>;
|
|
96
96
|
//#endregion
|
|
97
97
|
export { UseUniformFieldReturn as n, useUniformField as r, UseUniformFieldParams as t };
|
|
98
|
-
//# sourceMappingURL=useUniformField-
|
|
98
|
+
//# sourceMappingURL=useUniformField-DJDpQzRo.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUniformField-
|
|
1
|
+
{"version":3,"file":"useUniformField-DJDpQzRo.d.ts","names":[],"sources":["../src/hooks/useUniformField/useUniformField.tsx"],"mappings":";;;;;;;;UAgBiB,qBAAA,sBACM,WAAA,GAAc,WAAA;;EAInC,IAAA,EAAM,IAAA,CAAK,YAAA;EALyB;EAOpC,SAAA;EANqB;EAQrB,QAAA;EAJW;EAMX,KAAA,GAAQ,SAAA;EAAA;EAER,MAAA;EAEY;EAAZ,SAAA,GAAY,mBAAA,CAAoB,QAAA;EAAD;EAE/B,IAAA;AAAA;AAAA,UAGe,qBAAA,sBACM,WAAA,GAAc,WAAA;EAnBnC;EAsBA,SAAA;EAnBM;EAqBN,OAAA,EAAS,UAAA,QAAkB,gBAAA,CAAe,YAAA;EAnB1C;EAqBA,SAAA,EAAW,UAAA,QAAkB,gBAAA,CAAe,YAAA;EAjB5C;EAmBA,YAAA;EAjBA;EAmBA,QAAA;EAjBY;EAmBZ,KAAA,EAAO,UAAA;EAjBP;EAmBA,YAAA,EAAc,SAAA;EAnBV;EAqBJ,KAAA,EAAO,UAAA,QAAkB,eAAA,CAAc,YAAA;EAlBH;EAoBpC,oBAAA,EAAsB,UAAA,QAAkB,QAAA;EAnBnB;EAqBrB,qBAAA,EAAuB,UAAA,QAAkB,QAAA;EAhBC;EAkB1C,aAAA,EAAe,UAAA,QAAkB,QAAA;EAlBxB;EAoBT,SAAA,EAAW,UAAA,QAAkB,gBAAA,CAAe,YAAA;EAlBf;EAoB7B,OAAA;EAdO;EAgBP,KAAA,EAAO,SAAA;EAZgC;EAcvC,MAAA,EAAQ,UAAA,QAAkB,eAAA,CAAc,YAAA;EAdjC;EAgBP,QAAA,EAAU,UAAA,QAAkB,eAAA,CAAc,YAAA;EAdpB;EAgBtB,GAAA,EAAK,UAAA,QAAkB,eAAA,CAAc,YAAA;EAdd;EAgBvB,QAAA;EAde;EAgBf,UAAA,EAAY,UAAA,QAAkB,gBAAA,CAAe,YAAA;EAdhB;EAgB7B,MAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA+BW,eAAA,wBACU,WAAA,GAAc,WAAA,sBAGnC,MAAA,EAAQ,qBAAA,CAAsB,YAAA,EAAc,QAAA,MAC3C,qBAAA,CAAsB,YAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as useController } from "./useController-BT3Fd0IO.cjs";
|
|
2
|
-
import { n as useFormContext } from "./useFormContext-
|
|
2
|
+
import { n as useFormContext } from "./useFormContext-Ddc1HWKv.cjs";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
import { ArrayPath, FieldValues } from "react-hook-form";
|
|
5
5
|
|
|
@@ -76,4 +76,4 @@ declare const useUniformFieldArray: <TFieldValues extends FieldValues = FieldVal
|
|
|
76
76
|
};
|
|
77
77
|
//#endregion
|
|
78
78
|
export { useUniformFieldArray as n, UseUniformFieldArrayProps as t };
|
|
79
|
-
//# sourceMappingURL=useUniformFieldArray-
|
|
79
|
+
//# sourceMappingURL=useUniformFieldArray-D3fdzwzD.d.cts.map
|
package/dist/{useUniformFieldArray-kkOHxNFF.d.cts.map → useUniformFieldArray-D3fdzwzD.d.cts.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUniformFieldArray-
|
|
1
|
+
{"version":3,"file":"useUniformFieldArray-D3fdzwzD.d.cts","names":[],"sources":["../src/hooks/useUniformFieldArray/useUniformFieldArray.ts"],"mappings":";;;;;;UAaiB,yBAAA,sBACM,WAAA,GAAc,WAAA;;EAGnC,IAAA,EAAM,SAAA,CAAU,YAAA;;EAEhB,IAAA;EANe;EAQf,mBAAA;EARwC;EAUxC,uBAAA;EATmC;EAWnC,QAAA;EARM;EAUN,MAAA;EAEiB;EAAjB,KAAA,GAAQ,SAAA;AAAA;;;;;;;;;;;;;;AAAS;cAiBN,oBAAA,wBACU,WAAA,GAAc,WAAA;EACnC,IAAA;EAAA,IAAA;EAAA,mBAAA,EAAA,oBAAA;EAAA,uBAAA;EAAA,QAAA;EAAA,MAAA,EAAA,cAAA;EAAA;AAAA,GAQC,yBAAA,CAA0B,YAAA;;;;;;;;;kBAnCR,KAAA;;;;;;;;;UAoEJ,UAAA;YAEuB,UAAA,QAFvB,aAAA;OAK4B,UAAA,QAHL,aAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as useController$1 } from "./useController-CzP0aVFC.js";
|
|
2
|
-
import { n as useFormContext$1 } from "./useFormContext-
|
|
2
|
+
import { n as useFormContext$1 } from "./useFormContext-CpLVpNAf.js";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
import { ArrayPath, FieldValues } from "react-hook-form";
|
|
5
5
|
|
|
@@ -76,4 +76,4 @@ declare const useUniformFieldArray: <TFieldValues extends FieldValues = FieldVal
|
|
|
76
76
|
};
|
|
77
77
|
//#endregion
|
|
78
78
|
export { useUniformFieldArray as n, UseUniformFieldArrayProps as t };
|
|
79
|
-
//# sourceMappingURL=useUniformFieldArray-
|
|
79
|
+
//# sourceMappingURL=useUniformFieldArray-zGcIhwhF.d.ts.map
|
package/dist/{useUniformFieldArray-CdWv1SEk.d.ts.map → useUniformFieldArray-zGcIhwhF.d.ts.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUniformFieldArray-
|
|
1
|
+
{"version":3,"file":"useUniformFieldArray-zGcIhwhF.d.ts","names":[],"sources":["../src/hooks/useUniformFieldArray/useUniformFieldArray.ts"],"mappings":";;;;;;UAaiB,yBAAA,sBACM,WAAA,GAAc,WAAA;;EAGnC,IAAA,EAAM,SAAA,CAAU,YAAA;;EAEhB,IAAA;EANe;EAQf,mBAAA;EARwC;EAUxC,uBAAA;EATmC;EAWnC,QAAA;EARM;EAUN,MAAA;EAEiB;EAAjB,KAAA,GAAQ,SAAA;AAAA;;;;;;;;;;;;;;AAAS;cAiBN,oBAAA,wBACU,WAAA,GAAc,WAAA;EACnC,IAAA;EAAA,IAAA;EAAA,mBAAA,EAAA,oBAAA;EAAA,uBAAA;EAAA,QAAA;EAAA,MAAA,EAAA,cAAA;EAAA;AAAA,GAQC,yBAAA,CAA0B,YAAA;;;;;;;;;kBAnCR,KAAA;;;;;;;;;UAoEJ,UAAA;YAEuB,UAAA,QAFvB,eAAA;OAK4B,UAAA,QAHL,eAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fuf-stack/uniform",
|
|
3
|
-
"version": "1.22.
|
|
3
|
+
"version": "1.22.4",
|
|
4
4
|
"description": "fuf react form library",
|
|
5
5
|
"author": "Fröhlich ∧ Frei",
|
|
6
6
|
"homepage": "https://github.com/fuf-stack/pixels#readme",
|
|
@@ -196,5 +196,5 @@
|
|
|
196
196
|
"react": "19.2.6",
|
|
197
197
|
"react-dom": "19.2.6"
|
|
198
198
|
},
|
|
199
|
-
"gitHead": "
|
|
199
|
+
"gitHead": "19dc5f79b48758bc16ddf97532f840be34818c09"
|
|
200
200
|
}
|