react-native-tinyui 0.5.0 → 1.1.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 (140) hide show
  1. package/README.md +468 -28
  2. package/ios/ConcentricView/TinyuiConcentricView.h +12 -0
  3. package/ios/ConcentricView/TinyuiConcentricView.mm +60 -0
  4. package/ios/Core/Tinyui.mm +54 -0
  5. package/ios/Core/TinyuiComponentClasses.mm +44 -0
  6. package/ios/Menu/TinyuiMenuBuilder.swift +238 -0
  7. package/ios/Menu/TinyuiMenuProvider.swift +141 -75
  8. package/ios/Menu/TinyuiMenuView.mm +24 -35
  9. package/ios/Popover/TinyuiPopoverProvider.swift +198 -44
  10. package/ios/Popover/TinyuiPopoverView.mm +26 -1
  11. package/ios/SFSymbol/TinyuiSFSymbolEffects.h +9 -0
  12. package/ios/SFSymbol/TinyuiSFSymbolEffects.mm +180 -0
  13. package/ios/SFSymbol/TinyuiSFSymbolImage.h +8 -0
  14. package/ios/SFSymbol/TinyuiSFSymbolImage.mm +141 -0
  15. package/ios/SFSymbol/TinyuiSFSymbolShadowNode.h +31 -0
  16. package/ios/SFSymbol/TinyuiSFSymbolShadowNode.mm +30 -0
  17. package/ios/SFSymbol/TinyuiSFSymbolView.h +4 -0
  18. package/ios/SFSymbol/TinyuiSFSymbolView.mm +173 -0
  19. package/ios/Stepper/TinyuiStepperShadowNode.h +32 -0
  20. package/ios/Stepper/TinyuiStepperShadowNode.mm +28 -0
  21. package/ios/Stepper/TinyuiStepperView.h +12 -0
  22. package/ios/Stepper/TinyuiStepperView.mm +128 -0
  23. package/ios/TipKit/TinyuiTip.swift +31 -0
  24. package/ios/TipKit/TinyuiTipPopoverProvider.swift +276 -0
  25. package/ios/TipKit/TinyuiTipPopoverView.h +8 -0
  26. package/ios/TipKit/TinyuiTipPopoverView.mm +114 -0
  27. package/ios/TipKit/TinyuiTipsRuntime.swift +148 -0
  28. package/lib/module/ConcentricView/ConcentricViewNativeComponent.ts +14 -0
  29. package/lib/module/ConcentricView/index.js +29 -0
  30. package/lib/module/ConcentricView/index.js.map +1 -0
  31. package/lib/module/ConcentricView/types.js +4 -0
  32. package/lib/module/ConcentricView/types.js.map +1 -0
  33. package/lib/module/Menu/MenuNativeComponent.ts +12 -3
  34. package/lib/module/Menu/index.js +17 -12
  35. package/lib/module/Menu/index.js.map +1 -1
  36. package/lib/module/Menu/options.js +4 -12
  37. package/lib/module/Menu/options.js.map +1 -1
  38. package/lib/module/NativeTinyui.js.map +1 -1
  39. package/lib/module/Popover/index.js +4 -2
  40. package/lib/module/Popover/index.js.map +1 -1
  41. package/lib/module/SFSymbol/SFSymbolNativeComponent.ts +20 -0
  42. package/lib/module/SFSymbol/index.js +73 -0
  43. package/lib/module/SFSymbol/index.js.map +1 -0
  44. package/lib/module/SFSymbol/options.js +79 -0
  45. package/lib/module/SFSymbol/options.js.map +1 -0
  46. package/lib/module/SFSymbol/types.js +4 -0
  47. package/lib/module/SFSymbol/types.js.map +1 -0
  48. package/lib/module/Stepper/StepperNativeComponent.ts +29 -0
  49. package/lib/module/Stepper/index.js +75 -0
  50. package/lib/module/Stepper/index.js.map +1 -0
  51. package/lib/module/Stepper/types.js +4 -0
  52. package/lib/module/Stepper/types.js.map +1 -0
  53. package/lib/module/TipKit/Popover.js +89 -0
  54. package/lib/module/TipKit/Popover.js.map +1 -0
  55. package/lib/module/TipKit/TipPopoverNativeComponent.ts +37 -0
  56. package/lib/module/TipKit/index.js +28 -0
  57. package/lib/module/TipKit/index.js.map +1 -0
  58. package/lib/module/TipKit/types.js +4 -0
  59. package/lib/module/TipKit/types.js.map +1 -0
  60. package/lib/module/TipKit/validation.js +24 -0
  61. package/lib/module/TipKit/validation.js.map +1 -0
  62. package/lib/module/index.js +4 -0
  63. package/lib/module/index.js.map +1 -1
  64. package/lib/module/utils/getNativeTinyui.js.map +1 -1
  65. package/lib/typescript/src/ConcentricView/ConcentricViewNativeComponent.d.ts +7 -0
  66. package/lib/typescript/src/ConcentricView/ConcentricViewNativeComponent.d.ts.map +1 -0
  67. package/lib/typescript/src/ConcentricView/index.d.ts +4 -0
  68. package/lib/typescript/src/ConcentricView/index.d.ts.map +1 -0
  69. package/lib/typescript/src/ConcentricView/types.d.ts +6 -0
  70. package/lib/typescript/src/ConcentricView/types.d.ts.map +1 -0
  71. package/lib/typescript/src/Menu/MenuNativeComponent.d.ts +8 -4
  72. package/lib/typescript/src/Menu/MenuNativeComponent.d.ts.map +1 -1
  73. package/lib/typescript/src/Menu/index.d.ts +1 -1
  74. package/lib/typescript/src/Menu/index.d.ts.map +1 -1
  75. package/lib/typescript/src/Menu/options.d.ts +1 -5
  76. package/lib/typescript/src/Menu/options.d.ts.map +1 -1
  77. package/lib/typescript/src/Menu/types.d.ts +26 -7
  78. package/lib/typescript/src/Menu/types.d.ts.map +1 -1
  79. package/lib/typescript/src/NativeTinyui.d.ts +2 -0
  80. package/lib/typescript/src/NativeTinyui.d.ts.map +1 -1
  81. package/lib/typescript/src/Popover/index.d.ts.map +1 -1
  82. package/lib/typescript/src/Popover/types.d.ts +2 -0
  83. package/lib/typescript/src/Popover/types.d.ts.map +1 -1
  84. package/lib/typescript/src/SFSymbol/SFSymbolNativeComponent.d.ts +11 -0
  85. package/lib/typescript/src/SFSymbol/SFSymbolNativeComponent.d.ts.map +1 -0
  86. package/lib/typescript/src/SFSymbol/index.d.ts +4 -0
  87. package/lib/typescript/src/SFSymbol/index.d.ts.map +1 -0
  88. package/lib/typescript/src/SFSymbol/options.d.ts +86 -0
  89. package/lib/typescript/src/SFSymbol/options.d.ts.map +1 -0
  90. package/lib/typescript/src/SFSymbol/types.d.ts +113 -0
  91. package/lib/typescript/src/SFSymbol/types.d.ts.map +1 -0
  92. package/lib/typescript/src/Stepper/StepperNativeComponent.d.ts +21 -0
  93. package/lib/typescript/src/Stepper/StepperNativeComponent.d.ts.map +1 -0
  94. package/lib/typescript/src/Stepper/index.d.ts +4 -0
  95. package/lib/typescript/src/Stepper/index.d.ts.map +1 -0
  96. package/lib/typescript/src/Stepper/types.d.ts +24 -0
  97. package/lib/typescript/src/Stepper/types.d.ts.map +1 -0
  98. package/lib/typescript/src/TipKit/Popover.d.ts +3 -0
  99. package/lib/typescript/src/TipKit/Popover.d.ts.map +1 -0
  100. package/lib/typescript/src/TipKit/TipPopoverNativeComponent.d.ts +38 -0
  101. package/lib/typescript/src/TipKit/TipPopoverNativeComponent.d.ts.map +1 -0
  102. package/lib/typescript/src/TipKit/index.d.ts +10 -0
  103. package/lib/typescript/src/TipKit/index.d.ts.map +1 -0
  104. package/lib/typescript/src/TipKit/types.d.ts +46 -0
  105. package/lib/typescript/src/TipKit/types.d.ts.map +1 -0
  106. package/lib/typescript/src/TipKit/validation.d.ts +4 -0
  107. package/lib/typescript/src/TipKit/validation.d.ts.map +1 -0
  108. package/lib/typescript/src/index.d.ts +9 -1
  109. package/lib/typescript/src/index.d.ts.map +1 -1
  110. package/lib/typescript/src/utils/getNativeTinyui.d.ts +1 -1
  111. package/lib/typescript/src/utils/getNativeTinyui.d.ts.map +1 -1
  112. package/package.json +37 -2
  113. package/{Tinyui.podspec → react-native-tinyui.podspec} +23 -2
  114. package/src/ConcentricView/ConcentricViewNativeComponent.ts +14 -0
  115. package/src/ConcentricView/index.tsx +34 -0
  116. package/src/ConcentricView/types.ts +6 -0
  117. package/src/Menu/MenuNativeComponent.ts +12 -3
  118. package/src/Menu/index.tsx +35 -12
  119. package/src/Menu/options.ts +2 -20
  120. package/src/Menu/types.ts +28 -7
  121. package/src/NativeTinyui.ts +2 -0
  122. package/src/Popover/index.tsx +8 -3
  123. package/src/Popover/types.ts +2 -0
  124. package/src/SFSymbol/SFSymbolNativeComponent.ts +20 -0
  125. package/src/SFSymbol/index.tsx +89 -0
  126. package/src/SFSymbol/options.ts +116 -0
  127. package/src/SFSymbol/types.ts +158 -0
  128. package/src/Stepper/StepperNativeComponent.ts +29 -0
  129. package/src/Stepper/index.tsx +91 -0
  130. package/src/Stepper/types.ts +24 -0
  131. package/src/TipKit/Popover.tsx +87 -0
  132. package/src/TipKit/TipPopoverNativeComponent.ts +37 -0
  133. package/src/TipKit/index.ts +47 -0
  134. package/src/TipKit/types.ts +57 -0
  135. package/src/TipKit/validation.ts +39 -0
  136. package/src/index.tsx +31 -0
  137. package/src/utils/getNativeTinyui.ts +8 -1
  138. package/ios/Core/TinyuiHostingHelpers.swift +0 -74
  139. package/ios/Menu/TinyuiMenuViewSwift.swift +0 -326
  140. package/ios/Popover/TinyuiPopoverViewSwift.swift +0 -88
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+
3
+ import { assertComponentEnabled, getNativeTinyui } from "../utils/index.js";
4
+ import { validateTipId } from "./validation.js";
5
+ import { Popover } from "./Popover.js";
6
+ export const TipKit = {
7
+ Popover,
8
+ /** Configure TipKit once before mounting tips. Repeating the same options is safe. */
9
+ async configure({
10
+ displayFrequency = 'daily'
11
+ } = {}) {
12
+ assertComponentEnabled('TipKit');
13
+ if (!['immediate', 'hourly', 'daily', 'weekly', 'monthly'].includes(displayFrequency)) {
14
+ throw new Error('[TinyUI] TipKit.configure received an invalid displayFrequency.');
15
+ }
16
+ await getNativeTinyui().configureTips(displayFrequency);
17
+ },
18
+ /** Persistently invalidate a tip, including when its view is not mounted. */
19
+ async invalidate(tipId, reason = 'actionPerformed') {
20
+ assertComponentEnabled('TipKit');
21
+ validateTipId(tipId);
22
+ if (reason !== 'actionPerformed' && reason !== 'tipClosed') {
23
+ throw new Error('[TinyUI] TipKit.invalidate received an invalid reason.');
24
+ }
25
+ await getNativeTinyui().invalidateTip(tipId, reason);
26
+ }
27
+ };
28
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["assertComponentEnabled","getNativeTinyui","validateTipId","Popover","TipKit","configure","displayFrequency","includes","Error","configureTips","invalidate","tipId","reason","invalidateTip"],"sourceRoot":"../../../src","sources":["TipKit/index.ts"],"mappings":";;AAAA,SAASA,sBAAsB,EAAEC,eAAe,QAAQ,mBAAU;AAElE,SAASC,aAAa,QAAQ,iBAAc;AAC5C,SAASC,OAAO,QAAQ,cAAW;AAEnC,OAAO,MAAMC,MAAM,GAAG;EACpBD,OAAO;EACP;EACA,MAAME,SAASA,CAAC;IACdC,gBAAgB,GAAG;EACA,CAAC,GAAG,CAAC,CAAC,EAAiB;IAC1CN,sBAAsB,CAAC,QAAQ,CAAC;IAChC,IACE,CAAC,CAAC,WAAW,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,CAAC,CAACO,QAAQ,CAC7DD,gBACF,CAAC,EACD;MACA,MAAM,IAAIE,KAAK,CACb,iEACF,CAAC;IACH;IACA,MAAMP,eAAe,CAAC,CAAC,CAACQ,aAAa,CAACH,gBAAgB,CAAC;EACzD,CAAC;EAED;EACA,MAAMI,UAAUA,CACdC,KAAa,EACbC,MAA6B,GAAG,iBAAiB,EAClC;IACfZ,sBAAsB,CAAC,QAAQ,CAAC;IAChCE,aAAa,CAACS,KAAK,CAAC;IACpB,IAAIC,MAAM,KAAK,iBAAiB,IAAIA,MAAM,KAAK,WAAW,EAAE;MAC1D,MAAM,IAAIJ,KAAK,CAAC,wDAAwD,CAAC;IAC3E;IACA,MAAMP,eAAe,CAAC,CAAC,CAACY,aAAa,CAACF,KAAK,EAAEC,MAAM,CAAC;EACtD;AACF,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":["TipKit/types.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+
3
+ export function validateTipId(tipId) {
4
+ if (typeof tipId !== 'string' || tipId.trim().length === 0) {
5
+ throw new Error('[TinyUI] TipKit tipId must be a nonempty string.');
6
+ }
7
+ }
8
+ export function validateTip(props) {
9
+ validateTipId(props.tipId);
10
+ if (typeof props.title !== 'string' || props.title.trim().length === 0) {
11
+ throw new Error('[TinyUI] TipKit.Popover title must be a nonempty string.');
12
+ }
13
+ if (props.maxDisplayCount !== undefined && (!Number.isInteger(props.maxDisplayCount) || props.maxDisplayCount < 1 || props.maxDisplayCount > 2147483647)) {
14
+ throw new Error('[TinyUI] TipKit.Popover maxDisplayCount must be a positive 32-bit integer.');
15
+ }
16
+ const ids = new Set();
17
+ for (const action of props.actions ?? []) {
18
+ if (typeof action.id !== 'string' || action.id.trim().length === 0 || typeof action.title !== 'string' || action.title.trim().length === 0 || ids.has(action.id)) {
19
+ throw new Error('[TinyUI] TipKit.Popover actions need unique nonempty ids and nonempty titles.');
20
+ }
21
+ ids.add(action.id);
22
+ }
23
+ }
24
+ //# sourceMappingURL=validation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["validateTipId","tipId","trim","length","Error","validateTip","props","title","maxDisplayCount","undefined","Number","isInteger","ids","Set","action","actions","id","has","add"],"sourceRoot":"../../../src","sources":["TipKit/validation.ts"],"mappings":";;AAEA,OAAO,SAASA,aAAaA,CAACC,KAAa,EAAQ;EACjD,IAAI,OAAOA,KAAK,KAAK,QAAQ,IAAIA,KAAK,CAACC,IAAI,CAAC,CAAC,CAACC,MAAM,KAAK,CAAC,EAAE;IAC1D,MAAM,IAAIC,KAAK,CAAC,kDAAkD,CAAC;EACrE;AACF;AAEA,OAAO,SAASC,WAAWA,CAACC,KAAsB,EAAQ;EACxDN,aAAa,CAACM,KAAK,CAACL,KAAK,CAAC;EAC1B,IAAI,OAAOK,KAAK,CAACC,KAAK,KAAK,QAAQ,IAAID,KAAK,CAACC,KAAK,CAACL,IAAI,CAAC,CAAC,CAACC,MAAM,KAAK,CAAC,EAAE;IACtE,MAAM,IAAIC,KAAK,CAAC,0DAA0D,CAAC;EAC7E;EACA,IACEE,KAAK,CAACE,eAAe,KAAKC,SAAS,KAClC,CAACC,MAAM,CAACC,SAAS,CAACL,KAAK,CAACE,eAAe,CAAC,IACvCF,KAAK,CAACE,eAAe,GAAG,CAAC,IACzBF,KAAK,CAACE,eAAe,GAAG,UAAU,CAAC,EACrC;IACA,MAAM,IAAIJ,KAAK,CACb,4EACF,CAAC;EACH;EACA,MAAMQ,GAAG,GAAG,IAAIC,GAAG,CAAS,CAAC;EAC7B,KAAK,MAAMC,MAAM,IAAIR,KAAK,CAACS,OAAO,IAAI,EAAE,EAAE;IACxC,IACE,OAAOD,MAAM,CAACE,EAAE,KAAK,QAAQ,IAC7BF,MAAM,CAACE,EAAE,CAACd,IAAI,CAAC,CAAC,CAACC,MAAM,KAAK,CAAC,IAC7B,OAAOW,MAAM,CAACP,KAAK,KAAK,QAAQ,IAChCO,MAAM,CAACP,KAAK,CAACL,IAAI,CAAC,CAAC,CAACC,MAAM,KAAK,CAAC,IAChCS,GAAG,CAACK,GAAG,CAACH,MAAM,CAACE,EAAE,CAAC,EAClB;MACA,MAAM,IAAIZ,KAAK,CACb,+EACF,CAAC;IACH;IACAQ,GAAG,CAACM,GAAG,CAACJ,MAAM,CAACE,EAAE,CAAC;EACpB;AACF","ignoreList":[]}
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
 
3
3
  export { Menu } from "./Menu/index.js";
4
+ export { TipKit } from "./TipKit/index.js";
5
+ export { Stepper } from "./Stepper/index.js";
6
+ export { ConcentricView } from "./ConcentricView/index.js";
7
+ export { SFSymbol } from "./SFSymbol/index.js";
4
8
  export { Popover, PopoverClose } from "./Popover/index.js";
5
9
  export { getNativeTinyui, assertComponentEnabled } from "./utils/index.js";
6
10
  export { LiquidGlassText } from "./LiquidGlassText/index.js";
@@ -1 +1 @@
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
+ {"version":3,"names":["Menu","TipKit","Stepper","ConcentricView","SFSymbol","Popover","PopoverClose","getNativeTinyui","assertComponentEnabled","LiquidGlassText"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA,SAASA,IAAI,QAAQ,iBAAQ;AAC7B,SAASC,MAAM,QAAQ,mBAAU;AAuBjC,SAASC,OAAO,QAAQ,oBAAW;AAGnC,SAASC,cAAc,QAAQ,2BAAkB;AAGjD,SAASC,QAAQ,QAAQ,qBAAY;AAYrC,SAASC,OAAO,EAAEC,YAAY,QAAQ,oBAAW;AAUjD,SAASC,eAAe,EAAEC,sBAAsB,QAAQ,kBAAS;AAGjE,SAASC,eAAe,QAAQ,4BAAmB","ignoreList":[]}
@@ -1 +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":[]}
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;AAWzD,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,7 @@
1
+ import { type CodegenTypes, type ViewProps } from 'react-native';
2
+ export interface NativeConcentricViewProps extends ViewProps {
3
+ minimumRadius?: CodegenTypes.WithDefault<CodegenTypes.Double, 0>;
4
+ }
5
+ declare const _default: import("react-native/types_generated/Libraries/Utilities/codegenNativeComponent").NativeComponentType<NativeConcentricViewProps>;
6
+ export default _default;
7
+ //# sourceMappingURL=ConcentricViewNativeComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConcentricViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/ConcentricView/ConcentricViewNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAEtB,MAAM,WAAW,yBAA0B,SAAQ,SAAS;IAC1D,aAAa,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,YAAY,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;CAClE;;AAED,wBAGE"}
@@ -0,0 +1,4 @@
1
+ import type { ConcentricViewProps } from './types.js';
2
+ export declare const ConcentricView: import("react").ForwardRefExoticComponent<ConcentricViewProps & import("react").RefAttributes<import("react-native/types_generated/src/private/webapis/dom/nodes/ReactNativeElement").default>>;
3
+ export type { ConcentricViewProps } from './types.js';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ConcentricView/index.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAS,CAAC;AAEnD,eAAO,MAAM,cAAc,iMAoBzB,CAAC;AAMH,YAAY,EAAE,mBAAmB,EAAE,MAAM,YAAS,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { ViewProps } from 'react-native';
2
+ export interface ConcentricViewProps extends ViewProps {
3
+ /** Fixed fallback radius on iOS < 26. Defaults to 0. Ignored on iOS 26+. */
4
+ minimumRadius?: number;
5
+ }
6
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/ConcentricView/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,MAAM,WAAW,mBAAoB,SAAQ,SAAS;IACpD,4EAA4E;IAC5E,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB"}
@@ -1,15 +1,19 @@
1
- import { type CodegenTypes, type ViewProps } from 'react-native';
1
+ import type * as React from 'react';
2
+ import { type CodegenTypes, type HostComponent, type ViewProps } from 'react-native';
2
3
  import type { DirectEventHandler } from 'react-native/Libraries/Types/CodegenTypes';
3
4
  export interface NativeMenuProps extends ViewProps {
4
5
  menuConfig: CodegenTypes.UnsafeMixed;
5
6
  title?: string;
6
7
  disabled?: boolean;
7
- hasPrimaryAction?: boolean;
8
- onItemPress?: DirectEventHandler<Readonly<{
8
+ onActionPress?: DirectEventHandler<Readonly<{
9
9
  id: string;
10
+ title: string;
10
11
  }>>;
11
- onPrimaryAction?: DirectEventHandler<null>;
12
12
  }
13
+ interface NativeCommands {
14
+ open: (viewRef: React.ComponentRef<HostComponent<NativeMenuProps>>) => void;
15
+ }
16
+ export declare const Commands: NativeCommands;
13
17
  declare const _default: import("react-native/types_generated/Libraries/Utilities/codegenNativeComponent").NativeComponentType<NativeMenuProps>;
14
18
  export default _default;
15
19
  //# sourceMappingURL=MenuNativeComponent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MenuNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/Menu/MenuNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AAEpF,MAAM,WAAW,eAAgB,SAAQ,SAAS;IAChD,UAAU,EAAE,YAAY,CAAC,WAAW,CAAC;IACrC,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
+ {"version":3,"file":"MenuNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/Menu/MenuNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,EAGL,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AAEpF,MAAM,WAAW,eAAgB,SAAQ,SAAS;IAChD,UAAU,EAAE,YAAY,CAAC,WAAW,CAAC;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,kBAAkB,CAAC,QAAQ,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC,CAAC;CAC7E;AAED,UAAU,cAAc;IACtB,IAAI,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC,YAAY,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC,KAAK,IAAI,CAAC;CAC7E;AAED,eAAO,MAAM,QAAQ,gBAEnB,CAAC;;AAEH,wBAEG"}
@@ -1,4 +1,4 @@
1
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 './types.js';
3
+ export type { MenuActionOption, MenuActionPressEvent, MenuActionPressEventData, MenuDividerOption, MenuItemState, MenuOption, MenuProps, MenuRef, MenuSectionOption, MenuSubmenuOption, } from './types.js';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +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
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Menu/index.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,aAAa,EAAsB,MAAM,YAAS,CAAC;AAsDjE,eAAO,MAAM,IAAI,EAAe,aAAa,CAAC;AAE9C,YAAY,EACV,gBAAgB,EAChB,oBAAoB,EACpB,wBAAwB,EACxB,iBAAiB,EACjB,aAAa,EACb,UAAU,EACV,SAAS,EACT,OAAO,EACP,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,YAAS,CAAC"}
@@ -38,10 +38,6 @@ type NativeMenuElement = NativeMenuAction | NativeMenuSubmenu | NativeMenuSectio
38
38
  interface NativeMenuConfiguration {
39
39
  items: NativeMenuElement[];
40
40
  }
41
- export interface SerializedMenuOptions {
42
- config: NativeMenuConfiguration;
43
- callbacks: Map<string, () => void>;
44
- }
45
- export declare function serializeMenuOptions(options: readonly MenuOption[]): SerializedMenuOptions;
41
+ export declare function serializeMenuOptions(options: readonly MenuOption[]): NativeMenuConfiguration;
46
42
  export {};
47
43
  //# sourceMappingURL=options.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../src/Menu/options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAmB,MAAM,cAAc,CAAC;AAE7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAS,CAAC;AAE1C,KAAK,eAAe,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AAEvD,UAAU,eAAe;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAA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MD,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,SAAS,UAAU,EAAE,GAC7B,uBAAuB,CAEzB"}
@@ -1,5 +1,5 @@
1
- import type { ComponentRef, ForwardRefExoticComponent, ReactNode, RefAttributes } from 'react';
2
- import type { ColorValue, View, ViewProps } from 'react-native';
1
+ import type { ForwardRefExoticComponent, ReactNode, RefAttributes } from 'react';
2
+ import type { ColorValue, HostInstance, ViewProps } from 'react-native';
3
3
  export type MenuItemState = 'off' | 'on' | 'mixed';
4
4
  interface MenuOptionLabel {
5
5
  title: string;
@@ -10,7 +10,11 @@ interface MenuOptionLabel {
10
10
  icon?: string;
11
11
  /** Tint applied to `icon` or `systemImage`. */
12
12
  iconColor?: ColorValue;
13
- /** Foreground color applied to the option title. */
13
+ /**
14
+ * Retained for source compatibility. UIKit menu elements don't expose a
15
+ * public custom title-color API; use `destructive` for system red styling.
16
+ * @deprecated UIKit ignores custom menu title colors.
17
+ */
14
18
  titleColor?: ColorValue;
15
19
  }
16
20
  export interface MenuActionOption extends MenuOptionLabel {
@@ -24,7 +28,6 @@ export interface MenuActionOption extends MenuOptionLabel {
24
28
  hidden?: boolean;
25
29
  /** Keep the menu visible after selection on iOS 16 and newer. */
26
30
  keepOpen?: boolean;
27
- onSelect?: () => void;
28
31
  }
29
32
  export interface MenuSubmenuOption extends MenuOptionLabel {
30
33
  type: 'submenu';
@@ -47,6 +50,22 @@ export interface MenuDividerOption {
47
50
  type: 'divider';
48
51
  }
49
52
  export type MenuOption = MenuActionOption | MenuSubmenuOption | MenuSectionOption | MenuDividerOption;
53
+ export interface MenuActionPressEventData {
54
+ /** The selected action's explicit id, or its generated menu-path id. */
55
+ id: string;
56
+ /** The selected action's displayed title. */
57
+ title: string;
58
+ }
59
+ export type MenuActionPressEvent = Readonly<{
60
+ nativeEvent: Readonly<MenuActionPressEventData>;
61
+ }>;
62
+ export type MenuRef = HostInstance & {
63
+ /**
64
+ * Opens the menu at its mounted trigger on iOS 17.4 and newer.
65
+ * Does nothing on older iOS versions or while disabled or detached.
66
+ */
67
+ open(): void;
68
+ };
50
69
  export interface MenuProps extends Omit<ViewProps, 'children'> {
51
70
  /** The trigger element. */
52
71
  children: ReactNode;
@@ -56,10 +75,10 @@ export interface MenuProps extends Omit<ViewProps, 'children'> {
56
75
  options: readonly MenuOption[];
57
76
  /** Prevents the trigger from opening the menu. */
58
77
  disabled?: boolean;
59
- /** Called on a normal tap. When set, a long press opens the menu. */
60
- onPrimaryAction?: () => void;
78
+ /** Called whenever an enabled action is selected. */
79
+ onActionPress?: (event: MenuActionPressEvent) => void;
61
80
  }
62
- export interface MenuComponent extends ForwardRefExoticComponent<MenuProps & RefAttributes<ComponentRef<typeof View>>> {
81
+ export interface MenuComponent extends ForwardRefExoticComponent<MenuProps & RefAttributes<MenuRef>> {
63
82
  }
64
83
  export {};
65
84
  //# sourceMappingURL=types.d.ts.map
@@ -1 +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,MAAM,CAAC;IACrB,+FAA+F;IAC/F,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,+CAA+C;IAC/C,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,oDAAoD;IACpD,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB;AAED,MAAM,WAAW,gBAAiB,SAAQ,eAAe;IACvD,mEAAmE;IACnE,IAAI,CAAC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OAAO,CAAC,CACnC;CAAG"}
@@ -5,6 +5,8 @@ export interface Spec extends TurboModule {
5
5
  * based on the `react-native-tinyui.components` array in package.json.
6
6
  */
7
7
  getEnabledComponents(): ReadonlyArray<string>;
8
+ configureTips(displayFrequency: string): Promise<void>;
9
+ invalidateTip(tipId: string, reason: string): Promise<void>;
8
10
  }
9
11
  declare const _default: Spec | null | undefined;
10
12
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"NativeTinyui.d.ts","sourceRoot":"","sources":["../../../src/NativeTinyui.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhD,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC;;;OAGG;IACH,oBAAoB,IAAI,aAAa,CAAC,MAAM,CAAC,CAAC;CAC/C;;AAED,wBAAuD"}
1
+ {"version":3,"file":"NativeTinyui.d.ts","sourceRoot":"","sources":["../../../src/NativeTinyui.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhD,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC;;;OAGG;IACH,oBAAoB,IAAI,aAAa,CAAC,MAAM,CAAC,CAAC;IAC9C,aAAa,CAAC,gBAAgB,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACvD,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC7D;;AAED,wBAAuD"}
@@ -1 +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"}
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;AA+EjB,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"}
@@ -15,6 +15,8 @@ export interface PopoverProps extends Omit<ViewProps, 'children'> {
15
15
  /**
16
16
  * Content shown inside the popover. Pass a node, or a render function that
17
17
  * receives `{ close }` to dismiss the popover from within the content.
18
+ * The content's layout determines the popover size, including live updates.
19
+ * Leave its background transparent to reveal the system popover material.
18
20
  */
19
21
  content: PopoverContent;
20
22
  /** Controlled presentation state. */
@@ -1 +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,C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,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;;;;;OAKG;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"}
@@ -0,0 +1,11 @@
1
+ import { type CodegenTypes, type ViewProps } from 'react-native';
2
+ export interface NativeSFSymbolProps extends ViewProps {
3
+ configuration: CodegenTypes.UnsafeMixed;
4
+ effects: CodegenTypes.UnsafeMixed;
5
+ contentTransition: CodegenTypes.UnsafeMixed;
6
+ resizeMode?: CodegenTypes.WithDefault<string, 'center'>;
7
+ respectReduceMotion?: CodegenTypes.WithDefault<boolean, true>;
8
+ }
9
+ declare const _default: import("react-native/types_generated/Libraries/Utilities/codegenNativeComponent").NativeComponentType<NativeSFSymbolProps>;
10
+ export default _default;
11
+ //# sourceMappingURL=SFSymbolNativeComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SFSymbolNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/SFSymbol/SFSymbolNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAEtB,MAAM,WAAW,mBAAoB,SAAQ,SAAS;IACpD,aAAa,EAAE,YAAY,CAAC,WAAW,CAAC;IACxC,OAAO,EAAE,YAAY,CAAC,WAAW,CAAC;IAClC,iBAAiB,EAAE,YAAY,CAAC,WAAW,CAAC;IAC5C,UAAU,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IACxD,mBAAmB,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;CAC/D;;AAED,wBAKE"}
@@ -0,0 +1,4 @@
1
+ import type { SFSymbolProps } from './types.js';
2
+ export declare const SFSymbol: import("react").ForwardRefExoticComponent<SFSymbolProps & import("react").RefAttributes<import("react-native/types_generated/src/private/webapis/dom/nodes/ReactNativeElement").default>>;
3
+ export type { SFSymbolContentTransition, SFSymbolEffect, SFSymbolEffectOptions, SFSymbolProps, SFSymbolRenderingMode, SFSymbolScale, SFSymbolTextStyle, SFSymbolWeight, } from './types.js';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/SFSymbol/index.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAS,CAAC;AAE7C,eAAO,MAAM,QAAQ,2LAmEpB,CAAC;AAIF,YAAY,EACV,yBAAyB,EACzB,cAAc,EACd,qBAAqB,EACrB,aAAa,EACb,qBAAqB,EACrB,aAAa,EACb,iBAAiB,EACjB,cAAc,GACf,MAAM,YAAS,CAAC"}
@@ -0,0 +1,86 @@
1
+ import type { SFSymbolProps } from './types.js';
2
+ export declare function serializeSFSymbol(props: SFSymbolProps, fontScale: number): {
3
+ configuration: {
4
+ name: string;
5
+ source: "system" | "asset";
6
+ size: number;
7
+ weight: import("./types.js").SFSymbolWeight;
8
+ scale: import("./types.js").SFSymbolScale;
9
+ textStyle: import("./types.js").SFSymbolTextStyle | undefined;
10
+ fontFamily: string | undefined;
11
+ fontScale: number;
12
+ renderingMode: import("./types.js").SFSymbolRenderingMode;
13
+ color: import("react-native").ProcessedColorValue | null | undefined;
14
+ paletteColors: (import("react-native").ProcessedColorValue | null | undefined)[] | undefined;
15
+ variableValue: number | undefined;
16
+ variableValueMode: "color" | "automatic" | "draw";
17
+ colorRenderingMode: "flat" | "automatic" | "gradient";
18
+ };
19
+ effects: ({
20
+ active: boolean;
21
+ animated: boolean;
22
+ trigger?: string | number;
23
+ options?: import("./types.js").SFSymbolEffectOptions;
24
+ type: "pulse";
25
+ scope?: "byLayer" | "wholeSymbol";
26
+ } | {
27
+ active: boolean;
28
+ animated: boolean;
29
+ trigger?: string | number;
30
+ options?: import("./types.js").SFSymbolEffectOptions;
31
+ type: "bounce" | "scale" | "appear" | "disappear";
32
+ direction?: "up" | "down";
33
+ scope?: "byLayer" | "wholeSymbol";
34
+ } | {
35
+ active: boolean;
36
+ animated: boolean;
37
+ trigger?: string | number;
38
+ options?: import("./types.js").SFSymbolEffectOptions;
39
+ type: "variableColor";
40
+ iteration?: "iterative" | "cumulative";
41
+ reversing?: boolean;
42
+ inactiveLayers?: "hide" | "dim";
43
+ } | {
44
+ active: boolean;
45
+ animated: boolean;
46
+ trigger?: string | number;
47
+ options?: import("./types.js").SFSymbolEffectOptions;
48
+ type: "wiggle";
49
+ direction?: ("up" | "down") | "left" | "right" | "forward" | "backward" | "clockwise" | "counterClockwise";
50
+ angle?: number;
51
+ scope?: "byLayer" | "wholeSymbol";
52
+ } | {
53
+ active: boolean;
54
+ animated: boolean;
55
+ trigger?: string | number;
56
+ options?: import("./types.js").SFSymbolEffectOptions;
57
+ type: "rotate";
58
+ direction?: "clockwise" | "counterClockwise";
59
+ scope?: "byLayer" | "wholeSymbol";
60
+ } | {
61
+ active: boolean;
62
+ animated: boolean;
63
+ trigger?: string | number;
64
+ options?: import("./types.js").SFSymbolEffectOptions;
65
+ type: "breathe";
66
+ style?: "plain" | "pulse";
67
+ scope?: "byLayer" | "wholeSymbol";
68
+ } | {
69
+ active: boolean;
70
+ animated: boolean;
71
+ trigger?: string | number;
72
+ options?: import("./types.js").SFSymbolEffectOptions;
73
+ type: "drawOn";
74
+ scope?: ("byLayer" | "wholeSymbol") | "individually";
75
+ } | {
76
+ active: boolean;
77
+ animated: boolean;
78
+ trigger?: string | number;
79
+ options?: import("./types.js").SFSymbolEffectOptions;
80
+ type: "drawOff";
81
+ scope?: ("byLayer" | "wholeSymbol") | "individually";
82
+ reversed?: boolean;
83
+ })[];
84
+ contentTransition: {};
85
+ };
86
+ //# sourceMappingURL=options.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../src/SFSymbol/options.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAkB,aAAa,EAAE,MAAM,YAAS,CAAC;AAiB7D,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgGxE"}
@@ -0,0 +1,113 @@
1
+ import type { ColorValue, ViewProps } from 'react-native';
2
+ export type SFSymbolWeight = 'unspecified' | 'ultraLight' | 'thin' | 'light' | 'regular' | 'medium' | 'semibold' | 'bold' | 'heavy' | 'black';
3
+ export type SFSymbolScale = 'default' | 'unspecified' | 'small' | 'medium' | 'large';
4
+ export type SFSymbolRenderingMode = 'automatic' | 'monochrome' | 'hierarchical' | 'palette' | 'multicolor';
5
+ export type SFSymbolTextStyle = 'extraLargeTitle' | 'extraLargeTitle2' | 'largeTitle' | 'title1' | 'title2' | 'title3' | 'headline' | 'subheadline' | 'body' | 'callout' | 'footnote' | 'caption1' | 'caption2';
6
+ export interface SFSymbolEffectOptions {
7
+ /** Positive speed multiplier. Defaults to the system speed (1). */
8
+ speed?: number;
9
+ /** Play count, forever, or false for one play. Omit for the system default. */
10
+ repeat?: number | 'forever' | false;
11
+ /** iOS 18+. Continuous repeats forever; periodic supports count and delay. */
12
+ repeatBehavior?: 'periodic' | 'continuous';
13
+ /** Seconds between periodic repetitions (iOS 18+). */
14
+ repeatDelay?: number;
15
+ }
16
+ interface EffectPlayback {
17
+ /** Whether this effect is applied. Defaults to true. */
18
+ active?: boolean;
19
+ /** Change this value to replay the same effect. Stable values do not replay. */
20
+ trigger?: string | number;
21
+ /** Animate applying/removing the effect. Defaults to true. */
22
+ animated?: boolean;
23
+ options?: SFSymbolEffectOptions;
24
+ }
25
+ type LayerBehavior = 'byLayer' | 'wholeSymbol';
26
+ type VerticalDirection = 'up' | 'down';
27
+ /** Only modifiers supported by each Apple preset are accepted. */
28
+ export type SFSymbolEffect = EffectPlayback & ({
29
+ type: 'pulse';
30
+ scope?: LayerBehavior;
31
+ } | {
32
+ type: 'bounce' | 'scale' | 'appear' | 'disappear';
33
+ direction?: VerticalDirection;
34
+ scope?: LayerBehavior;
35
+ } | {
36
+ type: 'variableColor';
37
+ iteration?: 'iterative' | 'cumulative';
38
+ reversing?: boolean;
39
+ inactiveLayers?: 'hide' | 'dim';
40
+ } | {
41
+ /** iOS 18+. */
42
+ type: 'wiggle';
43
+ direction?: VerticalDirection | 'left' | 'right' | 'forward' | 'backward' | 'clockwise' | 'counterClockwise';
44
+ /** Custom angle in degrees, clockwise from +x; overrides direction. */
45
+ angle?: number;
46
+ scope?: LayerBehavior;
47
+ } | {
48
+ /** iOS 18+. */
49
+ type: 'rotate';
50
+ direction?: 'clockwise' | 'counterClockwise';
51
+ scope?: LayerBehavior;
52
+ } | {
53
+ /** iOS 18+. */
54
+ type: 'breathe';
55
+ style?: 'plain' | 'pulse';
56
+ scope?: LayerBehavior;
57
+ } | {
58
+ /** iOS 26+. */
59
+ type: 'drawOn';
60
+ scope?: LayerBehavior | 'individually';
61
+ } | {
62
+ /** iOS 26+. */
63
+ type: 'drawOff';
64
+ scope?: LayerBehavior | 'individually';
65
+ reversed?: boolean;
66
+ });
67
+ export interface SFSymbolContentTransition {
68
+ /** Magic Replace requires iOS 18; earlier versions use the configured replace. */
69
+ type: 'automatic' | 'replace' | 'magicReplace';
70
+ /** Replace style, also used as the Magic Replace fallback. */
71
+ direction?: 'downUp' | 'upUp' | 'offUp';
72
+ scope?: LayerBehavior;
73
+ /** Positive transition speed multiplier. Defaults to 1. */
74
+ speed?: number;
75
+ }
76
+ export interface SFSymbolProps extends Omit<ViewProps, 'children'> {
77
+ /** Full SF Symbol name, including variants such as .circle.fill. */
78
+ name: string;
79
+ /** Load a system symbol (default) or a custom symbol in the app asset catalog. */
80
+ source?: 'system' | 'asset';
81
+ /** Point size before font scaling. Defaults to 17. textStyle takes precedence. */
82
+ size?: number;
83
+ weight?: SFSymbolWeight;
84
+ scale?: SFSymbolScale;
85
+ textStyle?: SFSymbolTextStyle;
86
+ /** Font/PostScript name used to derive the symbol's font metrics. */
87
+ fontFamily?: string;
88
+ /** Apply React Native's fontScale to the point size. Defaults to true. */
89
+ allowFontScaling?: boolean;
90
+ /** Maximum font scale, >= 1. Zero/undefined means no limit. */
91
+ maxFontSizeMultiplier?: number;
92
+ renderingMode?: SFSymbolRenderingMode;
93
+ /** Tint / primary hierarchical color. Defaults to the semantic label color. */
94
+ color?: ColorValue;
95
+ /** One to three colors for palette rendering, in primary-to-tertiary order. */
96
+ paletteColors?: readonly [ColorValue, ColorValue?, ColorValue?];
97
+ /** Variable color/draw progress, from 0 to 1. Omit for the symbol default. */
98
+ variableValue?: number;
99
+ /** iOS 26+. Earlier versions retain the system's variable color behavior. */
100
+ variableValueMode?: 'automatic' | 'color' | 'draw';
101
+ /** iOS 26+. Earlier versions use flat colors. */
102
+ colorRenderingMode?: 'automatic' | 'flat' | 'gradient';
103
+ /** Native image fitting within an explicitly sized frame. Defaults to center. */
104
+ resizeMode?: 'center' | 'contain' | 'cover' | 'stretch';
105
+ /** One preset or multiple distinct presets. Unsupported OS presets are ignored. */
106
+ effect?: SFSymbolEffect | readonly SFSymbolEffect[];
107
+ /** Animate changes to the name or image configuration. Omit to update instantly. */
108
+ contentTransition?: SFSymbolContentTransition;
109
+ /** Honor the system Reduce Motion setting. Defaults to true. */
110
+ respectReduceMotion?: boolean;
111
+ }
112
+ export {};
113
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/SFSymbol/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE1D,MAAM,MAAM,cAAc,GACtB,aAAa,GACb,YAAY,GACZ,MAAM,GACN,OAAO,GACP,SAAS,GACT,QAAQ,GACR,UAAU,GACV,MAAM,GACN,OAAO,GACP,OAAO,CAAC;AAEZ,MAAM,MAAM,aAAa,GACvB,SAAS,GAAG,aAAa,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAC3D,MAAM,MAAM,qBAAqB,GAC/B,WAAW,GAAG,YAAY,GAAG,cAAc,GAAG,SAAS,GAAG,YAAY,CAAC;AACzE,MAAM,MAAM,iBAAiB,GACzB,iBAAiB,GACjB,kBAAkB,GAClB,YAAY,GACZ,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,UAAU,GACV,aAAa,GACb,MAAM,GACN,SAAS,GACT,UA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B,qEAAqE;IACrE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,0EAA0E;IAC1E,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,+DAA+D;IAC/D,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,aAAa,CAAC,EAAE,qBAAqB,CAAC;IACtC,+EAA+E;IAC/E,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,+EAA+E;IAC/E,aAAa,CAAC,EAAE,SAAS,CAAC,UAAU,EAAE,UAAU,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC;IAChE,8EAA8E;IAC9E,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,6EAA6E;IAC7E,iBAAiB,CAAC,EAAE,WAAW,GAAG,OAAO,GAAG,MAAM,CAAC;IACnD,iDAAiD;IACjD,kBAAkB,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,UAAU,CAAC;IACvD,iFAAiF;IACjF,UAAU,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;IACxD,mFAAmF;IACnF,MAAM,CAAC,EAAE,cAAc,GAAG,SAAS,cAAc,EAAE,CAAC;IACpD,oFAAoF;IACpF,iBAAiB,CAAC,EAAE,yBAAyB,CAAC;IAC9C,gEAAgE;IAChE,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B"}
@@ -0,0 +1,21 @@
1
+ import { type CodegenTypes, type ViewProps } from 'react-native';
2
+ type StepperChangeEvent = Readonly<{
3
+ value: CodegenTypes.Double;
4
+ eventCount: CodegenTypes.Int32;
5
+ }>;
6
+ export interface NativeStepperProps extends ViewProps {
7
+ value?: CodegenTypes.WithDefault<CodegenTypes.Double, 0>;
8
+ minimumValue?: CodegenTypes.WithDefault<CodegenTypes.Double, 0>;
9
+ maximumValue?: CodegenTypes.WithDefault<CodegenTypes.Double, 100>;
10
+ stepValue?: CodegenTypes.WithDefault<CodegenTypes.Double, 1>;
11
+ isContinuous?: CodegenTypes.WithDefault<boolean, true>;
12
+ autorepeat?: CodegenTypes.WithDefault<boolean, true>;
13
+ wraps?: CodegenTypes.WithDefault<boolean, false>;
14
+ disabled?: CodegenTypes.WithDefault<boolean, false>;
15
+ controlled?: CodegenTypes.WithDefault<boolean, false>;
16
+ mostRecentEventCount?: CodegenTypes.WithDefault<CodegenTypes.Int32, 0>;
17
+ onChange?: CodegenTypes.BubblingEventHandler<StepperChangeEvent>;
18
+ }
19
+ declare const _default: import("react-native/types_generated/Libraries/Utilities/codegenNativeComponent").NativeComponentType<NativeStepperProps>;
20
+ export default _default;
21
+ //# sourceMappingURL=StepperNativeComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StepperNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/Stepper/StepperNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAEtB,KAAK,kBAAkB,GAAG,QAAQ,CAAC;IACjC,KAAK,EAAE,YAAY,CAAC,MAAM,CAAC;IAC3B,UAAU,EAAE,YAAY,CAAC,KAAK,CAAC;CAChC,CAAC,CAAC;AAEH,MAAM,WAAW,kBAAmB,SAAQ,SAAS;IACnD,KAAK,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,YAAY,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IACzD,YAAY,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,YAAY,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IAChE,YAAY,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,YAAY,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAClE,SAAS,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,YAAY,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IAC7D,YAAY,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IACvD,UAAU,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IACrD,KAAK,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IACjD,QAAQ,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IACpD,UAAU,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IACtD,oBAAoB,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;IAEvE,QAAQ,CAAC,EAAE,YAAY,CAAC,oBAAoB,CAAC,kBAAkB,CAAC,CAAC;CAClE;;AAED,wBAEG"}
@@ -0,0 +1,4 @@
1
+ import type { StepperProps } from './types.js';
2
+ export declare const Stepper: import("react").ForwardRefExoticComponent<StepperProps & import("react").RefAttributes<import("react-native/types_generated/src/private/webapis/dom/nodes/ReactNativeElement").default>>;
3
+ export type { StepperProps } from './types.js';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Stepper/index.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;AAE5C,eAAO,MAAM,OAAO,0LA6EnB,CAAC;AAMF,YAAY,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC"}