@prokodo/ui 0.1.15 → 1.0.1
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
|
@@ -43,6 +43,7 @@ export declare const RTE: import("react").ComponentType<{
|
|
|
43
43
|
vocab?: string | undefined | undefined;
|
|
44
44
|
autoCorrect?: string | undefined | undefined;
|
|
45
45
|
autoSave?: string | undefined | undefined;
|
|
46
|
+
color?: import("../../types/variants").Variants | undefined;
|
|
46
47
|
itemProp?: string | undefined | undefined;
|
|
47
48
|
itemScope?: boolean | undefined | undefined;
|
|
48
49
|
itemType?: string | undefined | undefined;
|
|
@@ -323,6 +324,10 @@ export declare const RTE: import("react").ComponentType<{
|
|
|
323
324
|
hideLegend?: boolean | undefined;
|
|
324
325
|
minRows?: number | undefined;
|
|
325
326
|
maxRows?: number | undefined;
|
|
327
|
+
trailingIcon?: import("../icon").IconName | undefined;
|
|
328
|
+
trailingIconLabel?: string | undefined;
|
|
329
|
+
onTrailingIconClick?: (() => void) | undefined;
|
|
330
|
+
trailingIconButtonProps?: Omit<import("react").ButtonHTMLAttributes<HTMLButtonElement>, "type" | "onClick"> | undefined;
|
|
326
331
|
errorTranslations?: import("../input").InputErrorTranslations | undefined;
|
|
327
332
|
onValidate?: import("../input").InputValidateEvent | undefined;
|
|
328
333
|
} & {
|
|
@@ -43,6 +43,7 @@ declare const _default: import("react").ComponentType<{
|
|
|
43
43
|
vocab?: string | undefined | undefined;
|
|
44
44
|
autoCorrect?: string | undefined | undefined;
|
|
45
45
|
autoSave?: string | undefined | undefined;
|
|
46
|
+
color?: import("../../types/variants").Variants | undefined;
|
|
46
47
|
itemProp?: string | undefined | undefined;
|
|
47
48
|
itemScope?: boolean | undefined | undefined;
|
|
48
49
|
itemType?: string | undefined | undefined;
|
|
@@ -323,6 +324,10 @@ declare const _default: import("react").ComponentType<{
|
|
|
323
324
|
hideLegend?: boolean | undefined;
|
|
324
325
|
minRows?: number | undefined;
|
|
325
326
|
maxRows?: number | undefined;
|
|
327
|
+
trailingIcon?: import("../icon").IconName | undefined;
|
|
328
|
+
trailingIconLabel?: string | undefined;
|
|
329
|
+
onTrailingIconClick?: (() => void) | undefined;
|
|
330
|
+
trailingIconButtonProps?: Omit<import("react").ButtonHTMLAttributes<HTMLButtonElement>, "type" | "onClick"> | undefined;
|
|
326
331
|
errorTranslations?: import("../input").InputErrorTranslations | undefined;
|
|
327
332
|
onValidate?: import("../input").InputValidateEvent | undefined;
|
|
328
333
|
} & {
|
|
@@ -7,5 +7,5 @@ type RTEViewProps = RTEProps & {
|
|
|
7
7
|
showResize?: boolean;
|
|
8
8
|
onStartResize?: (e: MouseEvent<HTMLButtonElement>) => void;
|
|
9
9
|
};
|
|
10
|
-
export declare function RTEView({ name, value, disabled, readOnly, required, placeholder, maxLength, errorText, htmlValue, surfaceRef, mountRef, showResize, onStartResize, onChange, onValidate, errorTranslations, rteToolbar, rteOptions, ...rest }: RTEViewProps): JSX.Element;
|
|
10
|
+
export declare function RTEView({ name, value, disabled, readOnly, required, placeholder, maxLength, errorText, htmlValue, surfaceRef, mountRef, showResize, onStartResize, onChange, onValidate, errorTranslations, rteToolbar, rteOptions, color, ...rest }: RTEViewProps): JSX.Element;
|
|
11
11
|
export {};
|
|
@@ -5,7 +5,7 @@ export declare const Accordion: import("react").ComponentType<{
|
|
|
5
5
|
headerToggleClassName?: string;
|
|
6
6
|
expanded?: number | null;
|
|
7
7
|
className?: string;
|
|
8
|
-
|
|
8
|
+
color?: import("../../types/variants").Variants;
|
|
9
9
|
titleOptions?: import("../headline").HeadlineProps;
|
|
10
10
|
iconProps?: import("../icon").IconProps;
|
|
11
11
|
items: import("./Accordion.model").AccordionItem[];
|
|
@@ -5,7 +5,7 @@ declare const _default: import("react").ComponentType<{
|
|
|
5
5
|
headerToggleClassName?: string;
|
|
6
6
|
expanded?: number | null;
|
|
7
7
|
className?: string;
|
|
8
|
-
|
|
8
|
+
color?: import("../../types/variants").Variants;
|
|
9
9
|
titleOptions?: import("../headline").HeadlineProps;
|
|
10
10
|
iconProps?: import("../icon").IconProps;
|
|
11
11
|
items: import("./Accordion.model").AccordionItem[];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { AccordionViewProps } from "./Accordion.model";
|
|
2
2
|
import type { JSX } from "react";
|
|
3
|
-
export declare function AccordionView({ id, type, headerWrapperClassName, headerToggleClassName,
|
|
3
|
+
export declare function AccordionView({ id, type, headerWrapperClassName, headerToggleClassName, color, className, items, expandedIndex, onToggle, titleOptions, iconProps, ...domRest }: AccordionViewProps): JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { InputProps } from "../input";
|
|
2
|
+
import type { Variants } from "@/types/variants";
|
|
2
3
|
import type { KeyboardEventHandler } from "react";
|
|
3
4
|
type AutocompleteInputProps = Omit<Extract<InputProps, {
|
|
4
5
|
multiline?: false;
|
|
@@ -28,6 +29,7 @@ export type AutocompleteProps = {
|
|
|
28
29
|
required?: boolean;
|
|
29
30
|
disabled?: boolean;
|
|
30
31
|
fullWidth?: boolean;
|
|
32
|
+
color?: Variants;
|
|
31
33
|
readOnly?: boolean;
|
|
32
34
|
autoComplete?: string;
|
|
33
35
|
"aria-describedby"?: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { AutocompleteViewProps } from "./Autocomplete.model";
|
|
2
2
|
import type { JSX } from "react";
|
|
3
|
-
export declare function AutocompleteView({ id, name, label, placeholder, required, disabled, fullWidth, readOnly, autoComplete, "aria-describedby": ariaDescribedBy, "aria-labelledby": ariaLabelledBy, value, items, loading, loadingText, emptyText, minQueryLength, minQueryLengthText, className, inputClassName, listClassName, itemClassName, inputProps, _clientState, onChange, onSelect, }: AutocompleteViewProps): JSX.Element;
|
|
3
|
+
export declare function AutocompleteView({ id, name, label, placeholder, required, disabled, fullWidth, readOnly, autoComplete, "aria-describedby": ariaDescribedBy, "aria-labelledby": ariaLabelledBy, value, items, loading, loadingText, emptyText, minQueryLength, minQueryLengthText, className, inputClassName, listClassName, itemClassName, inputProps, color, _clientState, onChange, onSelect, }: AutocompleteViewProps): JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const Avatar: import("react").ComponentType<{
|
|
2
2
|
priority?: boolean;
|
|
3
|
-
|
|
3
|
+
color?: import("../../types/variants").Variants;
|
|
4
4
|
size?: import("./Avatar.model").AvatarSize;
|
|
5
5
|
image?: import("../image").ImageProps;
|
|
6
6
|
redirect?: import("../link").LinkProps;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const _default: import("react").ComponentType<{
|
|
2
2
|
priority?: boolean;
|
|
3
|
-
|
|
3
|
+
color?: import("../../types/variants").Variants;
|
|
4
4
|
size?: import("./Avatar.model").AvatarSize;
|
|
5
5
|
image?: import("../image").ImageProps;
|
|
6
6
|
redirect?: import("../link").LinkProps;
|
|
@@ -5,7 +5,7 @@ import type { ReactNode, HTMLAttributes } from "react";
|
|
|
5
5
|
export type AvatarSize = "xs" | "sm" | "md" | "lg" | "xl" | number;
|
|
6
6
|
export type AvatarProps = {
|
|
7
7
|
priority?: boolean;
|
|
8
|
-
|
|
8
|
+
color?: Variants;
|
|
9
9
|
size?: AvatarSize;
|
|
10
10
|
image?: ImageProps;
|
|
11
11
|
redirect?: LinkProps;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { AvatarProps } from "./Avatar.model";
|
|
2
2
|
import type { JSX } from "react";
|
|
3
|
-
export declare function AvatarView({ className,
|
|
3
|
+
export declare function AvatarView({ className, color, size, image, redirect, iconOverride, ...rest }: AvatarProps): JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { CalendlyProps } from "./Calendly.model";
|
|
2
2
|
import type { JSX } from "react";
|
|
3
|
-
export declare function CalendlyView({ animationProps, hideLoading, LoadingComponent, calendlyId: _calendlyId, ...rest }: CalendlyProps): JSX.Element;
|
|
3
|
+
export declare function CalendlyView({ animationProps, hideLoading, LoadingComponent, calendlyId: _calendlyId, className, ...rest }: CalendlyProps): JSX.Element;
|
|
@@ -12,7 +12,7 @@ export type CardBackgroundProps = {
|
|
|
12
12
|
} & Omit<ImageProps, "src" | "alt" | "width" | "height">;
|
|
13
13
|
export type CardProps = {
|
|
14
14
|
ref?: Ref<HTMLDivElement>;
|
|
15
|
-
|
|
15
|
+
color?: CardVariant;
|
|
16
16
|
loading?: boolean;
|
|
17
17
|
skeletonProps?: SkeletonProps;
|
|
18
18
|
highlight?: boolean;
|
|
@@ -2,7 +2,7 @@ import { type LinkProps } from "@/components/link";
|
|
|
2
2
|
import type { CardProps } from "./Card.model";
|
|
3
3
|
import type { AnimatedViewProps } from "@/components/animated/Animated.model";
|
|
4
4
|
import type { JSX } from "react";
|
|
5
|
-
export declare function CardView({ isClickable,
|
|
5
|
+
export declare function CardView({ isClickable, color, loading, skeletonProps, highlight, gradiant, gradiantClassName, enableShadow, animated, customAnimation, className, contentClassName, background, backgroundProps, children, redirect, role, tabIndex, animatedProps, onClick, onKeyDown, onMouseEnter, onMouseLeave, }: CardProps & {
|
|
6
6
|
role?: string;
|
|
7
7
|
tabIndex?: number;
|
|
8
8
|
animationProps?: AnimatedViewProps;
|
|
@@ -11,6 +11,7 @@ export declare const Checkbox: import("react").ComponentType<Omit<import("react"
|
|
|
11
11
|
showRequiredMark?: boolean;
|
|
12
12
|
disabled?: boolean;
|
|
13
13
|
variant?: import("./Checkbox.model").CheckboxVariant;
|
|
14
|
+
color?: import("../../types/variants").Variants;
|
|
14
15
|
onChange?: (event: import("react").ChangeEvent<HTMLInputElement>, checked: boolean) => void;
|
|
15
16
|
className?: string;
|
|
16
17
|
} & {
|
|
@@ -11,6 +11,7 @@ declare const _default: import("react").ComponentType<Omit<import("react").HTMLA
|
|
|
11
11
|
showRequiredMark?: boolean;
|
|
12
12
|
disabled?: boolean;
|
|
13
13
|
variant?: import("./Checkbox.model").CheckboxVariant;
|
|
14
|
+
color?: import("../../types/variants").Variants;
|
|
14
15
|
onChange?: (event: import("react").ChangeEvent<HTMLInputElement>, checked: boolean) => void;
|
|
15
16
|
className?: string;
|
|
16
17
|
} & {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { IconProps } from "@/components/icon";
|
|
2
|
+
import type { Variants } from "@/types/variants";
|
|
2
3
|
import type { ChangeEvent, HTMLAttributes, ReactNode } from "react";
|
|
3
4
|
export type CheckboxVariant = "plain" | "card";
|
|
4
5
|
export type CheckboxProps<T extends string = string> = Omit<HTMLAttributes<HTMLInputElement>, "onChange" | "title"> & {
|
|
@@ -14,6 +15,7 @@ export type CheckboxProps<T extends string = string> = Omit<HTMLAttributes<HTMLI
|
|
|
14
15
|
showRequiredMark?: boolean;
|
|
15
16
|
disabled?: boolean;
|
|
16
17
|
variant?: CheckboxVariant;
|
|
18
|
+
color?: Variants;
|
|
17
19
|
onChange?: (event: ChangeEvent<HTMLInputElement>, checked: boolean) => void;
|
|
18
20
|
className?: string;
|
|
19
21
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { CheckboxViewProps } from "./Checkbox.model";
|
|
2
2
|
import type { JSX } from "react";
|
|
3
|
-
export declare function CheckboxView<T extends string = string>({ className, name, value, title, description, icon, iconLabel, required, showRequiredMark, disabled, variant, isChecked, onChangeInternal, }: CheckboxViewProps<T>): JSX.Element;
|
|
3
|
+
export declare function CheckboxView<T extends string = string>({ className, name, value, title, description, icon, iconLabel, required, showRequiredMark, disabled, variant, color, isChecked, onChangeInternal, }: CheckboxViewProps<T>): JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { IconProps } from "@/components/icon";
|
|
2
|
+
import type { Variants } from "@/types/variants";
|
|
2
3
|
import type { HTMLAttributes } from "react";
|
|
3
4
|
export type CheckboxGroupOption<T extends string> = {
|
|
4
5
|
value: T;
|
|
@@ -29,6 +30,7 @@ export type CheckboxGroupProps<T extends string> = {
|
|
|
29
30
|
hiddenInputName?: string;
|
|
30
31
|
layout?: CheckboxGroupLayout;
|
|
31
32
|
variant?: CheckboxGroupVariant;
|
|
33
|
+
color?: Variants;
|
|
32
34
|
translations?: CheckboxGroupTranslations;
|
|
33
35
|
};
|
|
34
36
|
export type CheckboxGroupViewProps<T extends string> = CheckboxGroupProps<T> & {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { CheckboxGroupViewProps } from "./CheckboxGroup.model";
|
|
2
2
|
import type { JSX } from "react";
|
|
3
|
-
export declare function CheckboxGroupView<T extends string>({ ariaLabel, legend, hideLegend, legendProps, name, disabled, required, options, selectedValues, hiddenInputName, layout, variant, translations: t, isChecked, onToggle, }: CheckboxGroupViewProps<T>): JSX.Element | null;
|
|
3
|
+
export declare function CheckboxGroupView<T extends string>({ ariaLabel, legend, hideLegend, legendProps, name, disabled, required, options, selectedValues, hiddenInputName, layout, variant, color, translations: t, isChecked, onToggle, }: CheckboxGroupViewProps<T>): JSX.Element | null;
|
|
@@ -1,12 +1,67 @@
|
|
|
1
1
|
import type { InputProps } from "../input";
|
|
2
|
+
import type { IconName } from "@/components/icon";
|
|
3
|
+
import type { Variants } from "@/types/variants";
|
|
2
4
|
import type { Dayjs } from "dayjs";
|
|
5
|
+
import type { TouchEventHandler } from "react";
|
|
6
|
+
export type DatePickerViewMode = "days" | "months" | "years";
|
|
7
|
+
export interface CalendarDay {
|
|
8
|
+
date: Dayjs;
|
|
9
|
+
isCurrentMonth: boolean;
|
|
10
|
+
isToday: boolean;
|
|
11
|
+
isDisabled: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface DatePickerDialogBehavior {
|
|
14
|
+
isOpen: boolean;
|
|
15
|
+
viewMode: DatePickerViewMode;
|
|
16
|
+
viewingMonth: Dayjs;
|
|
17
|
+
selectedDate: Dayjs | null;
|
|
18
|
+
onToggle: () => void;
|
|
19
|
+
onPrevMonth: () => void;
|
|
20
|
+
onNextMonth: () => void;
|
|
21
|
+
onViewModeChange: (mode: DatePickerViewMode) => void;
|
|
22
|
+
onMonthSelect: (month: number) => void;
|
|
23
|
+
onYearSelect: (year: number) => void;
|
|
24
|
+
onDayClick: (day: Dayjs) => void;
|
|
25
|
+
onToday: () => void;
|
|
26
|
+
onClear: () => void;
|
|
27
|
+
onApply: () => void;
|
|
28
|
+
onTimeChange: (value: number, unit: "hour" | "minute") => void;
|
|
29
|
+
}
|
|
30
|
+
export interface DatePickerDialogCustomization {
|
|
31
|
+
prevIcon?: IconName;
|
|
32
|
+
nextIcon?: IconName;
|
|
33
|
+
prevAriaLabel?: string;
|
|
34
|
+
nextAriaLabel?: string;
|
|
35
|
+
weekdays?: readonly string[];
|
|
36
|
+
monthFormat?: string;
|
|
37
|
+
dayAriaFormat?: string;
|
|
38
|
+
todayLabel?: string;
|
|
39
|
+
clearLabel?: string;
|
|
40
|
+
applyLabel?: string;
|
|
41
|
+
timeLabel?: string;
|
|
42
|
+
closeIcon?: IconName;
|
|
43
|
+
closeLabel?: string;
|
|
44
|
+
dialogColor?: Variants;
|
|
45
|
+
}
|
|
46
|
+
export interface DatePickerDialogProps extends Omit<DatePickerDialogBehavior, "isOpen" | "onToggle">, DatePickerDialogCustomization {
|
|
47
|
+
name: string;
|
|
48
|
+
label: string;
|
|
49
|
+
withTime?: boolean;
|
|
50
|
+
minuteStep?: number;
|
|
51
|
+
minDate?: DatePickerValue;
|
|
52
|
+
maxDate?: DatePickerValue;
|
|
53
|
+
onClose?: () => void;
|
|
54
|
+
onDialogTouchStart?: TouchEventHandler<HTMLDivElement>;
|
|
55
|
+
onDialogTouchEnd?: TouchEventHandler<HTMLDivElement>;
|
|
56
|
+
}
|
|
3
57
|
export type DatePickerValue = Dayjs | string | null;
|
|
4
58
|
export type DatePickerErrorTranslations = {
|
|
5
59
|
required?: string;
|
|
6
60
|
minDate?: string;
|
|
7
61
|
maxDate?: string;
|
|
8
62
|
};
|
|
9
|
-
export interface DatePickerProps extends Omit<InputProps, "onChange" | "value" | "errorTranslations" | "type"> {
|
|
63
|
+
export interface DatePickerProps extends Omit<InputProps, "onChange" | "value" | "errorTranslations" | "type" | "color"> {
|
|
64
|
+
color?: Variants;
|
|
10
65
|
multiline?: false;
|
|
11
66
|
rows?: undefined;
|
|
12
67
|
minRows?: undefined;
|
|
@@ -24,4 +79,18 @@ export interface DatePickerProps extends Omit<InputProps, "onChange" | "value" |
|
|
|
24
79
|
withTime?: boolean;
|
|
25
80
|
format?: string;
|
|
26
81
|
minuteStep?: number;
|
|
82
|
+
prevIcon?: IconName;
|
|
83
|
+
nextIcon?: IconName;
|
|
84
|
+
prevAriaLabel?: string;
|
|
85
|
+
nextAriaLabel?: string;
|
|
86
|
+
weekdays?: readonly string[];
|
|
87
|
+
monthFormat?: string;
|
|
88
|
+
dayAriaFormat?: string;
|
|
89
|
+
todayLabel?: string;
|
|
90
|
+
clearLabel?: string;
|
|
91
|
+
applyLabel?: string;
|
|
92
|
+
timeLabel?: string;
|
|
93
|
+
closeIcon?: IconName;
|
|
94
|
+
closeLabel?: string;
|
|
95
|
+
dialogColor?: Variants;
|
|
27
96
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type Dayjs } from "dayjs";
|
|
2
|
+
import type { CalendarDay, DatePickerValue } from "./DatePicker.model";
|
|
3
|
+
export declare const WEEKDAYS: readonly ["Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"];
|
|
4
|
+
export declare const MONTHS_SHORT: readonly ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
|
|
5
|
+
export declare function buildCalendarGrid(viewingMonth: Dayjs, minDate?: DatePickerValue, maxDate?: DatePickerValue): CalendarDay[];
|
|
6
|
+
export declare function buildHours(): number[];
|
|
7
|
+
export declare function buildMinutes(step: number): number[];
|
|
8
|
+
export declare function pad2(n: number): string;
|
|
9
|
+
export declare function isMonthDisabled(month: number, year: number, minDate?: DatePickerValue, maxDate?: DatePickerValue): boolean;
|
|
10
|
+
export declare function isYearDisabled(year: number, minDate?: DatePickerValue, maxDate?: DatePickerValue): boolean;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import type { DatePickerProps } from "./DatePicker.model";
|
|
2
|
-
import type { JSX } from "react";
|
|
3
|
-
export
|
|
4
|
-
|
|
1
|
+
import type { DatePickerDialogBehavior, DatePickerProps } from "./DatePicker.model";
|
|
2
|
+
import type { JSX, TouchEventHandler } from "react";
|
|
3
|
+
export type { DatePickerDialogBehavior } from "./DatePicker.model";
|
|
4
|
+
export declare function DatePickerView({ name, label, helperText, errorText, format, placeholder, minDate, maxDate, withTime, minuteStep, color, required, prevIcon, nextIcon, prevAriaLabel, nextAriaLabel, weekdays, monthFormat, dayAriaFormat, todayLabel, clearLabel, applyLabel, timeLabel, closeIcon, closeLabel, dialogColor, isOpen, dialogPortalTarget, viewingMonth, selectedDate, onToggle, onPrevMonth, onNextMonth, onDayClick, onToday, onClear, onApply, onTimeChange, onDialogTouchStart, onDialogTouchEnd, viewMode, onViewModeChange, onMonthSelect, onYearSelect, }: Omit<DatePickerProps, "onChange" | "value"> & DatePickerDialogBehavior & {
|
|
5
|
+
dialogPortalTarget?: Element | null;
|
|
6
|
+
onDialogTouchStart?: TouchEventHandler<HTMLDivElement>;
|
|
7
|
+
onDialogTouchEnd?: TouchEventHandler<HTMLDivElement>;
|
|
5
8
|
}): JSX.Element;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { DatePickerDialogProps } from "./DatePicker.model";
|
|
2
|
+
import type { JSX } from "react";
|
|
3
|
+
export type { DatePickerDialogProps } from "./DatePicker.model";
|
|
4
|
+
export declare function DatePickerDialog({ name, label, withTime, minuteStep, selectedDate, viewingMonth, minDate, maxDate, prevIcon, nextIcon, prevAriaLabel, nextAriaLabel, weekdays, monthFormat: _monthFormat, dayAriaFormat, todayLabel, clearLabel, applyLabel, timeLabel, closeIcon, closeLabel, dialogColor, onPrevMonth, onNextMonth, onDayClick, onToday, onClear, onApply, onTimeChange, onClose, onDialogTouchStart, onDialogTouchEnd, viewMode, onViewModeChange, onMonthSelect, onYearSelect, }: DatePickerDialogProps): JSX.Element;
|
|
@@ -2,6 +2,7 @@ import type { ButtonProps } from "../button";
|
|
|
2
2
|
import type { InputProps } from "../input";
|
|
3
3
|
import type { LabelProps } from "../label";
|
|
4
4
|
import type { SelectProps } from "../select";
|
|
5
|
+
import type { Variants } from "@/types/variants";
|
|
5
6
|
import type { MouseEvent } from "react";
|
|
6
7
|
export type DynamicListFieldInput = Omit<InputProps, "id"> & {
|
|
7
8
|
fieldType?: "input";
|
|
@@ -27,6 +28,7 @@ export type DynamicListDefault = {
|
|
|
27
28
|
required?: boolean;
|
|
28
29
|
errorText?: string;
|
|
29
30
|
helperText?: string;
|
|
31
|
+
color?: Variants;
|
|
30
32
|
};
|
|
31
33
|
export type DynamicListPropsSingle = DynamicListDefault & {
|
|
32
34
|
fields: [DynamicListField];
|
|
@@ -6,5 +6,5 @@ type DynamicListViewProps = Omit<DynamicListProps, "onChange" | "buttonAddProps"
|
|
|
6
6
|
buttonDeleteProps?: Omit<ButtonProps, "title">;
|
|
7
7
|
readOnly?: boolean;
|
|
8
8
|
};
|
|
9
|
-
export declare function DynamicListView({ id, label, labelProps, disabled, required, className, classNameList, fields, value, buttonAddProps, buttonDeleteProps, name, errorText, helperText, }: DynamicListViewProps): ReactNode;
|
|
9
|
+
export declare function DynamicListView({ id, label, labelProps, disabled, required, className, classNameList, fields, value, buttonAddProps, buttonDeleteProps, name, errorText, helperText, color, }: DynamicListViewProps): ReactNode;
|
|
10
10
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const Form: import("react").ComponentType<{
|
|
2
2
|
label: string;
|
|
3
3
|
disabled?: boolean;
|
|
4
|
-
|
|
4
|
+
color?: import("./Form.model").FormVariants;
|
|
5
5
|
hideResponse?: boolean;
|
|
6
6
|
fields?: import("./Form.model").FormField[];
|
|
7
7
|
hideHeadline?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare const _default: import("react").ComponentType<{
|
|
2
2
|
label: string;
|
|
3
3
|
disabled?: boolean;
|
|
4
|
-
|
|
4
|
+
color?: import("./Form.model").FormVariants;
|
|
5
5
|
hideResponse?: boolean;
|
|
6
6
|
fields?: import("./Form.model").FormField[];
|
|
7
7
|
hideHeadline?: boolean;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import type { FormEvent, ReactElement, FormHTMLAttributes, HTMLAttributes, InputHTMLAttributes } from "react";
|
|
2
2
|
import type { ButtonProps } from "../button";
|
|
3
3
|
import type { HeadlineProps } from "../headline";
|
|
4
|
+
import { Autocomplete, type AutocompleteProps } from "../autocomplete";
|
|
5
|
+
import { Checkbox, type CheckboxProps } from "../checkbox";
|
|
6
|
+
import { CheckboxGroup, type CheckboxGroupProps } from "../checkbox-group";
|
|
4
7
|
import { DatePicker, type DatePickerProps, type DatePickerErrorTranslations } from "../datePicker";
|
|
5
8
|
import { DynamicList, type DynamicListProps } from "../dynamic-list";
|
|
6
9
|
import { Input, type InputProps, type InputErrorTranslations } from "../input";
|
|
@@ -11,7 +14,7 @@ import { Switch, type SwitchProps } from "../switch";
|
|
|
11
14
|
import { Rating, type RatingProps } from "../rating";
|
|
12
15
|
import type { FormFieldProps } from "./FormField.client";
|
|
13
16
|
export type FormVariants = "inherit" | "primary" | "secondary" | "success" | "error" | "info" | "warning";
|
|
14
|
-
export type FormFieldTypes = "input" | "select" | "switch" | "slider" | "date" | "dynamic-list" | "rating";
|
|
17
|
+
export type FormFieldTypes = "input" | "select" | "switch" | "slider" | "date" | "dynamic-list" | "rating" | "checkbox" | "checkbox-group" | "autocomplete";
|
|
15
18
|
export type FormFieldValue = string | boolean | string[] | Record<string, string>[] | undefined;
|
|
16
19
|
export type FormFieldCondition = {
|
|
17
20
|
fieldId: string;
|
|
@@ -20,6 +23,9 @@ export type FormFieldCondition = {
|
|
|
20
23
|
};
|
|
21
24
|
export type FormFieldOptionals = {
|
|
22
25
|
fieldType?: FormFieldTypes;
|
|
26
|
+
id?: string;
|
|
27
|
+
label?: string;
|
|
28
|
+
errorText?: string;
|
|
23
29
|
visible?: boolean;
|
|
24
30
|
conditions?: FormFieldCondition[];
|
|
25
31
|
value?: FormFieldValue;
|
|
@@ -45,7 +51,16 @@ export type FormFieldDynamicList = FormFieldOptionals & {
|
|
|
45
51
|
export type FormFieldRating = FormFieldOptionals & {
|
|
46
52
|
fieldType: "rating";
|
|
47
53
|
} & RatingProps;
|
|
48
|
-
export type
|
|
54
|
+
export type FormFieldCheckbox = FormFieldOptionals & {
|
|
55
|
+
fieldType: "checkbox";
|
|
56
|
+
} & Omit<CheckboxProps, "value">;
|
|
57
|
+
export type FormFieldCheckboxGroup = FormFieldOptionals & {
|
|
58
|
+
fieldType: "checkbox-group";
|
|
59
|
+
} & CheckboxGroupProps<string>;
|
|
60
|
+
export type FormFieldAutocomplete = FormFieldOptionals & {
|
|
61
|
+
fieldType: "autocomplete";
|
|
62
|
+
} & AutocompleteProps;
|
|
63
|
+
export type FormField = FormFieldInput | FormFieldSelect | FormFieldSwitch | FormFieldSlider | FormFieldDate | FormFieldDynamicList | FormFieldRating | FormFieldCheckbox | FormFieldCheckboxGroup | FormFieldAutocomplete;
|
|
49
64
|
export type FormMessagesErrors = {
|
|
50
65
|
[key: string]: string[];
|
|
51
66
|
};
|
|
@@ -63,7 +78,7 @@ export type FormFieldMessagesErrors = {
|
|
|
63
78
|
export type FormFieldMessages = {
|
|
64
79
|
errors?: FormFieldMessagesErrors;
|
|
65
80
|
};
|
|
66
|
-
export type FormAllowedChildren = ReactElement<typeof DatePicker> | ReactElement<typeof Input> | ReactElement<typeof InputOTP> | ReactElement<typeof Select> | ReactElement<typeof Slider> | ReactElement<typeof Switch> | ReactElement<typeof DynamicList> | ReactElement<typeof Rating>;
|
|
81
|
+
export type FormAllowedChildren = ReactElement<typeof Autocomplete> | ReactElement<typeof Checkbox> | ReactElement<typeof CheckboxGroup> | ReactElement<typeof DatePicker> | ReactElement<typeof Input> | ReactElement<typeof InputOTP> | ReactElement<typeof Select> | ReactElement<typeof Slider> | ReactElement<typeof Switch> | ReactElement<typeof DynamicList> | ReactElement<typeof Rating>;
|
|
67
82
|
export type ParentComponentProps = {
|
|
68
83
|
children: FormAllowedChildren | FormAllowedChildren[];
|
|
69
84
|
};
|
|
@@ -77,7 +92,7 @@ export type FormButton = Omit<ButtonProps, "title"> & {
|
|
|
77
92
|
export type FormProps = {
|
|
78
93
|
label: string;
|
|
79
94
|
disabled?: boolean;
|
|
80
|
-
|
|
95
|
+
color?: FormVariants;
|
|
81
96
|
hideResponse?: boolean;
|
|
82
97
|
fields?: FormField[];
|
|
83
98
|
hideHeadline?: boolean;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { type JSX } from "react";
|
|
2
2
|
import type { FormVariants, FormFieldValue, FormFieldMessages, FormField as FormFieldModel } from "./Form.model";
|
|
3
3
|
export type FormFieldProps = Omit<FormFieldModel, "onChange"> & {
|
|
4
|
-
|
|
4
|
+
color?: FormVariants;
|
|
5
5
|
messagesFields?: FormFieldMessages;
|
|
6
6
|
onChange?: (field: FormFieldModel, value?: FormFieldValue) => void;
|
|
7
7
|
onValidate?: (field: FormFieldModel, err?: string) => void;
|
|
8
8
|
};
|
|
9
|
-
export default function FormFieldClient({ fieldType, visible,
|
|
9
|
+
export default function FormFieldClient({ fieldType, visible, color, messagesFields, onChange, onValidate, ...props }: FormFieldProps): JSX.Element | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const FormField: import("react").ComponentType<Omit<import("./Form.model").FormField, "onChange"> & {
|
|
2
|
-
|
|
2
|
+
color?: import("./Form.model").FormVariants;
|
|
3
3
|
messagesFields?: import("./Form.model").FormFieldMessages;
|
|
4
4
|
onChange?: (field: import("./Form.model").FormField, value?: import("./Form.model").FormFieldValue) => void;
|
|
5
5
|
onValidate?: (field: import("./Form.model").FormField, err?: string) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const _default: import("react").ComponentType<Omit<import("./Form.model").FormField, "onChange"> & {
|
|
2
|
-
|
|
2
|
+
color?: import("./Form.model").FormVariants;
|
|
3
3
|
messagesFields?: import("./Form.model").FormFieldMessages;
|
|
4
4
|
onChange?: (field: import("./Form.model").FormField, value?: import("./Form.model").FormFieldValue) => void;
|
|
5
5
|
onValidate?: (field: import("./Form.model").FormField, err?: string) => void;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { FormVariants, FormFieldValue, FormFieldMessages, FormField as FormFieldModel } from "./Form.model";
|
|
2
2
|
import type { JSX } from "react";
|
|
3
3
|
export type FormFieldProps = Omit<FormFieldModel, "onChange"> & {
|
|
4
|
-
|
|
4
|
+
color?: FormVariants;
|
|
5
5
|
messagesFields?: FormFieldMessages;
|
|
6
6
|
onChange?: (field: FormFieldModel, value?: FormFieldValue) => void;
|
|
7
7
|
onValidate?: (field: FormFieldModel, err?: string) => void;
|
|
8
8
|
};
|
|
9
|
-
export default function FormFieldServer({ fieldType, visible,
|
|
9
|
+
export default function FormFieldServer({ fieldType, visible, color, messagesFields, ...props }: FormFieldProps): JSX.Element | null;
|
|
@@ -12,7 +12,7 @@ export type HeadlineProps = HTMLAttributes<HTMLHeadElement> & {
|
|
|
12
12
|
size?: HeadlineSizeProps;
|
|
13
13
|
highlight?: boolean;
|
|
14
14
|
schema?: Schema;
|
|
15
|
-
|
|
15
|
+
color?: HeadlineVariant;
|
|
16
16
|
className?: string;
|
|
17
17
|
align?: "left" | "center" | "right";
|
|
18
18
|
isRichtext?: boolean;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { LabelProps } from "../label";
|
|
2
|
-
import type {
|
|
2
|
+
import type { IconName } from "@/components/icon";
|
|
3
|
+
import type { Variants } from "@/types/variants";
|
|
4
|
+
import type { Ref, ButtonHTMLAttributes, ChangeEvent, ChangeEventHandler, FocusEvent, HTMLInputTypeAttribute, TextareaHTMLAttributes, InputHTMLAttributes, ReactNode } from "react";
|
|
3
5
|
export type FieldType = Omit<HTMLInputTypeAttribute, "date" | "datetime-local" | "month" | "week" | "time">;
|
|
4
6
|
export type InputChangeEvent = ChangeEvent<HTMLTextAreaElement | HTMLInputElement>;
|
|
5
7
|
export type InputChangeEventHandler = ChangeEventHandler<HTMLTextAreaElement | HTMLInputElement>;
|
|
@@ -36,6 +38,7 @@ export type InputProps = {
|
|
|
36
38
|
inputRef?: Ref<HTMLInputElement>;
|
|
37
39
|
customRegexPattern?: string;
|
|
38
40
|
fieldClassName?: string;
|
|
41
|
+
color?: Variants;
|
|
39
42
|
hideCounter?: boolean;
|
|
40
43
|
inputContainerClassName?: string;
|
|
41
44
|
inputClassName?: string;
|
|
@@ -58,6 +61,10 @@ export type InputProps = {
|
|
|
58
61
|
onFocus?: InputFocusEventHandler;
|
|
59
62
|
onBlur?: InputBlurEventHandler;
|
|
60
63
|
renderNode?: (args: InputRenderNodeArgs) => ReactNode;
|
|
64
|
+
trailingIcon?: IconName;
|
|
65
|
+
trailingIconLabel?: string;
|
|
66
|
+
onTrailingIconClick?: () => void;
|
|
67
|
+
trailingIconButtonProps?: Omit<ButtonHTMLAttributes<HTMLButtonElement>, "type" | "onClick">;
|
|
61
68
|
} & ({
|
|
62
69
|
multiline?: false;
|
|
63
70
|
type?: FieldType;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { InputProps } from "./Input.model";
|
|
2
2
|
import type { JSX } from "react";
|
|
3
|
-
export declare function InputView({ inputRef, name, label, disabled, placeholder, isFocused, labelProps, value, helperText, errorText, required, fullWidth, multiline, maxLength, className, fieldClassName, inputContainerClassName, inputClassName, hideCounter, rows, hideLegend: _hideLegend, minRows, maxRows, type, renderNode, ...rest }: InputProps): JSX.Element;
|
|
3
|
+
export declare function InputView({ inputRef, name, label, disabled, placeholder, isFocused, labelProps, value, helperText, errorText, required, fullWidth, multiline, maxLength, className, fieldClassName, inputContainerClassName, inputClassName, hideCounter, rows, hideLegend: _hideLegend, minRows, maxRows, type, renderNode, color, trailingIcon, trailingIconLabel, onTrailingIconClick, trailingIconButtonProps, ...rest }: InputProps): JSX.Element;
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export declare const InputOTP: import("react").ComponentType<Omit<import("../input").InputProps, "name" | "onChange" | "rows" | "multiline" | "minRows" | "maxRows"> & {
|
|
2
|
+
name?: string;
|
|
3
|
+
groupLabel?: string;
|
|
4
|
+
groupInstruction?: string;
|
|
5
|
+
length?: number;
|
|
6
|
+
onChange?: (otp: string) => void;
|
|
7
|
+
onComplete?: (otp: string) => void;
|
|
8
|
+
} & {
|
|
9
|
+
priority?: boolean;
|
|
10
|
+
}>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const _default: import("react").ComponentType<Omit<import("../input").InputProps, "name" | "onChange" | "rows" | "multiline" | "minRows" | "maxRows"> & {
|
|
2
|
+
name?: string;
|
|
3
|
+
groupLabel?: string;
|
|
4
|
+
groupInstruction?: string;
|
|
5
|
+
length?: number;
|
|
6
|
+
onChange?: (otp: string) => void;
|
|
7
|
+
onComplete?: (otp: string) => void;
|
|
8
|
+
} & {
|
|
9
|
+
priority?: boolean;
|
|
10
|
+
}>;
|
|
11
|
+
export default _default;
|
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
import type { InputProps } from "../input";
|
|
2
|
+
import type { ChangeEvent, ClipboardEvent, KeyboardEvent } from "react";
|
|
2
3
|
export type InputOTPProps = Omit<InputProps, "onChange" | "name" | "multiline" | "maxRows" | "minRows" | "rows"> & {
|
|
4
|
+
name?: string;
|
|
3
5
|
groupLabel?: string;
|
|
4
6
|
groupInstruction?: string;
|
|
5
7
|
length?: number;
|
|
6
8
|
onChange?: (otp: string) => void;
|
|
7
9
|
onComplete?: (otp: string) => void;
|
|
8
10
|
};
|
|
11
|
+
export interface InputOTPViewProps extends Omit<InputOTPProps, "onChange" | "onComplete"> {
|
|
12
|
+
otp: string[];
|
|
13
|
+
getInputRef: (index: number) => (el: HTMLInputElement | null) => void;
|
|
14
|
+
onDigitFocus: (index: number) => void;
|
|
15
|
+
onDigitChange: (e: ChangeEvent<HTMLInputElement>, index: number) => void;
|
|
16
|
+
onDigitKeyDown: (e: KeyboardEvent<HTMLInputElement | HTMLTextAreaElement>, index: number) => void;
|
|
17
|
+
onGroupPaste: (e: ClipboardEvent<HTMLDivElement>) => void;
|
|
18
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { InputOTPViewProps } from "./InputOTP.model";
|
|
2
|
+
import type { JSX } from "react";
|
|
3
|
+
export declare function InputOTPView({ className, groupLabel, groupInstruction, label, labelProps, helperText, errorText, name, length, otp, color, disabled, required, getInputRef, onDigitFocus, onDigitChange, onDigitKeyDown, onGroupPaste, ...props }: InputOTPViewProps): JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from "./InputOTP";
|
|
2
|
-
export type { InputOTPProps } from "./InputOTP.model";
|
|
2
|
+
export type { InputOTPProps, InputOTPViewProps } from "./InputOTP.model";
|