@foxeltech/angular-ui 0.0.11 → 0.0.13
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/components.css +34 -18
- package/fesm2022/foxeltech-angular-ui.mjs +23 -14
- package/fesm2022/foxeltech-angular-ui.mjs.map +1 -1
- package/index.d.ts +9 -4
- package/package.json +1 -1
- package/src/lib/styles/components.css +34 -18
- package/src/lib/styles/theme.css +20 -14
- package/src/lib/ui/components/button/button.component.html +2 -1
- package/src/lib/ui/components/input/input.component.html +10 -0
- package/src/lib/ui/components/radio-button/radio-button.component.html +29 -11
- package/src/lib/ui/components/select/select.component.html +10 -0
- package/tailwind.config.js +9 -4
- package/theme.css +20 -14
package/index.d.ts
CHANGED
|
@@ -514,6 +514,7 @@ declare class FxComponent<T> implements ControlValueAccessor {
|
|
|
514
514
|
declare class InputComponent extends FxComponent<string> implements AfterViewInit {
|
|
515
515
|
private ref;
|
|
516
516
|
label: string;
|
|
517
|
+
tooltip: string;
|
|
517
518
|
type: string;
|
|
518
519
|
placeholder: string;
|
|
519
520
|
errorMessages: {
|
|
@@ -540,12 +541,13 @@ declare class InputComponent extends FxComponent<string> implements AfterViewIni
|
|
|
540
541
|
onSuffixClick(): void;
|
|
541
542
|
get displayType(): string;
|
|
542
543
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent, never>;
|
|
543
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent, "fx-ui-input", never, { "label": { "alias": "label"; "required": false; }; "type": { "alias": "type"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "errorMessages": { "alias": "errorMessages"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "suffixIcon": { "alias": "suffixIcon"; "required": false; }; "class": { "alias": "class"; "required": false; }; "maxlength": { "alias": "maxlength"; "required": false; }; "validateFn": { "alias": "validateFn"; "required": false; }; }, { "blurred": "blurred"; "focused": "focused"; "suffixClick": "suffixClick"; }, never, never, false, never>;
|
|
544
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent, "fx-ui-input", never, { "label": { "alias": "label"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "type": { "alias": "type"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "errorMessages": { "alias": "errorMessages"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "suffixIcon": { "alias": "suffixIcon"; "required": false; }; "class": { "alias": "class"; "required": false; }; "maxlength": { "alias": "maxlength"; "required": false; }; "validateFn": { "alias": "validateFn"; "required": false; }; }, { "blurred": "blurred"; "focused": "focused"; "suffixClick": "suffixClick"; }, never, never, false, never>;
|
|
544
545
|
}
|
|
545
546
|
|
|
546
547
|
declare class SelectComponent extends FxComponent<string | string[]> implements AfterViewInit, OnInit {
|
|
547
548
|
private ref;
|
|
548
549
|
label: string;
|
|
550
|
+
tooltip: string;
|
|
549
551
|
placeholder: string;
|
|
550
552
|
options: {
|
|
551
553
|
label: string;
|
|
@@ -580,22 +582,25 @@ declare class SelectComponent extends FxComponent<string | string[]> implements
|
|
|
580
582
|
onSelectionChange(value: any): void;
|
|
581
583
|
isSelected(value: string): boolean;
|
|
582
584
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectComponent, never>;
|
|
583
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "fx-ui-select", never, { "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "options": { "alias": "options"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "errorMessages": { "alias": "errorMessages"; "required": false; }; "required": { "alias": "required"; "required": false; }; "class": { "alias": "class"; "required": false; }; "enableSearch": { "alias": "enableSearch"; "required": false; }; "searchFn": { "alias": "searchFn"; "required": false; }; }, { "closed": "closed"; }, never, never, false, never>;
|
|
585
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "fx-ui-select", never, { "label": { "alias": "label"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "options": { "alias": "options"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "errorMessages": { "alias": "errorMessages"; "required": false; }; "required": { "alias": "required"; "required": false; }; "class": { "alias": "class"; "required": false; }; "enableSearch": { "alias": "enableSearch"; "required": false; }; "searchFn": { "alias": "searchFn"; "required": false; }; }, { "closed": "closed"; }, never, never, false, never>;
|
|
584
586
|
}
|
|
585
587
|
|
|
586
588
|
interface IRadioButton {
|
|
587
589
|
label: string;
|
|
588
590
|
value: any;
|
|
589
591
|
description?: string;
|
|
592
|
+
tooltip?: string;
|
|
590
593
|
}
|
|
591
594
|
declare class RadioButtonComponent extends FxComponent<IRadioButton> implements AfterViewInit {
|
|
592
595
|
private ref;
|
|
593
596
|
label?: string;
|
|
597
|
+
tooltip: string;
|
|
594
598
|
required?: boolean;
|
|
595
599
|
options: {
|
|
596
600
|
label: string;
|
|
597
601
|
value: any;
|
|
598
602
|
icon?: any;
|
|
603
|
+
tooltip?: string;
|
|
599
604
|
}[];
|
|
600
605
|
disabled: boolean;
|
|
601
606
|
errorMessages: ErrorMessages;
|
|
@@ -605,7 +610,7 @@ declare class RadioButtonComponent extends FxComponent<IRadioButton> implements
|
|
|
605
610
|
setDisabledState?(isDisabled: boolean): void;
|
|
606
611
|
onSelectValue(value: any): void;
|
|
607
612
|
static ɵfac: i0.ɵɵFactoryDeclaration<RadioButtonComponent, never>;
|
|
608
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<RadioButtonComponent, "fx-ui-radio", never, { "label": { "alias": "label"; "required": false; }; "required": { "alias": "required"; "required": false; }; "options": { "alias": "options"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "errorMessages": { "alias": "errorMessages"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, {}, never, never, false, never>;
|
|
613
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RadioButtonComponent, "fx-ui-radio", never, { "label": { "alias": "label"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "required": { "alias": "required"; "required": false; }; "options": { "alias": "options"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "errorMessages": { "alias": "errorMessages"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, {}, never, never, false, never>;
|
|
609
614
|
}
|
|
610
615
|
|
|
611
616
|
declare class CheckboxComponent extends FxComponent<any> implements AfterViewInit {
|
|
@@ -665,7 +670,7 @@ declare class DndUploadComponent {
|
|
|
665
670
|
declare class ButtonComponent {
|
|
666
671
|
label: string;
|
|
667
672
|
disabled: boolean;
|
|
668
|
-
buttonVariant: 'default' | 'primary' | 'alternative';
|
|
673
|
+
buttonVariant: 'default' | 'primary' | 'success' | 'alternative';
|
|
669
674
|
icon?: any;
|
|
670
675
|
class?: any;
|
|
671
676
|
loading: boolean;
|
package/package.json
CHANGED
|
@@ -82,20 +82,24 @@
|
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
.mat-mdc-table {
|
|
85
|
-
border:
|
|
86
|
-
border-radius:
|
|
85
|
+
border: 1px solid rgb(var(--border-default)) !important;
|
|
86
|
+
border-radius: 12px !important;
|
|
87
|
+
overflow: hidden !important;
|
|
88
|
+
border-collapse: separate !important;
|
|
89
|
+
border-spacing: 0 !important;
|
|
90
|
+
background-color: rgb(var(--bg-primary)) !important;
|
|
87
91
|
}
|
|
88
92
|
|
|
89
93
|
.mdc-data-table__header-row {
|
|
90
|
-
height:
|
|
91
|
-
min-height:
|
|
94
|
+
height: 40px !important;
|
|
95
|
+
min-height: 40px !important;
|
|
92
96
|
}
|
|
93
97
|
|
|
94
98
|
.mdc-data-table__header-cell {
|
|
95
|
-
border-left: 1px solid rgb(var(--border-default)) !important;
|
|
96
99
|
background-color: rgb(var(--bg-primary-hover)) !important;
|
|
97
|
-
|
|
98
|
-
padding-
|
|
100
|
+
border-bottom: 1px solid rgb(var(--border-default)) !important;
|
|
101
|
+
padding-top: 8px !important;
|
|
102
|
+
padding-bottom: 8px !important;
|
|
99
103
|
line-height: 24px !important;
|
|
100
104
|
font-family: 'Roboto';
|
|
101
105
|
}
|
|
@@ -103,14 +107,23 @@
|
|
|
103
107
|
.mdc-data-table__row {
|
|
104
108
|
height: 0 !important;
|
|
105
109
|
min-height: 0 !important;
|
|
110
|
+
transition: background-color 0.2s ease-in-out;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.mat-mdc-row:hover .mdc-data-table__cell {
|
|
114
|
+
background-color: rgb(var(--bg-primary-hover)) !important;
|
|
106
115
|
}
|
|
107
116
|
|
|
108
117
|
.mdc-data-table__cell {
|
|
109
|
-
border-
|
|
118
|
+
border-bottom: 1px solid rgb(var(--border-default)) !important;
|
|
110
119
|
background-color: rgb(var(--bg-primary)) !important;
|
|
111
120
|
font-family: 'Roboto';
|
|
112
121
|
}
|
|
113
122
|
|
|
123
|
+
.mat-mdc-row:last-child .mdc-data-table__cell {
|
|
124
|
+
border-bottom: none !important;
|
|
125
|
+
}
|
|
126
|
+
|
|
114
127
|
.mat-mdc-cell {
|
|
115
128
|
border-color: rgb(var(--border-default)) !important;
|
|
116
129
|
}
|
|
@@ -279,7 +292,7 @@ input[type='password'] {
|
|
|
279
292
|
@apply text-xs font-light text-text-secondary tracking-normal;
|
|
280
293
|
}
|
|
281
294
|
.txt-tag-common {
|
|
282
|
-
@apply font-
|
|
295
|
+
@apply font-semibold text-xs;
|
|
283
296
|
}
|
|
284
297
|
.txt-tag-default {
|
|
285
298
|
@apply txt-tag-common text-text-secondary;
|
|
@@ -321,6 +334,9 @@ input[type='password'] {
|
|
|
321
334
|
.btn-primary {
|
|
322
335
|
@apply btn-common bg-gradient-primary hover:opacity-75 text-text-focus;
|
|
323
336
|
}
|
|
337
|
+
.btn-success {
|
|
338
|
+
@apply btn-common bg-gradient-success hover:opacity-75 text-white;
|
|
339
|
+
}
|
|
324
340
|
.btn-alternative {
|
|
325
341
|
@apply btn-common hover:bg-bg-hover text-text-primary border border-border-default;
|
|
326
342
|
}
|
|
@@ -364,28 +380,28 @@ input[type='password'] {
|
|
|
364
380
|
}
|
|
365
381
|
|
|
366
382
|
.tag-common {
|
|
367
|
-
@apply flex min-w-7 px-
|
|
383
|
+
@apply flex min-w-7 px-[10px] py-[2px] leading-5 hover:opacity-70 items-center justify-center;
|
|
368
384
|
}
|
|
369
385
|
.tag-default {
|
|
370
386
|
@apply tag-common bg-bg-hover;
|
|
371
387
|
}
|
|
372
388
|
.tag-success {
|
|
373
|
-
@apply tag-common bg-success/
|
|
389
|
+
@apply tag-common bg-success/20;
|
|
374
390
|
}
|
|
375
391
|
.tag-warning {
|
|
376
|
-
@apply tag-common bg-warning/
|
|
392
|
+
@apply tag-common bg-warning/20;
|
|
377
393
|
}
|
|
378
394
|
.tag-danger {
|
|
379
|
-
@apply tag-common bg-danger/
|
|
395
|
+
@apply tag-common bg-danger/20;
|
|
380
396
|
}
|
|
381
397
|
.tag-critical {
|
|
382
|
-
@apply tag-common bg-critical/
|
|
398
|
+
@apply tag-common bg-critical/20;
|
|
383
399
|
}
|
|
384
400
|
.tag-discovery {
|
|
385
|
-
@apply tag-common bg-discovery/
|
|
401
|
+
@apply tag-common bg-discovery/20;
|
|
386
402
|
}
|
|
387
403
|
.tag-information {
|
|
388
|
-
@apply tag-common bg-information/
|
|
404
|
+
@apply tag-common bg-information/20;
|
|
389
405
|
}
|
|
390
406
|
.tag-default-solid {
|
|
391
407
|
@apply tag-common bg-bg-hover;
|
|
@@ -409,10 +425,10 @@ input[type='password'] {
|
|
|
409
425
|
@apply tag-common bg-information;
|
|
410
426
|
}
|
|
411
427
|
.tag-square {
|
|
412
|
-
@apply rounded px-semi py-small;
|
|
428
|
+
@apply rounded-md px-semi py-small;
|
|
413
429
|
}
|
|
414
430
|
.tag-round {
|
|
415
|
-
@apply rounded-
|
|
431
|
+
@apply rounded-full;
|
|
416
432
|
}
|
|
417
433
|
/* progress bar */
|
|
418
434
|
.progress-bar-container {
|
package/src/lib/styles/theme.css
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
.light_theme {
|
|
2
|
-
--gradient-primary-start:
|
|
3
|
-
--gradient-primary-end:
|
|
2
|
+
--gradient-primary-start: 124 58 237;
|
|
3
|
+
--gradient-primary-end: 79 142 247;
|
|
4
|
+
--gradient-success-start: 16 185 129;
|
|
5
|
+
--gradient-success-end: 45 212 191;
|
|
4
6
|
--bg-primary: 255 255 255;
|
|
5
|
-
--
|
|
7
|
+
--bg-canvas: 245 247 250;
|
|
8
|
+
--primary: 124 58 237;
|
|
6
9
|
--success: 15 140 96;
|
|
7
10
|
--warning: 255 199 0;
|
|
8
11
|
--critical: 254 4 83;
|
|
@@ -18,14 +21,14 @@
|
|
|
18
21
|
--bg-primary-hover: 247 247 247;
|
|
19
22
|
--text-focus: 255 255 255;
|
|
20
23
|
--bg-primary-neutral: 12 14 18;
|
|
21
|
-
--text-selected-primary:
|
|
24
|
+
--text-selected-primary: 124 58 237;
|
|
22
25
|
--button-default: 34 38 47;
|
|
23
26
|
--text-inverse: 255 255 255;
|
|
24
27
|
--bg-error-bold: 215 0 68;
|
|
25
28
|
--text-error: 215 0 68;
|
|
26
|
-
--border-interactive:
|
|
27
|
-
--border-selected:
|
|
28
|
-
--button-primary:
|
|
29
|
+
--border-interactive: 124 58 237;
|
|
30
|
+
--border-selected: 124 58 237;
|
|
31
|
+
--button-primary: 124 58 237;
|
|
29
32
|
--border-strong: 206 207 210;
|
|
30
33
|
--border-secondary-hover: 0 199 205;
|
|
31
34
|
--bg-secondary-hover: 6 59 70;
|
|
@@ -33,10 +36,13 @@
|
|
|
33
36
|
}
|
|
34
37
|
|
|
35
38
|
:root {
|
|
36
|
-
--gradient-primary-start:
|
|
37
|
-
--gradient-primary-end:
|
|
39
|
+
--gradient-primary-start: 124 58 237;
|
|
40
|
+
--gradient-primary-end: 79 142 247;
|
|
41
|
+
--gradient-success-start: 16 185 129;
|
|
42
|
+
--gradient-success-end: 45 212 191;
|
|
38
43
|
--bg-primary: 12 14 18;
|
|
39
|
-
--
|
|
44
|
+
--bg-canvas: 8 9 12;
|
|
45
|
+
--primary: 124 58 237;
|
|
40
46
|
--success: 76 175 80;
|
|
41
47
|
--warning: 255 188 59;
|
|
42
48
|
--critical: 236 25 56;
|
|
@@ -52,14 +58,14 @@
|
|
|
52
58
|
--bg-primary-hover: 34 38 47;
|
|
53
59
|
--text-focus: 255 255 255;
|
|
54
60
|
--bg-primary-neutral: 12 14 18;
|
|
55
|
-
--text-selected-primary:
|
|
61
|
+
--text-selected-primary: 124 58 237;
|
|
56
62
|
--button-default: 236 236 236;
|
|
57
63
|
--text-inverse: 12 14 18;
|
|
58
64
|
--bg-error-bold: 215 0 68;
|
|
59
65
|
--text-error: 255 0 81;
|
|
60
|
-
--border-interactive:
|
|
61
|
-
--border-selected:
|
|
62
|
-
--button-primary:
|
|
66
|
+
--border-interactive: 124 58 237;
|
|
67
|
+
--border-selected: 124 58 237;
|
|
68
|
+
--button-primary: 124 58 237;
|
|
63
69
|
--border-strong: 97 101 108;
|
|
64
70
|
--border-secondary-hover: 0 199 205;
|
|
65
71
|
--bg-secondary-hover: 6 59 70;
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
[ngClass]="{
|
|
4
4
|
'btn-default': buttonVariant === 'default',
|
|
5
5
|
'btn-primary': buttonVariant === 'primary',
|
|
6
|
+
'btn-success': buttonVariant === 'success',
|
|
6
7
|
'btn-alternative': buttonVariant === 'alternative',
|
|
7
8
|
}"
|
|
8
9
|
[disabled]="disabled || loading"
|
|
@@ -220,7 +221,7 @@
|
|
|
220
221
|
[ngClass]="{
|
|
221
222
|
'text-text-inverse': buttonVariant === 'default',
|
|
222
223
|
'text-text-primary': buttonVariant === 'alternative',
|
|
223
|
-
'text-white': buttonVariant === 'primary',
|
|
224
|
+
'text-white': buttonVariant === 'primary' || buttonVariant === 'success',
|
|
224
225
|
}"
|
|
225
226
|
></fx-ui-hero-icon>
|
|
226
227
|
}
|
|
@@ -5,6 +5,16 @@
|
|
|
5
5
|
@if (required) {
|
|
6
6
|
<span class="txt-required">*</span>
|
|
7
7
|
}
|
|
8
|
+
@if (tooltip) {
|
|
9
|
+
<fx-ui-hero-icon
|
|
10
|
+
icon="information-circle"
|
|
11
|
+
[size]="16"
|
|
12
|
+
class="inline-block align-middle ml-0.5 text-text-secondary cursor-help relative -top-px"
|
|
13
|
+
[matTooltip]="tooltip"
|
|
14
|
+
matTooltipPosition="above"
|
|
15
|
+
matTooltipClass="text-text-primary text-xs font-semibold"
|
|
16
|
+
></fx-ui-hero-icon>
|
|
17
|
+
}
|
|
8
18
|
</label>
|
|
9
19
|
}
|
|
10
20
|
|
|
@@ -1,9 +1,22 @@
|
|
|
1
1
|
<div class="w-full rounded-lg overflow-hidden" [class]="class" role="radiogroup">
|
|
2
|
-
@if (label){
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
@if (label) {
|
|
3
|
+
<label class="txt-field-label">
|
|
4
|
+
{{ label }}
|
|
5
|
+
@if (required) {
|
|
6
|
+
<span class="txt-required">*</span>
|
|
7
|
+
}
|
|
8
|
+
@if (tooltip) {
|
|
9
|
+
<fx-ui-hero-icon
|
|
10
|
+
icon="information-circle"
|
|
11
|
+
[size]="16"
|
|
12
|
+
class="inline-block align-middle ml-0.5 text-text-secondary cursor-help relative -top-px"
|
|
13
|
+
[matTooltip]="tooltip"
|
|
14
|
+
matTooltipPosition="above"
|
|
15
|
+
matTooltipClass="text-text-primary text-xs font-semibold"
|
|
16
|
+
></fx-ui-hero-icon>
|
|
17
|
+
}
|
|
18
|
+
</label>
|
|
19
|
+
}
|
|
7
20
|
|
|
8
21
|
<button
|
|
9
22
|
*ngFor="let opt of options"
|
|
@@ -14,22 +27,27 @@
|
|
|
14
27
|
[disabled]="disabled"
|
|
15
28
|
[class.text-gray-900]="value !== opt.value"
|
|
16
29
|
class="flex-1 px-normal w-full flex items-center gap-normal h-10 rounded-md hover:bg-bg-hover transition-all duration-150 disabled:opacity-60 disabled:cursor-not-allowed"
|
|
30
|
+
[matTooltip]="opt.tooltip || ''"
|
|
31
|
+
matTooltipPosition="right"
|
|
32
|
+
matTooltipClass="text-text-primary text-xs font-semibold"
|
|
17
33
|
>
|
|
18
34
|
<span
|
|
19
35
|
[ngClass]="{
|
|
20
36
|
'radio-checked': value === opt.value,
|
|
21
|
-
'radio-uncheck': value !== opt.value
|
|
37
|
+
'radio-uncheck': value !== opt.value,
|
|
22
38
|
}"
|
|
23
39
|
class="radio-container"
|
|
24
40
|
>
|
|
25
|
-
@if(value === opt.value) {
|
|
41
|
+
@if (value === opt.value) {
|
|
42
|
+
<span class="radio-dot"></span>
|
|
43
|
+
}
|
|
26
44
|
</span>
|
|
27
45
|
|
|
28
46
|
<span class="txt-default mb-0">{{ opt.label }}</span>
|
|
29
47
|
</button>
|
|
30
|
-
@if (invalid){
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
48
|
+
@if (invalid) {
|
|
49
|
+
<div class="txt-invalid">
|
|
50
|
+
{{ getErrorMessage(label) }}
|
|
51
|
+
</div>
|
|
34
52
|
}
|
|
35
53
|
</div>
|
|
@@ -5,6 +5,16 @@
|
|
|
5
5
|
@if (required) {
|
|
6
6
|
<span class="txt-required">*</span>
|
|
7
7
|
}
|
|
8
|
+
@if (tooltip) {
|
|
9
|
+
<fx-ui-hero-icon
|
|
10
|
+
icon="information-circle"
|
|
11
|
+
[size]="16"
|
|
12
|
+
class="inline-block align-middle ml-0.5 text-text-secondary cursor-help relative -top-px"
|
|
13
|
+
[matTooltip]="tooltip"
|
|
14
|
+
matTooltipPosition="above"
|
|
15
|
+
matTooltipClass="text-text-primary text-xs font-semibold"
|
|
16
|
+
></fx-ui-hero-icon>
|
|
17
|
+
}
|
|
8
18
|
</label>
|
|
9
19
|
}
|
|
10
20
|
|
package/tailwind.config.js
CHANGED
|
@@ -4,6 +4,8 @@ module.exports = {
|
|
|
4
4
|
colors: {
|
|
5
5
|
'gradient-primary-start': 'rgb(var(--gradient-primary-start) / <alpha-value>)',
|
|
6
6
|
'gradient-primary-end': 'rgb(var(--gradient-primary-end) / <alpha-value>)',
|
|
7
|
+
'gradient-success-start': 'rgb(var(--gradient-success-start) / <alpha-value>)',
|
|
8
|
+
'gradient-success-end': 'rgb(var(--gradient-success-end) / <alpha-value>)',
|
|
7
9
|
primary: 'rgb(var(--primary) / <alpha-value>)',
|
|
8
10
|
success: 'rgb(var(--success) / <alpha-value>)',
|
|
9
11
|
danger: 'rgb(var(--danger) / <alpha-value>)',
|
|
@@ -13,6 +15,7 @@ module.exports = {
|
|
|
13
15
|
information: 'rgb(var(--information) / <alpha-value>)',
|
|
14
16
|
bg: {
|
|
15
17
|
primary: 'rgb(var(--bg-primary) / <alpha-value>)',
|
|
18
|
+
canvas: 'rgb(var(--bg-canvas) / <alpha-value>)',
|
|
16
19
|
hover: 'rgb(var(--bg-primary-hover) / <alpha-value>)',
|
|
17
20
|
error: 'rgb(var(--bg-error-bold) / <alpha-value>)',
|
|
18
21
|
hover2: 'rgb(var(--bg-secondary-hover) / <alpha-value>)',
|
|
@@ -42,12 +45,14 @@ module.exports = {
|
|
|
42
45
|
backgroundImage: {
|
|
43
46
|
'gradient-primary':
|
|
44
47
|
'linear-gradient(135deg, rgb(var(--gradient-primary-start)) 0%, rgb(var(--gradient-primary-end)) 100%)',
|
|
48
|
+
'gradient-success':
|
|
49
|
+
'linear-gradient(135deg, rgb(var(--gradient-success-start)) 0%, rgb(var(--gradient-success-end)) 100%)',
|
|
45
50
|
},
|
|
46
51
|
screens: {
|
|
47
|
-
sm: '
|
|
48
|
-
md: '
|
|
49
|
-
lg: '
|
|
50
|
-
xl: '
|
|
52
|
+
sm: '480px',
|
|
53
|
+
md: '720px',
|
|
54
|
+
lg: '1080px',
|
|
55
|
+
xl: '1920px'
|
|
51
56
|
},
|
|
52
57
|
boxShadow: {
|
|
53
58
|
sm: '0 1px 2px 0 rgb(var(--shadow-color) / 0.05)',
|
package/theme.css
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
.light_theme {
|
|
2
|
-
--gradient-primary-start:
|
|
3
|
-
--gradient-primary-end:
|
|
2
|
+
--gradient-primary-start: 124 58 237;
|
|
3
|
+
--gradient-primary-end: 79 142 247;
|
|
4
|
+
--gradient-success-start: 16 185 129;
|
|
5
|
+
--gradient-success-end: 45 212 191;
|
|
4
6
|
--bg-primary: 255 255 255;
|
|
5
|
-
--
|
|
7
|
+
--bg-canvas: 245 247 250;
|
|
8
|
+
--primary: 124 58 237;
|
|
6
9
|
--success: 15 140 96;
|
|
7
10
|
--warning: 255 199 0;
|
|
8
11
|
--critical: 254 4 83;
|
|
@@ -18,14 +21,14 @@
|
|
|
18
21
|
--bg-primary-hover: 247 247 247;
|
|
19
22
|
--text-focus: 255 255 255;
|
|
20
23
|
--bg-primary-neutral: 12 14 18;
|
|
21
|
-
--text-selected-primary:
|
|
24
|
+
--text-selected-primary: 124 58 237;
|
|
22
25
|
--button-default: 34 38 47;
|
|
23
26
|
--text-inverse: 255 255 255;
|
|
24
27
|
--bg-error-bold: 215 0 68;
|
|
25
28
|
--text-error: 215 0 68;
|
|
26
|
-
--border-interactive:
|
|
27
|
-
--border-selected:
|
|
28
|
-
--button-primary:
|
|
29
|
+
--border-interactive: 124 58 237;
|
|
30
|
+
--border-selected: 124 58 237;
|
|
31
|
+
--button-primary: 124 58 237;
|
|
29
32
|
--border-strong: 206 207 210;
|
|
30
33
|
--border-secondary-hover: 0 199 205;
|
|
31
34
|
--bg-secondary-hover: 6 59 70;
|
|
@@ -33,10 +36,13 @@
|
|
|
33
36
|
}
|
|
34
37
|
|
|
35
38
|
:root {
|
|
36
|
-
--gradient-primary-start:
|
|
37
|
-
--gradient-primary-end:
|
|
39
|
+
--gradient-primary-start: 124 58 237;
|
|
40
|
+
--gradient-primary-end: 79 142 247;
|
|
41
|
+
--gradient-success-start: 16 185 129;
|
|
42
|
+
--gradient-success-end: 45 212 191;
|
|
38
43
|
--bg-primary: 12 14 18;
|
|
39
|
-
--
|
|
44
|
+
--bg-canvas: 8 9 12;
|
|
45
|
+
--primary: 124 58 237;
|
|
40
46
|
--success: 76 175 80;
|
|
41
47
|
--warning: 255 188 59;
|
|
42
48
|
--critical: 236 25 56;
|
|
@@ -52,14 +58,14 @@
|
|
|
52
58
|
--bg-primary-hover: 34 38 47;
|
|
53
59
|
--text-focus: 255 255 255;
|
|
54
60
|
--bg-primary-neutral: 12 14 18;
|
|
55
|
-
--text-selected-primary:
|
|
61
|
+
--text-selected-primary: 124 58 237;
|
|
56
62
|
--button-default: 236 236 236;
|
|
57
63
|
--text-inverse: 12 14 18;
|
|
58
64
|
--bg-error-bold: 215 0 68;
|
|
59
65
|
--text-error: 255 0 81;
|
|
60
|
-
--border-interactive:
|
|
61
|
-
--border-selected:
|
|
62
|
-
--button-primary:
|
|
66
|
+
--border-interactive: 124 58 237;
|
|
67
|
+
--border-selected: 124 58 237;
|
|
68
|
+
--button-primary: 124 58 237;
|
|
63
69
|
--border-strong: 97 101 108;
|
|
64
70
|
--border-secondary-hover: 0 199 205;
|
|
65
71
|
--bg-secondary-hover: 6 59 70;
|