carriera-intern-components 1.1.164 → 1.1.166
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/app/components/avatar/avatar.component.d.ts +1 -1
- package/app/components/avatar/models/avatar.model.d.ts +12 -5
- package/app/components/avatar/pipes/initials.pipe.d.ts +5 -1
- package/app/components/copy/copy.component.d.ts +20 -0
- package/app/components/drop-zone/drop-zone.component.d.ts +1 -1
- package/app/components/input/input.component.d.ts +8 -0
- package/app/components/input/models/dropdown.model.d.ts +2 -2
- package/app/enums/alignment.enum.d.ts +4 -0
- package/app/enums/index.d.ts +3 -0
- package/app/enums/string-placeholder.enum.d.ts +3 -0
- package/fesm2022/carriera-intern-components.mjs +101 -19
- package/fesm2022/carriera-intern-components.mjs.map +1 -1
- package/package.json +1 -1
- package/public/assets/icons/fuel-contact/cai-user-2.svg +3 -0
- package/public/assets/icons/interaction/cai-copy.svg +3 -0
- package/public/assets/json/icons.json +8 -0
- package/public-api.d.ts +2 -0
- package/src/styles/_variables.scss +232 -1
- package/src/styles/tooltip.scss +50 -2
- package/src/styles/utility/colors.scss +265 -0
- package/src/styles/utility/utilities.scss +6 -0
- package/src/styles.scss +3 -0
package/package.json
CHANGED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M10 11.1244C11.0012 11.1244 11.9798 10.8276 12.8123 10.2714C13.6448 9.71519 14.2936 8.92464 14.6768 7.99971C15.06 7.07477 15.1603 6.05699 14.965 5.07504C14.7698 4.0931 14.2878 3.19109 13.5799 2.48309C12.8721 1.77508 11.9702 1.29286 10.9883 1.09741C10.0064 0.901955 8.98856 1.00204 8.06354 1.38502C7.13852 1.768 6.34783 2.41666 5.79146 3.249C5.23508 4.08133 4.938 5.05995 4.93778 6.06111C4.93778 7.4038 5.47108 8.69151 6.4204 9.64104C7.36972 10.5906 8.65731 11.1242 10 11.1244ZM14.5 12.2489H12.5633C11.7598 12.6194 10.8854 12.8113 10.0006 12.8113C9.11568 12.8113 8.24133 12.6194 7.43778 12.2489H5.5C4.30653 12.2489 3.16193 12.723 2.31802 13.5669C1.47411 14.4108 1 15.5554 1 16.7489L1 17.3111C1 17.7587 1.17782 18.188 1.49434 18.5046C1.81086 18.8211 2.24015 18.9989 2.68778 18.9989H17.3122C17.5339 18.9989 17.7533 18.9552 17.9581 18.8704C18.1629 18.7856 18.3489 18.6613 18.5057 18.5046C18.6624 18.3478 18.7867 18.1618 18.8715 17.957C18.9563 17.7522 19 17.5328 19 17.3111V16.7489C19 15.5554 18.5259 14.4108 17.682 13.5669C16.8381 12.723 15.6935 12.2489 14.5 12.2489Z" fill="currentColor"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M6.31901 19.0002C5.62052 19.0002 4.92874 18.8628 4.28342 18.5955C3.6381 18.3282 3.05179 17.936 2.55789 17.4421C2.06398 16.9482 1.6723 16.3621 1.405 15.7168C1.1377 15.0715 1 14.3797 1 13.6812V6.77691C1 6.48222 1.11715 6.19969 1.32552 5.99132C1.53389 5.78295 1.81643 5.6658 2.11111 5.6658H3.22222C3.51691 5.6658 3.79944 5.78295 4.00781 5.99132C4.21619 6.19969 4.33333 6.48222 4.33333 6.77691V12.6732C4.33363 13.4667 4.64898 14.228 5.21007 14.7891C5.77116 15.3502 6.53219 15.6655 7.32568 15.6658H13.2222C13.5169 15.6658 13.7994 15.7829 14.0078 15.9913C14.2162 16.1997 14.3333 16.4822 14.3333 16.7769V17.888C14.3333 18.1827 14.2162 18.4652 14.0078 18.6736C13.7994 18.882 13.5169 18.9991 13.2222 18.9991L6.31901 19.0002ZM7.88775 14.3333C7.29838 14.3333 6.73305 14.099 6.3163 13.6823C5.89955 13.2655 5.66553 12.7005 5.66553 12.1111V3.22222C5.66553 2.63285 5.89955 2.06779 6.3163 1.65104C6.73305 1.23429 7.29838 1 7.88775 1H16.7766C17.366 1 17.9313 1.23429 18.3481 1.65104C18.7648 2.06779 18.9989 2.63285 18.9989 3.22222V12.1111C18.9989 12.7005 18.7648 13.2655 18.3481 13.6823C17.9313 14.099 17.366 14.3333 16.7766 14.3333H7.88775ZM8.99886 11H15.6655V4.33333H8.99886V11Z" fill="currentColor"/>
|
|
3
|
+
</svg>
|
|
@@ -188,6 +188,10 @@
|
|
|
188
188
|
"iconName": "cai-cancel",
|
|
189
189
|
"iconPath": "/assets/icons/interaction/cai-cancel.svg"
|
|
190
190
|
},
|
|
191
|
+
{
|
|
192
|
+
"iconName": "cai-copy",
|
|
193
|
+
"iconPath": "/assets/icons/interaction/cai-copy.svg"
|
|
194
|
+
},
|
|
191
195
|
{
|
|
192
196
|
"iconName": "cai-checkmark",
|
|
193
197
|
"iconPath": "/assets/icons/general/cai-checkmark.svg"
|
|
@@ -288,6 +292,10 @@
|
|
|
288
292
|
"iconName": "cai-share",
|
|
289
293
|
"iconPath": "/assets/icons/fuel-contact/cai-share.svg"
|
|
290
294
|
},
|
|
295
|
+
{
|
|
296
|
+
"iconName": "cai-user-2",
|
|
297
|
+
"iconPath": "/assets/icons/fuel-contact/cai-user-2.svg"
|
|
298
|
+
},
|
|
291
299
|
{
|
|
292
300
|
"iconName": "cai-ltl-single",
|
|
293
301
|
"iconPath": "/assets/icons/load/cai-ltl-single.svg"
|
package/public-api.d.ts
CHANGED
|
@@ -5,3 +5,5 @@ export * from './app/components/input/input.component';
|
|
|
5
5
|
export * from './app/components/drop-zone/drop-zone.component';
|
|
6
6
|
export * from './app/components/input-datetime-picker/cai-input-datetime-picker.component';
|
|
7
7
|
export * from './app/components/input-datetime-picker/components/cai-custom-datetime-pickers/config';
|
|
8
|
+
export * from './app/components/avatar/avatar.component';
|
|
9
|
+
export * from './app/components/copy/copy.component';
|
|
@@ -54,4 +54,235 @@ $font-regular: 400;
|
|
|
54
54
|
$font-medium: 500;
|
|
55
55
|
$font-semibold: 600;
|
|
56
56
|
$font-bold: 700;
|
|
57
|
-
$font-extrabold: 800;
|
|
57
|
+
$font-extrabold: 800;
|
|
58
|
+
|
|
59
|
+
// Colors
|
|
60
|
+
|
|
61
|
+
// White color palette
|
|
62
|
+
$color-white-50: #ffffff;
|
|
63
|
+
$color-white-100: #f7f7f7;
|
|
64
|
+
$color-white-200: #eeeeee;
|
|
65
|
+
$color-white-300: #e5e5e5;
|
|
66
|
+
$color-white-500: #dadada;
|
|
67
|
+
$color-white-700: #cccccc;
|
|
68
|
+
|
|
69
|
+
// Black color palette
|
|
70
|
+
$color-black-50: #aaaaaa;
|
|
71
|
+
$color-black-100: #919191;
|
|
72
|
+
$color-black-200: #6c6c6c;
|
|
73
|
+
$color-black-300: #424242;
|
|
74
|
+
$color-black-500: #2f2f2f;
|
|
75
|
+
$color-black-700: #1d1d1d;
|
|
76
|
+
|
|
77
|
+
// Blue color palette
|
|
78
|
+
$color-blue-50: #e9effd;
|
|
79
|
+
$color-blue-100: #bed0f9;
|
|
80
|
+
$color-blue-200: #92b1f5;
|
|
81
|
+
$color-blue-300: #6692f1;
|
|
82
|
+
$color-blue-500: #3b73ed;
|
|
83
|
+
$color-blue-700: #0b49d1;
|
|
84
|
+
|
|
85
|
+
// Red color palette
|
|
86
|
+
$color-red-50: #fbe9e9;
|
|
87
|
+
$color-red-100: #f4bebe;
|
|
88
|
+
$color-red-200: #ed9292;
|
|
89
|
+
$color-red-300: #e66767;
|
|
90
|
+
$color-red-500: #df3c3c;
|
|
91
|
+
$color-red-700: #c20c0c;
|
|
92
|
+
|
|
93
|
+
// Green color palette
|
|
94
|
+
$color-green-50: #e7f4f3;
|
|
95
|
+
$color-green-100: #b6dfdb;
|
|
96
|
+
$color-green-200: #86c9c3;
|
|
97
|
+
$color-green-300: #56b4ac;
|
|
98
|
+
$color-green-500: #259f94;
|
|
99
|
+
$color-green-700: #007a6e;
|
|
100
|
+
|
|
101
|
+
// Yellow color palette
|
|
102
|
+
$color-yellow-50: #fef4e8;
|
|
103
|
+
$color-yellow-100: #fddeb9;
|
|
104
|
+
$color-yellow-200: #fbc88b;
|
|
105
|
+
$color-yellow-300: #fab15c;
|
|
106
|
+
$color-yellow-500: #f89b2e;
|
|
107
|
+
$color-yellow-700: #de7700;
|
|
108
|
+
|
|
109
|
+
// Purple color palette
|
|
110
|
+
$color-purple-50: #f4ebfd;
|
|
111
|
+
$color-purple-100: #dfc2f9;
|
|
112
|
+
$color-purple-200: #c999f4;
|
|
113
|
+
$color-purple-300: #b370f0;
|
|
114
|
+
$color-purple-500: #9e47ec;
|
|
115
|
+
$color-purple-700: #7919d0;
|
|
116
|
+
|
|
117
|
+
// Navy color palette
|
|
118
|
+
$color-navy-50: #e7e7fa;
|
|
119
|
+
$color-navy-100: #b7b6f1;
|
|
120
|
+
$color-navy-200: #8785e8;
|
|
121
|
+
$color-navy-300: #5755df;
|
|
122
|
+
$color-navy-500: #2724d6;
|
|
123
|
+
$color-navy-700: #0000b8;
|
|
124
|
+
|
|
125
|
+
// Brown color palette
|
|
126
|
+
$color-brown-50: #f1ede9;
|
|
127
|
+
$color-brown-100: #d6c9bd;
|
|
128
|
+
$color-brown-200: #bca691;
|
|
129
|
+
$color-brown-300: #a08266;
|
|
130
|
+
$color-brown-500: #865e3a;
|
|
131
|
+
$color-brown-700: #5f330a;
|
|
132
|
+
|
|
133
|
+
// Gold color palette
|
|
134
|
+
$color-gold-50: #faf3e6;
|
|
135
|
+
$color-gold-100: #efdcb4;
|
|
136
|
+
$color-gold-200: #e4c481;
|
|
137
|
+
$color-gold-300: #daad4f;
|
|
138
|
+
$color-gold-500: #cf961d;
|
|
139
|
+
$color-gold-700: #b07000;
|
|
140
|
+
|
|
141
|
+
// Lime color palette
|
|
142
|
+
$color-lime-50: #ecf6e7;
|
|
143
|
+
$color-lime-100: #c5e3b6;
|
|
144
|
+
$color-lime-200: #9ed186;
|
|
145
|
+
$color-lime-300: #77bf56;
|
|
146
|
+
$color-lime-500: #50ac25;
|
|
147
|
+
$color-lime-700: #238900;
|
|
148
|
+
|
|
149
|
+
// Magenta color palette
|
|
150
|
+
$color-magenta-50: #fbe9f1;
|
|
151
|
+
$color-magenta-100: #f4bed6;
|
|
152
|
+
$color-magenta-200: #ed93bb;
|
|
153
|
+
$color-magenta-300: #e668a0;
|
|
154
|
+
$color-magenta-500: #df3d85;
|
|
155
|
+
$color-magenta-700: #c10d5d;
|
|
156
|
+
|
|
157
|
+
// Orange color palette
|
|
158
|
+
$color-orange-50: #ffefea;
|
|
159
|
+
$color-orange-100: #ffcfc0;
|
|
160
|
+
$color-orange-200: #ffb097;
|
|
161
|
+
$color-orange-300: #ff906d;
|
|
162
|
+
$color-orange-500: #ff7043;
|
|
163
|
+
$color-orange-700: #e54715;
|
|
164
|
+
|
|
165
|
+
// Azure color palette
|
|
166
|
+
$color-azure-50: #e5f7fc;
|
|
167
|
+
$color-azure-100: #b2e6f7;
|
|
168
|
+
$color-azure-200: #80d6f1;
|
|
169
|
+
$color-azure-300: #4dc5eb;
|
|
170
|
+
$color-azure-500: #1ab5e6;
|
|
171
|
+
$color-azure-700: #0093c9;
|
|
172
|
+
|
|
173
|
+
// Palette
|
|
174
|
+
|
|
175
|
+
$color-palettes: (
|
|
176
|
+
white: (
|
|
177
|
+
50: $color-white-50,
|
|
178
|
+
100: $color-white-100,
|
|
179
|
+
200: $color-white-200,
|
|
180
|
+
300: $color-white-300,
|
|
181
|
+
500: $color-white-500,
|
|
182
|
+
700: $color-white-700,
|
|
183
|
+
),
|
|
184
|
+
black: (
|
|
185
|
+
50: $color-black-50,
|
|
186
|
+
100: $color-black-100,
|
|
187
|
+
200: $color-black-200,
|
|
188
|
+
300: $color-black-300,
|
|
189
|
+
500: $color-black-500,
|
|
190
|
+
700: $color-black-700,
|
|
191
|
+
),
|
|
192
|
+
blue: (
|
|
193
|
+
50: $color-blue-50,
|
|
194
|
+
100: $color-blue-100,
|
|
195
|
+
200: $color-blue-200,
|
|
196
|
+
300: $color-blue-300,
|
|
197
|
+
500: $color-blue-500,
|
|
198
|
+
700: $color-blue-700,
|
|
199
|
+
),
|
|
200
|
+
red: (
|
|
201
|
+
50: $color-red-50,
|
|
202
|
+
100: $color-red-100,
|
|
203
|
+
200: $color-red-200,
|
|
204
|
+
300: $color-red-300,
|
|
205
|
+
500: $color-red-500,
|
|
206
|
+
700: $color-red-700,
|
|
207
|
+
),
|
|
208
|
+
green: (
|
|
209
|
+
50: $color-green-50,
|
|
210
|
+
100: $color-green-100,
|
|
211
|
+
200: $color-green-200,
|
|
212
|
+
300: $color-green-300,
|
|
213
|
+
500: $color-green-500,
|
|
214
|
+
700: $color-green-700,
|
|
215
|
+
),
|
|
216
|
+
yellow: (
|
|
217
|
+
50: $color-yellow-50,
|
|
218
|
+
100: $color-yellow-100,
|
|
219
|
+
200: $color-yellow-200,
|
|
220
|
+
300: $color-yellow-300,
|
|
221
|
+
500: $color-yellow-500,
|
|
222
|
+
700: $color-yellow-700,
|
|
223
|
+
),
|
|
224
|
+
purple: (
|
|
225
|
+
50: $color-purple-50,
|
|
226
|
+
100: $color-purple-100,
|
|
227
|
+
200: $color-purple-200,
|
|
228
|
+
300: $color-purple-300,
|
|
229
|
+
500: $color-purple-500,
|
|
230
|
+
700: $color-purple-700,
|
|
231
|
+
),
|
|
232
|
+
orange: (
|
|
233
|
+
50: $color-orange-50,
|
|
234
|
+
100: $color-orange-100,
|
|
235
|
+
200: $color-orange-200,
|
|
236
|
+
300: $color-orange-300,
|
|
237
|
+
500: $color-orange-500,
|
|
238
|
+
700: $color-orange-700,
|
|
239
|
+
),
|
|
240
|
+
azure: (
|
|
241
|
+
50: $color-azure-50,
|
|
242
|
+
100: $color-azure-100,
|
|
243
|
+
200: $color-azure-200,
|
|
244
|
+
300: $color-azure-300,
|
|
245
|
+
500: $color-azure-500,
|
|
246
|
+
700: $color-azure-700,
|
|
247
|
+
),
|
|
248
|
+
gold: (
|
|
249
|
+
50: $color-gold-50,
|
|
250
|
+
100: $color-gold-100,
|
|
251
|
+
200: $color-gold-200,
|
|
252
|
+
300: $color-gold-300,
|
|
253
|
+
500: $color-gold-500,
|
|
254
|
+
700: $color-gold-700,
|
|
255
|
+
),
|
|
256
|
+
brown: (
|
|
257
|
+
50: $color-brown-50,
|
|
258
|
+
100: $color-brown-100,
|
|
259
|
+
200: $color-brown-200,
|
|
260
|
+
300: $color-brown-300,
|
|
261
|
+
500: $color-brown-500,
|
|
262
|
+
700: $color-brown-700,
|
|
263
|
+
),
|
|
264
|
+
navy: (
|
|
265
|
+
50: $color-navy-50,
|
|
266
|
+
100: $color-navy-100,
|
|
267
|
+
200: $color-navy-200,
|
|
268
|
+
300: $color-navy-300,
|
|
269
|
+
500: $color-navy-500,
|
|
270
|
+
700: $color-navy-700,
|
|
271
|
+
),
|
|
272
|
+
lime: (
|
|
273
|
+
50: $color-lime-50,
|
|
274
|
+
100: $color-lime-100,
|
|
275
|
+
200: $color-lime-200,
|
|
276
|
+
300: $color-lime-300,
|
|
277
|
+
500: $color-lime-500,
|
|
278
|
+
700: $color-lime-700,
|
|
279
|
+
),
|
|
280
|
+
magenta: (
|
|
281
|
+
50: $color-magenta-50,
|
|
282
|
+
100: $color-magenta-100,
|
|
283
|
+
200: $color-magenta-200,
|
|
284
|
+
300: $color-magenta-300,
|
|
285
|
+
500: $color-magenta-500,
|
|
286
|
+
700: $color-magenta-700,
|
|
287
|
+
),
|
|
288
|
+
);
|
package/src/styles/tooltip.scss
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use "variables" as *;
|
|
2
2
|
|
|
3
|
-
.tooltip {
|
|
3
|
+
.tooltip:not(.app-ca-main-tooltip):not(.app-main-tooltip) {
|
|
4
4
|
font-family: "Montserrat", ui-sans-serif, system-ui, -apple-system,
|
|
5
5
|
BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif,
|
|
6
6
|
"Apple Color Emoji", "Segoe UI Emoji" !important;
|
|
@@ -19,6 +19,12 @@
|
|
|
19
19
|
font-size: 11px !important;
|
|
20
20
|
font-weight: 600 !important;
|
|
21
21
|
color: #ffffff !important;
|
|
22
|
+
|
|
23
|
+
transition: background-color 0.1s ease-in-out;
|
|
24
|
+
|
|
25
|
+
&:empty {
|
|
26
|
+
display: none !important;
|
|
27
|
+
}
|
|
22
28
|
}
|
|
23
29
|
}
|
|
24
30
|
|
|
@@ -32,3 +38,45 @@
|
|
|
32
38
|
background-color: #df3c3c !important;
|
|
33
39
|
}
|
|
34
40
|
}
|
|
41
|
+
|
|
42
|
+
// Override the default tooltip background when custom bg classes are applied
|
|
43
|
+
.tooltip:not(.app-ca-main-tooltip):not(.app-main-tooltip) {
|
|
44
|
+
&[class*="tooltip-bg-"] {
|
|
45
|
+
.tooltip-inner {
|
|
46
|
+
background-color: inherit !important;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@each $color-name, $shades in $color-palettes {
|
|
52
|
+
.tooltip:not(.app-ca-main-tooltip):not(.app-main-tooltip) {
|
|
53
|
+
&.tooltip-bg-#{$color-name} {
|
|
54
|
+
@each $shade, $color-value in $shades {
|
|
55
|
+
&-#{$shade} {
|
|
56
|
+
.tooltip-inner {
|
|
57
|
+
background-color: $color-value !important;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// Opacity variants only for -500
|
|
61
|
+
@if $shade == 500 {
|
|
62
|
+
&\/20 {
|
|
63
|
+
.tooltip-inner {
|
|
64
|
+
background-color: rgba($color-value, 0.2) !important;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
&\/40 {
|
|
68
|
+
.tooltip-inner {
|
|
69
|
+
background-color: rgba($color-value, 0.4) !important;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
&\/70 {
|
|
73
|
+
.tooltip-inner {
|
|
74
|
+
background-color: rgba($color-value, 0.7) !important;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
@use "../variables" as *;
|
|
2
|
+
|
|
3
|
+
// Generate text color utilities with opacity variants only for -500
|
|
4
|
+
@each $color-name, $shades in $color-palettes {
|
|
5
|
+
.text-#{$color-name} {
|
|
6
|
+
@each $shade, $color-value in $shades {
|
|
7
|
+
&-#{$shade} {
|
|
8
|
+
color: $color-value;
|
|
9
|
+
|
|
10
|
+
// Opacity variants only for -500
|
|
11
|
+
@if $shade == 500 {
|
|
12
|
+
&\/20 {
|
|
13
|
+
color: rgba($color-value, 0.2);
|
|
14
|
+
}
|
|
15
|
+
&\/40 {
|
|
16
|
+
color: rgba($color-value, 0.4);
|
|
17
|
+
}
|
|
18
|
+
&\/70 {
|
|
19
|
+
color: rgba($color-value, 0.7);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// Generate background color utilities with opacity variants only for -500
|
|
28
|
+
@each $color-name, $shades in $color-palettes {
|
|
29
|
+
.bg-#{$color-name} {
|
|
30
|
+
@each $shade, $color-value in $shades {
|
|
31
|
+
&-#{$shade} {
|
|
32
|
+
background-color: $color-value;
|
|
33
|
+
|
|
34
|
+
// Opacity variants only for -500
|
|
35
|
+
@if $shade == 500 {
|
|
36
|
+
&\/20 {
|
|
37
|
+
background-color: rgba($color-value, 0.2);
|
|
38
|
+
}
|
|
39
|
+
&\/40 {
|
|
40
|
+
background-color: rgba($color-value, 0.4);
|
|
41
|
+
}
|
|
42
|
+
&\/70 {
|
|
43
|
+
background-color: rgba($color-value, 0.7);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// Generate border color utilities with opacity variants only for -500
|
|
52
|
+
@each $color-name, $shades in $color-palettes {
|
|
53
|
+
.border-#{$color-name} {
|
|
54
|
+
@each $shade, $color-value in $shades {
|
|
55
|
+
&-#{$shade} {
|
|
56
|
+
border-color: $color-value;
|
|
57
|
+
|
|
58
|
+
// Opacity variants only for -500
|
|
59
|
+
@if $shade == 500 {
|
|
60
|
+
&\/20 {
|
|
61
|
+
border-color: rgba($color-value, 0.2);
|
|
62
|
+
}
|
|
63
|
+
&\/40 {
|
|
64
|
+
border-color: rgba($color-value, 0.4);
|
|
65
|
+
}
|
|
66
|
+
&\/70 {
|
|
67
|
+
border-color: rgba($color-value, 0.7);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// Generate fill utilities for SVGs with opacity variants only for -500
|
|
76
|
+
@each $color-name, $shades in $color-palettes {
|
|
77
|
+
.fill-#{$color-name} {
|
|
78
|
+
@each $shade, $color-value in $shades {
|
|
79
|
+
&-#{$shade} {
|
|
80
|
+
fill: $color-value;
|
|
81
|
+
|
|
82
|
+
// Opacity variants only for -500
|
|
83
|
+
@if $shade == 500 {
|
|
84
|
+
&\/20 {
|
|
85
|
+
fill: rgba($color-value, 0.2);
|
|
86
|
+
}
|
|
87
|
+
&\/40 {
|
|
88
|
+
fill: rgba($color-value, 0.4);
|
|
89
|
+
}
|
|
90
|
+
&\/70 {
|
|
91
|
+
fill: rgba($color-value, 0.7);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
// Generate stroke utilities for SVGs with opacity variants only for -500
|
|
100
|
+
@each $color-name, $shades in $color-palettes {
|
|
101
|
+
.stroke-#{$color-name} {
|
|
102
|
+
@each $shade, $color-value in $shades {
|
|
103
|
+
&-#{$shade} {
|
|
104
|
+
stroke: $color-value;
|
|
105
|
+
|
|
106
|
+
// Opacity variants only for -500
|
|
107
|
+
@if $shade == 500 {
|
|
108
|
+
&\/20 {
|
|
109
|
+
stroke: rgba($color-value, 0.2);
|
|
110
|
+
}
|
|
111
|
+
&\/40 {
|
|
112
|
+
stroke: rgba($color-value, 0.4);
|
|
113
|
+
}
|
|
114
|
+
&\/70 {
|
|
115
|
+
stroke: rgba($color-value, 0.7);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
// Hover states for text colors with opacity variants only for -500
|
|
124
|
+
@each $color-name, $shades in $color-palettes {
|
|
125
|
+
.hover\:text-#{$color-name} {
|
|
126
|
+
@each $shade, $color-value in $shades {
|
|
127
|
+
&-#{$shade}:hover {
|
|
128
|
+
color: $color-value;
|
|
129
|
+
|
|
130
|
+
// Opacity variants only for -500
|
|
131
|
+
@if $shade == 500 {
|
|
132
|
+
&\/20 {
|
|
133
|
+
color: rgba($color-value, 0.2);
|
|
134
|
+
}
|
|
135
|
+
&\/40 {
|
|
136
|
+
color: rgba($color-value, 0.4);
|
|
137
|
+
}
|
|
138
|
+
&\/70 {
|
|
139
|
+
color: rgba($color-value, 0.7);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
// Hover states for background colors with opacity variants only for -500
|
|
148
|
+
@each $color-name, $shades in $color-palettes {
|
|
149
|
+
.hover\:bg-#{$color-name} {
|
|
150
|
+
@each $shade, $color-value in $shades {
|
|
151
|
+
&-#{$shade}:hover {
|
|
152
|
+
background-color: $color-value;
|
|
153
|
+
|
|
154
|
+
// Opacity variants only for -500
|
|
155
|
+
@if $shade == 500 {
|
|
156
|
+
&\/20 {
|
|
157
|
+
background-color: rgba($color-value, 0.2);
|
|
158
|
+
}
|
|
159
|
+
&\/40 {
|
|
160
|
+
background-color: rgba($color-value, 0.4);
|
|
161
|
+
}
|
|
162
|
+
&\/70 {
|
|
163
|
+
background-color: rgba($color-value, 0.7);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
// Focus states for text colors with opacity variants only for -500
|
|
172
|
+
@each $color-name, $shades in $color-palettes {
|
|
173
|
+
.focus\:text-#{$color-name} {
|
|
174
|
+
@each $shade, $color-value in $shades {
|
|
175
|
+
&-#{$shade}:focus-visible {
|
|
176
|
+
color: $color-value;
|
|
177
|
+
|
|
178
|
+
// Opacity variants only for -500
|
|
179
|
+
@if $shade == 500 {
|
|
180
|
+
&\/20 {
|
|
181
|
+
color: rgba($color-value, 0.2);
|
|
182
|
+
}
|
|
183
|
+
&\/40 {
|
|
184
|
+
color: rgba($color-value, 0.4);
|
|
185
|
+
}
|
|
186
|
+
&\/70 {
|
|
187
|
+
color: rgba($color-value, 0.7);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
// Focus states for background colors with opacity variants only for -500
|
|
196
|
+
@each $color-name, $shades in $color-palettes {
|
|
197
|
+
.focus\:bg-#{$color-name} {
|
|
198
|
+
@each $shade, $color-value in $shades {
|
|
199
|
+
&-#{$shade}:focus-visible {
|
|
200
|
+
background-color: $color-value;
|
|
201
|
+
|
|
202
|
+
// Opacity variants only for -500
|
|
203
|
+
@if $shade == 500 {
|
|
204
|
+
&\/20 {
|
|
205
|
+
background-color: rgba($color-value, 0.2);
|
|
206
|
+
}
|
|
207
|
+
&\/40 {
|
|
208
|
+
background-color: rgba($color-value, 0.4);
|
|
209
|
+
}
|
|
210
|
+
&\/70 {
|
|
211
|
+
background-color: rgba($color-value, 0.7);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
// Active states for text colors with opacity variants only for -500
|
|
220
|
+
@each $color-name, $shades in $color-palettes {
|
|
221
|
+
.active\:text-#{$color-name} {
|
|
222
|
+
@each $shade, $color-value in $shades {
|
|
223
|
+
&-#{$shade}:active {
|
|
224
|
+
color: $color-value;
|
|
225
|
+
|
|
226
|
+
// Opacity variants only for -500
|
|
227
|
+
@if $shade == 500 {
|
|
228
|
+
&\/20 {
|
|
229
|
+
color: rgba($color-value, 0.2);
|
|
230
|
+
}
|
|
231
|
+
&\/40 {
|
|
232
|
+
color: rgba($color-value, 0.4);
|
|
233
|
+
}
|
|
234
|
+
&\/70 {
|
|
235
|
+
color: rgba($color-value, 0.7);
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
// Active states for background colors with opacity variants only for -500
|
|
244
|
+
@each $color-name, $shades in $color-palettes {
|
|
245
|
+
.active\:bg-#{$color-name} {
|
|
246
|
+
@each $shade, $color-value in $shades {
|
|
247
|
+
&-#{$shade}:active {
|
|
248
|
+
background-color: $color-value;
|
|
249
|
+
|
|
250
|
+
// Opacity variants only for -500
|
|
251
|
+
@if $shade == 500 {
|
|
252
|
+
&\/20 {
|
|
253
|
+
background-color: rgba($color-value, 0.2);
|
|
254
|
+
}
|
|
255
|
+
&\/40 {
|
|
256
|
+
background-color: rgba($color-value, 0.4);
|
|
257
|
+
}
|
|
258
|
+
&\/70 {
|
|
259
|
+
background-color: rgba($color-value, 0.7);
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
}
|
package/src/styles.scss
CHANGED
|
@@ -3,9 +3,12 @@
|
|
|
3
3
|
@use "styles/custompickers";
|
|
4
4
|
@use "styles/popover";
|
|
5
5
|
@use "styles/cropper";
|
|
6
|
+
@use "styles/utility/utilities";
|
|
6
7
|
@use "styles/tooltip";
|
|
8
|
+
|
|
7
9
|
/* Importing Bootstrap SCSS file. */
|
|
8
10
|
@use "bootstrap/scss/bootstrap";
|
|
11
|
+
|
|
9
12
|
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap");
|
|
10
13
|
|
|
11
14
|
html {
|