@deque/cauldron-react 5.7.1-canary.ac0947b9 → 5.7.1-canary.e04b475e
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/lib/clock.js +24 -0
- package/lib/components/Icon/types.d.ts +1 -1
- package/lib/index.js +10 -0
- package/lib/table-sort-ascending.js +1 -1
- package/lib/table-sort-descending.js +1 -1
- package/package.json +1 -1
package/lib/clock.js
ADDED
|
@@ -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 SvgClock = props => /*#__PURE__*/React.createElement("svg", _extends({
|
|
13
|
+
overflow: "visible",
|
|
14
|
+
preserveAspectRatio: "none",
|
|
15
|
+
viewBox: "0 0 72 72",
|
|
16
|
+
height: 24,
|
|
17
|
+
width: 24
|
|
18
|
+
}, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
|
|
19
|
+
d: "M65.25 36c0 16.154-13.096 29.25-29.25 29.25S6.75 52.154 6.75 36 19.846 6.75 36 6.75 65.25 19.846 65.25 36zM0 36c0 19.882 16.118 36 36 36s36-16.118 36-36S55.882 0 36 0 0 16.118 0 36zm32.625-19.125V36a3.39 3.39 0 0 0 1.505 2.813l13.5 9a3.367 3.367 0 0 0 4.682-.943 3.364 3.364 0 0 0-.942-4.682L39.375 34.2V16.875A3.367 3.367 0 0 0 36 13.5a3.367 3.367 0 0 0-3.375 3.375z",
|
|
20
|
+
fill: "currentColor",
|
|
21
|
+
vectorEffect: "non-scaling-stroke"
|
|
22
|
+
})));
|
|
23
|
+
|
|
24
|
+
exports.default = SvgClock;
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
* GENERATED CODE. DO NOT EDIT DIRECTLY!
|
|
3
3
|
*/
|
|
4
4
|
/** IconType represents each valid icon type. */
|
|
5
|
-
export declare type IconType = 'add-user' | 'arrow-circle-up' | 'arrow-circle-down' | 'arrow-circle-left' | 'arrow-circle-right' | 'arrow-up' | 'arrow-down' | 'arrow-left' | 'arrow-right' | 'arrows-alt' | 'bolt' | 'caution' | 'check-circle' | 'check-shield' | 'check-solid' | 'check' | 'checkbox-checked' | 'checkbox-unchecked' | 'chevron-double-up' | 'chevron-double-down' | 'chevron-double-left' | 'chevron-double-right' | 'chevron-up' | 'chevron-down' | 'chevron-left' | 'chevron-right' | 'clipboard' | 'close' | 'code' | 'copy' | 'download' | 'dropper' | 'exchange' | 'export-solid' | 'external-link' | 'eye' | 'filter-solid' | 'filter' | 'flag' | 'gears' | 'github' | 'grid' | 'hamburger-menu' | 'hashtag' | 'highlight' | 'info-circle-alt' | 'info-circle' | 'info-square' | 'kabob' | 'link' | 'linkedin' | 'list' | 'lock' | 'magnifying-glass' | 'menu' | 'minus' | 'new-releases' | 'new' | 'no' | 'pencil' | 'person-running' | 'play' | 'plus' | 'question-circle-alt' | 'question-circle' | 'radio-checked' | 'radio-unchecked' | 'recycle-square' | 'recycle' | 'resend' | 'robot' | 'run-again' | 'save' | 'share-nodes' | 'share' | 'sort-triangle' | 'sort' | 'star' | 'sun' | 'table-sort-ascending' | 'table-sort-descending' | 'tag' | 'target' | 'trash' | 'triangle-up' | 'triangle-down' | 'triangle-left' | 'triangle-right' | 'twitter' | 'upload';
|
|
5
|
+
export declare type IconType = 'add-user' | 'arrow-circle-up' | 'arrow-circle-down' | 'arrow-circle-left' | 'arrow-circle-right' | 'arrow-up' | 'arrow-down' | 'arrow-left' | 'arrow-right' | 'arrows-alt' | 'bolt' | 'caution' | 'check-circle' | 'check-shield' | 'check-solid' | 'check' | 'checkbox-checked' | 'checkbox-unchecked' | 'chevron-double-up' | 'chevron-double-down' | 'chevron-double-left' | 'chevron-double-right' | 'chevron-up' | 'chevron-down' | 'chevron-left' | 'chevron-right' | 'clipboard' | 'clock' | 'close' | 'code' | 'copy' | 'download' | 'dropper' | 'exchange' | 'export-solid' | 'external-link' | 'eye' | 'filter-solid' | 'filter' | 'flag' | 'gears' | 'github' | 'grid' | 'hamburger-menu' | 'hashtag' | 'highlight' | 'info-circle-alt' | 'info-circle' | 'info-square' | 'kabob' | 'link' | 'linkedin' | 'list' | 'lock' | 'magnifying-glass' | 'menu' | 'minus' | 'new-releases' | 'new' | 'no' | 'pencil' | 'person-running' | 'play' | 'plus' | 'question-circle-alt' | 'question-circle' | 'radio-checked' | 'radio-unchecked' | 'recycle-square' | 'recycle' | 'resend' | 'robot' | 'run-again' | 'save' | 'share-nodes' | 'share' | 'sort-triangle' | 'sort' | 'star' | 'sun' | 'table-sort-ascending' | 'table-sort-descending' | 'tag' | 'target' | 'trash' | 'triangle-up' | 'triangle-down' | 'triangle-left' | 'triangle-right' | 'twitter' | 'upload';
|
|
6
6
|
/** iconTypes holds each valid icon type. */
|
|
7
7
|
export declare const iconTypes: string[];
|
package/lib/index.js
CHANGED
|
@@ -149,6 +149,7 @@ var iconTypes = [
|
|
|
149
149
|
'chevron-left',
|
|
150
150
|
'chevron-right',
|
|
151
151
|
'clipboard',
|
|
152
|
+
'clock',
|
|
152
153
|
'close',
|
|
153
154
|
'code',
|
|
154
155
|
'copy',
|
|
@@ -231,6 +232,7 @@ function __variableDynamicImportRuntime0__(path) {
|
|
|
231
232
|
case './icons/chevron-double.svg': return Promise.resolve().then(function () { return require('./chevron-double.js'); });
|
|
232
233
|
case './icons/chevron.svg': return Promise.resolve().then(function () { return require('./chevron.js'); });
|
|
233
234
|
case './icons/clipboard.svg': return Promise.resolve().then(function () { return require('./clipboard.js'); });
|
|
235
|
+
case './icons/clock.svg': return Promise.resolve().then(function () { return require('./clock.js'); });
|
|
234
236
|
case './icons/close.svg': return Promise.resolve().then(function () { return require('./close.js'); });
|
|
235
237
|
case './icons/code.svg': return Promise.resolve().then(function () { return require('./code.js'); });
|
|
236
238
|
case './icons/copy.svg': return Promise.resolve().then(function () { return require('./copy.js'); });
|
|
@@ -8959,9 +8961,17 @@ var TwoColumnPanel = React.forwardRef(function (_a, ref) {
|
|
|
8959
8961
|
var columnRightRef = React.useRef(null);
|
|
8960
8962
|
var columnLeft = React__default.Children.toArray(children).find(function (child) { return child.type === ColumnLeft; });
|
|
8961
8963
|
var togglePanel = function () {
|
|
8964
|
+
var prefersReducedMotion = 'matchMedia' in window &&
|
|
8965
|
+
typeof matchMedia === 'function' &&
|
|
8966
|
+
matchMedia('(prefers-reduced-motion: reduce)').matches;
|
|
8962
8967
|
if (isCollapsed) {
|
|
8963
8968
|
setShowPanel(true);
|
|
8964
8969
|
}
|
|
8970
|
+
else if (prefersReducedMotion) {
|
|
8971
|
+
// Immediately collapse the panel as we do not need to wait for css
|
|
8972
|
+
// transitions to complete
|
|
8973
|
+
setShowPanel(false);
|
|
8974
|
+
}
|
|
8965
8975
|
// Set collapsed state on next tick so css transitions can be applied
|
|
8966
8976
|
requestAnimationFrame(function () {
|
|
8967
8977
|
var _a, _b;
|
|
@@ -11,7 +11,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
|
|
|
11
11
|
|
|
12
12
|
const SvgTableSortAscending = props => /*#__PURE__*/React.createElement("svg", _extends({
|
|
13
13
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14
|
-
viewBox: "0
|
|
14
|
+
viewBox: "0 -100 320 720",
|
|
15
15
|
height: 24,
|
|
16
16
|
width: 24
|
|
17
17
|
}, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
|
|
@@ -11,7 +11,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
|
|
|
11
11
|
|
|
12
12
|
const SvgTableSortDescending = props => /*#__PURE__*/React.createElement("svg", _extends({
|
|
13
13
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14
|
-
viewBox: "0
|
|
14
|
+
viewBox: "0 -100 320 720",
|
|
15
15
|
height: 24,
|
|
16
16
|
width: 24
|
|
17
17
|
}, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
|
package/package.json
CHANGED