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,149 @@
1
+ "use strict";
2
+
3
+ import React, { useState } from 'react';
4
+ import { StyleSheet, TouchableOpacity, Text, View } from 'react-native';
5
+ import FluentGlass from './FluentGlass';
6
+ import FluentGlassSheet from './FluentGlassSheet';
7
+ import useTheme from '../theme/useTheme';
8
+ import { resolveSize, resolveRadius, resolveBackwardCompat } from '../theme/resolvers';
9
+
10
+ /**
11
+ * FluentGlassSelect (Component)
12
+ * Dropdown that triggers a Bottom Sheet for selection.
13
+ */
14
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
15
+ export default function FluentGlassSelect({
16
+ value,
17
+ onValueChange,
18
+ options = [],
19
+ // { label, value }[]
20
+ placeholder = 'Select option',
21
+ label,
22
+ // New props
23
+ size,
24
+ colorScheme,
25
+ blur,
26
+ radius,
27
+ accessibilityLabel
28
+ }) {
29
+ const theme = useTheme();
30
+ const sizeConfig = resolveSize(theme, size || theme.defaults.size);
31
+ const compat = resolveBackwardCompat({
32
+ colorScheme,
33
+ blur
34
+ });
35
+ const resolvedScheme = compat.colorScheme || theme.defaults.colorScheme;
36
+ const resolvedRadius = resolveRadius(theme, radius || 'md');
37
+ const [isOpen, setIsOpen] = useState(false);
38
+ const selectedOption = options.find(opt => opt.value === value);
39
+ return /*#__PURE__*/_jsxs(_Fragment, {
40
+ children: [/*#__PURE__*/_jsxs(View, {
41
+ style: styles.wrapper,
42
+ children: [label && /*#__PURE__*/_jsx(Text, {
43
+ style: [styles.label, {
44
+ color: theme.colors.textSecondary,
45
+ fontSize: sizeConfig.fontSize - 1,
46
+ marginLeft: (sizeConfig.gap || 0) / 2,
47
+ marginBottom: sizeConfig.gap || 0,
48
+ fontFamily: theme.typography.medium
49
+ }],
50
+ children: label
51
+ }), /*#__PURE__*/_jsx(TouchableOpacity, {
52
+ onPress: () => setIsOpen(true),
53
+ accessibilityRole: "button",
54
+ accessibilityLabel: accessibilityLabel ?? label ?? placeholder ?? 'Select',
55
+ accessibilityState: {
56
+ expanded: isOpen
57
+ },
58
+ children: /*#__PURE__*/_jsx(FluentGlass, {
59
+ style: [styles.trigger, {
60
+ minHeight: sizeConfig.minHeight
61
+ }],
62
+ colorScheme: resolvedScheme,
63
+ blur: compat.blur || 'subtle',
64
+ radius: radius,
65
+ borderRadius: resolvedRadius,
66
+ borderOpacity: 0.15,
67
+ children: /*#__PURE__*/_jsx(View, {
68
+ style: [styles.contentContainer, {
69
+ paddingHorizontal: sizeConfig.paddingHorizontal
70
+ }],
71
+ children: /*#__PURE__*/_jsx(Text, {
72
+ style: [styles.text, {
73
+ fontSize: sizeConfig.fontSize,
74
+ fontFamily: theme.typography.regular
75
+ }, !selectedOption ? {
76
+ color: theme.colors.textSecondary
77
+ } : {
78
+ color: theme.colors.textPrimary
79
+ }],
80
+ children: selectedOption ? selectedOption.label : placeholder
81
+ })
82
+ })
83
+ })
84
+ })]
85
+ }), /*#__PURE__*/_jsx(FluentGlassSheet, {
86
+ visible: isOpen,
87
+ onClose: () => setIsOpen(false),
88
+ title: label || placeholder,
89
+ height: "50%",
90
+ size: size,
91
+ children: options.map(opt => /*#__PURE__*/_jsxs(TouchableOpacity, {
92
+ style: [styles.option, {
93
+ paddingVertical: sizeConfig.paddingHorizontal,
94
+ borderBottomColor: `${theme.colors.textSecondary}1A`
95
+ }],
96
+ accessibilityLabel: opt.label,
97
+ accessibilityState: {
98
+ selected: value === opt.value
99
+ },
100
+ onPress: () => {
101
+ onValueChange(opt.value);
102
+ setIsOpen(false);
103
+ },
104
+ children: [/*#__PURE__*/_jsx(Text, {
105
+ style: [styles.optionText, {
106
+ fontSize: sizeConfig.fontSize,
107
+ fontFamily: theme.typography.medium
108
+ }, value === opt.value ? {
109
+ color: theme.colors.accent,
110
+ fontFamily: theme.typography.semiBold
111
+ } : {
112
+ color: theme.colors.textSecondary
113
+ }],
114
+ children: opt.label
115
+ }), value === opt.value && /*#__PURE__*/_jsx(View, {
116
+ style: [styles.checkDot, {
117
+ backgroundColor: theme.colors.accent
118
+ }]
119
+ })]
120
+ }, opt.value))
121
+ })]
122
+ });
123
+ }
124
+ const styles = StyleSheet.create({
125
+ wrapper: {
126
+ marginBottom: 16,
127
+ width: '100%'
128
+ },
129
+ label: {},
130
+ trigger: {},
131
+ contentContainer: {
132
+ flex: 1,
133
+ justifyContent: 'center'
134
+ },
135
+ text: {},
136
+ option: {
137
+ flexDirection: 'row',
138
+ alignItems: 'center',
139
+ justifyContent: 'space-between',
140
+ borderBottomWidth: 1
141
+ },
142
+ optionText: {},
143
+ checkDot: {
144
+ width: 8,
145
+ height: 8,
146
+ borderRadius: 4
147
+ }
148
+ });
149
+ //# sourceMappingURL=FluentGlassSelect.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useState","StyleSheet","TouchableOpacity","Text","View","FluentGlass","FluentGlassSheet","useTheme","resolveSize","resolveRadius","resolveBackwardCompat","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","FluentGlassSelect","value","onValueChange","options","placeholder","label","size","colorScheme","blur","radius","accessibilityLabel","theme","sizeConfig","defaults","compat","resolvedScheme","resolvedRadius","isOpen","setIsOpen","selectedOption","find","opt","children","style","styles","wrapper","color","colors","textSecondary","fontSize","marginLeft","gap","marginBottom","fontFamily","typography","medium","onPress","accessibilityRole","accessibilityState","expanded","trigger","minHeight","borderRadius","borderOpacity","contentContainer","paddingHorizontal","text","regular","textPrimary","visible","onClose","title","height","map","option","paddingVertical","borderBottomColor","selected","optionText","accent","semiBold","checkDot","backgroundColor","create","width","flex","justifyContent","flexDirection","alignItems","borderBottomWidth"],"sourceRoot":"..\\..\\..\\src","sources":["components/FluentGlassSelect.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AACvC,SAASC,UAAU,EAAEC,gBAAgB,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AACvE,OAAOC,WAAW,MAAM,eAAe;AACvC,OAAOC,gBAAgB,MAAM,oBAAoB;AACjD,OAAOC,QAAQ,MAAM,mBAAmB;AACxC,SAASC,WAAW,EAAsBC,aAAa,EAAEC,qBAAqB,QAAQ,oBAAoB;;AAE1G;AACA;AACA;AACA;AAHA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA,EAAAC,Q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CAAC,CACrI;UAAAN,QAAA,EACGD,GAAG,CAAChB;QAAK,CACR,CAAC,EACNJ,KAAK,KAAKoB,GAAG,CAACpB,KAAK,iBAAIN,IAAA,CAACR,IAAI;UAACoC,KAAK,EAAE,CAACC,MAAM,CAACqC,QAAQ,EAAE;YAAEC,eAAe,EAAEnD,KAAK,CAACgB,MAAM,CAACgC;UAAO,CAAC;QAAE,CAAE,CAAC;MAAA,GAhB/FtC,GAAG,CAACpB,KAiBK,CACrB;IAAC,CACY,CAAC;EAAA,CACrB,CAAC;AAEX;AAEA,MAAMuB,MAAM,GAAGxC,UAAU,CAAC+E,MAAM,CAAC;EAC7BtC,OAAO,EAAE;IACLO,YAAY,EAAE,EAAE;IAChBgC,KAAK,EAAE;EACX,CAAC;EACD3D,KAAK,EAAE,CAAC,CAAC;EACTmC,OAAO,EAAE,CAAC,CAAC;EACXI,gBAAgB,EAAE;IACdqB,IAAI,EAAE,CAAC;IACPC,cAAc,EAAE;EACpB,CAAC;EACDpB,IAAI,EAAE,CAAC,CAAC;EACRQ,MAAM,EAAE;IACJa,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBF,cAAc,EAAE,eAAe;IAC/BG,iBAAiB,EAAE;EACvB,CAAC;EACDX,UAAU,EAAE,CAAC,CAAC;EACdG,QAAQ,EAAE;IACNG,KAAK,EAAE,CAAC;IACRZ,MAAM,EAAE,CAAC;IACTV,YAAY,EAAE;EAClB;AACJ,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+
3
+ import React from 'react';
4
+ import { StyleSheet } from 'react-native';
5
+ import { LinearGradient } from 'expo-linear-gradient';
6
+ import useTheme from '../theme/useTheme';
7
+ import { jsx as _jsx } from "react/jsx-runtime";
8
+ /**
9
+ * FluentGlassSeparator (Component)
10
+ * A subtle gradient line to divide content.
11
+ */
12
+ export default function FluentGlassSeparator({
13
+ orientation = 'horizontal',
14
+ style,
15
+ opacity = 0.2
16
+ }) {
17
+ const theme = useTheme();
18
+ const COLORS = theme.colors;
19
+ const isHorizontal = orientation === 'horizontal';
20
+ return /*#__PURE__*/_jsx(LinearGradient, {
21
+ accessible: false,
22
+ colors: ['transparent', COLORS.textSecondary, 'transparent'],
23
+ start: isHorizontal ? {
24
+ x: 0,
25
+ y: 0
26
+ } : {
27
+ x: 0,
28
+ y: 0
29
+ },
30
+ end: isHorizontal ? {
31
+ x: 1,
32
+ y: 0
33
+ } : {
34
+ x: 0,
35
+ y: 1
36
+ },
37
+ style: [styles.container, isHorizontal ? styles.horizontal : styles.vertical, {
38
+ opacity
39
+ }, style]
40
+ });
41
+ }
42
+ const styles = StyleSheet.create({
43
+ container: {
44
+ // Shared
45
+ },
46
+ horizontal: {
47
+ width: '100%',
48
+ height: 1,
49
+ marginVertical: 16
50
+ },
51
+ vertical: {
52
+ width: 1,
53
+ height: '100%',
54
+ marginHorizontal: 16
55
+ }
56
+ });
57
+ //# sourceMappingURL=FluentGlassSeparator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","StyleSheet","LinearGradient","useTheme","jsx","_jsx","FluentGlassSeparator","orientation","style","opacity","theme","COLORS","colors","isHorizontal","accessible","textSecondary","start","x","y","end","styles","container","horizontal","vertical","create","width","height","marginVertical","marginHorizontal"],"sourceRoot":"..\\..\\..\\src","sources":["components/FluentGlassSeparator.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,QAAoC,cAAc;AACrE,SAASC,cAAc,QAAQ,sBAAsB;AACrD,OAAOC,QAAQ,MAAM,mBAAmB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAQzC;AACA;AACA;AACA;AACA,eAAe,SAASC,oBAAoBA,CAAC;EAAEC,WAAW,GAAG,YAAY;EACrEC,KAAK;EACLC,OAAO,GAAG;AAAgC,CAAC,EAAE;EAC7C,MAAMC,KAAK,GAAGP,QAAQ,CAAC,CAAC;EACxB,MAAMQ,MAAM,GAAGD,KAAK,CAACE,MAAM;EAE3B,MAAMC,YAAY,GAAGN,WAAW,KAAK,YAAY;EAEjD,oBACIF,IAAA,CAACH,cAAc;IACXY,UAAU,EAAE,KAAM;IAClBF,MAAM,EAAE,CAAC,aAAa,EAAED,MAAM,CAACI,aAAa,EAAE,aAAa,CAAE;IAC7DC,KAAK,EAAEH,YAAY,GAAG;MAAEI,CAAC,EAAE,CAAC;MAAEC,CAAC,EAAE;IAAE,CAAC,GAAG;MAAED,CAAC,EAAE,CAAC;MAAEC,CAAC,EAAE;IAAE,CAAE;IACtDC,GAAG,EAAEN,YAAY,GAAG;MAAEI,CAAC,EAAE,CAAC;MAAEC,CAAC,EAAE;IAAE,CAAC,GAAG;MAAED,CAAC,EAAE,CAAC;MAAEC,CAAC,EAAE;IAAE,CAAE;IACpDV,KAAK,EAAE,CACHY,MAAM,CAACC,SAAS,EAChBR,YAAY,GAAGO,MAAM,CAACE,UAAU,GAAGF,MAAM,CAACG,QAAQ,EAClD;MAAEd;IAAQ,CAAC,EACXD,KAAK;EACP,CACL,CAAC;AAEV;AAEA,MAAMY,MAAM,GAAGnB,UAAU,CAACuB,MAAM,CAAC;EAC7BH,SAAS,EAAE;IACP;EAAA,CACH;EACDC,UAAU,EAAE;IACRG,KAAK,EAAE,MAAM;IACbC,MAAM,EAAE,CAAC;IACTC,cAAc,EAAE;EACpB,CAAC;EACDJ,QAAQ,EAAE;IACNE,KAAK,EAAE,CAAC;IACRC,MAAM,EAAE,MAAM;IACdE,gBAAgB,EAAE;EACtB;AACJ,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,183 @@
1
+ "use strict";
2
+
3
+ import React, { useEffect, useState, useCallback } from 'react';
4
+ import { StyleSheet, Modal, View, TouchableWithoutFeedback, Text, Dimensions } from 'react-native';
5
+ import { GestureDetector, Gesture } from 'react-native-gesture-handler';
6
+ import Animated, { useSharedValue, useAnimatedStyle, withSpring, withTiming, runOnJS, interpolate, Extrapolation } from 'react-native-reanimated';
7
+ import FluentGlass from './FluentGlass';
8
+ import useTheme from '../theme/useTheme';
9
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
10
+ const SCREEN_HEIGHT = Dimensions.get('window').height;
11
+ const SPRING_CONFIG = {
12
+ damping: 30,
13
+ stiffness: 120
14
+ };
15
+ export default function FluentGlassSheet({
16
+ visible,
17
+ onClose,
18
+ children,
19
+ title,
20
+ height = '50%',
21
+ size // pass size prop specifically inherited from selects
22
+ }) {
23
+ const {
24
+ colors,
25
+ typography
26
+ } = useTheme();
27
+
28
+ // Internal state to keep Modal visible during exit animation
29
+ const [isVisibleInternal, setIsVisibleInternal] = useState(false);
30
+
31
+ // Shared value for vertical translation
32
+ // 0 = fully open, SCREEN_HEIGHT = fully closed
33
+ const translateY = useSharedValue(SCREEN_HEIGHT);
34
+ const context = useSharedValue({
35
+ y: 0
36
+ });
37
+ const closeModal = useCallback(() => {
38
+ 'worklet';
39
+
40
+ translateY.value = withTiming(SCREEN_HEIGHT, {
41
+ duration: 300
42
+ }, finished => {
43
+ if (finished) {
44
+ runOnJS(setIsVisibleInternal)(false);
45
+ runOnJS(onClose)();
46
+ }
47
+ });
48
+ }, [onClose, translateY]);
49
+ useEffect(() => {
50
+ if (visible) {
51
+ setIsVisibleInternal(true);
52
+ // Wait a tick for Modal to mount content, then animate in
53
+ // Using a slight delay ensures layout is ready
54
+ setTimeout(() => {
55
+ translateY.value = withSpring(0, SPRING_CONFIG);
56
+ }, 10);
57
+ } else if (!visible && isVisibleInternal) {
58
+ // Trigger exit animation if visible prop becomes false
59
+ translateY.value = withTiming(SCREEN_HEIGHT, {
60
+ duration: 300
61
+ }, () => {
62
+ runOnJS(setIsVisibleInternal)(false);
63
+ });
64
+ }
65
+ }, [visible]);
66
+ const gesture = Gesture.Pan().onStart(() => {
67
+ context.value = {
68
+ y: translateY.value
69
+ };
70
+ }).onUpdate(event => {
71
+ // Only allow dragging downwards
72
+ translateY.value = Math.max(0, context.value.y + event.translationY);
73
+ }).onEnd(event => {
74
+ if (event.translationY > 100 || event.velocityY > 500) {
75
+ // Dragged far enough clearly or flicked down -> Close
76
+ runOnJS(onClose)(); // This triggers the useEffect logic above
77
+ } else {
78
+ // Spring back to open
79
+ translateY.value = withSpring(0, SPRING_CONFIG);
80
+ }
81
+ });
82
+ const animatedStyle = useAnimatedStyle(() => ({
83
+ transform: [{
84
+ translateY: translateY.value
85
+ }]
86
+ }));
87
+ const backdropStyle = useAnimatedStyle(() => ({
88
+ opacity: interpolate(translateY.value, [0, SCREEN_HEIGHT], [1, 0], Extrapolation.CLAMP)
89
+ }));
90
+ if (!isVisibleInternal) return null;
91
+ return /*#__PURE__*/_jsx(Modal, {
92
+ transparent: true,
93
+ visible: isVisibleInternal,
94
+ animationType: "none",
95
+ children: /*#__PURE__*/_jsxs(View, {
96
+ style: styles.overlay,
97
+ children: [/*#__PURE__*/_jsx(TouchableWithoutFeedback, {
98
+ onPress: onClose,
99
+ accessibilityRole: "button",
100
+ accessibilityLabel: "Close sheet",
101
+ children: /*#__PURE__*/_jsx(Animated.View, {
102
+ style: [StyleSheet.absoluteFill, styles.backdrop, {
103
+ backgroundColor: colors.overlay
104
+ }, backdropStyle]
105
+ })
106
+ }), /*#__PURE__*/_jsx(GestureDetector, {
107
+ gesture: gesture,
108
+ children: /*#__PURE__*/_jsx(Animated.View, {
109
+ style: [styles.sheetContainer, {
110
+ height
111
+ }, animatedStyle],
112
+ accessibilityViewIsModal: true,
113
+ children: /*#__PURE__*/_jsxs(FluentGlass, {
114
+ style: styles.content,
115
+ intensity: 30,
116
+ borderOpacity: 0.2,
117
+ borderRadius: 24,
118
+ children: [/*#__PURE__*/_jsx(View, {
119
+ style: styles.handleContainer,
120
+ children: /*#__PURE__*/_jsx(View, {
121
+ style: [styles.handle, {
122
+ backgroundColor: `${colors.textPrimary}33`
123
+ }]
124
+ })
125
+ }), title && /*#__PURE__*/_jsx(View, {
126
+ style: [styles.header, {
127
+ borderBottomColor: `${colors.textPrimary}1A`
128
+ }],
129
+ children: /*#__PURE__*/_jsx(Text, {
130
+ style: [styles.title, {
131
+ color: colors.textPrimary,
132
+ fontFamily: typography.semiBold
133
+ }],
134
+ children: title
135
+ })
136
+ }), /*#__PURE__*/_jsx(View, {
137
+ style: styles.body,
138
+ children: children
139
+ })]
140
+ })
141
+ })
142
+ })]
143
+ })
144
+ });
145
+ }
146
+ const styles = StyleSheet.create({
147
+ overlay: {
148
+ flex: 1,
149
+ justifyContent: 'flex-end'
150
+ },
151
+ backdrop: {},
152
+ sheetContainer: {
153
+ width: '100%'
154
+ },
155
+ content: {
156
+ flex: 1,
157
+ borderBottomLeftRadius: 0,
158
+ borderBottomRightRadius: 0
159
+ },
160
+ handleContainer: {
161
+ alignItems: 'center',
162
+ paddingVertical: 12,
163
+ width: '100%'
164
+ },
165
+ handle: {
166
+ width: 40,
167
+ height: 4,
168
+ borderRadius: 2
169
+ },
170
+ header: {
171
+ paddingHorizontal: 20,
172
+ paddingBottom: 10,
173
+ borderBottomWidth: 1
174
+ },
175
+ title: {
176
+ fontSize: 18
177
+ },
178
+ body: {
179
+ flex: 1,
180
+ padding: 20
181
+ }
182
+ });
183
+ //# sourceMappingURL=FluentGlassSheet.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useEffect","useState","useCallback","StyleSheet","Modal","View","TouchableWithoutFeedback","Text","Dimensions","GestureDetector","Gesture","Animated","useSharedValue","useAnimatedStyle","withSpring","withTiming","runOnJS","interpolate","Extrapolation","FluentGlass","useTheme","jsx","_jsx","jsxs","_jsxs","SCREEN_HEIGHT","get","height","SPRING_CONFIG","damping","stiffness","FluentGlassSheet","visible","onClose","children","title","size","colors","typography","isVisibleInternal","setIsVisibleInternal","translateY","context","y","closeModal","value","duration","finished","setTimeout","gesture","Pan","onStart","onUpdate","event","Math","max","translationY","onEnd","velocityY","animatedStyle","transform","backdropStyle","opacity","CLAMP","transparent","animationType","style","styles","overlay","onPress","accessibilityRole","accessibilityLabel","absoluteFill","backdrop","backgroundColor","sheetContainer","accessibilityViewIsModal","content","intensity","borderOpacity","borderRadius","handleContainer","handle","textPrimary","header","borderBottomColor","color","fontFamily","semiBold","body","create","flex","justifyContent","width","borderBottomLeftRadius","borderBottomRightRadius","alignItems","paddingVertical","paddingHorizontal","paddingBottom","borderBottomWidth","fontSize","padding"],"sourceRoot":"..\\..\\..\\src","sources":["components/FluentGlassSheet.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,QAAQ,EAAEC,WAAW,QAAQ,OAAO;AAC/D,SAASC,UAAU,EAAEC,KAAK,EAAEC,IAAI,EAAEC,wBAAwB,EAAEC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AAClG,SAASC,eAAe,EAAEC,OAAO,QAAQ,8BAA8B;AACvE,OAAOC,QAAQ,IACXC,cAAc,EACdC,gBAAgB,EAChBC,UAAU,EACVC,UAAU,EACVC,OAAO,EACPC,WAAW,EACXC,aAAa,QACV,yBAAyB;AAChC,OAAOC,WAAW,MAAM,eAAe;AACvC,OAAOC,QAAQ,MAAM,mBAAmB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEzC,MAAMC,aAAa,GAAGjB,UAAU,CAACkB,GAAG,CAAC,QAAQ,CAAC,CAACC,MAAM;AAErD,MAAMC,aAAa,GAAG;EAAEC,OAAO,EAAE,EAAE;EAAEC,SAAS,EAAE;AAAI,CAAC;AAarD,eAAe,SAASC,gBAAgBA,CAAC;EACrCC,OAAO;EACPC,OAAO;EACPC,QAAQ;EACRC,KAAK;EACLR,MAAM,GAAG,KAAK;EACdS,IAAI,CAAE;AACa,CAAC,EAAE;EACtB,MAAM;IAAEC,MAAM;IAAEC;EAAW,CAAC,GAAGlB,QAAQ,CAAC,CAAC;;EAEzC;EACA,MAAM,CAACmB,iBAAiB,EAAEC,oBAAoB,CAAC,GAAGvC,QAAQ,CAAC,KAAK,CAAC;;EAEjE;EACA;EACA,MAAMwC,UAAU,GAAG7B,cAAc,CAACa,aAAa,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