@transferwise/components 0.0.0-experimental-28eac06 → 0.0.0-experimental-9b6d886
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/alert/Alert.js +17 -17
- package/build/alert/Alert.js.map +1 -1
- package/build/alert/Alert.mjs +14 -14
- package/build/alert/Alert.mjs.map +1 -1
- package/build/avatarLayout/AvatarLayout.js +2 -9
- package/build/avatarLayout/AvatarLayout.js.map +1 -1
- package/build/avatarLayout/AvatarLayout.mjs +2 -9
- package/build/avatarLayout/AvatarLayout.mjs.map +1 -1
- package/build/button/Button.js +79 -86
- package/build/button/Button.js.map +1 -1
- package/build/button/Button.mjs +80 -87
- package/build/button/Button.mjs.map +1 -1
- package/build/circularButton/CircularButton.js.map +1 -1
- package/build/circularButton/CircularButton.mjs.map +1 -1
- package/build/common/action/Action.js +15 -26
- package/build/common/action/Action.js.map +1 -1
- package/build/common/action/Action.mjs +15 -26
- package/build/common/action/Action.mjs.map +1 -1
- package/build/common/propsValues/sentiment.js +0 -1
- package/build/common/propsValues/sentiment.js.map +1 -1
- package/build/common/propsValues/sentiment.mjs +0 -1
- package/build/common/propsValues/sentiment.mjs.map +1 -1
- package/build/criticalBanner/CriticalCommsBanner.js +73 -10
- package/build/criticalBanner/CriticalCommsBanner.js.map +1 -1
- package/build/criticalBanner/CriticalCommsBanner.mjs +74 -11
- package/build/criticalBanner/CriticalCommsBanner.mjs.map +1 -1
- package/build/header/Header.js +2 -2
- package/build/header/Header.js.map +1 -1
- package/build/header/Header.mjs +1 -1
- package/build/i18n/en.json +0 -1
- package/build/i18n/en.json.js +0 -1
- package/build/i18n/en.json.js.map +1 -1
- package/build/i18n/en.json.mjs +0 -1
- package/build/i18n/en.json.mjs.map +1 -1
- package/build/i18n/ja.json +1 -0
- package/build/i18n/ja.json.js +1 -0
- package/build/i18n/ja.json.js.map +1 -1
- package/build/i18n/ja.json.mjs +1 -0
- package/build/i18n/ja.json.mjs.map +1 -1
- package/build/i18n/pt.json +1 -0
- package/build/i18n/pt.json.js +1 -0
- package/build/i18n/pt.json.js.map +1 -1
- package/build/i18n/pt.json.mjs +1 -0
- package/build/i18n/pt.json.mjs.map +1 -1
- package/build/i18n/ru.json +1 -0
- package/build/i18n/ru.json.js +1 -0
- package/build/i18n/ru.json.js.map +1 -1
- package/build/i18n/ru.json.mjs +1 -0
- package/build/i18n/ru.json.mjs.map +1 -1
- package/build/i18n/zh-HK.json +1 -0
- package/build/i18n/zh-HK.json.js +1 -0
- package/build/i18n/zh-HK.json.js.map +1 -1
- package/build/i18n/zh-HK.json.mjs +1 -0
- package/build/i18n/zh-HK.json.mjs.map +1 -1
- package/build/index.js +2 -2
- package/build/index.mjs +1 -1
- package/build/link/Link.js +3 -8
- package/build/link/Link.js.map +1 -1
- package/build/link/Link.mjs +3 -8
- package/build/link/Link.mjs.map +1 -1
- package/build/main.css +70 -267
- package/build/primitives/PrimitiveAnchor/src/PrimitiveAnchor.js +4 -2
- package/build/primitives/PrimitiveAnchor/src/PrimitiveAnchor.js.map +1 -1
- package/build/primitives/PrimitiveAnchor/src/PrimitiveAnchor.mjs +4 -2
- package/build/primitives/PrimitiveAnchor/src/PrimitiveAnchor.mjs.map +1 -1
- package/build/primitives/PrimitiveButton/src/PrimitiveButton.js +5 -3
- package/build/primitives/PrimitiveButton/src/PrimitiveButton.js.map +1 -1
- package/build/primitives/PrimitiveButton/src/PrimitiveButton.mjs +5 -3
- package/build/primitives/PrimitiveButton/src/PrimitiveButton.mjs.map +1 -1
- package/build/select/Select.js +2 -2
- package/build/select/Select.js.map +1 -1
- package/build/select/Select.mjs +1 -1
- package/build/statusIcon/StatusIcon.js +1 -5
- package/build/statusIcon/StatusIcon.js.map +1 -1
- package/build/statusIcon/StatusIcon.messages.js +0 -3
- package/build/statusIcon/StatusIcon.messages.js.map +1 -1
- package/build/statusIcon/StatusIcon.messages.mjs +0 -3
- package/build/statusIcon/StatusIcon.messages.mjs.map +1 -1
- package/build/statusIcon/StatusIcon.mjs +1 -5
- package/build/statusIcon/StatusIcon.mjs.map +1 -1
- package/build/styles/avatarLayout/AvatarLayout.css +0 -11
- package/build/styles/button/Button.css +15 -230
- package/build/styles/criticalBanner/CriticalCommsBanner.css +73 -21
- package/build/styles/main.css +70 -267
- package/build/types/alert/Alert.d.ts +4 -3
- package/build/types/alert/Alert.d.ts.map +1 -1
- package/build/types/avatarLayout/AvatarLayout.d.ts.map +1 -1
- package/build/types/button/Button.d.ts +23 -2
- package/build/types/button/Button.d.ts.map +1 -1
- package/build/types/button/index.d.ts +2 -2
- package/build/types/button/index.d.ts.map +1 -1
- package/build/types/circularButton/CircularButton.d.ts.map +1 -1
- package/build/types/common/action/Action.d.ts +2 -5
- package/build/types/common/action/Action.d.ts.map +1 -1
- package/build/types/common/propsValues/sentiment.d.ts +0 -1
- package/build/types/common/propsValues/sentiment.d.ts.map +1 -1
- package/build/types/criticalBanner/CriticalCommsBanner.d.ts.map +1 -1
- package/build/types/index.d.ts +1 -0
- package/build/types/index.d.ts.map +1 -1
- package/build/types/link/Link.d.ts +2 -2
- package/build/types/link/Link.d.ts.map +1 -1
- package/build/types/primitives/PrimitiveAnchor/src/PrimitiveAnchor.d.ts.map +1 -1
- package/build/types/primitives/PrimitiveAnchor/src/PrimitiveAnchor.types.d.ts +2 -6
- package/build/types/primitives/PrimitiveAnchor/src/PrimitiveAnchor.types.d.ts.map +1 -1
- package/build/types/primitives/PrimitiveButton/src/PrimitiveButton.d.ts.map +1 -1
- package/build/types/statusIcon/StatusIcon.d.ts.map +1 -1
- package/build/types/statusIcon/StatusIcon.messages.d.ts +0 -5
- package/build/types/statusIcon/StatusIcon.messages.d.ts.map +1 -1
- package/build/types/test-utils/index.d.ts +0 -2
- package/build/types/test-utils/index.d.ts.map +1 -1
- package/build/types/test-utils/story-config.d.ts +1 -1
- package/build/types/test-utils/story-config.d.ts.map +1 -1
- package/build/upload/steps/completeStep/completeStep.js +2 -2
- package/build/upload/steps/completeStep/completeStep.js.map +1 -1
- package/build/upload/steps/completeStep/completeStep.mjs +1 -1
- package/build/upload/steps/processingStep/processingStep.js +2 -2
- package/build/upload/steps/processingStep/processingStep.js.map +1 -1
- package/build/upload/steps/processingStep/processingStep.mjs +1 -1
- package/build/uploadInput/UploadInput.js +3 -3
- package/build/uploadInput/UploadInput.js.map +1 -1
- package/build/uploadInput/UploadInput.mjs +1 -1
- package/package.json +3 -3
- package/src/alert/Alert.spec.tsx +30 -0
- package/src/alert/Alert.story.tsx +1 -34
- package/src/alert/Alert.tests.story.tsx +1 -1
- package/src/alert/Alert.tsx +15 -20
- package/src/avatarLayout/AvatarLayout.css +0 -11
- package/src/avatarLayout/AvatarLayout.less +1 -18
- package/src/avatarLayout/AvatarLayout.tsx +2 -10
- package/src/button/Button.css +15 -230
- package/src/button/Button.less +14 -242
- package/src/button/Button.spec.tsx +226 -215
- package/src/button/Button.story.tsx +134 -761
- package/src/button/Button.tsx +132 -103
- package/src/button/__snapshots__/Button.spec.tsx.snap +309 -0
- package/src/button/index.ts +3 -2
- package/src/circularButton/CircularButton.tsx +0 -1
- package/src/common/action/Action.tsx +22 -40
- package/src/common/propsValues/sentiment.ts +0 -1
- package/src/criticalBanner/CriticalCommsBanner.css +73 -21
- package/src/criticalBanner/CriticalCommsBanner.less +70 -24
- package/src/criticalBanner/CriticalCommsBanner.story.tsx +4 -26
- package/src/criticalBanner/CriticalCommsBanner.tsx +50 -8
- package/src/field/Field.story.tsx +1 -1
- package/src/flowNavigation/__snapshots__/FlowNavigation.spec.js.snap +2 -1
- package/src/i18n/en.json +0 -1
- package/src/i18n/ja.json +1 -0
- package/src/i18n/pt.json +1 -0
- package/src/i18n/ru.json +1 -0
- package/src/i18n/zh-HK.json +1 -0
- package/src/index.ts +1 -0
- package/src/inputs/SelectInput.story.tsx +1 -1
- package/src/label/Label.story.tsx +1 -1
- package/src/link/Link.tsx +6 -15
- package/src/main.css +70 -267
- package/src/main.less +0 -1
- package/src/primitives/PrimitiveAnchor/src/PrimitiveAnchor.tsx +8 -2
- package/src/primitives/PrimitiveAnchor/src/PrimitiveAnchor.types.ts +2 -7
- package/src/primitives/PrimitiveAnchor/test/PrimitiveAnchor.spec.tsx +3 -1
- package/src/primitives/PrimitiveButton/src/PrimitiveButton.tsx +12 -4
- package/src/primitives/PrimitiveButton/test/PrimitiveButton.spec.tsx +13 -16
- package/src/radio/Radio.spec.tsx +73 -0
- package/src/radio/Radio.story.tsx +22 -52
- package/src/radioGroup/RadioGroup.spec.tsx +91 -0
- package/src/radioGroup/RadioGroup.story.tsx +3 -5
- package/src/statusIcon/StatusIcon.less +0 -1
- package/src/statusIcon/StatusIcon.messages.ts +0 -6
- package/src/statusIcon/StatusIcon.tsx +1 -8
- package/src/test-utils/Parameters.d.ts +1 -9
- package/src/test-utils/story-config.ts +1 -10
- package/build/button/Button.resolver.js +0 -74
- package/build/button/Button.resolver.js.map +0 -1
- package/build/button/Button.resolver.mjs +0 -72
- package/build/button/Button.resolver.mjs.map +0 -1
- package/build/button/LegacyButton.js +0 -114
- package/build/button/LegacyButton.js.map +0 -1
- package/build/button/LegacyButton.mjs +0 -112
- package/build/button/LegacyButton.mjs.map +0 -1
- package/build/styles/button/Button.vars.css +0 -46
- package/build/styles/button/LegacyButton.css +0 -23
- package/build/types/button/Button.resolver.d.ts +0 -35
- package/build/types/button/Button.resolver.d.ts.map +0 -1
- package/build/types/button/Button.types.d.ts +0 -70
- package/build/types/button/Button.types.d.ts.map +0 -1
- package/build/types/button/LegacyButton.d.ts +0 -44
- package/build/types/button/LegacyButton.d.ts.map +0 -1
- package/src/button/Button.accessibility.docs.mdx +0 -103
- package/src/button/Button.resolver.tsx +0 -73
- package/src/button/Button.tests.story.tsx +0 -27
- package/src/button/Button.types.ts +0 -92
- package/src/button/Button.vars.css +0 -46
- package/src/button/Button.vars.less +0 -55
- package/src/button/LegacyButton.css +0 -23
- package/src/button/LegacyButton.less +0 -24
- package/src/button/LegacyButton.spec.tsx +0 -147
- package/src/button/LegacyButton.story.tsx +0 -228
- package/src/button/LegacyButton.tsx +0 -177
- package/src/radio/Radio.rtl.spec.tsx +0 -24
- package/src/radio/Radio.spec.js +0 -76
- package/src/radio/__snapshots__/Radio.rtl.spec.tsx.snap +0 -49
- package/src/radioGroup/RadioGroup.rtl.spec.tsx +0 -30
- package/src/radioGroup/RadioGroup.spec.js +0 -90
|
@@ -1,238 +1,23 @@
|
|
|
1
|
-
.
|
|
2
|
-
--Button-background: var(--color-interactive-accent);
|
|
3
|
-
--Button-background-hover: var(--color-interactive-accent-hover);
|
|
4
|
-
--Button-background-active: var(--color-interactive-accent-active);
|
|
5
|
-
--Button-color: var(--color-interactive-control);
|
|
6
|
-
--Button-border-radius: var(--radius-full);
|
|
7
|
-
--Button-label-gap: var(--size-4);
|
|
8
|
-
--Button-large-padding: var(--size-12) var(--size-16);
|
|
9
|
-
--Button-medium-padding: var(--size-8) var(--size-12);
|
|
10
|
-
--Button-small-padding: var(--size-5) var(--size-12);
|
|
11
|
-
--Button-avatar-border-color: var(--color-border-neutral);
|
|
12
|
-
--Button-transition-duration: 150ms;
|
|
13
|
-
--Button-transition-easing: ease-in-out;
|
|
14
|
-
--Button-secondary-background: var(--color-interactive-neutral);
|
|
15
|
-
--Button-secondary-background-hover: var(--color-interactive-neutral-hover);
|
|
16
|
-
--Button-secondary-background-active: var(--color-interactive-neutral-active);
|
|
17
|
-
--Button-secondary-color: var(--color-interactive-primary);
|
|
18
|
-
--Button-tertiary-background: var(--color-background-neutral);
|
|
19
|
-
--Button-tertiary-background-hover: var(--color-background-neutral-hover);
|
|
20
|
-
--Button-tertiary-background-active: var(--color-background-neutral-active);
|
|
21
|
-
--Button-tertiary-color: var(--color-content-primary);
|
|
22
|
-
--Button-minimal-background: transparent;
|
|
23
|
-
--Button-minimal-background-hover: var(--color-background-screen-hover);
|
|
24
|
-
--Button-minimal-background-active: var(--color-background-screen-active);
|
|
25
|
-
--Button-minimal-color: var(--color-interactive-primary);
|
|
26
|
-
--Button-primary-negative-background: var(--color-sentiment-negative-primary);
|
|
27
|
-
--Button-primary-negative-background-hover: var(--color-sentiment-negative-primary-hover);
|
|
28
|
-
--Button-primary-negative-background-active: var(--color-sentiment-negative-primary-active);
|
|
29
|
-
--Button-primary-negative-color: var(--color-contrast-overlay);
|
|
30
|
-
--Button-secondary-negative-background: var(--color-sentiment-negative-secondary);
|
|
31
|
-
--Button-secondary-negative-background-hover: var(--color-sentiment-negative-secondary-hover);
|
|
32
|
-
--Button-secondary-negative-background-active: var(--color-sentiment-negative-secondary-active);
|
|
33
|
-
--Button-secondary-negative-color: var(--color-sentiment-negative-primary);
|
|
34
|
-
}
|
|
35
|
-
.np-theme-personal--bright-green .wds-Button {
|
|
36
|
-
--Button-primary-negative-color: var(--color-white);
|
|
37
|
-
--Button-secondary-color: var(--color-interactive-control);
|
|
38
|
-
--Button-secondary-negative-color: var(--color-white);
|
|
39
|
-
}
|
|
40
|
-
.np-theme-personal--forest-green .wds-Button {
|
|
41
|
-
--Button-secondary-background: var(--color-interactive-neutral);
|
|
42
|
-
--Button-secondary-negative-background: var(--color-sentiment-negative-primary);
|
|
43
|
-
--Button-secondary-negative-background-hover: var(--color-sentiment-negative-primary-hover);
|
|
44
|
-
--Button-secondary-negative-background-active: var(--color-sentiment-negative-primary-active);
|
|
45
|
-
--Button-secondary-negative-color: var(--color-contrast-overlay);
|
|
46
|
-
}
|
|
47
|
-
/* Button Styles */
|
|
48
|
-
.wds-Button {
|
|
49
|
-
display: inline-flex;
|
|
50
|
-
flex: none;
|
|
51
|
-
width: auto;
|
|
52
|
-
align-items: center;
|
|
53
|
-
justify-content: center;
|
|
54
|
-
vertical-align: middle;
|
|
55
|
-
text-align: center;
|
|
56
|
-
white-space: nowrap;
|
|
57
|
-
word-wrap: break-word;
|
|
58
|
-
-webkit-appearance: none;
|
|
59
|
-
-moz-appearance: none;
|
|
60
|
-
appearance: none;
|
|
61
|
-
background-color: var(--Button-background);
|
|
62
|
-
border: none;
|
|
63
|
-
border-radius: var(--Button-border-radius);
|
|
64
|
-
color: var(--Button-color);
|
|
65
|
-
cursor: pointer;
|
|
66
|
-
transition: color, background-color var(--Button-transition-duration) var(--Button-transition-easing);
|
|
67
|
-
}
|
|
68
|
-
.wds-Button,
|
|
69
|
-
.wds-Button:hover,
|
|
70
|
-
.wds-Button:active,
|
|
71
|
-
.wds-Button:focus {
|
|
72
|
-
-webkit-text-decoration: none;
|
|
73
|
-
text-decoration: none;
|
|
74
|
-
}
|
|
75
|
-
.wds-Button:hover {
|
|
76
|
-
background-color: var(--Button-background-hover);
|
|
77
|
-
}
|
|
78
|
-
.wds-Button:active {
|
|
79
|
-
background-color: var(--Button-background-active);
|
|
80
|
-
}
|
|
81
|
-
.wds-Button.wds-Button--disabled,
|
|
82
|
-
.wds-Button:disabled {
|
|
83
|
-
filter: none;
|
|
84
|
-
mix-blend-mode: luminosity;
|
|
85
|
-
opacity: 0.45;
|
|
86
|
-
cursor: not-allowed;
|
|
87
|
-
}
|
|
88
|
-
.wds-Button.wds-Button--disabled,
|
|
89
|
-
.wds-Button:disabled,
|
|
90
|
-
.wds-Button.wds-Button--disabled:hover,
|
|
91
|
-
.wds-Button:disabled:hover,
|
|
92
|
-
.wds-Button.wds-Button--disabled:active,
|
|
93
|
-
.wds-Button:disabled:active {
|
|
94
|
-
background-color: var(--Button-background);
|
|
95
|
-
}
|
|
96
|
-
.wds-Button--secondary {
|
|
97
|
-
--Button-background: var(--Button-secondary-background);
|
|
98
|
-
--Button-background-hover: var(--Button-secondary-background-hover);
|
|
99
|
-
--Button-background-active: var(--Button-secondary-background-active);
|
|
100
|
-
--Button-color: var(--Button-secondary-color);
|
|
101
|
-
}
|
|
102
|
-
.wds-Button--tertiary {
|
|
103
|
-
--Button-background: var(--Button-tertiary-background);
|
|
104
|
-
--Button-background-hover: var(--Button-tertiary-background-hover);
|
|
105
|
-
--Button-background-active: var(--Button-tertiary-background-active);
|
|
106
|
-
--Button-color: var(--Button-tertiary-color);
|
|
107
|
-
}
|
|
108
|
-
.wds-Button--tertiary .wds-Button-icon--end {
|
|
109
|
-
color: var(--color-interactive-primary);
|
|
110
|
-
}
|
|
111
|
-
.wds-Button--minimal {
|
|
112
|
-
--Button-background: var(--Button-minimal-background);
|
|
113
|
-
--Button-background-hover: var(--Button-minimal-background-hover);
|
|
114
|
-
--Button-background-active: var(--Button-minimal-background-active);
|
|
115
|
-
--Button-color: var(--Button-minimal-color);
|
|
116
|
-
}
|
|
117
|
-
.wds-Button--minimal,
|
|
118
|
-
.wds-Button--minimal:hover,
|
|
119
|
-
.wds-Button--minimal:active,
|
|
120
|
-
.wds-Button--minimal:focus {
|
|
121
|
-
-webkit-text-decoration: underline;
|
|
122
|
-
text-decoration: underline;
|
|
123
|
-
text-underline-offset: 3px;
|
|
124
|
-
text-decoration-thickness: 1px;
|
|
125
|
-
}
|
|
126
|
-
.wds-Button--negative.wds-Button--primary {
|
|
127
|
-
--Button-background: var(--Button-primary-negative-background);
|
|
128
|
-
--Button-background-hover: var(--Button-primary-negative-background-hover);
|
|
129
|
-
--Button-background-active: var(--Button-primary-negative-background-active);
|
|
130
|
-
--Button-color: var(--Button-primary-negative-color);
|
|
131
|
-
}
|
|
132
|
-
.wds-Button--negative.wds-Button--secondary {
|
|
133
|
-
--Button-background: var(--Button-secondary-negative-background);
|
|
134
|
-
--Button-background-hover: var(--Button-secondary-negative-background-hover);
|
|
135
|
-
--Button-background-active: var(--Button-secondary-negative-background-active);
|
|
136
|
-
--Button-color: var(--Button-secondary-negative-color);
|
|
137
|
-
}
|
|
138
|
-
.wds-Button--large {
|
|
139
|
-
padding: var(--Button-large-padding);
|
|
140
|
-
}
|
|
141
|
-
.wds-Button--medium {
|
|
142
|
-
padding: var(--Button-medium-padding);
|
|
143
|
-
}
|
|
144
|
-
.wds-Button--medium:has(.wds-Button-avatars) {
|
|
145
|
-
padding-inline-start: 8px;
|
|
146
|
-
padding-inline-start: var(--size-8);
|
|
147
|
-
}
|
|
148
|
-
.wds-Button--medium:has(.wds-Button-icon--end) {
|
|
149
|
-
padding-inline-end: 8px;
|
|
150
|
-
padding-inline-end: var(--size-8);
|
|
151
|
-
}
|
|
152
|
-
.wds-Button--medium .wds-Button-icon--start {
|
|
153
|
-
margin-inline-end: var(--Button-label-gap);
|
|
154
|
-
}
|
|
155
|
-
.wds-Button--small {
|
|
156
|
-
padding: var(--Button-small-padding);
|
|
157
|
-
}
|
|
158
|
-
.wds-Button--small:has(.wds-Button-icon--start) {
|
|
159
|
-
padding-inline-start: 8px;
|
|
160
|
-
padding-inline-start: var(--size-8);
|
|
161
|
-
}
|
|
162
|
-
.wds-Button--small:has(.wds-Button-icon--end) {
|
|
163
|
-
padding-inline-end: 8px;
|
|
164
|
-
padding-inline-end: var(--size-8);
|
|
165
|
-
}
|
|
166
|
-
.wds-Button--block {
|
|
167
|
-
width: 100%;
|
|
168
|
-
}
|
|
169
|
-
.wds-Button-avatars {
|
|
170
|
-
display: inline-flex;
|
|
171
|
-
}
|
|
172
|
-
.wds-Button-avatars .np-avatar-view .np-avatar-view-content {
|
|
173
|
-
color: var(--Button-color);
|
|
174
|
-
}
|
|
175
|
-
.wds-Button-icon {
|
|
176
|
-
display: inline-block;
|
|
177
|
-
}
|
|
178
|
-
.wds-Button-icon--md {
|
|
179
|
-
--Button-iconSize: calc(var(--size-10) + var(--size-8));
|
|
180
|
-
}
|
|
181
|
-
.wds-Button-icon--sm {
|
|
182
|
-
--Button-iconSize: var(--size-16);
|
|
183
|
-
}
|
|
184
|
-
.wds-Button-icon svg {
|
|
185
|
-
width: var(--Button-iconSize);
|
|
186
|
-
height: var(--Button-iconSize);
|
|
187
|
-
}
|
|
188
|
-
.wds-Button-content {
|
|
1
|
+
.np-btn {
|
|
189
2
|
position: relative;
|
|
190
3
|
}
|
|
191
|
-
.
|
|
192
|
-
.wds-Button-content--loading .wds-Button-media,
|
|
193
|
-
.wds-Button-content--loading .wds-Button-icon {
|
|
194
|
-
visibility: hidden;
|
|
195
|
-
opacity: 0;
|
|
196
|
-
}
|
|
197
|
-
.wds-Button-label {
|
|
198
|
-
display: flex;
|
|
199
|
-
justify-content: center;
|
|
200
|
-
align-items: center;
|
|
201
|
-
gap: var(--Button-label-gap);
|
|
202
|
-
position: relative;
|
|
203
|
-
}
|
|
204
|
-
.wds-Button-loader {
|
|
4
|
+
.np-btn.np-btn-block > span.btn-loader {
|
|
205
5
|
position: absolute;
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
}
|
|
209
|
-
.wds-Button-loader .process-circle {
|
|
210
|
-
stroke: var(--Button-color);
|
|
211
|
-
}
|
|
212
|
-
/* Avatar border transparency */
|
|
213
|
-
/* dark buttons get 20% transparency, light buttons get 12% */
|
|
214
|
-
.wds-Button-avatars .np-circle {
|
|
215
|
-
--circle-border-color: color-mix(in srgb, var(--Button-color) 20%, transparent);
|
|
216
|
-
}
|
|
217
|
-
.np-theme-personal:not(.np-theme-personal--dark):not(.np-theme-personal--forest-green):not(.np-theme-personal--bright-green) .wds-Button--secondary.wds-Button--negative .wds-Button-avatars .np-circle,
|
|
218
|
-
.np-theme-personal:not(.np-theme-personal--dark):not(.np-theme-personal--forest-green):not(.np-theme-personal--bright-green) .wds-Button--secondary .wds-Button-avatars .np-circle,
|
|
219
|
-
.np-theme-personal:not(.np-theme-personal--dark):not(.np-theme-personal--forest-green):not(.np-theme-personal--bright-green) .wds-Button--tertiary .wds-Button-avatars .np-circle,
|
|
220
|
-
.np-theme-personal:not(.np-theme-personal--dark):not(.np-theme-personal--forest-green):not(.np-theme-personal--bright-green) .wds-Button--minimal .wds-Button-avatars .np-circle {
|
|
221
|
-
--circle-border-color: color-mix(in srgb, var(--Button-color) 12%, transparent);
|
|
6
|
+
left: 24px;
|
|
7
|
+
left: var(--size-24);
|
|
222
8
|
}
|
|
223
|
-
.np-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
9
|
+
[dir="rtl"] .np-btn.np-btn-block > span.btn-loader {
|
|
10
|
+
right: 24px;
|
|
11
|
+
right: var(--size-24);
|
|
12
|
+
left: auto;
|
|
13
|
+
left: initial;
|
|
228
14
|
}
|
|
229
|
-
.np-
|
|
230
|
-
|
|
231
|
-
--circle-border-color: color-mix(in srgb, var(--Button-color) 12%, transparent);
|
|
15
|
+
.np-btn.np-btn-xs > span.btn-loader {
|
|
16
|
+
background-size: 16px 16px;
|
|
232
17
|
}
|
|
233
|
-
.
|
|
234
|
-
|
|
18
|
+
.np-btn.np-btn-xs.btn-block > span.btn-loader {
|
|
19
|
+
top: 0;
|
|
235
20
|
}
|
|
236
|
-
|
|
237
|
-
|
|
21
|
+
.np-btn.disabled[class] {
|
|
22
|
+
pointer-events: auto;
|
|
238
23
|
}
|
|
@@ -1,24 +1,76 @@
|
|
|
1
|
-
.critical-comms
|
|
2
|
-
color: var(--color-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
div.critical-comms {
|
|
2
|
+
--critical-comms-background-color: var(--color-background-negative);
|
|
3
|
+
--critical-comms-title-color: var(--color-content-negative);
|
|
4
|
+
--critical-comms-subtitle-color: var(--color-content-secondary);
|
|
5
|
+
--critical-comms-subtitle-color-padding-left: var(--size-16);
|
|
6
|
+
--critical-comms-vertical-spacing: var(--size-8);
|
|
7
|
+
background-color: rgba(255,135,135,0.10196);
|
|
8
|
+
background-color: var(--critical-comms-background-color);
|
|
9
|
+
display: flex;
|
|
10
|
+
justify-content: center;
|
|
11
|
+
align-items: center;
|
|
12
|
+
}
|
|
13
|
+
.np-theme-personal div.critical-comms,
|
|
14
|
+
.np-theme-personal--dark div.critical-comms {
|
|
15
|
+
--critical-comms-background-color: var(--color-sentiment-negative);
|
|
16
|
+
--critical-comms-title-color: var(--color-contrast);
|
|
17
|
+
--critical-comms-subtitle-color: var(--color-contrast);
|
|
18
|
+
--critical-comms-subtitle-color-padding-left: 0;
|
|
19
|
+
--critical-comms-vertical-spacing: var(--size-16);
|
|
20
|
+
padding: 24px;
|
|
21
|
+
padding: var(--padding-medium);
|
|
22
|
+
}
|
|
23
|
+
.np-theme-personal div.critical-comms .tw-icon-alert-circle-fill,
|
|
24
|
+
.np-theme-personal--dark div.critical-comms .tw-icon-alert-circle-fill {
|
|
25
|
+
color: var(--color-contrast);
|
|
26
|
+
}
|
|
27
|
+
.np-theme-personal div.critical-comms .tw-icon-alert-circle-fill svg,
|
|
28
|
+
.np-theme-personal--dark div.critical-comms .tw-icon-alert-circle-fill svg {
|
|
29
|
+
width: 48px;
|
|
30
|
+
height: 48px;
|
|
31
|
+
}
|
|
32
|
+
.np-theme-personal div.critical-comms .cta-btn,
|
|
33
|
+
.np-theme-personal--dark div.critical-comms .cta-btn {
|
|
34
|
+
background-color: var(--color-contrast);
|
|
35
|
+
}
|
|
36
|
+
.np-theme-personal div.critical-comms .cta-btn:not(.disabled):not(:disabled):focus,
|
|
37
|
+
.np-theme-personal--dark div.critical-comms .cta-btn:not(.disabled):not(:disabled):focus {
|
|
38
|
+
outline-color: var(--color-contrast);
|
|
39
|
+
}
|
|
40
|
+
@media (max-width: 767px) {
|
|
41
|
+
div.critical-comms {
|
|
42
|
+
display: inline;
|
|
43
|
+
display: initial;
|
|
18
44
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
45
|
+
}
|
|
46
|
+
div.critical-comms .critical-comms--title {
|
|
47
|
+
color: var(--critical-comms-title-color);
|
|
48
|
+
}
|
|
49
|
+
div.critical-comms .critical-comms--subtitle {
|
|
50
|
+
color: var(--critical-comms-subtitle-color);
|
|
51
|
+
}
|
|
52
|
+
div.critical-comms .critical-comms--cta {
|
|
53
|
+
padding-left: 0;
|
|
54
|
+
}
|
|
55
|
+
@media (max-width: 767px) {
|
|
56
|
+
div.critical-comms .critical-comms--cta {
|
|
57
|
+
padding-left: var(--critical-comms-subtitle-color-padding-left);
|
|
58
|
+
padding-top: var(--critical-comms-vertical-spacing);
|
|
59
|
+
min-width: 100%;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
div.critical-comms .critical-comms-body {
|
|
63
|
+
display: flex;
|
|
64
|
+
width: 100%;
|
|
65
|
+
}
|
|
66
|
+
@media (max-width: 767px) {
|
|
67
|
+
div.critical-comms .critical-comms-body {
|
|
68
|
+
flex-direction: column;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
@media (max-width: 767px) {
|
|
72
|
+
div.critical-comms .critical-comms-content {
|
|
73
|
+
padding-top: var(--critical-comms-vertical-spacing);
|
|
74
|
+
flex-wrap: wrap;
|
|
23
75
|
}
|
|
24
76
|
}
|