@commercelayer/app-elements 2.8.3 → 2.9.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.
Files changed (198) hide show
  1. package/dist/InputDateComponent-DllMLsS1.js +6188 -0
  2. package/dist/dictionaries/customers.d.ts +0 -1
  3. package/dist/dictionaries/orders.d.ts +0 -1
  4. package/dist/dictionaries/promotions.d.ts +0 -1
  5. package/dist/dictionaries/returns.d.ts +0 -1
  6. package/dist/dictionaries/shipments.d.ts +0 -1
  7. package/dist/dictionaries/stockTransfers.d.ts +0 -1
  8. package/dist/dictionaries/types.d.ts +0 -1
  9. package/dist/helpers/appsNavigation.d.ts +0 -1
  10. package/dist/helpers/attachments.d.ts +0 -1
  11. package/dist/helpers/currencies.d.ts +0 -1
  12. package/dist/helpers/date.d.ts +0 -1
  13. package/dist/helpers/resources.d.ts +0 -1
  14. package/dist/helpers/tracking.d.ts +0 -1
  15. package/dist/hooks/useClickAway.d.ts +0 -1
  16. package/dist/hooks/useEditMetadataOverlay.d.ts +0 -1
  17. package/dist/hooks/useEditTagsOverlay.d.ts +0 -1
  18. package/dist/hooks/useOverlay.d.ts +0 -1
  19. package/dist/{main-uMPiX52G.js → main-D1_o3ggn.js} +10431 -10407
  20. package/dist/main.d.ts +1 -2
  21. package/dist/main.js +102 -102
  22. package/dist/providers/CoreSdkProvider/CoreSdkProvider.d.ts +0 -1
  23. package/dist/providers/CoreSdkProvider/makeSdkClient.d.ts +0 -1
  24. package/dist/providers/CoreSdkProvider/useCoreApi.d.ts +0 -1
  25. package/dist/providers/ErrorBoundary.d.ts +0 -1
  26. package/dist/providers/GTMProvider.d.ts +0 -1
  27. package/dist/providers/TokenProvider/MockTokenProvider.d.ts +0 -1
  28. package/dist/providers/TokenProvider/TokenProvider.d.ts +0 -1
  29. package/dist/providers/TokenProvider/extras.d.ts +0 -1
  30. package/dist/providers/TokenProvider/getAccessTokenFromUrl.d.ts +0 -1
  31. package/dist/providers/TokenProvider/getInfoFromJwt.d.ts +0 -1
  32. package/dist/providers/TokenProvider/getOrganization.d.ts +0 -1
  33. package/dist/providers/TokenProvider/reducer.d.ts +0 -1
  34. package/dist/providers/TokenProvider/storage.d.ts +0 -1
  35. package/dist/providers/TokenProvider/types.d.ts +0 -1
  36. package/dist/providers/TokenProvider/validateToken.d.ts +0 -1
  37. package/dist/providers/createApp.d.ts +0 -1
  38. package/dist/style.css +1 -1
  39. package/dist/ui/atoms/A.d.ts +0 -1
  40. package/dist/ui/atoms/Avatar.d.ts +0 -1
  41. package/dist/ui/atoms/Badge/Badge.d.ts +0 -1
  42. package/dist/ui/atoms/Button.d.ts +0 -1
  43. package/dist/ui/atoms/ButtonFilter.d.ts +0 -1
  44. package/dist/ui/atoms/Card.d.ts +4 -2
  45. package/dist/ui/atoms/CodeBlock.d.ts +0 -1
  46. package/dist/ui/atoms/EmptyState.d.ts +0 -1
  47. package/dist/ui/atoms/Grid.d.ts +0 -1
  48. package/dist/ui/atoms/Hint.d.ts +0 -1
  49. package/dist/ui/atoms/Icon/Icon.d.ts +0 -1
  50. package/dist/ui/atoms/PageHeading/PageHeading.d.ts +0 -1
  51. package/dist/ui/atoms/PageHeading/PageHeadingToolbar.d.ts +0 -1
  52. package/dist/ui/atoms/RadialProgress.d.ts +0 -1
  53. package/dist/ui/atoms/ScrollToTop.d.ts +0 -1
  54. package/dist/ui/atoms/Section.d.ts +0 -1
  55. package/dist/ui/atoms/Skeleton.d.ts +0 -1
  56. package/dist/ui/atoms/SkeletonTemplate.d.ts +0 -1
  57. package/dist/ui/atoms/Spacer.d.ts +0 -1
  58. package/dist/ui/atoms/Stack.d.ts +0 -1
  59. package/dist/ui/atoms/StatusIcon.d.ts +0 -1
  60. package/dist/ui/atoms/Table/Table.d.ts +0 -1
  61. package/dist/ui/atoms/Table/Td.d.ts +0 -1
  62. package/dist/ui/atoms/Tabs.d.ts +0 -1
  63. package/dist/ui/atoms/Tag.d.ts +0 -1
  64. package/dist/ui/atoms/Text.d.ts +0 -1
  65. package/dist/ui/atoms/Tooltip.d.ts +0 -1
  66. package/dist/ui/composite/ActionButtons/ActionButtons.d.ts +0 -1
  67. package/dist/ui/composite/Dropdown/Dropdown.d.ts +0 -1
  68. package/dist/ui/composite/Dropdown/DropdownDivider.d.ts +0 -1
  69. package/dist/ui/composite/Dropdown/DropdownItem.d.ts +4 -3
  70. package/dist/ui/composite/Dropdown/DropdownMenu.d.ts +0 -1
  71. package/dist/ui/composite/HomePageLayout.d.ts +0 -1
  72. package/dist/ui/composite/List.d.ts +0 -1
  73. package/dist/ui/composite/ListDetails.d.ts +0 -1
  74. package/dist/ui/composite/ListDetailsItem.d.ts +0 -1
  75. package/dist/ui/composite/ListItem.d.ts +0 -1
  76. package/dist/ui/composite/PageError.d.ts +0 -1
  77. package/dist/ui/composite/PageLayout.d.ts +0 -1
  78. package/dist/ui/composite/Report.d.ts +0 -1
  79. package/dist/ui/composite/Routes/Routes.d.ts +0 -1
  80. package/dist/ui/composite/Routes/utils.d.ts +0 -1
  81. package/dist/ui/composite/SearchBar.d.ts +0 -1
  82. package/dist/ui/composite/TableData.d.ts +0 -1
  83. package/dist/ui/composite/Timeline.d.ts +0 -1
  84. package/dist/ui/composite/Toolbar.d.ts +0 -1
  85. package/dist/ui/forms/Form/HookedForm.d.ts +0 -1
  86. package/dist/ui/forms/Input/HookedInput.d.ts +0 -1
  87. package/dist/ui/forms/Input/Input.d.ts +0 -1
  88. package/dist/ui/forms/InputCheckbox/HookedInputCheckbox.d.ts +0 -1
  89. package/dist/ui/forms/InputCheckbox/InputCheckbox.d.ts +0 -1
  90. package/dist/ui/forms/InputCheckboxGroup/HookedInputCheckboxGroup.d.ts +0 -1
  91. package/dist/ui/forms/InputCheckboxGroup/InputCheckboxGroup.d.ts +0 -1
  92. package/dist/ui/forms/InputCheckboxGroup/InputCheckboxGroupItem.d.ts +0 -1
  93. package/dist/ui/forms/InputCheckboxGroup/reducer.d.ts +0 -1
  94. package/dist/ui/forms/InputCurrency/HookedInputCurrency.d.ts +0 -1
  95. package/dist/ui/forms/InputCurrency/InputCurrency.d.ts +0 -1
  96. package/dist/ui/forms/InputCurrency/utils.d.ts +0 -1
  97. package/dist/ui/forms/InputCurrencyRange.d.ts +0 -1
  98. package/dist/ui/forms/InputDate/HookedInputDate.d.ts +0 -1
  99. package/dist/ui/forms/InputDate/InputDate.d.ts +0 -1
  100. package/dist/ui/forms/InputDate/InputDateComponent.d.ts +0 -1
  101. package/dist/ui/forms/InputDateRange/HookedInputDateRange.d.ts +0 -1
  102. package/dist/ui/forms/InputDateRange/InputDateRange.d.ts +0 -1
  103. package/dist/ui/forms/InputFile.d.ts +0 -1
  104. package/dist/ui/forms/InputJson.d.ts +0 -1
  105. package/dist/ui/forms/InputRadioGroup/HookedInputRadioGroup.d.ts +0 -1
  106. package/dist/ui/forms/InputRadioGroup/InputRadioGroup.d.ts +0 -1
  107. package/dist/ui/forms/InputResourceGroup/FullList.d.ts +0 -1
  108. package/dist/ui/forms/InputResourceGroup/HookedInputResourceGroup.d.ts +0 -1
  109. package/dist/ui/forms/InputResourceGroup/InputResourceGroup.d.ts +0 -1
  110. package/dist/ui/forms/InputResourceGroup/utils.d.ts +0 -1
  111. package/dist/ui/forms/InputSelect/AsyncComponent.d.ts +0 -1
  112. package/dist/ui/forms/InputSelect/AsyncCreatableComponent.d.ts +0 -1
  113. package/dist/ui/forms/InputSelect/CreatableComponent.d.ts +0 -1
  114. package/dist/ui/forms/InputSelect/GenericAsyncComponent.d.ts +0 -1
  115. package/dist/ui/forms/InputSelect/HookedInputSelect.d.ts +0 -1
  116. package/dist/ui/forms/InputSelect/InputSelect.d.ts +0 -1
  117. package/dist/ui/forms/InputSelect/SelectComponent.d.ts +0 -1
  118. package/dist/ui/forms/InputSelect/overrides.d.ts +0 -1
  119. package/dist/ui/forms/InputSelect/styles.d.ts +0 -1
  120. package/dist/ui/forms/InputSelect/utils.d.ts +0 -1
  121. package/dist/ui/forms/InputSimpleSelect/HookedInputSimpleSelect.d.ts +0 -1
  122. package/dist/ui/forms/InputSimpleSelect/InputSimpleSelect.d.ts +0 -1
  123. package/dist/ui/forms/InputSpinner/HookedInputSpinner.d.ts +0 -1
  124. package/dist/ui/forms/InputSpinner/InputSpinner.d.ts +0 -1
  125. package/dist/ui/forms/InputSwitch/HookedInputSwitch.d.ts +0 -1
  126. package/dist/ui/forms/InputSwitch/InputSwitch.d.ts +0 -1
  127. package/dist/ui/forms/InputTextArea/HookedInputTextArea.d.ts +0 -1
  128. package/dist/ui/forms/InputTextArea/InputTextArea.d.ts +0 -1
  129. package/dist/ui/forms/InputToggleButton/HookedInputToggleButton.d.ts +0 -1
  130. package/dist/ui/forms/InputToggleButton/InputToggleButton.d.ts +0 -1
  131. package/dist/ui/forms/MarketWithCurrencySelector/HookedMarketWithCurrencySelector.d.ts +0 -1
  132. package/dist/ui/forms/ReactHookForm/setApiFormErrors.d.ts +0 -1
  133. package/dist/ui/forms/ReactHookForm/useValidationFeedback.d.ts +0 -1
  134. package/dist/ui/internals/FlexRow.d.ts +0 -1
  135. package/dist/ui/internals/InputWrapper.d.ts +0 -1
  136. package/dist/ui/resources/ResourceAddress/ResourceAddress.d.ts +0 -1
  137. package/dist/ui/resources/ResourceAddress/ResourceAddressForm.d.ts +0 -1
  138. package/dist/ui/resources/ResourceAddress/ResourceAddressFormFields.d.ts +0 -1
  139. package/dist/ui/resources/ResourceAddress/useResourceAddressOverlay.d.ts +0 -1
  140. package/dist/ui/resources/ResourceDetails/ResourceDetails.d.ts +0 -1
  141. package/dist/ui/resources/ResourceLineItems/ResourceLineItems.d.ts +0 -1
  142. package/dist/ui/resources/ResourceLineItems/types.d.ts +0 -1
  143. package/dist/ui/resources/ResourceListItem/ResourceListItem.d.ts +0 -1
  144. package/dist/ui/resources/ResourceListItem/common.d.ts +0 -1
  145. package/dist/ui/resources/ResourceListItem/transformers/customers.d.ts +0 -1
  146. package/dist/ui/resources/ResourceListItem/transformers/orders.d.ts +0 -1
  147. package/dist/ui/resources/ResourceListItem/transformers/promotions.d.ts +0 -1
  148. package/dist/ui/resources/ResourceListItem/transformers/returns.d.ts +0 -1
  149. package/dist/ui/resources/ResourceListItem/transformers/shipments.d.ts +0 -1
  150. package/dist/ui/resources/ResourceListItem/transformers/skuListItem.d.ts +0 -1
  151. package/dist/ui/resources/ResourceListItem/transformers/stockTransfers.d.ts +0 -1
  152. package/dist/ui/resources/ResourceListItem/types.d.ts +0 -1
  153. package/dist/ui/resources/ResourceMetadata/ResourceMetadata.d.ts +0 -1
  154. package/dist/ui/resources/ResourceMetadata/ResourceMetadataForm.d.ts +0 -1
  155. package/dist/ui/resources/ResourceOrderTimeline.d.ts +0 -1
  156. package/dist/ui/resources/ResourceShipmentParcels.d.ts +0 -1
  157. package/dist/ui/resources/ResourceShipmentParcels.mocks.d.ts +0 -1
  158. package/dist/ui/resources/ResourceTags.d.ts +0 -1
  159. package/dist/ui/resources/useResourceFilters/FieldCurrencyRange.d.ts +0 -1
  160. package/dist/ui/resources/useResourceFilters/FieldOptions.d.ts +0 -1
  161. package/dist/ui/resources/useResourceFilters/FieldTextSearch.d.ts +0 -1
  162. package/dist/ui/resources/useResourceFilters/FieldTimeRange.d.ts +0 -1
  163. package/dist/ui/resources/useResourceFilters/FiltersForm.d.ts +0 -1
  164. package/dist/ui/resources/useResourceFilters/FiltersNav.d.ts +0 -1
  165. package/dist/ui/resources/useResourceFilters/FiltersSearchBar.d.ts +0 -1
  166. package/dist/ui/resources/useResourceFilters/adaptFormValuesToSdk.d.ts +0 -1
  167. package/dist/ui/resources/useResourceFilters/adaptFormValuesToUrlQuery.d.ts +0 -1
  168. package/dist/ui/resources/useResourceFilters/adaptSdkToMetrics.d.ts +0 -1
  169. package/dist/ui/resources/useResourceFilters/adaptSdkToUrlQuery.d.ts +0 -1
  170. package/dist/ui/resources/useResourceFilters/adaptUrlQueryToFormValues.d.ts +0 -1
  171. package/dist/ui/resources/useResourceFilters/adaptUrlQueryToSdk.d.ts +0 -1
  172. package/dist/ui/resources/useResourceFilters/adaptUrlQueryToUrlQuery.d.ts +0 -1
  173. package/dist/ui/resources/useResourceFilters/adapters.d.ts +0 -1
  174. package/dist/ui/resources/useResourceFilters/adapters.types.d.ts +0 -1
  175. package/dist/ui/resources/useResourceFilters/mockedInstructions.d.ts +0 -1
  176. package/dist/ui/resources/useResourceFilters/timeUtils.d.ts +0 -1
  177. package/dist/ui/resources/useResourceFilters/types.d.ts +0 -1
  178. package/dist/ui/resources/useResourceFilters/useResourceFilters.d.ts +5 -6
  179. package/dist/ui/resources/useResourceFilters/utils.d.ts +0 -1
  180. package/dist/ui/resources/{ResourceList → useResourceList}/VisibilityTrigger.d.ts +0 -1
  181. package/dist/ui/resources/{ResourceList → useResourceList}/adaptMetricsOrderToCore.d.ts +0 -1
  182. package/dist/ui/resources/useResourceList/index.d.ts +1 -0
  183. package/dist/ui/resources/{ResourceList → useResourceList}/infiniteFetcher.d.ts +1 -2
  184. package/dist/ui/resources/{ResourceList → useResourceList}/metricsApiClient.d.ts +1 -2
  185. package/dist/ui/resources/{ResourceList → useResourceList}/reducer.d.ts +0 -1
  186. package/dist/ui/resources/{ResourceList/ResourceList.d.ts → useResourceList/useResourceList.d.ts} +50 -45
  187. package/dist/utils/children.d.ts +0 -1
  188. package/dist/utils/extractHeaders.d.ts +0 -1
  189. package/dist/utils/text.d.ts +0 -1
  190. package/dist/vendor.css +1 -1
  191. package/package.json +22 -22
  192. package/dist/InputDateComponent-BHXJF53e.js +0 -5064
  193. package/dist/ui/resources/ResourceList/index.d.ts +0 -1
  194. /package/dist/ui/resources/{ResourceList → useResourceList}/VisibilityTrigger.test.d.ts +0 -0
  195. /package/dist/ui/resources/{ResourceList → useResourceList}/adaptMetricsOrderToCore.test.d.ts +0 -0
  196. /package/dist/ui/resources/{ResourceList/ResourceList.test.d.ts → useResourceList/useResourceList.test.d.ts} +0 -0
  197. /package/dist/ui/resources/{ResourceList → useResourceList}/utils.d.ts +0 -0
  198. /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,5 +1,4 @@
1
1
  import { FC } from 'react';
2
-
3
2
  export interface DropdownMenuProps extends React.HTMLAttributes<HTMLElement> {
4
3
  /** Menu content */
5
4
  children?: React.ReactNode;
@@ -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 { PaginationProps } from '../atoms/Pagination';
2
2
  import { ReactNode } from 'react';
3
-
4
3
  type ListPagination = {
5
4
  recordsPerPage: number;
6
5
  recordCount: number;
@@ -1,5 +1,4 @@
1
1
  import { ReactNode } from 'react';
2
-
3
2
  export interface ListDetailsProps {
4
3
  /**
5
4
  * Optional title to show on top of the list
@@ -1,5 +1,4 @@
1
1
  import { ReactNode } from 'react';
2
-
3
2
  export interface ListDetailsItemProps {
4
3
  /**
5
4
  * label to show on the left side. In a key/value pair, this is the `key`
@@ -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,5 +1,4 @@
1
1
  import { PageHeadingProps } from '../atoms/PageHeading';
2
-
3
2
  export interface PageErrorProps extends Pick<PageHeadingProps, 'navigationButton'> {
4
3
  /**
5
4
  * Main page title wrapped in a h1 element
@@ -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,5 +1,4 @@
1
1
  import { ReactNode } from 'react';
2
-
3
2
  interface ReportItem {
4
3
  label: string;
5
4
  count: ReactNode;
@@ -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,5 +1,4 @@
1
1
  import { SkeletonTemplateProps } from '../atoms/SkeletonTemplate';
2
-
3
2
  export interface SearchBarProps extends Pick<SkeletonTemplateProps, 'isLoading' | 'delayMs'> {
4
3
  /**
5
4
  * Initial value of the search bar. When changed, the search bar will be updated.
@@ -1,5 +1,4 @@
1
1
  import { JsonObject } from 'type-fest';
2
-
3
2
  export interface TableDataProps {
4
3
  /** Data to render in the table */
5
4
  data: JsonObject[];
@@ -1,5 +1,4 @@
1
1
  import { ReactNode } from 'react';
2
-
3
2
  export interface TimelineEvent {
4
3
  date: string;
5
4
  author?: string;
@@ -1,7 +1,6 @@
1
1
  import { ButtonProps } from '../atoms/Button';
2
2
  import { IconProps } from '../atoms/Icon';
3
3
  import { DropdownItemProps } from './Dropdown';
4
-
5
4
  export interface ToolbarItem {
6
5
  label?: string;
7
6
  icon?: IconProps['name'];
@@ -1,5 +1,4 @@
1
1
  import { FieldValues, FormProviderProps } from 'react-hook-form';
2
-
3
2
  interface FormProps<T extends FieldValues> extends FormProviderProps<T> {
4
3
  /**
5
4
  * Callback invoked on submit when form has been successfully validated
@@ -1,5 +1,4 @@
1
1
  import { InputProps } from './Input';
2
-
3
2
  export interface HookedInputProps extends InputProps {
4
3
  /**
5
4
  * field name to match hook-form state
@@ -1,5 +1,4 @@
1
1
  import { InputWrapperBaseProps } from '../../internals/InputWrapper';
2
-
3
2
  export interface InputProps extends InputWrapperBaseProps, Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type'> {
4
3
  /**
5
4
  * Controlled type
@@ -1,5 +1,4 @@
1
1
  import { InputCheckboxProps } from './InputCheckbox';
2
-
3
2
  export interface HookedInputCheckboxProps extends Omit<InputCheckboxProps, 'onChange' | 'checked' | 'feedback' | 'defaultValue' | 'defaultChecked'> {
4
3
  /**
5
4
  * field name to match hook-form state
@@ -1,5 +1,4 @@
1
1
  import { InputWrapperBaseProps } from '../../internals/InputWrapper';
2
-
3
2
  export interface InputCheckboxProps extends Omit<InputWrapperBaseProps, 'label' | 'inline'>, Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type' | 'value'> {
4
3
  /**
5
4
  * Icon component
@@ -1,5 +1,4 @@
1
1
  import { InputCheckboxGroupProps } from './InputCheckboxGroup';
2
-
3
2
  export interface HookedInputCheckboxGroupProps extends Omit<InputCheckboxGroupProps, 'onChange' | 'defaultValues'> {
4
3
  /**
5
4
  * field name to match hook-form state
@@ -1,6 +1,5 @@
1
1
  import { ComponentProps } from 'react';
2
2
  import { InputCheckboxGroupOption } from './InputCheckboxGroupItem';
3
-
4
3
  export interface SelectedItem {
5
4
  /**
6
5
  * Item identifier, should be one of the options
@@ -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,6 +1,5 @@
1
1
  import { SelectedItem } from './InputCheckboxGroup';
2
2
  import { InputCheckboxGroupOption } from './InputCheckboxGroupItem';
3
-
4
3
  export type InternalState = Array<{
5
4
  value: string;
6
5
  quantity?: number;
@@ -1,5 +1,4 @@
1
1
  import { InputCurrencyProps } from './InputCurrency';
2
-
3
2
  export interface HookedInputCurrencyProps extends Omit<InputCurrencyProps, 'onChange' | 'onBlur' | 'cents'> {
4
3
  /**
5
4
  * field name to match hook-form state
@@ -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,5 +1,4 @@
1
1
  import { Currency, CurrencyCode } from '../../../helpers/currencies';
2
-
3
2
  /**
4
3
  * Returns a currency object for a given currency code
5
4
  */
@@ -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,5 +1,4 @@
1
1
  import { InputDateProps } from './InputDateComponent';
2
-
3
2
  export interface HookedInputDateProps extends Omit<InputDateProps, 'onChange'> {
4
3
  /**
5
4
  * field name to match hook-form state
@@ -1,4 +1,3 @@
1
1
  import { default as DatePicker } from 'react-datepicker';
2
2
  import { InputDateProps } from './InputDateComponent';
3
-
4
3
  export declare const InputDate: import('react').ForwardRefExoticComponent<InputDateProps & import('react').RefAttributes<DatePicker>>;
@@ -1,6 +1,5 @@
1
1
  import { default as DatePicker } from 'react-datepicker';
2
2
  import { InputWrapperBaseProps } from '../../internals/InputWrapper';
3
-
4
3
  export type MaybeDate = Date | null;
5
4
  export interface InputDateProps extends InputWrapperBaseProps {
6
5
  /**
@@ -1,5 +1,4 @@
1
1
  import { InputDateRangeProps } from './InputDateRange';
2
-
3
2
  export interface HookedInputDateRangeProps extends Omit<InputDateRangeProps, 'onChange' | 'value'> {
4
3
  /**
5
4
  * field name to match hook-form state
@@ -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 { InputWrapperBaseProps } from '../internals/InputWrapper';
2
-
3
2
  export interface InputFileProps extends InputWrapperBaseProps, Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type'> {
4
3
  /**
5
4
  * The title is shown within the input.
@@ -1,5 +1,4 @@
1
1
  import { InputWrapperBaseProps } from '../internals/InputWrapper';
2
-
3
2
  export interface InputJsonProps<JsonType> extends InputWrapperBaseProps {
4
3
  placeholder: object;
5
4
  validateFn: (json: any) => JsonType;
@@ -1,5 +1,4 @@
1
1
  import { InputRadioGroupProps } from './InputRadioGroup';
2
-
3
2
  export interface HookedInputRadioGroupProps extends Omit<InputRadioGroupProps, 'onChange' | 'defaultValues'> {
4
3
  /**
5
4
  * field name to match hook-form state
@@ -1,5 +1,4 @@
1
1
  import { ComponentProps, ReactNode } from 'react';
2
-
3
2
  interface OptionItem {
4
3
  /**
5
4
  * Item identifier, must be unique and will be used for the onChange callback
@@ -1,6 +1,5 @@
1
1
  import { OverlayProps } from '../../internals/Overlay';
2
2
  import { ListableResourceType } from '@commercelayer/sdk';
3
-
4
3
  export interface SortBy {
5
4
  attribute: string;
6
5
  direction: 'asc' | 'desc';
@@ -1,5 +1,4 @@
1
1
  import { InputResourceGroupProps } from './InputResourceGroup';
2
-
3
2
  export interface HookedInputResourceGroupProps extends Omit<InputResourceGroupProps, 'onChange' | 'defaultValues'> {
4
3
  /**
5
4
  * field name to match hook-form state
@@ -1,6 +1,5 @@
1
1
  import { QueryFilter } from '@commercelayer/sdk';
2
2
  import { FullListProps } from './FullList';
3
-
4
3
  export interface InputResourceGroupProps extends Omit<FullListProps, 'totalCount'> {
5
4
  /**
6
5
  * Number of item to be shown in the preview list
@@ -1,5 +1,4 @@
1
1
  import { CommerceLayerClient, ListableResourceType } from '@commercelayer/sdk';
2
-
3
2
  export declare function useToggleCheckboxValues(defaultValues: string[]): {
4
3
  values: string[];
5
4
  toggleValue: (value: string) => void;
@@ -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,5 +1,4 @@
1
1
  import { InputSelectProps, PossibleSelectValue } from './InputSelect';
2
-
3
2
  export interface HookedInputSelectProps extends Omit<InputSelectProps, 'onSelect' | 'defaultValue'> {
4
3
  /**
5
4
  * field name to match hook-form state
@@ -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 { InputFeedbackProps } from '../InputFeedback';
2
2
  import { StylesConfig } from 'react-select';
3
3
  import { InputSelectValue } from '.';
4
-
5
4
  export declare const getSelectStyles: (feedbackVariant?: InputFeedbackProps["variant"]) => StylesConfig<InputSelectValue>;
@@ -1,5 +1,4 @@
1
1
  import { GroupedSelectValues, InputSelectValue, PossibleSelectValue } from './InputSelect';
2
-
3
2
  /**
4
3
  * Helper function to understand and refine type of a single selected value
5
4
  * @param selectedValue possible value returned from select component
@@ -1,5 +1,4 @@
1
1
  import { InputSimpleSelectProps } from './InputSimpleSelect';
2
-
3
2
  export interface HookedInputSimpleSelectProps extends InputSimpleSelectProps {
4
3
  /**
5
4
  * field name to match hook-form state
@@ -1,5 +1,4 @@
1
1
  import { InputWrapperBaseProps } from '../../internals/InputWrapper';
2
-
3
2
  interface InputSimpleSelectOption {
4
3
  value: string;
5
4
  label: string;
@@ -1,5 +1,4 @@
1
1
  import { InputSpinnerProps } from './InputSpinner';
2
-
3
2
  export interface HookedInputSpinnerProps extends Omit<InputSpinnerProps, 'onChange' | 'defaultValues'> {
4
3
  /**
5
4
  * field name to match hook-form state
@@ -1,5 +1,4 @@
1
1
  import { InputWrapperBaseProps } from '../../internals/InputWrapper';
2
-
3
2
  export interface InputSpinnerProps extends InputWrapperBaseProps, Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type' | 'value' | 'onChange'> {
4
3
  min?: number;
5
4
  max?: number;
@@ -1,5 +1,4 @@
1
1
  import { InputSwitchProps } from './InputSwitch';
2
-
3
2
  export interface HookedInputSwitchProps extends InputSwitchProps {
4
3
  /**
5
4
  * field name to match hook-form state
@@ -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 { InputTextAreaProps } from './InputTextArea';
2
-
3
2
  export interface HookedInputTextAreaProps extends InputTextAreaProps {
4
3
  /**
5
4
  * field name to match hook-form state
@@ -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,5 +1,4 @@
1
1
  import { InputToggleButtonProps } from './InputToggleButton';
2
-
3
2
  export type HookedInputToggleButtonProps = Omit<InputToggleButtonProps, 'value' | 'onChange'> & {
4
3
  /**
5
4
  * field name to match hook-form state
@@ -1,6 +1,5 @@
1
1
  import { InputWrapperBaseProps } from '../../internals/InputWrapper';
2
2
  import { Simplify } from 'type-fest';
3
-
4
3
  type ToggleButtonValue = string | boolean | number;
5
4
  interface ToggleButtonOption {
6
5
  label: string;
@@ -1,6 +1,5 @@
1
1
  import { InputSelectProps } from '../InputSelect';
2
2
  import { FC } from 'react';
3
-
4
3
  export interface HookedMarketWithCurrencySelectorProps extends Pick<InputSelectProps, 'hint' | 'label' | 'isDisabled'> {
5
4
  /**
6
5
  * Market input name where market ID is stored.
@@ -1,5 +1,4 @@
1
1
  import { UseFormSetError } from 'react-hook-form';
2
-
3
2
  export declare function setApiFormErrors({ apiError, setError, fieldMap, formFields }: {
4
3
  /**
5
4
  * Error response from API
@@ -1,5 +1,4 @@
1
1
  import { InputFeedbackProps } from '../InputFeedback';
2
-
3
2
  type MaybeFeedback = Omit<InputFeedbackProps, 'className'> | undefined;
4
3
  export declare function useValidationFeedback(name: string): MaybeFeedback;
5
4
  export {};
@@ -1,5 +1,4 @@
1
1
  import { ReactNode } from 'react';
2
-
3
2
  export type FlexRowAlignItems = 'top' | 'bottom' | 'center';
4
3
  export interface FlexRowProps extends React.HTMLAttributes<HTMLDivElement> {
5
4
  children: ReactNode;
@@ -1,6 +1,5 @@
1
1
  import { HintProps } from '../atoms/Hint';
2
2
  import { InputFeedbackProps } from '../forms/InputFeedback';
3
-
4
3
  export interface InputWrapperBaseProps {
5
4
  /**
6
5
  * Optional input label
@@ -1,5 +1,4 @@
1
1
  import { Address } from '@commercelayer/sdk';
2
-
3
2
  export interface ResourceAddressProps {
4
3
  /**
5
4
  * Resource of type `Address`
@@ -1,5 +1,4 @@
1
1
  import { Address } from '@commercelayer/sdk';
2
-
3
2
  export declare const ResourceAddressForm: import('../../atoms/SkeletonTemplate').SkeletonTemplateComponent<{
4
3
  address: Address;
5
4
  onChange: (updatedAddress: Address) => void;
@@ -1,5 +1,4 @@
1
1
  import { z } from 'zod';
2
-
3
2
  export declare const resourceAddressFormFieldsSchema: z.ZodEffects<z.ZodObject<{
4
3
  business: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>>;
5
4
  first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1,5 +1,4 @@
1
1
  import { Address } from '@commercelayer/sdk';
2
-
3
2
  export declare const useResourceAddressOverlay: ({ title, address, showBillingInfo, showNotes, onUpdate }: {
4
3
  title?: string;
5
4
  address: Address;
@@ -1,5 +1,4 @@
1
1
  import { Resource } from '@commercelayer/sdk';
2
-
3
2
  export interface ResourceDetailsProps {
4
3
  resource: Resource;
5
4
  }
@@ -1,7 +1,6 @@
1
1
  import { LineItem, ParcelLineItem, ReturnLineItem } from '@commercelayer/sdk';
2
2
  import { ComponentProps } from 'react';
3
3
  import { StockLineItemWithStockTransfer } from './types';
4
-
5
4
  type Item = LineItem | ParcelLineItem | StockLineItemWithStockTransfer | ReturnLineItem;
6
5
  export type ResourceLineItemsProps = ComponentProps<typeof ResourceLineItems>;
7
6
  /**
@@ -1,5 +1,4 @@
1
1
  import { StockLineItem, StockTransfer } from '@commercelayer/sdk';
2
-
3
2
  export type StockLineItemWithStockTransfer = StockLineItem & {
4
3
  stockTransfer?: StockTransfer;
5
4
  };