fluentglass 0.2.6

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 (414) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +169 -0
  3. package/lib/commonjs/assets/fonts/Inter-Black.ttf +0 -0
  4. package/lib/commonjs/assets/fonts/Inter-Bold.ttf +0 -0
  5. package/lib/commonjs/assets/fonts/Inter-ExtraBold.ttf +0 -0
  6. package/lib/commonjs/assets/fonts/Inter-Medium.ttf +0 -0
  7. package/lib/commonjs/assets/fonts/Inter-Regular.ttf +0 -0
  8. package/lib/commonjs/assets/fonts/Inter-SemiBold.ttf +0 -0
  9. package/lib/commonjs/components/FluentGlass.js +94 -0
  10. package/lib/commonjs/components/FluentGlass.js.map +1 -0
  11. package/lib/commonjs/components/FluentGlassAlert.js +126 -0
  12. package/lib/commonjs/components/FluentGlassAlert.js.map +1 -0
  13. package/lib/commonjs/components/FluentGlassBadge.js +124 -0
  14. package/lib/commonjs/components/FluentGlassBadge.js.map +1 -0
  15. package/lib/commonjs/components/FluentGlassBarChart.js +287 -0
  16. package/lib/commonjs/components/FluentGlassBarChart.js.map +1 -0
  17. package/lib/commonjs/components/FluentGlassBreadcrumb.js +155 -0
  18. package/lib/commonjs/components/FluentGlassBreadcrumb.js.map +1 -0
  19. package/lib/commonjs/components/FluentGlassButton.js +175 -0
  20. package/lib/commonjs/components/FluentGlassButton.js.map +1 -0
  21. package/lib/commonjs/components/FluentGlassCalendarWidget.js +73 -0
  22. package/lib/commonjs/components/FluentGlassCalendarWidget.js.map +1 -0
  23. package/lib/commonjs/components/FluentGlassCard.js +195 -0
  24. package/lib/commonjs/components/FluentGlassCard.js.map +1 -0
  25. package/lib/commonjs/components/FluentGlassCheckbox.js +121 -0
  26. package/lib/commonjs/components/FluentGlassCheckbox.js.map +1 -0
  27. package/lib/commonjs/components/FluentGlassClockWidget.js +80 -0
  28. package/lib/commonjs/components/FluentGlassClockWidget.js.map +1 -0
  29. package/lib/commonjs/components/FluentGlassCodeBlock.js +239 -0
  30. package/lib/commonjs/components/FluentGlassCodeBlock.js.map +1 -0
  31. package/lib/commonjs/components/FluentGlassContainer.js +52 -0
  32. package/lib/commonjs/components/FluentGlassContainer.js.map +1 -0
  33. package/lib/commonjs/components/FluentGlassCrossfade.js +118 -0
  34. package/lib/commonjs/components/FluentGlassCrossfade.js.map +1 -0
  35. package/lib/commonjs/components/FluentGlassDateInput.js +176 -0
  36. package/lib/commonjs/components/FluentGlassDateInput.js.map +1 -0
  37. package/lib/commonjs/components/FluentGlassDatePicker.js +271 -0
  38. package/lib/commonjs/components/FluentGlassDatePicker.js.map +1 -0
  39. package/lib/commonjs/components/FluentGlassDialog.js +169 -0
  40. package/lib/commonjs/components/FluentGlassDialog.js.map +1 -0
  41. package/lib/commonjs/components/FluentGlassDock.js +187 -0
  42. package/lib/commonjs/components/FluentGlassDock.js.map +1 -0
  43. package/lib/commonjs/components/FluentGlassDropdown.js +349 -0
  44. package/lib/commonjs/components/FluentGlassDropdown.js.map +1 -0
  45. package/lib/commonjs/components/FluentGlassEmailInput.js +43 -0
  46. package/lib/commonjs/components/FluentGlassEmailInput.js.map +1 -0
  47. package/lib/commonjs/components/FluentGlassInput.js +83 -0
  48. package/lib/commonjs/components/FluentGlassInput.js.map +1 -0
  49. package/lib/commonjs/components/FluentGlassLabeledInput.js +64 -0
  50. package/lib/commonjs/components/FluentGlassLabeledInput.js.map +1 -0
  51. package/lib/commonjs/components/FluentGlassLayout.js +106 -0
  52. package/lib/commonjs/components/FluentGlassLayout.js.map +1 -0
  53. package/lib/commonjs/components/FluentGlassPasswordInput.js +60 -0
  54. package/lib/commonjs/components/FluentGlassPasswordInput.js.map +1 -0
  55. package/lib/commonjs/components/FluentGlassPopover.js +75 -0
  56. package/lib/commonjs/components/FluentGlassPopover.js.map +1 -0
  57. package/lib/commonjs/components/FluentGlassResponsiveRow.js +74 -0
  58. package/lib/commonjs/components/FluentGlassResponsiveRow.js.map +1 -0
  59. package/lib/commonjs/components/FluentGlassScrollArea.js +101 -0
  60. package/lib/commonjs/components/FluentGlassScrollArea.js.map +1 -0
  61. package/lib/commonjs/components/FluentGlassSegmentedControl.js +126 -0
  62. package/lib/commonjs/components/FluentGlassSegmentedControl.js.map +1 -0
  63. package/lib/commonjs/components/FluentGlassSelect.js +155 -0
  64. package/lib/commonjs/components/FluentGlassSelect.js.map +1 -0
  65. package/lib/commonjs/components/FluentGlassSeparator.js +62 -0
  66. package/lib/commonjs/components/FluentGlassSeparator.js.map +1 -0
  67. package/lib/commonjs/components/FluentGlassSheet.js +189 -0
  68. package/lib/commonjs/components/FluentGlassSheet.js.map +1 -0
  69. package/lib/commonjs/components/FluentGlassSidebar.js +358 -0
  70. package/lib/commonjs/components/FluentGlassSidebar.js.map +1 -0
  71. package/lib/commonjs/components/FluentGlassSimpleCard.js +56 -0
  72. package/lib/commonjs/components/FluentGlassSimpleCard.js.map +1 -0
  73. package/lib/commonjs/components/FluentGlassSkeleton.js +52 -0
  74. package/lib/commonjs/components/FluentGlassSkeleton.js.map +1 -0
  75. package/lib/commonjs/components/FluentGlassSlider.js +197 -0
  76. package/lib/commonjs/components/FluentGlassSlider.js.map +1 -0
  77. package/lib/commonjs/components/FluentGlassStatWidget.js +133 -0
  78. package/lib/commonjs/components/FluentGlassStatWidget.js.map +1 -0
  79. package/lib/commonjs/components/FluentGlassStatusIndicator.js +89 -0
  80. package/lib/commonjs/components/FluentGlassStatusIndicator.js.map +1 -0
  81. package/lib/commonjs/components/FluentGlassSwitch.js +126 -0
  82. package/lib/commonjs/components/FluentGlassSwitch.js.map +1 -0
  83. package/lib/commonjs/components/FluentGlassTable.js +163 -0
  84. package/lib/commonjs/components/FluentGlassTable.js.map +1 -0
  85. package/lib/commonjs/components/FluentGlassTag.js +109 -0
  86. package/lib/commonjs/components/FluentGlassTag.js.map +1 -0
  87. package/lib/commonjs/components/FluentGlassTextInput.js +90 -0
  88. package/lib/commonjs/components/FluentGlassTextInput.js.map +1 -0
  89. package/lib/commonjs/components/FluentGlassTimeline.js +334 -0
  90. package/lib/commonjs/components/FluentGlassTimeline.js.map +1 -0
  91. package/lib/commonjs/components/FluentGlassWeatherWidget.js +72 -0
  92. package/lib/commonjs/components/FluentGlassWeatherWidget.js.map +1 -0
  93. package/lib/commonjs/components/index.js +308 -0
  94. package/lib/commonjs/components/index.js.map +1 -0
  95. package/lib/commonjs/fonts.js +33 -0
  96. package/lib/commonjs/fonts.js.map +1 -0
  97. package/lib/commonjs/hooks/useBreakpoint.js +57 -0
  98. package/lib/commonjs/hooks/useBreakpoint.js.map +1 -0
  99. package/lib/commonjs/index.js +462 -0
  100. package/lib/commonjs/index.js.map +1 -0
  101. package/lib/commonjs/package.json +1 -0
  102. package/lib/commonjs/theme/FluentGlassProvider.js +84 -0
  103. package/lib/commonjs/theme/FluentGlassProvider.js.map +1 -0
  104. package/lib/commonjs/theme/defaultTheme.js +55 -0
  105. package/lib/commonjs/theme/defaultTheme.js.map +1 -0
  106. package/lib/commonjs/theme/resolvers.js +118 -0
  107. package/lib/commonjs/theme/resolvers.js.map +1 -0
  108. package/lib/commonjs/theme/tokens.js +239 -0
  109. package/lib/commonjs/theme/tokens.js.map +1 -0
  110. package/lib/commonjs/theme/typography.js +50 -0
  111. package/lib/commonjs/theme/typography.js.map +1 -0
  112. package/lib/commonjs/theme/useTheme.js +22 -0
  113. package/lib/commonjs/theme/useTheme.js.map +1 -0
  114. package/lib/commonjs/types/components.js +6 -0
  115. package/lib/commonjs/types/components.js.map +1 -0
  116. package/lib/commonjs/types/theme.js +6 -0
  117. package/lib/commonjs/types/theme.js.map +1 -0
  118. package/lib/commonjs/utils/colors.js +59 -0
  119. package/lib/commonjs/utils/colors.js.map +1 -0
  120. package/lib/commonjs/utils/responsive.js +126 -0
  121. package/lib/commonjs/utils/responsive.js.map +1 -0
  122. package/lib/module/assets/fonts/Inter-Black.ttf +0 -0
  123. package/lib/module/assets/fonts/Inter-Bold.ttf +0 -0
  124. package/lib/module/assets/fonts/Inter-ExtraBold.ttf +0 -0
  125. package/lib/module/assets/fonts/Inter-Medium.ttf +0 -0
  126. package/lib/module/assets/fonts/Inter-Regular.ttf +0 -0
  127. package/lib/module/assets/fonts/Inter-SemiBold.ttf +0 -0
  128. package/lib/module/components/FluentGlass.js +89 -0
  129. package/lib/module/components/FluentGlass.js.map +1 -0
  130. package/lib/module/components/FluentGlassAlert.js +121 -0
  131. package/lib/module/components/FluentGlassAlert.js.map +1 -0
  132. package/lib/module/components/FluentGlassBadge.js +119 -0
  133. package/lib/module/components/FluentGlassBadge.js.map +1 -0
  134. package/lib/module/components/FluentGlassBarChart.js +281 -0
  135. package/lib/module/components/FluentGlassBarChart.js.map +1 -0
  136. package/lib/module/components/FluentGlassBreadcrumb.js +150 -0
  137. package/lib/module/components/FluentGlassBreadcrumb.js.map +1 -0
  138. package/lib/module/components/FluentGlassButton.js +169 -0
  139. package/lib/module/components/FluentGlassButton.js.map +1 -0
  140. package/lib/module/components/FluentGlassCalendarWidget.js +68 -0
  141. package/lib/module/components/FluentGlassCalendarWidget.js.map +1 -0
  142. package/lib/module/components/FluentGlassCard.js +190 -0
  143. package/lib/module/components/FluentGlassCard.js.map +1 -0
  144. package/lib/module/components/FluentGlassCheckbox.js +115 -0
  145. package/lib/module/components/FluentGlassCheckbox.js.map +1 -0
  146. package/lib/module/components/FluentGlassClockWidget.js +74 -0
  147. package/lib/module/components/FluentGlassClockWidget.js.map +1 -0
  148. package/lib/module/components/FluentGlassCodeBlock.js +233 -0
  149. package/lib/module/components/FluentGlassCodeBlock.js.map +1 -0
  150. package/lib/module/components/FluentGlassContainer.js +47 -0
  151. package/lib/module/components/FluentGlassContainer.js.map +1 -0
  152. package/lib/module/components/FluentGlassCrossfade.js +112 -0
  153. package/lib/module/components/FluentGlassCrossfade.js.map +1 -0
  154. package/lib/module/components/FluentGlassDateInput.js +170 -0
  155. package/lib/module/components/FluentGlassDateInput.js.map +1 -0
  156. package/lib/module/components/FluentGlassDatePicker.js +265 -0
  157. package/lib/module/components/FluentGlassDatePicker.js.map +1 -0
  158. package/lib/module/components/FluentGlassDialog.js +163 -0
  159. package/lib/module/components/FluentGlassDialog.js.map +1 -0
  160. package/lib/module/components/FluentGlassDock.js +181 -0
  161. package/lib/module/components/FluentGlassDock.js.map +1 -0
  162. package/lib/module/components/FluentGlassDropdown.js +343 -0
  163. package/lib/module/components/FluentGlassDropdown.js.map +1 -0
  164. package/lib/module/components/FluentGlassEmailInput.js +38 -0
  165. package/lib/module/components/FluentGlassEmailInput.js.map +1 -0
  166. package/lib/module/components/FluentGlassInput.js +78 -0
  167. package/lib/module/components/FluentGlassInput.js.map +1 -0
  168. package/lib/module/components/FluentGlassLabeledInput.js +59 -0
  169. package/lib/module/components/FluentGlassLabeledInput.js.map +1 -0
  170. package/lib/module/components/FluentGlassLayout.js +101 -0
  171. package/lib/module/components/FluentGlassLayout.js.map +1 -0
  172. package/lib/module/components/FluentGlassPasswordInput.js +54 -0
  173. package/lib/module/components/FluentGlassPasswordInput.js.map +1 -0
  174. package/lib/module/components/FluentGlassPopover.js +70 -0
  175. package/lib/module/components/FluentGlassPopover.js.map +1 -0
  176. package/lib/module/components/FluentGlassResponsiveRow.js +71 -0
  177. package/lib/module/components/FluentGlassResponsiveRow.js.map +1 -0
  178. package/lib/module/components/FluentGlassScrollArea.js +95 -0
  179. package/lib/module/components/FluentGlassScrollArea.js.map +1 -0
  180. package/lib/module/components/FluentGlassSegmentedControl.js +120 -0
  181. package/lib/module/components/FluentGlassSegmentedControl.js.map +1 -0
  182. package/lib/module/components/FluentGlassSelect.js +149 -0
  183. package/lib/module/components/FluentGlassSelect.js.map +1 -0
  184. package/lib/module/components/FluentGlassSeparator.js +57 -0
  185. package/lib/module/components/FluentGlassSeparator.js.map +1 -0
  186. package/lib/module/components/FluentGlassSheet.js +183 -0
  187. package/lib/module/components/FluentGlassSheet.js.map +1 -0
  188. package/lib/module/components/FluentGlassSidebar.js +351 -0
  189. package/lib/module/components/FluentGlassSidebar.js.map +1 -0
  190. package/lib/module/components/FluentGlassSimpleCard.js +51 -0
  191. package/lib/module/components/FluentGlassSimpleCard.js.map +1 -0
  192. package/lib/module/components/FluentGlassSkeleton.js +46 -0
  193. package/lib/module/components/FluentGlassSkeleton.js.map +1 -0
  194. package/lib/module/components/FluentGlassSlider.js +191 -0
  195. package/lib/module/components/FluentGlassSlider.js.map +1 -0
  196. package/lib/module/components/FluentGlassStatWidget.js +128 -0
  197. package/lib/module/components/FluentGlassStatWidget.js.map +1 -0
  198. package/lib/module/components/FluentGlassStatusIndicator.js +84 -0
  199. package/lib/module/components/FluentGlassStatusIndicator.js.map +1 -0
  200. package/lib/module/components/FluentGlassSwitch.js +122 -0
  201. package/lib/module/components/FluentGlassSwitch.js.map +1 -0
  202. package/lib/module/components/FluentGlassTable.js +158 -0
  203. package/lib/module/components/FluentGlassTable.js.map +1 -0
  204. package/lib/module/components/FluentGlassTag.js +103 -0
  205. package/lib/module/components/FluentGlassTag.js.map +1 -0
  206. package/lib/module/components/FluentGlassTextInput.js +85 -0
  207. package/lib/module/components/FluentGlassTextInput.js.map +1 -0
  208. package/lib/module/components/FluentGlassTimeline.js +327 -0
  209. package/lib/module/components/FluentGlassTimeline.js.map +1 -0
  210. package/lib/module/components/FluentGlassWeatherWidget.js +67 -0
  211. package/lib/module/components/FluentGlassWeatherWidget.js.map +1 -0
  212. package/lib/module/components/index.js +45 -0
  213. package/lib/module/components/index.js.map +1 -0
  214. package/lib/module/fonts.js +26 -0
  215. package/lib/module/fonts.js.map +1 -0
  216. package/lib/module/hooks/useBreakpoint.js +54 -0
  217. package/lib/module/hooks/useBreakpoint.js.map +1 -0
  218. package/lib/module/index.js +30 -0
  219. package/lib/module/index.js.map +1 -0
  220. package/lib/module/theme/FluentGlassProvider.js +77 -0
  221. package/lib/module/theme/FluentGlassProvider.js.map +1 -0
  222. package/lib/module/theme/defaultTheme.js +51 -0
  223. package/lib/module/theme/defaultTheme.js.map +1 -0
  224. package/lib/module/theme/resolvers.js +110 -0
  225. package/lib/module/theme/resolvers.js.map +1 -0
  226. package/lib/module/theme/tokens.js +235 -0
  227. package/lib/module/theme/tokens.js.map +1 -0
  228. package/lib/module/theme/typography.js +45 -0
  229. package/lib/module/theme/typography.js.map +1 -0
  230. package/lib/module/theme/useTheme.js +18 -0
  231. package/lib/module/theme/useTheme.js.map +1 -0
  232. package/lib/module/types/components.js +4 -0
  233. package/lib/module/types/components.js.map +1 -0
  234. package/lib/module/types/theme.js +4 -0
  235. package/lib/module/types/theme.js.map +1 -0
  236. package/lib/module/utils/colors.js +55 -0
  237. package/lib/module/utils/colors.js.map +1 -0
  238. package/lib/module/utils/responsive.js +116 -0
  239. package/lib/module/utils/responsive.js.map +1 -0
  240. package/lib/typescript/components/FluentGlass.d.ts +25 -0
  241. package/lib/typescript/components/FluentGlass.d.ts.map +1 -0
  242. package/lib/typescript/components/FluentGlassAlert.d.ts +13 -0
  243. package/lib/typescript/components/FluentGlassAlert.d.ts.map +1 -0
  244. package/lib/typescript/components/FluentGlassBadge.d.ts +22 -0
  245. package/lib/typescript/components/FluentGlassBadge.d.ts.map +1 -0
  246. package/lib/typescript/components/FluentGlassBarChart.d.ts +30 -0
  247. package/lib/typescript/components/FluentGlassBarChart.d.ts.map +1 -0
  248. package/lib/typescript/components/FluentGlassBreadcrumb.d.ts +22 -0
  249. package/lib/typescript/components/FluentGlassBreadcrumb.d.ts.map +1 -0
  250. package/lib/typescript/components/FluentGlassButton.d.ts +27 -0
  251. package/lib/typescript/components/FluentGlassButton.d.ts.map +1 -0
  252. package/lib/typescript/components/FluentGlassCalendarWidget.d.ts +13 -0
  253. package/lib/typescript/components/FluentGlassCalendarWidget.d.ts.map +1 -0
  254. package/lib/typescript/components/FluentGlassCard.d.ts +30 -0
  255. package/lib/typescript/components/FluentGlassCard.d.ts.map +1 -0
  256. package/lib/typescript/components/FluentGlassCheckbox.d.ts +14 -0
  257. package/lib/typescript/components/FluentGlassCheckbox.d.ts.map +1 -0
  258. package/lib/typescript/components/FluentGlassClockWidget.d.ts +11 -0
  259. package/lib/typescript/components/FluentGlassClockWidget.d.ts.map +1 -0
  260. package/lib/typescript/components/FluentGlassCodeBlock.d.ts +11 -0
  261. package/lib/typescript/components/FluentGlassCodeBlock.d.ts.map +1 -0
  262. package/lib/typescript/components/FluentGlassContainer.d.ts +22 -0
  263. package/lib/typescript/components/FluentGlassContainer.d.ts.map +1 -0
  264. package/lib/typescript/components/FluentGlassCrossfade.d.ts +24 -0
  265. package/lib/typescript/components/FluentGlassCrossfade.d.ts.map +1 -0
  266. package/lib/typescript/components/FluentGlassDateInput.d.ts +18 -0
  267. package/lib/typescript/components/FluentGlassDateInput.d.ts.map +1 -0
  268. package/lib/typescript/components/FluentGlassDatePicker.d.ts +9 -0
  269. package/lib/typescript/components/FluentGlassDatePicker.d.ts.map +1 -0
  270. package/lib/typescript/components/FluentGlassDialog.d.ts +18 -0
  271. package/lib/typescript/components/FluentGlassDialog.d.ts.map +1 -0
  272. package/lib/typescript/components/FluentGlassDock.d.ts +19 -0
  273. package/lib/typescript/components/FluentGlassDock.d.ts.map +1 -0
  274. package/lib/typescript/components/FluentGlassDropdown.d.ts +23 -0
  275. package/lib/typescript/components/FluentGlassDropdown.d.ts.map +1 -0
  276. package/lib/typescript/components/FluentGlassEmailInput.d.ts +17 -0
  277. package/lib/typescript/components/FluentGlassEmailInput.d.ts.map +1 -0
  278. package/lib/typescript/components/FluentGlassInput.d.ts +12 -0
  279. package/lib/typescript/components/FluentGlassInput.d.ts.map +1 -0
  280. package/lib/typescript/components/FluentGlassLabeledInput.d.ts +19 -0
  281. package/lib/typescript/components/FluentGlassLabeledInput.d.ts.map +1 -0
  282. package/lib/typescript/components/FluentGlassLayout.d.ts +11 -0
  283. package/lib/typescript/components/FluentGlassLayout.d.ts.map +1 -0
  284. package/lib/typescript/components/FluentGlassPasswordInput.d.ts +15 -0
  285. package/lib/typescript/components/FluentGlassPasswordInput.d.ts.map +1 -0
  286. package/lib/typescript/components/FluentGlassPopover.d.ts +17 -0
  287. package/lib/typescript/components/FluentGlassPopover.d.ts.map +1 -0
  288. package/lib/typescript/components/FluentGlassResponsiveRow.d.ts +25 -0
  289. package/lib/typescript/components/FluentGlassResponsiveRow.d.ts.map +1 -0
  290. package/lib/typescript/components/FluentGlassScrollArea.d.ts +16 -0
  291. package/lib/typescript/components/FluentGlassScrollArea.d.ts.map +1 -0
  292. package/lib/typescript/components/FluentGlassSegmentedControl.d.ts +15 -0
  293. package/lib/typescript/components/FluentGlassSegmentedControl.d.ts.map +1 -0
  294. package/lib/typescript/components/FluentGlassSelect.d.ts +23 -0
  295. package/lib/typescript/components/FluentGlassSelect.d.ts.map +1 -0
  296. package/lib/typescript/components/FluentGlassSeparator.d.ts +13 -0
  297. package/lib/typescript/components/FluentGlassSeparator.d.ts.map +1 -0
  298. package/lib/typescript/components/FluentGlassSheet.d.ts +11 -0
  299. package/lib/typescript/components/FluentGlassSheet.d.ts.map +1 -0
  300. package/lib/typescript/components/FluentGlassSidebar.d.ts +44 -0
  301. package/lib/typescript/components/FluentGlassSidebar.d.ts.map +1 -0
  302. package/lib/typescript/components/FluentGlassSimpleCard.d.ts +19 -0
  303. package/lib/typescript/components/FluentGlassSimpleCard.d.ts.map +1 -0
  304. package/lib/typescript/components/FluentGlassSkeleton.d.ts +14 -0
  305. package/lib/typescript/components/FluentGlassSkeleton.d.ts.map +1 -0
  306. package/lib/typescript/components/FluentGlassSlider.d.ts +31 -0
  307. package/lib/typescript/components/FluentGlassSlider.d.ts.map +1 -0
  308. package/lib/typescript/components/FluentGlassStatWidget.d.ts +17 -0
  309. package/lib/typescript/components/FluentGlassStatWidget.d.ts.map +1 -0
  310. package/lib/typescript/components/FluentGlassStatusIndicator.d.ts +16 -0
  311. package/lib/typescript/components/FluentGlassStatusIndicator.d.ts.map +1 -0
  312. package/lib/typescript/components/FluentGlassSwitch.d.ts +13 -0
  313. package/lib/typescript/components/FluentGlassSwitch.d.ts.map +1 -0
  314. package/lib/typescript/components/FluentGlassTable.d.ts +50 -0
  315. package/lib/typescript/components/FluentGlassTable.d.ts.map +1 -0
  316. package/lib/typescript/components/FluentGlassTag.d.ts +18 -0
  317. package/lib/typescript/components/FluentGlassTag.d.ts.map +1 -0
  318. package/lib/typescript/components/FluentGlassTextInput.d.ts +21 -0
  319. package/lib/typescript/components/FluentGlassTextInput.d.ts.map +1 -0
  320. package/lib/typescript/components/FluentGlassTimeline.d.ts +27 -0
  321. package/lib/typescript/components/FluentGlassTimeline.d.ts.map +1 -0
  322. package/lib/typescript/components/FluentGlassWeatherWidget.d.ts +13 -0
  323. package/lib/typescript/components/FluentGlassWeatherWidget.d.ts.map +1 -0
  324. package/lib/typescript/components/index.d.ts +43 -0
  325. package/lib/typescript/components/index.d.ts.map +1 -0
  326. package/lib/typescript/fonts.d.ts +13 -0
  327. package/lib/typescript/fonts.d.ts.map +1 -0
  328. package/lib/typescript/hooks/useBreakpoint.d.ts +26 -0
  329. package/lib/typescript/hooks/useBreakpoint.d.ts.map +1 -0
  330. package/lib/typescript/index.d.ts +18 -0
  331. package/lib/typescript/index.d.ts.map +1 -0
  332. package/lib/typescript/theme/FluentGlassProvider.d.ts +21 -0
  333. package/lib/typescript/theme/FluentGlassProvider.d.ts.map +1 -0
  334. package/lib/typescript/theme/defaultTheme.d.ts +10 -0
  335. package/lib/typescript/theme/defaultTheme.d.ts.map +1 -0
  336. package/lib/typescript/theme/resolvers.d.ts +55 -0
  337. package/lib/typescript/theme/resolvers.d.ts.map +1 -0
  338. package/lib/typescript/theme/tokens.d.ts +27 -0
  339. package/lib/typescript/theme/tokens.d.ts.map +1 -0
  340. package/lib/typescript/theme/typography.d.ts +27 -0
  341. package/lib/typescript/theme/typography.d.ts.map +1 -0
  342. package/lib/typescript/theme/useTheme.d.ts +12 -0
  343. package/lib/typescript/theme/useTheme.d.ts.map +1 -0
  344. package/lib/typescript/types/components.d.ts +32 -0
  345. package/lib/typescript/types/components.d.ts.map +1 -0
  346. package/lib/typescript/types/theme.d.ts +79 -0
  347. package/lib/typescript/types/theme.d.ts.map +1 -0
  348. package/lib/typescript/utils/colors.d.ts +3 -0
  349. package/lib/typescript/utils/colors.d.ts.map +1 -0
  350. package/lib/typescript/utils/responsive.d.ts +62 -0
  351. package/lib/typescript/utils/responsive.d.ts.map +1 -0
  352. package/package.json +90 -0
  353. package/src/assets/fonts/Inter-Black.ttf +0 -0
  354. package/src/assets/fonts/Inter-Bold.ttf +0 -0
  355. package/src/assets/fonts/Inter-ExtraBold.ttf +0 -0
  356. package/src/assets/fonts/Inter-Medium.ttf +0 -0
  357. package/src/assets/fonts/Inter-Regular.ttf +0 -0
  358. package/src/assets/fonts/Inter-SemiBold.ttf +0 -0
  359. package/src/components/FluentGlass.tsx +103 -0
  360. package/src/components/FluentGlassAlert.tsx +126 -0
  361. package/src/components/FluentGlassBadge.tsx +109 -0
  362. package/src/components/FluentGlassBarChart.tsx +295 -0
  363. package/src/components/FluentGlassBreadcrumb.tsx +173 -0
  364. package/src/components/FluentGlassButton.tsx +169 -0
  365. package/src/components/FluentGlassCalendarWidget.tsx +55 -0
  366. package/src/components/FluentGlassCard.tsx +186 -0
  367. package/src/components/FluentGlassCheckbox.tsx +138 -0
  368. package/src/components/FluentGlassClockWidget.tsx +61 -0
  369. package/src/components/FluentGlassCodeBlock.tsx +241 -0
  370. package/src/components/FluentGlassContainer.tsx +63 -0
  371. package/src/components/FluentGlassCrossfade.tsx +122 -0
  372. package/src/components/FluentGlassDateInput.tsx +182 -0
  373. package/src/components/FluentGlassDatePicker.tsx +224 -0
  374. package/src/components/FluentGlassDialog.tsx +153 -0
  375. package/src/components/FluentGlassDock.tsx +194 -0
  376. package/src/components/FluentGlassDropdown.tsx +382 -0
  377. package/src/components/FluentGlassEmailInput.tsx +46 -0
  378. package/src/components/FluentGlassInput.tsx +77 -0
  379. package/src/components/FluentGlassLabeledInput.tsx +63 -0
  380. package/src/components/FluentGlassLayout.tsx +89 -0
  381. package/src/components/FluentGlassPasswordInput.tsx +59 -0
  382. package/src/components/FluentGlassPopover.tsx +74 -0
  383. package/src/components/FluentGlassResponsiveRow.tsx +76 -0
  384. package/src/components/FluentGlassScrollArea.tsx +110 -0
  385. package/src/components/FluentGlassSegmentedControl.tsx +140 -0
  386. package/src/components/FluentGlassSelect.tsx +139 -0
  387. package/src/components/FluentGlassSeparator.tsx +54 -0
  388. package/src/components/FluentGlassSheet.tsx +183 -0
  389. package/src/components/FluentGlassSidebar.tsx +349 -0
  390. package/src/components/FluentGlassSimpleCard.tsx +59 -0
  391. package/src/components/FluentGlassSkeleton.tsx +69 -0
  392. package/src/components/FluentGlassSlider.tsx +202 -0
  393. package/src/components/FluentGlassStatWidget.tsx +107 -0
  394. package/src/components/FluentGlassStatusIndicator.tsx +82 -0
  395. package/src/components/FluentGlassSwitch.tsx +130 -0
  396. package/src/components/FluentGlassTable.tsx +145 -0
  397. package/src/components/FluentGlassTag.tsx +98 -0
  398. package/src/components/FluentGlassTextInput.tsx +87 -0
  399. package/src/components/FluentGlassTimeline.tsx +335 -0
  400. package/src/components/FluentGlassWeatherWidget.tsx +54 -0
  401. package/src/components/index.ts +42 -0
  402. package/src/fonts.ts +24 -0
  403. package/src/hooks/useBreakpoint.ts +55 -0
  404. package/src/index.ts +97 -0
  405. package/src/theme/FluentGlassProvider.tsx +82 -0
  406. package/src/theme/defaultTheme.ts +44 -0
  407. package/src/theme/resolvers.ts +115 -0
  408. package/src/theme/tokens.ts +200 -0
  409. package/src/theme/typography.ts +41 -0
  410. package/src/theme/useTheme.ts +17 -0
  411. package/src/types/components.ts +47 -0
  412. package/src/types/theme.ts +82 -0
  413. package/src/utils/colors.ts +55 -0
  414. package/src/utils/responsive.ts +110 -0
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeReanimated","_interopRequireWildcard","_FluentGlass","_useTheme","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","ITEM_SIZE","ITEM_GAP","PAD_H","SPRING_CONFIG","mass","damping","stiffness","overshootClamping","DockItem","icon","label","onPress","isActive","accentColor","progress","useSharedValue","React","useEffect","value","withSpring","iconStyle","useAnimatedStyle","transform","scale","dotStyle","opacity","jsx","Pressable","accessibilityRole","accessibilityLabel","accessibilityState","selected","children","jsxs","View","style","styles","itemWrapper","itemContainer","intensity","borderRadius","borderOpacity","tint","centeredContent","dot","backgroundColor","FluentGlassDock","items","activeIndex","onSelect","floating","theme","useTheme","themeColors","colors","translateX","slidingStyle","dockWrapperFloating","dockWrapperRelative","dockPill","itemsRow","slidingIndicator","accent","borderColor","map","item","index","StyleSheet","create","position","bottom","width","alignItems","paddingHorizontal","zIndex","paddingVertical","flexDirection","gap","top","left","height","borderWidth","marginBottom","flex","justifyContent","marginTop"],"sourceRoot":"..\\..\\..\\src","sources":["components/FluentGlassDock.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAC,uBAAA,CAAAH,OAAA;AAKA,IAAAI,YAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,SAAA,GAAAN,sBAAA,CAAAC,OAAA;AAAyC,IAAAM,WAAA,GAAAN,OAAA;AAAA,SAAAG,wBAAAI,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAN,uBAAA,YAAAA,CAAAI,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,G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E;IACjBa,KAAK,EAAE,MAAM;IACbC,UAAU,EAAE,QAAQ;IACpBG,eAAe,EAAE;EACrB,CAAC;EACDhB,QAAQ,EAAE;IACN;EAAA,CACH;EACDC,QAAQ,EAAE;IACNgB,aAAa,EAAE,KAAK;IACpBJ,UAAU,EAAE,UAAU;IACtBK,GAAG,EAAE5E,QAAQ;IACb0E,eAAe,EAAE,EAAE;IACnBF,iBAAiB,EAAEvE;EACvB,CAAC;EACD2D,gBAAgB,EAAE;IACdQ,QAAQ,EAAE,UAAU;IACpBS,GAAG,EAAE,EAAE;IACPC,IAAI,EAAE7E,KAAK;IACXqE,KAAK,EAAEvE,SAAS;IAChBgF,MAAM,EAAEhF,SAAS;IACjBwC,YAAY,EAAE,EAAE;IAChByC,WAAW,EAAE;EACjB,CAAC;EACD5C,WAAW,EAAE;IACTmC,UAAU,EAAE,QAAQ;IACpBU,YAAY,EAAE;EAClB,CAAC;EACD5C,aAAa,EAAE;IACXiC,KAAK,EAAEvE,SAAS;IAChBgF,MAAM,EAAEhF;EACZ,CAAC;EACD2C,eAAe,EAAE;IACbwC,IAAI,EAAE,CAAC;IACPX,UAAU,EAAE,QAAQ;IACpBY,cAAc,EAAE;EACpB,CAAC;EACDxC,GAAG,EAAE;IACD2B,KAAK,EAAE,CAAC;IACRS,MAAM,EAAE,CAAC;IACTxC,YAAY,EAAE,CAAC;IACf6C,SAAS,EAAE;EACf;AACJ,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,349 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = FluentGlassDropdown;
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ var _reactNative = require("react-native");
9
+ var _reactNativeReanimated = _interopRequireWildcard(require("react-native-reanimated"));
10
+ var _FluentGlass = _interopRequireDefault(require("./FluentGlass"));
11
+ var _useTheme = _interopRequireDefault(require("../theme/useTheme"));
12
+ var _jsxRuntime = require("react/jsx-runtime");
13
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
14
+ 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); }
15
+ /**
16
+ * FluentGlassDropdown (Molecule)
17
+ * Inline glass dropdown with auto-direction (opens up or down based on space).
18
+ * Animations fully driven by SharedValues on the UI thread.
19
+ *
20
+ * @level Molecule
21
+ * @composition FluentGlass (Atom), Text, Pressable
22
+ *
23
+ * Two data formats:
24
+ * Flat: options={[{ label, value }]}
25
+ * Grouped: sections={[{ title, data: [{ label, value }] }]}
26
+ */
27
+ const SCREEN_HEIGHT = _reactNative.Dimensions.get('window').height;
28
+ const MAX_DROPDOWN_HEIGHT = 260;
29
+ const SPRING_CONFIG = {
30
+ damping: 18,
31
+ stiffness: 300,
32
+ mass: 0.8
33
+ };
34
+ const TIMING_CONFIG = {
35
+ duration: 180,
36
+ easing: _reactNativeReanimated.Easing.out(_reactNativeReanimated.Easing.cubic)
37
+ };
38
+ function FluentGlassDropdown({
39
+ value,
40
+ onValueChange,
41
+ options,
42
+ sections,
43
+ placeholder = 'Select option',
44
+ label,
45
+ style,
46
+ accessibilityLabel
47
+ }) {
48
+ const theme = (0, _useTheme.default)();
49
+ const COLORS = theme.colors;
50
+ const [isOpen, setIsOpen] = (0, _react.useState)(false);
51
+ const [triggerLayout, setTriggerLayout] = (0, _react.useState)(null);
52
+ const [openDirection, setOpenDirection] = (0, _react.useState)('down');
53
+ const triggerRef = (0, _react.useRef)(null);
54
+
55
+ // Animation shared values — runs on UI thread
56
+ const opacity = (0, _reactNativeReanimated.useSharedValue)(0);
57
+ const scale = (0, _reactNativeReanimated.useSharedValue)(0.92);
58
+ const isGrouped = Boolean(sections);
59
+
60
+ // Animate in when opened
61
+ (0, _react.useEffect)(() => {
62
+ if (isOpen) {
63
+ opacity.value = (0, _reactNativeReanimated.withTiming)(1, TIMING_CONFIG);
64
+ scale.value = (0, _reactNativeReanimated.withSpring)(1, SPRING_CONFIG);
65
+ }
66
+ }, [isOpen, opacity, scale]);
67
+ const panelAnimStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => ({
68
+ opacity: opacity.value,
69
+ transform: [{
70
+ scale: scale.value
71
+ }]
72
+ }));
73
+
74
+ // Find selected label
75
+ const findSelectedLabel = () => {
76
+ if (isGrouped && sections) {
77
+ for (const section of sections) {
78
+ const found = section.data.find(item => item.value === value);
79
+ if (found) return found.label;
80
+ }
81
+ return null;
82
+ }
83
+ if (options) {
84
+ const found = options.find(item => item.value === value);
85
+ return found ? found.label : null;
86
+ }
87
+ return null;
88
+ };
89
+ const selectedLabel = findSelectedLabel();
90
+ const handleOpen = (0, _react.useCallback)(() => {
91
+ if (triggerRef.current) {
92
+ triggerRef.current.measureInWindow((x, y, width, height) => {
93
+ const spaceBelow = SCREEN_HEIGHT - (y + height);
94
+ const spaceAbove = y;
95
+ const direction = spaceBelow >= MAX_DROPDOWN_HEIGHT || spaceBelow >= spaceAbove ? 'down' : 'up';
96
+
97
+ // Reset animation values before opening
98
+ opacity.value = 0;
99
+ scale.value = 0.92;
100
+ setTriggerLayout({
101
+ x,
102
+ y,
103
+ width,
104
+ height
105
+ });
106
+ setOpenDirection(direction);
107
+ setIsOpen(true);
108
+ });
109
+ }
110
+ }, [opacity, scale]);
111
+ const handleSelect = (0, _react.useCallback)(itemValue => {
112
+ onValueChange?.(itemValue);
113
+ // Animate out then close
114
+ opacity.value = (0, _reactNativeReanimated.withTiming)(0, {
115
+ duration: 120
116
+ });
117
+ scale.value = (0, _reactNativeReanimated.withTiming)(0.95, {
118
+ duration: 120
119
+ });
120
+ setTimeout(() => setIsOpen(false), 130);
121
+ }, [onValueChange, opacity, scale]);
122
+ const handleClose = (0, _react.useCallback)(() => {
123
+ opacity.value = (0, _reactNativeReanimated.withTiming)(0, {
124
+ duration: 120
125
+ });
126
+ scale.value = (0, _reactNativeReanimated.withTiming)(0.95, {
127
+ duration: 120
128
+ });
129
+ setTimeout(() => setIsOpen(false), 130);
130
+ }, [opacity, scale]);
131
+
132
+ // Compute dropdown position
133
+ const dropdownPositionStyle = triggerLayout ? {
134
+ position: 'absolute',
135
+ left: triggerLayout.x,
136
+ width: triggerLayout.width,
137
+ maxHeight: MAX_DROPDOWN_HEIGHT,
138
+ ...(openDirection === 'down' ? {
139
+ top: triggerLayout.y + triggerLayout.height + 4
140
+ } : {
141
+ top: triggerLayout.y - MAX_DROPDOWN_HEIGHT - 4
142
+ })
143
+ } : {};
144
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
145
+ style: [styles.wrapper, style],
146
+ children: [label ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
147
+ style: [styles.label, {
148
+ color: COLORS.textSecondary,
149
+ fontFamily: theme.typography.medium
150
+ }],
151
+ children: label
152
+ }) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
153
+ ref: triggerRef,
154
+ onPress: handleOpen,
155
+ accessibilityRole: "button",
156
+ accessibilityLabel: accessibilityLabel ?? label ?? placeholder ?? 'Dropdown',
157
+ accessibilityState: {
158
+ expanded: isOpen
159
+ },
160
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_FluentGlass.default, {
161
+ style: [styles.trigger, {
162
+ backgroundColor: COLORS.inputBg
163
+ }],
164
+ intensity: 10,
165
+ tint: "dark",
166
+ borderRadius: 12,
167
+ borderOpacity: 0.25,
168
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
169
+ style: styles.triggerContent,
170
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
171
+ style: [styles.triggerText, {
172
+ color: COLORS.textPrimary,
173
+ fontFamily: theme.typography.medium
174
+ }, !selectedLabel && {
175
+ color: COLORS.textSecondary
176
+ }],
177
+ children: selectedLabel || placeholder
178
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
179
+ style: [styles.chevron, {
180
+ color: COLORS.textSecondary
181
+ }],
182
+ children: isOpen ? openDirection === 'down' ? '▴' : '▾' : '▾'
183
+ })]
184
+ })
185
+ })
186
+ }), isOpen ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Modal, {
187
+ visible: true,
188
+ transparent: true,
189
+ animationType: "none",
190
+ onRequestClose: handleClose,
191
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
192
+ style: styles.backdrop,
193
+ onPress: handleClose,
194
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
195
+ style: [dropdownPositionStyle, panelAnimStyle],
196
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
197
+ onPress: e => e.stopPropagation(),
198
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_FluentGlass.default, {
199
+ style: styles.dropdownGlass,
200
+ intensity: 25,
201
+ tint: "dark",
202
+ borderRadius: 16,
203
+ borderOpacity: 0.25,
204
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ScrollView, {
205
+ style: styles.scrollInner,
206
+ bounces: false,
207
+ showsVerticalScrollIndicator: false,
208
+ children: isGrouped ? renderGrouped(sections, value, handleSelect, COLORS, theme.typography) : renderFlat(options, value, handleSelect, COLORS, theme.typography)
209
+ })
210
+ })
211
+ })
212
+ })
213
+ })
214
+ }) : null]
215
+ });
216
+ }
217
+
218
+ /* ─── Render helpers ─── */
219
+
220
+ function renderFlat(options, selectedValue, onSelect, COLORS, typography) {
221
+ if (!options) return null;
222
+ return options.map((item, i) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
223
+ style: [styles.option, i < options.length - 1 && [styles.optionBorder, {
224
+ borderBottomColor: COLORS.borderSubtle
225
+ }]],
226
+ onPress: () => onSelect(item.value),
227
+ accessibilityLabel: item.label,
228
+ accessibilityState: {
229
+ selected: item.value === selectedValue
230
+ },
231
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
232
+ style: [styles.optionText, {
233
+ color: COLORS.textPrimary,
234
+ fontFamily: typography.medium
235
+ }, item.value === selectedValue && {
236
+ color: COLORS.accent,
237
+ fontWeight: '600',
238
+ fontFamily: typography.semiBold
239
+ }],
240
+ children: item.label
241
+ })
242
+ }, String(item.value)));
243
+ }
244
+ function renderGrouped(sections, selectedValue, onSelect, COLORS, typography) {
245
+ return sections.map((section, sectionIdx) => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
246
+ children: [sectionIdx > 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
247
+ style: [styles.sectionSeparator, {
248
+ backgroundColor: COLORS.border
249
+ }]
250
+ }) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
251
+ style: styles.sectionHeader,
252
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
253
+ style: [styles.sectionTitle, {
254
+ color: COLORS.textPrimary,
255
+ fontFamily: typography.bold
256
+ }],
257
+ children: section.title
258
+ })
259
+ }), section.data.map(item => /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
260
+ style: styles.option,
261
+ onPress: () => onSelect(item.value),
262
+ accessibilityLabel: item.label,
263
+ accessibilityState: {
264
+ selected: item.value === selectedValue
265
+ },
266
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
267
+ style: [styles.optionText, styles.optionTextIndented, {
268
+ color: COLORS.textPrimary,
269
+ fontFamily: typography.medium
270
+ }, item.value === selectedValue && {
271
+ color: COLORS.accent,
272
+ fontWeight: '600',
273
+ fontFamily: typography.semiBold
274
+ }],
275
+ children: item.label
276
+ })
277
+ }, String(item.value)))]
278
+ }, section.title));
279
+ }
280
+ const styles = _reactNative.StyleSheet.create({
281
+ wrapper: {
282
+ width: '100%',
283
+ zIndex: 10
284
+ },
285
+ label: {
286
+ marginBottom: 8,
287
+ fontSize: 14,
288
+ marginLeft: 4,
289
+ fontWeight: '500'
290
+ },
291
+ trigger: {
292
+ height: 48
293
+ },
294
+ triggerContent: {
295
+ flex: 1,
296
+ flexDirection: 'row',
297
+ alignItems: 'center',
298
+ justifyContent: 'space-between',
299
+ paddingHorizontal: 16
300
+ },
301
+ triggerText: {
302
+ fontSize: 15,
303
+ fontWeight: '500',
304
+ flex: 1
305
+ },
306
+ chevron: {
307
+ fontSize: 12,
308
+ marginLeft: 8
309
+ },
310
+ backdrop: {
311
+ flex: 1
312
+ },
313
+ dropdownGlass: {
314
+ overflow: 'hidden'
315
+ },
316
+ scrollInner: {
317
+ maxHeight: MAX_DROPDOWN_HEIGHT - 2
318
+ },
319
+ option: {
320
+ paddingVertical: 12,
321
+ paddingHorizontal: 16
322
+ },
323
+ optionBorder: {
324
+ borderBottomWidth: _reactNative.StyleSheet.hairlineWidth
325
+ },
326
+ optionText: {
327
+ fontSize: 15,
328
+ fontWeight: '500'
329
+ },
330
+ optionTextIndented: {
331
+ paddingLeft: 12
332
+ },
333
+ sectionSeparator: {
334
+ height: 1,
335
+ marginHorizontal: 12
336
+ },
337
+ sectionHeader: {
338
+ paddingHorizontal: 16,
339
+ paddingTop: 12,
340
+ paddingBottom: 6
341
+ },
342
+ sectionTitle: {
343
+ fontSize: 14,
344
+ fontWeight: '700',
345
+ textTransform: 'uppercase',
346
+ letterSpacing: 0.5
347
+ }
348
+ });
349
+ //# sourceMappingURL=FluentGlassDropdown.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeReanimated","_FluentGlass","_interopRequireDefault","_useTheme","_jsxRuntime","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","SCREEN_HEIGHT","Dimensions","height","MAX_DROPDOWN_HEIGHT","SPRING_CONFIG","damping","stiffness","mass","TIMING_CONFIG","duration","easing","Easing","out","cubic","FluentGlassDropdown","value","onValueChange","options","sections","placeholder","label","style","accessibilityLabel","theme","useTheme","COLORS","colors","isOpen","setIsOpen","useState","triggerLayout","setTriggerLayout","openDirection","setOpenDirection","triggerRef","useRef","opacity","useSharedValue","scale","isGrouped","Boolean","useEffect","withTiming","withSpring","panelAnimStyle","useAnimatedStyle","transform","findSelectedLabel","section","found","data","find","item","selectedLabel","handleOpen","useCallback","current","measureInWindow","x","y","width","spaceBelow","spaceAbove","direction","handleSelect","itemValue","setTimeout","handleClose","dropdownPositionStyle","position","left","maxHeight","top","jsxs","View","styles","wrapper","children","jsx","Text","color","textSecondary","fontFamily","typography","medium","Pressable","ref","onPress","accessibilityRole","accessibilityState","expanded","trigger","backgroundColor","inputBg","intensity","tint","borderRadius","borderOpacity","triggerContent","triggerText","textPrimary","chevron","Modal","visible","transparent","animationType","onRequestClose","backdrop","stopPropagation","dropdownGlass","ScrollView","scrollInner","bounces","showsVerticalScrollIndicator","renderGrouped","renderFlat","selectedValue","onSelect","map","option","length","optionBorder","borderBottomColor","borderSubtle","selected","optionText","accent","fontWeight","semiBold","String","sectionIdx","sectionSeparator","border","sectionHeader","sectionTitle","bold","title","optionTextIndented","StyleSheet","create","zIndex","marginBottom","fontSize","marginLeft","flex","flexDirection","alignItems","justifyContent","paddingHorizontal","overflow","paddingVertical","borderBottomWidth","hairlineWidth","paddingLeft","marginHorizontal","paddingTop","paddingBottom","textTransform","letterSpacing"],"sourceRoot":"..\\..\\..\\src","sources":["components/FluentGlassDropdown.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAA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;EAChB,CAAC;EACDpC,QAAQ,EAAE;IACNqC,IAAI,EAAE;EACV,CAAC;EACDnC,aAAa,EAAE;IACXwC,QAAQ,EAAE;EACd,CAAC;EACDtC,WAAW,EAAE;IACTxC,SAAS,EAAEpE,mBAAmB,GAAG;EACrC,CAAC;EACDoH,MAAM,EAAE;IACJ+B,eAAe,EAAE,EAAE;IACnBF,iBAAiB,EAAE;EACvB,CAAC;EACD3B,YAAY,EAAE;IACV8B,iBAAiB,EAAEb,uBAAU,CAACc;EAClC,CAAC;EACD3B,UAAU,EAAE;IACRiB,QAAQ,EAAE,EAAE;IACZf,UAAU,EAAE;EAChB,CAAC;EACDU,kBAAkB,EAAE;IAChBgB,WAAW,EAAE;EACjB,CAAC;EACDtB,gBAAgB,EAAE;IACdjI,MAAM,EAAE,CAAC;IACTwJ,gBAAgB,EAAE;EACtB,CAAC;EACDrB,aAAa,EAAE;IACXe,iBAAiB,EAAE,EAAE;IACrBO,UAAU,EAAE,EAAE;IACdC,aAAa,EAAE;EACnB,CAAC;EACDtB,YAAY,EAAE;IACVQ,QAAQ,EAAE,EAAE;IACZf,UAAU,EAAE,KAAK;IACjB8B,aAAa,EAAE,WAAW;IAC1BC,aAAa,EAAE;EACnB;AACJ,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = FluentGlassEmailInput;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _FluentGlassTextInput = _interopRequireDefault(require("./FluentGlassTextInput"));
9
+ var _jsxRuntime = require("react/jsx-runtime");
10
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
+ /**
12
+ * FluentGlassEmailInput (Molécula)
13
+ * Input configurado específicamente para correos electrónicos.
14
+ */
15
+ function FluentGlassEmailInput({
16
+ value,
17
+ onChangeText,
18
+ placeholder = 'Enter your email',
19
+ style,
20
+ size,
21
+ colorScheme,
22
+ blur,
23
+ radius,
24
+ accessibilityLabel,
25
+ ...props
26
+ }) {
27
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_FluentGlassTextInput.default, {
28
+ value: value,
29
+ onChangeText: onChangeText,
30
+ placeholder: placeholder,
31
+ keyboardType: "email-address",
32
+ autoCapitalize: "none",
33
+ autoComplete: "email",
34
+ size: size,
35
+ colorScheme: colorScheme,
36
+ blur: blur,
37
+ radius: radius,
38
+ style: style,
39
+ accessibilityLabel: accessibilityLabel ?? 'Email address',
40
+ ...props
41
+ });
42
+ }
43
+ //# sourceMappingURL=FluentGlassEmailInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_FluentGlassTextInput","_jsxRuntime","e","__esModule","default","FluentGlassEmailInput","value","onChangeText","placeholder","style","size","colorScheme","blur","radius","accessibilityLabel","props","jsx","keyboardType","autoCapitalize","autoComplete"],"sourceRoot":"..\\..\\..\\src","sources":["components/FluentGlassEmailInput.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,qBAAA,GAAAF,sBAAA,CAAAC,OAAA;AAA0D,IAAAE,WAAA,GAAAF,OAAA;AAAA,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAY1D;AACA;AACA;AACA;AACe,SAASG,qBAAqBA,CAAC;EAAEC,KAAK;EACjDC,YAAY;EACZC,WAAW,GAAG,kBAAkB;EAChCC,KAAK;EACLC,IAAI;EACJC,WAAW;EACXC,IAAI;EACJC,MAAM;EACNC,kBAAkB;EAClB,GAAGC;AAAkC,CAAC,EAAE;EACxC,oBACI,IAAAd,WAAA,CAAAe,GAAA,EAAChB,qBAAA,CAAAI,OAAoB;IACjBE,KAAK,EAAEA,KAAM;IACbC,YAAY,EAAEA,YAAa;IAC3BC,WAAW,EAAEA,WAAY;IACzBS,YAAY,EAAC,eAAe;IAC5BC,cAAc,EAAC,MAAM;IACrBC,YAAY,EAAC,OAAO;IACpBT,IAAI,EAAEA,IAAK;IACXC,WAAW,EAAEA,WAAY;IACzBC,IAAI,EAAEA,IAAK;IACXC,MAAM,EAAEA,MAAO;IACfJ,KAAK,EAAEA,KAAM;IACbK,kBAAkB,EAAEA,kBAAkB,IAAI,eAAgB;IAAA,GACtDC;EAAK,CACZ,CAAC;AAEV","ignoreList":[]}
@@ -0,0 +1,83 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = FluentGlassInput;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _reactNative = require("react-native");
9
+ var _FluentGlass = _interopRequireDefault(require("./FluentGlass"));
10
+ var _useTheme = _interopRequireDefault(require("../theme/useTheme"));
11
+ var _jsxRuntime = require("react/jsx-runtime");
12
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
13
+ /**
14
+ * FluentGlassInput (Component)
15
+ * Text input with "carved" glass effect.
16
+ */
17
+
18
+ function FluentGlassInput({
19
+ value,
20
+ onChangeText,
21
+ placeholder,
22
+ label,
23
+ style,
24
+ keyboardType,
25
+ secureTextEntry,
26
+ accessibilityLabel,
27
+ accessibilityHint
28
+ }) {
29
+ const theme = (0, _useTheme.default)();
30
+ const COLORS = theme.colors;
31
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
32
+ style: [styles.wrapper, style],
33
+ children: [label && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
34
+ style: [styles.label, {
35
+ color: COLORS.textSecondary,
36
+ fontFamily: theme.typography.medium
37
+ }],
38
+ children: label
39
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_FluentGlass.default, {
40
+ style: [styles.container, {
41
+ backgroundColor: COLORS.inputBg
42
+ }],
43
+ intensity: 10,
44
+ borderRadius: 12,
45
+ borderOpacity: 0.1,
46
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TextInput, {
47
+ style: [styles.input, {
48
+ color: COLORS.textPrimary
49
+ }],
50
+ value: value,
51
+ onChangeText: onChangeText,
52
+ placeholder: placeholder,
53
+ placeholderTextColor: COLORS.textSecondary,
54
+ keyboardType: keyboardType,
55
+ secureTextEntry: secureTextEntry,
56
+ accessibilityLabel: accessibilityLabel ?? label ?? placeholder,
57
+ accessibilityHint: accessibilityHint
58
+ })
59
+ })]
60
+ });
61
+ }
62
+ const styles = _reactNative.StyleSheet.create({
63
+ wrapper: {
64
+ marginBottom: 16,
65
+ width: '100%'
66
+ },
67
+ label: {
68
+ marginBottom: 8,
69
+ fontSize: 14,
70
+ marginLeft: 4,
71
+ fontWeight: '500'
72
+ },
73
+ container: {
74
+ height: undefined,
75
+ minHeight: 50
76
+ },
77
+ input: {
78
+ flex: 1,
79
+ paddingHorizontal: 16,
80
+ fontSize: 16
81
+ }
82
+ });
83
+ //# sourceMappingURL=FluentGlassInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_FluentGlass","_useTheme","_jsxRuntime","e","__esModule","default","FluentGlassInput","value","onChangeText","placeholder","label","style","keyboardType","secureTextEntry","accessibilityLabel","accessibilityHint","theme","useTheme","COLORS","colors","jsxs","View","styles","wrapper","children","jsx","Text","color","textSecondary","fontFamily","typography","medium","container","backgroundColor","inputBg","intensity","borderRadius","borderOpacity","TextInput","input","textPrimary","placeholderTextColor","StyleSheet","create","marginBottom","width","fontSize","marginLeft","fontWeight","height","undefined","minHeight","flex","paddingHorizontal"],"sourceRoot":"..\\..\\..\\src","sources":["components/FluentGlassInput.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,SAAA,GAAAJ,sBAAA,CAAAC,OAAA;AAAyC,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CAAE;QACrDjC,KAAK,EAAEA,KAAM;QACbC,YAAY,EAAEA,YAAa;QAC3BC,WAAW,EAAEA,WAAY;QACzBgC,oBAAoB,EAAEvB,MAAM,CAACU,aAAc;QAC3ChB,YAAY,EAAEA,YAAa;QAC3BC,eAAe,EAAEA,eAAgB;QACjCC,kBAAkB,EAAEA,kBAAkB,IAAIJ,KAAK,IAAID,WAAY;QAC/DM,iBAAiB,EAAEA;MAAkB,CACxC;IAAC,CACO,CAAC;EAAA,CACZ,CAAC;AAEf;AAEA,MAAMO,MAAM,GAAGoB,uBAAU,CAACC,MAAM,CAAC;EAC7BpB,OAAO,EAAE;IACLqB,YAAY,EAAE,EAAE;IAChBC,KAAK,EAAE;EACX,CAAC;EACDnC,KAAK,EAAE;IACHkC,YAAY,EAAE,CAAC;IACfE,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,CAAC;IACbC,UAAU,EAAE;EAChB,CAAC;EACDhB,SAAS,EAAE;IACPiB,MAAM,EAAEC,SAAS;IACjBC,SAAS,EAAE;EACf,CAAC;EACDZ,KAAK,EAAE;IACHa,IAAI,EAAE,CAAC;IACPC,iBAAiB,EAAE,EAAE;IACrBP,QAAQ,EAAE;EACd;AACJ,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = FluentGlassLabeledInput;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _reactNative = require("react-native");
9
+ var _FluentGlassTextInput = _interopRequireDefault(require("./FluentGlassTextInput"));
10
+ var _useTheme = _interopRequireDefault(require("../theme/useTheme"));
11
+ var _jsxRuntime = require("react/jsx-runtime");
12
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
13
+ /**
14
+ * FluentGlassLabeledInput (Molécula)
15
+ * Input con una etiqueta (label) en la parte superior.
16
+ */
17
+ function FluentGlassLabeledInput({
18
+ label,
19
+ value,
20
+ onChangeText,
21
+ placeholder,
22
+ keyboardType,
23
+ autoCapitalize,
24
+ secureTextEntry,
25
+ style,
26
+ accessibilityLabel
27
+ }) {
28
+ const theme = (0, _useTheme.default)();
29
+ const COLORS = theme.colors;
30
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
31
+ style: [styles.wrapper, style],
32
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
33
+ style: [styles.label, {
34
+ color: COLORS.textPrimary,
35
+ fontFamily: theme.typography.semiBold
36
+ }],
37
+ children: label
38
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_FluentGlassTextInput.default, {
39
+ value: value,
40
+ onChangeText: onChangeText,
41
+ placeholder: placeholder,
42
+ keyboardType: keyboardType,
43
+ autoCapitalize: autoCapitalize,
44
+ secureTextEntry: secureTextEntry,
45
+ accessibilityLabel: accessibilityLabel ?? label
46
+ })]
47
+ });
48
+ }
49
+ const styles = _reactNative.StyleSheet.create({
50
+ wrapper: {
51
+ width: '100%',
52
+ marginBottom: 16
53
+ },
54
+ label: {
55
+ color: undefined,
56
+ // Applied inline from useTheme()
57
+ marginBottom: 8,
58
+ fontSize: 13,
59
+ marginLeft: 4,
60
+ fontWeight: '600',
61
+ letterSpacing: 0.3
62
+ }
63
+ });
64
+ //# sourceMappingURL=FluentGlassLabeledInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_FluentGlassTextInput","_useTheme","_jsxRuntime","e","__esModule","default","FluentGlassLabeledInput","label","value","onChangeText","placeholder","keyboardType","autoCapitalize","secureTextEntry","style","accessibilityLabel","theme","useTheme","COLORS","colors","jsxs","View","styles","wrapper","children","jsx","Text","color","textPrimary","fontFamily","typography","semiBold","StyleSheet","create","width","marginBottom","undefined","fontSize","marginLeft","fontWeight","letterSpacing"],"sourceRoot":"..\\..\\..\\src","sources":["components/FluentGlassLabeledInput.tsx"],"mappings":";;;;;;AAAA,IAAAA,MA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