@pingux/astro 2.147.1-alpha.1 → 2.148.0-alpha.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/lib/cjs/components/Badge/Badge.styles.d.ts +5 -1
- package/lib/cjs/components/Badge/Badge.styles.js +6 -2
- package/lib/cjs/components/IconButton/IconButton.styles.d.ts +38 -0
- package/lib/cjs/components/IconButton/IconButton.styles.js +8 -7
- package/lib/cjs/components/ListBox/Option.js +7 -3
- package/lib/cjs/components/Modal/Convenience/ModalBody.stories.d.ts +7 -0
- package/lib/cjs/components/Modal/Convenience/ModalBody.stories.js +30 -0
- package/lib/cjs/components/Modal/Convenience/ModalFooter.stories.d.ts +5 -0
- package/lib/cjs/components/Modal/Convenience/ModalFooter.stories.js +35 -0
- package/lib/cjs/components/Modal/Convenience/ModalHeader.stories.d.ts +5 -0
- package/lib/cjs/components/Modal/Convenience/ModalHeader.stories.js +36 -0
- package/lib/cjs/components/Modal/Modal.js +13 -4
- package/lib/cjs/components/Modal/Modal.stories.d.ts +1 -0
- package/lib/cjs/components/Modal/Modal.stories.js +57 -47
- package/lib/cjs/components/Modal/Modal.styles.d.ts +43 -26
- package/lib/cjs/components/Modal/Modal.styles.js +41 -28
- package/lib/cjs/components/Modal/ModalBody.d.ts +9 -0
- package/lib/cjs/components/Modal/ModalBody.js +34 -0
- package/lib/cjs/components/Modal/ModalBody.test.d.ts +1 -0
- package/lib/cjs/components/Modal/ModalBody.test.js +64 -0
- package/lib/cjs/components/Modal/ModalFooter.d.ts +4 -0
- package/lib/cjs/components/Modal/ModalFooter.js +48 -0
- package/lib/cjs/components/Modal/ModalFooter.test.d.ts +1 -0
- package/lib/cjs/components/Modal/ModalFooter.test.js +98 -0
- package/lib/cjs/components/Modal/ModalHeader.d.ts +4 -0
- package/lib/cjs/components/Modal/ModalHeader.js +61 -0
- package/lib/cjs/components/Modal/ModalHeader.test.d.ts +1 -0
- package/lib/cjs/components/Modal/ModalHeader.test.js +96 -0
- package/lib/cjs/components/Modal/index.d.ts +3 -0
- package/lib/cjs/components/Modal/index.js +22 -1
- package/lib/cjs/components/Modal/tests/Modal.integration.test.js +4 -0
- package/lib/cjs/components/Modal/tests/Modal.unit.test.js +4 -0
- package/lib/cjs/components/MultivaluesField/DefaultMultivaluesField.js +0 -1
- package/lib/cjs/components/MultivaluesField/MultivaluesField.stories.js +8 -103
- package/lib/cjs/index.d.ts +1 -1
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/buttons.d.ts +55 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/buttons.js +14 -2
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.d.ts +24 -1
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.js +25 -2
- package/lib/cjs/styles/themes/next-gen/convertedComponentList.d.ts +0 -1
- package/lib/cjs/styles/themes/next-gen/convertedComponentList.js +0 -1
- package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +62 -23
- package/lib/cjs/styles/themes/next-gen/variants/badges.d.ts +3 -5
- package/lib/cjs/styles/themes/next-gen/variants/badges.js +5 -2
- package/lib/cjs/styles/themes/next-gen/variants/button.d.ts +32 -6
- package/lib/cjs/styles/themes/next-gen/variants/button.js +6 -5
- package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +27 -12
- package/lib/cjs/styles/themes/next-gen/variants/variants.js +28 -13
- package/lib/cjs/types/Modal.d.ts +19 -0
- package/lib/components/Badge/Badge.styles.js +6 -2
- package/lib/components/IconButton/IconButton.styles.js +9 -8
- package/lib/components/ListBox/Option.js +7 -3
- package/lib/components/Modal/Convenience/ModalBody.stories.js +20 -0
- package/lib/components/Modal/Convenience/ModalFooter.stories.js +25 -0
- package/lib/components/Modal/Convenience/ModalHeader.stories.js +26 -0
- package/lib/components/Modal/Modal.js +13 -4
- package/lib/components/Modal/Modal.stories.js +57 -48
- package/lib/components/Modal/Modal.styles.js +39 -27
- package/lib/components/Modal/ModalBody.js +20 -0
- package/lib/components/Modal/ModalBody.test.js +61 -0
- package/lib/components/Modal/ModalFooter.js +34 -0
- package/lib/components/Modal/ModalFooter.test.js +95 -0
- package/lib/components/Modal/ModalHeader.js +47 -0
- package/lib/components/Modal/ModalHeader.test.js +93 -0
- package/lib/components/Modal/index.js +4 -1
- package/lib/components/Modal/tests/Modal.integration.test.js +4 -0
- package/lib/components/Modal/tests/Modal.unit.test.js +4 -0
- package/lib/components/MultivaluesField/DefaultMultivaluesField.js +0 -1
- package/lib/components/MultivaluesField/MultivaluesField.stories.js +8 -103
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/buttons.js +14 -2
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/variants.js +25 -2
- package/lib/styles/themes/next-gen/convertedComponentList.js +0 -1
- package/lib/styles/themes/next-gen/variants/badges.js +5 -2
- package/lib/styles/themes/next-gen/variants/button.js +6 -5
- package/lib/styles/themes/next-gen/variants/variants.js +28 -13
- package/package.json +1 -1
|
@@ -440,12 +440,15 @@ declare const _default: {
|
|
|
440
440
|
itemBadgeWithSlot: {
|
|
441
441
|
p: number;
|
|
442
442
|
my: number;
|
|
443
|
-
|
|
443
|
+
bg: string;
|
|
444
444
|
'& span': {
|
|
445
445
|
color: string;
|
|
446
446
|
mr: string;
|
|
447
447
|
lineHeight: string;
|
|
448
448
|
};
|
|
449
|
+
'& svg': {
|
|
450
|
+
fill: string;
|
|
451
|
+
};
|
|
449
452
|
maxHeight: string;
|
|
450
453
|
border: string;
|
|
451
454
|
borderColor: string;
|
|
@@ -540,6 +543,7 @@ declare const _default: {
|
|
|
540
543
|
};
|
|
541
544
|
};
|
|
542
545
|
selectedItemBadge: {
|
|
546
|
+
bg: string;
|
|
543
547
|
py: number;
|
|
544
548
|
pr: number;
|
|
545
549
|
my: number;
|
|
@@ -59,6 +59,7 @@ var multivaluesBadge = _objectSpread(_objectSpread({}, baseBadge), {}, {
|
|
|
59
59
|
}
|
|
60
60
|
});
|
|
61
61
|
var selectedItemBadge = _objectSpread(_objectSpread({}, multivaluesBadge), {}, {
|
|
62
|
+
bg: '#4462ED !important',
|
|
62
63
|
py: 3,
|
|
63
64
|
pr: 0,
|
|
64
65
|
my: 3
|
|
@@ -71,12 +72,15 @@ var readOnlyBadge = _objectSpread(_objectSpread({}, multivaluesBadge), {}, {
|
|
|
71
72
|
var itemBadgeWithSlot = _objectSpread(_objectSpread({}, readOnlyBadge), {}, {
|
|
72
73
|
p: 3,
|
|
73
74
|
my: 0,
|
|
74
|
-
|
|
75
|
+
bg: 'white !important',
|
|
75
76
|
'& span': {
|
|
76
77
|
color: 'text.primary',
|
|
77
78
|
mr: '2px',
|
|
78
79
|
lineHeight: '16px'
|
|
79
80
|
},
|
|
81
|
+
'& svg': {
|
|
82
|
+
fill: 'neutral.10'
|
|
83
|
+
},
|
|
80
84
|
maxHeight: '22px'
|
|
81
85
|
});
|
|
82
86
|
var environmentBadge = _objectSpread(_objectSpread({}, baseBadge), {}, {
|
|
@@ -114,7 +118,7 @@ var badgeDeleteButton = _objectSpread(_objectSpread({}, deleteButton), {}, {
|
|
|
114
118
|
}
|
|
115
119
|
},
|
|
116
120
|
'&.is-pressed': {
|
|
117
|
-
|
|
121
|
+
path: {
|
|
118
122
|
fill: 'white'
|
|
119
123
|
},
|
|
120
124
|
bg: '#4462ED !important'
|
|
@@ -360,12 +360,50 @@ declare const _default: {
|
|
|
360
360
|
position: string;
|
|
361
361
|
top: number;
|
|
362
362
|
right: number;
|
|
363
|
+
alignSelf: string;
|
|
363
364
|
width: string;
|
|
364
365
|
height: string;
|
|
365
366
|
justifyContent: string;
|
|
366
367
|
appearance: string;
|
|
367
368
|
alignItems: string;
|
|
369
|
+
display: string;
|
|
370
|
+
flexGrow: number;
|
|
371
|
+
flexShrink: number;
|
|
372
|
+
borderRadius: string;
|
|
373
|
+
cursor: string;
|
|
374
|
+
bg: string;
|
|
375
|
+
p: string;
|
|
376
|
+
path: {
|
|
377
|
+
fill: string;
|
|
378
|
+
};
|
|
379
|
+
outline: string;
|
|
380
|
+
'&.is-focused': {
|
|
381
|
+
outline: string;
|
|
382
|
+
outlineColor: string;
|
|
383
|
+
outlineOffset: string;
|
|
384
|
+
};
|
|
385
|
+
'&.is-hovered': {
|
|
386
|
+
bg: string;
|
|
387
|
+
boxShadow: string;
|
|
388
|
+
};
|
|
389
|
+
'&.is-pressed': {
|
|
390
|
+
path: {
|
|
391
|
+
fill: string;
|
|
392
|
+
};
|
|
393
|
+
bg: string;
|
|
394
|
+
boxShadow: string;
|
|
395
|
+
};
|
|
396
|
+
};
|
|
397
|
+
modalHeaderCloseButton: {
|
|
398
|
+
position: string;
|
|
399
|
+
top: number;
|
|
400
|
+
right: number;
|
|
368
401
|
alignSelf: string;
|
|
402
|
+
width: string;
|
|
403
|
+
height: string;
|
|
404
|
+
justifyContent: string;
|
|
405
|
+
appearance: string;
|
|
406
|
+
alignItems: string;
|
|
369
407
|
display: string;
|
|
370
408
|
flexGrow: number;
|
|
371
409
|
flexShrink: number;
|
|
@@ -50,7 +50,7 @@ var base = {
|
|
|
50
50
|
boxShadow: 'standard'
|
|
51
51
|
},
|
|
52
52
|
'&.is-pressed': {
|
|
53
|
-
|
|
53
|
+
path: {
|
|
54
54
|
fill: 'white'
|
|
55
55
|
},
|
|
56
56
|
bg: 'active',
|
|
@@ -79,7 +79,7 @@ var bidirectional = {
|
|
|
79
79
|
var inverted = _objectSpread(_objectSpread({}, base), {}, {
|
|
80
80
|
bg: 'active',
|
|
81
81
|
borderColor: 'active',
|
|
82
|
-
|
|
82
|
+
path: {
|
|
83
83
|
fill: 'white'
|
|
84
84
|
},
|
|
85
85
|
'&.is-hovered': {
|
|
@@ -117,29 +117,29 @@ var applicationPortal = _objectSpread(_objectSpread({}, base), {}, {
|
|
|
117
117
|
background: 'transparent',
|
|
118
118
|
'&.is-focused': _objectSpread({}, _Buttons.defaultFocus),
|
|
119
119
|
'&.is-hovered': {
|
|
120
|
-
|
|
120
|
+
path: {
|
|
121
121
|
fill: 'active'
|
|
122
122
|
}
|
|
123
123
|
},
|
|
124
124
|
'&.is-pressed': {
|
|
125
|
-
|
|
125
|
+
path: {
|
|
126
126
|
fill: 'active'
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
});
|
|
130
130
|
var applicationPortalPinned = _objectSpread(_objectSpread({}, base), {}, {
|
|
131
|
-
|
|
131
|
+
path: {
|
|
132
132
|
fill: 'success.bright'
|
|
133
133
|
},
|
|
134
134
|
background: 'transparent',
|
|
135
135
|
'&.is-focused': _objectSpread({}, _Buttons.defaultFocus),
|
|
136
136
|
'&.is-hovered': {
|
|
137
|
-
|
|
137
|
+
path: {
|
|
138
138
|
fill: 'active'
|
|
139
139
|
}
|
|
140
140
|
},
|
|
141
141
|
'&.is-pressed': {
|
|
142
|
-
|
|
142
|
+
path: {
|
|
143
143
|
fill: 'active'
|
|
144
144
|
}
|
|
145
145
|
}
|
|
@@ -196,6 +196,7 @@ var _default = {
|
|
|
196
196
|
inverted: inverted,
|
|
197
197
|
messageCloseButton: _objectSpread(_objectSpread({}, base), _Message.messageCloseButton),
|
|
198
198
|
modalCloseButton: _objectSpread(_objectSpread({}, base), _Modal.modalCloseButton),
|
|
199
|
+
modalHeaderCloseButton: _objectSpread(_objectSpread({}, base), _Modal.closeButton),
|
|
199
200
|
invertedBadgeDeleteButton: _Badge.invertedBadgeDeleteButton,
|
|
200
201
|
invertedSquare: invertedSquare,
|
|
201
202
|
square: square,
|
|
@@ -136,19 +136,23 @@ var Option = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
136
136
|
onPointerOver: setFocusOnHover
|
|
137
137
|
}, theseOptionProps, others, {
|
|
138
138
|
"aria-label": ariaLabel
|
|
139
|
-
}), isCondensed ? (0, _react2.jsx)(
|
|
139
|
+
}), isCondensed ? (0, _react2.jsx)(_Box["default"], {
|
|
140
|
+
isRow: true,
|
|
141
|
+
alignItems: "center",
|
|
142
|
+
flex: "1"
|
|
143
|
+
}, (0, _react2.jsx)(_Icon["default"], {
|
|
140
144
|
icon: isSelected ? CheckedIcon : UncheckedIcon,
|
|
141
145
|
color: "active",
|
|
142
146
|
size: "24px",
|
|
143
147
|
mr: "xs",
|
|
144
148
|
className: classNames,
|
|
145
149
|
variant: "listBox.checkboxIcon"
|
|
146
|
-
}) : isSelected && !isOnyx && shouldShowSelectedOption && (0, _react2.jsx)(_Icon["default"], {
|
|
150
|
+
}), rendered) : (0, _react2.jsx)(_react["default"].Fragment, null, isSelected && !isOnyx && shouldShowSelectedOption && (0, _react2.jsx)(_Icon["default"], {
|
|
147
151
|
icon: _CircleSmallIcon["default"],
|
|
148
152
|
title: {
|
|
149
153
|
name: 'Circle Small Icon'
|
|
150
154
|
}
|
|
151
|
-
}), rendered, isSelected && isOnyx && shouldShowSelectedOption && (0, _react2.jsx)(_Icon["default"], {
|
|
155
|
+
}), rendered), isSelected && isOnyx && shouldShowSelectedOption && (0, _react2.jsx)(_Icon["default"], {
|
|
152
156
|
icon: _CheckIcon["default"],
|
|
153
157
|
title: {
|
|
154
158
|
name: 'Check Icon'
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { StoryFn } from '@storybook/react';
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: StoryFn<{
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
}>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
5
|
+
_Object$defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = exports.Default = void 0;
|
|
9
|
+
var _react = _interopRequireDefault(require("react"));
|
|
10
|
+
var _storybookAddonDesigns = require("storybook-addon-designs");
|
|
11
|
+
var _storybookDocsLayout = _interopRequireDefault(require("../../../../.storybook/storybookDocsLayout"));
|
|
12
|
+
var _index = require("../../../index");
|
|
13
|
+
var _react2 = require("@emotion/react");
|
|
14
|
+
var _default = {
|
|
15
|
+
title: 'Components/Modal/Convenience/ModalBody',
|
|
16
|
+
component: _index.ModalBody,
|
|
17
|
+
decorators: [_storybookAddonDesigns.withDesign],
|
|
18
|
+
parameters: {
|
|
19
|
+
docs: {
|
|
20
|
+
page: function page() {
|
|
21
|
+
return (0, _react2.jsx)(_storybookDocsLayout["default"], null);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
exports["default"] = _default;
|
|
27
|
+
var Default = function Default() {
|
|
28
|
+
return (0, _react2.jsx)(_index.ModalBody, null, (0, _react2.jsx)(_index.Box, null, (0, _react2.jsx)(_index.Text, null, "Do you want to continue with this action that you\u2018re performing?")));
|
|
29
|
+
};
|
|
30
|
+
exports.Default = Default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { StoryFn } from '@storybook/react';
|
|
2
|
+
import { ModalFooterProps } from '../../../types/Modal';
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: StoryFn<ModalFooterProps>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
5
|
+
_Object$defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = exports.Default = void 0;
|
|
9
|
+
var _react = _interopRequireDefault(require("react"));
|
|
10
|
+
var _storybookAddonDesigns = require("storybook-addon-designs");
|
|
11
|
+
var _storybookDocsLayout = _interopRequireDefault(require("../../../../.storybook/storybookDocsLayout"));
|
|
12
|
+
var _hooks = require("../../../hooks");
|
|
13
|
+
var _index = require("../../../index");
|
|
14
|
+
var _react2 = require("@emotion/react");
|
|
15
|
+
var _default = {
|
|
16
|
+
title: 'Components/Modal/Convenience/ModalFooter',
|
|
17
|
+
component: _index.ModalFooter,
|
|
18
|
+
decorators: [_storybookAddonDesigns.withDesign],
|
|
19
|
+
parameters: {
|
|
20
|
+
docs: {
|
|
21
|
+
page: function page() {
|
|
22
|
+
return (0, _react2.jsx)(_storybookDocsLayout["default"], null);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
exports["default"] = _default;
|
|
28
|
+
var Default = function Default() {
|
|
29
|
+
var state = (0, _hooks.useModalState)();
|
|
30
|
+
return (0, _react2.jsx)(_index.ModalFooter, {
|
|
31
|
+
onSubmit: state.close,
|
|
32
|
+
onCancel: state.close
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
exports.Default = Default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { StoryFn } from '@storybook/react';
|
|
2
|
+
import { ModalHeaderProps } from '../../../types/Modal';
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: StoryFn<ModalHeaderProps>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
5
|
+
_Object$defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = exports.Default = void 0;
|
|
9
|
+
var _react = _interopRequireDefault(require("react"));
|
|
10
|
+
var _storybookAddonDesigns = require("storybook-addon-designs");
|
|
11
|
+
var _storybookDocsLayout = _interopRequireDefault(require("../../../../.storybook/storybookDocsLayout"));
|
|
12
|
+
var _hooks = require("../../../hooks");
|
|
13
|
+
var _index = require("../../../index");
|
|
14
|
+
var _react2 = require("@emotion/react");
|
|
15
|
+
var _default = {
|
|
16
|
+
title: 'Components/Modal/Convenience/ModalHeader',
|
|
17
|
+
component: _index.ModalHeader,
|
|
18
|
+
decorators: [_storybookAddonDesigns.withDesign],
|
|
19
|
+
parameters: {
|
|
20
|
+
docs: {
|
|
21
|
+
page: function page() {
|
|
22
|
+
return (0, _react2.jsx)(_storybookDocsLayout["default"], null);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
exports["default"] = _default;
|
|
28
|
+
var Default = function Default() {
|
|
29
|
+
var state = (0, _hooks.useModalState)();
|
|
30
|
+
return (0, _react2.jsx)(_index.ModalHeader, {
|
|
31
|
+
hasCloseButton: true,
|
|
32
|
+
onClose: state.close,
|
|
33
|
+
title: "Continue"
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
exports.Default = Default;
|
|
@@ -15,7 +15,9 @@ _Object$defineProperty(exports, "__esModule", {
|
|
|
15
15
|
value: true
|
|
16
16
|
});
|
|
17
17
|
exports["default"] = void 0;
|
|
18
|
+
var _slice = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/slice"));
|
|
18
19
|
var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
|
|
20
|
+
var _toArray2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/toArray"));
|
|
19
21
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
|
|
20
22
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/objectWithoutProperties"));
|
|
21
23
|
var _react = _interopRequireWildcard(require("react"));
|
|
@@ -27,6 +29,7 @@ var _Box = _interopRequireDefault(require("../Box"));
|
|
|
27
29
|
var _Icon = _interopRequireDefault(require("../Icon"));
|
|
28
30
|
var _IconButton = _interopRequireDefault(require("../IconButton"));
|
|
29
31
|
var _Text = _interopRequireDefault(require("../Text"));
|
|
32
|
+
var _ModalHeader = _interopRequireDefault(require("./ModalHeader"));
|
|
30
33
|
var _react2 = require("@emotion/react");
|
|
31
34
|
var _excluded = ["className", "closeButton", "hasAutoFocus", "hasCloseButton", "id", "isClosedOnBlur", "isDismissable", "isKeyboardDismissDisabled", "isOpen", "role", "size", "state", "title", "onClose", "shouldCloseOnInteractOutside", "children", "contentProps", "containerProps", "headerContainerProps"];
|
|
32
35
|
function _getRequireWildcardCache(nodeInterop) { if (typeof _WeakMap !== "function") return null; var cacheBabelInterop = new _WeakMap(); var cacheNodeInterop = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -95,7 +98,12 @@ var Modal = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
95
98
|
var isOpenNoTransition = (state === null || state === void 0 ? void 0 : state.isTransitioning) === undefined && isOpen === true;
|
|
96
99
|
var _useStatusClasses = (0, _hooks.useStatusClasses)(className, (_useStatusClasses2 = {}, (0, _defineProperty2["default"])(_useStatusClasses2, "is-".concat(size || 'custom'), size), (0, _defineProperty2["default"])(_useStatusClasses2, "isOpen", isOpen), (0, _defineProperty2["default"])(_useStatusClasses2, "isTransitioning", state === null || state === void 0 ? void 0 : state.isTransitioning), (0, _defineProperty2["default"])(_useStatusClasses2, "isOpenNoTransition", isOpenNoTransition), _useStatusClasses2)),
|
|
97
100
|
classNames = _useStatusClasses.classNames;
|
|
98
|
-
var
|
|
101
|
+
var _React$Children$toArr = _react["default"].Children.toArray(children),
|
|
102
|
+
_React$Children$toArr2 = (0, _toArray2["default"])(_React$Children$toArr),
|
|
103
|
+
header = _React$Children$toArr2[0],
|
|
104
|
+
siblings = (0, _slice["default"])(_React$Children$toArr2).call(_React$Children$toArr2, 1);
|
|
105
|
+
var hasHeaderContent = /*#__PURE__*/_react["default"].isValidElement(header) && header.type === _ModalHeader["default"];
|
|
106
|
+
var titleContent = !hasHeaderContent && title && (isOnyx ? (0, _react2.jsx)(_Box["default"], {
|
|
99
107
|
variant: "modal.header"
|
|
100
108
|
}, (0, _react2.jsx)(_Text["default"], (0, _extends2["default"])({}, titleProps, {
|
|
101
109
|
variant: "modalTitle",
|
|
@@ -118,7 +126,7 @@ var Modal = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
118
126
|
}, propsContentProps, dialogProps, modalProps, {
|
|
119
127
|
ref: modalRef,
|
|
120
128
|
"aria-modal": true
|
|
121
|
-
}), (0, _react2.jsx)(_Box["default"], (0, _extends2["default"])({
|
|
129
|
+
}), titleContent && (0, _react2.jsx)(_Box["default"], (0, _extends2["default"])({
|
|
122
130
|
variant: "modal.headingContainer"
|
|
123
131
|
}, headerContainerProps), hasCloseButton && (closeButton !== null && closeButton !== void 0 ? closeButton : (0, _react2.jsx)(_IconButton["default"], {
|
|
124
132
|
"aria-label": "Close modal window",
|
|
@@ -130,8 +138,9 @@ var Modal = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
130
138
|
title: {
|
|
131
139
|
name: 'Close Icon'
|
|
132
140
|
}
|
|
133
|
-
}))), titleContent), (0, _react2.jsx)(_Box["default"], {
|
|
134
|
-
pt: "md"
|
|
141
|
+
}))), titleContent), isOnyx ? children : (0, _react2.jsx)(_Box["default"], {
|
|
142
|
+
pt: "md",
|
|
143
|
+
px: "lg"
|
|
135
144
|
}, children)))));
|
|
136
145
|
});
|
|
137
146
|
Modal.defaultProps = {
|
|
@@ -4,5 +4,6 @@ declare const _default: import("@storybook/types").ComponentAnnotations<import("
|
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const Default: StoryFn<ModalProps>;
|
|
6
6
|
export declare const LargeContent: StoryFn<ModalProps>;
|
|
7
|
+
export declare const LargeContentWithScroll: StoryFn<ModalProps>;
|
|
7
8
|
export declare const WithInputField: StoryFn<ModalProps>;
|
|
8
9
|
export declare const WithPopoverMenu: StoryFn<ModalProps>;
|
|
@@ -8,7 +8,7 @@ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequ
|
|
|
8
8
|
_Object$defineProperty(exports, "__esModule", {
|
|
9
9
|
value: true
|
|
10
10
|
});
|
|
11
|
-
exports["default"] = exports.WithPopoverMenu = exports.WithInputField = exports.LargeContent = exports.Default = void 0;
|
|
11
|
+
exports["default"] = exports.WithPopoverMenu = exports.WithInputField = exports.LargeContentWithScroll = exports.LargeContent = exports.Default = void 0;
|
|
12
12
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/slicedToArray"));
|
|
13
13
|
var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
|
|
14
14
|
var _react = _interopRequireWildcard(require("react"));
|
|
@@ -103,21 +103,6 @@ var _default = {
|
|
|
103
103
|
exports["default"] = _default;
|
|
104
104
|
var Default = function Default(args) {
|
|
105
105
|
var state = (0, _hooks.useModalState)();
|
|
106
|
-
var ModalBodyContent = (0, _react2.jsx)(_index.Box, null, (0, _react2.jsx)(_index.Text, null, "Do you want to continue with this action that you\u2018re performing?"), (0, _react2.jsx)(_index.Box, {
|
|
107
|
-
isRow: true,
|
|
108
|
-
mr: "auto",
|
|
109
|
-
width: "100%",
|
|
110
|
-
variant: "modal.buttonsContainer"
|
|
111
|
-
}, (0, _react2.jsx)(_index.Button, {
|
|
112
|
-
variant: "primary",
|
|
113
|
-
onPress: state.close,
|
|
114
|
-
mr: "md",
|
|
115
|
-
"aria-label": "Continue"
|
|
116
|
-
}, "Continue"), (0, _react2.jsx)(_index.Button, {
|
|
117
|
-
variant: "link",
|
|
118
|
-
onPress: state.close,
|
|
119
|
-
"aria-label": "Cancel"
|
|
120
|
-
}, "Cancel")));
|
|
121
106
|
return (
|
|
122
107
|
// Application must be wrapped in an OverlayProvider so that it can be hidden from screen
|
|
123
108
|
// readers when an overlay opens.
|
|
@@ -127,10 +112,16 @@ var Default = function Default(args) {
|
|
|
127
112
|
tabIndex: state.isOpen ? -1 : 0
|
|
128
113
|
}, "Open Modal"), (state.isOpen || state.isTransitioning) && (0, _react2.jsx)(_index.Modal, (0, _extends2["default"])({}, args, {
|
|
129
114
|
isOpen: state.isOpen,
|
|
115
|
+
state: state
|
|
116
|
+
}), (0, _react2.jsx)(_index.ModalHeader, {
|
|
117
|
+
hasCloseButton: true,
|
|
130
118
|
onClose: state.close,
|
|
131
|
-
state: state,
|
|
132
119
|
title: "Continue"
|
|
133
|
-
}),
|
|
120
|
+
}), (0, _react2.jsx)(_index.ModalBody, null, (0, _react2.jsx)(_index.Box, null, (0, _react2.jsx)(_index.Text, null, "Do you want to continue with this action that you\u2018re performing?"))), (0, _react2.jsx)(_index.ModalFooter, {
|
|
121
|
+
onSubmit: state.close,
|
|
122
|
+
onCancel: state.close,
|
|
123
|
+
primaryButtonText: "Continue"
|
|
124
|
+
})))
|
|
134
125
|
);
|
|
135
126
|
};
|
|
136
127
|
exports.Default = Default;
|
|
@@ -151,28 +142,55 @@ var LargeContent = function LargeContent(args) {
|
|
|
151
142
|
tabIndex: state.isOpen ? -1 : 0
|
|
152
143
|
}, "Open Modal"), state.isOpen && (0, _react2.jsx)(_index.Modal, (0, _extends2["default"])({}, args, {
|
|
153
144
|
isOpen: state.isOpen,
|
|
145
|
+
onClose: state.close
|
|
146
|
+
}), (0, _react2.jsx)(_index.ModalHeader, {
|
|
147
|
+
hasCloseButton: true,
|
|
154
148
|
onClose: state.close,
|
|
155
149
|
title: "Lorem Ipsum"
|
|
156
|
-
}), (0, _react2.jsx)(_index.Box, {
|
|
150
|
+
}), (0, _react2.jsx)(_index.ModalBody, null, (0, _react2.jsx)(_index.Box, {
|
|
157
151
|
gap: "lg"
|
|
158
|
-
}, (0, _react2.jsx)(_index.Text, null, "Lorem ipsum dolor sit amet, consectetur adipiscing elit."), (0, _react2.jsx)(_index.Text, null, "Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."), (0, _react2.jsx)(_index.Text, null, "Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris."), (0, _react2.jsx)(_index.Text, null, "Nisi ut aliquip ex ea commodo consequat."), (0, _react2.jsx)(_index.Text, null, "Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore."), (0, _react2.jsx)(_index.Text, null, "Eu fugiat nulla pariatur."), (0, _react2.jsx)(_index.Text, null, "Excepteur sint occaecat cupidatat non proident."), (0, _react2.jsx)(_index.Text, null, "Sunt in culpa qui officia deserunt mollit anim id est laborum."), (0, _react2.jsx)(_index.Text, null, "Lorem ipsum dolor sit amet, consectetur adipiscing elit."), (0, _react2.jsx)(_index.Text, null, "Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."), (0, _react2.jsx)(_index.Text, null, "Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris."), (0, _react2.jsx)(_index.Text, null, "Nisi ut aliquip ex ea commodo consequat."), (0, _react2.jsx)(_index.Text, null, "Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore."), (0, _react2.jsx)(_index.Text, null, "Eu fugiat nulla pariatur."), (0, _react2.jsx)(_index.Text, null, "Excepteur sint occaecat cupidatat non proident."), (0, _react2.jsx)(_index.Text, null, "Sunt in culpa qui officia deserunt mollit anim id est laborum."), (0, _react2.jsx)(_index.Text, null, "Lorem ipsum dolor sit amet, consectetur adipiscing elit."), (0, _react2.jsx)(_index.Text, null, "Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."), (0, _react2.jsx)(_index.Text, null, "Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris."), (0, _react2.jsx)(_index.Text, null, "Nisi ut aliquip ex ea commodo consequat."), (0, _react2.jsx)(_index.Text, null, "Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore.")), (0, _react2.jsx)(_index.
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
}
|
|
162
|
-
variant: "primary",
|
|
163
|
-
onPress: state.close,
|
|
164
|
-
mr: "md",
|
|
165
|
-
"aria-label": "Continue"
|
|
166
|
-
}, "Continue"), (0, _react2.jsx)(_index.Button, {
|
|
167
|
-
variant: "link",
|
|
168
|
-
onPress: state.close,
|
|
169
|
-
"aria-label": "Cancel"
|
|
170
|
-
}, "Cancel"))))
|
|
152
|
+
}, (0, _react2.jsx)(_index.Text, null, "Lorem ipsum dolor sit amet, consectetur adipiscing elit."), (0, _react2.jsx)(_index.Text, null, "Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."), (0, _react2.jsx)(_index.Text, null, "Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris."), (0, _react2.jsx)(_index.Text, null, "Nisi ut aliquip ex ea commodo consequat."), (0, _react2.jsx)(_index.Text, null, "Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore."), (0, _react2.jsx)(_index.Text, null, "Eu fugiat nulla pariatur."), (0, _react2.jsx)(_index.Text, null, "Excepteur sint occaecat cupidatat non proident."), (0, _react2.jsx)(_index.Text, null, "Sunt in culpa qui officia deserunt mollit anim id est laborum."), (0, _react2.jsx)(_index.Text, null, "Lorem ipsum dolor sit amet, consectetur adipiscing elit."), (0, _react2.jsx)(_index.Text, null, "Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."), (0, _react2.jsx)(_index.Text, null, "Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris."), (0, _react2.jsx)(_index.Text, null, "Nisi ut aliquip ex ea commodo consequat."), (0, _react2.jsx)(_index.Text, null, "Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore."), (0, _react2.jsx)(_index.Text, null, "Eu fugiat nulla pariatur."), (0, _react2.jsx)(_index.Text, null, "Excepteur sint occaecat cupidatat non proident."), (0, _react2.jsx)(_index.Text, null, "Sunt in culpa qui officia deserunt mollit anim id est laborum."), (0, _react2.jsx)(_index.Text, null, "Lorem ipsum dolor sit amet, consectetur adipiscing elit."), (0, _react2.jsx)(_index.Text, null, "Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."), (0, _react2.jsx)(_index.Text, null, "Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris."), (0, _react2.jsx)(_index.Text, null, "Nisi ut aliquip ex ea commodo consequat."), (0, _react2.jsx)(_index.Text, null, "Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore."))), (0, _react2.jsx)(_index.ModalFooter, {
|
|
153
|
+
onSubmit: state.close,
|
|
154
|
+
onCancel: state.close
|
|
155
|
+
})))
|
|
171
156
|
);
|
|
172
157
|
};
|
|
173
158
|
exports.LargeContent = LargeContent;
|
|
159
|
+
var LargeContentWithScroll = function LargeContentWithScroll(args) {
|
|
160
|
+
var state = (0, _hooks.useModalState)();
|
|
161
|
+
return (
|
|
162
|
+
// Application must be wrapped in an OverlayProvider so that it can be hidden from screen
|
|
163
|
+
// readers when an overlay opens.
|
|
164
|
+
(0, _react2.jsx)(_index.OverlayProvider, null, (0, _react2.jsx)(_index.Button, {
|
|
165
|
+
onPress: state.open,
|
|
166
|
+
"aria-label": "Open modal",
|
|
167
|
+
tabIndex: state.isOpen ? -1 : 0
|
|
168
|
+
}, "Open Modal"), state.isOpen && (0, _react2.jsx)(_index.Modal, (0, _extends2["default"])({}, args, {
|
|
169
|
+
isOpen: state.isOpen,
|
|
170
|
+
onClose: state.close
|
|
171
|
+
}), (0, _react2.jsx)(_index.ModalHeader, {
|
|
172
|
+
hasCloseButton: true,
|
|
173
|
+
onClose: state.close,
|
|
174
|
+
title: "Lorem Ipsum"
|
|
175
|
+
}), (0, _react2.jsx)(_index.ModalBody, {
|
|
176
|
+
isScrollable: true,
|
|
177
|
+
scrollProps: {
|
|
178
|
+
maxHeight: '400px'
|
|
179
|
+
}
|
|
180
|
+
}, (0, _react2.jsx)(_index.Box, {
|
|
181
|
+
gap: "lg",
|
|
182
|
+
pr: "lg"
|
|
183
|
+
}, (0, _react2.jsx)(_index.Text, null, "Lorem ipsum dolor sit amet, consectetur adipiscing elit."), (0, _react2.jsx)(_index.Text, null, "Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."), (0, _react2.jsx)(_index.Text, null, "Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris."), (0, _react2.jsx)(_index.Text, null, "Nisi ut aliquip ex ea commodo consequat."), (0, _react2.jsx)(_index.Text, null, "Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore."), (0, _react2.jsx)(_index.Text, null, "Eu fugiat nulla pariatur."), (0, _react2.jsx)(_index.Text, null, "Excepteur sint occaecat cupidatat non proident."), (0, _react2.jsx)(_index.Text, null, "Sunt in culpa qui officia deserunt mollit anim id est laborum."), (0, _react2.jsx)(_index.Text, null, "Lorem ipsum dolor sit amet, consectetur adipiscing elit."), (0, _react2.jsx)(_index.Text, null, "Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."), (0, _react2.jsx)(_index.Text, null, "Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris."), (0, _react2.jsx)(_index.Text, null, "Nisi ut aliquip ex ea commodo consequat."), (0, _react2.jsx)(_index.Text, null, "Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore."), (0, _react2.jsx)(_index.Text, null, "Eu fugiat nulla pariatur."), (0, _react2.jsx)(_index.Text, null, "Excepteur sint occaecat cupidatat non proident."), (0, _react2.jsx)(_index.Text, null, "Sunt in culpa qui officia deserunt mollit anim id est laborum."), (0, _react2.jsx)(_index.Text, null, "Lorem ipsum dolor sit amet, consectetur adipiscing elit."), (0, _react2.jsx)(_index.Text, null, "Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."), (0, _react2.jsx)(_index.Text, null, "Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris."), (0, _react2.jsx)(_index.Text, null, "Nisi ut aliquip ex ea commodo consequat."), (0, _react2.jsx)(_index.Text, null, "Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore."))), (0, _react2.jsx)(_index.ModalFooter, {
|
|
184
|
+
onSubmit: state.close,
|
|
185
|
+
onCancel: state.close
|
|
186
|
+
})))
|
|
187
|
+
);
|
|
188
|
+
};
|
|
189
|
+
exports.LargeContentWithScroll = LargeContentWithScroll;
|
|
174
190
|
var WithInputField = function WithInputField() {
|
|
175
191
|
var state = (0, _hooks.useModalState)();
|
|
192
|
+
var _useGetTheme = (0, _hooks.useGetTheme)(),
|
|
193
|
+
isOnyx = _useGetTheme.themeState.isOnyx;
|
|
176
194
|
var _useState = (0, _react.useState)(''),
|
|
177
195
|
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
178
196
|
value = _useState2[0],
|
|
@@ -193,8 +211,9 @@ var WithInputField = function WithInputField() {
|
|
|
193
211
|
}, "Open Modal"), state.isOpen && (0, _react2.jsx)(_index.Modal, {
|
|
194
212
|
isOpen: state.isOpen,
|
|
195
213
|
onClose: state.close
|
|
196
|
-
}, (0, _react2.jsx)(_index.Box, {
|
|
197
|
-
gap: "lg"
|
|
214
|
+
}, (0, _react2.jsx)(_index.ModalBody, null, (0, _react2.jsx)(_index.Box, {
|
|
215
|
+
gap: "lg",
|
|
216
|
+
pt: isOnyx ? '' : 'lg'
|
|
198
217
|
}, (0, _react2.jsx)(_index.Text, null, "Lorem ipsum dolor sit amet consectetur"), (0, _react2.jsx)(_index.SelectField, {
|
|
199
218
|
label: "Select an option"
|
|
200
219
|
}, (0, _react2.jsx)(_index.Item, null, "Red"), (0, _react2.jsx)(_index.Item, null, "Green"), (0, _react2.jsx)(_index.Item, null, "Blue")), (0, _react2.jsx)(_index.RadioGroupField, {
|
|
@@ -233,19 +252,10 @@ var WithInputField = function WithInputField() {
|
|
|
233
252
|
key: item.key,
|
|
234
253
|
textValue: item.name
|
|
235
254
|
}, item.name);
|
|
236
|
-
}), (0, _react2.jsx)(_index.
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
}
|
|
240
|
-
variant: "primary",
|
|
241
|
-
onPress: state.close,
|
|
242
|
-
mr: "md",
|
|
243
|
-
"aria-label": "Continue"
|
|
244
|
-
}, "Continue"), (0, _react2.jsx)(_index.Button, {
|
|
245
|
-
variant: "link",
|
|
246
|
-
onPress: state.close,
|
|
247
|
-
"aria-label": "Cancel"
|
|
248
|
-
}, "Cancel")))));
|
|
255
|
+
}))), (0, _react2.jsx)(_index.ModalFooter, {
|
|
256
|
+
onSubmit: state.close,
|
|
257
|
+
onCancel: state.close
|
|
258
|
+
})));
|
|
249
259
|
};
|
|
250
260
|
exports.WithInputField = WithInputField;
|
|
251
261
|
var WithPopoverMenu = function WithPopoverMenu() {
|
|
@@ -1,7 +1,16 @@
|
|
|
1
|
+
export declare const closeButton: {
|
|
2
|
+
position: string;
|
|
3
|
+
top: number;
|
|
4
|
+
right: number;
|
|
5
|
+
alignSelf: string;
|
|
6
|
+
width: string;
|
|
7
|
+
height: string;
|
|
8
|
+
};
|
|
1
9
|
export declare const modalCloseButton: {
|
|
2
10
|
position: string;
|
|
3
11
|
top: number;
|
|
4
12
|
right: number;
|
|
13
|
+
alignSelf: string;
|
|
5
14
|
width: string;
|
|
6
15
|
height: string;
|
|
7
16
|
};
|
|
@@ -19,21 +28,15 @@ declare const _default: {
|
|
|
19
28
|
background: string;
|
|
20
29
|
display: string;
|
|
21
30
|
alignItems: string;
|
|
22
|
-
|
|
31
|
+
overflowY: string;
|
|
23
32
|
};
|
|
24
33
|
content: {
|
|
25
|
-
position: string;
|
|
26
34
|
outline: string;
|
|
27
35
|
background: string;
|
|
28
36
|
color: string;
|
|
29
|
-
pt: string;
|
|
30
|
-
pr: string;
|
|
31
|
-
pb: string;
|
|
32
|
-
pl: string;
|
|
33
37
|
boxShadow: string;
|
|
34
38
|
borderRadius: number;
|
|
35
|
-
|
|
36
|
-
overflowY: string;
|
|
39
|
+
margin: string;
|
|
37
40
|
'&.is-extra-small': {
|
|
38
41
|
maxWidth: string;
|
|
39
42
|
width: string;
|
|
@@ -57,26 +60,12 @@ declare const _default: {
|
|
|
57
60
|
};
|
|
58
61
|
headingContainer: {
|
|
59
62
|
position: string;
|
|
60
|
-
top: string;
|
|
61
|
-
mt: string;
|
|
62
|
-
mb: string;
|
|
63
|
-
mr: string;
|
|
64
|
-
pt: string;
|
|
65
|
-
pr: string;
|
|
66
|
-
pb: string;
|
|
67
63
|
backgroundColor: string;
|
|
64
|
+
px: string;
|
|
65
|
+
py: string;
|
|
68
66
|
};
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
bottom: string;
|
|
72
|
-
p: number;
|
|
73
|
-
mb: string;
|
|
74
|
-
pb: string;
|
|
75
|
-
pt: string;
|
|
76
|
-
background: string;
|
|
77
|
-
'& > button': {
|
|
78
|
-
flexGrow: number;
|
|
79
|
-
};
|
|
67
|
+
bodyContainer: {
|
|
68
|
+
px: string;
|
|
80
69
|
};
|
|
81
70
|
title: {
|
|
82
71
|
mr: string;
|
|
@@ -94,6 +83,34 @@ declare const _default: {
|
|
|
94
83
|
position: string;
|
|
95
84
|
top: number;
|
|
96
85
|
right: number;
|
|
86
|
+
alignSelf: string;
|
|
87
|
+
width: string;
|
|
88
|
+
height: string;
|
|
89
|
+
};
|
|
90
|
+
buttonsContainer: {
|
|
91
|
+
p: number;
|
|
92
|
+
pb: string;
|
|
93
|
+
pt: string;
|
|
94
|
+
background: string;
|
|
95
|
+
};
|
|
96
|
+
header: {
|
|
97
|
+
position: string;
|
|
98
|
+
backgroundColor: string;
|
|
99
|
+
pb: string;
|
|
100
|
+
};
|
|
101
|
+
body: {};
|
|
102
|
+
footer: {
|
|
103
|
+
py: string;
|
|
104
|
+
background: string;
|
|
105
|
+
'& > button': {
|
|
106
|
+
flexGrow: number;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
closeButton: {
|
|
110
|
+
position: string;
|
|
111
|
+
top: number;
|
|
112
|
+
right: number;
|
|
113
|
+
alignSelf: string;
|
|
97
114
|
width: string;
|
|
98
115
|
height: string;
|
|
99
116
|
};
|