@dito-uai/components 5.0.0-alpha31 → 5.0.0-alpha31.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 (173) hide show
  1. package/dist/global.css +1 -1
  2. package/dist/index.cjs +38 -34
  3. package/dist/index.d.cts +226 -1
  4. package/dist/index.d.ts +226 -1
  5. package/dist/index.d.ts.map +1 -0
  6. package/dist/index.js +13 -12
  7. package/dist/lib/css-util.d.ts +3 -0
  8. package/dist/lib/css-util.d.ts.map +1 -0
  9. package/dist/ui/alert.d.ts +209 -0
  10. package/dist/ui/alert.d.ts.map +1 -0
  11. package/dist/ui/avatar.d.ts +221 -0
  12. package/dist/ui/avatar.d.ts.map +1 -0
  13. package/dist/ui/badge.d.ts +264 -0
  14. package/dist/ui/badge.d.ts.map +1 -0
  15. package/dist/ui/button.d.ts +765 -0
  16. package/dist/ui/button.d.ts.map +1 -0
  17. package/dist/ui/card.d.ts +122 -0
  18. package/dist/ui/card.d.ts.map +1 -0
  19. package/dist/ui/checkbox.d.ts +4 -0
  20. package/dist/ui/checkbox.d.ts.map +1 -0
  21. package/dist/ui/chips.d.ts +416 -0
  22. package/dist/ui/chips.d.ts.map +1 -0
  23. package/dist/ui/collapsible.d.ts +11 -0
  24. package/dist/ui/collapsible.d.ts.map +1 -0
  25. package/dist/ui/form-item.d.ts +16 -0
  26. package/dist/ui/form-item.d.ts.map +1 -0
  27. package/dist/ui/form.d.ts +1 -0
  28. package/dist/ui/form.d.ts.map +1 -0
  29. package/dist/ui/indicator.d.ts +57 -0
  30. package/dist/ui/indicator.d.ts.map +1 -0
  31. package/dist/ui/input-description.d.ts +66 -0
  32. package/dist/ui/input-description.d.ts.map +1 -0
  33. package/dist/ui/input.d.ts +395 -0
  34. package/dist/ui/input.d.ts.map +1 -0
  35. package/dist/ui/internal/dropdown-content.d.ts +12 -0
  36. package/dist/ui/internal/dropdown-content.d.ts.map +1 -0
  37. package/dist/ui/label.d.ts +43 -0
  38. package/dist/ui/label.d.ts.map +1 -0
  39. package/dist/ui/progress-bar.d.ts +9 -0
  40. package/dist/ui/progress-bar.d.ts.map +1 -0
  41. package/dist/ui/progress.d.ts +57 -0
  42. package/dist/ui/progress.d.ts.map +1 -0
  43. package/dist/ui/radio.d.ts +10 -0
  44. package/dist/ui/radio.d.ts.map +1 -0
  45. package/dist/ui/scope.d.ts +209 -0
  46. package/dist/ui/scope.d.ts.map +1 -0
  47. package/dist/ui/search.d.ts +199 -0
  48. package/dist/ui/search.d.ts.map +1 -0
  49. package/dist/ui/sheets.d.ts +15 -0
  50. package/dist/ui/sheets.d.ts.map +1 -0
  51. package/dist/ui/status.d.ts +76 -0
  52. package/dist/ui/status.d.ts.map +1 -0
  53. package/dist/ui/tabs.d.ts +22 -0
  54. package/dist/ui/tabs.d.ts.map +1 -0
  55. package/dist/ui/text.d.ts +115 -0
  56. package/dist/ui/text.d.ts.map +1 -0
  57. package/dist/ui/textarea.d.ts +9 -0
  58. package/dist/ui/textarea.d.ts.map +1 -0
  59. package/dist/ui/toggle.d.ts +13 -0
  60. package/dist/ui/toggle.d.ts.map +1 -0
  61. package/package.json +21 -25
  62. package/dist/Alert/Alert.d.ts +0 -5
  63. package/dist/Alert/index.d.ts +0 -1
  64. package/dist/Avatar/Avatar.d.ts +0 -25
  65. package/dist/Avatar/index.d.ts +0 -1
  66. package/dist/Badge/Badge.d.ts +0 -21
  67. package/dist/Badge/index.d.ts +0 -1
  68. package/dist/Button/Button.d.ts +0 -17
  69. package/dist/Button/index.d.ts +0 -1
  70. package/dist/Card/Card.d.ts +0 -19
  71. package/dist/Card/ProgressCard.d.ts +0 -10
  72. package/dist/Card/RadioCard.d.ts +0 -17
  73. package/dist/Card/SelectCard.d.ts +0 -19
  74. package/dist/Card/StepCard.d.ts +0 -17
  75. package/dist/Card/index.d.ts +0 -5
  76. package/dist/CardsCanva/CardsCanva.d.ts +0 -16
  77. package/dist/CardsCanva/index.d.ts +0 -1
  78. package/dist/Checkbox/Checkbox.d.ts +0 -13
  79. package/dist/Checkbox/index.d.ts +0 -1
  80. package/dist/Chips/Chips.d.ts +0 -39
  81. package/dist/Chips/index.d.ts +0 -1
  82. package/dist/DatePicker/DatePicker.d.ts +0 -14
  83. package/dist/DatePicker/RangePicker.d.ts +0 -21
  84. package/dist/DatePicker/helpers/index.d.ts +0 -2
  85. package/dist/DatePicker/helpers/lang.d.ts +0 -25
  86. package/dist/DatePicker/helpers/ranges.d.ts +0 -20
  87. package/dist/DatePicker/index.d.ts +0 -4
  88. package/dist/DatePicker/language/en_US.d.ts +0 -3
  89. package/dist/DatePicker/language/index.d.ts +0 -2
  90. package/dist/DatePicker/language/pt_BR.d.ts +0 -3
  91. package/dist/Divider/Divider.d.ts +0 -8
  92. package/dist/Divider/index.d.ts +0 -1
  93. package/dist/ExternalLink/ExternalLink.d.ts +0 -9
  94. package/dist/ExternalLink/index.d.ts +0 -1
  95. package/dist/Flex/Flex.d.ts +0 -7
  96. package/dist/Flex/index.d.ts +0 -1
  97. package/dist/Form/Form.d.ts +0 -11
  98. package/dist/Form/index.d.ts +0 -1
  99. package/dist/Indicator/Indicator.d.ts +0 -19
  100. package/dist/Indicator/index.d.ts +0 -1
  101. package/dist/Input/Input.d.ts +0 -15
  102. package/dist/Input/TextArea.d.ts +0 -15
  103. package/dist/Input/index.d.ts +0 -1
  104. package/dist/Internal/ActionCard.d.ts +0 -10
  105. package/dist/Internal/Box.d.ts +0 -6
  106. package/dist/Internal/index.d.ts +0 -1
  107. package/dist/ListItem/ListItem.d.ts +0 -28
  108. package/dist/ListItem/index.d.ts +0 -1
  109. package/dist/Loading/Loading.d.ts +0 -25
  110. package/dist/Loading/index.d.ts +0 -1
  111. package/dist/Menu/Item.d.ts +0 -3
  112. package/dist/Menu/ItemsRadioGroup.d.ts +0 -14
  113. package/dist/Menu/Menu.d.ts +0 -10
  114. package/dist/Menu/SubMenu.d.ts +0 -4
  115. package/dist/Menu/index.d.ts +0 -2
  116. package/dist/Message/Message.d.ts +0 -20
  117. package/dist/Message/index.d.ts +0 -2
  118. package/dist/Pagination/Pagination.d.ts +0 -13
  119. package/dist/Pagination/index.d.ts +0 -1
  120. package/dist/Progress/Progress.d.ts +0 -10
  121. package/dist/Progress/ProgressBar.d.ts +0 -15
  122. package/dist/Progress/ProgressIndicator.d.ts +0 -8
  123. package/dist/Progress/index.d.ts +0 -4
  124. package/dist/Radio/Radio.d.ts +0 -16
  125. package/dist/Radio/index.d.ts +0 -1
  126. package/dist/ScopeButton/ScopeButton.d.ts +0 -22
  127. package/dist/ScopeButton/index.d.ts +0 -1
  128. package/dist/Search/Search.d.ts +0 -14
  129. package/dist/Select/Category.d.ts +0 -15
  130. package/dist/Select/CategoryFreeText.d.ts +0 -13
  131. package/dist/Select/Commons.d.ts +0 -24
  132. package/dist/Select/Multiple.d.ts +0 -13
  133. package/dist/Select/MultipleFreeText.d.ts +0 -11
  134. package/dist/Select/Select.d.ts +0 -24
  135. package/dist/Select/index.d.ts +0 -6
  136. package/dist/Select/types.d.ts +0 -61
  137. package/dist/Select/utils.d.ts +0 -6
  138. package/dist/Sheets/SheetTitleWithDescription.d.ts +0 -7
  139. package/dist/Sheets/Sheets.d.ts +0 -8
  140. package/dist/Sheets/index.d.ts +0 -1
  141. package/dist/Skeleton/Skeleton.d.ts +0 -53
  142. package/dist/Skeleton/index.d.ts +0 -1
  143. package/dist/Status/Status.d.ts +0 -8
  144. package/dist/Status/StatusMenu.d.ts +0 -17
  145. package/dist/Status/StatusSimple.d.ts +0 -19
  146. package/dist/Status/index.d.ts +0 -3
  147. package/dist/Steps/Step.d.ts +0 -12
  148. package/dist/Steps/Steps.d.ts +0 -7
  149. package/dist/Steps/index.d.ts +0 -2
  150. package/dist/Table/MenuHeader.d.ts +0 -16
  151. package/dist/Table/MenuRow.d.ts +0 -8
  152. package/dist/Table/Table.d.ts +0 -4
  153. package/dist/Table/TitleDropdown.d.ts +0 -4
  154. package/dist/Table/TitleHeader.d.ts +0 -11
  155. package/dist/Table/index.d.ts +0 -2
  156. package/dist/Table/types.d.ts +0 -63
  157. package/dist/Table/utils.d.ts +0 -6
  158. package/dist/Tabs/Tabs.d.ts +0 -7
  159. package/dist/Tabs/index.d.ts +0 -1
  160. package/dist/Text/Text.d.ts +0 -66
  161. package/dist/Text/index.d.ts +0 -1
  162. package/dist/TimePicker/NumberCarousel.d.ts +0 -8
  163. package/dist/TimePicker/TimeMenu.d.ts +0 -7
  164. package/dist/TimePicker/TimePicker.d.ts +0 -12
  165. package/dist/TimePicker/index.d.ts +0 -1
  166. package/dist/Toggle/Toggle.d.ts +0 -4
  167. package/dist/Toggle/index.d.ts +0 -1
  168. package/dist/Tooltip/Tooltip.d.ts +0 -11
  169. package/dist/Tooltip/index.d.ts +0 -1
  170. package/dist/index.cjs.js +0 -94996
  171. package/dist/index.cjs.js.map +0 -1
  172. package/dist/index.esm.js +0 -94910
  173. package/dist/index.esm.js.map +0 -1
@@ -1,28 +0,0 @@
1
- import React from 'react';
2
- import { AvatarType, AvatarColor } from '../Avatar/Avatar';
3
- export declare enum ListItemTypes {
4
- ITEM = 0,
5
- AVATAR = 1
6
- }
7
- interface AvatarProps {
8
- avatarType?: AvatarType;
9
- avatarColor?: AvatarColor;
10
- srcPhoto?: string;
11
- avatarLetters?: string;
12
- }
13
- interface Props extends React.HTMLAttributes<HTMLDivElement> {
14
- actionIcons?: [JSX.Element] | [JSX.Element, JSX.Element];
15
- active?: boolean;
16
- disabled?: boolean;
17
- Icon?: JSX.Element;
18
- subtitle?: string;
19
- title: string;
20
- type?: ListItemTypes;
21
- }
22
- interface ListItemAvatar extends Props, AvatarProps {
23
- }
24
- export interface ListItemProps extends React.FC<Props> {
25
- Avatar: React.FC<ListItemAvatar & Omit<Props, 'type'>>;
26
- }
27
- declare const ListItem: ListItemProps;
28
- export default ListItem;
@@ -1 +0,0 @@
1
- export { default as ListItem, ListItemProps, ListItemTypes } from './ListItem';
@@ -1,25 +0,0 @@
1
- import React from 'react';
2
- export declare enum LoadingSize {
3
- HUGE = "HUGE",
4
- LARGE = "LARGE",
5
- NORMAL = "NORMAL",
6
- SMALL = "SMALL",
7
- TINY = "TINY"
8
- }
9
- export declare enum LoadingColor {
10
- GRAY = "GRAY",
11
- GREEN = "GREEN",
12
- RED = "RED",
13
- BLUE = "BLUE",
14
- WHITE = "WHITE",
15
- INDIGO = "INDIGO",
16
- TRANSPARENT = "TRANSPARENT"
17
- }
18
- interface LoadingProps {
19
- color?: LoadingColor;
20
- fill?: LoadingColor;
21
- size?: LoadingSize;
22
- title?: string;
23
- }
24
- declare const Loading: React.FC<LoadingProps>;
25
- export default Loading;
@@ -1 +0,0 @@
1
- export { default as Loading, LoadingSize, LoadingColor } from './Loading';
@@ -1,3 +0,0 @@
1
- import { MenuItemProps as AntMenuItemProps } from 'antd';
2
- declare const Item: import("styled-components").StyledComponent<typeof import("antd/lib/menu/MenuItem").default, any, AntMenuItemProps, never>;
3
- export default Item;
@@ -1,14 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
- import { RadioChangeEvent } from 'antd';
3
- export declare type MenuItemRadioProps = {
4
- title: string;
5
- value: unknown;
6
- icon?: ReactNode;
7
- };
8
- export declare type MenuItemRadioGroupProps = {
9
- options: MenuItemRadioProps[];
10
- onChange?: (event: RadioChangeEvent) => void;
11
- value?: unknown;
12
- };
13
- declare const ItemsRadioGroup: React.FC<MenuItemRadioGroupProps>;
14
- export default ItemsRadioGroup;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import { MenuItemProps, MenuProps, SubMenuProps } from 'antd';
3
- import { MenuItemRadioGroupProps } from './ItemsRadioGroup';
4
- export interface MenuExport extends React.FC<Omit<MenuProps, 'mode'>> {
5
- Item: React.FC<MenuItemProps>;
6
- SubMenu: React.FC<SubMenuProps>;
7
- ItemsRadioGroup: React.FC<MenuItemRadioGroupProps>;
8
- }
9
- declare const Menu: MenuExport;
10
- export default Menu;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { SubMenuProps } from 'antd';
3
- declare const SubMenu: React.FC<SubMenuProps>;
4
- export default SubMenu;
@@ -1,2 +0,0 @@
1
- export { default as Menu } from './Menu';
2
- export { MenuItemRadioProps, MenuItemRadioGroupProps } from './ItemsRadioGroup';
@@ -1,20 +0,0 @@
1
- import { ArgsProps } from 'antd/lib/message';
2
- export declare enum MessageType {
3
- SUCCESS = "success",
4
- INFO = "info",
5
- WARNING = "warning",
6
- DANGER = "error",
7
- LOADING = "loading"
8
- }
9
- declare type MessageProps = Pick<ArgsProps, 'getPopupContainer'> & {
10
- text: string;
11
- duration?: number;
12
- type?: MessageType;
13
- closable?: boolean;
14
- onClose?: () => void;
15
- onClick?: () => void;
16
- key?: string;
17
- className?: string;
18
- };
19
- export declare const config: ({ text, duration, closable, type, onClose, onClick, getPopupContainer, key, className, }: MessageProps) => ArgsProps;
20
- export default config;
@@ -1,2 +0,0 @@
1
- export { default as config, MessageType } from './Message';
2
- export { message as Message } from 'antd';
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- import { PaginationProps as AntPaginationProps } from 'antd';
3
- export interface PaginationProps extends Omit<AntPaginationProps, 'showQuickJumper' | 'hideOnSinglePage' | 'itemRender' | 'responsive' | 'showLessItems' | 'showTitle' | 'simple' | 'size' | 'total'> {
4
- total: number;
5
- showQuickJumper?: boolean;
6
- texts?: {
7
- quickJumper: string;
8
- resultsPerPage: string;
9
- of: string;
10
- };
11
- }
12
- declare const Pagination: React.FC<PaginationProps>;
13
- export default Pagination;
@@ -1 +0,0 @@
1
- export { default as Pagination, PaginationProps } from './Pagination';
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- import { Progress as ProgressAntd } from 'antd';
3
- import { ProgressBarProps } from './ProgressBar';
4
- import { ProgressIndicatorProps } from './ProgressIndicator';
5
- declare type ProgressType = typeof ProgressAntd & {
6
- Bar: (props: ProgressBarProps) => JSX.Element;
7
- Indicator: (props: ProgressIndicatorProps) => JSX.Element;
8
- };
9
- declare const Progress: ProgressType;
10
- export default Progress;
@@ -1,15 +0,0 @@
1
- /// <reference types="react" />
2
- import { TYPOGRAPHY } from '@ditointernet/uai-foundation';
3
- export interface ProgressBarProps {
4
- backgroundColor: string;
5
- progressColor: string;
6
- percentage: number;
7
- total?: number;
8
- made?: number;
9
- height?: string;
10
- sufixColor?: string;
11
- prefixColor?: string;
12
- fontSize?: TYPOGRAPHY.FontSize;
13
- }
14
- declare const ProgressBar: ({ backgroundColor, percentage, progressColor, height, total, made, sufixColor, prefixColor, fontSize, }: ProgressBarProps) => JSX.Element;
15
- export default ProgressBar;
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- export interface ProgressIndicatorProps {
3
- proportion: number;
4
- hasBar?: boolean;
5
- type?: 'default' | 'white';
6
- }
7
- export declare const ProgressIndicator: ({ proportion, hasBar, type, }: ProgressIndicatorProps) => JSX.Element;
8
- export default ProgressIndicator;
@@ -1,4 +0,0 @@
1
- export { ProgressProps } from 'antd';
2
- export { ProgressBarProps } from './ProgressBar';
3
- export { ProgressIndicatorProps, ProgressIndicator } from './ProgressIndicator';
4
- export { default as Progress } from './Progress';
@@ -1,16 +0,0 @@
1
- import React from 'react';
2
- import * as RadixRadioGroup from '@radix-ui/react-radio-group';
3
- export declare type RadioProps = RadixRadioGroup.RadioGroupItemOwnProps & {
4
- id?: string;
5
- disabled?: boolean;
6
- label: string | ((children: JSX.Element) => JSX.Element);
7
- };
8
- declare type RadioExport = React.FC<React.PropsWithChildren<RadioProps>> & {
9
- Label: React.FC<React.PropsWithChildren<Record<string, unknown>>>;
10
- Group: React.FC<React.PropsWithChildren<RadioGroupProps>>;
11
- };
12
- declare const Radio: RadioExport;
13
- export declare type RadioGroupProps = RadixRadioGroup.RadioGroupOwnProps & {
14
- inline?: boolean;
15
- };
16
- export default Radio;
@@ -1 +0,0 @@
1
- export { default } from './Radio';
@@ -1,22 +0,0 @@
1
- import React from 'react';
2
- export declare type ScopeButtonItem = {
3
- key: string;
4
- appearence?: ScopeAppearenceTypes;
5
- icon?: JSX.Element;
6
- label?: string;
7
- disabled?: boolean;
8
- onClick?: (selectedItem: ScopeButtonItem) => void;
9
- };
10
- export declare enum ScopeAppearenceTypes {
11
- SELECTED = "selected",
12
- SELECTED_LIGHT = "selected-light",
13
- GREEN_LIGHT = "green-light",
14
- RED_LIGHT = "red-light"
15
- }
16
- export declare type ScopeButtonProps = {
17
- items: ScopeButtonItem[];
18
- value: string;
19
- onChange: (selectedItem: ScopeButtonItem) => void;
20
- };
21
- declare const ScopeButton: React.FC<ScopeButtonProps>;
22
- export default ScopeButton;
@@ -1 +0,0 @@
1
- export { default as ScopeButton, ScopeAppearenceTypes, ScopeButtonItem, ScopeButtonProps, } from './ScopeButton';
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
- import { InputProps as AntInputProps, SelectProps as AntSelectProps } from 'antd';
3
- import { TooltipProps } from '../Tooltip';
4
- declare type SizeTypes = 'small' | 'medium';
5
- export declare type SearchSelectProps = Omit<AntSelectProps, 'size' | 'mode'> & {
6
- placeholder: string;
7
- };
8
- export declare type SearchProps = Omit<AntInputProps, 'size'> & {
9
- selectProps?: SearchSelectProps;
10
- size?: SizeTypes;
11
- tooltipProps?: TooltipProps;
12
- };
13
- declare const Search: React.FC<Omit<SearchProps, 'suffix'>>;
14
- export default Search;
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
- import { CategoryAddonProps } from './Commons';
3
- import { GroupOption, Groups, SelectProps } from './types';
4
- export declare type CategoryProps = SelectProps & {
5
- groups: Groups;
6
- };
7
- declare type InternalCategoryProps = CategoryProps & {
8
- showCategoryCheckbox?: boolean;
9
- categoryCheckboxProps?: Pick<CategoryAddonProps, 'onSelectAllCategoryItemsClick' | 'categories'>;
10
- showOptionCheckbox?: boolean;
11
- buildOptionCheckboxOption?: (option: GroupOption) => GroupOption;
12
- mode?: 'multiple';
13
- };
14
- declare const Category: React.FC<InternalCategoryProps>;
15
- export default Category;
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- import { CategoryProps } from './Category';
3
- import { CategoryValue, GroupOption } from './types';
4
- export declare type CategoryFreeTextProps = Omit<CategoryProps, 'onSelect' | 'onChange' | 'value'> & {
5
- value?: string;
6
- freeTextLabel?: string;
7
- showTagOnSelectedValue?: boolean;
8
- filterBy?: 'label' | 'value' | 'both';
9
- buildFreeTextOption: (option: CategoryValue) => GroupOption;
10
- onChange: (option?: string) => void;
11
- };
12
- declare const CategoryFreeText: React.FC<CategoryFreeTextProps>;
13
- export default CategoryFreeText;
@@ -1,24 +0,0 @@
1
- import React from 'react';
2
- import { FlexProps } from '../Flex/Flex';
3
- import { CategoryValue, GroupOption, Groups } from './types';
4
- export declare const MultiSelectDropdownSkeleton: React.FC;
5
- export declare const Tag: import("styled-components").StyledComponent<"div", any, {}, never>;
6
- export declare const IconWrapper: import("styled-components").StyledComponent<"div", any, FlexProps, never>;
7
- export declare const NotFound: React.FC<{
8
- dropdownMatchSelectWidth: number | boolean | undefined;
9
- message: string;
10
- }>;
11
- export declare const OptionAddon: React.FC<{
12
- values: CategoryValue[];
13
- option: GroupOption;
14
- }>;
15
- export declare type CategoryAddonProps = {
16
- category: string;
17
- options: GroupOption[];
18
- categories: Groups;
19
- categoryDisabled?: boolean;
20
- onSelectAllCategoryItemsClick: (category: string, options: GroupOption[]) => void;
21
- };
22
- export declare const CategoryAddon: React.FC<CategoryAddonProps>;
23
- export declare const SelectWrapper: React.FC<FlexProps>;
24
- export declare const StyledAntdSelect: React.FC;
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- import { CategoryState, CategoryValue, DisabledCategories, GroupOption, SelectProps } from './types';
3
- export declare type MultipleProps = Omit<SelectProps, 'onChange'> & {
4
- onChange: (change: CategoryState) => void;
5
- buildOption: (option: CategoryValue, category: 'selected' | 'existing') => GroupOption;
6
- categories: CategoryState;
7
- selectedLabel: string;
8
- existingLabel: string;
9
- disabledCategories?: DisabledCategories;
10
- disabled?: boolean;
11
- };
12
- declare const Multiple: React.FC<MultipleProps>;
13
- export default Multiple;
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import { MultipleProps } from './Multiple';
3
- import { CategoryValue, DisabledCategories, GroupOption } from './types';
4
- export declare type MultipleFreeTextProps = Omit<MultipleProps, 'buildOption'> & {
5
- freeTextLabel: string;
6
- disabledCategories?: DisabledCategories;
7
- buildOption: (option: CategoryValue, category: 'selected' | 'existing' | 'freeText') => GroupOption;
8
- isLoading?: boolean;
9
- };
10
- declare const MultipleFreeText: React.FC<MultipleFreeTextProps>;
11
- export default MultipleFreeText;
@@ -1,24 +0,0 @@
1
- import { SelectProps as AntSelectProps } from 'antd';
2
- import { OptionProps } from 'antd/lib/select';
3
- import React from 'react';
4
- import { CategoryProps } from './Category';
5
- import { CategoryFreeTextProps } from './CategoryFreeText';
6
- import { MultipleProps } from './Multiple';
7
- import { MultipleFreeTextProps } from './MultipleFreeText';
8
- export interface SelectProps extends Omit<AntSelectProps, 'size'> {
9
- icon?: JSX.Element;
10
- style?: React.CSSProperties;
11
- placeholder?: React.ReactNode;
12
- notFoundText?: string;
13
- responsiveInput?: boolean;
14
- small?: boolean;
15
- }
16
- interface SelectInterface extends React.FC<SelectProps> {
17
- Option: React.FC<OptionProps>;
18
- Category: React.FC<CategoryProps>;
19
- CategoryFreeText: React.FC<CategoryFreeTextProps>;
20
- Multiple: React.FC<MultipleProps>;
21
- MultipleFreeText: React.FC<MultipleFreeTextProps>;
22
- }
23
- declare const Select: SelectInterface;
24
- export default Select;
@@ -1,6 +0,0 @@
1
- export { MultiSelectDropdownSkeleton } from './Commons';
2
- export { default as Select } from './Select';
3
- export { CategoryProps } from './Category';
4
- export { MultipleProps } from './Multiple';
5
- export { MultipleFreeTextProps } from './MultipleFreeText';
6
- export { CategoryState, CategoryValue, Group, GroupOption, Groups, MULTI_SELECT_CATEGORIES, SelectOptionType, } from './types';
@@ -1,61 +0,0 @@
1
- /// <reference types="react" />
2
- import { SelectProps as AntSelectProps } from 'antd';
3
- import { TooltipProps } from '../Tooltip';
4
- export declare enum MULTI_SELECT_CATEGORIES {
5
- SELECTED = "selected",
6
- EXISTING = "existing",
7
- FREE_TEXT = "freeText"
8
- }
9
- export declare enum CATEGORY_WITH_FREE_TEXT {
10
- FREE_TEXT = "internal-category-free-text"
11
- }
12
- export declare enum CategoryStatus {
13
- ENTIRELY = "entirely",
14
- PARTIALLY = "partially",
15
- NONE = "none"
16
- }
17
- export interface CategoryValue {
18
- label: string;
19
- value: string;
20
- }
21
- export interface CategoryState {
22
- selected: CategoryValue[];
23
- existing: CategoryValue[];
24
- }
25
- export declare type GroupOption = {
26
- value: string;
27
- label: string;
28
- labelTitle?: string;
29
- disabled?: boolean;
30
- tag?: string;
31
- tooltipProps?: TooltipProps;
32
- };
33
- export declare type Group = {
34
- label: string;
35
- options: GroupOption[];
36
- disabled?: boolean;
37
- hideCategoryCollapse?: boolean;
38
- };
39
- export declare type DisabledCategories = {
40
- existing: boolean;
41
- selected: boolean;
42
- freeText?: boolean;
43
- };
44
- export declare type Groups = Record<string, Group>;
45
- export interface SelectOptionType {
46
- key: string;
47
- label: string;
48
- value: string;
49
- category: MULTI_SELECT_CATEGORIES;
50
- }
51
- export interface SelectProps extends Omit<AntSelectProps, 'size' | 'mode'> {
52
- onGroupClick?: (groupName: string) => void;
53
- icon?: JSX.Element;
54
- style?: React.CSSProperties;
55
- placeholder?: React.ReactNode;
56
- responsiveInput?: boolean;
57
- small?: boolean;
58
- useCategoryInKey?: boolean;
59
- notFoundText?: string;
60
- emptyText?: string;
61
- }
@@ -1,6 +0,0 @@
1
- import { CategoryState, CategoryValue, GroupOption } from './types';
2
- export declare const removeCategoryKeyFromValue: (value: string) => string;
3
- export declare const optionCheck: (values: CategoryValue[], option: GroupOption) => boolean;
4
- export declare const checkSelectedFromExisting: ({ existing, selected }: CategoryState, concatSelected?: boolean | undefined) => CategoryValue[];
5
- export declare const removeKeysFromOptionsInSelectedCategory: (options: GroupOption[]) => CategoryValue[];
6
- export declare const compareValues: (leftTerm: string, rightTerm: string) => boolean;
@@ -1,7 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
- interface TitleProps {
3
- title: string | ReactNode;
4
- description?: string;
5
- }
6
- declare const TitleWithDescription: React.FC<TitleProps>;
7
- export default TitleWithDescription;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import { DrawerProps } from 'antd';
3
- interface Props extends DrawerProps {
4
- description?: string;
5
- isInsideDiv?: boolean;
6
- }
7
- declare const Sheets: React.FC<React.PropsWithChildren<Props>>;
8
- export default Sheets;
@@ -1 +0,0 @@
1
- export { default } from './Sheets';
@@ -1,53 +0,0 @@
1
- /// <reference types="react" />
2
- import { SkeletonProps } from 'antd';
3
- interface CustomSkeletonProps {
4
- dark?: boolean;
5
- title?: {
6
- height?: string;
7
- };
8
- paragraph?: {
9
- gap?: string;
10
- height?: string;
11
- listMarginTop?: string;
12
- };
13
- }
14
- declare const Skeleton: import("styled-components").StyledComponent<{
15
- (props: SkeletonProps): JSX.Element;
16
- defaultProps: {
17
- avatar: boolean;
18
- title: boolean;
19
- paragraph: boolean;
20
- };
21
- Button: {
22
- (props: import("antd/lib/skeleton/Button").SkeletonButtonProps): JSX.Element;
23
- defaultProps: {
24
- size: string;
25
- };
26
- };
27
- Avatar: {
28
- (props: import("antd/lib/skeleton/Avatar").AvatarProps): JSX.Element;
29
- defaultProps: {
30
- size: string;
31
- shape: string;
32
- };
33
- };
34
- Input: {
35
- (props: import("antd/lib/skeleton/Input").SkeletonInputProps): JSX.Element;
36
- defaultProps: {
37
- size: string;
38
- };
39
- };
40
- Image: (props: import("antd/lib/skeleton/Image").SkeletonImageProps) => JSX.Element;
41
- }, any, {
42
- active?: boolean | undefined;
43
- loading?: boolean | undefined;
44
- prefixCls?: string | undefined;
45
- className?: string | undefined;
46
- style?: React.CSSProperties | undefined;
47
- children?: React.ReactNode;
48
- title?: boolean | import("antd/lib/skeleton/Title").SkeletonTitleProps | undefined;
49
- round?: boolean | undefined;
50
- theme: any;
51
- paragraph: boolean | import("antd/lib/skeleton/Paragraph").SkeletonParagraphProps;
52
- } & SkeletonProps & CustomSkeletonProps, "style" | "title" | "theme" | "active" | "loading" | "prefixCls" | "className" | "children" | "paragraph" | "round">;
53
- export default Skeleton;
@@ -1 +0,0 @@
1
- export { default } from './Skeleton';
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import { StatusProps } from './StatusSimple';
3
- import { StatusMenuProps } from './StatusMenu';
4
- export interface StatusExport extends React.FC<StatusProps> {
5
- Menu: React.FC<StatusMenuProps>;
6
- }
7
- declare const Status: StatusExport;
8
- export default Status;
@@ -1,17 +0,0 @@
1
- import React from 'react';
2
- import { MarginProps } from 'styled-system';
3
- import { AppearanceType } from './StatusSimple';
4
- declare type StatusProps = {
5
- key: string;
6
- text: string;
7
- value?: unknown;
8
- appearance: AppearanceType;
9
- };
10
- export interface StatusMenuProps extends MarginProps {
11
- options: Array<StatusProps>;
12
- defaultOptionKey: string;
13
- onChange: (value: unknown) => void;
14
- getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
15
- }
16
- declare const StatusMenu: React.FC<StatusMenuProps>;
17
- export default StatusMenu;
@@ -1,19 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
- import { MarginProps } from 'styled-system';
3
- export declare enum AppearanceType {
4
- SUCCESS = "success",
5
- DISABLED = "disabled",
6
- DRAFT = "draft",
7
- WARNING = "warning",
8
- ERROR = "error"
9
- }
10
- export declare const setColors: {
11
- [key: string]: string;
12
- };
13
- export interface StatusProps extends MarginProps {
14
- text: string;
15
- suffix?: ReactNode;
16
- appearance: AppearanceType;
17
- }
18
- declare const StatusSimple: React.FC<StatusProps>;
19
- export default StatusSimple;
@@ -1,3 +0,0 @@
1
- export { default as Status } from './Status';
2
- export { default as StatusMenu, StatusMenuProps } from './StatusMenu';
3
- export { default as StatusSimple, AppearanceType, StatusProps, } from './StatusSimple';
@@ -1,12 +0,0 @@
1
- import { StepProps as AntStepProps } from 'antd';
2
- interface StepProps extends Omit<AntStepProps, 'status'> {
3
- status: StepStatus;
4
- }
5
- export declare enum StepStatus {
6
- PROCESS = "process",
7
- WAIT = "wait",
8
- FINISH = "finish",
9
- ERROR = "error"
10
- }
11
- declare const Step: import("styled-components").StyledComponent<typeof import("rc-steps").Step, any, StepProps, never>;
12
- export default Step;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import { StepProps, StepsProps as AntStepsProps } from 'antd';
3
- export interface StepsInterface extends React.FC<Omit<React.PropsWithChildren<AntStepsProps>, 'progressDot'>> {
4
- Step: React.FC<React.PropsWithChildren<StepProps>>;
5
- }
6
- declare const Steps: StepsInterface;
7
- export default Steps;
@@ -1,2 +0,0 @@
1
- export { default as Steps } from './Steps';
2
- export { StepStatus } from './Step';
@@ -1,16 +0,0 @@
1
- import React from 'react';
2
- import { FixedType, SortOptionType, SortValueType, TextsTranslated } from './types';
3
- declare type MenuHeaderProps = {
4
- texts: TextsTranslated;
5
- disorder?: () => void;
6
- onClickMenu: React.Dispatch<React.SetStateAction<boolean>>;
7
- sortValue: SortValueType;
8
- setSortValue: (value: SortValueType) => void;
9
- fixed?: FixedType;
10
- hasScroll: boolean;
11
- pinColumn: (direction: FixedType) => void;
12
- sortOptions?: SortOptionType[];
13
- unpinColumn: () => void;
14
- };
15
- declare const MenuHeader: React.FC<MenuHeaderProps>;
16
- export default MenuHeader;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import { MenuRowType } from './types';
3
- declare const MenuRow: React.FC<{
4
- options: MenuRowType[];
5
- value?: unknown;
6
- disabled?: boolean;
7
- }>;
8
- export default MenuRow;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { TableInterface } from './types';
3
- declare const Table: React.FC<TableInterface>;
4
- export default Table;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { TitleDropdownProps } from './types';
3
- declare const TitleDropdown: React.FC<TitleDropdownProps>;
4
- export default TitleDropdown;