@depict-ai/react-ui 0.0.75 → 0.0.77
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 +42 -103
- package/dist/main.js +16 -16
- package/dist/module.js +12 -12
- package/dist/styles/components/PLP/Buttons.scss +2 -2
- package/dist/styles/components/PLP/MorphingSign.scss +1 -1
- package/dist/styles/components/PLP/PLPResults.scss +1 -0
- package/dist/styles/components/PLP/ScrollStatus.scss +1 -1
- package/dist/styles/components/PLP/SelectedFilters.scss +3 -3
- package/dist/styles/components/PLP/SlidableItems.scss +1 -1
- package/dist/styles/components/PLP/SortAndFilter/FloatingButtons.scss +1 -1
- package/dist/styles/components/PLP/SortAndFilter/SortAndFilter.scss +38 -26
- package/dist/styles/components/PLP/SortAndFilter/SortAndFilterModal.scss +2 -2
- package/dist/styles/components/PLP/Toast.scss +2 -2
- package/dist/styles/components/category/BreadCrumbs.scss +3 -3
- package/dist/styles/components/category/CategoryTitle.scss +1 -1
- package/dist/styles/components/category/QuickLinks.scss +2 -2
- package/dist/styles/components/search/Autocomplete.scss +7 -7
- package/dist/styles/components/search/CategorySuggestions.scss +1 -1
- package/dist/styles/components/search/PreviousSearches.scss +3 -3
- package/dist/styles/components/search/SearchField.scss +28 -9
- package/dist/styles/default.css +1 -1
- package/dist/styles/helpers/color_inference.scss +112 -0
- package/dist/styles/helpers/custom_input.scss +1 -1
- package/dist/styles/helpers/utils.scss +14 -0
- package/dist/styles/index.scss +13 -5
- package/dist/styles/package.json +31 -0
- package/dist/styles/variables.scss +113 -67
- package/dist-server/index.d.ts +8 -8
- package/dist-server/main.js +12 -12
- package/dist-server/module.js +8 -8
- package/package.json +4 -4
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
@use "sass:map";
|
|
2
2
|
@use "sass:color";
|
|
3
|
+
@use "./helpers/utils";
|
|
4
|
+
@use "helpers/color_inference";
|
|
3
5
|
|
|
4
|
-
|
|
5
|
-
///
|
|
6
|
-
///
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
/// Deep merged two maps and gives you the value of a key in the merged map.
|
|
7
|
+
/// @param {Map} $map - The base map, whose keys will be overridden by the keys in $map2.
|
|
8
|
+
/// @param {Map} $map2 - The map whose keys will override the keys in $map.
|
|
9
|
+
/// @param {String} $key - The key whose value you want to get from the merged map.
|
|
9
10
|
@function get-merged($map, $map2, $key) {
|
|
10
11
|
@return map.get(map.deep-merge($map, $map2), $key);
|
|
11
12
|
}
|
|
@@ -13,6 +14,10 @@
|
|
|
13
14
|
/// 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).
|
|
14
15
|
$page-background-color: white !default;
|
|
15
16
|
|
|
17
|
+
/// The colors to be used across the UI
|
|
18
|
+
/// 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.
|
|
19
|
+
/// That is because different things in the UI need to have different colours from the palette, depending on the palette.
|
|
20
|
+
/// See the maps below for text and icon colours, border colors and background colors.
|
|
16
21
|
$base-colors: () !default;
|
|
17
22
|
$base-colors-defaults: (
|
|
18
23
|
1000: #000,
|
|
@@ -24,7 +29,6 @@ $base-colors-defaults: (
|
|
|
24
29
|
200: #f3f3f5,
|
|
25
30
|
100: #fafafc,
|
|
26
31
|
0: #fff,
|
|
27
|
-
"deprecated-grey": #e7e8e7,
|
|
28
32
|
);
|
|
29
33
|
|
|
30
34
|
$text-icon-colors: () !default;
|
|
@@ -111,13 +115,19 @@ $background-colors-defaults: (
|
|
|
111
115
|
),
|
|
112
116
|
);
|
|
113
117
|
|
|
114
|
-
///
|
|
118
|
+
/// 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.
|
|
119
|
+
/// @prop {Number} font-weights.300 [300] - The font weight to use for "light" (300) text
|
|
120
|
+
/// @prop {Number} font-weights.400 [400] - The font weight to use for "regular" (400) text
|
|
121
|
+
/// @prop {Number} font-weights.500 [500] - The font weight to use for "medium" (500) text
|
|
122
|
+
/// @prop {Number} font-weights.600 [600] - The font weight to use for "semibold" (600) text
|
|
123
|
+
/// @prop {Number} font-weights.700 [700] - The font weight to use for "bold" (700) text
|
|
115
124
|
$font-weights: () !default;
|
|
116
125
|
$font-weights-defaults: (
|
|
117
126
|
300: 300,
|
|
118
127
|
400: 400,
|
|
119
128
|
500: 500,
|
|
120
129
|
600: 600,
|
|
130
|
+
700: 700,
|
|
121
131
|
);
|
|
122
132
|
|
|
123
133
|
/// The base z-index of the modal
|
|
@@ -125,9 +135,6 @@ $base-z-index: 5000 !default;
|
|
|
125
135
|
/// The z-index of the search page
|
|
126
136
|
$search-page-base-z-index: 1 !default;
|
|
127
137
|
/// 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
|
|
128
|
-
///
|
|
129
|
-
/// Does re-assigning this variable with, for example, `PLP.$border-radius: 0` or `variables.$border-radius: 0` give an error in your IDE?
|
|
130
|
-
/// 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
|
|
131
138
|
$border-radius: 4px !default;
|
|
132
139
|
|
|
133
140
|
// The color of the progress bar below the toast that shows when it will auto-close
|
|
@@ -139,86 +146,84 @@ $toast-progress-bar-color: map.get(
|
|
|
139
146
|
/// 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`
|
|
140
147
|
$uppercase-text-transform: uppercase !default;
|
|
141
148
|
|
|
149
|
+
/// Configuration for the filters on the right
|
|
150
|
+
/// @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.
|
|
151
|
+
/// @prop {Number with size unit} filters-configuration.input-row-height-goal [20px] - 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. If this is an odd number, the filled-in part of checked radio buttons look off-center in google chrome on macOS on 1440p screens.
|
|
142
152
|
$filters-configuration: () !default;
|
|
143
153
|
$filters-configuration-defaults: (
|
|
144
|
-
/// How much space should be between the input rows. Input row being a checkbox/radio button and its label.
|
|
145
154
|
"spacing-between-input-rows": 10px,
|
|
146
|
-
|
|
147
|
-
"input-row-height-goal": 21px
|
|
155
|
+
"input-row-height-goal": 20px,
|
|
148
156
|
);
|
|
149
157
|
|
|
158
|
+
/// Configuration for the search modal.
|
|
159
|
+
/// @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.
|
|
160
|
+
/// @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
|
|
150
161
|
$search-modal: () !default;
|
|
151
162
|
$search-modal-defaults: (
|
|
152
|
-
/// The max width of the modal
|
|
153
|
-
/// Also used for the max width of SearchField on the search page
|
|
154
163
|
"max-width": 800px,
|
|
155
|
-
|
|
156
|
-
"top-snapping": true
|
|
164
|
+
"top-snapping": true,
|
|
157
165
|
);
|
|
158
166
|
|
|
159
167
|
/// Configuration for the buttons that show up when scrolling up after not being too close to the top on mobile
|
|
168
|
+
/// @prop {Number with size unit} floating-buttons.bottom-distance [12px] - The distance from the bottom of the buttons to the bottom of the screen.
|
|
169
|
+
/// @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.
|
|
170
|
+
/// @prop {"left" | "right"} floating-buttons.position ["left"] - The side of the screen the buttons should be aligned to. Can be "left" or "right".
|
|
160
171
|
$floating-buttons: () !default;
|
|
161
172
|
$floating-buttons-defaults: (
|
|
162
|
-
/// The distance from the bottom of the buttons to the bottom of the screen.
|
|
163
173
|
"bottom-distance": 12px,
|
|
164
|
-
// The distance from the `$position`-side of the buttons to the `$position`-side of the screen.
|
|
165
174
|
"side-distance": 12px,
|
|
166
|
-
|
|
167
|
-
"position": "left"
|
|
175
|
+
"position": "left",
|
|
168
176
|
);
|
|
169
177
|
|
|
170
|
-
///
|
|
178
|
+
/// Configuration for the search field, that is inside the search modal or on the search page.
|
|
179
|
+
/// @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
|
|
180
|
+
/// @prop {Number with size unit} search-field.border-radius [variables.$border-radius * 2.5] - Border radius of the outer edges of the whole SearchField
|
|
171
181
|
$search-field: () !default;
|
|
172
182
|
$search-field-defaults: (
|
|
173
|
-
/// The background color of the input field, clear button and back buton
|
|
174
183
|
"background": map.get(get-merged($background-colors-defaults, $background-colors, "base"), "default"),
|
|
175
|
-
|
|
176
|
-
"border-radius": calc(#{$border-radius} * 2.5)
|
|
184
|
+
"border-radius": calc(#{$border-radius} * 2.5),
|
|
177
185
|
);
|
|
178
186
|
|
|
179
187
|
/// 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.
|
|
188
|
+
/// @prop {Number with size unit} gaps.between-instant-results [5px] - The gap between the individual instant results in the modal
|
|
189
|
+
/// @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.
|
|
190
|
+
/// @prop {Number with size unit} gaps.autocomplete.between-category-and-other [20px] - The vertical gap between the category and query suggestion sections
|
|
191
|
+
/// @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
|
|
192
|
+
/// @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.
|
|
193
|
+
/// @prop {Number with size unit} gaps.listing-page.spacing-to-filters [12px] - The spacing between the filters and content.
|
|
194
|
+
/// @prop {Number with size unit} gaps.listing-page.desktop-item-gap [20px] - The vertical gap between the different items on desktop.
|
|
195
|
+
/// @prop {Number with size unit} gaps.listing-page.mobile-item-gap [16px] - The vertical gap between the different items on mobile.
|
|
196
|
+
/// @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.
|
|
197
|
+
/// @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.
|
|
198
|
+
/// @prop {Boolean} gaps.listing-page.search.spacing-above-search-field [true] - Whether to add equal spacing above the search field as below.
|
|
199
|
+
/// @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.
|
|
180
200
|
$gaps: () !default;
|
|
181
201
|
$gaps-defaults: (
|
|
182
|
-
/// The gap between the individual instant results in the modal
|
|
183
202
|
"between-instant-results": 5px,
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
203
|
+
"autocomplete": (
|
|
204
|
+
"between-items-in-row-mode": 5px,
|
|
205
|
+
"between-category-and-other": 20px,
|
|
206
|
+
"between-compact-suggestions": 5px,
|
|
207
|
+
),
|
|
208
|
+
"listing-page": (
|
|
209
|
+
"spacing-to-filters": 12px,
|
|
210
|
+
"desktop-item-gap": 20px,
|
|
211
|
+
"mobile-item-gap": 16px,
|
|
212
|
+
"above-and-below-selected-filters": (
|
|
213
|
+
"mobile": 10px,
|
|
214
|
+
"desktop": 0,
|
|
193
215
|
),
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
"spacing-to-filters": 12px,
|
|
200
|
-
/// The vertical gap between the different items on desktop.
|
|
201
|
-
"desktop-item-gap": 20px,
|
|
202
|
-
/// The vertical gap between the different items on mobile.
|
|
203
|
-
"mobile-item-gap": 16px,
|
|
204
|
-
/// Spacing above and below selected filters
|
|
205
|
-
"above-and-below-selected-filters":
|
|
206
|
-
(
|
|
207
|
-
"mobile": 10px,
|
|
208
|
-
"desktop": 0,
|
|
209
|
-
),
|
|
210
|
-
/// Values specific to the search page
|
|
211
|
-
"search":
|
|
212
|
-
(
|
|
213
|
-
/// Whether to add equal spacing above the search field as below.
|
|
214
|
-
"spacing-above-search-field": true,
|
|
215
|
-
/// The factor to multiply the gaps with to get the spacing above the recommendations.
|
|
216
|
-
"gap-to-recs-factor": 3
|
|
217
|
-
)
|
|
218
|
-
)
|
|
216
|
+
"search": (
|
|
217
|
+
"spacing-above-search-field": true,
|
|
218
|
+
"gap-to-recs-factor": 3,
|
|
219
|
+
),
|
|
220
|
+
),
|
|
219
221
|
);
|
|
220
222
|
|
|
221
|
-
///
|
|
223
|
+
/// Styling overrides for the InstantCard component - the component which shows 4 search results in the SearchModal.
|
|
224
|
+
/// @prop {Color} instant-card.sales-price-color [#ff2e3e] - The color of the sales price
|
|
225
|
+
/// @prop {Boolean} instant-card.show-price [true] - Whether to show the price
|
|
226
|
+
/// @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)
|
|
222
227
|
$instant-card: () !default;
|
|
223
228
|
$instant-card-defaults: (
|
|
224
229
|
"sales-price-color": #ff2e3e,
|
|
@@ -226,33 +231,72 @@ $instant-card-defaults: (
|
|
|
226
231
|
"show-tagline": true,
|
|
227
232
|
);
|
|
228
233
|
|
|
229
|
-
/// See documentation of Autocomplete mixin for explanation of
|
|
230
|
-
///
|
|
234
|
+
/// See [documentation of Autocomplete mixin](https://scss-docs.depict.ai/#mixin-Autocomplete) for explanation of this map.
|
|
235
|
+
/// It allows customizing the highlighting in the query suggestions
|
|
231
236
|
$autocomplete-entries-without-highlight: () !default;
|
|
237
|
+
/// See [documentation of Autocomplete mixin](https://scss-docs.depict.ai/#mixin-Autocomplete) for explanation of this map.
|
|
238
|
+
/// It allows customizing the highlighting in the query suggestions
|
|
232
239
|
$autocomplete-entries-with-highlight: () !default;
|
|
233
240
|
|
|
241
|
+
/// Styling overrides for our primary buttons (`button.major`, styled by the PrimaryButton mixin)
|
|
242
|
+
/// @prop {Color} primary-button.background [variables.get-background-color("inverse", "default")] - The background color of the primary button
|
|
243
|
+
/// @prop {Color} primary-button.hover-background [variables.get-background-color("inverse", "hover")] - The hovered background color of the primary button
|
|
244
|
+
/// @prop {Color} primary-button.active-background [variables.get-background-color("inverse", "pressed")] - The active background color of the primary button
|
|
245
|
+
/// @prop {Color} primary-button.color [variables.get-text-icon-color("inverse", "default")] - The text color of the primary button
|
|
246
|
+
/// @prop {Border} primary-button.border [1px solid transparent] - The border of the primary button
|
|
247
|
+
/// @prop {Number with size unit} primary-button.border-radius [variables.$border-radius] - The border radius of the primary button
|
|
248
|
+
/// @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
|
|
249
|
+
/// @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
|
|
250
|
+
/// @prop {Filter} primary-button.focus-visible-filter [drop-shadow(2px 2px 4px rgba(65, 143, 195, 0.8))
|
|
251
|
+
/// drop-shadow(-2px -2px 4px rgba(65, 143, 195, 0.8))] - The filter to apply to the primary button when focused with keyboard navigation.
|
|
234
252
|
$primary-button: () !default;
|
|
253
|
+
/// Styling overrides for our secondary buttons (`button.minor`, styled by the SecondaryButton mixin)
|
|
254
|
+
/// @prop {Color} secondary-button.background [variables.get-background-color("base", "default")] - The background color of the secondary button
|
|
255
|
+
/// @prop {Color} secondary-button.hover-background [variables.get-background-color("base", "hover")] - The hovered background color of the secondary button
|
|
256
|
+
/// @prop {Color} secondary-button.active-background [variables.get-background-color("base", "pressed")] - The active background color of the secondary button
|
|
257
|
+
/// @prop {Color} secondary-button.color [variables.get-text-icon-color("base", "default")] - The text color of the secondary button
|
|
258
|
+
/// @prop {Border} secondary-button.border [variables.get-border("base", "default") 1px solid] - The border of the secondary button
|
|
259
|
+
/// @prop {Number with size unit} secondary-button.border-radius [variables.$border-radius] - The border radius of the secondary button
|
|
260
|
+
/// @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
|
|
261
|
+
/// @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
|
|
262
|
+
/// @prop {Filter} secondary-button.focus-visible-filter [drop-shadow(-2px -2px 4px rgba(65, 143, 195, 0.8))
|
|
263
|
+
/// drop-shadow(2px 2px 4px rgba(65, 143, 195, 0.8))] - The filter to apply to the secondary button when focused with keyboard navigation.
|
|
235
264
|
$secondary-button: () !default;
|
|
236
265
|
|
|
237
266
|
/// Makes it easy to get the text color
|
|
238
267
|
/// @param {"base" | "neutral" | "subtle" | "inverse"} $type - What type of color
|
|
239
268
|
/// @param {"default" | "hover" | "pressed" | "disabled"} $state ["base"] - The state
|
|
240
|
-
@function get-text-color($type, $state) {
|
|
241
|
-
@return
|
|
269
|
+
@function get-text-icon-color($type, $state) {
|
|
270
|
+
@return color_inference.get-possible-inferred-or-merged-something(
|
|
271
|
+
$text-icon-colors-defaults,
|
|
272
|
+
$text-icon-colors,
|
|
273
|
+
$type,
|
|
274
|
+
$state
|
|
275
|
+
);
|
|
242
276
|
}
|
|
243
277
|
|
|
244
278
|
/// Makes it easy to get the border color
|
|
245
279
|
/// @param {"base" | "neutral" | "subtle" | "inverse"} $type - What type of color
|
|
246
280
|
/// @param {"default" | "hover" | "pressed" | "disabled"} $state ["base"] - The state
|
|
247
281
|
@function get-border-color($type, $state) {
|
|
248
|
-
@return
|
|
282
|
+
@return color_inference.get-possible-inferred-or-merged-something(
|
|
283
|
+
$border-colors-defaults,
|
|
284
|
+
$border-colors,
|
|
285
|
+
$type,
|
|
286
|
+
$state
|
|
287
|
+
);
|
|
249
288
|
}
|
|
250
289
|
|
|
251
290
|
/// Makes it easy to get the background color
|
|
252
291
|
/// @param {"base" | "neutral" | "subtle" | "inverse"} $type - What type of color
|
|
253
292
|
/// @param {"default" | "hover" | "pressed" | "disabled"} $state ["base"] - The state
|
|
254
293
|
@function get-background-color($type, $state) {
|
|
255
|
-
@return
|
|
294
|
+
@return color_inference.get-possible-inferred-or-merged-something(
|
|
295
|
+
$background-colors-defaults,
|
|
296
|
+
$background-colors,
|
|
297
|
+
$type,
|
|
298
|
+
$state
|
|
299
|
+
);
|
|
256
300
|
}
|
|
257
301
|
|
|
258
302
|
/// Makes it easy to get font weight
|
|
@@ -261,6 +305,8 @@ $secondary-button: () !default;
|
|
|
261
305
|
@return get-merged($font-weights-defaults, $font-weights, $type);
|
|
262
306
|
}
|
|
263
307
|
|
|
308
|
+
/// Makes it easy to get a gap value from the $gaps map
|
|
309
|
+
/// @param {String} $name - The name of the property to get
|
|
264
310
|
@function get-gap($name) {
|
|
265
311
|
@return get-merged($gaps-defaults, $gaps, $name);
|
|
266
312
|
}
|
package/dist-server/index.d.ts
CHANGED
|
@@ -3,19 +3,19 @@ type OpenModal = () => void;
|
|
|
3
3
|
interface UseSearchModalReturn {
|
|
4
4
|
open: OpenModal;
|
|
5
5
|
}
|
|
6
|
-
interface
|
|
6
|
+
interface UseSearchFieldReturn {
|
|
7
7
|
/**
|
|
8
8
|
* A React component that renders the search field.
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
SearchField: () => ReactElement;
|
|
11
11
|
}
|
|
12
|
-
export const version = "0.0.
|
|
12
|
+
export const version = "0.0.77";
|
|
13
13
|
export function DepictProvider(props: any): any;
|
|
14
|
-
export function
|
|
15
|
-
export function
|
|
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
|
|
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
|
|
26
|
+
export function useSearchField(): UseSearchFieldReturn;
|
|
27
27
|
export function openModal(): void;
|
|
28
|
-
export function
|
|
28
|
+
export function useSearchModal(): UseSearchModalReturn;
|
package/dist-server/main.js
CHANGED
|
@@ -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, "
|
|
10
|
-
$parcel$export(module.exports, "
|
|
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, "
|
|
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, "
|
|
16
|
+
$parcel$export(module.exports, "useSearchField", () => $41e7e5d85b5e0d49$export$9bb30bbe003b82e0);
|
|
17
17
|
$parcel$export(module.exports, "openModal", () => $41e7e5d85b5e0d49$export$a7f6cffb6b8ba11c);
|
|
18
|
-
$parcel$export(module.exports, "
|
|
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.
|
|
22
|
+
const $db7b67857900028b$export$83d89fbfd8236492 = "0.0.77";
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
function $41e7e5d85b5e0d49$export$9fac37a9c21c2f3b(props) {
|
|
26
26
|
return props.children;
|
|
27
27
|
}
|
|
28
|
-
function $41e7e5d85b5e0d49$export$
|
|
28
|
+
function $41e7e5d85b5e0d49$export$a54ec244c8863715() {
|
|
29
29
|
return (0, $5efvh$reactjsxruntime.jsx)("div", {
|
|
30
30
|
children: []
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
|
-
function $41e7e5d85b5e0d49$export$
|
|
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$
|
|
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$
|
|
66
|
+
function $41e7e5d85b5e0d49$export$9bb30bbe003b82e0() {
|
|
67
67
|
return {
|
|
68
|
-
|
|
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$
|
|
74
|
+
function $41e7e5d85b5e0d49$export$912994940e660d32() {
|
|
75
75
|
return {
|
|
76
76
|
open: ()=>{}
|
|
77
77
|
};
|
package/dist-server/module.js
CHANGED
|
@@ -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.
|
|
6
|
+
const $c9c4d066f9a5b51b$export$83d89fbfd8236492 = "0.0.77";
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
function $2b1fdeb83610500f$export$9fac37a9c21c2f3b(props) {
|
|
10
10
|
return props.children;
|
|
11
11
|
}
|
|
12
|
-
function $2b1fdeb83610500f$export$
|
|
12
|
+
function $2b1fdeb83610500f$export$a54ec244c8863715() {
|
|
13
13
|
return (0, $1RlIW$jsx)("div", {
|
|
14
14
|
children: []
|
|
15
15
|
});
|
|
16
16
|
}
|
|
17
|
-
function $2b1fdeb83610500f$export$
|
|
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$
|
|
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$
|
|
50
|
+
function $2b1fdeb83610500f$export$9bb30bbe003b82e0() {
|
|
51
51
|
return {
|
|
52
|
-
|
|
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$
|
|
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$
|
|
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};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/react-ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.77",
|
|
4
4
|
"packageManager": "yarn@3.2.2",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -90,8 +90,8 @@
|
|
|
90
90
|
"/locales"
|
|
91
91
|
],
|
|
92
92
|
"dependencies": {
|
|
93
|
-
"@depict-ai/ui": "^0.0.
|
|
94
|
-
"@depict-ai/utilishared": "^0.0.
|
|
93
|
+
"@depict-ai/ui": "^0.0.56",
|
|
94
|
+
"@depict-ai/utilishared": "^0.0.53",
|
|
95
95
|
"solid-js": "^1.6.2"
|
|
96
96
|
},
|
|
97
97
|
"peerDependencies": {
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"@babel/preset-typescript": "latest",
|
|
105
105
|
"@babel/runtime": "latest",
|
|
106
106
|
"@babel/runtime-corejs3": "latest",
|
|
107
|
-
"@depict-ai/plp-styling": "^0.0.
|
|
107
|
+
"@depict-ai/plp-styling": "^0.0.17",
|
|
108
108
|
"@jest/globals": "^29.3.1",
|
|
109
109
|
"@parcel/babel-preset-env": "latest",
|
|
110
110
|
"@parcel/resolver-default": "^2.8.0",
|