@prokodo/ui 0.1.15 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +187 -26
- package/NOTICE +24 -0
- package/README.md +32 -302
- package/dist/components/RTE/RTE.css +180 -68
- package/dist/components/RTE/RTE.module.css +180 -68
- package/dist/components/RTE/RTE.module.scss.js +10 -0
- package/dist/components/RTE/RTE.view.js +5 -1
- package/dist/components/accordion/Accordion.css +120 -67
- package/dist/components/accordion/Accordion.module.css +120 -67
- package/dist/components/accordion/Accordion.module.scss.js +12 -5
- package/dist/components/accordion/Accordion.view.js +3 -3
- package/dist/components/autocomplete/Autocomplete.css +111 -95
- package/dist/components/autocomplete/Autocomplete.module.css +111 -95
- package/dist/components/autocomplete/Autocomplete.module.scss.js +11 -4
- package/dist/components/autocomplete/Autocomplete.view.js +3 -1
- package/dist/components/avatar/Avatar.css +11 -8
- package/dist/components/avatar/Avatar.module.css +11 -8
- package/dist/components/avatar/Avatar.module.scss.js +1 -0
- package/dist/components/avatar/Avatar.view.js +5 -5
- package/dist/components/button/Button.client.js +12 -16
- package/dist/components/button/Button.css +85 -137
- package/dist/components/button/Button.module.css +85 -137
- package/dist/components/button/Button.module.scss.js +15 -19
- package/dist/components/button/Button.view.js +6 -2
- package/dist/components/calendly/Calendly.css +132 -0
- package/dist/components/calendly/Calendly.module.css +132 -0
- package/dist/components/calendly/Calendly.module.scss.js +6 -0
- package/dist/components/calendly/Calendly.view.js +12 -6
- package/dist/components/card/Card.client.js +6 -1
- package/dist/components/card/Card.css +67 -32
- package/dist/components/card/Card.module.css +67 -32
- package/dist/components/card/Card.module.scss.js +8 -2
- package/dist/components/card/Card.view.js +3 -3
- package/dist/components/carousel/Carousel.client.js +2 -4
- package/dist/components/carousel/Carousel.css +8 -4
- package/dist/components/carousel/Carousel.module.css +8 -4
- package/dist/components/checkbox/Checkbox.css +100 -79
- package/dist/components/checkbox/Checkbox.module.css +100 -79
- package/dist/components/checkbox/Checkbox.module.scss.js +11 -4
- package/dist/components/checkbox/Checkbox.view.js +3 -1
- package/dist/components/checkbox-group/CheckboxGroup.css +39 -6
- package/dist/components/checkbox-group/CheckboxGroup.module.css +39 -6
- package/dist/components/checkbox-group/CheckboxGroup.module.scss.js +8 -0
- package/dist/components/checkbox-group/CheckboxGroup.view.js +3 -1
- package/dist/components/chip/Chip.css +185 -61
- package/dist/components/chip/Chip.module.css +185 -61
- package/dist/components/chip/Chip.module.scss.js +13 -17
- package/dist/components/chip/Chip.view.js +3 -4
- package/dist/components/datePicker/DatePicker.client.js +211 -66
- package/dist/components/datePicker/DatePicker.css +940 -0
- package/dist/components/datePicker/DatePicker.module.css +940 -0
- package/dist/components/datePicker/DatePicker.module.scss.js +62 -0
- package/dist/components/datePicker/DatePicker.server.js +31 -1
- package/dist/components/datePicker/DatePicker.utils.js +103 -0
- package/dist/components/datePicker/DatePicker.view.js +113 -41
- package/dist/components/datePicker/DatePickerDialog.view.js +291 -0
- package/dist/components/dialog/Dialog.css +107 -132
- package/dist/components/dialog/Dialog.module.css +107 -132
- package/dist/components/dialog/Dialog.module.scss.js +13 -8
- package/dist/components/drawer/Drawer.css +8 -8
- package/dist/components/drawer/Drawer.module.css +8 -8
- package/dist/components/dynamic-list/DynamicList.css +20 -12
- package/dist/components/dynamic-list/DynamicList.module.css +20 -12
- package/dist/components/dynamic-list/DynamicList.module.scss.js +1 -0
- package/dist/components/dynamic-list/DynamicList.view.js +78 -46
- package/dist/components/form/Form.view.js +3 -3
- package/dist/components/form/FormField.client.js +51 -2
- package/dist/components/form/FormField.server.js +10 -4
- package/dist/components/form/FormResponse.js +2 -2
- package/dist/components/grid/Grid.css +1 -1
- package/dist/components/grid/Grid.module.css +1 -1
- package/dist/components/headline/Headline.css +16 -16
- package/dist/components/headline/Headline.js +5 -6
- package/dist/components/headline/Headline.module.css +16 -16
- package/dist/components/headline/Headline.module.scss.js +1 -1
- package/dist/components/headline/Headline.variants.js +4 -1
- package/dist/components/icon/Icon.css +14 -14
- package/dist/components/icon/Icon.module.css +14 -14
- package/dist/components/image/Image.css +4 -3
- package/dist/components/image/Image.module.css +4 -3
- package/dist/components/image-text/ImageText.css +43 -14
- package/dist/components/image-text/ImageText.js +61 -53
- package/dist/components/image-text/ImageText.module.css +43 -14
- package/dist/components/image-text/ImageText.module.scss.js +11 -2
- package/dist/components/input/Input.css +197 -115
- package/dist/components/input/Input.module.css +197 -115
- package/dist/components/input/Input.module.scss.js +19 -3
- package/dist/components/input/Input.view.js +87 -57
- package/dist/components/inputOTP/InputOTP.client.js +165 -0
- package/dist/components/inputOTP/InputOTP.css +155 -7
- package/dist/components/inputOTP/InputOTP.js +10 -195
- package/dist/components/inputOTP/InputOTP.lazy.js +12 -0
- package/dist/components/inputOTP/InputOTP.module.css +155 -7
- package/dist/components/inputOTP/InputOTP.module.scss.js +14 -0
- package/dist/components/inputOTP/InputOTP.server.js +32 -0
- package/dist/components/inputOTP/InputOTP.view.js +117 -0
- package/dist/components/label/Label.css +33 -14
- package/dist/components/label/Label.js +37 -35
- package/dist/components/label/Label.module.css +33 -14
- package/dist/components/label/Label.module.scss.js +9 -2
- package/dist/components/link/Link.css +13 -13
- package/dist/components/link/Link.module.css +13 -13
- package/dist/components/link/Link.view.js +14 -12
- package/dist/components/list/List.css +71 -32
- package/dist/components/list/List.js +25 -8
- package/dist/components/list/List.module.css +71 -32
- package/dist/components/list/List.module.scss.js +1 -1
- package/dist/components/loading/Loading.view.js +22 -2
- package/dist/components/lottie/Lottie.css +16 -0
- package/dist/components/lottie/Lottie.module.css +16 -0
- package/dist/components/lottie/Lottie.module.scss.js +6 -2
- package/dist/components/map/Map.css +130 -0
- package/dist/components/map/Map.js +5 -2
- package/dist/components/map/Map.module.css +130 -0
- package/dist/components/map/Map.module.scss.js +6 -0
- package/dist/components/pagination/Pagination.css +127 -11
- package/dist/components/pagination/Pagination.module.css +127 -11
- package/dist/components/pagination/Pagination.module.scss.js +12 -4
- package/dist/components/pagination/Pagination.view.js +13 -1
- package/dist/components/post-item/PostItem.css +16 -16
- package/dist/components/post-item/PostItem.module.css +16 -16
- package/dist/components/post-item/PostItem.view.js +14 -5
- package/dist/components/post-teaser/PostTeaser.css +13 -13
- package/dist/components/post-teaser/PostTeaser.module.css +13 -13
- package/dist/components/post-teaser/PostTeaser.view.js +10 -3
- package/dist/components/post-widget/PostWidget.css +6 -8
- package/dist/components/post-widget/PostWidget.module.css +6 -8
- package/dist/components/post-widget/PostWidget.view.js +12 -5
- package/dist/components/post-widget-carousel/PostWidgetCarousel.css +7 -7
- package/dist/components/post-widget-carousel/PostWidgetCarousel.module.css +7 -7
- package/dist/components/post-widget-carousel/PostWidgetCarousel.view.js +30 -13
- package/dist/components/progressBar/ProgressBar.css +4 -4
- package/dist/components/progressBar/ProgressBar.module.css +4 -4
- package/dist/components/progressBar/ProgressBar.view.js +2 -2
- package/dist/components/quote/Quote.css +21 -6
- package/dist/components/quote/Quote.js +5 -5
- package/dist/components/quote/Quote.module.css +21 -6
- package/dist/components/quote/Quote.module.scss.js +5 -0
- package/dist/components/rating/Rating.css +34 -21
- package/dist/components/rating/Rating.module.css +34 -21
- package/dist/components/rating/Rating.module.scss.js +8 -0
- package/dist/components/rating/Rating.view.js +4 -2
- package/dist/components/rich-text/RichText.client.js +3 -3
- package/dist/components/rich-text/RichText.css +47 -31
- package/dist/components/rich-text/RichText.module.css +47 -31
- package/dist/components/rich-text/RichText.server.js +1 -1
- package/dist/components/select/Select.client.js +154 -1
- package/dist/components/select/Select.css +542 -221
- package/dist/components/select/Select.module.css +542 -221
- package/dist/components/select/Select.module.scss.js +57 -14
- package/dist/components/select/Select.view.js +40 -14
- package/dist/components/sidenav/SideNav.client.js +24 -1
- package/dist/components/sidenav/SideNav.css +89 -21
- package/dist/components/sidenav/SideNav.module.css +89 -21
- package/dist/components/sidenav/SideNav.module.scss.js +6 -1
- package/dist/components/sidenav/SideNav.view.js +69 -14
- package/dist/components/skeleton/Skeleton.css +7 -7
- package/dist/components/skeleton/Skeleton.module.css +7 -7
- package/dist/components/slider/Slider.css +177 -112
- package/dist/components/slider/Slider.module.css +177 -112
- package/dist/components/slider/Slider.module.scss.js +11 -2
- package/dist/components/slider/Slider.view.js +113 -101
- package/dist/components/snackbar/Snackbar.css +125 -64
- package/dist/components/snackbar/Snackbar.module.css +125 -64
- package/dist/components/snackbar/Snackbar.module.scss.js +11 -13
- package/dist/components/snackbar/Snackbar.view.js +2 -2
- package/dist/components/stepper/Stepper.client.js +21 -6
- package/dist/components/stepper/Stepper.css +46 -11
- package/dist/components/stepper/Stepper.module.css +46 -11
- package/dist/components/stepper/Stepper.module.scss.js +7 -0
- package/dist/components/stepper/Stepper.server.js +2 -0
- package/dist/components/stepper/Stepper.view.js +6 -1
- package/dist/components/switch/Switch.css +108 -84
- package/dist/components/switch/Switch.module.css +108 -84
- package/dist/components/switch/Switch.module.scss.js +14 -12
- package/dist/components/switch/Switch.view.js +9 -8
- package/dist/components/table/Table.css +19 -14
- package/dist/components/table/Table.module.css +19 -14
- package/dist/components/tabs/Tabs.css +53 -27
- package/dist/components/tabs/Tabs.module.css +53 -27
- package/dist/components/tabs/Tabs.module.scss.js +7 -2
- package/dist/components/tabs/Tabs.view.js +4 -2
- package/dist/components/teaser/Teaser.css +5 -5
- package/dist/components/teaser/Teaser.js +4 -4
- package/dist/components/teaser/Teaser.module.css +5 -5
- package/dist/components/tooltip/Tooltip.client.js +14 -4
- package/dist/components/tooltip/Tooltip.css +46 -9
- package/dist/components/tooltip/Tooltip.module.css +46 -9
- package/dist/components/tooltip/Tooltip.module.scss.js +5 -1
- package/dist/components/tooltip/Tooltip.view.js +6 -1
- package/dist/constants/project.js +1 -1
- package/dist/theme.css +3269 -1588
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/components/RTE/RTE.d.ts +5 -0
- package/dist/types/components/RTE/RTE.lazy.d.ts +5 -0
- package/dist/types/components/RTE/RTE.view.d.ts +1 -1
- package/dist/types/components/accordion/Accordion.d.ts +1 -1
- package/dist/types/components/accordion/Accordion.lazy.d.ts +1 -1
- package/dist/types/components/accordion/Accordion.model.d.ts +1 -1
- package/dist/types/components/accordion/Accordion.view.d.ts +1 -1
- package/dist/types/components/autocomplete/Autocomplete.model.d.ts +2 -0
- package/dist/types/components/autocomplete/Autocomplete.view.d.ts +1 -1
- package/dist/types/components/avatar/Avatar.d.ts +1 -1
- package/dist/types/components/avatar/Avatar.lazy.d.ts +1 -1
- package/dist/types/components/avatar/Avatar.model.d.ts +1 -1
- package/dist/types/components/avatar/Avatar.view.d.ts +1 -1
- package/dist/types/components/calendly/Calendly.view.d.ts +1 -1
- package/dist/types/components/card/Card.model.d.ts +1 -1
- package/dist/types/components/card/Card.view.d.ts +1 -1
- package/dist/types/components/checkbox/Checkbox.d.ts +1 -0
- package/dist/types/components/checkbox/Checkbox.lazy.d.ts +1 -0
- package/dist/types/components/checkbox/Checkbox.model.d.ts +2 -0
- package/dist/types/components/checkbox/Checkbox.view.d.ts +1 -1
- package/dist/types/components/checkbox-group/CheckboxGroup.model.d.ts +2 -0
- package/dist/types/components/checkbox-group/CheckboxGroup.view.d.ts +1 -1
- package/dist/types/components/datePicker/DatePicker.model.d.ts +70 -1
- package/dist/types/components/datePicker/DatePicker.utils.d.ts +10 -0
- package/dist/types/components/datePicker/DatePicker.view.d.ts +7 -4
- package/dist/types/components/datePicker/DatePickerDialog.view.d.ts +4 -0
- package/dist/types/components/dynamic-list/DynamicList.model.d.ts +2 -0
- package/dist/types/components/dynamic-list/DynamicList.view.d.ts +1 -1
- package/dist/types/components/form/Form.d.ts +1 -1
- package/dist/types/components/form/Form.lazy.d.ts +1 -1
- package/dist/types/components/form/Form.model.d.ts +19 -4
- package/dist/types/components/form/FormField.client.d.ts +2 -2
- package/dist/types/components/form/FormField.d.ts +1 -1
- package/dist/types/components/form/FormField.lazy.d.ts +1 -1
- package/dist/types/components/form/FormField.server.d.ts +2 -2
- package/dist/types/components/headline/Headline.model.d.ts +1 -1
- package/dist/types/components/input/Input.model.d.ts +8 -1
- package/dist/types/components/input/Input.view.d.ts +1 -1
- package/dist/types/components/inputOTP/InputOTP.client.d.ts +4 -0
- package/dist/types/components/inputOTP/InputOTP.d.ts +10 -3
- package/dist/types/components/inputOTP/InputOTP.lazy.d.ts +11 -0
- package/dist/types/components/inputOTP/InputOTP.model.d.ts +10 -0
- package/dist/types/components/inputOTP/InputOTP.server.d.ts +3 -0
- package/dist/types/components/inputOTP/InputOTP.view.d.ts +3 -0
- package/dist/types/components/inputOTP/index.d.ts +1 -1
- package/dist/types/components/label/Label.model.d.ts +2 -0
- package/dist/types/components/link/Link.model.d.ts +1 -1
- package/dist/types/components/link/Link.view.d.ts +1 -1
- package/dist/types/components/list/List.d.ts +1 -1
- package/dist/types/components/list/List.model.d.ts +14 -5
- package/dist/types/components/list/index.d.ts +1 -1
- package/dist/types/components/loading/Loading.model.d.ts +2 -0
- package/dist/types/components/loading/index.d.ts +1 -1
- package/dist/types/components/pagination/Pagination.model.d.ts +2 -0
- package/dist/types/components/pagination/Pagination.view.d.ts +1 -1
- package/dist/types/components/post-item/PostItem.model.d.ts +2 -1
- package/dist/types/components/post-teaser/PostTeaser.model.d.ts +2 -1
- package/dist/types/components/post-widget/PostWidget.view.d.ts +1 -1
- package/dist/types/components/progressBar/ProgressBar.d.ts +1 -1
- package/dist/types/components/progressBar/ProgressBar.lazy.d.ts +1 -1
- package/dist/types/components/progressBar/ProgressBar.model.d.ts +3 -2
- package/dist/types/components/progressBar/ProgressBar.view.d.ts +1 -1
- package/dist/types/components/progressBar/index.d.ts +1 -1
- package/dist/types/components/quote/Quote.model.d.ts +1 -1
- package/dist/types/components/rating/Rating.model.d.ts +2 -0
- package/dist/types/components/rich-text/RichText.client.d.ts +1 -1
- package/dist/types/components/rich-text/RichText.d.ts +1 -1
- package/dist/types/components/rich-text/RichText.lazy.d.ts +1 -1
- package/dist/types/components/rich-text/RichText.model.d.ts +1 -1
- package/dist/types/components/select/Select.model.d.ts +2 -0
- package/dist/types/components/select/Select.view.d.ts +1 -1
- package/dist/types/components/sidenav/SideNav.client.d.ts +1 -1
- package/dist/types/components/sidenav/SideNav.model.d.ts +16 -2
- package/dist/types/components/sidenav/SideNav.view.d.ts +1 -1
- package/dist/types/components/slider/Slider.model.d.ts +2 -0
- package/dist/types/components/snackbar/Snackbar.model.d.ts +3 -2
- package/dist/types/components/snackbar/Snackbar.view.d.ts +3 -2
- package/dist/types/components/snackbar/index.d.ts +1 -1
- package/dist/types/components/stepper/Stepper.d.ts +1 -0
- package/dist/types/components/stepper/Stepper.lazy.d.ts +1 -0
- package/dist/types/components/stepper/Stepper.model.d.ts +3 -0
- package/dist/types/components/stepper/Stepper.server.d.ts +1 -1
- package/dist/types/components/switch/Switch.d.ts +2 -2
- package/dist/types/components/switch/Switch.lazy.d.ts +2 -2
- package/dist/types/components/switch/Switch.model.d.ts +3 -4
- package/dist/types/components/tabs/Tabs.model.d.ts +2 -0
- package/dist/types/components/tabs/Tabs.view.d.ts +1 -1
- package/dist/types/components/teaser/Teaser.model.d.ts +1 -1
- package/dist/types/components/tooltip/Tooltip.model.d.ts +2 -0
- package/package.json +37 -22
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { LinkViewProps } from "./Link.model";
|
|
2
2
|
import type { JSX } from "react";
|
|
3
|
-
export declare function LinkView({
|
|
3
|
+
export declare function LinkView({ color, href, children, className, style, target, itemProp, hasBackground, ariaLabel, LinkTag, hasHandlers, onClick, BaseLinkComponent, linkComponent, ...rest }: LinkViewProps): JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type JSX } from "react";
|
|
2
2
|
import type { ListProps } from "./List.model";
|
|
3
|
-
export declare function List({ type,
|
|
3
|
+
export declare function List({ type, color, className, options, items, classNameDesc, ...props }: ListProps): JSX.Element;
|
|
4
4
|
export declare namespace List {
|
|
5
5
|
var displayName: string;
|
|
6
6
|
}
|
|
@@ -16,7 +16,7 @@ export type ListItemTitleNode = {
|
|
|
16
16
|
export type ListCardItemProps = (ListItemTitle | ListItemTitleNode) & {
|
|
17
17
|
desc?: string | ReactNode;
|
|
18
18
|
icon?: IconName | ReactNode;
|
|
19
|
-
|
|
19
|
+
color?: ListVariant;
|
|
20
20
|
iconProps?: IconProps;
|
|
21
21
|
redirect?: LinkProps;
|
|
22
22
|
innerClassName?: string;
|
|
@@ -26,7 +26,7 @@ export type ListDefaultItemProps = (ListItemTitle | ListItemTitleNode) & {
|
|
|
26
26
|
desc?: string | ReactNode;
|
|
27
27
|
className?: string;
|
|
28
28
|
icon?: IconName | ReactNode;
|
|
29
|
-
|
|
29
|
+
color?: ListVariant;
|
|
30
30
|
redirect?: LinkProps;
|
|
31
31
|
onClick?: (e?: ListDefaultItemProps) => void;
|
|
32
32
|
};
|
|
@@ -36,7 +36,16 @@ export type ListDefaultOptions = {
|
|
|
36
36
|
export type ListItemProps = ListDefaultItemProps | ListCardItemProps;
|
|
37
37
|
export type ListDefaultProps = HTMLAttributes<HTMLUListElement> & {
|
|
38
38
|
type?: "default";
|
|
39
|
-
|
|
39
|
+
color?: ListVariant;
|
|
40
|
+
className?: string;
|
|
41
|
+
classNameDesc?: string;
|
|
42
|
+
options?: ListDefaultOptions;
|
|
43
|
+
items: ListDefaultItemProps[];
|
|
44
|
+
onClick?: () => void;
|
|
45
|
+
};
|
|
46
|
+
export type ListIconProps = HTMLAttributes<HTMLUListElement> & {
|
|
47
|
+
type: "icon";
|
|
48
|
+
color?: ListVariant;
|
|
40
49
|
className?: string;
|
|
41
50
|
classNameDesc?: string;
|
|
42
51
|
options?: ListDefaultOptions;
|
|
@@ -45,11 +54,11 @@ export type ListDefaultProps = HTMLAttributes<HTMLUListElement> & {
|
|
|
45
54
|
};
|
|
46
55
|
export type ListCardProps = HTMLAttributes<HTMLUListElement> & {
|
|
47
56
|
type?: "card";
|
|
48
|
-
|
|
57
|
+
color?: ListVariant;
|
|
49
58
|
className?: string;
|
|
50
59
|
classNameDesc?: string;
|
|
51
60
|
options?: undefined;
|
|
52
61
|
items: ListCardItemProps[];
|
|
53
62
|
onClick?: () => void;
|
|
54
63
|
};
|
|
55
|
-
export type ListProps = ListDefaultProps | ListCardProps;
|
|
64
|
+
export type ListProps = ListDefaultProps | ListIconProps | ListCardProps;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from "./List";
|
|
2
|
-
export type { ListProps, ListCardItemProps, ListCardProps, ListDefaultItemProps, ListDefaultOptions, ListDefaultProps, ListItemProps, ListType, ListVariant, } from "./List.model";
|
|
2
|
+
export type { ListProps, ListCardItemProps, ListCardProps, ListDefaultItemProps, ListDefaultOptions, ListDefaultProps, ListIconProps, ListItemProps, ListType, ListVariant, } from "./List.model";
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
export type LoadingSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
2
|
+
export type LoadingColor = "inherit" | "primary" | "secondary" | "success" | "error" | "info" | "warning" | "white";
|
|
2
3
|
export type LoadingBaseProps = {
|
|
3
4
|
className?: string;
|
|
4
5
|
style?: React.CSSProperties;
|
|
5
6
|
size?: LoadingSize;
|
|
6
7
|
ariaLabel?: string;
|
|
7
8
|
reducedMotion?: boolean;
|
|
9
|
+
color?: LoadingColor;
|
|
8
10
|
};
|
|
9
11
|
export type LoadingOverlayProps = LoadingBaseProps & {
|
|
10
12
|
show?: boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { Loading } from "./Loading";
|
|
2
|
-
export type { LoadingProps, LoadingOverlayProps, LoadingSize, } from "./Loading.model";
|
|
2
|
+
export type { LoadingProps, LoadingOverlayProps, LoadingSize, LoadingColor, } from "./Loading.model";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export type PaginationColor = "primary" | "secondary" | "success" | "error" | "info" | "warning";
|
|
1
2
|
export type PaginationTranslations = {
|
|
2
3
|
pagination?: string;
|
|
3
4
|
prev?: string;
|
|
@@ -12,6 +13,7 @@ export type PaginationProps = {
|
|
|
12
13
|
totalPages: number;
|
|
13
14
|
disabled?: boolean;
|
|
14
15
|
isPending?: boolean;
|
|
16
|
+
color?: PaginationColor;
|
|
15
17
|
onPrev?: () => void;
|
|
16
18
|
onNext?: () => void;
|
|
17
19
|
onPageChange?: PaginationPageChangeHandler;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { PaginationProps } from "./Pagination.model";
|
|
2
2
|
import type { JSX } from "react";
|
|
3
|
-
export declare function PaginationView({ className, page, totalPages, disabled, isPending, siblingCount, boundaryCount, onPrev, onNext, onPageChange, readOnly, translations: t, }: PaginationProps): JSX.Element | null;
|
|
3
|
+
export declare function PaginationView({ className, page, totalPages, disabled, isPending, color, siblingCount, boundaryCount, onPrev, onNext, onPageChange, readOnly, translations: t, }: PaginationProps): JSX.Element | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ButtonProps } from "../button";
|
|
2
2
|
import type { CardProps } from "../card";
|
|
3
|
-
import type { HeadlineProps } from "../headline";
|
|
3
|
+
import type { HeadlineProps, HeadlineVariant } from "../headline";
|
|
4
4
|
import type { ImageProps } from "../image";
|
|
5
5
|
import type { PostItemAuthorProps } from "./PostItemAuthor.model";
|
|
6
6
|
export type PostItemHeadline = {
|
|
@@ -42,6 +42,7 @@ export type PostItemPropsBase = {
|
|
|
42
42
|
className?: string;
|
|
43
43
|
classes?: PostItemClasses;
|
|
44
44
|
componentsProps?: PostItemComponentsProps;
|
|
45
|
+
color?: HeadlineVariant;
|
|
45
46
|
wordCount?: number;
|
|
46
47
|
readCount?: number;
|
|
47
48
|
title: PostItemHeadline;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { CardProps } from "../card";
|
|
2
2
|
import type { ChipProps } from "../chip";
|
|
3
|
-
import type { HeadlineProps } from "../headline";
|
|
3
|
+
import type { HeadlineProps, HeadlineVariant } from "../headline";
|
|
4
4
|
import type { IconProps } from "../icon";
|
|
5
5
|
import type { ImageProps } from "../image";
|
|
6
6
|
import type { LinkProps } from "../link";
|
|
@@ -50,6 +50,7 @@ export type PostTeaserPropsBase = {
|
|
|
50
50
|
className?: string;
|
|
51
51
|
classes?: PostTeaserClasses;
|
|
52
52
|
componentsProps?: PostTeaserComponentsProps;
|
|
53
|
+
color?: HeadlineVariant;
|
|
53
54
|
readCount?: number;
|
|
54
55
|
wordCount?: number;
|
|
55
56
|
title: PostTeaserHeadline;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { PostWidgetProps } from "./PostWidget.model";
|
|
2
2
|
import type { JSX } from "react";
|
|
3
|
-
export declare function PostWidgetView({ fullWidth, className, title, listClassName, contentClassName, items, classes, componentsProps, structuredData, ...rest }: PostWidgetProps): JSX.Element;
|
|
3
|
+
export declare function PostWidgetView({ fullWidth, className, title, listClassName, contentClassName, items, classes, componentsProps, structuredData, color, ...rest }: PostWidgetProps): JSX.Element;
|
|
@@ -3,7 +3,7 @@ export declare const ProgressBar: import("react").ComponentType<{
|
|
|
3
3
|
value?: number;
|
|
4
4
|
label?: string;
|
|
5
5
|
hideLabel?: boolean;
|
|
6
|
-
|
|
6
|
+
color?: import("./ProgressBar.model").ProgressBarColor;
|
|
7
7
|
infinity?: boolean;
|
|
8
8
|
animated?: boolean;
|
|
9
9
|
className?: string;
|
|
@@ -3,7 +3,7 @@ declare const _default: import("react").ComponentType<{
|
|
|
3
3
|
value?: number;
|
|
4
4
|
label?: string;
|
|
5
5
|
hideLabel?: boolean;
|
|
6
|
-
|
|
6
|
+
color?: import("./ProgressBar.model").ProgressBarColor;
|
|
7
7
|
infinity?: boolean;
|
|
8
8
|
animated?: boolean;
|
|
9
9
|
className?: string;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import type { Variants } from "@/types/variants";
|
|
2
2
|
import type { HTMLAttributes } from "react";
|
|
3
|
-
export type
|
|
3
|
+
export type ProgressBarColor = Omit<Variants, "white">;
|
|
4
|
+
export type ProgressBarVariant = ProgressBarColor;
|
|
4
5
|
export type ProgressBarProps = {
|
|
5
6
|
id: string;
|
|
6
7
|
value?: number;
|
|
7
8
|
label?: string;
|
|
8
9
|
hideLabel?: boolean;
|
|
9
|
-
|
|
10
|
+
color?: ProgressBarColor;
|
|
10
11
|
infinity?: boolean;
|
|
11
12
|
animated?: boolean;
|
|
12
13
|
className?: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ProgressBarViewProps } from "./ProgressBar.model";
|
|
2
2
|
import type { JSX } from "react";
|
|
3
|
-
export declare function ProgressBarView({ id, value, label, hideLabel, infinity,
|
|
3
|
+
export declare function ProgressBarView({ id, value, label, hideLabel, infinity, color, animated, className, ...domRest }: ProgressBarViewProps): JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from "./ProgressBar";
|
|
2
|
-
export type { ProgressBarProps } from "./ProgressBar.model";
|
|
2
|
+
export type { ProgressBarProps, ProgressBarColor, ProgressBarVariant, } from "./ProgressBar.model";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { LabelProps } from "../label";
|
|
2
|
+
import type { Variants } from "@/types/variants";
|
|
2
3
|
import type { Ref, FocusEvent, MouseEvent } from "react";
|
|
3
4
|
export type RatingValue = number | string;
|
|
4
5
|
export type RatingChangeEvent = {
|
|
@@ -29,6 +30,7 @@ export type RatingProps = {
|
|
|
29
30
|
readOnly?: boolean;
|
|
30
31
|
required?: boolean;
|
|
31
32
|
fullWidth?: boolean;
|
|
33
|
+
color?: Variants;
|
|
32
34
|
helperText?: string;
|
|
33
35
|
errorText?: string;
|
|
34
36
|
errorTranslations?: RatingErrorTranslations;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type JSX } from "react";
|
|
2
2
|
import type { RichTextProps } from "./RichText.model";
|
|
3
|
-
export declare function RichTextClient({ children, animated, animationProps,
|
|
3
|
+
export declare function RichTextClient({ children, animated, animationProps, color, schema, itemProp, linkComponent, className, overrideParagraph, codeTheme, linkPolicy, ...props }: RichTextProps): JSX.Element;
|
|
4
4
|
export declare namespace RichTextClient {
|
|
5
5
|
var displayName: string;
|
|
6
6
|
}
|
|
@@ -2,7 +2,7 @@ export declare const RichText: import("react").ComponentType<{
|
|
|
2
2
|
children: import("react").ReactNode;
|
|
3
3
|
animated?: boolean;
|
|
4
4
|
animationProps?: Omit<import("../animatedText").AnimatedTextProps, "children">;
|
|
5
|
-
|
|
5
|
+
color?: import("../../types/variants").Variants;
|
|
6
6
|
schema?: import("../../types/schema").Schema;
|
|
7
7
|
itemProp?: string;
|
|
8
8
|
linkComponent?: import("../link").LinkProps["linkComponent"];
|
|
@@ -2,7 +2,7 @@ declare const _default: import("react").ComponentType<{
|
|
|
2
2
|
children: import("react").ReactNode;
|
|
3
3
|
animated?: boolean;
|
|
4
4
|
animationProps?: Omit<import("../animatedText").AnimatedTextProps, "children">;
|
|
5
|
-
|
|
5
|
+
color?: import("../../types/variants").Variants;
|
|
6
6
|
schema?: import("../../types/schema").Schema;
|
|
7
7
|
itemProp?: string;
|
|
8
8
|
linkComponent?: import("../link").LinkProps["linkComponent"];
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { LabelProps } from "../label";
|
|
2
|
+
import type { Variants } from "@/types/variants";
|
|
2
3
|
import type { ChangeEvent, RefObject, ReactNode, Ref, MouseEventHandler, KeyboardEventHandler, CSSProperties, JSX } from "react";
|
|
3
4
|
export type SelectEvent = {
|
|
4
5
|
target: {
|
|
@@ -25,6 +26,7 @@ export interface SelectProps<Value extends string = string> {
|
|
|
25
26
|
onChange?: (e: SelectEvent, v: SelectValue) => void;
|
|
26
27
|
label: string;
|
|
27
28
|
hideLabel?: boolean;
|
|
29
|
+
color?: Variants;
|
|
28
30
|
iconVisible?: boolean;
|
|
29
31
|
helperText?: string;
|
|
30
32
|
errorText?: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type JSX } from "react";
|
|
2
2
|
import type { SelectViewProps } from "./Select.model";
|
|
3
|
-
export declare function SelectView<Value extends string = string>({ id, disabled, name, label, fullWidth, hideLabel, iconVisible, placeholder, helperText, errorText, className, fieldClassName, labelProps, required, multiple, value, items, _clientState, }: SelectViewProps<Value>): JSX.Element | null;
|
|
3
|
+
export declare function SelectView<Value extends string = string>({ id, disabled, name, label, fullWidth, hideLabel, iconVisible, placeholder, helperText, errorText, className, fieldClassName, labelProps, required, multiple, value, items, color, _clientState, }: SelectViewProps<Value>): JSX.Element | null;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type JSX } from "react";
|
|
2
2
|
import type { SideNavProps } from "./SideNav.model";
|
|
3
|
-
export default function SidebarClient({ items, onChange, ...props }: SideNavProps): JSX.Element;
|
|
3
|
+
export default function SidebarClient({ items, sections, onChange, ...props }: SideNavProps): JSX.Element;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import type { HeadlineProps } from "../headline";
|
|
1
2
|
import type { IconProps, IconName } from "../icon";
|
|
2
3
|
import type { LinkProps } from "../link";
|
|
3
|
-
import type { ReactNode } from "react";
|
|
4
|
+
import type { ComponentType, HTMLAttributes, ReactNode } from "react";
|
|
4
5
|
export type SideNavItem = {
|
|
5
6
|
active?: boolean;
|
|
6
7
|
label: string;
|
|
@@ -8,8 +9,19 @@ export type SideNavItem = {
|
|
|
8
9
|
redirect?: LinkProps;
|
|
9
10
|
onClick?: (e: SideNavItem) => void;
|
|
10
11
|
};
|
|
11
|
-
export type
|
|
12
|
+
export type SideNavSection = {
|
|
13
|
+
headline?: string;
|
|
14
|
+
description?: string;
|
|
12
15
|
items: SideNavItem[];
|
|
16
|
+
headlineComponent?: ComponentType<{
|
|
17
|
+
className?: string;
|
|
18
|
+
}>;
|
|
19
|
+
headlineProps?: Omit<HeadlineProps, "children">;
|
|
20
|
+
descriptionProps?: Omit<HTMLAttributes<HTMLParagraphElement>, "children">;
|
|
21
|
+
};
|
|
22
|
+
export type SideNavProps = {
|
|
23
|
+
items?: SideNavItem[];
|
|
24
|
+
sections?: SideNavSection[];
|
|
13
25
|
initialCollapsed?: boolean;
|
|
14
26
|
collapsedIcon?: IconName;
|
|
15
27
|
collapsedLabel?: string;
|
|
@@ -20,6 +32,8 @@ export type SideNavProps = {
|
|
|
20
32
|
className?: string;
|
|
21
33
|
renderFooter?: () => ReactNode;
|
|
22
34
|
onChange?: (e: SideNavItem) => void;
|
|
35
|
+
headlineProps?: Omit<HeadlineProps, "children">;
|
|
36
|
+
descriptionProps?: Omit<HTMLAttributes<HTMLParagraphElement>, "children">;
|
|
23
37
|
};
|
|
24
38
|
export type SideNavViewProps = SideNavProps & {
|
|
25
39
|
collapsed: boolean;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { SideNavViewProps } from "./SideNav.model";
|
|
2
2
|
import type { JSX } from "react";
|
|
3
|
-
export default function SideNavView({ items, collapsed, collapsedLabel, collapsedIcon, unCollapsedLabel, unCollapsedIcon, iconProps, onToggle, interactive, ariaLabel, className, renderFooter, }: SideNavViewProps): JSX.Element;
|
|
3
|
+
export default function SideNavView({ items, sections, collapsed, collapsedLabel, collapsedIcon, unCollapsedLabel, unCollapsedIcon, iconProps, onToggle, interactive, ariaLabel, className, renderFooter, headlineProps: globalHeadlineProps, descriptionProps: globalDescriptionProps, }: SideNavViewProps): JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { LabelProps } from "../label";
|
|
2
|
+
import type { Variants } from "@/types/variants";
|
|
2
3
|
import type { HTMLAttributes, FocusEvent, ChangeEvent } from "react";
|
|
3
4
|
export interface SliderMark {
|
|
4
5
|
value: number;
|
|
@@ -24,6 +25,7 @@ export interface SliderProps {
|
|
|
24
25
|
onBlur?: (e: FocusEvent<HTMLInputElement>) => void;
|
|
25
26
|
onChange?: (e: React.ChangeEvent<HTMLInputElement>, value: number) => void;
|
|
26
27
|
className?: string;
|
|
28
|
+
color?: Variants;
|
|
27
29
|
snap?: "none" | "step" | "marks";
|
|
28
30
|
}
|
|
29
31
|
export interface SliderViewProps extends SliderProps {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { IconProps } from "../icon";
|
|
2
2
|
import type { HTMLAttributes, ReactNode } from "react";
|
|
3
|
-
export type
|
|
3
|
+
export type SnackbarColor = "default" | "success" | "error" | "warning" | "info";
|
|
4
|
+
export type SnackbarVariant = SnackbarColor;
|
|
4
5
|
export type SnackbarAnchorOrigin = {
|
|
5
6
|
vertical: "top" | "bottom";
|
|
6
7
|
horizontal: "left" | "center" | "right";
|
|
@@ -11,7 +12,7 @@ export interface SnackbarProps {
|
|
|
11
12
|
message: ReactNode;
|
|
12
13
|
open?: boolean;
|
|
13
14
|
autoHideDuration?: number;
|
|
14
|
-
|
|
15
|
+
color?: SnackbarColor;
|
|
15
16
|
anchorOrigin?: SnackbarAnchorOrigin;
|
|
16
17
|
action?: ReactNode;
|
|
17
18
|
closeable?: boolean;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { SnackbarProps, SnackbarCloseHandler } from "./Snackbar.model";
|
|
2
2
|
import type { JSX } from "react";
|
|
3
|
-
export interface SnackbarViewProps extends Omit<SnackbarProps, "open"> {
|
|
3
|
+
export interface SnackbarViewProps extends Omit<SnackbarProps, "open" | "color"> {
|
|
4
|
+
color?: SnackbarProps["color"];
|
|
4
5
|
onClose?: SnackbarCloseHandler;
|
|
5
6
|
readOnly?: boolean;
|
|
6
7
|
}
|
|
7
|
-
export declare function SnackbarView({ message,
|
|
8
|
+
export declare function SnackbarView({ message, color, anchorOrigin, action, closeable, elevation, className, onClose, readOnly, closeButtonProps, closeIconProps, }: SnackbarViewProps): JSX.Element;
|
|
@@ -2,5 +2,5 @@ export * from "./Snackbar";
|
|
|
2
2
|
export * from "./SnackbarProvider";
|
|
3
3
|
export { SnackbarCtx } from "./SnackbarProvider.context";
|
|
4
4
|
export { useSnackbar } from "./SnackbarProvider.client";
|
|
5
|
-
export type { SnackbarProps, SnackbarVariant, SnackbarAnchorOrigin, } from "./Snackbar.model";
|
|
5
|
+
export type { SnackbarProps, SnackbarColor, SnackbarVariant, SnackbarAnchorOrigin, } from "./Snackbar.model";
|
|
6
6
|
export type { SnackbarPayload, SnackbarContextValue, SnackbarProviderProps, } from "./SnackbarProvider.model";
|
|
@@ -6,6 +6,7 @@ export declare const Stepper: import("react").ComponentType<Omit<import("react")
|
|
|
6
6
|
onBlur?: (e: import("react").FocusEvent<HTMLDivElement>, index: number) => void;
|
|
7
7
|
initialStep?: number;
|
|
8
8
|
translations?: import("./Stepper.model").StepperTranslations;
|
|
9
|
+
color?: import("../../types/variants").Variants;
|
|
9
10
|
} & {
|
|
10
11
|
priority?: boolean;
|
|
11
12
|
}>;
|
|
@@ -6,6 +6,7 @@ declare const _default: import("react").ComponentType<Omit<import("react").HTMLA
|
|
|
6
6
|
onBlur?: (e: import("react").FocusEvent<HTMLDivElement>, index: number) => void;
|
|
7
7
|
initialStep?: number;
|
|
8
8
|
translations?: import("./Stepper.model").StepperTranslations;
|
|
9
|
+
color?: import("../../types/variants").Variants;
|
|
9
10
|
} & {
|
|
10
11
|
priority?: boolean;
|
|
11
12
|
}>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Variants } from "@/types/variants";
|
|
1
2
|
import type { Ref, RefObject, HTMLAttributes, KeyboardEvent, FocusEvent, MouseEvent } from "react";
|
|
2
3
|
export type StepperChangeEvent = MouseEvent<HTMLDivElement> | KeyboardEvent<HTMLDivElement>;
|
|
3
4
|
export type StepperRef = {
|
|
@@ -25,6 +26,7 @@ export type StepperProps = Omit<HTMLAttributes<HTMLOListElement>, "children" | "
|
|
|
25
26
|
onBlur?: (e: FocusEvent<HTMLDivElement>, index: number) => void;
|
|
26
27
|
initialStep?: number;
|
|
27
28
|
translations?: StepperTranslations;
|
|
29
|
+
color?: Variants;
|
|
28
30
|
};
|
|
29
31
|
export interface StepperViewProps extends Omit<StepperViewPropsCommon, "ref"> {
|
|
30
32
|
activeStep: number;
|
|
@@ -36,4 +38,5 @@ export interface StepperPropsCommon {
|
|
|
36
38
|
steps: Step[];
|
|
37
39
|
translations?: StepperTranslations;
|
|
38
40
|
className?: string;
|
|
41
|
+
color?: Variants;
|
|
39
42
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { StepperProps } from "./Stepper.model";
|
|
2
2
|
import type { JSX } from "react";
|
|
3
|
-
export default function StepperServer({ steps, initialStep, translations, className, ...rootProps }: StepperProps): JSX.Element;
|
|
3
|
+
export default function StepperServer({ steps, initialStep, translations, className, color, ...rootProps }: StepperProps): JSX.Element;
|
|
@@ -2,7 +2,7 @@ export declare const Switch: import("react").ComponentType<Omit<import("react").
|
|
|
2
2
|
name: string;
|
|
3
3
|
label?: string;
|
|
4
4
|
required?: boolean;
|
|
5
|
-
|
|
5
|
+
color?: import("./Switch.model").SwitchColor;
|
|
6
6
|
icon?: import("../icon").IconName;
|
|
7
7
|
checkedIcon?: import("../icon").IconName;
|
|
8
8
|
checked?: boolean;
|
|
@@ -11,7 +11,7 @@ export declare const Switch: import("react").ComponentType<Omit<import("react").
|
|
|
11
11
|
helperText?: string;
|
|
12
12
|
onChange?: (event: import("react").ChangeEvent<HTMLInputElement>, checked: boolean) => void;
|
|
13
13
|
className?: string;
|
|
14
|
-
labelProps?: Omit<import("
|
|
14
|
+
labelProps?: Omit<import("react").LabelHTMLAttributes<HTMLLabelElement>, "htmlFor" | "required">;
|
|
15
15
|
hideLabel?: boolean;
|
|
16
16
|
} & {
|
|
17
17
|
priority?: boolean;
|
|
@@ -2,7 +2,7 @@ declare const _default: import("react").ComponentType<Omit<import("react").HTMLA
|
|
|
2
2
|
name: string;
|
|
3
3
|
label?: string;
|
|
4
4
|
required?: boolean;
|
|
5
|
-
|
|
5
|
+
color?: import("./Switch.model").SwitchColor;
|
|
6
6
|
icon?: import("../icon").IconName;
|
|
7
7
|
checkedIcon?: import("../icon").IconName;
|
|
8
8
|
checked?: boolean;
|
|
@@ -11,7 +11,7 @@ declare const _default: import("react").ComponentType<Omit<import("react").HTMLA
|
|
|
11
11
|
helperText?: string;
|
|
12
12
|
onChange?: (event: import("react").ChangeEvent<HTMLInputElement>, checked: boolean) => void;
|
|
13
13
|
className?: string;
|
|
14
|
-
labelProps?: Omit<import("
|
|
14
|
+
labelProps?: Omit<import("react").LabelHTMLAttributes<HTMLLabelElement>, "htmlFor" | "required">;
|
|
15
15
|
hideLabel?: boolean;
|
|
16
16
|
} & {
|
|
17
17
|
priority?: boolean;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import type { IconName } from "../icon";
|
|
2
|
-
import type {
|
|
3
|
-
import type { ChangeEvent, HTMLAttributes, FocusEvent } from "react";
|
|
2
|
+
import type { ChangeEvent, HTMLAttributes, FocusEvent, LabelHTMLAttributes } from "react";
|
|
4
3
|
export type SwitchColor = "inherit" | "primary" | "secondary" | "success" | "error" | "info" | "warning";
|
|
5
4
|
export type SwitchProps = Omit<HTMLAttributes<HTMLInputElement>, "onChange"> & {
|
|
6
5
|
name: string;
|
|
7
6
|
label?: string;
|
|
8
7
|
required?: boolean;
|
|
9
|
-
|
|
8
|
+
color?: SwitchColor;
|
|
10
9
|
icon?: IconName;
|
|
11
10
|
checkedIcon?: IconName;
|
|
12
11
|
checked?: boolean;
|
|
@@ -15,7 +14,7 @@ export type SwitchProps = Omit<HTMLAttributes<HTMLInputElement>, "onChange"> & {
|
|
|
15
14
|
helperText?: string;
|
|
16
15
|
onChange?: (event: ChangeEvent<HTMLInputElement>, checked: boolean) => void;
|
|
17
16
|
className?: string;
|
|
18
|
-
labelProps?: Omit<
|
|
17
|
+
labelProps?: Omit<LabelHTMLAttributes<HTMLLabelElement>, "htmlFor" | "required">;
|
|
19
18
|
hideLabel?: boolean;
|
|
20
19
|
};
|
|
21
20
|
export interface SwitchViewProps extends SwitchProps {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ChipProps } from "../chip";
|
|
2
2
|
import type { KeyboardEvent, MouseEvent, ReactNode, RefObject } from "react";
|
|
3
3
|
export type TabsBadgeChipProps = Omit<ChipProps, "label">;
|
|
4
|
+
export type TabsColor = "primary" | "secondary" | "success" | "error" | "info" | "warning";
|
|
4
5
|
export type TabsItem<Value extends string = string> = {
|
|
5
6
|
value: Value;
|
|
6
7
|
label: ReactNode;
|
|
@@ -17,6 +18,7 @@ export type TabsChangeEvent<Value extends string = string> = {
|
|
|
17
18
|
export type TabsProps<Value extends string = string> = {
|
|
18
19
|
id: string;
|
|
19
20
|
ariaLabel?: string;
|
|
21
|
+
color?: TabsColor;
|
|
20
22
|
items: TabsItem<Value>[];
|
|
21
23
|
value?: Value;
|
|
22
24
|
defaultValue?: Value;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { TabsViewProps } from "./Tabs.model";
|
|
2
2
|
import type { JSX } from "react";
|
|
3
|
-
export declare function TabsView<Value extends string = string>({ id, ariaLabel, items, value, defaultValue, orientation, disabled, fullWidth, className, listClassName, tabClassName, panelsClassName, badgeChipProps, _clientState, }: TabsViewProps<Value>): JSX.Element | null;
|
|
3
|
+
export declare function TabsView<Value extends string = string>({ id, ariaLabel, items, value, defaultValue, color, orientation, disabled, fullWidth, className, listClassName, tabClassName, panelsClassName, badgeChipProps, _clientState, }: TabsViewProps<Value>): JSX.Element | null;
|
|
@@ -15,7 +15,7 @@ export type TeaserRedirect = LinkProps & {
|
|
|
15
15
|
export type TeaserAlign = "left" | "center" | "right";
|
|
16
16
|
export type TeaserProps = {
|
|
17
17
|
className?: string;
|
|
18
|
-
|
|
18
|
+
color?: TeaserVariant;
|
|
19
19
|
align?: TeaserAlign;
|
|
20
20
|
lineClamp?: boolean;
|
|
21
21
|
title: TeaserHeadline;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { HTMLAttributes, ReactElement, ReactNode } from "react";
|
|
2
2
|
export type TooltipAnchor = "element" | "pointer";
|
|
3
|
+
export type TooltipColor = "default" | "success" | "error" | "warning" | "info";
|
|
3
4
|
export type TooltipPlacement = "top" | "bottom" | "left" | "right";
|
|
4
5
|
export type TooltipOpenChangeEvent = (open: boolean) => void;
|
|
5
6
|
export type TooltipTriggerElement = ReactElement<HTMLAttributes<HTMLElement>>;
|
|
@@ -15,6 +16,7 @@ export type TooltipProps = {
|
|
|
15
16
|
zIndex?: number;
|
|
16
17
|
offset?: number;
|
|
17
18
|
mobileBreakpoint?: number;
|
|
19
|
+
color?: TooltipColor;
|
|
18
20
|
disabled?: boolean;
|
|
19
21
|
open?: boolean;
|
|
20
22
|
defaultOpen?: boolean;
|