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