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,73 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = FluentGlassCalendarWidget;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _reactNative = require("react-native");
9
+ var _FluentGlass = _interopRequireDefault(require("./FluentGlass"));
10
+ var _useTheme = _interopRequireDefault(require("../theme/useTheme"));
11
+ var _responsive = require("../utils/responsive");
12
+ var _jsxRuntime = require("react/jsx-runtime");
13
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
14
+ /**
15
+ * FluentGlassCalendarWidget (Atom/Molecule)
16
+ * Dashboard widget displaying month and day.
17
+ */
18
+ function FluentGlassCalendarWidget({
19
+ day = '18',
20
+ month = 'FEB',
21
+ style
22
+ }) {
23
+ const theme = (0, _useTheme.default)();
24
+ const COLORS = theme.colors;
25
+ const typography = theme.typography;
26
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_FluentGlass.default, {
27
+ accessible: true,
28
+ accessibilityLabel: `${month} ${day}`,
29
+ style: [styles.card, style],
30
+ intensity: 25,
31
+ borderRadius: 20,
32
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
33
+ style: styles.content,
34
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
35
+ style: [styles.redHeader, {
36
+ color: COLORS.negative,
37
+ fontFamily: typography.bold
38
+ }],
39
+ children: month
40
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
41
+ style: [styles.bigValue, {
42
+ color: COLORS.textPrimary,
43
+ fontFamily: typography.regular
44
+ }],
45
+ children: day
46
+ })]
47
+ })
48
+ });
49
+ }
50
+ const styles = _reactNative.StyleSheet.create({
51
+ card: {
52
+ flex: 1,
53
+ minWidth: 100,
54
+ maxWidth: 140,
55
+ aspectRatio: 1
56
+ },
57
+ content: {
58
+ flex: 1,
59
+ justifyContent: 'center',
60
+ alignItems: 'center'
61
+ },
62
+ redHeader: {
63
+ fontSize: 12,
64
+ fontWeight: 'bold',
65
+ textTransform: 'uppercase',
66
+ marginBottom: 4
67
+ },
68
+ bigValue: {
69
+ fontSize: (0, _responsive.moderateScale)(28),
70
+ fontWeight: '300'
71
+ }
72
+ });
73
+ //# sourceMappingURL=FluentGlassCalendarWidget.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_FluentGlass","_useTheme","_responsive","_jsxRuntime","e","__esModule","default","FluentGlassCalendarWidget","day","month","style","theme","useTheme","COLORS","colors","typography","jsx","accessible","accessibilityLabel","styles","card","intensity","borderRadius","children","jsxs","View","content","Text","redHeader","color","negative","fontFamily","bold","bigValue","textPrimary","regular","StyleSheet","create","flex","minWidth","maxWidth","aspectRatio","justifyContent","alignItems","fontSize","fontWeight","textTransform","marginBottom","moderateScale"],"sourceRoot":"..\\..\\..\\src","sources":["components/FluentGlassCalendarWidget.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,SAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,WAAA,GAAAJ,OAAA;AAAoD,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAQpD;AACA;AACA;AACA;AACe,SAASG,yBAAyBA,CAAC;EAAEC,GAAG,GAAG,IAAI;EAAEC,KAAK,GAAG,KAAK;EAAEC;AAAsC,CAAC,EAAE;EACpH,MAAMC,KAAK,GAAG,IAAAC,iBAAQ,EAAC,CAAC;EACxB,MAAMC,MAAM,GAAGF,KAAK,CAACG,MAAM;EAC3B,MAAMC,UAAU,GAAGJ,KAAK,CAACI,UAAU;EAEnC,oBACI,IAAAZ,WAAA,CAAAa,GAAA,EAAChB,YAAA,CAAAM,OAAW;IAACW,UAAU,EAAE,IAAK;IAACC,kBAAkB,EAAE,GAAGT,KAAK,IAAID,GAAG,EAAG;IAACE,KAAK,EAAE,CAACS,MAAM,CAACC,IAAI,E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C,CAAC","ignoreList":[]}
@@ -0,0 +1,195 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = FluentGlassCard;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _reactNative = require("react-native");
9
+ var _FluentGlass = _interopRequireDefault(require("./FluentGlass"));
10
+ var _FluentGlassButton = _interopRequireDefault(require("./FluentGlassButton"));
11
+ var _useTheme = _interopRequireDefault(require("../theme/useTheme"));
12
+ var _resolvers = require("../theme/resolvers");
13
+ var _jsxRuntime = require("react/jsx-runtime");
14
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
15
+ /**
16
+ * FluentGlassCard (Organism)
17
+ * Structured glass card with two variants:
18
+ * - 'standard': Title + description + content + optional action
19
+ * - 'featured': Colored header area + icon + title + description + optional action
20
+ *
21
+ * @param {string} size - 'xs' | 'sm' | 'md' | 'lg' | 'xl'
22
+ * @param {string} colorScheme - 'default' | 'dark' | 'info' | 'success' | 'error' | 'warning'
23
+ * @param {string} blur - blur intensity
24
+ * @param {string} radius - border radius
25
+ */
26
+
27
+ function FluentGlassCard({
28
+ variant = 'standard',
29
+ // 'standard' | 'featured'
30
+ title,
31
+ description,
32
+ children,
33
+ actionLabel,
34
+ onAction,
35
+ icon,
36
+ // String emoji or React node for featured header
37
+ headerColor,
38
+ // Override header bg color (featured variant)
39
+ style,
40
+ // New standardized props
41
+ size,
42
+ colorScheme,
43
+ blur,
44
+ radius
45
+ }) {
46
+ const theme = (0, _useTheme.default)();
47
+ const sizeConfig = (0, _resolvers.resolveSize)(theme, size || theme.defaults.size);
48
+ const compat = (0, _resolvers.resolveBackwardCompat)({
49
+ colorScheme,
50
+ blur
51
+ });
52
+ const resolvedScheme = compat.colorScheme || theme.defaults.colorScheme;
53
+ const colorConfig = (0, _resolvers.resolveColorScheme)(theme, resolvedScheme);
54
+ const resolvedRadius = (0, _resolvers.resolveRadius)(theme, radius || 'lg');
55
+ if (variant === 'featured') {
56
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_FluentGlass.default, {
57
+ style: [styles.container, style],
58
+ colorScheme: resolvedScheme,
59
+ blur: compat.blur || 'subtle',
60
+ radius: radius,
61
+ borderRadius: resolvedRadius,
62
+ borderOpacity: 0.2,
63
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
64
+ style: styles.inner,
65
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
66
+ style: [styles.featuredHeader, headerColor ? {
67
+ backgroundColor: headerColor
68
+ } : {
69
+ backgroundColor: `${colorConfig.solid}40`
70
+ }, {
71
+ borderTopLeftRadius: resolvedRadius - 1,
72
+ borderTopRightRadius: resolvedRadius - 1
73
+ }]
74
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
75
+ style: [styles.body, {
76
+ padding: sizeConfig.paddingHorizontal
77
+ }],
78
+ children: [icon || title ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
79
+ style: styles.titleRow,
80
+ children: [icon ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
81
+ style: [styles.icon, {
82
+ fontSize: sizeConfig.fontSize + 2
83
+ }],
84
+ children: icon
85
+ }) : null, title ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
86
+ style: [styles.title, {
87
+ color: theme.colors.textPrimary,
88
+ fontSize: sizeConfig.fontSize + 2,
89
+ fontFamily: theme.typography.bold
90
+ }],
91
+ children: title
92
+ }) : null]
93
+ }) : null, description ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
94
+ style: [styles.description, {
95
+ color: theme.colors.textSecondary,
96
+ fontSize: sizeConfig.fontSize - 1,
97
+ fontFamily: theme.typography.regular
98
+ }],
99
+ children: description
100
+ }) : null, children ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
101
+ style: [styles.content, {
102
+ marginTop: (sizeConfig.gap || 0) * 2
103
+ }],
104
+ children: children
105
+ }) : null, actionLabel ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_FluentGlassButton.default, {
106
+ title: actionLabel,
107
+ onPress: onAction,
108
+ style: styles.actionBtn,
109
+ size: size,
110
+ colorScheme: resolvedScheme === 'default' ? 'info' : resolvedScheme
111
+ }) : null]
112
+ })]
113
+ })
114
+ });
115
+ }
116
+
117
+ // Standard variant
118
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_FluentGlass.default, {
119
+ style: [styles.container, style],
120
+ colorScheme: resolvedScheme,
121
+ blur: compat.blur || 'subtle',
122
+ radius: radius,
123
+ borderRadius: resolvedRadius,
124
+ borderOpacity: 0.2,
125
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
126
+ style: [styles.inner, styles.body, {
127
+ padding: sizeConfig.paddingHorizontal
128
+ }],
129
+ children: [title ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
130
+ style: [styles.title, {
131
+ color: theme.colors.textPrimary,
132
+ fontSize: sizeConfig.fontSize + 2,
133
+ fontFamily: theme.typography.bold
134
+ }],
135
+ children: title
136
+ }) : null, description ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
137
+ style: [styles.description, {
138
+ color: theme.colors.textSecondary,
139
+ fontSize: sizeConfig.fontSize - 1,
140
+ fontFamily: theme.typography.regular
141
+ }],
142
+ children: description
143
+ }) : null, children ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
144
+ style: [styles.content, {
145
+ marginTop: (sizeConfig.gap || 0) * 2
146
+ }],
147
+ children: children
148
+ }) : null, actionLabel ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_FluentGlassButton.default, {
149
+ title: actionLabel,
150
+ onPress: onAction,
151
+ variant: "secondary",
152
+ style: styles.actionBtn,
153
+ size: size
154
+ }) : null]
155
+ })
156
+ });
157
+ }
158
+ const styles = _reactNative.StyleSheet.create({
159
+ container: {
160
+ minHeight: 80
161
+ },
162
+ inner: {
163
+ flex: 1
164
+ },
165
+ featuredHeader: {
166
+ height: 100
167
+ },
168
+ body: {
169
+ padding: 16
170
+ },
171
+ titleRow: {
172
+ flexDirection: 'row',
173
+ alignItems: 'center',
174
+ marginBottom: 6
175
+ },
176
+ icon: {
177
+ marginRight: 8
178
+ },
179
+ title: {
180
+ fontWeight: '700'
181
+ },
182
+ description: {
183
+ fontWeight: '400',
184
+ marginTop: 4,
185
+ lineHeight: 20
186
+ },
187
+ content: {
188
+ marginTop: 12
189
+ },
190
+ actionBtn: {
191
+ marginTop: 16,
192
+ alignSelf: 'flex-start'
193
+ }
194
+ });
195
+ //# sourceMappingURL=FluentGlassCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_FluentGlass","_FluentGlassButton","_useTheme","_resolvers","_jsxRuntime","e","__esModule","default","FluentGlassCard","variant","title","description","children","actionLabel","onAction","icon","headerColor","style","size","colorScheme","blur","radius","theme","useTheme","sizeConfig","resolveSize","defaults","compat","resolveBackwardCompat","resolvedScheme","colorConfig","resolveColorScheme","resolvedRadius","resolveRadius","jsx","styles","container","borderRadius","borderOpacity","jsxs","View","inner","featuredHeader","backgroundColor","solid","borderTopLeftRadius","borderTopRightRadius","body","padding","paddingHorizontal","titleRow","Text","fontSize","color","colors","textPrimary","fontFamily","typography","bold","textSecondary","regular","content","marginTop","gap","onPress","actionBtn","StyleSheet","create","minHeight","flex","height","flexDirection","alignItems","marginBottom","marginRight","fontWeight","lineHeight","alignSelf"],"sourceRoot":"..\\..\\..\\src","sources":["components/FluentGlassCard.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,kBAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,SAAA,GAAAL,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 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = FluentGlassCheckbox;
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ var _reactNative = require("react-native");
9
+ var _reactNativeReanimated = _interopRequireWildcard(require("react-native-reanimated"));
10
+ var _useTheme = _interopRequireDefault(require("../theme/useTheme"));
11
+ var _jsxRuntime = require("react/jsx-runtime");
12
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
13
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
14
+ const CHECK_SPRING = {
15
+ mass: 0.4,
16
+ damping: 10,
17
+ stiffness: 200
18
+ };
19
+ function FluentGlassCheckbox({
20
+ checked = false,
21
+ onToggle,
22
+ label,
23
+ disabled = false,
24
+ size = 24,
25
+ style,
26
+ accessibilityLabel
27
+ }) {
28
+ const theme = (0, _useTheme.default)();
29
+ const COLORS = theme.colors;
30
+ const typography = theme.typography;
31
+ const progress = (0, _reactNativeReanimated.useSharedValue)(checked ? 1 : 0);
32
+ (0, _react.useEffect)(() => {
33
+ progress.value = (0, _reactNativeReanimated.withSpring)(checked ? 1 : 0, CHECK_SPRING);
34
+ }, [checked]);
35
+
36
+ // Circle background animates from transparent glass to accent
37
+ const circleStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => {
38
+ const backgroundColor = (0, _reactNativeReanimated.interpolateColor)(progress.value, [0, 1], [COLORS.border, COLORS.accent]);
39
+ const borderColor = (0, _reactNativeReanimated.interpolateColor)(progress.value, [0, 1], [COLORS.textSecondary, COLORS.accent]);
40
+ return {
41
+ backgroundColor,
42
+ borderColor,
43
+ transform: [{
44
+ scale: 0.9 + progress.value * 0.1
45
+ }] // subtle pop
46
+ };
47
+ });
48
+
49
+ // Checkmark scales in/out
50
+ const checkStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => ({
51
+ opacity: progress.value,
52
+ transform: [{
53
+ scale: progress.value
54
+ }]
55
+ }));
56
+ const handlePress = () => {
57
+ if (!disabled && onToggle) {
58
+ onToggle(!checked);
59
+ }
60
+ };
61
+ const checkSize = size * 0.5; // Checkmark relative to circle
62
+
63
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Pressable, {
64
+ onPress: handlePress,
65
+ style: [styles.wrapper, disabled && styles.wrapperDisabled, style],
66
+ hitSlop: 6,
67
+ accessibilityRole: "checkbox",
68
+ accessibilityLabel: accessibilityLabel ?? label,
69
+ accessibilityState: {
70
+ checked: !!checked,
71
+ disabled: !!disabled
72
+ },
73
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
74
+ style: [styles.circle, {
75
+ width: size,
76
+ height: size,
77
+ borderRadius: size / 2
78
+ }, circleStyle],
79
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.Text, {
80
+ style: [styles.check, {
81
+ fontSize: checkSize,
82
+ color: COLORS.white,
83
+ fontFamily: typography.bold
84
+ }, checkStyle],
85
+ children: "\u2713"
86
+ })
87
+ }), label ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
88
+ style: [styles.label, {
89
+ color: COLORS.textPrimary,
90
+ fontFamily: typography.medium
91
+ }, disabled && {
92
+ color: COLORS.textSecondary
93
+ }],
94
+ children: label
95
+ }) : null]
96
+ });
97
+ }
98
+ const styles = _reactNative.StyleSheet.create({
99
+ wrapper: {
100
+ flexDirection: 'row',
101
+ alignItems: 'center'
102
+ },
103
+ wrapperDisabled: {
104
+ opacity: 0.4
105
+ },
106
+ circle: {
107
+ borderWidth: 1.5,
108
+ alignItems: 'center',
109
+ justifyContent: 'center'
110
+ },
111
+ check: {
112
+ fontWeight: '700',
113
+ marginTop: -1 // Optical alignment
114
+ },
115
+ label: {
116
+ fontSize: 15,
117
+ fontWeight: '500',
118
+ marginLeft: 12
119
+ }
120
+ });
121
+ //# sourceMappingURL=FluentGlassCheckbox.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeReanimated","_useTheme","_interopRequireDefault","_jsxRuntime","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","CHECK_SPRING","mass","damping","stiffness","FluentGlassCheckbox","checked","onToggle","label","disabled","size","style","accessibilityLabel","theme","useTheme","COLORS","colors","typography","progress","useSharedValue","useEffect","value","withSpring","circleStyle","useAnimatedStyle","backgroundColor","interpolateColor","border","accent","borderColor","textSecondary","transform","scale","checkStyle","opacity","handlePress","checkSize","jsxs","Pressable","onPress","styles","wrapper","wrapperDisabled","hitSlop","accessibilityRole","accessibilityState","children","jsx","View","circle","width","height","borderRadius","Text","check","fontSize","color","white","fontFamily","bold","textPrimary","medium","StyleSheet","create","flexDirection","alignItems","borderWidth","justifyContent","fontWeight","marginTop","marginLeft"],"sourceRoot":"..\\..\\..\\src","sources":["components/FluentGlassCheckbox.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAH,uBAAA,CAAAC,OAAA;AAMA,IAAAG,SAAA,GAAAC,sBAAA,CAAAJ,OAAA;AAAyC,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAI,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OA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C1C,KAAK,EAAE,CAAC6B,MAAM,CAAChC,KAAK,EAAE;QAAEgD,KAAK,EAAEzC,MAAM,CAAC6C,WAAW;QAAEF,UAAU,EAAEzC,UAAU,CAAC4C;MAAO,CAAC,EAAEpD,QAAQ,IAAI;QAAE+C,KAAK,EAAEzC,MAAM,CAACe;MAAc,CAAC,CAAE;MAAAgB,QAAA,EAClItC;IAAK,CACJ,CAAC,GACP,IAAI;EAAA,CACD,CAAC;AAEpB;AAEA,MAAMgC,MAAM,GAAGsB,uBAAU,CAACC,MAAM,CAAC;EAC7BtB,OAAO,EAAE;IACLuB,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE;EAChB,CAAC;EACDvB,eAAe,EAAE;IACbR,OAAO,EAAE;EACb,CAAC;EACDe,MAAM,EAAE;IACJiB,WAAW,EAAE,GAAG;IAChBD,UAAU,EAAE,QAAQ;IACpBE,cAAc,EAAE;EACpB,CAAC;EACDb,KAAK,EAAE;IACHc,UAAU,EAAE,KAAK;IACjBC,SAAS,EAAE,CAAC,CAAC,CAAE;EACnB,CAAC;EACD7D,KAAK,EAAE;IACH+C,QAAQ,EAAE,EAAE;IACZa,UAAU,EAAE,KAAK;IACjBE,UAAU,EAAE;EAChB;AACJ,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,80 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = FluentGlassClockWidget;
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ var _reactNative = require("react-native");
9
+ var _FluentGlass = _interopRequireDefault(require("./FluentGlass"));
10
+ var _useTheme = _interopRequireDefault(require("../theme/useTheme"));
11
+ var _responsive = require("../utils/responsive");
12
+ var _jsxRuntime = require("react/jsx-runtime");
13
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
14
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
15
+ /**
16
+ * FluentGlassClockWidget (Atom/Molecule)
17
+ * Dashboard widget displaying current time.
18
+ */
19
+ function FluentGlassClockWidget({
20
+ style
21
+ }) {
22
+ const theme = (0, _useTheme.default)();
23
+ const COLORS = theme.colors;
24
+ const typography = theme.typography;
25
+ const [time, setTime] = (0, _react.useState)(new Date());
26
+ (0, _react.useEffect)(() => {
27
+ const timer = setInterval(() => setTime(new Date()), 60000);
28
+ return () => clearInterval(timer);
29
+ }, []);
30
+ const timeString = time.toLocaleTimeString([], {
31
+ hour: '2-digit',
32
+ minute: '2-digit'
33
+ });
34
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_FluentGlass.default, {
35
+ accessible: true,
36
+ accessibilityLabel: `Time: ${timeString}`,
37
+ style: [styles.card, style],
38
+ intensity: 25,
39
+ borderRadius: 20,
40
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
41
+ style: styles.content,
42
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
43
+ style: [styles.label, {
44
+ color: COLORS.textSecondary,
45
+ fontFamily: typography.medium
46
+ }],
47
+ children: "TIME"
48
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
49
+ style: [styles.bigValue, {
50
+ color: COLORS.textPrimary,
51
+ fontFamily: typography.regular
52
+ }],
53
+ children: timeString
54
+ })]
55
+ })
56
+ });
57
+ }
58
+ const styles = _reactNative.StyleSheet.create({
59
+ card: {
60
+ flex: 1,
61
+ minWidth: 100,
62
+ maxWidth: 140,
63
+ aspectRatio: 1
64
+ },
65
+ content: {
66
+ flex: 1,
67
+ justifyContent: 'center',
68
+ alignItems: 'center'
69
+ },
70
+ label: {
71
+ fontSize: 12,
72
+ textTransform: 'uppercase',
73
+ marginBottom: 4
74
+ },
75
+ bigValue: {
76
+ fontSize: (0, _responsive.moderateScale)(28),
77
+ fontWeight: '300'
78
+ }
79
+ });
80
+ //# sourceMappingURL=FluentGlassClockWidget.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_FluentGlass","_interopRequireDefault","_useTheme","_responsive","_jsxRuntime","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","FluentGlassClockWidget","style","theme","useTheme","COLORS","colors","typography","time","setTime","useState","Date","useEffect","timer","setInterval","clearInterval","timeString","toLocaleTimeString","hour","minute","jsx","accessible","accessibilityLabel","styles","card","intensity","borderRadius","children","jsxs","View","content","Text","label","color","textSecondary","fontFamily","medium","bigValue","textPrimary","regular","StyleSheet","create","flex","minWidth","maxWidth","aspectRatio","justifyContent","alignItems","fontSize","textTransform","marginBottom","moderateScale","fontWeight"],"sourceRoot":"..\\..\\..\\src","sources":["components/FluentGlassClockWidget.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,SAAA,GAAAD,sBAAA,CAAAH,OAAA;AACA,IAAAK,WAAA,GAAAL,OAAA;AAAoD,IAAAM,WAAA,GAAAN,OAAA;AAAA,SAAAG,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAR,wBAAAQ,CAAA,EAAAG,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,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