@functionalui/functionalui 0.1.1 → 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
@@ -9,6 +9,7 @@ import { JSX } from 'react';
9
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
14
  export declare const Admonition: ({ level, size, descriptionText, children, }: Props_4) => JSX_2.Element;
14
15
 
@@ -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 = {
@@ -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,
@@ -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 {
@@ -956,6 +960,7 @@ 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,10 +979,11 @@ 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
989
  export declare const LoadingSpinner: ({ isLoading, size }: Props) => JSX.Element;
@@ -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 {
@@ -1368,6 +1376,7 @@ 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 }: {
@@ -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,
@@ -1537,6 +1546,7 @@ declare interface TextAreaProp {
1537
1546
 
1538
1547
  declare interface TextAreaProps extends AnimatedProps<HTMLAttributes<HTMLTextAreaElement>>, TextStyleProps, TextAreaProp {
1539
1548
  children?: ReactNode;
1549
+ ref?: RefObject<HTMLTextAreaElement | null>;
1540
1550
  }
1541
1551
 
1542
1552
  declare enum TextAreaSizes {
@@ -1567,6 +1577,7 @@ declare interface TextInputProp {
1567
1577
 
1568
1578
  declare interface TextInputProps extends AnimatedProps<HTMLAttributes<HTMLInputElement>>, TextStyleProps, TextInputProp {
1569
1579
  children?: ReactNode;
1580
+ ref?: RefObject<HTMLInputElement | null>;
1570
1581
  }
1571
1582
 
1572
1583
  declare interface TextStyleProps {
@@ -1627,6 +1638,7 @@ declare type UiContextType = {
1627
1638
 
1628
1639
  declare interface UlProps extends AnimatedProps<HTMLAttributes<HTMLUListElement>>, StyleProps {
1629
1640
  children?: ReactNode;
1641
+ ref?: RefObject<HTMLUListElement | null>;
1630
1642
  }
1631
1643
 
1632
1644
  export declare const useGlobalEventContext: () => GlobalEventContextType;