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
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 grrdhdz
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
# FluentGlass
|
|
2
|
+
|
|
3
|
+
[](https://github.com/ellerbrock/typescript-badges/)
|
|
4
|
+
|
|
5
|
+
> **Note for AI Assistants & LLMs:** Please refer to `CLAUDE.md` or `AGENTS.md` for architecture rules and system context. This file is intended for human developers consuming the library.
|
|
6
|
+
|
|
7
|
+
**FluentGlass** is a beautiful, highly-customizable **glassmorphism** UI component library built for **React Native** and **Expo**.
|
|
8
|
+
|
|
9
|
+
It provides **42 meticulously crafted** interface components featuring deep frosted glass aesthetics, smooth physics-based animations (Reanimated 4), a fully dynamic theming engine, bundled Inter typography, and is **100% strongly typed with TypeScript**.
|
|
10
|
+
|
|
11
|
+
## Key Features
|
|
12
|
+
|
|
13
|
+
- **Glassmorphism First:** Deep, layered translucent effects right out of the box using `expo-blur`.
|
|
14
|
+
- **Dynamic Theming Engine:** Override colors, typography, and animation springs down to the token level via `useTheme()`.
|
|
15
|
+
- **Universal Design:** Runs flawlessly on Web (Browser), iOS, and Android using the exact same code.
|
|
16
|
+
- **Bootstrap-Inspired Props:** Intuitive standard props (`size`, `colorScheme`, `radius`, `blur`) for rapid prototyping.
|
|
17
|
+
- **Integrated Typography:** Bundled with the **Inter** font family (6 weights), auto-loaded transparently by the Provider.
|
|
18
|
+
- **Smooth Animations:** Built-in micro-interactions powered by `react-native-reanimated`.
|
|
19
|
+
- **Full TypeScript:** Every component, hook, and utility is strictly typed with zero compilation errors.
|
|
20
|
+
- **Accessible:** All 42 components include accessibility roles, labels, and states for VoiceOver and TalkBack support.
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## Installation
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
# 1. Install FluentGlass
|
|
28
|
+
npm install fluentglass
|
|
29
|
+
|
|
30
|
+
# 2. Install peer dependencies required by Expo
|
|
31
|
+
npx expo install expo-blur expo-linear-gradient expo-clipboard expo-font react-native-reanimated react-native-gesture-handler
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
> **Note:** Make sure you have configured `react-native-reanimated` correctly in your `babel.config.js`.
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## Quick Start
|
|
39
|
+
|
|
40
|
+
Wrap your application inside the `<FluentGlassProvider>` (which handles theme injection and font loading automatically), and start using the components!
|
|
41
|
+
|
|
42
|
+
```jsx
|
|
43
|
+
import React from 'react';
|
|
44
|
+
import {
|
|
45
|
+
FluentGlassProvider,
|
|
46
|
+
FluentGlassLayout,
|
|
47
|
+
FluentGlassCard,
|
|
48
|
+
FluentGlassButton
|
|
49
|
+
} from 'fluentglass';
|
|
50
|
+
|
|
51
|
+
export default function App() {
|
|
52
|
+
return (
|
|
53
|
+
<FluentGlassProvider>
|
|
54
|
+
<FluentGlassLayout center>
|
|
55
|
+
|
|
56
|
+
<FluentGlassCard
|
|
57
|
+
title="Welcome to FluentGlass"
|
|
58
|
+
description="Build stunning futuristic interfaces."
|
|
59
|
+
colorScheme="info"
|
|
60
|
+
size="lg"
|
|
61
|
+
blur="strong"
|
|
62
|
+
radius="lg"
|
|
63
|
+
/>
|
|
64
|
+
|
|
65
|
+
<FluentGlassButton
|
|
66
|
+
title="Launch App"
|
|
67
|
+
colorScheme="accent"
|
|
68
|
+
size="md"
|
|
69
|
+
marginTop={20}
|
|
70
|
+
onPress={() => console.log('Lift off!')}
|
|
71
|
+
/>
|
|
72
|
+
|
|
73
|
+
</FluentGlassLayout>
|
|
74
|
+
</FluentGlassProvider>
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
---
|
|
80
|
+
|
|
81
|
+
## The Props System
|
|
82
|
+
|
|
83
|
+
FluentGlass features a standardized props system. Instead of fighting with raw stylesheets, simply use these properties on nearly any component:
|
|
84
|
+
|
|
85
|
+
| Category | Prop | Accepted Values |
|
|
86
|
+
|----------|------|----------------|
|
|
87
|
+
| **Sizing** | `size` | `'xs'`, `'sm'`, `'md'`, `'lg'`, `'xl'` |
|
|
88
|
+
| **Color Scheme** | `colorScheme` | `'default'`, `'dark'`, `'deep'`, `'light'`, `'success'`, `'error'`, `'warning'`, `'info'`, `'accent'` |
|
|
89
|
+
| **Glass Effect** | `blur` | `'none'`, `'subtle'`, `'medium'`, `'strong'`, `'max'` |
|
|
90
|
+
| **Border Radius**| `radius` | `'none'`, `'sm'`, `'md'`, `'lg'`, `'pill'` |
|
|
91
|
+
|
|
92
|
+
*Example:* `<FluentGlassBadge colorScheme="success" size="sm" radius="pill" />`
|
|
93
|
+
|
|
94
|
+
---
|
|
95
|
+
|
|
96
|
+
## Custom Theming
|
|
97
|
+
|
|
98
|
+
FluentGlass uses a deep-merge strategy. You can easily inject your brand colors into the `FluentGlassProvider`.
|
|
99
|
+
|
|
100
|
+
```jsx
|
|
101
|
+
const customTheme = {
|
|
102
|
+
colors: {
|
|
103
|
+
background: '#0F172A',
|
|
104
|
+
accent: '#8B5CF6', // Vibrant purple
|
|
105
|
+
textPrimary: '#F8FAFC',
|
|
106
|
+
success: '#10B981'
|
|
107
|
+
},
|
|
108
|
+
animations: {
|
|
109
|
+
spring: { default: { mass: 0.5, damping: 10, stiffness: 200 } }
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
export default function App() {
|
|
114
|
+
return (
|
|
115
|
+
<FluentGlassProvider theme={customTheme}>
|
|
116
|
+
<YourAppContents />
|
|
117
|
+
</FluentGlassProvider>
|
|
118
|
+
);
|
|
119
|
+
}
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
---
|
|
123
|
+
|
|
124
|
+
## Component Catalog
|
|
125
|
+
|
|
126
|
+
FluentGlass provides **42 ready-to-use components** organized by category:
|
|
127
|
+
|
|
128
|
+
### Forms (13)
|
|
129
|
+
`FluentGlassTextInput`, `FluentGlassLabeledInput`, `FluentGlassPasswordInput`, `FluentGlassEmailInput`, `FluentGlassDateInput`, `FluentGlassInput`, `FluentGlassSelect`, `FluentGlassDropdown`, `FluentGlassSwitch`, `FluentGlassCheckbox`, `FluentGlassSlider`, `FluentGlassSegmentedControl`, `FluentGlassDatePicker`
|
|
130
|
+
|
|
131
|
+
### Layout & Navigation (11)
|
|
132
|
+
`FluentGlass`, `FluentGlassLayout`, `FluentGlassContainer`, `FluentGlassCard`, `FluentGlassSimpleCard`, `FluentGlassResponsiveRow`, `FluentGlassSidebar`, `FluentGlassDock`, `FluentGlassBreadcrumb`, `FluentGlassSeparator`, `FluentGlassScrollArea`
|
|
133
|
+
|
|
134
|
+
### Data Display (11)
|
|
135
|
+
`FluentGlassTable`, `FluentGlassBarChart`, `FluentGlassCodeBlock`, `FluentGlassTimeline`, `FluentGlassBadge`, `FluentGlassTag`, `FluentGlassStatusIndicator`, `FluentGlassStatWidget`, `FluentGlassCalendarWidget`, `FluentGlassClockWidget`, `FluentGlassWeatherWidget`
|
|
136
|
+
|
|
137
|
+
### Feedback & Overlays (6)
|
|
138
|
+
`FluentGlassAlert`, `FluentGlassDialog`, `FluentGlassPopover`, `FluentGlassSheet`, `FluentGlassSkeleton`, `FluentGlassCrossfade`
|
|
139
|
+
|
|
140
|
+
### Actions (1)
|
|
141
|
+
`FluentGlassButton`
|
|
142
|
+
|
|
143
|
+
*For detailed API documentation on all components, see the `/docs` folder.*
|
|
144
|
+
|
|
145
|
+
---
|
|
146
|
+
|
|
147
|
+
## Running the Example App
|
|
148
|
+
|
|
149
|
+
The repository includes a fully working documentation/demo app in the `/example` folder:
|
|
150
|
+
|
|
151
|
+
```bash
|
|
152
|
+
# Clone the repository
|
|
153
|
+
git clone https://github.com/grrdhdz/FluentGlass.git
|
|
154
|
+
|
|
155
|
+
# Enter the example directory
|
|
156
|
+
cd FluentGlass/example
|
|
157
|
+
npm install
|
|
158
|
+
|
|
159
|
+
# Start the local development web server
|
|
160
|
+
npx expo start --web
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
The example app showcases all 42 components across 5 sections: Home, Form Controls, Data Display, Layout & Nav, and Feedback.
|
|
164
|
+
|
|
165
|
+
---
|
|
166
|
+
|
|
167
|
+
## License
|
|
168
|
+
|
|
169
|
+
Distributed under the **MIT License**. Copyright grrdhdz. See `LICENSE` for more information.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = FluentGlass;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _expoBlur = require("expo-blur");
|
|
10
|
+
var _useTheme = _interopRequireDefault(require("../theme/useTheme"));
|
|
11
|
+
var _resolvers = require("../theme/resolvers");
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
+
/**
|
|
15
|
+
* FluentGlass (Atom)
|
|
16
|
+
* The fundamental building block for the FluentGlass Core.
|
|
17
|
+
* Provides the "glass" material with configurable intensity and border.
|
|
18
|
+
*
|
|
19
|
+
* @param {string} colorScheme - 'default' | 'dark' | 'deep' | 'light' | 'success' | 'error' | 'warning' | 'info'
|
|
20
|
+
* @param {string} blur - 'none' | 'subtle' | 'medium' | 'strong' | 'max'
|
|
21
|
+
* @param {string} radius - 'none' | 'sm' | 'md' | 'lg' | 'pill'
|
|
22
|
+
* @param {number} borderOpacity - Border opacity (0-1)
|
|
23
|
+
*
|
|
24
|
+
* Legacy props (backward compat): tint, intensity, borderRadius
|
|
25
|
+
*/
|
|
26
|
+
|
|
27
|
+
function FluentGlass({
|
|
28
|
+
children,
|
|
29
|
+
style,
|
|
30
|
+
// New standardized props
|
|
31
|
+
colorScheme,
|
|
32
|
+
blur,
|
|
33
|
+
radius,
|
|
34
|
+
// Legacy props (backward compat)
|
|
35
|
+
intensity,
|
|
36
|
+
tint,
|
|
37
|
+
borderOpacity = 0.2,
|
|
38
|
+
borderRadius,
|
|
39
|
+
// Accessibility props
|
|
40
|
+
accessible,
|
|
41
|
+
accessibilityRole,
|
|
42
|
+
accessibilityLabel,
|
|
43
|
+
accessibilityHint,
|
|
44
|
+
accessibilityState,
|
|
45
|
+
accessibilityValue,
|
|
46
|
+
accessibilityViewIsModal
|
|
47
|
+
}) {
|
|
48
|
+
const theme = (0, _useTheme.default)();
|
|
49
|
+
|
|
50
|
+
// Resolve backward compatibility
|
|
51
|
+
const compat = (0, _resolvers.resolveBackwardCompat)({
|
|
52
|
+
tint,
|
|
53
|
+
intensity,
|
|
54
|
+
colorScheme,
|
|
55
|
+
blur
|
|
56
|
+
});
|
|
57
|
+
const resolvedColorScheme = compat.colorScheme || theme.defaults.colorScheme;
|
|
58
|
+
const resolvedBlur = compat.blur || theme.defaults.blur;
|
|
59
|
+
const colorConfig = (0, _resolvers.resolveColorScheme)(theme, resolvedColorScheme);
|
|
60
|
+
const blurConfig = (0, _resolvers.resolveBlur)(theme, resolvedBlur);
|
|
61
|
+
const resolvedRadius = borderRadius ?? (0, _resolvers.resolveRadius)(theme, radius || 'lg');
|
|
62
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
63
|
+
accessible: accessible,
|
|
64
|
+
accessibilityRole: accessibilityRole,
|
|
65
|
+
accessibilityLabel: accessibilityLabel,
|
|
66
|
+
accessibilityHint: accessibilityHint,
|
|
67
|
+
accessibilityState: accessibilityState,
|
|
68
|
+
accessibilityValue: accessibilityValue,
|
|
69
|
+
accessibilityViewIsModal: accessibilityViewIsModal,
|
|
70
|
+
style: [styles.container, {
|
|
71
|
+
borderRadius: resolvedRadius,
|
|
72
|
+
borderColor: colorConfig.border || theme.colors.border,
|
|
73
|
+
backgroundColor: colorConfig.bg
|
|
74
|
+
}, style],
|
|
75
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_expoBlur.BlurView, {
|
|
76
|
+
intensity: blurConfig.intensity,
|
|
77
|
+
tint: colorConfig.tint,
|
|
78
|
+
style: styles.blur,
|
|
79
|
+
children: children
|
|
80
|
+
})
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
const styles = _reactNative.StyleSheet.create({
|
|
84
|
+
container: {
|
|
85
|
+
overflow: 'hidden',
|
|
86
|
+
borderWidth: 1
|
|
87
|
+
},
|
|
88
|
+
blur: {
|
|
89
|
+
flex: 1,
|
|
90
|
+
width: '100%',
|
|
91
|
+
height: '100%'
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
//# sourceMappingURL=FluentGlass.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_expoBlur","_useTheme","_resolvers","_jsxRuntime","e","__esModule","default","FluentGlass","children","style","colorScheme","blur","radius","intensity","tint","borderOpacity","borderRadius","accessible","accessibilityRole","accessibilityLabel","accessibilityHint","accessibilityState","accessibilityValue","accessibilityViewIsModal","theme","useTheme","compat","resolveBackwardCompat","resolvedColorScheme","defaults","resolvedBlur","colorConfig","resolveColorScheme","blurConfig","resolveBlur","resolvedRadius","resolveRadius","jsx","View","styles","container","borderColor","border","colors","backgroundColor","bg","BlurView","StyleSheet","create","overflow","borderWidth","flex","width","height"],"sourceRoot":"..\\..\\..\\src","sources":["components/FluentGlass.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AACA,IAAAG,SAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AAA2G,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAE3G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAae,SAASG,WAAWA,CAAC;EAChCC,QAAQ;EACRC,KAAK;EACL;EACAC,WAAW;EACXC,IAAI;EACJC,MAAM;EACN;EACAC,SAAS;EACTC,IAAI;EACJC,aAAa,GAAG,GAAG;EACnBC,YAAY;EACZ;EACAC,UAAU;EACVC,iBAAiB;EACjBC,kBAAkB;EAClBC,iBAAiB;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ACLjC,SAAS,EAAEoB,UAAU,CAACpB,SAAU;MAChCC,IAAI,EAAEiB,WAAW,CAACjB,IAAK;MACvBL,KAAK,EAAE8B,MAAM,CAAC5B,IAAK;MAAAH,QAAA,EAElBA;IAAQ,CACH;EAAC,CACT,CAAC;AAEf;AAEA,MAAM+B,MAAM,GAAGQ,uBAAU,CAACC,MAAM,CAAC;EAC7BR,SAAS,EAAE;IACPS,QAAQ,EAAE,QAAQ;IAClBC,WAAW,EAAE;EACjB,CAAC;EACDvC,IAAI,EAAE;IACFwC,IAAI,EAAE,CAAC;IACPC,KAAK,EAAE,MAAM;IACbC,MAAM,EAAE;EACZ;AACJ,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = FluentGlassAlert;
|
|
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 _resolvers = require("../theme/resolvers");
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
+
const ALERT_ICONS = {
|
|
15
|
+
success: '✓',
|
|
16
|
+
error: '✕',
|
|
17
|
+
warning: '⚠',
|
|
18
|
+
info: 'ℹ'
|
|
19
|
+
};
|
|
20
|
+
function FluentGlassAlert({
|
|
21
|
+
// New standardized props
|
|
22
|
+
colorScheme,
|
|
23
|
+
size,
|
|
24
|
+
blur,
|
|
25
|
+
radius,
|
|
26
|
+
// Legacy props
|
|
27
|
+
type = 'info',
|
|
28
|
+
title,
|
|
29
|
+
message,
|
|
30
|
+
style,
|
|
31
|
+
accessibilityLabel
|
|
32
|
+
}) {
|
|
33
|
+
const theme = (0, _useTheme.default)();
|
|
34
|
+
|
|
35
|
+
// Resolve backward compat: type → colorScheme
|
|
36
|
+
const compat = (0, _resolvers.resolveBackwardCompat)({
|
|
37
|
+
type,
|
|
38
|
+
colorScheme,
|
|
39
|
+
blur
|
|
40
|
+
});
|
|
41
|
+
const resolvedScheme = compat.colorScheme || 'info';
|
|
42
|
+
const colorConfig = (0, _resolvers.resolveColorScheme)(theme, resolvedScheme);
|
|
43
|
+
const sizeConfig = (0, _resolvers.resolveSize)(theme, size || theme.defaults.size);
|
|
44
|
+
const resolvedRadius = (0, _resolvers.resolveRadius)(theme, radius || 'md');
|
|
45
|
+
const icon = ALERT_ICONS[resolvedScheme] || ALERT_ICONS.info;
|
|
46
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_FluentGlass.default, {
|
|
47
|
+
style: [styles.container, {
|
|
48
|
+
backgroundColor: colorConfig.bg,
|
|
49
|
+
borderColor: colorConfig.border
|
|
50
|
+
}, style],
|
|
51
|
+
colorScheme: "dark",
|
|
52
|
+
blur: compat.blur || 'subtle',
|
|
53
|
+
borderRadius: resolvedRadius,
|
|
54
|
+
borderOpacity: 0,
|
|
55
|
+
accessible: true,
|
|
56
|
+
accessibilityRole: "alert",
|
|
57
|
+
accessibilityLabel: accessibilityLabel ?? [title, message].filter(Boolean).join('. '),
|
|
58
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
59
|
+
style: [styles.content, {
|
|
60
|
+
padding: sizeConfig.paddingHorizontal,
|
|
61
|
+
gap: (sizeConfig.gap ?? 0) + 4
|
|
62
|
+
}],
|
|
63
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
64
|
+
style: [styles.iconCircle, {
|
|
65
|
+
backgroundColor: `${colorConfig.solid}22`,
|
|
66
|
+
borderColor: colorConfig.solid,
|
|
67
|
+
width: sizeConfig.minHeight * 0.75,
|
|
68
|
+
height: sizeConfig.minHeight * 0.75,
|
|
69
|
+
borderRadius: sizeConfig.minHeight * 0.375
|
|
70
|
+
}],
|
|
71
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
72
|
+
style: [styles.icon, {
|
|
73
|
+
color: colorConfig.solid,
|
|
74
|
+
fontSize: sizeConfig.fontSize - 1,
|
|
75
|
+
fontFamily: theme.typography.extraBold
|
|
76
|
+
}],
|
|
77
|
+
children: icon
|
|
78
|
+
})
|
|
79
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
80
|
+
style: styles.textArea,
|
|
81
|
+
children: [title ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
82
|
+
style: [styles.title, {
|
|
83
|
+
color: theme.colors.textPrimary,
|
|
84
|
+
fontSize: sizeConfig.fontSize,
|
|
85
|
+
fontFamily: theme.typography.bold
|
|
86
|
+
}],
|
|
87
|
+
children: title
|
|
88
|
+
}) : null, message ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
89
|
+
style: [styles.message, {
|
|
90
|
+
color: theme.colors.textSecondary,
|
|
91
|
+
fontSize: sizeConfig.fontSize - 2
|
|
92
|
+
}],
|
|
93
|
+
children: message
|
|
94
|
+
}) : null]
|
|
95
|
+
})]
|
|
96
|
+
})
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
const styles = _reactNative.StyleSheet.create({
|
|
100
|
+
container: {
|
|
101
|
+
borderWidth: 1
|
|
102
|
+
},
|
|
103
|
+
content: {
|
|
104
|
+
flexDirection: 'row',
|
|
105
|
+
alignItems: 'center'
|
|
106
|
+
},
|
|
107
|
+
iconCircle: {
|
|
108
|
+
borderWidth: 1.5,
|
|
109
|
+
alignItems: 'center',
|
|
110
|
+
justifyContent: 'center'
|
|
111
|
+
},
|
|
112
|
+
icon: {
|
|
113
|
+
fontWeight: '800'
|
|
114
|
+
},
|
|
115
|
+
textArea: {
|
|
116
|
+
flex: 1
|
|
117
|
+
},
|
|
118
|
+
title: {
|
|
119
|
+
fontWeight: '700'
|
|
120
|
+
},
|
|
121
|
+
message: {
|
|
122
|
+
marginTop: 2,
|
|
123
|
+
lineHeight: 18
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
//# sourceMappingURL=FluentGlassAlert.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_FluentGlass","_useTheme","_resolvers","_jsxRuntime","e","__esModule","default","ALERT_ICONS","success","error","warning","info","FluentGlassAlert","colorScheme","size","blur","radius","type","title","message","style","accessibilityLabel","theme","useTheme","compat","resolveBackwardCompat","resolvedScheme","colorConfig","resolveColorScheme","sizeConfig","resolveSize","defaults","resolvedRadius","resolveRadius","icon","jsx","styles","container","backgroundColor","bg","borderColor","border","borderRadius","borderOpacity","accessible","accessibilityRole","filter","Boolean","join","children","jsxs","View","content","padding","paddingHorizontal","gap","iconCircle","solid","width","minHeight","height","Text","color","fontSize","fontFamily","typography","extraBold","textArea","colors","textPrimary","bold","textSecondary","StyleSheet","create","borderWidth","flexDirection","alignItems","justifyContent","fontWeight","flex","marginTop","lineHeight"],"sourceRoot":"..\\..\\..\\src","sources":["components/FluentGlassAlert.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,SAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AAA2G,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAW3G,MAAMG,WAAmC,GAAG;EACxCC,OAAO,EAAE,GAAG;EACZ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 +1,124 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = FluentGlassBadge;
|
|
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 _resolvers = require("../theme/resolvers");
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
+
/**
|
|
15
|
+
* FluentGlassBadge (Atom)
|
|
16
|
+
* Glassmorphism badge with variants: default, secondary, outline, destructive.
|
|
17
|
+
* Pill-shaped, compact label for status or categorization.
|
|
18
|
+
*
|
|
19
|
+
* @param {string} size - 'xs' | 'sm' | 'md' | 'lg' | 'xl'
|
|
20
|
+
* @param {string} colorScheme - 'default' | 'info' | 'success' | 'error' | 'warning'
|
|
21
|
+
* @param {string} radius - border radius
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
function FluentGlassBadge({
|
|
25
|
+
label,
|
|
26
|
+
variant,
|
|
27
|
+
// mapped via backward compat
|
|
28
|
+
style,
|
|
29
|
+
textStyle,
|
|
30
|
+
icon,
|
|
31
|
+
// New standardized props
|
|
32
|
+
size,
|
|
33
|
+
colorScheme,
|
|
34
|
+
radius = 'pill'
|
|
35
|
+
}) {
|
|
36
|
+
const theme = (0, _useTheme.default)();
|
|
37
|
+
const sizeConfig = (0, _resolvers.resolveSize)(theme, size || 'xs');
|
|
38
|
+
const compat = (0, _resolvers.resolveBackwardCompat)({
|
|
39
|
+
variant,
|
|
40
|
+
colorScheme
|
|
41
|
+
});
|
|
42
|
+
const resolvedScheme = compat.colorScheme || 'default';
|
|
43
|
+
const colorConfig = (0, _resolvers.resolveColorScheme)(theme, resolvedScheme);
|
|
44
|
+
const isOutline = variant === 'outline';
|
|
45
|
+
if (isOutline) {
|
|
46
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
47
|
+
accessible: true,
|
|
48
|
+
accessibilityLabel: String(label),
|
|
49
|
+
style: [styles.outlineContainer, {
|
|
50
|
+
height: sizeConfig.minHeight,
|
|
51
|
+
paddingHorizontal: sizeConfig.paddingHorizontal,
|
|
52
|
+
borderColor: colorConfig.border || theme.colors.border
|
|
53
|
+
}, style],
|
|
54
|
+
children: [icon ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
55
|
+
style: [styles.iconContainer, {
|
|
56
|
+
marginRight: sizeConfig.gap
|
|
57
|
+
}],
|
|
58
|
+
children: icon
|
|
59
|
+
}) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
60
|
+
style: [styles.text, {
|
|
61
|
+
color: theme.colors.textSecondary,
|
|
62
|
+
fontSize: sizeConfig.fontSize,
|
|
63
|
+
fontFamily: theme.typography.medium
|
|
64
|
+
}, textStyle],
|
|
65
|
+
children: label
|
|
66
|
+
})]
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_FluentGlass.default, {
|
|
70
|
+
accessible: true,
|
|
71
|
+
accessibilityLabel: String(label),
|
|
72
|
+
style: [styles.container, {
|
|
73
|
+
height: sizeConfig.minHeight
|
|
74
|
+
}, style],
|
|
75
|
+
colorScheme: resolvedScheme,
|
|
76
|
+
blur: "none",
|
|
77
|
+
radius: radius,
|
|
78
|
+
borderOpacity: 0.25,
|
|
79
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
80
|
+
style: [styles.content, {
|
|
81
|
+
paddingHorizontal: sizeConfig.paddingHorizontal,
|
|
82
|
+
gap: sizeConfig.gap
|
|
83
|
+
}],
|
|
84
|
+
children: [icon ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
85
|
+
style: styles.iconContainer,
|
|
86
|
+
children: icon
|
|
87
|
+
}) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
88
|
+
style: [styles.text, {
|
|
89
|
+
color: colorConfig.text || theme.colors.textPrimary,
|
|
90
|
+
fontSize: sizeConfig.fontSize,
|
|
91
|
+
fontFamily: theme.typography.medium
|
|
92
|
+
}, textStyle],
|
|
93
|
+
children: label
|
|
94
|
+
})]
|
|
95
|
+
})
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
const styles = _reactNative.StyleSheet.create({
|
|
99
|
+
container: {
|
|
100
|
+
alignSelf: 'flex-start',
|
|
101
|
+
justifyContent: 'center'
|
|
102
|
+
},
|
|
103
|
+
content: {
|
|
104
|
+
flex: 1,
|
|
105
|
+
flexDirection: 'row',
|
|
106
|
+
alignItems: 'center',
|
|
107
|
+
justifyContent: 'center'
|
|
108
|
+
},
|
|
109
|
+
outlineContainer: {
|
|
110
|
+
alignSelf: 'flex-start',
|
|
111
|
+
borderRadius: 20,
|
|
112
|
+
borderWidth: 1,
|
|
113
|
+
flexDirection: 'row',
|
|
114
|
+
alignItems: 'center',
|
|
115
|
+
justifyContent: 'center'
|
|
116
|
+
},
|
|
117
|
+
text: {
|
|
118
|
+
fontWeight: '500'
|
|
119
|
+
},
|
|
120
|
+
iconContainer: {
|
|
121
|
+
// margin normally handled by flex gap
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
//# sourceMappingURL=FluentGlassBadge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_FluentGlass","_useTheme","_resolvers","_jsxRuntime","e","__esModule","default","FluentGlassBadge","label","variant","style","textStyle","icon","size","colorScheme","radius","theme","useTheme","sizeConfig","resolveSize","compat","resolveBackwardCompat","resolvedScheme","colorConfig","resolveColorScheme","isOutline","jsxs","View","accessible","accessibilityLabel","String","styles","outlineContainer","height","minHeight","paddingHorizontal","borderColor","border","colors","children","jsx","iconContainer","marginRight","gap","Text","text","color","textSecondary","fontSize","fontFamily","typography","medium","container","blur","borderOpacity","content","textPrimary","StyleSheet","create","alignSelf","justifyContent","flex","flexDirection","alignItems","borderRadius","borderWidth","fontWeight"],"sourceRoot":"..\\..\\..\\src","sources":["components/FluentGlassBadge.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,SAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AAA4F,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAE5F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAYe,SAASG,gBAAgBA,CAAC;EACrCC,KAAK;EACLC,OAAO;EAAE;EACTC,KAAK;EACLC,SAAS;EACTC,IAAI;EACJ;EACAC,IAAI;EACJC,WAAW;EACXC,MAAM,GAAG;AACU,CAAC,EAAE;EACtB,MAAMC,KAAK,GAAG,IAAAC,iBAAQ,EAAC,CAAC;EACxB,MAAMC,UAAU,GAAG,IAAAC,sBAAW,EAACH,KAAK,EAAEH,IAAI,IAAI,IAAI,CAAC;EACnD,MAAMO,MAAM,GAAG,IAAAC,gCAAqB,EAAC;IAAEZ,OAAO;IAAEK;EAAY,CAAC,CAAC;EAC9D,MAAMQ,cAAc,GAAGF,MAAM,CAACN,WAAW,IAAI,SAAS;EACtD,MAAMS,WAAW,GAAG,IAAAC,6BAAkB,EAACR,KAAK,EAAEM,cAAc,CAAC;EAE7D,MAAMG,SAAS,GAAGhB,OAAO,KAAK,SAA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