@authdog/react-elements 0.0.13 → 0.0.15

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 (54) hide show
  1. package/.turbo/turbo-build.log +46 -22
  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 -0
  35. package/dist/tailwind.config.ts +5 -5
  36. package/ladle.config.mjs +21 -0
  37. package/package.json +15 -3
  38. package/postcss.config.mjs +2 -0
  39. package/src/components/core/user-profile.tsx +245 -0
  40. package/src/components/flow/login.tsx +158 -0
  41. package/src/components/ui/alert.tsx +66 -0
  42. package/src/components/ui/badge.tsx +46 -0
  43. package/src/components/ui/card.tsx +92 -0
  44. package/src/components/ui/input.tsx +21 -0
  45. package/src/components/ui/label.tsx +24 -0
  46. package/src/components/ui/separator.tsx +28 -0
  47. package/src/index.ts +3 -2
  48. package/src/main.tsx +11 -0
  49. package/src/preview.tsx +10 -0
  50. package/src/stories/Button.stories.tsx +24 -0
  51. package/src/stories/LoginForm.stories.tsx +29 -0
  52. package/src/stories/Navbar.stories.tsx +22 -0
  53. package/src/stories/UserProfile.stories.tsx +56 -0
  54. 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,6 +705,9 @@ 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
  }
@@ -689,9 +729,21 @@ video {
689
729
  .h-px {
690
730
  height: 1px;
691
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
+ }
692
741
  .w-10 {
693
742
  width: 2.5rem;
694
743
  }
744
+ .w-12 {
745
+ width: 3rem;
746
+ }
695
747
  .w-3\/4 {
696
748
  width: 75%;
697
749
  }
@@ -704,12 +756,25 @@ video {
704
756
  .w-8 {
705
757
  width: 2rem;
706
758
  }
759
+ .w-fit {
760
+ width: -moz-fit-content;
761
+ width: fit-content;
762
+ }
707
763
  .w-full {
708
764
  width: 100%;
709
765
  }
766
+ .min-w-0 {
767
+ min-width: 0px;
768
+ }
710
769
  .min-w-\[8rem\] {
711
770
  min-width: 8rem;
712
771
  }
772
+ .max-w-md {
773
+ max-width: 28rem;
774
+ }
775
+ .flex-1 {
776
+ flex: 1 1 0%;
777
+ }
713
778
  .shrink-0 {
714
779
  flex-shrink: 0;
715
780
  }
@@ -724,9 +789,24 @@ video {
724
789
  -moz-user-select: none;
725
790
  user-select: none;
726
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
+ }
727
804
  .flex-col {
728
805
  flex-direction: column;
729
806
  }
807
+ .items-start {
808
+ align-items: flex-start;
809
+ }
730
810
  .items-center {
731
811
  align-items: center;
732
812
  }
@@ -736,6 +816,12 @@ video {
736
816
  .justify-between {
737
817
  justify-content: space-between;
738
818
  }
819
+ .justify-items-start {
820
+ justify-items: start;
821
+ }
822
+ .gap-1 {
823
+ gap: 0.25rem;
824
+ }
739
825
  .gap-1\.5 {
740
826
  gap: 0.375rem;
741
827
  }
@@ -748,11 +834,40 @@ video {
748
834
  .gap-6 {
749
835
  gap: 1.5rem;
750
836
  }
837
+ .gap-y-0\.5 {
838
+ row-gap: 0.125rem;
839
+ }
751
840
  .space-y-1 > :not([hidden]) ~ :not([hidden]) {
752
841
  --tw-space-y-reverse: 0;
753
842
  margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));
754
843
  margin-bottom: calc(0.25rem * var(--tw-space-y-reverse));
755
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
+ }
756
871
  .overflow-hidden {
757
872
  overflow: hidden;
758
873
  }
@@ -768,12 +883,18 @@ video {
768
883
  .rounded-full {
769
884
  border-radius: 9999px;
770
885
  }
886
+ .rounded-lg {
887
+ border-radius: var(--radius);
888
+ }
771
889
  .rounded-md {
772
890
  border-radius: calc(var(--radius) - 2px);
773
891
  }
774
892
  .rounded-sm {
775
893
  border-radius: calc(var(--radius) - 4px);
776
894
  }
895
+ .rounded-xl {
896
+ border-radius: 0.75rem;
897
+ }
777
898
  .border {
778
899
  border-width: 1px;
779
900
  }
@@ -792,6 +913,9 @@ video {
792
913
  .border-input {
793
914
  border-color: hsl(var(--input));
794
915
  }
916
+ .border-transparent {
917
+ border-color: transparent;
918
+ }
795
919
  .bg-background {
796
920
  background-color: hsl(var(--background));
797
921
  }
@@ -801,9 +925,20 @@ video {
801
925
  .bg-border {
802
926
  background-color: hsl(var(--border));
803
927
  }
928
+ .bg-card {
929
+ background-color: hsl(var(--card));
930
+ }
804
931
  .bg-destructive {
805
932
  background-color: hsl(var(--destructive));
806
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
+ }
807
942
  .bg-muted {
808
943
  background-color: hsl(var(--muted));
809
944
  }
@@ -816,15 +951,39 @@ video {
816
951
  .bg-secondary {
817
952
  background-color: hsl(var(--secondary));
818
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
+ }
819
972
  .fill-current {
820
973
  fill: currentColor;
821
974
  }
822
975
  .p-1 {
823
976
  padding: 0.25rem;
824
977
  }
978
+ .p-10 {
979
+ padding: 2.5rem;
980
+ }
825
981
  .p-4 {
826
982
  padding: 1rem;
827
983
  }
984
+ .p-6 {
985
+ padding: 1.5rem;
986
+ }
828
987
  .px-2 {
829
988
  padding-left: 0.5rem;
830
989
  padding-right: 0.5rem;
@@ -837,18 +996,38 @@ video {
837
996
  padding-left: 1rem;
838
997
  padding-right: 1rem;
839
998
  }
999
+ .px-6 {
1000
+ padding-left: 1.5rem;
1001
+ padding-right: 1.5rem;
1002
+ }
840
1003
  .px-8 {
841
1004
  padding-left: 2rem;
842
1005
  padding-right: 2rem;
843
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
+ }
844
1015
  .py-1\.5 {
845
1016
  padding-top: 0.375rem;
846
1017
  padding-bottom: 0.375rem;
847
1018
  }
1019
+ .py-12 {
1020
+ padding-top: 3rem;
1021
+ padding-bottom: 3rem;
1022
+ }
848
1023
  .py-2 {
849
1024
  padding-top: 0.5rem;
850
1025
  padding-bottom: 0.5rem;
851
1026
  }
1027
+ .py-3 {
1028
+ padding-top: 0.75rem;
1029
+ padding-bottom: 0.75rem;
1030
+ }
852
1031
  .py-6 {
853
1032
  padding-top: 1.5rem;
854
1033
  padding-bottom: 1.5rem;
@@ -862,6 +1041,17 @@ video {
862
1041
  .pr-2 {
863
1042
  padding-right: 0.5rem;
864
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
+ }
865
1055
  .text-sm {
866
1056
  font-size: 0.875rem;
867
1057
  line-height: 1.25rem;
@@ -889,15 +1079,36 @@ video {
889
1079
  .leading-none {
890
1080
  line-height: 1;
891
1081
  }
1082
+ .tracking-tight {
1083
+ letter-spacing: -0.025em;
1084
+ }
892
1085
  .tracking-widest {
893
1086
  letter-spacing: 0.1em;
894
1087
  }
1088
+ .text-card-foreground {
1089
+ color: hsl(var(--card-foreground));
1090
+ }
1091
+ .text-destructive {
1092
+ color: hsl(var(--destructive));
1093
+ }
895
1094
  .text-destructive-foreground {
896
1095
  color: hsl(var(--destructive-foreground));
897
1096
  }
898
1097
  .text-foreground {
899
1098
  color: hsl(var(--foreground));
900
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
+ }
901
1112
  .text-muted-foreground {
902
1113
  color: hsl(var(--muted-foreground));
903
1114
  }
@@ -913,6 +1124,10 @@ video {
913
1124
  .text-secondary-foreground {
914
1125
  color: hsl(var(--secondary-foreground));
915
1126
  }
1127
+ .text-white {
1128
+ --tw-text-opacity: 1;
1129
+ color: rgb(255 255 255 / var(--tw-text-opacity, 1));
1130
+ }
916
1131
  .underline-offset-4 {
917
1132
  text-underline-offset: 4px;
918
1133
  }
@@ -932,6 +1147,15 @@ video {
932
1147
  --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
933
1148
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
934
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
+ }
935
1159
  .outline {
936
1160
  outline-style: solid;
937
1161
  }
@@ -945,6 +1169,11 @@ video {
945
1169
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
946
1170
  transition-duration: 150ms;
947
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
+ }
948
1177
  .transition-colors {
949
1178
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
950
1179
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
@@ -975,12 +1204,72 @@ video {
975
1204
  .ease-in-out {
976
1205
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
977
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
+ }
978
1259
  .hover\:bg-accent:hover {
979
1260
  background-color: hsl(var(--accent));
980
1261
  }
981
1262
  .hover\:bg-destructive\/90:hover {
982
1263
  background-color: hsl(var(--destructive) / 0.9);
983
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
+ }
984
1273
  .hover\:bg-primary\/90:hover {
985
1274
  background-color: hsl(var(--primary) / 0.9);
986
1275
  }
@@ -990,6 +1279,10 @@ video {
990
1279
  .hover\:text-accent-foreground:hover {
991
1280
  color: hsl(var(--accent-foreground));
992
1281
  }
1282
+ .hover\:text-gray-700:hover {
1283
+ --tw-text-opacity: 1;
1284
+ color: rgb(55 65 81 / var(--tw-text-opacity, 1));
1285
+ }
993
1286
  .hover\:text-primary:hover {
994
1287
  color: hsl(var(--primary));
995
1288
  }
@@ -1016,6 +1309,9 @@ video {
1016
1309
  .focus\:ring-offset-2:focus {
1017
1310
  --tw-ring-offset-width: 2px;
1018
1311
  }
1312
+ .focus-visible\:border-ring:focus-visible {
1313
+ border-color: hsl(var(--ring));
1314
+ }
1019
1315
  .focus-visible\:outline-none:focus-visible {
1020
1316
  outline: 2px solid transparent;
1021
1317
  outline-offset: 2px;
@@ -1025,21 +1321,60 @@ video {
1025
1321
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
1026
1322
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
1027
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
+ }
1028
1332
  .focus-visible\:ring-ring:focus-visible {
1029
1333
  --tw-ring-color: hsl(var(--ring));
1030
1334
  }
1335
+ .focus-visible\:ring-ring\/50:focus-visible {
1336
+ --tw-ring-color: hsl(var(--ring) / 0.5);
1337
+ }
1031
1338
  .focus-visible\:ring-offset-2:focus-visible {
1032
1339
  --tw-ring-offset-width: 2px;
1033
1340
  }
1034
1341
  .disabled\:pointer-events-none:disabled {
1035
1342
  pointer-events: none;
1036
1343
  }
1344
+ .disabled\:cursor-not-allowed:disabled {
1345
+ cursor: not-allowed;
1346
+ }
1037
1347
  .disabled\:opacity-50:disabled {
1038
1348
  opacity: 0.5;
1039
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
+ }
1040
1363
  .data-\[disabled\]\:pointer-events-none[data-disabled] {
1041
1364
  pointer-events: none;
1042
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
+ }
1043
1378
  .data-\[state\=open\]\:bg-accent[data-state="open"] {
1044
1379
  background-color: hsl(var(--accent));
1045
1380
  }
@@ -1136,12 +1471,30 @@ video {
1136
1471
  .data-\[state\=open\]\:duration-500[data-state="open"] {
1137
1472
  animation-duration: 500ms;
1138
1473
  }
1474
+ .\*\:data-\[slot\=alert-description\]\:text-destructive\/90[data-slot="alert-description"] > * {
1475
+ color: hsl(var(--destructive) / 0.9);
1476
+ }
1139
1477
  .data-\[variant\=destructive\]\:focus\:bg-destructive\/10:focus[data-variant="destructive"] {
1140
1478
  background-color: hsl(var(--destructive) / 0.1);
1141
1479
  }
1142
1480
  .data-\[variant\=destructive\]\:focus\:text-destructive:focus[data-variant="destructive"] {
1143
1481
  color: hsl(var(--destructive));
1144
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
+ }
1145
1498
  .dark\:data-\[variant\=destructive\]\:focus\:bg-destructive\/20:focus[data-variant="destructive"]:is(.dark *) {
1146
1499
  background-color: hsl(var(--destructive) / 0.2);
1147
1500
  }
@@ -1150,6 +1503,11 @@ video {
1150
1503
  .sm\:max-w-sm {
1151
1504
  max-width: 24rem;
1152
1505
  }
1506
+
1507
+ .sm\:px-6 {
1508
+ padding-left: 1.5rem;
1509
+ padding-right: 1.5rem;
1510
+ }
1153
1511
  }
1154
1512
  @media (min-width: 768px) {
1155
1513
 
@@ -1165,6 +1523,39 @@ video {
1165
1523
  padding-left: 1.5rem;
1166
1524
  padding-right: 1.5rem;
1167
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;
1168
1559
  }
1169
1560
  .\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4 svg:not([class*='size-']) {
1170
1561
  width: 1rem;
@@ -1178,4 +1569,19 @@ video {
1178
1569
  }
1179
1570
  .\[\&_svg\]\:shrink-0 svg {
1180
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));
1181
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
+ });