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.
- package/LICENSE +21 -0
- package/README.md +169 -0
- package/lib/commonjs/assets/fonts/Inter-Black.ttf +0 -0
- package/lib/commonjs/assets/fonts/Inter-Bold.ttf +0 -0
- package/lib/commonjs/assets/fonts/Inter-ExtraBold.ttf +0 -0
- package/lib/commonjs/assets/fonts/Inter-Medium.ttf +0 -0
- package/lib/commonjs/assets/fonts/Inter-Regular.ttf +0 -0
- package/lib/commonjs/assets/fonts/Inter-SemiBold.ttf +0 -0
- package/lib/commonjs/components/FluentGlass.js +94 -0
- package/lib/commonjs/components/FluentGlass.js.map +1 -0
- package/lib/commonjs/components/FluentGlassAlert.js +126 -0
- package/lib/commonjs/components/FluentGlassAlert.js.map +1 -0
- package/lib/commonjs/components/FluentGlassBadge.js +124 -0
- package/lib/commonjs/components/FluentGlassBadge.js.map +1 -0
- package/lib/commonjs/components/FluentGlassBarChart.js +287 -0
- package/lib/commonjs/components/FluentGlassBarChart.js.map +1 -0
- package/lib/commonjs/components/FluentGlassBreadcrumb.js +155 -0
- package/lib/commonjs/components/FluentGlassBreadcrumb.js.map +1 -0
- package/lib/commonjs/components/FluentGlassButton.js +175 -0
- package/lib/commonjs/components/FluentGlassButton.js.map +1 -0
- package/lib/commonjs/components/FluentGlassCalendarWidget.js +73 -0
- package/lib/commonjs/components/FluentGlassCalendarWidget.js.map +1 -0
- package/lib/commonjs/components/FluentGlassCard.js +195 -0
- package/lib/commonjs/components/FluentGlassCard.js.map +1 -0
- package/lib/commonjs/components/FluentGlassCheckbox.js +121 -0
- package/lib/commonjs/components/FluentGlassCheckbox.js.map +1 -0
- package/lib/commonjs/components/FluentGlassClockWidget.js +80 -0
- package/lib/commonjs/components/FluentGlassClockWidget.js.map +1 -0
- package/lib/commonjs/components/FluentGlassCodeBlock.js +239 -0
- package/lib/commonjs/components/FluentGlassCodeBlock.js.map +1 -0
- package/lib/commonjs/components/FluentGlassContainer.js +52 -0
- package/lib/commonjs/components/FluentGlassContainer.js.map +1 -0
- package/lib/commonjs/components/FluentGlassCrossfade.js +118 -0
- package/lib/commonjs/components/FluentGlassCrossfade.js.map +1 -0
- package/lib/commonjs/components/FluentGlassDateInput.js +176 -0
- package/lib/commonjs/components/FluentGlassDateInput.js.map +1 -0
- package/lib/commonjs/components/FluentGlassDatePicker.js +271 -0
- package/lib/commonjs/components/FluentGlassDatePicker.js.map +1 -0
- package/lib/commonjs/components/FluentGlassDialog.js +169 -0
- package/lib/commonjs/components/FluentGlassDialog.js.map +1 -0
- package/lib/commonjs/components/FluentGlassDock.js +187 -0
- package/lib/commonjs/components/FluentGlassDock.js.map +1 -0
- package/lib/commonjs/components/FluentGlassDropdown.js +349 -0
- package/lib/commonjs/components/FluentGlassDropdown.js.map +1 -0
- package/lib/commonjs/components/FluentGlassEmailInput.js +43 -0
- package/lib/commonjs/components/FluentGlassEmailInput.js.map +1 -0
- package/lib/commonjs/components/FluentGlassInput.js +83 -0
- package/lib/commonjs/components/FluentGlassInput.js.map +1 -0
- package/lib/commonjs/components/FluentGlassLabeledInput.js +64 -0
- package/lib/commonjs/components/FluentGlassLabeledInput.js.map +1 -0
- package/lib/commonjs/components/FluentGlassLayout.js +106 -0
- package/lib/commonjs/components/FluentGlassLayout.js.map +1 -0
- package/lib/commonjs/components/FluentGlassPasswordInput.js +60 -0
- package/lib/commonjs/components/FluentGlassPasswordInput.js.map +1 -0
- package/lib/commonjs/components/FluentGlassPopover.js +75 -0
- package/lib/commonjs/components/FluentGlassPopover.js.map +1 -0
- package/lib/commonjs/components/FluentGlassResponsiveRow.js +74 -0
- package/lib/commonjs/components/FluentGlassResponsiveRow.js.map +1 -0
- package/lib/commonjs/components/FluentGlassScrollArea.js +101 -0
- package/lib/commonjs/components/FluentGlassScrollArea.js.map +1 -0
- package/lib/commonjs/components/FluentGlassSegmentedControl.js +126 -0
- package/lib/commonjs/components/FluentGlassSegmentedControl.js.map +1 -0
- package/lib/commonjs/components/FluentGlassSelect.js +155 -0
- package/lib/commonjs/components/FluentGlassSelect.js.map +1 -0
- package/lib/commonjs/components/FluentGlassSeparator.js +62 -0
- package/lib/commonjs/components/FluentGlassSeparator.js.map +1 -0
- package/lib/commonjs/components/FluentGlassSheet.js +189 -0
- package/lib/commonjs/components/FluentGlassSheet.js.map +1 -0
- package/lib/commonjs/components/FluentGlassSidebar.js +358 -0
- package/lib/commonjs/components/FluentGlassSidebar.js.map +1 -0
- package/lib/commonjs/components/FluentGlassSimpleCard.js +56 -0
- package/lib/commonjs/components/FluentGlassSimpleCard.js.map +1 -0
- package/lib/commonjs/components/FluentGlassSkeleton.js +52 -0
- package/lib/commonjs/components/FluentGlassSkeleton.js.map +1 -0
- package/lib/commonjs/components/FluentGlassSlider.js +197 -0
- package/lib/commonjs/components/FluentGlassSlider.js.map +1 -0
- package/lib/commonjs/components/FluentGlassStatWidget.js +133 -0
- package/lib/commonjs/components/FluentGlassStatWidget.js.map +1 -0
- package/lib/commonjs/components/FluentGlassStatusIndicator.js +89 -0
- package/lib/commonjs/components/FluentGlassStatusIndicator.js.map +1 -0
- package/lib/commonjs/components/FluentGlassSwitch.js +126 -0
- package/lib/commonjs/components/FluentGlassSwitch.js.map +1 -0
- package/lib/commonjs/components/FluentGlassTable.js +163 -0
- package/lib/commonjs/components/FluentGlassTable.js.map +1 -0
- package/lib/commonjs/components/FluentGlassTag.js +109 -0
- package/lib/commonjs/components/FluentGlassTag.js.map +1 -0
- package/lib/commonjs/components/FluentGlassTextInput.js +90 -0
- package/lib/commonjs/components/FluentGlassTextInput.js.map +1 -0
- package/lib/commonjs/components/FluentGlassTimeline.js +334 -0
- package/lib/commonjs/components/FluentGlassTimeline.js.map +1 -0
- package/lib/commonjs/components/FluentGlassWeatherWidget.js +72 -0
- package/lib/commonjs/components/FluentGlassWeatherWidget.js.map +1 -0
- package/lib/commonjs/components/index.js +308 -0
- package/lib/commonjs/components/index.js.map +1 -0
- package/lib/commonjs/fonts.js +33 -0
- package/lib/commonjs/fonts.js.map +1 -0
- package/lib/commonjs/hooks/useBreakpoint.js +57 -0
- package/lib/commonjs/hooks/useBreakpoint.js.map +1 -0
- package/lib/commonjs/index.js +462 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/theme/FluentGlassProvider.js +84 -0
- package/lib/commonjs/theme/FluentGlassProvider.js.map +1 -0
- package/lib/commonjs/theme/defaultTheme.js +55 -0
- package/lib/commonjs/theme/defaultTheme.js.map +1 -0
- package/lib/commonjs/theme/resolvers.js +118 -0
- package/lib/commonjs/theme/resolvers.js.map +1 -0
- package/lib/commonjs/theme/tokens.js +239 -0
- package/lib/commonjs/theme/tokens.js.map +1 -0
- package/lib/commonjs/theme/typography.js +50 -0
- package/lib/commonjs/theme/typography.js.map +1 -0
- package/lib/commonjs/theme/useTheme.js +22 -0
- package/lib/commonjs/theme/useTheme.js.map +1 -0
- package/lib/commonjs/types/components.js +6 -0
- package/lib/commonjs/types/components.js.map +1 -0
- package/lib/commonjs/types/theme.js +6 -0
- package/lib/commonjs/types/theme.js.map +1 -0
- package/lib/commonjs/utils/colors.js +59 -0
- package/lib/commonjs/utils/colors.js.map +1 -0
- package/lib/commonjs/utils/responsive.js +126 -0
- package/lib/commonjs/utils/responsive.js.map +1 -0
- package/lib/module/assets/fonts/Inter-Black.ttf +0 -0
- package/lib/module/assets/fonts/Inter-Bold.ttf +0 -0
- package/lib/module/assets/fonts/Inter-ExtraBold.ttf +0 -0
- package/lib/module/assets/fonts/Inter-Medium.ttf +0 -0
- package/lib/module/assets/fonts/Inter-Regular.ttf +0 -0
- package/lib/module/assets/fonts/Inter-SemiBold.ttf +0 -0
- package/lib/module/components/FluentGlass.js +89 -0
- package/lib/module/components/FluentGlass.js.map +1 -0
- package/lib/module/components/FluentGlassAlert.js +121 -0
- package/lib/module/components/FluentGlassAlert.js.map +1 -0
- package/lib/module/components/FluentGlassBadge.js +119 -0
- package/lib/module/components/FluentGlassBadge.js.map +1 -0
- package/lib/module/components/FluentGlassBarChart.js +281 -0
- package/lib/module/components/FluentGlassBarChart.js.map +1 -0
- package/lib/module/components/FluentGlassBreadcrumb.js +150 -0
- package/lib/module/components/FluentGlassBreadcrumb.js.map +1 -0
- package/lib/module/components/FluentGlassButton.js +169 -0
- package/lib/module/components/FluentGlassButton.js.map +1 -0
- package/lib/module/components/FluentGlassCalendarWidget.js +68 -0
- package/lib/module/components/FluentGlassCalendarWidget.js.map +1 -0
- package/lib/module/components/FluentGlassCard.js +190 -0
- package/lib/module/components/FluentGlassCard.js.map +1 -0
- package/lib/module/components/FluentGlassCheckbox.js +115 -0
- package/lib/module/components/FluentGlassCheckbox.js.map +1 -0
- package/lib/module/components/FluentGlassClockWidget.js +74 -0
- package/lib/module/components/FluentGlassClockWidget.js.map +1 -0
- package/lib/module/components/FluentGlassCodeBlock.js +233 -0
- package/lib/module/components/FluentGlassCodeBlock.js.map +1 -0
- package/lib/module/components/FluentGlassContainer.js +47 -0
- package/lib/module/components/FluentGlassContainer.js.map +1 -0
- package/lib/module/components/FluentGlassCrossfade.js +112 -0
- package/lib/module/components/FluentGlassCrossfade.js.map +1 -0
- package/lib/module/components/FluentGlassDateInput.js +170 -0
- package/lib/module/components/FluentGlassDateInput.js.map +1 -0
- package/lib/module/components/FluentGlassDatePicker.js +265 -0
- package/lib/module/components/FluentGlassDatePicker.js.map +1 -0
- package/lib/module/components/FluentGlassDialog.js +163 -0
- package/lib/module/components/FluentGlassDialog.js.map +1 -0
- package/lib/module/components/FluentGlassDock.js +181 -0
- package/lib/module/components/FluentGlassDock.js.map +1 -0
- package/lib/module/components/FluentGlassDropdown.js +343 -0
- package/lib/module/components/FluentGlassDropdown.js.map +1 -0
- package/lib/module/components/FluentGlassEmailInput.js +38 -0
- package/lib/module/components/FluentGlassEmailInput.js.map +1 -0
- package/lib/module/components/FluentGlassInput.js +78 -0
- package/lib/module/components/FluentGlassInput.js.map +1 -0
- package/lib/module/components/FluentGlassLabeledInput.js +59 -0
- package/lib/module/components/FluentGlassLabeledInput.js.map +1 -0
- package/lib/module/components/FluentGlassLayout.js +101 -0
- package/lib/module/components/FluentGlassLayout.js.map +1 -0
- package/lib/module/components/FluentGlassPasswordInput.js +54 -0
- package/lib/module/components/FluentGlassPasswordInput.js.map +1 -0
- package/lib/module/components/FluentGlassPopover.js +70 -0
- package/lib/module/components/FluentGlassPopover.js.map +1 -0
- package/lib/module/components/FluentGlassResponsiveRow.js +71 -0
- package/lib/module/components/FluentGlassResponsiveRow.js.map +1 -0
- package/lib/module/components/FluentGlassScrollArea.js +95 -0
- package/lib/module/components/FluentGlassScrollArea.js.map +1 -0
- package/lib/module/components/FluentGlassSegmentedControl.js +120 -0
- package/lib/module/components/FluentGlassSegmentedControl.js.map +1 -0
- package/lib/module/components/FluentGlassSelect.js +149 -0
- package/lib/module/components/FluentGlassSelect.js.map +1 -0
- package/lib/module/components/FluentGlassSeparator.js +57 -0
- package/lib/module/components/FluentGlassSeparator.js.map +1 -0
- package/lib/module/components/FluentGlassSheet.js +183 -0
- package/lib/module/components/FluentGlassSheet.js.map +1 -0
- package/lib/module/components/FluentGlassSidebar.js +351 -0
- package/lib/module/components/FluentGlassSidebar.js.map +1 -0
- package/lib/module/components/FluentGlassSimpleCard.js +51 -0
- package/lib/module/components/FluentGlassSimpleCard.js.map +1 -0
- package/lib/module/components/FluentGlassSkeleton.js +46 -0
- package/lib/module/components/FluentGlassSkeleton.js.map +1 -0
- package/lib/module/components/FluentGlassSlider.js +191 -0
- package/lib/module/components/FluentGlassSlider.js.map +1 -0
- package/lib/module/components/FluentGlassStatWidget.js +128 -0
- package/lib/module/components/FluentGlassStatWidget.js.map +1 -0
- package/lib/module/components/FluentGlassStatusIndicator.js +84 -0
- package/lib/module/components/FluentGlassStatusIndicator.js.map +1 -0
- package/lib/module/components/FluentGlassSwitch.js +122 -0
- package/lib/module/components/FluentGlassSwitch.js.map +1 -0
- package/lib/module/components/FluentGlassTable.js +158 -0
- package/lib/module/components/FluentGlassTable.js.map +1 -0
- package/lib/module/components/FluentGlassTag.js +103 -0
- package/lib/module/components/FluentGlassTag.js.map +1 -0
- package/lib/module/components/FluentGlassTextInput.js +85 -0
- package/lib/module/components/FluentGlassTextInput.js.map +1 -0
- package/lib/module/components/FluentGlassTimeline.js +327 -0
- package/lib/module/components/FluentGlassTimeline.js.map +1 -0
- package/lib/module/components/FluentGlassWeatherWidget.js +67 -0
- package/lib/module/components/FluentGlassWeatherWidget.js.map +1 -0
- package/lib/module/components/index.js +45 -0
- package/lib/module/components/index.js.map +1 -0
- package/lib/module/fonts.js +26 -0
- package/lib/module/fonts.js.map +1 -0
- package/lib/module/hooks/useBreakpoint.js +54 -0
- package/lib/module/hooks/useBreakpoint.js.map +1 -0
- package/lib/module/index.js +30 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/theme/FluentGlassProvider.js +77 -0
- package/lib/module/theme/FluentGlassProvider.js.map +1 -0
- package/lib/module/theme/defaultTheme.js +51 -0
- package/lib/module/theme/defaultTheme.js.map +1 -0
- package/lib/module/theme/resolvers.js +110 -0
- package/lib/module/theme/resolvers.js.map +1 -0
- package/lib/module/theme/tokens.js +235 -0
- package/lib/module/theme/tokens.js.map +1 -0
- package/lib/module/theme/typography.js +45 -0
- package/lib/module/theme/typography.js.map +1 -0
- package/lib/module/theme/useTheme.js +18 -0
- package/lib/module/theme/useTheme.js.map +1 -0
- package/lib/module/types/components.js +4 -0
- package/lib/module/types/components.js.map +1 -0
- package/lib/module/types/theme.js +4 -0
- package/lib/module/types/theme.js.map +1 -0
- package/lib/module/utils/colors.js +55 -0
- package/lib/module/utils/colors.js.map +1 -0
- package/lib/module/utils/responsive.js +116 -0
- package/lib/module/utils/responsive.js.map +1 -0
- package/lib/typescript/components/FluentGlass.d.ts +25 -0
- package/lib/typescript/components/FluentGlass.d.ts.map +1 -0
- package/lib/typescript/components/FluentGlassAlert.d.ts +13 -0
- package/lib/typescript/components/FluentGlassAlert.d.ts.map +1 -0
- package/lib/typescript/components/FluentGlassBadge.d.ts +22 -0
- package/lib/typescript/components/FluentGlassBadge.d.ts.map +1 -0
- package/lib/typescript/components/FluentGlassBarChart.d.ts +30 -0
- package/lib/typescript/components/FluentGlassBarChart.d.ts.map +1 -0
- package/lib/typescript/components/FluentGlassBreadcrumb.d.ts +22 -0
- package/lib/typescript/components/FluentGlassBreadcrumb.d.ts.map +1 -0
- package/lib/typescript/components/FluentGlassButton.d.ts +27 -0
- package/lib/typescript/components/FluentGlassButton.d.ts.map +1 -0
- package/lib/typescript/components/FluentGlassCalendarWidget.d.ts +13 -0
- package/lib/typescript/components/FluentGlassCalendarWidget.d.ts.map +1 -0
- package/lib/typescript/components/FluentGlassCard.d.ts +30 -0
- package/lib/typescript/components/FluentGlassCard.d.ts.map +1 -0
- package/lib/typescript/components/FluentGlassCheckbox.d.ts +14 -0
- package/lib/typescript/components/FluentGlassCheckbox.d.ts.map +1 -0
- package/lib/typescript/components/FluentGlassClockWidget.d.ts +11 -0
- package/lib/typescript/components/FluentGlassClockWidget.d.ts.map +1 -0
- package/lib/typescript/components/FluentGlassCodeBlock.d.ts +11 -0
- package/lib/typescript/components/FluentGlassCodeBlock.d.ts.map +1 -0
- package/lib/typescript/components/FluentGlassContainer.d.ts +22 -0
- package/lib/typescript/components/FluentGlassContainer.d.ts.map +1 -0
- package/lib/typescript/components/FluentGlassCrossfade.d.ts +24 -0
- package/lib/typescript/components/FluentGlassCrossfade.d.ts.map +1 -0
- package/lib/typescript/components/FluentGlassDateInput.d.ts +18 -0
- package/lib/typescript/components/FluentGlassDateInput.d.ts.map +1 -0
- package/lib/typescript/components/FluentGlassDatePicker.d.ts +9 -0
- package/lib/typescript/components/FluentGlassDatePicker.d.ts.map +1 -0
- package/lib/typescript/components/FluentGlassDialog.d.ts +18 -0
- package/lib/typescript/components/FluentGlassDialog.d.ts.map +1 -0
- package/lib/typescript/components/FluentGlassDock.d.ts +19 -0
- package/lib/typescript/components/FluentGlassDock.d.ts.map +1 -0
- package/lib/typescript/components/FluentGlassDropdown.d.ts +23 -0
- package/lib/typescript/components/FluentGlassDropdown.d.ts.map +1 -0
- package/lib/typescript/components/FluentGlassEmailInput.d.ts +17 -0
- package/lib/typescript/components/FluentGlassEmailInput.d.ts.map +1 -0
- package/lib/typescript/components/FluentGlassInput.d.ts +12 -0
- package/lib/typescript/components/FluentGlassInput.d.ts.map +1 -0
- package/lib/typescript/components/FluentGlassLabeledInput.d.ts +19 -0
- package/lib/typescript/components/FluentGlassLabeledInput.d.ts.map +1 -0
- package/lib/typescript/components/FluentGlassLayout.d.ts +11 -0
- package/lib/typescript/components/FluentGlassLayout.d.ts.map +1 -0
- package/lib/typescript/components/FluentGlassPasswordInput.d.ts +15 -0
- package/lib/typescript/components/FluentGlassPasswordInput.d.ts.map +1 -0
- package/lib/typescript/components/FluentGlassPopover.d.ts +17 -0
- package/lib/typescript/components/FluentGlassPopover.d.ts.map +1 -0
- package/lib/typescript/components/FluentGlassResponsiveRow.d.ts +25 -0
- package/lib/typescript/components/FluentGlassResponsiveRow.d.ts.map +1 -0
- package/lib/typescript/components/FluentGlassScrollArea.d.ts +16 -0
- package/lib/typescript/components/FluentGlassScrollArea.d.ts.map +1 -0
- package/lib/typescript/components/FluentGlassSegmentedControl.d.ts +15 -0
- package/lib/typescript/components/FluentGlassSegmentedControl.d.ts.map +1 -0
- package/lib/typescript/components/FluentGlassSelect.d.ts +23 -0
- package/lib/typescript/components/FluentGlassSelect.d.ts.map +1 -0
- package/lib/typescript/components/FluentGlassSeparator.d.ts +13 -0
- package/lib/typescript/components/FluentGlassSeparator.d.ts.map +1 -0
- package/lib/typescript/components/FluentGlassSheet.d.ts +11 -0
- package/lib/typescript/components/FluentGlassSheet.d.ts.map +1 -0
- package/lib/typescript/components/FluentGlassSidebar.d.ts +44 -0
- package/lib/typescript/components/FluentGlassSidebar.d.ts.map +1 -0
- package/lib/typescript/components/FluentGlassSimpleCard.d.ts +19 -0
- package/lib/typescript/components/FluentGlassSimpleCard.d.ts.map +1 -0
- package/lib/typescript/components/FluentGlassSkeleton.d.ts +14 -0
- package/lib/typescript/components/FluentGlassSkeleton.d.ts.map +1 -0
- package/lib/typescript/components/FluentGlassSlider.d.ts +31 -0
- package/lib/typescript/components/FluentGlassSlider.d.ts.map +1 -0
- package/lib/typescript/components/FluentGlassStatWidget.d.ts +17 -0
- package/lib/typescript/components/FluentGlassStatWidget.d.ts.map +1 -0
- package/lib/typescript/components/FluentGlassStatusIndicator.d.ts +16 -0
- package/lib/typescript/components/FluentGlassStatusIndicator.d.ts.map +1 -0
- package/lib/typescript/components/FluentGlassSwitch.d.ts +13 -0
- package/lib/typescript/components/FluentGlassSwitch.d.ts.map +1 -0
- package/lib/typescript/components/FluentGlassTable.d.ts +50 -0
- package/lib/typescript/components/FluentGlassTable.d.ts.map +1 -0
- package/lib/typescript/components/FluentGlassTag.d.ts +18 -0
- package/lib/typescript/components/FluentGlassTag.d.ts.map +1 -0
- package/lib/typescript/components/FluentGlassTextInput.d.ts +21 -0
- package/lib/typescript/components/FluentGlassTextInput.d.ts.map +1 -0
- package/lib/typescript/components/FluentGlassTimeline.d.ts +27 -0
- package/lib/typescript/components/FluentGlassTimeline.d.ts.map +1 -0
- package/lib/typescript/components/FluentGlassWeatherWidget.d.ts +13 -0
- package/lib/typescript/components/FluentGlassWeatherWidget.d.ts.map +1 -0
- package/lib/typescript/components/index.d.ts +43 -0
- package/lib/typescript/components/index.d.ts.map +1 -0
- package/lib/typescript/fonts.d.ts +13 -0
- package/lib/typescript/fonts.d.ts.map +1 -0
- package/lib/typescript/hooks/useBreakpoint.d.ts +26 -0
- package/lib/typescript/hooks/useBreakpoint.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +18 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/lib/typescript/theme/FluentGlassProvider.d.ts +21 -0
- package/lib/typescript/theme/FluentGlassProvider.d.ts.map +1 -0
- package/lib/typescript/theme/defaultTheme.d.ts +10 -0
- package/lib/typescript/theme/defaultTheme.d.ts.map +1 -0
- package/lib/typescript/theme/resolvers.d.ts +55 -0
- package/lib/typescript/theme/resolvers.d.ts.map +1 -0
- package/lib/typescript/theme/tokens.d.ts +27 -0
- package/lib/typescript/theme/tokens.d.ts.map +1 -0
- package/lib/typescript/theme/typography.d.ts +27 -0
- package/lib/typescript/theme/typography.d.ts.map +1 -0
- package/lib/typescript/theme/useTheme.d.ts +12 -0
- package/lib/typescript/theme/useTheme.d.ts.map +1 -0
- package/lib/typescript/types/components.d.ts +32 -0
- package/lib/typescript/types/components.d.ts.map +1 -0
- package/lib/typescript/types/theme.d.ts +79 -0
- package/lib/typescript/types/theme.d.ts.map +1 -0
- package/lib/typescript/utils/colors.d.ts +3 -0
- package/lib/typescript/utils/colors.d.ts.map +1 -0
- package/lib/typescript/utils/responsive.d.ts +62 -0
- package/lib/typescript/utils/responsive.d.ts.map +1 -0
- package/package.json +90 -0
- package/src/assets/fonts/Inter-Black.ttf +0 -0
- package/src/assets/fonts/Inter-Bold.ttf +0 -0
- package/src/assets/fonts/Inter-ExtraBold.ttf +0 -0
- package/src/assets/fonts/Inter-Medium.ttf +0 -0
- package/src/assets/fonts/Inter-Regular.ttf +0 -0
- package/src/assets/fonts/Inter-SemiBold.ttf +0 -0
- package/src/components/FluentGlass.tsx +103 -0
- package/src/components/FluentGlassAlert.tsx +126 -0
- package/src/components/FluentGlassBadge.tsx +109 -0
- package/src/components/FluentGlassBarChart.tsx +295 -0
- package/src/components/FluentGlassBreadcrumb.tsx +173 -0
- package/src/components/FluentGlassButton.tsx +169 -0
- package/src/components/FluentGlassCalendarWidget.tsx +55 -0
- package/src/components/FluentGlassCard.tsx +186 -0
- package/src/components/FluentGlassCheckbox.tsx +138 -0
- package/src/components/FluentGlassClockWidget.tsx +61 -0
- package/src/components/FluentGlassCodeBlock.tsx +241 -0
- package/src/components/FluentGlassContainer.tsx +63 -0
- package/src/components/FluentGlassCrossfade.tsx +122 -0
- package/src/components/FluentGlassDateInput.tsx +182 -0
- package/src/components/FluentGlassDatePicker.tsx +224 -0
- package/src/components/FluentGlassDialog.tsx +153 -0
- package/src/components/FluentGlassDock.tsx +194 -0
- package/src/components/FluentGlassDropdown.tsx +382 -0
- package/src/components/FluentGlassEmailInput.tsx +46 -0
- package/src/components/FluentGlassInput.tsx +77 -0
- package/src/components/FluentGlassLabeledInput.tsx +63 -0
- package/src/components/FluentGlassLayout.tsx +89 -0
- package/src/components/FluentGlassPasswordInput.tsx +59 -0
- package/src/components/FluentGlassPopover.tsx +74 -0
- package/src/components/FluentGlassResponsiveRow.tsx +76 -0
- package/src/components/FluentGlassScrollArea.tsx +110 -0
- package/src/components/FluentGlassSegmentedControl.tsx +140 -0
- package/src/components/FluentGlassSelect.tsx +139 -0
- package/src/components/FluentGlassSeparator.tsx +54 -0
- package/src/components/FluentGlassSheet.tsx +183 -0
- package/src/components/FluentGlassSidebar.tsx +349 -0
- package/src/components/FluentGlassSimpleCard.tsx +59 -0
- package/src/components/FluentGlassSkeleton.tsx +69 -0
- package/src/components/FluentGlassSlider.tsx +202 -0
- package/src/components/FluentGlassStatWidget.tsx +107 -0
- package/src/components/FluentGlassStatusIndicator.tsx +82 -0
- package/src/components/FluentGlassSwitch.tsx +130 -0
- package/src/components/FluentGlassTable.tsx +145 -0
- package/src/components/FluentGlassTag.tsx +98 -0
- package/src/components/FluentGlassTextInput.tsx +87 -0
- package/src/components/FluentGlassTimeline.tsx +335 -0
- package/src/components/FluentGlassWeatherWidget.tsx +54 -0
- package/src/components/index.ts +42 -0
- package/src/fonts.ts +24 -0
- package/src/hooks/useBreakpoint.ts +55 -0
- package/src/index.ts +97 -0
- package/src/theme/FluentGlassProvider.tsx +82 -0
- package/src/theme/defaultTheme.ts +44 -0
- package/src/theme/resolvers.ts +115 -0
- package/src/theme/tokens.ts +200 -0
- package/src/theme/typography.ts +41 -0
- package/src/theme/useTheme.ts +17 -0
- package/src/types/components.ts +47 -0
- package/src/types/theme.ts +82 -0
- package/src/utils/colors.ts +55 -0
- package/src/utils/responsive.ts +110 -0
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { useEffect } from 'react';
|
|
4
|
+
import { StyleSheet, Text, Pressable } from 'react-native';
|
|
5
|
+
import Animated, { useSharedValue, useAnimatedStyle, withSpring, interpolateColor } from 'react-native-reanimated';
|
|
6
|
+
import useTheme from '../theme/useTheme';
|
|
7
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
+
const CHECK_SPRING = {
|
|
9
|
+
mass: 0.4,
|
|
10
|
+
damping: 10,
|
|
11
|
+
stiffness: 200
|
|
12
|
+
};
|
|
13
|
+
export default function FluentGlassCheckbox({
|
|
14
|
+
checked = false,
|
|
15
|
+
onToggle,
|
|
16
|
+
label,
|
|
17
|
+
disabled = false,
|
|
18
|
+
size = 24,
|
|
19
|
+
style,
|
|
20
|
+
accessibilityLabel
|
|
21
|
+
}) {
|
|
22
|
+
const theme = useTheme();
|
|
23
|
+
const COLORS = theme.colors;
|
|
24
|
+
const typography = theme.typography;
|
|
25
|
+
const progress = useSharedValue(checked ? 1 : 0);
|
|
26
|
+
useEffect(() => {
|
|
27
|
+
progress.value = withSpring(checked ? 1 : 0, CHECK_SPRING);
|
|
28
|
+
}, [checked]);
|
|
29
|
+
|
|
30
|
+
// Circle background animates from transparent glass to accent
|
|
31
|
+
const circleStyle = useAnimatedStyle(() => {
|
|
32
|
+
const backgroundColor = interpolateColor(progress.value, [0, 1], [COLORS.border, COLORS.accent]);
|
|
33
|
+
const borderColor = interpolateColor(progress.value, [0, 1], [COLORS.textSecondary, COLORS.accent]);
|
|
34
|
+
return {
|
|
35
|
+
backgroundColor,
|
|
36
|
+
borderColor,
|
|
37
|
+
transform: [{
|
|
38
|
+
scale: 0.9 + progress.value * 0.1
|
|
39
|
+
}] // subtle pop
|
|
40
|
+
};
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
// Checkmark scales in/out
|
|
44
|
+
const checkStyle = useAnimatedStyle(() => ({
|
|
45
|
+
opacity: progress.value,
|
|
46
|
+
transform: [{
|
|
47
|
+
scale: progress.value
|
|
48
|
+
}]
|
|
49
|
+
}));
|
|
50
|
+
const handlePress = () => {
|
|
51
|
+
if (!disabled && onToggle) {
|
|
52
|
+
onToggle(!checked);
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
const checkSize = size * 0.5; // Checkmark relative to circle
|
|
56
|
+
|
|
57
|
+
return /*#__PURE__*/_jsxs(Pressable, {
|
|
58
|
+
onPress: handlePress,
|
|
59
|
+
style: [styles.wrapper, disabled && styles.wrapperDisabled, style],
|
|
60
|
+
hitSlop: 6,
|
|
61
|
+
accessibilityRole: "checkbox",
|
|
62
|
+
accessibilityLabel: accessibilityLabel ?? label,
|
|
63
|
+
accessibilityState: {
|
|
64
|
+
checked: !!checked,
|
|
65
|
+
disabled: !!disabled
|
|
66
|
+
},
|
|
67
|
+
children: [/*#__PURE__*/_jsx(Animated.View, {
|
|
68
|
+
style: [styles.circle, {
|
|
69
|
+
width: size,
|
|
70
|
+
height: size,
|
|
71
|
+
borderRadius: size / 2
|
|
72
|
+
}, circleStyle],
|
|
73
|
+
children: /*#__PURE__*/_jsx(Animated.Text, {
|
|
74
|
+
style: [styles.check, {
|
|
75
|
+
fontSize: checkSize,
|
|
76
|
+
color: COLORS.white,
|
|
77
|
+
fontFamily: typography.bold
|
|
78
|
+
}, checkStyle],
|
|
79
|
+
children: "\u2713"
|
|
80
|
+
})
|
|
81
|
+
}), label ? /*#__PURE__*/_jsx(Text, {
|
|
82
|
+
style: [styles.label, {
|
|
83
|
+
color: COLORS.textPrimary,
|
|
84
|
+
fontFamily: typography.medium
|
|
85
|
+
}, disabled && {
|
|
86
|
+
color: COLORS.textSecondary
|
|
87
|
+
}],
|
|
88
|
+
children: label
|
|
89
|
+
}) : null]
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
const styles = StyleSheet.create({
|
|
93
|
+
wrapper: {
|
|
94
|
+
flexDirection: 'row',
|
|
95
|
+
alignItems: 'center'
|
|
96
|
+
},
|
|
97
|
+
wrapperDisabled: {
|
|
98
|
+
opacity: 0.4
|
|
99
|
+
},
|
|
100
|
+
circle: {
|
|
101
|
+
borderWidth: 1.5,
|
|
102
|
+
alignItems: 'center',
|
|
103
|
+
justifyContent: 'center'
|
|
104
|
+
},
|
|
105
|
+
check: {
|
|
106
|
+
fontWeight: '700',
|
|
107
|
+
marginTop: -1 // Optical alignment
|
|
108
|
+
},
|
|
109
|
+
label: {
|
|
110
|
+
fontSize: 15,
|
|
111
|
+
fontWeight: '500',
|
|
112
|
+
marginLeft: 12
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
//# sourceMappingURL=FluentGlassCheckbox.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useEffect","StyleSheet","Text","Pressable","Animated","useSharedValue","useAnimatedStyle","withSpring","interpolateColor","useTheme","jsx","_jsx","jsxs","_jsxs","CHECK_SPRING","mass","damping","stiffness","FluentGlassCheckbox","checked","onToggle","label","disabled","size","style","accessibilityLabel","theme","COLORS","colors","typography","progress","value","circleStyle","backgroundColor","border","accent","borderColor","textSecondary","transform","scale","checkStyle","opacity","handlePress","checkSize","onPress","styles","wrapper","wrapperDisabled","hitSlop","accessibilityRole","accessibilityState","children","View","circle","width","height","borderRadius","check","fontSize","color","white","fontFamily","bold","textPrimary","medium","create","flexDirection","alignItems","borderWidth","justifyContent","fontWeight","marginTop","marginLeft"],"sourceRoot":"..\\..\\..\\src","sources":["components/FluentGlassCheckbox.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AAExC,SAASC,UAAU,EAAEC,IAAI,EAAEC,SAAS,QAA8B,cAAc;AAChF,OAAOC,QAAQ,IACXC,cAAc,EACdC,gBAAgB,EAChBC,UAAU,EACVC,gBAAgB,QACb,yBAAyB;AAChC,OAAOC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AAK;UAAEC,UAAU,EAAEhC,UAAU,CAACiC;QAAK,CAAC,EACzEtB,UAAU,CACZ;QAAAW,QAAA,EACL;MAED,CAAe;IAAC,CACL,CAAC,EAGf9B,KAAK,gBACFV,IAAA,CAACT,IAAI;MAACsB,KAAK,EAAE,CAACqB,MAAM,CAACxB,KAAK,EAAE;QAAEsC,KAAK,EAAEhC,MAAM,CAACoC,WAAW;QAAEF,UAAU,EAAEhC,UAAU,CAACmC;MAAO,CAAC,EAAE1C,QAAQ,IAAI;QAAEqC,KAAK,EAAEhC,MAAM,CAACU;MAAc,CAAC,CAAE;MAAAc,QAAA,EAClI9B;IAAK,CACJ,CAAC,GACP,IAAI;EAAA,CACD,CAAC;AAEpB;AAEA,MAAMwB,MAAM,GAAG5C,UAAU,CAACgE,MAAM,CAAC;EAC7BnB,OAAO,EAAE;IACLoB,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE;EAChB,CAAC;EACDpB,eAAe,EAAE;IACbN,OAAO,EAAE;EACb,CAAC;EACDY,MAAM,EAAE;IACJe,WAAW,EAAE,GAAG;IAChBD,UAAU,EAAE,QAAQ;IACpBE,cAAc,EAAE;EACpB,CAAC;EACDZ,KAAK,EAAE;IACHa,UAAU,EAAE,KAAK;IACjBC,SAAS,EAAE,CAAC,CAAC,CAAE;EACnB,CAAC;EACDlD,KAAK,EAAE;IACHqC,QAAQ,EAAE,EAAE;IACZY,UAAU,EAAE,KAAK;IACjBE,UAAU,EAAE;EAChB;AACJ,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { useState, useEffect } 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
|
+
* FluentGlassClockWidget (Atom/Molecule)
|
|
11
|
+
* Dashboard widget displaying current time.
|
|
12
|
+
*/
|
|
13
|
+
export default function FluentGlassClockWidget({
|
|
14
|
+
style
|
|
15
|
+
}) {
|
|
16
|
+
const theme = useTheme();
|
|
17
|
+
const COLORS = theme.colors;
|
|
18
|
+
const typography = theme.typography;
|
|
19
|
+
const [time, setTime] = useState(new Date());
|
|
20
|
+
useEffect(() => {
|
|
21
|
+
const timer = setInterval(() => setTime(new Date()), 60000);
|
|
22
|
+
return () => clearInterval(timer);
|
|
23
|
+
}, []);
|
|
24
|
+
const timeString = time.toLocaleTimeString([], {
|
|
25
|
+
hour: '2-digit',
|
|
26
|
+
minute: '2-digit'
|
|
27
|
+
});
|
|
28
|
+
return /*#__PURE__*/_jsx(FluentGlass, {
|
|
29
|
+
accessible: true,
|
|
30
|
+
accessibilityLabel: `Time: ${timeString}`,
|
|
31
|
+
style: [styles.card, style],
|
|
32
|
+
intensity: 25,
|
|
33
|
+
borderRadius: 20,
|
|
34
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
35
|
+
style: styles.content,
|
|
36
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
37
|
+
style: [styles.label, {
|
|
38
|
+
color: COLORS.textSecondary,
|
|
39
|
+
fontFamily: typography.medium
|
|
40
|
+
}],
|
|
41
|
+
children: "TIME"
|
|
42
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
43
|
+
style: [styles.bigValue, {
|
|
44
|
+
color: COLORS.textPrimary,
|
|
45
|
+
fontFamily: typography.regular
|
|
46
|
+
}],
|
|
47
|
+
children: timeString
|
|
48
|
+
})]
|
|
49
|
+
})
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
const styles = StyleSheet.create({
|
|
53
|
+
card: {
|
|
54
|
+
flex: 1,
|
|
55
|
+
minWidth: 100,
|
|
56
|
+
maxWidth: 140,
|
|
57
|
+
aspectRatio: 1
|
|
58
|
+
},
|
|
59
|
+
content: {
|
|
60
|
+
flex: 1,
|
|
61
|
+
justifyContent: 'center',
|
|
62
|
+
alignItems: 'center'
|
|
63
|
+
},
|
|
64
|
+
label: {
|
|
65
|
+
fontSize: 12,
|
|
66
|
+
textTransform: 'uppercase',
|
|
67
|
+
marginBottom: 4
|
|
68
|
+
},
|
|
69
|
+
bigValue: {
|
|
70
|
+
fontSize: moderateScale(28),
|
|
71
|
+
fontWeight: '300'
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
//# sourceMappingURL=FluentGlassClockWidget.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useState","useEffect","StyleSheet","View","Text","FluentGlass","useTheme","moderateScale","jsx","_jsx","jsxs","_jsxs","FluentGlassClockWidget","style","theme","COLORS","colors","typography","time","setTime","Date","timer","setInterval","clearInterval","timeString","toLocaleTimeString","hour","minute","accessible","accessibilityLabel","styles","card","intensity","borderRadius","children","content","label","color","textSecondary","fontFamily","medium","bigValue","textPrimary","regular","create","flex","minWidth","maxWidth","aspectRatio","justifyContent","alignItems","fontSize","textTransform","marginBottom","fontWeight"],"sourceRoot":"..\\..\\..\\src","sources":["components/FluentGlassClockWidget.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,QAAQ,EAAEC,SAAS,QAAQ,OAAO;AAElD,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;AAMpD;AACA;AACA;AACA;AACA,eAAe,SAASC,sBAAsBA,CAAC;EAAEC;AAAmC,CAAC,EAAE;EACnF,MAAMC,KAAK,GAAGR,QAAQ,CAAC,CAAC;EACxB,MAAMS,MAAM,GAAGD,KAAK,CAACE,MAAM;EAC3B,MAAMC,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AEA,MAAMM,MAAM,GAAG5B,UAAU,CAAC0C,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,KAAK,EAAE;IACHe,QAAQ,EAAE,EAAE;IACZC,aAAa,EAAE,WAAW;IAC1BC,YAAY,EAAE;EAClB,CAAC;EACDZ,QAAQ,EAAE;IACNU,QAAQ,EAAE5C,aAAa,CAAC,EAAE,CAAC;IAC3B+C,UAAU,EAAE;EAChB;AACJ,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { useCallback, useState } from 'react';
|
|
4
|
+
import { StyleSheet, Text, View, Pressable, ScrollView } from 'react-native';
|
|
5
|
+
import * as Clipboard from 'expo-clipboard';
|
|
6
|
+
import FluentGlass from './FluentGlass';
|
|
7
|
+
import useTheme from '../theme/useTheme';
|
|
8
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
+
// Simple regex-based tokenizer (good enough for display, not a full parser)
|
|
10
|
+
function tokenize(line, TOKEN_COLORS) {
|
|
11
|
+
const tokens = [];
|
|
12
|
+
// Pattern priority: comments, strings, tags, keywords, rest
|
|
13
|
+
const regex = /(\/\/.*$|\/\*.*?\*\/)|("(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')|(<\/?[\w.-]+|>|\/>)|(className|import|export|from|const|let|var|function|return|default|if|else|true|false|null|undefined)/g;
|
|
14
|
+
let lastIndex = 0;
|
|
15
|
+
let match;
|
|
16
|
+
while ((match = regex.exec(line)) !== null) {
|
|
17
|
+
// Text before the match
|
|
18
|
+
if (match.index > lastIndex) {
|
|
19
|
+
tokens.push({
|
|
20
|
+
text: line.slice(lastIndex, match.index),
|
|
21
|
+
color: TOKEN_COLORS.text
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
if (match[1]) {
|
|
25
|
+
tokens.push({
|
|
26
|
+
text: match[0],
|
|
27
|
+
color: TOKEN_COLORS.comment
|
|
28
|
+
});
|
|
29
|
+
} else if (match[2]) {
|
|
30
|
+
tokens.push({
|
|
31
|
+
text: match[0],
|
|
32
|
+
color: TOKEN_COLORS.string
|
|
33
|
+
});
|
|
34
|
+
} else if (match[3]) {
|
|
35
|
+
tokens.push({
|
|
36
|
+
text: match[0],
|
|
37
|
+
color: TOKEN_COLORS.tag
|
|
38
|
+
});
|
|
39
|
+
} else if (match[4]) {
|
|
40
|
+
tokens.push({
|
|
41
|
+
text: match[0],
|
|
42
|
+
color: TOKEN_COLORS.keyword
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
lastIndex = match.index + match[0].length;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// Remaining text
|
|
49
|
+
if (lastIndex < line.length) {
|
|
50
|
+
tokens.push({
|
|
51
|
+
text: line.slice(lastIndex),
|
|
52
|
+
color: TOKEN_COLORS.text
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
if (tokens.length === 0) {
|
|
56
|
+
tokens.push({
|
|
57
|
+
text: line || ' ',
|
|
58
|
+
color: TOKEN_COLORS.text
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
return tokens;
|
|
62
|
+
}
|
|
63
|
+
export default function FluentGlassCodeBlock({
|
|
64
|
+
code = '',
|
|
65
|
+
language = 'CODE',
|
|
66
|
+
showLineNumbers = true,
|
|
67
|
+
onCopy,
|
|
68
|
+
style
|
|
69
|
+
}) {
|
|
70
|
+
const theme = useTheme();
|
|
71
|
+
const colors = theme.colors;
|
|
72
|
+
|
|
73
|
+
// Basic token colors matching a dark IDE theme — uses theme colors
|
|
74
|
+
const TOKEN_COLORS = {
|
|
75
|
+
tag: '#06B6D4',
|
|
76
|
+
// Cyan — HTML tags, JSX
|
|
77
|
+
attribute: '#94A3B8',
|
|
78
|
+
// Slate — attribute names
|
|
79
|
+
string: '#FBBF24',
|
|
80
|
+
// Amber — string values
|
|
81
|
+
keyword: '#C084FC',
|
|
82
|
+
// Purple — keywords
|
|
83
|
+
comment: '#4B5563',
|
|
84
|
+
// Gray — comments
|
|
85
|
+
punctuation: '#94A3B8',
|
|
86
|
+
text: colors.textPrimary
|
|
87
|
+
};
|
|
88
|
+
const lines = code.split('\n');
|
|
89
|
+
const lineNumWidth = String(lines.length).length * 10 + 12;
|
|
90
|
+
const [copied, setCopied] = useState(false);
|
|
91
|
+
const handleCopy = useCallback(async () => {
|
|
92
|
+
if (onCopy) {
|
|
93
|
+
onCopy(code);
|
|
94
|
+
} else {
|
|
95
|
+
await Clipboard.setStringAsync(code);
|
|
96
|
+
}
|
|
97
|
+
setCopied(true);
|
|
98
|
+
setTimeout(() => setCopied(false), 2000);
|
|
99
|
+
}, [code, onCopy]);
|
|
100
|
+
return /*#__PURE__*/_jsx(FluentGlass, {
|
|
101
|
+
accessibilityLabel: "Code block",
|
|
102
|
+
style: [styles.container, style],
|
|
103
|
+
intensity: 15,
|
|
104
|
+
tint: "dark",
|
|
105
|
+
borderRadius: 16,
|
|
106
|
+
borderOpacity: 0.2,
|
|
107
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
108
|
+
style: styles.inner,
|
|
109
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
110
|
+
style: styles.header,
|
|
111
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
112
|
+
style: [styles.badge, {
|
|
113
|
+
backgroundColor: colors.borderSubtle,
|
|
114
|
+
borderColor: colors.border
|
|
115
|
+
}],
|
|
116
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
117
|
+
style: [styles.badgeText, {
|
|
118
|
+
color: colors.textPrimary,
|
|
119
|
+
fontFamily: theme.typography.bold
|
|
120
|
+
}],
|
|
121
|
+
children: language.toUpperCase()
|
|
122
|
+
})
|
|
123
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
124
|
+
style: styles.actions,
|
|
125
|
+
children: /*#__PURE__*/_jsx(Pressable, {
|
|
126
|
+
onPress: handleCopy,
|
|
127
|
+
hitSlop: 8,
|
|
128
|
+
style: styles.actionBtn,
|
|
129
|
+
accessibilityRole: "button",
|
|
130
|
+
accessibilityLabel: "Copy code",
|
|
131
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
132
|
+
style: styles.actionIcon,
|
|
133
|
+
children: copied ? '✅' : '📋'
|
|
134
|
+
})
|
|
135
|
+
})
|
|
136
|
+
})]
|
|
137
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
138
|
+
style: [styles.separator, {
|
|
139
|
+
backgroundColor: colors.borderSubtle
|
|
140
|
+
}]
|
|
141
|
+
}), /*#__PURE__*/_jsx(ScrollView, {
|
|
142
|
+
horizontal: true,
|
|
143
|
+
showsHorizontalScrollIndicator: false,
|
|
144
|
+
bounces: false,
|
|
145
|
+
children: /*#__PURE__*/_jsx(View, {
|
|
146
|
+
style: styles.codeArea,
|
|
147
|
+
children: lines.map((line, i) => /*#__PURE__*/_jsxs(View, {
|
|
148
|
+
style: styles.lineRow,
|
|
149
|
+
children: [showLineNumbers ? /*#__PURE__*/_jsx(Text, {
|
|
150
|
+
style: [styles.lineNum, {
|
|
151
|
+
width: lineNumWidth,
|
|
152
|
+
color: colors.textSecondary
|
|
153
|
+
}],
|
|
154
|
+
children: i + 1
|
|
155
|
+
}) : null, /*#__PURE__*/_jsx(Text, {
|
|
156
|
+
style: [styles.codeLine, {
|
|
157
|
+
color: colors.textPrimary
|
|
158
|
+
}],
|
|
159
|
+
children: tokenize(line, TOKEN_COLORS).map((token, j) => /*#__PURE__*/_jsx(Text, {
|
|
160
|
+
style: {
|
|
161
|
+
color: token.color
|
|
162
|
+
},
|
|
163
|
+
children: token.text
|
|
164
|
+
}, j))
|
|
165
|
+
})]
|
|
166
|
+
}, i))
|
|
167
|
+
})
|
|
168
|
+
})]
|
|
169
|
+
})
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
const styles = StyleSheet.create({
|
|
173
|
+
container: {
|
|
174
|
+
overflow: 'hidden'
|
|
175
|
+
},
|
|
176
|
+
inner: {
|
|
177
|
+
flex: 1
|
|
178
|
+
},
|
|
179
|
+
header: {
|
|
180
|
+
flexDirection: 'row',
|
|
181
|
+
alignItems: 'center',
|
|
182
|
+
justifyContent: 'space-between',
|
|
183
|
+
paddingHorizontal: 12,
|
|
184
|
+
paddingTop: 10,
|
|
185
|
+
paddingBottom: 8
|
|
186
|
+
},
|
|
187
|
+
badge: {
|
|
188
|
+
borderRadius: 6,
|
|
189
|
+
paddingHorizontal: 10,
|
|
190
|
+
paddingVertical: 4,
|
|
191
|
+
borderWidth: 1
|
|
192
|
+
},
|
|
193
|
+
badgeText: {
|
|
194
|
+
fontSize: 11,
|
|
195
|
+
fontWeight: '700',
|
|
196
|
+
letterSpacing: 0.5
|
|
197
|
+
},
|
|
198
|
+
actions: {
|
|
199
|
+
flexDirection: 'row',
|
|
200
|
+
gap: 8
|
|
201
|
+
},
|
|
202
|
+
actionBtn: {
|
|
203
|
+
padding: 4
|
|
204
|
+
},
|
|
205
|
+
actionIcon: {
|
|
206
|
+
fontSize: 16
|
|
207
|
+
},
|
|
208
|
+
separator: {
|
|
209
|
+
height: 1,
|
|
210
|
+
marginHorizontal: 0
|
|
211
|
+
},
|
|
212
|
+
codeArea: {
|
|
213
|
+
paddingVertical: 12,
|
|
214
|
+
paddingRight: 16
|
|
215
|
+
},
|
|
216
|
+
lineRow: {
|
|
217
|
+
flexDirection: 'row',
|
|
218
|
+
minHeight: 22
|
|
219
|
+
},
|
|
220
|
+
lineNum: {
|
|
221
|
+
fontSize: 13,
|
|
222
|
+
fontFamily: 'monospace',
|
|
223
|
+
textAlign: 'right',
|
|
224
|
+
marginRight: 16,
|
|
225
|
+
paddingLeft: 12
|
|
226
|
+
},
|
|
227
|
+
codeLine: {
|
|
228
|
+
fontSize: 13,
|
|
229
|
+
fontFamily: 'monospace',
|
|
230
|
+
flex: 1
|
|
231
|
+
}
|
|
232
|
+
});
|
|
233
|
+
//# sourceMappingURL=FluentGlassCodeBlock.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useCallback","useState","StyleSheet","Text","View","Pressable","ScrollView","Clipboard","FluentGlass","useTheme","jsx","_jsx","jsxs","_jsxs","tokenize","line","TOKEN_COLORS","tokens","regex","lastIndex","match","exec","index","push","text","slice","color","comment","string","tag","keyword","length","FluentGlassCodeBlock","code","language","showLineNumbers","onCopy","style","theme","colors","attribute","punctuation","textPrimary","lines","split","lineNumWidth","String","copied","setCopied","handleCopy","setStringAsync","setTimeout","accessibilityLabel","styles","container","intensity","tint","borderRadius","borderOpacity","children","inner","header","badge","backgroundColor","borderSubtle","borderColor","border","badgeText","fontFamily","typography","bold","toUpperCase","actions","onPress","hitSlop","actionBtn","accessibilityRole","actionIcon","separator","horizontal","showsHorizontalScrollIndicator","bounces","codeArea","map","i","lineRow","lineNum","width","textSecondary","codeLine","token","j","create","overflow","flex","flexDirection","alignItems","justifyContent","paddingHorizontal","paddingTop","paddingBottom","paddingVertical","borderWidth","fontSize","fontWeight","letterSpacing","gap","padding","height","marginHorizontal","paddingRight","minHeight","textAlign","marginRight","paddingLeft"],"sourceRoot":"..\\..\\..\\src","sources":["components/FluentGlassCodeBlock.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,QAAQ,QAAQ,OAAO;AACpD,SAASC,UAAU,EAAEC,IAAI,EAAEC,IAAI,EAAEC,SAAS,EAAEC,UAAU,QAA8B,cAAc;AAClG,OAAO,KAAKC,SAAS,MAAM,gBAAgB;AAC3C,OAAOC,WAAW,MAAM,eAAe;AACvC,OAAOC,QAAQ,MAAM,mBAAmB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA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AQ,EAAE;IACNmB,eAAe,EAAE,EAAE;IACnBS,YAAY,EAAE;EAClB,CAAC;EACDzB,OAAO,EAAE;IACLU,aAAa,EAAE,KAAK;IACpBgB,SAAS,EAAE;EACf,CAAC;EACDzB,OAAO,EAAE;IACLiB,QAAQ,EAAE,EAAE;IACZnC,UAAU,EAAE,WAAW;IACvB4C,SAAS,EAAE,OAAO;IAClBC,WAAW,EAAE,EAAE;IACfC,WAAW,EAAE;EACjB,CAAC;EACDzB,QAAQ,EAAE;IACNc,QAAQ,EAAE,EAAE;IACZnC,UAAU,EAAE,WAAW;IACvB0B,IAAI,EAAE;EACV;AACJ,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { StyleSheet, View } from 'react-native';
|
|
5
|
+
import useTheme from '../theme/useTheme';
|
|
6
|
+
import { resolveColorScheme, resolveRadius, resolveBackwardCompat } from '../theme/resolvers';
|
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
+
/**
|
|
9
|
+
* FluentGlassContainer (Atom)
|
|
10
|
+
* Section-level glass wrapper for layout depth.
|
|
11
|
+
* Uses plain View (no BlurView) to avoid nested-blur artifacts.
|
|
12
|
+
*/
|
|
13
|
+
export default function FluentGlassContainer({
|
|
14
|
+
children,
|
|
15
|
+
colorScheme,
|
|
16
|
+
radius,
|
|
17
|
+
tint = 'light',
|
|
18
|
+
padding = 16,
|
|
19
|
+
borderRadius,
|
|
20
|
+
borderOpacity = 0.15,
|
|
21
|
+
style
|
|
22
|
+
}) {
|
|
23
|
+
const theme = useTheme();
|
|
24
|
+
const compat = resolveBackwardCompat({
|
|
25
|
+
tint,
|
|
26
|
+
colorScheme
|
|
27
|
+
});
|
|
28
|
+
const resolvedScheme = compat.colorScheme || 'light';
|
|
29
|
+
const colorConfig = resolveColorScheme(theme, resolvedScheme);
|
|
30
|
+
const resolvedRadius = borderRadius ?? resolveRadius(theme, radius || 'lg');
|
|
31
|
+
return /*#__PURE__*/_jsx(View, {
|
|
32
|
+
style: [styles.container, {
|
|
33
|
+
padding,
|
|
34
|
+
borderRadius: resolvedRadius,
|
|
35
|
+
backgroundColor: colorConfig.bg,
|
|
36
|
+
borderColor: colorConfig.border || theme.colors.border
|
|
37
|
+
}, style],
|
|
38
|
+
children: children
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
const styles = StyleSheet.create({
|
|
42
|
+
container: {
|
|
43
|
+
minHeight: 40,
|
|
44
|
+
borderWidth: 1
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
//# sourceMappingURL=FluentGlassContainer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","View","useTheme","resolveColorScheme","resolveRadius","resolveBackwardCompat","jsx","_jsx","FluentGlassContainer","children","colorScheme","radius","tint","padding","borderRadius","borderOpacity","style","theme","compat","resolvedScheme","colorConfig","resolvedRadius","styles","container","backgroundColor","bg","borderColor","border","colors","create","minHeight","borderWidth"],"sourceRoot":"..\\..\\..\\src","sources":["components/FluentGlassContainer.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,QAA8B,cAAc;AACrE,OAAOC,QAAQ,MAAM,mBAAmB;AACxC,SAASC,kBAAkB,EAAEC,aAAa,EAAEC,qBAAqB,QAAQ,oBAAoB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAgB9F;AACA;AACA;AACA;AACA;AACA,eAAe,SAASC,oBAAoBA,CAAC;EAAEC,QAAQ;EACnDC,WAAW;EACXC,MAAM;EACNC,IAAI,GAAG,OAAO;EACdC,OAAO,GAAG,EAAE;EACZC,YAAY;EACZC,aAAa,GAAG,IAAI;EACpBC;AAAkC,CAAC,EAAE;EACrC,MAAMC,KAAK,GAAGf,QAAQ,CAAC,CAAC;EAExB,MAAMgB,MAAM,GAAGb,qBAAqB,CAAC;IAAEO,IAAI;IAAEF;EAAY,CAAC,CAAC;EAC3D,MAAMS,cAAc,GAAGD,MAAM,CAACR,WAAW,IAAI,OAAO;EACpD,MAAMU,WAAW,GAAGjB,kBAAkB,CAACc,KAAK,EAAEE,cAAc,CAAC;EAC7D,MAAME,cAAc,GAAGP,YAAY,IAAIV,aAAa,CAACa,KAAK,EAAEN,MAAM,IAAI,IAAI,CAAC;EAE3E,oBACIJ,IAAA,CAACN,IAAI;IACDe,KAAK,EAAE,CACHM,MAAM,CAACC,SAAS,EAChB;MACIV,OAAO;MACPC,YAAY,EAAEO,cAAc;MAC5BG,eAAe,EAAEJ,WAAW,CAACK,EAAE;MAC/BC,WAAW,EAAEN,WAAW,CAACO,MAAM,IAAIV,KAAK,CAACW,MAAM,CAACD;IACpD,CAAC,EACDX,KAAK,CACP;IAAAP,QAAA,EAEDA;EAAQ,CACP,CAAC;AAEf;AAEA,MAAMa,MAAM,GAAGtB,UAAU,CAAC6B,MAAM,CAAC;EAC7BN,SAAS,EAAE;IACPO,SAAS,EAAE,EAAE;IACbC,WAAW,EAAE;EACjB;AACJ,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { useState, useCallback, useEffect, useRef } from 'react';
|
|
4
|
+
import { View, StyleSheet } from 'react-native';
|
|
5
|
+
import Animated, { useSharedValue, useAnimatedStyle, withTiming, withSpring, runOnJS, Easing } from 'react-native-reanimated';
|
|
6
|
+
import useTheme from '../theme/useTheme';
|
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
+
/**
|
|
9
|
+
* FluentGlassCrossfade
|
|
10
|
+
*
|
|
11
|
+
* Universal animated content switcher. Crossfades between children
|
|
12
|
+
* with a fade + translateY spring animation.
|
|
13
|
+
*
|
|
14
|
+
* Usage:
|
|
15
|
+
* <FluentGlassCrossfade activeKey="home">
|
|
16
|
+
* <HomeScreen key="home" />
|
|
17
|
+
* <SettingsScreen key="settings" />
|
|
18
|
+
* </FluentGlassCrossfade>
|
|
19
|
+
*/
|
|
20
|
+
export default function FluentGlassCrossfade({
|
|
21
|
+
activeKey,
|
|
22
|
+
children,
|
|
23
|
+
fadeOutDuration,
|
|
24
|
+
fadeInDuration,
|
|
25
|
+
translateY: translateYAmount,
|
|
26
|
+
style
|
|
27
|
+
}) {
|
|
28
|
+
const theme = useTheme();
|
|
29
|
+
const crossfadeConfig = theme.animations?.crossfade || {};
|
|
30
|
+
const springConfig = theme.animations?.spring?.snappy || {
|
|
31
|
+
mass: 0.4,
|
|
32
|
+
damping: 14,
|
|
33
|
+
stiffness: 160
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
// Merge props with theme defaults
|
|
37
|
+
const outDuration = fadeOutDuration ?? crossfadeConfig.fadeOutDuration ?? 120;
|
|
38
|
+
const inDuration = fadeInDuration ?? crossfadeConfig.fadeInDuration ?? 200;
|
|
39
|
+
const shiftY = translateYAmount ?? crossfadeConfig.translateY ?? 6;
|
|
40
|
+
const [currentKey, setCurrentKey] = useState(activeKey);
|
|
41
|
+
const [containerHeight, setContainerHeight] = useState(0);
|
|
42
|
+
const isTransitioning = useRef(false);
|
|
43
|
+
const opacity = useSharedValue(1);
|
|
44
|
+
const translateY = useSharedValue(0);
|
|
45
|
+
const commitSwitch = useCallback(newKey => {
|
|
46
|
+
setCurrentKey(newKey);
|
|
47
|
+
isTransitioning.current = false;
|
|
48
|
+
// Delay fade-in to next frame so React commit doesn't block animation
|
|
49
|
+
requestAnimationFrame(() => {
|
|
50
|
+
opacity.value = withTiming(1, {
|
|
51
|
+
duration: inDuration,
|
|
52
|
+
easing: Easing.out(Easing.quad)
|
|
53
|
+
});
|
|
54
|
+
translateY.value = withSpring(0, springConfig);
|
|
55
|
+
});
|
|
56
|
+
}, [inDuration, springConfig]);
|
|
57
|
+
useEffect(() => {
|
|
58
|
+
if (activeKey !== currentKey && !isTransitioning.current) {
|
|
59
|
+
isTransitioning.current = true;
|
|
60
|
+
|
|
61
|
+
// Fade out
|
|
62
|
+
opacity.value = withTiming(0, {
|
|
63
|
+
duration: outDuration,
|
|
64
|
+
easing: Easing.in(Easing.quad)
|
|
65
|
+
}, finished => {
|
|
66
|
+
if (finished) {
|
|
67
|
+
runOnJS(commitSwitch)(activeKey);
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
translateY.value = withTiming(shiftY, {
|
|
71
|
+
duration: outDuration
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
}, [activeKey]);
|
|
75
|
+
const animatedStyle = useAnimatedStyle(() => ({
|
|
76
|
+
opacity: opacity.value,
|
|
77
|
+
transform: [{
|
|
78
|
+
translateY: translateY.value
|
|
79
|
+
}]
|
|
80
|
+
}));
|
|
81
|
+
|
|
82
|
+
// Find active child by key
|
|
83
|
+
// React.Children.toArray prefixes keys with ".$/", ".$", or "."
|
|
84
|
+
// We strip all prefixes to compare raw keys
|
|
85
|
+
const childArray = React.Children.toArray(children);
|
|
86
|
+
const stripKeyPrefix = key => key?.replace(/^\.\$/, '').replace(/^\./, '');
|
|
87
|
+
const activeChild = childArray.find(child => stripKeyPrefix(child.key) === String(currentKey)) || childArray[0];
|
|
88
|
+
return /*#__PURE__*/_jsx(View, {
|
|
89
|
+
style: [styles.container, containerHeight > 0 && {
|
|
90
|
+
minHeight: containerHeight
|
|
91
|
+
}, style],
|
|
92
|
+
children: /*#__PURE__*/_jsx(Animated.View, {
|
|
93
|
+
style: [styles.content, animatedStyle],
|
|
94
|
+
onLayout: e => {
|
|
95
|
+
const h = e.nativeEvent.layout.height;
|
|
96
|
+
if (h > containerHeight) setContainerHeight(h);
|
|
97
|
+
},
|
|
98
|
+
children: activeChild
|
|
99
|
+
})
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
const styles = StyleSheet.create({
|
|
103
|
+
container: {
|
|
104
|
+
width: '100%',
|
|
105
|
+
flex: 1
|
|
106
|
+
},
|
|
107
|
+
content: {
|
|
108
|
+
width: '100%',
|
|
109
|
+
flex: 1
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
//# sourceMappingURL=FluentGlassCrossfade.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useState","useCallback","useEffect","useRef","View","StyleSheet","Animated","useSharedValue","useAnimatedStyle","withTiming","withSpring","runOnJS","Easing","useTheme","jsx","_jsx","FluentGlassCrossfade","activeKey","children","fadeOutDuration","fadeInDuration","translateY","translateYAmount","style","theme","crossfadeConfig","animations","crossfade","springConfig","spring","snappy","mass","damping","stiffness","outDuration","inDuration","shiftY","currentKey","setCurrentKey","containerHeight","setContainerHeight","isTransitioning","opacity","commitSwitch","newKey","current","requestAnimationFrame","value","duration","easing","out","quad","in","finished","animatedStyle","transform","childArray","Children","toArray","stripKeyPrefix","key","replace","activeChild","find","child","String","styles","container","minHeight","content","onLayout","e","h","nativeEvent","layout","height","create","width","flex"],"sourceRoot":"..\\..\\..\\src","sources":["components/FluentGlassCrossfade.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,QAAQ,EAAEC,WAAW,EAAEC,SAAS,EAAEC,MAAM,QAAQ,OAAO;AACvE,SAASC,IAAI,EAAEC,UAAU,QAA8B,cAAc;AACrE,OAAOC,QAAQ,IACXC,cAAc,EACdC,gBAAgB,EAChBC,UAAU,EACVC,UAAU,EACVC,OAAO,EACPC,MAAM,QACH,yBAAyB;AAChC,OAAOC,QAAQ,MAAM,mBAAmB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAWzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,SAASC,oBAAoBA,CAAC;EACzCC,SAAS;EACTC,QAAQ;EACRC,eAAe;EACfC,cAAc;EACdC,UAAU,EAAEC,gBAAgB;EAC5BC;AACuB,CAAC,EAAE;EAC1B,MAAMC,KAAK,GAAGX,QAAQ,CAAC,CAAC;EACxB,MAAMY,eAAe,GAAGD,K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