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,150 @@
1
+ "use strict";
2
+
3
+ import React from 'react';
4
+ import { StyleSheet, Text, View, Pressable } from 'react-native';
5
+ import FluentGlass from './FluentGlass';
6
+ import useTheme from '../theme/useTheme';
7
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
8
+ /**
9
+ * FluentGlassBreadcrumb (Molecule)
10
+ * Glassmorphism breadcrumb navigation with two variants:
11
+ * - 'standard': All items visible, last one bold
12
+ * - 'collapsed': Middle items replaced with "..." ellipsis button
13
+ */
14
+ export default function FluentGlassBreadcrumb({
15
+ items = [],
16
+ variant = 'standard',
17
+ separator = '›',
18
+ onExpandCollapsed,
19
+ style
20
+ }) {
21
+ const theme = useTheme();
22
+ const COLORS = theme.colors;
23
+ const typography = theme.typography;
24
+ const visibleItems = getVisibleItems(items, variant);
25
+ return /*#__PURE__*/_jsx(FluentGlass, {
26
+ style: [styles.container, style],
27
+ intensity: 15,
28
+ tint: "dark",
29
+ borderRadius: 16,
30
+ borderOpacity: 0.2,
31
+ children: /*#__PURE__*/_jsx(View, {
32
+ style: styles.content,
33
+ children: visibleItems.map((item, index) => /*#__PURE__*/_jsxs(View, {
34
+ style: styles.itemRow,
35
+ children: [index > 0 ? /*#__PURE__*/_jsx(Text, {
36
+ style: [styles.separator, {
37
+ color: COLORS.textSecondary,
38
+ fontFamily: typography.regular
39
+ }],
40
+ children: separator
41
+ }) : null, item.isEllipsis ? /*#__PURE__*/_jsx(Pressable, {
42
+ onPress: onExpandCollapsed,
43
+ style: [styles.ellipsisBtn, {
44
+ backgroundColor: COLORS.borderSubtle
45
+ }],
46
+ hitSlop: 6,
47
+ children: /*#__PURE__*/_jsx(Text, {
48
+ style: [styles.ellipsisText, {
49
+ color: COLORS.textSecondary,
50
+ fontFamily: typography.bold
51
+ }],
52
+ children: "\xB7\xB7\xB7"
53
+ })
54
+ }) : /*#__PURE__*/_jsx(Pressable, {
55
+ onPress: item.onPress,
56
+ disabled: !item.onPress,
57
+ hitSlop: 4,
58
+ children: /*#__PURE__*/_jsxs(View, {
59
+ style: styles.labelRow,
60
+ children: [item.icon ? /*#__PURE__*/_jsx(Text, {
61
+ style: styles.icon,
62
+ children: item.icon
63
+ }) : null, /*#__PURE__*/_jsx(Text, {
64
+ style: [styles.label, {
65
+ color: COLORS.textSecondary,
66
+ fontFamily: typography.regular
67
+ }, item.isActive && [styles.activeLabel, {
68
+ color: COLORS.textPrimary,
69
+ fontFamily: typography.bold
70
+ }], item.onPress && {
71
+ color: COLORS.textSecondary
72
+ }],
73
+ numberOfLines: 1,
74
+ children: item.label
75
+ })]
76
+ })
77
+ })]
78
+ }, index))
79
+ })
80
+ });
81
+ }
82
+
83
+ /**
84
+ * Determines which items to show based on variant.
85
+ * 'collapsed' shows first, ellipsis, last two.
86
+ */
87
+ function getVisibleItems(items, variant) {
88
+ if (!items.length) return [];
89
+
90
+ // Mark the last item as "active" (current page)
91
+ const withActive = items.map((item, i) => ({
92
+ ...item,
93
+ isActive: i === items.length - 1
94
+ }));
95
+ if (variant === 'collapsed' && items.length > 3) {
96
+ return [withActive[0], {
97
+ label: '',
98
+ isEllipsis: true
99
+ }, withActive[items.length - 2], withActive[items.length - 1]];
100
+ }
101
+ return withActive;
102
+ }
103
+ const styles = StyleSheet.create({
104
+ container: {
105
+ height: 40,
106
+ alignSelf: 'flex-start'
107
+ },
108
+ content: {
109
+ flex: 1,
110
+ flexDirection: 'row',
111
+ alignItems: 'center',
112
+ paddingHorizontal: 16
113
+ },
114
+ itemRow: {
115
+ flexDirection: 'row',
116
+ alignItems: 'center'
117
+ },
118
+ separator: {
119
+ fontSize: 14,
120
+ marginHorizontal: 8,
121
+ fontWeight: '400'
122
+ },
123
+ labelRow: {
124
+ flexDirection: 'row',
125
+ alignItems: 'center'
126
+ },
127
+ icon: {
128
+ fontSize: 14,
129
+ marginRight: 4
130
+ },
131
+ label: {
132
+ fontSize: 14,
133
+ fontWeight: '400'
134
+ },
135
+ activeLabel: {
136
+ fontWeight: '700'
137
+ },
138
+ pressableLabel: {},
139
+ ellipsisBtn: {
140
+ borderRadius: 6,
141
+ paddingHorizontal: 8,
142
+ paddingVertical: 2
143
+ },
144
+ ellipsisText: {
145
+ fontSize: 14,
146
+ fontWeight: '700',
147
+ letterSpacing: 1
148
+ }
149
+ });
150
+ //# sourceMappingURL=FluentGlassBreadcrumb.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","StyleSheet","Text","View","Pressable","FluentGlass","useTheme","jsx","_jsx","jsxs","_jsxs","FluentGlassBreadcrumb","items","variant","separator","onExpandCollapsed","style","theme","COLORS","colors","typography","visibleItems","getVisibleItems","styles","container","intensity","tint","borderRadius","borderOpacity","children","content","map","item","index","itemRow","color","textSecondary","fontFamily","regular","isEllipsis","onPress","ellipsisBtn","backgroundColor","borderSubtle","hitSlop","ellipsisText","bold","disabled","labelRow","icon","label","isActive","activeLabel","textPrimary","numberOfLines","length","withActive","i","create","height","alignSelf","flex","flexDirection","alignItems","paddingHorizontal","fontSize","marginHorizontal","fontWeight","marginRight","pressableLabel","paddingVertical","letterSpacing"],"sourceRoot":"..\\..\\..\\src","sources":["components/FluentGlassBreadcrumb.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,UAAU,EAAEC,IAAI,EAAEC,IAAI,EAAEC,SAAS,QAAmB,cAAc;AAC3E,OAAOC,WAAW,MAAM,eAAe;AACvC,OAAOC,QAAQ,MAAM,mBAAmB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAqBzC;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,SAASC,qBAAqBA,CAAC;EAC1CC,KAAK,GAAG,EAAE;EACVC,OAAO,GAAG,UAAU;EACpBC,SAAS,GAAG,GAAG;EACfC,iBAAiB;EACjBC;AACwB,CAAC,EAAE;EAC3B,MAAMC,KAAK,GAAGX,QAAQ,CAAC,CAAC;EACxB,MAAMY,MAAM,GAAGD,KAAK,CAACE,MAAM;EAC3B,MAAMC,UAAU,GAAGH,KAAK,CAACG,UAAU;EAEnC,MAAMC,YAAY,GAAGC,eAAe,CAACV,KAAK,EAAEC,OAAO,CAAC;EAEpD,oBACIL,IAAA,CAACH,WAAW;IACRW,KAAK,EAAE,CAACO,MAAM,CAAC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
1
+ "use strict";
2
+
3
+ import React from 'react';
4
+ import { StyleSheet, Text, Pressable, View } from 'react-native';
5
+ import Animated, { useSharedValue, useAnimatedStyle, withSpring } from 'react-native-reanimated';
6
+ import FluentGlass from './FluentGlass';
7
+ import useTheme from '../theme/useTheme';
8
+ import { resolveSize, resolveColorScheme, resolveBackwardCompat } from '../theme/resolvers';
9
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
10
+ const AnimatedPressable = Animated.createAnimatedComponent(Pressable);
11
+
12
+ /**
13
+ * FluentGlassButton (Component)
14
+ * Interactive glass button with scale animation and variants.
15
+ *
16
+ * @param {string} size - 'xs' | 'sm' | 'md' | 'lg' | 'xl'
17
+ * @param {string} colorScheme - 'default' | 'dark' | 'info' | 'success' | 'error' | 'warning'
18
+ * @param {string} blur - 'none' | 'subtle' | 'medium' | 'strong' | 'max'
19
+ * @param {string} radius - 'none' | 'sm' | 'md' | 'lg' | 'pill'
20
+ *
21
+ * Legacy props: variant ('primary' | 'secondary' | 'ghost'), intensity, tint
22
+ */
23
+
24
+ export default function FluentGlassButton({
25
+ title,
26
+ onPress,
27
+ // New standardized props
28
+ size,
29
+ colorScheme,
30
+ blur,
31
+ radius,
32
+ // Legacy props
33
+ variant = 'primary',
34
+ style,
35
+ textStyle,
36
+ icon,
37
+ disabled = false,
38
+ intensity,
39
+ tint,
40
+ accessibilityLabel,
41
+ accessibilityHint
42
+ }) {
43
+ const theme = useTheme();
44
+
45
+ // Resolve props
46
+ const sizeConfig = resolveSize(theme, size || theme.defaults.size);
47
+ const compat = resolveBackwardCompat({
48
+ variant,
49
+ intensity,
50
+ tint,
51
+ colorScheme,
52
+ blur
53
+ });
54
+ const resolvedScheme = compat.colorScheme || theme.defaults.colorScheme;
55
+ const resolvedBlur = compat.blur || theme.defaults.blur;
56
+ const scaleAnim = useSharedValue(1);
57
+ const animatedStyle = useAnimatedStyle(() => ({
58
+ transform: [{
59
+ scale: scaleAnim.value
60
+ }]
61
+ }));
62
+ const handlePressIn = () => {
63
+ if (disabled) return;
64
+ scaleAnim.value = withSpring(0.96);
65
+ };
66
+ const handlePressOut = () => {
67
+ if (disabled) return;
68
+ scaleAnim.value = withSpring(1);
69
+ };
70
+
71
+ // Resolve visual styles from colorScheme
72
+ const isGhost = variant === 'ghost' && !colorScheme;
73
+ const colorConfig = resolveColorScheme(theme, resolvedScheme);
74
+ const getButtonStyles = () => {
75
+ if (isGhost) {
76
+ return {
77
+ backgroundColor: 'transparent',
78
+ borderOpacity: 0,
79
+ textColor: theme.colors.textSecondary
80
+ };
81
+ }
82
+
83
+ // For semantic colors (success, error, warning, info), use solid color
84
+ const isSemanticColor = ['success', 'error', 'warning', 'info'].includes(resolvedScheme);
85
+ return {
86
+ backgroundColor: isSemanticColor ? colorConfig.solid : colorConfig.bg,
87
+ borderOpacity: isSemanticColor ? 0.5 : 0.3,
88
+ textColor: isSemanticColor ? theme.colors.white : theme.colors.textPrimary
89
+ };
90
+ };
91
+ const btnStyle = getButtonStyles();
92
+ return /*#__PURE__*/_jsx(AnimatedPressable, {
93
+ onPress: onPress,
94
+ onPressIn: handlePressIn,
95
+ onPressOut: handlePressOut,
96
+ disabled: disabled,
97
+ style: [styles.wrapper, animatedStyle, style],
98
+ accessibilityRole: "button",
99
+ accessibilityLabel: accessibilityLabel ?? title,
100
+ accessibilityHint: accessibilityHint,
101
+ accessibilityState: {
102
+ disabled: !!disabled
103
+ },
104
+ children: isGhost ? /*#__PURE__*/_jsxs(View, {
105
+ style: [styles.content, {
106
+ paddingHorizontal: sizeConfig.paddingHorizontal
107
+ }],
108
+ children: [icon && /*#__PURE__*/_jsx(View, {
109
+ style: styles.iconContainer,
110
+ children: icon
111
+ }), /*#__PURE__*/_jsx(Text, {
112
+ style: [styles.text, {
113
+ color: btnStyle.textColor,
114
+ fontSize: sizeConfig.fontSize,
115
+ fontFamily: theme.typography.semiBold
116
+ }, textStyle],
117
+ children: title
118
+ })]
119
+ }) : /*#__PURE__*/_jsx(FluentGlass, {
120
+ style: [styles.container, {
121
+ backgroundColor: btnStyle.backgroundColor,
122
+ minHeight: sizeConfig.minHeight,
123
+ borderRadius: sizeConfig.borderRadius
124
+ }],
125
+ colorScheme: resolvedScheme,
126
+ blur: resolvedBlur,
127
+ radius: radius,
128
+ borderOpacity: btnStyle.borderOpacity,
129
+ borderRadius: sizeConfig.borderRadius,
130
+ children: /*#__PURE__*/_jsxs(View, {
131
+ style: [styles.content, {
132
+ paddingHorizontal: sizeConfig.paddingHorizontal
133
+ }],
134
+ children: [icon && /*#__PURE__*/_jsx(View, {
135
+ style: styles.iconContainer,
136
+ children: icon
137
+ }), /*#__PURE__*/_jsx(Text, {
138
+ style: [styles.text, {
139
+ color: btnStyle.textColor,
140
+ fontSize: sizeConfig.fontSize,
141
+ fontFamily: theme.typography.semiBold
142
+ }, textStyle],
143
+ children: title
144
+ })]
145
+ })
146
+ })
147
+ });
148
+ }
149
+ const styles = StyleSheet.create({
150
+ wrapper: {
151
+ marginVertical: 4
152
+ },
153
+ container: {
154
+ borderRadius: 12
155
+ },
156
+ content: {
157
+ flex: 1,
158
+ flexDirection: 'row',
159
+ alignItems: 'center',
160
+ justifyContent: 'center'
161
+ },
162
+ text: {
163
+ fontWeight: '600'
164
+ },
165
+ iconContainer: {
166
+ marginRight: 8
167
+ }
168
+ });
169
+ //# sourceMappingURL=FluentGlassButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","StyleSheet","Text","Pressable","View","Animated","useSharedValue","useAnimatedStyle","withSpring","FluentGlass","useTheme","resolveSize","resolveColorScheme","resolveBackwardCompat","jsx","_jsx","jsxs","_jsxs","AnimatedPressable","createAnimatedComponent","FluentGlassButton","title","onPress","size","colorScheme","blur","radius","variant","style","textStyle","icon","disabled","intensity","tint","accessibilityLabel","accessibilityHint","theme","sizeConfig","defaults","compat","resolvedScheme","resolvedBlur","scaleAnim","animatedStyle","transform","scale","value","handlePressIn","handlePressOut","isGhost","colorConfig","getButtonStyles","backgroundColor","borderOpacity","textColor","colors","textSecondary","isSemanticColor","includes","solid","bg","white","textPrimary","btnStyle","onPressIn","onPressOut","styles","wrapper","accessibilityRole","accessibilityState","children","content","paddingHorizontal","iconContainer","text","color","fontSize","fontFamily","typography","semiBold","container","minHeight","borderRadius","create","marginVertical","flex","flexDirection","alignItems","justifyContent","fontWeight","marginRight"],"sourceRoot":"..\\..\\..\\src","sources":["components/FluentGlassButton.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,EAAEC,SAAS,EAAEC,IAAI,QAAQ,cAAc;AAChE,OAAOC,QAAQ,IAAIC,cAAc,EAAEC,gBAAgB,EAAEC,UAAU,QAAQ,yBAAyB;AAChG,OAAOC,WAAW,MAAM,eAAe;AACvC,OAAOC,QAAQ,MAAM,mBAAmB;AACxC,SAASC,WAAW,EAAEC,kBAAkB,EAAEC,qBAAqB,QAAQ,oBAAoB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAE5F,MAAMC,iBAAiB,GAAGb,QAAQ,CAACc,uBAAuB,CAAChB,SAAS,CAAC;;AAErE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAgBA,eAAe,SAASiB,iBAAiBA,CAAC;EACtCC,KAAK;EACLC,OAAO;EACP;EACAC,IAAI;EACJC,WAAW;EACXC,IAAI;EACJC,MAAM;EACN;EACAC,OAAO,GAAG,SAAS;EACnBC,KAAK;EACLC,SAAS;EACTC,IAAI;EACJC,QAAQ,GAAG,KAAK;EAChBC,SAAS;EACTC,IAAI;EACJC,kBAAkB;EAClBC;AACoB,CAAC,EAAE;EACvB,MAAMC,KAAK,GAAG1B,QAAQ,CAAC,CAAC;;EAExB;EACA,MAAM2B,UAAU,GAAG1B,WAAW,CAACyB,KAAK,EAAEb,IAAI,IAAIa,KAAK,CAACE,QAAQ,CAACf,IAAI,CAAC;EAClE,MAAMgB,MAAM,GAAG1B,qBAA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KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EACpB,CAAC;EACDd,IAAI,EAAE;IACFe,UAAU,EAAE;EAChB,CAAC;EACDhB,aAAa,EAAE;IACXiB,WAAW,EAAE;EACjB;AACJ,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,68 @@
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 { moderateScale } from '../utils/responsive';
8
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
+ /**
10
+ * FluentGlassCalendarWidget (Atom/Molecule)
11
+ * Dashboard widget displaying month and day.
12
+ */
13
+ export default function FluentGlassCalendarWidget({
14
+ day = '18',
15
+ month = 'FEB',
16
+ style
17
+ }) {
18
+ const theme = useTheme();
19
+ const COLORS = theme.colors;
20
+ const typography = theme.typography;
21
+ return /*#__PURE__*/_jsx(FluentGlass, {
22
+ accessible: true,
23
+ accessibilityLabel: `${month} ${day}`,
24
+ style: [styles.card, style],
25
+ intensity: 25,
26
+ borderRadius: 20,
27
+ children: /*#__PURE__*/_jsxs(View, {
28
+ style: styles.content,
29
+ children: [/*#__PURE__*/_jsx(Text, {
30
+ style: [styles.redHeader, {
31
+ color: COLORS.negative,
32
+ fontFamily: typography.bold
33
+ }],
34
+ children: month
35
+ }), /*#__PURE__*/_jsx(Text, {
36
+ style: [styles.bigValue, {
37
+ color: COLORS.textPrimary,
38
+ fontFamily: typography.regular
39
+ }],
40
+ children: day
41
+ })]
42
+ })
43
+ });
44
+ }
45
+ const styles = StyleSheet.create({
46
+ card: {
47
+ flex: 1,
48
+ minWidth: 100,
49
+ maxWidth: 140,
50
+ aspectRatio: 1
51
+ },
52
+ content: {
53
+ flex: 1,
54
+ justifyContent: 'center',
55
+ alignItems: 'center'
56
+ },
57
+ redHeader: {
58
+ fontSize: 12,
59
+ fontWeight: 'bold',
60
+ textTransform: 'uppercase',
61
+ marginBottom: 4
62
+ },
63
+ bigValue: {
64
+ fontSize: moderateScale(28),
65
+ fontWeight: '300'
66
+ }
67
+ });
68
+ //# sourceMappingURL=FluentGlassCalendarWidget.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","StyleSheet","View","Text","FluentGlass","useTheme","moderateScale","jsx","_jsx","jsxs","_jsxs","FluentGlassCalendarWidget","day","month","style","theme","COLORS","colors","typography","accessible","accessibilityLabel","styles","card","intensity","borderRadius","children","content","redHeader","color","negative","fontFamily","bold","bigValue","textPrimary","regular","create","flex","minWidth","maxWidth","aspectRatio","justifyContent","alignItems","fontSize","fontWeight","textTransform","marginBottom"],"sourceRoot":"..\\..\\..\\src","sources":["components/FluentGlassCalendarWidget.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAA8B,cAAc;AAC3E,OAAOC,WAAW,MAAM,eAAe;AACvC,OAAOC,QAAQ,MAAM,mBAAmB;AACxC,SAASC,aAAa,QAAQ,qBAAqB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAQpD;AACA;AACA;AACA;AACA,eAAe,SAASC,yBAAyBA,CAAC;EAAEC,GAAG,GAAG,IAAI;EAAEC,KAAK,GAAG,KAAK;EAAEC;AAAsC,CAAC,EAAE;EACpH,MAAMC,KAAK,GAAGV,QAAQ,CAAC,CAAC;EACxB,MAAMW,MAAM,GAAGD,KAAK,CAACE,MAAM;EAC3B,MAAMC,UAAU,GAAGH,KAAK,CAACG,UAAU;EAEnC,oBACIV,IAAA,CAACJ,WAAW;IAACe,UAAU,EAAE,IAAK;IAACC,kBAAkB,EAAE,GAAGP,KAAK,IAAID,GAAG,EAAG;IAACE,KAAK,EAAE,CAACO,MAAM,CAACC,IAAI,EAAER,KAAK,CAAE;IAACS,SAAS,EAAE,EAAG;IAACC,YAAY,EAAE,EAAG;IAAAC,QAAA,eAC/Hf,KAAA,CAACR,IAAI;MAACY,KAAK,EAAEO,MAAM,CAACK,OAAQ;MAAAD,QAAA,gBACxBjB,IAAA,CAACL,IAAI;QAACW,KAAK,EAAE,CAACO,MAAM,CAACM,SAAS,EAAE;UAAEC,KAAK,EAAEZ,MAAM,CAACa,QAAQ;UAAEC,UAAU,EAAEZ,UAAU,CAACa;QAAK,CAAC,CAAE;QAAAN,QAAA,EAAEZ;MAAK,CAAO,CAAC,eACxGL,IAAA,CAACL,IAAI;QAACW,KAAK,EAAE,CAACO,MAAM,CAACW,QAAQ,EAAE;UAAEJ,KAAK,EAAEZ,MAAM,CAACiB,WAAW;UAAEH,UAAU,EAAEZ,UAAU,CAACgB;QAAQ,CAAC,CAAE;QAAAT,QAAA,EAAEb;MAAG,CAAO,CAAC;IAAA,CACzG;EAAC,CACE,CAAC;AAEtB;AAEA,MAAMS,MAAM,GAAGpB,UAAU,CAACkC,MAAM,CAAC;EAC7Bb,IAAI,EAAE;IACFc,IAAI,EAAE,CAAC;IACPC,QAAQ,EAAE,GAAG;IACbC,QAAQ,EAAE,GAAG;IACbC,WAAW,EAAE;EACjB,CAAC;EACDb,OAAO,EAAE;IACLU,IAAI,EAAE,CAAC;IACPI,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE;EAChB,CAAC;EACDd,SAAS,EAAE;IACPe,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,MAAM;IAClBC,aAAa,EAAE,WAAW;IAC1BC,YAAY,EAAE;EAClB,CAAC;EACDb,QAAQ,EAAE;IACNU,QAAQ,EAAEpC,aAAa,CAAC,EAAE,CAAC;IAC3BqC,UAAU,EAAE;EAChB;AACJ,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,190 @@
1
+ "use strict";
2
+
3
+ import React from 'react';
4
+ import { StyleSheet, Text, View } from 'react-native';
5
+ import FluentGlass from './FluentGlass';
6
+ import FluentGlassButton from './FluentGlassButton';
7
+ import useTheme from '../theme/useTheme';
8
+ import { resolveSize, resolveColorScheme, resolveRadius, resolveBackwardCompat } from '../theme/resolvers';
9
+
10
+ /**
11
+ * FluentGlassCard (Organism)
12
+ * Structured glass card with two variants:
13
+ * - 'standard': Title + description + content + optional action
14
+ * - 'featured': Colored header area + icon + title + description + optional action
15
+ *
16
+ * @param {string} size - 'xs' | 'sm' | 'md' | 'lg' | 'xl'
17
+ * @param {string} colorScheme - 'default' | 'dark' | 'info' | 'success' | 'error' | 'warning'
18
+ * @param {string} blur - blur intensity
19
+ * @param {string} radius - border radius
20
+ */
21
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
22
+ export default function FluentGlassCard({
23
+ variant = 'standard',
24
+ // 'standard' | 'featured'
25
+ title,
26
+ description,
27
+ children,
28
+ actionLabel,
29
+ onAction,
30
+ icon,
31
+ // String emoji or React node for featured header
32
+ headerColor,
33
+ // Override header bg color (featured variant)
34
+ style,
35
+ // New standardized props
36
+ size,
37
+ colorScheme,
38
+ blur,
39
+ radius
40
+ }) {
41
+ const theme = useTheme();
42
+ const sizeConfig = resolveSize(theme, size || theme.defaults.size);
43
+ const compat = resolveBackwardCompat({
44
+ colorScheme,
45
+ blur
46
+ });
47
+ const resolvedScheme = compat.colorScheme || theme.defaults.colorScheme;
48
+ const colorConfig = resolveColorScheme(theme, resolvedScheme);
49
+ const resolvedRadius = resolveRadius(theme, radius || 'lg');
50
+ if (variant === 'featured') {
51
+ return /*#__PURE__*/_jsx(FluentGlass, {
52
+ style: [styles.container, style],
53
+ colorScheme: resolvedScheme,
54
+ blur: compat.blur || 'subtle',
55
+ radius: radius,
56
+ borderRadius: resolvedRadius,
57
+ borderOpacity: 0.2,
58
+ children: /*#__PURE__*/_jsxs(View, {
59
+ style: styles.inner,
60
+ children: [/*#__PURE__*/_jsx(View, {
61
+ style: [styles.featuredHeader, headerColor ? {
62
+ backgroundColor: headerColor
63
+ } : {
64
+ backgroundColor: `${colorConfig.solid}40`
65
+ }, {
66
+ borderTopLeftRadius: resolvedRadius - 1,
67
+ borderTopRightRadius: resolvedRadius - 1
68
+ }]
69
+ }), /*#__PURE__*/_jsxs(View, {
70
+ style: [styles.body, {
71
+ padding: sizeConfig.paddingHorizontal
72
+ }],
73
+ children: [icon || title ? /*#__PURE__*/_jsxs(View, {
74
+ style: styles.titleRow,
75
+ children: [icon ? /*#__PURE__*/_jsx(Text, {
76
+ style: [styles.icon, {
77
+ fontSize: sizeConfig.fontSize + 2
78
+ }],
79
+ children: icon
80
+ }) : null, title ? /*#__PURE__*/_jsx(Text, {
81
+ style: [styles.title, {
82
+ color: theme.colors.textPrimary,
83
+ fontSize: sizeConfig.fontSize + 2,
84
+ fontFamily: theme.typography.bold
85
+ }],
86
+ children: title
87
+ }) : null]
88
+ }) : null, description ? /*#__PURE__*/_jsx(Text, {
89
+ style: [styles.description, {
90
+ color: theme.colors.textSecondary,
91
+ fontSize: sizeConfig.fontSize - 1,
92
+ fontFamily: theme.typography.regular
93
+ }],
94
+ children: description
95
+ }) : null, children ? /*#__PURE__*/_jsx(View, {
96
+ style: [styles.content, {
97
+ marginTop: (sizeConfig.gap || 0) * 2
98
+ }],
99
+ children: children
100
+ }) : null, actionLabel ? /*#__PURE__*/_jsx(FluentGlassButton, {
101
+ title: actionLabel,
102
+ onPress: onAction,
103
+ style: styles.actionBtn,
104
+ size: size,
105
+ colorScheme: resolvedScheme === 'default' ? 'info' : resolvedScheme
106
+ }) : null]
107
+ })]
108
+ })
109
+ });
110
+ }
111
+
112
+ // Standard variant
113
+ return /*#__PURE__*/_jsx(FluentGlass, {
114
+ style: [styles.container, style],
115
+ colorScheme: resolvedScheme,
116
+ blur: compat.blur || 'subtle',
117
+ radius: radius,
118
+ borderRadius: resolvedRadius,
119
+ borderOpacity: 0.2,
120
+ children: /*#__PURE__*/_jsxs(View, {
121
+ style: [styles.inner, styles.body, {
122
+ padding: sizeConfig.paddingHorizontal
123
+ }],
124
+ children: [title ? /*#__PURE__*/_jsx(Text, {
125
+ style: [styles.title, {
126
+ color: theme.colors.textPrimary,
127
+ fontSize: sizeConfig.fontSize + 2,
128
+ fontFamily: theme.typography.bold
129
+ }],
130
+ children: title
131
+ }) : null, description ? /*#__PURE__*/_jsx(Text, {
132
+ style: [styles.description, {
133
+ color: theme.colors.textSecondary,
134
+ fontSize: sizeConfig.fontSize - 1,
135
+ fontFamily: theme.typography.regular
136
+ }],
137
+ children: description
138
+ }) : null, children ? /*#__PURE__*/_jsx(View, {
139
+ style: [styles.content, {
140
+ marginTop: (sizeConfig.gap || 0) * 2
141
+ }],
142
+ children: children
143
+ }) : null, actionLabel ? /*#__PURE__*/_jsx(FluentGlassButton, {
144
+ title: actionLabel,
145
+ onPress: onAction,
146
+ variant: "secondary",
147
+ style: styles.actionBtn,
148
+ size: size
149
+ }) : null]
150
+ })
151
+ });
152
+ }
153
+ const styles = StyleSheet.create({
154
+ container: {
155
+ minHeight: 80
156
+ },
157
+ inner: {
158
+ flex: 1
159
+ },
160
+ featuredHeader: {
161
+ height: 100
162
+ },
163
+ body: {
164
+ padding: 16
165
+ },
166
+ titleRow: {
167
+ flexDirection: 'row',
168
+ alignItems: 'center',
169
+ marginBottom: 6
170
+ },
171
+ icon: {
172
+ marginRight: 8
173
+ },
174
+ title: {
175
+ fontWeight: '700'
176
+ },
177
+ description: {
178
+ fontWeight: '400',
179
+ marginTop: 4,
180
+ lineHeight: 20
181
+ },
182
+ content: {
183
+ marginTop: 12
184
+ },
185
+ actionBtn: {
186
+ marginTop: 16,
187
+ alignSelf: 'flex-start'
188
+ }
189
+ });
190
+ //# sourceMappingURL=FluentGlassCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","StyleSheet","Text","View","FluentGlass","FluentGlassButton","useTheme","resolveSize","resolveColorScheme","resolveRadius","resolveBackwardCompat","jsx","_jsx","jsxs","_jsxs","FluentGlassCard","variant","title","description","children","actionLabel","onAction","icon","headerColor","style","size","colorScheme","blur","radius","theme","sizeConfig","defaults","compat","resolvedScheme","colorConfig","resolvedRadius","styles","container","borderRadius","borderOpacity","inner","featuredHeader","backgroundColor","solid","borderTopLeftRadius","borderTopRightRadius","body","padding","paddingHorizontal","titleRow","fontSize","color","colors","textPrimary","fontFamily","typography","bold","textSecondary","regular","content","marginTop","gap","onPress","actionBtn","create","minHeight","flex","height","flexDirection","alignItems","marginBottom","marginRight","fontWeight","lineHeight","alignSelf"],"sourceRoot":"..\\..\\..\\src","sources":["components/FluentGlassCard.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AACrD,OAAOC,WAAW,MAAM,eAAe;AACvC,OAAOC,iBAAiB,MAAM,qBAAqB;AACnD,OAAOC,QAAQ,MAAM,mBAAmB;AACxC,SAASC,WAAW,EAAEC,kBAAkB,EAAEC,aAAa,EAAEC,qBAAqB,QAAQ,oBAAoB;;AAE1G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAVA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AA0BA,eAAe,SAASC,eAAeA,CAAC;EACpCC,OAAO,GAAG,UAAU;EAAE;EACtBC,KAAK;EACLC,WAAW;EACXC,QAAQ;EACRC,WAAW;EACXC,QAAQ;EACRC,IAAI;EAAU;EACdC,WAAW;EAAG;EACdC,KAAK;EACL;EACAC,IAAI;EACJC,WAAW;EACXC,IAAI;EACJC;AACkB,CAAC,EAAE;EACrB,MAAMC,KAAK,GAAGvB,QAAQ,CAAC,CAAC;EACxB,MAAMwB,UAAU,GAAGvB,WAAW,CAACsB,KAAK,EAAEJ,IAAI,IAAII,KAAK,CAACE,QAAQ,CAACN,IAAI,CAAC;EAClE,MAAMO,MAAM,GAAGtB,qBAAqB,CAAC;IAAEgB,WAAW;IAAEC;EAAK,CAAC,CAAC;EAC3D,MAAMM,cAAc,GAAGD,MAAM,CAACN,WAAW,IAAIG,KAAK,CAACE,QAAQ,CAACL,WAAW;EACvE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