@fuf-stack/uniform 0.16.2 → 0.16.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CheckboxGroup/index.cjs +3 -3
- package/dist/CheckboxGroup/index.js +2 -2
- package/dist/Controller/index.cjs +2 -2
- package/dist/Controller/index.js +1 -1
- package/dist/Input/index.cjs +3 -3
- package/dist/Input/index.js +2 -2
- package/dist/RadioGroup/index.cjs +3 -3
- package/dist/RadioGroup/index.d.cts +2 -2
- package/dist/RadioGroup/index.d.ts +2 -2
- package/dist/RadioGroup/index.js +2 -2
- package/dist/Select/index.cjs +3 -3
- package/dist/Select/index.js +2 -2
- package/dist/Switch/index.cjs +3 -3
- package/dist/Switch/index.js +2 -2
- package/dist/TextArea/index.cjs +3 -3
- package/dist/TextArea/index.js +2 -2
- package/dist/{chunk-ECDLVJLZ.js → chunk-2WDASCL2.js} +3 -2
- package/dist/chunk-2WDASCL2.js.map +1 -0
- package/dist/{chunk-WKJN5A2E.js → chunk-6IRNFSTI.js} +2 -2
- package/dist/{chunk-WRIXKFKW.cjs → chunk-AINICJHT.cjs} +6 -6
- package/dist/chunk-AINICJHT.cjs.map +1 -0
- package/dist/{chunk-ZI22WT2P.js → chunk-AT2VVPRD.js} +2 -1
- package/dist/{chunk-ZI22WT2P.js.map → chunk-AT2VVPRD.js.map} +1 -1
- package/dist/{chunk-3QBYSFDX.js → chunk-B6TC4EQA.js} +2 -2
- package/dist/{chunk-5YDNHSEU.js → chunk-BFWEDI5U.js} +2 -2
- package/dist/{chunk-BDVAK232.cjs → chunk-BV2GRLYX.cjs} +3 -3
- package/dist/{chunk-BDVAK232.cjs.map → chunk-BV2GRLYX.cjs.map} +1 -1
- package/dist/{chunk-PHGFXKPU.cjs → chunk-EPYFZXEI.cjs} +2 -1
- package/dist/chunk-EPYFZXEI.cjs.map +1 -0
- package/dist/{chunk-HCQJGNWT.cjs → chunk-GFWUK4T6.cjs} +4 -3
- package/dist/chunk-GFWUK4T6.cjs.map +1 -0
- package/dist/{chunk-MEK7YR46.js → chunk-MAXRPS6S.js} +2 -2
- package/dist/{chunk-KIAIGPG7.cjs → chunk-O3523LQ5.cjs} +3 -3
- package/dist/{chunk-KIAIGPG7.cjs.map → chunk-O3523LQ5.cjs.map} +1 -1
- package/dist/{chunk-7ROOJK7G.cjs → chunk-OR76PGSS.cjs} +3 -3
- package/dist/{chunk-7ROOJK7G.cjs.map → chunk-OR76PGSS.cjs.map} +1 -1
- package/dist/{chunk-Y7MJBI4A.cjs → chunk-QY5DV3O7.cjs} +3 -3
- package/dist/{chunk-Y7MJBI4A.cjs.map → chunk-QY5DV3O7.cjs.map} +1 -1
- package/dist/{chunk-STU7SBQX.js → chunk-XUXFZVOW.js} +3 -3
- package/dist/chunk-XUXFZVOW.js.map +1 -0
- package/dist/index.cjs +8 -8
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +7 -7
- package/package.json +20 -20
- package/dist/chunk-ECDLVJLZ.js.map +0 -1
- package/dist/chunk-HCQJGNWT.cjs.map +0 -1
- package/dist/chunk-PHGFXKPU.cjs.map +0 -1
- package/dist/chunk-STU7SBQX.js.map +0 -1
- package/dist/chunk-WRIXKFKW.cjs.map +0 -1
- package/dist/{RadioGroup-Dxd2FPQj.d.cts → RadioGroup-KKVScWw6.d.cts} +5 -5
- package/dist/{RadioGroup-Dxd2FPQj.d.ts → RadioGroup-KKVScWw6.d.ts} +5 -5
- /package/dist/{chunk-WKJN5A2E.js.map → chunk-6IRNFSTI.js.map} +0 -0
- /package/dist/{chunk-3QBYSFDX.js.map → chunk-B6TC4EQA.js.map} +0 -0
- /package/dist/{chunk-5YDNHSEU.js.map → chunk-BFWEDI5U.js.map} +0 -0
- /package/dist/{chunk-MEK7YR46.js.map → chunk-MAXRPS6S.js.map} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/RadioGroup/RadioGroup.tsx","../src/RadioGroup/Variants/RadioBox.tsx","../src/RadioGroup/Variants/RadioButton.tsx","../src/RadioGroup/index.ts"],"sourcesContent":["import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { TabProps } from '@fuf-stack/pixels/Tabs';\nimport type { ReactElement, ReactNode } from 'react';\n\nimport { RadioGroup as HeroRadioGroup, Radio } from '@heroui/radio';\n\nimport { cn, slugify, tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\nimport { ButtonGroup } from '@fuf-stack/pixels';\nimport Tabs from '@fuf-stack/pixels/Tabs';\n\nimport { Controller } from '../Controller';\nimport { useFormContext } from '../hooks';\nimport { FieldCopyTestIdButton } from '../partials/FieldCopyTestIdButton';\nimport { FieldValidationError } from '../partials/FieldValidationError';\nimport { RadioBox } from './Variants/RadioBox';\nimport { RadioButton } from './Variants/RadioButton';\n\nexport const radioGroupVariants = tv({\n slots: {\n base: 'group', // Needs group for group-data condition\n buttonGroup:\n 'rounded-xl group-data-[invalid=true]:border group-data-[invalid=true]:border-danger', // optional if a button group is used\n itemBase: '',\n itemBaseActive: 'bg-opacity-50', // optional if a button group is used\n itemControl: 'bg-focus group-data-[invalid=true]:bg-danger',\n itemDescription: '',\n itemLabel: 'text-sm',\n itemLabelWrapper: '',\n itemWrapper:\n 'group-data-[invalid=true]:!border-danger [&:not(group-data-[invalid=\"true\"]):not(group-data-[selected=\"false\"])]:border-focus', // TODO: get rid of !.\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',\n wrapper: '',\n // Tabs\n tabList: '',\n tab: '',\n tabContent: '',\n cursor: '',\n panel: '',\n },\n});\n\ntype VariantProps = TVProps<typeof radioGroupVariants>;\ntype ClassName = TVClassName<typeof radioGroupVariants>;\n\nexport interface RadioGroupOption {\n /** Description of the value. Works with variant radioBox. */\n description?: React.ReactNode;\n /** disables the option */\n disabled?: boolean;\n /** option label */\n label?: React.ReactNode;\n /** option icon */\n icon?: ReactNode;\n /** HTML data-testid attribute of the option */\n testId?: string;\n /** option value */\n value: string;\n}\n\nexport interface RadioGroupProps<\n V extends 'default' | 'radioBox' | 'radioButton' | 'tabs',\n> extends VariantProps {\n /** CSS class name */\n className?: ClassName;\n /** Determines if the Buttons are disabled or not. */\n disabled?: boolean;\n /** determines orientation of the Buttons. */\n inline?: boolean;\n /** Label displayed next to the RadioButton. */\n label?: ReactNode;\n /** Name the RadioButtons are registered at in HTML forms (react-hook-form). */\n name: string;\n /** Radio button configuration. */\n options: V extends 'default' | 'radioBox' | 'radioButton'\n ? RadioGroupOption[]\n : TabProps[];\n /** Id to grab element in internal tests. */\n testId?: string;\n /** How the RadioGroup should look like. */\n variant?: V;\n}\n\n/**\n * RadioGroup component based on [HeroUI RadioGroup](https://www.heroui.com//docs/components/radio-group)\n */\nconst RadioGroup = ({\n className = undefined,\n disabled = false,\n inline = false,\n label = undefined,\n name,\n options,\n testId: _testId = undefined,\n variant = 'default',\n}: RadioGroupProps<\n 'default' | 'radioBox' | 'radioButton' | 'tabs'\n>): ReactElement => {\n const { control, debugMode, getFieldState, getValues } = useFormContext();\n\n const { error, invalid, required, testId } = getFieldState(name, _testId);\n\n const showTestIdCopyButton = debugMode === 'debug-testids';\n const showLabel = label || showTestIdCopyButton;\n\n const variants = radioGroupVariants();\n const classNames = variantsToClassNames(variants, className, 'base');\n\n return (\n <Controller\n control={control}\n disabled={disabled}\n name={name}\n render={({ field: { onChange, disabled: isDisabled, onBlur, ref } }) => {\n let RadioComponents: ReactNode;\n\n const itemClassNames = {\n base: classNames.itemBase,\n control: classNames.itemControl,\n description: classNames.itemDescription,\n label: classNames.itemLabel,\n labelWrapper: classNames.itemLabelWrapper,\n wrapper: classNames.itemWrapper,\n tabList: classNames.tabList,\n tab: classNames.tab,\n tabContent: classNames.tabContent,\n cursor: classNames.cursor,\n panel: classNames.panel,\n };\n\n switch (variant) {\n case 'radioBox':\n RadioComponents = options.map((option) => {\n if ('value' in option) {\n return (\n <RadioBox\n classNames={itemClassNames}\n data-testid={slugify(\n `${testId}_option_${option.testId || option.value}`,\n )}\n description={option.description}\n icon={option.icon}\n isDisabled={isDisabled || option.disabled}\n key={option.value}\n onChange={onChange}\n value={option.value}\n >\n {option.label ? option.label : option.value}\n </RadioBox>\n );\n }\n return null;\n });\n break;\n case 'radioButton':\n RadioComponents = options.map((option) => {\n if ('value' in option) {\n return (\n <RadioButton\n className={cn(classNames.itemBase, {\n [classNames.itemBaseActive]:\n getValues()[name] !== option.value,\n })}\n isDisabled={isDisabled || option.disabled}\n key={option.value}\n testID={slugify(\n `${testId}_option_${option.testId || option.value}`,\n )}\n onChange={onChange}\n value={option.value}\n // TODO: how to do the classNames properly (make selected option darker with same color)\n >\n {option.label ? option.label : option.value}\n </RadioButton>\n );\n }\n return null;\n });\n break;\n\n case 'tabs':\n RadioComponents = (\n <Tabs\n fullWidth={false}\n tabs={options as TabProps[]}\n onSelectionChange={onChange}\n />\n );\n break;\n default:\n RadioComponents = options.map((option) => {\n if ('value' in option) {\n return (\n <Radio\n classNames={itemClassNames}\n data-testid={slugify(\n `${testId}_option_${option.testId || option.value}`,\n )}\n isDisabled={isDisabled || option.disabled}\n key={option.value}\n onChange={onChange}\n value={option.value}\n >\n {option.label ? option.label : option.value}\n </Radio>\n );\n }\n return null;\n });\n }\n\n return (\n <HeroRadioGroup\n classNames={classNames}\n // see HeroUI styles for group-data condition (data-invalid),\n // e.g.: https://github.com/heroui-inc/heroui/blob/main/packages/components/select/src/use-select.ts\n data-invalid={invalid}\n data-required={required}\n data-testid={testId}\n errorMessage={error && <FieldValidationError error={error} />}\n isDisabled={isDisabled}\n isInvalid={invalid}\n isRequired={required}\n label={\n showLabel && (\n // eslint-disable-next-line jsx-a11y/label-has-associated-control\n <label>\n {label}\n {showTestIdCopyButton && (\n <FieldCopyTestIdButton testId={testId} />\n )}\n </label>\n )\n }\n name={name}\n orientation={inline ? 'horizontal' : 'vertical'}\n onBlur={onBlur}\n onChange={onChange}\n ref={ref}\n >\n {variant === 'radioButton' ? (\n <ButtonGroup className={classNames.buttonGroup}>\n {RadioComponents}\n </ButtonGroup>\n ) : (\n RadioComponents\n )}\n </HeroRadioGroup>\n );\n }}\n />\n );\n};\n\nexport default RadioGroup;\n","import type { RadioProps as HeroRadioProps } from '@heroui/radio';\nimport type { ReactNode } from 'react';\n\nimport { useRadio } from '@heroui/radio';\nimport { VisuallyHidden } from '@react-aria/visually-hidden';\n\nimport { cn } from '@fuf-stack/pixel-utils';\n\ninterface RadioProps extends HeroRadioProps {\n /** icon for the option */\n icon?: ReactNode;\n}\n\nexport const RadioBox = ({ icon = undefined, ...props }: RadioProps) => {\n const {\n children,\n Component,\n description,\n getBaseProps,\n getControlProps,\n getInputProps,\n getLabelProps,\n getLabelWrapperProps,\n getWrapperProps,\n isDisabled,\n } = useRadio(props);\n\n return (\n <Component\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...getBaseProps()}\n className={cn(\n 'group inline-flex flex-auto cursor-pointer items-center justify-between gap-4 rounded-lg border-2 border-default p-4 hover:bg-content2 data-[selected=true]:border-focus',\n {\n // disabled styles\n 'pointer-events-none opacity-disabled': isDisabled,\n },\n )}\n >\n <VisuallyHidden>\n {/* eslint-disable-next-line react/jsx-props-no-spreading */}\n <input {...getInputProps()} />\n </VisuallyHidden>\n {/* eslint-disable-next-line react/jsx-props-no-spreading */}\n <span {...getWrapperProps()}>\n {/* eslint-disable-next-line react/jsx-props-no-spreading */}\n <span {...getControlProps()} />\n </span>\n {icon}\n <div\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...getLabelWrapperProps()}\n className={cn(getLabelWrapperProps().className, 'grow')}\n >\n {/* eslint-disable-next-line react/jsx-props-no-spreading */}\n {children && <span {...getLabelProps()}>{children}</span>}\n {description && (\n <span className=\"text-small text-foreground opacity-70\">\n {description}\n </span>\n )}\n </div>\n </Component>\n );\n};\n\nexport default RadioBox;\n","import { cn } from '@fuf-stack/pixel-utils';\nimport { Button } from '@fuf-stack/pixels';\n\ninterface RadioButtonProps {\n /** label of the value. */\n children: React.ReactNode;\n /** CSS class name */\n className?: string;\n /** disables the option */\n isDisabled?: boolean;\n /** HTML data-testid attribute of the option */\n testID?: string;\n /** Callback function. Executed if the option is clicked. */\n onChange: (...event: unknown[]) => void;\n /** value of the option. */\n value: string;\n}\n\nexport const RadioButton = ({\n children,\n className = undefined,\n isDisabled = false,\n onChange,\n testID = undefined,\n value,\n}: RadioButtonProps) => {\n return (\n <Button\n className={cn(className)}\n testId={testID}\n disabled={isDisabled}\n key={`index_${value}`}\n onClick={() => {\n return onChange(value);\n }}\n >\n {children}\n </Button>\n );\n};\n\nexport default RadioButton;\n","import RadioGroup from './RadioGroup';\n\nexport type { RadioGroupProps } from './RadioGroup';\n\nexport { RadioGroup };\n\nexport default RadioGroup;\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAIA,SAAS,cAAc,gBAAgB,aAAa;AAEpD,SAAS,MAAAA,KAAI,SAAS,IAAI,4BAA4B;AACtD,SAAS,mBAAmB;AAC5B,OAAO,UAAU;;;ACLjB,SAAS,gBAAgB;AACzB,SAAS,sBAAsB;AAE/B,SAAS,UAAU;AAmCX,cAQF,YARE;AA5BD,IAAM,WAAW,CAAC,OAA+C;AAA/C,eAAE,SAAO,OAblC,IAayB,IAAuB,kBAAvB,IAAuB,CAArB;AACzB,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,IAAI,SAAS,KAAK;AAElB,SACE;AAAA,IAAC;AAAA,qCAEK,aAAa,IAFlB;AAAA,MAGC,WAAW;AAAA,QACT;AAAA,QACA;AAAA;AAAA,UAEE,wCAAwC;AAAA,QAC1C;AAAA,MACF;AAAA,MAEA;AAAA,4BAAC,kBAEC,8BAAC,4BAAU,cAAc,EAAG,GAC9B;AAAA,QAE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AAAA;AAAA,UAAC;AAAA;AAAA,YACC;AAAA,YAGA,gBAAc;AAAA,YACd,iBAAe;AAAA,YACf,eAAa;AAAA,YACb,cAAc,SAAS,gBAAAA,KAAC,gCAAqB,OAAc;AAAA,YAC3D;AAAA,YACA,WAAW;AAAA,YACX,YAAY;AAAA,YACZ,OACE;AAAA,YAEE,gBAAAC,MAAC,WACE;AAAA;AAAA,cACA,wBACC,gBAAAD,KAAC,iCAAsB,QAAgB;AAAA,eAE3C;AAAA,YAGJ;AAAA,YACA,aAAa,SAAS,eAAe;AAAA,YACrC;AAAA,YACA;AAAA,YACA;AAAA,YAEC,sBAAY,gBACX,gBAAAA,KAAC,eAAY,WAAW,WAAW,aAChC,2BACH,IAEA;AAAA;AAAA,QAEJ;AAAA,MAEJ;AAAA;AAAA,EACF;AAEJ;AAEA,IAAO,qBAAQ;;;AG1Pf,IAAOG,sBAAQ;","names":["cn","cn","jsx","jsx","jsxs","cn","RadioGroup_default"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/pixels/pixels/packages/uniform/dist/chunk-WRIXKFKW.cjs","../src/RadioGroup/RadioGroup.tsx","../src/RadioGroup/Variants/RadioBox.tsx","../src/RadioGroup/Variants/RadioButton.tsx","../src/RadioGroup/index.ts"],"names":["jsx","cn"],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACF,wDAA6B;AAC7B;AACA;ACdA,sCAAoD;AAEpD,oDAAsD;AACtD,2CAA4B;AAC5B,0FAAiB;ADejB;AACA;AErBA;AACA,6DAA+B;AAE/B;AAmCQ,+CAAA;AA5BD,IAAM,SAAA,EAAW,CAAC,EAAA,EAAA,GAA+C;AAA/C,EAAA,IAAA,GAAA,EAAA,EAAA,EAAE,EAAA,KAAA,EAAO,KAAA,EAblC,EAAA,EAayB,EAAA,EA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1B,gBAAA;AAKd,cAAA;AAGJ,cAAA;AAAO,YAAA;AACR,QAAA;AAGL,QAAA;AACE,UAAA;AAAC,UAAA;AAAA,YAAA;AACC,YAAA;AAGc,YAAA;AACC,YAAA;AACF,YAAA;AAC8C,YAAA;AAC3D,YAAA;AACW,YAAA;AACC,YAAA;AAEV,4BAAA;AAGK,cAAA;AAAA,cAAA;AAEwC,YAAA;AAE3C,YAAA;AAGJ,YAAA;AACqC,YAAA;AACrC,YAAA;AACA,YAAA;AACA,YAAA;AAOE,UAAA;AAAA,QAAA;AAEJ,MAAA;AAEJ,IAAA;AAAA,EAAA;AAGN;AAEA;ADgBA;AACA;AI3QA;AJ6QA;AACA;AACA;AACA;AACA","file":"/home/runner/work/pixels/pixels/packages/uniform/dist/chunk-WRIXKFKW.cjs","sourcesContent":[null,"import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { TabProps } from '@fuf-stack/pixels/Tabs';\nimport type { ReactElement, ReactNode } from 'react';\n\nimport { RadioGroup as HeroRadioGroup, Radio } from '@heroui/radio';\n\nimport { cn, slugify, tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\nimport { ButtonGroup } from '@fuf-stack/pixels';\nimport Tabs from '@fuf-stack/pixels/Tabs';\n\nimport { Controller } from '../Controller';\nimport { useFormContext } from '../hooks';\nimport { FieldCopyTestIdButton } from '../partials/FieldCopyTestIdButton';\nimport { FieldValidationError } from '../partials/FieldValidationError';\nimport { RadioBox } from './Variants/RadioBox';\nimport { RadioButton } from './Variants/RadioButton';\n\nexport const radioGroupVariants = tv({\n slots: {\n base: 'group', // Needs group for group-data condition\n buttonGroup:\n 'rounded-xl group-data-[invalid=true]:border group-data-[invalid=true]:border-danger', // optional if a button group is used\n itemBase: '',\n itemBaseActive: 'bg-opacity-50', // optional if a button group is used\n itemControl: 'bg-focus group-data-[invalid=true]:bg-danger',\n itemDescription: '',\n itemLabel: 'text-sm',\n itemLabelWrapper: '',\n itemWrapper:\n 'group-data-[invalid=true]:!border-danger [&:not(group-data-[invalid=\"true\"]):not(group-data-[selected=\"false\"])]:border-focus', // TODO: get rid of !.\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',\n wrapper: '',\n // Tabs\n tabList: '',\n tab: '',\n tabContent: '',\n cursor: '',\n panel: '',\n },\n});\n\ntype VariantProps = TVProps<typeof radioGroupVariants>;\ntype ClassName = TVClassName<typeof radioGroupVariants>;\n\nexport interface RadioGroupOption {\n /** Description of the value. Works with variant radioBox. */\n description?: React.ReactNode;\n /** disables the option */\n disabled?: boolean;\n /** option label */\n label?: React.ReactNode;\n /** option icon */\n icon?: ReactNode;\n /** HTML data-testid attribute of the option */\n testId?: string;\n /** option value */\n value: string;\n}\n\nexport interface RadioGroupProps<\n V extends 'default' | 'radioBox' | 'radioButton' | 'tabs',\n> extends VariantProps {\n /** CSS class name */\n className?: ClassName;\n /** Determines if the Buttons are disabled or not. */\n disabled?: boolean;\n /** determines orientation of the Buttons. */\n inline?: boolean;\n /** Label displayed next to the RadioButton. */\n label?: ReactNode;\n /** Name the RadioButtons are registered at in HTML forms (react-hook-form). */\n name: string;\n /** Radio button configuration. */\n options: V extends 'default' | 'radioBox' | 'radioButton'\n ? RadioGroupOption[]\n : TabProps[];\n /** Id to grab element in internal tests. */\n testId?: string;\n /** How the RadioGroup should look like. */\n variant?: V;\n}\n\n/**\n * RadioGroup component based on [HeroUI RadioGroup](https://www.heroui.com//docs/components/radio-group)\n */\nconst RadioGroup = ({\n className = undefined,\n disabled = false,\n inline = false,\n label = undefined,\n name,\n options,\n testId: _testId = undefined,\n variant = 'default',\n}: RadioGroupProps<\n 'default' | 'radioBox' | 'radioButton' | 'tabs'\n>): ReactElement => {\n const { control, debugMode, getFieldState, getValues } = useFormContext();\n\n const { error, invalid, required, testId } = getFieldState(name, _testId);\n\n const showTestIdCopyButton = debugMode === 'debug-testids';\n const showLabel = label || showTestIdCopyButton;\n\n const variants = radioGroupVariants();\n const classNames = variantsToClassNames(variants, className, 'base');\n\n return (\n <Controller\n control={control}\n disabled={disabled}\n name={name}\n render={({ field: { onChange, disabled: isDisabled, onBlur, ref } }) => {\n let RadioComponents: ReactNode;\n\n const itemClassNames = {\n base: classNames.itemBase,\n control: classNames.itemControl,\n description: classNames.itemDescription,\n label: classNames.itemLabel,\n labelWrapper: classNames.itemLabelWrapper,\n wrapper: classNames.itemWrapper,\n tabList: classNames.tabList,\n tab: classNames.tab,\n tabContent: classNames.tabContent,\n cursor: classNames.cursor,\n panel: classNames.panel,\n };\n\n switch (variant) {\n case 'radioBox':\n RadioComponents = options.map((option) => {\n if ('value' in option) {\n return (\n <RadioBox\n classNames={itemClassNames}\n data-testid={slugify(\n `${testId}_option_${option.testId || option.value}`,\n )}\n description={option.description}\n icon={option.icon}\n isDisabled={isDisabled || option.disabled}\n key={option.value}\n onChange={onChange}\n value={option.value}\n >\n {option.label ? option.label : option.value}\n </RadioBox>\n );\n }\n return null;\n });\n break;\n case 'radioButton':\n RadioComponents = options.map((option) => {\n if ('value' in option) {\n return (\n <RadioButton\n className={cn(classNames.itemBase, {\n [classNames.itemBaseActive]:\n getValues()[name] !== option.value,\n })}\n isDisabled={isDisabled || option.disabled}\n key={option.value}\n testID={slugify(\n `${testId}_option_${option.testId || option.value}`,\n )}\n onChange={onChange}\n value={option.value}\n // TODO: how to do the classNames properly (make selected option darker with same color)\n >\n {option.label ? option.label : option.value}\n </RadioButton>\n );\n }\n return null;\n });\n break;\n\n case 'tabs':\n RadioComponents = (\n <Tabs\n fullWidth={false}\n tabs={options as TabProps[]}\n onSelectionChange={onChange}\n />\n );\n break;\n default:\n RadioComponents = options.map((option) => {\n if ('value' in option) {\n return (\n <Radio\n classNames={itemClassNames}\n data-testid={slugify(\n `${testId}_option_${option.testId || option.value}`,\n )}\n isDisabled={isDisabled || option.disabled}\n key={option.value}\n onChange={onChange}\n value={option.value}\n >\n {option.label ? option.label : option.value}\n </Radio>\n );\n }\n return null;\n });\n }\n\n return (\n <HeroRadioGroup\n classNames={classNames}\n // see HeroUI styles for group-data condition (data-invalid),\n // e.g.: https://github.com/heroui-inc/heroui/blob/main/packages/components/select/src/use-select.ts\n data-invalid={invalid}\n data-required={required}\n data-testid={testId}\n errorMessage={error && <FieldValidationError error={error} />}\n isDisabled={isDisabled}\n isInvalid={invalid}\n isRequired={required}\n label={\n showLabel && (\n // eslint-disable-next-line jsx-a11y/label-has-associated-control\n <label>\n {label}\n {showTestIdCopyButton && (\n <FieldCopyTestIdButton testId={testId} />\n )}\n </label>\n )\n }\n name={name}\n orientation={inline ? 'horizontal' : 'vertical'}\n onBlur={onBlur}\n onChange={onChange}\n ref={ref}\n >\n {variant === 'radioButton' ? (\n <ButtonGroup className={classNames.buttonGroup}>\n {RadioComponents}\n </ButtonGroup>\n ) : (\n RadioComponents\n )}\n </HeroRadioGroup>\n );\n }}\n />\n );\n};\n\nexport default RadioGroup;\n","import type { RadioProps as HeroRadioProps } from '@heroui/radio';\nimport type { ReactNode } from 'react';\n\nimport { useRadio } from '@heroui/radio';\nimport { VisuallyHidden } from '@react-aria/visually-hidden';\n\nimport { cn } from '@fuf-stack/pixel-utils';\n\ninterface RadioProps extends HeroRadioProps {\n /** icon for the option */\n icon?: ReactNode;\n}\n\nexport const RadioBox = ({ icon = undefined, ...props }: RadioProps) => {\n const {\n children,\n Component,\n description,\n getBaseProps,\n getControlProps,\n getInputProps,\n getLabelProps,\n getLabelWrapperProps,\n getWrapperProps,\n isDisabled,\n } = useRadio(props);\n\n return (\n <Component\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...getBaseProps()}\n className={cn(\n 'group inline-flex flex-auto cursor-pointer items-center justify-between gap-4 rounded-lg border-2 border-default p-4 hover:bg-content2 data-[selected=true]:border-focus',\n {\n // disabled styles\n 'pointer-events-none opacity-disabled': isDisabled,\n },\n )}\n >\n <VisuallyHidden>\n {/* eslint-disable-next-line react/jsx-props-no-spreading */}\n <input {...getInputProps()} />\n </VisuallyHidden>\n {/* eslint-disable-next-line react/jsx-props-no-spreading */}\n <span {...getWrapperProps()}>\n {/* eslint-disable-next-line react/jsx-props-no-spreading */}\n <span {...getControlProps()} />\n </span>\n {icon}\n <div\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...getLabelWrapperProps()}\n className={cn(getLabelWrapperProps().className, 'grow')}\n >\n {/* eslint-disable-next-line react/jsx-props-no-spreading */}\n {children && <span {...getLabelProps()}>{children}</span>}\n {description && (\n <span className=\"text-small text-foreground opacity-70\">\n {description}\n </span>\n )}\n </div>\n </Component>\n );\n};\n\nexport default RadioBox;\n","import { cn } from '@fuf-stack/pixel-utils';\nimport { Button } from '@fuf-stack/pixels';\n\ninterface RadioButtonProps {\n /** label of the value. */\n children: React.ReactNode;\n /** CSS class name */\n className?: string;\n /** disables the option */\n isDisabled?: boolean;\n /** HTML data-testid attribute of the option */\n testID?: string;\n /** Callback function. Executed if the option is clicked. */\n onChange: (...event: unknown[]) => void;\n /** value of the option. */\n value: string;\n}\n\nexport const RadioButton = ({\n children,\n className = undefined,\n isDisabled = false,\n onChange,\n testID = undefined,\n value,\n}: RadioButtonProps) => {\n return (\n <Button\n className={cn(className)}\n testId={testID}\n disabled={isDisabled}\n key={`index_${value}`}\n onClick={() => {\n return onChange(value);\n }}\n >\n {children}\n </Button>\n );\n};\n\nexport default RadioButton;\n","import RadioGroup from './RadioGroup';\n\nexport type { RadioGroupProps } from './RadioGroup';\n\nexport { RadioGroup };\n\nexport default RadioGroup;\n"]}
|
|
@@ -9,11 +9,11 @@ declare const radioGroupVariants: tailwind_variants.TVReturnType<{
|
|
|
9
9
|
[key: string]: tailwind_variants.ClassValue | {
|
|
10
10
|
base?: tailwind_variants.ClassValue;
|
|
11
11
|
label?: tailwind_variants.ClassValue;
|
|
12
|
+
tab?: tailwind_variants.ClassValue;
|
|
12
13
|
itemBase?: tailwind_variants.ClassValue;
|
|
13
14
|
itemLabel?: tailwind_variants.ClassValue;
|
|
14
15
|
itemWrapper?: tailwind_variants.ClassValue;
|
|
15
16
|
wrapper?: tailwind_variants.ClassValue;
|
|
16
|
-
tab?: tailwind_variants.ClassValue;
|
|
17
17
|
cursor?: tailwind_variants.ClassValue;
|
|
18
18
|
panel?: tailwind_variants.ClassValue;
|
|
19
19
|
tabContent?: tailwind_variants.ClassValue;
|
|
@@ -30,11 +30,11 @@ declare const radioGroupVariants: tailwind_variants.TVReturnType<{
|
|
|
30
30
|
[x: string]: tailwind_variants.ClassValue | {
|
|
31
31
|
base?: tailwind_variants.ClassValue;
|
|
32
32
|
label?: tailwind_variants.ClassValue;
|
|
33
|
+
tab?: tailwind_variants.ClassValue;
|
|
33
34
|
itemBase?: tailwind_variants.ClassValue;
|
|
34
35
|
itemLabel?: tailwind_variants.ClassValue;
|
|
35
36
|
itemWrapper?: tailwind_variants.ClassValue;
|
|
36
37
|
wrapper?: tailwind_variants.ClassValue;
|
|
37
|
-
tab?: tailwind_variants.ClassValue;
|
|
38
38
|
cursor?: tailwind_variants.ClassValue;
|
|
39
39
|
panel?: tailwind_variants.ClassValue;
|
|
40
40
|
tabContent?: tailwind_variants.ClassValue;
|
|
@@ -68,11 +68,11 @@ declare const radioGroupVariants: tailwind_variants.TVReturnType<{
|
|
|
68
68
|
[key: string]: tailwind_variants.ClassValue | {
|
|
69
69
|
base?: tailwind_variants.ClassValue;
|
|
70
70
|
label?: tailwind_variants.ClassValue;
|
|
71
|
+
tab?: tailwind_variants.ClassValue;
|
|
71
72
|
itemBase?: tailwind_variants.ClassValue;
|
|
72
73
|
itemLabel?: tailwind_variants.ClassValue;
|
|
73
74
|
itemWrapper?: tailwind_variants.ClassValue;
|
|
74
75
|
wrapper?: tailwind_variants.ClassValue;
|
|
75
|
-
tab?: tailwind_variants.ClassValue;
|
|
76
76
|
cursor?: tailwind_variants.ClassValue;
|
|
77
77
|
panel?: tailwind_variants.ClassValue;
|
|
78
78
|
tabContent?: tailwind_variants.ClassValue;
|
|
@@ -89,11 +89,11 @@ declare const radioGroupVariants: tailwind_variants.TVReturnType<{
|
|
|
89
89
|
[key: string]: tailwind_variants.ClassValue | {
|
|
90
90
|
base?: tailwind_variants.ClassValue;
|
|
91
91
|
label?: tailwind_variants.ClassValue;
|
|
92
|
+
tab?: tailwind_variants.ClassValue;
|
|
92
93
|
itemBase?: tailwind_variants.ClassValue;
|
|
93
94
|
itemLabel?: tailwind_variants.ClassValue;
|
|
94
95
|
itemWrapper?: tailwind_variants.ClassValue;
|
|
95
96
|
wrapper?: tailwind_variants.ClassValue;
|
|
96
|
-
tab?: tailwind_variants.ClassValue;
|
|
97
97
|
cursor?: tailwind_variants.ClassValue;
|
|
98
98
|
panel?: tailwind_variants.ClassValue;
|
|
99
99
|
tabContent?: tailwind_variants.ClassValue;
|
|
@@ -144,11 +144,11 @@ declare const radioGroupVariants: tailwind_variants.TVReturnType<{
|
|
|
144
144
|
[key: string]: tailwind_variants.ClassValue | {
|
|
145
145
|
base?: tailwind_variants.ClassValue;
|
|
146
146
|
label?: tailwind_variants.ClassValue;
|
|
147
|
+
tab?: tailwind_variants.ClassValue;
|
|
147
148
|
itemBase?: tailwind_variants.ClassValue;
|
|
148
149
|
itemLabel?: tailwind_variants.ClassValue;
|
|
149
150
|
itemWrapper?: tailwind_variants.ClassValue;
|
|
150
151
|
wrapper?: tailwind_variants.ClassValue;
|
|
151
|
-
tab?: tailwind_variants.ClassValue;
|
|
152
152
|
cursor?: tailwind_variants.ClassValue;
|
|
153
153
|
panel?: tailwind_variants.ClassValue;
|
|
154
154
|
tabContent?: tailwind_variants.ClassValue;
|
|
@@ -9,11 +9,11 @@ declare const radioGroupVariants: tailwind_variants.TVReturnType<{
|
|
|
9
9
|
[key: string]: tailwind_variants.ClassValue | {
|
|
10
10
|
base?: tailwind_variants.ClassValue;
|
|
11
11
|
label?: tailwind_variants.ClassValue;
|
|
12
|
+
tab?: tailwind_variants.ClassValue;
|
|
12
13
|
itemBase?: tailwind_variants.ClassValue;
|
|
13
14
|
itemLabel?: tailwind_variants.ClassValue;
|
|
14
15
|
itemWrapper?: tailwind_variants.ClassValue;
|
|
15
16
|
wrapper?: tailwind_variants.ClassValue;
|
|
16
|
-
tab?: tailwind_variants.ClassValue;
|
|
17
17
|
cursor?: tailwind_variants.ClassValue;
|
|
18
18
|
panel?: tailwind_variants.ClassValue;
|
|
19
19
|
tabContent?: tailwind_variants.ClassValue;
|
|
@@ -30,11 +30,11 @@ declare const radioGroupVariants: tailwind_variants.TVReturnType<{
|
|
|
30
30
|
[x: string]: tailwind_variants.ClassValue | {
|
|
31
31
|
base?: tailwind_variants.ClassValue;
|
|
32
32
|
label?: tailwind_variants.ClassValue;
|
|
33
|
+
tab?: tailwind_variants.ClassValue;
|
|
33
34
|
itemBase?: tailwind_variants.ClassValue;
|
|
34
35
|
itemLabel?: tailwind_variants.ClassValue;
|
|
35
36
|
itemWrapper?: tailwind_variants.ClassValue;
|
|
36
37
|
wrapper?: tailwind_variants.ClassValue;
|
|
37
|
-
tab?: tailwind_variants.ClassValue;
|
|
38
38
|
cursor?: tailwind_variants.ClassValue;
|
|
39
39
|
panel?: tailwind_variants.ClassValue;
|
|
40
40
|
tabContent?: tailwind_variants.ClassValue;
|
|
@@ -68,11 +68,11 @@ declare const radioGroupVariants: tailwind_variants.TVReturnType<{
|
|
|
68
68
|
[key: string]: tailwind_variants.ClassValue | {
|
|
69
69
|
base?: tailwind_variants.ClassValue;
|
|
70
70
|
label?: tailwind_variants.ClassValue;
|
|
71
|
+
tab?: tailwind_variants.ClassValue;
|
|
71
72
|
itemBase?: tailwind_variants.ClassValue;
|
|
72
73
|
itemLabel?: tailwind_variants.ClassValue;
|
|
73
74
|
itemWrapper?: tailwind_variants.ClassValue;
|
|
74
75
|
wrapper?: tailwind_variants.ClassValue;
|
|
75
|
-
tab?: tailwind_variants.ClassValue;
|
|
76
76
|
cursor?: tailwind_variants.ClassValue;
|
|
77
77
|
panel?: tailwind_variants.ClassValue;
|
|
78
78
|
tabContent?: tailwind_variants.ClassValue;
|
|
@@ -89,11 +89,11 @@ declare const radioGroupVariants: tailwind_variants.TVReturnType<{
|
|
|
89
89
|
[key: string]: tailwind_variants.ClassValue | {
|
|
90
90
|
base?: tailwind_variants.ClassValue;
|
|
91
91
|
label?: tailwind_variants.ClassValue;
|
|
92
|
+
tab?: tailwind_variants.ClassValue;
|
|
92
93
|
itemBase?: tailwind_variants.ClassValue;
|
|
93
94
|
itemLabel?: tailwind_variants.ClassValue;
|
|
94
95
|
itemWrapper?: tailwind_variants.ClassValue;
|
|
95
96
|
wrapper?: tailwind_variants.ClassValue;
|
|
96
|
-
tab?: tailwind_variants.ClassValue;
|
|
97
97
|
cursor?: tailwind_variants.ClassValue;
|
|
98
98
|
panel?: tailwind_variants.ClassValue;
|
|
99
99
|
tabContent?: tailwind_variants.ClassValue;
|
|
@@ -144,11 +144,11 @@ declare const radioGroupVariants: tailwind_variants.TVReturnType<{
|
|
|
144
144
|
[key: string]: tailwind_variants.ClassValue | {
|
|
145
145
|
base?: tailwind_variants.ClassValue;
|
|
146
146
|
label?: tailwind_variants.ClassValue;
|
|
147
|
+
tab?: tailwind_variants.ClassValue;
|
|
147
148
|
itemBase?: tailwind_variants.ClassValue;
|
|
148
149
|
itemLabel?: tailwind_variants.ClassValue;
|
|
149
150
|
itemWrapper?: tailwind_variants.ClassValue;
|
|
150
151
|
wrapper?: tailwind_variants.ClassValue;
|
|
151
|
-
tab?: tailwind_variants.ClassValue;
|
|
152
152
|
cursor?: tailwind_variants.ClassValue;
|
|
153
153
|
panel?: tailwind_variants.ClassValue;
|
|
154
154
|
tabContent?: tailwind_variants.ClassValue;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|