@tapcart/mobile-components 0.1.43 → 0.2.1
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/ui/chip.d.ts.map +1 -1
- package/dist/components/ui/chip.js +5 -2
- package/dist/components/ui/input.d.ts +9 -1
- package/dist/components/ui/input.d.ts.map +1 -1
- package/dist/components/ui/input.js +17 -3
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/lib/utils.d.ts +2 -0
- package/dist/lib/utils.d.ts.map +1 -1
- package/dist/lib/utils.js +19 -0
- package/dist/{globals.css → styles.css} +186 -14
- package/package.json +3 -3
- package/dist/components/ui/icon.d.ts +0 -11
- package/dist/components/ui/icon.d.ts.map +0 -1
- package/dist/components/ui/icon.js +0 -30
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chip.d.ts","sourceRoot":"","sources":["../../../components/ui/chip.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"chip.d.ts","sourceRoot":"","sources":["../../../components/ui/chip.tsx"],"names":[],"mappings":"AACA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAGlE,OAAO,KAAmB,MAAM,OAAO,CAAA;AAEvC,QAAA,MAAM,YAAY;;;mFAkBjB,CAAC;AAEF,KAAK,SAAS,GAAG,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,GAAG,YAAY,CAAC,OAAO,YAAY,CAAC,GAAG;IAC3F,IAAI,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAChC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEF,QAAA,MAAM,IAAI;;;;;;qBAHQ,IAAI;wCA0BrB,CAAC;AAGF,KAAK,kBAAkB,GAAG;IACxB,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC,SAAS,CAAC,EAAE,CAAC;CAC3C,CAAC;AAEF,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAe/C,CAAC;AAEF,OAAO,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
3
|
var t = {};
|
|
3
4
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
@@ -13,7 +14,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
13
14
|
import { cva } from "class-variance-authority";
|
|
14
15
|
import { cn } from "../../lib/utils";
|
|
15
16
|
import React, { useState } from "react";
|
|
16
|
-
const chipVariants = cva("inline-flex items-center justify-center rounded
|
|
17
|
+
const chipVariants = cva("inline-flex items-center justify-center rounded border border-coreColors-dividingLines text-[12px] transition-colors", {
|
|
17
18
|
variants: {
|
|
18
19
|
variant: {
|
|
19
20
|
primary: "bg-coreColors-pageColor text-textColors-primaryColor",
|
|
@@ -42,6 +43,8 @@ const Chip = React.forwardRef((_a, ref) => {
|
|
|
42
43
|
});
|
|
43
44
|
Chip.displayName = 'Chip';
|
|
44
45
|
const MultipleChips = ({ children }) => {
|
|
45
|
-
return (_jsxs("div", Object.assign({ className: "relative mt-2 mb-4" }, { children: [_jsx("div", Object.assign({ className: "flex
|
|
46
|
+
return (_jsxs("div", Object.assign({ className: "relative mt-2 mb-4" }, { children: [_jsx("div", Object.assign({ className: "flex overflow-x-auto no-scrollbar" }, { children: children.map((chip, index) => (_jsx("div", Object.assign({ className: cn("shrink-0", {
|
|
47
|
+
"mr-2": index < children.length - 1,
|
|
48
|
+
}) }, { children: chip }), index))) })), _jsx("div", { className: "fade-right" })] })));
|
|
46
49
|
};
|
|
47
50
|
export { Chip, MultipleChips };
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
|
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
|
3
|
+
declare const inputVariants: (props?: ({
|
|
4
|
+
error?: boolean | null | undefined;
|
|
5
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
6
|
+
export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement>, VariantProps<typeof inputVariants> {
|
|
7
|
+
id: string;
|
|
8
|
+
label?: string;
|
|
9
|
+
icon?: string;
|
|
10
|
+
asChild?: boolean;
|
|
3
11
|
}
|
|
4
12
|
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
5
13
|
export { Input };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../components/ui/input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../components/ui/input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAGjE,QAAA,MAAM,aAAa;;mFAalB,CAAA;AAED,MAAM,WAAW,UACf,SAAQ,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EACjD,YAAY,CAAC,OAAO,aAAa,CAAC;IACpC,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,QAAA,MAAM,KAAK,qFA2BV,CAAA;AAGD,OAAO,EAAE,KAAK,EAAE,CAAA"}
|
|
@@ -9,12 +9,26 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
9
9
|
}
|
|
10
10
|
return t;
|
|
11
11
|
};
|
|
12
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
import * as React from "react";
|
|
14
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
15
|
+
import { cva } from "class-variance-authority";
|
|
14
16
|
import { cn } from "../../lib/utils";
|
|
17
|
+
const inputVariants = cva("flex h-14 w-full rounded border border-coreColors-dividingLines bg-coreColors-inputBackground px-4 pt-5 pb-2 placeholder-shown:p-4 text-textColors-primaryColor text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-textColors-secondaryColor focus-visible:outline-none focus-visible:ring-0 disabled:cursor-not-allowed disabled:opacity-50 focus:border-coreColors-brandColorPrimary peer data-[icon=true]:pr-10", {
|
|
18
|
+
variants: {
|
|
19
|
+
error: {
|
|
20
|
+
true: "border-stateColors-error text-stateColors-error placeholder:text-stateColors-error focus:border-stateColors-error [&+label]:text-stateColors-error",
|
|
21
|
+
false: "",
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
defaultVariants: {
|
|
25
|
+
error: false,
|
|
26
|
+
},
|
|
27
|
+
});
|
|
15
28
|
const Input = React.forwardRef((_a, ref) => {
|
|
16
|
-
var { className, type } = _a, props = __rest(_a, ["className", "type"]);
|
|
17
|
-
|
|
29
|
+
var { className, error = false, id, type, label, icon, asChild } = _a, props = __rest(_a, ["className", "error", "id", "type", "label", "icon", "asChild"]);
|
|
30
|
+
const Comp = asChild ? Slot : "div";
|
|
31
|
+
return (_jsxs(Comp, Object.assign({ className: "relative" }, { children: [_jsx("input", Object.assign({ id: id, type: type, className: cn(inputVariants({ error }), className), "data-icon": !!icon, ref: ref }, props)), label ? (_jsx("label", Object.assign({ htmlFor: id, className: "absolute text-[10px] text-textColors-secondaryColor top-2 z-10 h-4 origin-[0] start-4 opacity-100 peer-placeholder-shown:opacity-0" }, { children: label }))) : null] })));
|
|
18
32
|
});
|
|
19
33
|
Input.displayName = "Input";
|
|
20
34
|
export { Input };
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ export * from "./components/ui/button";
|
|
|
2
2
|
export * from "./components/ui/input";
|
|
3
3
|
export * from "./components/ui/aspect-ratio";
|
|
4
4
|
export * from "./components/ui/accordion";
|
|
5
|
-
export * from "./components/ui/icon";
|
|
6
5
|
export * from "./components/ui/carousel";
|
|
7
6
|
export * from "./components/ui/container";
|
|
8
7
|
export * from "./components/ui/grid";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.tsx"],"names":[],"mappings":"AAGA,cAAc,wBAAwB,CAAA;AACtC,cAAc,uBAAuB,CAAA;AACrC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,2BAA2B,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.tsx"],"names":[],"mappings":"AAGA,cAAc,wBAAwB,CAAA;AACtC,cAAc,uBAAuB,CAAA;AACrC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,2BAA2B,CAAA;AAEzC,cAAc,0BAA0B,CAAA;AACxC,cAAc,2BAA2B,CAAA;AACzC,cAAc,sBAAsB,CAAA;AACpC,cAAc,uBAAuB,CAAA;AACrC,cAAc,2BAA2B,CAAA;AACzC,cAAc,uBAAuB,CAAA;AACrC,cAAc,uBAAuB,CAAA;AACrC,cAAc,uBAAuB,CAAA;AACrC,cAAc,0BAA0B,CAAA;AACxC,cAAc,sBAAsB,CAAA;AACpC,cAAc,wBAAwB,CAAA;AACtC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,wBAAwB,CAAA;AACtC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,uBAAuB,CAAA;AACrC,cAAc,yBAAyB,CAAA;AACvC,cAAc,sBAAsB,CAAA;AACpC,cAAc,2BAA2B,CAAA;AACzC,cAAc,0BAA0B,CAAA;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC1D,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ export * from "./components/ui/button";
|
|
|
3
3
|
export * from "./components/ui/input";
|
|
4
4
|
export * from "./components/ui/aspect-ratio";
|
|
5
5
|
export * from "./components/ui/accordion";
|
|
6
|
-
export * from "./components/ui/icon"
|
|
6
|
+
// export * from "./components/ui/icon"
|
|
7
7
|
export * from "./components/ui/carousel";
|
|
8
8
|
export * from "./components/ui/container";
|
|
9
9
|
export * from "./components/ui/grid";
|
package/dist/lib/utils.d.ts
CHANGED
package/dist/lib/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../lib/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAQ,MAAM,MAAM,CAAA;AAGvC,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC"}
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../lib/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAQ,MAAM,MAAM,CAAA;AAGvC,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC;AAED,eAAO,MAAM,eAAe,UAc3B,CAAA;AAED,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,CAAA"}
|
package/dist/lib/utils.js
CHANGED
|
@@ -3,3 +3,22 @@ import { twMerge } from "tailwind-merge";
|
|
|
3
3
|
export function cn(...inputs) {
|
|
4
4
|
return twMerge(clsx(inputs));
|
|
5
5
|
}
|
|
6
|
+
export const iconColorLevels = [
|
|
7
|
+
"coreColors-primaryIcon",
|
|
8
|
+
"coreColors-secondaryIcon",
|
|
9
|
+
"coreColors-headerIcon",
|
|
10
|
+
"coreColors-brandColorPrimary",
|
|
11
|
+
"stateColors-subscriptions",
|
|
12
|
+
"stateColors-favorites",
|
|
13
|
+
"stateColors-reviews",
|
|
14
|
+
"stateColors-success",
|
|
15
|
+
"stateColors-error",
|
|
16
|
+
"stateColors-warning",
|
|
17
|
+
"stateColors-disabled",
|
|
18
|
+
"buttonColors-primaryText",
|
|
19
|
+
"buttonColors-secondaryText",
|
|
20
|
+
];
|
|
21
|
+
export const iconColorVariantClasses = {};
|
|
22
|
+
for (let iconColorLevel of iconColorLevels) {
|
|
23
|
+
iconColorVariantClasses[iconColorLevel] = `text-${iconColorLevel}`;
|
|
24
|
+
}
|
|
@@ -686,6 +686,9 @@ video {
|
|
|
686
686
|
.right-2 {
|
|
687
687
|
right: 0.5rem;
|
|
688
688
|
}
|
|
689
|
+
.start-4 {
|
|
690
|
+
inset-inline-start: 1rem;
|
|
691
|
+
}
|
|
689
692
|
.top-0 {
|
|
690
693
|
top: 0px;
|
|
691
694
|
}
|
|
@@ -698,6 +701,9 @@ video {
|
|
|
698
701
|
.top-\[50\%\] {
|
|
699
702
|
top: 50%;
|
|
700
703
|
}
|
|
704
|
+
.z-10 {
|
|
705
|
+
z-index: 10;
|
|
706
|
+
}
|
|
701
707
|
.z-50 {
|
|
702
708
|
z-index: 50;
|
|
703
709
|
}
|
|
@@ -744,6 +750,9 @@ video {
|
|
|
744
750
|
.h-11 {
|
|
745
751
|
height: 2.75rem;
|
|
746
752
|
}
|
|
753
|
+
.h-14 {
|
|
754
|
+
height: 3.5rem;
|
|
755
|
+
}
|
|
747
756
|
.h-2 {
|
|
748
757
|
height: 0.5rem;
|
|
749
758
|
}
|
|
@@ -826,6 +835,9 @@ video {
|
|
|
826
835
|
.basis-full {
|
|
827
836
|
flex-basis: 100%;
|
|
828
837
|
}
|
|
838
|
+
.origin-\[0\] {
|
|
839
|
+
transform-origin: 0;
|
|
840
|
+
}
|
|
829
841
|
.-translate-x-1\/2 {
|
|
830
842
|
--tw-translate-x: -50%;
|
|
831
843
|
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));
|
|
@@ -964,9 +976,6 @@ video {
|
|
|
964
976
|
.rounded {
|
|
965
977
|
border-radius: 0.25rem;
|
|
966
978
|
}
|
|
967
|
-
.rounded-\[4px\] {
|
|
968
|
-
border-radius: 4px;
|
|
969
|
-
}
|
|
970
979
|
.rounded-\[inherit\] {
|
|
971
980
|
border-radius: inherit;
|
|
972
981
|
}
|
|
@@ -1002,12 +1011,18 @@ video {
|
|
|
1002
1011
|
--tw-border-opacity: 1;
|
|
1003
1012
|
border-color: rgb(0 0 0 / var(--tw-border-opacity));
|
|
1004
1013
|
}
|
|
1014
|
+
.border-coreColors-dividingLines {
|
|
1015
|
+
border-color: var(--coreColors-dividingLines);
|
|
1016
|
+
}
|
|
1005
1017
|
.border-destructive {
|
|
1006
1018
|
border-color: hsl(var(--destructive));
|
|
1007
1019
|
}
|
|
1008
1020
|
.border-input {
|
|
1009
1021
|
border-color: hsl(var(--input));
|
|
1010
1022
|
}
|
|
1023
|
+
.border-stateColors-error {
|
|
1024
|
+
border-color: var(--stateColors-error);
|
|
1025
|
+
}
|
|
1011
1026
|
.border-transparent {
|
|
1012
1027
|
border-color: transparent;
|
|
1013
1028
|
}
|
|
@@ -1036,6 +1051,9 @@ video {
|
|
|
1036
1051
|
.bg-buttonColors-secondaryFill {
|
|
1037
1052
|
background-color: var(--buttonColors-secondaryFill);
|
|
1038
1053
|
}
|
|
1054
|
+
.bg-coreColors-inputBackground {
|
|
1055
|
+
background-color: var(--coreColors-inputBackground);
|
|
1056
|
+
}
|
|
1039
1057
|
.bg-coreColors-pageColor {
|
|
1040
1058
|
background-color: var(--coreColors-pageColor);
|
|
1041
1059
|
}
|
|
@@ -1061,9 +1079,6 @@ video {
|
|
|
1061
1079
|
--tw-bg-opacity: 1;
|
|
1062
1080
|
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
|
1063
1081
|
}
|
|
1064
|
-
.fill-primary-foreground {
|
|
1065
|
-
fill: hsl(var(--primary-foreground));
|
|
1066
|
-
}
|
|
1067
1082
|
.p-1 {
|
|
1068
1083
|
padding: 0.25rem;
|
|
1069
1084
|
}
|
|
@@ -1115,10 +1130,6 @@ video {
|
|
|
1115
1130
|
padding-top: 0.125rem;
|
|
1116
1131
|
padding-bottom: 0.125rem;
|
|
1117
1132
|
}
|
|
1118
|
-
.py-2 {
|
|
1119
|
-
padding-top: 0.5rem;
|
|
1120
|
-
padding-bottom: 0.5rem;
|
|
1121
|
-
}
|
|
1122
1133
|
.py-3 {
|
|
1123
1134
|
padding-top: 0.75rem;
|
|
1124
1135
|
padding-bottom: 0.75rem;
|
|
@@ -1127,6 +1138,9 @@ video {
|
|
|
1127
1138
|
padding-top: 1rem;
|
|
1128
1139
|
padding-bottom: 1rem;
|
|
1129
1140
|
}
|
|
1141
|
+
.pb-2 {
|
|
1142
|
+
padding-bottom: 0.5rem;
|
|
1143
|
+
}
|
|
1130
1144
|
.pb-4 {
|
|
1131
1145
|
padding-bottom: 1rem;
|
|
1132
1146
|
}
|
|
@@ -1142,6 +1156,9 @@ video {
|
|
|
1142
1156
|
.pt-4 {
|
|
1143
1157
|
padding-top: 1rem;
|
|
1144
1158
|
}
|
|
1159
|
+
.pt-5 {
|
|
1160
|
+
padding-top: 1.25rem;
|
|
1161
|
+
}
|
|
1145
1162
|
.text-center {
|
|
1146
1163
|
text-align: center;
|
|
1147
1164
|
}
|
|
@@ -1149,6 +1166,12 @@ video {
|
|
|
1149
1166
|
font-size: 1.5rem;
|
|
1150
1167
|
line-height: 2rem;
|
|
1151
1168
|
}
|
|
1169
|
+
.text-\[10px\] {
|
|
1170
|
+
font-size: 10px;
|
|
1171
|
+
}
|
|
1172
|
+
.text-\[12px\] {
|
|
1173
|
+
font-size: 12px;
|
|
1174
|
+
}
|
|
1152
1175
|
.text-base {
|
|
1153
1176
|
font-size: 1rem;
|
|
1154
1177
|
line-height: 1.5rem;
|
|
@@ -1193,15 +1216,84 @@ video {
|
|
|
1193
1216
|
--tw-text-opacity: 1;
|
|
1194
1217
|
color: rgb(0 0 0 / var(--tw-text-opacity));
|
|
1195
1218
|
}
|
|
1219
|
+
.text-buttonColors-destructiveText {
|
|
1220
|
+
color: var(--buttonColors-destructiveText);
|
|
1221
|
+
}
|
|
1222
|
+
.text-buttonColors-disabled {
|
|
1223
|
+
color: var(--buttonColors-disabled);
|
|
1224
|
+
}
|
|
1225
|
+
.text-buttonColors-primaryFill {
|
|
1226
|
+
color: var(--buttonColors-primaryFill);
|
|
1227
|
+
}
|
|
1228
|
+
.text-buttonColors-primaryOutline {
|
|
1229
|
+
color: var(--buttonColors-primaryOutline);
|
|
1230
|
+
}
|
|
1231
|
+
.text-buttonColors-primaryOutlineColor {
|
|
1232
|
+
color: var(--buttonColors-primaryOutlineColor);
|
|
1233
|
+
}
|
|
1234
|
+
.text-buttonColors-primaryOutlineEnabled {
|
|
1235
|
+
color: var(--buttonColors-primaryOutlineEnabled);
|
|
1236
|
+
}
|
|
1237
|
+
.text-buttonColors-primaryShadow {
|
|
1238
|
+
color: var(--buttonColors-primaryShadow);
|
|
1239
|
+
}
|
|
1240
|
+
.text-buttonColors-primaryShadowEnabled {
|
|
1241
|
+
color: var(--buttonColors-primaryShadowEnabled);
|
|
1242
|
+
}
|
|
1196
1243
|
.text-buttonColors-primaryText {
|
|
1197
1244
|
color: var(--buttonColors-primaryText);
|
|
1198
1245
|
}
|
|
1246
|
+
.text-buttonColors-secondaryFill {
|
|
1247
|
+
color: var(--buttonColors-secondaryFill);
|
|
1248
|
+
}
|
|
1249
|
+
.text-buttonColors-secondaryOutlineColor {
|
|
1250
|
+
color: var(--buttonColors-secondaryOutlineColor);
|
|
1251
|
+
}
|
|
1252
|
+
.text-buttonColors-secondaryOutlineEnabled {
|
|
1253
|
+
color: var(--buttonColors-secondaryOutlineEnabled);
|
|
1254
|
+
}
|
|
1255
|
+
.text-buttonColors-secondaryShadowEnabled {
|
|
1256
|
+
color: var(--buttonColors-secondaryShadowEnabled);
|
|
1257
|
+
}
|
|
1199
1258
|
.text-buttonColors-secondaryText {
|
|
1200
1259
|
color: var(--buttonColors-secondaryText);
|
|
1201
1260
|
}
|
|
1261
|
+
.text-coreColors-brandColorPrimary {
|
|
1262
|
+
color: var(--coreColors-brandColorPrimary);
|
|
1263
|
+
}
|
|
1264
|
+
.text-coreColors-dividingLines {
|
|
1265
|
+
color: var(--coreColors-dividingLines);
|
|
1266
|
+
}
|
|
1267
|
+
.text-coreColors-headerBackground {
|
|
1268
|
+
color: var(--coreColors-headerBackground);
|
|
1269
|
+
}
|
|
1270
|
+
.text-coreColors-headerIcon {
|
|
1271
|
+
color: var(--coreColors-headerIcon);
|
|
1272
|
+
}
|
|
1273
|
+
.text-coreColors-inputBackground {
|
|
1274
|
+
color: var(--coreColors-inputBackground);
|
|
1275
|
+
}
|
|
1276
|
+
.text-coreColors-modalBackground {
|
|
1277
|
+
color: var(--coreColors-modalBackground);
|
|
1278
|
+
}
|
|
1202
1279
|
.text-coreColors-pageColor {
|
|
1203
1280
|
color: var(--coreColors-pageColor);
|
|
1204
1281
|
}
|
|
1282
|
+
.text-coreColors-primaryIcon {
|
|
1283
|
+
color: var(--coreColors-primaryIcon);
|
|
1284
|
+
}
|
|
1285
|
+
.text-coreColors-secondaryIcon {
|
|
1286
|
+
color: var(--coreColors-secondaryIcon);
|
|
1287
|
+
}
|
|
1288
|
+
.text-coreColors-shadow {
|
|
1289
|
+
color: var(--coreColors-shadow);
|
|
1290
|
+
}
|
|
1291
|
+
.text-coreColors-shadowsEnabled {
|
|
1292
|
+
color: var(--coreColors-shadowsEnabled);
|
|
1293
|
+
}
|
|
1294
|
+
.text-coreColors-tabBar {
|
|
1295
|
+
color: var(--coreColors-tabBar);
|
|
1296
|
+
}
|
|
1205
1297
|
.text-destructive-foreground {
|
|
1206
1298
|
color: hsl(var(--destructive-foreground));
|
|
1207
1299
|
}
|
|
@@ -1223,18 +1315,63 @@ video {
|
|
|
1223
1315
|
.text-secondary-foreground {
|
|
1224
1316
|
color: hsl(var(--secondary-foreground));
|
|
1225
1317
|
}
|
|
1318
|
+
.text-stateColors-disabled {
|
|
1319
|
+
color: var(--stateColors-disabled);
|
|
1320
|
+
}
|
|
1321
|
+
.text-stateColors-error {
|
|
1322
|
+
color: var(--stateColors-error);
|
|
1323
|
+
}
|
|
1324
|
+
.text-stateColors-favorites {
|
|
1325
|
+
color: var(--stateColors-favorites);
|
|
1326
|
+
}
|
|
1327
|
+
.text-stateColors-reviews {
|
|
1328
|
+
color: var(--stateColors-reviews);
|
|
1329
|
+
}
|
|
1330
|
+
.text-stateColors-skeleton {
|
|
1331
|
+
color: var(--stateColors-skeleton);
|
|
1332
|
+
}
|
|
1333
|
+
.text-stateColors-subscriptions {
|
|
1334
|
+
color: var(--stateColors-subscriptions);
|
|
1335
|
+
}
|
|
1336
|
+
.text-stateColors-success {
|
|
1337
|
+
color: var(--stateColors-success);
|
|
1338
|
+
}
|
|
1339
|
+
.text-stateColors-warning {
|
|
1340
|
+
color: var(--stateColors-warning);
|
|
1341
|
+
}
|
|
1342
|
+
.text-textColors-legalText {
|
|
1343
|
+
color: var(--textColors-legalText);
|
|
1344
|
+
}
|
|
1345
|
+
.text-textColors-pageTitle {
|
|
1346
|
+
color: var(--textColors-pageTitle);
|
|
1347
|
+
}
|
|
1348
|
+
.text-textColors-priceText {
|
|
1349
|
+
color: var(--textColors-priceText);
|
|
1350
|
+
}
|
|
1226
1351
|
.text-textColors-primaryColor {
|
|
1227
1352
|
color: var(--textColors-primaryColor);
|
|
1228
1353
|
}
|
|
1354
|
+
.text-textColors-productTitle {
|
|
1355
|
+
color: var(--textColors-productTitle);
|
|
1356
|
+
}
|
|
1357
|
+
.text-textColors-salePriceText {
|
|
1358
|
+
color: var(--textColors-salePriceText);
|
|
1359
|
+
}
|
|
1229
1360
|
.text-textColors-secondaryColor {
|
|
1230
1361
|
color: var(--textColors-secondaryColor);
|
|
1231
1362
|
}
|
|
1363
|
+
.text-textColors-strikethroughPriceText {
|
|
1364
|
+
color: var(--textColors-strikethroughPriceText);
|
|
1365
|
+
}
|
|
1232
1366
|
.underline-offset-4 {
|
|
1233
1367
|
text-underline-offset: 4px;
|
|
1234
1368
|
}
|
|
1235
1369
|
.opacity-0 {
|
|
1236
1370
|
opacity: 0;
|
|
1237
1371
|
}
|
|
1372
|
+
.opacity-100 {
|
|
1373
|
+
opacity: 1;
|
|
1374
|
+
}
|
|
1238
1375
|
.opacity-90 {
|
|
1239
1376
|
opacity: 0.9;
|
|
1240
1377
|
}
|
|
@@ -1326,11 +1463,23 @@ video {
|
|
|
1326
1463
|
.file\:font-medium::file-selector-button {
|
|
1327
1464
|
font-weight: 500;
|
|
1328
1465
|
}
|
|
1329
|
-
.placeholder\:text-
|
|
1330
|
-
color:
|
|
1466
|
+
.placeholder\:text-stateColors-error::-moz-placeholder {
|
|
1467
|
+
color: var(--stateColors-error);
|
|
1331
1468
|
}
|
|
1332
|
-
.placeholder\:text-
|
|
1333
|
-
color:
|
|
1469
|
+
.placeholder\:text-stateColors-error::placeholder {
|
|
1470
|
+
color: var(--stateColors-error);
|
|
1471
|
+
}
|
|
1472
|
+
.placeholder\:text-textColors-secondaryColor::-moz-placeholder {
|
|
1473
|
+
color: var(--textColors-secondaryColor);
|
|
1474
|
+
}
|
|
1475
|
+
.placeholder\:text-textColors-secondaryColor::placeholder {
|
|
1476
|
+
color: var(--textColors-secondaryColor);
|
|
1477
|
+
}
|
|
1478
|
+
.placeholder-shown\:p-4:-moz-placeholder-shown {
|
|
1479
|
+
padding: 1rem;
|
|
1480
|
+
}
|
|
1481
|
+
.placeholder-shown\:p-4:placeholder-shown {
|
|
1482
|
+
padding: 1rem;
|
|
1334
1483
|
}
|
|
1335
1484
|
.hover\:bg-accent:hover {
|
|
1336
1485
|
background-color: hsl(var(--accent));
|
|
@@ -1362,6 +1511,12 @@ video {
|
|
|
1362
1511
|
.hover\:underline:hover {
|
|
1363
1512
|
text-decoration-line: underline;
|
|
1364
1513
|
}
|
|
1514
|
+
.focus\:border-coreColors-brandColorPrimary:focus {
|
|
1515
|
+
border-color: var(--coreColors-brandColorPrimary);
|
|
1516
|
+
}
|
|
1517
|
+
.focus\:border-stateColors-error:focus {
|
|
1518
|
+
border-color: var(--stateColors-error);
|
|
1519
|
+
}
|
|
1365
1520
|
.focus\:opacity-100:focus {
|
|
1366
1521
|
opacity: 1;
|
|
1367
1522
|
}
|
|
@@ -1384,6 +1539,11 @@ video {
|
|
|
1384
1539
|
outline: 2px solid transparent;
|
|
1385
1540
|
outline-offset: 2px;
|
|
1386
1541
|
}
|
|
1542
|
+
.focus-visible\:ring-0:focus-visible {
|
|
1543
|
+
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
1544
|
+
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
1545
|
+
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
1546
|
+
}
|
|
1387
1547
|
.focus-visible\:ring-2:focus-visible {
|
|
1388
1548
|
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
1389
1549
|
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
@@ -1455,6 +1615,12 @@ video {
|
|
|
1455
1615
|
.group.destructive .group-\[\.destructive\]\:focus\:ring-offset-red-600:focus {
|
|
1456
1616
|
--tw-ring-offset-color: #dc2626;
|
|
1457
1617
|
}
|
|
1618
|
+
.peer:-moz-placeholder-shown ~ .peer-placeholder-shown\:opacity-0 {
|
|
1619
|
+
opacity: 0;
|
|
1620
|
+
}
|
|
1621
|
+
.peer:placeholder-shown ~ .peer-placeholder-shown\:opacity-0 {
|
|
1622
|
+
opacity: 0;
|
|
1623
|
+
}
|
|
1458
1624
|
.peer:disabled ~ .peer-disabled\:cursor-not-allowed {
|
|
1459
1625
|
cursor: not-allowed;
|
|
1460
1626
|
}
|
|
@@ -1516,6 +1682,9 @@ video {
|
|
|
1516
1682
|
.data-\[state\=unchecked\]\:bg-input[data-state=unchecked] {
|
|
1517
1683
|
background-color: hsl(var(--input));
|
|
1518
1684
|
}
|
|
1685
|
+
.data-\[icon\=true\]\:pr-10[data-icon=true] {
|
|
1686
|
+
padding-right: 2.5rem;
|
|
1687
|
+
}
|
|
1519
1688
|
.data-\[state\=on\]\:text-accent-foreground[data-state=on] {
|
|
1520
1689
|
color: hsl(var(--accent-foreground));
|
|
1521
1690
|
}
|
|
@@ -1654,6 +1823,9 @@ video {
|
|
|
1654
1823
|
max-width: 420px;
|
|
1655
1824
|
}
|
|
1656
1825
|
}
|
|
1826
|
+
.\[\&\+label\]\:text-stateColors-error+label {
|
|
1827
|
+
color: var(--stateColors-error);
|
|
1828
|
+
}
|
|
1657
1829
|
.\[\&\[data-state\=open\]\>svg\]\:rotate-180[data-state=open]>svg {
|
|
1658
1830
|
--tw-rotate: 180deg;
|
|
1659
1831
|
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));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tapcart/mobile-components",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/index.esm.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
"scripts": {
|
|
16
16
|
"lint": "eslint \"**/*.ts*\"",
|
|
17
17
|
"ui:add": "pnpm dlx shadcn-ui@latest add",
|
|
18
|
+
"build:styles": "postcss styles/globals.css -o dist/styles.css",
|
|
18
19
|
"build:ts": "tsc -p tsconfig.json",
|
|
19
|
-
"build": "pnpm run build:ts && pnpm run build:styles"
|
|
20
|
-
"build:sdk": "tsc && node scripts/build-css.js"
|
|
20
|
+
"build": "pnpm run build:ts && pnpm run build:styles"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@types/react": "^18.2.0",
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { type VariantProps } from "class-variance-authority";
|
|
3
|
-
import { IconUpload, IconPencilMinus } from "@tabler/icons-react";
|
|
4
|
-
declare const iconVariants: (props?: ({
|
|
5
|
-
variant?: "default" | null | undefined;
|
|
6
|
-
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
7
|
-
export interface IconProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof iconVariants> {
|
|
8
|
-
}
|
|
9
|
-
declare function Icon({ className, variant, ...props }: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export { Icon, iconVariants, IconUpload, IconPencilMinus };
|
|
11
|
-
//# sourceMappingURL=icon.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../components/ui/icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAGjE,QAAA,MAAM,YAAY;;mFAShB,CAAA;AAEF,MAAM,WAAW,SACf,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAC1C,YAAY,CAAC,OAAO,YAAY,CAAC;CAAG;AAExC,iBAAS,IAAI,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,2CAExD;AAED,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,UAAU,EAAE,eAAe,EAAE,CAAA"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
-
var t = {};
|
|
3
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
-
t[p] = s[p];
|
|
5
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
-
t[p[i]] = s[p[i]];
|
|
9
|
-
}
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
12
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import { cva } from "class-variance-authority";
|
|
14
|
-
import { IconUpload, IconPencilMinus } from "@tabler/icons-react";
|
|
15
|
-
import { cn } from "../../lib/utils";
|
|
16
|
-
const iconVariants = cva("inline-flex items-center", {
|
|
17
|
-
variants: {
|
|
18
|
-
variant: {
|
|
19
|
-
default: "fill-primary-foreground px-2",
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
defaultVariants: {
|
|
23
|
-
variant: "default",
|
|
24
|
-
},
|
|
25
|
-
});
|
|
26
|
-
function Icon(_a) {
|
|
27
|
-
var { className, variant } = _a, props = __rest(_a, ["className", "variant"]);
|
|
28
|
-
return _jsx("div", Object.assign({ className: cn(iconVariants({ variant }), className) }, props));
|
|
29
|
-
}
|
|
30
|
-
export { Icon, iconVariants, IconUpload, IconPencilMinus };
|