@rebuy/rebuy-hydrogen 3.0.0-beta.10 → 3.0.0-beta.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/README.md +196 -16
  2. package/dist/assets/Close.d.ts +2 -0
  3. package/dist/assets/Close.d.ts.map +1 -0
  4. package/dist/components/AddToCartBtn/AddToCartBtn.d.ts +1 -1
  5. package/dist/components/AddToCartBtn/AddToCartBtn.d.ts.map +1 -1
  6. package/dist/components/AddToCartBtn/HydrogenAddToCartBtn.d.ts.map +1 -1
  7. package/dist/components/AddToCartBtn/types.d.ts +1 -0
  8. package/dist/components/AddToCartBtn/types.d.ts.map +1 -1
  9. package/dist/components/ProductCard/ProductCard.d.ts +1 -1
  10. package/dist/components/ProductCard/ProductCard.d.ts.map +1 -1
  11. package/dist/components/ProductCard/defaultSettings.d.ts +3 -0
  12. package/dist/components/ProductCard/defaultSettings.d.ts.map +1 -0
  13. package/dist/components/ProductCard/index.d.ts +1 -0
  14. package/dist/components/ProductCard/index.d.ts.map +1 -1
  15. package/dist/components/ProductCard/types.d.ts +42 -0
  16. package/dist/components/ProductCard/types.d.ts.map +1 -1
  17. package/dist/components/ProductCarousel/ProductCarousel.d.ts +16 -0
  18. package/dist/components/ProductCarousel/ProductCarousel.d.ts.map +1 -0
  19. package/dist/components/ProductCarousel/index.d.ts +2 -0
  20. package/dist/components/ProductCarousel/index.d.ts.map +1 -0
  21. package/dist/components/ProductPrice/ProductPrice.d.ts +2 -4
  22. package/dist/components/ProductPrice/ProductPrice.d.ts.map +1 -1
  23. package/dist/components/ProductPrice/types.d.ts +23 -0
  24. package/dist/components/ProductPrice/types.d.ts.map +1 -0
  25. package/dist/components/QuantityInput/QuantityInput.d.ts +3 -0
  26. package/dist/components/QuantityInput/QuantityInput.d.ts.map +1 -0
  27. package/dist/components/QuantityInput/index.d.ts +3 -0
  28. package/dist/components/QuantityInput/index.d.ts.map +1 -0
  29. package/dist/components/QuantityInput/types.d.ts +7 -0
  30. package/dist/components/QuantityInput/types.d.ts.map +1 -0
  31. package/dist/components/Timer/Timer.d.ts +3 -0
  32. package/dist/components/Timer/Timer.d.ts.map +1 -0
  33. package/dist/components/Timer/index.d.ts +3 -0
  34. package/dist/components/Timer/index.d.ts.map +1 -0
  35. package/dist/components/Timer/types.d.ts +16 -0
  36. package/dist/components/Timer/types.d.ts.map +1 -0
  37. package/dist/components/Title/Title.d.ts +1 -1
  38. package/dist/components/Title/Title.d.ts.map +1 -1
  39. package/dist/components/Title/types.d.ts +1 -0
  40. package/dist/components/Title/types.d.ts.map +1 -1
  41. package/dist/components/VariantSelect/VariantSelect.d.ts +1 -1
  42. package/dist/components/VariantSelect/VariantSelect.d.ts.map +1 -1
  43. package/dist/components/VariantSelect/types.d.ts +2 -0
  44. package/dist/components/VariantSelect/types.d.ts.map +1 -1
  45. package/dist/constants/api.d.ts +2 -0
  46. package/dist/constants/api.d.ts.map +1 -0
  47. package/dist/context/RebuyConfigContext.d.ts +21 -0
  48. package/dist/context/RebuyConfigContext.d.ts.map +1 -0
  49. package/dist/hooks/useBreakpoint.d.ts +5 -0
  50. package/dist/hooks/useBreakpoint.d.ts.map +1 -0
  51. package/dist/hooks/usePopupTrigger.d.ts +3 -0
  52. package/dist/hooks/usePopupTrigger.d.ts.map +1 -0
  53. package/dist/hooks/useRebuyTheme.d.ts +21 -0
  54. package/dist/hooks/useRebuyTheme.d.ts.map +1 -0
  55. package/dist/index.css +588 -31
  56. package/dist/index.css.map +4 -4
  57. package/dist/index.d.ts +6 -0
  58. package/dist/index.d.ts.map +1 -1
  59. package/dist/index.js +1669 -425
  60. package/dist/index.js.map +4 -4
  61. package/dist/index.mjs +1656 -413
  62. package/dist/index.mjs.map +4 -4
  63. package/dist/providers/RebuyHydrogenContextProvider.d.ts +1 -1
  64. package/dist/providers/RebuyHydrogenContextProvider.d.ts.map +1 -1
  65. package/dist/providers/RebuyHydrogenReactContextProvider.d.ts +6 -1
  66. package/dist/providers/RebuyHydrogenReactContextProvider.d.ts.map +1 -1
  67. package/dist/providers/types.d.ts +21 -4
  68. package/dist/providers/types.d.ts.map +1 -1
  69. package/dist/rebuy-rebuy-hydrogen-3.0.0-beta.11.tgz +0 -0
  70. package/dist/types/rebuyCustom.d.ts +52 -17
  71. package/dist/types/rebuyCustom.d.ts.map +1 -1
  72. package/dist/types/widgets.d.ts +5 -4
  73. package/dist/types/widgets.d.ts.map +1 -1
  74. package/dist/utils/createContextParameters.d.ts +1 -1
  75. package/dist/utils/createContextParameters.d.ts.map +1 -1
  76. package/dist/utils/csp.d.ts +16 -0
  77. package/dist/utils/csp.d.ts.map +1 -0
  78. package/dist/utils/theme.d.ts +20 -0
  79. package/dist/utils/theme.d.ts.map +1 -0
  80. package/dist/widgetContainer/RebuyWidgetContainer.d.ts.map +1 -1
  81. package/dist/widgets/RebuyCompleteTheLook/RebuyCompleteTheLook.d.ts.map +1 -1
  82. package/dist/widgets/RebuyDynamicBundleProducts/BundleImages.d.ts.map +1 -1
  83. package/dist/widgets/RebuyDynamicBundleProducts/BundleSelection.d.ts.map +1 -1
  84. package/dist/widgets/RebuyDynamicBundleProducts/Select.d.ts.map +1 -1
  85. package/dist/widgets/RebuyWidget/RebuyWidget.d.ts +3 -0
  86. package/dist/widgets/RebuyWidget/RebuyWidget.d.ts.map +1 -0
  87. package/dist/widgets/RebuyWidget/WidgetContent.d.ts +3 -0
  88. package/dist/widgets/RebuyWidget/WidgetContent.d.ts.map +1 -0
  89. package/dist/widgets/RebuyWidget/index.d.ts +2 -0
  90. package/dist/widgets/RebuyWidget/index.d.ts.map +1 -0
  91. package/dist/widgets/RebuyWidget/types.d.ts +335 -0
  92. package/dist/widgets/RebuyWidget/types.d.ts.map +1 -0
  93. package/package.json +3 -2
@@ -0,0 +1,21 @@
1
+ export type RebuyThemeLinkOptions = {
2
+ /**
3
+ * Override the API key from the RebuyConfigContext.
4
+ * Useful if you need to specify a different key for styles
5
+ * than the one used for general API calls.
6
+ */
7
+ overrideApiKey?: string;
8
+ };
9
+ /**
10
+ * A hook that returns an array of link objects for the Rebuy theme stylesheet,
11
+ * suitable for Remix's links function. It attempts to use the API key from
12
+ * the RebuyConfigContext.
13
+ *
14
+ * @param {RebuyThemeLinkOptions} options - Optional override for apiKey.
15
+ * @returns {Array<{ href: string; rel: string }>} An array containing the link object, or an empty array if prerequisites are not met.
16
+ */
17
+ export declare const useRebuyTheme: (options?: RebuyThemeLinkOptions) => {
18
+ href: string;
19
+ rel: string;
20
+ }[];
21
+ //# sourceMappingURL=useRebuyTheme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useRebuyTheme.d.ts","sourceRoot":"","sources":["../../src/hooks/useRebuyTheme.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,qBAAqB,GAAG;IAChC;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,GAAI,UAAS,qBAA0B;;;GAsChE,CAAC"}
package/dist/index.css CHANGED
@@ -1,38 +1,85 @@
1
1
  /* src/components/AddToCartBtn/AddToCartBtn.module.css */
2
- .AddToCartBtn_button {
3
- padding: 8px 16px;
4
- border-radius: 4px;
5
- font-size: 16px;
6
- color: #fff;
7
- background-color: #000;
2
+ .AddToCartBtn_rebuy-cart-button {
3
+ padding: var(--rb-spacing-unit-2x, 8px) var(--rb-spacing-unit-4x, 16px);
4
+ border-radius: var(--rb-border-radius-button, 4px);
5
+ font-size: var(--rb-font-size-large, 16px);
6
+ font-weight: var(--rb-font-weight-medium);
7
+ line-height: var(--rb-line-height-normal);
8
+ color: var(--rb-color-button-primary-text, #fff);
9
+ background-color: var(--rb-color-button-primary-background, #000);
8
10
  border: none;
11
+ border-width: var(--rb-border-width-button);
12
+ border-style: solid;
13
+ border-color: var(--rb-color-button-primary-border);
9
14
  cursor: pointer;
10
15
  width: 100%;
11
16
  display: flex;
12
17
  align-items: center;
13
18
  justify-content: center;
14
- gap: 8px;
15
- }
16
- .AddToCartBtn_button:disabled {
17
- opacity: 0.5;
19
+ gap: var(--rb-spacing-unit-2x, 8px);
20
+ text-align: center;
21
+ transition:
22
+ background-color 0.2s ease,
23
+ border-color 0.2s ease,
24
+ color 0.2s ease,
25
+ box-shadow 0.2s ease,
26
+ opacity 0.2s ease;
27
+ }
28
+ .AddToCartBtn_rebuy-cart-button:hover {
29
+ background-color: var(--rb-color-button-primary-background-hover, #333);
30
+ border-color: var(--rb-color-button-primary-border-hover, var(--rb-color-button-primary-border));
31
+ color: var(--rb-color-button-primary-text-hover, var(--rb-color-button-primary-text, #fff));
32
+ }
33
+ .AddToCartBtn_rebuy-cart-button:focus {
34
+ outline: none;
35
+ background-color: var(--rb-color-button-primary-background-focus, var(--rb-color-button-primary-background, #000));
36
+ border-color: var(--rb-color-button-primary-border-focus, var(--rb-color-button-primary-border));
37
+ color: var(--rb-color-button-primary-text-focus, var(--rb-color-button-primary-text, #fff));
38
+ box-shadow: 0 0 0 var(--rb-focus-ring-width, 3px) var(--rb-color-focus-ring-alpha-25, rgb(0 123 255 / 25%));
39
+ }
40
+ .AddToCartBtn_rebuy-cart-button:active {
41
+ background-color: var(--rb-color-button-primary-background-active, var(--rb-color-button-primary-background, #000));
42
+ border-color: var(--rb-color-button-primary-border-active, var(--rb-color-button-primary-border));
43
+ color: var(--rb-color-button-primary-text-active, var(--rb-color-button-primary-text, #fff));
44
+ }
45
+ .AddToCartBtn_rebuy-cart-button:disabled {
46
+ opacity: var(--rb-opacity-disabled, 0.5);
18
47
  cursor: not-allowed;
19
48
  }
20
- .AddToCartBtn_button:hover {
21
- background-color: #333;
49
+ .AddToCartBtn_rebuy-cart-button__container form {
50
+ max-width: 100%;
22
51
  }
23
52
 
24
53
  /* src/components/ProductPrice/ProductPrice.module.css */
25
- .ProductPrice_priceContainer {
54
+ .ProductPrice_rebuy-product-price {
26
55
  display: flex;
27
- align-items: center;
28
- gap: 8px;
56
+ align-items: baseline;
57
+ gap: var(--rb-spacing-unit-2x, 0.5em);
58
+ font-size: var(--rb-font-size-medium, 1em);
59
+ line-height: var(--rb-line-height-normal, 1);
60
+ color: var(--rb-color-text-price-default, #333);
29
61
  }
30
- .ProductPrice_compareAtPrice {
31
- opacity: 0.5;
62
+ .ProductPrice_rebuy-product-price__current {
63
+ font-weight: var(--rb-font-weight-medium, 500);
64
+ color: var(--rb-color-text-price-default, #333);
65
+ }
66
+ .ProductPrice_rebuy-product-price__current--sale {
67
+ color: var(--rb-color-text-price-sale, #f00);
68
+ }
69
+ .ProductPrice_rebuy-product-price__compare-at {
70
+ color: var(--rb-color-text-price-compare-at, #666);
71
+ text-decoration: line-through;
72
+ font-size: var(--rb-font-size-small, 0.875em);
32
73
  }
33
74
 
34
- /* src/components/VariantSelect/VariantSelect.module.css */
35
- .VariantSelect_select {
75
+ /* src/components/QuantityInput/QuantityInput.module.css */
76
+ .QuantityInput_rebuy-quantity__container {
77
+ display: flex;
78
+ align-items: center;
79
+ justify-content: center;
80
+ margin: var(--rb-spacing-unit-1x, 4px) 0;
81
+ }
82
+ .QuantityInput_rebuy-quantity__select {
36
83
  width: 100%;
37
84
  padding: 8px;
38
85
  border: 1px solid #ccc;
@@ -40,37 +87,319 @@
40
87
  font-size: 16px;
41
88
  color: #333;
42
89
  background-color: #fff;
90
+ appearance: auto;
91
+ }
92
+
93
+ /* src/components/Title/Title.module.css */
94
+ .Title_rebuy-title {
95
+ font-family: var(--rb-font-family-base);
96
+ font-weight: var(--rb-font-weight-bold);
97
+ line-height: var(--rb-line-height-tight);
98
+ color: var(--rb-color-text-default);
99
+ margin: 0;
100
+ padding: 0;
101
+ }
102
+
103
+ /* src/components/VariantSelect/VariantSelect.module.css */
104
+ .VariantSelect_rebuy-variant__container {
105
+ position: relative;
106
+ }
107
+ .VariantSelect_rebuy-variant__select {
108
+ width: 100%;
109
+ padding: var(--rb-spacing-unit-2x) var(--rb-spacing-unit-5x) var(--rb-spacing-unit-2x) var(--rb-spacing-unit-3x);
110
+ height: var(--rb-size-input-height-medium);
111
+ border: var(--rb-border-width-input) solid var(--rb-color-border-input-default);
112
+ border-radius: var(--rb-border-radius-input);
113
+ font-size: var(--rb-font-size-medium);
114
+ color: var(--rb-color-text-input);
115
+ background-color: var(--rb-color-background-input);
116
+ cursor: pointer;
117
+ transition: border-color 0.2s ease, box-shadow 0.2s ease;
118
+ }
119
+ .VariantSelect_rebuy-variant__select:hover {
120
+ border-color: var(--rb-color-border-input-hover, var(--rb-color-border-input-focus));
121
+ }
122
+ .VariantSelect_rebuy-variant__select:focus {
123
+ outline: none;
124
+ border-color: var(--rb-color-border-input-focus);
125
+ box-shadow: 0 0 0 var(--rb-focus-ring-width) var(--rb-color-focus-ring-alpha-25);
126
+ }
127
+ .VariantSelect_rebuy-variant__select:disabled {
128
+ color: var(--rb-color-text-disabled);
129
+ background-color: var(--rb-color-background-disabled);
130
+ border-color: var(--rb-color-border-disabled);
131
+ cursor: not-allowed;
132
+ opacity: var(--rb-opacity-disabled);
133
+ }
134
+ .VariantSelect_rebuy-variant__select-optgroup-label {
135
+ font-style: italic;
136
+ color: var(--rb-color-text-muted);
137
+ }
138
+ .VariantSelect_rebuy-variant__select-option {
139
+ color: var(--rb-color-text-input);
140
+ background-color: var(--rb-color-background-input);
141
+ }
142
+ .VariantSelect_rebuy-variant__buttons {
143
+ display: flex;
144
+ flex-flow: row wrap;
145
+ gap: 0.5em;
146
+ }
147
+ .VariantSelect_rebuy-variant__button {
148
+ padding: 8px 16px;
149
+ border-radius: 4px;
150
+ font-size: 16px;
151
+ color: #000;
152
+ background-color: transparent;
153
+ border: 1px solid #ccc;
154
+ cursor: pointer;
155
+ display: flex;
156
+ align-items: center;
157
+ justify-content: center;
158
+ gap: 8px;
159
+ min-width: 80px;
160
+ }
161
+ .VariantSelect_rebuy-variant__button:disabled {
162
+ opacity: 0.5;
163
+ cursor: not-allowed;
164
+ }
165
+ .VariantSelect_rebuy-variant__button:hover {
166
+ background-color: #f5f5f5;
167
+ }
168
+ .VariantSelect_rebuy-variant__button--selected {
169
+ background-color: #f0f0f0;
170
+ border-color: #999;
43
171
  }
44
172
 
45
173
  /* src/components/ProductCard/ProductCard.module.css */
46
- .ProductCard_container {
174
+ .ProductCard_rebuy-product-card__container {
175
+ height: 100%;
176
+ background-color: var(--rb-color-background-surface-primary, transparent);
177
+ border-width: var(--rb-border-width-thin, 1px);
178
+ border-style: solid;
179
+ border-color: var(--rb-color-border-default, #f0f4f8);
180
+ border-radius: var(--rb-border-radius-card, 1em);
181
+ padding: var(--rb-spacing-unit-3x, 1em);
182
+ overflow: hidden;
183
+ }
184
+ .ProductCard_rebuy-product-card {
47
185
  display: flex;
48
- flex-direction: column;
49
- gap: 24px;
50
- max-width: 256px;
51
186
  height: 100%;
187
+ gap: var(--rb-spacing-unit-2x, 1em);
188
+ }
189
+ .ProductCard_rebuy-product-card__content {
190
+ display: flex;
191
+ flex-direction: column;
192
+ gap: var(--rb-spacing-unit-1x, 0.5em);
193
+ }
194
+ .ProductCard_rebuy-product-card__header {
195
+ width: 100%;
196
+ }
197
+ .ProductCard_rebuy-product-card[data-layout=grid] {
198
+ flex-direction: column;
52
199
  justify-content: space-between;
200
+ max-width: 256px;
53
201
  }
54
- .ProductCard_productInfo {
55
- display: grid;
56
- gap: 4px;
202
+ .ProductCard_rebuy-product-card[data-layout=grid] > div:first-child {
203
+ width: 100%;
204
+ }
205
+ .ProductCard_rebuy-product-card[data-layout=grid] .ProductCard_rebuy-product-card__info {
206
+ display: flex;
207
+ flex-direction: column;
208
+ gap: var(--rb-spacing-unit-1x, 0.5em);
209
+ width: 100%;
57
210
  align-items: start;
58
211
  }
212
+ .ProductCard_rebuy-product-card[data-layout=grid] .ProductCard_rebuy-product-card__content {
213
+ flex: 1;
214
+ }
215
+ .ProductCard_rebuy-product-card[data-layout=list] {
216
+ flex-direction: row;
217
+ align-items: flex-start;
218
+ }
219
+ .ProductCard_rebuy-product-card[data-layout=list] > div:first-child {
220
+ flex: 0 0 40%;
221
+ max-width: 40%;
222
+ }
223
+ .ProductCard_rebuy-product-card[data-layout=list] .ProductCard_rebuy-product-card__info {
224
+ flex: 1;
225
+ padding-left: var(--rb-spacing-unit-3x, 1em);
226
+ display: flex;
227
+ flex-direction: column;
228
+ gap: var(--rb-spacing-unit-1x, 0.5em);
229
+ }
230
+ .ProductCard_rebuy-product-card[data-layout=list] .ProductCard_rebuy-product-card__content {
231
+ flex: 1;
232
+ }
233
+ .ProductCard_rebuy-product-card[data-layout=line] {
234
+ flex-direction: row;
235
+ align-items: center;
236
+ }
237
+ .ProductCard_rebuy-product-card[data-layout=line] > div:first-child {
238
+ flex: 0 0 25%;
239
+ max-width: 25%;
240
+ }
241
+ .ProductCard_rebuy-product-card[data-layout=line] .ProductCard_rebuy-product-card__info {
242
+ flex: 1;
243
+ display: flex;
244
+ flex-direction: row;
245
+ align-items: center;
246
+ padding-left: var(--rb-spacing-unit-3x, 1em);
247
+ gap: var(--rb-spacing-unit-2x, 1em);
248
+ }
249
+ .ProductCard_rebuy-product-card[data-layout=line] .ProductCard_rebuy-product-card__content {
250
+ flex: 1;
251
+ margin-right: var(--rb-spacing-unit-3x, 1.5em);
252
+ }
253
+ .ProductCard_rebuy-product-card__actions {
254
+ width: 100%;
255
+ margin-top: var(--rb-spacing-unit-3x, 1rem);
256
+ display: flex;
257
+ flex-direction: column;
258
+ gap: var(--rb-spacing-unit-1x, 0.5em);
259
+ }
260
+ .ProductCard_rebuy-product-card[data-layout=line] .ProductCard_rebuy-product-card__actions {
261
+ flex: 0 0 auto;
262
+ margin-top: 0;
263
+ align-items: center;
264
+ }
265
+ .ProductCard_rebuy-product-card__media-link {
266
+ display: block;
267
+ text-decoration: none;
268
+ border-radius: var(--rb-border-radius-medium, 0.5em);
269
+ overflow: hidden;
270
+ }
271
+ .ProductCard_rebuy-product-card[data-layout=grid] .ProductCard_rebuy-product-card__media-link {
272
+ margin-bottom: var(--rb-spacing-unit-3x, 1em);
273
+ }
274
+ .ProductCard_rebuy-product-card[data-layout=list] .ProductCard_rebuy-product-card__media-link,
275
+ .ProductCard_rebuy-product-card[data-layout=line] .ProductCard_rebuy-product-card__media-link {
276
+ margin-bottom: 0;
277
+ }
278
+ .ProductCard_rebuy-product-card__image {
279
+ display: block;
280
+ width: 100%;
281
+ height: auto;
282
+ object-fit: cover;
283
+ border-radius: var(--rb-border-radius-medium, 0.5em);
284
+ transition: transform 0.3s ease-out;
285
+ }
286
+ @media (width >= 576px) {
287
+ .ProductCard_rebuy-product-card__image {
288
+ max-width: 400px;
289
+ margin-left: auto;
290
+ margin-right: auto;
291
+ }
292
+ }
293
+ .ProductCard_rebuy-product-card__media-link:hover .ProductCard_rebuy-product-card__image,
294
+ .ProductCard_rebuy-product-card__media-link:focus .ProductCard_rebuy-product-card__image {
295
+ transform: scale(1.05);
296
+ }
297
+ .ProductCard_rebuy-product-card__title {
298
+ margin: 0;
299
+ }
300
+ .ProductCard_rebuy-product-card__title-link {
301
+ text-decoration: none;
302
+ color: var(--rb-color-text-product-title, var(--rb-color-text-default, #000));
303
+ }
304
+ .ProductCard_rebuy-product-card__title-link:hover,
305
+ .ProductCard_rebuy-product-card__title-link:focus {
306
+ color: var(--rb-color-text-link-hover, #000);
307
+ text-decoration: underline;
308
+ }
309
+ .ProductCard_rebuy-product-card__actions-variant-select {
310
+ width: 100%;
311
+ }
312
+ .ProductCard_rebuy-product-card__actions-variant-select[data-layout=line] {
313
+ display: none;
314
+ }
315
+ .ProductCard_rebuy-product-card__variant-select {
316
+ }
317
+ .ProductCard_rebuy-product-card__variant-select[data-layout=grid],
318
+ .ProductCard_rebuy-product-card__variant-select[data-layout=list] {
319
+ display: none;
320
+ }
321
+ .ProductCard_rebuy-product-card__variant-select[data-layout=line] {
322
+ margin-top: var(--rb-spacing-unit-2x, 1em);
323
+ }
324
+ .ProductCard_rebuy-product-card__actions-quantity,
325
+ .ProductCard_rebuy-product-card__actions-button {
326
+ width: 100%;
327
+ }
328
+ .ProductCard_rebuy-product-card__vendor {
329
+ font-size: var(--rb-font-size-small, 0.875em);
330
+ color: var(--rb-color-text-muted, #6b7280);
331
+ }
332
+ .ProductCard_rebuy-product-card__variant-title {
333
+ font-size: var(--rb-font-size-small, 0.875em);
334
+ color: var(--rb-color-text-muted-variant, #666);
335
+ margin-bottom: var(--rb-spacing-unit-half, 0.25em);
336
+ }
337
+ .ProductCard_rebuy-product-card__review {
338
+ display: flex;
339
+ align-items: center;
340
+ margin: var(--rb-spacing-unit-1x, 0.5em) 0;
341
+ }
342
+ .ProductCard_rebuy-product-card__star-rating {
343
+ position: relative;
344
+ display: inline-block;
345
+ }
346
+ .ProductCard_rebuy-product-card__star-rating-value {
347
+ position: absolute;
348
+ left: -9999px;
349
+ width: 1px;
350
+ height: 1px;
351
+ overflow: hidden;
352
+ }
353
+ .ProductCard_rebuy-product-card__star-rating-background {
354
+ display: inline-block;
355
+ width: 80px;
356
+ height: 16px;
357
+ background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 0L10.3 5.2H16L11.1 8.5L12.8 14L8 10.5L3.2 14L4.9 8.5L0 5.2H5.7L8 0Z' fill='%23e0e0e0'/%3E%3C/svg%3E");
358
+ background-repeat: repeat-x;
359
+ background-size: 16px;
360
+ }
361
+ .ProductCard_rebuy-product-card__star-rating-foreground {
362
+ position: absolute;
363
+ top: 0;
364
+ left: 0;
365
+ display: inline-block;
366
+ height: 16px;
367
+ background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 0L10.3 5.2H16L11.1 8.5L12.8 14L8 10.5L3.2 14L4.9 8.5L0 5.2H5.7L8 0Z' fill='%23FFD700'/%3E%3C/svg%3E");
368
+ background-repeat: repeat-x;
369
+ background-size: 16px;
370
+ }
371
+ .ProductCard_rebuy-product-card__review-count {
372
+ margin-left: var(--rb-spacing-unit-1x, 0.5em);
373
+ font-size: var(--rb-font-size-small, 0.875em);
374
+ color: var(--rb-color-text-muted-review, #666);
375
+ }
376
+ .ProductCard_rebuy-product-card__review-count-parenthesis,
377
+ .ProductCard_rebuy-product-card__review-count-number,
378
+ .ProductCard_rebuy-product-card__review-count-label {
379
+ font-size: var(--rb-font-size-extra-small, 0.75em);
380
+ color: var(--rb-color-text-muted-review, #666);
381
+ }
382
+ .ProductCard_rebuy-product-card__description {
383
+ font-size: var(--rb-font-size-small, 0.875em);
384
+ line-height: var(--rb-line-height-base, 1.4);
385
+ color: var(--rb-color-text-body, #333);
386
+ margin-top: var(--rb-spacing-unit-1x, 0.5em);
387
+ }
59
388
 
60
389
  /* src/widgets/RebuyCompleteTheLook/RebuyCompleteTheLook.module.css */
61
390
  .RebuyCompleteTheLook_container {
62
- padding: 2rem 1rem;
63
- margin: 1rem 0;
391
+ padding: 2rem 1em;
392
+ margin: 1em 0;
64
393
  background-color: #f0f4f8;
65
- border-radius: 1rem;
394
+ border-radius: 1em;
66
395
  @media (width >= 768px) {
67
- padding: 4rem;
396
+ padding: 4em;
68
397
  }
69
398
  }
70
399
  .RebuyCompleteTheLook_productGrid {
71
400
  display: grid;
72
401
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
73
- gap: 2rem;
402
+ gap: 2em;
74
403
  list-style: none;
75
404
  padding: 0;
76
405
  margin: 0;
@@ -293,4 +622,232 @@
293
622
  gap: 32px;
294
623
  list-style: none;
295
624
  }
625
+
626
+ /* src/components/ProductCarousel/ProductCarousel.module.css */
627
+ .ProductCarousel_rebuy-carousel {
628
+ position: relative;
629
+ overflow: hidden;
630
+ width: 100%;
631
+ }
632
+ .ProductCarousel_rebuy-carousel__container {
633
+ display: flex;
634
+ transition: transform 0.3s ease;
635
+ }
636
+ .ProductCarousel_rebuy-carousel__slide {
637
+ flex: 0 0 100%;
638
+ }
639
+ .ProductCarousel_rebuy-carousel__controls {
640
+ display: flex;
641
+ justify-content: center;
642
+ gap: 1em;
643
+ margin-top: 1em;
644
+ }
645
+ .ProductCarousel_rebuy-carousel__prev,
646
+ .ProductCarousel_rebuy-carousel__next {
647
+ background-color: #f5f5f5;
648
+ border: none;
649
+ border-radius: 50%;
650
+ width: 2.5em;
651
+ height: 2.5em;
652
+ display: flex;
653
+ align-items: center;
654
+ justify-content: center;
655
+ cursor: pointer;
656
+ color: #333;
657
+ font-size: 1.2em;
658
+ }
659
+ .ProductCarousel_rebuy-carousel__prev:hover,
660
+ .ProductCarousel_rebuy-carousel__next:hover {
661
+ background-color: #e0e0e0;
662
+ }
663
+ .ProductCarousel_rebuy-carousel__pagination {
664
+ display: flex;
665
+ justify-content: center;
666
+ gap: 0.5em;
667
+ margin-top: 1em;
668
+ }
669
+ .ProductCarousel_rebuy-carousel__dot {
670
+ width: 0.75em;
671
+ height: 0.75em;
672
+ border-radius: 50%;
673
+ background-color: #ccc;
674
+ cursor: pointer;
675
+ border: none;
676
+ padding: 0;
677
+ }
678
+ .ProductCarousel_rebuy-carousel__dot[data-active=true] {
679
+ background-color: #333;
680
+ }
681
+ .ProductCarousel_rebuy-carousel:empty {
682
+ display: none;
683
+ }
684
+ .ProductCarousel_rebuy-carousel__grid {
685
+ display: flex;
686
+ flex-wrap: wrap;
687
+ gap: 1.5em;
688
+ width: 100%;
689
+ }
690
+ .ProductCarousel_rebuy-carousel__grid[data-columns="1"] > div {
691
+ flex: 0 0 100%;
692
+ }
693
+ .ProductCarousel_rebuy-carousel__grid[data-columns="2"] > div {
694
+ flex: 0 0 calc(50% - 0.75em);
695
+ }
696
+ .ProductCarousel_rebuy-carousel__grid[data-columns="3"] > div {
697
+ flex: 0 0 calc(33.33% - 1em);
698
+ }
699
+ .ProductCarousel_rebuy-carousel__grid[data-columns="4"] > div {
700
+ flex: 0 0 calc(25% - 1.125em);
701
+ }
702
+ .ProductCarousel_rebuy-carousel__grid[data-columns="5"] > div {
703
+ flex: 0 0 calc(20% - 1.2em);
704
+ }
705
+ .ProductCarousel_rebuy-carousel__grid[data-columns="6"] > div {
706
+ flex: 0 0 calc(16.66% - 1.25em);
707
+ }
708
+
709
+ /* src/components/Timer/Timer.module.css */
710
+ .Timer_rebuy-timer__container {
711
+ margin: 0 auto;
712
+ padding: 10px;
713
+ background-color: #f8f8f8;
714
+ border-radius: 4px;
715
+ width: 80%;
716
+ }
717
+ .Timer_rebuy-timer__text {
718
+ font-size: 16px;
719
+ display: flex;
720
+ gap: 0.5em;
721
+ justify-content: center;
722
+ align-items: center;
723
+ margin: 0 auto;
724
+ flex-wrap: wrap;
725
+ text-align: center;
726
+ }
727
+ .Timer_rebuy-timer__title {
728
+ font-weight: 500;
729
+ }
730
+ .Timer_rebuy-timer__display {
731
+ font-weight: 700;
732
+ font-size: 18px;
733
+ font-family: monospace;
734
+ color: #d9534f;
735
+ white-space: nowrap;
736
+ }
737
+ .Timer_rebuy-timer__display--urgent {
738
+ animation: Timer_pulse 1s infinite;
739
+ }
740
+ .Timer_rebuy-timer__minutes,
741
+ .Timer_rebuy-timer__seconds {
742
+ display: inline-block;
743
+ min-width: 24px;
744
+ text-align: center;
745
+ }
746
+ .Timer_rebuy-timer__separator {
747
+ margin: 0 2px;
748
+ }
749
+ @keyframes Timer_pulse {
750
+ 0% {
751
+ opacity: 1;
752
+ }
753
+ 50% {
754
+ opacity: 0.5;
755
+ }
756
+ 100% {
757
+ opacity: 1;
758
+ }
759
+ }
760
+ @media (width <= 576px) {
761
+ .Timer_rebuy-timer__text {
762
+ flex-direction: column;
763
+ gap: 0.25em;
764
+ }
765
+ .Timer_rebuy-timer__display {
766
+ margin-top: 0.25em;
767
+ }
768
+ }
769
+
770
+ /* src/widgets/RebuyWidget/RebuyWidget.module.css */
771
+ .RebuyWidget_rebuy-widget__container {
772
+ width: 100%;
773
+ }
774
+ .RebuyWidget_rebuy-widget__popup-overlay {
775
+ position: fixed;
776
+ top: 0;
777
+ left: 0;
778
+ width: 100%;
779
+ height: 100%;
780
+ background-color: rgb(0 0 0 / 50%);
781
+ display: flex;
782
+ justify-content: center;
783
+ align-items: center;
784
+ z-index: 9999;
785
+ }
786
+ .RebuyWidget_rebuy-widget__popup-content {
787
+ background-color: white;
788
+ border-radius: 8px;
789
+ max-width: 90%;
790
+ max-height: 90vh;
791
+ overflow-y: auto;
792
+ position: relative;
793
+ box-shadow: 0 4px 20px rgb(0 0 0 / 15%);
794
+ }
795
+ .RebuyWidget_rebuy-widget__content {
796
+ padding: 2em;
797
+ }
798
+ .RebuyWidget_rebuy-widget__inner-content {
799
+ display: flex;
800
+ flex-direction: column;
801
+ gap: 0.5em;
802
+ }
803
+ .RebuyWidget_rebuy-widget__description {
804
+ text-align: center;
805
+ }
806
+ .RebuyWidget_rebuy-widget__modal-close {
807
+ position: absolute;
808
+ top: 1em;
809
+ right: 1em;
810
+ background: transparent;
811
+ border: none;
812
+ font-size: 1.5em;
813
+ cursor: pointer;
814
+ z-index: 1;
815
+ color: #333;
816
+ width: 2em;
817
+ height: 2em;
818
+ display: flex;
819
+ align-items: center;
820
+ justify-content: center;
821
+ border-radius: 50%;
822
+ }
823
+ .RebuyWidget_rebuy-widget__modal-close:hover {
824
+ background-color: rgb(0 0 0 / 5%);
825
+ }
826
+ .RebuyWidget_rebuy-widget__product-grid {
827
+ display: flex;
828
+ flex-wrap: wrap;
829
+ gap: 1.5em;
830
+ width: 100%;
831
+ }
832
+ .RebuyWidget_rebuy-widget__product-grid[data-columns="1"] > div {
833
+ flex: 0 0 100%;
834
+ }
835
+ .RebuyWidget_rebuy-widget__product-grid[data-columns="2"] > div {
836
+ flex: 0 0 calc(50% - 0.75em);
837
+ }
838
+ .RebuyWidget_rebuy-widget__product-grid[data-columns="3"] > div {
839
+ flex: 0 0 calc(33.33% - 1em);
840
+ }
841
+ .RebuyWidget_rebuy-widget__product-grid[data-columns="4"] > div {
842
+ flex: 0 0 calc(25% - 1.125em);
843
+ }
844
+ .RebuyWidget_rebuy-widget__product-grid[data-columns="5"] > div {
845
+ flex: 0 0 calc(20% - 1.2em);
846
+ }
847
+ .RebuyWidget_rebuy-widget__product-grid[data-columns="6"] > div {
848
+ flex: 0 0 calc(16.66% - 1.25em);
849
+ }
850
+ .RebuyWidget_rebuy-widget__product-grid:empty {
851
+ display: none;
852
+ }
296
853
  /*# sourceMappingURL=index.css.map */