shadcn-ui-react 0.3.6 → 0.3.8

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/style.css CHANGED
@@ -43,6 +43,8 @@
43
43
  --text-xs--line-height: calc(1 / 0.75);
44
44
  --text-sm: 0.875rem;
45
45
  --text-sm--line-height: calc(1.25 / 0.875);
46
+ --text-base: 1rem;
47
+ --text-base--line-height: calc(1.5 / 1);
46
48
  --text-lg: 1.125rem;
47
49
  --text-lg--line-height: calc(1.75 / 1.125);
48
50
  --text-xl: 1.25rem;
@@ -56,11 +58,11 @@
56
58
  --tracking-tight: -0.025em;
57
59
  --tracking-widest: 0.1em;
58
60
  --leading-relaxed: 1.625;
59
- --drop-shadow-xl: 0 9px 7px rgb(0 0 0 / 0.1);
60
61
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
61
62
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
62
63
  --animate-spin: spin 1s linear infinite;
63
64
  --animate-pulse: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
65
+ --blur-sm: 8px;
64
66
  --default-transition-duration: 150ms;
65
67
  --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
66
68
  --default-font-family: var(--font-sans);
@@ -347,6 +349,9 @@
347
349
  .right-2 {
348
350
  right: calc(var(--spacing) * 2);
349
351
  }
352
+ .right-3 {
353
+ right: calc(var(--spacing) * 3);
354
+ }
350
355
  .right-4 {
351
356
  right: calc(var(--spacing) * 4);
352
357
  }
@@ -374,6 +379,9 @@
374
379
  .left-2 {
375
380
  left: calc(var(--spacing) * 2);
376
381
  }
382
+ .left-3 {
383
+ left: calc(var(--spacing) * 3);
384
+ }
377
385
  .left-\[50\%\] {
378
386
  left: 50%;
379
387
  }
@@ -455,6 +463,9 @@
455
463
  .ml-\[1px\] {
456
464
  margin-left: 1px;
457
465
  }
466
+ .ml-\[4px\] {
467
+ margin-left: 4px;
468
+ }
458
469
  .ml-auto {
459
470
  margin-left: auto;
460
471
  }
@@ -470,6 +481,9 @@
470
481
  .hidden {
471
482
  display: none;
472
483
  }
484
+ .inline {
485
+ display: inline;
486
+ }
473
487
  .inline-flex {
474
488
  display: inline-flex;
475
489
  }
@@ -519,6 +533,12 @@
519
533
  .h-10 {
520
534
  height: calc(var(--spacing) * 10);
521
535
  }
536
+ .h-11 {
537
+ height: calc(var(--spacing) * 11);
538
+ }
539
+ .h-12 {
540
+ height: calc(var(--spacing) * 12);
541
+ }
522
542
  .h-24 {
523
543
  height: calc(var(--spacing) * 24);
524
544
  }
@@ -750,6 +770,9 @@
750
770
  .gap-2 {
751
771
  gap: calc(var(--spacing) * 2);
752
772
  }
773
+ .gap-3 {
774
+ gap: calc(var(--spacing) * 3);
775
+ }
753
776
  .gap-4 {
754
777
  gap: calc(var(--spacing) * 4);
755
778
  }
@@ -788,6 +811,13 @@
788
811
  margin-block-end: calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)));
789
812
  }
790
813
  }
814
+ .space-y-8 {
815
+ :where(& > :not(:last-child)) {
816
+ --tw-space-y-reverse: 0;
817
+ margin-block-start: calc(calc(var(--spacing) * 8) * var(--tw-space-y-reverse));
818
+ margin-block-end: calc(calc(var(--spacing) * 8) * calc(1 - var(--tw-space-y-reverse)));
819
+ }
820
+ }
791
821
  .space-x-1 {
792
822
  :where(& > :not(:last-child)) {
793
823
  --tw-space-x-reverse: 0;
@@ -829,6 +859,9 @@
829
859
  .rounded-md {
830
860
  border-radius: calc(var(--radius) - 2px);
831
861
  }
862
+ .rounded-none {
863
+ border-radius: 0;
864
+ }
832
865
  .rounded-sm {
833
866
  border-radius: calc(var(--radius) - 4px);
834
867
  }
@@ -846,6 +879,10 @@
846
879
  border-style: var(--tw-border-style);
847
880
  border-width: 1px;
848
881
  }
882
+ .border-0 {
883
+ border-style: var(--tw-border-style);
884
+ border-width: 0px;
885
+ }
849
886
  .border-2 {
850
887
  border-style: var(--tw-border-style);
851
888
  border-width: 2px;
@@ -877,6 +914,9 @@
877
914
  .border-blue-500 {
878
915
  border-color: var(--color-blue-500);
879
916
  }
917
+ .border-border {
918
+ border-color: var(--border);
919
+ }
880
920
  .border-destructive {
881
921
  border-color: var(--destructive);
882
922
  }
@@ -943,6 +983,9 @@
943
983
  .bg-gray-300 {
944
984
  background-color: var(--color-gray-300);
945
985
  }
986
+ .bg-input {
987
+ background-color: var(--input);
988
+ }
946
989
  .bg-muted {
947
990
  background-color: var(--muted);
948
991
  }
@@ -952,6 +995,18 @@
952
995
  background-color: color-mix(in oklab, var(--muted) 50%, transparent);
953
996
  }
954
997
  }
998
+ .bg-muted\/60 {
999
+ background-color: var(--muted);
1000
+ @supports (color: color-mix(in lab, red, red)) {
1001
+ background-color: color-mix(in oklab, var(--muted) 60%, transparent);
1002
+ }
1003
+ }
1004
+ .bg-muted\/70 {
1005
+ background-color: var(--muted);
1006
+ @supports (color: color-mix(in lab, red, red)) {
1007
+ background-color: color-mix(in oklab, var(--muted) 70%, transparent);
1008
+ }
1009
+ }
955
1010
  .bg-popover {
956
1011
  background-color: var(--popover);
957
1012
  }
@@ -1007,6 +1062,9 @@
1007
1062
  .p-\[1px\] {
1008
1063
  padding: 1px;
1009
1064
  }
1065
+ .px-0 {
1066
+ padding-inline: calc(var(--spacing) * 0);
1067
+ }
1010
1068
  .px-2 {
1011
1069
  padding-inline: calc(var(--spacing) * 2);
1012
1070
  }
@@ -1019,9 +1077,15 @@
1019
1077
  .px-4 {
1020
1078
  padding-inline: calc(var(--spacing) * 4);
1021
1079
  }
1080
+ .px-5 {
1081
+ padding-inline: calc(var(--spacing) * 5);
1082
+ }
1022
1083
  .px-8 {
1023
1084
  padding-inline: calc(var(--spacing) * 8);
1024
1085
  }
1086
+ .px-\[0\.9rem\] {
1087
+ padding-inline: 0.9rem;
1088
+ }
1025
1089
  .py-0\.5 {
1026
1090
  padding-block: calc(var(--spacing) * 0.5);
1027
1091
  }
@@ -1040,6 +1104,9 @@
1040
1104
  .py-4 {
1041
1105
  padding-block: calc(var(--spacing) * 4);
1042
1106
  }
1107
+ .py-5 {
1108
+ padding-block: calc(var(--spacing) * 5);
1109
+ }
1043
1110
  .py-6 {
1044
1111
  padding-block: calc(var(--spacing) * 6);
1045
1112
  }
@@ -1067,6 +1134,12 @@
1067
1134
  .pr-8 {
1068
1135
  padding-right: calc(var(--spacing) * 8);
1069
1136
  }
1137
+ .pr-10 {
1138
+ padding-right: calc(var(--spacing) * 10);
1139
+ }
1140
+ .pr-12 {
1141
+ padding-right: calc(var(--spacing) * 12);
1142
+ }
1070
1143
  .pb-4 {
1071
1144
  padding-bottom: calc(var(--spacing) * 4);
1072
1145
  }
@@ -1082,6 +1155,12 @@
1082
1155
  .pl-8 {
1083
1156
  padding-left: calc(var(--spacing) * 8);
1084
1157
  }
1158
+ .pl-10 {
1159
+ padding-left: calc(var(--spacing) * 10);
1160
+ }
1161
+ .pl-12 {
1162
+ padding-left: calc(var(--spacing) * 12);
1163
+ }
1085
1164
  .text-center {
1086
1165
  text-align: center;
1087
1166
  }
@@ -1091,6 +1170,10 @@
1091
1170
  .align-middle {
1092
1171
  vertical-align: middle;
1093
1172
  }
1173
+ .text-base {
1174
+ font-size: var(--text-base);
1175
+ line-height: var(--tw-leading, var(--text-base--line-height));
1176
+ }
1094
1177
  .text-lg {
1095
1178
  font-size: var(--text-lg);
1096
1179
  line-height: var(--tw-leading, var(--text-lg--line-height));
@@ -1110,6 +1193,12 @@
1110
1193
  .text-\[0\.8rem\] {
1111
1194
  font-size: 0.8rem;
1112
1195
  }
1196
+ .text-\[1\.15rem\] {
1197
+ font-size: 1.15rem;
1198
+ }
1199
+ .text-\[1rem\] {
1200
+ font-size: 1rem;
1201
+ }
1113
1202
  .leading-none {
1114
1203
  --tw-leading: 1;
1115
1204
  line-height: 1;
@@ -1213,6 +1302,9 @@
1213
1302
  .opacity-70 {
1214
1303
  opacity: 70%;
1215
1304
  }
1305
+ .opacity-80 {
1306
+ opacity: 80%;
1307
+ }
1216
1308
  .opacity-90 {
1217
1309
  opacity: 90%;
1218
1310
  }
@@ -1261,6 +1353,15 @@
1261
1353
  var(--tw-ring-shadow),
1262
1354
  var(--tw-shadow);
1263
1355
  }
1356
+ .shadow-none {
1357
+ --tw-shadow: 0 0 #0000;
1358
+ box-shadow:
1359
+ var(--tw-inset-shadow),
1360
+ var(--tw-inset-ring-shadow),
1361
+ var(--tw-ring-offset-shadow),
1362
+ var(--tw-ring-shadow),
1363
+ var(--tw-shadow);
1364
+ }
1264
1365
  .shadow-sm {
1265
1366
  --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
1266
1367
  box-shadow:
@@ -1288,6 +1389,9 @@
1288
1389
  var(--tw-ring-shadow),
1289
1390
  var(--tw-shadow);
1290
1391
  }
1392
+ .ring-destructive {
1393
+ --tw-ring-color: var(--destructive);
1394
+ }
1291
1395
  .ring-ring {
1292
1396
  --tw-ring-color: var(--ring);
1293
1397
  }
@@ -1298,10 +1402,9 @@
1298
1402
  outline-style: var(--tw-outline-style);
1299
1403
  outline-width: 1px;
1300
1404
  }
1301
- .drop-shadow-xl {
1302
- --tw-drop-shadow-size: drop-shadow(0 9px 7px var(--tw-drop-shadow-color, rgb(0 0 0 / 0.1)));
1303
- --tw-drop-shadow: drop-shadow(var(--drop-shadow-xl));
1304
- filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
1405
+ .backdrop-blur-sm {
1406
+ --tw-backdrop-blur: blur(var(--blur-sm));
1407
+ backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
1305
1408
  }
1306
1409
  .transition {
1307
1410
  transition-property:
@@ -1504,29 +1607,6 @@
1504
1607
  opacity: 70%;
1505
1608
  }
1506
1609
  }
1507
- .file\:border-0 {
1508
- &::file-selector-button {
1509
- border-style: var(--tw-border-style);
1510
- border-width: 0px;
1511
- }
1512
- }
1513
- .file\:bg-transparent {
1514
- &::file-selector-button {
1515
- background-color: transparent;
1516
- }
1517
- }
1518
- .file\:text-sm {
1519
- &::file-selector-button {
1520
- font-size: var(--text-sm);
1521
- line-height: var(--tw-leading, var(--text-sm--line-height));
1522
- }
1523
- }
1524
- .file\:font-medium {
1525
- &::file-selector-button {
1526
- --tw-font-weight: var(--font-weight-medium);
1527
- font-weight: var(--font-weight-medium);
1528
- }
1529
- }
1530
1610
  .placeholder\:text-muted-foreground {
1531
1611
  &::-moz-placeholder {
1532
1612
  color: var(--muted-foreground);
@@ -1601,6 +1681,16 @@
1601
1681
  }
1602
1682
  }
1603
1683
  }
1684
+ .hover\:border-primary\/60 {
1685
+ &:hover {
1686
+ @media (hover: hover) {
1687
+ border-color: var(--primary);
1688
+ @supports (color: color-mix(in lab, red, red)) {
1689
+ border-color: color-mix(in oklab, var(--primary) 60%, transparent);
1690
+ }
1691
+ }
1692
+ }
1693
+ }
1604
1694
  .hover\:bg-accent {
1605
1695
  &:hover {
1606
1696
  @media (hover: hover) {
@@ -1777,11 +1867,43 @@
1777
1867
  }
1778
1868
  }
1779
1869
  }
1870
+ .focus\:border-b-2 {
1871
+ &:focus {
1872
+ border-bottom-style: var(--tw-border-style);
1873
+ border-bottom-width: 2px;
1874
+ }
1875
+ }
1876
+ .focus\:border-destructive {
1877
+ &:focus {
1878
+ border-color: var(--destructive);
1879
+ }
1880
+ }
1881
+ .focus\:border-primary {
1882
+ &:focus {
1883
+ border-color: var(--primary);
1884
+ }
1885
+ }
1780
1886
  .focus\:bg-accent {
1781
1887
  &:focus {
1782
1888
  background-color: var(--accent);
1783
1889
  }
1784
1890
  }
1891
+ .focus\:bg-input\/70 {
1892
+ &:focus {
1893
+ background-color: var(--input);
1894
+ @supports (color: color-mix(in lab, red, red)) {
1895
+ background-color: color-mix(in oklab, var(--input) 70%, transparent);
1896
+ }
1897
+ }
1898
+ }
1899
+ .focus\:bg-input\/80 {
1900
+ &:focus {
1901
+ background-color: var(--input);
1902
+ @supports (color: color-mix(in lab, red, red)) {
1903
+ background-color: color-mix(in oklab, var(--input) 80%, transparent);
1904
+ }
1905
+ }
1906
+ }
1785
1907
  .focus\:bg-primary {
1786
1908
  &:focus {
1787
1909
  background-color: var(--primary);
@@ -1797,11 +1919,27 @@
1797
1919
  color: var(--primary-foreground);
1798
1920
  }
1799
1921
  }
1922
+ .focus\:underline {
1923
+ &:focus {
1924
+ text-decoration-line: underline;
1925
+ }
1926
+ }
1800
1927
  .focus\:opacity-100 {
1801
1928
  &:focus {
1802
1929
  opacity: 100%;
1803
1930
  }
1804
1931
  }
1932
+ .focus\:ring-0 {
1933
+ &:focus {
1934
+ --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
1935
+ box-shadow:
1936
+ var(--tw-inset-shadow),
1937
+ var(--tw-inset-ring-shadow),
1938
+ var(--tw-ring-offset-shadow),
1939
+ var(--tw-ring-shadow),
1940
+ var(--tw-shadow);
1941
+ }
1942
+ }
1805
1943
  .focus\:ring-1 {
1806
1944
  &:focus {
1807
1945
  --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
@@ -1824,6 +1962,30 @@
1824
1962
  var(--tw-shadow);
1825
1963
  }
1826
1964
  }
1965
+ .focus\:ring-destructive\/20 {
1966
+ &:focus {
1967
+ --tw-ring-color: var(--destructive);
1968
+ @supports (color: color-mix(in lab, red, red)) {
1969
+ --tw-ring-color: color-mix(in oklab, var(--destructive) 20%, transparent);
1970
+ }
1971
+ }
1972
+ }
1973
+ .focus\:ring-destructive\/40 {
1974
+ &:focus {
1975
+ --tw-ring-color: var(--destructive);
1976
+ @supports (color: color-mix(in lab, red, red)) {
1977
+ --tw-ring-color: color-mix(in oklab, var(--destructive) 40%, transparent);
1978
+ }
1979
+ }
1980
+ }
1981
+ .focus\:ring-primary\/20 {
1982
+ &:focus {
1983
+ --tw-ring-color: var(--primary);
1984
+ @supports (color: color-mix(in lab, red, red)) {
1985
+ --tw-ring-color: color-mix(in oklab, var(--primary) 20%, transparent);
1986
+ }
1987
+ }
1988
+ }
1827
1989
  .focus\:ring-ring {
1828
1990
  &:focus {
1829
1991
  --tw-ring-color: var(--ring);
@@ -2470,6 +2632,11 @@
2470
2632
  max-width: var(--container-sm);
2471
2633
  }
2472
2634
  }
2635
+ .sm\:grid-cols-2 {
2636
+ @media (width >= 40rem) {
2637
+ grid-template-columns: repeat(2, minmax(0, 1fr));
2638
+ }
2639
+ }
2473
2640
  .sm\:flex-col {
2474
2641
  @media (width >= 40rem) {
2475
2642
  flex-direction: column;
@@ -2595,6 +2762,11 @@
2595
2762
  width: 250px;
2596
2763
  }
2597
2764
  }
2765
+ .lg\:grid-cols-3 {
2766
+ @media (width >= 64rem) {
2767
+ grid-template-columns: repeat(3, minmax(0, 1fr));
2768
+ }
2769
+ }
2598
2770
  .lg\:gap-8 {
2599
2771
  @media (width >= 64rem) {
2600
2772
  gap: calc(var(--spacing) * 8);
@@ -2956,19 +3128,15 @@
2956
3128
  @property --tw-ring-offset-color { syntax: "*"; inherits: false; initial-value: #fff; }
2957
3129
  @property --tw-ring-offset-shadow { syntax: "*"; inherits: false; initial-value: 0 0 #0000; }
2958
3130
  @property --tw-outline-style { syntax: "*"; inherits: false; initial-value: solid; }
2959
- @property --tw-blur { syntax: "*"; inherits: false; }
2960
- @property --tw-brightness { syntax: "*"; inherits: false; }
2961
- @property --tw-contrast { syntax: "*"; inherits: false; }
2962
- @property --tw-grayscale { syntax: "*"; inherits: false; }
2963
- @property --tw-hue-rotate { syntax: "*"; inherits: false; }
2964
- @property --tw-invert { syntax: "*"; inherits: false; }
2965
- @property --tw-opacity { syntax: "*"; inherits: false; }
2966
- @property --tw-saturate { syntax: "*"; inherits: false; }
2967
- @property --tw-sepia { syntax: "*"; inherits: false; }
2968
- @property --tw-drop-shadow { syntax: "*"; inherits: false; }
2969
- @property --tw-drop-shadow-color { syntax: "*"; inherits: false; }
2970
- @property --tw-drop-shadow-alpha { syntax: "<percentage>"; inherits: false; initial-value: 100%; }
2971
- @property --tw-drop-shadow-size { syntax: "*"; inherits: false; }
3131
+ @property --tw-backdrop-blur { syntax: "*"; inherits: false; }
3132
+ @property --tw-backdrop-brightness { syntax: "*"; inherits: false; }
3133
+ @property --tw-backdrop-contrast { syntax: "*"; inherits: false; }
3134
+ @property --tw-backdrop-grayscale { syntax: "*"; inherits: false; }
3135
+ @property --tw-backdrop-hue-rotate { syntax: "*"; inherits: false; }
3136
+ @property --tw-backdrop-invert { syntax: "*"; inherits: false; }
3137
+ @property --tw-backdrop-opacity { syntax: "*"; inherits: false; }
3138
+ @property --tw-backdrop-saturate { syntax: "*"; inherits: false; }
3139
+ @property --tw-backdrop-sepia { syntax: "*"; inherits: false; }
2972
3140
  @property --tw-duration { syntax: "*"; inherits: false; }
2973
3141
  @property --tw-ease { syntax: "*"; inherits: false; }
2974
3142
  @property --tw-content { syntax: "*"; initial-value: ""; inherits: false; }
@@ -3020,19 +3188,15 @@
3020
3188
  --tw-ring-offset-color: #fff;
3021
3189
  --tw-ring-offset-shadow: 0 0 #0000;
3022
3190
  --tw-outline-style: solid;
3023
- --tw-blur: initial;
3024
- --tw-brightness: initial;
3025
- --tw-contrast: initial;
3026
- --tw-grayscale: initial;
3027
- --tw-hue-rotate: initial;
3028
- --tw-invert: initial;
3029
- --tw-opacity: initial;
3030
- --tw-saturate: initial;
3031
- --tw-sepia: initial;
3032
- --tw-drop-shadow: initial;
3033
- --tw-drop-shadow-color: initial;
3034
- --tw-drop-shadow-alpha: 100%;
3035
- --tw-drop-shadow-size: initial;
3191
+ --tw-backdrop-blur: initial;
3192
+ --tw-backdrop-brightness: initial;
3193
+ --tw-backdrop-contrast: initial;
3194
+ --tw-backdrop-grayscale: initial;
3195
+ --tw-backdrop-hue-rotate: initial;
3196
+ --tw-backdrop-invert: initial;
3197
+ --tw-backdrop-opacity: initial;
3198
+ --tw-backdrop-saturate: initial;
3199
+ --tw-backdrop-sepia: initial;
3036
3200
  --tw-duration: initial;
3037
3201
  --tw-ease: initial;
3038
3202
  --tw-content: "";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shadcn-ui-react",
3
- "version": "0.3.6",
3
+ "version": "0.3.8",
4
4
  "private": false,
5
5
  "author": "Bleker Cordova <bleker@gliyen.com>",
6
6
  "description": "A collection of components for building beautiful and accessible user interfaces with React and Tailwind CSS.",