@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
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createContext,
|
|
3
|
+
} from "react"
|
|
4
|
+
|
|
5
|
+
import type {
|
|
6
|
+
TableBatchActionBarSize,
|
|
7
|
+
} from "./TableBatchActionBarSize"
|
|
8
|
+
|
|
9
|
+
export interface TableBatchActionBarContext {
|
|
10
|
+
size: TableBatchActionBarSize,
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const TableBatchActionBarContext = createContext<TableBatchActionBarContext>({
|
|
14
|
+
size: "large",
|
|
15
|
+
})
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import {
|
|
2
|
+
forwardRef,
|
|
3
|
+
useContext,
|
|
4
|
+
} from "react"
|
|
5
|
+
|
|
6
|
+
import * as CarbonStyleSheet from "../../carbon-style-sheet"
|
|
7
|
+
|
|
8
|
+
import {
|
|
9
|
+
Primary as ButtonPrimary,
|
|
10
|
+
type PrimaryProps as ButtonPrimaryProps,
|
|
11
|
+
} from "../button/primary"
|
|
12
|
+
|
|
13
|
+
import type {
|
|
14
|
+
TableBatchActionBarSize,
|
|
15
|
+
} from "../table-batch-action-bar/TableBatchActionBarSize"
|
|
16
|
+
|
|
17
|
+
import {
|
|
18
|
+
TableBatchActionBarContext,
|
|
19
|
+
} from "../table-batch-action-bar/_TableBatchActionBarContext"
|
|
20
|
+
|
|
21
|
+
import type {
|
|
22
|
+
TableBatchActionBarButtonProps,
|
|
23
|
+
} from "./TableBatchActionBarButtonProps"
|
|
24
|
+
|
|
25
|
+
import type {
|
|
26
|
+
TableBatchActionBarButtonRef,
|
|
27
|
+
} from "./TableBatchActionBarButtonRef"
|
|
28
|
+
|
|
29
|
+
export const TableBatchActionBarButton = forwardRef<TableBatchActionBarButtonRef, TableBatchActionBarButtonProps>(
|
|
30
|
+
function TableBatchActionBarButton(
|
|
31
|
+
{
|
|
32
|
+
Icon,
|
|
33
|
+
iconProps,
|
|
34
|
+
style,
|
|
35
|
+
...props
|
|
36
|
+
},
|
|
37
|
+
ref,
|
|
38
|
+
) {
|
|
39
|
+
|
|
40
|
+
const
|
|
41
|
+
tableBatchActionBarContext =
|
|
42
|
+
useContext(TableBatchActionBarContext)
|
|
43
|
+
|
|
44
|
+
return (
|
|
45
|
+
<ButtonPrimary
|
|
46
|
+
ref={ ref }
|
|
47
|
+
{ ...props }
|
|
48
|
+
size={ mapBatchActionBarSizeToButtonSize[tableBatchActionBarContext.size] }
|
|
49
|
+
Icon={ Icon }
|
|
50
|
+
iconProps={{
|
|
51
|
+
...iconProps,
|
|
52
|
+
style: [
|
|
53
|
+
CarbonStyleSheet.g.ms_03, // override the gap between text and icon
|
|
54
|
+
iconProps?.style,
|
|
55
|
+
],
|
|
56
|
+
}}
|
|
57
|
+
style={ [
|
|
58
|
+
Icon
|
|
59
|
+
? undefined
|
|
60
|
+
: CarbonStyleSheet.g.pe_05,
|
|
61
|
+
style,
|
|
62
|
+
] }
|
|
63
|
+
/>
|
|
64
|
+
)
|
|
65
|
+
|
|
66
|
+
},
|
|
67
|
+
)
|
|
68
|
+
|
|
69
|
+
const
|
|
70
|
+
mapBatchActionBarSizeToButtonSize =
|
|
71
|
+
{
|
|
72
|
+
small: "small",
|
|
73
|
+
large: "large_productive",
|
|
74
|
+
} as const satisfies Record<TableBatchActionBarSize, NonNullable<ButtonPrimaryProps["size"]>>
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
Animated,
|
|
10
10
|
Easing,
|
|
11
|
+
Platform,
|
|
11
12
|
} from "react-native"
|
|
12
13
|
|
|
13
14
|
import {
|
|
@@ -58,7 +59,7 @@ export const SortIcon = forwardRef<SortIconRef, SortIconProps>(
|
|
|
58
59
|
{
|
|
59
60
|
toValue: 0,
|
|
60
61
|
duration: 0,
|
|
61
|
-
useNativeDriver:
|
|
62
|
+
useNativeDriver: Platform.OS != "web",
|
|
62
63
|
},
|
|
63
64
|
)
|
|
64
65
|
.start()
|
|
@@ -75,7 +76,7 @@ export const SortIcon = forwardRef<SortIconRef, SortIconProps>(
|
|
|
75
76
|
Motion.Easing.standard.productive.x2,
|
|
76
77
|
Motion.Easing.standard.productive.y2,
|
|
77
78
|
),
|
|
78
|
-
useNativeDriver:
|
|
79
|
+
useNativeDriver: Platform.OS != "web",
|
|
79
80
|
},
|
|
80
81
|
)
|
|
81
82
|
.start()
|
|
@@ -99,7 +100,7 @@ export const SortIcon = forwardRef<SortIconRef, SortIconProps>(
|
|
|
99
100
|
Motion.Easing.entrance.productive.x2,
|
|
100
101
|
Motion.Easing.entrance.productive.y2,
|
|
101
102
|
),
|
|
102
|
-
useNativeDriver:
|
|
103
|
+
useNativeDriver: Platform.OS != "web",
|
|
103
104
|
},
|
|
104
105
|
)
|
|
105
106
|
.start()
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import {
|
|
2
|
+
forwardRef,
|
|
3
|
+
useContext,
|
|
4
|
+
} from "react"
|
|
5
|
+
|
|
6
|
+
import type {
|
|
7
|
+
TextStyle,
|
|
8
|
+
ViewStyle,
|
|
9
|
+
} from "react-native"
|
|
10
|
+
|
|
11
|
+
import type {
|
|
12
|
+
ColorLayerLevel,
|
|
13
|
+
} from "@audira/carbon-react-native-elements"
|
|
14
|
+
|
|
15
|
+
import * as CarbonStyleSheet from "../../carbon-style-sheet"
|
|
16
|
+
|
|
17
|
+
import {
|
|
18
|
+
Box,
|
|
19
|
+
} from "../box/Box"
|
|
20
|
+
|
|
21
|
+
import {
|
|
22
|
+
LayerContext,
|
|
23
|
+
} from "../layer/LayerContext"
|
|
24
|
+
|
|
25
|
+
import {
|
|
26
|
+
Text,
|
|
27
|
+
} from "../text/Text"
|
|
28
|
+
|
|
29
|
+
import type {
|
|
30
|
+
TableHeaderProps,
|
|
31
|
+
} from "./TableHeaderProps"
|
|
32
|
+
|
|
33
|
+
import type {
|
|
34
|
+
TableHeaderRef,
|
|
35
|
+
} from "./TableHeaderRef"
|
|
36
|
+
|
|
37
|
+
export const TableHeader = forwardRef<TableHeaderRef, TableHeaderProps>(
|
|
38
|
+
function TableHeader(
|
|
39
|
+
{
|
|
40
|
+
title,
|
|
41
|
+
description,
|
|
42
|
+
titleProps,
|
|
43
|
+
descriptionProps,
|
|
44
|
+
style,
|
|
45
|
+
...props
|
|
46
|
+
},
|
|
47
|
+
ref,
|
|
48
|
+
) {
|
|
49
|
+
|
|
50
|
+
const
|
|
51
|
+
layerContext =
|
|
52
|
+
useContext(LayerContext)
|
|
53
|
+
|
|
54
|
+
return (
|
|
55
|
+
<Box
|
|
56
|
+
ref={ ref }
|
|
57
|
+
{ ...props }
|
|
58
|
+
style={ [
|
|
59
|
+
CarbonStyleSheet.g.pt_05,
|
|
60
|
+
CarbonStyleSheet.g.pb_06,
|
|
61
|
+
CarbonStyleSheet.g.px_05,
|
|
62
|
+
carbonStyleSheet[`bg_${layerContext}`],
|
|
63
|
+
style,
|
|
64
|
+
] }
|
|
65
|
+
>
|
|
66
|
+
<Text
|
|
67
|
+
{ ...titleProps }
|
|
68
|
+
type="heading_03"
|
|
69
|
+
>
|
|
70
|
+
{ title }
|
|
71
|
+
</Text>
|
|
72
|
+
|
|
73
|
+
{ !!description && (
|
|
74
|
+
<Text
|
|
75
|
+
{ ...descriptionProps }
|
|
76
|
+
type="body_compact_01"
|
|
77
|
+
style={ [
|
|
78
|
+
carbonStyleSheet.description,
|
|
79
|
+
descriptionProps?.style,
|
|
80
|
+
] }
|
|
81
|
+
>
|
|
82
|
+
{ description }
|
|
83
|
+
</Text>
|
|
84
|
+
) }
|
|
85
|
+
</Box>
|
|
86
|
+
)
|
|
87
|
+
|
|
88
|
+
},
|
|
89
|
+
)
|
|
90
|
+
|
|
91
|
+
const
|
|
92
|
+
carbonStyleSheet =
|
|
93
|
+
CarbonStyleSheet.create({
|
|
94
|
+
bg_1: {
|
|
95
|
+
backgroundColor: CarbonStyleSheet.color.layer_01,
|
|
96
|
+
},
|
|
97
|
+
bg_2: {
|
|
98
|
+
backgroundColor: CarbonStyleSheet.color.layer_02,
|
|
99
|
+
},
|
|
100
|
+
bg_3: {
|
|
101
|
+
backgroundColor: CarbonStyleSheet.color.layer_03,
|
|
102
|
+
},
|
|
103
|
+
description: {
|
|
104
|
+
color: CarbonStyleSheet.color.text_secondary,
|
|
105
|
+
},
|
|
106
|
+
} as const satisfies {
|
|
107
|
+
[Layer in `bg_${ColorLayerLevel}`]: Pick<ViewStyle, "backgroundColor">
|
|
108
|
+
} & {
|
|
109
|
+
description: Pick<TextStyle, "color">,
|
|
110
|
+
})
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
BoxProps,
|
|
3
|
+
} from "../box/BoxProps"
|
|
4
|
+
|
|
5
|
+
import type {
|
|
6
|
+
TextProps,
|
|
7
|
+
} from "../text/TextProps"
|
|
8
|
+
|
|
9
|
+
export interface TableHeaderProps extends Omit<BoxProps, "children"> {
|
|
10
|
+
title: string,
|
|
11
|
+
description?: string,
|
|
12
|
+
titleProps?: Omit<
|
|
13
|
+
TextProps,
|
|
14
|
+
| "type"
|
|
15
|
+
| "children"
|
|
16
|
+
>,
|
|
17
|
+
descriptionProps?: Omit<
|
|
18
|
+
TextProps,
|
|
19
|
+
| "type"
|
|
20
|
+
| "children"
|
|
21
|
+
>,
|
|
22
|
+
}
|
|
@@ -13,6 +13,9 @@ import type {
|
|
|
13
13
|
|
|
14
14
|
export interface TableRowProps extends Omit<PressableProps, "style"> {
|
|
15
15
|
/**
|
|
16
|
+
* You may don't want to set the row size each row individually.
|
|
17
|
+
* Prefer to opt `rowSize` in the `Table` prop instead.
|
|
18
|
+
*
|
|
16
19
|
* @default "large"
|
|
17
20
|
* @see https://carbondesignsystem.com/components/data-table/style/#rows
|
|
18
21
|
*/
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import {
|
|
2
|
+
forwardRef,
|
|
3
|
+
useContext,
|
|
4
|
+
} from "react"
|
|
5
|
+
|
|
6
|
+
import {
|
|
7
|
+
StyleSheet,
|
|
8
|
+
type ViewStyle,
|
|
9
|
+
} from "react-native"
|
|
10
|
+
|
|
11
|
+
import type {
|
|
12
|
+
ColorLayerLevel,
|
|
13
|
+
} from "@audira/carbon-react-native-elements"
|
|
14
|
+
|
|
15
|
+
import * as CarbonStyleSheet from "../../carbon-style-sheet"
|
|
16
|
+
|
|
17
|
+
import {
|
|
18
|
+
Box,
|
|
19
|
+
} from "../box/Box"
|
|
20
|
+
|
|
21
|
+
import {
|
|
22
|
+
LayerContext,
|
|
23
|
+
} from "../layer/LayerContext"
|
|
24
|
+
|
|
25
|
+
import {
|
|
26
|
+
ScrollView,
|
|
27
|
+
} from "../scroll-view/ScrollView"
|
|
28
|
+
|
|
29
|
+
import {
|
|
30
|
+
TableContext,
|
|
31
|
+
} from "../table/_TableContext"
|
|
32
|
+
|
|
33
|
+
import type {
|
|
34
|
+
TableToolbarProps,
|
|
35
|
+
} from "./TableToolbarProps"
|
|
36
|
+
|
|
37
|
+
import type {
|
|
38
|
+
TableToolbarRef,
|
|
39
|
+
} from "./TableToolbarRef"
|
|
40
|
+
|
|
41
|
+
import type {
|
|
42
|
+
TableToolbarSize,
|
|
43
|
+
} from "./TableToolbarSize"
|
|
44
|
+
|
|
45
|
+
import {
|
|
46
|
+
TableToolbarContext,
|
|
47
|
+
} from "./_TableToolbarContext"
|
|
48
|
+
|
|
49
|
+
export const TableToolbar = forwardRef<TableToolbarRef, TableToolbarProps>(
|
|
50
|
+
function TableToolbar(
|
|
51
|
+
{
|
|
52
|
+
size: sizeProp,
|
|
53
|
+
buttons,
|
|
54
|
+
children,
|
|
55
|
+
horizontal = true,
|
|
56
|
+
role = "group",
|
|
57
|
+
"aria-label": ariaLabel = "table toolbar",
|
|
58
|
+
style,
|
|
59
|
+
contentContainerStyle,
|
|
60
|
+
...props
|
|
61
|
+
},
|
|
62
|
+
ref,
|
|
63
|
+
) {
|
|
64
|
+
|
|
65
|
+
const
|
|
66
|
+
layerContext =
|
|
67
|
+
useContext(LayerContext),
|
|
68
|
+
|
|
69
|
+
tableContext =
|
|
70
|
+
useContext(TableContext),
|
|
71
|
+
|
|
72
|
+
size =
|
|
73
|
+
sizeProp ?? tableContext.rowSize
|
|
74
|
+
|
|
75
|
+
return (
|
|
76
|
+
<TableToolbarContext.Provider
|
|
77
|
+
value={{
|
|
78
|
+
size: sizeProp ?? mapRowSizeToToolbarSize[tableContext.rowSize],
|
|
79
|
+
}}
|
|
80
|
+
>
|
|
81
|
+
<ScrollView
|
|
82
|
+
ref={ ref }
|
|
83
|
+
{ ...props }
|
|
84
|
+
role={ role }
|
|
85
|
+
aria-label={ ariaLabel }
|
|
86
|
+
horizontal={ horizontal }
|
|
87
|
+
style={ [
|
|
88
|
+
// if users provide size prop manually
|
|
89
|
+
// they will still get the correct size style
|
|
90
|
+
// the `large` and `small` from `TableToolbarSize`
|
|
91
|
+
// are also used by `TableRowSize`
|
|
92
|
+
styleSheetSize[
|
|
93
|
+
mapRowSizeToToolbarSize[size]
|
|
94
|
+
],
|
|
95
|
+
|
|
96
|
+
styleSheetBGPerLayer[`bg_${layerContext}`],
|
|
97
|
+
|
|
98
|
+
style,
|
|
99
|
+
] }
|
|
100
|
+
contentContainerStyle={ [
|
|
101
|
+
CarbonStyleSheet.g.flex_row,
|
|
102
|
+
CarbonStyleSheet.g.flex_auto,
|
|
103
|
+
CarbonStyleSheet.g.justify_between,
|
|
104
|
+
contentContainerStyle,
|
|
105
|
+
] }
|
|
106
|
+
>
|
|
107
|
+
<Box
|
|
108
|
+
style={ [
|
|
109
|
+
CarbonStyleSheet.g.flex_auto,
|
|
110
|
+
] }
|
|
111
|
+
>
|
|
112
|
+
{ children }
|
|
113
|
+
</Box>
|
|
114
|
+
|
|
115
|
+
{ !!buttons && (
|
|
116
|
+
<Box
|
|
117
|
+
style={ [
|
|
118
|
+
CarbonStyleSheet.g.flex_row,
|
|
119
|
+
CarbonStyleSheet.g.self_stretch,
|
|
120
|
+
] }
|
|
121
|
+
>
|
|
122
|
+
{ buttons }
|
|
123
|
+
</Box>
|
|
124
|
+
) }
|
|
125
|
+
</ScrollView>
|
|
126
|
+
</TableToolbarContext.Provider>
|
|
127
|
+
)
|
|
128
|
+
|
|
129
|
+
},
|
|
130
|
+
)
|
|
131
|
+
|
|
132
|
+
const
|
|
133
|
+
styleSheetSize =
|
|
134
|
+
StyleSheet.create({
|
|
135
|
+
small: {
|
|
136
|
+
height: 32,
|
|
137
|
+
},
|
|
138
|
+
large: {
|
|
139
|
+
height: 48,
|
|
140
|
+
},
|
|
141
|
+
} as const satisfies Record<TableToolbarSize, NonNullable<Pick<ViewStyle, "height">>>),
|
|
142
|
+
|
|
143
|
+
mapRowSizeToToolbarSize =
|
|
144
|
+
{
|
|
145
|
+
extra_small: "small",
|
|
146
|
+
small: "small",
|
|
147
|
+
medium: "small",
|
|
148
|
+
large: "large",
|
|
149
|
+
extra_large: "large",
|
|
150
|
+
} as const satisfies Record<TableContext["rowSize"], TableToolbarSize>,
|
|
151
|
+
|
|
152
|
+
styleSheetBGPerLayer =
|
|
153
|
+
CarbonStyleSheet.create({
|
|
154
|
+
bg_1: {
|
|
155
|
+
backgroundColor: CarbonStyleSheet.color.layer_01,
|
|
156
|
+
},
|
|
157
|
+
bg_2: {
|
|
158
|
+
backgroundColor: CarbonStyleSheet.color.layer_02,
|
|
159
|
+
},
|
|
160
|
+
bg_3: {
|
|
161
|
+
backgroundColor: CarbonStyleSheet.color.layer_03,
|
|
162
|
+
},
|
|
163
|
+
} as const satisfies {
|
|
164
|
+
[Name in `bg_${ColorLayerLevel}`]: NonNullable<Pick<ViewStyle, "backgroundColor">>
|
|
165
|
+
})
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
ScrollViewProps,
|
|
3
|
+
} from "react-native"
|
|
4
|
+
|
|
5
|
+
import type {
|
|
6
|
+
TableToolbarSize,
|
|
7
|
+
} from "./TableToolbarSize"
|
|
8
|
+
|
|
9
|
+
export interface TableToolbarProps extends ScrollViewProps {
|
|
10
|
+
/**
|
|
11
|
+
* Based on the IBM spec, the `large` toolbar is paired with the extra large and large row sizes.
|
|
12
|
+
* The `small` toolbar is paired with the small and extra small row sizes.
|
|
13
|
+
*
|
|
14
|
+
* You may don't want to set the toolbar size manually.
|
|
15
|
+
* Prefer to opt `rowSize` in the `Table` prop instead,
|
|
16
|
+
* and the toolbar size will be adjusted automatically based on what the row size is.
|
|
17
|
+
*
|
|
18
|
+
* @default "large"
|
|
19
|
+
*/
|
|
20
|
+
size?: TableToolbarSize,
|
|
21
|
+
/**
|
|
22
|
+
* Provide one or multiple `<TableToolbarButton>` in this prop.
|
|
23
|
+
*
|
|
24
|
+
* To provide multiple buttons, you can start it with `<>` or `<Fragment>`
|
|
25
|
+
*/
|
|
26
|
+
buttons: React.ReactNode,
|
|
27
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createContext,
|
|
3
|
+
} from "react"
|
|
4
|
+
|
|
5
|
+
import type {
|
|
6
|
+
TableToolbarSize,
|
|
7
|
+
} from "./TableToolbarSize"
|
|
8
|
+
|
|
9
|
+
export interface TableToolbarContext {
|
|
10
|
+
size: TableToolbarSize,
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const TableToolbarContext = createContext<TableToolbarContext>({
|
|
14
|
+
size: "large",
|
|
15
|
+
})
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useContext,
|
|
3
|
+
} from "react"
|
|
4
|
+
|
|
5
|
+
import type {
|
|
6
|
+
Size,
|
|
7
|
+
} from "../button/Size"
|
|
8
|
+
|
|
9
|
+
import {
|
|
10
|
+
TableToolbarContext,
|
|
11
|
+
} from "../table-toolbar/_TableToolbarContext"
|
|
12
|
+
|
|
13
|
+
export function useSize(): Size {
|
|
14
|
+
|
|
15
|
+
const
|
|
16
|
+
tableToolbarContext =
|
|
17
|
+
useContext(TableToolbarContext)
|
|
18
|
+
|
|
19
|
+
return mapToolbarSizeToButtonSize[tableToolbarContext.size]
|
|
20
|
+
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
const
|
|
24
|
+
mapToolbarSizeToButtonSize =
|
|
25
|
+
{
|
|
26
|
+
small: "small",
|
|
27
|
+
large: "large_productive",
|
|
28
|
+
} as const satisfies Record<TableToolbarContext["size"], Size>
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import {
|
|
2
|
+
forwardRef,
|
|
3
|
+
} from "react"
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
Ghost as Button,
|
|
7
|
+
} from "../../button/ghost/Ghost"
|
|
8
|
+
|
|
9
|
+
import {
|
|
10
|
+
useSize,
|
|
11
|
+
} from "../_useSize"
|
|
12
|
+
|
|
13
|
+
import type {
|
|
14
|
+
GhostProps,
|
|
15
|
+
} from "./GhostProps"
|
|
16
|
+
|
|
17
|
+
import type {
|
|
18
|
+
GhostRef,
|
|
19
|
+
} from "./GhostRef"
|
|
20
|
+
|
|
21
|
+
export const Ghost = forwardRef<GhostRef, GhostProps>(
|
|
22
|
+
function Ghost(
|
|
23
|
+
{
|
|
24
|
+
size: sizeProp,
|
|
25
|
+
...props
|
|
26
|
+
},
|
|
27
|
+
ref,
|
|
28
|
+
) {
|
|
29
|
+
|
|
30
|
+
const
|
|
31
|
+
size =
|
|
32
|
+
useSize()
|
|
33
|
+
|
|
34
|
+
return (
|
|
35
|
+
<Button
|
|
36
|
+
ref={ ref }
|
|
37
|
+
{ ...props }
|
|
38
|
+
size={ sizeProp ?? size }
|
|
39
|
+
/>
|
|
40
|
+
)
|
|
41
|
+
|
|
42
|
+
},
|
|
43
|
+
)
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import {
|
|
2
|
+
forwardRef,
|
|
3
|
+
} from "react"
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
GhostIcon as Button,
|
|
7
|
+
} from "../../button/ghost-icon/GhostIcon"
|
|
8
|
+
|
|
9
|
+
import {
|
|
10
|
+
useSize,
|
|
11
|
+
} from "../_useSize"
|
|
12
|
+
|
|
13
|
+
import type {
|
|
14
|
+
GhostIconProps,
|
|
15
|
+
} from "./GhostIconProps"
|
|
16
|
+
|
|
17
|
+
import type {
|
|
18
|
+
GhostIconRef,
|
|
19
|
+
} from "./GhostIconRef"
|
|
20
|
+
|
|
21
|
+
export const GhostIcon = forwardRef<GhostIconRef, GhostIconProps>(
|
|
22
|
+
function GhostIcon(
|
|
23
|
+
{
|
|
24
|
+
size: sizeProp,
|
|
25
|
+
...props
|
|
26
|
+
},
|
|
27
|
+
ref,
|
|
28
|
+
) {
|
|
29
|
+
|
|
30
|
+
const
|
|
31
|
+
size =
|
|
32
|
+
useSize()
|
|
33
|
+
|
|
34
|
+
return (
|
|
35
|
+
<Button
|
|
36
|
+
ref={ ref }
|
|
37
|
+
{ ...props }
|
|
38
|
+
size={ sizeProp ?? size }
|
|
39
|
+
/>
|
|
40
|
+
)
|
|
41
|
+
|
|
42
|
+
},
|
|
43
|
+
)
|