@deque/cauldron-react 5.0.0-canary.75d70780 → 5.0.0-canary.8d67f3f3
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/components/Icon/types.d.ts +1 -1
- package/lib/hashtag.js +23 -0
- package/lib/index.js +12 -9
- package/package.json +1 -1
|
@@ -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' | 'grid' | 'hamburger-menu' | 'highlight' | 'info-circle-alt' | 'info-circle' | 'info-square' | 'kabob' | 'link' | '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' | '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' | 'close' | 'code' | 'copy' | 'download' | 'dropper' | 'exchange' | 'export-solid' | 'external-link' | 'eye' | 'filter-solid' | 'filter' | 'flag' | 'gears' | 'grid' | 'hamburger-menu' | 'hashtag' | 'highlight' | 'info-circle-alt' | 'info-circle' | 'info-square' | 'kabob' | 'link' | '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' | 'upload';
|
|
6
6
|
/** iconTypes holds each valid icon type. */
|
|
7
7
|
export declare const iconTypes: string[];
|
package/lib/hashtag.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
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 SvgHashtag = props => /*#__PURE__*/React.createElement("svg", _extends({
|
|
13
|
+
preserveAspectRatio: "none",
|
|
14
|
+
viewBox: "0 0 24 24",
|
|
15
|
+
height: 24,
|
|
16
|
+
width: 24
|
|
17
|
+
}, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
|
|
18
|
+
d: "M9.71.02c.93.16 1.56 1.04 1.41 1.97l-.52 3.15h5.09l.62-3.71C16.47.5 17.35-.13 18.28.02s1.56 1.04 1.41 1.97l-.52 3.15h3.12a1.71 1.71 0 1 1 0 3.42H18.6l-1.14 6.85h3.12a1.71 1.71 0 1 1 0 3.42h-3.69l-.62 3.71c-.16.93-1.04 1.56-1.97 1.41s-1.56-1.04-1.41-1.97l.52-3.14h-5.1l-.62 3.71c-.16.93-1.04 1.56-1.97 1.41s-1.56-1.04-1.41-1.97l.52-3.15H1.72c-.95.01-1.72-.75-1.72-1.7s.77-1.71 1.71-1.71H5.4l1.14-6.85H3.42a1.71 1.71 0 1 1 0-3.42h3.69l.62-3.71C7.89.52 8.77-.11 9.7.04Zm.31 8.55-1.14 6.85h5.09l1.14-6.85h-5.09Z",
|
|
19
|
+
fill: "currentColor",
|
|
20
|
+
vectorEffect: "non-scaling-stroke"
|
|
21
|
+
})));
|
|
22
|
+
|
|
23
|
+
exports.default = SvgHashtag;
|
package/lib/index.js
CHANGED
|
@@ -159,6 +159,7 @@ var iconTypes = [
|
|
|
159
159
|
'gears',
|
|
160
160
|
'grid',
|
|
161
161
|
'hamburger-menu',
|
|
162
|
+
'hashtag',
|
|
162
163
|
'highlight',
|
|
163
164
|
'info-circle-alt',
|
|
164
165
|
'info-circle',
|
|
@@ -237,6 +238,7 @@ function __variableDynamicImportRuntime0__(path) {
|
|
|
237
238
|
case './icons/gears.svg': return Promise.resolve().then(function () { return require('./gears.js'); });
|
|
238
239
|
case './icons/grid.svg': return Promise.resolve().then(function () { return require('./grid.js'); });
|
|
239
240
|
case './icons/hamburger-menu.svg': return Promise.resolve().then(function () { return require('./hamburger-menu.js'); });
|
|
241
|
+
case './icons/hashtag.svg': return Promise.resolve().then(function () { return require('./hashtag.js'); });
|
|
240
242
|
case './icons/highlight.svg': return Promise.resolve().then(function () { return require('./highlight.js'); });
|
|
241
243
|
case './icons/info-circle-alt.svg': return Promise.resolve().then(function () { return require('./info-circle-alt.js'); });
|
|
242
244
|
case './icons/info-circle.svg': return Promise.resolve().then(function () { return require('./info-circle.js'); });
|
|
@@ -8686,10 +8688,10 @@ var Pagination = React__default.forwardRef(function (_a, ref) {
|
|
|
8686
8688
|
'Pagination--thin': thin
|
|
8687
8689
|
}) }, other),
|
|
8688
8690
|
React__default.createElement("ul", null,
|
|
8689
|
-
React__default.createElement("li", null,
|
|
8690
|
-
React__default.createElement(
|
|
8691
|
-
React__default.createElement("li", null,
|
|
8692
|
-
React__default.createElement(
|
|
8691
|
+
React__default.createElement("li", null,
|
|
8692
|
+
React__default.createElement(IconButton, { icon: "chevron-double-left", tooltipPlacement: tooltipPlacement, label: firstPageLabel, "aria-disabled": isFirstPage, onClick: isFirstPage ? undefined : onFirstPageClick })),
|
|
8693
|
+
React__default.createElement("li", null,
|
|
8694
|
+
React__default.createElement(IconButton, { icon: "chevron-left", tooltipPlacement: tooltipPlacement, label: previousPageLabel, "aria-disabled": isFirstPage, onClick: isFirstPage ? undefined : onPreviousPageClick })),
|
|
8693
8695
|
React__default.createElement("li", null,
|
|
8694
8696
|
React__default.createElement("span", { role: "log", "aria-atomic": "true" }, statusLabel || (React__default.createElement("span", null,
|
|
8695
8697
|
"Showing ",
|
|
@@ -8699,10 +8701,10 @@ var Pagination = React__default.forwardRef(function (_a, ref) {
|
|
|
8699
8701
|
React__default.createElement("strong", null, itemEnd),
|
|
8700
8702
|
" of ",
|
|
8701
8703
|
React__default.createElement("strong", null, totalItems))))),
|
|
8702
|
-
React__default.createElement("li", null,
|
|
8703
|
-
React__default.createElement(
|
|
8704
|
-
React__default.createElement("li", null,
|
|
8705
|
-
React__default.createElement(
|
|
8704
|
+
React__default.createElement("li", null,
|
|
8705
|
+
React__default.createElement(IconButton, { icon: "chevron-right", tooltipPlacement: tooltipPlacement, label: nextPageLabel, "aria-disabled": isLastPage, onClick: isLastPage ? undefined : onNextPageClick })),
|
|
8706
|
+
React__default.createElement("li", null,
|
|
8707
|
+
React__default.createElement(IconButton, { icon: "chevron-double-right", tooltipPlacement: tooltipPlacement, label: lastPageLabel, "aria-disabled": isLastPage, onClick: isLastPage ? undefined : onLastPageClick })))));
|
|
8706
8708
|
});
|
|
8707
8709
|
Pagination.displayName = 'Pagination';
|
|
8708
8710
|
Pagination.propTypes = {
|
|
@@ -8720,7 +8722,8 @@ Pagination.propTypes = {
|
|
|
8720
8722
|
onLastPageClick: PropTypes.func,
|
|
8721
8723
|
// @ts-expect-error
|
|
8722
8724
|
tooltipPlacement: PropTypes.string,
|
|
8723
|
-
className: PropTypes.string
|
|
8725
|
+
className: PropTypes.string,
|
|
8726
|
+
thin: PropTypes.bool
|
|
8724
8727
|
};
|
|
8725
8728
|
|
|
8726
8729
|
var usePagination = function (_a) {
|
package/package.json
CHANGED