@edvisor/product-language 0.11.111 → 0.11.113
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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,18 +1,18 @@
|
|
|
1
|
-
import { FC, Hex, PropsWithChildren } from '@helpers';
|
|
2
|
-
import { AlertLevelProps } from './alert-level-flags';
|
|
3
|
-
interface IAlertBannerProps extends PropsWithChildren {
|
|
4
|
-
dismissible?: boolean;
|
|
5
|
-
className?: string;
|
|
6
|
-
open?: boolean;
|
|
7
|
-
primaryButtonLabel?: string;
|
|
8
|
-
secondaryButtonLabel?: string;
|
|
9
|
-
onPrimaryAction?: () => void;
|
|
10
|
-
onSecondaryAction?: () => void;
|
|
11
|
-
onClose?: () => void;
|
|
12
|
-
icon?: FC<{
|
|
13
|
-
color: Hex;
|
|
14
|
-
}>;
|
|
15
|
-
}
|
|
16
|
-
export
|
|
17
|
-
export declare const AlertBanner: FC<AlertBannerProps>;
|
|
18
|
-
export {};
|
|
1
|
+
import { FC, Hex, PropsWithChildren } from '@helpers';
|
|
2
|
+
import { AlertLevelProps } from './alert-level-flags';
|
|
3
|
+
interface IAlertBannerProps extends PropsWithChildren {
|
|
4
|
+
dismissible?: boolean;
|
|
5
|
+
className?: string;
|
|
6
|
+
open?: boolean;
|
|
7
|
+
primaryButtonLabel?: string;
|
|
8
|
+
secondaryButtonLabel?: string;
|
|
9
|
+
onPrimaryAction?: () => void;
|
|
10
|
+
onSecondaryAction?: () => void;
|
|
11
|
+
onClose?: () => void;
|
|
12
|
+
icon?: FC<{
|
|
13
|
+
color: Hex;
|
|
14
|
+
}>;
|
|
15
|
+
}
|
|
16
|
+
export type AlertBannerProps = IAlertBannerProps & AlertLevelProps;
|
|
17
|
+
export declare const AlertBanner: FC<AlertBannerProps>;
|
|
18
|
+
export {};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { Hex, MappedEnum, RequireOnlyOne, PropsWithChildren } from '@helpers';
|
|
2
|
-
import { ComponentType } from 'react';
|
|
3
|
-
declare const enum AlertLevel {
|
|
4
|
-
neutral = 1,
|
|
5
|
-
info = 2,
|
|
6
|
-
success = 4,
|
|
7
|
-
warning = 8,
|
|
8
|
-
critical = 16
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export
|
|
12
|
-
export declare function getBackgroundColor(props: AlertLevelProps): Hex;
|
|
13
|
-
export declare function getBorderColor(props: AlertLevelProps): Hex;
|
|
14
|
-
export declare function getIcon(props: AlertLevelProps): {
|
|
15
|
-
icon: ComponentType;
|
|
16
|
-
color: Hex;
|
|
17
|
-
};
|
|
18
|
-
export {};
|
|
1
|
+
import { Hex, MappedEnum, RequireOnlyOne, PropsWithChildren } from '@helpers';
|
|
2
|
+
import { ComponentType } from 'react';
|
|
3
|
+
declare const enum AlertLevel {
|
|
4
|
+
neutral = 1,
|
|
5
|
+
info = 2,
|
|
6
|
+
success = 4,
|
|
7
|
+
warning = 8,
|
|
8
|
+
critical = 16
|
|
9
|
+
}
|
|
10
|
+
type AlertLevels<T> = MappedEnum<typeof AlertLevel, T>;
|
|
11
|
+
export type AlertLevelProps = Partial<RequireOnlyOne<AlertLevels<boolean>>> & PropsWithChildren;
|
|
12
|
+
export declare function getBackgroundColor(props: AlertLevelProps): Hex;
|
|
13
|
+
export declare function getBorderColor(props: AlertLevelProps): Hex;
|
|
14
|
+
export declare function getIcon(props: AlertLevelProps): {
|
|
15
|
+
icon: ComponentType;
|
|
16
|
+
color: Hex;
|
|
17
|
+
};
|
|
18
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './alert-banner';
|
|
1
|
+
export * from './alert-banner';
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Slot } from '@helpers';
|
|
3
|
-
interface IAutocompleteInputProps {
|
|
4
|
-
value: string;
|
|
5
|
-
onChange?: (value: string) => void;
|
|
6
|
-
children?: React.ReactNode;
|
|
7
|
-
trigger?: string | string[];
|
|
8
|
-
options?: string[] | Record<string, string[]>;
|
|
9
|
-
requestOnlyIfNoOptions?: boolean;
|
|
10
|
-
onRequestOptions?: (trigger: string) => void;
|
|
11
|
-
matchAny?: boolean;
|
|
12
|
-
maxOptions?: number;
|
|
13
|
-
minChars?: number;
|
|
14
|
-
offsetX?: number;
|
|
15
|
-
offsetY?: number;
|
|
16
|
-
className?: string;
|
|
17
|
-
multiLine?: boolean;
|
|
18
|
-
invalid?: boolean;
|
|
19
|
-
prefix?: string;
|
|
20
|
-
suffix?: string;
|
|
21
|
-
label?: string;
|
|
22
|
-
labelPosition?: string;
|
|
23
|
-
placeholder?: string;
|
|
24
|
-
disabled?: boolean;
|
|
25
|
-
required?: boolean;
|
|
26
|
-
}
|
|
27
|
-
declare class IconSlot extends Slot {
|
|
28
|
-
}
|
|
29
|
-
declare class ControlsSlot extends Slot {
|
|
30
|
-
}
|
|
31
|
-
export
|
|
32
|
-
Icon: typeof IconSlot;
|
|
33
|
-
Controls: typeof ControlsSlot;
|
|
34
|
-
};
|
|
35
|
-
export declare const AutocompleteInput: React.ForwardRefExoticComponent<IAutocompleteInputProps & React.RefAttributes<HTMLInputElement | HTMLTextAreaElement>> & {
|
|
36
|
-
Icon: typeof IconSlot;
|
|
37
|
-
Controls: typeof ControlsSlot;
|
|
38
|
-
};
|
|
39
|
-
export {};
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Slot } from '@helpers';
|
|
3
|
+
interface IAutocompleteInputProps {
|
|
4
|
+
value: string;
|
|
5
|
+
onChange?: (value: string) => void;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
trigger?: string | string[];
|
|
8
|
+
options?: string[] | Record<string, string[]>;
|
|
9
|
+
requestOnlyIfNoOptions?: boolean;
|
|
10
|
+
onRequestOptions?: (trigger: string) => void;
|
|
11
|
+
matchAny?: boolean;
|
|
12
|
+
maxOptions?: number;
|
|
13
|
+
minChars?: number;
|
|
14
|
+
offsetX?: number;
|
|
15
|
+
offsetY?: number;
|
|
16
|
+
className?: string;
|
|
17
|
+
multiLine?: boolean;
|
|
18
|
+
invalid?: boolean;
|
|
19
|
+
prefix?: string;
|
|
20
|
+
suffix?: string;
|
|
21
|
+
label?: string;
|
|
22
|
+
labelPosition?: string;
|
|
23
|
+
placeholder?: string;
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
required?: boolean;
|
|
26
|
+
}
|
|
27
|
+
declare class IconSlot extends Slot {
|
|
28
|
+
}
|
|
29
|
+
declare class ControlsSlot extends Slot {
|
|
30
|
+
}
|
|
31
|
+
export type AutocompleteInputSlots = {
|
|
32
|
+
Icon: typeof IconSlot;
|
|
33
|
+
Controls: typeof ControlsSlot;
|
|
34
|
+
};
|
|
35
|
+
export declare const AutocompleteInput: React.ForwardRefExoticComponent<IAutocompleteInputProps & React.RefAttributes<HTMLInputElement | HTMLTextAreaElement>> & {
|
|
36
|
+
Icon: typeof IconSlot;
|
|
37
|
+
Controls: typeof ControlsSlot;
|
|
38
|
+
};
|
|
39
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './autocomplete-input';
|
|
1
|
+
export * from './autocomplete-input';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { Hex, PropsWithChildren } from '@helpers';
|
|
2
|
-
declare const enum BadgeType {
|
|
3
|
-
neutral = 1,
|
|
4
|
-
info = 2,
|
|
5
|
-
success = 4,
|
|
6
|
-
warning = 8,
|
|
7
|
-
critical = 16
|
|
8
|
-
}
|
|
9
|
-
export
|
|
10
|
-
[K in Keys]-?: Required<Pick<T, K>> & Partial<Record<Exclude<Keys, K>, undefined>>;
|
|
11
|
-
}[Keys];
|
|
12
|
-
export
|
|
13
|
-
[key in keyof E]: T;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export
|
|
17
|
-
export declare function getColor(props: BadgeTypeProps): Hex;
|
|
18
|
-
export {};
|
|
1
|
+
import { Hex, PropsWithChildren } from '@helpers';
|
|
2
|
+
declare const enum BadgeType {
|
|
3
|
+
neutral = 1,
|
|
4
|
+
info = 2,
|
|
5
|
+
success = 4,
|
|
6
|
+
warning = 8,
|
|
7
|
+
critical = 16
|
|
8
|
+
}
|
|
9
|
+
export type RequireOnlyOne<T, Keys extends keyof T = keyof T> = Pick<T, Exclude<keyof T, Keys>> & {
|
|
10
|
+
[K in Keys]-?: Required<Pick<T, K>> & Partial<Record<Exclude<Keys, K>, undefined>>;
|
|
11
|
+
}[Keys];
|
|
12
|
+
export type MappedEnum<E, T> = {
|
|
13
|
+
[key in keyof E]: T;
|
|
14
|
+
};
|
|
15
|
+
type BadgeTypes<T> = MappedEnum<typeof BadgeType, T>;
|
|
16
|
+
export type BadgeTypeProps = Partial<RequireOnlyOne<BadgeTypes<boolean>>> & PropsWithChildren;
|
|
17
|
+
export declare function getColor(props: BadgeTypeProps): Hex;
|
|
18
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { BadgeTypeProps } from './badge-type-flags';
|
|
2
|
-
import { FC, PropsWithChildren } from '@helpers';
|
|
3
|
-
|
|
4
|
-
className?: string;
|
|
5
|
-
}>;
|
|
6
|
-
export declare const Badge: FC<IBadgeProps>;
|
|
7
|
-
export {};
|
|
1
|
+
import { BadgeTypeProps } from './badge-type-flags';
|
|
2
|
+
import { FC, PropsWithChildren } from '@helpers';
|
|
3
|
+
type IBadgeProps = BadgeTypeProps & PropsWithChildren<{
|
|
4
|
+
className?: string;
|
|
5
|
+
}>;
|
|
6
|
+
export declare const Badge: FC<IBadgeProps>;
|
|
7
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './badge';
|
|
1
|
+
export * from './badge';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/** this is the frame that is used to implement the Card component
|
|
2
|
-
* importantly it does not have any padding, which means it can be
|
|
3
|
-
* used to implement a broader range of components than just the card.
|
|
4
|
-
*
|
|
5
|
-
* We might use it to implement the AlertBanner, or put a table in it.
|
|
6
|
-
*/
|
|
7
|
-
export declare const CardFrame: import("styled-components").StyledComponent<"section", any, {}, never>;
|
|
1
|
+
/** this is the frame that is used to implement the Card component
|
|
2
|
+
* importantly it does not have any padding, which means it can be
|
|
3
|
+
* used to implement a broader range of components than just the card.
|
|
4
|
+
*
|
|
5
|
+
* We might use it to implement the AlertBanner, or put a table in it.
|
|
6
|
+
*/
|
|
7
|
+
export declare const CardFrame: import("styled-components").StyledComponent<"section", any, {}, never>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './card-frame';
|
|
1
|
+
export * from './card-frame';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { FC, PropsWithChildren } from '@helpers';
|
|
2
|
-
import { CardAlertBannerSlot, CardControlsSlot, CardHeadingActionSlot, CardSectionSlot } from './components';
|
|
3
|
-
import { HTMLAttributes } from 'react';
|
|
4
|
-
export interface ICardProps extends HTMLAttributes<HTMLDivElement>, PropsWithChildren {
|
|
5
|
-
heading?: string;
|
|
6
|
-
}
|
|
7
|
-
declare const SubComponents: {
|
|
8
|
-
Section: typeof CardSectionSlot;
|
|
9
|
-
Controls: typeof CardControlsSlot;
|
|
10
|
-
HeadingAction: typeof CardHeadingActionSlot;
|
|
11
|
-
AlertBanner: typeof CardAlertBannerSlot;
|
|
12
|
-
};
|
|
13
|
-
export declare const Card: FC<ICardProps, typeof SubComponents>;
|
|
14
|
-
export {};
|
|
1
|
+
import { FC, PropsWithChildren } from '@helpers';
|
|
2
|
+
import { CardAlertBannerSlot, CardControlsSlot, CardHeadingActionSlot, CardSectionSlot } from './components';
|
|
3
|
+
import { HTMLAttributes } from 'react';
|
|
4
|
+
export interface ICardProps extends HTMLAttributes<HTMLDivElement>, PropsWithChildren {
|
|
5
|
+
heading?: string;
|
|
6
|
+
}
|
|
7
|
+
declare const SubComponents: {
|
|
8
|
+
Section: typeof CardSectionSlot;
|
|
9
|
+
Controls: typeof CardControlsSlot;
|
|
10
|
+
HeadingAction: typeof CardHeadingActionSlot;
|
|
11
|
+
AlertBanner: typeof CardAlertBannerSlot;
|
|
12
|
+
};
|
|
13
|
+
export declare const Card: FC<ICardProps, typeof SubComponents>;
|
|
14
|
+
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
1
|
+
import { Slot } from '@helpers';
|
|
2
|
+
import { AlertBannerProps } from 'components/alert-banner';
|
|
3
|
+
export declare class CardAlertBannerSlot extends Slot<AlertBannerProps> {
|
|
4
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
1
|
+
import { Slot, PropsWithChildren } from '@helpers';
|
|
2
|
+
export declare class CardControlsSlot extends Slot<PropsWithChildren> {
|
|
3
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'react';
|
|
2
|
-
import { Slot, PropsWithChildren } from '@helpers';
|
|
3
|
-
export declare class CardHeadingActionSlot extends Slot {
|
|
4
|
-
}
|
|
5
|
-
interface ICardSectionProps extends HTMLAttributes<HTMLDivElement>, PropsWithChildren {
|
|
6
|
-
heading?: string;
|
|
7
|
-
}
|
|
8
|
-
export declare class CardSectionSlot extends Slot<ICardSectionProps> {
|
|
9
|
-
render(): JSX.Element;
|
|
10
|
-
}
|
|
11
|
-
export {};
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { Slot, PropsWithChildren } from '@helpers';
|
|
3
|
+
export declare class CardHeadingActionSlot extends Slot {
|
|
4
|
+
}
|
|
5
|
+
interface ICardSectionProps extends HTMLAttributes<HTMLDivElement>, PropsWithChildren {
|
|
6
|
+
heading?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class CardSectionSlot extends Slot<ICardSectionProps> {
|
|
9
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
}
|
|
11
|
+
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './card-alert-banner-slot';
|
|
2
|
-
export * from './card-controls-slot';
|
|
3
|
-
export * from './card-section-slot';
|
|
1
|
+
export * from './card-alert-banner-slot';
|
|
2
|
+
export * from './card-controls-slot';
|
|
3
|
+
export * from './card-section-slot';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './card';
|
|
2
|
-
export * from './molecules/left-right-card';
|
|
3
|
-
export * from './atoms';
|
|
1
|
+
export * from './card';
|
|
2
|
+
export * from './molecules/left-right-card';
|
|
3
|
+
export * from './atoms';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './left-right-card';
|
|
1
|
+
export * from './left-right-card';
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { FC, Slot } from '@helpers';
|
|
2
|
-
import { ICardProps } from '../card';
|
|
3
|
-
declare class Right extends Slot {
|
|
4
|
-
}
|
|
5
|
-
declare class Controls extends Slot {
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
Right: typeof Right;
|
|
9
|
-
Controls: typeof Controls;
|
|
10
|
-
};
|
|
11
|
-
interface ILeftRightCardProps extends ICardProps {
|
|
12
|
-
helpText?: string;
|
|
13
|
-
className?: string;
|
|
14
|
-
}
|
|
15
|
-
export declare const LeftRightCard: FC<ILeftRightCardProps, SubComponents>;
|
|
16
|
-
export {};
|
|
1
|
+
import { FC, Slot } from '@helpers';
|
|
2
|
+
import { ICardProps } from '../card';
|
|
3
|
+
declare class Right extends Slot {
|
|
4
|
+
}
|
|
5
|
+
declare class Controls extends Slot {
|
|
6
|
+
}
|
|
7
|
+
type SubComponents = {
|
|
8
|
+
Right: typeof Right;
|
|
9
|
+
Controls: typeof Controls;
|
|
10
|
+
};
|
|
11
|
+
interface ILeftRightCardProps extends ICardProps {
|
|
12
|
+
helpText?: string;
|
|
13
|
+
className?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const LeftRightCard: FC<ILeftRightCardProps, SubComponents>;
|
|
16
|
+
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { InputHTMLAttributes } from 'react';
|
|
2
|
-
import { FC } from '@helpers';
|
|
3
|
-
export interface ICheckboxProps {
|
|
4
|
-
disabled?: boolean;
|
|
5
|
-
checked?: boolean;
|
|
6
|
-
indeterminate?: boolean;
|
|
7
|
-
error?: boolean;
|
|
8
|
-
className?: string;
|
|
9
|
-
}
|
|
10
|
-
export
|
|
11
|
-
export declare const Checkbox: FC<IProps>;
|
|
1
|
+
import { InputHTMLAttributes } from 'react';
|
|
2
|
+
import { FC } from '@helpers';
|
|
3
|
+
export interface ICheckboxProps {
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
checked?: boolean;
|
|
6
|
+
indeterminate?: boolean;
|
|
7
|
+
error?: boolean;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
export type IProps = ICheckboxProps & InputHTMLAttributes<HTMLInputElement>;
|
|
11
|
+
export declare const Checkbox: FC<IProps>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export declare const getHoverStyles: (indeterminate: boolean) => import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<{
|
|
2
|
-
checked?: boolean
|
|
3
|
-
}, any>>;
|
|
4
|
-
export declare const getDisabledStyles: (indeterminate: boolean) => import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<{
|
|
5
|
-
checked?: boolean
|
|
6
|
-
}, any>>;
|
|
7
|
-
export declare const getDefaultStyles: (indeterminate: boolean) => import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<{
|
|
8
|
-
checked?: boolean
|
|
9
|
-
}, any>>;
|
|
10
|
-
export declare const getInvalidStyles: (indeterminate: boolean) => import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<{
|
|
11
|
-
checked?: boolean
|
|
12
|
-
}, any>>;
|
|
1
|
+
export declare const getHoverStyles: (indeterminate: boolean) => import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<{
|
|
2
|
+
checked?: boolean;
|
|
3
|
+
}, any>>;
|
|
4
|
+
export declare const getDisabledStyles: (indeterminate: boolean) => import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<{
|
|
5
|
+
checked?: boolean;
|
|
6
|
+
}, any>>;
|
|
7
|
+
export declare const getDefaultStyles: (indeterminate: boolean) => import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<{
|
|
8
|
+
checked?: boolean;
|
|
9
|
+
}, any>>;
|
|
10
|
+
export declare const getInvalidStyles: (indeterminate: boolean) => import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<{
|
|
11
|
+
checked?: boolean;
|
|
12
|
+
}, any>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './checkbox';
|
|
1
|
+
export * from './checkbox';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Calendar } from 'react-multi-date-picker';
|
|
2
|
-
/**
|
|
3
|
-
* For a reasonable description of the class names etc,
|
|
4
|
-
* @see https://shahabyazdi.github.io/react-multi-date-picker/classes-&-styles/
|
|
5
|
-
*/
|
|
6
|
-
export declare const CustomCalendar: import("styled-components").StyledComponent<typeof Calendar, any,
|
|
1
|
+
import { Calendar } from 'react-multi-date-picker';
|
|
2
|
+
/**
|
|
3
|
+
* For a reasonable description of the class names etc,
|
|
4
|
+
* @see https://shahabyazdi.github.io/react-multi-date-picker/classes-&-styles/
|
|
5
|
+
*/
|
|
6
|
+
export declare const CustomCalendar: import("styled-components").StyledComponent<typeof Calendar, any, import("@foundations").IBodyProps, never>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './custom-calendar';
|
|
1
|
+
export * from './custom-calendar';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { FC } from '@helpers';
|
|
2
|
-
import { IDatePickerSlots } from './helpers/date-picker-factory';
|
|
3
|
-
import { IDatePickerProps } from './date-picker';
|
|
4
|
-
/** Date picker implementation that handles utc dates.
|
|
5
|
-
*
|
|
6
|
-
* Useful when you want to keep the same date regardless of timezone offsets.
|
|
7
|
-
*
|
|
8
|
-
*/
|
|
9
|
-
export declare const DatePickerWithoutUTCOffset: FC<IDatePickerProps, IDatePickerSlots>;
|
|
1
|
+
import { FC } from '@helpers';
|
|
2
|
+
import { IDatePickerSlots } from './helpers/date-picker-factory';
|
|
3
|
+
import { IDatePickerProps } from './date-picker';
|
|
4
|
+
/** Date picker implementation that handles utc dates.
|
|
5
|
+
*
|
|
6
|
+
* Useful when you want to keep the same date regardless of timezone offsets.
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
export declare const DatePickerWithoutUTCOffset: FC<IDatePickerProps, IDatePickerSlots>;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { FC } from '@helpers';
|
|
2
|
-
import { IDatePickerProps as IBaseProps, IDatePickerSlots } from './helpers/date-picker-factory';
|
|
3
|
-
export
|
|
4
|
-
/** did you know, if you need a DatePicker that takes something other than
|
|
5
|
-
* string dates, you can use the datePickerFactory? Just supply it with
|
|
6
|
-
* functions to and from your date representation, and an "empty" value for
|
|
7
|
-
* your type.
|
|
8
|
-
*
|
|
9
|
-
* For example, here's one that takes native Date objects
|
|
10
|
-
* ```
|
|
11
|
-
export const DatePicker: FC<IBaseProps<Date>, IDatePickerSlots> = datePickerFactory({
|
|
12
|
-
toDate: (date) => date,
|
|
13
|
-
fromDate: (date) => date,
|
|
14
|
-
empty: (date) => date.getTime() === 0,
|
|
15
|
-
})
|
|
16
|
-
```
|
|
17
|
-
*
|
|
18
|
-
*/
|
|
19
|
-
export declare const DatePicker: FC<IDatePickerProps, IDatePickerSlots>;
|
|
1
|
+
import { FC } from '@helpers';
|
|
2
|
+
import { IDatePickerProps as IBaseProps, IDatePickerSlots } from './helpers/date-picker-factory';
|
|
3
|
+
export type IDatePickerProps = IBaseProps<string>;
|
|
4
|
+
/** did you know, if you need a DatePicker that takes something other than
|
|
5
|
+
* string dates, you can use the datePickerFactory? Just supply it with
|
|
6
|
+
* functions to and from your date representation, and an "empty" value for
|
|
7
|
+
* your type.
|
|
8
|
+
*
|
|
9
|
+
* For example, here's one that takes native Date objects
|
|
10
|
+
* ```
|
|
11
|
+
export const DatePicker: FC<IBaseProps<Date>, IDatePickerSlots> = datePickerFactory({
|
|
12
|
+
toDate: (date) => date,
|
|
13
|
+
fromDate: (date) => date,
|
|
14
|
+
empty: (date) => date.getTime() === 0,
|
|
15
|
+
})
|
|
16
|
+
```
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export declare const DatePicker: FC<IDatePickerProps, IDatePickerSlots>;
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { InputHTMLAttributes } from 'react';
|
|
2
|
-
import { FC, Slot, PropsWithChildren } from '@helpers';
|
|
3
|
-
export
|
|
4
|
-
date: T | undefined;
|
|
5
|
-
defaultFormatter: (date: T, format?: string) => string;
|
|
6
|
-
}) => string;
|
|
7
|
-
|
|
8
|
-
export
|
|
9
|
-
value?: T;
|
|
10
|
-
defaultValue?: T;
|
|
11
|
-
onChange?: (change: T) => void;
|
|
12
|
-
onClick?: () => void;
|
|
13
|
-
isAvailable?: (props: {
|
|
14
|
-
date: T;
|
|
15
|
-
isSameDate: (date: T, other: T) => boolean;
|
|
16
|
-
}) => boolean;
|
|
17
|
-
isOpen?: boolean;
|
|
18
|
-
defaultOpen?: boolean;
|
|
19
|
-
label?: string;
|
|
20
|
-
format?: string | DateFormatter<T>;
|
|
21
|
-
min?: T;
|
|
22
|
-
max?: T;
|
|
23
|
-
required?: boolean;
|
|
24
|
-
detachCalendar?: boolean;
|
|
25
|
-
repositioning?: boolean;
|
|
26
|
-
};
|
|
27
|
-
declare class ControlsSlot extends Slot {
|
|
28
|
-
}
|
|
29
|
-
export
|
|
30
|
-
Controls: typeof ControlsSlot;
|
|
31
|
-
};
|
|
32
|
-
export declare function datePickerFactory<T>({ fromDate, toDate, empty, displaysUTC, }: {
|
|
33
|
-
fromDate: (date: Date | undefined) => T;
|
|
34
|
-
toDate: (obj: T) => Date;
|
|
35
|
-
empty: (obj: T) => boolean;
|
|
36
|
-
displaysUTC?: boolean;
|
|
37
|
-
}): FC<IDatePickerProps<T>, IDatePickerSlots>;
|
|
38
|
-
export {};
|
|
1
|
+
import { InputHTMLAttributes } from 'react';
|
|
2
|
+
import { FC, Slot, PropsWithChildren } from '@helpers';
|
|
3
|
+
export type DateFormatter<T> = (props: {
|
|
4
|
+
date: T | undefined;
|
|
5
|
+
defaultFormatter: (date: T, format?: string) => string;
|
|
6
|
+
}) => string;
|
|
7
|
+
type HTMLProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'value' | 'defaultValue' | 'onChange' | 'onClick' | 'min' | 'max'>;
|
|
8
|
+
export type IDatePickerProps<T> = PropsWithChildren & HTMLProps & {
|
|
9
|
+
value?: T;
|
|
10
|
+
defaultValue?: T;
|
|
11
|
+
onChange?: (change: T) => void;
|
|
12
|
+
onClick?: () => void;
|
|
13
|
+
isAvailable?: (props: {
|
|
14
|
+
date: T;
|
|
15
|
+
isSameDate: (date: T, other: T) => boolean;
|
|
16
|
+
}) => boolean;
|
|
17
|
+
isOpen?: boolean;
|
|
18
|
+
defaultOpen?: boolean;
|
|
19
|
+
label?: string;
|
|
20
|
+
format?: string | DateFormatter<T>;
|
|
21
|
+
min?: T;
|
|
22
|
+
max?: T;
|
|
23
|
+
required?: boolean;
|
|
24
|
+
detachCalendar?: boolean;
|
|
25
|
+
repositioning?: boolean;
|
|
26
|
+
};
|
|
27
|
+
declare class ControlsSlot extends Slot {
|
|
28
|
+
}
|
|
29
|
+
export type IDatePickerSlots = {
|
|
30
|
+
Controls: typeof ControlsSlot;
|
|
31
|
+
};
|
|
32
|
+
export declare function datePickerFactory<T>({ fromDate, toDate, empty, displaysUTC, }: {
|
|
33
|
+
fromDate: (date: Date | undefined) => T;
|
|
34
|
+
toDate: (obj: T) => Date;
|
|
35
|
+
empty: (obj: T) => boolean;
|
|
36
|
+
displaysUTC?: boolean;
|
|
37
|
+
}): FC<IDatePickerProps<T>, IDatePickerSlots>;
|
|
38
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './date-picker';
|
|
2
|
-
export * from './date-picker-utc';
|
|
1
|
+
export * from './date-picker';
|
|
2
|
+
export * from './date-picker-utc';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { MappedEnum, RequireOnlyOne, PropsWithChildren } from '@helpers';
|
|
2
|
-
declare const enum DividerType {
|
|
3
|
-
default = 1,
|
|
4
|
-
subdued = 2
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export
|
|
8
|
-
export declare function getColor(props: DivideTypeProps): string;
|
|
9
|
-
export {};
|
|
1
|
+
import { MappedEnum, RequireOnlyOne, PropsWithChildren } from '@helpers';
|
|
2
|
+
declare const enum DividerType {
|
|
3
|
+
default = 1,
|
|
4
|
+
subdued = 2
|
|
5
|
+
}
|
|
6
|
+
type DividerTypes<T> = MappedEnum<typeof DividerType, T>;
|
|
7
|
+
export type DivideTypeProps = Partial<RequireOnlyOne<DividerTypes<boolean>>> & PropsWithChildren;
|
|
8
|
+
export declare function getColor(props: DivideTypeProps): string;
|
|
9
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { FC } from '@helpers';
|
|
2
|
-
import { DivideTypeProps } from './divider-type-flags';
|
|
3
|
-
|
|
4
|
-
className?: string;
|
|
5
|
-
} & DivideTypeProps;
|
|
6
|
-
export declare const Divider: FC<IProps>;
|
|
7
|
-
export {};
|
|
1
|
+
import { FC } from '@helpers';
|
|
2
|
+
import { DivideTypeProps } from './divider-type-flags';
|
|
3
|
+
type IProps = {
|
|
4
|
+
className?: string;
|
|
5
|
+
} & DivideTypeProps;
|
|
6
|
+
export declare const Divider: FC<IProps>;
|
|
7
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './divider';
|
|
1
|
+
export * from './divider';
|