@uniformdev/mesh-sdk-react 15.0.0 → 16.0.1-alpha.143
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/LICENSE.txt +2 -0
- package/dist/index.d.ts +251 -114
- package/dist/index.esm.js +521 -1
- package/dist/index.js +521 -1
- package/dist/index.mjs +521 -1
- package/package.json +22 -18
- package/dist/tailwind/plugin.d.ts +0 -3
- package/dist/tailwind/plugin.js +0 -6
- package/dist/tailwind/plugin.mjs +0 -6
package/LICENSE.txt
ADDED
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import * as _uniformdev_mesh_sdk from '@uniformdev/mesh-sdk';
|
|
2
2
|
import { UniformMeshSDK, MeshLocation } from '@uniformdev/mesh-sdk';
|
|
3
3
|
export * from '@uniformdev/mesh-sdk';
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import React__default, { SVGProps } from 'react';
|
|
6
|
+
import * as _emotion_react_types_jsx_namespace from '@emotion/react/types/jsx-namespace';
|
|
7
7
|
import { TDate } from 'timeago.js';
|
|
8
|
+
import * as _emotion_react from '@emotion/react';
|
|
9
|
+
export { Button, ButtonProps, Callout, CalloutProps, Heading, HeadingProps, Input, InputProps, InputSelect, InputToggle, InputToggleProps, InputKeywordSearch as KeywordSearchInput, Label, LabelProps, LoadingIndicator, LoadingOverlay, Menu, MenuItem, MenuItemProps, MenuProps, ScrollableList, ScrollableListItem, ScrollableListItemProps, ScrollableListProps, Switch, SwitchProps, Textarea, TextareaProps, Theme, ThemeProps } from '@uniformdev/design-system';
|
|
8
10
|
|
|
9
11
|
/**
|
|
10
12
|
* Provides convenient access to the current Uniform Mesh location via React hook.
|
|
@@ -12,8 +14,9 @@ import { TDate } from 'timeago.js';
|
|
|
12
14
|
*/
|
|
13
15
|
declare function useUniformMeshLocation<TLocationMethodsValue = unknown, TLocationMethodsMetadata = unknown, TLocationSetValue = TLocationMethodsValue>(): {
|
|
14
16
|
value: TLocationMethodsValue;
|
|
15
|
-
setValue: (value: TLocationSetValue) => Promise<void>;
|
|
17
|
+
setValue: (value: TLocationSetValue, options?: _uniformdev_mesh_sdk.SetValueOptions | undefined) => Promise<void>;
|
|
16
18
|
metadata: TLocationMethodsMetadata;
|
|
19
|
+
setValidationResult: (value: _uniformdev_mesh_sdk.ValidationResult) => Promise<void>;
|
|
17
20
|
};
|
|
18
21
|
|
|
19
22
|
interface UseUniformMeshSdkOptions {
|
|
@@ -35,102 +38,65 @@ declare const useInitializeUniformMeshSdk: ({ autoResizingDisabled }?: UseUnifor
|
|
|
35
38
|
*/
|
|
36
39
|
declare function useUniformMeshSdk(): _uniformdev_mesh_sdk.UniformMeshSDK;
|
|
37
40
|
|
|
38
|
-
interface
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
declare
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
disabled?: boolean;
|
|
58
|
-
placeholder?: string;
|
|
59
|
-
inputFieldName?: string;
|
|
60
|
-
disabledFieldSubmission?: boolean;
|
|
61
|
-
}
|
|
62
|
-
declare function KeywordSearchInput({ onSearchTextChanged, disabled, placeholder, inputFieldName, disabledFieldSubmission, }: KeywordSearchInputProps): React.ReactElement;
|
|
63
|
-
|
|
64
|
-
declare const LoadingIndicator: () => JSX.Element;
|
|
65
|
-
|
|
66
|
-
interface MenuProps extends MenuHTMLProps {
|
|
67
|
-
menuTrigger: React.ReactElement & React.RefAttributes<any>;
|
|
68
|
-
menuLabel: string;
|
|
69
|
-
menuItemsContainerCssClasses?: string;
|
|
70
|
-
placement?: MenuProps$1['placement'];
|
|
71
|
-
}
|
|
72
|
-
declare const MenuContext: React.Context<MenuStateReturn>;
|
|
73
|
-
declare const useMenuContext: () => MenuStateReturn;
|
|
74
|
-
declare const Menu: React.FC<MenuProps>;
|
|
75
|
-
|
|
76
|
-
declare type MenuItemProps = MenuItemHTMLProps & {
|
|
77
|
-
focusable?: boolean;
|
|
78
|
-
children: ChildFunction | React.ReactNode;
|
|
79
|
-
hideMenuOnClick?: boolean;
|
|
80
|
-
icon?: React.ReactElement;
|
|
81
|
-
};
|
|
82
|
-
declare type ChildFunction = (menuItemProps: MenuItemHTMLProps) => React.ReactElement | null;
|
|
83
|
-
declare const MenuItem: React.FC<MenuItemProps>;
|
|
84
|
-
|
|
85
|
-
declare type InputProps = InputProps$1 & {
|
|
86
|
-
label?: string;
|
|
87
|
-
classNameContainer?: string;
|
|
88
|
-
classNameControl?: string;
|
|
89
|
-
classNameLabel?: string;
|
|
90
|
-
icon?: React.ReactElement;
|
|
91
|
-
capture?: boolean | 'user' | 'environment';
|
|
92
|
-
};
|
|
93
|
-
declare const Input: React.FC<InputProps>;
|
|
41
|
+
interface UniformMeshLocationContextValue<TLocationValue = unknown, TLocationMetadata = unknown, TLocationSetValue = TLocationValue> {
|
|
42
|
+
location: MeshLocation<TLocationValue, TLocationMetadata, TLocationSetValue>;
|
|
43
|
+
}
|
|
44
|
+
declare const UniformMeshLocationContext: React__default.Context<UniformMeshLocationContextValue<unknown, unknown, unknown> | undefined>;
|
|
45
|
+
declare const UniformMeshLocationContextProvider: React__default.FC<React__default.PropsWithChildren<unknown>>;
|
|
46
|
+
/**
|
|
47
|
+
* Provides access to the current UniformMeshLocationContext value.
|
|
48
|
+
*/
|
|
49
|
+
declare const useUniformMeshLocationContext: <TLocationValue, TLocationMetadata, TLocationSetValue = TLocationValue>() => UniformMeshLocationContextValue<TLocationValue, TLocationMetadata, TLocationSetValue>;
|
|
50
|
+
|
|
51
|
+
interface UniformMeshSdkContextValue {
|
|
52
|
+
sdk: UniformMeshSDK;
|
|
53
|
+
}
|
|
54
|
+
declare const UniformMeshSdkContext: React__default.Context<UniformMeshSdkContextValue | undefined>;
|
|
55
|
+
declare const UniformMeshSdkContextProvider: React__default.FC<React__default.PropsWithChildren<unknown>>;
|
|
56
|
+
/**
|
|
57
|
+
* Provides access to the current (initialized) Uniform Mesh SDK context value.
|
|
58
|
+
*/
|
|
59
|
+
declare const useUniformMeshSdkContext: () => UniformMeshSdkContextValue;
|
|
94
60
|
|
|
95
|
-
interface
|
|
61
|
+
interface EntrySearchSelectedItemProps<TResult extends EntrySearchResult = EntrySearchResult> {
|
|
96
62
|
selectedItem: TResult;
|
|
97
|
-
logoIcon: string |
|
|
63
|
+
logoIcon: string | React__default.ComponentType<{
|
|
98
64
|
className?: string;
|
|
99
65
|
}>;
|
|
100
66
|
onDeselect: (item: TResult) => void;
|
|
101
67
|
onEditClosed?: (item: TResult) => void;
|
|
102
68
|
}
|
|
103
|
-
declare const DefaultSelectedItem:
|
|
69
|
+
declare const DefaultSelectedItem: React__default.FC<EntrySearchSelectedItemProps>;
|
|
104
70
|
|
|
105
|
-
interface
|
|
71
|
+
interface EntrySearchRowProps<TResult extends EntrySearchResult = EntrySearchResult> {
|
|
106
72
|
result: TResult;
|
|
107
73
|
isSelected: boolean;
|
|
108
74
|
triggerSelection: () => void;
|
|
109
75
|
}
|
|
110
|
-
declare const DefaultSearchRow:
|
|
76
|
+
declare const DefaultSearchRow: React__default.FC<EntrySearchRowProps>;
|
|
111
77
|
|
|
112
|
-
declare type
|
|
78
|
+
declare type EntrySearchQueryOptions = {
|
|
113
79
|
count: number;
|
|
114
80
|
offset: number;
|
|
115
81
|
contentType?: string;
|
|
116
82
|
};
|
|
117
|
-
declare type
|
|
118
|
-
search: (text: string, options:
|
|
83
|
+
declare type EntrySearchProps<TResult extends EntrySearchResult = EntrySearchResult> = {
|
|
84
|
+
search: (text: string, options: EntrySearchQueryOptions) => void;
|
|
119
85
|
results: TResult[] | undefined;
|
|
120
86
|
totalResults?: number | undefined;
|
|
121
|
-
contentTypes?:
|
|
87
|
+
contentTypes?: EntrySearchContentType[];
|
|
122
88
|
selectedItems: TResult[] | undefined;
|
|
123
89
|
logoIcon: string | React.ComponentType<{
|
|
124
90
|
className?: string;
|
|
125
91
|
}>;
|
|
126
|
-
select: (
|
|
92
|
+
select: (items: TResult[], selectedContentType?: string) => void;
|
|
127
93
|
requireContentType?: boolean;
|
|
128
94
|
multiSelectId?: string;
|
|
129
95
|
multiSelect?: boolean;
|
|
130
|
-
rowComponent?: React.FC<
|
|
131
|
-
selectedItemComponent?: React.FC<
|
|
132
|
-
onAddNew?: (type:
|
|
133
|
-
onEditClosed?: (item:
|
|
96
|
+
rowComponent?: React.FC<EntrySearchRowProps<TResult>>;
|
|
97
|
+
selectedItemComponent?: React.FC<EntrySearchSelectedItemProps<TResult>>;
|
|
98
|
+
onAddNew?: (type: EntrySearchContentType) => void;
|
|
99
|
+
onEditClosed?: (item: EntrySearchResult) => void;
|
|
134
100
|
onCancel?: () => void;
|
|
135
101
|
resultsLoading?: boolean;
|
|
136
102
|
noResultsComponent?: React.FC<{
|
|
@@ -138,9 +104,15 @@ declare type CmsEntrySearchProps<TResult extends CmsEntrySearchResult = CmsEntry
|
|
|
138
104
|
selectedContentType?: string;
|
|
139
105
|
}>;
|
|
140
106
|
helpComponent?: JSX.Element;
|
|
141
|
-
onSort?: (
|
|
107
|
+
onSort?: (items: TResult[]) => void;
|
|
108
|
+
typeSelectorLabel?: string;
|
|
109
|
+
typeSelectorAllTypesOptionText?: string;
|
|
110
|
+
/** Specifies how long (in milliseconds) to wait before showing the loading indicator when `resultsLoading` is true.
|
|
111
|
+
* @default 1000
|
|
112
|
+
*/
|
|
113
|
+
loadingIndicatorDelay?: number;
|
|
142
114
|
};
|
|
143
|
-
interface
|
|
115
|
+
interface EntrySearchResult {
|
|
144
116
|
id: string;
|
|
145
117
|
title: string | JSX.Element;
|
|
146
118
|
createdDate?: TDate;
|
|
@@ -148,7 +120,7 @@ interface CmsEntrySearchResult {
|
|
|
148
120
|
metadata?: Record<string, string | JSX.Element>;
|
|
149
121
|
popoverData?: Record<string, string | JSX.Element>;
|
|
150
122
|
}
|
|
151
|
-
interface
|
|
123
|
+
interface EntrySearchContentType {
|
|
152
124
|
id: string;
|
|
153
125
|
name: string;
|
|
154
126
|
}
|
|
@@ -156,60 +128,223 @@ interface NoResultsProps {
|
|
|
156
128
|
searchText: string | undefined;
|
|
157
129
|
selectedContentType: string | undefined;
|
|
158
130
|
}
|
|
159
|
-
declare const
|
|
131
|
+
declare const EntrySearch: <TResult extends EntrySearchResult>({ search, results, contentTypes, selectedItems, logoIcon, select, multiSelect, multiSelectId, rowComponent, selectedItemComponent, totalResults, resultsLoading, requireContentType, onAddNew, onEditClosed, onCancel, noResultsComponent, helpComponent, onSort, typeSelectorLabel, typeSelectorAllTypesOptionText, loadingIndicatorDelay, }: EntrySearchProps<TResult>) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
160
132
|
|
|
161
|
-
|
|
162
|
-
|
|
133
|
+
declare const searchRowContainer: _emotion_react.SerializedStyles;
|
|
134
|
+
declare const searchRowContainerWithPopover: _emotion_react.SerializedStyles;
|
|
135
|
+
declare const searchRowContainerActive: _emotion_react.SerializedStyles;
|
|
136
|
+
declare const searchRowTextSmall: _emotion_react.SerializedStyles;
|
|
137
|
+
declare const searchRowText: _emotion_react.SerializedStyles;
|
|
138
|
+
declare const searchRowPopover: _emotion_react.SerializedStyles;
|
|
139
|
+
declare const searchRowBtn: _emotion_react.SerializedStyles;
|
|
140
|
+
|
|
141
|
+
declare const selectedItemContainer: _emotion_react.SerializedStyles;
|
|
142
|
+
declare const selectedItemInner: _emotion_react.SerializedStyles;
|
|
143
|
+
declare const selectedItemDetails: _emotion_react.SerializedStyles;
|
|
144
|
+
declare const selectedItemCopy: _emotion_react.SerializedStyles;
|
|
145
|
+
declare const selectedItemTitle: _emotion_react.SerializedStyles;
|
|
146
|
+
declare const selectedItemIcon: _emotion_react.SerializedStyles;
|
|
147
|
+
declare const selectedItemCloseIcon: _emotion_react.SerializedStyles;
|
|
148
|
+
declare const selectItemPopover: _emotion_react.SerializedStyles;
|
|
149
|
+
declare const selectItemSmallText: _emotion_react.SerializedStyles;
|
|
150
|
+
declare const selectItemPopoverLabel: _emotion_react.SerializedStyles;
|
|
151
|
+
declare const selectItemLinkContainer: _emotion_react.SerializedStyles;
|
|
152
|
+
declare const selectItemLinkBtn: _emotion_react.SerializedStyles;
|
|
153
|
+
|
|
154
|
+
declare const entrySearchWrapper: _emotion_react.SerializedStyles;
|
|
155
|
+
declare const entrySearchBtn: _emotion_react.SerializedStyles;
|
|
156
|
+
declare const entrySearchLoadMoreBtn: _emotion_react.SerializedStyles;
|
|
157
|
+
declare const entrySearchConfig: _emotion_react.SerializedStyles;
|
|
158
|
+
declare const entrySearchConfigHidden: _emotion_react.SerializedStyles;
|
|
159
|
+
declare const entrySearchResultList: _emotion_react.SerializedStyles;
|
|
160
|
+
declare const entrySearchSelectInput: _emotion_react.SerializedStyles;
|
|
161
|
+
declare const entrySearchSelectIcon: _emotion_react.SerializedStyles;
|
|
162
|
+
declare const entrySearchSelectImg: _emotion_react.SerializedStyles;
|
|
163
|
+
declare const entrySearchSelectOption: _emotion_react.SerializedStyles;
|
|
164
|
+
declare const draggableContainer: _emotion_react.SerializedStyles;
|
|
165
|
+
declare const draggableIconWrapper: _emotion_react.SerializedStyles;
|
|
166
|
+
declare const draggableIcon: _emotion_react.SerializedStyles;
|
|
167
|
+
declare const draggableIconOffset: _emotion_react.SerializedStyles;
|
|
168
|
+
declare const badgeIcon: _emotion_react.SerializedStyles;
|
|
169
|
+
|
|
170
|
+
declare type GetProductsOptions = {
|
|
171
|
+
keyword?: string;
|
|
172
|
+
count?: number;
|
|
173
|
+
categories?: string[];
|
|
174
|
+
brand?: string;
|
|
175
|
+
sort?: string;
|
|
176
|
+
sortOrder?: string;
|
|
177
|
+
ids?: string[];
|
|
178
|
+
offset?: number;
|
|
179
|
+
};
|
|
180
|
+
declare type ProductSearchResult = EntrySearchResult & {
|
|
181
|
+
price?: number | string;
|
|
182
|
+
sku?: string;
|
|
183
|
+
thumbnailUrl?: string;
|
|
184
|
+
categories?: Array<{
|
|
185
|
+
id: string;
|
|
186
|
+
name: string;
|
|
187
|
+
}>;
|
|
188
|
+
/** @deprecated Use `editLink` instead. */
|
|
189
|
+
url?: string;
|
|
190
|
+
/** @deprecated Use `title` instead. */
|
|
191
|
+
name?: string;
|
|
192
|
+
};
|
|
193
|
+
interface ProductSearchResults {
|
|
194
|
+
total: number;
|
|
195
|
+
products: ProductSearchResult[];
|
|
196
|
+
}
|
|
197
|
+
interface ProductCategory {
|
|
198
|
+
id: string;
|
|
199
|
+
name: string;
|
|
200
|
+
children?: ProductCategory[];
|
|
163
201
|
}
|
|
164
|
-
declare const UniformMeshLocationContext: React.Context<UniformMeshLocationContextValue<unknown, unknown, unknown> | undefined>;
|
|
165
|
-
declare const UniformMeshLocationContextProvider: React.FC;
|
|
166
|
-
/**
|
|
167
|
-
* Provides access to the current UniformMeshLocationContext value.
|
|
168
|
-
*/
|
|
169
|
-
declare const useUniformMeshLocationContext: <TLocationValue, TLocationMetadata, TLocationSetValue = TLocationValue>() => UniformMeshLocationContextValue<TLocationValue, TLocationMetadata, TLocationSetValue>;
|
|
170
202
|
|
|
171
|
-
|
|
172
|
-
|
|
203
|
+
declare const ProductPreviewList: ({ products, }: {
|
|
204
|
+
products: ProductSearchResults['products'] | undefined;
|
|
205
|
+
}) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
206
|
+
|
|
207
|
+
interface ProductDynamicSelectorValue {
|
|
208
|
+
count: number;
|
|
209
|
+
categories?: string[];
|
|
210
|
+
brand?: string;
|
|
211
|
+
keyword?: string;
|
|
212
|
+
sort?: string;
|
|
213
|
+
sortOrder?: string;
|
|
173
214
|
}
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
215
|
+
interface ProductQueryProps<TValue extends ProductDynamicSelectorValue = ProductDynamicSelectorValue> {
|
|
216
|
+
value: TValue | undefined;
|
|
217
|
+
setValue: (value: TValue) => Promise<void>;
|
|
218
|
+
brands: Brand[] | undefined;
|
|
219
|
+
categories: ProductQueryCategory[] | undefined;
|
|
220
|
+
loading?: boolean;
|
|
221
|
+
categoriesLoading?: boolean;
|
|
222
|
+
brandsLoading?: boolean;
|
|
223
|
+
logoIcon?: string | React__default.ComponentType<{
|
|
224
|
+
className?: string;
|
|
225
|
+
}>;
|
|
226
|
+
onGetProducts: (options?: GetProductsOptions) => Promise<ProductSearchResults>;
|
|
227
|
+
sortOptions?: Array<{
|
|
228
|
+
name: string;
|
|
229
|
+
sortKey: string;
|
|
230
|
+
}>;
|
|
231
|
+
sortOrderOptions?: Array<{
|
|
232
|
+
name: string;
|
|
233
|
+
sortOrderKey: string;
|
|
234
|
+
}>;
|
|
235
|
+
categoryLabel?: string;
|
|
236
|
+
brandLabel?: string;
|
|
237
|
+
disableBrands?: boolean;
|
|
238
|
+
restrictToSingleCategory?: boolean;
|
|
239
|
+
}
|
|
240
|
+
interface ProductQueryCategory {
|
|
241
|
+
id: string;
|
|
242
|
+
name: string;
|
|
243
|
+
children?: ProductQueryCategory[];
|
|
244
|
+
}
|
|
245
|
+
interface Brand {
|
|
246
|
+
id: string;
|
|
247
|
+
name: string;
|
|
248
|
+
}
|
|
249
|
+
declare const ProductQuery: ({ value, setValue, brands, categories, loading, categoriesLoading, brandsLoading, logoIcon, onGetProducts, sortOptions, sortOrderOptions, categoryLabel, brandLabel, disableBrands, restrictToSingleCategory, }: ProductQueryProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
250
|
+
interface ProductQueryContextValue {
|
|
251
|
+
categories: ProductQueryProps['categories'];
|
|
252
|
+
logoIcon: ProductQueryProps['logoIcon'];
|
|
253
|
+
}
|
|
254
|
+
declare const ProductQueryContext: React__default.Context<ProductQueryContextValue | undefined>;
|
|
255
|
+
declare const useProductQueryContext: () => ProductQueryContextValue;
|
|
180
256
|
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
257
|
+
declare type ProductSearchProps<TResult extends ProductSearchResult = ProductSearchResult> = Pick<EntrySearchProps<TResult>, 'multiSelect' | 'multiSelectId' | 'logoIcon' | 'rowComponent' | 'selectedItemComponent' | 'helpComponent' | 'noResultsComponent' | 'onSort' | 'typeSelectorAllTypesOptionText' | 'typeSelectorLabel'> & {
|
|
258
|
+
selectedProducts: TResult[] | undefined;
|
|
259
|
+
setSelectedProducts: (products: TResult[] | undefined) => Promise<void>;
|
|
260
|
+
onGetCategories: () => Promise<ProductCategory[]>;
|
|
261
|
+
onSearchProducts: (args: {
|
|
262
|
+
text: string;
|
|
263
|
+
options?: GetProductOptions;
|
|
264
|
+
}) => Promise<{
|
|
265
|
+
total: number;
|
|
266
|
+
products: TResult[];
|
|
267
|
+
}>;
|
|
268
|
+
errorComponent?: React__default.ComponentType<{
|
|
269
|
+
categoriesError?: Error;
|
|
270
|
+
searchError?: Error;
|
|
271
|
+
}>;
|
|
272
|
+
};
|
|
273
|
+
interface GetProductOptions {
|
|
274
|
+
limit?: number;
|
|
275
|
+
offset?: number;
|
|
276
|
+
categoryId?: string;
|
|
184
277
|
}
|
|
185
|
-
declare
|
|
186
|
-
interface
|
|
187
|
-
|
|
188
|
-
|
|
278
|
+
declare function ProductSearch({ selectedProducts, setSelectedProducts, onGetCategories, onSearchProducts, logoIcon, multiSelect, multiSelectId, selectedItemComponent, rowComponent, errorComponent, helpComponent, noResultsComponent, onSort, typeSelectorAllTypesOptionText, typeSelectorLabel, }: ProductSearchProps): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
279
|
+
interface ProductSearchContextValue {
|
|
280
|
+
logoIcon: ProductSearchProps['logoIcon'];
|
|
281
|
+
categories: ProductCategory[] | undefined;
|
|
189
282
|
}
|
|
190
|
-
declare const
|
|
283
|
+
declare const ProductSearchContext: React__default.Context<ProductSearchContextValue | undefined>;
|
|
284
|
+
declare const useProductSearchContext: () => ProductSearchContextValue;
|
|
285
|
+
|
|
286
|
+
declare const productSearchRowContainer: _emotion_react.SerializedStyles;
|
|
287
|
+
declare const productSearchRowContent: _emotion_react.SerializedStyles;
|
|
288
|
+
declare const productSearchRowContentActive: _emotion_react.SerializedStyles;
|
|
289
|
+
declare const productSearchRowTitle: _emotion_react.SerializedStyles;
|
|
290
|
+
declare const productSearchRowCategory: _emotion_react.SerializedStyles;
|
|
291
|
+
declare const productSearchRowDetails: _emotion_react.SerializedStyles;
|
|
292
|
+
declare const productSearchRowActiveIcon: _emotion_react.SerializedStyles;
|
|
293
|
+
|
|
294
|
+
declare function ProductSearchRow({ result, isSelected, triggerSelection, }: EntrySearchRowProps<ProductSearchResult>): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
295
|
+
|
|
296
|
+
declare const productSelectedItemContainer: _emotion_react.SerializedStyles;
|
|
297
|
+
declare const productSelectedItemDetails: _emotion_react.SerializedStyles;
|
|
298
|
+
declare const productSelectedItemContent: _emotion_react.SerializedStyles;
|
|
299
|
+
declare const productSelectedItemImage: _emotion_react.SerializedStyles;
|
|
300
|
+
|
|
301
|
+
declare function ProductSelectedItem({ selectedItem, onDeselect, }: EntrySearchSelectedItemProps<ProductSearchResult>): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
302
|
+
|
|
303
|
+
declare const ResolvableLoadingValue: ({ value, text, loading, }: {
|
|
304
|
+
value: string;
|
|
305
|
+
text: string | undefined;
|
|
306
|
+
loading: boolean;
|
|
307
|
+
}) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
308
|
+
|
|
309
|
+
declare type SelectionFieldValue = {
|
|
310
|
+
id: string;
|
|
311
|
+
name: string;
|
|
312
|
+
};
|
|
313
|
+
declare const SelectionField: ({ id, label, loading, selectedValues, values, onAdd, onRemove, }: {
|
|
314
|
+
id: string;
|
|
315
|
+
label: string;
|
|
316
|
+
loading: boolean;
|
|
317
|
+
selectedValues: string[] | undefined;
|
|
318
|
+
values: SelectionFieldValue[];
|
|
319
|
+
onAdd: (id: string) => void;
|
|
320
|
+
onRemove: (id: string) => void;
|
|
321
|
+
}) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
322
|
+
|
|
323
|
+
declare const SvgCaution: (props: SVGProps<SVGSVGElement>) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
324
|
+
|
|
325
|
+
declare const SvgCheckmark: (props: SVGProps<SVGSVGElement>) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
191
326
|
|
|
192
|
-
declare const
|
|
327
|
+
declare const SvgChevronDown: (props: SVGProps<SVGSVGElement>) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
193
328
|
|
|
194
|
-
declare const
|
|
329
|
+
declare const SvgClose: (props: SVGProps<SVGSVGElement>) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
195
330
|
|
|
196
|
-
declare const
|
|
331
|
+
declare const SvgDanger: (props: SVGProps<SVGSVGElement>) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
197
332
|
|
|
198
|
-
declare const
|
|
333
|
+
declare const SvgExclamationPoint: (props: SVGProps<SVGSVGElement>) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
199
334
|
|
|
200
|
-
declare const
|
|
335
|
+
declare const SvgInfo: (props: SVGProps<SVGSVGElement>) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
201
336
|
|
|
202
|
-
declare const
|
|
337
|
+
declare const SvgLightbulb: (props: SVGProps<SVGSVGElement>) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
203
338
|
|
|
204
|
-
declare const
|
|
339
|
+
declare const SvgMagnifyingGlass: (props: SVGProps<SVGSVGElement>) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
205
340
|
|
|
206
|
-
declare const
|
|
341
|
+
declare const SvgMaximizeAlt: (props: SVGProps<SVGSVGElement>) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
207
342
|
|
|
208
|
-
declare const
|
|
343
|
+
declare const SvgMinus: (props: SVGProps<SVGSVGElement>) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
209
344
|
|
|
210
|
-
declare const
|
|
345
|
+
declare const SvgMoreVerticalAlt: (props: SVGProps<SVGSVGElement>) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
211
346
|
|
|
212
|
-
declare const
|
|
347
|
+
declare const SvgPlus: (props: SVGProps<SVGSVGElement>) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
213
348
|
|
|
214
349
|
declare namespace index {
|
|
215
350
|
export {
|
|
@@ -223,8 +358,10 @@ declare namespace index {
|
|
|
223
358
|
SvgLightbulb as Lightbulb,
|
|
224
359
|
SvgMagnifyingGlass as MagnifyingGlass,
|
|
225
360
|
SvgMaximizeAlt as MaximizeAlt,
|
|
361
|
+
SvgMinus as Minus,
|
|
226
362
|
SvgMoreVerticalAlt as MoreVerticalAlt,
|
|
363
|
+
SvgPlus as Plus,
|
|
227
364
|
};
|
|
228
365
|
}
|
|
229
366
|
|
|
230
|
-
export {
|
|
367
|
+
export { Brand, DefaultSearchRow, DefaultSelectedItem, EntrySearch, EntrySearchContentType, EntrySearchProps, EntrySearchQueryOptions, EntrySearchResult, EntrySearchRowProps, EntrySearchSelectedItemProps, GetProductOptions, GetProductsOptions, index as Icons, NoResultsProps, ProductCategory, ProductDynamicSelectorValue, ProductPreviewList, ProductQuery, ProductQueryCategory, ProductQueryContext, ProductQueryContextValue, ProductQueryProps, ProductSearch, ProductSearchContext, ProductSearchContextValue, ProductSearchProps, ProductSearchResult, ProductSearchResults, ProductSearchRow, ProductSelectedItem, ResolvableLoadingValue, SelectionField, SelectionFieldValue, UniformMeshLocationContext, UniformMeshLocationContextProvider, UniformMeshLocationContextValue, UniformMeshSdkContext, UniformMeshSdkContextProvider, UniformMeshSdkContextValue, UseUniformMeshSdkOptions, badgeIcon, draggableContainer, draggableIcon, draggableIconOffset, draggableIconWrapper, entrySearchBtn, entrySearchConfig, entrySearchConfigHidden, entrySearchLoadMoreBtn, entrySearchResultList, entrySearchSelectIcon, entrySearchSelectImg, entrySearchSelectInput, entrySearchSelectOption, entrySearchWrapper, productSearchRowActiveIcon, productSearchRowCategory, productSearchRowContainer, productSearchRowContent, productSearchRowContentActive, productSearchRowDetails, productSearchRowTitle, productSelectedItemContainer, productSelectedItemContent, productSelectedItemDetails, productSelectedItemImage, searchRowBtn, searchRowContainer, searchRowContainerActive, searchRowContainerWithPopover, searchRowPopover, searchRowText, searchRowTextSmall, selectItemLinkBtn, selectItemLinkContainer, selectItemPopover, selectItemPopoverLabel, selectItemSmallText, selectedItemCloseIcon, selectedItemContainer, selectedItemCopy, selectedItemDetails, selectedItemIcon, selectedItemInner, selectedItemTitle, useInitializeUniformMeshSdk, useProductQueryContext, useProductSearchContext, useUniformMeshLocation, useUniformMeshLocationContext, useUniformMeshSdk, useUniformMeshSdkContext };
|