letalkui 0.0.24 → 0.0.26
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/dist/chunk-BPQFVMOU.mjs +1 -0
- package/dist/chunk-BPQFVMOU.mjs.map +1 -0
- package/dist/chunk-KSM7KBI2.mjs +1 -0
- package/dist/chunk-KSM7KBI2.mjs.map +1 -0
- package/dist/chunk-QECL5BDT.mjs +1 -0
- package/dist/chunk-QECL5BDT.mjs.map +1 -0
- package/dist/chunk-QEHOSBMB.mjs +1 -0
- package/dist/chunk-QEHOSBMB.mjs.map +1 -0
- package/dist/chunk-QHIUOSHY.mjs +1 -0
- package/dist/chunk-QHIUOSHY.mjs.map +1 -0
- package/dist/chunk-W2LVCAVL.mjs +1 -0
- package/dist/chunk-W2LVCAVL.mjs.map +1 -0
- package/dist/chunk-XGNCZ3TH.mjs +1 -0
- package/dist/chunk-XGNCZ3TH.mjs.map +1 -0
- package/dist/chunk-YJLRG5U3.mjs +1 -0
- package/dist/chunk-YJLRG5U3.mjs.map +1 -0
- package/dist/chunk-ZUKIQQ3Q.mjs +1 -0
- package/dist/chunk-ZUKIQQ3Q.mjs.map +1 -0
- package/dist/components/index.d.mts +176 -0
- package/dist/components/index.d.ts +176 -0
- package/dist/components/index.js +1 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/index.mjs +1 -0
- package/dist/components/index.mjs.map +1 -0
- package/dist/containers/index.d.mts +25 -0
- package/dist/containers/index.d.ts +25 -0
- package/dist/containers/index.js +1 -0
- package/dist/containers/index.js.map +1 -0
- package/dist/containers/index.mjs +1 -0
- package/dist/containers/index.mjs.map +1 -0
- package/dist/index.css +2 -0
- package/dist/index.css.map +1 -0
- package/dist/index.d.mts +8 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +1 -0
- package/dist/index.mjs.map +1 -0
- package/dist/primitives/index.d.mts +25 -0
- package/dist/primitives/index.d.ts +25 -0
- package/dist/primitives/index.js +1 -0
- package/dist/primitives/index.js.map +1 -0
- package/dist/primitives/index.mjs +1 -0
- package/dist/primitives/index.mjs.map +1 -0
- package/dist/styles/index.d.mts +294 -0
- package/dist/styles/index.d.ts +294 -0
- package/dist/styles/index.js +1 -0
- package/dist/styles/index.js.map +1 -0
- package/dist/styles/index.mjs +1 -0
- package/dist/styles/index.mjs.map +1 -0
- package/dist/utils/index.d.mts +9 -0
- package/dist/utils/index.d.ts +9 -0
- package/dist/utils/index.js +1 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/index.mjs +1 -0
- package/dist/utils/index.mjs.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { PrimitiveButtonProps, PrimitiveTextProps } from '../primitives/index.js';
|
|
3
|
+
import { DialogProps, InputProps, SxProps, Theme, AutocompleteProps } from '@mui/material';
|
|
4
|
+
import * as React$1 from 'react';
|
|
5
|
+
import React__default, { PropsWithChildren, ReactNode } from 'react';
|
|
6
|
+
import { StyleProperties } from '../utils/index.js';
|
|
7
|
+
|
|
8
|
+
type ButtonProps = Omit<PrimitiveButtonProps, "sx" | "variant">;
|
|
9
|
+
|
|
10
|
+
declare const Button: {
|
|
11
|
+
Primary: ({ children, ...props }: ButtonProps) => React.ReactElement;
|
|
12
|
+
Secondary: ({ children, ...props }: ButtonProps) => react_jsx_runtime.JSX.Element;
|
|
13
|
+
Tertiary: ({ children, ...props }: ButtonProps) => react_jsx_runtime.JSX.Element;
|
|
14
|
+
Ghost: ({ children, ...props }: ButtonProps) => react_jsx_runtime.JSX.Element;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
type BaseTextProps = {
|
|
18
|
+
color?: string;
|
|
19
|
+
fontWeight?: "medium" | "semibold" | "bold" | "regular";
|
|
20
|
+
};
|
|
21
|
+
type TextProps = Omit<PrimitiveTextProps, "variant"> & BaseTextProps;
|
|
22
|
+
type TitleTextProps = TextProps & {
|
|
23
|
+
type: "h1" | "h2" | "h3";
|
|
24
|
+
};
|
|
25
|
+
type DisplayTextProps = TextProps & {
|
|
26
|
+
type: "display1" | "display2";
|
|
27
|
+
};
|
|
28
|
+
type BodyTextProps = TextProps & {
|
|
29
|
+
type: "default" | "large" | "small1" | "small2" | "smaller1" | "smaller2" | "smaller3";
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
declare const Text: {
|
|
33
|
+
Title: (props: TitleTextProps) => react_jsx_runtime.JSX.Element;
|
|
34
|
+
Body: (props: BodyTextProps) => react_jsx_runtime.JSX.Element;
|
|
35
|
+
Display: (props: DisplayTextProps) => react_jsx_runtime.JSX.Element;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
type TitleProps = PropsWithChildren;
|
|
39
|
+
type HeaderProps = PropsWithChildren;
|
|
40
|
+
type FooterProps = PropsWithChildren;
|
|
41
|
+
type ContentProps = PropsWithChildren;
|
|
42
|
+
type ContainerProps = DialogProps;
|
|
43
|
+
type BaseButtonProps = {
|
|
44
|
+
onClick: () => void;
|
|
45
|
+
};
|
|
46
|
+
type ConfirmButtonProps = PropsWithChildren<{
|
|
47
|
+
disabled?: boolean;
|
|
48
|
+
startIcon?: ReactNode;
|
|
49
|
+
} & BaseButtonProps>;
|
|
50
|
+
type CloseIconButtonProps = BaseButtonProps;
|
|
51
|
+
type CancelButtonProps = PropsWithChildren<BaseButtonProps>;
|
|
52
|
+
|
|
53
|
+
declare const Dialog: {
|
|
54
|
+
Container: ({ children, open, onClose, maxWidth, fullWidth, ...props }: ContainerProps) => react_jsx_runtime.JSX.Element;
|
|
55
|
+
Title: ({ children }: TitleProps) => react_jsx_runtime.JSX.Element;
|
|
56
|
+
Content: ({ children }: ContentProps) => react_jsx_runtime.JSX.Element;
|
|
57
|
+
CloseIconButton: ({ onClick }: CloseIconButtonProps) => react_jsx_runtime.JSX.Element;
|
|
58
|
+
Footer: ({ children }: FooterProps) => react_jsx_runtime.JSX.Element;
|
|
59
|
+
Header: ({ children }: HeaderProps) => react_jsx_runtime.JSX.Element;
|
|
60
|
+
ConfirmButton: (props: ConfirmButtonProps) => react_jsx_runtime.JSX.Element;
|
|
61
|
+
CancelButton: (props: CancelButtonProps) => react_jsx_runtime.JSX.Element;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
type PrimitiveInputProps = {
|
|
65
|
+
placeholder?: string;
|
|
66
|
+
disabled?: boolean;
|
|
67
|
+
fullWidth?: boolean;
|
|
68
|
+
name?: string;
|
|
69
|
+
onChange?: (props: React__default.ChangeEvent<HTMLTextAreaElement | HTMLInputElement>) => Promise<void> | void;
|
|
70
|
+
type: "text" | "button" | "password" | "radio" | "number" | "file" | "checkbox" | "email";
|
|
71
|
+
value?: string;
|
|
72
|
+
readonly?: boolean;
|
|
73
|
+
sx?: StyleProperties;
|
|
74
|
+
showInputUnderline?: boolean;
|
|
75
|
+
startAdornment?: ReactNode;
|
|
76
|
+
endAdornment?: ReactNode;
|
|
77
|
+
className?: string;
|
|
78
|
+
inputProps?: React__default.InputHTMLAttributes<HTMLInputElement>;
|
|
79
|
+
InputProps?: Partial<Omit<InputProps, "type"> & {
|
|
80
|
+
inputProps?: React__default.InputHTMLAttributes<HTMLInputElement>;
|
|
81
|
+
}>;
|
|
82
|
+
id?: string;
|
|
83
|
+
size?: "small";
|
|
84
|
+
minRows?: number;
|
|
85
|
+
multiline?: boolean;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
type InputErrorTextProps = {
|
|
89
|
+
errorText?: string;
|
|
90
|
+
};
|
|
91
|
+
type InputLabelProps = {
|
|
92
|
+
label?: string;
|
|
93
|
+
subLabel?: string;
|
|
94
|
+
isOptional?: boolean;
|
|
95
|
+
};
|
|
96
|
+
type InputFieldProps = PrimitiveInputProps & {
|
|
97
|
+
label?: string;
|
|
98
|
+
subLabel?: string;
|
|
99
|
+
errorText?: string;
|
|
100
|
+
isOptional?: boolean;
|
|
101
|
+
id?: string;
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
type TextFieldProps = InputFieldProps;
|
|
105
|
+
|
|
106
|
+
declare const TextField: ({ label, subLabel, errorText, isOptional, id, ...props }: TextFieldProps) => react_jsx_runtime.JSX.Element;
|
|
107
|
+
|
|
108
|
+
type PrimiveCardProps = PropsWithChildren<{
|
|
109
|
+
elevation?: number;
|
|
110
|
+
sx?: SxProps<Theme>;
|
|
111
|
+
}>;
|
|
112
|
+
|
|
113
|
+
type PortletProps = PrimiveCardProps;
|
|
114
|
+
|
|
115
|
+
declare const Portlet: ({ children, sx, ...props }: PortletProps) => react_jsx_runtime.JSX.Element;
|
|
116
|
+
|
|
117
|
+
declare const Loading: {
|
|
118
|
+
FallbackProvidedSkeleton: React$1.FC<{
|
|
119
|
+
isLoading: boolean;
|
|
120
|
+
skeleton: React.ReactNode;
|
|
121
|
+
} & {
|
|
122
|
+
children?: React$1.ReactNode | undefined;
|
|
123
|
+
}>;
|
|
124
|
+
FallbackSpinner: React$1.FC<{
|
|
125
|
+
isLoading: boolean;
|
|
126
|
+
} & {
|
|
127
|
+
children?: React$1.ReactNode | undefined;
|
|
128
|
+
}>;
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
type AutocompleteRenderInputParamsType = {
|
|
132
|
+
id: string;
|
|
133
|
+
disabled: boolean;
|
|
134
|
+
fullWidth: boolean;
|
|
135
|
+
size?: "small";
|
|
136
|
+
InputProps: {
|
|
137
|
+
ref: React__default.Ref<HTMLInputElement>;
|
|
138
|
+
className: string;
|
|
139
|
+
startAdornment: React__default.ReactNode;
|
|
140
|
+
endAdornment: React__default.ReactNode;
|
|
141
|
+
onMouseDown: React__default.MouseEventHandler;
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
type AutocompleteRenderOptionStateType = {
|
|
145
|
+
inputValue: string;
|
|
146
|
+
index: number;
|
|
147
|
+
selected: boolean;
|
|
148
|
+
};
|
|
149
|
+
type BasePrimitiveSelectProps<T> = {
|
|
150
|
+
renderInput: (params: AutocompleteRenderInputParamsType) => React__default.ReactNode;
|
|
151
|
+
renderOption?: (props: React__default.HTMLAttributes<HTMLLIElement>, option: T, state: AutocompleteRenderOptionStateType) => React__default.ReactNode;
|
|
152
|
+
sx?: SxProps<Theme>;
|
|
153
|
+
};
|
|
154
|
+
type AutocompleteFlag = boolean | undefined;
|
|
155
|
+
type PrimitiveSelectProps<T, Multiple extends AutocompleteFlag = false, DisableClearable extends AutocompleteFlag = false, FreeSolo extends AutocompleteFlag = false> = Omit<AutocompleteProps<T, Multiple, DisableClearable, FreeSolo>, "renderInput"> & BasePrimitiveSelectProps<T>;
|
|
156
|
+
|
|
157
|
+
type BaseSelectFieldProps = {
|
|
158
|
+
placeholder?: string;
|
|
159
|
+
startAdornment?: ReactNode;
|
|
160
|
+
isLoading?: boolean;
|
|
161
|
+
};
|
|
162
|
+
type SelectFieldProps<T, Multiple extends AutocompleteFlag = false, DisableClearable extends AutocompleteFlag = false, FreeSolo extends AutocompleteFlag = false> = InputLabelProps & BaseSelectFieldProps & Omit<PrimitiveSelectProps<T, Multiple, DisableClearable, FreeSolo>, "renderInput" | "loading">;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* The comma in <T,> avoids ambiguity with JSX parsing in .tsx files by making it
|
|
166
|
+
* clear that this is a generic type declaration rather than a JSX tag.
|
|
167
|
+
*/
|
|
168
|
+
declare const SelectField: <T, Multiple extends AutocompleteFlag = false, DisableClearable extends AutocompleteFlag = false, FreeSolo extends AutocompleteFlag = false>({ label, subLabel, isOptional, placeholder, startAdornment, isLoading, ...props }: SelectFieldProps<T, Multiple, DisableClearable, FreeSolo>) => react_jsx_runtime.JSX.Element;
|
|
169
|
+
|
|
170
|
+
declare const Input: {
|
|
171
|
+
ErrorText: ({ errorText }: InputErrorTextProps) => react_jsx_runtime.JSX.Element | null;
|
|
172
|
+
Label: ({ label, subLabel, isOptional }: InputLabelProps) => react_jsx_runtime.JSX.Element | null;
|
|
173
|
+
Field: ({ errorText, sx, ...props }: InputFieldProps) => react_jsx_runtime.JSX.Element;
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
export { Button, Dialog, Input, Loading, Portlet, SelectField, Text, TextField };
|