@televet/kibble-ui 4.0.0-beta.48 → 4.0.0-beta.50
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/chunks/{buttonGroup.component-BllwiY24.js → buttonGroup.component-BLjEEBle.js} +2 -2
- package/dist/chunks/{buttonGroup.component-BllwiY24.js.map → buttonGroup.component-BLjEEBle.js.map} +1 -1
- package/dist/chunks/{buttonGroup.component-CyWOOEs3.js → buttonGroup.component-B_5ioQ76.js} +2 -2
- package/dist/chunks/{buttonGroup.component-CyWOOEs3.js.map → buttonGroup.component-B_5ioQ76.js.map} +1 -1
- package/dist/chunks/{conversationCard.component-CTRfZQCI.js → conversationCard.component-CFok-8U0.js} +2 -2
- package/dist/chunks/{conversationCard.component-CTRfZQCI.js.map → conversationCard.component-CFok-8U0.js.map} +1 -1
- package/dist/chunks/{conversationCard.component-BERwqiS-.js → conversationCard.component-CiDSMTUO.js} +2 -2
- package/dist/chunks/{conversationCard.component-BERwqiS-.js.map → conversationCard.component-CiDSMTUO.js.map} +1 -1
- package/dist/chunks/{datePicker.component-DN3Vb2hm.js → datePicker.component-BvJzhMIq.js} +2 -2
- package/dist/chunks/{datePicker.component-DN3Vb2hm.js.map → datePicker.component-BvJzhMIq.js.map} +1 -1
- package/dist/chunks/{datePicker.component-PImZR-B6.js → datePicker.component-DKDgsGci.js} +2 -2
- package/dist/chunks/{datePicker.component-PImZR-B6.js.map → datePicker.component-DKDgsGci.js.map} +1 -1
- package/dist/chunks/menu.component-Bi2JPazM.js +2 -0
- package/dist/chunks/{menu.component-DfMZGgCy.js.map → menu.component-Bi2JPazM.js.map} +1 -1
- package/dist/chunks/menu.component-DbVIiM3g.js +677 -0
- package/dist/chunks/{menu.component-CTze16Re.js.map → menu.component-DbVIiM3g.js.map} +1 -1
- package/dist/chunks/{radioGroup.component-BijXqMDe.js → radioGroup.component-VgKW4-P2.js} +2 -2
- package/dist/chunks/{radioGroup.component-BijXqMDe.js.map → radioGroup.component-VgKW4-P2.js.map} +1 -1
- package/dist/chunks/{radioGroup.component-D9lKUJfv.js → radioGroup.component-cFpOM0dT.js} +2 -2
- package/dist/chunks/{radioGroup.component-D9lKUJfv.js.map → radioGroup.component-cFpOM0dT.js.map} +1 -1
- package/dist/chunks/select.component-BmFg6qwz.js +391 -0
- package/dist/chunks/{select.component-CEDzVkE_.js.map → select.component-BmFg6qwz.js.map} +1 -1
- package/dist/chunks/select.component-C9Vj7Sk7.js +2 -0
- package/dist/chunks/{select.component-CASOsFQJ.js.map → select.component-C9Vj7Sk7.js.map} +1 -1
- package/dist/chunks/{tagBlock.component-CNWy7Cz4.js → tagBlock.component-C0LIdK0o.js} +2 -2
- package/dist/chunks/{tagBlock.component-CNWy7Cz4.js.map → tagBlock.component-C0LIdK0o.js.map} +1 -1
- package/dist/chunks/{tagBlock.component-Cn6vRcHX.js → tagBlock.component-DpcWXFLP.js} +2 -2
- package/dist/chunks/{tagBlock.component-Cn6vRcHX.js.map → tagBlock.component-DpcWXFLP.js.map} +1 -1
- package/dist/cjs/components/ButtonGroup/index.cjs +1 -1
- package/dist/cjs/components/ConversationCard/index.cjs +1 -1
- package/dist/cjs/components/DatePicker/index.cjs +1 -1
- package/dist/cjs/components/Menu/index.cjs +1 -1
- package/dist/cjs/components/RadioGroup/index.cjs +1 -1
- package/dist/cjs/components/Select/index.cjs +1 -1
- package/dist/cjs/components/TagBlock/index.cjs +1 -1
- package/dist/cjs/components/index.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/esm/components/ButtonGroup/index.js +1 -1
- package/dist/esm/components/ConversationCard/index.js +1 -1
- package/dist/esm/components/DatePicker/index.js +1 -1
- package/dist/esm/components/Menu/index.js +1 -1
- package/dist/esm/components/RadioGroup/index.js +1 -1
- package/dist/esm/components/Select/index.js +1 -1
- package/dist/esm/components/TagBlock/index.js +1 -1
- package/dist/esm/components/index.js +7 -7
- package/dist/esm/index.js +7 -7
- package/package.json +1 -1
- package/dist/chunks/menu.component-CTze16Re.js +0 -677
- package/dist/chunks/menu.component-DfMZGgCy.js +0 -2
- package/dist/chunks/select.component-CASOsFQJ.js +0 -2
- package/dist/chunks/select.component-CEDzVkE_.js +0 -391
package/dist/chunks/{radioGroup.component-D9lKUJfv.js.map → radioGroup.component-cFpOM0dT.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radioGroup.component-D9lKUJfv.js","sources":["../../node_modules/@ark-ui/react/dist/components/radio-group/use-radio-group-context.js","../../node_modules/@ark-ui/react/dist/components/radio-group/use-radio-group-item-context.js","../../node_modules/@ark-ui/react/dist/components/radio-group/use-radio-group-item-props-context.js","../../node_modules/@ark-ui/react/dist/components/radio-group/radio-group-item.js","../../node_modules/@ark-ui/react/dist/components/radio-group/radio-group-item-context.js","../../node_modules/@ark-ui/react/dist/components/radio-group/radio-group-item-control.js","../../node_modules/@ark-ui/react/dist/components/radio-group/radio-group-item-hidden-input.js","../../node_modules/@ark-ui/react/dist/components/radio-group/radio-group-item-text.js","../../node_modules/@ark-ui/react/dist/components/radio-group/radio-group-label.js","../../node_modules/@ark-ui/react/dist/components/radio-group/use-radio-group.js","../../node_modules/@ark-ui/react/dist/components/radio-group/radio-group-root.js","../../node_modules/@ark-ui/react/dist/components/radio-group/radio-group-root-provider.js","../../node_modules/@chakra-ui/react/dist/esm/components/radiomark/radiomark.js","../../node_modules/@chakra-ui/react/dist/esm/components/radio-group/radio-group.js","../../src/components/RadioGroup/components/Radio/radio.component.tsx","../../src/components/RadioGroup/radioGroup.component.tsx"],"sourcesContent":["'use client';\nimport { createContext } from '../../utils/create-context.js';\n\nconst [RadioGroupProvider, useRadioGroupContext] = createContext({\n name: \"RadioGroupContext\",\n hookName: \"useRadioGroupContext\",\n providerName: \"<RadioGroupProvider />\"\n});\n\nexport { RadioGroupProvider, useRadioGroupContext };\n","'use client';\nimport { createContext } from '../../utils/create-context.js';\n\nconst [RadioGroupItemProvider, useRadioGroupItemContext] = createContext({\n name: \"RadioGroupItemContext\",\n hookName: \"useRadioGroupItemContext\",\n providerName: \"<RadioGroupItemProvider />\"\n});\n\nexport { RadioGroupItemProvider, useRadioGroupItemContext };\n","'use client';\nimport { createContext } from '../../utils/create-context.js';\n\nconst [RadioGroupItemPropsProvider, useRadioGroupItemPropsContext] = createContext({\n name: \"RadioGroupItemPropsContext\",\n hookName: \"useRadioGroupItemPropsContext\",\n providerName: \"<RadioGroupItemPropsProvider />\"\n});\n\nexport { RadioGroupItemPropsProvider, useRadioGroupItemPropsContext };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { createSplitProps } from '../../utils/create-split-props.js';\nimport { ark } from '../factory.js';\nimport { useRadioGroupContext } from './use-radio-group-context.js';\nimport { RadioGroupItemProvider } from './use-radio-group-item-context.js';\nimport { RadioGroupItemPropsProvider } from './use-radio-group-item-props-context.js';\n\nconst RadioGroupItem = forwardRef((props, ref) => {\n const [itemProps, localProps] = createSplitProps()(props, [\"value\", \"disabled\", \"invalid\"]);\n const radioGroup = useRadioGroupContext();\n const mergedProps = mergeProps(radioGroup.getItemProps(itemProps), localProps);\n const itemState = radioGroup.getItemState(itemProps);\n return /* @__PURE__ */ jsx(RadioGroupItemProvider, { value: itemState, children: /* @__PURE__ */ jsx(RadioGroupItemPropsProvider, { value: itemProps, children: /* @__PURE__ */ jsx(ark.label, { ...mergedProps, ref }) }) });\n});\nRadioGroupItem.displayName = \"RadioGroupItem\";\n\nexport { RadioGroupItem };\n","'use client';\nimport { useRadioGroupItemContext } from './use-radio-group-item-context.js';\n\nconst RadioGroupItemContext = (props) => props.children(useRadioGroupItemContext());\n\nexport { RadioGroupItemContext };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useRadioGroupContext } from './use-radio-group-context.js';\nimport { useRadioGroupItemPropsContext } from './use-radio-group-item-props-context.js';\n\nconst RadioGroupItemControl = forwardRef((props, ref) => {\n const radioGroup = useRadioGroupContext();\n const itemProps = useRadioGroupItemPropsContext();\n const mergedProps = mergeProps(radioGroup.getItemControlProps(itemProps), props);\n return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref });\n});\nRadioGroupItemControl.displayName = \"RadioGroupItemControl\";\n\nexport { RadioGroupItemControl };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useRadioGroupContext } from './use-radio-group-context.js';\nimport { useRadioGroupItemPropsContext } from './use-radio-group-item-props-context.js';\n\nconst RadioGroupItemHiddenInput = forwardRef((props, ref) => {\n const radioGroup = useRadioGroupContext();\n const itemProps = useRadioGroupItemPropsContext();\n const mergedProps = mergeProps(radioGroup.getItemHiddenInputProps(itemProps), props);\n return /* @__PURE__ */ jsx(ark.input, { ...mergedProps, ref });\n});\nRadioGroupItemHiddenInput.displayName = \"RadioGroupItemHiddenInput\";\n\nexport { RadioGroupItemHiddenInput };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useRadioGroupContext } from './use-radio-group-context.js';\nimport { useRadioGroupItemPropsContext } from './use-radio-group-item-props-context.js';\n\nconst RadioGroupItemText = forwardRef((props, ref) => {\n const radioGroup = useRadioGroupContext();\n const itemProps = useRadioGroupItemPropsContext();\n const mergedProps = mergeProps(radioGroup.getItemTextProps(itemProps), props);\n return /* @__PURE__ */ jsx(ark.span, { ...mergedProps, ref });\n});\nRadioGroupItemText.displayName = \"RadioGroupItemText\";\n\nexport { RadioGroupItemText };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useRadioGroupContext } from './use-radio-group-context.js';\n\nconst RadioGroupLabel = forwardRef((props, ref) => {\n const radioGroup = useRadioGroupContext();\n const mergedProps = mergeProps(radioGroup.getLabelProps(), props);\n return /* @__PURE__ */ jsx(ark.label, { ...mergedProps, ref });\n});\nRadioGroupLabel.displayName = \"RadioGroupLabel\";\n\nexport { RadioGroupLabel };\n","'use client';\nimport * as radio from '@zag-js/radio-group';\nimport { useMachine, normalizeProps } from '@zag-js/react';\nimport { useId } from 'react';\nimport { useEnvironmentContext } from '../../providers/environment/use-environment-context.js';\nimport { useLocaleContext } from '../../providers/locale/use-locale-context.js';\n\nconst useRadioGroup = (props) => {\n const id = useId();\n const { getRootNode } = useEnvironmentContext();\n const { dir } = useLocaleContext();\n const machineProps = {\n id,\n dir,\n getRootNode,\n ...props\n };\n const service = useMachine(radio.machine, machineProps);\n return radio.connect(service, normalizeProps);\n};\n\nexport { useRadioGroup };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { createSplitProps } from '../../utils/create-split-props.js';\nimport { ark } from '../factory.js';\nimport { useRadioGroup } from './use-radio-group.js';\nimport { RadioGroupProvider } from './use-radio-group-context.js';\n\nconst RadioGroupRoot = forwardRef((props, ref) => {\n const [useRadioGroupProps, localProps] = createSplitProps()(props, [\n \"defaultValue\",\n \"disabled\",\n \"form\",\n \"id\",\n \"ids\",\n \"name\",\n \"onValueChange\",\n \"orientation\",\n \"readOnly\",\n \"value\"\n ]);\n const radioGroup = useRadioGroup(useRadioGroupProps);\n const mergedProps = mergeProps(radioGroup.getRootProps(), localProps);\n return /* @__PURE__ */ jsx(RadioGroupProvider, { value: radioGroup, children: /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref }) });\n});\nRadioGroupRoot.displayName = \"RadioGroupRoot\";\n\nexport { RadioGroupRoot };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { createSplitProps } from '../../utils/create-split-props.js';\nimport { ark } from '../factory.js';\nimport { RadioGroupProvider } from './use-radio-group-context.js';\n\nconst RadioGroupRootProvider = forwardRef((props, ref) => {\n const [{ value: radioGroup }, localProps] = createSplitProps()(props, [\"value\"]);\n const mergedProps = mergeProps(radioGroup.getRootProps(), localProps);\n return /* @__PURE__ */ jsx(RadioGroupProvider, { value: radioGroup, children: /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref }) });\n});\nRadioGroupRootProvider.displayName = \"RadioGroupRootProvider\";\n\nexport { RadioGroupRootProvider };\n","\"use strict\";\n\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport { forwardRef } from 'react';\nimport { dataAttr } from '../../utils/attr.js';\nimport { EMPTY_STYLES } from '../../styled-system/empty.js';\nimport { chakra } from '../../styled-system/factory.js';\nimport { useRecipe } from '../../styled-system/use-recipe.js';\n\nconst Radiomark = forwardRef(\n function Radiomark2(props, ref) {\n const recipe = useRecipe({ key: \"radiomark\", recipe: props.recipe });\n const [variantProps, restProps] = recipe.splitVariantProps(props);\n const { checked, disabled, unstyled, children, ...rest } = restProps;\n const styles = unstyled ? EMPTY_STYLES : recipe(variantProps);\n const sharedProps = {\n ref,\n \"data-checked\": dataAttr(checked),\n \"data-disabled\": dataAttr(disabled),\n ...rest,\n css: [styles, props.css]\n };\n return /* @__PURE__ */ jsx(chakra.span, { ...sharedProps, children: checked && /* @__PURE__ */ jsx(\"span\", { className: \"dot\" }) });\n }\n);\n\nexport { Radiomark };\n","\"use strict\";\n\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport { RadioGroup } from '@ark-ui/react/radio-group';\nimport { forwardRef } from 'react';\nimport { createSlotRecipeContext } from '../../styled-system/create-slot-recipe-context.js';\nimport { Radiomark } from '../radiomark/radiomark.js';\n\nconst {\n withProvider,\n withContext,\n useStyles: useRadioGroupStyles,\n PropsProvider\n} = createSlotRecipeContext({ key: \"radioGroup\" });\nconst RadioGroupRootProvider = withProvider(RadioGroup.RootProvider, \"root\", { forwardAsChild: true });\nconst RadioGroupRoot = withProvider(\n RadioGroup.Root,\n \"root\",\n { forwardAsChild: true }\n);\nconst RadioGroupPropsProvider = PropsProvider;\nconst RadioGroupLabel = withContext(RadioGroup.Label, \"label\", { forwardAsChild: true });\nconst RadioGroupItem = withContext(\n RadioGroup.Item,\n \"item\",\n { forwardAsChild: true }\n);\nconst RadioGroupItemText = withContext(RadioGroup.ItemText, \"itemText\", { forwardAsChild: true });\nconst RadioGroupItemControl = withContext(RadioGroup.ItemControl, \"itemControl\", { forwardAsChild: true });\nconst RadioGroupItemIndicator = forwardRef(function RadioGroupItemIndicator2(props, ref) {\n const styles = useRadioGroupStyles();\n return /* @__PURE__ */ jsx(RadioGroup.ItemContext, { children: (itemState) => /* @__PURE__ */ jsx(RadioGroup.ItemControl, { asChild: true, children: /* @__PURE__ */ jsx(\n Radiomark,\n {\n ref,\n unstyled: true,\n ...props,\n checked: itemState.checked,\n disabled: itemState.disabled,\n css: [styles[\"itemControl\"], props.css]\n }\n ) }) });\n});\nconst RadioGroupContext = RadioGroup.Context;\nconst RadioGroupItemContext = RadioGroup.ItemContext;\nconst RadioGroupItemHiddenInput = RadioGroup.ItemHiddenInput;\n\nexport { RadioGroupContext, RadioGroupItem, RadioGroupItemContext, RadioGroupItemControl, RadioGroupItemHiddenInput, RadioGroupItemIndicator, RadioGroupItemText, RadioGroupLabel, RadioGroupPropsProvider, RadioGroupRoot, RadioGroupRootProvider, useRadioGroupStyles };\n","import React, { ForwardedRef } from \"react\";\nimport { RadioGroup } from \"@chakra-ui/react/radio-group\";\nimport { FormControlSize } from \"hocs/withFormControl/withFormControl.types\";\nimport { Card, CardProps } from \"components/Card/card.component\";\nimport { CardPaddingMap } from \"components/Card/card.records\";\nimport { RadioSizeMap, RadioTextSpacing } from \"./radio.records\";\nimport {\n withFormControl,\n WithFormControlProps,\n} from \"hocs/withFormControl/withFormControl\";\nimport { Text } from \"components/Text/text.component\";\n\nexport interface RadioProps extends WithFormControlProps, RadioGroup.ItemProps {\n checked?: boolean;\n radioRef?: ForwardedRef<HTMLDivElement>;\n size?: FormControlSize;\n withCard?: boolean;\n}\n\nconst Radio = withFormControl(\n ({\n children,\n checked = false,\n disabled = false,\n invalid = false,\n onContrast = false,\n radioRef,\n size = \"md\",\n withCard = false,\n ...rest\n }: RadioProps): React.JSX.Element => {\n const RadioCard: React.FC<CardProps> = withCard\n ? (props): React.JSX.Element => {\n const pr =\n (RadioSizeMap[size] +\n RadioTextSpacing[size] +\n CardPaddingMap[size]) *\n 4;\n return (\n <Card\n className=\"Radio__Card\"\n data-testid=\"kibble-radio-card\"\n {...(!disabled && {\n interactive: true,\n invalid,\n active: !!checked,\n })}\n onContrast={onContrast}\n size={size}\n fullWidth\n display=\"flex\"\n {...(typeof children === \"string\" && { alignItems: \"center\" })}\n width=\"inherit\"\n pr={`${pr}px`}\n >\n {props.children}\n </Card>\n );\n }\n : React.Fragment;\n\n return (\n <RadioGroup.Item\n className=\"Radio\"\n data-testid=\"kibble-radio\"\n invalid={invalid}\n disabled={disabled}\n ref={radioRef}\n {...rest}\n >\n <RadioCard>\n <RadioGroup.ItemHiddenInput\n className=\"Radio__Input\"\n data-testid=\"kibble-radio-input\"\n />\n <RadioGroup.ItemIndicator\n className=\"Radio__Indicator\"\n data-testid=\"kibble-radio-indicator\"\n />\n {children && (\n <RadioGroup.ItemText\n className=\"Radio__Text\"\n data-testid=\"kibble-radio-label\"\n {...(withCard && typeof children !== \"string\" && { mt: \"-3px\" })}\n >\n {typeof children === \"string\" ? (\n <Text size={size}>{children}</Text>\n ) : (\n children\n )}\n </RadioGroup.ItemText>\n )}\n </RadioCard>\n </RadioGroup.Item>\n );\n },\n);\n\nconst WrappedRadio = React.forwardRef(\n (props: RadioProps, ref: ForwardedRef<HTMLDivElement>) => (\n <Radio radioRef={ref} {...props} />\n ),\n);\n\nWrappedRadio.displayName = \"Radio\";\n\nexport { WrappedRadio as Radio };\n","import React from \"react\";\nimport {\n withFormControl,\n WithFormControlProps,\n} from \"hocs/withFormControl/withFormControl\";\nimport { Radio, RadioProps } from \"./components/Radio/radio.component\";\nimport { RadioGroup as CRadioGroup } from \"@chakra-ui/react/radio-group\";\nimport { Stack } from \"@chakra-ui/react/stack\";\nimport { ConditionalValue } from \"@chakra-ui/react/styled-system\";\nimport { FlexDirection } from \"shared/types/alignment\";\nimport { FormControlSize } from \"hocs/withFormControl/withFormControl.types\";\nimport { ButtonGroup } from \"components/ButtonGroup\";\n\nexport interface KRadioGroupProps\n extends WithFormControlProps,\n Omit<CRadioGroup.RootProps, \"onValueChange\" | \"onChange\"> {\n direction?: ConditionalValue<FlexDirection>;\n onChange?: (value: string | null) => void;\n size?: FormControlSize;\n}\n\ninterface ButtonRadioGroupProps extends KRadioGroupProps {\n radioType?: \"buttons\";\n radios: Omit<RadioProps, \"withCard\">[];\n}\n\ninterface DefaultRadioGroupProps extends KRadioGroupProps {\n radioType?: \"default\";\n radios: RadioProps[];\n}\n\nexport type RadioGroupProps = ButtonRadioGroupProps | DefaultRadioGroupProps;\n\nconst RadioGroup = ({\n radios,\n defaultValue,\n direction = \"column\",\n disabled,\n invalid,\n onContrast,\n onChange,\n size = \"md\",\n radioType = \"default\",\n value,\n gap = 2,\n ...rest\n}: RadioGroupProps): React.JSX.Element => {\n const _computedVariant = onContrast ? \"onContrast\" : \"default\";\n return (\n <CRadioGroup.Root\n className=\"RadioGroup\"\n data-testid=\"kibble-radio-group\"\n disabled={disabled}\n defaultValue={defaultValue}\n value={value}\n onValueChange={({ value }) => onChange?.(value)}\n size={size}\n variant={_computedVariant}\n {...rest}\n >\n {radioType === \"default\" && (\n <Stack gap={gap} direction={direction}>\n {radios.map((radio, index) => (\n <Radio\n key={`radio-${index}`}\n invalid={invalid}\n disabled={disabled}\n checked={defaultValue === radio.value || value === radio.value}\n size={size}\n {...radio}\n />\n ))}\n </Stack>\n )}\n {radioType === \"buttons\" && (\n <ButtonGroup\n onContrast={onContrast}\n variant=\"secondarySubtle\"\n size={size}\n buttons={radios.map((radio, index) => {\n const active =\n defaultValue === radio.value || value === radio.value;\n return {\n key: `button-radio-${index}`,\n children: radio.children,\n active,\n disabled,\n onClick: () => onChange?.(radio.value),\n };\n })}\n />\n )}\n </CRadioGroup.Root>\n );\n};\n\nRadioGroup.displayName = \"CheckboxGroup\";\n\nconst WrappedRadioGroup = withFormControl(RadioGroup);\n\nexport { WrappedRadioGroup as RadioGroup };\n"],"names":["RadioGroupProvider","useRadioGroupContext","createContext","RadioGroupItemProvider","useRadioGroupItemContext","RadioGroupItemPropsProvider","useRadioGroupItemPropsContext","RadioGroupItem","forwardRef","props","ref","itemProps","localProps","createSplitProps","radioGroup","mergedProps","mergeProps","itemState","jsx","ark","RadioGroupItemContext","RadioGroupItemControl","RadioGroupItemHiddenInput","RadioGroupItemText","RadioGroupLabel","useRadioGroup","id","useId","getRootNode","useEnvironmentContext","dir","useLocaleContext","machineProps","service","useMachine","radio.machine","radio.connect","normalizeProps","RadioGroupRoot","useRadioGroupProps","RadioGroupRootProvider","Radiomark","recipe","useRecipe","variantProps","restProps","checked","disabled","unstyled","children","rest","styles","EMPTY_STYLES","sharedProps","dataAttr","chakra","withProvider","withContext","useRadioGroupStyles","createSlotRecipeContext","RadioGroup.RootProvider","RadioGroup.Root","RadioGroup.Label","RadioGroup.Item","RadioGroup.ItemText","RadioGroup.ItemControl","RadioGroupItemIndicator","RadioGroup.ItemContext","RadioGroup.ItemHiddenInput","Radio","withFormControl","invalid","onContrast","radioRef","size","withCard","RadioCard","pr","RadioSizeMap","RadioTextSpacing","CardPaddingMap","Card","React","RadioGroup.ItemIndicator","Text","WrappedRadio","RadioGroup","radios","defaultValue","direction","onChange","radioType","value","gap","_computedVariant","jsxs","CRadioGroup.Root","Stack","radio","index","ButtonGroup","active","WrappedRadioGroup"],"mappings":"goBAGM,CAACA,EAAoBC,CAAoB,EAAIC,gBAAc,CAC/D,KAAM,oBACN,SAAU,uBACV,aAAc,wBAChB,CAAC,ECJK,CAACC,EAAwBC,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AACC,GAAA,CACC,UAAU,aACV,cAAY,qBACZ,SAAAjD,EACA,aAAAyC,EACA,MAAAI,EACA,cAAe,CAAC,CAAE,MAAAA,CAAM,IAAMF,IAAWE,CAAK,EAC9C,KAAAlB,EACA,QAASoB,EACR,GAAG5C,EAEH,SAAA,CAAcyC,IAAA,mCACZM,EAAM,MAAA,CAAA,IAAAJ,EAAU,UAAAJ,EACd,SAAOF,EAAA,IAAI,CAACW,EAAOC,IAClBjF,EAAA,kBAAA,IAACmD,EAAA,CAEC,QAAAE,EACA,SAAAxB,EACA,QAASyC,IAAiBU,EAAM,OAASN,IAAUM,EAAM,MACzD,KAAAxB,EACC,GAAGwB,CAAA,EALC,SAASC,CAAK,EAOtB,CAAA,EACH,EAEDR,IAAc,WACbzE,EAAA,kBAAA,IAACkF,EAAA,YAAA,CACC,WAAA5B,EACA,QAAQ,kBACR,KAAAE,EACA,QAASa,EAAO,IAAI,CAACW,EAAOC,IAAU,CACpC,MAAME,EACJb,IAAiBU,EAAM,OAASN,IAAUM,EAAM,MAC3C,MAAA,CACL,IAAK,gBAAgBC,CAAK,GAC1B,SAAUD,EAAM,SAChB,OAAAG,EACA,SAAAtD,EACA,QAAS,IAAM2C,IAAWQ,EAAM,KAAK,CACvC,CACD,CAAA,CAAA,CAAA,CACH,CAAA,CAEJ,CAEJ,EAEAZ,EAAW,YAAc,gBAEnB,MAAAgB,GAAoBhC,kBAAgBgB,CAAU","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13]}
|
|
1
|
+
{"version":3,"file":"radioGroup.component-cFpOM0dT.js","sources":["../../node_modules/@ark-ui/react/dist/components/radio-group/use-radio-group-context.js","../../node_modules/@ark-ui/react/dist/components/radio-group/use-radio-group-item-context.js","../../node_modules/@ark-ui/react/dist/components/radio-group/use-radio-group-item-props-context.js","../../node_modules/@ark-ui/react/dist/components/radio-group/radio-group-item.js","../../node_modules/@ark-ui/react/dist/components/radio-group/radio-group-item-context.js","../../node_modules/@ark-ui/react/dist/components/radio-group/radio-group-item-control.js","../../node_modules/@ark-ui/react/dist/components/radio-group/radio-group-item-hidden-input.js","../../node_modules/@ark-ui/react/dist/components/radio-group/radio-group-item-text.js","../../node_modules/@ark-ui/react/dist/components/radio-group/radio-group-label.js","../../node_modules/@ark-ui/react/dist/components/radio-group/use-radio-group.js","../../node_modules/@ark-ui/react/dist/components/radio-group/radio-group-root.js","../../node_modules/@ark-ui/react/dist/components/radio-group/radio-group-root-provider.js","../../node_modules/@chakra-ui/react/dist/esm/components/radiomark/radiomark.js","../../node_modules/@chakra-ui/react/dist/esm/components/radio-group/radio-group.js","../../src/components/RadioGroup/components/Radio/radio.component.tsx","../../src/components/RadioGroup/radioGroup.component.tsx"],"sourcesContent":["'use client';\nimport { createContext } from '../../utils/create-context.js';\n\nconst [RadioGroupProvider, useRadioGroupContext] = createContext({\n name: \"RadioGroupContext\",\n hookName: \"useRadioGroupContext\",\n providerName: \"<RadioGroupProvider />\"\n});\n\nexport { RadioGroupProvider, useRadioGroupContext };\n","'use client';\nimport { createContext } from '../../utils/create-context.js';\n\nconst [RadioGroupItemProvider, useRadioGroupItemContext] = createContext({\n name: \"RadioGroupItemContext\",\n hookName: \"useRadioGroupItemContext\",\n providerName: \"<RadioGroupItemProvider />\"\n});\n\nexport { RadioGroupItemProvider, useRadioGroupItemContext };\n","'use client';\nimport { createContext } from '../../utils/create-context.js';\n\nconst [RadioGroupItemPropsProvider, useRadioGroupItemPropsContext] = createContext({\n name: \"RadioGroupItemPropsContext\",\n hookName: \"useRadioGroupItemPropsContext\",\n providerName: \"<RadioGroupItemPropsProvider />\"\n});\n\nexport { RadioGroupItemPropsProvider, useRadioGroupItemPropsContext };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { createSplitProps } from '../../utils/create-split-props.js';\nimport { ark } from '../factory.js';\nimport { useRadioGroupContext } from './use-radio-group-context.js';\nimport { RadioGroupItemProvider } from './use-radio-group-item-context.js';\nimport { RadioGroupItemPropsProvider } from './use-radio-group-item-props-context.js';\n\nconst RadioGroupItem = forwardRef((props, ref) => {\n const [itemProps, localProps] = createSplitProps()(props, [\"value\", \"disabled\", \"invalid\"]);\n const radioGroup = useRadioGroupContext();\n const mergedProps = mergeProps(radioGroup.getItemProps(itemProps), localProps);\n const itemState = radioGroup.getItemState(itemProps);\n return /* @__PURE__ */ jsx(RadioGroupItemProvider, { value: itemState, children: /* @__PURE__ */ jsx(RadioGroupItemPropsProvider, { value: itemProps, children: /* @__PURE__ */ jsx(ark.label, { ...mergedProps, ref }) }) });\n});\nRadioGroupItem.displayName = \"RadioGroupItem\";\n\nexport { RadioGroupItem };\n","'use client';\nimport { useRadioGroupItemContext } from './use-radio-group-item-context.js';\n\nconst RadioGroupItemContext = (props) => props.children(useRadioGroupItemContext());\n\nexport { RadioGroupItemContext };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useRadioGroupContext } from './use-radio-group-context.js';\nimport { useRadioGroupItemPropsContext } from './use-radio-group-item-props-context.js';\n\nconst RadioGroupItemControl = forwardRef((props, ref) => {\n const radioGroup = useRadioGroupContext();\n const itemProps = useRadioGroupItemPropsContext();\n const mergedProps = mergeProps(radioGroup.getItemControlProps(itemProps), props);\n return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref });\n});\nRadioGroupItemControl.displayName = \"RadioGroupItemControl\";\n\nexport { RadioGroupItemControl };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useRadioGroupContext } from './use-radio-group-context.js';\nimport { useRadioGroupItemPropsContext } from './use-radio-group-item-props-context.js';\n\nconst RadioGroupItemHiddenInput = forwardRef((props, ref) => {\n const radioGroup = useRadioGroupContext();\n const itemProps = useRadioGroupItemPropsContext();\n const mergedProps = mergeProps(radioGroup.getItemHiddenInputProps(itemProps), props);\n return /* @__PURE__ */ jsx(ark.input, { ...mergedProps, ref });\n});\nRadioGroupItemHiddenInput.displayName = \"RadioGroupItemHiddenInput\";\n\nexport { RadioGroupItemHiddenInput };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useRadioGroupContext } from './use-radio-group-context.js';\nimport { useRadioGroupItemPropsContext } from './use-radio-group-item-props-context.js';\n\nconst RadioGroupItemText = forwardRef((props, ref) => {\n const radioGroup = useRadioGroupContext();\n const itemProps = useRadioGroupItemPropsContext();\n const mergedProps = mergeProps(radioGroup.getItemTextProps(itemProps), props);\n return /* @__PURE__ */ jsx(ark.span, { ...mergedProps, ref });\n});\nRadioGroupItemText.displayName = \"RadioGroupItemText\";\n\nexport { RadioGroupItemText };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useRadioGroupContext } from './use-radio-group-context.js';\n\nconst RadioGroupLabel = forwardRef((props, ref) => {\n const radioGroup = useRadioGroupContext();\n const mergedProps = mergeProps(radioGroup.getLabelProps(), props);\n return /* @__PURE__ */ jsx(ark.label, { ...mergedProps, ref });\n});\nRadioGroupLabel.displayName = \"RadioGroupLabel\";\n\nexport { RadioGroupLabel };\n","'use client';\nimport * as radio from '@zag-js/radio-group';\nimport { useMachine, normalizeProps } from '@zag-js/react';\nimport { useId } from 'react';\nimport { useEnvironmentContext } from '../../providers/environment/use-environment-context.js';\nimport { useLocaleContext } from '../../providers/locale/use-locale-context.js';\n\nconst useRadioGroup = (props) => {\n const id = useId();\n const { getRootNode } = useEnvironmentContext();\n const { dir } = useLocaleContext();\n const machineProps = {\n id,\n dir,\n getRootNode,\n ...props\n };\n const service = useMachine(radio.machine, machineProps);\n return radio.connect(service, normalizeProps);\n};\n\nexport { useRadioGroup };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { createSplitProps } from '../../utils/create-split-props.js';\nimport { ark } from '../factory.js';\nimport { useRadioGroup } from './use-radio-group.js';\nimport { RadioGroupProvider } from './use-radio-group-context.js';\n\nconst RadioGroupRoot = forwardRef((props, ref) => {\n const [useRadioGroupProps, localProps] = createSplitProps()(props, [\n \"defaultValue\",\n \"disabled\",\n \"form\",\n \"id\",\n \"ids\",\n \"name\",\n \"onValueChange\",\n \"orientation\",\n \"readOnly\",\n \"value\"\n ]);\n const radioGroup = useRadioGroup(useRadioGroupProps);\n const mergedProps = mergeProps(radioGroup.getRootProps(), localProps);\n return /* @__PURE__ */ jsx(RadioGroupProvider, { value: radioGroup, children: /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref }) });\n});\nRadioGroupRoot.displayName = \"RadioGroupRoot\";\n\nexport { RadioGroupRoot };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { createSplitProps } from '../../utils/create-split-props.js';\nimport { ark } from '../factory.js';\nimport { RadioGroupProvider } from './use-radio-group-context.js';\n\nconst RadioGroupRootProvider = forwardRef((props, ref) => {\n const [{ value: radioGroup }, localProps] = createSplitProps()(props, [\"value\"]);\n const mergedProps = mergeProps(radioGroup.getRootProps(), localProps);\n return /* @__PURE__ */ jsx(RadioGroupProvider, { value: radioGroup, children: /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref }) });\n});\nRadioGroupRootProvider.displayName = \"RadioGroupRootProvider\";\n\nexport { RadioGroupRootProvider };\n","\"use strict\";\n\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport { forwardRef } from 'react';\nimport { dataAttr } from '../../utils/attr.js';\nimport { EMPTY_STYLES } from '../../styled-system/empty.js';\nimport { chakra } from '../../styled-system/factory.js';\nimport { useRecipe } from '../../styled-system/use-recipe.js';\n\nconst Radiomark = forwardRef(\n function Radiomark2(props, ref) {\n const recipe = useRecipe({ key: \"radiomark\", recipe: props.recipe });\n const [variantProps, restProps] = recipe.splitVariantProps(props);\n const { checked, disabled, unstyled, children, ...rest } = restProps;\n const styles = unstyled ? EMPTY_STYLES : recipe(variantProps);\n const sharedProps = {\n ref,\n \"data-checked\": dataAttr(checked),\n \"data-disabled\": dataAttr(disabled),\n ...rest,\n css: [styles, props.css]\n };\n return /* @__PURE__ */ jsx(chakra.span, { ...sharedProps, children: checked && /* @__PURE__ */ jsx(\"span\", { className: \"dot\" }) });\n }\n);\n\nexport { Radiomark };\n","\"use strict\";\n\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport { RadioGroup } from '@ark-ui/react/radio-group';\nimport { forwardRef } from 'react';\nimport { createSlotRecipeContext } from '../../styled-system/create-slot-recipe-context.js';\nimport { Radiomark } from '../radiomark/radiomark.js';\n\nconst {\n withProvider,\n withContext,\n useStyles: useRadioGroupStyles,\n PropsProvider\n} = createSlotRecipeContext({ key: \"radioGroup\" });\nconst RadioGroupRootProvider = withProvider(RadioGroup.RootProvider, \"root\", { forwardAsChild: true });\nconst RadioGroupRoot = withProvider(\n RadioGroup.Root,\n \"root\",\n { forwardAsChild: true }\n);\nconst RadioGroupPropsProvider = PropsProvider;\nconst RadioGroupLabel = withContext(RadioGroup.Label, \"label\", { forwardAsChild: true });\nconst RadioGroupItem = withContext(\n RadioGroup.Item,\n \"item\",\n { forwardAsChild: true }\n);\nconst RadioGroupItemText = withContext(RadioGroup.ItemText, \"itemText\", { forwardAsChild: true });\nconst RadioGroupItemControl = withContext(RadioGroup.ItemControl, \"itemControl\", { forwardAsChild: true });\nconst RadioGroupItemIndicator = forwardRef(function RadioGroupItemIndicator2(props, ref) {\n const styles = useRadioGroupStyles();\n return /* @__PURE__ */ jsx(RadioGroup.ItemContext, { children: (itemState) => /* @__PURE__ */ jsx(RadioGroup.ItemControl, { asChild: true, children: /* @__PURE__ */ jsx(\n Radiomark,\n {\n ref,\n unstyled: true,\n ...props,\n checked: itemState.checked,\n disabled: itemState.disabled,\n css: [styles[\"itemControl\"], props.css]\n }\n ) }) });\n});\nconst RadioGroupContext = RadioGroup.Context;\nconst RadioGroupItemContext = RadioGroup.ItemContext;\nconst RadioGroupItemHiddenInput = RadioGroup.ItemHiddenInput;\n\nexport { RadioGroupContext, RadioGroupItem, RadioGroupItemContext, RadioGroupItemControl, RadioGroupItemHiddenInput, RadioGroupItemIndicator, RadioGroupItemText, RadioGroupLabel, RadioGroupPropsProvider, RadioGroupRoot, RadioGroupRootProvider, useRadioGroupStyles };\n","import React, { ForwardedRef } from \"react\";\nimport { RadioGroup } from \"@chakra-ui/react/radio-group\";\nimport { FormControlSize } from \"hocs/withFormControl/withFormControl.types\";\nimport { Card, CardProps } from \"components/Card/card.component\";\nimport { CardPaddingMap } from \"components/Card/card.records\";\nimport { RadioSizeMap, RadioTextSpacing } from \"./radio.records\";\nimport {\n withFormControl,\n WithFormControlProps,\n} from \"hocs/withFormControl/withFormControl\";\nimport { Text } from \"components/Text/text.component\";\n\nexport interface RadioProps extends WithFormControlProps, RadioGroup.ItemProps {\n checked?: boolean;\n radioRef?: ForwardedRef<HTMLDivElement>;\n size?: FormControlSize;\n withCard?: boolean;\n}\n\nconst Radio = withFormControl(\n ({\n children,\n checked = false,\n disabled = false,\n invalid = false,\n onContrast = false,\n radioRef,\n size = \"md\",\n withCard = false,\n ...rest\n }: RadioProps): React.JSX.Element => {\n const RadioCard: React.FC<CardProps> = withCard\n ? (props): React.JSX.Element => {\n const pr =\n (RadioSizeMap[size] +\n RadioTextSpacing[size] +\n CardPaddingMap[size]) *\n 4;\n return (\n <Card\n className=\"Radio__Card\"\n data-testid=\"kibble-radio-card\"\n {...(!disabled && {\n interactive: true,\n invalid,\n active: !!checked,\n })}\n onContrast={onContrast}\n size={size}\n fullWidth\n display=\"flex\"\n {...(typeof children === \"string\" && { alignItems: \"center\" })}\n width=\"inherit\"\n pr={`${pr}px`}\n >\n {props.children}\n </Card>\n );\n }\n : React.Fragment;\n\n return (\n <RadioGroup.Item\n className=\"Radio\"\n data-testid=\"kibble-radio\"\n invalid={invalid}\n disabled={disabled}\n ref={radioRef}\n {...rest}\n >\n <RadioCard>\n <RadioGroup.ItemHiddenInput\n className=\"Radio__Input\"\n data-testid=\"kibble-radio-input\"\n />\n <RadioGroup.ItemIndicator\n className=\"Radio__Indicator\"\n data-testid=\"kibble-radio-indicator\"\n />\n {children && (\n <RadioGroup.ItemText\n className=\"Radio__Text\"\n data-testid=\"kibble-radio-label\"\n {...(withCard && typeof children !== \"string\" && { mt: \"-3px\" })}\n >\n {typeof children === \"string\" ? (\n <Text size={size}>{children}</Text>\n ) : (\n children\n )}\n </RadioGroup.ItemText>\n )}\n </RadioCard>\n </RadioGroup.Item>\n );\n },\n);\n\nconst WrappedRadio = React.forwardRef(\n (props: RadioProps, ref: ForwardedRef<HTMLDivElement>) => (\n <Radio radioRef={ref} {...props} />\n ),\n);\n\nWrappedRadio.displayName = \"Radio\";\n\nexport { WrappedRadio as Radio };\n","import React from \"react\";\nimport {\n withFormControl,\n WithFormControlProps,\n} from \"hocs/withFormControl/withFormControl\";\nimport { Radio, RadioProps } from \"./components/Radio/radio.component\";\nimport { RadioGroup as CRadioGroup } from \"@chakra-ui/react/radio-group\";\nimport { Stack } from \"@chakra-ui/react/stack\";\nimport { ConditionalValue } from \"@chakra-ui/react/styled-system\";\nimport { FlexDirection } from \"shared/types/alignment\";\nimport { FormControlSize } from \"hocs/withFormControl/withFormControl.types\";\nimport { ButtonGroup } from \"components/ButtonGroup\";\n\nexport interface KRadioGroupProps\n extends WithFormControlProps,\n Omit<CRadioGroup.RootProps, \"onValueChange\" | \"onChange\"> {\n direction?: ConditionalValue<FlexDirection>;\n onChange?: (value: string | null) => void;\n size?: FormControlSize;\n}\n\ninterface ButtonRadioGroupProps extends KRadioGroupProps {\n radioType?: \"buttons\";\n radios: Omit<RadioProps, \"withCard\">[];\n}\n\ninterface DefaultRadioGroupProps extends KRadioGroupProps {\n radioType?: \"default\";\n radios: RadioProps[];\n}\n\nexport type RadioGroupProps = ButtonRadioGroupProps | DefaultRadioGroupProps;\n\nconst RadioGroup = ({\n radios,\n defaultValue,\n direction = \"column\",\n disabled,\n invalid,\n onContrast,\n onChange,\n size = \"md\",\n radioType = \"default\",\n value,\n gap = 2,\n ...rest\n}: RadioGroupProps): React.JSX.Element => {\n const _computedVariant = onContrast ? \"onContrast\" : \"default\";\n return (\n <CRadioGroup.Root\n className=\"RadioGroup\"\n data-testid=\"kibble-radio-group\"\n disabled={disabled}\n defaultValue={defaultValue}\n value={value}\n onValueChange={({ value }) => onChange?.(value)}\n size={size}\n variant={_computedVariant}\n {...rest}\n >\n {radioType === \"default\" && (\n <Stack gap={gap} direction={direction}>\n {radios.map((radio, index) => (\n <Radio\n key={`radio-${index}`}\n invalid={invalid}\n disabled={disabled}\n checked={defaultValue === radio.value || value === radio.value}\n size={size}\n {...radio}\n />\n ))}\n </Stack>\n )}\n {radioType === \"buttons\" && (\n <ButtonGroup\n onContrast={onContrast}\n variant=\"secondarySubtle\"\n size={size}\n buttons={radios.map((radio, index) => {\n const active =\n defaultValue === radio.value || value === radio.value;\n return {\n key: `button-radio-${index}`,\n children: radio.children,\n active,\n disabled,\n onClick: () => onChange?.(radio.value),\n };\n })}\n />\n )}\n </CRadioGroup.Root>\n );\n};\n\nRadioGroup.displayName = \"CheckboxGroup\";\n\nconst WrappedRadioGroup = withFormControl(RadioGroup);\n\nexport { WrappedRadioGroup as RadioGroup };\n"],"names":["RadioGroupProvider","useRadioGroupContext","createContext","RadioGroupItemProvider","useRadioGroupItemContext","RadioGroupItemPropsProvider","useRadioGroupItemPropsContext","RadioGroupItem","forwardRef","props","ref","itemProps","localProps","createSplitProps","radioGroup","mergedProps","mergeProps","itemState","jsx","ark","RadioGroupItemContext","RadioGroupItemControl","RadioGroupItemHiddenInput","RadioGroupItemText","RadioGroupLabel","useRadioGroup","id","useId","getRootNode","useEnvironmentContext","dir","useLocaleContext","machineProps","service","useMachine","radio.machine","radio.connect","normalizeProps","RadioGroupRoot","useRadioGroupProps","RadioGroupRootProvider","Radiomark","recipe","useRecipe","variantProps","restProps","checked","disabled","unstyled","children","rest","styles","EMPTY_STYLES","sharedProps","dataAttr","chakra","withProvider","withContext","useRadioGroupStyles","createSlotRecipeContext","RadioGroup.RootProvider","RadioGroup.Root","RadioGroup.Label","RadioGroup.Item","RadioGroup.ItemText","RadioGroup.ItemControl","RadioGroupItemIndicator","RadioGroup.ItemContext","RadioGroup.ItemHiddenInput","Radio","withFormControl","invalid","onContrast","radioRef","size","withCard","RadioCard","pr","RadioSizeMap","RadioTextSpacing","CardPaddingMap","Card","React","RadioGroup.ItemIndicator","Text","WrappedRadio","RadioGroup","radios","defaultValue","direction","onChange","radioType","value","gap","_computedVariant","jsxs","CRadioGroup.Root","Stack","radio","index","ButtonGroup","active","WrappedRadioGroup"],"mappings":"goBAGM,CAACA,EAAoBC,CAAoB,EAAIC,gBAAc,CAC/D,KAAM,oBACN,SAAU,uBACV,aAAc,wBAChB,CAAC,ECJK,CAACC,EAAwBC,CAAwB,EAAIF,gBAAc,CACvE,KAAM,wBACN,SAAU,2BACV,aAAc,4BAChB,CAAC,ECJK,CAACG,EAA6BC,CAA6B,EAAIJ,gBAAc,CACjF,KAAM,6BACN,SAAU,gCACV,aAAc,iCAChB,CAAC,ECGKK,EAAiBC,EAAU,WAAC,CAACC,EAAOC,IAAQ,CAChD,KAAM,CAACC,EAAWC,CAAU,EAAIC,EAAgB,iBAAA,EAAGJ,EAAO,CAAC,QAAS,WAAY,SAAS,CAAC,EACpFK,EAAab,EAAsB,EACnCc,EAAcC,EAAAA,WAAWF,EAAW,aAAaH,CAAS,EAAGC,CAAU,EACvEK,EAAYH,EAAW,aAAaH,CAAS,EACnD,OAAuBO,EAAG,kBAAA,IAACf,EAAwB,CAAE,MAAOc,EAAW,SAA0BC,EAAAA,kBAAAA,IAAIb,EAA6B,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,EACA,QAAQ,kBACR,KAAAE,EACA,QAASa,EAAO,IAAI,CAACW,EAAOC,IAAU,CACpC,MAAME,EACJb,IAAiBU,EAAM,OAASN,IAAUM,EAAM,MAC3C,MAAA,CACL,IAAK,gBAAgBC,CAAK,GAC1B,SAAUD,EAAM,SAChB,OAAAG,EACA,SAAAtD,EACA,QAAS,IAAM2C,IAAWQ,EAAM,KAAK,CACvC,CACD,CAAA,CAAA,CAAA,CACH,CAAA,CAEJ,CAEJ,EAEAZ,EAAW,YAAc,gBAEnB,MAAAgB,GAAoBhC,kBAAgBgB,CAAU","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13]}
|
|
@@ -0,0 +1,391 @@
|
|
|
1
|
+
import { j as e } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
|
+
import de, { forwardRef as d, useId as R, useMemo as O, useState as G, useCallback as I, useEffect as me } from "react";
|
|
3
|
+
import { w as pe } from "./withFormControl-Vf_flDYv.js";
|
|
4
|
+
import { I as ue } from "./icon.component-BmcWaysM.js";
|
|
5
|
+
import { B as xe } from "./button.component-BWlRjD5a.js";
|
|
6
|
+
import { W as L } from "./text.component-D3E0SdX1.js";
|
|
7
|
+
import { S as Pe } from "./spinner.component-DCSsW51J.js";
|
|
8
|
+
import { a as S, f as m, u as k, h as ge, b as h, j as Se, i as he, k as fe, n as Ce, s as V, l as $, m as F, P as ve } from "./use-locale-context-zakBNK5b.js";
|
|
9
|
+
import { c as je } from "./create-slot-recipe-context-DJkLYvCT.js";
|
|
10
|
+
import { C as Ie, b as be, c as ye } from "./icons-grAfs3Oz.js";
|
|
11
|
+
import { u as _ } from "./use-field-context-B8ygn96q.js";
|
|
12
|
+
import { U as a } from "./index-DLvqBeH6.js";
|
|
13
|
+
import { L as Ne, m as Te, c as we } from "./index-Dn2nvQ5m.js";
|
|
14
|
+
import { u as Ge } from "./tooltip.component-DYBYGsfe.js";
|
|
15
|
+
import { W as Ae } from "./textInput.component-BpCIE07n.js";
|
|
16
|
+
import { B as Re } from "./box-y05hq0PT.js";
|
|
17
|
+
import { F as A } from "./flex-C2d2LH-K.js";
|
|
18
|
+
const Oe = (r) => new Ne(r), [H, p] = S({
|
|
19
|
+
name: "SelectContext",
|
|
20
|
+
hookName: "useSelectContext",
|
|
21
|
+
providerName: "<SelectProvider />"
|
|
22
|
+
}), W = d((r, l) => {
|
|
23
|
+
const s = p(), t = a(s.getClearTriggerProps(), r);
|
|
24
|
+
return /* @__PURE__ */ e.jsx(m.button, { ...t, ref: l });
|
|
25
|
+
});
|
|
26
|
+
W.displayName = "SelectClearTrigger";
|
|
27
|
+
const B = d((r, l) => {
|
|
28
|
+
const s = p(), t = k(), o = a(s.getContentProps(), t.getPresenceProps(), r);
|
|
29
|
+
return t.unmounted ? null : /* @__PURE__ */ e.jsx(m.div, { ...o, ref: ge(t.ref, l) });
|
|
30
|
+
});
|
|
31
|
+
B.displayName = "SelectContent";
|
|
32
|
+
const D = d((r, l) => {
|
|
33
|
+
const s = p(), t = a(s.getControlProps(), r);
|
|
34
|
+
return /* @__PURE__ */ e.jsx(m.div, { ...t, ref: l });
|
|
35
|
+
});
|
|
36
|
+
D.displayName = "SelectControl";
|
|
37
|
+
const E = d((r, l) => {
|
|
38
|
+
const s = p(), t = a(s.getHiddenSelectProps(), r), o = s.value.length === 0, n = _();
|
|
39
|
+
return /* @__PURE__ */ e.jsxs(m.select, { "aria-describedby": n?.ariaDescribedby, ...t, ref: l, children: [
|
|
40
|
+
o && /* @__PURE__ */ e.jsx("option", { value: "" }),
|
|
41
|
+
s.collection.items.map((c, x) => /* @__PURE__ */ e.jsx(
|
|
42
|
+
"option",
|
|
43
|
+
{
|
|
44
|
+
value: s.collection.getItemValue(c) ?? "",
|
|
45
|
+
disabled: s.collection.getItemDisabled(c),
|
|
46
|
+
children: s.collection.stringifyItem(c)
|
|
47
|
+
},
|
|
48
|
+
x
|
|
49
|
+
))
|
|
50
|
+
] });
|
|
51
|
+
});
|
|
52
|
+
E.displayName = "SelectHiddenSelect";
|
|
53
|
+
const q = d((r, l) => {
|
|
54
|
+
const s = p(), t = a(s.getIndicatorProps(), r);
|
|
55
|
+
return /* @__PURE__ */ e.jsx(m.div, { ...t, ref: l });
|
|
56
|
+
});
|
|
57
|
+
q.displayName = "SelectIndicator";
|
|
58
|
+
const [Le, ft] = S({
|
|
59
|
+
name: "SelectItemContext",
|
|
60
|
+
hookName: "useSelectItemContext",
|
|
61
|
+
providerName: "<SelectItemProvider />"
|
|
62
|
+
}), [ke, M] = S({
|
|
63
|
+
name: "SelectItemPropsContext",
|
|
64
|
+
hookName: "useSelectItemPropsContext",
|
|
65
|
+
providerName: "<SelectItemPropsProvider />"
|
|
66
|
+
}), U = d((r, l) => {
|
|
67
|
+
const [s, t] = h()(r, ["item", "persistFocus"]), o = p(), n = a(o.getItemProps(s), t), c = o.getItemState(s);
|
|
68
|
+
return /* @__PURE__ */ e.jsx(ke, { value: s, children: /* @__PURE__ */ e.jsx(Le, { value: c, children: /* @__PURE__ */ e.jsx(m.div, { ...n, ref: l }) }) });
|
|
69
|
+
});
|
|
70
|
+
U.displayName = "SelectItem";
|
|
71
|
+
const [Ve, $e] = S({
|
|
72
|
+
name: "SelectItemGroupPropsContext",
|
|
73
|
+
hookName: "useSelectItemGroupPropsContext",
|
|
74
|
+
providerName: "<SelectItemGroupPropsProvider />"
|
|
75
|
+
}), z = d((r, l) => {
|
|
76
|
+
const s = R(), [t, o] = h()(r, ["id"]), n = { id: s, ...t }, c = p(), x = a(c.getItemGroupProps(n), o);
|
|
77
|
+
return /* @__PURE__ */ e.jsx(Ve, { value: n, children: /* @__PURE__ */ e.jsx(m.div, { ...x, ref: l }) });
|
|
78
|
+
});
|
|
79
|
+
z.displayName = "SelectItemGroup";
|
|
80
|
+
const J = d((r, l) => {
|
|
81
|
+
const s = p(), t = $e(), o = a(s.getItemGroupLabelProps({ htmlFor: t.id }), r);
|
|
82
|
+
return /* @__PURE__ */ e.jsx(m.div, { ...o, ref: l });
|
|
83
|
+
});
|
|
84
|
+
J.displayName = "SelectItemGroupLabel";
|
|
85
|
+
const K = d((r, l) => {
|
|
86
|
+
const s = p(), t = M(), o = a(s.getItemIndicatorProps(t), r);
|
|
87
|
+
return /* @__PURE__ */ e.jsx(m.div, { ...o, ref: l });
|
|
88
|
+
});
|
|
89
|
+
K.displayName = "SelectItemIndicator";
|
|
90
|
+
const Q = d((r, l) => {
|
|
91
|
+
const s = p(), t = M(), o = a(s.getItemTextProps(t), r);
|
|
92
|
+
return /* @__PURE__ */ e.jsx(m.span, { ...o, ref: l });
|
|
93
|
+
});
|
|
94
|
+
Q.displayName = "SelectItemText";
|
|
95
|
+
const X = d((r, l) => {
|
|
96
|
+
const s = p(), t = a(s.getLabelProps(), r);
|
|
97
|
+
return /* @__PURE__ */ e.jsx(m.label, { ...t, ref: l });
|
|
98
|
+
});
|
|
99
|
+
X.displayName = "SelectLabel";
|
|
100
|
+
const Y = d((r, l) => {
|
|
101
|
+
const s = p(), t = a(s.getPositionerProps(), r);
|
|
102
|
+
return k().unmounted ? null : /* @__PURE__ */ e.jsx(m.div, { ...t, ref: l });
|
|
103
|
+
});
|
|
104
|
+
Y.displayName = "SelectPositioner";
|
|
105
|
+
const Fe = (r) => {
|
|
106
|
+
const l = R(), { dir: s } = Se(), { getRootNode: t } = he(), o = _(), n = {
|
|
107
|
+
id: l,
|
|
108
|
+
ids: {
|
|
109
|
+
label: o?.ids.label,
|
|
110
|
+
hiddenSelect: o?.ids.control
|
|
111
|
+
},
|
|
112
|
+
disabled: o?.disabled,
|
|
113
|
+
readOnly: o?.readOnly,
|
|
114
|
+
invalid: o?.invalid,
|
|
115
|
+
required: o?.required,
|
|
116
|
+
dir: s,
|
|
117
|
+
getRootNode: t,
|
|
118
|
+
...r
|
|
119
|
+
}, c = fe(Te, n);
|
|
120
|
+
return we(c, Ce);
|
|
121
|
+
}, _e = (r, l) => {
|
|
122
|
+
const [s, t] = V(r), [o, n] = h()(t, [
|
|
123
|
+
"closeOnSelect",
|
|
124
|
+
"collection",
|
|
125
|
+
"composite",
|
|
126
|
+
"defaultHighlightedValue",
|
|
127
|
+
"defaultOpen",
|
|
128
|
+
"defaultValue",
|
|
129
|
+
"deselectable",
|
|
130
|
+
"disabled",
|
|
131
|
+
"form",
|
|
132
|
+
"highlightedValue",
|
|
133
|
+
"id",
|
|
134
|
+
"ids",
|
|
135
|
+
"invalid",
|
|
136
|
+
"loopFocus",
|
|
137
|
+
"multiple",
|
|
138
|
+
"name",
|
|
139
|
+
"onFocusOutside",
|
|
140
|
+
"onHighlightChange",
|
|
141
|
+
"onInteractOutside",
|
|
142
|
+
"onOpenChange",
|
|
143
|
+
"onPointerDownOutside",
|
|
144
|
+
"onValueChange",
|
|
145
|
+
"open",
|
|
146
|
+
"positioning",
|
|
147
|
+
"readOnly",
|
|
148
|
+
"required",
|
|
149
|
+
"scrollToIndexFn",
|
|
150
|
+
"value"
|
|
151
|
+
]), c = Fe(o), x = $(a({ present: c.open }, s)), f = a(c.getRootProps(), n);
|
|
152
|
+
return /* @__PURE__ */ e.jsx(H, { value: c, children: /* @__PURE__ */ e.jsx(F, { value: x, children: /* @__PURE__ */ e.jsx(m.div, { ...f, ref: l }) }) });
|
|
153
|
+
}, He = d(_e), We = (r, l) => {
|
|
154
|
+
const [s, t] = V(r), [{ value: o }, n] = h()(t, ["value"]), c = $(a({ present: o.open }, s)), x = a(o.getRootProps(), n);
|
|
155
|
+
return /* @__PURE__ */ e.jsx(H, { value: o, children: /* @__PURE__ */ e.jsx(F, { value: c, children: /* @__PURE__ */ e.jsx(m.div, { ...x, ref: l }) }) });
|
|
156
|
+
}, Be = d(We), Z = d((r, l) => {
|
|
157
|
+
const s = p(), t = a(s.getTriggerProps(), r);
|
|
158
|
+
return /* @__PURE__ */ e.jsx(m.button, { ...t, ref: l });
|
|
159
|
+
});
|
|
160
|
+
Z.displayName = "SelectTrigger";
|
|
161
|
+
const ee = d((r, l) => {
|
|
162
|
+
const { children: s, placeholder: t, ...o } = r, n = p(), c = a(n.getValueTextProps(), o);
|
|
163
|
+
return /* @__PURE__ */ e.jsx(m.span, { ...c, ref: l, children: s || n.valueAsString || t });
|
|
164
|
+
});
|
|
165
|
+
ee.displayName = "SelectValueText";
|
|
166
|
+
const {
|
|
167
|
+
withProvider: te,
|
|
168
|
+
withContext: u
|
|
169
|
+
} = je({ key: "select" });
|
|
170
|
+
te(Be, "root", {
|
|
171
|
+
forwardAsChild: !0
|
|
172
|
+
});
|
|
173
|
+
const De = te(
|
|
174
|
+
He,
|
|
175
|
+
"root",
|
|
176
|
+
{
|
|
177
|
+
forwardAsChild: !0,
|
|
178
|
+
defaultProps: { positioning: { sameWidth: !0 } }
|
|
179
|
+
}
|
|
180
|
+
), Ee = u(
|
|
181
|
+
Z,
|
|
182
|
+
"trigger",
|
|
183
|
+
{ forwardAsChild: !0 }
|
|
184
|
+
), qe = u(Y, "positioner", { forwardAsChild: !0 }), Me = u(
|
|
185
|
+
B,
|
|
186
|
+
"content",
|
|
187
|
+
{ forwardAsChild: !0 }
|
|
188
|
+
), Ue = u(ee, "valueText", { forwardAsChild: !0 }), ze = u(W, "clearTrigger", {
|
|
189
|
+
forwardAsChild: !0,
|
|
190
|
+
defaultProps: { children: /* @__PURE__ */ e.jsx(Ie, { boxSize: "1em" }) }
|
|
191
|
+
});
|
|
192
|
+
u(z, "itemGroup", { forwardAsChild: !0 });
|
|
193
|
+
u(J, "itemGroupLabel", { forwardAsChild: !0 });
|
|
194
|
+
const Je = u(
|
|
195
|
+
U,
|
|
196
|
+
"item",
|
|
197
|
+
{ forwardAsChild: !0 }
|
|
198
|
+
);
|
|
199
|
+
u(
|
|
200
|
+
Q,
|
|
201
|
+
"itemText",
|
|
202
|
+
{ forwardAsChild: !0 }
|
|
203
|
+
);
|
|
204
|
+
u(K, "itemIndicator", {
|
|
205
|
+
forwardAsChild: !0,
|
|
206
|
+
defaultProps: {
|
|
207
|
+
children: /* @__PURE__ */ e.jsx(be, {})
|
|
208
|
+
}
|
|
209
|
+
});
|
|
210
|
+
const Ke = u("div", "indicatorGroup");
|
|
211
|
+
u(q, "indicator", {
|
|
212
|
+
forwardAsChild: !0,
|
|
213
|
+
defaultProps: {
|
|
214
|
+
children: /* @__PURE__ */ e.jsx(ye, {})
|
|
215
|
+
}
|
|
216
|
+
});
|
|
217
|
+
const Qe = u(
|
|
218
|
+
D,
|
|
219
|
+
"control",
|
|
220
|
+
{ forwardAsChild: !0 }
|
|
221
|
+
);
|
|
222
|
+
u(
|
|
223
|
+
X,
|
|
224
|
+
"label",
|
|
225
|
+
{ forwardAsChild: !0 }
|
|
226
|
+
);
|
|
227
|
+
const Xe = E, re = ({
|
|
228
|
+
item: r,
|
|
229
|
+
onContrast: l,
|
|
230
|
+
shouldTruncateText: s,
|
|
231
|
+
size: t
|
|
232
|
+
}) => /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
233
|
+
r.leftElement,
|
|
234
|
+
typeof r.label == "string" ? /* @__PURE__ */ e.jsx(
|
|
235
|
+
L,
|
|
236
|
+
{
|
|
237
|
+
size: t,
|
|
238
|
+
truncated: s,
|
|
239
|
+
variant: r.variant || (l ? "onContrast" : "default"),
|
|
240
|
+
children: r.label
|
|
241
|
+
}
|
|
242
|
+
) : r.label
|
|
243
|
+
] }), Ye = ({
|
|
244
|
+
placeholder: r = "",
|
|
245
|
+
placeholderElement: l,
|
|
246
|
+
...s
|
|
247
|
+
}) => {
|
|
248
|
+
const t = p(), o = O(() => t.selectedItems[0], [t]);
|
|
249
|
+
return /* @__PURE__ */ e.jsxs(Ee, { children: [
|
|
250
|
+
!o && l,
|
|
251
|
+
/* @__PURE__ */ e.jsx(Ue, { placeholder: r, children: o && /* @__PURE__ */ e.jsx(re, { item: o, ...s }) })
|
|
252
|
+
] });
|
|
253
|
+
}, Ze = pe(
|
|
254
|
+
({
|
|
255
|
+
clearable: r,
|
|
256
|
+
emptyPlaceholder: l = "No options available",
|
|
257
|
+
loading: s,
|
|
258
|
+
onContrast: t,
|
|
259
|
+
onSearch: o,
|
|
260
|
+
options: n,
|
|
261
|
+
placeholder: c = "",
|
|
262
|
+
placeholderElement: x,
|
|
263
|
+
searchable: f = !1,
|
|
264
|
+
searchPlaceholder: se = "Search...",
|
|
265
|
+
selectRef: oe,
|
|
266
|
+
shouldTruncateText: b = !0,
|
|
267
|
+
size: P = "md",
|
|
268
|
+
...le
|
|
269
|
+
}) => {
|
|
270
|
+
const { contentRef: ne } = Ge(), ce = t ? "onContrast" : "default", [C, y] = G(""), [N, T] = G(n), v = O(() => Oe({
|
|
271
|
+
items: N ?? [],
|
|
272
|
+
itemToString: (i) => typeof i.label == "string" ? i.label : i.valueText || "",
|
|
273
|
+
itemToValue: (i) => i.value
|
|
274
|
+
}), [N]), w = I(
|
|
275
|
+
(i, g) => i === "" || !i ? g : (console.log(i, g), g.filter((j) => !!(typeof j.label == "string" ? j.label : j.valueText)?.toLowerCase().includes(i.toLowerCase()))),
|
|
276
|
+
[]
|
|
277
|
+
);
|
|
278
|
+
me(() => {
|
|
279
|
+
T(o ? n : w(C, n));
|
|
280
|
+
}, [n, C, o, w]);
|
|
281
|
+
const ae = I(
|
|
282
|
+
(i) => {
|
|
283
|
+
const g = i.target.value;
|
|
284
|
+
y(g), o && o(i);
|
|
285
|
+
},
|
|
286
|
+
[o]
|
|
287
|
+
), ie = I(() => {
|
|
288
|
+
y(""), o && o({
|
|
289
|
+
target: { value: "" }
|
|
290
|
+
});
|
|
291
|
+
}, [o]);
|
|
292
|
+
return /* @__PURE__ */ e.jsxs(
|
|
293
|
+
De,
|
|
294
|
+
{
|
|
295
|
+
className: "Select",
|
|
296
|
+
"data-testid": "kibble-select",
|
|
297
|
+
collection: v,
|
|
298
|
+
size: P,
|
|
299
|
+
variant: ce,
|
|
300
|
+
...le,
|
|
301
|
+
children: [
|
|
302
|
+
/* @__PURE__ */ e.jsx(Xe, { ref: oe }),
|
|
303
|
+
/* @__PURE__ */ e.jsxs(Qe, { children: [
|
|
304
|
+
/* @__PURE__ */ e.jsx(
|
|
305
|
+
Ye,
|
|
306
|
+
{
|
|
307
|
+
placeholder: c,
|
|
308
|
+
placeholderElement: x,
|
|
309
|
+
onContrast: !!t,
|
|
310
|
+
shouldTruncateText: !!b,
|
|
311
|
+
size: P
|
|
312
|
+
}
|
|
313
|
+
),
|
|
314
|
+
/* @__PURE__ */ e.jsxs(Ke, { children: [
|
|
315
|
+
r && /* @__PURE__ */ e.jsx(ze, { asChild: !0, children: /* @__PURE__ */ e.jsx(
|
|
316
|
+
xe,
|
|
317
|
+
{
|
|
318
|
+
iconName: "close",
|
|
319
|
+
onContrast: t,
|
|
320
|
+
size: P === "lg" ? "sm" : "xs",
|
|
321
|
+
variant: "ghostNeutral"
|
|
322
|
+
}
|
|
323
|
+
) }),
|
|
324
|
+
/* @__PURE__ */ e.jsx(
|
|
325
|
+
ue,
|
|
326
|
+
{
|
|
327
|
+
name: "chevronDown",
|
|
328
|
+
size: P,
|
|
329
|
+
variant: t ? "onContrast" : "default"
|
|
330
|
+
}
|
|
331
|
+
)
|
|
332
|
+
] })
|
|
333
|
+
] }),
|
|
334
|
+
/* @__PURE__ */ e.jsx(ve, { container: ne || void 0, children: /* @__PURE__ */ e.jsx(qe, { children: /* @__PURE__ */ e.jsxs(Me, { children: [
|
|
335
|
+
f && /* @__PURE__ */ e.jsx(
|
|
336
|
+
Re,
|
|
337
|
+
{
|
|
338
|
+
className: "Select__Header",
|
|
339
|
+
"data-testid": "kibble-select-header",
|
|
340
|
+
m: "0 12px 8px",
|
|
341
|
+
children: /* @__PURE__ */ e.jsx(
|
|
342
|
+
Ae,
|
|
343
|
+
{
|
|
344
|
+
className: "Select__SearchBar",
|
|
345
|
+
"data-testid": "kibble-select-search-bar",
|
|
346
|
+
placeholder: se,
|
|
347
|
+
onChange: ae,
|
|
348
|
+
size: "sm",
|
|
349
|
+
value: C,
|
|
350
|
+
clearable: !0,
|
|
351
|
+
onClear: ie,
|
|
352
|
+
formControlStyle: { mt: 1 }
|
|
353
|
+
}
|
|
354
|
+
)
|
|
355
|
+
}
|
|
356
|
+
),
|
|
357
|
+
s ? /* @__PURE__ */ e.jsx(A, { w: "100%", justifyContent: "center", py: 3, children: /* @__PURE__ */ e.jsx(
|
|
358
|
+
Pe,
|
|
359
|
+
{
|
|
360
|
+
variant: t ? "brandOnContrast" : "brand",
|
|
361
|
+
size: P
|
|
362
|
+
}
|
|
363
|
+
) }) : /* @__PURE__ */ e.jsx(e.Fragment, { children: v.items.length ? v.items.map((i) => /* @__PURE__ */ e.jsx(Je, { item: i, children: /* @__PURE__ */ e.jsx(
|
|
364
|
+
re,
|
|
365
|
+
{
|
|
366
|
+
item: i,
|
|
367
|
+
onContrast: !!t,
|
|
368
|
+
shouldTruncateText: !!b,
|
|
369
|
+
size: P
|
|
370
|
+
}
|
|
371
|
+
) }, i.value)) : /* @__PURE__ */ e.jsx(A, { w: "100%", justifyContent: "center", py: 3, children: /* @__PURE__ */ e.jsx(
|
|
372
|
+
L,
|
|
373
|
+
{
|
|
374
|
+
size: "sm",
|
|
375
|
+
variant: t ? "subtleOnContrast" : "subtle",
|
|
376
|
+
children: l
|
|
377
|
+
}
|
|
378
|
+
) }) })
|
|
379
|
+
] }) }) })
|
|
380
|
+
]
|
|
381
|
+
}
|
|
382
|
+
);
|
|
383
|
+
}
|
|
384
|
+
), et = de.forwardRef(
|
|
385
|
+
(r, l) => /* @__PURE__ */ e.jsx(Ze, { selectRef: l, ...r })
|
|
386
|
+
);
|
|
387
|
+
et.displayName = "Select";
|
|
388
|
+
export {
|
|
389
|
+
et as W
|
|
390
|
+
};
|
|
391
|
+
//# sourceMappingURL=select.component-BmFg6qwz.js.map
|