@tapcart/mobile-components 0.2.12 → 0.3.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/hooks/use-infinite-scroll.d.ts +1 -0
- package/dist/components/hooks/use-infinite-scroll.d.ts.map +1 -1
- package/dist/components/hooks/use-infinite-scroll.js +3 -2
- package/dist/components/hooks/use-scroll-direction.d.ts +1 -1
- package/dist/components/hooks/use-scroll-direction.d.ts.map +1 -1
- package/dist/components/hooks/use-scroll-direction.js +17 -5
- package/dist/components/ui/accordion.js +1 -1
- package/dist/components/ui/badge.d.ts +1 -1
- package/dist/components/ui/button.d.ts.map +1 -1
- package/dist/components/ui/button.js +49 -14
- package/dist/components/ui/checkbox.js +2 -2
- package/dist/components/ui/chip.d.ts.map +1 -1
- package/dist/components/ui/chip.js +3 -3
- package/dist/components/ui/drawer.js +1 -1
- package/dist/components/ui/icon.d.ts.map +1 -1
- package/dist/components/ui/icon.js +5 -1
- package/dist/components/ui/image.d.ts +157 -0
- package/dist/components/ui/image.d.ts.map +1 -0
- package/dist/components/ui/image.js +318 -0
- package/dist/components/ui/line-item-text-icons.d.ts +14 -0
- package/dist/components/ui/line-item-text-icons.d.ts.map +1 -0
- package/dist/components/ui/line-item-text-icons.js +22 -0
- package/dist/components/ui/product-card.d.ts +5 -19
- package/dist/components/ui/product-card.d.ts.map +1 -1
- package/dist/components/ui/product-card.js +77 -24
- package/dist/components/ui/quantity-picker.d.ts +14 -0
- package/dist/components/ui/quantity-picker.d.ts.map +1 -0
- package/dist/components/ui/quantity-picker.js +23 -0
- package/dist/components/ui/radio-group.js +1 -1
- package/dist/components/ui/selectors.d.ts +1 -1
- package/dist/components/ui/selectors.d.ts.map +1 -1
- package/dist/components/ui/selectors.js +20 -4
- package/dist/components/ui/skeleton.js +1 -1
- package/dist/components/ui/slider.d.ts +14 -0
- package/dist/components/ui/slider.d.ts.map +1 -0
- package/dist/components/ui/slider.js +50 -0
- package/dist/components/ui/subscription.d.ts +15 -0
- package/dist/components/ui/subscription.d.ts.map +1 -0
- package/dist/components/ui/subscription.js +24 -0
- package/dist/components/ui/switch.d.ts.map +1 -1
- package/dist/components/ui/switch.js +2 -2
- package/dist/components/ui/tabs.js +1 -1
- package/dist/components/ui/toggle.js +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -0
- package/dist/styles.css +108 -88
- package/package.json +9 -3
- package/dist/components/ThemeProvider.d.ts +0 -3
- package/dist/components/ThemeProvider.d.ts.map +0 -1
- package/dist/components/ThemeProvider.js +0 -18
- package/dist/components/ThemeToggle.d.ts +0 -2
- package/dist/components/ThemeToggle.d.ts.map +0 -1
- package/dist/components/ThemeToggle.js +0 -8
package/dist/styles.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
! tailwindcss v3.
|
|
2
|
+
! tailwindcss v3.3.5 | MIT License | https://tailwindcss.com
|
|
3
3
|
*//*
|
|
4
4
|
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
|
|
5
5
|
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
|
|
@@ -26,20 +26,17 @@
|
|
|
26
26
|
4. Use the user's configured `sans` font-family by default.
|
|
27
27
|
5. Use the user's configured `sans` font-feature-settings by default.
|
|
28
28
|
6. Use the user's configured `sans` font-variation-settings by default.
|
|
29
|
-
7. Disable tap highlights on iOS
|
|
30
29
|
*/
|
|
31
30
|
|
|
32
|
-
html
|
|
33
|
-
:host {
|
|
31
|
+
html {
|
|
34
32
|
line-height: 1.5; /* 1 */
|
|
35
33
|
-webkit-text-size-adjust: 100%; /* 2 */
|
|
36
34
|
-moz-tab-size: 4; /* 3 */
|
|
37
35
|
-o-tab-size: 4;
|
|
38
36
|
tab-size: 4; /* 3 */
|
|
39
|
-
font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */
|
|
37
|
+
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */
|
|
40
38
|
font-feature-settings: normal; /* 5 */
|
|
41
39
|
font-variation-settings: normal; /* 6 */
|
|
42
|
-
-webkit-tap-highlight-color: transparent; /* 7 */
|
|
43
40
|
}
|
|
44
41
|
|
|
45
42
|
/*
|
|
@@ -106,10 +103,8 @@ strong {
|
|
|
106
103
|
}
|
|
107
104
|
|
|
108
105
|
/*
|
|
109
|
-
1. Use the user's configured `mono` font
|
|
110
|
-
2.
|
|
111
|
-
3. Use the user's configured `mono` font-variation-settings by default.
|
|
112
|
-
4. Correct the odd `em` font sizing in all browsers.
|
|
106
|
+
1. Use the user's configured `mono` font family by default.
|
|
107
|
+
2. Correct the odd `em` font sizing in all browsers.
|
|
113
108
|
*/
|
|
114
109
|
|
|
115
110
|
code,
|
|
@@ -117,9 +112,7 @@ kbd,
|
|
|
117
112
|
samp,
|
|
118
113
|
pre {
|
|
119
114
|
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */
|
|
120
|
-
font-
|
|
121
|
-
font-variation-settings: normal; /* 3 */
|
|
122
|
-
font-size: 1em; /* 4 */
|
|
115
|
+
font-size: 1em; /* 2 */
|
|
123
116
|
}
|
|
124
117
|
|
|
125
118
|
/*
|
|
@@ -179,7 +172,6 @@ textarea {
|
|
|
179
172
|
font-size: 100%; /* 1 */
|
|
180
173
|
font-weight: inherit; /* 1 */
|
|
181
174
|
line-height: inherit; /* 1 */
|
|
182
|
-
letter-spacing: inherit; /* 1 */
|
|
183
175
|
color: inherit; /* 1 */
|
|
184
176
|
margin: 0; /* 2 */
|
|
185
177
|
padding: 0; /* 3 */
|
|
@@ -200,9 +192,9 @@ select {
|
|
|
200
192
|
*/
|
|
201
193
|
|
|
202
194
|
button,
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
195
|
+
[type='button'],
|
|
196
|
+
[type='reset'],
|
|
197
|
+
[type='submit'] {
|
|
206
198
|
-webkit-appearance: button; /* 1 */
|
|
207
199
|
background-color: transparent; /* 2 */
|
|
208
200
|
background-image: none; /* 2 */
|
|
@@ -565,10 +557,6 @@ video {
|
|
|
565
557
|
--tw-backdrop-opacity: ;
|
|
566
558
|
--tw-backdrop-saturate: ;
|
|
567
559
|
--tw-backdrop-sepia: ;
|
|
568
|
-
--tw-contain-size: ;
|
|
569
|
-
--tw-contain-layout: ;
|
|
570
|
-
--tw-contain-paint: ;
|
|
571
|
-
--tw-contain-style: ;
|
|
572
560
|
}
|
|
573
561
|
|
|
574
562
|
::backdrop {
|
|
@@ -619,10 +607,6 @@ video {
|
|
|
619
607
|
--tw-backdrop-opacity: ;
|
|
620
608
|
--tw-backdrop-saturate: ;
|
|
621
609
|
--tw-backdrop-sepia: ;
|
|
622
|
-
--tw-contain-size: ;
|
|
623
|
-
--tw-contain-layout: ;
|
|
624
|
-
--tw-contain-paint: ;
|
|
625
|
-
--tw-contain-style: ;
|
|
626
610
|
}
|
|
627
611
|
.container {
|
|
628
612
|
width: 100%;
|
|
@@ -764,6 +748,10 @@ video {
|
|
|
764
748
|
margin-top: 0.75rem;
|
|
765
749
|
margin-bottom: 0.75rem;
|
|
766
750
|
}
|
|
751
|
+
.my-auto {
|
|
752
|
+
margin-top: auto;
|
|
753
|
+
margin-bottom: auto;
|
|
754
|
+
}
|
|
767
755
|
.-ml-4 {
|
|
768
756
|
margin-left: -1rem;
|
|
769
757
|
}
|
|
@@ -773,6 +761,9 @@ video {
|
|
|
773
761
|
.mb-2 {
|
|
774
762
|
margin-bottom: 0.5rem;
|
|
775
763
|
}
|
|
764
|
+
.mb-6 {
|
|
765
|
+
margin-bottom: 1.5rem;
|
|
766
|
+
}
|
|
776
767
|
.ml-2 {
|
|
777
768
|
margin-left: 0.5rem;
|
|
778
769
|
}
|
|
@@ -785,6 +776,9 @@ video {
|
|
|
785
776
|
.mt-2 {
|
|
786
777
|
margin-top: 0.5rem;
|
|
787
778
|
}
|
|
779
|
+
.mt-3 {
|
|
780
|
+
margin-top: 0.75rem;
|
|
781
|
+
}
|
|
788
782
|
.mt-auto {
|
|
789
783
|
margin-top: auto;
|
|
790
784
|
}
|
|
@@ -815,9 +809,21 @@ video {
|
|
|
815
809
|
.aspect-\[4\/5\] {
|
|
816
810
|
aspect-ratio: 4/5;
|
|
817
811
|
}
|
|
812
|
+
.aspect-productImages {
|
|
813
|
+
aspect-ratio: var(--productImage-aspectRatio);
|
|
814
|
+
}
|
|
818
815
|
.aspect-square {
|
|
819
816
|
aspect-ratio: 1 / 1;
|
|
820
817
|
}
|
|
818
|
+
.h-0 {
|
|
819
|
+
height: 0px;
|
|
820
|
+
}
|
|
821
|
+
.h-0\.5 {
|
|
822
|
+
height: 0.125rem;
|
|
823
|
+
}
|
|
824
|
+
.h-1 {
|
|
825
|
+
height: 0.25rem;
|
|
826
|
+
}
|
|
821
827
|
.h-10 {
|
|
822
828
|
height: 2.5rem;
|
|
823
829
|
}
|
|
@@ -845,6 +851,9 @@ video {
|
|
|
845
851
|
.h-64 {
|
|
846
852
|
height: 16rem;
|
|
847
853
|
}
|
|
854
|
+
.h-7 {
|
|
855
|
+
height: 1.75rem;
|
|
856
|
+
}
|
|
848
857
|
.h-8 {
|
|
849
858
|
height: 2rem;
|
|
850
859
|
}
|
|
@@ -881,8 +890,8 @@ video {
|
|
|
881
890
|
.w-10 {
|
|
882
891
|
width: 2.5rem;
|
|
883
892
|
}
|
|
884
|
-
.w-
|
|
885
|
-
width:
|
|
893
|
+
.w-12 {
|
|
894
|
+
width: 3rem;
|
|
886
895
|
}
|
|
887
896
|
.w-14 {
|
|
888
897
|
width: 3.5rem;
|
|
@@ -905,6 +914,9 @@ video {
|
|
|
905
914
|
.w-6 {
|
|
906
915
|
width: 1.5rem;
|
|
907
916
|
}
|
|
917
|
+
.w-7 {
|
|
918
|
+
width: 1.75rem;
|
|
919
|
+
}
|
|
908
920
|
.w-8 {
|
|
909
921
|
width: 2rem;
|
|
910
922
|
}
|
|
@@ -930,6 +942,9 @@ video {
|
|
|
930
942
|
.min-w-\[8rem\] {
|
|
931
943
|
min-width: 8rem;
|
|
932
944
|
}
|
|
945
|
+
.max-w-full {
|
|
946
|
+
max-width: 100%;
|
|
947
|
+
}
|
|
933
948
|
.max-w-lg {
|
|
934
949
|
max-width: 32rem;
|
|
935
950
|
}
|
|
@@ -942,6 +957,9 @@ video {
|
|
|
942
957
|
.shrink-0 {
|
|
943
958
|
flex-shrink: 0;
|
|
944
959
|
}
|
|
960
|
+
.grow {
|
|
961
|
+
flex-grow: 1;
|
|
962
|
+
}
|
|
945
963
|
.grow-0 {
|
|
946
964
|
flex-grow: 0;
|
|
947
965
|
}
|
|
@@ -1083,6 +1101,9 @@ video {
|
|
|
1083
1101
|
.self-start {
|
|
1084
1102
|
align-self: flex-start;
|
|
1085
1103
|
}
|
|
1104
|
+
.self-center {
|
|
1105
|
+
align-self: center;
|
|
1106
|
+
}
|
|
1086
1107
|
.overflow-hidden {
|
|
1087
1108
|
overflow: hidden;
|
|
1088
1109
|
}
|
|
@@ -1095,8 +1116,8 @@ video {
|
|
|
1095
1116
|
.overflow-y-auto {
|
|
1096
1117
|
overflow-y: auto;
|
|
1097
1118
|
}
|
|
1098
|
-
.
|
|
1099
|
-
|
|
1119
|
+
.overflow-y-hidden {
|
|
1120
|
+
overflow-y: hidden;
|
|
1100
1121
|
}
|
|
1101
1122
|
.truncate {
|
|
1102
1123
|
overflow: hidden;
|
|
@@ -1109,9 +1130,6 @@ video {
|
|
|
1109
1130
|
.whitespace-nowrap {
|
|
1110
1131
|
white-space: nowrap;
|
|
1111
1132
|
}
|
|
1112
|
-
.text-wrap {
|
|
1113
|
-
text-wrap: wrap;
|
|
1114
|
-
}
|
|
1115
1133
|
.rounded {
|
|
1116
1134
|
border-radius: 0.25rem;
|
|
1117
1135
|
}
|
|
@@ -1156,6 +1174,9 @@ video {
|
|
|
1156
1174
|
.border {
|
|
1157
1175
|
border-width: 1px;
|
|
1158
1176
|
}
|
|
1177
|
+
.border-0 {
|
|
1178
|
+
border-width: 0px;
|
|
1179
|
+
}
|
|
1159
1180
|
.border-2 {
|
|
1160
1181
|
border-width: 2px;
|
|
1161
1182
|
}
|
|
@@ -1172,6 +1193,15 @@ video {
|
|
|
1172
1193
|
--tw-border-opacity: 1;
|
|
1173
1194
|
border-color: rgb(0 0 0 / var(--tw-border-opacity));
|
|
1174
1195
|
}
|
|
1196
|
+
.border-buttonColors-primaryOutlineColor {
|
|
1197
|
+
border-color: var(--buttonColors-primaryOutlineColor);
|
|
1198
|
+
}
|
|
1199
|
+
.border-buttonColors-secondaryOutlineColor {
|
|
1200
|
+
border-color: var(--buttonColors-secondaryOutlineColor);
|
|
1201
|
+
}
|
|
1202
|
+
.border-coreColors-brandColorPrimary {
|
|
1203
|
+
border-color: var(--coreColors-brandColorPrimary);
|
|
1204
|
+
}
|
|
1175
1205
|
.border-coreColors-dividingLines {
|
|
1176
1206
|
border-color: var(--coreColors-dividingLines);
|
|
1177
1207
|
}
|
|
@@ -1228,10 +1258,6 @@ video {
|
|
|
1228
1258
|
--tw-bg-opacity: 1;
|
|
1229
1259
|
background-color: rgb(245 245 245 / var(--tw-bg-opacity));
|
|
1230
1260
|
}
|
|
1231
|
-
.bg-neutral-300 {
|
|
1232
|
-
--tw-bg-opacity: 1;
|
|
1233
|
-
background-color: rgb(212 212 212 / var(--tw-bg-opacity));
|
|
1234
|
-
}
|
|
1235
1261
|
.bg-productBadging-fill {
|
|
1236
1262
|
background-color: var(--productBadging-fill);
|
|
1237
1263
|
}
|
|
@@ -1439,6 +1465,9 @@ video {
|
|
|
1439
1465
|
.leading-\[130\%\] {
|
|
1440
1466
|
line-height: 130%;
|
|
1441
1467
|
}
|
|
1468
|
+
.leading-\[13px\] {
|
|
1469
|
+
line-height: 13px;
|
|
1470
|
+
}
|
|
1442
1471
|
.leading-\[160\%\] {
|
|
1443
1472
|
line-height: 160%;
|
|
1444
1473
|
}
|
|
@@ -1448,6 +1477,10 @@ video {
|
|
|
1448
1477
|
.leading-none {
|
|
1449
1478
|
line-height: 1;
|
|
1450
1479
|
}
|
|
1480
|
+
.text-black {
|
|
1481
|
+
--tw-text-opacity: 1;
|
|
1482
|
+
color: rgb(0 0 0 / var(--tw-text-opacity));
|
|
1483
|
+
}
|
|
1451
1484
|
.text-buttonColors-destructiveText {
|
|
1452
1485
|
color: var(--buttonColors-destructiveText);
|
|
1453
1486
|
}
|
|
@@ -1635,24 +1668,18 @@ video {
|
|
|
1635
1668
|
.outline-1 {
|
|
1636
1669
|
outline-width: 1px;
|
|
1637
1670
|
}
|
|
1638
|
-
.outline-buttonColors-primaryOutline {
|
|
1639
|
-
outline-color: var(--buttonColors-primaryOutline);
|
|
1640
|
-
}
|
|
1641
|
-
.outline-buttonColors-secondaryOutline {
|
|
1642
|
-
outline-color: var(--buttonColors-secondaryOutline);
|
|
1643
|
-
}
|
|
1644
1671
|
.outline-coreColors-brandColorPrimary {
|
|
1645
1672
|
outline-color: var(--coreColors-brandColorPrimary);
|
|
1646
1673
|
}
|
|
1647
1674
|
.outline-coreColors-dividingLines {
|
|
1648
1675
|
outline-color: var(--coreColors-dividingLines);
|
|
1649
1676
|
}
|
|
1650
|
-
.outline-input {
|
|
1651
|
-
outline-color: hsl(var(--input));
|
|
1652
|
-
}
|
|
1653
1677
|
.outline-stateColors-error {
|
|
1654
1678
|
outline-color: var(--stateColors-error);
|
|
1655
1679
|
}
|
|
1680
|
+
.outline-stateColors-skeleton {
|
|
1681
|
+
outline-color: var(--stateColors-skeleton);
|
|
1682
|
+
}
|
|
1656
1683
|
.ring-0 {
|
|
1657
1684
|
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
1658
1685
|
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
@@ -1661,6 +1688,10 @@ video {
|
|
|
1661
1688
|
.ring-offset-background {
|
|
1662
1689
|
--tw-ring-offset-color: hsl(var(--background));
|
|
1663
1690
|
}
|
|
1691
|
+
.drop-shadow-\[0_3px_1px_0_rgba\(0\2c 0\2c 0\2c 1\)\] {
|
|
1692
|
+
--tw-drop-shadow: drop-shadow(0 3px 1px 0 rgba(0,0,0,1));
|
|
1693
|
+
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);
|
|
1694
|
+
}
|
|
1664
1695
|
.filter {
|
|
1665
1696
|
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);
|
|
1666
1697
|
}
|
|
@@ -1690,6 +1721,12 @@ video {
|
|
|
1690
1721
|
.duration-300 {
|
|
1691
1722
|
transition-duration: 300ms;
|
|
1692
1723
|
}
|
|
1724
|
+
.duration-500 {
|
|
1725
|
+
transition-duration: 500ms;
|
|
1726
|
+
}
|
|
1727
|
+
.ease-in-out {
|
|
1728
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
1729
|
+
}
|
|
1693
1730
|
@keyframes enter {
|
|
1694
1731
|
|
|
1695
1732
|
from {
|
|
@@ -1710,6 +1747,12 @@ video {
|
|
|
1710
1747
|
.duration-300 {
|
|
1711
1748
|
animation-duration: 300ms;
|
|
1712
1749
|
}
|
|
1750
|
+
.duration-500 {
|
|
1751
|
+
animation-duration: 500ms;
|
|
1752
|
+
}
|
|
1753
|
+
.ease-in-out {
|
|
1754
|
+
animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
1755
|
+
}
|
|
1713
1756
|
/* Hide scrollbar for Chrome, Safari and Opera */
|
|
1714
1757
|
.no-scrollbar *::-webkit-scrollbar {
|
|
1715
1758
|
display: none;
|
|
@@ -1757,6 +1800,12 @@ video {
|
|
|
1757
1800
|
.placeholder-shown\:p-4:placeholder-shown {
|
|
1758
1801
|
padding: 1rem;
|
|
1759
1802
|
}
|
|
1803
|
+
.hover\:h-\[18px\]:hover {
|
|
1804
|
+
height: 18px;
|
|
1805
|
+
}
|
|
1806
|
+
.hover\:w-\[18px\]:hover {
|
|
1807
|
+
width: 18px;
|
|
1808
|
+
}
|
|
1760
1809
|
.hover\:bg-accent:hover {
|
|
1761
1810
|
background-color: hsl(var(--accent));
|
|
1762
1811
|
}
|
|
@@ -1778,6 +1827,9 @@ video {
|
|
|
1778
1827
|
.hover\:underline:hover {
|
|
1779
1828
|
text-decoration-line: underline;
|
|
1780
1829
|
}
|
|
1830
|
+
.hover\:\!line-through:hover {
|
|
1831
|
+
text-decoration-line: line-through !important;
|
|
1832
|
+
}
|
|
1781
1833
|
.focus\:border-coreColors-brandColorPrimary:focus {
|
|
1782
1834
|
border-color: var(--coreColors-brandColorPrimary);
|
|
1783
1835
|
}
|
|
@@ -1861,8 +1913,8 @@ video {
|
|
|
1861
1913
|
.disabled\:opacity-50:disabled {
|
|
1862
1914
|
opacity: 0.5;
|
|
1863
1915
|
}
|
|
1864
|
-
.disabled\:
|
|
1865
|
-
|
|
1916
|
+
.disabled\:opacity-70:disabled {
|
|
1917
|
+
opacity: 0.7;
|
|
1866
1918
|
}
|
|
1867
1919
|
.group:hover .group-hover\:opacity-100 {
|
|
1868
1920
|
opacity: 1;
|
|
@@ -1918,8 +1970,8 @@ video {
|
|
|
1918
1970
|
.data-\[disabled\]\:pointer-events-none[data-disabled] {
|
|
1919
1971
|
pointer-events: none;
|
|
1920
1972
|
}
|
|
1921
|
-
.data-\[state\=checked\]\:translate-x-
|
|
1922
|
-
--tw-translate-x: 1.
|
|
1973
|
+
.data-\[state\=checked\]\:translate-x-6[data-state=checked] {
|
|
1974
|
+
--tw-translate-x: 1.5rem;
|
|
1923
1975
|
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));
|
|
1924
1976
|
}
|
|
1925
1977
|
.data-\[state\=unchecked\]\:translate-x-0[data-state=unchecked] {
|
|
@@ -1964,14 +2016,14 @@ video {
|
|
|
1964
2016
|
.data-\[state\=open\]\:animate-accordion-down[data-state=open] {
|
|
1965
2017
|
animation: accordion-down 0.2s ease-out;
|
|
1966
2018
|
}
|
|
1967
|
-
.data-\[state\=checked\]\:bg-
|
|
1968
|
-
background-color:
|
|
2019
|
+
.data-\[state\=checked\]\:bg-stateColors-success[data-state=checked] {
|
|
2020
|
+
background-color: var(--stateColors-success);
|
|
1969
2021
|
}
|
|
1970
2022
|
.data-\[state\=on\]\:bg-accent[data-state=on] {
|
|
1971
2023
|
background-color: hsl(var(--accent));
|
|
1972
2024
|
}
|
|
1973
|
-
.data-\[state\=unchecked\]\:bg-
|
|
1974
|
-
background-color:
|
|
2025
|
+
.data-\[state\=unchecked\]\:bg-stateColors-disabled[data-state=unchecked] {
|
|
2026
|
+
background-color: var(--stateColors-disabled);
|
|
1975
2027
|
}
|
|
1976
2028
|
.data-\[icon\=true\]\:pr-10[data-icon=true] {
|
|
1977
2029
|
padding-right: 2.5rem;
|
|
@@ -2063,7 +2115,7 @@ video {
|
|
|
2063
2115
|
.data-\[state\=open\]\:duration-500[data-state=open] {
|
|
2064
2116
|
animation-duration: 500ms;
|
|
2065
2117
|
}
|
|
2066
|
-
.dark\:bg-neutral-900
|
|
2118
|
+
:is(.dark .dark\:bg-neutral-900) {
|
|
2067
2119
|
--tw-bg-opacity: 1;
|
|
2068
2120
|
background-color: rgb(23 23 23 / var(--tw-bg-opacity));
|
|
2069
2121
|
}
|
|
@@ -2107,18 +2159,8 @@ video {
|
|
|
2107
2159
|
.\[\&\>div\>button\]\:border-coreColors-brandColorPrimary>div>button {
|
|
2108
2160
|
border-color: var(--coreColors-brandColorPrimary);
|
|
2109
2161
|
}
|
|
2110
|
-
.\[\&\>
|
|
2111
|
-
|
|
2112
|
-
color: rgb(0 0 0 / var(--tw-text-opacity));
|
|
2113
|
-
}
|
|
2114
|
-
.\[\&\>p\]\:text-buttonColors-primaryText>p {
|
|
2115
|
-
color: var(--buttonColors-primaryText);
|
|
2116
|
-
}
|
|
2117
|
-
.\[\&\>p\]\:text-buttonColors-secondaryText>p {
|
|
2118
|
-
color: var(--buttonColors-secondaryText);
|
|
2119
|
-
}
|
|
2120
|
-
.\[\&\>p\]\:text-coreColors-pageColor>p {
|
|
2121
|
-
color: var(--coreColors-pageColor);
|
|
2162
|
+
.\[\&\>div\]\:w-full>div {
|
|
2163
|
+
width: 100%;
|
|
2122
2164
|
}
|
|
2123
2165
|
.\[\&\>p\]\:text-stateColors-disabled>p {
|
|
2124
2166
|
color: var(--stateColors-disabled);
|
|
@@ -2132,9 +2174,6 @@ video {
|
|
|
2132
2174
|
.\[\&\>p\]\:\!line-through>p {
|
|
2133
2175
|
text-decoration-line: line-through !important;
|
|
2134
2176
|
}
|
|
2135
|
-
.hover\:\[\&\>p\]\:text-accent-foreground>p:hover {
|
|
2136
|
-
color: hsl(var(--accent-foreground));
|
|
2137
|
-
}
|
|
2138
2177
|
.\[\&\[data-state\=open\]\]\:outline-coreColors-brandColorPrimary[data-state=open] {
|
|
2139
2178
|
outline-color: var(--coreColors-brandColorPrimary);
|
|
2140
2179
|
}
|
|
@@ -2161,25 +2200,6 @@ video {
|
|
|
2161
2200
|
.\[\&_p\]\:text-stateColors-disabled p {
|
|
2162
2201
|
color: var(--stateColors-disabled);
|
|
2163
2202
|
}
|
|
2164
|
-
.\[\&_svg\]\:text-black svg {
|
|
2165
|
-
--tw-text-opacity: 1;
|
|
2166
|
-
color: rgb(0 0 0 / var(--tw-text-opacity));
|
|
2167
|
-
}
|
|
2168
|
-
.\[\&_svg\]\:text-buttonColors-primaryText svg {
|
|
2169
|
-
color: var(--buttonColors-primaryText);
|
|
2170
|
-
}
|
|
2171
|
-
.\[\&_svg\]\:text-buttonColors-secondaryText svg {
|
|
2172
|
-
color: var(--buttonColors-secondaryText);
|
|
2173
|
-
}
|
|
2174
|
-
.\[\&_svg\]\:text-coreColors-pageColor svg {
|
|
2175
|
-
color: var(--coreColors-pageColor);
|
|
2176
|
-
}
|
|
2177
|
-
.\[\&_svg\]\:text-textColors-primaryColor svg {
|
|
2178
|
-
color: var(--textColors-primaryColor, #121212ff);
|
|
2179
|
-
}
|
|
2180
|
-
.hover\:\[\&_svg\]\:text-accent-foreground svg:hover {
|
|
2181
|
-
color: hsl(var(--accent-foreground));
|
|
2182
|
-
}
|
|
2183
2203
|
.active\:\[\&_svg\]\:text-stateColors-favorites svg:active {
|
|
2184
2204
|
color: var(--stateColors-favorites);
|
|
2185
2205
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tapcart/mobile-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"style": "dist/styles.css",
|
|
@@ -17,7 +17,9 @@
|
|
|
17
17
|
"build:styles": "postcss styles/globals.css -o dist/styles.css",
|
|
18
18
|
"build:ts": "tsc -p tsconfig.json && tsc-alias",
|
|
19
19
|
"build": "pnpm run build:ts && pnpm run build:styles",
|
|
20
|
-
"dev": "tsc -w -p tsconfig.json"
|
|
20
|
+
"dev:ts": "tsc -w -p tsconfig.json",
|
|
21
|
+
"dev:styles": "npx tailwindcss -i styles/globals.css -o dist/styles.css --watch",
|
|
22
|
+
"dev": "concurrently \"pnpm run dev:ts\" \"pnpm run dev:styles\""
|
|
21
23
|
},
|
|
22
24
|
"peerDependencies": {
|
|
23
25
|
"react": "^17.0.2 || ^18.0.0",
|
|
@@ -28,6 +30,9 @@
|
|
|
28
30
|
"@types/react": "^18.2.0",
|
|
29
31
|
"@types/react-dom": "^18.2.0",
|
|
30
32
|
"autoprefixer": "^10.4.14",
|
|
33
|
+
"chokidar-cli": "^3.0.0",
|
|
34
|
+
"app-studio-types": "workspace:*",
|
|
35
|
+
"concurrently": "^8.2.2",
|
|
31
36
|
"eslint": "^7.32.0",
|
|
32
37
|
"eslint-config-custom": "workspace:*",
|
|
33
38
|
"postcss": "^8.4.24",
|
|
@@ -41,12 +46,13 @@
|
|
|
41
46
|
"@radix-ui/react-alert-dialog": "^1.0.5",
|
|
42
47
|
"@radix-ui/react-aspect-ratio": "^1.0.3",
|
|
43
48
|
"@radix-ui/react-checkbox": "^1.0.4",
|
|
44
|
-
"@radix-ui/react-dropdown-menu": "^2.1.1",
|
|
45
49
|
"@radix-ui/react-dialog": "^1.0.5",
|
|
50
|
+
"@radix-ui/react-dropdown-menu": "^2.1.1",
|
|
46
51
|
"@radix-ui/react-label": "^2.0.2",
|
|
47
52
|
"@radix-ui/react-radio-group": "^1.1.3",
|
|
48
53
|
"@radix-ui/react-scroll-area": "^1.0.5",
|
|
49
54
|
"@radix-ui/react-separator": "^1.0.3",
|
|
55
|
+
"@radix-ui/react-slider": "^1.1.2",
|
|
50
56
|
"@radix-ui/react-slot": "^1.0.2",
|
|
51
57
|
"@radix-ui/react-switch": "^1.0.3",
|
|
52
58
|
"@radix-ui/react-toast": "^1.1.5",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../components/ThemeProvider.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAE3D,wBAAgB,aAAa,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,2CAEvE"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
-
var t = {};
|
|
4
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
-
t[p] = s[p];
|
|
6
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
-
t[p[i]] = s[p[i]];
|
|
10
|
-
}
|
|
11
|
-
return t;
|
|
12
|
-
};
|
|
13
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
-
import { ThemeProvider as NextThemesProvider } from "next-themes";
|
|
15
|
-
export function ThemeProvider(_a) {
|
|
16
|
-
var { children } = _a, props = __rest(_a, ["children"]);
|
|
17
|
-
return _jsx(NextThemesProvider, Object.assign({}, props, { children: children }), void 0);
|
|
18
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeToggle.d.ts","sourceRoot":"","sources":["../../components/ThemeToggle.tsx"],"names":[],"mappings":"AAOA,wBAAgB,WAAW,4CAc1B"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { useTheme } from "next-themes";
|
|
4
|
-
import { Button } from "../components/ui/button";
|
|
5
|
-
export function ThemeToggle() {
|
|
6
|
-
const { setTheme, theme } = useTheme();
|
|
7
|
-
return (_jsxs(Button, Object.assign({ variant: "ghost", size: "sm", onClick: () => setTheme(theme === "light" ? "dark" : "light") }, { children: [_jsx("div", { className: "rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0" }, void 0), _jsx("div", { className: "absolute rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100" }, void 0), _jsx("span", Object.assign({ className: "sr-only" }, { children: "Toggle theme" }), void 0)] }), void 0));
|
|
8
|
-
}
|