platformscode-new-react 0.0.3 → 0.0.4
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/dist/assets/fonts/IBM-Plex-Sans-Arabic/IBMPlexSansArabic-Bold.woff +0 -0
- package/dist/assets/fonts/IBM-Plex-Sans-Arabic/IBMPlexSansArabic-Bold.woff2 +0 -0
- package/dist/assets/fonts/IBM-Plex-Sans-Arabic/IBMPlexSansArabic-Medium.woff +0 -0
- package/dist/assets/fonts/IBM-Plex-Sans-Arabic/IBMPlexSansArabic-Medium.woff2 +0 -0
- package/dist/assets/fonts/IBM-Plex-Sans-Arabic/IBMPlexSansArabic-Regular.woff +0 -0
- package/dist/assets/fonts/IBM-Plex-Sans-Arabic/IBMPlexSansArabic-Regular.woff2 +0 -0
- package/dist/assets/fonts/IBM-Plex-Sans-Arabic/IBMPlexSansArabic-SemiBold.woff +0 -0
- package/dist/assets/fonts/IBM-Plex-Sans-Arabic/IBMPlexSansArabic-SemiBold.woff2 +0 -0
- package/dist/style.css +1 -0
- package/package.json +5 -3
- package/src/assets/styles/abstracts/_functions.scss +3 -0
- package/src/assets/styles/abstracts/_mixins.scss +60 -0
- package/src/assets/styles/abstracts/_variables.scss +46 -0
- package/src/assets/styles/abstracts/variables/_colors.scss +145 -0
- package/src/assets/styles/abstracts/variables/_radius.scss +19 -0
- package/src/assets/styles/abstracts/variables/_shadows.scss +9 -0
- package/src/assets/styles/abstracts/variables/_spacing.scss +35 -0
- package/src/assets/styles/abstracts/variables/_widths.scss +306 -0
- package/src/assets/styles/base/_animation.scss +0 -0
- package/src/assets/styles/base/_base.scss +29 -0
- package/src/assets/styles/base/_typography.scss +73 -0
- package/src/assets/styles/base/_utilities.scss +260 -0
- package/src/assets/styles/components/_accordions.scss +184 -0
- package/src/assets/styles/components/_avatar.scss +87 -0
- package/src/assets/styles/components/_breadcrumbs.scss +63 -0
- package/src/assets/styles/components/_btns.scss +815 -0
- package/src/assets/styles/components/_card.scss +91 -0
- package/src/assets/styles/components/_checkbox.scss +241 -0
- package/src/assets/styles/components/_content-switcher.scss +108 -0
- package/src/assets/styles/components/_data-table.scss +155 -0
- package/src/assets/styles/components/_date-picker.scss +257 -0
- package/src/assets/styles/components/_dropdown.scss +479 -0
- package/src/assets/styles/components/_featured-icons.scss +127 -0
- package/src/assets/styles/components/_file-upload.scss +164 -0
- package/src/assets/styles/components/_icons.scss +3 -0
- package/src/assets/styles/components/_inline-alert.scss +166 -0
- package/src/assets/styles/components/_input.scss +473 -0
- package/src/assets/styles/components/_links.scss +130 -0
- package/src/assets/styles/components/_list.scss +130 -0
- package/src/assets/styles/components/_loading.scss +135 -0
- package/src/assets/styles/components/_menu.scss +85 -0
- package/src/assets/styles/components/_modals.scss +108 -0
- package/src/assets/styles/components/_notification-toast.scss +177 -0
- package/src/assets/styles/components/_notifications.scss +139 -0
- package/src/assets/styles/components/_pagination.scss +79 -0
- package/src/assets/styles/components/_progress-indicator.scss +230 -0
- package/src/assets/styles/components/_radio.scss +183 -0
- package/src/assets/styles/components/_rating.scss +77 -0
- package/src/assets/styles/components/_shadows.scss +23 -0
- package/src/assets/styles/components/_structured-list.scss +95 -0
- package/src/assets/styles/components/_switch.scss +192 -0
- package/src/assets/styles/components/_tabs.scss +231 -0
- package/src/assets/styles/components/_tag.scss +191 -0
- package/src/assets/styles/components/_textarea.scss +294 -0
- package/src/assets/styles/components/_tooltip.scss +257 -0
- package/src/assets/styles/layout/_footer.scss +186 -0
- package/src/assets/styles/layout/_grid.scss +73 -0
- package/src/assets/styles/layout/_header.scss +0 -0
- package/src/assets/styles/layout/_layouts.scss +33 -0
- package/src/assets/styles/layout/_nav-header.scss +449 -0
- package/src/assets/styles/layout/_sidepanel.scss +340 -0
- package/src/assets/styles/layout/_table-of-content.scss +179 -0
- package/src/assets/styles/main.scss +54 -0
- package/src/assets/styles/themes/_dark.scss +416 -0
- package/src/assets/styles/themes/_light.scss +404 -0
- package/src/index.ts +1 -0
- package/vite.config.ts +21 -1
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
.date-picker-root {
|
|
2
|
+
@extend .shadow-2xl;
|
|
3
|
+
border-radius: var(--radius-8, 8px);
|
|
4
|
+
background: var(--colors-base-white);
|
|
5
|
+
width: fit-content;
|
|
6
|
+
|
|
7
|
+
display: flex;
|
|
8
|
+
gap: 15px;
|
|
9
|
+
|
|
10
|
+
padding: 16px;
|
|
11
|
+
|
|
12
|
+
&__quick-options {
|
|
13
|
+
.options-list {
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
gap: 10px;
|
|
17
|
+
margin-top: 20px;
|
|
18
|
+
list-style: none;
|
|
19
|
+
min-width: 120px;
|
|
20
|
+
|
|
21
|
+
& button {
|
|
22
|
+
background: none;
|
|
23
|
+
outline: none;
|
|
24
|
+
border: 0;
|
|
25
|
+
cursor: pointer;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&__main {
|
|
31
|
+
&__inputs {
|
|
32
|
+
width: 100%;
|
|
33
|
+
display: flex;
|
|
34
|
+
justify-content: space-between;
|
|
35
|
+
gap: 32px;
|
|
36
|
+
& .input {
|
|
37
|
+
width: 50px;
|
|
38
|
+
max-width: unset;
|
|
39
|
+
min-width: unset;
|
|
40
|
+
flex: 1;
|
|
41
|
+
[data-dual-view="true"] & {
|
|
42
|
+
width: 200px;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&__buttons {
|
|
48
|
+
margin-top: 16px;
|
|
49
|
+
border-top: 1px solid gray;
|
|
50
|
+
padding-top: 16px;
|
|
51
|
+
display: flex;
|
|
52
|
+
justify-content: flex-end;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&__content-wrapper {
|
|
56
|
+
display: flex;
|
|
57
|
+
gap: 32px;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.date-picker {
|
|
63
|
+
display: inline-flex;
|
|
64
|
+
// padding: var(--size-16, 16px);
|
|
65
|
+
flex-direction: column;
|
|
66
|
+
align-items: center;
|
|
67
|
+
justify-content: center;
|
|
68
|
+
max-width: 392px;
|
|
69
|
+
|
|
70
|
+
/* Shadows/shadow-2xl */
|
|
71
|
+
// @extend .shadow-2xl;
|
|
72
|
+
|
|
73
|
+
&__date-grid,
|
|
74
|
+
&__weekdays {
|
|
75
|
+
display: flex;
|
|
76
|
+
flex-wrap: wrap;
|
|
77
|
+
width: 392px;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&__navigator {
|
|
81
|
+
width: 100%;
|
|
82
|
+
display: flex;
|
|
83
|
+
align-items: center;
|
|
84
|
+
|
|
85
|
+
&-label {
|
|
86
|
+
padding-left: 20px;
|
|
87
|
+
flex: 1;
|
|
88
|
+
color: var(--colors-text-primary);
|
|
89
|
+
@extend .text-md-medium;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&__weekday {
|
|
94
|
+
display: flex;
|
|
95
|
+
width: 56px;
|
|
96
|
+
height: 56px;
|
|
97
|
+
justify-content: center;
|
|
98
|
+
align-items: center;
|
|
99
|
+
border: 0;
|
|
100
|
+
background-color: transparent;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.date-cell {
|
|
105
|
+
display: flex;
|
|
106
|
+
width: 56px;
|
|
107
|
+
height: 56px;
|
|
108
|
+
justify-content: center;
|
|
109
|
+
align-items: center;
|
|
110
|
+
cursor: pointer;
|
|
111
|
+
border: 0;
|
|
112
|
+
background-color: transparent;
|
|
113
|
+
|
|
114
|
+
&__label {
|
|
115
|
+
display: flex;
|
|
116
|
+
// width: 48px;
|
|
117
|
+
width: 100%;
|
|
118
|
+
height: 48px;
|
|
119
|
+
flex-direction: column;
|
|
120
|
+
justify-content: center;
|
|
121
|
+
align-items: center;
|
|
122
|
+
gap: var(--spacing-none);
|
|
123
|
+
background-color: transparent;
|
|
124
|
+
mix-blend-mode: multiply;
|
|
125
|
+
color: var(--colors-text-primary);
|
|
126
|
+
@extend .text-md-regular;
|
|
127
|
+
span {
|
|
128
|
+
display: grid;
|
|
129
|
+
place-items: center;
|
|
130
|
+
width: 48px;
|
|
131
|
+
height: 100%;
|
|
132
|
+
border-radius: var(--radius-full);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
&:hover {
|
|
137
|
+
.date-cell__label {
|
|
138
|
+
span {
|
|
139
|
+
background: var(--colors-gray-neutral-200);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
&:visited {
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
&:focus {
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
&:active,
|
|
151
|
+
&.pressed {
|
|
152
|
+
.date-cell__label {
|
|
153
|
+
span {
|
|
154
|
+
background: var(--colors-gray-neutral-300);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
// default cell styles
|
|
160
|
+
&--selected {
|
|
161
|
+
// styles for selected state
|
|
162
|
+
.date-cell__label {
|
|
163
|
+
span {
|
|
164
|
+
color: var(--colors-base-white) !important;
|
|
165
|
+
border-radius: var(--radius-full);
|
|
166
|
+
background-color: var(--colors-brand-600);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
&--today {
|
|
172
|
+
.date-cell__label {
|
|
173
|
+
span {
|
|
174
|
+
border: 2px solid var(--colors-brand-600);
|
|
175
|
+
color: var(--colors-brand-600);
|
|
176
|
+
@extend .text-md-bold;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
&:hover {
|
|
181
|
+
.date-cell__label {
|
|
182
|
+
span {
|
|
183
|
+
background: var(--colors-brand-100);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
&:visited {
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
&:focus {
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
&:active,
|
|
195
|
+
&.pressed {
|
|
196
|
+
.date-cell__label {
|
|
197
|
+
span {
|
|
198
|
+
background: var(--colors-brand-200);
|
|
199
|
+
// color: var(--colors-base-white)
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
&--disabled {
|
|
206
|
+
// styles for disabled state
|
|
207
|
+
opacity: 0.5;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
&[disabled] {
|
|
211
|
+
opacity: 0.3;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.date-cell__label {
|
|
215
|
+
position: relative;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
&--mid-range {
|
|
219
|
+
.date-cell__label {
|
|
220
|
+
background-color: var(--colors-brand-100);
|
|
221
|
+
span {
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.date-cell--mid-range--first-child {
|
|
228
|
+
.date-cell__label::before {
|
|
229
|
+
content: "";
|
|
230
|
+
width: 52px;
|
|
231
|
+
height: 48px;
|
|
232
|
+
position: absolute;
|
|
233
|
+
top: 0;
|
|
234
|
+
right: 0;
|
|
235
|
+
border-radius: 50% 0 0 50%;
|
|
236
|
+
background-color: var(--colors-brand-100);
|
|
237
|
+
z-index: -1;
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.date-cell--mid-range--last-child {
|
|
242
|
+
.date-cell__label::before {
|
|
243
|
+
content: "";
|
|
244
|
+
width: 52px;
|
|
245
|
+
height: 48px;
|
|
246
|
+
position: absolute;
|
|
247
|
+
top: 0;
|
|
248
|
+
left: 0;
|
|
249
|
+
border-radius: 0 50% 50% 0;
|
|
250
|
+
background-color: var(--colors-brand-100);
|
|
251
|
+
z-index: -1;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
[dir="rtl"] .date-picker__navigator button {
|
|
256
|
+
transform: rotate(180deg);
|
|
257
|
+
}
|
|
@@ -0,0 +1,479 @@
|
|
|
1
|
+
.dropdown {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
width: 100%;
|
|
5
|
+
min-width: 200px;
|
|
6
|
+
position: relative;
|
|
7
|
+
border-radius: var(--radius-sm);
|
|
8
|
+
|
|
9
|
+
&__label {
|
|
10
|
+
color: var(--colors-text-placeholder);
|
|
11
|
+
display: none;
|
|
12
|
+
@extend .text-md-regular;
|
|
13
|
+
|
|
14
|
+
&--selection {
|
|
15
|
+
color: var(--colors-text-primary);
|
|
16
|
+
display: inline-block;
|
|
17
|
+
|
|
18
|
+
& ~ .dropdown__label-placeholder {
|
|
19
|
+
display: none;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/* Styling the select arrow */
|
|
25
|
+
&__chevron {
|
|
26
|
+
position: absolute;
|
|
27
|
+
top: 50%;
|
|
28
|
+
right: var(--spacing-xl);
|
|
29
|
+
transform: translateY(-50%);
|
|
30
|
+
color: var(--colors-gray-neutral-700);
|
|
31
|
+
transition: all 0.4s ease-in-out;
|
|
32
|
+
display: flex;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/* Style the select itself */
|
|
36
|
+
&__btn {
|
|
37
|
+
cursor: pointer;
|
|
38
|
+
height: auto;
|
|
39
|
+
min-height: 40px;
|
|
40
|
+
width: 100%;
|
|
41
|
+
border-radius: var(--radius-sm);
|
|
42
|
+
border: 1px solid var(--colors-gray-neutral-400);
|
|
43
|
+
background-color: var(--colors-base-white);
|
|
44
|
+
padding: var(--spacing-none) var(--spacing-xl);
|
|
45
|
+
display: flex;
|
|
46
|
+
justify-content: space-between;
|
|
47
|
+
align-items: center;
|
|
48
|
+
position: relative;
|
|
49
|
+
|
|
50
|
+
color: var(--colors-text-placeholder);
|
|
51
|
+
@extend .text-md-regular;
|
|
52
|
+
|
|
53
|
+
&:focus {
|
|
54
|
+
outline: 0;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&:hover {
|
|
58
|
+
border-color: var(--colors-gray-neutral-700);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&::after {
|
|
62
|
+
content: "";
|
|
63
|
+
position: absolute;
|
|
64
|
+
bottom: 0;
|
|
65
|
+
left: 50%;
|
|
66
|
+
width: 0%;
|
|
67
|
+
height: 2px;
|
|
68
|
+
transform: translateX(-50%);
|
|
69
|
+
background-color: var(--colors-gray-neutral-950);
|
|
70
|
+
transition: width 0.2s ease-in-out;
|
|
71
|
+
// display: none;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&.open {
|
|
75
|
+
@extend .shadow-md;
|
|
76
|
+
|
|
77
|
+
& .dropdown__chevron {
|
|
78
|
+
transform: rotate(180deg) translateY(50%);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&::after {
|
|
82
|
+
width: 100%;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&.active {
|
|
87
|
+
background-color: var(--Colors-Gray-neutral-50);
|
|
88
|
+
|
|
89
|
+
&::after {
|
|
90
|
+
width: 50%;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&--readonly,
|
|
96
|
+
&--disabled {
|
|
97
|
+
& .dropdown {
|
|
98
|
+
&__btn {
|
|
99
|
+
border-color: var(--colors-gray-neutral-300);
|
|
100
|
+
|
|
101
|
+
&:hover {
|
|
102
|
+
border-color: var(--colors-gray-neutral-300);
|
|
103
|
+
box-shadow: none !important;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
&::after {
|
|
107
|
+
display: none;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
&__btn,
|
|
112
|
+
&__label,
|
|
113
|
+
&__label-placeholder {
|
|
114
|
+
color: var(--colors-text-primary);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
&__chevron {
|
|
118
|
+
color: var(--colors-gray-neutral-300);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
&--disabled {
|
|
124
|
+
& .dropdown {
|
|
125
|
+
&__btn,
|
|
126
|
+
&__label,
|
|
127
|
+
&__label-placeholder {
|
|
128
|
+
color: var(--colors-gray-neutral-300);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
&__list {
|
|
134
|
+
display: flex;
|
|
135
|
+
padding: var(--spacing-md);
|
|
136
|
+
flex-direction: column;
|
|
137
|
+
align-items: flex-start;
|
|
138
|
+
border-radius: var(--radius-sm);
|
|
139
|
+
border: 1px solid var(--colors-border-primary);
|
|
140
|
+
background: var(--colors-base-white);
|
|
141
|
+
@extend .shadow-xl;
|
|
142
|
+
position: absolute;
|
|
143
|
+
left: 0;
|
|
144
|
+
right: 0;
|
|
145
|
+
top: 40px;
|
|
146
|
+
overflow-y: auto;
|
|
147
|
+
list-style: none;
|
|
148
|
+
height: auto;
|
|
149
|
+
max-height: 0;
|
|
150
|
+
padding-block: 0;
|
|
151
|
+
z-index: -2;
|
|
152
|
+
opacity: 0;
|
|
153
|
+
overflow: hidden;
|
|
154
|
+
transition: z-index 0.1s ease-in-out, padding-block 0.1s ease-in-out,
|
|
155
|
+
max-height 0.2s 0.01s ease-in-out;
|
|
156
|
+
pointer-events: none;
|
|
157
|
+
// z-index: 2;
|
|
158
|
+
|
|
159
|
+
// scrollbar-width: ;
|
|
160
|
+
|
|
161
|
+
&::-webkit-scrollbar {
|
|
162
|
+
height: 100px;
|
|
163
|
+
width: calc(8px + 2 * var(--spacing-xs));
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
&::-webkit-scrollbar-track {
|
|
167
|
+
background-color: transparent;
|
|
168
|
+
padding: var(--spacing-xs);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
&::-webkit-scrollbar-thumb {
|
|
172
|
+
height: 100px;
|
|
173
|
+
border-radius: var(--radius-full);
|
|
174
|
+
border: var(--spacing-xs) solid transparent;
|
|
175
|
+
background-color: var(--colors-gray-neutral-300);
|
|
176
|
+
background-clip: content-box;
|
|
177
|
+
mix-blend-mode: multiply;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
li {
|
|
181
|
+
width: 100%;
|
|
182
|
+
padding: 0;
|
|
183
|
+
margin: 0;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
&-group {
|
|
187
|
+
list-style: none;
|
|
188
|
+
|
|
189
|
+
&-label {
|
|
190
|
+
padding: var(--spacing-md, 8px) var(--spacing-md, 8px)
|
|
191
|
+
var(--spacing-none, 0px) var(--spacing-md, 8px) !important;
|
|
192
|
+
color: var(--colors-text-quarterary);
|
|
193
|
+
@extend .text-sm-semibold;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
&__btn.open + &__list {
|
|
199
|
+
z-index: 2;
|
|
200
|
+
opacity: 1;
|
|
201
|
+
// transform: translate(0);
|
|
202
|
+
// height: 100%;
|
|
203
|
+
padding-block: var(--spacing-md);
|
|
204
|
+
max-height: 376px;
|
|
205
|
+
// height: auto;
|
|
206
|
+
pointer-events: auto;
|
|
207
|
+
overflow-y: auto;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
&__option {
|
|
211
|
+
cursor: pointer;
|
|
212
|
+
position: relative;
|
|
213
|
+
width: 100%;
|
|
214
|
+
display: flex;
|
|
215
|
+
align-items: center;
|
|
216
|
+
justify-content: space-between;
|
|
217
|
+
display: flex;
|
|
218
|
+
padding: var(--spacing-md);
|
|
219
|
+
gap: var(--spacing-md);
|
|
220
|
+
border-radius: var(--radius-sm);
|
|
221
|
+
background-color: transparent;
|
|
222
|
+
border: 0;
|
|
223
|
+
margin: 0;
|
|
224
|
+
|
|
225
|
+
&-label {
|
|
226
|
+
@extend .text-sm-regular;
|
|
227
|
+
color: var(--colors-text-primary);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
&-icon {
|
|
231
|
+
opacity: 0;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
&:hover {
|
|
235
|
+
background-color: var(--colors-gray-neutral-100);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
&:focus {
|
|
239
|
+
outline: 2px solid var(--colors-base-black);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
&.active {
|
|
243
|
+
outline: none;
|
|
244
|
+
background-color: var(--colors-gray-neutral-200);
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
&.selected > &-icon {
|
|
248
|
+
opacity: 1;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
&--checkbox {
|
|
252
|
+
& .dropdown__option-icon {
|
|
253
|
+
display: none !important;
|
|
254
|
+
color: var(--colors-base-white);
|
|
255
|
+
font-size: 18px !important;
|
|
256
|
+
font-weight: bolder !important;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
&.selected {
|
|
260
|
+
& > .dropdown__option-icon-container {
|
|
261
|
+
background-color: var(--colors-gray-neutral-950);
|
|
262
|
+
|
|
263
|
+
& > .dropdown__option-icon {
|
|
264
|
+
opacity: 1;
|
|
265
|
+
display: inline-block !important;
|
|
266
|
+
color: var(--colors-base-white) !important;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.dropdown__option-icon-container {
|
|
272
|
+
width: 24px;
|
|
273
|
+
height: 24px;
|
|
274
|
+
min-width: 24px;
|
|
275
|
+
border-radius: var(--radius-xs);
|
|
276
|
+
border: 1px solid var(--colors-gray-neutral-500);
|
|
277
|
+
display: flex;
|
|
278
|
+
align-items: center;
|
|
279
|
+
justify-content: center;
|
|
280
|
+
position: relative;
|
|
281
|
+
cursor: pointer;
|
|
282
|
+
margin: var(--spacing-xs);
|
|
283
|
+
-webkit-user-select: none;
|
|
284
|
+
-ms-user-select: none;
|
|
285
|
+
user-select: none;
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
&--multi-select {
|
|
291
|
+
min-height: 40px;
|
|
292
|
+
height: auto;
|
|
293
|
+
|
|
294
|
+
& .dropdown__option {
|
|
295
|
+
justify-content: flex-start;
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
&--error {
|
|
300
|
+
.dropdown__btn {
|
|
301
|
+
border-color: var(--colors-error-600);
|
|
302
|
+
|
|
303
|
+
&::after {
|
|
304
|
+
background-color: var(--colors-error-600);
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
&__feedback-icon {
|
|
310
|
+
height: 100%;
|
|
311
|
+
display: inline-flex;
|
|
312
|
+
align-items: center;
|
|
313
|
+
// margin-left: var(--spacing-xs);
|
|
314
|
+
margin-right: calc(var(--spacing-xl) + 10px);
|
|
315
|
+
// color: var(--colors-error-600);
|
|
316
|
+
|
|
317
|
+
& span {
|
|
318
|
+
font-size: 20px;
|
|
319
|
+
position: relative;
|
|
320
|
+
z-index: 0;
|
|
321
|
+
|
|
322
|
+
&::after {
|
|
323
|
+
content: "";
|
|
324
|
+
display: block;
|
|
325
|
+
width: 100%;
|
|
326
|
+
height: 100%;
|
|
327
|
+
transform: scale(1.16);
|
|
328
|
+
position: absolute;
|
|
329
|
+
top: 0;
|
|
330
|
+
left: 0;
|
|
331
|
+
border-radius: var(--radius-full);
|
|
332
|
+
z-index: -1;
|
|
333
|
+
// background-color: var(--colors-error-100);
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
&--success {
|
|
338
|
+
color: var(--colors-brand-600);
|
|
339
|
+
|
|
340
|
+
& span::after {
|
|
341
|
+
background-color: var(--colors-brand-100);
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
&--error {
|
|
346
|
+
color: var(--colors-error-600);
|
|
347
|
+
|
|
348
|
+
& span::after {
|
|
349
|
+
background-color: var(--colors-error-100);
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
&--warning {
|
|
354
|
+
color: var(--colors-warning-600);
|
|
355
|
+
|
|
356
|
+
& span::after {
|
|
357
|
+
background-color: var(--colors-warning-100);
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
&--lighter {
|
|
363
|
+
& .dropdown__btn {
|
|
364
|
+
border: 0;
|
|
365
|
+
|
|
366
|
+
&:hover {
|
|
367
|
+
border: 1px solid var(--colors-gray-neutral-400);
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
&.open {
|
|
371
|
+
border: 1px solid var(--colors-gray-neutral-400);
|
|
372
|
+
background-color: var(--colors-base-white);
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
&.active {
|
|
376
|
+
border: 1px solid var(--colors-gray-neutral-400);
|
|
377
|
+
background-color: var(--colors-gray-neutral-100);
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
&--darker {
|
|
383
|
+
& .dropdown__btn {
|
|
384
|
+
border: 0;
|
|
385
|
+
background-color: var(--colors-gray-neutral-50);
|
|
386
|
+
|
|
387
|
+
&:hover {
|
|
388
|
+
border: 1px solid var(--colors-gray-neutral-400);
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
&.open {
|
|
392
|
+
border: 1px solid var(--colors-gray-neutral-400);
|
|
393
|
+
background-color: var(--colors-base-white);
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
&.active {
|
|
397
|
+
border: 1px solid var(--colors-gray-neutral-400);
|
|
398
|
+
background-color: var(--colors-gray-neutral-100);
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
&--lg {
|
|
404
|
+
& .dropdown {
|
|
405
|
+
&__btn {
|
|
406
|
+
height: auto;
|
|
407
|
+
min-height: 40px;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
&__label {
|
|
411
|
+
&,
|
|
412
|
+
&-placeholder {
|
|
413
|
+
@extend .text-md-regular;
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
&__feedback-icon {
|
|
418
|
+
span {
|
|
419
|
+
font-size: 20px;
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
&__list {
|
|
424
|
+
top: 40px;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
&__option {
|
|
428
|
+
&-icon {
|
|
429
|
+
font-size: 24px;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
&-label {
|
|
433
|
+
@extend .text-md-regular;
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
&--md {
|
|
440
|
+
& .dropdown {
|
|
441
|
+
&__btn {
|
|
442
|
+
height: auto;
|
|
443
|
+
min-height: 32px;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
&__label {
|
|
447
|
+
&,
|
|
448
|
+
&-placeholder {
|
|
449
|
+
@extend .text-sm-regular;
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
&__feedback-icon {
|
|
454
|
+
span {
|
|
455
|
+
font-size: 16px;
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
&__list {
|
|
460
|
+
top: 32px;
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
&__option {
|
|
464
|
+
&-icon {
|
|
465
|
+
font-size: 20px;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
&-label {
|
|
469
|
+
@extend .text-sm-regular;
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
[dir="rtl"] .dropdown__chevron {
|
|
477
|
+
right: auto;
|
|
478
|
+
left: var(--spacing-xl);
|
|
479
|
+
}
|