@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
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 RakaDoank
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.CarbonReactNative = CarbonReactNative;
|
|
7
|
+
var _provider = require("../contexts/global-config/provider.js");
|
|
8
|
+
var _provider2 = require("../contexts/theme/provider.js");
|
|
9
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
+
function CarbonReactNative({
|
|
11
|
+
globalConfig,
|
|
12
|
+
colorScheme,
|
|
13
|
+
overrideColor,
|
|
14
|
+
children
|
|
15
|
+
}) {
|
|
16
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_provider.GlobalConfigContextProvider, {
|
|
17
|
+
...globalConfig,
|
|
18
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_provider2.ThemeContextProvider, {
|
|
19
|
+
colorScheme: colorScheme,
|
|
20
|
+
overrideColor: overrideColor,
|
|
21
|
+
children: children
|
|
22
|
+
})
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_provider","require","_provider2","_jsxRuntime","CarbonReactNative","globalConfig","colorScheme","overrideColor","children","jsx","GlobalConfigContextProvider","ThemeContextProvider"],"sourceRoot":"../../../src","sources":["_carbon-react-native/index.tsx"],"mappings":";;;;;;AAGA,IAAAA,SAAA,GAAAC,OAAA;AAIA,IAAAC,UAAA,GAAAD,OAAA;AAGmC,IAAAE,WAAA,GAAAF,OAAA;AAM5B,SAASG,iBAAiBA,CAAC;EACjCC,YAAY;EACZC,WAAW;EACXC,aAAa;EACbC;AACuB,CAAC,EAAE;EAE1B,oBACC,IAAAL,WAAA,CAAAM,GAAA,EAACT,SAAA,CAAAU,2BAA2B;IAAA,GACtBL,YAAY;IAAAG,QAAA,eAEjB,IAAAL,WAAA,CAAAM,GAAA,EAACP,UAAA,CAAAS,oBAAoB;MACpBL,WAAW,EAAGA,WAAa;MAC3BC,aAAa,EAAGA,aAAe;MAAAC,QAAA,EAE7BA;IAAQ,CACW;EAAC,CACK,CAAC;AAGhC","ignoreList":[]}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.create = create;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
var _index = require("../constants/index.js");
|
|
9
|
+
var _index2 = require("../globals/index.js");
|
|
10
|
+
function create(fn) {
|
|
11
|
+
const styleRef = fn(colorTokenStrings),
|
|
12
|
+
baseStyle = {},
|
|
13
|
+
coloredStyle = {};
|
|
14
|
+
for (const styleName in styleRef) {
|
|
15
|
+
const style = styleRef[styleName];
|
|
16
|
+
for (const styleProp_ in style) {
|
|
17
|
+
const styleProp = styleProp_;
|
|
18
|
+
if (colorStyleProps.indexOf(styleProp) > -1) {
|
|
19
|
+
const coloredStyleName_G10 = `${prefixColorStyleName.gray_10}${styleName}`,
|
|
20
|
+
coloredStyleName_G100 = `${prefixColorStyleName.gray_100}${styleName}`;
|
|
21
|
+
if (!coloredStyle[coloredStyleName_G10]) {
|
|
22
|
+
coloredStyle[coloredStyleName_G10] = {};
|
|
23
|
+
}
|
|
24
|
+
if (!coloredStyle[coloredStyleName_G100]) {
|
|
25
|
+
coloredStyle[coloredStyleName_G100] = {};
|
|
26
|
+
}
|
|
27
|
+
const colorStr = style[styleProp];
|
|
28
|
+
coloredStyle[coloredStyleName_G10][styleProp] = _index.ColorConstant.Tokens.gray_10[colorStr] || colorStr;
|
|
29
|
+
coloredStyle[coloredStyleName_G100][styleProp] = _index.ColorConstant.Tokens.gray_100[colorStr] || colorStr;
|
|
30
|
+
} else {
|
|
31
|
+
baseStyle[styleName] = style;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
const baseStyleSheet = _reactNative.StyleSheet.create(baseStyle),
|
|
36
|
+
coloredStyleSheet = _reactNative.StyleSheet.create(coloredStyle);
|
|
37
|
+
return Object.keys(styleRef).reduce((acc, styleName) => {
|
|
38
|
+
Object.defineProperty(acc, styleName, {
|
|
39
|
+
get() {
|
|
40
|
+
const colorScheme = _index2.ColorSchemeGlobal.get();
|
|
41
|
+
if (colorScheme == 'gray_10') {
|
|
42
|
+
return [baseStyleSheet[styleName], coloredStyleSheet[`${prefixColorStyleName.gray_10}${styleName}`]];
|
|
43
|
+
}
|
|
44
|
+
return [baseStyle[styleName], coloredStyleSheet[`${prefixColorStyleName.gray_100}${styleName}`]];
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
return acc;
|
|
48
|
+
}, {});
|
|
49
|
+
}
|
|
50
|
+
const colorStyleProps = ['color', 'backgroundColor', 'tintColor', 'shadowColor', 'textDecorationColor', 'textShadowColor', 'overlayColor', 'borderColor', 'borderEndColor', 'borderStartColor', 'borderTopColor', 'borderBottomColor', 'borderLeftColor', 'borderRightColor', 'borderBlockColor', 'borderBlockEndColor', 'borderBlockStartColor'],
|
|
51
|
+
colorTokenStrings = Object.keys(_index.ColorConstant.Tokens.gray_10).reduce((acc, key) => {
|
|
52
|
+
acc[key] = key;
|
|
53
|
+
return acc;
|
|
54
|
+
}, {}),
|
|
55
|
+
prefixColorStyleName = {
|
|
56
|
+
gray_10: 'gray_10__',
|
|
57
|
+
gray_100: 'gray_100__'
|
|
58
|
+
};
|
|
59
|
+
//# sourceMappingURL=create.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_index","_index2","create","fn","styleRef","colorTokenStrings","baseStyle","coloredStyle","styleName","style","styleProp_","styleProp","colorStyleProps","indexOf","coloredStyleName_G10","prefixColorStyleName","gray_10","coloredStyleName_G100","gray_100","colorStr","ColorConstant","Tokens","baseStyleSheet","StyleSheet","coloredStyleSheet","Object","keys","reduce","acc","defineProperty","get","colorScheme","ColorSchemeGlobal","key"],"sourceRoot":"../../../src","sources":["_style-sheet/create.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAOA,IAAAC,MAAA,GAAAD,OA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IACCC,OAAO,EAAE,WAAW;IACpBE,QAAQ,EAAE;EACX,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.StyleSheet = void 0;
|
|
7
|
+
var _create2 = require("./create.js");
|
|
8
|
+
let StyleSheet = exports.StyleSheet = void 0;
|
|
9
|
+
(function (_StyleSheet) {
|
|
10
|
+
const create = _StyleSheet.create = _create2.create;
|
|
11
|
+
})(StyleSheet || (exports.StyleSheet = StyleSheet = {}));
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_create2","require","StyleSheet","exports","_StyleSheet","create","_create"],"sourceRoot":"../../../src","sources":["_style-sheet/index.ts"],"mappings":";;;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AAEiB,IAEAC,UAAU,GAAAC,OAAA,CAAAD,UAAA;AAAA,WAAAE,WAAA;EAEnB,MAAMC,MAAM,GAAAD,WAAA,CAAAC,MAAA,GAAGC,eAAO;AAAA,GAFbJ,UAAU,KAAAC,OAAA,CAAAD,UAAA,GAAVA,UAAU","ignoreList":[]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Context = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
const Context = exports.Context = /*#__PURE__*/(0, _react.createContext)({});
|
|
9
|
+
//# sourceMappingURL=_context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","require","Context","exports","createContext"],"sourceRoot":"../../../../src","sources":["components/accordion/_context.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAkBO,MAAMC,OAAO,GAAAC,OAAA,CAAAD,OAAA,gBAAG,IAAAE,oBAAa,EAAU,CAAC,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.HeaderBorder = HeaderBorder;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _index = require("../../constants/index.js");
|
|
10
|
+
var _index2 = require("../../contexts/index.js");
|
|
11
|
+
var _index3 = require("../../styles/index.js");
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
+
function HeaderBorder({
|
|
14
|
+
flushAlignment,
|
|
15
|
+
style: styleProp
|
|
16
|
+
}) {
|
|
17
|
+
const themeContext = (0, _react.useContext)(_index2.ThemeContext);
|
|
18
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
19
|
+
style: [_index3.CommonStyle.absolute, style.borderBox, {
|
|
20
|
+
borderColor: themeContext.color.border_subtle_00
|
|
21
|
+
}, flushAlignment ? {
|
|
22
|
+
left: _index.SpacingConstant.spacing_05,
|
|
23
|
+
right: _index.SpacingConstant.spacing_05
|
|
24
|
+
} : _index3.CommonStyle.w_full, styleProp]
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
const style = _reactNative.StyleSheet.create({
|
|
28
|
+
borderBox: {
|
|
29
|
+
height: 1,
|
|
30
|
+
borderTopWidth: 1
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
//# sourceMappingURL=_header-border.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_index","_index2","_index3","_jsxRuntime","HeaderBorder","flushAlignment","style","styleProp","themeContext","useContext","ThemeContext","jsx","View","CommonStyle","absolute","borderBox","borderColor","color","border_subtle_00","left","SpacingConstant","spacing_05","right","w_full","StyleSheet","create","height","borderTopWidth"],"sourceRoot":"../../../../src","sources":["components/accordion/_header-border.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAIA,IAAAC,YAAA,GAAAD,OAAA;AAMA,IAAAE,MAAA,GAAAF,OAAA;AAIA,IAAAG,OAAA,GAAAH,OAAA;AAIA,IAAAI,OAAA,GAAAJ,OAAA;AAEqB,IAAAK,WAAA,GAAAL,OAAA;AAUd,SAASM,YAAYA,CAAC;EAC5BC,cAAc;EACdC,KAAK,EAAEC;AACW,CAAC,EAAE;EAErB,MACCC,YAAY,GACX,IAAAC,iBAAU,EAACC,oBAAY,CAAC;EAE1B,oBACC,IAAAP,WAAA,CAAAQ,GAAA,EAACZ,YAAA,CAAAa,IAAI;IACJN,KAAK,EAAG,CACPO,mBAAW,CAACC,QAAQ,EACpBR,KAAK,CAACS,SAAS,EACf;MACCC,WAAW,EAAER,YAAY,CAACS,KAAK,CAACC;IACjC,CAAC,EACDb,cAAc,GACX;MACDc,IAAI,EAAEC,sBAAe,CAACC,UAAU;MAChCC,KAAK,EAAEF,sBAAe,CAACC;IACxB,CAAC,GACCR,mBAAW,CAACU,MAAM,EACrBhB,SAAS;EACP,CACH,CAAC;AAGJ;AAEA,MACCD,KAAK,GACJkB,uBAAU,CAACC,MAAM,CAAC;EACjBV,SAAS,EAAE;IACVW,MAAM,EAAE,CAAC;IACTC,cAAc,EAAE;EACjB;AACD,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Header = Header;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _reactNativeReanimated = _interopRequireWildcard(require("react-native-reanimated"));
|
|
10
|
+
var _ = _interopRequireDefault(require("@carbon/icons/es/chevron--down/20"));
|
|
11
|
+
var _index = require("../../_style-sheet/index.js");
|
|
12
|
+
var _index2 = require("../../contexts/index.js");
|
|
13
|
+
var _index3 = require("../../styles/index.js");
|
|
14
|
+
var _index4 = require("../button/base-color/index.js");
|
|
15
|
+
var _index5 = require("../icon/index.js");
|
|
16
|
+
var _headerBorder = require("./_header-border.js");
|
|
17
|
+
var _motion = require("./_motion.js");
|
|
18
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
20
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
21
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
22
|
+
function Header({
|
|
23
|
+
size = 'medium',
|
|
24
|
+
open,
|
|
25
|
+
flushAlignment = false,
|
|
26
|
+
text,
|
|
27
|
+
style: styleProp,
|
|
28
|
+
...buttonProps
|
|
29
|
+
}) {
|
|
30
|
+
const themeContext = (0, _react.useContext)(_index2.ThemeContext);
|
|
31
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
32
|
+
style: styleProp,
|
|
33
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_headerBorder.HeaderBorder, {
|
|
34
|
+
flushAlignment: flushAlignment
|
|
35
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index4.BaseColor, {
|
|
36
|
+
...buttonProps,
|
|
37
|
+
size: mapSizeToButtonSize[size],
|
|
38
|
+
text: text,
|
|
39
|
+
android_rippleEffectColor: themeContext.color.layer_hover_01,
|
|
40
|
+
colorStateStyle: {
|
|
41
|
+
background: {
|
|
42
|
+
default: style.background_default,
|
|
43
|
+
focused: style.background_pressed,
|
|
44
|
+
hovered: style.background_hovered,
|
|
45
|
+
pressed: style.background_pressed,
|
|
46
|
+
disabled: style.background_disabled
|
|
47
|
+
},
|
|
48
|
+
text: {
|
|
49
|
+
default: style.text_default,
|
|
50
|
+
focused: style.text_focused,
|
|
51
|
+
hovered: style.text_hovered,
|
|
52
|
+
pressed: style.text_pressed,
|
|
53
|
+
disabled: style.text_disabled
|
|
54
|
+
},
|
|
55
|
+
icon: {
|
|
56
|
+
default: themeContext.color.icon_primary,
|
|
57
|
+
focused: themeContext.color.icon_primary,
|
|
58
|
+
hovered: themeContext.color.icon_primary,
|
|
59
|
+
pressed: themeContext.color.icon_primary,
|
|
60
|
+
disabled: themeContext.color.icon_disabled
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
iconNode: (...params) => iconNodeRenderer(!!open, ...params),
|
|
64
|
+
style: _index3.FlexStyle.self_stretch
|
|
65
|
+
})]
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
const style = _index.StyleSheet.create(color => {
|
|
69
|
+
return {
|
|
70
|
+
background_default: {
|
|
71
|
+
backgroundColor: 'transparent'
|
|
72
|
+
},
|
|
73
|
+
background_focused: {
|
|
74
|
+
backgroundColor: 'transparent',
|
|
75
|
+
borderWidth: 1,
|
|
76
|
+
borderColor: color.focus
|
|
77
|
+
},
|
|
78
|
+
background_hovered: {
|
|
79
|
+
backgroundColor: color.layer_hover_01
|
|
80
|
+
},
|
|
81
|
+
background_pressed: {
|
|
82
|
+
backgroundColor: color.layer_hover_01
|
|
83
|
+
},
|
|
84
|
+
background_disabled: {
|
|
85
|
+
backgroundColor: 'transparent'
|
|
86
|
+
},
|
|
87
|
+
text_default: {
|
|
88
|
+
color: color.text_primary
|
|
89
|
+
},
|
|
90
|
+
text_focused: {
|
|
91
|
+
color: color.text_primary
|
|
92
|
+
},
|
|
93
|
+
text_hovered: {
|
|
94
|
+
color: color.text_primary
|
|
95
|
+
},
|
|
96
|
+
text_pressed: {
|
|
97
|
+
color: color.text_primary
|
|
98
|
+
},
|
|
99
|
+
text_disabled: {
|
|
100
|
+
color: color.text_disabled
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
}),
|
|
104
|
+
/**
|
|
105
|
+
* Coincidentally (or not) use same value of height
|
|
106
|
+
* https://carbondesignsystem.com/components/accordion/style/#sizes
|
|
107
|
+
*/
|
|
108
|
+
mapSizeToButtonSize = {
|
|
109
|
+
small: 'small',
|
|
110
|
+
medium: 'medium',
|
|
111
|
+
large: 'large_productive'
|
|
112
|
+
},
|
|
113
|
+
IconAnimated = _reactNativeReanimated.default.createAnimatedComponent(_index5.Icon),
|
|
114
|
+
iconNodeRenderer = (open, iconColorState, iconSize, iconStyle) => {
|
|
115
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(IconNode, {
|
|
116
|
+
open: open,
|
|
117
|
+
color: iconColorState,
|
|
118
|
+
size: iconSize,
|
|
119
|
+
style: iconStyle
|
|
120
|
+
});
|
|
121
|
+
};
|
|
122
|
+
function IconNode({
|
|
123
|
+
open,
|
|
124
|
+
color,
|
|
125
|
+
size,
|
|
126
|
+
style
|
|
127
|
+
}) {
|
|
128
|
+
const isMounted = (0, _react.useRef)(false),
|
|
129
|
+
rotateZ = (0, _reactNativeReanimated.useSharedValue)(open ? 180 : 0),
|
|
130
|
+
animatedStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => {
|
|
131
|
+
return {
|
|
132
|
+
transform: [{
|
|
133
|
+
rotateZ: `${rotateZ.value}deg`
|
|
134
|
+
}]
|
|
135
|
+
};
|
|
136
|
+
});
|
|
137
|
+
(0, _react.useEffect)(() => {
|
|
138
|
+
if (isMounted.current) {
|
|
139
|
+
if (open) {
|
|
140
|
+
rotateZ.value = (0, _reactNativeReanimated.withTiming)(180, _motion.Motion.toOpen);
|
|
141
|
+
} else {
|
|
142
|
+
rotateZ.value = (0, _reactNativeReanimated.withTiming)(0, _motion.Motion.toClose);
|
|
143
|
+
}
|
|
144
|
+
} else {
|
|
145
|
+
isMounted.current = true;
|
|
146
|
+
}
|
|
147
|
+
}, [open, rotateZ]);
|
|
148
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(IconAnimated, {
|
|
149
|
+
src: _.default,
|
|
150
|
+
color: color,
|
|
151
|
+
width: size,
|
|
152
|
+
height: size,
|
|
153
|
+
style: [animatedStyle, style]
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
//# sourceMappingURL=_header.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_reactNativeReanimated","_interopRequireWildcard","_","_interopRequireDefault","_index","_index2","_index3","_index4","_index5","_headerBorder","_motion","_jsxRuntime","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","Header","size","open","flushAlignment","text","style","styleProp","buttonProps","themeContext","useContext","ThemeContext","jsxs","View","children","jsx","HeaderBorder","BaseColor","mapSizeToButtonSize","android_rippleEffectColor","color","layer_hover_01","colorStateStyle","background","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","FlexStyle","self_stretch","StyleSheet","create","backgroundColor","background_focused","borderWidth","borderColor","focus","text_primary","small","medium","large","IconAnimated","Animated","createAnimatedComponent","Icon","iconColorState","iconSize","iconStyle","IconNode","isMounted","useRef","rotateZ","useSharedValue","animatedStyle","useAnimatedStyle","transform","value","useEffect","current","withTiming","Motion","toOpen","toClose","src","ChevronDown","width","height"],"sourceRoot":"../../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S,CAACS,OAAO,EAAE;MACrB,IAAGtE,IAAI,EAAE;QACR+D,OAAO,CAACK,KAAK,GACZ,IAAAG,iCAAU,EACT,GAAG,EACHC,cAAM,CAACC,MACR,CAAC;MACH,CAAC,MAAM;QACNV,OAAO,CAACK,KAAK,GACZ,IAAAG,iCAAU,EACT,CAAC,EACDC,cAAM,CAACE,OACR,CAAC;MACH;IACD,CAAC,MAAM;MACNb,SAAS,CAACS,OAAO,GAAG,IAAI;IACzB;EACD,CAAC,EAAE,CACFtE,IAAI,EACJ+D,OAAO,CACP,CAAC;EAEF,oBACC,IAAAtF,WAAA,CAAAmC,GAAA,EAACyC,YAAY;IACZsB,GAAG,EAAGC,SAAa;IACnB3D,KAAK,EAAGA,KAAO;IACf4D,KAAK,EAAG9E,IAAM;IACd+E,MAAM,EAAG/E,IAAM;IACfI,KAAK,EAAG,CACP8D,aAAa,EACb9D,KAAK;EACH,CACH,CAAC;AAGJ","ignoreList":[]}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Item = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _index = require("../../constants/index.js");
|
|
10
|
+
var _index2 = require("../collapsible/index.js");
|
|
11
|
+
var _context = require("./_context.js");
|
|
12
|
+
var _header = require("./_header.js");
|
|
13
|
+
var _motion = require("./_motion.js");
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
const Item = exports.Item = /*#__PURE__*/(0, _react.forwardRef)(function Item({
|
|
16
|
+
controlled,
|
|
17
|
+
open: openProp,
|
|
18
|
+
title,
|
|
19
|
+
children,
|
|
20
|
+
style: styleProp,
|
|
21
|
+
onChange,
|
|
22
|
+
onPressHeader,
|
|
23
|
+
headerProps,
|
|
24
|
+
...props
|
|
25
|
+
}, forwardedRef) {
|
|
26
|
+
const accordionContext = (0, _react.useContext)(_context.Context),
|
|
27
|
+
ref = (0, _react.useRef)({
|
|
28
|
+
isMounted: false,
|
|
29
|
+
open: !!openProp
|
|
30
|
+
}),
|
|
31
|
+
viewRef = (0, _react.useRef)(null),
|
|
32
|
+
[openSelf, setOpenSelf] = (0, _react.useState)(!!openProp),
|
|
33
|
+
open = controlled ? !!openProp : openSelf,
|
|
34
|
+
pressHandler = (0, _react.useCallback)(event => {
|
|
35
|
+
onPressHeader?.(event);
|
|
36
|
+
if (!controlled) {
|
|
37
|
+
setOpenSelf(state => !state);
|
|
38
|
+
}
|
|
39
|
+
}, [controlled, onPressHeader]);
|
|
40
|
+
(0, _react.useEffect)(() => {
|
|
41
|
+
if (!ref.current.isMounted) {
|
|
42
|
+
ref.current.isMounted = true;
|
|
43
|
+
} else {
|
|
44
|
+
ref.current.open = open;
|
|
45
|
+
onChange?.(open);
|
|
46
|
+
}
|
|
47
|
+
}, [open, onChange]);
|
|
48
|
+
(0, _react.useImperativeHandle)(forwardedRef, () => {
|
|
49
|
+
return Object.assign(viewRef.current ?? {}, {
|
|
50
|
+
get open() {
|
|
51
|
+
return ref.current.open;
|
|
52
|
+
},
|
|
53
|
+
setOpen(value) {
|
|
54
|
+
if (!controlled) {
|
|
55
|
+
if (typeof value === 'boolean') {
|
|
56
|
+
ref.current.open = value;
|
|
57
|
+
} else {
|
|
58
|
+
ref.current.open = value(ref.current.open);
|
|
59
|
+
}
|
|
60
|
+
setOpenSelf(ref.current.open);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
}, [controlled]);
|
|
65
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
66
|
+
...props,
|
|
67
|
+
style: styleProp,
|
|
68
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_header.Header, {
|
|
69
|
+
...headerProps,
|
|
70
|
+
open: open,
|
|
71
|
+
size: accordionContext.size,
|
|
72
|
+
text: title,
|
|
73
|
+
flushAlignment: accordionContext.flushAlignment,
|
|
74
|
+
onPress: pressHandler
|
|
75
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Collapsible, {
|
|
76
|
+
motion: _motion.Motion,
|
|
77
|
+
controlled: true,
|
|
78
|
+
open: open,
|
|
79
|
+
contentContainerStyle: [accordionContext.collapsibleContentContainerStyle, style.panel],
|
|
80
|
+
children: children
|
|
81
|
+
})]
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
const style = _reactNative.StyleSheet.create({
|
|
85
|
+
panel: {
|
|
86
|
+
paddingTop: _index.SpacingConstant.spacing_03,
|
|
87
|
+
paddingBottom: _index.SpacingConstant.spacing_06,
|
|
88
|
+
paddingLeft: _index.SpacingConstant.spacing_05
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
//# sourceMappingURL=_item.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_index","_index2","_context","_header","_motion","_jsxRuntime","Item","exports","forwardRef","controlled","open","openProp","title","children","style","styleProp","onChange","onPressHeader","headerProps","props","forwardedRef","accordionContext","useContext","Context","ref","useRef","isMounted","viewRef","openSelf","setOpenSelf","useState","pressHandler","useCallback","event","state","useEffect","current","useImperativeHandle","Object","assign","setOpen","value","jsxs","View","jsx","Header","size","text","flushAlignment","onPress","Collapsible","motion","Motion","contentContainerStyle","collapsibleContentContainerStyle","panel","StyleSheet","create","paddingTop","SpacingConstant","spacing_03","paddingBottom","spacing_06","paddingLeft","spacing_05"],"sourceRoot":"../../../../src","sources":["components/accordion/_item.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAUA,IAAAC,YAAA,GAAAD,OAAA;AAMA,IAAAE,MAAA,GAAAF,OAAA;AAIA,IAAAG,OAAA,GAAAH,OAAA;AAIA,IAAAI,QAAA,GAAAJ,OAAA;AAIA,IAAAK,OAAA,GAAAL,OAAA;AAK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CAACyC,KAAK,CACT;MAAA1C,QAAA,EAEDA;IAAQ,CACE,CAAC;EAAA,CACT,CAAC;AAGT,CACD,CAAC;AAED,MACCC,KAAK,GACJ0C,uBAAU,CAACC,MAAM,CAAC;EACjBF,KAAK,EAAE;IACNG,UAAU,EAAEC,sBAAe,CAACC,UAAU;IACtCC,aAAa,EAAEF,sBAAe,CAACG,UAAU;IACzCC,WAAW,EAAEJ,sBAAe,CAACK;EAC9B;AACD,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Motion = void 0;
|
|
7
|
+
var _reactNativeReanimated = require("react-native-reanimated");
|
|
8
|
+
var _index = require("../../constants/index.js");
|
|
9
|
+
const Motion = exports.Motion = {
|
|
10
|
+
toOpen: {
|
|
11
|
+
duration: _index.MotionConstant.Durations.fast_02,
|
|
12
|
+
easing: _reactNativeReanimated.Easing.bezier(_index.MotionConstant.Easings.entrance.productive.x1, _index.MotionConstant.Easings.entrance.productive.y1, _index.MotionConstant.Easings.entrance.productive.x2, _index.MotionConstant.Easings.entrance.productive.y2)
|
|
13
|
+
},
|
|
14
|
+
toClose: {
|
|
15
|
+
duration: 0
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=_motion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNativeReanimated","require","_index","Motion","exports","toOpen","duration","MotionConstant","Durations","fast_02","easing","Easing","bezier","Easings","entrance","productive","x1","y1","x2","y2","toClose"],"sourceRoot":"../../../../src","sources":["components/accordion/_motion.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AAIA,IAAAC,MAAA,GAAAD,OAAA;AAQO,MAAME,MAA+C,GAAAC,OAAA,CAAAD,MAAA,GAC3D;EACCE,MAAM,EAAE;IACPC,QAAQ,EAAEC,qBAAc,CAACC,SAAS,CAACC,OAAO;IAC1CC,MAAM,EAAEC,6BAAM,CAACC,MAAM,CACpBL,qBAAc,CAACM,OAAO,CAACC,QAAQ,CAACC,UAAU,CAACC,EAAE,EAC7CT,qBAAc,CAACM,OAAO,CAACC,QAAQ,CAACC,UAAU,CAACE,EAAE,EAC7CV,qBAAc,CAACM,OAAO,CAACC,QAAQ,CAACC,UAAU,CAACG,EAAE,EAC7CX,qBAAc,CAACM,OAAO,CAACC,QAAQ,CAACC,UAAU,CAACI,EAC5C;EACD,CAAC;EACDC,OAAO,EAAE;IACRd,QAAQ,EAAE;EACX;AACD,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.MarginRightStyle = void 0;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
var _index = require("../../constants/index.js");
|
|
9
|
+
/**
|
|
10
|
+
* Sorry for named it %margin% but it is actually using padding
|
|
11
|
+
* https://carbondesignsystem.com/components/accordion/style/#margin-right
|
|
12
|
+
*/
|
|
13
|
+
const MarginRightStyle = exports.MarginRightStyle = _reactNative.StyleSheet.create({
|
|
14
|
+
large: {
|
|
15
|
+
paddingRight: '25%'
|
|
16
|
+
},
|
|
17
|
+
range_420_640: {
|
|
18
|
+
paddingRight: _index.SpacingConstant.spacing_10
|
|
19
|
+
},
|
|
20
|
+
small: {
|
|
21
|
+
paddingRight: _index.SpacingConstant.spacing_05
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
//# sourceMappingURL=_styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_index","MarginRightStyle","exports","StyleSheet","create","large","paddingRight","range_420_640","SpacingConstant","spacing_10","small","spacing_05"],"sourceRoot":"../../../../src","sources":["components/accordion/_styles.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAIA,IAAAC,MAAA,GAAAD,OAAA;AAIA;AACA;AACA;AACA;AACO,MAAME,gBAAgB,GAAAC,OAAA,CAAAD,gBAAA,GAC5BE,uBAAU,CAACC,MAAM,CAAC;EACjBC,KAAK,EAAE;IACNC,YAAY,EAAE;EACf,CAAC;EACDC,aAAa,EAAE;IACdD,YAAY,EAAEE,sBAAe,CAACC;EAC/B,CAAC;EACDC,KAAK,EAAE;IACNJ,YAAY,EAAEE,sBAAe,CAACG;EAC/B;AACD,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Accordion = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _context = require("./_context.js");
|
|
10
|
+
var _headerBorder = require("./_header-border.js");
|
|
11
|
+
var _item = require("./_item.js");
|
|
12
|
+
var _styles = require("./_styles.js");
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
+
const Accordion_ = /*#__PURE__*/(0, _react.forwardRef)(function Accordion({
|
|
15
|
+
size,
|
|
16
|
+
flushAlignment,
|
|
17
|
+
children,
|
|
18
|
+
style,
|
|
19
|
+
onLayout,
|
|
20
|
+
...props
|
|
21
|
+
}, forwardedRef) {
|
|
22
|
+
const ref = (0, _react.useRef)({
|
|
23
|
+
marginRightStyleKey: getMarginRightStyleKey(windowWidth)
|
|
24
|
+
}),
|
|
25
|
+
[marginRightStyleKey, setMarginRightStyleKey] = (0, _react.useState)(ref.current.marginRightStyleKey),
|
|
26
|
+
handlerLayout = (0, _react.useCallback)(event => {
|
|
27
|
+
onLayout?.(event);
|
|
28
|
+
/**
|
|
29
|
+
* https://carbondesignsystem.com/components/accordion/style/#margin-right
|
|
30
|
+
*/
|
|
31
|
+
|
|
32
|
+
const key = getMarginRightStyleKey(windowWidth);
|
|
33
|
+
if (ref.current.marginRightStyleKey !== key) {
|
|
34
|
+
ref.current.marginRightStyleKey = key;
|
|
35
|
+
setMarginRightStyleKey(key);
|
|
36
|
+
}
|
|
37
|
+
}, [onLayout]);
|
|
38
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
39
|
+
...props,
|
|
40
|
+
style: style,
|
|
41
|
+
onLayout: handlerLayout,
|
|
42
|
+
ref: forwardedRef,
|
|
43
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_context.Context.Provider, {
|
|
44
|
+
value: {
|
|
45
|
+
size,
|
|
46
|
+
flushAlignment,
|
|
47
|
+
collapsibleContentContainerStyle: _styles.MarginRightStyle[marginRightStyleKey]
|
|
48
|
+
},
|
|
49
|
+
children: [children, !!children?.length && /*#__PURE__*/(0, _jsxRuntime.jsx)(_headerBorder.HeaderBorder, {
|
|
50
|
+
flushAlignment: flushAlignment,
|
|
51
|
+
style: baseStyle.lastAccordionHeaderBorder
|
|
52
|
+
})]
|
|
53
|
+
})
|
|
54
|
+
});
|
|
55
|
+
});
|
|
56
|
+
const Accordion = exports.Accordion = Object.assign(Accordion_, {
|
|
57
|
+
Item: _item.Item
|
|
58
|
+
});
|
|
59
|
+
const baseStyle = _reactNative.StyleSheet.create({
|
|
60
|
+
lastAccordionHeaderBorder: {
|
|
61
|
+
top: '100%'
|
|
62
|
+
}
|
|
63
|
+
}),
|
|
64
|
+
windowWidth = _reactNative.Dimensions.get('window').width;
|
|
65
|
+
function getMarginRightStyleKey(width) {
|
|
66
|
+
if (width < 420) {
|
|
67
|
+
return 'small';
|
|
68
|
+
}
|
|
69
|
+
if (width <= 640) {
|
|
70
|
+
return 'range_420_640';
|
|
71
|
+
}
|
|
72
|
+
return 'large';
|
|
73
|
+
}
|
|
74
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_context","_headerBorder","_item","_styles","_jsxRuntime","Accordion_","forwardRef","Accordion","size","flushAlignment","children","style","onLayout","props","forwardedRef","ref","useRef","marginRightStyleKey","getMarginRightStyleKey","windowWidth","setMarginRightStyleKey","useState","current","handlerLayout","useCallback","event","key","jsx","View","jsxs","Context","Provider","value","collapsibleContentContainerStyle","MarginRightStyle","length","HeaderBorder","baseStyle","lastAccordionHeaderBorder","exports","Object","assign","Item","StyleSheet","create","top","Dimensions","get","width"],"sourceRoot":"../../../../src","sources":["components/accordion/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAOA,IAAAC,YAAA,GAAAD,OAAA;AAOA,IAAAE,QAAA,GAAAF,OAAA;AAQA,IAAAG,aAAA,GAAAH,OAAA;AAIA,IAAAI,KAAA,GAAAJ,OAAA;AAUA,IAAAK,OAAA,GAAAL,OAAA;AAEkB,IAAAM,WAAA,GAAAN,OAAA;AAkBlB,MAAMO,UAAU,gBAAG,IAAAC,iBAAU,EAC5B,SAASC,SAASA,CACjB;EACCC,IAAI;EACJC,cAAc;EACdC,QAAQ;EACRC,KAAK;EACLC,QAAQ;EACR,GAAGC;AACJ,CAAC,EACDC,YAAY,EACX;EAED,MACCC,GAAG,GACF,IAAAC,aAAM,EAEH;MACFC,mBAAmB,EAAEC,sBAAsB,CAACC,WAAW;IACxD,CAAC,CAAC;IAEH,CAACF,mBAAmB,EAAEG,sBAAsB,CAAC,GAC5C,IAAAC,eAAQ,EAACN,GAAG,CAACO,OAAO,CAACL,mBAAmB,CAAC;IAE1CM,aAAiD,GAChD,IAAAC,kBAAW,EAACC,KAAK,IAAI;MACpBb,QAAQ,GAAGa,KAAK,CAAC;MACjB;AACL;AACA;;MAEK,MAAMC,GAAG,GAAGR,sBAAsB,CAACC,WAAW,CAAC;MAE/C,IAAGJ,GAAG,CAACO,OAAO,CAACL,mBAAmB,KAAKS,GAAG,EAAE;QAC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e;EACvB;EAEA,OAAO,OAAO;AACf","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/accordion/types.ts"],"mappings":"","ignoreList":[]}
|