@edvisor/product-language 0.11.112 → 0.11.114
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/index.cjs +1 -1
- package/index.d.ts +2 -2
- package/index.js +1 -1
- package/lib/components/alert-banner/alert-banner.d.ts +18 -18
- package/lib/components/alert-banner/alert-level-flags.d.ts +18 -18
- package/lib/components/alert-banner/index.d.ts +1 -1
- package/lib/components/autocomplete-input/autocomplete-input.d.ts +39 -39
- package/lib/components/autocomplete-input/index.d.ts +1 -1
- package/lib/components/badge/badge-type-flags.d.ts +18 -18
- package/lib/components/badge/badge.d.ts +7 -7
- package/lib/components/badge/index.d.ts +1 -1
- package/lib/components/card/atoms/card-frame.d.ts +7 -7
- package/lib/components/card/atoms/index.d.ts +1 -1
- package/lib/components/card/card.d.ts +14 -14
- package/lib/components/card/components/card-alert-banner-slot.d.ts +5 -6
- package/lib/components/card/components/card-controls-slot.d.ts +4 -5
- package/lib/components/card/components/card-section-slot.d.ts +11 -11
- package/lib/components/card/components/index.d.ts +3 -3
- package/lib/components/card/index.d.ts +3 -3
- package/lib/components/card/molecules/index.d.ts +1 -1
- package/lib/components/card/molecules/left-right-card.d.ts +16 -16
- package/lib/components/checkbox/checkbox.d.ts +11 -11
- package/lib/components/checkbox/helpers.d.ts +12 -12
- package/lib/components/checkbox/index.d.ts +1 -1
- package/lib/components/date-picker/components/custom-calendar.d.ts +6 -6
- package/lib/components/date-picker/components/index.d.ts +1 -1
- package/lib/components/date-picker/date-picker-utc.d.ts +9 -9
- package/lib/components/date-picker/date-picker.d.ts +19 -19
- package/lib/components/date-picker/helpers/date-picker-factory.d.ts +38 -38
- package/lib/components/date-picker/index.d.ts +2 -2
- package/lib/components/divider/divider-type-flags.d.ts +9 -9
- package/lib/components/divider/divider.d.ts +7 -7
- package/lib/components/divider/index.d.ts +1 -1
- package/lib/components/flag/flag-size-flags.d.ts +22 -22
- package/lib/components/flag/flag.d.ts +4 -4
- package/lib/components/flag/helpers/flag-sprite-sheet.d.ts +5 -5
- package/lib/components/flag/helpers/index.d.ts +1 -1
- package/lib/components/flag/index.d.ts +1 -1
- package/lib/components/flag/types.d.ts +5 -5
- package/lib/components/icon/icon-list.d.ts +149 -150
- package/lib/components/icon/icon.d.ts +149 -149
- package/lib/components/icon/index.d.ts +1 -1
- package/lib/components/index.d.ts +39 -39
- package/lib/components/inline-error/index.d.ts +1 -1
- package/lib/components/inline-error/inline-error.d.ts +7 -7
- package/lib/components/input-field/components/index.d.ts +2 -2
- package/lib/components/input-field/components/labeled-input.d.ts +11 -11
- package/lib/components/input-field/components/stepper.d.ts +7 -7
- package/lib/components/input-field/index.d.ts +4 -4
- package/lib/components/input-field/input-currency.d.ts +23 -22
- package/lib/components/input-field/input-currency.helpers.d.ts +32 -0
- package/lib/components/input-field/input-field.d.ts +27 -27
- package/lib/components/input-field/input-number.d.ts +19 -19
- package/lib/components/input-field/input-text.d.ts +14 -14
- package/lib/components/layout/flex.d.ts +16 -16
- package/lib/components/layout/grid-layout.d.ts +11 -11
- package/lib/components/layout/index.d.ts +3 -3
- package/lib/components/layout/left-right-layout.d.ts +33 -34
- package/lib/components/link/index.d.ts +1 -1
- package/lib/components/link/link.d.ts +14 -14
- package/lib/components/markdown/index.d.ts +1 -1
- package/lib/components/markdown/markdown.d.ts +7 -7
- package/lib/components/menu/index.d.ts +1 -1
- package/lib/components/menu/menu.d.ts +18 -18
- package/lib/components/modal/index.d.ts +3 -3
- package/lib/components/modal/modal-base.d.ts +32 -32
- package/lib/components/modal/modal-destructive.d.ts +16 -16
- package/lib/components/modal/modal.d.ts +16 -16
- package/lib/components/molecules/avatar/avatar-size-flags.d.ts +11 -12
- package/lib/components/molecules/avatar/avatar.d.ts +12 -12
- package/lib/components/molecules/avatar/index.d.ts +1 -1
- package/lib/components/molecules/button/button-flags.d.ts +44 -44
- package/lib/components/molecules/button/button.d.ts +12 -12
- package/lib/components/molecules/button/index.d.ts +1 -1
- package/lib/components/molecules/index.d.ts +4 -4
- package/lib/components/molecules/input-checkbox/index.d.ts +1 -1
- package/lib/components/molecules/input-checkbox/input-checkbox.d.ts +8 -8
- package/lib/components/molecules/simple-menu/SimpleMenu.d.ts +14 -15
- package/lib/components/molecules/simple-menu/index.d.ts +1 -1
- package/lib/components/organisms/choice-list/choice-list.d.ts +9 -9
- package/lib/components/organisms/choice-list/index.d.ts +1 -1
- package/lib/components/organisms/index.d.ts +2 -2
- package/lib/components/organisms/multi-choice-list/index.d.ts +1 -1
- package/lib/components/organisms/multi-choice-list/multi-choice-list.d.ts +11 -11
- package/lib/components/page-header/index.d.ts +1 -1
- package/lib/components/page-header/page-header.d.ts +25 -26
- package/lib/components/pagination/index.d.ts +1 -1
- package/lib/components/pagination/pagination.d.ts +10 -10
- package/lib/components/progress-bar/index.d.ts +1 -1
- package/lib/components/progress-bar/progress-bar-size-flags.d.ts +10 -10
- package/lib/components/progress-bar/progress-bar.d.ts +8 -8
- package/lib/components/radio-button/index.d.ts +1 -1
- package/lib/components/radio-button/radio-button.d.ts +11 -11
- package/lib/components/range-slider/components/bar-chart.d.ts +8 -8
- package/lib/components/range-slider/components/handle.d.ts +12 -12
- package/lib/components/range-slider/components/rail.d.ts +9 -9
- package/lib/components/range-slider/components/slider-component.d.ts +12 -12
- package/lib/components/range-slider/components/slider-inputs.d.ts +15 -16
- package/lib/components/range-slider/components/tick.d.ts +10 -10
- package/lib/components/range-slider/components/track.d.ts +11 -11
- package/lib/components/range-slider/index.d.ts +2 -2
- package/lib/components/range-slider/range-slider.d.ts +16 -16
- package/lib/components/range-slider/slider.d.ts +12 -12
- package/lib/components/range-slider/types.d.ts +11 -11
- package/lib/components/react-select/index.d.ts +1 -1
- package/lib/components/react-select/react-select.d.ts +14 -15
- package/lib/components/select/components/helpers.d.ts +17 -17
- package/lib/components/select/components/menu-container.d.ts +3 -3
- package/lib/components/select/components/menu-list-expanded.d.ts +6 -6
- package/lib/components/select/components/menu-list.d.ts +3 -3
- package/lib/components/select/components/menu-row.d.ts +11 -11
- package/lib/components/select/components/menu.d.ts +2 -3
- package/lib/components/select/components/option.d.ts +2 -3
- package/lib/components/select/components/optionMultiLevel.d.ts +2 -3
- package/lib/components/select/components/optionMultilevelExpanded.d.ts +5 -5
- package/lib/components/select/components/select-label.d.ts +1 -1
- package/lib/components/select/components/value-component-multi.d.ts +4 -4
- package/lib/components/select/components/value-component-single.d.ts +5 -4
- package/lib/components/select/components/value.d.ts +5 -4
- package/lib/components/select/index.d.ts +4 -4
- package/lib/components/select/select.d.ts +7 -10
- package/lib/components/select/types.d.ts +300 -300
- package/lib/components/select/utils.d.ts +16 -16
- package/lib/components/select-with-groups/index.d.ts +2 -2
- package/lib/components/select-with-groups/select-with-groups.d.ts +35 -35
- package/lib/components/spinner/index.d.ts +1 -1
- package/lib/components/spinner/spinner-size-flags.d.ts +10 -10
- package/lib/components/spinner/spinner.d.ts +9 -9
- package/lib/components/stepper/index.d.ts +1 -1
- package/lib/components/stepper/stepper.d.ts +9 -9
- package/lib/components/switch/index.d.ts +1 -1
- package/lib/components/switch/switch.d.ts +13 -13
- package/lib/components/table/hooks/index.d.ts +4 -4
- package/lib/components/table/hooks/useFilteredRows.d.ts +5 -5
- package/lib/components/table/hooks/usePaginatedRows.d.ts +12 -12
- package/lib/components/table/hooks/useSortedRows.d.ts +6 -6
- package/lib/components/table/hooks/useTable.d.ts +47 -47
- package/lib/components/table/index.d.ts +2 -2
- package/lib/components/table/table.d.ts +28 -28
- package/lib/components/tabs/components/index.d.ts +1 -1
- package/lib/components/tabs/components/tab.d.ts +10 -10
- package/lib/components/tabs/index.d.ts +1 -1
- package/lib/components/tabs/tabs.d.ts +18 -18
- package/lib/components/tag/components/close-button.d.ts +8 -8
- package/lib/components/tag/components/index.d.ts +2 -2
- package/lib/components/tag/components/tag-label.d.ts +8 -8
- package/lib/components/tag/index.d.ts +1 -1
- package/lib/components/tag/tag.d.ts +10 -10
- package/lib/components/text-area/index.d.ts +1 -1
- package/lib/components/text-area/text-area.d.ts +11 -11
- package/lib/components/text-toggle/index.d.ts +1 -1
- package/lib/components/text-toggle/text-toggle.d.ts +10 -10
- package/lib/components/thumbnail/index.d.ts +1 -1
- package/lib/components/thumbnail/thumbnail-size-flags.d.ts +10 -10
- package/lib/components/thumbnail/thumbnail.d.ts +10 -10
- package/lib/components/toast/index.d.ts +1 -1
- package/lib/components/toast/toast.d.ts +17 -17
- package/lib/components/tooltip/index.d.ts +1 -1
- package/lib/components/tooltip/tooltip.d.ts +30 -30
- package/lib/components/tree-view/components/tree-node.d.ts +3 -3
- package/lib/components/tree-view/helper.d.ts +12 -12
- package/lib/components/tree-view/index.d.ts +2 -2
- package/lib/components/tree-view/tree-view.d.ts +3 -3
- package/lib/components/tree-view/types.d.ts +63 -63
- package/lib/components/typography/index.d.ts +1 -1
- package/lib/components/typography/typography.d.ts +27 -27
- package/lib/foundations/color-system/base-palette/base-palette.d.ts +76 -76
- package/lib/foundations/color-system/base-palette/index.d.ts +1 -1
- package/lib/foundations/color-system/color-guidelines/color-guidelines.d.ts +133 -133
- package/lib/foundations/color-system/color-guidelines/index.d.ts +1 -1
- package/lib/foundations/color-system/components/color-sample.d.ts +17 -17
- package/lib/foundations/color-system/components/index.d.ts +1 -1
- package/lib/foundations/color-system/index.d.ts +2 -2
- package/lib/foundations/index.d.ts +4 -4
- package/lib/foundations/shadows/components.d.ts +8 -8
- package/lib/foundations/shadows/index.d.ts +1 -1
- package/lib/foundations/shadows/shadows.d.ts +8 -8
- package/lib/foundations/spacing/index.d.ts +1 -1
- package/lib/foundations/spacing/spacing-guidelines.d.ts +37 -37
- package/lib/foundations/spacing/spacing.d.ts +19 -19
- package/lib/foundations/typography/constants.d.ts +39 -39
- package/lib/foundations/typography/fonts.d.ts +1 -1
- package/lib/foundations/typography/index.d.ts +2 -2
- package/lib/foundations/typography/text-aspect-flags.d.ts +30 -30
- package/lib/foundations/typography/typography.d.ts +24 -24
- package/lib/helpers/generic-types.d.ts +21 -21
- package/lib/helpers/index.d.ts +10 -10
- package/lib/helpers/isReactElementOfType.d.ts +6 -8
- package/lib/helpers/nothing.d.ts +9 -10
- package/lib/helpers/numbers.d.ts +51 -51
- package/lib/helpers/safe-navigation.d.ts +26 -26
- package/lib/helpers/slots.d.ts +17 -17
- package/lib/helpers/strings.d.ts +1 -1
- package/lib/helpers/useClickOutside.d.ts +2 -2
- package/lib/helpers/useInputElementState.d.ts +30 -30
- package/lib/helpers/useIsMobile.d.ts +1 -1
- package/lib/helpers/useKeyDown.d.ts +1 -1
- package/package.json +5 -5
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { FC } from '@helpers';
|
|
2
|
-
import { InputFieldSlots } from './input-field';
|
|
3
|
-
import { Stepper } from './components';
|
|
4
|
-
import { InputHTMLAttributes } from 'react';
|
|
5
|
-
export interface IInputNumberProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange'> {
|
|
6
|
-
value?: number;
|
|
7
|
-
onChange: (change?: number) => void;
|
|
8
|
-
label?: string;
|
|
9
|
-
placeholder?: string;
|
|
10
|
-
invalid?: boolean;
|
|
11
|
-
prefix?: string;
|
|
12
|
-
suffix?: string;
|
|
13
|
-
required?: boolean;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
Stepper: typeof Stepper;
|
|
17
|
-
};
|
|
18
|
-
export declare const InputNumber: FC<IInputNumberProps, IInputNumberSlots>;
|
|
19
|
-
export {};
|
|
1
|
+
import { FC } from '@helpers';
|
|
2
|
+
import { InputFieldSlots } from './input-field';
|
|
3
|
+
import { Stepper } from './components';
|
|
4
|
+
import { InputHTMLAttributes } from 'react';
|
|
5
|
+
export interface IInputNumberProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange'> {
|
|
6
|
+
value?: number;
|
|
7
|
+
onChange: (change?: number) => void;
|
|
8
|
+
label?: string;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
invalid?: boolean;
|
|
11
|
+
prefix?: string;
|
|
12
|
+
suffix?: string;
|
|
13
|
+
required?: boolean;
|
|
14
|
+
}
|
|
15
|
+
type IInputNumberSlots = InputFieldSlots & {
|
|
16
|
+
Stepper: typeof Stepper;
|
|
17
|
+
};
|
|
18
|
+
export declare const InputNumber: FC<IInputNumberProps, IInputNumberSlots>;
|
|
19
|
+
export {};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { FC } from '@helpers';
|
|
2
|
-
import { InputFieldSlots } from './input-field';
|
|
3
|
-
interface IInputTextProps {
|
|
4
|
-
value: string;
|
|
5
|
-
onChange?: (change: string) => void;
|
|
6
|
-
label?: string;
|
|
7
|
-
invalid?: boolean;
|
|
8
|
-
placeholder?: string;
|
|
9
|
-
prefix?: string;
|
|
10
|
-
suffix?: string;
|
|
11
|
-
required?: boolean;
|
|
12
|
-
}
|
|
13
|
-
export declare const InputText: FC<IInputTextProps, InputFieldSlots>;
|
|
14
|
-
export {};
|
|
1
|
+
import { FC } from '@helpers';
|
|
2
|
+
import { InputFieldSlots } from './input-field';
|
|
3
|
+
interface IInputTextProps {
|
|
4
|
+
value: string;
|
|
5
|
+
onChange?: (change: string) => void;
|
|
6
|
+
label?: string;
|
|
7
|
+
invalid?: boolean;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
prefix?: string;
|
|
10
|
+
suffix?: string;
|
|
11
|
+
required?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare const InputText: FC<IInputTextProps, InputFieldSlots>;
|
|
14
|
+
export {};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export declare const Flex: import("styled-components").StyledComponent<"div", any, {
|
|
2
|
-
column?: boolean
|
|
3
|
-
center?: boolean
|
|
4
|
-
}, never>;
|
|
5
|
-
export declare const SpaceBetween: import("styled-components").StyledComponent<"div", any, {
|
|
6
|
-
column?: boolean
|
|
7
|
-
center?: boolean
|
|
8
|
-
}, never>;
|
|
9
|
-
export declare const SpaceAround: import("styled-components").StyledComponent<"div", any, {
|
|
10
|
-
column?: boolean
|
|
11
|
-
center?: boolean
|
|
12
|
-
}, never>;
|
|
13
|
-
export declare const Center: import("styled-components").StyledComponent<"div", any, {
|
|
14
|
-
column?: boolean
|
|
15
|
-
center?: boolean
|
|
16
|
-
}, never>;
|
|
1
|
+
export declare const Flex: import("styled-components").StyledComponent<"div", any, {
|
|
2
|
+
column?: boolean;
|
|
3
|
+
center?: boolean;
|
|
4
|
+
}, never>;
|
|
5
|
+
export declare const SpaceBetween: import("styled-components").StyledComponent<"div", any, {
|
|
6
|
+
column?: boolean;
|
|
7
|
+
center?: boolean;
|
|
8
|
+
}, never>;
|
|
9
|
+
export declare const SpaceAround: import("styled-components").StyledComponent<"div", any, {
|
|
10
|
+
column?: boolean;
|
|
11
|
+
center?: boolean;
|
|
12
|
+
}, never>;
|
|
13
|
+
export declare const Center: import("styled-components").StyledComponent<"div", any, {
|
|
14
|
+
column?: boolean;
|
|
15
|
+
center?: boolean;
|
|
16
|
+
}, never>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
interface IGridLayoutGeneratorProps {
|
|
2
|
-
columns?: number;
|
|
3
|
-
rows?: number;
|
|
4
|
-
columnGutter?: number;
|
|
5
|
-
rowGutter?: number;
|
|
6
|
-
}
|
|
7
|
-
export declare function gridLayoutGenerator(props?: IGridLayoutGeneratorProps): {
|
|
8
|
-
Grid: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
9
|
-
Cell: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
10
|
-
};
|
|
11
|
-
export {};
|
|
1
|
+
interface IGridLayoutGeneratorProps {
|
|
2
|
+
columns?: number;
|
|
3
|
+
rows?: number;
|
|
4
|
+
columnGutter?: number;
|
|
5
|
+
rowGutter?: number;
|
|
6
|
+
}
|
|
7
|
+
export declare function gridLayoutGenerator(props?: IGridLayoutGeneratorProps): {
|
|
8
|
+
Grid: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
9
|
+
Cell: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './left-right-layout';
|
|
2
|
-
export * from './flex';
|
|
3
|
-
export * from './grid-layout';
|
|
1
|
+
export * from './left-right-layout';
|
|
2
|
+
export * from './flex';
|
|
3
|
+
export * from './grid-layout';
|
|
@@ -1,34 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}>;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
};
|
|
34
|
-
export {};
|
|
1
|
+
import { FC } from '@helpers';
|
|
2
|
+
interface ILeftRightLayoutGeneratorProps {
|
|
3
|
+
columns?: number;
|
|
4
|
+
columnGutter?: number;
|
|
5
|
+
rowGutter?: number;
|
|
6
|
+
}
|
|
7
|
+
export declare function leftRightLayoutGenerator(layoutProps?: ILeftRightLayoutGeneratorProps): {
|
|
8
|
+
LeftRightLayout: FC<{
|
|
9
|
+
children?: import("react").ReactNode | undefined;
|
|
10
|
+
}, {
|
|
11
|
+
Left: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
12
|
+
Right: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
13
|
+
HeadingText: import("styled-components").StyledComponent<FC<import("components/typography").ITextComponentProps>, any, {}, never>;
|
|
14
|
+
HelpText: import("styled-components").StyledComponent<FC<import("components/typography").ITextComponentProps & import("@foundations").IBodyProps>, any, {
|
|
15
|
+
subdued: true;
|
|
16
|
+
}, "subdued">;
|
|
17
|
+
BodyText: FC<import("components/typography").ITextComponentProps & import("@foundations").IBodyProps>;
|
|
18
|
+
}>;
|
|
19
|
+
Layout: FC<{
|
|
20
|
+
children?: import("react").ReactNode | undefined;
|
|
21
|
+
}, {
|
|
22
|
+
Left: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
23
|
+
Right: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
24
|
+
HeadingText: import("styled-components").StyledComponent<FC<import("components/typography").ITextComponentProps>, any, {}, never>;
|
|
25
|
+
HelpText: import("styled-components").StyledComponent<FC<import("components/typography").ITextComponentProps & import("@foundations").IBodyProps>, any, {
|
|
26
|
+
subdued: true;
|
|
27
|
+
}, "subdued">;
|
|
28
|
+
BodyText: FC<import("components/typography").ITextComponentProps & import("@foundations").IBodyProps>;
|
|
29
|
+
}>;
|
|
30
|
+
Left: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
31
|
+
Right: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
32
|
+
};
|
|
33
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './link';
|
|
1
|
+
export * from './link';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { AnchorHTMLAttributes } from 'react';
|
|
2
|
-
import { FC } from '@helpers';
|
|
3
|
-
export declare const HTMLAnchor: import("styled-components").StyledComponent<"a", any, {
|
|
4
|
-
disabled: boolean;
|
|
5
|
-
initialColor: string;
|
|
6
|
-
interactionColor: string;
|
|
7
|
-
}, never>;
|
|
8
|
-
interface ILinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
9
|
-
label: string;
|
|
10
|
-
subtle?: boolean;
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
}
|
|
13
|
-
export declare const Link: FC<ILinkProps>;
|
|
14
|
-
export {};
|
|
1
|
+
import { AnchorHTMLAttributes } from 'react';
|
|
2
|
+
import { FC } from '@helpers';
|
|
3
|
+
export declare const HTMLAnchor: import("styled-components").StyledComponent<"a", any, {
|
|
4
|
+
disabled: boolean;
|
|
5
|
+
initialColor: string;
|
|
6
|
+
interactionColor: string;
|
|
7
|
+
}, never>;
|
|
8
|
+
interface ILinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
9
|
+
label: string;
|
|
10
|
+
subtle?: boolean;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare const Link: FC<ILinkProps>;
|
|
14
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { MarkdownComponent as Markdown } from './markdown';
|
|
1
|
+
export { MarkdownComponent as Markdown } from './markdown';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'react';
|
|
2
|
-
import { FC } from '@helpers';
|
|
3
|
-
interface IMarkdownProps extends HTMLAttributes<HTMLElement> {
|
|
4
|
-
text?: string;
|
|
5
|
-
}
|
|
6
|
-
export declare const MarkdownComponent: FC<IMarkdownProps>;
|
|
7
|
-
export {};
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { FC } from '@helpers';
|
|
3
|
+
interface IMarkdownProps extends HTMLAttributes<HTMLElement> {
|
|
4
|
+
text?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const MarkdownComponent: FC<IMarkdownProps>;
|
|
7
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './menu';
|
|
1
|
+
export * from './menu';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { IOption } from 'components/select';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
|
|
4
|
-
onItemSelect?: () => void;
|
|
5
|
-
component?: React.ReactNode;
|
|
6
|
-
componentHeight?: number;
|
|
7
|
-
containerHeight?: number;
|
|
8
|
-
filterable?: boolean;
|
|
9
|
-
filterPlaceholder?: string;
|
|
10
|
-
} & IOption;
|
|
11
|
-
interface IMenuPros {
|
|
12
|
-
items: MenuItem[];
|
|
13
|
-
open: boolean;
|
|
14
|
-
filterable?: boolean;
|
|
15
|
-
filterPlaceholder?: string;
|
|
16
|
-
}
|
|
17
|
-
export declare const Menu: (props: IMenuPros) => JSX.Element;
|
|
18
|
-
export {};
|
|
1
|
+
import { IOption } from 'components/select';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
type MenuItem = {
|
|
4
|
+
onItemSelect?: () => void;
|
|
5
|
+
component?: React.ReactNode;
|
|
6
|
+
componentHeight?: number;
|
|
7
|
+
containerHeight?: number;
|
|
8
|
+
filterable?: boolean;
|
|
9
|
+
filterPlaceholder?: string;
|
|
10
|
+
} & IOption;
|
|
11
|
+
interface IMenuPros {
|
|
12
|
+
items: MenuItem[];
|
|
13
|
+
open: boolean;
|
|
14
|
+
filterable?: boolean;
|
|
15
|
+
filterPlaceholder?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare const Menu: (props: IMenuPros) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './modal-base';
|
|
2
|
-
export * from './modal';
|
|
3
|
-
export * from './modal-destructive';
|
|
1
|
+
export * from './modal-base';
|
|
2
|
+
export * from './modal';
|
|
3
|
+
export * from './modal-destructive';
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { InputHTMLAttributes } from 'react';
|
|
2
|
-
import { FC } from '@helpers';
|
|
3
|
-
interface Sizes {
|
|
4
|
-
small: string;
|
|
5
|
-
critical: string;
|
|
6
|
-
default: string;
|
|
7
|
-
large: string;
|
|
8
|
-
xLarge: string;
|
|
9
|
-
xxLarge: string;
|
|
10
|
-
xxxLarge: string;
|
|
11
|
-
}
|
|
12
|
-
export declare const MODAL_SIZE: Sizes;
|
|
13
|
-
export declare const MODAL_SIZE_TEXT: {
|
|
14
|
-
SMALL: string;
|
|
15
|
-
CRITICAL: string;
|
|
16
|
-
DEFAULT: string;
|
|
17
|
-
LARGE: string;
|
|
18
|
-
XLARGE: string;
|
|
19
|
-
XXLARGE: string;
|
|
20
|
-
XXXLARGE: string;
|
|
21
|
-
};
|
|
22
|
-
export interface IModalBaseProps {
|
|
23
|
-
open: boolean;
|
|
24
|
-
children: React.ReactElement;
|
|
25
|
-
closeOnEsc?: boolean;
|
|
26
|
-
modalSize?: keyof typeof MODAL_SIZE;
|
|
27
|
-
onOverlayClick?: () => void;
|
|
28
|
-
onClose: () => void;
|
|
29
|
-
}
|
|
30
|
-
export
|
|
31
|
-
export declare const ModalBase: FC<IModalBase>;
|
|
32
|
-
export {};
|
|
1
|
+
import { InputHTMLAttributes } from 'react';
|
|
2
|
+
import { FC } from '@helpers';
|
|
3
|
+
interface Sizes {
|
|
4
|
+
small: string;
|
|
5
|
+
critical: string;
|
|
6
|
+
default: string;
|
|
7
|
+
large: string;
|
|
8
|
+
xLarge: string;
|
|
9
|
+
xxLarge: string;
|
|
10
|
+
xxxLarge: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const MODAL_SIZE: Sizes;
|
|
13
|
+
export declare const MODAL_SIZE_TEXT: {
|
|
14
|
+
SMALL: string;
|
|
15
|
+
CRITICAL: string;
|
|
16
|
+
DEFAULT: string;
|
|
17
|
+
LARGE: string;
|
|
18
|
+
XLARGE: string;
|
|
19
|
+
XXLARGE: string;
|
|
20
|
+
XXXLARGE: string;
|
|
21
|
+
};
|
|
22
|
+
export interface IModalBaseProps {
|
|
23
|
+
open: boolean;
|
|
24
|
+
children: React.ReactElement;
|
|
25
|
+
closeOnEsc?: boolean;
|
|
26
|
+
modalSize?: keyof typeof MODAL_SIZE;
|
|
27
|
+
onOverlayClick?: () => void;
|
|
28
|
+
onClose: () => void;
|
|
29
|
+
}
|
|
30
|
+
export type IModalBase = InputHTMLAttributes<HTMLInputElement> & IModalBaseProps;
|
|
31
|
+
export declare const ModalBase: FC<IModalBase>;
|
|
32
|
+
export {};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'react';
|
|
2
|
-
import { FC } from '@helpers';
|
|
3
|
-
import { IModalBaseProps } from './modal-base';
|
|
4
|
-
export interface IModalDestructiveProps extends IModalBaseProps {
|
|
5
|
-
primaryButtonLabel?: string;
|
|
6
|
-
closeButtonLabel: string;
|
|
7
|
-
onPrimaryAction: () => void;
|
|
8
|
-
isPrimaryButtonDisabled?: boolean;
|
|
9
|
-
isPrimaryActionLoading?: boolean;
|
|
10
|
-
requireValidation?: string;
|
|
11
|
-
validationInputLabel?: string;
|
|
12
|
-
validationInputPlaceholder?: string;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export declare const ModalDestructive: FC<IModalDestructive>;
|
|
16
|
-
export {};
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { FC } from '@helpers';
|
|
3
|
+
import { IModalBaseProps } from './modal-base';
|
|
4
|
+
export interface IModalDestructiveProps extends IModalBaseProps {
|
|
5
|
+
primaryButtonLabel?: string;
|
|
6
|
+
closeButtonLabel: string;
|
|
7
|
+
onPrimaryAction: () => void;
|
|
8
|
+
isPrimaryButtonDisabled?: boolean;
|
|
9
|
+
isPrimaryActionLoading?: boolean;
|
|
10
|
+
requireValidation?: string;
|
|
11
|
+
validationInputLabel?: string;
|
|
12
|
+
validationInputPlaceholder?: string;
|
|
13
|
+
}
|
|
14
|
+
type IModalDestructive = IModalDestructiveProps & HTMLAttributes<HTMLDivElement>;
|
|
15
|
+
export declare const ModalDestructive: FC<IModalDestructive>;
|
|
16
|
+
export {};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { InputHTMLAttributes } from 'react';
|
|
2
|
-
import { FC } from '@helpers';
|
|
3
|
-
import { IModalBaseProps } from './modal-base';
|
|
4
|
-
export interface IModalProps extends IModalBaseProps {
|
|
5
|
-
title?: string;
|
|
6
|
-
primaryButtonLabel?: string;
|
|
7
|
-
closeButtonLabel?: string;
|
|
8
|
-
secondaryButtonLabel?: string;
|
|
9
|
-
onPrimaryAction?: () => void;
|
|
10
|
-
onSecondaryAction?: () => void;
|
|
11
|
-
isPrimaryButtonDisabled?: boolean;
|
|
12
|
-
isPrimaryActionLoading?: boolean;
|
|
13
|
-
CustomFooter?: JSX.Element;
|
|
14
|
-
}
|
|
15
|
-
export
|
|
16
|
-
export declare const Modal: FC<IModal>;
|
|
1
|
+
import { InputHTMLAttributes } from 'react';
|
|
2
|
+
import { FC } from '@helpers';
|
|
3
|
+
import { IModalBaseProps } from './modal-base';
|
|
4
|
+
export interface IModalProps extends IModalBaseProps {
|
|
5
|
+
title?: string;
|
|
6
|
+
primaryButtonLabel?: string;
|
|
7
|
+
closeButtonLabel?: string;
|
|
8
|
+
secondaryButtonLabel?: string;
|
|
9
|
+
onPrimaryAction?: () => void;
|
|
10
|
+
onSecondaryAction?: () => void;
|
|
11
|
+
isPrimaryButtonDisabled?: boolean;
|
|
12
|
+
isPrimaryActionLoading?: boolean;
|
|
13
|
+
CustomFooter?: JSX.Element;
|
|
14
|
+
}
|
|
15
|
+
export type IModal = IModalProps & InputHTMLAttributes<HTMLDivElement>;
|
|
16
|
+
export declare const Modal: FC<IModal>;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export declare
|
|
10
|
-
export declare function
|
|
11
|
-
export
|
|
12
|
-
export {};
|
|
1
|
+
import { MappedEnum, RequireOnlyOne, PropsWithChildren } from '@helpers';
|
|
2
|
+
declare const enum AvatarSize {
|
|
3
|
+
small = 1,
|
|
4
|
+
medium = 2,
|
|
5
|
+
large = 4
|
|
6
|
+
}
|
|
7
|
+
type AvatarSizes<T> = MappedEnum<typeof AvatarSize, T>;
|
|
8
|
+
export type AvatarSizeProps = Partial<RequireOnlyOne<AvatarSizes<boolean>>> & PropsWithChildren;
|
|
9
|
+
export declare function getValuesBySize(props: AvatarSizeProps): string;
|
|
10
|
+
export declare function getNodeToRenderText(props: AvatarSizeProps): React.ElementType;
|
|
11
|
+
export {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { FC } from '@helpers';
|
|
2
|
-
import { AvatarSizeProps } from './avatar-size-flags';
|
|
3
|
-
interface IAvatarProps {
|
|
4
|
-
name: string;
|
|
5
|
-
imageUrl?: string;
|
|
6
|
-
imageLabel?: string;
|
|
7
|
-
withLabel?: boolean;
|
|
8
|
-
className?: string;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export declare const Avatar: FC<IProps>;
|
|
12
|
-
export {};
|
|
1
|
+
import { FC } from '@helpers';
|
|
2
|
+
import { AvatarSizeProps } from './avatar-size-flags';
|
|
3
|
+
interface IAvatarProps {
|
|
4
|
+
name: string;
|
|
5
|
+
imageUrl?: string;
|
|
6
|
+
imageLabel?: string;
|
|
7
|
+
withLabel?: boolean;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
type IProps = IAvatarProps & AvatarSizeProps;
|
|
11
|
+
export declare const Avatar: FC<IProps>;
|
|
12
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './avatar';
|
|
1
|
+
export * from './avatar';
|
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import { MappedEnum, RequireOnlyOne, PropsWithChildren } from '@helpers';
|
|
2
|
-
export declare const enum ButtonType {
|
|
3
|
-
basic = 1,
|
|
4
|
-
primary = 2,
|
|
5
|
-
destructive = 4,
|
|
6
|
-
destructivePrimary = 6,
|
|
7
|
-
outline = 8,
|
|
8
|
-
plain = 16,
|
|
9
|
-
subtle = 32,
|
|
10
|
-
plainSubtle = 48
|
|
11
|
-
}
|
|
12
|
-
declare const enum ButtonSize {
|
|
13
|
-
default = 1,
|
|
14
|
-
small = 2,
|
|
15
|
-
large = 4
|
|
16
|
-
}
|
|
17
|
-
declare const enum ButtonDisabledType {
|
|
18
|
-
enabled = 1,
|
|
19
|
-
disabled = 2
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
export
|
|
25
|
-
export
|
|
26
|
-
export
|
|
27
|
-
export declare function getBackgroundColorByType(type: ButtonType): string;
|
|
28
|
-
export declare function getBackgroundColorHoverByType(type: ButtonType): string;
|
|
29
|
-
export declare function getTextDecorationHoverByType(type: ButtonType): string;
|
|
30
|
-
export declare function getBackgroundColorDisabledByType(type: ButtonType): string;
|
|
31
|
-
export declare function getBackgroundColorPressedByType(type: ButtonType): string;
|
|
32
|
-
export declare function getTextColorByType(type: ButtonType): string;
|
|
33
|
-
export declare function getIconColorByType(type: ButtonType): string;
|
|
34
|
-
export declare function getTextColorOnHoverByType(type: ButtonType): string;
|
|
35
|
-
export declare function getIconColorOnHoverByType(type: ButtonType): string;
|
|
36
|
-
export declare function getBorderByType(type: ButtonType): string;
|
|
37
|
-
export declare function getBorderDisabledByType(type: ButtonType): string;
|
|
38
|
-
export declare function getPaddingBySize(props: ButtonSizeProps): string;
|
|
39
|
-
export declare function getPaddingByType(type: ButtonType): string;
|
|
40
|
-
export declare function getTextColorIfDisabled(props: ButtonDisabledTypeProps): string;
|
|
41
|
-
export declare function getCursor(props: ButtonDisabledTypeProps): string;
|
|
42
|
-
export declare function getIsDisabled(props: ButtonDisabledTypeProps): boolean;
|
|
43
|
-
export declare function getButtonType(props: ButtonTypeProps): number;
|
|
44
|
-
export {};
|
|
1
|
+
import { MappedEnum, RequireOnlyOne, PropsWithChildren } from '@helpers';
|
|
2
|
+
export declare const enum ButtonType {
|
|
3
|
+
basic = 1,
|
|
4
|
+
primary = 2,
|
|
5
|
+
destructive = 4,
|
|
6
|
+
destructivePrimary = 6,
|
|
7
|
+
outline = 8,
|
|
8
|
+
plain = 16,
|
|
9
|
+
subtle = 32,
|
|
10
|
+
plainSubtle = 48
|
|
11
|
+
}
|
|
12
|
+
declare const enum ButtonSize {
|
|
13
|
+
default = 1,
|
|
14
|
+
small = 2,
|
|
15
|
+
large = 4
|
|
16
|
+
}
|
|
17
|
+
declare const enum ButtonDisabledType {
|
|
18
|
+
enabled = 1,
|
|
19
|
+
disabled = 2
|
|
20
|
+
}
|
|
21
|
+
type ButtonTypes<T> = MappedEnum<typeof ButtonType, T>;
|
|
22
|
+
type ButtonSizes<T> = MappedEnum<typeof ButtonSize, T>;
|
|
23
|
+
type ButtonDisabledTypes<T> = MappedEnum<typeof ButtonDisabledType, T>;
|
|
24
|
+
export type ButtonTypeProps = Partial<ButtonTypes<boolean>> & PropsWithChildren;
|
|
25
|
+
export type ButtonSizeProps = Partial<RequireOnlyOne<ButtonSizes<boolean>>> & PropsWithChildren;
|
|
26
|
+
export type ButtonDisabledTypeProps = Partial<RequireOnlyOne<ButtonDisabledTypes<boolean>>> & PropsWithChildren;
|
|
27
|
+
export declare function getBackgroundColorByType(type: ButtonType): string;
|
|
28
|
+
export declare function getBackgroundColorHoverByType(type: ButtonType): string;
|
|
29
|
+
export declare function getTextDecorationHoverByType(type: ButtonType): string;
|
|
30
|
+
export declare function getBackgroundColorDisabledByType(type: ButtonType): string;
|
|
31
|
+
export declare function getBackgroundColorPressedByType(type: ButtonType): string;
|
|
32
|
+
export declare function getTextColorByType(type: ButtonType): string;
|
|
33
|
+
export declare function getIconColorByType(type: ButtonType): string;
|
|
34
|
+
export declare function getTextColorOnHoverByType(type: ButtonType): string;
|
|
35
|
+
export declare function getIconColorOnHoverByType(type: ButtonType): string;
|
|
36
|
+
export declare function getBorderByType(type: ButtonType): string;
|
|
37
|
+
export declare function getBorderDisabledByType(type: ButtonType): string;
|
|
38
|
+
export declare function getPaddingBySize(props: ButtonSizeProps): string;
|
|
39
|
+
export declare function getPaddingByType(type: ButtonType): string;
|
|
40
|
+
export declare function getTextColorIfDisabled(props: ButtonDisabledTypeProps): string;
|
|
41
|
+
export declare function getCursor(props: ButtonDisabledTypeProps): string;
|
|
42
|
+
export declare function getIsDisabled(props: ButtonDisabledTypeProps): boolean;
|
|
43
|
+
export declare function getButtonType(props: ButtonTypeProps): number;
|
|
44
|
+
export {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { FC } from '@helpers';
|
|
2
|
-
import { ButtonSizeProps, ButtonTypeProps } from './button-flags';
|
|
3
|
-
import { ComponentType } from 'react';
|
|
4
|
-
interface IButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
5
|
-
loading?: boolean;
|
|
6
|
-
IconPrefix?: ComponentType;
|
|
7
|
-
IconSuffix?: ComponentType;
|
|
8
|
-
children?: string;
|
|
9
|
-
subtle?: boolean;
|
|
10
|
-
}
|
|
11
|
-
export declare const Button: FC<IButtonProps & ButtonTypeProps & ButtonSizeProps>;
|
|
12
|
-
export {};
|
|
1
|
+
import { FC } from '@helpers';
|
|
2
|
+
import { ButtonSizeProps, ButtonTypeProps } from './button-flags';
|
|
3
|
+
import { ComponentType } from 'react';
|
|
4
|
+
interface IButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
5
|
+
loading?: boolean;
|
|
6
|
+
IconPrefix?: ComponentType;
|
|
7
|
+
IconSuffix?: ComponentType;
|
|
8
|
+
children?: string;
|
|
9
|
+
subtle?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const Button: FC<IButtonProps & ButtonTypeProps & ButtonSizeProps>;
|
|
12
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './button';
|
|
1
|
+
export * from './button';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './avatar';
|
|
2
|
-
export * from './button';
|
|
3
|
-
export * from './input-checkbox';
|
|
4
|
-
export * from './simple-menu';
|
|
1
|
+
export * from './avatar';
|
|
2
|
+
export * from './button';
|
|
3
|
+
export * from './input-checkbox';
|
|
4
|
+
export * from './simple-menu';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './input-checkbox';
|
|
1
|
+
export * from './input-checkbox';
|