@carbon/react 1.20.0 → 1.21.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/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/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/index.js +1 -1
- package/es/components/DatePicker/DatePicker.Skeleton.js +1 -1
- package/es/components/DatePicker/DatePicker.js +17 -6
- 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/OverflowMenu/index.js +1 -1
- 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/Popover/index.js +5 -1
- package/es/components/PrimaryButton/PrimaryButton.js +1 -1
- 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/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/index.js +9 -0
- package/es/components/Slider/Slider.Skeleton.js +1 -1
- package/es/components/Slider/index.js +3 -3
- package/es/components/Stack/Stack.js +9 -5
- 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/index.js +10 -0
- package/es/components/TextInput/TextInput.Skeleton.js +1 -1
- package/es/components/TextInput/index.js +1 -1
- package/es/components/TileGroup/index.js +3 -3
- package/es/components/TimePickerSelect/index.js +1 -1
- package/es/components/Toggle/Toggle.Skeleton.js +1 -1
- package/es/components/Toggle/Toggle.js +27 -8
- 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 -28
- 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/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/index.js +1 -0
- package/lib/components/DatePicker/DatePicker.Skeleton.js +1 -0
- package/lib/components/DatePicker/DatePicker.js +15 -4
- 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/OverflowMenu/index.js +1 -0
- 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/Popover/index.js +5 -1
- package/lib/components/PrimaryButton/PrimaryButton.js +1 -1
- 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/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/index.js +17 -0
- package/lib/components/Slider/Slider.Skeleton.js +1 -0
- package/lib/components/Slider/index.js +4 -3
- package/lib/components/Stack/Stack.js +9 -5
- 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/index.js +19 -0
- package/lib/components/TextInput/TextInput.Skeleton.js +1 -0
- package/lib/components/TextInput/index.js +1 -0
- package/lib/components/TileGroup/index.js +4 -3
- package/lib/components/TimePickerSelect/index.js +1 -0
- package/lib/components/Toggle/Toggle.Skeleton.js +1 -0
- package/lib/components/Toggle/Toggle.js +27 -8
- 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 -89
- 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/package.json +8 -8
- package/es/components/Accordion/index.js +0 -11
- package/es/components/AccordionItem/index.js +0 -13
- package/es/components/FluidNumberInput/FluidNumberInput.Skeleton.js +0 -42
- package/es/components/FluidNumberInput/FluidNumberInput.js +0 -138
- package/es/components/FluidSearch/FluidSearch.Skeleton.js +0 -42
- package/es/components/FluidSearch/FluidSearch.js +0 -114
- package/es/components/Tabs/index.js +0 -10
- package/lib/components/Accordion/index.js +0 -20
- package/lib/components/AccordionItem/index.js +0 -18
- package/lib/components/FluidNumberInput/FluidNumberInput.Skeleton.js +0 -52
- package/lib/components/FluidNumberInput/FluidNumberInput.js +0 -148
- package/lib/components/FluidSearch/FluidSearch.Skeleton.js +0 -52
- package/lib/components/FluidSearch/FluidSearch.js +0 -124
- package/lib/components/Tabs/index.js +0 -23
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon/react",
|
|
3
3
|
"description": "React components for the Carbon Design System",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.21.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"module": "es/index.js",
|
|
@@ -43,10 +43,10 @@
|
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@babel/runtime": "^7.18.3",
|
|
46
|
-
"@carbon/feature-flags": "^0.
|
|
47
|
-
"@carbon/icons-react": "^11.
|
|
48
|
-
"@carbon/layout": "^11.
|
|
49
|
-
"@carbon/styles": "^1.
|
|
46
|
+
"@carbon/feature-flags": "^0.12.0",
|
|
47
|
+
"@carbon/icons-react": "^11.15.0",
|
|
48
|
+
"@carbon/layout": "^11.11.0",
|
|
49
|
+
"@carbon/styles": "^1.21.0",
|
|
50
50
|
"@carbon/telemetry": "0.1.0",
|
|
51
51
|
"classnames": "2.3.2",
|
|
52
52
|
"copy-to-clipboard": "^3.3.1",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"@babel/preset-env": "^7.18.2",
|
|
74
74
|
"@babel/preset-react": "^7.17.12",
|
|
75
75
|
"@carbon/test-utils": "^10.26.0",
|
|
76
|
-
"@carbon/themes": "^11.
|
|
76
|
+
"@carbon/themes": "^11.16.0",
|
|
77
77
|
"@rollup/plugin-babel": "^6.0.0",
|
|
78
78
|
"@rollup/plugin-commonjs": "^24.0.0",
|
|
79
79
|
"@rollup/plugin-node-resolve": "^15.0.0",
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
"react": "^17.0.2",
|
|
112
112
|
"react-dom": "^17.0.2",
|
|
113
113
|
"requestanimationframe": "^0.0.23",
|
|
114
|
-
"rimraf": "^
|
|
114
|
+
"rimraf": "^4.0.0",
|
|
115
115
|
"rollup": "^2.79.1",
|
|
116
116
|
"rollup-plugin-strip-banner": "^2.0.0",
|
|
117
117
|
"rtlcss": "^4.0.0",
|
|
@@ -135,5 +135,5 @@
|
|
|
135
135
|
"**/*.scss",
|
|
136
136
|
"**/*.css"
|
|
137
137
|
],
|
|
138
|
-
"gitHead": "
|
|
138
|
+
"gitHead": "36b2a3b42be5bebb706861030d1ec4a21ae47c5f"
|
|
139
139
|
}
|
|
@@ -1,11 +0,0 @@
|
|
|
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 Accordion from './Accordion.js';
|
|
9
|
-
export { default } from './Accordion.js';
|
|
10
|
-
export { default as AccordionItem } from './AccordionItem.js';
|
|
11
|
-
export { default as AccordionSkeleton } from './Accordion.Skeleton.js';
|
|
@@ -1,13 +0,0 @@
|
|
|
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 '../Accordion/Accordion.js';
|
|
9
|
-
import AccordionItem from '../Accordion/AccordionItem.js';
|
|
10
|
-
export { default } from '../Accordion/AccordionItem.js';
|
|
11
|
-
import '../Accordion/Accordion.Skeleton.js';
|
|
12
|
-
|
|
13
|
-
// Alias for import paths for build tools that rely on this
|
|
@@ -1,42 +0,0 @@
|
|
|
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 { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
|
9
|
-
import PropTypes from 'prop-types';
|
|
10
|
-
import React__default from 'react';
|
|
11
|
-
import cx from 'classnames';
|
|
12
|
-
import { usePrefix } from '../../internal/usePrefix.js';
|
|
13
|
-
import { FormContext } from '../FluidForm/FormContext.js';
|
|
14
|
-
|
|
15
|
-
var _excluded = ["className"];
|
|
16
|
-
|
|
17
|
-
function FluidNumberInputSkeleton(_ref) {
|
|
18
|
-
var className = _ref.className,
|
|
19
|
-
other = _objectWithoutProperties(_ref, _excluded);
|
|
20
|
-
|
|
21
|
-
var prefix = usePrefix();
|
|
22
|
-
return /*#__PURE__*/React__default.createElement(FormContext.Provider, {
|
|
23
|
-
value: {
|
|
24
|
-
isFluid: true
|
|
25
|
-
}
|
|
26
|
-
}, /*#__PURE__*/React__default.createElement("div", _extends({
|
|
27
|
-
className: cx("".concat(prefix, "--form-item ").concat(prefix, "--text-input--fluid__skeleton"), className)
|
|
28
|
-
}, other), /*#__PURE__*/React__default.createElement("span", {
|
|
29
|
-
className: "".concat(prefix, "--label ").concat(prefix, "--skeleton")
|
|
30
|
-
}), /*#__PURE__*/React__default.createElement("div", {
|
|
31
|
-
className: "".concat(prefix, "--skeleton ").concat(prefix, "--text-input")
|
|
32
|
-
})));
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
FluidNumberInputSkeleton.propTypes = {
|
|
36
|
-
/**
|
|
37
|
-
* Specify an optional className to be applied to the outer FluidForm wrapper
|
|
38
|
-
*/
|
|
39
|
-
className: PropTypes.string
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
export { FluidNumberInputSkeleton as default };
|
|
@@ -1,138 +0,0 @@
|
|
|
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 { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
|
9
|
-
import PropTypes from 'prop-types';
|
|
10
|
-
import React__default from 'react';
|
|
11
|
-
import cx from 'classnames';
|
|
12
|
-
import '../NumberInput/NumberInput.Skeleton.js';
|
|
13
|
-
import { NumberInput } from '../NumberInput/NumberInput.js';
|
|
14
|
-
import { usePrefix } from '../../internal/usePrefix.js';
|
|
15
|
-
import { FormContext } from '../FluidForm/FormContext.js';
|
|
16
|
-
|
|
17
|
-
var _excluded = ["className"];
|
|
18
|
-
var FluidNumberInput = /*#__PURE__*/React__default.forwardRef(function FluidNumberInput(_ref, ref) {
|
|
19
|
-
var className = _ref.className,
|
|
20
|
-
other = _objectWithoutProperties(_ref, _excluded);
|
|
21
|
-
|
|
22
|
-
var prefix = usePrefix();
|
|
23
|
-
var classNames = cx("".concat(prefix, "--number-input--fluid"), className);
|
|
24
|
-
return /*#__PURE__*/React__default.createElement(FormContext.Provider, {
|
|
25
|
-
value: {
|
|
26
|
-
isFluid: true
|
|
27
|
-
}
|
|
28
|
-
}, /*#__PURE__*/React__default.createElement(NumberInput, _extends({
|
|
29
|
-
ref: ref,
|
|
30
|
-
className: classNames
|
|
31
|
-
}, other)));
|
|
32
|
-
});
|
|
33
|
-
FluidNumberInput.propTypes = {
|
|
34
|
-
/**
|
|
35
|
-
* `true` to allow empty string.
|
|
36
|
-
*/
|
|
37
|
-
allowEmpty: PropTypes.bool,
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Specify an optional className to be applied to the wrapper node
|
|
41
|
-
*/
|
|
42
|
-
className: PropTypes.string,
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Optional starting value for uncontrolled state
|
|
46
|
-
*/
|
|
47
|
-
defaultValue: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* Specify if the wheel functionality for the input should be disabled, or not
|
|
51
|
-
*/
|
|
52
|
-
disableWheel: PropTypes.bool,
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* Specify if the control should be disabled, or not
|
|
56
|
-
*/
|
|
57
|
-
disabled: PropTypes.bool,
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* Provide a description for up/down icons that can be read by screen readers
|
|
61
|
-
*/
|
|
62
|
-
iconDescription: PropTypes.string,
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* Specify a custom `id` for the input
|
|
66
|
-
*/
|
|
67
|
-
id: PropTypes.string.isRequired,
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* Specify if the currently value is invalid.
|
|
71
|
-
*/
|
|
72
|
-
invalid: PropTypes.bool,
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* Message which is displayed if the value is invalid.
|
|
76
|
-
*/
|
|
77
|
-
invalidText: PropTypes.node,
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* Generic `label` that will be used as the textual representation of what
|
|
81
|
-
* this field is for
|
|
82
|
-
*/
|
|
83
|
-
label: PropTypes.node,
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* The maximum value.
|
|
87
|
-
*/
|
|
88
|
-
max: PropTypes.number,
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* The minimum value.
|
|
92
|
-
*/
|
|
93
|
-
min: PropTypes.number,
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* Provide an optional handler that is called when the internal state of
|
|
97
|
-
* NumberInput changes. This handler is called with event and state info.
|
|
98
|
-
* `(event, { value, direction }) => void`
|
|
99
|
-
*/
|
|
100
|
-
onChange: PropTypes.func,
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* Provide an optional function to be called when the up/down button is clicked
|
|
104
|
-
*/
|
|
105
|
-
onClick: PropTypes.func,
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
* Provide an optional function to be called when a key is pressed in the number input
|
|
109
|
-
*/
|
|
110
|
-
onKeyUp: PropTypes.func,
|
|
111
|
-
|
|
112
|
-
/**
|
|
113
|
-
* Specify how much the values should increase/decrease upon clicking on up/down button
|
|
114
|
-
*/
|
|
115
|
-
step: PropTypes.number,
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* Provide custom text for the component for each translation id
|
|
119
|
-
*/
|
|
120
|
-
translateWithId: PropTypes.func,
|
|
121
|
-
|
|
122
|
-
/**
|
|
123
|
-
* Specify the value of the input
|
|
124
|
-
*/
|
|
125
|
-
value: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* Specify whether the control is currently in warning state
|
|
129
|
-
*/
|
|
130
|
-
warn: PropTypes.bool,
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* Provide the text that is displayed when the control is in warning state
|
|
134
|
-
*/
|
|
135
|
-
warnText: PropTypes.node
|
|
136
|
-
};
|
|
137
|
-
|
|
138
|
-
export { FluidNumberInput as default };
|
|
@@ -1,42 +0,0 @@
|
|
|
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 { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
|
9
|
-
import PropTypes from 'prop-types';
|
|
10
|
-
import React__default from 'react';
|
|
11
|
-
import cx from 'classnames';
|
|
12
|
-
import { usePrefix } from '../../internal/usePrefix.js';
|
|
13
|
-
import { FormContext } from '../FluidForm/FormContext.js';
|
|
14
|
-
|
|
15
|
-
var _excluded = ["className"];
|
|
16
|
-
|
|
17
|
-
function FluidSearchSkeleton(_ref) {
|
|
18
|
-
var className = _ref.className,
|
|
19
|
-
other = _objectWithoutProperties(_ref, _excluded);
|
|
20
|
-
|
|
21
|
-
var prefix = usePrefix();
|
|
22
|
-
return /*#__PURE__*/React__default.createElement(FormContext.Provider, {
|
|
23
|
-
value: {
|
|
24
|
-
isFluid: true
|
|
25
|
-
}
|
|
26
|
-
}, /*#__PURE__*/React__default.createElement("div", _extends({
|
|
27
|
-
className: cx("".concat(prefix, "--form-item ").concat(prefix, "--text-input--fluid__skeleton"), className)
|
|
28
|
-
}, other), /*#__PURE__*/React__default.createElement("span", {
|
|
29
|
-
className: "".concat(prefix, "--label ").concat(prefix, "--skeleton")
|
|
30
|
-
}), /*#__PURE__*/React__default.createElement("div", {
|
|
31
|
-
className: "".concat(prefix, "--skeleton ").concat(prefix, "--text-input")
|
|
32
|
-
})));
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
FluidSearchSkeleton.propTypes = {
|
|
36
|
-
/**
|
|
37
|
-
* Specify an optional className to be applied to the outer FluidForm wrapper
|
|
38
|
-
*/
|
|
39
|
-
className: PropTypes.string
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
export { FluidSearchSkeleton as default };
|
|
@@ -1,114 +0,0 @@
|
|
|
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 { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
|
9
|
-
import PropTypes from 'prop-types';
|
|
10
|
-
import React__default from 'react';
|
|
11
|
-
import cx from 'classnames';
|
|
12
|
-
import Search from '../Search/Search.js';
|
|
13
|
-
import '../Search/Search.Skeleton.js';
|
|
14
|
-
import { usePrefix } from '../../internal/usePrefix.js';
|
|
15
|
-
import { FormContext } from '../FluidForm/FormContext.js';
|
|
16
|
-
|
|
17
|
-
var _excluded = ["className"];
|
|
18
|
-
var FluidSearch = /*#__PURE__*/React__default.forwardRef(function FluidSearch(_ref, ref) {
|
|
19
|
-
var className = _ref.className,
|
|
20
|
-
other = _objectWithoutProperties(_ref, _excluded);
|
|
21
|
-
|
|
22
|
-
var prefix = usePrefix();
|
|
23
|
-
var classNames = cx("".concat(prefix, "--search--fluid"), className);
|
|
24
|
-
return /*#__PURE__*/React__default.createElement(FormContext.Provider, {
|
|
25
|
-
value: {
|
|
26
|
-
isFluid: true
|
|
27
|
-
}
|
|
28
|
-
}, /*#__PURE__*/React__default.createElement(Search, _extends({
|
|
29
|
-
ref: ref,
|
|
30
|
-
className: classNames
|
|
31
|
-
}, other)));
|
|
32
|
-
});
|
|
33
|
-
FluidSearch.defaultProps = {
|
|
34
|
-
autoComplete: 'off',
|
|
35
|
-
closeButtonLabelText: 'Clear search input',
|
|
36
|
-
role: 'searchbox',
|
|
37
|
-
type: 'text'
|
|
38
|
-
};
|
|
39
|
-
FluidSearch.propTypes = {
|
|
40
|
-
/**
|
|
41
|
-
* Specify an optional value for the `autocomplete` property on the underlying
|
|
42
|
-
* `<input>`, defaults to "off"
|
|
43
|
-
*/
|
|
44
|
-
autoComplete: PropTypes.string,
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Specify an optional className to be applied to the container node
|
|
48
|
-
*/
|
|
49
|
-
className: PropTypes.string,
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Specify a label to be read by screen readers on the "close" button
|
|
53
|
-
*/
|
|
54
|
-
closeButtonLabelText: PropTypes.string,
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* Optionally provide the default value of the `<input>`
|
|
58
|
-
*/
|
|
59
|
-
defaultValue: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Specify whether the `<input>` should be disabled
|
|
63
|
-
*/
|
|
64
|
-
disabled: PropTypes.bool,
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* Specify a custom `id` for the input
|
|
68
|
-
*/
|
|
69
|
-
id: PropTypes.string,
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* Provide the label text for the Search icon
|
|
73
|
-
*/
|
|
74
|
-
labelText: PropTypes.node.isRequired,
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* Optional callback called when the search value changes.
|
|
78
|
-
*/
|
|
79
|
-
onChange: PropTypes.func,
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* Optional callback called when the search value is cleared.
|
|
83
|
-
*/
|
|
84
|
-
onClear: PropTypes.func,
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* Provide a handler that is invoked on the key down event for the input
|
|
88
|
-
*/
|
|
89
|
-
onKeyDown: PropTypes.func,
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* Provide an optional placeholder text for the Search.
|
|
93
|
-
* Note: if the label and placeholder differ,
|
|
94
|
-
* VoiceOver on Mac will read both
|
|
95
|
-
*/
|
|
96
|
-
placeholder: PropTypes.string,
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* Specify the role for the underlying `<input>`, defaults to `searchbox`
|
|
100
|
-
*/
|
|
101
|
-
role: PropTypes.string,
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* Optional prop to specify the type of the `<input>`
|
|
105
|
-
*/
|
|
106
|
-
type: PropTypes.string,
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* Specify the value of the `<input>`
|
|
110
|
-
*/
|
|
111
|
-
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
|
|
112
|
-
};
|
|
113
|
-
|
|
114
|
-
export { FluidSearch as default };
|
|
@@ -1,10 +0,0 @@
|
|
|
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 { Tabs } from './Tabs.js';
|
|
9
|
-
export { IconTab, Tab, TabList, TabPanel, TabPanels, Tabs as default } from './Tabs.js';
|
|
10
|
-
export { default as TabsSkeleton } from './Tabs.Skeleton.js';
|
|
@@ -1,20 +0,0 @@
|
|
|
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 Accordion = require('./Accordion.js');
|
|
13
|
-
var AccordionItem = require('./AccordionItem.js');
|
|
14
|
-
var Accordion_Skeleton = require('./Accordion.Skeleton.js');
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
exports["default"] = Accordion["default"];
|
|
19
|
-
exports.AccordionItem = AccordionItem["default"];
|
|
20
|
-
exports.AccordionSkeleton = Accordion_Skeleton["default"];
|
|
@@ -1,18 +0,0 @@
|
|
|
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
|
-
require('../Accordion/Accordion.js');
|
|
13
|
-
var AccordionItem = require('../Accordion/AccordionItem.js');
|
|
14
|
-
require('../Accordion/Accordion.Skeleton.js');
|
|
15
|
-
|
|
16
|
-
// Alias for import paths for build tools that rely on this
|
|
17
|
-
|
|
18
|
-
exports["default"] = AccordionItem["default"];
|
|
@@ -1,52 +0,0 @@
|
|
|
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 _rollupPluginBabelHelpers = require('../../_virtual/_rollupPluginBabelHelpers.js');
|
|
13
|
-
var PropTypes = require('prop-types');
|
|
14
|
-
var React = require('react');
|
|
15
|
-
var cx = require('classnames');
|
|
16
|
-
var usePrefix = require('../../internal/usePrefix.js');
|
|
17
|
-
var FormContext = require('../FluidForm/FormContext.js');
|
|
18
|
-
|
|
19
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
20
|
-
|
|
21
|
-
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
22
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
23
|
-
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
|
24
|
-
|
|
25
|
-
var _excluded = ["className"];
|
|
26
|
-
|
|
27
|
-
function FluidNumberInputSkeleton(_ref) {
|
|
28
|
-
var className = _ref.className,
|
|
29
|
-
other = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
|
30
|
-
|
|
31
|
-
var prefix = usePrefix.usePrefix();
|
|
32
|
-
return /*#__PURE__*/React__default["default"].createElement(FormContext.FormContext.Provider, {
|
|
33
|
-
value: {
|
|
34
|
-
isFluid: true
|
|
35
|
-
}
|
|
36
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", _rollupPluginBabelHelpers["extends"]({
|
|
37
|
-
className: cx__default["default"]("".concat(prefix, "--form-item ").concat(prefix, "--text-input--fluid__skeleton"), className)
|
|
38
|
-
}, other), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
39
|
-
className: "".concat(prefix, "--label ").concat(prefix, "--skeleton")
|
|
40
|
-
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
41
|
-
className: "".concat(prefix, "--skeleton ").concat(prefix, "--text-input")
|
|
42
|
-
})));
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
FluidNumberInputSkeleton.propTypes = {
|
|
46
|
-
/**
|
|
47
|
-
* Specify an optional className to be applied to the outer FluidForm wrapper
|
|
48
|
-
*/
|
|
49
|
-
className: PropTypes__default["default"].string
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
exports["default"] = FluidNumberInputSkeleton;
|
|
@@ -1,148 +0,0 @@
|
|
|
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 _rollupPluginBabelHelpers = require('../../_virtual/_rollupPluginBabelHelpers.js');
|
|
13
|
-
var PropTypes = require('prop-types');
|
|
14
|
-
var React = require('react');
|
|
15
|
-
var cx = require('classnames');
|
|
16
|
-
require('../NumberInput/NumberInput.Skeleton.js');
|
|
17
|
-
var NumberInput = require('../NumberInput/NumberInput.js');
|
|
18
|
-
var usePrefix = require('../../internal/usePrefix.js');
|
|
19
|
-
var FormContext = require('../FluidForm/FormContext.js');
|
|
20
|
-
|
|
21
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
22
|
-
|
|
23
|
-
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
24
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
25
|
-
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
|
26
|
-
|
|
27
|
-
var _excluded = ["className"];
|
|
28
|
-
var FluidNumberInput = /*#__PURE__*/React__default["default"].forwardRef(function FluidNumberInput(_ref, ref) {
|
|
29
|
-
var className = _ref.className,
|
|
30
|
-
other = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
|
31
|
-
|
|
32
|
-
var prefix = usePrefix.usePrefix();
|
|
33
|
-
var classNames = cx__default["default"]("".concat(prefix, "--number-input--fluid"), className);
|
|
34
|
-
return /*#__PURE__*/React__default["default"].createElement(FormContext.FormContext.Provider, {
|
|
35
|
-
value: {
|
|
36
|
-
isFluid: true
|
|
37
|
-
}
|
|
38
|
-
}, /*#__PURE__*/React__default["default"].createElement(NumberInput.NumberInput, _rollupPluginBabelHelpers["extends"]({
|
|
39
|
-
ref: ref,
|
|
40
|
-
className: classNames
|
|
41
|
-
}, other)));
|
|
42
|
-
});
|
|
43
|
-
FluidNumberInput.propTypes = {
|
|
44
|
-
/**
|
|
45
|
-
* `true` to allow empty string.
|
|
46
|
-
*/
|
|
47
|
-
allowEmpty: PropTypes__default["default"].bool,
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* Specify an optional className to be applied to the wrapper node
|
|
51
|
-
*/
|
|
52
|
-
className: PropTypes__default["default"].string,
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* Optional starting value for uncontrolled state
|
|
56
|
-
*/
|
|
57
|
-
defaultValue: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].string]),
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* Specify if the wheel functionality for the input should be disabled, or not
|
|
61
|
-
*/
|
|
62
|
-
disableWheel: PropTypes__default["default"].bool,
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* Specify if the control should be disabled, or not
|
|
66
|
-
*/
|
|
67
|
-
disabled: PropTypes__default["default"].bool,
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* Provide a description for up/down icons that can be read by screen readers
|
|
71
|
-
*/
|
|
72
|
-
iconDescription: PropTypes__default["default"].string,
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* Specify a custom `id` for the input
|
|
76
|
-
*/
|
|
77
|
-
id: PropTypes__default["default"].string.isRequired,
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* Specify if the currently value is invalid.
|
|
81
|
-
*/
|
|
82
|
-
invalid: PropTypes__default["default"].bool,
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* Message which is displayed if the value is invalid.
|
|
86
|
-
*/
|
|
87
|
-
invalidText: PropTypes__default["default"].node,
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* Generic `label` that will be used as the textual representation of what
|
|
91
|
-
* this field is for
|
|
92
|
-
*/
|
|
93
|
-
label: PropTypes__default["default"].node,
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* The maximum value.
|
|
97
|
-
*/
|
|
98
|
-
max: PropTypes__default["default"].number,
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* The minimum value.
|
|
102
|
-
*/
|
|
103
|
-
min: PropTypes__default["default"].number,
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* Provide an optional handler that is called when the internal state of
|
|
107
|
-
* NumberInput changes. This handler is called with event and state info.
|
|
108
|
-
* `(event, { value, direction }) => void`
|
|
109
|
-
*/
|
|
110
|
-
onChange: PropTypes__default["default"].func,
|
|
111
|
-
|
|
112
|
-
/**
|
|
113
|
-
* Provide an optional function to be called when the up/down button is clicked
|
|
114
|
-
*/
|
|
115
|
-
onClick: PropTypes__default["default"].func,
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* Provide an optional function to be called when a key is pressed in the number input
|
|
119
|
-
*/
|
|
120
|
-
onKeyUp: PropTypes__default["default"].func,
|
|
121
|
-
|
|
122
|
-
/**
|
|
123
|
-
* Specify how much the values should increase/decrease upon clicking on up/down button
|
|
124
|
-
*/
|
|
125
|
-
step: PropTypes__default["default"].number,
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* Provide custom text for the component for each translation id
|
|
129
|
-
*/
|
|
130
|
-
translateWithId: PropTypes__default["default"].func,
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* Specify the value of the input
|
|
134
|
-
*/
|
|
135
|
-
value: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].string]),
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* Specify whether the control is currently in warning state
|
|
139
|
-
*/
|
|
140
|
-
warn: PropTypes__default["default"].bool,
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* Provide the text that is displayed when the control is in warning state
|
|
144
|
-
*/
|
|
145
|
-
warnText: PropTypes__default["default"].node
|
|
146
|
-
};
|
|
147
|
-
|
|
148
|
-
exports["default"] = FluidNumberInput;
|