@tapcart/mobile-components 0.8.72 → 0.8.73
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-nosto-recommendation.d.ts +4 -1
- package/dist/components/hooks/use-nosto-recommendation.d.ts.map +1 -1
- package/dist/components/hooks/use-nosto-recommendation.js +40 -26
- package/dist/components/hooks/use-products.d.ts +3 -3
- package/dist/components/hooks/use-products.d.ts.map +1 -1
- package/dist/components/hooks/use-products.js +16 -4
- package/dist/components/ui/accordion.js +1 -1
- package/dist/components/ui/checkbox.js +1 -1
- package/dist/components/ui/chip.js +1 -1
- package/dist/components/ui/favorite.js +1 -1
- package/dist/components/ui/loading-dots.d.ts +1 -1
- package/dist/components/ui/loading-dots.d.ts.map +1 -1
- package/dist/components/ui/product-card.js +1 -1
- package/dist/components/ui/quantity-pickerNEW.d.ts.map +1 -1
- package/dist/components/ui/quantity-pickerNEW.js +1 -3
- package/dist/components/ui/radio-group.js +1 -1
- package/dist/components/ui/tabs.d.ts.map +1 -1
- package/dist/components/ui/tabs.js +1 -1
- package/dist/components/ui/tap.d.ts.map +1 -1
- package/dist/components/ui/tap.js +1 -1
- package/dist/components/ui/toggle.js +1 -1
- package/dist/styles.css +0 -13
- package/package.json +1 -1
|
@@ -7,7 +7,10 @@ export declare enum NostoRecommendationsType {
|
|
|
7
7
|
BEST_SELLERS = "BEST_SELLERS",
|
|
8
8
|
VIEWED_CATEGORY = "VIEWED_CATEGORY"
|
|
9
9
|
}
|
|
10
|
-
export declare function useNostoRecommendations(integrations: Integrations, baseURL: string, slotId?: string, country?: string, recommendationsType?: NostoRecommendationsType | "", productIds?: string[], skip?: boolean, mockFallback?: boolean, mockFallbackAppId?: string
|
|
10
|
+
export declare function useNostoRecommendations(integrations: Integrations, baseURL: string, slotId?: string, country?: string, recommendationsType?: NostoRecommendationsType | "", productIds?: string[], skip?: boolean, mockFallback?: boolean, mockFallbackAppId?: string, session?: {
|
|
11
|
+
sessionId: string;
|
|
12
|
+
lastSessionEventTimestamp: number;
|
|
13
|
+
}): {
|
|
11
14
|
recommendations: import("app-studio-types").Product[];
|
|
12
15
|
isLoading: boolean;
|
|
13
16
|
error: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-nosto-recommendation.d.ts","sourceRoot":"","sources":["../../../components/hooks/use-nosto-recommendation.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAe/C,oBAAY,wBAAwB;IAClC,eAAe,oBAAoB;IACnC,eAAe,oBAAoB;IACnC,qBAAqB,0BAA0B;IAC/C,WAAW,gBAAgB;IAC3B,YAAY,iBAAiB;IAC7B,eAAe,oBAAoB;CACpC;
|
|
1
|
+
{"version":3,"file":"use-nosto-recommendation.d.ts","sourceRoot":"","sources":["../../../components/hooks/use-nosto-recommendation.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAe/C,oBAAY,wBAAwB;IAClC,eAAe,oBAAoB;IACnC,eAAe,oBAAoB;IACnC,qBAAqB,0BAA0B;IAC/C,WAAW,gBAAgB;IAC3B,YAAY,iBAAiB;IAC7B,eAAe,oBAAoB;CACpC;AAwTD,wBAAgB,uBAAuB,CACrC,YAAY,EAAE,YAAY,EAC1B,OAAO,EAAE,MAAM,EACf,MAAM,SAAK,EACX,OAAO,SAAO,EACd,mBAAmB,CAAC,EAAE,wBAAwB,GAAG,EAAE,EACnD,UAAU,CAAC,EAAE,MAAM,EAAE,EACrB,IAAI,CAAC,EAAE,OAAO,EACd,YAAY,CAAC,EAAE,OAAO,EACtB,iBAAiB,CAAC,EAAE,MAAM,EAC1B,OAAO,CAAC,EAAE;IACR,SAAS,EAAE,MAAM,CAAA;IACjB,yBAAyB,EAAE,MAAM,CAAA;CAClC;;;;;EAwDF"}
|
|
@@ -20,6 +20,8 @@ export var NostoRecommendationsType;
|
|
|
20
20
|
NostoRecommendationsType["BEST_SELLERS"] = "BEST_SELLERS";
|
|
21
21
|
NostoRecommendationsType["VIEWED_CATEGORY"] = "VIEWED_CATEGORY";
|
|
22
22
|
})(NostoRecommendationsType || (NostoRecommendationsType = {}));
|
|
23
|
+
// Nosto sessions expire after 30 minutes. We use 29.5 minutes to be safe
|
|
24
|
+
const NOSTO_SESSION_EXPIRATION_TIME = 29.5 * 60 * 1000;
|
|
23
25
|
const fetchNosto = (nostoKey, graphqlBody, mode) => __awaiter(void 0, void 0, void 0, function* () {
|
|
24
26
|
const url = "https://api.nosto.com/v1/graphql";
|
|
25
27
|
const headers = new Headers({
|
|
@@ -38,28 +40,34 @@ const fetchNosto = (nostoKey, graphqlBody, mode) => __awaiter(void 0, void 0, vo
|
|
|
38
40
|
const getProductIdsFromPageResponse = (pageResponse) => {
|
|
39
41
|
return ((pageResponse === null || pageResponse === void 0 ? void 0 : pageResponse.flatMap((page) => page.primary).filter((item) => item && item.productId).map((item) => item.productId)) || []);
|
|
40
42
|
};
|
|
41
|
-
const
|
|
43
|
+
const resolveSessionId = (nostoKey, optionalSessionId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
44
|
+
if (optionalSessionId) {
|
|
45
|
+
return optionalSessionId;
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
const sessionData = yield fetchNosto(nostoKey, newSessionQuery);
|
|
49
|
+
return sessionData.data.newSession;
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
const fetchFrontPageRecommendations = (nostoKey, slotId, optionalSessionId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
42
53
|
var _a, _b, _c;
|
|
43
54
|
// Fetch sessionId
|
|
44
|
-
const
|
|
45
|
-
const sessionId = sessionData.data.newSession;
|
|
55
|
+
const sessionId = yield resolveSessionId(nostoKey, optionalSessionId);
|
|
46
56
|
// Main recommendation query
|
|
47
57
|
const body = getFrontPageRecommendationsQuery(sessionId, slotId);
|
|
48
58
|
const response = yield fetchNosto(nostoKey, body, "cors");
|
|
49
59
|
return getProductIdsFromPageResponse((_c = (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.updateSession) === null || _b === void 0 ? void 0 : _b.pages) === null || _c === void 0 ? void 0 : _c.forFrontPage);
|
|
50
60
|
});
|
|
51
|
-
const fetchProductPageRecommendations = (nostoKey, productId, slotId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
61
|
+
const fetchProductPageRecommendations = (nostoKey, productId, slotId, optionalSessionId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
52
62
|
var _d, _e, _f;
|
|
53
|
-
const
|
|
54
|
-
const sessionId = sessionData.data.newSession;
|
|
63
|
+
const sessionId = yield resolveSessionId(nostoKey, optionalSessionId);
|
|
55
64
|
const body = getProductPageRecommendationsQuery(sessionId, productId, slotId);
|
|
56
65
|
const response = yield fetchNosto(nostoKey, body, "cors");
|
|
57
66
|
return getProductIdsFromPageResponse((_f = (_e = (_d = response.data) === null || _d === void 0 ? void 0 : _d.updateSession) === null || _e === void 0 ? void 0 : _e.pages) === null || _f === void 0 ? void 0 : _f.forProductPage);
|
|
58
67
|
});
|
|
59
|
-
const fetchCategoryPageRecommendations = (nostoKey, sourceCollectionTitle) => __awaiter(void 0, void 0, void 0, function* () {
|
|
68
|
+
const fetchCategoryPageRecommendations = (nostoKey, sourceCollectionTitle, optionalSessionId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
60
69
|
var _g, _h, _j;
|
|
61
|
-
const
|
|
62
|
-
const sessionId = sessionData.data.newSession;
|
|
70
|
+
const sessionId = yield resolveSessionId(nostoKey, optionalSessionId);
|
|
63
71
|
const body = categoryPageRecommendationsQuery(sessionId, sourceCollectionTitle);
|
|
64
72
|
const response = yield fetchNosto(nostoKey, body, "cors");
|
|
65
73
|
return getProductIdsFromPageResponse((_j = (_h = (_g = response.data) === null || _g === void 0 ? void 0 : _g.updateSession) === null || _h === void 0 ? void 0 : _h.pages) === null || _j === void 0 ? void 0 : _j.forCategoryPage);
|
|
@@ -78,21 +86,21 @@ const fetchRelatedProductsRecommendations = (nostoKey, recommendationsType, prod
|
|
|
78
86
|
const recommendedProductIds = ((_s = (_r = (_q = (_p = response === null || response === void 0 ? void 0 : response.data) === null || _p === void 0 ? void 0 : _p.recos) === null || _q === void 0 ? void 0 : _q.related) === null || _r === void 0 ? void 0 : _r.primary) === null || _s === void 0 ? void 0 : _s.map((item) => item.productId)) || [];
|
|
79
87
|
return recommendedProductIds;
|
|
80
88
|
});
|
|
81
|
-
const fetchPDPFallbackRecommendations = (nostoKey, productId, recommendationsType = NostoRecommendationsType.BOUGHT_TOGETHER) => __awaiter(void 0, void 0, void 0, function* () {
|
|
89
|
+
const fetchPDPFallbackRecommendations = (nostoKey, productId, recommendationsType = NostoRecommendationsType.BOUGHT_TOGETHER, sessionId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
82
90
|
switch (recommendationsType) {
|
|
83
91
|
case NostoRecommendationsType.VIEWED_CATEGORY:
|
|
84
|
-
return fetchCategoryPageRecommendations(nostoKey, productId);
|
|
92
|
+
return fetchCategoryPageRecommendations(nostoKey, productId, sessionId);
|
|
85
93
|
case NostoRecommendationsType.BEST_SELLERS:
|
|
86
94
|
return fetchBestSellersRecommendations(nostoKey);
|
|
87
95
|
default:
|
|
88
96
|
return fetchRelatedProductsRecommendations(nostoKey, recommendationsType, [productId]);
|
|
89
97
|
}
|
|
90
98
|
});
|
|
91
|
-
const fetchHomeRecommendations = (nostoKey, slotId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
99
|
+
const fetchHomeRecommendations = (nostoKey, slotId, sessionId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
92
100
|
let productIdRecommendations = [];
|
|
93
101
|
if (slotId) {
|
|
94
102
|
try {
|
|
95
|
-
productIdRecommendations = yield fetchFrontPageRecommendations(nostoKey, slotId);
|
|
103
|
+
productIdRecommendations = yield fetchFrontPageRecommendations(nostoKey, slotId, sessionId);
|
|
96
104
|
if (productIdRecommendations.length === 0) {
|
|
97
105
|
productIdRecommendations = yield fetchBestSellersRecommendations(nostoKey);
|
|
98
106
|
}
|
|
@@ -106,37 +114,37 @@ const fetchHomeRecommendations = (nostoKey, slotId) => __awaiter(void 0, void 0,
|
|
|
106
114
|
}
|
|
107
115
|
return productIdRecommendations;
|
|
108
116
|
});
|
|
109
|
-
const fetchPDPRecommendations = (nostoKey, productId, slotId, recommendationsType = NostoRecommendationsType.BOUGHT_TOGETHER) => __awaiter(void 0, void 0, void 0, function* () {
|
|
117
|
+
const fetchPDPRecommendations = (nostoKey, productId, slotId, recommendationsType = NostoRecommendationsType.BOUGHT_TOGETHER, sessionId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
110
118
|
let productIdRecommendations = [];
|
|
111
119
|
if (slotId) {
|
|
112
120
|
try {
|
|
113
|
-
productIdRecommendations = yield fetchProductPageRecommendations(nostoKey, productId, slotId);
|
|
121
|
+
productIdRecommendations = yield fetchProductPageRecommendations(nostoKey, productId, slotId, sessionId);
|
|
114
122
|
if (productIdRecommendations.length === 0) {
|
|
115
|
-
productIdRecommendations = yield fetchPDPFallbackRecommendations(nostoKey, productId, recommendationsType);
|
|
123
|
+
productIdRecommendations = yield fetchPDPFallbackRecommendations(nostoKey, productId, recommendationsType, sessionId);
|
|
116
124
|
}
|
|
117
125
|
}
|
|
118
126
|
catch (error) {
|
|
119
|
-
productIdRecommendations = yield fetchPDPFallbackRecommendations(nostoKey, productId, recommendationsType);
|
|
127
|
+
productIdRecommendations = yield fetchPDPFallbackRecommendations(nostoKey, productId, recommendationsType, sessionId);
|
|
120
128
|
}
|
|
121
129
|
}
|
|
122
130
|
else {
|
|
123
|
-
productIdRecommendations = yield fetchPDPFallbackRecommendations(nostoKey, productId, recommendationsType);
|
|
131
|
+
productIdRecommendations = yield fetchPDPFallbackRecommendations(nostoKey, productId, recommendationsType, sessionId);
|
|
124
132
|
}
|
|
125
133
|
return productIdRecommendations;
|
|
126
134
|
});
|
|
127
|
-
const getProductIdRecommendations = (nostoKey, slotId = "", recommendationsType, productIds, skip) => __awaiter(void 0, void 0, void 0, function* () {
|
|
135
|
+
const getProductIdRecommendations = (nostoKey, slotId = "", recommendationsType, productIds, skip, sessionId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
128
136
|
if (skip) {
|
|
129
137
|
return [];
|
|
130
138
|
}
|
|
131
139
|
const isPDP = productIds && productIds.length > 0;
|
|
132
140
|
if (isPDP) {
|
|
133
|
-
return fetchPDPRecommendations(nostoKey, productIds[0], slotId, recommendationsType);
|
|
141
|
+
return fetchPDPRecommendations(nostoKey, productIds[0], slotId, recommendationsType, sessionId);
|
|
134
142
|
}
|
|
135
143
|
else {
|
|
136
|
-
return fetchHomeRecommendations(nostoKey, slotId);
|
|
144
|
+
return fetchHomeRecommendations(nostoKey, slotId, sessionId);
|
|
137
145
|
}
|
|
138
146
|
});
|
|
139
|
-
function useNostoRecommendationsProductIds(nostoKey, slotId = "", recommendationsType, productIds, skip) {
|
|
147
|
+
function useNostoRecommendationsProductIds(nostoKey, slotId = "", recommendationsType, productIds, skip, sessionId) {
|
|
140
148
|
const [recommendedProductIds, setRecommendedProductIds] = useState([]);
|
|
141
149
|
const [isLoading, setIsLoading] = useState(true);
|
|
142
150
|
const [error, setError] = useState(null);
|
|
@@ -148,7 +156,7 @@ function useNostoRecommendationsProductIds(nostoKey, slotId = "", recommendation
|
|
|
148
156
|
setRecommendedProductIds([]);
|
|
149
157
|
}
|
|
150
158
|
else {
|
|
151
|
-
const productIdRecommendations = yield getProductIdRecommendations(nostoKey, slotId, recommendationsType, productIds, skip);
|
|
159
|
+
const productIdRecommendations = yield getProductIdRecommendations(nostoKey, slotId, recommendationsType, productIds, skip, sessionId);
|
|
152
160
|
setRecommendedProductIds(productIdRecommendations);
|
|
153
161
|
}
|
|
154
162
|
}
|
|
@@ -162,20 +170,26 @@ function useNostoRecommendationsProductIds(nostoKey, slotId = "", recommendation
|
|
|
162
170
|
});
|
|
163
171
|
}
|
|
164
172
|
fetchNostoData();
|
|
165
|
-
}, [nostoKey, slotId, recommendationsType, productIds, skip]);
|
|
173
|
+
}, [nostoKey, slotId, recommendationsType, productIds, skip, sessionId]);
|
|
166
174
|
return {
|
|
167
175
|
recommendedProductIds,
|
|
168
176
|
isLoading,
|
|
169
177
|
error,
|
|
170
178
|
};
|
|
171
179
|
}
|
|
172
|
-
export function useNostoRecommendations(integrations, baseURL, slotId = "", country = "US", recommendationsType, productIds, skip, mockFallback, mockFallbackAppId) {
|
|
180
|
+
export function useNostoRecommendations(integrations, baseURL, slotId = "", country = "US", recommendationsType, productIds, skip, mockFallback, mockFallbackAppId, session) {
|
|
173
181
|
var _a;
|
|
174
182
|
if (recommendationsType === "") {
|
|
175
183
|
recommendationsType = NostoRecommendationsType.BOUGHT_TOGETHER;
|
|
176
184
|
}
|
|
177
185
|
const nostoKey = (_a = integrations.find((integration) => integration.name === "nosto")) === null || _a === void 0 ? void 0 : _a.key;
|
|
178
|
-
|
|
186
|
+
let sessionId = null;
|
|
187
|
+
if ((session === null || session === void 0 ? void 0 : session.sessionId) &&
|
|
188
|
+
(session === null || session === void 0 ? void 0 : session.lastSessionEventTimestamp) >
|
|
189
|
+
Date.now() - NOSTO_SESSION_EXPIRATION_TIME) {
|
|
190
|
+
sessionId = session.sessionId;
|
|
191
|
+
}
|
|
192
|
+
const { recommendedProductIds, isLoading, error } = useNostoRecommendationsProductIds(nostoKey, slotId, recommendationsType, productIds, skip, sessionId);
|
|
179
193
|
const shouldMock = useMemo(() => recommendedProductIds.length === 0 && !isLoading && mockFallback, [recommendedProductIds, isLoading, mockFallback]);
|
|
180
194
|
const appId = shouldMock ? mockFallbackAppId : undefined;
|
|
181
195
|
const { products, error: productsError, isLoading: productsLoading, } = useProducts({
|
|
@@ -5,9 +5,9 @@ type MetafieldInput = {
|
|
|
5
5
|
key: string;
|
|
6
6
|
};
|
|
7
7
|
type UseProductsProps = {
|
|
8
|
-
productIds
|
|
9
|
-
variantIds?: string[]
|
|
10
|
-
productHandles
|
|
8
|
+
productIds?: string[];
|
|
9
|
+
variantIds?: string[];
|
|
10
|
+
productHandles?: string[];
|
|
11
11
|
baseURL: URL;
|
|
12
12
|
collection?: string;
|
|
13
13
|
queryVariables?: Record<string, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-products.d.ts","sourceRoot":"","sources":["../../../components/hooks/use-products.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAK1C,KAAK,GAAG,GAAG,MAAM,CAAA;AACjB,KAAK,cAAc,GAAG;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAAA;AACxD,KAAK,gBAAgB,GAAG;IACtB,UAAU,EAAE,MAAM,EAAE,CAAA;
|
|
1
|
+
{"version":3,"file":"use-products.d.ts","sourceRoot":"","sources":["../../../components/hooks/use-products.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAK1C,KAAK,GAAG,GAAG,MAAM,CAAA;AACjB,KAAK,cAAc,GAAG;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAAA;AACxD,KAAK,gBAAgB,GAAG;IACtB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAA;IACzB,OAAO,EAAE,GAAG,CAAA;IACZ,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACpC,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,KAAK,OAAO,CAAC,GAAG,CAAC,CAAA;IAC1E,UAAU,CAAC,EAAE,cAAc,EAAE,CAAA;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,qBAAqB,CAAC,EAAE,OAAO,CAAA;CAChC,CAAA;AACD,KAAK,iBAAiB,GAAG;IACvB,QAAQ,EAAE,OAAO,EAAE,CAAA;IACnB,KAAK,EAAE,GAAG,CAAA;IACV,SAAS,EAAE,OAAO,CAAA;IAClB,YAAY,EAAE,OAAO,CAAA;IACrB,YAAY,EAAE,CAAC,OAAO,EAAE,OAAO,KAC3B;QACE,EAAE,EAAE,MAAM,CAAA;QACV,MAAM,EAAE,MAAM,CAAA;KACf,GACD,SAAS,CAAA;CACd,CAAA;AAqDD,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,GAAG,IAAI,GAAG,iBAAiB,CAwJ7E"}
|
|
@@ -15,11 +15,22 @@ import ProductsLocalStorage from "../libs/cache/ProductsLocalStorage";
|
|
|
15
15
|
const isUseProductsProps = (props) => {
|
|
16
16
|
return Boolean(props);
|
|
17
17
|
};
|
|
18
|
-
const formatProductData = ({ data, onlyAvailableProducts = false, }) => {
|
|
18
|
+
const formatProductData = ({ data, onlyAvailableProducts = false, mock = false, }) => {
|
|
19
19
|
const isProductsObject = (value) => {
|
|
20
20
|
return value && "products" in value;
|
|
21
21
|
};
|
|
22
22
|
const products = isProductsObject(data) ? data.products : data || [];
|
|
23
|
+
if (mock) {
|
|
24
|
+
// Alternate availableForSale true/false for each product in the array
|
|
25
|
+
// Alternate availableForSale true/false for each product and its variants
|
|
26
|
+
const mixedProducts = products.map((product, idx) => {
|
|
27
|
+
const isAvailable = idx % 2 === 0;
|
|
28
|
+
return Object.assign(Object.assign({}, product), { availableForSale: isAvailable, variants: Array.isArray(product.variants)
|
|
29
|
+
? product.variants.map((variant, vIdx) => (Object.assign(Object.assign({}, variant), { availableForSale: isAvailable })))
|
|
30
|
+
: product.variants });
|
|
31
|
+
});
|
|
32
|
+
return mixedProducts;
|
|
33
|
+
}
|
|
23
34
|
return onlyAvailableProducts
|
|
24
35
|
? products === null || products === void 0 ? void 0 : products.filter((p) => {
|
|
25
36
|
if (!onlyAvailableProducts)
|
|
@@ -41,7 +52,7 @@ export function useProducts(props) {
|
|
|
41
52
|
}));
|
|
42
53
|
const [isProductResponseReady, setIsProductResponseReady] = React.useState((productResponse === null || productResponse === void 0 ? void 0 : productResponse.length) > 0);
|
|
43
54
|
if (isUseProductsProps(props)) {
|
|
44
|
-
let { baseURL, productIds, variantIds, productHandles, metafields, collection, queryVariables, } = props;
|
|
55
|
+
let { baseURL, productIds = [], variantIds = [], productHandles = [], metafields, collection, queryVariables, } = props;
|
|
45
56
|
if (shouldMockProducts) {
|
|
46
57
|
// In mock mode, always use direct product fetching without collections
|
|
47
58
|
queryVariables = Object.assign({}, queryVariables);
|
|
@@ -51,7 +62,7 @@ export function useProducts(props) {
|
|
|
51
62
|
if ((productIds === null || productIds === void 0 ? void 0 : productIds.length) > 0) {
|
|
52
63
|
queryParams.set("ids", getProductGidsFromIds(productIds).join(","));
|
|
53
64
|
}
|
|
54
|
-
if (
|
|
65
|
+
if ((variantIds === null || variantIds === void 0 ? void 0 : variantIds.length) > 0) {
|
|
55
66
|
queryParams.set("ids", getVariantGidsFromIds(variantIds).join(","));
|
|
56
67
|
}
|
|
57
68
|
if ((productHandles === null || productHandles === void 0 ? void 0 : productHandles.length) > 0) {
|
|
@@ -129,7 +140,8 @@ export function useProducts(props) {
|
|
|
129
140
|
return {
|
|
130
141
|
products: formatProductData({
|
|
131
142
|
data: productResponse,
|
|
132
|
-
onlyAvailableProducts:
|
|
143
|
+
onlyAvailableProducts: props === null || props === void 0 ? void 0 : props.onlyAvailableProducts,
|
|
144
|
+
mock: props === null || props === void 0 ? void 0 : props.mock,
|
|
133
145
|
}),
|
|
134
146
|
error,
|
|
135
147
|
isLoading: !isProductResponseReady,
|
|
@@ -23,7 +23,7 @@ const AccordionItem = React.forwardRef((_a, ref) => {
|
|
|
23
23
|
AccordionItem.displayName = "AccordionItem";
|
|
24
24
|
const AccordionTrigger = React.forwardRef((_a, ref) => {
|
|
25
25
|
var { className, children, showDefaultIcon = true } = _a, props = __rest(_a, ["className", "children", "showDefaultIcon"]);
|
|
26
|
-
return (_jsx(AccordionPrimitive.Header, Object.assign({ className: "flex" }, { children: _jsxs(AccordionPrimitive.Trigger, Object.assign({ ref: ref, className: cn("px-4 flex flex-1 items-center justify-between py-4 font-medium transition-all
|
|
26
|
+
return (_jsx(AccordionPrimitive.Header, Object.assign({ className: "flex" }, { children: _jsxs(AccordionPrimitive.Trigger, Object.assign({ ref: ref, className: cn("px-4 flex flex-1 items-center justify-between py-4 font-medium transition-all", { "[&[data-state=open]_svg]:rotate-180": showDefaultIcon }, className) }, props, { children: [children, showDefaultIcon && (_jsx(Icon, { name: "chevron-down", size: "sm", className: "text-coreColors-secondaryIcon shrink-0 transition-transform duration-200" }))] })) })));
|
|
27
27
|
});
|
|
28
28
|
AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
|
|
29
29
|
const AccordionContent = React.forwardRef((_a, ref) => {
|
|
@@ -16,7 +16,7 @@ import { cn } from "../../lib/utils";
|
|
|
16
16
|
import React, { useState, useEffect } from "react";
|
|
17
17
|
import { Icon } from "./icon";
|
|
18
18
|
import { LoadingDots } from "./loading-dots";
|
|
19
|
-
const chipVariants = cva("inline-flex items-center justify-center rounded border border-coreColors-dividingLines text-[12px] transition-colors h-8
|
|
19
|
+
const chipVariants = cva("inline-flex items-center justify-center rounded border border-coreColors-dividingLines text-[12px] transition-colors h-8 cursor-pointer", {
|
|
20
20
|
variants: {
|
|
21
21
|
variant: {
|
|
22
22
|
primary: "bg-coreColors-pageColor text-textColors-primaryColor",
|
|
@@ -54,7 +54,7 @@ const Favorite = (_a) => {
|
|
|
54
54
|
console.error(error);
|
|
55
55
|
}
|
|
56
56
|
};
|
|
57
|
-
return (_jsx("button", Object.assign({ onClick: onClick, className: cn("cursor-pointer
|
|
57
|
+
return (_jsx("button", Object.assign({ onClick: onClick, className: cn("cursor-pointer", favoriteVariants({
|
|
58
58
|
size,
|
|
59
59
|
showBackgroundShadow,
|
|
60
60
|
layoutType,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loading-dots.d.ts","sourceRoot":"","sources":["../../../components/ui/loading-dots.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"loading-dots.d.ts","sourceRoot":"","sources":["../../../components/ui/loading-dots.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,gBAAgB;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;IACvB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB;AAED,eAAO,MAAM,WAAW,iEAOrB,gBAAgB,mDA6ClB,CAAA"}
|
|
@@ -188,7 +188,7 @@ const ProductCard = ({ config, tapcartData, product, isLoading, favorited, onFav
|
|
|
188
188
|
};
|
|
189
189
|
const sizes = getImageSizes(config);
|
|
190
190
|
const imageSwipeEnabled = ((_e = config.productImage) === null || _e === void 0 ? void 0 : _e.allowSwipeability) && product.images.length > 1;
|
|
191
|
-
return (_jsx("div", Object.assign({ className: cn("w-1/2", className) }, { children: _jsxs("div", Object.assign({ className: "w-full
|
|
191
|
+
return (_jsx("div", Object.assign({ className: cn("w-1/2", className) }, { children: _jsxs("div", Object.assign({ className: "w-full cursor-pointer", onClick: () => {
|
|
192
192
|
_openProduct();
|
|
193
193
|
}, onKeyDown: (e) => {
|
|
194
194
|
if (e.key === "Enter" || e.key === " ") {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quantity-pickerNEW.d.ts","sourceRoot":"","sources":["../../../components/ui/quantity-pickerNEW.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAM9B,MAAM,WAAW,sBACf,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC5C,eAAe,EAAE,MAAM,CAAA;IACvB,eAAe,EAAE,MAAM,CAAA;IACvB,aAAa,EAAE,MAAM,CAAA;IACrB,YAAY,EAAE,OAAO,CAAA;IACrB,SAAS,EAAE,MAAM,CAAA;IACjB,eAAe,EAAE,KAAK,CAAC,iBAAiB,CAAA;IACxC,eAAe,EAAE,KAAK,CAAC,iBAAiB,CAAA;IACxC,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IAC/B,gBAAgB,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IACrC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,UAAU,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;IAChC,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;IACjC,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAA;CAC5C;
|
|
1
|
+
{"version":3,"file":"quantity-pickerNEW.d.ts","sourceRoot":"","sources":["../../../components/ui/quantity-pickerNEW.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAM9B,MAAM,WAAW,sBACf,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC5C,eAAe,EAAE,MAAM,CAAA;IACvB,eAAe,EAAE,MAAM,CAAA;IACvB,aAAa,EAAE,MAAM,CAAA;IACrB,YAAY,EAAE,OAAO,CAAA;IACrB,SAAS,EAAE,MAAM,CAAA;IACjB,eAAe,EAAE,KAAK,CAAC,iBAAiB,CAAA;IACxC,eAAe,EAAE,KAAK,CAAC,iBAAiB,CAAA;IACxC,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IAC/B,gBAAgB,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IACrC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,UAAU,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;IAChC,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;IACjC,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAA;CAC5C;AAgED,QAAA,MAAM,iBAAiB,+FA0KtB,CAAA;AAID,OAAO,EAAE,iBAAiB,EAAE,CAAA"}
|
|
@@ -27,9 +27,7 @@ const IconButton = ({ iconUrl, iconColor, handler, className, style, disabled })
|
|
|
27
27
|
}, []);
|
|
28
28
|
// Calculate the visual styles for the button
|
|
29
29
|
const visualButtonStyle = Object.assign({}, style);
|
|
30
|
-
return (_jsxs("div", Object.assign({ className: "relative h-7 w-7", style: { touchAction: "manipulation" } }, { children: [_jsx("div", Object.assign({ className: cn("absolute inset-0 flex items-center justify-center bg-stateColors-skeleton border border-coreColors-dividingLines", className, disabled ? "opacity-50" : ""), style: visualButtonStyle, "aria-hidden": "true" }, { children: _jsx(Icon, { url: iconUrl, size: "sm", strokeColor: iconColor, strokeWidth: 4, style: {
|
|
31
|
-
opacity: isButtonPressed ? 0.7 : 1,
|
|
32
|
-
} }) })), _jsx("button", { onClick: handler, onMouseDown: handleMouseDown, onMouseUp: handleMouseUp, onMouseLeave: handleMouseUp, onTouchStart: handleMouseDown, onTouchEnd: handleMouseUp, onTouchCancel: handleMouseUp, className: "absolute cursor-pointer", style: {
|
|
30
|
+
return (_jsxs("div", Object.assign({ className: "relative h-7 w-7", style: { touchAction: "manipulation" } }, { children: [_jsx("div", Object.assign({ className: cn("absolute inset-0 flex items-center justify-center bg-stateColors-skeleton border border-coreColors-dividingLines", className, disabled ? "opacity-50" : ""), style: visualButtonStyle, "aria-hidden": "true" }, { children: _jsx(Icon, { url: iconUrl, size: "sm", strokeColor: iconColor, strokeWidth: 4 }) })), _jsx("button", { onClick: handler, onMouseDown: handleMouseDown, onMouseUp: handleMouseUp, onMouseLeave: handleMouseUp, onTouchStart: handleMouseDown, onTouchEnd: handleMouseUp, onTouchCancel: handleMouseUp, className: "absolute cursor-pointer", style: {
|
|
33
31
|
top: "-8px",
|
|
34
32
|
right: "-8px",
|
|
35
33
|
bottom: "-8px",
|
|
@@ -37,7 +37,7 @@ const radiogroupItemVariants = cva("grid grid-cols-[auto,auto,1fr] gap-2 items-c
|
|
|
37
37
|
const RadioGroupItemLabels = ({ label, numberAmount, subtext, }) => (_jsxs("div", Object.assign({ className: "col-span-2" }, { children: [_jsxs("div", Object.assign({ className: "flex flex-row items-center" }, { children: [_jsx(Text, Object.assign({ type: "body-primary", className: "group-disabled:text-stateColors-disabled mr-2" }, { children: label })), numberAmount ? (_jsx(Text, Object.assign({ type: "body-primary", className: "text-textColors-secondaryColor group-disabled:text-stateColors-disabled" }, { children: `(${numberAmount})` }))) : null] })), subtext ? (_jsx(Text, Object.assign({ type: "body-secondary", className: "group-disabled:text-stateColors-disabled mt-1" }, { children: subtext }))) : null] })));
|
|
38
38
|
const RadioGroupItem = (_a) => {
|
|
39
39
|
var { value, label = "", subtext, numberAmount = 0, onSelect = () => { }, onClick = () => { }, selected = false, className, variant = "default" } = _a, props = __rest(_a, ["value", "label", "subtext", "numberAmount", "onSelect", "onClick", "selected", "className", "variant"]);
|
|
40
|
-
return (_jsx("div", Object.assign({ className: cn(radiogroupItemVariants({ variant }), className) }, { children: variant === "deactivated" ? (_jsxs(_Fragment, { children: [_jsx(Icon, { name: "circle-off", size: "md", className: "text-stateColors-disabled" }), _jsx(RadioGroupItemLabels, { label: label, numberAmount: numberAmount, subtext: subtext })] })) : (_jsx(RadioGroupPrimitive.Item, Object.assign({ value: value, onSelect: onSelect, checked: selected, onClick: onClick, className: cn("flex items-center justify-center
|
|
40
|
+
return (_jsx("div", Object.assign({ className: cn(radiogroupItemVariants({ variant }), className) }, { children: variant === "deactivated" ? (_jsxs(_Fragment, { children: [_jsx(Icon, { name: "circle-off", size: "md", className: "text-stateColors-disabled" }), _jsx(RadioGroupItemLabels, { label: label, numberAmount: numberAmount, subtext: subtext })] })) : (_jsx(RadioGroupPrimitive.Item, Object.assign({ value: value, onSelect: onSelect, checked: selected, onClick: onClick, className: cn("flex items-center justify-center cursor-pointer", className) }, props, { children: selected || variant === "selected" ? (_jsxs("div", Object.assign({ className: "grid grid-cols-[auto,auto,1fr] gap-2 items-center group" }, { children: [_jsx(Icon, { name: "circle-dot-filled", size: "md", className: "text-coreColors-brandColorPrimary z-10" }), _jsx(RadioGroupItemLabels, { label: label, numberAmount: numberAmount, subtext: subtext })] }))) : (_jsxs("div", Object.assign({ className: "grid grid-cols-[auto,auto,1fr] gap-2 items-center group" }, { children: [_jsxs("div", Object.assign({ className: "grid" }, { children: [_jsx(RadioGroupPrimitive.Indicator, Object.assign({ className: "flex items-center justify-center col-start-1 row-start-1" }, { children: _jsx(Icon, { name: "circle-dot-filled", size: "md", className: "text-coreColors-brandColorPrimary z-10" }) })), _jsx("div", Object.assign({ className: "flex items-center justify-center col-start-1 row-start-1" }, { children: _jsx(Icon, { name: "circle", size: "md", className: "col-start-1 row-start-1 text-coreColors-secondaryIcon items-center z-1" }) }))] })), _jsx(RadioGroupItemLabels, { label: label, numberAmount: numberAmount, subtext: subtext })] }))) }))) })));
|
|
41
41
|
};
|
|
42
42
|
RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
|
|
43
43
|
export { RadioGroup, RadioGroupItem, radiogroupItemVariants };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../../components/ui/tabs.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAM9B,MAAM,WAAW,SAAU,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACrE,IAAI,EAAE;QACJ,KAAK,EAAE,MAAM,CAAA;QACb,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;QACzB,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;QACjC,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;KAChC,EAAE,CAAA;IACH,iBAAiB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;IACvC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,WAAW,EAAE,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAA;IACvC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;
|
|
1
|
+
{"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../../components/ui/tabs.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAM9B,MAAM,WAAW,SAAU,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACrE,IAAI,EAAE;QACJ,KAAK,EAAE,MAAM,CAAA;QACb,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;QACzB,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;QACjC,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;KAChC,EAAE,CAAA;IACH,iBAAiB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;IACvC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,WAAW,EAAE,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAA;IACvC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;AA8CD,QAAA,MAAM,IAAI,kFAgIT,CAAA;AAGD,OAAO,EAAE,IAAI,EAAE,CAAA"}
|
|
@@ -15,7 +15,7 @@ import * as React from "react";
|
|
|
15
15
|
import { cva } from "class-variance-authority";
|
|
16
16
|
import { cn } from "../../lib/utils";
|
|
17
17
|
import { Text } from "./text";
|
|
18
|
-
const tabVariants = cva("flex items-center justify-center px-4 py-2
|
|
18
|
+
const tabVariants = cva("flex items-center justify-center px-4 py-2", {
|
|
19
19
|
variants: {
|
|
20
20
|
isActive: {
|
|
21
21
|
true: "[&>p]:text-textColors-primaryColor",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tap.d.ts","sourceRoot":"","sources":["../../../components/ui/tap.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAMZ,SAAS,EACV,MAAM,OAAO,CAAA;AAyFd,QAAA,MAAM,MAAM;6BAyBU,GAAG,KAAK,IAAI,aACb,GAAG;;;CA2BvB,CAAA;AAED,UAAU,QAAQ;IAChB,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED,QAAA,MAAM,GAAG,EAAE,KAAK,CAAC,EAAE,CAAC,QAAQ,
|
|
1
|
+
{"version":3,"file":"tap.d.ts","sourceRoot":"","sources":["../../../components/ui/tap.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAMZ,SAAS,EACV,MAAM,OAAO,CAAA;AAyFd,QAAA,MAAM,MAAM;6BAyBU,GAAG,KAAK,IAAI,aACb,GAAG;;;CA2BvB,CAAA;AAED,UAAU,QAAQ;IAChB,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED,QAAA,MAAM,GAAG,EAAE,KAAK,CAAC,EAAE,CAAC,QAAQ,CAsC3B,CAAA;AAED,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,CAAA"}
|
|
@@ -131,7 +131,7 @@ const Tap = ({ children }) => {
|
|
|
131
131
|
return;
|
|
132
132
|
}
|
|
133
133
|
})(event);
|
|
134
|
-
}, style: Object.assign(Object.assign({}, element.props.style), { cursor: "pointer"
|
|
134
|
+
}, style: Object.assign(Object.assign({}, element.props.style), { cursor: "pointer" }) }));
|
|
135
135
|
};
|
|
136
136
|
const cloneChildren = (children) => {
|
|
137
137
|
return React.Children.map(children, (child) => {
|
|
@@ -15,7 +15,7 @@ import * as React from "react";
|
|
|
15
15
|
import * as TogglePrimitive from "@radix-ui/react-toggle";
|
|
16
16
|
import { cva } from "class-variance-authority";
|
|
17
17
|
import { cn } from "../../lib/utils";
|
|
18
|
-
const toggleVariants = cva("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground
|
|
18
|
+
const toggleVariants = cva("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground", {
|
|
19
19
|
variants: {
|
|
20
20
|
variant: {
|
|
21
21
|
default: "bg-transparent",
|
package/dist/styles.css
CHANGED
|
@@ -2635,15 +2635,6 @@ body::-webkit-scrollbar {
|
|
|
2635
2635
|
border-color: var(--coreColors-brandColorPrimary);
|
|
2636
2636
|
}
|
|
2637
2637
|
|
|
2638
|
-
.hover\:bg-gray-100:hover {
|
|
2639
|
-
--tw-bg-opacity: 1;
|
|
2640
|
-
background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
|
|
2641
|
-
}
|
|
2642
|
-
|
|
2643
|
-
.hover\:opacity-90:hover {
|
|
2644
|
-
opacity: 0.9;
|
|
2645
|
-
}
|
|
2646
|
-
|
|
2647
2638
|
.focus\:border-coreColors-brandColorPrimary:focus {
|
|
2648
2639
|
border-color: var(--coreColors-brandColorPrimary);
|
|
2649
2640
|
}
|
|
@@ -2721,10 +2712,6 @@ body::-webkit-scrollbar {
|
|
|
2721
2712
|
color: var(--coreColors-brandColorPrimary);
|
|
2722
2713
|
}
|
|
2723
2714
|
|
|
2724
|
-
.active\:opacity-70:active {
|
|
2725
|
-
opacity: 0.7;
|
|
2726
|
-
}
|
|
2727
|
-
|
|
2728
2715
|
.active\:outline-coreColors-brandColorPrimary:active {
|
|
2729
2716
|
outline-color: var(--coreColors-brandColorPrimary);
|
|
2730
2717
|
}
|