@uniformdev/mesh-sdk-react 14.2.1-alpha.34 → 16.0.1-alpha.128
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 +245 -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
|
-
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>;
|
|
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>;
|
|
94
50
|
|
|
95
|
-
interface
|
|
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;
|
|
60
|
+
|
|
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,11 @@ 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;
|
|
142
110
|
};
|
|
143
|
-
interface
|
|
111
|
+
interface EntrySearchResult {
|
|
144
112
|
id: string;
|
|
145
113
|
title: string | JSX.Element;
|
|
146
114
|
createdDate?: TDate;
|
|
@@ -148,7 +116,7 @@ interface CmsEntrySearchResult {
|
|
|
148
116
|
metadata?: Record<string, string | JSX.Element>;
|
|
149
117
|
popoverData?: Record<string, string | JSX.Element>;
|
|
150
118
|
}
|
|
151
|
-
interface
|
|
119
|
+
interface EntrySearchContentType {
|
|
152
120
|
id: string;
|
|
153
121
|
name: string;
|
|
154
122
|
}
|
|
@@ -156,60 +124,221 @@ interface NoResultsProps {
|
|
|
156
124
|
searchText: string | undefined;
|
|
157
125
|
selectedContentType: string | undefined;
|
|
158
126
|
}
|
|
159
|
-
declare const
|
|
127
|
+
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
128
|
|
|
161
|
-
|
|
162
|
-
|
|
129
|
+
declare const searchRowContainer: _emotion_react.SerializedStyles;
|
|
130
|
+
declare const searchRowContainerWithPopover: _emotion_react.SerializedStyles;
|
|
131
|
+
declare const searchRowContainerActive: _emotion_react.SerializedStyles;
|
|
132
|
+
declare const searchRowTextSmall: _emotion_react.SerializedStyles;
|
|
133
|
+
declare const searchRowText: _emotion_react.SerializedStyles;
|
|
134
|
+
declare const searchRowPopover: _emotion_react.SerializedStyles;
|
|
135
|
+
declare const searchRowBtn: _emotion_react.SerializedStyles;
|
|
136
|
+
|
|
137
|
+
declare const selectedItemContainer: _emotion_react.SerializedStyles;
|
|
138
|
+
declare const selectedItemInner: _emotion_react.SerializedStyles;
|
|
139
|
+
declare const selectedItemDetails: _emotion_react.SerializedStyles;
|
|
140
|
+
declare const selectedItemCopy: _emotion_react.SerializedStyles;
|
|
141
|
+
declare const selectedItemTitle: _emotion_react.SerializedStyles;
|
|
142
|
+
declare const selectedItemIcon: _emotion_react.SerializedStyles;
|
|
143
|
+
declare const selectedItemCloseIcon: _emotion_react.SerializedStyles;
|
|
144
|
+
declare const selectItemPopover: _emotion_react.SerializedStyles;
|
|
145
|
+
declare const selectItemSmallText: _emotion_react.SerializedStyles;
|
|
146
|
+
declare const selectItemPopoverLabel: _emotion_react.SerializedStyles;
|
|
147
|
+
declare const selectItemLinkContainer: _emotion_react.SerializedStyles;
|
|
148
|
+
declare const selectItemLinkBtn: _emotion_react.SerializedStyles;
|
|
149
|
+
|
|
150
|
+
declare const entrySearchWrapper: _emotion_react.SerializedStyles;
|
|
151
|
+
declare const entrySearchBtn: _emotion_react.SerializedStyles;
|
|
152
|
+
declare const entrySearchLoadMoreBtn: _emotion_react.SerializedStyles;
|
|
153
|
+
declare const entrySearchConfig: _emotion_react.SerializedStyles;
|
|
154
|
+
declare const entrySearchConfigHidden: _emotion_react.SerializedStyles;
|
|
155
|
+
declare const entrySearchResultList: _emotion_react.SerializedStyles;
|
|
156
|
+
declare const entrySearchSelectInput: _emotion_react.SerializedStyles;
|
|
157
|
+
declare const entrySearchSelectIcon: _emotion_react.SerializedStyles;
|
|
158
|
+
declare const entrySearchSelectImg: _emotion_react.SerializedStyles;
|
|
159
|
+
declare const entrySearchSelectOption: _emotion_react.SerializedStyles;
|
|
160
|
+
declare const draggableContainer: _emotion_react.SerializedStyles;
|
|
161
|
+
declare const draggableIconWrapper: _emotion_react.SerializedStyles;
|
|
162
|
+
declare const draggableIcon: _emotion_react.SerializedStyles;
|
|
163
|
+
declare const draggableIconOffset: _emotion_react.SerializedStyles;
|
|
164
|
+
declare const badgeIcon: _emotion_react.SerializedStyles;
|
|
165
|
+
|
|
166
|
+
declare type GetProductsOptions = {
|
|
167
|
+
keyword?: string;
|
|
168
|
+
count?: number;
|
|
169
|
+
categories?: string[];
|
|
170
|
+
brand?: string;
|
|
171
|
+
sort?: string;
|
|
172
|
+
sortOrder?: string;
|
|
173
|
+
ids?: string[];
|
|
174
|
+
offset?: number;
|
|
175
|
+
};
|
|
176
|
+
declare type ProductSearchResult = EntrySearchResult & {
|
|
177
|
+
price?: number | string;
|
|
178
|
+
sku?: string;
|
|
179
|
+
thumbnailUrl?: string;
|
|
180
|
+
categories?: Array<{
|
|
181
|
+
id: string;
|
|
182
|
+
name: string;
|
|
183
|
+
}>;
|
|
184
|
+
url?: string;
|
|
185
|
+
name: string;
|
|
186
|
+
};
|
|
187
|
+
interface ProductSearchResults {
|
|
188
|
+
total: number;
|
|
189
|
+
products: ProductSearchResult[];
|
|
190
|
+
}
|
|
191
|
+
interface ProductCategory {
|
|
192
|
+
id: string;
|
|
193
|
+
name: string;
|
|
194
|
+
children?: ProductCategory[];
|
|
163
195
|
}
|
|
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
196
|
|
|
171
|
-
|
|
172
|
-
|
|
197
|
+
declare const ProductPreviewList: ({ products, }: {
|
|
198
|
+
products: ProductSearchResults['products'] | undefined;
|
|
199
|
+
}) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
200
|
+
|
|
201
|
+
interface ProductDynamicSelectorValue {
|
|
202
|
+
count: number;
|
|
203
|
+
categories?: string[];
|
|
204
|
+
brand?: string;
|
|
205
|
+
keyword?: string;
|
|
206
|
+
sort?: string;
|
|
207
|
+
sortOrder?: string;
|
|
173
208
|
}
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
209
|
+
interface ProductQueryProps<TValue extends ProductDynamicSelectorValue = ProductDynamicSelectorValue> {
|
|
210
|
+
value: TValue;
|
|
211
|
+
setValue: (value: TValue) => Promise<void>;
|
|
212
|
+
brands: Brand[] | undefined;
|
|
213
|
+
categories: ProductQueryCategory[] | undefined;
|
|
214
|
+
loading?: boolean;
|
|
215
|
+
categoriesLoading?: boolean;
|
|
216
|
+
brandsLoading?: boolean;
|
|
217
|
+
logoIcon?: string | React__default.ComponentType<{
|
|
218
|
+
className?: string;
|
|
219
|
+
}>;
|
|
220
|
+
onGetProducts: (options?: GetProductsOptions) => Promise<ProductSearchResults>;
|
|
221
|
+
sortOptions?: Array<{
|
|
222
|
+
name: string;
|
|
223
|
+
sortKey: string;
|
|
224
|
+
}>;
|
|
225
|
+
sortOrderOptions?: Array<{
|
|
226
|
+
name: string;
|
|
227
|
+
sortOrderKey: string;
|
|
228
|
+
}>;
|
|
229
|
+
categoryLabel?: string;
|
|
230
|
+
brandLabel?: string;
|
|
231
|
+
disableBrands?: boolean;
|
|
232
|
+
restrictToSingleCategory?: boolean;
|
|
233
|
+
}
|
|
234
|
+
interface ProductQueryCategory {
|
|
235
|
+
id: string;
|
|
236
|
+
name: string;
|
|
237
|
+
children?: ProductQueryCategory[];
|
|
238
|
+
}
|
|
239
|
+
interface Brand {
|
|
240
|
+
id: string;
|
|
241
|
+
name: string;
|
|
242
|
+
}
|
|
243
|
+
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;
|
|
244
|
+
interface ProductQueryContextValue {
|
|
245
|
+
categories: ProductQueryProps['categories'];
|
|
246
|
+
logoIcon: ProductQueryProps['logoIcon'];
|
|
247
|
+
}
|
|
248
|
+
declare const ProductQueryContext: React__default.Context<ProductQueryContextValue | undefined>;
|
|
249
|
+
declare const useProductQueryContext: () => ProductQueryContextValue;
|
|
180
250
|
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
251
|
+
declare type ProductSearchProps<TResult extends ProductSearchResult = ProductSearchResult> = Pick<EntrySearchProps<TResult>, 'multiSelect' | 'multiSelectId' | 'logoIcon' | 'rowComponent' | 'selectedItemComponent' | 'helpComponent' | 'noResultsComponent' | 'onSort' | 'typeSelectorAllTypesOptionText' | 'typeSelectorLabel'> & {
|
|
252
|
+
selectedProducts: TResult[] | undefined;
|
|
253
|
+
setSelectedProducts: (products: TResult[] | undefined) => Promise<void>;
|
|
254
|
+
onGetCategories: () => Promise<ProductCategory[]>;
|
|
255
|
+
onSearchProducts: (args: {
|
|
256
|
+
text: string;
|
|
257
|
+
options?: GetProductOptions;
|
|
258
|
+
}) => Promise<{
|
|
259
|
+
total: number;
|
|
260
|
+
products: TResult[];
|
|
261
|
+
}>;
|
|
262
|
+
errorComponent?: React__default.ComponentType<{
|
|
263
|
+
categoriesError?: Error;
|
|
264
|
+
searchError?: Error;
|
|
265
|
+
}>;
|
|
266
|
+
};
|
|
267
|
+
interface GetProductOptions {
|
|
268
|
+
limit?: number;
|
|
269
|
+
offset?: number;
|
|
270
|
+
categoryId?: string;
|
|
184
271
|
}
|
|
185
|
-
declare
|
|
186
|
-
interface
|
|
187
|
-
|
|
188
|
-
|
|
272
|
+
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;
|
|
273
|
+
interface ProductSearchContextValue {
|
|
274
|
+
logoIcon: ProductSearchProps['logoIcon'];
|
|
275
|
+
categories: ProductCategory[] | undefined;
|
|
189
276
|
}
|
|
190
|
-
declare const
|
|
277
|
+
declare const ProductSearchContext: React__default.Context<ProductSearchContextValue | undefined>;
|
|
278
|
+
declare const useProductSearchContext: () => ProductSearchContextValue;
|
|
279
|
+
|
|
280
|
+
declare const productSearchRowContainer: _emotion_react.SerializedStyles;
|
|
281
|
+
declare const productSearchRowContent: _emotion_react.SerializedStyles;
|
|
282
|
+
declare const productSearchRowContentActive: _emotion_react.SerializedStyles;
|
|
283
|
+
declare const productSearchRowTitle: _emotion_react.SerializedStyles;
|
|
284
|
+
declare const productSearchRowCategory: _emotion_react.SerializedStyles;
|
|
285
|
+
declare const productSearchRowDetails: _emotion_react.SerializedStyles;
|
|
286
|
+
declare const productSearchRowActiveIcon: _emotion_react.SerializedStyles;
|
|
287
|
+
|
|
288
|
+
declare function ProductSearchRow({ result, isSelected, triggerSelection, }: EntrySearchRowProps<ProductSearchResult>): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
289
|
+
|
|
290
|
+
declare const productSelectedItemContainer: _emotion_react.SerializedStyles;
|
|
291
|
+
declare const productSelectedItemDetails: _emotion_react.SerializedStyles;
|
|
292
|
+
declare const productSelectedItemContent: _emotion_react.SerializedStyles;
|
|
293
|
+
declare const productSelectedItemImage: _emotion_react.SerializedStyles;
|
|
294
|
+
|
|
295
|
+
declare function ProductSelectedItem({ selectedItem, onDeselect, }: EntrySearchSelectedItemProps<ProductSearchResult>): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
296
|
+
|
|
297
|
+
declare const ResolvableLoadingValue: ({ value, text, loading, }: {
|
|
298
|
+
value: string;
|
|
299
|
+
text: string | undefined;
|
|
300
|
+
loading: boolean;
|
|
301
|
+
}) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
302
|
+
|
|
303
|
+
declare type SelectionFieldValue = {
|
|
304
|
+
id: string;
|
|
305
|
+
name: string;
|
|
306
|
+
};
|
|
307
|
+
declare const SelectionField: ({ id, label, loading, selectedValues, values, onAdd, onRemove, }: {
|
|
308
|
+
id: string;
|
|
309
|
+
label: string;
|
|
310
|
+
loading: boolean;
|
|
311
|
+
selectedValues: string[] | undefined;
|
|
312
|
+
values: SelectionFieldValue[];
|
|
313
|
+
onAdd: (id: string) => void;
|
|
314
|
+
onRemove: (id: string) => void;
|
|
315
|
+
}) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
316
|
+
|
|
317
|
+
declare const SvgCaution: (props: SVGProps<SVGSVGElement>) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
318
|
+
|
|
319
|
+
declare const SvgCheckmark: (props: SVGProps<SVGSVGElement>) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
191
320
|
|
|
192
|
-
declare const
|
|
321
|
+
declare const SvgChevronDown: (props: SVGProps<SVGSVGElement>) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
193
322
|
|
|
194
|
-
declare const
|
|
323
|
+
declare const SvgClose: (props: SVGProps<SVGSVGElement>) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
195
324
|
|
|
196
|
-
declare const
|
|
325
|
+
declare const SvgDanger: (props: SVGProps<SVGSVGElement>) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
197
326
|
|
|
198
|
-
declare const
|
|
327
|
+
declare const SvgExclamationPoint: (props: SVGProps<SVGSVGElement>) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
199
328
|
|
|
200
|
-
declare const
|
|
329
|
+
declare const SvgInfo: (props: SVGProps<SVGSVGElement>) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
201
330
|
|
|
202
|
-
declare const
|
|
331
|
+
declare const SvgLightbulb: (props: SVGProps<SVGSVGElement>) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
203
332
|
|
|
204
|
-
declare const
|
|
333
|
+
declare const SvgMagnifyingGlass: (props: SVGProps<SVGSVGElement>) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
205
334
|
|
|
206
|
-
declare const
|
|
335
|
+
declare const SvgMaximizeAlt: (props: SVGProps<SVGSVGElement>) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
207
336
|
|
|
208
|
-
declare const
|
|
337
|
+
declare const SvgMinus: (props: SVGProps<SVGSVGElement>) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
209
338
|
|
|
210
|
-
declare const
|
|
339
|
+
declare const SvgMoreVerticalAlt: (props: SVGProps<SVGSVGElement>) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
211
340
|
|
|
212
|
-
declare const
|
|
341
|
+
declare const SvgPlus: (props: SVGProps<SVGSVGElement>) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
213
342
|
|
|
214
343
|
declare namespace index {
|
|
215
344
|
export {
|
|
@@ -223,8 +352,10 @@ declare namespace index {
|
|
|
223
352
|
SvgLightbulb as Lightbulb,
|
|
224
353
|
SvgMagnifyingGlass as MagnifyingGlass,
|
|
225
354
|
SvgMaximizeAlt as MaximizeAlt,
|
|
355
|
+
SvgMinus as Minus,
|
|
226
356
|
SvgMoreVerticalAlt as MoreVerticalAlt,
|
|
357
|
+
SvgPlus as Plus,
|
|
227
358
|
};
|
|
228
359
|
}
|
|
229
360
|
|
|
230
|
-
export {
|
|
361
|
+
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 };
|