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,89 @@
1
+ "use strict";
2
+
3
+ import React from 'react';
4
+ import { StyleSheet, View } from 'react-native';
5
+ import { BlurView } from 'expo-blur';
6
+ import useTheme from '../theme/useTheme';
7
+ import { resolveColorScheme, resolveBlur, resolveRadius, resolveBackwardCompat } from '../theme/resolvers';
8
+
9
+ /**
10
+ * FluentGlass (Atom)
11
+ * The fundamental building block for the FluentGlass Core.
12
+ * Provides the "glass" material with configurable intensity and border.
13
+ *
14
+ * @param {string} colorScheme - 'default' | 'dark' | 'deep' | 'light' | 'success' | 'error' | 'warning' | 'info'
15
+ * @param {string} blur - 'none' | 'subtle' | 'medium' | 'strong' | 'max'
16
+ * @param {string} radius - 'none' | 'sm' | 'md' | 'lg' | 'pill'
17
+ * @param {number} borderOpacity - Border opacity (0-1)
18
+ *
19
+ * Legacy props (backward compat): tint, intensity, borderRadius
20
+ */
21
+ import { jsx as _jsx } from "react/jsx-runtime";
22
+ export default function FluentGlass({
23
+ children,
24
+ style,
25
+ // New standardized props
26
+ colorScheme,
27
+ blur,
28
+ radius,
29
+ // Legacy props (backward compat)
30
+ intensity,
31
+ tint,
32
+ borderOpacity = 0.2,
33
+ borderRadius,
34
+ // Accessibility props
35
+ accessible,
36
+ accessibilityRole,
37
+ accessibilityLabel,
38
+ accessibilityHint,
39
+ accessibilityState,
40
+ accessibilityValue,
41
+ accessibilityViewIsModal
42
+ }) {
43
+ const theme = useTheme();
44
+
45
+ // Resolve backward compatibility
46
+ const compat = resolveBackwardCompat({
47
+ tint,
48
+ intensity,
49
+ colorScheme,
50
+ blur
51
+ });
52
+ const resolvedColorScheme = compat.colorScheme || theme.defaults.colorScheme;
53
+ const resolvedBlur = compat.blur || theme.defaults.blur;
54
+ const colorConfig = resolveColorScheme(theme, resolvedColorScheme);
55
+ const blurConfig = resolveBlur(theme, resolvedBlur);
56
+ const resolvedRadius = borderRadius ?? resolveRadius(theme, radius || 'lg');
57
+ return /*#__PURE__*/_jsx(View, {
58
+ accessible: accessible,
59
+ accessibilityRole: accessibilityRole,
60
+ accessibilityLabel: accessibilityLabel,
61
+ accessibilityHint: accessibilityHint,
62
+ accessibilityState: accessibilityState,
63
+ accessibilityValue: accessibilityValue,
64
+ accessibilityViewIsModal: accessibilityViewIsModal,
65
+ style: [styles.container, {
66
+ borderRadius: resolvedRadius,
67
+ borderColor: colorConfig.border || theme.colors.border,
68
+ backgroundColor: colorConfig.bg
69
+ }, style],
70
+ children: /*#__PURE__*/_jsx(BlurView, {
71
+ intensity: blurConfig.intensity,
72
+ tint: colorConfig.tint,
73
+ style: styles.blur,
74
+ children: children
75
+ })
76
+ });
77
+ }
78
+ const styles = StyleSheet.create({
79
+ container: {
80
+ overflow: 'hidden',
81
+ borderWidth: 1
82
+ },
83
+ blur: {
84
+ flex: 1,
85
+ width: '100%',
86
+ height: '100%'
87
+ }
88
+ });
89
+ //# sourceMappingURL=FluentGlass.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","StyleSheet","View","BlurView","useTheme","resolveColorScheme","resolveBlur","resolveRadius","resolveBackwardCompat","jsx","_jsx","FluentGlass","children","style","colorScheme","blur","radius","intensity","tint","borderOpacity","borderRadius","accessible","accessibilityRole","accessibilityLabel","accessibilityHint","accessibilityState","accessibilityValue","accessibilityViewIsModal","theme","compat","resolvedColorScheme","defaults","resolvedBlur","colorConfig","blurConfig","resolvedRadius","styles","container","borderColor","border","colors","backgroundColor","bg","create","overflow","borderWidth","flex","width","height"],"sourceRoot":"..\\..\\..\\src","sources":["components/FluentGlass.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,SAASC,QAAQ,QAAQ,WAAW;AACpC,OAAOC,QAAQ,MAAM,mBAAmB;AACxC,SAASC,kBAAkB,EAAEC,WAAW,EAAEC,aAAa,EAAEC,qBAAqB,QAAQ,oBAAoB;;AAE1G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAXA,SAAAC,GAAA,IAAAC,IAAA;AAwBA,eAAe,SAASC,WAAWA,CAAC;EAChCC,QAAQ;EACRC,KAAK;EACL;EACAC,WAAW;EACXC,IAAI;EACJC,MAAM;EACN;EACAC,SAAS;EACTC,IAAI;EACJC,a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EiB,UAAU,CAACjB,SAAU;MAChCC,IAAI,EAAEe,WAAW,CAACf,IAAK;MACvBL,KAAK,EAAEuB,MAAM,CAACrB,IAAK;MAAAH,QAAA,EAElBA;IAAQ,CACH;EAAC,CACT,CAAC;AAEf;AAEA,MAAMwB,MAAM,GAAGnC,UAAU,CAAC0C,MAAM,CAAC;EAC7BN,SAAS,EAAE;IACPO,QAAQ,EAAE,QAAQ;IAClBC,WAAW,EAAE;EACjB,CAAC;EACD9B,IAAI,EAAE;IACF+B,IAAI,EAAE,CAAC;IACPC,KAAK,EAAE,MAAM;IACbC,MAAM,EAAE;EACZ;AACJ,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,121 @@
1
+ "use strict";
2
+
3
+ import React from 'react';
4
+ import { StyleSheet, View, Text } from 'react-native';
5
+ import FluentGlass from './FluentGlass';
6
+ import useTheme from '../theme/useTheme';
7
+ import { resolveSize, resolveColorScheme, resolveRadius, resolveBackwardCompat } from '../theme/resolvers';
8
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
+ const ALERT_ICONS = {
10
+ success: '✓',
11
+ error: '✕',
12
+ warning: '⚠',
13
+ info: 'ℹ'
14
+ };
15
+ export default function FluentGlassAlert({
16
+ // New standardized props
17
+ colorScheme,
18
+ size,
19
+ blur,
20
+ radius,
21
+ // Legacy props
22
+ type = 'info',
23
+ title,
24
+ message,
25
+ style,
26
+ accessibilityLabel
27
+ }) {
28
+ const theme = useTheme();
29
+
30
+ // Resolve backward compat: type → colorScheme
31
+ const compat = resolveBackwardCompat({
32
+ type,
33
+ colorScheme,
34
+ blur
35
+ });
36
+ const resolvedScheme = compat.colorScheme || 'info';
37
+ const colorConfig = resolveColorScheme(theme, resolvedScheme);
38
+ const sizeConfig = resolveSize(theme, size || theme.defaults.size);
39
+ const resolvedRadius = resolveRadius(theme, radius || 'md');
40
+ const icon = ALERT_ICONS[resolvedScheme] || ALERT_ICONS.info;
41
+ return /*#__PURE__*/_jsx(FluentGlass, {
42
+ style: [styles.container, {
43
+ backgroundColor: colorConfig.bg,
44
+ borderColor: colorConfig.border
45
+ }, style],
46
+ colorScheme: "dark",
47
+ blur: compat.blur || 'subtle',
48
+ borderRadius: resolvedRadius,
49
+ borderOpacity: 0,
50
+ accessible: true,
51
+ accessibilityRole: "alert",
52
+ accessibilityLabel: accessibilityLabel ?? [title, message].filter(Boolean).join('. '),
53
+ children: /*#__PURE__*/_jsxs(View, {
54
+ style: [styles.content, {
55
+ padding: sizeConfig.paddingHorizontal,
56
+ gap: (sizeConfig.gap ?? 0) + 4
57
+ }],
58
+ children: [/*#__PURE__*/_jsx(View, {
59
+ style: [styles.iconCircle, {
60
+ backgroundColor: `${colorConfig.solid}22`,
61
+ borderColor: colorConfig.solid,
62
+ width: sizeConfig.minHeight * 0.75,
63
+ height: sizeConfig.minHeight * 0.75,
64
+ borderRadius: sizeConfig.minHeight * 0.375
65
+ }],
66
+ children: /*#__PURE__*/_jsx(Text, {
67
+ style: [styles.icon, {
68
+ color: colorConfig.solid,
69
+ fontSize: sizeConfig.fontSize - 1,
70
+ fontFamily: theme.typography.extraBold
71
+ }],
72
+ children: icon
73
+ })
74
+ }), /*#__PURE__*/_jsxs(View, {
75
+ style: styles.textArea,
76
+ children: [title ? /*#__PURE__*/_jsx(Text, {
77
+ style: [styles.title, {
78
+ color: theme.colors.textPrimary,
79
+ fontSize: sizeConfig.fontSize,
80
+ fontFamily: theme.typography.bold
81
+ }],
82
+ children: title
83
+ }) : null, message ? /*#__PURE__*/_jsx(Text, {
84
+ style: [styles.message, {
85
+ color: theme.colors.textSecondary,
86
+ fontSize: sizeConfig.fontSize - 2
87
+ }],
88
+ children: message
89
+ }) : null]
90
+ })]
91
+ })
92
+ });
93
+ }
94
+ const styles = StyleSheet.create({
95
+ container: {
96
+ borderWidth: 1
97
+ },
98
+ content: {
99
+ flexDirection: 'row',
100
+ alignItems: 'center'
101
+ },
102
+ iconCircle: {
103
+ borderWidth: 1.5,
104
+ alignItems: 'center',
105
+ justifyContent: 'center'
106
+ },
107
+ icon: {
108
+ fontWeight: '800'
109
+ },
110
+ textArea: {
111
+ flex: 1
112
+ },
113
+ title: {
114
+ fontWeight: '700'
115
+ },
116
+ message: {
117
+ marginTop: 2,
118
+ lineHeight: 18
119
+ }
120
+ });
121
+ //# sourceMappingURL=FluentGlassAlert.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","StyleSheet","View","Text","FluentGlass","useTheme","resolveSize","resolveColorScheme","resolveRadius","resolveBackwardCompat","jsx","_jsx","jsxs","_jsxs","ALERT_ICONS","success","error","warning","info","FluentGlassAlert","colorScheme","size","blur","radius","type","title","message","style","accessibilityLabel","theme","compat","resolvedScheme","colorConfig","sizeConfig","defaults","resolvedRadius","icon","styles","container","backgroundColor","bg","borderColor","border","borderRadius","borderOpacity","accessible","accessibilityRole","filter","Boolean","join","children","content","padding","paddingHorizontal","gap","iconCircle","solid","width","minHeight","height","color","fontSize","fontFamily","typography","extraBold","textArea","colors","textPrimary","bold","textSecondary","create","borderWidth","flexDirection","alignItems","justifyContent","fontWeight","flex","marginTop","lineHeight"],"sourceRoot":"..\\..\\..\\src","sources":["components/FluentGlassAlert.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAA8B,cAAc;AAC3E,OAAOC,WAAW,MAAM,eAAe;AACvC,OAAOC,QAAQ,MAAM,mBAAmB;AACxC,SAASC,WAAW,EAAEC,kBAAkB,EAAEC,aAAa,EAAEC,qBAAqB,QAAQ,oBAAoB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAW3G,MAAMC,WAAmC,GAAG;EACxCC,OAAO,EAAE,GAAG;EACZC,KAAK,EAAE,GAAG;EACVC,OAAO,EAAE,GAAG;EACZC,IAAI,EAAE;AACV,CAAC;AAED,eAAe,SAASC,gBAAgBA,CAAC;EAAE;EACvCC,WAAW;EACXC,IAA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E,CAACU,MAAM,CAACX,OAAO,EAAE;YAAEkC,KAAK,EAAE/B,KAAK,CAACqC,MAAM,CAACG,aAAa;YAAER,QAAQ,EAAE5B,UAAU,CAAC4B,QAAQ,GAAG;UAAE,CAAC,CAAE;UAAAX,QAAA,EACnGxB;QAAO,CACN,CAAC,GACP,IAAI;MAAA,CACN,CAAC;IAAA,CACL;EAAC,CACE,CAAC;AAEtB;AAEA,MAAMW,MAAM,GAAGpC,UAAU,CAACqE,MAAM,CAAC;EAC7BhC,SAAS,EAAE;IACPiC,WAAW,EAAE;EACjB,CAAC;EACDpB,OAAO,EAAE;IACLqB,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE;EAChB,CAAC;EACDlB,UAAU,EAAE;IACRgB,WAAW,EAAE,GAAG;IAChBE,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EACpB,CAAC;EACDtC,IAAI,EAAE;IACFuC,UAAU,EAAE;EAChB,CAAC;EACDV,QAAQ,EAAE;IACNW,IAAI,EAAE;EACV,CAAC;EACDnD,KAAK,EAAE;IACHkD,UAAU,EAAE;EAChB,CAAC;EACDjD,OAAO,EAAE;IACLmD,SAAS,EAAE,CAAC;IACZC,UAAU,EAAE;EAChB;AACJ,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,119 @@
1
+ "use strict";
2
+
3
+ import React from 'react';
4
+ import { StyleSheet, Text, View } from 'react-native';
5
+ import FluentGlass from './FluentGlass';
6
+ import useTheme from '../theme/useTheme';
7
+ import { resolveSize, resolveColorScheme, resolveBackwardCompat } from '../theme/resolvers';
8
+
9
+ /**
10
+ * FluentGlassBadge (Atom)
11
+ * Glassmorphism badge with variants: default, secondary, outline, destructive.
12
+ * Pill-shaped, compact label for status or categorization.
13
+ *
14
+ * @param {string} size - 'xs' | 'sm' | 'md' | 'lg' | 'xl'
15
+ * @param {string} colorScheme - 'default' | 'info' | 'success' | 'error' | 'warning'
16
+ * @param {string} radius - border radius
17
+ */
18
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
19
+ export default function FluentGlassBadge({
20
+ label,
21
+ variant,
22
+ // mapped via backward compat
23
+ style,
24
+ textStyle,
25
+ icon,
26
+ // New standardized props
27
+ size,
28
+ colorScheme,
29
+ radius = 'pill'
30
+ }) {
31
+ const theme = useTheme();
32
+ const sizeConfig = resolveSize(theme, size || 'xs');
33
+ const compat = resolveBackwardCompat({
34
+ variant,
35
+ colorScheme
36
+ });
37
+ const resolvedScheme = compat.colorScheme || 'default';
38
+ const colorConfig = resolveColorScheme(theme, resolvedScheme);
39
+ const isOutline = variant === 'outline';
40
+ if (isOutline) {
41
+ return /*#__PURE__*/_jsxs(View, {
42
+ accessible: true,
43
+ accessibilityLabel: String(label),
44
+ style: [styles.outlineContainer, {
45
+ height: sizeConfig.minHeight,
46
+ paddingHorizontal: sizeConfig.paddingHorizontal,
47
+ borderColor: colorConfig.border || theme.colors.border
48
+ }, style],
49
+ children: [icon ? /*#__PURE__*/_jsx(View, {
50
+ style: [styles.iconContainer, {
51
+ marginRight: sizeConfig.gap
52
+ }],
53
+ children: icon
54
+ }) : null, /*#__PURE__*/_jsx(Text, {
55
+ style: [styles.text, {
56
+ color: theme.colors.textSecondary,
57
+ fontSize: sizeConfig.fontSize,
58
+ fontFamily: theme.typography.medium
59
+ }, textStyle],
60
+ children: label
61
+ })]
62
+ });
63
+ }
64
+ return /*#__PURE__*/_jsx(FluentGlass, {
65
+ accessible: true,
66
+ accessibilityLabel: String(label),
67
+ style: [styles.container, {
68
+ height: sizeConfig.minHeight
69
+ }, style],
70
+ colorScheme: resolvedScheme,
71
+ blur: "none",
72
+ radius: radius,
73
+ borderOpacity: 0.25,
74
+ children: /*#__PURE__*/_jsxs(View, {
75
+ style: [styles.content, {
76
+ paddingHorizontal: sizeConfig.paddingHorizontal,
77
+ gap: sizeConfig.gap
78
+ }],
79
+ children: [icon ? /*#__PURE__*/_jsx(View, {
80
+ style: styles.iconContainer,
81
+ children: icon
82
+ }) : null, /*#__PURE__*/_jsx(Text, {
83
+ style: [styles.text, {
84
+ color: colorConfig.text || theme.colors.textPrimary,
85
+ fontSize: sizeConfig.fontSize,
86
+ fontFamily: theme.typography.medium
87
+ }, textStyle],
88
+ children: label
89
+ })]
90
+ })
91
+ });
92
+ }
93
+ const styles = StyleSheet.create({
94
+ container: {
95
+ alignSelf: 'flex-start',
96
+ justifyContent: 'center'
97
+ },
98
+ content: {
99
+ flex: 1,
100
+ flexDirection: 'row',
101
+ alignItems: 'center',
102
+ justifyContent: 'center'
103
+ },
104
+ outlineContainer: {
105
+ alignSelf: 'flex-start',
106
+ borderRadius: 20,
107
+ borderWidth: 1,
108
+ flexDirection: 'row',
109
+ alignItems: 'center',
110
+ justifyContent: 'center'
111
+ },
112
+ text: {
113
+ fontWeight: '500'
114
+ },
115
+ iconContainer: {
116
+ // margin normally handled by flex gap
117
+ }
118
+ });
119
+ //# sourceMappingURL=FluentGlassBadge.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","StyleSheet","Text","View","FluentGlass","useTheme","resolveSize","resolveColorScheme","resolveBackwardCompat","jsx","_jsx","jsxs","_jsxs","FluentGlassBadge","label","variant","style","textStyle","icon","size","colorScheme","radius","theme","sizeConfig","compat","resolvedScheme","colorConfig","isOutline","accessible","accessibilityLabel","String","styles","outlineContainer","height","minHeight","paddingHorizontal","borderColor","border","colors","children","iconContainer","marginRight","gap","text","color","textSecondary","fontSize","fontFamily","typography","medium","container","blur","borderOpacity","content","textPrimary","create","alignSelf","justifyContent","flex","flexDirection","alignItems","borderRadius","borderWidth","fontWeight"],"sourceRoot":"..\\..\\..\\src","sources":["components/FluentGlassBadge.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AACrD,OAAOC,WAAW,MAAM,eAAe;AACvC,OAAOC,QAAQ,MAAM,mBAAmB;AACxC,SAASC,WAAW,EAAEC,kBAAkB,EAAEC,qB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AO,CAAC,EAAEhC,SAAS,CAAE;QAAAsB,QAAA,EAC9JzB;MAAK,CACJ,CAAC;IAAA,CACL;EAAC,CACE,CAAC;AAEtB;AAEA,MAAMiB,MAAM,GAAG9B,UAAU,CAACsD,MAAM,CAAC;EAC7BL,SAAS,EAAE;IACPM,SAAS,EAAE,YAAY;IACvBC,cAAc,EAAE;EACpB,CAAC;EACDJ,OAAO,EAAE;IACLK,IAAI,EAAE,CAAC;IACPC,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBH,cAAc,EAAE;EACpB,CAAC;EACDzB,gBAAgB,EAAE;IACdwB,SAAS,EAAE,YAAY;IACvBK,YAAY,EAAE,EAAE;IAChBC,WAAW,EAAE,CAAC;IACdH,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBH,cAAc,EAAE;EACpB,CAAC;EACDd,IAAI,EAAE;IACFoB,UAAU,EAAE;EAChB,CAAC;EACDvB,aAAa,EAAE;IACX;EAAA;AAER,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,281 @@
1
+ "use strict";
2
+
3
+ import React, { useEffect } from 'react';
4
+ import { StyleSheet, View, Text } from 'react-native';
5
+ import Animated, { useSharedValue, useAnimatedStyle, withSpring, withDelay } from 'react-native-reanimated';
6
+ import FluentGlass from './FluentGlass';
7
+ import useTheme from '../theme/useTheme';
8
+ import { moderateScale } from '../utils/responsive';
9
+
10
+ /**
11
+ * FluentGlassBarChart (Component)
12
+ * Glassmorphism bar chart with animated glass bars.
13
+ *
14
+ * Props:
15
+ * data - Array of { label, value, color? }
16
+ * title - Optional chart title
17
+ * height - Chart area height (default 180)
18
+ * showGrid - Show horizontal grid lines (default true)
19
+ * showValues - Show value labels on bars (default true)
20
+ * style - Container style override
21
+ * style - Container style override
22
+ */
23
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
+ // ─── Animated Glass Bar ───
25
+ function Bar({
26
+ value,
27
+ maxValue,
28
+ color,
29
+ label,
30
+ index,
31
+ height,
32
+ showValue
33
+ }) {
34
+ const barHeight = useSharedValue(0);
35
+ const targetHeight = maxValue > 0 ? value / maxValue * height : 0;
36
+ useEffect(() => {
37
+ barHeight.value = withDelay(index * 80, withSpring(targetHeight, {
38
+ mass: 0.6,
39
+ damping: 14,
40
+ stiffness: 100
41
+ }));
42
+ }, [value, maxValue]);
43
+ const animatedBarStyle = useAnimatedStyle(() => ({
44
+ height: barHeight.value
45
+ }));
46
+
47
+ // Create glass-like rgba from the color
48
+ const glassBase = hexToRgba(color, 0.35);
49
+ const glassBorder = hexToRgba(color, 0.5);
50
+ const glassHighlight = hexToRgba(color, 0.6);
51
+ return /*#__PURE__*/_jsx(View, {
52
+ style: styles.barColumn,
53
+ children: /*#__PURE__*/_jsx(View, {
54
+ style: [styles.barTrack, {
55
+ height
56
+ }],
57
+ children: /*#__PURE__*/_jsxs(Animated.View, {
58
+ style: [styles.bar, {
59
+ backgroundColor: glassBase,
60
+ borderColor: glassBorder
61
+ }, animatedBarStyle],
62
+ children: [/*#__PURE__*/_jsx(View, {
63
+ style: [styles.barHighlight, {
64
+ backgroundColor: glassHighlight
65
+ }]
66
+ }), /*#__PURE__*/_jsx(View, {
67
+ style: [styles.barSheen, {
68
+ backgroundColor: hexToRgba(color, 0.12)
69
+ }]
70
+ })]
71
+ })
72
+ })
73
+ });
74
+ }
75
+
76
+ // ─── Hex → RGBA helper ───
77
+ function hexToRgba(hex, alpha) {
78
+ const clean = hex.replace('#', '');
79
+ const r = parseInt(clean.substring(0, 2), 16);
80
+ const g = parseInt(clean.substring(2, 4), 16);
81
+ const b = parseInt(clean.substring(4, 6), 16);
82
+ return `rgba(${r}, ${g}, ${b}, ${alpha})`;
83
+ }
84
+
85
+ // ─── Grid Lines (5 lines: 0%, 25%, 50%, 75%, 100%) ───
86
+ function GridLines({
87
+ height,
88
+ borderSubtle
89
+ }) {
90
+ const percentages = [0, 0.25, 0.5, 0.75, 1];
91
+ return /*#__PURE__*/_jsx(View, {
92
+ style: [StyleSheet.absoluteFill, {
93
+ height
94
+ }],
95
+ children: percentages.map((pct, i) => /*#__PURE__*/_jsx(View, {
96
+ style: [styles.gridLine, {
97
+ bottom: pct * height,
98
+ backgroundColor: borderSubtle
99
+ }]
100
+ }, i))
101
+ });
102
+ }
103
+ export default function FluentGlassBarChart({
104
+ data = [],
105
+ title,
106
+ height = 180,
107
+ showGrid = true,
108
+ showValues = true,
109
+ style
110
+ }) {
111
+ const theme = useTheme();
112
+ const COLORS = theme.colors;
113
+ const typography = theme.typography;
114
+ const maxValue = Math.max(...data.map(d => d.value), 1);
115
+
116
+ // Default colors cycle
117
+ const defaultColors = [COLORS.accent,
118
+ // Cyan
119
+ COLORS.positive,
120
+ // Emerald
121
+ COLORS.purple,
122
+ // Purple
123
+ COLORS.warning,
124
+ // Amber
125
+ COLORS.negative,
126
+ // Red
127
+ COLORS.secondary,
128
+ // Blue
129
+ COLORS.pink // Pink
130
+ ];
131
+ return /*#__PURE__*/_jsxs(FluentGlass, {
132
+ accessible: true,
133
+ accessibilityRole: "summary",
134
+ accessibilityLabel: title ? `Bar chart: ${title}` : 'Bar chart',
135
+ style: [styles.container, style],
136
+ intensity: 18,
137
+ borderRadius: 16,
138
+ borderOpacity: 0.2,
139
+ children: [title && /*#__PURE__*/_jsx(View, {
140
+ style: [styles.titleSection, {
141
+ borderBottomColor: COLORS.borderSubtle
142
+ }],
143
+ children: /*#__PURE__*/_jsx(Text, {
144
+ style: [styles.title, {
145
+ color: COLORS.textPrimary,
146
+ fontFamily: typography.bold
147
+ }],
148
+ children: title
149
+ })
150
+ }), /*#__PURE__*/_jsxs(View, {
151
+ style: styles.chartSection,
152
+ children: [showValues && /*#__PURE__*/_jsx(View, {
153
+ style: styles.valuesRow,
154
+ children: data.map((item, index) => /*#__PURE__*/_jsx(Text, {
155
+ style: [styles.barValue, {
156
+ color: COLORS.textSecondary,
157
+ fontFamily: typography.semiBold
158
+ }],
159
+ children: item.value
160
+ }, index))
161
+ }), /*#__PURE__*/_jsxs(View, {
162
+ style: styles.chartArea,
163
+ children: [showGrid && /*#__PURE__*/_jsx(GridLines, {
164
+ height: height,
165
+ borderSubtle: COLORS.borderSubtle
166
+ }), /*#__PURE__*/_jsx(View, {
167
+ style: [styles.barsRow, {
168
+ height
169
+ }],
170
+ children: data.map((item, index) => /*#__PURE__*/_jsx(Bar, {
171
+ value: item.value,
172
+ maxValue: maxValue,
173
+ color: item.color || defaultColors[index % defaultColors.length],
174
+ label: item.label,
175
+ index: index,
176
+ height: height,
177
+ showValue: false
178
+ }, index))
179
+ })]
180
+ }), /*#__PURE__*/_jsx(View, {
181
+ style: styles.labelsRow,
182
+ children: data.map((item, index) => /*#__PURE__*/_jsx(Text, {
183
+ style: [styles.barLabel, {
184
+ color: COLORS.textSecondary,
185
+ fontFamily: typography.medium
186
+ }],
187
+ numberOfLines: 1,
188
+ children: item.label
189
+ }, index))
190
+ })]
191
+ })]
192
+ });
193
+ }
194
+ const styles = StyleSheet.create({
195
+ container: {},
196
+ // Title — own section with separator
197
+ titleSection: {
198
+ paddingHorizontal: 18,
199
+ paddingTop: 16,
200
+ paddingBottom: 14,
201
+ borderBottomWidth: 1
202
+ },
203
+ title: {
204
+ fontSize: moderateScale(16),
205
+ fontWeight: '700'
206
+ },
207
+ // Chart section
208
+ chartSection: {
209
+ padding: 18
210
+ },
211
+ valuesRow: {
212
+ flexDirection: 'row',
213
+ justifyContent: 'space-around',
214
+ marginBottom: 6,
215
+ gap: 8
216
+ },
217
+ chartArea: {
218
+ position: 'relative'
219
+ },
220
+ barsRow: {
221
+ flexDirection: 'row',
222
+ alignItems: 'flex-end',
223
+ justifyContent: 'space-around',
224
+ gap: 8
225
+ },
226
+ labelsRow: {
227
+ flexDirection: 'row',
228
+ justifyContent: 'space-around',
229
+ marginTop: 8,
230
+ gap: 8
231
+ },
232
+ barColumn: {
233
+ flex: 1,
234
+ alignItems: 'center'
235
+ },
236
+ barTrack: {
237
+ width: '100%',
238
+ justifyContent: 'flex-end',
239
+ alignItems: 'center'
240
+ },
241
+ // Glass bar
242
+ bar: {
243
+ width: '72%',
244
+ borderRadius: 8,
245
+ borderTopLeftRadius: 10,
246
+ borderTopRightRadius: 10,
247
+ minHeight: 4,
248
+ overflow: 'hidden',
249
+ borderWidth: 1
250
+ },
251
+ barHighlight: {
252
+ height: 3,
253
+ width: '100%'
254
+ },
255
+ barSheen: {
256
+ position: 'absolute',
257
+ top: 0,
258
+ left: '50%',
259
+ width: '50%',
260
+ height: '100%'
261
+ },
262
+ barValue: {
263
+ flex: 1,
264
+ fontSize: moderateScale(11, 0.3),
265
+ fontWeight: '600',
266
+ textAlign: 'center'
267
+ },
268
+ barLabel: {
269
+ flex: 1,
270
+ fontSize: moderateScale(11, 0.3),
271
+ fontWeight: '500',
272
+ textAlign: 'center'
273
+ },
274
+ gridLine: {
275
+ position: 'absolute',
276
+ left: 0,
277
+ right: 0,
278
+ height: 1
279
+ }
280
+ });
281
+ //# sourceMappingURL=FluentGlassBarChart.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useEffect","StyleSheet","View","Text","Animated","useSharedValue","useAnimatedStyle","withSpring","withDelay","FluentGlass","useTheme","moderateScale","jsx","_jsx","jsxs","_jsxs","Bar","value","maxValue","color","label","index","height","showValue","barHeight","targetHeight","mass","damping","stiffness","animatedBarStyle","glassBase","hexToRgba","glassBorder","glassHighlight","style","styles","barColumn","children","barTrack","bar","backgroundColor","borderColor","barHighlight","barSheen","hex","alpha","clean","replace","r","parseInt","substring","g","b","GridLines","borderSubtle","percentages","absoluteFill","map","pct","i","gridLine","bottom","FluentGlassBarChart","data","title","showGrid","showValues","theme","COLORS","colors","typography","Math","max","d","defaultColors","accent","positive","purple","warning","negative","secondary","pink","accessible","accessibilityRole","accessibilityLabel","container","intensity","borderRadius","borderOpacity","titleSection","borderBottomColor","textPrimary","fontFamily","bold","chartSection","valuesRow","item","barValue","textSecondary","semiBold","chartArea","barsRow","length","labelsRow","barLabel","medium","numberOfLines","create","paddingHorizontal","paddingTop","paddingBottom","borderBottomWidth","fontSize","fontWeight","padding","flexDirection","justifyContent","marginBottom","gap","position","alignItems","marginTop","flex","width","borderTopLeftRadius","borderTopRightRadius","minHeight","overflow","borderWidth","top","left","textAlign","right"],"sourceRoot":"..\\..\\..\\src","sources":["components/FluentGlassBarChart.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AAExC,SAASC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AACrD,OAAOC,QAAQ,IACXC,cAAc,EACdC,gBAAgB,EAChBC,UAAU,EACVC,SAAS,QACN,yBAAyB;AAChC,OAAOC,WAAW,MAAM,eAAe;AACvC,OAAOC,QAAQ,MAAM,mBAAmB;AACxC,SAASC,aAAa,QAAQ,qBAAqB;;AAEnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAZA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AA8BA;AACA,SAASC,GAAGA,CAAC;EAAEC,KAAK;EAAEC,QAAQ;EAAEC,KAAK;EAAEC,KAAK;EAAEC,KAAK;EAAEC,MAAM;EAAEC;AAAgI,CAAC,EAAE;EAC5L,MAAMC,SAAS,GAAGnB,cAAc,CAAC,CAAC,CAAC;EACnC,MAAMoB,YAAY,GAAGP,QAAQ,GAAG,CAAC,GAAID,KAAK,GAAGC,QAAQ,GAAII,MAAM,GAAG,CAAC;EAEnEtB,SAAS,CAAC,MAAM;IACZwB,SAAS,CAACP,KAAK,GAAGT,SAAS,CACvBa,KAAK,GAAG,EAAE,EACVd,UAAU,CAACkB,YAAY,EAAE;MACrBC,IAAI,EAAE,GAAG;MACTC,OAAO,EAAE,EAAE;MACXC,SAAS,EAAE;IACf,CAAC,CACL,CAAC;EACL,CAAC,EAAE,CAACX,KAAK,EAAEC,QAAQ,CAAC,CAAC;EAErB,MAAMW,gBAAgB,GAAGvB,gBAAgB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