@functionalui/functionalui 0.1.0 → 0.1.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.
- package/dist/main.cjs +2 -2
- package/dist/main.d.ts +25 -27
- package/dist/main.js +341 -334
- package/dist/types.d.ts +4 -6
- package/package.json +12 -19
package/dist/main.d.ts
CHANGED
|
@@ -5,12 +5,12 @@ import { default as default_2 } from 'react';
|
|
|
5
5
|
import { FC } from 'react';
|
|
6
6
|
import { ForwardRefExoticComponent } from 'react';
|
|
7
7
|
import { HTMLAttributes } from 'react';
|
|
8
|
-
import { JSX
|
|
9
|
-
import { JSX as
|
|
8
|
+
import { JSX } from 'react';
|
|
9
|
+
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
10
10
|
import { ReactNode } from 'react';
|
|
11
11
|
import { RefAttributes } from 'react';
|
|
12
12
|
|
|
13
|
-
export declare const Admonition: ({ level, size, descriptionText, children, }: Props_4) =>
|
|
13
|
+
export declare const Admonition: ({ level, size, descriptionText, children, }: Props_4) => JSX_2.Element;
|
|
14
14
|
|
|
15
15
|
declare enum AdmonitionLevels {
|
|
16
16
|
Info = 1,
|
|
@@ -185,7 +185,7 @@ declare interface CellStyles {
|
|
|
185
185
|
};
|
|
186
186
|
}
|
|
187
187
|
|
|
188
|
-
export declare const Checkbox: ({ isChecked, size, checkboxColor, onClick, }: Props_5) =>
|
|
188
|
+
export declare const Checkbox: ({ isChecked, size, checkboxColor, onClick, }: Props_5) => JSX_2.Element;
|
|
189
189
|
|
|
190
190
|
declare enum CheckboxColors {
|
|
191
191
|
Primary5 = 1,
|
|
@@ -197,7 +197,7 @@ declare enum CheckboxColors {
|
|
|
197
197
|
Yellow5 = 7
|
|
198
198
|
}
|
|
199
199
|
|
|
200
|
-
export declare const Checkboxes: ({ options, multiselect, checkboxColor, size, handleClick, }: CheckboxesProps) =>
|
|
200
|
+
export declare const Checkboxes: ({ options, multiselect, checkboxColor, size, handleClick, }: CheckboxesProps) => JSX_2.Element;
|
|
201
201
|
|
|
202
202
|
declare type CheckboxesProps = {
|
|
203
203
|
options: CheckboxOption[];
|
|
@@ -523,7 +523,7 @@ declare type GlobalEventContextType = {
|
|
|
523
523
|
|
|
524
524
|
export declare const GlobalEventPortal: ({ children }: {
|
|
525
525
|
children: default_2.ReactNode;
|
|
526
|
-
}) =>
|
|
526
|
+
}) => JSX_2.Element;
|
|
527
527
|
|
|
528
528
|
declare enum GridAlignContents {
|
|
529
529
|
Start = 1,
|
|
@@ -886,9 +886,9 @@ declare enum Icons {
|
|
|
886
886
|
ZoomOut = "zoom-out"
|
|
887
887
|
}
|
|
888
888
|
|
|
889
|
-
export declare const InputImage: ({ id, name, handleImageChange, labelname, defaultValue, width, height, }: P_12) =>
|
|
889
|
+
export declare const InputImage: ({ id, name, handleImageChange, labelname, defaultValue, width, height, }: P_12) => JSX_2.Element;
|
|
890
890
|
|
|
891
|
-
export declare const InputText: ({ id, name, type, value, modes, label, focus, required, width, fullWidth, helperText, placeholder, step, min, handleChange, handleFocus, handleBlur, handleCheck, size, inputStyle, inputColor, labelTextColor, transparent, ...props }: P_14) =>
|
|
891
|
+
export declare const InputText: ({ id, name, type, value, modes, label, focus, required, width, fullWidth, helperText, placeholder, step, min, handleChange, handleFocus, handleBlur, handleCheck, size, inputStyle, inputColor, labelTextColor, transparent, ...props }: P_14) => JSX_2.Element;
|
|
892
892
|
|
|
893
893
|
declare enum InputTextModes {
|
|
894
894
|
Default = 1,
|
|
@@ -950,7 +950,7 @@ export declare const LabelText: ({ labelName, offsetX, y, x, hover, }: {
|
|
|
950
950
|
y?: number | undefined;
|
|
951
951
|
x?: number | undefined;
|
|
952
952
|
hover?: boolean | undefined;
|
|
953
|
-
}) =>
|
|
953
|
+
}) => JSX_2.Element;
|
|
954
954
|
|
|
955
955
|
export declare const Layout: FC<LayoutDivProps>;
|
|
956
956
|
|
|
@@ -980,7 +980,7 @@ declare interface LiProps extends AnimatedProps<HTMLAttributes<HTMLLIElement>>,
|
|
|
980
980
|
children?: ReactNode;
|
|
981
981
|
}
|
|
982
982
|
|
|
983
|
-
export declare const LoadingSpinner: ({ isLoading, size }: Props) =>
|
|
983
|
+
export declare const LoadingSpinner: ({ isLoading, size }: Props) => JSX.Element;
|
|
984
984
|
|
|
985
985
|
export declare const Modal: FC<P_11>;
|
|
986
986
|
|
|
@@ -989,7 +989,7 @@ declare enum ModalStyles {
|
|
|
989
989
|
Nocard = 2
|
|
990
990
|
}
|
|
991
991
|
|
|
992
|
-
export declare const NotificationSystem: () =>
|
|
992
|
+
export declare const NotificationSystem: () => JSX_2.Element;
|
|
993
993
|
|
|
994
994
|
declare enum OutlineStyles {
|
|
995
995
|
None = 1,
|
|
@@ -1096,7 +1096,7 @@ declare interface P_15 extends HTMLAttributes<HTMLTextAreaElement> {
|
|
|
1096
1096
|
handleFocus?: (...args: any[]) => void;
|
|
1097
1097
|
handleCheck?: (v?: any) => Promise<any> | void;
|
|
1098
1098
|
size?: TextAreaSizes;
|
|
1099
|
-
textAreaStyle?:
|
|
1099
|
+
textAreaStyle?: TextAreaStyles;
|
|
1100
1100
|
textAreaColor?: ColorSets;
|
|
1101
1101
|
labelTextColor?: boolean | ColorPalettes;
|
|
1102
1102
|
noLabel?: boolean;
|
|
@@ -1293,9 +1293,9 @@ declare type Props_6 = {
|
|
|
1293
1293
|
|
|
1294
1294
|
export declare function ProvideGlobalEventContext({ children, }: {
|
|
1295
1295
|
children: default_2.ReactNode;
|
|
1296
|
-
}):
|
|
1296
|
+
}): JSX_2.Element;
|
|
1297
1297
|
|
|
1298
|
-
export declare function ProvideUiContext({ children }: Props_3):
|
|
1298
|
+
export declare function ProvideUiContext({ children }: Props_3): JSX_2.Element;
|
|
1299
1299
|
|
|
1300
1300
|
export declare const Radio: FC<P_13>;
|
|
1301
1301
|
|
|
@@ -1372,7 +1372,7 @@ declare interface SpanProps extends AnimatedProps<HTMLAttributes<HTMLSpanElement
|
|
|
1372
1372
|
|
|
1373
1373
|
export declare function Spinner({ size }: {
|
|
1374
1374
|
size?: Sizings | undefined;
|
|
1375
|
-
}):
|
|
1375
|
+
}): JSX_2.Element;
|
|
1376
1376
|
|
|
1377
1377
|
export declare const SpringEnter: FC<P_2>;
|
|
1378
1378
|
|
|
@@ -1383,7 +1383,7 @@ export declare const SpringMenuTransition: FC<Props_2>;
|
|
|
1383
1383
|
export declare const SpringOpenCloseHeight: ({ isOpen, children, }: {
|
|
1384
1384
|
isOpen: boolean;
|
|
1385
1385
|
children: ReactNode;
|
|
1386
|
-
}) =>
|
|
1386
|
+
}) => JSX_2.Element;
|
|
1387
1387
|
|
|
1388
1388
|
declare interface StyleProps {
|
|
1389
1389
|
margin?: Spacings;
|
|
@@ -1432,7 +1432,7 @@ declare interface TableHeaderElement {
|
|
|
1432
1432
|
sortable?: boolean;
|
|
1433
1433
|
}
|
|
1434
1434
|
|
|
1435
|
-
export declare const TableRow: ({ rowId, templateColumns, cells, hover, onClickRow, }: TableRowElement) =>
|
|
1435
|
+
export declare const TableRow: ({ rowId, templateColumns, cells, hover, onClickRow, }: TableRowElement) => JSX_2.Element;
|
|
1436
1436
|
|
|
1437
1437
|
declare type TableRowCellElement = {
|
|
1438
1438
|
cellId?: string | number;
|
|
@@ -1457,7 +1457,7 @@ declare interface TabMenu {
|
|
|
1457
1457
|
element?: ReactNode;
|
|
1458
1458
|
}
|
|
1459
1459
|
|
|
1460
|
-
export declare const Tabs: ({ tabMenu, tab, setTab }: P_20) =>
|
|
1460
|
+
export declare const Tabs: ({ tabMenu, tab, setTab }: P_20) => JSX_2.Element;
|
|
1461
1461
|
|
|
1462
1462
|
export declare const TagColor: FC<P_8>;
|
|
1463
1463
|
|
|
@@ -1511,7 +1511,7 @@ declare enum TextAligns {
|
|
|
1511
1511
|
Justify = 4
|
|
1512
1512
|
}
|
|
1513
1513
|
|
|
1514
|
-
export declare const TextArea: ({ id, name, value, modes, label, required, rows, width, fullWidth, placeholder, onChange, handleBlur, handleFocus, handleCheck, size, textAreaStyle, textAreaColor, labelTextColor, noLabel, ...props }: P_15) =>
|
|
1514
|
+
export declare const TextArea: ({ id, name, value, modes, label, required, rows, width, fullWidth, placeholder, onChange, handleBlur, handleFocus, handleCheck, size, textAreaStyle, textAreaColor, labelTextColor, noLabel, ...props }: P_15) => JSX_2.Element;
|
|
1515
1515
|
|
|
1516
1516
|
declare enum TextAreaModes {
|
|
1517
1517
|
Default = 1,
|
|
@@ -1530,9 +1530,12 @@ declare interface TextAreaProp {
|
|
|
1530
1530
|
min?: number | undefined;
|
|
1531
1531
|
step?: number | undefined;
|
|
1532
1532
|
rows?: number | undefined;
|
|
1533
|
+
resize?: ElementResizes;
|
|
1534
|
+
outlineStyle?: OutlineStyles;
|
|
1535
|
+
textAreaStyle?: TextAreaStyles;
|
|
1533
1536
|
}
|
|
1534
1537
|
|
|
1535
|
-
declare interface TextAreaProps extends AnimatedProps<HTMLAttributes<HTMLTextAreaElement>>, TextStyleProps,
|
|
1538
|
+
declare interface TextAreaProps extends AnimatedProps<HTMLAttributes<HTMLTextAreaElement>>, TextStyleProps, TextAreaProp {
|
|
1536
1539
|
children?: ReactNode;
|
|
1537
1540
|
}
|
|
1538
1541
|
|
|
@@ -1543,12 +1546,7 @@ declare enum TextAreaSizes {
|
|
|
1543
1546
|
Huge = 4
|
|
1544
1547
|
}
|
|
1545
1548
|
|
|
1546
|
-
declare
|
|
1547
|
-
resize?: ElementResizes;
|
|
1548
|
-
outlineStyle?: OutlineStyles;
|
|
1549
|
-
}
|
|
1550
|
-
|
|
1551
|
-
declare enum TextAreaStyles_2 {
|
|
1549
|
+
declare enum TextAreaStyles {
|
|
1552
1550
|
Default = 1,// outline
|
|
1553
1551
|
Outlined = 2,// outline overall
|
|
1554
1552
|
Filled = 3,// border bottom & bg color
|
|
@@ -1616,7 +1614,7 @@ declare enum ToggleStates {
|
|
|
1616
1614
|
Disabled = 5
|
|
1617
1615
|
}
|
|
1618
1616
|
|
|
1619
|
-
export declare const ToggleSwitch: ({ isTrue, setIsTrue, size, icon, toggleState, description, }: Props_6) =>
|
|
1617
|
+
export declare const ToggleSwitch: ({ isTrue, setIsTrue, size, icon, toggleState, description, }: Props_6) => JSX_2.Element;
|
|
1620
1618
|
|
|
1621
1619
|
export declare const UIcon: FC<P_4>;
|
|
1622
1620
|
|