@lumiastream/ui 0.2.5 → 0.2.6
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/index.d.ts +27 -14
- package/dist/index.js +522 -179
- package/package.json +59 -59
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import {
|
|
2
|
+
import { ButtonProps } from '@mui/material/Button';
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
import {
|
|
4
|
+
import { ReactNode, CSSProperties, JSX, HTMLAttributes } from 'react';
|
|
5
|
+
import { TextFieldProps } from '@mui/material/TextField';
|
|
5
6
|
import { SelectProps } from '@mui/material/Select';
|
|
6
7
|
import { CheckboxProps } from '@mui/material/Checkbox';
|
|
7
8
|
import { FieldValues, Path } from 'react-hook-form';
|
|
@@ -10,20 +11,32 @@ import { RadioGroupProps } from '@mui/material/RadioGroup';
|
|
|
10
11
|
import { AutocompleteRenderOptionState } from '@mui/material/Autocomplete';
|
|
11
12
|
import { CompletionContext } from '@codemirror/autocomplete';
|
|
12
13
|
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
type LSButtonColor = 'inherit' | 'primary' | 'secondary' | 'error' | 'neutral';
|
|
15
|
+
type LSButtonVariant = 'text' | 'outlined' | 'contained';
|
|
16
|
+
type LSButtonProps = Omit<ButtonProps, 'children' | 'color' | 'variant' | 'size'> & {
|
|
17
|
+
/** Compatibility alias for color="primary". */
|
|
15
18
|
primary?: boolean;
|
|
16
|
-
/**
|
|
19
|
+
/** Compatibility style override for the button background. */
|
|
17
20
|
backgroundColor?: string;
|
|
21
|
+
/** Loading state. */
|
|
22
|
+
loading?: boolean;
|
|
23
|
+
/** Color of the button. */
|
|
24
|
+
color?: LSButtonColor;
|
|
18
25
|
/** How large should the button be? */
|
|
19
26
|
size?: 'small' | 'medium' | 'large';
|
|
20
|
-
/**
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
+
/** Element placed before the children. */
|
|
28
|
+
startIcon?: ReactNode;
|
|
29
|
+
/** Element placed after the children. */
|
|
30
|
+
endIcon?: ReactNode;
|
|
31
|
+
/** The variant to use. */
|
|
32
|
+
variant?: LSButtonVariant;
|
|
33
|
+
/** Button contents. */
|
|
34
|
+
label?: ReactNode;
|
|
35
|
+
/** Adds wider horizontal padding. */
|
|
36
|
+
extended?: number;
|
|
37
|
+
style?: CSSProperties;
|
|
38
|
+
};
|
|
39
|
+
declare const LSButton: ({ label, disabled, loading, variant, extended, color, primary, backgroundColor, className, sx, style, ...props }: LSButtonProps) => react_jsx_runtime.JSX.Element;
|
|
27
40
|
|
|
28
41
|
interface LSInputPropsChild$1 {
|
|
29
42
|
id?: string;
|
|
@@ -199,7 +212,7 @@ type LSVariableInputContextValue = {
|
|
|
199
212
|
isOriginConnected?: (origin: string) => boolean;
|
|
200
213
|
translationKeyExists?: (key: string, namespace?: string) => boolean;
|
|
201
214
|
};
|
|
202
|
-
declare const LSVariableInputProvider: ({ children, value }: {
|
|
215
|
+
declare const LSVariableInputProvider: ({ children, value, }: {
|
|
203
216
|
children: ReactNode;
|
|
204
217
|
value: LSVariableInputContextValue;
|
|
205
218
|
}) => react_jsx_runtime.JSX.Element;
|
|
@@ -232,7 +245,7 @@ type LSVariableInputFieldProps = {
|
|
|
232
245
|
value?: string | number | any[];
|
|
233
246
|
placeholder?: string;
|
|
234
247
|
renderOption?: (props: HTMLAttributes<HTMLLIElement>, option: any, state: AutocompleteRenderOptionState) => ReactNode;
|
|
235
|
-
variant?:
|
|
248
|
+
variant?: "standard" | "filled" | "outlined";
|
|
236
249
|
ListboxComponent?: any;
|
|
237
250
|
onScrollListBox?: (e: any) => void;
|
|
238
251
|
onHighlightChange?: (e: any, value: any) => void;
|