@depict-ai/react-ui 0.0.74 → 0.0.76

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 (43) hide show
  1. package/dist/index.d.ts +46 -107
  2. package/dist/main.js +32 -32
  3. package/dist/module.js +21 -21
  4. package/dist/styles/components/PLP/Buttons.scss +24 -53
  5. package/dist/styles/components/PLP/MorphingSign.scss +4 -2
  6. package/dist/styles/components/PLP/PLPResults.scss +1 -1
  7. package/dist/styles/components/PLP/ProductListingPage.scss +21 -24
  8. package/dist/styles/components/PLP/ScrollStatus.scss +5 -8
  9. package/dist/styles/components/PLP/SelectedFilters.scss +26 -27
  10. package/dist/styles/components/PLP/SlidableItems.scss +3 -6
  11. package/dist/styles/components/PLP/SortAndFilter/FloatingButtons.scss +16 -24
  12. package/dist/styles/components/PLP/SortAndFilter/SortAndFilter.scss +184 -182
  13. package/dist/styles/components/PLP/SortAndFilter/SortAndFilterModal.scss +11 -12
  14. package/dist/styles/components/PLP/Toast.scss +8 -6
  15. package/dist/styles/components/PLP/index.scss +3 -39
  16. package/dist/styles/components/category/BreadCrumbs.scss +4 -11
  17. package/dist/styles/components/category/CategoryTitle.scss +4 -11
  18. package/dist/styles/components/category/QuickLinks.scss +14 -37
  19. package/dist/styles/components/category/index.scss +2 -18
  20. package/dist/styles/components/search/Autocomplete.scss +27 -42
  21. package/dist/styles/components/search/CategorySuggestions.scss +13 -42
  22. package/dist/styles/components/search/InstantCard.scss +8 -11
  23. package/dist/styles/components/search/InstantResults.scss +3 -3
  24. package/dist/styles/components/search/PreviousSearches.scss +6 -13
  25. package/dist/styles/components/search/SearchField.scss +26 -72
  26. package/dist/styles/components/search/SearchModal.scss +8 -23
  27. package/dist/styles/components/search/SearchRecommendations.scss +2 -2
  28. package/dist/styles/components/search/ShowingResultsFor.scss +2 -8
  29. package/dist/styles/components/search/index.scss +2 -30
  30. package/dist/styles/default.css +1 -1
  31. package/dist/styles/helpers/custom_input.scss +5 -5
  32. package/dist/styles/helpers/utils.scss +8 -2
  33. package/dist/styles/index.scss +54 -3
  34. package/dist/styles/package.json +30 -0
  35. package/dist/styles/variables.scss +286 -52
  36. package/dist-server/index.d.ts +8 -8
  37. package/dist-server/main.js +12 -12
  38. package/dist-server/module.js +8 -8
  39. package/locales/index.d.ts +2 -2
  40. package/locales/index.js +1 -1
  41. package/locales/require.js +1 -1
  42. package/package.json +4 -5
  43. package/dist/styles/components/PLP/SortAndFilter/WhiteSortAndFilter.scss +0 -152
package/dist/index.d.ts CHANGED
@@ -1,29 +1,13 @@
1
- import { SDKColsAtSize, SDKGridSpacing, CategoryTitle, EmbeddedNumProducts } from "@depict-ai/js-ui";
1
+ import { BasePLPConfig, BaseProviderConfig, BaseSearchProviderConfig, BaseSearchPageConfig, BaseCategoryPageConfig, CategoryTitle, embedded_num_products } from "@depict-ai/ui";
2
2
  import { Display } from "@depict-ai/utilishared";
3
3
  import React, { ReactNode, PropsWithChildren, ReactElement } from "react";
4
- import { Locale } from "@depict-ai/js-ui/locales";
5
- export const version = "0.0.74";
6
- interface PLPConfig<T extends Display> {
4
+ import { Locale } from "@depict-ai/ui/locales";
5
+ export const version = "0.0.76";
6
+ interface PLPConfig<T extends Display> extends BasePLPConfig {
7
7
  /**
8
8
  * The product card to use for rendering products.
9
9
  */
10
10
  productCard: DepictProductCard<T>;
11
- /**
12
- * How many columns to show at each media size.
13
- * @default
14
- * [[2, 901], [3, 1024], [4]]
15
- * @example
16
- * [[2, 901], [3, 1024], [4]]
17
- * means 2 columns at sizes up to 901px, 3 columns at sizes up to 1024px and after that 4 columns at any size.
18
- */
19
- columnsAtSize?: SDKColsAtSize;
20
- /**
21
- * The spacing between products.
22
- * @default "2%"
23
- * @example
24
- * "2%", "10px", "1rem", {horizontal: "1%", vertical: "5px"}
25
- */
26
- gridSpacing?: SDKGridSpacing;
27
11
  }
28
12
  /**
29
13
  * The Depict product card props.
@@ -37,35 +21,10 @@ export interface DepictProductCardProps<T extends Display> {
37
21
  */
38
22
  export type DepictProductCard<T extends Display> = (props: DepictProductCardProps<T>) => ReactNode;
39
23
  type NavigateFunction = (relativeUrl: string) => void;
40
- type DepictSearchConfig = {
41
- /**
42
- * The path to the search page.
43
- * @example "/search", "/sok"
44
- */
45
- searchPagePath: string;
46
- /**
47
- * The name of the url parameter that will be used for the search query.
48
- * @example "q", "search_query"
49
- * @default "search_query"
50
- */
51
- urlParamName?: string;
52
- /**
53
- * Whether to enable category suggestions in the search modal and search page.
54
- * @default false
55
- */
56
- enableCategorySuggestions?: boolean;
57
- };
58
- type DepictBaseConfig = {
59
- /**
60
- * The merchant to use for the search.
61
- * @example "YOUR_MERCHANT", "stronger"
62
- */
63
- merchant: string;
64
- /**
65
- * The market to use for the search.
66
- * @example "YOUR_MARKET", "no", "en-de"
67
- */
68
- market: string;
24
+ /**
25
+ * The config for the DepictProvider.
26
+ */
27
+ type ProviderConfig = BaseProviderConfig & {
69
28
  /**
70
29
  * The function to use for navigating to a new page.
71
30
  * This function will be used internally by our components to navigate.
@@ -111,12 +70,7 @@ type DepictBaseConfig = {
111
70
  * @default en
112
71
  */
113
72
  locale?: Locale;
114
- };
115
- /**
116
- * The config for the DepictProvider.
117
- */
118
- type DepictConfig = DepictBaseConfig & {
119
- search: DepictSearchConfig;
73
+ search: BaseSearchProviderConfig;
120
74
  };
121
75
  /**
122
76
  * The DepictProvider is a wrapper component that should be used to wrap any component that uses Depict components.
@@ -143,28 +97,28 @@ type DepictConfig = DepictBaseConfig & {
143
97
  * ```
144
98
  * @returns {JSX.Element} The DepictProvider.
145
99
  */
146
- export function DepictProvider(props: PropsWithChildren<DepictConfig>): import("react").FunctionComponentElement<{
100
+ export function DepictProvider(props: PropsWithChildren<ProviderConfig>): import("react").FunctionComponentElement<{
147
101
  children?: import("react").ReactNode;
148
102
  }>;
149
103
  /**
150
- * A component used to align other Depict components on.
104
+ * A component used to align other Depict components to.
151
105
  * @example
152
106
  * Align the search modal
153
107
  * ```tsx
154
108
  * import React from "react";
155
- * import { DepictAligner, useDepictSearchModal } from "@depict-ai/react-ui";
109
+ * import { ComponentAligner, useSearchModal } from "@depict-ai/react-ui";
156
110
  *
157
111
  * const App = () => {
158
112
  * const ref = React.createRef();
159
113
  *
160
- * const { open } = useDepictSearchModal({
114
+ * const { open } = useSearchModal({
161
115
  * location: "aligned",
162
116
  * alignerRef: ref,
163
117
  * });
164
118
  *
165
119
  * return (
166
120
  * <div>
167
- * <DepictAligner ref={ref} />
121
+ * <ComponentAligner ref={ref} />
168
122
  * <button onClick={open}>Open</button>
169
123
  * </div>
170
124
  * );
@@ -172,24 +126,19 @@ export function DepictProvider(props: PropsWithChildren<DepictConfig>): import("
172
126
  * ```
173
127
  * @returns {JSX.Element}
174
128
  */
175
- export const DepictAligner: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
176
- interface SearchPageConfig<T extends Display> extends PLPConfig<T> {
177
- /**
178
- * Whether to show the search input field in the search page.
179
- * @default true
180
- */
181
- includeInputField?: boolean;
129
+ export const ComponentAligner: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
130
+ interface SearchPageConfig<T extends Display> extends BaseSearchPageConfig, PLPConfig<T> {
182
131
  }
183
132
  /**
184
- * DepictSearchPage is a component that renders a search page.
133
+ * SearchPage is a component that renders a Depict search results page.
185
134
  * @param props - The props for the search page.
186
135
  *
187
136
  * @example
188
137
  * ```tsx
189
- * import { DepictProductCard, ImagePlaceholder, Display, DepictSearchPage } from '@depict-ai/react-ui'
138
+ * import { DepictProductCard, ImagePlaceholder, Display, SearchPage } from '@depict-ai/react-ui'
190
139
  *
191
140
  * function Search() {
192
- * return <DepictSearchPage productCard={MyCustomSearchProductCard} />
141
+ * return <SearchPage productCard={MyCustomSearchProductCard} />
193
142
  * }
194
143
  *
195
144
  * interface MyCustomDisplay extends Display {}
@@ -220,43 +169,33 @@ interface SearchPageConfig<T extends Display> extends PLPConfig<T> {
220
169
  *
221
170
  * ```
222
171
  */
223
- export function DepictSearchPage<T extends Display>(props: SearchPageConfig<T>): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
224
- interface CategoryPageConfig<T extends Display> extends PLPConfig<T> {
172
+ export function SearchPage<T extends Display>(props: SearchPageConfig<T>): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
173
+ interface CategoryPageConfig<T extends Display> extends BaseCategoryPageConfig, PLPConfig<T> {
225
174
  /**
226
175
  * The category id to show.
227
176
  */
228
177
  categoryId: string;
229
- /**
230
- * Whether to show the breadcrumbs in the category page.
231
- * @default true
232
- */
233
- showBreadcrumbs?: boolean;
234
- /**
235
- * Whether to show the quicklinks in the category page.
236
- * @default true
237
- */
238
- showQuicklinks?: boolean;
239
178
  /**
240
179
  * categoryTitlePlugin is an optional plugin that can be used to customize the title of the category page.
241
180
  * @default CategoryTitle
242
181
  *
243
182
  * @example
244
183
  * ```tsx
245
- * <DepictCategoryPage categoryId="jeans" productCard={MyCustomCategoryProductCard} categoryTitlePlugin={CategoryTitle} />
184
+ * <CategoryPage categoryId="jeans" productCard={MyCustomCategoryProductCard} categoryTitlePlugin={CategoryTitle} />
246
185
  * ```
247
186
  */
248
- categoryTitlePlugin?: typeof CategoryTitle | typeof EmbeddedNumProducts;
187
+ categoryTitlePlugin?: typeof CategoryTitle | typeof embedded_num_products;
249
188
  }
250
189
  /**
251
- * DepictCategoryPage is a component that renders a category page.
190
+ * CategoryPage is a component that renders a Depict category page.
252
191
  * @param props the props for the category page.
253
192
  *
254
193
  * @example
255
194
  * ```tsx
256
- * import { DepictProductCard, ImagePlaceholder, Display, DepictCategoryPage } from '@depict-ai/react-ui'
195
+ * import { DepictProductCard, ImagePlaceholder, Display, CategoryPage } from '@depict-ai/react-ui'
257
196
  *
258
197
  * function Category() {
259
- * return <DepictCategoryPage categoryId="jeans" productCard={MyCustomCategoryProductCard} />
198
+ * return <CategoryPage categoryId="jeans" productCard={MyCustomCategoryProductCard} />
260
199
  * }
261
200
  *
262
201
  * interface MyCustomDisplay extends Display {}
@@ -286,7 +225,7 @@ interface CategoryPageConfig<T extends Display> extends PLPConfig<T> {
286
225
  * }
287
226
  * ```
288
227
  */
289
- export function DepictCategoryPage<T extends Display>(props: CategoryPageConfig<T>): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
228
+ export function CategoryPage<T extends Display>(props: CategoryPageConfig<T>): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
290
229
  /**
291
230
  * BreadCrumbs is the "trail" in the header of a category page.
292
231
  */
@@ -343,19 +282,19 @@ interface UseSearchModalParams {
343
282
  * @example
344
283
  * ```tsx
345
284
  import React from "react";
346
- import { DepictAligner, useDepictSearchModal } from "@depict-ai/react-ui";
285
+ import { ComponentAligner, useSearchModal } from "@depict-ai/react-ui";
347
286
 
348
287
  const App = () => {
349
288
  const ref = React.createRef();
350
289
 
351
- const { open } = useDepictSearchModal({
290
+ const { open } = useSearchModal({
352
291
  location: "aligned",
353
292
  alignerRef: ref,
354
293
  });
355
294
 
356
295
  return (
357
296
  <div>
358
- <DepictAligner ref={ref} />
297
+ <ComponentAligner ref={ref} />
359
298
  <button onClick={open}>Open</button>
360
299
  </div>
361
300
  );
@@ -378,10 +317,10 @@ interface UseSearchModalReturn {
378
317
  * Open a centered modal:
379
318
  * ```tsx
380
319
  * import React from "react";
381
- * import { useDepictSearchModal } from "@depict-ai/react-ui";
320
+ * import { useSearchModal } from "@depict-ai/react-ui";
382
321
  *
383
322
  * const App = () => {
384
- * const { open } = useDepictSearchModal({
323
+ * const { open } = useSearchModal({
385
324
  * location: "centered",
386
325
  * });
387
326
  *
@@ -394,23 +333,23 @@ interface UseSearchModalReturn {
394
333
  * ```
395
334
  * @returns {JSX.Element}
396
335
  */
397
- export function useDepictSearchModal(params?: UseSearchModalParams): UseSearchModalReturn;
336
+ export function useSearchModal(params?: UseSearchModalParams): UseSearchModalReturn;
398
337
  interface SearchFieldProps {
399
338
  /**
400
339
  * A reference to the DOM element that the modal should be aligned to.
401
340
  *
402
341
  * The top of the modal will be aligned to the top of the element.
403
342
  *
404
- * The hight of the search field in the modal will be the same as the height of the element.
343
+ * The height of the search field in the modal will be the same as the height of the element.
405
344
  * If not provided, the modal will be aligned to the search field itself.
406
345
  */
407
346
  alignerRef?: React.RefObject<HTMLElement>;
408
347
  }
409
- interface UseDepictSearchFieldReturn {
348
+ interface UseSearchFieldReturn {
410
349
  /**
411
350
  * A React component that renders the search field.
412
351
  */
413
- DepictSearchField: () => ReactElement;
352
+ SearchField: () => ReactElement;
414
353
  }
415
354
  /**
416
355
  * Hook used to configure the Depict search field.
@@ -418,14 +357,14 @@ interface UseDepictSearchFieldReturn {
418
357
  * Render a search field that opens a modal aligned to the search field itself:
419
358
  * ```tsx
420
359
  * import React from "react";
421
- * import { useDepictSearchField } from "@depict-ai/react-ui";
360
+ * import { useSearchField } from "@depict-ai/react-ui";
422
361
  *
423
362
  * const App = () => {
424
- * const { DepictSearchField } = useDepictSearchField();
363
+ * const { SearchField } = useSearchField();
425
364
  *
426
365
  * return (
427
366
  * <div>
428
- * <DepictSearchField />
367
+ * <SearchField />
429
368
  * </div>
430
369
  * );
431
370
  * };
@@ -434,30 +373,30 @@ interface UseDepictSearchFieldReturn {
434
373
  * Render a search field that opens a modal aligned another DOM element:
435
374
  * ```tsx
436
375
  * import React from "react";
437
- * import { DepictAligner, useDepictSearchField } from "@depict-ai/react-ui";
376
+ * import { ComponentAligner, useSearchField } from "@depict-ai/react-ui";
438
377
  *
439
378
  * const App = () => {
440
379
  * const ref = useRef(null);
441
- * const { DepictSearchField } = useDepictSearchField({
380
+ * const { SearchField } = useSearchField({
442
381
  * alignerRef: ref
443
382
  * });
444
383
  *
445
384
  * return (
446
385
  * <div>
447
- * <DepictAligner ref={ref} />
448
- * <DepictSearchField />
386
+ * <ComponentAligner ref={ref} />
387
+ * <SearchField />
449
388
  * </div>
450
389
  * );
451
390
  * };
452
391
  * ```
453
392
  * @returns {JSX.Element}
454
393
  */
455
- export const useDepictSearchField: (props?: SearchFieldProps) => UseDepictSearchFieldReturn;
394
+ export const useSearchField: (props?: SearchFieldProps) => UseSearchFieldReturn;
456
395
  /**
457
396
  * Helper function to navigate to a new page depending on the navigation library used.
458
397
  */
459
398
  export const Navigation: {
460
399
  nextRouterNavigation: (router: import("next/router").NextRouter) => (relativeUrl: string) => void;
461
400
  };
462
- export { CategoryTitle, EmbeddedNumProducts } from "@depict-ai/js-ui";
463
- export type { Locale } from "@depict-ai/js-ui/locales";
401
+ export { CategoryTitle, embedded_num_products as EmbeddedNumProducts } from "@depict-ai/ui";
402
+ export type { Locale } from "@depict-ai/ui/locales";
package/dist/main.js CHANGED
@@ -1,12 +1,11 @@
1
1
  var $4GYXz$depictaiutilishared = require("@depict-ai/utilishared");
2
- var $4GYXz$depictaijsui = require("@depict-ai/js-ui");
2
+ var $4GYXz$depictaiui = require("@depict-ai/ui");
3
3
  var $4GYXz$solidjs = require("solid-js");
4
4
  var $4GYXz$react = require("react");
5
- var $4GYXz$depictaijsuilocales = require("@depict-ai/js-ui/locales");
5
+ var $4GYXz$depictaiuilocales = require("@depict-ai/ui/locales");
6
6
  var $4GYXz$solidjsweb = require("solid-js/web");
7
7
  var $4GYXz$reactjsxruntime = require("react/jsx-runtime");
8
8
  var $4GYXz$reactdom = require("react-dom");
9
- var $4GYXz$depictaiui = require("@depict-ai/ui");
10
9
 
11
10
  function $parcel$export(e, n, v, s) {
12
11
  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
@@ -14,21 +13,21 @@ function $parcel$export(e, n, v, s) {
14
13
 
15
14
  $parcel$export(module.exports, "QuickLinks", () => $f16af0e861aff3d0$export$466cdc317043f6cb);
16
15
  $parcel$export(module.exports, "BreadCrumbs", () => $d88e98b11c182b8e$export$5646050d516e06bc);
17
- $parcel$export(module.exports, "DepictAligner", () => $d96434e62e08087d$export$3f4580d6398c5027);
16
+ $parcel$export(module.exports, "ComponentAligner", () => $883a881f7926405d$export$80e99ee6b29cadd2);
18
17
  $parcel$export(module.exports, "DepictProvider", () => $24b00503eef73528$export$9fac37a9c21c2f3b);
19
- $parcel$export(module.exports, "DepictCategoryPage", () => $5aa5fcb9f8a2bebc$export$d87c61cecb2edf0d);
20
- $parcel$export(module.exports, "DepictSearchPage", () => $7ad7a3d0011b7b1b$export$210723f5a54a7028);
18
+ $parcel$export(module.exports, "CategoryPage", () => $5aa5fcb9f8a2bebc$export$f7d2f673fc2f091d);
19
+ $parcel$export(module.exports, "SearchPage", () => $7ad7a3d0011b7b1b$export$a54ec244c8863715);
21
20
  $parcel$export(module.exports, "ImagePlaceholder", () => $df522c8a81ed5a01$export$3f37af283f8fb843);
22
21
  $parcel$export(module.exports, "TextPlaceholder", () => $7c8b440edc188ad5$export$89c6019e4baa40b1);
23
- $parcel$export(module.exports, "useDepictSearchModal", () => $3647cad61d03b89c$export$cc1e9aaf280afdcb);
24
- $parcel$export(module.exports, "useDepictSearchField", () => $ca5840628781f899$export$45080d603eda647c);
22
+ $parcel$export(module.exports, "useSearchModal", () => $ae73b15c325f1b21$export$912994940e660d32);
23
+ $parcel$export(module.exports, "useSearchField", () => $913da7f4d0bc77f2$export$9bb30bbe003b82e0);
25
24
  $parcel$export(module.exports, "CategoryTitle", () => $b03e4eee8610ebbe$re_export$CategoryTitle);
26
25
  $parcel$export(module.exports, "EmbeddedNumProducts", () => $b03e4eee8610ebbe$re_export$EmbeddedNumProducts);
27
26
  $parcel$export(module.exports, "version", () => $db7b67857900028b$export$83d89fbfd8236492);
28
27
  $parcel$export(module.exports, "Navigation", () => $b742053c966024b4$export$b8a61e5c71402559);
29
28
  /*! Depict.ai search and product listing react SDK wrapper */ // This is where the actual source of your React stuff should live
30
29
  // Note, if you add an export here, also add one in src-server/main.ts
31
- const $db7b67857900028b$export$83d89fbfd8236492 = "0.0.74";
30
+ const $db7b67857900028b$export$83d89fbfd8236492 = "0.0.76";
32
31
 
33
32
 
34
33
 
@@ -186,7 +185,7 @@ const $bc389476eeb2b615$export$599d4515591ef232 = (relativeUrl)=>{
186
185
 
187
186
  function $24b00503eef73528$export$9fac37a9c21c2f3b(props) {
188
187
  const { children: children , navigateFunction: navigateFunction , market: market , merchant: merchant , locale: locale } = props;
189
- const usedLocale = locale ?? (0, $4GYXz$depictaijsuilocales.en);
188
+ const usedLocale = locale ?? (0, $4GYXz$depictaiuilocales.en);
190
189
  const { searchPagePath: searchPagePath , urlParamName: urlParamName , enableCategorySuggestions: enableCategorySuggestions } = props.search ?? {};
191
190
  if (!market || !merchant) {
192
191
  (0, $0b7cd4fb39fc3502$export$8e769ad4338a911e).required_state_set_[1](false);
@@ -196,11 +195,12 @@ function $24b00503eef73528$export$9fac37a9c21c2f3b(props) {
196
195
  const { search: search , category: category } = (0, $0b7cd4fb39fc3502$export$8e769ad4338a911e);
197
196
  const [get_search_page_path, set_search_page_path] = (0, $0b7cd4fb39fc3502$export$8e769ad4338a911e).search_page_path_;
198
197
  set_search_page_path($24b00503eef73528$var$ensure_correct_formatting(searchPagePath));
199
- const on_navigation = typeof window?.next?.router !== "undefined" || navigateFunction ? (new_relative_url)=>{
198
+ if (typeof window?.next?.router === "undefined" && !navigateFunction) throw new Error("You must provide a navigateFunction when not using Next.js.");
199
+ const on_navigation = (new_relative_url)=>{
200
200
  if (navigateFunction) navigateFunction(new_relative_url);
201
201
  else (0, $bc389476eeb2b615$export$599d4515591ef232)(new_relative_url);
202
- } : undefined;
203
- if (!search) (0, $4GYXz$solidjs.createRoot)(()=>(0, $0b7cd4fb39fc3502$export$8e769ad4338a911e).search = new (0, $4GYXz$depictaijsui.DepictSearch)({
202
+ };
203
+ if (!search) (0, $4GYXz$solidjs.createRoot)(()=>(0, $0b7cd4fb39fc3502$export$8e769ad4338a911e).search = new (0, $4GYXz$depictaiui.DepictSearch)({
204
204
  search_query_url_param_name: urlParamName,
205
205
  market: market,
206
206
  merchant: merchant,
@@ -215,7 +215,7 @@ function $24b00503eef73528$export$9fac37a9c21c2f3b(props) {
215
215
  search.merchant = merchant;
216
216
  search.localization = usedLocale;
217
217
  }
218
- if (!category) (0, $4GYXz$solidjs.createRoot)(()=>(0, $0b7cd4fb39fc3502$export$8e769ad4338a911e).category = new (0, $4GYXz$depictaijsui.DepictCategory)({
218
+ if (!category) (0, $4GYXz$solidjs.createRoot)(()=>(0, $0b7cd4fb39fc3502$export$8e769ad4338a911e).category = new (0, $4GYXz$depictaiui.DepictCategory)({
219
219
  market: market,
220
220
  merchant: merchant,
221
221
  localization: usedLocale,
@@ -244,7 +244,7 @@ function $24b00503eef73528$var$ensure_correct_formatting(path) {
244
244
 
245
245
 
246
246
 
247
- const $d96434e62e08087d$export$3f4580d6398c5027 = /*#__PURE__*/ (0, $4GYXz$react.forwardRef)((_, ref)=>{
247
+ const $883a881f7926405d$export$80e99ee6b29cadd2 = /*#__PURE__*/ (0, $4GYXz$react.forwardRef)((_, ref)=>{
248
248
  return /*#__PURE__*/ (0, $4GYXz$react.createElement)("div", {
249
249
  className: "depict aligner",
250
250
  style: {
@@ -260,7 +260,7 @@ const $d96434e62e08087d$export$3f4580d6398c5027 = /*#__PURE__*/ (0, $4GYXz$react
260
260
 
261
261
 
262
262
 
263
- function $7ad7a3d0011b7b1b$export$210723f5a54a7028(props) {
263
+ function $7ad7a3d0011b7b1b$export$a54ec244c8863715(props) {
264
264
  return (0, $b4d0d98857ed9934$export$f6e64e17bd69eeef)((0, $b4d0d98857ed9934$export$e5139bbbb9a05035)($7ad7a3d0011b7b1b$var$SolidSearchPage), props);
265
265
  }
266
266
  function $7ad7a3d0011b7b1b$var$SolidSearchPage(props, set_portals) {
@@ -279,7 +279,7 @@ function $7ad7a3d0011b7b1b$var$SolidSearchPage(props, set_portals) {
279
279
  update_updating_blocked_signal();
280
280
  });
281
281
  const component_portals = new Set();
282
- return (0, $4GYXz$depictaijsui.DepictSearchPage)({
282
+ return (0, $4GYXz$depictaiui.SearchPage)({
283
283
  // Default config goes here
284
284
  include_input_field: props.includeInputField ?? true,
285
285
  cols_at_size: props.columnsAtSize ?? [
@@ -314,7 +314,7 @@ function $7ad7a3d0011b7b1b$var$SolidSearchPage(props, set_portals) {
314
314
 
315
315
 
316
316
  let $5aa5fcb9f8a2bebc$var$render_cb;
317
- function $5aa5fcb9f8a2bebc$export$d87c61cecb2edf0d(props) {
317
+ function $5aa5fcb9f8a2bebc$export$f7d2f673fc2f091d(props) {
318
318
  return (0, $b4d0d98857ed9934$export$f6e64e17bd69eeef)((0, $b4d0d98857ed9934$export$e5139bbbb9a05035)($5aa5fcb9f8a2bebc$var$SolidCategoryPage), props, "div", {}, (props)=>$5aa5fcb9f8a2bebc$var$render_cb?.(props));
319
319
  }
320
320
  function $5aa5fcb9f8a2bebc$var$SolidCategoryPage(props, set_portals) {
@@ -328,7 +328,7 @@ function $5aa5fcb9f8a2bebc$var$SolidCategoryPage(props, set_portals) {
328
328
  };
329
329
  $5aa5fcb9f8a2bebc$var$render_cb(props);
330
330
  const component_portals = new Set();
331
- const category = ()=>(0, $4GYXz$depictaijsui.DepictCategoryPage)({
331
+ const category = ()=>(0, $4GYXz$depictaiui.CategoryPage)({
332
332
  depict_category: depict_category,
333
333
  cols_at_size: props.columnsAtSize ?? [
334
334
  [
@@ -345,7 +345,7 @@ function $5aa5fcb9f8a2bebc$var$SolidCategoryPage(props, set_portals) {
345
345
  ],
346
346
  grid_spacing: props.gridSpacing ?? "2%",
347
347
  get_product_id: ()=>"",
348
- category_title: props.categoryTitlePlugin || (0, $4GYXz$depictaijsui.CategoryTitle),
348
+ category_title: props.categoryTitlePlugin || (0, $4GYXz$depictaiui.CategoryTitle),
349
349
  show_breadcrumbs: props.showBreadcrumbs === undefined ? true : props.showBreadcrumbs,
350
350
  show_quicklinks: props.showQuicklinks === undefined ? true : props.showQuicklinks,
351
351
  product_card_template: (display)=>(0, $b4d0d98857ed9934$export$79c79419c1ef0081)({
@@ -368,7 +368,7 @@ function $d88e98b11c182b8e$export$5646050d516e06bc() {
368
368
  function $d88e98b11c182b8e$var$vanilla_breadcrumbs() {
369
369
  const depict_category = (0, $0b7cd4fb39fc3502$export$8e769ad4338a911e).category;
370
370
  if (!depict_category) throw Error("No depict_category instance when rendering BreadCrumbs. Did you forget to wrap your app in DepictProvider?");
371
- return (0, $4GYXz$depictaijsui.BreadCrumbs)({
371
+ return (0, $4GYXz$depictaiui.BreadCrumbs)({
372
372
  depict_category: depict_category
373
373
  });
374
374
  }
@@ -383,7 +383,7 @@ function $f16af0e861aff3d0$export$466cdc317043f6cb() {
383
383
  function $f16af0e861aff3d0$var$vanilla_quick_links() {
384
384
  const depict_category = (0, $0b7cd4fb39fc3502$export$8e769ad4338a911e).category;
385
385
  if (!depict_category) throw Error("No depict_category instance when rendering QuickLinks. Did you forget to wrap your app in DepictProvider?");
386
- return (0, $4GYXz$depictaijsui.QuickLinks)({
386
+ return (0, $4GYXz$depictaiui.QuickLinks)({
387
387
  depict_category: depict_category
388
388
  });
389
389
  }
@@ -416,16 +416,16 @@ const $7c8b440edc188ad5$export$89c6019e4baa40b1 = ({ width: width , height: heig
416
416
 
417
417
 
418
418
 
419
- const $ef7db890e488d4f4$export$d69d8daa20eae175 = (createOpenModalParams)=>{
419
+ const $177ac8f5258066ba$export$d69d8daa20eae175 = (createOpenModalParams)=>{
420
420
  const { globalState: globalState , location: location = "centered" , alignerRef: alignerRef } = createOpenModalParams;
421
421
  const openModal = ()=>{
422
422
  if (globalState.search) {
423
- if (location === "aligned" && alignerRef?.current) (0, $4GYXz$depictaijsui.OpenModalWithAlignment)({
423
+ if (location === "aligned" && alignerRef?.current) (0, $4GYXz$depictaiui.open_modal_with_alignment)({
424
424
  "element": alignerRef.current,
425
425
  "location": location,
426
426
  "search": globalState.search
427
427
  });
428
- else (0, $4GYXz$depictaijsui.OpenModalWithAlignment)({
428
+ else (0, $4GYXz$depictaiui.open_modal_with_alignment)({
429
429
  "location": "centered",
430
430
  "search": globalState.search
431
431
  });
@@ -435,8 +435,8 @@ const $ef7db890e488d4f4$export$d69d8daa20eae175 = (createOpenModalParams)=>{
435
435
  };
436
436
 
437
437
 
438
- function $3647cad61d03b89c$export$cc1e9aaf280afdcb(params = {}) {
439
- const open = (0, $ef7db890e488d4f4$export$d69d8daa20eae175)({
438
+ function $ae73b15c325f1b21$export$912994940e660d32(params = {}) {
439
+ const open = (0, $177ac8f5258066ba$export$d69d8daa20eae175)({
440
440
  globalState: $0b7cd4fb39fc3502$export$8e769ad4338a911e,
441
441
  ...params
442
442
  });
@@ -449,9 +449,9 @@ function $3647cad61d03b89c$export$cc1e9aaf280afdcb(params = {}) {
449
449
 
450
450
 
451
451
 
452
- const $5e06ce09dcfaf030$export$bde46b5bb6287cea = (props)=>{
452
+ const $cd591d0e4ce29df7$export$bde46b5bb6287cea = (props)=>{
453
453
  const ReactSearchField = ()=>{
454
- return (0, $b4d0d98857ed9934$export$f6e64e17bd69eeef)((0, $b4d0d98857ed9934$export$e5139bbbb9a05035)(()=>(0, $4GYXz$depictaijsui.SearchField)({
454
+ return (0, $b4d0d98857ed9934$export$f6e64e17bd69eeef)((0, $b4d0d98857ed9934$export$e5139bbbb9a05035)(()=>(0, $4GYXz$depictaiui.SearchField)({
455
455
  depict_search: (0, $0b7cd4fb39fc3502$export$8e769ad4338a911e).search,
456
456
  aligner_ref: props?.alignerRef?.current
457
457
  })), {});
@@ -460,12 +460,12 @@ const $5e06ce09dcfaf030$export$bde46b5bb6287cea = (props)=>{
460
460
  };
461
461
 
462
462
 
463
- const $ca5840628781f899$export$45080d603eda647c = (props)=>{
464
- const SearchField = (0, $5e06ce09dcfaf030$export$bde46b5bb6287cea)({
463
+ const $913da7f4d0bc77f2$export$9bb30bbe003b82e0 = (props)=>{
464
+ const SearchField = (0, $cd591d0e4ce29df7$export$bde46b5bb6287cea)({
465
465
  alignerRef: props?.alignerRef
466
466
  });
467
467
  return {
468
- DepictSearchField: SearchField
468
+ SearchField: SearchField
469
469
  };
470
470
  };
471
471