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,358 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.SIDEBAR_DEFAULTS = void 0;
|
|
7
|
+
exports.default = FluentGlassSidebar;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _reactNative = require("react-native");
|
|
10
|
+
var _reactNativeReanimated = _interopRequireWildcard(require("react-native-reanimated"));
|
|
11
|
+
var _useTheme = _interopRequireDefault(require("../theme/useTheme"));
|
|
12
|
+
var _useBreakpoint = _interopRequireDefault(require("../hooks/useBreakpoint"));
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
15
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
|
+
const NAV_ITEM_HEIGHT = 48;
|
|
17
|
+
const NAV_ITEM_GAP = 4;
|
|
18
|
+
|
|
19
|
+
/** Defaults exported for consumers to calculate marginLeft etc. */
|
|
20
|
+
const SIDEBAR_DEFAULTS = exports.SIDEBAR_DEFAULTS = {
|
|
21
|
+
width: 260,
|
|
22
|
+
margin: 16,
|
|
23
|
+
navItemHeight: NAV_ITEM_HEIGHT,
|
|
24
|
+
navItemGap: NAV_ITEM_GAP
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* FluentGlassSidebar
|
|
29
|
+
*
|
|
30
|
+
* Floating glass sidebar with animated slide, vertical nav indicator,
|
|
31
|
+
* and hamburger toggle. Responsive: floating on desktop, overlay on mobile.
|
|
32
|
+
*
|
|
33
|
+
* Usage:
|
|
34
|
+
* <FluentGlassSidebar
|
|
35
|
+
* routes={[{ id: 'home', label: 'Home', icon: '🏠' }]}
|
|
36
|
+
* activeRoute="home"
|
|
37
|
+
* onNavigate={setRoute}
|
|
38
|
+
* open={open}
|
|
39
|
+
* onToggle={toggle}
|
|
40
|
+
* />
|
|
41
|
+
*/
|
|
42
|
+
|
|
43
|
+
function FluentGlassSidebar({
|
|
44
|
+
routes = [],
|
|
45
|
+
activeRoute,
|
|
46
|
+
onNavigate,
|
|
47
|
+
open = true,
|
|
48
|
+
onToggle,
|
|
49
|
+
header,
|
|
50
|
+
navHeader,
|
|
51
|
+
width = SIDEBAR_DEFAULTS.width,
|
|
52
|
+
margin = SIDEBAR_DEFAULTS.margin,
|
|
53
|
+
colorScheme = 'default',
|
|
54
|
+
blur = 'medium',
|
|
55
|
+
radius = 'lg',
|
|
56
|
+
style
|
|
57
|
+
}) {
|
|
58
|
+
// Optional background and borders mapping
|
|
59
|
+
// We want the modal surface to feel like 'deep' glass by default,
|
|
60
|
+
// but users can specify 'light' or other schemas via the `colorScheme`
|
|
61
|
+
const theme = (0, _useTheme.default)();
|
|
62
|
+
const {
|
|
63
|
+
colors,
|
|
64
|
+
typography
|
|
65
|
+
} = theme;
|
|
66
|
+
const {
|
|
67
|
+
isMobile
|
|
68
|
+
} = (0, _useBreakpoint.default)();
|
|
69
|
+
|
|
70
|
+
// Spring configs from theme
|
|
71
|
+
const sidebarSpring = theme.animations?.springs?.default || {
|
|
72
|
+
mass: 0.6,
|
|
73
|
+
damping: 16,
|
|
74
|
+
stiffness: 140
|
|
75
|
+
};
|
|
76
|
+
const navSpring = theme.animations?.springs?.bouncy || {
|
|
77
|
+
mass: 0.5,
|
|
78
|
+
damping: 15,
|
|
79
|
+
stiffness: 160
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
// Slide animation
|
|
83
|
+
const progress = (0, _reactNativeReanimated.useSharedValue)(open ? 1 : 0);
|
|
84
|
+
_react.default.useEffect(() => {
|
|
85
|
+
progress.value = (0, _reactNativeReanimated.withSpring)(open ? 1 : 0, sidebarSpring);
|
|
86
|
+
}, [open]);
|
|
87
|
+
|
|
88
|
+
// Nav indicator
|
|
89
|
+
const activeIndex = routes.findIndex(r => r.id === activeRoute);
|
|
90
|
+
const navIndicatorY = (0, _reactNativeReanimated.useSharedValue)(Math.max(0, activeIndex) * (NAV_ITEM_HEIGHT + NAV_ITEM_GAP));
|
|
91
|
+
_react.default.useEffect(() => {
|
|
92
|
+
if (activeIndex >= 0) {
|
|
93
|
+
navIndicatorY.value = (0, _reactNativeReanimated.withSpring)(activeIndex * (NAV_ITEM_HEIGHT + NAV_ITEM_GAP), navSpring);
|
|
94
|
+
}
|
|
95
|
+
}, [activeIndex]);
|
|
96
|
+
|
|
97
|
+
// Animated styles
|
|
98
|
+
const sidebarAnimStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => ({
|
|
99
|
+
transform: [{
|
|
100
|
+
translateX: (0, _reactNativeReanimated.interpolate)(progress.value, [0, 1], [-(width + margin * 2), 0])
|
|
101
|
+
}],
|
|
102
|
+
opacity: (0, _reactNativeReanimated.interpolate)(progress.value, [0, 0.3, 1], [0, 1, 1])
|
|
103
|
+
}));
|
|
104
|
+
const navIndicatorStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => ({
|
|
105
|
+
transform: [{
|
|
106
|
+
translateY: navIndicatorY.value
|
|
107
|
+
}]
|
|
108
|
+
}));
|
|
109
|
+
const backdropAnimStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => ({
|
|
110
|
+
opacity: progress.value
|
|
111
|
+
}));
|
|
112
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
113
|
+
children: [!isMobile && !open && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
|
|
114
|
+
onPress: onToggle,
|
|
115
|
+
style: [styles.floatingHamburger, {
|
|
116
|
+
top: margin,
|
|
117
|
+
left: margin,
|
|
118
|
+
backgroundColor: `${colors.background}99`,
|
|
119
|
+
borderColor: colors.border,
|
|
120
|
+
shadowColor: colors.shadow
|
|
121
|
+
}],
|
|
122
|
+
accessibilityRole: "button",
|
|
123
|
+
accessibilityLabel: "Open navigation menu",
|
|
124
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
125
|
+
style: [styles.floatingHamburgerText, {
|
|
126
|
+
color: colors.textPrimary
|
|
127
|
+
}],
|
|
128
|
+
children: "\u2630"
|
|
129
|
+
})
|
|
130
|
+
}), isMobile && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
|
|
131
|
+
style: [{
|
|
132
|
+
position: 'absolute',
|
|
133
|
+
top: -margin,
|
|
134
|
+
bottom: -margin,
|
|
135
|
+
left: -margin,
|
|
136
|
+
right: -margin,
|
|
137
|
+
backgroundColor: colors.overlay,
|
|
138
|
+
zIndex: 5
|
|
139
|
+
}, backdropAnimStyle],
|
|
140
|
+
pointerEvents: open ? 'auto' : 'none',
|
|
141
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
|
|
142
|
+
style: _reactNative.StyleSheet.absoluteFill,
|
|
143
|
+
onPress: onToggle,
|
|
144
|
+
accessibilityRole: "button",
|
|
145
|
+
accessibilityLabel: "Close navigation menu"
|
|
146
|
+
})
|
|
147
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
|
|
148
|
+
style: [styles.sidebarOuter, {
|
|
149
|
+
top: margin,
|
|
150
|
+
left: margin,
|
|
151
|
+
bottom: margin,
|
|
152
|
+
width
|
|
153
|
+
}, isMobile && styles.sidebarOuterMobile, sidebarAnimStyle, style],
|
|
154
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
155
|
+
style: [styles.sidebarGlass, {
|
|
156
|
+
backgroundColor: `${colors.background}8C`,
|
|
157
|
+
borderColor: colors.border,
|
|
158
|
+
shadowColor: colors.shadow
|
|
159
|
+
}],
|
|
160
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
161
|
+
style: [styles.sidebarHeader, {
|
|
162
|
+
borderBottomColor: `${colors.textPrimary}1A`
|
|
163
|
+
}],
|
|
164
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
165
|
+
style: {
|
|
166
|
+
flex: 1
|
|
167
|
+
},
|
|
168
|
+
children: header
|
|
169
|
+
}), !isMobile && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
|
|
170
|
+
onPress: onToggle,
|
|
171
|
+
style: [styles.hamburgerBtn, {
|
|
172
|
+
backgroundColor: `${colors.textPrimary}1A`,
|
|
173
|
+
borderColor: colors.border
|
|
174
|
+
}],
|
|
175
|
+
accessibilityRole: "button",
|
|
176
|
+
accessibilityLabel: "Close navigation menu",
|
|
177
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
178
|
+
style: [styles.hamburgerBtnText, {
|
|
179
|
+
color: colors.textSecondary
|
|
180
|
+
}],
|
|
181
|
+
children: "\u2715"
|
|
182
|
+
})
|
|
183
|
+
})]
|
|
184
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.ScrollView, {
|
|
185
|
+
style: styles.navContainer,
|
|
186
|
+
showsVerticalScrollIndicator: false,
|
|
187
|
+
children: [navHeader && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
188
|
+
style: [styles.navHeaderText, {
|
|
189
|
+
color: colors.textSecondary,
|
|
190
|
+
fontFamily: typography.bold
|
|
191
|
+
}],
|
|
192
|
+
children: navHeader
|
|
193
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
194
|
+
style: styles.navList,
|
|
195
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
|
|
196
|
+
style: [styles.navIndicator, navIndicatorStyle, {
|
|
197
|
+
backgroundColor: colors.accent + '12',
|
|
198
|
+
borderColor: colors.accent + '30'
|
|
199
|
+
}]
|
|
200
|
+
}), routes.map(route => {
|
|
201
|
+
const isActive = activeRoute === route.id;
|
|
202
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.TouchableOpacity, {
|
|
203
|
+
style: styles.navItem,
|
|
204
|
+
onPress: () => onNavigate?.(route.id),
|
|
205
|
+
activeOpacity: 0.7,
|
|
206
|
+
accessibilityRole: "menuitem",
|
|
207
|
+
accessibilityLabel: route.label,
|
|
208
|
+
accessibilityState: {
|
|
209
|
+
selected: isActive
|
|
210
|
+
},
|
|
211
|
+
children: [route.icon && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
212
|
+
style: [styles.navIcon, isActive && {
|
|
213
|
+
color: colors.textPrimary,
|
|
214
|
+
opacity: 1
|
|
215
|
+
}],
|
|
216
|
+
children: route.icon
|
|
217
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
218
|
+
style: [styles.navText, {
|
|
219
|
+
color: colors.textSecondary,
|
|
220
|
+
fontFamily: typography.medium
|
|
221
|
+
}, isActive && {
|
|
222
|
+
color: colors.textPrimary,
|
|
223
|
+
fontFamily: typography.semiBold
|
|
224
|
+
}],
|
|
225
|
+
children: route.label
|
|
226
|
+
})]
|
|
227
|
+
}, route.id);
|
|
228
|
+
})]
|
|
229
|
+
})]
|
|
230
|
+
})]
|
|
231
|
+
})
|
|
232
|
+
})]
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
const styles = _reactNative.StyleSheet.create({
|
|
236
|
+
// Floating outer (positioning)
|
|
237
|
+
sidebarOuter: {
|
|
238
|
+
position: 'absolute',
|
|
239
|
+
zIndex: 50
|
|
240
|
+
},
|
|
241
|
+
sidebarOuterMobile: {
|
|
242
|
+
zIndex: 10
|
|
243
|
+
},
|
|
244
|
+
// Glass container
|
|
245
|
+
sidebarGlass: {
|
|
246
|
+
flex: 1,
|
|
247
|
+
borderRadius: 20,
|
|
248
|
+
borderWidth: 1,
|
|
249
|
+
overflow: 'hidden',
|
|
250
|
+
..._reactNative.Platform.select({
|
|
251
|
+
web: {
|
|
252
|
+
backdropFilter: 'blur(24px)',
|
|
253
|
+
boxShadow: '0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05)'
|
|
254
|
+
},
|
|
255
|
+
default: {
|
|
256
|
+
shadowOffset: {
|
|
257
|
+
width: 0,
|
|
258
|
+
height: 8
|
|
259
|
+
},
|
|
260
|
+
shadowOpacity: 0.4,
|
|
261
|
+
shadowRadius: 32,
|
|
262
|
+
elevation: 24
|
|
263
|
+
}
|
|
264
|
+
})
|
|
265
|
+
},
|
|
266
|
+
// Header
|
|
267
|
+
sidebarHeader: {
|
|
268
|
+
flexDirection: 'row',
|
|
269
|
+
alignItems: 'center',
|
|
270
|
+
paddingHorizontal: 20,
|
|
271
|
+
paddingTop: _reactNative.Platform.OS === 'web' ? 24 : 44,
|
|
272
|
+
paddingBottom: 20,
|
|
273
|
+
borderBottomWidth: 1
|
|
274
|
+
},
|
|
275
|
+
// Hamburger inside sidebar
|
|
276
|
+
hamburgerBtn: {
|
|
277
|
+
width: 36,
|
|
278
|
+
height: 36,
|
|
279
|
+
justifyContent: 'center',
|
|
280
|
+
alignItems: 'center',
|
|
281
|
+
borderRadius: 10,
|
|
282
|
+
borderWidth: 1
|
|
283
|
+
},
|
|
284
|
+
hamburgerBtnText: {
|
|
285
|
+
fontSize: 16,
|
|
286
|
+
lineHeight: 18
|
|
287
|
+
},
|
|
288
|
+
// Floating hamburger (when closed)
|
|
289
|
+
floatingHamburger: {
|
|
290
|
+
position: 'absolute',
|
|
291
|
+
zIndex: 60,
|
|
292
|
+
width: 44,
|
|
293
|
+
height: 44,
|
|
294
|
+
borderRadius: 14,
|
|
295
|
+
borderWidth: 1,
|
|
296
|
+
justifyContent: 'center',
|
|
297
|
+
alignItems: 'center',
|
|
298
|
+
..._reactNative.Platform.select({
|
|
299
|
+
web: {
|
|
300
|
+
backdropFilter: 'blur(16px)',
|
|
301
|
+
boxShadow: '0 4px 16px rgba(0, 0, 0, 0.3)'
|
|
302
|
+
},
|
|
303
|
+
default: {
|
|
304
|
+
shadowOffset: {
|
|
305
|
+
width: 0,
|
|
306
|
+
height: 4
|
|
307
|
+
},
|
|
308
|
+
shadowOpacity: 0.3,
|
|
309
|
+
shadowRadius: 16,
|
|
310
|
+
elevation: 16
|
|
311
|
+
}
|
|
312
|
+
})
|
|
313
|
+
},
|
|
314
|
+
floatingHamburgerText: {
|
|
315
|
+
fontSize: 20
|
|
316
|
+
},
|
|
317
|
+
// Nav
|
|
318
|
+
navContainer: {
|
|
319
|
+
flex: 1,
|
|
320
|
+
paddingTop: 16
|
|
321
|
+
},
|
|
322
|
+
navHeaderText: {
|
|
323
|
+
fontSize: 11,
|
|
324
|
+
letterSpacing: 1.5,
|
|
325
|
+
paddingHorizontal: 20,
|
|
326
|
+
marginBottom: 12
|
|
327
|
+
},
|
|
328
|
+
navList: {
|
|
329
|
+
position: 'relative'
|
|
330
|
+
},
|
|
331
|
+
navIndicator: {
|
|
332
|
+
position: 'absolute',
|
|
333
|
+
top: 0,
|
|
334
|
+
left: 10,
|
|
335
|
+
right: 10,
|
|
336
|
+
height: NAV_ITEM_HEIGHT,
|
|
337
|
+
borderRadius: 12,
|
|
338
|
+
borderWidth: 1
|
|
339
|
+
},
|
|
340
|
+
navItem: {
|
|
341
|
+
flexDirection: 'row',
|
|
342
|
+
alignItems: 'center',
|
|
343
|
+
height: NAV_ITEM_HEIGHT,
|
|
344
|
+
paddingHorizontal: 20,
|
|
345
|
+
marginHorizontal: 10,
|
|
346
|
+
marginBottom: NAV_ITEM_GAP,
|
|
347
|
+
borderRadius: 12
|
|
348
|
+
},
|
|
349
|
+
navIcon: {
|
|
350
|
+
fontSize: 16,
|
|
351
|
+
marginRight: 12,
|
|
352
|
+
opacity: 0.7
|
|
353
|
+
},
|
|
354
|
+
navText: {
|
|
355
|
+
fontSize: 15
|
|
356
|
+
}
|
|
357
|
+
});
|
|
358
|
+
//# sourceMappingURL=FluentGlassSidebar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeReanimated","_interopRequireWildcard","_useTheme","_useBreakpoint","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","NAV_ITEM_HEIGHT","NAV_ITEM_GAP","SIDEBAR_DEFAULTS","exports","width","margin","navItemHeight","navItemGap","FluentGlassSidebar","routes","activeRoute","onNavigate","open","onToggle","header","navHeader","colorScheme","blur","radius","style","theme","useTheme","colors","typography","isMobile","useBreakpoint","sidebarSpring","animations","springs","mass","damping","stiffness","navSpring","bouncy","progress","useSharedValue","React","useEffect","value","withSpring","activeIndex","findIndex","id","navIndicatorY","Math","max","sidebarAnimStyle","useAnimatedStyle","transform","translateX","interpolate","opacity","navIndicatorStyle","translateY","backdropAnimStyle","jsxs","Fragment","children","jsx","Pressable","onPress","styles","floatingHamburger","top","left","backgroundColor","background","borderColor","border","shadowColor","shadow","accessibilityRole","accessibilityLabel","Text","floatingHamburgerText","color","textPrimary","View","position","bottom","right","overlay","zIndex","pointerEvents","StyleSheet","absoluteFill","sidebarOuter","sidebarOuterMobile","sidebarGlass","sidebarHeader","borderBottomColor","flex","hamburgerBtn","hamburgerBtnText","textSecondary","ScrollView","navContainer","showsVerticalScrollIndicator","navHeaderText","fontFamily","bold","navList","navIndicator","accent","map","route","isActive","TouchableOpacity","navItem","activeOpacity","label","accessibilityState","selected","icon","navIcon","navText","medium","semiBold","create","borderRadius","borderWidth","overflow","Platform","select","web","backdropFilter","boxShadow","shadowOffset","height","shadowOpacity","shadowRadius","elevation","flexDirection","alignItems","paddingHorizontal","paddingTop","OS","paddingBottom","borderBottomWidth","justifyContent","fontSize","lineHeight","letterSpacing","marginBottom","marginHorizontal","marginRight"],"sourceRoot":"..\\..\\..\\src","sources":["components/FluentGlassSidebar.tsx"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAC,uBAAA,CAAAH,OAAA;AAOA,IAAAI,SAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,cAAA,GAAAN,sBAAA,CAAAC,OAAA;AAAmD,IAAAM,WAAA,GAAAN,OAAA;AAAA,SAAAG,wBAAAI,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAN,uBAAA,YAAAA,CAAAI,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CA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;EACA5C,YAAY,EAAE;IACVL,IAAI,EAAE,CAAC;IACP4C,UAAU,EAAE;EAChB,CAAC;EACDrC,aAAa,EAAE;IACX0C,QAAQ,EAAE,EAAE;IACZE,aAAa,EAAE,GAAG;IAClBR,iBAAiB,EAAE,EAAE;IACrBS,YAAY,EAAE;EAClB,CAAC;EACD1C,OAAO,EAAE;IACLvB,QAAQ,EAAE;EACd,CAAC;EACDwB,YAAY,EAAE;IACVxB,QAAQ,EAAE,UAAU;IACpBf,GAAG,EAAE,CAAC;IACNC,IAAI,EAAE,EAAE;IACRgB,KAAK,EAAE,EAAE;IACTgD,MAAM,EAAEhI,eAAe;IACvBuH,YAAY,EAAE,EAAE;IAChBC,WAAW,EAAE;EACjB,CAAC;EACDZ,OAAO,EAAE;IACLwB,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBL,MAAM,EAAEhI,eAAe;IACvBsI,iBAAiB,EAAE,EAAE;IACrBU,gBAAgB,EAAE,EAAE;IACpBD,YAAY,EAAE9I,YAAY;IAC1BsH,YAAY,EAAE;EAClB,CAAC;EACDL,OAAO,EAAE;IACL0B,QAAQ,EAAE,EAAE;IACZK,WAAW,EAAE,EAAE;IACf9F,OAAO,EAAE;EACb,CAAC;EACDgE,OAAO,EAAE;IACLyB,QAAQ,EAAE;EACd;AACJ,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = FluentGlassSimpleCard;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _FluentGlass = _interopRequireDefault(require("./FluentGlass"));
|
|
10
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
+
/**
|
|
13
|
+
* FluentGlassSimpleCard (Component)
|
|
14
|
+
* Standard container for content.
|
|
15
|
+
* Wraps FluentGlass with standard padding and structure.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
function FluentGlassSimpleCard({
|
|
19
|
+
children,
|
|
20
|
+
style,
|
|
21
|
+
contentStyle,
|
|
22
|
+
size,
|
|
23
|
+
colorScheme,
|
|
24
|
+
blur,
|
|
25
|
+
radius,
|
|
26
|
+
intensity,
|
|
27
|
+
// legacy
|
|
28
|
+
tint,
|
|
29
|
+
// legacy
|
|
30
|
+
...props
|
|
31
|
+
}) {
|
|
32
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_FluentGlass.default, {
|
|
33
|
+
style: [styles.container, style],
|
|
34
|
+
size: size,
|
|
35
|
+
colorScheme: colorScheme,
|
|
36
|
+
blur: blur,
|
|
37
|
+
radius: radius,
|
|
38
|
+
intensity: intensity,
|
|
39
|
+
tint: tint,
|
|
40
|
+
...props,
|
|
41
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
42
|
+
style: [styles.content, contentStyle],
|
|
43
|
+
children: children
|
|
44
|
+
})
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
const styles = _reactNative.StyleSheet.create({
|
|
48
|
+
container: {
|
|
49
|
+
width: '100%',
|
|
50
|
+
marginVertical: 8
|
|
51
|
+
},
|
|
52
|
+
content: {
|
|
53
|
+
padding: 16
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
//# sourceMappingURL=FluentGlassSimpleCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_FluentGlass","_jsxRuntime","e","__esModule","default","FluentGlassSimpleCard","children","style","contentStyle","size","colorScheme","blur","radius","intensity","tint","props","jsx","styles","container","View","content","StyleSheet","create","width","marginVertical","padding"],"sourceRoot":"..\\..\\..\\src","sources":["components/FluentGlassSimpleCard.ts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
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = FluentGlassSkeleton;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _reactNativeReanimated = _interopRequireWildcard(require("react-native-reanimated"));
|
|
10
|
+
var _useTheme = _interopRequireDefault(require("../theme/useTheme"));
|
|
11
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
14
|
+
/**
|
|
15
|
+
* FluentGlassSkeleton (Component)
|
|
16
|
+
* Loading placeholder with a pulsing opacity animation.
|
|
17
|
+
*/
|
|
18
|
+
function FluentGlassSkeleton({
|
|
19
|
+
width,
|
|
20
|
+
height,
|
|
21
|
+
borderRadius = 8,
|
|
22
|
+
style
|
|
23
|
+
}) {
|
|
24
|
+
const theme = (0, _useTheme.default)();
|
|
25
|
+
const COLORS = theme.colors;
|
|
26
|
+
const opacity = (0, _reactNativeReanimated.useSharedValue)(0.3);
|
|
27
|
+
(0, _react.useEffect)(() => {
|
|
28
|
+
opacity.value = (0, _reactNativeReanimated.withRepeat)((0, _reactNativeReanimated.withSequence)((0, _reactNativeReanimated.withTiming)(0.6, {
|
|
29
|
+
duration: 1000
|
|
30
|
+
}), (0, _reactNativeReanimated.withTiming)(0.3, {
|
|
31
|
+
duration: 1000
|
|
32
|
+
})), -1, true);
|
|
33
|
+
}, []);
|
|
34
|
+
const animatedStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => ({
|
|
35
|
+
opacity: opacity.value
|
|
36
|
+
}));
|
|
37
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
|
|
38
|
+
accessible: false,
|
|
39
|
+
style: [styles.container, {
|
|
40
|
+
width: width,
|
|
41
|
+
height: height,
|
|
42
|
+
borderRadius,
|
|
43
|
+
backgroundColor: COLORS.border
|
|
44
|
+
}, animatedStyle, style]
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
const styles = _reactNative.StyleSheet.create({
|
|
48
|
+
container: {
|
|
49
|
+
// backgroundColor applied inline from useTheme()
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
//# sourceMappingURL=FluentGlassSkeleton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeReanimated","_useTheme","_interopRequireDefault","_jsxRuntime","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","FluentGlassSkeleton","width","height","borderRadius","style","theme","useTheme","COLORS","colors","opacity","useSharedValue","useEffect","value","withRepeat","withSequence","withTiming","duration","animatedStyle","useAnimatedStyle","jsx","View","accessible","styles","container","backgroundColor","border","StyleSheet","create"],"sourceRoot":"..\\..\\..\\src","sources":["components/FluentGlassSkeleton.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAH,uBAAA,CAAAC,OAAA;AAOA,IAAAG,SAAA,GAAAC,sBAAA,CAAAJ,OAAA;AAAyC,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAA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