@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 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["types/theme/color-scheme.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["types/theme/color-token.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["types/theme/index.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/typography.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { GlobalConfigContextProvider } from "../contexts/global-config/provider.js";
|
|
4
|
+
import { ThemeContextProvider } from "../contexts/theme/provider.js";
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
export function CarbonReactNative({
|
|
7
|
+
globalConfig,
|
|
8
|
+
colorScheme,
|
|
9
|
+
overrideColor,
|
|
10
|
+
children
|
|
11
|
+
}) {
|
|
12
|
+
return /*#__PURE__*/_jsx(GlobalConfigContextProvider, {
|
|
13
|
+
...globalConfig,
|
|
14
|
+
children: /*#__PURE__*/_jsx(ThemeContextProvider, {
|
|
15
|
+
colorScheme: colorScheme,
|
|
16
|
+
overrideColor: overrideColor,
|
|
17
|
+
children: children
|
|
18
|
+
})
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["GlobalConfigContextProvider","ThemeContextProvider","jsx","_jsx","CarbonReactNative","globalConfig","colorScheme","overrideColor","children"],"sourceRoot":"../../../src","sources":["_carbon-react-native/index.tsx"],"mappings":";;AAGA,SACCA,2BAA2B,QACrB,uCAAoC;AAE3C,SACCC,oBAAoB,QAEd,+BAA4B;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAMnC,OAAO,SAASC,iBAAiBA,CAAC;EACjCC,YAAY;EACZC,WAAW;EACXC,aAAa;EACbC;AACuB,CAAC,EAAE;EAE1B,oBACCL,IAAA,CAACH,2BAA2B;IAAA,GACtBK,YAAY;IAAAG,QAAA,eAEjBL,IAAA,CAACF,oBAAoB;MACpBK,WAAW,EAAGA,WAAa;MAC3BC,aAAa,EAAGA,aAAe;MAAAC,QAAA,EAE7BA;IAAQ,CACW;EAAC,CACK,CAAC;AAGhC","ignoreList":[]}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { StyleSheet } from 'react-native';
|
|
4
|
+
import { ColorConstant } from "../constants/index.js";
|
|
5
|
+
import { ColorSchemeGlobal } from "../globals/index.js";
|
|
6
|
+
export function create(fn) {
|
|
7
|
+
const styleRef = fn(colorTokenStrings),
|
|
8
|
+
baseStyle = {},
|
|
9
|
+
coloredStyle = {};
|
|
10
|
+
for (const styleName in styleRef) {
|
|
11
|
+
const style = styleRef[styleName];
|
|
12
|
+
for (const styleProp_ in style) {
|
|
13
|
+
const styleProp = styleProp_;
|
|
14
|
+
if (colorStyleProps.indexOf(styleProp) > -1) {
|
|
15
|
+
const coloredStyleName_G10 = `${prefixColorStyleName.gray_10}${styleName}`,
|
|
16
|
+
coloredStyleName_G100 = `${prefixColorStyleName.gray_100}${styleName}`;
|
|
17
|
+
if (!coloredStyle[coloredStyleName_G10]) {
|
|
18
|
+
coloredStyle[coloredStyleName_G10] = {};
|
|
19
|
+
}
|
|
20
|
+
if (!coloredStyle[coloredStyleName_G100]) {
|
|
21
|
+
coloredStyle[coloredStyleName_G100] = {};
|
|
22
|
+
}
|
|
23
|
+
const colorStr = style[styleProp];
|
|
24
|
+
coloredStyle[coloredStyleName_G10][styleProp] = ColorConstant.Tokens.gray_10[colorStr] || colorStr;
|
|
25
|
+
coloredStyle[coloredStyleName_G100][styleProp] = ColorConstant.Tokens.gray_100[colorStr] || colorStr;
|
|
26
|
+
} else {
|
|
27
|
+
baseStyle[styleName] = style;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
const baseStyleSheet = StyleSheet.create(baseStyle),
|
|
32
|
+
coloredStyleSheet = StyleSheet.create(coloredStyle);
|
|
33
|
+
return Object.keys(styleRef).reduce((acc, styleName) => {
|
|
34
|
+
Object.defineProperty(acc, styleName, {
|
|
35
|
+
get() {
|
|
36
|
+
const colorScheme = ColorSchemeGlobal.get();
|
|
37
|
+
if (colorScheme == 'gray_10') {
|
|
38
|
+
return [baseStyleSheet[styleName], coloredStyleSheet[`${prefixColorStyleName.gray_10}${styleName}`]];
|
|
39
|
+
}
|
|
40
|
+
return [baseStyle[styleName], coloredStyleSheet[`${prefixColorStyleName.gray_100}${styleName}`]];
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
return acc;
|
|
44
|
+
}, {});
|
|
45
|
+
}
|
|
46
|
+
const colorStyleProps = ['color', 'backgroundColor', 'tintColor', 'shadowColor', 'textDecorationColor', 'textShadowColor', 'overlayColor', 'borderColor', 'borderEndColor', 'borderStartColor', 'borderTopColor', 'borderBottomColor', 'borderLeftColor', 'borderRightColor', 'borderBlockColor', 'borderBlockEndColor', 'borderBlockStartColor'],
|
|
47
|
+
colorTokenStrings = Object.keys(ColorConstant.Tokens.gray_10).reduce((acc, key) => {
|
|
48
|
+
acc[key] = key;
|
|
49
|
+
return acc;
|
|
50
|
+
}, {}),
|
|
51
|
+
prefixColorStyleName = {
|
|
52
|
+
gray_10: 'gray_10__',
|
|
53
|
+
gray_100: 'gray_100__'
|
|
54
|
+
};
|
|
55
|
+
//# sourceMappingURL=create.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["StyleSheet","ColorConstant","ColorSchemeGlobal","create","fn","styleRef","colorTokenStrings","baseStyle","coloredStyle","styleName","style","styleProp_","styleProp","colorStyleProps","indexOf","coloredStyleName_G10","prefixColorStyleName","gray_10","coloredStyleName_G100","gray_100","colorStr","Tokens","baseStyleSheet","coloredStyleSheet","Object","keys","reduce","acc","defineProperty","get","colorScheme","key"],"sourceRoot":"../../../src","sources":["_style-sheet/create.ts"],"mappings":";;AAAA,SACCA,UAAU,QAIJ,cAAc;AAErB,SACCC,aAAa,QACP,uBAAc;AAErB,SACCC,iBAAiB,QACX,qBAAY;AAQnB,OAAO,SAASC,MAAMA,CACrBC,EAEW,EACF;EACT,MACCC,QAAQ,GACPD,EAAE,CAACE,iBAAiB,CAAC;IAEtBC,SAAgC,GAC/B,CAAC,CAAC;IAEHC,YAAmC,GAClC,CAAC,CAAC;EAEJ,KAAI,MAAMC,SAAS,IAAIJ,QAAQ,EAAE;IAChC,MAAMK,KAAK,GAAGL,QAAQ,CAACI,SAAS,CAAC;IAEjC,KAAI,MAAME,UAAU,IAAID,KAAK,EAAE;MAC9B,MAAME,SAAS,GAAGD,UAAyB;MAE3C,IAAGE,eAAe,CAACC,OAAO,CAACF,SAAS,CAAC,GAAG,CAAC,CAAC,EAAE;QAC3C,MACCG,oBAAoB,GACnB,GAAGC,oBAAoB,CAACC,OAAO,GAAGR,SAAS,EAAE;UAE9CS,qBAAqB,GACpB,GAAGF,oBAAoB,CAACG,QAAQ,GAAGV,SAAS,EAAE;QAEhD,IAAG,CAACD,YAAY,CAACO,oBAAoB,CAAC,EAAE;UACvCP,YAAY,CAACO,oBAAoB,CAAC,GAAG,CAAC,CAAC;QACxC;QACA,IAAG,CAACP,YAAY,CAACU,qBAAqB,CAAC,EAAE;UACxCV,YAAY,CAACU,qBAAqB,CAAC,GAAG,CAAC,CAAC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ACrB,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EAChB,mBAAmB,EACnB,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,EACrB,uBAAuB,CACvB;EAEFP,iBAAiB,GAChBkB,MAAM,CACJC,IAAI,CAACxB,aAAa,CAACoB,MAAM,CAACJ,OAAO,CAAC,CAClCS,MAAM,CAA8D,CACpEC,GAAG,EACHI,GAAG,KACC;IACJJ,GAAG,CAACI,GAAG,CAAyB,GAAGA,GAA2B;IAC9D,OAAOJ,GAAG;EACX,CAAC,EAAE,CAAC,CAAC,CAAiE;EAExEX,oBAA2D,GAC1D;IACCC,OAAO,EAAE,WAAW;IACpBE,QAAQ,EAAE;EACX,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["create","_create","StyleSheet","_StyleSheet"],"sourceRoot":"../../../src","sources":["_style-sheet/index.ts"],"mappings":";;AAAA,SACCA,MAAM,IAAIC,OAAO,QACX,aAAU;AAAA,WAEAC,UAAU;AAAA,WAAAC,WAAA;EAEnB,MAAMH,MAAM,GAAAG,WAAA,CAAAH,MAAA,GAAGC,OAAO;AAAA,GAFbC,UAAU,KAAVA,UAAU","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createContext","Context"],"sourceRoot":"../../../../src","sources":["components/accordion/_context.tsx"],"mappings":";;AAAA,SACCA,aAAa,QACP,OAAO;AAgBd,OAAO,MAAMC,OAAO,gBAAGD,aAAa,CAAU,CAAC,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useContext } from 'react';
|
|
4
|
+
import { StyleSheet, View } from 'react-native';
|
|
5
|
+
import { SpacingConstant } from "../../constants/index.js";
|
|
6
|
+
import { ThemeContext } from "../../contexts/index.js";
|
|
7
|
+
import { CommonStyle } from "../../styles/index.js";
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
+
export function HeaderBorder({
|
|
10
|
+
flushAlignment,
|
|
11
|
+
style: styleProp
|
|
12
|
+
}) {
|
|
13
|
+
const themeContext = useContext(ThemeContext);
|
|
14
|
+
return /*#__PURE__*/_jsx(View, {
|
|
15
|
+
style: [CommonStyle.absolute, style.borderBox, {
|
|
16
|
+
borderColor: themeContext.color.border_subtle_00
|
|
17
|
+
}, flushAlignment ? {
|
|
18
|
+
left: SpacingConstant.spacing_05,
|
|
19
|
+
right: SpacingConstant.spacing_05
|
|
20
|
+
} : CommonStyle.w_full, styleProp]
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
const style = StyleSheet.create({
|
|
24
|
+
borderBox: {
|
|
25
|
+
height: 1,
|
|
26
|
+
borderTopWidth: 1
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
//# sourceMappingURL=_header-border.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useContext","StyleSheet","View","SpacingConstant","ThemeContext","CommonStyle","jsx","_jsx","HeaderBorder","flushAlignment","style","styleProp","themeContext","absolute","borderBox","borderColor","color","border_subtle_00","left","spacing_05","right","w_full","create","height","borderTopWidth"],"sourceRoot":"../../../../src","sources":["components/accordion/_header-border.tsx"],"mappings":";;AAAA,SACCA,UAAU,QACJ,OAAO;AAEd,SACCC,UAAU,EACVC,IAAI,QAEE,cAAc;AAErB,SACCC,eAAe,QACT,0BAAiB;AAExB,SACCC,YAAY,QACN,yBAAgB;AAEvB,SACCC,WAAW,QACL,uBAAc;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAUrB,OAAO,SAASC,YAAYA,CAAC;EAC5BC,cAAc;EACdC,KAAK,EAAEC;AACW,CAAC,EAAE;EAErB,MACCC,YAAY,GACXZ,UAAU,CAACI,YAAY,CAAC;EAE1B,oBACCG,IAAA,CAACL,IAAI;IACJQ,KAAK,EAAG,CACPL,WAAW,CAACQ,QAAQ,EACpBH,KAAK,CAACI,SAAS,EACf;MACCC,WAAW,EAAEH,YAAY,CAACI,KAAK,CAACC;IACjC,CAAC,EACDR,cAAc,GACX;MACDS,IAAI,EAAEf,eAAe,CAACgB,UAAU;MAChCC,KAAK,EAAEjB,eAAe,CAACgB;IACxB,CAAC,GACCd,WAAW,CAACgB,MAAM,EACrBV,SAAS;EACP,CACH,CAAC;AAGJ;AAEA,MACCD,KAAK,GACJT,UAAU,CAACqB,MAAM,CAAC;EACjBR,SAAS,EAAE;IACVS,MAAM,EAAE,CAAC;IACTC,cAAc,EAAE;EACjB;AACD,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useContext, useEffect, useRef } from 'react';
|
|
4
|
+
import { View } from 'react-native';
|
|
5
|
+
import Animated, { useAnimatedStyle, useSharedValue, withTiming } from 'react-native-reanimated';
|
|
6
|
+
import ChevronDown from '@carbon/icons/es/chevron--down/20';
|
|
7
|
+
import { StyleSheet } from "../../_style-sheet/index.js";
|
|
8
|
+
import { ThemeContext } from "../../contexts/index.js";
|
|
9
|
+
import { FlexStyle } from "../../styles/index.js";
|
|
10
|
+
import { BaseColor as ButtonColor } from "../button/base-color/index.js";
|
|
11
|
+
import { Icon } from "../icon/index.js";
|
|
12
|
+
import { HeaderBorder } from "./_header-border.js";
|
|
13
|
+
import { Motion } from "./_motion.js";
|
|
14
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
|
+
export function Header({
|
|
16
|
+
size = 'medium',
|
|
17
|
+
open,
|
|
18
|
+
flushAlignment = false,
|
|
19
|
+
text,
|
|
20
|
+
style: styleProp,
|
|
21
|
+
...buttonProps
|
|
22
|
+
}) {
|
|
23
|
+
const themeContext = useContext(ThemeContext);
|
|
24
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
25
|
+
style: styleProp,
|
|
26
|
+
children: [/*#__PURE__*/_jsx(HeaderBorder, {
|
|
27
|
+
flushAlignment: flushAlignment
|
|
28
|
+
}), /*#__PURE__*/_jsx(ButtonColor, {
|
|
29
|
+
...buttonProps,
|
|
30
|
+
size: mapSizeToButtonSize[size],
|
|
31
|
+
text: text,
|
|
32
|
+
android_rippleEffectColor: themeContext.color.layer_hover_01,
|
|
33
|
+
colorStateStyle: {
|
|
34
|
+
background: {
|
|
35
|
+
default: style.background_default,
|
|
36
|
+
focused: style.background_pressed,
|
|
37
|
+
hovered: style.background_hovered,
|
|
38
|
+
pressed: style.background_pressed,
|
|
39
|
+
disabled: style.background_disabled
|
|
40
|
+
},
|
|
41
|
+
text: {
|
|
42
|
+
default: style.text_default,
|
|
43
|
+
focused: style.text_focused,
|
|
44
|
+
hovered: style.text_hovered,
|
|
45
|
+
pressed: style.text_pressed,
|
|
46
|
+
disabled: style.text_disabled
|
|
47
|
+
},
|
|
48
|
+
icon: {
|
|
49
|
+
default: themeContext.color.icon_primary,
|
|
50
|
+
focused: themeContext.color.icon_primary,
|
|
51
|
+
hovered: themeContext.color.icon_primary,
|
|
52
|
+
pressed: themeContext.color.icon_primary,
|
|
53
|
+
disabled: themeContext.color.icon_disabled
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
iconNode: (...params) => iconNodeRenderer(!!open, ...params),
|
|
57
|
+
style: FlexStyle.self_stretch
|
|
58
|
+
})]
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
const style = StyleSheet.create(color => {
|
|
62
|
+
return {
|
|
63
|
+
background_default: {
|
|
64
|
+
backgroundColor: 'transparent'
|
|
65
|
+
},
|
|
66
|
+
background_focused: {
|
|
67
|
+
backgroundColor: 'transparent',
|
|
68
|
+
borderWidth: 1,
|
|
69
|
+
borderColor: color.focus
|
|
70
|
+
},
|
|
71
|
+
background_hovered: {
|
|
72
|
+
backgroundColor: color.layer_hover_01
|
|
73
|
+
},
|
|
74
|
+
background_pressed: {
|
|
75
|
+
backgroundColor: color.layer_hover_01
|
|
76
|
+
},
|
|
77
|
+
background_disabled: {
|
|
78
|
+
backgroundColor: 'transparent'
|
|
79
|
+
},
|
|
80
|
+
text_default: {
|
|
81
|
+
color: color.text_primary
|
|
82
|
+
},
|
|
83
|
+
text_focused: {
|
|
84
|
+
color: color.text_primary
|
|
85
|
+
},
|
|
86
|
+
text_hovered: {
|
|
87
|
+
color: color.text_primary
|
|
88
|
+
},
|
|
89
|
+
text_pressed: {
|
|
90
|
+
color: color.text_primary
|
|
91
|
+
},
|
|
92
|
+
text_disabled: {
|
|
93
|
+
color: color.text_disabled
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
}),
|
|
97
|
+
/**
|
|
98
|
+
* Coincidentally (or not) use same value of height
|
|
99
|
+
* https://carbondesignsystem.com/components/accordion/style/#sizes
|
|
100
|
+
*/
|
|
101
|
+
mapSizeToButtonSize = {
|
|
102
|
+
small: 'small',
|
|
103
|
+
medium: 'medium',
|
|
104
|
+
large: 'large_productive'
|
|
105
|
+
},
|
|
106
|
+
IconAnimated = Animated.createAnimatedComponent(Icon),
|
|
107
|
+
iconNodeRenderer = (open, iconColorState, iconSize, iconStyle) => {
|
|
108
|
+
return /*#__PURE__*/_jsx(IconNode, {
|
|
109
|
+
open: open,
|
|
110
|
+
color: iconColorState,
|
|
111
|
+
size: iconSize,
|
|
112
|
+
style: iconStyle
|
|
113
|
+
});
|
|
114
|
+
};
|
|
115
|
+
function IconNode({
|
|
116
|
+
open,
|
|
117
|
+
color,
|
|
118
|
+
size,
|
|
119
|
+
style
|
|
120
|
+
}) {
|
|
121
|
+
const isMounted = useRef(false),
|
|
122
|
+
rotateZ = useSharedValue(open ? 180 : 0),
|
|
123
|
+
animatedStyle = useAnimatedStyle(() => {
|
|
124
|
+
return {
|
|
125
|
+
transform: [{
|
|
126
|
+
rotateZ: `${rotateZ.value}deg`
|
|
127
|
+
}]
|
|
128
|
+
};
|
|
129
|
+
});
|
|
130
|
+
useEffect(() => {
|
|
131
|
+
if (isMounted.current) {
|
|
132
|
+
if (open) {
|
|
133
|
+
rotateZ.value = withTiming(180, Motion.toOpen);
|
|
134
|
+
} else {
|
|
135
|
+
rotateZ.value = withTiming(0, Motion.toClose);
|
|
136
|
+
}
|
|
137
|
+
} else {
|
|
138
|
+
isMounted.current = true;
|
|
139
|
+
}
|
|
140
|
+
}, [open, rotateZ]);
|
|
141
|
+
return /*#__PURE__*/_jsx(IconAnimated, {
|
|
142
|
+
src: ChevronDown,
|
|
143
|
+
color: color,
|
|
144
|
+
width: size,
|
|
145
|
+
height: size,
|
|
146
|
+
style: [animatedStyle, style]
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
//# sourceMappingURL=_header.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useContext","useEffect","useRef","View","Animated","useAnimatedStyle","useSharedValue","withTiming","ChevronDown","StyleSheet","ThemeContext","FlexStyle","BaseColor","ButtonColor","Icon","HeaderBorder","Motion","jsx","_jsx","jsxs","_jsxs","Header","size","open","flushAlignment","text","style","styleProp","buttonProps","themeContext","children","mapSizeToButtonSize","android_rippleEffectColor","color","layer_hover_01","colorStateStyle","background","default","background_default","focused","background_pressed","hovered","background_hovered","pressed","disabled","background_disabled","text_default","text_focused","text_hovered","text_pressed","text_disabled","icon","icon_primary","icon_disabled","iconNode","params","iconNodeRenderer","self_stretch","create","backgroundColor","background_focused","borderWidth","borderColor","focus","text_primary","small","medium","large","IconAnimated","createAnimatedComponent","iconColorState","iconSize","iconStyle","IconNode","isMounted","rotateZ","animatedStyle","transform","value","current","toOpen","toClose","src","width","height"],"sourceRoot":"../../../../src","sources":["components/accordion/_header.tsx"],"mappings":";;AAAA,SACCA,UAAU,EACVC,SAAS,EACTC,MAAM,QACA,OAAO;AAEd,SACCC,IAAI,QAGE,cAAc;AAErB,OAAOC,QAAQ,IACdC,gBAAgB,EAChBC,cAAc,EACdC,UAAU,QACJ,yBAAyB;AAEhC,OAAOC,WAAW,MAAM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AAI;IACzB;EACD,CAAC,EAAE,CACFxD,IAAI,EACJoD,OAAO,CACP,CAAC;EAEF,oBACCzD,IAAA,CAACkD,YAAY;IACZc,GAAG,EAAG1E,WAAa;IACnByB,KAAK,EAAGA,KAAO;IACfkD,KAAK,EAAG7D,IAAM;IACd8D,MAAM,EAAG9D,IAAM;IACfI,KAAK,EAAG,CACPkD,aAAa,EACblD,KAAK;EACH,CACH,CAAC;AAGJ","ignoreList":[]}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { forwardRef, useCallback, useContext, useEffect, useImperativeHandle, useRef, useState } from 'react';
|
|
4
|
+
import { StyleSheet, View } from 'react-native';
|
|
5
|
+
import { SpacingConstant } from "../../constants/index.js";
|
|
6
|
+
import { Collapsible } from "../collapsible/index.js";
|
|
7
|
+
import { Context } from "./_context.js";
|
|
8
|
+
import { Header } from "./_header.js";
|
|
9
|
+
import { Motion } from "./_motion.js";
|
|
10
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
|
+
export const Item = /*#__PURE__*/forwardRef(function Item({
|
|
12
|
+
controlled,
|
|
13
|
+
open: openProp,
|
|
14
|
+
title,
|
|
15
|
+
children,
|
|
16
|
+
style: styleProp,
|
|
17
|
+
onChange,
|
|
18
|
+
onPressHeader,
|
|
19
|
+
headerProps,
|
|
20
|
+
...props
|
|
21
|
+
}, forwardedRef) {
|
|
22
|
+
const accordionContext = useContext(Context),
|
|
23
|
+
ref = useRef({
|
|
24
|
+
isMounted: false,
|
|
25
|
+
open: !!openProp
|
|
26
|
+
}),
|
|
27
|
+
viewRef = useRef(null),
|
|
28
|
+
[openSelf, setOpenSelf] = useState(!!openProp),
|
|
29
|
+
open = controlled ? !!openProp : openSelf,
|
|
30
|
+
pressHandler = useCallback(event => {
|
|
31
|
+
onPressHeader?.(event);
|
|
32
|
+
if (!controlled) {
|
|
33
|
+
setOpenSelf(state => !state);
|
|
34
|
+
}
|
|
35
|
+
}, [controlled, onPressHeader]);
|
|
36
|
+
useEffect(() => {
|
|
37
|
+
if (!ref.current.isMounted) {
|
|
38
|
+
ref.current.isMounted = true;
|
|
39
|
+
} else {
|
|
40
|
+
ref.current.open = open;
|
|
41
|
+
onChange?.(open);
|
|
42
|
+
}
|
|
43
|
+
}, [open, onChange]);
|
|
44
|
+
useImperativeHandle(forwardedRef, () => {
|
|
45
|
+
return Object.assign(viewRef.current ?? {}, {
|
|
46
|
+
get open() {
|
|
47
|
+
return ref.current.open;
|
|
48
|
+
},
|
|
49
|
+
setOpen(value) {
|
|
50
|
+
if (!controlled) {
|
|
51
|
+
if (typeof value === 'boolean') {
|
|
52
|
+
ref.current.open = value;
|
|
53
|
+
} else {
|
|
54
|
+
ref.current.open = value(ref.current.open);
|
|
55
|
+
}
|
|
56
|
+
setOpenSelf(ref.current.open);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
}, [controlled]);
|
|
61
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
62
|
+
...props,
|
|
63
|
+
style: styleProp,
|
|
64
|
+
children: [/*#__PURE__*/_jsx(Header, {
|
|
65
|
+
...headerProps,
|
|
66
|
+
open: open,
|
|
67
|
+
size: accordionContext.size,
|
|
68
|
+
text: title,
|
|
69
|
+
flushAlignment: accordionContext.flushAlignment,
|
|
70
|
+
onPress: pressHandler
|
|
71
|
+
}), /*#__PURE__*/_jsx(Collapsible, {
|
|
72
|
+
motion: Motion,
|
|
73
|
+
controlled: true,
|
|
74
|
+
open: open,
|
|
75
|
+
contentContainerStyle: [accordionContext.collapsibleContentContainerStyle, style.panel],
|
|
76
|
+
children: children
|
|
77
|
+
})]
|
|
78
|
+
});
|
|
79
|
+
});
|
|
80
|
+
const style = StyleSheet.create({
|
|
81
|
+
panel: {
|
|
82
|
+
paddingTop: SpacingConstant.spacing_03,
|
|
83
|
+
paddingBottom: SpacingConstant.spacing_06,
|
|
84
|
+
paddingLeft: SpacingConstant.spacing_05
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
//# sourceMappingURL=_item.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["forwardRef","useCallback","useContext","useEffect","useImperativeHandle","useRef","useState","StyleSheet","View","SpacingConstant","Collapsible","Context","Header","Motion","jsx","_jsx","jsxs","_jsxs","Item","controlled","open","openProp","title","children","style","styleProp","onChange","onPressHeader","headerProps","props","forwardedRef","accordionContext","ref","isMounted","viewRef","openSelf","setOpenSelf","pressHandler","event","state","current","Object","assign","setOpen","value","size","text","flushAlignment","onPress","motion","contentContainerStyle","collapsibleContentContainerStyle","panel","create","paddingTop","spacing_03","paddingBottom","spacing_06","paddingLeft","spacing_05"],"sourceRoot":"../../../../src","sources":["components/accordion/_item.tsx"],"mappings":";;AAAA,SACCA,UAAU,EACVC,WAAW,EACXC,UAAU,EACVC,SAAS,EACTC,mBAAmB,EACnBC,MAAM,EACNC,QAAQ,QACF,OAAO;AAEd,SACCC,UAAU,EACVC,IAAI,QAEE,cAAc;AAErB,SACCC,eAAe,QACT,0BAAiB;AAExB,SACCC,WAAW,QACL,yBAAgB;AAEvB,SACCC,OAAO,QACD,eAAY;AAEnB,SACCC,MAAM,QAEA,cAAW;AAElB,SACCC,MAAM,QACA,cAAW;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AA8BlB,OAAO,MAAMC,IAAI,gBAAGlB,UAAU,CAC7B,SAASkB,IAAIA,CACZ;EACCC,UAAU;EACVC,IAAI,EAAEC,QAAQ;EACdC,KAAK;EACLC,QAAQ;EACRC,KAAK,EAAEC,SAAS;EAChBC,QAAQ;EACRC,aAAa;EACbC,WAAW;EACX,GAAGC;AACJ,CAAC,EACDC,YAAY,EACX;EAED,MACCC,gBAAgB,GACf7B,UAAU,CAACS,OAAO,CAAC;IAEpBqB,GAAG,GACF3B,MAAM,CAAC;MACN4B,SAAS,EAAE,KAAK;MAChBb,IAAI,EA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,IAAI,CAAC;UAC3C;UACAgB,WAAW,CAACJ,GAAG,CAACQ,OAAO,CAACpB,IAAI,CAAC;QAC9B;MACD;IACD,CACD,CAAC;EACF,CAAC,EAAE,CACFD,UAAU,CACV,CAAC;EAEF,oBACCF,KAAA,CAACT,IAAI;IAAA,GACCqB,KAAK;IACVL,KAAK,EAAGC,SAAW;IAAAF,QAAA,gBAEnBR,IAAA,CAACH,MAAM;MAAA,GACDgB,WAAW;MAChBR,IAAI,EAAGA,IAAM;MACbyB,IAAI,EAAGd,gBAAgB,CAACc,IAAM;MAC9BC,IAAI,EAAGxB,KAAO;MACdyB,cAAc,EAAGhB,gBAAgB,CAACgB,cAAgB;MAClDC,OAAO,EAAGX;IAAc,CACxB,CAAC,eAEFtB,IAAA,CAACL,WAAW;MACXuC,MAAM,EAAGpC,MAAQ;MACjBM,UAAU;MACVC,IAAI,EAAGA,IAAM;MACb8B,qBAAqB,EAAG,CACvBnB,gBAAgB,CAACoB,gCAAgC,EACjD3B,KAAK,CAAC4B,KAAK,CACT;MAAA7B,QAAA,EAEDA;IAAQ,CACE,CAAC;EAAA,CACT,CAAC;AAGT,CACD,CAAC;AAED,MACCC,KAAK,GACJjB,UAAU,CAAC8C,MAAM,CAAC;EACjBD,KAAK,EAAE;IACNE,UAAU,EAAE7C,eAAe,CAAC8C,UAAU;IACtCC,aAAa,EAAE/C,eAAe,CAACgD,UAAU;IACzCC,WAAW,EAAEjD,eAAe,CAACkD;EAC9B;AACD,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { Easing } from 'react-native-reanimated';
|
|
4
|
+
import { MotionConstant } from "../../constants/index.js";
|
|
5
|
+
export const Motion = {
|
|
6
|
+
toOpen: {
|
|
7
|
+
duration: MotionConstant.Durations.fast_02,
|
|
8
|
+
easing: Easing.bezier(MotionConstant.Easings.entrance.productive.x1, MotionConstant.Easings.entrance.productive.y1, MotionConstant.Easings.entrance.productive.x2, MotionConstant.Easings.entrance.productive.y2)
|
|
9
|
+
},
|
|
10
|
+
toClose: {
|
|
11
|
+
duration: 0
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=_motion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Easing","MotionConstant","Motion","toOpen","duration","Durations","fast_02","easing","bezier","Easings","entrance","productive","x1","y1","x2","y2","toClose"],"sourceRoot":"../../../../src","sources":["components/accordion/_motion.ts"],"mappings":";;AAAA,SACCA,MAAM,QACA,yBAAyB;AAEhC,SACCC,cAAc,QACR,0BAAiB;AAMxB,OAAO,MAAMC,MAA+C,GAC3D;EACCC,MAAM,EAAE;IACPC,QAAQ,EAAEH,cAAc,CAACI,SAAS,CAACC,OAAO;IAC1CC,MAAM,EAAEP,MAAM,CAACQ,MAAM,CACpBP,cAAc,CAACQ,OAAO,CAACC,QAAQ,CAACC,UAAU,CAACC,EAAE,EAC7CX,cAAc,CAACQ,OAAO,CAACC,QAAQ,CAACC,UAAU,CAACE,EAAE,EAC7CZ,cAAc,CAACQ,OAAO,CAACC,QAAQ,CAACC,UAAU,CAACG,EAAE,EAC7Cb,cAAc,CAACQ,OAAO,CAACC,QAAQ,CAACC,UAAU,CAACI,EAC5C;EACD,CAAC;EACDC,OAAO,EAAE;IACRZ,QAAQ,EAAE;EACX;AACD,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { StyleSheet } from 'react-native';
|
|
4
|
+
import { SpacingConstant } from "../../constants/index.js";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Sorry for named it %margin% but it is actually using padding
|
|
8
|
+
* https://carbondesignsystem.com/components/accordion/style/#margin-right
|
|
9
|
+
*/
|
|
10
|
+
export const MarginRightStyle = StyleSheet.create({
|
|
11
|
+
large: {
|
|
12
|
+
paddingRight: '25%'
|
|
13
|
+
},
|
|
14
|
+
range_420_640: {
|
|
15
|
+
paddingRight: SpacingConstant.spacing_10
|
|
16
|
+
},
|
|
17
|
+
small: {
|
|
18
|
+
paddingRight: SpacingConstant.spacing_05
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
//# sourceMappingURL=_styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["StyleSheet","SpacingConstant","MarginRightStyle","create","large","paddingRight","range_420_640","spacing_10","small","spacing_05"],"sourceRoot":"../../../../src","sources":["components/accordion/_styles.ts"],"mappings":";;AAAA,SACCA,UAAU,QACJ,cAAc;AAErB,SACCC,eAAe,QACT,0BAAiB;;AAExB;AACA;AACA;AACA;AACA,OAAO,MAAMC,gBAAgB,GAC5BF,UAAU,CAACG,MAAM,CAAC;EACjBC,KAAK,EAAE;IACNC,YAAY,EAAE;EACf,CAAC;EACDC,aAAa,EAAE;IACdD,YAAY,EAAEJ,eAAe,CAACM;EAC/B,CAAC;EACDC,KAAK,EAAE;IACNH,YAAY,EAAEJ,eAAe,CAACQ;EAC/B;AACD,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { forwardRef, useCallback, useRef, useState } from 'react';
|
|
4
|
+
import { Dimensions, StyleSheet, View } from 'react-native';
|
|
5
|
+
import { Context } from "./_context.js";
|
|
6
|
+
import { HeaderBorder } from "./_header-border.js";
|
|
7
|
+
import { Item } from "./_item.js";
|
|
8
|
+
import { MarginRightStyle } from "./_styles.js";
|
|
9
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
+
const Accordion_ = /*#__PURE__*/forwardRef(function Accordion({
|
|
11
|
+
size,
|
|
12
|
+
flushAlignment,
|
|
13
|
+
children,
|
|
14
|
+
style,
|
|
15
|
+
onLayout,
|
|
16
|
+
...props
|
|
17
|
+
}, forwardedRef) {
|
|
18
|
+
const ref = useRef({
|
|
19
|
+
marginRightStyleKey: getMarginRightStyleKey(windowWidth)
|
|
20
|
+
}),
|
|
21
|
+
[marginRightStyleKey, setMarginRightStyleKey] = useState(ref.current.marginRightStyleKey),
|
|
22
|
+
handlerLayout = useCallback(event => {
|
|
23
|
+
onLayout?.(event);
|
|
24
|
+
/**
|
|
25
|
+
* https://carbondesignsystem.com/components/accordion/style/#margin-right
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
const key = getMarginRightStyleKey(windowWidth);
|
|
29
|
+
if (ref.current.marginRightStyleKey !== key) {
|
|
30
|
+
ref.current.marginRightStyleKey = key;
|
|
31
|
+
setMarginRightStyleKey(key);
|
|
32
|
+
}
|
|
33
|
+
}, [onLayout]);
|
|
34
|
+
return /*#__PURE__*/_jsx(View, {
|
|
35
|
+
...props,
|
|
36
|
+
style: style,
|
|
37
|
+
onLayout: handlerLayout,
|
|
38
|
+
ref: forwardedRef,
|
|
39
|
+
children: /*#__PURE__*/_jsxs(Context.Provider, {
|
|
40
|
+
value: {
|
|
41
|
+
size,
|
|
42
|
+
flushAlignment,
|
|
43
|
+
collapsibleContentContainerStyle: MarginRightStyle[marginRightStyleKey]
|
|
44
|
+
},
|
|
45
|
+
children: [children, !!children?.length && /*#__PURE__*/_jsx(HeaderBorder, {
|
|
46
|
+
flushAlignment: flushAlignment,
|
|
47
|
+
style: baseStyle.lastAccordionHeaderBorder
|
|
48
|
+
})]
|
|
49
|
+
})
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
export const Accordion = Object.assign(Accordion_, {
|
|
53
|
+
Item: Item
|
|
54
|
+
});
|
|
55
|
+
const baseStyle = StyleSheet.create({
|
|
56
|
+
lastAccordionHeaderBorder: {
|
|
57
|
+
top: '100%'
|
|
58
|
+
}
|
|
59
|
+
}),
|
|
60
|
+
windowWidth = Dimensions.get('window').width;
|
|
61
|
+
function getMarginRightStyleKey(width) {
|
|
62
|
+
if (width < 420) {
|
|
63
|
+
return 'small';
|
|
64
|
+
}
|
|
65
|
+
if (width <= 640) {
|
|
66
|
+
return 'range_420_640';
|
|
67
|
+
}
|
|
68
|
+
return 'large';
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["forwardRef","useCallback","useRef","useState","Dimensions","StyleSheet","View","Context","HeaderBorder","Item","MarginRightStyle","jsx","_jsx","jsxs","_jsxs","Accordion_","Accordion","size","flushAlignment","children","style","onLayout","props","forwardedRef","ref","marginRightStyleKey","getMarginRightStyleKey","windowWidth","setMarginRightStyleKey","current","handlerLayout","event","key","Provider","value","collapsibleContentContainerStyle","length","baseStyle","lastAccordionHeaderBorder","Object","assign","create","top","get","width"],"sourceRoot":"../../../../src","sources":["components/accordion/index.tsx"],"mappings":";;AAAA,SACCA,UAAU,EACVC,WAAW,EACXC,MAAM,EACNC,QAAQ,QACF,OAAO;AAEd,SACCC,UAAU,EACVC,UAAU,EACVC,IAAI,QAEE,cAAc;AAErB,SACCC,OAAO,QACD,eAAY;AAMnB,SACCC,YAAY,QACN,qBAAkB;AAEzB,SACCC,IAAI,QAGE,YAAS;AAMhB,SACCC,gBAAgB,QACV,cAAW;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAkBlB,MAAMC,UAAU,gBAAGf,UAAU,CAC5B,SAASgB,SAASA,CACjB;EACCC,IAAI;EACJC,cAAc;EACdC,QAAQ;EACRC,KAAK;EACLC,QAAQ;EACR,GAAGC;AACJ,CAAC,EACDC,YAAY,EACX;EAED,MACCC,GAAG,GACFtB,MAAM,CAEH;MACFuB,mBAAmB,EAAEC,sBAAsB,CAACC,WAAW;IACxD,CAAC,CAAC;IAEH,CAACF,mBAAmB,EAAEG,sBAAsB,CAAC,GAC5CzB,QAAQ,CAACqB,GAAG,CAACK,OAAO,CAACJ,mBAAmB,CAAC;IAE1CK,aAAiD,GAChD7B,WAAW,CAAC8B,KAAK,IAAI;MACpBV,QAAQ,GA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G,EAAE;IAChB,OAAO,eAAe;EACvB;EAEA,OAAO,OAAO;AACf","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/accordion/types.ts"],"mappings":"","ignoreList":[]}
|