@edvisor/product-language 0.11.112 → 0.11.113

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/index.cjs +1 -1
  2. package/index.d.ts +2 -2
  3. package/index.js +1 -1
  4. package/lib/components/alert-banner/alert-banner.d.ts +18 -18
  5. package/lib/components/alert-banner/alert-level-flags.d.ts +18 -18
  6. package/lib/components/alert-banner/index.d.ts +1 -1
  7. package/lib/components/autocomplete-input/autocomplete-input.d.ts +39 -39
  8. package/lib/components/autocomplete-input/index.d.ts +1 -1
  9. package/lib/components/badge/badge-type-flags.d.ts +18 -18
  10. package/lib/components/badge/badge.d.ts +7 -7
  11. package/lib/components/badge/index.d.ts +1 -1
  12. package/lib/components/card/atoms/card-frame.d.ts +7 -7
  13. package/lib/components/card/atoms/index.d.ts +1 -1
  14. package/lib/components/card/card.d.ts +14 -14
  15. package/lib/components/card/components/card-alert-banner-slot.d.ts +5 -6
  16. package/lib/components/card/components/card-controls-slot.d.ts +4 -5
  17. package/lib/components/card/components/card-section-slot.d.ts +11 -11
  18. package/lib/components/card/components/index.d.ts +3 -3
  19. package/lib/components/card/index.d.ts +3 -3
  20. package/lib/components/card/molecules/index.d.ts +1 -1
  21. package/lib/components/card/molecules/left-right-card.d.ts +16 -16
  22. package/lib/components/checkbox/checkbox.d.ts +11 -11
  23. package/lib/components/checkbox/helpers.d.ts +12 -12
  24. package/lib/components/checkbox/index.d.ts +1 -1
  25. package/lib/components/date-picker/components/custom-calendar.d.ts +6 -6
  26. package/lib/components/date-picker/components/index.d.ts +1 -1
  27. package/lib/components/date-picker/date-picker-utc.d.ts +9 -9
  28. package/lib/components/date-picker/date-picker.d.ts +19 -19
  29. package/lib/components/date-picker/helpers/date-picker-factory.d.ts +38 -38
  30. package/lib/components/date-picker/index.d.ts +2 -2
  31. package/lib/components/divider/divider-type-flags.d.ts +9 -9
  32. package/lib/components/divider/divider.d.ts +7 -7
  33. package/lib/components/divider/index.d.ts +1 -1
  34. package/lib/components/flag/flag-size-flags.d.ts +22 -22
  35. package/lib/components/flag/flag.d.ts +4 -4
  36. package/lib/components/flag/helpers/flag-sprite-sheet.d.ts +5 -5
  37. package/lib/components/flag/helpers/index.d.ts +1 -1
  38. package/lib/components/flag/index.d.ts +1 -1
  39. package/lib/components/flag/types.d.ts +5 -5
  40. package/lib/components/icon/icon-list.d.ts +149 -150
  41. package/lib/components/icon/icon.d.ts +149 -149
  42. package/lib/components/icon/index.d.ts +1 -1
  43. package/lib/components/index.d.ts +39 -39
  44. package/lib/components/inline-error/index.d.ts +1 -1
  45. package/lib/components/inline-error/inline-error.d.ts +7 -7
  46. package/lib/components/input-field/components/index.d.ts +2 -2
  47. package/lib/components/input-field/components/labeled-input.d.ts +11 -11
  48. package/lib/components/input-field/components/stepper.d.ts +7 -7
  49. package/lib/components/input-field/index.d.ts +4 -4
  50. package/lib/components/input-field/input-currency.d.ts +23 -22
  51. package/lib/components/input-field/input-currency.helpers.d.ts +32 -0
  52. package/lib/components/input-field/input-field.d.ts +27 -27
  53. package/lib/components/input-field/input-number.d.ts +19 -19
  54. package/lib/components/input-field/input-text.d.ts +14 -14
  55. package/lib/components/layout/flex.d.ts +16 -16
  56. package/lib/components/layout/grid-layout.d.ts +11 -11
  57. package/lib/components/layout/index.d.ts +3 -3
  58. package/lib/components/layout/left-right-layout.d.ts +33 -34
  59. package/lib/components/link/index.d.ts +1 -1
  60. package/lib/components/link/link.d.ts +14 -14
  61. package/lib/components/markdown/index.d.ts +1 -1
  62. package/lib/components/markdown/markdown.d.ts +7 -7
  63. package/lib/components/menu/index.d.ts +1 -1
  64. package/lib/components/menu/menu.d.ts +18 -18
  65. package/lib/components/modal/index.d.ts +3 -3
  66. package/lib/components/modal/modal-base.d.ts +32 -32
  67. package/lib/components/modal/modal-destructive.d.ts +16 -16
  68. package/lib/components/modal/modal.d.ts +16 -16
  69. package/lib/components/molecules/avatar/avatar-size-flags.d.ts +11 -12
  70. package/lib/components/molecules/avatar/avatar.d.ts +12 -12
  71. package/lib/components/molecules/avatar/index.d.ts +1 -1
  72. package/lib/components/molecules/button/button-flags.d.ts +44 -44
  73. package/lib/components/molecules/button/button.d.ts +12 -12
  74. package/lib/components/molecules/button/index.d.ts +1 -1
  75. package/lib/components/molecules/index.d.ts +4 -4
  76. package/lib/components/molecules/input-checkbox/index.d.ts +1 -1
  77. package/lib/components/molecules/input-checkbox/input-checkbox.d.ts +8 -8
  78. package/lib/components/molecules/simple-menu/SimpleMenu.d.ts +14 -15
  79. package/lib/components/molecules/simple-menu/index.d.ts +1 -1
  80. package/lib/components/organisms/choice-list/choice-list.d.ts +9 -9
  81. package/lib/components/organisms/choice-list/index.d.ts +1 -1
  82. package/lib/components/organisms/index.d.ts +2 -2
  83. package/lib/components/organisms/multi-choice-list/index.d.ts +1 -1
  84. package/lib/components/organisms/multi-choice-list/multi-choice-list.d.ts +11 -11
  85. package/lib/components/page-header/index.d.ts +1 -1
  86. package/lib/components/page-header/page-header.d.ts +25 -26
  87. package/lib/components/pagination/index.d.ts +1 -1
  88. package/lib/components/pagination/pagination.d.ts +10 -10
  89. package/lib/components/progress-bar/index.d.ts +1 -1
  90. package/lib/components/progress-bar/progress-bar-size-flags.d.ts +10 -10
  91. package/lib/components/progress-bar/progress-bar.d.ts +8 -8
  92. package/lib/components/radio-button/index.d.ts +1 -1
  93. package/lib/components/radio-button/radio-button.d.ts +11 -11
  94. package/lib/components/range-slider/components/bar-chart.d.ts +8 -8
  95. package/lib/components/range-slider/components/handle.d.ts +12 -12
  96. package/lib/components/range-slider/components/rail.d.ts +9 -9
  97. package/lib/components/range-slider/components/slider-component.d.ts +12 -12
  98. package/lib/components/range-slider/components/slider-inputs.d.ts +15 -16
  99. package/lib/components/range-slider/components/tick.d.ts +10 -10
  100. package/lib/components/range-slider/components/track.d.ts +11 -11
  101. package/lib/components/range-slider/index.d.ts +2 -2
  102. package/lib/components/range-slider/range-slider.d.ts +16 -16
  103. package/lib/components/range-slider/slider.d.ts +12 -12
  104. package/lib/components/range-slider/types.d.ts +11 -11
  105. package/lib/components/react-select/index.d.ts +1 -1
  106. package/lib/components/react-select/react-select.d.ts +14 -15
  107. package/lib/components/select/components/helpers.d.ts +17 -17
  108. package/lib/components/select/components/menu-container.d.ts +3 -3
  109. package/lib/components/select/components/menu-list-expanded.d.ts +6 -6
  110. package/lib/components/select/components/menu-list.d.ts +3 -3
  111. package/lib/components/select/components/menu-row.d.ts +11 -11
  112. package/lib/components/select/components/menu.d.ts +2 -3
  113. package/lib/components/select/components/option.d.ts +2 -3
  114. package/lib/components/select/components/optionMultiLevel.d.ts +2 -3
  115. package/lib/components/select/components/optionMultilevelExpanded.d.ts +5 -5
  116. package/lib/components/select/components/select-label.d.ts +1 -1
  117. package/lib/components/select/components/value-component-multi.d.ts +4 -4
  118. package/lib/components/select/components/value-component-single.d.ts +5 -4
  119. package/lib/components/select/components/value.d.ts +5 -4
  120. package/lib/components/select/index.d.ts +4 -4
  121. package/lib/components/select/select.d.ts +7 -10
  122. package/lib/components/select/types.d.ts +300 -300
  123. package/lib/components/select/utils.d.ts +16 -16
  124. package/lib/components/select-with-groups/index.d.ts +2 -2
  125. package/lib/components/select-with-groups/select-with-groups.d.ts +35 -35
  126. package/lib/components/spinner/index.d.ts +1 -1
  127. package/lib/components/spinner/spinner-size-flags.d.ts +10 -10
  128. package/lib/components/spinner/spinner.d.ts +9 -9
  129. package/lib/components/stepper/index.d.ts +1 -1
  130. package/lib/components/stepper/stepper.d.ts +9 -9
  131. package/lib/components/switch/index.d.ts +1 -1
  132. package/lib/components/switch/switch.d.ts +13 -13
  133. package/lib/components/table/hooks/index.d.ts +4 -4
  134. package/lib/components/table/hooks/useFilteredRows.d.ts +5 -5
  135. package/lib/components/table/hooks/usePaginatedRows.d.ts +12 -12
  136. package/lib/components/table/hooks/useSortedRows.d.ts +6 -6
  137. package/lib/components/table/hooks/useTable.d.ts +47 -47
  138. package/lib/components/table/index.d.ts +2 -2
  139. package/lib/components/table/table.d.ts +28 -28
  140. package/lib/components/tabs/components/index.d.ts +1 -1
  141. package/lib/components/tabs/components/tab.d.ts +10 -10
  142. package/lib/components/tabs/index.d.ts +1 -1
  143. package/lib/components/tabs/tabs.d.ts +18 -18
  144. package/lib/components/tag/components/close-button.d.ts +8 -8
  145. package/lib/components/tag/components/index.d.ts +2 -2
  146. package/lib/components/tag/components/tag-label.d.ts +8 -8
  147. package/lib/components/tag/index.d.ts +1 -1
  148. package/lib/components/tag/tag.d.ts +10 -10
  149. package/lib/components/text-area/index.d.ts +1 -1
  150. package/lib/components/text-area/text-area.d.ts +11 -11
  151. package/lib/components/text-toggle/index.d.ts +1 -1
  152. package/lib/components/text-toggle/text-toggle.d.ts +10 -10
  153. package/lib/components/thumbnail/index.d.ts +1 -1
  154. package/lib/components/thumbnail/thumbnail-size-flags.d.ts +10 -10
  155. package/lib/components/thumbnail/thumbnail.d.ts +10 -10
  156. package/lib/components/toast/index.d.ts +1 -1
  157. package/lib/components/toast/toast.d.ts +17 -17
  158. package/lib/components/tooltip/index.d.ts +1 -1
  159. package/lib/components/tooltip/tooltip.d.ts +30 -30
  160. package/lib/components/tree-view/components/tree-node.d.ts +3 -3
  161. package/lib/components/tree-view/helper.d.ts +12 -12
  162. package/lib/components/tree-view/index.d.ts +2 -2
  163. package/lib/components/tree-view/tree-view.d.ts +3 -3
  164. package/lib/components/tree-view/types.d.ts +63 -63
  165. package/lib/components/typography/index.d.ts +1 -1
  166. package/lib/components/typography/typography.d.ts +27 -27
  167. package/lib/foundations/color-system/base-palette/base-palette.d.ts +76 -76
  168. package/lib/foundations/color-system/base-palette/index.d.ts +1 -1
  169. package/lib/foundations/color-system/color-guidelines/color-guidelines.d.ts +133 -133
  170. package/lib/foundations/color-system/color-guidelines/index.d.ts +1 -1
  171. package/lib/foundations/color-system/components/color-sample.d.ts +17 -17
  172. package/lib/foundations/color-system/components/index.d.ts +1 -1
  173. package/lib/foundations/color-system/index.d.ts +2 -2
  174. package/lib/foundations/index.d.ts +4 -4
  175. package/lib/foundations/shadows/components.d.ts +8 -8
  176. package/lib/foundations/shadows/index.d.ts +1 -1
  177. package/lib/foundations/shadows/shadows.d.ts +8 -8
  178. package/lib/foundations/spacing/index.d.ts +1 -1
  179. package/lib/foundations/spacing/spacing-guidelines.d.ts +37 -37
  180. package/lib/foundations/spacing/spacing.d.ts +19 -19
  181. package/lib/foundations/typography/constants.d.ts +39 -39
  182. package/lib/foundations/typography/fonts.d.ts +1 -1
  183. package/lib/foundations/typography/index.d.ts +2 -2
  184. package/lib/foundations/typography/text-aspect-flags.d.ts +30 -30
  185. package/lib/foundations/typography/typography.d.ts +24 -24
  186. package/lib/helpers/generic-types.d.ts +21 -21
  187. package/lib/helpers/index.d.ts +10 -10
  188. package/lib/helpers/isReactElementOfType.d.ts +6 -8
  189. package/lib/helpers/nothing.d.ts +9 -10
  190. package/lib/helpers/numbers.d.ts +51 -51
  191. package/lib/helpers/safe-navigation.d.ts +26 -26
  192. package/lib/helpers/slots.d.ts +17 -17
  193. package/lib/helpers/strings.d.ts +1 -1
  194. package/lib/helpers/useClickOutside.d.ts +2 -2
  195. package/lib/helpers/useInputElementState.d.ts +30 -30
  196. package/lib/helpers/useIsMobile.d.ts +1 -1
  197. package/lib/helpers/useKeyDown.d.ts +1 -1
  198. package/package.json +5 -5
@@ -1,19 +1,19 @@
1
- import { FC } from '@helpers';
2
- import { InputFieldSlots } from './input-field';
3
- import { Stepper } from './components';
4
- import { InputHTMLAttributes } from 'react';
5
- export interface IInputNumberProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange'> {
6
- value?: number;
7
- onChange: (change?: number) => void;
8
- label?: string;
9
- placeholder?: string;
10
- invalid?: boolean;
11
- prefix?: string;
12
- suffix?: string;
13
- required?: boolean;
14
- }
15
- declare type IInputNumberSlots = InputFieldSlots & {
16
- Stepper: typeof Stepper;
17
- };
18
- export declare const InputNumber: FC<IInputNumberProps, IInputNumberSlots>;
19
- export {};
1
+ import { FC } from '@helpers';
2
+ import { InputFieldSlots } from './input-field';
3
+ import { Stepper } from './components';
4
+ import { InputHTMLAttributes } from 'react';
5
+ export interface IInputNumberProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange'> {
6
+ value?: number;
7
+ onChange: (change?: number) => void;
8
+ label?: string;
9
+ placeholder?: string;
10
+ invalid?: boolean;
11
+ prefix?: string;
12
+ suffix?: string;
13
+ required?: boolean;
14
+ }
15
+ type IInputNumberSlots = InputFieldSlots & {
16
+ Stepper: typeof Stepper;
17
+ };
18
+ export declare const InputNumber: FC<IInputNumberProps, IInputNumberSlots>;
19
+ export {};
@@ -1,14 +1,14 @@
1
- import { FC } from '@helpers';
2
- import { InputFieldSlots } from './input-field';
3
- interface IInputTextProps {
4
- value: string;
5
- onChange?: (change: string) => void;
6
- label?: string;
7
- invalid?: boolean;
8
- placeholder?: string;
9
- prefix?: string;
10
- suffix?: string;
11
- required?: boolean;
12
- }
13
- export declare const InputText: FC<IInputTextProps, InputFieldSlots>;
14
- export {};
1
+ import { FC } from '@helpers';
2
+ import { InputFieldSlots } from './input-field';
3
+ interface IInputTextProps {
4
+ value: string;
5
+ onChange?: (change: string) => void;
6
+ label?: string;
7
+ invalid?: boolean;
8
+ placeholder?: string;
9
+ prefix?: string;
10
+ suffix?: string;
11
+ required?: boolean;
12
+ }
13
+ export declare const InputText: FC<IInputTextProps, InputFieldSlots>;
14
+ export {};
@@ -1,16 +1,16 @@
1
- export declare const Flex: import("styled-components").StyledComponent<"div", any, {
2
- column?: boolean | undefined;
3
- center?: boolean | undefined;
4
- }, never>;
5
- export declare const SpaceBetween: import("styled-components").StyledComponent<"div", any, {
6
- column?: boolean | undefined;
7
- center?: boolean | undefined;
8
- }, never>;
9
- export declare const SpaceAround: import("styled-components").StyledComponent<"div", any, {
10
- column?: boolean | undefined;
11
- center?: boolean | undefined;
12
- }, never>;
13
- export declare const Center: import("styled-components").StyledComponent<"div", any, {
14
- column?: boolean | undefined;
15
- center?: boolean | undefined;
16
- }, never>;
1
+ export declare const Flex: import("styled-components").StyledComponent<"div", any, {
2
+ column?: boolean;
3
+ center?: boolean;
4
+ }, never>;
5
+ export declare const SpaceBetween: import("styled-components").StyledComponent<"div", any, {
6
+ column?: boolean;
7
+ center?: boolean;
8
+ }, never>;
9
+ export declare const SpaceAround: import("styled-components").StyledComponent<"div", any, {
10
+ column?: boolean;
11
+ center?: boolean;
12
+ }, never>;
13
+ export declare const Center: import("styled-components").StyledComponent<"div", any, {
14
+ column?: boolean;
15
+ center?: boolean;
16
+ }, never>;
@@ -1,11 +1,11 @@
1
- interface IGridLayoutGeneratorProps {
2
- columns?: number;
3
- rows?: number;
4
- columnGutter?: number;
5
- rowGutter?: number;
6
- }
7
- export declare function gridLayoutGenerator(props?: IGridLayoutGeneratorProps): {
8
- Grid: import("styled-components").StyledComponent<"div", any, {}, never>;
9
- Cell: import("styled-components").StyledComponent<"div", any, {}, never>;
10
- };
11
- export {};
1
+ interface IGridLayoutGeneratorProps {
2
+ columns?: number;
3
+ rows?: number;
4
+ columnGutter?: number;
5
+ rowGutter?: number;
6
+ }
7
+ export declare function gridLayoutGenerator(props?: IGridLayoutGeneratorProps): {
8
+ Grid: import("styled-components").StyledComponent<"div", any, {}, never>;
9
+ Cell: import("styled-components").StyledComponent<"div", any, {}, never>;
10
+ };
11
+ export {};
@@ -1,3 +1,3 @@
1
- export * from './left-right-layout';
2
- export * from './flex';
3
- export * from './grid-layout';
1
+ export * from './left-right-layout';
2
+ export * from './flex';
3
+ export * from './grid-layout';
@@ -1,34 +1,33 @@
1
- /// <reference types="react" />
2
- import { FC } from '@helpers';
3
- interface ILeftRightLayoutGeneratorProps {
4
- columns?: number;
5
- columnGutter?: number;
6
- rowGutter?: number;
7
- }
8
- export declare function leftRightLayoutGenerator(layoutProps?: ILeftRightLayoutGeneratorProps): {
9
- LeftRightLayout: FC<{
10
- children?: import("react").ReactNode;
11
- }, {
12
- Left: import("styled-components").StyledComponent<"div", any, {}, never>;
13
- Right: import("styled-components").StyledComponent<"div", any, {}, never>;
14
- HeadingText: import("styled-components").StyledComponent<FC<import("components/typography").ITextComponentProps, {}>, any, {}, never>;
15
- HelpText: import("styled-components").StyledComponent<FC<import("components/typography").ITextComponentProps & import("@foundations").IBodyProps, {}>, any, {
16
- subdued: true;
17
- }, "subdued">;
18
- BodyText: FC<import("components/typography").ITextComponentProps & import("@foundations").IBodyProps, {}>;
19
- }>;
20
- Layout: FC<{
21
- children?: import("react").ReactNode;
22
- }, {
23
- Left: import("styled-components").StyledComponent<"div", any, {}, never>;
24
- Right: import("styled-components").StyledComponent<"div", any, {}, never>;
25
- HeadingText: import("styled-components").StyledComponent<FC<import("components/typography").ITextComponentProps, {}>, any, {}, never>;
26
- HelpText: import("styled-components").StyledComponent<FC<import("components/typography").ITextComponentProps & import("@foundations").IBodyProps, {}>, any, {
27
- subdued: true;
28
- }, "subdued">;
29
- BodyText: FC<import("components/typography").ITextComponentProps & import("@foundations").IBodyProps, {}>;
30
- }>;
31
- Left: import("styled-components").StyledComponent<"div", any, {}, never>;
32
- Right: import("styled-components").StyledComponent<"div", any, {}, never>;
33
- };
34
- export {};
1
+ import { FC } from '@helpers';
2
+ interface ILeftRightLayoutGeneratorProps {
3
+ columns?: number;
4
+ columnGutter?: number;
5
+ rowGutter?: number;
6
+ }
7
+ export declare function leftRightLayoutGenerator(layoutProps?: ILeftRightLayoutGeneratorProps): {
8
+ LeftRightLayout: FC<{
9
+ children?: import("react").ReactNode | undefined;
10
+ }, {
11
+ Left: import("styled-components").StyledComponent<"div", any, {}, never>;
12
+ Right: import("styled-components").StyledComponent<"div", any, {}, never>;
13
+ HeadingText: import("styled-components").StyledComponent<FC<import("components/typography").ITextComponentProps>, any, {}, never>;
14
+ HelpText: import("styled-components").StyledComponent<FC<import("components/typography").ITextComponentProps & import("@foundations").IBodyProps>, any, {
15
+ subdued: true;
16
+ }, "subdued">;
17
+ BodyText: FC<import("components/typography").ITextComponentProps & import("@foundations").IBodyProps>;
18
+ }>;
19
+ Layout: FC<{
20
+ children?: import("react").ReactNode | undefined;
21
+ }, {
22
+ Left: import("styled-components").StyledComponent<"div", any, {}, never>;
23
+ Right: import("styled-components").StyledComponent<"div", any, {}, never>;
24
+ HeadingText: import("styled-components").StyledComponent<FC<import("components/typography").ITextComponentProps>, any, {}, never>;
25
+ HelpText: import("styled-components").StyledComponent<FC<import("components/typography").ITextComponentProps & import("@foundations").IBodyProps>, any, {
26
+ subdued: true;
27
+ }, "subdued">;
28
+ BodyText: FC<import("components/typography").ITextComponentProps & import("@foundations").IBodyProps>;
29
+ }>;
30
+ Left: import("styled-components").StyledComponent<"div", any, {}, never>;
31
+ Right: import("styled-components").StyledComponent<"div", any, {}, never>;
32
+ };
33
+ export {};
@@ -1 +1 @@
1
- export * from './link';
1
+ export * from './link';
@@ -1,14 +1,14 @@
1
- import { AnchorHTMLAttributes } from 'react';
2
- import { FC } from '@helpers';
3
- export declare const HTMLAnchor: import("styled-components").StyledComponent<"a", any, {
4
- disabled: boolean;
5
- initialColor: string;
6
- interactionColor: string;
7
- }, never>;
8
- interface ILinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
9
- label: string;
10
- subtle?: boolean;
11
- disabled?: boolean;
12
- }
13
- export declare const Link: FC<ILinkProps>;
14
- export {};
1
+ import { AnchorHTMLAttributes } from 'react';
2
+ import { FC } from '@helpers';
3
+ export declare const HTMLAnchor: import("styled-components").StyledComponent<"a", any, {
4
+ disabled: boolean;
5
+ initialColor: string;
6
+ interactionColor: string;
7
+ }, never>;
8
+ interface ILinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
9
+ label: string;
10
+ subtle?: boolean;
11
+ disabled?: boolean;
12
+ }
13
+ export declare const Link: FC<ILinkProps>;
14
+ export {};
@@ -1 +1 @@
1
- export { MarkdownComponent as Markdown } from './markdown';
1
+ export { MarkdownComponent as Markdown } from './markdown';
@@ -1,7 +1,7 @@
1
- import { HTMLAttributes } from 'react';
2
- import { FC } from '@helpers';
3
- interface IMarkdownProps extends HTMLAttributes<HTMLElement> {
4
- text?: string;
5
- }
6
- export declare const MarkdownComponent: FC<IMarkdownProps>;
7
- export {};
1
+ import { HTMLAttributes } from 'react';
2
+ import { FC } from '@helpers';
3
+ interface IMarkdownProps extends HTMLAttributes<HTMLElement> {
4
+ text?: string;
5
+ }
6
+ export declare const MarkdownComponent: FC<IMarkdownProps>;
7
+ export {};
@@ -1 +1 @@
1
- export * from './menu';
1
+ export * from './menu';
@@ -1,18 +1,18 @@
1
- import { IOption } from 'components/select';
2
- import React from 'react';
3
- declare type MenuItem = {
4
- onItemSelect?: () => void;
5
- component?: React.ReactNode;
6
- componentHeight?: number;
7
- containerHeight?: number;
8
- filterable?: boolean;
9
- filterPlaceholder?: string;
10
- } & IOption;
11
- interface IMenuPros {
12
- items: MenuItem[];
13
- open: boolean;
14
- filterable?: boolean;
15
- filterPlaceholder?: string;
16
- }
17
- export declare const Menu: (props: IMenuPros) => JSX.Element;
18
- export {};
1
+ import { IOption } from 'components/select';
2
+ import React from 'react';
3
+ type MenuItem = {
4
+ onItemSelect?: () => void;
5
+ component?: React.ReactNode;
6
+ componentHeight?: number;
7
+ containerHeight?: number;
8
+ filterable?: boolean;
9
+ filterPlaceholder?: string;
10
+ } & IOption;
11
+ interface IMenuPros {
12
+ items: MenuItem[];
13
+ open: boolean;
14
+ filterable?: boolean;
15
+ filterPlaceholder?: string;
16
+ }
17
+ export declare const Menu: (props: IMenuPros) => import("react/jsx-runtime").JSX.Element;
18
+ export {};
@@ -1,3 +1,3 @@
1
- export * from './modal-base';
2
- export * from './modal';
3
- export * from './modal-destructive';
1
+ export * from './modal-base';
2
+ export * from './modal';
3
+ export * from './modal-destructive';
@@ -1,32 +1,32 @@
1
- import { InputHTMLAttributes } from 'react';
2
- import { FC } from '@helpers';
3
- interface Sizes {
4
- small: string;
5
- critical: string;
6
- default: string;
7
- large: string;
8
- xLarge: string;
9
- xxLarge: string;
10
- xxxLarge: string;
11
- }
12
- export declare const MODAL_SIZE: Sizes;
13
- export declare const MODAL_SIZE_TEXT: {
14
- SMALL: string;
15
- CRITICAL: string;
16
- DEFAULT: string;
17
- LARGE: string;
18
- XLARGE: string;
19
- XXLARGE: string;
20
- XXXLARGE: string;
21
- };
22
- export interface IModalBaseProps {
23
- open: boolean;
24
- children: React.ReactElement;
25
- closeOnEsc?: boolean;
26
- modalSize?: keyof typeof MODAL_SIZE;
27
- onOverlayClick?: () => void;
28
- onClose: () => void;
29
- }
30
- export declare type IModalBase = InputHTMLAttributes<HTMLInputElement> & IModalBaseProps;
31
- export declare const ModalBase: FC<IModalBase>;
32
- export {};
1
+ import { InputHTMLAttributes } from 'react';
2
+ import { FC } from '@helpers';
3
+ interface Sizes {
4
+ small: string;
5
+ critical: string;
6
+ default: string;
7
+ large: string;
8
+ xLarge: string;
9
+ xxLarge: string;
10
+ xxxLarge: string;
11
+ }
12
+ export declare const MODAL_SIZE: Sizes;
13
+ export declare const MODAL_SIZE_TEXT: {
14
+ SMALL: string;
15
+ CRITICAL: string;
16
+ DEFAULT: string;
17
+ LARGE: string;
18
+ XLARGE: string;
19
+ XXLARGE: string;
20
+ XXXLARGE: string;
21
+ };
22
+ export interface IModalBaseProps {
23
+ open: boolean;
24
+ children: React.ReactElement;
25
+ closeOnEsc?: boolean;
26
+ modalSize?: keyof typeof MODAL_SIZE;
27
+ onOverlayClick?: () => void;
28
+ onClose: () => void;
29
+ }
30
+ export type IModalBase = InputHTMLAttributes<HTMLInputElement> & IModalBaseProps;
31
+ export declare const ModalBase: FC<IModalBase>;
32
+ export {};
@@ -1,16 +1,16 @@
1
- import { HTMLAttributes } from 'react';
2
- import { FC } from '@helpers';
3
- import { IModalBaseProps } from './modal-base';
4
- export interface IModalDestructiveProps extends IModalBaseProps {
5
- primaryButtonLabel?: string;
6
- closeButtonLabel: string;
7
- onPrimaryAction: () => void;
8
- isPrimaryButtonDisabled?: boolean;
9
- isPrimaryActionLoading?: boolean;
10
- requireValidation?: string;
11
- validationInputLabel?: string;
12
- validationInputPlaceholder?: string;
13
- }
14
- declare type IModalDestructive = IModalDestructiveProps & HTMLAttributes<HTMLDivElement>;
15
- export declare const ModalDestructive: FC<IModalDestructive>;
16
- export {};
1
+ import { HTMLAttributes } from 'react';
2
+ import { FC } from '@helpers';
3
+ import { IModalBaseProps } from './modal-base';
4
+ export interface IModalDestructiveProps extends IModalBaseProps {
5
+ primaryButtonLabel?: string;
6
+ closeButtonLabel: string;
7
+ onPrimaryAction: () => void;
8
+ isPrimaryButtonDisabled?: boolean;
9
+ isPrimaryActionLoading?: boolean;
10
+ requireValidation?: string;
11
+ validationInputLabel?: string;
12
+ validationInputPlaceholder?: string;
13
+ }
14
+ type IModalDestructive = IModalDestructiveProps & HTMLAttributes<HTMLDivElement>;
15
+ export declare const ModalDestructive: FC<IModalDestructive>;
16
+ export {};
@@ -1,16 +1,16 @@
1
- import { InputHTMLAttributes } from 'react';
2
- import { FC } from '@helpers';
3
- import { IModalBaseProps } from './modal-base';
4
- export interface IModalProps extends IModalBaseProps {
5
- title?: string;
6
- primaryButtonLabel?: string;
7
- closeButtonLabel?: string;
8
- secondaryButtonLabel?: string;
9
- onPrimaryAction?: () => void;
10
- onSecondaryAction?: () => void;
11
- isPrimaryButtonDisabled?: boolean;
12
- isPrimaryActionLoading?: boolean;
13
- CustomFooter?: JSX.Element;
14
- }
15
- export declare type IModal = IModalProps & InputHTMLAttributes<HTMLDivElement>;
16
- export declare const Modal: FC<IModal>;
1
+ import { InputHTMLAttributes } from 'react';
2
+ import { FC } from '@helpers';
3
+ import { IModalBaseProps } from './modal-base';
4
+ export interface IModalProps extends IModalBaseProps {
5
+ title?: string;
6
+ primaryButtonLabel?: string;
7
+ closeButtonLabel?: string;
8
+ secondaryButtonLabel?: string;
9
+ onPrimaryAction?: () => void;
10
+ onSecondaryAction?: () => void;
11
+ isPrimaryButtonDisabled?: boolean;
12
+ isPrimaryActionLoading?: boolean;
13
+ CustomFooter?: JSX.Element;
14
+ }
15
+ export type IModal = IModalProps & InputHTMLAttributes<HTMLDivElement>;
16
+ export declare const Modal: FC<IModal>;
@@ -1,12 +1,11 @@
1
- /// <reference types="react" />
2
- import { MappedEnum, RequireOnlyOne, PropsWithChildren } from '@helpers';
3
- declare const enum AvatarSize {
4
- small = 1,
5
- medium = 2,
6
- large = 4
7
- }
8
- declare type AvatarSizes<T> = MappedEnum<typeof AvatarSize, T>;
9
- export declare type AvatarSizeProps = Partial<RequireOnlyOne<AvatarSizes<boolean>>> & PropsWithChildren;
10
- export declare function getValuesBySize(props: AvatarSizeProps): string;
11
- export declare function getNodeToRenderText(props: AvatarSizeProps): React.ElementType;
12
- export {};
1
+ import { MappedEnum, RequireOnlyOne, PropsWithChildren } from '@helpers';
2
+ declare const enum AvatarSize {
3
+ small = 1,
4
+ medium = 2,
5
+ large = 4
6
+ }
7
+ type AvatarSizes<T> = MappedEnum<typeof AvatarSize, T>;
8
+ export type AvatarSizeProps = Partial<RequireOnlyOne<AvatarSizes<boolean>>> & PropsWithChildren;
9
+ export declare function getValuesBySize(props: AvatarSizeProps): string;
10
+ export declare function getNodeToRenderText(props: AvatarSizeProps): React.ElementType;
11
+ export {};
@@ -1,12 +1,12 @@
1
- import { FC } from '@helpers';
2
- import { AvatarSizeProps } from './avatar-size-flags';
3
- interface IAvatarProps {
4
- name: string;
5
- imageUrl?: string;
6
- imageLabel?: string;
7
- withLabel?: boolean;
8
- className?: string;
9
- }
10
- declare type IProps = IAvatarProps & AvatarSizeProps;
11
- export declare const Avatar: FC<IProps>;
12
- export {};
1
+ import { FC } from '@helpers';
2
+ import { AvatarSizeProps } from './avatar-size-flags';
3
+ interface IAvatarProps {
4
+ name: string;
5
+ imageUrl?: string;
6
+ imageLabel?: string;
7
+ withLabel?: boolean;
8
+ className?: string;
9
+ }
10
+ type IProps = IAvatarProps & AvatarSizeProps;
11
+ export declare const Avatar: FC<IProps>;
12
+ export {};
@@ -1 +1 @@
1
- export * from './avatar';
1
+ export * from './avatar';
@@ -1,44 +1,44 @@
1
- import { MappedEnum, RequireOnlyOne, PropsWithChildren } from '@helpers';
2
- export declare const enum ButtonType {
3
- basic = 1,
4
- primary = 2,
5
- destructive = 4,
6
- destructivePrimary = 6,
7
- outline = 8,
8
- plain = 16,
9
- subtle = 32,
10
- plainSubtle = 48
11
- }
12
- declare const enum ButtonSize {
13
- default = 1,
14
- small = 2,
15
- large = 4
16
- }
17
- declare const enum ButtonDisabledType {
18
- enabled = 1,
19
- disabled = 2
20
- }
21
- declare type ButtonTypes<T> = MappedEnum<typeof ButtonType, T>;
22
- declare type ButtonSizes<T> = MappedEnum<typeof ButtonSize, T>;
23
- declare type ButtonDisabledTypes<T> = MappedEnum<typeof ButtonDisabledType, T>;
24
- export declare type ButtonTypeProps = Partial<ButtonTypes<boolean>> & PropsWithChildren;
25
- export declare type ButtonSizeProps = Partial<RequireOnlyOne<ButtonSizes<boolean>>> & PropsWithChildren;
26
- export declare type ButtonDisabledTypeProps = Partial<RequireOnlyOne<ButtonDisabledTypes<boolean>>> & PropsWithChildren;
27
- export declare function getBackgroundColorByType(type: ButtonType): string;
28
- export declare function getBackgroundColorHoverByType(type: ButtonType): string;
29
- export declare function getTextDecorationHoverByType(type: ButtonType): string;
30
- export declare function getBackgroundColorDisabledByType(type: ButtonType): string;
31
- export declare function getBackgroundColorPressedByType(type: ButtonType): string;
32
- export declare function getTextColorByType(type: ButtonType): string;
33
- export declare function getIconColorByType(type: ButtonType): string;
34
- export declare function getTextColorOnHoverByType(type: ButtonType): string;
35
- export declare function getIconColorOnHoverByType(type: ButtonType): string;
36
- export declare function getBorderByType(type: ButtonType): string;
37
- export declare function getBorderDisabledByType(type: ButtonType): string;
38
- export declare function getPaddingBySize(props: ButtonSizeProps): string;
39
- export declare function getPaddingByType(type: ButtonType): string;
40
- export declare function getTextColorIfDisabled(props: ButtonDisabledTypeProps): string;
41
- export declare function getCursor(props: ButtonDisabledTypeProps): string;
42
- export declare function getIsDisabled(props: ButtonDisabledTypeProps): boolean;
43
- export declare function getButtonType(props: ButtonTypeProps): number;
44
- export {};
1
+ import { MappedEnum, RequireOnlyOne, PropsWithChildren } from '@helpers';
2
+ export declare const enum ButtonType {
3
+ basic = 1,
4
+ primary = 2,
5
+ destructive = 4,
6
+ destructivePrimary = 6,
7
+ outline = 8,
8
+ plain = 16,
9
+ subtle = 32,
10
+ plainSubtle = 48
11
+ }
12
+ declare const enum ButtonSize {
13
+ default = 1,
14
+ small = 2,
15
+ large = 4
16
+ }
17
+ declare const enum ButtonDisabledType {
18
+ enabled = 1,
19
+ disabled = 2
20
+ }
21
+ type ButtonTypes<T> = MappedEnum<typeof ButtonType, T>;
22
+ type ButtonSizes<T> = MappedEnum<typeof ButtonSize, T>;
23
+ type ButtonDisabledTypes<T> = MappedEnum<typeof ButtonDisabledType, T>;
24
+ export type ButtonTypeProps = Partial<ButtonTypes<boolean>> & PropsWithChildren;
25
+ export type ButtonSizeProps = Partial<RequireOnlyOne<ButtonSizes<boolean>>> & PropsWithChildren;
26
+ export type ButtonDisabledTypeProps = Partial<RequireOnlyOne<ButtonDisabledTypes<boolean>>> & PropsWithChildren;
27
+ export declare function getBackgroundColorByType(type: ButtonType): string;
28
+ export declare function getBackgroundColorHoverByType(type: ButtonType): string;
29
+ export declare function getTextDecorationHoverByType(type: ButtonType): string;
30
+ export declare function getBackgroundColorDisabledByType(type: ButtonType): string;
31
+ export declare function getBackgroundColorPressedByType(type: ButtonType): string;
32
+ export declare function getTextColorByType(type: ButtonType): string;
33
+ export declare function getIconColorByType(type: ButtonType): string;
34
+ export declare function getTextColorOnHoverByType(type: ButtonType): string;
35
+ export declare function getIconColorOnHoverByType(type: ButtonType): string;
36
+ export declare function getBorderByType(type: ButtonType): string;
37
+ export declare function getBorderDisabledByType(type: ButtonType): string;
38
+ export declare function getPaddingBySize(props: ButtonSizeProps): string;
39
+ export declare function getPaddingByType(type: ButtonType): string;
40
+ export declare function getTextColorIfDisabled(props: ButtonDisabledTypeProps): string;
41
+ export declare function getCursor(props: ButtonDisabledTypeProps): string;
42
+ export declare function getIsDisabled(props: ButtonDisabledTypeProps): boolean;
43
+ export declare function getButtonType(props: ButtonTypeProps): number;
44
+ export {};
@@ -1,12 +1,12 @@
1
- import { FC } from '@helpers';
2
- import { ButtonSizeProps, ButtonTypeProps } from './button-flags';
3
- import { ComponentType } from 'react';
4
- interface IButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
5
- loading?: boolean;
6
- IconPrefix?: ComponentType;
7
- IconSuffix?: ComponentType;
8
- children?: string;
9
- subtle?: boolean;
10
- }
11
- export declare const Button: FC<IButtonProps & ButtonTypeProps & ButtonSizeProps>;
12
- export {};
1
+ import { FC } from '@helpers';
2
+ import { ButtonSizeProps, ButtonTypeProps } from './button-flags';
3
+ import { ComponentType } from 'react';
4
+ interface IButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
5
+ loading?: boolean;
6
+ IconPrefix?: ComponentType;
7
+ IconSuffix?: ComponentType;
8
+ children?: string;
9
+ subtle?: boolean;
10
+ }
11
+ export declare const Button: FC<IButtonProps & ButtonTypeProps & ButtonSizeProps>;
12
+ export {};
@@ -1 +1 @@
1
- export * from './button';
1
+ export * from './button';
@@ -1,4 +1,4 @@
1
- export * from './avatar';
2
- export * from './button';
3
- export * from './input-checkbox';
4
- export * from './simple-menu';
1
+ export * from './avatar';
2
+ export * from './button';
3
+ export * from './input-checkbox';
4
+ export * from './simple-menu';
@@ -1 +1 @@
1
- export * from './input-checkbox';
1
+ export * from './input-checkbox';