@depict-ai/react-ui 0.0.4 → 0.0.6

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/index.d.ts CHANGED
@@ -1,11 +1,14 @@
1
- import { Display } from "@depict-ai/ui";
2
1
  import { PropsWithChildren, ReactNode } from "react";
3
- export interface SearchConfig {
2
+ import { Display } from "@depict-ai/utilishared";
3
+ interface SearchConfig {
4
4
  merchant: string;
5
5
  market: string;
6
+ search_page_path: string;
6
7
  }
8
+ export function DepictProvider(props: PropsWithChildren<SearchConfig>): PropsWithChildren<SearchConfig>;
9
+ export function DepictSearchHeader(): any;
10
+ export function openModal(): void;
7
11
  export interface SearchPageConfig {
8
12
  productCardFactory: (display: Display) => ReactNode;
9
13
  }
10
- export function DepictProvider({ children, merchant, market }: PropsWithChildren<SearchConfig>): ReactNode;
11
14
  export function DepictSearchPage(opts: SearchPageConfig): any;
package/dist/main.js CHANGED
@@ -1,43 +1,242 @@
1
+ var $lgFzj$reactdom = require("react-dom");
1
2
  var $lgFzj$depictaireactsolidbridge = require("@depict-ai/react-solid-bridge");
2
3
  var $lgFzj$react = require("react");
3
4
  var $lgFzj$depictaiui = require("@depict-ai/ui");
4
5
  var $lgFzj$reactjsxruntime = require("react/jsx-runtime");
6
+ var $lgFzj$depictaiutilishared = require("@depict-ai/utilishared");
5
7
  var $lgFzj$solidjs = require("solid-js");
6
8
 
7
9
  function $parcel$export(e, n, v, s) {
8
10
  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
9
11
  }
10
12
 
11
- $parcel$export(module.exports, "DepictProvider", () => $6abe21f0d440de7c$export$9fac37a9c21c2f3b);
12
13
  $parcel$export(module.exports, "DepictSearchPage", () => $6abe21f0d440de7c$export$210723f5a54a7028);
14
+ $parcel$export(module.exports, "DepictProvider", () => $36997bef3cf034d6$export$9fac37a9c21c2f3b);
15
+ $parcel$export(module.exports, "openModal", () => $74e00cdf1575ca1b$export$a7f6cffb6b8ba11c);
16
+ $parcel$export(module.exports, "DepictSearchHeader", () => $74e00cdf1575ca1b$export$cbcd1ecdb41b1d0a);
13
17
 
14
18
 
15
19
 
16
20
 
17
21
 
18
- function $6abe21f0d440de7c$export$9fac37a9c21c2f3b({ children: children , merchant: merchant , market: market }) {
22
+
23
+ let $35c9ea6fbd139a83$var$set = false;
24
+ function $35c9ea6fbd139a83$export$6453cbc34515a94d() {
25
+ if ($35c9ea6fbd139a83$var$set) return; // Just being safe
26
+ $35c9ea6fbd139a83$var$set = true;
27
+ let should_use_old_scroll = false;
28
+ const old_scrollTo = window.scrollTo;
29
+ window.scrollTo = (...args)=>{
30
+ const is_next_scrolling_enabled = args?.[1] !== 0; // TODO: This is not working for me right now: process.env.__NEXT_SCROLL_RESTORATION
31
+ if (should_use_old_scroll || is_next_scrolling_enabled) return Reflect.apply(old_scrollTo, window, args);
32
+ else should_use_old_scroll = true;
33
+ };
34
+ addEventListener("popstate", ()=>{
35
+ should_use_old_scroll = false;
36
+ $35c9ea6fbd139a83$var$addLotsOfPadding();
37
+ });
38
+ (0, $lgFzj$depictaiutilishared.observer).onexists(".depict.plp .listing-page .cards > div > *", ()=>{
39
+ $35c9ea6fbd139a83$var$removeLotsOfPadding();
40
+ });
41
+ (0, $lgFzj$depictaiutilishared.history_replacer)(()=>{
42
+ (0, $lgFzj$depictaiutilishared.queueMacroTask)(()=>{
43
+ $35c9ea6fbd139a83$var$removeLotsOfPadding();
44
+ });
45
+ }, false);
46
+ window?.next?.router?.events?.on("routeChangeStart", ()=>{
47
+ $35c9ea6fbd139a83$var$addLotsOfPadding();
48
+ });
49
+ }
50
+ function $35c9ea6fbd139a83$var$addLotsOfPadding() {
51
+ document.body.style.paddingBottom = (history.state?.search_scroll_restoration_data?.[0]?.min_results_loaded || 150) * 500 + "px";
52
+ }
53
+ function $35c9ea6fbd139a83$var$removeLotsOfPadding() {
54
+ document.body.style.paddingBottom = "";
55
+ }
56
+
57
+
58
+ const $eb4ef6a57c8b8ada$export$8e769ad4338a911e = {
59
+ search: null,
60
+ header_alignment: null
61
+ };
62
+
63
+
64
+
65
+
66
+ function $c23231ddd12eea0a$export$5cae361ad82dce8b(value) {
67
+ const ref = (0, $lgFzj$react.useRef)();
68
+ (0, $lgFzj$react.useEffect)(()=>{
69
+ ref.current = value;
70
+ }, [
71
+ value
72
+ ]);
73
+ return ref.current;
74
+ }
75
+
76
+
77
+
78
+ const $ed09819de7bb86d1$export$99ae278b8f3607a0 = (opts)=>{
79
+ const path = "/search";
80
+ const param = "q";
81
+ const is_page_ = (url)=>url.pathname == path;
82
+ const search = new (0, $lgFzj$depictaiui.DepictSearch)({
83
+ search_query_url_param_name: param,
84
+ merchant: opts.merchant,
85
+ market: opts.market,
86
+ localization: {
87
+ ...(0, $lgFzj$depictaiui.swedish_search_translation),
88
+ price_formatting_: {
89
+ pre_: "€ ",
90
+ post_: "",
91
+ decimal_places_delimiter_: ",",
92
+ thousands_delimiter_: " ",
93
+ places_after_comma_: 2
94
+ }
95
+ },
96
+ on_navigation: (new_href)=>{
97
+ const shallow = is_page_(location);
98
+ debugger;
99
+ window.next.router.push(new_href, undefined, {
100
+ shallow: shallow,
101
+ scroll: true
102
+ });
103
+ },
104
+ url_transformer: (url)=>{
105
+ url.pathname = path;
106
+ }
107
+ });
108
+ return search;
109
+ };
110
+
111
+
112
+ function $36997bef3cf034d6$export$9fac37a9c21c2f3b(props) {
113
+ const { children: children , merchant: merchant , market: market , search_page_path: search_page_path } = props;
114
+ const previous_props = (0, $c23231ddd12eea0a$export$5cae361ad82dce8b)(props);
115
+ if (!(0, $eb4ef6a57c8b8ada$export$8e769ad4338a911e).search) // Todo: use search_page_path for navigation
116
+ (0, $eb4ef6a57c8b8ada$export$8e769ad4338a911e).search = (0, $ed09819de7bb86d1$export$99ae278b8f3607a0)({
117
+ merchant: merchant,
118
+ market: market
119
+ });
120
+ else if (previous_props) {
121
+ const { prev_merchant: prev_merchant , prev_market: prev_market , search_page_path: search_page_path1 } = previous_props;
122
+ // Todo: here we can check if our search config changed and react to it.
123
+ // Do we need to know if it changed specifically, or could we just always set the values regardless if they changed or not?
124
+ // Should changing merchant log an error? Is it ever not a bug?
125
+ }
126
+ console.log("DepictProvider render", props, previous_props);
19
127
  return children;
20
128
  }
129
+
130
+
131
+ // PoC maybe-component
132
+ // Idea is to always give a nice "modal input in header" look with no more config than adding this component to the page header to where it can absolute-size
133
+ // and cover the entire height of the header. Then we know where to put the modal input top and bottom, and the left and right we just center.
134
+
135
+
136
+
137
+ function $74e00cdf1575ca1b$export$cbcd1ecdb41b1d0a() {
138
+ return (0, $lgFzj$react.createElement)("div", {
139
+ className: "depict aligner",
140
+ ref: (e)=>(0, $eb4ef6a57c8b8ada$export$8e769ad4338a911e).header_alignment = e
141
+ });
142
+ }
143
+ let $74e00cdf1575ca1b$var$sheet;
144
+ function $74e00cdf1575ca1b$export$a7f6cffb6b8ba11c() {
145
+ if (!(0, $eb4ef6a57c8b8ada$export$8e769ad4338a911e).search) {
146
+ console.error("No active search in the app!");
147
+ return;
148
+ }
149
+ if (!(0, $eb4ef6a57c8b8ada$export$8e769ad4338a911e).header_alignment) {
150
+ console.error("No active search header aligner on the page!");
151
+ return;
152
+ }
153
+ const style_props_ = (0, $lgFzj$solidjs.createSignal)({
154
+ position: "fixed",
155
+ top: 0
156
+ });
157
+ if ((0, $eb4ef6a57c8b8ada$export$8e769ad4338a911e).header_alignment?.clientHeight) {
158
+ let styles = `.depict.plp.in_header .depict-search-modal .query_input { height: ${(0, $eb4ef6a57c8b8ada$export$8e769ad4338a911e).header_alignment?.clientHeight}px; }`;
159
+ styles += `.depict.plp.in_header .depict-search-modal-backdrop { top: ${(0, $eb4ef6a57c8b8ada$export$8e769ad4338a911e).header_alignment?.clientHeight}px; }`;
160
+ if (!$74e00cdf1575ca1b$var$sheet) {
161
+ const style = document.createElement("style");
162
+ style.append(styles);
163
+ document.head.appendChild(style);
164
+ }
165
+ }
166
+ const class_list_ = (0, $lgFzj$solidjs.createMemo)(()=>({
167
+ in_header: true
168
+ }));
169
+ (0, $eb4ef6a57c8b8ada$export$8e769ad4338a911e).search.modal_open = [
170
+ {
171
+ style_props_: style_props_,
172
+ class_list_: class_list_
173
+ }
174
+ ];
175
+ }
176
+
177
+
178
+ let $6abe21f0d440de7c$var$active_render_card;
21
179
  function $6abe21f0d440de7c$var$DepictSearchPageContent(opts) {
180
+ (0, $35c9ea6fbd139a83$export$6453cbc34515a94d)();
22
181
  const [bridge, setBridge] = (0, $lgFzj$react.useState)(null);
182
+ const [portals, set_portals] = (0, $lgFzj$react.useState)([]);
23
183
  (0, $lgFzj$react.useEffect)(()=>{
24
- if (!bridge) {
25
- const [title] = (0, $lgFzj$solidjs.createSignal)("Category");
26
- const solid_element = (0, $lgFzj$depictaiui.CategoryTitle)({
27
- category_title_: title,
28
- product_count_: 0
184
+ const component_portals = [];
185
+ $6abe21f0d440de7c$var$active_render_card = async (display)=>{
186
+ const solid_container = document.createElement("div");
187
+ const react_has_rendered = new Promise((r)=>{
188
+ const m_o = new MutationObserver(()=>{
189
+ m_o.disconnect();
190
+ r();
191
+ });
192
+ m_o.observe(solid_container, {
193
+ childList: true
194
+ });
29
195
  });
30
- const solid_bridge = (0, $lgFzj$reactjsxruntime.jsx)((0, $lgFzj$depictaireactsolidbridge.ReactToSolidBridge), {
31
- solidComponent: ()=>solid_element,
32
- key: Math.random()
196
+ const reactProductCard = (0, $lgFzj$reactjsxruntime.jsx)(opts.productCardFactory, {
197
+ display: display
33
198
  });
34
- setBridge(solid_bridge);
35
- }
199
+ const portal = $lgFzj$reactdom.createPortal(reactProductCard, solid_container);
200
+ component_portals.push(portal);
201
+ set_portals([
202
+ ...component_portals
203
+ ]);
204
+ await react_has_rendered; // wait for react to have finish portaling the elements so that the placeholders get removed once we have an actual result and so that the PLP code knows it has a placeholder when this is a placeholder rendering
205
+ return [
206
+ solid_container
207
+ ];
208
+ };
209
+ if (!(0, $eb4ef6a57c8b8ada$export$8e769ad4338a911e).search) throw Error("No search when rendering SearchPage??");
210
+ const el = (0, $lgFzj$depictaiui.SearchPage)({
211
+ depict_search: (0, $eb4ef6a57c8b8ada$export$8e769ad4338a911e).search,
212
+ cols_at_size: [
213
+ [
214
+ 4
215
+ ],
216
+ [
217
+ 3,
218
+ 1024
219
+ ],
220
+ [
221
+ 2,
222
+ 901
223
+ ]
224
+ ],
225
+ grid_spacing: "10px",
226
+ product_card_template: (...args)=>$6abe21f0d440de7c$var$active_render_card(...args),
227
+ // function might not exist yet,
228
+ get_product_id: ()=>""
229
+ });
230
+ const solidBridge = (0, $lgFzj$reactjsxruntime.jsx)((0, $lgFzj$depictaireactsolidbridge.ReactToSolidBridge), {
231
+ solidComponent: ()=>el,
232
+ key: Math.random()
233
+ });
234
+ setBridge(solidBridge);
36
235
  }, []);
37
- return bridge ? (0, $lgFzj$react.createElement)("div", {
38
- className: "solid_bridge"
39
- }, [
40
- bridge
236
+ console.log("Searchpage render", bridge, portals.length);
237
+ return bridge ? (0, $lgFzj$react.createElement)("div", {}, [
238
+ bridge,
239
+ ...portals
41
240
  ]) : "";
42
241
  }
43
242
  function $6abe21f0d440de7c$export$210723f5a54a7028(opts) {
package/dist/module.js CHANGED
@@ -1,37 +1,234 @@
1
+ import {createPortal as $5DrVA$createPortal} from "react-dom";
1
2
  import {ReactToSolidBridge as $5DrVA$ReactToSolidBridge, ReactToSolidBridgeProvider as $5DrVA$ReactToSolidBridgeProvider} from "@depict-ai/react-solid-bridge";
2
- import {useState as $5DrVA$useState, useEffect as $5DrVA$useEffect, createElement as $5DrVA$createElement} from "react";
3
- import {CategoryTitle as $5DrVA$CategoryTitle} from "@depict-ai/ui";
3
+ import {useState as $5DrVA$useState, useEffect as $5DrVA$useEffect, createElement as $5DrVA$createElement, useRef as $5DrVA$useRef} from "react";
4
+ import {SearchPage as $5DrVA$SearchPage, DepictSearch as $5DrVA$DepictSearch, swedish_search_translation as $5DrVA$swedish_search_translation} from "@depict-ai/ui";
4
5
  import {jsx as $5DrVA$jsx} from "react/jsx-runtime";
5
- import {createSignal as $5DrVA$createSignal} from "solid-js";
6
+ import {observer as $5DrVA$observer, history_replacer as $5DrVA$history_replacer, queueMacroTask as $5DrVA$queueMacroTask} from "@depict-ai/utilishared";
7
+ import {createSignal as $5DrVA$createSignal, createMemo as $5DrVA$createMemo} from "solid-js";
6
8
 
7
9
 
8
10
 
9
11
 
10
12
 
11
13
 
12
- function $ea53d4d38ca71150$export$9fac37a9c21c2f3b({ children: children , merchant: merchant , market: market }) {
14
+
15
+ let $a788a5d95af0ff8b$var$set = false;
16
+ function $a788a5d95af0ff8b$export$6453cbc34515a94d() {
17
+ if ($a788a5d95af0ff8b$var$set) return; // Just being safe
18
+ $a788a5d95af0ff8b$var$set = true;
19
+ let should_use_old_scroll = false;
20
+ const old_scrollTo = window.scrollTo;
21
+ window.scrollTo = (...args)=>{
22
+ const is_next_scrolling_enabled = args?.[1] !== 0; // TODO: This is not working for me right now: process.env.__NEXT_SCROLL_RESTORATION
23
+ if (should_use_old_scroll || is_next_scrolling_enabled) return Reflect.apply(old_scrollTo, window, args);
24
+ else should_use_old_scroll = true;
25
+ };
26
+ addEventListener("popstate", ()=>{
27
+ should_use_old_scroll = false;
28
+ $a788a5d95af0ff8b$var$addLotsOfPadding();
29
+ });
30
+ (0, $5DrVA$observer).onexists(".depict.plp .listing-page .cards > div > *", ()=>{
31
+ $a788a5d95af0ff8b$var$removeLotsOfPadding();
32
+ });
33
+ (0, $5DrVA$history_replacer)(()=>{
34
+ (0, $5DrVA$queueMacroTask)(()=>{
35
+ $a788a5d95af0ff8b$var$removeLotsOfPadding();
36
+ });
37
+ }, false);
38
+ window?.next?.router?.events?.on("routeChangeStart", ()=>{
39
+ $a788a5d95af0ff8b$var$addLotsOfPadding();
40
+ });
41
+ }
42
+ function $a788a5d95af0ff8b$var$addLotsOfPadding() {
43
+ document.body.style.paddingBottom = (history.state?.search_scroll_restoration_data?.[0]?.min_results_loaded || 150) * 500 + "px";
44
+ }
45
+ function $a788a5d95af0ff8b$var$removeLotsOfPadding() {
46
+ document.body.style.paddingBottom = "";
47
+ }
48
+
49
+
50
+ const $d05612ee1ad913f8$export$8e769ad4338a911e = {
51
+ search: null,
52
+ header_alignment: null
53
+ };
54
+
55
+
56
+
57
+
58
+ function $420bb46ab3e903ef$export$5cae361ad82dce8b(value) {
59
+ const ref = (0, $5DrVA$useRef)();
60
+ (0, $5DrVA$useEffect)(()=>{
61
+ ref.current = value;
62
+ }, [
63
+ value
64
+ ]);
65
+ return ref.current;
66
+ }
67
+
68
+
69
+
70
+ const $f1d8262ca0141c24$export$99ae278b8f3607a0 = (opts)=>{
71
+ const path = "/search";
72
+ const param = "q";
73
+ const is_page_ = (url)=>url.pathname == path;
74
+ const search = new (0, $5DrVA$DepictSearch)({
75
+ search_query_url_param_name: param,
76
+ merchant: opts.merchant,
77
+ market: opts.market,
78
+ localization: {
79
+ ...(0, $5DrVA$swedish_search_translation),
80
+ price_formatting_: {
81
+ pre_: "€ ",
82
+ post_: "",
83
+ decimal_places_delimiter_: ",",
84
+ thousands_delimiter_: " ",
85
+ places_after_comma_: 2
86
+ }
87
+ },
88
+ on_navigation: (new_href)=>{
89
+ const shallow = is_page_(location);
90
+ debugger;
91
+ window.next.router.push(new_href, undefined, {
92
+ shallow: shallow,
93
+ scroll: true
94
+ });
95
+ },
96
+ url_transformer: (url)=>{
97
+ url.pathname = path;
98
+ }
99
+ });
100
+ return search;
101
+ };
102
+
103
+
104
+ function $17200933bad0a218$export$9fac37a9c21c2f3b(props) {
105
+ const { children: children , merchant: merchant , market: market , search_page_path: search_page_path } = props;
106
+ const previous_props = (0, $420bb46ab3e903ef$export$5cae361ad82dce8b)(props);
107
+ if (!(0, $d05612ee1ad913f8$export$8e769ad4338a911e).search) // Todo: use search_page_path for navigation
108
+ (0, $d05612ee1ad913f8$export$8e769ad4338a911e).search = (0, $f1d8262ca0141c24$export$99ae278b8f3607a0)({
109
+ merchant: merchant,
110
+ market: market
111
+ });
112
+ else if (previous_props) {
113
+ const { prev_merchant: prev_merchant , prev_market: prev_market , search_page_path: search_page_path1 } = previous_props;
114
+ // Todo: here we can check if our search config changed and react to it.
115
+ // Do we need to know if it changed specifically, or could we just always set the values regardless if they changed or not?
116
+ // Should changing merchant log an error? Is it ever not a bug?
117
+ }
118
+ console.log("DepictProvider render", props, previous_props);
13
119
  return children;
14
120
  }
121
+
122
+
123
+ // PoC maybe-component
124
+ // Idea is to always give a nice "modal input in header" look with no more config than adding this component to the page header to where it can absolute-size
125
+ // and cover the entire height of the header. Then we know where to put the modal input top and bottom, and the left and right we just center.
126
+
127
+
128
+
129
+ function $5ec9f73037322aa8$export$cbcd1ecdb41b1d0a() {
130
+ return (0, $5DrVA$createElement)("div", {
131
+ className: "depict aligner",
132
+ ref: (e)=>(0, $d05612ee1ad913f8$export$8e769ad4338a911e).header_alignment = e
133
+ });
134
+ }
135
+ let $5ec9f73037322aa8$var$sheet;
136
+ function $5ec9f73037322aa8$export$a7f6cffb6b8ba11c() {
137
+ if (!(0, $d05612ee1ad913f8$export$8e769ad4338a911e).search) {
138
+ console.error("No active search in the app!");
139
+ return;
140
+ }
141
+ if (!(0, $d05612ee1ad913f8$export$8e769ad4338a911e).header_alignment) {
142
+ console.error("No active search header aligner on the page!");
143
+ return;
144
+ }
145
+ const style_props_ = (0, $5DrVA$createSignal)({
146
+ position: "fixed",
147
+ top: 0
148
+ });
149
+ if ((0, $d05612ee1ad913f8$export$8e769ad4338a911e).header_alignment?.clientHeight) {
150
+ let styles = `.depict.plp.in_header .depict-search-modal .query_input { height: ${(0, $d05612ee1ad913f8$export$8e769ad4338a911e).header_alignment?.clientHeight}px; }`;
151
+ styles += `.depict.plp.in_header .depict-search-modal-backdrop { top: ${(0, $d05612ee1ad913f8$export$8e769ad4338a911e).header_alignment?.clientHeight}px; }`;
152
+ if (!$5ec9f73037322aa8$var$sheet) {
153
+ const style = document.createElement("style");
154
+ style.append(styles);
155
+ document.head.appendChild(style);
156
+ }
157
+ }
158
+ const class_list_ = (0, $5DrVA$createMemo)(()=>({
159
+ in_header: true
160
+ }));
161
+ (0, $d05612ee1ad913f8$export$8e769ad4338a911e).search.modal_open = [
162
+ {
163
+ style_props_: style_props_,
164
+ class_list_: class_list_
165
+ }
166
+ ];
167
+ }
168
+
169
+
170
+ let $ea53d4d38ca71150$var$active_render_card;
15
171
  function $ea53d4d38ca71150$var$DepictSearchPageContent(opts) {
172
+ (0, $a788a5d95af0ff8b$export$6453cbc34515a94d)();
16
173
  const [bridge, setBridge] = (0, $5DrVA$useState)(null);
174
+ const [portals, set_portals] = (0, $5DrVA$useState)([]);
17
175
  (0, $5DrVA$useEffect)(()=>{
18
- if (!bridge) {
19
- const [title] = (0, $5DrVA$createSignal)("Category");
20
- const solid_element = (0, $5DrVA$CategoryTitle)({
21
- category_title_: title,
22
- product_count_: 0
176
+ const component_portals = [];
177
+ $ea53d4d38ca71150$var$active_render_card = async (display)=>{
178
+ const solid_container = document.createElement("div");
179
+ const react_has_rendered = new Promise((r)=>{
180
+ const m_o = new MutationObserver(()=>{
181
+ m_o.disconnect();
182
+ r();
183
+ });
184
+ m_o.observe(solid_container, {
185
+ childList: true
186
+ });
23
187
  });
24
- const solid_bridge = (0, $5DrVA$jsx)((0, $5DrVA$ReactToSolidBridge), {
25
- solidComponent: ()=>solid_element,
26
- key: Math.random()
188
+ const reactProductCard = (0, $5DrVA$jsx)(opts.productCardFactory, {
189
+ display: display
27
190
  });
28
- setBridge(solid_bridge);
29
- }
191
+ const portal = $5DrVA$createPortal(reactProductCard, solid_container);
192
+ component_portals.push(portal);
193
+ set_portals([
194
+ ...component_portals
195
+ ]);
196
+ await react_has_rendered; // wait for react to have finish portaling the elements so that the placeholders get removed once we have an actual result and so that the PLP code knows it has a placeholder when this is a placeholder rendering
197
+ return [
198
+ solid_container
199
+ ];
200
+ };
201
+ if (!(0, $d05612ee1ad913f8$export$8e769ad4338a911e).search) throw Error("No search when rendering SearchPage??");
202
+ const el = (0, $5DrVA$SearchPage)({
203
+ depict_search: (0, $d05612ee1ad913f8$export$8e769ad4338a911e).search,
204
+ cols_at_size: [
205
+ [
206
+ 4
207
+ ],
208
+ [
209
+ 3,
210
+ 1024
211
+ ],
212
+ [
213
+ 2,
214
+ 901
215
+ ]
216
+ ],
217
+ grid_spacing: "10px",
218
+ product_card_template: (...args)=>$ea53d4d38ca71150$var$active_render_card(...args),
219
+ // function might not exist yet,
220
+ get_product_id: ()=>""
221
+ });
222
+ const solidBridge = (0, $5DrVA$jsx)((0, $5DrVA$ReactToSolidBridge), {
223
+ solidComponent: ()=>el,
224
+ key: Math.random()
225
+ });
226
+ setBridge(solidBridge);
30
227
  }, []);
31
- return bridge ? (0, $5DrVA$createElement)("div", {
32
- className: "solid_bridge"
33
- }, [
34
- bridge
228
+ console.log("Searchpage render", bridge, portals.length);
229
+ return bridge ? (0, $5DrVA$createElement)("div", {}, [
230
+ bridge,
231
+ ...portals
35
232
  ]) : "";
36
233
  }
37
234
  function $ea53d4d38ca71150$export$210723f5a54a7028(opts) {
@@ -41,4 +238,4 @@ function $ea53d4d38ca71150$export$210723f5a54a7028(opts) {
41
238
  }
42
239
 
43
240
 
44
- export {$ea53d4d38ca71150$export$9fac37a9c21c2f3b as DepictProvider, $ea53d4d38ca71150$export$210723f5a54a7028 as DepictSearchPage};
241
+ export {$ea53d4d38ca71150$export$210723f5a54a7028 as DepictSearchPage, $17200933bad0a218$export$9fac37a9c21c2f3b as DepictProvider, $5ec9f73037322aa8$export$a7f6cffb6b8ba11c as openModal, $5ec9f73037322aa8$export$cbcd1ecdb41b1d0a as DepictSearchHeader};
@@ -0,0 +1 @@
1
+ .listing-page .no-results{background:#fff;flex-direction:column;flex-grow:2;justify-content:flex-start;align-items:center;padding:40px;display:flex}.listing-page .no-results .hint{cursor:pointer;text-decoration:underline}.listing-page{flex-direction:column;padding:20px 10px;display:flex}@media (max-width:651px){.listing-page{padding:16px 8px}}.listing-page,.listing-page *{box-sizing:border-box}.listing-page>.filter-results-for-one-row,.listing-page>.results-for{margin-bottom:10px}@media (max-width:651px){.listing-page>.filter-results-for-one-row,.listing-page>.results-for{margin-bottom:8px}}.listing-page>.sort-and-filter-buttons{margin-top:10px;margin-bottom:10px}@media (max-width:651px){.listing-page>.sort-and-filter-buttons{margin-top:8px;margin-bottom:8px}}.listing-page .PLP-results{margin-top:10px;display:flex}@media (max-width:651px){.listing-page .PLP-results{margin-top:8px}}.listing-page .PLP-results>.filters,.listing-page .PLP-results>.sorting{margin-left:12px}.listing-page .cards{flex-flow:wrap;flex-grow:1;display:flex;overflow:hidden}.listing-page .selected-filters .inner{align-items:center;margin-top:10px;margin-bottom:10px;display:flex}.listing-page .selected-filters .inner .title{margin-right:10px}@media (min-width:652px){.listing-page .selected-filters .inner{margin-top:0;margin-bottom:0}}.listing-page .selected-filters .inner .title{text-transform:uppercase;color:#0f0f0f;font-size:1.1em}@media (max-width:600px){.listing-page .selected-filters .inner .title{display:none}}.listing-page .selected-filters .inner .depict_slider{width:unset;overflow:hidden}.listing-page .selected-filters .inner .depict_slider .clear-filter{border:1px solid #0f0f0f}.listing-page .selected-filters .inner .depict_slider .clear-filter svg{width:12.64px;height:12.64px}.listing-page .selected-filters .inner .depict_slider .clear-all-filters{border:1px solid #0f0f0f}.listing-page .selected-filters .inner .depict_slider .clear-filter,.listing-page .selected-filters .inner .depict_slider .clear-all-filters{box-sizing:border-box;white-space:nowrap;cursor:pointer;border-radius:4px;flex:none;align-items:center;padding:5px 10px;font-size:1em;line-height:1;display:flex}.listing-page .selected-filters .inner .depict_slider .clear-filter>:not(:first-child),.listing-page .selected-filters .inner .depict_slider .clear-all-filters>:not(:first-child){margin-left:2.5px}.listing-page .selected-filters .inner .depict_slider .clear-filter>:not(:last-child),.listing-page .selected-filters .inner .depict_slider .clear-all-filters>:not(:last-child){margin-right:2.5px}.scroll-status{pointer-events:none;white-space:nowrap;z-index:calc(5000 + 4);opacity:0;justify-content:center;align-items:center;display:flex;position:sticky;bottom:10vh}.scroll-status .text{color:#fff;background:#646464e6;border-radius:20px;padding:10px 20px}.major-minor-transition{transition:filter .15s ease-in-out,background .25s ease-in-out,color .25s ease-in-out,border .25s ease-in-out}.filter-results-for-one-row{justify-content:space-between;align-items:center;display:flex}:not(.filter-results-for-one-row)>.sort-and-filter-buttons .inner{justify-content:space-between}.sorting-attributes,.sorting-direction{background:#fff;flex-direction:column;padding:10px;display:flex}.sorting-attributes>:not(:first-child),.sorting-direction>:not(:first-child){margin-top:5px}.sorting-attributes>:not(:last-child),.sorting-direction>:not(:last-child){margin-bottom:5px}.sort-and-filter-buttons .outer{margin-top:-5px}.sort-and-filter-buttons .inner{justify-content:flex-end;align-items:center;padding-top:5px;display:flex;overflow:hidden}.sort-and-filter-buttons .inner>:not(:first-child){margin-left:5px}.sort-and-filter-buttons .inner>:not(:last-child){margin-right:5px}.sort-and-filter-buttons.fake .toggle-button{transition:none}.sort-and-filter-buttons .toggle-button{white-space:nowrap;padding:10px 20px;position:relative}.sort-and-filter-buttons .toggle-button>:not(:first-child){margin-left:2.5px}.sort-and-filter-buttons .toggle-button>:not(:last-child){margin-right:2.5px}.sort-and-filter-buttons .toggle-button svg path{transition-duration:.25s}.sort-and-filter-buttons .toggle-button.major.for-sorting>:not(:first-child){margin-left:5px}.sort-and-filter-buttons .toggle-button.major.for-sorting>:not(:last-child){margin-right:5px}.sort-and-filter-buttons .num_filters{color:#fff;width:20px;height:20px;z-index:2;background:#000;border-radius:13px;justify-content:center;align-items:center;font-size:12px;line-height:1;transition:opacity .25s ease-in-out;display:flex;position:absolute;top:-4px;right:-4px}.sort-and-filter-buttons .open-filters-button-container{position:relative}label{margin:0}.PLP-results .sorting,.PLP-results .filters{flex-shrink:0;flex-basis:330px}.filters .body,.sorting .body{flex-direction:column;display:flex}.filters .body .input_row,.sorting .body .input_row{cursor:pointer;position:relative}.filters .body .input_row .custom-indicator,.sorting .body .input_row .custom-indicator{margin-right:10px;position:relative}.filters .body .input_row input,.sorting .body .input_row input{opacity:0;cursor:pointer;height:0;width:0;position:absolute}.filters .body .input_row .custom-indicator:after,.sorting .body .input_row .custom-indicator:after{content:"";display:none;position:absolute}.filters .body .input_row input[type=checkbox]~.custom-indicator,.sorting .body .input_row input[type=checkbox]~.custom-indicator{background-color:#fff;border:1px solid #0f0f0f;border-radius:2px;padding:9.5px}.filters .body .input_row input[type=checkbox]:checked~.custom-indicator,.sorting .body .input_row input[type=checkbox]:checked~.custom-indicator{background-color:#0f0f0f}.filters .body .input_row input[type=checkbox]:checked~.custom-indicator:after,.sorting .body .input_row input[type=checkbox]:checked~.custom-indicator:after{fill:#fff;color:#fff;width:12px;height:10px;background-image:url("data:image/svg+xml;utf8,<svg fill=\"%23FFFFFF\" width=\"12\" height=\"10\" viewBox=\"0 0 12 10\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M12 2.0001L10.6 0.600098L4 7.2001L1.4 4.6001L0 6.0001L4 10.0001L12 2.0001Z\" /></svg>");display:block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.filters .body .input_row input[type=checkbox]:focus-visible~.custom-indicator,.sorting .body .input_row input[type=checkbox]:focus-visible~.custom-indicator{background-color:#eeeef0}.filters .body .input_row input[type=checkbox]:checked:focus-visible~.custom-indicator,.sorting .body .input_row input[type=checkbox]:checked:focus-visible~.custom-indicator{background-color:#3f3f3f}@media not all and (hover:none){.filters .body .input_row:hover input[type=checkbox]~.custom-indicator,.sorting .body .input_row:hover input[type=checkbox]~.custom-indicator{background-color:#eeeef0;border:2px solid #0f0f0f;padding:8.5px}.filters .body .input_row:hover input[type=checkbox]:checked~.custom-indicator,.sorting .body .input_row:hover input[type=checkbox]:checked~.custom-indicator{background-color:#3f3f3f}}.filters .body .input_row input[type=radio]~.custom-indicator,.sorting .body .input_row input[type=radio]~.custom-indicator{background-color:#fff;border:1px solid #0f0f0f;border-radius:50%;padding:9.5px}.filters .body .input_row input[type=radio]:checked~.custom-indicator,.sorting .body .input_row input[type=radio]:checked~.custom-indicator{background-color:#0000}.filters .body .input_row input[type=radio]:checked~.custom-indicator:after,.sorting .body .input_row input[type=radio]:checked~.custom-indicator:after{width:14px;height:14px;background-color:#0f0f0f;border-radius:50%;display:block;top:50%;left:50%;transform:translate(-50%,-50%)}.filters .body .input_row input[type=radio]:focus-visible~.custom-indicator,.sorting .body .input_row input[type=radio]:focus-visible~.custom-indicator{background:#e6e6e6}.filters .body .input_row input[type=radio]:checked:focus-visible~.custom-indicator:after,.sorting .body .input_row input[type=radio]:checked:focus-visible~.custom-indicator:after{background:#4f4f4f}@media not all and (hover:none){.filters .body .input_row:hover input[type=radio]~.custom-indicator,.sorting .body .input_row:hover input[type=radio]~.custom-indicator{border:2px solid #0f0f0f;padding:8.5px}}.filters .body>:not(:first-child){padding-top:5px}.filters .body>:not(:last-child){padding-bottom:5px}.filters .body .input_row{justify-content:space-between;padding-top:5px;padding-bottom:5px}.filters .body .input_row,.filters .body .input_row>.left{align-items:center;display:flex}.filters .body .input_row .text{text-overflow:ellipsis;white-space:pre-line;overflow-wrap:anywhere;color:#333335;-webkit-line-clamp:1;word-break:break-word;-webkit-box-orient:vertical;font-weight:400;line-height:21px;display:-webkit-box;overflow:hidden}.filters .body .input_row :checked~.text,.filters .body .input_row .fake_checked~.text{color:#000;font-weight:500}.filters .body .input_row.count-0 *+.text{color:#c2c2c2}.filters .body .input_row .count,.filters .body .hierarchical .checkbox_details.expandable .category_parent .count{color:#868689;font-weight:400}.filters .body .input_row:hover .count{color:#000}.filters .body .selected_w_sign{align-items:center;display:flex}.filters .body .selected_w_sign>:not(:first-child){margin-left:5px}.filters .body .selected_w_sign>:not(:last-child){margin-right:5px}.filters .body .selected_w_sign .show-selected{color:#868689;fill:#868689;align-items:center;display:flex}.filters .body .selected_w_sign .show-selected>:not(:first-child){margin-left:2.5px}.filters .body .selected_w_sign .show-selected>:not(:last-child){margin-right:2.5px}.filters .body .selected_w_sign .show-selected span{line-height:1}.filters .body .ungrouped{margin-top:25px}.filters .body .clear_all_filters{text-transform:uppercase;margin-top:5px;padding:.7em;font-size:1.1em;font-weight:400}.filters .body details summary{cursor:pointer;list-style:none}.filters .body details summary::-webkit-details-marker{display:none}.filters .body details summary>.summary{justify-content:space-between;align-items:center;display:flex}.filters .body details.filter_collapsible .filter_group_summary{background:#0f0f0f;border-radius:4px}.filters .body details.filter_collapsible .filter_group_summary:focus{outline:none}.filters .body details.filter_collapsible .filter_group_summary:focus-visible{background:#333335}@media not all and (hover:none){.filters .body details.filter_collapsible .filter_group_summary:hover{background:#333335}}.filters .body details.filter_collapsible .filter_group_summary>.summary{color:#fff;padding:10px}.filters .body details.filter_collapsible .filter_group_summary>.summary>svg{transform:rotate(270deg)}.filters .body details.filter_collapsible[open] .filter_group_summary{border-radius:4px 4px 0 0}.filters .body .filter_collapsible_body{background:#eeeef0;border-radius:0 0 4px 4px;flex-direction:column;display:flex;overflow:hidden}.filters .body .filter_collapsible_body>:not(:first-child){margin-top:.5px}.filters .body .filter_collapsible_body>:not(:last-child){margin-bottom:.5px}.filters .body .filter_collapsible_body .view_more_clear{background:#fdfdfd;justify-content:space-between;display:flex}.filters .body .filter_collapsible_body .view_more_clear .clear_group{margin-left:auto}.filters .body .filter_collapsible_body .view_more_clear .clear_group>:not(:first-child){margin-left:1.839px}.filters .body .filter_collapsible_body .view_more_clear .clear_group>:not(:last-child){margin-right:1.839px}.filters .body .filter_collapsible_body .view_more_clear .clear_group svg{width:11px;height:12px}.filters .body .filter_collapsible_body .view_more_clear .expand_filter{margin-right:auto}.filters .body .filter_collapsible_body .view_more_clear .expand_filter>:not(:first-child){margin-left:5px}.filters .body .filter_collapsible_body .view_more_clear .expand_filter>:not(:last-child){margin-right:5px}.filters .body .filter_collapsible_body .view_more_clear .expand_filter.expanded svg{clip-path:polygon(20% 48%,80% 48%,80% 50.8%,20% 50.8%);transform:scale(1.6)}.filters .body .filter_collapsible_body .view_more_clear button{color:#000;cursor:pointer;text-transform:uppercase;background:0 0;border:none;justify-content:center;align-items:center;margin-bottom:0;margin-left:0;margin-right:0;padding:10px;display:flex}.filters .body .filter_collapsible_body .view_more_clear button svg path{fill:#000}.filters .body .filter_collapsible_body .view_more_clear button:focus-visible{filter:drop-shadow(-2px -2px 4px #418fc3cc)drop-shadow(2px 2px 4px #418fc3cc);outline:none}.filters .body .filter_collapsible_body .filter_part{background:#fff;flex-direction:column;padding:15px 10px 20px;display:flex}.filters .body .filter_collapsible_body .filter_part>:not(:first-child){margin-top:5px}.filters .body .filter_collapsible_body .filter_part>:not(:last-child){margin-bottom:5px}.filters .body :not(.ungrouped)>form{margin-top:-5px;margin-bottom:-5px}.filters .body .hierarchical{margin-left:-20px}.filters .body .hierarchical.any_expandable .count{margin-right:30px}.filters .body .hierarchical .checkbox_details{padding-left:20px}.filters .body .hierarchical .checkbox_details.expandable{position:relative}.filters .body .hierarchical .checkbox_details.expandable summary:before,.filters .body .hierarchical .checkbox_details.expandable summary:after{pointer-events:none;content:"";height:1px;width:calc(100% - 20px);background:#fafafc;position:absolute;right:0}.filters .body .hierarchical .checkbox_details.expandable summary:before{top:-.5px}.filters .body .hierarchical .checkbox_details.expandable summary:after{bottom:-.5px}@media not all and (hover:none){.filters .body .hierarchical .checkbox_details.expandable summary:hover:after,.filters .body .hierarchical .checkbox_details.expandable summary:hover:before,.input_row:hover~details>.filters .body .hierarchical .checkbox_details.expandable summary:after,.input_row:hover~details>.filters .body .hierarchical .checkbox_details.expandable summary:before{z-index:1;background:#eeeef0}}.filters .body .hierarchical .checkbox_details.expandable summary:focus-visible:after,.filters .body .hierarchical .checkbox_details.expandable summary:focus-visible:before,.input_row~details:focus-visible>.filters .body .hierarchical .checkbox_details.expandable summary:after,.input_row~details:focus-visible>.filters .body .hierarchical .checkbox_details.expandable summary:before{z-index:1;background:#eeeef0}.filters .body .hierarchical .checkbox_details.expandable>.input_row{padding-right:30px;position:absolute}.filters .body .hierarchical .checkbox_details.expandable>details:not([open]),.filters .body .hierarchical .checkbox_details.expandable>details[open]>.category_parent>.summary{padding-top:5px;padding-bottom:5px}.filters .body .hierarchical .checkbox_details.expandable>details .category_parent:focus,.filters .body .hierarchical .checkbox_details.expandable>details .category_parent:focus-visible{box-shadow:none;outline:none}@supports selector(:focus-visible){@media not all and (hover:none){.filters .body .hierarchical .checkbox_details.expandable>details .category_parent:not(:focus-visible):not(:hover) .morphing-sign span{background:#333}.filters .body .hierarchical .checkbox_details.expandable>details .category_parent:not(:focus-visible):not(:hover) .morphing-sign span:first-child{width:5%;left:47.5%}.filters .body .hierarchical .checkbox_details.expandable>details .category_parent:not(:focus-visible):not(:hover) .morphing-sign span:last-child{height:5%;top:47.5%}}@media (hover:none){.filters .body .hierarchical .checkbox_details.expandable>details .category_parent:not(:focus-visible) .morphing-sign span{background:#333}.filters .body .hierarchical .checkbox_details.expandable>details .category_parent:not(:focus-visible) .morphing-sign span:first-child{width:5%;left:47.5%}.filters .body .hierarchical .checkbox_details.expandable>details .category_parent:not(:focus-visible) .morphing-sign span:last-child{height:5%;top:47.5%}}@media not all and (hover:none){.filters .body .hierarchical .checkbox_details.expandable>details .category_parent:hover .morphing-sign{transform:scale(1.5)}.filters .body .hierarchical .checkbox_details.expandable>details .category_parent:hover .count{color:#000}}.filters .body .hierarchical .checkbox_details.expandable>details .category_parent:focus-visible .count{color:#000}.filters .body .hierarchical .checkbox_details.expandable>details .category_parent:focus-visible .morphing-sign{transform:scale(1.5)}}@supports not (selector(:focus-visible)){@media not all and (hover:none){.filters .body .hierarchical .checkbox_details.expandable>details .category_parent:not(:hover) .morphing-sign span{background:#333}.filters .body .hierarchical .checkbox_details.expandable>details .category_parent:not(:hover) .morphing-sign span:first-child{width:5%;left:47.5%}.filters .body .hierarchical .checkbox_details.expandable>details .category_parent:not(:hover) .morphing-sign span:last-child{height:5%;top:47.5%}.filters .body .hierarchical .checkbox_details.expandable>details .category_parent:hover .morphing-sign{transform:scale(1.5)}.filters .body .hierarchical .checkbox_details.expandable>details .category_parent:hover .count{color:#000}}@media (hover:none){.filters .body .hierarchical .checkbox_details.expandable>details .category_parent .morphing-sign span{background:#333}.filters .body .hierarchical .checkbox_details.expandable>details .category_parent .morphing-sign span:first-child{width:5%;left:47.5%}.filters .body .hierarchical .checkbox_details.expandable>details .category_parent .morphing-sign span:last-child{height:5%;top:47.5%}}}.filters .body .hierarchical .checkbox_details.expandable>details .category_parent>.summary{justify-content:flex-end}.filters .body .hierarchical .checkbox_details.expandable>details .category_parent>.summary .count{margin-right:9px}.filters .body .hierarchical .checkbox_details.expandable>details .category_parent>.summary .morphing-sign{width:21px;height:21px;transition-duration:.15s;transition-timing-function:ease-in-out}.filters .body .hierarchical .checkbox_details.expandable>details .category_parent>.summary .morphing-sign span{background:#000;transition-duration:.15s;transition-timing-function:ease-in-out}.filters .body .range .input_group{width:100%;padding-top:10px;padding-bottom:25px;display:flex}.filters .body .range .input_group .field{width:100%;align-items:center;display:flex}.filters .body .range .input_group .field input{width:100%;text-align:center;-moz-appearance:textfield;background:#fafafc;border:none;border-radius:4px;outline:none;padding-top:8px;padding-bottom:8px;transition-duration:50ms}.filters .body .range .input_group .field input:focus-visible{background:#eeeef0}@media not all and (hover:none){.filters .body .range .input_group .field input:hover{background:#eeeef0}}.filters .body .range .input_group .field input::-webkit-outer-spin-button,.filters .body .range .input_group .field input::-webkit-inner-spin-button{-webkit-appearance:none}.filters .body .range .input_group .separator{color:#333335;flex-shrink:0;flex-basis:25px;justify-content:center;align-items:center;font-size:19px;display:flex}.filters .body .range .slider{height:5px;background:#ddd;border-radius:5px;position:relative}.filters .body .range .slider .progress{height:100%;background:#0f0f0f;border-radius:5px;position:absolute;left:25%;right:25%}.filters .body .range .range_group{position:relative}.filters .body .range .range_group input{width:100%;height:0;pointer-events:none;-webkit-appearance:none;-moz-appearance:none;background:0 0;margin:0;position:absolute;top:-2.5px}.filters .body .range .range_group input:focus{outline:none}.filters .body .range .range_group input::-webkit-slider-thumb{cursor:pointer;height:20px;width:20px;pointer-events:auto;-webkit-appearance:none;background:#0f0f0f;border-radius:50%;box-shadow:0 0 6px #0000000d}@media not all and (hover:none){.filters .body .range .range_group input::-webkit-slider-thumb:hover{background:#333335}}.filters .body .range .range_group input::-moz-range-thumb{cursor:pointer;height:20px;width:20px;pointer-events:auto;-moz-appearance:none;background:#0f0f0f;border:none;border-radius:50%;box-shadow:0 0 6px #0000000d}@media not all and (hover:none){.filters .body .range .range_group input::-moz-range-thumb:hover{background:#333335}}.filters .body .range .range_group input:focus-visible::-webkit-slider-thumb{background:#868689}.filters .body .range .range_group input:focus-visible::-moz-range-thumb{background:#868689}.filters .body .range .value_text{color:#333335;justify-content:space-between;padding-top:10px;display:flex}.filters .body .checkbox-grid{flex-wrap:wrap;margin:-5px;display:flex}.filters .body .checkbox-grid>*{margin:5px}.filters .body .checkbox-grid .major,.filters .body .checkbox-grid .minor{padding:5px 10px}.filters .body .checkbox-grid .major.minor,.filters .body .checkbox-grid .minor.minor{border:1px solid #d5d5d5}.sorting .body{background:#eeeef0;line-height:1}.sorting .body>:not(:first-child){margin-top:.5px}.sorting .body>:not(:last-child){margin-bottom:.5px}.sorting .body .input_row{justify-content:flex-start;align-items:center;display:flex}.morphing-sign{width:1em;height:1em;border:0;font-size:1.5em;position:relative}.morphing-sign span{background:#fff;border-radius:2px;position:absolute}.morphing-sign span:first-child{width:10%;top:25%;bottom:25%;left:45%}.morphing-sign span:last-child{height:10%;top:45%;left:25%;right:25%}.depict-filter-sort-modal-backdrop{z-index:5000;touch-action:none;will-change:opacity;opacity:0;background:#000000b3;position:fixed;inset:0}.dismiss-modal{z-index:5003;cursor:pointer;background:0 0;border:none;padding:0;line-height:0;position:fixed;top:14px;left:4px;transform:translateY(calc(-100% - 14px))}.dismiss-modal svg{transform:scale(.6646)}.dismiss-modal svg path{fill:#fff}.filter_sort_modal{z-index:5002;width:calc(100% - 30px);height:100%;will-change:transform;background:#eeeef0;flex-direction:column;justify-content:space-between;display:flex;position:fixed;top:0;left:30px;transform:translateY(100%)}.filter_sort_modal details.sorting>summary,.filter_sort_modal details.filters>summary{list-style:none}.filter_sort_modal details.sorting>summary::-webkit-details-marker,.filter_sort_modal details.filters>summary::-webkit-details-marker{display:none}.filter_sort_modal details.sorting .sort_filter_summary>.summary,.filter_sort_modal details.filters .sort_filter_summary>.summary{cursor:pointer;color:#0f0f0f;background:#fff;justify-content:space-between;padding:13px 20px;display:flex;box-shadow:0 4px 4px #0000000d}.filter_sort_modal details.sorting .sort_filter_summary>.summary .left_els,.filter_sort_modal details.filters .sort_filter_summary>.summary .left_els{align-items:center;display:flex}.filter_sort_modal details.sorting .sort_filter_summary>.summary .left_els>:not(:first-child),.filter_sort_modal details.filters .sort_filter_summary>.summary .left_els>:not(:first-child){margin-left:5px}.filter_sort_modal details.sorting .sort_filter_summary>.summary .left_els>:not(:last-child),.filter_sort_modal details.filters .sort_filter_summary>.summary .left_els>:not(:last-child){margin-right:5px}.filter_sort_modal .filter-icon,.filter_sort_modal .sort-icon{fill:#0f0f0f}.filter_sort_modal>.body{background:#eeeef0;flex-direction:column;display:flex;overflow-y:auto}.filter_sort_modal>.body>:not(:first-child){margin-top:1px}.filter_sort_modal>.body>:not(:last-child){margin-bottom:1px}.filter_sort_modal .filters .body,.filter_sort_modal .sorting .body{color:#333335}.filter_sort_modal .filters>summary .morphing-sign span,.filter_sort_modal .sorting>summary .morphing-sign span{background:#0f0f0f}.filter_sort_modal .filters .filter_collapsible_body{background:0 0}.filter_sort_modal .filters .body{background:unset;padding:10px}.filter_sort_modal .filters .body .filter_part,.filter_sort_modal .filters .body .view_more_clear{background:#fdfdfd}.filter_sort_modal .sorting .body{background:#eeeef0;border-radius:4px;margin:10px;padding:0}.filter_sort_modal .bottom-row{flex-shrink:0;justify-content:space-between;padding:10px;display:flex}.filter_sort_modal .bottom-row>:not(:first-child){margin-left:5px}.filter_sort_modal .bottom-row>:not(:last-child){margin-right:5px}.filter_sort_modal .bottom-row>button{border-radius:4px;padding-top:12px;padding-bottom:12px}.filter_sort_modal .bottom-row .show-results{flex-grow:1;font-size:1.1em;font-weight:500}.filter_sort_modal .bottom-row .clear{font-size:1.1em}.floating_buttons{z-index:calc(5000 + 4);opacity:0;justify-content:flex-start;align-items:center;padding-left:12px;transition-duration:.3s;transition-timing-function:ease-in-out;display:flex;position:sticky;bottom:12px}.floating_buttons:not(.show_them){pointer-events:none}.floating_buttons.show_them{opacity:1}.floating_buttons .filter{margin-right:5px}.floating_buttons .sort{margin-left:5px;margin-right:5px}.floating_buttons .up{margin-left:5px}.floating_buttons .sort,.floating_buttons .filter,.floating_buttons .up{filter:drop-shadow(2px 2px 4px #0000001a)drop-shadow(-2px -2px 4px #ffffff4d);background:#eeeef0;border:1px solid #0f0f0f;border-radius:20px;padding:10px}@media not all and (hover:none){.floating_buttons .sort:hover,.floating_buttons .filter:hover,.floating_buttons .up:hover{background:#fafafc}}.floating_buttons .sort:focus,.floating_buttons .filter:focus,.floating_buttons .up:focus{outline:none}.floating_buttons .sort:focus-visible,.floating_buttons .filter:focus-visible,.floating_buttons .up:focus-visible{background:#fafafc}.floating_buttons .sort div,.floating_buttons .filter div,.floating_buttons .up div{display:flex}.floating_buttons .sort svg path,.floating_buttons .filter svg path,.floating_buttons .up svg path{fill:#333335}.depict.plp.toast{z-index:calc(5000 + 5);white-space:nowrap;border-bottom-style:solid;border-bottom-width:2px;background:#fff;border-image-source:linear-gradient(90deg,#333335 0% 100%);border-image-slice:0 0 100%;border-radius:4px;padding:10px 20px;position:fixed;bottom:10px;left:50%;transform:translate(-50%);box-shadow:2px 2px 4px #0000000d}.depict.plp.toast *,.depict.plp.toast *{-webkit-user-select:none;user-select:none}@media (min-width:1000px){.depict.plp.toast{padding:10px 40px}}.depict.plp.toast,.depict.plp.toast .buttons{justify-content:center;align-items:center;display:flex}@media (max-width:999px){.depict.plp.toast>:not(:first-child),.depict.plp.toast .buttons>:not(:first-child){margin-left:5px}.depict.plp.toast>:not(:last-child),.depict.plp.toast .buttons>:not(:last-child){margin-right:5px}}@media (min-width:1000px){.depict.plp.toast>:not(:first-child),.depict.plp.toast .buttons>:not(:first-child){margin-left:15px}.depict.plp.toast>:not(:last-child),.depict.plp.toast .buttons>:not(:last-child){margin-right:15px}}.depict.plp.toast{color:#333335}.depict.plp.toast button{cursor:pointer;border-radius:4px;padding:5px 20px}.depict_slider{width:100%;position:relative}.depict_slider .sliding{height:100%;-ms-overflow-style:none;scrollbar-width:none;flex-flow:row;align-items:center;display:flex;overflow-x:scroll}.depict_slider .sliding>:not(:first-child){margin-left:5px}.depict_slider .sliding>:not(:last-child){margin-right:5px}.depict_slider .sliding::-webkit-scrollbar{display:none}.depict_slider .d_navbutton{z-index:2;touch-action:manipulation;cursor:pointer;height:calc(100% + 2px);width:26px;background:linear-gradient(270deg,#eeeef0 50%,#eeeef000 105%);border:none;justify-content:flex-end;align-items:center;padding:0 1px 0 0;transition-duration:.2s;display:flex;position:absolute;top:50%;transform:translateY(-50%)}.depict_slider .d_navbutton.hidden{cursor:default;opacity:0;animation-name:depict_slider_button_unclickable;animation-duration:5s;animation-fill-mode:forwards}.depict_slider .d_navbutton.left{left:-1px;transform:translateY(-50%)rotate(180deg)}.depict_slider .d_navbutton.right{right:-1px}.depict_slider .d_navbutton img{width:100%;height:100%}@media not all and (hover:none){.depict_slider .d_navbutton:hover svg{transform:scale(1.2)}}.depict_slider .d_navbutton svg{transition-duration:.15s}.depict_slider .d_navbutton:active{opacity:.9}@keyframes depict_slider_button_unclickable{0%{pointer-events:all}to{pointer-events:none;visibility:hidden}}button.major{color:#fff;white-space:pre-wrap;cursor:pointer;background:#0f0f0f;border:1px solid #0000;border-radius:4px;justify-content:center;align-items:center;padding:10px 20px;transition:filter .15s ease-in-out,background .1s ease-in-out;display:flex}button.major svg path{fill:#fff}@media not all and (hover:none){button.major:hover{filter:drop-shadow(-2px -2px 4px #ffffff40)drop-shadow(2px 2px 4px #00000026);background:#292929}}button.major:active{filter:drop-shadow(2px 2px 4px #ffffff40)drop-shadow(-2px -2px 4px #00000026);background:#424242}button.major:focus{outline-style:none}button.major:focus-visible{filter:drop-shadow(2px 2px 4px #418fc3cc)drop-shadow(-2px -2px 4px #418fc3cc);background:#292929}button.minor{color:#333335;white-space:pre-wrap;cursor:pointer;background:#fafafc;border:1px solid #0f0f0f;border-radius:4px;justify-content:center;align-items:center;padding:10px 20px;transition:filter .15s ease-in-out,background .1s ease-in-out;display:flex}button.minor svg path{fill:#333335}@media not all and (hover:none){button.minor:hover{filter:drop-shadow(-2px -2px 4px #ffffff40)drop-shadow(2px 2px 4px #00000026);background:#dadae9}}button.minor:active{filter:drop-shadow(2px 2px 4px #ffffff40)drop-shadow(-2px -2px 4px #00000026);background:#dadae9}button.minor:focus{outline-style:none}button.minor:focus-visible{filter:drop-shadow(-2px -2px 4px #418fc3cc)drop-shadow(2px 2px 4px #418fc3cc);background:#dadae9}.previous-searches{flex-direction:column;display:flex}.previous-searches>:not(:first-child){margin-top:7.5px}.previous-searches>:not(:last-child){margin-bottom:7.5px}.previous-searches .list{flex-direction:column;display:flex}.previous-searches .list>:not(:first-child){margin-top:2.5px}.previous-searches .list>:not(:last-child){margin-bottom:2.5px}.previous-searches .list .item{color:#333335;overflow-wrap:anywhere;border-radius:4px;justify-content:space-between;align-items:center;padding:10px 20px;display:flex}.previous-searches .list .item .left{align-items:center;display:flex}.previous-searches .list .item .left>:not(:first-child){margin-left:5px}.previous-searches .list .item .left>:not(:last-child){margin-right:5px}.previous-searches .list .item .left svg{min-width:12px}.previous-searches .list .item .left svg path{fill:#0f0f0f}.previous-searches .list .item .delete{height:100%;cursor:pointer;background:0 0;justify-content:center;align-items:center;padding:0 10px;display:flex}.previous-searches .list .item .delete:focus{outline:none}.previous-searches .list .item .delete svg{width:13px;height:13px;transition-duration:.15s}.previous-searches .list .item .delete svg path{fill:#333335}.previous-searches .list .item .delete:hover svg{transform:scale(1.2)}.previous-searches .list .item .delete:hover svg path{fill:#000}.previous-searches .list .item .delete:focus-visible{filter:drop-shadow(-2px -2px 4px #418fc3cc)drop-shadow(2px 2px 4px #418fc3cc)}.previous-searches .list .item .delete:focus-visible svg{transform:scale(1.2)}.previous-searches .list .item .delete:focus-visible svg path{fill:#000}.previous-searches .text,.suggestions .text{color:#333335;margin-top:0;font-size:16px;font-weight:700}.previous-searches .item,.previous-searches .suggestion,.suggestions .item,.suggestions .suggestion{background:#fff}.previous-searches .item.selected,.previous-searches .suggestion.selected,.suggestions .item.selected,.suggestions .suggestion.selected{background:#ffffff80}.previous-searches .item:focus-visible,.previous-searches .suggestion:focus-visible,.suggestions .item:focus-visible,.suggestions .suggestion:focus-visible{filter:drop-shadow(-2px -2px 4px #418fc3cc)drop-shadow(2px 2px 4px #418fc3cc);outline:none}.suggestions{flex-direction:column;display:flex}.suggestions>:not(:first-child){margin-top:10px}.suggestions>:not(:last-child){margin-bottom:10px}.suggestions:not(.compact)>.suggestion_container>:not(:first-child),.suggestions.compact>.suggestion_container:not(.query)>:not(:first-child){margin-top:2.5px}.suggestions:not(.compact)>.suggestion_container>:not(:last-child),.suggestions.compact>.suggestion_container:not(.query)>:not(:last-child){margin-bottom:2.5px}.suggestions .suggestion_container{flex-direction:column;display:flex}.suggestions .suggestion_container .suggestion{overflow-wrap:anywhere;color:#333335;border-radius:4px;justify-content:space-between;align-items:center;padding:10px 20px;font-weight:400;display:flex}.suggestions .suggestion_container .suggestion svg{flex-shrink:0}.suggestions .suggestion_container .suggestion .search-icon{max-width:12px;max-height:13px}.suggestions .suggestion_container .suggestion .search-icon svg{transform:matrix(.6,0,0,.6,-4.14,-4.32)}.suggestions .suggestion_container .suggestion .search-icon svg path{fill:#0f0f0f}.suggestions .suggestion_container .suggestion .has-history-match{color:#333335;font-weight:400}.suggestions .suggestion_container .suggestion .has-history-match .highlighted-part{color:#333335;font-weight:500}.suggestions .suggestion_container .suggestion .category{margin-right:20px}.suggestions .suggestion_container .suggestion .type{color:#868689;text-transform:capitalize}.suggestions .suggestion_container.query{flex-direction:column}.suggestions .suggestion_container.query .suggestion{justify-content:flex-start}.suggestions .suggestion_container.query .suggestion>:not(:first-child){margin-left:4px}.suggestions .suggestion_container.query .suggestion>:not(:last-child){margin-right:4px}.suggestions.compact>.suggestion_container.query{flex-flow:wrap;margin:-2.5px}.suggestions.compact>.suggestion_container.query>*{margin:2.5px}.category-suggestions{display:flex}.category-suggestions .sliding{margin-bottom:-2px;padding-bottom:2px}.category-suggestions .title{font-weight:420}.category-suggestions .category-suggestion{color:#000;height:100%;background:#fff;border-radius:4px;justify-content:space-between;align-items:center;padding:10px 20px;transition:background .1s ease-in-out;display:flex}.category-suggestions .category-suggestion:focus{background:#e6e6e6}@media not all and (hover:none){.category-suggestions .category-suggestion:hover{background:#e6e6e6}}.category-suggestions .category-suggestion>:not(:first-child){margin-left:5px}.category-suggestions .category-suggestion>:not(:last-child){margin-right:5px}.category-suggestions .category-suggestion .parent_title{font-weight:400}.category-suggestions .category-suggestion>*{white-space:nowrap;font-size:.85em}.instant-results{flex-direction:column;display:flex}.instant-results>:not(:first-child){margin-top:2.5px}.instant-results>:not(:last-child){margin-bottom:2.5px}.query_input{z-index:calc(1 + 5);display:flex;box-shadow:0 4px 4px #0000000d}.query_input input,.query_input button{margin:0}.query_input .query{width:100%;color:#333335;font-size:initial;font-weight:initial;background-color:#fff;border:none;border-radius:10px 0 0 10px;flex-grow:1;padding:14px 55px 14px 20px}.query_input .query::placeholder{color:initial}.query_input .query:focus{color:#000;outline:none}@media not all and (hover:none){.query_input .query:hover{color:#000;outline:none}}.query_input .query.has-adjacent-back-button{border-top-left-radius:0;border-bottom-left-radius:0;padding-left:0}.query_input .field{flex-grow:1;display:flex;position:relative}.query_input .back{cursor:pointer;background:#fff;border:none;border-top-left-radius:10px;border-bottom-left-radius:10px;justify-content:center;align-items:center;padding:14px 15px 14px 10px;display:flex}.query_input .back svg path{fill:#333335}.query_input .back:focus{outline:none}.query_input .back:focus-visible{filter:drop-shadow(-2px -2px 4px #418fc3cc)drop-shadow(2px 2px 4px #418fc3cc)}.query_input .back:focus-visible svg path{fill:#0f0f0f}@media not all and (hover:none){.query_input .back:hover svg path{fill:#0f0f0f}}.query_input .clear,.query_input .submit{cursor:pointer}.query_input .clear{background:0 0;border:none;padding:0;position:absolute;top:50%;right:30px;transform:translateY(-50%)scale(.8)}.query_input .clear svg path{fill:#333335}.query_input .clear:focus{outline:none}.query_input .clear:focus-visible{filter:drop-shadow(-2px -2px 4px #418fc3cc)drop-shadow(2px 2px 4px #418fc3cc)}.query_input .clear:focus-visible svg path{fill:#0f0f0f}@media not all and (hover:none){.query_input .clear:hover svg path{fill:#0f0f0f}}.query_input .submit{min-width:50px;border:none;border-radius:0 10px 10px 0;padding:0}.query_input .submit svg{transform:scale(1)}.depict-search-modal-backdrop{z-index:5000;touch-action:none;background:#0006;position:fixed;inset:0}.depict-search-modal{display:block}.depict-search-modal button{border:none}.depict-search-modal .query_input{z-index:calc(5000 + 5)}.depict-search-modal .body{width:80vw;z-index:calc(5000 + 1);background:#eeeef0;border-radius:10px;flex-direction:column;display:flex;position:absolute}@media (hover:hover) and (pointer:fine) and (max-height:790px){.depict-search-modal .body{position:fixed;max-height:100%!important;top:0!important}}@media (hover:hover) and (pointer:fine) and (max-height:790px) and (max-width:600px){.depict-search-modal .body{width:calc(100% - 30px)!important;left:30px!important}}@media not all and (hover:hover) and (pointer:fine){@media (max-height:1000px){.depict-search-modal .body{position:fixed;max-height:100%!important;top:0!important}}@media (max-height:1000px) and (max-width:600px){.depict-search-modal .body{width:calc(100% - 30px)!important;left:30px!important}}}.depict-search-modal .body .padded>*,.depict-search-modal .body .query_input{flex-shrink:0}.depict-search-modal .body .padded{flex-direction:column;padding-top:20px;padding-left:max(1vw,10px);padding-right:max(1vw,10px);display:flex;overflow:auto}.depict-search-modal .body .padded>:not(:first-child){margin-top:10px}.depict-search-modal .body .padded>:not(:last-child){margin-bottom:10px}.depict-search-modal .body .discover-more{justify-content:center;display:flex}.depict-search-modal .body .discover-more button{text-transform:uppercase;margin:20px 0;padding:12px 18px}.listing-page .query_input{width:min(100%,800px);align-self:center;margin-top:40px;margin-bottom:20px}@media (max-width:651px){.listing-page .query_input{margin-top:16px;margin-bottom:16px}}.listing-page .query_input~.category-suggestions .category-suggestion:last-child{margin-right:auto}.listing-page .query_input~.category-suggestions .category-suggestion:first-child{margin-left:auto}.listing-page .category-suggestions{margin-bottom:20px}@media (max-width:651px){.listing-page .category-suggestions{margin-bottom:16px}}@media (min-width:652px){.listing-page .query_input+.filter-results-for-one-row,.listing-page .query_input+.results-for{margin-top:20px}}.listing-page .search-recs{margin-top:60px;padding-top:60px}@media (max-width:651px){.listing-page .search-recs{margin-top:48px;padding-top:48px}}.listing-page .PLP-results.nothing+.search-recs{margin-top:30px;padding-top:30px}@media (max-width:651px){.listing-page .PLP-results.nothing+.search-recs{margin-top:24px;padding-top:24px}}.listing-page .search-recs{border-top:2px solid #bcbcbe;flex-direction:column;display:flex}.listing-page .search-recs .search-recs-title{margin-top:0;margin-bottom:20px;font-size:24px;font-weight:600;line-height:1}.listing-page .search-recs .load_more_container{justify-content:center;margin-top:30px;display:flex}.results-for{overflow-wrap:anywhere;font-size:1.5em}
@@ -1,3 +1,4 @@
1
1
  export function DepictProvider(props: any): any;
2
2
  export function DepictSearchPage(): any;
3
+ export function DepictSearchHeader(): any;
3
4
  export function openModal(): void;
@@ -1,4 +1,5 @@
1
1
  var $4yCyN$depictaireactsolidbridge = require("@depict-ai/react-solid-bridge");
2
+ var $4yCyN$react = require("react");
2
3
  var $4yCyN$reactjsxruntime = require("react/jsx-runtime");
3
4
 
4
5
  function $parcel$export(e, n, v, s) {
@@ -7,9 +8,11 @@ function $parcel$export(e, n, v, s) {
7
8
 
8
9
  $parcel$export(module.exports, "DepictProvider", () => $5767ac9f6fd2be28$export$9fac37a9c21c2f3b);
9
10
  $parcel$export(module.exports, "DepictSearchPage", () => $5767ac9f6fd2be28$export$210723f5a54a7028);
11
+ $parcel$export(module.exports, "DepictSearchHeader", () => $5767ac9f6fd2be28$export$cbcd1ecdb41b1d0a);
10
12
  $parcel$export(module.exports, "openModal", () => $5767ac9f6fd2be28$export$a7f6cffb6b8ba11c);
11
13
 
12
14
 
15
+
13
16
  function $5767ac9f6fd2be28$export$9fac37a9c21c2f3b(props) {
14
17
  return props.children;
15
18
  }
@@ -18,6 +21,11 @@ function $5767ac9f6fd2be28$export$210723f5a54a7028() {
18
21
  children: ""
19
22
  });
20
23
  }
24
+ function $5767ac9f6fd2be28$export$cbcd1ecdb41b1d0a() {
25
+ return (0, $4yCyN$react.createElement)("div", {
26
+ className: "depict aligner"
27
+ });
28
+ }
21
29
  function $5767ac9f6fd2be28$export$a7f6cffb6b8ba11c() {}
22
30
 
23
31
 
@@ -1,8 +1,10 @@
1
1
  import {ReactToSolidBridgeProvider as $8UQZK$ReactToSolidBridgeProvider} from "@depict-ai/react-solid-bridge";
2
+ import {createElement as $8UQZK$createElement} from "react";
2
3
  import {jsx as $8UQZK$jsx} from "react/jsx-runtime";
3
4
 
4
5
 
5
6
 
7
+
6
8
  function $7def0b56bbffc00f$export$9fac37a9c21c2f3b(props) {
7
9
  return props.children;
8
10
  }
@@ -11,7 +13,12 @@ function $7def0b56bbffc00f$export$210723f5a54a7028() {
11
13
  children: ""
12
14
  });
13
15
  }
16
+ function $7def0b56bbffc00f$export$cbcd1ecdb41b1d0a() {
17
+ return (0, $8UQZK$createElement)("div", {
18
+ className: "depict aligner"
19
+ });
20
+ }
14
21
  function $7def0b56bbffc00f$export$a7f6cffb6b8ba11c() {}
15
22
 
16
23
 
17
- export {$7def0b56bbffc00f$export$9fac37a9c21c2f3b as DepictProvider, $7def0b56bbffc00f$export$210723f5a54a7028 as DepictSearchPage, $7def0b56bbffc00f$export$a7f6cffb6b8ba11c as openModal};
24
+ export {$7def0b56bbffc00f$export$9fac37a9c21c2f3b as DepictProvider, $7def0b56bbffc00f$export$210723f5a54a7028 as DepictSearchPage, $7def0b56bbffc00f$export$cbcd1ecdb41b1d0a as DepictSearchHeader, $7def0b56bbffc00f$export$a7f6cffb6b8ba11c as openModal};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@depict-ai/react-ui",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "packageManager": "yarn@3.2.2",
5
5
  "source": "src/main.ts",
6
6
  "main": "dist/main.js",
@@ -30,18 +30,50 @@
30
30
  "browsers": "last 1 chrome version"
31
31
  },
32
32
  "optimize": false
33
+ },
34
+ "css": {
35
+ "source": "src/styling/default.scss",
36
+ "distDir": "dist"
33
37
  }
34
38
  },
35
39
  "exports": {
36
40
  ".": {
41
+ "browser": {
42
+ "development": {
43
+ "import": {
44
+ "types": "./dist/index.d.ts",
45
+ "default": "./dist/module.js"
46
+ },
47
+ "require": "./dist/main.js"
48
+ },
49
+ "import": {
50
+ "types": "./dist/index.d.ts",
51
+ "default": "./dist/module.js"
52
+ },
53
+ "require": "./dist/main.js"
54
+ },
37
55
  "node": {
38
- "require": "./dist-server/main.js",
39
- "import": "./dist-server/module.js"
56
+ "import": {
57
+ "default": "./dist-server/module.js"
58
+ },
59
+ "require": "./dist-server/main.js"
60
+ },
61
+ "development": {
62
+ "import": {
63
+ "types": "./dist/index.d.ts",
64
+ "default": "./dist/module.js"
65
+ },
66
+ "require": "./dist/main.js"
40
67
  },
41
- "default": {
42
- "require": "./dist/main.js",
43
- "import": "./dist/main.js"
44
- }
68
+ "import": {
69
+ "types": "./dist/index.d.ts",
70
+ "default": "./dist/module.js"
71
+ },
72
+ "require": "./dist/main.js"
73
+ },
74
+ "./styling/default.css": {
75
+ "import": "./dist/styling/default.css",
76
+ "require": "./dist/styling/default.css"
45
77
  }
46
78
  },
47
79
  "files": [
@@ -49,9 +81,11 @@
49
81
  "/dist-server"
50
82
  ],
51
83
  "dependencies": {
84
+ "@depict-ai/plp-styling": "^0.1.0",
52
85
  "@depict-ai/react-solid-bridge": "^1.0.26",
53
- "@depict-ai/ui": "^0.0.0",
54
- "@depict-ai/utilishared": "^0.0.0",
86
+ "@depict-ai/ui": "^0.0.3",
87
+ "@depict-ai/utilishared": "^0.0.3",
88
+ "@parcel/transformer-sass": "^2.8.1",
55
89
  "react": "^18.2.0",
56
90
  "react-dom": "^18.2.0",
57
91
  "solid-js": "^1.6.2"
@@ -62,12 +96,14 @@
62
96
  "@babel/preset-typescript": "latest",
63
97
  "@babel/runtime": "latest",
64
98
  "@babel/runtime-corejs3": "latest",
99
+ "@jest/globals": "^29.3.1",
65
100
  "@parcel/babel-preset-env": "latest",
66
101
  "@parcel/resolver-default": "^2.8.0",
67
102
  "@types/node": "^18.11.11",
68
- "@types/react": "^18.0.26",
69
- "@types/react-dom": "^18.0.9",
70
103
  "babel-preset-solid": "latest",
104
+ "jest": "^29.3.1",
105
+ "jest-haste-map": "^29.3.1",
106
+ "jest-resolve": "^29.3.1",
71
107
  "parcel": "latest"
72
108
  }
73
109
  }