@commercelayer/app-elements 2.1.0 → 2.2.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/dist/InputDateComponent-D6t5sF38.js +5026 -0
- package/dist/dictionaries/customers.d.ts +1 -1
- package/dist/dictionaries/orders.d.ts +2 -2
- package/dist/dictionaries/promotions.d.ts +1 -1
- package/dist/dictionaries/returns.d.ts +2 -2
- package/dist/dictionaries/shipments.d.ts +2 -2
- package/dist/dictionaries/stockTransfers.d.ts +2 -2
- package/dist/helpers/attachments.d.ts +1 -1
- package/dist/helpers/route.d.ts +1 -1
- package/dist/helpers/tracking.d.ts +3 -3
- package/dist/hooks/useDelayShow.d.ts +1 -3
- package/dist/hooks/useOnBlurFromContainer.d.ts +0 -1
- package/dist/{main-D3aH50nl.js → main-Cu5M-_jw.js} +10080 -10156
- package/dist/main.js +25 -25
- package/dist/providers/CoreSdkProvider/CoreSdkProvider.d.ts +1 -1
- package/dist/providers/CoreSdkProvider/useCoreApi.d.ts +2 -2
- package/dist/providers/TokenProvider/TokenProvider.d.ts +7 -9
- package/dist/providers/TokenProvider/reducer.d.ts +2 -2
- package/dist/providers/TokenProvider/storage.d.ts +2 -2
- package/dist/providers/TokenProvider/url.d.ts +2 -7
- package/dist/providers/TokenProvider/validateToken.d.ts +1 -1
- package/dist/providers/createApp.d.ts +2 -2
- package/dist/style.css +1 -1
- package/dist/ui/atoms/A.d.ts +1 -1
- package/dist/ui/atoms/Alert.d.ts +0 -1
- package/dist/ui/atoms/AvatarLetter/AvatarLetter.d.ts +0 -1
- package/dist/ui/atoms/Badge/Badge.d.ts +2 -2
- package/dist/ui/atoms/ButtonImageSelect.d.ts +0 -1
- package/dist/ui/atoms/Card.d.ts +59 -61
- package/dist/ui/atoms/Container.d.ts +0 -1
- package/dist/ui/atoms/CopyToClipboard.d.ts +0 -1
- package/dist/ui/atoms/EmptyState.d.ts +1 -1
- package/dist/ui/atoms/Hint.d.ts +1 -1
- package/dist/ui/atoms/Hr.d.ts +0 -1
- package/dist/ui/atoms/Icon/Icon.d.ts +1 -1
- package/dist/ui/atoms/Icon/icons.d.ts +1 -0
- package/dist/ui/atoms/PageHeading/PageHeading.d.ts +10 -10
- package/dist/ui/atoms/PageHeading/PageHeadingToolbar.d.ts +5 -5
- package/dist/ui/atoms/Pagination.d.ts +0 -1
- package/dist/ui/atoms/Progress.d.ts +0 -1
- package/dist/ui/atoms/RadialProgress.d.ts +1 -1
- package/dist/ui/atoms/RemoveButton.d.ts +0 -1
- package/dist/ui/atoms/Section.d.ts +5 -5
- package/dist/ui/atoms/SkeletonTemplate.d.ts +1 -1
- package/dist/ui/atoms/StatusDot.d.ts +0 -1
- package/dist/ui/atoms/Steps.d.ts +0 -1
- package/dist/ui/atoms/Table/Td.d.ts +0 -1
- package/dist/ui/atoms/Table/Th.d.ts +0 -1
- package/dist/ui/atoms/Table/Tr.d.ts +0 -1
- package/dist/ui/atoms/Tag.d.ts +1 -1
- package/dist/ui/atoms/Tooltip.d.ts +1 -1
- package/dist/ui/composite/ActionButtons/ActionButtons.d.ts +4 -4
- package/dist/ui/composite/CardDialog.d.ts +5 -6
- package/dist/ui/composite/Dropdown/DropdownItem.d.ts +58 -58
- package/dist/ui/composite/Dropdown/DropdownSearch.d.ts +0 -1
- package/dist/ui/composite/HomePageLayout.d.ts +1 -1
- package/dist/ui/composite/List.d.ts +1 -1
- package/dist/ui/composite/ListItem.d.ts +1 -1
- package/dist/ui/composite/PageLayout.d.ts +12 -12
- package/dist/ui/composite/PageSkeleton.d.ts +0 -1
- package/dist/ui/composite/Timeline.d.ts +6 -6
- package/dist/ui/composite/Toolbar.d.ts +4 -4
- package/dist/ui/forms/InputCheckboxGroup/InputCheckboxGroup.d.ts +6 -6
- package/dist/ui/forms/InputCheckboxGroup/InputCheckboxGroupItem.d.ts +7 -7
- package/dist/ui/forms/InputCheckboxGroup/reducer.d.ts +1 -1
- package/dist/ui/forms/InputCurrency/InputCurrency.d.ts +2 -2
- package/dist/ui/forms/InputCurrencyRange.d.ts +2 -2
- package/dist/ui/forms/InputDate/InputDate.d.ts +2 -2
- package/dist/ui/forms/InputDate/InputDateComponent.d.ts +2 -2
- package/dist/ui/forms/InputDateRange/InputDateRange.d.ts +1 -1
- package/dist/ui/forms/InputFeedback.d.ts +0 -1
- package/dist/ui/forms/InputRadioGroup/InputRadioGroup.d.ts +11 -11
- package/dist/ui/forms/InputReadonly.d.ts +14 -14
- package/dist/ui/forms/InputResourceGroup/FullList.d.ts +2 -2
- package/dist/ui/forms/InputResourceGroup/InputResourceGroup.d.ts +1 -1
- package/dist/ui/forms/InputSelect/AsyncComponent.d.ts +2 -2
- package/dist/ui/forms/InputSelect/CreatableComponent.d.ts +1 -1
- package/dist/ui/forms/InputSelect/InputSelect.d.ts +3 -3
- package/dist/ui/forms/InputSelect/SelectComponent.d.ts +1 -1
- package/dist/ui/forms/InputSelect/overrides.d.ts +1 -1
- package/dist/ui/forms/InputSelect/styles.d.ts +3 -3
- package/dist/ui/forms/InputToggleButton/InputToggleButton.d.ts +1 -1
- package/dist/ui/forms/Label.d.ts +0 -1
- package/dist/ui/forms/Legend.d.ts +0 -1
- package/dist/ui/forms/ReactHookForm/HookedValidationApiError.d.ts +0 -1
- package/dist/ui/forms/ReactHookForm/HookedValidationError.d.ts +0 -1
- package/dist/ui/internals/InputWrapper.d.ts +12 -12
- package/dist/ui/internals/InteractiveElement.className.d.ts +0 -1
- package/dist/ui/internals/Overlay.d.ts +0 -1
- package/dist/ui/resources/ResourceAddress/ResourceAddress.d.ts +6 -6
- package/dist/ui/resources/ResourceAddress/ResourceAddressForm.d.ts +5 -5
- package/dist/ui/resources/ResourceAddress/ResourceAddressFormFields.d.ts +6 -6
- package/dist/ui/resources/ResourceLineItems/ResourceLineItems.d.ts +10 -10
- package/dist/ui/resources/ResourceLineItems/ResourceLineItems.mocks.d.ts +1 -0
- package/dist/ui/resources/ResourceList/ResourceList.d.ts +4 -4
- package/dist/ui/resources/ResourceList/infiniteFetcher.d.ts +1 -1
- package/dist/ui/resources/ResourceList/metricsApiClient.d.ts +3 -3
- package/dist/ui/resources/ResourceList/reducer.d.ts +1 -1
- package/dist/ui/resources/ResourceList/utils.d.ts +0 -1
- package/dist/ui/resources/ResourceListItem/ResourceListItem.d.ts +6 -6
- package/dist/ui/resources/ResourceListItem/common.d.ts +7 -7
- package/dist/ui/resources/ResourceListItem/transformers/customers.d.ts +1 -1
- package/dist/ui/resources/ResourceListItem/transformers/orders.d.ts +1 -1
- package/dist/ui/resources/ResourceListItem/transformers/promotions.d.ts +1 -1
- package/dist/ui/resources/ResourceListItem/transformers/returns.d.ts +1 -1
- package/dist/ui/resources/ResourceListItem/transformers/shipments.d.ts +1 -1
- package/dist/ui/resources/ResourceListItem/transformers/stockTransfers.d.ts +1 -1
- package/dist/ui/resources/ResourceListItem/types.d.ts +1 -1
- package/dist/ui/resources/ResourceMetadata/ResourceMetadata.d.ts +4 -4
- package/dist/ui/resources/ResourceMetadata/ResourceMetadataForm.d.ts +4 -4
- package/dist/ui/resources/ResourceOrderTimeline.d.ts +7 -7
- package/dist/ui/resources/ResourceShipmentParcels.d.ts +3 -3
- package/dist/ui/resources/ResourceTags.d.ts +3 -3
- package/dist/ui/resources/useResourceFilters/FiltersSearchBar.d.ts +1 -1
- package/dist/ui/resources/useResourceFilters/adaptFormValuesToSdk.d.ts +1 -1
- package/dist/ui/resources/useResourceFilters/adaptSdkToMetrics.d.ts +1 -1
- package/dist/ui/resources/useResourceFilters/adaptSdkToUrlQuery.d.ts +1 -1
- package/dist/ui/resources/useResourceFilters/adaptUrlQueryToSdk.d.ts +1 -1
- package/dist/ui/resources/useResourceFilters/adapters.types.d.ts +8 -8
- package/dist/ui/resources/useResourceFilters/timeUtils.d.ts +1 -1
- package/dist/ui/resources/useResourceFilters/types.d.ts +1 -1
- package/dist/ui/resources/useResourceFilters/useResourceFilters.d.ts +6 -6
- package/dist/utils/htmltags.d.ts +0 -1
- package/dist/vendor.css +1 -1
- package/package.json +28 -28
- package/dist/InputDateComponent-BISY8ZSX.js +0 -5681
- package/dist/providers/TokenProvider/makeSdkClient.d.ts +0 -8
- package/dist/providers/TokenProvider/makeSdkClient.test.d.ts +0 -1
|
@@ -25,7 +25,7 @@ export declare const DropdownItem: import('../../atoms/SkeletonTemplate').Skelet
|
|
|
25
25
|
accessKey?: string | undefined;
|
|
26
26
|
autoFocus?: boolean | undefined;
|
|
27
27
|
className?: string | undefined;
|
|
28
|
-
contentEditable?:
|
|
28
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
29
29
|
contextMenu?: string | undefined;
|
|
30
30
|
dir?: string | undefined;
|
|
31
31
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
@@ -64,47 +64,47 @@ export declare const DropdownItem: import('../../atoms/SkeletonTemplate').Skelet
|
|
|
64
64
|
results?: number | undefined;
|
|
65
65
|
security?: string | undefined;
|
|
66
66
|
unselectable?: "on" | "off" | undefined;
|
|
67
|
-
inputMode?: "
|
|
67
|
+
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
|
|
68
68
|
is?: string | undefined;
|
|
69
|
-
'data-tooltip-id'?: string
|
|
70
|
-
'data-tooltip-place'?: import('react-tooltip').PlacesType
|
|
71
|
-
'data-tooltip-content'?: string | null
|
|
72
|
-
'data-tooltip-html'?: string | null
|
|
73
|
-
'data-tooltip-variant'?: import('react-tooltip').VariantType
|
|
74
|
-
'data-tooltip-offset'?: number
|
|
75
|
-
'data-tooltip-wrapper'?: import('react-tooltip').WrapperType
|
|
76
|
-
'data-tooltip-events'?: import('react-tooltip').EventsType[]
|
|
77
|
-
'data-tooltip-position-strategy'?: import('react-tooltip').PositionStrategy
|
|
78
|
-
'data-tooltip-delay-show'?: number
|
|
79
|
-
'data-tooltip-delay-hide'?: number
|
|
80
|
-
'data-tooltip-float'?: boolean
|
|
81
|
-
'data-tooltip-hidden'?: boolean
|
|
82
|
-
'data-tooltip-class-name'?: string
|
|
69
|
+
'data-tooltip-id'?: string;
|
|
70
|
+
'data-tooltip-place'?: import('react-tooltip').PlacesType;
|
|
71
|
+
'data-tooltip-content'?: string | null;
|
|
72
|
+
'data-tooltip-html'?: string | null;
|
|
73
|
+
'data-tooltip-variant'?: import('react-tooltip').VariantType;
|
|
74
|
+
'data-tooltip-offset'?: number;
|
|
75
|
+
'data-tooltip-wrapper'?: import('react-tooltip').WrapperType;
|
|
76
|
+
'data-tooltip-events'?: import('react-tooltip').EventsType[];
|
|
77
|
+
'data-tooltip-position-strategy'?: import('react-tooltip').PositionStrategy;
|
|
78
|
+
'data-tooltip-delay-show'?: number;
|
|
79
|
+
'data-tooltip-delay-hide'?: number;
|
|
80
|
+
'data-tooltip-float'?: boolean;
|
|
81
|
+
'data-tooltip-hidden'?: boolean;
|
|
82
|
+
'data-tooltip-class-name'?: string;
|
|
83
83
|
"aria-activedescendant"?: string | undefined;
|
|
84
84
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
85
|
-
"aria-autocomplete"?: "
|
|
85
|
+
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
|
|
86
86
|
"aria-braillelabel"?: string | undefined;
|
|
87
87
|
"aria-brailleroledescription"?: string | undefined;
|
|
88
88
|
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
89
|
-
"aria-checked"?: boolean | "
|
|
89
|
+
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
90
90
|
"aria-colcount"?: number | undefined;
|
|
91
91
|
"aria-colindex"?: number | undefined;
|
|
92
92
|
"aria-colindextext"?: string | undefined;
|
|
93
93
|
"aria-colspan"?: number | undefined;
|
|
94
94
|
"aria-controls"?: string | undefined;
|
|
95
|
-
"aria-current"?: boolean | "
|
|
95
|
+
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
96
96
|
"aria-describedby"?: string | undefined;
|
|
97
97
|
"aria-description"?: string | undefined;
|
|
98
98
|
"aria-details"?: string | undefined;
|
|
99
99
|
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
100
|
-
"aria-dropeffect"?: "
|
|
100
|
+
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
|
|
101
101
|
"aria-errormessage"?: string | undefined;
|
|
102
102
|
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
103
103
|
"aria-flowto"?: string | undefined;
|
|
104
104
|
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
105
|
-
"aria-haspopup"?: boolean | "
|
|
105
|
+
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
|
|
106
106
|
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
107
|
-
"aria-invalid"?: boolean | "
|
|
107
|
+
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
108
108
|
"aria-keyshortcuts"?: string | undefined;
|
|
109
109
|
"aria-label"?: string | undefined;
|
|
110
110
|
"aria-labelledby"?: string | undefined;
|
|
@@ -117,9 +117,9 @@ export declare const DropdownItem: import('../../atoms/SkeletonTemplate').Skelet
|
|
|
117
117
|
"aria-owns"?: string | undefined;
|
|
118
118
|
"aria-placeholder"?: string | undefined;
|
|
119
119
|
"aria-posinset"?: number | undefined;
|
|
120
|
-
"aria-pressed"?: boolean | "
|
|
120
|
+
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
121
121
|
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
122
|
-
"aria-relevant"?: "
|
|
122
|
+
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
|
|
123
123
|
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
124
124
|
"aria-roledescription"?: string | undefined;
|
|
125
125
|
"aria-rowcount"?: number | undefined;
|
|
@@ -133,7 +133,7 @@ export declare const DropdownItem: import('../../atoms/SkeletonTemplate').Skelet
|
|
|
133
133
|
"aria-valuemin"?: number | undefined;
|
|
134
134
|
"aria-valuenow"?: number | undefined;
|
|
135
135
|
"aria-valuetext"?: string | undefined;
|
|
136
|
-
children?: import('react').ReactNode;
|
|
136
|
+
children?: import('react').ReactNode | undefined;
|
|
137
137
|
dangerouslySetInnerHTML?: {
|
|
138
138
|
__html: string | TrustedHTML;
|
|
139
139
|
} | undefined;
|
|
@@ -298,11 +298,11 @@ export declare const DropdownItem: import('../../atoms/SkeletonTemplate').Skelet
|
|
|
298
298
|
onTransitionEnd?: import('react').TransitionEventHandler<HTMLElement> | undefined;
|
|
299
299
|
onTransitionEndCapture?: import('react').TransitionEventHandler<HTMLElement> | undefined;
|
|
300
300
|
label: string;
|
|
301
|
-
icon?: "
|
|
301
|
+
icon?: IconProps["name"] | "keep-space";
|
|
302
302
|
href: string;
|
|
303
|
-
target?: string
|
|
304
|
-
delayMs?: number
|
|
305
|
-
isLoading?: boolean
|
|
303
|
+
target?: string;
|
|
304
|
+
delayMs?: number;
|
|
305
|
+
isLoading?: boolean;
|
|
306
306
|
} | {
|
|
307
307
|
defaultChecked?: boolean | undefined;
|
|
308
308
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
@@ -311,7 +311,7 @@ export declare const DropdownItem: import('../../atoms/SkeletonTemplate').Skelet
|
|
|
311
311
|
accessKey?: string | undefined;
|
|
312
312
|
autoFocus?: boolean | undefined;
|
|
313
313
|
className?: string | undefined;
|
|
314
|
-
contentEditable?:
|
|
314
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
315
315
|
contextMenu?: string | undefined;
|
|
316
316
|
dir?: string | undefined;
|
|
317
317
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
@@ -350,47 +350,47 @@ export declare const DropdownItem: import('../../atoms/SkeletonTemplate').Skelet
|
|
|
350
350
|
results?: number | undefined;
|
|
351
351
|
security?: string | undefined;
|
|
352
352
|
unselectable?: "on" | "off" | undefined;
|
|
353
|
-
inputMode?: "
|
|
353
|
+
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
|
|
354
354
|
is?: string | undefined;
|
|
355
|
-
'data-tooltip-id'?: string
|
|
356
|
-
'data-tooltip-place'?: import('react-tooltip').PlacesType
|
|
357
|
-
'data-tooltip-content'?: string | null
|
|
358
|
-
'data-tooltip-html'?: string | null
|
|
359
|
-
'data-tooltip-variant'?: import('react-tooltip').VariantType
|
|
360
|
-
'data-tooltip-offset'?: number
|
|
361
|
-
'data-tooltip-wrapper'?: import('react-tooltip').WrapperType
|
|
362
|
-
'data-tooltip-events'?: import('react-tooltip').EventsType[]
|
|
363
|
-
'data-tooltip-position-strategy'?: import('react-tooltip').PositionStrategy
|
|
364
|
-
'data-tooltip-delay-show'?: number
|
|
365
|
-
'data-tooltip-delay-hide'?: number
|
|
366
|
-
'data-tooltip-float'?: boolean
|
|
367
|
-
'data-tooltip-hidden'?: boolean
|
|
368
|
-
'data-tooltip-class-name'?: string
|
|
355
|
+
'data-tooltip-id'?: string;
|
|
356
|
+
'data-tooltip-place'?: import('react-tooltip').PlacesType;
|
|
357
|
+
'data-tooltip-content'?: string | null;
|
|
358
|
+
'data-tooltip-html'?: string | null;
|
|
359
|
+
'data-tooltip-variant'?: import('react-tooltip').VariantType;
|
|
360
|
+
'data-tooltip-offset'?: number;
|
|
361
|
+
'data-tooltip-wrapper'?: import('react-tooltip').WrapperType;
|
|
362
|
+
'data-tooltip-events'?: import('react-tooltip').EventsType[];
|
|
363
|
+
'data-tooltip-position-strategy'?: import('react-tooltip').PositionStrategy;
|
|
364
|
+
'data-tooltip-delay-show'?: number;
|
|
365
|
+
'data-tooltip-delay-hide'?: number;
|
|
366
|
+
'data-tooltip-float'?: boolean;
|
|
367
|
+
'data-tooltip-hidden'?: boolean;
|
|
368
|
+
'data-tooltip-class-name'?: string;
|
|
369
369
|
"aria-activedescendant"?: string | undefined;
|
|
370
370
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
371
|
-
"aria-autocomplete"?: "
|
|
371
|
+
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
|
|
372
372
|
"aria-braillelabel"?: string | undefined;
|
|
373
373
|
"aria-brailleroledescription"?: string | undefined;
|
|
374
374
|
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
375
|
-
"aria-checked"?: boolean | "
|
|
375
|
+
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
376
376
|
"aria-colcount"?: number | undefined;
|
|
377
377
|
"aria-colindex"?: number | undefined;
|
|
378
378
|
"aria-colindextext"?: string | undefined;
|
|
379
379
|
"aria-colspan"?: number | undefined;
|
|
380
380
|
"aria-controls"?: string | undefined;
|
|
381
|
-
"aria-current"?: boolean | "
|
|
381
|
+
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
382
382
|
"aria-describedby"?: string | undefined;
|
|
383
383
|
"aria-description"?: string | undefined;
|
|
384
384
|
"aria-details"?: string | undefined;
|
|
385
385
|
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
386
|
-
"aria-dropeffect"?: "
|
|
386
|
+
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
|
|
387
387
|
"aria-errormessage"?: string | undefined;
|
|
388
388
|
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
389
389
|
"aria-flowto"?: string | undefined;
|
|
390
390
|
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
391
|
-
"aria-haspopup"?: boolean | "
|
|
391
|
+
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
|
|
392
392
|
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
393
|
-
"aria-invalid"?: boolean | "
|
|
393
|
+
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
394
394
|
"aria-keyshortcuts"?: string | undefined;
|
|
395
395
|
"aria-label"?: string | undefined;
|
|
396
396
|
"aria-labelledby"?: string | undefined;
|
|
@@ -403,9 +403,9 @@ export declare const DropdownItem: import('../../atoms/SkeletonTemplate').Skelet
|
|
|
403
403
|
"aria-owns"?: string | undefined;
|
|
404
404
|
"aria-placeholder"?: string | undefined;
|
|
405
405
|
"aria-posinset"?: number | undefined;
|
|
406
|
-
"aria-pressed"?: boolean | "
|
|
406
|
+
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
407
407
|
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
408
|
-
"aria-relevant"?: "
|
|
408
|
+
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
|
|
409
409
|
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
410
410
|
"aria-roledescription"?: string | undefined;
|
|
411
411
|
"aria-rowcount"?: number | undefined;
|
|
@@ -419,7 +419,7 @@ export declare const DropdownItem: import('../../atoms/SkeletonTemplate').Skelet
|
|
|
419
419
|
"aria-valuemin"?: number | undefined;
|
|
420
420
|
"aria-valuenow"?: number | undefined;
|
|
421
421
|
"aria-valuetext"?: string | undefined;
|
|
422
|
-
children?: import('react').ReactNode;
|
|
422
|
+
children?: import('react').ReactNode | undefined;
|
|
423
423
|
dangerouslySetInnerHTML?: {
|
|
424
424
|
__html: string | TrustedHTML;
|
|
425
425
|
} | undefined;
|
|
@@ -584,8 +584,8 @@ export declare const DropdownItem: import('../../atoms/SkeletonTemplate').Skelet
|
|
|
584
584
|
onTransitionEnd?: import('react').TransitionEventHandler<HTMLElement> | undefined;
|
|
585
585
|
onTransitionEndCapture?: import('react').TransitionEventHandler<HTMLElement> | undefined;
|
|
586
586
|
label: string;
|
|
587
|
-
icon?: "
|
|
588
|
-
href?:
|
|
589
|
-
delayMs?: number
|
|
590
|
-
isLoading?: boolean
|
|
587
|
+
icon?: IconProps["name"] | "keep-space";
|
|
588
|
+
href?: never;
|
|
589
|
+
delayMs?: number;
|
|
590
|
+
isLoading?: boolean;
|
|
591
591
|
}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
1
|
import { FlexRowProps } from '../internals/FlexRow';
|
|
2
|
+
import { FC } from 'react';
|
|
3
3
|
|
|
4
4
|
type ListItemVariant = 'list' | 'boxed';
|
|
5
5
|
export type ListItemProps = React.HTMLAttributes<HTMLElement> & Pick<FlexRowProps, 'alignItems' | 'children'> & Pick<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'onClick' | 'href'> & {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { PageHeadingProps } from '../atoms/PageHeading';
|
|
3
1
|
import { ContainerProps } from '../atoms/Container';
|
|
2
|
+
import { PageHeadingProps } from '../atoms/PageHeading';
|
|
3
|
+
import { ReactNode } from 'react';
|
|
4
4
|
|
|
5
5
|
export interface PageLayoutProps extends Pick<PageHeadingProps, 'title' | 'description' | 'navigationButton' | 'toolbar' | 'gap'>, Pick<ContainerProps, 'minHeight'> {
|
|
6
6
|
/**
|
|
@@ -23,19 +23,19 @@ export interface PageLayoutProps extends Pick<PageHeadingProps, 'title' | 'descr
|
|
|
23
23
|
}
|
|
24
24
|
export declare const PageLayout: import('../atoms/SkeletonTemplate').SkeletonTemplateComponent<{
|
|
25
25
|
children: ReactNode;
|
|
26
|
-
mode?: "
|
|
27
|
-
overlay?: boolean
|
|
28
|
-
scrollToTop?: boolean
|
|
26
|
+
mode?: "test" | "live";
|
|
27
|
+
overlay?: boolean;
|
|
28
|
+
scrollToTop?: boolean;
|
|
29
29
|
description?: ReactNode;
|
|
30
30
|
title: ReactNode;
|
|
31
|
-
gap?: "none" | "
|
|
32
|
-
toolbar?: import('../atoms/PageHeading/PageHeadingToolbar').PageHeadingToolbarProps
|
|
31
|
+
gap?: "none" | "only-top" | "only-bottom" | "both";
|
|
32
|
+
toolbar?: import('../atoms/PageHeading/PageHeadingToolbar').PageHeadingToolbarProps;
|
|
33
33
|
navigationButton?: {
|
|
34
34
|
label: string;
|
|
35
35
|
onClick: () => void;
|
|
36
|
-
icon?: "x" | "arrowLeft"
|
|
37
|
-
}
|
|
38
|
-
minHeight?: boolean
|
|
39
|
-
delayMs?: number
|
|
40
|
-
isLoading?: boolean
|
|
36
|
+
icon?: "x" | "arrowLeft";
|
|
37
|
+
};
|
|
38
|
+
minHeight?: boolean;
|
|
39
|
+
delayMs?: number;
|
|
40
|
+
isLoading?: boolean;
|
|
41
41
|
}>;
|
|
@@ -14,11 +14,11 @@ export interface TimelineProps {
|
|
|
14
14
|
onKeyDown?: React.KeyboardEventHandler<HTMLInputElement>;
|
|
15
15
|
}
|
|
16
16
|
export declare const Timeline: import('../atoms/SkeletonTemplate').SkeletonTemplateComponent<{
|
|
17
|
-
disabled?: boolean
|
|
17
|
+
disabled?: boolean;
|
|
18
18
|
events: TimelineEvent[];
|
|
19
|
-
timezone?: string
|
|
20
|
-
onChange?:
|
|
21
|
-
onKeyDown?:
|
|
22
|
-
delayMs?: number
|
|
23
|
-
isLoading?: boolean
|
|
19
|
+
timezone?: string;
|
|
20
|
+
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
21
|
+
onKeyDown?: React.KeyboardEventHandler<HTMLInputElement>;
|
|
22
|
+
delayMs?: number;
|
|
23
|
+
isLoading?: boolean;
|
|
24
24
|
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DropdownItemProps } from './Dropdown';
|
|
2
|
-
import { IconProps } from '../atoms/Icon';
|
|
3
1
|
import { ButtonProps } from '../atoms/Button';
|
|
2
|
+
import { IconProps } from '../atoms/Icon';
|
|
3
|
+
import { DropdownItemProps } from './Dropdown';
|
|
4
4
|
|
|
5
5
|
export interface ToolbarItem {
|
|
6
6
|
label?: string;
|
|
@@ -27,6 +27,6 @@ export interface ToolbarProps {
|
|
|
27
27
|
*/
|
|
28
28
|
export declare const Toolbar: import('../atoms/SkeletonTemplate').SkeletonTemplateComponent<{
|
|
29
29
|
items: ToolbarItem[];
|
|
30
|
-
delayMs?: number
|
|
31
|
-
isLoading?: boolean
|
|
30
|
+
delayMs?: number;
|
|
31
|
+
isLoading?: boolean;
|
|
32
32
|
}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { InputCheckboxGroupOption } from './InputCheckboxGroupItem';
|
|
2
1
|
import { ComponentProps } from 'react';
|
|
2
|
+
import { InputCheckboxGroupOption } from './InputCheckboxGroupItem';
|
|
3
3
|
|
|
4
4
|
export interface SelectedItem {
|
|
5
5
|
/**
|
|
@@ -21,12 +21,12 @@ export interface SelectedItem {
|
|
|
21
21
|
* <span type="info">Quantity for each option item has a min/max range, to prevent selecting less or more than the allowed number.</span>
|
|
22
22
|
*/
|
|
23
23
|
export declare const InputCheckboxGroup: import('../../atoms/SkeletonTemplate').SkeletonTemplateComponent<{
|
|
24
|
-
title?: string
|
|
24
|
+
title?: string;
|
|
25
25
|
options: InputCheckboxGroupOption[];
|
|
26
|
-
defaultValues?: SelectedItem[]
|
|
26
|
+
defaultValues?: SelectedItem[];
|
|
27
27
|
onChange: (selected: SelectedItem[]) => void;
|
|
28
|
-
feedback?: Omit<import('../InputFeedback').InputFeedbackProps, "className"
|
|
29
|
-
delayMs?: number
|
|
30
|
-
isLoading?: boolean
|
|
28
|
+
feedback?: Omit<import('../InputFeedback').InputFeedbackProps, "className">;
|
|
29
|
+
delayMs?: number;
|
|
30
|
+
isLoading?: boolean;
|
|
31
31
|
}>;
|
|
32
32
|
export type InputCheckboxGroupProps = ComponentProps<typeof InputCheckboxGroup>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentProps } from 'react';
|
|
2
1
|
import { InputCheckboxProps } from '../InputCheckbox';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
3
|
|
|
4
4
|
export interface InputCheckboxGroupOption extends Pick<InputCheckboxProps, 'icon' | 'checked'> {
|
|
5
5
|
/**
|
|
@@ -40,17 +40,17 @@ export interface Props extends InputCheckboxGroupOption {
|
|
|
40
40
|
*/
|
|
41
41
|
export declare const InputCheckboxGroupItem: import('../../atoms/SkeletonTemplate').SkeletonTemplateComponent<{
|
|
42
42
|
onChange: (value: string, newQuantity?: number) => void;
|
|
43
|
-
defaultQuantity?: number
|
|
44
|
-
name?: string
|
|
43
|
+
defaultQuantity?: number;
|
|
44
|
+
name?: string;
|
|
45
45
|
value: string;
|
|
46
46
|
content: React.ReactNode;
|
|
47
47
|
quantity?: {
|
|
48
48
|
min: number;
|
|
49
49
|
max: number;
|
|
50
|
-
}
|
|
51
|
-
icon?: JSX.Element
|
|
50
|
+
};
|
|
51
|
+
icon?: JSX.Element;
|
|
52
52
|
checked?: boolean | undefined;
|
|
53
|
-
delayMs?: number
|
|
54
|
-
isLoading?: boolean
|
|
53
|
+
delayMs?: number;
|
|
54
|
+
isLoading?: boolean;
|
|
55
55
|
}>;
|
|
56
56
|
export type InputCheckboxGroupItemProps = ComponentProps<typeof InputCheckboxGroupItem>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CurrencyInputProps as ReactCurrencyInputFieldProps } from 'react-currency-input-field';
|
|
2
|
-
import { InputWrapperBaseProps } from '../../internals/InputWrapper';
|
|
3
1
|
import { CurrencyCode } from '../../../helpers/currencies';
|
|
2
|
+
import { InputWrapperBaseProps } from '../../internals/InputWrapper';
|
|
3
|
+
import { CurrencyInputProps as ReactCurrencyInputFieldProps } from 'react-currency-input-field';
|
|
4
4
|
|
|
5
5
|
export interface InputCurrencyProps extends InputWrapperBaseProps, Pick<ReactCurrencyInputFieldProps, 'onBlur' | 'onClick' | 'disabled'> {
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { InputWrapperBaseProps } from '../internals/InputWrapper';
|
|
2
|
-
import { InputCurrencyProps } from './InputCurrency';
|
|
3
1
|
import { CurrencyCode } from '../../helpers/currencies';
|
|
2
|
+
import { InputCurrencyProps } from './InputCurrency';
|
|
3
|
+
import { InputWrapperBaseProps } from '../internals/InputWrapper';
|
|
4
4
|
|
|
5
5
|
type Cents = InputCurrencyProps['cents'];
|
|
6
6
|
export interface InputCurrencyRangeProps extends InputWrapperBaseProps {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InputDateProps } from './InputDateComponent';
|
|
2
1
|
import { default as DatePicker } from 'react-datepicker';
|
|
2
|
+
import { InputDateProps } from './InputDateComponent';
|
|
3
3
|
|
|
4
|
-
export declare const InputDate: import('react').ForwardRefExoticComponent<InputDateProps & import('react').RefAttributes<DatePicker
|
|
4
|
+
export declare const InputDate: import('react').ForwardRefExoticComponent<InputDateProps & import('react').RefAttributes<DatePicker>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { InputWrapperBaseProps } from '../../internals/InputWrapper';
|
|
2
1
|
import { default as DatePicker } from 'react-datepicker';
|
|
2
|
+
import { InputWrapperBaseProps } from '../../internals/InputWrapper';
|
|
3
3
|
|
|
4
4
|
export type MaybeDate = Date | null;
|
|
5
5
|
export interface InputDateProps extends InputWrapperBaseProps {
|
|
@@ -51,4 +51,4 @@ export interface InputDateProps extends InputWrapperBaseProps {
|
|
|
51
51
|
*/
|
|
52
52
|
preventOpenOnFocus?: boolean;
|
|
53
53
|
}
|
|
54
|
-
export declare const InputDateComponent: import('react').ForwardRefExoticComponent<InputDateProps & import('react').RefAttributes<DatePicker
|
|
54
|
+
export declare const InputDateComponent: import('react').ForwardRefExoticComponent<InputDateProps & import('react').RefAttributes<DatePicker>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { InputDateProps, MaybeDate } from '../InputDate/InputDateComponent';
|
|
2
1
|
import { InputWrapperBaseProps } from '../../internals/InputWrapper';
|
|
2
|
+
import { InputDateProps, MaybeDate } from '../InputDate/InputDateComponent';
|
|
3
3
|
|
|
4
4
|
export interface InputDateRangeProps extends Pick<InputDateProps, 'isClearable' | 'format' | 'autoPlaceholder'>, InputWrapperBaseProps {
|
|
5
5
|
/**
|
|
@@ -19,20 +19,20 @@ interface OptionItem {
|
|
|
19
19
|
className?: string;
|
|
20
20
|
}
|
|
21
21
|
export declare const InputRadioGroup: import('../../atoms/SkeletonTemplate').SkeletonTemplateComponent<{
|
|
22
|
-
title?: string
|
|
22
|
+
title?: string;
|
|
23
23
|
name: string;
|
|
24
24
|
options: OptionItem[];
|
|
25
|
-
defaultValue?: string
|
|
26
|
-
onChange?: (
|
|
27
|
-
showInput?: boolean
|
|
28
|
-
viewMode?: "list" | "
|
|
25
|
+
defaultValue?: string;
|
|
26
|
+
onChange?: (selected: string | undefined) => void;
|
|
27
|
+
showInput?: boolean;
|
|
28
|
+
viewMode?: "list" | "inline" | "grid" | "simple";
|
|
29
29
|
hint?: {
|
|
30
|
-
icon?: "
|
|
31
|
-
text:
|
|
32
|
-
}
|
|
33
|
-
feedback?: Omit<import('../InputFeedback').InputFeedbackProps, "className"
|
|
34
|
-
delayMs?: number
|
|
35
|
-
isLoading?: boolean
|
|
30
|
+
icon?: import('../../atoms/Hint').HintProps["icon"];
|
|
31
|
+
text: import('../../atoms/Hint').HintProps["children"];
|
|
32
|
+
};
|
|
33
|
+
feedback?: Omit<import('../InputFeedback').InputFeedbackProps, "className">;
|
|
34
|
+
delayMs?: number;
|
|
35
|
+
isLoading?: boolean;
|
|
36
36
|
}>;
|
|
37
37
|
export type InputRadioGroupProps = ComponentProps<typeof InputRadioGroup>;
|
|
38
38
|
export {};
|
|
@@ -28,19 +28,19 @@ export type InputReadonlyProps = InputWrapperBaseProps & {
|
|
|
28
28
|
secret?: boolean;
|
|
29
29
|
};
|
|
30
30
|
export declare const InputReadonly: import('../atoms/SkeletonTemplate').SkeletonTemplateComponent<{
|
|
31
|
-
label?: string
|
|
31
|
+
label?: string;
|
|
32
32
|
hint?: {
|
|
33
|
-
icon?: "
|
|
34
|
-
text: import('
|
|
35
|
-
}
|
|
36
|
-
feedback?: Omit<import('./InputFeedback').InputFeedbackProps, "className"
|
|
37
|
-
inline?: boolean
|
|
38
|
-
wrapperClassName?: string
|
|
39
|
-
inputClassName?: string
|
|
40
|
-
showCopyAction?: boolean
|
|
41
|
-
value?: string
|
|
42
|
-
children?: string
|
|
43
|
-
secret?: boolean
|
|
44
|
-
delayMs?: number
|
|
45
|
-
isLoading?: boolean
|
|
33
|
+
icon?: import('../atoms/Hint').HintProps["icon"];
|
|
34
|
+
text: import('../atoms/Hint').HintProps["children"];
|
|
35
|
+
};
|
|
36
|
+
feedback?: Omit<import('./InputFeedback').InputFeedbackProps, "className">;
|
|
37
|
+
inline?: boolean;
|
|
38
|
+
wrapperClassName?: string;
|
|
39
|
+
inputClassName?: string;
|
|
40
|
+
showCopyAction?: boolean;
|
|
41
|
+
value?: string;
|
|
42
|
+
children?: string;
|
|
43
|
+
secret?: boolean;
|
|
44
|
+
delayMs?: number;
|
|
45
|
+
isLoading?: boolean;
|
|
46
46
|
}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ListableResourceType } from '@commercelayer/sdk';
|
|
2
1
|
import { OverlayProps } from '../../internals/Overlay';
|
|
2
|
+
import { ListableResourceType } from '@commercelayer/sdk';
|
|
3
3
|
|
|
4
4
|
export interface SortBy {
|
|
5
5
|
attribute: string;
|
|
@@ -62,7 +62,7 @@ export interface FullListProps {
|
|
|
62
62
|
}
|
|
63
63
|
export declare function FullList({ defaultValues, fieldForLabel, fieldForValue, onChange, resource, searchBy, sortBy, title, showCheckboxIcon, hideSelected }: FullListProps): JSX.Element;
|
|
64
64
|
export declare const useInputResourceGroupOverlay: () => {
|
|
65
|
-
InputResourceGroupOverlay: ({ footer, backgroundColor, ...props }: FullListProps & Omit<OverlayProps,
|
|
65
|
+
InputResourceGroupOverlay: ({ footer, backgroundColor, ...props }: FullListProps & Omit<OverlayProps, "children">) => import("react/jsx-runtime").JSX.Element;
|
|
66
66
|
openInputResourceGroupOverlay: () => void;
|
|
67
67
|
closeInputResourceGroupOverlay: () => void;
|
|
68
68
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { InputSelectProps, InputSelectValue } from './InputSelect';
|
|
2
|
-
import { SetRequired } from 'type-fest';
|
|
3
1
|
import { GroupBase, SelectInstance, StylesConfig } from 'react-select';
|
|
2
|
+
import { SetRequired } from 'type-fest';
|
|
3
|
+
import { InputSelectProps, InputSelectValue } from './InputSelect';
|
|
4
4
|
|
|
5
5
|
interface AsyncSelectComponentProps extends Omit<SetRequired<InputSelectProps, 'loadAsyncValues'>, 'label' | 'hint'> {
|
|
6
6
|
styles: StylesConfig<InputSelectValue>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { InputSelectProps, InputSelectValue } from './InputSelect';
|
|
2
1
|
import { GroupBase, SelectInstance, StylesConfig } from 'react-select';
|
|
2
|
+
import { InputSelectProps, InputSelectValue } from './InputSelect';
|
|
3
3
|
|
|
4
4
|
interface CreatableComponentProps extends Omit<InputSelectProps, 'loadAsyncValues' | 'label' | 'hint'> {
|
|
5
5
|
styles: StylesConfig<InputSelectValue>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { GroupBase, MultiValue, Options, SelectInstance, SingleValue } from 'react-select';
|
|
2
|
-
import { FocusEventHandler } from 'react';
|
|
3
1
|
import { InputWrapperBaseProps } from '../../internals/InputWrapper';
|
|
2
|
+
import { FocusEventHandler } from 'react';
|
|
3
|
+
import { GroupBase, MultiValue, Options, SelectInstance, SingleValue } from 'react-select';
|
|
4
4
|
|
|
5
5
|
export type GroupedSelectValues = Array<{
|
|
6
6
|
label?: string;
|
|
7
7
|
options: InputSelectValue[];
|
|
8
8
|
}>;
|
|
9
9
|
export interface InputSelectValue {
|
|
10
|
-
value: string | number;
|
|
10
|
+
value: string | number | boolean;
|
|
11
11
|
label: string;
|
|
12
12
|
meta?: Record<string, any>;
|
|
13
13
|
isDisabled?: boolean;
|