@transferwise/components 0.0.0-experimental-9e19bae → 0.0.0-experimental-b762045
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/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 +97 -76
- package/build/button/Button.js.map +1 -1
- package/build/button/Button.mjs +97 -76
- package/build/button/Button.mjs.map +1 -1
- package/build/circularButton/CircularButton.js +19 -24
- package/build/circularButton/CircularButton.js.map +1 -1
- package/build/circularButton/CircularButton.mjs +20 -25
- package/build/circularButton/CircularButton.mjs.map +1 -1
- package/build/criticalBanner/CriticalCommsBanner.js +2 -2
- package/build/criticalBanner/CriticalCommsBanner.js.map +1 -1
- package/build/criticalBanner/CriticalCommsBanner.mjs +1 -1
- package/build/definitionList/DefinitionList.js.map +1 -1
- package/build/definitionList/DefinitionList.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/de.json +1 -0
- package/build/i18n/de.json.js +1 -0
- package/build/i18n/de.json.js.map +1 -1
- package/build/i18n/de.json.mjs +1 -0
- package/build/i18n/de.json.mjs.map +1 -1
- package/build/i18n/it.json +1 -0
- package/build/i18n/it.json.js +1 -0
- package/build/i18n/it.json.js.map +1 -1
- package/build/i18n/it.json.mjs +1 -0
- package/build/i18n/it.json.mjs.map +1 -1
- package/build/i18n/th.json +1 -0
- package/build/i18n/th.json.js +1 -0
- package/build/i18n/th.json.js.map +1 -1
- package/build/i18n/th.json.mjs +1 -0
- package/build/i18n/th.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 +17 -431
- package/build/primitives/PrimitiveAnchor/src/PrimitiveAnchor.js +3 -1
- package/build/primitives/PrimitiveAnchor/src/PrimitiveAnchor.js.map +1 -1
- package/build/primitives/PrimitiveAnchor/src/PrimitiveAnchor.mjs +3 -1
- package/build/primitives/PrimitiveAnchor/src/PrimitiveAnchor.mjs.map +1 -1
- package/build/primitives/PrimitiveButton/src/PrimitiveButton.js +4 -1
- package/build/primitives/PrimitiveButton/src/PrimitiveButton.js.map +1 -1
- package/build/primitives/PrimitiveButton/src/PrimitiveButton.mjs +4 -1
- package/build/primitives/PrimitiveButton/src/PrimitiveButton.mjs.map +1 -1
- package/build/select/Select.js +3 -5
- package/build/select/Select.js.map +1 -1
- package/build/select/Select.mjs +2 -4
- package/build/select/Select.mjs.map +1 -1
- package/build/styles/avatarLayout/AvatarLayout.css +0 -11
- package/build/styles/button/Button.css +16 -255
- package/build/styles/circularButton/CircularButton.css +17 -158
- package/build/styles/main.css +17 -431
- package/build/types/avatarLayout/AvatarLayout.d.ts +2 -1
- package/build/types/avatarLayout/AvatarLayout.d.ts.map +1 -1
- package/build/types/avatarLayout/index.d.ts +0 -1
- package/build/types/avatarLayout/index.d.ts.map +1 -1
- package/build/types/button/Button.d.ts +23 -1
- 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 +11 -4
- package/build/types/circularButton/CircularButton.d.ts.map +1 -1
- package/build/types/definitionList/DefinitionList.d.ts +1 -2
- package/build/types/definitionList/DefinitionList.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 +1 -1
- 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/select/Select.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/avatarLayout/AvatarLayout.css +0 -11
- package/src/avatarLayout/AvatarLayout.less +1 -18
- package/src/avatarLayout/AvatarLayout.tsx +3 -11
- package/src/avatarLayout/index.ts +0 -1
- package/src/button/Button.css +16 -255
- package/src/button/Button.less +14 -215
- package/src/button/Button.spec.tsx +231 -54
- package/src/button/Button.story.tsx +136 -287
- package/src/button/Button.tsx +131 -84
- package/src/button/__snapshots__/{LegacyButton.spec.tsx.snap → Button.spec.tsx.snap} +22 -22
- package/src/button/index.ts +3 -2
- package/src/circularButton/CircularButton.css +17 -158
- package/src/circularButton/CircularButton.less +22 -91
- package/src/circularButton/CircularButton.story.tsx +45 -24
- package/src/circularButton/CircularButton.tsx +39 -28
- package/src/definitionList/DefinitionList.story.tsx +57 -57
- package/src/definitionList/DefinitionList.tsx +1 -1
- package/src/flowNavigation/__snapshots__/FlowNavigation.spec.js.snap +1 -1
- package/src/i18n/de.json +1 -0
- package/src/i18n/it.json +1 -0
- package/src/i18n/th.json +1 -0
- package/src/iconButton/IconButton.story.tsx +6 -6
- package/src/inputs/SelectInput.story.tsx +1 -1
- package/src/link/Link.tsx +6 -15
- package/src/main.css +17 -431
- package/src/main.less +0 -1
- package/src/primitives/PrimitiveAnchor/src/PrimitiveAnchor.tsx +7 -1
- package/src/primitives/PrimitiveAnchor/src/PrimitiveAnchor.types.ts +1 -1
- package/src/primitives/PrimitiveAnchor/test/PrimitiveAnchor.spec.tsx +3 -1
- package/src/primitives/PrimitiveButton/src/PrimitiveButton.tsx +8 -1
- package/src/primitives/PrimitiveButton/test/PrimitiveButton.spec.tsx +5 -2
- package/src/select/Select.tsx +0 -1
- package/src/slidingPanel/SlidingPanel.spec.tsx +69 -0
- package/build/button/Button.resolver.js +0 -78
- package/build/button/Button.resolver.js.map +0 -1
- package/build/button/Button.resolver.mjs +0 -76
- 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 -59
- package/build/styles/button/LegacyButton.css +0 -23
- package/build/types/button/Button.resolver.d.ts +0 -31
- package/build/types/button/Button.resolver.d.ts.map +0 -1
- package/build/types/button/Button.types.d.ts +0 -58
- package/build/types/button/Button.types.d.ts.map +0 -1
- package/build/types/button/LegacyButton.d.ts +0 -30
- package/build/types/button/LegacyButton.d.ts.map +0 -1
- package/src/button/Button.resolver.tsx +0 -120
- package/src/button/Button.types.ts +0 -79
- package/src/button/Button.vars.css +0 -59
- package/src/button/Button.vars.less +0 -73
- package/src/button/LegacyButton.css +0 -23
- package/src/button/LegacyButton.less +0 -24
- package/src/button/LegacyButton.spec.tsx +0 -245
- package/src/button/LegacyButton.story.tsx +0 -224
- package/src/button/LegacyButton.tsx +0 -161
- package/src/circularButton/_button-label-states.less +0 -34
- package/src/definitionList/DefinitionList.spec.js +0 -91
- package/src/slidingPanel/SlidingPanel.spec.js +0 -56
|
@@ -11,18 +11,10 @@
|
|
|
11
11
|
-webkit-mask-image: radial-gradient(circle at bottom calc(100% - var(--np-avatar-size) - var(--np-avatar-offset)) right calc(100% - var(--np-avatar-size) - var(--np-avatar-offset)), transparent 0, transparent calc(var(--np-avatar-size) / 2 + 2px), black 0);
|
|
12
12
|
mask-image: radial-gradient(circle at bottom calc(100% - var(--np-avatar-size) - var(--np-avatar-offset)) right calc(100% - var(--np-avatar-size) - var(--np-avatar-offset)), transparent 0, transparent calc(var(--np-avatar-size) / 2 + 2px), black 0);
|
|
13
13
|
}
|
|
14
|
-
[dir="rtl"] .np-avatar-layout-diagonal-mask {
|
|
15
|
-
-webkit-mask-image: radial-gradient(circle at bottom calc(100% - var(--np-avatar-size) - var(--np-avatar-offset)) left calc(100% - var(--np-avatar-size) - var(--np-avatar-offset)), transparent 0, transparent calc(var(--np-avatar-size) / 2 + 2px), black 0);
|
|
16
|
-
mask-image: radial-gradient(circle at bottom calc(100% - var(--np-avatar-size) - var(--np-avatar-offset)) left calc(100% - var(--np-avatar-size) - var(--np-avatar-offset)), transparent 0, transparent calc(var(--np-avatar-size) / 2 + 2px), black 0);
|
|
17
|
-
}
|
|
18
14
|
.np-avatar-layout-diagonal-child {
|
|
19
15
|
margin-left: calc(var(--np-avatar-layout-size) - var(--np-avatar-size) * 2);
|
|
20
16
|
margin-top: calc(var(--np-avatar-layout-size) - var(--np-avatar-size));
|
|
21
17
|
}
|
|
22
|
-
[dir="rtl"] .np-avatar-layout-diagonal-child {
|
|
23
|
-
margin-left: 0;
|
|
24
|
-
margin-right: calc(var(--np-avatar-layout-size) - var(--np-avatar-size) * 2);
|
|
25
|
-
}
|
|
26
18
|
.np-avatar-layout-horizontal {
|
|
27
19
|
width: calc(var(--np-avatar-size) * 2 - var(--np-avatar-offset) - 2px);
|
|
28
20
|
height: var(--np-avatar-layout-size);
|
|
@@ -36,6 +28,3 @@
|
|
|
36
28
|
.np-avatar-layout-horizontal-child {
|
|
37
29
|
margin-left: calc(var(--np-avatar-offset) * -1);
|
|
38
30
|
}
|
|
39
|
-
[dir="rtl"] .np-avatar-layout-horizontal-child {
|
|
40
|
-
margin-right: calc(var(--np-avatar-offset) * -1);
|
|
41
|
-
}
|
|
@@ -1,262 +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-padding: var(--size-8) var(--size-12);
|
|
7
|
-
--Button-border-radius: var(--radius-full);
|
|
8
|
-
--Button-font-size: var(--font-size-16);
|
|
9
|
-
--Button-line-height: var(--size-24);
|
|
10
|
-
--Button-font-weight: var(--font-weight-semi-bold);
|
|
11
|
-
--Button-letter-spacing: -0.011em;
|
|
12
|
-
--Button-size-small-padding: 5px var(--size-12);
|
|
13
|
-
--Button-size-medium-padding: var(--size-8) var(--size-12);
|
|
14
|
-
--Button-size-large-padding: var(--size-12) var(--size-16);
|
|
15
|
-
--Button-avatar-border-color: var(--color-border-neutral);
|
|
16
|
-
--Button-transition-duration: 150ms;
|
|
17
|
-
--Button-transition-easing: ease-in-out;
|
|
18
|
-
--Button-secondary-background: var(--color-interactive-neutral);
|
|
19
|
-
--Button-secondary-background-hover: var(--color-interactive-neutral-hover);
|
|
20
|
-
--Button-secondary-background-active: var(--color-interactive-neutral-active);
|
|
21
|
-
--Button-secondary-color: var(--color-interactive-primary);
|
|
22
|
-
--Button-tertiary-background: var(--color-background-neutral);
|
|
23
|
-
--Button-tertiary-background-hover: var(--color-background-neutral-hover);
|
|
24
|
-
--Button-tertiary-background-active: var(--color-background-neutral-active);
|
|
25
|
-
--Button-tertiary-color: var(--color-content-primary);
|
|
26
|
-
--Button-minimal-background: transparent;
|
|
27
|
-
--Button-minimal-background-hover: var(--color-background-screen-hover);
|
|
28
|
-
--Button-minimal-background-active: var(--color-background-screen-active);
|
|
29
|
-
--Button-minimal-color: var(--color-interactive-primary);
|
|
30
|
-
--Button-primary-negative-background: var(--color-sentiment-negative-primary);
|
|
31
|
-
--Button-primary-negative-background-hover: var(--color-sentiment-negative-primary-hover);
|
|
32
|
-
--Button-primary-negative-background-active: var(--color-sentiment-negative-primary-active);
|
|
33
|
-
--Button-primary-negative-color: var(--color-contrast);
|
|
34
|
-
--Button-primary-netative-avatar-border-color: rgba(255,255,255,0.2);
|
|
35
|
-
--Button-secondary-negative-background: var(--color-sentiment-negative-secondary);
|
|
36
|
-
--Button-secondary-negative-background-hover: var(--color-sentiment-negative-secondary-hover);
|
|
37
|
-
--Button-secondary-negative-background-active: var(--color-sentiment-negative-secondary-active);
|
|
38
|
-
--Button-secondary-negative-color: var(--color-sentiment-negative-primary);
|
|
39
|
-
--Button-secondary-netative-avatar-border-color: rgba(168,32,13,0.12157);
|
|
40
|
-
}
|
|
41
|
-
.np-theme-personal--dark .wds-Button {
|
|
42
|
-
--Button-primary-netative-avatar-border-color: rgba(14,15,12,0.12157);
|
|
43
|
-
}
|
|
44
|
-
.np-theme-personal--forest-green .wds-Button {
|
|
45
|
-
--color-interactive-neutral: rgba(159,232,112,0.2);
|
|
46
|
-
--color-interactive-neutral-hover: rgba(205,255,173,0.2);
|
|
47
|
-
--color-interactive-neutral-active: rgba(236,255,224,0.2);
|
|
48
|
-
--color-sentiment-negative-secondary: rgba(255,196,194,0.2);
|
|
49
|
-
--color-sentiment-negative-secondary-hover: rgba(255,220,219,0.2);
|
|
50
|
-
--color-sentiment-negative-secondary-active: rgba(255,235,235,0.2);
|
|
51
|
-
--Button-primary-netative-avatar-border-color: rgba(14,15,12,0.12157);
|
|
52
|
-
--Button-secondary-netative-avatar-border-color: rgba(14,15,12,0.12157);
|
|
53
|
-
}
|
|
54
|
-
.np-theme-personal--bright-green .wds-Button {
|
|
55
|
-
--color-contrast: #FFFFFF;
|
|
56
|
-
--Button-secondary-color: var(--color-interactive-control);
|
|
57
|
-
--Button-secondary-negative-color: var(--color-contrast);
|
|
58
|
-
--Button-secondary-netative-avatar-border-color: var(--Button-primary-netative-avatar-border-color);
|
|
59
|
-
}
|
|
60
|
-
/* Button Styles */
|
|
61
|
-
.wds-Button {
|
|
62
|
-
display: inline-flex;
|
|
63
|
-
flex: none;
|
|
64
|
-
width: auto;
|
|
65
|
-
align-items: center;
|
|
66
|
-
justify-content: center;
|
|
67
|
-
vertical-align: middle;
|
|
68
|
-
font-weight: 600;
|
|
69
|
-
font-weight: var(--Button-font-weight);
|
|
70
|
-
font-size: 1rem;
|
|
71
|
-
font-size: var(--Button-font-size);
|
|
72
|
-
letter-spacing: -0.011em;
|
|
73
|
-
letter-spacing: var(--Button-letter-spacing);
|
|
74
|
-
line-height: 24px;
|
|
75
|
-
line-height: var(--Button-line-height);
|
|
76
|
-
text-align: center;
|
|
77
|
-
-webkit-text-decoration: none;
|
|
78
|
-
text-decoration: none;
|
|
79
|
-
white-space: nowrap;
|
|
80
|
-
word-wrap: break-word;
|
|
81
|
-
-webkit-appearance: none;
|
|
82
|
-
-moz-appearance: none;
|
|
83
|
-
appearance: none;
|
|
84
|
-
background-color: #00a2dd;
|
|
85
|
-
background-color: var(--Button-background);
|
|
86
|
-
border: none;
|
|
87
|
-
border-radius: 9999px;
|
|
88
|
-
border-radius: var(--Button-border-radius);
|
|
89
|
-
color: var(--Button-color);
|
|
90
|
-
cursor: pointer;
|
|
91
|
-
padding: 8px 12px;
|
|
92
|
-
padding: var(--Button-padding);
|
|
93
|
-
transition: color, background-color 150ms ease-in-out;
|
|
94
|
-
transition: color, background-color var(--Button-transition-duration) var(--Button-transition-easing);
|
|
95
|
-
}
|
|
96
|
-
.wds-Button:focus {
|
|
97
|
-
-webkit-text-decoration: none;
|
|
98
|
-
text-decoration: none;
|
|
99
|
-
}
|
|
100
|
-
.wds-Button:hover {
|
|
101
|
-
background-color: #008fc9;
|
|
102
|
-
background-color: var(--Button-background-hover);
|
|
103
|
-
-webkit-text-decoration: none;
|
|
104
|
-
text-decoration: none;
|
|
105
|
-
}
|
|
106
|
-
.wds-Button:active {
|
|
107
|
-
background-color: #0081ba;
|
|
108
|
-
background-color: var(--Button-background-active);
|
|
109
|
-
-webkit-text-decoration: none;
|
|
110
|
-
text-decoration: none;
|
|
111
|
-
}
|
|
112
|
-
.wds-Button.wds-Button--disabled,
|
|
113
|
-
.wds-Button:disabled {
|
|
114
|
-
mix-blend-mode: luminosity;
|
|
115
|
-
opacity: 0.45;
|
|
116
|
-
cursor: not-allowed;
|
|
117
|
-
}
|
|
118
|
-
.wds-Button.wds-Button--disabled:hover,
|
|
119
|
-
.wds-Button:disabled:hover,
|
|
120
|
-
.wds-Button.wds-Button--disabled:active,
|
|
121
|
-
.wds-Button:disabled:active {
|
|
122
|
-
background-color: #00a2dd;
|
|
123
|
-
background-color: var(--Button-background);
|
|
124
|
-
}
|
|
125
|
-
.wds-Button--secondary {
|
|
126
|
-
--Button-background: var(--Button-secondary-background);
|
|
127
|
-
--Button-background-hover: var(--Button-secondary-background-hover);
|
|
128
|
-
--Button-background-active: var(--Button-secondary-background-active);
|
|
129
|
-
--Button-color: var(--Button-secondary-color);
|
|
130
|
-
}
|
|
131
|
-
.wds-Button--tertiary {
|
|
132
|
-
--Button-background: var(--Button-tertiary-background);
|
|
133
|
-
--Button-background-hover: var(--Button-tertiary-background-hover);
|
|
134
|
-
--Button-background-active: var(--Button-tertiary-background-active);
|
|
135
|
-
--Button-color: var(--Button-tertiary-color);
|
|
136
|
-
}
|
|
137
|
-
.wds-Button--tertiary .wds-Button-icon--end {
|
|
138
|
-
color: var(--color-interactive-primary);
|
|
139
|
-
}
|
|
140
|
-
.wds-Button--minimal {
|
|
141
|
-
--Button-background: var(--Button-minimal-background);
|
|
142
|
-
--Button-background-hover: var(--Button-minimal-background-hover);
|
|
143
|
-
--Button-background-active: var(--Button-minimal-background-active);
|
|
144
|
-
--Button-color: var(--Button-minimal-color);
|
|
145
|
-
-webkit-text-decoration: underline;
|
|
146
|
-
text-decoration: underline;
|
|
147
|
-
text-underline-offset: 3px;
|
|
148
|
-
text-decoration-thickness: 1px;
|
|
149
|
-
}
|
|
150
|
-
.wds-Button--minimal:hover,
|
|
151
|
-
.wds-Button--minimal:hover:active {
|
|
152
|
-
-webkit-text-decoration: underline;
|
|
153
|
-
text-decoration: underline;
|
|
154
|
-
}
|
|
155
|
-
.wds-Button--negative.wds-Button--primary {
|
|
156
|
-
--Button-background: var(--Button-primary-negative-background);
|
|
157
|
-
--Button-background-hover: var(--Button-primary-negative-background-hover);
|
|
158
|
-
--Button-background-active: var(--Button-primary-negative-background-active);
|
|
159
|
-
--Button-color: var(--Button-primary-negative-color);
|
|
160
|
-
--Button-avatar-border-color: var(--Button-primary-netative-avatar-border-color);
|
|
161
|
-
}
|
|
162
|
-
.wds-Button--negative.wds-Button--secondary {
|
|
163
|
-
--Button-background: var(--Button-secondary-negative-background);
|
|
164
|
-
--Button-background-hover: var(--Button-secondary-negative-background-hover);
|
|
165
|
-
--Button-background-active: var(--Button-secondary-negative-background-active);
|
|
166
|
-
--Button-color: var(--Button-secondary-negative-color);
|
|
167
|
-
--Button-avatar-border-color: var(--Button-secondary-netative-avatar-border-color);
|
|
168
|
-
}
|
|
169
|
-
.wds-Button--small {
|
|
170
|
-
--Button-padding: var(--Button-size-small-padding);
|
|
171
|
-
--Button-line-height: 22px;
|
|
172
|
-
--Button-font-size: var(--font-size-14);
|
|
173
|
-
--Button-letter-spacing: -0.006em;
|
|
174
|
-
}
|
|
175
|
-
.wds-Button--small .wds-Button-icon--start {
|
|
176
|
-
margin-right: 4px;
|
|
177
|
-
margin-right: var(--size-4);
|
|
178
|
-
}
|
|
179
|
-
[dir="rtl"] .wds-Button--small .wds-Button-icon--start {
|
|
180
|
-
margin-right: 0;
|
|
181
|
-
margin-left: 4px;
|
|
182
|
-
margin-left: var(--size-4);
|
|
183
|
-
}
|
|
184
|
-
.wds-Button--medium {
|
|
185
|
-
--Button-padding: var(--Button-size-medium-padding);
|
|
186
|
-
}
|
|
187
|
-
.wds-Button--large {
|
|
188
|
-
--Button-padding: var(--Button-size-large-padding);
|
|
189
|
-
}
|
|
190
|
-
.wds-Button--block {
|
|
191
|
-
width: 100%;
|
|
192
|
-
}
|
|
193
|
-
.wds-Button-avatars {
|
|
194
|
-
display: inline-flex;
|
|
195
|
-
margin-right: 5px;
|
|
196
|
-
margin-left: calc(4px * -1);
|
|
197
|
-
margin-left: calc(var(--size-4) * -1);
|
|
198
|
-
}
|
|
199
|
-
[dir="rtl"] .wds-Button-avatars {
|
|
200
|
-
margin-right: 0;
|
|
201
|
-
margin-left: 5px;
|
|
202
|
-
}
|
|
203
|
-
.wds-Button-avatars .np-circle {
|
|
204
|
-
--circle-border-color: var(--Button-avatar-border-color);
|
|
205
|
-
}
|
|
206
|
-
.wds-Button-avatars .np-avatar-view .np-avatar-view-content {
|
|
207
|
-
color: var(--Button-color);
|
|
208
|
-
}
|
|
209
|
-
.wds-Button-icon {
|
|
210
|
-
display: inline-block;
|
|
211
|
-
}
|
|
212
|
-
.wds-Button-icon--start {
|
|
213
|
-
margin-right: 8px;
|
|
214
|
-
margin-right: var(--size-8);
|
|
215
|
-
}
|
|
216
|
-
[dir="rtl"] .wds-Button-icon--start {
|
|
217
|
-
margin-right: 0;
|
|
218
|
-
margin-left: 8px;
|
|
219
|
-
margin-left: var(--size-8);
|
|
220
|
-
}
|
|
221
|
-
.wds-Button-icon--end {
|
|
222
|
-
margin-left: 4px;
|
|
223
|
-
margin-left: var(--size-4);
|
|
224
|
-
}
|
|
225
|
-
[dir="rtl"] .wds-Button-icon--end {
|
|
226
|
-
margin-left: 0;
|
|
227
|
-
margin-right: 4px;
|
|
228
|
-
margin-right: var(--size-4);
|
|
229
|
-
}
|
|
230
|
-
.wds-Button-content {
|
|
1
|
+
.np-btn {
|
|
231
2
|
position: relative;
|
|
232
3
|
}
|
|
233
|
-
.
|
|
234
|
-
.wds-Button-content--loading .wds-Button-media,
|
|
235
|
-
.wds-Button-content--loading .wds-Button-icon {
|
|
236
|
-
visibility: hidden;
|
|
237
|
-
opacity: 0;
|
|
238
|
-
}
|
|
239
|
-
.wds-Button-label {
|
|
240
|
-
display: flex;
|
|
241
|
-
justify-content: center;
|
|
242
|
-
align-items: center;
|
|
243
|
-
position: relative;
|
|
244
|
-
}
|
|
245
|
-
.wds-Button-loader {
|
|
4
|
+
.np-btn.np-btn-block > span.btn-loader {
|
|
246
5
|
position: absolute;
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
6
|
+
left: 24px;
|
|
7
|
+
left: var(--size-24);
|
|
8
|
+
}
|
|
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;
|
|
252
14
|
}
|
|
253
|
-
.
|
|
254
|
-
|
|
15
|
+
.np-btn.np-btn-xs > span.btn-loader {
|
|
16
|
+
background-size: 16px 16px;
|
|
255
17
|
}
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
transform: rotate(180deg);
|
|
18
|
+
.np-btn.np-btn-xs.btn-block > span.btn-loader {
|
|
19
|
+
top: 0;
|
|
259
20
|
}
|
|
260
|
-
|
|
261
|
-
|
|
21
|
+
.np-btn.disabled[class] {
|
|
22
|
+
pointer-events: auto;
|
|
262
23
|
}
|
|
@@ -2,173 +2,32 @@
|
|
|
2
2
|
display: inline-flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: center;
|
|
5
|
-
text-align: center;
|
|
6
5
|
cursor: pointer;
|
|
7
|
-
position: relative;
|
|
8
6
|
}
|
|
9
|
-
.np-circular-btn .
|
|
10
|
-
|
|
11
|
-
top: 16px;
|
|
12
|
-
top: var(--size-16);
|
|
13
|
-
pointer-events: none;
|
|
14
|
-
color: white;
|
|
15
|
-
transition: color 0.15s ease-in-out;
|
|
16
|
-
width: 100%;
|
|
17
|
-
left: 0;
|
|
18
|
-
}
|
|
19
|
-
[dir="rtl"] .np-circular-btn .tw-icon {
|
|
20
|
-
right: 0;
|
|
21
|
-
left: auto;
|
|
22
|
-
left: initial;
|
|
23
|
-
}
|
|
24
|
-
@media (max-width: 320px) {
|
|
25
|
-
.np-circular-btn .tw-icon {
|
|
26
|
-
top: 12px;
|
|
27
|
-
top: var(--size-12);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
.np-circular-btn .tw-icon > svg {
|
|
31
|
-
margin: 0 auto;
|
|
32
|
-
}
|
|
33
|
-
.np-theme-personal .np-circular-btn {
|
|
34
|
-
/* stylelint-disable-next-line no-duplicate-selectors */
|
|
35
|
-
}
|
|
36
|
-
.np-theme-personal .np-circular-btn .tw-icon,
|
|
37
|
-
.np-theme-personal .np-circular-btn .tw-icon:hover,
|
|
38
|
-
.np-theme-personal .np-circular-btn .tw-icon:active {
|
|
39
|
-
color: var(--color-interactive-control);
|
|
40
|
-
}
|
|
41
|
-
.np-theme-personal .np-circular-btn.negative .tw-icon,
|
|
42
|
-
.np-theme-personal .np-circular-btn.negative.secondary:not(.disabled):not(:disabled):hover .tw-icon,
|
|
43
|
-
.np-theme-personal .np-circular-btn.negative.secondary:not(.disabled):not(:disabled):active .tw-icon {
|
|
44
|
-
color: var(--color-contrast) !important;
|
|
45
|
-
}
|
|
46
|
-
.np-theme-personal .np-circular-btn.negative.secondary:not(.disabled):not(:disabled) .tw-icon {
|
|
47
|
-
color: var(--color-sentiment-negative) !important;
|
|
48
|
-
}
|
|
49
|
-
.np-circular-btn.accent .np-circular-btn__label {
|
|
50
|
-
color: #00a2dd;
|
|
51
|
-
color: var(--color-interactive-accent);
|
|
52
|
-
}
|
|
53
|
-
.np-circular-btn.accent:not(.disabled):not(:disabled):hover .np-circular-btn__label {
|
|
54
|
-
color: #008fc9;
|
|
55
|
-
color: var(--color-interactive-accent-hover);
|
|
56
|
-
}
|
|
57
|
-
.np-circular-btn.accent:active .np-circular-btn__label,
|
|
58
|
-
.np-circular-btn.accent input[type="button"]:active ~ .np-circular-btn__label {
|
|
59
|
-
color: #0081ba;
|
|
60
|
-
color: var(--color-interactive-accent-active);
|
|
61
|
-
}
|
|
62
|
-
.np-circular-btn.accent.secondary .tw-icon {
|
|
63
|
-
color: #00a2dd;
|
|
64
|
-
color: var(--color-interactive-accent);
|
|
65
|
-
}
|
|
66
|
-
.np-circular-btn.accent.secondary:not(.disabled):not(:disabled):hover .tw-icon,
|
|
67
|
-
.np-circular-btn.accent.secondary input[type="button"]:active + .tw-icon {
|
|
68
|
-
color: white;
|
|
69
|
-
}
|
|
70
|
-
.np-circular-btn.positive .np-circular-btn__label {
|
|
71
|
-
color: #2ead4b;
|
|
72
|
-
color: var(--color-interactive-positive);
|
|
73
|
-
}
|
|
74
|
-
.np-circular-btn.positive:not(.disabled):not(:disabled):hover .np-circular-btn__label {
|
|
75
|
-
color: #069939;
|
|
76
|
-
color: var(--color-interactive-positive-hover);
|
|
77
|
-
}
|
|
78
|
-
.np-circular-btn.positive:active .np-circular-btn__label,
|
|
79
|
-
.np-circular-btn.positive input[type="button"]:active ~ .np-circular-btn__label {
|
|
80
|
-
color: #008b2b;
|
|
81
|
-
color: var(--color-interactive-positive-active);
|
|
82
|
-
}
|
|
83
|
-
.np-circular-btn.positive.secondary .tw-icon {
|
|
84
|
-
color: #2ead4b;
|
|
85
|
-
color: var(--color-interactive-positive);
|
|
86
|
-
}
|
|
87
|
-
.np-circular-btn.positive.secondary:not(.disabled):not(:disabled):hover .tw-icon,
|
|
88
|
-
.np-circular-btn.positive.secondary input[type="button"]:active + .tw-icon {
|
|
89
|
-
color: white;
|
|
90
|
-
}
|
|
91
|
-
.np-circular-btn.negative .np-circular-btn__label {
|
|
92
|
-
color: #e74848;
|
|
93
|
-
color: var(--color-interactive-negative);
|
|
94
|
-
}
|
|
95
|
-
.np-circular-btn.negative:not(.disabled):not(:disabled):hover .np-circular-btn__label {
|
|
96
|
-
color: #d03238;
|
|
97
|
-
color: var(--color-interactive-negative-hover);
|
|
98
|
-
}
|
|
99
|
-
.np-circular-btn.negative:active .np-circular-btn__label,
|
|
100
|
-
.np-circular-btn.negative input[type="button"]:active ~ .np-circular-btn__label {
|
|
101
|
-
color: #bf1e2c;
|
|
102
|
-
color: var(--color-interactive-negative-active);
|
|
103
|
-
}
|
|
104
|
-
.np-circular-btn.negative.secondary .tw-icon {
|
|
105
|
-
color: #e74848;
|
|
106
|
-
color: var(--color-interactive-negative);
|
|
107
|
-
}
|
|
108
|
-
.np-circular-btn.negative.secondary:not(.disabled):not(:disabled):hover .tw-icon,
|
|
109
|
-
.np-circular-btn.negative.secondary input[type="button"]:active + .tw-icon {
|
|
110
|
-
color: white;
|
|
111
|
-
}
|
|
112
|
-
.np-theme-personal .np-circular-btn.accent .np-circular-btn__label {
|
|
7
|
+
.np-circular-btn-primary-default .np-circular-btn-label,
|
|
8
|
+
.np-circular-btn-secondary-default .np-circular-btn-label {
|
|
113
9
|
color: var(--color-interactive-primary);
|
|
114
10
|
}
|
|
115
|
-
.np-
|
|
11
|
+
.np-circular-btn-primary-default .np-circular-btn-label:not(.disabled):not(:disabled):hover,
|
|
12
|
+
.np-circular-btn-secondary-default .np-circular-btn-label:not(.disabled):not(:disabled):hover {
|
|
116
13
|
color: var(--color-interactive-primary-hover);
|
|
117
14
|
}
|
|
118
|
-
.np-
|
|
119
|
-
.np-
|
|
15
|
+
.np-circular-btn-primary-default .np-circular-btn-label:not(.disabled):not(:disabled):active,
|
|
16
|
+
.np-circular-btn-secondary-default .np-circular-btn-label:not(.disabled):not(:disabled):active {
|
|
120
17
|
color: var(--color-interactive-primary-active);
|
|
121
18
|
}
|
|
122
|
-
.np-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
.np-theme-personal .np-circular-btn.accent.secondary:not(.disabled):not(:disabled):hover .tw-icon,
|
|
126
|
-
.np-theme-personal .np-circular-btn.accent.secondary input[type="button"]:active + .tw-icon {
|
|
127
|
-
color: white;
|
|
128
|
-
color: var(--color-interactive-control);
|
|
129
|
-
}
|
|
130
|
-
.np-theme-personal .np-circular-btn.accent.secondary:active input[type="button"] + .tw-icon {
|
|
131
|
-
color: var(--color-interactive-control);
|
|
132
|
-
}
|
|
133
|
-
.np-theme-personal .np-circular-btn.positive .np-circular-btn__label {
|
|
134
|
-
color: var(--color-interactive-primary);
|
|
135
|
-
}
|
|
136
|
-
.np-theme-personal .np-circular-btn.positive:not(.disabled):not(:disabled):hover .np-circular-btn__label {
|
|
137
|
-
color: var(--color-interactive-primary-hover);
|
|
138
|
-
}
|
|
139
|
-
.np-theme-personal .np-circular-btn.positive:active .np-circular-btn__label,
|
|
140
|
-
.np-theme-personal .np-circular-btn.positive input[type="button"]:active ~ .np-circular-btn__label {
|
|
141
|
-
color: var(--color-interactive-primary-active);
|
|
142
|
-
}
|
|
143
|
-
.np-theme-personal .np-circular-btn.positive.secondary .tw-icon {
|
|
144
|
-
color: var(--color-interactive-primary);
|
|
145
|
-
}
|
|
146
|
-
.np-theme-personal .np-circular-btn.positive.secondary:not(.disabled):not(:disabled):hover .tw-icon,
|
|
147
|
-
.np-theme-personal .np-circular-btn.positive.secondary input[type="button"]:active + .tw-icon {
|
|
148
|
-
color: white;
|
|
149
|
-
color: var(--color-interactive-control);
|
|
150
|
-
}
|
|
151
|
-
.np-theme-personal .np-circular-btn.positive.secondary:active input[type="button"] + .tw-icon {
|
|
152
|
-
color: var(--color-interactive-control);
|
|
153
|
-
}
|
|
154
|
-
.np-theme-personal .np-circular-btn.negative .np-circular-btn__label {
|
|
155
|
-
color: var(--color-sentiment-negative);
|
|
156
|
-
}
|
|
157
|
-
.np-theme-personal .np-circular-btn.negative:not(.disabled):not(:disabled):hover .np-circular-btn__label {
|
|
158
|
-
color: var(--color-sentiment-negative-hover);
|
|
159
|
-
}
|
|
160
|
-
.np-theme-personal .np-circular-btn.negative:active .np-circular-btn__label,
|
|
161
|
-
.np-theme-personal .np-circular-btn.negative input[type="button"]:active ~ .np-circular-btn__label {
|
|
162
|
-
color: var(--color-sentiment-negative-active);
|
|
19
|
+
.np-circular-btn-primary-negative .np-circular-btn-label,
|
|
20
|
+
.np-circular-btn-secondary-negative .np-circular-btn-label {
|
|
21
|
+
color: var(--color-sentiment-negative-primary);
|
|
163
22
|
}
|
|
164
|
-
.np-
|
|
165
|
-
|
|
23
|
+
.np-circular-btn-primary-negative .np-circular-btn-label:not(.disabled):not(:disabled):hover,
|
|
24
|
+
.np-circular-btn-secondary-negative .np-circular-btn-label:not(.disabled):not(:disabled):hover {
|
|
25
|
+
color: var(--color-sentiment-negative-primary-hover);
|
|
166
26
|
}
|
|
167
|
-
.np-
|
|
168
|
-
.np-
|
|
169
|
-
color:
|
|
170
|
-
color: var(--color-interactive-control);
|
|
27
|
+
.np-circular-btn-primary-negative .np-circular-btn-label:not(.disabled):not(:disabled):active,
|
|
28
|
+
.np-circular-btn-secondary-negative .np-circular-btn-label:not(.disabled):not(:disabled):active {
|
|
29
|
+
color: var(--color-sentiment-negative-primary-active);
|
|
171
30
|
}
|
|
172
|
-
.np-
|
|
173
|
-
|
|
31
|
+
.np-circular-btn-disabled {
|
|
32
|
+
cursor: not-allowed;
|
|
174
33
|
}
|