@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
@@ -3,18 +3,18 @@ import {jsx as $1RlIW$jsx} from "react/jsx-runtime";
3
3
 
4
4
 
5
5
 
6
- const $c9c4d066f9a5b51b$export$83d89fbfd8236492 = "0.0.74";
6
+ const $c9c4d066f9a5b51b$export$83d89fbfd8236492 = "0.0.76";
7
7
 
8
8
 
9
9
  function $2b1fdeb83610500f$export$9fac37a9c21c2f3b(props) {
10
10
  return props.children;
11
11
  }
12
- function $2b1fdeb83610500f$export$210723f5a54a7028() {
12
+ function $2b1fdeb83610500f$export$a54ec244c8863715() {
13
13
  return (0, $1RlIW$jsx)("div", {
14
14
  children: []
15
15
  });
16
16
  }
17
- function $2b1fdeb83610500f$export$d87c61cecb2edf0d() {
17
+ function $2b1fdeb83610500f$export$f7d2f673fc2f091d() {
18
18
  return (0, $1RlIW$jsx)("div", {
19
19
  children: []
20
20
  });
@@ -29,7 +29,7 @@ function $2b1fdeb83610500f$export$466cdc317043f6cb() {
29
29
  children: []
30
30
  });
31
31
  }
32
- function $2b1fdeb83610500f$export$3f4580d6398c5027() {
32
+ function $2b1fdeb83610500f$export$80e99ee6b29cadd2() {
33
33
  return (0, $1RlIW$createElement)("div", {
34
34
  className: "depict aligner",
35
35
  style: {
@@ -47,19 +47,19 @@ function $2b1fdeb83610500f$export$89c6019e4baa40b1() {
47
47
  children: []
48
48
  });
49
49
  }
50
- function $2b1fdeb83610500f$export$45080d603eda647c() {
50
+ function $2b1fdeb83610500f$export$9bb30bbe003b82e0() {
51
51
  return {
52
- DepictSearchField: ()=>(0, $1RlIW$jsx)("div", {
52
+ SearchField: ()=>(0, $1RlIW$jsx)("div", {
53
53
  children: []
54
54
  })
55
55
  };
56
56
  }
57
57
  function $2b1fdeb83610500f$export$a7f6cffb6b8ba11c() {}
58
- function $2b1fdeb83610500f$export$cc1e9aaf280afdcb() {
58
+ function $2b1fdeb83610500f$export$912994940e660d32() {
59
59
  return {
60
60
  open: ()=>{}
61
61
  };
62
62
  }
63
63
 
64
64
 
65
- export {$2b1fdeb83610500f$export$9fac37a9c21c2f3b as DepictProvider, $2b1fdeb83610500f$export$210723f5a54a7028 as DepictSearchPage, $2b1fdeb83610500f$export$d87c61cecb2edf0d as DepictCategoryPage, $2b1fdeb83610500f$export$5646050d516e06bc as BreadCrumbs, $2b1fdeb83610500f$export$466cdc317043f6cb as QuickLinks, $2b1fdeb83610500f$export$3f4580d6398c5027 as DepictAligner, $2b1fdeb83610500f$export$ecf150517ad2aa0 as ImagePlaceHolder, $2b1fdeb83610500f$export$89c6019e4baa40b1 as TextPlaceholder, $2b1fdeb83610500f$export$45080d603eda647c as useDepictSearchField, $2b1fdeb83610500f$export$a7f6cffb6b8ba11c as openModal, $2b1fdeb83610500f$export$cc1e9aaf280afdcb as useDepictSearchModal, $c9c4d066f9a5b51b$export$83d89fbfd8236492 as version};
65
+ export {$2b1fdeb83610500f$export$9fac37a9c21c2f3b as DepictProvider, $2b1fdeb83610500f$export$a54ec244c8863715 as SearchPage, $2b1fdeb83610500f$export$f7d2f673fc2f091d as CategoryPage, $2b1fdeb83610500f$export$5646050d516e06bc as BreadCrumbs, $2b1fdeb83610500f$export$466cdc317043f6cb as QuickLinks, $2b1fdeb83610500f$export$80e99ee6b29cadd2 as ComponentAligner, $2b1fdeb83610500f$export$ecf150517ad2aa0 as ImagePlaceHolder, $2b1fdeb83610500f$export$89c6019e4baa40b1 as TextPlaceholder, $2b1fdeb83610500f$export$9bb30bbe003b82e0 as useSearchField, $2b1fdeb83610500f$export$a7f6cffb6b8ba11c as openModal, $2b1fdeb83610500f$export$912994940e660d32 as useSearchModal, $c9c4d066f9a5b51b$export$83d89fbfd8236492 as version};
@@ -1,2 +1,2 @@
1
- export type { plp_shared_i18n, search_i18n, category_i18n, Locale } from "@depict-ai/js-ui/locales";
2
- export { cz, de, en, da, fi, pl, fr, sv, pt, no, nl, es, it } from "@depict-ai/js-ui/locales";
1
+ export type { plp_shared_i18n, search_i18n, category_i18n, Locale } from "@depict-ai/ui/locales";
2
+ export { cz, de, en, da, fi, pl, fr, sv, pt, no, nl, es, it } from "@depict-ai/ui/locales";
package/locales/index.js CHANGED
@@ -1 +1 @@
1
- export * from "@depict-ai/js-ui/locales";
1
+ export * from "@depict-ai/ui/locales";
@@ -1 +1 @@
1
- module.exports = require("@depict-ai/js-ui/locales");
1
+ module.exports = require("@depict-ai/ui/locales");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@depict-ai/react-ui",
3
- "version": "0.0.74",
3
+ "version": "0.0.76",
4
4
  "packageManager": "yarn@3.2.2",
5
5
  "source": "src/index.ts",
6
6
  "main": "dist/main.js",
@@ -90,9 +90,8 @@
90
90
  "/locales"
91
91
  ],
92
92
  "dependencies": {
93
- "@depict-ai/js-ui": "^0.0.1",
94
- "@depict-ai/ui": "^0.0.52",
95
- "@depict-ai/utilishared": "^0.0.49",
93
+ "@depict-ai/ui": "^0.0.55",
94
+ "@depict-ai/utilishared": "^0.0.52",
96
95
  "solid-js": "^1.6.2"
97
96
  },
98
97
  "peerDependencies": {
@@ -105,7 +104,7 @@
105
104
  "@babel/preset-typescript": "latest",
106
105
  "@babel/runtime": "latest",
107
106
  "@babel/runtime-corejs3": "latest",
108
- "@depict-ai/plp-styling": "^0.0.13",
107
+ "@depict-ai/plp-styling": "^0.0.15",
109
108
  "@jest/globals": "^29.3.1",
110
109
  "@parcel/babel-preset-env": "latest",
111
110
  "@parcel/resolver-default": "^2.8.0",
@@ -1,152 +0,0 @@
1
- @use "../../../helpers/utils";
2
- @use "../../../helpers/custom_input";
3
- @use "SortAndFilterModal";
4
- @use "../MorphingSign";
5
- @use "../../../variables";
6
- @use "../../../helpers/supports-hover";
7
- @use "SortAndFilter";
8
-
9
- /// A wrapper around SortAndFilter that styles the sorting and filtering menus for the white theme by providing a default set of white variables.
10
- ///
11
- /// ### Parameters
12
- /// See [SortAndFilter](#undefined-mixin-SortAndFilter) for parameters.
13
- @mixin WhiteSortAndFilter(
14
- $mobile-top-level-collapse-color: variables.$brand-black,
15
- $mobile-top-level-collapse-background: #fff,
16
- $custom-input-checked-background: #fff,
17
- $custom-input-background: #fff,
18
- $custom-input-indicator-color: variables.$brand-black,
19
- $checkbox-background-color: #fff,
20
- $checkbox-checked-background-color: variables.$brand-black,
21
- $checkbox-checkmark-color: #fff,
22
- $checkbox-border-radius: if(variables.$border-radius == 0, 0, if(variables.$border-radius == 0px, 0, 2px)),
23
- // if global border radius is 0 or 0px, don't round input fields in their default value
24
- $checkbox-border: 1px solid variables.$brand-dark-grey,
25
- $checkbox-top-offset: 0px,
26
- $checkbox-left-offset: 0px,
27
- $radio-border: 1px solid variables.$brand-dark-grey,
28
- $radio-background-color: #fff,
29
- $radio-selected-dot-color: variables.$brand-black,
30
- $radio-selected-dot-size: 14px,
31
- $radio-selected-offset: 0px,
32
- $separator-color: variables.$brand-dark-grey,
33
- $price-range-min-max-text-color: variables.$brand-dark-grey,
34
- $range-input-bg-color: variables.$brand-lightest-grey,
35
- $clear-all-filters-color: #fff,
36
- $top-level-summary-background: transparent,
37
- $hovered-top-level-summary-background: variables.$brand-lightest-grey,
38
- $hovered-range-input-bg-color: variables.$brand-lighter-grey,
39
- $hovered-checkbox-bg: variables.$brand-lighter-grey,
40
- $hovered-checkbox-checked-background-color: variables.$brand-dark-grey,
41
- $input-row-label-color: variables.$brand-dark-grey,
42
- $checked-input-row-label-color: #000,
43
- $input-row-label-font-weight: 400,
44
- $checked-input-row-label-font-weight: 500,
45
- $showing-selected-subfilter-count-color: variables.$brand-grey,
46
- $filter-available-products-color: variables.$brand-grey,
47
- $count-zero-input-row-label-color: rgb(194, 194, 194),
48
- $spacing_between_input_rows: 10px,
49
- $ungrouped-top-margin: 25px,
50
- $hovered-checkbox-border: 2px solid variables.$brand-black,
51
- $hovered-radio-border: 2px solid variables.$brand-black,
52
- $sort-and-filter-button-padding: 10px 20px,
53
- $expandable-seperator-color: variables.$brand-lightest-grey,
54
- $expandable-seperator-hover-color: variables.$brand-lighter-grey,
55
- $expandable-seperator-height: 1px,
56
- $filter-group-heading-color: variables.$brand-dark-grey,
57
- $filter-groups-morphing-sign-color: variables.$brand-dark-grey,
58
- $filter-group-border-color: variables.$brand-light-grey,
59
- $filter-group-summary-border-radius: 0px,
60
- $sort-and-filter-modal-background: white,
61
- $filter-group-heading-padding: 15px 10px,
62
- $filter-group-summary-spacings: 0px,
63
- $range-input-field-border-radius: 0px,
64
- $range-input-field-border: 0.5px solid #000000,
65
- $filter-group-title-bold: 500,
66
- $view-more-clear-background: white,
67
- $filter-collapsible-body-background: white,
68
- $sort-and-filter-modal-section-title-font-weight: bold,
69
- $sort-and-filter-modal-section-expanded-title-font-weight: $sort-and-filter-modal-section-title-font-weight,
70
- $expanded-filter-group-border-color: variables.$brand-lighter-grey,
71
- $view-more-clear-border-color: variables.$brand-lighter-grey
72
- ) {
73
- @include SortAndFilter.SortAndFilter(
74
- $mobile-top-level-collapse-color,
75
- $mobile-top-level-collapse-background,
76
- $custom-input-checked-background,
77
- $custom-input-background,
78
- $custom-input-indicator-color,
79
- $checkbox-background-color,
80
- $checkbox-checked-background-color,
81
- $checkbox-checkmark-color,
82
- $checkbox-border-radius,
83
- $checkbox-border,
84
- $checkbox-top-offset,
85
- $checkbox-left-offset,
86
- $radio-border,
87
- $radio-background-color,
88
- $radio-selected-dot-color,
89
- $radio-selected-dot-size,
90
- $radio-selected-offset,
91
- $separator-color,
92
- $price-range-min-max-text-color,
93
- $range-input-bg-color,
94
- $top-level-summary-background,
95
- $hovered-top-level-summary-background,
96
- $hovered-range-input-bg-color,
97
- $hovered-checkbox-bg,
98
- $hovered-checkbox-checked-background-color,
99
- $input-row-label-color,
100
- $checked-input-row-label-color,
101
- $input-row-label-font-weight,
102
- $checked-input-row-label-font-weight,
103
- $showing-selected-subfilter-count-color,
104
- $filter-available-products-color,
105
- $count-zero-input-row-label-color,
106
- $spacing_between_input_rows,
107
- $ungrouped-top-margin,
108
- $hovered-checkbox-border,
109
- $hovered-radio-border,
110
- $sort-and-filter-button-padding,
111
- $expandable-seperator-color,
112
- $expandable-seperator-hover-color,
113
- $expandable-seperator-height,
114
- $filter-group-heading-color,
115
- $filter-groups-morphing-sign-color,
116
- $filter-group-summary-border-radius,
117
- $sort-and-filter-modal-background,
118
- $filter-group-heading-padding,
119
- $filter-group-summary-spacings,
120
- $range-input-field-border-radius,
121
- $range-input-field-border,
122
- $filter-group-title-bold,
123
- $view-more-clear-background,
124
- $filter-collapsible-body-background,
125
- $sort-and-filter-modal-section-title-font-weight,
126
- $sort-and-filter-modal-section-expanded-title-font-weight
127
- );
128
- .filters .body {
129
- details.filter-collapsible {
130
- border-top: 1px solid $filter-group-border-color;
131
- &[open] {
132
- & > summary {
133
- border-bottom: 1px solid $expanded-filter-group-border-color;
134
- }
135
- }
136
- .filter-collapsible-body {
137
- margin-bottom: 15px;
138
- }
139
- }
140
- .view-more-clear {
141
- border-top: 1px solid $view-more-clear-border-color;
142
- }
143
- }
144
- .filter-sort-modal details {
145
- &.sorting,
146
- &.filters {
147
- .sort-filter-summary > .summary {
148
- border-top: 1px solid #f4f4f4;
149
- }
150
- }
151
- }
152
- }