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,334 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = FluentGlassTimeline;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _reactNativeReanimated = _interopRequireWildcard(require("react-native-reanimated"));
|
|
10
|
+
var _FluentGlass = _interopRequireDefault(require("./FluentGlass"));
|
|
11
|
+
var _useTheme = _interopRequireDefault(require("../theme/useTheme"));
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
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
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
|
+
// Removed static COLORS import
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* FluentGlassTimeline (Component)
|
|
19
|
+
* Glassmorphism timeline with vertical and horizontal variants.
|
|
20
|
+
*
|
|
21
|
+
* Props:
|
|
22
|
+
* items - Array of { title, description, date, status, icon }
|
|
23
|
+
* status: 'completed' | 'active' | 'pending'
|
|
24
|
+
* variant - 'vertical' | 'horizontal' (default: 'vertical')
|
|
25
|
+
* style - Container style override
|
|
26
|
+
* style - Container style override
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
// ─── Indicator Circle ───
|
|
30
|
+
function TimelineIndicator({
|
|
31
|
+
status,
|
|
32
|
+
size = 32,
|
|
33
|
+
colors
|
|
34
|
+
}) {
|
|
35
|
+
const pulseScale = (0, _reactNativeReanimated.useSharedValue)(1);
|
|
36
|
+
_react.default.useEffect(() => {
|
|
37
|
+
if (status === 'active') {
|
|
38
|
+
pulseScale.value = (0, _reactNativeReanimated.withRepeat)((0, _reactNativeReanimated.withTiming)(1.15, {
|
|
39
|
+
duration: 1200
|
|
40
|
+
}), -1, true);
|
|
41
|
+
} else {
|
|
42
|
+
pulseScale.value = (0, _reactNativeReanimated.withSpring)(1);
|
|
43
|
+
}
|
|
44
|
+
}, [status]);
|
|
45
|
+
const pulseStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => ({
|
|
46
|
+
transform: [{
|
|
47
|
+
scale: pulseScale.value
|
|
48
|
+
}]
|
|
49
|
+
}));
|
|
50
|
+
const isCompleted = status === 'completed';
|
|
51
|
+
const isActive = status === 'active';
|
|
52
|
+
const isPending = status === 'pending';
|
|
53
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
|
|
54
|
+
style: pulseStyle,
|
|
55
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
56
|
+
style: [styles.indicator, {
|
|
57
|
+
width: size,
|
|
58
|
+
height: size,
|
|
59
|
+
borderRadius: size / 2,
|
|
60
|
+
borderColor: isCompleted || isActive ? colors.accent : isPending ? `${colors.textSecondary}4D` : colors.border,
|
|
61
|
+
backgroundColor: isCompleted ? colors.accent : isActive ? `${colors.secondary}26` : isPending ? `${colors.textSecondary}1A` : 'transparent'
|
|
62
|
+
}],
|
|
63
|
+
children: isCompleted ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
64
|
+
style: [styles.checkmark, {
|
|
65
|
+
color: colors.background
|
|
66
|
+
}],
|
|
67
|
+
children: "\u2713"
|
|
68
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
69
|
+
style: [styles.innerDot, {
|
|
70
|
+
width: size * 0.35,
|
|
71
|
+
height: size * 0.35,
|
|
72
|
+
borderRadius: size * 0.35 / 2,
|
|
73
|
+
backgroundColor: isActive ? colors.accent : isPending ? `${colors.textSecondary}4D` : 'transparent'
|
|
74
|
+
}]
|
|
75
|
+
})
|
|
76
|
+
})
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
// ─── Connecting Line ───
|
|
81
|
+
function TimelineLine({
|
|
82
|
+
status,
|
|
83
|
+
direction = 'vertical',
|
|
84
|
+
colors
|
|
85
|
+
}) {
|
|
86
|
+
const isCompleted = status === 'completed';
|
|
87
|
+
const isVertical = direction === 'vertical';
|
|
88
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
89
|
+
style: [isVertical ? styles.lineVertical : styles.lineHorizontal, {
|
|
90
|
+
backgroundColor: isCompleted ? colors.accent : `${colors.textSecondary}26`
|
|
91
|
+
}]
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
// ─── Vertical Timeline ───
|
|
96
|
+
function VerticalTimeline({
|
|
97
|
+
items,
|
|
98
|
+
style,
|
|
99
|
+
colors,
|
|
100
|
+
typography
|
|
101
|
+
}) {
|
|
102
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
103
|
+
style: [styles.verticalContainer, style],
|
|
104
|
+
children: items.map((item, index) => {
|
|
105
|
+
const isLast = index === items.length - 1;
|
|
106
|
+
const isActive = item.status === 'active';
|
|
107
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
108
|
+
style: styles.verticalItem,
|
|
109
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
110
|
+
style: styles.verticalLeft,
|
|
111
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(TimelineIndicator, {
|
|
112
|
+
status: item.status,
|
|
113
|
+
size: 36,
|
|
114
|
+
colors: colors
|
|
115
|
+
}), !isLast ? /*#__PURE__*/(0, _jsxRuntime.jsx)(TimelineLine, {
|
|
116
|
+
status: item.status,
|
|
117
|
+
direction: "vertical",
|
|
118
|
+
colors: colors
|
|
119
|
+
}) : null]
|
|
120
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
121
|
+
style: styles.verticalRight,
|
|
122
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_FluentGlass.default, {
|
|
123
|
+
style: [styles.verticalCard, isActive && {
|
|
124
|
+
borderColor: colors.accent
|
|
125
|
+
}],
|
|
126
|
+
intensity: isActive ? 25 : 15,
|
|
127
|
+
tint: isActive ? 'default' : 'dark',
|
|
128
|
+
borderRadius: 14,
|
|
129
|
+
borderOpacity: isActive ? 0.35 : 0.15,
|
|
130
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
131
|
+
style: styles.cardContent,
|
|
132
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
133
|
+
style: styles.cardHeader,
|
|
134
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
135
|
+
style: [styles.cardTitle, {
|
|
136
|
+
fontFamily: typography.bold,
|
|
137
|
+
color: item.status === 'pending' ? colors.textSecondary : colors.textPrimary
|
|
138
|
+
}],
|
|
139
|
+
children: item.title
|
|
140
|
+
}), item.date ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
141
|
+
style: [styles.cardDate, {
|
|
142
|
+
fontFamily: typography.medium,
|
|
143
|
+
color: colors.textSecondary
|
|
144
|
+
}],
|
|
145
|
+
children: item.date
|
|
146
|
+
}) : null]
|
|
147
|
+
}), item.description ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
148
|
+
style: [styles.cardDescription, {
|
|
149
|
+
color: colors.textSecondary
|
|
150
|
+
}],
|
|
151
|
+
children: item.description
|
|
152
|
+
}) : null]
|
|
153
|
+
})
|
|
154
|
+
})
|
|
155
|
+
})]
|
|
156
|
+
}, index);
|
|
157
|
+
})
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
// ─── Horizontal Timeline ───
|
|
162
|
+
function HorizontalTimeline({
|
|
163
|
+
items,
|
|
164
|
+
style,
|
|
165
|
+
colors,
|
|
166
|
+
typography
|
|
167
|
+
}) {
|
|
168
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
169
|
+
style: [styles.horizontalContainer, style],
|
|
170
|
+
children: items.map((item, index) => {
|
|
171
|
+
const isLast = index === items.length - 1;
|
|
172
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
173
|
+
style: styles.horizontalItem,
|
|
174
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
175
|
+
style: styles.horizontalTop,
|
|
176
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(TimelineIndicator, {
|
|
177
|
+
status: item.status,
|
|
178
|
+
size: 40,
|
|
179
|
+
colors: colors
|
|
180
|
+
}), !isLast ? /*#__PURE__*/(0, _jsxRuntime.jsx)(TimelineLine, {
|
|
181
|
+
status: item.status,
|
|
182
|
+
direction: "horizontal",
|
|
183
|
+
colors: colors
|
|
184
|
+
}) : null]
|
|
185
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
186
|
+
style: styles.horizontalLabels,
|
|
187
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
188
|
+
style: [styles.horizontalTitle, {
|
|
189
|
+
fontFamily: typography.semiBold,
|
|
190
|
+
color: item.status === 'pending' ? colors.textSecondary : colors.textPrimary
|
|
191
|
+
}],
|
|
192
|
+
numberOfLines: 1,
|
|
193
|
+
children: item.title
|
|
194
|
+
}), item.description ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
195
|
+
style: [styles.horizontalSubtitle, {
|
|
196
|
+
color: colors.textSecondary
|
|
197
|
+
}],
|
|
198
|
+
numberOfLines: 1,
|
|
199
|
+
children: item.description
|
|
200
|
+
}) : null]
|
|
201
|
+
})]
|
|
202
|
+
}, index);
|
|
203
|
+
})
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
// ─── Main Export ───
|
|
208
|
+
function FluentGlassTimeline({
|
|
209
|
+
items = [],
|
|
210
|
+
variant = 'vertical',
|
|
211
|
+
style
|
|
212
|
+
}) {
|
|
213
|
+
const {
|
|
214
|
+
colors,
|
|
215
|
+
typography
|
|
216
|
+
} = (0, _useTheme.default)();
|
|
217
|
+
|
|
218
|
+
// Pass colors down through context or cloning isn't great.
|
|
219
|
+
// We will wrap the children with the theme context implicitly since these are small components
|
|
220
|
+
// inside the same file, let's pass `colors` as a prop to internal helpers.
|
|
221
|
+
if (variant === 'horizontal') {
|
|
222
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
223
|
+
accessible: true,
|
|
224
|
+
accessibilityLabel: "Timeline",
|
|
225
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(HorizontalTimeline, {
|
|
226
|
+
items: items,
|
|
227
|
+
style: style,
|
|
228
|
+
colors: colors,
|
|
229
|
+
typography: typography
|
|
230
|
+
})
|
|
231
|
+
});
|
|
232
|
+
}
|
|
233
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
234
|
+
accessible: true,
|
|
235
|
+
accessibilityLabel: "Timeline",
|
|
236
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(VerticalTimeline, {
|
|
237
|
+
items: items,
|
|
238
|
+
style: style,
|
|
239
|
+
colors: colors,
|
|
240
|
+
typography: typography
|
|
241
|
+
})
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
// ─── Styles ───
|
|
246
|
+
const styles = _reactNative.StyleSheet.create({
|
|
247
|
+
// Indicator
|
|
248
|
+
indicator: {
|
|
249
|
+
alignItems: 'center',
|
|
250
|
+
justifyContent: 'center',
|
|
251
|
+
borderWidth: 2
|
|
252
|
+
},
|
|
253
|
+
checkmark: {
|
|
254
|
+
fontSize: 16
|
|
255
|
+
},
|
|
256
|
+
innerDot: {},
|
|
257
|
+
lineVertical: {
|
|
258
|
+
width: 2,
|
|
259
|
+
flex: 1,
|
|
260
|
+
marginVertical: 4
|
|
261
|
+
},
|
|
262
|
+
lineHorizontal: {
|
|
263
|
+
height: 2,
|
|
264
|
+
flex: 1,
|
|
265
|
+
marginHorizontal: 4
|
|
266
|
+
},
|
|
267
|
+
// ─── Vertical ───
|
|
268
|
+
verticalContainer: {},
|
|
269
|
+
verticalItem: {
|
|
270
|
+
flexDirection: 'row'
|
|
271
|
+
},
|
|
272
|
+
verticalLeft: {
|
|
273
|
+
alignItems: 'center',
|
|
274
|
+
width: 44,
|
|
275
|
+
marginRight: 12
|
|
276
|
+
},
|
|
277
|
+
verticalRight: {
|
|
278
|
+
flex: 1,
|
|
279
|
+
paddingBottom: 20
|
|
280
|
+
},
|
|
281
|
+
verticalCard: {
|
|
282
|
+
minHeight: 60
|
|
283
|
+
},
|
|
284
|
+
// removed verticalCardActive
|
|
285
|
+
cardContent: {
|
|
286
|
+
padding: 14
|
|
287
|
+
},
|
|
288
|
+
cardHeader: {
|
|
289
|
+
flexDirection: 'row',
|
|
290
|
+
justifyContent: 'space-between',
|
|
291
|
+
alignItems: 'center'
|
|
292
|
+
},
|
|
293
|
+
cardTitle: {
|
|
294
|
+
fontSize: 16
|
|
295
|
+
},
|
|
296
|
+
cardDate: {
|
|
297
|
+
fontSize: 12
|
|
298
|
+
},
|
|
299
|
+
cardDescription: {
|
|
300
|
+
fontSize: 14,
|
|
301
|
+
marginTop: 4,
|
|
302
|
+
lineHeight: 20
|
|
303
|
+
},
|
|
304
|
+
// ─── Horizontal ───
|
|
305
|
+
horizontalContainer: {
|
|
306
|
+
flexDirection: 'row',
|
|
307
|
+
alignItems: 'flex-start'
|
|
308
|
+
},
|
|
309
|
+
horizontalItem: {
|
|
310
|
+
flex: 1,
|
|
311
|
+
alignItems: 'center'
|
|
312
|
+
},
|
|
313
|
+
horizontalTop: {
|
|
314
|
+
flexDirection: 'row',
|
|
315
|
+
alignItems: 'center',
|
|
316
|
+
width: '100%',
|
|
317
|
+
justifyContent: 'center'
|
|
318
|
+
},
|
|
319
|
+
horizontalLabels: {
|
|
320
|
+
alignItems: 'center',
|
|
321
|
+
marginTop: 10,
|
|
322
|
+
paddingHorizontal: 4
|
|
323
|
+
},
|
|
324
|
+
horizontalTitle: {
|
|
325
|
+
fontSize: 14,
|
|
326
|
+
marginTop: 4
|
|
327
|
+
},
|
|
328
|
+
horizontalSubtitle: {
|
|
329
|
+
fontSize: 12,
|
|
330
|
+
marginTop: 2,
|
|
331
|
+
textAlign: 'center'
|
|
332
|
+
}
|
|
333
|
+
});
|
|
334
|
+
//# sourceMappingURL=FluentGlassTimeline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeReanimated","_interopRequireWildcard","_FluentGlass","_useTheme","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","TimelineIndicator","status","size","colors","pulseScale","useSharedValue","React","useEffect","value","withRepeat","withTiming","duration","withSpring","pulseStyle","useAnimatedStyle","transform","scale","isCompleted","isActive","isPending","jsx","View","style","children","styles","indicator","width","height","borderRadius","borderColor","accent","textSecondary","border","backgroundColor","secondary","Text","checkmark","color","background","innerDot","TimelineLine","direction","isVertical","lineVertical","lineHorizontal","VerticalTimeline","items","typography","verticalContainer","map","item","index","isLast","length","jsxs","verticalItem","verticalLeft","verticalRight","verticalCard","intensity","tint","borderOpacity","cardContent","cardHeader","cardTitle","fontFamily","bold","textPrimary","title","date","cardDate","medium","description","cardDescription","HorizontalTimeline","horizontalContainer","horizontalItem","horizontalTop","horizontalLabels","horizontalTitle","semiBold","numberOfLines","horizontalSubtitle","FluentGlassTimeline","variant","useTheme","accessible","accessibilityLabel","StyleSheet","create","alignItems","justifyContent","borderWidth","fontSize","flex","marginVertical","marginHorizontal","flexDirection","marginRight","paddingBottom","minHeight","padding","marginTop","lineHeight","paddingHorizontal","textAlign"],"sourceRoot":"..\\..\\..\\src","sources":["components/FluentGlassTimeline.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAC,uBAAA,CAAAH,OAAA;AAOA,IAAAI,YAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,SAAA,GAAAN,sBAAA,CAAAC,OAAA;AAAyC,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,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5B,mBAAmB,EAAE;IACjBsB,aAAa,EAAE,KAAK;IACpBP,UAAU,EAAE;EAChB,CAAC;EACDd,cAAc,EAAE;IACZkB,IAAI,EAAE,CAAC;IACPJ,UAAU,EAAE;EAChB,CAAC;EACDb,aAAa,EAAE;IACXoB,aAAa,EAAE,KAAK;IACpBP,UAAU,EAAE,QAAQ;IACpBhE,KAAK,EAAE,MAAM;IACbiE,cAAc,EAAE;EACpB,CAAC;EACDb,gBAAgB,EAAE;IACdY,UAAU,EAAE,QAAQ;IACpBY,SAAS,EAAE,EAAE;IACbE,iBAAiB,EAAE;EACvB,CAAC;EACDzB,eAAe,EAAE;IACbc,QAAQ,EAAE,EAAE;IACZS,SAAS,EAAE;EACf,CAAC;EACDpB,kBAAkB,EAAE;IAChBW,QAAQ,EAAE,EAAE;IACZS,SAAS,EAAE,CAAC;IACZG,SAAS,EAAE;EACf;AACJ,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = FluentGlassWeatherWidget;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _FluentGlass = _interopRequireDefault(require("./FluentGlass"));
|
|
10
|
+
var _useTheme = _interopRequireDefault(require("../theme/useTheme"));
|
|
11
|
+
var _responsive = require("../utils/responsive");
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
+
/**
|
|
15
|
+
* FluentGlassWeatherWidget (Atom/Molecule)
|
|
16
|
+
* Dashboard widget displaying temperature and condition.
|
|
17
|
+
*/
|
|
18
|
+
function FluentGlassWeatherWidget({
|
|
19
|
+
temp = '24°',
|
|
20
|
+
condition = 'Cloudy',
|
|
21
|
+
style
|
|
22
|
+
}) {
|
|
23
|
+
const theme = (0, _useTheme.default)();
|
|
24
|
+
const COLORS = theme.colors;
|
|
25
|
+
const typography = theme.typography;
|
|
26
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_FluentGlass.default, {
|
|
27
|
+
accessible: true,
|
|
28
|
+
accessibilityLabel: `${temp} ${condition}`,
|
|
29
|
+
style: [styles.card, style],
|
|
30
|
+
intensity: 25,
|
|
31
|
+
borderRadius: 20,
|
|
32
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
33
|
+
style: styles.content,
|
|
34
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
35
|
+
style: [styles.label, {
|
|
36
|
+
color: COLORS.textSecondary,
|
|
37
|
+
fontFamily: typography.medium
|
|
38
|
+
}],
|
|
39
|
+
children: condition
|
|
40
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
41
|
+
style: [styles.bigValue, {
|
|
42
|
+
color: COLORS.textPrimary,
|
|
43
|
+
fontFamily: typography.regular
|
|
44
|
+
}],
|
|
45
|
+
children: temp
|
|
46
|
+
})]
|
|
47
|
+
})
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
const styles = _reactNative.StyleSheet.create({
|
|
51
|
+
card: {
|
|
52
|
+
flex: 1,
|
|
53
|
+
minWidth: 100,
|
|
54
|
+
maxWidth: 140,
|
|
55
|
+
aspectRatio: 1
|
|
56
|
+
},
|
|
57
|
+
content: {
|
|
58
|
+
flex: 1,
|
|
59
|
+
justifyContent: 'center',
|
|
60
|
+
alignItems: 'center'
|
|
61
|
+
},
|
|
62
|
+
label: {
|
|
63
|
+
fontSize: 12,
|
|
64
|
+
textTransform: 'uppercase',
|
|
65
|
+
marginBottom: 4
|
|
66
|
+
},
|
|
67
|
+
bigValue: {
|
|
68
|
+
fontSize: (0, _responsive.moderateScale)(28),
|
|
69
|
+
fontWeight: '300'
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
//# sourceMappingURL=FluentGlassWeatherWidget.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_FluentGlass","_useTheme","_responsive","_jsxRuntime","e","__esModule","default","FluentGlassWeatherWidget","temp","condition","style","theme","useTheme","COLORS","colors","typography","jsx","accessible","accessibilityLabel","styles","card","intensity","borderRadius","children","jsxs","View","content","Text","label","color","textSecondary","fontFamily","medium","bigValue","textPrimary","regular","StyleSheet","create","flex","minWidth","maxWidth","aspectRatio","justifyContent","alignItems","fontSize","textTransform","marginBottom","moderateScale","fontWeight"],"sourceRoot":"..\\..\\..\\src","sources":["components/FluentGlassWeatherWidget.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,SAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,WAAA,GAAAJ,OAAA;AAAoD,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAQpD;AACA;AACA;AACA;AACe,SAASG,wBAAwBA,CAAC;EAAEC,IAAI,GAAG,KAAK;EAAEC,SAAS,GAAG,QAAQ;EAAEC;AAAqC,CAAC,EAAE;EAC3H,MAAMC,KAAK,GAAG,IAAAC,iBAAQ,EAAC,CAAC;EACxB,MAAMC,MAAM,GAAGF,KAAK,CAACG,MAAM;EAC3B,MAAMC,UAAU,GAAGJ,KAAK,CAACI,UAAU;EAEnC,oBACI,IAAAZ,WAAA,CAAAa,GAAA,EAAChB,YAAA,CAAAM,OAAW;IAACW,UAAU,EAAE,IAAK;IAACC,kBAAkB,EAAE,GAAGV,IAAI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