letalkui 0.0.34 → 0.0.41

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 (67) hide show
  1. package/dist/chunk-A3GY6EHZ.mjs +1 -0
  2. package/dist/chunk-A3GY6EHZ.mjs.map +1 -0
  3. package/dist/chunk-CICWL4OZ.mjs +1 -0
  4. package/dist/chunk-CICWL4OZ.mjs.map +1 -0
  5. package/dist/chunk-H5XWNBBV.mjs +1 -0
  6. package/dist/chunk-H5XWNBBV.mjs.map +1 -0
  7. package/dist/{chunk-NSB3MFMP.mjs → chunk-HOFSR6VC.mjs} +1 -1
  8. package/dist/chunk-HOFSR6VC.mjs.map +1 -0
  9. package/dist/chunk-KP2E7NTW.mjs +1 -0
  10. package/dist/chunk-KP2E7NTW.mjs.map +1 -0
  11. package/dist/chunk-LDVNO4Y5.mjs +1 -0
  12. package/dist/chunk-MMTROLDS.mjs +1 -0
  13. package/dist/chunk-MMTROLDS.mjs.map +1 -0
  14. package/dist/chunk-R77W2HME.mjs +1 -0
  15. package/dist/chunk-R77W2HME.mjs.map +1 -0
  16. package/dist/chunk-X3UYFMKU.mjs +1 -0
  17. package/dist/chunk-X3UYFMKU.mjs.map +1 -0
  18. package/dist/components/index.d.mts +53 -51
  19. package/dist/components/index.d.ts +53 -51
  20. package/dist/components/index.js +1 -1
  21. package/dist/components/index.js.map +1 -1
  22. package/dist/components/index.mjs +1 -1
  23. package/dist/components/index.mjs.map +1 -1
  24. package/dist/containers/index.d.mts +24 -2
  25. package/dist/containers/index.d.ts +24 -2
  26. package/dist/containers/index.js +1 -1
  27. package/dist/containers/index.js.map +1 -1
  28. package/dist/containers/index.mjs +1 -1
  29. package/dist/containers/index.mjs.map +1 -1
  30. package/dist/index-D3Ku03BC.d.mts +24 -0
  31. package/dist/index-D3Ku03BC.d.ts +24 -0
  32. package/dist/index.d.mts +3 -3
  33. package/dist/index.d.ts +3 -3
  34. package/dist/index.js +1 -1
  35. package/dist/index.js.map +1 -1
  36. package/dist/index.mjs +1 -1
  37. package/dist/index.mjs.map +1 -1
  38. package/dist/primitives/index.d.mts +28 -24
  39. package/dist/primitives/index.d.ts +28 -24
  40. package/dist/primitives/index.js +1 -1
  41. package/dist/primitives/index.js.map +1 -1
  42. package/dist/primitives/index.mjs +1 -1
  43. package/dist/primitives/index.mjs.map +1 -1
  44. package/dist/styles/index.mjs +1 -1
  45. package/dist/styles/index.mjs.map +1 -1
  46. package/dist/utils/index.d.mts +3 -7
  47. package/dist/utils/index.d.ts +3 -7
  48. package/dist/utils/index.js +1 -1
  49. package/dist/utils/index.js.map +1 -1
  50. package/dist/utils/index.mjs +1 -1
  51. package/dist/utils/index.mjs.map +1 -1
  52. package/package.json +1 -1
  53. package/dist/chunk-5JHCG3CK.mjs +0 -1
  54. package/dist/chunk-5JHCG3CK.mjs.map +0 -1
  55. package/dist/chunk-BPQFVMOU.mjs +0 -1
  56. package/dist/chunk-BPQFVMOU.mjs.map +0 -1
  57. package/dist/chunk-CC37R46Y.mjs +0 -1
  58. package/dist/chunk-CC37R46Y.mjs.map +0 -1
  59. package/dist/chunk-KSM7KBI2.mjs +0 -1
  60. package/dist/chunk-NSB3MFMP.mjs.map +0 -1
  61. package/dist/chunk-XGNCZ3TH.mjs +0 -1
  62. package/dist/chunk-XGNCZ3TH.mjs.map +0 -1
  63. package/dist/chunk-YJLRG5U3.mjs +0 -1
  64. package/dist/chunk-YJLRG5U3.mjs.map +0 -1
  65. package/dist/chunk-ZUWUMXVJ.mjs +0 -1
  66. package/dist/chunk-ZUWUMXVJ.mjs.map +0 -1
  67. /package/dist/{chunk-KSM7KBI2.mjs.map → chunk-LDVNO4Y5.mjs.map} +0 -0
@@ -1,9 +1,8 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { PrimitiveButtonProps, PrimitiveTextProps } from '../primitives/index.mjs';
3
- import { DialogProps, InputProps, SxProps, Theme, AutocompleteProps } from '@mui/material';
2
+ import { P as PrimitiveButtonProps, b as PrimitiveTextProps } from '../index-D3Ku03BC.mjs';
3
+ import { DialogProps, SxProps, Theme, InputProps, AutocompleteProps } from '@mui/material';
4
4
  import * as React$1 from 'react';
5
5
  import React__default, { PropsWithChildren, ReactNode } from 'react';
6
- import { StyleProperties } from '../utils/index.mjs';
7
6
 
8
7
  type ButtonProps = Omit<PrimitiveButtonProps, "sx" | "variant">;
9
8
 
@@ -14,31 +13,10 @@ declare const Button: {
14
13
  Ghost: ({ children, ...props }: ButtonProps) => react_jsx_runtime.JSX.Element;
15
14
  };
16
15
 
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;
16
+ type TitleProps = PropsWithChildren<object>;
17
+ type HeaderProps = PropsWithChildren<object>;
18
+ type FooterProps = PropsWithChildren<object>;
19
+ type ContentProps = PropsWithChildren<object>;
42
20
  type ContainerProps = DialogProps;
43
21
  type BaseButtonProps = {
44
22
  onClick: () => void;
@@ -46,9 +24,12 @@ type BaseButtonProps = {
46
24
  type ConfirmButtonProps = PropsWithChildren<{
47
25
  disabled?: boolean;
48
26
  startIcon?: ReactNode;
27
+ size?: "small" | "medium" | "large";
49
28
  } & BaseButtonProps>;
50
29
  type CloseIconButtonProps = BaseButtonProps;
51
- type CancelButtonProps = PropsWithChildren<BaseButtonProps>;
30
+ type CancelButtonProps = PropsWithChildren<{
31
+ size?: "small" | "medium" | "large";
32
+ } & BaseButtonProps>;
52
33
 
53
34
  declare const Dialog: {
54
35
  Container: ({ children, open, onClose, maxWidth, fullWidth, ...props }: ContainerProps) => react_jsx_runtime.JSX.Element;
@@ -66,11 +47,11 @@ type PrimitiveInputProps = {
66
47
  disabled?: boolean;
67
48
  fullWidth?: boolean;
68
49
  name?: string;
69
- onChange?: (props: React__default.ChangeEvent<HTMLTextAreaElement | HTMLInputElement>) => Promise<void> | void;
50
+ onChange?: (event: React__default.ChangeEvent<HTMLTextAreaElement | HTMLInputElement>) => Promise<void> | void;
70
51
  type: "text" | "button" | "password" | "radio" | "number" | "file" | "checkbox" | "email";
71
52
  value?: string;
72
53
  readonly?: boolean;
73
- sx?: StyleProperties;
54
+ sx?: SxProps<Theme>;
74
55
  showInputUnderline?: boolean;
75
56
  startAdornment?: ReactNode;
76
57
  endAdornment?: ReactNode;
@@ -108,23 +89,13 @@ type InputFieldProps = PrimitiveInputProps & {
108
89
  };
109
90
  };
110
91
 
111
- type TextFieldProps = InputFieldProps & {
112
- characterCount?: {
113
- maxLength: number;
114
- };
92
+ declare const Input: {
93
+ CharacterCount: (props: InputCharacterCountProps) => react_jsx_runtime.JSX.Element;
94
+ ErrorText: ({ errorText }: InputErrorTextProps) => react_jsx_runtime.JSX.Element | null;
95
+ Label: ({ label, subLabel, isOptional }: InputLabelProps) => react_jsx_runtime.JSX.Element | null;
96
+ Field: ({ errorText, multiline, characterCount, endAdornment, sx, ...props }: InputFieldProps) => react_jsx_runtime.JSX.Element;
115
97
  };
116
98
 
117
- declare const TextField: ({ label, subLabel, errorText, isOptional, id, characterCount, ...props }: TextFieldProps) => react_jsx_runtime.JSX.Element;
118
-
119
- type PrimiveCardProps = PropsWithChildren<{
120
- elevation?: number;
121
- sx?: SxProps<Theme>;
122
- }>;
123
-
124
- type PortletProps = PrimiveCardProps;
125
-
126
- declare const Portlet: ({ children, sx, ...props }: PortletProps) => react_jsx_runtime.JSX.Element;
127
-
128
99
  declare const Loading: {
129
100
  FallbackProvidedSkeleton: React$1.FC<{
130
101
  isLoading: boolean;
@@ -139,6 +110,15 @@ declare const Loading: {
139
110
  }>;
140
111
  };
141
112
 
113
+ type PrimiveCardProps = PropsWithChildren<{
114
+ elevation?: number;
115
+ sx?: SxProps<Theme>;
116
+ }>;
117
+
118
+ type PortletProps = PrimiveCardProps;
119
+
120
+ declare const Portlet: ({ children, sx, ...props }: PortletProps) => react_jsx_runtime.JSX.Element;
121
+
142
122
  type AutocompleteRenderInputParamsType = {
143
123
  id: string;
144
124
  disabled: boolean;
@@ -178,11 +158,33 @@ type SelectFieldProps<T, Multiple extends AutocompleteFlag = false, DisableClear
178
158
  */
179
159
  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;
180
160
 
181
- declare const Input: {
182
- CharacterCount: (props: InputCharacterCountProps) => react_jsx_runtime.JSX.Element;
183
- ErrorText: ({ errorText }: InputErrorTextProps) => react_jsx_runtime.JSX.Element | null;
184
- Label: ({ label, subLabel, isOptional }: InputLabelProps) => react_jsx_runtime.JSX.Element | null;
185
- Field: ({ errorText, multiline, characterCount, endAdornment, sx, ...props }: InputFieldProps) => react_jsx_runtime.JSX.Element;
161
+ type BaseTextProps = {
162
+ color?: string;
163
+ fontWeight?: "medium" | "semibold" | "bold" | "regular";
164
+ };
165
+ type TextProps = Omit<PrimitiveTextProps, "variant"> & BaseTextProps;
166
+ type TitleTextProps = TextProps & {
167
+ type: "h1" | "h2" | "h3";
168
+ };
169
+ type DisplayTextProps = TextProps & {
170
+ type: "display1" | "display2";
186
171
  };
172
+ type BodyTextProps = TextProps & {
173
+ type: "default" | "large" | "small1" | "small2" | "smaller1" | "smaller2" | "smaller3";
174
+ };
175
+
176
+ declare const Text: {
177
+ Title: (props: TitleTextProps) => react_jsx_runtime.JSX.Element;
178
+ Body: (props: BodyTextProps) => react_jsx_runtime.JSX.Element;
179
+ Display: (props: DisplayTextProps) => react_jsx_runtime.JSX.Element;
180
+ };
181
+
182
+ type TextFieldProps = InputFieldProps & {
183
+ characterCount?: {
184
+ maxLength: number;
185
+ };
186
+ };
187
+
188
+ declare const TextField: ({ label, subLabel, errorText, isOptional, id, characterCount, ...props }: TextFieldProps) => react_jsx_runtime.JSX.Element;
187
189
 
188
190
  export { Button, Dialog, Input, Loading, Portlet, SelectField, Text, TextField };
@@ -1,9 +1,8 @@
1
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';
2
+ import { P as PrimitiveButtonProps, b as PrimitiveTextProps } from '../index-D3Ku03BC.js';
3
+ import { DialogProps, SxProps, Theme, InputProps, AutocompleteProps } from '@mui/material';
4
4
  import * as React$1 from 'react';
5
5
  import React__default, { PropsWithChildren, ReactNode } from 'react';
6
- import { StyleProperties } from '../utils/index.js';
7
6
 
8
7
  type ButtonProps = Omit<PrimitiveButtonProps, "sx" | "variant">;
9
8
 
@@ -14,31 +13,10 @@ declare const Button: {
14
13
  Ghost: ({ children, ...props }: ButtonProps) => react_jsx_runtime.JSX.Element;
15
14
  };
16
15
 
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;
16
+ type TitleProps = PropsWithChildren<object>;
17
+ type HeaderProps = PropsWithChildren<object>;
18
+ type FooterProps = PropsWithChildren<object>;
19
+ type ContentProps = PropsWithChildren<object>;
42
20
  type ContainerProps = DialogProps;
43
21
  type BaseButtonProps = {
44
22
  onClick: () => void;
@@ -46,9 +24,12 @@ type BaseButtonProps = {
46
24
  type ConfirmButtonProps = PropsWithChildren<{
47
25
  disabled?: boolean;
48
26
  startIcon?: ReactNode;
27
+ size?: "small" | "medium" | "large";
49
28
  } & BaseButtonProps>;
50
29
  type CloseIconButtonProps = BaseButtonProps;
51
- type CancelButtonProps = PropsWithChildren<BaseButtonProps>;
30
+ type CancelButtonProps = PropsWithChildren<{
31
+ size?: "small" | "medium" | "large";
32
+ } & BaseButtonProps>;
52
33
 
53
34
  declare const Dialog: {
54
35
  Container: ({ children, open, onClose, maxWidth, fullWidth, ...props }: ContainerProps) => react_jsx_runtime.JSX.Element;
@@ -66,11 +47,11 @@ type PrimitiveInputProps = {
66
47
  disabled?: boolean;
67
48
  fullWidth?: boolean;
68
49
  name?: string;
69
- onChange?: (props: React__default.ChangeEvent<HTMLTextAreaElement | HTMLInputElement>) => Promise<void> | void;
50
+ onChange?: (event: React__default.ChangeEvent<HTMLTextAreaElement | HTMLInputElement>) => Promise<void> | void;
70
51
  type: "text" | "button" | "password" | "radio" | "number" | "file" | "checkbox" | "email";
71
52
  value?: string;
72
53
  readonly?: boolean;
73
- sx?: StyleProperties;
54
+ sx?: SxProps<Theme>;
74
55
  showInputUnderline?: boolean;
75
56
  startAdornment?: ReactNode;
76
57
  endAdornment?: ReactNode;
@@ -108,23 +89,13 @@ type InputFieldProps = PrimitiveInputProps & {
108
89
  };
109
90
  };
110
91
 
111
- type TextFieldProps = InputFieldProps & {
112
- characterCount?: {
113
- maxLength: number;
114
- };
92
+ declare const Input: {
93
+ CharacterCount: (props: InputCharacterCountProps) => react_jsx_runtime.JSX.Element;
94
+ ErrorText: ({ errorText }: InputErrorTextProps) => react_jsx_runtime.JSX.Element | null;
95
+ Label: ({ label, subLabel, isOptional }: InputLabelProps) => react_jsx_runtime.JSX.Element | null;
96
+ Field: ({ errorText, multiline, characterCount, endAdornment, sx, ...props }: InputFieldProps) => react_jsx_runtime.JSX.Element;
115
97
  };
116
98
 
117
- declare const TextField: ({ label, subLabel, errorText, isOptional, id, characterCount, ...props }: TextFieldProps) => react_jsx_runtime.JSX.Element;
118
-
119
- type PrimiveCardProps = PropsWithChildren<{
120
- elevation?: number;
121
- sx?: SxProps<Theme>;
122
- }>;
123
-
124
- type PortletProps = PrimiveCardProps;
125
-
126
- declare const Portlet: ({ children, sx, ...props }: PortletProps) => react_jsx_runtime.JSX.Element;
127
-
128
99
  declare const Loading: {
129
100
  FallbackProvidedSkeleton: React$1.FC<{
130
101
  isLoading: boolean;
@@ -139,6 +110,15 @@ declare const Loading: {
139
110
  }>;
140
111
  };
141
112
 
113
+ type PrimiveCardProps = PropsWithChildren<{
114
+ elevation?: number;
115
+ sx?: SxProps<Theme>;
116
+ }>;
117
+
118
+ type PortletProps = PrimiveCardProps;
119
+
120
+ declare const Portlet: ({ children, sx, ...props }: PortletProps) => react_jsx_runtime.JSX.Element;
121
+
142
122
  type AutocompleteRenderInputParamsType = {
143
123
  id: string;
144
124
  disabled: boolean;
@@ -178,11 +158,33 @@ type SelectFieldProps<T, Multiple extends AutocompleteFlag = false, DisableClear
178
158
  */
179
159
  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;
180
160
 
181
- declare const Input: {
182
- CharacterCount: (props: InputCharacterCountProps) => react_jsx_runtime.JSX.Element;
183
- ErrorText: ({ errorText }: InputErrorTextProps) => react_jsx_runtime.JSX.Element | null;
184
- Label: ({ label, subLabel, isOptional }: InputLabelProps) => react_jsx_runtime.JSX.Element | null;
185
- Field: ({ errorText, multiline, characterCount, endAdornment, sx, ...props }: InputFieldProps) => react_jsx_runtime.JSX.Element;
161
+ type BaseTextProps = {
162
+ color?: string;
163
+ fontWeight?: "medium" | "semibold" | "bold" | "regular";
164
+ };
165
+ type TextProps = Omit<PrimitiveTextProps, "variant"> & BaseTextProps;
166
+ type TitleTextProps = TextProps & {
167
+ type: "h1" | "h2" | "h3";
168
+ };
169
+ type DisplayTextProps = TextProps & {
170
+ type: "display1" | "display2";
186
171
  };
172
+ type BodyTextProps = TextProps & {
173
+ type: "default" | "large" | "small1" | "small2" | "smaller1" | "smaller2" | "smaller3";
174
+ };
175
+
176
+ declare const Text: {
177
+ Title: (props: TitleTextProps) => react_jsx_runtime.JSX.Element;
178
+ Body: (props: BodyTextProps) => react_jsx_runtime.JSX.Element;
179
+ Display: (props: DisplayTextProps) => react_jsx_runtime.JSX.Element;
180
+ };
181
+
182
+ type TextFieldProps = InputFieldProps & {
183
+ characterCount?: {
184
+ maxLength: number;
185
+ };
186
+ };
187
+
188
+ declare const TextField: ({ label, subLabel, errorText, isOptional, id, characterCount, ...props }: TextFieldProps) => react_jsx_runtime.JSX.Element;
187
189
 
188
190
  export { Button, Dialog, Input, Loading, Portlet, SelectField, Text, TextField };