@deque/cauldron-react 2.0.0 → 3.0.1-canary.00f53b54

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 (108) hide show
  1. package/lib/{add-user-075c63a1.js → add-user.js} +10 -12
  2. package/lib/arrow-circle.js +24 -0
  3. package/lib/arrow.js +24 -0
  4. package/lib/arrows-alt.js +24 -0
  5. package/lib/{bolt-e44406fd.js → bolt.js} +11 -12
  6. package/lib/cauldron.css +45 -7
  7. package/lib/{caution-e048e1bf.js → caution.js} +10 -12
  8. package/lib/{check-circle-8b5069b4.js → check-circle.js} +12 -13
  9. package/lib/{check-shield-8fdb3641.js → check-shield.js} +11 -13
  10. package/lib/{check-solid-a0682f04.js → check-solid.js} +12 -13
  11. package/lib/{check-c2912d5e.js → check.js} +12 -13
  12. package/lib/{checkbox-checked-a262e99c.js → checkbox-checked.js} +12 -13
  13. package/lib/{checkbox-unchecked-2ad5b4ae.js → checkbox-unchecked.js} +11 -12
  14. package/lib/chevron-double.js +24 -0
  15. package/lib/chevron.js +24 -0
  16. package/lib/{close-1b16b9ec.js → close.js} +12 -13
  17. package/lib/code.js +25 -0
  18. package/lib/components/Address/index.d.ts +38 -0
  19. package/lib/components/Card/Card.d.ts +3 -1
  20. package/lib/components/ExpandCollapsePanel/PanelTrigger.d.ts +2 -1
  21. package/lib/components/FieldWrap/index.d.ts +7 -0
  22. package/lib/components/Icon/index.d.ts +3 -1
  23. package/lib/components/Icon/types.d.ts +7 -0
  24. package/lib/components/IconButton/index.d.ts +12 -4
  25. package/lib/components/IssuePanel/index.d.ts +17 -0
  26. package/lib/components/Loader/index.d.ts +3 -3
  27. package/lib/components/LoaderOverlay/axe-loader.d.ts +1 -0
  28. package/lib/components/NavBar/NavBar.d.ts +22 -0
  29. package/lib/components/NavBar/NavItem.d.ts +14 -0
  30. package/lib/components/NavBar/index.d.ts +2 -0
  31. package/lib/components/OptionsMenu/OptionsMenu.d.ts +4 -4
  32. package/lib/components/Pagination/index.d.ts +20 -0
  33. package/lib/components/Panel/index.d.ts +22 -0
  34. package/lib/components/ProgressBar/index.d.ts +15 -0
  35. package/lib/components/Select/index.d.ts +2 -2
  36. package/lib/components/SideBar/SideBar.d.ts +1 -0
  37. package/lib/components/Stepper/index.d.ts +2 -0
  38. package/lib/components/Table/TableCell.d.ts +2 -2
  39. package/lib/components/Table/TableHeader.d.ts +2 -2
  40. package/lib/components/Tabs/Tab.d.ts +8 -0
  41. package/lib/components/Tabs/TabPanel.d.ts +8 -0
  42. package/lib/components/Tabs/Tabs.d.ts +28 -0
  43. package/lib/components/Tabs/index.d.ts +3 -0
  44. package/lib/components/TextField/index.d.ts +0 -1
  45. package/lib/components/Toast/utils.d.ts +9 -22
  46. package/lib/components/Tooltip/index.d.ts +1 -1
  47. package/lib/copy.js +24 -0
  48. package/lib/{download-2790e982.js → download.js} +10 -12
  49. package/lib/exchange.js +24 -0
  50. package/lib/external-link.js +25 -0
  51. package/lib/{eye-a0d28243.js → eye.js} +10 -12
  52. package/lib/{filter-d2057f4c.js → filter.js} +10 -12
  53. package/lib/{flag-fb248a99.js → flag.js} +12 -13
  54. package/lib/gears.js +22 -0
  55. package/lib/{grid-ee446118.js → grid.js} +10 -12
  56. package/lib/{hamburger-menu-0fc0e266.js → hamburger-menu.js} +10 -11
  57. package/lib/highlight.js +24 -0
  58. package/lib/index.d.ts +10 -1
  59. package/lib/index.js +605 -122
  60. package/lib/{info-circle-alt-b1a696c7.js → info-circle-alt.js} +10 -12
  61. package/lib/{info-circle-b43f7a9b.js → info-circle.js} +11 -12
  62. package/lib/{arrow-97011665.js → info-square.js} +12 -15
  63. package/lib/kabob.js +25 -0
  64. package/lib/{list-8fbd8209.js → list.js} +10 -11
  65. package/lib/{lock-bd0122db.js → lock.js} +12 -13
  66. package/lib/magnifying-glass.js +21 -0
  67. package/lib/menu.js +25 -0
  68. package/lib/{new-releases-ac749bdd.js → new-releases.js} +13 -15
  69. package/lib/{new-6c3ac7d7.js → new.js} +11 -12
  70. package/lib/{no-bb3aa565.js → no.js} +12 -13
  71. package/lib/{pencil-4843058f.js → pencil.js} +11 -13
  72. package/lib/{plus-6589e613.js → plus.js} +11 -12
  73. package/lib/{question-circle-c3c634c4.js → question-circle.js} +11 -13
  74. package/lib/{radio-checked-006112fe.js → radio-checked.js} +11 -12
  75. package/lib/{radio-unchecked-a76e2d66.js → radio-unchecked.js} +11 -12
  76. package/lib/recycle.js +24 -0
  77. package/lib/robot.js +26 -0
  78. package/lib/run-again.js +23 -0
  79. package/lib/{save-edf5fc68.js → save.js} +12 -13
  80. package/lib/share.js +25 -0
  81. package/lib/{sort-49ec1442.js → sort.js} +11 -13
  82. package/lib/{star-a1af8d95.js → star.js} +11 -13
  83. package/lib/sun.js +24 -0
  84. package/lib/{tag-56c32f4f.js → tag.js} +11 -12
  85. package/lib/target.js +28 -0
  86. package/lib/trash.js +24 -0
  87. package/lib/{triangle-51d7723a.js → triangle.js} +14 -16
  88. package/lib/types.d.ts +7 -0
  89. package/lib/{upload-d71f0e44.js → upload.js} +10 -12
  90. package/lib/utils/polymorphic-type/index.d.ts +40 -0
  91. package/lib/utils/use-did-update/index.d.ts +10 -0
  92. package/package.json +5 -4
  93. package/lib/arrow-circle-7b95a2fd.js +0 -27
  94. package/lib/arrows-alt-b91e24b7.js +0 -26
  95. package/lib/chevron-064d5f96.js +0 -26
  96. package/lib/chevron-double-65975fca.js +0 -26
  97. package/lib/code-e3365341.js +0 -26
  98. package/lib/exchange-1d290efb.js +0 -26
  99. package/lib/external-link-ef122c95.js +0 -26
  100. package/lib/gears-b9ee1585.js +0 -23
  101. package/lib/highlight-81bfb759.js +0 -26
  102. package/lib/kabob-692fdc00.js +0 -26
  103. package/lib/menu-2bb052ac.js +0 -43
  104. package/lib/run-again-c9777075.js +0 -25
  105. package/lib/share-70e94257.js +0 -26
  106. package/lib/sun-408aecdc.js +0 -26
  107. package/lib/target-50f179e0.js +0 -35
  108. package/lib/trash-896a3291.js +0 -26
package/lib/gears.js ADDED
@@ -0,0 +1,22 @@
1
+ 'use strict';
2
+
3
+ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
4
+
5
+ var React = require('react');
6
+ var React__default = _interopDefault(React);
7
+
8
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
9
+
10
+ const SvgGears = props => /*#__PURE__*/React.createElement("svg", _extends({
11
+ xmlns: "http://www.w3.org/2000/svg",
12
+ viewBox: "0 0 29.74 26.88",
13
+ height: 24,
14
+ width: 24
15
+ }, props), /*#__PURE__*/React.createElement("path", {
16
+ d: "M19.22 15.56a.38.38 0 0 0-.22-.16l-2.31-.35a6.79 6.79 0 0 0-.52-1.21l.68-.88c.3-.37.51-.65.64-.83a.51.51 0 0 0 .1-.29.41.41 0 0 0-.09-.28 17.53 17.53 0 0 0-2.08-2.14.48.48 0 0 0-.31-.12.41.41 0 0 0-.3.11L13 10.7a9.28 9.28 0 0 0-1.13-.47l-.35-2.31a.37.37 0 0 0-.15-.26.39.39 0 0 0-.3-.12h-2.8a.41.41 0 0 0-.45.35 18.64 18.64 0 0 0-.36 2.34 7.33 7.33 0 0 0-1.15.48L4.57 9.36a.58.58 0 0 0-.33-.12 3.06 3.06 0 0 0-1.24.89 14.32 14.32 0 0 0-1.21 1.36.53.53 0 0 0-.1.29.42.42 0 0 0 .12.3c.55.68 1 1.26 1.34 1.74A6.06 6.06 0 0 0 2.68 15l-2.34.35a.35.35 0 0 0-.24.17.46.46 0 0 0-.1.29v2.79a.51.51 0 0 0 .1.29.42.42 0 0 0 .26.16l2.31.33a5.66 5.66 0 0 0 .52 1.21c-.16.21-.37.5-.68.88s-.5.66-.64.84a.48.48 0 0 0-.09.29.49.49 0 0 0 .08.29A17.27 17.27 0 0 0 3.94 25a.41.41 0 0 0 .31.14.52.52 0 0 0 .32-.11l1.77-1.34a11.37 11.37 0 0 0 1.14.47l.35 2.32a.34.34 0 0 0 .15.26.44.44 0 0 0 .31.11h2.79a.43.43 0 0 0 .45-.35 18.64 18.64 0 0 0 .36-2.34A7.36 7.36 0 0 0 13 23.7l1.74 1.36a.52.52 0 0 0 .32.11 2.94 2.94 0 0 0 1.21-.9 11.9 11.9 0 0 0 1.21-1.35.46.46 0 0 0 .11-.29.53.53 0 0 0-.12-.32c-.61-.73-1.05-1.31-1.34-1.74a7.68 7.68 0 0 0 .49-1.14l2.38-.35a.43.43 0 0 0 .34-.45v-2.79a.43.43 0 0 0-.12-.28zm-7.28 3.91a3.22 3.22 0 0 1-4.54 0 3.23 3.23 0 0 1 0-4.54 3.22 3.22 0 0 1 4.55 0 3.56 3.56 0 0 1-.01 4.54zM29.73 5.16a.28.28 0 0 0-.06-.16.27.27 0 0 0-.16-.1l-1.44-.21a3.85 3.85 0 0 0-.32-.75c.1-.13.23-.32.42-.55s.32-.41.4-.52a.28.28 0 0 0 .06-.18.26.26 0 0 0-.05-.17 11.58 11.58 0 0 0-1.29-1.33.35.35 0 0 0-.2-.07.27.27 0 0 0-.19.06L25.81 2a6.29 6.29 0 0 0-.71-.3L24.89.24a.22.22 0 0 0-.09-.16.25.25 0 0 0-.19-.08h-1.74a.26.26 0 0 0-.28.22 12.1 12.1 0 0 0-.22 1.45 5.74 5.74 0 0 0-.72.3l-1.08-.84a.35.35 0 0 0-.2-.07 2 2 0 0 0-.75.55 8.49 8.49 0 0 0-.75.84.4.4 0 0 0-.07.18.27.27 0 0 0 .08.19c.34.42.62.78.83 1.08a4.09 4.09 0 0 0-.31.75l-1.4.22a.23.23 0 0 0-.15.1.3.3 0 0 0-.06.18v1.74a.32.32 0 0 0 .06.18.22.22 0 0 0 .16.09l1.44.21a3.32 3.32 0 0 0 .32.75l-.42.55c-.19.23-.32.41-.4.52a.28.28 0 0 0-.06.18.35.35 0 0 0 .05.18 11.4 11.4 0 0 0 1.29 1.31.3.3 0 0 0 .2.08.31.31 0 0 0 .19-.06l1.06-.88a5.46 5.46 0 0 0 .7.3l.22 1.44a.26.26 0 0 0 .09.16.28.28 0 0 0 .19.07h1.74a.25.25 0 0 0 .27-.22 12.13 12.13 0 0 0 .23-1.45 5 5 0 0 0 .71-.3l1.08.84a.36.36 0 0 0 .2.06 1.73 1.73 0 0 0 .75-.55 7.49 7.49 0 0 0 .75-.84.24.24 0 0 0 .07-.18.35.35 0 0 0-.07-.2 12.91 12.91 0 0 1-.84-1.08 4.49 4.49 0 0 0 .31-.71l1.45-.22a.25.25 0 0 0 .16-.1.34.34 0 0 0 0-.17v-1.7zm-4.58 2.25a2 2 0 0 1-2.82 0 2 2 0 0 1 0-2.82 2 2 0 0 1 2.82 0 2.23 2.23 0 0 1 0 2.82z",
17
+ style: {
18
+ fill: "currentColor"
19
+ }
20
+ }));
21
+
22
+ exports.default = SvgGears;
@@ -5,21 +5,19 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'defau
5
5
  var React = require('react');
6
6
  var React__default = _interopDefault(React);
7
7
 
8
+ var _path;
9
+
8
10
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
9
11
 
10
- var _ref = /*#__PURE__*/React.createElement("path", {
12
+ const SvgGrid = props => /*#__PURE__*/React.createElement("svg", _extends({
13
+ overflow: "visible",
14
+ preserveAspectRatio: "none",
15
+ viewBox: "0 0 24 24",
16
+ height: 24,
17
+ width: 24
18
+ }, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
11
19
  d: "M4 8h4V4H4v4zm6 12h4v-4h-4v4zm-6 0h4v-4H4v4zm0-6h4v-4H4v4zm6 0h4v-4h-4v4zm6-10v4h4V4h-4zm-6 4h4V4h-4v4zm6 6h4v-4h-4v4zm0 6h4v-4h-4v4z",
12
20
  fill: "currentColor"
13
- });
14
-
15
- function SvgGrid(props) {
16
- return /*#__PURE__*/React.createElement("svg", _extends({
17
- overflow: "visible",
18
- preserveAspectRatio: "none",
19
- viewBox: "0 0 24 24",
20
- width: 19,
21
- height: 19
22
- }, props), _ref);
23
- }
21
+ })));
24
22
 
25
23
  exports.default = SvgGrid;
@@ -5,9 +5,17 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'defau
5
5
  var React = require('react');
6
6
  var React__default = _interopDefault(React);
7
7
 
8
+ var _g;
9
+
8
10
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
9
11
 
10
- var _ref = /*#__PURE__*/React.createElement("g", {
12
+ const SvgHamburgerMenu = props => /*#__PURE__*/React.createElement("svg", _extends({
13
+ overflow: "visible",
14
+ preserveAspectRatio: "none",
15
+ viewBox: "0 0 20 20",
16
+ height: 24,
17
+ width: 24
18
+ }, props), _g || (_g = /*#__PURE__*/React.createElement("g", {
11
19
  fill: "currentColor"
12
20
  }, /*#__PURE__*/React.createElement("rect", {
13
21
  x: 1,
@@ -27,15 +35,6 @@ var _ref = /*#__PURE__*/React.createElement("g", {
27
35
  width: 18,
28
36
  height: 3,
29
37
  rx: 1
30
- }));
31
-
32
- function SvgHamburgerMenu(props) {
33
- return /*#__PURE__*/React.createElement("svg", _extends({
34
- overflow: "visible",
35
- preserveAspectRatio: "none",
36
- width: 20,
37
- height: 20
38
- }, props), _ref);
39
- }
38
+ }))));
40
39
 
41
40
  exports.default = SvgHamburgerMenu;
@@ -0,0 +1,24 @@
1
+ 'use strict';
2
+
3
+ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
4
+
5
+ var React = require('react');
6
+ var React__default = _interopDefault(React);
7
+
8
+ var _path;
9
+
10
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
11
+
12
+ const SvgHighlight = props => /*#__PURE__*/React.createElement("svg", _extends({
13
+ overflow: "visible",
14
+ preserveAspectRatio: "none",
15
+ viewBox: "0 0 24 24",
16
+ height: 24,
17
+ width: 24
18
+ }, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
19
+ d: "M15.3 15.3c-.56.56-1.24.96-2 1.17v-1.14a.683.683 0 0 0-.67-.67h-1.3c-.37.01-.66.3-.67.67v1.13a4.677 4.677 0 0 1-3.13-3.13h1.14c.37-.01.66-.3.67-.67v-1.33a.683.683 0 0 0-.67-.67H7.53c.45-1.5 1.63-2.68 3.13-3.13v1.14c.01.37.3.66.67.67h1.33c.37-.01.66-.3.67-.67V7.53c1.5.45 2.68 1.63 3.13 3.13h-1.13c-.37.01-.66.3-.67.67v1.33c.01.37.3.66.67.67h1.13c-.21.74-.61 1.42-1.16 1.97zm4.7-4a.683.683 0 0 0-.67-.67h-1.49c-.51-2.24-2.27-4-4.51-4.51V4.66a.688.688 0 0 0-.66-.67h-1.34a.69.69 0 0 0-.67.67v1.49c-2.24.51-4 2.27-4.51 4.51H4.67c-.37.01-.66.31-.67.68v1.33c.01.37.3.66.67.67h1.49c.51 2.24 2.27 4 4.51 4.51v1.49c.01.37.3.66.67.67h1.33c.37-.01.66-.3.67-.67v-1.5c2.24-.51 4-2.27 4.51-4.51h1.49c.36-.01.65-.3.66-.66V11.3z",
20
+ fill: "currentColor",
21
+ vectorEffect: "non-scaling-stroke"
22
+ })));
23
+
24
+ exports.default = SvgHighlight;
package/lib/index.d.ts CHANGED
@@ -4,12 +4,13 @@
4
4
  export { default as Workspace } from './components/Workspace';
5
5
  export { default as Main } from './components/Main';
6
6
  export { default as Layout } from './components/Layout';
7
- export { default as Icon } from './components/Icon';
7
+ export { default as Icon, IconType, iconTypes } from './components/Icon';
8
8
  export { default as Offscreen } from './components/Offscreen';
9
9
  export { default as Scrim } from './components/Scrim';
10
10
  export { default as MenuItem } from './components/MenuItem';
11
11
  export { default as MenuBar } from './components/MenuBar';
12
12
  export { default as TopBar, TopBarTrigger, TopBarMenu, TopBarItem } from './components/TopBar';
13
+ export { default as NavBar, NavItem } from './components/NavBar';
13
14
  export { default as SideBar } from './components/SideBar';
14
15
  export { Alert, AlertContent, AlertActions } from './components/Alert';
15
16
  export { Dialog, DialogContent, DialogFooter } from './components/Dialog';
@@ -37,13 +38,21 @@ export { default as LoaderOverlay } from './components/LoaderOverlay';
37
38
  export { default as Line } from './components/Line';
38
39
  export { default as Tag, TagLabel } from './components/Tag';
39
40
  export { default as Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from './components/Table';
41
+ export { default as Tabs, Tab, TabPanel } from './components/Tabs';
40
42
  export { DescriptionList, DescriptionListItem, DescriptionTerm, DescriptionDetails } from './components/DescriptionList';
41
43
  export { default as Stepper, Step } from './components/Stepper';
44
+ export { default as Panel } from './components/Panel';
45
+ export { default as IssuePanel } from './components/IssuePanel';
46
+ export { default as ProgressBar } from './components/ProgressBar';
47
+ export { Address, AddressLine, AddressCityStateZip } from './components/Address';
48
+ export { default as Pagination } from './components/Pagination';
49
+ export { default as FieldWrap } from './components/FieldWrap';
42
50
  /**
43
51
  * Helpers / Utils
44
52
  */
45
53
  export { default as AriaIsolate } from './utils/aria-isolate';
46
54
  export { default as focusableSelector } from './utils/focusable-selector';
55
+ export { default as useDidUpdate } from './utils/use-did-update';
47
56
  /**
48
57
  * Contexts
49
58
  */