@prokodo/ui 0.0.1 → 0.0.3

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.
Files changed (143) hide show
  1. package/README.md +3 -3
  2. package/package.json +3 -3
  3. package/dist/main.d.ts +0 -3
  4. package/dist/preview.d.ts +0 -3
  5. package/dist/tsconfig.build.tsbuildinfo +0 -1
  6. package/dist/types/components/accordion/Accordion.d.ts +0 -3
  7. package/dist/types/components/accordion/Accordion.model.d.ts +0 -28
  8. package/dist/types/components/accordion/index.d.ts +0 -2
  9. package/dist/types/components/animated/Animated.d.ts +0 -3
  10. package/dist/types/components/animated/Animated.model.d.ts +0 -12
  11. package/dist/types/components/animated/index.d.ts +0 -2
  12. package/dist/types/components/animatedText/AnimatedText.d.ts +0 -3
  13. package/dist/types/components/animatedText/AnimatedText.model.d.ts +0 -7
  14. package/dist/types/components/animatedText/index.d.ts +0 -2
  15. package/dist/types/components/avatar/Avatar.d.ts +0 -3
  16. package/dist/types/components/avatar/Avatar.model.d.ts +0 -11
  17. package/dist/types/components/avatar/index.d.ts +0 -2
  18. package/dist/types/components/base-link/BaseLink.d.ts +0 -3
  19. package/dist/types/components/base-link/BaseLink.model.d.ts +0 -7
  20. package/dist/types/components/base-link/index.d.ts +0 -2
  21. package/dist/types/components/button/Button.d.ts +0 -3
  22. package/dist/types/components/button/Button.model.d.ts +0 -26
  23. package/dist/types/components/button/index.d.ts +0 -2
  24. package/dist/types/components/calendly/Calendly.d.ts +0 -22
  25. package/dist/types/components/calendly/Calendly.model.d.ts +0 -27
  26. package/dist/types/components/calendly/index.d.ts +0 -2
  27. package/dist/types/components/card/Card.d.ts +0 -3
  28. package/dist/types/components/card/Card.model.d.ts +0 -35
  29. package/dist/types/components/card/index.d.ts +0 -2
  30. package/dist/types/components/carousel/Carousel.d.ts +0 -3
  31. package/dist/types/components/carousel/Carousel.model.d.ts +0 -24
  32. package/dist/types/components/carousel/Carousel.services.d.ts +0 -23
  33. package/dist/types/components/carousel/index.d.ts +0 -2
  34. package/dist/types/components/chip/Chip.d.ts +0 -3
  35. package/dist/types/components/chip/Chip.model.d.ts +0 -14
  36. package/dist/types/components/chip/index.d.ts +0 -2
  37. package/dist/types/components/datePicker/DatePicker.d.ts +0 -3
  38. package/dist/types/components/datePicker/DatePicker.model.d.ts +0 -21
  39. package/dist/types/components/datePicker/index.d.ts +0 -2
  40. package/dist/types/components/dialog/Dialog.d.ts +0 -3
  41. package/dist/types/components/dialog/Dialog.model.d.ts +0 -34
  42. package/dist/types/components/dialog/index.d.ts +0 -2
  43. package/dist/types/components/drawer/Drawer.d.ts +0 -5
  44. package/dist/types/components/drawer/Drawer.model.d.ts +0 -11
  45. package/dist/types/components/drawer/index.d.ts +0 -2
  46. package/dist/types/components/form/Form.d.ts +0 -3
  47. package/dist/types/components/form/Form.model.d.ts +0 -71
  48. package/dist/types/components/form/FormField.d.ts +0 -9
  49. package/dist/types/components/form/FormResponse.d.ts +0 -6
  50. package/dist/types/components/form/index.d.ts +0 -3
  51. package/dist/types/components/grid/Grid.d.ts +0 -7
  52. package/dist/types/components/grid/GridRow.d.ts +0 -13
  53. package/dist/types/components/grid/index.d.ts +0 -2
  54. package/dist/types/components/headline/Headline.d.ts +0 -4
  55. package/dist/types/components/headline/Headline.model.d.ts +0 -19
  56. package/dist/types/components/headline/index.d.ts +0 -2
  57. package/dist/types/components/icon/Icon.d.ts +0 -4
  58. package/dist/types/components/icon/Icon.model.d.ts +0 -15
  59. package/dist/types/components/icon/Icon.utils.d.ts +0 -79
  60. package/dist/types/components/icon/iconsMap.d.ts +0 -4128
  61. package/dist/types/components/icon/index.d.ts +0 -2
  62. package/dist/types/components/image/Image.d.ts +0 -3
  63. package/dist/types/components/image/Image.model.d.ts +0 -12
  64. package/dist/types/components/image/index.d.ts +0 -2
  65. package/dist/types/components/image-text/ImageText.d.ts +0 -3
  66. package/dist/types/components/image-text/ImageText.model.d.ts +0 -21
  67. package/dist/types/components/image-text/index.d.ts +0 -2
  68. package/dist/types/components/input/Input.d.ts +0 -3
  69. package/dist/types/components/input/Input.model.d.ts +0 -55
  70. package/dist/types/components/input/InputValidation.d.ts +0 -2
  71. package/dist/types/components/input/index.d.ts +0 -2
  72. package/dist/types/components/inputOTP/InputOTP.d.ts +0 -3
  73. package/dist/types/components/inputOTP/InputOTP.model.d.ts +0 -8
  74. package/dist/types/components/inputOTP/index.d.ts +0 -2
  75. package/dist/types/components/label/Label.d.ts +0 -3
  76. package/dist/types/components/label/Label.model.d.ts +0 -9
  77. package/dist/types/components/label/index.d.ts +0 -2
  78. package/dist/types/components/link/Link.d.ts +0 -3
  79. package/dist/types/components/link/Link.model.d.ts +0 -23
  80. package/dist/types/components/link/index.d.ts +0 -2
  81. package/dist/types/components/list/List.d.ts +0 -3
  82. package/dist/types/components/list/List.model.d.ts +0 -49
  83. package/dist/types/components/list/index.d.ts +0 -2
  84. package/dist/types/components/loading/Loading.d.ts +0 -3
  85. package/dist/types/components/loading/Loading.model.d.ts +0 -5
  86. package/dist/types/components/loading/index.d.ts +0 -2
  87. package/dist/types/components/lottie/Lottie.d.ts +0 -3
  88. package/dist/types/components/lottie/Lottie.model.d.ts +0 -8
  89. package/dist/types/components/lottie/LottieAnimations.d.ts +0 -32
  90. package/dist/types/components/lottie/index.d.ts +0 -2
  91. package/dist/types/components/map/Map.d.ts +0 -3
  92. package/dist/types/components/map/Map.model.d.ts +0 -20
  93. package/dist/types/components/map/index.d.ts +0 -2
  94. package/dist/types/components/post-item/PostItem.d.ts +0 -3
  95. package/dist/types/components/post-item/PostItem.model.d.ts +0 -21
  96. package/dist/types/components/post-item/PostItemAuthor.d.ts +0 -3
  97. package/dist/types/components/post-item/PostItemAuthor.model.d.ts +0 -14
  98. package/dist/types/components/post-item/index.d.ts +0 -3
  99. package/dist/types/components/post-teaser/PostTeaser.d.ts +0 -3
  100. package/dist/types/components/post-teaser/PostTeaser.model.d.ts +0 -25
  101. package/dist/types/components/post-teaser/index.d.ts +0 -2
  102. package/dist/types/components/post-widget/PostWidget.d.ts +0 -3
  103. package/dist/types/components/post-widget/PostWidget.model.d.ts +0 -25
  104. package/dist/types/components/post-widget/index.d.ts +0 -2
  105. package/dist/types/components/post-widget-carousel/PostWidgetCarousel.d.ts +0 -3
  106. package/dist/types/components/post-widget-carousel/PostWidgetCarousel.model.d.ts +0 -20
  107. package/dist/types/components/post-widget-carousel/index.d.ts +0 -2
  108. package/dist/types/components/quote/Quote.d.ts +0 -3
  109. package/dist/types/components/quote/Quote.model.d.ts +0 -19
  110. package/dist/types/components/quote/index.d.ts +0 -2
  111. package/dist/types/components/rich-text/RichText.d.ts +0 -3
  112. package/dist/types/components/rich-text/RichText.model.d.ts +0 -11
  113. package/dist/types/components/rich-text/index.d.ts +0 -2
  114. package/dist/types/components/select/Select.d.ts +0 -3
  115. package/dist/types/components/select/Select.model.d.ts +0 -30
  116. package/dist/types/components/select/index.d.ts +0 -2
  117. package/dist/types/components/skeleton/Skeleton.d.ts +0 -3
  118. package/dist/types/components/skeleton/Skeleton.model.d.ts +0 -7
  119. package/dist/types/components/skeleton/index.d.ts +0 -2
  120. package/dist/types/components/slider/Slider.d.ts +0 -3
  121. package/dist/types/components/slider/Slider.model.d.ts +0 -11
  122. package/dist/types/components/slider/index.d.ts +0 -2
  123. package/dist/types/components/stepper/Stepper.d.ts +0 -3
  124. package/dist/types/components/stepper/Stepper.model.d.ts +0 -24
  125. package/dist/types/components/stepper/index.d.ts +0 -2
  126. package/dist/types/components/switch/Switch.d.ts +0 -3
  127. package/dist/types/components/switch/Switch.model.d.ts +0 -18
  128. package/dist/types/components/switch/index.d.ts +0 -2
  129. package/dist/types/components/table/Table.d.ts +0 -3
  130. package/dist/types/components/table/Table.model.d.ts +0 -32
  131. package/dist/types/components/table/index.d.ts +0 -2
  132. package/dist/types/components/teaser/Teaser.d.ts +0 -3
  133. package/dist/types/components/teaser/Teaser.model.d.ts +0 -29
  134. package/dist/types/components/teaser/index.d.ts +0 -2
  135. package/dist/types/helpers/bem.d.ts +0 -7
  136. package/dist/types/helpers/calculation.d.ts +0 -2
  137. package/dist/types/helpers/validations.d.ts +0 -6
  138. package/dist/types/hooks/useGoogleMaps.d.ts +0 -1
  139. package/dist/types/index.d.ts +0 -80
  140. package/dist/types/types/colors.d.ts +0 -5
  141. package/dist/types/types/schema.d.ts +0 -7
  142. package/dist/types/types/variants.d.ts +0 -1
  143. /package/dist/{prokodo-ui.css → ui.css} +0 -0
@@ -1,3 +0,0 @@
1
- import { type FC } from "react";
2
- import type { SliderProps } from "./Slider.model";
3
- export declare const Slider: FC<SliderProps>;
@@ -1,11 +0,0 @@
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
- };
@@ -1,2 +0,0 @@
1
- export * from "./Slider";
2
- export type * from "./Slider.model";
@@ -1,3 +0,0 @@
1
- import { type FC } from "react";
2
- import type { StepperProps } from "./Stepper.model";
3
- export declare const Stepper: FC<StepperProps>;
@@ -1,24 +0,0 @@
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
- };
@@ -1,2 +0,0 @@
1
- export * from "./Stepper";
2
- export type * from "./Stepper.model";
@@ -1,3 +0,0 @@
1
- import { type FC } from "react";
2
- import type { SwitchProps } from "./Switch.model";
3
- export declare const Switch: FC<SwitchProps>;
@@ -1,18 +0,0 @@
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
- };
@@ -1,2 +0,0 @@
1
- export * from "./Switch";
2
- export * from "./Switch.model";
@@ -1,3 +0,0 @@
1
- import { type FC } from "react";
2
- import type { TableProps } from "./Table.model";
3
- export declare const Table: FC<TableProps>;
@@ -1,32 +0,0 @@
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
- };
@@ -1,2 +0,0 @@
1
- export type * from "./Table.model";
2
- export * from "./Table";
@@ -1,3 +0,0 @@
1
- import { type FC } from "react";
2
- import type { TeaserProps } from "./Teaser.model";
3
- export declare const Teaser: FC<TeaserProps>;
@@ -1,29 +0,0 @@
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
- };
@@ -1,2 +0,0 @@
1
- export * from "./Teaser";
2
- export type * from "./Teaser.model";
@@ -1,7 +0,0 @@
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 };
@@ -1,2 +0,0 @@
1
- export declare const calculateWordCount: (text?: string) => number;
2
- export declare const calculateReadingTime: (wordsPerMinute: number, text?: string) => number;
@@ -1,6 +0,0 @@
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;
@@ -1 +0,0 @@
1
- export declare const useGoogleMaps: (apiKey: string, reload?: boolean) => boolean;
@@ -1,80 +0,0 @@
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';
@@ -1,5 +0,0 @@
1
- type RGB = `rgb(${number}, ${number}, ${number})`;
2
- type RGBA = `rgba(${number}, ${number}, ${number}, ${number})`;
3
- type HEX = `#${string}`;
4
- export type Color = string | RGB | RGBA | HEX;
5
- export {};
@@ -1,7 +0,0 @@
1
- export type Schema = {
2
- itemProp?: string | undefined;
3
- itemScope?: boolean | undefined;
4
- itemType?: string | undefined;
5
- itemID?: string | undefined;
6
- itemRef?: string | undefined;
7
- };
@@ -1 +0,0 @@
1
- export type Variants = "inherit" | "primary" | "secondary" | "success" | "error" | "info" | "warning" | "white";
File without changes