@transferwise/components 0.0.0-experimental-b2d320f → 0.0.0-experimental-fe0caa4
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/{card/Card.js → baseCard/BaseCard.js} +4 -4
- package/build/common/baseCard/BaseCard.js.map +1 -0
- package/build/common/{card/Card.mjs → baseCard/BaseCard.mjs} +4 -4
- package/build/common/baseCard/BaseCard.mjs.map +1 -0
- package/build/index.js +4 -4
- package/build/index.mjs +1 -1
- package/build/main.css +1387 -1277
- package/build/promoCard/PromoCard.js +2 -2
- package/build/promoCard/PromoCard.js.map +1 -1
- package/build/promoCard/PromoCard.mjs +2 -2
- package/build/promoCard/PromoCard.mjs.map +1 -1
- package/build/styles/accordion/Accordion.css +26 -19
- package/build/styles/actionButton/ActionButton.css +8 -6
- package/build/styles/alert/Alert.css +2 -2
- package/build/styles/avatar/Avatar.css +65 -65
- package/build/styles/avatarLayout/AvatarLayout.css +11 -11
- package/build/styles/avatarView/AvatarView.css +3 -3
- package/build/styles/avatarView/Dot.css +3 -3
- package/build/styles/badge/Badge.css +11 -10
- package/build/styles/button/Button.css +6 -6
- package/build/styles/button/LegacyButton.css +7 -7
- package/build/styles/card/Card.css +32 -16
- package/build/styles/carousel/Carousel.css +29 -27
- package/build/styles/checkboxButton/CheckboxButton.css +13 -13
- package/build/styles/chips/Chip.css +31 -27
- package/build/styles/common/Option/Option.css +44 -42
- package/build/styles/common/{card/Card.css → baseCard/BaseCard.css} +5 -5
- package/build/styles/common/bottomSheet/BottomSheet.css +35 -18
- package/build/styles/common/circle/Circle.css +10 -10
- package/build/styles/common/closeButton/CloseButton.css +36 -36
- package/build/styles/common/panel/Panel.css +7 -7
- package/build/styles/criticalBanner/CriticalCommsBanner.css +6 -6
- package/build/styles/dateInput/DateInput.css +4 -4
- package/build/styles/dateLookup/DateLookup.css +11 -9
- package/build/styles/dateLookup/dateTrigger/DateTrigger.css +13 -13
- package/build/styles/definitionList/DefinitionList.css +12 -12
- package/build/styles/dimmer/Dimmer.css +15 -15
- package/build/styles/divider/Divider.css +8 -7
- package/build/styles/drawer/Drawer.css +19 -15
- package/build/styles/dropFade/DropFade.css +2 -2
- package/build/styles/expressiveMoneyInput/ExpressiveMoneyInput.css +11 -11
- package/build/styles/expressiveMoneyInput/amountInput/AmountInput.css +4 -4
- package/build/styles/expressiveMoneyInput/chevron/Chevron.css +5 -5
- package/build/styles/field/Field.css +5 -5
- package/build/styles/flowNavigation/FlowNavigation.css +29 -28
- package/build/styles/flowNavigation/animatedLabel/AnimatedLabel.css +5 -5
- package/build/styles/header/Header.css +12 -9
- package/build/styles/image/Image.css +7 -7
- package/build/styles/info/Info.css +1 -1
- package/build/styles/inputs/Input.css +25 -25
- package/build/styles/inputs/InputGroup.css +9 -9
- package/build/styles/inputs/SelectInput.css +55 -47
- package/build/styles/inputs/TextArea.css +27 -27
- package/build/styles/instructionsList/InstructionsList.css +5 -5
- package/build/styles/legacylistItem/LegacyListItem.css +1 -1
- package/build/styles/link/Link.css +6 -6
- package/build/styles/listItem/ListItem.css +39 -35
- package/build/styles/listItem/ListItem.grid.css +7 -7
- package/build/styles/loader/Loader.css +30 -30
- package/build/styles/main.css +1387 -1277
- package/build/styles/modal/Modal.css +18 -16
- package/build/styles/moneyInput/MoneyInput.css +16 -16
- package/build/styles/navigationOption/NavigationOption.css +9 -9
- package/build/styles/navigationOptionsList/NavigationOptionsList.css +6 -6
- package/build/styles/nudge/Nudge.css +72 -70
- package/build/styles/overlayHeader/OverlayHeader.css +7 -6
- package/build/styles/phoneNumberInput/PhoneNumberInput.css +7 -7
- package/build/styles/popover/Popover.css +14 -10
- package/build/styles/progress/Progress.css +3 -3
- package/build/styles/progressBar/ProgressBar.css +4 -4
- package/build/styles/promoCard/PromoCard.css +36 -35
- package/build/styles/prompt/ActionPrompt/ActionPrompt.css +8 -8
- package/build/styles/prompt/InfoPrompt/InfoPrompt.css +7 -7
- package/build/styles/prompt/InlinePrompt/InlinePrompt.css +6 -6
- package/build/styles/prompt/PrimitivePrompt/PrimitivePrompt.css +6 -6
- package/build/styles/radioGroup/RadioGroup.css +1 -1
- package/build/styles/section/Section.css +6 -6
- package/build/styles/segmentedControl/SegmentedControl.css +19 -15
- package/build/styles/select/Select.css +80 -76
- package/build/styles/slidingPanel/SlidingPanel.css +21 -21
- package/build/styles/snackbar/Snackbar.css +31 -27
- package/build/styles/stepper/Stepper.css +8 -8
- package/build/styles/summary/Summary.css +26 -26
- package/build/styles/switch/Switch.css +5 -4
- package/build/styles/table/Table.css +60 -57
- package/build/styles/tabs/Tabs.css +20 -14
- package/build/styles/tile/Tile.css +12 -12
- package/build/styles/tooltip/Tooltip.css +2 -2
- package/build/styles/typeahead/Typeahead.css +48 -48
- package/build/styles/upload/Upload.css +11 -10
- package/build/styles/uploadInput/UploadInput.css +4 -4
- package/build/styles/uploadInput/uploadButton/UploadButton.css +20 -19
- package/build/styles/uploadInput/uploadItem/UploadItem.css +46 -44
- package/build/types/common/{card/Card.d.ts → baseCard/BaseCard.d.ts} +8 -8
- package/build/types/common/baseCard/BaseCard.d.ts.map +1 -0
- package/build/types/common/baseCard/index.d.ts +3 -0
- package/build/types/common/baseCard/index.d.ts.map +1 -0
- package/build/types/index.d.ts +1 -1
- package/build/types/index.d.ts.map +1 -1
- package/build/types/promoCard/PromoCard.d.ts +3 -3
- package/build/types/promoCard/PromoCard.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/accordion/Accordion.css +26 -19
- package/src/actionButton/ActionButton.css +8 -6
- package/src/alert/Alert.css +2 -2
- package/src/avatar/Avatar.css +65 -65
- package/src/avatarLayout/AvatarLayout.css +11 -11
- package/src/avatarView/AvatarView.css +3 -3
- package/src/avatarView/Dot.css +3 -3
- package/src/badge/Badge.css +11 -10
- package/src/button/Button.css +6 -6
- package/src/button/LegacyButton.css +7 -7
- package/src/card/Card.css +32 -16
- package/src/carousel/Carousel.css +29 -27
- package/src/checkboxButton/CheckboxButton.css +13 -13
- package/src/chips/Chip.css +31 -27
- package/src/common/Option/Option.css +44 -42
- package/src/common/{card/Card.css → baseCard/BaseCard.css} +5 -5
- package/src/common/{card/Card.less → baseCard/BaseCard.less} +1 -1
- package/src/common/{card/Card.story.tsx → baseCard/BaseCard.story.tsx} +5 -5
- package/src/common/{card/Card.test.tsx → baseCard/BaseCard.test.tsx} +11 -12
- package/src/common/{card/Card.tsx → baseCard/BaseCard.tsx} +9 -9
- package/src/common/baseCard/index.ts +2 -0
- package/src/common/bottomSheet/BottomSheet.css +35 -18
- package/src/common/circle/Circle.css +10 -10
- package/src/common/closeButton/CloseButton.css +36 -36
- package/src/common/panel/Panel.css +7 -7
- package/src/criticalBanner/CriticalCommsBanner.css +6 -6
- package/src/dateInput/DateInput.css +4 -4
- package/src/dateLookup/DateLookup.css +11 -9
- package/src/dateLookup/dateTrigger/DateTrigger.css +13 -13
- package/src/definitionList/DefinitionList.css +12 -12
- package/src/dimmer/Dimmer.css +15 -15
- package/src/divider/Divider.css +8 -7
- package/src/drawer/Drawer.css +19 -15
- package/src/dropFade/DropFade.css +2 -2
- package/src/expressiveMoneyInput/ExpressiveMoneyInput.css +11 -11
- package/src/expressiveMoneyInput/amountInput/AmountInput.css +4 -4
- package/src/expressiveMoneyInput/chevron/Chevron.css +5 -5
- package/src/field/Field.css +5 -5
- package/src/flowNavigation/FlowNavigation.css +29 -28
- package/src/flowNavigation/animatedLabel/AnimatedLabel.css +5 -5
- package/src/header/Header.css +12 -9
- package/src/image/Image.css +7 -7
- package/src/index.ts +1 -1
- package/src/info/Info.css +1 -1
- package/src/inputs/Input.css +25 -25
- package/src/inputs/InputGroup.css +9 -9
- package/src/inputs/SelectInput.css +55 -47
- package/src/inputs/TextArea.css +27 -27
- package/src/instructionsList/InstructionsList.css +5 -5
- package/src/legacylistItem/LegacyListItem.css +1 -1
- package/src/link/Link.css +6 -6
- package/src/listItem/ListItem.css +39 -35
- package/src/listItem/ListItem.grid.css +7 -7
- package/src/loader/Loader.css +30 -30
- package/src/main.css +1387 -1277
- package/src/main.less +2 -2
- package/src/modal/Modal.css +18 -16
- package/src/moneyInput/MoneyInput.css +16 -16
- package/src/navigationOption/NavigationOption.css +9 -9
- package/src/navigationOptionsList/NavigationOptionsList.css +6 -6
- package/src/nudge/Nudge.css +72 -70
- package/src/overlayHeader/OverlayHeader.css +7 -6
- package/src/phoneNumberInput/PhoneNumberInput.css +7 -7
- package/src/popover/Popover.css +14 -10
- package/src/progress/Progress.css +3 -3
- package/src/progressBar/ProgressBar.css +4 -4
- package/src/promoCard/PromoCard.css +36 -35
- package/src/promoCard/PromoCard.tsx +6 -5
- package/src/prompt/ActionPrompt/ActionPrompt.css +8 -8
- package/src/prompt/InfoPrompt/InfoPrompt.css +7 -7
- package/src/prompt/InlinePrompt/InlinePrompt.css +6 -6
- package/src/prompt/PrimitivePrompt/PrimitivePrompt.css +6 -6
- package/src/radioGroup/RadioGroup.css +1 -1
- package/src/section/Section.css +6 -6
- package/src/segmentedControl/SegmentedControl.css +19 -15
- package/src/select/Select.css +80 -76
- package/src/slidingPanel/SlidingPanel.css +21 -21
- package/src/snackbar/Snackbar.css +31 -27
- package/src/stepper/Stepper.css +8 -8
- package/src/summary/Summary.css +26 -26
- package/src/switch/Switch.css +5 -4
- package/src/table/Table.css +60 -57
- package/src/tabs/Tabs.css +20 -14
- package/src/tile/Tile.css +12 -12
- package/src/tooltip/Tooltip.css +2 -2
- package/src/typeahead/Typeahead.css +48 -48
- package/src/upload/Upload.css +11 -10
- package/src/uploadInput/UploadInput.css +4 -4
- package/src/uploadInput/uploadButton/UploadButton.css +20 -19
- package/src/uploadInput/uploadItem/UploadItem.css +46 -44
- package/build/common/card/Card.js.map +0 -1
- package/build/common/card/Card.mjs.map +0 -1
- package/build/types/common/card/Card.d.ts.map +0 -1
- package/build/types/common/card/index.d.ts +0 -3
- package/build/types/common/card/index.d.ts.map +0 -1
- package/src/common/card/index.ts +0 -2
|
@@ -14,32 +14,32 @@
|
|
|
14
14
|
}
|
|
15
15
|
.sliding-panel.sliding-panel--open-right,
|
|
16
16
|
.sliding-panel.sliding-panel--open-left {
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
inset-block-start: 0;
|
|
18
|
+
inset-block-end: 0;
|
|
19
19
|
}
|
|
20
20
|
.sliding-panel.sliding-panel--open-right {
|
|
21
21
|
transform: translateX(100%) ;
|
|
22
|
-
|
|
22
|
+
inset-inline-end: 0;
|
|
23
23
|
}
|
|
24
24
|
[dir="rtl"] .sliding-panel.sliding-panel--open-right {
|
|
25
25
|
transform: translateX(-100%) ;
|
|
26
26
|
}
|
|
27
27
|
[dir="rtl"] .sliding-panel.sliding-panel--open-right {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
inset-inline-start: 0;
|
|
29
|
+
inset-inline-end: auto;
|
|
30
|
+
inset-inline-end: initial;
|
|
31
31
|
}
|
|
32
32
|
.sliding-panel.sliding-panel--open-left {
|
|
33
33
|
transform: translateX(-100%) ;
|
|
34
|
-
|
|
34
|
+
inset-inline-start: 0;
|
|
35
35
|
}
|
|
36
36
|
[dir="rtl"] .sliding-panel.sliding-panel--open-left {
|
|
37
37
|
transform: translateX(100%) ;
|
|
38
38
|
}
|
|
39
39
|
[dir="rtl"] .sliding-panel.sliding-panel--open-left {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
inset-inline-end: 0;
|
|
41
|
+
inset-inline-start: auto;
|
|
42
|
+
inset-inline-start: initial;
|
|
43
43
|
}
|
|
44
44
|
.sliding-panel.sliding-panel-enter-done.sliding-panel--open-right,
|
|
45
45
|
.sliding-panel.sliding-panel-enter-done.sliding-panel--open-left {
|
|
@@ -51,29 +51,29 @@
|
|
|
51
51
|
}
|
|
52
52
|
.sliding-panel.sliding-panel--open-top,
|
|
53
53
|
.sliding-panel.sliding-panel--open-bottom {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
inset-inline-end: 0;
|
|
55
|
+
inset-inline-start: 0;
|
|
56
|
+
inline-size: 100%;
|
|
57
57
|
}
|
|
58
58
|
[dir="rtl"] .sliding-panel.sliding-panel--open-top,
|
|
59
59
|
[dir="rtl"] .sliding-panel.sliding-panel--open-bottom {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
60
|
+
inset-inline-start: 0;
|
|
61
|
+
inset-inline-end: auto;
|
|
62
|
+
inset-inline-end: initial;
|
|
63
63
|
}
|
|
64
64
|
[dir="rtl"] .sliding-panel.sliding-panel--open-top,
|
|
65
65
|
[dir="rtl"] .sliding-panel.sliding-panel--open-bottom {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
66
|
+
inset-inline-end: 0;
|
|
67
|
+
inset-inline-start: auto;
|
|
68
|
+
inset-inline-start: initial;
|
|
69
69
|
}
|
|
70
70
|
.sliding-panel.sliding-panel--open-top {
|
|
71
71
|
transform: translateY(-100%);
|
|
72
|
-
|
|
72
|
+
inset-block-start: 0;
|
|
73
73
|
}
|
|
74
74
|
.sliding-panel.sliding-panel--open-bottom {
|
|
75
75
|
transform: translateY(100%);
|
|
76
|
-
|
|
76
|
+
inset-block-end: 0;
|
|
77
77
|
}
|
|
78
78
|
.sliding-panel.sliding-panel--border-top {
|
|
79
79
|
box-shadow: inset 0 -1px 0 0 #e2e6e8;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
.snackbar {
|
|
2
2
|
text-align: center;
|
|
3
3
|
position: fixed;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
inset-block-end: 0;
|
|
5
|
+
inset-inline-start: 0;
|
|
6
|
+
inset-inline-end: 0;
|
|
7
7
|
z-index: 1060;
|
|
8
8
|
}
|
|
9
9
|
[dir="rtl"] .snackbar {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
inset-inline-end: 0;
|
|
11
|
+
inset-inline-start: auto;
|
|
12
|
+
inset-inline-start: initial;
|
|
13
13
|
}
|
|
14
14
|
[dir="rtl"] .snackbar {
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
inset-inline-start: 0;
|
|
16
|
+
inset-inline-end: 0;
|
|
17
17
|
}
|
|
18
18
|
.snackbar__text {
|
|
19
19
|
background: #37517e;
|
|
@@ -23,19 +23,23 @@
|
|
|
23
23
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
|
|
24
24
|
align-items: center;
|
|
25
25
|
justify-content: space-between;
|
|
26
|
-
text-align:
|
|
26
|
+
text-align: start;
|
|
27
27
|
font-size: 0.875rem;
|
|
28
28
|
font-size: var(--font-size-14);
|
|
29
|
-
margin: 0
|
|
30
|
-
margin:
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
29
|
+
margin-block: 0;
|
|
30
|
+
margin-inline: 16px;
|
|
31
|
+
margin-block: 0;
|
|
32
|
+
margin-inline: var(--size-16);
|
|
33
|
+
padding-block: 8px;
|
|
34
|
+
padding-inline: 16px;
|
|
35
|
+
padding-block: var(--size-8);
|
|
36
|
+
padding-inline: var(--size-16);
|
|
37
|
+
inline-size: calc(100% - 32px);
|
|
38
|
+
inline-size: calc(100% - var(--size-32));
|
|
35
39
|
transition: 400ms cubic-bezier(0.215, 0.61, 0.355, 1);
|
|
36
40
|
}
|
|
37
41
|
[dir="rtl"] .snackbar__text {
|
|
38
|
-
text-align:
|
|
42
|
+
text-align: end;
|
|
39
43
|
}
|
|
40
44
|
.np-theme-personal .snackbar__text {
|
|
41
45
|
box-shadow: 0 2px 4px 0 rgba(69, 71, 69, 0.35);
|
|
@@ -48,12 +52,12 @@
|
|
|
48
52
|
.np-theme-personal .snackbar__text::after {
|
|
49
53
|
display: block;
|
|
50
54
|
border-radius: inherit;
|
|
51
|
-
|
|
52
|
-
|
|
55
|
+
block-size: 100%;
|
|
56
|
+
inline-size: 100%;
|
|
53
57
|
content: "";
|
|
54
58
|
position: absolute;
|
|
55
|
-
|
|
56
|
-
|
|
59
|
+
inset-inline-start: 0;
|
|
60
|
+
inset-block-start: 0;
|
|
57
61
|
z-index: -1;
|
|
58
62
|
background-color: rgba(134,167,189,0.10196);
|
|
59
63
|
background-color: var(--color-background-neutral);
|
|
@@ -64,19 +68,19 @@
|
|
|
64
68
|
}
|
|
65
69
|
@media (min-width: 576px) {
|
|
66
70
|
.snackbar__text {
|
|
67
|
-
|
|
68
|
-
max-
|
|
71
|
+
inline-size: auto;
|
|
72
|
+
max-inline-size: 600px;
|
|
69
73
|
}
|
|
70
74
|
}
|
|
71
75
|
.snackbar__text__action {
|
|
72
76
|
flex-shrink: 0;
|
|
73
|
-
margin-
|
|
74
|
-
margin-
|
|
77
|
+
margin-inline-start: 16px;
|
|
78
|
+
margin-inline-start: var(--size-16);
|
|
75
79
|
}
|
|
76
80
|
[dir="rtl"] .snackbar__text__action {
|
|
77
|
-
margin-
|
|
78
|
-
margin-
|
|
79
|
-
margin-
|
|
81
|
+
margin-inline-end: 16px;
|
|
82
|
+
margin-inline-end: var(--size-16);
|
|
83
|
+
margin-inline-start: 0;
|
|
80
84
|
}
|
|
81
85
|
.snackbar__text-container-enter,
|
|
82
86
|
.snackbar__text-container-exit {
|
package/src/stepper/Stepper.css
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
.tw-stepper {
|
|
2
|
-
padding-
|
|
3
|
-
|
|
2
|
+
padding-block-end: 24px;
|
|
3
|
+
inline-size: 100%;
|
|
4
4
|
}
|
|
5
5
|
@media only screen and (max-width: 575px) {
|
|
6
6
|
.tw-stepper {
|
|
7
|
-
padding-
|
|
7
|
+
padding-block-end: 0;
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
.tw-stepper__step {
|
|
11
11
|
position: absolute;
|
|
12
|
-
|
|
12
|
+
inset-block-start: 0;
|
|
13
13
|
list-style-type: none;
|
|
14
14
|
}
|
|
15
15
|
.tw-stepper__step--active .tw-stepper__step-label {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
.np-theme-personal .tw-stepper__step--clickable .tw-stepper__step-label {
|
|
28
28
|
color: #5d7079;
|
|
29
29
|
color: var(--color-content-secondary);
|
|
30
|
-
|
|
30
|
+
inset-block-start: 0;
|
|
31
31
|
}
|
|
32
32
|
.tw-stepper__step--has-tooltip {
|
|
33
33
|
cursor: pointer;
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
}
|
|
43
43
|
.tw-stepper__step-label {
|
|
44
44
|
position: absolute;
|
|
45
|
-
|
|
45
|
+
inset-block-start: 0;
|
|
46
46
|
color: #5d7079;
|
|
47
47
|
color: var(--color-content-secondary);
|
|
48
48
|
transition: color 0.6s ease-in-out;
|
|
@@ -53,11 +53,11 @@
|
|
|
53
53
|
transform: translateX(50%) ;
|
|
54
54
|
}
|
|
55
55
|
.tw-stepper .tooltip {
|
|
56
|
-
|
|
56
|
+
inset-block-start: 24px !important;
|
|
57
57
|
white-space: nowrap;
|
|
58
58
|
}
|
|
59
59
|
.tw-stepper .tooltip .tooltip-inner {
|
|
60
|
-
max-
|
|
60
|
+
max-inline-size: 100%;
|
|
61
61
|
}
|
|
62
62
|
.tw-stepper .tw-tooltip-container {
|
|
63
63
|
display: inline-block;
|
package/src/summary/Summary.css
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
.np-summary {
|
|
2
|
-
min-
|
|
2
|
+
min-inline-size: 280px;
|
|
3
3
|
}
|
|
4
4
|
.np-summary__body {
|
|
5
5
|
flex: 1;
|
|
6
6
|
}
|
|
7
7
|
.np-summary__title {
|
|
8
|
-
margin-
|
|
8
|
+
margin-block-start: 2px;
|
|
9
9
|
line-height: calc(22 / 16);
|
|
10
10
|
font-weight: 600;
|
|
11
11
|
font-weight: var(--font-weight-semi-bold);
|
|
12
12
|
justify-content: space-between;
|
|
13
|
-
margin-
|
|
13
|
+
margin-block-start: 0;
|
|
14
14
|
}
|
|
15
15
|
.np-summary__title span {
|
|
16
16
|
line-height: 1.375;
|
|
17
|
-
margin-
|
|
17
|
+
margin-block-end: 0 !important;
|
|
18
18
|
letter-spacing: normal;
|
|
19
19
|
}
|
|
20
20
|
.np-summary__title .np-info button {
|
|
21
|
-
margin-
|
|
21
|
+
margin-block-start: 0;
|
|
22
22
|
}
|
|
23
23
|
.np-summary__title .np-info__small {
|
|
24
|
-
margin-
|
|
24
|
+
margin-block-start: 0;
|
|
25
25
|
}
|
|
26
26
|
.np-summary__title .np-info .tw-icon {
|
|
27
27
|
color: var(--color-interactive-primary);
|
|
@@ -41,41 +41,41 @@
|
|
|
41
41
|
background-color: transparent;
|
|
42
42
|
border-radius: 50%;
|
|
43
43
|
position: absolute;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
inset-inline-end: calc(8px * -1);
|
|
45
|
+
inset-inline-end: calc(var(--size-8) * -1);
|
|
46
|
+
inset-block-end: -6px;
|
|
47
47
|
}
|
|
48
48
|
[dir="rtl"] .np-summary__icon :nth-child(2) {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
49
|
+
inset-inline-start: calc(8px * -1);
|
|
50
|
+
inset-inline-start: calc(var(--size-8) * -1);
|
|
51
|
+
inset-inline-end: auto;
|
|
52
|
+
inset-inline-end: initial;
|
|
53
53
|
}
|
|
54
54
|
.np-summary__description {
|
|
55
|
-
margin-
|
|
56
|
-
margin-
|
|
55
|
+
margin-block-start: 4px;
|
|
56
|
+
margin-block-start: var(--size-4);
|
|
57
57
|
font-size: 0.875rem;
|
|
58
58
|
font-size: var(--font-size-14);
|
|
59
59
|
line-height: calc(20 / 14);
|
|
60
60
|
color: #5d7079;
|
|
61
61
|
color: var(--color-content-secondary);
|
|
62
|
-
padding-
|
|
63
|
-
padding-
|
|
62
|
+
padding-inline-end: calc(24px + 8px);
|
|
63
|
+
padding-inline-end: calc(var(--size-24) + var(--size-8));
|
|
64
64
|
}
|
|
65
65
|
[dir="rtl"] .np-summary__description {
|
|
66
|
-
padding-
|
|
67
|
-
padding-
|
|
68
|
-
padding-
|
|
66
|
+
padding-inline-start: calc(24px + 8px);
|
|
67
|
+
padding-inline-start: calc(var(--size-24) + var(--size-8));
|
|
68
|
+
padding-inline-end: 0;
|
|
69
69
|
}
|
|
70
70
|
.np-summary__description-icon {
|
|
71
|
-
margin-
|
|
72
|
-
margin-
|
|
71
|
+
margin-block-start: 4px;
|
|
72
|
+
margin-block-start: var(--size-4);
|
|
73
73
|
}
|
|
74
74
|
.np-summary__action {
|
|
75
|
-
margin-
|
|
76
|
-
margin-
|
|
75
|
+
margin-block-start: 4px;
|
|
76
|
+
margin-block-start: var(--size-4);
|
|
77
77
|
}
|
|
78
78
|
.np-summary + .np-summary {
|
|
79
|
-
margin-
|
|
80
|
-
margin-
|
|
79
|
+
margin-block-start: 24px;
|
|
80
|
+
margin-block-start: var(--size-24);
|
|
81
81
|
}
|
package/src/switch/Switch.css
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
box-sizing: border-box;
|
|
4
4
|
display: inline-flex;
|
|
5
5
|
overflow: hidden;
|
|
6
|
-
|
|
6
|
+
inline-size: 50px;
|
|
7
7
|
padding: 2px;
|
|
8
8
|
border-radius: 16px;
|
|
9
9
|
-webkit-user-select: none;
|
|
@@ -48,14 +48,15 @@
|
|
|
48
48
|
cursor: not-allowed !important;
|
|
49
49
|
}
|
|
50
50
|
.np-theme-personal .np-switch {
|
|
51
|
-
padding: 1px
|
|
51
|
+
padding-block: 1px;
|
|
52
|
+
padding-inline: 2px;
|
|
52
53
|
}
|
|
53
54
|
.np-theme-personal .np-switch--checked {
|
|
54
55
|
background: var(--color-interactive-primary);
|
|
55
56
|
}
|
|
56
57
|
.np-theme-personal .np-switch--thumb {
|
|
57
|
-
|
|
58
|
-
|
|
58
|
+
inline-size: 20px;
|
|
59
|
+
block-size: 20px;
|
|
59
60
|
margin: 3px;
|
|
60
61
|
border-radius: 50%;
|
|
61
62
|
background-color: #ffffff;
|
package/src/table/Table.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
.np-table {
|
|
2
|
-
|
|
2
|
+
inline-size: 100%;
|
|
3
3
|
background-color: transparent;
|
|
4
4
|
}
|
|
5
5
|
.np-table-outer-container {
|
|
@@ -17,16 +17,16 @@
|
|
|
17
17
|
outline-offset: 0;
|
|
18
18
|
}
|
|
19
19
|
.np-table-outer-container--center {
|
|
20
|
-
margin-
|
|
21
|
-
margin-
|
|
20
|
+
margin-inline-end: auto;
|
|
21
|
+
margin-inline-start: auto;
|
|
22
22
|
}
|
|
23
23
|
@media (max-width: 767px) {
|
|
24
24
|
.np-table-outer-container--center {
|
|
25
|
-
|
|
25
|
+
inline-size: 100%;
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
.np-table-outer-container--full-width {
|
|
29
|
-
|
|
29
|
+
inline-size: 100%;
|
|
30
30
|
}
|
|
31
31
|
.np-table-container {
|
|
32
32
|
padding: 8px;
|
|
@@ -52,10 +52,10 @@
|
|
|
52
52
|
background-image: linear-gradient(to right, var(--color-contrast-overlay), var(--color-contrast-overlay)), linear-gradient(to right, var(--color-contrast-overlay), var(--color-contrast-overlay)), linear-gradient(to right, #000000, rgba(0, 0, 0, 0)), linear-gradient(to left, #000000, rgba(0, 0, 0, 0));
|
|
53
53
|
}
|
|
54
54
|
.np-table-row:last-child .np-table-cell:first-child {
|
|
55
|
-
border-
|
|
55
|
+
border-end-start-radius: 10px;
|
|
56
56
|
}
|
|
57
57
|
.np-table-row:last-child .np-table-cell:last-child {
|
|
58
|
-
border-
|
|
58
|
+
border-end-end-radius: 10px;
|
|
59
59
|
}
|
|
60
60
|
.np-table-row:focus {
|
|
61
61
|
outline: none;
|
|
@@ -75,40 +75,40 @@
|
|
|
75
75
|
display: none;
|
|
76
76
|
content: "";
|
|
77
77
|
position: absolute;
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
78
|
+
block-size: 100%;
|
|
79
|
+
inline-size: 100%;
|
|
80
|
+
inset-block-start: 0;
|
|
81
|
+
inset-inline-start: 0;
|
|
82
82
|
background-color: var(--color-background-screen-hover);
|
|
83
83
|
}
|
|
84
84
|
.np-table-row--clickable .np-table-cell:first-child:before,
|
|
85
85
|
.np-table-row--clickable .np-table-cell:last-child:before {
|
|
86
|
-
|
|
87
|
-
|
|
86
|
+
inline-size: calc(100% - 8px);
|
|
87
|
+
inline-size: calc(100% - var(--size-8));
|
|
88
88
|
}
|
|
89
89
|
.np-table-row--clickable .np-table-cell:first-child:before {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
border-
|
|
93
|
-
border-
|
|
90
|
+
inset-inline-start: 8px;
|
|
91
|
+
inset-inline-start: var(--size-8);
|
|
92
|
+
border-start-start-radius: 6px;
|
|
93
|
+
border-end-start-radius: 6px;
|
|
94
94
|
}
|
|
95
95
|
.np-table-row--clickable .np-table-cell:last-child:before {
|
|
96
|
-
border-
|
|
97
|
-
border-
|
|
96
|
+
border-start-end-radius: 6px;
|
|
97
|
+
border-end-end-radius: 6px;
|
|
98
98
|
}
|
|
99
99
|
.np-table-row--clickable:hover .np-table-cell:before {
|
|
100
100
|
display: block;
|
|
101
101
|
}
|
|
102
102
|
.np-table-row--clickable:hover:focus-visible .np-table-cell:first-child:before,
|
|
103
103
|
.np-table-row--clickable:hover:focus-visible .np-table-cell:last-child:before {
|
|
104
|
-
|
|
104
|
+
inline-size: 100%;
|
|
105
105
|
}
|
|
106
106
|
.np-table-row--clickable:hover:focus-visible .np-table-cell:first-child:before {
|
|
107
|
-
|
|
107
|
+
inset-inline-start: 0;
|
|
108
108
|
}
|
|
109
109
|
.np-table-row--cosmetic .np-table-cell {
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
block-size: 8px;
|
|
111
|
+
block-size: var(--size-8);
|
|
112
112
|
padding: 0;
|
|
113
113
|
}
|
|
114
114
|
.np-table-header,
|
|
@@ -117,34 +117,34 @@
|
|
|
117
117
|
}
|
|
118
118
|
.np-table-header:first-child,
|
|
119
119
|
.np-table-cell:first-child {
|
|
120
|
-
padding-
|
|
121
|
-
padding-
|
|
120
|
+
padding-inline-start: 16px;
|
|
121
|
+
padding-inline-start: var(--size-16);
|
|
122
122
|
}
|
|
123
123
|
.np-table-header:first-child .np-table-header-content,
|
|
124
124
|
.np-table-cell:first-child .np-table-header-content,
|
|
125
125
|
.np-table-header:first-child .np-table-cell-content,
|
|
126
126
|
.np-table-cell:first-child .np-table-cell-content {
|
|
127
|
-
padding-
|
|
127
|
+
padding-inline-start: 0;
|
|
128
128
|
}
|
|
129
129
|
.np-table-header:last-child,
|
|
130
130
|
.np-table-cell:last-child {
|
|
131
|
-
padding-
|
|
132
|
-
padding-
|
|
131
|
+
padding-inline-end: 16px;
|
|
132
|
+
padding-inline-end: var(--size-16);
|
|
133
133
|
}
|
|
134
134
|
.np-table-header:last-child .np-table-header-content,
|
|
135
135
|
.np-table-cell:last-child .np-table-header-content,
|
|
136
136
|
.np-table-header:last-child .np-table-cell-content,
|
|
137
137
|
.np-table-cell:last-child .np-table-cell-content {
|
|
138
|
-
padding-
|
|
138
|
+
padding-inline-end: 0;
|
|
139
139
|
}
|
|
140
140
|
.np-table-header.np-table-header--right > .np-text-body-default,
|
|
141
141
|
.np-table-cell.np-table-cell--right > .np-text-body-default {
|
|
142
|
-
text-align:
|
|
142
|
+
text-align: end;
|
|
143
143
|
}
|
|
144
144
|
.np-table-header.np-table-header--right + .np-table-header:not(.np-table-header--right),
|
|
145
145
|
.np-table-cell.np-table-cell--right + .np-table-cell:not(.np-table-cell--right) {
|
|
146
|
-
padding-
|
|
147
|
-
padding-
|
|
146
|
+
padding-inline-start: calc(8px + 12px);
|
|
147
|
+
padding-inline-start: calc(var(--size-8) + var(--size-12));
|
|
148
148
|
}
|
|
149
149
|
.np-table-header.np-table-header--right .np-table-header-content,
|
|
150
150
|
.np-table-cell.np-table-cell--right .np-table-content {
|
|
@@ -157,20 +157,20 @@
|
|
|
157
157
|
justify-content: start;
|
|
158
158
|
}
|
|
159
159
|
.np-table-header {
|
|
160
|
-
min-
|
|
161
|
-
padding-
|
|
162
|
-
padding-
|
|
163
|
-
padding-
|
|
164
|
-
padding-
|
|
165
|
-
padding-
|
|
166
|
-
padding-
|
|
160
|
+
min-inline-size: 160px;
|
|
161
|
+
padding-inline-end: 8px;
|
|
162
|
+
padding-inline-end: var(--size-8);
|
|
163
|
+
padding-block-end: 8px;
|
|
164
|
+
padding-block-end: var(--size-8);
|
|
165
|
+
padding-inline-start: 8px;
|
|
166
|
+
padding-inline-start: var(--size-8);
|
|
167
167
|
background-color: rgba(134,167,189,0.10196);
|
|
168
168
|
background-color: var(--color-background-neutral);
|
|
169
169
|
color: var(--color-interactive-primary);
|
|
170
170
|
}
|
|
171
171
|
.np-table-header-content {
|
|
172
|
-
padding-
|
|
173
|
-
padding-
|
|
172
|
+
padding-block-start: 5px;
|
|
173
|
+
padding-block-end: 5px;
|
|
174
174
|
white-space: nowrap;
|
|
175
175
|
line-height: 1.375rem;
|
|
176
176
|
line-height: var(--line-height-22);
|
|
@@ -181,33 +181,35 @@
|
|
|
181
181
|
color: var(--color-sentiment-negative);
|
|
182
182
|
}
|
|
183
183
|
.np-table-header--action {
|
|
184
|
-
min-
|
|
184
|
+
min-inline-size: 0;
|
|
185
185
|
padding: 0;
|
|
186
186
|
}
|
|
187
187
|
.np-table-cell {
|
|
188
|
-
padding: 16px
|
|
189
|
-
padding:
|
|
188
|
+
padding-block: 16px;
|
|
189
|
+
padding-inline: 8px;
|
|
190
|
+
padding-block: var(--size-16);
|
|
191
|
+
padding-inline: var(--size-8);
|
|
190
192
|
position: relative;
|
|
191
193
|
}
|
|
192
194
|
.np-table-cell--cosmetic {
|
|
193
195
|
padding: 0;
|
|
194
196
|
}
|
|
195
197
|
.np-table-cell--primary {
|
|
196
|
-
min-
|
|
198
|
+
min-inline-size: 200px;
|
|
197
199
|
}
|
|
198
200
|
.np-table-cell--currency .np-text-body-default {
|
|
199
201
|
white-space: nowrap;
|
|
200
202
|
}
|
|
201
203
|
.np-table-cell .tw-chevron {
|
|
202
|
-
margin-
|
|
203
|
-
margin-
|
|
204
|
+
margin-inline-start: 8px;
|
|
205
|
+
margin-inline-start: var(--size-8);
|
|
204
206
|
}
|
|
205
207
|
.np-table-cell-separator {
|
|
206
|
-
margin-
|
|
207
|
-
margin-
|
|
208
|
-
margin-
|
|
209
|
-
margin-
|
|
210
|
-
|
|
208
|
+
margin-block-start: 4px;
|
|
209
|
+
margin-block-start: var(--size-4);
|
|
210
|
+
margin-block-end: 4px;
|
|
211
|
+
margin-block-end: var(--size-4);
|
|
212
|
+
block-size: 1px;
|
|
211
213
|
background-color: rgba(134,167,189,0.10196);
|
|
212
214
|
background-color: var(--color-background-neutral);
|
|
213
215
|
padding: 0;
|
|
@@ -226,12 +228,13 @@
|
|
|
226
228
|
color: var(--color-sentiment-negative);
|
|
227
229
|
}
|
|
228
230
|
.np-table-cell .tw-loader {
|
|
229
|
-
margin: 150px
|
|
231
|
+
margin-block: 150px;
|
|
232
|
+
margin-inline: auto;
|
|
230
233
|
}
|
|
231
234
|
@media (max-width: 320px) {
|
|
232
235
|
.np-table-cell .tw-loader {
|
|
233
|
-
margin-
|
|
234
|
-
margin-
|
|
236
|
+
margin-block-start: 70px;
|
|
237
|
+
margin-block-end: 70px;
|
|
235
238
|
}
|
|
236
239
|
}
|
|
237
240
|
.np-table-content {
|
|
@@ -269,6 +272,6 @@
|
|
|
269
272
|
align-items: center;
|
|
270
273
|
}
|
|
271
274
|
.np-table-empty-data .status-circle {
|
|
272
|
-
margin-
|
|
273
|
-
margin-
|
|
275
|
+
margin-inline-end: 12px;
|
|
276
|
+
margin-inline-end: var(--size-12);
|
|
274
277
|
}
|
package/src/tabs/Tabs.css
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
text-align: center;
|
|
8
8
|
padding: 8px;
|
|
9
9
|
padding: var(--size-8);
|
|
10
|
-
margin-
|
|
10
|
+
margin-block-end: -2px;
|
|
11
11
|
color: #37517e;
|
|
12
12
|
color: var(--color-content-primary);
|
|
13
13
|
font-weight: 600;
|
|
@@ -63,22 +63,23 @@
|
|
|
63
63
|
list-style: none;
|
|
64
64
|
padding: 0;
|
|
65
65
|
margin: 0;
|
|
66
|
-
border-
|
|
67
|
-
border-
|
|
66
|
+
border-block-end: 1px solid rgba(0,0,0,0.10196);
|
|
67
|
+
border-block-end: 1px solid #0000001a;
|
|
68
|
+
border-block-end: 1px solid var(--color-border-neutral);
|
|
68
69
|
}
|
|
69
70
|
.tabs__line {
|
|
70
|
-
|
|
71
|
+
block-size: 2px;
|
|
71
72
|
background-color: #00a2dd;
|
|
72
73
|
background-color: var(--color-interactive-accent);
|
|
73
74
|
transition: transform cubic-bezier(0, 0.94, 0.62, 1) 350ms;
|
|
74
75
|
position: relative;
|
|
75
|
-
|
|
76
|
+
inset-block-end: -1px;
|
|
76
77
|
}
|
|
77
78
|
.np-theme-personal .tabs__line {
|
|
78
79
|
background-color: var(--color-interactive-primary);
|
|
79
80
|
}
|
|
80
81
|
.tabs__panel-container {
|
|
81
|
-
|
|
82
|
+
inline-size: 100%;
|
|
82
83
|
}
|
|
83
84
|
.tabs__slider {
|
|
84
85
|
display: flex;
|
|
@@ -97,25 +98,30 @@
|
|
|
97
98
|
opacity: 0;
|
|
98
99
|
}
|
|
99
100
|
.tabs--inverse .tabs__tab-list {
|
|
100
|
-
border-
|
|
101
|
-
border-
|
|
101
|
+
border-block-end-color: rgba(0,0,0,0.10196);
|
|
102
|
+
border-block-end-color: #0000001a;
|
|
103
|
+
border-block-end-color: var(--color-border-neutral);
|
|
102
104
|
}
|
|
103
105
|
.tabs--inverse .tabs__tab:not(.tabs__tab--selected) {
|
|
104
106
|
color: #fff;
|
|
105
107
|
}
|
|
106
108
|
.tabs.tabs--auto-width .tabs__tab {
|
|
107
109
|
display: inline-flex;
|
|
108
|
-
min-
|
|
109
|
-
min-
|
|
110
|
-
padding: 0
|
|
111
|
-
padding:
|
|
110
|
+
min-block-size: 40px;
|
|
111
|
+
min-block-size: var(--size-40);
|
|
112
|
+
padding-block: 0;
|
|
113
|
+
padding-inline: 12px;
|
|
114
|
+
padding-block: 0;
|
|
115
|
+
padding-inline: var(--size-12);
|
|
112
116
|
justify-content: center;
|
|
113
117
|
align-items: center;
|
|
114
118
|
vertical-align: middle;
|
|
115
119
|
}
|
|
116
120
|
@media (min-width: 576px) {
|
|
117
121
|
.tabs.tabs--auto-width .tabs__tab {
|
|
118
|
-
padding: 0
|
|
119
|
-
padding:
|
|
122
|
+
padding-block: 0;
|
|
123
|
+
padding-inline: 24px;
|
|
124
|
+
padding-block: 0;
|
|
125
|
+
padding-inline: var(--size-24);
|
|
120
126
|
}
|
|
121
127
|
}
|