@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 @@
|
|
|
1
|
+
{"version":3,"names":["createContext","TableBatchActionBarContext","size"],"sourceRoot":"../../../../src","sources":["components/table-batch-action-bar/_TableBatchActionBarContext.ts"],"mappings":";;AAAA,SACCA,aAAa,QACP,OAAO;AAUd,OAAO,MAAMC,0BAA0B,gBAAGD,aAAa,CAA6B;EACnFE,IAAI,EAAE;AACP,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/table-batch-action-bar/index.ts"],"mappings":";;AAAA,cAAc,0BAAuB","ignoreList":[]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { forwardRef, useContext } from "react";
|
|
4
|
+
import * as CarbonStyleSheet from "../../carbon-style-sheet/index.js";
|
|
5
|
+
import { Primary as ButtonPrimary } from "../button/primary/index.js";
|
|
6
|
+
import { TableBatchActionBarContext } from "../table-batch-action-bar/_TableBatchActionBarContext.js";
|
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
+
export const TableBatchActionBarButton = /*#__PURE__*/forwardRef(function TableBatchActionBarButton({
|
|
9
|
+
Icon,
|
|
10
|
+
iconProps,
|
|
11
|
+
style,
|
|
12
|
+
...props
|
|
13
|
+
}, ref) {
|
|
14
|
+
const tableBatchActionBarContext = useContext(TableBatchActionBarContext);
|
|
15
|
+
return /*#__PURE__*/_jsx(ButtonPrimary, {
|
|
16
|
+
ref: ref,
|
|
17
|
+
...props,
|
|
18
|
+
size: mapBatchActionBarSizeToButtonSize[tableBatchActionBarContext.size],
|
|
19
|
+
Icon: Icon,
|
|
20
|
+
iconProps: {
|
|
21
|
+
...iconProps,
|
|
22
|
+
style: [CarbonStyleSheet.g.ms_03,
|
|
23
|
+
// override the gap between text and icon
|
|
24
|
+
iconProps?.style]
|
|
25
|
+
},
|
|
26
|
+
style: [Icon ? undefined : CarbonStyleSheet.g.pe_05, style]
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
const mapBatchActionBarSizeToButtonSize = {
|
|
30
|
+
small: "small",
|
|
31
|
+
large: "large_productive"
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=TableBatchActionBarButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["forwardRef","useContext","CarbonStyleSheet","Primary","ButtonPrimary","TableBatchActionBarContext","jsx","_jsx","TableBatchActionBarButton","Icon","iconProps","style","props","ref","tableBatchActionBarContext","size","mapBatchActionBarSizeToButtonSize","g","ms_03","undefined","pe_05","small","large"],"sourceRoot":"../../../../src","sources":["components/table-batch-action-bar-button/TableBatchActionBarButton.tsx"],"mappings":";;AAAA,SACCA,UAAU,EACVC,UAAU,QACJ,OAAO;AAEd,OAAO,KAAKC,gBAAgB,MAAM,mCAA0B;AAE5D,SACCC,OAAO,IAAIC,aAAa,QAElB,4BAAmB;AAM1B,SACCC,0BAA0B,QACpB,0DAAuD;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAU9D,OAAO,MAAMC,yBAAyB,gBAAGR,UAAU,CAClD,SAASQ,yBAAyBA,CACjC;EACCC,IAAI;EACJC,SAAS;EACTC,KAAK;EACL,GAAGC;AACJ,CAAC,EACDC,GAAG,EACF;EAED,MACCC,0BAA0B,GACzBb,UAAU,CAACI,0BAA0B,CAAC;EAExC,oBACCE,IAAA,CAACH,aAAa;IACbS,GAAG,EAAGA,GAAK;IAAA,GACND,KAAK;IACVG,IAAI,EAAGC,iCAAiC,CAACF,0BAA0B,CAACC,IAAI,CAAG;IAC3EN,IAAI,EAAGA,IAAM;IACbC,SAAS,EAAE;MACV,GAAGA,SAAS;MACZC,KAAK,EAAE,CACNT,gBAAgB,CAACe,CAAC,CAACC,KAAK;MAAE;MAC1BR,SAAS,EAAEC,KAAK;IAElB,CAAE;IACFA,KAAK,EAAG,CACPF,IAAI,GACDU,SAAS,GACTjB,gBAAgB,CAACe,CAAC,CAACG,KAAK,EAC3BT,KAAK;EACH,CACH,CAAC;AAGJ,CACD,CAAC;AAED,MACCK,iCAAiC,GAChC;EACCK,KAAK,EAAE,OAAO;EACdC,KAAK,EAAE;AACR,CAA6F","ignoreList":[]}
|
package/lib/module/components/table-batch-action-bar-button/TableBatchActionBarButtonProps.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/table-batch-action-bar-button/TableBatchActionBarButtonProps.ts"],"mappings":"","ignoreList":[]}
|
package/lib/module/components/table-batch-action-bar-button/TableBatchActionBarButtonRef.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/table-batch-action-bar-button/TableBatchActionBarButtonRef.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/table-batch-action-bar-button/index.ts"],"mappings":";;AAAA,cAAc,gCAA6B","ignoreList":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import { forwardRef, useEffect, useImperativeHandle, useRef } from "react";
|
|
4
|
-
import { Animated, Easing } from "react-native";
|
|
4
|
+
import { Animated, Easing, Platform } from "react-native";
|
|
5
5
|
import { Motion } from "@audira/carbon-react-native-elements";
|
|
6
6
|
import IconArrowUp from "@carbon/icons/svg/32/arrow--up.svg";
|
|
7
7
|
import IconArrowsVertical from "@carbon/icons/svg/32/arrows--vertical.svg";
|
|
@@ -19,14 +19,14 @@ export const SortIcon = /*#__PURE__*/forwardRef(function SortIcon({
|
|
|
19
19
|
Animated.timing(rotationValue.current, {
|
|
20
20
|
toValue: 0,
|
|
21
21
|
duration: 0,
|
|
22
|
-
useNativeDriver:
|
|
22
|
+
useNativeDriver: Platform.OS != "web"
|
|
23
23
|
}).start();
|
|
24
24
|
} else if (type == "asc" || type == "desc") {
|
|
25
25
|
Animated.timing(rotationValue.current, {
|
|
26
26
|
toValue: type == "asc" ? 0 : 1,
|
|
27
27
|
duration: Motion.Duration.moderate_02,
|
|
28
28
|
easing: Easing.bezier(Motion.Easing.standard.productive.x1, Motion.Easing.standard.productive.y1, Motion.Easing.standard.productive.x2, Motion.Easing.standard.productive.y2),
|
|
29
|
-
useNativeDriver:
|
|
29
|
+
useNativeDriver: Platform.OS != "web"
|
|
30
30
|
}).start();
|
|
31
31
|
}
|
|
32
32
|
}, [type]);
|
|
@@ -37,7 +37,7 @@ export const SortIcon = /*#__PURE__*/forwardRef(function SortIcon({
|
|
|
37
37
|
toValue: value,
|
|
38
38
|
duration: Motion.Duration.fast_01,
|
|
39
39
|
easing: Easing.bezier(Motion.Easing.entrance.productive.x1, Motion.Easing.entrance.productive.y1, Motion.Easing.entrance.productive.x2, Motion.Easing.entrance.productive.y2),
|
|
40
|
-
useNativeDriver:
|
|
40
|
+
useNativeDriver: Platform.OS != "web"
|
|
41
41
|
}).start();
|
|
42
42
|
}
|
|
43
43
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["forwardRef","useEffect","useImperativeHandle","useRef","Animated","Easing","Motion","IconArrowUp","IconArrowsVertical","TableCellIcon","jsx","_jsx","SortIcon","type","style","props","ref","rotationValue","Value","opacityValue","timing","current","toValue","duration","useNativeDriver","start","Duration","moderate_02","easing","bezier","standard","productive","x1","y1","x2","y2","setOpacity","value","fast_01","entrance","AnimatedTableCellIcon","Icon","opacity","transform","rotateZ","interpolate","inputRange","outputRange","createAnimatedComponent"],"sourceRoot":"../../../../../src","sources":["components/table-cell-header/_sort-icon/SortIcon.tsx"],"mappings":";;AAAA,SACCA,UAAU,EACVC,SAAS,EACTC,mBAAmB,EACnBC,MAAM,QACA,OAAO;AAEd,SACCC,QAAQ,EACRC,MAAM,
|
|
1
|
+
{"version":3,"names":["forwardRef","useEffect","useImperativeHandle","useRef","Animated","Easing","Platform","Motion","IconArrowUp","IconArrowsVertical","TableCellIcon","jsx","_jsx","SortIcon","type","style","props","ref","rotationValue","Value","opacityValue","timing","current","toValue","duration","useNativeDriver","OS","start","Duration","moderate_02","easing","bezier","standard","productive","x1","y1","x2","y2","setOpacity","value","fast_01","entrance","AnimatedTableCellIcon","Icon","opacity","transform","rotateZ","interpolate","inputRange","outputRange","createAnimatedComponent"],"sourceRoot":"../../../../../src","sources":["components/table-cell-header/_sort-icon/SortIcon.tsx"],"mappings":"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","ignoreList":[]}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { forwardRef, useContext } from "react";
|
|
4
|
+
import * as CarbonStyleSheet from "../../carbon-style-sheet/index.js";
|
|
5
|
+
import { Box } from "../box/Box.js";
|
|
6
|
+
import { LayerContext } from "../layer/LayerContext.js";
|
|
7
|
+
import { Text } from "../text/Text.js";
|
|
8
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
+
export const TableHeader = /*#__PURE__*/forwardRef(function TableHeader({
|
|
10
|
+
title,
|
|
11
|
+
description,
|
|
12
|
+
titleProps,
|
|
13
|
+
descriptionProps,
|
|
14
|
+
style,
|
|
15
|
+
...props
|
|
16
|
+
}, ref) {
|
|
17
|
+
const layerContext = useContext(LayerContext);
|
|
18
|
+
return /*#__PURE__*/_jsxs(Box, {
|
|
19
|
+
ref: ref,
|
|
20
|
+
...props,
|
|
21
|
+
style: [CarbonStyleSheet.g.pt_05, CarbonStyleSheet.g.pb_06, CarbonStyleSheet.g.px_05, carbonStyleSheet[`bg_${layerContext}`], style],
|
|
22
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
23
|
+
...titleProps,
|
|
24
|
+
type: "heading_03",
|
|
25
|
+
children: title
|
|
26
|
+
}), !!description && /*#__PURE__*/_jsx(Text, {
|
|
27
|
+
...descriptionProps,
|
|
28
|
+
type: "body_compact_01",
|
|
29
|
+
style: [carbonStyleSheet.description, descriptionProps?.style],
|
|
30
|
+
children: description
|
|
31
|
+
})]
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
const carbonStyleSheet = CarbonStyleSheet.create({
|
|
35
|
+
bg_1: {
|
|
36
|
+
backgroundColor: CarbonStyleSheet.color.layer_01
|
|
37
|
+
},
|
|
38
|
+
bg_2: {
|
|
39
|
+
backgroundColor: CarbonStyleSheet.color.layer_02
|
|
40
|
+
},
|
|
41
|
+
bg_3: {
|
|
42
|
+
backgroundColor: CarbonStyleSheet.color.layer_03
|
|
43
|
+
},
|
|
44
|
+
description: {
|
|
45
|
+
color: CarbonStyleSheet.color.text_secondary
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
//# sourceMappingURL=TableHeader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["forwardRef","useContext","CarbonStyleSheet","Box","LayerContext","Text","jsx","_jsx","jsxs","_jsxs","TableHeader","title","description","titleProps","descriptionProps","style","props","ref","layerContext","g","pt_05","pb_06","px_05","carbonStyleSheet","children","type","create","bg_1","backgroundColor","color","layer_01","bg_2","layer_02","bg_3","layer_03","text_secondary"],"sourceRoot":"../../../../src","sources":["components/table-header/TableHeader.tsx"],"mappings":";;AAAA,SACCA,UAAU,EACVC,UAAU,QACJ,OAAO;AAWd,OAAO,KAAKC,gBAAgB,MAAM,mCAA0B;AAE5D,SACCC,GAAG,QACG,eAAY;AAEnB,SACCC,YAAY,QACN,0BAAuB;AAE9B,SACCC,IAAI,QACE,iBAAc;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAUrB,OAAO,MAAMC,WAAW,gBAAGV,UAAU,CACpC,SAASU,WAAWA,CACnB;EACCC,KAAK;EACLC,WAAW;EACXC,UAAU;EACVC,gBAAgB;EAChBC,KAAK;EACL,GAAGC;AACJ,CAAC,EACDC,GAAG,EACF;EAED,MACCC,YAAY,GACXjB,UAAU,CAACG,YAAY,CAAC;EAE1B,oBACCK,KAAA,CAACN,GAAG;IACHc,GAAG,EAAGA,GAAK;IAAA,GACND,KAAK;IACVD,KAAK,EAAG,CACPb,gBAAgB,CAACiB,CAAC,CAACC,KAAK,EACxBlB,gBAAgB,CAACiB,CAAC,CAACE,KAAK,EACxBnB,gBAAgB,CAACiB,CAAC,CAACG,KAAK,EACxBC,gBAAgB,CAAC,MAAML,YAAY,EAAE,CAAC,EACtCH,KAAK,CACH;IAAAS,QAAA,gBAEHjB,IAAA,CAACF,IAAI;MAAA,GACCQ,UAAU;MACfY,IAAI,EAAC,YAAY;MAAAD,QAAA,EAEfb;IAAK,CACF,CAAC,EAEL,CAAC,CAACC,WAAW,iBACdL,IAAA,CAACF,IAAI;MAAA,GACCS,gBAAgB;MACrBW,IAAI,EAAC,iBAAiB;MACtBV,KAAK,EAAG,CACPQ,gBAAgB,CAACX,WAAW,EAC5BE,gBAAgB,EAAEC,KAAK,CACrB;MAAAS,QAAA,EAEDZ;IAAW,CACR,CACN;EAAA,CACG,CAAC;AAGR,CACD,CAAC;AAED,MACCW,gBAAgB,GACfrB,gBAAgB,CAACwB,MAAM,CAAC;EACvBC,IAAI,EAAE;IACLC,eAAe,EAAE1B,gBAAgB,CAAC2B,KAAK,CAACC;EACzC,CAAC;EACDC,IAAI,EAAE;IACLH,eAAe,EAAE1B,gBAAgB,CAAC2B,KAAK,CAACG;EACzC,CAAC;EACDC,IAAI,EAAE;IACLL,eAAe,EAAE1B,gBAAgB,CAAC2B,KAAK,CAACK;EACzC,CAAC;EACDtB,WAAW,EAAE;IACZiB,KAAK,EAAE3B,gBAAgB,CAAC2B,KAAK,CAACM;EAC/B;AACD,CAIC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/table-header/TableHeaderProps.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/table-header/TableHeaderRef.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/table-header/index.ts"],"mappings":";;AAAA,cAAc,kBAAe","ignoreList":[]}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { forwardRef, useContext } from "react";
|
|
4
|
+
import { StyleSheet } from "react-native";
|
|
5
|
+
import * as CarbonStyleSheet from "../../carbon-style-sheet/index.js";
|
|
6
|
+
import { Box } from "../box/Box.js";
|
|
7
|
+
import { LayerContext } from "../layer/LayerContext.js";
|
|
8
|
+
import { ScrollView } from "../scroll-view/ScrollView.js";
|
|
9
|
+
import { TableContext } from "../table/_TableContext.js";
|
|
10
|
+
import { TableToolbarContext } from "./_TableToolbarContext.js";
|
|
11
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
|
+
export const TableToolbar = /*#__PURE__*/forwardRef(function TableToolbar({
|
|
13
|
+
size: sizeProp,
|
|
14
|
+
buttons,
|
|
15
|
+
children,
|
|
16
|
+
horizontal = true,
|
|
17
|
+
role = "group",
|
|
18
|
+
"aria-label": ariaLabel = "table toolbar",
|
|
19
|
+
style,
|
|
20
|
+
contentContainerStyle,
|
|
21
|
+
...props
|
|
22
|
+
}, ref) {
|
|
23
|
+
const layerContext = useContext(LayerContext),
|
|
24
|
+
tableContext = useContext(TableContext),
|
|
25
|
+
size = sizeProp ?? tableContext.rowSize;
|
|
26
|
+
return /*#__PURE__*/_jsx(TableToolbarContext.Provider, {
|
|
27
|
+
value: {
|
|
28
|
+
size: sizeProp ?? mapRowSizeToToolbarSize[tableContext.rowSize]
|
|
29
|
+
},
|
|
30
|
+
children: /*#__PURE__*/_jsxs(ScrollView, {
|
|
31
|
+
ref: ref,
|
|
32
|
+
...props,
|
|
33
|
+
role: role,
|
|
34
|
+
"aria-label": ariaLabel,
|
|
35
|
+
horizontal: horizontal,
|
|
36
|
+
style: [
|
|
37
|
+
// if users provide size prop manually
|
|
38
|
+
// they will still get the correct size style
|
|
39
|
+
// the `large` and `small` from `TableToolbarSize`
|
|
40
|
+
// are also used by `TableRowSize`
|
|
41
|
+
styleSheetSize[mapRowSizeToToolbarSize[size]], styleSheetBGPerLayer[`bg_${layerContext}`], style],
|
|
42
|
+
contentContainerStyle: [CarbonStyleSheet.g.flex_row, CarbonStyleSheet.g.flex_auto, CarbonStyleSheet.g.justify_between, contentContainerStyle],
|
|
43
|
+
children: [/*#__PURE__*/_jsx(Box, {
|
|
44
|
+
style: [CarbonStyleSheet.g.flex_auto],
|
|
45
|
+
children: children
|
|
46
|
+
}), !!buttons && /*#__PURE__*/_jsx(Box, {
|
|
47
|
+
style: [CarbonStyleSheet.g.flex_row, CarbonStyleSheet.g.self_stretch],
|
|
48
|
+
children: buttons
|
|
49
|
+
})]
|
|
50
|
+
})
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
const styleSheetSize = StyleSheet.create({
|
|
54
|
+
small: {
|
|
55
|
+
height: 32
|
|
56
|
+
},
|
|
57
|
+
large: {
|
|
58
|
+
height: 48
|
|
59
|
+
}
|
|
60
|
+
}),
|
|
61
|
+
mapRowSizeToToolbarSize = {
|
|
62
|
+
extra_small: "small",
|
|
63
|
+
small: "small",
|
|
64
|
+
medium: "small",
|
|
65
|
+
large: "large",
|
|
66
|
+
extra_large: "large"
|
|
67
|
+
},
|
|
68
|
+
styleSheetBGPerLayer = CarbonStyleSheet.create({
|
|
69
|
+
bg_1: {
|
|
70
|
+
backgroundColor: CarbonStyleSheet.color.layer_01
|
|
71
|
+
},
|
|
72
|
+
bg_2: {
|
|
73
|
+
backgroundColor: CarbonStyleSheet.color.layer_02
|
|
74
|
+
},
|
|
75
|
+
bg_3: {
|
|
76
|
+
backgroundColor: CarbonStyleSheet.color.layer_03
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
//# sourceMappingURL=TableToolbar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["forwardRef","useContext","StyleSheet","CarbonStyleSheet","Box","LayerContext","ScrollView","TableContext","TableToolbarContext","jsx","_jsx","jsxs","_jsxs","TableToolbar","size","sizeProp","buttons","children","horizontal","role","ariaLabel","style","contentContainerStyle","props","ref","layerContext","tableContext","rowSize","Provider","value","mapRowSizeToToolbarSize","styleSheetSize","styleSheetBGPerLayer","g","flex_row","flex_auto","justify_between","self_stretch","create","small","height","large","extra_small","medium","extra_large","bg_1","backgroundColor","color","layer_01","bg_2","layer_02","bg_3","layer_03"],"sourceRoot":"../../../../src","sources":["components/table-toolbar/TableToolbar.tsx"],"mappings":"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","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/table-toolbar/TableToolbarProps.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/table-toolbar/TableToolbarRef.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/table-toolbar/TableToolbarSize.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createContext","TableToolbarContext","size"],"sourceRoot":"../../../../src","sources":["components/table-toolbar/_TableToolbarContext.ts"],"mappings":";;AAAA,SACCA,aAAa,QACP,OAAO;AAUd,OAAO,MAAMC,mBAAmB,gBAAGD,aAAa,CAAsB;EACrEE,IAAI,EAAE;AACP,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/table-toolbar/index.ts"],"mappings":";;AAAA,cAAc,mBAAgB","ignoreList":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useContext } from "react";
|
|
4
|
+
import { TableToolbarContext } from "../table-toolbar/_TableToolbarContext.js";
|
|
5
|
+
export function useSize() {
|
|
6
|
+
const tableToolbarContext = useContext(TableToolbarContext);
|
|
7
|
+
return mapToolbarSizeToButtonSize[tableToolbarContext.size];
|
|
8
|
+
}
|
|
9
|
+
const mapToolbarSizeToButtonSize = {
|
|
10
|
+
small: "small",
|
|
11
|
+
large: "large_productive"
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=_useSize.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useContext","TableToolbarContext","useSize","tableToolbarContext","mapToolbarSizeToButtonSize","size","small","large"],"sourceRoot":"../../../../src","sources":["components/table-toolbar-button/_useSize.tsx"],"mappings":";;AAAA,SACCA,UAAU,QACJ,OAAO;AAMd,SACCC,mBAAmB,QACb,0CAAuC;AAE9C,OAAO,SAASC,OAAOA,CAAA,EAAS;EAE/B,MACCC,mBAAmB,GAClBH,UAAU,CAACC,mBAAmB,CAAC;EAEjC,OAAOG,0BAA0B,CAACD,mBAAmB,CAACE,IAAI,CAAC;AAE5D;AAEA,MACCD,0BAA0B,GACzB;EACCE,KAAK,EAAE,OAAO;EACdC,KAAK,EAAE;AACR,CAA8D","ignoreList":[]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { forwardRef } from "react";
|
|
4
|
+
import { Ghost as Button } from "../../button/ghost/Ghost.js";
|
|
5
|
+
import { useSize } from "../_useSize.js";
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
export const Ghost = /*#__PURE__*/forwardRef(function Ghost({
|
|
8
|
+
size: sizeProp,
|
|
9
|
+
...props
|
|
10
|
+
}, ref) {
|
|
11
|
+
const size = useSize();
|
|
12
|
+
return /*#__PURE__*/_jsx(Button, {
|
|
13
|
+
ref: ref,
|
|
14
|
+
...props,
|
|
15
|
+
size: sizeProp ?? size
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
//# sourceMappingURL=Ghost.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["forwardRef","Ghost","Button","useSize","jsx","_jsx","size","sizeProp","props","ref"],"sourceRoot":"../../../../../src","sources":["components/table-toolbar-button/ghost/Ghost.tsx"],"mappings":";;AAAA,SACCA,UAAU,QACJ,OAAO;AAEd,SACCC,KAAK,IAAIC,MAAM,QACT,6BAA0B;AAEjC,SACCC,OAAO,QACD,gBAAa;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAUpB,OAAO,MAAMJ,KAAK,gBAAGD,UAAU,CAC9B,SAASC,KAAKA,CACb;EACCK,IAAI,EAAEC,QAAQ;EACd,GAAGC;AACJ,CAAC,EACDC,GAAG,EACF;EAED,MACCH,IAAI,GACHH,OAAO,CAAC,CAAC;EAEX,oBACCE,IAAA,CAACH,MAAM;IACNO,GAAG,EAAGA,GAAK;IAAA,GACND,KAAK;IACVF,IAAI,EAAGC,QAAQ,IAAID;EAAM,CACzB,CAAC;AAGJ,CACD,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["components/table-toolbar-button/ghost/GhostProps.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["components/table-toolbar-button/ghost/GhostRef.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["components/table-toolbar-button/ghost/index.ts"],"mappings":";;AAAA,cAAc,YAAS","ignoreList":[]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { forwardRef } from "react";
|
|
4
|
+
import { GhostIcon as Button } from "../../button/ghost-icon/GhostIcon.js";
|
|
5
|
+
import { useSize } from "../_useSize.js";
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
export const GhostIcon = /*#__PURE__*/forwardRef(function GhostIcon({
|
|
8
|
+
size: sizeProp,
|
|
9
|
+
...props
|
|
10
|
+
}, ref) {
|
|
11
|
+
const size = useSize();
|
|
12
|
+
return /*#__PURE__*/_jsx(Button, {
|
|
13
|
+
ref: ref,
|
|
14
|
+
...props,
|
|
15
|
+
size: sizeProp ?? size
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
//# sourceMappingURL=GhostIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["forwardRef","GhostIcon","Button","useSize","jsx","_jsx","size","sizeProp","props","ref"],"sourceRoot":"../../../../../src","sources":["components/table-toolbar-button/ghost-icon/GhostIcon.tsx"],"mappings":";;AAAA,SACCA,UAAU,QACJ,OAAO;AAEd,SACCC,SAAS,IAAIC,MAAM,QACb,sCAAmC;AAE1C,SACCC,OAAO,QACD,gBAAa;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAUpB,OAAO,MAAMJ,SAAS,gBAAGD,UAAU,CAClC,SAASC,SAASA,CACjB;EACCK,IAAI,EAAEC,QAAQ;EACd,GAAGC;AACJ,CAAC,EACDC,GAAG,EACF;EAED,MACCH,IAAI,GACHH,OAAO,CAAC,CAAC;EAEX,oBACCE,IAAA,CAACH,MAAM;IACNO,GAAG,EAAGA,GAAK;IAAA,GACND,KAAK;IACVF,IAAI,EAAGC,QAAQ,IAAID;EAAM,CACzB,CAAC;AAGJ,CACD,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["components/table-toolbar-button/ghost-icon/GhostIconProps.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["components/table-toolbar-button/ghost-icon/GhostIconRef.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["components/table-toolbar-button/ghost-icon/index.ts"],"mappings":";;AAAA,cAAc,gBAAa","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/table-toolbar-button/index.ts"],"mappings":";;AAAA,cAAc,kBAAS;AACvB,cAAc,uBAAc;AAC5B,cAAc,oBAAW","ignoreList":[]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { forwardRef } from "react";
|
|
4
|
+
import { Primary as Button } from "../../button/primary/Primary.js";
|
|
5
|
+
import { useSize } from "../_useSize.js";
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
export const Primary = /*#__PURE__*/forwardRef(function Primary({
|
|
8
|
+
size: sizeProp,
|
|
9
|
+
...props
|
|
10
|
+
}, ref) {
|
|
11
|
+
const size = useSize();
|
|
12
|
+
return /*#__PURE__*/_jsx(Button, {
|
|
13
|
+
ref: ref,
|
|
14
|
+
...props,
|
|
15
|
+
size: sizeProp ?? size
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
//# sourceMappingURL=Primary.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["forwardRef","Primary","Button","useSize","jsx","_jsx","size","sizeProp","props","ref"],"sourceRoot":"../../../../../src","sources":["components/table-toolbar-button/primary/Primary.tsx"],"mappings":";;AAAA,SACCA,UAAU,QACJ,OAAO;AAEd,SACCC,OAAO,IAAIC,MAAM,QACX,iCAA8B;AAErC,SACCC,OAAO,QACD,gBAAa;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAUpB,OAAO,MAAMJ,OAAO,gBAAGD,UAAU,CAChC,SAASC,OAAOA,CACf;EACCK,IAAI,EAAEC,QAAQ;EACd,GAAGC;AACJ,CAAC,EACDC,GAAG,EACF;EAED,MACCH,IAAI,GACHH,OAAO,CAAC,CAAC;EAEX,oBACCE,IAAA,CAACH,MAAM;IACNO,GAAG,EAAGA,GAAK;IAAA,GACND,KAAK;IACVF,IAAI,EAAGC,QAAQ,IAAID;EAAM,CACzB,CAAC;AAGJ,CACD,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["components/table-toolbar-button/primary/PrimaryProps.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["components/table-toolbar-button/primary/PrimaryRef.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["components/table-toolbar-button/primary/index.ts"],"mappings":";;AAAA,cAAc,cAAW","ignoreList":[]}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { forwardRef, useImperativeHandle, useRef, useState } from "react";
|
|
4
|
+
import { View } from "react-native";
|
|
5
|
+
import * as CarbonStyleSheet from "../../carbon-style-sheet/index.js";
|
|
6
|
+
import { AnimatedNextContent } from "./_animated-next-content/index.js";
|
|
7
|
+
import { AnimatedToolbar } from "./_animated-toolbar/index.js";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Render `TableToolbar` and switch to other view if some events happened.
|
|
11
|
+
*
|
|
12
|
+
* This is useful if you want to use both `TableToolbar` and `TableBatchActionBar`,
|
|
13
|
+
* but only show `TableBatchActionBar` and hide `TableToolbar` if some events occured, e.g. a row has been selected.
|
|
14
|
+
*/
|
|
15
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
|
+
export const TableToolbarSwitcher = /*#__PURE__*/forwardRef(function TableToolbarSwitcher({
|
|
17
|
+
defaultNext,
|
|
18
|
+
next: nextProp,
|
|
19
|
+
nextContent,
|
|
20
|
+
...props
|
|
21
|
+
}, ref) {
|
|
22
|
+
const animatedToolbarRef = useRef(null),
|
|
23
|
+
[nextSelf, setNextSelf] = useState(!!defaultNext),
|
|
24
|
+
next = nextProp ?? nextSelf;
|
|
25
|
+
useImperativeHandle(ref, () => {
|
|
26
|
+
return Object.assign(animatedToolbarRef.current ?? {}, {
|
|
27
|
+
next() {
|
|
28
|
+
if (typeof nextProp === "undefined") {
|
|
29
|
+
setNextSelf(true);
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
prev() {
|
|
33
|
+
if (typeof nextProp === "undefined") {
|
|
34
|
+
setNextSelf(false);
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
switch() {
|
|
38
|
+
if (typeof nextProp === "undefined") {
|
|
39
|
+
setNextSelf(s => !s);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
}, [nextProp]);
|
|
44
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
45
|
+
style: [CarbonStyleSheet.g.flex_auto],
|
|
46
|
+
children: [/*#__PURE__*/_jsx(AnimatedToolbar, {
|
|
47
|
+
ref: animatedToolbarRef,
|
|
48
|
+
...props,
|
|
49
|
+
visible: !next
|
|
50
|
+
}), /*#__PURE__*/_jsx(AnimatedNextContent, {
|
|
51
|
+
visible: next,
|
|
52
|
+
children: nextContent
|
|
53
|
+
})]
|
|
54
|
+
});
|
|
55
|
+
});
|
|
56
|
+
//# sourceMappingURL=TableToolbarSwitcher.js.map
|