@audira/carbon-react-native 1.0.0-beta.19 → 1.0.0-beta.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/components/accordion/_Header.js +15 -15
- package/lib/commonjs/components/accordion/_Header.js.map +1 -1
- package/lib/commonjs/components/accordion/_HeaderBorder.js +8 -8
- package/lib/commonjs/components/accordion/_HeaderBorder.js.map +1 -1
- package/lib/commonjs/components/accordion/_Item.js +2 -2
- package/lib/commonjs/components/accordion/_Item.js.map +1 -1
- package/lib/commonjs/components/box/Box.js +26 -0
- package/lib/commonjs/components/box/Box.js.map +1 -0
- package/lib/commonjs/components/box/BoxProps.js +6 -0
- package/lib/commonjs/components/box/BoxProps.js.map +1 -0
- package/lib/commonjs/components/box/BoxRef.js +6 -0
- package/lib/commonjs/components/box/BoxRef.js.map +1 -0
- package/lib/commonjs/components/box/index.js +17 -0
- package/lib/commonjs/components/box/index.js.map +1 -0
- package/lib/commonjs/components/button/base/Base.js +2 -8
- package/lib/commonjs/components/button/base/Base.js.map +1 -1
- package/lib/commonjs/components/button-group/ButtonGroup.js +2 -2
- package/lib/commonjs/components/button-group/ButtonGroup.js.map +1 -1
- package/lib/commonjs/components/button-group/index.js.map +1 -1
- package/lib/commonjs/components/checkbox/Checkbox.js +16 -19
- package/lib/commonjs/components/checkbox/Checkbox.js.map +1 -1
- package/lib/commonjs/components/checkbox-group/CheckboxGroup.js +11 -21
- package/lib/commonjs/components/checkbox-group/CheckboxGroup.js.map +1 -1
- package/lib/commonjs/components/checkbox-input/CheckboxInput.js +23 -23
- package/lib/commonjs/components/checkbox-input/CheckboxInput.js.map +1 -1
- package/lib/commonjs/components/collapsible/Collapsible.js +3 -3
- package/lib/commonjs/components/collapsible/Collapsible.js.map +1 -1
- package/lib/commonjs/components/form-helper-text/FormHelperText.js +10 -13
- package/lib/commonjs/components/form-helper-text/FormHelperText.js.map +1 -1
- package/lib/commonjs/components/form-label/FormLabel.js +4 -7
- package/lib/commonjs/components/form-label/FormLabel.js.map +1 -1
- package/lib/commonjs/components/form-label/index.js.map +1 -1
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/components/inline-loading/InlineLoading.js +9 -12
- package/lib/commonjs/components/inline-loading/InlineLoading.js.map +1 -1
- package/lib/commonjs/components/inline-loading/index.js.map +1 -1
- package/lib/commonjs/components/layer/index.js.map +1 -1
- package/lib/commonjs/components/modal/Modal.js +17 -18
- package/lib/commonjs/components/modal/Modal.js.map +1 -1
- package/lib/commonjs/components/modal/index.js.map +1 -1
- package/lib/commonjs/components/modal-content/ModalContent.js +5 -8
- package/lib/commonjs/components/modal-content/ModalContent.js.map +1 -1
- package/lib/commonjs/components/modal-content/index.js.map +1 -1
- package/lib/commonjs/components/notification/base/Base.js +19 -20
- package/lib/commonjs/components/notification/base/Base.js.map +1 -1
- package/lib/commonjs/components/password-input-field/_ghost-icon/GhostIcon.js +3 -3
- package/lib/commonjs/components/password-input-field/_ghost-icon/GhostIcon.js.map +1 -1
- package/lib/commonjs/components/radio-button/RadioButton.js +19 -18
- package/lib/commonjs/components/radio-button/RadioButton.js.map +1 -1
- package/lib/commonjs/components/radio-button/index.js.map +1 -1
- package/lib/commonjs/components/radio-button-group/RadioButtonGroup.js +10 -9
- package/lib/commonjs/components/radio-button-group/RadioButtonGroup.js.map +1 -1
- package/lib/commonjs/components/radio-button-group/index.js.map +1 -1
- package/lib/commonjs/components/radio-button-input/RadioButtonInput.js +25 -25
- package/lib/commonjs/components/radio-button-input/RadioButtonInput.js.map +1 -1
- package/lib/commonjs/components/radio-button-input/index.js.map +1 -1
- package/lib/commonjs/components/switch/Switch.js +10 -10
- package/lib/commonjs/components/switch/Switch.js.map +1 -1
- package/lib/commonjs/components/text/Text.js +31 -44
- package/lib/commonjs/components/text/Text.js.map +1 -1
- package/lib/commonjs/components/text-area/index.js.map +1 -1
- package/lib/commonjs/components/text-area-field/index.js.map +1 -1
- package/lib/commonjs/components/text-area-fluid/TextAreaFluid.js +4 -4
- package/lib/commonjs/components/text-area-fluid/TextAreaFluid.js.map +1 -1
- package/lib/commonjs/components/text-area-fluid/index.js.map +1 -1
- package/lib/commonjs/components/text-input-field/TextInputField.js +33 -20
- package/lib/commonjs/components/text-input-field/TextInputField.js.map +1 -1
- package/lib/commonjs/components/text-input-field/_rn-text-input/RNTextInput.js +4 -4
- package/lib/commonjs/components/text-input-field/_rn-text-input/RNTextInput.js.map +1 -1
- package/lib/commonjs/components/text-input-field/index.js.map +1 -1
- package/lib/commonjs/components/text-input-fluid/TextInputFluid.js +4 -4
- package/lib/commonjs/components/text-input-fluid/TextInputFluid.js.map +1 -1
- package/lib/commonjs/components/text-input-fluid/index.js.map +1 -1
- package/lib/commonjs/components/toggle/base/Base.js +14 -13
- package/lib/commonjs/components/toggle/base/Base.js.map +1 -1
- package/lib/commonjs/components/toggle/base/index.js.map +1 -1
- package/lib/commonjs/components/toggle/default/index.js.map +1 -1
- package/lib/commonjs/components/toggle/index.js.map +1 -1
- package/lib/commonjs/components/toggle/small/index.js.map +1 -1
- package/lib/commonjs/providers/dialog/_controller/_modal/Modal.js +1 -1
- package/lib/commonjs/providers/dialog/_controller/_modal/Modal.js.map +1 -1
- package/lib/commonjs/style-sheets/direction-style-sheet.js +10 -0
- package/lib/commonjs/style-sheets/direction-style-sheet.js.map +1 -0
- package/lib/commonjs/style-sheets/display-style-sheet.js +10 -0
- package/lib/commonjs/style-sheets/display-style-sheet.js.map +1 -0
- package/lib/commonjs/style-sheets/flex-style-sheet.js +10 -0
- package/lib/commonjs/style-sheets/flex-style-sheet.js.map +1 -0
- package/lib/commonjs/style-sheets/font-style-sheet.js +10 -0
- package/lib/commonjs/style-sheets/font-style-sheet.js.map +1 -0
- package/lib/commonjs/style-sheets/height-style-sheet.js +10 -0
- package/lib/commonjs/style-sheets/height-style-sheet.js.map +1 -0
- package/lib/commonjs/style-sheets/index.js +121 -0
- package/lib/commonjs/style-sheets/index.js.map +1 -0
- package/lib/commonjs/style-sheets/overflow-style-sheet.js +10 -0
- package/lib/commonjs/style-sheets/overflow-style-sheet.js.map +1 -0
- package/lib/commonjs/style-sheets/position-style-sheet.js +10 -0
- package/lib/commonjs/style-sheets/position-style-sheet.js.map +1 -0
- package/lib/commonjs/style-sheets/style-sheet-obj/direction.js +18 -0
- package/lib/commonjs/style-sheets/style-sheet-obj/direction.js.map +1 -0
- package/lib/commonjs/style-sheets/style-sheet-obj/display.js +15 -0
- package/lib/commonjs/style-sheets/style-sheet-obj/display.js.map +1 -0
- package/lib/{module/_internal/style-sheets/flex-style-sheet.js → commonjs/style-sheets/style-sheet-obj/flex.js} +25 -4
- package/lib/commonjs/style-sheets/style-sheet-obj/flex.js.map +1 -0
- package/lib/commonjs/{_internal/style-sheets/text-style-sheet.js → style-sheets/style-sheet-obj/font.js} +4 -5
- package/lib/commonjs/style-sheets/style-sheet-obj/font.js.map +1 -0
- package/lib/commonjs/style-sheets/style-sheet-obj/height.js +18 -0
- package/lib/commonjs/style-sheets/style-sheet-obj/height.js.map +1 -0
- package/lib/commonjs/style-sheets/style-sheet-obj/index.js +105 -0
- package/lib/commonjs/style-sheets/style-sheet-obj/index.js.map +1 -0
- package/lib/commonjs/style-sheets/style-sheet-obj/overflow.js +18 -0
- package/lib/commonjs/style-sheets/style-sheet-obj/overflow.js.map +1 -0
- package/lib/commonjs/style-sheets/style-sheet-obj/position.js +18 -0
- package/lib/commonjs/style-sheets/style-sheet-obj/position.js.map +1 -0
- package/lib/commonjs/style-sheets/style-sheet-obj/typography.js +31 -0
- package/lib/commonjs/style-sheets/style-sheet-obj/typography.js.map +1 -0
- package/lib/commonjs/style-sheets/style-sheet-obj/width.js +18 -0
- package/lib/commonjs/style-sheets/style-sheet-obj/width.js.map +1 -0
- package/lib/commonjs/style-sheets/typography-style-sheet.js +10 -0
- package/lib/commonjs/style-sheets/typography-style-sheet.js.map +1 -0
- package/lib/commonjs/style-sheets/width-style-sheet.js +10 -0
- package/lib/commonjs/style-sheets/width-style-sheet.js.map +1 -0
- package/lib/module/components/accordion/_Header.js +1 -1
- package/lib/module/components/accordion/_Header.js.map +1 -1
- package/lib/module/components/accordion/_HeaderBorder.js +3 -3
- package/lib/module/components/accordion/_HeaderBorder.js.map +1 -1
- package/lib/module/components/accordion/_Item.js +2 -2
- package/lib/module/components/accordion/_Item.js.map +1 -1
- package/lib/module/components/box/Box.js +22 -0
- package/lib/module/components/box/Box.js.map +1 -0
- package/lib/module/components/box/BoxProps.js +4 -0
- package/lib/module/components/box/BoxProps.js.map +1 -0
- package/lib/module/components/box/BoxRef.js +4 -0
- package/lib/module/components/box/BoxRef.js.map +1 -0
- package/lib/module/components/box/index.js +4 -0
- package/lib/module/components/box/index.js.map +1 -0
- package/lib/module/components/button/base/Base.js +2 -8
- package/lib/module/components/button/base/Base.js.map +1 -1
- package/lib/module/components/button-group/ButtonGroup.js +2 -2
- package/lib/module/components/button-group/ButtonGroup.js.map +1 -1
- package/lib/module/components/button-group/index.js.map +1 -1
- package/lib/module/components/checkbox/Checkbox.js +7 -10
- package/lib/module/components/checkbox/Checkbox.js.map +1 -1
- package/lib/module/components/checkbox-group/CheckboxGroup.js +9 -19
- package/lib/module/components/checkbox-group/CheckboxGroup.js.map +1 -1
- package/lib/module/components/checkbox-input/CheckboxInput.js +3 -3
- package/lib/module/components/checkbox-input/CheckboxInput.js.map +1 -1
- package/lib/module/components/collapsible/Collapsible.js +3 -3
- package/lib/module/components/collapsible/Collapsible.js.map +1 -1
- package/lib/module/components/form-helper-text/FormHelperText.js +5 -8
- package/lib/module/components/form-helper-text/FormHelperText.js.map +1 -1
- package/lib/module/components/form-label/FormLabel.js +6 -9
- package/lib/module/components/form-label/FormLabel.js.map +1 -1
- package/lib/module/components/form-label/index.js.map +1 -1
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/components/inline-loading/InlineLoading.js +6 -9
- package/lib/module/components/inline-loading/InlineLoading.js.map +1 -1
- package/lib/module/components/inline-loading/index.js.map +1 -1
- package/lib/module/components/layer/index.js.map +1 -1
- package/lib/module/components/modal/Modal.js +5 -6
- package/lib/module/components/modal/Modal.js.map +1 -1
- package/lib/module/components/modal/index.js.map +1 -1
- package/lib/module/components/modal-content/ModalContent.js +5 -8
- package/lib/module/components/modal-content/ModalContent.js.map +1 -1
- package/lib/module/components/modal-content/index.js.map +1 -1
- package/lib/module/components/notification/base/Base.js +4 -5
- package/lib/module/components/notification/base/Base.js.map +1 -1
- package/lib/module/components/password-input-field/_ghost-icon/GhostIcon.js +3 -3
- package/lib/module/components/password-input-field/_ghost-icon/GhostIcon.js.map +1 -1
- package/lib/module/components/radio-button/RadioButton.js +6 -5
- package/lib/module/components/radio-button/RadioButton.js.map +1 -1
- package/lib/module/components/radio-button/index.js.map +1 -1
- package/lib/module/components/radio-button-group/RadioButtonGroup.js +3 -2
- package/lib/module/components/radio-button-group/RadioButtonGroup.js.map +1 -1
- package/lib/module/components/radio-button-group/index.js.map +1 -1
- package/lib/module/components/radio-button-input/RadioButtonInput.js +3 -3
- package/lib/module/components/radio-button-input/RadioButtonInput.js.map +1 -1
- package/lib/module/components/radio-button-input/index.js.map +1 -1
- package/lib/module/components/switch/Switch.js +2 -2
- package/lib/module/components/switch/Switch.js.map +1 -1
- package/lib/module/components/text/Text.js +27 -40
- package/lib/module/components/text/Text.js.map +1 -1
- package/lib/module/components/text-area/index.js.map +1 -1
- package/lib/module/components/text-area-field/index.js.map +1 -1
- package/lib/module/components/text-area-fluid/TextAreaFluid.js +1 -1
- package/lib/module/components/text-area-fluid/TextAreaFluid.js.map +1 -1
- package/lib/module/components/text-area-fluid/index.js.map +1 -1
- package/lib/module/components/text-input-field/TextInputField.js +20 -7
- package/lib/module/components/text-input-field/TextInputField.js.map +1 -1
- package/lib/module/components/text-input-field/_rn-text-input/RNTextInput.js +2 -2
- package/lib/module/components/text-input-field/_rn-text-input/RNTextInput.js.map +1 -1
- package/lib/module/components/text-input-field/index.js.map +1 -1
- package/lib/module/components/text-input-fluid/TextInputFluid.js +1 -1
- package/lib/module/components/text-input-fluid/TextInputFluid.js.map +1 -1
- package/lib/module/components/text-input-fluid/index.js.map +1 -1
- package/lib/module/components/toggle/base/Base.js +7 -6
- package/lib/module/components/toggle/base/Base.js.map +1 -1
- package/lib/module/components/toggle/base/index.js.map +1 -1
- package/lib/module/components/toggle/default/index.js.map +1 -1
- package/lib/module/components/toggle/index.js.map +1 -1
- package/lib/module/components/toggle/small/index.js.map +1 -1
- package/lib/module/providers/dialog/_controller/_modal/Modal.js +1 -1
- package/lib/module/providers/dialog/_controller/_modal/Modal.js.map +1 -1
- package/lib/module/style-sheets/direction-style-sheet.js +6 -0
- package/lib/module/style-sheets/direction-style-sheet.js.map +1 -0
- package/lib/module/style-sheets/display-style-sheet.js +6 -0
- package/lib/module/style-sheets/display-style-sheet.js.map +1 -0
- package/lib/module/style-sheets/flex-style-sheet.js +6 -0
- package/lib/module/style-sheets/flex-style-sheet.js.map +1 -0
- package/lib/module/style-sheets/font-style-sheet.js +6 -0
- package/lib/module/style-sheets/font-style-sheet.js.map +1 -0
- package/lib/module/style-sheets/height-style-sheet.js +6 -0
- package/lib/module/style-sheets/height-style-sheet.js.map +1 -0
- package/lib/module/style-sheets/index.js +14 -0
- package/lib/module/style-sheets/index.js.map +1 -0
- package/lib/module/style-sheets/overflow-style-sheet.js +6 -0
- package/lib/module/style-sheets/overflow-style-sheet.js.map +1 -0
- package/lib/module/style-sheets/position-style-sheet.js +6 -0
- package/lib/module/style-sheets/position-style-sheet.js.map +1 -0
- package/lib/module/style-sheets/style-sheet-obj/direction.js +14 -0
- package/lib/module/style-sheets/style-sheet-obj/direction.js.map +1 -0
- package/lib/module/style-sheets/style-sheet-obj/display.js +11 -0
- package/lib/module/style-sheets/style-sheet-obj/display.js.map +1 -0
- package/lib/{commonjs/_internal/style-sheets/flex-style-sheet.js → module/style-sheets/style-sheet-obj/flex.js} +21 -8
- package/lib/module/style-sheets/style-sheet-obj/flex.js.map +1 -0
- package/lib/module/{_internal/style-sheets/text-style-sheet.js → style-sheets/style-sheet-obj/font.js} +3 -4
- package/lib/module/style-sheets/style-sheet-obj/font.js.map +1 -0
- package/lib/module/style-sheets/style-sheet-obj/height.js +14 -0
- package/lib/module/style-sheets/style-sheet-obj/height.js.map +1 -0
- package/lib/module/style-sheets/style-sheet-obj/index.js +12 -0
- package/lib/module/style-sheets/style-sheet-obj/index.js.map +1 -0
- package/lib/module/style-sheets/style-sheet-obj/overflow.js +14 -0
- package/lib/module/style-sheets/style-sheet-obj/overflow.js.map +1 -0
- package/lib/module/style-sheets/style-sheet-obj/position.js +14 -0
- package/lib/module/style-sheets/style-sheet-obj/position.js.map +1 -0
- package/lib/module/style-sheets/style-sheet-obj/typography.js +27 -0
- package/lib/module/style-sheets/style-sheet-obj/typography.js.map +1 -0
- package/lib/module/style-sheets/style-sheet-obj/width.js +14 -0
- package/lib/module/style-sheets/style-sheet-obj/width.js.map +1 -0
- package/lib/module/style-sheets/typography-style-sheet.js +6 -0
- package/lib/module/style-sheets/typography-style-sheet.js.map +1 -0
- package/lib/module/style-sheets/width-style-sheet.js +6 -0
- package/lib/module/style-sheets/width-style-sheet.js.map +1 -0
- package/lib/typescript/commonjs/components/accordion/_HeaderBorder.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/box/Box.d.ts +4 -0
- package/lib/typescript/commonjs/components/box/Box.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/box/BoxProps.d.ts +4 -0
- package/lib/typescript/commonjs/components/box/BoxProps.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/box/BoxRef.d.ts +4 -0
- package/lib/typescript/commonjs/components/box/BoxRef.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/box/index.d.ts +4 -0
- package/lib/typescript/commonjs/components/box/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/button/base/Base.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/button-group/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/checkbox/Checkbox.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/checkbox/CheckboxProps.d.ts +4 -3
- package/lib/typescript/commonjs/components/checkbox/CheckboxProps.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/checkbox-group/CheckboxGroup.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/checkbox-input/CheckboxInput.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/collapsible/Collapsible.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/form-helper-text/FormHelperText.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/form-helper-text/FormHelperTextProps.d.ts +2 -2
- package/lib/typescript/commonjs/components/form-helper-text/FormHelperTextProps.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/form-label/FormLabel.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/form-label/FormLabelProps.d.ts +2 -2
- package/lib/typescript/commonjs/components/form-label/FormLabelProps.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/form-label/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/inline-loading/InlineLoading.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/inline-loading/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/layer/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/modal/Modal.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/modal/ModalProps.d.ts +2 -2
- package/lib/typescript/commonjs/components/modal/ModalProps.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/modal/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/modal-content/ModalContent.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/modal-content/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/notification/base/Base.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/radio-button/RadioButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/radio-button/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/radio-button-group/RadioButtonGroup.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/radio-button-group/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/radio-button-input/RadioButtonInput.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/radio-button-input/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/text/Text.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/text-area/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/text-area-field/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/text-area-fluid/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/text-input-field/TextInputField.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/text-input-field/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/text-input-fluid/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/toggle/base/Base.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/toggle/base/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/toggle/default/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/toggle/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/toggle/small/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/style-sheets/direction-style-sheet.d.ts +12 -0
- package/lib/typescript/commonjs/style-sheets/direction-style-sheet.d.ts.map +1 -0
- package/lib/typescript/commonjs/style-sheets/display-style-sheet.d.ts +9 -0
- package/lib/typescript/commonjs/style-sheets/display-style-sheet.d.ts.map +1 -0
- package/lib/typescript/commonjs/style-sheets/flex-style-sheet.d.ts +99 -0
- package/lib/typescript/commonjs/style-sheets/flex-style-sheet.d.ts.map +1 -0
- package/lib/typescript/commonjs/style-sheets/font-style-sheet.d.ts +59 -0
- package/lib/typescript/commonjs/style-sheets/font-style-sheet.d.ts.map +1 -0
- package/lib/typescript/commonjs/style-sheets/height-style-sheet.d.ts +12 -0
- package/lib/typescript/commonjs/style-sheets/height-style-sheet.d.ts.map +1 -0
- package/lib/typescript/commonjs/style-sheets/index.d.ts +12 -0
- package/lib/typescript/commonjs/style-sheets/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/style-sheets/overflow-style-sheet.d.ts +12 -0
- package/lib/typescript/commonjs/style-sheets/overflow-style-sheet.d.ts.map +1 -0
- package/lib/typescript/commonjs/style-sheets/position-style-sheet.d.ts +12 -0
- package/lib/typescript/commonjs/style-sheets/position-style-sheet.d.ts.map +1 -0
- package/lib/typescript/commonjs/style-sheets/style-sheet-obj/direction.d.ts +12 -0
- package/lib/typescript/commonjs/style-sheets/style-sheet-obj/direction.d.ts.map +1 -0
- package/lib/typescript/commonjs/style-sheets/style-sheet-obj/display.d.ts +9 -0
- package/lib/typescript/commonjs/style-sheets/style-sheet-obj/display.d.ts.map +1 -0
- package/lib/typescript/commonjs/style-sheets/style-sheet-obj/flex.d.ts +99 -0
- package/lib/typescript/commonjs/style-sheets/style-sheet-obj/flex.d.ts.map +1 -0
- package/lib/typescript/commonjs/style-sheets/style-sheet-obj/font.d.ts +59 -0
- package/lib/typescript/commonjs/style-sheets/style-sheet-obj/font.d.ts.map +1 -0
- package/lib/typescript/commonjs/style-sheets/style-sheet-obj/height.d.ts +12 -0
- package/lib/typescript/commonjs/style-sheets/style-sheet-obj/height.d.ts.map +1 -0
- package/lib/typescript/commonjs/style-sheets/style-sheet-obj/index.d.ts +10 -0
- package/lib/typescript/commonjs/style-sheets/style-sheet-obj/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/style-sheets/style-sheet-obj/overflow.d.ts +12 -0
- package/lib/typescript/commonjs/style-sheets/style-sheet-obj/overflow.d.ts.map +1 -0
- package/lib/typescript/commonjs/style-sheets/style-sheet-obj/position.d.ts +12 -0
- package/lib/typescript/commonjs/style-sheets/style-sheet-obj/position.d.ts.map +1 -0
- package/lib/typescript/commonjs/style-sheets/style-sheet-obj/typography.d.ts +24 -0
- package/lib/typescript/commonjs/style-sheets/style-sheet-obj/typography.d.ts.map +1 -0
- package/lib/typescript/commonjs/style-sheets/style-sheet-obj/width.d.ts +12 -0
- package/lib/typescript/commonjs/style-sheets/style-sheet-obj/width.d.ts.map +1 -0
- package/lib/typescript/commonjs/style-sheets/typography-style-sheet.d.ts +24 -0
- package/lib/typescript/commonjs/style-sheets/typography-style-sheet.d.ts.map +1 -0
- package/lib/typescript/commonjs/style-sheets/width-style-sheet.d.ts +12 -0
- package/lib/typescript/commonjs/style-sheets/width-style-sheet.d.ts.map +1 -0
- package/lib/typescript/module/components/accordion/_HeaderBorder.d.ts.map +1 -1
- package/lib/typescript/module/components/box/Box.d.ts +4 -0
- package/lib/typescript/module/components/box/Box.d.ts.map +1 -0
- package/lib/typescript/module/components/box/BoxProps.d.ts +4 -0
- package/lib/typescript/module/components/box/BoxProps.d.ts.map +1 -0
- package/lib/typescript/module/components/box/BoxRef.d.ts +4 -0
- package/lib/typescript/module/components/box/BoxRef.d.ts.map +1 -0
- package/lib/typescript/module/components/box/index.d.ts +4 -0
- package/lib/typescript/module/components/box/index.d.ts.map +1 -0
- package/lib/typescript/module/components/button/base/Base.d.ts.map +1 -1
- package/lib/typescript/module/components/button-group/index.d.ts.map +1 -1
- package/lib/typescript/module/components/checkbox/Checkbox.d.ts.map +1 -1
- package/lib/typescript/module/components/checkbox/CheckboxProps.d.ts +4 -3
- package/lib/typescript/module/components/checkbox/CheckboxProps.d.ts.map +1 -1
- package/lib/typescript/module/components/checkbox-group/CheckboxGroup.d.ts.map +1 -1
- package/lib/typescript/module/components/checkbox-input/CheckboxInput.d.ts.map +1 -1
- package/lib/typescript/module/components/collapsible/Collapsible.d.ts.map +1 -1
- package/lib/typescript/module/components/form-helper-text/FormHelperText.d.ts.map +1 -1
- package/lib/typescript/module/components/form-helper-text/FormHelperTextProps.d.ts +2 -2
- package/lib/typescript/module/components/form-helper-text/FormHelperTextProps.d.ts.map +1 -1
- package/lib/typescript/module/components/form-label/FormLabel.d.ts.map +1 -1
- package/lib/typescript/module/components/form-label/FormLabelProps.d.ts +2 -2
- package/lib/typescript/module/components/form-label/FormLabelProps.d.ts.map +1 -1
- package/lib/typescript/module/components/form-label/index.d.ts.map +1 -1
- package/lib/typescript/module/components/index.d.ts.map +1 -1
- package/lib/typescript/module/components/inline-loading/InlineLoading.d.ts.map +1 -1
- package/lib/typescript/module/components/inline-loading/index.d.ts.map +1 -1
- package/lib/typescript/module/components/layer/index.d.ts.map +1 -1
- package/lib/typescript/module/components/modal/Modal.d.ts.map +1 -1
- package/lib/typescript/module/components/modal/ModalProps.d.ts +2 -2
- package/lib/typescript/module/components/modal/ModalProps.d.ts.map +1 -1
- package/lib/typescript/module/components/modal/index.d.ts.map +1 -1
- package/lib/typescript/module/components/modal-content/ModalContent.d.ts.map +1 -1
- package/lib/typescript/module/components/modal-content/index.d.ts.map +1 -1
- package/lib/typescript/module/components/notification/base/Base.d.ts.map +1 -1
- package/lib/typescript/module/components/radio-button/RadioButton.d.ts.map +1 -1
- package/lib/typescript/module/components/radio-button/index.d.ts.map +1 -1
- package/lib/typescript/module/components/radio-button-group/RadioButtonGroup.d.ts.map +1 -1
- package/lib/typescript/module/components/radio-button-group/index.d.ts.map +1 -1
- package/lib/typescript/module/components/radio-button-input/RadioButtonInput.d.ts.map +1 -1
- package/lib/typescript/module/components/radio-button-input/index.d.ts.map +1 -1
- package/lib/typescript/module/components/text/Text.d.ts.map +1 -1
- package/lib/typescript/module/components/text-area/index.d.ts.map +1 -1
- package/lib/typescript/module/components/text-area-field/index.d.ts.map +1 -1
- package/lib/typescript/module/components/text-area-fluid/index.d.ts.map +1 -1
- package/lib/typescript/module/components/text-input-field/TextInputField.d.ts.map +1 -1
- package/lib/typescript/module/components/text-input-field/index.d.ts.map +1 -1
- package/lib/typescript/module/components/text-input-fluid/index.d.ts.map +1 -1
- package/lib/typescript/module/components/toggle/base/Base.d.ts.map +1 -1
- package/lib/typescript/module/components/toggle/base/index.d.ts.map +1 -1
- package/lib/typescript/module/components/toggle/default/index.d.ts.map +1 -1
- package/lib/typescript/module/components/toggle/index.d.ts.map +1 -1
- package/lib/typescript/module/components/toggle/small/index.d.ts.map +1 -1
- package/lib/typescript/module/style-sheets/direction-style-sheet.d.ts +12 -0
- package/lib/typescript/module/style-sheets/direction-style-sheet.d.ts.map +1 -0
- package/lib/typescript/module/style-sheets/display-style-sheet.d.ts +9 -0
- package/lib/typescript/module/style-sheets/display-style-sheet.d.ts.map +1 -0
- package/lib/typescript/module/style-sheets/flex-style-sheet.d.ts +99 -0
- package/lib/typescript/module/style-sheets/flex-style-sheet.d.ts.map +1 -0
- package/lib/typescript/module/style-sheets/font-style-sheet.d.ts +59 -0
- package/lib/typescript/module/style-sheets/font-style-sheet.d.ts.map +1 -0
- package/lib/typescript/module/style-sheets/height-style-sheet.d.ts +12 -0
- package/lib/typescript/module/style-sheets/height-style-sheet.d.ts.map +1 -0
- package/lib/typescript/module/style-sheets/index.d.ts +12 -0
- package/lib/typescript/module/style-sheets/index.d.ts.map +1 -0
- package/lib/typescript/module/style-sheets/overflow-style-sheet.d.ts +12 -0
- package/lib/typescript/module/style-sheets/overflow-style-sheet.d.ts.map +1 -0
- package/lib/typescript/module/style-sheets/position-style-sheet.d.ts +12 -0
- package/lib/typescript/module/style-sheets/position-style-sheet.d.ts.map +1 -0
- package/lib/typescript/module/style-sheets/style-sheet-obj/direction.d.ts +12 -0
- package/lib/typescript/module/style-sheets/style-sheet-obj/direction.d.ts.map +1 -0
- package/lib/typescript/module/style-sheets/style-sheet-obj/display.d.ts +9 -0
- package/lib/typescript/module/style-sheets/style-sheet-obj/display.d.ts.map +1 -0
- package/lib/typescript/module/style-sheets/style-sheet-obj/flex.d.ts +99 -0
- package/lib/typescript/module/style-sheets/style-sheet-obj/flex.d.ts.map +1 -0
- package/lib/typescript/module/style-sheets/style-sheet-obj/font.d.ts +59 -0
- package/lib/typescript/module/style-sheets/style-sheet-obj/font.d.ts.map +1 -0
- package/lib/typescript/module/style-sheets/style-sheet-obj/height.d.ts +12 -0
- package/lib/typescript/module/style-sheets/style-sheet-obj/height.d.ts.map +1 -0
- package/lib/typescript/module/style-sheets/style-sheet-obj/index.d.ts +10 -0
- package/lib/typescript/module/style-sheets/style-sheet-obj/index.d.ts.map +1 -0
- package/lib/typescript/module/style-sheets/style-sheet-obj/overflow.d.ts +12 -0
- package/lib/typescript/module/style-sheets/style-sheet-obj/overflow.d.ts.map +1 -0
- package/lib/typescript/module/style-sheets/style-sheet-obj/position.d.ts +12 -0
- package/lib/typescript/module/style-sheets/style-sheet-obj/position.d.ts.map +1 -0
- package/lib/typescript/module/style-sheets/style-sheet-obj/typography.d.ts +24 -0
- package/lib/typescript/module/style-sheets/style-sheet-obj/typography.d.ts.map +1 -0
- package/lib/typescript/module/style-sheets/style-sheet-obj/width.d.ts +12 -0
- package/lib/typescript/module/style-sheets/style-sheet-obj/width.d.ts.map +1 -0
- package/lib/typescript/module/style-sheets/typography-style-sheet.d.ts +24 -0
- package/lib/typescript/module/style-sheets/typography-style-sheet.d.ts.map +1 -0
- package/lib/typescript/module/style-sheets/width-style-sheet.d.ts +12 -0
- package/lib/typescript/module/style-sheets/width-style-sheet.d.ts.map +1 -0
- package/lib/typescript/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/components/accordion/_Header.tsx +4 -4
- package/src/components/accordion/_HeaderBorder.tsx +7 -6
- package/src/components/accordion/_Item.tsx +3 -3
- package/src/components/box/Box.tsx +57 -0
- package/src/components/box/BoxProps.ts +6 -0
- package/src/components/box/BoxRef.ts +6 -0
- package/src/components/box/index.ts +3 -0
- package/src/components/button/base/Base.tsx +5 -10
- package/src/components/button-group/ButtonGroup.tsx +3 -3
- package/src/components/checkbox/Checkbox.tsx +16 -20
- package/src/components/checkbox/CheckboxProps.ts +6 -3
- package/src/components/checkbox-group/CheckboxGroup.tsx +15 -33
- package/src/components/checkbox-input/CheckboxInput.tsx +9 -8
- package/src/components/collapsible/Collapsible.tsx +5 -4
- package/src/components/form-helper-text/FormHelperText.tsx +10 -19
- package/src/components/form-helper-text/FormHelperTextProps.ts +3 -3
- package/src/components/form-label/FormLabel.tsx +6 -16
- package/src/components/form-label/FormLabelProps.ts +3 -3
- package/src/components/inline-loading/InlineLoading.tsx +11 -19
- package/src/components/modal/Modal.tsx +11 -10
- package/src/components/modal/ModalProps.ts +3 -3
- package/src/components/modal-content/ModalContent.tsx +5 -15
- package/src/components/notification/base/Base.tsx +10 -10
- package/src/components/password-input-field/_ghost-icon/GhostIcon.tsx +4 -4
- package/src/components/radio-button/RadioButton.tsx +16 -11
- package/src/components/radio-button-group/RadioButtonGroup.tsx +9 -5
- package/src/components/radio-button-input/RadioButtonInput.tsx +9 -8
- package/src/components/switch/Switch.tsx +6 -6
- package/src/components/text/Text.tsx +33 -67
- package/src/components/text-area-fluid/TextAreaFluid.tsx +4 -4
- package/src/components/text-input-field/TextInputField.tsx +37 -3
- package/src/components/text-input-field/_rn-text-input/RNTextInput.tsx +5 -5
- package/src/components/text-input-fluid/TextInputFluid.tsx +4 -4
- package/src/components/toggle/base/Base.tsx +16 -11
- package/src/providers/dialog/_controller/_modal/Modal.tsx +1 -1
- package/src/style-sheets/direction-style-sheet.ts +9 -0
- package/src/style-sheets/display-style-sheet.ts +9 -0
- package/src/style-sheets/flex-style-sheet.ts +9 -0
- package/src/style-sheets/font-style-sheet.ts +9 -0
- package/src/style-sheets/height-style-sheet.ts +9 -0
- package/src/style-sheets/index.ts +15 -0
- package/src/style-sheets/overflow-style-sheet.ts +9 -0
- package/src/style-sheets/position-style-sheet.ts +9 -0
- package/src/style-sheets/style-sheet-obj/direction.ts +15 -0
- package/src/style-sheets/style-sheet-obj/display.ts +12 -0
- package/src/{_internal/style-sheets/flex-style-sheet.ts → style-sheets/style-sheet-obj/flex.ts} +22 -4
- package/src/{_internal/style-sheets/text-style-sheet.ts → style-sheets/style-sheet-obj/font.ts} +4 -4
- package/src/style-sheets/style-sheet-obj/height.ts +15 -0
- package/src/style-sheets/style-sheet-obj/index.ts +9 -0
- package/src/style-sheets/style-sheet-obj/overflow.ts +15 -0
- package/src/style-sheets/style-sheet-obj/position.ts +15 -0
- package/src/style-sheets/style-sheet-obj/typography.ts +31 -0
- package/src/style-sheets/style-sheet-obj/width.ts +15 -0
- package/src/style-sheets/typography-style-sheet.ts +9 -0
- package/src/style-sheets/width-style-sheet.ts +9 -0
- package/lib/commonjs/_internal/style-sheets/common-style-sheet.js +0 -28
- package/lib/commonjs/_internal/style-sheets/common-style-sheet.js.map +0 -1
- package/lib/commonjs/_internal/style-sheets/flex-style-sheet.js.map +0 -1
- package/lib/commonjs/_internal/style-sheets/index.js +0 -39
- package/lib/commonjs/_internal/style-sheets/index.js.map +0 -1
- package/lib/commonjs/_internal/style-sheets/text-style-sheet.js.map +0 -1
- package/lib/module/_internal/style-sheets/common-style-sheet.js +0 -24
- package/lib/module/_internal/style-sheets/common-style-sheet.js.map +0 -1
- package/lib/module/_internal/style-sheets/flex-style-sheet.js.map +0 -1
- package/lib/module/_internal/style-sheets/index.js +0 -6
- package/lib/module/_internal/style-sheets/index.js.map +0 -1
- package/lib/module/_internal/style-sheets/text-style-sheet.js.map +0 -1
- package/lib/typescript/commonjs/_internal/style-sheets/common-style-sheet.d.ts +0 -21
- package/lib/typescript/commonjs/_internal/style-sheets/common-style-sheet.d.ts.map +0 -1
- package/lib/typescript/commonjs/_internal/style-sheets/flex-style-sheet.d.ts +0 -81
- package/lib/typescript/commonjs/_internal/style-sheets/flex-style-sheet.d.ts.map +0 -1
- package/lib/typescript/commonjs/_internal/style-sheets/index.d.ts +0 -4
- package/lib/typescript/commonjs/_internal/style-sheets/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/_internal/style-sheets/text-style-sheet.d.ts +0 -59
- package/lib/typescript/commonjs/_internal/style-sheets/text-style-sheet.d.ts.map +0 -1
- package/lib/typescript/module/_internal/style-sheets/common-style-sheet.d.ts +0 -21
- package/lib/typescript/module/_internal/style-sheets/common-style-sheet.d.ts.map +0 -1
- package/lib/typescript/module/_internal/style-sheets/flex-style-sheet.d.ts +0 -81
- package/lib/typescript/module/_internal/style-sheets/flex-style-sheet.d.ts.map +0 -1
- package/lib/typescript/module/_internal/style-sheets/index.d.ts +0 -4
- package/lib/typescript/module/_internal/style-sheets/index.d.ts.map +0 -1
- package/lib/typescript/module/_internal/style-sheets/text-style-sheet.d.ts +0 -59
- package/lib/typescript/module/_internal/style-sheets/text-style-sheet.d.ts.map +0 -1
- package/src/_internal/style-sheets/common-style-sheet.ts +0 -24
- package/src/_internal/style-sheets/index.ts +0 -3
- /package/src/components/button-group/{index.tsx → index.ts} +0 -0
- /package/src/components/form-label/{index.tsx → index.ts} +0 -0
- /package/src/components/{index.tsx → index.ts} +0 -0
- /package/src/components/inline-loading/{index.tsx → index.ts} +0 -0
- /package/src/components/layer/{index.tsx → index.ts} +0 -0
- /package/src/components/modal/{index.tsx → index.ts} +0 -0
- /package/src/components/modal-content/{index.tsx → index.ts} +0 -0
- /package/src/components/radio-button/{index.tsx → index.ts} +0 -0
- /package/src/components/radio-button-group/{index.tsx → index.ts} +0 -0
- /package/src/components/radio-button-input/{index.tsx → index.ts} +0 -0
- /package/src/components/text-area/{index.tsx → index.ts} +0 -0
- /package/src/components/text-area-field/{index.tsx → index.ts} +0 -0
- /package/src/components/text-area-fluid/{index.tsx → index.ts} +0 -0
- /package/src/components/text-input-field/{index.tsx → index.ts} +0 -0
- /package/src/components/text-input-fluid/{index.tsx → index.ts} +0 -0
- /package/src/components/toggle/base/{index.tsx → index.ts} +0 -0
- /package/src/components/toggle/default/{index.tsx → index.ts} +0 -0
- /package/src/components/toggle/{index.tsx → index.ts} +0 -0
- /package/src/components/toggle/small/{index.tsx → index.ts} +0 -0
|
@@ -7,9 +7,9 @@ exports.Header = Header;
|
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
9
|
var _carbonReactNativeElements = require("@audira/carbon-react-native-elements");
|
|
10
|
-
var _index = require("../../
|
|
11
|
-
var _index2 = require("../../
|
|
12
|
-
var _index3 = require("../../
|
|
10
|
+
var _index = require("../../carbon-style-sheet/index.js");
|
|
11
|
+
var _index2 = require("../../contexts/index.js");
|
|
12
|
+
var _index3 = require("../../style-sheets/index.js");
|
|
13
13
|
var _index4 = require("../button/base-color/index.js");
|
|
14
14
|
var _HeaderBorder = require("./_HeaderBorder.js");
|
|
15
15
|
var _index5 = require("./_chevron/index.js");
|
|
@@ -22,7 +22,7 @@ function Header({
|
|
|
22
22
|
style: styleProp,
|
|
23
23
|
...buttonProps
|
|
24
24
|
}) {
|
|
25
|
-
const themeContext = (0, _react.useContext)(
|
|
25
|
+
const themeContext = (0, _react.useContext)(_index2.ThemeContext);
|
|
26
26
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
27
27
|
style: styleProp,
|
|
28
28
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_HeaderBorder.HeaderBorder, {
|
|
@@ -50,44 +50,44 @@ function Header({
|
|
|
50
50
|
icon: mapIconColor[themeContext.colorScheme]
|
|
51
51
|
},
|
|
52
52
|
iconNode: (...params) => iconNodeRenderer(!!open, ...params),
|
|
53
|
-
style:
|
|
53
|
+
style: _index3.FlexStyleSheet.self_stretch
|
|
54
54
|
})]
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
|
-
const backgroundStyleSheet =
|
|
57
|
+
const backgroundStyleSheet = _index.CarbonStyleSheet.create({
|
|
58
58
|
default: {
|
|
59
59
|
backgroundColor: "transparent"
|
|
60
60
|
},
|
|
61
61
|
focused: {
|
|
62
62
|
backgroundColor: "transparent",
|
|
63
63
|
borderWidth: 1,
|
|
64
|
-
borderColor:
|
|
64
|
+
borderColor: _index.CarbonStyleSheet.color.focus
|
|
65
65
|
},
|
|
66
66
|
hovered: {
|
|
67
|
-
backgroundColor:
|
|
67
|
+
backgroundColor: _index.CarbonStyleSheet.color.layer_hover_01
|
|
68
68
|
},
|
|
69
69
|
pressed: {
|
|
70
|
-
backgroundColor:
|
|
70
|
+
backgroundColor: _index.CarbonStyleSheet.color.layer_hover_01
|
|
71
71
|
},
|
|
72
72
|
disabled: {
|
|
73
73
|
backgroundColor: "transparent"
|
|
74
74
|
}
|
|
75
75
|
}),
|
|
76
|
-
textStyleSheet =
|
|
76
|
+
textStyleSheet = _index.CarbonStyleSheet.create({
|
|
77
77
|
default: {
|
|
78
|
-
color:
|
|
78
|
+
color: _index.CarbonStyleSheet.color.text_primary
|
|
79
79
|
},
|
|
80
80
|
focused: {
|
|
81
|
-
color:
|
|
81
|
+
color: _index.CarbonStyleSheet.color.text_primary
|
|
82
82
|
},
|
|
83
83
|
hovered: {
|
|
84
|
-
color:
|
|
84
|
+
color: _index.CarbonStyleSheet.color.text_primary
|
|
85
85
|
},
|
|
86
86
|
pressed: {
|
|
87
|
-
color:
|
|
87
|
+
color: _index.CarbonStyleSheet.color.text_primary
|
|
88
88
|
},
|
|
89
89
|
disabled: {
|
|
90
|
-
color:
|
|
90
|
+
color: _index.CarbonStyleSheet.color.text_disabled
|
|
91
91
|
}
|
|
92
92
|
}),
|
|
93
93
|
mapIconColor = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_carbonReactNativeElements","_index","_index2","_index3","_index4","_HeaderBorder","_index5","_jsxRuntime","Header","size","open","flushAlignment","text","style","styleProp","buttonProps","themeContext","useContext","ThemeContext","jsxs","View","children","jsx","HeaderBorder","BaseColor","mapSizeToButtonSize","android_rippleEffectColor","mapAndroidRippleEffectColor","colorScheme","colorStateStyle","background","default","backgroundStyleSheet","focused","hovered","pressed","disabled","textStyleSheet","icon","mapIconColor","iconNode","params","iconNodeRenderer","FlexStyleSheet","self_stretch","CarbonStyleSheet","create","backgroundColor","borderWidth","borderColor","color","focus","layer_hover_01","text_primary","text_disabled","gray_10","Color","Token","icon_primary","icon_disabled","gray_100","small","medium","large","iconColorState","iconSize","iconStyle","Chevron"],"sourceRoot":"../../../../src","sources":["components/accordion/_Header.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAIA,IAAAC,YAAA,GAAAD,OAAA;AAMA,IAAAE,0BAAA,GAAAF,OAAA;AAI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EG,cAAc,CAACH,OAAO;UAC/BC,OAAO,EAAEE,cAAc,CAACF,OAAO;UAC/BC,QAAQ,EAAEC,cAAc,CAACD;QAC1B,CAAC;QACDE,IAAI,EAAEC,YAAY,CAACvB,YAAY,CAACY,WAAW;MAC5C,CAAE;MACFY,QAAQ,EACPA,CAAC,GAAGC,MAAM,KACTC,gBAAgB,CAAC,CAAC,CAAChC,IAAI,EAAE,GAAG+B,MAAM,CACnC;MACD5B,KAAK,EAAG8B,
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_carbonReactNativeElements","_index","_index2","_index3","_index4","_HeaderBorder","_index5","_jsxRuntime","Header","size","open","flushAlignment","text","style","styleProp","buttonProps","themeContext","useContext","ThemeContext","jsxs","View","children","jsx","HeaderBorder","BaseColor","mapSizeToButtonSize","android_rippleEffectColor","mapAndroidRippleEffectColor","colorScheme","colorStateStyle","background","default","backgroundStyleSheet","focused","hovered","pressed","disabled","textStyleSheet","icon","mapIconColor","iconNode","params","iconNodeRenderer","FlexStyleSheet","self_stretch","CarbonStyleSheet","create","backgroundColor","borderWidth","borderColor","color","focus","layer_hover_01","text_primary","text_disabled","gray_10","Color","Token","icon_primary","icon_disabled","gray_100","small","medium","large","iconColorState","iconSize","iconStyle","Chevron"],"sourceRoot":"../../../../src","sources":["components/accordion/_Header.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAIA,IAAAC,YAAA,GAAAD,OAAA;AAMA,IAAAE,0BAAA,GAAAF,OAAA;AAIA,IAAAG,MAAA,GAAAH,OAAA;AAIA,IAAAI,OAAA,GAAAJ,OAAA;AAIA,IAAAK,OAAA,GAAAL,OAAA;AAQA,IAAAM,OAAA,GAAAN,OAAA;AAcA,IAAAO,aAAA,GAAAP,OAAA;AAIA,IAAAQ,OAAA,GAAAR,OAAA;AAEmB,IAAAS,WAAA,GAAAT,OAAA;AAEZ,SAASU,MAAMA,CAAC;EACtBC,IAAI,GAAG,QAAQ;EACfC,IAAI;EAC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KAAK,CAACF,OAAO,CAACG,YAAY;MACzCtB,QAAQ,EAAEoB,gCAAK,CAACC,KAAK,CAACF,OAAO,CAACI;IAC/B,CAAC;IACDC,QAAQ,EAAE;MACT7B,OAAO,EAAEyB,gCAAK,CAACC,KAAK,CAACG,QAAQ,CAACF,YAAY;MAC1CzB,OAAO,EAAEuB,gCAAK,CAACC,KAAK,CAACG,QAAQ,CAACF,YAAY;MAC1CxB,OAAO,EAAEsB,gCAAK,CAACC,KAAK,CAACG,QAAQ,CAACF,YAAY;MAC1CvB,OAAO,EAAEqB,gCAAK,CAACC,KAAK,CAACG,QAAQ,CAACF,YAAY;MAC1CtB,QAAQ,EAAEoB,gCAAK,CAACC,KAAK,CAACG,QAAQ,CAACD;IAChC;EACD,CAAC;EAEFhC,2BAAwE,GACvE;IACC4B,OAAO,EAAEC,gCAAK,CAACC,KAAK,CAACF,OAAO,CAACH,cAAc;IAC3CQ,QAAQ,EAAEJ,gCAAK,CAACC,KAAK,CAACG,QAAQ,CAACR;EAChC,CAAC;EAEF;AACD;AACA;AACA;EACC3B,mBAAsD,GACrD;IACCoC,KAAK,EAAE,OAAO;IACdC,MAAM,EAAE,QAAQ;IAChBC,KAAK,EAAE;EACR,CAAC;EAEFrB,gBAGoB,GACnBA,CAAChC,IAAI,EAAEsD,cAAc,EAAEC,QAAQ,EAAEC,SAAS,KAAK;IAC9C,oBACC,IAAA3D,WAAA,CAAAe,GAAA,EAAChB,OAAA,CAAA6D,OAAO;MACPzD,IAAI,EAAGA,IAAM;MACbwC,KAAK,EAAGc,cAAgB;MACxBvD,IAAI,EAAGwD,QAAU;MACjBpD,KAAK,EAAGqD;IAAW,CACnB,CAAC;EAEJ,CAAC","ignoreList":[]}
|
|
@@ -7,20 +7,20 @@ exports.HeaderBorder = HeaderBorder;
|
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
9
|
var _carbonReactNativeElements = require("@audira/carbon-react-native-elements");
|
|
10
|
-
var _index = require("../../
|
|
11
|
-
var _index2 = require("../../
|
|
12
|
-
var _index3 = require("../../
|
|
10
|
+
var _index = require("../../carbon-style-sheet/index.js");
|
|
11
|
+
var _index2 = require("../../contexts/index.js");
|
|
12
|
+
var _index3 = require("../../style-sheets/index.js");
|
|
13
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
14
|
function HeaderBorder({
|
|
15
15
|
flushAlignment,
|
|
16
16
|
style: styleProp
|
|
17
17
|
}) {
|
|
18
|
-
(0, _react.useContext)(
|
|
18
|
+
(0, _react.useContext)(_index2.ThemeContext);
|
|
19
19
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
20
|
-
style: [
|
|
20
|
+
style: [_index3.PositionStyleSheet.absolute, style.borderBox, carbonStyle.borderBox, flushAlignment ? {
|
|
21
21
|
left: _carbonReactNativeElements.Spacing.spacing_05,
|
|
22
22
|
right: _carbonReactNativeElements.Spacing.spacing_05
|
|
23
|
-
} :
|
|
23
|
+
} : _index3.WidthStyleSheet.w_full, styleProp]
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
26
|
const style = _reactNative.StyleSheet.create({
|
|
@@ -29,9 +29,9 @@ const style = _reactNative.StyleSheet.create({
|
|
|
29
29
|
borderTopWidth: 1
|
|
30
30
|
}
|
|
31
31
|
}),
|
|
32
|
-
carbonStyle =
|
|
32
|
+
carbonStyle = _index.CarbonStyleSheet.create({
|
|
33
33
|
borderBox: {
|
|
34
|
-
borderColor:
|
|
34
|
+
borderColor: _index.CarbonStyleSheet.color.border_subtle_00
|
|
35
35
|
}
|
|
36
36
|
});
|
|
37
37
|
//# sourceMappingURL=_HeaderBorder.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_carbonReactNativeElements","_index","_index2","_index3","_jsxRuntime","HeaderBorder","flushAlignment","style","styleProp","useContext","ThemeContext","jsx","View","
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_carbonReactNativeElements","_index","_index2","_index3","_jsxRuntime","HeaderBorder","flushAlignment","style","styleProp","useContext","ThemeContext","jsx","View","PositionStyleSheet","absolute","borderBox","carbonStyle","left","Spacing","spacing_05","right","WidthStyleSheet","w_full","StyleSheet","create","height","borderTopWidth","CarbonStyleSheet","borderColor","color","border_subtle_00"],"sourceRoot":"../../../../src","sources":["components/accordion/_HeaderBorder.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAIA,IAAAC,YAAA,GAAAD,OAAA;AAMA,IAAAE,0BAAA,GAAAF,OAAA;AAIA,IAAAG,MAAA,GAAAH,OAAA;AAIA,IAAAI,OAAA,GAAAJ,OAAA;AAIA,IAAAK,OAAA,GAAAL,OAAA;AAG2B,IAAAM,WAAA,GAAAN,OAAA;AAUpB,SAASO,YAAYA,CAAC;EAC5BC,cAAc;EACdC,KAAK,EAAEC;AACW,CAAC,EAAE;EAErB,IAAAC,iBAAU,EAACC,oBAAY,CAAC;EAExB,oBACC,IAAAN,WAAA,CAAAO,GAAA,EAACZ,YAAA,CAAAa,IAAI;IACJL,KAAK,EAAG,CACPM,0BAAkB,CAACC,QAAQ,EAC3BP,KAAK,CAACQ,SAAS,EACfC,WAAW,CAACD,SAAS,EACrBT,cAAc,GACX;MACDW,IAAI,EAAEC,kCAAO,CAACC,UAAU;MACxBC,KAAK,EAAEF,kCAAO,CAACC;IAChB,CAAC,GACCE,uBAAe,CAACC,MAAM,EACzBd,SAAS;EACP,CACH,CAAC;AAGJ;AAEA,MACCD,KAAK,GACJgB,uBAAU,CAACC,MAAM,CAAC;IACjBT,SAAS,EAAE;MACVU,MAAM,EAAE,CAAC;MACTC,cAAc,EAAE;IACjB;EACD,CAAC,CAAC;EAEHV,WAAW,GACVW,uBAAgB,CAACH,MAAM,CAAC;IACvBT,SAAS,EAAE;MACVa,WAAW,EAAED,uBAAgB,CAACE,KAAK,CAACC;IACrC;EACD,CAAC,CAAC","ignoreList":[]}
|
|
@@ -8,7 +8,7 @@ var _react = require("react");
|
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
9
|
var _carbonReactNativeElements = require("@audira/carbon-react-native-elements");
|
|
10
10
|
var _index = require("../../_internal/contexts/index.js");
|
|
11
|
-
var _index2 = require("../../
|
|
11
|
+
var _index2 = require("../../style-sheets/index.js");
|
|
12
12
|
var _index3 = require("../collapsible/index.js");
|
|
13
13
|
var _Header = require("./_Header.js");
|
|
14
14
|
var _context = require("./_context.js");
|
|
@@ -72,7 +72,7 @@ const Item = exports.Item = /*#__PURE__*/(0, _react.forwardRef)(function Item({
|
|
|
72
72
|
motion: _motion.Motion,
|
|
73
73
|
open: open,
|
|
74
74
|
dir: globalConfigContext.rtl ? "rtl" : undefined,
|
|
75
|
-
contentContainerStyle: [globalConfigContext.rtl ? _index2.
|
|
75
|
+
contentContainerStyle: [globalConfigContext.rtl ? _index2.DirectionStyleSheet.rtl : undefined, accordionContext.collapsibleContentContainerStyle, style.panel],
|
|
76
76
|
children: children
|
|
77
77
|
})]
|
|
78
78
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_carbonReactNativeElements","_index","_index2","_index3","_Header","_context","_motion","_jsxRuntime","Item","exports","forwardRef","defaultOpen","open","openProp","title","children","style","styleProp","onPressHeader","headerProps","props","forwardedRef","globalConfigContext","useContext","GlobalConfigContext","accordionContext","Context","ref","useRef","allowOnChangeEffect","viewRef","openSelf","setOpenSelf","useState","current","controlled","pressHandler","useCallback","event","state","useImperativeHandle","Object","assign","setOpen","value","jsxs","View","jsx","Header","size","text","flushAlignment","onPress","Collapsible","motion","Motion","dir","rtl","undefined","contentContainerStyle","
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_carbonReactNativeElements","_index","_index2","_index3","_Header","_context","_motion","_jsxRuntime","Item","exports","forwardRef","defaultOpen","open","openProp","title","children","style","styleProp","onPressHeader","headerProps","props","forwardedRef","globalConfigContext","useContext","GlobalConfigContext","accordionContext","Context","ref","useRef","allowOnChangeEffect","viewRef","openSelf","setOpenSelf","useState","current","controlled","pressHandler","useCallback","event","state","useImperativeHandle","Object","assign","setOpen","value","jsxs","View","jsx","Header","size","text","flushAlignment","onPress","Collapsible","motion","Motion","dir","rtl","undefined","contentContainerStyle","DirectionStyleSheet","collapsibleContentContainerStyle","panel","StyleSheet","create","paddingTop","Spacing","spacing_03","paddingBottom","spacing_06","paddingLeft","spacing_05"],"sourceRoot":"../../../../src","sources":["components/accordion/_Item.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AASA,IAAAC,YAAA,GAAAD,OAAA;AAKA,IAAAE,0BAAA,GAAAF,OAAA;AAIA,IAAAG,MAAA,GAAAH,OAAA;AAIA,IAAAI,OAAA,GAAAJ,OAAA;AAIA,IAAAK,OAAA,GAAAL,OAAA;AAgBA,IAAAM,OAAA,GAAAN,OAAA;AAQA,IAAAO,QAAA,GAAAP,OAAA;AAIA,IAAAQ,OAAA,GAAAR,OAAA;AAEkB,IAAAS,WAAA,GAAAT,OAAA;AAEX,MAAMU,IAAI,GAAAC,OAAA,CAAAD,IAAA,gBAAG,IAAAE,iBAAU,EAC7B,SAASF,IAAIA,CACZ;EACCG,WAAW;EACXC,IAAI,EAAEC,QAAQ;EACdC,KAAK;EACLC,QAAQ;EACRC,KAAK,EAAEC,SAAS;EAChBC,aAAa;EACbC,WAAW;EACX,GAAGC;AACJ,CAAC,EACDC,YAAY,EACX;EAED,MACCC,mBAAmB,GAClB,IAAAC,iBAAU,EAACC,0BAAmB,CAAC;IAEhCC,gBAAgB,GACf,IAAAF,iBAAU,EAACG,gBAAO,CAAC;IAEpBC,GAAG,GACF,IAAAC,aAAM,EAAC;MACNC,mBAAmB,EAAE,KAAK;MAC1BjB,IAAI,EAAE,CAAC,CAACD;IACT,CAAC,CAAC;IAEHmB,OAAO,GACN,IAAAF,aAAM,EAAO,IAAI,CAAC;IAEnB,CAACG,QAAQ,EAAEC,WAAW,CAAC,GACtB,IAAAC,eAA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A,EAAC3C,OAAA,CAAA4C,MAAM;MAAA,GACD7B,WAAW;MAChBP,IAAI,EAAGA,IAAM;MACbqC,IAAI,EAAGxB,gBAAgB,CAACwB,IAAM;MAC9BC,IAAI,EAAGpC,KAAO;MACdqC,cAAc,EAAG1B,gBAAgB,CAAC0B,cAAgB;MAClDC,OAAO,EAAGhB;IAAc,CACxB,CAAC,eAEF,IAAA7B,WAAA,CAAAwC,GAAA,EAAC5C,OAAA,CAAAkD,WAAW;MACXC,MAAM,EAAGC,cAAQ;MACjB3C,IAAI,EAAGA,IAAM;MACb4C,GAAG,EAAGlC,mBAAmB,CAACmC,GAAG,GAAG,KAAK,GAAGC,SAAW;MACnDC,qBAAqB,EAAG,CACvBrC,mBAAmB,CAACmC,GAAG,GAAGG,2BAAmB,CAACH,GAAG,GAAGC,SAAS,EAC7DjC,gBAAgB,CAACoC,gCAAgC,EACjD7C,KAAK,CAAC8C,KAAK,CACT;MAAA/C,QAAA,EAEDA;IAAQ,CACE,CAAC;EAAA,CACT,CAAC;AAGT,CACD,CAAC;AAED,MACCC,KAAK,GACJ+C,uBAAU,CAACC,MAAM,CAAC;EACjBF,KAAK,EAAE;IACNG,UAAU,EAAEC,kCAAO,CAACC,UAAU;IAC9BC,aAAa,EAAEF,kCAAO,CAACG,UAAU;IACjCC,WAAW,EAAEJ,kCAAO,CAACK;EACtB;AACD,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Box = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _index = require("../../_internal/contexts/index.js");
|
|
10
|
+
var _index2 = require("../../style-sheets/index.js");
|
|
11
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
+
const Box = exports.Box = /*#__PURE__*/(0, _react.forwardRef)(function Box({
|
|
13
|
+
dir: dirProp,
|
|
14
|
+
style,
|
|
15
|
+
...props
|
|
16
|
+
}, ref) {
|
|
17
|
+
const globalConfigContext = (0, _react.useContext)(_index.GlobalConfigContext),
|
|
18
|
+
dir = dirProp ?? globalConfigContext.rtl ? "rtl" : "ltr";
|
|
19
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
20
|
+
ref: ref,
|
|
21
|
+
...props,
|
|
22
|
+
dir: dir,
|
|
23
|
+
style: [dir == "rtl" ? _index2.DirectionStyleSheet.rtl : undefined, style]
|
|
24
|
+
});
|
|
25
|
+
});
|
|
26
|
+
//# sourceMappingURL=Box.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_index","_index2","_jsxRuntime","Box","exports","forwardRef","dir","dirProp","style","props","ref","globalConfigContext","useContext","GlobalConfigContext","rtl","jsx","View","DirectionStyleSheet","undefined"],"sourceRoot":"../../../../src","sources":["components/box/Box.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAKA,IAAAC,YAAA,GAAAD,OAAA;AAIA,IAAAE,MAAA,GAAAF,OAAA;AAIA,IAAAG,OAAA,GAAAH,OAAA;AAE2B,IAAAI,WAAA,GAAAJ,OAAA;AAUpB,MAAMK,GAAG,GAAAC,OAAA,CAAAD,GAAA,gBAAG,IAAAE,iBAAU,EAC5B,SAASF,GAAGA,CACX;EACCG,GAAG,EAAEC,OAAO;EACZC,KAAK;EACL,GAAGC;AACJ,CAAC,EACDC,GAAG,EACF;EAED,MACCC,mBAAmB,GAClB,IAAAC,iBAAU,EAACC,0BAAmB,CAAC;IAEhCP,GAAG,GACFC,OAAO,IACPI,mBAAmB,CAACG,GAAG,GAAG,KAAK,GAAG,KAAK;EAEzC,oBACC,IAAAZ,WAAA,CAAAa,GAAA,EAAChB,YAAA,CAAAiB,IAAI;IACJN,GAAG,EAAGA,GAAK;IAAA,GACND,KAAK;IACVH,GAAG,EAAGA,GAAK;IACXE,KAAK,EAAG,CACPF,GAAG,IAAI,KAAK,GAAGW,2BAAmB,CAACH,GAAG,GAAGI,SAAS,EAClDV,KAAK;EACH,CACH,CAAC;AAGJ,CACD,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/box/BoxProps.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/box/BoxRef.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _Box = require("./Box.js");
|
|
7
|
+
Object.keys(_Box).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _Box[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _Box[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_Box","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sourceRoot":"../../../../src","sources":["components/box/index.ts"],"mappings":";;;;;AAAA,IAAAA,IAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,IAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,IAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,IAAA,CAAAK,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -8,7 +8,7 @@ var _react = require("react");
|
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
9
|
var _carbonReactNativeElements = require("@audira/carbon-react-native-elements");
|
|
10
10
|
var _index = require("../../../_internal/contexts/index.js");
|
|
11
|
-
var _index2 = require("../../../
|
|
11
|
+
var _index2 = require("../../../style-sheets/index.js");
|
|
12
12
|
var _index3 = require("../../text/index.js");
|
|
13
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
14
|
const Base = exports.Base = /*#__PURE__*/(0, _react.forwardRef)(function Base({
|
|
@@ -37,7 +37,7 @@ const Base = exports.Base = /*#__PURE__*/(0, _react.forwardRef)(function Base({
|
|
|
37
37
|
role: role,
|
|
38
38
|
"aria-label": ariaLabel ?? text,
|
|
39
39
|
dir: dir ?? globalConfigContext.rtl ? "rtl" : undefined,
|
|
40
|
-
style: [_index2.FlexStyleSheet.flex_row, _index2.FlexStyleSheet.justify_between,
|
|
40
|
+
style: [_index2.FlexStyleSheet.flex_row, _index2.FlexStyleSheet.justify_between, _index2.OverflowStyleSheet.overflow_hidden, globalConfigContext.rtl ? _index2.DirectionStyleSheet.rtl : undefined, mapContainerStyle[`${!!text}`][`${!!Icon || !!iconNode}`], sizeStyle[size], mapStyleInButtonGroup[`${!!buttonGroupContext.vertical}`][`${!!buttonGroupContext.fluid}`], style],
|
|
41
41
|
ref: ref,
|
|
42
42
|
children: [backgroundNode, !InlineLoading || inlineLoadingProps?.state === "inactive" ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
43
43
|
children: [!!text && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
@@ -62,12 +62,6 @@ const Base = exports.Base = /*#__PURE__*/(0, _react.forwardRef)(function Base({
|
|
|
62
62
|
});
|
|
63
63
|
});
|
|
64
64
|
const baseStyle = _reactNative.StyleSheet.create({
|
|
65
|
-
container: {
|
|
66
|
-
overflow: "hidden"
|
|
67
|
-
},
|
|
68
|
-
containerRtl: {
|
|
69
|
-
direction: "rtl"
|
|
70
|
-
},
|
|
71
65
|
/**
|
|
72
66
|
* Start Padding
|
|
73
67
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_carbonReactNativeElements","_index","_index2","_index3","_jsxRuntime","Base","exports","forwardRef","size","sizeProp","text","textProps","Icon","iconProps","iconNode","backgroundNode","InlineLoading","inlineLoadingProps","style","role","ariaLabel","dir","props","ref","globalConfigContext","useContext","GlobalConfigContext","buttonGroupContext","ButtonGroupContext","iconSize","getIconSize","iconMarginStyle","mapIconMarginStyle","rtl","jsxs","Pressable","undefined","FlexStyleSheet","flex_row","justify_between","
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_carbonReactNativeElements","_index","_index2","_index3","_jsxRuntime","Base","exports","forwardRef","size","sizeProp","text","textProps","Icon","iconProps","iconNode","backgroundNode","InlineLoading","inlineLoadingProps","style","role","ariaLabel","dir","props","ref","globalConfigContext","useContext","GlobalConfigContext","buttonGroupContext","ButtonGroupContext","iconSize","getIconSize","iconMarginStyle","mapIconMarginStyle","rtl","jsxs","Pressable","undefined","FlexStyleSheet","flex_row","justify_between","OverflowStyleSheet","overflow_hidden","DirectionStyleSheet","mapContainerStyle","sizeStyle","mapStyleInButtonGroup","vertical","fluid","children","state","Fragment","jsx","View","baseStyle","textContainer","Text","type","getTextType","width","height","getIconMarginTopStyle","inlineLoading","StyleSheet","create","containerPaddingStart","paddingStart","Spacing","spacing_05","containerPaddingEnd05","paddingEnd","containerPaddingEnd10","spacing_10","justifyContent","maxHeight","iconMarginLTR","marginLeft","spacing_07","iconMarginRTL","marginRight","small","medium","large_productive","large_expressive","extra_large","false","true","mapTextTypeByExpressive","mapIconSizeByExpressive","self_start","flex_1","self_stretch","isExpressiveStr","Size","Math","min","marginTop"],"sourceRoot":"../../../../../src","sources":["components/button/base/Base.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAKA,IAAAC,YAAA,GAAAD,OAAA;AAOA,IAAAE,0BAAA,GAAAF,OAAA;AAIA,IAAAG,MAAA,GAAAH,OAAA;AAKA,IAAAI,OAAA,GAAAJ,OAAA;AAMA,IAAAK,OAAA,GAAAL,OAAA;AAGmB,IAAAM,WAAA,GAAAN,OAAA;AAcZ,MAAMO,IAAI,GAAAC,OAAA,CAAAD,IAAA,gBAAG,IAAAE,iBAAU,EAC7B,SAASF,IAAIA,CACZ;EACCG,IAAI,EAAEC,QAAQ;EACdC,IAAI;EACJC,SAAS;EACTC,IAAI;EACJC,SAAS;EACTC,QAAQ;EACRC,cAAc;EACdC,aAAa;EACbC,kBAAkB;EAClBC,KAAK;EACLC,IAAI,GAAG,QAAQ;EACf,YAAY,EAAEC,SAAS;EACvBC,GAAG;EACH,GAAGC;AACJ,CAAC,EACDC,GAAG,EACF;EAED,MACCC,mBAAmB,GAClB,IAAAC,iBAAU,EAACC,0BAAmB,CAAC;IAEhCC,kBAAkB,GACjB,IAAAF,iBAAU,EAACG,yBAAkB,CAAC;IAE/BpB,IAAI,GACHC,QAAQ,IAAIkB,kBAAkB,CAACnB,IAAI,IAAI,kBAAkB;IAE1DqB,QAAQ,GACPC,WAAW,CAACtB,IAAI,CAAC;IAElBuB,eAAe,GACdC,kBAAkB,CAAC,GAAG,CAAC,CAACR,mBAAmB,CAACS,GAAG,EAAE,CAAC,CAAC,GAAG,CAAC,CAACvB,IAAI,EAAE,CAAC;EAEjE,oBACC,IAAAN,WAAA,CAAA8B,IAAA,EAACnC,YAAA,CAAAoC,SAAS;IAAA,GACJb,KAAK;IACVH,IAAI,EAAGA,IAAM;IACb,cAAaC,SAAS,IAAIV,IAAM;IAChCW,GAAG,EAAGA,GAAG,IAAIG,mBAAmB,CAACS,GAAG,GAAG,KAAK,GAAGG,SAAW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qD,YAAY;MAClCL,IAAI,EAAEhD,sBAAc,CAACqD;IACtB;EACD,CAAC;;AAEH;AACA;AACA;AACA;AACA,SAASC,eAAeA,CACvBC,IAAuB,EACJ;EACnB,OAAO,GAAGA,IAAI,KAAK,kBAAkB,EAAE;AACxC;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAASnC,WAAWA,CAACjD,IAAuB,EAAE;EAC7C,OAAO8E,uBAAuB,CAACK,eAAe,CAACnF,IAAI,CAAC,CAAC;AACtD;;AAEA;AACA;AACA;AACA;AACA,SAASsB,WAAWA,CAACtB,IAAuB,EAAE;EAC7C,OAAO+E,uBAAuB,CAACI,eAAe,CAACnF,IAAI,CAAC,CAAC;AACtD;AAEA,SAASoD,qBAAqBA,CAACpD,IAAoC,EAAE;EACpE,MACCqB,QAAQ,GACP0D,uBAAuB,CAACI,eAAe,CAACnF,IAAI,CAAC,CAAC;IAE/CmD,MAAM,GACLkC,IAAI,CAACC,GAAG,CAAClD,SAAS,CAACpC,IAAI,CAAC,CAACmD,MAAM,EAAEf,SAAS,CAACqC,gBAAgB,CAACtB,MAAM,CAAC,EAAC;;EAEtE,OAAO;IACNoC,SAAS,EAAGpC,MAAM,GAAG,CAAC,GAAK9B,QAAQ,GAAG;EACvC,CAAC;AACF","ignoreList":[]}
|
|
@@ -8,7 +8,7 @@ var _react = require("react");
|
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
9
|
var _carbonReactNativeElements = require("@audira/carbon-react-native-elements");
|
|
10
10
|
var _index = require("../../_internal/contexts/index.js");
|
|
11
|
-
var _index2 = require("../../
|
|
11
|
+
var _index2 = require("../../style-sheets/index.js");
|
|
12
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
13
|
const ButtonGroup = exports.ButtonGroup = /*#__PURE__*/(0, _react.forwardRef)(function ButtonGroup({
|
|
14
14
|
button1,
|
|
@@ -25,7 +25,7 @@ const ButtonGroup = exports.ButtonGroup = /*#__PURE__*/(0, _react.forwardRef)(fu
|
|
|
25
25
|
const globalConfigContext = (0, _react.useContext)(_index.GlobalConfigContext),
|
|
26
26
|
styleFlexDir = mapStyleFlexDir[`${!!vertical}`],
|
|
27
27
|
styleFluid = mapStyleFluid[`${!!fluid}`],
|
|
28
|
-
rtlStyle = globalConfigContext.rtl && !vertical ? _index2.
|
|
28
|
+
rtlStyle = globalConfigContext.rtl && !vertical ? _index2.DirectionStyleSheet.rtl : undefined;
|
|
29
29
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.ButtonGroupContext.Provider, {
|
|
30
30
|
value: {
|
|
31
31
|
size,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_carbonReactNativeElements","_index","_index2","_jsxRuntime","ButtonGroup","exports","forwardRef","button1","button2","button3","oneAlone","size","fluid","vertical","style","dir","props","ref","globalConfigContext","useContext","GlobalConfigContext","styleFlexDir","mapStyleFlexDir","styleFluid","mapStyleFluid","rtlStyle","rtl","
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_carbonReactNativeElements","_index","_index2","_jsxRuntime","ButtonGroup","exports","forwardRef","button1","button2","button3","oneAlone","size","fluid","vertical","style","dir","props","ref","globalConfigContext","useContext","GlobalConfigContext","styleFlexDir","mapStyleFlexDir","styleFluid","mapStyleFluid","rtlStyle","rtl","DirectionStyleSheet","undefined","jsx","ButtonGroupContext","Provider","value","children","View","FlexStyleSheet","justify_between","jsxs","Fragment","styleSheet","firstButtonContainer","lastTwoButttonContainer","justify_end","StyleSheet","create","fixedGroup","gap","Spacing","spacing_05","fluidGroup","width","false","flex_row","true","flex_col_reverse"],"sourceRoot":"../../../../src","sources":["components/button-group/ButtonGroup.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAKA,IAAAC,YAAA,GAAAD,OAAA;AAMA,IAAAE,0BAAA,GAAAF,OAAA;AAIA,IAAAG,MAAA,GAAAH,OAAA;AAKA,IAAAI,OAAA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AO,EACPC,OAAO,EACPC,OAAO;MAAA,CACR,CAAC,gBAAK,IAAAN,WAAA,CAAAkC,IAAA,EAAAlC,WAAA,CAAAmC,QAAA;QAAAL,QAAA,gBACP,IAAA9B,WAAA,CAAA0B,GAAA,EAAC9B,YAAA,CAAAmC,IAAI;UACJpB,KAAK,EAAG,CACPyB,UAAU,CAACC,oBAAoB,CAC7B;UAAAP,QAAA,EAED1B;QAAO,CACJ,CAAC,eACP,IAAAJ,WAAA,CAAAkC,IAAA,EAACtC,YAAA,CAAAmC,IAAI;UACJpB,KAAK,EAAG,CACPO,YAAY,EACZE,UAAU,EACVgB,UAAU,CAACE,uBAAuB,EAClCN,sBAAc,CAACO,WAAW,EAC1BjB,QAAQ,CACN;UAAAQ,QAAA,GAEDzB,OAAO,EACPC,OAAO;QAAA,CACJ,CAAC;MAAA,CACN;IAAE,CACC;EAAC,CACqB,CAAC;AAGhC,CACD,CAAC;AAED,MACC8B,UAAU,GACTI,uBAAU,CAACC,MAAM,CAAC;IACjBC,UAAU,EAAE;MACXC,GAAG,EAAEC,kCAAO,CAACC;IACd,CAAC;IACDC,UAAU,EAAE;MACXH,GAAG,EAAE;IACN,CAAC;IACDN,oBAAoB,EAAE;MACrBU,KAAK,EAAE;IACR,CAAC;IACDT,uBAAuB,EAAE;MACxBS,KAAK,EAAE;IACR;EACD,CAAC,CAAC;EAEH5B,eAEC,GACA;IACC6B,KAAK,EAAEhB,sBAAc,CAACiB,QAAQ;IAC9BC,IAAI,EAAElB,sBAAc,CAACmB;EACtB,CAAC;EAEF9B,aAAuD,GACtD;IACC2B,KAAK,EAAEZ,UAAU,CAACM,UAAU;IAC5BQ,IAAI,EAAEd,UAAU,CAACU;EAClB,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_ButtonGroup","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sourceRoot":"../../../../src","sources":["components/button-group/index.
|
|
1
|
+
{"version":3,"names":["_ButtonGroup","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sourceRoot":"../../../../src","sources":["components/button-group/index.ts"],"mappings":";;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,YAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,YAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,YAAA,CAAAK,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -7,10 +7,10 @@ exports.Checkbox = void 0;
|
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
9
|
var _carbonReactNativeElements = require("@audira/carbon-react-native-elements");
|
|
10
|
-
var _index = require("../../
|
|
11
|
-
var _index2 = require("../../
|
|
12
|
-
var _index3 = require("../../
|
|
13
|
-
var _index4 = require("
|
|
10
|
+
var _index = require("../../carbon-style-sheet/index.js");
|
|
11
|
+
var _index2 = require("../../contexts/index.js");
|
|
12
|
+
var _index3 = require("../../style-sheets/index.js");
|
|
13
|
+
var _index4 = require("../box/index.js");
|
|
14
14
|
var _index5 = require("../checkbox-input/index.js");
|
|
15
15
|
var _index6 = require("../form-label/index.js");
|
|
16
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -27,12 +27,10 @@ const Checkbox = exports.Checkbox = /*#__PURE__*/(0, _react.forwardRef)(function
|
|
|
27
27
|
formLabelProps,
|
|
28
28
|
pressableProps,
|
|
29
29
|
style,
|
|
30
|
-
dir,
|
|
31
30
|
...props
|
|
32
31
|
}, forwardedRef) {
|
|
33
|
-
(0, _react.useContext)(
|
|
34
|
-
const
|
|
35
|
-
checkboxInputRef = (0, _react.useRef)(null),
|
|
32
|
+
(0, _react.useContext)(_index2.ThemeContext);
|
|
33
|
+
const checkboxInputRef = (0, _react.useRef)(null),
|
|
36
34
|
viewRef = (0, _react.useRef)(null),
|
|
37
35
|
pressHandler = (0, _react.useCallback)(event => {
|
|
38
36
|
onPress?.(event);
|
|
@@ -50,11 +48,10 @@ const Checkbox = exports.Checkbox = /*#__PURE__*/(0, _react.forwardRef)(function
|
|
|
50
48
|
}
|
|
51
49
|
});
|
|
52
50
|
}, []);
|
|
53
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(
|
|
51
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_index4.Box, {
|
|
54
52
|
...props,
|
|
55
53
|
"aria-label": ariaLabel || label,
|
|
56
|
-
|
|
57
|
-
style: [_index2.FlexStyleSheet.flex_row, globalConfigContext.rtl ? _index2.CommonStyleSheet.rtl : undefined, style],
|
|
54
|
+
style: [_index3.FlexStyleSheet.flex_row, style],
|
|
58
55
|
ref: viewRef,
|
|
59
56
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
|
|
60
57
|
...pressableProps,
|
|
@@ -62,7 +59,7 @@ const Checkbox = exports.Checkbox = /*#__PURE__*/(0, _react.forwardRef)(function
|
|
|
62
59
|
disabled: interactiveState === "disabled",
|
|
63
60
|
"aria-label": pressableProps?.["aria-label"] ?? label,
|
|
64
61
|
onPress: pressHandler,
|
|
65
|
-
style: [
|
|
62
|
+
style: [_index3.PositionStyleSheet.absolute, _index3.WidthStyleSheet.w_full, _index3.HeightStyleSheet.h_full, baseStyle.pressable, pressableProps?.style]
|
|
66
63
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index5.CheckboxInput, {
|
|
67
64
|
...checkboxInputProps,
|
|
68
65
|
role: "none",
|
|
@@ -81,7 +78,7 @@ const Checkbox = exports.Checkbox = /*#__PURE__*/(0, _react.forwardRef)(function
|
|
|
81
78
|
type: formLabelProps?.textProps?.type || "body_compact_01",
|
|
82
79
|
style: [textColorStyle[interactiveState], formLabelProps?.textProps?.style]
|
|
83
80
|
},
|
|
84
|
-
style: [
|
|
81
|
+
style: [_index3.FlexStyleSheet.flex_1, baseStyle.label, formLabelProps?.style]
|
|
85
82
|
})]
|
|
86
83
|
});
|
|
87
84
|
});
|
|
@@ -96,21 +93,21 @@ const baseStyle = _reactNative.StyleSheet.create({
|
|
|
96
93
|
marginStart: _carbonReactNativeElements.Spacing.spacing_03
|
|
97
94
|
}
|
|
98
95
|
}),
|
|
99
|
-
textColorStyle =
|
|
96
|
+
textColorStyle = _index.CarbonStyleSheet.create({
|
|
100
97
|
normal: {
|
|
101
|
-
color:
|
|
98
|
+
color: _index.CarbonStyleSheet.color.text_primary
|
|
102
99
|
},
|
|
103
100
|
disabled: {
|
|
104
|
-
color:
|
|
101
|
+
color: _index.CarbonStyleSheet.color.text_disabled
|
|
105
102
|
},
|
|
106
103
|
error: {
|
|
107
|
-
color:
|
|
104
|
+
color: _index.CarbonStyleSheet.color.text_primary
|
|
108
105
|
},
|
|
109
106
|
read_only: {
|
|
110
|
-
color:
|
|
107
|
+
color: _index.CarbonStyleSheet.color.text_primary
|
|
111
108
|
},
|
|
112
109
|
warning: {
|
|
113
|
-
color:
|
|
110
|
+
color: _index.CarbonStyleSheet.color.text_primary
|
|
114
111
|
}
|
|
115
112
|
});
|
|
116
113
|
//# sourceMappingURL=Checkbox.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_carbonReactNativeElements","_index","_index2","_index3","_index4","_index5","_index6","_jsxRuntime","Checkbox","exports","forwardRef","defaultChecked","checked","interactiveState","label","role","ariaLabel","onChange","onPress","checkboxInputProps","formLabelProps","pressableProps","style","
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_carbonReactNativeElements","_index","_index2","_index3","_index4","_index5","_index6","_jsxRuntime","Checkbox","exports","forwardRef","defaultChecked","checked","interactiveState","label","role","ariaLabel","onChange","onPress","checkboxInputProps","formLabelProps","pressableProps","style","props","forwardedRef","useContext","ThemeContext","checkboxInputRef","useRef","viewRef","pressHandler","useCallback","event","current","setChecked","useImperativeHandle","Object","assign","value_","jsxs","Box","FlexStyleSheet","flex_row","ref","children","jsx","Pressable","disabled","PositionStyleSheet","absolute","WidthStyleSheet","w_full","HeightStyleSheet","h_full","baseStyle","pressable","CheckboxInput","checkboxInput","FormLabel","textProps","type","textColorStyle","flex_1","StyleSheet","create","zIndex","marginStart","Spacing","spacing_03","CarbonStyleSheet","normal","color","text_primary","text_disabled","error","read_only","warning"],"sourceRoot":"../../../../src","sources":["components/checkbox/Checkbox.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAQA,IAAAC,YAAA,GAAAD,OAAA;AAQA,IAAAE,0BAAA,GAAAF,OAAA;AAIA,IAAAG,MAAA,GAAAH,OAAA;AAIA,IAAAI,OAAA,GAAAJ,OAAA;AAIA,IAAAK,OAAA,GAAAL,OAAA;AAOA,IAAAM,OAAA,GAAAN,OAAA;AAIA,IAAAO,OAAA,GAAAP,OAAA;AAMA,IAAAQ,OAAA,GAAAR,OAAA;AAEsB,IAAAS,WAAA,GAAAT,OAAA;AAef,MAAMU,QAAQ,GAAAC,OAAA,CAAAD,QAAA,gBAAG,IAAAE,iBAAU,EACjC,SAASF,QAAQA,CAChB;EACCG,cAAc;EACdC,OAAO;EACPC,gBAAgB,GAAG,QAAQ;EAC3BC,KAAK;EACLC,IAAI,GAAG,UAAU;EACjB,YAAY,EAAEC,SAAS;EACvBC,QAAQ;EACRC,OAAO;EACPC,kBAAkB;EAClBC,cAAc;EACdC,cAAc;EACdC,KAAK;EACL,GAAGC;AACJ,CAAC,EACDC,YAAY,EACX;EAED,IAAAC,iBAAU,EAACC,oBAAY,CAAC;EAExB,MACCC,gBAAgB,GACf,IAAAC,aAAM,EAAmB,IAAI,CAAC;IAE/BC,OAAO,GACN,IAAAD,aAAM,EAAO,IAAI,CAAC;IAEnBE,YAAoD,GACnD,I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BAAgB,CAACE,KAAK,CAACC;IAC/B,CAAC;IACDzB,QAAQ,EAAE;MACTwB,KAAK,EAAEF,uBAAgB,CAACE,KAAK,CAACE;IAC/B,CAAC;IACDC,KAAK,EAAE;MACNH,KAAK,EAAEF,uBAAgB,CAACE,KAAK,CAACC;IAC/B,CAAC;IACDG,SAAS,EAAE;MACVJ,KAAK,EAAEF,uBAAgB,CAACE,KAAK,CAACC;IAC/B,CAAC;IACDI,OAAO,EAAE;MACRL,KAAK,EAAEF,uBAAgB,CAACE,KAAK,CAACC;IAC/B;EACD,CAAC,CAAC","ignoreList":[]}
|
|
@@ -9,9 +9,9 @@ var _reactNative = require("react-native");
|
|
|
9
9
|
var _carbonReactNativeElements = require("@audira/carbon-react-native-elements");
|
|
10
10
|
var _warningAltFilled = _interopRequireDefault(require("@carbon/icons/svg/32/warning--alt--filled.svg"));
|
|
11
11
|
var _warningFilled = _interopRequireDefault(require("@carbon/icons/svg/32/warning--filled.svg"));
|
|
12
|
-
var _index = require("../../
|
|
13
|
-
var _index2 = require("../../
|
|
14
|
-
var _index3 = require("
|
|
12
|
+
var _index = require("../../contexts/index.js");
|
|
13
|
+
var _index2 = require("../../style-sheets/index.js");
|
|
14
|
+
var _index3 = require("../box/index.js");
|
|
15
15
|
var _index4 = require("../checkbox/index.js");
|
|
16
16
|
var _index5 = require("../form-helper-text/index.js");
|
|
17
17
|
var _index6 = require("../form-label/index.js");
|
|
@@ -25,20 +25,15 @@ const Component = /*#__PURE__*/(0, _react.forwardRef)(function CheckboxGroup({
|
|
|
25
25
|
helperTextModeIcon = true,
|
|
26
26
|
formHelperTextProps,
|
|
27
27
|
children,
|
|
28
|
-
style,
|
|
29
|
-
dir,
|
|
30
28
|
...props
|
|
31
29
|
}, ref) {
|
|
32
|
-
|
|
33
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
30
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_index3.Box, {
|
|
34
31
|
...props,
|
|
35
|
-
dir: dir ?? globalConfigContext.rtl ? "rtl" : undefined,
|
|
36
|
-
style: [globalConfigContext.rtl ? _index2.CommonStyleSheet.rtl : undefined, style],
|
|
37
32
|
ref: ref,
|
|
38
33
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index6.FormLabel, {
|
|
39
34
|
label: legend,
|
|
40
35
|
style: baseStyle.legend
|
|
41
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
36
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index3.Box, {
|
|
42
37
|
style: [baseStyle.wrapper, wrapperOrientationStyle[orientation]],
|
|
43
38
|
children: children
|
|
44
39
|
}), !!helperText && /*#__PURE__*/(0, _jsxRuntime.jsx)(_index5.FormHelperText, {
|
|
@@ -65,15 +60,10 @@ const baseStyle = _reactNative.StyleSheet.create({
|
|
|
65
60
|
marginTop: _carbonReactNativeElements.Spacing.spacing_03
|
|
66
61
|
}
|
|
67
62
|
}),
|
|
68
|
-
wrapperOrientationStyle =
|
|
69
|
-
vertical:
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
horizontal: {
|
|
73
|
-
..._index2.FlexStyleSheet.flex_wrap,
|
|
74
|
-
flexDirection: "row"
|
|
75
|
-
}
|
|
76
|
-
}),
|
|
63
|
+
wrapperOrientationStyle = {
|
|
64
|
+
vertical: _index2.FlexStyleSheet.flex_col,
|
|
65
|
+
horizontal: [_index2.FlexStyleSheet.flex_row, _index2.FlexStyleSheet.flex_wrap]
|
|
66
|
+
},
|
|
77
67
|
mapIconErrorFillColor = {
|
|
78
68
|
gray_10: _carbonReactNativeElements.Color.Token.gray_10.support_error,
|
|
79
69
|
gray_100: _carbonReactNativeElements.Color.Token.gray_10.support_error
|
|
@@ -87,7 +77,7 @@ const baseStyle = _reactNative.StyleSheet.create({
|
|
|
87
77
|
gray_100: _carbonReactNativeElements.Color.Token.gray_100.support_warning
|
|
88
78
|
};
|
|
89
79
|
function IconErrorRenderer(props) {
|
|
90
|
-
const themeContext = (0, _react.useContext)(
|
|
80
|
+
const themeContext = (0, _react.useContext)(_index.ThemeContext);
|
|
91
81
|
|
|
92
82
|
// return (
|
|
93
83
|
// <Icon
|
|
@@ -111,7 +101,7 @@ function IconErrorRenderer(props) {
|
|
|
111
101
|
// // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
112
102
|
// IconWarningAltFilled.content[0].attrs.fill = 'black'
|
|
113
103
|
function IconWarningRenderer(props) {
|
|
114
|
-
const themeContext = (0, _react.useContext)(
|
|
104
|
+
const themeContext = (0, _react.useContext)(_index.ThemeContext);
|
|
115
105
|
|
|
116
106
|
// return (
|
|
117
107
|
// <Icon
|