@fuf-stack/uniform 1.8.10 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Checkboxes/index.cjs +3 -8
- package/dist/Checkboxes/index.cjs.map +1 -1
- package/dist/Checkboxes/index.d.cts +2 -2
- package/dist/Checkboxes/index.d.ts +2 -2
- package/dist/Checkboxes/index.js +2 -7
- package/dist/{Checkboxes-CDjOYw76.d.cts → Checkboxes-CBgO9itq.d.cts} +2 -0
- package/dist/{Checkboxes-wWzFP2sn.d.ts → Checkboxes-CFbsc6zg.d.ts} +2 -0
- package/dist/FieldArray/index.cjs +5 -8
- package/dist/FieldArray/index.cjs.map +1 -1
- package/dist/FieldArray/index.d.cts +2 -2
- package/dist/FieldArray/index.d.ts +2 -2
- package/dist/FieldArray/index.js +4 -7
- package/dist/{FieldArray-Cql1zcch.d.cts → FieldArray-72vn2MG9.d.cts} +2 -2
- package/dist/{FieldArray-Cql1zcch.d.ts → FieldArray-72vn2MG9.d.ts} +2 -2
- package/dist/FieldCard/index.cjs +19 -0
- package/dist/FieldCard/index.cjs.map +1 -0
- package/dist/FieldCard/index.d.cts +95 -0
- package/dist/FieldCard/index.d.ts +95 -0
- package/dist/FieldCard/index.js +19 -0
- package/dist/Form/index.cjs +3 -13
- package/dist/Form/index.cjs.map +1 -1
- package/dist/Form/index.js +2 -12
- package/dist/Input/index.cjs +4 -8
- package/dist/Input/index.cjs.map +1 -1
- package/dist/Input/index.d.cts +2 -2
- package/dist/Input/index.d.ts +2 -2
- package/dist/Input/index.js +3 -7
- package/dist/{Input-DMVTcinm.d.cts → Input-BGYDOpbo.d.cts} +4 -2
- package/dist/{Input-BcdS2xBM.d.ts → Input-__SqMh2n.d.ts} +4 -2
- package/dist/{RadioBoxes-DpkI28l0.d.cts → RadioBox-DnqCiTR1.d.cts} +89 -37
- package/dist/{RadioBoxes-DpkI28l0.d.ts → RadioBox-DnqCiTR1.d.ts} +89 -37
- package/dist/RadioBoxes/index.cjs +5 -8
- package/dist/RadioBoxes/index.cjs.map +1 -1
- package/dist/RadioBoxes/index.d.cts +2 -2
- package/dist/RadioBoxes/index.d.ts +2 -2
- package/dist/RadioBoxes/index.js +6 -9
- package/dist/RadioTabs/index.cjs +3 -8
- package/dist/RadioTabs/index.cjs.map +1 -1
- package/dist/RadioTabs/index.d.cts +2 -2
- package/dist/RadioTabs/index.d.ts +2 -2
- package/dist/RadioTabs/index.js +2 -7
- package/dist/{RadioTabs-DTDcAZoH.d.cts → RadioTabs-DkR5fvl4.d.cts} +18 -1
- package/dist/{RadioTabs-DTDcAZoH.d.ts → RadioTabs-DkR5fvl4.d.ts} +18 -1
- package/dist/Radios/index.cjs +3 -8
- package/dist/Radios/index.cjs.map +1 -1
- package/dist/Radios/index.d.cts +2 -2
- package/dist/Radios/index.d.ts +2 -2
- package/dist/Radios/index.js +2 -7
- package/dist/{Radios-DprlJhoq.d.cts → Radios-lLVlvY_B.d.cts} +3 -1
- package/dist/{Radios-DprlJhoq.d.ts → Radios-lLVlvY_B.d.ts} +3 -1
- package/dist/Select/index.cjs +4 -8
- package/dist/Select/index.cjs.map +1 -1
- package/dist/Select/index.d.cts +3 -2
- package/dist/Select/index.d.ts +3 -2
- package/dist/Select/index.js +3 -7
- package/dist/{Select-CDkZmZp2.d.cts → Select-DWlnKj5c.d.cts} +8 -5
- package/dist/{Select-CDkZmZp2.d.ts → Select-DWlnKj5c.d.ts} +8 -5
- package/dist/Slider/index.cjs +19 -0
- package/dist/Slider/index.cjs.map +1 -0
- package/dist/Slider/index.d.cts +10 -0
- package/dist/Slider/index.d.ts +10 -0
- package/dist/Slider/index.js +19 -0
- package/dist/Slider-CxHvafJA.d.cts +155 -0
- package/dist/Slider-CxHvafJA.d.ts +155 -0
- package/dist/SubmitButton/index.cjs +3 -13
- package/dist/SubmitButton/index.cjs.map +1 -1
- package/dist/SubmitButton/index.js +2 -12
- package/dist/Switch/index.cjs +3 -8
- package/dist/Switch/index.cjs.map +1 -1
- package/dist/Switch/index.d.cts +2 -2
- package/dist/Switch/index.d.ts +2 -2
- package/dist/Switch/index.js +2 -7
- package/dist/{Switch-Hr6PnK98.d.cts → Switch-B4AuHAMX.d.cts} +6 -4
- package/dist/{Switch-Hr6PnK98.d.ts → Switch-B4AuHAMX.d.ts} +6 -4
- package/dist/SwitchBox/index.cjs +21 -0
- package/dist/SwitchBox/index.cjs.map +1 -0
- package/dist/SwitchBox/index.d.cts +11 -0
- package/dist/SwitchBox/index.d.ts +11 -0
- package/dist/SwitchBox/index.js +21 -0
- package/dist/SwitchBox/index.js.map +1 -0
- package/dist/SwitchBox-q1I7a0NX.d.cts +146 -0
- package/dist/SwitchBox-q1I7a0NX.d.ts +146 -0
- package/dist/TextArea/index.cjs +4 -8
- package/dist/TextArea/index.cjs.map +1 -1
- package/dist/TextArea/index.d.cts +2 -2
- package/dist/TextArea/index.d.ts +2 -2
- package/dist/TextArea/index.js +3 -7
- package/dist/{TextArea-DhxNWYNg.d.cts → TextArea-CYcFOcun.d.cts} +2 -0
- package/dist/{TextArea-DhxNWYNg.d.ts → TextArea-CYcFOcun.d.ts} +2 -0
- package/dist/{chunk-EFZXZNJO.js → chunk-2EQEKXG2.js} +4 -2
- package/dist/chunk-2EQEKXG2.js.map +1 -0
- package/dist/chunk-36LBVB45.js +1 -0
- package/dist/chunk-36LBVB45.js.map +1 -0
- package/dist/chunk-3JAVQAL5.cjs +1 -0
- package/dist/{chunk-KWJMKX5J.cjs.map → chunk-3JAVQAL5.cjs.map} +1 -1
- package/dist/{chunk-NTOYCWCJ.cjs → chunk-3ZQXSGR2.cjs} +1 -1
- package/dist/{chunk-NTOYCWCJ.cjs.map → chunk-3ZQXSGR2.cjs.map} +1 -1
- package/dist/{chunk-BIC7IWER.js → chunk-4KEI3VRK.js} +6 -3
- package/dist/chunk-4KEI3VRK.js.map +1 -0
- package/dist/{chunk-PFFTE4NW.cjs → chunk-4LLSZ6GN.cjs} +6 -4
- package/dist/chunk-4LLSZ6GN.cjs.map +1 -0
- package/dist/chunk-5UGCZ7OA.js +215 -0
- package/dist/chunk-5UGCZ7OA.js.map +1 -0
- package/dist/{chunk-MEIT57H2.cjs → chunk-6UORUDZV.cjs} +5 -3
- package/dist/chunk-6UORUDZV.cjs.map +1 -0
- package/dist/chunk-7TUWJWLN.js +131 -0
- package/dist/chunk-7TUWJWLN.js.map +1 -0
- package/dist/chunk-7WBYC3BC.js +149 -0
- package/dist/chunk-7WBYC3BC.js.map +1 -0
- package/dist/{chunk-QE4J4AMH.js → chunk-BUFKWZNC.js} +2 -2
- package/dist/chunk-BUFKWZNC.js.map +1 -0
- package/dist/{chunk-A3PYIWG2.js → chunk-BZ2PD2JG.js} +1 -1
- package/dist/chunk-BZ2PD2JG.js.map +1 -0
- package/dist/{chunk-37RM7TVP.cjs → chunk-CM2LLV5N.cjs} +5 -3
- package/dist/chunk-CM2LLV5N.cjs.map +1 -0
- package/dist/{chunk-OTFX4BWZ.js → chunk-FHYUMBE3.js} +80 -46
- package/dist/chunk-FHYUMBE3.js.map +1 -0
- package/dist/chunk-FQDOJIQF.cjs +149 -0
- package/dist/chunk-FQDOJIQF.cjs.map +1 -0
- package/dist/{chunk-TN7OSO3T.js → chunk-GQF5HVA4.js} +5 -5
- package/dist/chunk-GQF5HVA4.js.map +1 -0
- package/dist/{chunk-6AQ5R4U4.cjs → chunk-HYOALQIV.cjs} +7 -7
- package/dist/chunk-HYOALQIV.cjs.map +1 -0
- package/dist/{chunk-NG2KM4CA.cjs → chunk-IZ5SPNVQ.cjs} +9 -6
- package/dist/chunk-IZ5SPNVQ.cjs.map +1 -0
- package/dist/{chunk-RRG5ZLVF.cjs → chunk-JRE5KEX3.cjs} +1 -1
- package/dist/{chunk-RRG5ZLVF.cjs.map → chunk-JRE5KEX3.cjs.map} +1 -1
- package/dist/chunk-KOV7U4QA.cjs +165 -0
- package/dist/chunk-KOV7U4QA.cjs.map +1 -0
- package/dist/{chunk-ZJDU5EPE.js → chunk-LEMQGDFE.js} +1 -1
- package/dist/chunk-M5IL7INR.js +219 -0
- package/dist/chunk-M5IL7INR.js.map +1 -0
- package/dist/{chunk-R5AOS4DQ.js → chunk-MODH7W2M.js} +5 -3
- package/dist/chunk-MODH7W2M.js.map +1 -0
- package/dist/chunk-MSJP25N4.cjs +131 -0
- package/dist/chunk-MSJP25N4.cjs.map +1 -0
- package/dist/{chunk-OYDNTOOU.cjs → chunk-MVFEXRWQ.cjs} +3 -3
- package/dist/chunk-MVFEXRWQ.cjs.map +1 -0
- package/dist/{chunk-7WHL6K5T.js → chunk-O5KAFUBE.js} +7 -4
- package/dist/chunk-O5KAFUBE.js.map +1 -0
- package/dist/{chunk-ZNX2PT6C.cjs → chunk-OED4DYBD.cjs} +6 -3
- package/dist/chunk-OED4DYBD.cjs.map +1 -0
- package/dist/chunk-OIKPQMQ2.cjs +215 -0
- package/dist/chunk-OIKPQMQ2.cjs.map +1 -0
- package/dist/{chunk-Y7YEI6T2.js → chunk-P2TT7HU5.js} +1 -1
- package/dist/chunk-P2TT7HU5.js.map +1 -0
- package/dist/{chunk-JQQ32JOD.cjs → chunk-PTCZOUQX.cjs} +1 -1
- package/dist/chunk-PTCZOUQX.cjs.map +1 -0
- package/dist/{chunk-2UHJBGKV.js → chunk-QPKHR6WH.js} +4 -2
- package/dist/chunk-QPKHR6WH.js.map +1 -0
- package/dist/{chunk-WWSJQUTT.cjs → chunk-V45YAJT4.cjs} +7 -5
- package/dist/chunk-V45YAJT4.cjs.map +1 -0
- package/dist/chunk-WRKONOOV.cjs +219 -0
- package/dist/chunk-WRKONOOV.cjs.map +1 -0
- package/dist/{chunk-DUYZ7WW3.cjs → chunk-XSS4REAS.cjs} +80 -46
- package/dist/chunk-XSS4REAS.cjs.map +1 -0
- package/dist/{chunk-GRQVGEYI.js → chunk-XSVEW3KN.js} +5 -3
- package/dist/chunk-XSVEW3KN.js.map +1 -0
- package/dist/chunk-YMXUVBQ3.js +165 -0
- package/dist/chunk-YMXUVBQ3.js.map +1 -0
- package/dist/hooks/useFormContext/index.cjs +2 -1
- package/dist/hooks/useFormContext/index.cjs.map +1 -1
- package/dist/hooks/useFormContext/index.d.cts +2 -2
- package/dist/hooks/useFormContext/index.d.ts +2 -2
- package/dist/hooks/useFormContext/index.js +1 -0
- package/dist/hooks/useInputValueDebounce/index.cjs +2 -2
- package/dist/hooks/useInputValueDebounce/index.js +1 -1
- package/dist/hooks/useUniformField/index.cjs +2 -2
- package/dist/hooks/useUniformField/index.d.cts +9 -5
- package/dist/hooks/useUniformField/index.d.ts +9 -5
- package/dist/hooks/useUniformField/index.js +1 -1
- package/dist/hooks/useUniformFieldArray/index.cjs +4 -3
- package/dist/hooks/useUniformFieldArray/index.cjs.map +1 -1
- package/dist/hooks/useUniformFieldArray/index.d.cts +6 -5
- package/dist/hooks/useUniformFieldArray/index.d.ts +6 -5
- package/dist/hooks/useUniformFieldArray/index.js +3 -2
- package/dist/index.cjs +41 -23
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +17 -14
- package/dist/index.d.ts +17 -14
- package/dist/index.js +45 -27
- package/package.json +19 -8
- package/dist/chunk-2UHJBGKV.js.map +0 -1
- package/dist/chunk-37RM7TVP.cjs.map +0 -1
- package/dist/chunk-44STFB2F.cjs +0 -170
- package/dist/chunk-44STFB2F.cjs.map +0 -1
- package/dist/chunk-5ZMXUK6O.js +0 -170
- package/dist/chunk-5ZMXUK6O.js.map +0 -1
- package/dist/chunk-6AQ5R4U4.cjs.map +0 -1
- package/dist/chunk-7WHL6K5T.js.map +0 -1
- package/dist/chunk-A3PYIWG2.js.map +0 -1
- package/dist/chunk-BIC7IWER.js.map +0 -1
- package/dist/chunk-DUYZ7WW3.cjs.map +0 -1
- package/dist/chunk-EFZXZNJO.js.map +0 -1
- package/dist/chunk-GRQVGEYI.js.map +0 -1
- package/dist/chunk-HBPVEZJN.js +0 -105
- package/dist/chunk-HBPVEZJN.js.map +0 -1
- package/dist/chunk-JQQ32JOD.cjs.map +0 -1
- package/dist/chunk-KWJMKX5J.cjs +0 -1
- package/dist/chunk-MEIT57H2.cjs.map +0 -1
- package/dist/chunk-NG2KM4CA.cjs.map +0 -1
- package/dist/chunk-OTFX4BWZ.js.map +0 -1
- package/dist/chunk-OYDNTOOU.cjs.map +0 -1
- package/dist/chunk-PEADXODY.cjs +0 -105
- package/dist/chunk-PEADXODY.cjs.map +0 -1
- package/dist/chunk-PFFTE4NW.cjs.map +0 -1
- package/dist/chunk-QE4J4AMH.js.map +0 -1
- package/dist/chunk-R5AOS4DQ.js.map +0 -1
- package/dist/chunk-TN7OSO3T.js.map +0 -1
- package/dist/chunk-V3GDAELU.js +0 -1
- package/dist/chunk-WWSJQUTT.cjs.map +0 -1
- package/dist/chunk-Y7YEI6T2.js.map +0 -1
- package/dist/chunk-ZNX2PT6C.cjs.map +0 -1
- package/dist/hooks/index.cjs +0 -49
- package/dist/hooks/index.cjs.map +0 -1
- package/dist/hooks/index.d.cts +0 -14
- package/dist/hooks/index.d.ts +0 -14
- package/dist/hooks/index.js +0 -49
- /package/dist/{hooks → FieldCard}/index.js.map +0 -0
- /package/dist/{chunk-V3GDAELU.js.map → Slider/index.js.map} +0 -0
- /package/dist/{chunk-ZJDU5EPE.js.map → chunk-LEMQGDFE.js.map} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/Slider/Slider.tsx","../src/Slider/index.ts"],"sourcesContent":["import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { ReactNode } from 'react';\n\nimport { useRef } from 'react';\n\nimport { Slider as HeroUISlider } from '@heroui/slider';\nimport { VisuallyHidden } from '@react-aria/visually-hidden';\n\nimport { tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\nimport { useUniformField } from '../hooks/useUniformField';\n\nexport const sliderVariants = tv({\n slots: {\n base: 'group',\n endContent: '',\n errorMessage: 'ml-1 mt-1',\n filler: '',\n // see HeroUI styles for group-data condition,\n // e.g.: https://github.com/heroui-inc/heroui/blob/main/packages/core/theme/src/components/select.ts\n label:\n 'text-sm text-foreground subpixel-antialiased group-data-[invalid=true]:!text-danger group-data-[required=true]:after:ml-0.5 group-data-[required=true]:after:text-danger group-data-[required=true]:after:content-[\"*\"]',\n labelWrapper: '',\n mark: '',\n startContent: '',\n step: '',\n thumb: '',\n track: '',\n trackWrapper: '',\n value: '',\n },\n});\n\ntype VariantProps = TVProps<typeof sliderVariants>;\ntype ClassName = TVClassName<typeof sliderVariants>;\n\nexport interface SliderProps extends VariantProps {\n /** Custom aria-label for accessibility. If not provided, falls back to field name when no visible label exists */\n ariaLabel?: string;\n /** CSS class name */\n className?: ClassName;\n /** input field is disabled */\n disabled?: boolean;\n /** Content to display at the end of the slider */\n endContent?: ReactNode;\n /** The offset from where the fill should start */\n fillOffset?: number;\n /** form field label */\n label?: string;\n /** form field name */\n name: string;\n /**\n * Whether to show step dots on the slider\n * @default false\n */\n showSteps?: boolean;\n /**\n * The size of the slider\n * @default \"md\"\n */\n size?: 'sm' | 'md' | 'lg';\n /** Content to display at the start of the slider */\n startContent?: ReactNode;\n /**\n * The step value of the slider\n * @default 1\n */\n step?: number;\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n /**\n * The minimum value of the slider\n * @default 0\n */\n minValue?: number;\n /**\n * The maximum value of the slider\n * @default 100\n */\n maxValue?: number;\n}\n\n/**\n * Slider component based on [HeroUI Slider](https://www.heroui.com//docs/components/slider)\n */\nconst Slider = ({\n className = undefined,\n endContent = undefined,\n fillOffset = undefined,\n name,\n showSteps = false,\n size = 'md',\n startContent = undefined,\n step = 1,\n minValue = 0,\n maxValue = 100,\n ...uniformFieldProps\n}: SliderProps) => {\n const {\n ariaLabel,\n disabled,\n field,\n getErrorMessageProps,\n getHelperWrapperProps,\n invalid,\n label,\n onBlur,\n onChange,\n ref,\n required,\n errorMessage,\n testId,\n } = useUniformField({\n name,\n ...uniformFieldProps,\n });\n\n // Ref for the visual slider to forward focus\n const visualSliderRef = useRef<HTMLDivElement>(null);\n\n // classNames from slots\n const variants = sliderVariants();\n const classNames = variantsToClassNames(variants, className, 'base');\n\n // Get the current value, defaulting to minValue if null/undefined\n const currentValue = field.value != null ? Number(field.value) : minValue;\n\n return (\n <div\n className={classNames.base}\n data-invalid={invalid}\n data-required={required}\n data-testid={testId}\n >\n {/* Visually hidden input for form accessibility and focus management */}\n <VisuallyHidden>\n <input\n ref={ref}\n aria-label={typeof label === 'string' ? label : name}\n disabled={disabled}\n max={maxValue}\n min={minValue}\n name={name}\n onBlur={onBlur}\n step={step}\n tabIndex={-1}\n type=\"range\"\n value={currentValue}\n onChange={(e) => {\n onChange(Number(e.target.value));\n }}\n onFocus={() => {\n // When RHF focuses this hidden input (e.g., on validation error),\n // forward focus to the visual slider to show focus ring\n visualSliderRef.current?.focus();\n }}\n />\n </VisuallyHidden>\n {/* Visual HeroUISlider component */}\n <HeroUISlider\n ref={visualSliderRef}\n aria-label={ariaLabel}\n color={invalid ? 'danger' : 'primary'}\n endContent={endContent}\n fillOffset={fillOffset}\n isDisabled={disabled}\n label={label}\n maxValue={maxValue}\n minValue={minValue}\n name={`${name}_slider`}\n // Mark field as touched when tabbing away (keyboard navigation)\n onBlur={onBlur}\n showSteps={showSteps}\n size={size}\n startContent={startContent}\n step={step}\n value={currentValue}\n classNames={{\n endContent: classNames.endContent,\n filler: classNames.filler,\n label: classNames.label,\n labelWrapper: classNames.labelWrapper,\n mark: classNames.mark,\n startContent: classNames.startContent,\n step: classNames.step,\n thumb: classNames.thumb,\n track: classNames.track,\n trackWrapper: classNames.trackWrapper,\n value: classNames.value,\n }}\n onChange={(value) => {\n onChange(value);\n }}\n // Mark field as touched when drag interaction ends (mouse/touch)\n onChangeEnd={(_value) => {\n onBlur();\n }}\n />\n <div {...getHelperWrapperProps()}>\n <div {...getErrorMessageProps()}>{errorMessage}</div>\n </div>\n </div>\n );\n};\n\nexport default Slider;\n","import Slider from './Slider';\n\nexport type { SliderProps } from './Slider';\n\nexport { Slider };\n\nexport default Slider;\n"],"mappings":"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","names":["_a","Slider_default"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/pixels/pixels/packages/uniform/dist/hooks/useFormContext/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACF,4DAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC;AACE;AACA;AACF,iIAAC","file":"/home/runner/work/pixels/pixels/packages/uniform/dist/hooks/useFormContext/index.cjs"}
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/pixels/pixels/packages/uniform/dist/hooks/useFormContext/index.cjs"],"names":[],"mappings":"AAAA,6GAAiC;AACjC;AACE;AACA;AACF,4DAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC;AACE;AACA;AACF,iIAAC","file":"/home/runner/work/pixels/pixels/packages/uniform/dist/hooks/useFormContext/index.cjs"}
|
|
@@ -31,10 +31,10 @@ declare const useFormContext: <TFieldValues extends FieldValues = FieldValues, T
|
|
|
31
31
|
getValues: react_hook_form.UseFormGetValues<TFieldValues>;
|
|
32
32
|
subscribe: react_hook_form.UseFormSubscribe<TFieldValues>;
|
|
33
33
|
watch: react_hook_form.UseFormWatch<TFieldValues>;
|
|
34
|
-
debugMode: "
|
|
34
|
+
debugMode: "disabled" | "debug" | "debug-testids" | "off";
|
|
35
35
|
debugModeSettings?: DebugModeSettings;
|
|
36
36
|
preventSubmit: (prevent: boolean) => void;
|
|
37
|
-
setDebugMode: (debugMode: "
|
|
37
|
+
setDebugMode: (debugMode: "disabled" | "debug" | "debug-testids" | "off") => void;
|
|
38
38
|
triggerSubmit: (e?: React.BaseSyntheticEvent) => Promise<void> | void;
|
|
39
39
|
userChange: {
|
|
40
40
|
subscribe: (listener: UserChangeListener) => () => void;
|
|
@@ -31,10 +31,10 @@ declare const useFormContext: <TFieldValues extends FieldValues = FieldValues, T
|
|
|
31
31
|
getValues: react_hook_form.UseFormGetValues<TFieldValues>;
|
|
32
32
|
subscribe: react_hook_form.UseFormSubscribe<TFieldValues>;
|
|
33
33
|
watch: react_hook_form.UseFormWatch<TFieldValues>;
|
|
34
|
-
debugMode: "
|
|
34
|
+
debugMode: "disabled" | "debug" | "debug-testids" | "off";
|
|
35
35
|
debugModeSettings?: DebugModeSettings;
|
|
36
36
|
preventSubmit: (prevent: boolean) => void;
|
|
37
|
-
setDebugMode: (debugMode: "
|
|
37
|
+
setDebugMode: (debugMode: "disabled" | "debug" | "debug-testids" | "off") => void;
|
|
38
38
|
triggerSubmit: (e?: React.BaseSyntheticEvent) => Promise<void> | void;
|
|
39
39
|
userChange: {
|
|
40
40
|
subscribe: (listener: UserChangeListener) => () => void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk3ZQXSGR2cjs = require('../../chunk-3ZQXSGR2.cjs');
|
|
4
4
|
require('../../chunk-555JRYCS.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
exports.useInputValueDebounce =
|
|
7
|
+
exports.useInputValueDebounce = _chunk3ZQXSGR2cjs.useInputValueDebounce;
|
|
8
8
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkOED4DYBDcjs = require('../../chunk-OED4DYBD.cjs');
|
|
4
4
|
require('../../chunk-OE5BOGGX.cjs');
|
|
5
5
|
require('../../chunk-NHEZXA4H.cjs');
|
|
6
6
|
require('../../chunk-NV4YVZYX.cjs');
|
|
@@ -12,5 +12,5 @@ require('../../chunk-TKICOKNS.cjs');
|
|
|
12
12
|
require('../../chunk-555JRYCS.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
exports.useUniformField =
|
|
15
|
+
exports.useUniformField = _chunkOED4DYBDcjs.useUniformField;
|
|
16
16
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -10,18 +10,22 @@ import '../../FormContext-9Firwt4k.cjs';
|
|
|
10
10
|
interface UseUniformFieldParams<TFieldValues extends FieldValues = FieldValues, TDisplay = unknown> {
|
|
11
11
|
/** Form field name */
|
|
12
12
|
name: Path<TFieldValues> & string;
|
|
13
|
+
/** Custom aria-label for accessibility. If not provided, falls back to field name when no visible label exists */
|
|
14
|
+
ariaLabel?: string;
|
|
13
15
|
/** Disable the field */
|
|
14
16
|
disabled?: boolean;
|
|
17
|
+
/** Optional label content */
|
|
18
|
+
label?: ReactNode;
|
|
15
19
|
/** Optional explicit test id used to build stable test ids */
|
|
16
20
|
testId?: string;
|
|
17
|
-
/** Optional label content; pass false to suppress label entirely */
|
|
18
|
-
label?: ReactNode | false;
|
|
19
|
-
/** Input type for special number handling */
|
|
20
|
-
type?: 'text' | 'number' | 'password';
|
|
21
21
|
/** Optional value transformation between form and display values */
|
|
22
22
|
transform?: InputValueTransform<TDisplay>;
|
|
23
|
+
/** Input type for special number handling */
|
|
24
|
+
type?: 'text' | 'number' | 'password';
|
|
23
25
|
}
|
|
24
26
|
interface UseUniformFieldReturn<TFieldValues extends FieldValues = FieldValues> {
|
|
27
|
+
/** Computed aria-label fallback (field name) when no visible label exists. Components can override based on their accessibility needs (e.g., if placeholder provides sufficient context) */
|
|
28
|
+
ariaLabel: string | undefined;
|
|
25
29
|
/** react-hook-form control instance for advanced integrations */
|
|
26
30
|
control: ReturnType<typeof useFormContext<TFieldValues>>['control'];
|
|
27
31
|
/** Debug mode from Uniform provider */
|
|
@@ -89,6 +93,6 @@ interface UseUniformFieldReturn<TFieldValues extends FieldValues = FieldValues>
|
|
|
89
93
|
* - Presentation helpers: `getLabelProps`, `getErrorMessageProps`,
|
|
90
94
|
* `getHelperWrapperProps` for consistent wiring to underlying UI components
|
|
91
95
|
*/
|
|
92
|
-
declare
|
|
96
|
+
declare const useUniformField: <TFieldValues extends FieldValues = FieldValues, TDisplay = unknown>(params: UseUniformFieldParams<TFieldValues, TDisplay>) => UseUniformFieldReturn<TFieldValues>;
|
|
93
97
|
|
|
94
98
|
export { type UseUniformFieldParams, type UseUniformFieldReturn, useUniformField };
|
|
@@ -10,18 +10,22 @@ import '../../FormContext-9Firwt4k.js';
|
|
|
10
10
|
interface UseUniformFieldParams<TFieldValues extends FieldValues = FieldValues, TDisplay = unknown> {
|
|
11
11
|
/** Form field name */
|
|
12
12
|
name: Path<TFieldValues> & string;
|
|
13
|
+
/** Custom aria-label for accessibility. If not provided, falls back to field name when no visible label exists */
|
|
14
|
+
ariaLabel?: string;
|
|
13
15
|
/** Disable the field */
|
|
14
16
|
disabled?: boolean;
|
|
17
|
+
/** Optional label content */
|
|
18
|
+
label?: ReactNode;
|
|
15
19
|
/** Optional explicit test id used to build stable test ids */
|
|
16
20
|
testId?: string;
|
|
17
|
-
/** Optional label content; pass false to suppress label entirely */
|
|
18
|
-
label?: ReactNode | false;
|
|
19
|
-
/** Input type for special number handling */
|
|
20
|
-
type?: 'text' | 'number' | 'password';
|
|
21
21
|
/** Optional value transformation between form and display values */
|
|
22
22
|
transform?: InputValueTransform<TDisplay>;
|
|
23
|
+
/** Input type for special number handling */
|
|
24
|
+
type?: 'text' | 'number' | 'password';
|
|
23
25
|
}
|
|
24
26
|
interface UseUniformFieldReturn<TFieldValues extends FieldValues = FieldValues> {
|
|
27
|
+
/** Computed aria-label fallback (field name) when no visible label exists. Components can override based on their accessibility needs (e.g., if placeholder provides sufficient context) */
|
|
28
|
+
ariaLabel: string | undefined;
|
|
25
29
|
/** react-hook-form control instance for advanced integrations */
|
|
26
30
|
control: ReturnType<typeof useFormContext<TFieldValues>>['control'];
|
|
27
31
|
/** Debug mode from Uniform provider */
|
|
@@ -89,6 +93,6 @@ interface UseUniformFieldReturn<TFieldValues extends FieldValues = FieldValues>
|
|
|
89
93
|
* - Presentation helpers: `getLabelProps`, `getErrorMessageProps`,
|
|
90
94
|
* `getHelperWrapperProps` for consistent wiring to underlying UI components
|
|
91
95
|
*/
|
|
92
|
-
declare
|
|
96
|
+
declare const useUniformField: <TFieldValues extends FieldValues = FieldValues, TDisplay = unknown>(params: UseUniformFieldParams<TFieldValues, TDisplay>) => UseUniformFieldReturn<TFieldValues>;
|
|
93
97
|
|
|
94
98
|
export { type UseUniformFieldParams, type UseUniformFieldReturn, useUniformField };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../chunk-
|
|
3
|
+
var _chunkMVFEXRWQcjs = require('../../chunk-MVFEXRWQ.cjs');
|
|
4
|
+
require('../../chunk-3JAVQAL5.cjs');
|
|
5
|
+
require('../../chunk-OED4DYBD.cjs');
|
|
5
6
|
require('../../chunk-OE5BOGGX.cjs');
|
|
6
7
|
require('../../chunk-NHEZXA4H.cjs');
|
|
7
8
|
require('../../chunk-NV4YVZYX.cjs');
|
|
@@ -13,5 +14,5 @@ require('../../chunk-TKICOKNS.cjs');
|
|
|
13
14
|
require('../../chunk-555JRYCS.cjs');
|
|
14
15
|
|
|
15
16
|
|
|
16
|
-
exports.useUniformFieldArray =
|
|
17
|
+
exports.useUniformFieldArray = _chunkMVFEXRWQcjs.useUniformFieldArray;
|
|
17
18
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/pixels/pixels/packages/uniform/dist/hooks/useUniformFieldArray/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACF,4DAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC;AACE;AACF,sEAAC","file":"/home/runner/work/pixels/pixels/packages/uniform/dist/hooks/useUniformFieldArray/index.cjs"}
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/pixels/pixels/packages/uniform/dist/hooks/useUniformFieldArray/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACF,4DAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC;AACE;AACF,sEAAC","file":"/home/runner/work/pixels/pixels/packages/uniform/dist/hooks/useUniformFieldArray/index.cjs"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as _heroui_input from '@heroui/input';
|
|
1
|
+
import { ReactNode } from 'react';
|
|
3
2
|
import * as react_hook_form from 'react-hook-form';
|
|
4
3
|
import { FieldValues, ArrayPath } from 'react-hook-form';
|
|
5
|
-
import {
|
|
4
|
+
import { useController } from '../useController/index.cjs';
|
|
6
5
|
import { useFormContext } from '../useFormContext/index.cjs';
|
|
6
|
+
import * as _heroui_input from '@heroui/input';
|
|
7
7
|
import '@fuf-stack/veto';
|
|
8
8
|
import '../../FormContext-9Firwt4k.cjs';
|
|
9
9
|
|
|
@@ -20,8 +20,8 @@ interface UseUniformFieldArrayProps<TFieldValues extends FieldValues = FieldValu
|
|
|
20
20
|
disabled?: boolean;
|
|
21
21
|
/** Optional explicit test id used to build stable test ids */
|
|
22
22
|
testId?: string;
|
|
23
|
-
/** Optional label content
|
|
24
|
-
label?: ReactNode
|
|
23
|
+
/** Optional label content */
|
|
24
|
+
label?: ReactNode;
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
27
|
* Enhanced useFieldArray hook with initialization and animation logic.
|
|
@@ -36,6 +36,7 @@ interface UseUniformFieldArrayProps<TFieldValues extends FieldValues = FieldValu
|
|
|
36
36
|
* @see https://react-hook-form.com/docs/usefieldarray
|
|
37
37
|
*/
|
|
38
38
|
declare const useUniformFieldArray: <TFieldValues extends FieldValues = FieldValues>({ name, flat, elementInitialValue: _elementInitialValue, lastElementNotRemovable, disabled, testId: explicitTestId, label, }: UseUniformFieldArrayProps<TFieldValues>) => {
|
|
39
|
+
ariaLabel: string | undefined;
|
|
39
40
|
control: react_hook_form.Control<TFieldValues, any, TFieldValues>;
|
|
40
41
|
debugMode: ReturnType<typeof useFormContext<TFieldValues_1>>["debugMode"];
|
|
41
42
|
defaultValue: unknown;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as _heroui_input from '@heroui/input';
|
|
1
|
+
import { ReactNode } from 'react';
|
|
3
2
|
import * as react_hook_form from 'react-hook-form';
|
|
4
3
|
import { FieldValues, ArrayPath } from 'react-hook-form';
|
|
5
|
-
import {
|
|
4
|
+
import { useController } from '../useController/index.js';
|
|
6
5
|
import { useFormContext } from '../useFormContext/index.js';
|
|
6
|
+
import * as _heroui_input from '@heroui/input';
|
|
7
7
|
import '@fuf-stack/veto';
|
|
8
8
|
import '../../FormContext-9Firwt4k.js';
|
|
9
9
|
|
|
@@ -20,8 +20,8 @@ interface UseUniformFieldArrayProps<TFieldValues extends FieldValues = FieldValu
|
|
|
20
20
|
disabled?: boolean;
|
|
21
21
|
/** Optional explicit test id used to build stable test ids */
|
|
22
22
|
testId?: string;
|
|
23
|
-
/** Optional label content
|
|
24
|
-
label?: ReactNode
|
|
23
|
+
/** Optional label content */
|
|
24
|
+
label?: ReactNode;
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
27
|
* Enhanced useFieldArray hook with initialization and animation logic.
|
|
@@ -36,6 +36,7 @@ interface UseUniformFieldArrayProps<TFieldValues extends FieldValues = FieldValu
|
|
|
36
36
|
* @see https://react-hook-form.com/docs/usefieldarray
|
|
37
37
|
*/
|
|
38
38
|
declare const useUniformFieldArray: <TFieldValues extends FieldValues = FieldValues>({ name, flat, elementInitialValue: _elementInitialValue, lastElementNotRemovable, disabled, testId: explicitTestId, label, }: UseUniformFieldArrayProps<TFieldValues>) => {
|
|
39
|
+
ariaLabel: string | undefined;
|
|
39
40
|
control: react_hook_form.Control<TFieldValues, any, TFieldValues>;
|
|
40
41
|
debugMode: ReturnType<typeof useFormContext<TFieldValues_1>>["debugMode"];
|
|
41
42
|
defaultValue: unknown;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useUniformFieldArray
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-BUFKWZNC.js";
|
|
4
|
+
import "../../chunk-36LBVB45.js";
|
|
5
|
+
import "../../chunk-4KEI3VRK.js";
|
|
5
6
|
import "../../chunk-NTDKZW4E.js";
|
|
6
7
|
import "../../chunk-ELYGQTXB.js";
|
|
7
8
|
import "../../chunk-GE7HUIAK.js";
|
package/dist/index.cjs
CHANGED
|
@@ -1,49 +1,68 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkNKIZA3ZOcjs = require('./chunk-NKIZA3ZO.cjs');
|
|
4
|
+
|
|
4
5
|
|
|
5
6
|
|
|
6
|
-
var
|
|
7
|
+
var _chunk6RZT2BKHcjs = require('./chunk-6RZT2BKH.cjs');
|
|
7
8
|
|
|
8
9
|
|
|
9
|
-
var
|
|
10
|
+
var _chunkXSS4REAScjs = require('./chunk-XSS4REAS.cjs');
|
|
10
11
|
|
|
11
12
|
|
|
12
|
-
var
|
|
13
|
+
var _chunk6UORUDZVcjs = require('./chunk-6UORUDZV.cjs');
|
|
13
14
|
|
|
14
15
|
|
|
15
|
-
var
|
|
16
|
+
var _chunk4LLSZ6GNcjs = require('./chunk-4LLSZ6GN.cjs');
|
|
16
17
|
|
|
17
18
|
|
|
18
|
-
var
|
|
19
|
+
var _chunkKOV7U4QAcjs = require('./chunk-KOV7U4QA.cjs');
|
|
19
20
|
|
|
20
21
|
|
|
21
|
-
var
|
|
22
|
+
var _chunkPTCZOUQXcjs = require('./chunk-PTCZOUQX.cjs');
|
|
22
23
|
|
|
23
24
|
|
|
24
|
-
var
|
|
25
|
+
var _chunkMSJP25N4cjs = require('./chunk-MSJP25N4.cjs');
|
|
25
26
|
|
|
26
27
|
|
|
27
|
-
var _chunkTTD3KL6Ecjs = require('./chunk-TTD3KL6E.cjs');
|
|
28
28
|
|
|
29
|
+
var _chunkOIKPQMQ2cjs = require('./chunk-OIKPQMQ2.cjs');
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
var _chunkV45YAJT4cjs = require('./chunk-V45YAJT4.cjs');
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
var _chunkCM2LLV5Ncjs = require('./chunk-CM2LLV5N.cjs');
|
|
29
36
|
|
|
30
|
-
var _chunkNG2KM4CAcjs = require('./chunk-NG2KM4CA.cjs');
|
|
31
37
|
|
|
38
|
+
var _chunkHYOALQIVcjs = require('./chunk-HYOALQIV.cjs');
|
|
32
39
|
|
|
33
|
-
var _chunk44STFB2Fcjs = require('./chunk-44STFB2F.cjs');
|
|
34
40
|
|
|
41
|
+
var _chunkMVFEXRWQcjs = require('./chunk-MVFEXRWQ.cjs');
|
|
35
42
|
|
|
36
|
-
|
|
37
|
-
require('./chunk-
|
|
43
|
+
|
|
44
|
+
var _chunkJRE5KEX3cjs = require('./chunk-JRE5KEX3.cjs');
|
|
45
|
+
require('./chunk-3JAVQAL5.cjs');
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
var _chunkFQDOJIQFcjs = require('./chunk-FQDOJIQF.cjs');
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
var _chunkTTD3KL6Ecjs = require('./chunk-TTD3KL6E.cjs');
|
|
38
53
|
|
|
39
54
|
|
|
40
|
-
var
|
|
55
|
+
var _chunkIZ5SPNVQcjs = require('./chunk-IZ5SPNVQ.cjs');
|
|
41
56
|
|
|
42
57
|
|
|
43
|
-
var
|
|
58
|
+
var _chunk3ZQXSGR2cjs = require('./chunk-3ZQXSGR2.cjs');
|
|
44
59
|
|
|
45
60
|
|
|
46
|
-
|
|
61
|
+
|
|
62
|
+
var _chunkWRKONOOVcjs = require('./chunk-WRKONOOV.cjs');
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
var _chunkOED4DYBDcjs = require('./chunk-OED4DYBD.cjs');
|
|
47
66
|
|
|
48
67
|
|
|
49
68
|
var _chunkOE5BOGGXcjs = require('./chunk-OE5BOGGX.cjs');
|
|
@@ -61,26 +80,25 @@ var _chunkPCTYJUY7cjs = require('./chunk-PCTYJUY7.cjs');
|
|
|
61
80
|
var _chunk56TQOKG7cjs = require('./chunk-56TQOKG7.cjs');
|
|
62
81
|
|
|
63
82
|
|
|
64
|
-
var _chunkNKIZA3ZOcjs = require('./chunk-NKIZA3ZO.cjs');
|
|
65
83
|
|
|
84
|
+
var _chunkUUGUQGMXcjs = require('./chunk-UUGUQGMX.cjs');
|
|
85
|
+
require('./chunk-UBLASN6D.cjs');
|
|
66
86
|
|
|
67
87
|
|
|
68
|
-
var _chunk6RZT2BKHcjs = require('./chunk-6RZT2BKH.cjs');
|
|
69
88
|
|
|
70
89
|
|
|
71
90
|
|
|
72
|
-
var _chunkUUGUQGMXcjs = require('./chunk-UUGUQGMX.cjs');
|
|
73
|
-
require('./chunk-UBLASN6D.cjs');
|
|
74
91
|
|
|
75
92
|
|
|
76
93
|
|
|
94
|
+
var _chunkTKICOKNScjs = require('./chunk-TKICOKNS.cjs');
|
|
95
|
+
require('./chunk-555JRYCS.cjs');
|
|
96
|
+
|
|
77
97
|
|
|
78
98
|
|
|
79
99
|
|
|
80
100
|
|
|
81
101
|
|
|
82
|
-
var _chunkTKICOKNScjs = require('./chunk-TKICOKNS.cjs');
|
|
83
|
-
require('./chunk-555JRYCS.cjs');
|
|
84
102
|
|
|
85
103
|
|
|
86
104
|
|
|
@@ -114,5 +132,5 @@ require('./chunk-555JRYCS.cjs');
|
|
|
114
132
|
|
|
115
133
|
|
|
116
134
|
|
|
117
|
-
exports.Checkboxes =
|
|
135
|
+
exports.Checkboxes = _chunkCM2LLV5Ncjs.Checkboxes_default; exports.FieldArray = _chunkHYOALQIVcjs.FieldArray_default; exports.FieldCard = _chunkFQDOJIQFcjs.FieldCard_default; exports.FieldCopyTestIdButton = _chunkOE5BOGGXcjs.FieldCopyTestIdButton_default; exports.FieldValidationError = _chunkNHEZXA4Hcjs.FieldValidationError_default; exports.Form = _chunkJRE5KEX3cjs.Form_default; exports.Grid = _chunkTTD3KL6Ecjs.Grid_default; exports.Input = _chunkIZ5SPNVQcjs.Input_default; exports.RadioBoxes = _chunkWRKONOOVcjs.RadioBoxes_default; exports.RadioTabs = _chunkXSS4REAScjs.RadioTabs_default; exports.Radios = _chunk6UORUDZVcjs.Radios_default; exports.Select = _chunk4LLSZ6GNcjs.Select_default; exports.Slider = _chunkKOV7U4QAcjs.Slider_default; exports.SubmitButton = _chunkPTCZOUQXcjs.SubmitButton_default; exports.Switch = _chunkMSJP25N4cjs.Switch_default; exports.SwitchBox = _chunkOIKPQMQ2cjs.SwitchBox_default; exports.TextArea = _chunkV45YAJT4cjs.TextArea_default; exports.checkFieldIsRequired = _chunkUUGUQGMXcjs.checkFieldIsRequired; exports.clientValidationSchemaByName = _chunk6RZT2BKHcjs.clientValidationSchemaByName; exports.fieldCardVariants = _chunkFQDOJIQFcjs.fieldCardVariants; exports.flatArrayKey = _chunkTKICOKNScjs.flatArrayKey; exports.fromNullishString = _chunkTKICOKNScjs.fromNullishString; exports.isTestEnvironment = _chunkTKICOKNScjs.isTestEnvironment; exports.nameToTestId = _chunkTKICOKNScjs.nameToTestId; exports.radioBoxVariants = _chunkWRKONOOVcjs.radioBoxVariants; exports.switchBoxVariants = _chunkOIKPQMQ2cjs.switchBoxVariants; exports.toFormFormat = _chunkTKICOKNScjs.toFormFormat; exports.toNullishString = _chunkTKICOKNScjs.toNullishString; exports.toValidationFormat = _chunkTKICOKNScjs.toValidationFormat; exports.useClientValidation = _chunk6RZT2BKHcjs.useClientValidation; exports.useController = _chunkNV4YVZYXcjs.useController; exports.useFormContext = _chunkUUGUQGMXcjs.useFormContext; exports.useInput = _chunkPCTYJUY7cjs.useInput; exports.useInputValueDebounce = _chunk3ZQXSGR2cjs.useInputValueDebounce; exports.useInputValueTransform = _chunk56TQOKG7cjs.useInputValueTransform; exports.useUniformField = _chunkOED4DYBDcjs.useUniformField; exports.useUniformFieldArray = _chunkMVFEXRWQcjs.useUniformFieldArray; exports.useWatchUserChange = _chunkNKIZA3ZOcjs.useWatchUserChange;
|
|
118
136
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/pixels/pixels/packages/uniform/dist/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/pixels/pixels/packages/uniform/dist/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,qxEAAC","file":"/home/runner/work/pixels/pixels/packages/uniform/dist/index.cjs"}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,27 +1,30 @@
|
|
|
1
|
-
export { b as CheckboxOption, C as Checkboxes, a as CheckboxesProps } from './Checkboxes-
|
|
2
|
-
export { F as FieldArray, a as FieldArrayChildrenRenderFn, b as FieldArrayFeatures, c as FieldArrayProps } from './FieldArray-
|
|
1
|
+
export { b as CheckboxOption, C as Checkboxes, a as CheckboxesProps } from './Checkboxes-CBgO9itq.cjs';
|
|
2
|
+
export { F as FieldArray, a as FieldArrayChildrenRenderFn, b as FieldArrayFeatures, c as FieldArrayProps } from './FieldArray-72vn2MG9.cjs';
|
|
3
|
+
export { FieldCard, FieldCardProps, fieldCardVariants } from './FieldCard/index.cjs';
|
|
3
4
|
export { F as Form, a as FormProps } from './Form-BZZJPLsi.cjs';
|
|
4
5
|
export { G as Grid, a as GridProps } from './Grid-DF3L9NF3.cjs';
|
|
5
6
|
export { flatArrayKey, fromNullishString, isTestEnvironment, nameToTestId, toFormFormat, toNullishString, toValidationFormat } from './helpers/index.cjs';
|
|
7
|
+
export { I as Input, a as InputProps } from './Input-BGYDOpbo.cjs';
|
|
8
|
+
export { F as FieldCopyTestIdButton, a as FieldCopyTestIdButtonProps } from './FieldCopyTestIdButton-_TDlmw0L.cjs';
|
|
9
|
+
export { F as FieldValidationError, a as FieldValidationErrorProps } from './FieldValidationError-DwtLkGMo.cjs';
|
|
10
|
+
export { R as RadioBoxes, a as RadioBoxesProps, r as radioBoxVariants } from './RadioBox-DnqCiTR1.cjs';
|
|
11
|
+
export { R as Radios, a as RadiosProps } from './Radios-lLVlvY_B.cjs';
|
|
12
|
+
export { R as RadioTabs, a as RadioTabsProps } from './RadioTabs-DkR5fvl4.cjs';
|
|
13
|
+
export { S as Select, a as SelectProps } from './Select-DWlnKj5c.cjs';
|
|
14
|
+
export { S as Slider, a as SliderProps } from './Slider-CxHvafJA.cjs';
|
|
15
|
+
export { S as SubmitButton, a as SubmitButtonProps } from './SubmitButton-DqaxyVpp.cjs';
|
|
16
|
+
export { S as Switch, a as SwitchProps } from './Switch-B4AuHAMX.cjs';
|
|
17
|
+
export { S as SwitchBox, a as SwitchBoxProps, s as switchBoxVariants } from './SwitchBox-q1I7a0NX.cjs';
|
|
18
|
+
export { T as TextArea, a as TextAreaProps } from './TextArea-CYcFOcun.cjs';
|
|
6
19
|
export { clientValidationSchemaByName, useClientValidation } from './hooks/useClientValidation/index.cjs';
|
|
7
20
|
export { UseControllerProps, UseControllerReturn, useController } from './hooks/useController/index.cjs';
|
|
8
|
-
export { UseUniformFieldArrayProps, useUniformFieldArray } from './hooks/useUniformFieldArray/index.cjs';
|
|
9
21
|
export { checkFieldIsRequired, useFormContext } from './hooks/useFormContext/index.cjs';
|
|
10
22
|
export { useInput } from '@heroui/input';
|
|
11
23
|
export { UseInputValueDebounceOptions, UseInputValueDebounceReturn, useInputValueDebounce } from './hooks/useInputValueDebounce/index.cjs';
|
|
12
24
|
export { InputValueTransform, UseInputValueTransformOptions, UseInputValueTransformReturn, useInputValueTransform } from './hooks/useInputValueTransform/index.cjs';
|
|
13
25
|
export { UseUniformFieldParams, UseUniformFieldReturn, useUniformField } from './hooks/useUniformField/index.cjs';
|
|
26
|
+
export { UseUniformFieldArrayProps, useUniformFieldArray } from './hooks/useUniformFieldArray/index.cjs';
|
|
14
27
|
export { UseWatchUserChangeOptions, useWatchUserChange } from './hooks/useWatchUserChange/index.cjs';
|
|
15
|
-
export { I as Input, a as InputProps } from './Input-DMVTcinm.cjs';
|
|
16
|
-
export { F as FieldCopyTestIdButton, a as FieldCopyTestIdButtonProps } from './FieldCopyTestIdButton-_TDlmw0L.cjs';
|
|
17
|
-
export { F as FieldValidationError, a as FieldValidationErrorProps } from './FieldValidationError-DwtLkGMo.cjs';
|
|
18
|
-
export { R as RadioBoxes, a as RadioBoxesProps } from './RadioBoxes-DpkI28l0.cjs';
|
|
19
|
-
export { R as Radios, a as RadiosProps } from './Radios-DprlJhoq.cjs';
|
|
20
|
-
export { R as RadioTabs, a as RadioTabsProps } from './RadioTabs-DTDcAZoH.cjs';
|
|
21
|
-
export { S as Select, a as SelectProps } from './Select-CDkZmZp2.cjs';
|
|
22
|
-
export { S as SubmitButton, a as SubmitButtonProps } from './SubmitButton-DqaxyVpp.cjs';
|
|
23
|
-
export { S as Switch, a as SwitchProps } from './Switch-Hr6PnK98.cjs';
|
|
24
|
-
export { T as TextArea, a as TextAreaProps } from './TextArea-DhxNWYNg.cjs';
|
|
25
28
|
import 'react/jsx-runtime';
|
|
26
29
|
import 'tailwind-variants';
|
|
27
30
|
import '@fuf-stack/pixel-utils';
|
|
@@ -29,7 +32,7 @@ import 'react';
|
|
|
29
32
|
import '@fuf-stack/veto';
|
|
30
33
|
import 'react-hook-form';
|
|
31
34
|
import './FormContext-9Firwt4k.cjs';
|
|
32
|
-
import '@fuf-stack/veto/dist/types.d-CNPgNK-V';
|
|
33
35
|
import '@fuf-stack/pixels';
|
|
34
36
|
import 'react-select';
|
|
35
37
|
import '@heroui/switch';
|
|
38
|
+
import '@fuf-stack/veto/dist/types.d-CNPgNK-V';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,27 +1,30 @@
|
|
|
1
|
-
export { b as CheckboxOption, C as Checkboxes, a as CheckboxesProps } from './Checkboxes-
|
|
2
|
-
export { F as FieldArray, a as FieldArrayChildrenRenderFn, b as FieldArrayFeatures, c as FieldArrayProps } from './FieldArray-
|
|
1
|
+
export { b as CheckboxOption, C as Checkboxes, a as CheckboxesProps } from './Checkboxes-CFbsc6zg.js';
|
|
2
|
+
export { F as FieldArray, a as FieldArrayChildrenRenderFn, b as FieldArrayFeatures, c as FieldArrayProps } from './FieldArray-72vn2MG9.js';
|
|
3
|
+
export { FieldCard, FieldCardProps, fieldCardVariants } from './FieldCard/index.js';
|
|
3
4
|
export { F as Form, a as FormProps } from './Form-zsUjI2yq.js';
|
|
4
5
|
export { G as Grid, a as GridProps } from './Grid-DF3L9NF3.js';
|
|
5
6
|
export { flatArrayKey, fromNullishString, isTestEnvironment, nameToTestId, toFormFormat, toNullishString, toValidationFormat } from './helpers/index.js';
|
|
7
|
+
export { I as Input, a as InputProps } from './Input-__SqMh2n.js';
|
|
8
|
+
export { F as FieldCopyTestIdButton, a as FieldCopyTestIdButtonProps } from './FieldCopyTestIdButton-_TDlmw0L.js';
|
|
9
|
+
export { F as FieldValidationError, a as FieldValidationErrorProps } from './FieldValidationError-DwtLkGMo.js';
|
|
10
|
+
export { R as RadioBoxes, a as RadioBoxesProps, r as radioBoxVariants } from './RadioBox-DnqCiTR1.js';
|
|
11
|
+
export { R as Radios, a as RadiosProps } from './Radios-lLVlvY_B.js';
|
|
12
|
+
export { R as RadioTabs, a as RadioTabsProps } from './RadioTabs-DkR5fvl4.js';
|
|
13
|
+
export { S as Select, a as SelectProps } from './Select-DWlnKj5c.js';
|
|
14
|
+
export { S as Slider, a as SliderProps } from './Slider-CxHvafJA.js';
|
|
15
|
+
export { S as SubmitButton, a as SubmitButtonProps } from './SubmitButton-DqaxyVpp.js';
|
|
16
|
+
export { S as Switch, a as SwitchProps } from './Switch-B4AuHAMX.js';
|
|
17
|
+
export { S as SwitchBox, a as SwitchBoxProps, s as switchBoxVariants } from './SwitchBox-q1I7a0NX.js';
|
|
18
|
+
export { T as TextArea, a as TextAreaProps } from './TextArea-CYcFOcun.js';
|
|
6
19
|
export { clientValidationSchemaByName, useClientValidation } from './hooks/useClientValidation/index.js';
|
|
7
20
|
export { UseControllerProps, UseControllerReturn, useController } from './hooks/useController/index.js';
|
|
8
|
-
export { UseUniformFieldArrayProps, useUniformFieldArray } from './hooks/useUniformFieldArray/index.js';
|
|
9
21
|
export { checkFieldIsRequired, useFormContext } from './hooks/useFormContext/index.js';
|
|
10
22
|
export { useInput } from '@heroui/input';
|
|
11
23
|
export { UseInputValueDebounceOptions, UseInputValueDebounceReturn, useInputValueDebounce } from './hooks/useInputValueDebounce/index.js';
|
|
12
24
|
export { InputValueTransform, UseInputValueTransformOptions, UseInputValueTransformReturn, useInputValueTransform } from './hooks/useInputValueTransform/index.js';
|
|
13
25
|
export { UseUniformFieldParams, UseUniformFieldReturn, useUniformField } from './hooks/useUniformField/index.js';
|
|
26
|
+
export { UseUniformFieldArrayProps, useUniformFieldArray } from './hooks/useUniformFieldArray/index.js';
|
|
14
27
|
export { UseWatchUserChangeOptions, useWatchUserChange } from './hooks/useWatchUserChange/index.js';
|
|
15
|
-
export { I as Input, a as InputProps } from './Input-BcdS2xBM.js';
|
|
16
|
-
export { F as FieldCopyTestIdButton, a as FieldCopyTestIdButtonProps } from './FieldCopyTestIdButton-_TDlmw0L.js';
|
|
17
|
-
export { F as FieldValidationError, a as FieldValidationErrorProps } from './FieldValidationError-DwtLkGMo.js';
|
|
18
|
-
export { R as RadioBoxes, a as RadioBoxesProps } from './RadioBoxes-DpkI28l0.js';
|
|
19
|
-
export { R as Radios, a as RadiosProps } from './Radios-DprlJhoq.js';
|
|
20
|
-
export { R as RadioTabs, a as RadioTabsProps } from './RadioTabs-DTDcAZoH.js';
|
|
21
|
-
export { S as Select, a as SelectProps } from './Select-CDkZmZp2.js';
|
|
22
|
-
export { S as SubmitButton, a as SubmitButtonProps } from './SubmitButton-DqaxyVpp.js';
|
|
23
|
-
export { S as Switch, a as SwitchProps } from './Switch-Hr6PnK98.js';
|
|
24
|
-
export { T as TextArea, a as TextAreaProps } from './TextArea-DhxNWYNg.js';
|
|
25
28
|
import 'react/jsx-runtime';
|
|
26
29
|
import 'tailwind-variants';
|
|
27
30
|
import '@fuf-stack/pixel-utils';
|
|
@@ -29,7 +32,7 @@ import 'react';
|
|
|
29
32
|
import '@fuf-stack/veto';
|
|
30
33
|
import 'react-hook-form';
|
|
31
34
|
import './FormContext-9Firwt4k.js';
|
|
32
|
-
import '@fuf-stack/veto/dist/types.d-CNPgNK-V';
|
|
33
35
|
import '@fuf-stack/pixels';
|
|
34
36
|
import 'react-select';
|
|
35
37
|
import '@heroui/switch';
|
|
38
|
+
import '@fuf-stack/veto/dist/types.d-CNPgNK-V';
|