@carbon/react 1.19.0 → 1.21.0-rc.0
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/es/_virtual/_commonjsHelpers.js +15 -2
- package/es/_virtual/index.js +6 -2
- package/es/_virtual/rangePlugin.js +6 -2
- package/es/components/Accordion/Accordion.Skeleton.js +1 -1
- package/es/components/Breadcrumb/Breadcrumb.Skeleton.js +1 -1
- package/es/components/Button/Button.Skeleton.js +1 -1
- package/es/components/Button/Button.js +1 -0
- package/es/components/{Checkbox → Button}/index.js +3 -3
- package/es/components/{Pagination → ButtonSet}/index.js +2 -3
- package/es/components/Checkbox/Checkbox.Skeleton.js +1 -1
- package/es/components/CodeSnippet/CodeSnippet.Skeleton.js +1 -1
- package/es/components/CodeSnippet/CodeSnippet.js +1 -1
- package/es/components/{RadioButtonGroup → ComboBox}/index.js +2 -2
- package/es/components/ComposedModal/ModalFooter.js +1 -1
- package/es/components/ContainedList/ContainedList.js +8 -1
- package/es/components/ContainedList/ContainedListItem/index.js +9 -0
- package/es/components/ContainedList/index.js +1 -1
- package/es/components/ContentSwitcher/index.js +3 -3
- package/es/components/{ModalWrapper → Copy}/index.js +2 -2
- package/es/components/CopyButton/index.js +9 -0
- package/es/components/DangerButton/DangerButton.js +1 -1
- package/es/components/DataTable/TableBatchAction.js +1 -1
- package/es/components/DataTable/TableBatchActions.js +1 -1
- package/es/components/DataTable/TableHeader.js +1 -3
- package/es/components/DataTable/index.js +1 -1
- package/es/components/DatePicker/DatePicker.Skeleton.js +1 -1
- package/es/components/DatePicker/DatePicker.js +30 -8
- package/es/components/DatePicker/index.js +10 -0
- package/es/components/DatePickerInput/index.js +9 -0
- package/es/components/Dropdown/Dropdown.Skeleton.js +1 -1
- package/es/components/Dropdown/index.js +10 -0
- package/es/components/FileUploader/FileUploader.Skeleton.js +1 -1
- package/es/components/FluidDatePicker/FluidDatePicker.js +1 -1
- package/es/components/FluidDropdown/FluidDropdown.js +1 -1
- package/es/components/FluidSelect/FluidSelect.js +1 -1
- package/es/components/FluidSelect/index.js +10 -0
- package/es/components/FluidTextArea/FluidTextArea.js +1 -1
- package/es/components/FluidTextInput/index.js +10 -0
- package/es/components/{ExpandableSearch → Form}/index.js +2 -2
- package/es/components/Icon/Icon.Skeleton.js +1 -1
- package/es/components/IconButton/index.js +1 -1
- package/es/components/InlineCheckbox/index.js +9 -0
- package/es/components/Link/index.js +9 -0
- package/es/components/Loading/index.js +9 -0
- package/es/components/Menu/index.js +1 -1
- package/es/components/Modal/Modal.js +1 -1
- package/es/components/Modal/index.js +1 -1
- package/es/components/ModalWrapper/ModalWrapper.js +1 -1
- package/es/components/MultiSelect/index.js +1 -1
- package/es/components/Notification/Notification.js +1 -1
- package/es/components/NumberInput/NumberInput.js +38 -20
- package/es/components/OverflowMenu/index.js +1 -1
- package/es/components/OverflowMenuItem/OverflowMenuItem.js +86 -125
- package/es/components/OverflowMenuItem/index.js +1 -1
- package/es/components/Pagination/Pagination.Skeleton.js +1 -1
- package/es/components/Pagination/Pagination.js +1 -1
- package/es/components/Pagination/experimental/PageSelector.js +1 -1
- package/es/components/Pagination/experimental/Pagination.js +2 -2
- package/es/components/PaginationNav/PaginationNav.js +1 -1
- package/es/components/PrimaryButton/PrimaryButton.js +1 -1
- package/es/components/ProgressBar/ProgressBar.js +11 -4
- package/es/components/ProgressIndicator/ProgressIndicator.Skeleton.js +1 -1
- package/es/components/RadioButton/RadioButton.Skeleton.js +1 -1
- package/es/components/RadioButton/index.js +1 -1
- package/es/components/RadioTile/index.js +9 -0
- package/es/components/Search/Search.Skeleton.js +1 -1
- package/es/components/Search/Search.js +8 -2
- package/es/components/Search/index.js +1 -1
- package/es/components/SecondaryButton/SecondaryButton.js +1 -1
- package/es/components/Select/Select.Skeleton.js +1 -1
- package/es/components/Select/index.js +10 -0
- package/es/components/SelectItem/index.js +9 -0
- package/es/components/SkeletonText/SkeletonText.js +40 -39
- package/es/components/SkeletonText/index.js +9 -0
- package/es/components/Slider/Slider.Skeleton.js +1 -1
- package/es/components/Slider/Slider.js +16 -26
- package/es/components/Slider/index.js +3 -3
- package/es/components/Tab/index.js +1 -1
- package/es/components/Tabs/Tabs.Skeleton.js +1 -1
- package/es/components/Tag/Tag.Skeleton.js +1 -1
- package/es/components/Tag/Tag.js +2 -1
- package/es/components/TextArea/TextArea.Skeleton.js +1 -1
- package/es/components/TextArea/TextArea.js +11 -4
- package/es/components/TextArea/index.js +10 -0
- package/es/components/TextInput/TextInput.Skeleton.js +1 -1
- package/es/components/TextInput/index.js +1 -1
- package/es/components/Tile/Tile.js +7 -5
- package/es/components/TileGroup/index.js +3 -3
- package/es/components/TimePickerSelect/TimePickerSelect.js +57 -69
- package/es/components/TimePickerSelect/index.js +3 -4
- package/es/components/Toggle/Toggle.Skeleton.js +1 -1
- package/es/components/ToggleSmall/ToggleSmall.Skeleton.js +1 -1
- package/es/components/TreeView/index.js +1 -1
- package/es/components/UIShell/HeaderGlobalAction.js +1 -1
- package/es/components/UIShell/HeaderNavigation.js +1 -1
- package/es/components/UIShell/SideNavLink.js +5 -0
- package/es/components/UIShell/SideNavMenu.js +1 -1
- package/es/es/components/Checkbox/Checkbox.Skeleton.d.ts +1 -0
- package/es/es/components/Checkbox/Checkbox.d.ts +1 -1
- package/es/es/components/Checkbox/index.d.ts +3 -2
- package/es/es/components/Text/Text.d.ts +1 -1
- package/es/es/components/Text/TextDirection.d.ts +2 -2
- package/es/es/index.d.ts +119 -0
- package/es/index.js +24 -24
- package/es/node_modules/flatpickr/dist/l10n/index.js +3 -3
- package/es/node_modules/flatpickr/dist/plugins/rangePlugin.js +2 -2
- package/es/node_modules/use-resize-observer/polyfilled.js +0 -1
- package/lib/_virtual/_commonjsHelpers.js +15 -2
- package/lib/_virtual/index.js +6 -2
- package/lib/_virtual/rangePlugin.js +6 -2
- package/lib/components/Accordion/Accordion.Skeleton.js +1 -0
- package/lib/components/Breadcrumb/Breadcrumb.Skeleton.js +1 -0
- package/lib/components/Button/Button.Skeleton.js +1 -0
- package/lib/components/Button/Button.js +1 -0
- package/lib/components/{Checkbox → Button}/index.js +5 -4
- package/lib/components/ButtonSet/index.js +17 -0
- package/lib/components/Checkbox/Checkbox.Skeleton.js +1 -0
- package/lib/components/CodeSnippet/CodeSnippet.Skeleton.js +1 -0
- package/lib/components/CodeSnippet/CodeSnippet.js +1 -1
- package/lib/components/{Pagination → ComboBox}/index.js +3 -3
- package/lib/components/ComposedModal/ModalFooter.js +1 -1
- package/lib/components/ContainedList/ContainedList.js +8 -1
- package/lib/components/ContainedList/ContainedListItem/index.js +17 -0
- package/lib/components/ContainedList/index.js +1 -0
- package/lib/components/ContentSwitcher/index.js +4 -3
- package/lib/components/{ModalWrapper → Copy}/index.js +3 -2
- package/lib/components/CopyButton/index.js +17 -0
- package/lib/components/DangerButton/DangerButton.js +1 -1
- package/lib/components/DataTable/TableBatchAction.js +1 -1
- package/lib/components/DataTable/TableBatchActions.js +1 -1
- package/lib/components/DataTable/TableHeader.js +1 -3
- package/lib/components/DataTable/index.js +1 -0
- package/lib/components/DatePicker/DatePicker.Skeleton.js +1 -0
- package/lib/components/DatePicker/DatePicker.js +28 -6
- package/lib/components/DatePicker/index.js +19 -0
- package/lib/components/DatePickerInput/index.js +17 -0
- package/lib/components/Dropdown/Dropdown.Skeleton.js +1 -0
- package/lib/components/Dropdown/index.js +19 -0
- package/lib/components/FileUploader/FileUploader.Skeleton.js +1 -0
- package/lib/components/FluidDatePicker/FluidDatePicker.js +1 -1
- package/lib/components/FluidDropdown/FluidDropdown.js +1 -1
- package/lib/components/FluidSelect/FluidSelect.js +1 -1
- package/lib/components/FluidSelect/index.js +19 -0
- package/lib/components/FluidTextArea/FluidTextArea.js +1 -1
- package/lib/components/FluidTextInput/index.js +19 -0
- package/lib/components/{RadioButtonGroup → Form}/index.js +3 -2
- package/lib/components/Icon/Icon.Skeleton.js +1 -0
- package/lib/components/IconButton/index.js +1 -1
- package/lib/components/InlineCheckbox/index.js +17 -0
- package/lib/components/{ExpandableSearch → Link}/index.js +3 -2
- package/lib/components/Loading/index.js +17 -0
- package/lib/components/Menu/index.js +1 -0
- package/lib/components/Modal/Modal.js +1 -1
- package/lib/components/Modal/index.js +1 -0
- package/lib/components/ModalWrapper/ModalWrapper.js +1 -1
- package/lib/components/MultiSelect/index.js +1 -0
- package/lib/components/Notification/Notification.js +1 -1
- package/lib/components/NumberInput/NumberInput.js +37 -19
- package/lib/components/OverflowMenu/index.js +1 -0
- package/lib/components/OverflowMenuItem/OverflowMenuItem.js +83 -141
- package/lib/components/OverflowMenuItem/index.js +1 -0
- package/lib/components/Pagination/Pagination.Skeleton.js +1 -0
- package/lib/components/Pagination/Pagination.js +1 -1
- package/lib/components/Pagination/experimental/PageSelector.js +1 -1
- package/lib/components/Pagination/experimental/Pagination.js +2 -2
- package/lib/components/PaginationNav/PaginationNav.js +1 -1
- package/lib/components/PrimaryButton/PrimaryButton.js +1 -1
- package/lib/components/ProgressBar/ProgressBar.js +10 -3
- package/lib/components/ProgressIndicator/ProgressIndicator.Skeleton.js +1 -0
- package/lib/components/RadioButton/RadioButton.Skeleton.js +1 -0
- package/lib/components/RadioButton/index.js +1 -0
- package/lib/components/RadioTile/index.js +17 -0
- package/lib/components/Search/Search.Skeleton.js +1 -0
- package/lib/components/Search/Search.js +7 -1
- package/lib/components/Search/index.js +1 -0
- package/lib/components/SecondaryButton/SecondaryButton.js +1 -1
- package/lib/components/Select/Select.Skeleton.js +1 -0
- package/lib/components/Select/index.js +19 -0
- package/lib/components/SelectItem/index.js +17 -0
- package/lib/components/SkeletonText/SkeletonText.js +38 -37
- package/lib/components/SkeletonText/index.js +17 -0
- package/lib/components/Slider/Slider.Skeleton.js +1 -0
- package/lib/components/Slider/Slider.js +16 -26
- package/lib/components/Slider/index.js +4 -3
- package/lib/components/Tab/index.js +1 -0
- package/lib/components/Tabs/Tabs.Skeleton.js +1 -0
- package/lib/components/Tag/Tag.Skeleton.js +1 -0
- package/lib/components/Tag/Tag.js +2 -0
- package/lib/components/TextArea/TextArea.Skeleton.js +1 -0
- package/lib/components/TextArea/TextArea.js +10 -3
- package/lib/components/TextArea/index.js +19 -0
- package/lib/components/TextInput/TextInput.Skeleton.js +1 -0
- package/lib/components/TextInput/index.js +1 -0
- package/lib/components/Tile/Tile.js +7 -5
- package/lib/components/TileGroup/index.js +4 -3
- package/lib/components/TimePickerSelect/TimePickerSelect.js +53 -65
- package/lib/components/TimePickerSelect/index.js +3 -3
- package/lib/components/Toggle/Toggle.Skeleton.js +1 -0
- package/lib/components/ToggleSmall/ToggleSmall.Skeleton.js +1 -0
- package/lib/components/TreeView/index.js +1 -0
- package/lib/components/UIShell/HeaderGlobalAction.js +1 -1
- package/lib/components/UIShell/HeaderNavigation.js +1 -0
- package/lib/components/UIShell/SideNavLink.js +5 -0
- package/lib/components/UIShell/SideNavMenu.js +1 -0
- package/lib/index.js +85 -81
- package/lib/lib/components/Checkbox/Checkbox.Skeleton.d.ts +1 -0
- package/lib/lib/components/Checkbox/Checkbox.d.ts +1 -1
- package/lib/lib/components/Checkbox/index.d.ts +3 -2
- package/lib/lib/components/Text/Text.d.ts +1 -1
- package/lib/lib/components/Text/TextDirection.d.ts +2 -2
- package/lib/lib/index.d.ts +119 -0
- package/lib/node_modules/flatpickr/dist/l10n/index.js +2 -2
- package/lib/node_modules/flatpickr/dist/plugins/rangePlugin.js +2 -2
- package/lib/node_modules/use-resize-observer/polyfilled.js +0 -1
- package/package.json +7 -7
- package/scss/components/fluid-combo-box/_fluid-combo-box.scss +9 -0
- package/scss/components/fluid-combo-box/_index.scss +9 -0
- package/scss/components/fluid-multiselect/_fluid-multiselect.scss +9 -0
- package/scss/components/fluid-multiselect/_index.scss +9 -0
- package/scss/components/fluid-number-input/_fluid-number-input.scss +9 -0
- package/scss/components/fluid-number-input/_index.scss +9 -0
- package/scss/components/fluid-search/_fluid-search.scss +9 -0
- package/scss/components/fluid-search/_index.scss +9 -0
- package/es/components/Accordion/index.js +0 -11
- package/es/components/AccordionItem/index.js +0 -13
- package/es/components/Tabs/index.js +0 -10
- package/es/components/TimePickerSelect/next/TimePickerSelect.js +0 -70
- package/lib/components/Accordion/index.js +0 -20
- package/lib/components/AccordionItem/index.js +0 -18
- package/lib/components/Tabs/index.js +0 -23
- package/lib/components/TimePickerSelect/next/TimePickerSelect.js +0 -80
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
-
export { default as CheckboxSkeleton } from './Checkbox.Skeleton';
|
|
8
7
|
import Checkbox, { CheckboxProps } from './Checkbox';
|
|
9
|
-
export
|
|
8
|
+
export { default as CheckboxSkeleton } from './Checkbox.Skeleton';
|
|
10
9
|
export default Checkbox;
|
|
10
|
+
export { Checkbox };
|
|
11
|
+
export type { CheckboxProps };
|
|
@@ -11,7 +11,7 @@ import { TextDir } from './TextDirection';
|
|
|
11
11
|
export interface TextBaseProps {
|
|
12
12
|
dir?: TextDir | undefined;
|
|
13
13
|
}
|
|
14
|
-
export
|
|
14
|
+
export type TextProps<T extends React.ElementType> = PolymorphicProps<T, TextBaseProps>;
|
|
15
15
|
declare function Text<T extends React.ElementType>({ as, children, dir, ...rest }: TextProps<T>): JSX.Element;
|
|
16
16
|
declare namespace Text {
|
|
17
17
|
var propTypes: {
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import { ReactNode } from 'react';
|
|
9
|
-
export
|
|
10
|
-
export
|
|
9
|
+
export type TextDir = 'ltr' | 'rtl' | 'auto';
|
|
10
|
+
export type GetTextDirection = (text: string | string[] | undefined) => TextDir;
|
|
11
11
|
export interface TextDirectionProps {
|
|
12
12
|
children: ReactNode | undefined;
|
|
13
13
|
dir?: TextDir;
|
package/es/es/index.d.ts
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright IBM Corp. 2016, 2018
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
import './feature-flags';
|
|
8
|
+
export * from './components/Accordion';
|
|
9
|
+
export * from './components/AccordionItem';
|
|
10
|
+
export * from './components/AspectRatio';
|
|
11
|
+
export * from './components/Breadcrumb';
|
|
12
|
+
export * from './components/Button';
|
|
13
|
+
export * from './components/ButtonSet';
|
|
14
|
+
export * from './components/Checkbox';
|
|
15
|
+
export * from './components/ClassPrefix';
|
|
16
|
+
export * from './components/CodeSnippet';
|
|
17
|
+
export * from './components/ComboBox';
|
|
18
|
+
export * from './components/ComposedModal';
|
|
19
|
+
export * from './components/ContainedList';
|
|
20
|
+
export * from './components/ContentSwitcher';
|
|
21
|
+
export * from './components/Copy';
|
|
22
|
+
export * from './components/CopyButton';
|
|
23
|
+
export * from './components/DangerButton';
|
|
24
|
+
export * from './components/DataTable';
|
|
25
|
+
export * from './components/DatePicker';
|
|
26
|
+
export * from './components/DatePickerInput';
|
|
27
|
+
export * from './components/Dropdown';
|
|
28
|
+
export * from './components/ErrorBoundary';
|
|
29
|
+
export * from './components/FileUploader';
|
|
30
|
+
export * from './components/FilterableMultiSelect';
|
|
31
|
+
export * from './components/Form';
|
|
32
|
+
export * from './components/FluidForm';
|
|
33
|
+
export * from './components/FormGroup';
|
|
34
|
+
export * from './components/FormItem';
|
|
35
|
+
export * from './components/FormLabel';
|
|
36
|
+
export * from './components/Grid';
|
|
37
|
+
export * from './components/IdPrefix';
|
|
38
|
+
export * from './components/InlineLoading';
|
|
39
|
+
export * from './components/Link';
|
|
40
|
+
export * from './components/ListItem';
|
|
41
|
+
export * from './components/Loading';
|
|
42
|
+
export * from './components/Modal';
|
|
43
|
+
export * from './components/ModalWrapper';
|
|
44
|
+
export * from './components/MultiSelect';
|
|
45
|
+
export * from './components/Notification';
|
|
46
|
+
export * from './components/NumberInput';
|
|
47
|
+
export * from './components/OrderedList';
|
|
48
|
+
export * from './components/OverflowMenu';
|
|
49
|
+
export * from './components/OverflowMenuItem';
|
|
50
|
+
export * from './components/Pagination';
|
|
51
|
+
export * from './components/PaginationNav';
|
|
52
|
+
export * from './components/PasswordInput';
|
|
53
|
+
export * from './components/PrimaryButton';
|
|
54
|
+
export * from './components/ProgressIndicator';
|
|
55
|
+
export * from './components/RadioButton';
|
|
56
|
+
export * from './components/RadioButtonGroup';
|
|
57
|
+
export * from './components/Search';
|
|
58
|
+
export * from './components/ExpandableSearch';
|
|
59
|
+
export * from './components/SecondaryButton';
|
|
60
|
+
export * from './components/Select';
|
|
61
|
+
export * from './components/SelectItem';
|
|
62
|
+
export * from './components/SelectItemGroup';
|
|
63
|
+
export * from './components/Switch';
|
|
64
|
+
export * from './components/Slider';
|
|
65
|
+
export * from './components/StructuredList';
|
|
66
|
+
export * from './components/Tab';
|
|
67
|
+
export * from './components/TabContent';
|
|
68
|
+
export * from './components/Tabs';
|
|
69
|
+
export * from './components/Tag';
|
|
70
|
+
export * from './components/TextArea';
|
|
71
|
+
export * from './components/TextInput';
|
|
72
|
+
export * from './components/Tile';
|
|
73
|
+
export * from './components/RadioTile';
|
|
74
|
+
export * from './components/TileGroup';
|
|
75
|
+
export * from './components/TimePicker';
|
|
76
|
+
export * from './components/TimePickerSelect';
|
|
77
|
+
export * from './components/Toggle';
|
|
78
|
+
export * from './components/Toggletip';
|
|
79
|
+
export * from './components/TreeView';
|
|
80
|
+
export * from './components/UnorderedList';
|
|
81
|
+
export * from './components/SkeletonText';
|
|
82
|
+
export * from './components/SkeletonPlaceholder';
|
|
83
|
+
export * from './components/SkeletonIcon';
|
|
84
|
+
export * from './components/DataTableSkeleton';
|
|
85
|
+
export * from './components/Pagination/Pagination.Skeleton';
|
|
86
|
+
export * from './components/RadioButton/RadioButton.Skeleton';
|
|
87
|
+
export * from './components/Tag/Tag.Skeleton';
|
|
88
|
+
export * from './components/Toggle/Toggle.Skeleton';
|
|
89
|
+
export * from './components/ToggleSmall/ToggleSmall.Skeleton';
|
|
90
|
+
export * from './components/Icon/Icon.Skeleton';
|
|
91
|
+
export * from './components/UIShell';
|
|
92
|
+
export { useContextMenu as unstable_useContextMenu } from './components/ContextMenu';
|
|
93
|
+
export { FeatureFlags as unstable_FeatureFlags, useFeatureFlag as unstable_useFeatureFlag, useFeatureFlags as unstable_useFeatureFlags, } from './components/FeatureFlags';
|
|
94
|
+
export { FluidComboBox as unstable__FluidComboBox, FluidComboBoxSkeleton as unstable__FluidComboBoxSkeleton, } from './components/FluidComboBox';
|
|
95
|
+
export { FluidDatePicker as unstable__FluidDatePicker, FluidDatePickerSkeleton as unstable__FluidDatePickerSkeleton, } from './components/FluidDatePicker';
|
|
96
|
+
export { FluidDatePickerInput as unstable__FluidDatePickerInput } from './components/FluidDatePickerInput';
|
|
97
|
+
export { FluidDropdown as unstable__FluidDropdown, FluidDropdownSkeleton as unstable__FluidDropdownSkeleton, } from './components/FluidDropdown';
|
|
98
|
+
export { FluidMultiSelect as unstable__FluidMultiSelect, FluidMultiSelectSkeleton as unstable__FluidMultiSelectSkeleton, } from './components/FluidMultiSelect';
|
|
99
|
+
export { FluidSelect as unstable__FluidSelect, FluidSelectSkeleton as unstable__FluidSelectSkeleton, } from './components/FluidSelect';
|
|
100
|
+
export { FluidTextArea as unstable__FluidTextArea, FluidTextAreaSkeleton as unstable__FluidTextAreaSkeleton, } from './components/FluidTextArea';
|
|
101
|
+
export { FluidTextInput as unstable__FluidTextInput, FluidTextInputSkeleton as unstable__FluidTextInputSkeleton, } from './components/FluidTextInput';
|
|
102
|
+
export { FluidTimePicker as unstable__FluidTimePicker, FluidTimePickerSkeleton as unstable__FluidTimePickerSkeleton, } from './components/FluidTimePicker';
|
|
103
|
+
export { FluidTimePickerSelect as unstable__FluidTimePickerSelect } from './components/FluidTimePickerSelect';
|
|
104
|
+
export * from './components/Heading';
|
|
105
|
+
export * from './components/IconButton';
|
|
106
|
+
export * from './components/Layer';
|
|
107
|
+
export { LayoutDirection as unstable_LayoutDirection, useLayoutDirection as unstable_useLayoutDirection, } from './components/Layout';
|
|
108
|
+
export { Menu as unstable_Menu, MenuDivider as unstable_MenuDivider, MenuGroup as unstable_MenuGroup, MenuItem as unstable_MenuItem, MenuRadioGroup as unstable_MenuRadioGroup, MenuSelectableItem as unstable_MenuSelectableItem, } from './components/Menu';
|
|
109
|
+
export { OverflowMenuV2 as unstable_OverflowMenuV2 } from './components/OverflowMenuV2';
|
|
110
|
+
export { PageSelector as unstable_PageSelector, Pagination as unstable_Pagination, } from './components/Pagination/experimental';
|
|
111
|
+
export * from './components/Popover';
|
|
112
|
+
export * from './components/ProgressBar';
|
|
113
|
+
export * from './components/Stack';
|
|
114
|
+
export * from './components/Tooltip';
|
|
115
|
+
export { Text as unstable_Text, TextDirection as unstable_TextDirection, } from './components/Text';
|
|
116
|
+
export * from './components/Tooltip/DefinitionTooltip';
|
|
117
|
+
export * from './components/Theme';
|
|
118
|
+
export * from './internal/usePrefix';
|
|
119
|
+
export { useIdPrefix } from './internal/useIdPrefix';
|
package/es/index.js
CHANGED
|
@@ -13,14 +13,14 @@ export { default as AspectRatio } from './components/AspectRatio/AspectRatio.js'
|
|
|
13
13
|
export { default as Breadcrumb } from './components/Breadcrumb/Breadcrumb.js';
|
|
14
14
|
export { default as BreadcrumbItem } from './components/Breadcrumb/BreadcrumbItem.js';
|
|
15
15
|
export { default as BreadcrumbSkeleton } from './components/Breadcrumb/Breadcrumb.Skeleton.js';
|
|
16
|
-
export { default as ButtonSkeleton } from './components/Button/Button.Skeleton.js';
|
|
17
16
|
export { default as Button } from './components/Button/Button.js';
|
|
17
|
+
export { default as ButtonSkeleton } from './components/Button/Button.Skeleton.js';
|
|
18
18
|
export { default as ButtonSet } from './components/ButtonSet/ButtonSet.js';
|
|
19
|
-
export { default as CheckboxSkeleton } from './components/Checkbox/Checkbox.Skeleton.js';
|
|
20
19
|
export { default as Checkbox } from './components/Checkbox/Checkbox.js';
|
|
20
|
+
export { default as CheckboxSkeleton } from './components/Checkbox/Checkbox.Skeleton.js';
|
|
21
21
|
export { ClassPrefix } from './components/ClassPrefix/index.js';
|
|
22
|
-
export { default as CodeSnippetSkeleton } from './components/CodeSnippet/CodeSnippet.Skeleton.js';
|
|
23
22
|
export { default as CodeSnippet } from './components/CodeSnippet/CodeSnippet.js';
|
|
23
|
+
export { default as CodeSnippetSkeleton } from './components/CodeSnippet/CodeSnippet.Skeleton.js';
|
|
24
24
|
export { default as ComboBox } from './components/ComboBox/ComboBox.js';
|
|
25
25
|
export { default as ComposedModal, ModalBody } from './components/ComposedModal/ComposedModal.js';
|
|
26
26
|
export { ModalFooter } from './components/ComposedModal/ModalFooter.js';
|
|
@@ -31,11 +31,11 @@ export { default as Copy } from './components/Copy/Copy.js';
|
|
|
31
31
|
export { default as CopyButton } from './components/CopyButton/CopyButton.js';
|
|
32
32
|
export { default as DangerButton } from './components/DangerButton/DangerButton.js';
|
|
33
33
|
import './components/DataTable/index.js';
|
|
34
|
-
export { default as DatePickerSkeleton } from './components/DatePicker/DatePicker.Skeleton.js';
|
|
35
34
|
export { default as DatePicker } from './components/DatePicker/DatePicker.js';
|
|
35
|
+
export { default as DatePickerSkeleton } from './components/DatePicker/DatePicker.Skeleton.js';
|
|
36
36
|
export { default as DatePickerInput } from './components/DatePickerInput/DatePickerInput.js';
|
|
37
|
-
export { default as DropdownSkeleton } from './components/Dropdown/Dropdown.Skeleton.js';
|
|
38
37
|
export { default as Dropdown } from './components/Dropdown/Dropdown.js';
|
|
38
|
+
export { default as DropdownSkeleton } from './components/Dropdown/Dropdown.Skeleton.js';
|
|
39
39
|
export { default as ErrorBoundary } from './components/ErrorBoundary/ErrorBoundary.js';
|
|
40
40
|
export { ErrorBoundaryContext } from './components/ErrorBoundary/ErrorBoundaryContext.js';
|
|
41
41
|
export { default as FileUploader } from './components/FileUploader/FileUploader.js';
|
|
@@ -47,7 +47,7 @@ export { default as FileUploaderItem } from './components/FileUploader/FileUploa
|
|
|
47
47
|
import './components/MultiSelect/index.js';
|
|
48
48
|
export { default as Form } from './components/Form/Form.js';
|
|
49
49
|
export { default as FluidForm } from './components/FluidForm/FluidForm.js';
|
|
50
|
-
|
|
50
|
+
export { FormContext } from './components/FluidForm/FormContext.js';
|
|
51
51
|
export { default as FormGroup } from './components/FormGroup/FormGroup.js';
|
|
52
52
|
export { default as FormItem } from './components/FormItem/FormItem.js';
|
|
53
53
|
export { default as FormLabel } from './components/FormLabel/FormLabel.js';
|
|
@@ -83,8 +83,8 @@ export { default as Search } from './components/Search/Search.js';
|
|
|
83
83
|
export { default as SearchSkeleton } from './components/Search/Search.Skeleton.js';
|
|
84
84
|
export { default as ExpandableSearch } from './components/ExpandableSearch/ExpandableSearch.js';
|
|
85
85
|
export { default as SecondaryButton } from './components/SecondaryButton/SecondaryButton.js';
|
|
86
|
-
export { default as SelectSkeleton } from './components/Select/Select.Skeleton.js';
|
|
87
86
|
export { default as Select } from './components/Select/Select.js';
|
|
87
|
+
export { default as SelectSkeleton } from './components/Select/Select.Skeleton.js';
|
|
88
88
|
export { default as SelectItem } from './components/SelectItem/SelectItem.js';
|
|
89
89
|
export { default as SelectItemGroup } from './components/SelectItemGroup/SelectItemGroup.js';
|
|
90
90
|
export { default as Switch } from './components/Switch/Switch.js';
|
|
@@ -95,18 +95,18 @@ export { default as Tab } from './components/Tab/index.js';
|
|
|
95
95
|
export { default as TabContent } from './components/TabContent/TabContent.js';
|
|
96
96
|
export { IconTab, TabList, TabPanel, TabPanels, Tabs } from './components/Tabs/Tabs.js';
|
|
97
97
|
export { default as TabsSkeleton } from './components/Tabs/Tabs.Skeleton.js';
|
|
98
|
+
export { default as Tag, types } from './components/Tag/Tag.js';
|
|
98
99
|
export { default as TagSkeleton } from './components/Tag/Tag.Skeleton.js';
|
|
99
|
-
export { default as Tag } from './components/Tag/Tag.js';
|
|
100
|
-
export { default as TextAreaSkeleton } from './components/TextArea/TextArea.Skeleton.js';
|
|
101
100
|
export { default as TextArea } from './components/TextArea/TextArea.js';
|
|
101
|
+
export { default as TextAreaSkeleton } from './components/TextArea/TextArea.Skeleton.js';
|
|
102
102
|
import './components/TextInput/index.js';
|
|
103
103
|
export { ClickableTile, ExpandableTile, SelectableTile, Tile, TileAboveTheFoldContent, TileBelowTheFoldContent } from './components/Tile/Tile.js';
|
|
104
104
|
export { default as RadioTile } from './components/RadioTile/RadioTile.js';
|
|
105
105
|
export { default as TileGroup } from './components/TileGroup/index.js';
|
|
106
106
|
export { default as TimePicker } from './components/TimePicker/TimePicker.js';
|
|
107
107
|
export { default as TimePickerSelect } from './components/TimePickerSelect/index.js';
|
|
108
|
-
export { default as ToggleSkeleton } from './components/Toggle/Toggle.Skeleton.js';
|
|
109
108
|
export { Toggle } from './components/Toggle/Toggle.js';
|
|
109
|
+
export { default as ToggleSkeleton } from './components/Toggle/Toggle.Skeleton.js';
|
|
110
110
|
export { Toggletip, ToggletipActions, ToggletipButton, ToggletipContent, ToggletipLabel } from './components/Toggletip/index.js';
|
|
111
111
|
import './components/TreeView/index.js';
|
|
112
112
|
export { default as UnorderedList } from './components/UnorderedList/UnorderedList.js';
|
|
@@ -115,8 +115,6 @@ export { default as SkeletonPlaceholder } from './components/SkeletonPlaceholder
|
|
|
115
115
|
export { default as SkeletonIcon } from './components/SkeletonIcon/SkeletonIcon.js';
|
|
116
116
|
export { default as DataTableSkeleton } from './components/DataTableSkeleton/DataTableSkeleton.js';
|
|
117
117
|
export { default as RadioButtonSkeleton } from './components/RadioButton/RadioButton.Skeleton.js';
|
|
118
|
-
export { default as SliderSkeleton } from './components/Slider/Slider.Skeleton.js';
|
|
119
|
-
export { default as TextInputSkeleton } from './components/TextInput/TextInput.Skeleton.js';
|
|
120
118
|
export { default as ToggleSmallSkeleton } from './components/ToggleSmall/ToggleSmall.Skeleton.js';
|
|
121
119
|
export { default as IconSkeleton } from './components/Icon/Icon.Skeleton.js';
|
|
122
120
|
export { default as Content } from './components/UIShell/Content.js';
|
|
@@ -128,7 +126,7 @@ export { default as HeaderMenu } from './components/UIShell/HeaderMenu.js';
|
|
|
128
126
|
export { default as HeaderMenuButton } from './components/UIShell/HeaderMenuButton.js';
|
|
129
127
|
export { default as HeaderMenuItem } from './components/UIShell/HeaderMenuItem.js';
|
|
130
128
|
export { default as HeaderName } from './components/UIShell/HeaderName.js';
|
|
131
|
-
export { HeaderNavigation } from './components/UIShell/HeaderNavigation.js';
|
|
129
|
+
export { default as HeaderNavigation } from './components/UIShell/HeaderNavigation.js';
|
|
132
130
|
export { default as HeaderPanel } from './components/UIShell/HeaderPanel.js';
|
|
133
131
|
export { default as HeaderSideNavItems } from './components/UIShell/HeaderSideNavItems.js';
|
|
134
132
|
export { default as Switcher } from './components/UIShell/Switcher.js';
|
|
@@ -145,7 +143,7 @@ export { default as SideNavItem } from './components/UIShell/SideNavItem.js';
|
|
|
145
143
|
export { default as SideNavItems } from './components/UIShell/SideNavItems.js';
|
|
146
144
|
export { default as SideNavLink } from './components/UIShell/SideNavLink.js';
|
|
147
145
|
export { default as SideNavLinkText } from './components/UIShell/SideNavLinkText.js';
|
|
148
|
-
export { SideNavMenu } from './components/UIShell/SideNavMenu.js';
|
|
146
|
+
export { default as SideNavMenu } from './components/UIShell/SideNavMenu.js';
|
|
149
147
|
export { default as SideNavMenuItem } from './components/UIShell/SideNavMenuItem.js';
|
|
150
148
|
export { default as SideNavSwitcher } from './components/UIShell/SideNavSwitcher.js';
|
|
151
149
|
export { default as unstable_useContextMenu } from './components/ContextMenu/useContextMenu.js';
|
|
@@ -183,22 +181,24 @@ export { HStack, VStack } from './components/Stack/index.js';
|
|
|
183
181
|
export { DefinitionTooltip } from './components/Tooltip/DefinitionTooltip.js';
|
|
184
182
|
export { Tooltip } from './components/Tooltip/Tooltip.js';
|
|
185
183
|
import './components/Text/index.js';
|
|
186
|
-
export { GlobalTheme, Theme, useTheme } from './components/Theme/index.js';
|
|
187
|
-
export { usePrefix } from './internal/usePrefix.js';
|
|
184
|
+
export { GlobalTheme, Theme, ThemeContext, useTheme } from './components/Theme/index.js';
|
|
185
|
+
export { PrefixContext, usePrefix } from './internal/usePrefix.js';
|
|
188
186
|
export { useIdPrefix } from './internal/useIdPrefix.js';
|
|
189
|
-
export { default as
|
|
190
|
-
export { default as DataTable } from './components/DataTable/DataTable.js';
|
|
191
|
-
export { default as TreeNode } from './components/TreeView/TreeNode.js';
|
|
187
|
+
export { default as unstable_Menu } from './components/Menu/Menu.js';
|
|
192
188
|
export { default as unstable_MenuDivider } from './components/Menu/MenuDivider.js';
|
|
193
189
|
export { default as unstable_MenuGroup } from './components/Menu/MenuGroup.js';
|
|
194
190
|
export { default as unstable_MenuItem } from './components/Menu/MenuItem.js';
|
|
195
191
|
export { default as unstable_MenuRadioGroup } from './components/Menu/MenuRadioGroup.js';
|
|
196
192
|
export { default as unstable_MenuSelectableItem } from './components/Menu/MenuSelectableItem.js';
|
|
193
|
+
export { default as ContainedListItem } from './components/ContainedList/ContainedListItem/ContainedListItem.js';
|
|
197
194
|
export { default as ContainedList } from './components/ContainedList/ContainedList.js';
|
|
198
|
-
export { default as
|
|
199
|
-
export { default as
|
|
195
|
+
export { default as SliderSkeleton } from './components/Slider/Slider.Skeleton.js';
|
|
196
|
+
export { default as TextInputSkeleton } from './components/TextInput/TextInput.Skeleton.js';
|
|
197
|
+
export { default as TreeNode } from './components/TreeView/TreeNode.js';
|
|
200
198
|
export { default as TreeView } from './components/TreeView/TreeView.js';
|
|
201
|
-
export {
|
|
199
|
+
export { Text as unstable_Text } from './components/Text/Text.js';
|
|
200
|
+
export { TextDirection as unstable_TextDirection } from './components/Text/TextDirection.js';
|
|
201
|
+
export { default as DataTable } from './components/DataTable/DataTable.js';
|
|
202
202
|
export { Table } from './components/DataTable/Table.js';
|
|
203
203
|
export { default as TableActionList } from './components/DataTable/TableActionList.js';
|
|
204
204
|
export { default as TableBatchAction } from './components/DataTable/TableBatchAction.js';
|
|
@@ -220,6 +220,6 @@ export { default as TableToolbarContent } from './components/DataTable/TableTool
|
|
|
220
220
|
export { default as TableToolbarSearch } from './components/DataTable/TableToolbarSearch.js';
|
|
221
221
|
export { default as TableToolbarMenu } from './components/DataTable/TableToolbarMenu.js';
|
|
222
222
|
export { default as FilterableMultiSelect } from './components/MultiSelect/FilterableMultiSelect.js';
|
|
223
|
+
export { default as MultiSelect } from './components/MultiSelect/MultiSelect.js';
|
|
224
|
+
export { default as TextInput } from './components/TextInput/TextInput.js';
|
|
223
225
|
export { Stack } from './components/Stack/Stack.js';
|
|
224
|
-
export { Text as unstable_Text } from './components/Text/Text.js';
|
|
225
|
-
export { TextDirection as unstable_TextDirection } from './components/Text/TextDirection.js';
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import { commonjsGlobal, getDefaultExportFromCjs } from '../../../../_virtual/_commonjsHelpers.js';
|
|
9
|
-
import {
|
|
9
|
+
import { exports as l10nExports, __module as l10n$1 } from '../../../../_virtual/index.js';
|
|
10
10
|
|
|
11
11
|
(function (module, exports) {
|
|
12
12
|
(function (global, factory) {
|
|
@@ -1416,8 +1416,8 @@ import { l as l10n$1 } from '../../../../_virtual/index.js';
|
|
|
1416
1416
|
value: true
|
|
1417
1417
|
});
|
|
1418
1418
|
});
|
|
1419
|
-
})(l10n$1,
|
|
1419
|
+
})(l10n$1, l10nExports);
|
|
1420
1420
|
|
|
1421
|
-
var l10n = /*@__PURE__*/getDefaultExportFromCjs(
|
|
1421
|
+
var l10n = /*@__PURE__*/getDefaultExportFromCjs(l10nExports);
|
|
1422
1422
|
|
|
1423
1423
|
export { l10n as default };
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import { commonjsGlobal } from '../../../../_virtual/_commonjsHelpers.js';
|
|
9
|
-
import {
|
|
9
|
+
import { __module as rangePlugin$1, exports as rangePluginExports } from '../../../../_virtual/rangePlugin.js';
|
|
10
10
|
|
|
11
11
|
(function (module, exports) {
|
|
12
12
|
(function (global, factory) {
|
|
@@ -191,6 +191,6 @@ import { r as rangePlugin$1 } from '../../../../_virtual/rangePlugin.js';
|
|
|
191
191
|
});
|
|
192
192
|
})(rangePlugin$1);
|
|
193
193
|
|
|
194
|
-
var rangePlugin =
|
|
194
|
+
var rangePlugin = rangePluginExports;
|
|
195
195
|
|
|
196
196
|
export { rangePlugin as default };
|
|
@@ -16,8 +16,21 @@ function getDefaultExportFromCjs (x) {
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
function getAugmentedNamespace(n) {
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
if (n.__esModule) return n;
|
|
20
|
+
var f = n.default;
|
|
21
|
+
if (typeof f == "function") {
|
|
22
|
+
var a = function a () {
|
|
23
|
+
if (this instanceof a) {
|
|
24
|
+
var args = [null];
|
|
25
|
+
args.push.apply(args, arguments);
|
|
26
|
+
var Ctor = Function.bind.apply(f, args);
|
|
27
|
+
return new Ctor();
|
|
28
|
+
}
|
|
29
|
+
return f.apply(this, arguments);
|
|
30
|
+
};
|
|
31
|
+
a.prototype = f.prototype;
|
|
32
|
+
} else a = {};
|
|
33
|
+
Object.defineProperty(a, '__esModule', {value: true});
|
|
21
34
|
Object.keys(n).forEach(function (k) {
|
|
22
35
|
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
23
36
|
Object.defineProperty(a, k, d.get ? d : {
|
package/lib/_virtual/index.js
CHANGED
|
@@ -9,6 +9,10 @@
|
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
exports.exports = {};
|
|
13
|
+
var l10n = {
|
|
14
|
+
get exports(){ return exports.exports; },
|
|
15
|
+
set exports(v){ exports.exports = v; },
|
|
16
|
+
};
|
|
13
17
|
|
|
14
|
-
exports.
|
|
18
|
+
exports.__module = l10n;
|
|
@@ -9,6 +9,10 @@
|
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
exports.exports = {};
|
|
13
|
+
var rangePlugin = {
|
|
14
|
+
get exports(){ return exports.exports; },
|
|
15
|
+
set exports(v){ exports.exports = v; },
|
|
16
|
+
};
|
|
13
17
|
|
|
14
|
-
exports.
|
|
18
|
+
exports.__module = rangePlugin;
|
|
@@ -147,6 +147,7 @@ var Button = /*#__PURE__*/React__default["default"].forwardRef(function Button(_
|
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
return /*#__PURE__*/React__default["default"].createElement(index.IconButton, _rollupPluginBabelHelpers["extends"]({
|
|
150
|
+
as: as,
|
|
150
151
|
align: align,
|
|
151
152
|
label: iconDescription,
|
|
152
153
|
kind: kind,
|
|
@@ -9,10 +9,11 @@
|
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
11
11
|
|
|
12
|
-
var
|
|
13
|
-
var
|
|
12
|
+
var Button = require('./Button.js');
|
|
13
|
+
var Button_Skeleton = require('./Button.Skeleton.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
exports.
|
|
18
|
-
exports["default"] =
|
|
17
|
+
exports.Button = Button["default"];
|
|
18
|
+
exports["default"] = Button["default"];
|
|
19
|
+
exports.ButtonSkeleton = Button_Skeleton["default"];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright IBM Corp. 2016, 2022
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
'use strict';
|
|
9
|
+
|
|
10
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
11
|
+
|
|
12
|
+
var ButtonSet = require('./ButtonSet.js');
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
exports.ButtonSet = ButtonSet["default"];
|
|
17
|
+
exports["default"] = ButtonSet["default"];
|
|
@@ -16,8 +16,8 @@ var cx = require('classnames');
|
|
|
16
16
|
var polyfilled = require('../../node_modules/use-resize-observer/polyfilled.js');
|
|
17
17
|
var iconsReact = require('@carbon/icons-react');
|
|
18
18
|
var Copy = require('../Copy/Copy.js');
|
|
19
|
-
require('../Button/Button.Skeleton.js');
|
|
20
19
|
var Button = require('../Button/Button.js');
|
|
20
|
+
require('../Button/Button.Skeleton.js');
|
|
21
21
|
var CopyButton = require('../CopyButton/CopyButton.js');
|
|
22
22
|
var uniqueId = require('../../tools/uniqueId.js');
|
|
23
23
|
var copy = require('copy-to-clipboard');
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
11
11
|
|
|
12
|
-
var
|
|
13
|
-
require('./Pagination.Skeleton.js');
|
|
12
|
+
var ComboBox = require('./ComboBox.js');
|
|
14
13
|
|
|
15
14
|
|
|
16
15
|
|
|
17
|
-
exports
|
|
16
|
+
exports.ComboBox = ComboBox["default"];
|
|
17
|
+
exports["default"] = ComboBox["default"];
|
|
@@ -12,8 +12,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
12
12
|
var _rollupPluginBabelHelpers = require('../../_virtual/_rollupPluginBabelHelpers.js');
|
|
13
13
|
var React = require('react');
|
|
14
14
|
var PropTypes = require('prop-types');
|
|
15
|
-
require('../Button/Button.Skeleton.js');
|
|
16
15
|
var Button = require('../Button/Button.js');
|
|
16
|
+
require('../Button/Button.Skeleton.js');
|
|
17
17
|
var ButtonSet = require('../ButtonSet/ButtonSet.js');
|
|
18
18
|
var cx = require('classnames');
|
|
19
19
|
var usePrefix = require('../../internal/usePrefix.js');
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
11
11
|
|
|
12
|
+
var _rollupPluginBabelHelpers = require('../../_virtual/_rollupPluginBabelHelpers.js');
|
|
12
13
|
var React = require('react');
|
|
13
14
|
var PropTypes = require('prop-types');
|
|
14
15
|
var cx = require('classnames');
|
|
@@ -27,6 +28,7 @@ function ContainedList(_ref) {
|
|
|
27
28
|
var action = _ref.action,
|
|
28
29
|
children = _ref.children,
|
|
29
30
|
className = _ref.className,
|
|
31
|
+
isInset = _ref.isInset,
|
|
30
32
|
_ref$kind = _ref.kind,
|
|
31
33
|
kind = _ref$kind === void 0 ? variants[0] : _ref$kind,
|
|
32
34
|
label = _ref.label,
|
|
@@ -34,7 +36,7 @@ function ContainedList(_ref) {
|
|
|
34
36
|
size = _ref$size === void 0 ? 'lg' : _ref$size;
|
|
35
37
|
var labelId = "".concat(useId.useId('contained-list'), "-header");
|
|
36
38
|
var prefix = usePrefix.usePrefix();
|
|
37
|
-
var classes = cx__default["default"]("".concat(prefix, "--contained-list"), "".concat(prefix, "--contained-list--").concat(kind), "".concat(prefix, "--contained-list--").concat(size), className);
|
|
39
|
+
var classes = cx__default["default"]("".concat(prefix, "--contained-list"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(prefix, "--contained-list--inset-rulers"), isInset), "".concat(prefix, "--contained-list--").concat(kind), "".concat(prefix, "--contained-list--").concat(size), className);
|
|
38
40
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
39
41
|
className: classes
|
|
40
42
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -65,6 +67,11 @@ ContainedList.propTypes = {
|
|
|
65
67
|
*/
|
|
66
68
|
className: PropTypes__default["default"].string,
|
|
67
69
|
|
|
70
|
+
/**
|
|
71
|
+
* Specify whether the dividing lines in between list items should be inset.
|
|
72
|
+
*/
|
|
73
|
+
isInset: PropTypes__default["default"].bool,
|
|
74
|
+
|
|
68
75
|
/**
|
|
69
76
|
* The kind of ContainedList you want to display
|
|
70
77
|
*/
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright IBM Corp. 2016, 2022
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
'use strict';
|
|
9
|
+
|
|
10
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
11
|
+
|
|
12
|
+
var ContainedListItem = require('./ContainedListItem.js');
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
exports.ContainedListItem = ContainedListItem["default"];
|
|
17
|
+
exports["default"] = ContainedListItem["default"];
|
|
@@ -14,5 +14,6 @@ var ContainedListItem = require('./ContainedListItem/ContainedListItem.js');
|
|
|
14
14
|
|
|
15
15
|
ContainedList["default"].ContainedListItem = ContainedListItem["default"];
|
|
16
16
|
|
|
17
|
+
exports.ContainedList = ContainedList["default"];
|
|
17
18
|
exports["default"] = ContainedList["default"];
|
|
18
19
|
exports.ContainedListItem = ContainedListItem["default"];
|
|
@@ -10,8 +10,9 @@
|
|
|
10
10
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
11
11
|
|
|
12
12
|
var createClassWrapper = require('../../internal/createClassWrapper.js');
|
|
13
|
-
var ContentSwitcher = require('./ContentSwitcher.js');
|
|
13
|
+
var ContentSwitcher$1 = require('./ContentSwitcher.js');
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var ContentSwitcher = createClassWrapper.createClassWrapper(ContentSwitcher$1["default"]);
|
|
16
16
|
|
|
17
|
-
exports
|
|
17
|
+
exports.ContentSwitcher = ContentSwitcher;
|
|
18
|
+
exports["default"] = ContentSwitcher;
|
|
@@ -9,8 +9,9 @@
|
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var Copy = require('./Copy.js');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
exports
|
|
16
|
+
exports.Copy = Copy["default"];
|
|
17
|
+
exports["default"] = Copy["default"];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright IBM Corp. 2016, 2022
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
'use strict';
|
|
9
|
+
|
|
10
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
11
|
+
|
|
12
|
+
var CopyButton = require('./CopyButton.js');
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
exports.CopyButton = CopyButton["default"];
|
|
17
|
+
exports["default"] = CopyButton["default"];
|