@fuf-stack/uniform 1.20.13 → 1.20.15
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 +1 -1
- package/dist/{Checkboxes-DegQ22uN.cjs → Checkboxes-CqlbSLHi.cjs} +3 -3
- package/dist/{Checkboxes-DegQ22uN.cjs.map → Checkboxes-CqlbSLHi.cjs.map} +1 -1
- package/dist/FieldArray/index.cjs +1 -1
- package/dist/{FieldArray-BVlqxHnR.cjs → FieldArray-DtlFSbHK.cjs} +4 -4
- package/dist/{FieldArray-BVlqxHnR.cjs.map → FieldArray-DtlFSbHK.cjs.map} +1 -1
- package/dist/FieldCard/index.cjs +1 -1
- package/dist/FieldCard/index.js +1 -1
- package/dist/{FieldCard-Bkp8PHJw.cjs → FieldCard-BNsMMgh3.cjs} +4 -4
- package/dist/{FieldCard-Bkp8PHJw.cjs.map → FieldCard-BNsMMgh3.cjs.map} +1 -1
- package/dist/{FieldCard-DynQT-O7.js → FieldCard-BuUT2zKN.js} +2 -2
- package/dist/{FieldCard-DynQT-O7.js.map → FieldCard-BuUT2zKN.js.map} +1 -1
- package/dist/{FieldCopyTestIdButton-DrUzXwTo.cjs → FieldCopyTestIdButton-_5kpA4ii.cjs} +2 -2
- package/dist/{FieldCopyTestIdButton-DrUzXwTo.cjs.map → FieldCopyTestIdButton-_5kpA4ii.cjs.map} +1 -1
- package/dist/{FieldValidationError-8H8LxDjk.cjs → FieldValidationError-D40HtO_l.cjs} +2 -2
- package/dist/{FieldValidationError-8H8LxDjk.cjs.map → FieldValidationError-D40HtO_l.cjs.map} +1 -1
- package/dist/Form/index.cjs +1 -1
- package/dist/Form/index.js +1 -1
- package/dist/{Form-Dqa1b7Y7.cjs → Form-BQbwyvPX.cjs} +3 -3
- package/dist/{Form-Dqa1b7Y7.cjs.map → Form-BQbwyvPX.cjs.map} +1 -1
- package/dist/{Form-Wzy7pBVt.js → Form-BodvG3wG.js} +3 -3
- package/dist/{Form-Wzy7pBVt.js.map → Form-BodvG3wG.js.map} +1 -1
- package/dist/{FormContext-CLfMWHQM.js → FormContext-DMaTuTAr.js} +8 -3
- package/dist/FormContext-DMaTuTAr.js.map +1 -0
- package/dist/{FormContext-BrY1FQYR.cjs → FormContext-Djp8wTG8.cjs} +8 -3
- package/dist/FormContext-Djp8wTG8.cjs.map +1 -0
- package/dist/Grid/index.cjs +1 -1
- package/dist/{Grid-DdYQQ_UM.cjs → Grid-BPOumLUp.cjs} +2 -2
- package/dist/{Grid-DdYQQ_UM.cjs.map → Grid-BPOumLUp.cjs.map} +1 -1
- package/dist/Input/index.cjs +1 -1
- package/dist/{Input-BrwUwIYg.cjs → Input-D64GjrZJ.cjs} +2 -2
- package/dist/{Input-BrwUwIYg.cjs.map → Input-D64GjrZJ.cjs.map} +1 -1
- package/dist/RadioBoxes/index.cjs +1 -1
- package/dist/{RadioBoxes-Cim3InDW.cjs → RadioBoxes-DpBv9exN.cjs} +2 -2
- package/dist/{RadioBoxes-Cim3InDW.cjs.map → RadioBoxes-DpBv9exN.cjs.map} +1 -1
- package/dist/RadioTabs/index.cjs +1 -1
- package/dist/{RadioTabs-t-x2XnuI.cjs → RadioTabs-CPsErN1U.cjs} +2 -2
- package/dist/{RadioTabs-t-x2XnuI.cjs.map → RadioTabs-CPsErN1U.cjs.map} +1 -1
- package/dist/Radios/index.cjs +1 -1
- package/dist/{Radios-CjEFdyD6.cjs → Radios-LA38MXVt.cjs} +2 -2
- package/dist/{Radios-CjEFdyD6.cjs.map → Radios-LA38MXVt.cjs.map} +1 -1
- package/dist/Select/index.cjs +1 -1
- package/dist/Select/index.d.cts +1 -1
- package/dist/Select/index.d.ts +1 -1
- package/dist/Select/index.js +1 -1
- package/dist/{Select-DbcoRSgi.cjs → Select-DR1M-WYr.cjs} +3 -3
- package/dist/{Select-DbcoRSgi.cjs.map → Select-DR1M-WYr.cjs.map} +1 -1
- package/dist/{Select-Bz3VmBM2.js → Select-DZ9ONLss.js} +2 -2
- package/dist/{Select-Bz3VmBM2.js.map → Select-DZ9ONLss.js.map} +1 -1
- package/dist/Slider/index.cjs +1 -1
- package/dist/Slider/index.d.cts +1 -1
- package/dist/Slider/index.d.ts +1 -1
- package/dist/{Slider-CFYP86ku.cjs → Slider-BXPgYL-o.cjs} +2 -2
- package/dist/{Slider-CFYP86ku.cjs.map → Slider-BXPgYL-o.cjs.map} +1 -1
- package/dist/SubmitButton/index.cjs +1 -1
- package/dist/SubmitButton/index.js +1 -1
- package/dist/{SubmitButton-D7xacDyS.cjs → SubmitButton-DgEHHy3N.cjs} +3 -3
- package/dist/{SubmitButton-D7xacDyS.cjs.map → SubmitButton-DgEHHy3N.cjs.map} +1 -1
- package/dist/{SubmitButton-Bu3NNFyt.js → SubmitButton-QWpHBvg9.js} +2 -2
- package/dist/{SubmitButton-Bu3NNFyt.js.map → SubmitButton-QWpHBvg9.js.map} +1 -1
- package/dist/Switch/index.cjs +1 -1
- package/dist/Switch/index.d.cts +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/{Switch-Dt9TGQ8d.cjs → Switch-B_R9hdxd.cjs} +2 -2
- package/dist/{Switch-Dt9TGQ8d.cjs.map → Switch-B_R9hdxd.cjs.map} +1 -1
- package/dist/SwitchBox/index.cjs +1 -1
- package/dist/{SwitchBox-DMPp_Ed-.cjs → SwitchBox-DZXIJjgl.cjs} +2 -2
- package/dist/{SwitchBox-DMPp_Ed-.cjs.map → SwitchBox-DZXIJjgl.cjs.map} +1 -1
- package/dist/TextArea/index.cjs +1 -1
- package/dist/{TextArea-BDNtxp9N.cjs → TextArea-CsNyG6DY.cjs} +2 -2
- package/dist/{TextArea-BDNtxp9N.cjs.map → TextArea-CsNyG6DY.cjs.map} +1 -1
- package/dist/helpers/index.cjs +1 -1
- package/dist/hooks/useClientValidation/index.cjs +1 -1
- package/dist/hooks/useClientValidation/index.js +1 -1
- package/dist/hooks/useController/index.cjs +1 -1
- package/dist/hooks/useController/index.js +1 -1
- package/dist/hooks/useFormContext/index.cjs +1 -1
- package/dist/hooks/useFormContext/index.d.cts +1 -1
- package/dist/hooks/useFormContext/index.d.ts +1 -1
- package/dist/hooks/useFormContext/index.js +1 -1
- package/dist/hooks/useInput/index.cjs +1 -1
- package/dist/hooks/useInputValueDebounce/index.cjs +2 -2
- package/dist/hooks/useInputValueDebounce/index.js +1 -1
- package/dist/hooks/useInputValueTransform/index.cjs +1 -1
- package/dist/hooks/useUniformField/index.cjs +6 -6
- package/dist/hooks/useUniformField/index.d.cts +1 -1
- package/dist/hooks/useUniformField/index.d.ts +1 -1
- package/dist/hooks/useUniformField/index.js +2 -2
- package/dist/hooks/useUniformFieldArray/index.cjs +2 -2
- package/dist/hooks/useUniformFieldArray/index.d.cts +1 -1
- package/dist/hooks/useUniformFieldArray/index.d.ts +1 -1
- package/dist/hooks/useUniformFieldArray/index.js +1 -1
- package/dist/hooks/useWatchUserChange/index.cjs +1 -1
- package/dist/hooks/useWatchUserChange/index.js +1 -1
- package/dist/{index-Bnbxpzyn.d.cts → index-Bfeg8Bgn.d.cts} +10 -10
- package/dist/{index-Bnbxpzyn.d.cts.map → index-Bfeg8Bgn.d.cts.map} +1 -1
- package/dist/{index-LwJL1Zry.d.cts → index-Buf0-Uwe.d.cts} +16 -16
- package/dist/{index-LwJL1Zry.d.cts.map → index-Buf0-Uwe.d.cts.map} +1 -1
- package/dist/{index-9wnJP0-_.d.ts → index-DQYlskIr.d.ts} +16 -16
- package/dist/{index-9wnJP0-_.d.ts.map → index-DQYlskIr.d.ts.map} +1 -1
- package/dist/{index-w6__3xcP.d.ts → index-DnVL0EF_.d.ts} +7 -7
- package/dist/{index-w6__3xcP.d.ts.map → index-DnVL0EF_.d.ts.map} +1 -1
- package/dist/{index-CFtgFlMy.d.ts → index-DrFVTUQ9.d.ts} +10 -10
- package/dist/{index-CFtgFlMy.d.ts.map → index-DrFVTUQ9.d.ts.map} +1 -1
- package/dist/{index-BH09nkLw.d.cts → index-UbDgOiTN.d.cts} +7 -7
- package/dist/{index-BH09nkLw.d.cts.map → index-UbDgOiTN.d.cts.map} +1 -1
- package/dist/index.cjs +23 -23
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +8 -8
- package/dist/partials/FieldCopyTestIdButton/index.cjs +1 -1
- package/dist/partials/FieldValidationError/index.cjs +1 -1
- package/dist/{useClientValidation-Dn_kJkE5.js → useClientValidation-7iy9lEfO.js} +2 -2
- package/dist/{useClientValidation-Dn_kJkE5.js.map → useClientValidation-7iy9lEfO.js.map} +1 -1
- package/dist/{useClientValidation-NKOuXuHV.cjs → useClientValidation-_GEt49og.cjs} +3 -3
- package/dist/{useClientValidation-NKOuXuHV.cjs.map → useClientValidation-_GEt49og.cjs.map} +1 -1
- package/dist/{useController-B-6PzFna.js → useController-BQ4LoFBd.js} +2 -2
- package/dist/{useController-B-6PzFna.js.map → useController-BQ4LoFBd.js.map} +1 -1
- package/dist/{useController-DVRh86Zy.cjs → useController-lNSzBL-i.cjs} +2 -2
- package/dist/{useController-DVRh86Zy.cjs.map → useController-lNSzBL-i.cjs.map} +1 -1
- package/dist/{useFormContext-Bzpyonu6.js → useFormContext-2vyVWpUJ.js} +2 -2
- package/dist/{useFormContext-Bzpyonu6.js.map → useFormContext-2vyVWpUJ.js.map} +1 -1
- package/dist/{useFormContext-DTE4pvL2.d.ts → useFormContext-BYnHt6-m.d.ts} +3 -3
- package/dist/{useFormContext-DTE4pvL2.d.ts.map → useFormContext-BYnHt6-m.d.ts.map} +1 -1
- package/dist/{useFormContext-Bum4VP1o.cjs → useFormContext-CNGE9heQ.cjs} +2 -2
- package/dist/{useFormContext-Bum4VP1o.cjs.map → useFormContext-CNGE9heQ.cjs.map} +1 -1
- package/dist/{useFormContext-C29MZE_C.d.cts → useFormContext-JE8dwbCT.d.cts} +3 -3
- package/dist/{useFormContext-C29MZE_C.d.cts.map → useFormContext-JE8dwbCT.d.cts.map} +1 -1
- package/dist/{useInputValueTransform-DKH-7F9D.cjs → useInputValueTransform-5jjQVowe.cjs} +2 -2
- package/dist/{useInputValueTransform-DKH-7F9D.cjs.map → useInputValueTransform-5jjQVowe.cjs.map} +1 -1
- package/dist/{useUniformField-DGBTwJLI.d.ts → useUniformField-B3Dj8K5J.d.ts} +2 -2
- package/dist/{useUniformField-DGBTwJLI.d.ts.map → useUniformField-B3Dj8K5J.d.ts.map} +1 -1
- package/dist/{useUniformField-DQsQnuA_.d.cts → useUniformField-BWKBsUEX.d.cts} +2 -2
- package/dist/{useUniformField-DQsQnuA_.d.cts.map → useUniformField-BWKBsUEX.d.cts.map} +1 -1
- package/dist/{useUniformFieldArray-DJV2LOpX.d.ts → useUniformFieldArray-Bcu3gKxz.d.ts} +3 -3
- package/dist/{useUniformFieldArray-DJV2LOpX.d.ts.map → useUniformFieldArray-Bcu3gKxz.d.ts.map} +1 -1
- package/dist/{useUniformFieldArray-BFkeHpUv.d.cts → useUniformFieldArray-qnnjPpJD.d.cts} +3 -3
- package/dist/{useUniformFieldArray-BFkeHpUv.d.cts.map → useUniformFieldArray-qnnjPpJD.d.cts.map} +1 -1
- package/dist/{useWatchUserChange-CBuIa5kU.cjs → useWatchUserChange-BSfuusTZ.cjs} +3 -3
- package/dist/{useWatchUserChange-CBuIa5kU.cjs.map → useWatchUserChange-BSfuusTZ.cjs.map} +1 -1
- package/dist/{useWatchUserChange-CLgLc5W4.js → useWatchUserChange-DdmIHIkf.js} +2 -2
- package/dist/{useWatchUserChange-CLgLc5W4.js.map → useWatchUserChange-DdmIHIkf.js.map} +1 -1
- package/package.json +3 -3
- package/dist/FormContext-BrY1FQYR.cjs.map +0 -1
- package/dist/FormContext-CLfMWHQM.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SwitchBox-DMPp_Ed-.cjs","names":["useUniformField","VisuallyHidden"],"sources":["../src/SwitchBox/SwitchBox.tsx","../src/SwitchBox/index.ts"],"sourcesContent":["import type { TVClassName } from '@fuf-stack/pixel-utils';\nimport type { SwitchProps as HeroSwitchProps } from '@heroui/switch';\nimport type { ReactNode } from 'react';\n\nimport { useRef } from 'react';\n\nimport { useSwitch } from '@heroui/switch';\nimport { VisuallyHidden } from '@react-aria/visually-hidden';\n\nimport { cn, tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\nimport { useUniformField } from '../hooks/useUniformField';\n\nexport const switchBoxVariants = tv({\n slots: {\n box: 'group inline-flex w-full cursor-pointer items-center justify-between rounded-lg border-2 border-default hover:bg-content2 data-[selected=true]:border-focus',\n description: 'text-foreground opacity-70',\n icon: '',\n label:\n 'font-medium text-foreground group-data-[required=true]:after:ml-0.5 group-data-[required=true]:after:text-danger group-data-[required=true]:after:content-[\"*\"]',\n wrapper: '',\n thumb: '',\n thumbIcon: '',\n },\n variants: {\n isDisabled: {\n true: {\n box: 'pointer-events-none opacity-disabled',\n },\n },\n isInvalid: {\n true: {\n box: '!border-danger',\n label: '!text-danger',\n },\n },\n size: {\n sm: {\n box: 'gap-2 p-3',\n description: 'text-xs',\n label: 'text-xs',\n },\n md: {\n box: 'gap-4 p-4',\n description: 'text-small',\n label: 'text-sm',\n },\n lg: {\n box: 'gap-4 p-5',\n description: 'text-small',\n label: 'text-base',\n },\n },\n },\n defaultVariants: {\n size: 'md',\n },\n});\n\ntype ClassName = TVClassName<typeof switchBoxVariants>;\n\nexport interface SwitchBoxProps {\n /** CSS class name */\n className?: ClassName;\n /** Description text displayed below the label */\n description?: ReactNode;\n /** whether the switch should be disabled */\n disabled?: boolean;\n /** Icon to be displayed in the box */\n icon?: ReactNode;\n /** component displayed as the label */\n label?: ReactNode;\n /** name the field is registered under */\n name: string;\n /** whether the field is required */\n required?: boolean;\n /* Size of the switch */\n size?: 'sm' | 'md' | 'lg';\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n /** Icon to be displayed inside the thumb */\n thumbIcon?: HeroSwitchProps['thumbIcon'];\n}\n\n/**\n * SwitchBox component - A card-like box with a switch control\n */\nconst SwitchBox = ({\n className = undefined,\n description = undefined,\n icon = undefined,\n name,\n size = undefined,\n thumbIcon = undefined,\n ...uniformFieldProps\n}: SwitchBoxProps) => {\n const {\n defaultValue,\n disabled,\n errorMessage,\n field,\n getErrorMessageProps,\n getHelperWrapperProps,\n invalid,\n label,\n onBlur,\n onChange,\n ref,\n required,\n testId,\n } = useUniformField({\n name,\n ...uniformFieldProps,\n });\n\n // Ref for the visual switch to forward focus\n const visualSwitchRef = useRef<HTMLInputElement>(null);\n\n // Use the useSwitch hook to get access to all the necessary props\n const {\n Component,\n slots,\n isSelected,\n getBaseProps,\n getInputProps,\n getWrapperProps,\n } = useSwitch({\n defaultSelected: !!defaultValue,\n isDisabled: disabled,\n isSelected: !!field.value,\n name: `${name}_switch`,\n onValueChange: onChange,\n size,\n thumbIcon,\n });\n\n // classNames from slots\n const variants = switchBoxVariants({\n isDisabled: disabled,\n isInvalid: invalid,\n size,\n });\n const classNames = variantsToClassNames(variants, className, 'box');\n\n return (\n <>\n <Component\n {...getBaseProps()}\n className={classNames.box}\n data-invalid={invalid}\n data-required={required}\n data-testid={testId}\n >\n <VisuallyHidden>\n <input\n ref={ref}\n aria-label={typeof label === 'string' ? label : name}\n checked={!!field.value}\n name={name}\n tabIndex={-1}\n type=\"checkbox\"\n onChange={(e) => {\n onChange(e.target.checked);\n }}\n onFocus={() => {\n // When RHF focuses this hidden input (e.g., on validation error),\n // forward focus to the visual switch to show focus ring\n visualSwitchRef.current?.focus();\n }}\n />\n {/* Visual switch input for focus ring */}\n <input\n ref={visualSwitchRef}\n {...getInputProps()}\n onBlur={(e) => {\n // Call HeroUI's internal onBlur to clear focus state and remove focus ring\n getInputProps().onBlur?.(e);\n // Then call RHF's onBlur to mark field as touched\n onBlur();\n }}\n />\n </VisuallyHidden>\n {!icon ? (\n <span\n {...getWrapperProps()}\n className={cn(getWrapperProps().className, classNames.wrapper)}\n >\n <span className={cn(slots.thumb({ class: classNames.thumb }))}>\n {thumbIcon && typeof thumbIcon === 'function'\n ? thumbIcon({\n isSelected: !!isSelected,\n className: slots.thumbIcon({ class: classNames.thumbIcon }),\n width: '1em',\n height: '1em',\n 'data-checked': isSelected ? 'true' : 'false',\n })\n : thumbIcon}\n </span>\n </span>\n ) : null}\n {icon ? <div className={classNames.icon}>{icon}</div> : null}\n <div className=\"grow\">\n {label ? <div className={classNames.label}>{label}</div> : null}\n {description ? (\n <div className={classNames.description}>{description}</div>\n ) : null}\n </div>\n {icon ? (\n <span\n {...getWrapperProps()}\n className={cn(getWrapperProps().className, classNames.wrapper)}\n >\n <span className={cn(slots.thumb({ class: classNames.thumb }))}>\n {thumbIcon && typeof thumbIcon === 'function'\n ? thumbIcon({\n isSelected: !!isSelected,\n className: slots.thumbIcon({ class: classNames.thumbIcon }),\n width: '1em',\n height: '1em',\n 'data-checked': isSelected ? 'true' : 'false',\n })\n : thumbIcon}\n </span>\n </span>\n ) : null}\n </Component>\n {invalid ? (\n <div\n {...getHelperWrapperProps()}\n className={cn(\n getHelperWrapperProps()?.className,\n // force helper to be visible (for some reason it's hidden by default) and remove margin\n 'ml-0 block',\n )}\n >\n <div {...getErrorMessageProps()}>{errorMessage}</div>\n </div>\n ) : null}\n </>\n );\n};\n\nexport default SwitchBox;\n","import SwitchBox from './SwitchBox';\n\nexport type { SwitchBoxProps } from './SwitchBox';\n\nexport { switchBoxVariants } from './SwitchBox';\nexport { SwitchBox };\n\nexport default SwitchBox;\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"SwitchBox-DZXIJjgl.cjs","names":["useUniformField","VisuallyHidden"],"sources":["../src/SwitchBox/SwitchBox.tsx","../src/SwitchBox/index.ts"],"sourcesContent":["import type { TVClassName } from '@fuf-stack/pixel-utils';\nimport type { SwitchProps as HeroSwitchProps } from '@heroui/switch';\nimport type { ReactNode } from 'react';\n\nimport { useRef } from 'react';\n\nimport { useSwitch } from '@heroui/switch';\nimport { VisuallyHidden } from '@react-aria/visually-hidden';\n\nimport { cn, tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\nimport { useUniformField } from '../hooks/useUniformField';\n\nexport const switchBoxVariants = tv({\n slots: {\n box: 'group inline-flex w-full cursor-pointer items-center justify-between rounded-lg border-2 border-default hover:bg-content2 data-[selected=true]:border-focus',\n description: 'text-foreground opacity-70',\n icon: '',\n label:\n 'font-medium text-foreground group-data-[required=true]:after:ml-0.5 group-data-[required=true]:after:text-danger group-data-[required=true]:after:content-[\"*\"]',\n wrapper: '',\n thumb: '',\n thumbIcon: '',\n },\n variants: {\n isDisabled: {\n true: {\n box: 'pointer-events-none opacity-disabled',\n },\n },\n isInvalid: {\n true: {\n box: '!border-danger',\n label: '!text-danger',\n },\n },\n size: {\n sm: {\n box: 'gap-2 p-3',\n description: 'text-xs',\n label: 'text-xs',\n },\n md: {\n box: 'gap-4 p-4',\n description: 'text-small',\n label: 'text-sm',\n },\n lg: {\n box: 'gap-4 p-5',\n description: 'text-small',\n label: 'text-base',\n },\n },\n },\n defaultVariants: {\n size: 'md',\n },\n});\n\ntype ClassName = TVClassName<typeof switchBoxVariants>;\n\nexport interface SwitchBoxProps {\n /** CSS class name */\n className?: ClassName;\n /** Description text displayed below the label */\n description?: ReactNode;\n /** whether the switch should be disabled */\n disabled?: boolean;\n /** Icon to be displayed in the box */\n icon?: ReactNode;\n /** component displayed as the label */\n label?: ReactNode;\n /** name the field is registered under */\n name: string;\n /** whether the field is required */\n required?: boolean;\n /* Size of the switch */\n size?: 'sm' | 'md' | 'lg';\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n /** Icon to be displayed inside the thumb */\n thumbIcon?: HeroSwitchProps['thumbIcon'];\n}\n\n/**\n * SwitchBox component - A card-like box with a switch control\n */\nconst SwitchBox = ({\n className = undefined,\n description = undefined,\n icon = undefined,\n name,\n size = undefined,\n thumbIcon = undefined,\n ...uniformFieldProps\n}: SwitchBoxProps) => {\n const {\n defaultValue,\n disabled,\n errorMessage,\n field,\n getErrorMessageProps,\n getHelperWrapperProps,\n invalid,\n label,\n onBlur,\n onChange,\n ref,\n required,\n testId,\n } = useUniformField({\n name,\n ...uniformFieldProps,\n });\n\n // Ref for the visual switch to forward focus\n const visualSwitchRef = useRef<HTMLInputElement>(null);\n\n // Use the useSwitch hook to get access to all the necessary props\n const {\n Component,\n slots,\n isSelected,\n getBaseProps,\n getInputProps,\n getWrapperProps,\n } = useSwitch({\n defaultSelected: !!defaultValue,\n isDisabled: disabled,\n isSelected: !!field.value,\n name: `${name}_switch`,\n onValueChange: onChange,\n size,\n thumbIcon,\n });\n\n // classNames from slots\n const variants = switchBoxVariants({\n isDisabled: disabled,\n isInvalid: invalid,\n size,\n });\n const classNames = variantsToClassNames(variants, className, 'box');\n\n return (\n <>\n <Component\n {...getBaseProps()}\n className={classNames.box}\n data-invalid={invalid}\n data-required={required}\n data-testid={testId}\n >\n <VisuallyHidden>\n <input\n ref={ref}\n aria-label={typeof label === 'string' ? label : name}\n checked={!!field.value}\n name={name}\n tabIndex={-1}\n type=\"checkbox\"\n onChange={(e) => {\n onChange(e.target.checked);\n }}\n onFocus={() => {\n // When RHF focuses this hidden input (e.g., on validation error),\n // forward focus to the visual switch to show focus ring\n visualSwitchRef.current?.focus();\n }}\n />\n {/* Visual switch input for focus ring */}\n <input\n ref={visualSwitchRef}\n {...getInputProps()}\n onBlur={(e) => {\n // Call HeroUI's internal onBlur to clear focus state and remove focus ring\n getInputProps().onBlur?.(e);\n // Then call RHF's onBlur to mark field as touched\n onBlur();\n }}\n />\n </VisuallyHidden>\n {!icon ? (\n <span\n {...getWrapperProps()}\n className={cn(getWrapperProps().className, classNames.wrapper)}\n >\n <span className={cn(slots.thumb({ class: classNames.thumb }))}>\n {thumbIcon && typeof thumbIcon === 'function'\n ? thumbIcon({\n isSelected: !!isSelected,\n className: slots.thumbIcon({ class: classNames.thumbIcon }),\n width: '1em',\n height: '1em',\n 'data-checked': isSelected ? 'true' : 'false',\n })\n : thumbIcon}\n </span>\n </span>\n ) : null}\n {icon ? <div className={classNames.icon}>{icon}</div> : null}\n <div className=\"grow\">\n {label ? <div className={classNames.label}>{label}</div> : null}\n {description ? (\n <div className={classNames.description}>{description}</div>\n ) : null}\n </div>\n {icon ? (\n <span\n {...getWrapperProps()}\n className={cn(getWrapperProps().className, classNames.wrapper)}\n >\n <span className={cn(slots.thumb({ class: classNames.thumb }))}>\n {thumbIcon && typeof thumbIcon === 'function'\n ? thumbIcon({\n isSelected: !!isSelected,\n className: slots.thumbIcon({ class: classNames.thumbIcon }),\n width: '1em',\n height: '1em',\n 'data-checked': isSelected ? 'true' : 'false',\n })\n : thumbIcon}\n </span>\n </span>\n ) : null}\n </Component>\n {invalid ? (\n <div\n {...getHelperWrapperProps()}\n className={cn(\n getHelperWrapperProps()?.className,\n // force helper to be visible (for some reason it's hidden by default) and remove margin\n 'ml-0 block',\n )}\n >\n <div {...getErrorMessageProps()}>{errorMessage}</div>\n </div>\n ) : null}\n </>\n );\n};\n\nexport default SwitchBox;\n","import SwitchBox from './SwitchBox';\n\nexport type { SwitchBoxProps } from './SwitchBox';\n\nexport { switchBoxVariants } from './SwitchBox';\nexport { SwitchBox };\n\nexport default SwitchBox;\n"],"mappings":"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"}
|
package/dist/TextArea/index.cjs
CHANGED
|
@@ -2,6 +2,6 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_TextArea = require("../TextArea-
|
|
5
|
+
const require_TextArea = require("../TextArea-CsNyG6DY.cjs");
|
|
6
6
|
exports.TextArea = require_TextArea.TextArea;
|
|
7
7
|
exports.default = require_TextArea.TextArea_default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
require("./FormContext-
|
|
1
|
+
require("./FormContext-Djp8wTG8.cjs");
|
|
2
2
|
const require_hooks_useUniformField_index = require("./hooks/useUniformField/index.cjs");
|
|
3
3
|
const require_hooks_useInputValueDebounce_index = require("./hooks/useInputValueDebounce/index.cjs");
|
|
4
4
|
let _fuf_stack_pixel_utils = require("@fuf-stack/pixel-utils");
|
|
@@ -75,4 +75,4 @@ Object.defineProperty(exports, "TextArea_default", {
|
|
|
75
75
|
}
|
|
76
76
|
});
|
|
77
77
|
|
|
78
|
-
//# sourceMappingURL=TextArea-
|
|
78
|
+
//# sourceMappingURL=TextArea-CsNyG6DY.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextArea-
|
|
1
|
+
{"version":3,"file":"TextArea-CsNyG6DY.cjs","names":["useUniformField","useInputValueDebounce","HeroTextArea"],"sources":["../src/TextArea/TextArea.tsx","../src/TextArea/index.ts"],"sourcesContent":["import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { ReactNode } from 'react';\n\nimport { Textarea as HeroTextArea } from '@heroui/input';\n\nimport { tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\nimport { useInputValueDebounce } from '../hooks/useInputValueDebounce';\nimport { useUniformField } from '../hooks/useUniformField';\n\n// input variants\nexport const textAreaVariants = tv({\n slots: {\n /** wrapper around the whole input */\n base: '',\n /** clear button */\n clearButton: '',\n /** actual input element */\n input: '',\n /** inner wrapper (HeroUI inputWrapper slot) */\n inputWrapper: 'bg-content1 group-data-[focus=true]:border-focus',\n },\n});\n\ntype VariantProps = TVProps<typeof textAreaVariants>;\ntype ClassName = TVClassName<typeof textAreaVariants>;\n\nexport interface TextAreaProps 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 /** Child components. The content of the textarea. */\n children?: ReactNode;\n /** CSS class name */\n className?: ClassName;\n /** debounce delay in milliseconds for form state updates (default: 300ms) */\n debounceDelay?: number;\n /** Determines if the TextArea is disabled or not. */\n disabled?: boolean;\n /** Label displayed above the TextArea. */\n label?: ReactNode;\n /** Name the TextArea is registered at in HTML forms (react-hook-form). */\n name: string;\n /** placeholder for the textArea content. */\n placeholder?: string;\n /** Id to grab element in internal tests. */\n testId?: string;\n}\n\n/**\n * TextArea component based on [HeroUI TextArea](https://www.heroui.com//docs/components/textarea)\n */\nconst TextArea = ({\n children = null,\n className: _className = undefined,\n debounceDelay = 300,\n name,\n placeholder = ' ',\n ...uniformFieldProps\n}: TextAreaProps) => {\n const {\n ariaLabel,\n disabled,\n errorMessage,\n field: {\n onChange: fieldOnChange,\n onBlur: fieldOnBlur,\n value: fieldValue,\n ref,\n },\n invalid,\n label,\n required,\n testId,\n } = useUniformField({ name, ...uniformFieldProps });\n\n // Use debounced handlers for form updates\n const { onChange, onBlur, value } = useInputValueDebounce({\n debounceDelay,\n name,\n onBlur: fieldOnBlur,\n onChange: fieldOnChange,\n value: fieldValue,\n });\n\n // classNames from slots\n const variants = textAreaVariants();\n const classNames = variantsToClassNames(variants, _className, 'base');\n\n return (\n <HeroTextArea\n ref={ref}\n data-testid={testId}\n errorMessage={errorMessage}\n id={testId}\n isDisabled={disabled}\n isInvalid={invalid}\n isRequired={required}\n label={label}\n labelPlacement=\"outside\"\n name={name}\n onBlur={onBlur}\n onChange={onChange}\n placeholder={placeholder}\n value={value}\n variant=\"bordered\"\n // Only add aria-label if there's no meaningful placeholder (HeroUI uses placeholder as aria-label)\n aria-label={\n !placeholder || placeholder.trim() === '' ? ariaLabel : undefined\n }\n classNames={{\n base: classNames.base,\n clearButton: classNames.clearButton,\n // set padding to 0 for error message exit animation\n helperWrapper: 'p-0',\n input: classNames.input,\n inputWrapper: classNames.inputWrapper,\n }}\n >\n {children}\n </HeroTextArea>\n );\n};\n\nexport default TextArea;\n","import TextArea from './TextArea';\n\nexport type { TextAreaProps } from './TextArea';\n\nexport { TextArea };\n\nexport default TextArea;\n"],"mappings":";;;;;;;AAWA,MAAa,oBAAA,GAAA,uBAAA,IAAsB,EACjC,OAAO;;CAEL,MAAM;;CAEN,aAAa;;CAEb,OAAO;;CAEP,cAAc;AAChB,EACF,CAAC;;;;AA6BD,MAAM,YAAY,EAChB,WAAW,MACX,WAAW,aAAa,KAAA,GACxB,gBAAgB,KAChB,MACA,cAAc,KACd,GAAG,wBACgB;CACnB,MAAM,EACJ,WACA,UACA,cACA,OAAO,EACL,UAAU,eACV,QAAQ,aACR,OAAO,YACP,OAEF,SACA,OACA,UACA,WACEA,oCAAAA,gBAAgB;EAAE;EAAM,GAAG;CAAkB,CAAC;CAGlD,MAAM,EAAE,UAAU,QAAQ,UAAUC,0CAAAA,sBAAsB;EACxD;EACA;EACA,QAAQ;EACR,UAAU;EACV,OAAO;CACT,CAAC;CAID,MAAM,cAAA,GAAA,uBAAA,sBADW,iBAC8B,GAAG,YAAY,MAAM;CAEpE,OACE,iBAAA,GAAA,kBAAA,KAACC,cAAAA,UAAD;EACO;EACL,eAAa;EACC;EACd,IAAI;EACJ,YAAY;EACZ,WAAW;EACX,YAAY;EACL;EACP,gBAAe;EACT;EACE;EACE;EACG;EACN;EACP,SAAQ;EAER,cACE,CAAC,eAAe,YAAY,KAAK,MAAM,KAAK,YAAY,KAAA;EAE1D,YAAY;GACV,MAAM,WAAW;GACjB,aAAa,WAAW;GAExB,eAAe;GACf,OAAO,WAAW;GAClB,cAAc,WAAW;EAC3B;EAEC;CACW,CAAA;AAElB;;;ACnHA,IAAA,mBAAe"}
|
package/dist/helpers/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("../FormContext-
|
|
2
|
+
require("../FormContext-Djp8wTG8.cjs");
|
|
3
3
|
let _fuf_stack_pixel_utils = require("@fuf-stack/pixel-utils");
|
|
4
4
|
//#region src/helpers/createOptionValueConverter/createOptionValueConverter.ts
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_useClientValidation = require("../../useClientValidation-
|
|
2
|
+
const require_useClientValidation = require("../../useClientValidation-_GEt49og.cjs");
|
|
3
3
|
//#region src/hooks/useClientValidation/index.ts
|
|
4
4
|
/* v8 ignore stop */
|
|
5
5
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as useClientValidation, t as clientValidationSchemaByName } from "../../useClientValidation-
|
|
1
|
+
import { n as useClientValidation, t as clientValidationSchemaByName } from "../../useClientValidation-7iy9lEfO.js";
|
|
2
2
|
//#region src/hooks/useClientValidation/index.ts
|
|
3
3
|
/* v8 ignore stop */
|
|
4
4
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_useController = require("../../useController-
|
|
2
|
+
const require_useController = require("../../useController-lNSzBL-i.cjs");
|
|
3
3
|
//#region src/hooks/useController/index.ts
|
|
4
4
|
/* v8 ignore stop */
|
|
5
5
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_useFormContext = require("../../useFormContext-
|
|
2
|
+
const require_useFormContext = require("../../useFormContext-CNGE9heQ.cjs");
|
|
3
3
|
//#region src/hooks/useFormContext/index.ts
|
|
4
4
|
/* v8 ignore stop */
|
|
5
5
|
//#endregion
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as useFormContext, t as checkFieldIsRequired } from "../../useFormContext-
|
|
1
|
+
import { n as useFormContext, t as checkFieldIsRequired } from "../../useFormContext-JE8dwbCT.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-BYnHt6-m.js";
|
|
2
2
|
export { checkFieldIsRequired, useFormContext };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as useFormContext, t as checkFieldIsRequired } from "../../useFormContext-
|
|
1
|
+
import { n as useFormContext, t as checkFieldIsRequired } from "../../useFormContext-2vyVWpUJ.js";
|
|
2
2
|
//#region src/hooks/useFormContext/index.ts
|
|
3
3
|
/* v8 ignore stop */
|
|
4
4
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("../../FormContext-
|
|
2
|
+
require("../../FormContext-Djp8wTG8.cjs");
|
|
3
3
|
let _heroui_input = require("@heroui/input");
|
|
4
4
|
//#region src/hooks/useInput/index.ts
|
|
5
5
|
/* v8 ignore stop */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("../../FormContext-
|
|
3
|
-
const require_useFormContext = require("../../useFormContext-
|
|
2
|
+
require("../../FormContext-Djp8wTG8.cjs");
|
|
3
|
+
const require_useFormContext = require("../../useFormContext-CNGE9heQ.cjs");
|
|
4
4
|
let react = require("react");
|
|
5
5
|
//#region src/hooks/useInputValueDebounce/useInputValueDebounce.ts
|
|
6
6
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as useFormContext } from "../../useFormContext-
|
|
1
|
+
import { n as useFormContext } from "../../useFormContext-2vyVWpUJ.js";
|
|
2
2
|
import { useCallback, useEffect, useRef, useState } from "react";
|
|
3
3
|
//#region src/hooks/useInputValueDebounce/useInputValueDebounce.ts
|
|
4
4
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_useInputValueTransform = require("../../useInputValueTransform-
|
|
2
|
+
const require_useInputValueTransform = require("../../useInputValueTransform-5jjQVowe.cjs");
|
|
3
3
|
//#region src/hooks/useInputValueTransform/index.ts
|
|
4
4
|
/* v8 ignore stop */
|
|
5
5
|
//#endregion
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_FormContext = require("../../FormContext-
|
|
2
|
+
const require_FormContext = require("../../FormContext-Djp8wTG8.cjs");
|
|
3
3
|
const require_helpers_index = require("../../helpers/index.cjs");
|
|
4
|
-
const require_FieldCopyTestIdButton = require("../../FieldCopyTestIdButton-
|
|
5
|
-
const require_FieldValidationError = require("../../FieldValidationError-
|
|
6
|
-
const require_useController = require("../../useController-
|
|
7
|
-
const require_useFormContext = require("../../useFormContext-
|
|
8
|
-
const require_useInputValueTransform = require("../../useInputValueTransform-
|
|
4
|
+
const require_FieldCopyTestIdButton = require("../../FieldCopyTestIdButton-_5kpA4ii.cjs");
|
|
5
|
+
const require_FieldValidationError = require("../../FieldValidationError-D40HtO_l.cjs");
|
|
6
|
+
const require_useController = require("../../useController-lNSzBL-i.cjs");
|
|
7
|
+
const require_useFormContext = require("../../useFormContext-CNGE9heQ.cjs");
|
|
8
|
+
const require_useInputValueTransform = require("../../useInputValueTransform-5jjQVowe.cjs");
|
|
9
9
|
let react = require("react");
|
|
10
10
|
react = require_FormContext.__toESM(react);
|
|
11
11
|
let _fuf_stack_pixels = require("@fuf-stack/pixels");
|
|
@@ -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-BWKBsUEX.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-B3Dj8K5J.js";
|
|
2
2
|
export { UseUniformFieldParams, UseUniformFieldReturn, useUniformField };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { isValueEmpty } from "../../helpers/index.js";
|
|
2
2
|
import { n as FieldCopyTestIdButton } from "../../FieldCopyTestIdButton-Dpmo0uBV.js";
|
|
3
3
|
import { n as FieldValidationError } from "../../FieldValidationError-ktTyyyip.js";
|
|
4
|
-
import { t as useController } from "../../useController-
|
|
5
|
-
import { n as useFormContext } from "../../useFormContext-
|
|
4
|
+
import { t as useController } from "../../useController-BQ4LoFBd.js";
|
|
5
|
+
import { n as useFormContext } from "../../useFormContext-2vyVWpUJ.js";
|
|
6
6
|
import { t as useInput } from "../../useInput-CVm3tP78.js";
|
|
7
7
|
import { t as useInputValueTransform } from "../../useInputValueTransform-CXdmtc0Q.js";
|
|
8
8
|
import "react";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("../../FormContext-
|
|
2
|
+
require("../../FormContext-Djp8wTG8.cjs");
|
|
3
3
|
const require_helpers_index = require("../../helpers/index.cjs");
|
|
4
|
-
const require_useFormContext = require("../../useFormContext-
|
|
4
|
+
const require_useFormContext = require("../../useFormContext-CNGE9heQ.cjs");
|
|
5
5
|
const require_hooks_useUniformField_index = require("../useUniformField/index.cjs");
|
|
6
6
|
let react = require("react");
|
|
7
7
|
let _fuf_stack_pixel_motion = require("@fuf-stack/pixel-motion");
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as useUniformFieldArray, t as UseUniformFieldArrayProps } from "../../useUniformFieldArray-
|
|
1
|
+
import { n as useUniformFieldArray, t as UseUniformFieldArrayProps } from "../../useUniformFieldArray-qnnjPpJD.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-Bcu3gKxz.js";
|
|
2
2
|
export { UseUniformFieldArrayProps, useUniformFieldArray };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { flatArrayKey } from "../../helpers/index.js";
|
|
2
|
-
import { n as useFormContext$1 } from "../../useFormContext-
|
|
2
|
+
import { n as useFormContext$1 } from "../../useFormContext-2vyVWpUJ.js";
|
|
3
3
|
import { useUniformField } from "../useUniformField/index.js";
|
|
4
4
|
import { useEffect, useMemo, useRef, useState } from "react";
|
|
5
5
|
import { useReducedMotion } from "@fuf-stack/pixel-motion";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_useWatchUserChange = require("../../useWatchUserChange-
|
|
2
|
+
const require_useWatchUserChange = require("../../useWatchUserChange-BSfuusTZ.cjs");
|
|
3
3
|
//#region src/hooks/useWatchUserChange/index.ts
|
|
4
4
|
/* v8 ignore stop */
|
|
5
5
|
//#endregion
|
|
@@ -8,12 +8,12 @@ declare const selectVariants: import("tailwind-variants").TVReturnType<{
|
|
|
8
8
|
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
9
9
|
base?: import("tailwind-merge").ClassNameValue;
|
|
10
10
|
label?: import("tailwind-merge").ClassNameValue;
|
|
11
|
+
group?: import("tailwind-merge").ClassNameValue;
|
|
11
12
|
input?: import("tailwind-merge").ClassNameValue;
|
|
12
|
-
control?: import("tailwind-merge").ClassNameValue;
|
|
13
|
-
placeholder?: import("tailwind-merge").ClassNameValue;
|
|
14
13
|
menu?: import("tailwind-merge").ClassNameValue;
|
|
15
14
|
option?: import("tailwind-merge").ClassNameValue;
|
|
16
|
-
|
|
15
|
+
placeholder?: import("tailwind-merge").ClassNameValue;
|
|
16
|
+
control?: import("tailwind-merge").ClassNameValue;
|
|
17
17
|
clearIndicator?: import("tailwind-merge").ClassNameValue;
|
|
18
18
|
control_focused?: import("tailwind-merge").ClassNameValue;
|
|
19
19
|
crossIcon?: import("tailwind-merge").ClassNameValue;
|
|
@@ -44,12 +44,12 @@ declare const selectVariants: import("tailwind-variants").TVReturnType<{
|
|
|
44
44
|
[x: string]: import("tailwind-merge").ClassNameValue | {
|
|
45
45
|
base?: import("tailwind-merge").ClassNameValue;
|
|
46
46
|
label?: import("tailwind-merge").ClassNameValue;
|
|
47
|
+
group?: import("tailwind-merge").ClassNameValue;
|
|
47
48
|
input?: import("tailwind-merge").ClassNameValue;
|
|
48
|
-
control?: import("tailwind-merge").ClassNameValue;
|
|
49
|
-
placeholder?: import("tailwind-merge").ClassNameValue;
|
|
50
49
|
menu?: import("tailwind-merge").ClassNameValue;
|
|
51
50
|
option?: import("tailwind-merge").ClassNameValue;
|
|
52
|
-
|
|
51
|
+
placeholder?: import("tailwind-merge").ClassNameValue;
|
|
52
|
+
control?: import("tailwind-merge").ClassNameValue;
|
|
53
53
|
clearIndicator?: import("tailwind-merge").ClassNameValue;
|
|
54
54
|
control_focused?: import("tailwind-merge").ClassNameValue;
|
|
55
55
|
crossIcon?: import("tailwind-merge").ClassNameValue;
|
|
@@ -112,12 +112,12 @@ declare const selectVariants: import("tailwind-variants").TVReturnType<{
|
|
|
112
112
|
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
113
113
|
base?: import("tailwind-merge").ClassNameValue;
|
|
114
114
|
label?: import("tailwind-merge").ClassNameValue;
|
|
115
|
+
group?: import("tailwind-merge").ClassNameValue;
|
|
115
116
|
input?: import("tailwind-merge").ClassNameValue;
|
|
116
|
-
control?: import("tailwind-merge").ClassNameValue;
|
|
117
|
-
placeholder?: import("tailwind-merge").ClassNameValue;
|
|
118
117
|
menu?: import("tailwind-merge").ClassNameValue;
|
|
119
118
|
option?: import("tailwind-merge").ClassNameValue;
|
|
120
|
-
|
|
119
|
+
placeholder?: import("tailwind-merge").ClassNameValue;
|
|
120
|
+
control?: import("tailwind-merge").ClassNameValue;
|
|
121
121
|
clearIndicator?: import("tailwind-merge").ClassNameValue;
|
|
122
122
|
control_focused?: import("tailwind-merge").ClassNameValue;
|
|
123
123
|
crossIcon?: import("tailwind-merge").ClassNameValue;
|
|
@@ -284,4 +284,4 @@ declare const Select: ({
|
|
|
284
284
|
}: SelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
285
285
|
//#endregion
|
|
286
286
|
export { SelectProps as n, Select as t };
|
|
287
|
-
//# sourceMappingURL=index-
|
|
287
|
+
//# sourceMappingURL=index-Bfeg8Bgn.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-Bfeg8Bgn.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,iBAAA,eAAgC,KAAA;;EAEhC,UAAA;;EAEA,KAAA,GAAQ,SAAA;;EAER,OAAA;;EAEA,WAAA;;EAEA,IAAA;;EAEA,WAAA;;EAEA,OAAA,EAAS,YAAA;;EAET,aAAA,GAAgB,KAAA;;;;;;;;EAQhB,sBAAA,GAAyB,YAAA,GAAe,YAAA;;EAExC,MAAA;AAAA;;cA8CI,MAAA;EAAU,SAAA;EAAA,SAAA;EAAA,aAAA;EAAA,YAAA;EAAA,iBAAA;EAAA,UAAA;EAAA,OAAA;EAAA,WAAA;EAAA,IAAA;EAAA,aAAA;EAAA,OAAA;EAAA,WAAA;EAAA,sBAAA;EAAA,GAAA;AAAA,GAeb,WAAA,iCAAW,GAAA,CAAA,OAAA"}
|
|
@@ -6,15 +6,15 @@ declare const sliderVariants: import("tailwind-variants").TVReturnType<{
|
|
|
6
6
|
[key: string]: {
|
|
7
7
|
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
8
8
|
base?: import("tailwind-merge").ClassNameValue;
|
|
9
|
-
label?: import("tailwind-merge").ClassNameValue;
|
|
10
|
-
value?: import("tailwind-merge").ClassNameValue;
|
|
11
9
|
errorMessage?: import("tailwind-merge").ClassNameValue;
|
|
12
|
-
|
|
13
|
-
track?: import("tailwind-merge").ClassNameValue;
|
|
14
|
-
step?: import("tailwind-merge").ClassNameValue;
|
|
10
|
+
label?: import("tailwind-merge").ClassNameValue;
|
|
15
11
|
endContent?: import("tailwind-merge").ClassNameValue;
|
|
16
12
|
startContent?: import("tailwind-merge").ClassNameValue;
|
|
17
13
|
thumb?: import("tailwind-merge").ClassNameValue;
|
|
14
|
+
mark?: import("tailwind-merge").ClassNameValue;
|
|
15
|
+
track?: import("tailwind-merge").ClassNameValue;
|
|
16
|
+
step?: import("tailwind-merge").ClassNameValue;
|
|
17
|
+
value?: import("tailwind-merge").ClassNameValue;
|
|
18
18
|
filler?: import("tailwind-merge").ClassNameValue;
|
|
19
19
|
labelWrapper?: import("tailwind-merge").ClassNameValue;
|
|
20
20
|
trackWrapper?: import("tailwind-merge").ClassNameValue;
|
|
@@ -24,15 +24,15 @@ declare const sliderVariants: import("tailwind-variants").TVReturnType<{
|
|
|
24
24
|
[x: string]: {
|
|
25
25
|
[x: string]: import("tailwind-merge").ClassNameValue | {
|
|
26
26
|
base?: import("tailwind-merge").ClassNameValue;
|
|
27
|
-
label?: import("tailwind-merge").ClassNameValue;
|
|
28
|
-
value?: import("tailwind-merge").ClassNameValue;
|
|
29
27
|
errorMessage?: import("tailwind-merge").ClassNameValue;
|
|
30
|
-
|
|
31
|
-
track?: import("tailwind-merge").ClassNameValue;
|
|
32
|
-
step?: import("tailwind-merge").ClassNameValue;
|
|
28
|
+
label?: import("tailwind-merge").ClassNameValue;
|
|
33
29
|
endContent?: import("tailwind-merge").ClassNameValue;
|
|
34
30
|
startContent?: import("tailwind-merge").ClassNameValue;
|
|
35
31
|
thumb?: import("tailwind-merge").ClassNameValue;
|
|
32
|
+
mark?: import("tailwind-merge").ClassNameValue;
|
|
33
|
+
track?: import("tailwind-merge").ClassNameValue;
|
|
34
|
+
step?: import("tailwind-merge").ClassNameValue;
|
|
35
|
+
value?: import("tailwind-merge").ClassNameValue;
|
|
36
36
|
filler?: import("tailwind-merge").ClassNameValue;
|
|
37
37
|
labelWrapper?: import("tailwind-merge").ClassNameValue;
|
|
38
38
|
trackWrapper?: import("tailwind-merge").ClassNameValue;
|
|
@@ -56,15 +56,15 @@ declare const sliderVariants: import("tailwind-variants").TVReturnType<{
|
|
|
56
56
|
[key: string]: {
|
|
57
57
|
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
58
58
|
base?: import("tailwind-merge").ClassNameValue;
|
|
59
|
-
label?: import("tailwind-merge").ClassNameValue;
|
|
60
|
-
value?: import("tailwind-merge").ClassNameValue;
|
|
61
59
|
errorMessage?: import("tailwind-merge").ClassNameValue;
|
|
62
|
-
|
|
63
|
-
track?: import("tailwind-merge").ClassNameValue;
|
|
64
|
-
step?: import("tailwind-merge").ClassNameValue;
|
|
60
|
+
label?: import("tailwind-merge").ClassNameValue;
|
|
65
61
|
endContent?: import("tailwind-merge").ClassNameValue;
|
|
66
62
|
startContent?: import("tailwind-merge").ClassNameValue;
|
|
67
63
|
thumb?: import("tailwind-merge").ClassNameValue;
|
|
64
|
+
mark?: import("tailwind-merge").ClassNameValue;
|
|
65
|
+
track?: import("tailwind-merge").ClassNameValue;
|
|
66
|
+
step?: import("tailwind-merge").ClassNameValue;
|
|
67
|
+
value?: import("tailwind-merge").ClassNameValue;
|
|
68
68
|
filler?: import("tailwind-merge").ClassNameValue;
|
|
69
69
|
labelWrapper?: import("tailwind-merge").ClassNameValue;
|
|
70
70
|
trackWrapper?: 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-Buf0-Uwe.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-Buf0-Uwe.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,15 +6,15 @@ declare const sliderVariants: import("tailwind-variants").TVReturnType<{
|
|
|
6
6
|
[key: string]: {
|
|
7
7
|
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
8
8
|
base?: import("tailwind-merge").ClassNameValue;
|
|
9
|
-
label?: import("tailwind-merge").ClassNameValue;
|
|
10
|
-
value?: import("tailwind-merge").ClassNameValue;
|
|
11
9
|
errorMessage?: import("tailwind-merge").ClassNameValue;
|
|
12
|
-
|
|
13
|
-
track?: import("tailwind-merge").ClassNameValue;
|
|
14
|
-
step?: import("tailwind-merge").ClassNameValue;
|
|
10
|
+
label?: import("tailwind-merge").ClassNameValue;
|
|
15
11
|
endContent?: import("tailwind-merge").ClassNameValue;
|
|
16
12
|
startContent?: import("tailwind-merge").ClassNameValue;
|
|
17
13
|
thumb?: import("tailwind-merge").ClassNameValue;
|
|
14
|
+
mark?: import("tailwind-merge").ClassNameValue;
|
|
15
|
+
track?: import("tailwind-merge").ClassNameValue;
|
|
16
|
+
step?: import("tailwind-merge").ClassNameValue;
|
|
17
|
+
value?: import("tailwind-merge").ClassNameValue;
|
|
18
18
|
filler?: import("tailwind-merge").ClassNameValue;
|
|
19
19
|
labelWrapper?: import("tailwind-merge").ClassNameValue;
|
|
20
20
|
trackWrapper?: import("tailwind-merge").ClassNameValue;
|
|
@@ -24,15 +24,15 @@ declare const sliderVariants: import("tailwind-variants").TVReturnType<{
|
|
|
24
24
|
[x: string]: {
|
|
25
25
|
[x: string]: import("tailwind-merge").ClassNameValue | {
|
|
26
26
|
base?: import("tailwind-merge").ClassNameValue;
|
|
27
|
-
label?: import("tailwind-merge").ClassNameValue;
|
|
28
|
-
value?: import("tailwind-merge").ClassNameValue;
|
|
29
27
|
errorMessage?: import("tailwind-merge").ClassNameValue;
|
|
30
|
-
|
|
31
|
-
track?: import("tailwind-merge").ClassNameValue;
|
|
32
|
-
step?: import("tailwind-merge").ClassNameValue;
|
|
28
|
+
label?: import("tailwind-merge").ClassNameValue;
|
|
33
29
|
endContent?: import("tailwind-merge").ClassNameValue;
|
|
34
30
|
startContent?: import("tailwind-merge").ClassNameValue;
|
|
35
31
|
thumb?: import("tailwind-merge").ClassNameValue;
|
|
32
|
+
mark?: import("tailwind-merge").ClassNameValue;
|
|
33
|
+
track?: import("tailwind-merge").ClassNameValue;
|
|
34
|
+
step?: import("tailwind-merge").ClassNameValue;
|
|
35
|
+
value?: import("tailwind-merge").ClassNameValue;
|
|
36
36
|
filler?: import("tailwind-merge").ClassNameValue;
|
|
37
37
|
labelWrapper?: import("tailwind-merge").ClassNameValue;
|
|
38
38
|
trackWrapper?: import("tailwind-merge").ClassNameValue;
|
|
@@ -56,15 +56,15 @@ declare const sliderVariants: import("tailwind-variants").TVReturnType<{
|
|
|
56
56
|
[key: string]: {
|
|
57
57
|
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
58
58
|
base?: import("tailwind-merge").ClassNameValue;
|
|
59
|
-
label?: import("tailwind-merge").ClassNameValue;
|
|
60
|
-
value?: import("tailwind-merge").ClassNameValue;
|
|
61
59
|
errorMessage?: import("tailwind-merge").ClassNameValue;
|
|
62
|
-
|
|
63
|
-
track?: import("tailwind-merge").ClassNameValue;
|
|
64
|
-
step?: import("tailwind-merge").ClassNameValue;
|
|
60
|
+
label?: import("tailwind-merge").ClassNameValue;
|
|
65
61
|
endContent?: import("tailwind-merge").ClassNameValue;
|
|
66
62
|
startContent?: import("tailwind-merge").ClassNameValue;
|
|
67
63
|
thumb?: import("tailwind-merge").ClassNameValue;
|
|
64
|
+
mark?: import("tailwind-merge").ClassNameValue;
|
|
65
|
+
track?: import("tailwind-merge").ClassNameValue;
|
|
66
|
+
step?: import("tailwind-merge").ClassNameValue;
|
|
67
|
+
value?: import("tailwind-merge").ClassNameValue;
|
|
68
68
|
filler?: import("tailwind-merge").ClassNameValue;
|
|
69
69
|
labelWrapper?: import("tailwind-merge").ClassNameValue;
|
|
70
70
|
trackWrapper?: 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-DQYlskIr.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-DQYlskIr.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"}
|
|
@@ -7,28 +7,28 @@ declare const switchVariants: import("tailwind-variants").TVReturnType<{
|
|
|
7
7
|
[key: string]: {
|
|
8
8
|
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
9
9
|
base?: import("tailwind-merge").ClassNameValue;
|
|
10
|
-
label?: import("tailwind-merge").ClassNameValue;
|
|
11
10
|
errorMessage?: import("tailwind-merge").ClassNameValue;
|
|
11
|
+
label?: import("tailwind-merge").ClassNameValue;
|
|
12
|
+
wrapper?: import("tailwind-merge").ClassNameValue;
|
|
12
13
|
endContent?: import("tailwind-merge").ClassNameValue;
|
|
13
14
|
outerWrapper?: import("tailwind-merge").ClassNameValue;
|
|
14
15
|
startContent?: import("tailwind-merge").ClassNameValue;
|
|
15
16
|
thumb?: import("tailwind-merge").ClassNameValue;
|
|
16
17
|
thumbIcon?: import("tailwind-merge").ClassNameValue;
|
|
17
|
-
wrapper?: import("tailwind-merge").ClassNameValue;
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
20
|
} | {
|
|
21
21
|
[x: string]: {
|
|
22
22
|
[x: string]: import("tailwind-merge").ClassNameValue | {
|
|
23
23
|
base?: import("tailwind-merge").ClassNameValue;
|
|
24
|
-
label?: import("tailwind-merge").ClassNameValue;
|
|
25
24
|
errorMessage?: import("tailwind-merge").ClassNameValue;
|
|
25
|
+
label?: import("tailwind-merge").ClassNameValue;
|
|
26
|
+
wrapper?: import("tailwind-merge").ClassNameValue;
|
|
26
27
|
endContent?: import("tailwind-merge").ClassNameValue;
|
|
27
28
|
outerWrapper?: import("tailwind-merge").ClassNameValue;
|
|
28
29
|
startContent?: import("tailwind-merge").ClassNameValue;
|
|
29
30
|
thumb?: import("tailwind-merge").ClassNameValue;
|
|
30
31
|
thumbIcon?: import("tailwind-merge").ClassNameValue;
|
|
31
|
-
wrapper?: import("tailwind-merge").ClassNameValue;
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
34
|
} | {}, {
|
|
@@ -45,14 +45,14 @@ declare const switchVariants: import("tailwind-variants").TVReturnType<{
|
|
|
45
45
|
[key: string]: {
|
|
46
46
|
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
47
47
|
base?: import("tailwind-merge").ClassNameValue;
|
|
48
|
-
label?: import("tailwind-merge").ClassNameValue;
|
|
49
48
|
errorMessage?: import("tailwind-merge").ClassNameValue;
|
|
49
|
+
label?: import("tailwind-merge").ClassNameValue;
|
|
50
|
+
wrapper?: import("tailwind-merge").ClassNameValue;
|
|
50
51
|
endContent?: import("tailwind-merge").ClassNameValue;
|
|
51
52
|
outerWrapper?: import("tailwind-merge").ClassNameValue;
|
|
52
53
|
startContent?: import("tailwind-merge").ClassNameValue;
|
|
53
54
|
thumb?: import("tailwind-merge").ClassNameValue;
|
|
54
55
|
thumbIcon?: import("tailwind-merge").ClassNameValue;
|
|
55
|
-
wrapper?: import("tailwind-merge").ClassNameValue;
|
|
56
56
|
};
|
|
57
57
|
};
|
|
58
58
|
} | {}, {
|
|
@@ -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-DnVL0EF_.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-DnVL0EF_.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"}
|