@transferwise/components 46.114.1 → 46.115.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/build/common/closeButton/CloseButton.messages.js +2 -2
- package/build/common/closeButton/CloseButton.messages.js.map +1 -1
- package/build/common/closeButton/CloseButton.messages.mjs +2 -2
- package/build/common/closeButton/CloseButton.messages.mjs.map +1 -1
- package/build/common/closeButton/CloseButton.mjs +2 -2
- package/build/common/closeButton/CloseButton.mjs.map +1 -1
- package/build/drawer/Drawer.js +18 -9
- package/build/drawer/Drawer.js.map +1 -1
- package/build/drawer/Drawer.mjs +18 -9
- package/build/drawer/Drawer.mjs.map +1 -1
- package/build/main.css +17 -127
- package/build/modal/Modal.js +20 -21
- package/build/modal/Modal.js.map +1 -1
- package/build/modal/Modal.mjs +20 -21
- package/build/modal/Modal.mjs.map +1 -1
- package/build/styles/drawer/Drawer.css +11 -58
- package/build/styles/main.css +17 -127
- package/build/styles/modal/Modal.css +6 -69
- package/build/types/drawer/Drawer.d.ts.map +1 -1
- package/build/types/modal/Modal.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/accordion/Accordion.story.tsx +1 -1
- package/src/avatarLayout/AvatarLayout.story.tsx +1 -0
- package/src/avatarView/AvatarView.story.tsx +1 -0
- package/src/display/Display.story.tsx +1 -0
- package/src/drawer/Drawer.css +11 -58
- package/src/drawer/Drawer.less +14 -70
- package/src/drawer/Drawer.story.tsx +158 -100
- package/src/drawer/Drawer.tsx +26 -7
- package/src/iconButton/IconButton.story.tsx +1 -0
- package/src/main.css +17 -127
- package/src/modal/Modal.css +6 -69
- package/src/modal/Modal.less +6 -76
- package/src/modal/Modal.tsx +23 -23
package/build/modal/Modal.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { clsx } from 'clsx';
|
|
2
2
|
import { useRef, useId, useContext } from 'react';
|
|
3
3
|
import { CSSTransition } from 'react-transition-group';
|
|
4
|
+
import { useIntl } from 'react-intl';
|
|
4
5
|
import '../common/theme.mjs';
|
|
5
6
|
import '../common/direction.mjs';
|
|
6
7
|
import '../common/propsValues/control.mjs';
|
|
@@ -20,7 +21,9 @@ import '../common/propsValues/variant.mjs';
|
|
|
20
21
|
import { Scroll } from '../common/propsValues/scroll.mjs';
|
|
21
22
|
import '../common/propsValues/markdownNodeType.mjs';
|
|
22
23
|
import '../common/fileType.mjs';
|
|
23
|
-
import {
|
|
24
|
+
import { Cross } from '@transferwise/icons';
|
|
25
|
+
import closeBtnMessages from '../common/closeButton/CloseButton.messages.mjs';
|
|
26
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
24
27
|
import '@transferwise/neptune-validation';
|
|
25
28
|
import '../provider/direction/DirectionProvider.mjs';
|
|
26
29
|
import { useLayout } from '../common/hooks/useLayout/useLayout.mjs';
|
|
@@ -28,7 +31,7 @@ import Dimmer from '../dimmer/Dimmer.mjs';
|
|
|
28
31
|
import Drawer from '../drawer/Drawer.mjs';
|
|
29
32
|
import { OverlayIdContext } from '../provider/overlay/OverlayIdProvider.mjs';
|
|
30
33
|
import Title from '../title/Title.mjs';
|
|
31
|
-
import
|
|
34
|
+
import IconButton from '../iconButton/IconButton.mjs';
|
|
32
35
|
|
|
33
36
|
const TRANSITION_DURATION_IN_MILLISECONDS = 150;
|
|
34
37
|
const Modal = ({
|
|
@@ -45,13 +48,10 @@ const Modal = ({
|
|
|
45
48
|
disableDimmerClickToClose = false,
|
|
46
49
|
...otherProps
|
|
47
50
|
}) => {
|
|
48
|
-
const
|
|
51
|
+
const intl = useIntl();
|
|
49
52
|
const {
|
|
50
53
|
isMedium
|
|
51
54
|
} = useLayout();
|
|
52
|
-
// These should be replaced with props in breaking change.
|
|
53
|
-
const isCompact = checkSpecialClasses('compact');
|
|
54
|
-
const noDivider = checkSpecialClasses('no-divider');
|
|
55
55
|
const contentReference = useRef(null);
|
|
56
56
|
const titleId = useId();
|
|
57
57
|
const overlayId = useContext(OverlayIdContext);
|
|
@@ -92,32 +92,31 @@ const Modal = ({
|
|
|
92
92
|
[`tw-modal-${size}`]: size
|
|
93
93
|
}),
|
|
94
94
|
children: /*#__PURE__*/jsxs("div", {
|
|
95
|
-
className: clsx('tw-modal-content', 'd-flex', 'flex-column', 'justify-content-between',
|
|
96
|
-
'tw-modal-compact': isCompact,
|
|
97
|
-
'tw-modal-no-title': !title
|
|
98
|
-
}),
|
|
95
|
+
className: clsx('tw-modal-content', 'd-flex', 'flex-column', 'justify-content-between'),
|
|
99
96
|
children: [/*#__PURE__*/jsxs("div", {
|
|
100
|
-
className: clsx('tw-modal-header', 'd-flex', 'align-items-center', 'justify-content-between', 'flex-wrap',
|
|
101
|
-
|
|
102
|
-
}),
|
|
103
|
-
children: [/*#__PURE__*/jsx(Title, {
|
|
97
|
+
className: clsx('tw-modal-header', 'd-flex', 'align-items-center', title ? 'justify-content-between' : 'justify-content-end', 'flex-wrap'),
|
|
98
|
+
children: [title && /*#__PURE__*/jsx(Title, {
|
|
104
99
|
id: titleId,
|
|
105
|
-
type: Typography.
|
|
100
|
+
type: Typography.TITLE_SUBSECTION,
|
|
106
101
|
className: "tw-modal-title",
|
|
107
102
|
children: title
|
|
108
|
-
}), /*#__PURE__*/jsx(
|
|
109
|
-
|
|
103
|
+
}), /*#__PURE__*/jsx(IconButton, {
|
|
104
|
+
size: 40,
|
|
105
|
+
priority: "tertiary",
|
|
106
|
+
"aria-label": intl.formatMessage(closeBtnMessages.ariaLabel),
|
|
107
|
+
onClick: onClose,
|
|
108
|
+
children: /*#__PURE__*/jsx(Cross, {})
|
|
110
109
|
})]
|
|
111
110
|
}), /*#__PURE__*/jsx("div", {
|
|
112
111
|
className: clsx('tw-modal-body', {
|
|
113
112
|
'tw-modal-body--scrollable': scroll === Scroll.CONTENT
|
|
114
113
|
}),
|
|
115
114
|
children: body
|
|
116
|
-
}), footer
|
|
117
|
-
className: clsx('tw-modal-footer', 'd-flex', 'align-items-center', 'flex-wrap',
|
|
118
|
-
'modal--withoutborder': noDivider
|
|
119
|
-
}),
|
|
115
|
+
}), footer ? /*#__PURE__*/jsx("div", {
|
|
116
|
+
className: clsx('tw-modal-footer', 'd-flex', 'align-items-center', 'flex-wrap'),
|
|
120
117
|
children: footer
|
|
118
|
+
}) : /*#__PURE__*/jsx("div", {
|
|
119
|
+
className: "m-t-3"
|
|
121
120
|
})]
|
|
122
121
|
})
|
|
123
122
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.mjs","sources":["../../src/modal/Modal.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport { ReactNode, useContext, useId, useRef } from 'react';\nimport { CSSTransition } from 'react-transition-group';\n\nimport {\n Size,\n Position,\n PositionTop,\n PositionCenter,\n Scroll,\n CommonProps,\n SizeSmall,\n SizeMedium,\n SizeLarge,\n SizeExtraLarge,\n ScrollContent,\n ScrollViewport,\n Typography,\n} from '../common';\nimport {
|
|
1
|
+
{"version":3,"file":"Modal.mjs","sources":["../../src/modal/Modal.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport { ReactNode, useContext, useId, useRef } from 'react';\nimport { CSSTransition } from 'react-transition-group';\nimport { useIntl } from 'react-intl';\n\nimport {\n Size,\n Position,\n PositionTop,\n PositionCenter,\n Scroll,\n CommonProps,\n SizeSmall,\n SizeMedium,\n SizeLarge,\n SizeExtraLarge,\n ScrollContent,\n ScrollViewport,\n Typography,\n} from '../common';\nimport { useLayout } from '../common/hooks';\nimport Dimmer from '../dimmer';\nimport Drawer from '../drawer';\nimport { OverlayIdContext } from '../provider/overlay/OverlayIdProvider';\nimport Title from '../title/Title';\nimport { Cross } from '@transferwise/icons';\nimport IconButton from '../iconButton';\nimport closeBtnMessages from '../common/closeButton/CloseButton.messages';\n\nconst TRANSITION_DURATION_IN_MILLISECONDS = 150;\n\nexport type ModalProps = CommonProps & {\n title?: ReactNode;\n body: ReactNode;\n footer?: ReactNode;\n size?: SizeSmall | SizeMedium | SizeLarge | SizeExtraLarge;\n onClose: () => void;\n onUnmount?: () => void;\n open: boolean;\n scroll?: ScrollContent | ScrollViewport;\n position?: PositionTop | PositionCenter;\n disableDimmerClickToClose?: boolean;\n};\n\nconst Modal = ({\n title = null,\n body,\n footer = null,\n onClose,\n onUnmount,\n className,\n open,\n size = Size.MEDIUM,\n scroll = Scroll.VIEWPORT,\n position = Position.CENTER,\n disableDimmerClickToClose = false,\n ...otherProps\n}: ModalProps) => {\n const intl = useIntl();\n const { isMedium } = useLayout();\n\n const contentReference = useRef<HTMLDivElement>(null);\n const titleId = useId();\n\n const overlayId = useContext(OverlayIdContext);\n\n return !isMedium ? (\n <Drawer\n open={open}\n headerTitle={title}\n footerContent={footer}\n position={Position.BOTTOM}\n onClose={onClose}\n onUnmount={onUnmount}\n >\n {body}\n </Drawer>\n ) : (\n <Dimmer\n open={open}\n scrollable={scroll === Scroll.VIEWPORT}\n contentPosition={position}\n disableClickToClose={disableDimmerClickToClose}\n onClose={onClose}\n onExited={onUnmount}\n >\n <CSSTransition\n nodeRef={contentReference}\n appear\n in={open}\n classNames={{ enterDone: 'in' }}\n timeout={TRANSITION_DURATION_IN_MILLISECONDS}\n unmountOnExit\n >\n <div\n ref={contentReference}\n className={clsx(\n 'tw-modal',\n 'd-flex',\n 'fade',\n 'outline-none',\n scroll === Scroll.CONTENT && 'tw-modal--scrollable',\n className,\n )}\n {...otherProps}\n >\n <div\n id={overlayId}\n role=\"dialog\"\n aria-modal\n aria-labelledby={titleId}\n className={clsx('tw-modal-dialog', 'd-flex', {\n [`tw-modal-${size}`]: size,\n })}\n >\n <div\n className={clsx(\n 'tw-modal-content',\n 'd-flex',\n 'flex-column',\n 'justify-content-between',\n )}\n >\n <div\n className={clsx(\n 'tw-modal-header',\n 'd-flex',\n 'align-items-center',\n title ? 'justify-content-between' : 'justify-content-end',\n 'flex-wrap',\n )}\n >\n {title && (\n <Title id={titleId} type={Typography.TITLE_SUBSECTION} className=\"tw-modal-title\">\n {title}\n </Title>\n )}\n <IconButton\n size={40}\n priority=\"tertiary\"\n aria-label={intl.formatMessage(closeBtnMessages.ariaLabel)}\n onClick={onClose}\n >\n <Cross />\n </IconButton>\n </div>\n <div\n className={clsx('tw-modal-body', {\n 'tw-modal-body--scrollable': scroll === Scroll.CONTENT,\n })}\n >\n {body}\n </div>\n {footer ? (\n <div\n className={clsx('tw-modal-footer', 'd-flex', 'align-items-center', 'flex-wrap')}\n >\n {footer}\n </div>\n ) : (\n <div className=\"m-t-3\" />\n )}\n </div>\n </div>\n </div>\n </CSSTransition>\n </Dimmer>\n );\n};\n\nexport default Modal;\n"],"names":["TRANSITION_DURATION_IN_MILLISECONDS","Modal","title","body","footer","onClose","onUnmount","className","open","size","Size","MEDIUM","scroll","Scroll","VIEWPORT","position","Position","CENTER","disableDimmerClickToClose","otherProps","intl","useIntl","isMedium","useLayout","contentReference","useRef","titleId","useId","overlayId","useContext","OverlayIdContext","_jsx","Drawer","headerTitle","footerContent","BOTTOM","children","Dimmer","scrollable","contentPosition","disableClickToClose","onExited","CSSTransition","nodeRef","appear","in","classNames","enterDone","timeout","unmountOnExit","ref","clsx","CONTENT","id","role","_jsxs","Title","type","Typography","TITLE_SUBSECTION","IconButton","priority","formatMessage","closeBtnMessages","ariaLabel","onClick","Cross"],"mappings":"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"}
|
|
@@ -16,88 +16,41 @@
|
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
.np-drawer .np-drawer-header {
|
|
19
|
-
display: flex;
|
|
20
|
-
align-items: center;
|
|
21
|
-
flex-wrap: nowrap;
|
|
22
19
|
min-height: 56px;
|
|
23
20
|
min-height: var(--size-56);
|
|
24
|
-
padding: 24px 16px;
|
|
25
|
-
padding: var(--size-24) var(--size-16);
|
|
26
|
-
}
|
|
27
|
-
.np-theme-personal .np-drawer .np-drawer-header {
|
|
28
21
|
padding: 24px;
|
|
29
22
|
padding: var(--size-24);
|
|
30
23
|
}
|
|
31
24
|
@media (max-width: 320px) {
|
|
32
|
-
.np-
|
|
25
|
+
.np-drawer .np-drawer-header {
|
|
33
26
|
padding: 16px;
|
|
34
27
|
padding: var(--size-16);
|
|
35
28
|
}
|
|
36
29
|
}
|
|
37
|
-
.np-
|
|
38
|
-
|
|
39
|
-
margin-top: calc(var(--size-8) * -1);
|
|
40
|
-
margin-right: calc(8px * -1);
|
|
41
|
-
margin-right: calc(var(--size-8) * -1);
|
|
42
|
-
margin-bottom: calc(8px * -1);
|
|
43
|
-
margin-bottom: calc(var(--size-8) * -1);
|
|
44
|
-
}
|
|
45
|
-
.np-drawer .np-drawer-header.np-drawer-header--withborder {
|
|
46
|
-
box-shadow: inset 0 -1px 0 0 #e2e6e8;
|
|
47
|
-
}
|
|
48
|
-
.np-theme-personal .np-drawer .np-drawer-header.np-drawer-header--withborder {
|
|
49
|
-
box-shadow: inset 0 -1px 0 0 rgba(0,0,0,0.10196);
|
|
50
|
-
box-shadow: inset 0 -1px 0 0 var(--color-border-neutral);
|
|
51
|
-
}
|
|
52
|
-
.np-drawer .np-drawer-header .np-text-title-body {
|
|
53
|
-
margin-right: 16px;
|
|
54
|
-
margin-right: var(--size-16);
|
|
55
|
-
font-size: 1.125rem;
|
|
56
|
-
font-size: var(--font-size-18);
|
|
57
|
-
letter-spacing: -0.01em;
|
|
58
|
-
letter-spacing: var(--letter-spacing-negative-xs);
|
|
59
|
-
line-height: 1.5rem;
|
|
60
|
-
line-height: var(--line-height-24);
|
|
61
|
-
}
|
|
62
|
-
.np-drawer .np-drawer-header .np-close-button {
|
|
63
|
-
margin-left: auto;
|
|
64
|
-
}
|
|
65
|
-
.np-drawer .np-drawer-header .tw-icon {
|
|
66
|
-
display: block;
|
|
67
|
-
cursor: pointer;
|
|
68
|
-
fill: #00b9ff;
|
|
30
|
+
.np-drawer .np-drawer-title {
|
|
31
|
+
max-width: 85%;
|
|
69
32
|
}
|
|
70
33
|
.np-drawer .np-drawer-content {
|
|
71
34
|
overflow-y: auto;
|
|
72
35
|
flex: 1;
|
|
73
|
-
}
|
|
74
|
-
.np-drawer .np-drawer-content .np-theme-personal {
|
|
75
36
|
background-color: transparent;
|
|
76
37
|
}
|
|
77
|
-
.np-drawer .np-drawer-footer
|
|
78
|
-
.np-drawer .np-drawer-content {
|
|
38
|
+
.np-drawer .np-drawer-footer {
|
|
79
39
|
padding: 16px;
|
|
80
40
|
padding: var(--size-16);
|
|
81
41
|
}
|
|
82
|
-
.np-drawer .np-drawer-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
.np-theme-personal .np-drawer .np-drawer-footer {
|
|
86
|
-
box-shadow: inset 0 1px 0 0 rgba(0,0,0,0.10196);
|
|
87
|
-
box-shadow: inset 0 1px 0 0 var(--color-border-neutral);
|
|
42
|
+
.np-drawer .np-drawer-content {
|
|
43
|
+
padding: 0 16px;
|
|
44
|
+
padding: 0 var(--size-16);
|
|
88
45
|
}
|
|
89
46
|
@media (min-width: 768px) {
|
|
90
|
-
.np-drawer .np-drawer-header
|
|
91
|
-
|
|
92
|
-
padding: var(--size-32) var(--size-24);
|
|
93
|
-
}
|
|
94
|
-
.np-theme-personal .np-drawer .np-drawer-header {
|
|
47
|
+
.np-drawer .np-drawer-header,
|
|
48
|
+
.np-drawer .np-drawer-footer {
|
|
95
49
|
padding: 24px;
|
|
96
50
|
padding: var(--size-24);
|
|
97
51
|
}
|
|
98
|
-
.np-drawer .np-drawer-footer,
|
|
99
52
|
.np-drawer .np-drawer-content {
|
|
100
|
-
padding: 24px;
|
|
101
|
-
padding: var(--size-24);
|
|
53
|
+
padding: 0 24px;
|
|
54
|
+
padding: 0 var(--size-24);
|
|
102
55
|
}
|
|
103
56
|
}
|
package/build/styles/main.css
CHANGED
|
@@ -2326,89 +2326,42 @@ button.np-option {
|
|
|
2326
2326
|
}
|
|
2327
2327
|
}
|
|
2328
2328
|
.np-drawer .np-drawer-header {
|
|
2329
|
-
display: flex;
|
|
2330
|
-
align-items: center;
|
|
2331
|
-
flex-wrap: nowrap;
|
|
2332
2329
|
min-height: 56px;
|
|
2333
2330
|
min-height: var(--size-56);
|
|
2334
|
-
padding: 24px 16px;
|
|
2335
|
-
padding: var(--size-24) var(--size-16);
|
|
2336
|
-
}
|
|
2337
|
-
.np-theme-personal .np-drawer .np-drawer-header {
|
|
2338
2331
|
padding: 24px;
|
|
2339
2332
|
padding: var(--size-24);
|
|
2340
2333
|
}
|
|
2341
2334
|
@media (max-width: 320px) {
|
|
2342
|
-
.np-
|
|
2335
|
+
.np-drawer .np-drawer-header {
|
|
2343
2336
|
padding: 16px;
|
|
2344
2337
|
padding: var(--size-16);
|
|
2345
2338
|
}
|
|
2346
2339
|
}
|
|
2347
|
-
.np-
|
|
2348
|
-
|
|
2349
|
-
margin-top: calc(var(--size-8) * -1);
|
|
2350
|
-
margin-right: calc(8px * -1);
|
|
2351
|
-
margin-right: calc(var(--size-8) * -1);
|
|
2352
|
-
margin-bottom: calc(8px * -1);
|
|
2353
|
-
margin-bottom: calc(var(--size-8) * -1);
|
|
2354
|
-
}
|
|
2355
|
-
.np-drawer .np-drawer-header.np-drawer-header--withborder {
|
|
2356
|
-
box-shadow: inset 0 -1px 0 0 #e2e6e8;
|
|
2357
|
-
}
|
|
2358
|
-
.np-theme-personal .np-drawer .np-drawer-header.np-drawer-header--withborder {
|
|
2359
|
-
box-shadow: inset 0 -1px 0 0 rgba(0,0,0,0.10196);
|
|
2360
|
-
box-shadow: inset 0 -1px 0 0 var(--color-border-neutral);
|
|
2361
|
-
}
|
|
2362
|
-
.np-drawer .np-drawer-header .np-text-title-body {
|
|
2363
|
-
margin-right: 16px;
|
|
2364
|
-
margin-right: var(--size-16);
|
|
2365
|
-
font-size: 1.125rem;
|
|
2366
|
-
font-size: var(--font-size-18);
|
|
2367
|
-
letter-spacing: -0.01em;
|
|
2368
|
-
letter-spacing: var(--letter-spacing-negative-xs);
|
|
2369
|
-
line-height: 1.5rem;
|
|
2370
|
-
line-height: var(--line-height-24);
|
|
2371
|
-
}
|
|
2372
|
-
.np-drawer .np-drawer-header .np-close-button {
|
|
2373
|
-
margin-left: auto;
|
|
2374
|
-
}
|
|
2375
|
-
.np-drawer .np-drawer-header .tw-icon {
|
|
2376
|
-
display: block;
|
|
2377
|
-
cursor: pointer;
|
|
2378
|
-
fill: #00b9ff;
|
|
2340
|
+
.np-drawer .np-drawer-title {
|
|
2341
|
+
max-width: 85%;
|
|
2379
2342
|
}
|
|
2380
2343
|
.np-drawer .np-drawer-content {
|
|
2381
2344
|
overflow-y: auto;
|
|
2382
2345
|
flex: 1;
|
|
2383
|
-
}
|
|
2384
|
-
.np-drawer .np-drawer-content .np-theme-personal {
|
|
2385
2346
|
background-color: transparent;
|
|
2386
2347
|
}
|
|
2387
|
-
.np-drawer .np-drawer-footer
|
|
2388
|
-
.np-drawer .np-drawer-content {
|
|
2348
|
+
.np-drawer .np-drawer-footer {
|
|
2389
2349
|
padding: 16px;
|
|
2390
2350
|
padding: var(--size-16);
|
|
2391
2351
|
}
|
|
2392
|
-
.np-drawer .np-drawer-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
.np-theme-personal .np-drawer .np-drawer-footer {
|
|
2396
|
-
box-shadow: inset 0 1px 0 0 rgba(0,0,0,0.10196);
|
|
2397
|
-
box-shadow: inset 0 1px 0 0 var(--color-border-neutral);
|
|
2352
|
+
.np-drawer .np-drawer-content {
|
|
2353
|
+
padding: 0 16px;
|
|
2354
|
+
padding: 0 var(--size-16);
|
|
2398
2355
|
}
|
|
2399
2356
|
@media (min-width: 768px) {
|
|
2400
|
-
.np-drawer .np-drawer-header
|
|
2401
|
-
|
|
2402
|
-
padding: var(--size-32) var(--size-24);
|
|
2403
|
-
}
|
|
2404
|
-
.np-theme-personal .np-drawer .np-drawer-header {
|
|
2357
|
+
.np-drawer .np-drawer-header,
|
|
2358
|
+
.np-drawer .np-drawer-footer {
|
|
2405
2359
|
padding: 24px;
|
|
2406
2360
|
padding: var(--size-24);
|
|
2407
2361
|
}
|
|
2408
|
-
.np-drawer .np-drawer-footer,
|
|
2409
2362
|
.np-drawer .np-drawer-content {
|
|
2410
|
-
padding: 24px;
|
|
2411
|
-
padding: var(--size-24);
|
|
2363
|
+
padding: 0 24px;
|
|
2364
|
+
padding: 0 var(--size-24);
|
|
2412
2365
|
}
|
|
2413
2366
|
}
|
|
2414
2367
|
.wds-Divider {
|
|
@@ -4231,14 +4184,9 @@ button.np-link {
|
|
|
4231
4184
|
.tw-modal .tw-modal-dialog {
|
|
4232
4185
|
transition: transform 0.3s ease-out;
|
|
4233
4186
|
transform: translateY(-25%);
|
|
4234
|
-
box-shadow:
|
|
4235
|
-
background: #ffffff;
|
|
4236
|
-
background: var(--color-background-elevated);
|
|
4237
|
-
}
|
|
4238
|
-
.np-theme-personal .tw-modal .tw-modal-dialog {
|
|
4187
|
+
box-shadow: none;
|
|
4239
4188
|
background: #ffffff;
|
|
4240
4189
|
background: var(--color-background-elevated);
|
|
4241
|
-
box-shadow: none;
|
|
4242
4190
|
border-radius: 24px;
|
|
4243
4191
|
border-radius: var(--radius-large);
|
|
4244
4192
|
}
|
|
@@ -4247,6 +4195,7 @@ button.np-link {
|
|
|
4247
4195
|
}
|
|
4248
4196
|
.tw-modal .tw-modal-content {
|
|
4249
4197
|
width: 100%;
|
|
4198
|
+
background-color: transparent;
|
|
4250
4199
|
}
|
|
4251
4200
|
.tw-modal .tw-modal-content .tw-modal-body {
|
|
4252
4201
|
flex: 1;
|
|
@@ -4255,26 +4204,6 @@ button.np-link {
|
|
|
4255
4204
|
.tw-modal .tw-modal-content .tw-modal-body--scrollable {
|
|
4256
4205
|
overflow-y: auto;
|
|
4257
4206
|
}
|
|
4258
|
-
.tw-modal .tw-modal-content .tw-modal-header {
|
|
4259
|
-
box-shadow: inset 0 -1px 0 0 #e2e6e8;
|
|
4260
|
-
}
|
|
4261
|
-
.np-theme-personal .tw-modal .tw-modal-content .tw-modal-header {
|
|
4262
|
-
box-shadow: inset 0 -1px 0 0 rgba(0,0,0,0.10196);
|
|
4263
|
-
box-shadow: inset 0 -1px 0 0 var(--color-border-neutral);
|
|
4264
|
-
}
|
|
4265
|
-
.np-theme-personal .tw-modal .tw-modal-content .tw-modal-header .np-close-button {
|
|
4266
|
-
margin: calc(8px * -1) calc(8px * -1) calc(8px * -1) 0;
|
|
4267
|
-
margin: calc(var(--size-8) * -1) calc(var(--size-8) * -1) calc(var(--size-8) * -1) 0;
|
|
4268
|
-
}
|
|
4269
|
-
.tw-modal .tw-modal-content .tw-modal-header.modal--withoutborder {
|
|
4270
|
-
box-shadow: none;
|
|
4271
|
-
}
|
|
4272
|
-
.tw-modal .tw-modal-content .tw-modal-header .tw-icon {
|
|
4273
|
-
fill: #0097c7;
|
|
4274
|
-
fill: var(--color-content-accent);
|
|
4275
|
-
cursor: pointer;
|
|
4276
|
-
display: block;
|
|
4277
|
-
}
|
|
4278
4207
|
.tw-modal .tw-modal-content .tw-modal-header,
|
|
4279
4208
|
.tw-modal .tw-modal-content .tw-modal-footer,
|
|
4280
4209
|
.tw-modal .tw-modal-content .tw-modal-body {
|
|
@@ -4289,55 +4218,16 @@ button.np-link {
|
|
|
4289
4218
|
padding-top: var(--size-12);
|
|
4290
4219
|
padding-bottom: 12px;
|
|
4291
4220
|
padding-bottom: var(--size-12);
|
|
4292
|
-
box-shadow: inset 0 1px 0 0 #e2e6e8;
|
|
4293
|
-
}
|
|
4294
|
-
.np-theme-personal .tw-modal .tw-modal-content .tw-modal-footer {
|
|
4295
|
-
border-top: 1px solid rgba(0,0,0,0.10196);
|
|
4296
|
-
border-top: 1px solid var(--color-border-neutral);
|
|
4297
|
-
}
|
|
4298
|
-
.np-theme-personal .tw-modal .tw-modal-content .tw-modal-footer,
|
|
4299
|
-
.tw-modal .tw-modal-content .tw-modal-footer.modal--withoutborder {
|
|
4300
|
-
box-shadow: none;
|
|
4301
|
-
}
|
|
4302
|
-
.tw-modal .tw-modal-content.tw-modal-no-title .tw-modal-body {
|
|
4303
|
-
padding-top: 0 !important;
|
|
4304
|
-
}
|
|
4305
|
-
.tw-modal .tw-modal-content.tw-modal-no-title .tw-modal-header {
|
|
4306
|
-
min-height: 32px;
|
|
4307
|
-
min-height: var(--size-32);
|
|
4308
|
-
padding-bottom: 4px !important;
|
|
4309
|
-
}
|
|
4310
|
-
.tw-modal .tw-modal-content .np-theme-personal {
|
|
4311
|
-
background-color: transparent;
|
|
4312
|
-
}
|
|
4313
|
-
.tw-modal table,
|
|
4314
|
-
.tw-modal .table {
|
|
4315
|
-
background-color: transparent;
|
|
4316
4221
|
}
|
|
4317
4222
|
@media (min-width: 576px) {
|
|
4318
4223
|
.tw-modal .tw-modal-content .tw-modal-header,
|
|
4319
|
-
.tw-modal .tw-modal-content .tw-modal-footer
|
|
4320
|
-
.tw-modal .tw-modal-content .tw-modal-body {
|
|
4321
|
-
padding: 32px 24px;
|
|
4322
|
-
padding: var(--size-32) var(--size-24);
|
|
4323
|
-
}
|
|
4324
|
-
.np-theme-personal .tw-modal .tw-modal-content .tw-modal-header,
|
|
4325
|
-
.np-theme-personal .tw-modal .tw-modal-content .tw-modal-footer,
|
|
4326
|
-
.np-theme-personal .tw-modal .tw-modal-content .tw-modal-body {
|
|
4224
|
+
.tw-modal .tw-modal-content .tw-modal-footer {
|
|
4327
4225
|
padding: 24px;
|
|
4328
4226
|
padding: var(--size-24);
|
|
4329
4227
|
}
|
|
4330
|
-
.tw-modal .tw-modal-
|
|
4331
|
-
|
|
4332
|
-
|
|
4333
|
-
}
|
|
4334
|
-
.tw-modal .tw-modal-compact .tw-modal-header,
|
|
4335
|
-
.tw-modal .tw-modal-compact .tw-modal-footer,
|
|
4336
|
-
.tw-modal .tw-modal-compact .tw-modal-body {
|
|
4337
|
-
padding-top: 16px;
|
|
4338
|
-
padding-top: var(--size-16);
|
|
4339
|
-
padding-bottom: 16px;
|
|
4340
|
-
padding-bottom: var(--size-16);
|
|
4228
|
+
.tw-modal .tw-modal-content .tw-modal-body {
|
|
4229
|
+
padding: 0 24px;
|
|
4230
|
+
padding: 0 var(--size-24);
|
|
4341
4231
|
}
|
|
4342
4232
|
}
|
|
4343
4233
|
@media (min-width: 480px) {
|
|
@@ -6,14 +6,9 @@
|
|
|
6
6
|
.tw-modal .tw-modal-dialog {
|
|
7
7
|
transition: transform 0.3s ease-out;
|
|
8
8
|
transform: translateY(-25%);
|
|
9
|
-
box-shadow:
|
|
10
|
-
background: #ffffff;
|
|
11
|
-
background: var(--color-background-elevated);
|
|
12
|
-
}
|
|
13
|
-
.np-theme-personal .tw-modal .tw-modal-dialog {
|
|
9
|
+
box-shadow: none;
|
|
14
10
|
background: #ffffff;
|
|
15
11
|
background: var(--color-background-elevated);
|
|
16
|
-
box-shadow: none;
|
|
17
12
|
border-radius: 24px;
|
|
18
13
|
border-radius: var(--radius-large);
|
|
19
14
|
}
|
|
@@ -22,6 +17,7 @@
|
|
|
22
17
|
}
|
|
23
18
|
.tw-modal .tw-modal-content {
|
|
24
19
|
width: 100%;
|
|
20
|
+
background-color: transparent;
|
|
25
21
|
}
|
|
26
22
|
.tw-modal .tw-modal-content .tw-modal-body {
|
|
27
23
|
flex: 1;
|
|
@@ -30,26 +26,6 @@
|
|
|
30
26
|
.tw-modal .tw-modal-content .tw-modal-body--scrollable {
|
|
31
27
|
overflow-y: auto;
|
|
32
28
|
}
|
|
33
|
-
.tw-modal .tw-modal-content .tw-modal-header {
|
|
34
|
-
box-shadow: inset 0 -1px 0 0 #e2e6e8;
|
|
35
|
-
}
|
|
36
|
-
.np-theme-personal .tw-modal .tw-modal-content .tw-modal-header {
|
|
37
|
-
box-shadow: inset 0 -1px 0 0 rgba(0,0,0,0.10196);
|
|
38
|
-
box-shadow: inset 0 -1px 0 0 var(--color-border-neutral);
|
|
39
|
-
}
|
|
40
|
-
.np-theme-personal .tw-modal .tw-modal-content .tw-modal-header .np-close-button {
|
|
41
|
-
margin: calc(8px * -1) calc(8px * -1) calc(8px * -1) 0;
|
|
42
|
-
margin: calc(var(--size-8) * -1) calc(var(--size-8) * -1) calc(var(--size-8) * -1) 0;
|
|
43
|
-
}
|
|
44
|
-
.tw-modal .tw-modal-content .tw-modal-header.modal--withoutborder {
|
|
45
|
-
box-shadow: none;
|
|
46
|
-
}
|
|
47
|
-
.tw-modal .tw-modal-content .tw-modal-header .tw-icon {
|
|
48
|
-
fill: #0097c7;
|
|
49
|
-
fill: var(--color-content-accent);
|
|
50
|
-
cursor: pointer;
|
|
51
|
-
display: block;
|
|
52
|
-
}
|
|
53
29
|
.tw-modal .tw-modal-content .tw-modal-header,
|
|
54
30
|
.tw-modal .tw-modal-content .tw-modal-footer,
|
|
55
31
|
.tw-modal .tw-modal-content .tw-modal-body {
|
|
@@ -64,55 +40,16 @@
|
|
|
64
40
|
padding-top: var(--size-12);
|
|
65
41
|
padding-bottom: 12px;
|
|
66
42
|
padding-bottom: var(--size-12);
|
|
67
|
-
box-shadow: inset 0 1px 0 0 #e2e6e8;
|
|
68
|
-
}
|
|
69
|
-
.np-theme-personal .tw-modal .tw-modal-content .tw-modal-footer {
|
|
70
|
-
border-top: 1px solid rgba(0,0,0,0.10196);
|
|
71
|
-
border-top: 1px solid var(--color-border-neutral);
|
|
72
|
-
}
|
|
73
|
-
.np-theme-personal .tw-modal .tw-modal-content .tw-modal-footer,
|
|
74
|
-
.tw-modal .tw-modal-content .tw-modal-footer.modal--withoutborder {
|
|
75
|
-
box-shadow: none;
|
|
76
|
-
}
|
|
77
|
-
.tw-modal .tw-modal-content.tw-modal-no-title .tw-modal-body {
|
|
78
|
-
padding-top: 0 !important;
|
|
79
|
-
}
|
|
80
|
-
.tw-modal .tw-modal-content.tw-modal-no-title .tw-modal-header {
|
|
81
|
-
min-height: 32px;
|
|
82
|
-
min-height: var(--size-32);
|
|
83
|
-
padding-bottom: 4px !important;
|
|
84
|
-
}
|
|
85
|
-
.tw-modal .tw-modal-content .np-theme-personal {
|
|
86
|
-
background-color: transparent;
|
|
87
|
-
}
|
|
88
|
-
.tw-modal table,
|
|
89
|
-
.tw-modal .table {
|
|
90
|
-
background-color: transparent;
|
|
91
43
|
}
|
|
92
44
|
@media (min-width: 576px) {
|
|
93
45
|
.tw-modal .tw-modal-content .tw-modal-header,
|
|
94
|
-
.tw-modal .tw-modal-content .tw-modal-footer
|
|
95
|
-
.tw-modal .tw-modal-content .tw-modal-body {
|
|
96
|
-
padding: 32px 24px;
|
|
97
|
-
padding: var(--size-32) var(--size-24);
|
|
98
|
-
}
|
|
99
|
-
.np-theme-personal .tw-modal .tw-modal-content .tw-modal-header,
|
|
100
|
-
.np-theme-personal .tw-modal .tw-modal-content .tw-modal-footer,
|
|
101
|
-
.np-theme-personal .tw-modal .tw-modal-content .tw-modal-body {
|
|
46
|
+
.tw-modal .tw-modal-content .tw-modal-footer {
|
|
102
47
|
padding: 24px;
|
|
103
48
|
padding: var(--size-24);
|
|
104
49
|
}
|
|
105
|
-
.tw-modal .tw-modal-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
}
|
|
109
|
-
.tw-modal .tw-modal-compact .tw-modal-header,
|
|
110
|
-
.tw-modal .tw-modal-compact .tw-modal-footer,
|
|
111
|
-
.tw-modal .tw-modal-compact .tw-modal-body {
|
|
112
|
-
padding-top: 16px;
|
|
113
|
-
padding-top: var(--size-16);
|
|
114
|
-
padding-bottom: 16px;
|
|
115
|
-
padding-bottom: var(--size-16);
|
|
50
|
+
.tw-modal .tw-modal-content .tw-modal-body {
|
|
51
|
+
padding: 0 24px;
|
|
52
|
+
padding: 0 var(--size-24);
|
|
116
53
|
}
|
|
117
54
|
}
|
|
118
55
|
@media (min-width: 480px) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../src/drawer/Drawer.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAqB,MAAM,OAAO,CAAC;AAE1D,OAAO,EAAE,QAAQ,EAAc,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../src/drawer/Drawer.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAqB,MAAM,OAAO,CAAC;AAE1D,OAAO,EAAE,QAAQ,EAAc,MAAM,WAAW,CAAC;AAYjD,MAAM,MAAM,WAAW,GAAG;IACxB,gDAAgD;IAChD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kDAAkD;IAClD,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC,kDAAkD;IAClD,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,+CAA+C;IAC/C,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,uGAAuG;IACvG,QAAQ,CAAC,EAAE,GAAG,QAAQ,CAAC,IAAI,GAAG,QAAQ,CAAC,KAAK,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC;IACjE,4CAA4C;IAC5C,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,aAAa,GAAG,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;IAC5D,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB,GAAG,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,MAAM,GAAG,iBAAiB,CAAC,CAAC;AAErE,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAC7B,QAAQ,EACR,SAAS,EACT,aAAa,EACb,WAAW,EACX,OAAO,EACP,SAAS,EACT,IAAY,EACZ,QAAkB,EAClB,IAAe,EACf,iBAAiB,EAAE,cAAc,GAClC,EAAE,WAAW,+BAuDb"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../src/modal/Modal.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAA6B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../src/modal/Modal.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAA6B,MAAM,OAAO,CAAC;AAI7D,OAAO,EAGL,WAAW,EACX,cAAc,EAEd,WAAW,EACX,SAAS,EACT,UAAU,EACV,SAAS,EACT,cAAc,EACd,aAAa,EACb,cAAc,EAEf,MAAM,WAAW,CAAC;AAYnB,MAAM,MAAM,UAAU,GAAG,WAAW,GAAG;IACrC,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,IAAI,EAAE,SAAS,CAAC;IAChB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,IAAI,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,SAAS,GAAG,cAAc,CAAC;IAC3D,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,CAAC,EAAE,aAAa,GAAG,cAAc,CAAC;IACxC,QAAQ,CAAC,EAAE,WAAW,GAAG,cAAc,CAAC;IACxC,yBAAyB,CAAC,EAAE,OAAO,CAAC;CACrC,CAAC;AAEF,QAAA,MAAM,KAAK,GAAI,gIAaZ,UAAU,gCA+GZ,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
package/package.json
CHANGED
|
@@ -145,9 +145,9 @@ export const WithinModal: Story = {
|
|
|
145
145
|
Open Modal
|
|
146
146
|
</Button>
|
|
147
147
|
<Modal
|
|
148
|
+
title="Large transfer tips"
|
|
148
149
|
body={
|
|
149
150
|
<div className="p-a-1">
|
|
150
|
-
<h3 className="m-t-2 m-b-4 text-xs-center">Large transfer tips</h3>
|
|
151
151
|
<Accordion {...args} items={[items[0]]} />
|
|
152
152
|
<Accordion {...args} items={[items[0]]} indexOpen={0} />
|
|
153
153
|
<Accordion {...args} items={items} />
|