@drivy/cobalt 0.46.2 → 0.46.3
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/cjs/tokens/palette.js +0 -16
- package/cjs/tokens/palette.js.map +1 -1
- package/cjs/tokens/theme.js +57 -57
- package/cjs/tokens/zIndexes.js +5 -0
- package/cjs/tokens/zIndexes.js.map +1 -1
- package/package.json +1 -1
- package/styles/components/Sidepanel/index.scss +32 -0
- package/styles/components.scss +1 -0
- package/styles/core/_colors-map.scss +15 -15
- package/styles/core/default-theme.scss +24 -24
- package/styles/core/palette.scss +0 -8
- package/styles/core/theme.scss +77 -77
- package/styles/core/z-index.scss +2 -1
- package/tokens/palette.js +1 -15
- package/tokens/palette.js.map +1 -1
- package/tokens/theme.js +57 -57
- package/tokens/zIndexes.js +5 -1
- package/tokens/zIndexes.js.map +1 -1
- package/types/src/components/Sidepanel/index.d.ts +16 -0
- package/types/src/tokens/index.d.ts +18 -27
- package/utilities.css +60 -32
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type SidepanelFooterPropsType = React.PropsWithChildren<{
|
|
3
|
+
className?: string;
|
|
4
|
+
}>;
|
|
5
|
+
type SidepanelPropsType = React.PropsWithChildren<{
|
|
6
|
+
isOpen: boolean;
|
|
7
|
+
title?: string;
|
|
8
|
+
close?: () => void;
|
|
9
|
+
}>;
|
|
10
|
+
export declare const Sidepanel: {
|
|
11
|
+
({ isOpen, title, close, children }: SidepanelPropsType): React.JSX.Element;
|
|
12
|
+
displayName: string;
|
|
13
|
+
} & {
|
|
14
|
+
Footer: (_props: SidepanelFooterPropsType) => null;
|
|
15
|
+
};
|
|
16
|
+
export {};
|
|
@@ -366,6 +366,9 @@ export declare const zIndexes: {
|
|
|
366
366
|
"header-below": number;
|
|
367
367
|
header: number;
|
|
368
368
|
"header-above": number;
|
|
369
|
+
"sidepanel-below": number;
|
|
370
|
+
sidepanel: number;
|
|
371
|
+
"sidepanel-above": number;
|
|
369
372
|
"modal-below": number;
|
|
370
373
|
modal: number;
|
|
371
374
|
"modal-above": number;
|
|
@@ -389,18 +392,6 @@ export declare const palette: {
|
|
|
389
392
|
"1100": string;
|
|
390
393
|
"1200": string;
|
|
391
394
|
};
|
|
392
|
-
purpleDeep: {
|
|
393
|
-
"100": string;
|
|
394
|
-
"300": string;
|
|
395
|
-
"400": string;
|
|
396
|
-
"500": string;
|
|
397
|
-
"700": string;
|
|
398
|
-
"900": string;
|
|
399
|
-
"1000": string;
|
|
400
|
-
};
|
|
401
|
-
purpleLight: {
|
|
402
|
-
"100": string;
|
|
403
|
-
};
|
|
404
395
|
navy: {
|
|
405
396
|
"50": string;
|
|
406
397
|
"100": string;
|
|
@@ -793,21 +784,6 @@ export declare const theme: {
|
|
|
793
784
|
press: string;
|
|
794
785
|
};
|
|
795
786
|
};
|
|
796
|
-
fill: {
|
|
797
|
-
base: string;
|
|
798
|
-
accent: string;
|
|
799
|
-
secondary: string;
|
|
800
|
-
subdued: string;
|
|
801
|
-
neutral: string;
|
|
802
|
-
negative: string;
|
|
803
|
-
accentAlt: string;
|
|
804
|
-
disabled: string;
|
|
805
|
-
error: string;
|
|
806
|
-
success: string;
|
|
807
|
-
rental: string;
|
|
808
|
-
blocker: string;
|
|
809
|
-
primary: string;
|
|
810
|
-
};
|
|
811
787
|
buttonBackground: {
|
|
812
788
|
selected: string;
|
|
813
789
|
primary: string;
|
|
@@ -844,6 +820,21 @@ export declare const theme: {
|
|
|
844
820
|
press: string;
|
|
845
821
|
};
|
|
846
822
|
};
|
|
823
|
+
fill: {
|
|
824
|
+
base: string;
|
|
825
|
+
accent: string;
|
|
826
|
+
secondary: string;
|
|
827
|
+
subdued: string;
|
|
828
|
+
neutral: string;
|
|
829
|
+
negative: string;
|
|
830
|
+
accentAlt: string;
|
|
831
|
+
disabled: string;
|
|
832
|
+
error: string;
|
|
833
|
+
success: string;
|
|
834
|
+
rental: string;
|
|
835
|
+
blocker: string;
|
|
836
|
+
primary: string;
|
|
837
|
+
};
|
|
847
838
|
illustrations: {
|
|
848
839
|
primary: string;
|
|
849
840
|
secondary: string;
|
package/utilities.css
CHANGED
|
@@ -20,14 +20,6 @@
|
|
|
20
20
|
--c-purple-1000: #3e093b;
|
|
21
21
|
--c-purple-1100: #280626;
|
|
22
22
|
--c-purple-1200: #160315;
|
|
23
|
-
--c-purpleDeep-100: #f2a6ee;
|
|
24
|
-
--c-purpleDeep-300: #ea71e3;
|
|
25
|
-
--c-purpleDeep-400: #c31dba;
|
|
26
|
-
--c-purpleDeep-500: #9b1794;
|
|
27
|
-
--c-purpleDeep-700: #73116e;
|
|
28
|
-
--c-purpleDeep-900: #4b0b48;
|
|
29
|
-
--c-purpleDeep-1000: #3e093c;
|
|
30
|
-
--c-purpleLight-100: #ffdcfd;
|
|
31
23
|
--c-navy-50: #f1f1f4;
|
|
32
24
|
--c-navy-100: #e3e2e8;
|
|
33
25
|
--c-navy-120: #cac7d2;
|
|
@@ -152,7 +144,7 @@
|
|
|
152
144
|
--c-background-error: var(--c-red-500);
|
|
153
145
|
--c-background-errorAlt: var(--c-red-100);
|
|
154
146
|
--c-background-success: var(--c-green-700);
|
|
155
|
-
--c-background-successAlt: var(--c-green-
|
|
147
|
+
--c-background-successAlt: var(--c-green-300);
|
|
156
148
|
--c-background-connect: var(--c-newPurple-500);
|
|
157
149
|
--c-background-connectAlt: var(--c-turquoise-50);
|
|
158
150
|
--c-background-driver: var(--c-yellow-500);
|
|
@@ -174,9 +166,9 @@
|
|
|
174
166
|
--c-background-secondaryInteractive: var(--c-white);
|
|
175
167
|
--c-background-secondaryInteractive--hover: var(--c-navy-50);
|
|
176
168
|
--c-background-accentInteractive: var(--c-purple-500);
|
|
177
|
-
--c-background-accentInteractive--hover: var(--c-purple-
|
|
169
|
+
--c-background-accentInteractive--hover: var(--c-purple-600);
|
|
178
170
|
--c-background-accentAltInteractive: var(--c-purple-200);
|
|
179
|
-
--c-background-accentAltInteractive--hover: var(--c-
|
|
171
|
+
--c-background-accentAltInteractive--hover: var(--c-purple-200);
|
|
180
172
|
--c-background-connectInteractive: var(--c-newPurple-500);
|
|
181
173
|
--c-background-connectInteractive--hover: var(--c-turquoise-700);
|
|
182
174
|
--c-background-errorInteractive: var(--c-red-500);
|
|
@@ -189,7 +181,7 @@
|
|
|
189
181
|
--c-text-error: var(--c-red-500);
|
|
190
182
|
--c-text-errorAlt: var(--c-red-500);
|
|
191
183
|
--c-text-success: var(--c-green-700);
|
|
192
|
-
--c-text-successAlt: var(--c-green-
|
|
184
|
+
--c-text-successAlt: var(--c-green-900);
|
|
193
185
|
--c-text-connect: var(--c-newPurple-500);
|
|
194
186
|
--c-text-connectAlt: var(--c-turquoise-900);
|
|
195
187
|
--c-text-driver: var(--c-navy-700);
|
|
@@ -231,7 +223,7 @@
|
|
|
231
223
|
--c-icon-error: var(--c-red-500);
|
|
232
224
|
--c-icon-errorAlt: var(--c-red-500);
|
|
233
225
|
--c-icon-success: var(--c-green-700);
|
|
234
|
-
--c-icon-successAlt: var(--c-green-
|
|
226
|
+
--c-icon-successAlt: var(--c-green-900);
|
|
235
227
|
--c-icon-connect: var(--c-newPurple-500);
|
|
236
228
|
--c-icon-connectAlt: var(--c-turquoise-900);
|
|
237
229
|
--c-icon-driver: var(--c-navy-700);
|
|
@@ -254,7 +246,7 @@
|
|
|
254
246
|
--c-icon-onRental: var(--c-white);
|
|
255
247
|
--c-icon-inversed: var(--c-white);
|
|
256
248
|
--c-icon-baseInteractive: var(--c-navy-700);
|
|
257
|
-
--c-icon-baseInteractive--hover: var(--c-navy-
|
|
249
|
+
--c-icon-baseInteractive--hover: var(--c-navy-900);
|
|
258
250
|
--c-icon-subduedInteractive: var(--c-navy-400);
|
|
259
251
|
--c-icon-subduedInteractive--hover: var(--c-navy-500);
|
|
260
252
|
--c-icon-accentInteractive: var(--c-purple-500);
|
|
@@ -290,9 +282,9 @@
|
|
|
290
282
|
--c-stroke-accentInteractive: var(--c-purple-500);
|
|
291
283
|
--c-stroke-accentInteractive--hover: var(--c-purple-700);
|
|
292
284
|
--c-stroke-accentInteractive--press: var(--c-purple-900);
|
|
293
|
-
--c-stroke-strongInteractive: var(--c-
|
|
294
|
-
--c-stroke-strongInteractive--hover: var(--c-
|
|
295
|
-
--c-stroke-strongInteractive--press: var(--c-
|
|
285
|
+
--c-stroke-strongInteractive: var(--c-grey-300);
|
|
286
|
+
--c-stroke-strongInteractive--hover: var(--c-grey-400);
|
|
287
|
+
--c-stroke-strongInteractive--press: var(--c-grey-500);
|
|
296
288
|
--c-buttonIcon-selected: var(--c-purple-500);
|
|
297
289
|
--c-buttonIcon-primary: var(--c-white);
|
|
298
290
|
--c-buttonIcon-secondary: var(--c-purple-500);
|
|
@@ -306,10 +298,10 @@
|
|
|
306
298
|
--c-buttonIcon-primaryInteractive--hover: var(--c-white);
|
|
307
299
|
--c-buttonIcon-primaryInteractive--press: var(--c-white);
|
|
308
300
|
--c-buttonIcon-secondaryInteractive: var(--c-purple-500);
|
|
309
|
-
--c-buttonIcon-secondaryInteractive--hover: var(--c-purple-
|
|
301
|
+
--c-buttonIcon-secondaryInteractive--hover: var(--c-purple-500);
|
|
310
302
|
--c-buttonIcon-secondaryInteractive--press: var(--c-purple-900);
|
|
311
303
|
--c-buttonIcon-tertiaryInteractive: var(--c-purple-500);
|
|
312
|
-
--c-buttonIcon-tertiaryInteractive--hover: var(--c-purple-
|
|
304
|
+
--c-buttonIcon-tertiaryInteractive--hover: var(--c-purple-500);
|
|
313
305
|
--c-buttonIcon-tertiaryInteractive--press: var(--c-purple-900);
|
|
314
306
|
--c-buttonIcon-destructiveInteractive: var(--c-red-500);
|
|
315
307
|
--c-buttonIcon-destructiveInteractive--hover: var(--c-red-500);
|
|
@@ -341,19 +333,6 @@
|
|
|
341
333
|
--c-buttonLabel-successAltInteractive: var(--c-green-900);
|
|
342
334
|
--c-buttonLabel-successAltInteractive--hover: var(--c-green-900);
|
|
343
335
|
--c-buttonLabel-successAltInteractive--press: var(--c-green-900);
|
|
344
|
-
--c-fill-base: var(--c-navy-500);
|
|
345
|
-
--c-fill-accent: var(--c-purple-500);
|
|
346
|
-
--c-fill-secondary: var(--c-yellow-500);
|
|
347
|
-
--c-fill-subdued: var(--c-navy-100);
|
|
348
|
-
--c-fill-neutral: var(--c-navy-50);
|
|
349
|
-
--c-fill-negative: var(--c-red-150);
|
|
350
|
-
--c-fill-accentAlt: var(--c-purple-100);
|
|
351
|
-
--c-fill-disabled: var(--c-navy-300);
|
|
352
|
-
--c-fill-error: var(--c-red-500);
|
|
353
|
-
--c-fill-success: var(--c-green-500);
|
|
354
|
-
--c-fill-rental: var(--c-blue-300);
|
|
355
|
-
--c-fill-blocker: var(--c-grey-100);
|
|
356
|
-
--c-fill-primary: var(--c-white);
|
|
357
336
|
--c-buttonBackground-selected: var(--c-purple-100);
|
|
358
337
|
--c-buttonBackground-primary: var(--c-purple-500);
|
|
359
338
|
--c-buttonBackground-secondary: var(--c-white);
|
|
@@ -378,6 +357,19 @@
|
|
|
378
357
|
--c-buttonBackground-successAltInteractive: var(--c-green-100);
|
|
379
358
|
--c-buttonBackground-successAltInteractive--hover: var(--c-green-300);
|
|
380
359
|
--c-buttonBackground-successAltInteractive--press: var(--c-green-400);
|
|
360
|
+
--c-fill-base: var(--c-navy-500);
|
|
361
|
+
--c-fill-accent: var(--c-purple-500);
|
|
362
|
+
--c-fill-secondary: var(--c-yellow-500);
|
|
363
|
+
--c-fill-subdued: var(--c-navy-100);
|
|
364
|
+
--c-fill-neutral: var(--c-navy-50);
|
|
365
|
+
--c-fill-negative: var(--c-red-150);
|
|
366
|
+
--c-fill-accentAlt: var(--c-purple-100);
|
|
367
|
+
--c-fill-disabled: var(--c-navy-300);
|
|
368
|
+
--c-fill-error: var(--c-red-500);
|
|
369
|
+
--c-fill-success: var(--c-green-500);
|
|
370
|
+
--c-fill-rental: var(--c-blue-300);
|
|
371
|
+
--c-fill-blocker: var(--c-grey-100);
|
|
372
|
+
--c-fill-primary: var(--c-white);
|
|
381
373
|
--c-illustrations-primary: var(--c-navy-500);
|
|
382
374
|
--c-illustrations-secondary: var(--c-white);
|
|
383
375
|
--c-illustrations-accent1: var(--c-purple-500);
|
|
@@ -1511,6 +1503,18 @@
|
|
|
1511
1503
|
z-index: 31;
|
|
1512
1504
|
}
|
|
1513
1505
|
|
|
1506
|
+
.c-z-sidepanel-below {
|
|
1507
|
+
z-index: 79;
|
|
1508
|
+
}
|
|
1509
|
+
|
|
1510
|
+
.c-z-sidepanel {
|
|
1511
|
+
z-index: 80;
|
|
1512
|
+
}
|
|
1513
|
+
|
|
1514
|
+
.c-z-sidepanel-above {
|
|
1515
|
+
z-index: 81;
|
|
1516
|
+
}
|
|
1517
|
+
|
|
1514
1518
|
.c-z-modal-below {
|
|
1515
1519
|
z-index: 89;
|
|
1516
1520
|
}
|
|
@@ -1583,6 +1587,18 @@
|
|
|
1583
1587
|
z-index: 31;
|
|
1584
1588
|
}
|
|
1585
1589
|
|
|
1590
|
+
.hover\:c-z-sidepanel-below:hover {
|
|
1591
|
+
z-index: 79;
|
|
1592
|
+
}
|
|
1593
|
+
|
|
1594
|
+
.hover\:c-z-sidepanel:hover {
|
|
1595
|
+
z-index: 80;
|
|
1596
|
+
}
|
|
1597
|
+
|
|
1598
|
+
.hover\:c-z-sidepanel-above:hover {
|
|
1599
|
+
z-index: 81;
|
|
1600
|
+
}
|
|
1601
|
+
|
|
1586
1602
|
.hover\:c-z-modal-below:hover {
|
|
1587
1603
|
z-index: 89;
|
|
1588
1604
|
}
|
|
@@ -1655,6 +1671,18 @@
|
|
|
1655
1671
|
z-index: 31;
|
|
1656
1672
|
}
|
|
1657
1673
|
|
|
1674
|
+
.focus\:c-z-sidepanel-below:focus {
|
|
1675
|
+
z-index: 79;
|
|
1676
|
+
}
|
|
1677
|
+
|
|
1678
|
+
.focus\:c-z-sidepanel:focus {
|
|
1679
|
+
z-index: 80;
|
|
1680
|
+
}
|
|
1681
|
+
|
|
1682
|
+
.focus\:c-z-sidepanel-above:focus {
|
|
1683
|
+
z-index: 81;
|
|
1684
|
+
}
|
|
1685
|
+
|
|
1658
1686
|
.focus\:c-z-modal-below:focus {
|
|
1659
1687
|
z-index: 89;
|
|
1660
1688
|
}
|