@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/types.d.ts CHANGED
@@ -2,6 +2,7 @@ import { AnimatedProps } from '@react-spring/web';
2
2
  import { ComponentType } from 'react';
3
3
  import { HTMLAttributes } from 'react';
4
4
  import { ReactNode } from 'react';
5
+ import { RefObject } from 'react';
5
6
 
6
7
  declare interface AdmoitionSize {
7
8
  title: {
@@ -337,6 +338,7 @@ export declare enum ButtonIconPositions {
337
338
 
338
339
  export declare interface ButtonProps extends AnimatedProps<HTMLAttributes<HTMLButtonElement>>, StyleProps, ButtonStyleProps {
339
340
  children?: ReactNode;
341
+ ref?: RefObject<HTMLButtonElement | null>;
340
342
  }
341
343
 
342
344
  export declare enum ButtonShadows {
@@ -709,6 +711,7 @@ export declare enum Displays {
709
711
 
710
712
  export declare interface DivProps extends AnimatedProps<HTMLAttributes<HTMLDivElement>>, StyleProps {
711
713
  children?: ReactNode;
714
+ ref?: RefObject<HTMLDivElement | null>;
712
715
  }
713
716
 
714
717
  /**
@@ -1005,6 +1008,7 @@ export declare enum GridRowGaps {
1005
1008
 
1006
1009
  export declare interface HeadElementProps extends AnimatedProps<HTMLAttributes<HTMLHeadElement>>, TextStyleProps, HeaderProps {
1007
1010
  children?: ReactNode;
1011
+ ref?: RefObject<HTMLHeadingElement | null>;
1008
1012
  }
1009
1013
 
1010
1014
  declare interface HeaderProps {
@@ -1388,6 +1392,7 @@ export declare enum JustifySelfs {
1388
1392
 
1389
1393
  export declare interface LayoutDivProps extends AnimatedProps<HTMLAttributes<HTMLDivElement>>, LayoutProps {
1390
1394
  children?: ReactNode;
1395
+ ref?: RefObject<HTMLDivElement | null>;
1391
1396
  }
1392
1397
 
1393
1398
  declare interface LayoutProps {
@@ -1408,6 +1413,7 @@ declare interface LayoutProps {
1408
1413
 
1409
1414
  export declare interface LiProps extends AnimatedProps<HTMLAttributes<HTMLLIElement>>, StyleProps {
1410
1415
  children?: ReactNode;
1416
+ ref?: RefObject<HTMLLIElement | null>;
1411
1417
  }
1412
1418
 
1413
1419
  export declare const MARGIN_BOTTOM_CLASSES: ClassType;
@@ -1463,6 +1469,7 @@ export declare const PADDING_TOP_CLASSES: ClassType;
1463
1469
 
1464
1470
  export declare interface ParagraphProps extends AnimatedProps<HTMLAttributes<HTMLParagraphElement>>, TextStyleProps {
1465
1471
  children?: ReactNode;
1472
+ ref?: RefObject<HTMLParagraphElement | null>;
1466
1473
  }
1467
1474
 
1468
1475
  export declare enum Portals {
@@ -1736,6 +1743,7 @@ export declare enum Spacings {
1736
1743
 
1737
1744
  export declare interface SpanProps extends AnimatedProps<HTMLAttributes<HTMLSpanElement>>, TextStyleProps {
1738
1745
  children?: ReactNode;
1746
+ ref?: RefObject<HTMLSpanElement | null>;
1739
1747
  }
1740
1748
 
1741
1749
  declare interface StyleProps {
@@ -1901,10 +1909,14 @@ declare interface TextAreaProp {
1901
1909
  min?: number | undefined;
1902
1910
  step?: number | undefined;
1903
1911
  rows?: number | undefined;
1912
+ resize?: ElementResizes;
1913
+ outlineStyle?: OutlineStyles;
1914
+ textAreaStyle?: TextAreaStyles;
1904
1915
  }
1905
1916
 
1906
- export declare interface TextAreaProps extends AnimatedProps<HTMLAttributes<HTMLTextAreaElement>>, TextStyleProps, TextAreaStyles_2, TextAreaProp {
1917
+ export declare interface TextAreaProps extends AnimatedProps<HTMLAttributes<HTMLTextAreaElement>>, TextStyleProps, TextAreaProp {
1907
1918
  children?: ReactNode;
1919
+ ref?: RefObject<HTMLTextAreaElement | null>;
1908
1920
  }
1909
1921
 
1910
1922
  export declare enum TextAreaSizes {
@@ -1922,11 +1934,6 @@ export declare enum TextAreaStyles {
1922
1934
  Transparent = 5
1923
1935
  }
1924
1936
 
1925
- declare interface TextAreaStyles_2 {
1926
- resize?: ElementResizes;
1927
- outlineStyle?: OutlineStyles;
1928
- }
1929
-
1930
1937
  declare interface TextInputProp {
1931
1938
  type?: string;
1932
1939
  required?: boolean | undefined;
@@ -1940,6 +1947,7 @@ declare interface TextInputProp {
1940
1947
 
1941
1948
  export declare interface TextInputProps extends AnimatedProps<HTMLAttributes<HTMLInputElement>>, TextStyleProps, TextInputProp {
1942
1949
  children?: ReactNode;
1950
+ ref?: RefObject<HTMLInputElement | null>;
1943
1951
  }
1944
1952
 
1945
1953
  declare interface TextStyleProps {
@@ -2037,6 +2045,7 @@ export declare type UiContextType = {
2037
2045
 
2038
2046
  export declare interface UlProps extends AnimatedProps<HTMLAttributes<HTMLUListElement>>, StyleProps {
2039
2047
  children?: ReactNode;
2048
+ ref?: RefObject<HTMLUListElement | null>;
2040
2049
  }
2041
2050
 
2042
2051
  export { }
package/dist/types.js CHANGED
@@ -1,4 +1,4 @@
1
- import { ag as s, S as _, al as E, ae as A, ah as T, bx as L, aj as C, ai as O, bj as e, am as t, t as I, a0 as o, l as R, m as i, r as n, u as l, o as D, i as N, p as G, n as B, bs as b, j as F, k as r, q as P, s as U, bt as d, B as M, bu as u, v as x, aw as p, by as y, at as g, ao as H, af as X, ak as z, a2 as Y, az as Z, aq as c, bz as m, ay as W, ar as h, ap as V, av as f, aA as w, aC as J, aD as k, C as v, aK as K, a5 as j, A as q, aB as Q, aE as $, a9 as SS, aL as aS, aF as sS, aG as _S, aa as ES, D as AS, a6 as TS, b3 as LS, b2 as CS, Z as OS, a$ as eS, I as tS, H as IS, F as oS, G as RS, E as iS, U as nS, T as lS, bv as DS, W as NS, V as GS, bk as BS, a8 as bS, an as FS, a7 as rS, bl as PS, be as US, $ as dS, bf as MS, ax as uS, Q as xS, L as pS, J as yS, N as gS, K as HS, bm as XS, bn as zS, bo as YS, bp as ZS, bq as cS, aP as mS, aO as WS, aV as hS, aN as VS, bA as fS, aQ as wS, aU as JS, aS as kS, aR as vS, R as KS, br as jS, b as qS, M as QS, c as $S, d as Sa, a as aa, bd as sa, bg as _a, aM as Ea, O as Aa, a_ as Ta, f as La, P as Ca, g as Oa, h as ea, e as ta, x as Ia, y as oa, z as Ra, w as ia, aJ as na, bh as la, bw as Da, ad as Na, b6 as Ga, b4 as Ba, aT as ba, b7 as Fa, b8 as ra, b5 as Pa, a1 as Ua, a3 as da, aH as Ma, X as ua, aX as xa, aW as pa, b1 as ya, Y as ga, ab as Ha, b9 as Xa, bb as za, aI as Ya, bi as Za, aY as ca, b0 as ma, aZ as Wa, a4 as ha, ac as Va, bc as fa, ba as wa } from "./types-B2oLQKyl.js";
1
+ import { ah as s, S as _, am as E, af as A, ai as T, bx as L, ak as C, aj as O, bk as e, an as t, t as I, a0 as o, j as R, k as i, r as n, u as l, o as D, i as N, p as G, n as B, bt as b, l as F, m as r, q as P, s as U, bu as d, B as u, bv as M, v as x, ax as p, by as y, au as g, ap as H, ag as X, al as z, a2 as Y, aA as Z, ar as c, bz as m, az as W, as as h, aq as V, aw as f, aB as w, aD as J, aE as k, C as K, aL as v, a5 as j, A as q, aC as Q, aF as $, aa as SS, aM as aS, aG as sS, aH as _S, ab as ES, D as AS, a6 as TS, b4 as LS, b3 as CS, Z as OS, b0 as eS, I as tS, H as IS, F as oS, G as RS, E as iS, U as nS, T as lS, bw as DS, W as NS, V as GS, bl as BS, a8 as bS, ao as FS, a7 as rS, bm as PS, bf as US, $ as dS, bg as uS, ay as MS, Q as xS, L as pS, J as yS, N as gS, K as HS, bn as XS, bo as zS, bp as YS, bq as ZS, br as cS, aQ as mS, aP as WS, aW as hS, aO as VS, bA as fS, aR as wS, aV as JS, aT as kS, aS as KS, R as vS, bs as jS, b as qS, M as QS, c as $S, d as Sa, a as aa, be as sa, bh as _a, aN as Ea, O as Aa, a$ as Ta, f as La, P as Ca, g as Oa, h as ea, e as ta, x as Ia, y as oa, z as Ra, w as ia, aK as na, bi as la, a9 as Da, ac as Na, b7 as Ga, b5 as Ba, aU as ba, b8 as Fa, b9 as ra, b6 as Pa, a1 as Ua, a3 as da, aI as ua, X as Ma, aY as xa, aX as pa, b2 as ya, Y as ga, ad as Ha, ba as Xa, bc as za, aJ as Ya, bj as Za, aZ as ca, b1 as ma, a_ as Wa, a4 as ha, ae as Va, bd as fa, bb as wa } from "./types-hPYnu-T4.js";
2
2
  export {
3
3
  s as ADMONITION_SIZE,
4
4
  _ as ALIGN_SELF_CLASSES,
@@ -26,8 +26,8 @@ export {
26
26
  P as BORDER_TOP_STYLE_CLASSES,
27
27
  U as BORDER_WIDTH_CLASSES,
28
28
  d as BORDER_WIDTH_VALUES,
29
- M as BOX_SHADOW_CLASSES,
30
- u as BOX_SHADOW_VALUES,
29
+ u as BOX_SHADOW_CLASSES,
30
+ M as BOX_SHADOW_VALUES,
31
31
  x as BOX_SIZING_CLASSES,
32
32
  p as BUTTON_COLORS,
33
33
  y as BUTTON_SHADOWS_CLASSES,
@@ -46,8 +46,8 @@ export {
46
46
  w as ButtonTypes,
47
47
  J as CHECKBOX_COLORS,
48
48
  k as CHECKBOX_SIZES,
49
- v as COLOR_CLASSES,
50
- K as COLOR_RGBA_ALPHA,
49
+ K as COLOR_CLASSES,
50
+ v as COLOR_RGBA_ALPHA,
51
51
  j as COLOR_VALUES,
52
52
  q as CURSOR_CLASSES,
53
53
  Q as CheckboxColors,
@@ -80,8 +80,8 @@ export {
80
80
  PS as FlexWraps,
81
81
  US as FontFamilies,
82
82
  dS as FontSizes,
83
- MS as FontStyles,
84
- uS as FontWeights,
83
+ uS as FontStyles,
84
+ MS as FontWeights,
85
85
  xS as GRID_ALIGN_CONTENT_CLASSES,
86
86
  pS as GRID_COLUMN_GAP_CLASSES,
87
87
  yS as GRID_GAP_CLASSES,
@@ -100,8 +100,8 @@ export {
100
100
  wS as InputTextModes,
101
101
  JS as InputTextSizes,
102
102
  kS as InputTextStyles,
103
- vS as InputTextTypes,
104
- KS as JUSTIFY_SELF_CLASSES,
103
+ KS as InputTextTypes,
104
+ vS as JUSTIFY_SELF_CLASSES,
105
105
  jS as JustifySelfs,
106
106
  qS as MARGIN_BOTTOM_CLASSES,
107
107
  QS as MARGIN_CLASSES,
@@ -134,8 +134,8 @@ export {
134
134
  Pa as SelectedValuesStyles,
135
135
  Ua as Sizings,
136
136
  da as Spacings,
137
- Ma as TAG_SIZE,
138
- ua as TEXT_ALIGN_CLASSES,
137
+ ua as TAG_SIZE,
138
+ Ma as TEXT_ALIGN_CLASSES,
139
139
  xa as TEXT_AREA_COLOR,
140
140
  pa as TEXT_AREA_SIZE,
141
141
  ya as TEXT_AREA_STYLE,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@functionalui/functionalui",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -39,39 +39,32 @@
39
39
  "color": "^4.2.3",
40
40
  "dayjs": "^1.11.13",
41
41
  "immutability-helper": "^3.1.1",
42
- "rdndmb-html5-to-touch": "^8.1.2",
43
- "react": "^18.3.1",
42
+ "react": "19.2.4",
44
43
  "react-colorful": "^5.6.1",
45
44
  "react-dnd": "^16.0.1",
46
- "react-dnd-html5-backend": "^16.0.1",
47
- "react-dnd-multi-backend": "^8.1.2",
48
- "react-dnd-touch-backend": "^16.0.1",
49
- "react-dom": "^18.3.1",
45
+ "react-dom": "19.2.4",
50
46
  "react-intersection-observer": "^9.14.1",
51
47
  "react-use-measure": "^2.1.1"
52
48
  },
53
49
  "devDependencies": {
54
- "@chromatic-com/storybook": "^3.2.3",
50
+ "@chromatic-com/storybook": "^5.0.0",
55
51
  "@eslint/js": "^9.17.0",
56
- "@storybook/addon-essentials": "^8.4.7",
57
- "@storybook/addon-interactions": "^8.4.7",
58
- "@storybook/addon-onboarding": "^8.4.7",
59
- "@storybook/blocks": "^8.4.7",
60
- "@storybook/react": "^8.4.7",
61
- "@storybook/react-vite": "^8.4.7",
62
- "@storybook/test": "^8.4.7",
52
+ "@storybook/addon-docs": "^10.2.7",
53
+ "@storybook/addon-onboarding": "^10.2.7",
54
+ "@storybook/react": "^10.2.7",
55
+ "@storybook/react-vite": "^10.2.7",
63
56
  "@types/color": "^4.2.0",
64
57
  "@types/node": "^22.10.5",
65
- "@types/react": "^18.3.18",
66
- "@types/react-dom": "^18.3.5",
58
+ "@types/react": "19.2.13",
59
+ "@types/react-dom": "19.2.3",
67
60
  "@vitejs/plugin-react": "^4.3.4",
68
61
  "eslint": "^9.17.0",
69
62
  "eslint-plugin-react-hooks": "^5.0.0",
70
63
  "eslint-plugin-react-refresh": "^0.4.16",
71
- "eslint-plugin-storybook": "^0.11.2",
64
+ "eslint-plugin-storybook": "^10.2.7",
72
65
  "globals": "^15.14.0",
73
66
  "rollup-preserve-directives": "^1.1.3",
74
- "storybook": "^8.4.7",
67
+ "storybook": "^10.2.7",
75
68
  "typescript": "~5.6.2",
76
69
  "typescript-eslint": "^8.18.2",
77
70
  "vite": "^6.0.5",