@prokodo/ui 0.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 +35 -0
- package/README.md +31 -0
- package/dist/index.cjs.js +46 -0
- package/dist/index.es.js +13840 -0
- package/dist/main.d.ts +3 -0
- package/dist/preview.d.ts +3 -0
- package/dist/prokodo-ui.css +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/dist/types/components/accordion/Accordion.d.ts +3 -0
- package/dist/types/components/accordion/Accordion.model.d.ts +28 -0
- package/dist/types/components/accordion/index.d.ts +2 -0
- package/dist/types/components/animated/Animated.d.ts +3 -0
- package/dist/types/components/animated/Animated.model.d.ts +12 -0
- package/dist/types/components/animated/index.d.ts +2 -0
- package/dist/types/components/animatedText/AnimatedText.d.ts +3 -0
- package/dist/types/components/animatedText/AnimatedText.model.d.ts +7 -0
- package/dist/types/components/animatedText/index.d.ts +2 -0
- package/dist/types/components/avatar/Avatar.d.ts +3 -0
- package/dist/types/components/avatar/Avatar.model.d.ts +11 -0
- package/dist/types/components/avatar/index.d.ts +2 -0
- package/dist/types/components/base-link/BaseLink.d.ts +3 -0
- package/dist/types/components/base-link/BaseLink.model.d.ts +7 -0
- package/dist/types/components/base-link/index.d.ts +2 -0
- package/dist/types/components/button/Button.d.ts +3 -0
- package/dist/types/components/button/Button.model.d.ts +26 -0
- package/dist/types/components/button/index.d.ts +2 -0
- package/dist/types/components/calendly/Calendly.d.ts +22 -0
- package/dist/types/components/calendly/Calendly.model.d.ts +27 -0
- package/dist/types/components/calendly/index.d.ts +2 -0
- package/dist/types/components/card/Card.d.ts +3 -0
- package/dist/types/components/card/Card.model.d.ts +35 -0
- package/dist/types/components/card/index.d.ts +2 -0
- package/dist/types/components/carousel/Carousel.d.ts +3 -0
- package/dist/types/components/carousel/Carousel.model.d.ts +24 -0
- package/dist/types/components/carousel/Carousel.services.d.ts +23 -0
- package/dist/types/components/carousel/index.d.ts +2 -0
- package/dist/types/components/chip/Chip.d.ts +3 -0
- package/dist/types/components/chip/Chip.model.d.ts +14 -0
- package/dist/types/components/chip/index.d.ts +2 -0
- package/dist/types/components/datePicker/DatePicker.d.ts +3 -0
- package/dist/types/components/datePicker/DatePicker.model.d.ts +21 -0
- package/dist/types/components/datePicker/index.d.ts +2 -0
- package/dist/types/components/dialog/Dialog.d.ts +3 -0
- package/dist/types/components/dialog/Dialog.model.d.ts +34 -0
- package/dist/types/components/dialog/index.d.ts +2 -0
- package/dist/types/components/drawer/Drawer.d.ts +5 -0
- package/dist/types/components/drawer/Drawer.model.d.ts +11 -0
- package/dist/types/components/drawer/index.d.ts +2 -0
- package/dist/types/components/form/Form.d.ts +3 -0
- package/dist/types/components/form/Form.model.d.ts +71 -0
- package/dist/types/components/form/FormField.d.ts +9 -0
- package/dist/types/components/form/FormResponse.d.ts +6 -0
- package/dist/types/components/form/index.d.ts +3 -0
- package/dist/types/components/grid/Grid.d.ts +7 -0
- package/dist/types/components/grid/GridRow.d.ts +13 -0
- package/dist/types/components/grid/index.d.ts +2 -0
- package/dist/types/components/headline/Headline.d.ts +4 -0
- package/dist/types/components/headline/Headline.model.d.ts +19 -0
- package/dist/types/components/headline/index.d.ts +2 -0
- package/dist/types/components/icon/Icon.d.ts +4 -0
- package/dist/types/components/icon/Icon.model.d.ts +15 -0
- package/dist/types/components/icon/Icon.utils.d.ts +79 -0
- package/dist/types/components/icon/iconsMap.d.ts +4128 -0
- package/dist/types/components/icon/index.d.ts +2 -0
- package/dist/types/components/image/Image.d.ts +3 -0
- package/dist/types/components/image/Image.model.d.ts +12 -0
- package/dist/types/components/image/index.d.ts +2 -0
- package/dist/types/components/image-text/ImageText.d.ts +3 -0
- package/dist/types/components/image-text/ImageText.model.d.ts +21 -0
- package/dist/types/components/image-text/index.d.ts +2 -0
- package/dist/types/components/input/Input.d.ts +3 -0
- package/dist/types/components/input/Input.model.d.ts +55 -0
- package/dist/types/components/input/InputValidation.d.ts +2 -0
- package/dist/types/components/input/index.d.ts +2 -0
- package/dist/types/components/inputOTP/InputOTP.d.ts +3 -0
- package/dist/types/components/inputOTP/InputOTP.model.d.ts +8 -0
- package/dist/types/components/inputOTP/index.d.ts +2 -0
- package/dist/types/components/label/Label.d.ts +3 -0
- package/dist/types/components/label/Label.model.d.ts +9 -0
- package/dist/types/components/label/index.d.ts +2 -0
- package/dist/types/components/link/Link.d.ts +3 -0
- package/dist/types/components/link/Link.model.d.ts +23 -0
- package/dist/types/components/link/index.d.ts +2 -0
- package/dist/types/components/list/List.d.ts +3 -0
- package/dist/types/components/list/List.model.d.ts +49 -0
- package/dist/types/components/list/index.d.ts +2 -0
- package/dist/types/components/loading/Loading.d.ts +3 -0
- package/dist/types/components/loading/Loading.model.d.ts +5 -0
- package/dist/types/components/loading/index.d.ts +2 -0
- package/dist/types/components/lottie/Lottie.d.ts +3 -0
- package/dist/types/components/lottie/Lottie.model.d.ts +8 -0
- package/dist/types/components/lottie/LottieAnimations.d.ts +32 -0
- package/dist/types/components/lottie/index.d.ts +2 -0
- package/dist/types/components/map/Map.d.ts +3 -0
- package/dist/types/components/map/Map.model.d.ts +20 -0
- package/dist/types/components/map/index.d.ts +2 -0
- package/dist/types/components/post-item/PostItem.d.ts +3 -0
- package/dist/types/components/post-item/PostItem.model.d.ts +21 -0
- package/dist/types/components/post-item/PostItemAuthor.d.ts +3 -0
- package/dist/types/components/post-item/PostItemAuthor.model.d.ts +14 -0
- package/dist/types/components/post-item/index.d.ts +3 -0
- package/dist/types/components/post-teaser/PostTeaser.d.ts +3 -0
- package/dist/types/components/post-teaser/PostTeaser.model.d.ts +25 -0
- package/dist/types/components/post-teaser/index.d.ts +2 -0
- package/dist/types/components/post-widget/PostWidget.d.ts +3 -0
- package/dist/types/components/post-widget/PostWidget.model.d.ts +25 -0
- package/dist/types/components/post-widget/index.d.ts +2 -0
- package/dist/types/components/post-widget-carousel/PostWidgetCarousel.d.ts +3 -0
- package/dist/types/components/post-widget-carousel/PostWidgetCarousel.model.d.ts +20 -0
- package/dist/types/components/post-widget-carousel/index.d.ts +2 -0
- package/dist/types/components/quote/Quote.d.ts +3 -0
- package/dist/types/components/quote/Quote.model.d.ts +19 -0
- package/dist/types/components/quote/index.d.ts +2 -0
- package/dist/types/components/rich-text/RichText.d.ts +3 -0
- package/dist/types/components/rich-text/RichText.model.d.ts +11 -0
- package/dist/types/components/rich-text/index.d.ts +2 -0
- package/dist/types/components/select/Select.d.ts +3 -0
- package/dist/types/components/select/Select.model.d.ts +30 -0
- package/dist/types/components/select/index.d.ts +2 -0
- package/dist/types/components/skeleton/Skeleton.d.ts +3 -0
- package/dist/types/components/skeleton/Skeleton.model.d.ts +7 -0
- package/dist/types/components/skeleton/index.d.ts +2 -0
- package/dist/types/components/slider/Slider.d.ts +3 -0
- package/dist/types/components/slider/Slider.model.d.ts +11 -0
- package/dist/types/components/slider/index.d.ts +2 -0
- package/dist/types/components/stepper/Stepper.d.ts +3 -0
- package/dist/types/components/stepper/Stepper.model.d.ts +24 -0
- package/dist/types/components/stepper/index.d.ts +2 -0
- package/dist/types/components/switch/Switch.d.ts +3 -0
- package/dist/types/components/switch/Switch.model.d.ts +18 -0
- package/dist/types/components/switch/index.d.ts +2 -0
- package/dist/types/components/table/Table.d.ts +3 -0
- package/dist/types/components/table/Table.model.d.ts +32 -0
- package/dist/types/components/table/index.d.ts +2 -0
- package/dist/types/components/teaser/Teaser.d.ts +3 -0
- package/dist/types/components/teaser/Teaser.model.d.ts +29 -0
- package/dist/types/components/teaser/index.d.ts +2 -0
- package/dist/types/helpers/bem.d.ts +7 -0
- package/dist/types/helpers/calculation.d.ts +2 -0
- package/dist/types/helpers/validations.d.ts +6 -0
- package/dist/types/hooks/useGoogleMaps.d.ts +1 -0
- package/dist/types/index.d.ts +80 -0
- package/dist/types/types/colors.d.ts +5 -0
- package/dist/types/types/schema.d.ts +7 -0
- package/dist/types/types/variants.d.ts +1 -0
- package/package.json +131 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { LabelProps } from "../label";
|
|
2
|
+
import type { SliderProps as MUISliderProps } from "@mui/base/Slider";
|
|
3
|
+
import type { HTMLAttributes } from "react";
|
|
4
|
+
export type SliderProps = Omit<MUISliderProps, "value"> & {
|
|
5
|
+
id: string;
|
|
6
|
+
value?: string | number | number[];
|
|
7
|
+
label?: string;
|
|
8
|
+
labelProps?: LabelProps;
|
|
9
|
+
valueLabelProps?: HTMLAttributes<HTMLSpanElement>;
|
|
10
|
+
required?: boolean;
|
|
11
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { Ref, HTMLAttributes } from "react";
|
|
2
|
+
export type StepperRef = {
|
|
3
|
+
jumpToStep: (index: number) => void;
|
|
4
|
+
};
|
|
5
|
+
export type StepperTranslations = {
|
|
6
|
+
stepper: string;
|
|
7
|
+
step: string;
|
|
8
|
+
status: {
|
|
9
|
+
open: string;
|
|
10
|
+
completed: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export type Step = HTMLAttributes<HTMLLIElement> & {
|
|
14
|
+
key?: string;
|
|
15
|
+
label?: string;
|
|
16
|
+
labelProps?: HTMLAttributes<HTMLDivElement>;
|
|
17
|
+
};
|
|
18
|
+
export type StepperProps = HTMLAttributes<HTMLOListElement> & {
|
|
19
|
+
ref?: Ref<StepperRef>;
|
|
20
|
+
steps: Step[];
|
|
21
|
+
onChangeStep?: (index: number) => void;
|
|
22
|
+
initialStep?: number;
|
|
23
|
+
translations?: StepperTranslations;
|
|
24
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { IconName } from "../icon";
|
|
2
|
+
import type { LabelProps } from "../label";
|
|
3
|
+
import type { SwitchProps as MUISwitchProps } from "@mui/base";
|
|
4
|
+
import type { ChangeEvent } from "react";
|
|
5
|
+
export type SwitchColor = "inherit" | "primary" | "secondary" | "success" | "error" | "info" | "warning";
|
|
6
|
+
export type SwitchProps = Omit<MUISwitchProps, "component" | "onChange"> & {
|
|
7
|
+
variant?: SwitchColor;
|
|
8
|
+
label?: string;
|
|
9
|
+
labelProps?: Omit<LabelProps, "label" | "require">;
|
|
10
|
+
name: string;
|
|
11
|
+
icon?: IconName;
|
|
12
|
+
checkedIcon?: IconName;
|
|
13
|
+
onChange?: (event: ChangeEvent<HTMLInputElement>, checked: boolean) => void;
|
|
14
|
+
};
|
|
15
|
+
export type IconRenderProps = {
|
|
16
|
+
name: IconName;
|
|
17
|
+
isChecked?: boolean;
|
|
18
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { Variants } from "@/types/variants";
|
|
2
|
+
import type { ReactNode, TableHTMLAttributes, HTMLAttributes } from "react";
|
|
3
|
+
export type TableHeaderCellProps = {
|
|
4
|
+
label?: string;
|
|
5
|
+
colSpan?: number;
|
|
6
|
+
rowSpan?: number;
|
|
7
|
+
className?: string;
|
|
8
|
+
};
|
|
9
|
+
export type TableBodyCellProps = {
|
|
10
|
+
label?: string;
|
|
11
|
+
icon?: ReactNode;
|
|
12
|
+
colSpan?: number;
|
|
13
|
+
rowSpan?: number;
|
|
14
|
+
className?: string;
|
|
15
|
+
};
|
|
16
|
+
export type TableRowProps = {
|
|
17
|
+
data: TableBodyCellProps[];
|
|
18
|
+
className?: string;
|
|
19
|
+
};
|
|
20
|
+
export type TableData = {
|
|
21
|
+
header?: TableHeaderCellProps[];
|
|
22
|
+
body?: TableRowProps[];
|
|
23
|
+
};
|
|
24
|
+
export type TableProps = TableHTMLAttributes<HTMLTableElement> & {
|
|
25
|
+
ariaLabel: string;
|
|
26
|
+
caption: string;
|
|
27
|
+
variant?: Variants;
|
|
28
|
+
headerType?: "single" | "double";
|
|
29
|
+
data?: TableData;
|
|
30
|
+
headerProps?: HTMLAttributes<HTMLTableSectionElement>;
|
|
31
|
+
bodyProps?: HTMLAttributes<HTMLTableSectionElement>;
|
|
32
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { HeadlineProps } from "../headline";
|
|
2
|
+
import type { IconProps } from "../icon";
|
|
3
|
+
import type { ImageProps } from "../image";
|
|
4
|
+
import type { LinkProps } from "../link";
|
|
5
|
+
import type { LottieAnimation } from "../lottie";
|
|
6
|
+
import type { Variants } from "@/types/variants";
|
|
7
|
+
export type TeaserVariant = Variants;
|
|
8
|
+
export type TeaserHeadline = {
|
|
9
|
+
content: string;
|
|
10
|
+
} & Omit<HeadlineProps, "children">;
|
|
11
|
+
export type TeaserImage = ImageProps;
|
|
12
|
+
export type TeaserAnimation = LottieAnimation;
|
|
13
|
+
export type TeaserRedirect = LinkProps & {
|
|
14
|
+
label?: string;
|
|
15
|
+
icon?: IconProps;
|
|
16
|
+
};
|
|
17
|
+
export type TeaserAlign = "left" | "center" | "right";
|
|
18
|
+
export type TeaserProps = {
|
|
19
|
+
className?: string;
|
|
20
|
+
variant?: TeaserVariant;
|
|
21
|
+
align?: TeaserAlign;
|
|
22
|
+
lineClamp?: boolean;
|
|
23
|
+
title: TeaserHeadline;
|
|
24
|
+
content?: string;
|
|
25
|
+
image?: TeaserImage;
|
|
26
|
+
animation?: TeaserAnimation;
|
|
27
|
+
onClick?: () => void;
|
|
28
|
+
redirect?: TeaserRedirect;
|
|
29
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type WordSet } from "react-bem-helper";
|
|
2
|
+
type Styles = {
|
|
3
|
+
readonly [key: string]: string;
|
|
4
|
+
};
|
|
5
|
+
type ClassNames = (element?: string, modifiers?: WordSet, extra?: WordSet) => string;
|
|
6
|
+
declare function create(styles: Styles, name: string): ClassNames;
|
|
7
|
+
export { create };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const isString: (e?: string | null) => boolean;
|
|
2
|
+
export declare const isEqual: (a?: string, b?: string) => boolean;
|
|
3
|
+
export declare const isNumber: (e?: number | null) => boolean;
|
|
4
|
+
export declare const isArray: <T>(array: T[] | null | undefined) => array is T[];
|
|
5
|
+
export declare const isNull: (e: unknown) => boolean;
|
|
6
|
+
export declare const isTrue: (e?: boolean) => boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useGoogleMaps: (apiKey: string, reload?: boolean) => boolean;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
export { Accordion } from './components/accordion';
|
|
2
|
+
export { Animated } from './components/animated';
|
|
3
|
+
export { AnimatedText } from './components/animatedText';
|
|
4
|
+
export { Avatar } from './components/avatar';
|
|
5
|
+
export { BaseLink } from './components/base-link';
|
|
6
|
+
export { Button } from './components/button';
|
|
7
|
+
export { Calendly } from './components/calendly';
|
|
8
|
+
export { Card } from './components/card';
|
|
9
|
+
export { Carousel } from './components/carousel';
|
|
10
|
+
export { Chip } from './components/chip';
|
|
11
|
+
export { DatePicker } from './components/datePicker';
|
|
12
|
+
export { Dialog } from './components/dialog';
|
|
13
|
+
export { Drawer } from './components/drawer';
|
|
14
|
+
export { Form, FormResponse } from './components/form';
|
|
15
|
+
export { Grid, GridRow } from './components/grid';
|
|
16
|
+
export { Headline } from './components/headline';
|
|
17
|
+
export { Icon } from './components/icon';
|
|
18
|
+
export { Image } from './components/image';
|
|
19
|
+
export { ImageText } from './components/image-text';
|
|
20
|
+
export { Input } from './components/input';
|
|
21
|
+
export { InputOTP } from './components/inputOTP';
|
|
22
|
+
export { Label } from './components/label';
|
|
23
|
+
export { Link } from './components/link';
|
|
24
|
+
export { List } from './components/list';
|
|
25
|
+
export { Loading } from './components/loading';
|
|
26
|
+
export { Lottie } from './components/lottie';
|
|
27
|
+
export { Map } from './components/map';
|
|
28
|
+
export { PostItem } from './components/post-item';
|
|
29
|
+
export { PostTeaser } from './components/post-teaser';
|
|
30
|
+
export { PostWidget } from './components/post-widget';
|
|
31
|
+
export { PostWidgetCarousel } from './components/post-widget-carousel';
|
|
32
|
+
export { Quote } from './components/quote';
|
|
33
|
+
export { RichText } from './components/rich-text';
|
|
34
|
+
export { Select } from './components/select';
|
|
35
|
+
export { Skeleton } from './components/skeleton';
|
|
36
|
+
export { Slider } from './components/slider';
|
|
37
|
+
export { Stepper } from './components/stepper';
|
|
38
|
+
export { Switch } from './components/switch';
|
|
39
|
+
export { Table } from './components/table';
|
|
40
|
+
export { Teaser } from './components/teaser';
|
|
41
|
+
export type { AccordionProps, AccordionItem, AccordionAction } from './components/accordion';
|
|
42
|
+
export type { AnimatedProps } from './components/animated';
|
|
43
|
+
export type { AnimatedTextProps } from './components/animatedText';
|
|
44
|
+
export type { AvatarProps, AvatarSize } from './components/avatar';
|
|
45
|
+
export type { BaseLinkProps } from './components/base-link';
|
|
46
|
+
export type { ButtonProps, ButtonColor, ButtonIconProps, ButtonDefaultProps } from './components/button';
|
|
47
|
+
export type { CalendlyProps, CalendlyColorOptions, CalendlyData, CalendlyDataCustomAnswers } from './components/calendly';
|
|
48
|
+
export type { CardProps, CardBackground, CardBackgroundProps, CardVariant } from './components/card';
|
|
49
|
+
export type { CarouselProps, CarouselDirection, CarouselRef } from './components/carousel';
|
|
50
|
+
export type { ChipProps, ChipColor, ChipVariant } from './components/chip';
|
|
51
|
+
export type { DatePickerProps, DatePickerValue, DatePickerErrorTranslations } from './components/datePicker';
|
|
52
|
+
export type { DialogProps, DialogAction, DialogActions, DialogRef, DialogTranslations } from './components/dialog';
|
|
53
|
+
export type { DrawerProps } from './components/drawer';
|
|
54
|
+
export type { FormProps, FormField, FormAllowedChildren, FormFieldCondition, FormFieldDate, FormFieldInput, FormFieldMessages, FormFieldMessagesErrors, FormFieldMessagesErrorsDate, FormFieldMessagesErrorsInput, FormFieldOptionals, FormFieldSelect, FormFieldSlider, FormFieldSwitch, FormFieldValue, FormMessages, FormMessagesErrors, FormResponseProps, FormVariants } from './components/form';
|
|
55
|
+
export type { GridProps, GridRowProps } from './components/grid';
|
|
56
|
+
export type { HeadlineProps, HeadlineSizeProps, HeadlineTypeProps, HeadlineVariant } from './components/headline';
|
|
57
|
+
export type { IconProps, IconColor, IconName, IconSize } from './components/icon';
|
|
58
|
+
export type { ImageProps } from './components/image';
|
|
59
|
+
export type { ImageTextProps, ImageTextHeadline, ImageTextAnimatedBorder, ImageTextAnimation } from './components/image-text';
|
|
60
|
+
export type { InputProps, InputChangeEvent, InputColor, InputErrorTranslations, InputValidateEvent } from './components/input';
|
|
61
|
+
export type { InputOTPProps } from './components/inputOTP';
|
|
62
|
+
export type { LabelProps } from './components/label';
|
|
63
|
+
export type { LinkProps, LinkClassNames, LinkClickProps, LinkDefaultProps, LinkHrefProps, LinkVariants } from './components/link';
|
|
64
|
+
export type { ListProps, ListCardItemProps, ListCardProps, ListDefaultItemProps, ListDefaultOptions, ListDefaultProps, ListItemProps, ListType, ListVariant } from './components/list';
|
|
65
|
+
export type { LoadingProps, LoadingSize } from './components/loading';
|
|
66
|
+
export type { LottieProps, LottieAnimation } from './components/lottie';
|
|
67
|
+
export type { MapProps, MapCenter, MapMarker, MapMarkerPosition } from './components/map';
|
|
68
|
+
export type { PostItemProps, PostItemAuthorAvatar, PostItemAuthorProps, PostItemHeadline } from './components/post-item';
|
|
69
|
+
export type { PostTeaserProps, PostTeaserHeadline, PostTeaserImage, PostTeaserRedirect } from './components/post-teaser';
|
|
70
|
+
export type { PostWidgetProps, PostWidgetHeadline, PostWidgetImage, PostWidgetItem, PostWidgetRedirect } from './components/post-widget';
|
|
71
|
+
export type { PostWidgetCarouselProps, PostWidgetCarouselHeadline, PostWidgetCarouselImage, PostWidgetCarouselItem, PostWidgetCarouselRedirect } from './components/post-widget-carousel';
|
|
72
|
+
export type { QuoteProps, QuoteAuthor, QuoteHeadline } from './components/quote';
|
|
73
|
+
export type { RichTextProps } from './components/rich-text';
|
|
74
|
+
export type { SelectProps, SelectChangeEvent, SelectColor, SelectEvent, SelectItem, SelectValueMultiple, SelectValueSingle } from './components/select';
|
|
75
|
+
export type { SkeletonProps } from './components/skeleton';
|
|
76
|
+
export type { SliderProps } from './components/slider';
|
|
77
|
+
export type { StepperProps, StepperRef, StepperTranslations } from './components/stepper';
|
|
78
|
+
export type { SwitchProps, SwitchColor } from './components/switch';
|
|
79
|
+
export type { TableProps, TableBodyCellProps, TableData, TableHeaderCellProps, TableRowProps } from './components/table';
|
|
80
|
+
export type { TeaserProps, TeaserAlign, TeaserAnimation, TeaserHeadline, TeaserImage, TeaserRedirect, TeaserVariant } from './components/teaser';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type Variants = "inherit" | "primary" | "secondary" | "success" | "error" | "info" | "warning" | "white";
|
package/package.json
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@prokodo/ui",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "Modern, customizable UI components built with React and TypeScript — developed by prokodo for high-performance web interfaces.",
|
|
6
|
+
"main": "dist/index.cjs.js",
|
|
7
|
+
"module": "dist/index.es.js",
|
|
8
|
+
"types": "dist/types/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/types/index.d.ts",
|
|
12
|
+
"import": "./dist/index.es.js",
|
|
13
|
+
"require": "./dist/index.cjs.js"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "https://github.com/prokodo/ui"
|
|
19
|
+
},
|
|
20
|
+
"homepage": "https://www.prokodo.com",
|
|
21
|
+
"bugs": {
|
|
22
|
+
"url": "https://github.com/prokodo/ui/issues"
|
|
23
|
+
},
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"@googlemaps/js-api-loader": "^1.16.6",
|
|
26
|
+
"@lottiefiles/dotlottie-react": "^0.7.2",
|
|
27
|
+
"@mui/base": "5.0.0-beta.58",
|
|
28
|
+
"dayjs": "^1.11.13",
|
|
29
|
+
"hugeicons-react": "^0.3.0",
|
|
30
|
+
"react": "19.1.0",
|
|
31
|
+
"react-bem-helper": "^1.4.1",
|
|
32
|
+
"react-dom": "19.1.0",
|
|
33
|
+
"react-markdown": "^9.0.1",
|
|
34
|
+
"remark-breaks": "^4.0.0",
|
|
35
|
+
"remark-gfm": "^4.0.0",
|
|
36
|
+
"typescript": "5.5.3"
|
|
37
|
+
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"@babel/core": "^7.25.2",
|
|
40
|
+
"@eslint/compat": "^1.2.0",
|
|
41
|
+
"@jest/globals": "^29.7.0",
|
|
42
|
+
"@jest/types": "^29.6.3",
|
|
43
|
+
"@storybook/addon-essentials": "^8.2.9",
|
|
44
|
+
"@storybook/addon-interactions": "^8.2.9",
|
|
45
|
+
"@storybook/addon-links": "^8.2.4",
|
|
46
|
+
"@storybook/addon-themes": "^8.2.4",
|
|
47
|
+
"@storybook/blocks": "^8.2.4",
|
|
48
|
+
"@storybook/client-api": "^7.6.17",
|
|
49
|
+
"@storybook/react": "^8.2.9",
|
|
50
|
+
"@storybook/react-vite": "^8.6.14",
|
|
51
|
+
"@storybook/test": "^8.2.9",
|
|
52
|
+
"@svgr/webpack": "^8.1.0",
|
|
53
|
+
"@testing-library/jest-dom": "^6.5.0",
|
|
54
|
+
"@testing-library/react": "^16.0.1",
|
|
55
|
+
"@types/google.maps": "^3.55.11",
|
|
56
|
+
"@types/hast": "^3.0.4",
|
|
57
|
+
"@types/jest": "^29.5.13",
|
|
58
|
+
"@types/node": "^22.15.21",
|
|
59
|
+
"@types/react": "19.1.0",
|
|
60
|
+
"@types/react-dom": "19.1.1",
|
|
61
|
+
"@typescript-eslint/eslint-plugin": "^8.8.1",
|
|
62
|
+
"@typescript-eslint/parser": "^8.8.1",
|
|
63
|
+
"@vitejs/plugin-react": "^4.5.0",
|
|
64
|
+
"babel-jest": "^29.7.0",
|
|
65
|
+
"eslint": "^9.10.0",
|
|
66
|
+
"eslint-config-prettier": "^9.1.0",
|
|
67
|
+
"eslint-import-resolver-typescript": "^3.6.3",
|
|
68
|
+
"eslint-plugin-import": "^2.31.0",
|
|
69
|
+
"eslint-plugin-jest": "^28.8.3",
|
|
70
|
+
"eslint-plugin-jest-dom": "^5.4.0",
|
|
71
|
+
"eslint-plugin-jsx-a11y": "^6.10.0",
|
|
72
|
+
"eslint-plugin-react": "^7.37.1",
|
|
73
|
+
"eslint-plugin-react-hooks": "^4.6.2",
|
|
74
|
+
"eslint-plugin-storybook": "^0.9.0",
|
|
75
|
+
"eslint-plugin-testing-library": "^6.3.0",
|
|
76
|
+
"eslint-plugin-unused-imports": "^4.1.4",
|
|
77
|
+
"fs-extra": "^11.3.0",
|
|
78
|
+
"globals": "^15.8.0",
|
|
79
|
+
"husky": "^9.1.6",
|
|
80
|
+
"jest": "^29.7.0",
|
|
81
|
+
"jest-css-modules": "^2.1.0",
|
|
82
|
+
"postcss": "^8.4.39",
|
|
83
|
+
"postcss-flexbugs-fixes": "^5.0.2",
|
|
84
|
+
"postcss-preset-env": "^10.0.2",
|
|
85
|
+
"prettier": "^3.3.3",
|
|
86
|
+
"sass": "^1.86.3",
|
|
87
|
+
"storybook": "^8.2.9",
|
|
88
|
+
"stylelint": "^16.7.0",
|
|
89
|
+
"stylelint-selector-bem-pattern": "^4.0.0",
|
|
90
|
+
"ts-jest": "^29.2.4",
|
|
91
|
+
"ts-node": "^10.9.2",
|
|
92
|
+
"vite": "^6.3.5"
|
|
93
|
+
},
|
|
94
|
+
"keywords": [
|
|
95
|
+
"react",
|
|
96
|
+
"typescript",
|
|
97
|
+
"component-library",
|
|
98
|
+
"ui-components",
|
|
99
|
+
"design-system",
|
|
100
|
+
"prokodo",
|
|
101
|
+
"npm-package",
|
|
102
|
+
"css-modules",
|
|
103
|
+
"storybook",
|
|
104
|
+
"frontend"
|
|
105
|
+
],
|
|
106
|
+
"files": [
|
|
107
|
+
"dist",
|
|
108
|
+
"README.md",
|
|
109
|
+
"LICENSE"
|
|
110
|
+
],
|
|
111
|
+
"author": "prokodo <info@prokodo.com>",
|
|
112
|
+
"license": "BUSL-1.1",
|
|
113
|
+
"publishConfig": {
|
|
114
|
+
"access": "public"
|
|
115
|
+
},
|
|
116
|
+
"scripts": {
|
|
117
|
+
"dev": "vite",
|
|
118
|
+
"build": "vite build",
|
|
119
|
+
"typecheck": "tsc --noEmit",
|
|
120
|
+
"test": "jest",
|
|
121
|
+
"test:watch": "jest --watch",
|
|
122
|
+
"test:ci": "jest --runInBand --ci",
|
|
123
|
+
"lint": "eslint 'src/**/*.{ts,tsx}'",
|
|
124
|
+
"lint:fix": "eslint 'src/**/*.{ts,tsx}' --fix",
|
|
125
|
+
"format": "prettier --check .",
|
|
126
|
+
"format:fix": "prettier --write .",
|
|
127
|
+
"storybook": "storybook dev -p 6006",
|
|
128
|
+
"build-storybook": "storybook build",
|
|
129
|
+
"generate-icon-types": "node tools/generate-icon-names.cjs"
|
|
130
|
+
}
|
|
131
|
+
}
|