react-native-tinyui 0.3.0 → 0.4.0

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.
Files changed (97) hide show
  1. package/README.md +69 -2
  2. package/Tinyui.podspec +7 -1
  3. package/ios/Core/Tinyui.mm +4 -0
  4. package/ios/Core/TinyuiComponentClasses.mm +35 -9
  5. package/ios/LiquidGlassText/GlassText-LICENSE +21 -0
  6. package/ios/LiquidGlassText/TinyuiLiquidGlassTextProvider.swift +265 -0
  7. package/ios/LiquidGlassText/TinyuiLiquidGlassTextView.h +12 -0
  8. package/ios/LiquidGlassText/TinyuiLiquidGlassTextView.mm +84 -0
  9. package/ios/LiquidGlassText/TinyuiTextOutlineShape.swift +113 -0
  10. package/lib/module/LiquidGlassText/LiquidGlassTextNativeComponent.ts +26 -0
  11. package/lib/module/LiquidGlassText/index.js +62 -0
  12. package/lib/module/LiquidGlassText/index.js.map +1 -0
  13. package/lib/module/LiquidGlassText/types.js +4 -0
  14. package/lib/module/LiquidGlassText/types.js.map +1 -0
  15. package/lib/module/{Menu.js → Menu/index.js} +3 -3
  16. package/lib/module/Menu/index.js.map +1 -0
  17. package/lib/module/{MenuOptions.js → Menu/options.js} +1 -1
  18. package/lib/module/Menu/options.js.map +1 -0
  19. package/lib/module/Menu/types.js +4 -0
  20. package/lib/module/Menu/types.js.map +1 -0
  21. package/lib/module/{PopoverPrimitives.js → Popover/PopoverClose.js} +1 -1
  22. package/lib/module/Popover/PopoverClose.js.map +1 -0
  23. package/lib/module/{Popover.js → Popover/index.js} +3 -3
  24. package/lib/module/Popover/index.js.map +1 -0
  25. package/lib/module/Popover/types.js +4 -0
  26. package/lib/module/Popover/types.js.map +1 -0
  27. package/lib/module/index.js +4 -3
  28. package/lib/module/index.js.map +1 -1
  29. package/lib/module/{getNativeTinyui.js → utils/getNativeTinyui.js} +1 -1
  30. package/lib/module/utils/getNativeTinyui.js.map +1 -0
  31. package/lib/module/utils/index.js +4 -0
  32. package/lib/module/utils/index.js.map +1 -0
  33. package/lib/typescript/src/LiquidGlassText/LiquidGlassTextNativeComponent.d.ts +14 -0
  34. package/lib/typescript/src/LiquidGlassText/LiquidGlassTextNativeComponent.d.ts.map +1 -0
  35. package/lib/typescript/src/LiquidGlassText/index.d.ts +4 -0
  36. package/lib/typescript/src/LiquidGlassText/index.d.ts.map +1 -0
  37. package/lib/typescript/src/LiquidGlassText/types.d.ts +31 -0
  38. package/lib/typescript/src/LiquidGlassText/types.d.ts.map +1 -0
  39. package/lib/typescript/src/Menu/MenuNativeComponent.d.ts.map +1 -0
  40. package/lib/typescript/src/{Menu.d.ts → Menu/index.d.ts} +3 -3
  41. package/lib/typescript/src/Menu/index.d.ts.map +1 -0
  42. package/lib/typescript/src/{MenuOptions.d.ts → Menu/options.d.ts} +2 -2
  43. package/lib/typescript/src/Menu/options.d.ts.map +1 -0
  44. package/lib/typescript/src/{Menu.types.d.ts → Menu/types.d.ts} +1 -1
  45. package/lib/typescript/src/Menu/types.d.ts.map +1 -0
  46. package/lib/typescript/src/{PopoverPrimitives.d.ts → Popover/PopoverClose.d.ts} +2 -2
  47. package/lib/typescript/src/Popover/PopoverClose.d.ts.map +1 -0
  48. package/lib/typescript/src/Popover/PopoverNativeComponent.d.ts.map +1 -0
  49. package/lib/typescript/src/Popover/index.d.ts +8 -0
  50. package/lib/typescript/src/Popover/index.d.ts.map +1 -0
  51. package/lib/typescript/src/{Popover.types.d.ts → Popover/types.d.ts} +1 -1
  52. package/lib/typescript/src/Popover/types.d.ts.map +1 -0
  53. package/lib/typescript/src/index.d.ts +8 -6
  54. package/lib/typescript/src/index.d.ts.map +1 -1
  55. package/lib/typescript/src/{getNativeTinyui.d.ts → utils/getNativeTinyui.d.ts} +2 -2
  56. package/lib/typescript/src/utils/getNativeTinyui.d.ts.map +1 -0
  57. package/lib/typescript/src/utils/index.d.ts +3 -0
  58. package/lib/typescript/src/utils/index.d.ts.map +1 -0
  59. package/package.json +19 -10
  60. package/src/LiquidGlassText/LiquidGlassTextNativeComponent.ts +26 -0
  61. package/src/LiquidGlassText/index.tsx +79 -0
  62. package/src/LiquidGlassText/types.ts +63 -0
  63. package/src/{Menu.tsx → Menu/index.tsx} +4 -4
  64. package/src/{MenuOptions.ts → Menu/options.ts} +1 -1
  65. package/src/{PopoverPrimitives.tsx → Popover/PopoverClose.tsx} +1 -1
  66. package/src/{Popover.tsx → Popover/index.tsx} +12 -3
  67. package/src/index.tsx +14 -4
  68. package/src/react-native.d.ts +1 -0
  69. package/src/{getNativeTinyui.ts → utils/getNativeTinyui.ts} +2 -2
  70. package/src/utils/index.ts +2 -0
  71. package/lib/module/Menu.js.map +0 -1
  72. package/lib/module/Menu.types.js +0 -4
  73. package/lib/module/Menu.types.js.map +0 -1
  74. package/lib/module/MenuOptions.js.map +0 -1
  75. package/lib/module/Popover.js.map +0 -1
  76. package/lib/module/Popover.types.js +0 -4
  77. package/lib/module/Popover.types.js.map +0 -1
  78. package/lib/module/PopoverPrimitives.js.map +0 -1
  79. package/lib/module/getNativeTinyui.js.map +0 -1
  80. package/lib/typescript/src/Menu.d.ts.map +0 -1
  81. package/lib/typescript/src/Menu.types.d.ts.map +0 -1
  82. package/lib/typescript/src/MenuNativeComponent.d.ts.map +0 -1
  83. package/lib/typescript/src/MenuOptions.d.ts.map +0 -1
  84. package/lib/typescript/src/Popover.d.ts +0 -7
  85. package/lib/typescript/src/Popover.d.ts.map +0 -1
  86. package/lib/typescript/src/Popover.types.d.ts.map +0 -1
  87. package/lib/typescript/src/PopoverNativeComponent.d.ts.map +0 -1
  88. package/lib/typescript/src/PopoverPrimitives.d.ts.map +0 -1
  89. package/lib/typescript/src/getNativeTinyui.d.ts.map +0 -1
  90. /package/lib/module/{MenuNativeComponent.ts → Menu/MenuNativeComponent.ts} +0 -0
  91. /package/lib/module/{PopoverNativeComponent.ts → Popover/PopoverNativeComponent.ts} +0 -0
  92. /package/lib/typescript/src/{MenuNativeComponent.d.ts → Menu/MenuNativeComponent.d.ts} +0 -0
  93. /package/lib/typescript/src/{PopoverNativeComponent.d.ts → Popover/PopoverNativeComponent.d.ts} +0 -0
  94. /package/src/{MenuNativeComponent.ts → Menu/MenuNativeComponent.ts} +0 -0
  95. /package/src/{Menu.types.ts → Menu/types.ts} +0 -0
  96. /package/src/{PopoverNativeComponent.ts → Popover/PopoverNativeComponent.ts} +0 -0
  97. /package/src/{Popover.types.ts → Popover/types.ts} +0 -0
@@ -0,0 +1,26 @@
1
+ import {
2
+ codegenNativeComponent,
3
+ type ColorValue,
4
+ type ViewProps,
5
+ } from 'react-native';
6
+ import type {
7
+ DirectEventHandler,
8
+ Double,
9
+ } from 'react-native/Libraries/Types/CodegenTypes';
10
+
11
+ export interface NativeLiquidGlassTextProps extends ViewProps {
12
+ configuration: string;
13
+ tintColor?: ColorValue;
14
+ onContentSizeChange?: DirectEventHandler<
15
+ Readonly<{
16
+ width: Double;
17
+ height: Double;
18
+ configuration: string;
19
+ }>
20
+ >;
21
+ }
22
+
23
+ export default codegenNativeComponent<NativeLiquidGlassTextProps>(
24
+ 'TinyuiLiquidGlassTextView',
25
+ { excludedPlatforms: ['android'] }
26
+ );
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+
3
+ import { forwardRef, useState } from 'react';
4
+ import { assertComponentEnabled } from "../utils/index.js";
5
+ import NativeLiquidGlassTextView from './LiquidGlassTextNativeComponent';
6
+ import { jsx as _jsx } from "react/jsx-runtime";
7
+ export const LiquidGlassText = /*#__PURE__*/forwardRef(function LiquidGlassTextRoot({
8
+ text,
9
+ glass = 'clear',
10
+ font = 'body',
11
+ fontWeight,
12
+ fontDesign,
13
+ multilineTextAlignment = 'leading',
14
+ style,
15
+ accessibilityLabel,
16
+ accessible = true,
17
+ accessibilityRole = 'text',
18
+ ...viewProps
19
+ }, ref) {
20
+ assertComponentEnabled('LiquidGlassText');
21
+ const [measurement, setMeasurement] = useState({
22
+ width: 0,
23
+ height: 0
24
+ });
25
+ const configuration = JSON.stringify({
26
+ text,
27
+ glass: typeof glass === 'string' ? glass : glass.effect ?? 'clear',
28
+ interactive: typeof glass === 'object' && (glass.interactive ?? false),
29
+ font: typeof font === 'string' ? {
30
+ style: font
31
+ } : font,
32
+ fontWeight,
33
+ fontDesign,
34
+ multilineTextAlignment
35
+ });
36
+ return /*#__PURE__*/_jsx(NativeLiquidGlassTextView, {
37
+ ...viewProps,
38
+ ref: ref,
39
+ accessible: accessible,
40
+ accessibilityRole: accessibilityRole,
41
+ accessibilityLabel: accessibilityLabel ?? text,
42
+ configuration: configuration,
43
+ tintColor: typeof glass === 'object' ? glass.tint : undefined,
44
+ style: [{
45
+ width: measurement.width,
46
+ height: measurement.height
47
+ }, style],
48
+ onContentSizeChange: ({
49
+ nativeEvent
50
+ }) => {
51
+ // Ignore measurements queued before a newer text/font update.
52
+ if (nativeEvent.configuration !== configuration) {
53
+ return;
54
+ }
55
+ setMeasurement(previous => previous.width === nativeEvent.width && previous.height === nativeEvent.height ? previous : {
56
+ width: nativeEvent.width,
57
+ height: nativeEvent.height
58
+ });
59
+ }
60
+ });
61
+ });
62
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["forwardRef","useState","assertComponentEnabled","NativeLiquidGlassTextView","jsx","_jsx","LiquidGlassText","LiquidGlassTextRoot","text","glass","font","fontWeight","fontDesign","multilineTextAlignment","style","accessibilityLabel","accessible","accessibilityRole","viewProps","ref","measurement","setMeasurement","width","height","configuration","JSON","stringify","effect","interactive","tintColor","tint","undefined","onContentSizeChange","nativeEvent","previous"],"sourceRoot":"../../../src","sources":["LiquidGlassText/index.tsx"],"mappings":";;AAAA,SAASA,UAAU,EAAEC,QAAQ,QAA2B,OAAO;AAG/D,SAASC,sBAAsB,QAAQ,mBAAU;AAEjD,OAAOC,yBAAyB,MAAM,kCAAkC;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEzE,OAAO,MAAMC,eAAe,gBAAGN,UAAU,CAGvC,SAASO,mBAAmBA,CAC5B;EACEC,IA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AAEA,CAAC;MAAEC;IAAY,CAAC,KAAK;MACxC;MACA,IAAIA,WAAW,CAACT,aAAa,KAAKA,aAAa,EAAE;QAC/C;MACF;MACAH,cAAc,CAAEa,QAAQ,IACtBA,QAAQ,CAACZ,KAAK,KAAKW,WAAW,CAACX,KAAK,IACpCY,QAAQ,CAACX,MAAM,KAAKU,WAAW,CAACV,MAAM,GAClCW,QAAQ,GACR;QACEZ,KAAK,EAAEW,WAAW,CAACX,KAAK;QACxBC,MAAM,EAAEU,WAAW,CAACV;MACtB,CACN,CAAC;IACH;EAAE,CACH,CAAC;AAEN,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export {};
4
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["LiquidGlassText/types.ts"],"mappings":"","ignoreList":[]}
@@ -2,9 +2,9 @@
2
2
 
3
3
  import { forwardRef } from 'react';
4
4
  import { View } from 'react-native';
5
- import { assertComponentEnabled } from "./getNativeTinyui.js";
5
+ import { assertComponentEnabled } from "../utils/index.js";
6
6
  import NativeMenuView from './MenuNativeComponent';
7
- import { serializeMenuOptions } from "./MenuOptions.js";
7
+ import { serializeMenuOptions } from "./options.js";
8
8
  import { jsx as _jsx } from "react/jsx-runtime";
9
9
  const MenuRoot = /*#__PURE__*/forwardRef(function Menu({
10
10
  accessibilityLabel,
@@ -42,4 +42,4 @@ const MenuRoot = /*#__PURE__*/forwardRef(function Menu({
42
42
  });
43
43
  });
44
44
  export const Menu = MenuRoot;
45
- //# sourceMappingURL=Menu.js.map
45
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["forwardRef","View","assertComponentEnabled","NativeMenuView","serializeMenuOptions","jsx","_jsx","MenuRoot","Menu","accessibilityLabel","children","disabled","onPrimaryAction","options","title","testID","viewProps","ref","config","callbacks","collapsable","hasPrimaryAction","menuConfig","onItemPress","event","get","native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function serializeOptions(options, callbacks, usedIds, path) {
70
70
  };
71
71
  });
72
72
  }
73
- //# sourceMappingURL=MenuOptions.js.map
73
+ //# sourceMappingURL=options.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["processColor","serializeColor","color","undefined","serializeMenuOptions","options","callbacks","Map","items","serializeOptions","Set","config","JSON","stringify","usedIds","path","map","option","index","optionPath","type","title","subtitle","systemImage","icon","iconColor","titleColor","destructive","disabled","hidden","displayInline","children","id","has","Error","add","onSelect","set","state","keepOpen"],"sourceRoot":"../../../src","sources":["Menu/options.ts"],"mappings":";;AAAA,SAASA,YAAY,QAAyB,cAAc;AAuD5D,SAASC,cAAcA,CAACC,KAA6B,EAAmB;EACtE,OAAOA,KAAK,KAAKC,SAAS,GAAGA,SAAS,GAAGH,YAAY,CAACE,KAAK,CAAC;AAC9D;AAEA,OAAO,SAASE,oBAAoBA,CAClCC,OAA8B,EACP;EACvB,MAAMC,SAAS,GAAG,IAAIC,GAAG,CAAqB,CAAC;EAC/C,MAAMC,KAAK,GAAGC,gBAAgB,CAACJ,OAAO,EAAEC,SAAS,EAAE,IAAII,GAAG,CAAC,CAAC,EAAE,MAAM,CAAC;EAErE,OAAO;IACLJ,SAAS;IACTK,MAAM,EAAEC,IAAI,CAACC,SAAS,CAAC;MAAEL;IAAM,CAAC;EAClC,CAAC;AACH;AAEA,SAASC,gBAAgBA,CACvBJ,OAA8B,EAC9BC,SAAkC,EAClCQ,OAAoB,EACpBC,IAAY,EACS;EACrB,OAAOV,OAAO,CAACW,GAAG,CAAC,CAACC,MAAM,EAAEC,KAAK,KAAK;IACpC,MAAMC,UAAU,GAAG,GAAGJ,IAAI,IAAIG,KAAK,EAAE;IAErC,IAAID,MAAM,CAACG,IAAI,KAAK,SAAS,EAAE;MAC7B,OAAO;QAAEA,IAAI,EAAE;MAAY,CAAC;IAC9B;IAEA,IAAIH,MAAM,CAACG,IAAI,KAAK,SAAS,EAAE;MAC7B,OAAO;QACLA,IAAI,EAAE,SAA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ACLhB,IAAI,EAAE,QAAQ;MACdY,EAAE;MACFX,KAAK,EAAEJ,MAAM,CAACI,KAAK;MACnBC,QAAQ,EAAEL,MAAM,CAACK,QAAQ;MACzBC,WAAW,EAAEN,MAAM,CAACM,WAAW;MAC/BC,IAAI,EAAEP,MAAM,CAACO,IAAI;MACjBC,SAAS,EAAExB,cAAc,CAACgB,MAAM,CAACQ,SAAS,CAAC;MAC3CC,UAAU,EAAEzB,cAAc,CAACgB,MAAM,CAACS,UAAU,CAAC;MAC7CY,KAAK,EAAErB,MAAM,CAACqB,KAAK,IAAI,KAAK;MAC5BX,WAAW,EAAEV,MAAM,CAACU,WAAW,IAAI,KAAK;MACxCC,QAAQ,EAAEX,MAAM,CAACW,QAAQ,IAAI,KAAK;MAClCC,MAAM,EAAEZ,MAAM,CAACY,MAAM,IAAI,KAAK;MAC9BU,QAAQ,EAAEtB,MAAM,CAACsB,QAAQ,IAAI;IAC/B,CAAC;EACH,CAAC,CAAC;AACJ","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export {};
4
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["Menu/types.ts"],"mappings":"","ignoreList":[]}
@@ -30,4 +30,4 @@ export function PopoverClose({
30
30
  });
31
31
  }
32
32
  PopoverClose.displayName = 'Popover.Close';
33
- //# sourceMappingURL=PopoverPrimitives.js.map
33
+ //# sourceMappingURL=PopoverClose.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Pressable","jsx","_jsx","PopoverClose","close","onPress","props","event","displayName"],"sourceRoot":"../../../src","sources":["Popover/PopoverClose.tsx"],"mappings":";;AACA,SAASA,SAAS,QAAQ,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAIzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,YAAYA,CAAC;EAC3BC,KAAK;EACLC,OAAO;EACP,GAAGC;AACc,CAAC,EAAa;EAC/B,oBACEJ,IAAA,CAACF,SAAS;IAAA,GACJM,KAAK;IACTD,OAAO,EAAGE,KAAK,IAAK;MAClBF,OAAO,GAAGE,KAAK,CAAC;MAChBH,KAAK,CAAC,CAAC;IACT;EAAE,CACH,CAAC;AAEN;AAEAD,YAAY,CAACK,WAAW,GAAG,eAAe","ignoreList":[]}
@@ -2,8 +2,8 @@
2
2
 
3
3
  import { forwardRef, useCallback, useState } from 'react';
4
4
  import { PlatformColor, Pressable, StyleSheet, View } from 'react-native';
5
- import { assertComponentEnabled } from "./getNativeTinyui.js";
6
- import { PopoverClose } from "./PopoverPrimitives.js";
5
+ import { assertComponentEnabled } from "../utils/index.js";
6
+ import { PopoverClose } from "./PopoverClose.js";
7
7
  import NativePopoverView from './PopoverNativeComponent';
8
8
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
9
  const PopoverRoot = /*#__PURE__*/forwardRef(function Popover({
@@ -68,4 +68,4 @@ export const Popover = Object.assign(PopoverRoot, {
68
68
  Close: PopoverClose
69
69
  });
70
70
  export { PopoverClose };
71
- //# sourceMappingURL=Popover.js.map
71
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["forwardRef","useCallback","useState","PlatformColor","Pressable","StyleSheet","View","assertComponentEnabled","PopoverClose","NativePopoverView","jsx","_jsx","jsxs","_jsxs","PopoverRoot","Popover","children","content","open","defaultOpen","onOpenChange","attachmentAnchor","arrowEdge","viewProps","ref","uncontrolledOpen","setUncontrolledOpen","isControlled","undefined","isOpen","setOpen","nextOpen","close","renderedContent","renderContent","collapsable","isPresented","onIsPresentedChange","event","nativeEvent","onPress","style","styles","pointerEvents","args","create","position","backgroundColor","overflow","Object","assign","Close"],"sourceRoot":"../../../src","sources":["Popover/index.tsx"],"mappings":";;AAAA,SAASA,UAAU,EAAEC,WAAW,EAAEC,QAAQ,QAA2B,OAAO;AAE5E,SAASC,aAA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BAAgB,EAAEA,gBAAiB;MACnCC,SAAS,EAAEA,SAAU;MACrBc,WAAW,EAAEP,MAAO;MACpBQ,mBAAmB,EAAGC,KAAK,IAAK;QAC9B,IAAI,CAACA,KAAK,CAACC,WAAW,CAACH,WAAW,IAAIP,MAAM,EAAE;UAC5CC,OAAO,CAAC,KAAK,CAAC;QAChB;MACF,CAAE;MAAAd,QAAA,gBAEFL,IAAA,CAACP,SAAS;QAACoC,OAAO,EAAEA,CAAA,KAAMV,OAAO,CAAC,IAAI,CAAE;QAAAd,QAAA,EAAEA;MAAQ,CAAY,CAAC,eAC/DL,IAAA,CAACL,IAAI;QAACmC,KAAK,EAAEC,MAAM,CAACzB,OAAQ;QAAC0B,aAAa,EAAC,UAAU;QAAA3B,QAAA,EAClDiB;MAAe,CACZ,CAAC;IAAA,CACU;EAAC,CAChB,CAAC;AAEX,CACF,CAAC;AAED,SAASC,aAAaA,CACpBjB,OAA2B,EAC3B2B,IAA8B,EACnB;EACX,OAAO,OAAO3B,OAAO,KAAK,UAAU,GAAGA,OAAO,CAAC2B,IAAI,CAAC,GAAG3B,OAAO;AAChE;AAEA,MAAMyB,MAAM,GAAGrC,UAAU,CAACwC,MAAM,CAAC;EAC/B5B,OAAO,EAAE;IACP6B,QAAQ,EAAE,UAAU;IACpBC,eAAe,EAAE5C,aAAa,CAAC,kBAAkB,CAAC;IAClD6C,QAAQ,EAAE;EACZ;AACF,CAAC,CAAC;AAEF,OAAO,MAAMjC,OAAO,GAAGkC,MAAM,CAACC,MAAM,CAACpC,WAAW,EAAE;EAChDqC,KAAK,EAAE3C;AACT,CAAC,CAEA;AAED,SAASA,YAAY","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export {};
4
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["Popover/types.ts"],"mappings":"","ignoreList":[]}
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
 
3
- export { Menu } from "./Menu.js";
4
- export { Popover, PopoverClose } from "./Popover.js";
5
- export { getNativeTinyui, assertComponentEnabled } from "./getNativeTinyui.js";
3
+ export { Menu } from "./Menu/index.js";
4
+ export { Popover, PopoverClose } from "./Popover/index.js";
5
+ export { getNativeTinyui, assertComponentEnabled } from "./utils/index.js";
6
+ export { LiquidGlassText } from "./LiquidGlassText/index.js";
6
7
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["Menu","Popover","PopoverClose","getNativeTinyui","assertComponentEnabled"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA,SAASA,IAAI,QAAQ,WAAQ;AAW7B,SAASC,OAAO,EAAEC,YAAY,QAAQ,cAAW;AAUjD,SAASC,eAAe,EAAEC,sBAAsB,QAAQ,sBAAmB","ignoreList":[]}
1
+ {"version":3,"names":["Menu","Popover","PopoverClose","getNativeTinyui","assertComponentEnabled","LiquidGlassText"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA,SAASA,IAAI,QAAQ,iBAAQ;AAW7B,SAASC,OAAO,EAAEC,YAAY,QAAQ,oBAAW;AAUjD,SAASC,eAAe,EAAEC,sBAAsB,QAAQ,kBAAS;AAGjE,SAASC,eAAe,QAAQ,4BAAmB","ignoreList":[]}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- import NativeTinyui from "./NativeTinyui.js";
3
+ import NativeTinyui from "../NativeTinyui.js";
4
4
  let nativeTinyui;
5
5
  let enabledComponents;
6
6
 
@@ -0,0 +1 @@
1
+ {"version":3,"names":["NativeTinyui","nativeTinyui","enabledComponents","getNativeTinyui","Error","assertComponentEnabled","component","tinyui","Set","getEnabledComponents","has"],"sourceRoot":"../../../src","sources":["utils/getNativeTinyui.ts"],"mappings":";;AAAA,OAAOA,YAAY,MAAqB,oBAAiB;AAIzD,IAAIC,YAAqC;AACzC,IAAIC,iBAAkD;;AAEtD;AACA;AACA;AACA;AACA,OAAO,SAASC,eAAeA,CAAA,EAAS;EACtCF,YAAY,KAAKD,YAAY;EAC7B,IAAIC,YAAY,IAAI,IAAI,EAAE;IACxB,MAAM,IAAIG,KAAK,CACb,sDAAsD,GACpD,8DACJ,CAAC;EACH;EACA,OAAOH,YAAY;AACrB;;AAEA;AACA;AACA;AACA;AACA,OAAO,SAASI,sBAAsBA,CAACC,SAA0B,EAAQ;EACvE,MAAMC,MAAM,GAAGJ,eAAe,CAAC,CAAC;EAChCD,iBAAiB,KAAK,IAAIM,GAAG,CAACD,MAAM,CAACE,oBAAoB,CAAC,CAAC,CAAC;EAE5D,IAAI,CAACP,iBAAiB,CAACQ,GAAG,CAACJ,SAAS,CAAC,EAAE;IACrC,MAAM,IAAIF,KAAK,CACb,gBAAgBE,SAAS,+BAA+B,GACtD,QAAQA,SAAS,kDAAkD,GACnE,sCACJ,CAAC;EACH;AACF","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export { getNativeTinyui, assertComponentEnabled } from "./getNativeTinyui.js";
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["getNativeTinyui","assertComponentEnabled"],"sourceRoot":"../../../src","sources":["utils/index.ts"],"mappings":";;AAAA,SAASA,eAAe,EAAEC,sBAAsB,QAAQ,sBAAmB","ignoreList":[]}
@@ -0,0 +1,14 @@
1
+ import { type ColorValue, type ViewProps } from 'react-native';
2
+ import type { DirectEventHandler, Double } from 'react-native/Libraries/Types/CodegenTypes';
3
+ export interface NativeLiquidGlassTextProps extends ViewProps {
4
+ configuration: string;
5
+ tintColor?: ColorValue;
6
+ onContentSizeChange?: DirectEventHandler<Readonly<{
7
+ width: Double;
8
+ height: Double;
9
+ configuration: string;
10
+ }>>;
11
+ }
12
+ declare const _default: import("react-native/types_generated/Libraries/Utilities/codegenNativeComponent").NativeComponentType<NativeLiquidGlassTextProps>;
13
+ export default _default;
14
+ //# sourceMappingURL=LiquidGlassTextNativeComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LiquidGlassTextNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/LiquidGlassText/LiquidGlassTextNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,UAAU,EACf,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EACV,kBAAkB,EAClB,MAAM,EACP,MAAM,2CAA2C,CAAC;AAEnD,MAAM,WAAW,0BAA2B,SAAQ,SAAS;IAC3D,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,mBAAmB,CAAC,EAAE,kBAAkB,CACtC,QAAQ,CAAC;QACP,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;QACf,aAAa,EAAE,MAAM,CAAC;KACvB,CAAC,CACH,CAAC;CACH;;AAED,wBAGE"}
@@ -0,0 +1,4 @@
1
+ import type { LiquidGlassTextProps } from './types.js';
2
+ export declare const LiquidGlassText: import("react").ForwardRefExoticComponent<LiquidGlassTextProps & import("react").RefAttributes<import("react-native/types_generated/src/private/webapis/dom/nodes/ReactNativeElement").default>>;
3
+ export type { LiquidGlassTextFont, LiquidGlassTextFontDesign, LiquidGlassTextFontStyle, LiquidGlassTextFontWeight, LiquidGlassTextGlass, LiquidGlassTextProps, } from './types.js';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/LiquidGlassText/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAS,CAAC;AAGpD,eAAO,MAAM,eAAe,kMA8D1B,CAAC;AAEH,YAAY,EACV,mBAAmB,EACnB,yBAAyB,EACzB,wBAAwB,EACxB,yBAAyB,EACzB,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,YAAS,CAAC"}
@@ -0,0 +1,31 @@
1
+ import type { ColorValue, ViewProps } from 'react-native';
2
+ export type LiquidGlassTextFontDesign = 'default' | 'serif' | 'monospaced' | 'rounded';
3
+ export type LiquidGlassTextFontWeight = 'ultraLight' | 'thin' | 'light' | 'regular' | 'medium' | 'semibold' | 'bold' | 'heavy' | 'black';
4
+ export type LiquidGlassTextFontStyle = 'largeTitle' | 'title' | 'title2' | 'title3' | 'headline' | 'subheadline' | 'body' | 'callout' | 'footnote' | 'caption' | 'caption2';
5
+ export type LiquidGlassTextFont = LiquidGlassTextFontStyle | Readonly<{
6
+ size: number;
7
+ weight?: LiquidGlassTextFontWeight;
8
+ design?: LiquidGlassTextFontDesign;
9
+ /** PostScript name of a font installed in the containing app. */
10
+ family?: string;
11
+ }>;
12
+ export type LiquidGlassTextGlass = 'clear' | 'regular' | 'identity' | Readonly<{
13
+ effect?: 'clear' | 'regular' | 'identity';
14
+ tint?: ColorValue;
15
+ interactive?: boolean;
16
+ }>;
17
+ export interface LiquidGlassTextProps extends Omit<ViewProps, 'children'> {
18
+ /** Text to display. Pass translated strings from JavaScript if needed. */
19
+ text: string;
20
+ /** Defaults to clear. Native glass requires iOS 26+. */
21
+ glass?: LiquidGlassTextGlass;
22
+ /** SwiftUI text style or an explicit system/custom font. Defaults to body. */
23
+ font?: LiquidGlassTextFont;
24
+ /** Overrides the weight specified in font. */
25
+ fontWeight?: LiquidGlassTextFontWeight;
26
+ /** Overrides the design specified in font. */
27
+ fontDesign?: LiquidGlassTextFontDesign;
28
+ /** Aligns explicit newline-separated lines. Defaults to leading. */
29
+ multilineTextAlignment?: 'leading' | 'center' | 'trailing';
30
+ }
31
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/LiquidGlassText/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE1D,MAAM,MAAM,yBAAyB,GACnC,SAAS,GAAG,OAAO,GAAG,YAAY,GAAG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ponent.d.ts","sourceRoot":"","sources":["../../../../src/Menu/MenuNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0B,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AACtE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AAEpF,MAAM,WAAW,eAAgB,SAAQ,SAAS;IAChD,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,WAAW,CAAC,EAAE,kBAAkB,CAAC,QAAQ,CAAC;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC,CAAC;IAC3D,eAAe,CAAC,EAAE,kBAAkB,CAAC,IAAI,CAAC,CAAC;CAC5C;;AAED,wBAEG"}
@@ -1,4 +1,4 @@
1
- import type { MenuComponent } from './Menu.types.js';
1
+ import type { MenuComponent } from './types.js';
2
2
  export declare const Menu: MenuComponent;
3
- export type { MenuActionOption, MenuDividerOption, MenuItemState, MenuOption, MenuProps, MenuSectionOption, MenuSubmenuOption, } from './Menu.types.js';
4
- //# sourceMappingURL=Menu.d.ts.map
3
+ export type { MenuActionOption, MenuDividerOption, MenuItemState, MenuOption, MenuProps, MenuSectionOption, MenuSubmenuOption, } from './types.js';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Menu/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAa,MAAM,YAAS,CAAC;AAuCxD,eAAO,MAAM,IAAI,EAAe,aAAa,CAAC;AAE9C,YAAY,EACV,gBAAgB,EAChB,iBAAiB,EACjB,aAAa,EACb,UAAU,EACV,SAAS,EACT,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,YAAS,CAAC"}
@@ -1,7 +1,7 @@
1
- import type { MenuOption } from './Menu.types.js';
1
+ import type { MenuOption } from './types.js';
2
2
  export interface SerializedMenuOptions {
3
3
  config: string;
4
4
  callbacks: Map<string, () => void>;
5
5
  }
6
6
  export declare function serializeMenuOptions(options: readonly MenuOption[]): SerializedMenuOptions;
7
- //# sourceMappingURL=MenuOptions.d.ts.map
7
+ //# sourceMappingURL=options.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../src/Menu/options.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAS,CAAC;AAgD1C,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,IAAI,CAAC,CAAC;CACpC;AAMD,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,SAAS,UAAU,EAAE,GAC7B,qBAAqB,CAQvB"}
@@ -62,4 +62,4 @@ export interface MenuProps extends Omit<ViewProps, 'children'> {
62
62
  export interface MenuComponent extends ForwardRefExoticComponent<MenuProps & RefAttributes<ComponentRef<typeof View>>> {
63
63
  }
64
64
  export {};
65
- //# sourceMappingURL=Menu.types.d.ts.map
65
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/Menu/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,yBAAyB,EACzB,SAAS,EACT,aAAa,EACd,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEhE,MAAM,MAAM,aAAa,GAAG,KAAK,GAAG,IAAI,GAAG,OAAO,CAAC;AAEnD,UAAU,eAAe;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,sBAAsB;IACtB,WAAW,CAAC,EAAE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AC;IAC5D,2BAA2B;IAC3B,QAAQ,EAAE,SAAS,CAAC;IACpB,8DAA8D;IAC9D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,6DAA6D;IAC7D,OAAO,EAAE,SAAS,UAAU,EAAE,CAAC;IAC/B,kDAAkD;IAClD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,qEAAqE;IACrE,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;CAC9B;AAED,MAAM,WAAW,aAAc,SAAQ,yBAAyB,CAC9D,SAAS,GAAG,aAAa,CAAC,YAAY,CAAC,OAAO,IAAI,CAAC,CAAC,CACrD;CAAG"}
@@ -1,5 +1,5 @@
1
1
  import type { ReactNode } from 'react';
2
- import type { PopoverCloseProps } from './Popover.types.js';
2
+ import type { PopoverCloseProps } from './types.js';
3
3
  /**
4
4
  * A button that dismisses the popover. Render it inside the `content` prop
5
5
  * and pass the `close` callback from the render-function arguments:
@@ -18,4 +18,4 @@ export declare function PopoverClose({ close, onPress, ...props }: PopoverCloseP
18
18
  export declare namespace PopoverClose {
19
19
  var displayName: string;
20
20
  }
21
- //# sourceMappingURL=PopoverPrimitives.d.ts.map
21
+ //# sourceMappingURL=PopoverClose.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PopoverClose.d.ts","sourceRoot":"","sources":["../../../../src/Popover/PopoverClose.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAS,CAAC;AAEjD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,OAAO,EACP,GAAG,KAAK,EACT,EAAE,iBAAiB,GAAG,SAAS,CAU/B;yBAde,YAAY"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PopoverNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/Popover/PopoverNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0B,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AACtE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AAEpF,MAAM,WAAW,kBAAmB,SAAQ,SAAS;IACnD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mBAAmB,CAAC,EAAE,kBAAkB,CAAC,QAAQ,CAAC;QAAE,WAAW,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC,CAAC;CAC9E;;AAED,wBAEG"}
@@ -0,0 +1,8 @@
1
+ import { PopoverClose } from './PopoverClose.js';
2
+ import type { PopoverComponent } from './types.js';
3
+ export declare const Popover: PopoverComponent & {
4
+ Close: typeof PopoverClose;
5
+ };
6
+ export { PopoverClose };
7
+ export type { PopoverArrowEdge, PopoverAttachmentAnchor, PopoverCloseProps, PopoverContent, PopoverContentRenderArgs, PopoverProps, } from './types.js';
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Popover/index.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAgB,CAAC;AAC9C,OAAO,KAAK,EACV,gBAAgB,EAIjB,MAAM,YAAS,CAAC;AA0EjB,eAAO,MAAM,OAAO,EAEd,gBAAgB,GAAG;IACvB,KAAK,EAAE,OAAO,YAAY,CAAC;CAC5B,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,CAAC;AAExB,YAAY,EACV,gBAAgB,EAChB,uBAAuB,EACvB,iBAAiB,EACjB,cAAc,EACd,wBAAwB,EACxB,YAAY,GACb,MAAM,YAAS,CAAC"}
@@ -32,4 +32,4 @@ export interface PopoverCloseProps extends PressableProps {
32
32
  /** Dismisses the popover. Pass the `close` callback from the content render args. */
33
33
  close: () => void;
34
34
  }
35
- //# sourceMappingURL=Popover.types.d.ts.map
35
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/Popover/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,yBAAyB,EACzB,aAAa,EACd,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,cAAc,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpE,MAAM,MAAM,uBAAuB,GACjC,SAAS,GAAG,UAAU,GAAG,QAAQ,GAAG,KAAK,GAAG,QAAQ,CAAC;AAEvD,MAAM,MAAM,gBAAgB,GAC1B,SAAS,GAAG,UAAU,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAC;AAErD,uDAAuD;AACvD,MAAM,WAAW,wBAAwB;IACvC,6BAA6B;IAC7B,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB;AAED,MAAM,MAAM,cAAc,GACxB,SAAS,GAAG,CAAC,CAAC,IAAI,EAAE,wBAAwB,KAAK,SAAS,CAAC,CAAC;AAE9D,MAAM,WAAW,YAAa,SAAQ,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC;IAC/D,yDAAyD;IACzD,QAAQ,EAAE,SAAS,CAAC;IACpB;;;OAGG;IACH,OAAO,EAAE,cAAc,CAAC;IACxB,qCAAqC;IACrC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,mDAAmD;IACnD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,gBAAgB,CAAC,EAAE,uBAAuB,CAAC;IAC3C,SAAS,CAAC,EAAE,gBAAgB,CAAC;CAC9B;AAED,MAAM,WAAW,gBAAiB,SAAQ,yBAAyB,CACjE,YAAY,GAAG,aAAa,CAAC,YAAY,CAAC,OAAO,IAAI,CAAC,CAAC,CACxD;CAAG;AAEJ,mDAAmD;AACnD,MAAM,WAAW,iBAAkB,SAAQ,cAAc;IACvD,qFAAqF;IACrF,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB"}
@@ -1,7 +1,9 @@
1
- export { Menu } from './Menu.js';
2
- export type { MenuActionOption, MenuDividerOption, MenuItemState, MenuOption, MenuProps, MenuSectionOption, MenuSubmenuOption, } from './Menu.types.js';
3
- export { Popover, PopoverClose } from './Popover.js';
4
- export type { PopoverArrowEdge, PopoverAttachmentAnchor, PopoverCloseProps, PopoverContent, PopoverContentRenderArgs, PopoverProps, } from './Popover.types.js';
5
- export { getNativeTinyui, assertComponentEnabled } from './getNativeTinyui.js';
6
- export type { TinyuiComponent } from './getNativeTinyui.js';
1
+ export { Menu } from './Menu/index.js';
2
+ export type { MenuActionOption, MenuDividerOption, MenuItemState, MenuOption, MenuProps, MenuSectionOption, MenuSubmenuOption, } from './Menu/index.js';
3
+ export { Popover, PopoverClose } from './Popover/index.js';
4
+ export type { PopoverArrowEdge, PopoverAttachmentAnchor, PopoverCloseProps, PopoverContent, PopoverContentRenderArgs, PopoverProps, } from './Popover/index.js';
5
+ export { getNativeTinyui, assertComponentEnabled } from './utils/index.js';
6
+ export type { TinyuiComponent } from './utils/index.js';
7
+ export { LiquidGlassText } from './LiquidGlassText/index.js';
8
+ export type { LiquidGlassTextFont, LiquidGlassTextFontDesign, LiquidGlassTextFontStyle, LiquidGlassTextFontWeight, LiquidGlassTextGlass, LiquidGlassTextProps, } from './LiquidGlassText/index.js';
7
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAQ,CAAC;AAC9B,YAAY,EACV,gBAAgB,EAChB,iBAAiB,EACjB,aAAa,EACb,UAAU,EACV,SAAS,EACT,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,iBAAc,CAAC;AAEtB,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,cAAW,CAAC;AAClD,YAAY,EACV,gBAAgB,EAChB,uBAAuB,EACvB,iBAAiB,EACjB,cAAc,EACd,wBAAwB,EACxB,YAAY,GACb,MAAM,oBAAiB,CAAC;AAEzB,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,sBAAmB,CAAC;AAC5E,YAAY,EAAE,eAAe,EAAE,MAAM,sBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAQ,CAAC;AAC9B,YAAY,EACV,gBAAgB,EAChB,iBAAiB,EACjB,aAAa,EACb,UAAU,EACV,SAAS,EACT,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,iBAAQ,CAAC;AAEhB,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAW,CAAC;AAClD,YAAY,EACV,gBAAgB,EAChB,uBAAuB,EACvB,iBAAiB,EACjB,cAAc,EACd,wBAAwB,EACxB,YAAY,GACb,MAAM,oBAAW,CAAC;AAEnB,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,kBAAS,CAAC;AAClE,YAAY,EAAE,eAAe,EAAE,MAAM,kBAAS,CAAC;AAE/C,OAAO,EAAE,eAAe,EAAE,MAAM,4BAAmB,CAAC;AACpD,YAAY,EACV,mBAAmB,EACnB,yBAAyB,EACzB,wBAAwB,EACxB,yBAAyB,EACzB,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,4BAAmB,CAAC"}
@@ -1,5 +1,5 @@
1
- import { type Spec } from './NativeTinyui.js';
2
- export type TinyuiComponent = 'Menu' | 'Popover';
1
+ import { type Spec } from '../NativeTinyui.js';
2
+ export type TinyuiComponent = 'Menu' | 'Popover' | 'LiquidGlassText';
3
3
  /**
4
4
  * Returns the Tinyui TurboModule instance. The native module is always
5
5
  * compiled (Core), so this is safe to call.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getNativeTinyui.d.ts","sourceRoot":"","sources":["../../../../src/utils/getNativeTinyui.ts"],"names":[],"mappings":"AAAA,OAAqB,EAAE,KAAK,IAAI,EAAE,MAAM,oBAAiB,CAAC;AAE1D,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,SAAS,GAAG,iBAAiB,CAAC;AAKrE;;;GAGG;AACH,wBAAgB,eAAe,IAAI,IAAI,CAStC;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,eAAe,GAAG,IAAI,CAWvE"}
@@ -0,0 +1,3 @@
1
+ export { getNativeTinyui, assertComponentEnabled } from './getNativeTinyui.js';
2
+ export type { TinyuiComponent } from './getNativeTinyui.js';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,sBAAmB,CAAC;AAC5E,YAAY,EAAE,eAAe,EAAE,MAAM,sBAAmB,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-native-tinyui",
3
- "version": "0.3.0",
4
- "description": "Dependency-free native iOS Menu and Popover components for React Native",
3
+ "version": "0.4.0",
4
+ "description": "Dependency-free native iOS Menu, Popover and LiquidGlassText components for React Native",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",
7
7
  "exports": {
@@ -11,16 +11,21 @@
11
11
  "default": "./lib/module/index.js"
12
12
  },
13
13
  "./menu": {
14
- "react-native-tinyui-source": "./src/Menu.tsx",
15
- "types": "./lib/typescript/src/Menu.d.ts",
16
- "default": "./lib/module/Menu.js"
14
+ "react-native-tinyui-source": "./src/Menu/index.tsx",
15
+ "types": "./lib/typescript/src/Menu/index.d.ts",
16
+ "default": "./lib/module/Menu/index.js"
17
17
  },
18
18
  "./popover": {
19
- "react-native-tinyui-source": "./src/Popover.tsx",
20
- "types": "./lib/typescript/src/Popover.d.ts",
21
- "default": "./lib/module/Popover.js"
19
+ "react-native-tinyui-source": "./src/Popover/index.tsx",
20
+ "types": "./lib/typescript/src/Popover/index.d.ts",
21
+ "default": "./lib/module/Popover/index.js"
22
22
  },
23
- "./package.json": "./package.json"
23
+ "./package.json": "./package.json",
24
+ "./liquid-glass-text": {
25
+ "react-native-tinyui-source": "./src/LiquidGlassText/index.tsx",
26
+ "types": "./lib/typescript/src/LiquidGlassText/index.d.ts",
27
+ "default": "./lib/module/LiquidGlassText/index.js"
28
+ }
24
29
  },
25
30
  "files": [
26
31
  "src",
@@ -47,7 +52,8 @@
47
52
  "ios",
48
53
  "menu",
49
54
  "popover",
50
- "fabric"
55
+ "fabric",
56
+ "liquid-glass"
51
57
  ],
52
58
  "repository": {
53
59
  "type": "git",
@@ -128,6 +134,9 @@
128
134
  },
129
135
  "TinyuiPopoverView": {
130
136
  "className": "TinyuiPopoverView"
137
+ },
138
+ "TinyuiLiquidGlassTextView": {
139
+ "className": "TinyuiLiquidGlassTextView"
131
140
  }
132
141
  }
133
142
  }
@@ -0,0 +1,26 @@
1
+ import {
2
+ codegenNativeComponent,
3
+ type ColorValue,
4
+ type ViewProps,
5
+ } from 'react-native';
6
+ import type {
7
+ DirectEventHandler,
8
+ Double,
9
+ } from 'react-native/Libraries/Types/CodegenTypes';
10
+
11
+ export interface NativeLiquidGlassTextProps extends ViewProps {
12
+ configuration: string;
13
+ tintColor?: ColorValue;
14
+ onContentSizeChange?: DirectEventHandler<
15
+ Readonly<{
16
+ width: Double;
17
+ height: Double;
18
+ configuration: string;
19
+ }>
20
+ >;
21
+ }
22
+
23
+ export default codegenNativeComponent<NativeLiquidGlassTextProps>(
24
+ 'TinyuiLiquidGlassTextView',
25
+ { excludedPlatforms: ['android'] }
26
+ );