@audira/carbon-react-native 1.0.0-beta.4 → 1.0.0-beta.6
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/lib/commonjs/_internal/contexts/button-group/ButtonGroupContext.js +1 -1
- package/lib/commonjs/_internal/contexts/global-config/GlobalConfigContext.js +1 -1
- package/lib/commonjs/_internal/contexts/modal/ModalContext.js +1 -1
- package/lib/commonjs/_internal/style-sheets/common-style-sheet.js +6 -6
- package/lib/commonjs/_internal/style-sheets/flex-style-sheet.js +23 -23
- package/lib/commonjs/_internal/style-sheets/text-style-sheet.js +14 -14
- package/lib/commonjs/carbon-react-native/CarbonReactNative.js +1 -1
- package/lib/commonjs/carbon-style-sheet/breakpoint.js +5 -5
- package/lib/commonjs/carbon-style-sheet/create.js +5 -5
- package/lib/commonjs/components/accordion/Accordion.js +6 -6
- package/lib/commonjs/components/accordion/_Header.js +7 -7
- package/lib/commonjs/components/accordion/_Item.js +3 -3
- package/lib/commonjs/components/accordion/_chevron/Chevron.js +1 -1
- package/lib/commonjs/components/accordion/_styles.js +1 -1
- package/lib/commonjs/components/button/base/Base.js +16 -16
- package/lib/commonjs/components/button/base-color/BaseColor.js +5 -5
- package/lib/commonjs/components/button/ghost/Ghost.js +2 -2
- package/lib/commonjs/components/button/ghost-danger/GhostDanger.js +1 -1
- package/lib/commonjs/components/button/ghost-icon/GhostIcon.js +3 -3
- package/lib/commonjs/components/button/tertiary/Tertiary.js +2 -2
- package/lib/commonjs/components/button/tertiary-danger/TertiaryDanger.js +3 -3
- package/lib/commonjs/components/button-group/ButtonGroup.js +4 -4
- package/lib/commonjs/components/checkbox/Checkbox.js +7 -7
- package/lib/commonjs/components/checkbox-group/CheckboxGroup.js +6 -6
- package/lib/commonjs/components/checkbox-input/CheckboxInput.js +11 -11
- package/lib/commonjs/components/checkbox-input/CheckboxInput.js.map +1 -1
- package/lib/commonjs/components/collapsible/Collapsible.js +7 -7
- package/lib/commonjs/components/form-helper-text/FormHelperText.js +2 -2
- package/lib/commonjs/components/form-label/FormLabel.js +2 -2
- package/lib/commonjs/components/icon/Icon.js +5 -5
- package/lib/commonjs/components/icon/Icon.js.map +1 -1
- package/lib/commonjs/components/inline-loading/InlineLoading.js +6 -6
- package/lib/commonjs/components/loading/Loading.js +2 -2
- package/lib/commonjs/components/loading/_circular-progress/CircularProgress.js +3 -3
- package/lib/commonjs/components/modal/Modal.js +39 -39
- package/lib/commonjs/components/modal-content/ModalContent.js +11 -11
- package/lib/commonjs/components/notification/_status-hooks/_base/useBase.js +3 -3
- package/lib/commonjs/components/notification/_variant-context.js +1 -1
- package/lib/commonjs/components/notification/_variants/_ButtonGhost.js +3 -3
- package/lib/commonjs/components/notification/_variants/_ButtonTertiary.js +3 -3
- package/lib/commonjs/components/notification/_variants/actionable/ActionableVariant.js +1 -1
- package/lib/commonjs/components/notification/_variants/actionable-inline/ActionableInlineVariant.js +1 -1
- package/lib/commonjs/components/notification/_variants/callout/CalloutVariant.js +1 -1
- package/lib/commonjs/components/notification/_variants/callout-inline/CalloutInlineVariant.js +1 -1
- package/lib/commonjs/components/notification/_variants/toast/ToastVariant.js +5 -5
- package/lib/commonjs/components/notification/base/Base.js +12 -12
- package/lib/commonjs/components/radio-button/RadioButton.js +7 -7
- package/lib/commonjs/components/radio-button-group/RadioButtonGroup.js +10 -10
- package/lib/commonjs/components/radio-button-group/_Item.js +1 -1
- package/lib/commonjs/components/radio-button-input/RadioButtonInput.js +8 -8
- package/lib/commonjs/components/radio-button-input/RadioButtonInput.js.map +1 -1
- package/lib/commonjs/components/switch/Switch.js +11 -11
- package/lib/commonjs/components/switch/Switch.js.map +1 -1
- package/lib/commonjs/components/text/Text.js +4 -1
- package/lib/commonjs/components/text/Text.js.map +1 -1
- package/lib/commonjs/components/text-area/TextArea.js +2 -2
- package/lib/commonjs/components/text-area-field/TextAreaField.js +3 -3
- package/lib/commonjs/components/text-area-fluid/TextAreaFluid.js +3 -3
- package/lib/commonjs/components/text-input/TextInput.js +3 -3
- package/lib/commonjs/components/text-input-field/TextInputField.js +10 -10
- package/lib/commonjs/components/text-input-field/_rn-text-input/RNTextInput.js +8 -8
- package/lib/commonjs/components/text-input-fluid/TextInputFluid.js +3 -3
- package/lib/commonjs/components/toggle/base/Base.js +9 -9
- package/lib/commonjs/components/toggle/default/Default.js +1 -1
- package/lib/commonjs/components/toggle/small/Small.js +1 -1
- package/lib/commonjs/contexts/breakpoint/BreakpointContext.js +1 -1
- package/lib/commonjs/contexts/dialog/DialogContext.js +1 -1
- package/lib/commonjs/contexts/toast/ToastContext.js +2 -2
- package/lib/commonjs/helpers/breakpoint/get-token.js +1 -1
- package/lib/commonjs/helpers/color/get-color-scheme.js +3 -3
- package/lib/commonjs/helpers/color/get-color-token.js +2 -2
- package/lib/commonjs/providers/dialog/_controller/Controller.js +1 -1
- package/lib/commonjs/providers/dialog/_controller/_overlay/Overlay.js +2 -2
- package/lib/commonjs/providers/toast/_overlay/Overlay.js +2 -3
- package/lib/commonjs/providers/toast/_overlay/Overlay.js.map +1 -1
- package/lib/commonjs/providers/toast/_overlay/_component-wrapper/ComponentWrapper.js +4 -4
- package/lib/module/_internal/contexts/button-group/ButtonGroupContext.js +2 -2
- package/lib/module/_internal/contexts/global-config/GlobalConfigContext.js +2 -2
- package/lib/module/_internal/contexts/modal/ModalContext.js +2 -2
- package/lib/module/_internal/providers/breakpoint/BreakpointProvider.js +1 -1
- package/lib/module/_internal/providers/theme/ThemeProvider.js +1 -1
- package/lib/module/_internal/style-sheets/common-style-sheet.js +7 -7
- package/lib/module/_internal/style-sheets/flex-style-sheet.js +24 -24
- package/lib/module/_internal/style-sheets/text-style-sheet.js +15 -15
- package/lib/module/carbon-react-native/CarbonReactNative.js +1 -1
- package/lib/module/carbon-style-sheet/breakpoint.js +5 -5
- package/lib/module/carbon-style-sheet/color.js +1 -1
- package/lib/module/carbon-style-sheet/create.js +7 -7
- package/lib/module/carbon-style-sheet/index.js +1 -1
- package/lib/module/carbon-style-sheet/use.js +1 -1
- package/lib/module/components/accordion/Accordion.js +8 -8
- package/lib/module/components/accordion/_Header.js +10 -10
- package/lib/module/components/accordion/_HeaderBorder.js +3 -3
- package/lib/module/components/accordion/_Item.js +6 -6
- package/lib/module/components/accordion/_chevron/Chevron.js +4 -4
- package/lib/module/components/accordion/_context.js +1 -1
- package/lib/module/components/accordion/_motion.js +2 -2
- package/lib/module/components/accordion/_styles.js +3 -3
- package/lib/module/components/button/base/Base.js +19 -19
- package/lib/module/components/button/base-color/BaseColor.js +8 -8
- package/lib/module/components/button/ghost/Ghost.js +5 -5
- package/lib/module/components/button/ghost-danger/GhostDanger.js +4 -4
- package/lib/module/components/button/ghost-icon/GhostIcon.js +6 -6
- package/lib/module/components/button/primary/Primary.js +2 -2
- package/lib/module/components/button/primary-danger/PrimaryDanger.js +2 -2
- package/lib/module/components/button/secondary/Secondary.js +2 -2
- package/lib/module/components/button/tertiary/Tertiary.js +5 -5
- package/lib/module/components/button/tertiary-danger/TertiaryDanger.js +6 -6
- package/lib/module/components/button-group/ButtonGroup.js +7 -7
- package/lib/module/components/checkbox/Checkbox.js +10 -10
- package/lib/module/components/checkbox-group/CheckboxGroup.js +11 -11
- package/lib/module/components/checkbox-input/CheckboxInput.js +16 -16
- package/lib/module/components/checkbox-input/CheckboxInput.js.map +1 -1
- package/lib/module/components/collapsible/Collapsible.js +10 -10
- package/lib/module/components/form-helper-text/FormHelperText.js +4 -4
- package/lib/module/components/form-label/FormLabel.js +4 -4
- package/lib/module/components/icon/Icon.js +8 -8
- package/lib/module/components/icon/Icon.js.map +1 -1
- package/lib/module/components/inline-loading/InlineLoading.js +11 -11
- package/lib/module/components/layer/Layer.js +3 -3
- package/lib/module/components/layer/LayerContext.js +1 -1
- package/lib/module/components/loading/Loading.js +5 -5
- package/lib/module/components/loading/_circular-progress/CircularProgress.js +5 -5
- package/lib/module/components/loading/_map-circle-background-color.js +1 -1
- package/lib/module/components/loading/_map-circle-stroke-color.js +1 -1
- package/lib/module/components/modal/Modal.js +43 -43
- package/lib/module/components/modal-content/ModalContent.js +14 -14
- package/lib/module/components/notification/_VariantContextProvider.js +1 -1
- package/lib/module/components/notification/_status-hooks/_base/useBase.js +5 -5
- package/lib/module/components/notification/_status-hooks/error/useError.js +3 -3
- package/lib/module/components/notification/_status-hooks/informational/useInformational.js +3 -3
- package/lib/module/components/notification/_status-hooks/success/useSuccess.js +3 -3
- package/lib/module/components/notification/_status-hooks/warning/useWarning.js +3 -3
- package/lib/module/components/notification/_variant-context.js +2 -2
- package/lib/module/components/notification/_variants/_ButtonGhost.js +6 -6
- package/lib/module/components/notification/_variants/_ButtonTertiary.js +6 -6
- package/lib/module/components/notification/_variants/actionable/ActionableVariant.js +2 -2
- package/lib/module/components/notification/_variants/actionable-inline/ActionableInlineVariant.js +2 -2
- package/lib/module/components/notification/_variants/callout/CalloutVariant.js +2 -2
- package/lib/module/components/notification/_variants/callout-inline/CalloutInlineVariant.js +2 -2
- package/lib/module/components/notification/_variants/toast/ToastVariant.js +8 -8
- package/lib/module/components/notification/actionable/error/Error.js +1 -1
- package/lib/module/components/notification/actionable/informational/Informational.js +1 -1
- package/lib/module/components/notification/actionable/success/Success.js +1 -1
- package/lib/module/components/notification/actionable/warning/Warning.js +1 -1
- package/lib/module/components/notification/actionable-inline/error/Error.js +1 -1
- package/lib/module/components/notification/actionable-inline/informational/Informational.js +1 -1
- package/lib/module/components/notification/actionable-inline/success/Success.js +1 -1
- package/lib/module/components/notification/actionable-inline/warning/Warning.js +1 -1
- package/lib/module/components/notification/base/Base.js +16 -16
- package/lib/module/components/notification/callout/error/Error.js +1 -1
- package/lib/module/components/notification/callout/informational/Informational.js +1 -1
- package/lib/module/components/notification/callout/success/Success.js +1 -1
- package/lib/module/components/notification/callout/warning/Warning.js +1 -1
- package/lib/module/components/notification/callout-inline/error/Error.js +1 -1
- package/lib/module/components/notification/callout-inline/informational/Informational.js +1 -1
- package/lib/module/components/notification/callout-inline/success/Success.js +1 -1
- package/lib/module/components/notification/callout-inline/warning/Warning.js +1 -1
- package/lib/module/components/notification/subtitle/Subtitle.js +1 -1
- package/lib/module/components/notification/subtitle-link/SubtitleLink.js +1 -1
- package/lib/module/components/notification/toast/error/Error.js +1 -1
- package/lib/module/components/notification/toast/informational/Informational.js +1 -1
- package/lib/module/components/notification/toast/success/Success.js +1 -1
- package/lib/module/components/notification/toast/warning/Warning.js +1 -1
- package/lib/module/components/radio-button/RadioButton.js +10 -10
- package/lib/module/components/radio-button-group/RadioButtonGroup.js +15 -15
- package/lib/module/components/radio-button-group/_Item.js +2 -2
- package/lib/module/components/radio-button-group/_item-context.js +1 -1
- package/lib/module/components/radio-button-input/RadioButtonInput.js +10 -10
- package/lib/module/components/radio-button-input/RadioButtonInput.js.map +1 -1
- package/lib/module/components/switch/Switch.js +15 -15
- package/lib/module/components/switch/Switch.js.map +1 -1
- package/lib/module/components/text/Text.js +7 -4
- package/lib/module/components/text/Text.js.map +1 -1
- package/lib/module/components/text-area/TextArea.js +5 -5
- package/lib/module/components/text-area-field/TextAreaField.js +6 -6
- package/lib/module/components/text-area-fluid/TextAreaFluid.js +8 -8
- package/lib/module/components/text-input/TextInput.js +6 -6
- package/lib/module/components/text-input-field/TextInputField.js +15 -15
- package/lib/module/components/text-input-field/_rn-text-input/RNTextInput.js +11 -11
- package/lib/module/components/text-input-fluid/TextInputFluid.js +8 -8
- package/lib/module/components/toggle/base/Base.js +12 -12
- package/lib/module/components/toggle/default/Default.js +2 -2
- package/lib/module/components/toggle/small/Small.js +2 -2
- package/lib/module/const/dialog-animation-configs/carbon-react.js +2 -2
- package/lib/module/const/dialog-animation-configs/fade-bottom-up-2.js +2 -2
- package/lib/module/const/dialog-animation-configs/fade-bottom-up.js +2 -2
- package/lib/module/contexts/breakpoint/BreakpointContext.js +3 -3
- package/lib/module/contexts/dialog/DialogContext.js +2 -2
- package/lib/module/contexts/theme/ThemeContext.js +1 -1
- package/lib/module/contexts/toast/ToastContext.js +3 -3
- package/lib/module/helpers/breakpoint/get-token.js +2 -2
- package/lib/module/helpers/color/get-color-scheme.js +4 -4
- package/lib/module/helpers/color/get-color-token.js +2 -2
- package/lib/module/hooks/breakpoint/use.js +2 -2
- package/lib/module/providers/dialog/DialogProvider.js +1 -1
- package/lib/module/providers/dialog/_controller/Controller.js +3 -3
- package/lib/module/providers/dialog/_controller/_modal/Modal.js +2 -2
- package/lib/module/providers/dialog/_controller/_overlay/Overlay.js +4 -4
- package/lib/module/providers/toast/ToastProvider.js +1 -1
- package/lib/module/providers/toast/_overlay/Overlay.js +5 -6
- package/lib/module/providers/toast/_overlay/Overlay.js.map +1 -1
- package/lib/module/providers/toast/_overlay/_component-wrapper/ComponentWrapper.js +7 -7
- package/lib/typescript/commonjs/_internal/contexts/button-group/ButtonGroupContext.d.ts +4 -4
- package/lib/typescript/commonjs/_internal/contexts/button-group/index.d.ts +1 -1
- package/lib/typescript/commonjs/_internal/contexts/global-config/GlobalConfigContext.d.ts +1 -1
- package/lib/typescript/commonjs/_internal/contexts/global-config/index.d.ts +1 -1
- package/lib/typescript/commonjs/_internal/contexts/index.d.ts +3 -3
- package/lib/typescript/commonjs/_internal/contexts/modal/ModalContext.d.ts +1 -1
- package/lib/typescript/commonjs/_internal/contexts/modal/index.d.ts +1 -1
- package/lib/typescript/commonjs/_internal/globals/breakpoint/index.d.ts +1 -1
- package/lib/typescript/commonjs/_internal/globals/index.d.ts +2 -2
- package/lib/typescript/commonjs/_internal/helpers/index.d.ts +1 -1
- package/lib/typescript/commonjs/_internal/helpers/math/index.d.ts +1 -1
- package/lib/typescript/commonjs/_internal/providers/breakpoint/BreakpointProvider.d.ts +1 -1
- package/lib/typescript/commonjs/_internal/providers/breakpoint/index.d.ts +2 -2
- package/lib/typescript/commonjs/_internal/providers/global-config/GlobalConfigProvider.d.ts +1 -1
- package/lib/typescript/commonjs/_internal/providers/global-config/GlobalConfigProviderProps.d.ts +1 -1
- package/lib/typescript/commonjs/_internal/providers/global-config/index.d.ts +2 -2
- package/lib/typescript/commonjs/_internal/providers/index.d.ts +3 -3
- package/lib/typescript/commonjs/_internal/providers/theme/ThemeProvider.d.ts +1 -1
- package/lib/typescript/commonjs/_internal/providers/theme/ThemeProviderProps.d.ts +2 -2
- package/lib/typescript/commonjs/_internal/providers/theme/index.d.ts +2 -2
- package/lib/typescript/commonjs/_internal/style-sheets/index.d.ts +3 -3
- package/lib/typescript/commonjs/carbon-react-native/CarbonReactNative.d.ts +1 -1
- package/lib/typescript/commonjs/carbon-react-native/CarbonReactNativeProps.d.ts +1 -1
- package/lib/typescript/commonjs/carbon-react-native/index.d.ts +2 -2
- package/lib/typescript/commonjs/carbon-style-sheet/color.d.ts +1 -1
- package/lib/typescript/commonjs/carbon-style-sheet/create.d.ts +2 -2
- package/lib/typescript/commonjs/carbon-style-sheet/index.d.ts +3 -3
- package/lib/typescript/commonjs/components/accordion/Accordion.d.ts +2 -2
- package/lib/typescript/commonjs/components/accordion/AccordionHeaderProps.d.ts +3 -3
- package/lib/typescript/commonjs/components/accordion/AccordionItemProps.d.ts +4 -4
- package/lib/typescript/commonjs/components/accordion/AccordionItemRef.d.ts +2 -2
- package/lib/typescript/commonjs/components/accordion/AccordionProps.d.ts +3 -3
- package/lib/typescript/commonjs/components/accordion/AccordionRef.d.ts +1 -1
- package/lib/typescript/commonjs/components/accordion/AccordionSize.d.ts +1 -1
- package/lib/typescript/commonjs/components/accordion/_Header.d.ts +1 -1
- package/lib/typescript/commonjs/components/accordion/_HeaderBorder.d.ts +2 -2
- package/lib/typescript/commonjs/components/accordion/_Item.d.ts +2 -2
- package/lib/typescript/commonjs/components/accordion/_chevron/Chevron.d.ts +1 -1
- package/lib/typescript/commonjs/components/accordion/_chevron/ChevronProps.d.ts +2 -2
- package/lib/typescript/commonjs/components/accordion/_chevron/index.d.ts +2 -2
- package/lib/typescript/commonjs/components/accordion/_context.d.ts +5 -5
- package/lib/typescript/commonjs/components/accordion/_motion.d.ts +2 -2
- package/lib/typescript/commonjs/components/accordion/index.d.ts +7 -7
- package/lib/typescript/commonjs/components/button/Size.d.ts +1 -1
- package/lib/typescript/commonjs/components/button/base/Base.d.ts +2 -2
- package/lib/typescript/commonjs/components/button/base/BaseProps.d.ts +11 -11
- package/lib/typescript/commonjs/components/button/base/BaseRef.d.ts +1 -1
- package/lib/typescript/commonjs/components/button/base/index.d.ts +3 -3
- package/lib/typescript/commonjs/components/button/base-color/BaseColor.d.ts +2 -2
- package/lib/typescript/commonjs/components/button/base-color/BaseColorProps.d.ts +5 -5
- package/lib/typescript/commonjs/components/button/base-color/BaseColorRef.d.ts +1 -1
- package/lib/typescript/commonjs/components/button/base-color/BaseColorState.d.ts +1 -1
- package/lib/typescript/commonjs/components/button/base-color/index.d.ts +4 -4
- package/lib/typescript/commonjs/components/button/ghost/Ghost.d.ts +2 -2
- package/lib/typescript/commonjs/components/button/ghost/GhostProps.d.ts +2 -2
- package/lib/typescript/commonjs/components/button/ghost/GhostRef.d.ts +1 -1
- package/lib/typescript/commonjs/components/button/ghost/index.d.ts +3 -3
- package/lib/typescript/commonjs/components/button/ghost-danger/GhostDanger.d.ts +2 -2
- package/lib/typescript/commonjs/components/button/ghost-danger/GhostDangerProps.d.ts +2 -2
- package/lib/typescript/commonjs/components/button/ghost-danger/GhostDangerRef.d.ts +1 -1
- package/lib/typescript/commonjs/components/button/ghost-danger/index.d.ts +3 -3
- package/lib/typescript/commonjs/components/button/ghost-icon/GhostIcon.d.ts +2 -2
- package/lib/typescript/commonjs/components/button/ghost-icon/GhostIconProps.d.ts +4 -4
- package/lib/typescript/commonjs/components/button/ghost-icon/GhostIconRef.d.ts +1 -1
- package/lib/typescript/commonjs/components/button/ghost-icon/index.d.ts +3 -3
- package/lib/typescript/commonjs/components/button/index.d.ts +11 -11
- package/lib/typescript/commonjs/components/button/primary/Primary.d.ts +2 -2
- package/lib/typescript/commonjs/components/button/primary/PrimaryProps.d.ts +2 -2
- package/lib/typescript/commonjs/components/button/primary/PrimaryRef.d.ts +1 -1
- package/lib/typescript/commonjs/components/button/primary/index.d.ts +3 -3
- package/lib/typescript/commonjs/components/button/primary-danger/PrimaryDanger.d.ts +2 -2
- package/lib/typescript/commonjs/components/button/primary-danger/PrimaryDangerProps.d.ts +2 -2
- package/lib/typescript/commonjs/components/button/primary-danger/PrimaryDangerRef.d.ts +1 -1
- package/lib/typescript/commonjs/components/button/primary-danger/index.d.ts +3 -3
- package/lib/typescript/commonjs/components/button/secondary/Secondary.d.ts +2 -2
- package/lib/typescript/commonjs/components/button/secondary/SecondaryProps.d.ts +2 -2
- package/lib/typescript/commonjs/components/button/secondary/SecondaryRef.d.ts +1 -1
- package/lib/typescript/commonjs/components/button/secondary/index.d.ts +3 -3
- package/lib/typescript/commonjs/components/button/tertiary/Tertiary.d.ts +2 -2
- package/lib/typescript/commonjs/components/button/tertiary/TertiaryProps.d.ts +2 -2
- package/lib/typescript/commonjs/components/button/tertiary/TertiaryRef.d.ts +1 -1
- package/lib/typescript/commonjs/components/button/tertiary/index.d.ts +3 -3
- package/lib/typescript/commonjs/components/button/tertiary-danger/TertiaryDanger.d.ts +2 -2
- package/lib/typescript/commonjs/components/button/tertiary-danger/TertiaryDangerProps.d.ts +2 -2
- package/lib/typescript/commonjs/components/button/tertiary-danger/TertiaryDangerRef.d.ts +1 -1
- package/lib/typescript/commonjs/components/button/tertiary-danger/index.d.ts +3 -3
- package/lib/typescript/commonjs/components/button-group/ButtonGroup.d.ts +2 -2
- package/lib/typescript/commonjs/components/button-group/ButtonGroupProps.d.ts +4 -4
- package/lib/typescript/commonjs/components/button-group/ButtonGroupRef.d.ts +1 -1
- package/lib/typescript/commonjs/components/button-group/index.d.ts +3 -3
- package/lib/typescript/commonjs/components/checkbox/Checkbox.d.ts +2 -2
- package/lib/typescript/commonjs/components/checkbox/CheckboxProps.d.ts +13 -13
- package/lib/typescript/commonjs/components/checkbox/CheckboxRef.d.ts +2 -2
- package/lib/typescript/commonjs/components/checkbox/_RefBase.d.ts +3 -3
- package/lib/typescript/commonjs/components/checkbox/index.d.ts +3 -3
- package/lib/typescript/commonjs/components/checkbox-group/CheckboxGroup.d.ts +2 -2
- package/lib/typescript/commonjs/components/checkbox-group/CheckboxGroupHelperTextMode.d.ts +1 -1
- package/lib/typescript/commonjs/components/checkbox-group/CheckboxGroupProps.d.ts +5 -5
- package/lib/typescript/commonjs/components/checkbox-group/CheckboxGroupRef.d.ts +1 -1
- package/lib/typescript/commonjs/components/checkbox-group/index.d.ts +4 -4
- package/lib/typescript/commonjs/components/checkbox-input/CheckboxInput.d.ts +2 -2
- package/lib/typescript/commonjs/components/checkbox-input/CheckboxInputInteractiveState.d.ts +1 -1
- package/lib/typescript/commonjs/components/checkbox-input/CheckboxInputProps.d.ts +5 -5
- package/lib/typescript/commonjs/components/checkbox-input/CheckboxInputRef.d.ts +2 -2
- package/lib/typescript/commonjs/components/checkbox-input/_RefBase.d.ts +1 -1
- package/lib/typescript/commonjs/components/checkbox-input/index.d.ts +5 -5
- package/lib/typescript/commonjs/components/collapsible/Collapsible.d.ts +2 -2
- package/lib/typescript/commonjs/components/collapsible/CollapsibleProps.d.ts +3 -3
- package/lib/typescript/commonjs/components/collapsible/CollapsibleRef.d.ts +2 -2
- package/lib/typescript/commonjs/components/collapsible/index.d.ts +3 -3
- package/lib/typescript/commonjs/components/form-helper-text/FormHelperText.d.ts +2 -2
- package/lib/typescript/commonjs/components/form-helper-text/FormHelperTextProps.d.ts +4 -4
- package/lib/typescript/commonjs/components/form-helper-text/FormHelperTextRef.d.ts +1 -1
- package/lib/typescript/commonjs/components/form-helper-text/index.d.ts +3 -3
- package/lib/typescript/commonjs/components/form-label/FormLabel.d.ts +2 -2
- package/lib/typescript/commonjs/components/form-label/FormLabelProps.d.ts +4 -4
- package/lib/typescript/commonjs/components/form-label/FormLabelRef.d.ts +1 -1
- package/lib/typescript/commonjs/components/form-label/index.d.ts +3 -3
- package/lib/typescript/commonjs/components/icon/Icon.d.ts +2 -2
- package/lib/typescript/commonjs/components/icon/IconProps.d.ts +3 -3
- package/lib/typescript/commonjs/components/icon/index.d.ts +2 -2
- package/lib/typescript/commonjs/components/index.d.ts +28 -28
- package/lib/typescript/commonjs/components/inline-loading/InlineLoading.d.ts +2 -2
- package/lib/typescript/commonjs/components/inline-loading/InlineLoadingProps.d.ts +5 -5
- package/lib/typescript/commonjs/components/inline-loading/InlineLoadingRef.d.ts +1 -1
- package/lib/typescript/commonjs/components/inline-loading/InlineLoadingState.d.ts +1 -1
- package/lib/typescript/commonjs/components/inline-loading/index.d.ts +4 -4
- package/lib/typescript/commonjs/components/layer/Layer.d.ts +2 -2
- package/lib/typescript/commonjs/components/layer/LayerProps.d.ts +2 -2
- package/lib/typescript/commonjs/components/layer/LayerRef.d.ts +1 -1
- package/lib/typescript/commonjs/components/layer/index.d.ts +4 -4
- package/lib/typescript/commonjs/components/loading/Loading.d.ts +2 -2
- package/lib/typescript/commonjs/components/loading/LoadingProps.d.ts +2 -2
- package/lib/typescript/commonjs/components/loading/LoadingRef.d.ts +1 -1
- package/lib/typescript/commonjs/components/loading/LoadingType.d.ts +1 -1
- package/lib/typescript/commonjs/components/loading/_circular-progress/CircularProgress.d.ts +2 -2
- package/lib/typescript/commonjs/components/loading/_circular-progress/CircularProgressProps.d.ts +3 -3
- package/lib/typescript/commonjs/components/loading/_circular-progress/index.d.ts +2 -2
- package/lib/typescript/commonjs/components/loading/_map-circle-background-color.d.ts +3 -3
- package/lib/typescript/commonjs/components/loading/_map-circle-stroke-color.d.ts +2 -2
- package/lib/typescript/commonjs/components/loading/index.d.ts +4 -4
- package/lib/typescript/commonjs/components/modal/Modal.d.ts +2 -2
- package/lib/typescript/commonjs/components/modal/ModalProps.d.ts +4 -4
- package/lib/typescript/commonjs/components/modal/ModalRef.d.ts +1 -1
- package/lib/typescript/commonjs/components/modal/ModalSize.d.ts +1 -1
- package/lib/typescript/commonjs/components/modal/index.d.ts +4 -4
- package/lib/typescript/commonjs/components/modal-content/ModalContent.d.ts +2 -2
- package/lib/typescript/commonjs/components/modal-content/ModalContentProps.d.ts +1 -1
- package/lib/typescript/commonjs/components/modal-content/ModalContentRef.d.ts +1 -1
- package/lib/typescript/commonjs/components/modal-content/index.d.ts +3 -3
- package/lib/typescript/commonjs/components/notification/NotificationColor.d.ts +1 -1
- package/lib/typescript/commonjs/components/notification/_VariantContextProvider.d.ts +1 -1
- package/lib/typescript/commonjs/components/notification/_status-hooks/_base/UseBaseData.d.ts +6 -6
- package/lib/typescript/commonjs/components/notification/_status-hooks/_base/UseBaseProps.d.ts +2 -2
- package/lib/typescript/commonjs/components/notification/_status-hooks/_base/index.d.ts +3 -3
- package/lib/typescript/commonjs/components/notification/_status-hooks/_base/useBase.d.ts +2 -2
- package/lib/typescript/commonjs/components/notification/_status-hooks/error/UseErrorData.d.ts +3 -3
- package/lib/typescript/commonjs/components/notification/_status-hooks/error/UseErrorProps.d.ts +3 -3
- package/lib/typescript/commonjs/components/notification/_status-hooks/error/index.d.ts +3 -3
- package/lib/typescript/commonjs/components/notification/_status-hooks/error/useError.d.ts +2 -2
- package/lib/typescript/commonjs/components/notification/_status-hooks/index.d.ts +4 -4
- package/lib/typescript/commonjs/components/notification/_status-hooks/informational/UseInformationalData.d.ts +3 -3
- package/lib/typescript/commonjs/components/notification/_status-hooks/informational/UseInformationalProps.d.ts +3 -3
- package/lib/typescript/commonjs/components/notification/_status-hooks/informational/index.d.ts +3 -3
- package/lib/typescript/commonjs/components/notification/_status-hooks/informational/useInformational.d.ts +2 -2
- package/lib/typescript/commonjs/components/notification/_status-hooks/success/UseSuccessData.d.ts +3 -3
- package/lib/typescript/commonjs/components/notification/_status-hooks/success/UseSuccessProps.d.ts +3 -3
- package/lib/typescript/commonjs/components/notification/_status-hooks/success/index.d.ts +3 -3
- package/lib/typescript/commonjs/components/notification/_status-hooks/success/useSuccess.d.ts +2 -2
- package/lib/typescript/commonjs/components/notification/_status-hooks/warning/UseWarningData.d.ts +3 -3
- package/lib/typescript/commonjs/components/notification/_status-hooks/warning/UseWarningProps.d.ts +3 -3
- package/lib/typescript/commonjs/components/notification/_status-hooks/warning/index.d.ts +3 -3
- package/lib/typescript/commonjs/components/notification/_status-hooks/warning/useWarning.d.ts +2 -2
- package/lib/typescript/commonjs/components/notification/_variant-context.d.ts +1 -1
- package/lib/typescript/commonjs/components/notification/_variants/_ButtonGhost.d.ts +1 -1
- package/lib/typescript/commonjs/components/notification/_variants/_ButtonTertiary.d.ts +1 -1
- package/lib/typescript/commonjs/components/notification/_variants/actionable/ActionableVariant.d.ts +2 -2
- package/lib/typescript/commonjs/components/notification/_variants/actionable/ActionableVariantProps.d.ts +8 -8
- package/lib/typescript/commonjs/components/notification/_variants/actionable/ActionableVariantRef.d.ts +1 -1
- package/lib/typescript/commonjs/components/notification/_variants/actionable/index.d.ts +3 -3
- package/lib/typescript/commonjs/components/notification/_variants/actionable-inline/ActionableInlineVariant.d.ts +2 -2
- package/lib/typescript/commonjs/components/notification/_variants/actionable-inline/ActionableInlineVariantProps.d.ts +8 -8
- package/lib/typescript/commonjs/components/notification/_variants/actionable-inline/ActionableInlineVariantRef.d.ts +1 -1
- package/lib/typescript/commonjs/components/notification/_variants/actionable-inline/index.d.ts +3 -3
- package/lib/typescript/commonjs/components/notification/_variants/callout/CalloutVariant.d.ts +2 -2
- package/lib/typescript/commonjs/components/notification/_variants/callout/CalloutVariantProps.d.ts +6 -6
- package/lib/typescript/commonjs/components/notification/_variants/callout/CalloutVariantRef.d.ts +1 -1
- package/lib/typescript/commonjs/components/notification/_variants/callout/index.d.ts +3 -3
- package/lib/typescript/commonjs/components/notification/_variants/callout-inline/CalloutInlineVariant.d.ts +2 -2
- package/lib/typescript/commonjs/components/notification/_variants/callout-inline/CalloutInlineVariantProps.d.ts +6 -6
- package/lib/typescript/commonjs/components/notification/_variants/callout-inline/CalloutInlineVariantRef.d.ts +1 -1
- package/lib/typescript/commonjs/components/notification/_variants/callout-inline/index.d.ts +3 -3
- package/lib/typescript/commonjs/components/notification/_variants/index.d.ts +5 -5
- package/lib/typescript/commonjs/components/notification/_variants/toast/ToastVariant.d.ts +2 -2
- package/lib/typescript/commonjs/components/notification/_variants/toast/ToastVariantProps.d.ts +6 -6
- package/lib/typescript/commonjs/components/notification/_variants/toast/ToastVariantRef.d.ts +1 -1
- package/lib/typescript/commonjs/components/notification/_variants/toast/index.d.ts +3 -3
- package/lib/typescript/commonjs/components/notification/actionable/error/Error.d.ts +2 -2
- package/lib/typescript/commonjs/components/notification/actionable/error/ErrorProps.d.ts +4 -4
- package/lib/typescript/commonjs/components/notification/actionable/error/ErrorRef.d.ts +1 -1
- package/lib/typescript/commonjs/components/notification/actionable/error/index.d.ts +3 -3
- package/lib/typescript/commonjs/components/notification/actionable/index.d.ts +4 -4
- package/lib/typescript/commonjs/components/notification/actionable/informational/Informational.d.ts +2 -2
- package/lib/typescript/commonjs/components/notification/actionable/informational/InformationalProps.d.ts +4 -4
- package/lib/typescript/commonjs/components/notification/actionable/informational/InformationalRef.d.ts +1 -1
- package/lib/typescript/commonjs/components/notification/actionable/informational/index.d.ts +3 -3
- package/lib/typescript/commonjs/components/notification/actionable/success/Success.d.ts +2 -2
- package/lib/typescript/commonjs/components/notification/actionable/success/SuccessProps.d.ts +4 -4
- package/lib/typescript/commonjs/components/notification/actionable/success/SuccessRef.d.ts +1 -1
- package/lib/typescript/commonjs/components/notification/actionable/success/index.d.ts +3 -3
- package/lib/typescript/commonjs/components/notification/actionable/warning/Warning.d.ts +2 -2
- package/lib/typescript/commonjs/components/notification/actionable/warning/WarningProps.d.ts +4 -4
- package/lib/typescript/commonjs/components/notification/actionable/warning/WarningRef.d.ts +1 -1
- package/lib/typescript/commonjs/components/notification/actionable/warning/index.d.ts +3 -3
- package/lib/typescript/commonjs/components/notification/actionable-inline/error/Error.d.ts +2 -2
- package/lib/typescript/commonjs/components/notification/actionable-inline/error/ErrorProps.d.ts +4 -4
- package/lib/typescript/commonjs/components/notification/actionable-inline/error/ErrorRef.d.ts +1 -1
- package/lib/typescript/commonjs/components/notification/actionable-inline/error/index.d.ts +3 -3
- package/lib/typescript/commonjs/components/notification/actionable-inline/index.d.ts +4 -4
- package/lib/typescript/commonjs/components/notification/actionable-inline/informational/Informational.d.ts +2 -2
- package/lib/typescript/commonjs/components/notification/actionable-inline/informational/InformationalProps.d.ts +4 -4
- package/lib/typescript/commonjs/components/notification/actionable-inline/informational/InformationalRef.d.ts +1 -1
- package/lib/typescript/commonjs/components/notification/actionable-inline/informational/index.d.ts +3 -3
- package/lib/typescript/commonjs/components/notification/actionable-inline/success/Success.d.ts +2 -2
- package/lib/typescript/commonjs/components/notification/actionable-inline/success/SuccessProps.d.ts +4 -4
- package/lib/typescript/commonjs/components/notification/actionable-inline/success/SuccessRef.d.ts +1 -1
- package/lib/typescript/commonjs/components/notification/actionable-inline/success/index.d.ts +3 -3
- package/lib/typescript/commonjs/components/notification/actionable-inline/warning/Warning.d.ts +2 -2
- package/lib/typescript/commonjs/components/notification/actionable-inline/warning/WarningProps.d.ts +4 -4
- package/lib/typescript/commonjs/components/notification/actionable-inline/warning/WarningRef.d.ts +1 -1
- package/lib/typescript/commonjs/components/notification/actionable-inline/warning/index.d.ts +3 -3
- package/lib/typescript/commonjs/components/notification/base/Base.d.ts +2 -2
- package/lib/typescript/commonjs/components/notification/base/BaseProps.d.ts +16 -16
- package/lib/typescript/commonjs/components/notification/base/BaseRef.d.ts +1 -1
- package/lib/typescript/commonjs/components/notification/base/index.d.ts +3 -3
- package/lib/typescript/commonjs/components/notification/callout/error/Error.d.ts +2 -2
- package/lib/typescript/commonjs/components/notification/callout/error/ErrorProps.d.ts +4 -4
- package/lib/typescript/commonjs/components/notification/callout/error/ErrorRef.d.ts +1 -1
- package/lib/typescript/commonjs/components/notification/callout/error/index.d.ts +3 -3
- package/lib/typescript/commonjs/components/notification/callout/index.d.ts +4 -4
- package/lib/typescript/commonjs/components/notification/callout/informational/Informational.d.ts +2 -2
- package/lib/typescript/commonjs/components/notification/callout/informational/InformationalProps.d.ts +4 -4
- package/lib/typescript/commonjs/components/notification/callout/informational/InformationalRef.d.ts +1 -1
- package/lib/typescript/commonjs/components/notification/callout/informational/index.d.ts +3 -3
- package/lib/typescript/commonjs/components/notification/callout/success/Success.d.ts +2 -2
- package/lib/typescript/commonjs/components/notification/callout/success/SuccessProps.d.ts +4 -4
- package/lib/typescript/commonjs/components/notification/callout/success/SuccessRef.d.ts +1 -1
- package/lib/typescript/commonjs/components/notification/callout/success/index.d.ts +3 -3
- package/lib/typescript/commonjs/components/notification/callout/warning/Warning.d.ts +2 -2
- package/lib/typescript/commonjs/components/notification/callout/warning/WarningProps.d.ts +4 -4
- package/lib/typescript/commonjs/components/notification/callout/warning/WarningRef.d.ts +1 -1
- package/lib/typescript/commonjs/components/notification/callout/warning/index.d.ts +3 -3
- package/lib/typescript/commonjs/components/notification/callout-inline/error/Error.d.ts +2 -2
- package/lib/typescript/commonjs/components/notification/callout-inline/error/ErrorProps.d.ts +4 -4
- package/lib/typescript/commonjs/components/notification/callout-inline/error/ErrorRef.d.ts +1 -1
- package/lib/typescript/commonjs/components/notification/callout-inline/error/index.d.ts +3 -3
- package/lib/typescript/commonjs/components/notification/callout-inline/index.d.ts +4 -4
- package/lib/typescript/commonjs/components/notification/callout-inline/informational/Informational.d.ts +2 -2
- package/lib/typescript/commonjs/components/notification/callout-inline/informational/InformationalProps.d.ts +4 -4
- package/lib/typescript/commonjs/components/notification/callout-inline/informational/InformationalRef.d.ts +1 -1
- package/lib/typescript/commonjs/components/notification/callout-inline/informational/index.d.ts +3 -3
- package/lib/typescript/commonjs/components/notification/callout-inline/success/Success.d.ts +2 -2
- package/lib/typescript/commonjs/components/notification/callout-inline/success/SuccessProps.d.ts +4 -4
- package/lib/typescript/commonjs/components/notification/callout-inline/success/SuccessRef.d.ts +1 -1
- package/lib/typescript/commonjs/components/notification/callout-inline/success/index.d.ts +3 -3
- package/lib/typescript/commonjs/components/notification/callout-inline/warning/Warning.d.ts +2 -2
- package/lib/typescript/commonjs/components/notification/callout-inline/warning/WarningProps.d.ts +4 -4
- package/lib/typescript/commonjs/components/notification/callout-inline/warning/WarningRef.d.ts +1 -1
- package/lib/typescript/commonjs/components/notification/callout-inline/warning/index.d.ts +3 -3
- package/lib/typescript/commonjs/components/notification/index.d.ts +9 -9
- package/lib/typescript/commonjs/components/notification/subtitle/Subtitle.d.ts +2 -2
- package/lib/typescript/commonjs/components/notification/subtitle/SubtitleProps.d.ts +2 -2
- package/lib/typescript/commonjs/components/notification/subtitle/SubtitleRef.d.ts +1 -1
- package/lib/typescript/commonjs/components/notification/subtitle/index.d.ts +3 -3
- package/lib/typescript/commonjs/components/notification/subtitle-link/SubtitleLink.d.ts +2 -2
- package/lib/typescript/commonjs/components/notification/subtitle-link/SubtitleLinkProps.d.ts +1 -1
- package/lib/typescript/commonjs/components/notification/subtitle-link/SubtitleLinkRef.d.ts +1 -1
- package/lib/typescript/commonjs/components/notification/subtitle-link/index.d.ts +3 -3
- package/lib/typescript/commonjs/components/notification/toast/error/Error.d.ts +2 -2
- package/lib/typescript/commonjs/components/notification/toast/error/ErrorProps.d.ts +4 -4
- package/lib/typescript/commonjs/components/notification/toast/error/ErrorRef.d.ts +1 -1
- package/lib/typescript/commonjs/components/notification/toast/error/index.d.ts +3 -3
- package/lib/typescript/commonjs/components/notification/toast/index.d.ts +4 -4
- package/lib/typescript/commonjs/components/notification/toast/informational/Informational.d.ts +2 -2
- package/lib/typescript/commonjs/components/notification/toast/informational/InformationalProps.d.ts +4 -4
- package/lib/typescript/commonjs/components/notification/toast/informational/InformationalRef.d.ts +1 -1
- package/lib/typescript/commonjs/components/notification/toast/informational/index.d.ts +3 -3
- package/lib/typescript/commonjs/components/notification/toast/success/Success.d.ts +2 -2
- package/lib/typescript/commonjs/components/notification/toast/success/SuccessProps.d.ts +4 -4
- package/lib/typescript/commonjs/components/notification/toast/success/SuccessRef.d.ts +1 -1
- package/lib/typescript/commonjs/components/notification/toast/success/index.d.ts +3 -3
- package/lib/typescript/commonjs/components/notification/toast/warning/Warning.d.ts +2 -2
- package/lib/typescript/commonjs/components/notification/toast/warning/WarningProps.d.ts +4 -4
- package/lib/typescript/commonjs/components/notification/toast/warning/WarningRef.d.ts +1 -1
- package/lib/typescript/commonjs/components/notification/toast/warning/index.d.ts +3 -3
- package/lib/typescript/commonjs/components/radio-button/RadioButton.d.ts +2 -2
- package/lib/typescript/commonjs/components/radio-button/RadioButtonProps.d.ts +12 -12
- package/lib/typescript/commonjs/components/radio-button/RadioButtonRef.d.ts +2 -2
- package/lib/typescript/commonjs/components/radio-button/_RefBase.d.ts +2 -2
- package/lib/typescript/commonjs/components/radio-button/index.d.ts +3 -3
- package/lib/typescript/commonjs/components/radio-button-group/RadioButtonGroup.d.ts +2 -2
- package/lib/typescript/commonjs/components/radio-button-group/RadioButtonGroupHelperTextMode.d.ts +1 -1
- package/lib/typescript/commonjs/components/radio-button-group/RadioButtonGroupItemProps.d.ts +2 -2
- package/lib/typescript/commonjs/components/radio-button-group/RadioButtonGroupItemRef.d.ts +1 -1
- package/lib/typescript/commonjs/components/radio-button-group/RadioButtonGroupProps.d.ts +9 -9
- package/lib/typescript/commonjs/components/radio-button-group/RadioButtonGroupRef.d.ts +2 -2
- package/lib/typescript/commonjs/components/radio-button-group/_Item.d.ts +2 -2
- package/lib/typescript/commonjs/components/radio-button-group/_RefBase.d.ts +3 -3
- package/lib/typescript/commonjs/components/radio-button-group/_item-context.d.ts +4 -4
- package/lib/typescript/commonjs/components/radio-button-group/index.d.ts +6 -6
- package/lib/typescript/commonjs/components/radio-button-input/RadioButtonInput.d.ts +2 -2
- package/lib/typescript/commonjs/components/radio-button-input/RadioButtonInputInteractiveState.d.ts +1 -1
- package/lib/typescript/commonjs/components/radio-button-input/RadioButtonInputProps.d.ts +5 -5
- package/lib/typescript/commonjs/components/radio-button-input/RadioButtonInputRef.d.ts +2 -2
- package/lib/typescript/commonjs/components/radio-button-input/index.d.ts +4 -4
- package/lib/typescript/commonjs/components/switch/Switch.d.ts +2 -2
- package/lib/typescript/commonjs/components/switch/SwitchProps.d.ts +7 -7
- package/lib/typescript/commonjs/components/switch/SwitchRef.d.ts +2 -2
- package/lib/typescript/commonjs/components/switch/SwitchSize.d.ts +1 -1
- package/lib/typescript/commonjs/components/switch/SwitchState.d.ts +1 -1
- package/lib/typescript/commonjs/components/switch/index.d.ts +5 -5
- package/lib/typescript/commonjs/components/text/Text.d.ts +2 -2
- package/lib/typescript/commonjs/components/text/TextProps.d.ts +3 -3
- package/lib/typescript/commonjs/components/text/TextRef.d.ts +1 -1
- package/lib/typescript/commonjs/components/text/index.d.ts +3 -3
- package/lib/typescript/commonjs/components/text-area/TextArea.d.ts +2 -2
- package/lib/typescript/commonjs/components/text-area/TextAreaProps.d.ts +2 -2
- package/lib/typescript/commonjs/components/text-area/TextAreaRef.d.ts +2 -2
- package/lib/typescript/commonjs/components/text-area/_TextAreaRefBase.d.ts +1 -1
- package/lib/typescript/commonjs/components/text-area/index.d.ts +3 -3
- package/lib/typescript/commonjs/components/text-area-field/TextAreaField.d.ts +2 -2
- package/lib/typescript/commonjs/components/text-area-field/TextAreaFieldInteractiveState.d.ts +1 -1
- package/lib/typescript/commonjs/components/text-area-field/TextAreaFieldProps.d.ts +2 -2
- package/lib/typescript/commonjs/components/text-area-field/TextAreaFieldRef.d.ts +1 -1
- package/lib/typescript/commonjs/components/text-area-field/index.d.ts +4 -4
- package/lib/typescript/commonjs/components/text-area-fluid/TextAreaFluid.d.ts +2 -2
- package/lib/typescript/commonjs/components/text-area-fluid/TextAreaFluidProps.d.ts +2 -2
- package/lib/typescript/commonjs/components/text-area-fluid/TextAreaFluidRef.d.ts +1 -1
- package/lib/typescript/commonjs/components/text-area-fluid/index.d.ts +3 -3
- package/lib/typescript/commonjs/components/text-input/TextInput.d.ts +2 -2
- package/lib/typescript/commonjs/components/text-input/TextInputProps.d.ts +2 -2
- package/lib/typescript/commonjs/components/text-input/TextInputRef.d.ts +2 -2
- package/lib/typescript/commonjs/components/text-input/TextInputSize.d.ts +1 -1
- package/lib/typescript/commonjs/components/text-input/_TextInputRefBase.d.ts +1 -1
- package/lib/typescript/commonjs/components/text-input/index.d.ts +4 -4
- package/lib/typescript/commonjs/components/text-input-field/TextInputField.d.ts +2 -2
- package/lib/typescript/commonjs/components/text-input-field/TextInputFieldInteractiveState.d.ts +1 -1
- package/lib/typescript/commonjs/components/text-input-field/TextInputFieldProps.d.ts +6 -6
- package/lib/typescript/commonjs/components/text-input-field/TextInputFieldRef.d.ts +1 -1
- package/lib/typescript/commonjs/components/text-input-field/TextInputFieldSize.d.ts +1 -1
- package/lib/typescript/commonjs/components/text-input-field/_rn-text-input/RNTextInput.d.ts +2 -2
- package/lib/typescript/commonjs/components/text-input-field/_rn-text-input/RNTextInputProps.d.ts +2 -2
- package/lib/typescript/commonjs/components/text-input-field/_rn-text-input/RNTextInputRef.d.ts +1 -1
- package/lib/typescript/commonjs/components/text-input-field/_rn-text-input/index.d.ts +3 -3
- package/lib/typescript/commonjs/components/text-input-field/index.d.ts +5 -5
- package/lib/typescript/commonjs/components/text-input-fluid/TextInputFluid.d.ts +2 -2
- package/lib/typescript/commonjs/components/text-input-fluid/TextInputFluidProps.d.ts +2 -2
- package/lib/typescript/commonjs/components/text-input-fluid/TextInputFluidRef.d.ts +1 -1
- package/lib/typescript/commonjs/components/text-input-fluid/index.d.ts +3 -3
- package/lib/typescript/commonjs/components/toggle/State.d.ts +1 -1
- package/lib/typescript/commonjs/components/toggle/base/Base.d.ts +2 -2
- package/lib/typescript/commonjs/components/toggle/base/BaseProps.d.ts +12 -12
- package/lib/typescript/commonjs/components/toggle/base/BaseRef.d.ts +2 -2
- package/lib/typescript/commonjs/components/toggle/base/_RefBase.d.ts +3 -3
- package/lib/typescript/commonjs/components/toggle/base/index.d.ts +3 -3
- package/lib/typescript/commonjs/components/toggle/default/Default.d.ts +2 -2
- package/lib/typescript/commonjs/components/toggle/default/DefaultProps.d.ts +3 -3
- package/lib/typescript/commonjs/components/toggle/default/DefaultRef.d.ts +1 -1
- package/lib/typescript/commonjs/components/toggle/default/index.d.ts +3 -3
- package/lib/typescript/commonjs/components/toggle/index.d.ts +4 -4
- package/lib/typescript/commonjs/components/toggle/small/Small.d.ts +2 -2
- package/lib/typescript/commonjs/components/toggle/small/SmallProps.d.ts +3 -3
- package/lib/typescript/commonjs/components/toggle/small/SmallRef.d.ts +1 -1
- package/lib/typescript/commonjs/components/toggle/small/index.d.ts +3 -3
- package/lib/typescript/commonjs/const/dialog-animation-configs/index.d.ts +3 -3
- package/lib/typescript/commonjs/const/index.d.ts +1 -1
- package/lib/typescript/commonjs/contexts/breakpoint/BreakpointContext.d.ts +1 -1
- package/lib/typescript/commonjs/contexts/breakpoint/index.d.ts +1 -1
- package/lib/typescript/commonjs/contexts/dialog/DialogContext.d.ts +1 -1
- package/lib/typescript/commonjs/contexts/dialog/DialogType.d.ts +1 -0
- package/lib/typescript/commonjs/contexts/dialog/DialogType.d.ts.map +1 -1
- package/lib/typescript/commonjs/contexts/dialog/index.d.ts +2 -2
- package/lib/typescript/commonjs/contexts/index.d.ts +4 -4
- package/lib/typescript/commonjs/contexts/theme/ThemeContext.d.ts +1 -1
- package/lib/typescript/commonjs/contexts/theme/index.d.ts +1 -1
- package/lib/typescript/commonjs/contexts/toast/ToastContext.d.ts +1 -1
- package/lib/typescript/commonjs/contexts/toast/index.d.ts +2 -2
- package/lib/typescript/commonjs/helpers/breakpoint/get-token.d.ts +1 -1
- package/lib/typescript/commonjs/helpers/breakpoint/index.d.ts +1 -1
- package/lib/typescript/commonjs/helpers/color/get-color-scheme.d.ts +2 -2
- package/lib/typescript/commonjs/helpers/color/get-color-token.d.ts +2 -2
- package/lib/typescript/commonjs/helpers/color/index.d.ts +3 -3
- package/lib/typescript/commonjs/helpers/index.d.ts +2 -2
- package/lib/typescript/commonjs/hooks/breakpoint/index.d.ts +1 -1
- package/lib/typescript/commonjs/hooks/breakpoint/use.d.ts +1 -1
- package/lib/typescript/commonjs/hooks/index.d.ts +2 -2
- package/lib/typescript/commonjs/index.d.ts +9 -9
- package/lib/typescript/commonjs/providers/dialog/DialogProvider.d.ts +2 -2
- package/lib/typescript/commonjs/providers/dialog/DialogProviderAnimationConfig.d.ts +1 -1
- package/lib/typescript/commonjs/providers/dialog/DialogProviderProps.d.ts +5 -5
- package/lib/typescript/commonjs/providers/dialog/DialogProviderRef.d.ts +1 -1
- package/lib/typescript/commonjs/providers/dialog/_controller/Controller.d.ts +2 -2
- package/lib/typescript/commonjs/providers/dialog/_controller/ControllerProps.d.ts +2 -2
- package/lib/typescript/commonjs/providers/dialog/_controller/ControllerRef.d.ts +1 -1
- package/lib/typescript/commonjs/providers/dialog/_controller/_modal/Modal.d.ts +2 -2
- package/lib/typescript/commonjs/providers/dialog/_controller/_modal/ModalProps.d.ts +2 -2
- package/lib/typescript/commonjs/providers/dialog/_controller/_modal/ModalRef.d.ts +1 -1
- package/lib/typescript/commonjs/providers/dialog/_controller/_modal/index.d.ts +3 -3
- package/lib/typescript/commonjs/providers/dialog/_controller/_overlay/Overlay.d.ts +2 -2
- package/lib/typescript/commonjs/providers/dialog/_controller/_overlay/OverlayProps.d.ts +1 -1
- package/lib/typescript/commonjs/providers/dialog/_controller/_overlay/OverlayRef.d.ts +2 -2
- package/lib/typescript/commonjs/providers/dialog/_controller/_overlay/index.d.ts +3 -3
- package/lib/typescript/commonjs/providers/dialog/_controller/index.d.ts +3 -3
- package/lib/typescript/commonjs/providers/dialog/index.d.ts +4 -4
- package/lib/typescript/commonjs/providers/index.d.ts +2 -2
- package/lib/typescript/commonjs/providers/toast/ToastProvider.d.ts +2 -2
- package/lib/typescript/commonjs/providers/toast/ToastRef.d.ts +1 -1
- package/lib/typescript/commonjs/providers/toast/_overlay/Overlay.d.ts +1 -1
- package/lib/typescript/commonjs/providers/toast/_overlay/OverlayRef.d.ts +1 -1
- package/lib/typescript/commonjs/providers/toast/_overlay/_component-wrapper/ComponentWrapper.d.ts +2 -2
- package/lib/typescript/commonjs/providers/toast/_overlay/_component-wrapper/ComponentWrapperProps.d.ts +1 -1
- package/lib/typescript/commonjs/providers/toast/_overlay/_component-wrapper/index.d.ts +3 -3
- package/lib/typescript/commonjs/providers/toast/_overlay/index.d.ts +2 -2
- package/lib/typescript/commonjs/providers/toast/index.d.ts +3 -3
- package/lib/typescript/commonjs/types/index.d.ts +2 -2
- package/lib/typescript/commonjs/types/theme/ColorScheme.d.ts +1 -1
- package/lib/typescript/commonjs/types/theme/index.d.ts +1 -1
- package/lib/typescript/module/_internal/contexts/button-group/ButtonGroupContext.d.ts +4 -4
- package/lib/typescript/module/_internal/contexts/button-group/index.d.ts +1 -1
- package/lib/typescript/module/_internal/contexts/global-config/GlobalConfigContext.d.ts +1 -1
- package/lib/typescript/module/_internal/contexts/global-config/index.d.ts +1 -1
- package/lib/typescript/module/_internal/contexts/index.d.ts +3 -3
- package/lib/typescript/module/_internal/contexts/modal/ModalContext.d.ts +1 -1
- package/lib/typescript/module/_internal/contexts/modal/index.d.ts +1 -1
- package/lib/typescript/module/_internal/globals/breakpoint/index.d.ts +1 -1
- package/lib/typescript/module/_internal/globals/index.d.ts +2 -2
- package/lib/typescript/module/_internal/helpers/index.d.ts +1 -1
- package/lib/typescript/module/_internal/helpers/math/index.d.ts +1 -1
- package/lib/typescript/module/_internal/providers/breakpoint/BreakpointProvider.d.ts +1 -1
- package/lib/typescript/module/_internal/providers/breakpoint/index.d.ts +2 -2
- package/lib/typescript/module/_internal/providers/global-config/GlobalConfigProvider.d.ts +1 -1
- package/lib/typescript/module/_internal/providers/global-config/GlobalConfigProviderProps.d.ts +1 -1
- package/lib/typescript/module/_internal/providers/global-config/index.d.ts +2 -2
- package/lib/typescript/module/_internal/providers/index.d.ts +3 -3
- package/lib/typescript/module/_internal/providers/theme/ThemeProvider.d.ts +1 -1
- package/lib/typescript/module/_internal/providers/theme/ThemeProviderProps.d.ts +2 -2
- package/lib/typescript/module/_internal/providers/theme/index.d.ts +2 -2
- package/lib/typescript/module/_internal/style-sheets/index.d.ts +3 -3
- package/lib/typescript/module/carbon-react-native/CarbonReactNative.d.ts +1 -1
- package/lib/typescript/module/carbon-react-native/CarbonReactNativeProps.d.ts +1 -1
- package/lib/typescript/module/carbon-react-native/index.d.ts +2 -2
- package/lib/typescript/module/carbon-style-sheet/color.d.ts +1 -1
- package/lib/typescript/module/carbon-style-sheet/create.d.ts +2 -2
- package/lib/typescript/module/carbon-style-sheet/index.d.ts +3 -3
- package/lib/typescript/module/components/accordion/Accordion.d.ts +2 -2
- package/lib/typescript/module/components/accordion/AccordionHeaderProps.d.ts +3 -3
- package/lib/typescript/module/components/accordion/AccordionItemProps.d.ts +4 -4
- package/lib/typescript/module/components/accordion/AccordionItemRef.d.ts +2 -2
- package/lib/typescript/module/components/accordion/AccordionProps.d.ts +3 -3
- package/lib/typescript/module/components/accordion/AccordionRef.d.ts +1 -1
- package/lib/typescript/module/components/accordion/AccordionSize.d.ts +1 -1
- package/lib/typescript/module/components/accordion/_Header.d.ts +1 -1
- package/lib/typescript/module/components/accordion/_HeaderBorder.d.ts +2 -2
- package/lib/typescript/module/components/accordion/_Item.d.ts +2 -2
- package/lib/typescript/module/components/accordion/_chevron/Chevron.d.ts +1 -1
- package/lib/typescript/module/components/accordion/_chevron/ChevronProps.d.ts +2 -2
- package/lib/typescript/module/components/accordion/_chevron/index.d.ts +2 -2
- package/lib/typescript/module/components/accordion/_context.d.ts +5 -5
- package/lib/typescript/module/components/accordion/_motion.d.ts +2 -2
- package/lib/typescript/module/components/accordion/index.d.ts +7 -7
- package/lib/typescript/module/components/button/Size.d.ts +1 -1
- package/lib/typescript/module/components/button/base/Base.d.ts +2 -2
- package/lib/typescript/module/components/button/base/BaseProps.d.ts +11 -11
- package/lib/typescript/module/components/button/base/BaseRef.d.ts +1 -1
- package/lib/typescript/module/components/button/base/index.d.ts +3 -3
- package/lib/typescript/module/components/button/base-color/BaseColor.d.ts +2 -2
- package/lib/typescript/module/components/button/base-color/BaseColorProps.d.ts +5 -5
- package/lib/typescript/module/components/button/base-color/BaseColorRef.d.ts +1 -1
- package/lib/typescript/module/components/button/base-color/BaseColorState.d.ts +1 -1
- package/lib/typescript/module/components/button/base-color/index.d.ts +4 -4
- package/lib/typescript/module/components/button/ghost/Ghost.d.ts +2 -2
- package/lib/typescript/module/components/button/ghost/GhostProps.d.ts +2 -2
- package/lib/typescript/module/components/button/ghost/GhostRef.d.ts +1 -1
- package/lib/typescript/module/components/button/ghost/index.d.ts +3 -3
- package/lib/typescript/module/components/button/ghost-danger/GhostDanger.d.ts +2 -2
- package/lib/typescript/module/components/button/ghost-danger/GhostDangerProps.d.ts +2 -2
- package/lib/typescript/module/components/button/ghost-danger/GhostDangerRef.d.ts +1 -1
- package/lib/typescript/module/components/button/ghost-danger/index.d.ts +3 -3
- package/lib/typescript/module/components/button/ghost-icon/GhostIcon.d.ts +2 -2
- package/lib/typescript/module/components/button/ghost-icon/GhostIconProps.d.ts +4 -4
- package/lib/typescript/module/components/button/ghost-icon/GhostIconRef.d.ts +1 -1
- package/lib/typescript/module/components/button/ghost-icon/index.d.ts +3 -3
- package/lib/typescript/module/components/button/index.d.ts +11 -11
- package/lib/typescript/module/components/button/primary/Primary.d.ts +2 -2
- package/lib/typescript/module/components/button/primary/PrimaryProps.d.ts +2 -2
- package/lib/typescript/module/components/button/primary/PrimaryRef.d.ts +1 -1
- package/lib/typescript/module/components/button/primary/index.d.ts +3 -3
- package/lib/typescript/module/components/button/primary-danger/PrimaryDanger.d.ts +2 -2
- package/lib/typescript/module/components/button/primary-danger/PrimaryDangerProps.d.ts +2 -2
- package/lib/typescript/module/components/button/primary-danger/PrimaryDangerRef.d.ts +1 -1
- package/lib/typescript/module/components/button/primary-danger/index.d.ts +3 -3
- package/lib/typescript/module/components/button/secondary/Secondary.d.ts +2 -2
- package/lib/typescript/module/components/button/secondary/SecondaryProps.d.ts +2 -2
- package/lib/typescript/module/components/button/secondary/SecondaryRef.d.ts +1 -1
- package/lib/typescript/module/components/button/secondary/index.d.ts +3 -3
- package/lib/typescript/module/components/button/tertiary/Tertiary.d.ts +2 -2
- package/lib/typescript/module/components/button/tertiary/TertiaryProps.d.ts +2 -2
- package/lib/typescript/module/components/button/tertiary/TertiaryRef.d.ts +1 -1
- package/lib/typescript/module/components/button/tertiary/index.d.ts +3 -3
- package/lib/typescript/module/components/button/tertiary-danger/TertiaryDanger.d.ts +2 -2
- package/lib/typescript/module/components/button/tertiary-danger/TertiaryDangerProps.d.ts +2 -2
- package/lib/typescript/module/components/button/tertiary-danger/TertiaryDangerRef.d.ts +1 -1
- package/lib/typescript/module/components/button/tertiary-danger/index.d.ts +3 -3
- package/lib/typescript/module/components/button-group/ButtonGroup.d.ts +2 -2
- package/lib/typescript/module/components/button-group/ButtonGroupProps.d.ts +4 -4
- package/lib/typescript/module/components/button-group/ButtonGroupRef.d.ts +1 -1
- package/lib/typescript/module/components/button-group/index.d.ts +3 -3
- package/lib/typescript/module/components/checkbox/Checkbox.d.ts +2 -2
- package/lib/typescript/module/components/checkbox/CheckboxProps.d.ts +13 -13
- package/lib/typescript/module/components/checkbox/CheckboxRef.d.ts +2 -2
- package/lib/typescript/module/components/checkbox/_RefBase.d.ts +3 -3
- package/lib/typescript/module/components/checkbox/index.d.ts +3 -3
- package/lib/typescript/module/components/checkbox-group/CheckboxGroup.d.ts +2 -2
- package/lib/typescript/module/components/checkbox-group/CheckboxGroupHelperTextMode.d.ts +1 -1
- package/lib/typescript/module/components/checkbox-group/CheckboxGroupProps.d.ts +5 -5
- package/lib/typescript/module/components/checkbox-group/CheckboxGroupRef.d.ts +1 -1
- package/lib/typescript/module/components/checkbox-group/index.d.ts +4 -4
- package/lib/typescript/module/components/checkbox-input/CheckboxInput.d.ts +2 -2
- package/lib/typescript/module/components/checkbox-input/CheckboxInputInteractiveState.d.ts +1 -1
- package/lib/typescript/module/components/checkbox-input/CheckboxInputProps.d.ts +5 -5
- package/lib/typescript/module/components/checkbox-input/CheckboxInputRef.d.ts +2 -2
- package/lib/typescript/module/components/checkbox-input/_RefBase.d.ts +1 -1
- package/lib/typescript/module/components/checkbox-input/index.d.ts +5 -5
- package/lib/typescript/module/components/collapsible/Collapsible.d.ts +2 -2
- package/lib/typescript/module/components/collapsible/CollapsibleProps.d.ts +3 -3
- package/lib/typescript/module/components/collapsible/CollapsibleRef.d.ts +2 -2
- package/lib/typescript/module/components/collapsible/index.d.ts +3 -3
- package/lib/typescript/module/components/form-helper-text/FormHelperText.d.ts +2 -2
- package/lib/typescript/module/components/form-helper-text/FormHelperTextProps.d.ts +4 -4
- package/lib/typescript/module/components/form-helper-text/FormHelperTextRef.d.ts +1 -1
- package/lib/typescript/module/components/form-helper-text/index.d.ts +3 -3
- package/lib/typescript/module/components/form-label/FormLabel.d.ts +2 -2
- package/lib/typescript/module/components/form-label/FormLabelProps.d.ts +4 -4
- package/lib/typescript/module/components/form-label/FormLabelRef.d.ts +1 -1
- package/lib/typescript/module/components/form-label/index.d.ts +3 -3
- package/lib/typescript/module/components/icon/Icon.d.ts +2 -2
- package/lib/typescript/module/components/icon/IconProps.d.ts +3 -3
- package/lib/typescript/module/components/icon/index.d.ts +2 -2
- package/lib/typescript/module/components/index.d.ts +28 -28
- package/lib/typescript/module/components/inline-loading/InlineLoading.d.ts +2 -2
- package/lib/typescript/module/components/inline-loading/InlineLoadingProps.d.ts +5 -5
- package/lib/typescript/module/components/inline-loading/InlineLoadingRef.d.ts +1 -1
- package/lib/typescript/module/components/inline-loading/InlineLoadingState.d.ts +1 -1
- package/lib/typescript/module/components/inline-loading/index.d.ts +4 -4
- package/lib/typescript/module/components/layer/Layer.d.ts +2 -2
- package/lib/typescript/module/components/layer/LayerProps.d.ts +2 -2
- package/lib/typescript/module/components/layer/LayerRef.d.ts +1 -1
- package/lib/typescript/module/components/layer/index.d.ts +4 -4
- package/lib/typescript/module/components/loading/Loading.d.ts +2 -2
- package/lib/typescript/module/components/loading/LoadingProps.d.ts +2 -2
- package/lib/typescript/module/components/loading/LoadingRef.d.ts +1 -1
- package/lib/typescript/module/components/loading/LoadingType.d.ts +1 -1
- package/lib/typescript/module/components/loading/_circular-progress/CircularProgress.d.ts +2 -2
- package/lib/typescript/module/components/loading/_circular-progress/CircularProgressProps.d.ts +3 -3
- package/lib/typescript/module/components/loading/_circular-progress/index.d.ts +2 -2
- package/lib/typescript/module/components/loading/_map-circle-background-color.d.ts +3 -3
- package/lib/typescript/module/components/loading/_map-circle-stroke-color.d.ts +2 -2
- package/lib/typescript/module/components/loading/index.d.ts +4 -4
- package/lib/typescript/module/components/modal/Modal.d.ts +2 -2
- package/lib/typescript/module/components/modal/ModalProps.d.ts +4 -4
- package/lib/typescript/module/components/modal/ModalRef.d.ts +1 -1
- package/lib/typescript/module/components/modal/ModalSize.d.ts +1 -1
- package/lib/typescript/module/components/modal/index.d.ts +4 -4
- package/lib/typescript/module/components/modal-content/ModalContent.d.ts +2 -2
- package/lib/typescript/module/components/modal-content/ModalContentProps.d.ts +1 -1
- package/lib/typescript/module/components/modal-content/ModalContentRef.d.ts +1 -1
- package/lib/typescript/module/components/modal-content/index.d.ts +3 -3
- package/lib/typescript/module/components/notification/NotificationColor.d.ts +1 -1
- package/lib/typescript/module/components/notification/_VariantContextProvider.d.ts +1 -1
- package/lib/typescript/module/components/notification/_status-hooks/_base/UseBaseData.d.ts +6 -6
- package/lib/typescript/module/components/notification/_status-hooks/_base/UseBaseProps.d.ts +2 -2
- package/lib/typescript/module/components/notification/_status-hooks/_base/index.d.ts +3 -3
- package/lib/typescript/module/components/notification/_status-hooks/_base/useBase.d.ts +2 -2
- package/lib/typescript/module/components/notification/_status-hooks/error/UseErrorData.d.ts +3 -3
- package/lib/typescript/module/components/notification/_status-hooks/error/UseErrorProps.d.ts +3 -3
- package/lib/typescript/module/components/notification/_status-hooks/error/index.d.ts +3 -3
- package/lib/typescript/module/components/notification/_status-hooks/error/useError.d.ts +2 -2
- package/lib/typescript/module/components/notification/_status-hooks/index.d.ts +4 -4
- package/lib/typescript/module/components/notification/_status-hooks/informational/UseInformationalData.d.ts +3 -3
- package/lib/typescript/module/components/notification/_status-hooks/informational/UseInformationalProps.d.ts +3 -3
- package/lib/typescript/module/components/notification/_status-hooks/informational/index.d.ts +3 -3
- package/lib/typescript/module/components/notification/_status-hooks/informational/useInformational.d.ts +2 -2
- package/lib/typescript/module/components/notification/_status-hooks/success/UseSuccessData.d.ts +3 -3
- package/lib/typescript/module/components/notification/_status-hooks/success/UseSuccessProps.d.ts +3 -3
- package/lib/typescript/module/components/notification/_status-hooks/success/index.d.ts +3 -3
- package/lib/typescript/module/components/notification/_status-hooks/success/useSuccess.d.ts +2 -2
- package/lib/typescript/module/components/notification/_status-hooks/warning/UseWarningData.d.ts +3 -3
- package/lib/typescript/module/components/notification/_status-hooks/warning/UseWarningProps.d.ts +3 -3
- package/lib/typescript/module/components/notification/_status-hooks/warning/index.d.ts +3 -3
- package/lib/typescript/module/components/notification/_status-hooks/warning/useWarning.d.ts +2 -2
- package/lib/typescript/module/components/notification/_variant-context.d.ts +1 -1
- package/lib/typescript/module/components/notification/_variants/_ButtonGhost.d.ts +1 -1
- package/lib/typescript/module/components/notification/_variants/_ButtonTertiary.d.ts +1 -1
- package/lib/typescript/module/components/notification/_variants/actionable/ActionableVariant.d.ts +2 -2
- package/lib/typescript/module/components/notification/_variants/actionable/ActionableVariantProps.d.ts +8 -8
- package/lib/typescript/module/components/notification/_variants/actionable/ActionableVariantRef.d.ts +1 -1
- package/lib/typescript/module/components/notification/_variants/actionable/index.d.ts +3 -3
- package/lib/typescript/module/components/notification/_variants/actionable-inline/ActionableInlineVariant.d.ts +2 -2
- package/lib/typescript/module/components/notification/_variants/actionable-inline/ActionableInlineVariantProps.d.ts +8 -8
- package/lib/typescript/module/components/notification/_variants/actionable-inline/ActionableInlineVariantRef.d.ts +1 -1
- package/lib/typescript/module/components/notification/_variants/actionable-inline/index.d.ts +3 -3
- package/lib/typescript/module/components/notification/_variants/callout/CalloutVariant.d.ts +2 -2
- package/lib/typescript/module/components/notification/_variants/callout/CalloutVariantProps.d.ts +6 -6
- package/lib/typescript/module/components/notification/_variants/callout/CalloutVariantRef.d.ts +1 -1
- package/lib/typescript/module/components/notification/_variants/callout/index.d.ts +3 -3
- package/lib/typescript/module/components/notification/_variants/callout-inline/CalloutInlineVariant.d.ts +2 -2
- package/lib/typescript/module/components/notification/_variants/callout-inline/CalloutInlineVariantProps.d.ts +6 -6
- package/lib/typescript/module/components/notification/_variants/callout-inline/CalloutInlineVariantRef.d.ts +1 -1
- package/lib/typescript/module/components/notification/_variants/callout-inline/index.d.ts +3 -3
- package/lib/typescript/module/components/notification/_variants/index.d.ts +5 -5
- package/lib/typescript/module/components/notification/_variants/toast/ToastVariant.d.ts +2 -2
- package/lib/typescript/module/components/notification/_variants/toast/ToastVariantProps.d.ts +6 -6
- package/lib/typescript/module/components/notification/_variants/toast/ToastVariantRef.d.ts +1 -1
- package/lib/typescript/module/components/notification/_variants/toast/index.d.ts +3 -3
- package/lib/typescript/module/components/notification/actionable/error/Error.d.ts +2 -2
- package/lib/typescript/module/components/notification/actionable/error/ErrorProps.d.ts +4 -4
- package/lib/typescript/module/components/notification/actionable/error/ErrorRef.d.ts +1 -1
- package/lib/typescript/module/components/notification/actionable/error/index.d.ts +3 -3
- package/lib/typescript/module/components/notification/actionable/index.d.ts +4 -4
- package/lib/typescript/module/components/notification/actionable/informational/Informational.d.ts +2 -2
- package/lib/typescript/module/components/notification/actionable/informational/InformationalProps.d.ts +4 -4
- package/lib/typescript/module/components/notification/actionable/informational/InformationalRef.d.ts +1 -1
- package/lib/typescript/module/components/notification/actionable/informational/index.d.ts +3 -3
- package/lib/typescript/module/components/notification/actionable/success/Success.d.ts +2 -2
- package/lib/typescript/module/components/notification/actionable/success/SuccessProps.d.ts +4 -4
- package/lib/typescript/module/components/notification/actionable/success/SuccessRef.d.ts +1 -1
- package/lib/typescript/module/components/notification/actionable/success/index.d.ts +3 -3
- package/lib/typescript/module/components/notification/actionable/warning/Warning.d.ts +2 -2
- package/lib/typescript/module/components/notification/actionable/warning/WarningProps.d.ts +4 -4
- package/lib/typescript/module/components/notification/actionable/warning/WarningRef.d.ts +1 -1
- package/lib/typescript/module/components/notification/actionable/warning/index.d.ts +3 -3
- package/lib/typescript/module/components/notification/actionable-inline/error/Error.d.ts +2 -2
- package/lib/typescript/module/components/notification/actionable-inline/error/ErrorProps.d.ts +4 -4
- package/lib/typescript/module/components/notification/actionable-inline/error/ErrorRef.d.ts +1 -1
- package/lib/typescript/module/components/notification/actionable-inline/error/index.d.ts +3 -3
- package/lib/typescript/module/components/notification/actionable-inline/index.d.ts +4 -4
- package/lib/typescript/module/components/notification/actionable-inline/informational/Informational.d.ts +2 -2
- package/lib/typescript/module/components/notification/actionable-inline/informational/InformationalProps.d.ts +4 -4
- package/lib/typescript/module/components/notification/actionable-inline/informational/InformationalRef.d.ts +1 -1
- package/lib/typescript/module/components/notification/actionable-inline/informational/index.d.ts +3 -3
- package/lib/typescript/module/components/notification/actionable-inline/success/Success.d.ts +2 -2
- package/lib/typescript/module/components/notification/actionable-inline/success/SuccessProps.d.ts +4 -4
- package/lib/typescript/module/components/notification/actionable-inline/success/SuccessRef.d.ts +1 -1
- package/lib/typescript/module/components/notification/actionable-inline/success/index.d.ts +3 -3
- package/lib/typescript/module/components/notification/actionable-inline/warning/Warning.d.ts +2 -2
- package/lib/typescript/module/components/notification/actionable-inline/warning/WarningProps.d.ts +4 -4
- package/lib/typescript/module/components/notification/actionable-inline/warning/WarningRef.d.ts +1 -1
- package/lib/typescript/module/components/notification/actionable-inline/warning/index.d.ts +3 -3
- package/lib/typescript/module/components/notification/base/Base.d.ts +2 -2
- package/lib/typescript/module/components/notification/base/BaseProps.d.ts +16 -16
- package/lib/typescript/module/components/notification/base/BaseRef.d.ts +1 -1
- package/lib/typescript/module/components/notification/base/index.d.ts +3 -3
- package/lib/typescript/module/components/notification/callout/error/Error.d.ts +2 -2
- package/lib/typescript/module/components/notification/callout/error/ErrorProps.d.ts +4 -4
- package/lib/typescript/module/components/notification/callout/error/ErrorRef.d.ts +1 -1
- package/lib/typescript/module/components/notification/callout/error/index.d.ts +3 -3
- package/lib/typescript/module/components/notification/callout/index.d.ts +4 -4
- package/lib/typescript/module/components/notification/callout/informational/Informational.d.ts +2 -2
- package/lib/typescript/module/components/notification/callout/informational/InformationalProps.d.ts +4 -4
- package/lib/typescript/module/components/notification/callout/informational/InformationalRef.d.ts +1 -1
- package/lib/typescript/module/components/notification/callout/informational/index.d.ts +3 -3
- package/lib/typescript/module/components/notification/callout/success/Success.d.ts +2 -2
- package/lib/typescript/module/components/notification/callout/success/SuccessProps.d.ts +4 -4
- package/lib/typescript/module/components/notification/callout/success/SuccessRef.d.ts +1 -1
- package/lib/typescript/module/components/notification/callout/success/index.d.ts +3 -3
- package/lib/typescript/module/components/notification/callout/warning/Warning.d.ts +2 -2
- package/lib/typescript/module/components/notification/callout/warning/WarningProps.d.ts +4 -4
- package/lib/typescript/module/components/notification/callout/warning/WarningRef.d.ts +1 -1
- package/lib/typescript/module/components/notification/callout/warning/index.d.ts +3 -3
- package/lib/typescript/module/components/notification/callout-inline/error/Error.d.ts +2 -2
- package/lib/typescript/module/components/notification/callout-inline/error/ErrorProps.d.ts +4 -4
- package/lib/typescript/module/components/notification/callout-inline/error/ErrorRef.d.ts +1 -1
- package/lib/typescript/module/components/notification/callout-inline/error/index.d.ts +3 -3
- package/lib/typescript/module/components/notification/callout-inline/index.d.ts +4 -4
- package/lib/typescript/module/components/notification/callout-inline/informational/Informational.d.ts +2 -2
- package/lib/typescript/module/components/notification/callout-inline/informational/InformationalProps.d.ts +4 -4
- package/lib/typescript/module/components/notification/callout-inline/informational/InformationalRef.d.ts +1 -1
- package/lib/typescript/module/components/notification/callout-inline/informational/index.d.ts +3 -3
- package/lib/typescript/module/components/notification/callout-inline/success/Success.d.ts +2 -2
- package/lib/typescript/module/components/notification/callout-inline/success/SuccessProps.d.ts +4 -4
- package/lib/typescript/module/components/notification/callout-inline/success/SuccessRef.d.ts +1 -1
- package/lib/typescript/module/components/notification/callout-inline/success/index.d.ts +3 -3
- package/lib/typescript/module/components/notification/callout-inline/warning/Warning.d.ts +2 -2
- package/lib/typescript/module/components/notification/callout-inline/warning/WarningProps.d.ts +4 -4
- package/lib/typescript/module/components/notification/callout-inline/warning/WarningRef.d.ts +1 -1
- package/lib/typescript/module/components/notification/callout-inline/warning/index.d.ts +3 -3
- package/lib/typescript/module/components/notification/index.d.ts +9 -9
- package/lib/typescript/module/components/notification/subtitle/Subtitle.d.ts +2 -2
- package/lib/typescript/module/components/notification/subtitle/SubtitleProps.d.ts +2 -2
- package/lib/typescript/module/components/notification/subtitle/SubtitleRef.d.ts +1 -1
- package/lib/typescript/module/components/notification/subtitle/index.d.ts +3 -3
- package/lib/typescript/module/components/notification/subtitle-link/SubtitleLink.d.ts +2 -2
- package/lib/typescript/module/components/notification/subtitle-link/SubtitleLinkProps.d.ts +1 -1
- package/lib/typescript/module/components/notification/subtitle-link/SubtitleLinkRef.d.ts +1 -1
- package/lib/typescript/module/components/notification/subtitle-link/index.d.ts +3 -3
- package/lib/typescript/module/components/notification/toast/error/Error.d.ts +2 -2
- package/lib/typescript/module/components/notification/toast/error/ErrorProps.d.ts +4 -4
- package/lib/typescript/module/components/notification/toast/error/ErrorRef.d.ts +1 -1
- package/lib/typescript/module/components/notification/toast/error/index.d.ts +3 -3
- package/lib/typescript/module/components/notification/toast/index.d.ts +4 -4
- package/lib/typescript/module/components/notification/toast/informational/Informational.d.ts +2 -2
- package/lib/typescript/module/components/notification/toast/informational/InformationalProps.d.ts +4 -4
- package/lib/typescript/module/components/notification/toast/informational/InformationalRef.d.ts +1 -1
- package/lib/typescript/module/components/notification/toast/informational/index.d.ts +3 -3
- package/lib/typescript/module/components/notification/toast/success/Success.d.ts +2 -2
- package/lib/typescript/module/components/notification/toast/success/SuccessProps.d.ts +4 -4
- package/lib/typescript/module/components/notification/toast/success/SuccessRef.d.ts +1 -1
- package/lib/typescript/module/components/notification/toast/success/index.d.ts +3 -3
- package/lib/typescript/module/components/notification/toast/warning/Warning.d.ts +2 -2
- package/lib/typescript/module/components/notification/toast/warning/WarningProps.d.ts +4 -4
- package/lib/typescript/module/components/notification/toast/warning/WarningRef.d.ts +1 -1
- package/lib/typescript/module/components/notification/toast/warning/index.d.ts +3 -3
- package/lib/typescript/module/components/radio-button/RadioButton.d.ts +2 -2
- package/lib/typescript/module/components/radio-button/RadioButtonProps.d.ts +12 -12
- package/lib/typescript/module/components/radio-button/RadioButtonRef.d.ts +2 -2
- package/lib/typescript/module/components/radio-button/_RefBase.d.ts +2 -2
- package/lib/typescript/module/components/radio-button/index.d.ts +3 -3
- package/lib/typescript/module/components/radio-button-group/RadioButtonGroup.d.ts +2 -2
- package/lib/typescript/module/components/radio-button-group/RadioButtonGroupHelperTextMode.d.ts +1 -1
- package/lib/typescript/module/components/radio-button-group/RadioButtonGroupItemProps.d.ts +2 -2
- package/lib/typescript/module/components/radio-button-group/RadioButtonGroupItemRef.d.ts +1 -1
- package/lib/typescript/module/components/radio-button-group/RadioButtonGroupProps.d.ts +9 -9
- package/lib/typescript/module/components/radio-button-group/RadioButtonGroupRef.d.ts +2 -2
- package/lib/typescript/module/components/radio-button-group/_Item.d.ts +2 -2
- package/lib/typescript/module/components/radio-button-group/_RefBase.d.ts +3 -3
- package/lib/typescript/module/components/radio-button-group/_item-context.d.ts +4 -4
- package/lib/typescript/module/components/radio-button-group/index.d.ts +6 -6
- package/lib/typescript/module/components/radio-button-input/RadioButtonInput.d.ts +2 -2
- package/lib/typescript/module/components/radio-button-input/RadioButtonInputInteractiveState.d.ts +1 -1
- package/lib/typescript/module/components/radio-button-input/RadioButtonInputProps.d.ts +5 -5
- package/lib/typescript/module/components/radio-button-input/RadioButtonInputRef.d.ts +2 -2
- package/lib/typescript/module/components/radio-button-input/index.d.ts +4 -4
- package/lib/typescript/module/components/switch/Switch.d.ts +2 -2
- package/lib/typescript/module/components/switch/SwitchProps.d.ts +7 -7
- package/lib/typescript/module/components/switch/SwitchRef.d.ts +2 -2
- package/lib/typescript/module/components/switch/SwitchSize.d.ts +1 -1
- package/lib/typescript/module/components/switch/SwitchState.d.ts +1 -1
- package/lib/typescript/module/components/switch/index.d.ts +5 -5
- package/lib/typescript/module/components/text/Text.d.ts +2 -2
- package/lib/typescript/module/components/text/TextProps.d.ts +3 -3
- package/lib/typescript/module/components/text/TextRef.d.ts +1 -1
- package/lib/typescript/module/components/text/index.d.ts +3 -3
- package/lib/typescript/module/components/text-area/TextArea.d.ts +2 -2
- package/lib/typescript/module/components/text-area/TextAreaProps.d.ts +2 -2
- package/lib/typescript/module/components/text-area/TextAreaRef.d.ts +2 -2
- package/lib/typescript/module/components/text-area/_TextAreaRefBase.d.ts +1 -1
- package/lib/typescript/module/components/text-area/index.d.ts +3 -3
- package/lib/typescript/module/components/text-area-field/TextAreaField.d.ts +2 -2
- package/lib/typescript/module/components/text-area-field/TextAreaFieldInteractiveState.d.ts +1 -1
- package/lib/typescript/module/components/text-area-field/TextAreaFieldProps.d.ts +2 -2
- package/lib/typescript/module/components/text-area-field/TextAreaFieldRef.d.ts +1 -1
- package/lib/typescript/module/components/text-area-field/index.d.ts +4 -4
- package/lib/typescript/module/components/text-area-fluid/TextAreaFluid.d.ts +2 -2
- package/lib/typescript/module/components/text-area-fluid/TextAreaFluidProps.d.ts +2 -2
- package/lib/typescript/module/components/text-area-fluid/TextAreaFluidRef.d.ts +1 -1
- package/lib/typescript/module/components/text-area-fluid/index.d.ts +3 -3
- package/lib/typescript/module/components/text-input/TextInput.d.ts +2 -2
- package/lib/typescript/module/components/text-input/TextInputProps.d.ts +2 -2
- package/lib/typescript/module/components/text-input/TextInputRef.d.ts +2 -2
- package/lib/typescript/module/components/text-input/TextInputSize.d.ts +1 -1
- package/lib/typescript/module/components/text-input/_TextInputRefBase.d.ts +1 -1
- package/lib/typescript/module/components/text-input/index.d.ts +4 -4
- package/lib/typescript/module/components/text-input-field/TextInputField.d.ts +2 -2
- package/lib/typescript/module/components/text-input-field/TextInputFieldInteractiveState.d.ts +1 -1
- package/lib/typescript/module/components/text-input-field/TextInputFieldProps.d.ts +6 -6
- package/lib/typescript/module/components/text-input-field/TextInputFieldRef.d.ts +1 -1
- package/lib/typescript/module/components/text-input-field/TextInputFieldSize.d.ts +1 -1
- package/lib/typescript/module/components/text-input-field/_rn-text-input/RNTextInput.d.ts +2 -2
- package/lib/typescript/module/components/text-input-field/_rn-text-input/RNTextInputProps.d.ts +2 -2
- package/lib/typescript/module/components/text-input-field/_rn-text-input/RNTextInputRef.d.ts +1 -1
- package/lib/typescript/module/components/text-input-field/_rn-text-input/index.d.ts +3 -3
- package/lib/typescript/module/components/text-input-field/index.d.ts +5 -5
- package/lib/typescript/module/components/text-input-fluid/TextInputFluid.d.ts +2 -2
- package/lib/typescript/module/components/text-input-fluid/TextInputFluidProps.d.ts +2 -2
- package/lib/typescript/module/components/text-input-fluid/TextInputFluidRef.d.ts +1 -1
- package/lib/typescript/module/components/text-input-fluid/index.d.ts +3 -3
- package/lib/typescript/module/components/toggle/State.d.ts +1 -1
- package/lib/typescript/module/components/toggle/base/Base.d.ts +2 -2
- package/lib/typescript/module/components/toggle/base/BaseProps.d.ts +12 -12
- package/lib/typescript/module/components/toggle/base/BaseRef.d.ts +2 -2
- package/lib/typescript/module/components/toggle/base/_RefBase.d.ts +3 -3
- package/lib/typescript/module/components/toggle/base/index.d.ts +3 -3
- package/lib/typescript/module/components/toggle/default/Default.d.ts +2 -2
- package/lib/typescript/module/components/toggle/default/DefaultProps.d.ts +3 -3
- package/lib/typescript/module/components/toggle/default/DefaultRef.d.ts +1 -1
- package/lib/typescript/module/components/toggle/default/index.d.ts +3 -3
- package/lib/typescript/module/components/toggle/index.d.ts +4 -4
- package/lib/typescript/module/components/toggle/small/Small.d.ts +2 -2
- package/lib/typescript/module/components/toggle/small/SmallProps.d.ts +3 -3
- package/lib/typescript/module/components/toggle/small/SmallRef.d.ts +1 -1
- package/lib/typescript/module/components/toggle/small/index.d.ts +3 -3
- package/lib/typescript/module/const/dialog-animation-configs/index.d.ts +3 -3
- package/lib/typescript/module/const/index.d.ts +1 -1
- package/lib/typescript/module/contexts/breakpoint/BreakpointContext.d.ts +1 -1
- package/lib/typescript/module/contexts/breakpoint/index.d.ts +1 -1
- package/lib/typescript/module/contexts/dialog/DialogContext.d.ts +1 -1
- package/lib/typescript/module/contexts/dialog/DialogType.d.ts +1 -0
- package/lib/typescript/module/contexts/dialog/DialogType.d.ts.map +1 -1
- package/lib/typescript/module/contexts/dialog/index.d.ts +2 -2
- package/lib/typescript/module/contexts/index.d.ts +4 -4
- package/lib/typescript/module/contexts/theme/ThemeContext.d.ts +1 -1
- package/lib/typescript/module/contexts/theme/index.d.ts +1 -1
- package/lib/typescript/module/contexts/toast/ToastContext.d.ts +1 -1
- package/lib/typescript/module/contexts/toast/index.d.ts +2 -2
- package/lib/typescript/module/helpers/breakpoint/get-token.d.ts +1 -1
- package/lib/typescript/module/helpers/breakpoint/index.d.ts +1 -1
- package/lib/typescript/module/helpers/color/get-color-scheme.d.ts +2 -2
- package/lib/typescript/module/helpers/color/get-color-token.d.ts +2 -2
- package/lib/typescript/module/helpers/color/index.d.ts +3 -3
- package/lib/typescript/module/helpers/index.d.ts +2 -2
- package/lib/typescript/module/hooks/breakpoint/index.d.ts +1 -1
- package/lib/typescript/module/hooks/breakpoint/use.d.ts +1 -1
- package/lib/typescript/module/hooks/index.d.ts +2 -2
- package/lib/typescript/module/index.d.ts +9 -9
- package/lib/typescript/module/providers/dialog/DialogProvider.d.ts +2 -2
- package/lib/typescript/module/providers/dialog/DialogProviderAnimationConfig.d.ts +1 -1
- package/lib/typescript/module/providers/dialog/DialogProviderProps.d.ts +5 -5
- package/lib/typescript/module/providers/dialog/DialogProviderRef.d.ts +1 -1
- package/lib/typescript/module/providers/dialog/_controller/Controller.d.ts +2 -2
- package/lib/typescript/module/providers/dialog/_controller/ControllerProps.d.ts +2 -2
- package/lib/typescript/module/providers/dialog/_controller/ControllerRef.d.ts +1 -1
- package/lib/typescript/module/providers/dialog/_controller/_modal/Modal.d.ts +2 -2
- package/lib/typescript/module/providers/dialog/_controller/_modal/ModalProps.d.ts +2 -2
- package/lib/typescript/module/providers/dialog/_controller/_modal/ModalRef.d.ts +1 -1
- package/lib/typescript/module/providers/dialog/_controller/_modal/index.d.ts +3 -3
- package/lib/typescript/module/providers/dialog/_controller/_overlay/Overlay.d.ts +2 -2
- package/lib/typescript/module/providers/dialog/_controller/_overlay/OverlayProps.d.ts +1 -1
- package/lib/typescript/module/providers/dialog/_controller/_overlay/OverlayRef.d.ts +2 -2
- package/lib/typescript/module/providers/dialog/_controller/_overlay/index.d.ts +3 -3
- package/lib/typescript/module/providers/dialog/_controller/index.d.ts +3 -3
- package/lib/typescript/module/providers/dialog/index.d.ts +4 -4
- package/lib/typescript/module/providers/index.d.ts +2 -2
- package/lib/typescript/module/providers/toast/ToastProvider.d.ts +2 -2
- package/lib/typescript/module/providers/toast/ToastRef.d.ts +1 -1
- package/lib/typescript/module/providers/toast/_overlay/Overlay.d.ts +1 -1
- package/lib/typescript/module/providers/toast/_overlay/OverlayRef.d.ts +1 -1
- package/lib/typescript/module/providers/toast/_overlay/_component-wrapper/ComponentWrapper.d.ts +2 -2
- package/lib/typescript/module/providers/toast/_overlay/_component-wrapper/ComponentWrapperProps.d.ts +1 -1
- package/lib/typescript/module/providers/toast/_overlay/_component-wrapper/index.d.ts +3 -3
- package/lib/typescript/module/providers/toast/_overlay/index.d.ts +2 -2
- package/lib/typescript/module/providers/toast/index.d.ts +3 -3
- package/lib/typescript/module/types/index.d.ts +2 -2
- package/lib/typescript/module/types/theme/ColorScheme.d.ts +1 -1
- package/lib/typescript/module/types/theme/index.d.ts +1 -1
- package/lib/typescript/tsconfig.tsbuildinfo +1 -0
- package/package.json +1 -1
|
@@ -14,8 +14,8 @@ const RadioButtonInput = exports.RadioButtonInput = /*#__PURE__*/(0, _react.forw
|
|
|
14
14
|
defaultChecked,
|
|
15
15
|
checked: checkedProp,
|
|
16
16
|
value,
|
|
17
|
-
interactiveState =
|
|
18
|
-
role =
|
|
17
|
+
interactiveState = "normal",
|
|
18
|
+
role = "radio",
|
|
19
19
|
onChange,
|
|
20
20
|
onBlur,
|
|
21
21
|
onFocus,
|
|
@@ -31,7 +31,7 @@ const RadioButtonInput = exports.RadioButtonInput = /*#__PURE__*/(0, _react.forw
|
|
|
31
31
|
}),
|
|
32
32
|
[isFocused, setIsFocused] = (0, _react.useState)(false),
|
|
33
33
|
[checkedSelf, setCheckedSelf] = (0, _react.useState)(ref.current.checked),
|
|
34
|
-
controlled = typeof checkedProp ===
|
|
34
|
+
controlled = typeof checkedProp === "boolean",
|
|
35
35
|
checked = controlled ? !!checkedProp : checkedSelf,
|
|
36
36
|
blurHandler = (0, _react.useCallback)(event => {
|
|
37
37
|
onBlur?.(event);
|
|
@@ -51,9 +51,9 @@ const RadioButtonInput = exports.RadioButtonInput = /*#__PURE__*/(0, _react.forw
|
|
|
51
51
|
}
|
|
52
52
|
}, [controlled, onPress, onChange, value]);
|
|
53
53
|
(0, _react.useEffect)(() => {
|
|
54
|
+
ref.current.checked = checked;
|
|
54
55
|
if (ref.current.onChangeEffect) {
|
|
55
56
|
ref.current.onChangeEffect = false;
|
|
56
|
-
ref.current.checked = checked;
|
|
57
57
|
onChange?.(ref.current.checked, value);
|
|
58
58
|
}
|
|
59
59
|
}, [checked, value, onChange]);
|
|
@@ -65,7 +65,7 @@ const RadioButtonInput = exports.RadioButtonInput = /*#__PURE__*/(0, _react.forw
|
|
|
65
65
|
setChecked(checked_) {
|
|
66
66
|
if (!controlled) {
|
|
67
67
|
ref.current.onChangeEffect = true;
|
|
68
|
-
if (typeof checked_ ===
|
|
68
|
+
if (typeof checked_ === "boolean") {
|
|
69
69
|
ref.current.checked = checked_;
|
|
70
70
|
} else {
|
|
71
71
|
ref.current.checked = checked_(ref.current.checked);
|
|
@@ -78,7 +78,7 @@ const RadioButtonInput = exports.RadioButtonInput = /*#__PURE__*/(0, _react.forw
|
|
|
78
78
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Pressable, {
|
|
79
79
|
...props,
|
|
80
80
|
role: role,
|
|
81
|
-
disabled: interactiveState ===
|
|
81
|
+
disabled: interactiveState === "disabled",
|
|
82
82
|
onBlur: blurHandler,
|
|
83
83
|
onFocus: focusHandler,
|
|
84
84
|
onPress: pressHandler,
|
|
@@ -104,13 +104,13 @@ const size = 18,
|
|
|
104
104
|
height: size + 6,
|
|
105
105
|
borderRadius: size + 3,
|
|
106
106
|
borderWidth: 2,
|
|
107
|
-
borderColor:
|
|
107
|
+
borderColor: "transparent"
|
|
108
108
|
},
|
|
109
109
|
marker: {
|
|
110
110
|
width: size / 2,
|
|
111
111
|
height: size / 2,
|
|
112
112
|
borderRadius: size,
|
|
113
|
-
overflow:
|
|
113
|
+
overflow: "hidden"
|
|
114
114
|
}
|
|
115
115
|
}),
|
|
116
116
|
carbonStyle = _index2.CarbonStyleSheet.create({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_index","_index2","_index3","_jsxRuntime","RadioButtonInput","exports","forwardRef","defaultChecked","checked","checkedProp","value","interactiveState","role","onChange","onBlur","onFocus","onPress","style","props","forwardedRef","useContext","ThemeContext","viewRef","useRef","ref","onChangeEffect","isFocused","setIsFocused","useState","checkedSelf","setCheckedSelf","current","controlled","blurHandler","useCallback","event","focusHandler","pressHandler","useEffect","useImperativeHandle","Object","assign","setChecked","checked_","jsxs","Pressable","disabled","FlexStyleSheet","items_center","justify_center","CommonStyleSheet","relative","baseStyle","radioButton","mapInteractiveStateStyle_","children","jsx","View","absolute","overflow_hidden","focusBox","carbonStyle","flex_initial","marker","size","StyleSheet","create","width","height","borderRadius","borderWidth","borderColor","overflow","CarbonStyleSheet","color","focus","normal_true_container","icon_primary","normal_true_marker","backgroundColor","normal_false_container","disabled_true_container","icon_disabled","disabled_true_marker","disabled_false_container","error_true_container","support_error","error_true_marker","error_false_container","read_only_true_container","read_only_true_marker","read_only_false_container","warning_true_container","warning_true_marker","warning_false_container"],"sourceRoot":"../../../../src","sources":["components/radio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,kBAAW,EAACC,KAAK,IAAI;MACpBpB,OAAO,GAAGoB,KAAK,CAAC;MAChBR,YAAY,CAAC,IAAI,CAAC;IACnB,CAAC,EAAE,CACFZ,OAAO,CACP,CAAC;IAEHsB,YAAoD,GACnD,IAAAH,kBAAW,EAACC,KAAK,IAAI;MACpBnB,OAAO,GAAGmB,KAAK,CAAC;MAChB,IAAG,CAACH,UAAU,EAAE;QACfR,GAAG,CAACO,OAAO,CAACN,cAAc,GAAG,IAAI;QACjCK,cAAc,CAAC,IAAI,CAAC;MACrB,CAAC,MAAM;QACNjB,QAAQ,GAAG,CAACW,GAAG,CAACO,OAAO,CAACvB,OAAO,EAAEE,KAAK,CAAC;MACxC;IACD,CAAC,EAAE,CACFsB,UAAU,EACVhB,OAAO,EACPH,QAAQ,EACRH,KAAK,CACL,CAAC;EAEJ,IAAA4B,gBAAS,EAAC,MAAM;
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_index","_index2","_index3","_jsxRuntime","RadioButtonInput","exports","forwardRef","defaultChecked","checked","checkedProp","value","interactiveState","role","onChange","onBlur","onFocus","onPress","style","props","forwardedRef","useContext","ThemeContext","viewRef","useRef","ref","onChangeEffect","isFocused","setIsFocused","useState","checkedSelf","setCheckedSelf","current","controlled","blurHandler","useCallback","event","focusHandler","pressHandler","useEffect","useImperativeHandle","Object","assign","setChecked","checked_","jsxs","Pressable","disabled","FlexStyleSheet","items_center","justify_center","CommonStyleSheet","relative","baseStyle","radioButton","mapInteractiveStateStyle_","children","jsx","View","absolute","overflow_hidden","focusBox","carbonStyle","flex_initial","marker","size","StyleSheet","create","width","height","borderRadius","borderWidth","borderColor","overflow","CarbonStyleSheet","color","focus","normal_true_container","icon_primary","normal_true_marker","backgroundColor","normal_false_container","disabled_true_container","icon_disabled","disabled_true_marker","disabled_false_container","error_true_container","support_error","error_true_marker","error_false_container","read_only_true_container","read_only_true_marker","read_only_false_container","warning_true_container","warning_true_marker","warning_false_container"],"sourceRoot":"../../../../src","sources":["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AAgB,CAACC,KAAK,CAACQ;IACrC,CAAC;IAEDG,oBAAoB,EAAE;MACrBd,WAAW,EAAEE,wBAAgB,CAACC,KAAK,CAACY;IACrC,CAAC;IACDC,iBAAiB,EAAE;MAClBR,eAAe,EAAEN,wBAAgB,CAACC,KAAK,CAACG;IACzC,CAAC;IACDW,qBAAqB,EAAE;MACtBjB,WAAW,EAAEE,wBAAgB,CAACC,KAAK,CAACY;IACrC,CAAC;IAEDG,wBAAwB,EAAE;MACzBlB,WAAW,EAAEE,wBAAgB,CAACC,KAAK,CAACQ;IACrC,CAAC;IACDQ,qBAAqB,EAAE;MACtBX,eAAe,EAAEN,wBAAgB,CAACC,KAAK,CAACG;IACzC,CAAC;IACDc,yBAAyB,EAAE;MAC1BpB,WAAW,EAAEE,wBAAgB,CAACC,KAAK,CAACQ;IACrC,CAAC;IAEDU,sBAAsB,EAAE;MACvBrB,WAAW,EAAEE,wBAAgB,CAACC,KAAK,CAACG;IACrC,CAAC;IACDgB,mBAAmB,EAAE;MACpBd,eAAe,EAAEN,wBAAgB,CAACC,KAAK,CAACG;IACzC,CAAC;IACDiB,uBAAuB,EAAE;MACxBf,eAAe,EAAEN,wBAAgB,CAACC,KAAK,CAACG;IACzC;EACD,CAAC,CAAC","ignoreList":[]}
|
|
@@ -15,8 +15,8 @@ var _index4 = require("../../contexts/index.js");
|
|
|
15
15
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
16
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
17
17
|
const Switch = exports.Switch = /*#__PURE__*/(0, _react.forwardRef)(function ({
|
|
18
|
-
size =
|
|
19
|
-
state =
|
|
18
|
+
size = "default",
|
|
19
|
+
state = "normal",
|
|
20
20
|
defaultValue,
|
|
21
21
|
value: valueProp,
|
|
22
22
|
trackColor: trackColorProp,
|
|
@@ -26,8 +26,8 @@ const Switch = exports.Switch = /*#__PURE__*/(0, _react.forwardRef)(function ({
|
|
|
26
26
|
true: motionDefault
|
|
27
27
|
},
|
|
28
28
|
style,
|
|
29
|
-
role =
|
|
30
|
-
|
|
29
|
+
role = "switch",
|
|
30
|
+
"aria-checked": ariaChecked,
|
|
31
31
|
onChange,
|
|
32
32
|
onBlur,
|
|
33
33
|
onFocus,
|
|
@@ -43,7 +43,7 @@ const Switch = exports.Switch = /*#__PURE__*/(0, _react.forwardRef)(function ({
|
|
|
43
43
|
themeContext = (0, _react.useContext)(_index4.ThemeContext),
|
|
44
44
|
[isFocused, setIsFocused] = (0, _react.useState)(false),
|
|
45
45
|
[valueSelf, setValueSelf] = (0, _react.useState)(ref.current.value),
|
|
46
|
-
controlled = typeof valueProp ===
|
|
46
|
+
controlled = typeof valueProp === "boolean",
|
|
47
47
|
value = controlled ? !!valueProp : valueSelf,
|
|
48
48
|
/**
|
|
49
49
|
* 0 -> false/inactive
|
|
@@ -58,8 +58,8 @@ const Switch = exports.Switch = /*#__PURE__*/(0, _react.forwardRef)(function ({
|
|
|
58
58
|
thumbColor_ = mapSwitchThumbColorToken[state];
|
|
59
59
|
return {
|
|
60
60
|
trackColor: trackColorProp ?? {
|
|
61
|
-
false: trackColor_.false?.[themeContext.colorScheme] ??
|
|
62
|
-
true: trackColor_.true?.[themeContext.colorScheme] ??
|
|
61
|
+
false: trackColor_.false?.[themeContext.colorScheme] ?? "transparent",
|
|
62
|
+
true: trackColor_.true?.[themeContext.colorScheme] ?? "transparent"
|
|
63
63
|
},
|
|
64
64
|
thumbColor: thumbColorProp ?? {
|
|
65
65
|
false: thumbColor_[themeContext.colorScheme],
|
|
@@ -114,9 +114,9 @@ const Switch = exports.Switch = /*#__PURE__*/(0, _react.forwardRef)(function ({
|
|
|
114
114
|
}
|
|
115
115
|
}, [motion, sharedValue, value]);
|
|
116
116
|
(0, _react.useEffect)(() => {
|
|
117
|
+
ref.current.value = value;
|
|
117
118
|
if (ref.current.onChangeEffect) {
|
|
118
119
|
ref.current.onChangeEffect = false;
|
|
119
|
-
ref.current.value = value;
|
|
120
120
|
onChange?.(value);
|
|
121
121
|
}
|
|
122
122
|
}, [value, onChange]);
|
|
@@ -128,7 +128,7 @@ const Switch = exports.Switch = /*#__PURE__*/(0, _react.forwardRef)(function ({
|
|
|
128
128
|
setValue(valueParam) {
|
|
129
129
|
if (!controlled) {
|
|
130
130
|
ref.current.onChangeEffect = true;
|
|
131
|
-
if (typeof valueParam ===
|
|
131
|
+
if (typeof valueParam === "boolean") {
|
|
132
132
|
setValueSelf(valueParam);
|
|
133
133
|
} else {
|
|
134
134
|
setValueSelf(valueParam(ref.current.value));
|
|
@@ -146,7 +146,7 @@ const Switch = exports.Switch = /*#__PURE__*/(0, _react.forwardRef)(function ({
|
|
|
146
146
|
inputRange: interpolationRange,
|
|
147
147
|
outputRange: [trackColor.false, trackColor.true]
|
|
148
148
|
})
|
|
149
|
-
}, state ===
|
|
149
|
+
}, state === "read_only" ? baseStyleCarbon.containerReadonly : null, style],
|
|
150
150
|
onBlur: blurHandler,
|
|
151
151
|
onFocus: focusHandler,
|
|
152
152
|
onPress: pressHandler,
|
|
@@ -166,7 +166,7 @@ const Switch = exports.Switch = /*#__PURE__*/(0, _react.forwardRef)(function ({
|
|
|
166
166
|
outputRange: [thumbColor.false, thumbColor.true]
|
|
167
167
|
})
|
|
168
168
|
}],
|
|
169
|
-
children: size ===
|
|
169
|
+
children: size === "small" && /*#__PURE__*/(0, _jsxRuntime.jsx)(IconCheckmarkAnimated, {
|
|
170
170
|
fill: mapIconAnimatedFillColor[themeContext.colorScheme],
|
|
171
171
|
style: {
|
|
172
172
|
opacity: sharedValue.current
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_carbonReactNativeElements","_checkmark","_interopRequireDefault","_index","_index2","_index3","_index4","_jsxRuntime","e","__esModule","default","Switch","exports","forwardRef","size","state","defaultValue","value","valueProp","trackColor","trackColorProp","thumbColor","thumbColorProp","motion","false","motionDefault","true","style","role","ariaChecked","onChange","onBlur","onFocus","onPress","props","forwardedRef","viewRef","useRef","ref","onChangeEffect","globalConfigContext","useContext","GlobalConfigContext","themeContext","ThemeContext","isFocused","setIsFocused","useState","valueSelf","setValueSelf","current","controlled","sharedValue","Animated","Value","useMemo","trackColor_","mapSwitchTrackColorToken","thumbColor_","mapSwitchThumbColorToken","colorScheme","blurHandler","useCallback","event","focusHandler","pressHandler","self","transformInterpolationOutputRange","ltr","sizeStyle","width","thumbSizeStyle","rtl","reverse","useEffect","timing","toValue","duration","easing","useNativeDriver","start","useImperativeHandle","Object","assign","setValue","valueParam","jsxs","PressableAnimated","FlexStyleSheet","justify_center","baseStyle","container","backgroundColor","interpolate","inputRange","interpolationRange","outputRange","baseStyleCarbon","containerReadonly","children","jsx","View","items_center","thumb","transform","translateX","IconCheckmarkAnimated","fill","mapIconAnimatedFillColor","opacity","CommonStyleSheet","absolute","focusBoxSizeStyle","focusBox","focusBoxBorderColor","StyleSheet","create","borderRadius","borderWidth","CarbonStyleSheet","borderColor","color","border_subtle_00","focus","height","small","normal","gray_10","Color","Token","toggle_off","gray_100","support_success","disabled","button_disabled","read_only","focused","icon_on_color","icon_on_color_disabled","icon_primary","Motion","Duration","fast_01","Easing","bezier","exit","productive","x1","y1","x2","y2","createAnimatedComponent","Pressable","IconCheckmark"],"sourceRoot":"../../../../src","sources":["components/switch/Switch.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAWA,IAAAC,YAAA,GAAAD,OAAA;AAUA,IAAAE,0BAAA,GAAAF,OAAA;AAKA,IAAAG,UAAA,GAAAC,sBAAA,CAAAJ,OAAA;AAEA,IAAAK,MAAA,GAAAL,OAAA;AAIA,IAAAM,OAAA,GAAAN,OAAA;AAKA,IAAAO,OAAA,GAAAP,OAAA;AAIA,IAAAQ,OAAA,GAAAR,OAAA;AAEuB,IAAAS,WAAA,GAAAT,OAAA;AAAA,SAAAI,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAA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IAC5CD,QAAQ,EAAEH,gCAAK,CAACC,KAAK,CAACE,QAAQ,CAACC;EAChC,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_carbonReactNativeElements","_checkmark","_interopRequireDefault","_index","_index2","_index3","_index4","_jsxRuntime","e","__esModule","default","Switch","exports","forwardRef","size","state","defaultValue","value","valueProp","trackColor","trackColorProp","thumbColor","thumbColorProp","motion","false","motionDefault","true","style","role","ariaChecked","onChange","onBlur","onFocus","onPress","props","forwardedRef","viewRef","useRef","ref","onChangeEffect","globalConfigContext","useContext","GlobalConfigContext","themeContext","ThemeContext","isFocused","setIsFocused","useState","valueSelf","setValueSelf","current","controlled","sharedValue","Animated","Value","useMemo","trackColor_","mapSwitchTrackColorToken","thumbColor_","mapSwitchThumbColorToken","colorScheme","blurHandler","useCallback","event","focusHandler","pressHandler","self","transformInterpolationOutputRange","ltr","sizeStyle","width","thumbSizeStyle","rtl","reverse","useEffect","timing","toValue","duration","easing","useNativeDriver","start","useImperativeHandle","Object","assign","setValue","valueParam","jsxs","PressableAnimated","FlexStyleSheet","justify_center","baseStyle","container","backgroundColor","interpolate","inputRange","interpolationRange","outputRange","baseStyleCarbon","containerReadonly","children","jsx","View","items_center","thumb","transform","translateX","IconCheckmarkAnimated","fill","mapIconAnimatedFillColor","opacity","CommonStyleSheet","absolute","focusBoxSizeStyle","focusBox","focusBoxBorderColor","StyleSheet","create","borderRadius","borderWidth","CarbonStyleSheet","borderColor","color","border_subtle_00","focus","height","small","normal","gray_10","Color","Token","toggle_off","gray_100","support_success","disabled","button_disabled","read_only","focused","icon_on_color","icon_on_color_disabled","icon_primary","Motion","Duration","fast_01","Easing","bezier","exit","productive","x1","y1","x2","y2","createAnimatedComponent","Pressable","IconCheckmark"],"sourceRoot":"../../../../src","sources":["components/switch/Switch.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAWA,IAAAC,YAAA,GAAAD,OAAA;AAUA,IAAAE,0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AI,CAACC,UAAU,CAACG,EAAE,EAChCT,iCAAM,CAACG,MAAM,CAACE,IAAI,CAACC,UAAU,CAACI,EAC/B;EACD,CAAgE;EAEjE/D,iBAAiB,GAChBlC,qBAAQ,CAACkG,uBAAuB,CAACC,sBAAS,CAAC;EAE5C9C,qBAAqB,GACpBrD,qBAAQ,CAACkG,uBAAuB,CAACE,kBAAa,CAAC;EAEhD7C,wBAAqE,GACpE;IACCmB,OAAO,EAAEC,gCAAK,CAACC,KAAK,CAACF,OAAO,CAACK,eAAe;IAC5CD,QAAQ,EAAEH,gCAAK,CAACC,KAAK,CAACE,QAAQ,CAACC;EAChC,CAAC","ignoreList":[]}
|
|
@@ -24,7 +24,7 @@ const Text = exports.Text = /*#__PURE__*/(0, _react.forwardRef)(function Text_({
|
|
|
24
24
|
const globalConfigContext = (0, _react.useContext)(_index.GlobalConfigContext);
|
|
25
25
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
26
26
|
...props,
|
|
27
|
-
dir: dir ?? globalConfigContext.rtl ?
|
|
27
|
+
dir: dir ?? globalConfigContext.rtl ? "rtl" : undefined,
|
|
28
28
|
style: [carbonStyle.text, getFontStyle(type, italic, weight), globalConfigContext.rtl ? _index2.CommonStyleSheet.rtl : undefined, style],
|
|
29
29
|
ref: ref
|
|
30
30
|
});
|
|
@@ -78,6 +78,9 @@ function getFontStyle(type, italic, overrideWeight) {
|
|
|
78
78
|
if (italic) {
|
|
79
79
|
return typeSetsItalicStyle[type];
|
|
80
80
|
}
|
|
81
|
+
if (overrideWeight) {
|
|
82
|
+
return [typeSetsStyle[type], mapFamilyStyle[overrideWeight]];
|
|
83
|
+
}
|
|
81
84
|
return typeSetsStyle[type];
|
|
82
85
|
}
|
|
83
86
|
//# sourceMappingURL=Text.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_carbonReactNativeElements","_index","_index2","_index3","_index4","_jsxRuntime","Text","exports","forwardRef","Text_","type","italic","weight","style","dir","props","ref","useContext","ThemeContext","globalConfigContext","GlobalConfigContext","jsx","rtl","undefined","carbonStyle","text","getFontStyle","CommonStyleSheet","mapFamilyStyle","TextStyleSheet","thin","extralight","light","normal","medium","semibold","bold","mapFamilyItalicStyle","thin_italic","extralight_italic","light_italic","normal_italic","medium_italic","semibold_italic","bold_italic","createTypeSetsStyle","StyleSheet","create","Object","entries","Typography","TypeSets","reduce","accumulator","key_","val","key","fontWeight","CarbonStyleSheet","color","text_primary","typeSetsStyle","typeSetsItalicStyle","overrideWeight"],"sourceRoot":"../../../../src","sources":["components/text/Text.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAKA,IAAAC,YAAA,GAAAD,OAAA;AAOA,IAAAE,0BAAA,GAAAF,OAAA;AAKA,IAAAG,MAAA,GAAAH,OAAA;AAIA,IAAAI,OAAA,GAAAJ,OAAA;AAKA,IAAAK,OAAA,GAAAL,OAAA;AAIA,IAAAM,OAAA,GAAAN,OAAA;AAEuB,IAAAO,WAAA,GAAAP,OAAA;AAUhB,MAAMQ,IAAI,GAAAC,OAAA,CAAAD,IAAA,gBAAG,IAAAE,iBAAU,EAC7B,SAASC,KAAKA,CACb;EACCC,IAAI;EACJC,MAAM,GAAG,KAAK;EACdC,MAAM;EACNC,KAAK;EACLC,GAAG;EACH,GAAGC;AACJ,CAAC,EACDC,GAAG,EACF;EAED,IAAAC,iBAAU,EAACC,oBAAY,CAAC;EAExB,MACCC,mBAAmB,GAClB,IAAAF,iBAAU,EAACG,0BAAmB,CAAC;EAEjC,oBACC,IAAAf,WAAA,CAAAgB,GAAA,EAACtB,YAAA,CAAAO,IAAI;IAAA,GACCS,KAAK;IACVD,GAAG,EAAGA,GAAG,IAAIK,mBAAmB,CAACG,GAAG,GAAG,KAAK,GAAGC,SAAW;IAC1DV,KAAK,EAAG,CACPW,WAAW,CAACC,IAAI,EAChBC,YAAY,CAAChB,IAAI,EAAEC,MAAM,EAAEC,MAA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oB,CAACkB,GAAG,CAACE,UAAU,CAAC,GACpC7B,cAAc,CAAC2B,GAAG,CAACE,UAAU,CAAC;MAEnC,CAAC;MACD,OAAOJ,WAAW;IACnB,CAAC,EAAE,CAAC,CAAkB,CACvB,CAAC;EACF,CAAC;EAED7B,WAAW,GACVkC,wBAAgB,CAACX,MAAM,CAAC;IACvBtB,IAAI,EAAE;MACLkC,KAAK,EAAED,wBAAgB,CAACC,KAAK,CAACC;IAC/B;EACD,CAAC,CAAC;EAEHC,aAAa,GACZhB,mBAAmB,CAAC,CAAC;EAEtBiB,mBAAmB,GAClBjB,mBAAmB,CAAC,IAAI,CAAC;AAE3B,SAASnB,YAAYA,CACpBhB,IAAwB,EACxBC,MAAgB,EAChBoD,cAAoC,EACb;EACvB,IAAG,CAACrD,IAAI,EAAE;IACT,OAAO,IAAI;EACZ;EAEA,IAAGC,MAAM,IAAIoD,cAAc,EAAE;IAC5B,OAAO,CAACD,mBAAmB,CAACpD,IAAI,CAAC,EAAE2B,oBAAoB,CAAC0B,cAAc,CAAC,CAAC;EACzE;EAEA,IAAGpD,MAAM,EAAE;IACV,OAAOmD,mBAAmB,CAACpD,IAAI,CAAC;EACjC;EAEA,
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_carbonReactNativeElements","_index","_index2","_index3","_index4","_jsxRuntime","Text","exports","forwardRef","Text_","type","italic","weight","style","dir","props","ref","useContext","ThemeContext","globalConfigContext","GlobalConfigContext","jsx","rtl","undefined","carbonStyle","text","getFontStyle","CommonStyleSheet","mapFamilyStyle","TextStyleSheet","thin","extralight","light","normal","medium","semibold","bold","mapFamilyItalicStyle","thin_italic","extralight_italic","light_italic","normal_italic","medium_italic","semibold_italic","bold_italic","createTypeSetsStyle","StyleSheet","create","Object","entries","Typography","TypeSets","reduce","accumulator","key_","val","key","fontWeight","CarbonStyleSheet","color","text_primary","typeSetsStyle","typeSetsItalicStyle","overrideWeight"],"sourceRoot":"../../../../src","sources":["components/text/Text.tsx"],"mappings":";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AC;AAE3B,SAASnB,YAAYA,CACpBhB,IAAwB,EACxBC,MAAgB,EAChBoD,cAAoC,EACb;EACvB,IAAG,CAACrD,IAAI,EAAE;IACT,OAAO,IAAI;EACZ;EAEA,IAAGC,MAAM,IAAIoD,cAAc,EAAE;IAC5B,OAAO,CAACD,mBAAmB,CAACpD,IAAI,CAAC,EAAE2B,oBAAoB,CAAC0B,cAAc,CAAC,CAAC;EACzE;EAEA,IAAGpD,MAAM,EAAE;IACV,OAAOmD,mBAAmB,CAACpD,IAAI,CAAC;EACjC;EAEA,IAAGqD,cAAc,EAAE;IAClB,OAAO,CAACF,aAAa,CAACnD,IAAI,CAAC,EAAEkB,cAAc,CAACmC,cAAc,CAAC,CAAC;EAC7D;EAEA,OAAOF,aAAa,CAACnD,IAAI,CAAC;AAC3B","ignoreList":[]}
|
|
@@ -15,7 +15,7 @@ const TextArea = exports.TextArea = /*#__PURE__*/(0, _react.forwardRef)(function
|
|
|
15
15
|
label,
|
|
16
16
|
helperText,
|
|
17
17
|
// hoist the `TextAreaFieldProps`
|
|
18
|
-
interactiveState =
|
|
18
|
+
interactiveState = "normal",
|
|
19
19
|
textInputStyle,
|
|
20
20
|
// -----
|
|
21
21
|
|
|
@@ -191,7 +191,7 @@ const TextArea = exports.TextArea = /*#__PURE__*/(0, _react.forwardRef)(function
|
|
|
191
191
|
smartInsertDelete: smartInsertDelete
|
|
192
192
|
}), !!helperText?.length && /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.FormHelperText, {
|
|
193
193
|
text: helperText,
|
|
194
|
-
error: interactiveState ===
|
|
194
|
+
error: interactiveState === "invalid",
|
|
195
195
|
style: styleSheet.helperText
|
|
196
196
|
})]
|
|
197
197
|
});
|
|
@@ -11,7 +11,7 @@ var _index = require("../text-input-field/index.js");
|
|
|
11
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
12
|
const TextAreaField = exports.TextAreaField = /*#__PURE__*/(0, _react.forwardRef)(function ({
|
|
13
13
|
style,
|
|
14
|
-
textAlignVertical =
|
|
14
|
+
textAlignVertical = "top",
|
|
15
15
|
textInputStyle,
|
|
16
16
|
...props
|
|
17
17
|
}, ref) {
|
|
@@ -26,7 +26,7 @@ const TextAreaField = exports.TextAreaField = /*#__PURE__*/(0, _react.forwardRef
|
|
|
26
26
|
});
|
|
27
27
|
const styleSheet = _reactNative.StyleSheet.create({
|
|
28
28
|
textAreaField: {
|
|
29
|
-
height:
|
|
29
|
+
height: "auto",
|
|
30
30
|
minHeight: _carbonReactNativeElements.Spacing.spacing_08
|
|
31
31
|
},
|
|
32
32
|
rnTextInput: {
|
|
@@ -35,7 +35,7 @@ const styleSheet = _reactNative.StyleSheet.create({
|
|
|
35
35
|
height: _carbonReactNativeElements.Typography.TypeSets.body_compact_01.lineHeight * 4 + 22,
|
|
36
36
|
..._reactNative.Platform.select({
|
|
37
37
|
web: {
|
|
38
|
-
resize:
|
|
38
|
+
resize: "vertical"
|
|
39
39
|
}
|
|
40
40
|
})
|
|
41
41
|
}
|
|
@@ -37,11 +37,11 @@ const TextAreaFluid = exports.TextAreaFluid = /*#__PURE__*/(0, _react.forwardRef
|
|
|
37
37
|
blockEndNode: !!helperText?.length && /*#__PURE__*/(0, _jsxRuntime.jsx)(_index3.FormHelperText, {
|
|
38
38
|
text: helperText,
|
|
39
39
|
style: [_index.FlexStyleSheet.flex_initial, styleSheet.helperText],
|
|
40
|
-
textTrailing: interactiveState ===
|
|
40
|
+
textTrailing: interactiveState === "invalid" ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_warningFilled.default, {
|
|
41
41
|
width: 16,
|
|
42
42
|
height: 16,
|
|
43
43
|
fill: mapIconInvalidColor[themeContext.colorScheme]
|
|
44
|
-
}) : interactiveState ===
|
|
44
|
+
}) : interactiveState === "warning" ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_warningAltFilled.default, {
|
|
45
45
|
width: 16,
|
|
46
46
|
height: 16,
|
|
47
47
|
fill: mapIconWarningColor[themeContext.colorScheme]
|
|
@@ -67,7 +67,7 @@ const styleSheet = _reactNative.StyleSheet.create({
|
|
|
67
67
|
paddingRight: 0
|
|
68
68
|
},
|
|
69
69
|
helperText: {
|
|
70
|
-
justifyContent:
|
|
70
|
+
justifyContent: "space-between",
|
|
71
71
|
paddingTop: _carbonReactNativeElements.Spacing.spacing_03,
|
|
72
72
|
paddingBottom: _carbonReactNativeElements.Spacing.spacing_03,
|
|
73
73
|
paddingLeft: _carbonReactNativeElements.Spacing.spacing_05,
|
|
@@ -15,8 +15,8 @@ const TextInput = exports.TextInput = /*#__PURE__*/(0, _react.forwardRef)(functi
|
|
|
15
15
|
label,
|
|
16
16
|
helperText,
|
|
17
17
|
// hoist the `TextInputFieldProps`
|
|
18
|
-
size =
|
|
19
|
-
interactiveState =
|
|
18
|
+
size = "medium",
|
|
19
|
+
interactiveState = "normal",
|
|
20
20
|
textInputStyle,
|
|
21
21
|
// -----
|
|
22
22
|
|
|
@@ -195,7 +195,7 @@ const TextInput = exports.TextInput = /*#__PURE__*/(0, _react.forwardRef)(functi
|
|
|
195
195
|
smartInsertDelete: smartInsertDelete
|
|
196
196
|
}), !!helperText?.length && /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.FormHelperText, {
|
|
197
197
|
text: helperText,
|
|
198
|
-
error: interactiveState ===
|
|
198
|
+
error: interactiveState === "invalid",
|
|
199
199
|
style: styleSheet.helperText
|
|
200
200
|
})]
|
|
201
201
|
});
|
|
@@ -16,8 +16,8 @@ var _index4 = require("./_rn-text-input/index.js");
|
|
|
16
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
17
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
18
18
|
const TextInputField = exports.TextInputField = /*#__PURE__*/(0, _react.forwardRef)(function TextInputField({
|
|
19
|
-
size =
|
|
20
|
-
interactiveState =
|
|
19
|
+
size = "medium",
|
|
20
|
+
interactiveState = "normal",
|
|
21
21
|
hideInteractiveStateIcon,
|
|
22
22
|
blockStartNode,
|
|
23
23
|
blockEndNode,
|
|
@@ -137,10 +137,10 @@ const TextInputField = exports.TextInputField = /*#__PURE__*/(0, _react.forwardR
|
|
|
137
137
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Animated.View, {
|
|
138
138
|
ref: ref,
|
|
139
139
|
...viewProps,
|
|
140
|
-
style: [styleSheet.textInputField, carbonStyleSheet.textInputField, textInputFieldSizeStyleSheet[size], textInputFieldByLayerStyleSheet[layerContextLevel], interactiveState ===
|
|
140
|
+
style: [styleSheet.textInputField, carbonStyleSheet.textInputField, textInputFieldSizeStyleSheet[size], textInputFieldByLayerStyleSheet[layerContextLevel], interactiveState === "invalid" ? carbonStyleSheet.invalidOutlineColor : {
|
|
141
141
|
outlineColor: focusAnimatedValue.current.interpolate({
|
|
142
142
|
inputRange: [0, 1],
|
|
143
|
-
outputRange: [
|
|
143
|
+
outputRange: ["transparent", mapOutlineColorFocus[themeContext.colorScheme]]
|
|
144
144
|
})
|
|
145
145
|
}, style],
|
|
146
146
|
children: [blockStartNode, /*#__PURE__*/(0, _jsxRuntime.jsx)(_index4.RNTextInput, {
|
|
@@ -158,7 +158,7 @@ const TextInputField = exports.TextInputField = /*#__PURE__*/(0, _react.forwardR
|
|
|
158
158
|
contextMenuHidden: contextMenuHidden,
|
|
159
159
|
defaultValue: defaultValue,
|
|
160
160
|
value: value,
|
|
161
|
-
editable: interactiveState ===
|
|
161
|
+
editable: interactiveState === "disabled" || interactiveState === "read_only" ? false : editable,
|
|
162
162
|
keyboardType: keyboardType,
|
|
163
163
|
inputMode: inputMode,
|
|
164
164
|
maxLength: maxLength,
|
|
@@ -217,12 +217,12 @@ const TextInputField = exports.TextInputField = /*#__PURE__*/(0, _react.forwardR
|
|
|
217
217
|
lineBreakStrategyIOS: lineBreakStrategyIOS,
|
|
218
218
|
lineBreakModeIOS: lineBreakModeIOS,
|
|
219
219
|
smartInsertDelete: smartInsertDelete
|
|
220
|
-
}), !hideInteractiveStateIcon && interactiveState ===
|
|
220
|
+
}), !hideInteractiveStateIcon && interactiveState === "invalid" ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_warningFilled.default, {
|
|
221
221
|
width: 16,
|
|
222
222
|
height: 16,
|
|
223
223
|
fill: mapIconInvalidColor[themeContext.colorScheme],
|
|
224
224
|
style: [styleSheet.icon, iconBySizeStyleSheet[size]]
|
|
225
|
-
}) : !hideInteractiveStateIcon && interactiveState ===
|
|
225
|
+
}) : !hideInteractiveStateIcon && interactiveState === "warning" ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_warningAltFilled.default, {
|
|
226
226
|
width: 16,
|
|
227
227
|
height: 16,
|
|
228
228
|
fill: mapIconWarningColor[themeContext.colorScheme],
|
|
@@ -234,11 +234,11 @@ const styleSheet = _reactNative.StyleSheet.create({
|
|
|
234
234
|
textInputField: {
|
|
235
235
|
outlineWidth: 2,
|
|
236
236
|
outlineOffset: -2,
|
|
237
|
-
outlineStyle:
|
|
237
|
+
outlineStyle: "solid"
|
|
238
238
|
},
|
|
239
239
|
icon: {
|
|
240
|
-
pointerEvents:
|
|
241
|
-
position:
|
|
240
|
+
pointerEvents: "none",
|
|
241
|
+
position: "absolute",
|
|
242
242
|
right: _carbonReactNativeElements.Spacing.spacing_05
|
|
243
243
|
}
|
|
244
244
|
}),
|
|
@@ -24,9 +24,9 @@ const RNTextInput = exports.RNTextInput = /*#__PURE__*/(0, _react.forwardRef)(fu
|
|
|
24
24
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TextInput, {
|
|
25
25
|
ref: ref,
|
|
26
26
|
...props,
|
|
27
|
-
editable: interactiveState ===
|
|
27
|
+
editable: interactiveState === "disabled" || interactiveState === "read_only" ? false : editable,
|
|
28
28
|
placeholderTextColor: placeholderTextColor ?? mapPlaceholderTextColor[themeContext.colorScheme],
|
|
29
|
-
dir: dir ?? globalConfigContext.rtl ?
|
|
29
|
+
dir: dir ?? globalConfigContext.rtl ? "rtl" : undefined,
|
|
30
30
|
style: [styleSheet.rnTextInput,
|
|
31
31
|
// FIXME: i don't know the correct type
|
|
32
32
|
mapStateStyleSheet[themeContext.colorScheme][interactiveState], globalConfigContext.rtl ? _index2.CommonStyleSheet.rtl : undefined, style]
|
|
@@ -37,15 +37,15 @@ const styleSheet = _reactNative.StyleSheet.create({
|
|
|
37
37
|
flexGrow: 1,
|
|
38
38
|
paddingLeft: _carbonReactNativeElements.Spacing.spacing_05,
|
|
39
39
|
paddingRight: _carbonReactNativeElements.Spacing.spacing_05,
|
|
40
|
-
backgroundColor:
|
|
40
|
+
backgroundColor: "transparent",
|
|
41
41
|
borderBottomWidth: _reactNative.StyleSheet.hairlineWidth,
|
|
42
|
-
borderStyle:
|
|
43
|
-
fontFamily:
|
|
42
|
+
borderStyle: "solid",
|
|
43
|
+
fontFamily: "IBMPlexSans-Regular",
|
|
44
44
|
fontSize: _carbonReactNativeElements.Typography.TypeSets.body_compact_01.fontSize,
|
|
45
45
|
lineHeight: _carbonReactNativeElements.Typography.TypeSets.body_compact_01.lineHeight,
|
|
46
46
|
..._reactNative.Platform.select({
|
|
47
47
|
web: {
|
|
48
|
-
outlineStyle:
|
|
48
|
+
outlineStyle: "none"
|
|
49
49
|
}
|
|
50
50
|
})
|
|
51
51
|
}
|
|
@@ -60,7 +60,7 @@ const styleSheet = _reactNative.StyleSheet.create({
|
|
|
60
60
|
},
|
|
61
61
|
gray_10__disabled: {
|
|
62
62
|
color: _carbonReactNativeElements.Color.Token.gray_10.text_disabled,
|
|
63
|
-
borderBlockEndColor:
|
|
63
|
+
borderBlockEndColor: "transparent"
|
|
64
64
|
},
|
|
65
65
|
gray_10__read_only: {
|
|
66
66
|
color: _carbonReactNativeElements.Color.Token.gray_10.text_primary,
|
|
@@ -72,7 +72,7 @@ const styleSheet = _reactNative.StyleSheet.create({
|
|
|
72
72
|
},
|
|
73
73
|
gray_100__disabled: {
|
|
74
74
|
color: _carbonReactNativeElements.Color.Token.gray_100.text_disabled,
|
|
75
|
-
borderBlockEndColor:
|
|
75
|
+
borderBlockEndColor: "transparent"
|
|
76
76
|
},
|
|
77
77
|
gray_100__read_only: {
|
|
78
78
|
color: _carbonReactNativeElements.Color.Token.gray_100.text_primary,
|
|
@@ -38,11 +38,11 @@ const TextInputFluid = exports.TextInputFluid = /*#__PURE__*/(0, _react.forwardR
|
|
|
38
38
|
blockEndNode: !!helperText?.length && /*#__PURE__*/(0, _jsxRuntime.jsx)(_index3.FormHelperText, {
|
|
39
39
|
text: helperText,
|
|
40
40
|
style: [_index.FlexStyleSheet.flex_initial, styleSheet.helperText],
|
|
41
|
-
textTrailing: interactiveState ===
|
|
41
|
+
textTrailing: interactiveState === "invalid" ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_warningFilled.default, {
|
|
42
42
|
width: 16,
|
|
43
43
|
height: 16,
|
|
44
44
|
fill: mapIconInvalidColor[themeContext.colorScheme]
|
|
45
|
-
}) : interactiveState ===
|
|
45
|
+
}) : interactiveState === "warning" ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_warningAltFilled.default, {
|
|
46
46
|
width: 16,
|
|
47
47
|
height: 16,
|
|
48
48
|
fill: mapIconWarningColor[themeContext.colorScheme]
|
|
@@ -73,7 +73,7 @@ const styleSheet = _reactNative.StyleSheet.create({
|
|
|
73
73
|
paddingRight: 0
|
|
74
74
|
},
|
|
75
75
|
helperText: {
|
|
76
|
-
justifyContent:
|
|
76
|
+
justifyContent: "space-between",
|
|
77
77
|
paddingTop: _carbonReactNativeElements.Spacing.spacing_03,
|
|
78
78
|
paddingBottom: _carbonReactNativeElements.Spacing.spacing_03,
|
|
79
79
|
paddingLeft: _carbonReactNativeElements.Spacing.spacing_05,
|
|
@@ -15,7 +15,7 @@ var _index5 = require("../../switch/index.js");
|
|
|
15
15
|
var _index6 = require("../../text/index.js");
|
|
16
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
17
|
const Base = exports.Base = /*#__PURE__*/(0, _react.forwardRef)(function Base({
|
|
18
|
-
state =
|
|
18
|
+
state = "normal",
|
|
19
19
|
defaultValue,
|
|
20
20
|
value,
|
|
21
21
|
label,
|
|
@@ -49,15 +49,15 @@ const Base = exports.Base = /*#__PURE__*/(0, _react.forwardRef)(function Base({
|
|
|
49
49
|
}, []);
|
|
50
50
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
51
51
|
...viewProps,
|
|
52
|
-
dir: dir ?? globalConfigContext.rtl ?
|
|
52
|
+
dir: dir ?? globalConfigContext.rtl ? "rtl" : undefined,
|
|
53
53
|
style: [_index2.FlexStyleSheet.flex_row, _index2.FlexStyleSheet.flex_wrap, _index2.FlexStyleSheet.items_center, globalConfigContext.rtl ? _index2.CommonStyleSheet.rtl : undefined, style],
|
|
54
54
|
ref: viewRef,
|
|
55
55
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
|
|
56
56
|
...pressableProps,
|
|
57
57
|
role: "switch",
|
|
58
|
-
disabled: state !==
|
|
58
|
+
disabled: state !== "normal",
|
|
59
59
|
"aria-checked": value,
|
|
60
|
-
"aria-label": pressableProps?.[
|
|
60
|
+
"aria-label": pressableProps?.["aria-label"] || label,
|
|
61
61
|
onPress: pressHandler,
|
|
62
62
|
style: [_index2.CommonStyleSheet.absolute, _index2.CommonStyleSheet.w_full, _index2.CommonStyleSheet.h_full, baseStyle.pressable, pressableProps?.style]
|
|
63
63
|
}), !!label && /*#__PURE__*/(0, _jsxRuntime.jsx)(_index4.FormLabel, {
|
|
@@ -70,15 +70,15 @@ const Base = exports.Base = /*#__PURE__*/(0, _react.forwardRef)(function Base({
|
|
|
70
70
|
style: [_index2.CommonStyleSheet.w_full, baseStyle.label, formLabelProps?.style]
|
|
71
71
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index5.Switch, {
|
|
72
72
|
...switchProps,
|
|
73
|
-
"aria-label": switchProps?.[
|
|
73
|
+
"aria-label": switchProps?.["aria-label"] || label,
|
|
74
74
|
state: state,
|
|
75
|
-
disabled: state !==
|
|
75
|
+
disabled: state !== "normal",
|
|
76
76
|
role: "none",
|
|
77
77
|
defaultValue: defaultValue,
|
|
78
78
|
value: value,
|
|
79
79
|
onChange: onChange,
|
|
80
80
|
onPress: switchProps?.onPress ?? pressableProps?.onPress,
|
|
81
|
-
dir: switchProps?.dir ?? globalConfigContext.rtl ?
|
|
81
|
+
dir: switchProps?.dir ?? globalConfigContext.rtl ? "ltr" : undefined // Fix
|
|
82
82
|
,
|
|
83
83
|
style: [baseStyle.switch, globalConfigContext.rtl ? baseStyle.ltr : undefined,
|
|
84
84
|
// Fix
|
|
@@ -86,7 +86,7 @@ const Base = exports.Base = /*#__PURE__*/(0, _react.forwardRef)(function Base({
|
|
|
86
86
|
ref: switchRef
|
|
87
87
|
}), !!actionText && /*#__PURE__*/(0, _jsxRuntime.jsx)(_index6.Text, {
|
|
88
88
|
...actionTextProps,
|
|
89
|
-
type: actionTextProps?.type ||
|
|
89
|
+
type: actionTextProps?.type || "body_compact_01",
|
|
90
90
|
style: [baseStyle.actionText, mapActionTextStyle[themeContext.colorScheme][state], actionTextProps?.style],
|
|
91
91
|
children: actionText
|
|
92
92
|
})]
|
|
@@ -109,7 +109,7 @@ const baseStyle = _reactNative.StyleSheet.create({
|
|
|
109
109
|
* Fix
|
|
110
110
|
*/
|
|
111
111
|
ltr: {
|
|
112
|
-
direction:
|
|
112
|
+
direction: "ltr"
|
|
113
113
|
}
|
|
114
114
|
}),
|
|
115
115
|
coloringStyle = {
|
|
@@ -7,5 +7,5 @@ exports.BreakpointContext = void 0;
|
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
9
|
var _index = require("../../helpers/index.js");
|
|
10
|
-
const BreakpointContext = exports.BreakpointContext = /*#__PURE__*/(0, _react.createContext)(_index.BreakpointHelper.getToken(_reactNative.Dimensions.get(
|
|
10
|
+
const BreakpointContext = exports.BreakpointContext = /*#__PURE__*/(0, _react.createContext)(_index.BreakpointHelper.getToken(_reactNative.Dimensions.get("window").width));
|
|
11
11
|
//# sourceMappingURL=BreakpointContext.js.map
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.DialogContext = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
|
-
const error = new Error(
|
|
8
|
+
const error = new Error("Unitialized `<DialogProvider>`. Make sure you wrap your React app with `<DialogProvider>`");
|
|
9
9
|
const DialogContext = exports.DialogContext = /*#__PURE__*/(0, _react.createContext)({
|
|
10
10
|
show() {
|
|
11
11
|
throw error;
|
|
@@ -7,10 +7,10 @@ exports.ToastContext = void 0;
|
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
const ToastContext = exports.ToastContext = /*#__PURE__*/(0, _react.createContext)({
|
|
9
9
|
show() {
|
|
10
|
-
throw new Error(
|
|
10
|
+
throw new Error("Uninitialized ToastProvider");
|
|
11
11
|
},
|
|
12
12
|
dismiss() {
|
|
13
|
-
throw new Error(
|
|
13
|
+
throw new Error("Uninitialized ToastProvider");
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
//# sourceMappingURL=ToastContext.js.map
|