@commercelayer/app-elements 2.8.3 → 2.10.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-CMJl1SsY.js +6188 -0
- package/dist/dictionaries/customers.d.ts +0 -1
- package/dist/dictionaries/orders.d.ts +0 -1
- package/dist/dictionaries/promotions.d.ts +0 -1
- package/dist/dictionaries/returns.d.ts +0 -1
- package/dist/dictionaries/shipments.d.ts +0 -1
- package/dist/dictionaries/stockTransfers.d.ts +0 -1
- package/dist/dictionaries/types.d.ts +0 -1
- package/dist/helpers/appsNavigation.d.ts +0 -1
- package/dist/helpers/attachments.d.ts +0 -1
- package/dist/helpers/currencies.d.ts +0 -1
- package/dist/helpers/date.d.ts +0 -1
- package/dist/helpers/resources.d.ts +0 -1
- package/dist/helpers/tracking.d.ts +0 -1
- package/dist/hooks/useClickAway.d.ts +0 -1
- package/dist/hooks/useEditMetadataOverlay.d.ts +0 -1
- package/dist/hooks/useEditTagsOverlay.d.ts +0 -1
- package/dist/hooks/useOverlay.d.ts +0 -1
- package/dist/{main-uMPiX52G.js → main-8vGdIM-n.js} +10840 -10718
- package/dist/main.d.ts +1 -2
- package/dist/main.js +102 -102
- package/dist/providers/CoreSdkProvider/CoreSdkProvider.d.ts +0 -1
- package/dist/providers/CoreSdkProvider/makeSdkClient.d.ts +0 -1
- package/dist/providers/CoreSdkProvider/useCoreApi.d.ts +0 -1
- package/dist/providers/ErrorBoundary.d.ts +0 -1
- package/dist/providers/GTMProvider.d.ts +0 -1
- package/dist/providers/TokenProvider/MockTokenProvider.d.ts +0 -1
- package/dist/providers/TokenProvider/TokenProvider.d.ts +0 -1
- package/dist/providers/TokenProvider/extras.d.ts +0 -1
- package/dist/providers/TokenProvider/getAccessTokenFromUrl.d.ts +0 -1
- package/dist/providers/TokenProvider/getInfoFromJwt.d.ts +0 -1
- package/dist/providers/TokenProvider/getOrganization.d.ts +0 -1
- package/dist/providers/TokenProvider/reducer.d.ts +0 -1
- package/dist/providers/TokenProvider/storage.d.ts +0 -1
- package/dist/providers/TokenProvider/types.d.ts +0 -1
- package/dist/providers/TokenProvider/validateToken.d.ts +0 -1
- package/dist/providers/createApp.d.ts +0 -1
- package/dist/style.css +1 -1
- package/dist/ui/atoms/A.d.ts +0 -1
- package/dist/ui/atoms/Avatar.d.ts +0 -1
- package/dist/ui/atoms/Badge/Badge.d.ts +0 -1
- package/dist/ui/atoms/Button.d.ts +0 -1
- package/dist/ui/atoms/ButtonFilter.d.ts +0 -1
- package/dist/ui/atoms/Card.d.ts +4 -2
- package/dist/ui/atoms/CodeBlock.d.ts +0 -1
- package/dist/ui/atoms/EmptyState.d.ts +0 -1
- package/dist/ui/atoms/Grid.d.ts +0 -1
- package/dist/ui/atoms/Hint.d.ts +0 -1
- package/dist/ui/atoms/Icon/Icon.d.ts +0 -1
- package/dist/ui/atoms/PageHeading/PageHeading.d.ts +0 -1
- package/dist/ui/atoms/PageHeading/PageHeadingToolbar.d.ts +0 -1
- package/dist/ui/atoms/RadialProgress.d.ts +0 -1
- package/dist/ui/atoms/ScrollToTop.d.ts +0 -1
- package/dist/ui/atoms/Section.d.ts +0 -1
- package/dist/ui/atoms/Skeleton.d.ts +0 -1
- package/dist/ui/atoms/SkeletonTemplate.d.ts +0 -1
- package/dist/ui/atoms/Spacer.d.ts +0 -1
- package/dist/ui/atoms/Stack.d.ts +0 -1
- package/dist/ui/atoms/StatusIcon.d.ts +0 -1
- package/dist/ui/atoms/Table/Table.d.ts +0 -1
- package/dist/ui/atoms/Table/Td.d.ts +0 -1
- package/dist/ui/atoms/Tabs.d.ts +0 -1
- package/dist/ui/atoms/Tag.d.ts +0 -1
- package/dist/ui/atoms/Text.d.ts +0 -1
- package/dist/ui/atoms/Tooltip.d.ts +0 -1
- package/dist/ui/composite/ActionButtons/ActionButtons.d.ts +0 -1
- package/dist/ui/composite/Dropdown/Dropdown.d.ts +0 -1
- package/dist/ui/composite/Dropdown/DropdownDivider.d.ts +0 -1
- package/dist/ui/composite/Dropdown/DropdownItem.d.ts +4 -3
- package/dist/ui/composite/Dropdown/DropdownMenu.d.ts +0 -1
- package/dist/ui/composite/HomePageLayout.d.ts +0 -1
- package/dist/ui/composite/List.d.ts +0 -1
- package/dist/ui/composite/ListDetails.d.ts +0 -1
- package/dist/ui/composite/ListDetailsItem.d.ts +0 -1
- package/dist/ui/composite/ListItem.d.ts +0 -1
- package/dist/ui/composite/PageError.d.ts +0 -1
- package/dist/ui/composite/PageLayout.d.ts +0 -1
- package/dist/ui/composite/Report.d.ts +0 -1
- package/dist/ui/composite/Routes/Routes.d.ts +0 -1
- package/dist/ui/composite/Routes/utils.d.ts +0 -1
- package/dist/ui/composite/SearchBar.d.ts +0 -1
- package/dist/ui/composite/TableData.d.ts +0 -1
- package/dist/ui/composite/Timeline.d.ts +0 -1
- package/dist/ui/composite/Toolbar.d.ts +0 -1
- package/dist/ui/forms/Form/HookedForm.d.ts +0 -1
- package/dist/ui/forms/Input/HookedInput.d.ts +0 -1
- package/dist/ui/forms/Input/Input.d.ts +0 -1
- package/dist/ui/forms/InputCheckbox/HookedInputCheckbox.d.ts +0 -1
- package/dist/ui/forms/InputCheckbox/InputCheckbox.d.ts +0 -1
- package/dist/ui/forms/InputCheckboxGroup/HookedInputCheckboxGroup.d.ts +0 -1
- package/dist/ui/forms/InputCheckboxGroup/InputCheckboxGroup.d.ts +0 -1
- package/dist/ui/forms/InputCheckboxGroup/InputCheckboxGroupItem.d.ts +0 -1
- package/dist/ui/forms/InputCheckboxGroup/reducer.d.ts +0 -1
- package/dist/ui/forms/InputCurrency/HookedInputCurrency.d.ts +0 -1
- package/dist/ui/forms/InputCurrency/InputCurrency.d.ts +0 -1
- package/dist/ui/forms/InputCurrency/utils.d.ts +0 -1
- package/dist/ui/forms/InputCurrencyRange.d.ts +0 -1
- package/dist/ui/forms/InputDate/HookedInputDate.d.ts +0 -1
- package/dist/ui/forms/InputDate/InputDate.d.ts +0 -1
- package/dist/ui/forms/InputDate/InputDateComponent.d.ts +0 -1
- package/dist/ui/forms/InputDateRange/HookedInputDateRange.d.ts +0 -1
- package/dist/ui/forms/InputDateRange/InputDateRange.d.ts +0 -1
- package/dist/ui/forms/InputFile.d.ts +0 -1
- package/dist/ui/forms/InputJson.d.ts +0 -1
- package/dist/ui/forms/InputRadioGroup/HookedInputRadioGroup.d.ts +0 -1
- package/dist/ui/forms/InputRadioGroup/InputRadioGroup.d.ts +0 -1
- package/dist/ui/forms/InputResourceGroup/FullList.d.ts +0 -1
- package/dist/ui/forms/InputResourceGroup/HookedInputResourceGroup.d.ts +0 -1
- package/dist/ui/forms/InputResourceGroup/InputResourceGroup.d.ts +0 -1
- package/dist/ui/forms/InputResourceGroup/utils.d.ts +0 -1
- package/dist/ui/forms/InputSelect/AsyncComponent.d.ts +0 -1
- package/dist/ui/forms/InputSelect/AsyncCreatableComponent.d.ts +0 -1
- package/dist/ui/forms/InputSelect/CreatableComponent.d.ts +0 -1
- package/dist/ui/forms/InputSelect/GenericAsyncComponent.d.ts +0 -1
- package/dist/ui/forms/InputSelect/HookedInputSelect.d.ts +0 -1
- package/dist/ui/forms/InputSelect/InputSelect.d.ts +0 -1
- package/dist/ui/forms/InputSelect/SelectComponent.d.ts +0 -1
- package/dist/ui/forms/InputSelect/overrides.d.ts +0 -1
- package/dist/ui/forms/InputSelect/styles.d.ts +0 -1
- package/dist/ui/forms/InputSelect/utils.d.ts +0 -1
- package/dist/ui/forms/InputSimpleSelect/HookedInputSimpleSelect.d.ts +0 -1
- package/dist/ui/forms/InputSimpleSelect/InputSimpleSelect.d.ts +0 -1
- package/dist/ui/forms/InputSpinner/HookedInputSpinner.d.ts +0 -1
- package/dist/ui/forms/InputSpinner/InputSpinner.d.ts +0 -1
- package/dist/ui/forms/InputSwitch/HookedInputSwitch.d.ts +0 -1
- package/dist/ui/forms/InputSwitch/InputSwitch.d.ts +0 -1
- package/dist/ui/forms/InputTextArea/HookedInputTextArea.d.ts +0 -1
- package/dist/ui/forms/InputTextArea/InputTextArea.d.ts +0 -1
- package/dist/ui/forms/InputToggleButton/HookedInputToggleButton.d.ts +0 -1
- package/dist/ui/forms/InputToggleButton/InputToggleButton.d.ts +0 -1
- package/dist/ui/forms/MarketWithCurrencySelector/HookedMarketWithCurrencySelector.d.ts +0 -1
- package/dist/ui/forms/ReactHookForm/setApiFormErrors.d.ts +0 -1
- package/dist/ui/forms/ReactHookForm/useValidationFeedback.d.ts +0 -1
- package/dist/ui/internals/FlexRow.d.ts +0 -1
- package/dist/ui/internals/InputWrapper.d.ts +0 -1
- package/dist/ui/resources/ResourceAddress/ResourceAddress.d.ts +0 -1
- package/dist/ui/resources/ResourceAddress/ResourceAddressForm.d.ts +0 -1
- package/dist/ui/resources/ResourceAddress/ResourceAddressFormFields.d.ts +0 -1
- package/dist/ui/resources/ResourceAddress/useResourceAddressOverlay.d.ts +0 -1
- package/dist/ui/resources/ResourceDetails/ResourceDetails.d.ts +2 -1
- package/dist/ui/resources/ResourceDetails/ResourceDetailsForm.d.ts +7 -0
- package/dist/ui/resources/ResourceDetails/useEditDetailsOverlay.d.ts +16 -0
- package/dist/ui/resources/ResourceLineItems/ResourceLineItems.d.ts +0 -1
- package/dist/ui/resources/ResourceLineItems/types.d.ts +0 -1
- package/dist/ui/resources/ResourceListItem/ResourceListItem.d.ts +0 -1
- package/dist/ui/resources/ResourceListItem/ResourceListItem.mocks.d.ts +41 -0
- package/dist/ui/resources/ResourceListItem/common.d.ts +0 -1
- package/dist/ui/resources/ResourceListItem/transformers/customers.d.ts +0 -1
- package/dist/ui/resources/ResourceListItem/transformers/orders.d.ts +0 -1
- package/dist/ui/resources/ResourceListItem/transformers/promotions.d.ts +0 -1
- package/dist/ui/resources/ResourceListItem/transformers/returns.d.ts +0 -1
- package/dist/ui/resources/ResourceListItem/transformers/shipments.d.ts +0 -1
- package/dist/ui/resources/ResourceListItem/transformers/skuListItem.d.ts +0 -1
- package/dist/ui/resources/ResourceListItem/transformers/stockTransfers.d.ts +0 -1
- package/dist/ui/resources/ResourceListItem/types.d.ts +0 -1
- package/dist/ui/resources/ResourceMetadata/ResourceMetadata.d.ts +0 -1
- package/dist/ui/resources/ResourceMetadata/ResourceMetadataForm.d.ts +0 -1
- package/dist/ui/resources/ResourceOrderTimeline.d.ts +0 -1
- package/dist/ui/resources/ResourceShipmentParcels.d.ts +0 -1
- package/dist/ui/resources/ResourceShipmentParcels.mocks.d.ts +0 -1
- package/dist/ui/resources/ResourceTags.d.ts +0 -1
- package/dist/ui/resources/useResourceFilters/FieldCurrencyRange.d.ts +0 -1
- package/dist/ui/resources/useResourceFilters/FieldOptions.d.ts +0 -1
- package/dist/ui/resources/useResourceFilters/FieldTextSearch.d.ts +0 -1
- package/dist/ui/resources/useResourceFilters/FieldTimeRange.d.ts +0 -1
- package/dist/ui/resources/useResourceFilters/FiltersForm.d.ts +0 -1
- package/dist/ui/resources/useResourceFilters/FiltersNav.d.ts +0 -1
- package/dist/ui/resources/useResourceFilters/FiltersSearchBar.d.ts +0 -1
- package/dist/ui/resources/useResourceFilters/adaptFormValuesToSdk.d.ts +0 -1
- package/dist/ui/resources/useResourceFilters/adaptFormValuesToUrlQuery.d.ts +0 -1
- package/dist/ui/resources/useResourceFilters/adaptSdkToMetrics.d.ts +0 -1
- package/dist/ui/resources/useResourceFilters/adaptSdkToUrlQuery.d.ts +0 -1
- package/dist/ui/resources/useResourceFilters/adaptUrlQueryToFormValues.d.ts +0 -1
- package/dist/ui/resources/useResourceFilters/adaptUrlQueryToSdk.d.ts +0 -1
- package/dist/ui/resources/useResourceFilters/adaptUrlQueryToUrlQuery.d.ts +0 -1
- package/dist/ui/resources/useResourceFilters/adapters.d.ts +0 -1
- package/dist/ui/resources/useResourceFilters/adapters.types.d.ts +0 -1
- package/dist/ui/resources/useResourceFilters/mockedInstructions.d.ts +0 -1
- package/dist/ui/resources/useResourceFilters/timeUtils.d.ts +0 -1
- package/dist/ui/resources/useResourceFilters/types.d.ts +0 -1
- package/dist/ui/resources/useResourceFilters/useResourceFilters.d.ts +5 -6
- package/dist/ui/resources/useResourceFilters/utils.d.ts +0 -1
- package/dist/ui/resources/{ResourceList → useResourceList}/VisibilityTrigger.d.ts +0 -1
- package/dist/ui/resources/{ResourceList → useResourceList}/adaptMetricsOrderToCore.d.ts +0 -1
- package/dist/ui/resources/useResourceList/index.d.ts +1 -0
- package/dist/ui/resources/{ResourceList → useResourceList}/infiniteFetcher.d.ts +1 -2
- package/dist/ui/resources/{ResourceList → useResourceList}/metricsApiClient.d.ts +1 -2
- package/dist/ui/resources/{ResourceList → useResourceList}/reducer.d.ts +0 -1
- package/dist/ui/resources/{ResourceList/ResourceList.d.ts → useResourceList/useResourceList.d.ts} +53 -48
- package/dist/utils/children.d.ts +0 -1
- package/dist/utils/extractHeaders.d.ts +0 -1
- package/dist/utils/text.d.ts +0 -1
- package/dist/vendor.css +1 -1
- package/package.json +22 -22
- package/dist/InputDateComponent-BHXJF53e.js +0 -5064
- package/dist/ui/resources/ResourceList/index.d.ts +0 -1
- /package/dist/ui/resources/{ResourceList → useResourceList}/VisibilityTrigger.test.d.ts +0 -0
- /package/dist/ui/resources/{ResourceList → useResourceList}/adaptMetricsOrderToCore.test.d.ts +0 -0
- /package/dist/ui/resources/{ResourceList/ResourceList.test.d.ts → useResourceList/useResourceList.test.d.ts} +0 -0
- /package/dist/ui/resources/{ResourceList → useResourceList}/utils.d.ts +0 -0
- /package/dist/ui/resources/{ResourceList → useResourceList}/utils.test.d.ts +0 -0
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { IconProps } from '../../atoms/Icon/Icon';
|
|
2
|
-
|
|
3
2
|
export type DropdownItemProps = React.HTMLAttributes<HTMLElement> & {
|
|
4
3
|
label: string;
|
|
5
4
|
icon?: IconProps['name'] | 'keep-space';
|
|
@@ -24,12 +23,14 @@ export declare const DropdownItem: import('../../atoms/SkeletonTemplate').Skelet
|
|
|
24
23
|
suppressContentEditableWarning?: boolean | undefined;
|
|
25
24
|
suppressHydrationWarning?: boolean | undefined;
|
|
26
25
|
accessKey?: string | undefined;
|
|
26
|
+
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {});
|
|
27
27
|
autoFocus?: boolean | undefined;
|
|
28
28
|
className?: string | undefined;
|
|
29
29
|
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
30
30
|
contextMenu?: string | undefined;
|
|
31
31
|
dir?: string | undefined;
|
|
32
32
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
33
|
+
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
|
|
33
34
|
hidden?: boolean | undefined;
|
|
34
35
|
id?: string | undefined;
|
|
35
36
|
lang?: string | undefined;
|
|
@@ -53,7 +54,6 @@ export declare const DropdownItem: import('../../atoms/SkeletonTemplate').Skelet
|
|
|
53
54
|
rev?: string | undefined;
|
|
54
55
|
typeof?: string | undefined;
|
|
55
56
|
vocab?: string | undefined;
|
|
56
|
-
autoCapitalize?: string | undefined;
|
|
57
57
|
autoCorrect?: string | undefined;
|
|
58
58
|
autoSave?: string | undefined;
|
|
59
59
|
color?: string | undefined;
|
|
@@ -310,12 +310,14 @@ export declare const DropdownItem: import('../../atoms/SkeletonTemplate').Skelet
|
|
|
310
310
|
suppressContentEditableWarning?: boolean | undefined;
|
|
311
311
|
suppressHydrationWarning?: boolean | undefined;
|
|
312
312
|
accessKey?: string | undefined;
|
|
313
|
+
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {});
|
|
313
314
|
autoFocus?: boolean | undefined;
|
|
314
315
|
className?: string | undefined;
|
|
315
316
|
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
316
317
|
contextMenu?: string | undefined;
|
|
317
318
|
dir?: string | undefined;
|
|
318
319
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
320
|
+
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
|
|
319
321
|
hidden?: boolean | undefined;
|
|
320
322
|
id?: string | undefined;
|
|
321
323
|
lang?: string | undefined;
|
|
@@ -339,7 +341,6 @@ export declare const DropdownItem: import('../../atoms/SkeletonTemplate').Skelet
|
|
|
339
341
|
rev?: string | undefined;
|
|
340
342
|
typeof?: string | undefined;
|
|
341
343
|
vocab?: string | undefined;
|
|
342
|
-
autoCapitalize?: string | undefined;
|
|
343
344
|
autoCorrect?: string | undefined;
|
|
344
345
|
autoSave?: string | undefined;
|
|
345
346
|
color?: string | undefined;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { PageHeadingProps } from '../atoms/PageHeading';
|
|
2
2
|
import { PageHeadingToolbarProps } from '../atoms/PageHeading/PageHeadingToolbar';
|
|
3
3
|
import { ReactNode } from 'react';
|
|
4
|
-
|
|
5
4
|
export interface HomePageLayoutProps extends Pick<PageHeadingProps, 'title'> {
|
|
6
5
|
/**
|
|
7
6
|
* Page content
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { FlexRowProps } from '../internals/FlexRow';
|
|
2
2
|
import { FC } from 'react';
|
|
3
|
-
|
|
4
3
|
type ListItemVariant = 'list' | 'boxed';
|
|
5
4
|
export type ListItemProps = React.HTMLAttributes<HTMLElement> & Pick<FlexRowProps, 'alignItems' | 'children'> & Pick<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'onClick' | 'href'> & {
|
|
6
5
|
/**
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ContainerProps } from '../atoms/Container';
|
|
2
2
|
import { PageHeadingProps } from '../atoms/PageHeading';
|
|
3
3
|
import { ReactNode } from 'react';
|
|
4
|
-
|
|
5
4
|
export interface PageLayoutProps extends Pick<PageHeadingProps, 'title' | 'description' | 'navigationButton' | 'toolbar' | 'gap'>, Pick<ContainerProps, 'minHeight'> {
|
|
6
5
|
/**
|
|
7
6
|
* Page content
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ListableResourceType } from '@commercelayer/sdk';
|
|
2
2
|
import { RouteComponentProps } from 'wouter';
|
|
3
3
|
import { GetParams } from './utils';
|
|
4
|
-
|
|
5
4
|
/**
|
|
6
5
|
* Renders the Switch component to conditionally render a route based on the current path
|
|
7
6
|
* by leveraging the `wouter` library to handle routing.
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Simplify } from 'type-fest';
|
|
2
|
-
|
|
3
2
|
/**
|
|
4
3
|
* Create a `Route` given a path. Route has the provided `path` and a `makePath` method that helps making a path.
|
|
5
4
|
* @param path it can be a simple string (e.g. `/` or `/home/`) or a more complex with variables (e.g. `/users/:name/` or `/orders/:id?/`)
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { InputCheckboxProps } from '../InputCheckbox';
|
|
2
2
|
import { ComponentProps } from 'react';
|
|
3
|
-
|
|
4
3
|
export interface InputCheckboxGroupOption extends Pick<InputCheckboxProps, 'icon' | 'checked'> {
|
|
5
4
|
/**
|
|
6
5
|
* Input name, will be used to set the html name for checkbox and the quantity inputs.
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { CurrencyCode } from '../../../helpers/currencies';
|
|
2
2
|
import { InputWrapperBaseProps } from '../../internals/InputWrapper';
|
|
3
3
|
import { CurrencyInputProps as ReactCurrencyInputFieldProps } from 'react-currency-input-field';
|
|
4
|
-
|
|
5
4
|
export interface InputCurrencyProps extends InputWrapperBaseProps, Pick<ReactCurrencyInputFieldProps, 'onBlur' | 'onClick' | 'disabled'> {
|
|
6
5
|
/**
|
|
7
6
|
* HTML input id
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { CurrencyCode } from '../../helpers/currencies';
|
|
2
2
|
import { InputCurrencyProps } from './InputCurrency';
|
|
3
3
|
import { InputWrapperBaseProps } from '../internals/InputWrapper';
|
|
4
|
-
|
|
5
4
|
type Cents = InputCurrencyProps['cents'];
|
|
6
5
|
export interface InputCurrencyRangeProps extends InputWrapperBaseProps {
|
|
7
6
|
fromCents?: Cents;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { InputWrapperBaseProps } from '../../internals/InputWrapper';
|
|
2
2
|
import { InputDateProps, MaybeDate } from '../InputDate/InputDateComponent';
|
|
3
|
-
|
|
4
3
|
export interface InputDateRangeProps extends Pick<InputDateProps, 'isClearable' | 'format' | 'autoPlaceholder' | 'showTimeSelect'>, InputWrapperBaseProps {
|
|
5
4
|
/** a tuple that represents the [from, to] dates */
|
|
6
5
|
value: [MaybeDate, MaybeDate];
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { GroupBase, SelectInstance } from 'react-select';
|
|
2
2
|
import { GenericAsyncSelectComponentProps } from './GenericAsyncComponent';
|
|
3
3
|
import { InputSelectValue } from './InputSelect';
|
|
4
|
-
|
|
5
4
|
export declare const AsyncSelectComponent: import('react').ForwardRefExoticComponent<GenericAsyncSelectComponentProps & import('react').RefAttributes<SelectInstance<InputSelectValue, boolean, GroupBase<InputSelectValue>>>>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { GroupBase, SelectInstance } from 'react-select';
|
|
2
2
|
import { GenericAsyncSelectComponentProps } from './GenericAsyncComponent';
|
|
3
3
|
import { InputSelectValue } from './InputSelect';
|
|
4
|
-
|
|
5
4
|
export declare const AsyncCreatableSelectComponent: import('react').ForwardRefExoticComponent<GenericAsyncSelectComponentProps & import('react').RefAttributes<SelectInstance<InputSelectValue, boolean, GroupBase<InputSelectValue>>>>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { GroupBase, SelectInstance, StylesConfig } from 'react-select';
|
|
2
2
|
import { InputSelectProps, InputSelectValue } from './InputSelect';
|
|
3
|
-
|
|
4
3
|
export interface CreatableComponentProps extends Omit<InputSelectProps, 'loadAsyncValues' | 'label' | 'hint'> {
|
|
5
4
|
styles: StylesConfig<InputSelectValue>;
|
|
6
5
|
}
|
|
@@ -3,7 +3,6 @@ import { default as AsyncSelect } from 'react-select/async';
|
|
|
3
3
|
import { default as AsyncCreatableSelect } from 'react-select/async-creatable';
|
|
4
4
|
import { SetRequired } from 'type-fest';
|
|
5
5
|
import { InputSelectProps, InputSelectValue } from './InputSelect';
|
|
6
|
-
|
|
7
6
|
export interface GenericAsyncSelectComponentProps extends Omit<SetRequired<InputSelectProps, 'loadAsyncValues'>, 'label' | 'hint'> {
|
|
8
7
|
styles: StylesConfig<InputSelectValue>;
|
|
9
8
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { InputWrapperBaseProps } from '../../internals/InputWrapper';
|
|
2
2
|
import { FocusEventHandler } from 'react';
|
|
3
3
|
import { GroupBase, MultiValue, Options, SelectInstance, SingleValue } from 'react-select';
|
|
4
|
-
|
|
5
4
|
export type GroupedSelectValues = Array<{
|
|
6
5
|
label?: string;
|
|
7
6
|
options: InputSelectValue[];
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { GroupBase, SelectInstance, StylesConfig } from 'react-select';
|
|
2
2
|
import { InputSelectProps, InputSelectValue } from './InputSelect';
|
|
3
|
-
|
|
4
3
|
export interface SelectComponentProps extends Omit<InputSelectProps, 'loadAsyncValues' | 'label' | 'hint'> {
|
|
5
4
|
styles: StylesConfig<InputSelectValue>;
|
|
6
5
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ClearIndicatorProps, DropdownIndicatorProps, GroupBase, GroupHeadingProps, MenuListProps, MultiValueGenericProps } from 'react-select';
|
|
2
2
|
import { InputSelectValue } from '.';
|
|
3
|
-
|
|
4
3
|
declare function DropdownIndicator(props: DropdownIndicatorProps<InputSelectValue>): JSX.Element;
|
|
5
4
|
declare function ClearIndicator(props: ClearIndicatorProps<InputSelectValue>): JSX.Element;
|
|
6
5
|
declare function MultiValueContainer(props: MultiValueGenericProps<MultiValueGenericProps<InputSelectValue, boolean, GroupBase<InputSelectValue>>>): JSX.Element;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { InputWrapperBaseProps } from '../../internals/InputWrapper';
|
|
2
|
-
|
|
3
2
|
export interface InputSwitchProps extends InputWrapperBaseProps, Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type' | 'value'> {
|
|
4
3
|
}
|
|
5
4
|
export declare const InputSwitch: import('react').ForwardRefExoticComponent<InputSwitchProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { InputWrapperBaseProps } from '../../internals/InputWrapper';
|
|
2
|
-
|
|
3
2
|
export interface InputTextAreaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement>, InputWrapperBaseProps {
|
|
4
3
|
}
|
|
5
4
|
export declare const InputTextArea: import('react').ForwardRefExoticComponent<InputTextAreaProps & import('react').RefAttributes<HTMLTextAreaElement>>;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { Resource } from '@commercelayer/sdk';
|
|
2
|
-
|
|
3
2
|
export interface ResourceDetailsProps {
|
|
4
3
|
resource: Resource;
|
|
4
|
+
onUpdated: () => Promise<void>;
|
|
5
5
|
}
|
|
6
6
|
/**
|
|
7
7
|
* This component provides a listed visualization of details attributes of a given resource.
|
|
8
8
|
*/
|
|
9
9
|
export declare const ResourceDetails: import('../../atoms/SkeletonTemplate').SkeletonTemplateComponent<{
|
|
10
10
|
resource: Resource;
|
|
11
|
+
onUpdated: () => Promise<void>;
|
|
11
12
|
delayMs?: number | undefined;
|
|
12
13
|
isLoading?: boolean | undefined;
|
|
13
14
|
}>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ResourceDetailsProps } from './ResourceDetails';
|
|
2
|
+
export declare const ResourceDetailsForm: import('../../atoms/SkeletonTemplate').SkeletonTemplateComponent<{
|
|
3
|
+
resource: ResourceDetailsProps["resource"];
|
|
4
|
+
onUpdated: ResourceDetailsProps["onUpdated"];
|
|
5
|
+
delayMs?: number | undefined;
|
|
6
|
+
isLoading?: boolean | undefined;
|
|
7
|
+
}>;
|