@dito-uai/components 5.0.0-alpha31 → 5.0.0-alpha33
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.
- package/dist/global.css +1 -1
- package/dist/index.cjs +27 -26
- package/dist/index.d.cts +207 -1
- package/dist/index.d.ts +24 -2015
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +7 -7
- package/dist/lib/css-util.d.ts +3 -0
- package/dist/lib/css-util.d.ts.map +1 -0
- package/dist/ui/alert.d.ts +209 -0
- package/dist/ui/alert.d.ts.map +1 -0
- package/dist/ui/avatar.d.ts +221 -0
- package/dist/ui/avatar.d.ts.map +1 -0
- package/dist/ui/badge.d.ts +264 -0
- package/dist/ui/badge.d.ts.map +1 -0
- package/dist/ui/button.d.ts +765 -0
- package/dist/ui/button.d.ts.map +1 -0
- package/dist/ui/card.d.ts +122 -0
- package/dist/ui/card.d.ts.map +1 -0
- package/dist/ui/checkbox.d.ts +4 -0
- package/dist/ui/checkbox.d.ts.map +1 -0
- package/dist/ui/chips.d.ts +416 -0
- package/dist/ui/chips.d.ts.map +1 -0
- package/dist/ui/collapsible.d.ts +11 -0
- package/dist/ui/collapsible.d.ts.map +1 -0
- package/dist/ui/form-item.d.ts +16 -0
- package/dist/ui/form-item.d.ts.map +1 -0
- package/dist/ui/form.d.ts +1 -0
- package/dist/ui/form.d.ts.map +1 -0
- package/dist/ui/indicator.d.ts +57 -0
- package/dist/ui/indicator.d.ts.map +1 -0
- package/dist/ui/input-description.d.ts +66 -0
- package/dist/ui/input-description.d.ts.map +1 -0
- package/dist/ui/input.d.ts +395 -0
- package/dist/ui/input.d.ts.map +1 -0
- package/dist/ui/internal/dropdown-content.d.ts +12 -0
- package/dist/ui/internal/dropdown-content.d.ts.map +1 -0
- package/dist/ui/label.d.ts +43 -0
- package/dist/ui/label.d.ts.map +1 -0
- package/dist/ui/message.d.ts +24 -0
- package/dist/ui/message.d.ts.map +1 -0
- package/dist/ui/progress-bar.d.ts +9 -0
- package/dist/ui/progress-bar.d.ts.map +1 -0
- package/dist/ui/progress.d.ts +57 -0
- package/dist/ui/progress.d.ts.map +1 -0
- package/dist/ui/radio.d.ts +10 -0
- package/dist/ui/radio.d.ts.map +1 -0
- package/dist/ui/scope.d.ts +209 -0
- package/dist/ui/scope.d.ts.map +1 -0
- package/dist/ui/search.d.ts +199 -0
- package/dist/ui/search.d.ts.map +1 -0
- package/dist/ui/sheets.d.ts +15 -0
- package/dist/ui/sheets.d.ts.map +1 -0
- package/dist/ui/status.d.ts +76 -0
- package/dist/ui/status.d.ts.map +1 -0
- package/dist/ui/text.d.ts +115 -0
- package/dist/ui/text.d.ts.map +1 -0
- package/dist/ui/textarea.d.ts +9 -0
- package/dist/ui/textarea.d.ts.map +1 -0
- package/dist/ui/toggle.d.ts +13 -0
- package/dist/ui/toggle.d.ts.map +1 -0
- package/package.json +6 -3
- package/dist/Alert/Alert.d.ts +0 -5
- package/dist/Alert/index.d.ts +0 -1
- package/dist/Avatar/Avatar.d.ts +0 -25
- package/dist/Avatar/index.d.ts +0 -1
- package/dist/Badge/Badge.d.ts +0 -21
- package/dist/Badge/index.d.ts +0 -1
- package/dist/Button/Button.d.ts +0 -17
- package/dist/Button/index.d.ts +0 -1
- package/dist/Card/Card.d.ts +0 -19
- package/dist/Card/ProgressCard.d.ts +0 -10
- package/dist/Card/RadioCard.d.ts +0 -17
- package/dist/Card/SelectCard.d.ts +0 -19
- package/dist/Card/StepCard.d.ts +0 -17
- package/dist/Card/index.d.ts +0 -5
- package/dist/CardsCanva/CardsCanva.d.ts +0 -16
- package/dist/CardsCanva/index.d.ts +0 -1
- package/dist/Checkbox/Checkbox.d.ts +0 -13
- package/dist/Checkbox/index.d.ts +0 -1
- package/dist/Chips/Chips.d.ts +0 -39
- package/dist/Chips/index.d.ts +0 -1
- package/dist/DatePicker/DatePicker.d.ts +0 -14
- package/dist/DatePicker/RangePicker.d.ts +0 -21
- package/dist/DatePicker/helpers/index.d.ts +0 -2
- package/dist/DatePicker/helpers/lang.d.ts +0 -25
- package/dist/DatePicker/helpers/ranges.d.ts +0 -20
- package/dist/DatePicker/index.d.ts +0 -4
- package/dist/DatePicker/language/en_US.d.ts +0 -3
- package/dist/DatePicker/language/index.d.ts +0 -2
- package/dist/DatePicker/language/pt_BR.d.ts +0 -3
- package/dist/Divider/Divider.d.ts +0 -8
- package/dist/Divider/index.d.ts +0 -1
- package/dist/ExternalLink/ExternalLink.d.ts +0 -9
- package/dist/ExternalLink/index.d.ts +0 -1
- package/dist/Flex/Flex.d.ts +0 -7
- package/dist/Flex/index.d.ts +0 -1
- package/dist/Form/Form.d.ts +0 -11
- package/dist/Form/index.d.ts +0 -1
- package/dist/Indicator/Indicator.d.ts +0 -19
- package/dist/Indicator/index.d.ts +0 -1
- package/dist/Input/Input.d.ts +0 -15
- package/dist/Input/TextArea.d.ts +0 -15
- package/dist/Input/index.d.ts +0 -1
- package/dist/Internal/ActionCard.d.ts +0 -10
- package/dist/Internal/Box.d.ts +0 -6
- package/dist/Internal/index.d.ts +0 -1
- package/dist/ListItem/ListItem.d.ts +0 -28
- package/dist/ListItem/index.d.ts +0 -1
- package/dist/Loading/Loading.d.ts +0 -25
- package/dist/Loading/index.d.ts +0 -1
- package/dist/Menu/Item.d.ts +0 -3
- package/dist/Menu/ItemsRadioGroup.d.ts +0 -14
- package/dist/Menu/Menu.d.ts +0 -10
- package/dist/Menu/SubMenu.d.ts +0 -4
- package/dist/Menu/index.d.ts +0 -2
- package/dist/Message/Message.d.ts +0 -20
- package/dist/Message/index.d.ts +0 -2
- package/dist/Pagination/Pagination.d.ts +0 -13
- package/dist/Pagination/index.d.ts +0 -1
- package/dist/Progress/Progress.d.ts +0 -10
- package/dist/Progress/ProgressBar.d.ts +0 -15
- package/dist/Progress/ProgressIndicator.d.ts +0 -8
- package/dist/Progress/index.d.ts +0 -4
- package/dist/Radio/Radio.d.ts +0 -16
- package/dist/Radio/index.d.ts +0 -1
- package/dist/ScopeButton/ScopeButton.d.ts +0 -22
- package/dist/ScopeButton/index.d.ts +0 -1
- package/dist/Search/Search.d.ts +0 -14
- package/dist/Select/Category.d.ts +0 -15
- package/dist/Select/CategoryFreeText.d.ts +0 -13
- package/dist/Select/Commons.d.ts +0 -24
- package/dist/Select/Multiple.d.ts +0 -13
- package/dist/Select/MultipleFreeText.d.ts +0 -11
- package/dist/Select/Select.d.ts +0 -24
- package/dist/Select/index.d.ts +0 -6
- package/dist/Select/types.d.ts +0 -61
- package/dist/Select/utils.d.ts +0 -6
- package/dist/Sheets/SheetTitleWithDescription.d.ts +0 -7
- package/dist/Sheets/Sheets.d.ts +0 -8
- package/dist/Sheets/index.d.ts +0 -1
- package/dist/Skeleton/Skeleton.d.ts +0 -53
- package/dist/Skeleton/index.d.ts +0 -1
- package/dist/Status/Status.d.ts +0 -8
- package/dist/Status/StatusMenu.d.ts +0 -17
- package/dist/Status/StatusSimple.d.ts +0 -19
- package/dist/Status/index.d.ts +0 -3
- package/dist/Steps/Step.d.ts +0 -12
- package/dist/Steps/Steps.d.ts +0 -7
- package/dist/Steps/index.d.ts +0 -2
- package/dist/Table/MenuHeader.d.ts +0 -16
- package/dist/Table/MenuRow.d.ts +0 -8
- package/dist/Table/Table.d.ts +0 -4
- package/dist/Table/TitleDropdown.d.ts +0 -4
- package/dist/Table/TitleHeader.d.ts +0 -11
- package/dist/Table/index.d.ts +0 -2
- package/dist/Table/types.d.ts +0 -63
- package/dist/Table/utils.d.ts +0 -6
- package/dist/Tabs/Tabs.d.ts +0 -7
- package/dist/Tabs/index.d.ts +0 -1
- package/dist/Text/Text.d.ts +0 -66
- package/dist/Text/index.d.ts +0 -1
- package/dist/TimePicker/NumberCarousel.d.ts +0 -8
- package/dist/TimePicker/TimeMenu.d.ts +0 -7
- package/dist/TimePicker/TimePicker.d.ts +0 -12
- package/dist/TimePicker/index.d.ts +0 -1
- package/dist/Toggle/Toggle.d.ts +0 -4
- package/dist/Toggle/index.d.ts +0 -1
- package/dist/Tooltip/Tooltip.d.ts +0 -11
- package/dist/Tooltip/index.d.ts +0 -1
- package/dist/index.cjs.js +0 -94996
- package/dist/index.cjs.js.map +0 -1
- package/dist/index.esm.js +0 -94910
- package/dist/index.esm.js.map +0 -1
|
@@ -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;
|
package/dist/Progress/index.d.ts
DELETED
package/dist/Radio/Radio.d.ts
DELETED
|
@@ -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;
|
package/dist/Radio/index.d.ts
DELETED
|
@@ -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';
|
package/dist/Search/Search.d.ts
DELETED
|
@@ -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;
|
package/dist/Select/Commons.d.ts
DELETED
|
@@ -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;
|
package/dist/Select/Select.d.ts
DELETED
|
@@ -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;
|
package/dist/Select/index.d.ts
DELETED
|
@@ -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';
|
package/dist/Select/types.d.ts
DELETED
|
@@ -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
|
-
}
|
package/dist/Select/utils.d.ts
DELETED
|
@@ -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;
|
package/dist/Sheets/Sheets.d.ts
DELETED
package/dist/Sheets/index.d.ts
DELETED
|
@@ -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;
|
package/dist/Skeleton/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './Skeleton';
|
package/dist/Status/Status.d.ts
DELETED
|
@@ -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;
|
package/dist/Status/index.d.ts
DELETED
package/dist/Steps/Step.d.ts
DELETED
|
@@ -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;
|
package/dist/Steps/Steps.d.ts
DELETED
|
@@ -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;
|
package/dist/Steps/index.d.ts
DELETED
|
@@ -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;
|
package/dist/Table/MenuRow.d.ts
DELETED
package/dist/Table/Table.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ColumnTitle } from 'antd/lib/table/interface';
|
|
2
|
-
import { TooltipPlacement } from 'antd/lib/tooltip';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
declare const TitleHeader: React.FC<{
|
|
5
|
-
title: ColumnTitle<unknown>;
|
|
6
|
-
withIcon?: boolean;
|
|
7
|
-
tooltip?: string | null;
|
|
8
|
-
tooltipPlacement?: TooltipPlacement;
|
|
9
|
-
showFixedColumnDivider?: boolean;
|
|
10
|
-
}>;
|
|
11
|
-
export default TitleHeader;
|
package/dist/Table/index.d.ts
DELETED
package/dist/Table/types.d.ts
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { TableProps } from 'antd';
|
|
2
|
-
import { ColumnType as AntdColumnType } from 'antd/lib/table';
|
|
3
|
-
import { TooltipPlacement } from 'antd/lib/tooltip';
|
|
4
|
-
import { Key } from 'react';
|
|
5
|
-
export interface ColumnInterface<T = any> extends Omit<AntdColumnType<T>, 'key' | 'fixed'> {
|
|
6
|
-
key: Key;
|
|
7
|
-
fixed?: FixedType;
|
|
8
|
-
showFixedColumnDivider?: boolean;
|
|
9
|
-
sortOptions?: SortOptionType[];
|
|
10
|
-
indexPosition: number;
|
|
11
|
-
disabledMenuHeader?: boolean;
|
|
12
|
-
tooltip?: string | null;
|
|
13
|
-
tooltipPlacement?: TooltipPlacement;
|
|
14
|
-
}
|
|
15
|
-
export declare type FixedType = 'left' | 'right';
|
|
16
|
-
export declare type ColumnType<T = any> = Omit<ColumnInterface<T>, 'indexPosition'>;
|
|
17
|
-
export declare type SortValueStateType = {
|
|
18
|
-
[key: string]: SortValueType;
|
|
19
|
-
} | null;
|
|
20
|
-
export declare type TextsTranslated = {
|
|
21
|
-
sortBy?: string;
|
|
22
|
-
disorder?: string;
|
|
23
|
-
pinColumn?: string;
|
|
24
|
-
unpinColumn?: string;
|
|
25
|
-
pinColumnLeft?: string;
|
|
26
|
-
pinColumnRight?: string;
|
|
27
|
-
};
|
|
28
|
-
export interface TableInterface extends Omit<TableProps<any>, 'columns' | 'sticky' | 'pagination' | 'size'> {
|
|
29
|
-
texts?: TextsTranslated;
|
|
30
|
-
columns: ColumnType[];
|
|
31
|
-
disorder?: () => void;
|
|
32
|
-
menuRowOptions?: MenuRowType[];
|
|
33
|
-
summaryData?: Array<string | number>;
|
|
34
|
-
sortDefaultValue?: SortValueStateType;
|
|
35
|
-
onColumnKeyPinned?: (key: React.Key) => void;
|
|
36
|
-
footerPadding?: string;
|
|
37
|
-
}
|
|
38
|
-
export declare type MenuRowType<T = any> = {
|
|
39
|
-
title: string;
|
|
40
|
-
tooltip?: string | ((event: T) => string);
|
|
41
|
-
icon?: React.ReactNode;
|
|
42
|
-
suffixIcon?: React.ReactNode;
|
|
43
|
-
callback: (event: T) => void;
|
|
44
|
-
hideOption?: (event: T) => boolean;
|
|
45
|
-
disabled?: boolean | ((event: T) => boolean);
|
|
46
|
-
};
|
|
47
|
-
export declare type TitleDropdownProps = {
|
|
48
|
-
texts?: TextsTranslated;
|
|
49
|
-
column: ColumnInterface;
|
|
50
|
-
hasScroll: boolean;
|
|
51
|
-
disorder?: () => void;
|
|
52
|
-
sortValue: SortValueStateType;
|
|
53
|
-
setSortValue: (value: SortValueStateType) => void;
|
|
54
|
-
dataColumns: ColumnInterface[];
|
|
55
|
-
setDataColumns: (value: ColumnInterface[]) => void;
|
|
56
|
-
onColumnKeyPinned?: (key: React.Key) => void;
|
|
57
|
-
};
|
|
58
|
-
export declare type SortOptionType = {
|
|
59
|
-
title: string;
|
|
60
|
-
callback: () => void;
|
|
61
|
-
icon?: React.ReactNode;
|
|
62
|
-
};
|
|
63
|
-
export declare type SortValueType = number | null;
|
package/dist/Table/utils.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Key } from 'react';
|
|
2
|
-
import { ColumnInterface, FixedType } from './types';
|
|
3
|
-
export declare const sortColumnsByFixed: (columns: ColumnInterface[]) => ColumnInterface[];
|
|
4
|
-
export declare const sortColumnsByPosition: (columns: ColumnInterface[]) => ColumnInterface[];
|
|
5
|
-
export declare const unpinColumn: (data: ColumnInterface[], key: Key) => ColumnInterface[];
|
|
6
|
-
export declare const pinColumn: (data: ColumnInterface[], key: Key, direction: FixedType) => ColumnInterface[];
|
package/dist/Tabs/Tabs.d.ts
DELETED
package/dist/Tabs/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './Tabs';
|