@audira/carbon-react-native 1.0.4 → 1.0.5
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/_internal/contexts/global-config/GlobalConfigContext.js +2 -1
- package/lib/commonjs/_internal/contexts/global-config/GlobalConfigContext.js.map +1 -1
- package/lib/commonjs/_internal/providers/global-config/GlobalConfigProvider.js +7 -4
- package/lib/commonjs/_internal/providers/global-config/GlobalConfigProvider.js.map +1 -1
- package/lib/commonjs/carbon-react-native/CarbonReactNative.js +8 -6
- package/lib/commonjs/carbon-react-native/CarbonReactNative.js.map +1 -1
- package/lib/commonjs/carbon-style-sheet/color.js +1 -1
- package/lib/commonjs/carbon-style-sheet/g/font.js +1 -1
- package/lib/commonjs/carbon-style-sheet/g/spacing.js +1 -1
- package/lib/commonjs/carbon-style-sheet/g/typography.js +1 -1
- package/lib/commonjs/carbon-style-sheet/g-object/font.js +1 -1
- package/lib/commonjs/carbon-style-sheet/g-object/spacing.js +1 -1
- package/lib/commonjs/carbon-style-sheet/g-object/typography.js +1 -1
- package/lib/commonjs/components/box/Box.js +6 -0
- package/lib/commonjs/components/box/Box.js.map +1 -1
- package/lib/commonjs/components/button/base/Base.js +5 -14
- package/lib/commonjs/components/button/base/Base.js.map +1 -1
- package/lib/commonjs/components/button/ghost/Ghost.js +0 -15
- package/lib/commonjs/components/button/ghost/Ghost.js.map +1 -1
- package/lib/commonjs/components/index.js +116 -42
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/components/scroll-view/ScrollView.js +35 -0
- package/lib/commonjs/components/scroll-view/ScrollView.js.map +1 -0
- package/lib/commonjs/components/scroll-view/ScrollViewProps.js +6 -0
- package/lib/commonjs/components/scroll-view/ScrollViewProps.js.map +1 -0
- package/lib/commonjs/components/scroll-view/index.js +17 -0
- package/lib/commonjs/components/scroll-view/index.js.map +1 -0
- package/lib/commonjs/components/table/Table.js +15 -10
- package/lib/commonjs/components/table/Table.js.map +1 -1
- package/lib/commonjs/components/table-batch-action-bar/TableBatchActionBar.js +81 -0
- package/lib/commonjs/components/table-batch-action-bar/TableBatchActionBar.js.map +1 -0
- package/lib/commonjs/components/table-batch-action-bar/TableBatchActionBarProps.js +6 -0
- package/lib/commonjs/components/table-batch-action-bar/TableBatchActionBarProps.js.map +1 -0
- package/lib/commonjs/components/table-batch-action-bar/TableBatchActionBarRef.js +6 -0
- package/lib/commonjs/components/table-batch-action-bar/TableBatchActionBarRef.js.map +1 -0
- package/lib/commonjs/components/table-batch-action-bar/TableBatchActionBarSize.js +2 -0
- package/lib/commonjs/components/table-batch-action-bar/TableBatchActionBarSize.js.map +1 -0
- package/lib/commonjs/components/table-batch-action-bar/_TableBatchActionBarContext.js +11 -0
- package/lib/commonjs/components/table-batch-action-bar/_TableBatchActionBarContext.js.map +1 -0
- package/lib/commonjs/components/table-batch-action-bar/index.js +17 -0
- package/lib/commonjs/components/table-batch-action-bar/index.js.map +1 -0
- package/lib/commonjs/components/table-batch-action-bar-button/TableBatchActionBarButton.js +38 -0
- package/lib/commonjs/components/table-batch-action-bar-button/TableBatchActionBarButton.js.map +1 -0
- package/lib/commonjs/components/table-batch-action-bar-button/TableBatchActionBarButtonProps.js +6 -0
- package/lib/commonjs/components/table-batch-action-bar-button/TableBatchActionBarButtonProps.js.map +1 -0
- package/lib/commonjs/components/table-batch-action-bar-button/TableBatchActionBarButtonRef.js +6 -0
- package/lib/commonjs/components/table-batch-action-bar-button/TableBatchActionBarButtonRef.js.map +1 -0
- package/lib/commonjs/components/table-batch-action-bar-button/index.js +17 -0
- package/lib/commonjs/components/table-batch-action-bar-button/index.js.map +1 -0
- package/lib/commonjs/components/table-cell-header/_sort-icon/SortIcon.js +3 -3
- package/lib/commonjs/components/table-cell-header/_sort-icon/SortIcon.js.map +1 -1
- package/lib/commonjs/components/table-header/TableHeader.js +53 -0
- package/lib/commonjs/components/table-header/TableHeader.js.map +1 -0
- package/lib/commonjs/components/table-header/TableHeaderProps.js +6 -0
- package/lib/commonjs/components/table-header/TableHeaderProps.js.map +1 -0
- package/lib/commonjs/components/table-header/TableHeaderRef.js +6 -0
- package/lib/commonjs/components/table-header/TableHeaderRef.js.map +1 -0
- package/lib/commonjs/components/table-header/index.js +17 -0
- package/lib/commonjs/components/table-header/index.js.map +1 -0
- package/lib/commonjs/components/table-toolbar/TableToolbar.js +84 -0
- package/lib/commonjs/components/table-toolbar/TableToolbar.js.map +1 -0
- package/lib/commonjs/components/table-toolbar/TableToolbarProps.js +6 -0
- package/lib/commonjs/components/table-toolbar/TableToolbarProps.js.map +1 -0
- package/lib/commonjs/components/table-toolbar/TableToolbarRef.js +6 -0
- package/lib/commonjs/components/table-toolbar/TableToolbarRef.js.map +1 -0
- package/lib/commonjs/components/table-toolbar/TableToolbarSize.js +2 -0
- package/lib/commonjs/components/table-toolbar/TableToolbarSize.js.map +1 -0
- package/lib/commonjs/components/table-toolbar/_TableToolbarContext.js +11 -0
- package/lib/commonjs/components/table-toolbar/_TableToolbarContext.js.map +1 -0
- package/lib/commonjs/components/table-toolbar/index.js +17 -0
- package/lib/commonjs/components/table-toolbar/index.js.map +1 -0
- package/lib/commonjs/components/table-toolbar-button/_useSize.js +17 -0
- package/lib/commonjs/components/table-toolbar-button/_useSize.js.map +1 -0
- package/lib/commonjs/components/table-toolbar-button/ghost/Ghost.js +22 -0
- package/lib/commonjs/components/table-toolbar-button/ghost/Ghost.js.map +1 -0
- package/lib/commonjs/components/table-toolbar-button/ghost/GhostProps.js +6 -0
- package/lib/commonjs/components/table-toolbar-button/ghost/GhostProps.js.map +1 -0
- package/lib/commonjs/components/table-toolbar-button/ghost/GhostRef.js +6 -0
- package/lib/commonjs/components/table-toolbar-button/ghost/GhostRef.js.map +1 -0
- package/lib/commonjs/components/table-toolbar-button/ghost/index.js +17 -0
- package/lib/commonjs/components/table-toolbar-button/ghost/index.js.map +1 -0
- package/lib/commonjs/components/table-toolbar-button/ghost-icon/GhostIcon.js +22 -0
- package/lib/commonjs/components/table-toolbar-button/ghost-icon/GhostIcon.js.map +1 -0
- package/lib/commonjs/components/table-toolbar-button/ghost-icon/GhostIconProps.js +6 -0
- package/lib/commonjs/components/table-toolbar-button/ghost-icon/GhostIconProps.js.map +1 -0
- package/lib/commonjs/components/table-toolbar-button/ghost-icon/GhostIconRef.js +6 -0
- package/lib/commonjs/components/table-toolbar-button/ghost-icon/GhostIconRef.js.map +1 -0
- package/lib/commonjs/components/table-toolbar-button/ghost-icon/index.js +17 -0
- package/lib/commonjs/components/table-toolbar-button/ghost-icon/index.js.map +1 -0
- package/lib/commonjs/components/table-toolbar-button/index.js +39 -0
- package/lib/commonjs/components/table-toolbar-button/index.js.map +1 -0
- package/lib/commonjs/components/table-toolbar-button/primary/Primary.js +22 -0
- package/lib/commonjs/components/table-toolbar-button/primary/Primary.js.map +1 -0
- package/lib/commonjs/components/table-toolbar-button/primary/PrimaryProps.js +6 -0
- package/lib/commonjs/components/table-toolbar-button/primary/PrimaryProps.js.map +1 -0
- package/lib/commonjs/components/table-toolbar-button/primary/PrimaryRef.js +6 -0
- package/lib/commonjs/components/table-toolbar-button/primary/PrimaryRef.js.map +1 -0
- package/lib/commonjs/components/table-toolbar-button/primary/index.js +17 -0
- package/lib/commonjs/components/table-toolbar-button/primary/index.js.map +1 -0
- package/lib/commonjs/components/table-toolbar-switcher/TableToolbarSwitcher.js +60 -0
- package/lib/commonjs/components/table-toolbar-switcher/TableToolbarSwitcher.js.map +1 -0
- package/lib/commonjs/components/table-toolbar-switcher/TableToolbarSwitcherProps.js +6 -0
- package/lib/commonjs/components/table-toolbar-switcher/TableToolbarSwitcherProps.js.map +1 -0
- package/lib/commonjs/components/table-toolbar-switcher/TableToolbarSwitcherRef.js +6 -0
- package/lib/commonjs/components/table-toolbar-switcher/TableToolbarSwitcherRef.js.map +1 -0
- package/lib/commonjs/components/table-toolbar-switcher/TableToolbarSwitcherRefBase.js +2 -0
- package/lib/commonjs/components/table-toolbar-switcher/TableToolbarSwitcherRefBase.js.map +1 -0
- package/lib/commonjs/components/table-toolbar-switcher/_AnimatedContentProps.js +2 -0
- package/lib/commonjs/components/table-toolbar-switcher/_AnimatedContentProps.js.map +1 -0
- package/lib/commonjs/components/table-toolbar-switcher/_animated-next-content/AnimatedNextContent.js +23 -0
- package/lib/commonjs/components/table-toolbar-switcher/_animated-next-content/AnimatedNextContent.js.map +1 -0
- package/lib/commonjs/components/table-toolbar-switcher/_animated-next-content/AnimatedNextContentProps.js +6 -0
- package/lib/commonjs/components/table-toolbar-switcher/_animated-next-content/AnimatedNextContentProps.js.map +1 -0
- package/lib/commonjs/components/table-toolbar-switcher/_animated-next-content/index.js +17 -0
- package/lib/commonjs/components/table-toolbar-switcher/_animated-next-content/index.js.map +1 -0
- package/lib/commonjs/components/table-toolbar-switcher/_animated-toolbar/AnimatedToolbar.js +29 -0
- package/lib/commonjs/components/table-toolbar-switcher/_animated-toolbar/AnimatedToolbar.js.map +1 -0
- package/lib/commonjs/components/table-toolbar-switcher/_animated-toolbar/AnimatedToolbarProps.js +6 -0
- package/lib/commonjs/components/table-toolbar-switcher/_animated-toolbar/AnimatedToolbarProps.js.map +1 -0
- package/lib/commonjs/components/table-toolbar-switcher/_animated-toolbar/AnimatedToolbarRef.js +6 -0
- package/lib/commonjs/components/table-toolbar-switcher/_animated-toolbar/AnimatedToolbarRef.js.map +1 -0
- package/lib/commonjs/components/table-toolbar-switcher/_animated-toolbar/index.js +17 -0
- package/lib/commonjs/components/table-toolbar-switcher/_animated-toolbar/index.js.map +1 -0
- package/lib/commonjs/components/table-toolbar-switcher/_useAnimatedContent.js +86 -0
- package/lib/commonjs/components/table-toolbar-switcher/_useAnimatedContent.js.map +1 -0
- package/lib/commonjs/components/table-toolbar-switcher/index.js +17 -0
- package/lib/commonjs/components/table-toolbar-switcher/index.js.map +1 -0
- package/lib/module/_internal/contexts/global-config/GlobalConfigContext.js +2 -1
- package/lib/module/_internal/contexts/global-config/GlobalConfigContext.js.map +1 -1
- package/lib/module/_internal/providers/global-config/GlobalConfigProvider.js +7 -4
- package/lib/module/_internal/providers/global-config/GlobalConfigProvider.js.map +1 -1
- package/lib/module/carbon-react-native/CarbonReactNative.js +8 -6
- package/lib/module/carbon-react-native/CarbonReactNative.js.map +1 -1
- package/lib/module/carbon-style-sheet/color.js +1 -1
- package/lib/module/carbon-style-sheet/g/font.js +1 -1
- package/lib/module/carbon-style-sheet/g/spacing.js +1 -1
- package/lib/module/carbon-style-sheet/g/typography.js +1 -1
- package/lib/module/carbon-style-sheet/g-object/font.js +1 -1
- package/lib/module/carbon-style-sheet/g-object/spacing.js +1 -1
- package/lib/module/carbon-style-sheet/g-object/typography.js +1 -1
- package/lib/module/components/box/Box.js +6 -0
- package/lib/module/components/box/Box.js.map +1 -1
- package/lib/module/components/button/base/Base.js +5 -14
- package/lib/module/components/button/base/Base.js.map +1 -1
- package/lib/module/components/button/ghost/Ghost.js +1 -16
- package/lib/module/components/button/ghost/Ghost.js.map +1 -1
- package/lib/module/components/index.js +8 -1
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/components/scroll-view/ScrollView.js +30 -0
- package/lib/module/components/scroll-view/ScrollView.js.map +1 -0
- package/lib/module/components/scroll-view/ScrollViewProps.js +4 -0
- package/lib/module/components/scroll-view/ScrollViewProps.js.map +1 -0
- package/lib/module/components/scroll-view/index.js +4 -0
- package/lib/module/components/scroll-view/index.js.map +1 -0
- package/lib/module/components/table/Table.js +15 -10
- package/lib/module/components/table/Table.js.map +1 -1
- package/lib/module/components/table-batch-action-bar/TableBatchActionBar.js +76 -0
- package/lib/module/components/table-batch-action-bar/TableBatchActionBar.js.map +1 -0
- package/lib/module/components/table-batch-action-bar/TableBatchActionBarProps.js +4 -0
- package/lib/module/components/table-batch-action-bar/TableBatchActionBarProps.js.map +1 -0
- package/lib/module/components/table-batch-action-bar/TableBatchActionBarRef.js +4 -0
- package/lib/module/components/table-batch-action-bar/TableBatchActionBarRef.js.map +1 -0
- package/lib/module/components/table-batch-action-bar/TableBatchActionBarSize.js +2 -0
- package/lib/module/components/table-batch-action-bar/TableBatchActionBarSize.js.map +1 -0
- package/lib/module/components/table-batch-action-bar/_TableBatchActionBarContext.js +7 -0
- package/lib/module/components/table-batch-action-bar/_TableBatchActionBarContext.js.map +1 -0
- package/lib/module/components/table-batch-action-bar/index.js +4 -0
- package/lib/module/components/table-batch-action-bar/index.js.map +1 -0
- package/lib/module/components/table-batch-action-bar-button/TableBatchActionBarButton.js +33 -0
- package/lib/module/components/table-batch-action-bar-button/TableBatchActionBarButton.js.map +1 -0
- package/lib/module/components/table-batch-action-bar-button/TableBatchActionBarButtonProps.js +4 -0
- package/lib/module/components/table-batch-action-bar-button/TableBatchActionBarButtonProps.js.map +1 -0
- package/lib/module/components/table-batch-action-bar-button/TableBatchActionBarButtonRef.js +4 -0
- package/lib/module/components/table-batch-action-bar-button/TableBatchActionBarButtonRef.js.map +1 -0
- package/lib/module/components/table-batch-action-bar-button/index.js +4 -0
- package/lib/module/components/table-batch-action-bar-button/index.js.map +1 -0
- package/lib/module/components/table-cell-header/_sort-icon/SortIcon.js +4 -4
- package/lib/module/components/table-cell-header/_sort-icon/SortIcon.js.map +1 -1
- package/lib/module/components/table-header/TableHeader.js +48 -0
- package/lib/module/components/table-header/TableHeader.js.map +1 -0
- package/lib/module/components/table-header/TableHeaderProps.js +4 -0
- package/lib/module/components/table-header/TableHeaderProps.js.map +1 -0
- package/lib/module/components/table-header/TableHeaderRef.js +4 -0
- package/lib/module/components/table-header/TableHeaderRef.js.map +1 -0
- package/lib/module/components/table-header/index.js +4 -0
- package/lib/module/components/table-header/index.js.map +1 -0
- package/lib/module/components/table-toolbar/TableToolbar.js +79 -0
- package/lib/module/components/table-toolbar/TableToolbar.js.map +1 -0
- package/lib/module/components/table-toolbar/TableToolbarProps.js +4 -0
- package/lib/module/components/table-toolbar/TableToolbarProps.js.map +1 -0
- package/lib/module/components/table-toolbar/TableToolbarRef.js +4 -0
- package/lib/module/components/table-toolbar/TableToolbarRef.js.map +1 -0
- package/lib/module/components/table-toolbar/TableToolbarSize.js +2 -0
- package/lib/module/components/table-toolbar/TableToolbarSize.js.map +1 -0
- package/lib/module/components/table-toolbar/_TableToolbarContext.js +7 -0
- package/lib/module/components/table-toolbar/_TableToolbarContext.js.map +1 -0
- package/lib/module/components/table-toolbar/index.js +4 -0
- package/lib/module/components/table-toolbar/index.js.map +1 -0
- package/lib/module/components/table-toolbar-button/_useSize.js +13 -0
- package/lib/module/components/table-toolbar-button/_useSize.js.map +1 -0
- package/lib/module/components/table-toolbar-button/ghost/Ghost.js +18 -0
- package/lib/module/components/table-toolbar-button/ghost/Ghost.js.map +1 -0
- package/lib/module/components/table-toolbar-button/ghost/GhostProps.js +4 -0
- package/lib/module/components/table-toolbar-button/ghost/GhostProps.js.map +1 -0
- package/lib/module/components/table-toolbar-button/ghost/GhostRef.js +4 -0
- package/lib/module/components/table-toolbar-button/ghost/GhostRef.js.map +1 -0
- package/lib/module/components/table-toolbar-button/ghost/index.js +4 -0
- package/lib/module/components/table-toolbar-button/ghost/index.js.map +1 -0
- package/lib/module/components/table-toolbar-button/ghost-icon/GhostIcon.js +18 -0
- package/lib/module/components/table-toolbar-button/ghost-icon/GhostIcon.js.map +1 -0
- package/lib/module/components/table-toolbar-button/ghost-icon/GhostIconProps.js +4 -0
- package/lib/module/components/table-toolbar-button/ghost-icon/GhostIconProps.js.map +1 -0
- package/lib/module/components/table-toolbar-button/ghost-icon/GhostIconRef.js +4 -0
- package/lib/module/components/table-toolbar-button/ghost-icon/GhostIconRef.js.map +1 -0
- package/lib/module/components/table-toolbar-button/ghost-icon/index.js +4 -0
- package/lib/module/components/table-toolbar-button/ghost-icon/index.js.map +1 -0
- package/lib/module/components/table-toolbar-button/index.js +6 -0
- package/lib/module/components/table-toolbar-button/index.js.map +1 -0
- package/lib/module/components/table-toolbar-button/primary/Primary.js +18 -0
- package/lib/module/components/table-toolbar-button/primary/Primary.js.map +1 -0
- package/lib/module/components/table-toolbar-button/primary/PrimaryProps.js +4 -0
- package/lib/module/components/table-toolbar-button/primary/PrimaryProps.js.map +1 -0
- package/lib/module/components/table-toolbar-button/primary/PrimaryRef.js +4 -0
- package/lib/module/components/table-toolbar-button/primary/PrimaryRef.js.map +1 -0
- package/lib/module/components/table-toolbar-button/primary/index.js +4 -0
- package/lib/module/components/table-toolbar-button/primary/index.js.map +1 -0
- package/lib/module/components/table-toolbar-switcher/TableToolbarSwitcher.js +56 -0
- package/lib/module/components/table-toolbar-switcher/TableToolbarSwitcher.js.map +1 -0
- package/lib/module/components/table-toolbar-switcher/TableToolbarSwitcherProps.js +4 -0
- package/lib/module/components/table-toolbar-switcher/TableToolbarSwitcherProps.js.map +1 -0
- package/lib/module/components/table-toolbar-switcher/TableToolbarSwitcherRef.js +4 -0
- package/lib/module/components/table-toolbar-switcher/TableToolbarSwitcherRef.js.map +1 -0
- package/lib/module/components/table-toolbar-switcher/TableToolbarSwitcherRefBase.js +2 -0
- package/lib/module/components/table-toolbar-switcher/TableToolbarSwitcherRefBase.js.map +1 -0
- package/lib/module/components/table-toolbar-switcher/_AnimatedContentProps.js +2 -0
- package/lib/module/components/table-toolbar-switcher/_AnimatedContentProps.js.map +1 -0
- package/lib/module/components/table-toolbar-switcher/_animated-next-content/AnimatedNextContent.js +19 -0
- package/lib/module/components/table-toolbar-switcher/_animated-next-content/AnimatedNextContent.js.map +1 -0
- package/lib/module/components/table-toolbar-switcher/_animated-next-content/AnimatedNextContentProps.js +4 -0
- package/lib/module/components/table-toolbar-switcher/_animated-next-content/AnimatedNextContentProps.js.map +1 -0
- package/lib/module/components/table-toolbar-switcher/_animated-next-content/index.js +4 -0
- package/lib/module/components/table-toolbar-switcher/_animated-next-content/index.js.map +1 -0
- package/lib/module/components/table-toolbar-switcher/_animated-toolbar/AnimatedToolbar.js +25 -0
- package/lib/module/components/table-toolbar-switcher/_animated-toolbar/AnimatedToolbar.js.map +1 -0
- package/lib/module/components/table-toolbar-switcher/_animated-toolbar/AnimatedToolbarProps.js +4 -0
- package/lib/module/components/table-toolbar-switcher/_animated-toolbar/AnimatedToolbarProps.js.map +1 -0
- package/lib/module/components/table-toolbar-switcher/_animated-toolbar/AnimatedToolbarRef.js +4 -0
- package/lib/module/components/table-toolbar-switcher/_animated-toolbar/AnimatedToolbarRef.js.map +1 -0
- package/lib/module/components/table-toolbar-switcher/_animated-toolbar/index.js +4 -0
- package/lib/module/components/table-toolbar-switcher/_animated-toolbar/index.js.map +1 -0
- package/lib/module/components/table-toolbar-switcher/_useAnimatedContent.js +81 -0
- package/lib/module/components/table-toolbar-switcher/_useAnimatedContent.js.map +1 -0
- package/lib/module/components/table-toolbar-switcher/index.js +4 -0
- package/lib/module/components/table-toolbar-switcher/index.js.map +1 -0
- package/lib/typescript/commonjs/_internal/contexts/global-config/GlobalConfigContext.d.ts.map +1 -1
- package/lib/typescript/commonjs/_internal/providers/global-config/GlobalConfigProvider.d.ts +1 -1
- package/lib/typescript/commonjs/_internal/providers/global-config/GlobalConfigProvider.d.ts.map +1 -1
- package/lib/typescript/commonjs/_internal/providers/global-config/GlobalConfigProviderProps.d.ts +1 -1
- package/lib/typescript/commonjs/_internal/providers/global-config/GlobalConfigProviderProps.d.ts.map +1 -1
- package/lib/typescript/commonjs/carbon-react-native/CarbonReactNative.d.ts.map +1 -1
- package/lib/typescript/commonjs/carbon-react-native/CarbonReactNativeProps.d.ts +1 -1
- package/lib/typescript/commonjs/carbon-react-native/CarbonReactNativeProps.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/box/Box.d.ts +6 -0
- package/lib/typescript/commonjs/components/box/Box.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/button/ghost/Ghost.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/index.d.ts +8 -1
- package/lib/typescript/commonjs/components/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/scroll-view/ScrollView.d.ts +9 -0
- package/lib/typescript/commonjs/components/scroll-view/ScrollView.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/scroll-view/ScrollViewProps.d.ts +4 -0
- package/lib/typescript/commonjs/components/scroll-view/ScrollViewProps.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/scroll-view/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/scroll-view/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table/Table.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/table/TableProps.d.ts +15 -0
- package/lib/typescript/commonjs/components/table/TableProps.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/table/TableRef.d.ts +2 -2
- package/lib/typescript/commonjs/components/table/TableRef.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/table-batch-action-bar/TableBatchActionBar.d.ts +4 -0
- package/lib/typescript/commonjs/components/table-batch-action-bar/TableBatchActionBar.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-batch-action-bar/TableBatchActionBarProps.d.ts +30 -0
- package/lib/typescript/commonjs/components/table-batch-action-bar/TableBatchActionBarProps.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-batch-action-bar/TableBatchActionBarRef.d.ts +4 -0
- package/lib/typescript/commonjs/components/table-batch-action-bar/TableBatchActionBarRef.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-batch-action-bar/TableBatchActionBarSize.d.ts +2 -0
- package/lib/typescript/commonjs/components/table-batch-action-bar/TableBatchActionBarSize.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-batch-action-bar/_TableBatchActionBarContext.d.ts +6 -0
- package/lib/typescript/commonjs/components/table-batch-action-bar/_TableBatchActionBarContext.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-batch-action-bar/index.d.ts +5 -0
- package/lib/typescript/commonjs/components/table-batch-action-bar/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-batch-action-bar-button/TableBatchActionBarButton.d.ts +4 -0
- package/lib/typescript/commonjs/components/table-batch-action-bar-button/TableBatchActionBarButton.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-batch-action-bar-button/TableBatchActionBarButtonProps.d.ts +4 -0
- package/lib/typescript/commonjs/components/table-batch-action-bar-button/TableBatchActionBarButtonProps.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-batch-action-bar-button/TableBatchActionBarButtonRef.d.ts +4 -0
- package/lib/typescript/commonjs/components/table-batch-action-bar-button/TableBatchActionBarButtonRef.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-batch-action-bar-button/index.d.ts +4 -0
- package/lib/typescript/commonjs/components/table-batch-action-bar-button/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-cell-header/_sort-icon/SortIcon.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/table-header/TableHeader.d.ts +4 -0
- package/lib/typescript/commonjs/components/table-header/TableHeader.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-header/TableHeaderProps.d.ts +9 -0
- package/lib/typescript/commonjs/components/table-header/TableHeaderProps.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-header/TableHeaderRef.d.ts +4 -0
- package/lib/typescript/commonjs/components/table-header/TableHeaderRef.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-header/index.d.ts +4 -0
- package/lib/typescript/commonjs/components/table-header/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-row/TableRowProps.d.ts +3 -0
- package/lib/typescript/commonjs/components/table-row/TableRowProps.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/table-toolbar/TableToolbar.d.ts +4 -0
- package/lib/typescript/commonjs/components/table-toolbar/TableToolbar.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-toolbar/TableToolbarProps.d.ts +22 -0
- package/lib/typescript/commonjs/components/table-toolbar/TableToolbarProps.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-toolbar/TableToolbarRef.d.ts +4 -0
- package/lib/typescript/commonjs/components/table-toolbar/TableToolbarRef.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-toolbar/TableToolbarSize.d.ts +2 -0
- package/lib/typescript/commonjs/components/table-toolbar/TableToolbarSize.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-toolbar/_TableToolbarContext.d.ts +6 -0
- package/lib/typescript/commonjs/components/table-toolbar/_TableToolbarContext.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-toolbar/index.d.ts +5 -0
- package/lib/typescript/commonjs/components/table-toolbar/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-toolbar-button/_useSize.d.ts +3 -0
- package/lib/typescript/commonjs/components/table-toolbar-button/_useSize.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-toolbar-button/ghost/Ghost.d.ts +4 -0
- package/lib/typescript/commonjs/components/table-toolbar-button/ghost/Ghost.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-toolbar-button/ghost/GhostProps.d.ts +4 -0
- package/lib/typescript/commonjs/components/table-toolbar-button/ghost/GhostProps.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-toolbar-button/ghost/GhostRef.d.ts +4 -0
- package/lib/typescript/commonjs/components/table-toolbar-button/ghost/GhostRef.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-toolbar-button/ghost/index.d.ts +4 -0
- package/lib/typescript/commonjs/components/table-toolbar-button/ghost/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-toolbar-button/ghost-icon/GhostIcon.d.ts +4 -0
- package/lib/typescript/commonjs/components/table-toolbar-button/ghost-icon/GhostIcon.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-toolbar-button/ghost-icon/GhostIconProps.d.ts +4 -0
- package/lib/typescript/commonjs/components/table-toolbar-button/ghost-icon/GhostIconProps.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-toolbar-button/ghost-icon/GhostIconRef.d.ts +4 -0
- package/lib/typescript/commonjs/components/table-toolbar-button/ghost-icon/GhostIconRef.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-toolbar-button/ghost-icon/index.d.ts +4 -0
- package/lib/typescript/commonjs/components/table-toolbar-button/ghost-icon/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-toolbar-button/index.d.ts +4 -0
- package/lib/typescript/commonjs/components/table-toolbar-button/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-toolbar-button/primary/Primary.d.ts +4 -0
- package/lib/typescript/commonjs/components/table-toolbar-button/primary/Primary.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-toolbar-button/primary/PrimaryProps.d.ts +4 -0
- package/lib/typescript/commonjs/components/table-toolbar-button/primary/PrimaryProps.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-toolbar-button/primary/PrimaryRef.d.ts +4 -0
- package/lib/typescript/commonjs/components/table-toolbar-button/primary/PrimaryRef.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-toolbar-button/primary/index.d.ts +4 -0
- package/lib/typescript/commonjs/components/table-toolbar-button/primary/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-toolbar-switcher/TableToolbarSwitcher.d.ts +10 -0
- package/lib/typescript/commonjs/components/table-toolbar-switcher/TableToolbarSwitcher.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-toolbar-switcher/TableToolbarSwitcherProps.d.ts +16 -0
- package/lib/typescript/commonjs/components/table-toolbar-switcher/TableToolbarSwitcherProps.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-toolbar-switcher/TableToolbarSwitcherRef.d.ts +5 -0
- package/lib/typescript/commonjs/components/table-toolbar-switcher/TableToolbarSwitcherRef.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-toolbar-switcher/TableToolbarSwitcherRefBase.d.ts +17 -0
- package/lib/typescript/commonjs/components/table-toolbar-switcher/TableToolbarSwitcherRefBase.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-toolbar-switcher/_AnimatedContentProps.d.ts +4 -0
- package/lib/typescript/commonjs/components/table-toolbar-switcher/_AnimatedContentProps.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-toolbar-switcher/_animated-next-content/AnimatedNextContent.d.ts +3 -0
- package/lib/typescript/commonjs/components/table-toolbar-switcher/_animated-next-content/AnimatedNextContent.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-toolbar-switcher/_animated-next-content/AnimatedNextContentProps.d.ts +5 -0
- package/lib/typescript/commonjs/components/table-toolbar-switcher/_animated-next-content/AnimatedNextContentProps.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-toolbar-switcher/_animated-next-content/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/table-toolbar-switcher/_animated-next-content/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-toolbar-switcher/_animated-toolbar/AnimatedToolbar.d.ts +4 -0
- package/lib/typescript/commonjs/components/table-toolbar-switcher/_animated-toolbar/AnimatedToolbar.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-toolbar-switcher/_animated-toolbar/AnimatedToolbarProps.d.ts +5 -0
- package/lib/typescript/commonjs/components/table-toolbar-switcher/_animated-toolbar/AnimatedToolbarProps.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-toolbar-switcher/_animated-toolbar/AnimatedToolbarRef.d.ts +4 -0
- package/lib/typescript/commonjs/components/table-toolbar-switcher/_animated-toolbar/AnimatedToolbarRef.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-toolbar-switcher/_animated-toolbar/index.d.ts +4 -0
- package/lib/typescript/commonjs/components/table-toolbar-switcher/_animated-toolbar/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-toolbar-switcher/_useAnimatedContent.d.ts +20 -0
- package/lib/typescript/commonjs/components/table-toolbar-switcher/_useAnimatedContent.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/table-toolbar-switcher/index.d.ts +5 -0
- package/lib/typescript/commonjs/components/table-toolbar-switcher/index.d.ts.map +1 -0
- package/lib/typescript/module/_internal/contexts/global-config/GlobalConfigContext.d.ts.map +1 -1
- package/lib/typescript/module/_internal/providers/global-config/GlobalConfigProvider.d.ts +1 -1
- package/lib/typescript/module/_internal/providers/global-config/GlobalConfigProvider.d.ts.map +1 -1
- package/lib/typescript/module/_internal/providers/global-config/GlobalConfigProviderProps.d.ts +1 -1
- package/lib/typescript/module/_internal/providers/global-config/GlobalConfigProviderProps.d.ts.map +1 -1
- package/lib/typescript/module/carbon-react-native/CarbonReactNative.d.ts.map +1 -1
- package/lib/typescript/module/carbon-react-native/CarbonReactNativeProps.d.ts +1 -1
- package/lib/typescript/module/carbon-react-native/CarbonReactNativeProps.d.ts.map +1 -1
- package/lib/typescript/module/components/box/Box.d.ts +6 -0
- package/lib/typescript/module/components/box/Box.d.ts.map +1 -1
- package/lib/typescript/module/components/button/ghost/Ghost.d.ts.map +1 -1
- package/lib/typescript/module/components/index.d.ts +8 -1
- package/lib/typescript/module/components/index.d.ts.map +1 -1
- package/lib/typescript/module/components/scroll-view/ScrollView.d.ts +9 -0
- package/lib/typescript/module/components/scroll-view/ScrollView.d.ts.map +1 -0
- package/lib/typescript/module/components/scroll-view/ScrollViewProps.d.ts +4 -0
- package/lib/typescript/module/components/scroll-view/ScrollViewProps.d.ts.map +1 -0
- package/lib/typescript/module/components/scroll-view/index.d.ts +3 -0
- package/lib/typescript/module/components/scroll-view/index.d.ts.map +1 -0
- package/lib/typescript/module/components/table/Table.d.ts.map +1 -1
- package/lib/typescript/module/components/table/TableProps.d.ts +15 -0
- package/lib/typescript/module/components/table/TableProps.d.ts.map +1 -1
- package/lib/typescript/module/components/table/TableRef.d.ts +2 -2
- package/lib/typescript/module/components/table/TableRef.d.ts.map +1 -1
- package/lib/typescript/module/components/table-batch-action-bar/TableBatchActionBar.d.ts +4 -0
- package/lib/typescript/module/components/table-batch-action-bar/TableBatchActionBar.d.ts.map +1 -0
- package/lib/typescript/module/components/table-batch-action-bar/TableBatchActionBarProps.d.ts +30 -0
- package/lib/typescript/module/components/table-batch-action-bar/TableBatchActionBarProps.d.ts.map +1 -0
- package/lib/typescript/module/components/table-batch-action-bar/TableBatchActionBarRef.d.ts +4 -0
- package/lib/typescript/module/components/table-batch-action-bar/TableBatchActionBarRef.d.ts.map +1 -0
- package/lib/typescript/module/components/table-batch-action-bar/TableBatchActionBarSize.d.ts +2 -0
- package/lib/typescript/module/components/table-batch-action-bar/TableBatchActionBarSize.d.ts.map +1 -0
- package/lib/typescript/module/components/table-batch-action-bar/_TableBatchActionBarContext.d.ts +6 -0
- package/lib/typescript/module/components/table-batch-action-bar/_TableBatchActionBarContext.d.ts.map +1 -0
- package/lib/typescript/module/components/table-batch-action-bar/index.d.ts +5 -0
- package/lib/typescript/module/components/table-batch-action-bar/index.d.ts.map +1 -0
- package/lib/typescript/module/components/table-batch-action-bar-button/TableBatchActionBarButton.d.ts +4 -0
- package/lib/typescript/module/components/table-batch-action-bar-button/TableBatchActionBarButton.d.ts.map +1 -0
- package/lib/typescript/module/components/table-batch-action-bar-button/TableBatchActionBarButtonProps.d.ts +4 -0
- package/lib/typescript/module/components/table-batch-action-bar-button/TableBatchActionBarButtonProps.d.ts.map +1 -0
- package/lib/typescript/module/components/table-batch-action-bar-button/TableBatchActionBarButtonRef.d.ts +4 -0
- package/lib/typescript/module/components/table-batch-action-bar-button/TableBatchActionBarButtonRef.d.ts.map +1 -0
- package/lib/typescript/module/components/table-batch-action-bar-button/index.d.ts +4 -0
- package/lib/typescript/module/components/table-batch-action-bar-button/index.d.ts.map +1 -0
- package/lib/typescript/module/components/table-cell-header/_sort-icon/SortIcon.d.ts.map +1 -1
- package/lib/typescript/module/components/table-header/TableHeader.d.ts +4 -0
- package/lib/typescript/module/components/table-header/TableHeader.d.ts.map +1 -0
- package/lib/typescript/module/components/table-header/TableHeaderProps.d.ts +9 -0
- package/lib/typescript/module/components/table-header/TableHeaderProps.d.ts.map +1 -0
- package/lib/typescript/module/components/table-header/TableHeaderRef.d.ts +4 -0
- package/lib/typescript/module/components/table-header/TableHeaderRef.d.ts.map +1 -0
- package/lib/typescript/module/components/table-header/index.d.ts +4 -0
- package/lib/typescript/module/components/table-header/index.d.ts.map +1 -0
- package/lib/typescript/module/components/table-row/TableRowProps.d.ts +3 -0
- package/lib/typescript/module/components/table-row/TableRowProps.d.ts.map +1 -1
- package/lib/typescript/module/components/table-toolbar/TableToolbar.d.ts +4 -0
- package/lib/typescript/module/components/table-toolbar/TableToolbar.d.ts.map +1 -0
- package/lib/typescript/module/components/table-toolbar/TableToolbarProps.d.ts +22 -0
- package/lib/typescript/module/components/table-toolbar/TableToolbarProps.d.ts.map +1 -0
- package/lib/typescript/module/components/table-toolbar/TableToolbarRef.d.ts +4 -0
- package/lib/typescript/module/components/table-toolbar/TableToolbarRef.d.ts.map +1 -0
- package/lib/typescript/module/components/table-toolbar/TableToolbarSize.d.ts +2 -0
- package/lib/typescript/module/components/table-toolbar/TableToolbarSize.d.ts.map +1 -0
- package/lib/typescript/module/components/table-toolbar/_TableToolbarContext.d.ts +6 -0
- package/lib/typescript/module/components/table-toolbar/_TableToolbarContext.d.ts.map +1 -0
- package/lib/typescript/module/components/table-toolbar/index.d.ts +5 -0
- package/lib/typescript/module/components/table-toolbar/index.d.ts.map +1 -0
- package/lib/typescript/module/components/table-toolbar-button/_useSize.d.ts +3 -0
- package/lib/typescript/module/components/table-toolbar-button/_useSize.d.ts.map +1 -0
- package/lib/typescript/module/components/table-toolbar-button/ghost/Ghost.d.ts +4 -0
- package/lib/typescript/module/components/table-toolbar-button/ghost/Ghost.d.ts.map +1 -0
- package/lib/typescript/module/components/table-toolbar-button/ghost/GhostProps.d.ts +4 -0
- package/lib/typescript/module/components/table-toolbar-button/ghost/GhostProps.d.ts.map +1 -0
- package/lib/typescript/module/components/table-toolbar-button/ghost/GhostRef.d.ts +4 -0
- package/lib/typescript/module/components/table-toolbar-button/ghost/GhostRef.d.ts.map +1 -0
- package/lib/typescript/module/components/table-toolbar-button/ghost/index.d.ts +4 -0
- package/lib/typescript/module/components/table-toolbar-button/ghost/index.d.ts.map +1 -0
- package/lib/typescript/module/components/table-toolbar-button/ghost-icon/GhostIcon.d.ts +4 -0
- package/lib/typescript/module/components/table-toolbar-button/ghost-icon/GhostIcon.d.ts.map +1 -0
- package/lib/typescript/module/components/table-toolbar-button/ghost-icon/GhostIconProps.d.ts +4 -0
- package/lib/typescript/module/components/table-toolbar-button/ghost-icon/GhostIconProps.d.ts.map +1 -0
- package/lib/typescript/module/components/table-toolbar-button/ghost-icon/GhostIconRef.d.ts +4 -0
- package/lib/typescript/module/components/table-toolbar-button/ghost-icon/GhostIconRef.d.ts.map +1 -0
- package/lib/typescript/module/components/table-toolbar-button/ghost-icon/index.d.ts +4 -0
- package/lib/typescript/module/components/table-toolbar-button/ghost-icon/index.d.ts.map +1 -0
- package/lib/typescript/module/components/table-toolbar-button/index.d.ts +4 -0
- package/lib/typescript/module/components/table-toolbar-button/index.d.ts.map +1 -0
- package/lib/typescript/module/components/table-toolbar-button/primary/Primary.d.ts +4 -0
- package/lib/typescript/module/components/table-toolbar-button/primary/Primary.d.ts.map +1 -0
- package/lib/typescript/module/components/table-toolbar-button/primary/PrimaryProps.d.ts +4 -0
- package/lib/typescript/module/components/table-toolbar-button/primary/PrimaryProps.d.ts.map +1 -0
- package/lib/typescript/module/components/table-toolbar-button/primary/PrimaryRef.d.ts +4 -0
- package/lib/typescript/module/components/table-toolbar-button/primary/PrimaryRef.d.ts.map +1 -0
- package/lib/typescript/module/components/table-toolbar-button/primary/index.d.ts +4 -0
- package/lib/typescript/module/components/table-toolbar-button/primary/index.d.ts.map +1 -0
- package/lib/typescript/module/components/table-toolbar-switcher/TableToolbarSwitcher.d.ts +10 -0
- package/lib/typescript/module/components/table-toolbar-switcher/TableToolbarSwitcher.d.ts.map +1 -0
- package/lib/typescript/module/components/table-toolbar-switcher/TableToolbarSwitcherProps.d.ts +16 -0
- package/lib/typescript/module/components/table-toolbar-switcher/TableToolbarSwitcherProps.d.ts.map +1 -0
- package/lib/typescript/module/components/table-toolbar-switcher/TableToolbarSwitcherRef.d.ts +5 -0
- package/lib/typescript/module/components/table-toolbar-switcher/TableToolbarSwitcherRef.d.ts.map +1 -0
- package/lib/typescript/module/components/table-toolbar-switcher/TableToolbarSwitcherRefBase.d.ts +17 -0
- package/lib/typescript/module/components/table-toolbar-switcher/TableToolbarSwitcherRefBase.d.ts.map +1 -0
- package/lib/typescript/module/components/table-toolbar-switcher/_AnimatedContentProps.d.ts +4 -0
- package/lib/typescript/module/components/table-toolbar-switcher/_AnimatedContentProps.d.ts.map +1 -0
- package/lib/typescript/module/components/table-toolbar-switcher/_animated-next-content/AnimatedNextContent.d.ts +3 -0
- package/lib/typescript/module/components/table-toolbar-switcher/_animated-next-content/AnimatedNextContent.d.ts.map +1 -0
- package/lib/typescript/module/components/table-toolbar-switcher/_animated-next-content/AnimatedNextContentProps.d.ts +5 -0
- package/lib/typescript/module/components/table-toolbar-switcher/_animated-next-content/AnimatedNextContentProps.d.ts.map +1 -0
- package/lib/typescript/module/components/table-toolbar-switcher/_animated-next-content/index.d.ts +3 -0
- package/lib/typescript/module/components/table-toolbar-switcher/_animated-next-content/index.d.ts.map +1 -0
- package/lib/typescript/module/components/table-toolbar-switcher/_animated-toolbar/AnimatedToolbar.d.ts +4 -0
- package/lib/typescript/module/components/table-toolbar-switcher/_animated-toolbar/AnimatedToolbar.d.ts.map +1 -0
- package/lib/typescript/module/components/table-toolbar-switcher/_animated-toolbar/AnimatedToolbarProps.d.ts +5 -0
- package/lib/typescript/module/components/table-toolbar-switcher/_animated-toolbar/AnimatedToolbarProps.d.ts.map +1 -0
- package/lib/typescript/module/components/table-toolbar-switcher/_animated-toolbar/AnimatedToolbarRef.d.ts +4 -0
- package/lib/typescript/module/components/table-toolbar-switcher/_animated-toolbar/AnimatedToolbarRef.d.ts.map +1 -0
- package/lib/typescript/module/components/table-toolbar-switcher/_animated-toolbar/index.d.ts +4 -0
- package/lib/typescript/module/components/table-toolbar-switcher/_animated-toolbar/index.d.ts.map +1 -0
- package/lib/typescript/module/components/table-toolbar-switcher/_useAnimatedContent.d.ts +20 -0
- package/lib/typescript/module/components/table-toolbar-switcher/_useAnimatedContent.d.ts.map +1 -0
- package/lib/typescript/module/components/table-toolbar-switcher/index.d.ts +5 -0
- package/lib/typescript/module/components/table-toolbar-switcher/index.d.ts.map +1 -0
- package/lib/typescript/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/_internal/contexts/global-config/GlobalConfigContext.ts +5 -1
- package/src/_internal/providers/global-config/GlobalConfigProvider.tsx +14 -4
- package/src/_internal/providers/global-config/GlobalConfigProviderProps.ts +1 -1
- package/src/carbon-react-native/CarbonReactNative.tsx +8 -8
- package/src/carbon-react-native/CarbonReactNativeProps.ts +1 -1
- package/src/carbon-style-sheet/color.ts +1 -1
- package/src/carbon-style-sheet/g/font.ts +1 -1
- package/src/carbon-style-sheet/g/spacing.ts +1 -1
- package/src/carbon-style-sheet/g/typography.ts +1 -1
- package/src/carbon-style-sheet/g-object/font.ts +1 -1
- package/src/carbon-style-sheet/g-object/spacing.ts +1 -1
- package/src/carbon-style-sheet/g-object/typography.ts +1 -1
- package/src/components/box/Box.tsx +6 -0
- package/src/components/button/base/Base.tsx +6 -17
- package/src/components/button/ghost/Ghost.tsx +3 -23
- package/src/components/index.ts +8 -0
- package/src/components/scroll-view/ScrollView.tsx +62 -0
- package/src/components/scroll-view/ScrollViewProps.ts +6 -0
- package/src/components/scroll-view/index.ts +2 -0
- package/src/components/table/Table.tsx +18 -7
- package/src/components/table/TableProps.ts +24 -0
- package/src/components/table/TableRef.ts +3 -3
- package/src/components/table-batch-action-bar/TableBatchActionBar.tsx +156 -0
- package/src/components/table-batch-action-bar/TableBatchActionBarProps.ts +42 -0
- package/src/components/table-batch-action-bar/TableBatchActionBarRef.ts +6 -0
- package/src/components/table-batch-action-bar/TableBatchActionBarSize.ts +3 -0
- package/src/components/table-batch-action-bar/_TableBatchActionBarContext.ts +15 -0
- package/src/components/table-batch-action-bar/index.ts +4 -0
- package/src/components/table-batch-action-bar-button/TableBatchActionBarButton.tsx +74 -0
- package/src/components/table-batch-action-bar-button/TableBatchActionBarButtonProps.ts +6 -0
- package/src/components/table-batch-action-bar-button/TableBatchActionBarButtonRef.ts +6 -0
- package/src/components/table-batch-action-bar-button/index.ts +3 -0
- package/src/components/table-cell-header/_sort-icon/SortIcon.tsx +4 -3
- package/src/components/table-header/TableHeader.tsx +110 -0
- package/src/components/table-header/TableHeaderProps.ts +22 -0
- package/src/components/table-header/TableHeaderRef.ts +6 -0
- package/src/components/table-header/index.ts +3 -0
- package/src/components/table-row/TableRowProps.ts +3 -0
- package/src/components/table-toolbar/TableToolbar.tsx +165 -0
- package/src/components/table-toolbar/TableToolbarProps.ts +27 -0
- package/src/components/table-toolbar/TableToolbarRef.ts +6 -0
- package/src/components/table-toolbar/TableToolbarSize.ts +3 -0
- package/src/components/table-toolbar/_TableToolbarContext.ts +15 -0
- package/src/components/table-toolbar/index.ts +4 -0
- package/src/components/table-toolbar-button/_useSize.tsx +28 -0
- package/src/components/table-toolbar-button/ghost/Ghost.tsx +43 -0
- package/src/components/table-toolbar-button/ghost/GhostProps.ts +6 -0
- package/src/components/table-toolbar-button/ghost/GhostRef.ts +6 -0
- package/src/components/table-toolbar-button/ghost/index.ts +3 -0
- package/src/components/table-toolbar-button/ghost-icon/GhostIcon.tsx +43 -0
- package/src/components/table-toolbar-button/ghost-icon/GhostIconProps.ts +6 -0
- package/src/components/table-toolbar-button/ghost-icon/GhostIconRef.ts +6 -0
- package/src/components/table-toolbar-button/ghost-icon/index.ts +3 -0
- package/src/components/table-toolbar-button/index.ts +3 -0
- package/src/components/table-toolbar-button/primary/Primary.tsx +43 -0
- package/src/components/table-toolbar-button/primary/PrimaryProps.ts +6 -0
- package/src/components/table-toolbar-button/primary/PrimaryRef.ts +6 -0
- package/src/components/table-toolbar-button/primary/index.ts +3 -0
- package/src/components/table-toolbar-switcher/TableToolbarSwitcher.tsx +110 -0
- package/src/components/table-toolbar-switcher/TableToolbarSwitcherProps.ts +18 -0
- package/src/components/table-toolbar-switcher/TableToolbarSwitcherRef.ts +10 -0
- package/src/components/table-toolbar-switcher/TableToolbarSwitcherRefBase.ts +16 -0
- package/src/components/table-toolbar-switcher/_AnimatedContentProps.ts +3 -0
- package/src/components/table-toolbar-switcher/_animated-next-content/AnimatedNextContent.tsx +33 -0
- package/src/components/table-toolbar-switcher/_animated-next-content/AnimatedNextContentProps.ts +10 -0
- package/src/components/table-toolbar-switcher/_animated-next-content/index.ts +2 -0
- package/src/components/table-toolbar-switcher/_animated-toolbar/AnimatedToolbar.tsx +59 -0
- package/src/components/table-toolbar-switcher/_animated-toolbar/AnimatedToolbarProps.ts +10 -0
- package/src/components/table-toolbar-switcher/_animated-toolbar/AnimatedToolbarRef.ts +6 -0
- package/src/components/table-toolbar-switcher/_animated-toolbar/index.ts +3 -0
- package/src/components/table-toolbar-switcher/_useAnimatedContent.tsx +179 -0
- package/src/components/table-toolbar-switcher/index.ts +4 -0
package/package.json
CHANGED
|
@@ -2,6 +2,10 @@ import {
|
|
|
2
2
|
createContext,
|
|
3
3
|
} from "react"
|
|
4
4
|
|
|
5
|
+
import {
|
|
6
|
+
I18nManager,
|
|
7
|
+
} from "react-native"
|
|
8
|
+
|
|
5
9
|
import type {
|
|
6
10
|
NotificationColor,
|
|
7
11
|
} from "../../../components/notification/NotificationColor"
|
|
@@ -26,5 +30,5 @@ export const GlobalConfigContext = createContext<GlobalConfigContext>({
|
|
|
26
30
|
android_buttonRippleEffect: true,
|
|
27
31
|
notificationColor: "high_contrast",
|
|
28
32
|
toastDuration: 5000,
|
|
29
|
-
rtl:
|
|
33
|
+
rtl: I18nManager.isRTL,
|
|
30
34
|
})
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
I18nManager,
|
|
3
|
+
} from "react-native"
|
|
4
|
+
|
|
1
5
|
import {
|
|
2
6
|
GlobalConfigContext,
|
|
3
7
|
} from "../../contexts/global-config"
|
|
@@ -6,14 +10,20 @@ import type {
|
|
|
6
10
|
GlobalConfigProviderProps,
|
|
7
11
|
} from "./GlobalConfigProviderProps"
|
|
8
12
|
|
|
13
|
+
const isRtl = I18nManager.isRTL
|
|
14
|
+
|
|
9
15
|
export function GlobalConfigProvider({
|
|
10
|
-
android_buttonRippleEffect,
|
|
11
|
-
notificationColor,
|
|
12
|
-
toastDuration,
|
|
13
|
-
rtl,
|
|
16
|
+
android_buttonRippleEffect = true,
|
|
17
|
+
notificationColor = "high_contrast",
|
|
18
|
+
toastDuration = 5000,
|
|
19
|
+
rtl: rtlProp,
|
|
14
20
|
children,
|
|
15
21
|
}: GlobalConfigProviderProps) {
|
|
16
22
|
|
|
23
|
+
const
|
|
24
|
+
rtl =
|
|
25
|
+
rtlProp ?? isRtl
|
|
26
|
+
|
|
17
27
|
return (
|
|
18
28
|
<GlobalConfigContext.Provider
|
|
19
29
|
value={{
|
|
@@ -9,15 +9,15 @@ import type {
|
|
|
9
9
|
} from "./CarbonReactNativeProps"
|
|
10
10
|
|
|
11
11
|
export function CarbonReactNative({
|
|
12
|
-
// GlobalConfigProviderProps
|
|
13
|
-
android_buttonRippleEffect
|
|
14
|
-
notificationColor
|
|
15
|
-
toastDuration
|
|
16
|
-
rtl
|
|
17
|
-
|
|
18
|
-
// ThemeProviderProps
|
|
12
|
+
// +++ GlobalConfigProviderProps +++
|
|
13
|
+
android_buttonRippleEffect,
|
|
14
|
+
notificationColor,
|
|
15
|
+
toastDuration,
|
|
16
|
+
rtl,
|
|
17
|
+
// --- GlobalConfigProviderProps ---
|
|
18
|
+
// +++ ThemeProviderProps +++
|
|
19
19
|
colorScheme,
|
|
20
|
-
|
|
20
|
+
// --- ThemeProviderProps ---
|
|
21
21
|
children,
|
|
22
22
|
}: CarbonReactNativeProps) {
|
|
23
23
|
|
|
@@ -3,5 +3,5 @@ import type {
|
|
|
3
3
|
ThemeProviderProps,
|
|
4
4
|
} from "../_internal/providers"
|
|
5
5
|
|
|
6
|
-
export interface CarbonReactNativeProps extends
|
|
6
|
+
export interface CarbonReactNativeProps extends GlobalConfigProviderProps, ThemeProviderProps {
|
|
7
7
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Generated
|
|
2
|
-
//
|
|
2
|
+
// Sat, 04 Apr 2026 18:25:11 GMT
|
|
3
3
|
|
|
4
4
|
// To support cross platforms, we are mapping the `fontFamily` value to its PostScript name,
|
|
5
5
|
// instead of the `fontWeight` number with a single font family name like in Web// Giving a `fontWeight` number will not work.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Generated
|
|
2
|
-
//
|
|
2
|
+
// Sat, 04 Apr 2026 18:25:11 GMT
|
|
3
3
|
|
|
4
4
|
// To support cross platforms, we are mapping the `fontFamily` value to its PostScript name,
|
|
5
5
|
// instead of the `fontWeight` number with a single font family name like in Web// Giving a `fontWeight` number will not work.
|
|
@@ -21,6 +21,12 @@ import type {
|
|
|
21
21
|
BoxRef,
|
|
22
22
|
} from "./BoxRef"
|
|
23
23
|
|
|
24
|
+
/**
|
|
25
|
+
* This component is a basic React Native `View` to solve
|
|
26
|
+
* RTL support for component level.
|
|
27
|
+
*
|
|
28
|
+
* You may use this if your app provides custom localization options.
|
|
29
|
+
*/
|
|
24
30
|
export const Box = forwardRef<BoxRef, BoxProps>(
|
|
25
31
|
function Box(
|
|
26
32
|
{
|
|
@@ -73,7 +73,7 @@ export const Base = forwardRef<BaseRef, BaseProps>(
|
|
|
73
73
|
getIconSize(size),
|
|
74
74
|
|
|
75
75
|
iconMarginStyle =
|
|
76
|
-
mapIconMarginStyle[`${!!
|
|
76
|
+
mapIconMarginStyle[`${!!text}`]
|
|
77
77
|
|
|
78
78
|
return (
|
|
79
79
|
<Pressable
|
|
@@ -172,11 +172,8 @@ const
|
|
|
172
172
|
maxHeight: 48,
|
|
173
173
|
},
|
|
174
174
|
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
},
|
|
178
|
-
iconMarginRTL: {
|
|
179
|
-
marginRight: Spacing.spacing_07,
|
|
175
|
+
iconMargin: {
|
|
176
|
+
marginStart: Spacing.spacing_07,
|
|
180
177
|
},
|
|
181
178
|
|
|
182
179
|
inlineLoading: {
|
|
@@ -241,19 +238,11 @@ const
|
|
|
241
238
|
},
|
|
242
239
|
|
|
243
240
|
mapIconMarginStyle: {
|
|
244
|
-
[
|
|
245
|
-
[HasText in `${boolean}`]: ViewProps["style"]
|
|
246
|
-
}
|
|
241
|
+
[HasText in `${boolean}`]: ViewProps["style"]
|
|
247
242
|
} =
|
|
248
243
|
{
|
|
249
|
-
false:
|
|
250
|
-
|
|
251
|
-
true: baseStyle.iconMarginLTR,
|
|
252
|
-
},
|
|
253
|
-
true: {
|
|
254
|
-
false: null,
|
|
255
|
-
true: baseStyle.iconMarginRTL,
|
|
256
|
-
},
|
|
244
|
+
false: null,
|
|
245
|
+
true: baseStyle.iconMargin,
|
|
257
246
|
},
|
|
258
247
|
|
|
259
248
|
mapStyleInButtonGroup: {
|
|
@@ -3,15 +3,13 @@ import {
|
|
|
3
3
|
useContext,
|
|
4
4
|
} from "react"
|
|
5
5
|
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
type ViewStyle,
|
|
6
|
+
import type {
|
|
7
|
+
TextStyle,
|
|
8
|
+
ViewStyle,
|
|
10
9
|
} from "react-native"
|
|
11
10
|
|
|
12
11
|
import {
|
|
13
12
|
Color,
|
|
14
|
-
Spacing,
|
|
15
13
|
} from "@audira/carbon-react-native-elements"
|
|
16
14
|
|
|
17
15
|
import * as CarbonStyleSheet from "../../../carbon-style-sheet"
|
|
@@ -38,7 +36,6 @@ export const Ghost = forwardRef<GhostRef, GhostProps>(
|
|
|
38
36
|
function Ghost(
|
|
39
37
|
{
|
|
40
38
|
text,
|
|
41
|
-
iconProps,
|
|
42
39
|
...props
|
|
43
40
|
},
|
|
44
41
|
ref,
|
|
@@ -71,10 +68,6 @@ export const Ghost = forwardRef<GhostRef, GhostProps>(
|
|
|
71
68
|
},
|
|
72
69
|
icon: mapIconColor[themeContext.colorScheme],
|
|
73
70
|
}}
|
|
74
|
-
iconProps={{
|
|
75
|
-
...iconProps,
|
|
76
|
-
style: [mapIconPLByText[`${!!text}`], iconProps?.style],
|
|
77
|
-
}}
|
|
78
71
|
/>
|
|
79
72
|
)
|
|
80
73
|
|
|
@@ -125,19 +118,6 @@ const
|
|
|
125
118
|
},
|
|
126
119
|
}),
|
|
127
120
|
|
|
128
|
-
style =
|
|
129
|
-
StyleSheet.create({
|
|
130
|
-
iconPL8: {
|
|
131
|
-
paddingLeft: Spacing.spacing_03,
|
|
132
|
-
},
|
|
133
|
-
}),
|
|
134
|
-
|
|
135
|
-
mapIconPLByText: Record<string, typeof style["iconPL8"] | null> =
|
|
136
|
-
{
|
|
137
|
-
false: null,
|
|
138
|
-
true: style.iconPL8,
|
|
139
|
-
},
|
|
140
|
-
|
|
141
121
|
mapIconColor: Record<ThemeContext["colorScheme"], Record<BaseColorState, string>> =
|
|
142
122
|
{
|
|
143
123
|
gray_10: {
|
package/src/components/index.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import * as Button from "./button"
|
|
2
2
|
import * as Notification from "./notification"
|
|
3
|
+
import * as TableToolbarButton from "./table-toolbar-button"
|
|
3
4
|
import * as Toggle from "./toggle"
|
|
4
5
|
|
|
5
6
|
export {
|
|
6
7
|
Button,
|
|
7
8
|
Notification,
|
|
9
|
+
TableToolbarButton,
|
|
8
10
|
Toggle,
|
|
9
11
|
}
|
|
10
12
|
|
|
@@ -31,10 +33,16 @@ export * from "./radio-button-group"
|
|
|
31
33
|
export * from "./radio-button-input"
|
|
32
34
|
export * from "./switch"
|
|
33
35
|
export * from "./table"
|
|
36
|
+
export * from "./table-batch-action-bar"
|
|
37
|
+
export * from "./table-batch-action-bar-button"
|
|
34
38
|
export * from "./table-cell"
|
|
35
39
|
export * from "./table-cell-header"
|
|
36
40
|
export * from "./table-cell-icon"
|
|
37
41
|
export * from "./table-cell-text"
|
|
42
|
+
export * from "./table-header"
|
|
43
|
+
export * from "./table-toolbar"
|
|
44
|
+
export * from "./table-toolbar-button"
|
|
45
|
+
export * from "./table-toolbar-switcher"
|
|
38
46
|
export * from "./table-row"
|
|
39
47
|
export * from "./table-row-header"
|
|
40
48
|
export * from "./text"
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import {
|
|
2
|
+
forwardRef,
|
|
3
|
+
useContext,
|
|
4
|
+
} from "react"
|
|
5
|
+
|
|
6
|
+
import {
|
|
7
|
+
ScrollView as ReactNativeScrollView,
|
|
8
|
+
} from "react-native"
|
|
9
|
+
|
|
10
|
+
import {
|
|
11
|
+
GlobalConfigContext,
|
|
12
|
+
} from "../../_internal/contexts"
|
|
13
|
+
|
|
14
|
+
import * as CarbonStyleSheet from "../../carbon-style-sheet"
|
|
15
|
+
|
|
16
|
+
import type {
|
|
17
|
+
ScrollViewProps,
|
|
18
|
+
} from "./ScrollViewProps"
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* This component is a basic React Native `ScrollView` to solve
|
|
22
|
+
* RTL support for component level.
|
|
23
|
+
*
|
|
24
|
+
* You may use this if your app provides custom localization options.
|
|
25
|
+
*/
|
|
26
|
+
export const ScrollView = forwardRef<ReactNativeScrollView, ScrollViewProps>(
|
|
27
|
+
function ScrollView(
|
|
28
|
+
{
|
|
29
|
+
dir: dirProp,
|
|
30
|
+
style,
|
|
31
|
+
contentContainerStyle,
|
|
32
|
+
...props
|
|
33
|
+
},
|
|
34
|
+
ref,
|
|
35
|
+
) {
|
|
36
|
+
|
|
37
|
+
const
|
|
38
|
+
globalConfigContext =
|
|
39
|
+
useContext(GlobalConfigContext),
|
|
40
|
+
|
|
41
|
+
dir =
|
|
42
|
+
dirProp ??
|
|
43
|
+
globalConfigContext.rtl ? "rtl" : "ltr"
|
|
44
|
+
|
|
45
|
+
return (
|
|
46
|
+
<ReactNativeScrollView
|
|
47
|
+
ref={ ref }
|
|
48
|
+
{ ...props }
|
|
49
|
+
dir={ dir }
|
|
50
|
+
style={ [
|
|
51
|
+
dir == "rtl" ? CarbonStyleSheet.g.rtl : undefined,
|
|
52
|
+
style,
|
|
53
|
+
] }
|
|
54
|
+
contentContainerStyle={ [
|
|
55
|
+
dir == "rtl" ? CarbonStyleSheet.g.rtl : undefined,
|
|
56
|
+
contentContainerStyle,
|
|
57
|
+
] }
|
|
58
|
+
/>
|
|
59
|
+
)
|
|
60
|
+
|
|
61
|
+
},
|
|
62
|
+
) as unknown as typeof ReactNativeScrollView & ReactNativeScrollView
|
|
@@ -2,16 +2,16 @@ import {
|
|
|
2
2
|
forwardRef,
|
|
3
3
|
} from "react"
|
|
4
4
|
|
|
5
|
-
import {
|
|
6
|
-
ScrollView,
|
|
7
|
-
} from "react-native"
|
|
8
|
-
|
|
9
5
|
import * as CarbonStyleSheet from "../../carbon-style-sheet"
|
|
10
6
|
|
|
11
7
|
import {
|
|
12
8
|
Box,
|
|
13
9
|
} from "../box/Box"
|
|
14
10
|
|
|
11
|
+
import {
|
|
12
|
+
ScrollView,
|
|
13
|
+
} from "../scroll-view/ScrollView"
|
|
14
|
+
|
|
15
15
|
import type {
|
|
16
16
|
TableProps,
|
|
17
17
|
} from "./TableProps"
|
|
@@ -28,8 +28,11 @@ export const Table = forwardRef<TableRef, TableProps>(
|
|
|
28
28
|
function Table(
|
|
29
29
|
{
|
|
30
30
|
rowSize = "large",
|
|
31
|
+
header,
|
|
32
|
+
footer,
|
|
33
|
+
horizontalScrollViewProps,
|
|
34
|
+
verticalScrollViewProps,
|
|
31
35
|
children,
|
|
32
|
-
style,
|
|
33
36
|
...props
|
|
34
37
|
},
|
|
35
38
|
ref,
|
|
@@ -44,23 +47,31 @@ export const Table = forwardRef<TableRef, TableProps>(
|
|
|
44
47
|
<Box
|
|
45
48
|
ref={ ref }
|
|
46
49
|
{ ...props }
|
|
47
|
-
style={ style }
|
|
48
50
|
>
|
|
51
|
+
{ header }
|
|
52
|
+
|
|
49
53
|
<ScrollView
|
|
50
|
-
|
|
54
|
+
{ ...horizontalScrollViewProps }
|
|
55
|
+
horizontal={ horizontalScrollViewProps?.horizontal ?? true }
|
|
56
|
+
nestedScrollEnabled={ horizontalScrollViewProps?.nestedScrollEnabled ?? true }
|
|
51
57
|
contentContainerStyle={ [
|
|
52
58
|
CarbonStyleSheet.g.grow,
|
|
59
|
+
horizontalScrollViewProps?.contentContainerStyle,
|
|
53
60
|
] }
|
|
54
61
|
>
|
|
55
62
|
<ScrollView
|
|
63
|
+
{ ...verticalScrollViewProps }
|
|
56
64
|
style={ [
|
|
57
65
|
CarbonStyleSheet.g.flex_auto,
|
|
66
|
+
verticalScrollViewProps?.style,
|
|
58
67
|
] }
|
|
59
68
|
role="table"
|
|
60
69
|
>
|
|
61
70
|
{ children }
|
|
62
71
|
</ScrollView>
|
|
63
72
|
</ScrollView>
|
|
73
|
+
|
|
74
|
+
{ footer }
|
|
64
75
|
</Box>
|
|
65
76
|
</TableContext.Provider>
|
|
66
77
|
)
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
ScrollViewProps,
|
|
3
|
+
} from "react-native"
|
|
4
|
+
|
|
1
5
|
import type {
|
|
2
6
|
BoxProps,
|
|
3
7
|
} from "../box/BoxProps"
|
|
@@ -12,4 +16,24 @@ export interface TableProps extends BoxProps {
|
|
|
12
16
|
* @see https://carbondesignsystem.com/components/data-table/style/#rows
|
|
13
17
|
*/
|
|
14
18
|
rowSize?: TableRowSize,
|
|
19
|
+
horizontalScrollViewProps?: Omit<
|
|
20
|
+
ScrollViewProps,
|
|
21
|
+
| "children"
|
|
22
|
+
>,
|
|
23
|
+
verticalScrollViewProps?: Omit<
|
|
24
|
+
ScrollViewProps,
|
|
25
|
+
| "children"
|
|
26
|
+
>,
|
|
27
|
+
/**
|
|
28
|
+
* Add React node after start of the table element.
|
|
29
|
+
*
|
|
30
|
+
* You may use this for `TableHeader`, `TableToolbar`, `TableBatchActionBar`, or all of them.
|
|
31
|
+
*/
|
|
32
|
+
header?: React.ReactNode,
|
|
33
|
+
/**
|
|
34
|
+
* Add React node before end of the table element
|
|
35
|
+
*
|
|
36
|
+
* You may use this for `Pagination` component.
|
|
37
|
+
*/
|
|
38
|
+
footer?: React.ReactNode,
|
|
15
39
|
}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import {
|
|
2
|
+
forwardRef,
|
|
3
|
+
useContext,
|
|
4
|
+
} from "react"
|
|
5
|
+
|
|
6
|
+
import {
|
|
7
|
+
StyleSheet,
|
|
8
|
+
type ViewStyle,
|
|
9
|
+
} from "react-native"
|
|
10
|
+
|
|
11
|
+
import * as CarbonStyleSheet from "../../carbon-style-sheet"
|
|
12
|
+
|
|
13
|
+
import {
|
|
14
|
+
Box,
|
|
15
|
+
} from "../box/Box"
|
|
16
|
+
|
|
17
|
+
import {
|
|
18
|
+
ScrollView,
|
|
19
|
+
} from "../scroll-view/ScrollView"
|
|
20
|
+
|
|
21
|
+
import {
|
|
22
|
+
TableContext,
|
|
23
|
+
} from "../table/_TableContext"
|
|
24
|
+
|
|
25
|
+
import {
|
|
26
|
+
Text,
|
|
27
|
+
} from "../text/Text"
|
|
28
|
+
|
|
29
|
+
import type {
|
|
30
|
+
TableBatchActionBarProps,
|
|
31
|
+
} from "./TableBatchActionBarProps"
|
|
32
|
+
|
|
33
|
+
import type {
|
|
34
|
+
TableBatchActionBarRef,
|
|
35
|
+
} from "./TableBatchActionBarRef"
|
|
36
|
+
|
|
37
|
+
import type {
|
|
38
|
+
TableBatchActionBarSize,
|
|
39
|
+
} from "./TableBatchActionBarSize"
|
|
40
|
+
|
|
41
|
+
import {
|
|
42
|
+
TableBatchActionBarContext,
|
|
43
|
+
} from "./_TableBatchActionBarContext"
|
|
44
|
+
|
|
45
|
+
export const TableBatchActionBar = forwardRef<TableBatchActionBarRef, TableBatchActionBarProps>(
|
|
46
|
+
function TableBatchActionBar(
|
|
47
|
+
{
|
|
48
|
+
size: sizeProp,
|
|
49
|
+
horizontal = true,
|
|
50
|
+
text,
|
|
51
|
+
textProps,
|
|
52
|
+
buttons,
|
|
53
|
+
style,
|
|
54
|
+
contentContainerStyle,
|
|
55
|
+
...props
|
|
56
|
+
},
|
|
57
|
+
ref,
|
|
58
|
+
) {
|
|
59
|
+
|
|
60
|
+
const
|
|
61
|
+
tableContext =
|
|
62
|
+
useContext(TableContext),
|
|
63
|
+
|
|
64
|
+
size =
|
|
65
|
+
sizeProp ?? tableContext.rowSize,
|
|
66
|
+
|
|
67
|
+
batchActionBarSize =
|
|
68
|
+
mapRowSizeToBatchActionBarSize[size]
|
|
69
|
+
|
|
70
|
+
return (
|
|
71
|
+
<TableBatchActionBarContext.Provider
|
|
72
|
+
value={{
|
|
73
|
+
size: batchActionBarSize,
|
|
74
|
+
}}
|
|
75
|
+
>
|
|
76
|
+
<ScrollView
|
|
77
|
+
ref={ ref }
|
|
78
|
+
{ ...props }
|
|
79
|
+
horizontal={ horizontal }
|
|
80
|
+
style={ [
|
|
81
|
+
carbonStyleSheet.tableBatchActionBar,
|
|
82
|
+
// if users provide size prop manually
|
|
83
|
+
// they will still get the correct size style
|
|
84
|
+
// the `large` and `small` from `TableBatchActionBarSize`
|
|
85
|
+
// are also used by `TableRowSize`
|
|
86
|
+
styleSheetSize[batchActionBarSize],
|
|
87
|
+
style,
|
|
88
|
+
] }
|
|
89
|
+
contentContainerStyle={ [
|
|
90
|
+
CarbonStyleSheet.g.flex_auto,
|
|
91
|
+
CarbonStyleSheet.g.flex_row,
|
|
92
|
+
CarbonStyleSheet.g.justify_between,
|
|
93
|
+
contentContainerStyle,
|
|
94
|
+
] }
|
|
95
|
+
>
|
|
96
|
+
<Text
|
|
97
|
+
{ ...textProps }
|
|
98
|
+
type="body_compact_01"
|
|
99
|
+
style={ [
|
|
100
|
+
CarbonStyleSheet.g.flex_auto,
|
|
101
|
+
CarbonStyleSheet.g.self_center,
|
|
102
|
+
CarbonStyleSheet.g.px_05,
|
|
103
|
+
carbonStyleSheet.text,
|
|
104
|
+
textProps?.style,
|
|
105
|
+
] }
|
|
106
|
+
>
|
|
107
|
+
{ text }
|
|
108
|
+
</Text>
|
|
109
|
+
|
|
110
|
+
{ !!buttons && (
|
|
111
|
+
<Box
|
|
112
|
+
style={ [
|
|
113
|
+
CarbonStyleSheet.g.flex_row,
|
|
114
|
+
CarbonStyleSheet.g.self_stretch,
|
|
115
|
+
] }
|
|
116
|
+
>
|
|
117
|
+
{ buttons }
|
|
118
|
+
</Box>
|
|
119
|
+
) }
|
|
120
|
+
</ScrollView>
|
|
121
|
+
</TableBatchActionBarContext.Provider>
|
|
122
|
+
)
|
|
123
|
+
|
|
124
|
+
},
|
|
125
|
+
)
|
|
126
|
+
|
|
127
|
+
const
|
|
128
|
+
styleSheetSize =
|
|
129
|
+
StyleSheet.create({
|
|
130
|
+
small: {
|
|
131
|
+
height: 32,
|
|
132
|
+
},
|
|
133
|
+
large: {
|
|
134
|
+
height: 48,
|
|
135
|
+
},
|
|
136
|
+
} as const satisfies Record<TableBatchActionBarSize, NonNullable<Pick<ViewStyle, "height">>>),
|
|
137
|
+
|
|
138
|
+
mapRowSizeToBatchActionBarSize =
|
|
139
|
+
{
|
|
140
|
+
extra_small: "small",
|
|
141
|
+
small: "small",
|
|
142
|
+
medium: "small",
|
|
143
|
+
large: "large",
|
|
144
|
+
extra_large: "large",
|
|
145
|
+
} as const satisfies Record<TableContext["rowSize"], TableBatchActionBarSize>,
|
|
146
|
+
|
|
147
|
+
carbonStyleSheet =
|
|
148
|
+
CarbonStyleSheet.create({
|
|
149
|
+
tableBatchActionBar: {
|
|
150
|
+
backgroundColor: CarbonStyleSheet.color.background_brand,
|
|
151
|
+
},
|
|
152
|
+
text: {
|
|
153
|
+
textWrap: "nowrap",
|
|
154
|
+
color: CarbonStyleSheet.color.text_on_color,
|
|
155
|
+
},
|
|
156
|
+
})
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
ScrollViewProps,
|
|
3
|
+
} from "react-native"
|
|
4
|
+
|
|
5
|
+
import type {
|
|
6
|
+
TextProps,
|
|
7
|
+
} from "../text/TextProps"
|
|
8
|
+
|
|
9
|
+
import type {
|
|
10
|
+
TableBatchActionBarSize,
|
|
11
|
+
} from "./TableBatchActionBarSize"
|
|
12
|
+
|
|
13
|
+
export interface TableBatchActionBarProps extends Omit<ScrollViewProps, "children"> {
|
|
14
|
+
/**
|
|
15
|
+
* Based on the IBM spec, the `large` batch action bar is paired with the extra large and large row sizes.
|
|
16
|
+
* The `small` batch action bar is paired with the small and extra small row sizes.
|
|
17
|
+
*
|
|
18
|
+
* You may don't want to set the batch action bar size manually.
|
|
19
|
+
* Prefer to opt `rowSize` in the `Table` prop instead,
|
|
20
|
+
* and the batch action bar size will be adjusted automatically based on what the row size is.
|
|
21
|
+
*
|
|
22
|
+
* @default "large"
|
|
23
|
+
*/
|
|
24
|
+
size?: TableBatchActionBarSize,
|
|
25
|
+
/**
|
|
26
|
+
* Provide descriptive text after one or multiple items selected,
|
|
27
|
+
*
|
|
28
|
+
* e.g. "0 items selected", "3 products selected", etc.
|
|
29
|
+
*/
|
|
30
|
+
text: string,
|
|
31
|
+
textProps?: Omit<
|
|
32
|
+
TextProps,
|
|
33
|
+
| "children"
|
|
34
|
+
| "type"
|
|
35
|
+
>,
|
|
36
|
+
/**
|
|
37
|
+
* Provide one or multiple `<TableBatchActionBarButton>` in this prop.
|
|
38
|
+
*
|
|
39
|
+
* To provide multiple buttons, you can start it with `<>` or `<Fragment>`
|
|
40
|
+
*/
|
|
41
|
+
buttons: React.ReactNode,
|
|
42
|
+
}
|