react-native-platform-components 1.3.0 → 1.5.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 (636) hide show
  1. package/PlatformComponents.podspec +1 -1
  2. package/README.md +47 -51
  3. package/android/src/main/java/com/platformcomponents/PCButtonGroupView.kt +664 -0
  4. package/android/src/main/java/com/platformcomponents/PCButtonGroupViewManager.kt +241 -0
  5. package/android/src/main/java/com/platformcomponents/PCButtonSupport.kt +159 -0
  6. package/android/src/main/java/com/platformcomponents/PCButtonView.kt +527 -0
  7. package/android/src/main/java/com/platformcomponents/PCButtonViewManager.kt +204 -0
  8. package/android/src/main/java/com/platformcomponents/PCContextMenuView.kt +41 -151
  9. package/android/src/main/java/com/platformcomponents/PCContextMenuViewManager.kt +7 -63
  10. package/android/src/main/java/com/platformcomponents/PCDatePickerView.kt +310 -115
  11. package/android/src/main/java/com/platformcomponents/PCDatePickerViewManager.kt +23 -3
  12. package/android/src/main/java/com/platformcomponents/PCExpressive.kt +112 -0
  13. package/android/src/main/java/com/platformcomponents/PCFloatingActionButtonView.kt +485 -0
  14. package/android/src/main/java/com/platformcomponents/PCFloatingActionButtonViewManager.kt +109 -0
  15. package/android/src/main/java/com/platformcomponents/PCFloatingToolbarView.kt +247 -0
  16. package/android/src/main/java/com/platformcomponents/PCFloatingToolbarViewManager.kt +73 -0
  17. package/android/src/main/java/com/platformcomponents/PCHaptics.kt +46 -0
  18. package/android/src/main/java/com/platformcomponents/PCImageLoader.kt +42 -7
  19. package/android/src/main/java/com/platformcomponents/PCLiquidGlassContainerView.kt +32 -0
  20. package/android/src/main/java/com/platformcomponents/PCLiquidGlassContainerViewManager.kt +31 -0
  21. package/android/src/main/java/com/platformcomponents/PCLiquidGlassView.kt +32 -6
  22. package/android/src/main/java/com/platformcomponents/PCLiquidGlassViewManager.kt +4 -0
  23. package/android/src/main/java/com/platformcomponents/PCMenuSupport.kt +280 -0
  24. package/android/src/main/java/com/platformcomponents/PCNavigationBarSupport.kt +332 -0
  25. package/android/src/main/java/com/platformcomponents/PCNavigationRailView.kt +448 -0
  26. package/android/src/main/java/com/platformcomponents/PCNavigationRailViewManager.kt +176 -0
  27. package/android/src/main/java/com/platformcomponents/PCSegmentedControlView.kt +35 -17
  28. package/android/src/main/java/com/platformcomponents/PCSegmentedControlViewManager.kt +20 -3
  29. package/android/src/main/java/com/platformcomponents/PCSelectionMenuView.kt +371 -39
  30. package/android/src/main/java/com/platformcomponents/PCSelectionMenuViewManager.kt +18 -4
  31. package/android/src/main/java/com/platformcomponents/PCTabBarView.kt +397 -0
  32. package/android/src/main/java/com/platformcomponents/PCTabBarViewManager.kt +182 -0
  33. package/android/src/main/java/com/platformcomponents/PCTextFieldView.kt +1393 -0
  34. package/android/src/main/java/com/platformcomponents/PCTextFieldViewManager.kt +354 -0
  35. package/android/src/main/java/com/platformcomponents/PCThemeSupport.kt +37 -0
  36. package/android/src/main/java/com/platformcomponents/PlatformComponentsPackage.kt +8 -0
  37. package/android/src/main/res/drawable/pc_ic_search.xml +12 -0
  38. package/android/src/main/res/values/attrs.xml +13 -0
  39. package/android/src/main/res/values/ids.xml +5 -0
  40. package/android/src/main/res/values/styles.xml +207 -0
  41. package/ios/PCButton.h +10 -0
  42. package/ios/PCButton.mm +311 -0
  43. package/ios/PCButtonGroup.h +10 -0
  44. package/ios/PCButtonGroup.mm +323 -0
  45. package/ios/PCButtonGroupView.swift +473 -0
  46. package/ios/PCButtonSupport.swift +312 -0
  47. package/ios/PCButtonView.swift +438 -0
  48. package/ios/PCConstants.swift +23 -2
  49. package/ios/PCContextMenu.mm +28 -110
  50. package/ios/PCContextMenu.swift +106 -167
  51. package/ios/PCDatePicker.mm +21 -9
  52. package/ios/PCDatePickerView.swift +94 -20
  53. package/ios/PCFloatingActionButton.h +10 -0
  54. package/ios/PCFloatingActionButton.mm +177 -0
  55. package/ios/PCFloatingActionButtonView.swift +426 -0
  56. package/ios/PCFloatingToolbar.h +10 -0
  57. package/ios/PCFloatingToolbar.mm +103 -0
  58. package/ios/PCFloatingToolbarView.swift +336 -0
  59. package/ios/PCHaptics.swift +91 -0
  60. package/ios/PCImageLoader.swift +76 -12
  61. package/ios/PCLiquidGlass.mm +36 -0
  62. package/ios/PCLiquidGlass.swift +221 -114
  63. package/ios/PCLiquidGlassContainer.h +10 -0
  64. package/ios/PCLiquidGlassContainer.mm +84 -0
  65. package/ios/PCLiquidGlassContainer.swift +69 -0
  66. package/ios/PCMenuItems.h +76 -0
  67. package/ios/PCMenuSupport.swift +350 -0
  68. package/ios/PCNavigationRail.h +10 -0
  69. package/ios/PCNavigationRail.mm +270 -0
  70. package/ios/PCNavigationRailView.swift +415 -0
  71. package/ios/PCSegmentedControl.mm +17 -2
  72. package/ios/PCSegmentedControl.swift +57 -7
  73. package/ios/PCSelectionMenu.mm +36 -8
  74. package/ios/PCSelectionMenu.swift +224 -48
  75. package/ios/PCTabBar.h +10 -0
  76. package/ios/PCTabBar.mm +285 -0
  77. package/ios/PCTabBarAccessory.h +10 -0
  78. package/ios/PCTabBarAccessory.mm +93 -0
  79. package/ios/PCTabBarAccessoryView.swift +96 -0
  80. package/ios/PCTabBarView.swift +671 -0
  81. package/ios/PCTextField.h +10 -0
  82. package/ios/PCTextField.mm +546 -0
  83. package/ios/PCTextFieldView.swift +1558 -0
  84. package/lib/commonjs/Button.js +149 -0
  85. package/lib/commonjs/Button.js.map +1 -0
  86. package/lib/commonjs/ButtonGroup.js +109 -0
  87. package/lib/commonjs/ButtonGroup.js.map +1 -0
  88. package/lib/commonjs/ButtonGroupNativeComponent.ts +191 -0
  89. package/lib/commonjs/ButtonNativeComponent.ts +192 -0
  90. package/lib/commonjs/ContextMenu.js +9 -48
  91. package/lib/commonjs/ContextMenu.js.map +1 -1
  92. package/lib/commonjs/ContextMenuNativeComponent.ts +47 -49
  93. package/lib/commonjs/DatePicker.js +98 -2
  94. package/lib/commonjs/DatePicker.js.map +1 -1
  95. package/lib/commonjs/DatePickerNativeComponent.ts +19 -2
  96. package/lib/commonjs/FloatingActionButton.js +60 -0
  97. package/lib/commonjs/FloatingActionButton.js.map +1 -0
  98. package/lib/commonjs/FloatingActionButtonNativeComponent.ts +58 -0
  99. package/lib/commonjs/FloatingToolbar.js +77 -0
  100. package/lib/commonjs/FloatingToolbar.js.map +1 -0
  101. package/lib/commonjs/FloatingToolbarNativeComponent.ts +47 -0
  102. package/lib/commonjs/LiquidGlass.js +7 -1
  103. package/lib/commonjs/LiquidGlass.js.map +1 -1
  104. package/lib/commonjs/LiquidGlassContainer.js +32 -0
  105. package/lib/commonjs/LiquidGlassContainer.js.map +1 -0
  106. package/lib/commonjs/LiquidGlassContainerNativeComponent.ts +17 -0
  107. package/lib/commonjs/LiquidGlassNativeComponent.ts +8 -0
  108. package/lib/commonjs/NavigationRail.js +104 -0
  109. package/lib/commonjs/NavigationRail.js.map +1 -0
  110. package/lib/commonjs/NavigationRailNativeComponent.ts +107 -0
  111. package/lib/commonjs/PlatformComponentsProvider.js +18 -0
  112. package/lib/commonjs/PlatformComponentsProvider.js.map +1 -0
  113. package/lib/commonjs/SegmentedControl.js +18 -85
  114. package/lib/commonjs/SegmentedControl.js.map +1 -1
  115. package/lib/commonjs/SegmentedControlNativeComponent.ts +14 -0
  116. package/lib/commonjs/SelectionMenu.js +27 -3
  117. package/lib/commonjs/SelectionMenu.js.map +1 -1
  118. package/lib/commonjs/SelectionMenuNativeComponent.ts +26 -4
  119. package/lib/commonjs/SplitButton.js +98 -0
  120. package/lib/commonjs/SplitButton.js.map +1 -0
  121. package/lib/commonjs/TabBar.js +203 -0
  122. package/lib/commonjs/TabBar.js.map +1 -0
  123. package/lib/commonjs/TabBarAccessoryNativeComponent.ts +19 -0
  124. package/lib/commonjs/TabBarNativeComponent.ts +145 -0
  125. package/lib/commonjs/TextField.js +358 -0
  126. package/lib/commonjs/TextField.js.map +1 -0
  127. package/lib/commonjs/TextFieldNativeComponent.ts +324 -0
  128. package/lib/commonjs/focusRegistry.js +79 -0
  129. package/lib/commonjs/focusRegistry.js.map +1 -0
  130. package/lib/commonjs/haptics.js +2 -0
  131. package/lib/commonjs/haptics.js.map +1 -0
  132. package/lib/commonjs/icons.js +106 -0
  133. package/lib/commonjs/icons.js.map +1 -0
  134. package/lib/commonjs/index.js +143 -0
  135. package/lib/commonjs/index.js.map +1 -1
  136. package/lib/commonjs/index.web.js +157 -63
  137. package/lib/commonjs/index.web.js.map +1 -1
  138. package/lib/commonjs/jest.js +910 -0
  139. package/lib/commonjs/jest.js.map +1 -0
  140. package/lib/commonjs/labelStyle.js +27 -0
  141. package/lib/commonjs/labelStyle.js.map +1 -0
  142. package/lib/commonjs/menuItems.js +68 -0
  143. package/lib/commonjs/menuItems.js.map +1 -0
  144. package/lib/commonjs/reactNativeInternals.d.js +2 -0
  145. package/lib/commonjs/reactNativeInternals.d.js.map +1 -0
  146. package/lib/commonjs/selectionIdentifiers.js +18 -0
  147. package/lib/commonjs/selectionIdentifiers.js.map +1 -0
  148. package/lib/commonjs/submitBehavior.js +19 -0
  149. package/lib/commonjs/submitBehavior.js.map +1 -0
  150. package/lib/commonjs/tabItems.js +49 -0
  151. package/lib/commonjs/tabItems.js.map +1 -0
  152. package/lib/commonjs/web/Button.js +170 -0
  153. package/lib/commonjs/web/Button.js.map +1 -0
  154. package/lib/commonjs/web/ButtonGroup.js +119 -0
  155. package/lib/commonjs/web/ButtonGroup.js.map +1 -0
  156. package/lib/commonjs/web/DatePicker.js +168 -0
  157. package/lib/commonjs/web/DatePicker.js.map +1 -0
  158. package/lib/commonjs/web/DateRangePicker.js +137 -0
  159. package/lib/commonjs/web/DateRangePicker.js.map +1 -0
  160. package/lib/commonjs/web/Dialog.js +54 -0
  161. package/lib/commonjs/web/Dialog.js.map +1 -0
  162. package/lib/commonjs/web/FloatingActionButton.js +98 -0
  163. package/lib/commonjs/web/FloatingActionButton.js.map +1 -0
  164. package/lib/commonjs/web/Icon.js +34 -0
  165. package/lib/commonjs/web/Icon.js.map +1 -0
  166. package/lib/commonjs/web/NativeTheme.js +28 -0
  167. package/lib/commonjs/web/NativeTheme.js.map +1 -0
  168. package/lib/commonjs/web/NavigationRail.js +139 -0
  169. package/lib/commonjs/web/NavigationRail.js.map +1 -0
  170. package/lib/commonjs/web/PlatformComponentsProvider.js +51 -0
  171. package/lib/commonjs/web/PlatformComponentsProvider.js.map +1 -0
  172. package/lib/commonjs/web/SegmentedControl.js +117 -0
  173. package/lib/commonjs/web/SegmentedControl.js.map +1 -0
  174. package/lib/commonjs/web/SelectionMenu.js +142 -0
  175. package/lib/commonjs/web/SelectionMenu.js.map +1 -0
  176. package/lib/commonjs/web/SplitButton.js +35 -0
  177. package/lib/commonjs/web/SplitButton.js.map +1 -0
  178. package/lib/commonjs/web/TabBar.js +131 -0
  179. package/lib/commonjs/web/TabBar.js.map +1 -0
  180. package/lib/commonjs/web/TextField.js +322 -0
  181. package/lib/commonjs/web/TextField.js.map +1 -0
  182. package/lib/commonjs/web/components.js +36 -0
  183. package/lib/commonjs/web/components.js.map +1 -0
  184. package/lib/commonjs/web/containers.js +121 -0
  185. package/lib/commonjs/web/containers.js.map +1 -0
  186. package/lib/commonjs/web/dateInput.js +116 -0
  187. package/lib/commonjs/web/dateInput.js.map +1 -0
  188. package/lib/commonjs/web/shared.js +192 -0
  189. package/lib/commonjs/web/shared.js.map +1 -0
  190. package/lib/commonjs/webComponents.js +6 -0
  191. package/lib/commonjs/webComponents.js.map +1 -0
  192. package/lib/module/Button.js +142 -0
  193. package/lib/module/Button.js.map +1 -0
  194. package/lib/module/ButtonGroup.js +102 -0
  195. package/lib/module/ButtonGroup.js.map +1 -0
  196. package/lib/module/ButtonGroupNativeComponent.ts +191 -0
  197. package/lib/module/ButtonNativeComponent.ts +192 -0
  198. package/lib/module/ContextMenu.js +9 -48
  199. package/lib/module/ContextMenu.js.map +1 -1
  200. package/lib/module/ContextMenuNativeComponent.ts +47 -49
  201. package/lib/module/DatePicker.js +98 -4
  202. package/lib/module/DatePicker.js.map +1 -1
  203. package/lib/module/DatePickerNativeComponent.ts +19 -2
  204. package/lib/module/FloatingActionButton.js +53 -0
  205. package/lib/module/FloatingActionButton.js.map +1 -0
  206. package/lib/module/FloatingActionButtonNativeComponent.ts +58 -0
  207. package/lib/module/FloatingToolbar.js +70 -0
  208. package/lib/module/FloatingToolbar.js.map +1 -0
  209. package/lib/module/FloatingToolbarNativeComponent.ts +47 -0
  210. package/lib/module/LiquidGlass.js +7 -1
  211. package/lib/module/LiquidGlass.js.map +1 -1
  212. package/lib/module/LiquidGlassContainer.js +26 -0
  213. package/lib/module/LiquidGlassContainer.js.map +1 -0
  214. package/lib/module/LiquidGlassContainerNativeComponent.ts +17 -0
  215. package/lib/module/LiquidGlassNativeComponent.ts +8 -0
  216. package/lib/module/NavigationRail.js +99 -0
  217. package/lib/module/NavigationRail.js.map +1 -0
  218. package/lib/module/NavigationRailNativeComponent.ts +107 -0
  219. package/lib/module/PlatformComponentsProvider.js +13 -0
  220. package/lib/module/PlatformComponentsProvider.js.map +1 -0
  221. package/lib/module/SegmentedControl.js +18 -85
  222. package/lib/module/SegmentedControl.js.map +1 -1
  223. package/lib/module/SegmentedControlNativeComponent.ts +14 -0
  224. package/lib/module/SelectionMenu.js +27 -3
  225. package/lib/module/SelectionMenu.js.map +1 -1
  226. package/lib/module/SelectionMenuNativeComponent.ts +26 -4
  227. package/lib/module/SplitButton.js +91 -0
  228. package/lib/module/SplitButton.js.map +1 -0
  229. package/lib/module/TabBar.js +196 -0
  230. package/lib/module/TabBar.js.map +1 -0
  231. package/lib/module/TabBarAccessoryNativeComponent.ts +19 -0
  232. package/lib/module/TabBarNativeComponent.ts +145 -0
  233. package/lib/module/TextField.js +352 -0
  234. package/lib/module/TextField.js.map +1 -0
  235. package/lib/module/TextFieldNativeComponent.ts +324 -0
  236. package/lib/module/focusRegistry.js +75 -0
  237. package/lib/module/focusRegistry.js.map +1 -0
  238. package/lib/module/haptics.js +2 -0
  239. package/lib/module/haptics.js.map +1 -0
  240. package/lib/module/icons.js +101 -0
  241. package/lib/module/icons.js.map +1 -0
  242. package/lib/module/index.js +13 -0
  243. package/lib/module/index.js.map +1 -1
  244. package/lib/module/index.web.js +12 -59
  245. package/lib/module/index.web.js.map +1 -1
  246. package/lib/module/jest.js +840 -0
  247. package/lib/module/jest.js.map +1 -0
  248. package/lib/module/labelStyle.js +23 -0
  249. package/lib/module/labelStyle.js.map +1 -0
  250. package/lib/module/menuItems.js +65 -0
  251. package/lib/module/menuItems.js.map +1 -0
  252. package/lib/module/reactNativeInternals.d.js +2 -0
  253. package/lib/module/reactNativeInternals.d.js.map +1 -0
  254. package/lib/module/selectionIdentifiers.js +14 -0
  255. package/lib/module/selectionIdentifiers.js.map +1 -0
  256. package/lib/module/submitBehavior.js +15 -0
  257. package/lib/module/submitBehavior.js.map +1 -0
  258. package/lib/module/tabItems.js +45 -0
  259. package/lib/module/tabItems.js.map +1 -0
  260. package/lib/module/web/Button.js +164 -0
  261. package/lib/module/web/Button.js.map +1 -0
  262. package/lib/module/web/ButtonGroup.js +113 -0
  263. package/lib/module/web/ButtonGroup.js.map +1 -0
  264. package/lib/module/web/DatePicker.js +162 -0
  265. package/lib/module/web/DatePicker.js.map +1 -0
  266. package/lib/module/web/DateRangePicker.js +131 -0
  267. package/lib/module/web/DateRangePicker.js.map +1 -0
  268. package/lib/module/web/Dialog.js +48 -0
  269. package/lib/module/web/Dialog.js.map +1 -0
  270. package/lib/module/web/FloatingActionButton.js +94 -0
  271. package/lib/module/web/FloatingActionButton.js.map +1 -0
  272. package/lib/module/web/Icon.js +29 -0
  273. package/lib/module/web/Icon.js.map +1 -0
  274. package/lib/module/web/NativeTheme.js +23 -0
  275. package/lib/module/web/NativeTheme.js.map +1 -0
  276. package/lib/module/web/NavigationRail.js +133 -0
  277. package/lib/module/web/NavigationRail.js.map +1 -0
  278. package/lib/module/web/PlatformComponentsProvider.js +44 -0
  279. package/lib/module/web/PlatformComponentsProvider.js.map +1 -0
  280. package/lib/module/web/SegmentedControl.js +112 -0
  281. package/lib/module/web/SegmentedControl.js.map +1 -0
  282. package/lib/module/web/SelectionMenu.js +137 -0
  283. package/lib/module/web/SelectionMenu.js.map +1 -0
  284. package/lib/module/web/SplitButton.js +30 -0
  285. package/lib/module/web/SplitButton.js.map +1 -0
  286. package/lib/module/web/TabBar.js +126 -0
  287. package/lib/module/web/TabBar.js.map +1 -0
  288. package/lib/module/web/TextField.js +316 -0
  289. package/lib/module/web/TextField.js.map +1 -0
  290. package/lib/module/web/components.js +33 -0
  291. package/lib/module/web/components.js.map +1 -0
  292. package/lib/module/web/containers.js +112 -0
  293. package/lib/module/web/containers.js.map +1 -0
  294. package/lib/module/web/dateInput.js +109 -0
  295. package/lib/module/web/dateInput.js.map +1 -0
  296. package/lib/module/web/shared.js +179 -0
  297. package/lib/module/web/shared.js.map +1 -0
  298. package/lib/module/webComponents.js +4 -0
  299. package/lib/module/webComponents.js.map +1 -0
  300. package/lib/typescript/commonjs/docs/sidebars.d.ts.map +1 -1
  301. package/lib/typescript/commonjs/src/Button.d.ts +184 -0
  302. package/lib/typescript/commonjs/src/Button.d.ts.map +1 -0
  303. package/lib/typescript/commonjs/src/ButtonGroup.d.ts +117 -0
  304. package/lib/typescript/commonjs/src/ButtonGroup.d.ts.map +1 -0
  305. package/lib/typescript/commonjs/src/ButtonGroupNativeComponent.d.ts +154 -0
  306. package/lib/typescript/commonjs/src/ButtonGroupNativeComponent.d.ts.map +1 -0
  307. package/lib/typescript/commonjs/src/ButtonNativeComponent.d.ts +148 -0
  308. package/lib/typescript/commonjs/src/ButtonNativeComponent.d.ts.map +1 -0
  309. package/lib/typescript/commonjs/src/ContextMenu.d.ts +20 -33
  310. package/lib/typescript/commonjs/src/ContextMenu.d.ts.map +1 -1
  311. package/lib/typescript/commonjs/src/ContextMenuNativeComponent.d.ts +45 -47
  312. package/lib/typescript/commonjs/src/ContextMenuNativeComponent.d.ts.map +1 -1
  313. package/lib/typescript/commonjs/src/DatePicker.d.ts +74 -1
  314. package/lib/typescript/commonjs/src/DatePicker.d.ts.map +1 -1
  315. package/lib/typescript/commonjs/src/DatePickerNativeComponent.d.ts +16 -1
  316. package/lib/typescript/commonjs/src/DatePickerNativeComponent.d.ts.map +1 -1
  317. package/lib/typescript/commonjs/src/FloatingActionButton.d.ts +67 -0
  318. package/lib/typescript/commonjs/src/FloatingActionButton.d.ts.map +1 -0
  319. package/lib/typescript/commonjs/src/FloatingActionButtonNativeComponent.d.ts +43 -0
  320. package/lib/typescript/commonjs/src/FloatingActionButtonNativeComponent.d.ts.map +1 -0
  321. package/lib/typescript/commonjs/src/FloatingToolbar.d.ts +75 -0
  322. package/lib/typescript/commonjs/src/FloatingToolbar.d.ts.map +1 -0
  323. package/lib/typescript/commonjs/src/FloatingToolbarNativeComponent.d.ts +36 -0
  324. package/lib/typescript/commonjs/src/FloatingToolbarNativeComponent.d.ts.map +1 -0
  325. package/lib/typescript/commonjs/src/LiquidGlass.d.ts +17 -0
  326. package/lib/typescript/commonjs/src/LiquidGlass.d.ts.map +1 -1
  327. package/lib/typescript/commonjs/src/LiquidGlassContainer.d.ts +27 -0
  328. package/lib/typescript/commonjs/src/LiquidGlassContainer.d.ts.map +1 -0
  329. package/lib/typescript/commonjs/src/LiquidGlassContainerNativeComponent.d.ts +13 -0
  330. package/lib/typescript/commonjs/src/LiquidGlassContainerNativeComponent.d.ts.map +1 -0
  331. package/lib/typescript/commonjs/src/LiquidGlassNativeComponent.d.ts +7 -0
  332. package/lib/typescript/commonjs/src/LiquidGlassNativeComponent.d.ts.map +1 -1
  333. package/lib/typescript/commonjs/src/NavigationRail.d.ts +86 -0
  334. package/lib/typescript/commonjs/src/NavigationRail.d.ts.map +1 -0
  335. package/lib/typescript/commonjs/src/NavigationRailNativeComponent.d.ts +81 -0
  336. package/lib/typescript/commonjs/src/NavigationRailNativeComponent.d.ts.map +1 -0
  337. package/lib/typescript/commonjs/src/PlatformComponentsProvider.d.ts +6 -0
  338. package/lib/typescript/commonjs/src/PlatformComponentsProvider.d.ts.map +1 -0
  339. package/lib/typescript/commonjs/src/SegmentedControl.d.ts +35 -47
  340. package/lib/typescript/commonjs/src/SegmentedControl.d.ts.map +1 -1
  341. package/lib/typescript/commonjs/src/SegmentedControlNativeComponent.d.ts +11 -0
  342. package/lib/typescript/commonjs/src/SegmentedControlNativeComponent.d.ts.map +1 -1
  343. package/lib/typescript/commonjs/src/SelectionMenu.d.ts +44 -2
  344. package/lib/typescript/commonjs/src/SelectionMenu.d.ts.map +1 -1
  345. package/lib/typescript/commonjs/src/SelectionMenuNativeComponent.d.ts +20 -4
  346. package/lib/typescript/commonjs/src/SelectionMenuNativeComponent.d.ts.map +1 -1
  347. package/lib/typescript/commonjs/src/SplitButton.d.ts +83 -0
  348. package/lib/typescript/commonjs/src/SplitButton.d.ts.map +1 -0
  349. package/lib/typescript/commonjs/src/TabBar.d.ts +144 -0
  350. package/lib/typescript/commonjs/src/TabBar.d.ts.map +1 -0
  351. package/lib/typescript/commonjs/src/TabBarAccessoryNativeComponent.d.ts +13 -0
  352. package/lib/typescript/commonjs/src/TabBarAccessoryNativeComponent.d.ts.map +1 -0
  353. package/lib/typescript/commonjs/src/TabBarNativeComponent.d.ts +110 -0
  354. package/lib/typescript/commonjs/src/TabBarNativeComponent.d.ts.map +1 -0
  355. package/lib/typescript/commonjs/src/TextField.d.ts +332 -0
  356. package/lib/typescript/commonjs/src/TextField.d.ts.map +1 -0
  357. package/lib/typescript/commonjs/src/TextFieldNativeComponent.d.ts +240 -0
  358. package/lib/typescript/commonjs/src/TextFieldNativeComponent.d.ts.map +1 -0
  359. package/lib/typescript/commonjs/src/focusRegistry.d.ts +13 -0
  360. package/lib/typescript/commonjs/src/focusRegistry.d.ts.map +1 -0
  361. package/lib/typescript/commonjs/src/haptics.d.ts +20 -0
  362. package/lib/typescript/commonjs/src/haptics.d.ts.map +1 -0
  363. package/lib/typescript/commonjs/src/icons.d.ts +58 -0
  364. package/lib/typescript/commonjs/src/icons.d.ts.map +1 -0
  365. package/lib/typescript/commonjs/src/index.d.ts +13 -0
  366. package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
  367. package/lib/typescript/commonjs/src/index.web.d.ts +25 -133
  368. package/lib/typescript/commonjs/src/index.web.d.ts.map +1 -1
  369. package/lib/typescript/commonjs/src/jest.d.ts +139 -0
  370. package/lib/typescript/commonjs/src/jest.d.ts.map +1 -0
  371. package/lib/typescript/commonjs/src/labelStyle.d.ts +20 -0
  372. package/lib/typescript/commonjs/src/labelStyle.d.ts.map +1 -0
  373. package/lib/typescript/commonjs/src/menuItems.d.ts +100 -0
  374. package/lib/typescript/commonjs/src/menuItems.d.ts.map +1 -0
  375. package/lib/typescript/commonjs/src/selectionIdentifiers.d.ts +3 -0
  376. package/lib/typescript/commonjs/src/selectionIdentifiers.d.ts.map +1 -0
  377. package/lib/typescript/commonjs/src/sharedTypes.d.ts +6 -1
  378. package/lib/typescript/commonjs/src/sharedTypes.d.ts.map +1 -1
  379. package/lib/typescript/commonjs/src/submitBehavior.d.ts +9 -0
  380. package/lib/typescript/commonjs/src/submitBehavior.d.ts.map +1 -0
  381. package/lib/typescript/commonjs/src/tabItems.d.ts +55 -0
  382. package/lib/typescript/commonjs/src/tabItems.d.ts.map +1 -0
  383. package/lib/typescript/commonjs/src/web/Button.d.ts +9 -0
  384. package/lib/typescript/commonjs/src/web/Button.d.ts.map +1 -0
  385. package/lib/typescript/commonjs/src/web/ButtonGroup.d.ts +11 -0
  386. package/lib/typescript/commonjs/src/web/ButtonGroup.d.ts.map +1 -0
  387. package/lib/typescript/commonjs/src/web/DatePicker.d.ts +14 -0
  388. package/lib/typescript/commonjs/src/web/DatePicker.d.ts.map +1 -0
  389. package/lib/typescript/commonjs/src/web/DateRangePicker.d.ts +11 -0
  390. package/lib/typescript/commonjs/src/web/DateRangePicker.d.ts.map +1 -0
  391. package/lib/typescript/commonjs/src/web/Dialog.d.ts +12 -0
  392. package/lib/typescript/commonjs/src/web/Dialog.d.ts.map +1 -0
  393. package/lib/typescript/commonjs/src/web/FloatingActionButton.d.ts +8 -0
  394. package/lib/typescript/commonjs/src/web/FloatingActionButton.d.ts.map +1 -0
  395. package/lib/typescript/commonjs/src/web/Icon.d.ts +12 -0
  396. package/lib/typescript/commonjs/src/web/Icon.d.ts.map +1 -0
  397. package/lib/typescript/commonjs/src/web/NativeTheme.d.ts +10 -0
  398. package/lib/typescript/commonjs/src/web/NativeTheme.d.ts.map +1 -0
  399. package/lib/typescript/commonjs/src/web/NavigationRail.d.ts +8 -0
  400. package/lib/typescript/commonjs/src/web/NavigationRail.d.ts.map +1 -0
  401. package/lib/typescript/commonjs/src/web/PlatformComponentsProvider.d.ts +10 -0
  402. package/lib/typescript/commonjs/src/web/PlatformComponentsProvider.d.ts.map +1 -0
  403. package/lib/typescript/commonjs/src/web/SegmentedControl.d.ts +8 -0
  404. package/lib/typescript/commonjs/src/web/SegmentedControl.d.ts.map +1 -0
  405. package/lib/typescript/commonjs/src/web/SelectionMenu.d.ts +10 -0
  406. package/lib/typescript/commonjs/src/web/SelectionMenu.d.ts.map +1 -0
  407. package/lib/typescript/commonjs/src/web/SplitButton.d.ts +9 -0
  408. package/lib/typescript/commonjs/src/web/SplitButton.d.ts.map +1 -0
  409. package/lib/typescript/commonjs/src/web/TabBar.d.ts +9 -0
  410. package/lib/typescript/commonjs/src/web/TabBar.d.ts.map +1 -0
  411. package/lib/typescript/commonjs/src/web/TextField.d.ts +9 -0
  412. package/lib/typescript/commonjs/src/web/TextField.d.ts.map +1 -0
  413. package/lib/typescript/commonjs/src/web/components.d.ts +17 -0
  414. package/lib/typescript/commonjs/src/web/components.d.ts.map +1 -0
  415. package/lib/typescript/commonjs/src/web/containers.d.ts +24 -0
  416. package/lib/typescript/commonjs/src/web/containers.d.ts.map +1 -0
  417. package/lib/typescript/commonjs/src/web/dateInput.d.ts +20 -0
  418. package/lib/typescript/commonjs/src/web/dateInput.d.ts.map +1 -0
  419. package/lib/typescript/commonjs/src/web/shared.d.ts +43 -0
  420. package/lib/typescript/commonjs/src/web/shared.d.ts.map +1 -0
  421. package/lib/typescript/commonjs/src/webComponents.d.ts +43 -0
  422. package/lib/typescript/commonjs/src/webComponents.d.ts.map +1 -0
  423. package/lib/typescript/module/docs/sidebars.d.ts.map +1 -1
  424. package/lib/typescript/module/src/Button.d.ts +184 -0
  425. package/lib/typescript/module/src/Button.d.ts.map +1 -0
  426. package/lib/typescript/module/src/ButtonGroup.d.ts +117 -0
  427. package/lib/typescript/module/src/ButtonGroup.d.ts.map +1 -0
  428. package/lib/typescript/module/src/ButtonGroupNativeComponent.d.ts +154 -0
  429. package/lib/typescript/module/src/ButtonGroupNativeComponent.d.ts.map +1 -0
  430. package/lib/typescript/module/src/ButtonNativeComponent.d.ts +148 -0
  431. package/lib/typescript/module/src/ButtonNativeComponent.d.ts.map +1 -0
  432. package/lib/typescript/module/src/ContextMenu.d.ts +20 -33
  433. package/lib/typescript/module/src/ContextMenu.d.ts.map +1 -1
  434. package/lib/typescript/module/src/ContextMenuNativeComponent.d.ts +45 -47
  435. package/lib/typescript/module/src/ContextMenuNativeComponent.d.ts.map +1 -1
  436. package/lib/typescript/module/src/DatePicker.d.ts +74 -1
  437. package/lib/typescript/module/src/DatePicker.d.ts.map +1 -1
  438. package/lib/typescript/module/src/DatePickerNativeComponent.d.ts +16 -1
  439. package/lib/typescript/module/src/DatePickerNativeComponent.d.ts.map +1 -1
  440. package/lib/typescript/module/src/FloatingActionButton.d.ts +67 -0
  441. package/lib/typescript/module/src/FloatingActionButton.d.ts.map +1 -0
  442. package/lib/typescript/module/src/FloatingActionButtonNativeComponent.d.ts +43 -0
  443. package/lib/typescript/module/src/FloatingActionButtonNativeComponent.d.ts.map +1 -0
  444. package/lib/typescript/module/src/FloatingToolbar.d.ts +75 -0
  445. package/lib/typescript/module/src/FloatingToolbar.d.ts.map +1 -0
  446. package/lib/typescript/module/src/FloatingToolbarNativeComponent.d.ts +36 -0
  447. package/lib/typescript/module/src/FloatingToolbarNativeComponent.d.ts.map +1 -0
  448. package/lib/typescript/module/src/LiquidGlass.d.ts +17 -0
  449. package/lib/typescript/module/src/LiquidGlass.d.ts.map +1 -1
  450. package/lib/typescript/module/src/LiquidGlassContainer.d.ts +27 -0
  451. package/lib/typescript/module/src/LiquidGlassContainer.d.ts.map +1 -0
  452. package/lib/typescript/module/src/LiquidGlassContainerNativeComponent.d.ts +13 -0
  453. package/lib/typescript/module/src/LiquidGlassContainerNativeComponent.d.ts.map +1 -0
  454. package/lib/typescript/module/src/LiquidGlassNativeComponent.d.ts +7 -0
  455. package/lib/typescript/module/src/LiquidGlassNativeComponent.d.ts.map +1 -1
  456. package/lib/typescript/module/src/NavigationRail.d.ts +86 -0
  457. package/lib/typescript/module/src/NavigationRail.d.ts.map +1 -0
  458. package/lib/typescript/module/src/NavigationRailNativeComponent.d.ts +81 -0
  459. package/lib/typescript/module/src/NavigationRailNativeComponent.d.ts.map +1 -0
  460. package/lib/typescript/module/src/PlatformComponentsProvider.d.ts +6 -0
  461. package/lib/typescript/module/src/PlatformComponentsProvider.d.ts.map +1 -0
  462. package/lib/typescript/module/src/SegmentedControl.d.ts +35 -47
  463. package/lib/typescript/module/src/SegmentedControl.d.ts.map +1 -1
  464. package/lib/typescript/module/src/SegmentedControlNativeComponent.d.ts +11 -0
  465. package/lib/typescript/module/src/SegmentedControlNativeComponent.d.ts.map +1 -1
  466. package/lib/typescript/module/src/SelectionMenu.d.ts +44 -2
  467. package/lib/typescript/module/src/SelectionMenu.d.ts.map +1 -1
  468. package/lib/typescript/module/src/SelectionMenuNativeComponent.d.ts +20 -4
  469. package/lib/typescript/module/src/SelectionMenuNativeComponent.d.ts.map +1 -1
  470. package/lib/typescript/module/src/SplitButton.d.ts +83 -0
  471. package/lib/typescript/module/src/SplitButton.d.ts.map +1 -0
  472. package/lib/typescript/module/src/TabBar.d.ts +144 -0
  473. package/lib/typescript/module/src/TabBar.d.ts.map +1 -0
  474. package/lib/typescript/module/src/TabBarAccessoryNativeComponent.d.ts +13 -0
  475. package/lib/typescript/module/src/TabBarAccessoryNativeComponent.d.ts.map +1 -0
  476. package/lib/typescript/module/src/TabBarNativeComponent.d.ts +110 -0
  477. package/lib/typescript/module/src/TabBarNativeComponent.d.ts.map +1 -0
  478. package/lib/typescript/module/src/TextField.d.ts +332 -0
  479. package/lib/typescript/module/src/TextField.d.ts.map +1 -0
  480. package/lib/typescript/module/src/TextFieldNativeComponent.d.ts +240 -0
  481. package/lib/typescript/module/src/TextFieldNativeComponent.d.ts.map +1 -0
  482. package/lib/typescript/module/src/focusRegistry.d.ts +13 -0
  483. package/lib/typescript/module/src/focusRegistry.d.ts.map +1 -0
  484. package/lib/typescript/module/src/haptics.d.ts +20 -0
  485. package/lib/typescript/module/src/haptics.d.ts.map +1 -0
  486. package/lib/typescript/module/src/icons.d.ts +58 -0
  487. package/lib/typescript/module/src/icons.d.ts.map +1 -0
  488. package/lib/typescript/module/src/index.d.ts +13 -0
  489. package/lib/typescript/module/src/index.d.ts.map +1 -1
  490. package/lib/typescript/module/src/index.web.d.ts +25 -133
  491. package/lib/typescript/module/src/index.web.d.ts.map +1 -1
  492. package/lib/typescript/module/src/jest.d.ts +139 -0
  493. package/lib/typescript/module/src/jest.d.ts.map +1 -0
  494. package/lib/typescript/module/src/labelStyle.d.ts +20 -0
  495. package/lib/typescript/module/src/labelStyle.d.ts.map +1 -0
  496. package/lib/typescript/module/src/menuItems.d.ts +100 -0
  497. package/lib/typescript/module/src/menuItems.d.ts.map +1 -0
  498. package/lib/typescript/module/src/selectionIdentifiers.d.ts +3 -0
  499. package/lib/typescript/module/src/selectionIdentifiers.d.ts.map +1 -0
  500. package/lib/typescript/module/src/sharedTypes.d.ts +6 -1
  501. package/lib/typescript/module/src/sharedTypes.d.ts.map +1 -1
  502. package/lib/typescript/module/src/submitBehavior.d.ts +9 -0
  503. package/lib/typescript/module/src/submitBehavior.d.ts.map +1 -0
  504. package/lib/typescript/module/src/tabItems.d.ts +55 -0
  505. package/lib/typescript/module/src/tabItems.d.ts.map +1 -0
  506. package/lib/typescript/module/src/web/Button.d.ts +9 -0
  507. package/lib/typescript/module/src/web/Button.d.ts.map +1 -0
  508. package/lib/typescript/module/src/web/ButtonGroup.d.ts +11 -0
  509. package/lib/typescript/module/src/web/ButtonGroup.d.ts.map +1 -0
  510. package/lib/typescript/module/src/web/DatePicker.d.ts +14 -0
  511. package/lib/typescript/module/src/web/DatePicker.d.ts.map +1 -0
  512. package/lib/typescript/module/src/web/DateRangePicker.d.ts +11 -0
  513. package/lib/typescript/module/src/web/DateRangePicker.d.ts.map +1 -0
  514. package/lib/typescript/module/src/web/Dialog.d.ts +12 -0
  515. package/lib/typescript/module/src/web/Dialog.d.ts.map +1 -0
  516. package/lib/typescript/module/src/web/FloatingActionButton.d.ts +8 -0
  517. package/lib/typescript/module/src/web/FloatingActionButton.d.ts.map +1 -0
  518. package/lib/typescript/module/src/web/Icon.d.ts +12 -0
  519. package/lib/typescript/module/src/web/Icon.d.ts.map +1 -0
  520. package/lib/typescript/module/src/web/NativeTheme.d.ts +10 -0
  521. package/lib/typescript/module/src/web/NativeTheme.d.ts.map +1 -0
  522. package/lib/typescript/module/src/web/NavigationRail.d.ts +8 -0
  523. package/lib/typescript/module/src/web/NavigationRail.d.ts.map +1 -0
  524. package/lib/typescript/module/src/web/PlatformComponentsProvider.d.ts +10 -0
  525. package/lib/typescript/module/src/web/PlatformComponentsProvider.d.ts.map +1 -0
  526. package/lib/typescript/module/src/web/SegmentedControl.d.ts +8 -0
  527. package/lib/typescript/module/src/web/SegmentedControl.d.ts.map +1 -0
  528. package/lib/typescript/module/src/web/SelectionMenu.d.ts +10 -0
  529. package/lib/typescript/module/src/web/SelectionMenu.d.ts.map +1 -0
  530. package/lib/typescript/module/src/web/SplitButton.d.ts +9 -0
  531. package/lib/typescript/module/src/web/SplitButton.d.ts.map +1 -0
  532. package/lib/typescript/module/src/web/TabBar.d.ts +9 -0
  533. package/lib/typescript/module/src/web/TabBar.d.ts.map +1 -0
  534. package/lib/typescript/module/src/web/TextField.d.ts +9 -0
  535. package/lib/typescript/module/src/web/TextField.d.ts.map +1 -0
  536. package/lib/typescript/module/src/web/components.d.ts +17 -0
  537. package/lib/typescript/module/src/web/components.d.ts.map +1 -0
  538. package/lib/typescript/module/src/web/containers.d.ts +24 -0
  539. package/lib/typescript/module/src/web/containers.d.ts.map +1 -0
  540. package/lib/typescript/module/src/web/dateInput.d.ts +20 -0
  541. package/lib/typescript/module/src/web/dateInput.d.ts.map +1 -0
  542. package/lib/typescript/module/src/web/shared.d.ts +43 -0
  543. package/lib/typescript/module/src/web/shared.d.ts.map +1 -0
  544. package/lib/typescript/module/src/webComponents.d.ts +43 -0
  545. package/lib/typescript/module/src/webComponents.d.ts.map +1 -0
  546. package/package.json +55 -4
  547. package/plugin/build/index.d.ts +3 -2
  548. package/plugin/build/index.d.ts.map +1 -1
  549. package/react-native.config.js +6 -0
  550. package/shared/PCButtonComponentDescriptors-custom.h +22 -0
  551. package/shared/PCButtonGroupComponentDescriptors-custom.h +22 -0
  552. package/shared/PCButtonGroupShadowNode-custom.cpp +48 -0
  553. package/shared/PCButtonGroupShadowNode-custom.h +55 -0
  554. package/shared/PCButtonGroupState-custom.h +61 -0
  555. package/shared/PCButtonShadowNode-custom.cpp +48 -0
  556. package/shared/PCButtonShadowNode-custom.h +55 -0
  557. package/shared/PCButtonState-custom.h +61 -0
  558. package/shared/PCFloatingActionButtonComponentDescriptors-custom.h +22 -0
  559. package/shared/PCFloatingActionButtonShadowNode-custom.cpp +48 -0
  560. package/shared/PCFloatingActionButtonShadowNode-custom.h +54 -0
  561. package/shared/PCFloatingActionButtonState-custom.h +61 -0
  562. package/shared/PCNavigationRailComponentDescriptors-custom.h +47 -0
  563. package/shared/PCNavigationRailShadowNode-custom.h +42 -0
  564. package/shared/PCNavigationRailState-custom.h +62 -0
  565. package/shared/PCTabBarComponentDescriptors-custom.h +22 -0
  566. package/shared/PCTabBarShadowNode-custom.cpp +54 -0
  567. package/shared/PCTabBarShadowNode-custom.h +54 -0
  568. package/shared/PCTabBarState-custom.h +62 -0
  569. package/shared/PCTextFieldComponentDescriptors-custom.h +22 -0
  570. package/shared/PCTextFieldShadowNode-custom.cpp +47 -0
  571. package/shared/PCTextFieldShadowNode-custom.h +55 -0
  572. package/shared/PCTextFieldState-custom.h +61 -0
  573. package/shared/react/renderer/components/PlatformComponentsViewSpec/ComponentDescriptors.h +6 -0
  574. package/src/Button.tsx +359 -0
  575. package/src/ButtonGroup.tsx +251 -0
  576. package/src/ButtonGroupNativeComponent.ts +191 -0
  577. package/src/ButtonNativeComponent.ts +192 -0
  578. package/src/ContextMenu.tsx +34 -81
  579. package/src/ContextMenuNativeComponent.ts +47 -49
  580. package/src/DatePicker.tsx +182 -4
  581. package/src/DatePickerNativeComponent.ts +19 -2
  582. package/src/FloatingActionButton.tsx +121 -0
  583. package/src/FloatingActionButtonNativeComponent.ts +58 -0
  584. package/src/FloatingToolbar.tsx +164 -0
  585. package/src/FloatingToolbarNativeComponent.ts +47 -0
  586. package/src/LiquidGlass.tsx +24 -1
  587. package/src/LiquidGlassContainer.tsx +42 -0
  588. package/src/LiquidGlassContainerNativeComponent.ts +17 -0
  589. package/src/LiquidGlassNativeComponent.ts +8 -0
  590. package/src/NavigationRail.tsx +203 -0
  591. package/src/NavigationRailNativeComponent.ts +107 -0
  592. package/src/PlatformComponentsProvider.tsx +15 -0
  593. package/src/SegmentedControl.tsx +57 -119
  594. package/src/SegmentedControlNativeComponent.ts +14 -0
  595. package/src/SelectionMenu.tsx +81 -6
  596. package/src/SelectionMenuNativeComponent.ts +26 -4
  597. package/src/SplitButton.tsx +198 -0
  598. package/src/TabBar.tsx +373 -0
  599. package/src/TabBarAccessoryNativeComponent.ts +19 -0
  600. package/src/TabBarNativeComponent.ts +145 -0
  601. package/src/TextField.tsx +908 -0
  602. package/src/TextFieldNativeComponent.ts +324 -0
  603. package/src/focusRegistry.ts +90 -0
  604. package/src/haptics.ts +31 -0
  605. package/src/icons.ts +143 -0
  606. package/src/index.tsx +13 -0
  607. package/src/index.web.tsx +53 -199
  608. package/src/jest.tsx +958 -0
  609. package/src/labelStyle.ts +36 -0
  610. package/src/menuItems.ts +152 -0
  611. package/src/reactNativeInternals.d.ts +22 -0
  612. package/src/selectionIdentifiers.ts +17 -0
  613. package/src/sharedTypes.ts +7 -1
  614. package/src/submitBehavior.ts +16 -0
  615. package/src/tabItems.ts +113 -0
  616. package/src/web/Button.tsx +201 -0
  617. package/src/web/ButtonGroup.tsx +154 -0
  618. package/src/web/DatePicker.tsx +204 -0
  619. package/src/web/DateRangePicker.tsx +135 -0
  620. package/src/web/Dialog.tsx +54 -0
  621. package/src/web/FloatingActionButton.tsx +76 -0
  622. package/src/web/Icon.tsx +33 -0
  623. package/src/web/NativeTheme.ts +23 -0
  624. package/src/web/NavigationRail.tsx +148 -0
  625. package/src/web/PlatformComponentsProvider.tsx +48 -0
  626. package/src/web/SegmentedControl.tsx +127 -0
  627. package/src/web/SelectionMenu.tsx +149 -0
  628. package/src/web/SplitButton.tsx +32 -0
  629. package/src/web/TabBar.tsx +150 -0
  630. package/src/web/TextField.tsx +361 -0
  631. package/src/web/components.tsx +71 -0
  632. package/src/web/containers.tsx +130 -0
  633. package/src/web/dateInput.ts +137 -0
  634. package/src/web/shared.ts +176 -0
  635. package/src/webComponents.ts +45 -0
  636. package/android/src/main/java/com/platformcomponents/DateConstraints.kt +0 -83
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_Icon","_shared","_jsxRuntime","e","__esModule","default","TabBar","props","items","selectedValue","onSelect","onReselect","labelVisibility","activeTintColor","inactiveTintColor","barColor","badgeStyle","labelStyle","maxFontSizeMultiplier","minimizeBehavior","scrollViewNativeID","accessory","onAccessoryEnvironmentChange","android","style","viewProps","primary","usePrimaryColor","activeColor","cssColor","inactiveColor","horizontal","itemLayout","indicatorRadius","indicatorShape","hasAccessory","undefined","bar","jsx","View","role","flexDirection","backgroundColor","children","slice","map","item","index","isSelected","value","color","showLabel","icon","selectedIcon","jsxs","testID","type","accessibilityLabel","label","disabled","onClick","flex","display","alignItems","justifyContent","gap","padding","border","fontFamily","fontSize","fontWeight","outlineColor","opacity","cursor","cssFont","position","borderRadius","indicator","indicatorColor","Icon","size","badge","top","right","minWidth","height","boxSizing","lineHeight","textAlign"],"sourceRoot":"../../../src","sources":["web/TabBar.tsx"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAGA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AAA8D,IAAAI,WAAA,GAAAJ,OAAA;AAAA,SAAAD,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAN9D;;AAQA;AACA;AACA;AACA;AACA;AACO,SAASG,MAAMA,CAACC,KAAkB,EAAsB;EAC7D,MAAM;IACJC,KAAK;IACLC,aAAa;IACbC,QAAQ;IACRC,UAAU;IACVC,eAAe,GAAG,MAAM;IACxBC,eAAe;IACfC,iBAAiB;IACjBC,QAAQ;IACRC,UAAU;IACVC,UAAU;IACVC,qBAAqB;IACrBC,gBAAgB;IAChBC,kBAAkB;IAClBC,SAAS;IACTC,4BAA4B;IAC5BC,OAAO;IACPC,KAAK;IACL,GAAGC;EACL,CAAC,GAAGlB,KAAK;EAET,MAAMmB,OAAO,GAAG,IAAAC,uBAAe,EAAC,CAAC;EACjC,MAAMC,WAAW,GAAG,IAAAC,gBAAQ,EAAChB,eAAe,CAAC,IAAIa,OAAO;EACxD,MAAMI,aAAa,GAAG,IAAAD,gBAAQ,EAACf,iBAAiB,CAAC,IAAI,UAAU;EAC/D,MAAMiB,UAAU,GAAGR,OAAO,EAAES,UAAU,KAAK,YAAY;EACvD,MAAMC,eAAe,GACnB,OAAOV,OAAO,EAAEW,cAAc,KAAK,QAAQ,GAAGX,OAAO,CAACW,cAAc,GA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+ value: true
5
+ });
6
+ exports.TextField = void 0;
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ var _reactNative = require("react-native");
9
+ var _submitBehavior = require("../submitBehavior");
10
+ var _Icon = require("./Icon");
11
+ var _shared = require("./shared");
12
+ var _jsxRuntime = require("react/jsx-runtime");
13
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
14
+ // web/TextField.tsx
15
+
16
+ const ERROR_COLOR = '#B3261E';
17
+ const MUTED_COLOR = 'rgba(128, 128, 128, 1)';
18
+ const OUTLINE_COLOR = 'rgba(128, 128, 128, 0.5)';
19
+ function textEvent(text) {
20
+ return {
21
+ nativeEvent: {
22
+ text
23
+ }
24
+ };
25
+ }
26
+
27
+ /**
28
+ * A text input with the TextField extras around it: a label above, prefix and
29
+ * suffix, icons, a clear button, a password toggle, and supporting, error and
30
+ * counter text below.
31
+ */
32
+ const TextField = exports.TextField = /*#__PURE__*/(0, _react.forwardRef)(function TextFieldComponent(props, ref) {
33
+ const {
34
+ value,
35
+ defaultValue,
36
+ onChangeText,
37
+ onChange,
38
+ onFocus,
39
+ onBlur,
40
+ onSubmitEditing,
41
+ submitBehavior,
42
+ onSelectionChange,
43
+ selection,
44
+ label,
45
+ placeholder,
46
+ supportingText,
47
+ error,
48
+ prefix,
49
+ suffix,
50
+ leadingIcon,
51
+ trailingIcon,
52
+ onTrailingIconPress,
53
+ leadingIconTestID,
54
+ leadingIconAccessibilityLabel,
55
+ trailingIconTestID,
56
+ trailingIconAccessibilityLabel,
57
+ onPress,
58
+ activeColor,
59
+ outlineColor,
60
+ errorColor,
61
+ containerColor,
62
+ textColor,
63
+ placeholderTextColor,
64
+ maxFontSizeMultiplier,
65
+ textAlign,
66
+ minLines,
67
+ maxLines,
68
+ clearButtonMode = 'never',
69
+ passwordToggle,
70
+ showCharacterCount,
71
+ maxLength,
72
+ keyboardType,
73
+ returnKeyType,
74
+ autoCapitalize,
75
+ autoCorrect,
76
+ secureTextEntry,
77
+ multiline,
78
+ editable = true,
79
+ autoFocus,
80
+ selectTextOnFocus,
81
+ autoComplete,
82
+ keyboardAppearance,
83
+ textStyle,
84
+ accessibilityLabel,
85
+ ios,
86
+ android,
87
+ style,
88
+ testID,
89
+ ...viewProps
90
+ } = props;
91
+ const primary = (0, _shared.usePrimaryColor)();
92
+ const inputRef = (0, _react.useRef)(null);
93
+ const eventCount = (0, _react.useRef)(0);
94
+ const [uncontrolledText, setUncontrolledText] = (0, _react.useState)(defaultValue ?? '');
95
+ const [focused, setFocused] = (0, _react.useState)(false);
96
+ const [revealed, setRevealed] = (0, _react.useState)(false);
97
+ const text = value ?? uncontrolledText;
98
+ const errorText = typeof error === 'string' ? error : undefined;
99
+ const invalid = error !== undefined && error !== false && error !== '';
100
+ const changeText = next => {
101
+ setUncontrolledText(next);
102
+ eventCount.current += 1;
103
+ onChangeText?.(next);
104
+ onChange?.({
105
+ nativeEvent: {
106
+ text: next,
107
+ eventCount: eventCount.current
108
+ }
109
+ });
110
+ };
111
+ (0, _react.useImperativeHandle)(ref, () => ({
112
+ focus: () => inputRef.current?.focus(),
113
+ blur: () => inputRef.current?.blur(),
114
+ clear: () => changeText(''),
115
+ isFocused: () => inputRef.current?.isFocused() ?? false,
116
+ setSelection: (start, end) => {
117
+ // react-native-web's TextInput ref is the DOM input
118
+ const node = inputRef.current;
119
+ node?.setSelectionRange?.(start, end ?? start);
120
+ }
121
+ }));
122
+
123
+ // The keyboard toolbar and password rules are iOS only
124
+ const returnKey = (0, _submitBehavior.resolveSubmitBehavior)(submitBehavior, multiline);
125
+ // react-native-web submits a multi-line field only when it also blurs;
126
+ // Enter without Shift submits one that keeps focus
127
+ const submitsOnEnter = multiline && returnKey === 'submit';
128
+ const showClear = editable && text.length > 0 && (clearButtonMode === 'always' || clearButtonMode === 'while-editing' && focused || clearButtonMode === 'unless-editing' && !focused);
129
+ const errorTint = errorColor ?? ERROR_COLOR;
130
+ const accent = invalid ? errorTint : focused ? activeColor ?? primary : undefined;
131
+ // A read-only field with onPress acts as a button
132
+ const actsAsButton = !editable && onPress != null;
133
+ // A disabled Pressable marks every focusable descendant aria-disabled.
134
+ // Editable inputs need a neutral container, including their icon actions.
135
+ // https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-disabled
136
+ const FieldContainer = actsAsButton ? _reactNative.Pressable : _reactNative.View;
137
+ const lineHeight = (textStyle?.fontSize ?? 16) * 1.25;
138
+ const bottomText = errorText ?? supportingText;
139
+ const counter = showCharacterCount ? maxLength !== undefined ? `${text.length} / ${maxLength}` : `${text.length}` : undefined;
140
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
141
+ ...viewProps,
142
+ style: [{
143
+ gap: 4
144
+ }, style],
145
+ children: [label ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
146
+ style: {
147
+ fontSize: 13,
148
+ color: accent ?? MUTED_COLOR
149
+ },
150
+ children: label
151
+ }) : null, /*#__PURE__*/(0, _jsxRuntime.jsxs)(FieldContainer, {
152
+ onPress: actsAsButton ? onPress : undefined,
153
+ accessibilityLabel: actsAsButton ? accessibilityLabel ?? label : undefined,
154
+ role: actsAsButton ? 'button' : undefined,
155
+ style: {
156
+ flexDirection: 'row',
157
+ alignItems: multiline ? 'flex-start' : 'center',
158
+ gap: 8,
159
+ minHeight: 40,
160
+ paddingHorizontal: 12,
161
+ borderWidth: 1,
162
+ borderRadius: 8,
163
+ borderColor: accent ?? outlineColor ?? OUTLINE_COLOR,
164
+ backgroundColor: containerColor,
165
+ opacity: editable || actsAsButton ? 1 : 0.6,
166
+ cursor: actsAsButton ? 'pointer' : undefined
167
+ },
168
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
169
+ testID: leadingIconTestID,
170
+ accessibilityLabel: leadingIconAccessibilityLabel,
171
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
172
+ icon: leadingIcon,
173
+ color: MUTED_COLOR
174
+ })
175
+ }), prefix ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
176
+ style: {
177
+ color: MUTED_COLOR
178
+ },
179
+ children: prefix
180
+ }) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TextInput, {
181
+ ref: inputRef,
182
+ testID: testID,
183
+ value: text,
184
+ onChangeText: changeText,
185
+ onFocus: () => {
186
+ setFocused(true);
187
+ onFocus?.(textEvent(text));
188
+ },
189
+ onBlur: () => {
190
+ setFocused(false);
191
+ onBlur?.(textEvent(text));
192
+ },
193
+ onSubmitEditing: multiline && returnKey !== 'blurAndSubmit' ? undefined : () => onSubmitEditing?.(textEvent(text)),
194
+ submitBehavior: returnKey,
195
+ blurOnSubmit: returnKey === 'blurAndSubmit',
196
+ onKeyPress: submitsOnEnter ? event => {
197
+ const {
198
+ key,
199
+ shiftKey
200
+ } = event.nativeEvent;
201
+ if (key !== 'Enter' || shiftKey) return;
202
+ event.preventDefault();
203
+ onSubmitEditing?.(textEvent(text));
204
+ } : undefined,
205
+ selection: selection ? {
206
+ start: selection.start,
207
+ end: selection.end ?? selection.start
208
+ } : undefined,
209
+ onSelectionChange: onSelectionChange,
210
+ placeholder: placeholder,
211
+ placeholderTextColor: placeholderTextColor,
212
+ maxLength: maxLength,
213
+ keyboardType: keyboardType,
214
+ returnKeyType: returnKeyType === 'none' ? undefined : returnKeyType,
215
+ autoCapitalize: autoCapitalize,
216
+ autoCorrect: autoCorrect,
217
+ secureTextEntry: secureTextEntry && !revealed,
218
+ multiline: multiline,
219
+ numberOfLines: multiline ? minLines : undefined,
220
+ editable: editable,
221
+ pointerEvents: actsAsButton ? 'none' : undefined,
222
+ tabIndex: actsAsButton ? -1 : undefined,
223
+ autoFocus: autoFocus,
224
+ selectTextOnFocus: selectTextOnFocus,
225
+ autoComplete: autoComplete,
226
+ accessibilityLabel: accessibilityLabel ?? label,
227
+ "aria-invalid": invalid,
228
+ style: {
229
+ flex: 1,
230
+ minWidth: 0,
231
+ paddingVertical: 8,
232
+ maxHeight: multiline && maxLines ? lineHeight * maxLines + 16 : undefined,
233
+ textAlign,
234
+ color: textColor,
235
+ fontSize: textStyle?.fontSize ?? 16,
236
+ fontFamily: textStyle?.fontFamily,
237
+ fontWeight: textStyle?.fontWeight,
238
+ fontStyle: textStyle?.fontStyle,
239
+ outlineWidth: 0
240
+ }
241
+ }), suffix ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
242
+ style: {
243
+ color: MUTED_COLOR
244
+ },
245
+ children: suffix
246
+ }) : null, showClear ? /*#__PURE__*/(0, _jsxRuntime.jsx)(FieldButton, {
247
+ label: "Clear text",
248
+ onPress: () => changeText(''),
249
+ children: "\u2715"
250
+ }) : null, passwordToggle ? /*#__PURE__*/(0, _jsxRuntime.jsx)(FieldButton, {
251
+ label: revealed ? 'Hide password' : 'Show password',
252
+ onPress: () => setRevealed(r => !r),
253
+ children: revealed ? 'Hide' : 'Show'
254
+ }) : null, trailingIcon ? onTrailingIconPress ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
255
+ role: "button",
256
+ testID: trailingIconTestID,
257
+ accessibilityLabel: trailingIconAccessibilityLabel,
258
+ onPress: onTrailingIconPress,
259
+ style: {
260
+ padding: 4
261
+ },
262
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
263
+ icon: trailingIcon,
264
+ color: MUTED_COLOR
265
+ })
266
+ }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
267
+ testID: trailingIconTestID,
268
+ accessibilityLabel: trailingIconAccessibilityLabel,
269
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
270
+ icon: trailingIcon,
271
+ color: MUTED_COLOR
272
+ })
273
+ }) : null]
274
+ }), bottomText || counter ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
275
+ style: {
276
+ flexDirection: 'row',
277
+ gap: 8
278
+ },
279
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
280
+ style: {
281
+ flex: 1,
282
+ fontSize: 12,
283
+ color: errorText ? errorTint : MUTED_COLOR
284
+ },
285
+ children: bottomText ?? ''
286
+ }), counter ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
287
+ style: {
288
+ fontSize: 12,
289
+ color: MUTED_COLOR
290
+ },
291
+ children: counter
292
+ }) : null]
293
+ }) : null]
294
+ });
295
+ });
296
+ function FieldButton({
297
+ label,
298
+ onPress,
299
+ children
300
+ }) {
301
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
302
+ type: "button",
303
+ "aria-label": label
304
+ // Keep focus in the input, so a clear button shown only while editing
305
+ // is still there when the click lands.
306
+ ,
307
+ onMouseDown: event => event.preventDefault(),
308
+ onClick: onPress,
309
+ style: {
310
+ padding: '4px 6px',
311
+ border: 'none',
312
+ borderRadius: 4,
313
+ fontFamily: 'inherit',
314
+ fontSize: 13,
315
+ color: MUTED_COLOR,
316
+ backgroundColor: 'transparent',
317
+ cursor: 'pointer'
318
+ },
319
+ children: children
320
+ });
321
+ }
322
+ //# sourceMappingURL=TextField.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_submitBehavior","_Icon","_shared","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","ERROR_COLOR","MUTED_COLOR","OUTLINE_COLOR","textEvent","text","nativeEvent","TextField","exports","forwardRef","TextFieldComponent","props","ref","value","defaultValue","onChangeText","onChange","onFocus","onBlur","onSubmitEditing","submitBehavior","onSelectionChange","selection","label","placeholder","supportingText","error","prefix","suffix","leadingIcon","trailingIcon","onTrailingIconPress","leadingIconTestID","leadingIconAccessibilityLabel","trailingIconTestID","trailingIconAccessibilityLabel","onPress","activeColor","outlineColor","errorColor","containerColor","textColor","placeholderTextColor","maxFontSizeMultiplier","textAlign","minLines","maxLines","clearButtonMode","passwordToggle","showCharacterCount","maxLength","keyboardType","returnKeyType","autoCapitalize","autoCorrect","secureTextEntry","multiline","editable","autoFocus","selectTextOnFocus","autoComplete","keyboardAppearance","textStyle","accessibilityLabel","ios","android","style","testID","viewProps","primary","usePrimaryColor","inputRef","useRef","eventCount","uncontrolledText","setUncontrolledText","useState","focused","setFocused","revealed","setRevealed","errorText","undefined","invalid","changeText","next","current","useImperativeHandle","focus","blur","clear","isFocused","setSelection","start","end","node","setSelectionRange","returnKey","resolveSubmitBehavior","submitsOnEnter","showClear","length","errorTint","accent","actsAsButton","FieldContainer","Pressable","View","lineHeight","fontSize","bottomText","counter","jsxs","gap","children","jsx","Text","color","role","flexDirection","alignItems","minHeight","paddingHorizontal","borderWidth","borderRadius","borderColor","backgroundColor","opacity","cursor","Icon","icon","TextInput","blurOnSubmit","onKeyPress","event","key","shiftKey","preventDefault","numberOfLines","pointerEvents","tabIndex","flex","minWidth","paddingVertical","maxHeight","fontFamily","fontWeight","fontStyle","outlineWidth","FieldButton","padding","type","onMouseDown","onClick","border"],"sourceRoot":"../../../src","sources":["web/TextField.tsx"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAMA,IAAAC,YAAA,GAAAD,OAAA;AAQA,IAAAE,eAAA,GAAAF,OAAA;AACA,IAAAG,KAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AAA2C,IAAAK,WAAA,GAA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ineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.TextField = exports.TabBar = exports.SplitButton = exports.SelectionMenu = exports.SegmentedControl = exports.NavigationRail = exports.LiquidGlassContainer = exports.LiquidGlass = exports.FloatingToolbar = exports.FloatingActionButton = exports.DateRangePicker = exports.DatePicker = exports.ContextMenu = exports.ButtonGroup = exports.Button = void 0;
7
+ var _PlatformComponentsProvider = require("./PlatformComponentsProvider");
8
+ var _Button = require("./Button");
9
+ var _ButtonGroup = require("./ButtonGroup");
10
+ var _SplitButton = require("./SplitButton");
11
+ var _DatePicker = require("./DatePicker");
12
+ var _DateRangePicker = require("./DateRangePicker");
13
+ var _FloatingActionButton = require("./FloatingActionButton");
14
+ var _NavigationRail = require("./NavigationRail");
15
+ var _SegmentedControl = require("./SegmentedControl");
16
+ var _SelectionMenu = require("./SelectionMenu");
17
+ var _TabBar = require("./TabBar");
18
+ var _TextField = require("./TextField");
19
+ var _containers = require("./containers");
20
+ // Explicit types keep published declarations tied to a resolvable type import.
21
+ const Button = exports.Button = (0, _PlatformComponentsProvider.withWebComponent)('Button', _Button.Button);
22
+ const ButtonGroup = exports.ButtonGroup = (0, _PlatformComponentsProvider.withWebComponent)('ButtonGroup', _ButtonGroup.ButtonGroup);
23
+ const SplitButton = exports.SplitButton = (0, _PlatformComponentsProvider.withWebComponent)('SplitButton', _SplitButton.SplitButton);
24
+ const DatePicker = exports.DatePicker = (0, _PlatformComponentsProvider.withWebComponent)('DatePicker', _DatePicker.DatePicker);
25
+ const DateRangePicker = exports.DateRangePicker = (0, _PlatformComponentsProvider.withWebComponent)('DateRangePicker', _DateRangePicker.DateRangePicker);
26
+ const FloatingActionButton = exports.FloatingActionButton = (0, _PlatformComponentsProvider.withWebComponent)('FloatingActionButton', _FloatingActionButton.FloatingActionButton);
27
+ const NavigationRail = exports.NavigationRail = (0, _PlatformComponentsProvider.withWebComponent)('NavigationRail', _NavigationRail.NavigationRail);
28
+ const SegmentedControl = exports.SegmentedControl = (0, _PlatformComponentsProvider.withWebComponent)('SegmentedControl', _SegmentedControl.SegmentedControl);
29
+ const SelectionMenu = exports.SelectionMenu = (0, _PlatformComponentsProvider.withWebComponent)('SelectionMenu', _SelectionMenu.SelectionMenu);
30
+ const TabBar = exports.TabBar = (0, _PlatformComponentsProvider.withWebComponent)('TabBar', _TabBar.TabBar);
31
+ const TextField = exports.TextField = (0, _PlatformComponentsProvider.withWebComponent)('TextField', _TextField.TextField);
32
+ const ContextMenu = exports.ContextMenu = (0, _PlatformComponentsProvider.withWebComponent)('ContextMenu', _containers.ContextMenu);
33
+ const FloatingToolbar = exports.FloatingToolbar = (0, _PlatformComponentsProvider.withWebComponent)('FloatingToolbar', _containers.FloatingToolbar);
34
+ const LiquidGlass = exports.LiquidGlass = (0, _PlatformComponentsProvider.withWebComponent)('LiquidGlass', _containers.LiquidGlass);
35
+ const LiquidGlassContainer = exports.LiquidGlassContainer = (0, _PlatformComponentsProvider.withWebComponent)('LiquidGlassContainer', _containers.LiquidGlassContainer);
36
+ //# sourceMappingURL=components.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_PlatformComponentsProvider","require","_Button","_ButtonGroup","_SplitButton","_DatePicker","_DateRangePicker","_FloatingActionButton","_NavigationRail","_SegmentedControl","_SelectionMenu","_TabBar","_TextField","_containers","Button","exports","withWebComponent","DefaultButton","ButtonGroup","DefaultButtonGroup","SplitButton","DefaultSplitButton","DatePicker","DefaultDatePicker","DateRangePicker","DefaultDateRangePicker","FloatingActionButton","DefaultFloatingActionButton","NavigationRail","DefaultNavigationRail","SegmentedControl","DefaultSegmentedControl","SelectionMenu","DefaultSelectionMenu","TabBar","DefaultTabBar","TextField","DefaultTextField","ContextMenu","DefaultContextMenu","FloatingToolbar","DefaultFloatingToolbar","LiquidGlass","DefaultLiquidGlass","LiquidGlassContainer","DefaultLiquidGlassContainer"],"sourceRoot":"../../../src","sources":["web/components.tsx"],"mappings":";;;;;;AAAA,IAAAA,2BAAA,GAAAC,OAAA;AAE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AA,CAAAiB,aAAA,GAAG,IAAAhB,4CAAgB,EAC3E,eAAe,EACfiB,4BACF,CAAC;AACM,MAAMC,MAA+B,GAAAnB,OAAA,CAAAmB,MAAA,GAAG,IAAAlB,4CAAgB,EAC7D,QAAQ,EACRmB,cACF,CAAC;AACM,MAAMC,SAAqC,GAAArB,OAAA,CAAAqB,SAAA,GAAG,IAAApB,4CAAgB,EACnE,WAAW,EACXqB,oBACF,CAAC;AACM,MAAMC,WAAyC,GAAAvB,OAAA,CAAAuB,WAAA,GAAG,IAAAtB,4CAAgB,EACvE,aAAa,EACbuB,uBACF,CAAC;AACM,MAAMC,eAAiD,GAAAzB,OAAA,CAAAyB,eAAA,GAC5D,IAAAxB,4CAAgB,EAAC,iBAAiB,EAAEyB,2BAAsB,CAAC;AACtD,MAAMC,WAAyC,GAAA3B,OAAA,CAAA2B,WAAA,GAAG,IAAA1B,4CAAgB,EACvE,aAAa,EACb2B,uBACF,CAAC;AACM,MAAMC,oBAA2D,GAAA7B,OAAA,CAAA6B,oBAAA,GACtE,IAAA5B,4CAAgB,EAAC,sBAAsB,EAAE6B,gCAA2B,CAAC","ignoreList":[]}
@@ -0,0 +1,121 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.ContextMenu = ContextMenu;
7
+ exports.FloatingToolbar = FloatingToolbar;
8
+ exports.LiquidGlass = LiquidGlass;
9
+ exports.LiquidGlassContainer = LiquidGlassContainer;
10
+ exports.isLiquidGlassSupported = void 0;
11
+ var _react = _interopRequireDefault(require("react"));
12
+ var _reactNative = require("react-native");
13
+ var _shared = require("./shared");
14
+ var _jsxRuntime = require("react/jsx-runtime");
15
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
16
+ // web/containers.tsx
17
+ //
18
+ // The components that wrap children: ContextMenu, FloatingToolbar,
19
+ // LiquidGlass and LiquidGlassContainer. They keep their layout on web and
20
+ // render their children.
21
+
22
+ /**
23
+ * Renders its children without a menu: browsers have no native menu to
24
+ * attach. Provide a web menu with a `.web.tsx` file in your app.
25
+ */
26
+ function ContextMenu(props) {
27
+ const {
28
+ title,
29
+ actions,
30
+ disabled,
31
+ trigger,
32
+ onPressAction,
33
+ onMenuOpen,
34
+ onMenuClose,
35
+ onPreviewPress,
36
+ ios,
37
+ android,
38
+ children,
39
+ ...viewProps
40
+ } = props;
41
+ (0, _shared.warnOnce)('ContextMenu', 'ContextMenu has no web implementation; its children render without a menu. ' + 'See https://jarx-concepts.github.io/react-native-platform-components/guides/web');
42
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
43
+ ...viewProps,
44
+ children: children
45
+ });
46
+ }
47
+
48
+ /**
49
+ * A pill-shaped surface that lays out its children in a row or column. It
50
+ * doesn't follow a linked ScrollView (`scrollViewNativeID`, `hideOnScroll`).
51
+ */
52
+ function FloatingToolbar(props) {
53
+ const {
54
+ orientation = 'horizontal',
55
+ color,
56
+ scrollViewNativeID,
57
+ hideOnScroll,
58
+ ios,
59
+ android,
60
+ children,
61
+ style,
62
+ ...viewProps
63
+ } = props;
64
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
65
+ ...viewProps,
66
+ style: [{
67
+ flexDirection: orientation === 'vertical' ? 'column' : 'row',
68
+ alignItems: 'center',
69
+ alignSelf: 'flex-start',
70
+ gap: 4,
71
+ padding: 8,
72
+ borderRadius: 32,
73
+ backgroundColor: color ?? 'rgba(128, 128, 128, 0.16)',
74
+ // @ts-expect-error: react-native-web style
75
+ backdropFilter: 'blur(20px)'
76
+ }, style],
77
+ children: children
78
+ });
79
+ }
80
+
81
+ /**
82
+ * A plain view: Liquid Glass is iOS 26 only, so `isLiquidGlassSupported` is
83
+ * `false` on web, as on Android.
84
+ */
85
+ function LiquidGlass(props) {
86
+ const {
87
+ cornerRadius,
88
+ cornerStyle,
89
+ ios,
90
+ android,
91
+ children,
92
+ style,
93
+ ...viewProps
94
+ } = props;
95
+
96
+ // A capsule is fully rounded; concentric corners use cornerRadius
97
+ const radius = cornerStyle === 'capsule' ? 9999 : typeof cornerStyle === 'number' ? cornerStyle : cornerRadius;
98
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
99
+ ...viewProps,
100
+ style: [radius ? {
101
+ borderRadius: radius,
102
+ overflow: 'hidden'
103
+ } : null, style],
104
+ children: children
105
+ });
106
+ }
107
+
108
+ /** A plain view: glass only merges on iOS 26. */
109
+ function LiquidGlassContainer(props) {
110
+ const {
111
+ spacing,
112
+ children,
113
+ ...viewProps
114
+ } = props;
115
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
116
+ ...viewProps,
117
+ children: children
118
+ });
119
+ }
120
+ const isLiquidGlassSupported = exports.isLiquidGlassSupported = false;
121
+ //# sourceMappingURL=containers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_shared","_jsxRuntime","e","__esModule","default","ContextMenu","props","title","actions","disabled","trigger","onPressAction","onMenuOpen","onMenuClose","onPreviewPress","ios","android","children","viewProps","warnOnce","jsx","View","FloatingToolbar","orientation","color","scrollViewNativeID","hideOnScroll","style","flexDirection","alignItems","alignSelf","gap","padding","borderRadius","backgroundColor","backdropFilter","LiquidGlass","cornerRadius","cornerStyle","radius","overflow","LiquidGlassContainer","spacing","isLiquidGlassSupported","exports"],"sourceRoot":"../../../src","sources":["web/containers.tsx"],"mappings":";;;;;;;;;;AAKA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAMA,IAAAE,OAAA,GAAAF,OAAA;AAAoC,IAAAG,WAAA,GAAAH,OAAA;AAAA,SAAAD,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAZpC;AACA;AACA;AACA;AACA;;AAUA;AACA;AACA;AACA;AACO,SAASG,WAAWA,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ACL,CAAC,GAAGZ,KAAK;;EAET;EACA,MAAMiC,MAAM,GACVD,WAAW,KAAK,SAAS,GACrB,IAAI,GACJ,OAAOA,WAAW,KAAK,QAAQ,GAC7BA,WAAW,GACXD,YAAY;EAEpB,oBACE,IAAApC,WAAA,CAAAmB,GAAA,EAACrB,YAAA,CAAAsB,IAAI;IAAA,GACCH,SAAS;IACbS,KAAK,EAAE,CACLY,MAAM,GAAG;MAAEN,YAAY,EAAEM,MAAM;MAAEC,QAAQ,EAAE;IAAS,CAAC,GAAG,IAAI,EAC5Db,KAAK,CACL;IAAAV,QAAA,EAEDA;EAAQ,CACL,CAAC;AAEX;;AAEA;AACO,SAASwB,oBAAoBA,CAClCnC,KAAgC,EACZ;EACpB,MAAM;IAAEoC,OAAO;IAAEzB,QAAQ;IAAE,GAAGC;EAAU,CAAC,GAAGZ,KAAK;EACjD,oBAAO,IAAAL,WAAA,CAAAmB,GAAA,EAACrB,YAAA,CAAAsB,IAAI;IAAA,GAAKH,SAAS;IAAAD,QAAA,EAAGA;EAAQ,CAAO,CAAC;AAC/C;AAEO,MAAM0B,sBAAsB,GAAAC,OAAA,CAAAD,sBAAA,GAAG,KAAK","ignoreList":[]}
@@ -0,0 +1,116 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.formatInputValue = formatInputValue;
7
+ exports.inputTypeForMode = inputTypeForMode;
8
+ exports.isWithinInputBounds = isWithinInputBounds;
9
+ exports.parseInputValue = parseInputValue;
10
+ // web/dateInput.ts
11
+ //
12
+ // Conversions between `Date` and the value strings of the browser's date and
13
+ // time inputs, in local time.
14
+
15
+ /** The `<input type>`s the pickers use. */
16
+
17
+ /** The `<input type>` for a picker mode. */
18
+ function inputTypeForMode(mode) {
19
+ switch (mode) {
20
+ case 'time':
21
+ case 'countDownTimer':
22
+ return 'time';
23
+ case 'dateAndTime':
24
+ return 'datetime-local';
25
+ case 'yearAndMonth':
26
+ return 'month';
27
+ default:
28
+ return 'date';
29
+ }
30
+ }
31
+ const pad = (n, width = 2) => String(n).padStart(width, '0');
32
+
33
+ /** Formats `date` as the value of an input of `type`; `''` for no date. */
34
+ function formatInputValue(date, type) {
35
+ if (!date || !Number.isFinite(date.getTime())) return '';
36
+ const month = `${pad(date.getFullYear(), 4)}-${pad(date.getMonth() + 1)}`;
37
+ const day = `${month}-${pad(date.getDate())}`;
38
+ const time = `${pad(date.getHours())}:${pad(date.getMinutes())}`;
39
+ if (type === 'month') return month;
40
+ if (type === 'date') return day;
41
+ if (type === 'time') return time;
42
+ return `${day}T${time}`;
43
+ }
44
+
45
+ /**
46
+ * Parses an input value back into a `Date`. Parts the input doesn't show are
47
+ * kept from `base` (the time of day for a date input, the day for a time
48
+ * input); a month input gives the first of the month. Returns `null` for an
49
+ * empty or invalid value.
50
+ */
51
+ function parseInputValue(value, type, base) {
52
+ const hasBase = base && Number.isFinite(base.getTime());
53
+ const result = hasBase ? new Date(base.getTime()) : new Date();
54
+ if (!hasBase) result.setHours(0, 0, 0, 0);
55
+ if (type === 'month') {
56
+ const monthMatch = /^(\d{4,})-(\d{2})$/.exec(value);
57
+ if (!monthMatch) return null;
58
+ const year = Number(monthMatch[1]);
59
+ const month = Number(monthMatch[2]);
60
+ if (year < 1 || month < 1 || month > 12) return null;
61
+ result.setFullYear(year, month - 1, 1);
62
+ return Number.isFinite(result.getTime()) ? result : null;
63
+ }
64
+ const dayMatch = type === 'date' ? /^(\d{4,})-(\d{2})-(\d{2})$/.exec(value) : /^(\d{4,})-(\d{2})-(\d{2})T\d{2}:\d{2}(?::\d{2})?$/.exec(value);
65
+ const timeMatch = /(?:^|T)(\d{2}):(\d{2})(?::(\d{2}))?$/.exec(value);
66
+ if (type !== 'time') {
67
+ if (!dayMatch) return null;
68
+ const year = Number(dayMatch[1]);
69
+ const month = Number(dayMatch[2]);
70
+ const day = Number(dayMatch[3]);
71
+ if (year < 1 || month < 1 || month > 12 || day < 1 || day > 31) {
72
+ return null;
73
+ }
74
+ result.setFullYear(year, month - 1, day);
75
+ // Date setters normalize impossible dates (February 30 becomes March 2).
76
+ if (result.getFullYear() !== year || result.getMonth() !== month - 1 || result.getDate() !== day) {
77
+ return null;
78
+ }
79
+ }
80
+ if (type !== 'date') {
81
+ if (!timeMatch) return null;
82
+ if (type === 'time' && !/^\d{2}:\d{2}(?::\d{2})?$/.test(value)) {
83
+ return null;
84
+ }
85
+ const hours = Number(timeMatch[1]);
86
+ const minutes = Number(timeMatch[2]);
87
+ const seconds = Number(timeMatch[3] ?? 0);
88
+ if (hours > 23 || minutes > 59 || seconds > 59) return null;
89
+ result.setHours(hours, minutes, seconds, 0);
90
+ }
91
+ return Number.isFinite(result.getTime()) ? result : null;
92
+ }
93
+
94
+ /** Compare only the date/time fields the input displays, like its min/max. */
95
+ function inputValueNumber(date, type) {
96
+ if (type === 'month') return date.getFullYear() * 12 + date.getMonth();
97
+ if (type === 'time') return date.getHours() * 60 + date.getMinutes();
98
+ const result = new Date(date.getTime());
99
+ if (type === 'date') result.setHours(0, 0, 0, 0);else result.setSeconds(0, 0);
100
+ return result.getTime();
101
+ }
102
+
103
+ /**
104
+ * Bounds also apply to typed values and the modal's initial selection. HTML
105
+ * inputs report constraint violations but don't prevent a button callback.
106
+ */
107
+ function isWithinInputBounds(date, type, minDate, maxDate) {
108
+ if (!date || !Number.isFinite(date.getTime())) return false;
109
+ const value = inputValueNumber(date, type);
110
+ const min = minDate ? inputValueNumber(minDate, type) : NaN;
111
+ const max = maxDate ? inputValueNumber(maxDate, type) : NaN;
112
+ // Time inputs have a periodic domain: 23:00–01:00 spans midnight.
113
+ if (type === 'time' && min > max) return value >= min || value <= max;
114
+ return (!Number.isFinite(min) || value >= min) && (!Number.isFinite(max) || value <= max);
115
+ }
116
+ //# sourceMappingURL=dateInput.js.map