@true-engineering/true-react-common-ui-kit 3.0.5 → 3.1.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 (154) hide show
  1. package/README.md +39 -0
  2. package/dist/components/AccountInfo/AccountInfo.stories.d.ts +8 -0
  3. package/dist/components/AccountInfo/AccountInfo.styles.d.ts +1 -1
  4. package/dist/components/AddButton/AddButton.stories.d.ts +8 -0
  5. package/dist/components/AddButton/AddButton.styles.d.ts +1 -1
  6. package/dist/components/Button/Button.stories.d.ts +6 -0
  7. package/dist/components/Button/Button.styles.d.ts +1 -1
  8. package/dist/components/Button/types.d.ts +2 -2
  9. package/dist/components/Checkbox/Checkbox.stories.d.ts +5 -0
  10. package/dist/components/Checkbox/Checkbox.styles.d.ts +1 -1
  11. package/dist/components/CloseButton/CloseButton.styles.d.ts +1 -1
  12. package/dist/components/Colors/Colors.stories.d.ts +5 -0
  13. package/dist/components/CssBaseline/CssBaseline.d.ts +1 -1
  14. package/dist/components/CssBaseline/CssBaseline.styles.d.ts +1 -1
  15. package/dist/components/DateInput/DateInput.stories.d.ts +8 -0
  16. package/dist/components/DateInput/DateInput.styles.d.ts +1 -1
  17. package/dist/components/DatePicker/DatePicker.d.ts +1 -0
  18. package/dist/components/DatePicker/DatePicker.stories.d.ts +8 -0
  19. package/dist/components/DatePicker/DatePicker.styles.d.ts +1 -1
  20. package/dist/components/DatePicker/components/DatePickerHeader/DatePickerHeader.styles.d.ts +1 -1
  21. package/dist/components/DatePicker/types.d.ts +2 -2
  22. package/dist/components/Description/Description.stories.d.ts +18 -0
  23. package/dist/components/Description/Description.styles.d.ts +1 -1
  24. package/dist/components/FiltersPane/FiltersPane.stories.d.ts +32 -0
  25. package/dist/components/FiltersPane/FiltersPane.styles.d.ts +1 -1
  26. package/dist/components/FiltersPane/components/FilterInterval/FilterInterval.styles.d.ts +1 -1
  27. package/dist/components/FiltersPane/components/FilterMultiSelect/FilterMultiSelect.d.ts +1 -1
  28. package/dist/components/FiltersPane/components/FilterSelect/FilterSelect.styles.d.ts +1 -1
  29. package/dist/components/FiltersPane/components/FilterValueView/FilterValueView.styles.d.ts +1 -1
  30. package/dist/components/FiltersPane/components/FilterWithDates/FilterWithDates.styles.d.ts +1 -1
  31. package/dist/components/FiltersPane/components/FilterWithPeriod/FilterWithPeriod.styles.d.ts +1 -1
  32. package/dist/components/FiltersPane/components/FilterWrapper/FilterWrapper.styles.d.ts +2 -2
  33. package/dist/components/FiltersPane/components/FiltersPaneSearch/FiltersPaneSearch.styles.d.ts +1 -1
  34. package/dist/components/FiltersPane/types.d.ts +18 -18
  35. package/dist/components/Flag/Flag.stories.d.ts +14 -0
  36. package/dist/components/Flag/Flag.styles.d.ts +1 -1
  37. package/dist/components/FlexibleTable/FlexibleTable.stories.d.ts +20 -0
  38. package/dist/components/FlexibleTable/FlexibleTable.styles.d.ts +1 -1
  39. package/dist/components/FlexibleTable/components/FlexibleTableCell/FlexibleTableCell.styles.d.ts +1 -1
  40. package/dist/components/FlexibleTable/components/FlexibleTableRow/FlexibleTableRow.styles.d.ts +1 -1
  41. package/dist/components/FlexibleTable/types.d.ts +6 -6
  42. package/dist/components/Icon/Icon.stories.d.ts +6 -0
  43. package/dist/components/Icon/Icon.styles.d.ts +1 -1
  44. package/dist/components/Icon/icons-list.d.ts +1 -1
  45. package/dist/components/Icon/types.d.ts +4 -4
  46. package/dist/components/IncrementInput/IncrementInput.stories.d.ts +8 -0
  47. package/dist/components/IncrementInput/IncrementInput.styles.d.ts +1 -1
  48. package/dist/components/Input/Input.stories.d.ts +35 -0
  49. package/dist/components/Input/Input.styles.d.ts +2 -2
  50. package/dist/components/Input/types.d.ts +1 -1
  51. package/dist/components/List/List.stories.d.ts +6 -0
  52. package/dist/components/List/List.styles.d.ts +1 -1
  53. package/dist/components/List/components/ListItem/ListItem.styles.d.ts +1 -1
  54. package/dist/components/Modal/Modal.stories.d.ts +30 -0
  55. package/dist/components/Modal/Modal.styles.d.ts +1 -1
  56. package/dist/components/Modal/types.d.ts +2 -2
  57. package/dist/components/MoreMenu/MoreMenu.stories.d.ts +8 -0
  58. package/dist/components/MoreMenu/MoreMenu.styles.d.ts +1 -1
  59. package/dist/components/MultiSelect/MultiSelect.stories.d.ts +14 -0
  60. package/dist/components/MultiSelect/MultiSelect.styles.d.ts +2 -2
  61. package/dist/components/MultiSelect/components/MultiSelectInput/MultiSelectInput.styles.d.ts +1 -1
  62. package/dist/components/MultiSelect/types.d.ts +1 -1
  63. package/dist/components/MultiSelectList/MultiSelectList.styles.d.ts +1 -1
  64. package/dist/components/MultiSelectList/types.d.ts +1 -1
  65. package/dist/components/Notification/Notification.d.ts +0 -1
  66. package/dist/components/Notification/Notification.stories.d.ts +8 -0
  67. package/dist/components/Notification/Notification.styles.d.ts +1 -1
  68. package/dist/components/Notification/types.d.ts +1 -1
  69. package/dist/components/NumberInput/NumberInput.stories.d.ts +8 -0
  70. package/dist/components/PhoneInput/PhoneInput.stories.d.ts +30 -0
  71. package/dist/components/PhoneInput/PhoneInput.styles.d.ts +1 -1
  72. package/dist/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.stories.d.ts +6 -0
  73. package/dist/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.styles.d.ts +1 -1
  74. package/dist/components/RadioButton/RadioButton.stories.d.ts +8 -0
  75. package/dist/components/RadioButton/RadioButton.styles.d.ts +1 -1
  76. package/dist/components/ScrollIntoViewIfNeeded/ScrollIntoViewIfNeeded.d.ts +2 -2
  77. package/dist/components/SearchInput/SearchInput.d.ts +1 -1
  78. package/dist/components/SearchInput/SearchInput.stories.d.ts +8 -0
  79. package/dist/components/SearchInput/SearchInput.styles.d.ts +1 -1
  80. package/dist/components/Select/MultiSelect.stories.d.ts +17 -0
  81. package/dist/components/Select/Select.stories.d.ts +17 -0
  82. package/dist/components/Select/Select.styles.d.ts +4 -4
  83. package/dist/components/Select/components/SelectList/SelectList.styles.d.ts +1 -1
  84. package/dist/components/Select/types.d.ts +1 -1
  85. package/dist/components/Selector/Selector.d.ts +21 -0
  86. package/dist/components/Selector/Selector.stories.d.ts +8 -0
  87. package/dist/components/Selector/Selector.styles.d.ts +9 -0
  88. package/dist/components/Selector/index.d.ts +2 -0
  89. package/dist/components/Selector/types.d.ts +10 -0
  90. package/dist/components/Skeleton/Skeleton.stories.d.ts +8 -0
  91. package/dist/components/Skeleton/Skeleton.styles.d.ts +1 -1
  92. package/dist/components/SmartInput/SmartInput.stories.d.ts +19 -0
  93. package/dist/components/SmartInput/types.d.ts +1 -1
  94. package/dist/components/Status/Status.d.ts +16 -0
  95. package/dist/components/Status/Status.stories.d.ts +8 -0
  96. package/dist/components/Status/Status.styles.d.ts +3 -0
  97. package/dist/components/Status/constants.d.ts +2 -0
  98. package/dist/components/Status/index.d.ts +2 -0
  99. package/dist/components/Status/types.d.ts +3 -0
  100. package/dist/components/Switch/Switch.stories.d.ts +17 -0
  101. package/dist/components/Switch/Switch.styles.d.ts +1 -1
  102. package/dist/components/TextArea/TextArea.stories.d.ts +18 -0
  103. package/dist/components/TextArea/TextArea.styles.d.ts +1 -1
  104. package/dist/components/TextButton/TextButton.d.ts +30 -0
  105. package/dist/components/TextButton/TextButton.stories.d.ts +6 -0
  106. package/dist/components/TextButton/TextButton.styles.d.ts +7 -0
  107. package/dist/components/TextButton/index.d.ts +3 -0
  108. package/dist/components/TextWithInfo/TextWithInfo.stories.d.ts +13 -0
  109. package/dist/components/TextWithInfo/TextWithInfo.styles.d.ts +1 -1
  110. package/dist/components/TextWithTooltip/TextWithTooltip.stories.d.ts +26 -0
  111. package/dist/components/TextWithTooltip/TextWithTooltip.styles.d.ts +1 -1
  112. package/dist/components/ThemedPreloader/ThemedPreloader.stories.d.ts +18 -0
  113. package/dist/components/ThemedPreloader/ThemedPreloader.styles.d.ts +1 -1
  114. package/dist/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.d.ts +1 -1
  115. package/dist/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.styles.d.ts +1 -1
  116. package/dist/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.styles.d.ts +1 -1
  117. package/dist/components/ThemedPreloader/types.d.ts +1 -1
  118. package/dist/components/Toaster/Toaster.stories.d.ts +6 -0
  119. package/dist/components/Toaster/Toaster.styles.d.ts +1 -1
  120. package/dist/components/Toaster/types.d.ts +1 -1
  121. package/dist/components/Tooltip/Tooltip.stories.d.ts +6 -0
  122. package/dist/components/Tooltip/Tooltip.styles.d.ts +1 -1
  123. package/dist/components/Tooltip/types.d.ts +1 -1
  124. package/dist/components/index.d.ts +7 -4
  125. package/dist/hooks/use-tweak-styles.d.ts +1 -1
  126. package/dist/theme/common.d.ts +37 -2
  127. package/dist/theme/types.d.ts +12 -9
  128. package/dist/true-react-common-ui-kit.js +2286 -1487
  129. package/dist/true-react-common-ui-kit.js.map +1 -1
  130. package/dist/true-react-common-ui-kit.umd.cjs +2285 -1486
  131. package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
  132. package/package.json +3 -3
  133. package/src/components/Notification/Notification.tsx +0 -2
  134. package/src/components/Selector/Selector.stories.tsx +62 -0
  135. package/src/components/Selector/Selector.styles.ts +164 -0
  136. package/src/components/Selector/Selector.tsx +115 -0
  137. package/src/components/Selector/index.ts +2 -0
  138. package/src/components/Selector/types.ts +12 -0
  139. package/src/components/Status/Status.stories.tsx +73 -0
  140. package/src/components/Status/Status.styles.ts +143 -0
  141. package/src/components/Status/Status.tsx +49 -0
  142. package/src/components/Status/constants.ts +11 -0
  143. package/src/components/Status/index.ts +3 -0
  144. package/src/components/Status/types.ts +5 -0
  145. package/src/components/TextButton/TextButton.stories.tsx +46 -0
  146. package/src/components/TextButton/TextButton.styles.ts +129 -0
  147. package/src/components/TextButton/TextButton.tsx +103 -0
  148. package/src/components/TextButton/index.ts +4 -0
  149. package/src/components/index.ts +7 -4
  150. package/src/theme/common.ts +4 -3
  151. package/src/theme/types.ts +13 -7
  152. package/dist/components/Flag/augment.d.ts +0 -1
  153. package/dist/components/Icon/complexIcons/augment.d.ts +0 -1
  154. package/dist/vite-env.d.ts +0 -1
@@ -0,0 +1,35 @@
1
+ /// <reference types="react" />
2
+ import { ComponentStory } from '@storybook/react';
3
+ import { IInputProps } from './Input';
4
+ declare const _default: {
5
+ title: string;
6
+ component: import("react").ForwardRefExoticComponent<IInputProps & import("react").RefAttributes<HTMLInputElement>>;
7
+ argTypes: {
8
+ type: {
9
+ control: string;
10
+ options: ("number" | "text" | "email" | "password" | undefined)[];
11
+ };
12
+ border: {
13
+ control: string;
14
+ options: (string | undefined)[];
15
+ };
16
+ iconType: {
17
+ control: string;
18
+ options: (string | undefined)[];
19
+ };
20
+ errorPosition: {
21
+ control: string;
22
+ options: string[];
23
+ };
24
+ mask: {
25
+ control: string;
26
+ options: (string | undefined)[];
27
+ };
28
+ inlineStyles: {
29
+ control: string;
30
+ options: (string | undefined)[];
31
+ };
32
+ };
33
+ };
34
+ export default _default;
35
+ export declare const Default: ComponentStory<import("react").ForwardRefExoticComponent<IInputProps & import("react").RefAttributes<HTMLInputElement>>>;
@@ -1,7 +1,7 @@
1
1
  import { ITweakStyles } from '../../theme';
2
2
  import { IThemedPreloaderStyles } from '../ThemedPreloader';
3
3
  export declare const AUTOSIZE_MAX_WIDTH = 480;
4
- export declare const useStyles: import("../../theme").IUseStyles<"top" | "bottom" | "right" | "left" | "error" | "input" | "invalid" | "root" | "middle" | "icon" | "disabled" | "loading" | "inputWrapper" | "autosize" | "label" | "focused" | "inputContent" | "unitsWrapper" | "fakeValue" | "units" | "withFloatingLabel" | "floatingLabelWithoutPadding" | "floating" | "activeLabel" | "required" | "floatingWithoutPadding" | "requiredLabel" | "activeIcon" | "border-top" | "border-bottom" | "border-left" | "border-right" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | "controls" | "clearIcon" | "inputIcon" | "withIcons" | "withControls" | "invalidLabel" | "info" | "error-top" | "error-bottom" | "withUnits", unknown>;
5
- export declare type IInputStyles = ITweakStyles<typeof useStyles, {
4
+ export declare const useStyles: import("../../theme").IUseStyles<"bottom" | "left" | "right" | "top" | "error" | "input" | "invalid" | "root" | "middle" | "icon" | "disabled" | "loading" | "inputWrapper" | "autosize" | "label" | "focused" | "inputContent" | "unitsWrapper" | "fakeValue" | "units" | "withFloatingLabel" | "floatingLabelWithoutPadding" | "floating" | "activeLabel" | "required" | "floatingWithoutPadding" | "requiredLabel" | "activeIcon" | "border-top" | "border-bottom" | "border-left" | "border-right" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | "controls" | "clearIcon" | "inputIcon" | "withIcons" | "withControls" | "invalidLabel" | "info" | "error-top" | "error-bottom" | "withUnits", unknown>;
5
+ export type IInputStyles = ITweakStyles<typeof useStyles, {
6
6
  tweakPreloader: IThemedPreloaderStyles;
7
7
  }>;
@@ -1,2 +1,2 @@
1
1
  import { Props as ReactInputMaskBaseProps } from 'react-input-mask';
2
- export declare type IReactInputMaskProps = Pick<Partial<ReactInputMaskBaseProps>, 'mask' | 'maskPlaceholder' | 'alwaysShowMask' | 'beforeMaskedStateChange'>;
2
+ export type IReactInputMaskProps = Pick<Partial<ReactInputMaskBaseProps>, 'mask' | 'maskPlaceholder' | 'alwaysShowMask' | 'beforeMaskedStateChange'>;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { ComponentStory, ComponentMeta } from '@storybook/react';
3
+ import { List } from './List';
4
+ declare const _default: ComponentMeta<import("react").FC<import("./List").IListProps>>;
5
+ export default _default;
6
+ export declare const Default: ComponentStory<typeof List>;
@@ -1,3 +1,3 @@
1
1
  import { ITweakStyles } from '../../theme';
2
2
  export declare const useStyles: import("../../theme").IUseStyles<"content" | "item" | "root" | "icon" | "disabledItem" | "spacer" | "withIconGap", unknown>;
3
- export declare type IListStyles = ITweakStyles<typeof useStyles>;
3
+ export type IListStyles = ITweakStyles<typeof useStyles>;
@@ -1,3 +1,3 @@
1
1
  import { ITweakStyles } from '../../../../theme';
2
2
  export declare const useStyles: import("../../../../theme").IUseStyles<"content" | "root" | "default" | "icon" | "destructive" | "disabledItem" | "spacer" | "withIconGap", unknown>;
3
- export declare type IListItemStyles = ITweakStyles<typeof useStyles>;
3
+ export type IListItemStyles = ITweakStyles<typeof useStyles>;
@@ -0,0 +1,30 @@
1
+ import { FC } from 'react';
2
+ import { ComponentStory } from '@storybook/react';
3
+ import { IModalProps } from './Modal';
4
+ export interface IModalWithCustomProps extends IModalProps {
5
+ textSize: 'small' | 'medium' | 'large';
6
+ }
7
+ declare const _default: {
8
+ title: string;
9
+ component: FC<IModalProps>;
10
+ argTypes: {
11
+ buttonsAlign: {
12
+ control: string;
13
+ options: string[];
14
+ };
15
+ textSize: {
16
+ control: string;
17
+ options: string[];
18
+ };
19
+ size: {
20
+ control: string;
21
+ options: string[];
22
+ };
23
+ position: {
24
+ control: string;
25
+ options: string[];
26
+ };
27
+ };
28
+ };
29
+ export default _default;
30
+ export declare const Default: ComponentStory<FC<IModalWithCustomProps>>;
@@ -1,6 +1,6 @@
1
1
  import { ITweakStyles } from '../../theme';
2
2
  import { ICloseButtonStyles } from '../CloseButton';
3
3
  export declare const useStyles: import("../../theme").IUseStyles<"content" | "close" | "root" | "overlay" | "s" | "m" | "l" | "footer" | "animationEnd" | "animationStart" | "fixedPosition" | "innerOverlay" | "sideBar" | "position-static" | "position-left" | "position-right" | "position-center" | "modal" | "title" | "titleWithCloseButton" | "stickyFooterWrapper" | "stickyFooter" | "buttons-left" | "buttons-center" | "buttons-right" | "withoutFooter" | "withStickyFooter" | "footerWrapper" | "modalWrapper" | "modal-enter" | "modal-enter-active" | "modal-exit" | "modal-exit-active", unknown>;
4
- export declare type IModalStyles = ITweakStyles<typeof useStyles, {
4
+ export type IModalStyles = ITweakStyles<typeof useStyles, {
5
5
  tweakCloseButton: ICloseButtonStyles;
6
6
  }>;
@@ -1,3 +1,3 @@
1
1
  import { TransitionProps } from 'react-transition-group/Transition';
2
- export declare type IModalPosition = 'center' | 'left' | 'right' | 'static';
3
- export declare type IModalTransitionProps = Pick<TransitionProps<HTMLDivElement>, 'in' | 'mountOnEnter' | 'unmountOnExit' | 'timeout' | 'onEnter' | 'onEntering' | 'onEntered' | 'onExit' | 'onExiting' | 'onExited'>;
2
+ export type IModalPosition = 'center' | 'left' | 'right' | 'static';
3
+ export type IModalTransitionProps = Pick<TransitionProps<HTMLDivElement>, 'in' | 'mountOnEnter' | 'unmountOnExit' | 'timeout' | 'onEnter' | 'onEntering' | 'onEntered' | 'onExit' | 'onExiting' | 'onExited'>;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { ComponentStory } from '@storybook/react';
3
+ declare const _default: {
4
+ title: string;
5
+ component: import("react").FC<import("./MoreMenu").IMoreMenuProps>;
6
+ };
7
+ export default _default;
8
+ export declare const Default: ComponentStory<import("react").FC<import("./MoreMenu").IMoreMenuProps>>;
@@ -1,6 +1,6 @@
1
1
  import { ITweakStyles } from '../../theme';
2
2
  import { IListStyles } from '../List';
3
3
  export declare const useStyles: import("../../theme").IUseStyles<"root" | "button" | "icon" | "menu" | "active" | "disabled" | "hasCircle", unknown>;
4
- export declare type IMoreMenuStyles = ITweakStyles<typeof useStyles, {
4
+ export type IMoreMenuStyles = ITweakStyles<typeof useStyles, {
5
5
  tweakList: IListStyles;
6
6
  }>;
@@ -0,0 +1,14 @@
1
+ import { ComponentStory } from '@storybook/react';
2
+ import { MultiSelect } from './MultiSelect';
3
+ declare const _default: {
4
+ title: string;
5
+ component: typeof MultiSelect;
6
+ argTypes: {
7
+ corners: {
8
+ control: string;
9
+ options: string[];
10
+ };
11
+ };
12
+ };
13
+ export default _default;
14
+ export declare const Default: ComponentStory<typeof MultiSelect>;
@@ -1,7 +1,7 @@
1
1
  import { ITweakStyles } from '../../theme';
2
2
  import { IMultiSelectListStyles } from '../MultiSelectList';
3
- export declare const useStyles: import("../../theme").IUseStyles<"right" | "left" | "invalid" | "root" | "open" | "disabled" | "required" | "listContainer" | "full", unknown>;
3
+ export declare const useStyles: import("../../theme").IUseStyles<"left" | "right" | "invalid" | "root" | "open" | "disabled" | "required" | "listContainer" | "full", unknown>;
4
4
  export declare const multiSelectListStyles: IMultiSelectListStyles;
5
- export declare type IMultiSelectStyles = ITweakStyles<typeof useStyles, {
5
+ export type IMultiSelectStyles = ITweakStyles<typeof useStyles, {
6
6
  tweakMultiSelectList: IMultiSelectListStyles;
7
7
  }>;
@@ -1,3 +1,3 @@
1
1
  import { ITweakStyles } from '../../../../theme';
2
2
  export declare const useStyles: import("../../../../theme").IUseStyles<"value" | "root" | "values" | "placeholder" | "placeholderSmall" | "amount" | "indicator" | "arrow" | "arrowUp" | "indicatorDisabled", unknown>;
3
- export declare type IMultiSelectInputStyles = ITweakStyles<typeof useStyles>;
3
+ export type IMultiSelectInputStyles = ITweakStyles<typeof useStyles>;
@@ -1 +1 @@
1
- export declare type IHorizontalCornerConnection = 'full' | 'left' | 'right';
1
+ export type IHorizontalCornerConnection = 'full' | 'left' | 'right';
@@ -6,7 +6,7 @@ export declare const useStyles: import("../../theme").IUseStyles<"clear" | "item
6
6
  export declare const searchInputStyles: ISearchInputStyles;
7
7
  export declare const checkboxStyles: ICheckboxStyles;
8
8
  export declare const clearButtonStyles: IButtonStyles;
9
- export declare type IMultiSelectListStyles = ITweakStyles<typeof useStyles, {
9
+ export type IMultiSelectListStyles = ITweakStyles<typeof useStyles, {
10
10
  tweakSearchInput: ISearchInputStyles;
11
11
  tweakCheckbox: ICheckboxStyles;
12
12
  tweakClearButton: IButtonStyles;
@@ -9,4 +9,4 @@ export interface IMultiSelectLocale {
9
9
  searchPlaceholder: string;
10
10
  nothingFound: string;
11
11
  }
12
- export declare type IMultiSelectLocaleKey = keyof typeof MultiSelectLocales;
12
+ export type IMultiSelectLocaleKey = keyof typeof MultiSelectLocales;
@@ -17,4 +17,3 @@ export interface INotificationProps extends ICommonProps<INotificationStyles> {
17
17
  children?: ReactNode;
18
18
  }
19
19
  export declare const Notification: FC<INotificationProps>;
20
- export default Notification;
@@ -0,0 +1,8 @@
1
+ import { Meta, Story } from '@storybook/react';
2
+ import { INotificationProps } from './Notification';
3
+ interface IStory extends INotificationProps {
4
+ shouldUseChildrenInstead: boolean;
5
+ }
6
+ declare const _default: Meta<IStory>;
7
+ export default _default;
8
+ export declare const Default: Story<IStory>;
@@ -1,3 +1,3 @@
1
1
  import { ITweakStyles } from '../../theme';
2
2
  export declare const useStyles: import("../../theme").IUseStyles<"content" | "error" | "root" | "inline" | "text" | "icon" | "warning" | "s" | "m" | "l" | "info" | "title" | "body" | "withText" | "withTitle" | "ok" | "not-ok", unknown>;
3
- export declare type INotificationStyles = ITweakStyles<typeof useStyles>;
3
+ export type INotificationStyles = ITweakStyles<typeof useStyles>;
@@ -1 +1 @@
1
- export declare type INotificationType = 'error' | 'info' | 'warning' | 'ok' | 'not-ok';
1
+ export type INotificationType = 'error' | 'info' | 'warning' | 'ok' | 'not-ok';
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { ComponentStory } from '@storybook/react';
3
+ declare const _default: {
4
+ title: string;
5
+ component: import("react").ForwardRefExoticComponent<import("./NumberInput").INumberInputProps & import("react").RefAttributes<HTMLInputElement>>;
6
+ };
7
+ export default _default;
8
+ export declare const Default: ComponentStory<import("react").ForwardRefExoticComponent<import("./NumberInput").INumberInputProps & import("react").RefAttributes<HTMLInputElement>>>;
@@ -0,0 +1,30 @@
1
+ /// <reference types="react" />
2
+ import { ComponentStory } from '@storybook/react';
3
+ declare const _default: {
4
+ title: string;
5
+ component: import("react").FC<import("./PhoneInput").IPhoneInputProps>;
6
+ argTypes: {
7
+ iconType: {
8
+ control: string;
9
+ options: (string | undefined)[];
10
+ };
11
+ errorPosition: {
12
+ control: string;
13
+ options: string[];
14
+ };
15
+ border: {
16
+ control: string;
17
+ options: (string | undefined)[];
18
+ };
19
+ inlineStyle: {
20
+ control: string;
21
+ options: (string | undefined)[];
22
+ };
23
+ defaultCountryCode: {
24
+ control: string;
25
+ options: string[];
26
+ };
27
+ };
28
+ };
29
+ export default _default;
30
+ export declare const Default: ComponentStory<import("react").FC<import("./PhoneInput").IPhoneInputProps>>;
@@ -3,7 +3,7 @@ import { IInputStyles } from '../Input';
3
3
  import { IPhoneInputCountryListStyles } from './components';
4
4
  export declare const useStyles: import("../../theme").IUseStyles<"root" | "arrow" | "countrySelectContainer" | "disabledCountrySelect" | "flag" | "up" | "invalidArrow" | "focusedBorder" | "invalidBorder" | "inputContainer" | "flagListContainer", unknown>;
5
5
  export declare const inputStyles: IInputStyles;
6
- export declare type IPhoneInputStyles = ITweakStyles<typeof useStyles, {
6
+ export type IPhoneInputStyles = ITweakStyles<typeof useStyles, {
7
7
  tweakInput: IInputStyles;
8
8
  tweakCountryList: IPhoneInputCountryListStyles;
9
9
  }>;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { ComponentStory, ComponentMeta } from '@storybook/react';
3
+ import { PhoneInputCountryList } from './PhoneInputCountryList';
4
+ declare const _default: ComponentMeta<import("react").FC<import("./PhoneInputCountryList").IPhoneInputCountryListProps>>;
5
+ export default _default;
6
+ export declare const Default: ComponentStory<typeof PhoneInputCountryList>;
@@ -2,6 +2,6 @@ import { ITweakStyles } from '../../../../theme';
2
2
  import { IInputStyles } from '../../../Input';
3
3
  export declare const useStyles: import("../../../../theme").IUseStyles<"dialCode" | "root" | "icon" | "flag" | "searchContainer" | "searchIcon" | "flagList" | "listItem" | "selectedCountry" | "activeCountry" | "countryName" | "emptyResult", unknown>;
4
4
  export declare const inputStyles: IInputStyles;
5
- export declare type IPhoneInputCountryListStyles = ITweakStyles<typeof useStyles, {
5
+ export type IPhoneInputCountryListStyles = ITweakStyles<typeof useStyles, {
6
6
  tweakInput: IInputStyles;
7
7
  }>;
@@ -0,0 +1,8 @@
1
+ import { ComponentStory } from '@storybook/react';
2
+ import { RadioButton } from './RadioButton';
3
+ declare const _default: {
4
+ title: string;
5
+ component: typeof RadioButton;
6
+ };
7
+ export default _default;
8
+ export declare const Default: ComponentStory<typeof RadioButton>;
@@ -1,3 +1,3 @@
1
1
  import { ITweakStyles } from '../../theme';
2
2
  export declare const useStyles: import("../../theme").IUseStyles<"content" | "input" | "label" | "isDisabled" | "isInvalid", unknown>;
3
- export declare type IRadioButtonStyles = ITweakStyles<typeof useStyles>;
3
+ export type IRadioButtonStyles = ITweakStyles<typeof useStyles>;
@@ -137,7 +137,7 @@ export declare class ScrollIntoViewIfNeeded extends PureComponent<IScrollIntoVie
137
137
  style?: import("react").CSSProperties | undefined;
138
138
  tabIndex?: number | undefined;
139
139
  title?: string | undefined;
140
- translate?: "yes" | "no" | undefined;
140
+ translate?: "no" | "yes" | undefined;
141
141
  radioGroup?: string | undefined;
142
142
  role?: import("react").AriaRole | undefined;
143
143
  about?: string | undefined;
@@ -205,7 +205,7 @@ export declare class ScrollIntoViewIfNeeded extends PureComponent<IScrollIntoVie
205
205
  'aria-rowspan'?: number | undefined;
206
206
  'aria-selected'?: (boolean | "false" | "true") | undefined;
207
207
  'aria-setsize'?: number | undefined;
208
- 'aria-sort'?: "none" | "other" | "ascending" | "descending" | undefined;
208
+ 'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
209
209
  'aria-valuemax'?: number | undefined;
210
210
  'aria-valuemin'?: number | undefined;
211
211
  'aria-valuenow'?: number | undefined;
@@ -2,5 +2,5 @@ import { FC } from 'react';
2
2
  import { ICommonProps } from '../../types';
3
3
  import { IInputProps } from '../Input';
4
4
  import { ISearchInputStyles } from './SearchInput.styles';
5
- export declare type ISearchInputProps = Omit<IInputProps, 'type' | 'isInvalid' | 'errorMessage' | 'label' | 'isActive' | 'errorPosition' | 'hasFloatingLabel' | 'border' | 'tweakStyles'> & ICommonProps<ISearchInputStyles>;
5
+ export type ISearchInputProps = Omit<IInputProps, 'type' | 'isInvalid' | 'errorMessage' | 'label' | 'isActive' | 'errorPosition' | 'hasFloatingLabel' | 'border' | 'tweakStyles'> & ICommonProps<ISearchInputStyles>;
6
6
  export declare const SearchInput: FC<ISearchInputProps>;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { ComponentStory } from '@storybook/react';
3
+ declare const _default: {
4
+ title: string;
5
+ component: import("react").FC<import("./SearchInput").ISearchInputProps>;
6
+ };
7
+ export default _default;
8
+ export declare const Default: ComponentStory<import("react").FC<import("./SearchInput").ISearchInputProps>>;
@@ -2,6 +2,6 @@ import { ITweakStyles } from '../../theme';
2
2
  import { IInputStyles } from '../Input';
3
3
  export declare const useStyles: import("../../theme").IUseStyles<"root" | "icon", unknown>;
4
4
  export declare const inputStyles: IInputStyles;
5
- export declare type ISearchInputStyles = ITweakStyles<typeof useStyles, {
5
+ export type ISearchInputStyles = ITweakStyles<typeof useStyles, {
6
6
  tweakInput: IInputStyles;
7
7
  }>;
@@ -0,0 +1,17 @@
1
+ import { ComponentMeta, ComponentStory } from '@storybook/react';
2
+ import { ISelectProps } from './Select';
3
+ interface ISelectWithCustomProps<T> extends ISelectProps<T> {
4
+ valuesType: 'strings' | 'objects';
5
+ shouldUseReactNodes?: boolean;
6
+ shouldUsePopper?: boolean;
7
+ shouldRenderInBody?: boolean;
8
+ shouldHideOnScroll?: boolean;
9
+ shouldUseCustomIsDisabledFunction?: boolean;
10
+ shouldRenderSearchInputInList?: boolean;
11
+ canBeFlipped?: boolean;
12
+ scrollParent?: 'document' | 'auto';
13
+ }
14
+ declare function SelectWithCustomProps<T>({ valuesType, optionsMode, shouldUseReactNodes, shouldUsePopper, shouldRenderInBody, shouldHideOnScroll, shouldUseCustomIsDisabledFunction, shouldRenderSearchInputInList, canBeFlipped, scrollParent, noMatchesLabel, ...rest }: ISelectWithCustomProps<T>): JSX.Element;
15
+ declare const _default: ComponentMeta<typeof SelectWithCustomProps>;
16
+ export default _default;
17
+ export declare const MultiSelect: ComponentStory<typeof SelectWithCustomProps>;
@@ -0,0 +1,17 @@
1
+ import { ComponentMeta, ComponentStory } from '@storybook/react';
2
+ import { ISelectProps } from './Select';
3
+ interface ISelectWithCustomProps<T> extends ISelectProps<T> {
4
+ valuesType: 'strings' | 'objects';
5
+ shouldUseReactNodes?: boolean;
6
+ shouldUsePopper?: boolean;
7
+ shouldRenderInBody?: boolean;
8
+ shouldHideOnScroll?: boolean;
9
+ shouldUseCustomIsDisabledFunction?: boolean;
10
+ shouldRenderSearchInputInList?: boolean;
11
+ canBeFlipped?: boolean;
12
+ scrollParent?: 'document' | 'auto';
13
+ }
14
+ declare function SelectWithCustomProps<T>({ valuesType, optionsMode, shouldUseReactNodes, shouldUsePopper, shouldRenderInBody, shouldHideOnScroll, shouldUseCustomIsDisabledFunction, shouldRenderSearchInputInList, canBeFlipped, scrollParent, noMatchesLabel, ...rest }: ISelectWithCustomProps<T>): JSX.Element;
15
+ declare const _default: ComponentMeta<typeof SelectWithCustomProps>;
16
+ export default _default;
17
+ export declare const Default: ComponentStory<typeof SelectWithCustomProps>;
@@ -3,19 +3,19 @@ import { IInputStyles } from '../Input';
3
3
  import { ISearchInputStyles } from '../SearchInput';
4
4
  import { ISelectListStyles } from './components';
5
5
  export declare const useStyles: import("../../theme").IUseStyles<"root" | "icon" | "disabled" | "inputWrapper" | "arrow" | "listWrapper" | "withoutPopper" | "listWrapperInBody" | "activeArrow" | "counter", unknown>;
6
- export declare const readonlyInputStyles: Partial<import("jss").Styles<"top" | "bottom" | "right" | "left" | "error" | "input" | "invalid" | "root" | "middle" | "icon" | "disabled" | "loading" | "inputWrapper" | "autosize" | "label" | "focused" | "inputContent" | "unitsWrapper" | "fakeValue" | "units" | "withFloatingLabel" | "floatingLabelWithoutPadding" | "floating" | "activeLabel" | "required" | "floatingWithoutPadding" | "requiredLabel" | "activeIcon" | "border-top" | "border-bottom" | "border-left" | "border-right" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | "controls" | "clearIcon" | "inputIcon" | "withIcons" | "withControls" | "invalidLabel" | "info" | "error-top" | "error-bottom" | "withUnits", unknown, undefined>> & Partial<{
6
+ export declare const readonlyInputStyles: Partial<import("jss").Styles<"bottom" | "left" | "right" | "top" | "error" | "input" | "invalid" | "root" | "middle" | "icon" | "disabled" | "loading" | "inputWrapper" | "autosize" | "label" | "focused" | "inputContent" | "unitsWrapper" | "fakeValue" | "units" | "withFloatingLabel" | "floatingLabelWithoutPadding" | "floating" | "activeLabel" | "required" | "floatingWithoutPadding" | "requiredLabel" | "activeIcon" | "border-top" | "border-bottom" | "border-left" | "border-right" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | "controls" | "clearIcon" | "inputIcon" | "withIcons" | "withControls" | "invalidLabel" | "info" | "error-top" | "error-bottom" | "withUnits", unknown, undefined>> & Partial<{
7
7
  tweakPreloader: Partial<import("jss").Styles<"root" | "default" | "currentColor" | "dots" | "logo", unknown, undefined>> & Partial<{
8
8
  tweakDotsPreloader: Partial<import("jss").Styles<"root" | "dot" | "fadedDot" | "@keyframes FadedDots", unknown, undefined>> & Partial<unknown>;
9
9
  tweakSvgPreloader: Partial<import("jss").Styles<"root", unknown, undefined>> & Partial<unknown>;
10
10
  }>;
11
11
  }>;
12
- export declare const multiSelectInputStyles: Partial<import("jss").Styles<"top" | "bottom" | "right" | "left" | "error" | "input" | "invalid" | "root" | "middle" | "icon" | "disabled" | "loading" | "inputWrapper" | "autosize" | "label" | "focused" | "inputContent" | "unitsWrapper" | "fakeValue" | "units" | "withFloatingLabel" | "floatingLabelWithoutPadding" | "floating" | "activeLabel" | "required" | "floatingWithoutPadding" | "requiredLabel" | "activeIcon" | "border-top" | "border-bottom" | "border-left" | "border-right" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | "controls" | "clearIcon" | "inputIcon" | "withIcons" | "withControls" | "invalidLabel" | "info" | "error-top" | "error-bottom" | "withUnits", unknown, undefined>> & Partial<{
12
+ export declare const multiSelectInputStyles: Partial<import("jss").Styles<"bottom" | "left" | "right" | "top" | "error" | "input" | "invalid" | "root" | "middle" | "icon" | "disabled" | "loading" | "inputWrapper" | "autosize" | "label" | "focused" | "inputContent" | "unitsWrapper" | "fakeValue" | "units" | "withFloatingLabel" | "floatingLabelWithoutPadding" | "floating" | "activeLabel" | "required" | "floatingWithoutPadding" | "requiredLabel" | "activeIcon" | "border-top" | "border-bottom" | "border-left" | "border-right" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | "controls" | "clearIcon" | "inputIcon" | "withIcons" | "withControls" | "invalidLabel" | "info" | "error-top" | "error-bottom" | "withUnits", unknown, undefined>> & Partial<{
13
13
  tweakPreloader: Partial<import("jss").Styles<"root" | "default" | "currentColor" | "dots" | "logo", unknown, undefined>> & Partial<{
14
14
  tweakDotsPreloader: Partial<import("jss").Styles<"root" | "dot" | "fadedDot" | "@keyframes FadedDots", unknown, undefined>> & Partial<unknown>;
15
15
  tweakSvgPreloader: Partial<import("jss").Styles<"root", unknown, undefined>> & Partial<unknown>;
16
16
  }>;
17
17
  }>;
18
- export declare const readonlyMultiSelectStyles: Partial<import("jss").Styles<"top" | "bottom" | "right" | "left" | "error" | "input" | "invalid" | "root" | "middle" | "icon" | "disabled" | "loading" | "inputWrapper" | "autosize" | "label" | "focused" | "inputContent" | "unitsWrapper" | "fakeValue" | "units" | "withFloatingLabel" | "floatingLabelWithoutPadding" | "floating" | "activeLabel" | "required" | "floatingWithoutPadding" | "requiredLabel" | "activeIcon" | "border-top" | "border-bottom" | "border-left" | "border-right" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | "controls" | "clearIcon" | "inputIcon" | "withIcons" | "withControls" | "invalidLabel" | "info" | "error-top" | "error-bottom" | "withUnits", unknown, undefined>> & Partial<{
18
+ export declare const readonlyMultiSelectStyles: Partial<import("jss").Styles<"bottom" | "left" | "right" | "top" | "error" | "input" | "invalid" | "root" | "middle" | "icon" | "disabled" | "loading" | "inputWrapper" | "autosize" | "label" | "focused" | "inputContent" | "unitsWrapper" | "fakeValue" | "units" | "withFloatingLabel" | "floatingLabelWithoutPadding" | "floating" | "activeLabel" | "required" | "floatingWithoutPadding" | "requiredLabel" | "activeIcon" | "border-top" | "border-bottom" | "border-left" | "border-right" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | "controls" | "clearIcon" | "inputIcon" | "withIcons" | "withControls" | "invalidLabel" | "info" | "error-top" | "error-bottom" | "withUnits", unknown, undefined>> & Partial<{
19
19
  tweakPreloader: Partial<import("jss").Styles<"root" | "default" | "currentColor" | "dots" | "logo", unknown, undefined>> & Partial<{
20
20
  tweakDotsPreloader: Partial<import("jss").Styles<"root" | "dot" | "fadedDot" | "@keyframes FadedDots", unknown, undefined>> & Partial<unknown>;
21
21
  tweakSvgPreloader: Partial<import("jss").Styles<"root", unknown, undefined>> & Partial<unknown>;
@@ -26,7 +26,7 @@ export declare const getInputStyles: ({ hasReadonlyInput, isMultiSelect, }: {
26
26
  isMultiSelect: boolean;
27
27
  }) => IInputStyles;
28
28
  export declare const searchInputStyles: ISearchInputStyles;
29
- export declare type ISelectStyles = ITweakStyles<typeof useStyles, {
29
+ export type ISelectStyles = ITweakStyles<typeof useStyles, {
30
30
  tweakInput: IInputStyles;
31
31
  tweakSelectList: ISelectListStyles;
32
32
  tweakSearchInput: ISearchInputStyles;
@@ -3,4 +3,4 @@ export declare const ROW_HEIGHT = 40;
3
3
  export declare const CONTAINER_PADDING = 10;
4
4
  export declare const CELL_PADDING: number[];
5
5
  export declare const useStyles: import("../../../../theme").IUseStyles<"root" | "cell" | "active" | "disabled" | "loading" | "list" | "focused" | "withListHeader" | "listHeader" | "cellWithCheckbox" | "noMatchesLabel" | "defaultCell", unknown>;
6
- export declare type ISelectListStyles = ITweakStyles<typeof useStyles>;
6
+ export type ISelectListStyles = ITweakStyles<typeof useStyles>;
@@ -1 +1 @@
1
- export declare type IMultipleSelectValue<Value> = Array<NonNullable<Value>>;
1
+ export type IMultipleSelectValue<Value> = Array<NonNullable<Value>>;
@@ -0,0 +1,21 @@
1
+ import { ICommonProps } from '../../types';
2
+ import { ISelectorOption, ISelectorValue } from './types';
3
+ import { ISelectorStyles } from './Selector.styles';
4
+ export interface ISelectorProps<V extends ISelectorValue> extends ICommonProps<ISelectorStyles> {
5
+ options: Array<ISelectorOption<V>>;
6
+ value?: V;
7
+ /** @default false */
8
+ isDisabled?: boolean;
9
+ /** @default false */
10
+ isRequired?: boolean;
11
+ /** @default false */
12
+ isInvalid?: boolean;
13
+ /** @default true */
14
+ hasSameOptionsWidth?: boolean;
15
+ /** @default 'left' */
16
+ iconPosition?: 'left' | 'right';
17
+ /** @default 'l' */
18
+ size?: 's' | 'm' | 'l';
19
+ onChange: (value: V) => void;
20
+ }
21
+ export declare function Selector<V extends ISelectorValue>({ options, value, isDisabled, isRequired, isInvalid, hasSameOptionsWidth, iconPosition, size, testId, data, tweakStyles, onChange, }: ISelectorProps<V>): JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { ComponentStory } from '@storybook/react';
2
+ import { Selector } from './Selector';
3
+ declare const _default: {
4
+ title: string;
5
+ component: typeof Selector;
6
+ };
7
+ export default _default;
8
+ export declare const Default: ComponentStory<typeof Selector>;
@@ -0,0 +1,9 @@
1
+ import { CSSProperties } from 'react';
2
+ import { ITweakStyles } from '../../theme';
3
+ export declare const SELECTOR_GAP: number;
4
+ export declare const getSelectorLineStyle: (activeElementData?: {
5
+ clientWidth: number;
6
+ offsetLeft: number;
7
+ }) => CSSProperties | undefined;
8
+ export declare const useStyles: import("../../theme").IUseStyles<"invalid" | "root" | "active" | "disabled" | "iconFromRight" | "s" | "m" | "l" | "option" | "required" | "optionWrapper" | "optionIcon" | "optionText" | "line" | "selector" | "autoWidth", unknown>;
9
+ export type ISelectorStyles = ITweakStyles<typeof useStyles>;
@@ -0,0 +1,2 @@
1
+ export * from './Selector';
2
+ export type { ISelectorStyles } from './Selector.styles';
@@ -0,0 +1,10 @@
1
+ import { ReactNode } from 'react';
2
+ import { IIcon } from '../Icon';
3
+ export type ISelectorValue = string | number | boolean;
4
+ export interface ISelectorOption<V> {
5
+ label: ReactNode;
6
+ icon?: IIcon;
7
+ value: V;
8
+ /** @default false */
9
+ isDisabled?: boolean;
10
+ }
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { ComponentStory } from '@storybook/react';
3
+ declare const _default: {
4
+ title: string;
5
+ component: import("react").FC<import("./Skeleton").ISkeletonProps>;
6
+ };
7
+ export default _default;
8
+ export declare const Default: ComponentStory<import("react").FC<import("./Skeleton").ISkeletonProps>>;
@@ -1,3 +1,3 @@
1
1
  import { ITweakStyles } from '../../theme';
2
2
  export declare const useStyles: import("../../theme").IUseStyles<"root" | "@keyframes skeleton", unknown>;
3
- export declare type ISkeletonStyles = ITweakStyles<typeof useStyles>;
3
+ export type ISkeletonStyles = ITweakStyles<typeof useStyles>;
@@ -0,0 +1,19 @@
1
+ /// <reference types="react" />
2
+ import { ComponentStory } from '@storybook/react';
3
+ import { ISmartType } from './types';
4
+ declare const _default: {
5
+ title: string;
6
+ component: import("react").ForwardRefExoticComponent<import("./SmartInput").ISmartInputProps & import("react").RefAttributes<HTMLInputElement>>;
7
+ argTypes: {
8
+ type: {
9
+ control: string;
10
+ options: ("number" | "text" | "email" | "password" | undefined)[];
11
+ };
12
+ smartType: {
13
+ control: string;
14
+ options: ISmartType[];
15
+ };
16
+ };
17
+ };
18
+ export default _default;
19
+ export declare const Default: ComponentStory<import("react").ForwardRefExoticComponent<import("./SmartInput").ISmartInputProps & import("react").RefAttributes<HTMLInputElement>>>;
@@ -1 +1 @@
1
- export declare type ISmartType = 'name' | 'nameRuEn' | 'surname' | 'surnameRuEn' | 'email' | 'agencyName' | 'default' | 'digits' | 'docNumber' | 'benefitCert';
1
+ export type ISmartType = 'name' | 'nameRuEn' | 'surname' | 'surnameRuEn' | 'email' | 'agencyName' | 'default' | 'digits' | 'docNumber' | 'benefitCert';
@@ -0,0 +1,16 @@
1
+ import { FC, ReactNode } from 'react';
2
+ import { ICommonProps } from '../../types';
3
+ import { IIcon } from '../Icon';
4
+ import { IStatusColor, IStatusSize } from './types';
5
+ import { IStatusStyles } from './Status.styles';
6
+ export interface IStatusProps extends ICommonProps<IStatusStyles> {
7
+ children: ReactNode;
8
+ color: IStatusColor;
9
+ icon?: IIcon;
10
+ /** @default 's' */
11
+ size?: IStatusSize;
12
+ /** @default 'right' */
13
+ iconPosition?: 'left' | 'right';
14
+ badge?: ReactNode;
15
+ }
16
+ export declare const Status: FC<IStatusProps>;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { ComponentStory } from '@storybook/react';
3
+ declare const _default: {
4
+ title: string;
5
+ component: import("react").FC<import("./Status").IStatusProps>;
6
+ };
7
+ export default _default;
8
+ export declare const Default: ComponentStory<import("react").FC<import("./Status").IStatusProps>>;
@@ -0,0 +1,3 @@
1
+ import { ITweakStyles } from '../../theme';
2
+ export declare const useStyles: import("../../theme").IUseStyles<"root" | "text" | "blue" | "green" | "grey" | "orange" | "red" | "teal" | "violet" | "icon" | "custom" | "s" | "m" | "iconLeft" | "badge" | "xs", unknown>;
3
+ export type IStatusStyles = ITweakStyles<typeof useStyles>;
@@ -0,0 +1,2 @@
1
+ export declare const STATUS_COLORS: readonly ["green", "teal", "blue", "grey", "orange", "red", "violet", "custom"];
2
+ export declare const STATUS_SIZES: readonly ["xs", "s", "m"];
@@ -0,0 +1,2 @@
1
+ export * from './Status';
2
+ export type { IStatusStyles } from './Status.styles';
@@ -0,0 +1,3 @@
1
+ import { STATUS_COLORS, STATUS_SIZES } from './constants';
2
+ export type IStatusColor = (typeof STATUS_COLORS)[number];
3
+ export type IStatusSize = (typeof STATUS_SIZES)[number];