@depict-ai/ui 2.0.1 → 2.0.3

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/latest/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  var $gVhhF$depictaiutilishared = require("@depict-ai/utilishared/latest");
2
- var $gVhhF$solidjsweb = require("solid-js/web");
3
2
  var $gVhhF$solidjs = require("solid-js");
3
+ var $gVhhF$solidjsweb = require("solid-js/web");
4
4
  require("../multi_import_deduplicator.cjs").register_es_version("ui", "latest");
5
5
  function $parcel$export(e, n, v, s) {
6
6
  Object.defineProperty(e, n, {
@@ -10,6 +10,7 @@ function $parcel$export(e, n, v, s) {
10
10
  configurable: true
11
11
  });
12
12
  }
13
+ $parcel$export(module.exports, "make_accurate_size_accessor", () => $e5f442fb78c98741$export$9f191182275e9ef);
13
14
  $parcel$export(module.exports, "RecommendationSlider", () => $72f96c4782db0b1b$export$9574e176201e5e8d);
14
15
  $parcel$export(module.exports, "RecommendationGrid", () => $1f8dbf7e28b3eff2$export$9756467d34d91cdb);
15
16
  $parcel$export(module.exports, "ShopifyResponsiveImg", () => $19950faaac026e09$export$6e5611bc7e57e477);
@@ -60,7 +61,22 @@ $parcel$export(module.exports, "defaultColsAtSize", () => $a3280f0aad997933$expo
60
61
  $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $a3280f0aad997933$export$7bf543b9d9be2c22);
61
62
  $parcel$export(module.exports, "version", () => $b757f75811f3261f$export$83d89fbfd8236492);
62
63
  /*! Depict.ai search and product listing SDK */
63
- const $b757f75811f3261f$export$83d89fbfd8236492 = "2.0.1";
64
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "2.0.3";
65
+
66
+ /** @jsxImportSource solid-js */
67
+
68
+ function $e5f442fb78c98741$export$9f191182275e9ef(what_to_watch) {
69
+ const [size, setSize] = $gVhhF$solidjs.createSignal();
70
+ const resizeObserver = new ResizeObserver($gVhhF$depictaiutilishared.catchify(records => {
71
+ for (let j = 0; j < records.length; j++) {
72
+ const width = records[j].borderBoxSize?.[0]?.inlineSize ?? what_to_watch.getBoundingClientRect().width;
73
+ setSize(width);
74
+ }
75
+ }));
76
+ resizeObserver.observe(what_to_watch);
77
+ $gVhhF$solidjs.onCleanup(() => resizeObserver.disconnect());
78
+ return size;
79
+ }
64
80
  const $4e04be41243c3d80$var$transform_elements = sorted_cols_at_size => {
65
81
  const cols_at_size = [];
66
82
  for (let i = 0; i < sorted_cols_at_size.length; i++) {
@@ -1417,9 +1433,9 @@ function $235a2771a44e28e9$export$fecbb157621501bd({
1417
1433
  return outmost_element;
1418
1434
  }
1419
1435
  $gVhhF$solidjsweb.delegateEvents(["click"]);
1420
- const $b3cf6ca8dc0e9998$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<span class="count"></span>`, 2),
1421
- $b3cf6ca8dc0e9998$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<label class="input-row"><div class="left"><input type="checkbox"><span class="custom-indicator"></span><span class="text line-clamp"></span></div><!#><!/></label>`, 11);
1422
- const $b3cf6ca8dc0e9998$export$48513f6b9f8ce62d = props => {
1436
+ const $1c63082b2da848ad$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<span class="count"></span>`, 2),
1437
+ $1c63082b2da848ad$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<label class="input-row"><div class="left"><input type="checkbox"><span class="custom-indicator"></span><span class="text line-clamp"></span></div><!#><!/></label>`, 11);
1438
+ const $1c63082b2da848ad$export$48513f6b9f8ce62d = props => {
1423
1439
  // It seems like there's no diffing without memos here (since we often just have computations in the getters above that update to the same result often because their dependencies change with unrelated changes often), so put memos here to avoid unneeded DOM changes
1424
1440
  const count = $gVhhF$solidjs.createMemo(() => props.count_);
1425
1441
  const label = $gVhhF$solidjs.createMemo(() => props.label_);
@@ -1428,7 +1444,7 @@ const $b3cf6ca8dc0e9998$export$48513f6b9f8ce62d = props => {
1428
1444
  const is_count_zero = $gVhhF$solidjs.createMemo(() => props.is_count_zero_ || count() === 0);
1429
1445
  const id = $gVhhF$depictaiutilishared.make_random_classname();
1430
1446
  return (/* We can't use actual margin because ExpandingContainer gets messed up */(() => {
1431
- const _el$ = $gVhhF$solidjsweb.getNextElement($b3cf6ca8dc0e9998$var$_tmpl$2),
1447
+ const _el$ = $gVhhF$solidjsweb.getNextElement($1c63082b2da848ad$var$_tmpl$2),
1432
1448
  _el$2 = _el$.firstChild,
1433
1449
  _el$3 = _el$2.firstChild,
1434
1450
  _el$4 = _el$3.nextSibling,
@@ -1455,7 +1471,7 @@ const $b3cf6ca8dc0e9998$export$48513f6b9f8ce62d = props => {
1455
1471
  return count() != undefined;
1456
1472
  },
1457
1473
  get children() {
1458
- const _el$6 = $gVhhF$solidjsweb.getNextElement($b3cf6ca8dc0e9998$var$_tmpl$);
1474
+ const _el$6 = $gVhhF$solidjsweb.getNextElement($1c63082b2da848ad$var$_tmpl$);
1459
1475
  $gVhhF$solidjsweb.insert(_el$6, count);
1460
1476
  return _el$6;
1461
1477
  }
@@ -1543,7 +1559,7 @@ function $d94869c80e337a3d$export$dd948f91abc3a1c4({
1543
1559
  });
1544
1560
  const render_checkbox = checkbox => {
1545
1561
  // Checkbox always calls the getters in props, so we don't wrap these values into memos
1546
- return $gVhhF$solidjsweb.createComponent((0, $b3cf6ca8dc0e9998$export$48513f6b9f8ce62d), {
1562
+ return $gVhhF$solidjsweb.createComponent((0, $1c63082b2da848ad$export$48513f6b9f8ce62d), {
1547
1563
  get value_() {
1548
1564
  return checkbox().value_;
1549
1565
  },
@@ -2245,7 +2261,7 @@ function $3bdc00a1353c1150$var$render_stuff(data, existing_filter, i18n_) {
2245
2261
  [_el$8, _co$3] = $gVhhF$solidjsweb.getNextMarker(_el$7.nextSibling),
2246
2262
  _el$9 = _el$8.nextSibling,
2247
2263
  [_el$10, _co$4] = $gVhhF$solidjsweb.getNextMarker(_el$9.nextSibling);
2248
- $gVhhF$solidjsweb.insert(_el$6, $gVhhF$solidjsweb.createComponent((0, $b3cf6ca8dc0e9998$export$48513f6b9f8ce62d), {
2264
+ $gVhhF$solidjsweb.insert(_el$6, $gVhhF$solidjsweb.createComponent((0, $1c63082b2da848ad$export$48513f6b9f8ce62d), {
2249
2265
  get value_() {
2250
2266
  return JSON.stringify(value()?.value_);
2251
2267
  },
@@ -2499,9 +2515,11 @@ function $3bdc00a1353c1150$var$expand_until_choice(data_structure) {
2499
2515
  }
2500
2516
  });
2501
2517
  }
2502
- const $0ef1681699140f1a$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class="checkbox-grid"></div>`, 2),
2518
+ const $0ef1681699140f1a$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class="checkbox-grid" style="position:absolute;z-index:-1;pointer-events:none;opacity:0"></div>`, 2),
2503
2519
  $0ef1681699140f1a$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<span class="count-wrapper"><span class="count"></span></span>`, 4),
2504
- $0ef1681699140f1a$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<button class="major-minor-transition"><!#><!/><!#><!/></button>`, 6);
2520
+ $0ef1681699140f1a$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<button><!#><!/><!#><!/></button>`, 6);
2521
+ const $0ef1681699140f1a$var$gap_px = 5;
2522
+ const $0ef1681699140f1a$var$max_columns = 3;
2505
2523
  const $0ef1681699140f1a$export$414f6a19d38e655c = ({
2506
2524
  filter_: filter_,
2507
2525
  selected_filters_: [get_selected_filters, set_selected_filters]
@@ -2524,74 +2542,182 @@ const $0ef1681699140f1a$export$414f6a19d38e655c = ({
2524
2542
  count_: meta.counts?.[index]
2525
2543
  }));
2526
2544
  });
2527
- return (() => {
2545
+ const [sizes_set, set_sizes_set] = $gVhhF$solidjs.createSignal(new Set(), {
2546
+ equals: false
2547
+ });
2548
+ const [cols_at_size, set_cols_at_size] = $gVhhF$solidjs.createSignal([[1, "0px", ""]]);
2549
+ const [container, set_container] = $gVhhF$solidjs.createSignal();
2550
+ const container_width_accessor = $gVhhF$solidjs.createMemo(() => {
2551
+ const element = container();
2552
+ if (!element) return;
2553
+ return $e5f442fb78c98741$export$9f191182275e9ef(element);
2554
+ });
2555
+ const [shadow_children, set_shadow_children] = $gVhhF$solidjs.createSignal(new Set(), {
2556
+ equals: false
2557
+ });
2558
+ const shadow_grid = (() => {
2528
2559
  const _el$ = $gVhhF$solidjsweb.getNextElement($0ef1681699140f1a$var$_tmpl$);
2529
- $gVhhF$solidjsweb.insert(_el$, $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Index), {
2530
- get each() {
2531
- return buttons();
2532
- },
2533
- children: value => {
2534
- const is_selected = $gVhhF$solidjs.createMemo(() => existing_filter()?.data?.includes(value().value_));
2535
- return (() => {
2536
- const _el$2 = $gVhhF$solidjsweb.getNextElement($0ef1681699140f1a$var$_tmpl$3),
2537
- _el$5 = _el$2.firstChild,
2538
- [_el$6, _co$] = $gVhhF$solidjsweb.getNextMarker(_el$5.nextSibling),
2539
- _el$7 = _el$6.nextSibling,
2540
- [_el$8, _co$2] = $gVhhF$solidjsweb.getNextMarker(_el$7.nextSibling);
2541
- $gVhhF$solidjsweb.addEventListener(_el$2, "click", $gVhhF$depictaiutilishared.catchify(() => {
2542
- const set_filter = existing_filter();
2543
- const {
2544
- field: field,
2545
- op: op
2546
- } = filter_();
2547
- const base_object = set_filter ? set_filter : {
2548
- op: op,
2549
- field: field
2550
- };
2551
- const old_data = base_object.data;
2552
- const new_data = [...(Array.isArray(old_data) ? [...old_data] : old_data ? [old_data] : [])];
2553
- const new_filter_object = {
2554
- ...base_object,
2555
- data: new_data
2556
- };
2557
- if (!is_selected()) new_filter_object.data.push(value().value_);else new_filter_object.data = new_filter_object.data.filter(v => v !== value().value_);
2558
- const selected_filters = [...get_selected_filters().filter(f => f !== set_filter), ...(new_filter_object.data.length ? [new_filter_object] : [])];
2559
- set_selected_filters(selected_filters);
2560
- }), true);
2561
- $gVhhF$solidjsweb.insert(_el$2, () => value().value_, _el$6, _co$);
2562
- $gVhhF$solidjsweb.insert(_el$2, $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Show), {
2563
- get when() {
2564
- return value().count_ != undefined;
2565
- },
2566
- get children() {
2567
- const _el$3 = $gVhhF$solidjsweb.getNextElement($0ef1681699140f1a$var$_tmpl$2),
2568
- _el$4 = _el$3.firstChild;
2569
- $gVhhF$solidjsweb.insert(_el$4, () => value().count_);
2570
- return _el$3;
2571
- }
2572
- }), _el$8, _co$2);
2573
- $gVhhF$solidjsweb.effect(_p$ => {
2574
- const _v$ = value().count_ === 0 && !is_selected(),
2575
- _v$2 = !is_selected(),
2576
- _v$3 = !!is_selected();
2577
- _v$ !== _p$._v$ && (_el$2.disabled = _p$._v$ = _v$);
2578
- _v$2 !== _p$._v$2 && _el$2.classList.toggle("minor", _p$._v$2 = _v$2);
2579
- _v$3 !== _p$._v$3 && _el$2.classList.toggle("major", _p$._v$3 = _v$3);
2580
- return _p$;
2581
- }, {
2582
- _v$: undefined,
2583
- _v$2: undefined,
2584
- _v$3: undefined
2585
- });
2586
- $gVhhF$solidjsweb.runHydrationEvents();
2587
- return _el$2;
2588
- })();
2589
- }
2590
- }));
2560
+ $gVhhF$solidjsweb.insert(_el$, () => [...shadow_children()]);
2591
2561
  return _el$;
2592
- })();
2562
+ })(); // for getting the smallest possible sizes of all the items
2563
+ $gVhhF$solidjs.createEffect(() => {
2564
+ const container_width = container_width_accessor()?.();
2565
+ if (container_width == undefined) return;
2566
+ $0ef1681699140f1a$var$adjust_sizes(container_width, sizes_set(), set_cols_at_size);
2567
+ });
2568
+ return [shadow_grid, $gVhhF$solidjsweb.createComponent((0, $f48d0fbb00835aaa$export$d21e32dfedac04be), {
2569
+ get cols_at_size() {
2570
+ return cols_at_size();
2571
+ },
2572
+ grid_spacing: $0ef1681699140f1a$var$gap_px + "px",
2573
+ rows: "all",
2574
+ layout: "grid",
2575
+ element_attributes: {
2576
+ class: "checkbox-grid",
2577
+ ref: el => set_container(el)
2578
+ },
2579
+ get children() {
2580
+ return $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Index), {
2581
+ get each() {
2582
+ return buttons();
2583
+ },
2584
+ children: value => {
2585
+ const is_selected = $gVhhF$solidjs.createMemo(() => existing_filter()?.data?.includes(value().value_));
2586
+ const MakeButton = attributes => (() => {
2587
+ const _el$2 = $gVhhF$solidjsweb.getNextElement($0ef1681699140f1a$var$_tmpl$3),
2588
+ _el$5 = _el$2.firstChild,
2589
+ [_el$6, _co$] = $gVhhF$solidjsweb.getNextMarker(_el$5.nextSibling),
2590
+ _el$7 = _el$6.nextSibling,
2591
+ [_el$8, _co$2] = $gVhhF$solidjsweb.getNextMarker(_el$7.nextSibling);
2592
+ $gVhhF$solidjsweb.spread(_el$2, $gVhhF$solidjsweb.mergeProps(attributes, {
2593
+ get disabled() {
2594
+ return $gVhhF$solidjsweb.memo(() => value().count_ === 0)() && !is_selected();
2595
+ },
2596
+ get classList() {
2597
+ return {
2598
+ minor: !is_selected(),
2599
+ major: is_selected(),
2600
+ "major-minor-transition": true
2601
+ };
2602
+ },
2603
+ get onClick() {
2604
+ return $gVhhF$depictaiutilishared.catchify(() => {
2605
+ const set_filter = existing_filter();
2606
+ const {
2607
+ field: field,
2608
+ op: op
2609
+ } = filter_();
2610
+ const base_object = set_filter ? set_filter : {
2611
+ op: op,
2612
+ field: field
2613
+ };
2614
+ const old_data = base_object.data;
2615
+ const new_data = [...(Array.isArray(old_data) ? [...old_data] : old_data ? [old_data] : [])];
2616
+ const new_filter_object = {
2617
+ ...base_object,
2618
+ data: new_data
2619
+ };
2620
+ if (!is_selected()) new_filter_object.data.push(value().value_);else new_filter_object.data = new_filter_object.data.filter(v => v !== value().value_);
2621
+ const selected_filters = [...get_selected_filters().filter(f => f !== set_filter), ...(new_filter_object.data.length ? [new_filter_object] : [])];
2622
+ set_selected_filters(selected_filters);
2623
+ });
2624
+ }
2625
+ }), false, true);
2626
+ $gVhhF$solidjsweb.insert(_el$2, () => value().value_, _el$6, _co$);
2627
+ $gVhhF$solidjsweb.insert(_el$2, $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Show), {
2628
+ get when() {
2629
+ return value().count_ != undefined;
2630
+ },
2631
+ get children() {
2632
+ const _el$3 = $gVhhF$solidjsweb.getNextElement($0ef1681699140f1a$var$_tmpl$2),
2633
+ _el$4 = _el$3.firstChild;
2634
+ $gVhhF$solidjsweb.insert(_el$4, () => value().count_);
2635
+ return _el$3;
2636
+ }
2637
+ }), _el$8, _co$2);
2638
+ $gVhhF$solidjsweb.runHydrationEvents();
2639
+ return _el$2;
2640
+ })();
2641
+ const invisible_size_button = $gVhhF$solidjsweb.createComponent(MakeButton, {});
2642
+ const smallest_possible_size = $e5f442fb78c98741$export$9f191182275e9ef(invisible_size_button); // create ResizeObserver for the invisible size button where the div hugs its content
2643
+ const sizes_value = $gVhhF$solidjs.untrack(sizes_set);
2644
+ const shadow_children_value = $gVhhF$solidjs.untrack(shadow_children);
2645
+ sizes_value.add(smallest_possible_size);
2646
+ set_sizes_set(sizes_value);
2647
+ shadow_children_value.add(invisible_size_button);
2648
+ set_shadow_children(shadow_children_value);
2649
+ $gVhhF$solidjs.onCleanup(() => {
2650
+ const sizes_value = $gVhhF$solidjs.untrack(sizes_set);
2651
+ const shadow_children_value = $gVhhF$solidjs.untrack(shadow_children);
2652
+ sizes_value.delete(smallest_possible_size);
2653
+ set_sizes_set(sizes_value);
2654
+ shadow_children_value.delete(invisible_size_button);
2655
+ set_shadow_children(shadow_children_value);
2656
+ });
2657
+ // The actual button that will be visible
2658
+ return $gVhhF$solidjsweb.createComponent(MakeButton, {});
2659
+ }
2660
+ });
2661
+ }
2662
+ })];
2593
2663
  };
2594
- $gVhhF$solidjsweb.delegateEvents(["click"]);
2664
+ /**
2665
+ * Calculate and apply cols_at_size overrides to fit as many items as possible in a row, evenly spaced
2666
+ */
2667
+ function $0ef1681699140f1a$var$adjust_sizes(container_width, sizes, set_cols_at_size) {
2668
+ let current_row_index = 0;
2669
+ let current_row_items = [];
2670
+ const column_to_row_result = {};
2671
+ const check_would_fit_evenly = (min_size_of_item, at_number_of_columnns) => {
2672
+ const would_have_even_size = container_width / at_number_of_columnns - (at_number_of_columnns * 2 - 2) * ($0ef1681699140f1a$var$gap_px / 2) / at_number_of_columnns; // What size would our element have (without gaps), given that now every column had the same width (equation from Layout.tsx)
2673
+ return would_have_even_size >= min_size_of_item; // would this item still fit if we added another column? (probably what the caller has done with at_number_of_columns), given that every item has the same size
2674
+ };
2675
+
2676
+ for (const size_item of sizes) {
2677
+ const size = size_item();
2678
+ if (size == undefined) return; // Only do stuff if we know all the sizes
2679
+ const current_row_length = current_row_items.length;
2680
+ const can_add_another_column_initial_val = current_row_length < $0ef1681699140f1a$var$max_columns; // allow max 4 items per row
2681
+ let can_add_another_column = can_add_another_column_initial_val;
2682
+ if (can_add_another_column)
2683
+ // can we actually? Since adding another column changes the size of all elements in the row we need to check all of them
2684
+ for (let i = -1; i < current_row_length; i++) {
2685
+ // -1 is for the new item we're adding and every item is guaranteed to exist
2686
+ const size_to_check = current_row_items[i] ?? size;
2687
+ const would_have_columns = current_row_length + 1; // if we added another column
2688
+ const would_fit_evenly = check_would_fit_evenly(size_to_check, would_have_columns); // see comments in check_would_fit_evenly
2689
+ if (!would_fit_evenly) {
2690
+ can_add_another_column = false;
2691
+ break;
2692
+ }
2693
+ }
2694
+ if (can_add_another_column) current_row_items.push(size);else {
2695
+ column_to_row_result[++current_row_index] = current_row_length || 1; // overrides is indexed by 1 it seems, therefore ++curent_row_index
2696
+ current_row_items = [size]; // save current item for next row
2697
+ }
2698
+ }
2699
+
2700
+ const items_left_to_add = current_row_items.length;
2701
+ if (items_left_to_add) {
2702
+ let num_columns = 1; // We want to have as close to max_columns as possible in the last row
2703
+ let fits = true;
2704
+ do
2705
+ // Check if more columns would fit
2706
+ for (let i = 0; i < items_left_to_add; i++) {
2707
+ const item = current_row_items[i];
2708
+ const would_fit_evenly = check_would_fit_evenly(item, num_columns + 1);
2709
+ if (!would_fit_evenly) {
2710
+ fits = false;
2711
+ break;
2712
+ }
2713
+ } while (fits && ++num_columns < $0ef1681699140f1a$var$max_columns);
2714
+ column_to_row_result[++current_row_index] = num_columns; // Add last row that's left after loop finished
2715
+ }
2716
+
2717
+ set_cols_at_size([[1, "0px", "", null, {
2718
+ overrides: column_to_row_result
2719
+ }]]);
2720
+ }
2595
2721
  function $b54e6192d0caa293$export$d9f36cf74e24d595(media_query) {
2596
2722
  const signal = $gVhhF$solidjs.createSignal(false);
2597
2723
  $gVhhF$solidjs.onCleanup($gVhhF$depictaiutilishared.javascript_media_query(media_query, ({
@@ -2636,7 +2762,7 @@ function $b51a2b8b9355e66c$export$82ed4b28ecb67608({
2636
2762
  const hex_color = $gVhhF$solidjs.createMemo(() => checkbox().value_.split(";")?.[1] || "");
2637
2763
  const rgb_color = $gVhhF$solidjs.createMemo(() => $gVhhF$depictaiutilishared.hex_to_rgb(hex_color()));
2638
2764
  const black_contrast_better = $gVhhF$solidjs.createMemo(() => rgb_color() ? $b51a2b8b9355e66c$var$does_black_contrast_better(rgb_color()) : false);
2639
- const input_row = $gVhhF$solidjsweb.createComponent((0, $b3cf6ca8dc0e9998$export$48513f6b9f8ce62d), {
2765
+ const input_row = $gVhhF$solidjsweb.createComponent((0, $1c63082b2da848ad$export$48513f6b9f8ce62d), {
2640
2766
  get value_() {
2641
2767
  return checkbox().value_;
2642
2768
  },
package/latest/index.d.ts CHANGED
@@ -7,7 +7,11 @@ import { CategorySuggestion, SearchSuggestionsResponse } from "@depict-ai/types/
7
7
  import { BaseSearchRequest } from "@depict-ai/types/api/BaseSearchRequest";
8
8
  import { SearchSuggestionsRequest } from "@depict-ai/types/api/SearchSuggestionsRequest";
9
9
  import { ProductListingRequest } from "@depict-ai/types/api/ProductListingRequest";
10
- export const version = "2.0.1";
10
+ export const version = "2.0.3";
11
+ /**
12
+ * Returns accessor with the size of the provided element, including padding and border (I think)
13
+ */
14
+ export function make_accurate_size_accessor(what_to_watch: HTMLElement): import("solid-js").Accessor<number | undefined>;
11
15
  export type SDKGridSpacing = string | {
12
16
  horizontal: string;
13
17
  vertical: string;