@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
@@ -2,7 +2,7 @@
2
2
  @use "sass:color";
3
3
  @use "supports-hover";
4
4
  @use "sass:map";
5
- @use "./utils";
5
+ @use "utils";
6
6
  @use "../components/PLP/Buttons";
7
7
 
8
8
  // https://selleo.com/til/posts/rc5qli22jp-pass-hex-color-to-fill-svg-in-background-url-scss
@@ -30,11 +30,11 @@
30
30
  $hovered-checkbox-checked-background-color,
31
31
  $hovered-checkbox-border,
32
32
  $hovered-radio-border,
33
- $input-row-height-goal,
33
+ $input-row-height,
34
34
  $largest-border-on-custom-input
35
35
  ) {
36
36
  $width-and-height: calc(
37
- #{$input-row-height-goal} - calc(#{$largest-border-on-custom-input} * 2)
37
+ #{$input-row-height} - calc(#{$largest-border-on-custom-input} * 2)
38
38
  ); // border is on both sides
39
39
  /* Customize the label (the container) */
40
40
  .input-row {
@@ -72,10 +72,10 @@
72
72
  border: $checkbox-border;
73
73
  }
74
74
  &.color {
75
- padding: calc(#{$input-row-height-goal} / 2); // doesn't have border so needs more size
75
+ padding: calc(#{$input-row-height} / 2); // doesn't have border so needs more size
76
76
  &.outline {
77
77
  $border-width: 0.5px;
78
- padding: calc(calc(#{$input-row-height-goal} - calc(#{$border-width} * 2)) / 2);
78
+ padding: calc(calc(#{$input-row-height} - calc(#{$border-width} * 2)) / 2);
79
79
  border: $border-width solid #868689;
80
80
  }
81
81
  }
@@ -20,9 +20,15 @@
20
20
  /// @param {Color} $normal-background - The color to darken or lighten
21
21
  /// @param {Percentage} $darken-factor [10%] - The amount to darken the color by
22
22
  /// @param {Percentage} $lighten-factor [10%] - The amount to lighten the color by
23
- @mixin highlight-background($normal-background, $darken-factor: 10%, $lighten-factor: 10%) {
23
+ /// @param {Percentage} $saturation-factor [$darken-factor] - The amount to decrease saturation by when the color is darkened
24
+ @mixin highlight-background(
25
+ $normal-background,
26
+ $darken-factor: 10%,
27
+ $lighten-factor: 10%,
28
+ $saturation-factor: $darken-factor
29
+ ) {
24
30
  @if color.lightness($normal-background) >= 50% {
25
- background: color.adjust($normal-background, $lightness: -$darken-factor);
31
+ background: color.adjust($normal-background, $lightness: -$darken-factor, $saturation: -$saturation-factor);
26
32
  } @else {
27
33
  background: color.adjust($normal-background, $lightness: $lighten-factor);
28
34
  }
@@ -1,3 +1,54 @@
1
- @forward "./components/PLP";
2
- @forward "./components/category";
3
- @forward "./components/search";
1
+ @forward "variables";
2
+
3
+ @use "components/PLP";
4
+ @use "components/category";
5
+ @use "components/search";
6
+
7
+ /// Default theme for Search and Category pages. Calling this mixin will generate all the styling for the page specified.
8
+ /// To configure variables, use `@use` and `with`
9
+ /// @param {"both" | "search" | "category"} $scope - What to generate styling for. Set this to `category` if you are only using the Category page or `search` if you are only using the Search page. If you are using both, set this to `both`.
10
+ ///
11
+ /// @example scss - Example usage for when only using the category page that disables all rounded corners.
12
+ /// @use "@depict-ai/plp-styling" with (
13
+ /// $border-radius: 0
14
+ /// );
15
+ /// @include plp-styling.default-theme("category");
16
+ @mixin default-theme($scope) {
17
+ .depict.plp {
18
+ button {
19
+ border: none; // Disable default button border
20
+ }
21
+ @include PLP.PLPResults();
22
+ @include PLP.ProductListingPage();
23
+ @include PLP.SelectedFilters();
24
+ @include PLP.ScrollStatus();
25
+ @include PLP.SortAndFilter();
26
+ @include PLP.SortAndFilterModal();
27
+ @include PLP.FloatingButtons();
28
+ @include PLP.SlidableItems();
29
+ @include PLP.PrimaryButton();
30
+ @include PLP.SecondaryButton();
31
+ }
32
+ @if $scope != "category" {
33
+ .depict.search {
34
+ @include search.Autocomplete();
35
+ @include search.CategorySuggestions();
36
+ @include search.InstantResults();
37
+ @include search.InstantCard();
38
+ @include search.SearchField();
39
+ @include search.SearchModal();
40
+ @include search.SearchPage();
41
+ @include search.SearchRecommendations();
42
+ @include search.ShowingResultsFor();
43
+ }
44
+ }
45
+ @if $scope != "search" {
46
+ .depict.category {
47
+ @include category.BreadCrumbs();
48
+ @include category.QuickLinks();
49
+ @include category.CategoryTitle();
50
+ @include category.CategoryPage();
51
+ }
52
+ }
53
+ @include PLP.Toast();
54
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "@depict-ai/plp-styling",
3
+ "packageManager": "yarn@3.2.2",
4
+ "scripts": {
5
+ "publish": "yarn npm publish"
6
+ },
7
+ "files": [
8
+ "components/",
9
+ "helpers/",
10
+ "index.scss",
11
+ "variables.scss"
12
+ ],
13
+ "version": "0.0.15",
14
+ "description": "Depict PLP UI SCSS Styling",
15
+ "author": "Daniel Troger <daniel@depict.ai>",
16
+ "contributors": [
17
+ "Fabian Hedin <fabian@depict.ai>",
18
+ "Sverre Westerlund <sverre@depict.ai>",
19
+ "Joakim Olsson <joakim.olsson@depict.ai>",
20
+ "Arnaud Cortisse <arnaud@depict.ai>",
21
+ "Carl Riis <carl@depict.ai>"
22
+ ],
23
+ "license": "MIT",
24
+ "devDependencies": {
25
+ "sassdoc": "^2.7.4"
26
+ },
27
+ "publishConfig": {
28
+ "access": "public"
29
+ }
30
+ }
@@ -1,61 +1,295 @@
1
- ////
2
- /// This is the file containing the main variables used across all styles, such as base colors, rounds and z-index
3
- /// Many values and variables are derived from them
4
- ////
5
-
6
- $brand-black: #0f0f0f;
7
- $brand-grey: #868689;
8
- $brand-dark-grey: #333335;
9
- $brand-light-grey: #bcbcbe;
10
- $brand-lighter-grey: #eeeef0;
11
- $brand-lightest-grey: #fafafc;
12
- $deprecated-grey: #e7e8e7;
1
+ @use "sass:map";
2
+ @use "sass:color";
3
+
4
+ /// Deep merged two maps and gives you the value of a key in the merged map.
5
+ /// @param {Map} $map - The base map, whose keys will be overridden by the keys in $map2.
6
+ /// @param {Map} $map2 - The map whose keys will override the keys in $map.
7
+ /// @param {String} $key - The key whose value you want to get from the merged map.
8
+ @function get-merged($map, $map2, $key) {
9
+ @return map.get(map.deep-merge($map, $map2), $key);
10
+ }
11
+
12
+ /// Set this to the background color of your page. It's needed for example for some things that fade into the background color (that are over another element).
13
+ $page-background-color: white !default;
14
+
15
+ /// The colors to be used across the UI
16
+ /// We're trying to avoid getting colours from this map directly in style declarations, instead there's a layer of abstraction on top of this map.
17
+ /// That is because different things in the UI need to have different colours from the palette, depending on the palette.
18
+ /// See the maps below for text and icon colours, border colors and background colors.
19
+ $base-colors: () !default;
20
+ $base-colors-defaults: (
21
+ 1000: #000,
22
+ 800: #0f0f0f,
23
+ 600: #333335,
24
+ 500: #868689,
25
+ 400: #cbcbcc,
26
+ 300: #e4e4e5,
27
+ 200: #f3f3f5,
28
+ 100: #fafafc,
29
+ 0: #fff,
30
+ );
31
+
32
+ $text-icon-colors: () !default;
33
+ $text-icon-colors-defaults: (
34
+ "base": (
35
+ "default": get-merged($base-colors-defaults, $base-colors, 800),
36
+ "hover": get-merged($base-colors-defaults, $base-colors, 600),
37
+ "pressed": get-merged($base-colors-defaults, $base-colors, 1000),
38
+ "disabled": get-merged($base-colors-defaults, $base-colors, 400),
39
+ ),
40
+ "neutral": (
41
+ "default": get-merged($base-colors-defaults, $base-colors, 600),
42
+ "hover": get-merged($base-colors-defaults, $base-colors, 800),
43
+ "pressed": get-merged($base-colors-defaults, $base-colors, 1000),
44
+ "disabled": get-merged($base-colors-defaults, $base-colors, 400),
45
+ ),
46
+ "subtle": (
47
+ "default": get-merged($base-colors-defaults, $base-colors, 500),
48
+ "hover": get-merged($base-colors-defaults, $base-colors, 600),
49
+ "pressed": get-merged($base-colors-defaults, $base-colors, 800),
50
+ "disabled": get-merged($base-colors-defaults, $base-colors, 400),
51
+ ),
52
+ "inverse": (
53
+ "default": get-merged($base-colors-defaults, $base-colors, 0),
54
+ "hover": get-merged($base-colors-defaults, $base-colors, 200),
55
+ "pressed": get-merged($base-colors-defaults, $base-colors, 300),
56
+ "disabled": get-merged($base-colors-defaults, $base-colors, 500),
57
+ ),
58
+ );
59
+
60
+ $border-colors: () !default;
61
+ $border-colors-defaults: (
62
+ "base": (
63
+ "default": get-merged($base-colors-defaults, $base-colors, 800),
64
+ "hover": get-merged($base-colors-defaults, $base-colors, 600),
65
+ "pressed": get-merged($base-colors-defaults, $base-colors, 1000),
66
+ "disabled": get-merged($base-colors-defaults, $base-colors, 400),
67
+ ),
68
+ "neutral": (
69
+ "default": get-merged($base-colors-defaults, $base-colors, 400),
70
+ "hover": get-merged($base-colors-defaults, $base-colors, 500),
71
+ "pressed": get-merged($base-colors-defaults, $base-colors, 700),
72
+ "disabled": get-merged($base-colors-defaults, $base-colors, 300),
73
+ ),
74
+ "subtle": (
75
+ "default": get-merged($base-colors-defaults, $base-colors, 300),
76
+ "hover": get-merged($base-colors-defaults, $base-colors, 400),
77
+ "pressed": get-merged($base-colors-defaults, $base-colors, 500),
78
+ "disabled": get-merged($base-colors-defaults, $base-colors, 200),
79
+ ),
80
+ "inverse": (
81
+ "default": get-merged($base-colors-defaults, $base-colors, 0),
82
+ "hover": get-merged($base-colors-defaults, $base-colors, 400),
83
+ "pressed": get-merged($base-colors-defaults, $base-colors, 300),
84
+ "disabled": get-merged($base-colors-defaults, $base-colors, 500),
85
+ ),
86
+ );
87
+
88
+ $background-colors: () !default;
89
+ $background-colors-defaults: (
90
+ "base": (
91
+ "default": get-merged($base-colors-defaults, $base-colors, 0),
92
+ "hover": get-merged($base-colors-defaults, $base-colors, 200),
93
+ "pressed": get-merged($base-colors-defaults, $base-colors, 300),
94
+ "disabled": get-merged($base-colors-defaults, $base-colors, 100),
95
+ ),
96
+ "neutral": (
97
+ "default": get-merged($base-colors-defaults, $base-colors, 300),
98
+ "hover": get-merged($base-colors-defaults, $base-colors, 400),
99
+ "pressed": get-merged($base-colors-defaults, $base-colors, 200),
100
+ "disabled": get-merged($base-colors-defaults, $base-colors, 100),
101
+ ),
102
+ "subtle": (
103
+ "default": get-merged($base-colors-defaults, $base-colors, 200),
104
+ "hover": get-merged($base-colors-defaults, $base-colors, 300),
105
+ "pressed": get-merged($base-colors-defaults, $base-colors, 400),
106
+ "disabled": get-merged($base-colors-defaults, $base-colors, 100),
107
+ ),
108
+ "inverse": (
109
+ "default": get-merged($base-colors-defaults, $base-colors, 800),
110
+ "hover": get-merged($base-colors-defaults, $base-colors, 600),
111
+ "pressed": get-merged($base-colors-defaults, $base-colors, 1000),
112
+ "disabled": get-merged($base-colors-defaults, $base-colors, 400),
113
+ ),
114
+ );
115
+
116
+ /// What font weights to use for the different font weights. The main reason to allow customisation for this is to allow for custom fonts that don't have the same font weights as the default font. So for example if your font doesn't have a "light" (300) font weight then you can set it to 400 and it will use the "regular" (400) font weight instead.
117
+ /// @prop {Number} font-weights.300 [300] - The font weight to use for "light" (300) text
118
+ /// @prop {Number} font-weights.400 [400] - The font weight to use for "regular" (400) text
119
+ /// @prop {Number} font-weights.500 [500] - The font weight to use for "medium" (500) text
120
+ /// @prop {Number} font-weights.600 [600] - The font weight to use for "semibold" (600) text
121
+ /// @prop {Number} font-weights.700 [700] - The font weight to use for "bold" (700) text
122
+ $font-weights: () !default;
123
+ $font-weights-defaults: (
124
+ 300: 300,
125
+ 400: 400,
126
+ 500: 500,
127
+ 600: 600,
128
+ 700: 700,
129
+ );
130
+
13
131
  /// The base z-index of the modal
14
- $base-z-index: 5000;
132
+ $base-z-index: 5000 !default;
15
133
  /// The z-index of the search page
16
- $search-page-base-z-index: 1;
134
+ $search-page-base-z-index: 1 !default;
17
135
  /// The border radius to use. This is used in many places and not often exactly this value. Sometimes a multiple is used and if it's 0 then everything will be square
18
- ///
19
- /// Does re-assigning this variable with, for example, `PLP.$border-radius: 0` or `variables.$border-radius: 0` give an error in your IDE?
20
- /// Please upvote the Jetbrains issue (and maybe also comment why this is an issue for you) to get it fixed in WebStorm: https://youtrack.jetbrains.com/issue/WEB-46500
21
- $border-radius: 4px;
136
+ $border-radius: 4px !default;
137
+
138
+ // The color of the progress bar below the toast that shows when it will auto-close
139
+ $toast-progress-bar-color: map.get(
140
+ get-merged($text-icon-colors-defaults, $text-icon-colors, "base"),
141
+ "default"
142
+ ) !default;
143
+
144
+ /// Sometimes text is all uppercase in the UI. This is the default text transform used to do that that. For example, if you don't want uppercase text, you can set this to `none`
145
+ $uppercase-text-transform: uppercase !default;
146
+
147
+ /// Configuration for the filters on the right
148
+ /// @prop {Number with size unit} filters-configuration.spacing-between-input-rows [10px] - How much space should be between the input rows. Input row being a checkbox/radio button and its label.
149
+ /// @prop {Number with size unit} filters-configuration.input-row-height-goal [21px] - How high an "input row" should try to be. Input row being a checkbox/radio button and its label. If this is smaller than the text size, it will be ignored.
150
+ $filters-configuration: () !default;
151
+ $filters-configuration-defaults: (
152
+ "spacing-between-input-rows": 10px,
153
+ "input-row-height-goal": 21px,
154
+ );
22
155
 
23
- /// Makes the PLP.all-components mixin use WhiteSortAndFilter instead of SortAndFilter
24
- $white: true !default;
156
+ /// Configuration for the search modal.
157
+ /// @prop {Number with size unit} search-modal.max-width [800px] - The max width of the modal. Also used for the max width of SearchField on the search page.
158
+ /// @prop {Boolean} search-modal.top-snapping [true] - If the modal should snap to the top at certain screen sizes, only recommended to disable if you take care of this via JS
159
+ $search-modal: () !default;
160
+ $search-modal-defaults: (
161
+ "max-width": 800px,
162
+ "top-snapping": true,
163
+ );
25
164
 
26
- // Instant Card
27
- $instant-card-sales-price-color: #ff2e3e;
28
- $instant-card-show-price: true;
29
- $instant-card-show-tagline: true;
165
+ /// Configuration for the buttons that show up when scrolling up after not being too close to the top on mobile
166
+ /// @prop {Number with size unit} floating-buttons.bottom-distance [12px] - The distance from the bottom of the buttons to the bottom of the screen.
167
+ /// @prop {Number with size unit} floating-buttons.side-distance [12px] - The distance from the `$position`-side of the buttons to the `$position`-side of the screen.
168
+ /// @prop {"left" | "right"} floating-buttons.position ["left"] - The side of the screen the buttons should be aligned to. Can be "left" or "right".
169
+ $floating-buttons: () !default;
170
+ $floating-buttons-defaults: (
171
+ "bottom-distance": 12px,
172
+ "side-distance": 12px,
173
+ "position": "left",
174
+ );
30
175
 
31
- // Doesn't work well in IDEs
32
- $g-instant-card: (
176
+ /// Configuration for the search field, that is inside the search modal or on the search page.
177
+ /// @prop {Color} search-field.background [map.get(get-merged($background-colors-defaults, $background-colors, "base"), "default")] - The background color of the input field, clear button and back button
178
+ /// @prop {Number with size unit} search-field.border-radius [variables.$border-radius * 2.5] - Border radius of the outer edges of the whole SearchField
179
+ $search-field: () !default;
180
+ $search-field-defaults: (
181
+ "background": map.get(get-merged($background-colors-defaults, $background-colors, "base"), "default"),
182
+ "border-radius": calc(#{$border-radius} * 2.5),
183
+ );
184
+
185
+ /// Not all gaps can currently be customised using this but some of them do. If this is useful for you and you think we should make it more consistent, please let us know.
186
+ /// @prop {Number with size unit} gaps.between-instant-results [5px] - The gap between the individual instant results in the modal
187
+ /// @prop {Number with size unit} gaps.autocomplete.between-items-in-row-mode [5px] - The vertical gap between the "list-style items", the individual suggestions that have the full width.
188
+ /// @prop {Number with size unit} gaps.autocomplete.between-category-and-other [20px] - The vertical gap between the category and query suggestion sections
189
+ /// @prop {Number with size unit} gaps.autocomplete.between-compact-suggestions [5px] - The horizontal gap between the individual query suggestions that show up in "compact" mode (multiple in the same row) when no query has been entered
190
+ /// @prop {Map} gaps.listing-page - The product listing page (PLP) overall. Note that for the gaps here not the exact values will always be used but often multiples for different places where it's appropriate.
191
+ /// @prop {Number with size unit} gaps.listing-page.spacing-to-filters [12px] - The spacing between the filters and content.
192
+ /// @prop {Number with size unit} gaps.listing-page.desktop-item-gap [20px] - The vertical gap between the different items on desktop.
193
+ /// @prop {Number with size unit} gaps.listing-page.mobile-item-gap [16px] - The vertical gap between the different items on mobile.
194
+ /// @prop {Number with size unit} gaps.listing-page.above-and-below-selected-filters.mobile [10px] - The spacing above and below the selected filters on mobile.
195
+ /// @prop {Number with size unit} gaps.listing-page.above-and-below-selected-filters.desktop [0] - The spacing above and below the selected filters on desktop.
196
+ /// @prop {Boolean} gaps.listing-page.search.spacing-above-search-field [true] - Whether to add equal spacing above the search field as below.
197
+ /// @prop {Number with size unit} gaps.listing-page.search.gaps-to-refactor [3] - he factor to multiply the gaps with to get the spacing above the recommendations.
198
+ $gaps: () !default;
199
+ $gaps-defaults: (
200
+ "between-instant-results": 5px,
201
+ "autocomplete": (
202
+ "between-items-in-row-mode": 5px,
203
+ "between-category-and-other": 20px,
204
+ "between-compact-suggestions": 5px,
205
+ ),
206
+ "listing-page": (
207
+ "spacing-to-filters": 12px,
208
+ "desktop-item-gap": 20px,
209
+ "mobile-item-gap": 16px,
210
+ "above-and-below-selected-filters": (
211
+ "mobile": 10px,
212
+ "desktop": 0,
213
+ ),
214
+ "search": (
215
+ "spacing-above-search-field": true,
216
+ "gap-to-recs-factor": 3,
217
+ ),
218
+ ),
219
+ );
220
+
221
+ /// Styling overrides for the InstantCard component - the component which shows 4 search results in the SearchModal.
222
+ /// @prop {Color} instant-card.sales-price-color [#ff2e3e] - The color of the sales price
223
+ /// @prop {Boolean} instant-card.show-price [true] - Whether to show the price
224
+ /// @prop {Boolean} instant-card.show-tagline [true] - Whether to show the "tagline" (different for different customers, some show for example the material of the product)
225
+ $instant-card: () !default;
226
+ $instant-card-defaults: (
33
227
  "sales-price-color": #ff2e3e,
34
228
  "show-price": true,
35
- "show-subtitle": true,
36
- );
37
-
38
- /// Configure the styling - right now only works for three variables.
39
- /// This is subject to change.
40
- ///
41
- /// @param {String} $instant-card-sales-price-color [null]
42
- /// Determines the color of the sales price in the Instant Card component
43
- /// @param {Boolean} $instant-card-show-price [null]
44
- /// Determines if the price is shown in the Instant Card component
45
- /// @param {Boolean} $instant-card-show-tagline [null]
46
- /// Determines if the tagline is shown in the Instand Card component
47
- @mixin configure(
48
- $instant-card-sales-price-color: null,
49
- $instant-card-show-price: null,
50
- $instant-card-show-tagline: null
51
- ) {
52
- @if $instant-card-sales-price-color != null {
53
- $instant-card-sales-price-color: $instant-card-sales-price-color !global;
54
- }
55
- @if $instant-card-show-price != null {
56
- $instant-card-show-price: $instant-card-show-price !global;
57
- }
58
- @if $instant-card-show-tagline != null {
59
- $instant-card-show-tagline: $instant-card-show-tagline !global;
60
- }
229
+ "show-tagline": true,
230
+ );
231
+
232
+ /// See [documentation of Autocomplete mixin](https://scss-docs.depict.ai/#mixin-Autocomplete) for explanation of this map.
233
+ /// It allows customizing the highlighting in the query suggestions
234
+ $autocomplete-entries-without-highlight: () !default;
235
+ /// See [documentation of Autocomplete mixin](https://scss-docs.depict.ai/#mixin-Autocomplete) for explanation of this map.
236
+ /// It allows customizing the highlighting in the query suggestions
237
+ $autocomplete-entries-with-highlight: () !default;
238
+
239
+ /// Styling overrides for our primary buttons (`button.major`, styled by the PrimaryButton mixin)
240
+ /// @prop {Color} primary-button.background [variables.get-background-color("inverse", "default")] - The background color of the primary button
241
+ /// @prop {Color} primary-button.hover-background [variables.get-background-color("inverse", "hover")] - The hovered background color of the primary button
242
+ /// @prop {Color} primary-button.active-background [variables.get-background-color("inverse", "pressed")] - The active background color of the primary button
243
+ /// @prop {Color} primary-button.color [variables.get-text-color("inverse", "default")] - The text color of the primary button
244
+ /// @prop {Border} primary-button.border [1px solid transparent] - The border of the primary button
245
+ /// @prop {Number with size unit} primary-button.border-radius [variables.$border-radius] - The border radius of the primary button
246
+ /// @prop {Filter} primary-button.hover-filter [drop-shadow(-2px -2px 4px rgba(255, 255, 255, 0.25)) drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.15))] - The filter to apply to the primary button when hovered
247
+ /// @prop {Filter} primary-button.active-filter [drop-shadow(2px 2px 4px rgba(255, 255, 255, 0.25)) drop-shadow(-2px -2px 4px rgba(0, 0, 0, 0.15))] - The filter to apply to the primary button when active
248
+ /// @prop {Filter} primary-button.focus-visible-filter [drop-shadow(2px 2px 4px rgba(65, 143, 195, 0.8))
249
+ /// drop-shadow(-2px -2px 4px rgba(65, 143, 195, 0.8))] - The filter to apply to the primary button when focused with keyboard navigation.
250
+ $primary-button: () !default;
251
+ /// Styling overrides for our secondary buttons (`button.minor`, styled by the SecondaryButton mixin)
252
+ /// @prop {Color} secondary-button.background [variables.get-background-color("base", "default")] - The background color of the secondary button
253
+ /// @prop {Color} secondary-button.hover-background [variables.get-background-color("base", "hover")] - The hovered background color of the secondary button
254
+ /// @prop {Color} secondary-button.active-background [variables.get-background-color("base", "pressed")] - The active background color of the secondary button
255
+ /// @prop {Color} secondary-button.color [variables.get-text-color("base", "default")] - The text color of the secondary button
256
+ /// @prop {Border} secondary-button.border [variables.get-border("base", "default") 1px solid] - The border of the secondary button
257
+ /// @prop {Number with size unit} secondary-button.border-radius [variables.$border-radius] - The border radius of the secondary button
258
+ /// @prop {Filter} secondary-button.hover-filter [drop-shadow(-2px -2px 4px rgba(255, 255, 255, 0.25)) drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.15))] - The filter to apply to the secondary button when hovered
259
+ /// @prop {Filter} secondary-button.active-filter [drop-shadow(2px 2px 4px rgba(255, 255, 255, 0.25)) drop-shadow(-2px -2px 4px rgba(0, 0, 0, 0.15))] - The filter to apply to the secondary button when active
260
+ /// @prop {Filter} secondary-button.focus-visible-filter [drop-shadow(-2px -2px 4px rgba(65, 143, 195, 0.8))
261
+ /// drop-shadow(2px 2px 4px rgba(65, 143, 195, 0.8))] - The filter to apply to the secondary button when focused with keyboard navigation.
262
+ $secondary-button: () !default;
263
+
264
+ /// Makes it easy to get the text color
265
+ /// @param {"base" | "neutral" | "subtle" | "inverse"} $type - What type of color
266
+ /// @param {"default" | "hover" | "pressed" | "disabled"} $state ["base"] - The state
267
+ @function get-text-color($type, $state) {
268
+ @return map.get(get-merged($text-icon-colors-defaults, $text-icon-colors, $type), $state);
269
+ }
270
+
271
+ /// Makes it easy to get the border color
272
+ /// @param {"base" | "neutral" | "subtle" | "inverse"} $type - What type of color
273
+ /// @param {"default" | "hover" | "pressed" | "disabled"} $state ["base"] - The state
274
+ @function get-border-color($type, $state) {
275
+ @return map.get(get-merged($border-colors-defaults, $border-colors, $type), $state);
276
+ }
277
+
278
+ /// Makes it easy to get the background color
279
+ /// @param {"base" | "neutral" | "subtle" | "inverse"} $type - What type of color
280
+ /// @param {"default" | "hover" | "pressed" | "disabled"} $state ["base"] - The state
281
+ @function get-background-color($type, $state) {
282
+ @return map.get(get-merged($background-colors-defaults, $background-colors, $type), $state);
283
+ }
284
+
285
+ /// Makes it easy to get font weight
286
+ /// @param {300 | 400 | 500 | 600} $type - What type of font weight to get (light, regular, medium or bold)
287
+ @function get-font-weight($type) {
288
+ @return get-merged($font-weights-defaults, $font-weights, $type);
289
+ }
290
+
291
+ /// Makes it easy to get a gap value from the $gaps map
292
+ /// @param {String} $name - The name of the property to get
293
+ @function get-gap($name) {
294
+ @return get-merged($gaps-defaults, $gaps, $name);
61
295
  }
@@ -3,19 +3,19 @@ type OpenModal = () => void;
3
3
  interface UseSearchModalReturn {
4
4
  open: OpenModal;
5
5
  }
6
- interface UseDepictSearchFieldReturn {
6
+ interface UseSearchFieldReturn {
7
7
  /**
8
8
  * A React component that renders the search field.
9
9
  */
10
- DepictSearchField: () => ReactElement;
10
+ SearchField: () => ReactElement;
11
11
  }
12
- export const version = "0.0.74";
12
+ export const version = "0.0.76";
13
13
  export function DepictProvider(props: any): any;
14
- export function DepictSearchPage(): any;
15
- export function DepictCategoryPage(): any;
14
+ export function SearchPage(): any;
15
+ export function CategoryPage(): any;
16
16
  export function BreadCrumbs(): any;
17
17
  export function QuickLinks(): any;
18
- export function DepictAligner(): import("react").DetailedReactHTMLElement<{
18
+ export function ComponentAligner(): import("react").DetailedReactHTMLElement<{
19
19
  className: string;
20
20
  style: {
21
21
  height: string;
@@ -23,6 +23,6 @@ export function DepictAligner(): import("react").DetailedReactHTMLElement<{
23
23
  }, HTMLElement>;
24
24
  export function ImagePlaceHolder(): any;
25
25
  export function TextPlaceholder(): any;
26
- export function useDepictSearchField(): UseDepictSearchFieldReturn;
26
+ export function useSearchField(): UseSearchFieldReturn;
27
27
  export function openModal(): void;
28
- export function useDepictSearchModal(): UseSearchModalReturn;
28
+ export function useSearchModal(): UseSearchModalReturn;
@@ -6,31 +6,31 @@ function $parcel$export(e, n, v, s) {
6
6
  }
7
7
 
8
8
  $parcel$export(module.exports, "DepictProvider", () => $41e7e5d85b5e0d49$export$9fac37a9c21c2f3b);
9
- $parcel$export(module.exports, "DepictSearchPage", () => $41e7e5d85b5e0d49$export$210723f5a54a7028);
10
- $parcel$export(module.exports, "DepictCategoryPage", () => $41e7e5d85b5e0d49$export$d87c61cecb2edf0d);
9
+ $parcel$export(module.exports, "SearchPage", () => $41e7e5d85b5e0d49$export$a54ec244c8863715);
10
+ $parcel$export(module.exports, "CategoryPage", () => $41e7e5d85b5e0d49$export$f7d2f673fc2f091d);
11
11
  $parcel$export(module.exports, "BreadCrumbs", () => $41e7e5d85b5e0d49$export$5646050d516e06bc);
12
12
  $parcel$export(module.exports, "QuickLinks", () => $41e7e5d85b5e0d49$export$466cdc317043f6cb);
13
- $parcel$export(module.exports, "DepictAligner", () => $41e7e5d85b5e0d49$export$3f4580d6398c5027);
13
+ $parcel$export(module.exports, "ComponentAligner", () => $41e7e5d85b5e0d49$export$80e99ee6b29cadd2);
14
14
  $parcel$export(module.exports, "ImagePlaceHolder", () => $41e7e5d85b5e0d49$export$ecf150517ad2aa0);
15
15
  $parcel$export(module.exports, "TextPlaceholder", () => $41e7e5d85b5e0d49$export$89c6019e4baa40b1);
16
- $parcel$export(module.exports, "useDepictSearchField", () => $41e7e5d85b5e0d49$export$45080d603eda647c);
16
+ $parcel$export(module.exports, "useSearchField", () => $41e7e5d85b5e0d49$export$9bb30bbe003b82e0);
17
17
  $parcel$export(module.exports, "openModal", () => $41e7e5d85b5e0d49$export$a7f6cffb6b8ba11c);
18
- $parcel$export(module.exports, "useDepictSearchModal", () => $41e7e5d85b5e0d49$export$cc1e9aaf280afdcb);
18
+ $parcel$export(module.exports, "useSearchModal", () => $41e7e5d85b5e0d49$export$912994940e660d32);
19
19
  $parcel$export(module.exports, "version", () => $db7b67857900028b$export$83d89fbfd8236492);
20
20
 
21
21
 
22
- const $db7b67857900028b$export$83d89fbfd8236492 = "0.0.74";
22
+ const $db7b67857900028b$export$83d89fbfd8236492 = "0.0.76";
23
23
 
24
24
 
25
25
  function $41e7e5d85b5e0d49$export$9fac37a9c21c2f3b(props) {
26
26
  return props.children;
27
27
  }
28
- function $41e7e5d85b5e0d49$export$210723f5a54a7028() {
28
+ function $41e7e5d85b5e0d49$export$a54ec244c8863715() {
29
29
  return (0, $5efvh$reactjsxruntime.jsx)("div", {
30
30
  children: []
31
31
  });
32
32
  }
33
- function $41e7e5d85b5e0d49$export$d87c61cecb2edf0d() {
33
+ function $41e7e5d85b5e0d49$export$f7d2f673fc2f091d() {
34
34
  return (0, $5efvh$reactjsxruntime.jsx)("div", {
35
35
  children: []
36
36
  });
@@ -45,7 +45,7 @@ function $41e7e5d85b5e0d49$export$466cdc317043f6cb() {
45
45
  children: []
46
46
  });
47
47
  }
48
- function $41e7e5d85b5e0d49$export$3f4580d6398c5027() {
48
+ function $41e7e5d85b5e0d49$export$80e99ee6b29cadd2() {
49
49
  return (0, $5efvh$react.createElement)("div", {
50
50
  className: "depict aligner",
51
51
  style: {
@@ -63,15 +63,15 @@ function $41e7e5d85b5e0d49$export$89c6019e4baa40b1() {
63
63
  children: []
64
64
  });
65
65
  }
66
- function $41e7e5d85b5e0d49$export$45080d603eda647c() {
66
+ function $41e7e5d85b5e0d49$export$9bb30bbe003b82e0() {
67
67
  return {
68
- DepictSearchField: ()=>(0, $5efvh$reactjsxruntime.jsx)("div", {
68
+ SearchField: ()=>(0, $5efvh$reactjsxruntime.jsx)("div", {
69
69
  children: []
70
70
  })
71
71
  };
72
72
  }
73
73
  function $41e7e5d85b5e0d49$export$a7f6cffb6b8ba11c() {}
74
- function $41e7e5d85b5e0d49$export$cc1e9aaf280afdcb() {
74
+ function $41e7e5d85b5e0d49$export$912994940e660d32() {
75
75
  return {
76
76
  open: ()=>{}
77
77
  };