@functionalui/functionalui 0.1.1 → 0.1.3
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 +41 -24
- package/dist/main.js +2421 -2365
- package/dist/{types-B2oLQKyl.js → types-hPYnu-T4.js} +94 -94
- package/dist/{types-B-Wi5X54.cjs → types-w9sPn-jR.cjs} +1 -1
- package/dist/types.cjs +1 -1
- package/dist/types.d.ts +12 -0
- package/dist/types.js +11 -11
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -8,7 +8,9 @@ import { HTMLAttributes } from 'react';
|
|
|
8
8
|
import { JSX } from 'react';
|
|
9
9
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
10
10
|
import { ReactNode } from 'react';
|
|
11
|
+
import { Ref } from 'react';
|
|
11
12
|
import { RefAttributes } from 'react';
|
|
13
|
+
import { RefObject } from 'react';
|
|
12
14
|
|
|
13
15
|
export declare const Admonition: ({ level, size, descriptionText, children, }: Props_4) => JSX_2.Element;
|
|
14
16
|
|
|
@@ -121,6 +123,7 @@ declare enum ButtonIconPositions {
|
|
|
121
123
|
|
|
122
124
|
declare interface ButtonProps extends AnimatedProps<HTMLAttributes<HTMLButtonElement>>, StyleProps, ButtonStyleProps {
|
|
123
125
|
children?: ReactNode;
|
|
126
|
+
ref?: RefObject<HTMLButtonElement | null>;
|
|
124
127
|
}
|
|
125
128
|
|
|
126
129
|
declare type ButtonProps_2 = {
|
|
@@ -339,7 +342,7 @@ declare enum ColorSets {
|
|
|
339
342
|
|
|
340
343
|
export declare const Container: FC<DivProps>;
|
|
341
344
|
|
|
342
|
-
export declare const ContainerRef: ForwardRefExoticComponent<DivProps & RefAttributes<unknown>>;
|
|
345
|
+
export declare const ContainerRef: ForwardRefExoticComponent<Omit<DivProps, "ref"> & RefAttributes<unknown>>;
|
|
343
346
|
|
|
344
347
|
declare enum Cursors {
|
|
345
348
|
Auto = 1,
|
|
@@ -385,6 +388,7 @@ export declare const DivMeasure: FC<P>;
|
|
|
385
388
|
|
|
386
389
|
declare interface DivProps extends AnimatedProps<HTMLAttributes<HTMLDivElement>>, StyleProps {
|
|
387
390
|
children?: ReactNode;
|
|
391
|
+
ref?: RefObject<HTMLDivElement | null>;
|
|
388
392
|
}
|
|
389
393
|
|
|
390
394
|
/**
|
|
@@ -411,23 +415,23 @@ declare enum ElementResizes {
|
|
|
411
415
|
|
|
412
416
|
export declare const F__Button: FC<ButtonProps>;
|
|
413
417
|
|
|
414
|
-
export declare const F__ButtonRef: ForwardRefExoticComponent<ButtonProps & RefAttributes<unknown>>;
|
|
418
|
+
export declare const F__ButtonRef: ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & RefAttributes<unknown>>;
|
|
415
419
|
|
|
416
420
|
export declare const F__Li: FC<LiProps>;
|
|
417
421
|
|
|
418
|
-
export declare const F__LiRef: ForwardRefExoticComponent<LiProps & RefAttributes<unknown>>;
|
|
422
|
+
export declare const F__LiRef: ForwardRefExoticComponent<Omit<LiProps, "ref"> & RefAttributes<unknown>>;
|
|
419
423
|
|
|
420
424
|
export declare const F__TextArea: FC<TextAreaProps>;
|
|
421
425
|
|
|
422
|
-
export declare const F__TextAreaRef: ForwardRefExoticComponent<TextAreaProps & RefAttributes<unknown>>;
|
|
426
|
+
export declare const F__TextAreaRef: ForwardRefExoticComponent<Omit<TextAreaProps, "ref"> & RefAttributes<unknown>>;
|
|
423
427
|
|
|
424
428
|
export declare const F__TextInput: FC<TextInputProps>;
|
|
425
429
|
|
|
426
|
-
export declare const F__TextInputRef: ForwardRefExoticComponent<TextInputProps & RefAttributes<unknown>>;
|
|
430
|
+
export declare const F__TextInputRef: ForwardRefExoticComponent<Omit<TextInputProps, "ref"> & RefAttributes<unknown>>;
|
|
427
431
|
|
|
428
432
|
export declare const F__Ul: FC<UlProps>;
|
|
429
433
|
|
|
430
|
-
export declare const F__UlRef: ForwardRefExoticComponent<UlProps & RefAttributes<unknown>>;
|
|
434
|
+
export declare const F__UlRef: ForwardRefExoticComponent<Omit<UlProps, "ref"> & RefAttributes<unknown>>;
|
|
431
435
|
|
|
432
436
|
declare enum FlexAlignContents {
|
|
433
437
|
FlexStart = 1,
|
|
@@ -587,6 +591,7 @@ declare enum GridRowGaps {
|
|
|
587
591
|
|
|
588
592
|
declare interface HeadElementProps extends AnimatedProps<HTMLAttributes<HTMLHeadElement>>, TextStyleProps, HeaderProps {
|
|
589
593
|
children?: ReactNode;
|
|
594
|
+
ref?: RefObject<HTMLHeadingElement | null>;
|
|
590
595
|
}
|
|
591
596
|
|
|
592
597
|
declare interface HeaderProps {
|
|
@@ -886,9 +891,9 @@ declare enum Icons {
|
|
|
886
891
|
ZoomOut = "zoom-out"
|
|
887
892
|
}
|
|
888
893
|
|
|
889
|
-
export declare const InputImage: ({ id, name, handleImageChange, labelname, defaultValue, width, height, }: P_12) => JSX_2.Element;
|
|
894
|
+
export declare const InputImage: ({ id, name, handleImageChange, labelname, defaultValue, width, height, ref, ...props }: P_12) => JSX_2.Element;
|
|
890
895
|
|
|
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;
|
|
896
|
+
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, ref, ...props }: P_14) => JSX_2.Element;
|
|
892
897
|
|
|
893
898
|
declare enum InputTextModes {
|
|
894
899
|
Default = 1,
|
|
@@ -956,6 +961,7 @@ export declare const Layout: FC<LayoutDivProps>;
|
|
|
956
961
|
|
|
957
962
|
declare interface LayoutDivProps extends AnimatedProps<HTMLAttributes<HTMLDivElement>>, LayoutProps {
|
|
958
963
|
children?: ReactNode;
|
|
964
|
+
ref?: RefObject<HTMLDivElement | null>;
|
|
959
965
|
}
|
|
960
966
|
|
|
961
967
|
declare interface LayoutProps {
|
|
@@ -974,10 +980,11 @@ declare interface LayoutProps {
|
|
|
974
980
|
alignSelf?: AlignSelfs;
|
|
975
981
|
}
|
|
976
982
|
|
|
977
|
-
export declare const LayoutRef: ForwardRefExoticComponent<LayoutDivProps & RefAttributes<unknown>>;
|
|
983
|
+
export declare const LayoutRef: ForwardRefExoticComponent<Omit<LayoutDivProps, "ref"> & RefAttributes<unknown>>;
|
|
978
984
|
|
|
979
985
|
declare interface LiProps extends AnimatedProps<HTMLAttributes<HTMLLIElement>>, StyleProps {
|
|
980
986
|
children?: ReactNode;
|
|
987
|
+
ref?: RefObject<HTMLLIElement | null>;
|
|
981
988
|
}
|
|
982
989
|
|
|
983
990
|
export declare const LoadingSpinner: ({ isLoading, size }: Props) => JSX.Element;
|
|
@@ -1023,7 +1030,7 @@ declare interface P_11 {
|
|
|
1023
1030
|
modalBackground?: ColorPalettes;
|
|
1024
1031
|
}
|
|
1025
1032
|
|
|
1026
|
-
declare interface P_12 {
|
|
1033
|
+
declare interface P_12 extends HTMLAttributes<HTMLInputElement> {
|
|
1027
1034
|
id: string;
|
|
1028
1035
|
name: string;
|
|
1029
1036
|
handleImageChange?: (v: File | undefined) => void;
|
|
@@ -1031,15 +1038,17 @@ declare interface P_12 {
|
|
|
1031
1038
|
defaultValue?: string;
|
|
1032
1039
|
width?: number | string;
|
|
1033
1040
|
height?: number | string;
|
|
1041
|
+
ref?: Ref<HTMLInputElement> | undefined;
|
|
1034
1042
|
}
|
|
1035
1043
|
|
|
1036
|
-
declare interface P_13 {
|
|
1044
|
+
declare interface P_13 extends HTMLAttributes<HTMLInputElement> {
|
|
1037
1045
|
checked: boolean;
|
|
1038
1046
|
id: string;
|
|
1039
1047
|
handleChange: (id: string, checked: boolean) => void;
|
|
1040
1048
|
size?: Sizings;
|
|
1041
1049
|
children: ReactNode;
|
|
1042
1050
|
vertigo?: boolean;
|
|
1051
|
+
ref?: Ref<HTMLInputElement> | undefined;
|
|
1043
1052
|
}
|
|
1044
1053
|
|
|
1045
1054
|
/**
|
|
@@ -1076,6 +1085,7 @@ declare interface P_14 extends HTMLAttributes<HTMLInputElement> {
|
|
|
1076
1085
|
*/
|
|
1077
1086
|
labelTextColor?: boolean | ColorPalettes;
|
|
1078
1087
|
transparent?: boolean;
|
|
1088
|
+
ref?: RefObject<HTMLInputElement | null>;
|
|
1079
1089
|
}
|
|
1080
1090
|
|
|
1081
1091
|
declare interface P_15 extends HTMLAttributes<HTMLTextAreaElement> {
|
|
@@ -1100,6 +1110,7 @@ declare interface P_15 extends HTMLAttributes<HTMLTextAreaElement> {
|
|
|
1100
1110
|
textAreaColor?: ColorSets;
|
|
1101
1111
|
labelTextColor?: boolean | ColorPalettes;
|
|
1102
1112
|
noLabel?: boolean;
|
|
1113
|
+
ref?: Ref<HTMLTextAreaElement> | undefined;
|
|
1103
1114
|
}
|
|
1104
1115
|
|
|
1105
1116
|
declare interface P_16 {
|
|
@@ -1161,7 +1172,7 @@ declare interface P_3 {
|
|
|
1161
1172
|
children?: ReactNode;
|
|
1162
1173
|
}
|
|
1163
1174
|
|
|
1164
|
-
declare
|
|
1175
|
+
declare interface P_4 extends AnimatedProps<HTMLAttributes<HTMLDivElement>> {
|
|
1165
1176
|
name: Icons | string;
|
|
1166
1177
|
withMargin?: boolean;
|
|
1167
1178
|
size?: Sizings;
|
|
@@ -1174,8 +1185,9 @@ declare type P_4 = {
|
|
|
1174
1185
|
animated?: boolean;
|
|
1175
1186
|
cursor?: Cursors;
|
|
1176
1187
|
overflow?: string;
|
|
1177
|
-
borderRadius?: string;
|
|
1178
|
-
|
|
1188
|
+
borderRadius?: Radiuses | string;
|
|
1189
|
+
bgColor?: ColorPalettes;
|
|
1190
|
+
}
|
|
1179
1191
|
|
|
1180
1192
|
declare interface P_5 {
|
|
1181
1193
|
isLoading?: boolean;
|
|
@@ -1229,6 +1241,7 @@ declare interface P_9 {
|
|
|
1229
1241
|
|
|
1230
1242
|
declare interface ParagraphProps extends AnimatedProps<HTMLAttributes<HTMLParagraphElement>>, TextStyleProps {
|
|
1231
1243
|
children?: ReactNode;
|
|
1244
|
+
ref?: RefObject<HTMLParagraphElement | null>;
|
|
1232
1245
|
}
|
|
1233
1246
|
|
|
1234
1247
|
declare enum Positions {
|
|
@@ -1368,6 +1381,7 @@ declare enum Spacings {
|
|
|
1368
1381
|
|
|
1369
1382
|
declare interface SpanProps extends AnimatedProps<HTMLAttributes<HTMLSpanElement>>, TextStyleProps {
|
|
1370
1383
|
children?: ReactNode;
|
|
1384
|
+
ref?: RefObject<HTMLSpanElement | null>;
|
|
1371
1385
|
}
|
|
1372
1386
|
|
|
1373
1387
|
export declare function Spinner({ size }: {
|
|
@@ -1470,39 +1484,39 @@ declare enum TagColorSizes {
|
|
|
1470
1484
|
|
|
1471
1485
|
export declare const Text_H1: FC<HeadElementProps>;
|
|
1472
1486
|
|
|
1473
|
-
export declare const Text_H1Ref: ForwardRefExoticComponent<HeadElementProps & RefAttributes<unknown>>;
|
|
1487
|
+
export declare const Text_H1Ref: ForwardRefExoticComponent<Omit<HeadElementProps, "ref"> & RefAttributes<unknown>>;
|
|
1474
1488
|
|
|
1475
1489
|
export declare const Text_H2: FC<HeadElementProps>;
|
|
1476
1490
|
|
|
1477
|
-
export declare const Text_H2Ref: ForwardRefExoticComponent<HeadElementProps & RefAttributes<unknown>>;
|
|
1491
|
+
export declare const Text_H2Ref: ForwardRefExoticComponent<Omit<HeadElementProps, "ref"> & RefAttributes<unknown>>;
|
|
1478
1492
|
|
|
1479
1493
|
export declare const Text_H3: FC<HeadElementProps>;
|
|
1480
1494
|
|
|
1481
|
-
export declare const Text_H3Ref: ForwardRefExoticComponent<HeadElementProps & RefAttributes<unknown>>;
|
|
1495
|
+
export declare const Text_H3Ref: ForwardRefExoticComponent<Omit<HeadElementProps, "ref"> & RefAttributes<unknown>>;
|
|
1482
1496
|
|
|
1483
1497
|
export declare const Text_H4: FC<HeadElementProps>;
|
|
1484
1498
|
|
|
1485
|
-
export declare const Text_H4Ref: ForwardRefExoticComponent<HeadElementProps & RefAttributes<unknown>>;
|
|
1499
|
+
export declare const Text_H4Ref: ForwardRefExoticComponent<Omit<HeadElementProps, "ref"> & RefAttributes<unknown>>;
|
|
1486
1500
|
|
|
1487
1501
|
export declare const Text_H5: FC<HeadElementProps>;
|
|
1488
1502
|
|
|
1489
|
-
export declare const Text_H5Ref: ForwardRefExoticComponent<HeadElementProps & RefAttributes<unknown>>;
|
|
1503
|
+
export declare const Text_H5Ref: ForwardRefExoticComponent<Omit<HeadElementProps, "ref"> & RefAttributes<unknown>>;
|
|
1490
1504
|
|
|
1491
1505
|
export declare const Text_H6: FC<HeadElementProps>;
|
|
1492
1506
|
|
|
1493
|
-
export declare const Text_H6Ref: ForwardRefExoticComponent<HeadElementProps & RefAttributes<unknown>>;
|
|
1507
|
+
export declare const Text_H6Ref: ForwardRefExoticComponent<Omit<HeadElementProps, "ref"> & RefAttributes<unknown>>;
|
|
1494
1508
|
|
|
1495
1509
|
export declare const Text_Header: FC<HeadElementProps>;
|
|
1496
1510
|
|
|
1497
|
-
export declare const Text_HeaderRef: ForwardRefExoticComponent<HeadElementProps & RefAttributes<unknown>>;
|
|
1511
|
+
export declare const Text_HeaderRef: ForwardRefExoticComponent<Omit<HeadElementProps, "ref"> & RefAttributes<unknown>>;
|
|
1498
1512
|
|
|
1499
1513
|
export declare const Text_P: FC<ParagraphProps>;
|
|
1500
1514
|
|
|
1501
|
-
export declare const Text_PRef: ForwardRefExoticComponent<ParagraphProps & RefAttributes<unknown>>;
|
|
1515
|
+
export declare const Text_PRef: ForwardRefExoticComponent<Omit<ParagraphProps, "ref"> & RefAttributes<unknown>>;
|
|
1502
1516
|
|
|
1503
1517
|
export declare const Text_Span: FC<SpanProps>;
|
|
1504
1518
|
|
|
1505
|
-
export declare const Text_SpanRef: ForwardRefExoticComponent<SpanProps & RefAttributes<unknown>>;
|
|
1519
|
+
export declare const Text_SpanRef: ForwardRefExoticComponent<Omit<SpanProps, "ref"> & RefAttributes<unknown>>;
|
|
1506
1520
|
|
|
1507
1521
|
declare enum TextAligns {
|
|
1508
1522
|
Start = 1,
|
|
@@ -1511,7 +1525,7 @@ declare enum TextAligns {
|
|
|
1511
1525
|
Justify = 4
|
|
1512
1526
|
}
|
|
1513
1527
|
|
|
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;
|
|
1528
|
+
export declare const TextArea: ({ id, name, value, modes, label, required, rows, width, fullWidth, placeholder, onChange, handleBlur, handleFocus, handleCheck, size, textAreaStyle, textAreaColor, labelTextColor, noLabel, ref, ...props }: P_15) => JSX_2.Element;
|
|
1515
1529
|
|
|
1516
1530
|
declare enum TextAreaModes {
|
|
1517
1531
|
Default = 1,
|
|
@@ -1537,6 +1551,7 @@ declare interface TextAreaProp {
|
|
|
1537
1551
|
|
|
1538
1552
|
declare interface TextAreaProps extends AnimatedProps<HTMLAttributes<HTMLTextAreaElement>>, TextStyleProps, TextAreaProp {
|
|
1539
1553
|
children?: ReactNode;
|
|
1554
|
+
ref?: Ref<HTMLTextAreaElement> | undefined;
|
|
1540
1555
|
}
|
|
1541
1556
|
|
|
1542
1557
|
declare enum TextAreaSizes {
|
|
@@ -1567,6 +1582,7 @@ declare interface TextInputProp {
|
|
|
1567
1582
|
|
|
1568
1583
|
declare interface TextInputProps extends AnimatedProps<HTMLAttributes<HTMLInputElement>>, TextStyleProps, TextInputProp {
|
|
1569
1584
|
children?: ReactNode;
|
|
1585
|
+
ref?: Ref<HTMLInputElement> | undefined;
|
|
1570
1586
|
}
|
|
1571
1587
|
|
|
1572
1588
|
declare interface TextStyleProps {
|
|
@@ -1627,6 +1643,7 @@ declare type UiContextType = {
|
|
|
1627
1643
|
|
|
1628
1644
|
declare interface UlProps extends AnimatedProps<HTMLAttributes<HTMLUListElement>>, StyleProps {
|
|
1629
1645
|
children?: ReactNode;
|
|
1646
|
+
ref?: RefObject<HTMLUListElement | null>;
|
|
1630
1647
|
}
|
|
1631
1648
|
|
|
1632
1649
|
export declare const useGlobalEventContext: () => GlobalEventContextType;
|