@authdog/react-elements 0.0.12 → 0.0.14

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.
Files changed (55) hide show
  1. package/.turbo/turbo-build.log +47 -23
  2. package/CHANGELOG.md +12 -0
  3. package/dist/components/ui/alert.js +3 -0
  4. package/dist/components/ui/alert.js.map +1 -0
  5. package/dist/components/ui/alert.mjs +3 -0
  6. package/dist/components/ui/alert.mjs.map +1 -0
  7. package/dist/components/ui/badge.js +3 -0
  8. package/dist/components/ui/badge.js.map +1 -0
  9. package/dist/components/ui/badge.mjs +3 -0
  10. package/dist/components/ui/badge.mjs.map +1 -0
  11. package/dist/components/ui/card.js +3 -0
  12. package/dist/components/ui/card.js.map +1 -0
  13. package/dist/components/ui/card.mjs +3 -0
  14. package/dist/components/ui/card.mjs.map +1 -0
  15. package/dist/components/ui/input.js +3 -0
  16. package/dist/components/ui/input.js.map +1 -0
  17. package/dist/components/ui/input.mjs +3 -0
  18. package/dist/components/ui/input.mjs.map +1 -0
  19. package/dist/components/ui/label.js +3 -0
  20. package/dist/components/ui/label.js.map +1 -0
  21. package/dist/components/ui/label.mjs +3 -0
  22. package/dist/components/ui/label.mjs.map +1 -0
  23. package/dist/components/ui/separator.js +3 -0
  24. package/dist/components/ui/separator.js.map +1 -0
  25. package/dist/components/ui/separator.mjs +3 -0
  26. package/dist/components/ui/separator.mjs.map +1 -0
  27. package/dist/index.d.mts +18 -1
  28. package/dist/index.d.ts +18 -1
  29. package/dist/index.js +1 -1
  30. package/dist/index.js.map +1 -1
  31. package/dist/index.mjs +1 -1
  32. package/dist/index.mjs.map +1 -1
  33. package/dist/postcss.config.mjs +2 -0
  34. package/dist/styles.css +406 -6
  35. package/dist/tailwind.config.ts +5 -5
  36. package/ladle.config.mjs +21 -0
  37. package/package.json +16 -4
  38. package/postcss.config.mjs +2 -0
  39. package/src/components/core/navbar.tsx +44 -39
  40. package/src/components/core/user-profile.tsx +245 -0
  41. package/src/components/flow/login.tsx +158 -0
  42. package/src/components/ui/alert.tsx +66 -0
  43. package/src/components/ui/badge.tsx +46 -0
  44. package/src/components/ui/card.tsx +92 -0
  45. package/src/components/ui/input.tsx +21 -0
  46. package/src/components/ui/label.tsx +24 -0
  47. package/src/components/ui/separator.tsx +28 -0
  48. package/src/index.ts +3 -2
  49. package/src/main.tsx +11 -0
  50. package/src/preview.tsx +10 -0
  51. package/src/stories/Button.stories.tsx +24 -0
  52. package/src/stories/LoginForm.stories.tsx +29 -0
  53. package/src/stories/Navbar.stories.tsx +22 -0
  54. package/src/stories/UserProfile.stories.tsx +56 -0
  55. package/tailwind.config.ts +5 -5
package/dist/styles.css CHANGED
@@ -589,6 +589,9 @@ video {
589
589
  .bottom-0 {
590
590
  bottom: 0px;
591
591
  }
592
+ .bottom-4 {
593
+ bottom: 1rem;
594
+ }
592
595
  .left-0 {
593
596
  left: 0px;
594
597
  }
@@ -610,23 +613,57 @@ video {
610
613
  .z-50 {
611
614
  z-index: 50;
612
615
  }
616
+ .col-start-2 {
617
+ grid-column-start: 2;
618
+ }
619
+ .row-span-2 {
620
+ grid-row: span 2 / span 2;
621
+ }
622
+ .row-start-1 {
623
+ grid-row-start: 1;
624
+ }
613
625
  .-mx-1 {
614
626
  margin-left: -0.25rem;
615
627
  margin-right: -0.25rem;
616
628
  }
629
+ .mx-2 {
630
+ margin-left: 0.5rem;
631
+ margin-right: 0.5rem;
632
+ }
617
633
  .my-1 {
618
634
  margin-top: 0.25rem;
619
635
  margin-bottom: 0.25rem;
620
636
  }
637
+ .mb-4 {
638
+ margin-bottom: 1rem;
639
+ }
640
+ .mb-6 {
641
+ margin-bottom: 1.5rem;
642
+ }
643
+ .ml-1 {
644
+ margin-left: 0.25rem;
645
+ }
621
646
  .ml-auto {
622
647
  margin-left: auto;
623
648
  }
649
+ .mr-1 {
650
+ margin-right: 0.25rem;
651
+ }
624
652
  .mr-2 {
625
653
  margin-right: 0.5rem;
626
654
  }
655
+ .mr-4 {
656
+ margin-right: 1rem;
657
+ }
627
658
  .mt-auto {
628
659
  margin-top: auto;
629
660
  }
661
+ .line-clamp-1 {
662
+ overflow: hidden;
663
+ display: -webkit-box;
664
+ -webkit-box-orient: vertical;
665
+ -webkit-line-clamp: 1;
666
+ }
630
667
  .flex {
631
668
  display: flex;
632
669
  }
@@ -668,15 +705,15 @@ video {
668
705
  .h-11 {
669
706
  height: 2.75rem;
670
707
  }
708
+ .h-12 {
709
+ height: 3rem;
710
+ }
671
711
  .h-16 {
672
712
  height: 4rem;
673
713
  }
674
714
  .h-4 {
675
715
  height: 1rem;
676
716
  }
677
- .h-5 {
678
- height: 1.25rem;
679
- }
680
717
  .h-8 {
681
718
  height: 2rem;
682
719
  }
@@ -692,30 +729,52 @@ video {
692
729
  .h-px {
693
730
  height: 1px;
694
731
  }
732
+ .h-screen {
733
+ height: 100vh;
734
+ }
735
+ .min-h-4 {
736
+ min-height: 1rem;
737
+ }
738
+ .min-h-screen {
739
+ min-height: 100vh;
740
+ }
695
741
  .w-10 {
696
742
  width: 2.5rem;
697
743
  }
744
+ .w-12 {
745
+ width: 3rem;
746
+ }
698
747
  .w-3\/4 {
699
748
  width: 75%;
700
749
  }
701
750
  .w-4 {
702
751
  width: 1rem;
703
752
  }
704
- .w-5 {
705
- width: 1.25rem;
706
- }
707
753
  .w-56 {
708
754
  width: 14rem;
709
755
  }
710
756
  .w-8 {
711
757
  width: 2rem;
712
758
  }
759
+ .w-fit {
760
+ width: -moz-fit-content;
761
+ width: fit-content;
762
+ }
713
763
  .w-full {
714
764
  width: 100%;
715
765
  }
766
+ .min-w-0 {
767
+ min-width: 0px;
768
+ }
716
769
  .min-w-\[8rem\] {
717
770
  min-width: 8rem;
718
771
  }
772
+ .max-w-md {
773
+ max-width: 28rem;
774
+ }
775
+ .flex-1 {
776
+ flex: 1 1 0%;
777
+ }
719
778
  .shrink-0 {
720
779
  flex-shrink: 0;
721
780
  }
@@ -730,9 +789,24 @@ video {
730
789
  -moz-user-select: none;
731
790
  user-select: none;
732
791
  }
792
+ .auto-rows-min {
793
+ grid-auto-rows: min-content;
794
+ }
795
+ .grid-cols-\[0_1fr\] {
796
+ grid-template-columns: 0 1fr;
797
+ }
798
+ .grid-cols-\[16rem\2c 1fr\] {
799
+ grid-template-columns: 16rem 1fr;
800
+ }
801
+ .grid-rows-\[auto_auto\] {
802
+ grid-template-rows: auto auto;
803
+ }
733
804
  .flex-col {
734
805
  flex-direction: column;
735
806
  }
807
+ .items-start {
808
+ align-items: flex-start;
809
+ }
736
810
  .items-center {
737
811
  align-items: center;
738
812
  }
@@ -742,6 +816,12 @@ video {
742
816
  .justify-between {
743
817
  justify-content: space-between;
744
818
  }
819
+ .justify-items-start {
820
+ justify-items: start;
821
+ }
822
+ .gap-1 {
823
+ gap: 0.25rem;
824
+ }
745
825
  .gap-1\.5 {
746
826
  gap: 0.375rem;
747
827
  }
@@ -754,11 +834,40 @@ video {
754
834
  .gap-6 {
755
835
  gap: 1.5rem;
756
836
  }
837
+ .gap-y-0\.5 {
838
+ row-gap: 0.125rem;
839
+ }
757
840
  .space-y-1 > :not([hidden]) ~ :not([hidden]) {
758
841
  --tw-space-y-reverse: 0;
759
842
  margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));
760
843
  margin-bottom: calc(0.25rem * var(--tw-space-y-reverse));
761
844
  }
845
+ .space-y-2 > :not([hidden]) ~ :not([hidden]) {
846
+ --tw-space-y-reverse: 0;
847
+ margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));
848
+ margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));
849
+ }
850
+ .space-y-3 > :not([hidden]) ~ :not([hidden]) {
851
+ --tw-space-y-reverse: 0;
852
+ margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));
853
+ margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));
854
+ }
855
+ .space-y-4 > :not([hidden]) ~ :not([hidden]) {
856
+ --tw-space-y-reverse: 0;
857
+ margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
858
+ margin-bottom: calc(1rem * var(--tw-space-y-reverse));
859
+ }
860
+ .space-y-8 > :not([hidden]) ~ :not([hidden]) {
861
+ --tw-space-y-reverse: 0;
862
+ margin-top: calc(2rem * calc(1 - var(--tw-space-y-reverse)));
863
+ margin-bottom: calc(2rem * var(--tw-space-y-reverse));
864
+ }
865
+ .self-start {
866
+ align-self: flex-start;
867
+ }
868
+ .justify-self-end {
869
+ justify-self: end;
870
+ }
762
871
  .overflow-hidden {
763
872
  overflow: hidden;
764
873
  }
@@ -774,12 +883,18 @@ video {
774
883
  .rounded-full {
775
884
  border-radius: 9999px;
776
885
  }
886
+ .rounded-lg {
887
+ border-radius: var(--radius);
888
+ }
777
889
  .rounded-md {
778
890
  border-radius: calc(var(--radius) - 2px);
779
891
  }
780
892
  .rounded-sm {
781
893
  border-radius: calc(var(--radius) - 4px);
782
894
  }
895
+ .rounded-xl {
896
+ border-radius: 0.75rem;
897
+ }
783
898
  .border {
784
899
  border-width: 1px;
785
900
  }
@@ -798,6 +913,9 @@ video {
798
913
  .border-input {
799
914
  border-color: hsl(var(--input));
800
915
  }
916
+ .border-transparent {
917
+ border-color: transparent;
918
+ }
801
919
  .bg-background {
802
920
  background-color: hsl(var(--background));
803
921
  }
@@ -807,9 +925,20 @@ video {
807
925
  .bg-border {
808
926
  background-color: hsl(var(--border));
809
927
  }
928
+ .bg-card {
929
+ background-color: hsl(var(--card));
930
+ }
810
931
  .bg-destructive {
811
932
  background-color: hsl(var(--destructive));
812
933
  }
934
+ .bg-gray-100 {
935
+ --tw-bg-opacity: 1;
936
+ background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
937
+ }
938
+ .bg-gray-50 {
939
+ --tw-bg-opacity: 1;
940
+ background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
941
+ }
813
942
  .bg-muted {
814
943
  background-color: hsl(var(--muted));
815
944
  }
@@ -822,15 +951,39 @@ video {
822
951
  .bg-secondary {
823
952
  background-color: hsl(var(--secondary));
824
953
  }
954
+ .bg-transparent {
955
+ background-color: transparent;
956
+ }
957
+ .bg-white {
958
+ --tw-bg-opacity: 1;
959
+ background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
960
+ }
961
+ .bg-gradient-to-r {
962
+ background-image: linear-gradient(to right, var(--tw-gradient-stops));
963
+ }
964
+ .from-blue-500 {
965
+ --tw-gradient-from: #3b82f6 var(--tw-gradient-from-position);
966
+ --tw-gradient-to: rgb(59 130 246 / 0) var(--tw-gradient-to-position);
967
+ --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
968
+ }
969
+ .to-purple-500 {
970
+ --tw-gradient-to: #a855f7 var(--tw-gradient-to-position);
971
+ }
825
972
  .fill-current {
826
973
  fill: currentColor;
827
974
  }
828
975
  .p-1 {
829
976
  padding: 0.25rem;
830
977
  }
978
+ .p-10 {
979
+ padding: 2.5rem;
980
+ }
831
981
  .p-4 {
832
982
  padding: 1rem;
833
983
  }
984
+ .p-6 {
985
+ padding: 1.5rem;
986
+ }
834
987
  .px-2 {
835
988
  padding-left: 0.5rem;
836
989
  padding-right: 0.5rem;
@@ -843,18 +996,38 @@ video {
843
996
  padding-left: 1rem;
844
997
  padding-right: 1rem;
845
998
  }
999
+ .px-6 {
1000
+ padding-left: 1.5rem;
1001
+ padding-right: 1.5rem;
1002
+ }
846
1003
  .px-8 {
847
1004
  padding-left: 2rem;
848
1005
  padding-right: 2rem;
849
1006
  }
1007
+ .py-0\.5 {
1008
+ padding-top: 0.125rem;
1009
+ padding-bottom: 0.125rem;
1010
+ }
1011
+ .py-1 {
1012
+ padding-top: 0.25rem;
1013
+ padding-bottom: 0.25rem;
1014
+ }
850
1015
  .py-1\.5 {
851
1016
  padding-top: 0.375rem;
852
1017
  padding-bottom: 0.375rem;
853
1018
  }
1019
+ .py-12 {
1020
+ padding-top: 3rem;
1021
+ padding-bottom: 3rem;
1022
+ }
854
1023
  .py-2 {
855
1024
  padding-top: 0.5rem;
856
1025
  padding-bottom: 0.5rem;
857
1026
  }
1027
+ .py-3 {
1028
+ padding-top: 0.75rem;
1029
+ padding-bottom: 0.75rem;
1030
+ }
858
1031
  .py-6 {
859
1032
  padding-top: 1.5rem;
860
1033
  padding-bottom: 1.5rem;
@@ -868,6 +1041,17 @@ video {
868
1041
  .pr-2 {
869
1042
  padding-right: 0.5rem;
870
1043
  }
1044
+ .text-center {
1045
+ text-align: center;
1046
+ }
1047
+ .text-2xl {
1048
+ font-size: 1.5rem;
1049
+ line-height: 2rem;
1050
+ }
1051
+ .text-base {
1052
+ font-size: 1rem;
1053
+ line-height: 1.5rem;
1054
+ }
871
1055
  .text-sm {
872
1056
  font-size: 0.875rem;
873
1057
  line-height: 1.25rem;
@@ -895,15 +1079,36 @@ video {
895
1079
  .leading-none {
896
1080
  line-height: 1;
897
1081
  }
1082
+ .tracking-tight {
1083
+ letter-spacing: -0.025em;
1084
+ }
898
1085
  .tracking-widest {
899
1086
  letter-spacing: 0.1em;
900
1087
  }
1088
+ .text-card-foreground {
1089
+ color: hsl(var(--card-foreground));
1090
+ }
1091
+ .text-destructive {
1092
+ color: hsl(var(--destructive));
1093
+ }
901
1094
  .text-destructive-foreground {
902
1095
  color: hsl(var(--destructive-foreground));
903
1096
  }
904
1097
  .text-foreground {
905
1098
  color: hsl(var(--foreground));
906
1099
  }
1100
+ .text-gray-500 {
1101
+ --tw-text-opacity: 1;
1102
+ color: rgb(107 114 128 / var(--tw-text-opacity, 1));
1103
+ }
1104
+ .text-gray-700 {
1105
+ --tw-text-opacity: 1;
1106
+ color: rgb(55 65 81 / var(--tw-text-opacity, 1));
1107
+ }
1108
+ .text-gray-900 {
1109
+ --tw-text-opacity: 1;
1110
+ color: rgb(17 24 39 / var(--tw-text-opacity, 1));
1111
+ }
907
1112
  .text-muted-foreground {
908
1113
  color: hsl(var(--muted-foreground));
909
1114
  }
@@ -919,6 +1124,10 @@ video {
919
1124
  .text-secondary-foreground {
920
1125
  color: hsl(var(--secondary-foreground));
921
1126
  }
1127
+ .text-white {
1128
+ --tw-text-opacity: 1;
1129
+ color: rgb(255 255 255 / var(--tw-text-opacity, 1));
1130
+ }
922
1131
  .underline-offset-4 {
923
1132
  text-underline-offset: 4px;
924
1133
  }
@@ -938,6 +1147,15 @@ video {
938
1147
  --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
939
1148
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
940
1149
  }
1150
+ .shadow-sm {
1151
+ --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
1152
+ --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
1153
+ box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
1154
+ }
1155
+ .outline-none {
1156
+ outline: 2px solid transparent;
1157
+ outline-offset: 2px;
1158
+ }
941
1159
  .outline {
942
1160
  outline-style: solid;
943
1161
  }
@@ -951,6 +1169,11 @@ video {
951
1169
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
952
1170
  transition-duration: 150ms;
953
1171
  }
1172
+ .transition-\[color\2c box-shadow\] {
1173
+ transition-property: color,box-shadow;
1174
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
1175
+ transition-duration: 150ms;
1176
+ }
954
1177
  .transition-colors {
955
1178
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
956
1179
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
@@ -981,12 +1204,72 @@ video {
981
1204
  .ease-in-out {
982
1205
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
983
1206
  }
1207
+ .selection\:bg-primary *::-moz-selection {
1208
+ background-color: hsl(var(--primary));
1209
+ }
1210
+ .selection\:bg-primary *::selection {
1211
+ background-color: hsl(var(--primary));
1212
+ }
1213
+ .selection\:text-primary-foreground *::-moz-selection {
1214
+ color: hsl(var(--primary-foreground));
1215
+ }
1216
+ .selection\:text-primary-foreground *::selection {
1217
+ color: hsl(var(--primary-foreground));
1218
+ }
1219
+ .selection\:bg-primary::-moz-selection {
1220
+ background-color: hsl(var(--primary));
1221
+ }
1222
+ .selection\:bg-primary::selection {
1223
+ background-color: hsl(var(--primary));
1224
+ }
1225
+ .selection\:text-primary-foreground::-moz-selection {
1226
+ color: hsl(var(--primary-foreground));
1227
+ }
1228
+ .selection\:text-primary-foreground::selection {
1229
+ color: hsl(var(--primary-foreground));
1230
+ }
1231
+ .file\:inline-flex::file-selector-button {
1232
+ display: inline-flex;
1233
+ }
1234
+ .file\:h-7::file-selector-button {
1235
+ height: 1.75rem;
1236
+ }
1237
+ .file\:border-0::file-selector-button {
1238
+ border-width: 0px;
1239
+ }
1240
+ .file\:bg-transparent::file-selector-button {
1241
+ background-color: transparent;
1242
+ }
1243
+ .file\:text-sm::file-selector-button {
1244
+ font-size: 0.875rem;
1245
+ line-height: 1.25rem;
1246
+ }
1247
+ .file\:font-medium::file-selector-button {
1248
+ font-weight: 500;
1249
+ }
1250
+ .file\:text-foreground::file-selector-button {
1251
+ color: hsl(var(--foreground));
1252
+ }
1253
+ .placeholder\:text-muted-foreground::-moz-placeholder {
1254
+ color: hsl(var(--muted-foreground));
1255
+ }
1256
+ .placeholder\:text-muted-foreground::placeholder {
1257
+ color: hsl(var(--muted-foreground));
1258
+ }
984
1259
  .hover\:bg-accent:hover {
985
1260
  background-color: hsl(var(--accent));
986
1261
  }
987
1262
  .hover\:bg-destructive\/90:hover {
988
1263
  background-color: hsl(var(--destructive) / 0.9);
989
1264
  }
1265
+ .hover\:bg-gray-100:hover {
1266
+ --tw-bg-opacity: 1;
1267
+ background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
1268
+ }
1269
+ .hover\:bg-gray-50:hover {
1270
+ --tw-bg-opacity: 1;
1271
+ background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
1272
+ }
990
1273
  .hover\:bg-primary\/90:hover {
991
1274
  background-color: hsl(var(--primary) / 0.9);
992
1275
  }
@@ -996,6 +1279,10 @@ video {
996
1279
  .hover\:text-accent-foreground:hover {
997
1280
  color: hsl(var(--accent-foreground));
998
1281
  }
1282
+ .hover\:text-gray-700:hover {
1283
+ --tw-text-opacity: 1;
1284
+ color: rgb(55 65 81 / var(--tw-text-opacity, 1));
1285
+ }
999
1286
  .hover\:text-primary:hover {
1000
1287
  color: hsl(var(--primary));
1001
1288
  }
@@ -1022,6 +1309,9 @@ video {
1022
1309
  .focus\:ring-offset-2:focus {
1023
1310
  --tw-ring-offset-width: 2px;
1024
1311
  }
1312
+ .focus-visible\:border-ring:focus-visible {
1313
+ border-color: hsl(var(--ring));
1314
+ }
1025
1315
  .focus-visible\:outline-none:focus-visible {
1026
1316
  outline: 2px solid transparent;
1027
1317
  outline-offset: 2px;
@@ -1031,21 +1321,60 @@ video {
1031
1321
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
1032
1322
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
1033
1323
  }
1324
+ .focus-visible\:ring-\[3px\]:focus-visible {
1325
+ --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
1326
+ --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);
1327
+ box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
1328
+ }
1329
+ .focus-visible\:ring-destructive\/20:focus-visible {
1330
+ --tw-ring-color: hsl(var(--destructive) / 0.2);
1331
+ }
1034
1332
  .focus-visible\:ring-ring:focus-visible {
1035
1333
  --tw-ring-color: hsl(var(--ring));
1036
1334
  }
1335
+ .focus-visible\:ring-ring\/50:focus-visible {
1336
+ --tw-ring-color: hsl(var(--ring) / 0.5);
1337
+ }
1037
1338
  .focus-visible\:ring-offset-2:focus-visible {
1038
1339
  --tw-ring-offset-width: 2px;
1039
1340
  }
1040
1341
  .disabled\:pointer-events-none:disabled {
1041
1342
  pointer-events: none;
1042
1343
  }
1344
+ .disabled\:cursor-not-allowed:disabled {
1345
+ cursor: not-allowed;
1346
+ }
1043
1347
  .disabled\:opacity-50:disabled {
1044
1348
  opacity: 0.5;
1045
1349
  }
1350
+ .peer:disabled ~ .peer-disabled\:cursor-not-allowed {
1351
+ cursor: not-allowed;
1352
+ }
1353
+ .peer:disabled ~ .peer-disabled\:opacity-50 {
1354
+ opacity: 0.5;
1355
+ }
1356
+ .has-\[\>svg\]\:grid-cols-\[calc\(var\(--spacing\)\*4\)_1fr\]:has(>svg) {
1357
+ grid-template-columns: calc(var(--spacing) * 4) 1fr;
1358
+ }
1359
+ .has-\[\>svg\]\:gap-x-3:has(>svg) {
1360
+ -moz-column-gap: 0.75rem;
1361
+ column-gap: 0.75rem;
1362
+ }
1046
1363
  .data-\[disabled\]\:pointer-events-none[data-disabled] {
1047
1364
  pointer-events: none;
1048
1365
  }
1366
+ .data-\[orientation\=horizontal\]\:h-px[data-orientation="horizontal"] {
1367
+ height: 1px;
1368
+ }
1369
+ .data-\[orientation\=vertical\]\:h-full[data-orientation="vertical"] {
1370
+ height: 100%;
1371
+ }
1372
+ .data-\[orientation\=horizontal\]\:w-full[data-orientation="horizontal"] {
1373
+ width: 100%;
1374
+ }
1375
+ .data-\[orientation\=vertical\]\:w-px[data-orientation="vertical"] {
1376
+ width: 1px;
1377
+ }
1049
1378
  .data-\[state\=open\]\:bg-accent[data-state="open"] {
1050
1379
  background-color: hsl(var(--accent));
1051
1380
  }
@@ -1142,12 +1471,30 @@ video {
1142
1471
  .data-\[state\=open\]\:duration-500[data-state="open"] {
1143
1472
  animation-duration: 500ms;
1144
1473
  }
1474
+ .\*\:data-\[slot\=alert-description\]\:text-destructive\/90[data-slot="alert-description"] > * {
1475
+ color: hsl(var(--destructive) / 0.9);
1476
+ }
1145
1477
  .data-\[variant\=destructive\]\:focus\:bg-destructive\/10:focus[data-variant="destructive"] {
1146
1478
  background-color: hsl(var(--destructive) / 0.1);
1147
1479
  }
1148
1480
  .data-\[variant\=destructive\]\:focus\:text-destructive:focus[data-variant="destructive"] {
1149
1481
  color: hsl(var(--destructive));
1150
1482
  }
1483
+ .group[data-disabled="true"] .group-data-\[disabled\=true\]\:pointer-events-none {
1484
+ pointer-events: none;
1485
+ }
1486
+ .group[data-disabled="true"] .group-data-\[disabled\=true\]\:opacity-50 {
1487
+ opacity: 0.5;
1488
+ }
1489
+ .dark\:bg-destructive\/60:is(.dark *) {
1490
+ background-color: hsl(var(--destructive) / 0.6);
1491
+ }
1492
+ .dark\:bg-input\/30:is(.dark *) {
1493
+ background-color: hsl(var(--input) / 0.3);
1494
+ }
1495
+ .dark\:focus-visible\:ring-destructive\/40:focus-visible:is(.dark *) {
1496
+ --tw-ring-color: hsl(var(--destructive) / 0.4);
1497
+ }
1151
1498
  .dark\:data-\[variant\=destructive\]\:focus\:bg-destructive\/20:focus[data-variant="destructive"]:is(.dark *) {
1152
1499
  background-color: hsl(var(--destructive) / 0.2);
1153
1500
  }
@@ -1156,6 +1503,11 @@ video {
1156
1503
  .sm\:max-w-sm {
1157
1504
  max-width: 24rem;
1158
1505
  }
1506
+
1507
+ .sm\:px-6 {
1508
+ padding-left: 1.5rem;
1509
+ padding-right: 1.5rem;
1510
+ }
1159
1511
  }
1160
1512
  @media (min-width: 768px) {
1161
1513
 
@@ -1171,6 +1523,39 @@ video {
1171
1523
  padding-left: 1.5rem;
1172
1524
  padding-right: 1.5rem;
1173
1525
  }
1526
+
1527
+ .md\:text-sm {
1528
+ font-size: 0.875rem;
1529
+ line-height: 1.25rem;
1530
+ }
1531
+ }
1532
+ @media (min-width: 1024px) {
1533
+
1534
+ .lg\:px-8 {
1535
+ padding-left: 2rem;
1536
+ padding-right: 2rem;
1537
+ }
1538
+ }
1539
+ .\[\&\>svg\]\:pointer-events-none>svg {
1540
+ pointer-events: none;
1541
+ }
1542
+ .\[\&\>svg\]\:size-3>svg {
1543
+ width: 0.75rem;
1544
+ height: 0.75rem;
1545
+ }
1546
+ .\[\&\>svg\]\:size-4>svg {
1547
+ width: 1rem;
1548
+ height: 1rem;
1549
+ }
1550
+ .\[\&\>svg\]\:translate-y-0\.5>svg {
1551
+ --tw-translate-y: 0.125rem;
1552
+ transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
1553
+ }
1554
+ .\[\&\>svg\]\:text-current>svg {
1555
+ color: currentColor;
1556
+ }
1557
+ .\[\&_p\]\:leading-relaxed p {
1558
+ line-height: 1.625;
1174
1559
  }
1175
1560
  .\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4 svg:not([class*='size-']) {
1176
1561
  width: 1rem;
@@ -1184,4 +1569,19 @@ video {
1184
1569
  }
1185
1570
  .\[\&_svg\]\:shrink-0 svg {
1186
1571
  flex-shrink: 0;
1572
+ }
1573
+ a.\[a\&\]\:hover\:bg-accent:hover {
1574
+ background-color: hsl(var(--accent));
1575
+ }
1576
+ a.\[a\&\]\:hover\:bg-destructive\/90:hover {
1577
+ background-color: hsl(var(--destructive) / 0.9);
1578
+ }
1579
+ a.\[a\&\]\:hover\:bg-primary\/90:hover {
1580
+ background-color: hsl(var(--primary) / 0.9);
1581
+ }
1582
+ a.\[a\&\]\:hover\:bg-secondary\/90:hover {
1583
+ background-color: hsl(var(--secondary) / 0.9);
1584
+ }
1585
+ a.\[a\&\]\:hover\:text-accent-foreground:hover {
1586
+ color: hsl(var(--accent-foreground));
1187
1587
  }
@@ -4,11 +4,11 @@ import tailwindcssAnimate from "tailwindcss-animate";
4
4
  const config = {
5
5
  darkMode: ["class"],
6
6
  content: [
7
- "./pages/**/*.{ts,tsx}",
8
- "./components/**/*.{ts,tsx}",
9
- "./components/**/**/*.{ts,tsx}",
10
- "./app/**/*.{ts,tsx}",
11
- "./src/**/*.{ts,tsx}"
7
+ "./src/**/*.{js,ts,jsx,tsx}",
8
+ "./src/**/*.stories.{js,ts,jsx,tsx}",
9
+ "./src/components/**/*.{js,ts,jsx,tsx}",
10
+ "./src/components/**/**/*.{js,ts,jsx,tsx}",
11
+ "./src/preview.{js,ts,jsx,tsx}",
12
12
  ],
13
13
  prefix: "",
14
14
  theme: {
@@ -0,0 +1,21 @@
1
+ import { defineConfig } from '@ladle/react';
2
+ import postcssConfig from './postcss.config.mjs';
3
+ import react from '@vitejs/plugin-react';
4
+
5
+ export default defineConfig({
6
+ stories: ['src/**/*.stories.tsx'],
7
+ addons: [
8
+ '@ladle/addon-controls',
9
+ '@ladle/addon-actions',
10
+ '@ladle/addon-themes',
11
+ ],
12
+ vite: {
13
+ plugins: [react()],
14
+ css: {
15
+ postcss: postcssConfig,
16
+ },
17
+ optimizeDeps: {
18
+ include: ['tailwindcss', 'postcss', 'autoprefixer'],
19
+ },
20
+ }
21
+ });