@prokodo/ui 0.1.12 → 0.1.14
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/README.md +6 -1
- package/dist/components/accordion/Accordion.css +46 -0
- package/dist/components/accordion/Accordion.module.css +46 -0
- package/dist/components/accordion/Accordion.module.scss.js +4 -0
- package/dist/components/accordion/Accordion.view.js +25 -5
- package/dist/components/autocomplete/Autocomplete.client.js +132 -0
- package/dist/components/autocomplete/Autocomplete.css +317 -0
- package/dist/components/autocomplete/Autocomplete.js +12 -0
- package/dist/components/autocomplete/Autocomplete.lazy.js +12 -0
- package/dist/components/autocomplete/Autocomplete.module.css +317 -0
- package/dist/components/autocomplete/Autocomplete.module.scss.js +21 -0
- package/dist/components/autocomplete/Autocomplete.server.js +11 -0
- package/dist/components/autocomplete/Autocomplete.view.js +142 -0
- package/dist/components/autocomplete/index.js +4 -0
- package/dist/components/button/Button.css +114 -6
- package/dist/components/button/Button.module.css +114 -6
- package/dist/components/button/Button.module.scss.js +10 -2
- package/dist/components/button/Button.view.js +1 -0
- package/dist/components/checkbox/Checkbox.client.js +42 -0
- package/dist/components/checkbox/Checkbox.css +312 -0
- package/dist/components/checkbox/Checkbox.js +12 -0
- package/dist/components/checkbox/Checkbox.lazy.js +12 -0
- package/dist/components/checkbox/Checkbox.module.css +312 -0
- package/dist/components/checkbox/Checkbox.module.scss.js +20 -0
- package/dist/components/checkbox/Checkbox.server.js +20 -0
- package/dist/components/checkbox/Checkbox.view.js +86 -0
- package/dist/components/checkbox/index.js +4 -0
- package/dist/components/checkbox-group/CheckboxGroup.client.js +57 -0
- package/dist/components/checkbox-group/CheckboxGroup.css +238 -0
- package/dist/components/checkbox-group/CheckboxGroup.js +13 -0
- package/dist/components/checkbox-group/CheckboxGroup.lazy.js +12 -0
- package/dist/components/checkbox-group/CheckboxGroup.module.css +238 -0
- package/dist/components/checkbox-group/CheckboxGroup.module.scss.js +15 -0
- package/dist/components/checkbox-group/CheckboxGroup.server.js +25 -0
- package/dist/components/checkbox-group/CheckboxGroup.view.js +97 -0
- package/dist/components/checkbox-group/index.js +4 -0
- package/dist/components/dialog/Dialog.view.js +2 -1
- package/dist/components/dynamic-list/DynamicList.view.js +1 -1
- package/dist/components/input/Input.css +2 -2
- package/dist/components/input/Input.module.css +2 -2
- package/dist/components/rich-text/RichText.css +0 -1
- package/dist/components/rich-text/RichText.module.css +0 -1
- package/dist/components/snackbar/Snackbar.css +5 -1
- package/dist/components/snackbar/Snackbar.module.css +5 -1
- package/dist/components/tabs/Tabs.client.js +182 -0
- package/dist/components/tabs/Tabs.css +330 -0
- package/dist/components/tabs/Tabs.js +13 -0
- package/dist/components/tabs/Tabs.lazy.js +15 -0
- package/dist/components/tabs/Tabs.module.css +330 -0
- package/dist/components/tabs/Tabs.module.scss.js +19 -0
- package/dist/components/tabs/Tabs.server.js +11 -0
- package/dist/components/tabs/Tabs.view.js +157 -0
- package/dist/components/tabs/index.js +4 -0
- package/dist/components/tooltip/Tooltip.client.js +10 -1
- package/dist/components/tooltip/Tooltip.css +1 -0
- package/dist/components/tooltip/Tooltip.module.css +1 -0
- package/dist/constants/project.js +1 -1
- package/dist/index.js +8 -0
- package/dist/theme.css +937 -74
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/components/accordion/Accordion.d.ts +3 -0
- package/dist/types/components/accordion/Accordion.lazy.d.ts +3 -0
- package/dist/types/components/accordion/Accordion.model.d.ts +3 -0
- package/dist/types/components/accordion/Accordion.view.d.ts +1 -1
- package/dist/types/components/autocomplete/Autocomplete.client.d.ts +5 -0
- package/dist/types/components/autocomplete/Autocomplete.d.ts +4 -0
- package/dist/types/components/autocomplete/Autocomplete.lazy.d.ts +5 -0
- package/dist/types/components/autocomplete/Autocomplete.model.d.ts +58 -0
- package/dist/types/components/autocomplete/Autocomplete.server.d.ts +3 -0
- package/dist/types/components/autocomplete/Autocomplete.view.d.ts +3 -0
- package/dist/types/components/autocomplete/index.d.ts +2 -0
- package/dist/types/components/checkbox/Checkbox.client.d.ts +4 -0
- package/dist/types/components/checkbox/Checkbox.d.ts +18 -0
- package/dist/types/components/checkbox/Checkbox.lazy.d.ts +19 -0
- package/dist/types/components/checkbox/Checkbox.model.d.ts +23 -0
- package/dist/types/components/checkbox/Checkbox.server.d.ts +3 -0
- package/dist/types/components/checkbox/Checkbox.view.d.ts +3 -0
- package/dist/types/components/checkbox/index.d.ts +2 -0
- package/dist/types/components/checkbox-group/CheckboxGroup.client.d.ts +4 -0
- package/dist/types/components/checkbox-group/CheckboxGroup.d.ts +4 -0
- package/dist/types/components/checkbox-group/CheckboxGroup.lazy.d.ts +5 -0
- package/dist/types/components/checkbox-group/CheckboxGroup.model.d.ts +38 -0
- package/dist/types/components/checkbox-group/CheckboxGroup.server.d.ts +3 -0
- package/dist/types/components/checkbox-group/CheckboxGroup.view.d.ts +3 -0
- package/dist/types/components/checkbox-group/index.d.ts +2 -0
- package/dist/types/components/dialog/Dialog.model.d.ts +1 -0
- package/dist/types/components/dialog/Dialog.view.d.ts +1 -1
- package/dist/types/components/tabs/Tabs.client.d.ts +5 -0
- package/dist/types/components/tabs/Tabs.d.ts +4 -0
- package/dist/types/components/tabs/Tabs.lazy.d.ts +5 -0
- package/dist/types/components/tabs/Tabs.model.d.ts +43 -0
- package/dist/types/components/tabs/Tabs.server.d.ts +3 -0
- package/dist/types/components/tabs/Tabs.view.d.ts +3 -0
- package/dist/types/components/tabs/index.d.ts +2 -0
- package/dist/types/index.d.ts +4 -0
- package/package.json +21 -1
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
export declare const Accordion: import("react").ComponentType<{
|
|
2
2
|
id: string;
|
|
3
|
+
type?: "card" | "panel";
|
|
4
|
+
headerWrapperClassName?: string;
|
|
5
|
+
headerToggleClassName?: string;
|
|
3
6
|
expanded?: number | null;
|
|
4
7
|
className?: string;
|
|
5
8
|
variant?: import("../../types/variants").Variants;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
declare const _default: import("react").ComponentType<{
|
|
2
2
|
id: string;
|
|
3
|
+
type?: "card" | "panel";
|
|
4
|
+
headerWrapperClassName?: string;
|
|
5
|
+
headerToggleClassName?: string;
|
|
3
6
|
expanded?: number | null;
|
|
4
7
|
className?: string;
|
|
5
8
|
variant?: import("../../types/variants").Variants;
|
|
@@ -18,6 +18,9 @@ export type AccordionItem = {
|
|
|
18
18
|
};
|
|
19
19
|
export type AccordionProps = {
|
|
20
20
|
id: string;
|
|
21
|
+
type?: "card" | "panel";
|
|
22
|
+
headerWrapperClassName?: string;
|
|
23
|
+
headerToggleClassName?: string;
|
|
21
24
|
expanded?: number | null;
|
|
22
25
|
className?: string;
|
|
23
26
|
variant?: Variants;
|
|
@@ -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, variant, className, items, expandedIndex, onToggle, titleOptions, iconProps, ...domRest }: AccordionViewProps): JSX.Element;
|
|
3
|
+
export declare function AccordionView({ id, type, headerWrapperClassName, headerToggleClassName, variant, className, items, expandedIndex, onToggle, titleOptions, iconProps, ...domRest }: AccordionViewProps): JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type JSX } from "react";
|
|
2
|
+
import type { AutocompleteProps } from "./Autocomplete.model";
|
|
3
|
+
declare function AutocompleteClient({ name, value, items, minQueryLength, onChange, onSelect, ...rest }: AutocompleteProps): JSX.Element;
|
|
4
|
+
declare const _default: import("react").MemoExoticComponent<typeof AutocompleteClient>;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { InputProps } from "../input";
|
|
2
|
+
import type { KeyboardEventHandler } from "react";
|
|
3
|
+
type AutocompleteInputProps = Omit<Extract<InputProps, {
|
|
4
|
+
multiline?: false;
|
|
5
|
+
}>, "id" | "name" | "value" | "onChange" | "onFocus" | "onKeyDown" | "label" | "disabled" | "required" | "fullWidth" | "readOnly" | "autoComplete" | "aria-describedby" | "aria-labelledby" | "placeholder">;
|
|
6
|
+
export type AutocompleteItem = {
|
|
7
|
+
value: string;
|
|
8
|
+
label: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
};
|
|
11
|
+
export type AutocompleteChangeEvent = {
|
|
12
|
+
query: string;
|
|
13
|
+
};
|
|
14
|
+
export type AutocompleteClientState = {
|
|
15
|
+
open: boolean;
|
|
16
|
+
listTop?: number;
|
|
17
|
+
activeIndex: number;
|
|
18
|
+
onInputChange: (query: string) => void;
|
|
19
|
+
onInputFocus: () => void;
|
|
20
|
+
onInputKeyDown: KeyboardEventHandler<HTMLInputElement | HTMLTextAreaElement>;
|
|
21
|
+
onSelectItem: (item: AutocompleteItem) => void;
|
|
22
|
+
};
|
|
23
|
+
export type AutocompleteProps = {
|
|
24
|
+
id?: string;
|
|
25
|
+
name: string;
|
|
26
|
+
label?: string;
|
|
27
|
+
placeholder?: string;
|
|
28
|
+
required?: boolean;
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
fullWidth?: boolean;
|
|
31
|
+
readOnly?: boolean;
|
|
32
|
+
autoComplete?: string;
|
|
33
|
+
"aria-describedby"?: string;
|
|
34
|
+
"aria-labelledby"?: string;
|
|
35
|
+
value?: string;
|
|
36
|
+
items?: AutocompleteItem[];
|
|
37
|
+
loading?: boolean;
|
|
38
|
+
loadingText?: string;
|
|
39
|
+
emptyText?: string;
|
|
40
|
+
minQueryLength?: number;
|
|
41
|
+
minQueryLengthText?: string;
|
|
42
|
+
className?: string;
|
|
43
|
+
inputClassName?: string;
|
|
44
|
+
listClassName?: string;
|
|
45
|
+
itemClassName?: string;
|
|
46
|
+
inputProps?: AutocompleteInputProps & {
|
|
47
|
+
hideLabel?: boolean;
|
|
48
|
+
};
|
|
49
|
+
onChange?: (event: AutocompleteChangeEvent) => void;
|
|
50
|
+
onSelect?: (item: AutocompleteItem) => void;
|
|
51
|
+
};
|
|
52
|
+
export type AutocompleteViewProps = Omit<AutocompleteProps, "onChange" | "onSelect"> & {
|
|
53
|
+
open?: boolean;
|
|
54
|
+
_clientState?: AutocompleteClientState;
|
|
55
|
+
onChange?: (event: AutocompleteChangeEvent) => void;
|
|
56
|
+
onSelect?: (item: AutocompleteItem) => void;
|
|
57
|
+
};
|
|
58
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { AutocompleteViewProps } from "./Autocomplete.model";
|
|
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;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const Checkbox: import("react").ComponentType<Omit<import("react").HTMLAttributes<HTMLInputElement>, "title" | "onChange"> & {
|
|
2
|
+
name: string;
|
|
3
|
+
value: string;
|
|
4
|
+
title: import("react").ReactNode;
|
|
5
|
+
description?: import("react").ReactNode | null;
|
|
6
|
+
icon?: Omit<import("../icon").IconProps, "label"> | null;
|
|
7
|
+
iconLabel?: string | null;
|
|
8
|
+
checked?: boolean;
|
|
9
|
+
defaultChecked?: boolean;
|
|
10
|
+
required?: boolean;
|
|
11
|
+
showRequiredMark?: boolean;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
variant?: import("./Checkbox.model").CheckboxVariant;
|
|
14
|
+
onChange?: (event: import("react").ChangeEvent<HTMLInputElement>, checked: boolean) => void;
|
|
15
|
+
className?: string;
|
|
16
|
+
} & {
|
|
17
|
+
priority?: boolean;
|
|
18
|
+
}>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare const _default: import("react").ComponentType<Omit<import("react").HTMLAttributes<HTMLInputElement>, "title" | "onChange"> & {
|
|
2
|
+
name: string;
|
|
3
|
+
value: string;
|
|
4
|
+
title: import("react").ReactNode;
|
|
5
|
+
description?: import("react").ReactNode | null;
|
|
6
|
+
icon?: Omit<import("../icon").IconProps, "label"> | null;
|
|
7
|
+
iconLabel?: string | null;
|
|
8
|
+
checked?: boolean;
|
|
9
|
+
defaultChecked?: boolean;
|
|
10
|
+
required?: boolean;
|
|
11
|
+
showRequiredMark?: boolean;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
variant?: import("./Checkbox.model").CheckboxVariant;
|
|
14
|
+
onChange?: (event: import("react").ChangeEvent<HTMLInputElement>, checked: boolean) => void;
|
|
15
|
+
className?: string;
|
|
16
|
+
} & {
|
|
17
|
+
priority?: boolean;
|
|
18
|
+
}>;
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { IconProps } from "@/components/icon";
|
|
2
|
+
import type { ChangeEvent, HTMLAttributes, ReactNode } from "react";
|
|
3
|
+
export type CheckboxVariant = "plain" | "card";
|
|
4
|
+
export type CheckboxProps<T extends string = string> = Omit<HTMLAttributes<HTMLInputElement>, "onChange" | "title"> & {
|
|
5
|
+
name: string;
|
|
6
|
+
value: T;
|
|
7
|
+
title: ReactNode;
|
|
8
|
+
description?: ReactNode | null;
|
|
9
|
+
icon?: Omit<IconProps, "label"> | null;
|
|
10
|
+
iconLabel?: string | null;
|
|
11
|
+
checked?: boolean;
|
|
12
|
+
defaultChecked?: boolean;
|
|
13
|
+
required?: boolean;
|
|
14
|
+
showRequiredMark?: boolean;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
variant?: CheckboxVariant;
|
|
17
|
+
onChange?: (event: ChangeEvent<HTMLInputElement>, checked: boolean) => void;
|
|
18
|
+
className?: string;
|
|
19
|
+
};
|
|
20
|
+
export type CheckboxViewProps<T extends string = string> = CheckboxProps<T> & {
|
|
21
|
+
isChecked: boolean;
|
|
22
|
+
onChangeInternal?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
23
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { CheckboxViewProps } from "./Checkbox.model";
|
|
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;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { IconProps } from "@/components/icon";
|
|
2
|
+
import type { HTMLAttributes } from "react";
|
|
3
|
+
export type CheckboxGroupOption<T extends string> = {
|
|
4
|
+
value: T;
|
|
5
|
+
title: string;
|
|
6
|
+
description?: string | null;
|
|
7
|
+
icon?: Omit<IconProps, "label"> | null;
|
|
8
|
+
iconLabel?: string | null;
|
|
9
|
+
required?: boolean;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
};
|
|
12
|
+
export type CheckboxGroupVariant = "plain" | "card";
|
|
13
|
+
export type CheckboxGroupLayout = "stack" | "grid";
|
|
14
|
+
export type CheckboxGroupTranslations = {
|
|
15
|
+
ariaLabel?: string;
|
|
16
|
+
};
|
|
17
|
+
export type CheckboxGroupProps<T extends string> = {
|
|
18
|
+
ariaLabel?: string;
|
|
19
|
+
legend?: string | null;
|
|
20
|
+
hideLegend?: boolean;
|
|
21
|
+
legendProps?: HTMLAttributes<HTMLLegendElement>;
|
|
22
|
+
name: string;
|
|
23
|
+
disabled?: boolean;
|
|
24
|
+
required?: boolean;
|
|
25
|
+
values?: T[];
|
|
26
|
+
defaultValues?: T[];
|
|
27
|
+
options: CheckboxGroupOption<T>[];
|
|
28
|
+
onChange?: (next: T[]) => void;
|
|
29
|
+
hiddenInputName?: string;
|
|
30
|
+
layout?: CheckboxGroupLayout;
|
|
31
|
+
variant?: CheckboxGroupVariant;
|
|
32
|
+
translations?: CheckboxGroupTranslations;
|
|
33
|
+
};
|
|
34
|
+
export type CheckboxGroupViewProps<T extends string> = CheckboxGroupProps<T> & {
|
|
35
|
+
selectedValues: T[];
|
|
36
|
+
isChecked: (value: T) => boolean;
|
|
37
|
+
onToggle?: (value: T) => void;
|
|
38
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { CheckboxGroupViewProps } from "./CheckboxGroup.model";
|
|
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;
|
|
@@ -30,6 +30,7 @@ export type DialogViewProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
30
30
|
contentRef?: Ref<HTMLDivElement>;
|
|
31
31
|
containerChildren?: ReactNode;
|
|
32
32
|
classNameHeader?: string;
|
|
33
|
+
actionsClassName?: string;
|
|
33
34
|
scroll?: "paper" | "body";
|
|
34
35
|
fullScreen?: boolean;
|
|
35
36
|
onClose?: () => void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { DialogViewProps } from "./Dialog.model";
|
|
2
2
|
import type { JSX } from "react";
|
|
3
|
-
export declare function DialogView({ open, title, containerRef, hideTitle, renderHeader, hideCloseButton, translations, actions, contentProps, contentRef, containerChildren, className, classNameHeader, height, scroll, fullScreen, titleProps, children, onClose, onCloseKeyDown, wrapperProps, closeOnBackdropClick, closeButtonProps, closeButtonRef, ...rest }: DialogViewProps): JSX.Element;
|
|
3
|
+
export declare function DialogView({ open, title, containerRef, hideTitle, renderHeader, hideCloseButton, translations, actions, contentProps, contentRef, containerChildren, className, classNameHeader, actionsClassName, height, scroll, fullScreen, titleProps, children, onClose, onCloseKeyDown, wrapperProps, closeOnBackdropClick, closeButtonProps, closeButtonRef, ...rest }: DialogViewProps): JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type JSX } from "react";
|
|
2
|
+
import type { TabsProps } from "./Tabs.model";
|
|
3
|
+
declare function TabsClient<Value extends string = string>({ items, value, defaultValue, activationMode, disabled, onChange, ...rest }: TabsProps<Value>): JSX.Element;
|
|
4
|
+
declare const _default: import("react").MemoExoticComponent<typeof TabsClient>;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { ChipProps } from "../chip";
|
|
2
|
+
import type { KeyboardEvent, MouseEvent, ReactNode, RefObject } from "react";
|
|
3
|
+
export type TabsBadgeChipProps = Omit<ChipProps, "label">;
|
|
4
|
+
export type TabsItem<Value extends string = string> = {
|
|
5
|
+
value: Value;
|
|
6
|
+
label: ReactNode;
|
|
7
|
+
badge?: ReactNode;
|
|
8
|
+
badgeChipProps?: TabsBadgeChipProps;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
className?: string;
|
|
11
|
+
content: ReactNode;
|
|
12
|
+
};
|
|
13
|
+
export type TabsChangeEvent<Value extends string = string> = {
|
|
14
|
+
value: Value;
|
|
15
|
+
index: number;
|
|
16
|
+
};
|
|
17
|
+
export type TabsProps<Value extends string = string> = {
|
|
18
|
+
id: string;
|
|
19
|
+
ariaLabel?: string;
|
|
20
|
+
items: TabsItem<Value>[];
|
|
21
|
+
value?: Value;
|
|
22
|
+
defaultValue?: Value;
|
|
23
|
+
activationMode?: "automatic" | "manual";
|
|
24
|
+
orientation?: "horizontal" | "vertical";
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
fullWidth?: boolean;
|
|
27
|
+
className?: string;
|
|
28
|
+
listClassName?: string;
|
|
29
|
+
tabClassName?: string;
|
|
30
|
+
panelsClassName?: string;
|
|
31
|
+
badgeChipProps?: TabsBadgeChipProps;
|
|
32
|
+
onChange?: (event: TabsChangeEvent<Value>) => void;
|
|
33
|
+
};
|
|
34
|
+
export type TabsClientState<Value extends string = string> = {
|
|
35
|
+
activeValue: Value;
|
|
36
|
+
focusIndex: number;
|
|
37
|
+
tabsRef: RefObject<Array<HTMLButtonElement | null>>;
|
|
38
|
+
onTabClick: (index: number, event: MouseEvent<HTMLButtonElement>) => void;
|
|
39
|
+
onTabKeyDown: (index: number, event: KeyboardEvent<HTMLButtonElement>) => void;
|
|
40
|
+
};
|
|
41
|
+
export type TabsViewProps<Value extends string = string> = TabsProps<Value> & {
|
|
42
|
+
_clientState?: TabsClientState<Value>;
|
|
43
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { TabsViewProps } from "./Tabs.model";
|
|
2
|
+
import type { JSX } from "react";
|
|
3
|
+
export declare function TabsView<Value extends string = string>({ id, ariaLabel, items, value, defaultValue, orientation, disabled, fullWidth, className, listClassName, tabClassName, panelsClassName, badgeChipProps, _clientState, }: TabsViewProps<Value>): JSX.Element | null;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
export { Accordion } from "./components/accordion";
|
|
2
2
|
export { Animated } from "./components/animated";
|
|
3
3
|
export { AnimatedText } from "./components/animatedText";
|
|
4
|
+
export { Autocomplete } from "./components/autocomplete";
|
|
4
5
|
export { Avatar } from "./components/avatar";
|
|
5
6
|
export { BaseLink } from "./components/base-link";
|
|
6
7
|
export { Button } from "./components/button";
|
|
7
8
|
export { Calendly } from "./components/calendly";
|
|
8
9
|
export { Card } from "./components/card";
|
|
9
10
|
export { Carousel } from "./components/carousel";
|
|
11
|
+
export { Checkbox } from "./components/checkbox";
|
|
12
|
+
export { CheckboxGroup } from "./components/checkbox-group";
|
|
10
13
|
export { Chip } from "./components/chip";
|
|
11
14
|
export { DatePicker } from "./components/datePicker";
|
|
12
15
|
export { Dialog } from "./components/dialog";
|
|
@@ -44,6 +47,7 @@ export { Snackbar } from "./components/snackbar";
|
|
|
44
47
|
export { Stepper } from "./components/stepper";
|
|
45
48
|
export { Switch } from "./components/switch";
|
|
46
49
|
export { Table } from "./components/table";
|
|
50
|
+
export { Tabs } from "./components/tabs";
|
|
47
51
|
export { Teaser } from "./components/teaser";
|
|
48
52
|
export { Tooltip } from "./components/tooltip";
|
|
49
53
|
export { UIRuntimeProvider, useUIRuntime } from "./helpers/runtime.client";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prokodo/ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.14",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "UI components for production-grade Next.js + Headless CMS (Strapi, Contentful, Headless WordPress) websites by prokodo – built for Core Web Vitals & SEO.",
|
|
6
6
|
"sideEffects": [
|
|
@@ -46,6 +46,11 @@
|
|
|
46
46
|
"import": "./dist/components/animatedText/index.js",
|
|
47
47
|
"types": "./dist/types/components/animatedText/index.d.ts"
|
|
48
48
|
},
|
|
49
|
+
"./autocomplete": {
|
|
50
|
+
"import": "./dist/components/autocomplete/index.js",
|
|
51
|
+
"types": "./dist/types/components/autocomplete/index.d.ts"
|
|
52
|
+
},
|
|
53
|
+
"./autocomplete.css": "./dist/components/autocomplete/Autocomplete.css",
|
|
49
54
|
"./avatar": {
|
|
50
55
|
"import": "./dist/components/avatar/index.js",
|
|
51
56
|
"types": "./dist/types/components/avatar/index.d.ts"
|
|
@@ -74,6 +79,16 @@
|
|
|
74
79
|
"types": "./dist/types/components/carousel/index.d.ts"
|
|
75
80
|
},
|
|
76
81
|
"./carousel.css": "./dist/components/carousel/Carousel.css",
|
|
82
|
+
"./checkbox": {
|
|
83
|
+
"import": "./dist/components/checkbox/index.js",
|
|
84
|
+
"types": "./dist/types/components/checkbox/index.d.ts"
|
|
85
|
+
},
|
|
86
|
+
"./checkbox.css": "./dist/components/checkbox/Checkbox.css",
|
|
87
|
+
"./checkbox-group": {
|
|
88
|
+
"import": "./dist/components/checkbox-group/index.js",
|
|
89
|
+
"types": "./dist/types/components/checkbox-group/index.d.ts"
|
|
90
|
+
},
|
|
91
|
+
"./checkbox-group.css": "./dist/components/checkbox-group/CheckboxGroup.css",
|
|
77
92
|
"./chip": {
|
|
78
93
|
"import": "./dist/components/chip/index.js",
|
|
79
94
|
"types": "./dist/types/components/chip/index.d.ts"
|
|
@@ -251,6 +266,11 @@
|
|
|
251
266
|
"types": "./dist/types/components/table/index.d.ts"
|
|
252
267
|
},
|
|
253
268
|
"./table.css": "./dist/components/table/Table.css",
|
|
269
|
+
"./tabs": {
|
|
270
|
+
"import": "./dist/components/tabs/index.js",
|
|
271
|
+
"types": "./dist/types/components/tabs/index.d.ts"
|
|
272
|
+
},
|
|
273
|
+
"./tabs.css": "./dist/components/tabs/Tabs.css",
|
|
254
274
|
"./teaser": {
|
|
255
275
|
"import": "./dist/components/teaser/index.js",
|
|
256
276
|
"types": "./dist/types/components/teaser/index.d.ts"
|