@skyscanner/backpack-web 35.6.0 → 35.7.1
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/bpk-component-banner-alert/src/AnimateAndFade.js +0 -1
- package/bpk-component-drawer/index.d.ts +6 -0
- package/bpk-component-drawer/src/BpkDrawer.d.ts +23 -0
- package/bpk-component-drawer/src/BpkDrawer.js +58 -73
- package/bpk-component-drawer/src/BpkDrawerContent.d.ts +5 -4
- package/bpk-component-drawer/src/BpkDrawerContent.js +3 -3
- package/bpk-component-drawer/src/BpkDrawerContent.module.css +1 -1
- package/bpk-component-drawer/src/themeAttributes.d.ts +2 -0
- package/bpk-component-drawer/src/themeAttributes.js +4 -1
- package/bpk-component-floating-notification/src/BpkFloatingNotification.js +0 -2
- package/bpk-component-image/src/BpkBackgroundImage.js +0 -1
- package/bpk-component-image/src/BpkImage.js +0 -2
- package/bpk-component-info-banner/src/AnimateAndFade.js +0 -1
- package/bpk-component-map/src/BpkIconMarkerBackground.js +2 -0
- package/bpk-component-spinner/src/BpkExtraLargeSpinner.js +3 -60
- package/bpk-component-spinner/src/BpkLargeSpinner.js +3 -60
- package/bpk-component-spinner/src/BpkSpinner.js +3 -47
- package/bpk-component-spinner/src/spinners/lg.js +60 -0
- package/bpk-component-spinner/src/spinners/sm.js +47 -0
- package/bpk-component-spinner/src/spinners/xl.js +60 -0
- package/bpk-component-spinner/src/themeAttributes.js +3 -1
- package/bpk-react-utils/src/BpkDialogWrapper/BpkDialogWrapper.js +0 -2
- package/bpk-react-utils/src/TransitionInitialMount.js +0 -1
- package/package.json +1 -1
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
19
|
import { Component } from 'react';
|
|
20
|
-
// @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
|
|
21
20
|
import { TransitionGroup, CSSTransition } from 'react-transition-group';
|
|
22
21
|
import { durationSm } from '@skyscanner/bpk-foundations-web/tokens/base.es6';
|
|
23
22
|
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export type Props = {
|
|
3
|
+
id: string;
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
isOpen: boolean;
|
|
6
|
+
onClose?: (arg0?: TouchEvent | MouseEvent | KeyboardEvent, arg1?: {
|
|
7
|
+
source: 'ESCAPE' | 'DOCUMENT_CLICK';
|
|
8
|
+
}) => void;
|
|
9
|
+
title: string;
|
|
10
|
+
getApplicationElement: () => HTMLElement | null;
|
|
11
|
+
renderTarget?: null | HTMLElement | (() => null | HTMLElement);
|
|
12
|
+
dialogRef?: (ref: HTMLElement | null | undefined) => void;
|
|
13
|
+
className?: string;
|
|
14
|
+
contentClassName?: string;
|
|
15
|
+
closeLabel?: string | null;
|
|
16
|
+
closeText?: string;
|
|
17
|
+
hideTitle?: boolean;
|
|
18
|
+
isIphone?: boolean;
|
|
19
|
+
padded?: boolean;
|
|
20
|
+
mobileModalDisplay?: boolean;
|
|
21
|
+
};
|
|
22
|
+
declare const BpkDrawer: ({ children, className, closeLabel, closeText, contentClassName, dialogRef, getApplicationElement, hideTitle, id, isIphone, isOpen, mobileModalDisplay, onClose, padded, renderTarget, title, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export default BpkDrawer;
|
|
@@ -14,85 +14,70 @@
|
|
|
14
14
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
15
|
* See the License for the specific language governing permissions and
|
|
16
16
|
* limitations under the License.
|
|
17
|
-
*/import
|
|
18
|
-
import {
|
|
19
|
-
import { Portal } from "../../bpk-react-utils";
|
|
17
|
+
*/import { useState, useEffect } from 'react';
|
|
18
|
+
import { Portal, isDeviceIphone } from "../../bpk-react-utils";
|
|
20
19
|
import { withScrim } from "../../bpk-scrim-utils";
|
|
21
20
|
import BpkDrawerContent from "./BpkDrawerContent";
|
|
22
21
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
23
22
|
const BpkScrimDrawerContent = withScrim(BpkDrawerContent);
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
23
|
+
const BpkDrawer = ({
|
|
24
|
+
children,
|
|
25
|
+
className = undefined,
|
|
26
|
+
closeLabel = null,
|
|
27
|
+
closeText = undefined,
|
|
28
|
+
contentClassName = undefined,
|
|
29
|
+
dialogRef,
|
|
30
|
+
getApplicationElement,
|
|
31
|
+
hideTitle = false,
|
|
32
|
+
id,
|
|
33
|
+
isIphone = isDeviceIphone(),
|
|
34
|
+
isOpen,
|
|
35
|
+
mobileModalDisplay = false,
|
|
36
|
+
onClose,
|
|
37
|
+
padded = true,
|
|
38
|
+
renderTarget = null,
|
|
39
|
+
title
|
|
40
|
+
}) => {
|
|
41
|
+
const [isDrawerShown, setIsDrawerShown] = useState(true);
|
|
42
|
+
useEffect(() => {
|
|
43
|
+
if (isOpen) {
|
|
44
|
+
setIsDrawerShown(true);
|
|
45
|
+
}
|
|
46
|
+
}, [isOpen]);
|
|
47
|
+
const onCloseAnimationComplete = () => {
|
|
48
|
+
if (onClose) {
|
|
49
|
+
onClose();
|
|
36
50
|
}
|
|
37
|
-
}
|
|
38
|
-
onCloseAnimationComplete = () => {
|
|
39
|
-
this.props.onClose();
|
|
40
51
|
};
|
|
41
|
-
hide = () => {
|
|
42
|
-
|
|
43
|
-
isDrawerShown: false
|
|
44
|
-
});
|
|
52
|
+
const hide = () => {
|
|
53
|
+
setIsDrawerShown(false);
|
|
45
54
|
};
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
onClose: PropTypes.func.isRequired,
|
|
74
|
-
title: PropTypes.string.isRequired,
|
|
75
|
-
/**
|
|
76
|
-
* **Note:** In order to "hide" your application from screen readers whilst the drawer is open you need to let it know what
|
|
77
|
-
* the root element for your application is by returning it's DOM node via the function passed to the
|
|
78
|
-
* `getApplicationElement` prop (see the example above). The `pagewrap` element id is a convention we use internally at Skyscanner. In most cases it should "just work".
|
|
79
|
-
*/
|
|
80
|
-
getApplicationElement: PropTypes.func.isRequired,
|
|
81
|
-
renderTarget: PropTypes.func,
|
|
82
|
-
dialogRef: PropTypes.func,
|
|
83
|
-
className: PropTypes.string,
|
|
84
|
-
contentClassName: PropTypes.string,
|
|
85
|
-
closeLabel: PropTypes.string,
|
|
86
|
-
closeText: PropTypes.string,
|
|
87
|
-
hideTitle: PropTypes.bool
|
|
88
|
-
};
|
|
89
|
-
BpkDrawer.defaultProps = {
|
|
90
|
-
renderTarget: null,
|
|
91
|
-
className: null,
|
|
92
|
-
contentClassName: null,
|
|
93
|
-
closeLabel: null,
|
|
94
|
-
closeText: null,
|
|
95
|
-
hideTitle: false,
|
|
96
|
-
padded: true
|
|
55
|
+
return /*#__PURE__*/_jsx(Portal, {
|
|
56
|
+
isOpen: isOpen,
|
|
57
|
+
onClose: hide,
|
|
58
|
+
renderTarget: renderTarget,
|
|
59
|
+
children: /*#__PURE__*/_jsx(BpkScrimDrawerContent, {
|
|
60
|
+
id: id,
|
|
61
|
+
title: title,
|
|
62
|
+
dialogRef: dialogRef,
|
|
63
|
+
closeLabel: closeLabel || "",
|
|
64
|
+
closeText: closeText
|
|
65
|
+
// eslint-disable-next-line @skyscanner/rules/forbid-component-props
|
|
66
|
+
,
|
|
67
|
+
className: className,
|
|
68
|
+
contentClassName: contentClassName,
|
|
69
|
+
getApplicationElement: getApplicationElement,
|
|
70
|
+
hideTitle: hideTitle,
|
|
71
|
+
isDrawerShown: isDrawerShown,
|
|
72
|
+
onClose: hide,
|
|
73
|
+
onCloseAnimationComplete: onCloseAnimationComplete,
|
|
74
|
+
closeOnScrimClick: true,
|
|
75
|
+
isIpad: true,
|
|
76
|
+
isIphone: isIphone,
|
|
77
|
+
padded: padded,
|
|
78
|
+
mobileModalDisplay: mobileModalDisplay,
|
|
79
|
+
children: children
|
|
80
|
+
})
|
|
81
|
+
});
|
|
97
82
|
};
|
|
98
83
|
export default BpkDrawer;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
1
|
+
import type { ReactNode, RefObject } from 'react';
|
|
2
2
|
type Props = {
|
|
3
3
|
children: ReactNode;
|
|
4
|
-
dialogRef: () =>
|
|
4
|
+
dialogRef: () => RefObject<HTMLElement>;
|
|
5
5
|
onCloseAnimationComplete: () => void;
|
|
6
6
|
onClose: () => void;
|
|
7
7
|
id: string;
|
|
8
8
|
title: string;
|
|
9
|
-
className?: string;
|
|
9
|
+
className?: string | null;
|
|
10
10
|
contentClassName?: string;
|
|
11
11
|
closeLabel?: string;
|
|
12
12
|
closeText?: string;
|
|
@@ -16,6 +16,7 @@ type Props = {
|
|
|
16
16
|
isIphone?: boolean;
|
|
17
17
|
isIpad?: boolean;
|
|
18
18
|
padded?: boolean;
|
|
19
|
+
mobileModalDisplay?: boolean;
|
|
19
20
|
};
|
|
20
|
-
declare const BpkDrawerContent: ({ children, className, closeLabel, closeOnScrimClick, closeText, contentClassName, dialogRef, hideTitle, id, isDrawerShown, isIpad, isIphone, onClose, onCloseAnimationComplete, padded, title, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
declare const BpkDrawerContent: ({ children, className, closeLabel, closeOnScrimClick, closeText, contentClassName, dialogRef, hideTitle, id, isDrawerShown, isIpad, isIphone, mobileModalDisplay, onClose, onCloseAnimationComplete, padded, title, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
21
22
|
export default BpkDrawerContent;
|
|
@@ -16,8 +16,7 @@
|
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
import Transition from 'react-transition-group/Transition';
|
|
19
|
+
import { Transition } from 'react-transition-group';
|
|
21
20
|
import { animations } from '@skyscanner/bpk-foundations-web/tokens/base.es6';
|
|
22
21
|
|
|
23
22
|
// @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
|
|
@@ -44,6 +43,7 @@ const BpkDrawerContent = ({
|
|
|
44
43
|
// Unused from withScrim scrim HOC
|
|
45
44
|
isIphone = false,
|
|
46
45
|
// Unused from withScrim scrim HOC
|
|
46
|
+
mobileModalDisplay = false,
|
|
47
47
|
onClose,
|
|
48
48
|
onCloseAnimationComplete,
|
|
49
49
|
padded,
|
|
@@ -81,7 +81,7 @@ const BpkDrawerContent = ({
|
|
|
81
81
|
tabIndex: -1,
|
|
82
82
|
role: "dialog",
|
|
83
83
|
"aria-labelledby": headingId,
|
|
84
|
-
className: [drawerClassNames.join(' '), getClassName(`bpk-drawer--${status}`)].join(' '),
|
|
84
|
+
className: [drawerClassNames.join(' '), getClassName(`bpk-drawer--${status}`, mobileModalDisplay ? `bpk-drawer__modal-mobile-view--${status}` : undefined)].join(' '),
|
|
85
85
|
ref: dialogRef,
|
|
86
86
|
...rest,
|
|
87
87
|
children: [/*#__PURE__*/_jsxs("header", {
|
|
@@ -15,4 +15,4 @@
|
|
|
15
15
|
* See the License for the specific language governing permissions and
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
|
-
.bpk-drawer{position:fixed;right:0;display:flex;z-index:1100;width:90%;max-width:25rem;height:100%;flex-direction:column;transform:translate(100%);transition:transform 200ms ease;outline:0;background:#fff;overflow-y:scroll;box-shadow:0px 12px 50px 0px rgba(37,32,31,.25)}html[dir=rtl] .bpk-drawer{right:auto;left:0;transform:translate(-100%)}@media(max-width: 32rem){.bpk-drawer{width:100%;max-width:100%}}.bpk-drawer--entering,.bpk-drawer--entered{transform:translate(0)}html[dir=rtl] .bpk-drawer--entering,html[dir=rtl] .bpk-drawer--entered{transform:translate(0)}.bpk-drawer--exiting{transition:transform 50ms ease}.bpk-drawer--exiting,.bpk-drawer--exited{transform:translate(100%)}html[dir=rtl] .bpk-drawer--exiting,html[dir=rtl] .bpk-drawer--exited{transform:translate(-100%)}.bpk-drawer__header{display:flex;min-height:3rem;padding:1rem;justify-content:space-between;align-items:center;flex:0 0
|
|
18
|
+
.bpk-drawer{position:fixed;right:0;display:flex;z-index:1100;width:90%;max-width:25rem;height:100%;flex-direction:column;transform:translate(100%);transition:transform 200ms ease;outline:0;background:#fff;overflow-y:scroll;box-shadow:0px 12px 50px 0px rgba(37,32,31,.25)}html[dir=rtl] .bpk-drawer{right:auto;left:0;transform:translate(-100%)}@media(max-width: 32rem){.bpk-drawer{width:100%;max-width:100%}}.bpk-drawer--entering,.bpk-drawer--entered{transform:translate(0)}html[dir=rtl] .bpk-drawer--entering,html[dir=rtl] .bpk-drawer--entered{transform:translate(0)}.bpk-drawer--exiting{transition:transform 50ms ease}.bpk-drawer--exiting,.bpk-drawer--exited{transform:translate(100%)}html[dir=rtl] .bpk-drawer--exiting,html[dir=rtl] .bpk-drawer--exited{transform:translate(-100%)}.bpk-drawer__header{display:flex;min-height:3rem;padding:1rem;justify-content:space-between;align-items:center;flex:0 0}.bpk-drawer__heading{margin:0;font-size:1rem;line-height:1.5rem;font-weight:700}.bpk-drawer__heading--visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;white-space:nowrap;overflow:hidden;clip:rect(0 0 0 0)}.bpk-drawer__close-button{float:right}html[dir=rtl] .bpk-drawer__close-button{float:left}.bpk-drawer__content{height:100%;flex:1 1 100%;overflow-y:auto}.bpk-drawer__content--padded{padding:1rem}@media(max-width: 32rem){.bpk-drawer__modal-mobile-view{transform:scale(0.9);transition:opacity 200ms ease-in-out,transform 200ms ease-in-out;opacity:0}.bpk-drawer__modal-mobile-view--entering,.bpk-drawer__modal-mobile-view--entered{transform:scale(1);opacity:1}.bpk-drawer__modal-mobile-view--exited{transform:scale(0.9);opacity:0}.bpk-drawer__modal-mobile-view--exiting{transform:none}}
|
|
@@ -14,5 +14,8 @@
|
|
|
14
14
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
15
|
* See the License for the specific language governing permissions and
|
|
16
16
|
* limitations under the License.
|
|
17
|
-
*/
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
// @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
|
|
20
|
+
import { themeAttributes as linkAttributes } from "../../bpk-component-link";
|
|
18
21
|
export default [...linkAttributes];
|
|
@@ -17,8 +17,6 @@
|
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
19
|
import { useEffect, useState } from 'react';
|
|
20
|
-
|
|
21
|
-
// @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
|
|
22
20
|
import { CSSTransition } from 'react-transition-group';
|
|
23
21
|
import BpkAriaLive from "../../bpk-component-aria-live";
|
|
24
22
|
import { BUTTON_TYPES, BpkButtonV2 } from "../../bpk-component-button";
|
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
19
|
import { Component } from 'react';
|
|
20
|
-
// @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
|
|
21
20
|
import CSSTransition from 'react-transition-group/CSSTransition';
|
|
22
21
|
import { animations } from '@skyscanner/bpk-foundations-web/tokens/base.es6';
|
|
23
22
|
import { BpkSpinner } from "../../bpk-component-spinner";
|
|
@@ -17,8 +17,6 @@
|
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
19
|
import { Component } from 'react';
|
|
20
|
-
|
|
21
|
-
// @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
|
|
22
20
|
import CSSTransition from 'react-transition-group/CSSTransition';
|
|
23
21
|
import { animations } from '@skyscanner/bpk-foundations-web/tokens/base.es6';
|
|
24
22
|
import { BpkSpinner } from "../../bpk-component-spinner";
|
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
19
|
import { Component } from 'react';
|
|
20
|
-
// @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
|
|
21
20
|
import { TransitionGroup, CSSTransition } from 'react-transition-group';
|
|
22
21
|
import { durationSm } from '@skyscanner/bpk-foundations-web/tokens/base.es6';
|
|
23
22
|
|
|
@@ -35,6 +35,7 @@ const BpkIconMarkerBackground = props => {
|
|
|
35
35
|
width: "32",
|
|
36
36
|
height: "40",
|
|
37
37
|
viewBox: "0 0 32 40",
|
|
38
|
+
"aria-hidden": "true",
|
|
38
39
|
className: classNames,
|
|
39
40
|
...rest,
|
|
40
41
|
children: /*#__PURE__*/_jsx("path", {
|
|
@@ -51,6 +52,7 @@ const BpkIconMarkerBackground = props => {
|
|
|
51
52
|
width: "26",
|
|
52
53
|
height: "32",
|
|
53
54
|
viewBox: "0 0 26 32",
|
|
55
|
+
"aria-hidden": "true",
|
|
54
56
|
className: classNames,
|
|
55
57
|
...rest,
|
|
56
58
|
children: /*#__PURE__*/_jsx("path", {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
/*
|
|
3
2
|
* Backpack - Skyscanner's Design System
|
|
4
3
|
*
|
|
@@ -16,68 +15,12 @@ import React from "react";
|
|
|
16
15
|
* See the License for the specific language governing permissions and
|
|
17
16
|
* limitations under the License.
|
|
18
17
|
*/
|
|
19
|
-
|
|
20
|
-
return /*#__PURE__*/_jsxs("svg", {
|
|
21
|
-
...props,
|
|
22
|
-
children: [/*#__PURE__*/_jsx("path", {
|
|
23
|
-
d: "M16 9.092c-.67 0-1.22-.549-1.22-1.22V2.997c0-.67.55-1.219 1.22-1.219.671 0 1.22.549 1.22 1.22v4.876c0 .67-.549 1.219-1.22 1.219",
|
|
24
|
-
clipRule: "evenodd",
|
|
25
|
-
opacity: ".65"
|
|
26
|
-
}), /*#__PURE__*/_jsx("path", {
|
|
27
|
-
d: "M19.454 10.012a1.22 1.22 0 0 1-.446-1.664l2.44-4.22a1.225 1.225 0 0 1 1.667-.445 1.22 1.22 0 0 1 .447 1.664l-2.44 4.22c-.336.58-1.086.78-1.668.445",
|
|
28
|
-
clipRule: "evenodd",
|
|
29
|
-
opacity: ".75"
|
|
30
|
-
}), /*#__PURE__*/_jsx("path", {
|
|
31
|
-
d: "M21.982 12.546a1.223 1.223 0 0 1 .447-1.665l4.222-2.438a1.223 1.223 0 0 1 1.666.446c.335.58.134 1.33-.447 1.665l-4.222 2.438a1.223 1.223 0 0 1-1.666-.446",
|
|
32
|
-
clipRule: "evenodd",
|
|
33
|
-
opacity: ".85"
|
|
34
|
-
}), /*#__PURE__*/_jsx("path", {
|
|
35
|
-
d: "M22.908 16c0-.671.548-1.22 1.219-1.22h4.876c.67 0 1.22.549 1.22 1.22 0 .67-.55 1.218-1.22 1.218h-4.876c-.67 0-1.22-.548-1.22-1.219",
|
|
36
|
-
clipRule: "evenodd",
|
|
37
|
-
opacity: ".9"
|
|
38
|
-
}), /*#__PURE__*/_jsx("path", {
|
|
39
|
-
d: "M21.982 19.454a1.22 1.22 0 0 1 1.664-.447l4.22 2.44c.58.336.781 1.086.446 1.667a1.22 1.22 0 0 1-1.664.447l-4.22-2.44a1.225 1.225 0 0 1-.446-1.667",
|
|
40
|
-
clipRule: "evenodd",
|
|
41
|
-
opacity: ".2"
|
|
42
|
-
}), /*#__PURE__*/_jsx("path", {
|
|
43
|
-
d: "M19.454 21.982a1.223 1.223 0 0 1 1.665.446l2.438 4.223c.335.58.135 1.33-.446 1.665-.58.335-1.33.134-1.665-.446l-2.438-4.223a1.223 1.223 0 0 1 .446-1.665",
|
|
44
|
-
clipRule: "evenodd",
|
|
45
|
-
opacity: ".25"
|
|
46
|
-
}), /*#__PURE__*/_jsx("path", {
|
|
47
|
-
d: "M16 22.907c.67 0 1.219.549 1.219 1.22v4.876c0 .67-.549 1.218-1.219 1.218s-1.22-.548-1.22-1.218v-4.877c0-.67.55-1.219 1.22-1.219",
|
|
48
|
-
clipRule: "evenodd",
|
|
49
|
-
opacity: ".3"
|
|
50
|
-
}), /*#__PURE__*/_jsx("path", {
|
|
51
|
-
d: "M12.546 21.982c.58.335.781 1.083.446 1.664l-2.438 4.22c-.335.58-1.084.78-1.665.445a1.221 1.221 0 0 1-.446-1.664l2.438-4.22a1.223 1.223 0 0 1 1.665-.445",
|
|
52
|
-
clipRule: "evenodd",
|
|
53
|
-
opacity: ".35"
|
|
54
|
-
}), /*#__PURE__*/_jsx("path", {
|
|
55
|
-
d: "M10.018 19.453c.335.581.134 1.33-.447 1.666L5.35 23.556a1.224 1.224 0 0 1-1.666-.447 1.223 1.223 0 0 1 .447-1.665l4.222-2.438a1.223 1.223 0 0 1 1.666.446",
|
|
56
|
-
clipRule: "evenodd",
|
|
57
|
-
opacity: ".4"
|
|
58
|
-
}), /*#__PURE__*/_jsx("path", {
|
|
59
|
-
d: "M9.092 16c0 .67-.549 1.218-1.219 1.218H2.997c-.67 0-1.22-.548-1.22-1.219 0-.67.55-1.219 1.22-1.219h4.876c.67 0 1.22.549 1.22 1.22",
|
|
60
|
-
clipRule: "evenodd",
|
|
61
|
-
opacity: ".45"
|
|
62
|
-
}), /*#__PURE__*/_jsx("path", {
|
|
63
|
-
d: "M10.013 12.55a1.22 1.22 0 0 1-1.664.446l-4.22-2.44a1.225 1.225 0 0 1-.446-1.667 1.22 1.22 0 0 1 1.664-.446l4.22 2.44c.58.336.781 1.086.446 1.667",
|
|
64
|
-
clipRule: "evenodd",
|
|
65
|
-
opacity: ".5"
|
|
66
|
-
}), /*#__PURE__*/_jsx("path", {
|
|
67
|
-
d: "M12.546 10.017c-.58.335-1.33.135-1.665-.446L8.443 5.348a1.223 1.223 0 0 1 .446-1.665 1.223 1.223 0 0 1 1.665.446l2.438 4.223c.335.58.135 1.33-.446 1.665",
|
|
68
|
-
clipRule: "evenodd",
|
|
69
|
-
opacity: ".55"
|
|
70
|
-
})]
|
|
71
|
-
});
|
|
72
|
-
};
|
|
73
|
-
XlSpinner.defaultProps = {
|
|
74
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
75
|
-
viewBox: "0 0 32 32"
|
|
76
|
-
};
|
|
18
|
+
|
|
77
19
|
import { cssModules } from "../../bpk-react-utils";
|
|
78
20
|
import SPINNER_TYPES from "./spinnerTypes";
|
|
21
|
+
import XlSpinner from "./spinners/xl";
|
|
79
22
|
import STYLES from "./BpkSpinner.module.css";
|
|
80
|
-
import { jsx as _jsx
|
|
23
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
81
24
|
const getClassName = cssModules(STYLES);
|
|
82
25
|
const BpkExtraLargeSpinner = ({
|
|
83
26
|
className = null,
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
/*
|
|
3
2
|
* Backpack - Skyscanner's Design System
|
|
4
3
|
*
|
|
@@ -16,68 +15,12 @@ import React from "react";
|
|
|
16
15
|
* See the License for the specific language governing permissions and
|
|
17
16
|
* limitations under the License.
|
|
18
17
|
*/
|
|
19
|
-
|
|
20
|
-
return /*#__PURE__*/_jsxs("svg", {
|
|
21
|
-
...props,
|
|
22
|
-
children: [/*#__PURE__*/_jsx("path", {
|
|
23
|
-
d: "M12 6.657a.946.946 0 0 1-.943-.943V1.943c0-.519.424-.943.943-.943.519 0 .943.424.943.943v3.771a.946.946 0 0 1-.943.943z",
|
|
24
|
-
clipRule: "evenodd",
|
|
25
|
-
opacity: ".65"
|
|
26
|
-
}), /*#__PURE__*/_jsx("path", {
|
|
27
|
-
d: "M14.671 7.373a.946.946 0 0 1-.345-1.288l1.886-3.266a.946.946 0 0 1 1.288-.345c.45.26.604.839.345 1.288L15.96 7.028a.946.946 0 0 1-1.288.345z",
|
|
28
|
-
clipRule: "evenodd",
|
|
29
|
-
opacity: ".75"
|
|
30
|
-
}), /*#__PURE__*/_jsx("path", {
|
|
31
|
-
d: "M16.627 9.329a.945.945 0 0 1 .345-1.288l3.266-1.886a.946.946 0 0 1 1.288.345.946.946 0 0 1-.345 1.288l-3.266 1.886a.946.946 0 0 1-1.288-.345z",
|
|
32
|
-
clipRule: "evenodd",
|
|
33
|
-
opacity: ".85"
|
|
34
|
-
}), /*#__PURE__*/_jsx("path", {
|
|
35
|
-
d: "M17.343 12c0-.519.424-.943.943-.943h3.771c.519 0 .943.424.943.943a.946.946 0 0 1-.943.943h-3.771a.946.946 0 0 1-.943-.943z",
|
|
36
|
-
clipRule: "evenodd",
|
|
37
|
-
opacity: ".9"
|
|
38
|
-
}), /*#__PURE__*/_jsx("path", {
|
|
39
|
-
d: "M16.627 14.671a.946.946 0 0 1 1.288-.345l3.266 1.886c.45.26.604.839.345 1.288a.946.946 0 0 1-1.288.345l-3.266-1.886a.946.946 0 0 1-.345-1.288z",
|
|
40
|
-
clipRule: "evenodd",
|
|
41
|
-
opacity: ".2"
|
|
42
|
-
}), /*#__PURE__*/_jsx("path", {
|
|
43
|
-
d: "M14.671 16.627a.946.946 0 0 1 1.288.345l1.886 3.266a.946.946 0 0 1-.345 1.288.945.945 0 0 1-1.288-.345l-1.886-3.266a.946.946 0 0 1 .345-1.288z",
|
|
44
|
-
clipRule: "evenodd",
|
|
45
|
-
opacity: ".25"
|
|
46
|
-
}), /*#__PURE__*/_jsx("path", {
|
|
47
|
-
d: "M12 17.343c.519 0 .943.424.943.943v3.771A.946.946 0 0 1 12 23a.946.946 0 0 1-.943-.943v-3.771c0-.519.424-.943.943-.943z",
|
|
48
|
-
clipRule: "evenodd",
|
|
49
|
-
opacity: ".3"
|
|
50
|
-
}), /*#__PURE__*/_jsx("path", {
|
|
51
|
-
d: "M9.329 16.627c.449.26.604.839.345 1.288l-1.886 3.266a.945.945 0 0 1-1.288.345.946.946 0 0 1-.345-1.288l1.886-3.266a.946.946 0 0 1 1.288-.345z",
|
|
52
|
-
clipRule: "evenodd",
|
|
53
|
-
opacity: ".35"
|
|
54
|
-
}), /*#__PURE__*/_jsx("path", {
|
|
55
|
-
d: "M7.373 14.671a.946.946 0 0 1-.345 1.288l-3.266 1.886a.946.946 0 0 1-1.288-.345.946.946 0 0 1 .345-1.288l3.266-1.886a.946.946 0 0 1 1.288.345z",
|
|
56
|
-
clipRule: "evenodd",
|
|
57
|
-
opacity: ".4"
|
|
58
|
-
}), /*#__PURE__*/_jsx("path", {
|
|
59
|
-
d: "M6.657 12a.946.946 0 0 1-.943.943H1.943A.946.946 0 0 1 1 12c0-.519.424-.943.943-.943h3.771c.519 0 .943.424.943.943z",
|
|
60
|
-
clipRule: "evenodd",
|
|
61
|
-
opacity: ".45"
|
|
62
|
-
}), /*#__PURE__*/_jsx("path", {
|
|
63
|
-
d: "M7.373 9.329a.946.946 0 0 1-1.288.345L2.819 7.788A.946.946 0 0 1 2.474 6.5a.946.946 0 0 1 1.288-.345L7.028 8.04a.946.946 0 0 1 .345 1.288z",
|
|
64
|
-
clipRule: "evenodd",
|
|
65
|
-
opacity: ".5"
|
|
66
|
-
}), /*#__PURE__*/_jsx("path", {
|
|
67
|
-
d: "M9.329 7.373a.946.946 0 0 1-1.288-.345L6.155 3.762A.946.946 0 0 1 6.5 2.474a.946.946 0 0 1 1.288.345l1.886 3.266a.946.946 0 0 1-.345 1.288z",
|
|
68
|
-
clipRule: "evenodd",
|
|
69
|
-
opacity: ".55"
|
|
70
|
-
})]
|
|
71
|
-
});
|
|
72
|
-
};
|
|
73
|
-
LgSpinner.defaultProps = {
|
|
74
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
75
|
-
viewBox: "0 0 24 24"
|
|
76
|
-
};
|
|
18
|
+
|
|
77
19
|
import { cssModules } from "../../bpk-react-utils";
|
|
78
20
|
import SPINNER_TYPES from "./spinnerTypes";
|
|
21
|
+
import LgSpinner from "./spinners/lg";
|
|
79
22
|
import STYLES from "./BpkSpinner.module.css";
|
|
80
|
-
import { jsx as _jsx
|
|
23
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
81
24
|
const getClassName = cssModules(STYLES);
|
|
82
25
|
const BpkLargeSpinner = ({
|
|
83
26
|
alignToButton = false,
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
/*
|
|
3
2
|
* Backpack - Skyscanner's Design System
|
|
4
3
|
*
|
|
@@ -16,55 +15,12 @@ import React from "react";
|
|
|
16
15
|
* See the License for the specific language governing permissions and
|
|
17
16
|
* limitations under the License.
|
|
18
17
|
*/
|
|
19
|
-
|
|
20
|
-
return /*#__PURE__*/_jsxs("svg", {
|
|
21
|
-
...props,
|
|
22
|
-
children: [/*#__PURE__*/_jsx("path", {
|
|
23
|
-
d: "M3 7H1a1 1 0 0 0 0 2h2a1 1 0 0 0 0-2Z",
|
|
24
|
-
opacity: ".45"
|
|
25
|
-
}), /*#__PURE__*/_jsx("path", {
|
|
26
|
-
d: "M15 7h-2a1 1 0 1 0 0 2h2a1 1 0 1 0 0-2Z"
|
|
27
|
-
}), /*#__PURE__*/_jsx("path", {
|
|
28
|
-
d: "M7 13v2a1 1 0 1 0 2 0v-2a1 1 0 1 0-2 0Z",
|
|
29
|
-
opacity: ".3"
|
|
30
|
-
}), /*#__PURE__*/_jsx("path", {
|
|
31
|
-
d: "M7 1v2a1 1 0 0 0 2 0V1a1 1 0 0 0-2 0Z",
|
|
32
|
-
opacity: ".65"
|
|
33
|
-
}), /*#__PURE__*/_jsx("path", {
|
|
34
|
-
d: "m9.634 12.83 1 1.732a1 1 0 1 0 1.732-1l-1-1.732a1 1 0 0 0-1.732 1Z",
|
|
35
|
-
opacity: ".25"
|
|
36
|
-
}), /*#__PURE__*/_jsx("path", {
|
|
37
|
-
d: "m3.634 2.438 1 1.732a1 1 0 1 0 1.732-1l-1-1.732a1 1 0 1 0-1.732 1Z",
|
|
38
|
-
opacity: ".55"
|
|
39
|
-
}), /*#__PURE__*/_jsx("path", {
|
|
40
|
-
d: "m11.83 11.366 1.732 1a1 1 0 1 0 1-1.732l-1.732-1a1 1 0 1 0-1 1.732Z",
|
|
41
|
-
opacity: ".2"
|
|
42
|
-
}), /*#__PURE__*/_jsx("path", {
|
|
43
|
-
d: "m1.438 5.366 1.732 1a1 1 0 1 0 1-1.732l-1.732-1a1 1 0 1 0-1 1.732Z",
|
|
44
|
-
opacity: ".5"
|
|
45
|
-
}), /*#__PURE__*/_jsx("path", {
|
|
46
|
-
d: "m12.83 6.366 1.732-1a1 1 0 0 0-1-1.732l-1.732 1a1 1 0 0 0 1 1.732Z",
|
|
47
|
-
opacity: ".85"
|
|
48
|
-
}), /*#__PURE__*/_jsx("path", {
|
|
49
|
-
d: "m2.438 12.366 1.732-1a1 1 0 1 0-1-1.732l-1.732 1a1 1 0 1 0 1 1.732Z",
|
|
50
|
-
opacity: ".4"
|
|
51
|
-
}), /*#__PURE__*/_jsx("path", {
|
|
52
|
-
d: "m11.366 4.17 1-1.732a1 1 0 0 0-1.732-1l-1 1.732a1 1 0 0 0 1.732 1Z",
|
|
53
|
-
opacity: ".75"
|
|
54
|
-
}), /*#__PURE__*/_jsx("path", {
|
|
55
|
-
d: "m5.366 14.562 1-1.732a1 1 0 1 0-1.732-1l-1 1.732a1 1 0 0 0 1.732 1Z",
|
|
56
|
-
opacity: ".35"
|
|
57
|
-
})]
|
|
58
|
-
});
|
|
59
|
-
};
|
|
60
|
-
SmSpinner.defaultProps = {
|
|
61
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
62
|
-
viewBox: "0 0 16 16"
|
|
63
|
-
};
|
|
18
|
+
|
|
64
19
|
import { cssModules } from "../../bpk-react-utils";
|
|
65
20
|
import SPINNER_TYPES from "./spinnerTypes";
|
|
21
|
+
import SmSpinner from "./spinners/sm";
|
|
66
22
|
import STYLES from "./BpkSpinner.module.css";
|
|
67
|
-
import { jsx as _jsx
|
|
23
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
68
24
|
const getClassName = cssModules(STYLES);
|
|
69
25
|
const BpkSpinner = ({
|
|
70
26
|
alignToButton = false,
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
const LgIcon = props => /*#__PURE__*/_jsxs("svg", {
|
|
4
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
+
viewBox: "0 0 24 24",
|
|
6
|
+
"aria-hidden": "true",
|
|
7
|
+
width: "1.5rem",
|
|
8
|
+
height: "1.5rem",
|
|
9
|
+
...props,
|
|
10
|
+
children: [/*#__PURE__*/_jsx("path", {
|
|
11
|
+
d: "M12 6.657a.946.946 0 0 1-.943-.943V1.943c0-.519.424-.943.943-.943s.943.424.943.943v3.771a.946.946 0 0 1-.943.943",
|
|
12
|
+
clipRule: "evenodd",
|
|
13
|
+
opacity: 0.65
|
|
14
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
15
|
+
d: "M14.671 7.373a.946.946 0 0 1-.345-1.288l1.886-3.266a.946.946 0 0 1 1.288-.345c.45.26.604.839.345 1.288L15.96 7.028a.946.946 0 0 1-1.288.345z",
|
|
16
|
+
clipRule: "evenodd",
|
|
17
|
+
opacity: 0.75
|
|
18
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
19
|
+
d: "M16.627 9.329a.945.945 0 0 1 .345-1.288l3.266-1.886a.946.946 0 0 1 1.288.345.946.946 0 0 1-.345 1.288l-3.266 1.886a.946.946 0 0 1-1.288-.345",
|
|
20
|
+
clipRule: "evenodd",
|
|
21
|
+
opacity: 0.85
|
|
22
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
23
|
+
d: "M17.343 12c0-.519.424-.943.943-.943h3.771c.519 0 .943.424.943.943a.946.946 0 0 1-.943.943h-3.771a.946.946 0 0 1-.943-.943",
|
|
24
|
+
clipRule: "evenodd",
|
|
25
|
+
opacity: 0.9
|
|
26
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
27
|
+
d: "M16.627 14.671a.946.946 0 0 1 1.288-.345l3.266 1.886c.45.26.604.839.345 1.288a.946.946 0 0 1-1.288.345l-3.266-1.886a.946.946 0 0 1-.345-1.288",
|
|
28
|
+
clipRule: "evenodd",
|
|
29
|
+
opacity: 0.2
|
|
30
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
31
|
+
d: "M14.671 16.627a.946.946 0 0 1 1.288.345l1.886 3.266a.946.946 0 0 1-.345 1.288.945.945 0 0 1-1.288-.345l-1.886-3.266a.946.946 0 0 1 .345-1.288",
|
|
32
|
+
clipRule: "evenodd",
|
|
33
|
+
opacity: 0.25
|
|
34
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
35
|
+
d: "M12 17.343c.519 0 .943.424.943.943v3.771A.946.946 0 0 1 12 23a.946.946 0 0 1-.943-.943v-3.771c0-.519.424-.943.943-.943",
|
|
36
|
+
clipRule: "evenodd",
|
|
37
|
+
opacity: 0.3
|
|
38
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
39
|
+
d: "M9.329 16.627c.449.26.604.839.345 1.288l-1.886 3.266a.945.945 0 0 1-1.288.345.946.946 0 0 1-.345-1.288l1.886-3.266a.946.946 0 0 1 1.288-.345",
|
|
40
|
+
clipRule: "evenodd",
|
|
41
|
+
opacity: 0.35
|
|
42
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
43
|
+
d: "M7.373 14.671a.946.946 0 0 1-.345 1.288l-3.266 1.886a.946.946 0 0 1-1.288-.345.946.946 0 0 1 .345-1.288l3.266-1.886a.946.946 0 0 1 1.288.345",
|
|
44
|
+
clipRule: "evenodd",
|
|
45
|
+
opacity: 0.4
|
|
46
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
47
|
+
d: "M6.657 12a.946.946 0 0 1-.943.943H1.943A.946.946 0 0 1 1 12c0-.519.424-.943.943-.943h3.771c.519 0 .943.424.943.943",
|
|
48
|
+
clipRule: "evenodd",
|
|
49
|
+
opacity: 0.45
|
|
50
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
51
|
+
d: "M7.373 9.329a.946.946 0 0 1-1.288.345L2.819 7.788A.946.946 0 0 1 2.474 6.5a.946.946 0 0 1 1.288-.345L7.028 8.04a.946.946 0 0 1 .345 1.288z",
|
|
52
|
+
clipRule: "evenodd",
|
|
53
|
+
opacity: 0.5
|
|
54
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
55
|
+
d: "M9.329 7.373a.946.946 0 0 1-1.288-.345L6.155 3.762A.946.946 0 0 1 6.5 2.474a.946.946 0 0 1 1.288.345l1.886 3.266a.946.946 0 0 1-.345 1.288",
|
|
56
|
+
clipRule: "evenodd",
|
|
57
|
+
opacity: 0.55
|
|
58
|
+
})]
|
|
59
|
+
});
|
|
60
|
+
export default LgIcon;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
const SmIcon = props => /*#__PURE__*/_jsxs("svg", {
|
|
4
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
+
viewBox: "0 0 16 16",
|
|
6
|
+
"aria-hidden": "true",
|
|
7
|
+
width: "1rem",
|
|
8
|
+
height: "1rem",
|
|
9
|
+
...props,
|
|
10
|
+
children: [/*#__PURE__*/_jsx("path", {
|
|
11
|
+
d: "M3 7H1a1 1 0 0 0 0 2h2a1 1 0 0 0 0-2",
|
|
12
|
+
opacity: 0.45
|
|
13
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
14
|
+
d: "M15 7h-2a1 1 0 1 0 0 2h2a1 1 0 1 0 0-2"
|
|
15
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
16
|
+
d: "M7 13v2a1 1 0 1 0 2 0v-2a1 1 0 1 0-2 0",
|
|
17
|
+
opacity: 0.3
|
|
18
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
19
|
+
d: "M7 1v2a1 1 0 0 0 2 0V1a1 1 0 0 0-2 0",
|
|
20
|
+
opacity: 0.65
|
|
21
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
22
|
+
d: "m9.634 12.83 1 1.732a1 1 0 1 0 1.732-1l-1-1.732a1 1 0 0 0-1.732 1",
|
|
23
|
+
opacity: 0.25
|
|
24
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
25
|
+
d: "m3.634 2.438 1 1.732a1 1 0 1 0 1.732-1l-1-1.732a1 1 0 1 0-1.732 1",
|
|
26
|
+
opacity: 0.55
|
|
27
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
28
|
+
d: "m11.83 11.366 1.732 1a1 1 0 1 0 1-1.732l-1.732-1a1 1 0 1 0-1 1.732",
|
|
29
|
+
opacity: 0.2
|
|
30
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
31
|
+
d: "m1.438 5.366 1.732 1a1 1 0 1 0 1-1.732l-1.732-1a1 1 0 1 0-1 1.732",
|
|
32
|
+
opacity: 0.5
|
|
33
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
34
|
+
d: "m12.83 6.366 1.732-1a1 1 0 0 0-1-1.732l-1.732 1a1 1 0 0 0 1 1.732",
|
|
35
|
+
opacity: 0.85
|
|
36
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
37
|
+
d: "m2.438 12.366 1.732-1a1 1 0 1 0-1-1.732l-1.732 1a1 1 0 1 0 1 1.732",
|
|
38
|
+
opacity: 0.4
|
|
39
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
40
|
+
d: "m11.366 4.17 1-1.732a1 1 0 0 0-1.732-1l-1 1.732a1 1 0 0 0 1.732 1",
|
|
41
|
+
opacity: 0.75
|
|
42
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
43
|
+
d: "m5.366 14.562 1-1.732a1 1 0 1 0-1.732-1l-1 1.732a1 1 0 0 0 1.732 1",
|
|
44
|
+
opacity: 0.35
|
|
45
|
+
})]
|
|
46
|
+
});
|
|
47
|
+
export default SmIcon;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
const XlIcon = props => /*#__PURE__*/_jsxs("svg", {
|
|
4
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
+
viewBox: "0 0 32 32",
|
|
6
|
+
"aria-hidden": "true",
|
|
7
|
+
width: "2rem",
|
|
8
|
+
height: "2rem",
|
|
9
|
+
...props,
|
|
10
|
+
children: [/*#__PURE__*/_jsx("path", {
|
|
11
|
+
d: "M16 9.092c-.67 0-1.22-.549-1.22-1.22V2.997c0-.67.55-1.219 1.22-1.219.671 0 1.22.549 1.22 1.22v4.876c0 .67-.549 1.219-1.22 1.219",
|
|
12
|
+
clipRule: "evenodd",
|
|
13
|
+
opacity: 0.65
|
|
14
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
15
|
+
d: "M19.454 10.012a1.22 1.22 0 0 1-.446-1.664l2.44-4.22a1.225 1.225 0 0 1 1.667-.445 1.22 1.22 0 0 1 .447 1.664l-2.44 4.22c-.336.58-1.086.78-1.668.445",
|
|
16
|
+
clipRule: "evenodd",
|
|
17
|
+
opacity: 0.75
|
|
18
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
19
|
+
d: "M21.982 12.546a1.223 1.223 0 0 1 .447-1.665l4.222-2.438a1.223 1.223 0 0 1 1.666.446c.335.58.134 1.33-.447 1.665l-4.222 2.438a1.223 1.223 0 0 1-1.666-.446",
|
|
20
|
+
clipRule: "evenodd",
|
|
21
|
+
opacity: 0.85
|
|
22
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
23
|
+
d: "M22.908 16c0-.671.548-1.22 1.219-1.22h4.876c.67 0 1.22.549 1.22 1.22s-.55 1.218-1.22 1.218h-4.876c-.67 0-1.22-.548-1.22-1.219",
|
|
24
|
+
clipRule: "evenodd",
|
|
25
|
+
opacity: 0.9
|
|
26
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
27
|
+
d: "M21.982 19.454a1.22 1.22 0 0 1 1.664-.447l4.22 2.44c.58.336.781 1.086.446 1.667a1.22 1.22 0 0 1-1.664.447l-4.22-2.44a1.225 1.225 0 0 1-.446-1.667",
|
|
28
|
+
clipRule: "evenodd",
|
|
29
|
+
opacity: 0.2
|
|
30
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
31
|
+
d: "M19.454 21.982a1.223 1.223 0 0 1 1.665.446l2.438 4.223c.335.58.135 1.33-.446 1.665-.58.335-1.33.134-1.665-.446l-2.438-4.223a1.223 1.223 0 0 1 .446-1.665",
|
|
32
|
+
clipRule: "evenodd",
|
|
33
|
+
opacity: 0.25
|
|
34
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
35
|
+
d: "M16 22.907c.67 0 1.219.549 1.219 1.22v4.876c0 .67-.549 1.218-1.219 1.218s-1.22-.548-1.22-1.218v-4.877c0-.67.55-1.219 1.22-1.219",
|
|
36
|
+
clipRule: "evenodd",
|
|
37
|
+
opacity: 0.3
|
|
38
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
39
|
+
d: "M12.546 21.982c.58.335.781 1.083.446 1.664l-2.438 4.22c-.335.58-1.084.78-1.665.445a1.22 1.22 0 0 1-.446-1.664l2.438-4.22a1.223 1.223 0 0 1 1.665-.445",
|
|
40
|
+
clipRule: "evenodd",
|
|
41
|
+
opacity: 0.35
|
|
42
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
43
|
+
d: "M10.018 19.453c.335.581.134 1.33-.447 1.666L5.35 23.556a1.224 1.224 0 0 1-1.666-.447 1.223 1.223 0 0 1 .447-1.665l4.222-2.438a1.223 1.223 0 0 1 1.666.446",
|
|
44
|
+
clipRule: "evenodd",
|
|
45
|
+
opacity: 0.4
|
|
46
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
47
|
+
d: "M9.092 16c0 .67-.549 1.218-1.219 1.218H2.997c-.67 0-1.22-.548-1.22-1.219 0-.67.55-1.219 1.22-1.219h4.876c.67 0 1.22.549 1.22 1.22",
|
|
48
|
+
clipRule: "evenodd",
|
|
49
|
+
opacity: 0.45
|
|
50
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
51
|
+
d: "M10.013 12.55a1.22 1.22 0 0 1-1.664.446l-4.22-2.44a1.225 1.225 0 0 1-.446-1.667 1.22 1.22 0 0 1 1.664-.446l4.22 2.44c.58.336.781 1.086.446 1.667",
|
|
52
|
+
clipRule: "evenodd",
|
|
53
|
+
opacity: 0.5
|
|
54
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
55
|
+
d: "M12.546 10.017c-.58.335-1.33.135-1.665-.446L8.443 5.348a1.223 1.223 0 0 1 .446-1.665 1.223 1.223 0 0 1 1.665.446l2.438 4.223c.335.58.135 1.33-.446 1.665",
|
|
56
|
+
clipRule: "evenodd",
|
|
57
|
+
opacity: 0.55
|
|
58
|
+
})]
|
|
59
|
+
});
|
|
60
|
+
export default XlIcon;
|
|
@@ -14,4 +14,6 @@
|
|
|
14
14
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
15
|
* See the License for the specific language governing permissions and
|
|
16
16
|
* limitations under the License.
|
|
17
|
-
*/
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
export default ['spinnerPrimaryColor'];
|
|
@@ -17,8 +17,6 @@
|
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
19
|
import { useEffect, useRef, useState } from "react";
|
|
20
|
-
|
|
21
|
-
// @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
|
|
22
20
|
import CSSTransition from 'react-transition-group/CSSTransition';
|
|
23
21
|
import cssModules from "../cssModules";
|
|
24
22
|
import STYLES from "./BpkDialogWrapper.module.css";
|
|
@@ -18,7 +18,6 @@
|
|
|
18
18
|
|
|
19
19
|
// @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
|
|
20
20
|
import assign from 'object-assign';
|
|
21
|
-
// @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
|
|
22
21
|
import CSSTransition from 'react-transition-group/CSSTransition';
|
|
23
22
|
|
|
24
23
|
// Object.assign() is used unpolyfilled in react-transition-group.
|