@kksdev/ds-angular 1.3.0 → 1.4.0
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/fesm2022/kksdev-ds-angular.mjs +1620 -13
- package/fesm2022/kksdev-ds-angular.mjs.map +1 -1
- package/index.d.ts +524 -2
- package/package.json +2 -2
- package/src/styles/themes/_dark.scss +59 -0
- package/src/styles/themes/_light.scss +59 -0
- package/src/styles/tokens/_primitives.scss +7 -0
- package/src/styles/tokens/_semantic.scss +89 -0
- package/src/styles/tokens/_tokens.scss +97 -0
|
@@ -33,9 +33,15 @@ $gray-400: #a3a3a3;
|
|
|
33
33
|
$gray-500: #737373;
|
|
34
34
|
$gray-600: #525252;
|
|
35
35
|
$gray-700: #404040;
|
|
36
|
+
$gray-750: #333333; // Intermédiaire dark pour drawer/time-picker
|
|
36
37
|
$gray-800: #262626;
|
|
38
|
+
$gray-850: #1f1f1f; // Intermédiaire très dark pour time-picker
|
|
37
39
|
$gray-900: #171717;
|
|
38
40
|
|
|
41
|
+
// Couleurs de base
|
|
42
|
+
$white: #ffffff;
|
|
43
|
+
$black: #000000;
|
|
44
|
+
|
|
39
45
|
// Couleurs de feedback
|
|
40
46
|
$success: #4caf50;
|
|
41
47
|
$warning: #ff9800;
|
|
@@ -55,6 +61,7 @@ $space-3: 0.75rem;
|
|
|
55
61
|
$space-4: 1rem;
|
|
56
62
|
$space-5: 1.25rem;
|
|
57
63
|
$space-6: 1.5rem;
|
|
64
|
+
$space-7: 1.75rem;
|
|
58
65
|
$space-8: 2rem;
|
|
59
66
|
$space-10: 2.5rem;
|
|
60
67
|
$space-12: 3rem;
|
|
@@ -545,3 +545,92 @@ $chip-remove-icon-size-md: 12px;
|
|
|
545
545
|
$chip-remove-icon-size-lg: 14px;
|
|
546
546
|
|
|
547
547
|
$chip-border-radius: $radius-round;
|
|
548
|
+
|
|
549
|
+
// === EMPTY ===
|
|
550
|
+
|
|
551
|
+
$empty-padding-sm: $space-6;
|
|
552
|
+
$empty-padding-md: $space-8;
|
|
553
|
+
$empty-padding-lg: $space-10;
|
|
554
|
+
|
|
555
|
+
$empty-icon-margin: $space-4;
|
|
556
|
+
$empty-icon-size-sm: 40px;
|
|
557
|
+
$empty-icon-size-md: 56px;
|
|
558
|
+
$empty-icon-size-lg: 80px;
|
|
559
|
+
|
|
560
|
+
$empty-image-margin: $space-4;
|
|
561
|
+
$empty-image-size-sm: 120px;
|
|
562
|
+
$empty-image-size-md: 180px;
|
|
563
|
+
$empty-image-size-lg: 240px;
|
|
564
|
+
|
|
565
|
+
$empty-content-margin: $space-4;
|
|
566
|
+
$empty-title-font-size: $font-size-4;
|
|
567
|
+
$empty-title-font-weight: 600;
|
|
568
|
+
|
|
569
|
+
$empty-description-font-size: $font-size-2;
|
|
570
|
+
$empty-description-max-width: 400px;
|
|
571
|
+
|
|
572
|
+
$empty-actions-gap: $space-3;
|
|
573
|
+
|
|
574
|
+
// === RATING ===
|
|
575
|
+
|
|
576
|
+
$rating-gap-sm: 2px;
|
|
577
|
+
$rating-gap-md: $space-1;
|
|
578
|
+
$rating-gap-lg: $space-2;
|
|
579
|
+
|
|
580
|
+
$rating-icon-size-sm: 16px;
|
|
581
|
+
$rating-icon-size-md: 20px;
|
|
582
|
+
$rating-icon-size-lg: 28px;
|
|
583
|
+
|
|
584
|
+
$rating-hover-scale: 1.1;
|
|
585
|
+
$rating-active-scale: 0.95;
|
|
586
|
+
$rating-disabled-opacity: 0.5;
|
|
587
|
+
|
|
588
|
+
$rating-focus-radius: $radius-1;
|
|
589
|
+
|
|
590
|
+
// === DRAWER ===
|
|
591
|
+
|
|
592
|
+
$drawer-width-sm: 320px;
|
|
593
|
+
$drawer-width-md: 480px;
|
|
594
|
+
$drawer-width-lg: 640px;
|
|
595
|
+
|
|
596
|
+
$drawer-header-padding: $space-4;
|
|
597
|
+
$drawer-body-padding: $space-4;
|
|
598
|
+
$drawer-footer-padding: $space-4;
|
|
599
|
+
|
|
600
|
+
$drawer-title-font-size: $font-size-4;
|
|
601
|
+
$drawer-title-font-weight: 600;
|
|
602
|
+
|
|
603
|
+
$drawer-close-size: 32px;
|
|
604
|
+
$drawer-close-radius: $radius-1;
|
|
605
|
+
|
|
606
|
+
$drawer-backdrop-z-index: 1000;
|
|
607
|
+
$drawer-z-index: 1001;
|
|
608
|
+
|
|
609
|
+
// === TIME PICKER ===
|
|
610
|
+
|
|
611
|
+
$time-picker-panel-padding: $space-2;
|
|
612
|
+
$time-picker-panel-border-radius: $radius-2;
|
|
613
|
+
$time-picker-panel-min-width: 200px;
|
|
614
|
+
|
|
615
|
+
$time-picker-column-gap: $space-2;
|
|
616
|
+
$time-picker-column-min-width: 60px;
|
|
617
|
+
$time-picker-column-period-width: 50px;
|
|
618
|
+
$time-picker-column-max-height: 200px;
|
|
619
|
+
$time-picker-column-border-radius: $radius-1;
|
|
620
|
+
|
|
621
|
+
$time-picker-option-padding: $space-2;
|
|
622
|
+
$time-picker-option-font-size: $font-size-2;
|
|
623
|
+
|
|
624
|
+
$time-picker-scrollbar-width: 6px;
|
|
625
|
+
$time-picker-scrollbar-radius: $radius-1;
|
|
626
|
+
|
|
627
|
+
// === TREE ===
|
|
628
|
+
|
|
629
|
+
$tree-node-padding: $space-1 $space-2;
|
|
630
|
+
$tree-node-gap: $space-2;
|
|
631
|
+
$tree-toggle-size: 20px;
|
|
632
|
+
$tree-icon-size: 16px;
|
|
633
|
+
$tree-label-font-size: $font-size-3;
|
|
634
|
+
$tree-indent: 20px;
|
|
635
|
+
$tree-max-height: 400px;
|
|
636
|
+
$tree-border-radius: $radius-2;
|
|
@@ -75,6 +75,7 @@
|
|
|
75
75
|
--space-4: #{$space-4};
|
|
76
76
|
--space-5: #{$space-5};
|
|
77
77
|
--space-6: #{$space-6};
|
|
78
|
+
--space-7: #{$space-7};
|
|
78
79
|
--space-8: #{$space-8};
|
|
79
80
|
--space-s: var(--space-2);
|
|
80
81
|
--space-l: var(--space-6);
|
|
@@ -108,15 +109,30 @@
|
|
|
108
109
|
--gray-500: #{$gray-500};
|
|
109
110
|
--gray-600: #{$gray-600};
|
|
110
111
|
--gray-700: #{$gray-700};
|
|
112
|
+
--gray-750: #{$gray-750};
|
|
111
113
|
--gray-800: #{$gray-800};
|
|
114
|
+
--gray-850: #{$gray-850};
|
|
112
115
|
--gray-900: #{$gray-900};
|
|
113
116
|
|
|
117
|
+
--white: #{$white};
|
|
118
|
+
--black: #{$black};
|
|
119
|
+
|
|
114
120
|
--success: #{$success};
|
|
115
121
|
--warning: #{$warning};
|
|
116
122
|
--error: #{$error};
|
|
117
123
|
--info: #{$info};
|
|
118
124
|
--focus-color: var(--color-secondary);
|
|
119
125
|
|
|
126
|
+
/* === RGB VALUES (for rgba() with custom opacity) === */
|
|
127
|
+
--color-primary-rgb: 125, 75, 192;
|
|
128
|
+
--color-secondary-rgb: 251, 194, 36;
|
|
129
|
+
--success-rgb: 76, 175, 80;
|
|
130
|
+
--warning-rgb: 255, 152, 0;
|
|
131
|
+
--error-rgb: 244, 67, 54;
|
|
132
|
+
--info-rgb: 33, 150, 243;
|
|
133
|
+
--black-rgb: 0, 0, 0;
|
|
134
|
+
--white-rgb: 255, 255, 255;
|
|
135
|
+
|
|
120
136
|
/* === SIZES & LAYOUT === */
|
|
121
137
|
--container-xs: #{$container-xs};
|
|
122
138
|
--container-sm: #{$container-sm};
|
|
@@ -576,4 +592,85 @@
|
|
|
576
592
|
--chip-remove-icon-size-md: #{$chip-remove-icon-size-md};
|
|
577
593
|
--chip-remove-icon-size-lg: #{$chip-remove-icon-size-lg};
|
|
578
594
|
--chip-border-radius: #{$chip-border-radius};
|
|
595
|
+
|
|
596
|
+
/* === EMPTY === */
|
|
597
|
+
--empty-padding-sm: #{$empty-padding-sm};
|
|
598
|
+
--empty-padding-md: #{$empty-padding-md};
|
|
599
|
+
--empty-padding-lg: #{$empty-padding-lg};
|
|
600
|
+
--empty-icon-margin: #{$empty-icon-margin};
|
|
601
|
+
--empty-icon-size-sm: #{$empty-icon-size-sm};
|
|
602
|
+
--empty-icon-size-md: #{$empty-icon-size-md};
|
|
603
|
+
--empty-icon-size-lg: #{$empty-icon-size-lg};
|
|
604
|
+
--empty-image-margin: #{$empty-image-margin};
|
|
605
|
+
--empty-image-size-sm: #{$empty-image-size-sm};
|
|
606
|
+
--empty-image-size-md: #{$empty-image-size-md};
|
|
607
|
+
--empty-image-size-lg: #{$empty-image-size-lg};
|
|
608
|
+
--empty-content-margin: #{$empty-content-margin};
|
|
609
|
+
--empty-title-font-size: #{$empty-title-font-size};
|
|
610
|
+
--empty-title-font-weight: #{$empty-title-font-weight};
|
|
611
|
+
--empty-description-font-size: #{$empty-description-font-size};
|
|
612
|
+
--empty-description-max-width: #{$empty-description-max-width};
|
|
613
|
+
--empty-actions-gap: #{$empty-actions-gap};
|
|
614
|
+
|
|
615
|
+
/* === RATING === */
|
|
616
|
+
--rating-gap-sm: #{$rating-gap-sm};
|
|
617
|
+
--rating-gap-md: #{$rating-gap-md};
|
|
618
|
+
--rating-gap-lg: #{$rating-gap-lg};
|
|
619
|
+
--rating-icon-size-sm: #{$rating-icon-size-sm};
|
|
620
|
+
--rating-icon-size-md: #{$rating-icon-size-md};
|
|
621
|
+
--rating-icon-size-lg: #{$rating-icon-size-lg};
|
|
622
|
+
--rating-hover-scale: #{$rating-hover-scale};
|
|
623
|
+
--rating-active-scale: #{$rating-active-scale};
|
|
624
|
+
--rating-disabled-opacity: #{$rating-disabled-opacity};
|
|
625
|
+
--rating-focus-radius: #{$rating-focus-radius};
|
|
626
|
+
|
|
627
|
+
/* === DRAWER === */
|
|
628
|
+
--drawer-width-sm: #{$drawer-width-sm};
|
|
629
|
+
--drawer-width-md: #{$drawer-width-md};
|
|
630
|
+
--drawer-width-lg: #{$drawer-width-lg};
|
|
631
|
+
--drawer-header-padding: #{$drawer-header-padding};
|
|
632
|
+
--drawer-body-padding: #{$drawer-body-padding};
|
|
633
|
+
--drawer-footer-padding: #{$drawer-footer-padding};
|
|
634
|
+
--drawer-title-font-size: #{$drawer-title-font-size};
|
|
635
|
+
--drawer-title-font-weight: #{$drawer-title-font-weight};
|
|
636
|
+
--drawer-close-size: #{$drawer-close-size};
|
|
637
|
+
--drawer-close-radius: #{$drawer-close-radius};
|
|
638
|
+
--drawer-backdrop-z-index: #{$drawer-backdrop-z-index};
|
|
639
|
+
--drawer-z-index: #{$drawer-z-index};
|
|
640
|
+
|
|
641
|
+
/* === TIME PICKER === */
|
|
642
|
+
--time-picker-panel-padding: #{$time-picker-panel-padding};
|
|
643
|
+
--time-picker-panel-border-radius: #{$time-picker-panel-border-radius};
|
|
644
|
+
--time-picker-panel-min-width: #{$time-picker-panel-min-width};
|
|
645
|
+
--time-picker-column-gap: #{$time-picker-column-gap};
|
|
646
|
+
--time-picker-column-min-width: #{$time-picker-column-min-width};
|
|
647
|
+
--time-picker-column-period-width: #{$time-picker-column-period-width};
|
|
648
|
+
--time-picker-column-max-height: #{$time-picker-column-max-height};
|
|
649
|
+
--time-picker-column-border-radius: #{$time-picker-column-border-radius};
|
|
650
|
+
--time-picker-option-padding: #{$time-picker-option-padding};
|
|
651
|
+
--time-picker-option-font-size: #{$time-picker-option-font-size};
|
|
652
|
+
--time-picker-scrollbar-width: #{$time-picker-scrollbar-width};
|
|
653
|
+
--time-picker-scrollbar-radius: #{$time-picker-scrollbar-radius};
|
|
654
|
+
|
|
655
|
+
/* === TREE === */
|
|
656
|
+
--tree-node-padding: #{$tree-node-padding};
|
|
657
|
+
--tree-node-gap: #{$tree-node-gap};
|
|
658
|
+
--tree-toggle-size: #{$tree-toggle-size};
|
|
659
|
+
--tree-icon-size: #{$tree-icon-size};
|
|
660
|
+
--tree-label-font-size: #{$tree-label-font-size};
|
|
661
|
+
--tree-indent: #{$tree-indent};
|
|
662
|
+
--tree-max-height: #{$tree-max-height};
|
|
663
|
+
--tree-border-radius: #{$tree-border-radius};
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
/* === ACCESSIBILITY: REDUCED MOTION === */
|
|
667
|
+
@media (prefers-reduced-motion: reduce) {
|
|
668
|
+
*,
|
|
669
|
+
*::before,
|
|
670
|
+
*::after {
|
|
671
|
+
animation-duration: 0.01ms !important;
|
|
672
|
+
animation-iteration-count: 1 !important;
|
|
673
|
+
transition-duration: 0.01ms !important;
|
|
674
|
+
scroll-behavior: auto !important;
|
|
675
|
+
}
|
|
579
676
|
}
|