@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
|
@@ -12,8 +12,21 @@ function getDefaultExportFromCjs (x) {
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
function getAugmentedNamespace(n) {
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
if (n.__esModule) return n;
|
|
16
|
+
var f = n.default;
|
|
17
|
+
if (typeof f == "function") {
|
|
18
|
+
var a = function a () {
|
|
19
|
+
if (this instanceof a) {
|
|
20
|
+
var args = [null];
|
|
21
|
+
args.push.apply(args, arguments);
|
|
22
|
+
var Ctor = Function.bind.apply(f, args);
|
|
23
|
+
return new Ctor();
|
|
24
|
+
}
|
|
25
|
+
return f.apply(this, arguments);
|
|
26
|
+
};
|
|
27
|
+
a.prototype = f.prototype;
|
|
28
|
+
} else a = {};
|
|
29
|
+
Object.defineProperty(a, '__esModule', {value: true});
|
|
17
30
|
Object.keys(n).forEach(function (k) {
|
|
18
31
|
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
19
32
|
Object.defineProperty(a, k, d.get ? d : {
|
package/es/_virtual/index.js
CHANGED
|
@@ -5,6 +5,10 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var l10nExports = {};
|
|
9
|
+
var l10n = {
|
|
10
|
+
get exports(){ return l10nExports; },
|
|
11
|
+
set exports(v){ l10nExports = v; },
|
|
12
|
+
};
|
|
9
13
|
|
|
10
|
-
export { l10n as
|
|
14
|
+
export { l10n as __module, l10nExports as exports };
|
|
@@ -5,6 +5,10 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var rangePluginExports = {};
|
|
9
|
+
var rangePlugin = {
|
|
10
|
+
get exports(){ return rangePluginExports; },
|
|
11
|
+
set exports(v){ rangePluginExports = v; },
|
|
12
|
+
};
|
|
9
13
|
|
|
10
|
-
export { rangePlugin as
|
|
14
|
+
export { rangePlugin as __module, rangePluginExports as exports };
|
|
@@ -5,6 +5,6 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export { default } from './
|
|
8
|
+
import Button from './Button.js';
|
|
9
|
+
export { default as Button, default } from './Button.js';
|
|
10
|
+
export { default as ButtonSkeleton } from './Button.Skeleton.js';
|
|
@@ -5,6 +5,5 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import
|
|
9
|
-
export { default } from './
|
|
10
|
-
import './Pagination.Skeleton.js';
|
|
8
|
+
import ButtonSet from './ButtonSet.js';
|
|
9
|
+
export { default as ButtonSet, default } from './ButtonSet.js';
|
|
@@ -12,8 +12,8 @@ import cx from 'classnames';
|
|
|
12
12
|
import useResizeObserver from '../../node_modules/use-resize-observer/polyfilled.js';
|
|
13
13
|
import { ChevronDown } from '@carbon/icons-react';
|
|
14
14
|
import Copy from '../Copy/Copy.js';
|
|
15
|
-
import '../Button/Button.Skeleton.js';
|
|
16
15
|
import Button from '../Button/Button.js';
|
|
16
|
+
import '../Button/Button.Skeleton.js';
|
|
17
17
|
import CopyButton from '../CopyButton/CopyButton.js';
|
|
18
18
|
import uniqueId from '../../tools/uniqueId.js';
|
|
19
19
|
import copy from 'copy-to-clipboard';
|
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import
|
|
9
|
-
export { default } from './
|
|
8
|
+
import ComboBox from './ComboBox.js';
|
|
9
|
+
export { default as ComboBox, default } from './ComboBox.js';
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
import { objectWithoutProperties as _objectWithoutProperties, defineProperty as _defineProperty, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
|
9
9
|
import React__default from 'react';
|
|
10
10
|
import PropTypes from 'prop-types';
|
|
11
|
-
import '../Button/Button.Skeleton.js';
|
|
12
11
|
import Button from '../Button/Button.js';
|
|
12
|
+
import '../Button/Button.Skeleton.js';
|
|
13
13
|
import ButtonSet from '../ButtonSet/ButtonSet.js';
|
|
14
14
|
import cx from 'classnames';
|
|
15
15
|
import { usePrefix } from '../../internal/usePrefix.js';
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
+
import { defineProperty as _defineProperty } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
|
8
9
|
import React__default from 'react';
|
|
9
10
|
import PropTypes from 'prop-types';
|
|
10
11
|
import cx from 'classnames';
|
|
@@ -17,6 +18,7 @@ function ContainedList(_ref) {
|
|
|
17
18
|
var action = _ref.action,
|
|
18
19
|
children = _ref.children,
|
|
19
20
|
className = _ref.className,
|
|
21
|
+
isInset = _ref.isInset,
|
|
20
22
|
_ref$kind = _ref.kind,
|
|
21
23
|
kind = _ref$kind === void 0 ? variants[0] : _ref$kind,
|
|
22
24
|
label = _ref.label,
|
|
@@ -24,7 +26,7 @@ function ContainedList(_ref) {
|
|
|
24
26
|
size = _ref$size === void 0 ? 'lg' : _ref$size;
|
|
25
27
|
var labelId = "".concat(useId('contained-list'), "-header");
|
|
26
28
|
var prefix = usePrefix();
|
|
27
|
-
var classes = cx("".concat(prefix, "--contained-list"), "".concat(prefix, "--contained-list--").concat(kind), "".concat(prefix, "--contained-list--").concat(size), className);
|
|
29
|
+
var classes = cx("".concat(prefix, "--contained-list"), _defineProperty({}, "".concat(prefix, "--contained-list--inset-rulers"), isInset), "".concat(prefix, "--contained-list--").concat(kind), "".concat(prefix, "--contained-list--").concat(size), className);
|
|
28
30
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
29
31
|
className: classes
|
|
30
32
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -55,6 +57,11 @@ ContainedList.propTypes = {
|
|
|
55
57
|
*/
|
|
56
58
|
className: PropTypes.string,
|
|
57
59
|
|
|
60
|
+
/**
|
|
61
|
+
* Specify whether the dividing lines in between list items should be inset.
|
|
62
|
+
*/
|
|
63
|
+
isInset: PropTypes.bool,
|
|
64
|
+
|
|
58
65
|
/**
|
|
59
66
|
* The kind of ContainedList you want to display
|
|
60
67
|
*/
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
import ContainedListItem from './ContainedListItem.js';
|
|
9
|
+
export { default as ContainedListItem, default } from './ContainedListItem.js';
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import ContainedList from './ContainedList.js';
|
|
9
|
-
export { default } from './ContainedList.js';
|
|
9
|
+
export { default as ContainedList, default } from './ContainedList.js';
|
|
10
10
|
import ContainedListItem from './ContainedListItem/ContainedListItem.js';
|
|
11
11
|
export { default as ContainedListItem } from './ContainedListItem/ContainedListItem.js';
|
|
12
12
|
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import { createClassWrapper } from '../../internal/createClassWrapper.js';
|
|
9
|
-
import ContentSwitcher from './ContentSwitcher.js';
|
|
9
|
+
import ContentSwitcher$1 from './ContentSwitcher.js';
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var ContentSwitcher = createClassWrapper(ContentSwitcher$1);
|
|
12
12
|
|
|
13
|
-
export {
|
|
13
|
+
export { ContentSwitcher, ContentSwitcher as default };
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
import CopyButton from './CopyButton.js';
|
|
9
|
+
export { default as CopyButton, default } from './CopyButton.js';
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
|
|
8
8
|
import { extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
|
9
9
|
import React__default from 'react';
|
|
10
|
-
import '../Button/Button.Skeleton.js';
|
|
11
10
|
import Button from '../Button/Button.js';
|
|
11
|
+
import '../Button/Button.Skeleton.js';
|
|
12
12
|
|
|
13
13
|
var DangerButton = function DangerButton(props) {
|
|
14
14
|
return /*#__PURE__*/React__default.createElement(Button, _extends({
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
9
9
|
import React__default from 'react';
|
|
10
10
|
import { AddFilled } from '@carbon/icons-react';
|
|
11
|
-
import '../Button/Button.Skeleton.js';
|
|
12
11
|
import Button from '../Button/Button.js';
|
|
12
|
+
import '../Button/Button.Skeleton.js';
|
|
13
13
|
|
|
14
14
|
var TableBatchAction = function TableBatchAction(props) {
|
|
15
15
|
return /*#__PURE__*/React__default.createElement(Button, props);
|
|
@@ -9,8 +9,8 @@ import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _
|
|
|
9
9
|
import cx from 'classnames';
|
|
10
10
|
import PropTypes from 'prop-types';
|
|
11
11
|
import React__default from 'react';
|
|
12
|
-
import '../Button/Button.Skeleton.js';
|
|
13
12
|
import Button from '../Button/Button.js';
|
|
13
|
+
import '../Button/Button.Skeleton.js';
|
|
14
14
|
import TableActionList from './TableActionList.js';
|
|
15
15
|
import '../Text/index.js';
|
|
16
16
|
import { usePrefix } from '../../internal/usePrefix.js';
|
|
@@ -96,9 +96,7 @@ var TableHeader = /*#__PURE__*/React__default.forwardRef(function TableHeader(_r
|
|
|
96
96
|
ref: ref,
|
|
97
97
|
scope: scope
|
|
98
98
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
99
|
-
|
|
100
|
-
display: 'none'
|
|
101
|
-
},
|
|
99
|
+
className: "".concat(prefix, "--table-sort__description"),
|
|
102
100
|
id: uniqueId
|
|
103
101
|
}, sortDescription), /*#__PURE__*/React__default.createElement("button", _extends({
|
|
104
102
|
type: "button",
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import DataTable from './DataTable.js';
|
|
9
|
-
export { default } from './DataTable.js';
|
|
9
|
+
export { default as DataTable, default } from './DataTable.js';
|
|
10
10
|
import { Table } from './Table.js';
|
|
11
11
|
export { Table } from './Table.js';
|
|
12
12
|
import TableActionList from './TableActionList.js';
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import { objectWithoutProperties as _objectWithoutProperties, defineProperty as _defineProperty, typeof as _typeof, objectSpread2 as _objectSpread2, extends as _extends, toConsumableArray as _toConsumableArray } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
|
8
|
+
import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _slicedToArray, defineProperty as _defineProperty, typeof as _typeof, objectSpread2 as _objectSpread2, extends as _extends, toConsumableArray as _toConsumableArray } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
|
9
9
|
import PropTypes from 'prop-types';
|
|
10
|
-
import React__default, { useContext, useRef, useEffect } from 'react';
|
|
10
|
+
import React__default, { useContext, useState, useCallback, useRef, useEffect, useImperativeHandle } from 'react';
|
|
11
11
|
import cx from 'classnames';
|
|
12
12
|
import flatpickr from 'flatpickr';
|
|
13
13
|
import l10n from '../../node_modules/flatpickr/dist/l10n/index.js';
|
|
@@ -121,8 +121,8 @@ function isLabelTextEmpty(children) {
|
|
|
121
121
|
});
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
-
var rightArrowHTML = "<svg width=\"16px\" height=\"16px\" viewBox=\"0 0 16 16\">\n <polygon points=\"11,8 6,13 5.3,12.3 9.6,8 5.3,3.7 6,3 \"/>\n
|
|
125
|
-
var leftArrowHTML = "<svg width=\"16px\" height=\"16px\" viewBox=\"0 0 16 16\">\n <polygon points=\"5,8 10,3 10.7,3.7 6.4,8 10.7,12.3 10,13 \"/>\n
|
|
124
|
+
var rightArrowHTML = "<svg width=\"16px\" height=\"16px\" viewBox=\"0 0 16 16\">\n <polygon points=\"11,8 6,13 5.3,12.3 9.6,8 5.3,3.7 6,3 \"/>\n</svg>";
|
|
125
|
+
var leftArrowHTML = "<svg width=\"16px\" height=\"16px\" viewBox=\"0 0 16 16\">\n <polygon points=\"5,8 10,3 10.7,3.7 6.4,8 10.7,12.3 10,13 \"/>\n</svg>";
|
|
126
126
|
|
|
127
127
|
function updateClassNames(calendar, prefix) {
|
|
128
128
|
var calendarContainer = calendar.calendarContainer;
|
|
@@ -191,7 +191,17 @@ var DatePicker = /*#__PURE__*/React__default.forwardRef(function DatePicker(_ref
|
|
|
191
191
|
var _useContext = useContext(FormContext),
|
|
192
192
|
isFluid = _useContext.isFluid;
|
|
193
193
|
|
|
194
|
-
var
|
|
194
|
+
var _useState = useState(false),
|
|
195
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
196
|
+
hasInput = _useState2[0],
|
|
197
|
+
setHasInput = _useState2[1];
|
|
198
|
+
|
|
199
|
+
var startInputField = useCallback(function (node) {
|
|
200
|
+
if (node !== null) {
|
|
201
|
+
startInputField.current = node;
|
|
202
|
+
setHasInput(true);
|
|
203
|
+
}
|
|
204
|
+
}, []);
|
|
195
205
|
var endInputField = useRef(null);
|
|
196
206
|
var calendarRef = useRef(null);
|
|
197
207
|
var savedOnChange = useSavedCallback(onChange);
|
|
@@ -237,7 +247,7 @@ var DatePicker = /*#__PURE__*/React__default.forwardRef(function DatePicker(_ref
|
|
|
237
247
|
return;
|
|
238
248
|
}
|
|
239
249
|
|
|
240
|
-
if (startInputField.current
|
|
250
|
+
if (!startInputField.current) {
|
|
241
251
|
return;
|
|
242
252
|
}
|
|
243
253
|
|
|
@@ -381,8 +391,19 @@ var DatePicker = /*#__PURE__*/React__default.forwardRef(function DatePicker(_ref
|
|
|
381
391
|
end.removeEventListener('change', handleOnChange);
|
|
382
392
|
}
|
|
383
393
|
};
|
|
384
|
-
}, [savedOnChange, savedOnClose, savedOnOpen, readOnly]); //eslint-disable-line react-hooks/exhaustive-deps
|
|
394
|
+
}, [savedOnChange, savedOnClose, savedOnOpen, readOnly, hasInput]); //eslint-disable-line react-hooks/exhaustive-deps
|
|
395
|
+
// this hook allows consumers to access the flatpickr calendar
|
|
396
|
+
// instance for cases where functions like open() or close()
|
|
397
|
+
// need to be imperatively called on the calendar
|
|
398
|
+
|
|
399
|
+
useImperativeHandle(ref, function () {
|
|
400
|
+
return {
|
|
401
|
+
get calendar() {
|
|
402
|
+
return calendarRef.current;
|
|
403
|
+
}
|
|
385
404
|
|
|
405
|
+
};
|
|
406
|
+
});
|
|
386
407
|
useEffect(function () {
|
|
387
408
|
var _calendarRef$current;
|
|
388
409
|
|
|
@@ -439,7 +460,8 @@ var DatePicker = /*#__PURE__*/React__default.forwardRef(function DatePicker(_ref
|
|
|
439
460
|
} else if (!calendarRef.current && value) {
|
|
440
461
|
startInputField.current.value = value;
|
|
441
462
|
}
|
|
442
|
-
}, [value, prefix]);
|
|
463
|
+
}, [value, prefix]); //eslint-disable-line react-hooks/exhaustive-deps
|
|
464
|
+
|
|
443
465
|
var fluidError;
|
|
444
466
|
|
|
445
467
|
if (isFluid) {
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
import DatePicker from './DatePicker.js';
|
|
9
|
+
export { default as DatePicker, default } from './DatePicker.js';
|
|
10
|
+
export { default as DatePickerSkeleton } from './DatePicker.Skeleton.js';
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
import DatePickerInput from './DatePickerInput.js';
|
|
9
|
+
export { default as DatePickerInput, default } from './DatePickerInput.js';
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
import Dropdown from './Dropdown.js';
|
|
9
|
+
export { default as Dropdown, default } from './Dropdown.js';
|
|
10
|
+
export { default as DropdownSkeleton } from './Dropdown.Skeleton.js';
|
|
@@ -9,8 +9,8 @@ import { objectWithoutProperties as _objectWithoutProperties, defineProperty as
|
|
|
9
9
|
import PropTypes from 'prop-types';
|
|
10
10
|
import React__default from 'react';
|
|
11
11
|
import cx from 'classnames';
|
|
12
|
-
import '../DatePicker/DatePicker.Skeleton.js';
|
|
13
12
|
import DatePicker from '../DatePicker/DatePicker.js';
|
|
13
|
+
import '../DatePicker/DatePicker.Skeleton.js';
|
|
14
14
|
import { usePrefix } from '../../internal/usePrefix.js';
|
|
15
15
|
import { FormContext } from '../FluidForm/FormContext.js';
|
|
16
16
|
|
|
@@ -9,8 +9,8 @@ import { objectWithoutProperties as _objectWithoutProperties, defineProperty as
|
|
|
9
9
|
import PropTypes from 'prop-types';
|
|
10
10
|
import React__default from 'react';
|
|
11
11
|
import cx from 'classnames';
|
|
12
|
-
import '../Dropdown/Dropdown.Skeleton.js';
|
|
13
12
|
import Dropdown from '../Dropdown/Dropdown.js';
|
|
13
|
+
import '../Dropdown/Dropdown.Skeleton.js';
|
|
14
14
|
import { usePrefix } from '../../internal/usePrefix.js';
|
|
15
15
|
import { FormContext } from '../FluidForm/FormContext.js';
|
|
16
16
|
|
|
@@ -9,8 +9,8 @@ import { objectWithoutProperties as _objectWithoutProperties, extends as _extend
|
|
|
9
9
|
import PropTypes from 'prop-types';
|
|
10
10
|
import React__default from 'react';
|
|
11
11
|
import cx from 'classnames';
|
|
12
|
-
import '../Select/Select.Skeleton.js';
|
|
13
12
|
import Select from '../Select/Select.js';
|
|
13
|
+
import '../Select/Select.Skeleton.js';
|
|
14
14
|
import { usePrefix } from '../../internal/usePrefix.js';
|
|
15
15
|
import { FormContext } from '../FluidForm/FormContext.js';
|
|
16
16
|
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
import FluidSelect from './FluidSelect.js';
|
|
9
|
+
export { default as FluidSelect, default } from './FluidSelect.js';
|
|
10
|
+
export { default as FluidSelectSkeleton } from './FluidSelect.Skeleton.js';
|
|
@@ -9,8 +9,8 @@ import { objectWithoutProperties as _objectWithoutProperties, extends as _extend
|
|
|
9
9
|
import PropTypes from 'prop-types';
|
|
10
10
|
import React__default from 'react';
|
|
11
11
|
import cx from 'classnames';
|
|
12
|
-
import '../TextArea/TextArea.Skeleton.js';
|
|
13
12
|
import TextArea from '../TextArea/TextArea.js';
|
|
13
|
+
import '../TextArea/TextArea.Skeleton.js';
|
|
14
14
|
import deprecate from '../../prop-types/deprecate.js';
|
|
15
15
|
import { usePrefix } from '../../internal/usePrefix.js';
|
|
16
16
|
import { FormContext } from '../FluidForm/FormContext.js';
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
import FluidTextInput from './FluidTextInput.js';
|
|
9
|
+
export { default as FluidTextInput, default } from './FluidTextInput.js';
|
|
10
|
+
export { default as FluidTextInputSkeleton } from './FluidTextInput.Skeleton.js';
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
|
9
9
|
import PropTypes from 'prop-types';
|
|
10
10
|
import React__default from 'react';
|
|
11
|
-
import '../Button/Button.Skeleton.js';
|
|
12
11
|
import Button from '../Button/Button.js';
|
|
12
|
+
import '../Button/Button.Skeleton.js';
|
|
13
13
|
import '../Tooltip/DefinitionTooltip.js';
|
|
14
14
|
import { Tooltip } from '../Tooltip/Tooltip.js';
|
|
15
15
|
import { usePrefix } from '../../internal/usePrefix.js';
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
import InlineCheckbox from './InlineCheckbox.js';
|
|
9
|
+
export { default as InlineCheckbox, default } from './InlineCheckbox.js';
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
import Link from './Link.js';
|
|
9
|
+
export { default as Link, default } from './Link.js';
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
import Loading from './Loading.js';
|
|
9
|
+
export { default as Loading, default } from './Loading.js';
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import Menu from './Menu.js';
|
|
9
|
-
export { default } from './Menu.js';
|
|
9
|
+
export { default as Menu, default } from './Menu.js';
|
|
10
10
|
import MenuDivider from './MenuDivider.js';
|
|
11
11
|
export { default as MenuDivider } from './MenuDivider.js';
|
|
12
12
|
import MenuGroup from './MenuGroup.js';
|
|
@@ -11,8 +11,8 @@ import React__default, { useRef, useEffect } from 'react';
|
|
|
11
11
|
import cx from 'classnames';
|
|
12
12
|
import { Close } from '@carbon/icons-react';
|
|
13
13
|
import toggleClass from '../../tools/toggleClass.js';
|
|
14
|
-
import '../Button/Button.Skeleton.js';
|
|
15
14
|
import Button from '../Button/Button.js';
|
|
15
|
+
import '../Button/Button.Skeleton.js';
|
|
16
16
|
import ButtonSet from '../ButtonSet/ButtonSet.js';
|
|
17
17
|
import requiredIfGivenPropIsTruthy from '../../prop-types/requiredIfGivenPropIsTruthy.js';
|
|
18
18
|
import wrapFocus, { elementOrParentIsFloatingMenu } from '../../internal/wrapFocus.js';
|
|
@@ -9,8 +9,8 @@ import { inherits as _inherits, createSuper as _createSuper, createClass as _cre
|
|
|
9
9
|
import PropTypes from 'prop-types';
|
|
10
10
|
import React__default from 'react';
|
|
11
11
|
import Modal from '../Modal/Modal.js';
|
|
12
|
-
import '../Button/Button.Skeleton.js';
|
|
13
12
|
import Button from '../Button/Button.js';
|
|
13
|
+
import '../Button/Button.Skeleton.js';
|
|
14
14
|
import { ButtonKinds } from '../../prop-types/types.js';
|
|
15
15
|
import { warning } from '../../internal/warning.js';
|
|
16
16
|
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
import { deprecateFieldOnObject } from '../../internal/deprecateFieldOnObject.js';
|
|
9
9
|
import MultiSelect from './MultiSelect.js';
|
|
10
|
-
export { default } from './MultiSelect.js';
|
|
10
|
+
export { default as MultiSelect, default } from './MultiSelect.js';
|
|
11
11
|
import FilterableMultiSelect from './FilterableMultiSelect.js';
|
|
12
12
|
export { default as FilterableMultiSelect } from './FilterableMultiSelect.js';
|
|
13
13
|
|
|
@@ -10,8 +10,8 @@ import PropTypes from 'prop-types';
|
|
|
10
10
|
import React__default, { useState, useRef, useEffect } from 'react';
|
|
11
11
|
import cx from 'classnames';
|
|
12
12
|
import { Close, ErrorFilled, CheckmarkFilled, WarningFilled, WarningAltFilled, InformationFilled, InformationSquareFilled } from '@carbon/icons-react';
|
|
13
|
-
import '../Button/Button.Skeleton.js';
|
|
14
13
|
import Button from '../Button/Button.js';
|
|
14
|
+
import '../Button/Button.Skeleton.js';
|
|
15
15
|
import useIsomorphicEffect from '../../internal/useIsomorphicEffect.js';
|
|
16
16
|
import { useNoInteractiveChildren } from '../../internal/useNoInteractiveChildren.js';
|
|
17
17
|
import { Escape } from '../../internal/keyboard/keys.js';
|