@audira/carbon-react-native 0.0.1-alpha.1
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/LICENSE +21 -0
- package/lib/commonjs/_carbon-react-native/index.js +25 -0
- package/lib/commonjs/_carbon-react-native/index.js.map +1 -0
- package/lib/commonjs/_style-sheet/create.js +59 -0
- package/lib/commonjs/_style-sheet/create.js.map +1 -0
- package/lib/commonjs/_style-sheet/index.js +12 -0
- package/lib/commonjs/_style-sheet/index.js.map +1 -0
- package/lib/commonjs/components/accordion/_context.js +9 -0
- package/lib/commonjs/components/accordion/_context.js.map +1 -0
- package/lib/commonjs/components/accordion/_header-border.js +33 -0
- package/lib/commonjs/components/accordion/_header-border.js.map +1 -0
- package/lib/commonjs/components/accordion/_header.js +156 -0
- package/lib/commonjs/components/accordion/_header.js.map +1 -0
- package/lib/commonjs/components/accordion/_item.js +91 -0
- package/lib/commonjs/components/accordion/_item.js.map +1 -0
- package/lib/commonjs/components/accordion/_motion.js +18 -0
- package/lib/commonjs/components/accordion/_motion.js.map +1 -0
- package/lib/commonjs/components/accordion/_styles.js +24 -0
- package/lib/commonjs/components/accordion/_styles.js.map +1 -0
- package/lib/commonjs/components/accordion/index.js +74 -0
- package/lib/commonjs/components/accordion/index.js.map +1 -0
- package/lib/commonjs/components/accordion/types.js +2 -0
- package/lib/commonjs/components/accordion/types.js.map +1 -0
- package/lib/commonjs/components/button/base/index.js +153 -0
- package/lib/commonjs/components/button/base/index.js.map +1 -0
- package/lib/commonjs/components/button/base-color/index.js +155 -0
- package/lib/commonjs/components/button/base-color/index.js.map +1 -0
- package/lib/commonjs/components/button/ghost/index.js +92 -0
- package/lib/commonjs/components/button/ghost/index.js.map +1 -0
- package/lib/commonjs/components/button/ghost-danger/index.js +92 -0
- package/lib/commonjs/components/button/ghost-danger/index.js.map +1 -0
- package/lib/commonjs/components/button/ghost-icon/index.js +81 -0
- package/lib/commonjs/components/button/ghost-icon/index.js.map +1 -0
- package/lib/commonjs/components/button/index.js +127 -0
- package/lib/commonjs/components/button/index.js.map +1 -0
- package/lib/commonjs/components/button/primary/index.js +74 -0
- package/lib/commonjs/components/button/primary/index.js.map +1 -0
- package/lib/commonjs/components/button/primary-danger/index.js +74 -0
- package/lib/commonjs/components/button/primary-danger/index.js.map +1 -0
- package/lib/commonjs/components/button/secondary/index.js +74 -0
- package/lib/commonjs/components/button/secondary/index.js.map +1 -0
- package/lib/commonjs/components/button/size.js +2 -0
- package/lib/commonjs/components/button/size.js.map +1 -0
- package/lib/commonjs/components/button/tertiary/index.js +89 -0
- package/lib/commonjs/components/button/tertiary/index.js.map +1 -0
- package/lib/commonjs/components/button/tertiary-danger/index.js +89 -0
- package/lib/commonjs/components/button/tertiary-danger/index.js.map +1 -0
- package/lib/commonjs/components/checkbox/index.js +117 -0
- package/lib/commonjs/components/checkbox/index.js.map +1 -0
- package/lib/commonjs/components/checkbox-group/index.js +98 -0
- package/lib/commonjs/components/checkbox-group/index.js.map +1 -0
- package/lib/commonjs/components/checkbox-input/index.js +208 -0
- package/lib/commonjs/components/checkbox-input/index.js.map +1 -0
- package/lib/commonjs/components/collapsible/index.js +134 -0
- package/lib/commonjs/components/collapsible/index.js.map +1 -0
- package/lib/commonjs/components/form-helper-text/index.js +41 -0
- package/lib/commonjs/components/form-helper-text/index.js.map +1 -0
- package/lib/commonjs/components/form-label/index.js +35 -0
- package/lib/commonjs/components/form-label/index.js.map +1 -0
- package/lib/commonjs/components/icon/index.js +42 -0
- package/lib/commonjs/components/icon/index.js.map +1 -0
- package/lib/commonjs/components/index.js +176 -0
- package/lib/commonjs/components/index.js.map +1 -0
- package/lib/commonjs/components/notification/_status-hooks/_base.js +52 -0
- package/lib/commonjs/components/notification/_status-hooks/_base.js.map +1 -0
- package/lib/commonjs/components/notification/_status-hooks/error/index.js +47 -0
- package/lib/commonjs/components/notification/_status-hooks/error/index.js.map +1 -0
- package/lib/commonjs/components/notification/_status-hooks/index.js +50 -0
- package/lib/commonjs/components/notification/_status-hooks/index.js.map +1 -0
- package/lib/commonjs/components/notification/_status-hooks/informational/index.js +47 -0
- package/lib/commonjs/components/notification/_status-hooks/informational/index.js.map +1 -0
- package/lib/commonjs/components/notification/_status-hooks/success/index.js +47 -0
- package/lib/commonjs/components/notification/_status-hooks/success/index.js.map +1 -0
- package/lib/commonjs/components/notification/_status-hooks/warning/index.js +47 -0
- package/lib/commonjs/components/notification/_status-hooks/warning/index.js.map +1 -0
- package/lib/commonjs/components/notification/_variant-context.js +24 -0
- package/lib/commonjs/components/notification/_variant-context.js.map +1 -0
- package/lib/commonjs/components/notification/_variants/_button-ghost.js +43 -0
- package/lib/commonjs/components/notification/_variants/_button-ghost.js.map +1 -0
- package/lib/commonjs/components/notification/_variants/_button-tertiary.js +43 -0
- package/lib/commonjs/components/notification/_variants/_button-tertiary.js.map +1 -0
- package/lib/commonjs/components/notification/_variants/actionable/index.js +42 -0
- package/lib/commonjs/components/notification/_variants/actionable/index.js.map +1 -0
- package/lib/commonjs/components/notification/_variants/actionable-inline/index.js +42 -0
- package/lib/commonjs/components/notification/_variants/actionable-inline/index.js.map +1 -0
- package/lib/commonjs/components/notification/_variants/callout/index.js +35 -0
- package/lib/commonjs/components/notification/_variants/callout/index.js.map +1 -0
- package/lib/commonjs/components/notification/_variants/callout-inline/index.js +35 -0
- package/lib/commonjs/components/notification/_variants/callout-inline/index.js.map +1 -0
- package/lib/commonjs/components/notification/_variants/index.js +61 -0
- package/lib/commonjs/components/notification/_variants/index.js.map +1 -0
- package/lib/commonjs/components/notification/_variants/toast/index.js +63 -0
- package/lib/commonjs/components/notification/_variants/toast/index.js.map +1 -0
- package/lib/commonjs/components/notification/actionable/error/index.js +49 -0
- package/lib/commonjs/components/notification/actionable/error/index.js.map +1 -0
- package/lib/commonjs/components/notification/actionable/index.js +50 -0
- package/lib/commonjs/components/notification/actionable/index.js.map +1 -0
- package/lib/commonjs/components/notification/actionable/informational/index.js +49 -0
- package/lib/commonjs/components/notification/actionable/informational/index.js.map +1 -0
- package/lib/commonjs/components/notification/actionable/success/index.js +49 -0
- package/lib/commonjs/components/notification/actionable/success/index.js.map +1 -0
- package/lib/commonjs/components/notification/actionable/warning/index.js +49 -0
- package/lib/commonjs/components/notification/actionable/warning/index.js.map +1 -0
- package/lib/commonjs/components/notification/actionable-inline/error/index.js +48 -0
- package/lib/commonjs/components/notification/actionable-inline/error/index.js.map +1 -0
- package/lib/commonjs/components/notification/actionable-inline/index.js +50 -0
- package/lib/commonjs/components/notification/actionable-inline/index.js.map +1 -0
- package/lib/commonjs/components/notification/actionable-inline/informational/index.js +48 -0
- package/lib/commonjs/components/notification/actionable-inline/informational/index.js.map +1 -0
- package/lib/commonjs/components/notification/actionable-inline/success/index.js +48 -0
- package/lib/commonjs/components/notification/actionable-inline/success/index.js.map +1 -0
- package/lib/commonjs/components/notification/actionable-inline/warning/index.js +48 -0
- package/lib/commonjs/components/notification/actionable-inline/warning/index.js.map +1 -0
- package/lib/commonjs/components/notification/base/index.js +170 -0
- package/lib/commonjs/components/notification/base/index.js.map +1 -0
- package/lib/commonjs/components/notification/callout/error/index.js +49 -0
- package/lib/commonjs/components/notification/callout/error/index.js.map +1 -0
- package/lib/commonjs/components/notification/callout/index.js +50 -0
- package/lib/commonjs/components/notification/callout/index.js.map +1 -0
- package/lib/commonjs/components/notification/callout/informational/index.js +49 -0
- package/lib/commonjs/components/notification/callout/informational/index.js.map +1 -0
- package/lib/commonjs/components/notification/callout/success/index.js +49 -0
- package/lib/commonjs/components/notification/callout/success/index.js.map +1 -0
- package/lib/commonjs/components/notification/callout/warning/index.js +49 -0
- package/lib/commonjs/components/notification/callout/warning/index.js.map +1 -0
- package/lib/commonjs/components/notification/callout-inline/error/index.js +48 -0
- package/lib/commonjs/components/notification/callout-inline/error/index.js.map +1 -0
- package/lib/commonjs/components/notification/callout-inline/index.js +50 -0
- package/lib/commonjs/components/notification/callout-inline/index.js.map +1 -0
- package/lib/commonjs/components/notification/callout-inline/informational/index.js +48 -0
- package/lib/commonjs/components/notification/callout-inline/informational/index.js.map +1 -0
- package/lib/commonjs/components/notification/callout-inline/success/index.js +48 -0
- package/lib/commonjs/components/notification/callout-inline/success/index.js.map +1 -0
- package/lib/commonjs/components/notification/callout-inline/warning/index.js +48 -0
- package/lib/commonjs/components/notification/callout-inline/warning/index.js.map +1 -0
- package/lib/commonjs/components/notification/index.js +62 -0
- package/lib/commonjs/components/notification/index.js.map +1 -0
- package/lib/commonjs/components/notification/subtitle/index.js +30 -0
- package/lib/commonjs/components/notification/subtitle/index.js.map +1 -0
- package/lib/commonjs/components/notification/subtitle-link/index.js +29 -0
- package/lib/commonjs/components/notification/subtitle-link/index.js.map +1 -0
- package/lib/commonjs/components/notification/toast/error/index.js +49 -0
- package/lib/commonjs/components/notification/toast/error/index.js.map +1 -0
- package/lib/commonjs/components/notification/toast/index.js +50 -0
- package/lib/commonjs/components/notification/toast/index.js.map +1 -0
- package/lib/commonjs/components/notification/toast/informational/index.js +49 -0
- package/lib/commonjs/components/notification/toast/informational/index.js.map +1 -0
- package/lib/commonjs/components/notification/toast/success/index.js +49 -0
- package/lib/commonjs/components/notification/toast/success/index.js.map +1 -0
- package/lib/commonjs/components/notification/toast/warning/index.js +49 -0
- package/lib/commonjs/components/notification/toast/warning/index.js.map +1 -0
- package/lib/commonjs/components/notification/types.js +2 -0
- package/lib/commonjs/components/notification/types.js.map +1 -0
- package/lib/commonjs/components/radio-button/index.js +106 -0
- package/lib/commonjs/components/radio-button/index.js.map +1 -0
- package/lib/commonjs/components/radio-button-group/_item-context.js +9 -0
- package/lib/commonjs/components/radio-button-group/_item-context.js.map +1 -0
- package/lib/commonjs/components/radio-button-group/_item.js +52 -0
- package/lib/commonjs/components/radio-button-group/_item.js.map +1 -0
- package/lib/commonjs/components/radio-button-group/_types/index.js +6 -0
- package/lib/commonjs/components/radio-button-group/_types/index.js.map +1 -0
- package/lib/commonjs/components/radio-button-group/_types/ref-base.js +6 -0
- package/lib/commonjs/components/radio-button-group/_types/ref-base.js.map +1 -0
- package/lib/commonjs/components/radio-button-group/index.js +141 -0
- package/lib/commonjs/components/radio-button-group/index.js.map +1 -0
- package/lib/commonjs/components/radio-button-input/index.js +200 -0
- package/lib/commonjs/components/radio-button-input/index.js.map +1 -0
- package/lib/commonjs/components/switch/index.js +245 -0
- package/lib/commonjs/components/switch/index.js.map +1 -0
- package/lib/commonjs/components/text/index.js +70 -0
- package/lib/commonjs/components/text/index.js.map +1 -0
- package/lib/commonjs/components/toggle/base/index.js +115 -0
- package/lib/commonjs/components/toggle/base/index.js.map +1 -0
- package/lib/commonjs/components/toggle/default/index.js +23 -0
- package/lib/commonjs/components/toggle/default/index.js.map +1 -0
- package/lib/commonjs/components/toggle/index.js +50 -0
- package/lib/commonjs/components/toggle/index.js.map +1 -0
- package/lib/commonjs/components/toggle/small/index.js +23 -0
- package/lib/commonjs/components/toggle/small/index.js.map +1 -0
- package/lib/commonjs/components/toggle/state.js +2 -0
- package/lib/commonjs/components/toggle/state.js.map +1 -0
- package/lib/commonjs/constants/color/code.json +273 -0
- package/lib/commonjs/constants/color/index.js +19 -0
- package/lib/commonjs/constants/color/index.js.map +1 -0
- package/lib/commonjs/constants/color/tokens/gray-10.js +181 -0
- package/lib/commonjs/constants/color/tokens/gray-10.js.map +1 -0
- package/lib/commonjs/constants/color/tokens/gray-100.js +181 -0
- package/lib/commonjs/constants/color/tokens/gray-100.js.map +1 -0
- package/lib/commonjs/constants/color/tokens/index.js +28 -0
- package/lib/commonjs/constants/color/tokens/index.js.map +1 -0
- package/lib/commonjs/constants/index.js +24 -0
- package/lib/commonjs/constants/index.js.map +1 -0
- package/lib/commonjs/constants/motion/index.js +71 -0
- package/lib/commonjs/constants/motion/index.js.map +1 -0
- package/lib/commonjs/constants/spacing.js +22 -0
- package/lib/commonjs/constants/spacing.js.map +1 -0
- package/lib/commonjs/constants/typography/font-family.js +23 -0
- package/lib/commonjs/constants/typography/font-family.js.map +1 -0
- package/lib/commonjs/constants/typography/index.js +28 -0
- package/lib/commonjs/constants/typography/index.js.map +1 -0
- package/lib/commonjs/constants/typography/type-sets.js +141 -0
- package/lib/commonjs/constants/typography/type-sets.js.map +1 -0
- package/lib/commonjs/contexts/global-config/context.js +12 -0
- package/lib/commonjs/contexts/global-config/context.js.map +1 -0
- package/lib/commonjs/contexts/global-config/provider.js +22 -0
- package/lib/commonjs/contexts/global-config/provider.js.map +1 -0
- package/lib/commonjs/contexts/index.js +28 -0
- package/lib/commonjs/contexts/index.js.map +1 -0
- package/lib/commonjs/contexts/theme/context.js +14 -0
- package/lib/commonjs/contexts/theme/context.js.map +1 -0
- package/lib/commonjs/contexts/theme/index.js +17 -0
- package/lib/commonjs/contexts/theme/index.js.map +1 -0
- package/lib/commonjs/contexts/theme/provider.js +31 -0
- package/lib/commonjs/contexts/theme/provider.js.map +1 -0
- package/lib/commonjs/globals/color-scheme/index.js +16 -0
- package/lib/commonjs/globals/color-scheme/index.js.map +1 -0
- package/lib/commonjs/globals/index.js +11 -0
- package/lib/commonjs/globals/index.js.map +1 -0
- package/lib/commonjs/helpers/color/get-color-scheme.js +15 -0
- package/lib/commonjs/helpers/color/get-color-scheme.js.map +1 -0
- package/lib/commonjs/helpers/color/get-color-token.js +14 -0
- package/lib/commonjs/helpers/color/get-color-token.js.map +1 -0
- package/lib/commonjs/helpers/color/hex-to-rgba.js +11 -0
- package/lib/commonjs/helpers/color/hex-to-rgba.js.map +1 -0
- package/lib/commonjs/helpers/color/index.js +39 -0
- package/lib/commonjs/helpers/color/index.js.map +1 -0
- package/lib/commonjs/helpers/index.js +11 -0
- package/lib/commonjs/helpers/index.js.map +1 -0
- package/lib/commonjs/index.js +94 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/styles/common.js +25 -0
- package/lib/commonjs/styles/common.js.map +1 -0
- package/lib/commonjs/styles/flex.js +82 -0
- package/lib/commonjs/styles/flex.js.map +1 -0
- package/lib/commonjs/styles/index.js +39 -0
- package/lib/commonjs/styles/index.js.map +1 -0
- package/lib/commonjs/styles/text.js +67 -0
- package/lib/commonjs/styles/text.js.map +1 -0
- package/lib/commonjs/types/@carbon/icons/index.d.js +2 -0
- package/lib/commonjs/types/@carbon/icons/index.d.js.map +1 -0
- package/lib/commonjs/types/index.js +6 -0
- package/lib/commonjs/types/index.js.map +1 -0
- package/lib/commonjs/types/shared.js +2 -0
- package/lib/commonjs/types/shared.js.map +1 -0
- package/lib/commonjs/types/theme/color-scheme.js +2 -0
- package/lib/commonjs/types/theme/color-scheme.js.map +1 -0
- package/lib/commonjs/types/theme/color-token.js +2 -0
- package/lib/commonjs/types/theme/color-token.js.map +1 -0
- package/lib/commonjs/types/theme/index.js +2 -0
- package/lib/commonjs/types/theme/index.js.map +1 -0
- package/lib/commonjs/types/typography.js +6 -0
- package/lib/commonjs/types/typography.js.map +1 -0
- package/lib/module/_carbon-react-native/index.js +21 -0
- package/lib/module/_carbon-react-native/index.js.map +1 -0
- package/lib/module/_style-sheet/create.js +55 -0
- package/lib/module/_style-sheet/create.js.map +1 -0
- package/lib/module/_style-sheet/index.js +8 -0
- package/lib/module/_style-sheet/index.js.map +1 -0
- package/lib/module/components/accordion/_context.js +5 -0
- package/lib/module/components/accordion/_context.js.map +1 -0
- package/lib/module/components/accordion/_header-border.js +29 -0
- package/lib/module/components/accordion/_header-border.js.map +1 -0
- package/lib/module/components/accordion/_header.js +149 -0
- package/lib/module/components/accordion/_header.js.map +1 -0
- package/lib/module/components/accordion/_item.js +87 -0
- package/lib/module/components/accordion/_item.js.map +1 -0
- package/lib/module/components/accordion/_motion.js +14 -0
- package/lib/module/components/accordion/_motion.js.map +1 -0
- package/lib/module/components/accordion/_styles.js +21 -0
- package/lib/module/components/accordion/_styles.js.map +1 -0
- package/lib/module/components/accordion/index.js +70 -0
- package/lib/module/components/accordion/index.js.map +1 -0
- package/lib/module/components/accordion/types.js +2 -0
- package/lib/module/components/accordion/types.js.map +1 -0
- package/lib/module/components/button/base/index.js +149 -0
- package/lib/module/components/button/base/index.js.map +1 -0
- package/lib/module/components/button/base-color/index.js +151 -0
- package/lib/module/components/button/base-color/index.js.map +1 -0
- package/lib/module/components/button/ghost/index.js +88 -0
- package/lib/module/components/button/ghost/index.js.map +1 -0
- package/lib/module/components/button/ghost-danger/index.js +88 -0
- package/lib/module/components/button/ghost-danger/index.js.map +1 -0
- package/lib/module/components/button/ghost-icon/index.js +77 -0
- package/lib/module/components/button/ghost-icon/index.js.map +1 -0
- package/lib/module/components/button/index.js +14 -0
- package/lib/module/components/button/index.js.map +1 -0
- package/lib/module/components/button/primary/index.js +70 -0
- package/lib/module/components/button/primary/index.js.map +1 -0
- package/lib/module/components/button/primary-danger/index.js +70 -0
- package/lib/module/components/button/primary-danger/index.js.map +1 -0
- package/lib/module/components/button/secondary/index.js +70 -0
- package/lib/module/components/button/secondary/index.js.map +1 -0
- package/lib/module/components/button/size.js +2 -0
- package/lib/module/components/button/size.js.map +1 -0
- package/lib/module/components/button/tertiary/index.js +85 -0
- package/lib/module/components/button/tertiary/index.js.map +1 -0
- package/lib/module/components/button/tertiary-danger/index.js +85 -0
- package/lib/module/components/button/tertiary-danger/index.js.map +1 -0
- package/lib/module/components/checkbox/index.js +113 -0
- package/lib/module/components/checkbox/index.js.map +1 -0
- package/lib/module/components/checkbox-group/index.js +93 -0
- package/lib/module/components/checkbox-group/index.js.map +1 -0
- package/lib/module/components/checkbox-input/index.js +203 -0
- package/lib/module/components/checkbox-input/index.js.map +1 -0
- package/lib/module/components/collapsible/index.js +128 -0
- package/lib/module/components/collapsible/index.js.map +1 -0
- package/lib/module/components/form-helper-text/index.js +37 -0
- package/lib/module/components/form-helper-text/index.js.map +1 -0
- package/lib/module/components/form-label/index.js +31 -0
- package/lib/module/components/form-label/index.js.map +1 -0
- package/lib/module/components/icon/index.js +35 -0
- package/lib/module/components/icon/index.js.map +1 -0
- package/lib/module/components/index.js +20 -0
- package/lib/module/components/index.js.map +1 -0
- package/lib/module/components/notification/_status-hooks/_base.js +48 -0
- package/lib/module/components/notification/_status-hooks/_base.js.map +1 -0
- package/lib/module/components/notification/_status-hooks/error/index.js +42 -0
- package/lib/module/components/notification/_status-hooks/error/index.js.map +1 -0
- package/lib/module/components/notification/_status-hooks/index.js +7 -0
- package/lib/module/components/notification/_status-hooks/index.js.map +1 -0
- package/lib/module/components/notification/_status-hooks/informational/index.js +42 -0
- package/lib/module/components/notification/_status-hooks/informational/index.js.map +1 -0
- package/lib/module/components/notification/_status-hooks/success/index.js +42 -0
- package/lib/module/components/notification/_status-hooks/success/index.js.map +1 -0
- package/lib/module/components/notification/_status-hooks/warning/index.js +42 -0
- package/lib/module/components/notification/_status-hooks/warning/index.js.map +1 -0
- package/lib/module/components/notification/_variant-context.js +19 -0
- package/lib/module/components/notification/_variant-context.js.map +1 -0
- package/lib/module/components/notification/_variants/_button-ghost.js +39 -0
- package/lib/module/components/notification/_variants/_button-ghost.js.map +1 -0
- package/lib/module/components/notification/_variants/_button-tertiary.js +39 -0
- package/lib/module/components/notification/_variants/_button-tertiary.js.map +1 -0
- package/lib/module/components/notification/_variants/actionable/index.js +38 -0
- package/lib/module/components/notification/_variants/actionable/index.js.map +1 -0
- package/lib/module/components/notification/_variants/actionable-inline/index.js +38 -0
- package/lib/module/components/notification/_variants/actionable-inline/index.js.map +1 -0
- package/lib/module/components/notification/_variants/callout/index.js +31 -0
- package/lib/module/components/notification/_variants/callout/index.js.map +1 -0
- package/lib/module/components/notification/_variants/callout-inline/index.js +31 -0
- package/lib/module/components/notification/_variants/callout-inline/index.js.map +1 -0
- package/lib/module/components/notification/_variants/index.js +8 -0
- package/lib/module/components/notification/_variants/index.js.map +1 -0
- package/lib/module/components/notification/_variants/toast/index.js +59 -0
- package/lib/module/components/notification/_variants/toast/index.js.map +1 -0
- package/lib/module/components/notification/actionable/error/index.js +45 -0
- package/lib/module/components/notification/actionable/error/index.js.map +1 -0
- package/lib/module/components/notification/actionable/index.js +7 -0
- package/lib/module/components/notification/actionable/index.js.map +1 -0
- package/lib/module/components/notification/actionable/informational/index.js +45 -0
- package/lib/module/components/notification/actionable/informational/index.js.map +1 -0
- package/lib/module/components/notification/actionable/success/index.js +45 -0
- package/lib/module/components/notification/actionable/success/index.js.map +1 -0
- package/lib/module/components/notification/actionable/warning/index.js +45 -0
- package/lib/module/components/notification/actionable/warning/index.js.map +1 -0
- package/lib/module/components/notification/actionable-inline/error/index.js +44 -0
- package/lib/module/components/notification/actionable-inline/error/index.js.map +1 -0
- package/lib/module/components/notification/actionable-inline/index.js +7 -0
- package/lib/module/components/notification/actionable-inline/index.js.map +1 -0
- package/lib/module/components/notification/actionable-inline/informational/index.js +44 -0
- package/lib/module/components/notification/actionable-inline/informational/index.js.map +1 -0
- package/lib/module/components/notification/actionable-inline/success/index.js +44 -0
- package/lib/module/components/notification/actionable-inline/success/index.js.map +1 -0
- package/lib/module/components/notification/actionable-inline/warning/index.js +44 -0
- package/lib/module/components/notification/actionable-inline/warning/index.js.map +1 -0
- package/lib/module/components/notification/base/index.js +165 -0
- package/lib/module/components/notification/base/index.js.map +1 -0
- package/lib/module/components/notification/callout/error/index.js +45 -0
- package/lib/module/components/notification/callout/error/index.js.map +1 -0
- package/lib/module/components/notification/callout/index.js +7 -0
- package/lib/module/components/notification/callout/index.js.map +1 -0
- package/lib/module/components/notification/callout/informational/index.js +45 -0
- package/lib/module/components/notification/callout/informational/index.js.map +1 -0
- package/lib/module/components/notification/callout/success/index.js +45 -0
- package/lib/module/components/notification/callout/success/index.js.map +1 -0
- package/lib/module/components/notification/callout/warning/index.js +45 -0
- package/lib/module/components/notification/callout/warning/index.js.map +1 -0
- package/lib/module/components/notification/callout-inline/error/index.js +44 -0
- package/lib/module/components/notification/callout-inline/error/index.js.map +1 -0
- package/lib/module/components/notification/callout-inline/index.js +7 -0
- package/lib/module/components/notification/callout-inline/index.js.map +1 -0
- package/lib/module/components/notification/callout-inline/informational/index.js +44 -0
- package/lib/module/components/notification/callout-inline/informational/index.js.map +1 -0
- package/lib/module/components/notification/callout-inline/success/index.js +44 -0
- package/lib/module/components/notification/callout-inline/success/index.js.map +1 -0
- package/lib/module/components/notification/callout-inline/warning/index.js +44 -0
- package/lib/module/components/notification/callout-inline/warning/index.js.map +1 -0
- package/lib/module/components/notification/index.js +12 -0
- package/lib/module/components/notification/index.js.map +1 -0
- package/lib/module/components/notification/subtitle/index.js +26 -0
- package/lib/module/components/notification/subtitle/index.js.map +1 -0
- package/lib/module/components/notification/subtitle-link/index.js +25 -0
- package/lib/module/components/notification/subtitle-link/index.js.map +1 -0
- package/lib/module/components/notification/toast/error/index.js +45 -0
- package/lib/module/components/notification/toast/error/index.js.map +1 -0
- package/lib/module/components/notification/toast/index.js +7 -0
- package/lib/module/components/notification/toast/index.js.map +1 -0
- package/lib/module/components/notification/toast/informational/index.js +45 -0
- package/lib/module/components/notification/toast/informational/index.js.map +1 -0
- package/lib/module/components/notification/toast/success/index.js +45 -0
- package/lib/module/components/notification/toast/success/index.js.map +1 -0
- package/lib/module/components/notification/toast/warning/index.js +45 -0
- package/lib/module/components/notification/toast/warning/index.js.map +1 -0
- package/lib/module/components/notification/types.js +2 -0
- package/lib/module/components/notification/types.js.map +1 -0
- package/lib/module/components/radio-button/index.js +102 -0
- package/lib/module/components/radio-button/index.js.map +1 -0
- package/lib/module/components/radio-button-group/_item-context.js +5 -0
- package/lib/module/components/radio-button-group/_item-context.js.map +1 -0
- package/lib/module/components/radio-button-group/_item.js +48 -0
- package/lib/module/components/radio-button-group/_item.js.map +1 -0
- package/lib/module/components/radio-button-group/_types/index.js +4 -0
- package/lib/module/components/radio-button-group/_types/index.js.map +1 -0
- package/lib/module/components/radio-button-group/_types/ref-base.js +4 -0
- package/lib/module/components/radio-button-group/_types/ref-base.js.map +1 -0
- package/lib/module/components/radio-button-group/index.js +136 -0
- package/lib/module/components/radio-button-group/index.js.map +1 -0
- package/lib/module/components/radio-button-input/index.js +196 -0
- package/lib/module/components/radio-button-input/index.js.map +1 -0
- package/lib/module/components/switch/index.js +238 -0
- package/lib/module/components/switch/index.js.map +1 -0
- package/lib/module/components/text/index.js +66 -0
- package/lib/module/components/text/index.js.map +1 -0
- package/lib/module/components/toggle/base/index.js +111 -0
- package/lib/module/components/toggle/base/index.js.map +1 -0
- package/lib/module/components/toggle/default/index.js +19 -0
- package/lib/module/components/toggle/default/index.js.map +1 -0
- package/lib/module/components/toggle/index.js +7 -0
- package/lib/module/components/toggle/index.js.map +1 -0
- package/lib/module/components/toggle/small/index.js +19 -0
- package/lib/module/components/toggle/small/index.js.map +1 -0
- package/lib/module/components/toggle/state.js +2 -0
- package/lib/module/components/toggle/state.js.map +1 -0
- package/lib/module/constants/color/code.json +273 -0
- package/lib/module/constants/color/index.js +6 -0
- package/lib/module/constants/color/index.js.map +1 -0
- package/lib/module/constants/color/tokens/gray-10.js +176 -0
- package/lib/module/constants/color/tokens/gray-10.js.map +1 -0
- package/lib/module/constants/color/tokens/gray-100.js +176 -0
- package/lib/module/constants/color/tokens/gray-100.js.map +1 -0
- package/lib/module/constants/color/tokens/index.js +5 -0
- package/lib/module/constants/color/tokens/index.js.map +1 -0
- package/lib/module/constants/index.js +8 -0
- package/lib/module/constants/index.js.map +1 -0
- package/lib/module/constants/motion/index.js +67 -0
- package/lib/module/constants/motion/index.js.map +1 -0
- package/lib/module/constants/spacing.js +18 -0
- package/lib/module/constants/spacing.js.map +1 -0
- package/lib/module/constants/typography/font-family.js +19 -0
- package/lib/module/constants/typography/font-family.js.map +1 -0
- package/lib/module/constants/typography/index.js +5 -0
- package/lib/module/constants/typography/index.js.map +1 -0
- package/lib/module/constants/typography/type-sets.js +137 -0
- package/lib/module/constants/typography/type-sets.js.map +1 -0
- package/lib/module/contexts/global-config/context.js +8 -0
- package/lib/module/contexts/global-config/context.js.map +1 -0
- package/lib/module/contexts/global-config/provider.js +18 -0
- package/lib/module/contexts/global-config/provider.js.map +1 -0
- package/lib/module/contexts/index.js +5 -0
- package/lib/module/contexts/index.js.map +1 -0
- package/lib/module/contexts/theme/context.js +10 -0
- package/lib/module/contexts/theme/context.js.map +1 -0
- package/lib/module/contexts/theme/index.js +4 -0
- package/lib/module/contexts/theme/index.js.map +1 -0
- package/lib/module/contexts/theme/provider.js +27 -0
- package/lib/module/contexts/theme/provider.js.map +1 -0
- package/lib/module/globals/color-scheme/index.js +11 -0
- package/lib/module/globals/color-scheme/index.js.map +1 -0
- package/lib/module/globals/index.js +5 -0
- package/lib/module/globals/index.js.map +1 -0
- package/lib/module/helpers/color/get-color-scheme.js +11 -0
- package/lib/module/helpers/color/get-color-scheme.js.map +1 -0
- package/lib/module/helpers/color/get-color-token.js +10 -0
- package/lib/module/helpers/color/get-color-token.js.map +1 -0
- package/lib/module/helpers/color/hex-to-rgba.js +7 -0
- package/lib/module/helpers/color/hex-to-rgba.js.map +1 -0
- package/lib/module/helpers/color/index.js +6 -0
- package/lib/module/helpers/color/index.js.map +1 -0
- package/lib/module/helpers/index.js +5 -0
- package/lib/module/helpers/index.js.map +1 -0
- package/lib/module/index.js +11 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/styles/common.js +21 -0
- package/lib/module/styles/common.js.map +1 -0
- package/lib/module/styles/flex.js +78 -0
- package/lib/module/styles/flex.js.map +1 -0
- package/lib/module/styles/index.js +6 -0
- package/lib/module/styles/index.js.map +1 -0
- package/lib/module/styles/text.js +63 -0
- package/lib/module/styles/text.js.map +1 -0
- package/lib/module/types/@carbon/icons/index.d.js +2 -0
- package/lib/module/types/@carbon/icons/index.d.js.map +1 -0
- package/lib/module/types/index.js +4 -0
- package/lib/module/types/index.js.map +1 -0
- package/lib/module/types/shared.js +2 -0
- package/lib/module/types/shared.js.map +1 -0
- package/lib/module/types/theme/color-scheme.js +2 -0
- package/lib/module/types/theme/color-scheme.js.map +1 -0
- package/lib/module/types/theme/color-token.js +2 -0
- package/lib/module/types/theme/color-token.js.map +1 -0
- package/lib/module/types/theme/index.js +2 -0
- package/lib/module/types/theme/index.js.map +1 -0
- package/lib/module/types/typography.js +4 -0
- package/lib/module/types/typography.js.map +1 -0
- package/lib/typescript/commonjs/package.json +1 -0
- package/lib/typescript/commonjs/src/_carbon-react-native/index.d.ts +7 -0
- package/lib/typescript/commonjs/src/_carbon-react-native/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/_style-sheet/create.d.ts +6 -0
- package/lib/typescript/commonjs/src/_style-sheet/create.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/_style-sheet/index.d.ts +5 -0
- package/lib/typescript/commonjs/src/_style-sheet/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/accordion/_context.d.ts +9 -0
- package/lib/typescript/commonjs/src/components/accordion/_context.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/accordion/_header-border.d.ts +10 -0
- package/lib/typescript/commonjs/src/components/accordion/_header-border.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/accordion/_header.d.ts +13 -0
- package/lib/typescript/commonjs/src/components/accordion/_header.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/accordion/_item.d.ts +23 -0
- package/lib/typescript/commonjs/src/components/accordion/_item.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/accordion/_motion.d.ts +3 -0
- package/lib/typescript/commonjs/src/components/accordion/_motion.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/accordion/_styles.d.ts +16 -0
- package/lib/typescript/commonjs/src/components/accordion/_styles.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/accordion/index.d.ts +16 -0
- package/lib/typescript/commonjs/src/components/accordion/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/accordion/types.d.ts +2 -0
- package/lib/typescript/commonjs/src/components/accordion/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/button/base/index.d.ts +37 -0
- package/lib/typescript/commonjs/src/components/button/base/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/button/base-color/index.d.ts +21 -0
- package/lib/typescript/commonjs/src/components/button/base-color/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/button/ghost/index.d.ts +5 -0
- package/lib/typescript/commonjs/src/components/button/ghost/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/button/ghost-danger/index.d.ts +5 -0
- package/lib/typescript/commonjs/src/components/button/ghost-danger/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/button/ghost-icon/index.d.ts +8 -0
- package/lib/typescript/commonjs/src/components/button/ghost-icon/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/button/index.d.ts +12 -0
- package/lib/typescript/commonjs/src/components/button/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/button/primary/index.d.ts +5 -0
- package/lib/typescript/commonjs/src/components/button/primary/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/button/primary-danger/index.d.ts +5 -0
- package/lib/typescript/commonjs/src/components/button/primary-danger/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/button/secondary/index.d.ts +5 -0
- package/lib/typescript/commonjs/src/components/button/secondary/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/button/size.d.ts +2 -0
- package/lib/typescript/commonjs/src/components/button/size.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/button/tertiary/index.d.ts +5 -0
- package/lib/typescript/commonjs/src/components/button/tertiary/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/button/tertiary-danger/index.d.ts +5 -0
- package/lib/typescript/commonjs/src/components/button/tertiary-danger/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/checkbox/index.d.ts +32 -0
- package/lib/typescript/commonjs/src/components/checkbox/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/checkbox-group/index.d.ts +21 -0
- package/lib/typescript/commonjs/src/components/checkbox-group/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/checkbox-input/index.d.ts +25 -0
- package/lib/typescript/commonjs/src/components/checkbox-input/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/collapsible/index.d.ts +26 -0
- package/lib/typescript/commonjs/src/components/collapsible/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/form-helper-text/index.d.ts +11 -0
- package/lib/typescript/commonjs/src/components/form-helper-text/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/form-label/index.d.ts +10 -0
- package/lib/typescript/commonjs/src/components/form-label/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/icon/index.d.ts +13 -0
- package/lib/typescript/commonjs/src/components/icon/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/index.d.ts +18 -0
- package/lib/typescript/commonjs/src/components/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/notification/_status-hooks/_base.d.ts +28 -0
- package/lib/typescript/commonjs/src/components/notification/_status-hooks/_base.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/notification/_status-hooks/error/index.d.ts +11 -0
- package/lib/typescript/commonjs/src/components/notification/_status-hooks/error/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/notification/_status-hooks/index.d.ts +5 -0
- package/lib/typescript/commonjs/src/components/notification/_status-hooks/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/notification/_status-hooks/informational/index.d.ts +11 -0
- package/lib/typescript/commonjs/src/components/notification/_status-hooks/informational/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/notification/_status-hooks/success/index.d.ts +11 -0
- package/lib/typescript/commonjs/src/components/notification/_status-hooks/success/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/notification/_status-hooks/warning/index.d.ts +11 -0
- package/lib/typescript/commonjs/src/components/notification/_status-hooks/warning/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/notification/_variant-context.d.ts +10 -0
- package/lib/typescript/commonjs/src/components/notification/_variant-context.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/notification/_variants/_button-ghost.d.ts +7 -0
- package/lib/typescript/commonjs/src/components/notification/_variants/_button-ghost.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/notification/_variants/_button-tertiary.d.ts +7 -0
- package/lib/typescript/commonjs/src/components/notification/_variants/_button-tertiary.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/notification/_variants/actionable/index.d.ts +30 -0
- package/lib/typescript/commonjs/src/components/notification/_variants/actionable/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/notification/_variants/actionable-inline/index.d.ts +30 -0
- package/lib/typescript/commonjs/src/components/notification/_variants/actionable-inline/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/notification/_variants/callout/index.d.ts +13 -0
- package/lib/typescript/commonjs/src/components/notification/_variants/callout/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/notification/_variants/callout-inline/index.d.ts +13 -0
- package/lib/typescript/commonjs/src/components/notification/_variants/callout-inline/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/notification/_variants/index.d.ts +6 -0
- package/lib/typescript/commonjs/src/components/notification/_variants/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/notification/_variants/toast/index.d.ts +17 -0
- package/lib/typescript/commonjs/src/components/notification/_variants/toast/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/notification/actionable/error/index.d.ts +9 -0
- package/lib/typescript/commonjs/src/components/notification/actionable/error/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/notification/actionable/index.d.ts +5 -0
- package/lib/typescript/commonjs/src/components/notification/actionable/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/notification/actionable/informational/index.d.ts +9 -0
- package/lib/typescript/commonjs/src/components/notification/actionable/informational/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/notification/actionable/success/index.d.ts +9 -0
- package/lib/typescript/commonjs/src/components/notification/actionable/success/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/notification/actionable/warning/index.d.ts +9 -0
- package/lib/typescript/commonjs/src/components/notification/actionable/warning/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/notification/actionable-inline/error/index.d.ts +9 -0
- package/lib/typescript/commonjs/src/components/notification/actionable-inline/error/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/notification/actionable-inline/index.d.ts +5 -0
- package/lib/typescript/commonjs/src/components/notification/actionable-inline/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/notification/actionable-inline/informational/index.d.ts +9 -0
- package/lib/typescript/commonjs/src/components/notification/actionable-inline/informational/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/notification/actionable-inline/success/index.d.ts +9 -0
- package/lib/typescript/commonjs/src/components/notification/actionable-inline/success/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/notification/actionable-inline/warning/index.d.ts +9 -0
- package/lib/typescript/commonjs/src/components/notification/actionable-inline/warning/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/notification/base/index.d.ts +29 -0
- package/lib/typescript/commonjs/src/components/notification/base/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/notification/callout/error/index.d.ts +9 -0
- package/lib/typescript/commonjs/src/components/notification/callout/error/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/notification/callout/index.d.ts +5 -0
- package/lib/typescript/commonjs/src/components/notification/callout/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/notification/callout/informational/index.d.ts +9 -0
- package/lib/typescript/commonjs/src/components/notification/callout/informational/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/notification/callout/success/index.d.ts +9 -0
- package/lib/typescript/commonjs/src/components/notification/callout/success/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/notification/callout/warning/index.d.ts +9 -0
- package/lib/typescript/commonjs/src/components/notification/callout/warning/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/notification/callout-inline/error/index.d.ts +9 -0
- package/lib/typescript/commonjs/src/components/notification/callout-inline/error/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/notification/callout-inline/index.d.ts +5 -0
- package/lib/typescript/commonjs/src/components/notification/callout-inline/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/notification/callout-inline/informational/index.d.ts +9 -0
- package/lib/typescript/commonjs/src/components/notification/callout-inline/informational/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/notification/callout-inline/success/index.d.ts +9 -0
- package/lib/typescript/commonjs/src/components/notification/callout-inline/success/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/notification/callout-inline/warning/index.d.ts +9 -0
- package/lib/typescript/commonjs/src/components/notification/callout-inline/warning/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/notification/index.d.ts +10 -0
- package/lib/typescript/commonjs/src/components/notification/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/notification/subtitle/index.d.ts +5 -0
- package/lib/typescript/commonjs/src/components/notification/subtitle/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/notification/subtitle-link/index.d.ts +5 -0
- package/lib/typescript/commonjs/src/components/notification/subtitle-link/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/notification/toast/error/index.d.ts +9 -0
- package/lib/typescript/commonjs/src/components/notification/toast/error/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/notification/toast/index.d.ts +5 -0
- package/lib/typescript/commonjs/src/components/notification/toast/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/notification/toast/informational/index.d.ts +9 -0
- package/lib/typescript/commonjs/src/components/notification/toast/informational/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/notification/toast/success/index.d.ts +9 -0
- package/lib/typescript/commonjs/src/components/notification/toast/success/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/notification/toast/warning/index.d.ts +9 -0
- package/lib/typescript/commonjs/src/components/notification/toast/warning/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/notification/types.d.ts +2 -0
- package/lib/typescript/commonjs/src/components/notification/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/radio-button/index.d.ts +32 -0
- package/lib/typescript/commonjs/src/components/radio-button/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/radio-button-group/_item-context.d.ts +8 -0
- package/lib/typescript/commonjs/src/components/radio-button-group/_item-context.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/radio-button-group/_item.d.ts +3 -0
- package/lib/typescript/commonjs/src/components/radio-button-group/_item.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/radio-button-group/_types/index.d.ts +27 -0
- package/lib/typescript/commonjs/src/components/radio-button-group/_types/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/radio-button-group/_types/ref-base.d.ts +9 -0
- package/lib/typescript/commonjs/src/components/radio-button-group/_types/ref-base.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/radio-button-group/index.d.ts +6 -0
- package/lib/typescript/commonjs/src/components/radio-button-group/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/radio-button-input/index.d.ts +22 -0
- package/lib/typescript/commonjs/src/components/radio-button-input/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/switch/index.d.ts +33 -0
- package/lib/typescript/commonjs/src/components/switch/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/text/index.d.ts +8 -0
- package/lib/typescript/commonjs/src/components/text/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/toggle/base/index.d.ts +33 -0
- package/lib/typescript/commonjs/src/components/toggle/base/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/toggle/default/index.d.ts +10 -0
- package/lib/typescript/commonjs/src/components/toggle/default/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/toggle/index.d.ts +5 -0
- package/lib/typescript/commonjs/src/components/toggle/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/toggle/small/index.d.ts +8 -0
- package/lib/typescript/commonjs/src/components/toggle/small/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/toggle/state.d.ts +2 -0
- package/lib/typescript/commonjs/src/components/toggle/state.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/constants/color/index.d.ts +4 -0
- package/lib/typescript/commonjs/src/constants/color/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/constants/color/tokens/gray-10.d.ts +172 -0
- package/lib/typescript/commonjs/src/constants/color/tokens/gray-10.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/constants/color/tokens/gray-100.d.ts +172 -0
- package/lib/typescript/commonjs/src/constants/color/tokens/gray-100.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/constants/color/tokens/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/constants/color/tokens/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/constants/index.d.ts +6 -0
- package/lib/typescript/commonjs/src/constants/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/constants/motion/index.d.ts +63 -0
- package/lib/typescript/commonjs/src/constants/motion/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/constants/spacing.d.ts +17 -0
- package/lib/typescript/commonjs/src/constants/spacing.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/constants/typography/font-family.d.ts +17 -0
- package/lib/typescript/commonjs/src/constants/typography/font-family.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/constants/typography/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/constants/typography/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/constants/typography/type-sets.d.ts +3 -0
- package/lib/typescript/commonjs/src/constants/typography/type-sets.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/contexts/global-config/context.d.ts +10 -0
- package/lib/typescript/commonjs/src/contexts/global-config/context.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/contexts/global-config/provider.d.ts +6 -0
- package/lib/typescript/commonjs/src/contexts/global-config/provider.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/contexts/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/contexts/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/contexts/theme/context.d.ts +7 -0
- package/lib/typescript/commonjs/src/contexts/theme/context.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/contexts/theme/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/contexts/theme/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/contexts/theme/provider.d.ts +11 -0
- package/lib/typescript/commonjs/src/contexts/theme/provider.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/globals/color-scheme/index.d.ts +5 -0
- package/lib/typescript/commonjs/src/globals/color-scheme/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/globals/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/globals/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/helpers/color/get-color-scheme.d.ts +4 -0
- package/lib/typescript/commonjs/src/helpers/color/get-color-scheme.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/helpers/color/get-color-token.d.ts +3 -0
- package/lib/typescript/commonjs/src/helpers/color/get-color-token.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/helpers/color/hex-to-rgba.d.ts +2 -0
- package/lib/typescript/commonjs/src/helpers/color/hex-to-rgba.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/helpers/color/index.d.ts +4 -0
- package/lib/typescript/commonjs/src/helpers/color/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/helpers/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/helpers/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/index.d.ts +9 -0
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/styles/common.d.ts +18 -0
- package/lib/typescript/commonjs/src/styles/common.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/styles/flex.d.ts +75 -0
- package/lib/typescript/commonjs/src/styles/flex.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/styles/index.d.ts +4 -0
- package/lib/typescript/commonjs/src/styles/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/styles/text.d.ts +59 -0
- package/lib/typescript/commonjs/src/styles/text.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/index.d.ts +5 -0
- package/lib/typescript/commonjs/src/types/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/shared.d.ts +2 -0
- package/lib/typescript/commonjs/src/types/shared.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/theme/color-scheme.d.ts +2 -0
- package/lib/typescript/commonjs/src/types/theme/color-scheme.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/theme/color-token.d.ts +2 -0
- package/lib/typescript/commonjs/src/types/theme/color-token.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/theme/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/types/theme/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/typography.d.ts +11 -0
- package/lib/typescript/commonjs/src/types/typography.d.ts.map +1 -0
- package/lib/typescript/module/package.json +1 -0
- package/lib/typescript/module/src/_carbon-react-native/index.d.ts +7 -0
- package/lib/typescript/module/src/_carbon-react-native/index.d.ts.map +1 -0
- package/lib/typescript/module/src/_style-sheet/create.d.ts +6 -0
- package/lib/typescript/module/src/_style-sheet/create.d.ts.map +1 -0
- package/lib/typescript/module/src/_style-sheet/index.d.ts +5 -0
- package/lib/typescript/module/src/_style-sheet/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/accordion/_context.d.ts +9 -0
- package/lib/typescript/module/src/components/accordion/_context.d.ts.map +1 -0
- package/lib/typescript/module/src/components/accordion/_header-border.d.ts +10 -0
- package/lib/typescript/module/src/components/accordion/_header-border.d.ts.map +1 -0
- package/lib/typescript/module/src/components/accordion/_header.d.ts +13 -0
- package/lib/typescript/module/src/components/accordion/_header.d.ts.map +1 -0
- package/lib/typescript/module/src/components/accordion/_item.d.ts +23 -0
- package/lib/typescript/module/src/components/accordion/_item.d.ts.map +1 -0
- package/lib/typescript/module/src/components/accordion/_motion.d.ts +3 -0
- package/lib/typescript/module/src/components/accordion/_motion.d.ts.map +1 -0
- package/lib/typescript/module/src/components/accordion/_styles.d.ts +16 -0
- package/lib/typescript/module/src/components/accordion/_styles.d.ts.map +1 -0
- package/lib/typescript/module/src/components/accordion/index.d.ts +16 -0
- package/lib/typescript/module/src/components/accordion/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/accordion/types.d.ts +2 -0
- package/lib/typescript/module/src/components/accordion/types.d.ts.map +1 -0
- package/lib/typescript/module/src/components/button/base/index.d.ts +37 -0
- package/lib/typescript/module/src/components/button/base/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/button/base-color/index.d.ts +21 -0
- package/lib/typescript/module/src/components/button/base-color/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/button/ghost/index.d.ts +5 -0
- package/lib/typescript/module/src/components/button/ghost/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/button/ghost-danger/index.d.ts +5 -0
- package/lib/typescript/module/src/components/button/ghost-danger/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/button/ghost-icon/index.d.ts +8 -0
- package/lib/typescript/module/src/components/button/ghost-icon/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/button/index.d.ts +12 -0
- package/lib/typescript/module/src/components/button/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/button/primary/index.d.ts +5 -0
- package/lib/typescript/module/src/components/button/primary/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/button/primary-danger/index.d.ts +5 -0
- package/lib/typescript/module/src/components/button/primary-danger/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/button/secondary/index.d.ts +5 -0
- package/lib/typescript/module/src/components/button/secondary/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/button/size.d.ts +2 -0
- package/lib/typescript/module/src/components/button/size.d.ts.map +1 -0
- package/lib/typescript/module/src/components/button/tertiary/index.d.ts +5 -0
- package/lib/typescript/module/src/components/button/tertiary/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/button/tertiary-danger/index.d.ts +5 -0
- package/lib/typescript/module/src/components/button/tertiary-danger/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/checkbox/index.d.ts +32 -0
- package/lib/typescript/module/src/components/checkbox/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/checkbox-group/index.d.ts +21 -0
- package/lib/typescript/module/src/components/checkbox-group/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/checkbox-input/index.d.ts +25 -0
- package/lib/typescript/module/src/components/checkbox-input/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/collapsible/index.d.ts +26 -0
- package/lib/typescript/module/src/components/collapsible/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/form-helper-text/index.d.ts +11 -0
- package/lib/typescript/module/src/components/form-helper-text/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/form-label/index.d.ts +10 -0
- package/lib/typescript/module/src/components/form-label/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/icon/index.d.ts +13 -0
- package/lib/typescript/module/src/components/icon/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/index.d.ts +18 -0
- package/lib/typescript/module/src/components/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/notification/_status-hooks/_base.d.ts +28 -0
- package/lib/typescript/module/src/components/notification/_status-hooks/_base.d.ts.map +1 -0
- package/lib/typescript/module/src/components/notification/_status-hooks/error/index.d.ts +11 -0
- package/lib/typescript/module/src/components/notification/_status-hooks/error/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/notification/_status-hooks/index.d.ts +5 -0
- package/lib/typescript/module/src/components/notification/_status-hooks/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/notification/_status-hooks/informational/index.d.ts +11 -0
- package/lib/typescript/module/src/components/notification/_status-hooks/informational/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/notification/_status-hooks/success/index.d.ts +11 -0
- package/lib/typescript/module/src/components/notification/_status-hooks/success/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/notification/_status-hooks/warning/index.d.ts +11 -0
- package/lib/typescript/module/src/components/notification/_status-hooks/warning/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/notification/_variant-context.d.ts +10 -0
- package/lib/typescript/module/src/components/notification/_variant-context.d.ts.map +1 -0
- package/lib/typescript/module/src/components/notification/_variants/_button-ghost.d.ts +7 -0
- package/lib/typescript/module/src/components/notification/_variants/_button-ghost.d.ts.map +1 -0
- package/lib/typescript/module/src/components/notification/_variants/_button-tertiary.d.ts +7 -0
- package/lib/typescript/module/src/components/notification/_variants/_button-tertiary.d.ts.map +1 -0
- package/lib/typescript/module/src/components/notification/_variants/actionable/index.d.ts +30 -0
- package/lib/typescript/module/src/components/notification/_variants/actionable/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/notification/_variants/actionable-inline/index.d.ts +30 -0
- package/lib/typescript/module/src/components/notification/_variants/actionable-inline/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/notification/_variants/callout/index.d.ts +13 -0
- package/lib/typescript/module/src/components/notification/_variants/callout/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/notification/_variants/callout-inline/index.d.ts +13 -0
- package/lib/typescript/module/src/components/notification/_variants/callout-inline/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/notification/_variants/index.d.ts +6 -0
- package/lib/typescript/module/src/components/notification/_variants/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/notification/_variants/toast/index.d.ts +17 -0
- package/lib/typescript/module/src/components/notification/_variants/toast/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/notification/actionable/error/index.d.ts +9 -0
- package/lib/typescript/module/src/components/notification/actionable/error/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/notification/actionable/index.d.ts +5 -0
- package/lib/typescript/module/src/components/notification/actionable/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/notification/actionable/informational/index.d.ts +9 -0
- package/lib/typescript/module/src/components/notification/actionable/informational/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/notification/actionable/success/index.d.ts +9 -0
- package/lib/typescript/module/src/components/notification/actionable/success/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/notification/actionable/warning/index.d.ts +9 -0
- package/lib/typescript/module/src/components/notification/actionable/warning/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/notification/actionable-inline/error/index.d.ts +9 -0
- package/lib/typescript/module/src/components/notification/actionable-inline/error/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/notification/actionable-inline/index.d.ts +5 -0
- package/lib/typescript/module/src/components/notification/actionable-inline/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/notification/actionable-inline/informational/index.d.ts +9 -0
- package/lib/typescript/module/src/components/notification/actionable-inline/informational/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/notification/actionable-inline/success/index.d.ts +9 -0
- package/lib/typescript/module/src/components/notification/actionable-inline/success/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/notification/actionable-inline/warning/index.d.ts +9 -0
- package/lib/typescript/module/src/components/notification/actionable-inline/warning/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/notification/base/index.d.ts +29 -0
- package/lib/typescript/module/src/components/notification/base/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/notification/callout/error/index.d.ts +9 -0
- package/lib/typescript/module/src/components/notification/callout/error/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/notification/callout/index.d.ts +5 -0
- package/lib/typescript/module/src/components/notification/callout/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/notification/callout/informational/index.d.ts +9 -0
- package/lib/typescript/module/src/components/notification/callout/informational/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/notification/callout/success/index.d.ts +9 -0
- package/lib/typescript/module/src/components/notification/callout/success/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/notification/callout/warning/index.d.ts +9 -0
- package/lib/typescript/module/src/components/notification/callout/warning/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/notification/callout-inline/error/index.d.ts +9 -0
- package/lib/typescript/module/src/components/notification/callout-inline/error/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/notification/callout-inline/index.d.ts +5 -0
- package/lib/typescript/module/src/components/notification/callout-inline/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/notification/callout-inline/informational/index.d.ts +9 -0
- package/lib/typescript/module/src/components/notification/callout-inline/informational/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/notification/callout-inline/success/index.d.ts +9 -0
- package/lib/typescript/module/src/components/notification/callout-inline/success/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/notification/callout-inline/warning/index.d.ts +9 -0
- package/lib/typescript/module/src/components/notification/callout-inline/warning/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/notification/index.d.ts +10 -0
- package/lib/typescript/module/src/components/notification/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/notification/subtitle/index.d.ts +5 -0
- package/lib/typescript/module/src/components/notification/subtitle/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/notification/subtitle-link/index.d.ts +5 -0
- package/lib/typescript/module/src/components/notification/subtitle-link/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/notification/toast/error/index.d.ts +9 -0
- package/lib/typescript/module/src/components/notification/toast/error/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/notification/toast/index.d.ts +5 -0
- package/lib/typescript/module/src/components/notification/toast/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/notification/toast/informational/index.d.ts +9 -0
- package/lib/typescript/module/src/components/notification/toast/informational/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/notification/toast/success/index.d.ts +9 -0
- package/lib/typescript/module/src/components/notification/toast/success/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/notification/toast/warning/index.d.ts +9 -0
- package/lib/typescript/module/src/components/notification/toast/warning/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/notification/types.d.ts +2 -0
- package/lib/typescript/module/src/components/notification/types.d.ts.map +1 -0
- package/lib/typescript/module/src/components/radio-button/index.d.ts +32 -0
- package/lib/typescript/module/src/components/radio-button/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/radio-button-group/_item-context.d.ts +8 -0
- package/lib/typescript/module/src/components/radio-button-group/_item-context.d.ts.map +1 -0
- package/lib/typescript/module/src/components/radio-button-group/_item.d.ts +3 -0
- package/lib/typescript/module/src/components/radio-button-group/_item.d.ts.map +1 -0
- package/lib/typescript/module/src/components/radio-button-group/_types/index.d.ts +27 -0
- package/lib/typescript/module/src/components/radio-button-group/_types/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/radio-button-group/_types/ref-base.d.ts +9 -0
- package/lib/typescript/module/src/components/radio-button-group/_types/ref-base.d.ts.map +1 -0
- package/lib/typescript/module/src/components/radio-button-group/index.d.ts +6 -0
- package/lib/typescript/module/src/components/radio-button-group/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/radio-button-input/index.d.ts +22 -0
- package/lib/typescript/module/src/components/radio-button-input/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/switch/index.d.ts +33 -0
- package/lib/typescript/module/src/components/switch/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/text/index.d.ts +8 -0
- package/lib/typescript/module/src/components/text/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/toggle/base/index.d.ts +33 -0
- package/lib/typescript/module/src/components/toggle/base/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/toggle/default/index.d.ts +10 -0
- package/lib/typescript/module/src/components/toggle/default/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/toggle/index.d.ts +5 -0
- package/lib/typescript/module/src/components/toggle/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/toggle/small/index.d.ts +8 -0
- package/lib/typescript/module/src/components/toggle/small/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/toggle/state.d.ts +2 -0
- package/lib/typescript/module/src/components/toggle/state.d.ts.map +1 -0
- package/lib/typescript/module/src/constants/color/index.d.ts +4 -0
- package/lib/typescript/module/src/constants/color/index.d.ts.map +1 -0
- package/lib/typescript/module/src/constants/color/tokens/gray-10.d.ts +172 -0
- package/lib/typescript/module/src/constants/color/tokens/gray-10.d.ts.map +1 -0
- package/lib/typescript/module/src/constants/color/tokens/gray-100.d.ts +172 -0
- package/lib/typescript/module/src/constants/color/tokens/gray-100.d.ts.map +1 -0
- package/lib/typescript/module/src/constants/color/tokens/index.d.ts +3 -0
- package/lib/typescript/module/src/constants/color/tokens/index.d.ts.map +1 -0
- package/lib/typescript/module/src/constants/index.d.ts +6 -0
- package/lib/typescript/module/src/constants/index.d.ts.map +1 -0
- package/lib/typescript/module/src/constants/motion/index.d.ts +63 -0
- package/lib/typescript/module/src/constants/motion/index.d.ts.map +1 -0
- package/lib/typescript/module/src/constants/spacing.d.ts +17 -0
- package/lib/typescript/module/src/constants/spacing.d.ts.map +1 -0
- package/lib/typescript/module/src/constants/typography/font-family.d.ts +17 -0
- package/lib/typescript/module/src/constants/typography/font-family.d.ts.map +1 -0
- package/lib/typescript/module/src/constants/typography/index.d.ts +3 -0
- package/lib/typescript/module/src/constants/typography/index.d.ts.map +1 -0
- package/lib/typescript/module/src/constants/typography/type-sets.d.ts +3 -0
- package/lib/typescript/module/src/constants/typography/type-sets.d.ts.map +1 -0
- package/lib/typescript/module/src/contexts/global-config/context.d.ts +10 -0
- package/lib/typescript/module/src/contexts/global-config/context.d.ts.map +1 -0
- package/lib/typescript/module/src/contexts/global-config/provider.d.ts +6 -0
- package/lib/typescript/module/src/contexts/global-config/provider.d.ts.map +1 -0
- package/lib/typescript/module/src/contexts/index.d.ts +3 -0
- package/lib/typescript/module/src/contexts/index.d.ts.map +1 -0
- package/lib/typescript/module/src/contexts/theme/context.d.ts +7 -0
- package/lib/typescript/module/src/contexts/theme/context.d.ts.map +1 -0
- package/lib/typescript/module/src/contexts/theme/index.d.ts +3 -0
- package/lib/typescript/module/src/contexts/theme/index.d.ts.map +1 -0
- package/lib/typescript/module/src/contexts/theme/provider.d.ts +11 -0
- package/lib/typescript/module/src/contexts/theme/provider.d.ts.map +1 -0
- package/lib/typescript/module/src/globals/color-scheme/index.d.ts +5 -0
- package/lib/typescript/module/src/globals/color-scheme/index.d.ts.map +1 -0
- package/lib/typescript/module/src/globals/index.d.ts +3 -0
- package/lib/typescript/module/src/globals/index.d.ts.map +1 -0
- package/lib/typescript/module/src/helpers/color/get-color-scheme.d.ts +4 -0
- package/lib/typescript/module/src/helpers/color/get-color-scheme.d.ts.map +1 -0
- package/lib/typescript/module/src/helpers/color/get-color-token.d.ts +3 -0
- package/lib/typescript/module/src/helpers/color/get-color-token.d.ts.map +1 -0
- package/lib/typescript/module/src/helpers/color/hex-to-rgba.d.ts +2 -0
- package/lib/typescript/module/src/helpers/color/hex-to-rgba.d.ts.map +1 -0
- package/lib/typescript/module/src/helpers/color/index.d.ts +4 -0
- package/lib/typescript/module/src/helpers/color/index.d.ts.map +1 -0
- package/lib/typescript/module/src/helpers/index.d.ts +3 -0
- package/lib/typescript/module/src/helpers/index.d.ts.map +1 -0
- package/lib/typescript/module/src/index.d.ts +9 -0
- package/lib/typescript/module/src/index.d.ts.map +1 -0
- package/lib/typescript/module/src/styles/common.d.ts +18 -0
- package/lib/typescript/module/src/styles/common.d.ts.map +1 -0
- package/lib/typescript/module/src/styles/flex.d.ts +75 -0
- package/lib/typescript/module/src/styles/flex.d.ts.map +1 -0
- package/lib/typescript/module/src/styles/index.d.ts +4 -0
- package/lib/typescript/module/src/styles/index.d.ts.map +1 -0
- package/lib/typescript/module/src/styles/text.d.ts +59 -0
- package/lib/typescript/module/src/styles/text.d.ts.map +1 -0
- package/lib/typescript/module/src/types/index.d.ts +5 -0
- package/lib/typescript/module/src/types/index.d.ts.map +1 -0
- package/lib/typescript/module/src/types/shared.d.ts +2 -0
- package/lib/typescript/module/src/types/shared.d.ts.map +1 -0
- package/lib/typescript/module/src/types/theme/color-scheme.d.ts +2 -0
- package/lib/typescript/module/src/types/theme/color-scheme.d.ts.map +1 -0
- package/lib/typescript/module/src/types/theme/color-token.d.ts +2 -0
- package/lib/typescript/module/src/types/theme/color-token.d.ts.map +1 -0
- package/lib/typescript/module/src/types/theme/index.d.ts +3 -0
- package/lib/typescript/module/src/types/theme/index.d.ts.map +1 -0
- package/lib/typescript/module/src/types/typography.d.ts +11 -0
- package/lib/typescript/module/src/types/typography.d.ts.map +1 -0
- package/package.json +73 -0
- package/src/_carbon-react-native/index.tsx +37 -0
- package/src/_style-sheet/create.ts +145 -0
- package/src/_style-sheet/index.ts +9 -0
- package/src/components/accordion/_context.tsx +19 -0
- package/src/components/accordion/_header-border.tsx +68 -0
- package/src/components/accordion/_header.tsx +269 -0
- package/src/components/accordion/_item.tsx +186 -0
- package/src/components/accordion/_motion.ts +27 -0
- package/src/components/accordion/_styles.ts +24 -0
- package/src/components/accordion/index.tsx +152 -0
- package/src/components/accordion/types.ts +4 -0
- package/src/components/button/base/index.tsx +270 -0
- package/src/components/button/base-color/index.tsx +277 -0
- package/src/components/button/ghost/index.tsx +132 -0
- package/src/components/button/ghost-danger/index.tsx +132 -0
- package/src/components/button/ghost-icon/index.tsx +125 -0
- package/src/components/button/index.tsx +11 -0
- package/src/components/button/primary/index.tsx +108 -0
- package/src/components/button/primary-danger/index.tsx +108 -0
- package/src/components/button/secondary/index.tsx +108 -0
- package/src/components/button/size.ts +7 -0
- package/src/components/button/tertiary/index.tsx +125 -0
- package/src/components/button/tertiary-danger/index.tsx +125 -0
- package/src/components/checkbox/index.tsx +239 -0
- package/src/components/checkbox-group/index.tsx +197 -0
- package/src/components/checkbox-input/index.tsx +368 -0
- package/src/components/collapsible/index.tsx +289 -0
- package/src/components/form-helper-text/index.tsx +84 -0
- package/src/components/form-label/index.tsx +66 -0
- package/src/components/icon/index.tsx +53 -0
- package/src/components/index.tsx +23 -0
- package/src/components/notification/_status-hooks/_base.tsx +97 -0
- package/src/components/notification/_status-hooks/error/index.tsx +61 -0
- package/src/components/notification/_status-hooks/index.tsx +4 -0
- package/src/components/notification/_status-hooks/informational/index.tsx +61 -0
- package/src/components/notification/_status-hooks/success/index.tsx +61 -0
- package/src/components/notification/_status-hooks/warning/index.tsx +61 -0
- package/src/components/notification/_variant-context.tsx +35 -0
- package/src/components/notification/_variants/_button-ghost.tsx +65 -0
- package/src/components/notification/_variants/_button-tertiary.tsx +65 -0
- package/src/components/notification/_variants/actionable/index.tsx +105 -0
- package/src/components/notification/_variants/actionable-inline/index.tsx +105 -0
- package/src/components/notification/_variants/callout/index.tsx +76 -0
- package/src/components/notification/_variants/callout-inline/index.tsx +76 -0
- package/src/components/notification/_variants/index.tsx +5 -0
- package/src/components/notification/_variants/toast/index.tsx +135 -0
- package/src/components/notification/actionable/error/index.tsx +86 -0
- package/src/components/notification/actionable/index.tsx +4 -0
- package/src/components/notification/actionable/informational/index.tsx +86 -0
- package/src/components/notification/actionable/success/index.tsx +86 -0
- package/src/components/notification/actionable/warning/index.tsx +86 -0
- package/src/components/notification/actionable-inline/error/index.tsx +85 -0
- package/src/components/notification/actionable-inline/index.tsx +4 -0
- package/src/components/notification/actionable-inline/informational/index.tsx +85 -0
- package/src/components/notification/actionable-inline/success/index.tsx +85 -0
- package/src/components/notification/actionable-inline/warning/index.tsx +85 -0
- package/src/components/notification/base/index.tsx +319 -0
- package/src/components/notification/callout/error/index.tsx +86 -0
- package/src/components/notification/callout/index.tsx +4 -0
- package/src/components/notification/callout/informational/index.tsx +86 -0
- package/src/components/notification/callout/success/index.tsx +86 -0
- package/src/components/notification/callout/warning/index.tsx +86 -0
- package/src/components/notification/callout-inline/error/index.tsx +85 -0
- package/src/components/notification/callout-inline/index.tsx +4 -0
- package/src/components/notification/callout-inline/informational/index.tsx +85 -0
- package/src/components/notification/callout-inline/success/index.tsx +85 -0
- package/src/components/notification/callout-inline/warning/index.tsx +85 -0
- package/src/components/notification/index.tsx +17 -0
- package/src/components/notification/subtitle/index.tsx +58 -0
- package/src/components/notification/subtitle-link/index.tsx +57 -0
- package/src/components/notification/toast/error/index.tsx +86 -0
- package/src/components/notification/toast/index.tsx +4 -0
- package/src/components/notification/toast/informational/index.tsx +86 -0
- package/src/components/notification/toast/success/index.tsx +86 -0
- package/src/components/notification/toast/warning/index.tsx +86 -0
- package/src/components/notification/types.ts +3 -0
- package/src/components/radio-button/index.tsx +238 -0
- package/src/components/radio-button-group/_item-context.tsx +15 -0
- package/src/components/radio-button-group/_item.tsx +91 -0
- package/src/components/radio-button-group/_types/index.ts +55 -0
- package/src/components/radio-button-group/_types/ref-base.ts +11 -0
- package/src/components/radio-button-group/index.tsx +251 -0
- package/src/components/radio-button-input/index.tsx +366 -0
- package/src/components/switch/index.tsx +448 -0
- package/src/components/text/index.tsx +135 -0
- package/src/components/toggle/base/index.tsx +254 -0
- package/src/components/toggle/default/index.tsx +41 -0
- package/src/components/toggle/index.tsx +4 -0
- package/src/components/toggle/small/index.tsx +39 -0
- package/src/components/toggle/state.ts +4 -0
- package/src/constants/color/code.json +273 -0
- package/src/constants/color/index.ts +7 -0
- package/src/constants/color/tokens/gray-10.ts +197 -0
- package/src/constants/color/tokens/gray-100.ts +197 -0
- package/src/constants/color/tokens/index.ts +2 -0
- package/src/constants/index.ts +11 -0
- package/src/constants/motion/index.ts +34 -0
- package/src/constants/spacing.ts +17 -0
- package/src/constants/typography/font-family.ts +16 -0
- package/src/constants/typography/index.ts +2 -0
- package/src/constants/typography/type-sets.ts +151 -0
- package/src/contexts/global-config/context.ts +20 -0
- package/src/contexts/global-config/provider.tsx +26 -0
- package/src/contexts/index.tsx +2 -0
- package/src/contexts/theme/context.ts +26 -0
- package/src/contexts/theme/index.tsx +5 -0
- package/src/contexts/theme/provider.tsx +55 -0
- package/src/globals/color-scheme/index.ts +13 -0
- package/src/globals/index.ts +5 -0
- package/src/helpers/color/get-color-scheme.ts +19 -0
- package/src/helpers/color/get-color-token.ts +14 -0
- package/src/helpers/color/hex-to-rgba.ts +11 -0
- package/src/helpers/color/index.ts +3 -0
- package/src/helpers/index.ts +5 -0
- package/src/index.tsx +9 -0
- package/src/styles/common.ts +21 -0
- package/src/styles/flex.ts +78 -0
- package/src/styles/index.ts +3 -0
- package/src/styles/text.ts +66 -0
- package/src/types/@carbon/icons/index.d.ts +1 -0
- package/src/types/index.ts +9 -0
- package/src/types/shared.ts +1 -0
- package/src/types/theme/color-scheme.ts +1 -0
- package/src/types/theme/color-token.ts +170 -0
- package/src/types/theme/index.ts +2 -0
- package/src/types/typography.ts +36 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
StyleSheet,
|
|
3
|
+
} from 'react-native'
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
SpacingConstant,
|
|
7
|
+
} from '../../constants'
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Sorry for named it %margin% but it is actually using padding
|
|
11
|
+
* https://carbondesignsystem.com/components/accordion/style/#margin-right
|
|
12
|
+
*/
|
|
13
|
+
export const MarginRightStyle =
|
|
14
|
+
StyleSheet.create({
|
|
15
|
+
large: {
|
|
16
|
+
paddingRight: '25%',
|
|
17
|
+
},
|
|
18
|
+
range_420_640: {
|
|
19
|
+
paddingRight: SpacingConstant.spacing_10,
|
|
20
|
+
},
|
|
21
|
+
small: {
|
|
22
|
+
paddingRight: SpacingConstant.spacing_05,
|
|
23
|
+
},
|
|
24
|
+
})
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import {
|
|
2
|
+
forwardRef,
|
|
3
|
+
useCallback,
|
|
4
|
+
useRef,
|
|
5
|
+
useState,
|
|
6
|
+
} from 'react'
|
|
7
|
+
|
|
8
|
+
import {
|
|
9
|
+
Dimensions,
|
|
10
|
+
StyleSheet,
|
|
11
|
+
View,
|
|
12
|
+
type ViewProps,
|
|
13
|
+
} from 'react-native'
|
|
14
|
+
|
|
15
|
+
import {
|
|
16
|
+
Context,
|
|
17
|
+
} from './_context'
|
|
18
|
+
|
|
19
|
+
import type {
|
|
20
|
+
HeaderProps,
|
|
21
|
+
} from './_header'
|
|
22
|
+
|
|
23
|
+
import {
|
|
24
|
+
HeaderBorder,
|
|
25
|
+
} from './_header-border'
|
|
26
|
+
|
|
27
|
+
import {
|
|
28
|
+
Item,
|
|
29
|
+
type ItemProps,
|
|
30
|
+
type ItemRef,
|
|
31
|
+
} from './_item'
|
|
32
|
+
|
|
33
|
+
import type {
|
|
34
|
+
AccordionSize,
|
|
35
|
+
} from './types'
|
|
36
|
+
|
|
37
|
+
import {
|
|
38
|
+
MarginRightStyle,
|
|
39
|
+
} from './_styles'
|
|
40
|
+
|
|
41
|
+
export type {
|
|
42
|
+
HeaderProps as AccordionHeaderProps,
|
|
43
|
+
ItemProps as AccordionItemProps,
|
|
44
|
+
ItemRef as AccordionItemRef,
|
|
45
|
+
AccordionSize,
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export interface AccordionProps extends Omit<ViewProps, 'children'> {
|
|
49
|
+
size?: AccordionSize,
|
|
50
|
+
flushAlignment?: boolean,
|
|
51
|
+
children?: React.ReactNode[],
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export interface AccordionRef extends View {
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
const Accordion_ = forwardRef<AccordionRef, AccordionProps>(
|
|
58
|
+
function Accordion(
|
|
59
|
+
{
|
|
60
|
+
size,
|
|
61
|
+
flushAlignment,
|
|
62
|
+
children,
|
|
63
|
+
style,
|
|
64
|
+
onLayout,
|
|
65
|
+
...props
|
|
66
|
+
},
|
|
67
|
+
forwardedRef,
|
|
68
|
+
) {
|
|
69
|
+
|
|
70
|
+
const
|
|
71
|
+
ref =
|
|
72
|
+
useRef<{
|
|
73
|
+
marginRightStyleKey: keyof typeof MarginRightStyle,
|
|
74
|
+
}>({
|
|
75
|
+
marginRightStyleKey: getMarginRightStyleKey(windowWidth),
|
|
76
|
+
}),
|
|
77
|
+
|
|
78
|
+
[marginRightStyleKey, setMarginRightStyleKey] =
|
|
79
|
+
useState(ref.current.marginRightStyleKey),
|
|
80
|
+
|
|
81
|
+
handlerLayout: NonNullable<ViewProps['onLayout']> =
|
|
82
|
+
useCallback(event => {
|
|
83
|
+
onLayout?.(event)
|
|
84
|
+
/**
|
|
85
|
+
* https://carbondesignsystem.com/components/accordion/style/#margin-right
|
|
86
|
+
*/
|
|
87
|
+
|
|
88
|
+
const key = getMarginRightStyleKey(windowWidth)
|
|
89
|
+
|
|
90
|
+
if(ref.current.marginRightStyleKey !== key) {
|
|
91
|
+
ref.current.marginRightStyleKey = key
|
|
92
|
+
setMarginRightStyleKey(key)
|
|
93
|
+
}
|
|
94
|
+
}, [
|
|
95
|
+
onLayout,
|
|
96
|
+
])
|
|
97
|
+
|
|
98
|
+
return (
|
|
99
|
+
<View
|
|
100
|
+
{ ...props }
|
|
101
|
+
style={ style }
|
|
102
|
+
onLayout={ handlerLayout }
|
|
103
|
+
ref={ forwardedRef }
|
|
104
|
+
>
|
|
105
|
+
<Context.Provider
|
|
106
|
+
value={{
|
|
107
|
+
size,
|
|
108
|
+
flushAlignment,
|
|
109
|
+
collapsibleContentContainerStyle: MarginRightStyle[marginRightStyleKey],
|
|
110
|
+
}}
|
|
111
|
+
>
|
|
112
|
+
{ children }
|
|
113
|
+
|
|
114
|
+
{ !!children?.length && (
|
|
115
|
+
<HeaderBorder
|
|
116
|
+
flushAlignment={ flushAlignment }
|
|
117
|
+
style={ baseStyle.lastAccordionHeaderBorder }
|
|
118
|
+
/>
|
|
119
|
+
) }
|
|
120
|
+
</Context.Provider>
|
|
121
|
+
</View>
|
|
122
|
+
)
|
|
123
|
+
|
|
124
|
+
},
|
|
125
|
+
)
|
|
126
|
+
|
|
127
|
+
export const Accordion = Object.assign(Accordion_, {
|
|
128
|
+
Item: Item,
|
|
129
|
+
})
|
|
130
|
+
|
|
131
|
+
const
|
|
132
|
+
baseStyle =
|
|
133
|
+
StyleSheet.create({
|
|
134
|
+
lastAccordionHeaderBorder: {
|
|
135
|
+
top: '100%',
|
|
136
|
+
},
|
|
137
|
+
}),
|
|
138
|
+
|
|
139
|
+
windowWidth =
|
|
140
|
+
Dimensions.get('window').width
|
|
141
|
+
|
|
142
|
+
function getMarginRightStyleKey(width: number): keyof typeof MarginRightStyle {
|
|
143
|
+
if(width < 420) {
|
|
144
|
+
return 'small'
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
if(width <= 640) {
|
|
148
|
+
return 'range_420_640'
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
return 'large'
|
|
152
|
+
}
|
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
import {
|
|
2
|
+
forwardRef,
|
|
3
|
+
} from 'react'
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
Pressable,
|
|
7
|
+
StyleSheet,
|
|
8
|
+
View,
|
|
9
|
+
type PressableProps,
|
|
10
|
+
type ViewProps,
|
|
11
|
+
} from 'react-native'
|
|
12
|
+
|
|
13
|
+
import {
|
|
14
|
+
SpacingConstant,
|
|
15
|
+
} from '../../../constants'
|
|
16
|
+
|
|
17
|
+
import {
|
|
18
|
+
FlexStyle,
|
|
19
|
+
} from '../../../styles'
|
|
20
|
+
|
|
21
|
+
import type {
|
|
22
|
+
SharedType,
|
|
23
|
+
} from '../../../types'
|
|
24
|
+
|
|
25
|
+
import {
|
|
26
|
+
Icon,
|
|
27
|
+
type IconProps,
|
|
28
|
+
} from '../../icon'
|
|
29
|
+
|
|
30
|
+
import {
|
|
31
|
+
Text,
|
|
32
|
+
type TextProps,
|
|
33
|
+
} from '../../text'
|
|
34
|
+
|
|
35
|
+
import type {
|
|
36
|
+
ButtonSize,
|
|
37
|
+
} from '../size'
|
|
38
|
+
|
|
39
|
+
export interface BaseProps extends Omit<PressableProps, 'children' | 'style'> {
|
|
40
|
+
/**
|
|
41
|
+
* Refer to https://carbondesignsystem.com/components/button/style/#sizes
|
|
42
|
+
* Default is `large_productive`
|
|
43
|
+
*/
|
|
44
|
+
size?: ButtonSize,
|
|
45
|
+
text?: string,
|
|
46
|
+
icon?: SharedType.CarbonIcon,
|
|
47
|
+
iconColor?: string,
|
|
48
|
+
/**
|
|
49
|
+
* This prop is useful to custom render at the icon position.
|
|
50
|
+
* `iconNode` takes precedence even if {@linkcode icon} prop is present.
|
|
51
|
+
*/
|
|
52
|
+
iconNode?: (
|
|
53
|
+
/**
|
|
54
|
+
* Use this param to resize icon view correctly according to each size of button
|
|
55
|
+
*/
|
|
56
|
+
iconSize: number,
|
|
57
|
+
/**
|
|
58
|
+
* Use this param to keep icon style nicely center aligned vertically with text
|
|
59
|
+
*/
|
|
60
|
+
iconStyle: IconProps['style'],
|
|
61
|
+
) => React.ReactNode,
|
|
62
|
+
/**
|
|
63
|
+
* Only for base-color button for Focus state UI purposes
|
|
64
|
+
*/
|
|
65
|
+
backgroundNode?: React.ReactNode,
|
|
66
|
+
style?: ViewProps['style'],
|
|
67
|
+
textStyle?: TextProps['style'],
|
|
68
|
+
iconStyle?: IconProps['style'],
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export const Base = forwardRef<View, BaseProps>(
|
|
72
|
+
function Base(
|
|
73
|
+
{
|
|
74
|
+
size = 'large_productive',
|
|
75
|
+
text,
|
|
76
|
+
icon,
|
|
77
|
+
iconColor,
|
|
78
|
+
iconNode,
|
|
79
|
+
backgroundNode,
|
|
80
|
+
style,
|
|
81
|
+
textStyle,
|
|
82
|
+
iconStyle,
|
|
83
|
+
role = 'button',
|
|
84
|
+
'aria-label': ariaLabel,
|
|
85
|
+
...props
|
|
86
|
+
},
|
|
87
|
+
ref,
|
|
88
|
+
) {
|
|
89
|
+
|
|
90
|
+
const iconSize = getIconSize(size)
|
|
91
|
+
|
|
92
|
+
return (
|
|
93
|
+
<Pressable
|
|
94
|
+
{ ...props }
|
|
95
|
+
role={ role }
|
|
96
|
+
aria-label={ ariaLabel ?? text }
|
|
97
|
+
style={ [
|
|
98
|
+
sizeStyle[size],
|
|
99
|
+
baseStyle.container,
|
|
100
|
+
getContainerPaddingRight(!!text, !!icon || !!iconNode),
|
|
101
|
+
style,
|
|
102
|
+
] }
|
|
103
|
+
ref={ ref }
|
|
104
|
+
>
|
|
105
|
+
{ backgroundNode }{/* only for base-color button, and this is not valid HTML per se */}
|
|
106
|
+
|
|
107
|
+
{ !!text && (
|
|
108
|
+
<Text
|
|
109
|
+
type={ getTextType(size) }
|
|
110
|
+
style={ [baseStyle.text, textStyle] }
|
|
111
|
+
>
|
|
112
|
+
{ text }
|
|
113
|
+
</Text>
|
|
114
|
+
) }
|
|
115
|
+
|
|
116
|
+
{ (!!icon && !iconNode) ? (
|
|
117
|
+
<Icon
|
|
118
|
+
src={ icon }
|
|
119
|
+
width={ iconSize }
|
|
120
|
+
height={ iconSize }
|
|
121
|
+
color={ iconColor }
|
|
122
|
+
style={ [
|
|
123
|
+
getIconMarginTopStyle(size),
|
|
124
|
+
getIconMarginLeftStyle(!!text),
|
|
125
|
+
iconStyle,
|
|
126
|
+
] }
|
|
127
|
+
/>
|
|
128
|
+
) : iconNode?.(
|
|
129
|
+
iconSize!,
|
|
130
|
+
[
|
|
131
|
+
getIconMarginTopStyle(size),
|
|
132
|
+
getIconMarginLeftStyle(!!text),
|
|
133
|
+
iconStyle,
|
|
134
|
+
],
|
|
135
|
+
) }
|
|
136
|
+
</Pressable>
|
|
137
|
+
)
|
|
138
|
+
|
|
139
|
+
},
|
|
140
|
+
)
|
|
141
|
+
|
|
142
|
+
const
|
|
143
|
+
baseStyle =
|
|
144
|
+
StyleSheet.create({
|
|
145
|
+
container: {
|
|
146
|
+
...FlexStyle.self_start,
|
|
147
|
+
...FlexStyle.flex_row,
|
|
148
|
+
...FlexStyle.justify_between,
|
|
149
|
+
overflow: 'hidden',
|
|
150
|
+
paddingLeft: SpacingConstant.spacing_05,
|
|
151
|
+
},
|
|
152
|
+
containerPR16: {
|
|
153
|
+
paddingRight: SpacingConstant.spacing_05,
|
|
154
|
+
},
|
|
155
|
+
containerPR64: {
|
|
156
|
+
paddingRight: SpacingConstant.spacing_10,
|
|
157
|
+
},
|
|
158
|
+
contentContainer: {
|
|
159
|
+
...FlexStyle.flex_initial,
|
|
160
|
+
maxHeight: SpacingConstant.spacing_09,
|
|
161
|
+
},
|
|
162
|
+
text: {
|
|
163
|
+
verticalAlign: 'middle',
|
|
164
|
+
maxHeight: 48,
|
|
165
|
+
},
|
|
166
|
+
iconML32: {
|
|
167
|
+
marginLeft: SpacingConstant.spacing_07,
|
|
168
|
+
},
|
|
169
|
+
}),
|
|
170
|
+
|
|
171
|
+
sizeStyle =
|
|
172
|
+
StyleSheet.create<Record<ButtonSize, { height: number }>>({
|
|
173
|
+
small: {
|
|
174
|
+
height: 32,
|
|
175
|
+
},
|
|
176
|
+
medium: {
|
|
177
|
+
height: 40,
|
|
178
|
+
},
|
|
179
|
+
large_productive: {
|
|
180
|
+
height: 48,
|
|
181
|
+
},
|
|
182
|
+
large_expressive: {
|
|
183
|
+
height: 48,
|
|
184
|
+
},
|
|
185
|
+
extra_large: {
|
|
186
|
+
height: 64,
|
|
187
|
+
},
|
|
188
|
+
'2xl': {
|
|
189
|
+
height: 80,
|
|
190
|
+
},
|
|
191
|
+
}),
|
|
192
|
+
|
|
193
|
+
mapContainerPR: Record<string, { paddingRight: number }> =
|
|
194
|
+
{
|
|
195
|
+
'text[false]_icon[false]': baseStyle.containerPR16,
|
|
196
|
+
'text[true]_icon[false]': baseStyle.containerPR64,
|
|
197
|
+
'text[false]_icon[true]': baseStyle.containerPR16,
|
|
198
|
+
'text[true]_icon[true]': baseStyle.containerPR16,
|
|
199
|
+
},
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* https://carbondesignsystem.com/components/button/style/#typography
|
|
203
|
+
*/
|
|
204
|
+
mapTextTypeByExpressive: Record<string, NonNullable<TextProps['type']>> =
|
|
205
|
+
{
|
|
206
|
+
false: 'body_compact_01',
|
|
207
|
+
true: 'body_compact_02',
|
|
208
|
+
},
|
|
209
|
+
|
|
210
|
+
mapIconSizeByExpressive: Record<string, number> =
|
|
211
|
+
{
|
|
212
|
+
false: 16,
|
|
213
|
+
true: 20,
|
|
214
|
+
},
|
|
215
|
+
|
|
216
|
+
mapIconMLByText: Record<string, { marginLeft: number } | null> =
|
|
217
|
+
{
|
|
218
|
+
false: null,
|
|
219
|
+
true: baseStyle.iconML32,
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* Expressive only when button size is LARGE_EXPRESSIVE. You can see this link
|
|
224
|
+
* https://carbondesignsystem.com/components/button/style/#sizes
|
|
225
|
+
*/
|
|
226
|
+
function isExpressive(
|
|
227
|
+
buttonSize: BaseProps['size'],
|
|
228
|
+
) {
|
|
229
|
+
return buttonSize === 'large_expressive'
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
function getContainerPaddingRight(
|
|
233
|
+
text: boolean,
|
|
234
|
+
icon: boolean,
|
|
235
|
+
) {
|
|
236
|
+
return mapContainerPR[`text[${text}]_icon[${icon}]`] as NonNullable<typeof mapContainerPR[keyof typeof mapContainerPR]>
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* Expressive only when button size is LARGE_EXPRESSIVE. You can see this link
|
|
241
|
+
* https://carbondesignsystem.com/components/button/style/#sizes
|
|
242
|
+
*/
|
|
243
|
+
function getTextType(buttonSize: BaseProps['size']) {
|
|
244
|
+
return mapTextTypeByExpressive[`${isExpressive(buttonSize)}`]
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* Expressive only when button size is LARGE_EXPRESSIVE. You can see this link
|
|
249
|
+
* https://carbondesignsystem.com/components/button/style/#sizes
|
|
250
|
+
*/
|
|
251
|
+
function getIconSize(buttonSize: BaseProps['size']) {
|
|
252
|
+
return mapIconSizeByExpressive[`${isExpressive(buttonSize)}`]
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
function getIconMarginTopStyle(buttonSize: NonNullable<BaseProps['size']>) {
|
|
256
|
+
const
|
|
257
|
+
iconSize =
|
|
258
|
+
mapIconSizeByExpressive[`${isExpressive(buttonSize)}`]!,
|
|
259
|
+
|
|
260
|
+
height =
|
|
261
|
+
Math.min(sizeStyle[buttonSize].height, sizeStyle.large_productive.height) // 48 at max
|
|
262
|
+
|
|
263
|
+
return {
|
|
264
|
+
marginTop: (height / 2) - (iconSize / 2),
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
function getIconMarginLeftStyle(hasText: boolean) {
|
|
269
|
+
return mapIconMLByText[`${hasText}`]
|
|
270
|
+
}
|
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useContext,
|
|
3
|
+
useCallback,
|
|
4
|
+
useState,
|
|
5
|
+
} from 'react'
|
|
6
|
+
|
|
7
|
+
import {
|
|
8
|
+
StyleSheet,
|
|
9
|
+
View,
|
|
10
|
+
type StyleProp,
|
|
11
|
+
type TextStyle,
|
|
12
|
+
type ViewStyle,
|
|
13
|
+
} from 'react-native'
|
|
14
|
+
|
|
15
|
+
import {
|
|
16
|
+
ColorConstant,
|
|
17
|
+
} from '../../../constants'
|
|
18
|
+
|
|
19
|
+
import {
|
|
20
|
+
GlobalConfigContext,
|
|
21
|
+
ThemeContext,
|
|
22
|
+
} from '../../../contexts'
|
|
23
|
+
|
|
24
|
+
import {
|
|
25
|
+
type ThemeType,
|
|
26
|
+
} from '../../../types'
|
|
27
|
+
|
|
28
|
+
import {
|
|
29
|
+
Base,
|
|
30
|
+
type BaseProps,
|
|
31
|
+
} from '../base'
|
|
32
|
+
|
|
33
|
+
export type BaseColorState =
|
|
34
|
+
| 'default'
|
|
35
|
+
| 'focused'
|
|
36
|
+
| 'hovered'
|
|
37
|
+
| 'pressed'
|
|
38
|
+
| 'disabled'
|
|
39
|
+
|
|
40
|
+
export interface BaseColorProps extends Omit<BaseProps, 'backgroundNode' | 'iconColor' | 'iconNode'> {
|
|
41
|
+
android_rippleEffectColor: string,
|
|
42
|
+
colorStateStyle: {
|
|
43
|
+
background: Record<BaseColorState, StyleProp<ViewStyle>>,
|
|
44
|
+
text: Record<BaseColorState, StyleProp<TextStyle>>,
|
|
45
|
+
icon: Record<BaseColorState, string>,
|
|
46
|
+
},
|
|
47
|
+
/**
|
|
48
|
+
* It extends `iconNode` prop from `BaseProps` to add one argument at start for icon coloring
|
|
49
|
+
*/
|
|
50
|
+
iconNode?: (
|
|
51
|
+
/**
|
|
52
|
+
* Use this param to coloring an icon correctly according each variant of button and its state, like focused, disabled, etc.
|
|
53
|
+
*/
|
|
54
|
+
iconColorState: string,
|
|
55
|
+
...params: Parameters<NonNullable<BaseProps['iconNode']>>
|
|
56
|
+
) => React.ReactNode,
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function BaseColor({
|
|
60
|
+
disabled,
|
|
61
|
+
style,
|
|
62
|
+
textStyle,
|
|
63
|
+
android_rippleEffectColor,
|
|
64
|
+
colorStateStyle,
|
|
65
|
+
icon,
|
|
66
|
+
iconNode,
|
|
67
|
+
onBlur,
|
|
68
|
+
onFocus,
|
|
69
|
+
onHoverIn,
|
|
70
|
+
onHoverOut,
|
|
71
|
+
onPressIn,
|
|
72
|
+
onPressOut,
|
|
73
|
+
android_ripple,
|
|
74
|
+
...props
|
|
75
|
+
}: BaseColorProps) {
|
|
76
|
+
|
|
77
|
+
const
|
|
78
|
+
globalConfigContext =
|
|
79
|
+
useContext(GlobalConfigContext),
|
|
80
|
+
|
|
81
|
+
themeContext =
|
|
82
|
+
useContext(ThemeContext),
|
|
83
|
+
|
|
84
|
+
[state, setState] =
|
|
85
|
+
useState({
|
|
86
|
+
focused: false,
|
|
87
|
+
hovered: false,
|
|
88
|
+
pressed: false,
|
|
89
|
+
}),
|
|
90
|
+
|
|
91
|
+
blurHandler: NonNullable<BaseProps['onBlur']> =
|
|
92
|
+
useCallback(event => {
|
|
93
|
+
onBlur?.(event)
|
|
94
|
+
setState(state_ => ({
|
|
95
|
+
...state_,
|
|
96
|
+
focused: false,
|
|
97
|
+
}))
|
|
98
|
+
}, [
|
|
99
|
+
onBlur,
|
|
100
|
+
]),
|
|
101
|
+
|
|
102
|
+
focusHandler: NonNullable<BaseProps['onFocus']> =
|
|
103
|
+
useCallback(event => {
|
|
104
|
+
onFocus?.(event)
|
|
105
|
+
setState(state_ => ({
|
|
106
|
+
...state_,
|
|
107
|
+
focused: true,
|
|
108
|
+
}))
|
|
109
|
+
}, [
|
|
110
|
+
onFocus,
|
|
111
|
+
]),
|
|
112
|
+
|
|
113
|
+
hoverInHandler: NonNullable<BaseProps['onHoverIn']> =
|
|
114
|
+
useCallback(event => {
|
|
115
|
+
onHoverIn?.(event)
|
|
116
|
+
setState(state_ => ({
|
|
117
|
+
...state_,
|
|
118
|
+
hovered: true,
|
|
119
|
+
}))
|
|
120
|
+
}, [
|
|
121
|
+
onHoverIn,
|
|
122
|
+
]),
|
|
123
|
+
|
|
124
|
+
hoverOutHandler: NonNullable<BaseProps['onHoverIn']> =
|
|
125
|
+
useCallback(event => {
|
|
126
|
+
onHoverOut?.(event)
|
|
127
|
+
setState(state_ => ({
|
|
128
|
+
...state_,
|
|
129
|
+
hovered: false,
|
|
130
|
+
}))
|
|
131
|
+
}, [
|
|
132
|
+
onHoverOut,
|
|
133
|
+
]),
|
|
134
|
+
|
|
135
|
+
pressInHandler: NonNullable<BaseProps['onPressIn']> =
|
|
136
|
+
useCallback(event => {
|
|
137
|
+
onPressIn?.(event)
|
|
138
|
+
setState(state_ => ({
|
|
139
|
+
...state_,
|
|
140
|
+
pressed: true,
|
|
141
|
+
}))
|
|
142
|
+
}, [
|
|
143
|
+
onPressIn,
|
|
144
|
+
]),
|
|
145
|
+
|
|
146
|
+
pressOutHandler: NonNullable<BaseProps['onPressOut']> =
|
|
147
|
+
useCallback(event => {
|
|
148
|
+
onPressOut?.(event)
|
|
149
|
+
setState(state_ => ({
|
|
150
|
+
...state_,
|
|
151
|
+
pressed: false,
|
|
152
|
+
}))
|
|
153
|
+
}, [
|
|
154
|
+
onPressOut,
|
|
155
|
+
]),
|
|
156
|
+
|
|
157
|
+
stateStyle =
|
|
158
|
+
getStateStyle(
|
|
159
|
+
colorStateStyle,
|
|
160
|
+
{
|
|
161
|
+
...state,
|
|
162
|
+
disabled: !!disabled,
|
|
163
|
+
},
|
|
164
|
+
android_ripple
|
|
165
|
+
? true
|
|
166
|
+
: android_ripple === null ? false : globalConfigContext.android_buttonRippleEffect,
|
|
167
|
+
)
|
|
168
|
+
|
|
169
|
+
return (
|
|
170
|
+
<Base
|
|
171
|
+
{ ...props }
|
|
172
|
+
android_ripple={ android_ripple ?? globalConfigContext.android_buttonRippleEffect ? {
|
|
173
|
+
// color: colorStateStyle.background.pressed.backgroundColor,
|
|
174
|
+
color: android_rippleEffectColor,
|
|
175
|
+
} : undefined }
|
|
176
|
+
backgroundNode={
|
|
177
|
+
<View
|
|
178
|
+
style={ [
|
|
179
|
+
styles.innerFocusBox,
|
|
180
|
+
state.focused
|
|
181
|
+
? mapInnerFocusBoxActiveStyle[themeContext.colorScheme]
|
|
182
|
+
: null,
|
|
183
|
+
] }
|
|
184
|
+
/>
|
|
185
|
+
}
|
|
186
|
+
disabled={ disabled }
|
|
187
|
+
onBlur={ blurHandler }
|
|
188
|
+
onFocus={ focusHandler }
|
|
189
|
+
onHoverIn={ hoverInHandler }
|
|
190
|
+
onHoverOut={ hoverOutHandler }
|
|
191
|
+
onPressIn={ pressInHandler }
|
|
192
|
+
onPressOut={ pressOutHandler }
|
|
193
|
+
iconColor={ stateStyle.icon }
|
|
194
|
+
icon={ !iconNode ? icon : undefined }
|
|
195
|
+
iconNode={
|
|
196
|
+
iconNode
|
|
197
|
+
? (...params) => iconNode(stateStyle.icon, ...params)
|
|
198
|
+
: undefined
|
|
199
|
+
}
|
|
200
|
+
style={ [
|
|
201
|
+
stateStyle.background,
|
|
202
|
+
style,
|
|
203
|
+
] }
|
|
204
|
+
textStyle={ [
|
|
205
|
+
stateStyle.text,
|
|
206
|
+
textStyle,
|
|
207
|
+
] }
|
|
208
|
+
/>
|
|
209
|
+
)
|
|
210
|
+
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
const
|
|
214
|
+
styles =
|
|
215
|
+
StyleSheet.create({
|
|
216
|
+
innerFocusBox: {
|
|
217
|
+
position: 'absolute',
|
|
218
|
+
top: 2,
|
|
219
|
+
right: 2,
|
|
220
|
+
bottom: 2,
|
|
221
|
+
left: 2,
|
|
222
|
+
borderWidth: 1,
|
|
223
|
+
borderColor: 'transparent',
|
|
224
|
+
},
|
|
225
|
+
innerFocusBoxActive_GRAY_10: {
|
|
226
|
+
borderColor: ColorConstant.Tokens.gray_10.focus_inset,
|
|
227
|
+
},
|
|
228
|
+
innerFocusBoxActive_GRAY_100: {
|
|
229
|
+
borderColor: ColorConstant.Tokens.gray_100.focus_inset,
|
|
230
|
+
},
|
|
231
|
+
}),
|
|
232
|
+
|
|
233
|
+
mapInnerFocusBoxActiveStyle: Record<ThemeType.ColorScheme, typeof styles['innerFocusBoxActive_GRAY_10']> =
|
|
234
|
+
{
|
|
235
|
+
gray_10: styles.innerFocusBoxActive_GRAY_10,
|
|
236
|
+
gray_100: styles.innerFocusBoxActive_GRAY_100,
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
function getStateStyle(
|
|
240
|
+
colorStateStyle: BaseColorProps['colorStateStyle'],
|
|
241
|
+
states: Record<Exclude<BaseColorState, 'default'>, boolean>,
|
|
242
|
+
androidRipple?: boolean,
|
|
243
|
+
): { background: StyleProp<ViewStyle>, text: StyleProp<TextStyle>, icon: string } {
|
|
244
|
+
|
|
245
|
+
if(!states.hovered && !states.pressed && !states.disabled) {
|
|
246
|
+
return {
|
|
247
|
+
background: colorStateStyle.background.default,
|
|
248
|
+
text: colorStateStyle.text.default,
|
|
249
|
+
icon: colorStateStyle.icon.default,
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
if(states.disabled) {
|
|
254
|
+
return {
|
|
255
|
+
background: colorStateStyle.background.disabled,
|
|
256
|
+
text: colorStateStyle.text.disabled,
|
|
257
|
+
icon: colorStateStyle.icon.disabled,
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
if(states.pressed) {
|
|
262
|
+
return {
|
|
263
|
+
background: androidRipple
|
|
264
|
+
? colorStateStyle.background.default
|
|
265
|
+
: colorStateStyle.background.pressed,
|
|
266
|
+
text: colorStateStyle.text.pressed,
|
|
267
|
+
icon: colorStateStyle.icon.pressed,
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
return {
|
|
272
|
+
background: colorStateStyle.background.hovered,
|
|
273
|
+
text: colorStateStyle.text.hovered,
|
|
274
|
+
icon: colorStateStyle.icon.hovered,
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
}
|