@functionalui/functionalui 0.1.0 → 0.1.2

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.d.ts CHANGED
@@ -5,12 +5,13 @@ 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 as JSX_2 } from 'react';
9
- import { JSX as JSX_3 } from 'react/jsx-runtime';
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
+ import { RefObject } from 'react';
12
13
 
13
- export declare const Admonition: ({ level, size, descriptionText, children, }: Props_4) => JSX_3.Element;
14
+ export declare const Admonition: ({ level, size, descriptionText, children, }: Props_4) => JSX_2.Element;
14
15
 
15
16
  declare enum AdmonitionLevels {
16
17
  Info = 1,
@@ -121,6 +122,7 @@ declare enum ButtonIconPositions {
121
122
 
122
123
  declare interface ButtonProps extends AnimatedProps<HTMLAttributes<HTMLButtonElement>>, StyleProps, ButtonStyleProps {
123
124
  children?: ReactNode;
125
+ ref?: RefObject<HTMLButtonElement | null>;
124
126
  }
125
127
 
126
128
  declare type ButtonProps_2 = {
@@ -185,7 +187,7 @@ declare interface CellStyles {
185
187
  };
186
188
  }
187
189
 
188
- export declare const Checkbox: ({ isChecked, size, checkboxColor, onClick, }: Props_5) => JSX_3.Element;
190
+ export declare const Checkbox: ({ isChecked, size, checkboxColor, onClick, }: Props_5) => JSX_2.Element;
189
191
 
190
192
  declare enum CheckboxColors {
191
193
  Primary5 = 1,
@@ -197,7 +199,7 @@ declare enum CheckboxColors {
197
199
  Yellow5 = 7
198
200
  }
199
201
 
200
- export declare const Checkboxes: ({ options, multiselect, checkboxColor, size, handleClick, }: CheckboxesProps) => JSX_3.Element;
202
+ export declare const Checkboxes: ({ options, multiselect, checkboxColor, size, handleClick, }: CheckboxesProps) => JSX_2.Element;
201
203
 
202
204
  declare type CheckboxesProps = {
203
205
  options: CheckboxOption[];
@@ -339,7 +341,7 @@ declare enum ColorSets {
339
341
 
340
342
  export declare const Container: FC<DivProps>;
341
343
 
342
- export declare const ContainerRef: ForwardRefExoticComponent<DivProps & RefAttributes<unknown>>;
344
+ export declare const ContainerRef: ForwardRefExoticComponent<Omit<DivProps, "ref"> & RefAttributes<unknown>>;
343
345
 
344
346
  declare enum Cursors {
345
347
  Auto = 1,
@@ -385,6 +387,7 @@ export declare const DivMeasure: FC<P>;
385
387
 
386
388
  declare interface DivProps extends AnimatedProps<HTMLAttributes<HTMLDivElement>>, StyleProps {
387
389
  children?: ReactNode;
390
+ ref?: RefObject<HTMLDivElement | null>;
388
391
  }
389
392
 
390
393
  /**
@@ -411,23 +414,23 @@ declare enum ElementResizes {
411
414
 
412
415
  export declare const F__Button: FC<ButtonProps>;
413
416
 
414
- export declare const F__ButtonRef: ForwardRefExoticComponent<ButtonProps & RefAttributes<unknown>>;
417
+ export declare const F__ButtonRef: ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & RefAttributes<unknown>>;
415
418
 
416
419
  export declare const F__Li: FC<LiProps>;
417
420
 
418
- export declare const F__LiRef: ForwardRefExoticComponent<LiProps & RefAttributes<unknown>>;
421
+ export declare const F__LiRef: ForwardRefExoticComponent<Omit<LiProps, "ref"> & RefAttributes<unknown>>;
419
422
 
420
423
  export declare const F__TextArea: FC<TextAreaProps>;
421
424
 
422
- export declare const F__TextAreaRef: ForwardRefExoticComponent<TextAreaProps & RefAttributes<unknown>>;
425
+ export declare const F__TextAreaRef: ForwardRefExoticComponent<Omit<TextAreaProps, "ref"> & RefAttributes<unknown>>;
423
426
 
424
427
  export declare const F__TextInput: FC<TextInputProps>;
425
428
 
426
- export declare const F__TextInputRef: ForwardRefExoticComponent<TextInputProps & RefAttributes<unknown>>;
429
+ export declare const F__TextInputRef: ForwardRefExoticComponent<Omit<TextInputProps, "ref"> & RefAttributes<unknown>>;
427
430
 
428
431
  export declare const F__Ul: FC<UlProps>;
429
432
 
430
- export declare const F__UlRef: ForwardRefExoticComponent<UlProps & RefAttributes<unknown>>;
433
+ export declare const F__UlRef: ForwardRefExoticComponent<Omit<UlProps, "ref"> & RefAttributes<unknown>>;
431
434
 
432
435
  declare enum FlexAlignContents {
433
436
  FlexStart = 1,
@@ -523,7 +526,7 @@ declare type GlobalEventContextType = {
523
526
 
524
527
  export declare const GlobalEventPortal: ({ children }: {
525
528
  children: default_2.ReactNode;
526
- }) => JSX_3.Element;
529
+ }) => JSX_2.Element;
527
530
 
528
531
  declare enum GridAlignContents {
529
532
  Start = 1,
@@ -587,6 +590,7 @@ declare enum GridRowGaps {
587
590
 
588
591
  declare interface HeadElementProps extends AnimatedProps<HTMLAttributes<HTMLHeadElement>>, TextStyleProps, HeaderProps {
589
592
  children?: ReactNode;
593
+ ref?: RefObject<HTMLHeadingElement | null>;
590
594
  }
591
595
 
592
596
  declare interface HeaderProps {
@@ -886,9 +890,9 @@ declare enum Icons {
886
890
  ZoomOut = "zoom-out"
887
891
  }
888
892
 
889
- export declare const InputImage: ({ id, name, handleImageChange, labelname, defaultValue, width, height, }: P_12) => JSX_3.Element;
893
+ export declare const InputImage: ({ id, name, handleImageChange, labelname, defaultValue, width, height, }: P_12) => JSX_2.Element;
890
894
 
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_3.Element;
895
+ 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
896
 
893
897
  declare enum InputTextModes {
894
898
  Default = 1,
@@ -950,12 +954,13 @@ export declare const LabelText: ({ labelName, offsetX, y, x, hover, }: {
950
954
  y?: number | undefined;
951
955
  x?: number | undefined;
952
956
  hover?: boolean | undefined;
953
- }) => JSX_3.Element;
957
+ }) => JSX_2.Element;
954
958
 
955
959
  export declare const Layout: FC<LayoutDivProps>;
956
960
 
957
961
  declare interface LayoutDivProps extends AnimatedProps<HTMLAttributes<HTMLDivElement>>, LayoutProps {
958
962
  children?: ReactNode;
963
+ ref?: RefObject<HTMLDivElement | null>;
959
964
  }
960
965
 
961
966
  declare interface LayoutProps {
@@ -974,13 +979,14 @@ declare interface LayoutProps {
974
979
  alignSelf?: AlignSelfs;
975
980
  }
976
981
 
977
- export declare const LayoutRef: ForwardRefExoticComponent<LayoutDivProps & RefAttributes<unknown>>;
982
+ export declare const LayoutRef: ForwardRefExoticComponent<Omit<LayoutDivProps, "ref"> & RefAttributes<unknown>>;
978
983
 
979
984
  declare interface LiProps extends AnimatedProps<HTMLAttributes<HTMLLIElement>>, StyleProps {
980
985
  children?: ReactNode;
986
+ ref?: RefObject<HTMLLIElement | null>;
981
987
  }
982
988
 
983
- export declare const LoadingSpinner: ({ isLoading, size }: Props) => JSX_2.Element;
989
+ export declare const LoadingSpinner: ({ isLoading, size }: Props) => JSX.Element;
984
990
 
985
991
  export declare const Modal: FC<P_11>;
986
992
 
@@ -989,7 +995,7 @@ declare enum ModalStyles {
989
995
  Nocard = 2
990
996
  }
991
997
 
992
- export declare const NotificationSystem: () => JSX_3.Element;
998
+ export declare const NotificationSystem: () => JSX_2.Element;
993
999
 
994
1000
  declare enum OutlineStyles {
995
1001
  None = 1,
@@ -1096,7 +1102,7 @@ declare interface P_15 extends HTMLAttributes<HTMLTextAreaElement> {
1096
1102
  handleFocus?: (...args: any[]) => void;
1097
1103
  handleCheck?: (v?: any) => Promise<any> | void;
1098
1104
  size?: TextAreaSizes;
1099
- textAreaStyle?: TextAreaStyles_2;
1105
+ textAreaStyle?: TextAreaStyles;
1100
1106
  textAreaColor?: ColorSets;
1101
1107
  labelTextColor?: boolean | ColorPalettes;
1102
1108
  noLabel?: boolean;
@@ -1161,7 +1167,7 @@ declare interface P_3 {
1161
1167
  children?: ReactNode;
1162
1168
  }
1163
1169
 
1164
- declare type P_4 = {
1170
+ declare interface P_4 extends AnimatedProps<HTMLAttributes<HTMLDivElement>> {
1165
1171
  name: Icons | string;
1166
1172
  withMargin?: boolean;
1167
1173
  size?: Sizings;
@@ -1174,8 +1180,9 @@ declare type P_4 = {
1174
1180
  animated?: boolean;
1175
1181
  cursor?: Cursors;
1176
1182
  overflow?: string;
1177
- borderRadius?: string;
1178
- };
1183
+ borderRadius?: Radiuses | string;
1184
+ bgColor?: ColorPalettes;
1185
+ }
1179
1186
 
1180
1187
  declare interface P_5 {
1181
1188
  isLoading?: boolean;
@@ -1229,6 +1236,7 @@ declare interface P_9 {
1229
1236
 
1230
1237
  declare interface ParagraphProps extends AnimatedProps<HTMLAttributes<HTMLParagraphElement>>, TextStyleProps {
1231
1238
  children?: ReactNode;
1239
+ ref?: RefObject<HTMLParagraphElement | null>;
1232
1240
  }
1233
1241
 
1234
1242
  declare enum Positions {
@@ -1293,9 +1301,9 @@ declare type Props_6 = {
1293
1301
 
1294
1302
  export declare function ProvideGlobalEventContext({ children, }: {
1295
1303
  children: default_2.ReactNode;
1296
- }): JSX_3.Element;
1304
+ }): JSX_2.Element;
1297
1305
 
1298
- export declare function ProvideUiContext({ children }: Props_3): JSX_3.Element;
1306
+ export declare function ProvideUiContext({ children }: Props_3): JSX_2.Element;
1299
1307
 
1300
1308
  export declare const Radio: FC<P_13>;
1301
1309
 
@@ -1368,11 +1376,12 @@ declare enum Spacings {
1368
1376
 
1369
1377
  declare interface SpanProps extends AnimatedProps<HTMLAttributes<HTMLSpanElement>>, TextStyleProps {
1370
1378
  children?: ReactNode;
1379
+ ref?: RefObject<HTMLSpanElement | null>;
1371
1380
  }
1372
1381
 
1373
1382
  export declare function Spinner({ size }: {
1374
1383
  size?: Sizings | undefined;
1375
- }): JSX_3.Element;
1384
+ }): JSX_2.Element;
1376
1385
 
1377
1386
  export declare const SpringEnter: FC<P_2>;
1378
1387
 
@@ -1383,7 +1392,7 @@ export declare const SpringMenuTransition: FC<Props_2>;
1383
1392
  export declare const SpringOpenCloseHeight: ({ isOpen, children, }: {
1384
1393
  isOpen: boolean;
1385
1394
  children: ReactNode;
1386
- }) => JSX_3.Element;
1395
+ }) => JSX_2.Element;
1387
1396
 
1388
1397
  declare interface StyleProps {
1389
1398
  margin?: Spacings;
@@ -1432,7 +1441,7 @@ declare interface TableHeaderElement {
1432
1441
  sortable?: boolean;
1433
1442
  }
1434
1443
 
1435
- export declare const TableRow: ({ rowId, templateColumns, cells, hover, onClickRow, }: TableRowElement) => JSX_3.Element;
1444
+ export declare const TableRow: ({ rowId, templateColumns, cells, hover, onClickRow, }: TableRowElement) => JSX_2.Element;
1436
1445
 
1437
1446
  declare type TableRowCellElement = {
1438
1447
  cellId?: string | number;
@@ -1457,7 +1466,7 @@ declare interface TabMenu {
1457
1466
  element?: ReactNode;
1458
1467
  }
1459
1468
 
1460
- export declare const Tabs: ({ tabMenu, tab, setTab }: P_20) => JSX_3.Element;
1469
+ export declare const Tabs: ({ tabMenu, tab, setTab }: P_20) => JSX_2.Element;
1461
1470
 
1462
1471
  export declare const TagColor: FC<P_8>;
1463
1472
 
@@ -1470,39 +1479,39 @@ declare enum TagColorSizes {
1470
1479
 
1471
1480
  export declare const Text_H1: FC<HeadElementProps>;
1472
1481
 
1473
- export declare const Text_H1Ref: ForwardRefExoticComponent<HeadElementProps & RefAttributes<unknown>>;
1482
+ export declare const Text_H1Ref: ForwardRefExoticComponent<Omit<HeadElementProps, "ref"> & RefAttributes<unknown>>;
1474
1483
 
1475
1484
  export declare const Text_H2: FC<HeadElementProps>;
1476
1485
 
1477
- export declare const Text_H2Ref: ForwardRefExoticComponent<HeadElementProps & RefAttributes<unknown>>;
1486
+ export declare const Text_H2Ref: ForwardRefExoticComponent<Omit<HeadElementProps, "ref"> & RefAttributes<unknown>>;
1478
1487
 
1479
1488
  export declare const Text_H3: FC<HeadElementProps>;
1480
1489
 
1481
- export declare const Text_H3Ref: ForwardRefExoticComponent<HeadElementProps & RefAttributes<unknown>>;
1490
+ export declare const Text_H3Ref: ForwardRefExoticComponent<Omit<HeadElementProps, "ref"> & RefAttributes<unknown>>;
1482
1491
 
1483
1492
  export declare const Text_H4: FC<HeadElementProps>;
1484
1493
 
1485
- export declare const Text_H4Ref: ForwardRefExoticComponent<HeadElementProps & RefAttributes<unknown>>;
1494
+ export declare const Text_H4Ref: ForwardRefExoticComponent<Omit<HeadElementProps, "ref"> & RefAttributes<unknown>>;
1486
1495
 
1487
1496
  export declare const Text_H5: FC<HeadElementProps>;
1488
1497
 
1489
- export declare const Text_H5Ref: ForwardRefExoticComponent<HeadElementProps & RefAttributes<unknown>>;
1498
+ export declare const Text_H5Ref: ForwardRefExoticComponent<Omit<HeadElementProps, "ref"> & RefAttributes<unknown>>;
1490
1499
 
1491
1500
  export declare const Text_H6: FC<HeadElementProps>;
1492
1501
 
1493
- export declare const Text_H6Ref: ForwardRefExoticComponent<HeadElementProps & RefAttributes<unknown>>;
1502
+ export declare const Text_H6Ref: ForwardRefExoticComponent<Omit<HeadElementProps, "ref"> & RefAttributes<unknown>>;
1494
1503
 
1495
1504
  export declare const Text_Header: FC<HeadElementProps>;
1496
1505
 
1497
- export declare const Text_HeaderRef: ForwardRefExoticComponent<HeadElementProps & RefAttributes<unknown>>;
1506
+ export declare const Text_HeaderRef: ForwardRefExoticComponent<Omit<HeadElementProps, "ref"> & RefAttributes<unknown>>;
1498
1507
 
1499
1508
  export declare const Text_P: FC<ParagraphProps>;
1500
1509
 
1501
- export declare const Text_PRef: ForwardRefExoticComponent<ParagraphProps & RefAttributes<unknown>>;
1510
+ export declare const Text_PRef: ForwardRefExoticComponent<Omit<ParagraphProps, "ref"> & RefAttributes<unknown>>;
1502
1511
 
1503
1512
  export declare const Text_Span: FC<SpanProps>;
1504
1513
 
1505
- export declare const Text_SpanRef: ForwardRefExoticComponent<SpanProps & RefAttributes<unknown>>;
1514
+ export declare const Text_SpanRef: ForwardRefExoticComponent<Omit<SpanProps, "ref"> & RefAttributes<unknown>>;
1506
1515
 
1507
1516
  declare enum TextAligns {
1508
1517
  Start = 1,
@@ -1511,7 +1520,7 @@ declare enum TextAligns {
1511
1520
  Justify = 4
1512
1521
  }
1513
1522
 
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_3.Element;
1523
+ 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
1524
 
1516
1525
  declare enum TextAreaModes {
1517
1526
  Default = 1,
@@ -1530,10 +1539,14 @@ declare interface TextAreaProp {
1530
1539
  min?: number | undefined;
1531
1540
  step?: number | undefined;
1532
1541
  rows?: number | undefined;
1542
+ resize?: ElementResizes;
1543
+ outlineStyle?: OutlineStyles;
1544
+ textAreaStyle?: TextAreaStyles;
1533
1545
  }
1534
1546
 
1535
- declare interface TextAreaProps extends AnimatedProps<HTMLAttributes<HTMLTextAreaElement>>, TextStyleProps, TextAreaStyles, TextAreaProp {
1547
+ declare interface TextAreaProps extends AnimatedProps<HTMLAttributes<HTMLTextAreaElement>>, TextStyleProps, TextAreaProp {
1536
1548
  children?: ReactNode;
1549
+ ref?: RefObject<HTMLTextAreaElement | null>;
1537
1550
  }
1538
1551
 
1539
1552
  declare enum TextAreaSizes {
@@ -1543,12 +1556,7 @@ declare enum TextAreaSizes {
1543
1556
  Huge = 4
1544
1557
  }
1545
1558
 
1546
- declare interface TextAreaStyles {
1547
- resize?: ElementResizes;
1548
- outlineStyle?: OutlineStyles;
1549
- }
1550
-
1551
- declare enum TextAreaStyles_2 {
1559
+ declare enum TextAreaStyles {
1552
1560
  Default = 1,// outline
1553
1561
  Outlined = 2,// outline overall
1554
1562
  Filled = 3,// border bottom & bg color
@@ -1569,6 +1577,7 @@ declare interface TextInputProp {
1569
1577
 
1570
1578
  declare interface TextInputProps extends AnimatedProps<HTMLAttributes<HTMLInputElement>>, TextStyleProps, TextInputProp {
1571
1579
  children?: ReactNode;
1580
+ ref?: RefObject<HTMLInputElement | null>;
1572
1581
  }
1573
1582
 
1574
1583
  declare interface TextStyleProps {
@@ -1616,7 +1625,7 @@ declare enum ToggleStates {
1616
1625
  Disabled = 5
1617
1626
  }
1618
1627
 
1619
- export declare const ToggleSwitch: ({ isTrue, setIsTrue, size, icon, toggleState, description, }: Props_6) => JSX_3.Element;
1628
+ export declare const ToggleSwitch: ({ isTrue, setIsTrue, size, icon, toggleState, description, }: Props_6) => JSX_2.Element;
1620
1629
 
1621
1630
  export declare const UIcon: FC<P_4>;
1622
1631
 
@@ -1629,6 +1638,7 @@ declare type UiContextType = {
1629
1638
 
1630
1639
  declare interface UlProps extends AnimatedProps<HTMLAttributes<HTMLUListElement>>, StyleProps {
1631
1640
  children?: ReactNode;
1641
+ ref?: RefObject<HTMLUListElement | null>;
1632
1642
  }
1633
1643
 
1634
1644
  export declare const useGlobalEventContext: () => GlobalEventContextType;