@skyscanner/backpack-web 23.2.2 → 24.0.0
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-aria-live/src/BpkAriaLive.js +0 -1
- package/bpk-component-badge/src/BpkBadge.js +0 -1
- package/{bpk-scrim-utils/src/customPropTypes.js → bpk-component-banner-alert/index.d.ts} +16 -14
- package/bpk-component-banner-alert/src/AnimateAndFade.d.ts +61 -0
- package/bpk-component-banner-alert/src/AnimateAndFade.js +3 -9
- package/bpk-component-banner-alert/src/BpkBannerAlert.d.ts +29 -0
- package/bpk-component-banner-alert/src/BpkBannerAlert.js +42 -21
- package/bpk-component-banner-alert/src/BpkBannerAlertDismissable.d.ts +30 -0
- package/bpk-component-banner-alert/src/BpkBannerAlertDismissable.js +31 -33
- package/bpk-component-banner-alert/src/BpkBannerAlertExpandable.d.ts +35 -0
- package/bpk-component-banner-alert/src/BpkBannerAlertExpandable.js +15 -28
- package/bpk-component-banner-alert/src/BpkBannerAlertInner.d.ts +58 -0
- package/bpk-component-banner-alert/src/BpkBannerAlertInner.js +65 -87
- package/bpk-component-banner-alert/src/common-types.d.ts +44 -0
- package/bpk-component-banner-alert/src/common-types.js +5 -23
- package/bpk-component-banner-alert/src/themeAttributes.d.ts +20 -0
- package/bpk-component-banner-alert/src/withBannerAlertState.d.ts +169 -0
- package/bpk-component-banner-alert/src/withBannerAlertState.js +10 -29
- package/bpk-component-boilerplate/src/BpkBoilerplate.js +0 -1
- package/bpk-component-button/src/BpkButtonV2/BpkButton.js +0 -1
- package/bpk-component-calendar/index.d.ts +30 -0
- package/bpk-component-calendar/index.js +5 -4
- package/bpk-component-calendar/src/BpkCalendarContainer.d.ts +464 -0
- package/bpk-component-calendar/src/BpkCalendarContainer.js +19 -29
- package/bpk-component-calendar/src/BpkCalendarDate.d.ts +62 -0
- package/bpk-component-calendar/src/BpkCalendarDate.js +15 -39
- package/bpk-component-calendar/src/BpkCalendarGrid.d.ts +68 -0
- package/bpk-component-calendar/src/BpkCalendarGrid.js +9 -40
- package/bpk-component-calendar/src/BpkCalendarGridHeader.d.ts +36 -0
- package/bpk-component-calendar/src/BpkCalendarGridHeader.js +33 -52
- package/bpk-component-calendar/src/BpkCalendarGridTransition.d.ts +56 -0
- package/bpk-component-calendar/src/BpkCalendarGridTransition.js +43 -42
- package/bpk-component-calendar/src/BpkCalendarNav.d.ts +37 -0
- package/bpk-component-calendar/src/BpkCalendarNav.js +18 -32
- package/bpk-component-calendar/src/Week.d.ts +51 -0
- package/bpk-component-calendar/src/Week.js +48 -70
- package/bpk-component-calendar/src/composeCalendar.d.ts +55 -0
- package/bpk-component-calendar/src/composeCalendar.js +34 -95
- package/bpk-component-calendar/src/custom-proptypes-legacy.js +140 -0
- package/bpk-component-calendar/src/custom-proptypes.d.ts +46 -0
- package/bpk-component-calendar/src/custom-proptypes.js +2 -61
- package/bpk-component-calendar/src/date-utils.d.ts +54 -0
- package/bpk-component-calendar/src/utils.d.ts +26 -0
- package/bpk-component-calendar/src/utils.js +1 -0
- package/bpk-component-calendar/test-utils.d.ts +56 -0
- package/bpk-component-calendar/test-utils.js +2 -2
- package/bpk-component-card/index.d.ts +24 -0
- package/bpk-component-card/src/BpkCard.d.ts +39 -0
- package/bpk-component-card/src/BpkCard.js +9 -25
- package/bpk-component-card/src/BpkCardWrapper.d.ts +33 -0
- package/bpk-component-card/src/BpkCardWrapper.js +10 -18
- package/bpk-component-card/src/BpkDividedCard.d.ts +43 -0
- package/bpk-component-card/src/BpkDividedCard.js +9 -24
- package/bpk-component-chip/index.d.ts +32 -0
- package/bpk-component-chip/src/BpkDismissibleChip.d.ts +28 -0
- package/bpk-component-chip/src/BpkDismissibleChip.js +9 -8
- package/bpk-component-chip/src/BpkDropdownChip.d.ts +29 -0
- package/bpk-component-chip/src/BpkDropdownChip.js +39 -25
- package/bpk-component-chip/src/BpkSelectableChip.d.ts +39 -0
- package/bpk-component-chip/src/BpkSelectableChip.js +33 -48
- package/bpk-component-chip/src/commonTypes.d.ts +56 -0
- package/bpk-component-chip/src/commonTypes.js +8 -2
- package/bpk-component-dialog/src/BpkDialog.d.ts +1 -12
- package/bpk-component-dialog/src/BpkDialog.js +1 -2
- package/bpk-component-dialog/src/BpkDialogInner.d.ts +256 -2
- package/bpk-component-dialog/src/BpkDialogInner.js +0 -4
- package/bpk-component-dialog/src/common-types.d.ts +20 -21
- package/bpk-component-graphic-promotion/src/BpkGraphicPromo.js +0 -4
- package/bpk-component-icon/src/classNameModifierHOCFactory.js +0 -1
- package/bpk-component-icon/src/withAlignment.js +1 -1
- package/bpk-component-icon/src/withDescription.js +1 -1
- package/bpk-component-icon/src/withRtlSupport.js +0 -2
- package/bpk-component-input/index.d.ts +39 -0
- package/bpk-component-input/src/BpkClearButton.d.ts +28 -0
- package/bpk-component-input/src/BpkClearButton.js +6 -14
- package/bpk-component-input/src/BpkInput.d.ts +46 -0
- package/bpk-component-input/src/BpkInput.js +7 -3
- package/bpk-component-input/src/common-types.d.ts +91 -0
- package/bpk-component-input/src/common-types.js +4 -1
- package/bpk-component-input/src/withOpenEvents.d.ts +121 -0
- package/bpk-component-input/src/withOpenEvents.js +14 -25
- package/bpk-component-modal/index.d.ts +26 -0
- package/bpk-component-modal/index.js +13 -6
- package/bpk-component-modal/src/BpkModal.d.ts +32 -0
- package/bpk-component-modal/src/BpkModal.js +24 -44
- package/bpk-component-modal/src/BpkModalInner.d.ts +39 -0
- package/bpk-component-modal/src/BpkModalInner.js +67 -84
- package/bpk-component-modal/src/BpkModalV2/BpKModal.module.css +18 -0
- package/bpk-component-modal/src/BpkModalV2/BpkModal.d.ts +35 -0
- package/bpk-component-modal/src/BpkModalV2/BpkModal.js +131 -0
- package/bpk-component-modal/src/legacy-prop-types.js +86 -0
- package/bpk-component-modal/src/themeAttributes.js +1 -0
- package/bpk-component-rtl-toggle/index.d.ts +23 -0
- package/bpk-component-rtl-toggle/src/BpkRtlToggle.d.ts +41 -0
- package/bpk-component-rtl-toggle/src/BpkRtlToggle.js +9 -12
- package/bpk-component-rtl-toggle/src/updateOnDirectionChange.d.ts +151 -0
- package/bpk-component-rtl-toggle/src/updateOnDirectionChange.js +9 -2
- package/bpk-component-rtl-toggle/src/utils.d.ts +25 -0
- package/bpk-component-text/index.d.ts +21 -0
- package/bpk-component-text/index.js +0 -6
- package/bpk-component-text/src/BpkText.d.ts +60 -0
- package/bpk-component-text/src/BpkText.js +16 -56
- package/bpk-component-text/src/BpkText.module.css +1 -1
- package/bpk-component-tooltip/index.d.ts +24 -0
- package/bpk-component-tooltip/src/BpkTooltip.d.ts +29 -0
- package/bpk-component-tooltip/src/BpkTooltip.js +9 -26
- package/bpk-component-tooltip/src/BpkTooltipPortal.d.ts +60 -0
- package/bpk-component-tooltip/src/BpkTooltipPortal.js +13 -21
- package/bpk-component-tooltip/src/constants.d.ts +31 -0
- package/bpk-component-tooltip/src/constants.js +3 -1
- package/bpk-react-utils/index.d.ts +58 -0
- package/bpk-react-utils/index.js +1 -0
- package/bpk-react-utils/src/Portal.d.ts +76 -0
- package/bpk-react-utils/src/Portal.js +33 -43
- package/bpk-react-utils/src/TransitionInitialMount.d.ts +27 -0
- package/bpk-react-utils/src/TransitionInitialMount.js +7 -8
- package/bpk-react-utils/src/cssModules.d.ts +22 -0
- package/bpk-react-utils/src/deprecated.js +2 -1
- package/bpk-react-utils/src/deviceDetection.d.ts +22 -0
- package/bpk-react-utils/src/deviceDetection.js +3 -1
- package/bpk-react-utils/src/isRTL.d.ts +20 -0
- package/bpk-react-utils/src/isRTL.js +3 -1
- package/bpk-react-utils/src/withDefaultProps.d.ts +33 -0
- package/bpk-react-utils/src/withDefaultProps.js +11 -24
- package/bpk-react-utils/src/wrapDisplayName.d.ts +21 -0
- package/bpk-scrim-utils/index.d.ts +283 -0
- package/bpk-scrim-utils/src/BpkScrim.d.ts +24 -0
- package/bpk-scrim-utils/src/BpkScrim.js +5 -10
- package/bpk-scrim-utils/src/scroll-utils.d.ts +24 -0
- package/bpk-scrim-utils/src/scroll-utils.js +1 -1
- package/bpk-scrim-utils/src/withScrim.d.ts +96 -0
- package/bpk-scrim-utils/src/withScrim.js +5 -12
- package/package.json +1 -1
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Backpack - Skyscanner's Design System
|
|
3
|
+
*
|
|
4
|
+
* Copyright 2016 Skyscanner Ltd
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
import type PropTypes from 'prop-types';
|
|
20
|
+
import type { ComponentProps, ReactNode, SyntheticEvent } from 'react';
|
|
21
|
+
|
|
22
|
+
export declare const CHIP_TYPES: {
|
|
23
|
+
readonly default: 'default';
|
|
24
|
+
readonly onDark: 'on-dark';
|
|
25
|
+
readonly onImage: 'on-image';
|
|
26
|
+
};
|
|
27
|
+
interface ButtonProps extends Omit<ComponentProps<'button'>, 'type'> {
|
|
28
|
+
onClick: (event: SyntheticEvent<HTMLButtonElement>) => void | null;
|
|
29
|
+
children: ReactNode | string;
|
|
30
|
+
type?: typeof CHIP_TYPES[keyof typeof CHIP_TYPES];
|
|
31
|
+
}
|
|
32
|
+
export interface CommonProps extends ButtonProps {
|
|
33
|
+
accessibilityLabel: string;
|
|
34
|
+
disabled?: boolean;
|
|
35
|
+
selected?: boolean;
|
|
36
|
+
leadingAccessoryView?: ReactNode;
|
|
37
|
+
}
|
|
38
|
+
export declare const COMMON_PROP_TYPES: {
|
|
39
|
+
accessibilityLabel: PropTypes.Validator<string>;
|
|
40
|
+
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
41
|
+
onClick: PropTypes.Validator<(...args: any[]) => any>;
|
|
42
|
+
className: PropTypes.Requireable<string>;
|
|
43
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
44
|
+
leadingAccessoryView: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
45
|
+
selected: PropTypes.Requireable<boolean>;
|
|
46
|
+
trailingAccessoryView: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
47
|
+
type: PropTypes.Requireable<'default' | 'on-dark' | 'on-image'>;
|
|
48
|
+
};
|
|
49
|
+
export declare const COMMON_DEFAULT_PROPS: {
|
|
50
|
+
disabled: boolean;
|
|
51
|
+
leadingAccessoryView: null;
|
|
52
|
+
selected: boolean;
|
|
53
|
+
trailingAccessoryView: null;
|
|
54
|
+
type: 'default';
|
|
55
|
+
};
|
|
56
|
+
export {};
|
|
@@ -22,12 +22,17 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
22
22
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
23
23
|
* See the License for the specific language governing permissions and
|
|
24
24
|
* limitations under the License.
|
|
25
|
-
*/
|
|
25
|
+
*/
|
|
26
|
+
|
|
27
|
+
const CHIP_TYPES = {
|
|
26
28
|
default: 'default',
|
|
27
29
|
onDark: 'on-dark',
|
|
28
30
|
onImage: 'on-image'
|
|
29
31
|
};
|
|
32
|
+
|
|
33
|
+
// onClick and children are already part of the button props, but we need to specify that they are required
|
|
30
34
|
exports.CHIP_TYPES = CHIP_TYPES;
|
|
35
|
+
// TODO: Remove once chip examples have been migrated to TS
|
|
31
36
|
const COMMON_PROP_TYPES = {
|
|
32
37
|
accessibilityLabel: _propTypes.default.string.isRequired,
|
|
33
38
|
children: _propTypes.default.node.isRequired,
|
|
@@ -39,9 +44,10 @@ const COMMON_PROP_TYPES = {
|
|
|
39
44
|
trailingAccessoryView: _propTypes.default.node,
|
|
40
45
|
type: _propTypes.default.oneOf(Object.values(CHIP_TYPES))
|
|
41
46
|
};
|
|
47
|
+
|
|
48
|
+
// TODO: Remove once chip examples have been migrated to TS
|
|
42
49
|
exports.COMMON_PROP_TYPES = COMMON_PROP_TYPES;
|
|
43
50
|
const COMMON_DEFAULT_PROPS = {
|
|
44
|
-
className: null,
|
|
45
51
|
disabled: false,
|
|
46
52
|
leadingAccessoryView: null,
|
|
47
53
|
selected: false,
|
|
@@ -18,16 +18,5 @@
|
|
|
18
18
|
|
|
19
19
|
/// <reference types="react" />
|
|
20
20
|
import type { Props } from './common-types';
|
|
21
|
-
|
|
22
|
-
declare const BpkDialog: ({
|
|
23
|
-
children,
|
|
24
|
-
closeLabel,
|
|
25
|
-
dismissible,
|
|
26
|
-
headerIcon,
|
|
27
|
-
headerIconType,
|
|
28
|
-
isOpen,
|
|
29
|
-
onClose,
|
|
30
|
-
renderTarget,
|
|
31
|
-
...rest
|
|
32
|
-
}: Props) => JSX.Element;
|
|
21
|
+
declare const BpkDialog: ({ children, closeLabel, dismissible, headerIcon, headerIconType, isOpen, onClose, renderTarget, ...rest }: Props) => JSX.Element;
|
|
33
22
|
export default BpkDialog;
|
|
@@ -29,7 +29,6 @@ const _excluded = ["children", "closeLabel", "dismissible", "headerIcon", "heade
|
|
|
29
29
|
* limitations under the License.
|
|
30
30
|
*/
|
|
31
31
|
// @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
|
|
32
|
-
// @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
|
|
33
32
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
34
33
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
35
34
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
@@ -62,7 +61,7 @@ const BpkDialog = _ref => {
|
|
|
62
61
|
onClose: onClose,
|
|
63
62
|
closeOnScrimClick: dismissible,
|
|
64
63
|
containerClassName: getClassName('bpk-dialog__container'),
|
|
65
|
-
contentClassName: headerIcon ? getClassName('bpk-dialog--with-icon') :
|
|
64
|
+
contentClassName: headerIcon ? getClassName('bpk-dialog--with-icon') : undefined
|
|
66
65
|
}, rest), {}, {
|
|
67
66
|
children: [headerIcon && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
68
67
|
className: headerIconClassNames,
|
|
@@ -16,6 +16,260 @@
|
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
/// <reference types="react" />
|
|
20
|
+
import { type DialogInnerProps as Props } from './common-types';
|
|
21
|
+
declare const _default: {
|
|
22
|
+
new (props: (Props & {
|
|
23
|
+
getApplicationElement: () => HTMLElement | null;
|
|
24
|
+
containerClassName?: string | undefined;
|
|
25
|
+
closeOnScrimClick?: boolean | undefined;
|
|
26
|
+
} & {
|
|
27
|
+
[rest: string]: any;
|
|
28
|
+
onClose?: (() => void | null) | undefined;
|
|
29
|
+
isIphone?: boolean | undefined;
|
|
30
|
+
isIpad?: boolean | undefined;
|
|
31
|
+
}) | Readonly<Props & {
|
|
32
|
+
getApplicationElement: () => HTMLElement | null;
|
|
33
|
+
containerClassName?: string | undefined;
|
|
34
|
+
closeOnScrimClick?: boolean | undefined;
|
|
35
|
+
} & {
|
|
36
|
+
[rest: string]: any;
|
|
37
|
+
onClose?: (() => void | null) | undefined;
|
|
38
|
+
isIphone?: boolean | undefined;
|
|
39
|
+
isIpad?: boolean | undefined;
|
|
40
|
+
}>): {
|
|
41
|
+
dialogElement?: import("react").RefObject<HTMLElement> | undefined;
|
|
42
|
+
componentDidMount(): void;
|
|
43
|
+
componentWillUnmount(): void;
|
|
44
|
+
dialogRef: (ref: import("react").RefObject<HTMLElement>) => void;
|
|
45
|
+
render(): JSX.Element;
|
|
46
|
+
context: any;
|
|
47
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Props & {
|
|
48
|
+
getApplicationElement: () => HTMLElement | null;
|
|
49
|
+
containerClassName?: string | undefined;
|
|
50
|
+
closeOnScrimClick?: boolean | undefined;
|
|
51
|
+
} & {
|
|
52
|
+
[rest: string]: any;
|
|
53
|
+
onClose?: (() => void | null) | undefined;
|
|
54
|
+
isIphone?: boolean | undefined;
|
|
55
|
+
isIpad?: boolean | undefined;
|
|
56
|
+
}>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
57
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
58
|
+
readonly props: Readonly<Props & {
|
|
59
|
+
getApplicationElement: () => HTMLElement | null;
|
|
60
|
+
containerClassName?: string | undefined;
|
|
61
|
+
closeOnScrimClick?: boolean | undefined;
|
|
62
|
+
} & {
|
|
63
|
+
[rest: string]: any;
|
|
64
|
+
onClose?: (() => void | null) | undefined;
|
|
65
|
+
isIphone?: boolean | undefined;
|
|
66
|
+
isIpad?: boolean | undefined;
|
|
67
|
+
}> & Readonly<{
|
|
68
|
+
children?: import("react").ReactNode;
|
|
69
|
+
}>;
|
|
70
|
+
state: Readonly<{}>;
|
|
71
|
+
refs: {
|
|
72
|
+
[key: string]: import("react").ReactInstance;
|
|
73
|
+
};
|
|
74
|
+
shouldComponentUpdate?(nextProps: Readonly<Props & {
|
|
75
|
+
getApplicationElement: () => HTMLElement | null;
|
|
76
|
+
containerClassName?: string | undefined;
|
|
77
|
+
closeOnScrimClick?: boolean | undefined;
|
|
78
|
+
} & {
|
|
79
|
+
[rest: string]: any;
|
|
80
|
+
onClose?: (() => void | null) | undefined;
|
|
81
|
+
isIphone?: boolean | undefined;
|
|
82
|
+
isIpad?: boolean | undefined;
|
|
83
|
+
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
84
|
+
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
85
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Props & {
|
|
86
|
+
getApplicationElement: () => HTMLElement | null;
|
|
87
|
+
containerClassName?: string | undefined;
|
|
88
|
+
closeOnScrimClick?: boolean | undefined;
|
|
89
|
+
} & {
|
|
90
|
+
[rest: string]: any;
|
|
91
|
+
onClose?: (() => void | null) | undefined;
|
|
92
|
+
isIphone?: boolean | undefined;
|
|
93
|
+
isIpad?: boolean | undefined;
|
|
94
|
+
}>, prevState: Readonly<{}>): any;
|
|
95
|
+
componentDidUpdate?(prevProps: Readonly<Props & {
|
|
96
|
+
getApplicationElement: () => HTMLElement | null;
|
|
97
|
+
containerClassName?: string | undefined;
|
|
98
|
+
closeOnScrimClick?: boolean | undefined;
|
|
99
|
+
} & {
|
|
100
|
+
[rest: string]: any;
|
|
101
|
+
onClose?: (() => void | null) | undefined;
|
|
102
|
+
isIphone?: boolean | undefined;
|
|
103
|
+
isIpad?: boolean | undefined;
|
|
104
|
+
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
105
|
+
componentWillMount?(): void;
|
|
106
|
+
UNSAFE_componentWillMount?(): void;
|
|
107
|
+
componentWillReceiveProps?(nextProps: Readonly<Props & {
|
|
108
|
+
getApplicationElement: () => HTMLElement | null;
|
|
109
|
+
containerClassName?: string | undefined;
|
|
110
|
+
closeOnScrimClick?: boolean | undefined;
|
|
111
|
+
} & {
|
|
112
|
+
[rest: string]: any;
|
|
113
|
+
onClose?: (() => void | null) | undefined;
|
|
114
|
+
isIphone?: boolean | undefined;
|
|
115
|
+
isIpad?: boolean | undefined;
|
|
116
|
+
}>, nextContext: any): void;
|
|
117
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Props & {
|
|
118
|
+
getApplicationElement: () => HTMLElement | null;
|
|
119
|
+
containerClassName?: string | undefined;
|
|
120
|
+
closeOnScrimClick?: boolean | undefined;
|
|
121
|
+
} & {
|
|
122
|
+
[rest: string]: any;
|
|
123
|
+
onClose?: (() => void | null) | undefined;
|
|
124
|
+
isIphone?: boolean | undefined;
|
|
125
|
+
isIpad?: boolean | undefined;
|
|
126
|
+
}>, nextContext: any): void;
|
|
127
|
+
componentWillUpdate?(nextProps: Readonly<Props & {
|
|
128
|
+
getApplicationElement: () => HTMLElement | null;
|
|
129
|
+
containerClassName?: string | undefined;
|
|
130
|
+
closeOnScrimClick?: boolean | undefined;
|
|
131
|
+
} & {
|
|
132
|
+
[rest: string]: any;
|
|
133
|
+
onClose?: (() => void | null) | undefined;
|
|
134
|
+
isIphone?: boolean | undefined;
|
|
135
|
+
isIpad?: boolean | undefined;
|
|
136
|
+
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
137
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Props & {
|
|
138
|
+
getApplicationElement: () => HTMLElement | null;
|
|
139
|
+
containerClassName?: string | undefined;
|
|
140
|
+
closeOnScrimClick?: boolean | undefined;
|
|
141
|
+
} & {
|
|
142
|
+
[rest: string]: any;
|
|
143
|
+
onClose?: (() => void | null) | undefined;
|
|
144
|
+
isIphone?: boolean | undefined;
|
|
145
|
+
isIpad?: boolean | undefined;
|
|
146
|
+
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
147
|
+
};
|
|
148
|
+
new (props: Props & {
|
|
149
|
+
getApplicationElement: () => HTMLElement | null;
|
|
150
|
+
containerClassName?: string | undefined;
|
|
151
|
+
closeOnScrimClick?: boolean | undefined;
|
|
152
|
+
} & {
|
|
153
|
+
[rest: string]: any;
|
|
154
|
+
onClose?: (() => void | null) | undefined;
|
|
155
|
+
isIphone?: boolean | undefined;
|
|
156
|
+
isIpad?: boolean | undefined;
|
|
157
|
+
}, context: any): {
|
|
158
|
+
dialogElement?: import("react").RefObject<HTMLElement> | undefined;
|
|
159
|
+
componentDidMount(): void;
|
|
160
|
+
componentWillUnmount(): void;
|
|
161
|
+
dialogRef: (ref: import("react").RefObject<HTMLElement>) => void;
|
|
162
|
+
render(): JSX.Element;
|
|
163
|
+
context: any;
|
|
164
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Props & {
|
|
165
|
+
getApplicationElement: () => HTMLElement | null;
|
|
166
|
+
containerClassName?: string | undefined;
|
|
167
|
+
closeOnScrimClick?: boolean | undefined;
|
|
168
|
+
} & {
|
|
169
|
+
[rest: string]: any;
|
|
170
|
+
onClose?: (() => void | null) | undefined;
|
|
171
|
+
isIphone?: boolean | undefined;
|
|
172
|
+
isIpad?: boolean | undefined;
|
|
173
|
+
}>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
174
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
175
|
+
readonly props: Readonly<Props & {
|
|
176
|
+
getApplicationElement: () => HTMLElement | null;
|
|
177
|
+
containerClassName?: string | undefined;
|
|
178
|
+
closeOnScrimClick?: boolean | undefined;
|
|
179
|
+
} & {
|
|
180
|
+
[rest: string]: any;
|
|
181
|
+
onClose?: (() => void | null) | undefined;
|
|
182
|
+
isIphone?: boolean | undefined;
|
|
183
|
+
isIpad?: boolean | undefined;
|
|
184
|
+
}> & Readonly<{
|
|
185
|
+
children?: import("react").ReactNode;
|
|
186
|
+
}>;
|
|
187
|
+
state: Readonly<{}>;
|
|
188
|
+
refs: {
|
|
189
|
+
[key: string]: import("react").ReactInstance;
|
|
190
|
+
};
|
|
191
|
+
shouldComponentUpdate?(nextProps: Readonly<Props & {
|
|
192
|
+
getApplicationElement: () => HTMLElement | null;
|
|
193
|
+
containerClassName?: string | undefined;
|
|
194
|
+
closeOnScrimClick?: boolean | undefined;
|
|
195
|
+
} & {
|
|
196
|
+
[rest: string]: any;
|
|
197
|
+
onClose?: (() => void | null) | undefined;
|
|
198
|
+
isIphone?: boolean | undefined;
|
|
199
|
+
isIpad?: boolean | undefined;
|
|
200
|
+
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
201
|
+
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
202
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Props & {
|
|
203
|
+
getApplicationElement: () => HTMLElement | null;
|
|
204
|
+
containerClassName?: string | undefined;
|
|
205
|
+
closeOnScrimClick?: boolean | undefined;
|
|
206
|
+
} & {
|
|
207
|
+
[rest: string]: any;
|
|
208
|
+
onClose?: (() => void | null) | undefined;
|
|
209
|
+
isIphone?: boolean | undefined;
|
|
210
|
+
isIpad?: boolean | undefined;
|
|
211
|
+
}>, prevState: Readonly<{}>): any;
|
|
212
|
+
componentDidUpdate?(prevProps: Readonly<Props & {
|
|
213
|
+
getApplicationElement: () => HTMLElement | null;
|
|
214
|
+
containerClassName?: string | undefined;
|
|
215
|
+
closeOnScrimClick?: boolean | undefined;
|
|
216
|
+
} & {
|
|
217
|
+
[rest: string]: any;
|
|
218
|
+
onClose?: (() => void | null) | undefined;
|
|
219
|
+
isIphone?: boolean | undefined;
|
|
220
|
+
isIpad?: boolean | undefined;
|
|
221
|
+
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
222
|
+
componentWillMount?(): void;
|
|
223
|
+
UNSAFE_componentWillMount?(): void;
|
|
224
|
+
componentWillReceiveProps?(nextProps: Readonly<Props & {
|
|
225
|
+
getApplicationElement: () => HTMLElement | null;
|
|
226
|
+
containerClassName?: string | undefined;
|
|
227
|
+
closeOnScrimClick?: boolean | undefined;
|
|
228
|
+
} & {
|
|
229
|
+
[rest: string]: any;
|
|
230
|
+
onClose?: (() => void | null) | undefined;
|
|
231
|
+
isIphone?: boolean | undefined;
|
|
232
|
+
isIpad?: boolean | undefined;
|
|
233
|
+
}>, nextContext: any): void;
|
|
234
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Props & {
|
|
235
|
+
getApplicationElement: () => HTMLElement | null;
|
|
236
|
+
containerClassName?: string | undefined;
|
|
237
|
+
closeOnScrimClick?: boolean | undefined;
|
|
238
|
+
} & {
|
|
239
|
+
[rest: string]: any;
|
|
240
|
+
onClose?: (() => void | null) | undefined;
|
|
241
|
+
isIphone?: boolean | undefined;
|
|
242
|
+
isIpad?: boolean | undefined;
|
|
243
|
+
}>, nextContext: any): void;
|
|
244
|
+
componentWillUpdate?(nextProps: Readonly<Props & {
|
|
245
|
+
getApplicationElement: () => HTMLElement | null;
|
|
246
|
+
containerClassName?: string | undefined;
|
|
247
|
+
closeOnScrimClick?: boolean | undefined;
|
|
248
|
+
} & {
|
|
249
|
+
[rest: string]: any;
|
|
250
|
+
onClose?: (() => void | null) | undefined;
|
|
251
|
+
isIphone?: boolean | undefined;
|
|
252
|
+
isIpad?: boolean | undefined;
|
|
253
|
+
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
254
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Props & {
|
|
255
|
+
getApplicationElement: () => HTMLElement | null;
|
|
256
|
+
containerClassName?: string | undefined;
|
|
257
|
+
closeOnScrimClick?: boolean | undefined;
|
|
258
|
+
} & {
|
|
259
|
+
[rest: string]: any;
|
|
260
|
+
onClose?: (() => void | null) | undefined;
|
|
261
|
+
isIphone?: boolean | undefined;
|
|
262
|
+
isIpad?: boolean | undefined;
|
|
263
|
+
}>, nextState: Readonly<{}>, nextContext: any): void;
|
|
264
|
+
};
|
|
265
|
+
displayName: string;
|
|
266
|
+
defaultProps: {
|
|
267
|
+
onClose: null;
|
|
268
|
+
isIphone: boolean;
|
|
269
|
+
isIpad: boolean;
|
|
270
|
+
containerClassName: null;
|
|
271
|
+
closeOnScrimClick: boolean;
|
|
272
|
+
};
|
|
273
|
+
contextType?: import("react").Context<any> | undefined;
|
|
274
|
+
};
|
|
21
275
|
export default _default;
|
|
@@ -30,10 +30,6 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
30
30
|
|
|
31
31
|
// @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
|
|
32
32
|
|
|
33
|
-
// @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
|
|
34
|
-
|
|
35
|
-
// @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
|
|
36
|
-
|
|
37
33
|
const getClassName = (0, _bpkReactUtils.cssModules)(_BpkDialogInnerModule.default);
|
|
38
34
|
const BpkDialogInner = props => {
|
|
39
35
|
const {
|
|
@@ -16,30 +16,29 @@
|
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
import type { ReactNode
|
|
20
|
-
|
|
19
|
+
import type { ReactNode } from 'react';
|
|
21
20
|
export declare const HEADER_ICON_TYPES: {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
readonly primary: "primary";
|
|
22
|
+
readonly warning: "warning";
|
|
23
|
+
readonly destructive: "destructive";
|
|
25
24
|
};
|
|
26
25
|
export type DialogInnerProps = {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
26
|
+
ariaLabel: string;
|
|
27
|
+
id: string;
|
|
28
|
+
children: ReactNode;
|
|
29
|
+
dialogRef: (ref: HTMLElement | null | undefined) => void;
|
|
30
|
+
getApplicationElement: () => HTMLElement | null;
|
|
31
|
+
className?: string;
|
|
32
|
+
contentClassName?: string;
|
|
33
|
+
flare?: boolean;
|
|
34
|
+
flareClassName?: string;
|
|
36
35
|
};
|
|
37
36
|
export type Props = DialogInnerProps & {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
37
|
+
isOpen: boolean;
|
|
38
|
+
renderTarget?: () => HTMLElement | null;
|
|
39
|
+
onClose: (event?: TouchEvent | MouseEvent | KeyboardEvent) => void | null;
|
|
40
|
+
closeLabel?: string;
|
|
41
|
+
dismissible?: boolean;
|
|
42
|
+
headerIcon?: ReactNode;
|
|
43
|
+
headerIconType?: typeof HEADER_ICON_TYPES[keyof typeof HEADER_ICON_TYPES];
|
|
45
44
|
};
|
|
@@ -30,10 +30,6 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
30
30
|
|
|
31
31
|
// @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
|
|
32
32
|
|
|
33
|
-
// @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
|
|
34
|
-
|
|
35
|
-
// @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
|
|
36
|
-
|
|
37
33
|
const getClassName = (0, _bpkReactUtils.cssModules)(_BpkGraphicPromoModule.default);
|
|
38
34
|
const ACCESSIBILITY_KEYS = {
|
|
39
35
|
Enter: 13 /* Enter */,
|
|
@@ -24,7 +24,6 @@ const _excluded = ["className"];
|
|
|
24
24
|
* See the License for the specific language governing permissions and
|
|
25
25
|
* limitations under the License.
|
|
26
26
|
*/
|
|
27
|
-
// @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
|
|
28
27
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
29
28
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
30
29
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(input, hint) { if (typeof input !== "object" || input ===
|
|
|
26
26
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
27
27
|
* See the License for the specific language governing permissions and
|
|
28
28
|
* limitations under the License.
|
|
29
|
-
*/
|
|
29
|
+
*/
|
|
30
30
|
function withAlignment(Component, objectHeight, subjectHeight) {
|
|
31
31
|
const WithAlignment = props => {
|
|
32
32
|
const objectHeightDecimal = `${objectHeight}`.replace('rem', '');
|
|
@@ -28,7 +28,7 @@ function _toPrimitive(input, hint) { if (typeof input !== "object" || input ===
|
|
|
28
28
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
29
29
|
* See the License for the specific language governing permissions and
|
|
30
30
|
* limitations under the License.
|
|
31
|
-
*/
|
|
31
|
+
*/
|
|
32
32
|
const getClassName = (0, _bpkReactUtils.cssModules)(_withDescriptionModule.default);
|
|
33
33
|
function withDescription(Component, description) {
|
|
34
34
|
const WithDescription = props => /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
|
|
@@ -26,8 +26,6 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
26
26
|
* limitations under the License.
|
|
27
27
|
*/
|
|
28
28
|
|
|
29
|
-
// @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
|
|
30
|
-
|
|
31
29
|
const getClassName = (0, _bpkReactUtils.cssModules)(_BpkIconModule.default);
|
|
32
30
|
var _default = (0, _classNameModifierHOCFactory.default)('withRtlSupport', [getClassName('bpk-icon--rtl-support')]);
|
|
33
31
|
exports.default = _default;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Backpack - Skyscanner's Design System
|
|
3
|
+
*
|
|
4
|
+
* Copyright 2016 Skyscanner Ltd
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
import BpkInput from './src/BpkInput';
|
|
20
|
+
import withOpenEvents from './src/withOpenEvents';
|
|
21
|
+
import {
|
|
22
|
+
propTypes,
|
|
23
|
+
defaultProps,
|
|
24
|
+
CLEAR_BUTTON_MODES,
|
|
25
|
+
INPUT_TYPES,
|
|
26
|
+
type Props,
|
|
27
|
+
} from './src/common-types';
|
|
28
|
+
import themeAttributes from './src/themeAttributes';
|
|
29
|
+
|
|
30
|
+
export default BpkInput;
|
|
31
|
+
export type BpkInputProps = Props;
|
|
32
|
+
export {
|
|
33
|
+
propTypes,
|
|
34
|
+
defaultProps,
|
|
35
|
+
withOpenEvents,
|
|
36
|
+
INPUT_TYPES,
|
|
37
|
+
CLEAR_BUTTON_MODES,
|
|
38
|
+
themeAttributes,
|
|
39
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Backpack - Skyscanner's Design System
|
|
3
|
+
*
|
|
4
|
+
* Copyright 2016 Skyscanner Ltd
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
type Props = {
|
|
20
|
+
label: string;
|
|
21
|
+
};
|
|
22
|
+
declare const BpkClearButton: ({
|
|
23
|
+
className,
|
|
24
|
+
label,
|
|
25
|
+
onClick,
|
|
26
|
+
...rest
|
|
27
|
+
}: Props) => JSX.Element;
|
|
28
|
+
export default BpkClearButton;
|
|
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
8
7
|
var _closeCircle = _interopRequireDefault(require("../../bpk-component-icon/sm/close-circle"));
|
|
9
8
|
var _bpkComponentIcon = require("../../bpk-component-icon");
|
|
10
9
|
var _bpkReactUtils = require("../../bpk-react-utils");
|
|
@@ -28,6 +27,7 @@ const _excluded = ["className", "label", "onClick"];
|
|
|
28
27
|
* See the License for the specific language governing permissions and
|
|
29
28
|
* limitations under the License.
|
|
30
29
|
*/
|
|
30
|
+
// @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
|
|
31
31
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
32
32
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
33
33
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
@@ -38,14 +38,14 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
38
38
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
39
39
|
const getClassName = (0, _bpkReactUtils.cssModules)(_BpkClearButtonModule.default);
|
|
40
40
|
const ClearButtonIcon = (0, _bpkComponentIcon.withButtonAlignment)(_closeCircle.default);
|
|
41
|
-
const BpkClearButton =
|
|
42
|
-
|
|
43
|
-
const {
|
|
41
|
+
const BpkClearButton = _ref => {
|
|
42
|
+
let {
|
|
44
43
|
className,
|
|
45
44
|
label,
|
|
46
45
|
onClick
|
|
47
|
-
} =
|
|
48
|
-
rest = _objectWithoutProperties(
|
|
46
|
+
} = _ref,
|
|
47
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
48
|
+
const classNames = [getClassName('bpk-clear-button')];
|
|
49
49
|
if (className) {
|
|
50
50
|
classNames.push(className);
|
|
51
51
|
}
|
|
@@ -67,13 +67,5 @@ const BpkClearButton = props => {
|
|
|
67
67
|
}))
|
|
68
68
|
);
|
|
69
69
|
};
|
|
70
|
-
BpkClearButton.propTypes = {
|
|
71
|
-
label: _propTypes.default.string.isRequired,
|
|
72
|
-
onClick: _propTypes.default.func.isRequired,
|
|
73
|
-
className: _propTypes.default.string
|
|
74
|
-
};
|
|
75
|
-
BpkClearButton.defaultProps = {
|
|
76
|
-
className: null
|
|
77
|
-
};
|
|
78
70
|
var _default = BpkClearButton;
|
|
79
71
|
exports.default = _default;
|