@sunggang/ui-lib 0.1.11 → 0.1.13
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 +14 -2
- package/index.esm.css +346 -0
- package/package.json +6 -1
- package/src/components/ui/button.d.ts +11 -0
- package/src/components/ui/calendar.d.ts +8 -0
- package/src/components/ui/dateRangePicker.d.ts +11 -0
- package/src/components/ui/popover.d.ts +7 -0
- package/src/components/ui/singlePicker.d.ts +9 -0
package/README.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
This library was generated with [Nx](https://nx.dev).
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## 專案介紹
|
|
6
|
+
`@sunggang/ui-lib`是react元件庫,目前css或css框架使用了tailwind、shadcn UI。
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## 安裝
|
|
10
|
+
```
|
|
11
|
+
npm i @sunggang/ui-lib
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## 元件使用方式
|
|
15
|
+
```
|
|
16
|
+
import { Switch, CkEditor } from '@sunggang/ui-lib';
|
|
17
|
+
```
|
|
18
|
+
|
|
6
19
|
|
|
7
|
-
Run `nx test uiLibrary` to execute the unit tests via [Jest](https://jestjs.io).
|
package/index.esm.css
CHANGED
|
@@ -601,6 +601,9 @@ video {
|
|
|
601
601
|
.pointer-events-none {
|
|
602
602
|
pointer-events: none;
|
|
603
603
|
}
|
|
604
|
+
.pointer-events-auto {
|
|
605
|
+
pointer-events: auto;
|
|
606
|
+
}
|
|
604
607
|
.visible {
|
|
605
608
|
visibility: visible;
|
|
606
609
|
}
|
|
@@ -625,18 +628,27 @@ video {
|
|
|
625
628
|
.left-0 {
|
|
626
629
|
left: 0px;
|
|
627
630
|
}
|
|
631
|
+
.left-1 {
|
|
632
|
+
left: 0.25rem;
|
|
633
|
+
}
|
|
628
634
|
.left-2\/4 {
|
|
629
635
|
left: 50%;
|
|
630
636
|
}
|
|
631
637
|
.right-0 {
|
|
632
638
|
right: 0px;
|
|
633
639
|
}
|
|
640
|
+
.right-1 {
|
|
641
|
+
right: 0.25rem;
|
|
642
|
+
}
|
|
634
643
|
.top-0 {
|
|
635
644
|
top: 0px;
|
|
636
645
|
}
|
|
637
646
|
.top-2\/4 {
|
|
638
647
|
top: 50%;
|
|
639
648
|
}
|
|
649
|
+
.z-50 {
|
|
650
|
+
z-index: 50;
|
|
651
|
+
}
|
|
640
652
|
.z-\[1000\] {
|
|
641
653
|
z-index: 1000;
|
|
642
654
|
}
|
|
@@ -672,6 +684,12 @@ video {
|
|
|
672
684
|
.ml-auto {
|
|
673
685
|
margin-left: auto;
|
|
674
686
|
}
|
|
687
|
+
.mr-2 {
|
|
688
|
+
margin-right: 0.5rem;
|
|
689
|
+
}
|
|
690
|
+
.mt-2 {
|
|
691
|
+
margin-top: 0.5rem;
|
|
692
|
+
}
|
|
675
693
|
.block {
|
|
676
694
|
display: block;
|
|
677
695
|
}
|
|
@@ -717,9 +735,15 @@ video {
|
|
|
717
735
|
.h-56 {
|
|
718
736
|
height: 14rem;
|
|
719
737
|
}
|
|
738
|
+
.h-7 {
|
|
739
|
+
height: 1.75rem;
|
|
740
|
+
}
|
|
720
741
|
.h-8 {
|
|
721
742
|
height: 2rem;
|
|
722
743
|
}
|
|
744
|
+
.h-9 {
|
|
745
|
+
height: 2.25rem;
|
|
746
|
+
}
|
|
723
747
|
.h-full {
|
|
724
748
|
height: 100%;
|
|
725
749
|
}
|
|
@@ -741,6 +765,9 @@ video {
|
|
|
741
765
|
.w-64 {
|
|
742
766
|
width: 16rem;
|
|
743
767
|
}
|
|
768
|
+
.w-7 {
|
|
769
|
+
width: 1.75rem;
|
|
770
|
+
}
|
|
744
771
|
.w-72 {
|
|
745
772
|
width: 18rem;
|
|
746
773
|
}
|
|
@@ -750,6 +777,15 @@ video {
|
|
|
750
777
|
.w-9 {
|
|
751
778
|
width: 2.25rem;
|
|
752
779
|
}
|
|
780
|
+
.w-\[280px\] {
|
|
781
|
+
width: 280px;
|
|
782
|
+
}
|
|
783
|
+
.w-\[300px\] {
|
|
784
|
+
width: 300px;
|
|
785
|
+
}
|
|
786
|
+
.w-auto {
|
|
787
|
+
width: auto;
|
|
788
|
+
}
|
|
753
789
|
.w-full {
|
|
754
790
|
width: 100%;
|
|
755
791
|
}
|
|
@@ -771,6 +807,9 @@ video {
|
|
|
771
807
|
.shrink-0 {
|
|
772
808
|
flex-shrink: 0;
|
|
773
809
|
}
|
|
810
|
+
.border-collapse {
|
|
811
|
+
border-collapse: collapse;
|
|
812
|
+
}
|
|
774
813
|
.transform {
|
|
775
814
|
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));
|
|
776
815
|
}
|
|
@@ -795,6 +834,9 @@ video {
|
|
|
795
834
|
.items-center {
|
|
796
835
|
align-items: center;
|
|
797
836
|
}
|
|
837
|
+
.justify-start {
|
|
838
|
+
justify-content: flex-start;
|
|
839
|
+
}
|
|
798
840
|
.justify-end {
|
|
799
841
|
justify-content: flex-end;
|
|
800
842
|
}
|
|
@@ -813,12 +855,30 @@ video {
|
|
|
813
855
|
.gap-8 {
|
|
814
856
|
gap: 2rem;
|
|
815
857
|
}
|
|
858
|
+
.space-x-1 > :not([hidden]) ~ :not([hidden]) {
|
|
859
|
+
--tw-space-x-reverse: 0;
|
|
860
|
+
margin-right: calc(0.25rem * var(--tw-space-x-reverse));
|
|
861
|
+
margin-left: calc(0.25rem * calc(1 - var(--tw-space-x-reverse)));
|
|
862
|
+
}
|
|
863
|
+
.space-y-1 > :not([hidden]) ~ :not([hidden]) {
|
|
864
|
+
--tw-space-y-reverse: 0;
|
|
865
|
+
margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));
|
|
866
|
+
margin-bottom: calc(0.25rem * var(--tw-space-y-reverse));
|
|
867
|
+
}
|
|
868
|
+
.space-y-4 > :not([hidden]) ~ :not([hidden]) {
|
|
869
|
+
--tw-space-y-reverse: 0;
|
|
870
|
+
margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
|
|
871
|
+
margin-bottom: calc(1rem * var(--tw-space-y-reverse));
|
|
872
|
+
}
|
|
816
873
|
.overflow-hidden {
|
|
817
874
|
overflow: hidden;
|
|
818
875
|
}
|
|
819
876
|
.overflow-y-auto {
|
|
820
877
|
overflow-y: auto;
|
|
821
878
|
}
|
|
879
|
+
.whitespace-nowrap {
|
|
880
|
+
white-space: nowrap;
|
|
881
|
+
}
|
|
822
882
|
.rounded {
|
|
823
883
|
border-radius: 0.25rem;
|
|
824
884
|
}
|
|
@@ -831,6 +891,9 @@ video {
|
|
|
831
891
|
.rounded-lg {
|
|
832
892
|
border-radius: var(--radius);
|
|
833
893
|
}
|
|
894
|
+
.rounded-md {
|
|
895
|
+
border-radius: calc(var(--radius) - 2px);
|
|
896
|
+
}
|
|
834
897
|
.rounded-xl {
|
|
835
898
|
border-radius: 0.75rem;
|
|
836
899
|
}
|
|
@@ -867,6 +930,9 @@ video {
|
|
|
867
930
|
--tw-border-opacity: 1;
|
|
868
931
|
border-color: rgb(156 163 175 / var(--tw-border-opacity));
|
|
869
932
|
}
|
|
933
|
+
.border-input {
|
|
934
|
+
border-color: hsl(var(--input));
|
|
935
|
+
}
|
|
870
936
|
.border-transparent {
|
|
871
937
|
border-color: transparent;
|
|
872
938
|
}
|
|
@@ -892,6 +958,9 @@ video {
|
|
|
892
958
|
--tw-bg-opacity: 1;
|
|
893
959
|
background-color: rgb(245 245 245 / var(--tw-bg-opacity));
|
|
894
960
|
}
|
|
961
|
+
.bg-accent {
|
|
962
|
+
background-color: hsl(var(--accent));
|
|
963
|
+
}
|
|
895
964
|
.bg-background {
|
|
896
965
|
background-color: hsl(var(--background));
|
|
897
966
|
}
|
|
@@ -899,6 +968,9 @@ video {
|
|
|
899
968
|
--tw-bg-opacity: 1;
|
|
900
969
|
background-color: rgb(0 0 0 / var(--tw-bg-opacity));
|
|
901
970
|
}
|
|
971
|
+
.bg-destructive {
|
|
972
|
+
background-color: hsl(var(--destructive));
|
|
973
|
+
}
|
|
902
974
|
.bg-gray-100 {
|
|
903
975
|
--tw-bg-opacity: 1;
|
|
904
976
|
background-color: rgb(243 244 246 / var(--tw-bg-opacity));
|
|
@@ -911,6 +983,18 @@ video {
|
|
|
911
983
|
--tw-bg-opacity: 1;
|
|
912
984
|
background-color: rgb(75 85 99 / var(--tw-bg-opacity));
|
|
913
985
|
}
|
|
986
|
+
.bg-popover {
|
|
987
|
+
background-color: hsl(var(--popover));
|
|
988
|
+
}
|
|
989
|
+
.bg-primary {
|
|
990
|
+
background-color: hsl(var(--primary));
|
|
991
|
+
}
|
|
992
|
+
.bg-secondary {
|
|
993
|
+
background-color: hsl(var(--secondary));
|
|
994
|
+
}
|
|
995
|
+
.bg-transparent {
|
|
996
|
+
background-color: transparent;
|
|
997
|
+
}
|
|
914
998
|
.bg-white {
|
|
915
999
|
--tw-bg-opacity: 1;
|
|
916
1000
|
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
|
@@ -926,9 +1010,15 @@ video {
|
|
|
926
1010
|
-o-object-fit: cover;
|
|
927
1011
|
object-fit: cover;
|
|
928
1012
|
}
|
|
1013
|
+
.p-0 {
|
|
1014
|
+
padding: 0px;
|
|
1015
|
+
}
|
|
929
1016
|
.p-2 {
|
|
930
1017
|
padding: 0.5rem;
|
|
931
1018
|
}
|
|
1019
|
+
.p-3 {
|
|
1020
|
+
padding: 0.75rem;
|
|
1021
|
+
}
|
|
932
1022
|
.p-4 {
|
|
933
1023
|
padding: 1rem;
|
|
934
1024
|
}
|
|
@@ -942,6 +1032,10 @@ video {
|
|
|
942
1032
|
padding-left: 0.5rem;
|
|
943
1033
|
padding-right: 0.5rem;
|
|
944
1034
|
}
|
|
1035
|
+
.px-3 {
|
|
1036
|
+
padding-left: 0.75rem;
|
|
1037
|
+
padding-right: 0.75rem;
|
|
1038
|
+
}
|
|
945
1039
|
.px-4 {
|
|
946
1040
|
padding-left: 1rem;
|
|
947
1041
|
padding-right: 1rem;
|
|
@@ -954,6 +1048,10 @@ video {
|
|
|
954
1048
|
padding-left: 2rem;
|
|
955
1049
|
padding-right: 2rem;
|
|
956
1050
|
}
|
|
1051
|
+
.py-2 {
|
|
1052
|
+
padding-top: 0.5rem;
|
|
1053
|
+
padding-bottom: 0.5rem;
|
|
1054
|
+
}
|
|
957
1055
|
.py-3 {
|
|
958
1056
|
padding-top: 0.75rem;
|
|
959
1057
|
padding-bottom: 0.75rem;
|
|
@@ -986,9 +1084,15 @@ video {
|
|
|
986
1084
|
.pl-12 {
|
|
987
1085
|
padding-left: 3rem;
|
|
988
1086
|
}
|
|
1087
|
+
.pt-1 {
|
|
1088
|
+
padding-top: 0.25rem;
|
|
1089
|
+
}
|
|
989
1090
|
.pt-2 {
|
|
990
1091
|
padding-top: 0.5rem;
|
|
991
1092
|
}
|
|
1093
|
+
.text-left {
|
|
1094
|
+
text-align: left;
|
|
1095
|
+
}
|
|
992
1096
|
.text-center {
|
|
993
1097
|
text-align: center;
|
|
994
1098
|
}
|
|
@@ -999,6 +1103,9 @@ video {
|
|
|
999
1103
|
font-size: 1.5rem;
|
|
1000
1104
|
line-height: 2rem;
|
|
1001
1105
|
}
|
|
1106
|
+
.text-\[0\.8rem\] {
|
|
1107
|
+
font-size: 0.8rem;
|
|
1108
|
+
}
|
|
1002
1109
|
.text-\[20px\] {
|
|
1003
1110
|
font-size: 20px;
|
|
1004
1111
|
}
|
|
@@ -1021,6 +1128,10 @@ video {
|
|
|
1021
1128
|
font-size: 1.25rem;
|
|
1022
1129
|
line-height: 1.75rem;
|
|
1023
1130
|
}
|
|
1131
|
+
.text-xs {
|
|
1132
|
+
font-size: 0.75rem;
|
|
1133
|
+
line-height: 1rem;
|
|
1134
|
+
}
|
|
1024
1135
|
.font-bold {
|
|
1025
1136
|
font-weight: 700;
|
|
1026
1137
|
}
|
|
@@ -1055,6 +1166,12 @@ video {
|
|
|
1055
1166
|
--tw-text-opacity: 1;
|
|
1056
1167
|
color: rgb(115 115 115 / var(--tw-text-opacity));
|
|
1057
1168
|
}
|
|
1169
|
+
.text-accent-foreground {
|
|
1170
|
+
color: hsl(var(--accent-foreground));
|
|
1171
|
+
}
|
|
1172
|
+
.text-destructive-foreground {
|
|
1173
|
+
color: hsl(var(--destructive-foreground));
|
|
1174
|
+
}
|
|
1058
1175
|
.text-gray-400 {
|
|
1059
1176
|
--tw-text-opacity: 1;
|
|
1060
1177
|
color: rgb(156 163 175 / var(--tw-text-opacity));
|
|
@@ -1063,10 +1180,29 @@ video {
|
|
|
1063
1180
|
--tw-text-opacity: 1;
|
|
1064
1181
|
color: rgb(107 114 128 / var(--tw-text-opacity));
|
|
1065
1182
|
}
|
|
1183
|
+
.text-gray-600 {
|
|
1184
|
+
--tw-text-opacity: 1;
|
|
1185
|
+
color: rgb(75 85 99 / var(--tw-text-opacity));
|
|
1186
|
+
}
|
|
1066
1187
|
.text-gray-700 {
|
|
1067
1188
|
--tw-text-opacity: 1;
|
|
1068
1189
|
color: rgb(55 65 81 / var(--tw-text-opacity));
|
|
1069
1190
|
}
|
|
1191
|
+
.text-muted-foreground {
|
|
1192
|
+
color: hsl(var(--muted-foreground));
|
|
1193
|
+
}
|
|
1194
|
+
.text-popover-foreground {
|
|
1195
|
+
color: hsl(var(--popover-foreground));
|
|
1196
|
+
}
|
|
1197
|
+
.text-primary {
|
|
1198
|
+
color: hsl(var(--primary));
|
|
1199
|
+
}
|
|
1200
|
+
.text-primary-foreground {
|
|
1201
|
+
color: hsl(var(--primary-foreground));
|
|
1202
|
+
}
|
|
1203
|
+
.text-secondary-foreground {
|
|
1204
|
+
color: hsl(var(--secondary-foreground));
|
|
1205
|
+
}
|
|
1070
1206
|
.text-white {
|
|
1071
1207
|
--tw-text-opacity: 1;
|
|
1072
1208
|
color: rgb(255 255 255 / var(--tw-text-opacity));
|
|
@@ -1077,6 +1213,18 @@ video {
|
|
|
1077
1213
|
.line-through {
|
|
1078
1214
|
text-decoration-line: line-through;
|
|
1079
1215
|
}
|
|
1216
|
+
.underline-offset-4 {
|
|
1217
|
+
text-underline-offset: 4px;
|
|
1218
|
+
}
|
|
1219
|
+
.opacity-100 {
|
|
1220
|
+
opacity: 1;
|
|
1221
|
+
}
|
|
1222
|
+
.opacity-50 {
|
|
1223
|
+
opacity: 0.5;
|
|
1224
|
+
}
|
|
1225
|
+
.opacity-55 {
|
|
1226
|
+
opacity: 0.55;
|
|
1227
|
+
}
|
|
1080
1228
|
.shadow {
|
|
1081
1229
|
--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
|
1082
1230
|
--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
|
|
@@ -1097,6 +1245,10 @@ video {
|
|
|
1097
1245
|
--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
|
|
1098
1246
|
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
1099
1247
|
}
|
|
1248
|
+
.outline-none {
|
|
1249
|
+
outline: 2px solid transparent;
|
|
1250
|
+
outline-offset: 2px;
|
|
1251
|
+
}
|
|
1100
1252
|
.outline {
|
|
1101
1253
|
outline-style: solid;
|
|
1102
1254
|
}
|
|
@@ -1178,16 +1330,74 @@ video {
|
|
|
1178
1330
|
|
|
1179
1331
|
/* gary */
|
|
1180
1332
|
|
|
1333
|
+
.focus-within\:relative:focus-within {
|
|
1334
|
+
position: relative;
|
|
1335
|
+
}
|
|
1336
|
+
|
|
1337
|
+
.focus-within\:z-20:focus-within {
|
|
1338
|
+
z-index: 20;
|
|
1339
|
+
}
|
|
1340
|
+
|
|
1181
1341
|
.hover\:bg-\[\#D9D9D9\]:hover {
|
|
1182
1342
|
--tw-bg-opacity: 1;
|
|
1183
1343
|
background-color: rgb(217 217 217 / var(--tw-bg-opacity));
|
|
1184
1344
|
}
|
|
1185
1345
|
|
|
1346
|
+
.hover\:bg-accent:hover {
|
|
1347
|
+
background-color: hsl(var(--accent));
|
|
1348
|
+
}
|
|
1349
|
+
|
|
1350
|
+
.hover\:bg-destructive\/90:hover {
|
|
1351
|
+
background-color: hsl(var(--destructive) / 0.9);
|
|
1352
|
+
}
|
|
1353
|
+
|
|
1354
|
+
.hover\:bg-primary:hover {
|
|
1355
|
+
background-color: hsl(var(--primary));
|
|
1356
|
+
}
|
|
1357
|
+
|
|
1358
|
+
.hover\:bg-primary\/90:hover {
|
|
1359
|
+
background-color: hsl(var(--primary) / 0.9);
|
|
1360
|
+
}
|
|
1361
|
+
|
|
1362
|
+
.hover\:bg-secondary\/80:hover {
|
|
1363
|
+
background-color: hsl(var(--secondary) / 0.8);
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1366
|
+
.hover\:text-accent-foreground:hover {
|
|
1367
|
+
color: hsl(var(--accent-foreground));
|
|
1368
|
+
}
|
|
1369
|
+
|
|
1370
|
+
.hover\:text-primary-foreground:hover {
|
|
1371
|
+
color: hsl(var(--primary-foreground));
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1374
|
+
.hover\:underline:hover {
|
|
1375
|
+
text-decoration-line: underline;
|
|
1376
|
+
}
|
|
1377
|
+
|
|
1378
|
+
.hover\:opacity-100:hover {
|
|
1379
|
+
opacity: 1;
|
|
1380
|
+
}
|
|
1381
|
+
|
|
1382
|
+
.focus\:bg-primary:focus {
|
|
1383
|
+
background-color: hsl(var(--primary));
|
|
1384
|
+
}
|
|
1385
|
+
|
|
1386
|
+
.focus\:text-primary-foreground:focus {
|
|
1387
|
+
color: hsl(var(--primary-foreground));
|
|
1388
|
+
}
|
|
1389
|
+
|
|
1186
1390
|
.focus-visible\:outline-none:focus-visible {
|
|
1187
1391
|
outline: 2px solid transparent;
|
|
1188
1392
|
outline-offset: 2px;
|
|
1189
1393
|
}
|
|
1190
1394
|
|
|
1395
|
+
.focus-visible\:ring-1:focus-visible {
|
|
1396
|
+
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
1397
|
+
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
1398
|
+
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
1399
|
+
}
|
|
1400
|
+
|
|
1191
1401
|
.focus-visible\:ring-2:focus-visible {
|
|
1192
1402
|
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
1193
1403
|
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
@@ -1206,6 +1416,10 @@ video {
|
|
|
1206
1416
|
--tw-ring-offset-color: hsl(var(--background));
|
|
1207
1417
|
}
|
|
1208
1418
|
|
|
1419
|
+
.disabled\:pointer-events-none:disabled {
|
|
1420
|
+
pointer-events: none;
|
|
1421
|
+
}
|
|
1422
|
+
|
|
1209
1423
|
.disabled\:cursor-not-allowed:disabled {
|
|
1210
1424
|
cursor: not-allowed;
|
|
1211
1425
|
}
|
|
@@ -1214,6 +1428,30 @@ video {
|
|
|
1214
1428
|
opacity: 0.5;
|
|
1215
1429
|
}
|
|
1216
1430
|
|
|
1431
|
+
.aria-selected\:bg-accent[aria-selected="true"] {
|
|
1432
|
+
background-color: hsl(var(--accent));
|
|
1433
|
+
}
|
|
1434
|
+
|
|
1435
|
+
.aria-selected\:bg-accent\/50[aria-selected="true"] {
|
|
1436
|
+
background-color: hsl(var(--accent) / 0.5);
|
|
1437
|
+
}
|
|
1438
|
+
|
|
1439
|
+
.aria-selected\:text-accent-foreground[aria-selected="true"] {
|
|
1440
|
+
color: hsl(var(--accent-foreground));
|
|
1441
|
+
}
|
|
1442
|
+
|
|
1443
|
+
.aria-selected\:text-muted-foreground[aria-selected="true"] {
|
|
1444
|
+
color: hsl(var(--muted-foreground));
|
|
1445
|
+
}
|
|
1446
|
+
|
|
1447
|
+
.aria-selected\:opacity-100[aria-selected="true"] {
|
|
1448
|
+
opacity: 1;
|
|
1449
|
+
}
|
|
1450
|
+
|
|
1451
|
+
.aria-selected\:opacity-30[aria-selected="true"] {
|
|
1452
|
+
opacity: 0.3;
|
|
1453
|
+
}
|
|
1454
|
+
|
|
1217
1455
|
.data-\[state\=checked\]\:translate-x-4[data-state=checked] {
|
|
1218
1456
|
--tw-translate-x: 1rem;
|
|
1219
1457
|
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));
|
|
@@ -1232,6 +1470,77 @@ video {
|
|
|
1232
1470
|
background-color: hsl(var(--input));
|
|
1233
1471
|
}
|
|
1234
1472
|
|
|
1473
|
+
.data-\[state\=open\]\:animate-in[data-state=open] {
|
|
1474
|
+
animation-name: enter;
|
|
1475
|
+
animation-duration: 150ms;
|
|
1476
|
+
--tw-enter-opacity: initial;
|
|
1477
|
+
--tw-enter-scale: initial;
|
|
1478
|
+
--tw-enter-rotate: initial;
|
|
1479
|
+
--tw-enter-translate-x: initial;
|
|
1480
|
+
--tw-enter-translate-y: initial;
|
|
1481
|
+
}
|
|
1482
|
+
|
|
1483
|
+
.data-\[state\=closed\]\:animate-out[data-state=closed] {
|
|
1484
|
+
animation-name: exit;
|
|
1485
|
+
animation-duration: 150ms;
|
|
1486
|
+
--tw-exit-opacity: initial;
|
|
1487
|
+
--tw-exit-scale: initial;
|
|
1488
|
+
--tw-exit-rotate: initial;
|
|
1489
|
+
--tw-exit-translate-x: initial;
|
|
1490
|
+
--tw-exit-translate-y: initial;
|
|
1491
|
+
}
|
|
1492
|
+
|
|
1493
|
+
.data-\[state\=closed\]\:fade-out-0[data-state=closed] {
|
|
1494
|
+
--tw-exit-opacity: 0;
|
|
1495
|
+
}
|
|
1496
|
+
|
|
1497
|
+
.data-\[state\=open\]\:fade-in-0[data-state=open] {
|
|
1498
|
+
--tw-enter-opacity: 0;
|
|
1499
|
+
}
|
|
1500
|
+
|
|
1501
|
+
.data-\[state\=closed\]\:zoom-out-95[data-state=closed] {
|
|
1502
|
+
--tw-exit-scale: .95;
|
|
1503
|
+
}
|
|
1504
|
+
|
|
1505
|
+
.data-\[state\=open\]\:zoom-in-95[data-state=open] {
|
|
1506
|
+
--tw-enter-scale: .95;
|
|
1507
|
+
}
|
|
1508
|
+
|
|
1509
|
+
.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom] {
|
|
1510
|
+
--tw-enter-translate-y: -0.5rem;
|
|
1511
|
+
}
|
|
1512
|
+
|
|
1513
|
+
.data-\[side\=left\]\:slide-in-from-right-2[data-side=left] {
|
|
1514
|
+
--tw-enter-translate-x: 0.5rem;
|
|
1515
|
+
}
|
|
1516
|
+
|
|
1517
|
+
.data-\[side\=right\]\:slide-in-from-left-2[data-side=right] {
|
|
1518
|
+
--tw-enter-translate-x: -0.5rem;
|
|
1519
|
+
}
|
|
1520
|
+
|
|
1521
|
+
.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top] {
|
|
1522
|
+
--tw-enter-translate-y: 0.5rem;
|
|
1523
|
+
}
|
|
1524
|
+
|
|
1525
|
+
@media (min-width: 640px) {
|
|
1526
|
+
|
|
1527
|
+
.sm\:flex-row {
|
|
1528
|
+
flex-direction: row;
|
|
1529
|
+
}
|
|
1530
|
+
|
|
1531
|
+
.sm\:space-x-4 > :not([hidden]) ~ :not([hidden]) {
|
|
1532
|
+
--tw-space-x-reverse: 0;
|
|
1533
|
+
margin-right: calc(1rem * var(--tw-space-x-reverse));
|
|
1534
|
+
margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse)));
|
|
1535
|
+
}
|
|
1536
|
+
|
|
1537
|
+
.sm\:space-y-0 > :not([hidden]) ~ :not([hidden]) {
|
|
1538
|
+
--tw-space-y-reverse: 0;
|
|
1539
|
+
margin-top: calc(0px * calc(1 - var(--tw-space-y-reverse)));
|
|
1540
|
+
margin-bottom: calc(0px * var(--tw-space-y-reverse));
|
|
1541
|
+
}
|
|
1542
|
+
}
|
|
1543
|
+
|
|
1235
1544
|
@media (min-width: 1024px) {
|
|
1236
1545
|
|
|
1237
1546
|
.lg\:flex {
|
|
@@ -1244,6 +1553,43 @@ video {
|
|
|
1244
1553
|
}
|
|
1245
1554
|
}
|
|
1246
1555
|
|
|
1556
|
+
.\[\&\:has\(\>\.day-range-end\)\]\:rounded-r-md:has(>.day-range-end) {
|
|
1557
|
+
border-top-right-radius: calc(var(--radius) - 2px);
|
|
1558
|
+
border-bottom-right-radius: calc(var(--radius) - 2px);
|
|
1559
|
+
}
|
|
1560
|
+
|
|
1561
|
+
.\[\&\:has\(\>\.day-range-start\)\]\:rounded-l-md:has(>.day-range-start) {
|
|
1562
|
+
border-top-left-radius: calc(var(--radius) - 2px);
|
|
1563
|
+
border-bottom-left-radius: calc(var(--radius) - 2px);
|
|
1564
|
+
}
|
|
1565
|
+
|
|
1566
|
+
.\[\&\:has\(\[aria-selected\]\)\]\:rounded-md:has([aria-selected]) {
|
|
1567
|
+
border-radius: calc(var(--radius) - 2px);
|
|
1568
|
+
}
|
|
1569
|
+
|
|
1570
|
+
.\[\&\:has\(\[aria-selected\]\)\]\:bg-accent:has([aria-selected]) {
|
|
1571
|
+
background-color: hsl(var(--accent));
|
|
1572
|
+
}
|
|
1573
|
+
|
|
1574
|
+
.first\:\[\&\:has\(\[aria-selected\]\)\]\:rounded-l-md:has([aria-selected]):first-child {
|
|
1575
|
+
border-top-left-radius: calc(var(--radius) - 2px);
|
|
1576
|
+
border-bottom-left-radius: calc(var(--radius) - 2px);
|
|
1577
|
+
}
|
|
1578
|
+
|
|
1579
|
+
.last\:\[\&\:has\(\[aria-selected\]\)\]\:rounded-r-md:has([aria-selected]):last-child {
|
|
1580
|
+
border-top-right-radius: calc(var(--radius) - 2px);
|
|
1581
|
+
border-bottom-right-radius: calc(var(--radius) - 2px);
|
|
1582
|
+
}
|
|
1583
|
+
|
|
1584
|
+
.\[\&\:has\(\[aria-selected\]\.day-outside\)\]\:bg-accent\/50:has([aria-selected].day-outside) {
|
|
1585
|
+
background-color: hsl(var(--accent) / 0.5);
|
|
1586
|
+
}
|
|
1587
|
+
|
|
1588
|
+
.\[\&\:has\(\[aria-selected\]\.day-range-end\)\]\:rounded-r-md:has([aria-selected].day-range-end) {
|
|
1589
|
+
border-top-right-radius: calc(var(--radius) - 2px);
|
|
1590
|
+
border-bottom-right-radius: calc(var(--radius) - 2px);
|
|
1591
|
+
}
|
|
1592
|
+
|
|
1247
1593
|
/*
|
|
1248
1594
|
* Replace this with your own classes
|
|
1249
1595
|
*
|
package/package.json
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sunggang/ui-lib",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.13",
|
|
4
4
|
"dependencies": {
|
|
5
|
+
"@radix-ui/react-popover": "^1.0.7",
|
|
6
|
+
"@radix-ui/react-slot": "^1.0.2",
|
|
5
7
|
"@radix-ui/react-switch": "^1.0.3",
|
|
6
8
|
"class-variance-authority": "^0.7.0",
|
|
7
9
|
"clsx": "^2.1.0",
|
|
10
|
+
"date-fns": "^3.6.0",
|
|
11
|
+
"lucide-react": "^0.363.0",
|
|
12
|
+
"react-day-picker": "^8.10.0",
|
|
8
13
|
"tailwind-merge": "^2.2.2",
|
|
9
14
|
"tailwindcss-animate": "^1.0.7"
|
|
10
15
|
},
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
|
3
|
+
declare const buttonVariants: (props?: ({
|
|
4
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
|
|
5
|
+
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
7
|
+
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
8
|
+
asChild?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
11
|
+
export { Button, buttonVariants };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { DayPicker } from 'react-day-picker';
|
|
3
|
+
export type CalendarProps = React.ComponentProps<typeof DayPicker>;
|
|
4
|
+
declare function Calendar({ className, classNames, showOutsideDays, ...props }: CalendarProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare namespace Calendar {
|
|
6
|
+
var displayName: string;
|
|
7
|
+
}
|
|
8
|
+
export { Calendar };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DateRange } from 'react-day-picker';
|
|
2
|
+
interface DateRangePickerProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
disable?: boolean;
|
|
5
|
+
onChange?: (date: DateRange) => void;
|
|
6
|
+
}
|
|
7
|
+
declare function DateRangePicker({ className, disable, onChange, }: DateRangePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare namespace DateRangePicker {
|
|
9
|
+
var displayName: string;
|
|
10
|
+
}
|
|
11
|
+
export { DateRangePicker };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
3
|
+
declare const Popover: React.FC<PopoverPrimitive.PopoverProps>;
|
|
4
|
+
declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
declare const PopoverAnchor: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface SinglePickerProps {
|
|
2
|
+
disable?: boolean;
|
|
3
|
+
onChange?: (date: Date) => void;
|
|
4
|
+
}
|
|
5
|
+
declare function SingleDatePicker({ disable, onChange }: SinglePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare namespace SingleDatePicker {
|
|
7
|
+
var displayName: string;
|
|
8
|
+
}
|
|
9
|
+
export { SingleDatePicker };
|