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,170 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { useState, useCallback } from 'react';
|
|
4
|
+
import { StyleSheet, TextInput, TouchableOpacity, View, Modal, Pressable } from 'react-native';
|
|
5
|
+
import { Ionicons } from '@expo/vector-icons';
|
|
6
|
+
import FluentGlass from './FluentGlass';
|
|
7
|
+
import FluentGlassDatePicker from './FluentGlassDatePicker';
|
|
8
|
+
import useTheme from '../theme/useTheme';
|
|
9
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
+
/**
|
|
11
|
+
* FluentGlassDateInput (Molécula)
|
|
12
|
+
* Hybrid date input: type manually OR tap the calendar icon to open FluentGlassDatePicker.
|
|
13
|
+
*/
|
|
14
|
+
export default function FluentGlassDateInput({
|
|
15
|
+
value,
|
|
16
|
+
onChange,
|
|
17
|
+
placeholder = 'dd/mm/yyyy',
|
|
18
|
+
format = 'dd/mm/yyyy',
|
|
19
|
+
style,
|
|
20
|
+
accessibilityLabel
|
|
21
|
+
}) {
|
|
22
|
+
const theme = useTheme();
|
|
23
|
+
const COLORS = theme.colors;
|
|
24
|
+
const typography = theme.typography;
|
|
25
|
+
const [pickerVisible, setPickerVisible] = useState(false);
|
|
26
|
+
const [textValue, setTextValue] = useState(value ? formatDate(value, format) : '');
|
|
27
|
+
|
|
28
|
+
// Format a Date into string
|
|
29
|
+
function formatDate(date, fmt) {
|
|
30
|
+
if (!date || !(date instanceof Date) || isNaN(date.getTime())) return '';
|
|
31
|
+
const dd = String(date.getDate()).padStart(2, '0');
|
|
32
|
+
const mm = String(date.getMonth() + 1).padStart(2, '0');
|
|
33
|
+
const yyyy = date.getFullYear();
|
|
34
|
+
return fmt === 'dd/mm/yyyy' ? `${dd}/${mm}/${yyyy}` : `${mm}/${dd}/${yyyy}`;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// Parse text into a Date (returns null if invalid)
|
|
38
|
+
function parseDate(text, fmt) {
|
|
39
|
+
const parts = text.split('/');
|
|
40
|
+
if (parts.length !== 3) return null;
|
|
41
|
+
let day, month, year;
|
|
42
|
+
if (fmt === 'dd/mm/yyyy') {
|
|
43
|
+
[day, month, year] = parts;
|
|
44
|
+
} else {
|
|
45
|
+
[month, day, year] = parts;
|
|
46
|
+
}
|
|
47
|
+
const d = parseInt(day, 10);
|
|
48
|
+
const m = parseInt(month, 10);
|
|
49
|
+
const y = parseInt(year, 10);
|
|
50
|
+
if (isNaN(d) || isNaN(m) || isNaN(y)) return null;
|
|
51
|
+
if (m < 1 || m > 12 || d < 1 || d > 31 || y < 1900) return null;
|
|
52
|
+
const date = new Date(y, m - 1, d);
|
|
53
|
+
if (date.getMonth() !== m - 1) return null; // overflow check
|
|
54
|
+
return date;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// When user finishes typing (blur), try to parse the manual entry
|
|
58
|
+
const handleBlur = useCallback(() => {
|
|
59
|
+
const parsed = parseDate(textValue, format);
|
|
60
|
+
if (parsed && onChange) {
|
|
61
|
+
onChange(parsed);
|
|
62
|
+
}
|
|
63
|
+
}, [textValue, format, onChange]);
|
|
64
|
+
|
|
65
|
+
// When text changes, auto-insert slashes
|
|
66
|
+
const handleChangeText = useCallback(raw => {
|
|
67
|
+
// Strip non-digit characters
|
|
68
|
+
const digits = raw.replace(/\D/g, '');
|
|
69
|
+
// Auto-format with slashes
|
|
70
|
+
let formatted = '';
|
|
71
|
+
for (let i = 0; i < digits.length && i < 8; i++) {
|
|
72
|
+
if (i === 2 || i === 4) formatted += '/';
|
|
73
|
+
formatted += digits[i];
|
|
74
|
+
}
|
|
75
|
+
setTextValue(formatted);
|
|
76
|
+
}, []);
|
|
77
|
+
|
|
78
|
+
// When user picks from the calendar popup
|
|
79
|
+
const handlePickerSelect = useCallback(date => {
|
|
80
|
+
setTextValue(formatDate(date, format));
|
|
81
|
+
setPickerVisible(false);
|
|
82
|
+
if (onChange) onChange(date);
|
|
83
|
+
}, [format, onChange]);
|
|
84
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
85
|
+
style: style,
|
|
86
|
+
children: [/*#__PURE__*/_jsx(FluentGlass, {
|
|
87
|
+
style: styles.container,
|
|
88
|
+
intensity: 15,
|
|
89
|
+
borderRadius: 12,
|
|
90
|
+
borderOpacity: 0.15,
|
|
91
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
92
|
+
style: styles.innerContainer,
|
|
93
|
+
children: [/*#__PURE__*/_jsx(TextInput, {
|
|
94
|
+
style: [styles.input, {
|
|
95
|
+
outlineStyle: 'none',
|
|
96
|
+
color: COLORS.textPrimary,
|
|
97
|
+
fontFamily: typography.regular
|
|
98
|
+
}],
|
|
99
|
+
value: textValue,
|
|
100
|
+
onChangeText: handleChangeText,
|
|
101
|
+
onBlur: handleBlur,
|
|
102
|
+
placeholder: placeholder,
|
|
103
|
+
placeholderTextColor: COLORS.textSecondary,
|
|
104
|
+
keyboardType: "numeric",
|
|
105
|
+
maxLength: 10,
|
|
106
|
+
accessibilityLabel: accessibilityLabel ?? placeholder ?? 'Date'
|
|
107
|
+
}), /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
108
|
+
onPress: () => setPickerVisible(true),
|
|
109
|
+
style: styles.iconButton,
|
|
110
|
+
hitSlop: 10,
|
|
111
|
+
accessibilityRole: "button",
|
|
112
|
+
accessibilityLabel: "Open date picker",
|
|
113
|
+
children: /*#__PURE__*/_jsx(Ionicons, {
|
|
114
|
+
name: "calendar-outline",
|
|
115
|
+
size: 20,
|
|
116
|
+
color: COLORS.textSecondary
|
|
117
|
+
})
|
|
118
|
+
})]
|
|
119
|
+
})
|
|
120
|
+
}), /*#__PURE__*/_jsx(Modal, {
|
|
121
|
+
visible: pickerVisible,
|
|
122
|
+
transparent: true,
|
|
123
|
+
animationType: "fade",
|
|
124
|
+
onRequestClose: () => setPickerVisible(false),
|
|
125
|
+
children: /*#__PURE__*/_jsx(Pressable, {
|
|
126
|
+
style: [styles.overlay, {
|
|
127
|
+
backgroundColor: COLORS.overlay
|
|
128
|
+
}],
|
|
129
|
+
onPress: () => setPickerVisible(false),
|
|
130
|
+
children: /*#__PURE__*/_jsx(Pressable, {
|
|
131
|
+
style: styles.pickerPopup,
|
|
132
|
+
onPress: e => e.stopPropagation(),
|
|
133
|
+
children: /*#__PURE__*/_jsx(FluentGlassDatePicker, {
|
|
134
|
+
value: value || new Date(),
|
|
135
|
+
onChange: handlePickerSelect
|
|
136
|
+
})
|
|
137
|
+
})
|
|
138
|
+
})
|
|
139
|
+
})]
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
const styles = StyleSheet.create({
|
|
143
|
+
container: {
|
|
144
|
+
minHeight: 50
|
|
145
|
+
},
|
|
146
|
+
innerContainer: {
|
|
147
|
+
flex: 1,
|
|
148
|
+
flexDirection: 'row',
|
|
149
|
+
alignItems: 'center'
|
|
150
|
+
},
|
|
151
|
+
input: {
|
|
152
|
+
flex: 1,
|
|
153
|
+
height: '100%',
|
|
154
|
+
paddingHorizontal: 16,
|
|
155
|
+
fontSize: 16
|
|
156
|
+
},
|
|
157
|
+
iconButton: {
|
|
158
|
+
padding: 12,
|
|
159
|
+
marginRight: 4
|
|
160
|
+
},
|
|
161
|
+
overlay: {
|
|
162
|
+
flex: 1,
|
|
163
|
+
justifyContent: 'center',
|
|
164
|
+
alignItems: 'center'
|
|
165
|
+
},
|
|
166
|
+
pickerPopup: {
|
|
167
|
+
// Let the DatePicker define its own width (300)
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
//# sourceMappingURL=FluentGlassDateInput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useState","useCallback","StyleSheet","TextInput","TouchableOpacity","View","Modal","Pressable","Ionicons","FluentGlass","FluentGlassDatePicker","useTheme","jsx","_jsx","jsxs","_jsxs","FluentGlassDateInput","value","onChange","placeholder","format","style","accessibilityLabel","theme","COLORS","colors","typography","pickerVisible","setPickerVisible","textValue","setTextValue","formatDate","date","fmt","Date","isNaN","getTime","dd","String","getDate","padStart","mm","getMonth","yyyy","getFullYear","parseDate","text","parts","split","length","day","month","year","d","parseInt","m","y","handleBlur","parsed","handleChangeText","raw","digits","replace","formatted","i","handlePickerSelect","children","styles","container","intensity","borderRadius","borderOpacity","innerContainer","input","outlineStyle","color","textPrimary","fontFamily","regular","onChangeText","onBlur","placeholderTextColor","textSecondary","keyboardType","maxLength","onPress","iconButton","hitSlop","accessibilityRole","name","size","visible","transparent","animationType","onRequestClose","overlay","backgroundColor","pickerPopup","e","stopPropagation","create","minHeight","flex","flexDirection","alignItems","height","paddingHorizontal","fontSize","padding","marginRight","justifyContent"],"sourceRoot":"..\\..\\..\\src","sources":["components/FluentGlassDateInput.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,QAAQ,EAAEC,WAAW,QAAQ,OAAO;AAEpD,SAASC,UAAU,EAAEC,SAAS,EAAEC,gBAAgB,EAAEC,IAAI,EAAEC,KAAK,EAAEC,SAAS,QAAmB,cAAc;AACzG,SAASC,QAAQ,QAAQ,oBAAoB;AAC7C,OAAOC,WAAW,MAAM,eAAe;AACvC,OAAOC,qBAAqB,MAAM,yBAAyB;AAC3D,OAAOC,QAAQ,MAAM,mBAAmB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAazC;AACA;AACA;AACA;AACA,eAAe,SAASC,oBAAoBA,CAAC;EACzCC,KAAK;EACLC,QAAQ;EACRC,WAAW,GAAG,YAAY;EAC1BC,MAAM,GAAG,YAAY;EACrBC,KAAK;EACLC;AACuB,CAAC,EAAE;EAC1B,MAAMC,KAAK,GAAGZ,QAAQ,CAAC,CAAC;EACxB,MAAMa,MAAM,GAAGD,KAAK,CAACE,MAAM;EAC3B,MAAMC,UAAU,GAAGH,KAAK,CAACG,UAAU;EAEnC,MAAM,CAACC,aAAa,EAAEC,gBAAgB,CAAC,GAAG5B,QAAQ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BhC,SAAS,EAAE;IACPiC,SAAS,EAAE;EACf,CAAC;EACD7B,cAAc,EAAE;IACZ8B,IAAI,EAAE,CAAC;IACPC,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE;EAChB,CAAC;EACD/B,KAAK,EAAE;IACH6B,IAAI,EAAE,CAAC;IACPG,MAAM,EAAE,MAAM;IACdC,iBAAiB,EAAE,EAAE;IACrBC,QAAQ,EAAE;EACd,CAAC;EACDrB,UAAU,EAAE;IACRsB,OAAO,EAAE,EAAE;IACXC,WAAW,EAAE;EACjB,CAAC;EACDd,OAAO,EAAE;IACLO,IAAI,EAAE,CAAC;IACPQ,cAAc,EAAE,QAAQ;IACxBN,UAAU,EAAE;EAChB,CAAC;EACDP,WAAW,EAAE;IACT;EAAA;AAER,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { useState, useMemo } from 'react';
|
|
4
|
+
import { StyleSheet, View, Text, TouchableOpacity, Pressable } from 'react-native';
|
|
5
|
+
import FluentGlass from './FluentGlass';
|
|
6
|
+
import useTheme from '../theme/useTheme';
|
|
7
|
+
import { moderateScale } from '../utils/responsive';
|
|
8
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
+
export default function FluentGlassDatePicker({
|
|
10
|
+
value = new Date(),
|
|
11
|
+
onChange,
|
|
12
|
+
style
|
|
13
|
+
}) {
|
|
14
|
+
const {
|
|
15
|
+
colors,
|
|
16
|
+
typography
|
|
17
|
+
} = useTheme();
|
|
18
|
+
|
|
19
|
+
// Current visible month/year
|
|
20
|
+
const [currentMonth, setCurrentMonth] = useState(new Date(value.getFullYear(), value.getMonth(), 1));
|
|
21
|
+
|
|
22
|
+
// Helpers to navigate months
|
|
23
|
+
const handlePrevMonth = () => {
|
|
24
|
+
setCurrentMonth(new Date(currentMonth.getFullYear(), currentMonth.getMonth() - 1, 1));
|
|
25
|
+
};
|
|
26
|
+
const handleNextMonth = () => {
|
|
27
|
+
setCurrentMonth(new Date(currentMonth.getFullYear(), currentMonth.getMonth() + 1, 1));
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
// Calendar generation logic
|
|
31
|
+
const {
|
|
32
|
+
days,
|
|
33
|
+
blanks
|
|
34
|
+
} = useMemo(() => {
|
|
35
|
+
const year = currentMonth.getFullYear();
|
|
36
|
+
const month = currentMonth.getMonth();
|
|
37
|
+
|
|
38
|
+
// 0 = Sunday, 1 = Monday, etc.
|
|
39
|
+
const firstDayOfMonth = new Date(year, month, 1).getDay();
|
|
40
|
+
const daysInMonth = new Date(year, month + 1, 0).getDate();
|
|
41
|
+
|
|
42
|
+
// Array of empty slots before the 1st
|
|
43
|
+
const blanksArray = Array.from({
|
|
44
|
+
length: firstDayOfMonth
|
|
45
|
+
}, (_, i) => i);
|
|
46
|
+
// Array of actual days
|
|
47
|
+
const daysArray = Array.from({
|
|
48
|
+
length: daysInMonth
|
|
49
|
+
}, (_, i) => i + 1);
|
|
50
|
+
return {
|
|
51
|
+
days: daysArray,
|
|
52
|
+
blanks: blanksArray
|
|
53
|
+
};
|
|
54
|
+
}, [currentMonth]);
|
|
55
|
+
const monthNames = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
|
|
56
|
+
const headerText = `${monthNames[currentMonth.getMonth()]} ${currentMonth.getFullYear()}`;
|
|
57
|
+
|
|
58
|
+
// Helper to check if a day is the currently selected date
|
|
59
|
+
const isSelected = day => {
|
|
60
|
+
return value.getDate() === day && value.getMonth() === currentMonth.getMonth() && value.getFullYear() === currentMonth.getFullYear();
|
|
61
|
+
};
|
|
62
|
+
const handleSelectDay = day => {
|
|
63
|
+
if (onChange) {
|
|
64
|
+
onChange(new Date(currentMonth.getFullYear(), currentMonth.getMonth(), day));
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
const handleToday = () => {
|
|
68
|
+
const today = new Date();
|
|
69
|
+
setCurrentMonth(new Date(today.getFullYear(), today.getMonth(), 1));
|
|
70
|
+
if (onChange) {
|
|
71
|
+
onChange(today);
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
return /*#__PURE__*/_jsx(FluentGlass, {
|
|
75
|
+
style: [styles.container, style],
|
|
76
|
+
intensity: 25,
|
|
77
|
+
borderRadius: 24,
|
|
78
|
+
borderOpacity: 0.2,
|
|
79
|
+
tint: "dark",
|
|
80
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
81
|
+
style: styles.calendarProps,
|
|
82
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
83
|
+
style: styles.header,
|
|
84
|
+
children: [/*#__PURE__*/_jsx(TouchableOpacity, {
|
|
85
|
+
onPress: handlePrevMonth,
|
|
86
|
+
style: styles.navButton,
|
|
87
|
+
hitSlop: 10,
|
|
88
|
+
accessibilityRole: "button",
|
|
89
|
+
accessibilityLabel: "Previous month",
|
|
90
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
91
|
+
style: [styles.navIcon, {
|
|
92
|
+
color: colors.textSecondary,
|
|
93
|
+
fontFamily: typography.regular
|
|
94
|
+
}],
|
|
95
|
+
children: "\u2039"
|
|
96
|
+
})
|
|
97
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
98
|
+
style: [styles.headerTitle, {
|
|
99
|
+
color: colors.textPrimary,
|
|
100
|
+
fontFamily: typography.bold
|
|
101
|
+
}],
|
|
102
|
+
children: headerText
|
|
103
|
+
}), /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
104
|
+
onPress: handleNextMonth,
|
|
105
|
+
style: styles.navButton,
|
|
106
|
+
hitSlop: 10,
|
|
107
|
+
accessibilityRole: "button",
|
|
108
|
+
accessibilityLabel: "Next month",
|
|
109
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
110
|
+
style: [styles.navIcon, {
|
|
111
|
+
color: colors.textSecondary,
|
|
112
|
+
fontFamily: typography.regular
|
|
113
|
+
}],
|
|
114
|
+
children: "\u203A"
|
|
115
|
+
})
|
|
116
|
+
})]
|
|
117
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
118
|
+
style: styles.weekRow,
|
|
119
|
+
children: ['S', 'M', 'T', 'W', 'T', 'F', 'S'].map((day, ix) => /*#__PURE__*/_jsx(View, {
|
|
120
|
+
style: styles.dayCell,
|
|
121
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
122
|
+
style: [styles.weekText, {
|
|
123
|
+
color: colors.textSecondary,
|
|
124
|
+
fontFamily: typography.bold
|
|
125
|
+
}],
|
|
126
|
+
children: day
|
|
127
|
+
})
|
|
128
|
+
}, ix))
|
|
129
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
130
|
+
style: styles.daysGrid,
|
|
131
|
+
children: [blanks.map(blank => /*#__PURE__*/_jsx(View, {
|
|
132
|
+
style: styles.dayCell
|
|
133
|
+
}, `blank-${blank}`)), days.map(day => {
|
|
134
|
+
const selected = isSelected(day);
|
|
135
|
+
return /*#__PURE__*/_jsx(Pressable, {
|
|
136
|
+
style: styles.dayCell,
|
|
137
|
+
onPress: () => handleSelectDay(day),
|
|
138
|
+
accessibilityRole: "button",
|
|
139
|
+
accessibilityState: {
|
|
140
|
+
selected: isSelected(day)
|
|
141
|
+
},
|
|
142
|
+
children: selected ? /*#__PURE__*/_jsxs(View, {
|
|
143
|
+
style: styles.selectedCircle,
|
|
144
|
+
children: [/*#__PURE__*/_jsx(FluentGlass, {
|
|
145
|
+
intensity: 40,
|
|
146
|
+
borderRadius: 16,
|
|
147
|
+
tint: "light",
|
|
148
|
+
style: StyleSheet.absoluteFillObject
|
|
149
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
150
|
+
style: [styles.dayText, styles.selectedDayText, {
|
|
151
|
+
color: colors.textPrimary,
|
|
152
|
+
fontFamily: typography.extraBold
|
|
153
|
+
}],
|
|
154
|
+
children: day
|
|
155
|
+
})]
|
|
156
|
+
}) : /*#__PURE__*/_jsx(Text, {
|
|
157
|
+
style: [styles.dayText, {
|
|
158
|
+
color: colors.textSecondary,
|
|
159
|
+
fontFamily: typography.semiBold
|
|
160
|
+
}],
|
|
161
|
+
children: day
|
|
162
|
+
})
|
|
163
|
+
}, day);
|
|
164
|
+
})]
|
|
165
|
+
}), /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
166
|
+
style: [styles.todayButton, {
|
|
167
|
+
borderColor: colors.border,
|
|
168
|
+
backgroundColor: colors.borderSubtle
|
|
169
|
+
}],
|
|
170
|
+
onPress: handleToday,
|
|
171
|
+
activeOpacity: 0.7,
|
|
172
|
+
accessibilityRole: "button",
|
|
173
|
+
accessibilityLabel: "Go to today",
|
|
174
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
175
|
+
style: [styles.todayText, {
|
|
176
|
+
color: colors.accent,
|
|
177
|
+
fontFamily: typography.bold
|
|
178
|
+
}],
|
|
179
|
+
children: "Hoy"
|
|
180
|
+
})
|
|
181
|
+
})]
|
|
182
|
+
})
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
const styles = StyleSheet.create({
|
|
186
|
+
container: {
|
|
187
|
+
width: '100%',
|
|
188
|
+
maxWidth: 360,
|
|
189
|
+
alignSelf: 'center'
|
|
190
|
+
},
|
|
191
|
+
calendarProps: {
|
|
192
|
+
padding: 20
|
|
193
|
+
},
|
|
194
|
+
header: {
|
|
195
|
+
flexDirection: 'row',
|
|
196
|
+
justifyContent: 'space-between',
|
|
197
|
+
alignItems: 'center',
|
|
198
|
+
marginBottom: 20
|
|
199
|
+
},
|
|
200
|
+
headerTitle: {
|
|
201
|
+
fontSize: 18,
|
|
202
|
+
fontWeight: 'bold',
|
|
203
|
+
letterSpacing: 0.5
|
|
204
|
+
},
|
|
205
|
+
navButton: {
|
|
206
|
+
width: moderateScale(36),
|
|
207
|
+
height: moderateScale(36),
|
|
208
|
+
alignItems: 'center',
|
|
209
|
+
justifyContent: 'center'
|
|
210
|
+
},
|
|
211
|
+
navIcon: {
|
|
212
|
+
fontSize: 24,
|
|
213
|
+
fontWeight: '300',
|
|
214
|
+
lineHeight: 28
|
|
215
|
+
},
|
|
216
|
+
weekRow: {
|
|
217
|
+
flexDirection: 'row',
|
|
218
|
+
marginBottom: 10
|
|
219
|
+
},
|
|
220
|
+
weekText: {
|
|
221
|
+
fontSize: 13,
|
|
222
|
+
fontWeight: '700',
|
|
223
|
+
textAlign: 'center'
|
|
224
|
+
},
|
|
225
|
+
daysGrid: {
|
|
226
|
+
flexDirection: 'row',
|
|
227
|
+
flexWrap: 'wrap'
|
|
228
|
+
},
|
|
229
|
+
dayCell: {
|
|
230
|
+
width: '14.28%',
|
|
231
|
+
// 100% / 7
|
|
232
|
+
height: 38,
|
|
233
|
+
justifyContent: 'center',
|
|
234
|
+
alignItems: 'center'
|
|
235
|
+
},
|
|
236
|
+
dayText: {
|
|
237
|
+
fontSize: 15,
|
|
238
|
+
fontWeight: '600'
|
|
239
|
+
},
|
|
240
|
+
selectedCircle: {
|
|
241
|
+
width: moderateScale(32),
|
|
242
|
+
height: moderateScale(32),
|
|
243
|
+
borderRadius: moderateScale(16),
|
|
244
|
+
justifyContent: 'center',
|
|
245
|
+
alignItems: 'center',
|
|
246
|
+
overflow: 'hidden'
|
|
247
|
+
},
|
|
248
|
+
selectedDayText: {
|
|
249
|
+
fontWeight: '800'
|
|
250
|
+
},
|
|
251
|
+
todayButton: {
|
|
252
|
+
marginTop: 14,
|
|
253
|
+
alignSelf: 'center',
|
|
254
|
+
paddingVertical: 8,
|
|
255
|
+
paddingHorizontal: 28,
|
|
256
|
+
borderRadius: 12,
|
|
257
|
+
borderWidth: 1
|
|
258
|
+
},
|
|
259
|
+
todayText: {
|
|
260
|
+
fontSize: 14,
|
|
261
|
+
fontWeight: '700',
|
|
262
|
+
letterSpacing: 0.5
|
|
263
|
+
}
|
|
264
|
+
});
|
|
265
|
+
//# sourceMappingURL=FluentGlassDatePicker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useState","useMemo","StyleSheet","View","Text","TouchableOpacity","Pressable","FluentGlass","useTheme","moderateScale","jsx","_jsx","jsxs","_jsxs","FluentGlassDatePicker","value","Date","onChange","style","colors","typography","currentMonth","setCurrentMonth","getFullYear","getMonth","handlePrevMonth","handleNextMonth","days","blanks","year","month","firstDayOfMonth","getDay","daysInMonth","getDate","blanksArray","Array","from","length","_","i","daysArray","monthNames","headerText","isSelected","day","handleSelectDay","handleToday","today","styles","container","intensity","borderRadius","borderOpacity","tint","children","calendarProps","header","onPress","navButton","hitSlop","accessibilityRole","accessibilityLabel","navIcon","color","textSecondary","fontFamily","regular","headerTitle","textPrimary","bold","weekRow","map","ix","dayCell","weekText","daysGrid","blank","selected","accessibilityState","selectedCircle","absoluteFillObject","dayText","selectedDayText","extraBold","semiBold","todayButton","borderColor","border","backgroundColor","borderSubtle","activeOpacity","todayText","accent","create","width","maxWidth","alignSelf","padding","flexDirection","justifyContent","alignItems","marginBottom","fontSize","fontWeight","letterSpacing","height","lineHeight","textAlign","flexWrap","overflow","marginTop","paddingVertical","paddingHorizontal","borderWidth"],"sourceRoot":"..\\..\\..\\src","sources":["components/FluentGlassDatePicker.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,QAAQ,EAAEC,OAAO,QAAQ,OAAO;AAChD,SAASC,UAAU,EAAEC,IAAI,EAAEC,IAAI,EAAEC,gBAAgB,EAAEC,SAAS,QAA8B,cAAc;AACxG,OAAOC,WAAW,MAAM,eAAe;AACvC,OAAOC,QAAQ,MAAM,mBAAmB;AACxC,SAASC,aAAa,QAAQ,qBAAqB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAQpD,eAAe,SAASC,qBAAqBA,CAAC;EAAEC,KAAK,GAAG,IAAIC,IAAI,CAAC,CAAC;EAC9DC,QAAQ;EACRC;AAAmC,CAAC,EAAE;EACtC,MAAM;IAAEC,MAAM;IAAEC;EAAW,CAAC,GAAGZ,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AAK;IACpBU,QAAQ,EAAE;EACd,CAAC;EACDnC,OAAO,EAAE;IACLqB,KAAK,EAAE,QAAQ;IAAE;IACjBW,MAAM,EAAE,EAAE;IACVN,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE;EAChB,CAAC;EACDnB,OAAO,EAAE;IACLqB,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE;EAChB,CAAC;EACDxB,cAAc,EAAE;IACZe,KAAK,EAAEtF,aAAa,CAAC,EAAE,CAAC;IACxBiG,MAAM,EAAEjG,aAAa,CAAC,EAAE,CAAC;IACzB2C,YAAY,EAAE3C,aAAa,CAAC,EAAE,CAAC;IAC/B2F,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE,QAAQ;IACpBS,QAAQ,EAAE;EACd,CAAC;EACD3B,eAAe,EAAE;IACbqB,UAAU,EAAE;EAChB,CAAC;EACDlB,WAAW,EAAE;IACTyB,SAAS,EAAE,EAAE;IACbd,SAAS,EAAE,QAAQ;IACnBe,eAAe,EAAE,CAAC;IAClBC,iBAAiB,EAAE,EAAE;IACrB7D,YAAY,EAAE,EAAE;IAChB8D,WAAW,EAAE;EACjB,CAAC;EACDtB,SAAS,EAAE;IACPW,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,KAAK;IACjBC,aAAa,EAAE;EACnB;AACJ,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { useEffect } from 'react';
|
|
4
|
+
import { StyleSheet, View, Text, Pressable } from 'react-native';
|
|
5
|
+
import Animated, { useSharedValue, useAnimatedStyle, withSpring, withTiming } from 'react-native-reanimated';
|
|
6
|
+
import FluentGlass from './FluentGlass';
|
|
7
|
+
import FluentGlassButton from './FluentGlassButton';
|
|
8
|
+
import useTheme from '../theme/useTheme';
|
|
9
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
+
/**
|
|
11
|
+
* FluentGlassDialog (Component)
|
|
12
|
+
* Central alert/confirmation modal.
|
|
13
|
+
* Uses absolute positioning instead of Modal to avoid
|
|
14
|
+
* BlurView initialisation flicker.
|
|
15
|
+
*/
|
|
16
|
+
export default function FluentGlassDialog({
|
|
17
|
+
visible,
|
|
18
|
+
onClose,
|
|
19
|
+
title,
|
|
20
|
+
description,
|
|
21
|
+
onConfirm,
|
|
22
|
+
confirmText = 'Confirm',
|
|
23
|
+
cancelText = 'Cancel'
|
|
24
|
+
}) {
|
|
25
|
+
const theme = useTheme();
|
|
26
|
+
const COLORS = theme.colors;
|
|
27
|
+
const typography = theme.typography;
|
|
28
|
+
const scale = useSharedValue(0.8);
|
|
29
|
+
const opacity = useSharedValue(0);
|
|
30
|
+
const [mounted, setMounted] = React.useState(false);
|
|
31
|
+
useEffect(() => {
|
|
32
|
+
if (visible) {
|
|
33
|
+
setMounted(true);
|
|
34
|
+
// Small delay so React commits the mount frame (opacity 0) first
|
|
35
|
+
requestAnimationFrame(() => {
|
|
36
|
+
scale.value = withSpring(1);
|
|
37
|
+
opacity.value = withTiming(1, {
|
|
38
|
+
duration: 200
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
} else if (mounted) {
|
|
42
|
+
scale.value = withTiming(0.85, {
|
|
43
|
+
duration: 180
|
|
44
|
+
});
|
|
45
|
+
opacity.value = withTiming(0, {
|
|
46
|
+
duration: 180
|
|
47
|
+
});
|
|
48
|
+
const timer = setTimeout(() => {
|
|
49
|
+
setMounted(false);
|
|
50
|
+
scale.value = 0.8;
|
|
51
|
+
opacity.value = 0;
|
|
52
|
+
}, 220);
|
|
53
|
+
return () => clearTimeout(timer);
|
|
54
|
+
}
|
|
55
|
+
}, [visible]);
|
|
56
|
+
const backdropStyle = useAnimatedStyle(() => ({
|
|
57
|
+
opacity: opacity.value
|
|
58
|
+
}));
|
|
59
|
+
const cardStyle = useAnimatedStyle(() => ({
|
|
60
|
+
opacity: opacity.value,
|
|
61
|
+
transform: [{
|
|
62
|
+
scale: scale.value
|
|
63
|
+
}]
|
|
64
|
+
}));
|
|
65
|
+
if (!mounted) return null;
|
|
66
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
67
|
+
style: styles.root,
|
|
68
|
+
pointerEvents: visible ? 'auto' : 'none',
|
|
69
|
+
accessibilityViewIsModal: true,
|
|
70
|
+
children: [/*#__PURE__*/_jsx(Animated.View, {
|
|
71
|
+
style: [styles.backdrop, {
|
|
72
|
+
backgroundColor: COLORS.overlay
|
|
73
|
+
}, backdropStyle],
|
|
74
|
+
children: /*#__PURE__*/_jsx(Pressable, {
|
|
75
|
+
style: StyleSheet.absoluteFill,
|
|
76
|
+
onPress: onClose,
|
|
77
|
+
accessibilityRole: "button",
|
|
78
|
+
accessibilityLabel: "Close dialog"
|
|
79
|
+
})
|
|
80
|
+
}), /*#__PURE__*/_jsx(Animated.View, {
|
|
81
|
+
style: [styles.dialogContainer, cardStyle],
|
|
82
|
+
children: /*#__PURE__*/_jsx(FluentGlass, {
|
|
83
|
+
style: styles.modalGlass,
|
|
84
|
+
intensity: 25,
|
|
85
|
+
borderRadius: 20,
|
|
86
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
87
|
+
style: styles.innerContent,
|
|
88
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
89
|
+
style: [styles.title, {
|
|
90
|
+
color: COLORS.textPrimary,
|
|
91
|
+
fontFamily: typography.bold
|
|
92
|
+
}],
|
|
93
|
+
accessibilityRole: "header",
|
|
94
|
+
children: title
|
|
95
|
+
}), description && /*#__PURE__*/_jsx(Text, {
|
|
96
|
+
style: [styles.description, {
|
|
97
|
+
color: COLORS.textSecondary,
|
|
98
|
+
fontFamily: typography.regular
|
|
99
|
+
}],
|
|
100
|
+
children: description
|
|
101
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
102
|
+
style: styles.footer,
|
|
103
|
+
children: [/*#__PURE__*/_jsx(FluentGlassButton, {
|
|
104
|
+
title: cancelText,
|
|
105
|
+
variant: "secondary",
|
|
106
|
+
onPress: onClose,
|
|
107
|
+
style: {
|
|
108
|
+
flex: 1,
|
|
109
|
+
marginRight: 8
|
|
110
|
+
}
|
|
111
|
+
}), /*#__PURE__*/_jsx(FluentGlassButton, {
|
|
112
|
+
title: confirmText,
|
|
113
|
+
variant: "primary",
|
|
114
|
+
onPress: onConfirm,
|
|
115
|
+
style: {
|
|
116
|
+
flex: 1,
|
|
117
|
+
marginLeft: 8
|
|
118
|
+
}
|
|
119
|
+
})]
|
|
120
|
+
})]
|
|
121
|
+
})
|
|
122
|
+
})
|
|
123
|
+
})]
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
const styles = StyleSheet.create({
|
|
127
|
+
root: {
|
|
128
|
+
...StyleSheet.absoluteFillObject,
|
|
129
|
+
zIndex: 9999,
|
|
130
|
+
justifyContent: 'center',
|
|
131
|
+
alignItems: 'center',
|
|
132
|
+
padding: 20
|
|
133
|
+
},
|
|
134
|
+
backdrop: {
|
|
135
|
+
...StyleSheet.absoluteFillObject
|
|
136
|
+
},
|
|
137
|
+
dialogContainer: {
|
|
138
|
+
width: '100%',
|
|
139
|
+
maxWidth: 400
|
|
140
|
+
},
|
|
141
|
+
modalGlass: {
|
|
142
|
+
width: '100%',
|
|
143
|
+
overflow: 'hidden'
|
|
144
|
+
},
|
|
145
|
+
innerContent: {
|
|
146
|
+
padding: 24
|
|
147
|
+
},
|
|
148
|
+
title: {
|
|
149
|
+
fontSize: 20,
|
|
150
|
+
fontWeight: 'bold',
|
|
151
|
+
marginBottom: 8
|
|
152
|
+
},
|
|
153
|
+
description: {
|
|
154
|
+
fontSize: 16,
|
|
155
|
+
marginBottom: 24,
|
|
156
|
+
lineHeight: 22
|
|
157
|
+
},
|
|
158
|
+
footer: {
|
|
159
|
+
flexDirection: 'row',
|
|
160
|
+
justifyContent: 'space-between'
|
|
161
|
+
}
|
|
162
|
+
});
|
|
163
|
+
//# sourceMappingURL=FluentGlassDialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useEffect","StyleSheet","View","Text","Pressable","Animated","useSharedValue","useAnimatedStyle","withSpring","withTiming","FluentGlass","FluentGlassButton","useTheme","jsx","_jsx","jsxs","_jsxs","FluentGlassDialog","visible","onClose","title","description","onConfirm","confirmText","cancelText","theme","COLORS","colors","typography","scale","opacity","mounted","setMounted","useState","requestAnimationFrame","value","duration","timer","setTimeout","clearTimeout","backdropStyle","cardStyle","transform","style","styles","root","pointerEvents","accessibilityViewIsModal","children","backdrop","backgroundColor","overlay","absoluteFill","onPress","accessibilityRole","accessibilityLabel","dialogContainer","modalGlass","intensity","borderRadius","innerContent","color","textPrimary","fontFamily","bold","textSecondary","regular","footer","variant","flex","marginRight","marginLeft","create","absoluteFillObject","zIndex","justifyContent","alignItems","padding","width","maxWidth","overflow","fontSize","fontWeight","marginBottom","lineHeight","flexDirection"],"sourceRoot":"..\\..\\..\\src","sources":["components/FluentGlassDialog.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AAExC,SAASC,UAAU,EAAEC,IAAI,EAAEC,IAAI,EAAEC,SAAS,QAAQ,cAAc;AAChE,OAAOC,QAAQ,IACXC,cAAc,EACdC,gBAAgB,EAChBC,UAAU,EACVC,UAAU,QACP,yBAAyB;AAChC,OAAOC,WAAW,MAAM,eAAe;AACvC,OAAOC,iBAAiB,MAAM,qBAAqB;AACnD,OAAOC,QAAQ,MAAM,mBAAmB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAYzC;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,SAASC,iBAAiBA,CAAC;EACtCC,OAAO;EACPC,OAAO;EACPC,KAAK;EACLC,WAAW;EACXC,SAAS;EACTC,WAAW,GAAG,SAAS;EACvBC,UAAU,GAAG;AACO,CAAC,EAAE;EACvB,MAAMC,KAAK,GAAGb,QAAQ,CAAC,CAAC;EACxB,MAAMc,MAAM,GAAGD,KAAK,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