@semcore/radio 6.44.0-prerelease.0 → 6.44.0-prerelease.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.
@@ -1 +1 @@
1
- {"version":3,"file":"Radio.js","names":["Flex","Box","InvalidStateBox","createComponent","Component","sstyled","Root","callAllEventHandlers","resolveColorEnhance","getInputProps","inputProps","logger","useColorResolver","Text","TypographyText","React","style","_sstyled","insert","RadioContext","createContext","RadioGroupRoot","_Component","_classCallCheck","_callSuper","arguments","_inherits","_createClass","key","value","uncontrolledProps","setContext","_this$asProps","asProps","theme","size","name","onChange","disabled","render","_ref","Children","createElement","_assignProps","_defineProperty","defaultValue","RadioGroup","context","RadioRoot","_Component2","_this","_len","length","args","Array","_key","concat","hoistedDisabled","undefined","warn","setState","getTextProps","_this$context$size","_this$asProps2","_this$asProps2$size","_this$asProps2$disabl","label","state","textProps","children","hoistDisabled","rootDisabled","props","getValueProps","_this$context$size2","_this$props$size","_this$asProps3","_this$asProps3$state","_this$asProps3$size","_this$asProps3$theme","_this$asProps3$disabl","_this$asProps3$name","_this$asProps4","checked","_ref2","_ref6","SRadio","_this$asProps5","styles","hasChildren","cn","_objectSpread","_assignProps2","Fragment","Radio","Value","ValueRoot","_Component3","_this2","_len2","_key2","e","target","getControlProps","currentValue","_this$asProps6","forwardRef","includeInputProps","_getInputProps","_getInputProps2","_slicedToArray","commonControlProps","inputValue","ref","bindHandlerChange","getRadioMarkProps","_this$asProps7","keyboardFocused","tag","resolveColor","other","_objectWithoutProperties","_excluded","onClick","_getInputProps3","_getInputProps4","radioMarkProps","componentDidUpdate","componentDidMount","_ref8","_this$asProps8","_ref7","Control","RadioMark","defaultChecked","_ref3","arguments[0]","_ref9","SControl","_assignProps3","displayName","_ref4","_ref0","SValue","SInvalidPattern","_assignProps4","_ref5","_ref1","SText","color","useEffect","_assignProps5","wrapRadioGroup","wrapper"],"sources":["../../src/Radio.tsx"],"sourcesContent":["import { Flex, Box, InvalidStateBox } from '@semcore/base-components';\nimport type { Intergalactic } from '@semcore/core';\nimport { createComponent, Component, sstyled, Root } from '@semcore/core';\nimport { callAllEventHandlers } from '@semcore/core/lib/utils/assignProps';\nimport resolveColorEnhance from '@semcore/core/lib/utils/enhances/resolveColorEnhance';\nimport getInputProps, { inputProps } from '@semcore/core/lib/utils/inputProps';\nimport logger from '@semcore/core/lib/utils/logger';\nimport { useColorResolver } from '@semcore/core/lib/utils/use/useColorResolver';\nimport { Text as TypographyText } from '@semcore/typography';\nimport React from 'react';\n\nimport type { NSRadio } from './Radio.type';\nimport style from './style/radio.shadow.css';\n\nconst RadioContext = React.createContext<{\n onChange?: NSRadio.Group.Props['onChange'];\n value?: NSRadio.Group.Props['value'];\n theme?: NSRadio.Group.Props['theme'];\n size?: NSRadio.Group.Props['size'];\n name?: NSRadio.Group.Props['name'];\n disabled?: NSRadio.Group.Props['disabled'];\n}>({});\n\nclass RadioGroupRoot extends Component<\n Intergalactic.InternalTypings.InferComponentProps<NSRadio.Group.Component>,\n [],\n { value: null }\n> {\n static displayName = 'RadioGroup';\n\n static defaultProps = {\n defaultValue: null,\n };\n\n uncontrolledProps() {\n return {\n value: null,\n };\n }\n\n setContext() {\n const { theme, size, name, value, onChange, disabled } = this.asProps;\n\n return {\n onChange,\n value,\n theme,\n size,\n name,\n disabled,\n };\n }\n\n render() {\n const { Children } = this.asProps;\n\n return (\n <Root render={Flex} direction='column' role='group' __excludeProps={['onChange']}>\n <Children />\n </Root>\n );\n }\n}\n\nconst RadioGroup = createComponent(RadioGroupRoot, {}, { context: RadioContext }) as unknown as NSRadio.Group.Component;\n\nclass RadioRoot extends Component<Intergalactic.InternalTypings.InferComponentProps<NSRadio.Component>> {\n static displayName = 'Radio';\n static style = style;\n static contextType = RadioContext;\n\n context: React.ContextType<typeof RadioContext> = {};\n\n state = {\n hoistedDisabled: undefined,\n };\n\n hoistDisabled = (disabled: NSRadio.Props['disabled']) => {\n logger.warn(\n true,\n `Don't set disabled on Radio.Value or Radio.Text, set it on Radio or on RadioGroup (for all items) instead. Otherwise it will produce wrong SSR output.`,\n this.asProps['data-ui-name'],\n );\n this.setState({ hoistedDisabled: disabled });\n };\n\n getTextProps() {\n const { size = this.context.size ?? 'm', disabled = this.context.disabled, label } = this.asProps;\n\n const { hoistedDisabled } = this.state;\n\n const textProps = {\n size: size === 'm' ? 200 : 300,\n children: label,\n disabled: disabled ?? hoistedDisabled,\n hoistDisabled: this.hoistDisabled,\n rootDisabled: this.props.disabled,\n };\n\n return textProps;\n }\n\n getValueProps() {\n const {\n state = 'normal',\n size = this.context.size ?? 'm',\n theme = this.context.theme,\n disabled = this.context.disabled,\n name = this.context.name,\n } = this.asProps;\n\n const { value, checked } = this.asProps;\n const { hoistedDisabled } = this.state;\n\n return {\n size: this.props.size ?? size,\n disabled: disabled ?? hoistedDisabled,\n state: state,\n theme,\n value,\n checked,\n name,\n hoistDisabled: this.hoistDisabled,\n rootDisabled: this.props.disabled,\n };\n }\n\n render() {\n const SRadio = Root;\n const { styles, Children, children: hasChildren } = this.asProps;\n\n return sstyled(styles)(\n <SRadio render={Box} tag='label' __excludeProps={['onChange', 'label', 'disabled']}>\n {hasChildren\n ? (\n <Children />\n )\n : (\n <>\n <Radio.Value />\n <Radio.Text />\n </>\n )}\n </SRadio>,\n );\n }\n}\n\nclass ValueRoot extends Component<\n Intergalactic.InternalTypings.InferChildComponentProps<NSRadio.Value.Component, typeof RadioRoot, 'Value'>,\n typeof ValueRoot.enhance,\n { checked: (e: React.ChangeEvent<HTMLInputElement>) => boolean }\n> {\n context: React.ContextType<typeof RadioContext> = {};\n\n static defaultProps = {\n includeInputProps: inputProps,\n defaultChecked: false,\n };\n\n static enhance = [resolveColorEnhance()] as const;\n static displayName = 'Value';\n static contextType = RadioContext;\n static style = style;\n\n bindHandlerChange = (value: NSRadio.Props['value']) => (e: React.ChangeEvent<HTMLInputElement>) => {\n if (typeof this.context.onChange === 'function' && value !== undefined) {\n this.context.onChange(value, e);\n }\n };\n\n uncontrolledProps() {\n return {\n checked: (e: React.ChangeEvent<HTMLInputElement>) => e.target.checked,\n };\n }\n\n getControlProps() {\n const { value: currentValue } = this.context;\n const { forwardRef, includeInputProps, state, value } = this.asProps;\n const { onChange } = this.props;\n\n const [commonControlProps] = getInputProps(this.asProps, includeInputProps);\n const inputValue = value ?? '';\n\n return {\n ref: forwardRef,\n state,\n ...commonControlProps,\n value: inputValue,\n ...(currentValue !== undefined\n ? {\n checked: currentValue === inputValue,\n onChange: callAllEventHandlers(onChange, this.bindHandlerChange(inputValue)),\n }\n : {}),\n };\n }\n\n getRadioMarkProps() {\n const { value: currentValue } = this.context;\n const {\n size,\n state,\n theme,\n keyboardFocused,\n value,\n tag,\n disabled,\n includeInputProps,\n resolveColor,\n children,\n Children,\n ...other\n } = this.asProps;\n const { onClick } = this.props;\n const [commonControlProps, radioMarkProps] = getInputProps(other, includeInputProps);\n const inputValue = value ?? '';\n\n return {\n theme,\n size,\n state,\n keyboardFocused,\n disabled,\n resolveColor,\n checked: commonControlProps.checked,\n ...radioMarkProps,\n ...(currentValue !== undefined && tag !== 'label'\n ? {\n onClick: callAllEventHandlers(onClick, this.bindHandlerChange(inputValue)),\n }\n : {}),\n };\n }\n\n componentDidUpdate() {\n if (this.asProps.rootDisabled !== this.asProps.disabled) {\n this.asProps.hoistDisabled(this.asProps.disabled);\n }\n }\n\n componentDidMount() {\n if (this.asProps.rootDisabled !== this.asProps.disabled) {\n this.asProps.hoistDisabled(this.asProps.disabled);\n }\n }\n\n render() {\n const { styles, children: hasChildren, Children } = this.asProps;\n\n if (!hasChildren) {\n return sstyled(styles)(\n <>\n <Radio.Value.Control />\n <Radio.Value.RadioMark />\n </>,\n );\n }\n\n return sstyled(styles)(<Children />);\n }\n}\n\nfunction Control(\n props: Intergalactic.InternalTypings.InferChildComponentProps<\n NSRadio.Value.Control.Component,\n typeof ValueRoot,\n 'Control'\n >,\n) {\n const SControl = Root;\n const { styles, state } = props;\n\n return sstyled(styles)(<SControl render={Box} tag='input' type='radio' aria-invalid={state === 'invalid'} />);\n}\nControl.displayName = 'Control';\n\nfunction RadioMark(\n props: Intergalactic.InternalTypings.InferChildComponentProps<\n NSRadio.Value.Mark.Component,\n typeof ValueRoot,\n 'RadioMark'\n >,\n) {\n const SValue = Root;\n const SInvalidPattern = InvalidStateBox;\n const { theme, styles, resolveColor, state, checked } = props;\n\n return sstyled(styles)(\n <SValue render={Box} tag='div' use:theme={resolveColor(theme)} aria-hidden={true}>\n {state === 'invalid' && !checked && <SInvalidPattern />}\n </SValue>,\n );\n}\nRadioMark.displayName = 'RadioMark';\n\nfunction Text(\n props: Intergalactic.InternalTypings.InferChildComponentProps<NSRadio.Text.Component, typeof RadioRoot, 'Text'>,\n) {\n const SText = Root;\n const { styles, color } = props;\n\n React.useEffect(() => {\n if (props.rootDisabled !== props.disabled) {\n props.hoistDisabled(props.disabled);\n }\n }, [props.rootDisabled, props.disabled, props.hoistDisabled]);\n const resolveColor = useColorResolver();\n\n return sstyled(styles)(<SText render={TypographyText} tag='span' use:color={resolveColor(color)} />);\n}\nText.displayName = 'Text';\n\nconst Value = createComponent(ValueRoot, {\n Control,\n RadioMark,\n}) as NSRadio.Value.Component;\n\nconst Radio = createComponent(RadioRoot, {\n Text,\n Value,\n}) as NSRadio.Component;\n\nexport const wrapRadioGroup = <PropsExtending extends {}>(\n wrapper: (\n props: Intergalactic.InternalTypings.UntypeRefAndTag<\n Intergalactic.InternalTypings.ComponentPropsNesting<NSRadio.Group.Component>\n > &\n PropsExtending,\n ) => React.ReactNode,\n) => wrapper as NSRadio.Group.Component<PropsExtending>;\n\nexport { inputProps, RadioGroup };\n\nexport default Radio;\n"],"mappings":";;;;;;;;;;;;;;;AAAA,SAASA,IAAI,EAAEC,GAAG,EAAEC,eAAe,QAAQ,0BAA0B;AAErE,SAASC,eAAe,EAAEC,SAAS,EAAEC,OAAO,EAAEC,IAAI,QAAQ,eAAe;AACzE,SAASC,oBAAoB,QAAQ,qCAAqC;AA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radio.js","names":["React","createComponent","Component","CONTEXT_COMPONENT","sstyled","Root","Flex","Box","InvalidStateBox","assignProps","callAllEventHandlers","keyboardFocusEnhance","resolveColorEnhance","getInputProps","inputProps","useColorResolver","style","_sstyled","insert","logger","Text","TypographyText","RadioGroupRoot","_Component","_inherits","_super","_createSuper","_classCallCheck","apply","arguments","_createClass","key","value","uncontrolledProps","setContext","_this$asProps","asProps","theme","size","name","onChange","disabled","render","_ref","Children","createElement","_assignProps","_defineProperty","defaultValue","RadioGroup","RadioRoot","_Component2","_super2","_this","_len","length","args","Array","_key","call","concat","_assertThisInitialized","hoistedDisabled","undefined","warn","setState","getTextProps","_assignProps6","context","_assignProps6$size","label","state","textProps","children","hoistDisabled","rootDisabled","props","getValueProps","_this$props$size","_assignProps7","_assignProps7$size","_assignProps7$state","_this$asProps2","checked","_ref2","_ref6","SRadio","_this$asProps3","styles","hasChildren","cn","_objectSpread","_assignProps2","Fragment","Radio","Value","ValueRoot","_Component3","_super3","_this2","_len2","_key2","e","target","getControlProps","currentValue","_this$asProps4","forwardRef","includeInputProps","_getInputProps","_getInputProps2","_slicedToArray","commonControlProps","inputValue","controlProps","ref","_this$props","onClick","bindHandlerChange","getRadioMarkProps","_this$asProps5","keyboardFocused","tag","resolveColor","other","_objectWithoutProperties","_excluded","_getInputProps3","_getInputProps4","radioMarkProps","propsWithoutChildren","_excluded2","markProps","componentDidUpdate","componentDidMount","_ref8","_this$asProps6","_ref7","Control","RadioMark","defaultChecked","_ref3","arguments[0]","_ref9","SControl","_assignProps3","displayName","_ref4","_ref10","SValue","SInvalidPattern","_assignProps4","_ref5","_ref11","SText","color","useEffect","_assignProps5","wrapRadioGroup","wrapper"],"sources":["../../src/Radio.jsx"],"sourcesContent":["import React from 'react';\nimport createComponent, { Component, CONTEXT_COMPONENT, sstyled, Root } from '@semcore/core';\nimport { Flex, Box, InvalidStateBox } from '@semcore/flex-box';\nimport assignProps, { callAllEventHandlers } from '@semcore/utils/lib/assignProps';\nimport keyboardFocusEnhance from '@semcore/utils/lib/enhances/keyboardFocusEnhance';\nimport resolveColorEnhance from '@semcore/utils/lib/enhances/resolveColorEnhance';\nimport getInputProps, { inputProps } from '@semcore/utils/lib/inputProps';\nimport { useColorResolver } from '@semcore/utils/lib/use/useColorResolver';\n\nimport style from './style/radio.shadow.css';\nimport logger from '@semcore/utils/lib/logger';\nimport { Text as TypographyText } from '@semcore/typography';\n\nclass RadioGroupRoot extends Component {\n static displayName = 'RadioGroup';\n\n static defaultProps = {\n defaultValue: null,\n };\n\n uncontrolledProps() {\n return {\n value: null,\n };\n }\n\n setContext() {\n const { theme, size, name, value, onChange, disabled } = this.asProps;\n\n return {\n onChange,\n value,\n theme,\n size,\n name,\n disabled,\n };\n }\n\n render() {\n const { Children } = this.asProps;\n\n return (\n <Root render={Flex} direction='column' role='group' __excludeProps={['onChange']}>\n <Children />\n </Root>\n );\n }\n}\n\nconst RadioGroup = createComponent(RadioGroupRoot);\n\nclass RadioRoot extends Component {\n static displayName = 'Radio';\n static style = style;\n static contextType = RadioGroup[CONTEXT_COMPONENT];\n\n state = {\n hoistedDisabled: undefined,\n };\n\n hoistDisabled = (disabled) => {\n logger.warn(\n true,\n `Don't set disabled on Radio.Value or Radio.Text, set it on Radio or on RadioGroup (for all items) instead. Otherwise it will produce wrong SSR output.`,\n this.asProps['data-ui-name'],\n );\n this.setState({ hoistedDisabled: disabled });\n };\n\n getTextProps() {\n // The default values are here, since you cannot rewrite out of context\n const { size = 'm', disabled, label } = assignProps(this.asProps, this.context);\n const { hoistedDisabled } = this.state;\n\n const textProps = {\n size,\n children: label,\n disabled: disabled ?? hoistedDisabled,\n hoistDisabled: this.hoistDisabled,\n rootDisabled: this.props.disabled,\n };\n\n return textProps;\n }\n\n getValueProps() {\n // The default values are here, since you cannot rewrite out of context\n const {\n size = 'm',\n state = 'normal',\n theme,\n disabled,\n name,\n } = assignProps(this.asProps, this.context);\n const { value, checked } = this.asProps;\n const { hoistedDisabled } = this.state;\n\n return {\n size: this.props.size ?? size,\n disabled: disabled ?? hoistedDisabled,\n state: state,\n theme,\n value,\n checked,\n name,\n hoistDisabled: this.hoistDisabled,\n rootDisabled: this.props.disabled,\n };\n }\n\n render() {\n const SRadio = Root;\n const { styles, Children, children: hasChildren } = this.asProps;\n\n return sstyled(styles)(\n <SRadio render={Box} tag='label' __excludeProps={['onChange', 'label', 'disabled']}>\n {hasChildren ? (\n <Children />\n ) : (\n <>\n <Radio.Value />\n <Radio.Text />\n </>\n )}\n </SRadio>,\n );\n }\n}\n\nclass ValueRoot extends Component {\n static defaultProps = {\n includeInputProps: inputProps,\n defaultChecked: false,\n };\n static enhance = [keyboardFocusEnhance(), resolveColorEnhance()];\n static displayName = 'Value';\n static contextType = RadioGroup[CONTEXT_COMPONENT];\n static style = style;\n\n bindHandlerChange = (value) => (e) => {\n if (typeof this.context.onChange === 'function') {\n this.context.onChange(value, e);\n }\n };\n\n uncontrolledProps() {\n return {\n checked: (e) => e.target.checked,\n };\n }\n\n getControlProps() {\n const currentValue = this.context.value;\n const { forwardRef, includeInputProps, state, value } = this.asProps;\n const [commonControlProps] = getInputProps(this.asProps, includeInputProps);\n const inputValue = value ?? '';\n\n const controlProps = {\n ref: forwardRef,\n state,\n ...commonControlProps,\n value: inputValue,\n };\n\n if (currentValue !== undefined) {\n const { onChange, onClick } = this.props;\n\n controlProps.checked = currentValue === inputValue;\n controlProps.onChange = callAllEventHandlers(onChange, this.bindHandlerChange(inputValue));\n }\n\n return controlProps;\n }\n\n getRadioMarkProps() {\n const currentValue = this.context.value;\n const {\n size,\n state,\n theme,\n keyboardFocused,\n value,\n tag,\n disabled,\n includeInputProps,\n resolveColor,\n ...other\n } = this.asProps;\n const [commonControlProps, radioMarkProps] = getInputProps(other, includeInputProps);\n const { children, Children, ...propsWithoutChildren } = radioMarkProps;\n const inputValue = value ?? '';\n\n const markProps = {\n theme,\n size,\n state,\n keyboardFocused,\n disabled,\n resolveColor,\n checked: commonControlProps.checked,\n ...propsWithoutChildren,\n };\n\n if (currentValue !== undefined) {\n const { onClick } = this.props;\n\n if (tag !== 'label') {\n markProps.onClick = callAllEventHandlers(onClick, this.bindHandlerChange(inputValue));\n }\n }\n\n return markProps;\n }\n\n componentDidUpdate() {\n if (this.asProps.rootDisabled !== this.asProps.disabled) {\n this.asProps.hoistDisabled(this.asProps.disabled);\n }\n }\n componentDidMount() {\n if (this.asProps.rootDisabled !== this.asProps.disabled) {\n this.asProps.hoistDisabled(this.asProps.disabled);\n }\n }\n\n render() {\n const { styles, children: hasChildren, Children } = this.asProps;\n\n if (!hasChildren) {\n return sstyled(styles)(\n <>\n <Radio.Value.Control />\n <Radio.Value.RadioMark />\n </>,\n );\n }\n\n return sstyled(styles)(<Children />);\n }\n}\n\nconst Control = (props) => {\n const SControl = Root;\n const { styles, state } = props;\n\n return sstyled(styles)(\n <SControl render={Box} tag='input' type='radio' aria-invalid={state === 'invalid'} />,\n );\n};\nControl.displayName = 'Control';\n\nconst RadioMark = (props) => {\n const SValue = Root;\n const SInvalidPattern = InvalidStateBox;\n const { theme, styles, resolveColor, state, checked } = props;\n\n return sstyled(styles)(\n <SValue render={Box} tag='div' use:theme={resolveColor(theme)} aria-hidden={true}>\n {state === 'invalid' && !checked && <SInvalidPattern />}\n </SValue>,\n );\n};\nRadioMark.displayName = 'RadioMark';\n\nconst Text = (props) => {\n const SText = Root;\n const { styles, color } = props;\n\n React.useEffect(() => {\n if (props.rootDisabled !== props.disabled) {\n props.hoistDisabled(props.disabled);\n }\n }, [props.rootDisabled, props.disabled, props.hoistDisabled]);\n const resolveColor = useColorResolver();\n\n return sstyled(styles)(\n <SText render={TypographyText} tag='span' use:color={resolveColor(color)} />,\n );\n};\nText.displayName = 'Text';\n\nexport { inputProps, RadioGroup };\n\nconst Value = createComponent(ValueRoot, {\n Control,\n RadioMark,\n});\n\nconst Radio = createComponent(RadioRoot, {\n Text,\n Value,\n});\n\nexport const wrapRadioGroup = (wrapper) => wrapper;\n\nexport default Radio;\n"],"mappings":";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AA;AAElD,eAAejE,KAAK"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.d.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import React from 'react';\nimport { PropGetterFn, UnknownProperties, Intergalactic } from '@semcore/core';\nimport { Box, BoxProps, Flex } from '@semcore/flex-box';\nimport { KeyboardFocusProps } from '@semcore/utils/lib/enhances/keyboardFocusEnhance';\nimport { Text } from '@semcore/typography';\n\nexport type RadioSize = 'm' | 'l';\nexport type RadioState = 'normal' | 'invalid';\nexport type RadioValue = string | number | boolean;\n\n/** @deprecated */\nexport interface IRadioProps extends RadioProps, UnknownProperties {}\nexport type RadioProps = BoxProps & {\n /** Radio item value **/\n value?: RadioValue;\n\n /** Radio item checked flag **/\n checked?: boolean;\n\n /**\n * The value displaying the state of the component\n * @default normal\n */\n state?: RadioState;\n /**\n * Radio button size\n * @default m\n **/\n size?: RadioSize;\n /** The theme of the radio button that you can send your color to */\n theme?: string;\n /** Radio item text **/\n label?: string;\n /** Blocks access and changes to the radio item **/\n disabled?: boolean;\n};\n\n/** @deprecated */\nexport interface IRadioGroupProps extends RadioGroupProps, UnknownProperties {\n /**\n * HTML tag name for the displayed item\n */\n tag?: React.ElementType | string;\n}\nexport type RadioGroupProps<T extends RadioValue = RadioValue> = {\n /** Radio group name */\n name?: string;\n /** Active default value */\n defaultValue?: T;\n /** Active value */\n value?: T;\n /** Called when the selected element is changed */\n onChange?:\n | ((value: T, e?: React.SyntheticEvent<HTMLInputElement>) => void)\n | React.Dispatch<React.SetStateAction<T>>;\n /** Radio button size */\n size?: RadioSize;\n /** The theme of the radio button that you can send your color to */\n theme?: string;\n /** Blocks access and changes to the form field */\n disabled?: boolean;\n};\n\n/** @deprecated */\nexport interface IRadioValueProps extends RadioValueProps, UnknownProperties {}\nexport type RadioValueProps = BoxProps &\n KeyboardFocusProps & {\n /** List of elements that can be put on a hidden input */\n includeInputProps?: string[];\n /**\n * @deprecated set `state` on root Radio instead\n * The value displaying the state of the component\n * @default normal\n */\n state?: RadioState;\n /**\n * @deprecated\n * The theme of the radio button that you can send your color to\n */\n theme?: string;\n /**\n * @deprecated set `size` on root RadioGroup instead\n * Radio button size\n */\n size?: RadioSize;\n /**\n * @deprecated set `value` on root Radio instead\n * The element value is required for RadioGroup\n */\n value?: RadioValue;\n /**\n * @deprecated set `defaultValue` on root RadioGroup instead\n * Default value if `value` property is not provided\n */\n defaultValue?: RadioValue;\n /**\n * @deprecated set `onChange` on root RadioGroup instead\n * Called when the value changes\n */\n onChange?: (value: boolean, e?: React.SyntheticEvent<HTMLInputElement>) => void;\n /**\n * @deprecated set `disabled` on root Radio instead\n * Blocks access and changes to the form field\n */\n disabled?: boolean;\n };\n\n/** @deprecated */\nexport interface IRadioCtx extends RadioCtx, UnknownProperties {}\nexport type RadioCtx = {\n getValueProps: PropGetterFn;\n getTextProps: PropGetterFn;\n};\n\ntype IntergalacticRadioGroupComponent<PropsExtending = {}> = (<\n Value extends RadioValue,\n Tag extends Intergalactic.Tag = typeof Flex,\n>(\n props: Intergalactic.InternalTypings.ComponentProps<Tag, typeof Flex, RadioGroupProps<Value>> &\n PropsExtending,\n) => Intergalactic.InternalTypings.ComponentRenderingResults) &\n Intergalactic.InternalTypings.ComponentAdditive<'div', typeof Flex, RadioGroupProps>;\n\nexport type RadioValueControlProps = {};\nexport type RadioValueMarkProps = {};\n\ndeclare const RadioGroup: IntergalacticRadioGroupComponent;\n\nexport { RadioGroup };\n\ndeclare const Radio: Intergalactic.Component<'label', RadioProps, RadioCtx> & {\n Value: Intergalactic.Component<'input', RadioValueProps> & {\n Control: Intergalactic.Component<'input', RadioValueControlProps>;\n RadioMark: Intergalactic.Component<typeof Box, RadioValueMarkProps>;\n };\n Text: typeof Text;\n};\n\ndeclare const wrapRadioGroup: <PropsExtending extends {}>(\n wrapper: (\n props: Intergalactic.InternalTypings.UntypeRefAndTag<\n Intergalactic.InternalTypings.ComponentPropsNesting<IntergalacticRadioGroupComponent>\n > &\n PropsExtending,\n ) => React.ReactNode,\n) => IntergalacticRadioGroupComponent<PropsExtending>;\nexport { wrapRadioGroup };\n\nexport default Radio;\n"],"mappings":""}
package/lib/es6/index.js CHANGED
@@ -1,3 +1,3 @@
1
- export { default, wrapRadioGroup, RadioGroup } from './Radio';
2
- export * from './Radio.type';
1
+ export { default } from './Radio';
2
+ export * from './Radio';
3
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["default","wrapRadioGroup","RadioGroup"],"sources":["../../src/index.ts"],"sourcesContent":["export { default, wrapRadioGroup, RadioGroup } from './Radio';\nexport * from './Radio.type';\n"],"mappings":"AAAA,SAASA,OAAO,EAAEC,cAAc,EAAEC,UAAU,QAAQ,SAAS;AAC7D,cAAc,cAAc","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["default"],"sources":["../../src/index.js"],"sourcesContent":["export { default } from './Radio';\nexport * from './Radio';\n"],"mappings":"AAAA,SAASA,OAAO,QAAQ,SAAS;AACjC,cAAc,SAAS"}
@@ -17,6 +17,16 @@ SRadio[disabled] {
17
17
  pointer-events: none;
18
18
  }
19
19
 
20
+ SText[size='m'] {
21
+ font-size: var(--intergalactic-fs-200, 14px);
22
+ line-height: var(--intergalactic-lh-200, 142%);
23
+ }
24
+
25
+ SText[size='l'] {
26
+ font-size: var(--intergalactic-fs-300, 16px);
27
+ line-height: var(--intergalactic-lh-300, 150%);
28
+ }
29
+
20
30
  SValue {
21
31
  position: relative;
22
32
  flex-shrink: 0;
@@ -94,6 +104,11 @@ SControl {
94
104
  clip: rect(1px, 1px, 1px, 1px);
95
105
  }
96
106
 
107
+ SControl:checked~SValue::before {
108
+ border-color: var(--intergalactic-control-primary-info, oklch(0.23 0.01 140));
109
+ background-color: var(--intergalactic-control-primary-info, oklch(0.23 0.01 140));
110
+ }
111
+
97
112
  SControl:checked~SValue[size='m']::after {
98
113
  width: 6px;
99
114
  height: 6px;
@@ -104,21 +119,13 @@ SControl:checked~SValue[size='l']::after {
104
119
  height: 8px;
105
120
  }
106
121
 
107
- SControl:focus-visible+SValue[state='normal']::before {
108
- border-color: var(--intergalactic-border-info-active, oklch(0.382 0.248 264.2 / 0.386));
109
- @mixin focus-outline-mixin;
110
- }
111
-
112
- SControl:checked~SValue::before,
113
- SControl:checked:focus-visible~SValue::before {
114
- border-color: var(--intergalactic-control-primary-info, oklch(0.23 0.01 140));
115
- background-color: var(--intergalactic-control-primary-info, oklch(0.23 0.01 140));
122
+ SValue[state='normal'][keyboardFocused]::before {
123
+ box-shadow: var(--intergalactic-keyboard-focus, 0px 0px 0px 3px oklch(0.424 0.269 264.2 / 0.469));
124
+ border-color: var(--intergalactic-border-info-active, oklch(0.443 0.273 264.2 / 0.419));
116
125
  }
117
126
 
118
- SControl:focus-visible+SValue[state='invalid']::before {
119
- border-color: var(--intergalactic-border-critical-active, oklch(0.628 0.258 29 / 0.56));
120
- @mixin focus-outline-mixin;
121
- outline-color: var(--intergalactic-keyboard-focus-invalid-outline, oklch(0.628 0.257 28.9 / 0.652));
127
+ SValue[state='invalid'][keyboardFocused]::before {
128
+ box-shadow: var(--intergalactic-keyboard-focus-invalid, 0px 0px 0px 3px oklch(0.628 0.257 28.9 / 0.652));
122
129
  }
123
130
 
124
131
  SControl:checked~SValue[theme]::before {
package/lib/esm/Radio.mjs CHANGED
@@ -1,56 +1,60 @@
1
1
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
2
2
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
3
3
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
4
+ import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized";
4
5
  import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
5
6
  import _createClass from "@babel/runtime/helpers/esm/createClass";
6
- import _callSuper from "@babel/runtime/helpers/esm/callSuper";
7
7
  import _inherits from "@babel/runtime/helpers/esm/inherits";
8
+ import _createSuper from "@babel/runtime/helpers/esm/createSuper";
8
9
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
9
- import { sstyled, assignProps, Component, createComponent } from "@semcore/core";
10
- import { Flex, Box, InvalidStateBox } from "@semcore/base-components";
11
- import { callAllEventHandlers } from "@semcore/core/lib/utils/assignProps";
12
- import resolveColorEnhance from "@semcore/core/lib/utils/enhances/resolveColorEnhance";
13
- import getInputProps, { inputProps } from "@semcore/core/lib/utils/inputProps";
14
- import { inputProps as inputProps2 } from "@semcore/core/lib/utils/inputProps";
15
- import logger from "@semcore/core/lib/utils/logger";
16
- import { useColorResolver } from "@semcore/core/lib/utils/use/useColorResolver";
17
- import { Text as Text$1 } from "@semcore/typography";
10
+ import { sstyled } from "@semcore/utils/lib/core/index";
11
+ import createComponent, { CONTEXT_COMPONENT, assignProps, Component, sstyled as sstyled$1 } from "@semcore/core";
18
12
  import React from "react";
19
- var _excluded = ["size", "state", "theme", "keyboardFocused", "value", "tag", "disabled", "includeInputProps", "resolveColor", "children", "Children"];
13
+ import { Flex, Box, InvalidStateBox } from "@semcore/flex-box";
14
+ import assignProps$1, { callAllEventHandlers } from "@semcore/utils/lib/assignProps";
15
+ import keyboardFocusEnhance from "@semcore/utils/lib/enhances/keyboardFocusEnhance";
16
+ import resolveColorEnhance from "@semcore/utils/lib/enhances/resolveColorEnhance";
17
+ import getInputProps, { inputProps } from "@semcore/utils/lib/inputProps";
18
+ import { inputProps as inputProps2 } from "@semcore/utils/lib/inputProps";
19
+ import { useColorResolver } from "@semcore/utils/lib/use/useColorResolver";
20
+ import logger from "@semcore/utils/lib/logger";
21
+ import { Text as Text$1 } from "@semcore/typography";
22
+ var _excluded = ["size", "state", "theme", "keyboardFocused", "value", "tag", "disabled", "includeInputProps", "resolveColor"], _excluded2 = ["children", "Children"];
20
23
  /*!__reshadow-styles__:"./style/radio.shadow.css"*/
21
24
  var style = (
22
25
  /*__reshadow_css_start__*/
23
26
  (sstyled.insert(
24
27
  /*__inner_css_start__*/
25
- '.___SRadio_dgqi9_gg_{display:inline-flex;align-items:flex-start;cursor:pointer}.___SRadio_dgqi9_gg_ .___SText_dgqi9_gg_{margin-left:var(--intergalactic-spacing-2x, 8px);color:var(--intergalactic-text-primary, rgba(1, 5, 0, 0.899))}.___SRadio_dgqi9_gg_ .___SText_dgqi9_gg_.__color_dgqi9_gg_{color:var(--color_dgqi9)}.___SRadio_dgqi9_gg_.__disabled_dgqi9_gg_{pointer-events:none}.___SValue_dgqi9_gg_{position:relative;flex-shrink:0;padding:0;outline:0;z-index:0;margin-top:var(--intergalactic-spacing-05x, 2px)}.___SValue_dgqi9_gg_::after,.___SValue_dgqi9_gg_::before{content:"";position:absolute;right:0;bottom:0;border-radius:50%;background:var(--intergalactic-bg-primary-neutral, rgb(255, 255, 255))}.___SValue_dgqi9_gg_::before{top:0;left:0;border:1px solid;transition:calc(var(--intergalactic-duration-control, 200)*1ms) all ease-in-out}.___SValue_dgqi9_gg_::after{top:50%;left:50%;transform:translate(-50%,-50%);width:0;height:0}.___SValue_dgqi9_gg_.__disabled_dgqi9_gg_{opacity:var(--intergalactic-disabled-opacity, 0.4);cursor:default;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.___SValue_dgqi9_gg_._size_m_dgqi9_gg_{width:16px;height:16px}.___SValue_dgqi9_gg_._size_m_dgqi9_gg_ .___SInvalidPattern_dgqi9_gg_:before{width:14px;height:14px}.___SValue_dgqi9_gg_._size_l_dgqi9_gg_{width:20px;height:20px}.___SValue_dgqi9_gg_._size_l_dgqi9_gg_ .___SInvalidPattern_dgqi9_gg_:before{width:18px;height:18px}.___SValue_dgqi9_gg_._state_normal_dgqi9_gg_::before{border-color:var(--intergalactic-border-primary, rgba(0, 12, 8, 0.161))}@supports (color:color(display-p3 0 0 0%)){.___SValue_dgqi9_gg_._state_normal_dgqi9_gg_::before{border-color:var(--intergalactic-border-primary, rgba(0, 12, 8, 0.161))}@media (color-gamut:p3){.___SValue_dgqi9_gg_._state_normal_dgqi9_gg_::before{border-color:var(--intergalactic-border-primary, color(display-p3 0.00798 0.04498 0.03219 / 0.161))}}}.___SValue_dgqi9_gg_._state_invalid_dgqi9_gg_::before{border-color:var(--intergalactic-border-critical-active, rgba(255, 0, 4, 0.56))}@supports (color:color(display-p3 0 0 0%)){.___SValue_dgqi9_gg_._state_invalid_dgqi9_gg_::before{border-color:var(--intergalactic-border-critical-active, rgba(255, 0, 4, 0.56))}@media (color-gamut:p3){.___SValue_dgqi9_gg_._state_invalid_dgqi9_gg_::before{border-color:var(--intergalactic-border-critical-active, color(display-p3 0.918 0.19866 0.14259 / 0.56))}}}.___SControl_dgqi9_gg_{position:absolute;clip:rect(1px,1px,1px,1px)}.___SControl_dgqi9_gg_:checked~.___SValue_dgqi9_gg_._size_m_dgqi9_gg_::after{width:6px;height:6px}.___SControl_dgqi9_gg_:checked~.___SValue_dgqi9_gg_._size_l_dgqi9_gg_::after{width:8px;height:8px}.___SControl_dgqi9_gg_:focus-visible+.___SValue_dgqi9_gg_._state_normal_dgqi9_gg_::before{border-color:var(--intergalactic-border-info-active, rgba(0, 22, 195, 0.386));outline-color:var(--intergalactic-keyboard-focus-outline, #008ff8);outline-style:solid;outline-width:2px;outline-offset:2px;transition-duration:calc(var(--intergalactic-duration-extra-fast, 100)*1ms);transition-timing-function:ease-in-out;transition-property:outline-color,outline-width,outline-offset}@supports (color:color(display-p3 0 0 0%)){.___SControl_dgqi9_gg_:focus-visible+.___SValue_dgqi9_gg_._state_normal_dgqi9_gg_::before{border-color:var(--intergalactic-border-info-active, rgba(0, 22, 195, 0.386))}@media (color-gamut:p3){.___SControl_dgqi9_gg_:focus-visible+.___SValue_dgqi9_gg_._state_normal_dgqi9_gg_::before{border-color:var(--intergalactic-border-info-active, color(display-p3 0.01805 0.08334 0.73488 / 0.386))}}}.___SControl_dgqi9_gg_:checked:focus-visible~.___SValue_dgqi9_gg_::before,.___SControl_dgqi9_gg_:checked~.___SValue_dgqi9_gg_::before{border-color:var(--intergalactic-control-primary-info, rgb(26, 30, 26));background-color:var(--intergalactic-control-primary-info, rgb(26, 30, 26))}.___SControl_dgqi9_gg_:focus-visible+.___SValue_dgqi9_gg_._state_invalid_dgqi9_gg_::before{border-color:var(--intergalactic-border-critical-active, rgba(255, 0, 4, 0.56));outline-color:var(--intergalactic-keyboard-focus-outline, #008ff8);outline-style:solid;outline-width:2px;outline-offset:2px;transition-duration:calc(var(--intergalactic-duration-extra-fast, 100)*1ms);transition-timing-function:ease-in-out;transition-property:outline-color,outline-width,outline-offset}@supports (color:color(display-p3 0 0 0%)){.___SControl_dgqi9_gg_:focus-visible+.___SValue_dgqi9_gg_._state_invalid_dgqi9_gg_::before{border-color:var(--intergalactic-border-critical-active, rgba(255, 0, 4, 0.56))}@media (color-gamut:p3){.___SControl_dgqi9_gg_:focus-visible+.___SValue_dgqi9_gg_._state_invalid_dgqi9_gg_::before{border-color:var(--intergalactic-border-critical-active, color(display-p3 0.918 0.19866 0.14259 / 0.56))}}}@supports (color:oklab(0%0 0%)){.___SControl_dgqi9_gg_:focus-visible+.___SValue_dgqi9_gg_._state_invalid_dgqi9_gg_::before{outline-color:var(--intergalactic-keyboard-focus-invalid-outline, oklch(0.628 0.257 28.9 / 0.652))}}.___SControl_dgqi9_gg_:checked~.___SValue_dgqi9_gg_.__theme_dgqi9_gg_::before{border-color:var(--theme_dgqi9);background-color:var(--theme_dgqi9)}.___SValue_dgqi9_gg_._state_normal_dgqi9_gg_.__theme_dgqi9_gg_::before{border-color:var(--theme_dgqi9)}.___SInvalidPattern_dgqi9_gg_{background:0 0;overflow:hidden}.___SInvalidPattern_dgqi9_gg_:before{content:"";position:absolute;top:1px;left:1px;border-radius:50%;background-image:var(--intergalactic-border-critical-pattern, repeating-linear-gradient(315deg, rgba(255, 0, 4, 0.56) 0, rgba(255, 0, 4, 0.56) 1px, transparent 0, transparent 50%));background-size:6px 6px;background-color:var(--intergalactic-bg-primary-neutral, rgb(255, 255, 255))}@supports (color:color(display-p3 0 0 0%)){.___SInvalidPattern_dgqi9_gg_:before{background-image:var(--intergalactic-border-critical-pattern, repeating-linear-gradient(315deg, rgba(255, 0, 4, 0.56) 0, rgba(255, 0, 4, 0.56) 1px, transparent 0, transparent 50%))}@media (color-gamut:p3){.___SInvalidPattern_dgqi9_gg_:before{background-image:var(--intergalactic-border-critical-pattern, repeating-linear-gradient(315deg, color(display-p3 0.918 0.19866 0.14259 / 0.56) 0, color(display-p3 0.918 0.19866 0.14259 / 0.56) 1px, transparent 0, transparent 50%))}}}',
28
+ '.___SRadio_1pp1q_gg_{display:inline-flex;align-items:flex-start;cursor:pointer}.___SRadio_1pp1q_gg_ .___SText_1pp1q_gg_{margin-left:var(--intergalactic-spacing-2x, 8px);color:var(--intergalactic-text-primary, rgba(1, 5, 0, 0.899))}.___SRadio_1pp1q_gg_ .___SText_1pp1q_gg_.__color_1pp1q_gg_{color:var(--color_1pp1q)}.___SRadio_1pp1q_gg_.__disabled_1pp1q_gg_{pointer-events:none}.___SText_1pp1q_gg_._size_m_1pp1q_gg_{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SText_1pp1q_gg_._size_l_1pp1q_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%)}.___SValue_1pp1q_gg_{position:relative;flex-shrink:0;padding:0;outline:0;z-index:0;margin-top:var(--intergalactic-spacing-05x, 2px)}.___SValue_1pp1q_gg_::after,.___SValue_1pp1q_gg_::before{content:"";position:absolute;right:0;bottom:0;border-radius:50%;background:var(--intergalactic-bg-primary-neutral, rgb(255, 255, 255))}.___SValue_1pp1q_gg_::before{top:0;left:0;border:1px solid;transition:calc(var(--intergalactic-duration-control, 200)*1ms) all ease-in-out}.___SValue_1pp1q_gg_::after{top:50%;left:50%;transform:translate(-50%,-50%);width:0;height:0}.___SValue_1pp1q_gg_.__disabled_1pp1q_gg_{opacity:var(--intergalactic-disabled-opacity, 0.4);cursor:default;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.___SValue_1pp1q_gg_._size_m_1pp1q_gg_{width:16px;height:16px}.___SValue_1pp1q_gg_._size_m_1pp1q_gg_ .___SInvalidPattern_1pp1q_gg_:before{width:14px;height:14px}.___SValue_1pp1q_gg_._size_l_1pp1q_gg_{width:20px;height:20px}.___SValue_1pp1q_gg_._size_l_1pp1q_gg_ .___SInvalidPattern_1pp1q_gg_:before{width:18px;height:18px}.___SValue_1pp1q_gg_._state_normal_1pp1q_gg_::before{border-color:var(--intergalactic-border-primary, rgba(0, 12, 8, 0.161))}@supports (color:color(display-p3 0 0 0)){.___SValue_1pp1q_gg_._state_normal_1pp1q_gg_::before{border-color:var(--intergalactic-border-primary, rgba(0, 12, 8, 0.161))}@media (color-gamut:p3){.___SValue_1pp1q_gg_._state_normal_1pp1q_gg_::before{border-color:var(--intergalactic-border-primary, color(display-p3 0.00798 0.04498 0.03219 / 0.161))}}}.___SValue_1pp1q_gg_._state_invalid_1pp1q_gg_::before{border-color:var(--intergalactic-border-critical-active, rgba(255, 0, 4, 0.56))}@supports (color:color(display-p3 0 0 0)){.___SValue_1pp1q_gg_._state_invalid_1pp1q_gg_::before{border-color:var(--intergalactic-border-critical-active, rgba(255, 0, 4, 0.56))}@media (color-gamut:p3){.___SValue_1pp1q_gg_._state_invalid_1pp1q_gg_::before{border-color:var(--intergalactic-border-critical-active, color(display-p3 0.918 0.19866 0.14259 / 0.56))}}}.___SControl_1pp1q_gg_{position:absolute;clip:rect(1px,1px,1px,1px)}.___SControl_1pp1q_gg_:checked~.___SValue_1pp1q_gg_::before{border-color:var(--intergalactic-control-primary-info, rgb(26, 30, 26));background-color:var(--intergalactic-control-primary-info, rgb(26, 30, 26))}.___SControl_1pp1q_gg_:checked~.___SValue_1pp1q_gg_._size_m_1pp1q_gg_::after{width:6px;height:6px}.___SControl_1pp1q_gg_:checked~.___SValue_1pp1q_gg_._size_l_1pp1q_gg_::after{width:8px;height:8px}.___SValue_1pp1q_gg_._state_normal_1pp1q_gg_.__keyboardFocused_1pp1q_gg_::before{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 33, 220, 0.469));border-color:var(--intergalactic-border-info-active, rgba(0, 40, 230, 0.419))}@supports (color:color(display-p3 0 0 0)){.___SValue_1pp1q_gg_._state_normal_1pp1q_gg_.__keyboardFocused_1pp1q_gg_::before{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 33, 220, 0.469))}@media (color-gamut:p3){.___SValue_1pp1q_gg_._state_normal_1pp1q_gg_.__keyboardFocused_1pp1q_gg_::before{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px color(display-p3 0.03256 0.12227 0.83249 / 0.469))}}}.___SValue_1pp1q_gg_._state_invalid_1pp1q_gg_.__keyboardFocused_1pp1q_gg_::before{box-shadow:var(--intergalactic-keyboard-focus-invalid, 0px 0px 0px 3px rgba(255, 2, 7, 0.652))}.___SControl_1pp1q_gg_:checked~.___SValue_1pp1q_gg_.__theme_1pp1q_gg_::before{border-color:var(--theme_1pp1q);background-color:var(--theme_1pp1q)}.___SValue_1pp1q_gg_._state_normal_1pp1q_gg_.__theme_1pp1q_gg_::before{border-color:var(--theme_1pp1q)}.___SInvalidPattern_1pp1q_gg_{background:0 0;overflow:hidden}.___SInvalidPattern_1pp1q_gg_:before{content:"";position:absolute;top:1px;left:1px;border-radius:50%;background-image:var(--intergalactic-border-critical-pattern, repeating-linear-gradient(315deg, rgba(255, 0, 4, 0.56) 0, rgba(255, 0, 4, 0.56) 1px, transparent 0, transparent 50%));background-size:6px 6px;background-color:var(--intergalactic-bg-primary-neutral, rgb(255, 255, 255))}@supports (color:color(display-p3 0 0 0)){.___SInvalidPattern_1pp1q_gg_:before{background-image:var(--intergalactic-border-critical-pattern, repeating-linear-gradient(315deg, rgba(255, 0, 4, 0.56) 0, rgba(255, 0, 4, 0.56) 1px, transparent 0, transparent 50%))}@media (color-gamut:p3){.___SInvalidPattern_1pp1q_gg_:before{background-image:var(--intergalactic-border-critical-pattern, repeating-linear-gradient(315deg, color(display-p3 0.918 0.19866 0.14259 / 0.56) 0, color(display-p3 0.918 0.19866 0.14259 / 0.56) 1px, transparent 0, transparent 50%))}}}',
26
29
  /*__inner_css_end__*/
27
- "dgqi9_gg_"
30
+ "1pp1q_gg_"
28
31
  ), /*__reshadow_css_end__*/
29
32
  {
30
- "__SRadio": "___SRadio_dgqi9_gg_",
31
- "_disabled": "__disabled_dgqi9_gg_",
32
- "__SValue": "___SValue_dgqi9_gg_",
33
- "_state_normal": "_state_normal_dgqi9_gg_",
34
- "_state_invalid": "_state_invalid_dgqi9_gg_",
35
- "__SControl": "___SControl_dgqi9_gg_",
36
- "_size_m": "_size_m_dgqi9_gg_",
37
- "_size_l": "_size_l_dgqi9_gg_",
38
- "_theme": "__theme_dgqi9_gg_",
39
- "--theme": "--theme_dgqi9",
40
- "__SText": "___SText_dgqi9_gg_",
41
- "_color": "__color_dgqi9_gg_",
42
- "--color": "--color_dgqi9",
43
- "__SInvalidPattern": "___SInvalidPattern_dgqi9_gg_"
33
+ "__SRadio": "___SRadio_1pp1q_gg_",
34
+ "_disabled": "__disabled_1pp1q_gg_",
35
+ "__SText": "___SText_1pp1q_gg_",
36
+ "_size_m": "_size_m_1pp1q_gg_",
37
+ "_size_l": "_size_l_1pp1q_gg_",
38
+ "__SValue": "___SValue_1pp1q_gg_",
39
+ "_state_normal": "_state_normal_1pp1q_gg_",
40
+ "_state_invalid": "_state_invalid_1pp1q_gg_",
41
+ "__SControl": "___SControl_1pp1q_gg_",
42
+ "_keyboardFocused": "__keyboardFocused_1pp1q_gg_",
43
+ "_theme": "__theme_1pp1q_gg_",
44
+ "--theme": "--theme_1pp1q",
45
+ "_color": "__color_1pp1q_gg_",
46
+ "--color": "--color_1pp1q",
47
+ "__SInvalidPattern": "___SInvalidPattern_1pp1q_gg_"
44
48
  })
45
49
  );
46
- var RadioContext = /* @__PURE__ */ React.createContext({});
47
- var RadioGroupRoot = /* @__PURE__ */ (function(_Component) {
50
+ var RadioGroupRoot = /* @__PURE__ */ function(_Component) {
51
+ _inherits(RadioGroupRoot2, _Component);
52
+ var _super = _createSuper(RadioGroupRoot2);
48
53
  function RadioGroupRoot2() {
49
54
  _classCallCheck(this, RadioGroupRoot2);
50
- return _callSuper(this, RadioGroupRoot2, arguments);
55
+ return _super.apply(this, arguments);
51
56
  }
52
- _inherits(RadioGroupRoot2, _Component);
53
- return _createClass(RadioGroupRoot2, [{
57
+ _createClass(RadioGroupRoot2, [{
54
58
  key: "uncontrolledProps",
55
59
  value: function uncontrolledProps() {
56
60
  return {
@@ -82,27 +86,27 @@ var RadioGroupRoot = /* @__PURE__ */ (function(_Component) {
82
86
  }, _ref), /* @__PURE__ */ React.createElement(Children, null));
83
87
  }
84
88
  }]);
85
- })(Component);
89
+ return RadioGroupRoot2;
90
+ }(Component);
86
91
  _defineProperty(RadioGroupRoot, "displayName", "RadioGroup");
87
92
  _defineProperty(RadioGroupRoot, "defaultProps", {
88
93
  defaultValue: null
89
94
  });
90
- var RadioGroup = createComponent(RadioGroupRoot, {}, {
91
- context: RadioContext
92
- });
93
- var RadioRoot = /* @__PURE__ */ (function(_Component2) {
95
+ var RadioGroup = createComponent(RadioGroupRoot);
96
+ var RadioRoot = /* @__PURE__ */ function(_Component2) {
97
+ _inherits(RadioRoot2, _Component2);
98
+ var _super2 = _createSuper(RadioRoot2);
94
99
  function RadioRoot2() {
95
100
  var _this;
96
101
  _classCallCheck(this, RadioRoot2);
97
102
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
98
103
  args[_key] = arguments[_key];
99
104
  }
100
- _this = _callSuper(this, RadioRoot2, [].concat(args));
101
- _defineProperty(_this, "context", {});
102
- _defineProperty(_this, "state", {
105
+ _this = _super2.call.apply(_super2, [this].concat(args));
106
+ _defineProperty(_assertThisInitialized(_this), "state", {
103
107
  hoistedDisabled: void 0
104
108
  });
105
- _defineProperty(_this, "hoistDisabled", function(disabled) {
109
+ _defineProperty(_assertThisInitialized(_this), "hoistDisabled", function(disabled) {
106
110
  logger.warn(true, "Don't set disabled on Radio.Value or Radio.Text, set it on Radio or on RadioGroup (for all items) instead. Otherwise it will produce wrong SSR output.", _this.asProps["data-ui-name"]);
107
111
  _this.setState({
108
112
  hoistedDisabled: disabled
@@ -110,15 +114,13 @@ var RadioRoot = /* @__PURE__ */ (function(_Component2) {
110
114
  });
111
115
  return _this;
112
116
  }
113
- _inherits(RadioRoot2, _Component2);
114
- return _createClass(RadioRoot2, [{
117
+ _createClass(RadioRoot2, [{
115
118
  key: "getTextProps",
116
119
  value: function getTextProps() {
117
- var _this$context$size;
118
- var _this$asProps2 = this.asProps, _this$asProps2$size = _this$asProps2.size, size = _this$asProps2$size === void 0 ? (_this$context$size = this.context.size) !== null && _this$context$size !== void 0 ? _this$context$size : "m" : _this$asProps2$size, _this$asProps2$disabl = _this$asProps2.disabled, disabled = _this$asProps2$disabl === void 0 ? this.context.disabled : _this$asProps2$disabl, label = _this$asProps2.label;
120
+ var _assignProps6 = assignProps$1(this.asProps, this.context), _assignProps6$size = _assignProps6.size, size = _assignProps6$size === void 0 ? "m" : _assignProps6$size, disabled = _assignProps6.disabled, label = _assignProps6.label;
119
121
  var hoistedDisabled = this.state.hoistedDisabled;
120
122
  var textProps = {
121
- size: size === "m" ? 200 : 300,
123
+ size,
122
124
  children: label,
123
125
  disabled: disabled !== null && disabled !== void 0 ? disabled : hoistedDisabled,
124
126
  hoistDisabled: this.hoistDisabled,
@@ -129,9 +131,9 @@ var RadioRoot = /* @__PURE__ */ (function(_Component2) {
129
131
  }, {
130
132
  key: "getValueProps",
131
133
  value: function getValueProps() {
132
- var _this$context$size2, _this$props$size;
133
- var _this$asProps3 = this.asProps, _this$asProps3$state = _this$asProps3.state, state = _this$asProps3$state === void 0 ? "normal" : _this$asProps3$state, _this$asProps3$size = _this$asProps3.size, size = _this$asProps3$size === void 0 ? (_this$context$size2 = this.context.size) !== null && _this$context$size2 !== void 0 ? _this$context$size2 : "m" : _this$asProps3$size, _this$asProps3$theme = _this$asProps3.theme, theme = _this$asProps3$theme === void 0 ? this.context.theme : _this$asProps3$theme, _this$asProps3$disabl = _this$asProps3.disabled, disabled = _this$asProps3$disabl === void 0 ? this.context.disabled : _this$asProps3$disabl, _this$asProps3$name = _this$asProps3.name, name = _this$asProps3$name === void 0 ? this.context.name : _this$asProps3$name;
134
- var _this$asProps4 = this.asProps, value = _this$asProps4.value, checked = _this$asProps4.checked;
134
+ var _this$props$size;
135
+ var _assignProps7 = assignProps$1(this.asProps, this.context), _assignProps7$size = _assignProps7.size, size = _assignProps7$size === void 0 ? "m" : _assignProps7$size, _assignProps7$state = _assignProps7.state, state = _assignProps7$state === void 0 ? "normal" : _assignProps7$state, theme = _assignProps7.theme, disabled = _assignProps7.disabled, name = _assignProps7.name;
136
+ var _this$asProps2 = this.asProps, value = _this$asProps2.value, checked = _this$asProps2.checked;
135
137
  var hoistedDisabled = this.state.hoistedDisabled;
136
138
  return {
137
139
  size: (_this$props$size = this.props.size) !== null && _this$props$size !== void 0 ? _this$props$size : size,
@@ -150,37 +152,38 @@ var RadioRoot = /* @__PURE__ */ (function(_Component2) {
150
152
  value: function render() {
151
153
  var _ref2 = this.asProps, _ref6;
152
154
  var SRadio = Box;
153
- var _this$asProps5 = this.asProps, styles = _this$asProps5.styles, Children = _this$asProps5.Children, hasChildren = _this$asProps5.children;
154
- return _ref6 = sstyled(styles), /* @__PURE__ */ React.createElement(SRadio, _ref6.cn("SRadio", _objectSpread({}, assignProps({
155
+ var _this$asProps3 = this.asProps, styles = _this$asProps3.styles, Children = _this$asProps3.Children, hasChildren = _this$asProps3.children;
156
+ return _ref6 = sstyled$1(styles), /* @__PURE__ */ React.createElement(SRadio, _ref6.cn("SRadio", _objectSpread({}, assignProps({
155
157
  "tag": "label",
156
158
  "__excludeProps": ["onChange", "label", "disabled"]
157
159
  }, _ref2))), hasChildren ? /* @__PURE__ */ React.createElement(Children, _ref6.cn("Children", {})) : /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Radio.Value, null), /* @__PURE__ */ React.createElement(Radio.Text, null)));
158
160
  }
159
161
  }]);
160
- })(Component);
162
+ return RadioRoot2;
163
+ }(Component);
161
164
  _defineProperty(RadioRoot, "displayName", "Radio");
162
165
  _defineProperty(RadioRoot, "style", style);
163
- _defineProperty(RadioRoot, "contextType", RadioContext);
164
- var ValueRoot = /* @__PURE__ */ (function(_Component3) {
166
+ _defineProperty(RadioRoot, "contextType", RadioGroup[CONTEXT_COMPONENT]);
167
+ var ValueRoot = /* @__PURE__ */ function(_Component3) {
168
+ _inherits(ValueRoot2, _Component3);
169
+ var _super3 = _createSuper(ValueRoot2);
165
170
  function ValueRoot2() {
166
171
  var _this2;
167
172
  _classCallCheck(this, ValueRoot2);
168
173
  for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
169
174
  args[_key2] = arguments[_key2];
170
175
  }
171
- _this2 = _callSuper(this, ValueRoot2, [].concat(args));
172
- _defineProperty(_this2, "context", {});
173
- _defineProperty(_this2, "bindHandlerChange", function(value) {
176
+ _this2 = _super3.call.apply(_super3, [this].concat(args));
177
+ _defineProperty(_assertThisInitialized(_this2), "bindHandlerChange", function(value) {
174
178
  return function(e) {
175
- if (typeof _this2.context.onChange === "function" && value !== void 0) {
179
+ if (typeof _this2.context.onChange === "function") {
176
180
  _this2.context.onChange(value, e);
177
181
  }
178
182
  };
179
183
  });
180
184
  return _this2;
181
185
  }
182
- _inherits(ValueRoot2, _Component3);
183
- return _createClass(ValueRoot2, [{
186
+ _createClass(ValueRoot2, [{
184
187
  key: "uncontrolledProps",
185
188
  value: function uncontrolledProps() {
186
189
  return {
@@ -193,29 +196,34 @@ var ValueRoot = /* @__PURE__ */ (function(_Component3) {
193
196
  key: "getControlProps",
194
197
  value: function getControlProps() {
195
198
  var currentValue = this.context.value;
196
- var _this$asProps6 = this.asProps, forwardRef = _this$asProps6.forwardRef, includeInputProps = _this$asProps6.includeInputProps, state = _this$asProps6.state, value = _this$asProps6.value;
197
- var onChange = this.props.onChange;
199
+ var _this$asProps4 = this.asProps, forwardRef = _this$asProps4.forwardRef, includeInputProps = _this$asProps4.includeInputProps, state = _this$asProps4.state, value = _this$asProps4.value;
198
200
  var _getInputProps = getInputProps(this.asProps, includeInputProps), _getInputProps2 = _slicedToArray(_getInputProps, 1), commonControlProps = _getInputProps2[0];
199
201
  var inputValue = value !== null && value !== void 0 ? value : "";
200
- return _objectSpread(_objectSpread({
202
+ var controlProps = _objectSpread(_objectSpread({
201
203
  ref: forwardRef,
202
204
  state
203
205
  }, commonControlProps), {}, {
204
206
  value: inputValue
205
- }, currentValue !== void 0 ? {
206
- checked: currentValue === inputValue,
207
- onChange: callAllEventHandlers(onChange, this.bindHandlerChange(inputValue))
208
- } : {});
207
+ });
208
+ if (currentValue !== void 0) {
209
+ var _this$props = this.props, onChange = _this$props.onChange;
210
+ _this$props.onClick;
211
+ controlProps.checked = currentValue === inputValue;
212
+ controlProps.onChange = callAllEventHandlers(onChange, this.bindHandlerChange(inputValue));
213
+ }
214
+ return controlProps;
209
215
  }
210
216
  }, {
211
217
  key: "getRadioMarkProps",
212
218
  value: function getRadioMarkProps() {
213
219
  var currentValue = this.context.value;
214
- var _this$asProps7 = this.asProps, size = _this$asProps7.size, state = _this$asProps7.state, theme = _this$asProps7.theme, keyboardFocused = _this$asProps7.keyboardFocused, value = _this$asProps7.value, tag = _this$asProps7.tag, disabled = _this$asProps7.disabled, includeInputProps = _this$asProps7.includeInputProps, resolveColor = _this$asProps7.resolveColor, children = _this$asProps7.children, Children = _this$asProps7.Children, other = _objectWithoutProperties(_this$asProps7, _excluded);
215
- var onClick = this.props.onClick;
220
+ var _this$asProps5 = this.asProps, size = _this$asProps5.size, state = _this$asProps5.state, theme = _this$asProps5.theme, keyboardFocused = _this$asProps5.keyboardFocused, value = _this$asProps5.value, tag = _this$asProps5.tag, disabled = _this$asProps5.disabled, includeInputProps = _this$asProps5.includeInputProps, resolveColor = _this$asProps5.resolveColor, other = _objectWithoutProperties(_this$asProps5, _excluded);
216
221
  var _getInputProps3 = getInputProps(other, includeInputProps), _getInputProps4 = _slicedToArray(_getInputProps3, 2), commonControlProps = _getInputProps4[0], radioMarkProps = _getInputProps4[1];
222
+ radioMarkProps.children;
223
+ radioMarkProps.Children;
224
+ var propsWithoutChildren = _objectWithoutProperties(radioMarkProps, _excluded2);
217
225
  var inputValue = value !== null && value !== void 0 ? value : "";
218
- return _objectSpread(_objectSpread({
226
+ var markProps = _objectSpread({
219
227
  theme,
220
228
  size,
221
229
  state,
@@ -223,9 +231,14 @@ var ValueRoot = /* @__PURE__ */ (function(_Component3) {
223
231
  disabled,
224
232
  resolveColor,
225
233
  checked: commonControlProps.checked
226
- }, radioMarkProps), currentValue !== void 0 && tag !== "label" ? {
227
- onClick: callAllEventHandlers(onClick, this.bindHandlerChange(inputValue))
228
- } : {});
234
+ }, propsWithoutChildren);
235
+ if (currentValue !== void 0) {
236
+ var onClick = this.props.onClick;
237
+ if (tag !== "label") {
238
+ markProps.onClick = callAllEventHandlers(onClick, this.bindHandlerChange(inputValue));
239
+ }
240
+ }
241
+ return markProps;
229
242
  }
230
243
  }, {
231
244
  key: "componentDidUpdate",
@@ -245,48 +258,48 @@ var ValueRoot = /* @__PURE__ */ (function(_Component3) {
245
258
  key: "render",
246
259
  value: function render() {
247
260
  var _ref8;
248
- var _this$asProps8 = this.asProps, styles = _this$asProps8.styles, hasChildren = _this$asProps8.children, Children = _this$asProps8.Children;
261
+ var _this$asProps6 = this.asProps, styles = _this$asProps6.styles, hasChildren = _this$asProps6.children, Children = _this$asProps6.Children;
249
262
  if (!hasChildren) {
250
- var _ref7;
251
- return _ref7 = sstyled(styles), /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Radio.Value.Control, null), /* @__PURE__ */ React.createElement(Radio.Value.RadioMark, null));
263
+ return sstyled$1(styles), /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Radio.Value.Control, null), /* @__PURE__ */ React.createElement(Radio.Value.RadioMark, null));
252
264
  }
253
- return _ref8 = sstyled(styles), /* @__PURE__ */ React.createElement(Children, _ref8.cn("Children", {}));
265
+ return _ref8 = sstyled$1(styles), /* @__PURE__ */ React.createElement(Children, _ref8.cn("Children", {}));
254
266
  }
255
267
  }]);
256
- })(Component);
268
+ return ValueRoot2;
269
+ }(Component);
257
270
  _defineProperty(ValueRoot, "defaultProps", {
258
271
  includeInputProps: inputProps,
259
272
  defaultChecked: false
260
273
  });
261
- _defineProperty(ValueRoot, "enhance", [resolveColorEnhance()]);
274
+ _defineProperty(ValueRoot, "enhance", [keyboardFocusEnhance(), resolveColorEnhance()]);
262
275
  _defineProperty(ValueRoot, "displayName", "Value");
263
- _defineProperty(ValueRoot, "contextType", RadioContext);
276
+ _defineProperty(ValueRoot, "contextType", RadioGroup[CONTEXT_COMPONENT]);
264
277
  _defineProperty(ValueRoot, "style", style);
265
- function Control(props) {
278
+ var Control = function Control2(props) {
266
279
  var _ref3 = arguments[0], _ref9;
267
280
  var SControl = Box;
268
281
  var styles = props.styles, state = props.state;
269
- return _ref9 = sstyled(styles), /* @__PURE__ */ React.createElement(SControl, _ref9.cn("SControl", _objectSpread({}, assignProps({
282
+ return _ref9 = sstyled$1(styles), /* @__PURE__ */ React.createElement(SControl, _ref9.cn("SControl", _objectSpread({}, assignProps({
270
283
  "tag": "input",
271
284
  "type": "radio",
272
285
  "aria-invalid": state === "invalid"
273
286
  }, _ref3))));
274
- }
287
+ };
275
288
  Control.displayName = "Control";
276
- function RadioMark(props) {
277
- var _ref4 = arguments[0], _ref0;
289
+ var RadioMark = function RadioMark2(props) {
290
+ var _ref4 = arguments[0], _ref10;
278
291
  var SValue = Box;
279
292
  var SInvalidPattern = InvalidStateBox;
280
293
  var theme = props.theme, styles = props.styles, resolveColor = props.resolveColor, state = props.state, checked = props.checked;
281
- return _ref0 = sstyled(styles), /* @__PURE__ */ React.createElement(SValue, _ref0.cn("SValue", _objectSpread({}, assignProps({
294
+ return _ref10 = sstyled$1(styles), /* @__PURE__ */ React.createElement(SValue, _ref10.cn("SValue", _objectSpread({}, assignProps({
282
295
  "tag": "div",
283
296
  "use:theme": resolveColor(theme),
284
297
  "aria-hidden": true
285
- }, _ref4))), state === "invalid" && !checked && /* @__PURE__ */ React.createElement(SInvalidPattern, _ref0.cn("SInvalidPattern", {})));
286
- }
298
+ }, _ref4))), state === "invalid" && !checked && /* @__PURE__ */ React.createElement(SInvalidPattern, _ref10.cn("SInvalidPattern", {})));
299
+ };
287
300
  RadioMark.displayName = "RadioMark";
288
- function Text(props) {
289
- var _ref5 = arguments[0], _ref1;
301
+ var Text = function Text2(props) {
302
+ var _ref5 = arguments[0], _ref11;
290
303
  var SText = Text$1;
291
304
  var styles = props.styles, color = props.color;
292
305
  React.useEffect(function() {
@@ -295,11 +308,11 @@ function Text(props) {
295
308
  }
296
309
  }, [props.rootDisabled, props.disabled, props.hoistDisabled]);
297
310
  var resolveColor = useColorResolver();
298
- return _ref1 = sstyled(styles), /* @__PURE__ */ React.createElement(SText, _ref1.cn("SText", _objectSpread({}, assignProps({
311
+ return _ref11 = sstyled$1(styles), /* @__PURE__ */ React.createElement(SText, _ref11.cn("SText", _objectSpread({}, assignProps({
299
312
  "tag": "span",
300
313
  "use:color": resolveColor(color)
301
314
  }, _ref5))));
302
- }
315
+ };
303
316
  Text.displayName = "Text";
304
317
  var Value = createComponent(ValueRoot, {
305
318
  Control,
package/lib/esm/index.mjs CHANGED
@@ -1,7 +1,8 @@
1
1
  import { RadioGroup, default as default2, wrapRadioGroup } from "./Radio.mjs";
2
- import "./Radio.type.mjs";
2
+ import { inputProps } from "@semcore/utils/lib/inputProps";
3
3
  export {
4
4
  RadioGroup,
5
5
  default2 as default,
6
+ inputProps,
6
7
  wrapRadioGroup
7
8
  };