@incursa/ui-kit 0.3.1 → 0.3.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/README.md +9 -5
- package/dist/inc-design-language.css +145 -0
- package/dist/inc-design-language.css.map +1 -1
- package/dist/inc-design-language.js +363 -13
- package/dist/inc-design-language.min.css +1 -1
- package/dist/inc-design-language.min.css.map +1 -1
- package/package.json +1 -12
- package/src/inc-design-language.js +363 -13
- package/src/inc-design-language.scss +166 -0
|
@@ -379,6 +379,11 @@
|
|
|
379
379
|
|
|
380
380
|
.inc-btn {
|
|
381
381
|
@extend .btn;
|
|
382
|
+
display: inline-flex;
|
|
383
|
+
align-items: center;
|
|
384
|
+
justify-content: center;
|
|
385
|
+
gap: 0.375rem;
|
|
386
|
+
vertical-align: middle;
|
|
382
387
|
|
|
383
388
|
&--primary {
|
|
384
389
|
@extend .btn-primary;
|
|
@@ -576,6 +581,10 @@
|
|
|
576
581
|
.inc-alert {
|
|
577
582
|
@extend .alert;
|
|
578
583
|
|
|
584
|
+
&:empty {
|
|
585
|
+
display: none;
|
|
586
|
+
}
|
|
587
|
+
|
|
579
588
|
&--primary {
|
|
580
589
|
@extend .alert-primary;
|
|
581
590
|
}
|
|
@@ -617,6 +626,10 @@
|
|
|
617
626
|
}
|
|
618
627
|
}
|
|
619
628
|
|
|
629
|
+
.alert:empty {
|
|
630
|
+
display: none;
|
|
631
|
+
}
|
|
632
|
+
|
|
620
633
|
.inc-form {
|
|
621
634
|
&__label {
|
|
622
635
|
@extend .form-label;
|
|
@@ -712,6 +725,37 @@
|
|
|
712
725
|
@extend .form-floating;
|
|
713
726
|
}
|
|
714
727
|
|
|
728
|
+
&__fieldset {
|
|
729
|
+
margin: 0;
|
|
730
|
+
padding: 1rem 1rem 0.875rem;
|
|
731
|
+
border: 1px solid $inc-border-subtle;
|
|
732
|
+
border-radius: $inc-radius-md;
|
|
733
|
+
background: linear-gradient(180deg, rgba($inc-surface-secondary, 0.72), $inc-surface-primary 3rem);
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
&__legend {
|
|
737
|
+
float: none;
|
|
738
|
+
width: auto;
|
|
739
|
+
margin: 0;
|
|
740
|
+
padding: 0 0.375rem;
|
|
741
|
+
color: $body-color;
|
|
742
|
+
font-size: 0.8125rem;
|
|
743
|
+
font-weight: 600;
|
|
744
|
+
line-height: 1.4;
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
&__choices {
|
|
748
|
+
display: flex;
|
|
749
|
+
flex-direction: column;
|
|
750
|
+
gap: 0.75rem;
|
|
751
|
+
|
|
752
|
+
&--inline {
|
|
753
|
+
flex-direction: row;
|
|
754
|
+
flex-wrap: wrap;
|
|
755
|
+
gap: 0.75rem 1rem;
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
|
|
715
759
|
&__field {
|
|
716
760
|
display: flex;
|
|
717
761
|
align-items: center;
|
|
@@ -2171,6 +2215,7 @@
|
|
|
2171
2215
|
align-items: center;
|
|
2172
2216
|
gap: 0.5rem;
|
|
2173
2217
|
padding: 1rem;
|
|
2218
|
+
font: inherit;
|
|
2174
2219
|
color: $inc-ink-600;
|
|
2175
2220
|
border-top-left-radius: $inc-radius-panel;
|
|
2176
2221
|
border-top-right-radius: $inc-radius-panel;
|
|
@@ -2178,6 +2223,8 @@
|
|
|
2178
2223
|
height: 2.5rem;
|
|
2179
2224
|
text-decoration: none;
|
|
2180
2225
|
border: 1px solid $inc-border-subtle;
|
|
2226
|
+
cursor: pointer;
|
|
2227
|
+
appearance: none;
|
|
2181
2228
|
|
|
2182
2229
|
.inc-tab-icon {
|
|
2183
2230
|
color: $inc-brand-800;
|
|
@@ -2234,9 +2281,14 @@
|
|
|
2234
2281
|
align-items: center;
|
|
2235
2282
|
gap: 0.5rem;
|
|
2236
2283
|
padding: 1rem 0.25rem;
|
|
2284
|
+
font: inherit;
|
|
2237
2285
|
color: $inc-text-secondary;
|
|
2286
|
+
background: none;
|
|
2287
|
+
border: 0;
|
|
2238
2288
|
text-decoration: none;
|
|
2239
2289
|
border-bottom: 2px solid transparent;
|
|
2290
|
+
cursor: pointer;
|
|
2291
|
+
appearance: none;
|
|
2240
2292
|
|
|
2241
2293
|
.inc-tab-icon {
|
|
2242
2294
|
color: $inc-brand-800;
|
|
@@ -2584,6 +2636,19 @@ dialog.inc-native-dialog {
|
|
|
2584
2636
|
}
|
|
2585
2637
|
}
|
|
2586
2638
|
|
|
2639
|
+
dialog.inc-native-dialog.inc-native-dialog--drawer {
|
|
2640
|
+
width: min(100vw, 34rem);
|
|
2641
|
+
max-width: 34rem;
|
|
2642
|
+
height: 100dvh;
|
|
2643
|
+
max-height: none;
|
|
2644
|
+
margin: 0 0 0 auto;
|
|
2645
|
+
|
|
2646
|
+
&::backdrop {
|
|
2647
|
+
background: rgba($inc-ink-900, 0.42);
|
|
2648
|
+
backdrop-filter: none;
|
|
2649
|
+
}
|
|
2650
|
+
}
|
|
2651
|
+
|
|
2587
2652
|
.inc-native-dialog__surface {
|
|
2588
2653
|
border: 1px solid $inc-border-subtle;
|
|
2589
2654
|
border-radius: $inc-radius-panel;
|
|
@@ -2592,6 +2657,14 @@ dialog.inc-native-dialog {
|
|
|
2592
2657
|
overflow: hidden;
|
|
2593
2658
|
}
|
|
2594
2659
|
|
|
2660
|
+
dialog.inc-native-dialog.inc-native-dialog--drawer .inc-native-dialog__surface {
|
|
2661
|
+
height: 100%;
|
|
2662
|
+
border-radius: 0;
|
|
2663
|
+
display: flex;
|
|
2664
|
+
flex-direction: column;
|
|
2665
|
+
border-right: 0;
|
|
2666
|
+
}
|
|
2667
|
+
|
|
2595
2668
|
.inc-native-dialog__header {
|
|
2596
2669
|
display: flex;
|
|
2597
2670
|
align-items: center;
|
|
@@ -2612,6 +2685,11 @@ dialog.inc-native-dialog {
|
|
|
2612
2685
|
padding: 1.25rem;
|
|
2613
2686
|
}
|
|
2614
2687
|
|
|
2688
|
+
dialog.inc-native-dialog.inc-native-dialog--drawer .inc-native-dialog__body {
|
|
2689
|
+
flex: 1 1 auto;
|
|
2690
|
+
overflow-y: auto;
|
|
2691
|
+
}
|
|
2692
|
+
|
|
2615
2693
|
.inc-native-dialog__footer {
|
|
2616
2694
|
display: flex;
|
|
2617
2695
|
justify-content: flex-end;
|
|
@@ -2692,6 +2770,91 @@ dialog.inc-native-dialog {
|
|
|
2692
2770
|
}
|
|
2693
2771
|
}
|
|
2694
2772
|
|
|
2773
|
+
.inc-live-region {
|
|
2774
|
+
display: flex;
|
|
2775
|
+
flex-direction: column;
|
|
2776
|
+
gap: 0.75rem;
|
|
2777
|
+
}
|
|
2778
|
+
|
|
2779
|
+
.inc-progress,
|
|
2780
|
+
.inc-meter {
|
|
2781
|
+
width: 100%;
|
|
2782
|
+
height: 0.75rem;
|
|
2783
|
+
overflow: hidden;
|
|
2784
|
+
border: 0;
|
|
2785
|
+
border-radius: 999px;
|
|
2786
|
+
background: $inc-surface-muted;
|
|
2787
|
+
vertical-align: middle;
|
|
2788
|
+
appearance: none;
|
|
2789
|
+
--inc-track-color: #{$inc-surface-muted};
|
|
2790
|
+
--inc-fill-color: #{$primary};
|
|
2791
|
+
}
|
|
2792
|
+
|
|
2793
|
+
.inc-progress {
|
|
2794
|
+
&--sm {
|
|
2795
|
+
height: 0.5rem;
|
|
2796
|
+
}
|
|
2797
|
+
|
|
2798
|
+
&--success {
|
|
2799
|
+
--inc-fill-color: #{$success};
|
|
2800
|
+
}
|
|
2801
|
+
|
|
2802
|
+
&--warning {
|
|
2803
|
+
--inc-fill-color: #{$warning};
|
|
2804
|
+
}
|
|
2805
|
+
|
|
2806
|
+
&--danger {
|
|
2807
|
+
--inc-fill-color: #{$danger};
|
|
2808
|
+
}
|
|
2809
|
+
|
|
2810
|
+
&::-webkit-progress-bar {
|
|
2811
|
+
background: var(--inc-track-color);
|
|
2812
|
+
border-radius: inherit;
|
|
2813
|
+
}
|
|
2814
|
+
|
|
2815
|
+
&::-webkit-progress-value {
|
|
2816
|
+
background: var(--inc-fill-color);
|
|
2817
|
+
border-radius: inherit;
|
|
2818
|
+
}
|
|
2819
|
+
|
|
2820
|
+
&::-moz-progress-bar {
|
|
2821
|
+
background: var(--inc-fill-color);
|
|
2822
|
+
border-radius: inherit;
|
|
2823
|
+
}
|
|
2824
|
+
}
|
|
2825
|
+
|
|
2826
|
+
.inc-meter {
|
|
2827
|
+
&--success {
|
|
2828
|
+
--inc-fill-color: #{$success};
|
|
2829
|
+
}
|
|
2830
|
+
|
|
2831
|
+
&--warning {
|
|
2832
|
+
--inc-fill-color: #{$warning};
|
|
2833
|
+
}
|
|
2834
|
+
|
|
2835
|
+
&--danger {
|
|
2836
|
+
--inc-fill-color: #{$danger};
|
|
2837
|
+
}
|
|
2838
|
+
|
|
2839
|
+
&::-webkit-meter-bar {
|
|
2840
|
+
background: var(--inc-track-color);
|
|
2841
|
+
border: 0;
|
|
2842
|
+
border-radius: inherit;
|
|
2843
|
+
}
|
|
2844
|
+
|
|
2845
|
+
&::-webkit-meter-optimum-value,
|
|
2846
|
+
&::-webkit-meter-suboptimum-value,
|
|
2847
|
+
&::-webkit-meter-even-less-good-value {
|
|
2848
|
+
background: var(--inc-fill-color);
|
|
2849
|
+
border-radius: inherit;
|
|
2850
|
+
}
|
|
2851
|
+
|
|
2852
|
+
&::-moz-meter-bar {
|
|
2853
|
+
background: var(--inc-fill-color);
|
|
2854
|
+
border-radius: inherit;
|
|
2855
|
+
}
|
|
2856
|
+
}
|
|
2857
|
+
|
|
2695
2858
|
.inc-alert-container {
|
|
2696
2859
|
@extend .container-xxl;
|
|
2697
2860
|
position: relative;
|
|
@@ -4106,6 +4269,7 @@ body.inc-offcanvas-open {
|
|
|
4106
4269
|
flex-direction: column;
|
|
4107
4270
|
gap: 0.25rem;
|
|
4108
4271
|
min-width: 0;
|
|
4272
|
+
margin: 0;
|
|
4109
4273
|
|
|
4110
4274
|
&--card {
|
|
4111
4275
|
padding: 0.875rem 1rem;
|
|
@@ -4115,6 +4279,7 @@ body.inc-offcanvas-open {
|
|
|
4115
4279
|
}
|
|
4116
4280
|
|
|
4117
4281
|
&__label {
|
|
4282
|
+
margin: 0;
|
|
4118
4283
|
color: $text-muted;
|
|
4119
4284
|
font-size: 0.75rem;
|
|
4120
4285
|
font-weight: 600;
|
|
@@ -4123,6 +4288,7 @@ body.inc-offcanvas-open {
|
|
|
4123
4288
|
}
|
|
4124
4289
|
|
|
4125
4290
|
&__value {
|
|
4291
|
+
margin: 0;
|
|
4126
4292
|
color: $body-color;
|
|
4127
4293
|
font-size: 0.875rem;
|
|
4128
4294
|
font-weight: 500;
|