@audira/carbon-react-native 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/{components/accordion/_chevron/Chevron.js → _internal/components/animated-collapsible-chevron/AnimatedCollapsibleChevron.js} +22 -10
- package/lib/commonjs/_internal/components/animated-collapsible-chevron/AnimatedCollapsibleChevron.js.map +1 -0
- package/lib/commonjs/_internal/components/animated-collapsible-chevron/AnimatedCollapsibleChevronProps.js +6 -0
- package/lib/commonjs/_internal/components/animated-collapsible-chevron/AnimatedCollapsibleChevronProps.js.map +1 -0
- package/lib/commonjs/_internal/components/animated-collapsible-chevron/index.js +17 -0
- package/lib/commonjs/_internal/components/animated-collapsible-chevron/index.js.map +1 -0
- package/lib/commonjs/{components/accordion/_chevron → _internal/components}/index.js +4 -4
- package/lib/commonjs/_internal/components/index.js.map +1 -0
- package/lib/commonjs/carbon-style-sheet/color.js +1 -1
- package/lib/commonjs/carbon-style-sheet/g/flex.js +9 -1
- package/lib/commonjs/carbon-style-sheet/g/flex.js.map +1 -1
- package/lib/commonjs/carbon-style-sheet/g/font.js +1 -1
- package/lib/commonjs/carbon-style-sheet/g/index.js +11 -0
- package/lib/commonjs/carbon-style-sheet/g/index.js.map +1 -1
- package/lib/commonjs/carbon-style-sheet/g/spacing.js +172 -4
- package/lib/commonjs/carbon-style-sheet/g/spacing.js.map +1 -1
- package/lib/commonjs/carbon-style-sheet/g/typography.js +1 -1
- package/lib/commonjs/carbon-style-sheet/g/visibility.js +40 -0
- package/lib/commonjs/carbon-style-sheet/g/visibility.js.map +1 -0
- package/lib/commonjs/carbon-style-sheet/g-object/flex.js +4 -1
- package/lib/commonjs/carbon-style-sheet/g-object/flex.js.map +1 -1
- package/lib/commonjs/carbon-style-sheet/g-object/font.js +1 -1
- package/lib/commonjs/carbon-style-sheet/g-object/index.js +11 -0
- package/lib/commonjs/carbon-style-sheet/g-object/index.js.map +1 -1
- package/lib/commonjs/carbon-style-sheet/g-object/spacing.js +67 -4
- package/lib/commonjs/carbon-style-sheet/g-object/spacing.js.map +1 -1
- package/lib/commonjs/carbon-style-sheet/g-object/typography.js +1 -1
- package/lib/commonjs/carbon-style-sheet/g-object/visibility.js +26 -0
- package/lib/commonjs/carbon-style-sheet/g-object/visibility.js.map +1 -0
- package/lib/commonjs/components/accordion/AccordionItemRefBase.js +2 -0
- package/lib/commonjs/components/accordion/AccordionItemRefBase.js.map +1 -0
- package/lib/commonjs/components/accordion/_Header.js +8 -6
- package/lib/commonjs/components/accordion/_Header.js.map +1 -1
- package/lib/commonjs/components/accordion/_Item.js +11 -9
- package/lib/commonjs/components/accordion/_Item.js.map +1 -1
- package/lib/commonjs/components/accordion/_motion.js.map +1 -1
- package/lib/commonjs/components/accordion/index.js +0 -66
- package/lib/commonjs/components/accordion/index.js.map +1 -1
- package/lib/commonjs/components/checkbox/Checkbox.js +1 -1
- package/lib/commonjs/components/checkbox/Checkbox.js.map +1 -1
- package/lib/commonjs/components/{accordion/_chevron/ChevronProps.js → checkbox/CheckboxRefBase.js} +1 -1
- package/lib/commonjs/components/checkbox/CheckboxRefBase.js.map +1 -0
- package/lib/commonjs/components/checkbox/index.js +0 -22
- package/lib/commonjs/components/checkbox/index.js.map +1 -1
- package/lib/commonjs/components/checkbox-input/CheckboxInput.js +2 -2
- package/lib/commonjs/components/checkbox-input/CheckboxInput.js.map +1 -1
- package/lib/commonjs/components/{checkbox/_RefBase.js → checkbox-input/CheckboxInputRefBase.js} +1 -1
- package/lib/commonjs/components/checkbox-input/CheckboxInputRefBase.js.map +1 -0
- package/lib/commonjs/components/checkbox-input/index.js +0 -44
- package/lib/commonjs/components/checkbox-input/index.js.map +1 -1
- package/lib/commonjs/components/collapsible/Collapsible.js +26 -33
- package/lib/commonjs/components/collapsible/Collapsible.js.map +1 -1
- package/lib/commonjs/components/collapsible/CollapsibleRefBase.js +2 -0
- package/lib/commonjs/components/collapsible/CollapsibleRefBase.js.map +1 -0
- package/lib/commonjs/components/collapsible/index.js +0 -22
- package/lib/commonjs/components/collapsible/index.js.map +1 -1
- package/lib/commonjs/components/index.js +39 -15
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/components/radio-button/RadioButton.js +1 -1
- package/lib/commonjs/components/radio-button/RadioButton.js.map +1 -1
- package/lib/commonjs/components/{checkbox-input/_RefBase.js → radio-button/RadioButtonRefBase.js} +1 -1
- package/lib/commonjs/components/radio-button/RadioButtonRefBase.js.map +1 -0
- package/lib/commonjs/components/radio-button/index.js +0 -22
- package/lib/commonjs/components/radio-button/index.js.map +1 -1
- package/lib/commonjs/components/radio-button-input/RadioButtonInputRefBase.js +2 -0
- package/lib/commonjs/components/radio-button-input/RadioButtonInputRefBase.js.map +1 -0
- package/lib/commonjs/components/radio-button-input/index.js +0 -33
- package/lib/commonjs/components/radio-button-input/index.js.map +1 -1
- package/lib/commonjs/components/switch/Switch.js +3 -2
- package/lib/commonjs/components/switch/Switch.js.map +1 -1
- package/lib/commonjs/components/switch/SwitchRefBase.js +2 -0
- package/lib/{module/components/collapsible/_RefBase.js.map → commonjs/components/switch/SwitchRefBase.js.map} +1 -1
- package/lib/commonjs/components/switch/index.js +0 -44
- package/lib/commonjs/components/switch/index.js.map +1 -1
- package/lib/commonjs/components/table-cell/TableCell.js +4 -2
- package/lib/commonjs/components/table-cell/TableCell.js.map +1 -1
- package/lib/commonjs/components/table-cell-checkbox/TableCellCheckbox.js +92 -0
- package/lib/commonjs/components/table-cell-checkbox/TableCellCheckbox.js.map +1 -0
- package/lib/commonjs/components/table-cell-checkbox/TableCellCheckboxInteractiveState.js +6 -0
- package/lib/commonjs/components/table-cell-checkbox/TableCellCheckboxInteractiveState.js.map +1 -0
- package/lib/commonjs/components/table-cell-checkbox/TableCellCheckboxProps.js +6 -0
- package/lib/commonjs/components/table-cell-checkbox/TableCellCheckboxProps.js.map +1 -0
- package/lib/commonjs/components/{radio-button/_RefBase.js → table-cell-checkbox/TableCellCheckboxRef.js} +1 -1
- package/lib/commonjs/components/table-cell-checkbox/TableCellCheckboxRef.js.map +1 -0
- package/lib/commonjs/components/table-cell-checkbox/index.js +17 -0
- package/lib/commonjs/components/table-cell-checkbox/index.js.map +1 -0
- package/lib/commonjs/components/table-cell-text/TableCellText.js +5 -7
- package/lib/commonjs/components/table-cell-text/TableCellText.js.map +1 -1
- package/lib/commonjs/components/table-row/TableRow.js +51 -32
- package/lib/commonjs/components/table-row/TableRow.js.map +1 -1
- package/lib/commonjs/components/table-row/_TableRowContext.js +5 -1
- package/lib/commonjs/components/table-row/_TableRowContext.js.map +1 -1
- package/lib/commonjs/components/table-row/_TableRowContextProvider.js +27 -0
- package/lib/commonjs/components/table-row/_TableRowContextProvider.js.map +1 -0
- package/lib/commonjs/components/table-row/_style-sheet-height.js +3 -0
- package/lib/commonjs/components/table-row/_style-sheet-height.js.map +1 -1
- package/lib/commonjs/components/table-row-collapsible/TableRowCollapsible.js +212 -0
- package/lib/commonjs/components/table-row-collapsible/TableRowCollapsible.js.map +1 -0
- package/lib/commonjs/components/table-row-collapsible/TableRowCollapsibleProps.js +6 -0
- package/lib/commonjs/components/table-row-collapsible/TableRowCollapsibleProps.js.map +1 -0
- package/lib/commonjs/components/table-row-collapsible/TableRowCollapsibleRef.js +6 -0
- package/lib/commonjs/components/table-row-collapsible/TableRowCollapsibleRef.js.map +1 -0
- package/lib/commonjs/components/table-row-collapsible/TableRowCollapsibleRefBase.js +6 -0
- package/lib/commonjs/components/table-row-collapsible/TableRowCollapsibleRefBase.js.map +1 -0
- package/lib/commonjs/components/table-row-collapsible/_table-cell-chevron/TableCellChevron.js +77 -0
- package/lib/commonjs/components/table-row-collapsible/_table-cell-chevron/TableCellChevron.js.map +1 -0
- package/lib/commonjs/components/table-row-collapsible/_table-cell-chevron/TableCellChevronProps.js +6 -0
- package/lib/commonjs/components/table-row-collapsible/_table-cell-chevron/TableCellChevronProps.js.map +1 -0
- package/lib/commonjs/components/table-row-collapsible/_table-cell-chevron/index.js +17 -0
- package/lib/commonjs/components/table-row-collapsible/_table-cell-chevron/index.js.map +1 -0
- package/lib/commonjs/components/table-row-collapsible/index.js +17 -0
- package/lib/commonjs/components/table-row-collapsible/index.js.map +1 -0
- package/lib/commonjs/components/toggle/base/{_RefBase.js → BaseRefBase.js} +1 -1
- package/lib/commonjs/components/toggle/base/BaseRefBase.js.map +1 -0
- package/lib/commonjs/components/toggle/base/index.js +0 -22
- package/lib/commonjs/components/toggle/base/index.js.map +1 -1
- package/lib/module/{components/accordion/_chevron/Chevron.js → _internal/components/animated-collapsible-chevron/AnimatedCollapsibleChevron.js} +22 -10
- package/lib/module/_internal/components/animated-collapsible-chevron/AnimatedCollapsibleChevron.js.map +1 -0
- package/lib/module/_internal/components/animated-collapsible-chevron/AnimatedCollapsibleChevronProps.js +4 -0
- package/lib/module/_internal/components/animated-collapsible-chevron/AnimatedCollapsibleChevronProps.js.map +1 -0
- package/lib/module/_internal/components/animated-collapsible-chevron/index.js +4 -0
- package/lib/module/_internal/components/animated-collapsible-chevron/index.js.map +1 -0
- package/lib/module/_internal/components/index.js +4 -0
- package/lib/module/_internal/components/index.js.map +1 -0
- package/lib/module/carbon-style-sheet/color.js +1 -1
- package/lib/module/carbon-style-sheet/g/flex.js +7 -0
- package/lib/module/carbon-style-sheet/g/flex.js.map +1 -1
- package/lib/module/carbon-style-sheet/g/font.js +1 -1
- package/lib/module/carbon-style-sheet/g/index.js +1 -0
- package/lib/module/carbon-style-sheet/g/index.js.map +1 -1
- package/lib/module/carbon-style-sheet/g/spacing.js +148 -1
- package/lib/module/carbon-style-sheet/g/spacing.js.map +1 -1
- package/lib/module/carbon-style-sheet/g/typography.js +1 -1
- package/lib/module/carbon-style-sheet/g/visibility.js +34 -0
- package/lib/module/carbon-style-sheet/g/visibility.js.map +1 -0
- package/lib/module/carbon-style-sheet/g-object/flex.js +3 -0
- package/lib/module/carbon-style-sheet/g-object/flex.js.map +1 -1
- package/lib/module/carbon-style-sheet/g-object/font.js +1 -1
- package/lib/module/carbon-style-sheet/g-object/index.js +1 -0
- package/lib/module/carbon-style-sheet/g-object/index.js.map +1 -1
- package/lib/module/carbon-style-sheet/g-object/spacing.js +64 -1
- package/lib/module/carbon-style-sheet/g-object/spacing.js.map +1 -1
- package/lib/module/carbon-style-sheet/g-object/typography.js +1 -1
- package/lib/module/carbon-style-sheet/g-object/visibility.js +22 -0
- package/lib/module/carbon-style-sheet/g-object/visibility.js.map +1 -0
- package/lib/module/components/accordion/AccordionItemRefBase.js +2 -0
- package/lib/module/components/accordion/AccordionItemRefBase.js.map +1 -0
- package/lib/module/components/accordion/_Header.js +4 -2
- package/lib/module/components/accordion/_Header.js.map +1 -1
- package/lib/module/components/accordion/_Item.js +11 -9
- package/lib/module/components/accordion/_Item.js.map +1 -1
- package/lib/module/components/accordion/_motion.js.map +1 -1
- package/lib/module/components/accordion/index.js +0 -6
- package/lib/module/components/accordion/index.js.map +1 -1
- package/lib/module/components/checkbox/Checkbox.js +1 -1
- package/lib/module/components/checkbox/Checkbox.js.map +1 -1
- package/lib/module/components/checkbox/CheckboxRefBase.js +4 -0
- package/lib/module/components/checkbox/CheckboxRefBase.js.map +1 -0
- package/lib/module/components/checkbox/index.js +0 -2
- package/lib/module/components/checkbox/index.js.map +1 -1
- package/lib/module/components/checkbox-input/CheckboxInput.js +2 -2
- package/lib/module/components/checkbox-input/CheckboxInput.js.map +1 -1
- package/lib/module/components/checkbox-input/CheckboxInputRefBase.js +4 -0
- package/lib/module/components/checkbox-input/CheckboxInputRefBase.js.map +1 -0
- package/lib/module/components/checkbox-input/index.js +0 -4
- package/lib/module/components/checkbox-input/index.js.map +1 -1
- package/lib/module/components/collapsible/Collapsible.js +26 -33
- package/lib/module/components/collapsible/Collapsible.js.map +1 -1
- package/lib/module/components/collapsible/CollapsibleRefBase.js +2 -0
- package/lib/module/components/collapsible/CollapsibleRefBase.js.map +1 -0
- package/lib/module/components/collapsible/index.js +0 -2
- package/lib/module/components/collapsible/index.js.map +1 -1
- package/lib/module/components/index.js +2 -0
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/components/radio-button/RadioButton.js +1 -1
- package/lib/module/components/radio-button/RadioButton.js.map +1 -1
- package/lib/module/components/radio-button/RadioButtonRefBase.js +4 -0
- package/lib/module/components/radio-button/RadioButtonRefBase.js.map +1 -0
- package/lib/module/components/radio-button/index.js +0 -2
- package/lib/module/components/radio-button/index.js.map +1 -1
- package/lib/module/components/radio-button-input/RadioButtonInputRefBase.js +2 -0
- package/lib/module/components/radio-button-input/RadioButtonInputRefBase.js.map +1 -0
- package/lib/module/components/radio-button-input/index.js +0 -3
- package/lib/module/components/radio-button-input/index.js.map +1 -1
- package/lib/module/components/switch/Switch.js +3 -2
- package/lib/module/components/switch/Switch.js.map +1 -1
- package/lib/module/components/switch/SwitchRefBase.js +2 -0
- package/lib/{commonjs/components/collapsible/_RefBase.js.map → module/components/switch/SwitchRefBase.js.map} +1 -1
- package/lib/module/components/switch/index.js +0 -4
- package/lib/module/components/switch/index.js.map +1 -1
- package/lib/module/components/table-cell/TableCell.js +4 -2
- package/lib/module/components/table-cell/TableCell.js.map +1 -1
- package/lib/module/components/table-cell-checkbox/TableCellCheckbox.js +87 -0
- package/lib/module/components/table-cell-checkbox/TableCellCheckbox.js.map +1 -0
- package/lib/module/components/table-cell-checkbox/TableCellCheckboxInteractiveState.js +4 -0
- package/lib/module/components/table-cell-checkbox/TableCellCheckboxInteractiveState.js.map +1 -0
- package/lib/module/components/table-cell-checkbox/TableCellCheckboxProps.js +4 -0
- package/lib/module/components/table-cell-checkbox/TableCellCheckboxProps.js.map +1 -0
- package/lib/module/components/table-cell-checkbox/TableCellCheckboxRef.js +4 -0
- package/lib/module/components/table-cell-checkbox/TableCellCheckboxRef.js.map +1 -0
- package/lib/module/components/table-cell-checkbox/index.js +4 -0
- package/lib/module/components/table-cell-checkbox/index.js.map +1 -0
- package/lib/module/components/table-cell-text/TableCellText.js +5 -7
- package/lib/module/components/table-cell-text/TableCellText.js.map +1 -1
- package/lib/module/components/table-row/TableRow.js +51 -32
- package/lib/module/components/table-row/TableRow.js.map +1 -1
- package/lib/module/components/table-row/_TableRowContext.js +5 -1
- package/lib/module/components/table-row/_TableRowContext.js.map +1 -1
- package/lib/module/components/table-row/_TableRowContextProvider.js +23 -0
- package/lib/module/components/table-row/_TableRowContextProvider.js.map +1 -0
- package/lib/module/components/table-row/_style-sheet-height.js +3 -0
- package/lib/module/components/table-row/_style-sheet-height.js.map +1 -1
- package/lib/module/components/table-row-collapsible/TableRowCollapsible.js +207 -0
- package/lib/module/components/table-row-collapsible/TableRowCollapsible.js.map +1 -0
- package/lib/module/components/table-row-collapsible/TableRowCollapsibleProps.js +4 -0
- package/lib/module/components/table-row-collapsible/TableRowCollapsibleProps.js.map +1 -0
- package/lib/module/components/table-row-collapsible/TableRowCollapsibleRef.js +4 -0
- package/lib/module/components/table-row-collapsible/TableRowCollapsibleRef.js.map +1 -0
- package/lib/module/components/table-row-collapsible/TableRowCollapsibleRefBase.js +4 -0
- package/lib/module/components/table-row-collapsible/TableRowCollapsibleRefBase.js.map +1 -0
- package/lib/module/components/table-row-collapsible/_table-cell-chevron/TableCellChevron.js +72 -0
- package/lib/module/components/table-row-collapsible/_table-cell-chevron/TableCellChevron.js.map +1 -0
- package/lib/module/components/table-row-collapsible/_table-cell-chevron/TableCellChevronProps.js +4 -0
- package/lib/module/components/table-row-collapsible/_table-cell-chevron/TableCellChevronProps.js.map +1 -0
- package/lib/module/components/table-row-collapsible/_table-cell-chevron/index.js +4 -0
- package/lib/module/components/table-row-collapsible/_table-cell-chevron/index.js.map +1 -0
- package/lib/module/components/table-row-collapsible/index.js +4 -0
- package/lib/module/components/table-row-collapsible/index.js.map +1 -0
- package/lib/module/components/toggle/base/BaseRefBase.js +4 -0
- package/lib/module/components/toggle/base/BaseRefBase.js.map +1 -0
- package/lib/module/components/toggle/base/index.js +0 -2
- package/lib/module/components/toggle/base/index.js.map +1 -1
- package/lib/typescript/commonjs/_internal/components/animated-collapsible-chevron/AnimatedCollapsibleChevron.d.ts +3 -0
- package/lib/typescript/commonjs/_internal/components/animated-collapsible-chevron/AnimatedCollapsibleChevron.d.ts.map +1 -0
- package/lib/typescript/commonjs/_internal/components/animated-collapsible-chevron/AnimatedCollapsibleChevronProps.d.ts +9 -0
- package/lib/typescript/commonjs/_internal/components/animated-collapsible-chevron/AnimatedCollapsibleChevronProps.d.ts.map +1 -0
- package/lib/typescript/commonjs/_internal/components/animated-collapsible-chevron/index.d.ts +3 -0
- package/lib/typescript/commonjs/_internal/components/animated-collapsible-chevron/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/_internal/components/index.d.ts +2 -0
- package/lib/typescript/commonjs/_internal/components/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/carbon-style-sheet/g/flex.d.ts +3 -0
- package/lib/typescript/commonjs/carbon-style-sheet/g/flex.d.ts.map +1 -1
- package/lib/typescript/commonjs/carbon-style-sheet/g/index.d.ts +1 -0
- package/lib/typescript/commonjs/carbon-style-sheet/g/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/carbon-style-sheet/g/spacing.d.ts +63 -0
- package/lib/typescript/commonjs/carbon-style-sheet/g/spacing.d.ts.map +1 -1
- package/lib/typescript/commonjs/carbon-style-sheet/g/visibility.d.ts +19 -0
- package/lib/typescript/commonjs/carbon-style-sheet/g/visibility.d.ts.map +1 -0
- package/lib/typescript/commonjs/carbon-style-sheet/g-object/flex.d.ts +3 -0
- package/lib/typescript/commonjs/carbon-style-sheet/g-object/flex.d.ts.map +1 -1
- package/lib/typescript/commonjs/carbon-style-sheet/g-object/index.d.ts +1 -0
- package/lib/typescript/commonjs/carbon-style-sheet/g-object/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/carbon-style-sheet/g-object/spacing.d.ts +63 -0
- package/lib/typescript/commonjs/carbon-style-sheet/g-object/spacing.d.ts.map +1 -1
- package/lib/typescript/commonjs/carbon-style-sheet/g-object/visibility.d.ts +19 -0
- package/lib/typescript/commonjs/carbon-style-sheet/g-object/visibility.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/accordion/AccordionItemRef.d.ts +2 -2
- package/lib/typescript/commonjs/components/accordion/AccordionItemRef.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/accordion/AccordionItemRefBase.d.ts +11 -0
- package/lib/typescript/commonjs/components/accordion/AccordionItemRefBase.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/accordion/_Header.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/accordion/_Item.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/accordion/_context.d.ts +1 -1
- package/lib/typescript/commonjs/components/accordion/_context.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/accordion/_motion.d.ts +9 -2
- package/lib/typescript/commonjs/components/accordion/_motion.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/accordion/index.d.ts +7 -6
- package/lib/typescript/commonjs/components/accordion/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/checkbox/Checkbox.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/checkbox/CheckboxRef.d.ts +2 -2
- package/lib/typescript/commonjs/components/checkbox/CheckboxRef.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/checkbox/CheckboxRefBase.d.ts +5 -0
- package/lib/typescript/commonjs/components/checkbox/CheckboxRefBase.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/checkbox/index.d.ts +3 -2
- package/lib/typescript/commonjs/components/checkbox/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/checkbox-input/CheckboxInputRef.d.ts +2 -2
- package/lib/typescript/commonjs/components/checkbox-input/CheckboxInputRef.d.ts.map +1 -1
- package/lib/typescript/{module/components/checkbox-input/_RefBase.d.ts → commonjs/components/checkbox-input/CheckboxInputRefBase.d.ts} +6 -3
- package/lib/typescript/commonjs/components/checkbox-input/CheckboxInputRefBase.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/checkbox-input/index.d.ts +5 -4
- package/lib/typescript/commonjs/components/checkbox-input/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/collapsible/Collapsible.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/collapsible/CollapsibleProps.d.ts +1 -2
- package/lib/typescript/commonjs/components/collapsible/CollapsibleProps.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/collapsible/CollapsibleRef.d.ts +2 -2
- package/lib/typescript/commonjs/components/collapsible/CollapsibleRef.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/collapsible/CollapsibleRefBase.d.ts +9 -0
- package/lib/typescript/commonjs/components/collapsible/CollapsibleRefBase.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/collapsible/index.d.ts +3 -2
- package/lib/typescript/commonjs/components/collapsible/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/index.d.ts +2 -0
- package/lib/typescript/commonjs/components/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/radio-button/RadioButtonRef.d.ts +2 -2
- package/lib/typescript/commonjs/components/radio-button/RadioButtonRef.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/radio-button/RadioButtonRefBase.d.ts +4 -0
- package/lib/typescript/commonjs/components/radio-button/RadioButtonRefBase.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/radio-button/index.d.ts +3 -2
- package/lib/typescript/commonjs/components/radio-button/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/radio-button-input/RadioButtonInputRef.d.ts +2 -2
- package/lib/typescript/commonjs/components/radio-button-input/RadioButtonInputRef.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/radio-button-input/RadioButtonInputRefBase.d.ts +11 -0
- package/lib/typescript/commonjs/components/radio-button-input/RadioButtonInputRefBase.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/radio-button-input/index.d.ts +4 -3
- package/lib/typescript/commonjs/components/radio-button-input/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/switch/Switch.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/switch/SwitchRef.d.ts +2 -2
- package/lib/typescript/commonjs/components/switch/SwitchRef.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/switch/SwitchRefBase.d.ts +11 -0
- package/lib/typescript/commonjs/components/switch/SwitchRefBase.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/switch/index.d.ts +5 -4
- package/lib/typescript/commonjs/components/switch/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/table-cell/TableCell.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/table-cell/TableCellProps.d.ts +5 -0
- package/lib/typescript/commonjs/components/table-cell/TableCellProps.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/table-cell-checkbox/TableCellCheckbox.d.ts +4 -0
- package/lib/typescript/commonjs/components/table-cell-checkbox/TableCellCheckbox.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-cell-checkbox/TableCellCheckboxInteractiveState.d.ts +4 -0
- package/lib/typescript/commonjs/components/table-cell-checkbox/TableCellCheckboxInteractiveState.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-cell-checkbox/TableCellCheckboxProps.d.ts +13 -0
- package/lib/typescript/commonjs/components/table-cell-checkbox/TableCellCheckboxProps.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-cell-checkbox/TableCellCheckboxRef.d.ts +5 -0
- package/lib/typescript/commonjs/components/table-cell-checkbox/TableCellCheckboxRef.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-cell-checkbox/index.d.ts +5 -0
- package/lib/typescript/commonjs/components/table-cell-checkbox/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-cell-text/TableCellText.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/table-row/TableRow.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/table-row/TableRowInteractiveState.d.ts +1 -1
- package/lib/typescript/commonjs/components/table-row/TableRowInteractiveState.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/table-row/TableRowProps.d.ts +7 -1
- package/lib/typescript/commonjs/components/table-row/TableRowProps.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/table-row/_TableRowContext.d.ts +3 -1
- package/lib/typescript/commonjs/components/table-row/_TableRowContext.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/table-row/_TableRowContextProvider.d.ts +8 -0
- package/lib/typescript/commonjs/components/table-row/_TableRowContextProvider.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-row/_style-sheet-height.d.ts +3 -0
- package/lib/typescript/commonjs/components/table-row/_style-sheet-height.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/table-row-collapsible/TableRowCollapsible.d.ts +4 -0
- package/lib/typescript/commonjs/components/table-row-collapsible/TableRowCollapsible.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-row-collapsible/TableRowCollapsibleProps.d.ts +23 -0
- package/lib/typescript/commonjs/components/table-row-collapsible/TableRowCollapsibleProps.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-row-collapsible/TableRowCollapsibleRef.d.ts +5 -0
- package/lib/typescript/commonjs/components/table-row-collapsible/TableRowCollapsibleRef.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-row-collapsible/TableRowCollapsibleRefBase.d.ts +8 -0
- package/lib/typescript/commonjs/components/table-row-collapsible/TableRowCollapsibleRefBase.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-row-collapsible/_table-cell-chevron/TableCellChevron.d.ts +3 -0
- package/lib/typescript/commonjs/components/table-row-collapsible/_table-cell-chevron/TableCellChevron.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-row-collapsible/_table-cell-chevron/TableCellChevronProps.d.ts +8 -0
- package/lib/typescript/commonjs/components/table-row-collapsible/_table-cell-chevron/TableCellChevronProps.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-row-collapsible/_table-cell-chevron/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/table-row-collapsible/_table-cell-chevron/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-row-collapsible/index.d.ts +4 -0
- package/lib/typescript/commonjs/components/table-row-collapsible/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/toggle/base/BaseRef.d.ts +2 -2
- package/lib/typescript/commonjs/components/toggle/base/BaseRef.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/toggle/base/BaseRefBase.d.ts +4 -0
- package/lib/typescript/commonjs/components/toggle/base/BaseRefBase.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/toggle/base/index.d.ts +3 -2
- package/lib/typescript/commonjs/components/toggle/base/index.d.ts.map +1 -1
- package/lib/typescript/module/_internal/components/animated-collapsible-chevron/AnimatedCollapsibleChevron.d.ts +3 -0
- package/lib/typescript/module/_internal/components/animated-collapsible-chevron/AnimatedCollapsibleChevron.d.ts.map +1 -0
- package/lib/typescript/module/_internal/components/animated-collapsible-chevron/AnimatedCollapsibleChevronProps.d.ts +9 -0
- package/lib/typescript/module/_internal/components/animated-collapsible-chevron/AnimatedCollapsibleChevronProps.d.ts.map +1 -0
- package/lib/typescript/module/_internal/components/animated-collapsible-chevron/index.d.ts +3 -0
- package/lib/typescript/module/_internal/components/animated-collapsible-chevron/index.d.ts.map +1 -0
- package/lib/typescript/module/_internal/components/index.d.ts +2 -0
- package/lib/typescript/module/_internal/components/index.d.ts.map +1 -0
- package/lib/typescript/module/carbon-style-sheet/g/flex.d.ts +3 -0
- package/lib/typescript/module/carbon-style-sheet/g/flex.d.ts.map +1 -1
- package/lib/typescript/module/carbon-style-sheet/g/index.d.ts +1 -0
- package/lib/typescript/module/carbon-style-sheet/g/index.d.ts.map +1 -1
- package/lib/typescript/module/carbon-style-sheet/g/spacing.d.ts +63 -0
- package/lib/typescript/module/carbon-style-sheet/g/spacing.d.ts.map +1 -1
- package/lib/typescript/module/carbon-style-sheet/g/visibility.d.ts +19 -0
- package/lib/typescript/module/carbon-style-sheet/g/visibility.d.ts.map +1 -0
- package/lib/typescript/module/carbon-style-sheet/g-object/flex.d.ts +3 -0
- package/lib/typescript/module/carbon-style-sheet/g-object/flex.d.ts.map +1 -1
- package/lib/typescript/module/carbon-style-sheet/g-object/index.d.ts +1 -0
- package/lib/typescript/module/carbon-style-sheet/g-object/index.d.ts.map +1 -1
- package/lib/typescript/module/carbon-style-sheet/g-object/spacing.d.ts +63 -0
- package/lib/typescript/module/carbon-style-sheet/g-object/spacing.d.ts.map +1 -1
- package/lib/typescript/module/carbon-style-sheet/g-object/visibility.d.ts +19 -0
- package/lib/typescript/module/carbon-style-sheet/g-object/visibility.d.ts.map +1 -0
- package/lib/typescript/module/components/accordion/AccordionItemRef.d.ts +2 -2
- package/lib/typescript/module/components/accordion/AccordionItemRef.d.ts.map +1 -1
- package/lib/typescript/module/components/accordion/AccordionItemRefBase.d.ts +11 -0
- package/lib/typescript/module/components/accordion/AccordionItemRefBase.d.ts.map +1 -0
- package/lib/typescript/module/components/accordion/_Header.d.ts.map +1 -1
- package/lib/typescript/module/components/accordion/_Item.d.ts.map +1 -1
- package/lib/typescript/module/components/accordion/_context.d.ts +1 -1
- package/lib/typescript/module/components/accordion/_context.d.ts.map +1 -1
- package/lib/typescript/module/components/accordion/_motion.d.ts +9 -2
- package/lib/typescript/module/components/accordion/_motion.d.ts.map +1 -1
- package/lib/typescript/module/components/accordion/index.d.ts +7 -6
- package/lib/typescript/module/components/accordion/index.d.ts.map +1 -1
- package/lib/typescript/module/components/checkbox/Checkbox.d.ts.map +1 -1
- package/lib/typescript/module/components/checkbox/CheckboxRef.d.ts +2 -2
- package/lib/typescript/module/components/checkbox/CheckboxRef.d.ts.map +1 -1
- package/lib/typescript/module/components/checkbox/CheckboxRefBase.d.ts +5 -0
- package/lib/typescript/module/components/checkbox/CheckboxRefBase.d.ts.map +1 -0
- package/lib/typescript/module/components/checkbox/index.d.ts +3 -2
- package/lib/typescript/module/components/checkbox/index.d.ts.map +1 -1
- package/lib/typescript/module/components/checkbox-input/CheckboxInputRef.d.ts +2 -2
- package/lib/typescript/module/components/checkbox-input/CheckboxInputRef.d.ts.map +1 -1
- package/lib/typescript/{commonjs/components/checkbox-input/_RefBase.d.ts → module/components/checkbox-input/CheckboxInputRefBase.d.ts} +6 -3
- package/lib/typescript/module/components/checkbox-input/CheckboxInputRefBase.d.ts.map +1 -0
- package/lib/typescript/module/components/checkbox-input/index.d.ts +5 -4
- package/lib/typescript/module/components/checkbox-input/index.d.ts.map +1 -1
- package/lib/typescript/module/components/collapsible/Collapsible.d.ts.map +1 -1
- package/lib/typescript/module/components/collapsible/CollapsibleProps.d.ts +1 -2
- package/lib/typescript/module/components/collapsible/CollapsibleProps.d.ts.map +1 -1
- package/lib/typescript/module/components/collapsible/CollapsibleRef.d.ts +2 -2
- package/lib/typescript/module/components/collapsible/CollapsibleRef.d.ts.map +1 -1
- package/lib/typescript/module/components/collapsible/CollapsibleRefBase.d.ts +9 -0
- package/lib/typescript/module/components/collapsible/CollapsibleRefBase.d.ts.map +1 -0
- package/lib/typescript/module/components/collapsible/index.d.ts +3 -2
- package/lib/typescript/module/components/collapsible/index.d.ts.map +1 -1
- package/lib/typescript/module/components/index.d.ts +2 -0
- package/lib/typescript/module/components/index.d.ts.map +1 -1
- package/lib/typescript/module/components/radio-button/RadioButtonRef.d.ts +2 -2
- package/lib/typescript/module/components/radio-button/RadioButtonRef.d.ts.map +1 -1
- package/lib/typescript/module/components/radio-button/RadioButtonRefBase.d.ts +4 -0
- package/lib/typescript/module/components/radio-button/RadioButtonRefBase.d.ts.map +1 -0
- package/lib/typescript/module/components/radio-button/index.d.ts +3 -2
- package/lib/typescript/module/components/radio-button/index.d.ts.map +1 -1
- package/lib/typescript/module/components/radio-button-input/RadioButtonInputRef.d.ts +2 -2
- package/lib/typescript/module/components/radio-button-input/RadioButtonInputRef.d.ts.map +1 -1
- package/lib/typescript/module/components/radio-button-input/RadioButtonInputRefBase.d.ts +11 -0
- package/lib/typescript/module/components/radio-button-input/RadioButtonInputRefBase.d.ts.map +1 -0
- package/lib/typescript/module/components/radio-button-input/index.d.ts +4 -3
- package/lib/typescript/module/components/radio-button-input/index.d.ts.map +1 -1
- package/lib/typescript/module/components/switch/Switch.d.ts.map +1 -1
- package/lib/typescript/module/components/switch/SwitchRef.d.ts +2 -2
- package/lib/typescript/module/components/switch/SwitchRef.d.ts.map +1 -1
- package/lib/typescript/module/components/switch/SwitchRefBase.d.ts +11 -0
- package/lib/typescript/module/components/switch/SwitchRefBase.d.ts.map +1 -0
- package/lib/typescript/module/components/switch/index.d.ts +5 -4
- package/lib/typescript/module/components/switch/index.d.ts.map +1 -1
- package/lib/typescript/module/components/table-cell/TableCell.d.ts.map +1 -1
- package/lib/typescript/module/components/table-cell/TableCellProps.d.ts +5 -0
- package/lib/typescript/module/components/table-cell/TableCellProps.d.ts.map +1 -1
- package/lib/typescript/module/components/table-cell-checkbox/TableCellCheckbox.d.ts +4 -0
- package/lib/typescript/module/components/table-cell-checkbox/TableCellCheckbox.d.ts.map +1 -0
- package/lib/typescript/module/components/table-cell-checkbox/TableCellCheckboxInteractiveState.d.ts +4 -0
- package/lib/typescript/module/components/table-cell-checkbox/TableCellCheckboxInteractiveState.d.ts.map +1 -0
- package/lib/typescript/module/components/table-cell-checkbox/TableCellCheckboxProps.d.ts +13 -0
- package/lib/typescript/module/components/table-cell-checkbox/TableCellCheckboxProps.d.ts.map +1 -0
- package/lib/typescript/module/components/table-cell-checkbox/TableCellCheckboxRef.d.ts +5 -0
- package/lib/typescript/module/components/table-cell-checkbox/TableCellCheckboxRef.d.ts.map +1 -0
- package/lib/typescript/module/components/table-cell-checkbox/index.d.ts +5 -0
- package/lib/typescript/module/components/table-cell-checkbox/index.d.ts.map +1 -0
- package/lib/typescript/module/components/table-cell-text/TableCellText.d.ts.map +1 -1
- package/lib/typescript/module/components/table-row/TableRow.d.ts.map +1 -1
- package/lib/typescript/module/components/table-row/TableRowInteractiveState.d.ts +1 -1
- package/lib/typescript/module/components/table-row/TableRowInteractiveState.d.ts.map +1 -1
- package/lib/typescript/module/components/table-row/TableRowProps.d.ts +7 -1
- package/lib/typescript/module/components/table-row/TableRowProps.d.ts.map +1 -1
- package/lib/typescript/module/components/table-row/_TableRowContext.d.ts +3 -1
- package/lib/typescript/module/components/table-row/_TableRowContext.d.ts.map +1 -1
- package/lib/typescript/module/components/table-row/_TableRowContextProvider.d.ts +8 -0
- package/lib/typescript/module/components/table-row/_TableRowContextProvider.d.ts.map +1 -0
- package/lib/typescript/module/components/table-row/_style-sheet-height.d.ts +3 -0
- package/lib/typescript/module/components/table-row/_style-sheet-height.d.ts.map +1 -1
- package/lib/typescript/module/components/table-row-collapsible/TableRowCollapsible.d.ts +4 -0
- package/lib/typescript/module/components/table-row-collapsible/TableRowCollapsible.d.ts.map +1 -0
- package/lib/typescript/module/components/table-row-collapsible/TableRowCollapsibleProps.d.ts +23 -0
- package/lib/typescript/module/components/table-row-collapsible/TableRowCollapsibleProps.d.ts.map +1 -0
- package/lib/typescript/module/components/table-row-collapsible/TableRowCollapsibleRef.d.ts +5 -0
- package/lib/typescript/module/components/table-row-collapsible/TableRowCollapsibleRef.d.ts.map +1 -0
- package/lib/typescript/module/components/table-row-collapsible/TableRowCollapsibleRefBase.d.ts +8 -0
- package/lib/typescript/module/components/table-row-collapsible/TableRowCollapsibleRefBase.d.ts.map +1 -0
- package/lib/typescript/module/components/table-row-collapsible/_table-cell-chevron/TableCellChevron.d.ts +3 -0
- package/lib/typescript/module/components/table-row-collapsible/_table-cell-chevron/TableCellChevron.d.ts.map +1 -0
- package/lib/typescript/module/components/table-row-collapsible/_table-cell-chevron/TableCellChevronProps.d.ts +8 -0
- package/lib/typescript/module/components/table-row-collapsible/_table-cell-chevron/TableCellChevronProps.d.ts.map +1 -0
- package/lib/typescript/module/components/table-row-collapsible/_table-cell-chevron/index.d.ts +3 -0
- package/lib/typescript/module/components/table-row-collapsible/_table-cell-chevron/index.d.ts.map +1 -0
- package/lib/typescript/module/components/table-row-collapsible/index.d.ts +4 -0
- package/lib/typescript/module/components/table-row-collapsible/index.d.ts.map +1 -0
- package/lib/typescript/module/components/toggle/base/BaseRef.d.ts +2 -2
- package/lib/typescript/module/components/toggle/base/BaseRef.d.ts.map +1 -1
- package/lib/typescript/module/components/toggle/base/BaseRefBase.d.ts +4 -0
- package/lib/typescript/module/components/toggle/base/BaseRefBase.d.ts.map +1 -0
- package/lib/typescript/module/components/toggle/base/index.d.ts +3 -2
- package/lib/typescript/module/components/toggle/base/index.d.ts.map +1 -1
- package/lib/typescript/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/{components/accordion/_chevron/Chevron.tsx → _internal/components/animated-collapsible-chevron/AnimatedCollapsibleChevron.tsx} +35 -11
- package/src/_internal/components/animated-collapsible-chevron/AnimatedCollapsibleChevronProps.ts +14 -0
- package/src/_internal/components/animated-collapsible-chevron/index.ts +2 -0
- package/src/_internal/components/index.ts +1 -0
- package/src/carbon-style-sheet/color.ts +1 -1
- package/src/carbon-style-sheet/g/flex.ts +6 -0
- package/src/carbon-style-sheet/g/font.ts +1 -1
- package/src/carbon-style-sheet/g/index.ts +1 -0
- package/src/carbon-style-sheet/g/spacing.ts +106 -1
- package/src/carbon-style-sheet/g/typography.ts +1 -1
- package/src/carbon-style-sheet/g/visibility.ts +32 -0
- package/src/carbon-style-sheet/g-object/flex.ts +4 -0
- package/src/carbon-style-sheet/g-object/font.ts +1 -1
- package/src/carbon-style-sheet/g-object/index.ts +1 -0
- package/src/carbon-style-sheet/g-object/spacing.ts +85 -1
- package/src/carbon-style-sheet/g-object/typography.ts +1 -1
- package/src/carbon-style-sheet/g-object/visibility.ts +23 -0
- package/src/components/accordion/AccordionItemRef.ts +3 -3
- package/src/components/accordion/AccordionItemRefBase.ts +10 -0
- package/src/components/accordion/_Header.tsx +8 -3
- package/src/components/accordion/_Item.tsx +19 -16
- package/src/components/accordion/_context.ts +1 -1
- package/src/components/accordion/_motion.ts +2 -2
- package/src/components/accordion/index.ts +7 -6
- package/src/components/checkbox/Checkbox.tsx +4 -5
- package/src/components/checkbox/CheckboxRef.ts +3 -3
- package/src/components/checkbox/CheckboxRefBase.ts +7 -0
- package/src/components/checkbox/index.ts +3 -2
- package/src/components/checkbox-input/CheckboxInput.tsx +7 -7
- package/src/components/checkbox-input/CheckboxInputRef.ts +3 -4
- package/src/components/checkbox-input/{_RefBase.ts → CheckboxInputRefBase.ts} +5 -2
- package/src/components/checkbox-input/index.ts +5 -4
- package/src/components/collapsible/Collapsible.tsx +23 -40
- package/src/components/collapsible/CollapsibleProps.ts +1 -2
- package/src/components/collapsible/CollapsibleRef.ts +3 -3
- package/src/components/collapsible/CollapsibleRefBase.ts +8 -0
- package/src/components/collapsible/index.ts +3 -2
- package/src/components/index.ts +2 -0
- package/src/components/radio-button/RadioButton.tsx +4 -4
- package/src/components/radio-button/RadioButtonRef.ts +3 -3
- package/src/components/radio-button/RadioButtonRefBase.ts +6 -0
- package/src/components/radio-button/index.ts +3 -2
- package/src/components/radio-button-input/RadioButtonInput.tsx +3 -3
- package/src/components/radio-button-input/RadioButtonInputRef.ts +3 -3
- package/src/components/radio-button-input/RadioButtonInputRefBase.ts +10 -0
- package/src/components/radio-button-input/index.ts +4 -3
- package/src/components/switch/Switch.tsx +8 -7
- package/src/components/switch/SwitchRef.ts +3 -3
- package/src/components/switch/SwitchRefBase.ts +10 -0
- package/src/components/switch/index.ts +5 -4
- package/src/components/table-cell/TableCell.tsx +3 -0
- package/src/components/table-cell/TableCellProps.ts +5 -0
- package/src/components/table-cell-checkbox/TableCellCheckbox.tsx +168 -0
- package/src/components/table-cell-checkbox/TableCellCheckboxInteractiveState.ts +13 -0
- package/src/components/table-cell-checkbox/TableCellCheckboxProps.ts +26 -0
- package/src/components/table-cell-checkbox/TableCellCheckboxRef.ts +10 -0
- package/src/components/table-cell-checkbox/index.ts +4 -0
- package/src/components/table-cell-text/TableCellText.tsx +7 -8
- package/src/components/table-row/TableRow.tsx +100 -55
- package/src/components/table-row/TableRowInteractiveState.ts +0 -1
- package/src/components/table-row/TableRowProps.ts +7 -1
- package/src/components/table-row/_TableRowContext.ts +7 -1
- package/src/components/table-row/_TableRowContextProvider.tsx +38 -0
- package/src/components/table-row/_style-sheet-height.ts +3 -0
- package/src/components/table-row-collapsible/TableRowCollapsible.tsx +415 -0
- package/src/components/table-row-collapsible/TableRowCollapsibleProps.ts +44 -0
- package/src/components/table-row-collapsible/TableRowCollapsibleRef.ts +10 -0
- package/src/components/table-row-collapsible/TableRowCollapsibleRefBase.ts +10 -0
- package/src/components/table-row-collapsible/_table-cell-chevron/TableCellChevron.tsx +140 -0
- package/src/components/table-row-collapsible/_table-cell-chevron/TableCellChevronProps.ts +13 -0
- package/src/components/table-row-collapsible/_table-cell-chevron/index.ts +2 -0
- package/src/components/table-row-collapsible/index.ts +3 -0
- package/src/components/toggle/base/Base.tsx +3 -3
- package/src/components/toggle/base/BaseRef.ts +3 -3
- package/src/components/toggle/base/BaseRefBase.ts +7 -0
- package/src/components/toggle/base/index.ts +3 -2
- package/lib/commonjs/components/accordion/_ItemRefBase.js +0 -2
- package/lib/commonjs/components/accordion/_ItemRefBase.js.map +0 -1
- package/lib/commonjs/components/accordion/_chevron/Chevron.js.map +0 -1
- package/lib/commonjs/components/accordion/_chevron/ChevronProps.js.map +0 -1
- package/lib/commonjs/components/accordion/_chevron/index.js.map +0 -1
- package/lib/commonjs/components/checkbox/_RefBase.js.map +0 -1
- package/lib/commonjs/components/checkbox-input/_RefBase.js.map +0 -1
- package/lib/commonjs/components/collapsible/_RefBase.js +0 -2
- package/lib/commonjs/components/radio-button/_RefBase.js.map +0 -1
- package/lib/commonjs/components/radio-button-input/_RefBase.js +0 -2
- package/lib/commonjs/components/radio-button-input/_RefBase.js.map +0 -1
- package/lib/commonjs/components/switch/_RefBase.js +0 -2
- package/lib/commonjs/components/switch/_RefBase.js.map +0 -1
- package/lib/commonjs/components/toggle/base/_RefBase.js.map +0 -1
- package/lib/module/components/accordion/_ItemRefBase.js +0 -2
- package/lib/module/components/accordion/_ItemRefBase.js.map +0 -1
- package/lib/module/components/accordion/_chevron/Chevron.js.map +0 -1
- package/lib/module/components/accordion/_chevron/ChevronProps.js +0 -4
- package/lib/module/components/accordion/_chevron/ChevronProps.js.map +0 -1
- package/lib/module/components/accordion/_chevron/index.js +0 -4
- package/lib/module/components/accordion/_chevron/index.js.map +0 -1
- package/lib/module/components/checkbox/_RefBase.js +0 -4
- package/lib/module/components/checkbox/_RefBase.js.map +0 -1
- package/lib/module/components/checkbox-input/_RefBase.js +0 -4
- package/lib/module/components/checkbox-input/_RefBase.js.map +0 -1
- package/lib/module/components/collapsible/_RefBase.js +0 -2
- package/lib/module/components/radio-button/_RefBase.js +0 -4
- package/lib/module/components/radio-button/_RefBase.js.map +0 -1
- package/lib/module/components/radio-button-input/_RefBase.js +0 -2
- package/lib/module/components/radio-button-input/_RefBase.js.map +0 -1
- package/lib/module/components/switch/_RefBase.js +0 -2
- package/lib/module/components/switch/_RefBase.js.map +0 -1
- package/lib/module/components/toggle/base/_RefBase.js +0 -4
- package/lib/module/components/toggle/base/_RefBase.js.map +0 -1
- package/lib/typescript/commonjs/components/accordion/_ItemRefBase.d.ts +0 -8
- package/lib/typescript/commonjs/components/accordion/_ItemRefBase.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/accordion/_chevron/Chevron.d.ts +0 -3
- package/lib/typescript/commonjs/components/accordion/_chevron/Chevron.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/accordion/_chevron/ChevronProps.d.ts +0 -8
- package/lib/typescript/commonjs/components/accordion/_chevron/ChevronProps.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/accordion/_chevron/index.d.ts +0 -3
- package/lib/typescript/commonjs/components/accordion/_chevron/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/checkbox/_RefBase.d.ts +0 -9
- package/lib/typescript/commonjs/components/checkbox/_RefBase.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/checkbox-input/_RefBase.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/collapsible/_RefBase.d.ts +0 -7
- package/lib/typescript/commonjs/components/collapsible/_RefBase.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/radio-button/_RefBase.d.ts +0 -9
- package/lib/typescript/commonjs/components/radio-button/_RefBase.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/radio-button-input/_RefBase.d.ts +0 -8
- package/lib/typescript/commonjs/components/radio-button-input/_RefBase.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/switch/_RefBase.d.ts +0 -8
- package/lib/typescript/commonjs/components/switch/_RefBase.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/toggle/base/_RefBase.d.ts +0 -9
- package/lib/typescript/commonjs/components/toggle/base/_RefBase.d.ts.map +0 -1
- package/lib/typescript/module/components/accordion/_ItemRefBase.d.ts +0 -8
- package/lib/typescript/module/components/accordion/_ItemRefBase.d.ts.map +0 -1
- package/lib/typescript/module/components/accordion/_chevron/Chevron.d.ts +0 -3
- package/lib/typescript/module/components/accordion/_chevron/Chevron.d.ts.map +0 -1
- package/lib/typescript/module/components/accordion/_chevron/ChevronProps.d.ts +0 -8
- package/lib/typescript/module/components/accordion/_chevron/ChevronProps.d.ts.map +0 -1
- package/lib/typescript/module/components/accordion/_chevron/index.d.ts +0 -3
- package/lib/typescript/module/components/accordion/_chevron/index.d.ts.map +0 -1
- package/lib/typescript/module/components/checkbox/_RefBase.d.ts +0 -9
- package/lib/typescript/module/components/checkbox/_RefBase.d.ts.map +0 -1
- package/lib/typescript/module/components/checkbox-input/_RefBase.d.ts.map +0 -1
- package/lib/typescript/module/components/collapsible/_RefBase.d.ts +0 -7
- package/lib/typescript/module/components/collapsible/_RefBase.d.ts.map +0 -1
- package/lib/typescript/module/components/radio-button/_RefBase.d.ts +0 -9
- package/lib/typescript/module/components/radio-button/_RefBase.d.ts.map +0 -1
- package/lib/typescript/module/components/radio-button-input/_RefBase.d.ts +0 -8
- package/lib/typescript/module/components/radio-button-input/_RefBase.d.ts.map +0 -1
- package/lib/typescript/module/components/switch/_RefBase.d.ts +0 -8
- package/lib/typescript/module/components/switch/_RefBase.d.ts.map +0 -1
- package/lib/typescript/module/components/toggle/base/_RefBase.d.ts +0 -9
- package/lib/typescript/module/components/toggle/base/_RefBase.d.ts.map +0 -1
- package/src/components/accordion/_ItemRefBase.ts +0 -7
- package/src/components/accordion/_chevron/ChevronProps.ts +0 -10
- package/src/components/accordion/_chevron/index.ts +0 -2
- package/src/components/checkbox/_RefBase.ts +0 -11
- package/src/components/collapsible/_RefBase.ts +0 -6
- package/src/components/radio-button/_RefBase.ts +0 -11
- package/src/components/radio-button-input/_RefBase.ts +0 -7
- package/src/components/switch/_RefBase.ts +0 -7
- package/src/components/toggle/base/_RefBase.ts +0 -11
|
@@ -3,8 +3,8 @@ import type {
|
|
|
3
3
|
} from "react-native"
|
|
4
4
|
|
|
5
5
|
import type {
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
CheckboxRefBase,
|
|
7
|
+
} from "./CheckboxRefBase"
|
|
8
8
|
|
|
9
|
-
export interface CheckboxRef extends View,
|
|
9
|
+
export interface CheckboxRef extends View, CheckboxRefBase {
|
|
10
10
|
}
|
|
@@ -42,12 +42,12 @@ import type {
|
|
|
42
42
|
} from "./CheckboxInputRef"
|
|
43
43
|
|
|
44
44
|
import type {
|
|
45
|
-
|
|
46
|
-
} from "./
|
|
45
|
+
CheckboxInputRefBase,
|
|
46
|
+
} from "./CheckboxInputRefBase"
|
|
47
47
|
|
|
48
48
|
import type {
|
|
49
|
-
|
|
50
|
-
} from "./
|
|
49
|
+
CheckboxInputState,
|
|
50
|
+
} from "./CheckboxInputState"
|
|
51
51
|
|
|
52
52
|
export const CheckboxInput = forwardRef<CheckboxInputRef, CheckboxInputProps>(
|
|
53
53
|
function CheckboxInput(
|
|
@@ -152,8 +152,8 @@ export const CheckboxInput = forwardRef<CheckboxInputRef, CheckboxInputProps>(
|
|
|
152
152
|
])
|
|
153
153
|
|
|
154
154
|
useImperativeHandle(forwardedRef, () => {
|
|
155
|
-
return Object.assign<View,
|
|
156
|
-
viewRef.current as View,
|
|
155
|
+
return Object.assign<View, CheckboxInputRefBase>(
|
|
156
|
+
viewRef.current ?? {} as View,
|
|
157
157
|
{
|
|
158
158
|
get checked() {
|
|
159
159
|
return checked
|
|
@@ -230,7 +230,7 @@ export const CheckboxInput = forwardRef<CheckboxInputRef, CheckboxInputProps>(
|
|
|
230
230
|
|
|
231
231
|
const
|
|
232
232
|
size =
|
|
233
|
-
|
|
233
|
+
16,
|
|
234
234
|
|
|
235
235
|
iconSize =
|
|
236
236
|
size - 4,
|
|
@@ -3,9 +3,8 @@ import type {
|
|
|
3
3
|
} from "react-native"
|
|
4
4
|
|
|
5
5
|
import type {
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
CheckboxInputRefBase,
|
|
7
|
+
} from "./CheckboxInputRefBase"
|
|
8
8
|
|
|
9
|
-
export interface CheckboxInputRef extends View,
|
|
9
|
+
export interface CheckboxInputRef extends View, CheckboxInputRefBase {
|
|
10
10
|
}
|
|
11
|
-
|
|
@@ -2,10 +2,13 @@ import type {
|
|
|
2
2
|
CheckboxInputState,
|
|
3
3
|
} from "./CheckboxInputState"
|
|
4
4
|
|
|
5
|
-
export interface
|
|
5
|
+
export interface CheckboxInputRefBase {
|
|
6
|
+
/**
|
|
7
|
+
* The current checked value.
|
|
8
|
+
*/
|
|
6
9
|
readonly checked: CheckboxInputState,
|
|
7
10
|
/**
|
|
8
|
-
* This method does nothing
|
|
11
|
+
* This method does nothing if `checked` component prop is defined
|
|
9
12
|
*/
|
|
10
13
|
setChecked: (value: CheckboxInputState | ((value: CheckboxInputState) => CheckboxInputState)) => void,
|
|
11
14
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from "./CheckboxInput"
|
|
2
|
-
export * from "./CheckboxInputInteractiveState"
|
|
3
|
-
export * from "./CheckboxInputProps"
|
|
4
|
-
export * from "./CheckboxInputRef"
|
|
5
|
-
export * from "./
|
|
2
|
+
export type * from "./CheckboxInputInteractiveState"
|
|
3
|
+
export type * from "./CheckboxInputProps"
|
|
4
|
+
export type * from "./CheckboxInputRef"
|
|
5
|
+
export type * from "./CheckboxInputRefBase"
|
|
6
|
+
export type * from "./CheckboxInputState"
|
|
@@ -30,14 +30,13 @@ import type {
|
|
|
30
30
|
} from "./CollapsibleRef"
|
|
31
31
|
|
|
32
32
|
import type {
|
|
33
|
-
|
|
34
|
-
} from "./
|
|
33
|
+
CollapsibleRefBase,
|
|
34
|
+
} from "./CollapsibleRefBase"
|
|
35
35
|
|
|
36
36
|
export const Collapsible = forwardRef<CollapsibleRef, CollapsibleProps>(
|
|
37
37
|
function(
|
|
38
38
|
{
|
|
39
|
-
|
|
40
|
-
open: openProp,
|
|
39
|
+
open,
|
|
41
40
|
motion = {
|
|
42
41
|
toOpen: {
|
|
43
42
|
duration: Motion.Duration.fast_02,
|
|
@@ -60,7 +59,7 @@ export const Collapsible = forwardRef<CollapsibleRef, CollapsibleProps>(
|
|
|
60
59
|
},
|
|
61
60
|
children,
|
|
62
61
|
style,
|
|
63
|
-
|
|
62
|
+
contentContainerProps,
|
|
64
63
|
onToggle,
|
|
65
64
|
onOpened,
|
|
66
65
|
onClosed,
|
|
@@ -80,17 +79,11 @@ export const Collapsible = forwardRef<CollapsibleRef, CollapsibleProps>(
|
|
|
80
79
|
*/
|
|
81
80
|
positionView: "absolute" | "relative",
|
|
82
81
|
contentHeight: number,
|
|
83
|
-
openSelf: boolean,
|
|
84
82
|
}>({
|
|
85
|
-
positionView:
|
|
83
|
+
positionView: open ? "relative" : "absolute",
|
|
86
84
|
contentHeight: 0,
|
|
87
|
-
openSelf: !!defaultOpen,
|
|
88
85
|
}),
|
|
89
86
|
|
|
90
|
-
[openSelf, setOpenSelf] =
|
|
91
|
-
useState(!!defaultOpen)
|
|
92
|
-
|
|
93
|
-
const
|
|
94
87
|
/**
|
|
95
88
|
* Absolute position is required to keep content being rendered as it is when the container is not open (zero height)
|
|
96
89
|
*
|
|
@@ -100,9 +93,7 @@ export const Collapsible = forwardRef<CollapsibleRef, CollapsibleProps>(
|
|
|
100
93
|
*/
|
|
101
94
|
[positionView, setPositionView] =
|
|
102
95
|
useState<"absolute" | "relative">(
|
|
103
|
-
|
|
104
|
-
// same like ref.current.positionView
|
|
105
|
-
// can't use it directly because the eslint-plugin-react-hooks
|
|
96
|
+
ref.current.positionView,
|
|
106
97
|
),
|
|
107
98
|
|
|
108
99
|
heightAnimated =
|
|
@@ -115,12 +106,6 @@ export const Collapsible = forwardRef<CollapsibleRef, CollapsibleProps>(
|
|
|
115
106
|
contentContainerAnimated =
|
|
116
107
|
useRef(new Animated.Value(0)),
|
|
117
108
|
|
|
118
|
-
controlled =
|
|
119
|
-
typeof openProp === "boolean",
|
|
120
|
-
|
|
121
|
-
open =
|
|
122
|
-
controlled ? !!openProp : openSelf,
|
|
123
|
-
|
|
124
109
|
setPositionViewToAbsolute =
|
|
125
110
|
useCallback(() => {
|
|
126
111
|
if(ref.current.positionView === "relative") {
|
|
@@ -161,7 +146,11 @@ export const Collapsible = forwardRef<CollapsibleRef, CollapsibleProps>(
|
|
|
161
146
|
duration: motion.toOpen.duration,
|
|
162
147
|
easing: motion.toOpen.easing as EasingFunction,
|
|
163
148
|
},
|
|
164
|
-
).start(
|
|
149
|
+
).start(({ finished }) => {
|
|
150
|
+
if(finished && onOpened) {
|
|
151
|
+
onOpened()
|
|
152
|
+
}
|
|
153
|
+
})
|
|
165
154
|
Animated.timing(
|
|
166
155
|
contentContainerAnimated.current,
|
|
167
156
|
{
|
|
@@ -180,7 +169,11 @@ export const Collapsible = forwardRef<CollapsibleRef, CollapsibleProps>(
|
|
|
180
169
|
easing: motion.toClose.easing as EasingFunction,
|
|
181
170
|
useNativeDriver: false,
|
|
182
171
|
},
|
|
183
|
-
).start(
|
|
172
|
+
).start(({ finished }) => {
|
|
173
|
+
if(finished && onClosed) {
|
|
174
|
+
onClosed()
|
|
175
|
+
}
|
|
176
|
+
})
|
|
184
177
|
Animated.timing(
|
|
185
178
|
contentContainerAnimated.current,
|
|
186
179
|
{
|
|
@@ -191,7 +184,7 @@ export const Collapsible = forwardRef<CollapsibleRef, CollapsibleProps>(
|
|
|
191
184
|
},
|
|
192
185
|
).start()
|
|
193
186
|
}
|
|
194
|
-
onToggle?.(open)
|
|
187
|
+
onToggle?.(!!open)
|
|
195
188
|
}
|
|
196
189
|
}, [
|
|
197
190
|
open,
|
|
@@ -204,29 +197,21 @@ export const Collapsible = forwardRef<CollapsibleRef, CollapsibleProps>(
|
|
|
204
197
|
])
|
|
205
198
|
|
|
206
199
|
useImperativeHandle(forwardedRef, () => {
|
|
207
|
-
return Object.assign<View,
|
|
200
|
+
return Object.assign<View, CollapsibleRefBase>(
|
|
208
201
|
viewRef.current as View,
|
|
209
202
|
{
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
if(typeof value === "boolean") {
|
|
213
|
-
ref.current.openSelf = value
|
|
214
|
-
} else {
|
|
215
|
-
ref.current.openSelf = value(ref.current.openSelf)
|
|
216
|
-
}
|
|
217
|
-
setOpenSelf(ref.current.openSelf)
|
|
218
|
-
}
|
|
203
|
+
get open() {
|
|
204
|
+
return !!open
|
|
219
205
|
},
|
|
220
206
|
},
|
|
221
207
|
)
|
|
222
208
|
}, [
|
|
223
|
-
|
|
209
|
+
open,
|
|
224
210
|
])
|
|
225
211
|
|
|
226
212
|
return (
|
|
227
213
|
<Animated.View
|
|
228
214
|
{ ...props }
|
|
229
|
-
/* eslint-disable react-hooks/refs */
|
|
230
215
|
style={ [
|
|
231
216
|
CarbonStyleSheet.g.overflow_hidden,
|
|
232
217
|
positionView === "absolute"
|
|
@@ -236,7 +221,6 @@ export const Collapsible = forwardRef<CollapsibleRef, CollapsibleProps>(
|
|
|
236
221
|
: null,
|
|
237
222
|
style,
|
|
238
223
|
] }
|
|
239
|
-
/* eslint-enable react-hooks/refs */
|
|
240
224
|
ref={ viewRef }
|
|
241
225
|
>
|
|
242
226
|
<View
|
|
@@ -248,7 +232,7 @@ export const Collapsible = forwardRef<CollapsibleRef, CollapsibleProps>(
|
|
|
248
232
|
] }
|
|
249
233
|
>
|
|
250
234
|
<Animated.View
|
|
251
|
-
|
|
235
|
+
{ ...contentContainerProps }
|
|
252
236
|
style={ [
|
|
253
237
|
CarbonStyleSheet.g.flex_initial,
|
|
254
238
|
{
|
|
@@ -263,9 +247,8 @@ export const Collapsible = forwardRef<CollapsibleRef, CollapsibleProps>(
|
|
|
263
247
|
}),
|
|
264
248
|
}],
|
|
265
249
|
},
|
|
266
|
-
|
|
250
|
+
contentContainerProps?.style,
|
|
267
251
|
] }
|
|
268
|
-
/* eslint-enable react-hooks/refs */
|
|
269
252
|
onLayout={ onLayoutContent }
|
|
270
253
|
>
|
|
271
254
|
{ children }
|
|
@@ -4,13 +4,12 @@ import type {
|
|
|
4
4
|
} from "react-native"
|
|
5
5
|
|
|
6
6
|
export interface CollapsibleProps extends ViewProps {
|
|
7
|
-
defaultOpen?: boolean,
|
|
8
7
|
open?: boolean,
|
|
9
8
|
motion?: Record<"toOpen" | "toClose", {
|
|
10
9
|
duration: number,
|
|
11
10
|
easing?: EasingFunction,
|
|
12
11
|
}>,
|
|
13
|
-
|
|
12
|
+
contentContainerProps?: Omit<ViewProps, "children">,
|
|
14
13
|
onToggle?: (value: boolean) => void,
|
|
15
14
|
onOpened?: () => void,
|
|
16
15
|
onClosed?: () => void,
|
|
@@ -3,9 +3,9 @@ import type {
|
|
|
3
3
|
} from "react-native"
|
|
4
4
|
|
|
5
5
|
import type {
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
CollapsibleRefBase,
|
|
7
|
+
} from "./CollapsibleRefBase"
|
|
8
8
|
|
|
9
|
-
export interface CollapsibleRef extends View,
|
|
9
|
+
export interface CollapsibleRef extends View, CollapsibleRefBase {
|
|
10
10
|
}
|
|
11
11
|
|
package/src/components/index.ts
CHANGED
|
@@ -36,6 +36,7 @@ export * from "./table"
|
|
|
36
36
|
export * from "./table-batch-action-bar"
|
|
37
37
|
export * from "./table-batch-action-bar-button"
|
|
38
38
|
export * from "./table-cell"
|
|
39
|
+
export * from "./table-cell-checkbox"
|
|
39
40
|
export * from "./table-cell-header"
|
|
40
41
|
export * from "./table-cell-icon"
|
|
41
42
|
export * from "./table-cell-text"
|
|
@@ -44,6 +45,7 @@ export * from "./table-toolbar"
|
|
|
44
45
|
export * from "./table-toolbar-button"
|
|
45
46
|
export * from "./table-toolbar-switcher"
|
|
46
47
|
export * from "./table-row"
|
|
48
|
+
export * from "./table-row-collapsible"
|
|
47
49
|
export * from "./table-row-header"
|
|
48
50
|
export * from "./text"
|
|
49
51
|
export * from "./text-area"
|
|
@@ -51,8 +51,8 @@ import type {
|
|
|
51
51
|
} from "./RadioButtonRef"
|
|
52
52
|
|
|
53
53
|
import type {
|
|
54
|
-
|
|
55
|
-
} from "./
|
|
54
|
+
RadioButtonRefBase,
|
|
55
|
+
} from "./RadioButtonRefBase"
|
|
56
56
|
|
|
57
57
|
export const RadioButton = forwardRef<RadioButtonRef, RadioButtonProps>(
|
|
58
58
|
function RadioButton(
|
|
@@ -97,12 +97,12 @@ export const RadioButton = forwardRef<RadioButtonRef, RadioButtonProps>(
|
|
|
97
97
|
])
|
|
98
98
|
|
|
99
99
|
useImperativeHandle(forwardedRef, () => {
|
|
100
|
-
return Object.assign<View,
|
|
100
|
+
return Object.assign<View, RadioButtonRefBase>(
|
|
101
101
|
(viewRef.current ?? {
|
|
102
102
|
}) as View,
|
|
103
103
|
{
|
|
104
104
|
get checked() {
|
|
105
|
-
return radioButtonInputRef.current
|
|
105
|
+
return !!radioButtonInputRef.current?.checked
|
|
106
106
|
},
|
|
107
107
|
setChecked(checked_) {
|
|
108
108
|
radioButtonInputRef.current?.setChecked(checked_)
|
|
@@ -3,8 +3,8 @@ import type {
|
|
|
3
3
|
} from "react-native"
|
|
4
4
|
|
|
5
5
|
import type {
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
RadioButtonRefBase,
|
|
7
|
+
} from "./RadioButtonRefBase"
|
|
8
8
|
|
|
9
|
-
export interface RadioButtonRef extends View,
|
|
9
|
+
export interface RadioButtonRef extends View, RadioButtonRefBase {
|
|
10
10
|
}
|
|
@@ -35,8 +35,8 @@ import type {
|
|
|
35
35
|
} from "./RadioButtonInputRef"
|
|
36
36
|
|
|
37
37
|
import type {
|
|
38
|
-
|
|
39
|
-
} from "./
|
|
38
|
+
RadioButtonInputRefBase,
|
|
39
|
+
} from "./RadioButtonInputRefBase"
|
|
40
40
|
|
|
41
41
|
export const RadioButtonInput = forwardRef<RadioButtonInputRef, RadioButtonInputProps>(
|
|
42
42
|
function RadioButtonInput(
|
|
@@ -125,7 +125,7 @@ export const RadioButtonInput = forwardRef<RadioButtonInputRef, RadioButtonInput
|
|
|
125
125
|
])
|
|
126
126
|
|
|
127
127
|
useImperativeHandle(forwardedRef, () => {
|
|
128
|
-
return Object.assign<View,
|
|
128
|
+
return Object.assign<View, RadioButtonInputRefBase>(
|
|
129
129
|
(viewRef.current ?? {
|
|
130
130
|
}) as View,
|
|
131
131
|
{
|
|
@@ -3,8 +3,8 @@ import type {
|
|
|
3
3
|
} from "react-native"
|
|
4
4
|
|
|
5
5
|
import type {
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
RadioButtonInputRefBase,
|
|
7
|
+
} from "./RadioButtonInputRefBase"
|
|
8
8
|
|
|
9
|
-
export interface RadioButtonInputRef extends View,
|
|
9
|
+
export interface RadioButtonInputRef extends View, RadioButtonInputRefBase {
|
|
10
10
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface RadioButtonInputRefBase {
|
|
2
|
+
/**
|
|
3
|
+
* The current checked value.
|
|
4
|
+
*/
|
|
5
|
+
readonly checked: boolean,
|
|
6
|
+
/**
|
|
7
|
+
* This method does nothing if `checked` component prop is defined
|
|
8
|
+
*/
|
|
9
|
+
setChecked: (checked: boolean | ((checked: boolean) => boolean)) => void,
|
|
10
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from "./RadioButtonInput"
|
|
2
|
-
export * from "./RadioButtonInputInteractiveState"
|
|
3
|
-
export * from "./RadioButtonInputProps"
|
|
4
|
-
export * from "./RadioButtonInputRef"
|
|
2
|
+
export type * from "./RadioButtonInputInteractiveState"
|
|
3
|
+
export type * from "./RadioButtonInputProps"
|
|
4
|
+
export type * from "./RadioButtonInputRef"
|
|
5
|
+
export type * from "./RadioButtonInputRefBase"
|
|
@@ -44,6 +44,10 @@ import type {
|
|
|
44
44
|
SwitchRef,
|
|
45
45
|
} from "./SwitchRef"
|
|
46
46
|
|
|
47
|
+
import type {
|
|
48
|
+
SwitchRefBase,
|
|
49
|
+
} from "./SwitchRefBase"
|
|
50
|
+
|
|
47
51
|
import type {
|
|
48
52
|
SwitchSize,
|
|
49
53
|
} from "./SwitchSize"
|
|
@@ -52,10 +56,6 @@ import type {
|
|
|
52
56
|
SwitchState,
|
|
53
57
|
} from "./SwitchState"
|
|
54
58
|
|
|
55
|
-
import type {
|
|
56
|
-
RefBase,
|
|
57
|
-
} from "./_RefBase"
|
|
58
|
-
|
|
59
59
|
export const Switch = forwardRef<SwitchRef, SwitchProps>(
|
|
60
60
|
function(
|
|
61
61
|
{
|
|
@@ -238,7 +238,7 @@ export const Switch = forwardRef<SwitchRef, SwitchProps>(
|
|
|
238
238
|
])
|
|
239
239
|
|
|
240
240
|
useImperativeHandle(forwardedRef, () => {
|
|
241
|
-
return Object.assign<View,
|
|
241
|
+
return Object.assign<View, SwitchRefBase>(
|
|
242
242
|
(viewRef.current ?? {
|
|
243
243
|
}) as View,
|
|
244
244
|
{
|
|
@@ -249,10 +249,11 @@ export const Switch = forwardRef<SwitchRef, SwitchProps>(
|
|
|
249
249
|
if(!controlled) {
|
|
250
250
|
ref.current.onChangeEffect = true
|
|
251
251
|
if(typeof valueParam === "boolean") {
|
|
252
|
-
|
|
252
|
+
ref.current.value = valueParam
|
|
253
253
|
} else {
|
|
254
|
-
|
|
254
|
+
ref.current.value = valueParam(ref.current.value)
|
|
255
255
|
}
|
|
256
|
+
setValueSelf(ref.current.value)
|
|
256
257
|
}
|
|
257
258
|
},
|
|
258
259
|
},
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from "./Switch"
|
|
2
|
-
export * from "./SwitchProps"
|
|
3
|
-
export * from "./SwitchRef"
|
|
4
|
-
export * from "./
|
|
5
|
-
export * from "./
|
|
2
|
+
export type * from "./SwitchProps"
|
|
3
|
+
export type * from "./SwitchRef"
|
|
4
|
+
export type * from "./SwitchRefBase"
|
|
5
|
+
export type * from "./SwitchSize"
|
|
6
|
+
export type * from "./SwitchState"
|
|
@@ -45,6 +45,7 @@ export const TableCell = forwardRef<TableCellRef, TableCellProps>(
|
|
|
45
45
|
text,
|
|
46
46
|
textProps,
|
|
47
47
|
width,
|
|
48
|
+
invisible,
|
|
48
49
|
role = "cell",
|
|
49
50
|
accessibilityLabel,
|
|
50
51
|
style,
|
|
@@ -66,6 +67,7 @@ export const TableCell = forwardRef<TableCellRef, TableCellProps>(
|
|
|
66
67
|
style={ [
|
|
67
68
|
CarbonStyleSheet.g.flex_auto,
|
|
68
69
|
CarbonStyleSheet.g.px_05,
|
|
70
|
+
invisible ? CarbonStyleSheet.g.invisible : undefined,
|
|
69
71
|
|
|
70
72
|
tableRowHeaderContext.inRowHeader
|
|
71
73
|
? tableRowHeaderContext.size == "extra_large"
|
|
@@ -75,6 +77,7 @@ export const TableCell = forwardRef<TableCellRef, TableCellProps>(
|
|
|
75
77
|
|
|
76
78
|
typeof width === "number" ? {
|
|
77
79
|
width,
|
|
80
|
+
minWidth: width,
|
|
78
81
|
} : undefined,
|
|
79
82
|
style,
|
|
80
83
|
] }
|
|
@@ -26,6 +26,11 @@ export interface TableCellProps extends ViewProps {
|
|
|
26
26
|
* `children` prop takes over precedence over this prop.
|
|
27
27
|
*/
|
|
28
28
|
text?: string,
|
|
29
|
+
/**
|
|
30
|
+
* You may need this to make the checkbox cell invisible,
|
|
31
|
+
* but consist its width
|
|
32
|
+
*/
|
|
33
|
+
invisible?: boolean,
|
|
29
34
|
/**
|
|
30
35
|
* Only applies if you use the `text` prop instead of `children`
|
|
31
36
|
*/
|