@deque/cauldron-react 4.6.0 → 4.7.0-canary.082ddc6e
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/clipboard.js +24 -0
- package/lib/components/Accordion/Accordion.d.ts +5 -3
- package/lib/components/ClickOutsideListener/index.d.ts +1 -0
- package/lib/components/ExpandCollapsePanel/ExpandCollapsePanel.d.ts +1 -1
- package/lib/components/ExpandCollapsePanel/PanelTrigger.d.ts +3 -1
- package/lib/components/Icon/types.d.ts +1 -1
- package/lib/components/LoaderOverlay/index.d.ts +1 -1
- package/lib/components/Pagination/Pagination.d.ts +5 -4
- package/lib/components/Pagination/usePagination.d.ts +1 -0
- package/lib/components/SideBar/SideBar.d.ts +1 -1
- package/lib/components/Table/Table.d.ts +5 -1
- package/lib/components/Toast/index.d.ts +3 -0
- package/lib/components/TwoColumnPanel/TwoColumnPanel.d.ts +1 -0
- package/lib/export-solid.js +24 -0
- package/lib/index.js +60 -35
- package/lib/link.js +25 -0
- package/lib/question-circle-alt.js +24 -0
- package/package.json +3 -3
package/lib/clipboard.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 SvgClipboard = 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: "M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm2 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z",
|
|
20
|
+
fill: "currentColor",
|
|
21
|
+
vectorEffect: "non-scaling-stroke"
|
|
22
|
+
})));
|
|
23
|
+
|
|
24
|
+
exports.default = SvgClipboard;
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { ExpandCollapsePanelProps } from '../ExpandCollapsePanel';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
export interface AccordionTriggerProps extends React.HTMLAttributes<HTMLButtonElement> {
|
|
5
|
-
children: React.
|
|
5
|
+
children: React.ReactNode;
|
|
6
6
|
heading?: React.ReactElement | {
|
|
7
7
|
level: string | undefined;
|
|
8
8
|
};
|
|
@@ -12,7 +12,9 @@ declare const AccordionTrigger: {
|
|
|
12
12
|
displayName: string;
|
|
13
13
|
propTypes: {
|
|
14
14
|
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
15
|
-
heading: PropTypes.Requireable<
|
|
15
|
+
heading: PropTypes.Requireable<PropTypes.InferProps<{
|
|
16
|
+
level: PropTypes.Requireable<number>;
|
|
17
|
+
}>>;
|
|
16
18
|
};
|
|
17
19
|
};
|
|
18
20
|
interface AccordionContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
@@ -31,7 +33,7 @@ interface AccordionProps extends ExpandCollapsePanelProps {
|
|
|
31
33
|
children: React.ReactNode;
|
|
32
34
|
}
|
|
33
35
|
declare const Accordion: {
|
|
34
|
-
({ children }: AccordionProps): JSX.Element | null;
|
|
36
|
+
({ children, open, onToggle, animationTiming, ...props }: AccordionProps): JSX.Element | null;
|
|
35
37
|
displayName: string;
|
|
36
38
|
propTypes: {
|
|
37
39
|
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
@@ -8,6 +8,7 @@ export interface ClickOutsideListenerProps<T extends HTMLElement = HTMLElement>
|
|
|
8
8
|
target?: T;
|
|
9
9
|
}
|
|
10
10
|
export default class ClickOutsideListener extends React.Component<ClickOutsideListenerProps> {
|
|
11
|
+
static displayName: string;
|
|
11
12
|
static defaultProps: {
|
|
12
13
|
mouseEvent: string;
|
|
13
14
|
touchEvent: string;
|
|
@@ -4,7 +4,7 @@ export interface ExpandCollapsePanelProps extends React.HTMLAttributes<HTMLDivEl
|
|
|
4
4
|
open?: boolean;
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
animationTiming?: number | boolean;
|
|
7
|
-
onToggle
|
|
7
|
+
onToggle?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
8
8
|
}
|
|
9
9
|
interface ExpandCollapsePanelState {
|
|
10
10
|
controlled: boolean;
|
|
@@ -21,7 +21,9 @@ declare const _default: React.MemoExoticComponent<{
|
|
|
21
21
|
open: PropTypes.Requireable<boolean>;
|
|
22
22
|
iconExpanded: PropTypes.Requireable<string>;
|
|
23
23
|
iconCollapsed: PropTypes.Requireable<string>;
|
|
24
|
-
heading: PropTypes.Requireable<
|
|
24
|
+
heading: PropTypes.Requireable<PropTypes.InferProps<{
|
|
25
|
+
level: PropTypes.Requireable<number>;
|
|
26
|
+
}>>;
|
|
25
27
|
};
|
|
26
28
|
displayName: string;
|
|
27
29
|
}>;
|
|
@@ -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' | 'close' | 'code' | 'copy' | 'download' | 'dropper' | 'exchange' | 'external-link' | 'eye' | 'filter-solid' | 'filter' | 'flag' | 'gears' | 'grid' | 'hamburger-menu' | 'highlight' | 'info-circle-alt' | 'info-circle' | 'info-square' | 'kabob' | 'list' | 'lock' | 'magnifying-glass' | 'menu' | 'minus' | 'new-releases' | 'new' | 'no' | 'pencil' | 'play' | 'plus' | 'question-circle' | 'radio-checked' | 'radio-unchecked' | 'recycle-square' | 'recycle' | 'resend' | 'robot' | 'run-again' | 'save' | 'share' | 'sort-triangle' | 'sort' | 'star' | 'sun' | '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' | 'highlight' | 'info-circle-alt' | 'info-circle' | 'info-square' | 'kabob' | 'link' | 'list' | 'lock' | 'magnifying-glass' | 'menu' | 'minus' | 'new-releases' | 'new' | 'no' | 'pencil' | 'play' | 'plus' | 'question-circle-alt' | 'question-circle' | 'radio-checked' | 'radio-unchecked' | 'recycle-square' | 'recycle' | 'resend' | 'robot' | 'run-again' | 'save' | 'share' | 'sort-triangle' | 'sort' | 'star' | 'sun' | '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[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
interface LoaderOverlayProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
2
|
+
export interface LoaderOverlayProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
3
|
variant?: 'large' | 'small';
|
|
4
4
|
label?: string;
|
|
5
5
|
focusOnInitialRender?: boolean;
|
|
@@ -9,11 +9,12 @@ interface Props extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
9
9
|
previousPageLabel?: string;
|
|
10
10
|
nextPageLabel?: string;
|
|
11
11
|
lastPageLabel?: string;
|
|
12
|
-
onNextPageClick?: () => void;
|
|
13
|
-
onPreviousPageClick?: () => void;
|
|
14
|
-
onFirstPageClick?: () => void;
|
|
15
|
-
onLastPageClick?: () => void;
|
|
12
|
+
onNextPageClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
13
|
+
onPreviousPageClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
14
|
+
onFirstPageClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
15
|
+
onLastPageClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
16
16
|
tooltipPlacement?: Placement;
|
|
17
|
+
thin?: boolean;
|
|
17
18
|
className?: string;
|
|
18
19
|
}
|
|
19
20
|
declare const Pagination: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -16,6 +16,7 @@ interface PageStatus {
|
|
|
16
16
|
currentPage: number;
|
|
17
17
|
pageStart: number;
|
|
18
18
|
pageEnd: number;
|
|
19
|
+
setCurrentPage: (page: number) => void;
|
|
19
20
|
}
|
|
20
21
|
export declare const usePagination: ({ totalItems, initialPageSize, initialPage }: Options) => {
|
|
21
22
|
pagination: PaginationResults;
|
|
@@ -5,7 +5,7 @@ export interface SideBarProps extends React.HTMLAttributes<HTMLUListElement> {
|
|
|
5
5
|
onDismiss: () => void;
|
|
6
6
|
className?: string;
|
|
7
7
|
show: boolean;
|
|
8
|
-
navProps
|
|
8
|
+
navProps?: React.HTMLAttributes<HTMLElement>;
|
|
9
9
|
}
|
|
10
10
|
interface SideBarState {
|
|
11
11
|
wide: boolean;
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { TableHTMLAttributes } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
+
interface TableProps extends TableHTMLAttributes<HTMLTableElement> {
|
|
4
|
+
variant?: 'border';
|
|
5
|
+
}
|
|
3
6
|
declare const Table: {
|
|
4
|
-
({ children, className, ...other }:
|
|
7
|
+
({ children, className, variant, ...other }: TableProps): JSX.Element;
|
|
5
8
|
displayName: string;
|
|
6
9
|
propTypes: {
|
|
7
10
|
children: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
|
|
8
11
|
className: PropTypes.Requireable<string>;
|
|
12
|
+
variant: PropTypes.Requireable<string>;
|
|
9
13
|
};
|
|
10
14
|
};
|
|
11
15
|
export default Table;
|
|
@@ -8,6 +8,7 @@ export interface ToastProps {
|
|
|
8
8
|
toastRef: React.Ref<HTMLDivElement>;
|
|
9
9
|
focus?: boolean;
|
|
10
10
|
show?: boolean;
|
|
11
|
+
dismissible?: boolean;
|
|
11
12
|
children: React.ReactNode;
|
|
12
13
|
}
|
|
13
14
|
interface ToastState {
|
|
@@ -24,6 +25,7 @@ export default class Toast extends React.Component<ToastProps, ToastState> {
|
|
|
24
25
|
toastRef: () => void;
|
|
25
26
|
focus: boolean;
|
|
26
27
|
show: boolean;
|
|
28
|
+
dismissible: boolean;
|
|
27
29
|
};
|
|
28
30
|
static propTypes: {
|
|
29
31
|
children: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
|
|
@@ -35,6 +37,7 @@ export default class Toast extends React.Component<ToastProps, ToastState> {
|
|
|
35
37
|
}>>;
|
|
36
38
|
focus: PropTypes.Requireable<boolean>;
|
|
37
39
|
show: PropTypes.Requireable<boolean>;
|
|
40
|
+
dismissible: PropTypes.Requireable<boolean>;
|
|
38
41
|
};
|
|
39
42
|
static displayName: string;
|
|
40
43
|
private el;
|
|
@@ -5,6 +5,7 @@ interface TwoColumnPanelProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
5
5
|
showCollapsedPanelLabel?: string;
|
|
6
6
|
hideCollapsedPanelLabel?: string;
|
|
7
7
|
skipLink?: SkipLink;
|
|
8
|
+
collapsedMediaQuery?: string;
|
|
8
9
|
}
|
|
9
10
|
declare const TwoColumnPanel: React.ForwardRefExoticComponent<TwoColumnPanelProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
11
|
export default TwoColumnPanel;
|
|
@@ -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 SvgExportSolid = 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: "M16.47 18.47c-.26.25-.67.24-.92-.02a.649.649 0 0 1 .02-.92.649.649 0 0 1 1.1.47c0 .18-.08.35-.2.47zm2.66 0c-.26.25-.67.24-.92-.02a.649.649 0 0 1 .02-.92.649.649 0 0 1 1.1.47c0 .18-.07.35-.2.47zm1.54-2.8c0-.55-.45-1-1-1h-4.84l-1.42 1.42c-.78.78-2.05.78-2.83 0l-1.4-1.42H4.34c-.55 0-1 .45-1 1V19c0 .55.45 1 1 1h15.32c.55 0 1-.45 1-1v-3.34l.01.01zm-4-6.33H14V4.67a.692.692 0 0 0-.68-.67h-2.66a.69.69 0 0 0-.67.67v4.66H7.34a.628.628 0 0 0-.62.41c-.13.25-.06.55.15.73l4.66 4.66c.25.26.66.27.92.02l.02-.02 4.66-4.66c.21-.18.28-.48.15-.73a.62.62 0 0 0-.63-.41l.02.01z",
|
|
20
|
+
fill: "currentColor",
|
|
21
|
+
vectorEffect: "non-scaling-stroke"
|
|
22
|
+
})));
|
|
23
|
+
|
|
24
|
+
exports.default = SvgExportSolid;
|
package/lib/index.js
CHANGED
|
@@ -143,12 +143,14 @@ var iconTypes = [
|
|
|
143
143
|
'chevron-down',
|
|
144
144
|
'chevron-left',
|
|
145
145
|
'chevron-right',
|
|
146
|
+
'clipboard',
|
|
146
147
|
'close',
|
|
147
148
|
'code',
|
|
148
149
|
'copy',
|
|
149
150
|
'download',
|
|
150
151
|
'dropper',
|
|
151
152
|
'exchange',
|
|
153
|
+
'export-solid',
|
|
152
154
|
'external-link',
|
|
153
155
|
'eye',
|
|
154
156
|
'filter-solid',
|
|
@@ -162,6 +164,7 @@ var iconTypes = [
|
|
|
162
164
|
'info-circle',
|
|
163
165
|
'info-square',
|
|
164
166
|
'kabob',
|
|
167
|
+
'link',
|
|
165
168
|
'list',
|
|
166
169
|
'lock',
|
|
167
170
|
'magnifying-glass',
|
|
@@ -173,6 +176,7 @@ var iconTypes = [
|
|
|
173
176
|
'pencil',
|
|
174
177
|
'play',
|
|
175
178
|
'plus',
|
|
179
|
+
'question-circle-alt',
|
|
176
180
|
'question-circle',
|
|
177
181
|
'radio-checked',
|
|
178
182
|
'radio-unchecked',
|
|
@@ -213,12 +217,14 @@ function __variableDynamicImportRuntime0__(path) {
|
|
|
213
217
|
case './icons/checkbox-unchecked.svg': return Promise.resolve().then(function () { return require('./checkbox-unchecked.js'); });
|
|
214
218
|
case './icons/chevron-double.svg': return Promise.resolve().then(function () { return require('./chevron-double.js'); });
|
|
215
219
|
case './icons/chevron.svg': return Promise.resolve().then(function () { return require('./chevron.js'); });
|
|
220
|
+
case './icons/clipboard.svg': return Promise.resolve().then(function () { return require('./clipboard.js'); });
|
|
216
221
|
case './icons/close.svg': return Promise.resolve().then(function () { return require('./close.js'); });
|
|
217
222
|
case './icons/code.svg': return Promise.resolve().then(function () { return require('./code.js'); });
|
|
218
223
|
case './icons/copy.svg': return Promise.resolve().then(function () { return require('./copy.js'); });
|
|
219
224
|
case './icons/download.svg': return Promise.resolve().then(function () { return require('./download.js'); });
|
|
220
225
|
case './icons/dropper.svg': return Promise.resolve().then(function () { return require('./dropper.js'); });
|
|
221
226
|
case './icons/exchange.svg': return Promise.resolve().then(function () { return require('./exchange.js'); });
|
|
227
|
+
case './icons/export-solid.svg': return Promise.resolve().then(function () { return require('./export-solid.js'); });
|
|
222
228
|
case './icons/external-link.svg': return Promise.resolve().then(function () { return require('./external-link.js'); });
|
|
223
229
|
case './icons/eye.svg': return Promise.resolve().then(function () { return require('./eye.js'); });
|
|
224
230
|
case './icons/filter-solid.svg': return Promise.resolve().then(function () { return require('./filter-solid.js'); });
|
|
@@ -232,6 +238,7 @@ function __variableDynamicImportRuntime0__(path) {
|
|
|
232
238
|
case './icons/info-circle.svg': return Promise.resolve().then(function () { return require('./info-circle.js'); });
|
|
233
239
|
case './icons/info-square.svg': return Promise.resolve().then(function () { return require('./info-square.js'); });
|
|
234
240
|
case './icons/kabob.svg': return Promise.resolve().then(function () { return require('./kabob.js'); });
|
|
241
|
+
case './icons/link.svg': return Promise.resolve().then(function () { return require('./link.js'); });
|
|
235
242
|
case './icons/list.svg': return Promise.resolve().then(function () { return require('./list.js'); });
|
|
236
243
|
case './icons/lock.svg': return Promise.resolve().then(function () { return require('./lock.js'); });
|
|
237
244
|
case './icons/magnifying-glass.svg': return Promise.resolve().then(function () { return require('./magnifying-glass.js'); });
|
|
@@ -243,6 +250,7 @@ function __variableDynamicImportRuntime0__(path) {
|
|
|
243
250
|
case './icons/pencil.svg': return Promise.resolve().then(function () { return require('./pencil.js'); });
|
|
244
251
|
case './icons/play.svg': return Promise.resolve().then(function () { return require('./play.js'); });
|
|
245
252
|
case './icons/plus.svg': return Promise.resolve().then(function () { return require('./plus.js'); });
|
|
253
|
+
case './icons/question-circle-alt.svg': return Promise.resolve().then(function () { return require('./question-circle-alt.js'); });
|
|
246
254
|
case './icons/question-circle.svg': return Promise.resolve().then(function () { return require('./question-circle.js'); });
|
|
247
255
|
case './icons/radio-checked.svg': return Promise.resolve().then(function () { return require('./radio-checked.js'); });
|
|
248
256
|
case './icons/radio-unchecked.svg': return Promise.resolve().then(function () { return require('./radio-unchecked.js'); });
|
|
@@ -299,7 +307,7 @@ var Icon = React.forwardRef(function (_a, ref) {
|
|
|
299
307
|
var data = tslib.__assign(tslib.__assign({}, other), { 'aria-hidden': !label, className: classNames('Icon', "Icon--".concat(type), className, (_b = {},
|
|
300
308
|
_b["Icon__".concat(direction)] = !!direction,
|
|
301
309
|
_b)) });
|
|
302
|
-
return (React__default.createElement("
|
|
310
|
+
return (React__default.createElement("span", tslib.__assign({ ref: ref }, data),
|
|
303
311
|
label && React__default.createElement(Offscreen, null, label),
|
|
304
312
|
IconSVG && React__default.createElement(IconSVG, null)));
|
|
305
313
|
});
|
|
@@ -320,7 +328,7 @@ var PanelTrigger = function (_a) {
|
|
|
320
328
|
React__default.createElement("button", tslib.__assign({ className: classNames(className, 'ExpandCollapse__trigger', {
|
|
321
329
|
fullWidth: fullWidth
|
|
322
330
|
}), type: "button", "aria-expanded": open, onClick: onClick }, otherProps),
|
|
323
|
-
React__default.createElement("
|
|
331
|
+
React__default.createElement("span", { className: "ExpandCollapse__trigger-title" }, typeof children === 'function'
|
|
324
332
|
? children({ open: !!open })
|
|
325
333
|
: children),
|
|
326
334
|
React__default.createElement(Icon, { type: open ? iconExpanded : iconCollapsed }))));
|
|
@@ -330,7 +338,9 @@ PanelTrigger.propTypes = {
|
|
|
330
338
|
open: PropTypes.bool,
|
|
331
339
|
iconExpanded: PropTypes.string,
|
|
332
340
|
iconCollapsed: PropTypes.string,
|
|
333
|
-
heading: PropTypes.
|
|
341
|
+
heading: PropTypes.shape({
|
|
342
|
+
level: PropTypes.number
|
|
343
|
+
})
|
|
334
344
|
};
|
|
335
345
|
PanelTrigger.displayName = 'PanelTrigger';
|
|
336
346
|
var PanelTrigger$1 = React__default.memo(PanelTrigger);
|
|
@@ -357,8 +367,8 @@ var ExpandCollapsePanel = /** @class */ (function (_super) {
|
|
|
357
367
|
};
|
|
358
368
|
_this.panel = React__default.createRef();
|
|
359
369
|
_this.handleToggle = function (e) {
|
|
360
|
-
var
|
|
361
|
-
var
|
|
370
|
+
var _a = _this.props.onToggle, onToggle = _a === void 0 ? function () { } : _a;
|
|
371
|
+
var _b = _this.state, isOpen = _b.isOpen, controlled = _b.controlled;
|
|
362
372
|
onToggle(e);
|
|
363
373
|
if (!controlled) {
|
|
364
374
|
_this.setState({ isOpen: !isOpen, isAnimating: true });
|
|
@@ -473,9 +483,12 @@ var AccordionContent = function (_a) {
|
|
|
473
483
|
return (React__default.createElement("div", tslib.__assign({ className: classNames('Accordion__panel', className) }, otherProps), children));
|
|
474
484
|
};
|
|
475
485
|
var Accordion = function (_a) {
|
|
476
|
-
var children = _a.children;
|
|
486
|
+
var children = _a.children, open = _a.open, onToggle = _a.onToggle, animationTiming = _a.animationTiming, props = tslib.__rest(_a, ["children", "open", "onToggle", "animationTiming"]);
|
|
477
487
|
var childrenArray = React__default.Children.toArray(children);
|
|
478
|
-
var trigger = childrenArray.find(function (child) {
|
|
488
|
+
var trigger = childrenArray.find(function (child) {
|
|
489
|
+
return typeof child === 'string' ||
|
|
490
|
+
child.type === AccordionTrigger;
|
|
491
|
+
});
|
|
479
492
|
var panelElement = childrenArray.find(function (child) {
|
|
480
493
|
return typeof child === 'string' ||
|
|
481
494
|
child.type === AccordionContent;
|
|
@@ -491,8 +504,8 @@ var Accordion = function (_a) {
|
|
|
491
504
|
}
|
|
492
505
|
var _b = trigger.props, triggerClassName = _b.className, triggerProps = tslib.__rest(_b, ["className"]);
|
|
493
506
|
var elementId = nextId.useId();
|
|
494
|
-
return (React__default.createElement("div", { className: "Accordion" },
|
|
495
|
-
React__default.createElement(ExpandCollapsePanel, tslib.__assign({ id: panelElement.props.id || "".concat(elementId, "-panel") }, panelElement.props),
|
|
507
|
+
return (React__default.createElement("div", tslib.__assign({ className: "Accordion" }, props),
|
|
508
|
+
React__default.createElement(ExpandCollapsePanel, tslib.__assign({ id: panelElement.props.id || "".concat(elementId, "-panel"), open: open, onToggle: onToggle, animationTiming: animationTiming }, panelElement.props),
|
|
496
509
|
React__default.createElement(PanelTrigger$1, tslib.__assign({ iconCollapsed: "triangle-right", iconExpanded: "triangle-down", className: classNames('Accordion__trigger', trigger.props.className), "aria-controls": panelElement.props.id || "".concat(elementId, "-panel"), heading: trigger.props.heading }, trigger.props), trigger),
|
|
497
510
|
panelElement)));
|
|
498
511
|
};
|
|
@@ -505,7 +518,9 @@ Accordion.propTypes = {
|
|
|
505
518
|
};
|
|
506
519
|
AccordionTrigger.propTypes = {
|
|
507
520
|
children: PropTypes.node,
|
|
508
|
-
heading: PropTypes.
|
|
521
|
+
heading: PropTypes.shape({
|
|
522
|
+
level: PropTypes.number
|
|
523
|
+
})
|
|
509
524
|
};
|
|
510
525
|
AccordionContent.propTypes = {
|
|
511
526
|
children: PropTypes.node.isRequired,
|
|
@@ -886,6 +901,7 @@ var ClickOutsideListener = /** @class */ (function (_super) {
|
|
|
886
901
|
ref: resolveRef
|
|
887
902
|
});
|
|
888
903
|
};
|
|
904
|
+
ClickOutsideListener.displayName = 'ClickOutsideListener';
|
|
889
905
|
ClickOutsideListener.defaultProps = {
|
|
890
906
|
mouseEvent: 'click',
|
|
891
907
|
touchEvent: 'touchend'
|
|
@@ -1547,8 +1563,10 @@ var Dialog = /** @class */ (function (_super) {
|
|
|
1547
1563
|
};
|
|
1548
1564
|
Dialog.prototype.close = function () {
|
|
1549
1565
|
var _a, _b, _c;
|
|
1550
|
-
(
|
|
1551
|
-
|
|
1566
|
+
if (this.props.show) {
|
|
1567
|
+
(_a = this.state.isolator) === null || _a === void 0 ? void 0 : _a.deactivate();
|
|
1568
|
+
(_c = (_b = this.props).onClose) === null || _c === void 0 ? void 0 : _c.call(_b);
|
|
1569
|
+
}
|
|
1552
1570
|
};
|
|
1553
1571
|
Dialog.prototype.handleClickOutside = function () {
|
|
1554
1572
|
var _a = this.props, show = _a.show, forceAction = _a.forceAction;
|
|
@@ -2326,7 +2344,7 @@ var Toast = /** @class */ (function (_super) {
|
|
|
2326
2344
|
var _a = this.props, type = _a.type, children = _a.children,
|
|
2327
2345
|
// prevent `onDismiss` from being passed-through to DOM
|
|
2328
2346
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
2329
|
-
onDismiss = _a.onDismiss, dismissText = _a.dismissText, toastRef = _a.toastRef, focus = _a.focus, show = _a.show, otherProps = tslib.__rest(_a, ["type", "children", "onDismiss", "dismissText", "toastRef", "focus", "show"]);
|
|
2347
|
+
onDismiss = _a.onDismiss, dismissText = _a.dismissText, toastRef = _a.toastRef, focus = _a.focus, show = _a.show, dismissible = _a.dismissible, otherProps = tslib.__rest(_a, ["type", "children", "onDismiss", "dismissText", "toastRef", "focus", "show", "dismissible"]);
|
|
2330
2348
|
var scrim = type === 'action-needed' && show ? (React__default.createElement("div", { className: "Scrim--light Scrim--show Scrim--fade-in" })) : null;
|
|
2331
2349
|
var defaultProps = {
|
|
2332
2350
|
tabIndex: -1,
|
|
@@ -2343,7 +2361,7 @@ var Toast = /** @class */ (function (_super) {
|
|
|
2343
2361
|
React__default.createElement("div", { className: "Toast__message" },
|
|
2344
2362
|
React__default.createElement(Icon, { type: typeMap[type].icon }),
|
|
2345
2363
|
React__default.createElement("div", { className: "Toast__message-content" }, children)),
|
|
2346
|
-
type !== 'action-needed' && (React__default.createElement("button", { type: "button", className: 'Toast__dismiss', "aria-label": dismissText, onClick: this.dismissToast },
|
|
2364
|
+
type !== 'action-needed' && dismissible && (React__default.createElement("button", { type: "button", className: 'Toast__dismiss', "aria-label": dismissText, onClick: this.dismissToast },
|
|
2347
2365
|
React__default.createElement(Icon, { type: "close" })))),
|
|
2348
2366
|
scrim));
|
|
2349
2367
|
};
|
|
@@ -2394,7 +2412,8 @@ var Toast = /** @class */ (function (_super) {
|
|
|
2394
2412
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
2395
2413
|
toastRef: function () { },
|
|
2396
2414
|
focus: true,
|
|
2397
|
-
show: false
|
|
2415
|
+
show: false,
|
|
2416
|
+
dismissible: true
|
|
2398
2417
|
};
|
|
2399
2418
|
Toast.propTypes = {
|
|
2400
2419
|
// the ui to be added as the message of the toast
|
|
@@ -2413,7 +2432,9 @@ var Toast = /** @class */ (function (_super) {
|
|
|
2413
2432
|
// whether or not to focus the toast
|
|
2414
2433
|
focus: PropTypes.bool,
|
|
2415
2434
|
// whether or not to show the toast
|
|
2416
|
-
show: PropTypes.bool
|
|
2435
|
+
show: PropTypes.bool,
|
|
2436
|
+
// whether or not the toast is dismissible
|
|
2437
|
+
dismissible: PropTypes.bool
|
|
2417
2438
|
};
|
|
2418
2439
|
Toast.displayName = 'Toast';
|
|
2419
2440
|
return Toast;
|
|
@@ -8239,13 +8260,14 @@ Tag.propTypes = {
|
|
|
8239
8260
|
};
|
|
8240
8261
|
|
|
8241
8262
|
var Table = function (_a) {
|
|
8242
|
-
var children = _a.children, className = _a.className, other = tslib.__rest(_a, ["children", "className"]);
|
|
8243
|
-
return (React__default.createElement("table", tslib.__assign({ className: classNames('Table', className) }, other), children));
|
|
8263
|
+
var children = _a.children, className = _a.className, variant = _a.variant, other = tslib.__rest(_a, ["children", "className", "variant"]);
|
|
8264
|
+
return (React__default.createElement("table", tslib.__assign({ className: classNames('Table', variant === 'border' && 'Table--border', className) }, other), children));
|
|
8244
8265
|
};
|
|
8245
8266
|
Table.displayName = 'Table';
|
|
8246
8267
|
Table.propTypes = {
|
|
8247
8268
|
children: PropTypes.node.isRequired,
|
|
8248
|
-
className: PropTypes.string
|
|
8269
|
+
className: PropTypes.string,
|
|
8270
|
+
variant: PropTypes.string
|
|
8249
8271
|
};
|
|
8250
8272
|
|
|
8251
8273
|
var TableBody = function (_a) {
|
|
@@ -8352,7 +8374,6 @@ var Tabs = function (_a) {
|
|
|
8352
8374
|
var children = _a.children, thin = _a.thin, _b = _a.orientation, orientation = _b === void 0 ? 'horizontal' : _b, _c = _a.initialActiveIndex, initialActiveIndex = _c === void 0 ? 0 : _c, className = _a.className, onChange = _a.onChange, labelProp = tslib.__rest(_a, ["children", "thin", "orientation", "initialActiveIndex", "className", "onChange"]);
|
|
8353
8375
|
var _d = tslib.__read(React.useState(initialActiveIndex), 2), activeIndex = _d[0], setActiveIndex = _d[1];
|
|
8354
8376
|
var tabsRef = React.useRef(null);
|
|
8355
|
-
var focusedTabRef = React.useRef(null);
|
|
8356
8377
|
var tabs = React__default.Children.toArray(children).filter(function (child) { return child.type === Tab; });
|
|
8357
8378
|
var tabCount = tabs.length;
|
|
8358
8379
|
var handleClick = function (index) {
|
|
@@ -8425,14 +8446,15 @@ var Tabs = function (_a) {
|
|
|
8425
8446
|
}, [activeIndex]);
|
|
8426
8447
|
var config = tslib.__assign((_a = { id: id, className: classNames('Tab', {
|
|
8427
8448
|
'Tab--active': selected
|
|
8428
|
-
}), tabIndex: index === activeIndex ? 0 : -1 }, _a['aria-controls'] = (_b = target.current) === null || _b === void 0 ? void 0 : _b.id, _a['aria-selected'] = selected, _a.
|
|
8449
|
+
}), tabIndex: index === activeIndex ? 0 : -1 }, _a['aria-controls'] = (_b = target.current) === null || _b === void 0 ? void 0 : _b.id, _a['aria-selected'] = selected, _a.onClick = function () { return handleClick(index); }, _a), other);
|
|
8429
8450
|
return React__default.cloneElement(child, config);
|
|
8430
8451
|
});
|
|
8431
8452
|
useDidUpdate(function () {
|
|
8432
8453
|
var _a;
|
|
8433
|
-
(_a =
|
|
8454
|
+
var activeTab = (_a = tabsRef.current) === null || _a === void 0 ? void 0 : _a.querySelector(':scope > [role="tablist"] > [aria-selected="true"]');
|
|
8455
|
+
activeTab === null || activeTab === void 0 ? void 0 : activeTab.focus();
|
|
8434
8456
|
if (typeof onChange === 'function') {
|
|
8435
|
-
onChange({ activeTabIndex: activeIndex, target:
|
|
8457
|
+
onChange({ activeTabIndex: activeIndex, target: activeTab });
|
|
8436
8458
|
}
|
|
8437
8459
|
}, [activeIndex]);
|
|
8438
8460
|
return (React__default.createElement("div", { className: classNames('Tabs', className, {
|
|
@@ -8635,16 +8657,18 @@ AddressCityStateZip.propTypes = {
|
|
|
8635
8657
|
};
|
|
8636
8658
|
|
|
8637
8659
|
var Pagination = React__default.forwardRef(function (_a, ref) {
|
|
8638
|
-
var totalItems = _a.totalItems, _b = _a.itemsPerPage, itemsPerPage = _b === void 0 ? 10 : _b, _c = _a.currentPage, currentPage = _c === void 0 ? 1 : _c, statusLabel = _a.statusLabel, _d = _a.firstPageLabel, firstPageLabel = _d === void 0 ? 'First page' : _d, _e = _a.previousPageLabel, previousPageLabel = _e === void 0 ? 'Previous page' : _e, _f = _a.nextPageLabel, nextPageLabel = _f === void 0 ? 'Next page' : _f, _g = _a.lastPageLabel, lastPageLabel = _g === void 0 ? 'Last page' : _g, _h = _a.tooltipPlacement, tooltipPlacement = _h === void 0 ? 'bottom' : _h, onNextPageClick = _a.onNextPageClick, onPreviousPageClick = _a.onPreviousPageClick, onFirstPageClick = _a.onFirstPageClick, onLastPageClick = _a.onLastPageClick, className = _a.className, other = tslib.__rest(_a, ["totalItems", "itemsPerPage", "currentPage", "statusLabel", "firstPageLabel", "previousPageLabel", "nextPageLabel", "lastPageLabel", "tooltipPlacement", "onNextPageClick", "onPreviousPageClick", "onFirstPageClick", "onLastPageClick", "className"]);
|
|
8660
|
+
var totalItems = _a.totalItems, _b = _a.itemsPerPage, itemsPerPage = _b === void 0 ? 10 : _b, _c = _a.currentPage, currentPage = _c === void 0 ? 1 : _c, statusLabel = _a.statusLabel, _d = _a.firstPageLabel, firstPageLabel = _d === void 0 ? 'First page' : _d, _e = _a.previousPageLabel, previousPageLabel = _e === void 0 ? 'Previous page' : _e, _f = _a.nextPageLabel, nextPageLabel = _f === void 0 ? 'Next page' : _f, _g = _a.lastPageLabel, lastPageLabel = _g === void 0 ? 'Last page' : _g, _h = _a.tooltipPlacement, tooltipPlacement = _h === void 0 ? 'bottom' : _h, onNextPageClick = _a.onNextPageClick, onPreviousPageClick = _a.onPreviousPageClick, onFirstPageClick = _a.onFirstPageClick, onLastPageClick = _a.onLastPageClick, className = _a.className, _j = _a.thin, thin = _j === void 0 ? false : _j, other = tslib.__rest(_a, ["totalItems", "itemsPerPage", "currentPage", "statusLabel", "firstPageLabel", "previousPageLabel", "nextPageLabel", "lastPageLabel", "tooltipPlacement", "onNextPageClick", "onPreviousPageClick", "onFirstPageClick", "onLastPageClick", "className", "thin"]);
|
|
8639
8661
|
var itemStart = currentPage * itemsPerPage - itemsPerPage + 1;
|
|
8640
8662
|
var itemEnd = Math.min(itemStart + itemsPerPage - 1, totalItems);
|
|
8641
8663
|
var isLastPage = itemEnd === totalItems;
|
|
8642
8664
|
var isFirstPage = currentPage === 1;
|
|
8643
|
-
return (React__default.createElement("div", tslib.__assign({ ref: ref, className: classNames('Pagination', className
|
|
8665
|
+
return (React__default.createElement("div", tslib.__assign({ ref: ref, className: classNames('Pagination', className, {
|
|
8666
|
+
'Pagination--thin': thin
|
|
8667
|
+
}) }, other),
|
|
8644
8668
|
React__default.createElement("ul", null,
|
|
8645
|
-
React__default.createElement("li", null, isFirstPage ? (React__default.createElement(TooltipTabstop, { hideElementOnHidden: true, association: "aria-labelledby", tooltip: firstPageLabel, placement: tooltipPlacement },
|
|
8669
|
+
React__default.createElement("li", null, isFirstPage ? (React__default.createElement(TooltipTabstop, { className: "IconButton", hideElementOnHidden: true, association: "aria-labelledby", tooltip: firstPageLabel, placement: tooltipPlacement },
|
|
8646
8670
|
React__default.createElement(Icon, { type: "chevron-double-left" }))) : (React__default.createElement(IconButton, { icon: "chevron-double-left", tooltipPlacement: tooltipPlacement, label: firstPageLabel, onClick: onFirstPageClick }))),
|
|
8647
|
-
React__default.createElement("li", null, isFirstPage ? (React__default.createElement(TooltipTabstop, { hideElementOnHidden: true, association: "aria-labelledby", tooltip: previousPageLabel, placement: tooltipPlacement },
|
|
8671
|
+
React__default.createElement("li", null, isFirstPage ? (React__default.createElement(TooltipTabstop, { className: "IconButton", hideElementOnHidden: true, association: "aria-labelledby", tooltip: previousPageLabel, placement: tooltipPlacement },
|
|
8648
8672
|
React__default.createElement(Icon, { type: "chevron-left" }))) : (React__default.createElement(IconButton, { icon: "chevron-left", tooltipPlacement: tooltipPlacement, label: previousPageLabel, onClick: onPreviousPageClick }))),
|
|
8649
8673
|
React__default.createElement("li", null,
|
|
8650
8674
|
React__default.createElement("span", { role: "log", "aria-atomic": "true" }, statusLabel || (React__default.createElement("span", null,
|
|
@@ -8655,9 +8679,9 @@ var Pagination = React__default.forwardRef(function (_a, ref) {
|
|
|
8655
8679
|
React__default.createElement("strong", null, itemEnd),
|
|
8656
8680
|
" of ",
|
|
8657
8681
|
React__default.createElement("strong", null, totalItems))))),
|
|
8658
|
-
React__default.createElement("li", null, isLastPage ? (React__default.createElement(TooltipTabstop, { hideElementOnHidden: true, association: "aria-labelledby", tooltip: nextPageLabel, placement: tooltipPlacement },
|
|
8682
|
+
React__default.createElement("li", null, isLastPage ? (React__default.createElement(TooltipTabstop, { className: "IconButton", hideElementOnHidden: true, association: "aria-labelledby", tooltip: nextPageLabel, placement: tooltipPlacement },
|
|
8659
8683
|
React__default.createElement(Icon, { type: "chevron-right" }))) : (React__default.createElement(IconButton, { icon: "chevron-right", tooltipPlacement: tooltipPlacement, label: nextPageLabel, onClick: onNextPageClick }))),
|
|
8660
|
-
React__default.createElement("li", null, isLastPage ? (React__default.createElement(TooltipTabstop, { hideElementOnHidden: true, association: "aria-labelledby", tooltip: lastPageLabel, placement: tooltipPlacement },
|
|
8684
|
+
React__default.createElement("li", null, isLastPage ? (React__default.createElement(TooltipTabstop, { className: "IconButton", hideElementOnHidden: true, association: "aria-labelledby", tooltip: lastPageLabel, placement: tooltipPlacement },
|
|
8661
8685
|
React__default.createElement(Icon, { type: "chevron-double-right" }))) : (React__default.createElement(IconButton, { icon: "chevron-double-right", tooltipPlacement: tooltipPlacement, label: lastPageLabel, onClick: onLastPageClick }))))));
|
|
8662
8686
|
});
|
|
8663
8687
|
Pagination.displayName = 'Pagination';
|
|
@@ -8702,7 +8726,8 @@ var usePagination = function (_a) {
|
|
|
8702
8726
|
var pageStatus = {
|
|
8703
8727
|
currentPage: currentPage,
|
|
8704
8728
|
pageStart: pageStart,
|
|
8705
|
-
pageEnd: pageEnd
|
|
8729
|
+
pageEnd: pageEnd,
|
|
8730
|
+
setCurrentPage: setCurrentPage
|
|
8706
8731
|
};
|
|
8707
8732
|
return { pagination: pagination, pageStatus: pageStatus };
|
|
8708
8733
|
};
|
|
@@ -8762,10 +8787,10 @@ var ColumnRight = React.forwardRef(function (_a, ref) {
|
|
|
8762
8787
|
ColumnRight.displayName = 'ColumnRight';
|
|
8763
8788
|
|
|
8764
8789
|
var TwoColumnPanel = React.forwardRef(function (_a, ref) {
|
|
8765
|
-
var className = _a.className, children = _a.children, _b = _a.initialCollapsed, initialCollapsed = _b === void 0 ? false : _b, _c = _a.showCollapsedPanelLabel, showCollapsedPanelLabel = _c === void 0 ? 'Show Panel' : _c, _d = _a.hideCollapsedPanelLabel, hideCollapsedPanelLabel = _d === void 0 ? 'Hide Panel' : _d, _e = _a.skipLink, skipLink = _e === void 0 ? null : _e, props = tslib.__rest(_a, ["className", "children", "initialCollapsed", "showCollapsedPanelLabel", "hideCollapsedPanelLabel", "skipLink"]);
|
|
8766
|
-
var
|
|
8767
|
-
var
|
|
8768
|
-
var
|
|
8790
|
+
var className = _a.className, children = _a.children, _b = _a.initialCollapsed, initialCollapsed = _b === void 0 ? false : _b, _c = _a.showCollapsedPanelLabel, showCollapsedPanelLabel = _c === void 0 ? 'Show Panel' : _c, _d = _a.hideCollapsedPanelLabel, hideCollapsedPanelLabel = _d === void 0 ? 'Hide Panel' : _d, _e = _a.skipLink, skipLink = _e === void 0 ? null : _e, _f = _a.collapsedMediaQuery, collapsedMediaQuery = _f === void 0 ? '(max-width: 45rem)' : _f, props = tslib.__rest(_a, ["className", "children", "initialCollapsed", "showCollapsedPanelLabel", "hideCollapsedPanelLabel", "skipLink", "collapsedMediaQuery"]);
|
|
8791
|
+
var _g = tslib.__read(React.useState(initialCollapsed), 2), isCollapsed = _g[0], setCollapsed = _g[1];
|
|
8792
|
+
var _h = tslib.__read(React.useState(false), 2), isFocusTrap = _h[0], setIsFocusTrap = _h[1];
|
|
8793
|
+
var _j = tslib.__read(React.useState(!initialCollapsed), 2), showPanel = _j[0], setShowPanel = _j[1];
|
|
8769
8794
|
var toggleButtonRef = React.useRef(null);
|
|
8770
8795
|
var closeButtonRef = React.useRef(null);
|
|
8771
8796
|
var columnLeftRef = React.useRef(null);
|
|
@@ -8839,7 +8864,7 @@ var TwoColumnPanel = React.forwardRef(function (_a, ref) {
|
|
|
8839
8864
|
}, [columnLeftRef.current, isCollapsed]);
|
|
8840
8865
|
// When the collapsable panel starts to overlay content, it needs to become a focus trap and collapsed by default
|
|
8841
8866
|
React.useLayoutEffect(function () {
|
|
8842
|
-
var mediaQueryList = matchMedia(
|
|
8867
|
+
var mediaQueryList = matchMedia(collapsedMediaQuery);
|
|
8843
8868
|
var handleMatch = function (matches) {
|
|
8844
8869
|
setIsFocusTrap(matches);
|
|
8845
8870
|
var collapsed = matches ? true : isCollapsed;
|
package/lib/link.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
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 SvgLink = props => /*#__PURE__*/React.createElement("svg", _extends({
|
|
13
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
14
|
+
overflow: "visible",
|
|
15
|
+
preserveAspectRatio: "none",
|
|
16
|
+
viewBox: "0 0 24 24",
|
|
17
|
+
height: 24,
|
|
18
|
+
width: 24
|
|
19
|
+
}, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
|
|
20
|
+
d: "M18.5 16.01c0 .26-.11.51-.29.7l-1.53 1.52c-.19.18-.45.28-.71.27-.26 0-.52-.1-.71-.28l-2.14-2.16a.99.99 0 0 1-.29-.71c0-.29.12-.57.34-.76l.19.2.22.22.2.16c.08.06.17.11.27.14.1.01.19.01.29 0 .55 0 1-.45 1-1 .01-.1.01-.19 0-.29a.867.867 0 0 0-.14-.27l-.2-.16-.22-.22-.2-.19c.19-.21.46-.33.75-.33.27 0 .52.1.71.29l2.17 2.17c.19.19.29.44.29.71v-.01zm-7.32-7.34c0 .29-.12.57-.34.76l-.19-.2-.23-.22-.2-.16a.744.744 0 0 0-.22-.14c-.1-.01-.19-.01-.29 0-.55 0-1 .45-1 1-.01.09-.01.19 0 .29.03.1.08.19.14.27l.15.16.22.22.2.19c-.19.21-.47.32-.75.32a.98.98 0 0 1-.67-.27L5.79 8.72c-.19-.19-.29-.45-.29-.71 0-.26.11-.51.29-.7l1.54-1.52c.18-.18.42-.28.67-.28.27 0 .52.1.71.29l2.14 2.16c.19.19.29.44.29.71h.04zm9.32 7.34c.01-.8-.3-1.56-.87-2.12l-2.17-2.17c-1.16-1.18-3.06-1.21-4.24-.05l-.05.05-.92-.92c.6-.57.93-1.36.92-2.18.02-.79-.29-1.56-.86-2.11L10.16 4.4C9.6 3.81 8.81 3.48 8 3.51c-.79-.02-1.56.29-2.11.86L4.39 5.9c-.58.54-.9 1.31-.89 2.11-.01.8.3 1.56.87 2.12l2.17 2.17c.56.57 1.32.88 2.12.87.82.01 1.61-.32 2.17-.92l.92.92c-.6.57-.93 1.36-.92 2.18-.02.79.29 1.56.86 2.11l2.14 2.16a3 3 0 0 0 4.24 0l1.53-1.52c.58-.54.9-1.3.9-2.09z",
|
|
21
|
+
fill: "currentColor",
|
|
22
|
+
vectorEffect: "non-scaling-stroke"
|
|
23
|
+
})));
|
|
24
|
+
|
|
25
|
+
exports.default = SvgLink;
|
|
@@ -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 SvgQuestionCircleAlt = 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: "M13.07 14.93a.34.34 0 0 0-.24-.09h-1.66c-.18-.01-.32.13-.33.31v1.69c-.01.18.13.32.31.33h1.69c.18.01.32-.13.33-.31v-1.69a.31.31 0 0 0-.1-.24zM15.83 10c-.01-.88-.43-1.71-1.14-2.23-.69-.59-1.57-.92-2.48-.93-1.48-.05-2.88.72-3.63 2-.05.07-.07.16-.05.24.01.08.05.16.12.21l1.12.85c.06.04.13.06.2.06.1 0 .2-.04.26-.12.24-.32.52-.61.83-.86.3-.2.65-.29 1-.28.36 0 .71.11 1 .31.27.15.44.43.45.74.01.2-.08.39-.23.51-.24.18-.5.33-.78.45l-.5.21c-.15.08-.29.17-.43.27-.16.1-.29.23-.41.37-.11.15-.19.32-.25.49-.07.22-.11.44-.11.67v.71c-.01.18.13.32.31.33h1.69c.18.01.32-.13.33-.31V13.33c0-.11.05-.22.12-.3.08-.1.17-.18.27-.25l.48-.29c.27-.15.47-.27.62-.37.19-.14.37-.29.54-.46.21-.2.37-.45.47-.72.12-.3.19-.62.2-.94zm-1.24-4.13a6.57 6.57 0 0 1 3.55 3.55 6.54 6.54 0 0 1 0 5.17 6.57 6.57 0 0 1-3.55 3.55 6.54 6.54 0 0 1-5.17 0 6.57 6.57 0 0 1-3.55-3.55 6.54 6.54 0 0 1 0-5.17c.66-1.6 1.94-2.88 3.54-3.55 1.65-.71 3.53-.71 5.18 0zM18.92 8A8.016 8.016 0 0 0 16 5.08 7.798 7.798 0 0 0 12 4c-1.41-.01-2.79.37-4 1.08-1.21.7-2.22 1.71-2.92 2.92A7.798 7.798 0 0 0 4 12c-.01 1.41.36 2.79 1.07 4 .7 1.21 1.71 2.22 2.93 2.92 1.21.71 2.59 1.09 4 1.08 1.41.01 2.79-.36 4-1.07 1.21-.7 2.22-1.71 2.92-2.93A7.798 7.798 0 0 0 20 12c.01-1.41-.37-2.79-1.08-4z",
|
|
20
|
+
fill: "currentColor",
|
|
21
|
+
vectorEffect: "non-scaling-stroke"
|
|
22
|
+
})));
|
|
23
|
+
|
|
24
|
+
exports.default = SvgQuestionCircleAlt;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deque/cauldron-react",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.7.0-canary.082ddc6e",
|
|
4
4
|
"description": "Fully accessible react components library for Deque Cauldron",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"react-router-dom": "^5.1.2",
|
|
81
81
|
"rollup": "^2.23.0",
|
|
82
82
|
"sinon": "^10.0.0",
|
|
83
|
-
"ts-node": "^10.
|
|
83
|
+
"ts-node": "^10.9.1",
|
|
84
84
|
"typescript": "^4.7.3"
|
|
85
85
|
},
|
|
86
86
|
"repository": {
|
|
@@ -125,4 +125,4 @@
|
|
|
125
125
|
"\\.svg$": "<rootDir>/__tests__/svgMock.js"
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
|
-
}
|
|
128
|
+
}
|