@transferwise/components 0.0.0-experimental-6fa7ff3 → 0.0.0-experimental-f341b41
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/avatarView/AvatarView.js +1 -12
- package/build/avatarView/AvatarView.js.map +1 -1
- package/build/avatarView/AvatarView.mjs +1 -12
- package/build/avatarView/AvatarView.mjs.map +1 -1
- package/build/circularButton/CircularButton.js +21 -18
- package/build/circularButton/CircularButton.js.map +1 -1
- package/build/circularButton/CircularButton.mjs +22 -19
- package/build/circularButton/CircularButton.mjs.map +1 -1
- package/build/definitionList/DefinitionList.js.map +1 -1
- package/build/definitionList/DefinitionList.mjs.map +1 -1
- package/build/i18n/de.json +0 -1
- package/build/i18n/de.json.js +0 -1
- package/build/i18n/de.json.js.map +1 -1
- package/build/i18n/de.json.mjs +0 -1
- package/build/i18n/de.json.mjs.map +1 -1
- package/build/i18n/it.json +0 -1
- package/build/i18n/it.json.js +0 -1
- package/build/i18n/it.json.js.map +1 -1
- package/build/i18n/it.json.mjs +0 -1
- package/build/i18n/it.json.mjs.map +1 -1
- package/build/i18n/th.json +0 -1
- package/build/i18n/th.json.js +0 -1
- package/build/i18n/th.json.js.map +1 -1
- package/build/i18n/th.json.mjs +0 -1
- package/build/i18n/th.json.mjs.map +1 -1
- package/build/main.css +180 -47
- package/build/styles/button/Button.css +22 -30
- package/build/styles/button/Button.vars.css +1 -18
- package/build/styles/circularButton/CircularButton.css +158 -17
- package/build/styles/main.css +180 -47
- package/build/types/avatarView/AvatarView.d.ts.map +1 -1
- package/build/types/circularButton/CircularButton.d.ts +4 -11
- package/build/types/circularButton/CircularButton.d.ts.map +1 -1
- package/build/types/definitionList/DefinitionList.d.ts +2 -1
- package/build/types/definitionList/DefinitionList.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/avatarView/AvatarView.tsx +1 -15
- package/src/button/Button.css +22 -30
- package/src/button/Button.less +30 -6
- package/src/button/Button.vars.css +1 -18
- package/src/button/Button.vars.less +1 -24
- package/src/circularButton/CircularButton.css +158 -17
- package/src/circularButton/CircularButton.less +91 -22
- package/src/circularButton/CircularButton.story.tsx +24 -45
- package/src/circularButton/CircularButton.tsx +25 -38
- package/src/circularButton/_button-label-states.less +34 -0
- package/src/dateInput/DateInput.spec.tsx +26 -45
- package/src/definitionList/DefinitionList.spec.js +91 -0
- package/src/definitionList/DefinitionList.story.tsx +57 -57
- package/src/definitionList/DefinitionList.tsx +1 -1
- package/src/i18n/de.json +0 -1
- package/src/i18n/it.json +0 -1
- package/src/i18n/th.json +0 -1
- package/src/iconButton/IconButton.story.tsx +6 -6
- package/src/main.css +180 -47
- package/src/slidingPanel/SlidingPanel.spec.js +56 -0
- package/src/slidingPanel/SlidingPanel.spec.tsx +0 -69
|
@@ -2,32 +2,173 @@
|
|
|
2
2
|
display: inline-flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: center;
|
|
5
|
+
text-align: center;
|
|
5
6
|
cursor: pointer;
|
|
7
|
+
position: relative;
|
|
6
8
|
}
|
|
7
|
-
.np-circular-btn
|
|
8
|
-
|
|
9
|
+
.np-circular-btn .tw-icon {
|
|
10
|
+
position: absolute;
|
|
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 {
|
|
9
113
|
color: var(--color-interactive-primary);
|
|
10
114
|
}
|
|
11
|
-
.np-
|
|
12
|
-
.np-circular-btn-secondary-default .np-circular-btn-label:not(.disabled):not(:disabled):hover {
|
|
115
|
+
.np-theme-personal .np-circular-btn.accent:not(.disabled):not(:disabled):hover .np-circular-btn__label {
|
|
13
116
|
color: var(--color-interactive-primary-hover);
|
|
14
117
|
}
|
|
15
|
-
.np-
|
|
16
|
-
.np-
|
|
118
|
+
.np-theme-personal .np-circular-btn.accent:active .np-circular-btn__label,
|
|
119
|
+
.np-theme-personal .np-circular-btn.accent input[type="button"]:active ~ .np-circular-btn__label {
|
|
17
120
|
color: var(--color-interactive-primary-active);
|
|
18
121
|
}
|
|
19
|
-
.np-
|
|
20
|
-
|
|
21
|
-
|
|
122
|
+
.np-theme-personal .np-circular-btn.accent.secondary .tw-icon {
|
|
123
|
+
color: var(--color-interactive-primary);
|
|
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);
|
|
22
163
|
}
|
|
23
|
-
.np-
|
|
24
|
-
|
|
25
|
-
color: var(--color-sentiment-negative-primary-hover);
|
|
164
|
+
.np-theme-personal .np-circular-btn.negative.secondary .tw-icon {
|
|
165
|
+
color: var(--color-sentiment-negative);
|
|
26
166
|
}
|
|
27
|
-
.np-
|
|
28
|
-
.np-
|
|
29
|
-
color:
|
|
167
|
+
.np-theme-personal .np-circular-btn.negative.secondary:not(.disabled):not(:disabled):hover .tw-icon,
|
|
168
|
+
.np-theme-personal .np-circular-btn.negative.secondary input[type="button"]:active + .tw-icon {
|
|
169
|
+
color: white;
|
|
170
|
+
color: var(--color-interactive-control);
|
|
30
171
|
}
|
|
31
|
-
.np-circular-btn-
|
|
32
|
-
|
|
172
|
+
.np-theme-personal .np-circular-btn.negative.secondary:active input[type="button"] + .tw-icon {
|
|
173
|
+
color: var(--color-interactive-control);
|
|
33
174
|
}
|
package/build/styles/main.css
CHANGED
|
@@ -716,7 +716,7 @@ div.critical-comms .critical-comms-body {
|
|
|
716
716
|
.np-btn.disabled[class] {
|
|
717
717
|
pointer-events: auto;
|
|
718
718
|
}
|
|
719
|
-
|
|
719
|
+
.wds-Button {
|
|
720
720
|
--Button-background: var(--color-interactive-accent);
|
|
721
721
|
--Button-background-hover: var(--color-interactive-accent-hover);
|
|
722
722
|
--Button-background-active: var(--color-interactive-accent-active);
|
|
@@ -726,7 +726,6 @@ div.critical-comms .critical-comms-body {
|
|
|
726
726
|
--Button-size-small-padding: 5px var(--size-12);
|
|
727
727
|
--Button-size-medium-padding: var(--size-8) var(--size-12);
|
|
728
728
|
--Button-size-large-padding: var(--size-12) var(--size-16);
|
|
729
|
-
--Button-avatar-border-color: var(--color-border-neutral);
|
|
730
729
|
--Button-transition-duration: 150ms;
|
|
731
730
|
--Button-transition-easing: ease-in-out;
|
|
732
731
|
--Button-secondary-background: var(--color-interactive-neutral);
|
|
@@ -745,31 +744,15 @@ div.critical-comms .critical-comms-body {
|
|
|
745
744
|
--Button-primary-negative-background-hover: var(--color-sentiment-negative-primary-hover);
|
|
746
745
|
--Button-primary-negative-background-active: var(--color-sentiment-negative-primary-active);
|
|
747
746
|
--Button-primary-negative-color: var(--color-contrast);
|
|
748
|
-
--Button-primary-netative-avatar-border-color: rgba(255,255,255,0.2);
|
|
749
747
|
--Button-secondary-negative-background: var(--color-sentiment-negative-secondary);
|
|
750
748
|
--Button-secondary-negative-background-hover: var(--color-sentiment-negative-secondary-hover);
|
|
751
749
|
--Button-secondary-negative-background-active: var(--color-sentiment-negative-secondary-active);
|
|
752
750
|
--Button-secondary-negative-color: var(--color-sentiment-negative-primary);
|
|
753
|
-
--Button-secondary-netative-avatar-border-color: rgba(168,32,13,0.12157);
|
|
754
|
-
}
|
|
755
|
-
.np-theme-personal--dark .wds-Button {
|
|
756
|
-
--Button-primary-netative-avatar-border-color: rgba(14,15,12,0.12157);
|
|
757
|
-
}
|
|
758
|
-
.np-theme-personal--forest-green .wds-Button {
|
|
759
|
-
--color-interactive-neutral: rgba(159,232,112,0.2);
|
|
760
|
-
--color-interactive-neutral-hover: rgba(205,255,173,0.2);
|
|
761
|
-
--color-interactive-neutral-active: rgba(236,255,224,0.2);
|
|
762
|
-
--color-sentiment-negative-secondary: rgba(255,196,194,0.2);
|
|
763
|
-
--color-sentiment-negative-secondary-hover: rgba(255,220,219,0.2);
|
|
764
|
-
--color-sentiment-negative-secondary-active: rgba(255,235,235,0.2);
|
|
765
|
-
--Button-primary-netative-avatar-border-color: rgba(14,15,12,0.12157);
|
|
766
|
-
--Button-secondary-netative-avatar-border-color: rgba(14,15,12,0.12157);
|
|
767
751
|
}
|
|
768
752
|
.np-theme-personal--bright-green .wds-Button {
|
|
769
753
|
--color-contrast: #FFFFFF;
|
|
770
754
|
--Button-secondary-color: var(--color-interactive-control);
|
|
771
755
|
--Button-secondary-negative-color: var(--color-contrast);
|
|
772
|
-
--Button-secondary-netative-avatar-border-color: var(--Button-primary-netative-avatar-border-color);
|
|
773
756
|
}
|
|
774
757
|
/* Button Styles */
|
|
775
758
|
.wds-Button {
|
|
@@ -787,16 +770,12 @@ div.critical-comms .critical-comms-body {
|
|
|
787
770
|
-webkit-appearance: none;
|
|
788
771
|
-moz-appearance: none;
|
|
789
772
|
appearance: none;
|
|
790
|
-
background-color: #00a2dd;
|
|
791
773
|
background-color: var(--Button-background);
|
|
792
774
|
border: none;
|
|
793
|
-
border-radius: 9999px;
|
|
794
775
|
border-radius: var(--Button-border-radius);
|
|
795
776
|
color: var(--Button-color);
|
|
796
777
|
cursor: pointer;
|
|
797
|
-
padding: 8px 12px;
|
|
798
778
|
padding: var(--Button-padding);
|
|
799
|
-
transition: color, background-color 150ms ease-in-out;
|
|
800
779
|
transition: color, background-color var(--Button-transition-duration) var(--Button-transition-easing);
|
|
801
780
|
}
|
|
802
781
|
.wds-Button:focus {
|
|
@@ -804,13 +783,11 @@ div.critical-comms .critical-comms-body {
|
|
|
804
783
|
text-decoration: none;
|
|
805
784
|
}
|
|
806
785
|
.wds-Button:hover {
|
|
807
|
-
background-color: #008fc9;
|
|
808
786
|
background-color: var(--Button-background-hover);
|
|
809
787
|
-webkit-text-decoration: none;
|
|
810
788
|
text-decoration: none;
|
|
811
789
|
}
|
|
812
790
|
.wds-Button:active {
|
|
813
|
-
background-color: #0081ba;
|
|
814
791
|
background-color: var(--Button-background-active);
|
|
815
792
|
-webkit-text-decoration: none;
|
|
816
793
|
text-decoration: none;
|
|
@@ -825,7 +802,6 @@ div.critical-comms .critical-comms-body {
|
|
|
825
802
|
.wds-Button:disabled:hover,
|
|
826
803
|
.wds-Button.wds-Button--disabled:active,
|
|
827
804
|
.wds-Button:disabled:active {
|
|
828
|
-
background-color: #00a2dd;
|
|
829
805
|
background-color: var(--Button-background);
|
|
830
806
|
}
|
|
831
807
|
.wds-Button--secondary {
|
|
@@ -863,14 +839,12 @@ div.critical-comms .critical-comms-body {
|
|
|
863
839
|
--Button-background-hover: var(--Button-primary-negative-background-hover);
|
|
864
840
|
--Button-background-active: var(--Button-primary-negative-background-active);
|
|
865
841
|
--Button-color: var(--Button-primary-negative-color);
|
|
866
|
-
--Button-avatar-border-color: var(--Button-primary-netative-avatar-border-color);
|
|
867
842
|
}
|
|
868
843
|
.wds-Button--negative.wds-Button--secondary {
|
|
869
844
|
--Button-background: var(--Button-secondary-negative-background);
|
|
870
845
|
--Button-background-hover: var(--Button-secondary-negative-background-hover);
|
|
871
846
|
--Button-background-active: var(--Button-secondary-negative-background-active);
|
|
872
847
|
--Button-color: var(--Button-secondary-negative-color);
|
|
873
|
-
--Button-avatar-border-color: var(--Button-secondary-netative-avatar-border-color);
|
|
874
848
|
}
|
|
875
849
|
.wds-Button--small {
|
|
876
850
|
--Button-padding: var(--Button-size-small-padding);
|
|
@@ -903,9 +877,6 @@ div.critical-comms .critical-comms-body {
|
|
|
903
877
|
margin-right: 0;
|
|
904
878
|
margin-left: 5px;
|
|
905
879
|
}
|
|
906
|
-
.wds-Button-avatars .np-circle {
|
|
907
|
-
--circle-border-color: var(--Button-avatar-border-color);
|
|
908
|
-
}
|
|
909
880
|
.wds-Button-avatars .np-avatar-view .np-avatar-view-content {
|
|
910
881
|
color: var(--Button-color);
|
|
911
882
|
}
|
|
@@ -963,6 +934,27 @@ div.critical-comms .critical-comms-body {
|
|
|
963
934
|
[dir="rtl"] .wds-Button .tw-icon-chevron-left,[dir="rtl"] .wds-Button .tw-icon-arrow-left {
|
|
964
935
|
transform: rotate(180deg);
|
|
965
936
|
}
|
|
937
|
+
/* Avatar border transparency */
|
|
938
|
+
/* dark buttons get 20% transparency, light buttons get 12% */
|
|
939
|
+
.wds-Button-avatars .np-circle {
|
|
940
|
+
--circle-border-color: color-mix(in srgb, var(--Button-color) 20%, transparent);
|
|
941
|
+
}
|
|
942
|
+
.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,
|
|
943
|
+
.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,
|
|
944
|
+
.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,
|
|
945
|
+
.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 {
|
|
946
|
+
--circle-border-color: color-mix(in srgb, var(--Button-color) 12%, transparent);
|
|
947
|
+
}
|
|
948
|
+
.np-theme-personal--dark .wds-Button--primary .wds-Button-avatars .np-circle,
|
|
949
|
+
.np-theme-personal--dark .wds-Button--primary.wds-Button--negative .wds-Button-avatars .np-circle,
|
|
950
|
+
.np-theme-personal--forest-green .wds-Button--primary .wds-Button-avatars .np-circle,
|
|
951
|
+
.np-theme-personal--forest-green .wds-Button--primary.wds-Button--negative .wds-Button-avatars .np-circle {
|
|
952
|
+
--circle-border-color: color-mix(in srgb, var(--Button-color) 12%, transparent);
|
|
953
|
+
}
|
|
954
|
+
.np-theme-personal--bright-green .wds-Button--tertiary .wds-Button-avatars .np-circle,
|
|
955
|
+
.np-theme-personal--bright-green .wds-Button--minimal .wds-Button-avatars .np-circle {
|
|
956
|
+
--circle-border-color: color-mix(in srgb, var(--Button-color) 12%, transparent);
|
|
957
|
+
}
|
|
966
958
|
.np-card {
|
|
967
959
|
overflow: hidden;
|
|
968
960
|
transition-property: transform, box-shadow;
|
|
@@ -1442,34 +1434,175 @@ div.critical-comms .critical-comms-body {
|
|
|
1442
1434
|
display: inline-flex;
|
|
1443
1435
|
flex-direction: column;
|
|
1444
1436
|
align-items: center;
|
|
1437
|
+
text-align: center;
|
|
1445
1438
|
cursor: pointer;
|
|
1439
|
+
position: relative;
|
|
1440
|
+
}
|
|
1441
|
+
.np-circular-btn .tw-icon {
|
|
1442
|
+
position: absolute;
|
|
1443
|
+
top: 16px;
|
|
1444
|
+
top: var(--size-16);
|
|
1445
|
+
pointer-events: none;
|
|
1446
|
+
color: white;
|
|
1447
|
+
transition: color 0.15s ease-in-out;
|
|
1448
|
+
width: 100%;
|
|
1449
|
+
left: 0;
|
|
1450
|
+
}
|
|
1451
|
+
[dir="rtl"] .np-circular-btn .tw-icon {
|
|
1452
|
+
right: 0;
|
|
1453
|
+
left: auto;
|
|
1454
|
+
left: initial;
|
|
1455
|
+
}
|
|
1456
|
+
@media (max-width: 320px) {
|
|
1457
|
+
.np-circular-btn .tw-icon {
|
|
1458
|
+
top: 12px;
|
|
1459
|
+
top: var(--size-12);
|
|
1460
|
+
}
|
|
1461
|
+
}
|
|
1462
|
+
.np-circular-btn .tw-icon > svg {
|
|
1463
|
+
margin: 0 auto;
|
|
1464
|
+
}
|
|
1465
|
+
.np-theme-personal .np-circular-btn {
|
|
1466
|
+
/* stylelint-disable-next-line no-duplicate-selectors */
|
|
1467
|
+
}
|
|
1468
|
+
.np-theme-personal .np-circular-btn .tw-icon,
|
|
1469
|
+
.np-theme-personal .np-circular-btn .tw-icon:hover,
|
|
1470
|
+
.np-theme-personal .np-circular-btn .tw-icon:active {
|
|
1471
|
+
color: var(--color-interactive-control);
|
|
1472
|
+
}
|
|
1473
|
+
.np-theme-personal .np-circular-btn.negative .tw-icon,
|
|
1474
|
+
.np-theme-personal .np-circular-btn.negative.secondary:not(.disabled):not(:disabled):hover .tw-icon,
|
|
1475
|
+
.np-theme-personal .np-circular-btn.negative.secondary:not(.disabled):not(:disabled):active .tw-icon {
|
|
1476
|
+
color: var(--color-contrast) !important;
|
|
1477
|
+
}
|
|
1478
|
+
.np-theme-personal .np-circular-btn.negative.secondary:not(.disabled):not(:disabled) .tw-icon {
|
|
1479
|
+
color: var(--color-sentiment-negative) !important;
|
|
1480
|
+
}
|
|
1481
|
+
.np-circular-btn.accent .np-circular-btn__label {
|
|
1482
|
+
color: #00a2dd;
|
|
1483
|
+
color: var(--color-interactive-accent);
|
|
1484
|
+
}
|
|
1485
|
+
.np-circular-btn.accent:not(.disabled):not(:disabled):hover .np-circular-btn__label {
|
|
1486
|
+
color: #008fc9;
|
|
1487
|
+
color: var(--color-interactive-accent-hover);
|
|
1488
|
+
}
|
|
1489
|
+
.np-circular-btn.accent:active .np-circular-btn__label,
|
|
1490
|
+
.np-circular-btn.accent input[type="button"]:active ~ .np-circular-btn__label {
|
|
1491
|
+
color: #0081ba;
|
|
1492
|
+
color: var(--color-interactive-accent-active);
|
|
1446
1493
|
}
|
|
1447
|
-
.np-circular-btn
|
|
1448
|
-
|
|
1494
|
+
.np-circular-btn.accent.secondary .tw-icon {
|
|
1495
|
+
color: #00a2dd;
|
|
1496
|
+
color: var(--color-interactive-accent);
|
|
1497
|
+
}
|
|
1498
|
+
.np-circular-btn.accent.secondary:not(.disabled):not(:disabled):hover .tw-icon,
|
|
1499
|
+
.np-circular-btn.accent.secondary input[type="button"]:active + .tw-icon {
|
|
1500
|
+
color: white;
|
|
1501
|
+
}
|
|
1502
|
+
.np-circular-btn.positive .np-circular-btn__label {
|
|
1503
|
+
color: #2ead4b;
|
|
1504
|
+
color: var(--color-interactive-positive);
|
|
1505
|
+
}
|
|
1506
|
+
.np-circular-btn.positive:not(.disabled):not(:disabled):hover .np-circular-btn__label {
|
|
1507
|
+
color: #069939;
|
|
1508
|
+
color: var(--color-interactive-positive-hover);
|
|
1509
|
+
}
|
|
1510
|
+
.np-circular-btn.positive:active .np-circular-btn__label,
|
|
1511
|
+
.np-circular-btn.positive input[type="button"]:active ~ .np-circular-btn__label {
|
|
1512
|
+
color: #008b2b;
|
|
1513
|
+
color: var(--color-interactive-positive-active);
|
|
1514
|
+
}
|
|
1515
|
+
.np-circular-btn.positive.secondary .tw-icon {
|
|
1516
|
+
color: #2ead4b;
|
|
1517
|
+
color: var(--color-interactive-positive);
|
|
1518
|
+
}
|
|
1519
|
+
.np-circular-btn.positive.secondary:not(.disabled):not(:disabled):hover .tw-icon,
|
|
1520
|
+
.np-circular-btn.positive.secondary input[type="button"]:active + .tw-icon {
|
|
1521
|
+
color: white;
|
|
1522
|
+
}
|
|
1523
|
+
.np-circular-btn.negative .np-circular-btn__label {
|
|
1524
|
+
color: #e74848;
|
|
1525
|
+
color: var(--color-interactive-negative);
|
|
1526
|
+
}
|
|
1527
|
+
.np-circular-btn.negative:not(.disabled):not(:disabled):hover .np-circular-btn__label {
|
|
1528
|
+
color: #d03238;
|
|
1529
|
+
color: var(--color-interactive-negative-hover);
|
|
1530
|
+
}
|
|
1531
|
+
.np-circular-btn.negative:active .np-circular-btn__label,
|
|
1532
|
+
.np-circular-btn.negative input[type="button"]:active ~ .np-circular-btn__label {
|
|
1533
|
+
color: #bf1e2c;
|
|
1534
|
+
color: var(--color-interactive-negative-active);
|
|
1535
|
+
}
|
|
1536
|
+
.np-circular-btn.negative.secondary .tw-icon {
|
|
1537
|
+
color: #e74848;
|
|
1538
|
+
color: var(--color-interactive-negative);
|
|
1539
|
+
}
|
|
1540
|
+
.np-circular-btn.negative.secondary:not(.disabled):not(:disabled):hover .tw-icon,
|
|
1541
|
+
.np-circular-btn.negative.secondary input[type="button"]:active + .tw-icon {
|
|
1542
|
+
color: white;
|
|
1543
|
+
}
|
|
1544
|
+
.np-theme-personal .np-circular-btn.accent .np-circular-btn__label {
|
|
1449
1545
|
color: var(--color-interactive-primary);
|
|
1450
1546
|
}
|
|
1451
|
-
.np-
|
|
1452
|
-
.np-circular-btn-secondary-default .np-circular-btn-label:not(.disabled):not(:disabled):hover {
|
|
1547
|
+
.np-theme-personal .np-circular-btn.accent:not(.disabled):not(:disabled):hover .np-circular-btn__label {
|
|
1453
1548
|
color: var(--color-interactive-primary-hover);
|
|
1454
1549
|
}
|
|
1455
|
-
.np-
|
|
1456
|
-
.np-
|
|
1550
|
+
.np-theme-personal .np-circular-btn.accent:active .np-circular-btn__label,
|
|
1551
|
+
.np-theme-personal .np-circular-btn.accent input[type="button"]:active ~ .np-circular-btn__label {
|
|
1457
1552
|
color: var(--color-interactive-primary-active);
|
|
1458
1553
|
}
|
|
1459
|
-
.np-
|
|
1460
|
-
|
|
1461
|
-
|
|
1554
|
+
.np-theme-personal .np-circular-btn.accent.secondary .tw-icon {
|
|
1555
|
+
color: var(--color-interactive-primary);
|
|
1556
|
+
}
|
|
1557
|
+
.np-theme-personal .np-circular-btn.accent.secondary:not(.disabled):not(:disabled):hover .tw-icon,
|
|
1558
|
+
.np-theme-personal .np-circular-btn.accent.secondary input[type="button"]:active + .tw-icon {
|
|
1559
|
+
color: white;
|
|
1560
|
+
color: var(--color-interactive-control);
|
|
1462
1561
|
}
|
|
1463
|
-
.np-
|
|
1464
|
-
|
|
1465
|
-
color: var(--color-sentiment-negative-primary-hover);
|
|
1562
|
+
.np-theme-personal .np-circular-btn.accent.secondary:active input[type="button"] + .tw-icon {
|
|
1563
|
+
color: var(--color-interactive-control);
|
|
1466
1564
|
}
|
|
1467
|
-
.np-circular-btn
|
|
1468
|
-
|
|
1469
|
-
color: var(--color-sentiment-negative-primary-active);
|
|
1565
|
+
.np-theme-personal .np-circular-btn.positive .np-circular-btn__label {
|
|
1566
|
+
color: var(--color-interactive-primary);
|
|
1470
1567
|
}
|
|
1471
|
-
.np-circular-btn
|
|
1472
|
-
|
|
1568
|
+
.np-theme-personal .np-circular-btn.positive:not(.disabled):not(:disabled):hover .np-circular-btn__label {
|
|
1569
|
+
color: var(--color-interactive-primary-hover);
|
|
1570
|
+
}
|
|
1571
|
+
.np-theme-personal .np-circular-btn.positive:active .np-circular-btn__label,
|
|
1572
|
+
.np-theme-personal .np-circular-btn.positive input[type="button"]:active ~ .np-circular-btn__label {
|
|
1573
|
+
color: var(--color-interactive-primary-active);
|
|
1574
|
+
}
|
|
1575
|
+
.np-theme-personal .np-circular-btn.positive.secondary .tw-icon {
|
|
1576
|
+
color: var(--color-interactive-primary);
|
|
1577
|
+
}
|
|
1578
|
+
.np-theme-personal .np-circular-btn.positive.secondary:not(.disabled):not(:disabled):hover .tw-icon,
|
|
1579
|
+
.np-theme-personal .np-circular-btn.positive.secondary input[type="button"]:active + .tw-icon {
|
|
1580
|
+
color: white;
|
|
1581
|
+
color: var(--color-interactive-control);
|
|
1582
|
+
}
|
|
1583
|
+
.np-theme-personal .np-circular-btn.positive.secondary:active input[type="button"] + .tw-icon {
|
|
1584
|
+
color: var(--color-interactive-control);
|
|
1585
|
+
}
|
|
1586
|
+
.np-theme-personal .np-circular-btn.negative .np-circular-btn__label {
|
|
1587
|
+
color: var(--color-sentiment-negative);
|
|
1588
|
+
}
|
|
1589
|
+
.np-theme-personal .np-circular-btn.negative:not(.disabled):not(:disabled):hover .np-circular-btn__label {
|
|
1590
|
+
color: var(--color-sentiment-negative-hover);
|
|
1591
|
+
}
|
|
1592
|
+
.np-theme-personal .np-circular-btn.negative:active .np-circular-btn__label,
|
|
1593
|
+
.np-theme-personal .np-circular-btn.negative input[type="button"]:active ~ .np-circular-btn__label {
|
|
1594
|
+
color: var(--color-sentiment-negative-active);
|
|
1595
|
+
}
|
|
1596
|
+
.np-theme-personal .np-circular-btn.negative.secondary .tw-icon {
|
|
1597
|
+
color: var(--color-sentiment-negative);
|
|
1598
|
+
}
|
|
1599
|
+
.np-theme-personal .np-circular-btn.negative.secondary:not(.disabled):not(:disabled):hover .tw-icon,
|
|
1600
|
+
.np-theme-personal .np-circular-btn.negative.secondary input[type="button"]:active + .tw-icon {
|
|
1601
|
+
color: white;
|
|
1602
|
+
color: var(--color-interactive-control);
|
|
1603
|
+
}
|
|
1604
|
+
.np-theme-personal .np-circular-btn.negative.secondary:active input[type="button"] + .tw-icon {
|
|
1605
|
+
color: var(--color-interactive-control);
|
|
1473
1606
|
}
|
|
1474
1607
|
.np-circle {
|
|
1475
1608
|
border-radius: 9999px;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AvatarView.d.ts","sourceRoot":"","sources":["../../../src/avatarView/AvatarView.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAe,UAAU,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAI5E,OAAO,EAAE,cAAc,EAA+B,MAAM,OAAO,CAAC;AAEpE,OAAO,EAA4B,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAM/F,MAAM,MAAM,oBAAoB,GAAG,IAAI,CAAC,gBAAgB,EAAE,MAAM,CAAC,GAC/D,IAAI,CAAC,UAAU,EAAE,YAAY,CAAC,GAAG;IAC/B;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACzB,CAAC;AAEJ,MAAM,MAAM,KAAK,GAAG;IAClB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,WAAW,CAAC,EAAE,mBAAmB,GAAG,mBAAmB,CAAC;IACxD,IAAI,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;IACxC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,KAAK,CAAC,EAAE,oBAAoB,CAAC;IAC7B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,aAAa,EAAE,QAAQ,GAAG,iBAAiB,GAAG,OAAO,CAAC,CAAC;CAC3E,GAAG,IAAI,CACN,cAAc,CAAC,cAAc,CAAC,EAC9B,WAAW,GAAG,UAAU,GAAG,MAAM,GAAG,YAAY,GAAG,iBAAiB,GAAG,aAAa,CACrF,CAAC;AAEF,iBAAS,UAAU,CAAC,EAClB,QAAoB,EACpB,IAAS,EACT,QAAQ,EACR,YAAY,EACZ,KAAK,EACL,WAAmB,EACnB,SAAS,EACT,KAAK,EACL,MAAM,EACN,WAAW,EACX,WAAW,EACX,GAAG,SAAS,EACb,EAAE,KAAK,+
|
|
1
|
+
{"version":3,"file":"AvatarView.d.ts","sourceRoot":"","sources":["../../../src/avatarView/AvatarView.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAe,UAAU,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAI5E,OAAO,EAAE,cAAc,EAA+B,MAAM,OAAO,CAAC;AAEpE,OAAO,EAA4B,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAM/F,MAAM,MAAM,oBAAoB,GAAG,IAAI,CAAC,gBAAgB,EAAE,MAAM,CAAC,GAC/D,IAAI,CAAC,UAAU,EAAE,YAAY,CAAC,GAAG;IAC/B;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACzB,CAAC;AAEJ,MAAM,MAAM,KAAK,GAAG;IAClB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,WAAW,CAAC,EAAE,mBAAmB,GAAG,mBAAmB,CAAC;IACxD,IAAI,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;IACxC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,KAAK,CAAC,EAAE,oBAAoB,CAAC;IAC7B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,aAAa,EAAE,QAAQ,GAAG,iBAAiB,GAAG,OAAO,CAAC,CAAC;CAC3E,GAAG,IAAI,CACN,cAAc,CAAC,cAAc,CAAC,EAC9B,WAAW,GAAG,UAAU,GAAG,MAAM,GAAG,YAAY,GAAG,iBAAiB,GAAG,aAAa,CACrF,CAAC;AAEF,iBAAS,UAAU,CAAC,EAClB,QAAoB,EACpB,IAAS,EACT,QAAQ,EACR,YAAY,EACZ,KAAK,EACL,WAAmB,EACnB,SAAS,EACT,KAAK,EACL,MAAM,EACN,WAAW,EACX,WAAW,EACX,GAAG,SAAS,EACb,EAAE,KAAK,+BA+BP;AAwFD,eAAe,UAAU,CAAC"}
|
|
@@ -1,22 +1,15 @@
|
|
|
1
1
|
import { ControlType, Priority } from '../common';
|
|
2
|
-
/**
|
|
3
|
-
* @deprecated use `'default'` instead
|
|
4
|
-
*/
|
|
5
|
-
type DeprecatedTypes = `${ControlType.ACCENT | ControlType.POSITIVE}`;
|
|
6
2
|
export interface CircularButtonProps {
|
|
7
3
|
className?: string;
|
|
8
4
|
children: string;
|
|
9
5
|
disabled?: boolean;
|
|
10
6
|
icon: React.ReactElement<{
|
|
11
7
|
size?: unknown;
|
|
12
|
-
}
|
|
13
|
-
onClick?: React.MouseEventHandler<HTMLInputElement
|
|
8
|
+
}>;
|
|
9
|
+
onClick?: React.MouseEventHandler<HTMLInputElement>;
|
|
14
10
|
priority?: `${Priority.PRIMARY | Priority.SECONDARY}`;
|
|
15
|
-
|
|
16
|
-
* `"accent"` and `"positive"` values are **deprecated**, please use `"default"` instead
|
|
17
|
-
*/
|
|
18
|
-
type?: DeprecatedTypes | 'default' | `${ControlType.NEGATIVE}`;
|
|
11
|
+
type?: `${ControlType.ACCENT | ControlType.POSITIVE | ControlType.NEGATIVE}`;
|
|
19
12
|
}
|
|
20
|
-
declare const CircularButton: ({ className, children, disabled, icon,
|
|
13
|
+
declare const CircularButton: ({ className, children, disabled, icon, priority, type, ...rest }: CircularButtonProps) => import("react").JSX.Element;
|
|
21
14
|
export default CircularButton;
|
|
22
15
|
//# sourceMappingURL=CircularButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CircularButton.d.ts","sourceRoot":"","sources":["../../../src/circularButton/CircularButton.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CircularButton.d.ts","sourceRoot":"","sources":["../../../src/circularButton/CircularButton.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAc,WAAW,EAAE,QAAQ,EAAc,MAAM,WAAW,CAAC;AAI1E,MAAM,WAAW,mBAAmB;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,KAAK,CAAC,YAAY,CAAC;QAAE,IAAI,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;IAC7C,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAAC;IACpD,QAAQ,CAAC,EAAE,GAAG,QAAQ,CAAC,OAAO,GAAG,QAAQ,CAAC,SAAS,EAAE,CAAC;IACtD,IAAI,CAAC,EAAE,GAAG,WAAW,CAAC,MAAM,GAAG,WAAW,CAAC,QAAQ,GAAG,WAAW,CAAC,QAAQ,EAAE,CAAC;CAC9E;AAED,QAAA,MAAM,cAAc,qEAQjB,mBAAmB,gCAyBrB,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -8,11 +8,12 @@ export interface DefinitionListDefinition {
|
|
|
8
8
|
value: React.ReactNode;
|
|
9
9
|
key: string;
|
|
10
10
|
}
|
|
11
|
-
|
|
11
|
+
type DefinitionListLayout = `${Layout.VERTICAL_TWO_COLUMN | Layout.VERTICAL_ONE_COLUMN | Layout.HORIZONTAL_JUSTIFIED | Layout.HORIZONTAL_LEFT_ALIGNED | Layout.HORIZONTAL_RIGHT_ALIGNED}`;
|
|
12
12
|
export interface DefinitionListProps {
|
|
13
13
|
definitions?: DefinitionListDefinition[];
|
|
14
14
|
layout?: DefinitionListLayout;
|
|
15
15
|
muted?: boolean;
|
|
16
16
|
}
|
|
17
17
|
export default function DefinitionList({ definitions, layout, muted, }: DefinitionListProps): import("react").JSX.Element;
|
|
18
|
+
export {};
|
|
18
19
|
//# sourceMappingURL=DefinitionList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefinitionList.d.ts","sourceRoot":"","sources":["../../../src/definitionList/DefinitionList.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnC,MAAM,WAAW,wBAAwB;IACvC,MAAM,CAAC,EAAE;QACP,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;KACtD,CAAC;IACF,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,GAAG,EAAE,MAAM,CAAC;CACb;AAED,
|
|
1
|
+
{"version":3,"file":"DefinitionList.d.ts","sourceRoot":"","sources":["../../../src/definitionList/DefinitionList.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnC,MAAM,WAAW,wBAAwB;IACvC,MAAM,CAAC,EAAE;QACP,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;KACtD,CAAC;IACF,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,GAAG,EAAE,MAAM,CAAC;CACb;AAED,KAAK,oBAAoB,GACvB,GAAG,MAAM,CAAC,mBAAmB,GAAG,MAAM,CAAC,mBAAmB,GAAG,MAAM,CAAC,oBAAoB,GAAG,MAAM,CAAC,uBAAuB,GAAG,MAAM,CAAC,wBAAwB,EAAE,CAAC;AAEhK,MAAM,WAAW,mBAAmB;IAClC,WAAW,CAAC,EAAE,wBAAwB,EAAE,CAAC;IACzC,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAoCD,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACrC,WAAgC,EAChC,MAA8B,EAC9B,KAAK,GACN,EAAE,mBAAmB,+BAmCrB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@transferwise/components",
|
|
3
|
-
"version": "0.0.0-experimental-
|
|
3
|
+
"version": "0.0.0-experimental-f341b41",
|
|
4
4
|
"description": "Neptune React components",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -92,12 +92,12 @@
|
|
|
92
92
|
"rollup-preserve-directives": "^1.1.1",
|
|
93
93
|
"storybook": "^8.2.2",
|
|
94
94
|
"@transferwise/less-config": "3.1.0",
|
|
95
|
-
"@transferwise/neptune-css": "0.0.0-experimental-
|
|
95
|
+
"@transferwise/neptune-css": "0.0.0-experimental-f341b41",
|
|
96
96
|
"@wise/components-theming": "1.6.1"
|
|
97
97
|
},
|
|
98
98
|
"peerDependencies": {
|
|
99
99
|
"@transferwise/icons": "^3.13.1",
|
|
100
|
-
"@transferwise/neptune-css": "0.0.0-experimental-
|
|
100
|
+
"@transferwise/neptune-css": "0.0.0-experimental-f341b41",
|
|
101
101
|
"@wise/art": "^2.16",
|
|
102
102
|
"@wise/components-theming": "^1.0.0",
|
|
103
103
|
"react": ">=18",
|
|
@@ -69,10 +69,7 @@ function AvatarView({
|
|
|
69
69
|
className={clsx('np-avatar-view-content')}
|
|
70
70
|
enableBorder={!interactive || selected}
|
|
71
71
|
style={{
|
|
72
|
-
...(selected && {
|
|
73
|
-
'--circle-border-color': 'var(--color-interactive-primary)',
|
|
74
|
-
'--circle-border-width': `${MAP_SELECTED_BORDER_WIDTH[size]}px`,
|
|
75
|
-
}),
|
|
72
|
+
...(selected && { '--circle-border-color': 'var(--color-interactive-primary)' }),
|
|
76
73
|
...style,
|
|
77
74
|
}}
|
|
78
75
|
>
|
|
@@ -96,17 +93,6 @@ const MAP_BADGE_ASSET_SIZE = {
|
|
|
96
93
|
72: 24,
|
|
97
94
|
} satisfies Record<number, BadgeAssetsProps['size']>;
|
|
98
95
|
|
|
99
|
-
/** Border width for `selected` state determined by avatar size */
|
|
100
|
-
const MAP_SELECTED_BORDER_WIDTH = {
|
|
101
|
-
16: 1,
|
|
102
|
-
24: 1,
|
|
103
|
-
32: 1,
|
|
104
|
-
40: 2,
|
|
105
|
-
48: 2,
|
|
106
|
-
56: 2,
|
|
107
|
-
72: 2,
|
|
108
|
-
};
|
|
109
|
-
|
|
110
96
|
/** Certain sizes of AvatarView has a custom offset for badge */
|
|
111
97
|
const MAP_BADGE_POSITION = {
|
|
112
98
|
24: -6,
|