@transferwise/components 46.1.0 → 46.2.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/README.md +3 -5
- package/build/index.esm.js +44 -23
- package/build/index.esm.js.map +1 -1
- package/build/index.js +44 -23
- package/build/index.js.map +1 -1
- package/build/main.css +5494 -1
- package/build/styles/accordion/Accordion.css +60 -1
- package/build/styles/actionButton/ActionButton.css +53 -1
- package/build/styles/avatar/Avatar.css +205 -1
- package/build/styles/badge/Badge.css +68 -1
- package/build/styles/button/Button.css +20 -1
- package/build/styles/card/Card.css +100 -1
- package/build/styles/checkboxButton/CheckboxButton.css +24 -1
- package/build/styles/chips/Chip.css +190 -1
- package/build/styles/circularButton/CircularButton.css +211 -1
- package/build/styles/common/Option/Option.css +100 -1
- package/build/styles/common/RadioButton/RadioButton.css +4 -1
- package/build/styles/common/bottomSheet/BottomSheet.css +53 -1
- package/build/styles/common/card/Card.css +49 -1
- package/build/styles/common/closeButton/CloseButton.css +79 -1
- package/build/styles/common/panel/Panel.css +73 -1
- package/build/styles/criticalBanner/CriticalCommsBanner.css +76 -1
- package/build/styles/dateInput/DateInput.css +3 -1
- package/build/styles/dateLookup/DateLookup.css +98 -1
- package/build/styles/dateLookup/dateTrigger/DateTrigger.css +68 -1
- package/build/styles/decision/Decision.css +93 -1
- package/build/styles/definitionList/DefinitionList.css +53 -1
- package/build/styles/dimmer/Dimmer.css +70 -1
- package/build/styles/drawer/Drawer.css +100 -1
- package/build/styles/dropFade/DropFade.css +19 -1
- package/build/styles/dynamicFieldDefinitionList/FormattedValue/FormattedValue.css +5 -1
- package/build/styles/emphasis/Emphasis.css +31 -1
- package/build/styles/flowNavigation/FlowNavigation.css +72 -1
- package/build/styles/flowNavigation/animatedLabel/AnimatedLabel.css +21 -1
- package/build/styles/flowNavigation/backButton/BackButton.css +32 -1
- package/build/styles/header/Header.css +28 -1
- package/build/styles/image/Image.css +13 -1
- package/build/styles/info/Info.css +32 -1
- package/build/styles/inputs/Input.css +105 -1
- package/build/styles/inputs/InputGroup.css +62 -1
- package/build/styles/inputs/SelectInput.css +374 -1
- package/build/styles/inputs/TextArea.css +109 -1
- package/build/styles/instructionsList/InstructionsList.css +22 -1
- package/build/styles/link/Link.css +15 -1
- package/build/styles/listItem/ListItem.css +6 -1
- package/build/styles/loader/Loader.css +313 -1
- package/build/styles/logo/Logo.css +26 -1
- package/build/styles/main.css +5494 -1
- package/build/styles/modal/Modal.css +155 -1
- package/build/styles/moneyInput/MoneyInput.css +66 -1
- package/build/styles/navigationOption/NavigationOption.css +69 -1
- package/build/styles/navigationOptionsList/NavigationOptionsList.css +13 -1
- package/build/styles/nudge/Nudge.css +179 -1
- package/build/styles/overlayHeader/OverlayHeader.css +15 -1
- package/build/styles/phoneNumberInput/PhoneNumberInput.css +23 -1
- package/build/styles/popover/Popover.css +43 -1
- package/build/styles/progress/Progress.css +43 -1
- package/build/styles/progressBar/ProgressBar.css +14 -1
- package/build/styles/promoCard/PromoCard.css +186 -1
- package/build/styles/section/Section.css +10 -1
- package/build/styles/select/Select.css +309 -1
- package/build/styles/slidingPanel/SlidingPanel.css +105 -1
- package/build/styles/snackbar/Snackbar.css +93 -1
- package/build/styles/statusIcon/StatusIcon.css +78 -1
- package/build/styles/stepper/Stepper.css +108 -1
- package/build/styles/summary/Summary.css +81 -1
- package/build/styles/switch/Switch.css +68 -1
- package/build/styles/tabs/Tabs.css +121 -1
- package/build/styles/tile/Tile.css +55 -1
- package/build/styles/tooltip/Tooltip.css +50 -1
- package/build/styles/typeahead/Typeahead.css +183 -1
- package/build/styles/typeahead/typeaheadOption/TypeaheadOption.css +9 -1
- package/build/styles/upload/Upload.css +15 -1
- package/build/styles/uploadInput/UploadInput.css +71 -1
- package/build/styles/uploadInput/uploadButton/UploadButton.css +49 -1
- package/build/styles/uploadInput/uploadItem/UploadItem.css +74 -1
- package/build/types/accordion/Accordion.d.ts +1 -0
- package/build/types/accordion/Accordion.d.ts.map +1 -1
- package/build/types/accordion/AccordionItem/AccordionItem.d.ts +3 -0
- package/build/types/accordion/AccordionItem/AccordionItem.d.ts.map +1 -1
- package/build/types/inputs/SelectInput.d.ts +6 -3
- package/build/types/inputs/SelectInput.d.ts.map +1 -1
- package/build/types/inputs/_BottomSheet.d.ts +2 -1
- package/build/types/inputs/_BottomSheet.d.ts.map +1 -1
- package/build/types/inputs/_Popover.d.ts +2 -1
- package/build/types/inputs/_Popover.d.ts.map +1 -1
- package/build/types/moneyInput/MoneyInput.d.ts.map +1 -1
- package/build/types/select/option/Option.d.ts.map +1 -1
- package/build/types/typeahead/util/highlight.d.ts +1 -1
- package/build/types/typeahead/util/highlight.d.ts.map +1 -1
- package/package.json +5 -11
- package/src/accordion/Accordion.css +60 -1
- package/src/accordion/Accordion.story.tsx +8 -0
- package/src/accordion/Accordion.tsx +2 -0
- package/src/accordion/AccordionItem/AccordionItem.tsx +5 -0
- package/src/actionButton/ActionButton.css +53 -1
- package/src/avatar/Avatar.css +205 -1
- package/src/badge/Badge.css +68 -1
- package/src/button/Button.css +20 -1
- package/src/card/Card.css +100 -1
- package/src/checkboxButton/CheckboxButton.css +24 -1
- package/src/chips/Chip.css +190 -1
- package/src/circularButton/CircularButton.css +211 -1
- package/src/common/Option/Option.css +100 -1
- package/src/common/RadioButton/RadioButton.css +4 -1
- package/src/common/bottomSheet/BottomSheet.css +53 -1
- package/src/common/card/Card.css +49 -1
- package/src/common/closeButton/CloseButton.css +79 -1
- package/src/common/panel/Panel.css +73 -1
- package/src/criticalBanner/CriticalCommsBanner.css +76 -1
- package/src/dateInput/DateInput.css +3 -1
- package/src/dateLookup/DateLookup.css +98 -1
- package/src/dateLookup/DateLookup.story.js +12 -8
- package/src/dateLookup/dateTrigger/DateTrigger.css +68 -1
- package/src/decision/Decision.css +93 -1
- package/src/definitionList/DefinitionList.css +53 -1
- package/src/dimmer/Dimmer.css +70 -1
- package/src/drawer/Drawer.css +100 -1
- package/src/dropFade/DropFade.css +19 -1
- package/src/dynamicFieldDefinitionList/FormattedValue/FormattedValue.css +5 -1
- package/src/emphasis/Emphasis.css +31 -1
- package/src/flowNavigation/FlowNavigation.css +72 -1
- package/src/flowNavigation/animatedLabel/AnimatedLabel.css +21 -1
- package/src/flowNavigation/backButton/BackButton.css +32 -1
- package/src/header/Header.css +28 -1
- package/src/image/Image.css +13 -1
- package/src/info/Info.css +32 -1
- package/src/inputs/Input.css +105 -1
- package/src/inputs/InputGroup.css +62 -1
- package/src/inputs/SelectInput.css +374 -1
- package/src/inputs/SelectInput.spec.tsx +52 -3
- package/src/inputs/SelectInput.story.tsx +1 -1
- package/src/inputs/SelectInput.tsx +30 -15
- package/src/inputs/TextArea.css +109 -1
- package/src/inputs/_BottomSheet.tsx +3 -0
- package/src/inputs/_Popover.tsx +3 -0
- package/src/instructionsList/InstructionsList.css +22 -1
- package/src/link/Link.css +15 -1
- package/src/listItem/ListItem.css +6 -1
- package/src/loader/Loader.css +313 -1
- package/src/logo/Logo.css +26 -1
- package/src/main.css +5494 -1
- package/src/modal/Modal.css +155 -1
- package/src/moneyInput/MoneyInput.css +66 -1
- package/src/moneyInput/MoneyInput.js +3 -1
- package/src/moneyInput/MoneyInput.spec.js +4 -1
- package/src/navigationOption/NavigationOption.css +69 -1
- package/src/navigationOptionsList/NavigationOptionsList.css +13 -1
- package/src/nudge/Nudge.css +179 -1
- package/src/overlayHeader/OverlayHeader.css +15 -1
- package/src/phoneNumberInput/PhoneNumberInput.css +23 -1
- package/src/popover/Popover.css +43 -1
- package/src/progress/Progress.css +43 -1
- package/src/progressBar/ProgressBar.css +14 -1
- package/src/promoCard/PromoCard.css +186 -1
- package/src/section/Section.css +10 -1
- package/src/select/Select.css +309 -1
- package/src/select/Select.less +1 -8
- package/src/select/option/Option.spec.js +3 -21
- package/src/select/option/Option.tsx +2 -7
- package/src/slidingPanel/SlidingPanel.css +105 -1
- package/src/snackbar/Snackbar.css +93 -1
- package/src/statusIcon/StatusIcon.css +78 -1
- package/src/stepper/Stepper.css +108 -1
- package/src/summary/Summary.css +81 -1
- package/src/switch/Switch.css +68 -1
- package/src/tabs/Tabs.css +121 -1
- package/src/tile/Tile.css +55 -1
- package/src/tooltip/Tooltip.css +50 -1
- package/src/typeahead/Typeahead.css +183 -1
- package/src/typeahead/typeaheadOption/TypeaheadOption.css +9 -1
- package/src/typeahead/typeaheadOption/TypeaheadOption.js +3 -3
- package/src/typeahead/util/highlight.js +1 -1
- package/src/upload/Upload.css +15 -1
- package/src/uploadInput/UploadInput.css +71 -1
- package/src/uploadInput/uploadButton/UploadButton.css +49 -1
- package/src/uploadInput/uploadItem/UploadItem.css +74 -1
|
@@ -1 +1,190 @@
|
|
|
1
|
-
.np-chip
|
|
1
|
+
.np-chip {
|
|
2
|
+
background-color: transparent;
|
|
3
|
+
border: 1px solid rgba(0,0,0,0.10196);
|
|
4
|
+
border: 1px solid var(--color-border-neutral);
|
|
5
|
+
border-radius: 16px;
|
|
6
|
+
border-radius: var(--size-16);
|
|
7
|
+
color: #5d7079;
|
|
8
|
+
color: var(--color-content-secondary);
|
|
9
|
+
height: 32px;
|
|
10
|
+
height: var(--size-32);
|
|
11
|
+
margin-right: 8px;
|
|
12
|
+
margin-right: var(--size-8);
|
|
13
|
+
padding: 0 12px;
|
|
14
|
+
padding: 0 var(--size-12);
|
|
15
|
+
transition: color 0.15s ease-in-out, border-color 0.15s ease-in-out, background-color 0.15s ease-in-out;
|
|
16
|
+
}
|
|
17
|
+
@media (max-width: 320px) {
|
|
18
|
+
.np-chip {
|
|
19
|
+
height: 40px;
|
|
20
|
+
height: var(--size-40);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
.np-chip:hover {
|
|
24
|
+
cursor: pointer;
|
|
25
|
+
}
|
|
26
|
+
.np-chip .np-chip-label {
|
|
27
|
+
padding-top: 2px;
|
|
28
|
+
}
|
|
29
|
+
.np-chip .np-close-button {
|
|
30
|
+
pointer-events: auto;
|
|
31
|
+
}
|
|
32
|
+
.np-chip:last-child {
|
|
33
|
+
margin-right: 0;
|
|
34
|
+
}
|
|
35
|
+
[dir="rtl"] .np-chip:last-child {
|
|
36
|
+
margin-left: 0;
|
|
37
|
+
margin-right: 0;
|
|
38
|
+
margin-right: initial;
|
|
39
|
+
}
|
|
40
|
+
.np-chip:active {
|
|
41
|
+
background-color: #0081ba;
|
|
42
|
+
background-color: var(--color-interactive-accent-active);
|
|
43
|
+
border-color: #0081ba;
|
|
44
|
+
border-color: var(--color-interactive-accent-active);
|
|
45
|
+
color: #fff;
|
|
46
|
+
}
|
|
47
|
+
.np-chip--selected {
|
|
48
|
+
color: #fff;
|
|
49
|
+
background-color: #00a2dd;
|
|
50
|
+
background-color: var(--color-interactive-accent);
|
|
51
|
+
border-color: #00a2dd;
|
|
52
|
+
border-color: var(--color-interactive-accent);
|
|
53
|
+
pointer-events: none;
|
|
54
|
+
}
|
|
55
|
+
.np-chip--selected:hover,
|
|
56
|
+
.np-chip--selected:active {
|
|
57
|
+
color: #fff;
|
|
58
|
+
background-color: #008fc9;
|
|
59
|
+
background-color: var(--color-interactive-accent-hover);
|
|
60
|
+
border-color: #008fc9;
|
|
61
|
+
border-color: var(--color-interactive-accent-hover);
|
|
62
|
+
}
|
|
63
|
+
.np-chip--selected .np-close-button {
|
|
64
|
+
color: white;
|
|
65
|
+
}
|
|
66
|
+
.np-chip.has-error {
|
|
67
|
+
background: #e74848;
|
|
68
|
+
background: var(--color-interactive-negative);
|
|
69
|
+
color: #fff;
|
|
70
|
+
}
|
|
71
|
+
.np-chip.has-error .np-close-button {
|
|
72
|
+
color: white;
|
|
73
|
+
}
|
|
74
|
+
.np-theme-personal .np-chip.has-error {
|
|
75
|
+
background: var(--color-sentiment-negative);
|
|
76
|
+
}
|
|
77
|
+
.np-theme-personal .np-chip.has-error,
|
|
78
|
+
.np-theme-personal .np-chip.has-error:not(.disabled):not(:disabled):hover,
|
|
79
|
+
.np-theme-personal .np-chip.has-error:not(.disabled):not(:disabled):active {
|
|
80
|
+
color: var(--color-contrast);
|
|
81
|
+
}
|
|
82
|
+
.np-theme-personal .np-chip.has-error:not(.disabled):not(:disabled):hover {
|
|
83
|
+
background: var(--color-sentiment-negative-hover);
|
|
84
|
+
border-color: var(--color-sentiment-negative-hover) !important;
|
|
85
|
+
}
|
|
86
|
+
.np-theme-personal .np-chip.has-error:not(.disabled):not(:disabled):active {
|
|
87
|
+
background: var(--color-sentiment-negative-active);
|
|
88
|
+
border-color: var(--color-sentiment-negative-active) !important;
|
|
89
|
+
}
|
|
90
|
+
.np-theme-personal .np-chip {
|
|
91
|
+
font-weight: 600;
|
|
92
|
+
font-weight: var(--font-weight-semi-bold);
|
|
93
|
+
color: var(--color-interactive-primary);
|
|
94
|
+
padding: 0 16px;
|
|
95
|
+
padding: 0 var(--size-16);
|
|
96
|
+
border-color: #c9cbce;
|
|
97
|
+
border-color: var(--color-interactive-secondary);
|
|
98
|
+
}
|
|
99
|
+
.np-theme-personal .np-chip:not(.disabled):not(:disabled):hover {
|
|
100
|
+
color: var(--color-interactive-primary-hover);
|
|
101
|
+
background-color: var(--color-background-screen-hover);
|
|
102
|
+
border-color: #b5b7ba;
|
|
103
|
+
border-color: var(--color-interactive-secondary-hover);
|
|
104
|
+
}
|
|
105
|
+
.np-theme-personal .np-chip:not(.disabled):not(:disabled):active {
|
|
106
|
+
color: var(--color-interactive-primary-active);
|
|
107
|
+
background-color: var(--color-background-screen-active);
|
|
108
|
+
border-color: #a7a9ab;
|
|
109
|
+
border-color: var(--color-interactive-secondary-active);
|
|
110
|
+
}
|
|
111
|
+
.np-theme-personal .np-chip .np-close-button {
|
|
112
|
+
margin-right: calc(8px * -1);
|
|
113
|
+
margin-right: calc(var(--size-8) * -1);
|
|
114
|
+
border-radius: inherit;
|
|
115
|
+
}
|
|
116
|
+
.np-theme-personal .np-chip .np-close-button,
|
|
117
|
+
.np-theme-personal .np-chip .np-close-button:hover,
|
|
118
|
+
.np-theme-personal .np-chip .np-close-button:not(.disabled):not(:disabled):hover,
|
|
119
|
+
.np-theme-personal .np-chip .np-close-button:not(.disabled):not(:disabled):active {
|
|
120
|
+
color: inherit !important;
|
|
121
|
+
background-color: transparent !important;
|
|
122
|
+
}
|
|
123
|
+
.np-theme-personal .np-chip:not(.disabled):not(:disabled):focus-visible,
|
|
124
|
+
.np-theme-personal .np-chip:not(.disabled):not(:disabled):has(:focus-visible) {
|
|
125
|
+
outline: var(--ring-outline-color) solid var(--ring-outline-width);
|
|
126
|
+
outline-offset: var(--ring-outline-offset);
|
|
127
|
+
}
|
|
128
|
+
.np-theme-personal .np-chip:not(.disabled):not(:disabled):focus-visible .np-close-button,
|
|
129
|
+
.np-theme-personal .np-chip:not(.disabled):not(:disabled):has(:focus-visible) .np-close-button {
|
|
130
|
+
background: transparent;
|
|
131
|
+
outline: none;
|
|
132
|
+
}
|
|
133
|
+
.np-theme-personal .np-chip:not(.disabled):not(:disabled):focus-visible .np-close-button:hover,
|
|
134
|
+
.np-theme-personal .np-chip:not(.disabled):not(:disabled):has(:focus-visible) .np-close-button:hover {
|
|
135
|
+
color: inherit !important;
|
|
136
|
+
}
|
|
137
|
+
.np-theme-personal .np-chip.np-chip--removable {
|
|
138
|
+
position: relative;
|
|
139
|
+
}
|
|
140
|
+
.np-theme-personal .np-chip.np-chip--removable .np-text-body-default-bold {
|
|
141
|
+
padding-right: 24px;
|
|
142
|
+
padding-right: var(--size-24);
|
|
143
|
+
}
|
|
144
|
+
@media (max-width: 320px) {
|
|
145
|
+
.np-theme-personal .np-chip.np-chip--removable .np-text-body-default-bold {
|
|
146
|
+
padding-right: 48px;
|
|
147
|
+
padding-right: var(--size-48);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
.np-theme-personal .np-chip.np-chip--removable .np-close-button {
|
|
151
|
+
justify-content: flex-end;
|
|
152
|
+
top: 0;
|
|
153
|
+
left: 0;
|
|
154
|
+
position: absolute;
|
|
155
|
+
padding-right: 8px;
|
|
156
|
+
padding-right: var(--size-8);
|
|
157
|
+
height: 100%;
|
|
158
|
+
width: 100%;
|
|
159
|
+
}
|
|
160
|
+
.np-theme-personal .np-chip:has(.disabled, :disabled):focus-visible {
|
|
161
|
+
outline: none;
|
|
162
|
+
}
|
|
163
|
+
.np-theme-personal .np-chip--selected,
|
|
164
|
+
.np-theme-personal .np-chip--valid {
|
|
165
|
+
color: var(--color-interactive-contrast);
|
|
166
|
+
background-color: var(--color-interactive-primary);
|
|
167
|
+
border-color: var(--color-interactive-primary);
|
|
168
|
+
}
|
|
169
|
+
.np-theme-personal .np-chip--selected:not(.disabled):not(:disabled):hover,
|
|
170
|
+
.np-theme-personal .np-chip--valid:not(.disabled):not(:disabled):hover {
|
|
171
|
+
color: var(--color-interactive-contrast-hover);
|
|
172
|
+
background-color: var(--color-interactive-primary-hover);
|
|
173
|
+
border-color: var(--color-interactive-primary-hover);
|
|
174
|
+
}
|
|
175
|
+
.np-theme-personal .np-chip--selected:not(.disabled):not(:disabled):active,
|
|
176
|
+
.np-theme-personal .np-chip--valid:not(.disabled):not(:disabled):active {
|
|
177
|
+
color: var(--color-interactive-contrast-active);
|
|
178
|
+
background-color: var(--color-interactive-primary-active);
|
|
179
|
+
border-color: var(--color-interactive-primary-active);
|
|
180
|
+
}
|
|
181
|
+
.np-theme-personal .np-chip--selected .np-close-button,
|
|
182
|
+
.np-theme-personal .np-chip--valid .np-close-button {
|
|
183
|
+
color: inherit;
|
|
184
|
+
}
|
|
185
|
+
.np-theme-personal .np-chip--selected .np-close-button:focus,
|
|
186
|
+
.np-theme-personal .np-chip--valid .np-close-button:focus,
|
|
187
|
+
.np-theme-personal .np-chip--selected .np-close-button:focus-within,
|
|
188
|
+
.np-theme-personal .np-chip--valid .np-close-button:focus-within {
|
|
189
|
+
outline: none;
|
|
190
|
+
}
|
|
@@ -1 +1,211 @@
|
|
|
1
|
-
.np-circular-btn
|
|
1
|
+
.np-circular-btn {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
align-items: center;
|
|
5
|
+
text-align: center;
|
|
6
|
+
cursor: pointer;
|
|
7
|
+
position: relative;
|
|
8
|
+
}
|
|
9
|
+
.np-circular-btn input[type="button"] {
|
|
10
|
+
min-height: 40px;
|
|
11
|
+
min-height: var(--size-40);
|
|
12
|
+
width: 40px;
|
|
13
|
+
width: var(--size-40);
|
|
14
|
+
height: 40px;
|
|
15
|
+
height: var(--size-40);
|
|
16
|
+
padding: 0;
|
|
17
|
+
border-radius: 50%;
|
|
18
|
+
margin-bottom: 8px;
|
|
19
|
+
margin-bottom: var(--size-8);
|
|
20
|
+
}
|
|
21
|
+
.np-theme-personal .np-circular-btn input[type="button"] {
|
|
22
|
+
min-height: 56px;
|
|
23
|
+
min-height: var(--size-56);
|
|
24
|
+
width: 56px;
|
|
25
|
+
width: var(--size-56);
|
|
26
|
+
height: 56px;
|
|
27
|
+
height: var(--size-56);
|
|
28
|
+
}
|
|
29
|
+
@media (max-width: 320px) {
|
|
30
|
+
.np-theme-personal .np-circular-btn input[type="button"] {
|
|
31
|
+
min-height: 64px;
|
|
32
|
+
min-height: var(--size-64);
|
|
33
|
+
width: 64px;
|
|
34
|
+
width: var(--size-64);
|
|
35
|
+
height: 64px;
|
|
36
|
+
height: var(--size-64);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
.np-circular-btn .tw-icon {
|
|
40
|
+
position: absolute;
|
|
41
|
+
top: 16px;
|
|
42
|
+
top: var(--size-16);
|
|
43
|
+
pointer-events: none;
|
|
44
|
+
color: white;
|
|
45
|
+
transition: color 0.15s ease-in-out;
|
|
46
|
+
width: 100%;
|
|
47
|
+
left: 0;
|
|
48
|
+
}
|
|
49
|
+
[dir="rtl"] .np-circular-btn .tw-icon {
|
|
50
|
+
right: 0;
|
|
51
|
+
left: auto;
|
|
52
|
+
left: initial;
|
|
53
|
+
}
|
|
54
|
+
@media (max-width: 320px) {
|
|
55
|
+
.np-circular-btn .tw-icon {
|
|
56
|
+
top: 8px;
|
|
57
|
+
top: var(--size-8);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
.np-circular-btn .tw-icon > svg {
|
|
61
|
+
margin: 0 auto;
|
|
62
|
+
}
|
|
63
|
+
.np-theme-personal .np-circular-btn {
|
|
64
|
+
/* stylelint-disable-next-line no-duplicate-selectors */
|
|
65
|
+
}
|
|
66
|
+
.np-theme-personal .np-circular-btn .tw-icon,
|
|
67
|
+
.np-theme-personal .np-circular-btn .tw-icon:hover,
|
|
68
|
+
.np-theme-personal .np-circular-btn .tw-icon:active {
|
|
69
|
+
color: var(--color-interactive-control);
|
|
70
|
+
}
|
|
71
|
+
.np-theme-personal .np-circular-btn.negative .tw-icon,
|
|
72
|
+
.np-theme-personal .np-circular-btn.negative.secondary:not(.disabled):not(:disabled):hover .tw-icon,
|
|
73
|
+
.np-theme-personal .np-circular-btn.negative.secondary:not(.disabled):not(:disabled):active .tw-icon {
|
|
74
|
+
color: var(--color-contrast) !important;
|
|
75
|
+
}
|
|
76
|
+
.np-theme-personal .np-circular-btn.negative.secondary:not(.disabled):not(:disabled) .tw-icon {
|
|
77
|
+
color: var(--color-sentiment-negative) !important;
|
|
78
|
+
}
|
|
79
|
+
.np-circular-btn__label {
|
|
80
|
+
transition: color 0.15s ease-in-out;
|
|
81
|
+
font-size: 0.875rem;
|
|
82
|
+
font-size: var(--font-size-14);
|
|
83
|
+
font-weight: 600;
|
|
84
|
+
font-weight: var(--font-weight-semi-bold);
|
|
85
|
+
}
|
|
86
|
+
.np-circular-btn.accent .np-circular-btn__label {
|
|
87
|
+
color: #00a2dd;
|
|
88
|
+
color: var(--color-interactive-accent);
|
|
89
|
+
}
|
|
90
|
+
.np-circular-btn.accent:not(.disabled):not(:disabled):hover .np-circular-btn__label {
|
|
91
|
+
color: #008fc9;
|
|
92
|
+
color: var(--color-interactive-accent-hover);
|
|
93
|
+
}
|
|
94
|
+
.np-circular-btn.accent:active .np-circular-btn__label,
|
|
95
|
+
.np-circular-btn.accent input[type="button"]:active ~ .np-circular-btn__label {
|
|
96
|
+
color: #0081ba;
|
|
97
|
+
color: var(--color-interactive-accent-active);
|
|
98
|
+
}
|
|
99
|
+
.np-circular-btn.accent.secondary .tw-icon {
|
|
100
|
+
color: #00a2dd;
|
|
101
|
+
color: var(--color-interactive-accent);
|
|
102
|
+
}
|
|
103
|
+
.np-circular-btn.accent.secondary:not(.disabled):not(:disabled):hover .tw-icon,
|
|
104
|
+
.np-circular-btn.accent.secondary input[type="button"]:active + .tw-icon {
|
|
105
|
+
color: white;
|
|
106
|
+
}
|
|
107
|
+
.np-circular-btn.positive .np-circular-btn__label {
|
|
108
|
+
color: #2ead4b;
|
|
109
|
+
color: var(--color-interactive-positive);
|
|
110
|
+
}
|
|
111
|
+
.np-circular-btn.positive:not(.disabled):not(:disabled):hover .np-circular-btn__label {
|
|
112
|
+
color: #069939;
|
|
113
|
+
color: var(--color-interactive-positive-hover);
|
|
114
|
+
}
|
|
115
|
+
.np-circular-btn.positive:active .np-circular-btn__label,
|
|
116
|
+
.np-circular-btn.positive input[type="button"]:active ~ .np-circular-btn__label {
|
|
117
|
+
color: #008b2b;
|
|
118
|
+
color: var(--color-interactive-positive-active);
|
|
119
|
+
}
|
|
120
|
+
.np-circular-btn.positive.secondary .tw-icon {
|
|
121
|
+
color: #2ead4b;
|
|
122
|
+
color: var(--color-interactive-positive);
|
|
123
|
+
}
|
|
124
|
+
.np-circular-btn.positive.secondary:not(.disabled):not(:disabled):hover .tw-icon,
|
|
125
|
+
.np-circular-btn.positive.secondary input[type="button"]:active + .tw-icon {
|
|
126
|
+
color: white;
|
|
127
|
+
}
|
|
128
|
+
.np-circular-btn.negative .np-circular-btn__label {
|
|
129
|
+
color: #e74848;
|
|
130
|
+
color: var(--color-interactive-negative);
|
|
131
|
+
}
|
|
132
|
+
.np-circular-btn.negative:not(.disabled):not(:disabled):hover .np-circular-btn__label {
|
|
133
|
+
color: #d03238;
|
|
134
|
+
color: var(--color-interactive-negative-hover);
|
|
135
|
+
}
|
|
136
|
+
.np-circular-btn.negative:active .np-circular-btn__label,
|
|
137
|
+
.np-circular-btn.negative input[type="button"]:active ~ .np-circular-btn__label {
|
|
138
|
+
color: #bf1e2c;
|
|
139
|
+
color: var(--color-interactive-negative-active);
|
|
140
|
+
}
|
|
141
|
+
.np-circular-btn.negative.secondary .tw-icon {
|
|
142
|
+
color: #e74848;
|
|
143
|
+
color: var(--color-interactive-negative);
|
|
144
|
+
}
|
|
145
|
+
.np-circular-btn.negative.secondary:not(.disabled):not(:disabled):hover .tw-icon,
|
|
146
|
+
.np-circular-btn.negative.secondary input[type="button"]:active + .tw-icon {
|
|
147
|
+
color: white;
|
|
148
|
+
}
|
|
149
|
+
.np-theme-personal .np-circular-btn.accent .np-circular-btn__label {
|
|
150
|
+
color: var(--color-interactive-primary);
|
|
151
|
+
}
|
|
152
|
+
.np-theme-personal .np-circular-btn.accent:not(.disabled):not(:disabled):hover .np-circular-btn__label {
|
|
153
|
+
color: var(--color-interactive-primary-hover);
|
|
154
|
+
}
|
|
155
|
+
.np-theme-personal .np-circular-btn.accent:active .np-circular-btn__label,
|
|
156
|
+
.np-theme-personal .np-circular-btn.accent input[type="button"]:active ~ .np-circular-btn__label {
|
|
157
|
+
color: var(--color-interactive-primary-active);
|
|
158
|
+
}
|
|
159
|
+
.np-theme-personal .np-circular-btn.accent.secondary .tw-icon {
|
|
160
|
+
color: var(--color-interactive-primary);
|
|
161
|
+
}
|
|
162
|
+
.np-theme-personal .np-circular-btn.accent.secondary:not(.disabled):not(:disabled):hover .tw-icon,
|
|
163
|
+
.np-theme-personal .np-circular-btn.accent.secondary input[type="button"]:active + .tw-icon {
|
|
164
|
+
color: white;
|
|
165
|
+
color: var(--color-interactive-control);
|
|
166
|
+
}
|
|
167
|
+
.np-theme-personal .np-circular-btn.accent.secondary:active input[type="button"] + .tw-icon {
|
|
168
|
+
color: var(--color-interactive-control);
|
|
169
|
+
}
|
|
170
|
+
.np-theme-personal .np-circular-btn.positive .np-circular-btn__label {
|
|
171
|
+
color: var(--color-interactive-primary);
|
|
172
|
+
}
|
|
173
|
+
.np-theme-personal .np-circular-btn.positive:not(.disabled):not(:disabled):hover .np-circular-btn__label {
|
|
174
|
+
color: var(--color-interactive-primary-hover);
|
|
175
|
+
}
|
|
176
|
+
.np-theme-personal .np-circular-btn.positive:active .np-circular-btn__label,
|
|
177
|
+
.np-theme-personal .np-circular-btn.positive input[type="button"]:active ~ .np-circular-btn__label {
|
|
178
|
+
color: var(--color-interactive-primary-active);
|
|
179
|
+
}
|
|
180
|
+
.np-theme-personal .np-circular-btn.positive.secondary .tw-icon {
|
|
181
|
+
color: var(--color-interactive-primary);
|
|
182
|
+
}
|
|
183
|
+
.np-theme-personal .np-circular-btn.positive.secondary:not(.disabled):not(:disabled):hover .tw-icon,
|
|
184
|
+
.np-theme-personal .np-circular-btn.positive.secondary input[type="button"]:active + .tw-icon {
|
|
185
|
+
color: white;
|
|
186
|
+
color: var(--color-interactive-control);
|
|
187
|
+
}
|
|
188
|
+
.np-theme-personal .np-circular-btn.positive.secondary:active input[type="button"] + .tw-icon {
|
|
189
|
+
color: var(--color-interactive-control);
|
|
190
|
+
}
|
|
191
|
+
.np-theme-personal .np-circular-btn.negative .np-circular-btn__label {
|
|
192
|
+
color: var(--color-sentiment-negative);
|
|
193
|
+
}
|
|
194
|
+
.np-theme-personal .np-circular-btn.negative:not(.disabled):not(:disabled):hover .np-circular-btn__label {
|
|
195
|
+
color: var(--color-sentiment-negative-hover);
|
|
196
|
+
}
|
|
197
|
+
.np-theme-personal .np-circular-btn.negative:active .np-circular-btn__label,
|
|
198
|
+
.np-theme-personal .np-circular-btn.negative input[type="button"]:active ~ .np-circular-btn__label {
|
|
199
|
+
color: var(--color-sentiment-negative-active);
|
|
200
|
+
}
|
|
201
|
+
.np-theme-personal .np-circular-btn.negative.secondary .tw-icon {
|
|
202
|
+
color: var(--color-sentiment-negative);
|
|
203
|
+
}
|
|
204
|
+
.np-theme-personal .np-circular-btn.negative.secondary:not(.disabled):not(:disabled):hover .tw-icon,
|
|
205
|
+
.np-theme-personal .np-circular-btn.negative.secondary input[type="button"]:active + .tw-icon {
|
|
206
|
+
color: white;
|
|
207
|
+
color: var(--color-interactive-control);
|
|
208
|
+
}
|
|
209
|
+
.np-theme-personal .np-circular-btn.negative.secondary:active input[type="button"] + .tw-icon {
|
|
210
|
+
color: var(--color-interactive-control);
|
|
211
|
+
}
|
|
@@ -1 +1,100 @@
|
|
|
1
|
-
.np-option:has(:focus-visible)
|
|
1
|
+
.np-option:has(:focus-visible) {
|
|
2
|
+
outline: var(--ring-outline-color) solid var(--ring-outline-width);
|
|
3
|
+
outline-offset: 0;
|
|
4
|
+
outline-offset: var(--ring-outline-offset);
|
|
5
|
+
--ring-outline-offset: 0;
|
|
6
|
+
}
|
|
7
|
+
.np-option:has(:focus-visible) *:focus-visible {
|
|
8
|
+
outline: none;
|
|
9
|
+
}
|
|
10
|
+
.np-option .circle-sm {
|
|
11
|
+
width: 40px;
|
|
12
|
+
width: var(--size-40);
|
|
13
|
+
height: 40px;
|
|
14
|
+
height: var(--size-40);
|
|
15
|
+
}
|
|
16
|
+
.np-option__title {
|
|
17
|
+
color: #37517e;
|
|
18
|
+
color: var(--color-content-primary);
|
|
19
|
+
font-size: 1rem;
|
|
20
|
+
font-weight: 600;
|
|
21
|
+
font-weight: var(--font-weight-semi-bold);
|
|
22
|
+
letter-spacing: 0;
|
|
23
|
+
line-height: 1.5;
|
|
24
|
+
line-height: var(--line-height-body);
|
|
25
|
+
margin: 0;
|
|
26
|
+
}
|
|
27
|
+
.np-option__body {
|
|
28
|
+
margin-top: 4px;
|
|
29
|
+
margin-top: var(--size-4);
|
|
30
|
+
color: #5d7079;
|
|
31
|
+
color: var(--color-content-secondary);
|
|
32
|
+
font-size: 0.875rem;
|
|
33
|
+
font-size: var(--font-size-14);
|
|
34
|
+
font-weight: 400;
|
|
35
|
+
font-weight: var(--font-weight-regular);
|
|
36
|
+
line-height: 1.42857;
|
|
37
|
+
}
|
|
38
|
+
.np-option__sm-media.decision .media-left {
|
|
39
|
+
display: block;
|
|
40
|
+
}
|
|
41
|
+
.np-option__no-media-circle {
|
|
42
|
+
min-width: 48px;
|
|
43
|
+
min-width: var(--size-48);
|
|
44
|
+
max-width: 64px;
|
|
45
|
+
max-width: var(--size-64);
|
|
46
|
+
display: flex;
|
|
47
|
+
justify-content: center;
|
|
48
|
+
}
|
|
49
|
+
.np-option__no-media-circle > * {
|
|
50
|
+
max-height: 76px;
|
|
51
|
+
}
|
|
52
|
+
button.np-option {
|
|
53
|
+
background-color: transparent;
|
|
54
|
+
width: 100%;
|
|
55
|
+
text-align: left;
|
|
56
|
+
}
|
|
57
|
+
[dir="rtl"] button.np-option {
|
|
58
|
+
text-align: right;
|
|
59
|
+
}
|
|
60
|
+
.np-theme-personal .np-option .circle {
|
|
61
|
+
overflow: visible;
|
|
62
|
+
}
|
|
63
|
+
.np-theme-personal .np-option .circle-sm {
|
|
64
|
+
width: 48px;
|
|
65
|
+
width: var(--size-48);
|
|
66
|
+
height: 48px;
|
|
67
|
+
height: var(--size-48);
|
|
68
|
+
line-height: 48px;
|
|
69
|
+
line-height: var(--size-48);
|
|
70
|
+
}
|
|
71
|
+
@media (max-width: 320px) {
|
|
72
|
+
.np-theme-personal .np-option .circle-sm {
|
|
73
|
+
width: 96px;
|
|
74
|
+
width: var(--size-96);
|
|
75
|
+
height: 96px;
|
|
76
|
+
height: var(--size-96);
|
|
77
|
+
line-height: 96px;
|
|
78
|
+
line-height: var(--size-96);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
.np-theme-personal .np-option__body {
|
|
82
|
+
margin: 4px 0 0;
|
|
83
|
+
margin: var(--size-4) 0 0;
|
|
84
|
+
-webkit-text-decoration: none;
|
|
85
|
+
text-decoration: none;
|
|
86
|
+
}
|
|
87
|
+
.np-theme-personal .np-option__container-aligned {
|
|
88
|
+
margin-right: calc(-1 * 16px);
|
|
89
|
+
margin-right: calc(-1 * var(--space-content-horizontal));
|
|
90
|
+
margin-left: calc(-1 * 16px);
|
|
91
|
+
margin-left: calc(-1 * var(--space-content-horizontal));
|
|
92
|
+
max-width: none;
|
|
93
|
+
width: auto;
|
|
94
|
+
}
|
|
95
|
+
@media (min-width: 576px) {
|
|
96
|
+
.np-theme-personal .np-option {
|
|
97
|
+
border-radius: 10px;
|
|
98
|
+
border-radius: var(--radius-small);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
@@ -1 +1,53 @@
|
|
|
1
|
-
.np-bottom-sheet
|
|
1
|
+
.np-bottom-sheet {
|
|
2
|
+
border-radius: 10px 10px 0 0;
|
|
3
|
+
}
|
|
4
|
+
.np-bottom-sheet--top-bar {
|
|
5
|
+
cursor: grab;
|
|
6
|
+
padding: 8px 0 calc(16px + 4px);
|
|
7
|
+
padding: var(--size-8) 0 calc(var(--size-16) + var(--size-4));
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
align-items: center;
|
|
11
|
+
}
|
|
12
|
+
.np-bottom-sheet--top-bar--shadow {
|
|
13
|
+
box-shadow: 0 4px 40px rgba(34, 48, 73, 0.2);
|
|
14
|
+
}
|
|
15
|
+
.np-theme-personal--forest-green .np-bottom-sheet--top-bar--shadow,
|
|
16
|
+
.np-theme-personal--bright-green .np-bottom-sheet--top-bar--shadow,
|
|
17
|
+
.np-theme-personal--dark .np-bottom-sheet--top-bar--shadow {
|
|
18
|
+
box-shadow: none;
|
|
19
|
+
}
|
|
20
|
+
.np-bottom-sheet--handler {
|
|
21
|
+
width: 40px;
|
|
22
|
+
height: 4px;
|
|
23
|
+
background: #c9cbce;
|
|
24
|
+
background: var(--color-interactive-secondary);
|
|
25
|
+
border-radius: 10px;
|
|
26
|
+
border-radius: var(--radius-small);
|
|
27
|
+
}
|
|
28
|
+
.np-bottom-sheet--close-btn {
|
|
29
|
+
position: absolute;
|
|
30
|
+
right: 8px;
|
|
31
|
+
right: var(--size-8);
|
|
32
|
+
}
|
|
33
|
+
.np-bottom-sheet--content {
|
|
34
|
+
overflow-y: auto;
|
|
35
|
+
padding: 0 16px;
|
|
36
|
+
padding: 0 var(--space-content-horizontal);
|
|
37
|
+
padding-bottom: env(safe-area-inset-bottom);
|
|
38
|
+
}
|
|
39
|
+
.np-theme-personal .np-bottom-sheet--top-bar--shadow {
|
|
40
|
+
box-shadow: 0 4px 40px rgba(69, 71, 69, 0.2);
|
|
41
|
+
}
|
|
42
|
+
.np-theme-personal .np-bottom-sheet {
|
|
43
|
+
border-radius: 32px 32px 0 0;
|
|
44
|
+
border-radius: var(--radius-xlarge, 32px) var(--radius-xlarge, 32px) 0 0;
|
|
45
|
+
margin: 0px 8px;
|
|
46
|
+
margin: 0px var(--size-8);
|
|
47
|
+
width: calc(100% - 16px) !important;
|
|
48
|
+
width: calc(100% - var(--size-16)) !important;
|
|
49
|
+
}
|
|
50
|
+
.np-theme-personal .np-bottom-sheet--content {
|
|
51
|
+
padding: 0 16px 16px;
|
|
52
|
+
padding: 0 var(--size-16) var(--size-16);
|
|
53
|
+
}
|
|
@@ -1 +1,49 @@
|
|
|
1
|
-
|
|
1
|
+
/* @define Card */
|
|
2
|
+
.np-Card {
|
|
3
|
+
--Card-background-color: var(--color-background-neutral);
|
|
4
|
+
--Card-border-radius: var(--size-32);
|
|
5
|
+
--Card-flex-gap: var(--size-16);
|
|
6
|
+
--Card-padding: var(--size-24);
|
|
7
|
+
--Card-closeButton-position: var(--size-16);
|
|
8
|
+
--Card-max-width: initial;
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
align-items: stretch;
|
|
12
|
+
background-color: rgba(134,167,189,0.10196);
|
|
13
|
+
background-color: var(--Card-background-color);
|
|
14
|
+
border-radius: 32px;
|
|
15
|
+
border-radius: var(--Card-border-radius);
|
|
16
|
+
gap: 16px;
|
|
17
|
+
gap: var(--Card-flex-gap);
|
|
18
|
+
padding: 24px;
|
|
19
|
+
padding: var(--Card-padding);
|
|
20
|
+
position: relative;
|
|
21
|
+
box-sizing: border-box;
|
|
22
|
+
overflow: hidden;
|
|
23
|
+
}
|
|
24
|
+
@media (min-width: 576px) {
|
|
25
|
+
.np-Card {
|
|
26
|
+
max-width: var(--Card-max-width);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
.np-Card.is-disabled .np-Card-closeButton {
|
|
30
|
+
cursor: not-allowed;
|
|
31
|
+
}
|
|
32
|
+
.np-theme-personal--dark .np-Card {
|
|
33
|
+
--Card-background-color: var(--color-background-elevated);
|
|
34
|
+
}
|
|
35
|
+
.np-Card-closeButton {
|
|
36
|
+
position: absolute;
|
|
37
|
+
z-index: 100;
|
|
38
|
+
top: var(--Card-closeButton-position);
|
|
39
|
+
right: var(--Card-closeButton-position);
|
|
40
|
+
}
|
|
41
|
+
[dir="rtl"] .np-Card-closeButton {
|
|
42
|
+
left: var(--Card-closeButton-position);
|
|
43
|
+
right: auto;
|
|
44
|
+
}
|
|
45
|
+
.np-Card--small {
|
|
46
|
+
--Card-border-radius: var(--size-16);
|
|
47
|
+
--Card-closeButton-position: var(--size-8);
|
|
48
|
+
--Card-padding: var(--size-16);
|
|
49
|
+
}
|