@lowentry/mui 1.4.4 → 2.0.1

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 (63) hide show
  1. package/LICENSE +23 -0
  2. package/dist/index.d.ts +129 -0
  3. package/dist/index.js +720 -0
  4. package/dist/index.js.map +1 -0
  5. package/package.json +82 -73
  6. package/Avatar/index.js +0 -44
  7. package/Avatar/index.js.map +0 -1
  8. package/DatePicker/index.js +0 -166
  9. package/DatePicker/index.js.map +0 -1
  10. package/Dialog/index.js +0 -45
  11. package/Dialog/index.js.map +0 -1
  12. package/InitiallyInvisible/index.js +0 -40
  13. package/InitiallyInvisible/index.js.map +0 -1
  14. package/LeMuiUtils-c46ed1cc.js +0 -34
  15. package/LeMuiUtils-c46ed1cc.js.map +0 -1
  16. package/LoadingSpinner/index.js +0 -10
  17. package/LoadingSpinner/index.js.map +0 -1
  18. package/LoadingSpinner-4ccdb773.js +0 -67
  19. package/LoadingSpinner-4ccdb773.js.map +0 -1
  20. package/LoadingSpinnerWidget/index.js +0 -10
  21. package/LoadingSpinnerWidget/index.js.map +0 -1
  22. package/MenuButton/index.js +0 -63
  23. package/MenuButton/index.js.map +0 -1
  24. package/MuiRoot/index.js +0 -30
  25. package/MuiRoot/index.js.map +0 -1
  26. package/NumericTextField/index.js +0 -108
  27. package/NumericTextField/index.js.map +0 -1
  28. package/RemovableNumericTextField/index.js +0 -48
  29. package/RemovableNumericTextField/index.js.map +0 -1
  30. package/RemovableTextField/index.js +0 -54
  31. package/RemovableTextField/index.js.map +0 -1
  32. package/Submittable/index.js +0 -33
  33. package/Submittable/index.js.map +0 -1
  34. package/TextField/index.js +0 -33
  35. package/TextField/index.js.map +0 -1
  36. package/api-extractor.json +0 -43
  37. package/index.js +0 -38
  38. package/index.js.map +0 -1
  39. package/src/LeMuiUtils.js +0 -52
  40. package/src/components/Avatar.jsx +0 -28
  41. package/src/components/DatePicker.jsx +0 -120
  42. package/src/components/DatePicker.less +0 -32
  43. package/src/components/Dialog.jsx +0 -35
  44. package/src/components/Dialog.less +0 -7
  45. package/src/components/InitiallyInvisible.jsx +0 -20
  46. package/src/components/LoadingSpinner/LoadingSpinner.jsx +0 -51
  47. package/src/components/LoadingSpinner/LoadingSpinner.less +0 -9
  48. package/src/components/LoadingSpinner.jsx +0 -1
  49. package/src/components/LoadingSpinnerWidget.jsx +0 -1
  50. package/src/components/MenuButton.jsx +0 -54
  51. package/src/components/MuiRoot.jsx +0 -23
  52. package/src/components/MuiRoot.less +0 -21
  53. package/src/components/NumericTextField.jsx +0 -115
  54. package/src/components/RemovableNumericTextField.jsx +0 -41
  55. package/src/components/RemovableTextField.jsx +0 -48
  56. package/src/components/Submittable.jsx +0 -41
  57. package/src/components/TextField.jsx +0 -30
  58. package/src/components/TextField.less +0 -4
  59. package/src/index.js +0 -13
  60. package/style-inject.es-1f59c1d0.js +0 -29
  61. package/style-inject.es-1f59c1d0.js.map +0 -1
  62. package/tsconfig.d.ts +0 -1
  63. package/tsconfig.json +0 -39
package/LICENSE ADDED
@@ -0,0 +1,23 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Low Entry
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
23
+
@@ -0,0 +1,129 @@
1
+ import * as React from 'react';
2
+ import React__default from 'react';
3
+ import * as react_jsx_runtime from 'react/jsx-runtime';
4
+ import { AvatarProps as AvatarProps$1 } from '@mui/material/Avatar';
5
+ import Dayjs from 'dayjs';
6
+ import { DialogProps as DialogProps$1 } from '@mui/material/Dialog';
7
+ import { BackdropProps } from '@mui/material/Backdrop';
8
+ import { ButtonProps } from '@mui/material/Button';
9
+ import { Theme } from '@mui/material/styles';
10
+ import { TextFieldProps as TextFieldProps$1 } from '@mui/material/TextField';
11
+ import { StackProps } from '@mui/material/Stack';
12
+
13
+ declare const LeMuiUtils: {
14
+ onSelectEnsureMinimumOffset: (charactersCount: number) => ((event: React.SyntheticEvent<HTMLInputElement | HTMLTextAreaElement>) => void);
15
+ prependHiddenChar: (string: string) => string;
16
+ purgePrependedHiddenChar: (string: string) => string;
17
+ };
18
+
19
+ interface AvatarRetryOptions {
20
+ retries?: number;
21
+ delay?: number | ((retries: number) => number);
22
+ queryParam?: string;
23
+ }
24
+ interface AvatarSlotProps {
25
+ img?: React__default.ImgHTMLAttributes<HTMLImageElement> & {
26
+ onError?: (event: React__default.SyntheticEvent<HTMLImageElement>) => void;
27
+ };
28
+ [key: string]: unknown;
29
+ }
30
+ interface AvatarProps extends Omit<AvatarProps$1, 'src' | 'slotProps'> {
31
+ src?: string;
32
+ retryOptions?: AvatarRetryOptions;
33
+ slotProps?: AvatarSlotProps;
34
+ }
35
+ declare const Avatar: React__default.MemoExoticComponent<({ src, slotProps, retryOptions, children, ...props }: AvatarProps) => react_jsx_runtime.JSX.Element>;
36
+
37
+ interface DatePickerProps {
38
+ value?: Dayjs.Dayjs | Date | string | null;
39
+ dateFormat?: string;
40
+ onChange?: (value: Dayjs.Dayjs | null) => void;
41
+ className?: string;
42
+ children?: React__default.ReactNode;
43
+ [key: string]: unknown;
44
+ }
45
+ declare const DatePicker: React__default.MemoExoticComponent<({ value, dateFormat, onChange, className, children, ...props }: DatePickerProps) => react_jsx_runtime.JSX.Element>;
46
+
47
+ interface DialogProps extends Omit<DialogProps$1, 'onClose'> {
48
+ onClose?: (event: React__default.SyntheticEvent, reason: string) => void;
49
+ children?: React__default.ReactNode;
50
+ 'aria-label'?: string;
51
+ }
52
+ declare const Dialog: React__default.MemoExoticComponent<({ onClose, children, "aria-label": ariaLabel, open, ...props }: DialogProps) => react_jsx_runtime.JSX.Element>;
53
+
54
+ interface InitiallyInvisibleProps extends React__default.HTMLAttributes<HTMLDivElement> {
55
+ frames?: number;
56
+ transition?: string;
57
+ opacityKey?: unknown;
58
+ }
59
+ declare const InitiallyInvisible: React__default.MemoExoticComponent<({ frames, transition, style, children, opacityKey, ...other }: InitiallyInvisibleProps) => react_jsx_runtime.JSX.Element>;
60
+
61
+ declare const LoadingSpinner: React.MemoExoticComponent<({ type }: {
62
+ type: string;
63
+ }) => null>;
64
+ interface LoadingSpinnerWidgetProps extends Omit<BackdropProps, 'open'> {
65
+ type: string;
66
+ }
67
+ declare const LoadingSpinnerWidget: React.MemoExoticComponent<({ type, className, sx, children, ...props }: LoadingSpinnerWidgetProps) => react_jsx_runtime.JSX.Element>;
68
+
69
+ interface MenuButtonProps extends Omit<ButtonProps, 'onClick'> {
70
+ icon?: React__default.ReactNode;
71
+ onClick?: (event: React__default.MouseEvent<HTMLButtonElement>) => void;
72
+ onClose?: (event: React__default.MouseEvent) => void;
73
+ children?: React__default.ReactNode;
74
+ ref?: React__default.Ref<HTMLButtonElement>;
75
+ }
76
+ declare const MenuButton: React__default.MemoExoticComponent<({ icon, className, ref, onClick, onClose, children, ...props }: MenuButtonProps) => react_jsx_runtime.JSX.Element>;
77
+
78
+ interface MuiRootProps {
79
+ theme: Theme;
80
+ className?: string;
81
+ children?: React__default.ReactNode;
82
+ [key: string]: unknown;
83
+ }
84
+ declare const MuiRoot: React__default.MemoExoticComponent<({ theme, className, children, ...props }: MuiRootProps) => react_jsx_runtime.JSX.Element>;
85
+
86
+ type TextFieldProps = TextFieldProps$1 & {
87
+ onClick?: (event: React__default.MouseEvent) => void;
88
+ };
89
+ declare const TextField: React__default.MemoExoticComponent<({ className, onClick, children, ...props }: TextFieldProps) => react_jsx_runtime.JSX.Element>;
90
+
91
+ interface NumericChangeEvent extends React__default.ChangeEvent<HTMLInputElement | HTMLTextAreaElement> {
92
+ target: React__default.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>['target'] & {
93
+ value: number | null;
94
+ valueText: string;
95
+ valueRaw: string;
96
+ };
97
+ }
98
+ interface NumericTextFieldProps extends Omit<TextFieldProps, 'onChange' | 'value'> {
99
+ decimals?: number;
100
+ allowZero?: boolean;
101
+ allowNegative?: boolean;
102
+ value?: unknown;
103
+ onChange?: (event: NumericChangeEvent) => void;
104
+ onRenderValue?: (value: string) => string;
105
+ }
106
+ declare const NumericTextField: React__default.MemoExoticComponent<({ decimals: decimalsProp, allowZero: allowZeroProp, allowNegative: allowNegativeProp, value, onChange, onRenderValue, className, inputProps, children, ...props }: NumericTextFieldProps) => react_jsx_runtime.JSX.Element>;
107
+
108
+ interface RemovableNumericTextFieldProps extends Omit<NumericTextFieldProps, 'onSelect'> {
109
+ onRemove?: (event: NumericChangeEvent) => void;
110
+ onSelect?: (event: React__default.SyntheticEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
111
+ }
112
+ declare const RemovableNumericTextField: React__default.MemoExoticComponent<({ onRemove, onChange, onSelect, className, children, ...props }: RemovableNumericTextFieldProps) => react_jsx_runtime.JSX.Element>;
113
+
114
+ interface RemovableTextFieldProps extends Omit<TextFieldProps, 'onChange' | 'onSelect'> {
115
+ onRemove?: (event: React__default.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
116
+ onChange?: (event: React__default.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
117
+ onSelect?: (event: React__default.SyntheticEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
118
+ }
119
+ declare const RemovableTextField: React__default.MemoExoticComponent<({ className, value, onRemove, onChange, onSelect, children, ...props }: RemovableTextFieldProps) => react_jsx_runtime.JSX.Element>;
120
+
121
+ interface SubmittableProps extends StackProps {
122
+ onSubmit?: (event: React__default.FormEvent) => void;
123
+ disabled?: boolean | (() => boolean);
124
+ sx?: React__default.CSSProperties;
125
+ children?: React__default.ReactNode;
126
+ }
127
+ declare const Submittable: React__default.MemoExoticComponent<({ onSubmit, disabled, sx, children, ...props }: SubmittableProps) => react_jsx_runtime.JSX.Element>;
128
+
129
+ export { Avatar, type AvatarProps, type AvatarRetryOptions, type AvatarSlotProps, DatePicker, type DatePickerProps, Dialog, type DialogProps, InitiallyInvisible, type InitiallyInvisibleProps, LeMuiUtils, LoadingSpinner, LoadingSpinnerWidget, type LoadingSpinnerWidgetProps, MenuButton, type MenuButtonProps, MuiRoot, type MuiRootProps, type NumericChangeEvent, NumericTextField, type NumericTextFieldProps, RemovableNumericTextField, type RemovableNumericTextFieldProps, RemovableTextField, type RemovableTextFieldProps, Submittable, type SubmittableProps, TextField, type TextFieldProps };