@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.
Files changed (201) hide show
  1. package/es/components/Accordion/Accordion.Skeleton.js +1 -1
  2. package/es/components/Breadcrumb/Breadcrumb.Skeleton.js +1 -1
  3. package/es/components/Button/Button.Skeleton.js +1 -1
  4. package/es/components/Button/Button.js +1 -0
  5. package/es/components/{Checkbox → Button}/index.js +3 -3
  6. package/es/components/{Pagination → ButtonSet}/index.js +2 -3
  7. package/es/components/Checkbox/Checkbox.Skeleton.js +1 -1
  8. package/es/components/CodeSnippet/CodeSnippet.Skeleton.js +1 -1
  9. package/es/components/CodeSnippet/CodeSnippet.js +1 -1
  10. package/es/components/{RadioButtonGroup → ComboBox}/index.js +2 -2
  11. package/es/components/ComposedModal/ModalFooter.js +1 -1
  12. package/es/components/ContainedList/ContainedListItem/index.js +9 -0
  13. package/es/components/ContainedList/index.js +1 -1
  14. package/es/components/ContentSwitcher/index.js +3 -3
  15. package/es/components/{ModalWrapper → Copy}/index.js +2 -2
  16. package/es/components/CopyButton/index.js +9 -0
  17. package/es/components/DangerButton/DangerButton.js +1 -1
  18. package/es/components/DataTable/TableBatchAction.js +1 -1
  19. package/es/components/DataTable/TableBatchActions.js +1 -1
  20. package/es/components/DataTable/index.js +1 -1
  21. package/es/components/DatePicker/DatePicker.Skeleton.js +1 -1
  22. package/es/components/DatePicker/DatePicker.js +17 -6
  23. package/es/components/DatePicker/index.js +10 -0
  24. package/es/components/DatePickerInput/index.js +9 -0
  25. package/es/components/Dropdown/Dropdown.Skeleton.js +1 -1
  26. package/es/components/Dropdown/index.js +10 -0
  27. package/es/components/FileUploader/FileUploader.Skeleton.js +1 -1
  28. package/es/components/FluidDatePicker/FluidDatePicker.js +1 -1
  29. package/es/components/FluidDropdown/FluidDropdown.js +1 -1
  30. package/es/components/FluidSelect/FluidSelect.js +1 -1
  31. package/es/components/FluidSelect/index.js +10 -0
  32. package/es/components/FluidTextArea/FluidTextArea.js +1 -1
  33. package/es/components/FluidTextInput/index.js +10 -0
  34. package/es/components/{ExpandableSearch → Form}/index.js +2 -2
  35. package/es/components/Icon/Icon.Skeleton.js +1 -1
  36. package/es/components/IconButton/index.js +1 -1
  37. package/es/components/InlineCheckbox/index.js +9 -0
  38. package/es/components/Link/index.js +9 -0
  39. package/es/components/Loading/index.js +9 -0
  40. package/es/components/Menu/index.js +1 -1
  41. package/es/components/Modal/Modal.js +1 -1
  42. package/es/components/Modal/index.js +1 -1
  43. package/es/components/ModalWrapper/ModalWrapper.js +1 -1
  44. package/es/components/MultiSelect/index.js +1 -1
  45. package/es/components/Notification/Notification.js +1 -1
  46. package/es/components/OverflowMenu/index.js +1 -1
  47. package/es/components/OverflowMenuItem/index.js +1 -1
  48. package/es/components/Pagination/Pagination.Skeleton.js +1 -1
  49. package/es/components/Pagination/Pagination.js +1 -1
  50. package/es/components/Pagination/experimental/PageSelector.js +1 -1
  51. package/es/components/Pagination/experimental/Pagination.js +2 -2
  52. package/es/components/PaginationNav/PaginationNav.js +1 -1
  53. package/es/components/Popover/index.js +5 -1
  54. package/es/components/PrimaryButton/PrimaryButton.js +1 -1
  55. package/es/components/ProgressIndicator/ProgressIndicator.Skeleton.js +1 -1
  56. package/es/components/RadioButton/RadioButton.Skeleton.js +1 -1
  57. package/es/components/RadioButton/index.js +1 -1
  58. package/es/components/RadioTile/index.js +9 -0
  59. package/es/components/Search/Search.Skeleton.js +1 -1
  60. package/es/components/Search/index.js +1 -1
  61. package/es/components/SecondaryButton/SecondaryButton.js +1 -1
  62. package/es/components/Select/Select.Skeleton.js +1 -1
  63. package/es/components/Select/index.js +10 -0
  64. package/es/components/SelectItem/index.js +9 -0
  65. package/es/components/SkeletonText/index.js +9 -0
  66. package/es/components/Slider/Slider.Skeleton.js +1 -1
  67. package/es/components/Slider/index.js +3 -3
  68. package/es/components/Stack/Stack.js +9 -5
  69. package/es/components/Tab/index.js +1 -1
  70. package/es/components/Tabs/Tabs.Skeleton.js +1 -1
  71. package/es/components/Tag/Tag.Skeleton.js +1 -1
  72. package/es/components/Tag/Tag.js +2 -1
  73. package/es/components/TextArea/TextArea.Skeleton.js +1 -1
  74. package/es/components/TextArea/index.js +10 -0
  75. package/es/components/TextInput/TextInput.Skeleton.js +1 -1
  76. package/es/components/TextInput/index.js +1 -1
  77. package/es/components/TileGroup/index.js +3 -3
  78. package/es/components/TimePickerSelect/index.js +1 -1
  79. package/es/components/Toggle/Toggle.Skeleton.js +1 -1
  80. package/es/components/Toggle/Toggle.js +27 -8
  81. package/es/components/ToggleSmall/ToggleSmall.Skeleton.js +1 -1
  82. package/es/components/TreeView/index.js +1 -1
  83. package/es/components/UIShell/HeaderGlobalAction.js +1 -1
  84. package/es/components/UIShell/HeaderNavigation.js +1 -1
  85. package/es/components/UIShell/SideNavLink.js +5 -0
  86. package/es/components/UIShell/SideNavMenu.js +1 -1
  87. package/es/es/components/Checkbox/Checkbox.Skeleton.d.ts +1 -0
  88. package/es/es/components/Checkbox/Checkbox.d.ts +1 -1
  89. package/es/es/components/Checkbox/index.d.ts +3 -2
  90. package/es/es/components/Text/Text.d.ts +1 -1
  91. package/es/es/components/Text/TextDirection.d.ts +2 -2
  92. package/es/es/index.d.ts +119 -0
  93. package/es/index.js +24 -28
  94. package/lib/components/Accordion/Accordion.Skeleton.js +1 -0
  95. package/lib/components/Breadcrumb/Breadcrumb.Skeleton.js +1 -0
  96. package/lib/components/Button/Button.Skeleton.js +1 -0
  97. package/lib/components/Button/Button.js +1 -0
  98. package/lib/components/{Checkbox → Button}/index.js +5 -4
  99. package/lib/components/ButtonSet/index.js +17 -0
  100. package/lib/components/Checkbox/Checkbox.Skeleton.js +1 -0
  101. package/lib/components/CodeSnippet/CodeSnippet.Skeleton.js +1 -0
  102. package/lib/components/CodeSnippet/CodeSnippet.js +1 -1
  103. package/lib/components/{Pagination → ComboBox}/index.js +3 -3
  104. package/lib/components/ComposedModal/ModalFooter.js +1 -1
  105. package/lib/components/ContainedList/ContainedListItem/index.js +17 -0
  106. package/lib/components/ContainedList/index.js +1 -0
  107. package/lib/components/ContentSwitcher/index.js +4 -3
  108. package/lib/components/{ModalWrapper → Copy}/index.js +3 -2
  109. package/lib/components/CopyButton/index.js +17 -0
  110. package/lib/components/DangerButton/DangerButton.js +1 -1
  111. package/lib/components/DataTable/TableBatchAction.js +1 -1
  112. package/lib/components/DataTable/TableBatchActions.js +1 -1
  113. package/lib/components/DataTable/index.js +1 -0
  114. package/lib/components/DatePicker/DatePicker.Skeleton.js +1 -0
  115. package/lib/components/DatePicker/DatePicker.js +15 -4
  116. package/lib/components/DatePicker/index.js +19 -0
  117. package/lib/components/DatePickerInput/index.js +17 -0
  118. package/lib/components/Dropdown/Dropdown.Skeleton.js +1 -0
  119. package/lib/components/Dropdown/index.js +19 -0
  120. package/lib/components/FileUploader/FileUploader.Skeleton.js +1 -0
  121. package/lib/components/FluidDatePicker/FluidDatePicker.js +1 -1
  122. package/lib/components/FluidDropdown/FluidDropdown.js +1 -1
  123. package/lib/components/FluidSelect/FluidSelect.js +1 -1
  124. package/lib/components/FluidSelect/index.js +19 -0
  125. package/lib/components/FluidTextArea/FluidTextArea.js +1 -1
  126. package/lib/components/FluidTextInput/index.js +19 -0
  127. package/lib/components/{RadioButtonGroup → Form}/index.js +3 -2
  128. package/lib/components/Icon/Icon.Skeleton.js +1 -0
  129. package/lib/components/IconButton/index.js +1 -1
  130. package/lib/components/InlineCheckbox/index.js +17 -0
  131. package/lib/components/{ExpandableSearch → Link}/index.js +3 -2
  132. package/lib/components/Loading/index.js +17 -0
  133. package/lib/components/Menu/index.js +1 -0
  134. package/lib/components/Modal/Modal.js +1 -1
  135. package/lib/components/Modal/index.js +1 -0
  136. package/lib/components/ModalWrapper/ModalWrapper.js +1 -1
  137. package/lib/components/MultiSelect/index.js +1 -0
  138. package/lib/components/Notification/Notification.js +1 -1
  139. package/lib/components/OverflowMenu/index.js +1 -0
  140. package/lib/components/OverflowMenuItem/index.js +1 -0
  141. package/lib/components/Pagination/Pagination.Skeleton.js +1 -0
  142. package/lib/components/Pagination/Pagination.js +1 -1
  143. package/lib/components/Pagination/experimental/PageSelector.js +1 -1
  144. package/lib/components/Pagination/experimental/Pagination.js +2 -2
  145. package/lib/components/PaginationNav/PaginationNav.js +1 -1
  146. package/lib/components/Popover/index.js +5 -1
  147. package/lib/components/PrimaryButton/PrimaryButton.js +1 -1
  148. package/lib/components/ProgressIndicator/ProgressIndicator.Skeleton.js +1 -0
  149. package/lib/components/RadioButton/RadioButton.Skeleton.js +1 -0
  150. package/lib/components/RadioButton/index.js +1 -0
  151. package/lib/components/RadioTile/index.js +17 -0
  152. package/lib/components/Search/Search.Skeleton.js +1 -0
  153. package/lib/components/Search/index.js +1 -0
  154. package/lib/components/SecondaryButton/SecondaryButton.js +1 -1
  155. package/lib/components/Select/Select.Skeleton.js +1 -0
  156. package/lib/components/Select/index.js +19 -0
  157. package/lib/components/SelectItem/index.js +17 -0
  158. package/lib/components/SkeletonText/index.js +17 -0
  159. package/lib/components/Slider/Slider.Skeleton.js +1 -0
  160. package/lib/components/Slider/index.js +4 -3
  161. package/lib/components/Stack/Stack.js +9 -5
  162. package/lib/components/Tab/index.js +1 -0
  163. package/lib/components/Tabs/Tabs.Skeleton.js +1 -0
  164. package/lib/components/Tag/Tag.Skeleton.js +1 -0
  165. package/lib/components/Tag/Tag.js +2 -0
  166. package/lib/components/TextArea/TextArea.Skeleton.js +1 -0
  167. package/lib/components/TextArea/index.js +19 -0
  168. package/lib/components/TextInput/TextInput.Skeleton.js +1 -0
  169. package/lib/components/TextInput/index.js +1 -0
  170. package/lib/components/TileGroup/index.js +4 -3
  171. package/lib/components/TimePickerSelect/index.js +1 -0
  172. package/lib/components/Toggle/Toggle.Skeleton.js +1 -0
  173. package/lib/components/Toggle/Toggle.js +27 -8
  174. package/lib/components/ToggleSmall/ToggleSmall.Skeleton.js +1 -0
  175. package/lib/components/TreeView/index.js +1 -0
  176. package/lib/components/UIShell/HeaderGlobalAction.js +1 -1
  177. package/lib/components/UIShell/HeaderNavigation.js +1 -0
  178. package/lib/components/UIShell/SideNavLink.js +5 -0
  179. package/lib/components/UIShell/SideNavMenu.js +1 -0
  180. package/lib/index.js +85 -89
  181. package/lib/lib/components/Checkbox/Checkbox.Skeleton.d.ts +1 -0
  182. package/lib/lib/components/Checkbox/Checkbox.d.ts +1 -1
  183. package/lib/lib/components/Checkbox/index.d.ts +3 -2
  184. package/lib/lib/components/Text/Text.d.ts +1 -1
  185. package/lib/lib/components/Text/TextDirection.d.ts +2 -2
  186. package/lib/lib/index.d.ts +119 -0
  187. package/package.json +8 -8
  188. package/es/components/Accordion/index.js +0 -11
  189. package/es/components/AccordionItem/index.js +0 -13
  190. package/es/components/FluidNumberInput/FluidNumberInput.Skeleton.js +0 -42
  191. package/es/components/FluidNumberInput/FluidNumberInput.js +0 -138
  192. package/es/components/FluidSearch/FluidSearch.Skeleton.js +0 -42
  193. package/es/components/FluidSearch/FluidSearch.js +0 -114
  194. package/es/components/Tabs/index.js +0 -10
  195. package/lib/components/Accordion/index.js +0 -20
  196. package/lib/components/AccordionItem/index.js +0 -18
  197. package/lib/components/FluidNumberInput/FluidNumberInput.Skeleton.js +0 -52
  198. package/lib/components/FluidNumberInput/FluidNumberInput.js +0 -148
  199. package/lib/components/FluidSearch/FluidSearch.Skeleton.js +0 -52
  200. package/lib/components/FluidSearch/FluidSearch.js +0 -124
  201. 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.20.0",
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.11.0",
47
- "@carbon/icons-react": "^11.14.0",
48
- "@carbon/layout": "^11.10.0",
49
- "@carbon/styles": "^1.20.0",
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.15.0",
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": "^3.0.2",
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": "b115fef8c7d19ed31ed3aeeb2b7f95f8be0738b6"
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;