@commercelayer/app-elements 5.6.0 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (217) hide show
  1. package/dist/CodeEditorComponent-9BjmYH9v.js +720 -0
  2. package/dist/InputDateComponent-DeKe0ONv.js +4887 -0
  3. package/dist/RuleEngineComponent-C1DXm3EO.js +1404 -0
  4. package/dist/dictionaries/customers.d.ts +1 -1
  5. package/dist/dictionaries/orders.d.ts +7 -7
  6. package/dist/dictionaries/promotions.d.ts +2 -2
  7. package/dist/dictionaries/returns.d.ts +4 -4
  8. package/dist/dictionaries/shipments.d.ts +4 -4
  9. package/dist/dictionaries/stockTransfers.d.ts +4 -4
  10. package/dist/dictionaries/types.d.ts +2 -2
  11. package/dist/fetchCoreResourcesSuggestions-DLZhtrDX.js +124 -0
  12. package/dist/helpers/appsNavigation.d.ts +2 -2
  13. package/dist/helpers/attachments.d.ts +1 -1
  14. package/dist/helpers/date.d.ts +13 -13
  15. package/dist/helpers/downloadJsonAsFile.d.ts +1 -1
  16. package/dist/helpers/resources.d.ts +4 -4
  17. package/dist/helpers/tracking.d.ts +4 -4
  18. package/dist/hooks/useClickAway.d.ts +1 -1
  19. package/dist/hooks/useEditMetadataOverlay.d.ts +3 -3
  20. package/dist/hooks/useEditTagsOverlay.d.ts +2 -2
  21. package/dist/hooks/useIsChanged.d.ts +1 -1
  22. package/dist/{main-YD7ko8U-.js → main-BANV9Udl.js} +26949 -28776
  23. package/dist/main.d.ts +60 -60
  24. package/dist/main.js +1 -1
  25. package/dist/{parseISO-Cq_loYUP.js → parseISO-8P5gMU86.js} +17 -17
  26. package/dist/providers/CoreSdkProvider/CoreSdkProvider.d.ts +1 -1
  27. package/dist/providers/CoreSdkProvider/makeSdkClient.d.ts +1 -1
  28. package/dist/providers/CoreSdkProvider/useCoreApi.d.ts +1 -1
  29. package/dist/providers/GTMProvider.d.ts +1 -1
  30. package/dist/providers/TokenProvider/MockTokenProvider.d.ts +1 -1
  31. package/dist/providers/TokenProvider/TokenProvider.d.ts +1 -1
  32. package/dist/providers/TokenProvider/getAccessTokenFromUrl.d.ts +1 -1
  33. package/dist/providers/TokenProvider/index.d.ts +1 -1
  34. package/dist/providers/TokenProvider/reducer.d.ts +2 -2
  35. package/dist/providers/TokenProvider/storage.d.ts +4 -4
  36. package/dist/providers/TokenProvider/types.d.ts +10 -10
  37. package/dist/providers/TokenProvider/url.d.ts +1 -1
  38. package/dist/providers/TokenProvider/validateToken.d.ts +2 -2
  39. package/dist/providers/createApp.d.ts +1 -1
  40. package/dist/style.css +1 -1
  41. package/dist/tailwind.global.css +291 -0
  42. package/dist/ui/atoms/A.d.ts +1 -1
  43. package/dist/ui/atoms/Alert.d.ts +1 -1
  44. package/dist/ui/atoms/Avatar.d.ts +3 -3
  45. package/dist/ui/atoms/Avatar.utils.d.ts +18 -18
  46. package/dist/ui/atoms/AvatarLetter/colors.d.ts +1 -1
  47. package/dist/ui/atoms/Badge/Badge.d.ts +3 -3
  48. package/dist/ui/atoms/Badge/badgeVariants.d.ts +1 -1
  49. package/dist/ui/atoms/ButtonFilter.d.ts +1 -1
  50. package/dist/ui/atoms/Card.d.ts +15 -11
  51. package/dist/ui/atoms/CodeBlock.d.ts +1 -1
  52. package/dist/ui/atoms/EmptyState.d.ts +1 -1
  53. package/dist/ui/atoms/Grid.d.ts +6 -6
  54. package/dist/ui/atoms/Hint.d.ts +1 -1
  55. package/dist/ui/atoms/Hr.d.ts +2 -2
  56. package/dist/ui/atoms/Icon/Icon.d.ts +2 -2
  57. package/dist/ui/atoms/Icon/icons.d.ts +1 -1
  58. package/dist/ui/atoms/PageHeading/PageHeading.d.ts +3 -3
  59. package/dist/ui/atoms/PageHeading/PageHeadingToolbar.d.ts +2 -2
  60. package/dist/ui/atoms/Progress.d.ts +1 -1
  61. package/dist/ui/atoms/RadialProgress.d.ts +2 -2
  62. package/dist/ui/atoms/Section.d.ts +2 -2
  63. package/dist/ui/atoms/Skeleton.d.ts +1 -1
  64. package/dist/ui/atoms/Spacer.d.ts +3 -3
  65. package/dist/ui/atoms/StatusDot.d.ts +1 -1
  66. package/dist/ui/atoms/StatusIcon.d.ts +2 -2
  67. package/dist/ui/atoms/Table/Table.d.ts +1 -1
  68. package/dist/ui/atoms/Tag.d.ts +3 -3
  69. package/dist/ui/atoms/Text.d.ts +6 -6
  70. package/dist/ui/atoms/Tooltip.d.ts +2 -2
  71. package/dist/ui/composite/ActionButtons/ActionButtons.d.ts +2 -2
  72. package/dist/ui/composite/Address.d.ts +1 -1
  73. package/dist/ui/composite/Dropdown/Dropdown.d.ts +1 -1
  74. package/dist/ui/composite/Dropdown/DropdownItem.d.ts +11 -7
  75. package/dist/ui/composite/Dropdown/DropdownMenu.d.ts +3 -3
  76. package/dist/ui/composite/HomePageLayout.d.ts +3 -3
  77. package/dist/ui/composite/List.d.ts +2 -2
  78. package/dist/ui/composite/ListDetails.d.ts +2 -2
  79. package/dist/ui/composite/ListDetailsItem.d.ts +3 -3
  80. package/dist/ui/composite/ListItem.d.ts +7 -7
  81. package/dist/ui/composite/PageError.d.ts +2 -2
  82. package/dist/ui/composite/PageLayout.d.ts +6 -6
  83. package/dist/ui/composite/Routes/Routes.d.ts +3 -3
  84. package/dist/ui/composite/Routes/index.d.ts +2 -2
  85. package/dist/ui/composite/Routes/utils.d.ts +5 -5
  86. package/dist/ui/composite/SearchBar.d.ts +1 -1
  87. package/dist/ui/composite/Timeline.d.ts +1 -1
  88. package/dist/ui/composite/Toast.d.ts +1 -1
  89. package/dist/ui/composite/Toolbar.d.ts +6 -6
  90. package/dist/ui/forms/CodeEditor/CodeEditorComponent.d.ts +4 -4
  91. package/dist/ui/forms/CodeEditor/HookedCodeEditor.d.ts +1 -1
  92. package/dist/ui/forms/CodeEditor/fetchCoreResourcesSuggestions.d.ts +7 -7
  93. package/dist/ui/forms/CodeEditor/index.d.ts +1 -1
  94. package/dist/ui/forms/Input/Input.d.ts +2 -2
  95. package/dist/ui/forms/InputCheckbox/HookedInputCheckbox.d.ts +1 -1
  96. package/dist/ui/forms/InputCheckbox/InputCheckbox.d.ts +2 -2
  97. package/dist/ui/forms/InputCheckbox/index.d.ts +1 -1
  98. package/dist/ui/forms/InputCheckboxGroup/HookedInputCheckboxGroup.d.ts +1 -1
  99. package/dist/ui/forms/InputCheckboxGroup/InputCheckboxGroupItem.d.ts +2 -2
  100. package/dist/ui/forms/InputCheckboxGroup/index.d.ts +2 -2
  101. package/dist/ui/forms/InputCheckboxGroup/reducer.d.ts +3 -3
  102. package/dist/ui/forms/InputCurrency/HookedInputCurrency.d.ts +1 -1
  103. package/dist/ui/forms/InputCurrency/InputCurrency.d.ts +3 -3
  104. package/dist/ui/forms/InputCurrency/index.d.ts +1 -1
  105. package/dist/ui/forms/InputCurrency/utils.d.ts +1 -1
  106. package/dist/ui/forms/InputCurrencyRange.d.ts +3 -3
  107. package/dist/ui/forms/InputDate/HookedInputDate.d.ts +1 -1
  108. package/dist/ui/forms/InputDateRange/HookedInputDateRange.d.ts +1 -1
  109. package/dist/ui/forms/InputDateRange/InputDateRange.d.ts +5 -5
  110. package/dist/ui/forms/InputDateRange/index.d.ts +1 -1
  111. package/dist/ui/forms/InputFeedback.d.ts +1 -1
  112. package/dist/ui/forms/InputFile.d.ts +1 -1
  113. package/dist/ui/forms/InputJson.d.ts +1 -1
  114. package/dist/ui/forms/InputRadioGroup/HookedInputRadioGroup.d.ts +1 -1
  115. package/dist/ui/forms/InputRadioGroup/index.d.ts +1 -1
  116. package/dist/ui/forms/InputResourceGroup/FullList.d.ts +3 -3
  117. package/dist/ui/forms/InputResourceGroup/HookedInputResourceGroup.d.ts +1 -1
  118. package/dist/ui/forms/InputResourceGroup/InputResourceGroup.d.ts +1 -1
  119. package/dist/ui/forms/InputResourceGroup/index.d.ts +2 -2
  120. package/dist/ui/forms/InputResourceGroup/utils.d.ts +3 -3
  121. package/dist/ui/forms/InputSelect/CreatableComponent.d.ts +1 -1
  122. package/dist/ui/forms/InputSelect/GenericAsyncComponent.d.ts +1 -1
  123. package/dist/ui/forms/InputSelect/HookedInputSelect.d.ts +1 -1
  124. package/dist/ui/forms/InputSelect/InputSelect.d.ts +1 -1
  125. package/dist/ui/forms/InputSelect/SelectComponent.d.ts +1 -1
  126. package/dist/ui/forms/InputSelect/index.d.ts +3 -3
  127. package/dist/ui/forms/InputSelect/styles.d.ts +1 -1
  128. package/dist/ui/forms/InputSelect/utils.d.ts +1 -1
  129. package/dist/ui/forms/InputSimpleSelect/InputSimpleSelect.d.ts +1 -1
  130. package/dist/ui/forms/InputSimpleSelect/index.d.ts +2 -2
  131. package/dist/ui/forms/InputSpinner/HookedInputSpinner.d.ts +1 -1
  132. package/dist/ui/forms/InputSpinner/InputSpinner.d.ts +1 -1
  133. package/dist/ui/forms/InputSpinner/index.d.ts +1 -1
  134. package/dist/ui/forms/InputSwitch/InputSwitch.d.ts +1 -1
  135. package/dist/ui/forms/InputSwitch/index.d.ts +1 -1
  136. package/dist/ui/forms/InputTextArea/index.d.ts +1 -1
  137. package/dist/ui/forms/InputToggleButton/HookedInputToggleButton.d.ts +1 -1
  138. package/dist/ui/forms/InputToggleButton/InputToggleButton.d.ts +4 -4
  139. package/dist/ui/forms/InputToggleButton/index.d.ts +2 -2
  140. package/dist/ui/forms/MarketWithCurrencySelector/HookedMarketWithCurrencySelector.d.ts +2 -2
  141. package/dist/ui/forms/MarketWithCurrencySelector/index.d.ts +1 -1
  142. package/dist/ui/forms/ReactHookForm/HookedValidationApiError.d.ts +1 -1
  143. package/dist/ui/forms/ReactHookForm/setApiFormErrors.d.ts +1 -1
  144. package/dist/ui/forms/ReactHookForm/useValidationFeedback.d.ts +1 -1
  145. package/dist/ui/forms/RuleEngine/Action/ActionListItem.d.ts +1 -1
  146. package/dist/ui/forms/RuleEngine/Action/ActionValue.d.ts +1 -1
  147. package/dist/ui/forms/RuleEngine/Action/index.d.ts +1 -1
  148. package/dist/ui/forms/RuleEngine/Condition/ArrayMatch.d.ts +0 -0
  149. package/dist/ui/forms/RuleEngine/Condition/ConditionListItem.d.ts +1 -1
  150. package/dist/ui/forms/RuleEngine/Condition/ConditionMatcher.d.ts +1 -1
  151. package/dist/ui/forms/RuleEngine/Condition/ConditionValue.d.ts +1 -1
  152. package/dist/ui/forms/RuleEngine/Condition/Connector.d.ts +0 -0
  153. package/dist/ui/forms/RuleEngine/Condition/RangeInputs.d.ts +0 -0
  154. package/dist/ui/forms/RuleEngine/Condition/ValueComponents/InputArrayMatch.d.ts +2 -2
  155. package/dist/ui/forms/RuleEngine/Condition/ValueComponents/InputNumberRange.d.ts +2 -2
  156. package/dist/ui/forms/RuleEngine/Condition/ValueComponents/InputTextRange.d.ts +2 -2
  157. package/dist/ui/forms/RuleEngine/Condition/dictionaries.d.ts +0 -0
  158. package/dist/ui/forms/RuleEngine/Condition/index.d.ts +1 -1
  159. package/dist/ui/forms/RuleEngine/Condition/types.d.ts +0 -0
  160. package/dist/ui/forms/RuleEngine/Condition/utils.d.ts +1 -1
  161. package/dist/ui/forms/RuleEngine/RuleEngineComponent.d.ts +4 -4
  162. package/dist/ui/forms/RuleEngine/RuleEngineContext.d.ts +1 -1
  163. package/dist/ui/forms/RuleEngine/utils.d.ts +6 -6
  164. package/dist/ui/internals/FlexRow.d.ts +1 -1
  165. package/dist/ui/internals/InputWrapper.d.ts +6 -6
  166. package/dist/ui/internals/InteractiveElement.className.d.ts +4 -4
  167. package/dist/ui/internals/Overlay.d.ts +1 -1
  168. package/dist/ui/resources/ResourceAddress/ResourceAddress.d.ts +2 -2
  169. package/dist/ui/resources/ResourceAddress/ResourceAddressFormFields.d.ts +1 -1
  170. package/dist/ui/resources/ResourceAddress/index.d.ts +1 -1
  171. package/dist/ui/resources/ResourceAddress/useResourceAddressOverlay.d.ts +2 -2
  172. package/dist/ui/resources/ResourceAttachments/index.d.ts +1 -1
  173. package/dist/ui/resources/ResourceDetails/useEditDetailsOverlay.d.ts +2 -2
  174. package/dist/ui/resources/ResourceLineItems/index.d.ts +1 -1
  175. package/dist/ui/resources/ResourceListItem/ResourceListItem.d.ts +2 -2
  176. package/dist/ui/resources/ResourceListItem/ResourceListItem.mocks.d.ts +9 -0
  177. package/dist/ui/resources/ResourceListItem/index.d.ts +1 -1
  178. package/dist/ui/resources/ResourceListItem/types.d.ts +3 -3
  179. package/dist/ui/resources/ResourceMetadata/ResourceMetadata.d.ts +2 -2
  180. package/dist/ui/resources/ResourceMetadata/index.d.ts +1 -1
  181. package/dist/ui/resources/ResourceOrderTimeline.d.ts +1 -1
  182. package/dist/ui/resources/ResourcePaymentMethod.d.ts +3 -3
  183. package/dist/ui/resources/ResourceShipmentParcels.mocks.d.ts +2 -2
  184. package/dist/ui/resources/ResourceTags.d.ts +3 -3
  185. package/dist/ui/resources/useResourceFilters/FieldCurrencyRange.d.ts +1 -2
  186. package/dist/ui/resources/useResourceFilters/FiltersForm.d.ts +1 -1
  187. package/dist/ui/resources/useResourceFilters/FiltersNav.d.ts +1 -2
  188. package/dist/ui/resources/useResourceFilters/FiltersSearchBar.d.ts +3 -3
  189. package/dist/ui/resources/useResourceFilters/adaptFormValuesToSdk.d.ts +1 -1
  190. package/dist/ui/resources/useResourceFilters/adaptFormValuesToUrlQuery.d.ts +1 -1
  191. package/dist/ui/resources/useResourceFilters/adaptSdkToMetrics.d.ts +4 -4
  192. package/dist/ui/resources/useResourceFilters/adaptSdkToUrlQuery.d.ts +2 -2
  193. package/dist/ui/resources/useResourceFilters/adaptUrlQueryToFormValues.d.ts +1 -1
  194. package/dist/ui/resources/useResourceFilters/adaptUrlQueryToSdk.d.ts +1 -1
  195. package/dist/ui/resources/useResourceFilters/adaptUrlQueryToUrlQuery.d.ts +1 -1
  196. package/dist/ui/resources/useResourceFilters/adapters.types.d.ts +8 -8
  197. package/dist/ui/resources/useResourceFilters/timeUtils.d.ts +1 -1
  198. package/dist/ui/resources/useResourceFilters/types.d.ts +18 -18
  199. package/dist/ui/resources/useResourceFilters/useResourceFilters.d.ts +10 -11
  200. package/dist/ui/resources/useResourceFilters/utils.d.ts +2 -2
  201. package/dist/ui/resources/useResourceList/adaptMetricsOrderToCore.d.ts +1 -1
  202. package/dist/ui/resources/useResourceList/index.d.ts +1 -1
  203. package/dist/ui/resources/useResourceList/infiniteFetcher.d.ts +5 -5
  204. package/dist/ui/resources/useResourceList/metricsApiClient.d.ts +4 -4
  205. package/dist/ui/resources/useResourceList/reducer.d.ts +5 -5
  206. package/dist/ui/resources/useResourceList/useResourceList.d.ts +10 -10
  207. package/dist/ui/resources/useResourceList/utils.d.ts +1 -1
  208. package/dist/utils/array.d.ts +1 -1
  209. package/dist/utils/htmltags.d.ts +1 -1
  210. package/dist/utils/pagination.d.ts +4 -4
  211. package/dist/vendor.css +2 -1
  212. package/package.json +38 -41
  213. package/dist/CodeEditorComponent-DhpbUF3I.js +0 -739
  214. package/dist/InputDateComponent-BZyuY3F6.js +0 -4964
  215. package/dist/RuleEngineComponent-UggkM5Zc.js +0 -1390
  216. package/dist/fetchCoreResourcesSuggestions-CZkDwjO2.js +0 -126
  217. package/dist/tailwind.config.js +0 -197
@@ -3,14 +3,14 @@ export interface DropdownMenuProps extends React.HTMLAttributes<HTMLElement> {
3
3
  /** Menu content */
4
4
  children?: React.ReactNode;
5
5
  /** Set to `none` to hide the top arrow */
6
- arrow?: 'none';
6
+ arrow?: "none";
7
7
  /** Optional header for the dropdown menu */
8
8
  menuHeader?: string;
9
9
  /**
10
10
  * Opening position of the dropdown menu
11
11
  * @default bottom-right
12
12
  */
13
- menuPosition?: 'bottom-left' | 'bottom-right' | 'top-left' | 'top-right';
13
+ menuPosition?: "bottom-left" | "bottom-right" | "top-left" | "top-right";
14
14
  /**
15
15
  * If set, the arrow will be centered when trigger button is smaller than 50px
16
16
  * Otherwise it will fallback to a default centering based on 32px trigger button
@@ -20,6 +20,6 @@ export interface DropdownMenuProps extends React.HTMLAttributes<HTMLElement> {
20
20
  * Set a wider menu, fixed to 280px.
21
21
  * By default, when no width is set, the menu adjusts its width dynamically to accommodate content, within a range of 150px to 250px.
22
22
  **/
23
- menuWidth?: 'wide';
23
+ menuWidth?: "wide";
24
24
  }
25
25
  export declare const DropdownMenu: FC<DropdownMenuProps>;
@@ -1,7 +1,7 @@
1
+ import { JSX, ReactNode } from 'react';
1
2
  import { PageHeadingProps } from '../atoms/PageHeading';
2
3
  import { PageHeadingToolbarProps } from '../atoms/PageHeading/PageHeadingToolbar';
3
- import { JSX, ReactNode } from 'react';
4
- export interface HomePageLayoutProps extends Pick<PageHeadingProps, 'title'> {
4
+ export interface HomePageLayoutProps extends Pick<PageHeadingProps, "title"> {
5
5
  /**
6
6
  * Page content
7
7
  */
@@ -15,7 +15,7 @@ export interface HomePageLayoutProps extends Pick<PageHeadingProps, 'title'> {
15
15
  * This component renders a standard `PageLayout` but holds some logic
16
16
  * to define some default behavior for the home page, such as the navigation button label and action.
17
17
  */
18
- export declare function HomePageLayout({ title, children, toolbar }: HomePageLayoutProps): JSX.Element;
18
+ export declare function HomePageLayout({ title, children, toolbar, }: HomePageLayoutProps): JSX.Element;
19
19
  export declare namespace HomePageLayout {
20
20
  var displayName: string;
21
21
  }
@@ -1,9 +1,9 @@
1
- import { PaginationProps } from '../atoms/Pagination';
2
1
  import { JSX, ReactNode } from 'react';
2
+ import { PaginationProps } from '../atoms/Pagination';
3
3
  type ListPagination = {
4
4
  recordsPerPage: number;
5
5
  recordCount: number;
6
- } & Omit<PaginationProps, 'className' | 'isDisabled'>;
6
+ } & Omit<PaginationProps, "className" | "isDisabled">;
7
7
  export interface ListProps {
8
8
  /**
9
9
  * List name displayed in the heading
@@ -15,7 +15,7 @@ export interface ListDetailsProps {
15
15
  /**
16
16
  * Font size
17
17
  */
18
- fontSize?: 'normal' | 'small';
18
+ fontSize?: "normal" | "small";
19
19
  /**
20
20
  * Show skeleton when this is `true`
21
21
  */
@@ -25,7 +25,7 @@ export interface ListDetailsProps {
25
25
  */
26
26
  loadingLines?: number;
27
27
  }
28
- declare function ListDetails({ title, children, fontSize, isLoading, loadingLines, className }: ListDetailsProps): JSX.Element;
28
+ declare function ListDetails({ title, children, fontSize, isLoading, loadingLines, className, }: ListDetailsProps): JSX.Element;
29
29
  declare namespace ListDetails {
30
30
  var displayName: string;
31
31
  }
@@ -17,15 +17,15 @@ export interface ListDetailsItemProps {
17
17
  /**
18
18
  * Specify `none` to remove border
19
19
  */
20
- border?: 'none';
20
+ border?: "none";
21
21
  /**
22
22
  * Text alignment for children on the right side.
23
23
  */
24
- childrenAlign?: 'left' | 'right';
24
+ childrenAlign?: "left" | "right";
25
25
  /**
26
26
  * Specify `none` to remove side gutter
27
27
  */
28
- gutter?: 'none';
28
+ gutter?: "none";
29
29
  }
30
30
  export declare function ListDetailsItem({ label, children, isLoading, border, gutter, childrenAlign, ...rest }: ListDetailsItemProps): JSX.Element;
31
31
  export declare namespace ListDetailsItem {
@@ -1,7 +1,7 @@
1
- import { FlexRowProps } from '../internals/FlexRow';
2
1
  import { FC, JSX } from 'react';
3
- type ListItemVariant = 'list' | 'boxed';
4
- export type ListItemProps = React.HTMLAttributes<HTMLElement> & Pick<FlexRowProps, 'alignItems' | 'children'> & Pick<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'onClick' | 'href'> & {
2
+ import { FlexRowProps } from '../internals/FlexRow';
3
+ type ListItemVariant = "list" | "boxed";
4
+ export type ListItemProps = React.HTMLAttributes<HTMLElement> & Pick<FlexRowProps, "alignItems" | "children"> & Pick<React.AnchorHTMLAttributes<HTMLAnchorElement>, "onClick" | "href"> & {
5
5
  /**
6
6
  * Icon component
7
7
  * Example: `<StatusIcon>` or `<RadialProgress>` or `<Avatar>`
@@ -11,7 +11,7 @@ export type ListItemProps = React.HTMLAttributes<HTMLElement> & Pick<FlexRowProp
11
11
  * Icon alignment
12
12
  * @default 'top'
13
13
  */
14
- alignIcon?: 'top' | 'center' | 'bottom';
14
+ alignIcon?: "top" | "center" | "bottom";
15
15
  /**
16
16
  * Control the horizontal padding (`x`) or vertical padding (`y`).
17
17
  * You can specify `none` to remove the padding.
@@ -19,17 +19,17 @@ export type ListItemProps = React.HTMLAttributes<HTMLElement> & Pick<FlexRowProp
19
19
  * By default, the padding is set to `y` when the ListItem is a **not** clickable list, `xy` otherwise.
20
20
  * @default 'xy'
21
21
  */
22
- padding?: 'xy' | 'x' | 'y' | 'none';
22
+ padding?: "xy" | "x" | "y" | "none";
23
23
  /**
24
24
  * Control the padding size.
25
25
  * @default '4'
26
26
  */
27
- paddingSize?: '6' | '4' | '2';
27
+ paddingSize?: "6" | "4" | "2";
28
28
  /**
29
29
  * Border style to render
30
30
  * @default 'solid'
31
31
  */
32
- borderStyle?: 'solid' | 'dashed' | 'none';
32
+ borderStyle?: "solid" | "dashed" | "none";
33
33
  /**
34
34
  * ListItem variant: 'list' or 'boxed' with rounded borders
35
35
  * @default 'list'
@@ -1,6 +1,6 @@
1
- import { PageHeadingProps } from '../atoms/PageHeading';
2
1
  import { JSX } from 'react';
3
- export interface PageErrorProps extends Pick<PageHeadingProps, 'navigationButton'> {
2
+ import { PageHeadingProps } from '../atoms/PageHeading';
3
+ export interface PageErrorProps extends Pick<PageHeadingProps, "navigationButton"> {
4
4
  /**
5
5
  * Main page title wrapped in a h1 element
6
6
  */
@@ -1,8 +1,8 @@
1
+ import { ReactNode } from 'react';
1
2
  import { ContainerProps } from '../atoms/Container';
2
3
  import { PageHeadingProps } from '../atoms/PageHeading';
3
4
  import { OverlayProps } from '../internals/Overlay';
4
- import { ReactNode } from 'react';
5
- export type PageLayoutProps = Pick<PageHeadingProps, 'title' | 'description' | 'navigationButton' | 'toolbar' | 'gap'> & Pick<ContainerProps, 'minHeight'> & {
5
+ export type PageLayoutProps = Pick<PageHeadingProps, "title" | "description" | "navigationButton" | "toolbar" | "gap"> & Pick<ContainerProps, "minHeight"> & {
6
6
  /**
7
7
  * Page content
8
8
  */
@@ -11,7 +11,7 @@ export type PageLayoutProps = Pick<PageHeadingProps, 'title' | 'description' | '
11
11
  * When mode is `test`, it will render a `TEST DATA` Badge to inform user api is working in test mode.
12
12
  * Only if app is standalone mode.
13
13
  */
14
- mode?: 'test' | 'live';
14
+ mode?: "test" | "live";
15
15
  /**
16
16
  * Optional prop to enable scroll to top behavior on location change
17
17
  */
@@ -26,13 +26,13 @@ export type PageLayoutProps = Pick<PageHeadingProps, 'title' | 'description' | '
26
26
  /**
27
27
  * Footer element to be rendered at the bottom of the overlay.
28
28
  **/
29
- overlayFooter?: OverlayProps['footer'];
29
+ overlayFooter?: OverlayProps["footer"];
30
30
  });
31
31
  export declare const PageLayout: import('../atoms/SkeletonTemplate').SkeletonTemplateComponent<{
32
- description?: ReactNode;
33
32
  title: ReactNode;
34
33
  toolbar?: import('../atoms/PageHeading/PageHeadingToolbar').PageHeadingToolbarProps | undefined;
35
34
  gap?: "none" | "only-top" | "only-bottom" | "both" | undefined;
35
+ description?: ReactNode;
36
36
  navigationButton?: {
37
37
  label: string;
38
38
  onClick: () => void;
@@ -50,10 +50,10 @@ export declare const PageLayout: import('../atoms/SkeletonTemplate').SkeletonTem
50
50
  delayMs?: number | undefined;
51
51
  isLoading?: boolean | undefined;
52
52
  } | {
53
- description?: ReactNode;
54
53
  title: ReactNode;
55
54
  toolbar?: import('../atoms/PageHeading/PageHeadingToolbar').PageHeadingToolbarProps | undefined;
56
55
  gap?: "none" | "only-top" | "only-bottom" | "both" | undefined;
56
+ description?: ReactNode;
57
57
  navigationButton?: {
58
58
  label: string;
59
59
  onClick: () => void;
@@ -31,7 +31,7 @@ import { GetParams } from './utils';
31
31
  */
32
32
  export declare function Routes<T extends Record<string, {
33
33
  path: string;
34
- }>>({ routes, list }: {
34
+ }>>({ routes, list, }: {
35
35
  /** Object of available app routes build using the `createRoute` helper method */
36
36
  routes: T;
37
37
  /**
@@ -47,14 +47,14 @@ export declare function Routes<T extends Record<string, {
47
47
  };
48
48
  };
49
49
  }): JSX.Element;
50
- export declare function LoadingPage({ overlay }: {
50
+ export declare function LoadingPage({ overlay, }: {
51
51
  overlay?: boolean;
52
52
  }): JSX.Element;
53
53
  /**
54
54
  * This component can be used as error component when the resource is not found by passing the resource type.
55
55
  * When empty it will render a generic page not found message.
56
56
  */
57
- export declare function GenericPageNotFound({ resource }: {
57
+ export declare function GenericPageNotFound({ resource, }: {
58
58
  resource?: ListableResourceType;
59
59
  }): JSX.Element;
60
60
  /**
@@ -1,2 +1,2 @@
1
- export { GenericPageNotFound, LoadingPage, Routes, type PageProps } from './Routes';
2
- export { createRoute, createTypedRoute, type GetParams, type Route } from './utils';
1
+ export { GenericPageNotFound, LoadingPage, type PageProps, Routes, } from './Routes';
2
+ export { createRoute, createTypedRoute, type GetParams, type Route, } from './utils';
@@ -53,7 +53,7 @@ export declare const createTypedRoute: <Parameters extends Record<string, any>>(
53
53
  export type GetParams<R extends {
54
54
  makePath: (...arg: any[]) => string;
55
55
  }> = {
56
- [K in keyof Parameters<R['makePath']>[0]]: Exclude<ToLiteral<Parameters<R['makePath']>[0][K]>, 'undefined' | 'null'>;
56
+ [K in keyof Parameters<R["makePath"]>[0]]: Exclude<ToLiteral<Parameters<R["makePath"]>[0][K]>, "undefined" | "null">;
57
57
  };
58
58
  /**
59
59
  * Cast a valid `string | number | bigint | boolean | null | undefined` to literal.
@@ -66,7 +66,7 @@ export type GetParams<R extends {
66
66
  */
67
67
  type ToLiteral<V extends string | number | bigint | boolean | null | undefined> = `${V}`;
68
68
  export interface Route<Path extends `/${string}/` | `/`, Parameters extends Record<string, unknown> = ExtractParameters<Path>> {
69
- path: Path extends `/${infer P}/` ? `/${P}` : '/';
69
+ path: Path extends `/${infer P}/` ? `/${P}` : "/";
70
70
  makePath: (parameters: Parameters, searchParams?: string | URLSearchParams) => string;
71
71
  }
72
72
  type ExtractParameters<Path extends string> = Path extends `${string}:${infer Var}/${infer Rest}` ? Simplify<FixOptional<{
@@ -76,9 +76,9 @@ type FixOptional<T extends Record<string, any>> = Omit<T, `${string}?`> & {
76
76
  [K in keyof T as K extends `${infer VariableName}?` ? VariableName : never]?: T[K];
77
77
  };
78
78
  type ErrorParameters<Parameters extends Record<string, any>, Path extends string> = keyof ({
79
- [key in keyof ExtractParameters<Path> as key extends keyof Parameters ? never : undefined extends ExtractParameters<Path>[key] ? key extends string ? `${key}?` : key : key]-?: 'Is not properly set.';
79
+ [key in keyof ExtractParameters<Path> as key extends keyof Parameters ? never : undefined extends ExtractParameters<Path>[key] ? key extends string ? `${key}?` : key : key]-?: "Is not properly set.";
80
80
  } & {
81
- [key in keyof Parameters as key extends string ? Path extends `${string}/:${key}${undefined extends Parameters[key] ? '?' : ''}/${string}` ? never : undefined extends Parameters[key] ? `${key}?` : key : never]-?: 'Is not properly set.';
81
+ [key in keyof Parameters as key extends string ? Path extends `${string}/:${key}${undefined extends Parameters[key] ? "?" : ""}/${string}` ? never : undefined extends Parameters[key] ? `${key}?` : key : never]-?: "Is not properly set.";
82
82
  });
83
- type ValidPath<Parameters extends Record<string, any>, Path extends string> = ErrorParameters<Parameters, Path> extends never ? Path : `Missing variable '${ErrorParameters<Parameters, Path> extends string ? ErrorParameters<Parameters, Path> : 'unknown'}'`;
83
+ type ValidPath<Parameters extends Record<string, any>, Path extends string> = ErrorParameters<Parameters, Path> extends never ? Path : `Missing variable '${ErrorParameters<Parameters, Path> extends string ? ErrorParameters<Parameters, Path> : "unknown"}'`;
84
84
  export {};
@@ -1,5 +1,5 @@
1
1
  import { SkeletonTemplateProps } from '../atoms/SkeletonTemplate';
2
- export interface SearchBarProps extends Pick<SkeletonTemplateProps, 'isLoading' | 'delayMs'> {
2
+ export interface SearchBarProps extends Pick<SkeletonTemplateProps, "isLoading" | "delayMs"> {
3
3
  /**
4
4
  * Initial value of the search bar. When changed, the search bar will be updated.
5
5
  */
@@ -4,7 +4,7 @@ export interface TimelineEvent {
4
4
  author?: string;
5
5
  message: ReactNode;
6
6
  note?: string;
7
- variant?: 'warning';
7
+ variant?: "warning";
8
8
  }
9
9
  export interface TimelineProps {
10
10
  disabled?: boolean;
@@ -3,6 +3,6 @@ import { Id, ToastOptions } from 'react-toastify';
3
3
  export declare const ToastContainer: () => React.JSX.Element;
4
4
  export declare function toast<TData = unknown>(content: string, { type }?: Options<TData>): Id;
5
5
  interface Options<Data = unknown> {
6
- type: Exclude<NonNullable<ToastOptions<Data>['type']>, 'info' | 'warning'>;
6
+ type: Exclude<NonNullable<ToastOptions<Data>["type"]>, "info" | "warning">;
7
7
  }
8
8
  export {};
@@ -3,12 +3,12 @@ import { IconProps } from '../atoms/Icon';
3
3
  import { DropdownItemProps } from './Dropdown';
4
4
  export interface ToolbarItem {
5
5
  label?: string;
6
- icon?: IconProps['name'];
7
- size?: ButtonProps['size'];
8
- variant?: ButtonProps['variant'];
9
- className?: ButtonProps['className'];
10
- onClick?: ButtonProps['onClick'];
11
- disabled?: ButtonProps['disabled'];
6
+ icon?: IconProps["name"];
7
+ size?: ButtonProps["size"];
8
+ variant?: ButtonProps["variant"];
9
+ className?: ButtonProps["className"];
10
+ onClick?: ButtonProps["onClick"];
11
+ disabled?: ButtonProps["disabled"];
12
12
  /**
13
13
  * Dropdown items nested into current item.
14
14
  * If they are set, the current item will be rendered as a `Dropdown` that can be opened by clicking the `Button` configure using current item's props.
@@ -1,8 +1,8 @@
1
- import { InputWrapperBaseProps } from '../../internals/InputWrapper';
2
1
  import { EditorProps, OnValidate } from '@monaco-editor/react';
3
2
  import { editor } from 'monaco-editor';
4
3
  import { SetOptional } from 'type-fest';
5
- export interface CodeEditorProps extends InputWrapperBaseProps, SetOptional<Pick<HTMLInputElement, 'id' | 'name'>, 'id' | 'name'>, Pick<EditorProps, 'defaultValue' | 'value'> {
4
+ import { InputWrapperBaseProps } from '../../internals/InputWrapper';
5
+ export interface CodeEditorProps extends InputWrapperBaseProps, SetOptional<Pick<HTMLInputElement, "id" | "name">, "id" | "name">, Pick<EditorProps, "defaultValue" | "value"> {
6
6
  /**
7
7
  * Should the editor be read only.
8
8
  */
@@ -16,12 +16,12 @@ export interface CodeEditorProps extends InputWrapperBaseProps, SetOptional<Pick
16
16
  * Language of the current model
17
17
  * @default plaintext
18
18
  */
19
- language?: 'plaintext' | 'json';
19
+ language?: "plaintext" | "json";
20
20
  /**
21
21
  * JSON Schema to be used when writing JSON
22
22
  * @default none
23
23
  */
24
- jsonSchema?: 'none' | 'order-rules' | 'price-rules' | 'organization-config';
24
+ jsonSchema?: "none" | "order-rules" | "price-rules" | "organization-config";
25
25
  /**
26
26
  * Trigger on every update.
27
27
  * @param markers List of markers (errors). `null` when there're no errors.
@@ -1,6 +1,6 @@
1
1
  import { JSX } from 'react';
2
2
  import { CodeEditorProps } from './CodeEditorComponent';
3
- export interface HookedCodeEditorProps extends Omit<CodeEditorProps, 'name'>, Required<Pick<CodeEditorProps, 'name'>> {
3
+ export interface HookedCodeEditorProps extends Omit<CodeEditorProps, "name">, Required<Pick<CodeEditorProps, "name">> {
4
4
  }
5
5
  /**
6
6
  * `Input` component ready to be used with the `react-hook-form` context.
@@ -5,7 +5,7 @@ interface PublicResourcesResponse {
5
5
  type: string;
6
6
  attributes: {
7
7
  fields: Record<string, {
8
- type: 'boolean' | 'string' | 'float' | 'datetime' | 'object' | 'integer' | 'array' | 'json';
8
+ type: "boolean" | "string" | "float" | "datetime" | "object" | "integer" | "array" | "json";
9
9
  desc: string;
10
10
  }>;
11
11
  relationships: Record<string, {
@@ -16,14 +16,14 @@ interface PublicResourcesResponse {
16
16
  };
17
17
  }>;
18
18
  }
19
- type FetchResourceResponse = Record<string, PublicResourcesResponse['data'][number] & {
19
+ type FetchResourceResponse = Record<string, PublicResourcesResponse["data"][number] & {
20
20
  fields: ReadonlyArray<readonly [
21
21
  string,
22
- PublicResourcesResponse['data'][number]['attributes']['fields'][string]
22
+ PublicResourcesResponse["data"][number]["attributes"]["fields"][string]
23
23
  ]>;
24
24
  relationships: ReadonlyArray<readonly [
25
25
  string,
26
- PublicResourcesResponse['data'][number]['attributes']['relationships'][string]
26
+ PublicResourcesResponse["data"][number]["attributes"]["relationships"][string]
27
27
  ]>;
28
28
  }>;
29
29
  export declare const fetchResources: (waitCache?: boolean) => Promise<FetchResourceResponse>;
@@ -31,13 +31,13 @@ export declare const fetchResources: (waitCache?: boolean) => Promise<FetchResou
31
31
  *
32
32
  * @returns
33
33
  */
34
- export declare function fetchCoreResourcesSuggestions(mainResourceIds: Array<'order' | 'price' | 'price_list'>, path: string): Promise<Array<{
34
+ export declare function fetchCoreResourcesSuggestions(mainResourceIds: Array<"order" | "price" | "price_list">, path: string): Promise<Array<{
35
35
  value: string;
36
- type: 'field' | 'relationship';
36
+ type: "field" | "relationship";
37
37
  }>>;
38
38
  export declare function atPath(path: string, obj?: FetchResourceResponse[string]): Promise<{
39
39
  path: string;
40
- field?: FetchResourceResponse[string]['fields'][number][1];
40
+ field?: FetchResourceResponse[string]["fields"][number][1];
41
41
  resourcePath: string;
42
42
  resource?: FetchResourceResponse[string];
43
43
  }>;
@@ -1,3 +1,3 @@
1
1
  export { CodeEditor } from './CodeEditor';
2
2
  export type { CodeEditorProps } from './CodeEditorComponent';
3
- export { HookedCodeEditor, type HookedCodeEditorProps } from './HookedCodeEditor';
3
+ export { HookedCodeEditor, type HookedCodeEditorProps, } from './HookedCodeEditor';
@@ -1,9 +1,9 @@
1
1
  import { InputWrapperBaseProps } from '../../internals/InputWrapper';
2
- export interface InputProps extends InputWrapperBaseProps, Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type'> {
2
+ export interface InputProps extends InputWrapperBaseProps, Omit<React.InputHTMLAttributes<HTMLInputElement>, "type"> {
3
3
  /**
4
4
  * Controlled type
5
5
  */
6
- type?: 'text' | 'number' | 'password' | 'tel' | 'url' | 'email' | 'hidden';
6
+ type?: "text" | "number" | "password" | "tel" | "url" | "email" | "hidden";
7
7
  /**
8
8
  * Optional CSS class names used for the input element
9
9
  */
@@ -1,6 +1,6 @@
1
1
  import { JSX } from 'react';
2
2
  import { InputCheckboxProps } from './InputCheckbox';
3
- export interface HookedInputCheckboxProps extends Omit<InputCheckboxProps, 'onChange' | 'checked' | 'feedback' | 'defaultValue' | 'defaultChecked'> {
3
+ export interface HookedInputCheckboxProps extends Omit<InputCheckboxProps, "onChange" | "checked" | "feedback" | "defaultValue" | "defaultChecked"> {
4
4
  /**
5
5
  * field name to match hook-form state
6
6
  */
@@ -1,6 +1,6 @@
1
- import { InputWrapperBaseProps } from '../../internals/InputWrapper';
2
1
  import { JSX } from 'react';
3
- export interface InputCheckboxProps extends Omit<InputWrapperBaseProps, 'label' | 'inline'>, Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type' | 'value'> {
2
+ import { InputWrapperBaseProps } from '../../internals/InputWrapper';
3
+ export interface InputCheckboxProps extends Omit<InputWrapperBaseProps, "label" | "inline">, Omit<React.InputHTMLAttributes<HTMLInputElement>, "type" | "value"> {
4
4
  /**
5
5
  * Icon component
6
6
  * Example: `<Avatar>`
@@ -1,2 +1,2 @@
1
- export { HookedInputCheckbox, type HookedInputCheckboxProps } from './HookedInputCheckbox';
1
+ export { HookedInputCheckbox, type HookedInputCheckboxProps, } from './HookedInputCheckbox';
2
2
  export { InputCheckbox, type InputCheckboxProps } from './InputCheckbox';
@@ -1,5 +1,5 @@
1
1
  import { InputCheckboxGroupProps } from './InputCheckboxGroup';
2
- export interface HookedInputCheckboxGroupProps extends Omit<InputCheckboxGroupProps, 'onChange' | 'defaultValues'> {
2
+ export interface HookedInputCheckboxGroupProps extends Omit<InputCheckboxGroupProps, "onChange" | "defaultValues"> {
3
3
  /**
4
4
  * field name to match hook-form state
5
5
  */
@@ -1,6 +1,6 @@
1
- import { InputCheckboxProps } from '../InputCheckbox';
2
1
  import { ComponentProps } from 'react';
3
- export interface InputCheckboxGroupOption extends Pick<InputCheckboxProps, 'icon' | 'checked' | 'hideIconOnDesktop'> {
2
+ import { InputCheckboxProps } from '../InputCheckbox';
3
+ export interface InputCheckboxGroupOption extends Pick<InputCheckboxProps, "icon" | "checked" | "hideIconOnDesktop"> {
4
4
  /**
5
5
  * Input name, will be used to set the html name for checkbox and the quantity inputs.
6
6
  * If not provided, the value will be used instead.
@@ -1,2 +1,2 @@
1
- export { HookedInputCheckboxGroup, type HookedInputCheckboxGroupProps } from './HookedInputCheckboxGroup';
2
- export { InputCheckboxGroup, type InputCheckboxGroupProps } from './InputCheckboxGroup';
1
+ export { HookedInputCheckboxGroup, type HookedInputCheckboxGroupProps, } from './HookedInputCheckboxGroup';
2
+ export { InputCheckboxGroup, type InputCheckboxGroupProps, } from './InputCheckboxGroup';
@@ -6,19 +6,19 @@ export type InternalState = Array<{
6
6
  isSelected: boolean;
7
7
  }>;
8
8
  type Action = {
9
- type: 'updateQuantity';
9
+ type: "updateQuantity";
10
10
  payload: {
11
11
  value: string;
12
12
  quantity: number;
13
13
  };
14
14
  } | {
15
- type: 'toggleSelection';
15
+ type: "toggleSelection";
16
16
  payload: {
17
17
  value: string;
18
18
  };
19
19
  };
20
20
  export declare const reducer: (state: InternalState, action: Action) => InternalState;
21
- export declare function makeInitialState({ options, defaultValues }: {
21
+ export declare function makeInitialState({ options, defaultValues, }: {
22
22
  options: InputCheckboxGroupOption[];
23
23
  defaultValues: SelectedItem[];
24
24
  }): InternalState;
@@ -1,6 +1,6 @@
1
1
  import { JSX } from 'react';
2
2
  import { InputCurrencyProps } from './InputCurrency';
3
- export interface HookedInputCurrencyProps extends Omit<InputCurrencyProps, 'onChange' | 'onBlur' | 'cents'> {
3
+ export interface HookedInputCurrencyProps extends Omit<InputCurrencyProps, "onChange" | "onBlur" | "cents"> {
4
4
  /**
5
5
  * field name to match hook-form state
6
6
  */
@@ -1,7 +1,7 @@
1
+ import { CurrencyInputProps as ReactCurrencyInputFieldProps } from 'react-currency-input-field';
1
2
  import { CurrencyCode } from '../../../helpers/currencies';
2
3
  import { InputWrapperBaseProps } from '../../internals/InputWrapper';
3
- import { CurrencyInputProps as ReactCurrencyInputFieldProps } from 'react-currency-input-field';
4
- export interface InputCurrencyProps extends InputWrapperBaseProps, Pick<ReactCurrencyInputFieldProps, 'onBlur' | 'onClick' | 'disabled'> {
4
+ export interface InputCurrencyProps extends InputWrapperBaseProps, Pick<ReactCurrencyInputFieldProps, "onBlur" | "onClick" | "disabled"> {
5
5
  /**
6
6
  * HTML input id
7
7
  */
@@ -42,7 +42,7 @@ export interface InputCurrencyProps extends InputWrapperBaseProps, Pick<ReactCur
42
42
  * The signs `+-` and `-+` can accept both positive and negative numbers (first sign is the default).
43
43
  * @default +
44
44
  */
45
- sign?: '+' | '-' | '+-' | '-+';
45
+ sign?: "+" | "-" | "+-" | "-+";
46
46
  /**
47
47
  * Show (X) button to clear the input
48
48
  */
@@ -1,3 +1,3 @@
1
- export { HookedInputCurrency, type HookedInputCurrencyProps } from './HookedInputCurrency';
1
+ export { HookedInputCurrency, type HookedInputCurrencyProps, } from './HookedInputCurrency';
2
2
  export { InputCurrency, type InputCurrencyProps } from './InputCurrency';
3
3
  export { formatCentsToCurrency } from './utils';
@@ -13,7 +13,7 @@ export declare function getDecimalLength(currency: Currency): number;
13
13
  * Example: EUR -> € 1.000,00
14
14
  * Example: LRD -> 1,000.00 $ (:iberian dollar)
15
15
  */
16
- export declare function addCurrencySymbol({ formattedValue, currency }: {
16
+ export declare function addCurrencySymbol({ formattedValue, currency, }: {
17
17
  formattedValue: string;
18
18
  currency: Currency;
19
19
  }): string;
@@ -1,8 +1,8 @@
1
+ import { JSX } from 'react';
1
2
  import { CurrencyCode } from '../../helpers/currencies';
2
3
  import { InputCurrencyProps } from './InputCurrency';
3
4
  import { InputWrapperBaseProps } from '../internals/InputWrapper';
4
- import { JSX } from 'react';
5
- type Cents = InputCurrencyProps['cents'];
5
+ type Cents = InputCurrencyProps["cents"];
6
6
  export interface InputCurrencyRangeProps extends InputWrapperBaseProps {
7
7
  fromCents?: Cents;
8
8
  toCents?: Cents;
@@ -18,7 +18,7 @@ export interface InputCurrencyRangeProps extends InputWrapperBaseProps {
18
18
  defaultCurrency?: CurrencyCode;
19
19
  className?: string;
20
20
  }
21
- export declare function InputCurrencyRange({ fromCents, toCents, placeholders, onChange, label, hint, currencyList, inline, defaultCurrency, className, feedback }: InputCurrencyRangeProps): JSX.Element;
21
+ export declare function InputCurrencyRange({ fromCents, toCents, placeholders, onChange, label, hint, currencyList, inline, defaultCurrency, className, feedback, }: InputCurrencyRangeProps): JSX.Element;
22
22
  export declare namespace InputCurrencyRange {
23
23
  var displayName: string;
24
24
  }
@@ -1,6 +1,6 @@
1
1
  import { JSX } from 'react';
2
2
  import { InputDateProps } from './InputDateComponent';
3
- export interface HookedInputDateProps extends Omit<InputDateProps, 'onChange'> {
3
+ export interface HookedInputDateProps extends Omit<InputDateProps, "onChange"> {
4
4
  /**
5
5
  * field name to match hook-form state
6
6
  */
@@ -1,6 +1,6 @@
1
1
  import { JSX } from 'react';
2
2
  import { InputDateRangeProps } from './InputDateRange';
3
- export interface HookedInputDateRangeProps extends Omit<InputDateRangeProps, 'onChange' | 'value'> {
3
+ export interface HookedInputDateRangeProps extends Omit<InputDateRangeProps, "onChange" | "value"> {
4
4
  /**
5
5
  * field name to match hook-form state
6
6
  */
@@ -1,6 +1,6 @@
1
1
  import { InputWrapperBaseProps } from '../../internals/InputWrapper';
2
2
  import { InputDateProps, MaybeDate } from '../InputDate/InputDateComponent';
3
- export interface InputDateRangeProps extends Pick<InputDateProps, 'isClearable' | 'format' | 'timezone' | 'autoPlaceholder' | 'showTimeSelect'>, InputWrapperBaseProps {
3
+ export interface InputDateRangeProps extends Pick<InputDateProps, "isClearable" | "format" | "timezone" | "autoPlaceholder" | "showTimeSelect">, InputWrapperBaseProps {
4
4
  /** a tuple that represents the [from, to] dates */
5
5
  value: [MaybeDate, MaybeDate];
6
6
  /** callback triggered when one of the two dates changes */
@@ -10,16 +10,16 @@ export interface InputDateRangeProps extends Pick<InputDateProps, 'isClearable'
10
10
  /** optional placeholder text for the `from` date */
11
11
  fromPlaceholder?: string;
12
12
  /** optional hint text for the `from` date */
13
- fromHint?: InputWrapperBaseProps['hint'];
13
+ fromHint?: InputWrapperBaseProps["hint"];
14
14
  /** label to be displayed on the `to` date input */
15
15
  /** optional feedback message for the `from` date */
16
- fromFeedback?: InputWrapperBaseProps['feedback'];
16
+ fromFeedback?: InputWrapperBaseProps["feedback"];
17
17
  toLabel?: string;
18
18
  /** optional placeholder text for the `to` date */
19
19
  toPlaceholder?: string;
20
20
  /** optional hint text for the `to` date */
21
- toHint?: InputWrapperBaseProps['hint'];
21
+ toHint?: InputWrapperBaseProps["hint"];
22
22
  /** optional feedback message for the `to` date */
23
- toFeedback?: InputWrapperBaseProps['feedback'];
23
+ toFeedback?: InputWrapperBaseProps["feedback"];
24
24
  }
25
25
  export declare const InputDateRange: import('react').ForwardRefExoticComponent<InputDateRangeProps & import('react').RefAttributes<HTMLDivElement>>;
@@ -1,2 +1,2 @@
1
- export { HookedInputDateRange, type HookedInputDateRangeProps } from './HookedInputDateRange';
1
+ export { HookedInputDateRange, type HookedInputDateRangeProps, } from './HookedInputDateRange';
2
2
  export { InputDateRange, type InputDateRangeProps } from './InputDateRange';
@@ -1,5 +1,5 @@
1
1
  import { JSX } from 'react';
2
- type FeedbackVariant = 'danger' | 'success' | 'warning';
2
+ type FeedbackVariant = "danger" | "success" | "warning";
3
3
  export interface InputFeedbackProps {
4
4
  message: string;
5
5
  variant?: FeedbackVariant;