@telepix-lab/telepix-ui 0.1.2 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -3
- package/dist/cjs/button/index.d.ts +3 -3
- package/dist/cjs/button/types.d.ts +12 -0
- package/dist/cjs/client.d.ts +16 -0
- package/dist/cjs/client.js +13010 -0
- package/dist/cjs/dialog/index.d.ts +3 -3
- package/dist/cjs/horizontal-tab/index.d.ts +2 -2
- package/dist/cjs/horizontal-tab/types.d.ts +5 -0
- package/dist/cjs/index.d.ts +0 -44
- package/dist/cjs/index.js +3703 -14497
- package/dist/cjs/input/index.d.ts +2 -2
- package/dist/cjs/input/types.d.ts +5 -0
- package/dist/cjs/lib/twMerge.d.ts +2 -0
- package/dist/cjs/lib/utils.d.ts +2 -0
- package/dist/cjs/multiple-select/index.d.ts +2 -2
- package/dist/cjs/multiple-select/types.d.ts +5 -0
- package/dist/cjs/pagination/index.d.ts +8 -8
- package/dist/cjs/radio-group/index.d.ts +2 -1
- package/dist/cjs/radio-group/types.d.ts +5 -0
- package/dist/cjs/select/index.d.ts +3 -3
- package/dist/cjs/select/types.d.ts +10 -0
- package/dist/cjs/styles.css +1 -1597
- package/dist/cjs/tag/index.d.ts +1 -1
- package/dist/cjs/tag/types.d.ts +10 -0
- package/dist/cjs/text/index.d.ts +5 -5
- package/dist/cjs/text/types.d.ts +74 -0
- package/dist/cjs/tooltip/index.d.ts +3 -3
- package/dist/cjs/tooltip/types.d.ts +10 -0
- package/dist/cjs/vertical-menu/index.d.ts +3 -3
- package/dist/cjs/vertical-menu/types.d.ts +10 -0
- package/dist/client.d.ts +398 -0
- package/dist/esm/button/index.d.ts +3 -3
- package/dist/esm/button/types.d.ts +12 -0
- package/dist/esm/client.d.ts +16 -0
- package/dist/esm/client.js +12927 -0
- package/dist/esm/dialog/index.d.ts +3 -3
- package/dist/esm/horizontal-tab/index.d.ts +2 -2
- package/dist/esm/horizontal-tab/types.d.ts +5 -0
- package/dist/esm/index.d.ts +0 -44
- package/dist/esm/index.js +3708 -14356
- package/dist/esm/input/index.d.ts +2 -2
- package/dist/esm/input/types.d.ts +5 -0
- package/dist/esm/lib/twMerge.d.ts +2 -0
- package/dist/esm/lib/utils.d.ts +2 -0
- package/dist/esm/multiple-select/index.d.ts +2 -2
- package/dist/esm/multiple-select/types.d.ts +5 -0
- package/dist/esm/pagination/index.d.ts +8 -8
- package/dist/esm/radio-group/index.d.ts +2 -1
- package/dist/esm/radio-group/types.d.ts +5 -0
- package/dist/esm/select/index.d.ts +3 -3
- package/dist/esm/select/types.d.ts +10 -0
- package/dist/esm/styles.css +1 -1597
- package/dist/esm/tag/index.d.ts +1 -1
- package/dist/esm/tag/types.d.ts +10 -0
- package/dist/esm/text/index.d.ts +5 -5
- package/dist/esm/text/types.d.ts +74 -0
- package/dist/esm/tooltip/index.d.ts +3 -3
- package/dist/esm/tooltip/types.d.ts +10 -0
- package/dist/esm/vertical-menu/index.d.ts +3 -3
- package/dist/esm/vertical-menu/types.d.ts +10 -0
- package/dist/index.d.ts +116 -2298
- package/package.json +15 -8
- package/dist/cjs/autocomplete/styles.d.ts +0 -50
- package/dist/cjs/button/styles.d.ts +0 -95
- package/dist/cjs/calendar/styles.d.ts +0 -103
- package/dist/cjs/card/styles.d.ts +0 -28
- package/dist/cjs/checkbox/styles.d.ts +0 -43
- package/dist/cjs/context-menu/styleVariable.stylex.d.ts +0 -4
- package/dist/cjs/context-menu/styles.d.ts +0 -103
- package/dist/cjs/date-picker/styles.d.ts +0 -5
- package/dist/cjs/dialog/styles.d.ts +0 -23
- package/dist/cjs/horizontal-tab/styles.d.ts +0 -74
- package/dist/cjs/index.css +0 -1
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/input/styles.d.ts +0 -75
- package/dist/cjs/interactive-list-item/styles.d.ts +0 -49
- package/dist/cjs/mode-tab/styles.d.ts +0 -49
- package/dist/cjs/multiple-select/styles.d.ts +0 -138
- package/dist/cjs/pagination/styles.d.ts +0 -47
- package/dist/cjs/radio-group/styles.d.ts +0 -47
- package/dist/cjs/select/styles.d.ts +0 -107
- package/dist/cjs/styles/common.d.ts +0 -7
- package/dist/cjs/styles/layout.stylex.d.ts +0 -19
- package/dist/cjs/styles/primitiveColors.stylex.d.ts +0 -175
- package/dist/cjs/styles/semanticColors.stylex.d.ts +0 -50
- package/dist/cjs/styles/shadow.stylex.d.ts +0 -11
- package/dist/cjs/styles/transitions.stylex.d.ts +0 -6
- package/dist/cjs/styles/typography.stylex.d.ts +0 -43
- package/dist/cjs/table/styles.d.ts +0 -45
- package/dist/cjs/tag/styles.d.ts +0 -91
- package/dist/cjs/text/styles.d.ts +0 -290
- package/dist/cjs/textarea/styles.d.ts +0 -30
- package/dist/cjs/tooltip/styles.d.ts +0 -59
- package/dist/cjs/vertical-menu/styles.d.ts +0 -84
- package/dist/esm/autocomplete/styles.d.ts +0 -50
- package/dist/esm/button/styles.d.ts +0 -95
- package/dist/esm/calendar/styles.d.ts +0 -103
- package/dist/esm/card/styles.d.ts +0 -28
- package/dist/esm/checkbox/styles.d.ts +0 -43
- package/dist/esm/context-menu/styleVariable.stylex.d.ts +0 -4
- package/dist/esm/context-menu/styles.d.ts +0 -103
- package/dist/esm/date-picker/styles.d.ts +0 -5
- package/dist/esm/dialog/styles.d.ts +0 -23
- package/dist/esm/horizontal-tab/styles.d.ts +0 -74
- package/dist/esm/index.css +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/input/styles.d.ts +0 -75
- package/dist/esm/interactive-list-item/styles.d.ts +0 -49
- package/dist/esm/mode-tab/styles.d.ts +0 -49
- package/dist/esm/multiple-select/styles.d.ts +0 -138
- package/dist/esm/pagination/styles.d.ts +0 -47
- package/dist/esm/radio-group/styles.d.ts +0 -47
- package/dist/esm/select/styles.d.ts +0 -107
- package/dist/esm/styles/common.d.ts +0 -7
- package/dist/esm/styles/layout.stylex.d.ts +0 -19
- package/dist/esm/styles/primitiveColors.stylex.d.ts +0 -175
- package/dist/esm/styles/semanticColors.stylex.d.ts +0 -50
- package/dist/esm/styles/shadow.stylex.d.ts +0 -11
- package/dist/esm/styles/transitions.stylex.d.ts +0 -6
- package/dist/esm/styles/typography.stylex.d.ts +0 -43
- package/dist/esm/table/styles.d.ts +0 -45
- package/dist/esm/tag/styles.d.ts +0 -91
- package/dist/esm/text/styles.d.ts +0 -290
- package/dist/esm/textarea/styles.d.ts +0 -30
- package/dist/esm/tooltip/styles.d.ts +0 -59
- package/dist/esm/vertical-menu/styles.d.ts +0 -84
package/dist/esm/tag/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TagSize, TagVariant } from "./styles";
|
|
2
1
|
import React from "react";
|
|
2
|
+
import { TagSize, TagVariant } from "./types";
|
|
3
3
|
interface TagProps extends React.DetailedHTMLProps<Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "value">, HTMLButtonElement> {
|
|
4
4
|
value: {
|
|
5
5
|
id: string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const TAG_VARIANTS: {
|
|
2
|
+
readonly FILLED: "filled";
|
|
3
|
+
readonly ACCENT: "accent";
|
|
4
|
+
};
|
|
5
|
+
export type TagVariant = (typeof TAG_VARIANTS)[keyof typeof TAG_VARIANTS];
|
|
6
|
+
export declare const TAG_SIZES: {
|
|
7
|
+
readonly REGULAR: "regular";
|
|
8
|
+
readonly SMALL: "small";
|
|
9
|
+
};
|
|
10
|
+
export type TagSize = (typeof TAG_SIZES)[keyof typeof TAG_SIZES];
|
package/dist/esm/text/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { FontWeight, TextAlignment, TextSize, TextVariant } from "./types";
|
|
3
3
|
export interface TextProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
4
4
|
children: React.ReactNode;
|
|
5
|
-
size?:
|
|
6
|
-
weight?:
|
|
7
|
-
align?:
|
|
8
|
-
variant?:
|
|
5
|
+
size?: TextSize;
|
|
6
|
+
weight?: FontWeight;
|
|
7
|
+
align?: TextAlignment;
|
|
8
|
+
variant?: TextVariant;
|
|
9
9
|
color?: string;
|
|
10
10
|
as?: React.ElementType;
|
|
11
11
|
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
export declare const TEXT_SIZES: {
|
|
2
|
+
readonly XSMALL: "xsmall";
|
|
3
|
+
readonly LABEL: "label";
|
|
4
|
+
readonly BODY: "body";
|
|
5
|
+
readonly BASE: "base";
|
|
6
|
+
readonly LARGE: "large";
|
|
7
|
+
readonly XLARGE: "xl";
|
|
8
|
+
readonly XXLARGE: "xxl";
|
|
9
|
+
readonly XXXLARGE: "xxxl";
|
|
10
|
+
readonly XXXXLARGE: "xxxxl";
|
|
11
|
+
};
|
|
12
|
+
export type TextSize = (typeof TEXT_SIZES)[keyof typeof TEXT_SIZES];
|
|
13
|
+
export declare const FONT_WEIGHTS: {
|
|
14
|
+
readonly THIN: "thin";
|
|
15
|
+
readonly EXTRALIGHT: "extralight";
|
|
16
|
+
readonly LIGHT: "light";
|
|
17
|
+
readonly REGULAR: "regular";
|
|
18
|
+
readonly MEDIUM: "medium";
|
|
19
|
+
readonly SEMIBOLD: "semibold";
|
|
20
|
+
readonly BOLD: "bold";
|
|
21
|
+
readonly EXTRABOLD: "extrabold";
|
|
22
|
+
};
|
|
23
|
+
export type FontWeight = (typeof FONT_WEIGHTS)[keyof typeof FONT_WEIGHTS];
|
|
24
|
+
export declare const TEXT_ALIGNMENTS: {
|
|
25
|
+
readonly LEFT: "left";
|
|
26
|
+
readonly CENTER: "center";
|
|
27
|
+
readonly RIGHT: "right";
|
|
28
|
+
readonly JUSTIFY: "justify";
|
|
29
|
+
};
|
|
30
|
+
export type TextAlignment = (typeof TEXT_ALIGNMENTS)[keyof typeof TEXT_ALIGNMENTS];
|
|
31
|
+
export declare const TEXT_VARIANTS: {
|
|
32
|
+
BOLD3XLARGEBOLD: string;
|
|
33
|
+
BOLD2XLARGEBOLDCOMPACT: string;
|
|
34
|
+
BOLD2XLARGEBOLD: string;
|
|
35
|
+
BOLDXLARGEBOLDCOMPACT: string;
|
|
36
|
+
BOLDXLARGEBOLD: string;
|
|
37
|
+
BOLDLARGEBOLDCOMPACT: string;
|
|
38
|
+
BOLDLARGEBOLD: string;
|
|
39
|
+
BOLDBASEBOLDCOMPACT: string;
|
|
40
|
+
BOLDBASEBOLD: string;
|
|
41
|
+
BOLDBODYBOLDCOMPACT: string;
|
|
42
|
+
BOLDBODYBOLD: string;
|
|
43
|
+
BOLDLABELBOLDCOMPACT: string;
|
|
44
|
+
BOLDLABELBOLD: string;
|
|
45
|
+
BOLDXSMALLBOLD: string;
|
|
46
|
+
SEMIBOLDBASESEMIBOLDCOMPACT: string;
|
|
47
|
+
SEMIBOLDBASESEMIBOLD: string;
|
|
48
|
+
SEMIBOLDBODYSEMIBOLDCOMPACT: string;
|
|
49
|
+
SEMIBOLDBODYSEMIBOLD: string;
|
|
50
|
+
SEMIBOLDLABELSEMIBOLDCOMPACT: string;
|
|
51
|
+
MED3XLARGEMED: string;
|
|
52
|
+
MEDXLARGEMED: string;
|
|
53
|
+
MEDLARGEMED: string;
|
|
54
|
+
MEDBASEMEDCOMPACT: string;
|
|
55
|
+
MEDBASEMED: string;
|
|
56
|
+
MEDBODYMEDCOMPACT: string;
|
|
57
|
+
MEDBODYMED: string;
|
|
58
|
+
MEDLABELMEDCOMPACT: string;
|
|
59
|
+
MEDLABELMED: string;
|
|
60
|
+
MEDXSMALLMED: string;
|
|
61
|
+
REGULAR3XLARGE: string;
|
|
62
|
+
REGULAR2XLARGE: string;
|
|
63
|
+
REGULARXLARGE: string;
|
|
64
|
+
REGULARLARGECOMPACT: string;
|
|
65
|
+
REGULARLARGE: string;
|
|
66
|
+
REGULARBASECOMPACT: string;
|
|
67
|
+
REGULARBASE: string;
|
|
68
|
+
REGULARBODYCOMPACT: string;
|
|
69
|
+
REGULARBODY: string;
|
|
70
|
+
REGULARLABELCOMPACT: string;
|
|
71
|
+
REGULARLABEL: string;
|
|
72
|
+
REGULARXSMALL: string;
|
|
73
|
+
};
|
|
74
|
+
export type TextVariant = (typeof TEXT_VARIANTS)[keyof typeof TEXT_VARIANTS];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Tooltip as TooltipRadix } from "radix-ui";
|
|
2
|
-
import { TooltipShortSizeStyles, TooltipShortVariantStyles } from "./styles";
|
|
3
2
|
import React from "react";
|
|
3
|
+
import { TooltipShortSize, TooltipShortVariant } from "./types";
|
|
4
4
|
export declare const Tooltip: (props: React.ComponentProps<typeof TooltipRadix.Root & typeof TooltipRadix.TooltipProvider>) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export declare const TooltipTrigger: React.ForwardRefExoticComponent<TooltipRadix.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
6
6
|
interface TooltipDescriptionProps {
|
|
@@ -8,8 +8,8 @@ interface TooltipDescriptionProps {
|
|
|
8
8
|
}
|
|
9
9
|
interface TooltipShortDescriptionProps {
|
|
10
10
|
type: "short";
|
|
11
|
-
variant?:
|
|
12
|
-
size?:
|
|
11
|
+
variant?: TooltipShortVariant;
|
|
12
|
+
size?: TooltipShortSize;
|
|
13
13
|
}
|
|
14
14
|
type TooltipContentProps = React.ComponentProps<typeof TooltipRadix.Content> & (TooltipDescriptionProps | TooltipShortDescriptionProps);
|
|
15
15
|
export declare const TooltipContent: ({ type, ...rest }: TooltipContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const TOOLTIP_SHORT_VARIANTS: {
|
|
2
|
+
readonly DEFAULT: "default";
|
|
3
|
+
readonly ACCENT: "accent";
|
|
4
|
+
};
|
|
5
|
+
export type TooltipShortVariant = (typeof TOOLTIP_SHORT_VARIANTS)[keyof typeof TOOLTIP_SHORT_VARIANTS];
|
|
6
|
+
export declare const TOOLTIP_SHORT_SIZES: {
|
|
7
|
+
readonly REGULAR: "regular";
|
|
8
|
+
readonly SMALL: "small";
|
|
9
|
+
};
|
|
10
|
+
export type TooltipShortSize = (typeof TOOLTIP_SHORT_SIZES)[keyof typeof TOOLTIP_SHORT_SIZES];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { VerticalMenuSize, VerticalMenuVariant } from "./types";
|
|
3
3
|
interface VerticalMenusProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
4
|
disabled?: boolean;
|
|
5
5
|
value?: string;
|
|
@@ -10,8 +10,8 @@ interface VerticalMenuProps extends React.DetailedHTMLProps<React.ButtonHTMLAttr
|
|
|
10
10
|
value: string;
|
|
11
11
|
label?: string;
|
|
12
12
|
icon?: React.ReactNode;
|
|
13
|
-
variant?:
|
|
14
|
-
size?:
|
|
13
|
+
variant?: VerticalMenuVariant;
|
|
14
|
+
size?: VerticalMenuSize;
|
|
15
15
|
}
|
|
16
16
|
export declare const VerticalMenu: React.ForwardRefExoticComponent<Omit<VerticalMenuProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
17
17
|
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const VERTICAL_MENU_SIZES: {
|
|
2
|
+
readonly REGULAR: "regular";
|
|
3
|
+
readonly SMALL: "small";
|
|
4
|
+
};
|
|
5
|
+
export type VerticalMenuSize = (typeof VERTICAL_MENU_SIZES)[keyof typeof VERTICAL_MENU_SIZES];
|
|
6
|
+
export declare const VERTICAL_MENU_VARIANTS: {
|
|
7
|
+
readonly ACCENT: "accent";
|
|
8
|
+
readonly GHOST: "ghost";
|
|
9
|
+
};
|
|
10
|
+
export type VerticalMenuVariant = (typeof VERTICAL_MENU_VARIANTS)[keyof typeof VERTICAL_MENU_VARIANTS];
|