@dinofront/design_system 0.1.3 → 1.0.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/dist/components/Divider/Divider.d.ts +2 -0
- package/dist/components/Divider/Divider.types.d.ts +10 -0
- package/dist/components/Divider/index.d.ts +2 -0
- package/dist/components/Progress/Progress.d.ts +2 -0
- package/dist/components/Progress/Progress.types.d.ts +18 -0
- package/dist/components/Progress/index.d.ts +2 -0
- package/dist/components/Skeleton/Skeleton.d.ts +2 -0
- package/dist/components/Skeleton/Skeleton.types.d.ts +22 -0
- package/dist/components/Skeleton/index.d.ts +2 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +343 -185
- package/dist/index.js.map +1 -1
- package/dist/styles.css +220 -0
- package/package.json +3 -2
package/dist/styles.css
CHANGED
|
@@ -93,6 +93,7 @@
|
|
|
93
93
|
--radius-2xl: 20px;
|
|
94
94
|
--radius-3xl: 24px;
|
|
95
95
|
--animate-spin: spin 1s linear infinite;
|
|
96
|
+
--animate-pulse: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
|
96
97
|
--default-transition-duration: 150ms;
|
|
97
98
|
--default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
98
99
|
--default-font-family: var(--font-sans);
|
|
@@ -176,6 +177,7 @@
|
|
|
176
177
|
--color-icon-info: var(--color-blue-600);
|
|
177
178
|
--color-icon-danger: var(--color-red-800);
|
|
178
179
|
--color-icon-warning: var(--color-yellow-800);
|
|
180
|
+
--animate-skeleton-wave: skeleton-wave 1.6s linear infinite;
|
|
179
181
|
}
|
|
180
182
|
}
|
|
181
183
|
@layer base {
|
|
@@ -333,6 +335,9 @@
|
|
|
333
335
|
.pointer-events-none {
|
|
334
336
|
pointer-events: none;
|
|
335
337
|
}
|
|
338
|
+
.invisible {
|
|
339
|
+
visibility: hidden;
|
|
340
|
+
}
|
|
336
341
|
.visible {
|
|
337
342
|
visibility: visible;
|
|
338
343
|
}
|
|
@@ -494,6 +499,9 @@
|
|
|
494
499
|
.mb-2 {
|
|
495
500
|
margin-bottom: calc(var(--spacing) * 2);
|
|
496
501
|
}
|
|
502
|
+
.mb-\[0\.4em\] {
|
|
503
|
+
margin-bottom: 0.4em;
|
|
504
|
+
}
|
|
497
505
|
.-ml-1\.5 {
|
|
498
506
|
margin-left: calc(var(--spacing) * -1.5);
|
|
499
507
|
}
|
|
@@ -574,6 +582,14 @@
|
|
|
574
582
|
width: calc(var(--spacing) * 6);
|
|
575
583
|
height: calc(var(--spacing) * 6);
|
|
576
584
|
}
|
|
585
|
+
.size-10 {
|
|
586
|
+
width: calc(var(--spacing) * 10);
|
|
587
|
+
height: calc(var(--spacing) * 10);
|
|
588
|
+
}
|
|
589
|
+
.size-12 {
|
|
590
|
+
width: calc(var(--spacing) * 12);
|
|
591
|
+
height: calc(var(--spacing) * 12);
|
|
592
|
+
}
|
|
577
593
|
.h-0 {
|
|
578
594
|
height: 0px;
|
|
579
595
|
}
|
|
@@ -640,6 +656,9 @@
|
|
|
640
656
|
.h-48 {
|
|
641
657
|
height: calc(var(--spacing) * 48);
|
|
642
658
|
}
|
|
659
|
+
.h-\[1em\] {
|
|
660
|
+
height: 1em;
|
|
661
|
+
}
|
|
643
662
|
.h-\[2px\] {
|
|
644
663
|
height: 2px;
|
|
645
664
|
}
|
|
@@ -664,6 +683,9 @@
|
|
|
664
683
|
.h-\[600px\] {
|
|
665
684
|
height: 600px;
|
|
666
685
|
}
|
|
686
|
+
.h-auto {
|
|
687
|
+
height: auto;
|
|
688
|
+
}
|
|
667
689
|
.h-full {
|
|
668
690
|
height: 100%;
|
|
669
691
|
}
|
|
@@ -760,6 +782,9 @@
|
|
|
760
782
|
.w-80 {
|
|
761
783
|
width: calc(var(--spacing) * 80);
|
|
762
784
|
}
|
|
785
|
+
.w-90 {
|
|
786
|
+
width: calc(var(--spacing) * 90);
|
|
787
|
+
}
|
|
763
788
|
.w-96 {
|
|
764
789
|
width: calc(var(--spacing) * 96);
|
|
765
790
|
}
|
|
@@ -781,6 +806,9 @@
|
|
|
781
806
|
.w-\[min\(400px\,calc\(100vw-2rem\)\)\] {
|
|
782
807
|
width: min(400px, calc(100vw - 2rem));
|
|
783
808
|
}
|
|
809
|
+
.w-auto {
|
|
810
|
+
width: auto;
|
|
811
|
+
}
|
|
784
812
|
.w-full {
|
|
785
813
|
width: 100%;
|
|
786
814
|
}
|
|
@@ -862,6 +890,9 @@
|
|
|
862
890
|
.border-collapse {
|
|
863
891
|
border-collapse: collapse;
|
|
864
892
|
}
|
|
893
|
+
.origin-\[0\%_55\%\] {
|
|
894
|
+
transform-origin: 0% 55%;
|
|
895
|
+
}
|
|
865
896
|
.-translate-x-1\/2 {
|
|
866
897
|
--tw-translate-x: calc(calc(1 / 2 * 100%) * -1);
|
|
867
898
|
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
@@ -870,6 +901,19 @@
|
|
|
870
901
|
--tw-translate-y: calc(calc(1 / 2 * 100%) * -1);
|
|
871
902
|
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
872
903
|
}
|
|
904
|
+
.scale-100 {
|
|
905
|
+
--tw-scale-x: 100%;
|
|
906
|
+
--tw-scale-y: 100%;
|
|
907
|
+
--tw-scale-z: 100%;
|
|
908
|
+
scale: var(--tw-scale-x) var(--tw-scale-y);
|
|
909
|
+
}
|
|
910
|
+
.scale-y-\[0\.6\] {
|
|
911
|
+
--tw-scale-y: 0.6;
|
|
912
|
+
scale: var(--tw-scale-x) var(--tw-scale-y);
|
|
913
|
+
}
|
|
914
|
+
.-rotate-90 {
|
|
915
|
+
rotate: calc(90deg * -1);
|
|
916
|
+
}
|
|
873
917
|
.rotate-90 {
|
|
874
918
|
rotate: 90deg;
|
|
875
919
|
}
|
|
@@ -879,6 +923,9 @@
|
|
|
879
923
|
.transform {
|
|
880
924
|
transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
|
|
881
925
|
}
|
|
926
|
+
.animate-pulse {
|
|
927
|
+
animation: var(--animate-pulse);
|
|
928
|
+
}
|
|
882
929
|
.animate-spin {
|
|
883
930
|
animation: var(--animate-spin);
|
|
884
931
|
}
|
|
@@ -993,6 +1040,9 @@
|
|
|
993
1040
|
.self-center {
|
|
994
1041
|
align-self: center;
|
|
995
1042
|
}
|
|
1043
|
+
.self-stretch {
|
|
1044
|
+
align-self: stretch;
|
|
1045
|
+
}
|
|
996
1046
|
.truncate {
|
|
997
1047
|
overflow: hidden;
|
|
998
1048
|
text-overflow: ellipsis;
|
|
@@ -1082,6 +1132,10 @@
|
|
|
1082
1132
|
--tw-border-style: dashed;
|
|
1083
1133
|
border-style: dashed;
|
|
1084
1134
|
}
|
|
1135
|
+
.border-solid {
|
|
1136
|
+
--tw-border-style: solid;
|
|
1137
|
+
border-style: solid;
|
|
1138
|
+
}
|
|
1085
1139
|
.\!border-border-default {
|
|
1086
1140
|
border-color: var(--color-border-default) !important;
|
|
1087
1141
|
}
|
|
@@ -1328,6 +1382,15 @@
|
|
|
1328
1382
|
.bg-yellow-600 {
|
|
1329
1383
|
background-color: var(--color-yellow-600);
|
|
1330
1384
|
}
|
|
1385
|
+
.fill-none {
|
|
1386
|
+
fill: none;
|
|
1387
|
+
}
|
|
1388
|
+
.stroke-bg-subtle {
|
|
1389
|
+
stroke: var(--color-bg-subtle);
|
|
1390
|
+
}
|
|
1391
|
+
.stroke-brand-500 {
|
|
1392
|
+
stroke: var(--color-brand-500);
|
|
1393
|
+
}
|
|
1331
1394
|
.object-cover {
|
|
1332
1395
|
object-fit: cover;
|
|
1333
1396
|
}
|
|
@@ -1822,6 +1885,11 @@
|
|
|
1822
1885
|
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
1823
1886
|
transition-duration: var(--tw-duration, var(--default-transition-duration));
|
|
1824
1887
|
}
|
|
1888
|
+
.transition-\[stroke-dashoffset\] {
|
|
1889
|
+
transition-property: stroke-dashoffset;
|
|
1890
|
+
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
1891
|
+
transition-duration: var(--tw-duration, var(--default-transition-duration));
|
|
1892
|
+
}
|
|
1825
1893
|
.transition-\[width\] {
|
|
1826
1894
|
transition-property: width;
|
|
1827
1895
|
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
@@ -1855,6 +1923,14 @@
|
|
|
1855
1923
|
--tw-duration: 200ms;
|
|
1856
1924
|
transition-duration: 200ms;
|
|
1857
1925
|
}
|
|
1926
|
+
.duration-300 {
|
|
1927
|
+
--tw-duration: 300ms;
|
|
1928
|
+
transition-duration: 300ms;
|
|
1929
|
+
}
|
|
1930
|
+
.ease-linear {
|
|
1931
|
+
--tw-ease: linear;
|
|
1932
|
+
transition-timing-function: linear;
|
|
1933
|
+
}
|
|
1858
1934
|
.outline-none {
|
|
1859
1935
|
--tw-outline-style: none;
|
|
1860
1936
|
outline-style: none;
|
|
@@ -1943,6 +2019,51 @@
|
|
|
1943
2019
|
content: var(--tw-content);
|
|
1944
2020
|
background-color: var(--color-brand-500);
|
|
1945
2021
|
}
|
|
2022
|
+
.after\:absolute::after {
|
|
2023
|
+
content: var(--tw-content);
|
|
2024
|
+
position: absolute;
|
|
2025
|
+
}
|
|
2026
|
+
.after\:inset-0::after {
|
|
2027
|
+
content: var(--tw-content);
|
|
2028
|
+
inset: 0px;
|
|
2029
|
+
}
|
|
2030
|
+
.after\:-translate-x-full::after {
|
|
2031
|
+
content: var(--tw-content);
|
|
2032
|
+
--tw-translate-x: -100%;
|
|
2033
|
+
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
2034
|
+
}
|
|
2035
|
+
.after\:animate-skeleton-wave::after {
|
|
2036
|
+
content: var(--tw-content);
|
|
2037
|
+
animation: var(--animate-skeleton-wave);
|
|
2038
|
+
}
|
|
2039
|
+
.after\:bg-gradient-to-r::after {
|
|
2040
|
+
content: var(--tw-content);
|
|
2041
|
+
--tw-gradient-position: to right in oklab;
|
|
2042
|
+
background-image: linear-gradient(var(--tw-gradient-stops));
|
|
2043
|
+
}
|
|
2044
|
+
.after\:from-transparent::after {
|
|
2045
|
+
content: var(--tw-content);
|
|
2046
|
+
--tw-gradient-from: transparent;
|
|
2047
|
+
--tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
|
|
2048
|
+
}
|
|
2049
|
+
.after\:via-white\/60::after {
|
|
2050
|
+
content: var(--tw-content);
|
|
2051
|
+
--tw-gradient-via: color-mix(in srgb, #fefefe 60%, transparent);
|
|
2052
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
2053
|
+
--tw-gradient-via: color-mix(in oklab, var(--color-white) 60%, transparent);
|
|
2054
|
+
}
|
|
2055
|
+
--tw-gradient-via-stops: var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);
|
|
2056
|
+
--tw-gradient-stops: var(--tw-gradient-via-stops);
|
|
2057
|
+
}
|
|
2058
|
+
.after\:to-transparent::after {
|
|
2059
|
+
content: var(--tw-content);
|
|
2060
|
+
--tw-gradient-to: transparent;
|
|
2061
|
+
--tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
|
|
2062
|
+
}
|
|
2063
|
+
.after\:content-\[\'\'\]::after {
|
|
2064
|
+
--tw-content: '';
|
|
2065
|
+
content: var(--tw-content);
|
|
2066
|
+
}
|
|
1946
2067
|
.last\:border-r-0:last-child {
|
|
1947
2068
|
border-right-style: var(--tw-border-style);
|
|
1948
2069
|
border-right-width: 0px;
|
|
@@ -2230,6 +2351,15 @@
|
|
|
2230
2351
|
.dark\:peer-checked\:bg-brand-500:where(.dark, .dark *):is(:where(.peer):checked ~ *) {
|
|
2231
2352
|
background-color: var(--color-brand-500);
|
|
2232
2353
|
}
|
|
2354
|
+
.dark\:after\:via-white\/10:where(.dark, .dark *)::after {
|
|
2355
|
+
content: var(--tw-content);
|
|
2356
|
+
--tw-gradient-via: color-mix(in srgb, #fefefe 10%, transparent);
|
|
2357
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
2358
|
+
--tw-gradient-via: color-mix(in oklab, var(--color-white) 10%, transparent);
|
|
2359
|
+
}
|
|
2360
|
+
--tw-gradient-via-stops: var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);
|
|
2361
|
+
--tw-gradient-stops: var(--tw-gradient-via-stops);
|
|
2362
|
+
}
|
|
2233
2363
|
.\[\&_svg\]\:opacity-0 svg {
|
|
2234
2364
|
opacity: 0%;
|
|
2235
2365
|
}
|
|
@@ -2348,6 +2478,17 @@
|
|
|
2348
2478
|
font-family: var(--font-sans);
|
|
2349
2479
|
}
|
|
2350
2480
|
}
|
|
2481
|
+
@keyframes skeleton-wave {
|
|
2482
|
+
0% {
|
|
2483
|
+
transform: translateX(-100%);
|
|
2484
|
+
}
|
|
2485
|
+
60% {
|
|
2486
|
+
transform: translateX(100%);
|
|
2487
|
+
}
|
|
2488
|
+
100% {
|
|
2489
|
+
transform: translateX(100%);
|
|
2490
|
+
}
|
|
2491
|
+
}
|
|
2351
2492
|
@property --tw-translate-x {
|
|
2352
2493
|
syntax: "*";
|
|
2353
2494
|
inherits: false;
|
|
@@ -2363,6 +2504,21 @@
|
|
|
2363
2504
|
inherits: false;
|
|
2364
2505
|
initial-value: 0;
|
|
2365
2506
|
}
|
|
2507
|
+
@property --tw-scale-x {
|
|
2508
|
+
syntax: "*";
|
|
2509
|
+
inherits: false;
|
|
2510
|
+
initial-value: 1;
|
|
2511
|
+
}
|
|
2512
|
+
@property --tw-scale-y {
|
|
2513
|
+
syntax: "*";
|
|
2514
|
+
inherits: false;
|
|
2515
|
+
initial-value: 1;
|
|
2516
|
+
}
|
|
2517
|
+
@property --tw-scale-z {
|
|
2518
|
+
syntax: "*";
|
|
2519
|
+
inherits: false;
|
|
2520
|
+
initial-value: 1;
|
|
2521
|
+
}
|
|
2366
2522
|
@property --tw-rotate-x {
|
|
2367
2523
|
syntax: "*";
|
|
2368
2524
|
inherits: false;
|
|
@@ -2557,22 +2713,76 @@
|
|
|
2557
2713
|
syntax: "*";
|
|
2558
2714
|
inherits: false;
|
|
2559
2715
|
}
|
|
2716
|
+
@property --tw-ease {
|
|
2717
|
+
syntax: "*";
|
|
2718
|
+
inherits: false;
|
|
2719
|
+
}
|
|
2560
2720
|
@property --tw-content {
|
|
2561
2721
|
syntax: "*";
|
|
2562
2722
|
initial-value: "";
|
|
2563
2723
|
inherits: false;
|
|
2564
2724
|
}
|
|
2725
|
+
@property --tw-gradient-position {
|
|
2726
|
+
syntax: "*";
|
|
2727
|
+
inherits: false;
|
|
2728
|
+
}
|
|
2729
|
+
@property --tw-gradient-from {
|
|
2730
|
+
syntax: "<color>";
|
|
2731
|
+
inherits: false;
|
|
2732
|
+
initial-value: #0000;
|
|
2733
|
+
}
|
|
2734
|
+
@property --tw-gradient-via {
|
|
2735
|
+
syntax: "<color>";
|
|
2736
|
+
inherits: false;
|
|
2737
|
+
initial-value: #0000;
|
|
2738
|
+
}
|
|
2739
|
+
@property --tw-gradient-to {
|
|
2740
|
+
syntax: "<color>";
|
|
2741
|
+
inherits: false;
|
|
2742
|
+
initial-value: #0000;
|
|
2743
|
+
}
|
|
2744
|
+
@property --tw-gradient-stops {
|
|
2745
|
+
syntax: "*";
|
|
2746
|
+
inherits: false;
|
|
2747
|
+
}
|
|
2748
|
+
@property --tw-gradient-via-stops {
|
|
2749
|
+
syntax: "*";
|
|
2750
|
+
inherits: false;
|
|
2751
|
+
}
|
|
2752
|
+
@property --tw-gradient-from-position {
|
|
2753
|
+
syntax: "<length-percentage>";
|
|
2754
|
+
inherits: false;
|
|
2755
|
+
initial-value: 0%;
|
|
2756
|
+
}
|
|
2757
|
+
@property --tw-gradient-via-position {
|
|
2758
|
+
syntax: "<length-percentage>";
|
|
2759
|
+
inherits: false;
|
|
2760
|
+
initial-value: 50%;
|
|
2761
|
+
}
|
|
2762
|
+
@property --tw-gradient-to-position {
|
|
2763
|
+
syntax: "<length-percentage>";
|
|
2764
|
+
inherits: false;
|
|
2765
|
+
initial-value: 100%;
|
|
2766
|
+
}
|
|
2565
2767
|
@keyframes spin {
|
|
2566
2768
|
to {
|
|
2567
2769
|
transform: rotate(360deg);
|
|
2568
2770
|
}
|
|
2569
2771
|
}
|
|
2772
|
+
@keyframes pulse {
|
|
2773
|
+
50% {
|
|
2774
|
+
opacity: 0.5;
|
|
2775
|
+
}
|
|
2776
|
+
}
|
|
2570
2777
|
@layer properties {
|
|
2571
2778
|
@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
|
|
2572
2779
|
*, ::before, ::after, ::backdrop {
|
|
2573
2780
|
--tw-translate-x: 0;
|
|
2574
2781
|
--tw-translate-y: 0;
|
|
2575
2782
|
--tw-translate-z: 0;
|
|
2783
|
+
--tw-scale-x: 1;
|
|
2784
|
+
--tw-scale-y: 1;
|
|
2785
|
+
--tw-scale-z: 1;
|
|
2576
2786
|
--tw-rotate-x: initial;
|
|
2577
2787
|
--tw-rotate-y: initial;
|
|
2578
2788
|
--tw-rotate-z: initial;
|
|
@@ -2618,7 +2828,17 @@
|
|
|
2618
2828
|
--tw-drop-shadow-alpha: 100%;
|
|
2619
2829
|
--tw-drop-shadow-size: initial;
|
|
2620
2830
|
--tw-duration: initial;
|
|
2831
|
+
--tw-ease: initial;
|
|
2621
2832
|
--tw-content: "";
|
|
2833
|
+
--tw-gradient-position: initial;
|
|
2834
|
+
--tw-gradient-from: #0000;
|
|
2835
|
+
--tw-gradient-via: #0000;
|
|
2836
|
+
--tw-gradient-to: #0000;
|
|
2837
|
+
--tw-gradient-stops: initial;
|
|
2838
|
+
--tw-gradient-via-stops: initial;
|
|
2839
|
+
--tw-gradient-from-position: 0%;
|
|
2840
|
+
--tw-gradient-via-position: 50%;
|
|
2841
|
+
--tw-gradient-to-position: 100%;
|
|
2622
2842
|
}
|
|
2623
2843
|
}
|
|
2624
2844
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dinofront/design_system",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Enterprise React component library and design system built on Tailwind CSS.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -66,7 +66,8 @@
|
|
|
66
66
|
"typescript": "^5.9.3",
|
|
67
67
|
"typescript-eslint": "^8.64.0",
|
|
68
68
|
"vite": "^8.1.5",
|
|
69
|
-
"vite-plugin-dts": "^5.0.3"
|
|
69
|
+
"vite-plugin-dts": "^5.0.3",
|
|
70
|
+
"@types/node": "^26.1.1"
|
|
70
71
|
},
|
|
71
72
|
"engines": {
|
|
72
73
|
"node": ">=18"
|