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,181 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { StyleSheet, View, Pressable } from 'react-native';
|
|
5
|
+
import Animated, { useSharedValue, useAnimatedStyle, withSpring } from 'react-native-reanimated';
|
|
6
|
+
import FluentGlass from './FluentGlass';
|
|
7
|
+
import useTheme from '../theme/useTheme';
|
|
8
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
+
const ITEM_SIZE = 56;
|
|
10
|
+
const ITEM_GAP = 16;
|
|
11
|
+
const PAD_H = 24;
|
|
12
|
+
const SPRING_CONFIG = {
|
|
13
|
+
mass: 0.8,
|
|
14
|
+
damping: 14,
|
|
15
|
+
stiffness: 100,
|
|
16
|
+
overshootClamping: false
|
|
17
|
+
};
|
|
18
|
+
// Internal Dock Item Component
|
|
19
|
+
function DockItem({
|
|
20
|
+
icon,
|
|
21
|
+
label,
|
|
22
|
+
onPress,
|
|
23
|
+
isActive,
|
|
24
|
+
accentColor
|
|
25
|
+
}) {
|
|
26
|
+
const progress = useSharedValue(isActive ? 1 : 0);
|
|
27
|
+
React.useEffect(() => {
|
|
28
|
+
progress.value = withSpring(isActive ? 1 : 0, SPRING_CONFIG);
|
|
29
|
+
}, [isActive]);
|
|
30
|
+
|
|
31
|
+
// Icon Scale
|
|
32
|
+
const iconStyle = useAnimatedStyle(() => ({
|
|
33
|
+
transform: [{
|
|
34
|
+
scale: 1 + progress.value * 0.15
|
|
35
|
+
}]
|
|
36
|
+
}));
|
|
37
|
+
|
|
38
|
+
// Dot Appearance
|
|
39
|
+
const dotStyle = useAnimatedStyle(() => ({
|
|
40
|
+
opacity: progress.value,
|
|
41
|
+
transform: [{
|
|
42
|
+
scale: progress.value
|
|
43
|
+
}]
|
|
44
|
+
}));
|
|
45
|
+
return /*#__PURE__*/_jsx(Pressable, {
|
|
46
|
+
onPress: onPress,
|
|
47
|
+
accessibilityRole: "tab",
|
|
48
|
+
accessibilityLabel: label ?? 'Dock item',
|
|
49
|
+
accessibilityState: {
|
|
50
|
+
selected: isActive
|
|
51
|
+
},
|
|
52
|
+
children: /*#__PURE__*/_jsxs(Animated.View, {
|
|
53
|
+
style: styles.itemWrapper,
|
|
54
|
+
children: [/*#__PURE__*/_jsx(FluentGlass, {
|
|
55
|
+
style: styles.itemContainer,
|
|
56
|
+
intensity: 25,
|
|
57
|
+
borderRadius: 16,
|
|
58
|
+
borderOpacity: 0.2,
|
|
59
|
+
tint: "dark",
|
|
60
|
+
children: /*#__PURE__*/_jsx(Animated.View, {
|
|
61
|
+
style: [styles.centeredContent, iconStyle],
|
|
62
|
+
children: icon
|
|
63
|
+
})
|
|
64
|
+
}), /*#__PURE__*/_jsx(Animated.View, {
|
|
65
|
+
style: [styles.dot, dotStyle, {
|
|
66
|
+
backgroundColor: accentColor
|
|
67
|
+
}]
|
|
68
|
+
})]
|
|
69
|
+
})
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* FluentGlassDock (Component)
|
|
74
|
+
* Floating bottom navigation bar with sliding glow indicator.
|
|
75
|
+
*/
|
|
76
|
+
export default function FluentGlassDock({
|
|
77
|
+
items,
|
|
78
|
+
activeIndex,
|
|
79
|
+
onSelect,
|
|
80
|
+
floating = true,
|
|
81
|
+
style
|
|
82
|
+
}) {
|
|
83
|
+
const theme = useTheme();
|
|
84
|
+
const themeColors = theme.colors;
|
|
85
|
+
|
|
86
|
+
// Sliding indicator position
|
|
87
|
+
const translateX = useSharedValue(activeIndex * (ITEM_SIZE + ITEM_GAP));
|
|
88
|
+
React.useEffect(() => {
|
|
89
|
+
translateX.value = withSpring(activeIndex * (ITEM_SIZE + ITEM_GAP), {
|
|
90
|
+
mass: 0.4,
|
|
91
|
+
damping: 18,
|
|
92
|
+
stiffness: 200,
|
|
93
|
+
overshootClamping: false
|
|
94
|
+
});
|
|
95
|
+
}, [activeIndex]);
|
|
96
|
+
const slidingStyle = useAnimatedStyle(() => ({
|
|
97
|
+
transform: [{
|
|
98
|
+
translateX: translateX.value
|
|
99
|
+
}]
|
|
100
|
+
}));
|
|
101
|
+
return /*#__PURE__*/_jsx(View, {
|
|
102
|
+
style: [floating ? styles.dockWrapperFloating : styles.dockWrapperRelative, style],
|
|
103
|
+
accessibilityRole: "toolbar",
|
|
104
|
+
children: /*#__PURE__*/_jsx(FluentGlass, {
|
|
105
|
+
style: styles.dockPill,
|
|
106
|
+
intensity: 20,
|
|
107
|
+
borderRadius: 32,
|
|
108
|
+
borderOpacity: 0.1,
|
|
109
|
+
tint: "dark",
|
|
110
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
111
|
+
style: styles.itemsRow,
|
|
112
|
+
children: [/*#__PURE__*/_jsx(Animated.View, {
|
|
113
|
+
style: [styles.slidingIndicator, slidingStyle, {
|
|
114
|
+
backgroundColor: themeColors.accent + '20',
|
|
115
|
+
borderColor: themeColors.accent + '60'
|
|
116
|
+
}]
|
|
117
|
+
}), items.map((item, index) => /*#__PURE__*/_jsx(DockItem, {
|
|
118
|
+
icon: item.icon,
|
|
119
|
+
label: item.label,
|
|
120
|
+
isActive: activeIndex === index,
|
|
121
|
+
onPress: () => onSelect(index),
|
|
122
|
+
accentColor: themeColors.accent
|
|
123
|
+
}, index))]
|
|
124
|
+
})
|
|
125
|
+
})
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
const styles = StyleSheet.create({
|
|
129
|
+
dockWrapperFloating: {
|
|
130
|
+
position: 'absolute',
|
|
131
|
+
bottom: 34,
|
|
132
|
+
width: '100%',
|
|
133
|
+
alignItems: 'center',
|
|
134
|
+
paddingHorizontal: 20,
|
|
135
|
+
zIndex: 100
|
|
136
|
+
},
|
|
137
|
+
dockWrapperRelative: {
|
|
138
|
+
width: '100%',
|
|
139
|
+
alignItems: 'center',
|
|
140
|
+
paddingVertical: 20
|
|
141
|
+
},
|
|
142
|
+
dockPill: {
|
|
143
|
+
// Auto width based on content
|
|
144
|
+
},
|
|
145
|
+
itemsRow: {
|
|
146
|
+
flexDirection: 'row',
|
|
147
|
+
alignItems: 'flex-end',
|
|
148
|
+
gap: ITEM_GAP,
|
|
149
|
+
paddingVertical: 12,
|
|
150
|
+
paddingHorizontal: PAD_H
|
|
151
|
+
},
|
|
152
|
+
slidingIndicator: {
|
|
153
|
+
position: 'absolute',
|
|
154
|
+
top: 12,
|
|
155
|
+
left: PAD_H,
|
|
156
|
+
width: ITEM_SIZE,
|
|
157
|
+
height: ITEM_SIZE,
|
|
158
|
+
borderRadius: 16,
|
|
159
|
+
borderWidth: 1
|
|
160
|
+
},
|
|
161
|
+
itemWrapper: {
|
|
162
|
+
alignItems: 'center',
|
|
163
|
+
marginBottom: 4
|
|
164
|
+
},
|
|
165
|
+
itemContainer: {
|
|
166
|
+
width: ITEM_SIZE,
|
|
167
|
+
height: ITEM_SIZE
|
|
168
|
+
},
|
|
169
|
+
centeredContent: {
|
|
170
|
+
flex: 1,
|
|
171
|
+
alignItems: 'center',
|
|
172
|
+
justifyContent: 'center'
|
|
173
|
+
},
|
|
174
|
+
dot: {
|
|
175
|
+
width: 4,
|
|
176
|
+
height: 4,
|
|
177
|
+
borderRadius: 2,
|
|
178
|
+
marginTop: 6
|
|
179
|
+
}
|
|
180
|
+
});
|
|
181
|
+
//# sourceMappingURL=FluentGlassDock.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","View","Pressable","Animated","useSharedValue","useAnimatedStyle","withSpring","FluentGlass","useTheme","jsx","_jsx","jsxs","_jsxs","ITEM_SIZE","ITEM_GAP","PAD_H","SPRING_CONFIG","mass","damping","stiffness","overshootClamping","DockItem","icon","label","onPress","isActive","accentColor","progress","useEffect","value","iconStyle","transform","scale","dotStyle","opacity","accessibilityRole","accessibilityLabel","accessibilityState","selected","children","style","styles","itemWrapper","itemContainer","intensity","borderRadius","borderOpacity","tint","centeredContent","dot","backgroundColor","FluentGlassDock","items","activeIndex","onSelect","floating","theme","themeColors","colors","translateX","slidingStyle","dockWrapperFloating","dockWrapperRelative","dockPill","itemsRow","slidingIndicator","accent","borderColor","map","item","index","create","position","bottom","width","alignItems","paddingHorizontal","zIndex","paddingVertical","flexDirection","gap","top","left","height","borderWidth","marginBottom","flex","justifyContent","marginTop"],"sourceRoot":"..\\..\\..\\src","sources":["components/FluentGlassDock.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,EAAEC,SAAS,QAAmB,cAAc;AACrE,OAAOC,QAAQ,IACXC,cAAc,EACdC,gBAAgB,EAChBC,UAAU,QACP,yBAAyB;AAChC,OAAOC,WAAW,MAAM,eAAe;AACvC,OAAOC,QAAQ,MAAM,mBAAmB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEzC,MAAMC,SAAS,GAAG,EAAE;AACpB,MAAMC,QAAQ,GAAG,EAAE;AACnB,MAAMC,KAAK,GAAG,EAAE;AAEhB,MAAMC,aAAa,GAAG;EAClBC,IAAI,EAAE,GAAG;EACTC,OAAO,EAAE,EAAE;EACXC,SAAS,EAAE,GAAG;EACdC,iBAAiB,EAAE;AACvB,CAAC;AAeD;AACA,SAASC,QAAQA,CAAC;EAAEC,IAAI;EAAEC,KAAK;EAAEC,OAAO;EAAEC,QAAQ;EAAEC;AAA2B,CAAC,EAAE;EAC9E,MAAMC,QAAQ,GAAGvB,cAAc,CAACqB,QAAQ,GAAG,CAAC,GAAG,CAAC,CAAC;EAEjD1B,KAAK,CAAC6B,SAAS,CAAC,MAAM;IAClBD,QAAQ,CAACE,KAAK,GAAGvB,UAAU,CAACmB,QAAQ,GAAG,CAAC,GAAG,CAAC,EAAET,aAAa,CAAC;EAChE,CAAC,EAAE,CAACS,QAAQ,CAAC,CAAC;;EAEd;EACA,MAAMK,SAAS,GAAGzB,gBAAgB,CAAC,OAAO;IACtC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;EACjB,CAAC;EACD1C,WAAW,EAAE;IACTiC,UAAU,EAAE,QAAQ;IACpBU,YAAY,EAAE;EAClB,CAAC;EACD1C,aAAa,EAAE;IACX+B,KAAK,EAAE7D,SAAS;IAChBsE,MAAM,EAAEtE;EACZ,CAAC;EACDmC,eAAe,EAAE;IACbsC,IAAI,EAAE,CAAC;IACPX,UAAU,EAAE,QAAQ;IACpBY,cAAc,EAAE;EACpB,CAAC;EACDtC,GAAG,EAAE;IACDyB,KAAK,EAAE,CAAC;IACRS,MAAM,EAAE,CAAC;IACTtC,YAAY,EAAE,CAAC;IACf2C,SAAS,EAAE;EACf;AACJ,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,343 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { useState, useRef, useCallback, useEffect } from 'react';
|
|
4
|
+
import { StyleSheet, Text, View, Pressable, Dimensions, ScrollView, Modal } from 'react-native';
|
|
5
|
+
import Animated, { useSharedValue, useAnimatedStyle, withTiming, withSpring, Easing } from 'react-native-reanimated';
|
|
6
|
+
import FluentGlass from './FluentGlass';
|
|
7
|
+
import useTheme from '../theme/useTheme';
|
|
8
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
+
/**
|
|
10
|
+
* FluentGlassDropdown (Molecule)
|
|
11
|
+
* Inline glass dropdown with auto-direction (opens up or down based on space).
|
|
12
|
+
* Animations fully driven by SharedValues on the UI thread.
|
|
13
|
+
*
|
|
14
|
+
* @level Molecule
|
|
15
|
+
* @composition FluentGlass (Atom), Text, Pressable
|
|
16
|
+
*
|
|
17
|
+
* Two data formats:
|
|
18
|
+
* Flat: options={[{ label, value }]}
|
|
19
|
+
* Grouped: sections={[{ title, data: [{ label, value }] }]}
|
|
20
|
+
*/
|
|
21
|
+
const SCREEN_HEIGHT = Dimensions.get('window').height;
|
|
22
|
+
const MAX_DROPDOWN_HEIGHT = 260;
|
|
23
|
+
const SPRING_CONFIG = {
|
|
24
|
+
damping: 18,
|
|
25
|
+
stiffness: 300,
|
|
26
|
+
mass: 0.8
|
|
27
|
+
};
|
|
28
|
+
const TIMING_CONFIG = {
|
|
29
|
+
duration: 180,
|
|
30
|
+
easing: Easing.out(Easing.cubic)
|
|
31
|
+
};
|
|
32
|
+
export default function FluentGlassDropdown({
|
|
33
|
+
value,
|
|
34
|
+
onValueChange,
|
|
35
|
+
options,
|
|
36
|
+
sections,
|
|
37
|
+
placeholder = 'Select option',
|
|
38
|
+
label,
|
|
39
|
+
style,
|
|
40
|
+
accessibilityLabel
|
|
41
|
+
}) {
|
|
42
|
+
const theme = useTheme();
|
|
43
|
+
const COLORS = theme.colors;
|
|
44
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
45
|
+
const [triggerLayout, setTriggerLayout] = useState(null);
|
|
46
|
+
const [openDirection, setOpenDirection] = useState('down');
|
|
47
|
+
const triggerRef = useRef(null);
|
|
48
|
+
|
|
49
|
+
// Animation shared values — runs on UI thread
|
|
50
|
+
const opacity = useSharedValue(0);
|
|
51
|
+
const scale = useSharedValue(0.92);
|
|
52
|
+
const isGrouped = Boolean(sections);
|
|
53
|
+
|
|
54
|
+
// Animate in when opened
|
|
55
|
+
useEffect(() => {
|
|
56
|
+
if (isOpen) {
|
|
57
|
+
opacity.value = withTiming(1, TIMING_CONFIG);
|
|
58
|
+
scale.value = withSpring(1, SPRING_CONFIG);
|
|
59
|
+
}
|
|
60
|
+
}, [isOpen, opacity, scale]);
|
|
61
|
+
const panelAnimStyle = useAnimatedStyle(() => ({
|
|
62
|
+
opacity: opacity.value,
|
|
63
|
+
transform: [{
|
|
64
|
+
scale: scale.value
|
|
65
|
+
}]
|
|
66
|
+
}));
|
|
67
|
+
|
|
68
|
+
// Find selected label
|
|
69
|
+
const findSelectedLabel = () => {
|
|
70
|
+
if (isGrouped && sections) {
|
|
71
|
+
for (const section of sections) {
|
|
72
|
+
const found = section.data.find(item => item.value === value);
|
|
73
|
+
if (found) return found.label;
|
|
74
|
+
}
|
|
75
|
+
return null;
|
|
76
|
+
}
|
|
77
|
+
if (options) {
|
|
78
|
+
const found = options.find(item => item.value === value);
|
|
79
|
+
return found ? found.label : null;
|
|
80
|
+
}
|
|
81
|
+
return null;
|
|
82
|
+
};
|
|
83
|
+
const selectedLabel = findSelectedLabel();
|
|
84
|
+
const handleOpen = useCallback(() => {
|
|
85
|
+
if (triggerRef.current) {
|
|
86
|
+
triggerRef.current.measureInWindow((x, y, width, height) => {
|
|
87
|
+
const spaceBelow = SCREEN_HEIGHT - (y + height);
|
|
88
|
+
const spaceAbove = y;
|
|
89
|
+
const direction = spaceBelow >= MAX_DROPDOWN_HEIGHT || spaceBelow >= spaceAbove ? 'down' : 'up';
|
|
90
|
+
|
|
91
|
+
// Reset animation values before opening
|
|
92
|
+
opacity.value = 0;
|
|
93
|
+
scale.value = 0.92;
|
|
94
|
+
setTriggerLayout({
|
|
95
|
+
x,
|
|
96
|
+
y,
|
|
97
|
+
width,
|
|
98
|
+
height
|
|
99
|
+
});
|
|
100
|
+
setOpenDirection(direction);
|
|
101
|
+
setIsOpen(true);
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
}, [opacity, scale]);
|
|
105
|
+
const handleSelect = useCallback(itemValue => {
|
|
106
|
+
onValueChange?.(itemValue);
|
|
107
|
+
// Animate out then close
|
|
108
|
+
opacity.value = withTiming(0, {
|
|
109
|
+
duration: 120
|
|
110
|
+
});
|
|
111
|
+
scale.value = withTiming(0.95, {
|
|
112
|
+
duration: 120
|
|
113
|
+
});
|
|
114
|
+
setTimeout(() => setIsOpen(false), 130);
|
|
115
|
+
}, [onValueChange, opacity, scale]);
|
|
116
|
+
const handleClose = useCallback(() => {
|
|
117
|
+
opacity.value = withTiming(0, {
|
|
118
|
+
duration: 120
|
|
119
|
+
});
|
|
120
|
+
scale.value = withTiming(0.95, {
|
|
121
|
+
duration: 120
|
|
122
|
+
});
|
|
123
|
+
setTimeout(() => setIsOpen(false), 130);
|
|
124
|
+
}, [opacity, scale]);
|
|
125
|
+
|
|
126
|
+
// Compute dropdown position
|
|
127
|
+
const dropdownPositionStyle = triggerLayout ? {
|
|
128
|
+
position: 'absolute',
|
|
129
|
+
left: triggerLayout.x,
|
|
130
|
+
width: triggerLayout.width,
|
|
131
|
+
maxHeight: MAX_DROPDOWN_HEIGHT,
|
|
132
|
+
...(openDirection === 'down' ? {
|
|
133
|
+
top: triggerLayout.y + triggerLayout.height + 4
|
|
134
|
+
} : {
|
|
135
|
+
top: triggerLayout.y - MAX_DROPDOWN_HEIGHT - 4
|
|
136
|
+
})
|
|
137
|
+
} : {};
|
|
138
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
139
|
+
style: [styles.wrapper, style],
|
|
140
|
+
children: [label ? /*#__PURE__*/_jsx(Text, {
|
|
141
|
+
style: [styles.label, {
|
|
142
|
+
color: COLORS.textSecondary,
|
|
143
|
+
fontFamily: theme.typography.medium
|
|
144
|
+
}],
|
|
145
|
+
children: label
|
|
146
|
+
}) : null, /*#__PURE__*/_jsx(Pressable, {
|
|
147
|
+
ref: triggerRef,
|
|
148
|
+
onPress: handleOpen,
|
|
149
|
+
accessibilityRole: "button",
|
|
150
|
+
accessibilityLabel: accessibilityLabel ?? label ?? placeholder ?? 'Dropdown',
|
|
151
|
+
accessibilityState: {
|
|
152
|
+
expanded: isOpen
|
|
153
|
+
},
|
|
154
|
+
children: /*#__PURE__*/_jsx(FluentGlass, {
|
|
155
|
+
style: [styles.trigger, {
|
|
156
|
+
backgroundColor: COLORS.inputBg
|
|
157
|
+
}],
|
|
158
|
+
intensity: 10,
|
|
159
|
+
tint: "dark",
|
|
160
|
+
borderRadius: 12,
|
|
161
|
+
borderOpacity: 0.25,
|
|
162
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
163
|
+
style: styles.triggerContent,
|
|
164
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
165
|
+
style: [styles.triggerText, {
|
|
166
|
+
color: COLORS.textPrimary,
|
|
167
|
+
fontFamily: theme.typography.medium
|
|
168
|
+
}, !selectedLabel && {
|
|
169
|
+
color: COLORS.textSecondary
|
|
170
|
+
}],
|
|
171
|
+
children: selectedLabel || placeholder
|
|
172
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
173
|
+
style: [styles.chevron, {
|
|
174
|
+
color: COLORS.textSecondary
|
|
175
|
+
}],
|
|
176
|
+
children: isOpen ? openDirection === 'down' ? '▴' : '▾' : '▾'
|
|
177
|
+
})]
|
|
178
|
+
})
|
|
179
|
+
})
|
|
180
|
+
}), isOpen ? /*#__PURE__*/_jsx(Modal, {
|
|
181
|
+
visible: true,
|
|
182
|
+
transparent: true,
|
|
183
|
+
animationType: "none",
|
|
184
|
+
onRequestClose: handleClose,
|
|
185
|
+
children: /*#__PURE__*/_jsx(Pressable, {
|
|
186
|
+
style: styles.backdrop,
|
|
187
|
+
onPress: handleClose,
|
|
188
|
+
children: /*#__PURE__*/_jsx(Animated.View, {
|
|
189
|
+
style: [dropdownPositionStyle, panelAnimStyle],
|
|
190
|
+
children: /*#__PURE__*/_jsx(Pressable, {
|
|
191
|
+
onPress: e => e.stopPropagation(),
|
|
192
|
+
children: /*#__PURE__*/_jsx(FluentGlass, {
|
|
193
|
+
style: styles.dropdownGlass,
|
|
194
|
+
intensity: 25,
|
|
195
|
+
tint: "dark",
|
|
196
|
+
borderRadius: 16,
|
|
197
|
+
borderOpacity: 0.25,
|
|
198
|
+
children: /*#__PURE__*/_jsx(ScrollView, {
|
|
199
|
+
style: styles.scrollInner,
|
|
200
|
+
bounces: false,
|
|
201
|
+
showsVerticalScrollIndicator: false,
|
|
202
|
+
children: isGrouped ? renderGrouped(sections, value, handleSelect, COLORS, theme.typography) : renderFlat(options, value, handleSelect, COLORS, theme.typography)
|
|
203
|
+
})
|
|
204
|
+
})
|
|
205
|
+
})
|
|
206
|
+
})
|
|
207
|
+
})
|
|
208
|
+
}) : null]
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
/* ─── Render helpers ─── */
|
|
213
|
+
|
|
214
|
+
function renderFlat(options, selectedValue, onSelect, COLORS, typography) {
|
|
215
|
+
if (!options) return null;
|
|
216
|
+
return options.map((item, i) => /*#__PURE__*/_jsx(Pressable, {
|
|
217
|
+
style: [styles.option, i < options.length - 1 && [styles.optionBorder, {
|
|
218
|
+
borderBottomColor: COLORS.borderSubtle
|
|
219
|
+
}]],
|
|
220
|
+
onPress: () => onSelect(item.value),
|
|
221
|
+
accessibilityLabel: item.label,
|
|
222
|
+
accessibilityState: {
|
|
223
|
+
selected: item.value === selectedValue
|
|
224
|
+
},
|
|
225
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
226
|
+
style: [styles.optionText, {
|
|
227
|
+
color: COLORS.textPrimary,
|
|
228
|
+
fontFamily: typography.medium
|
|
229
|
+
}, item.value === selectedValue && {
|
|
230
|
+
color: COLORS.accent,
|
|
231
|
+
fontWeight: '600',
|
|
232
|
+
fontFamily: typography.semiBold
|
|
233
|
+
}],
|
|
234
|
+
children: item.label
|
|
235
|
+
})
|
|
236
|
+
}, String(item.value)));
|
|
237
|
+
}
|
|
238
|
+
function renderGrouped(sections, selectedValue, onSelect, COLORS, typography) {
|
|
239
|
+
return sections.map((section, sectionIdx) => /*#__PURE__*/_jsxs(View, {
|
|
240
|
+
children: [sectionIdx > 0 ? /*#__PURE__*/_jsx(View, {
|
|
241
|
+
style: [styles.sectionSeparator, {
|
|
242
|
+
backgroundColor: COLORS.border
|
|
243
|
+
}]
|
|
244
|
+
}) : null, /*#__PURE__*/_jsx(View, {
|
|
245
|
+
style: styles.sectionHeader,
|
|
246
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
247
|
+
style: [styles.sectionTitle, {
|
|
248
|
+
color: COLORS.textPrimary,
|
|
249
|
+
fontFamily: typography.bold
|
|
250
|
+
}],
|
|
251
|
+
children: section.title
|
|
252
|
+
})
|
|
253
|
+
}), section.data.map(item => /*#__PURE__*/_jsx(Pressable, {
|
|
254
|
+
style: styles.option,
|
|
255
|
+
onPress: () => onSelect(item.value),
|
|
256
|
+
accessibilityLabel: item.label,
|
|
257
|
+
accessibilityState: {
|
|
258
|
+
selected: item.value === selectedValue
|
|
259
|
+
},
|
|
260
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
261
|
+
style: [styles.optionText, styles.optionTextIndented, {
|
|
262
|
+
color: COLORS.textPrimary,
|
|
263
|
+
fontFamily: typography.medium
|
|
264
|
+
}, item.value === selectedValue && {
|
|
265
|
+
color: COLORS.accent,
|
|
266
|
+
fontWeight: '600',
|
|
267
|
+
fontFamily: typography.semiBold
|
|
268
|
+
}],
|
|
269
|
+
children: item.label
|
|
270
|
+
})
|
|
271
|
+
}, String(item.value)))]
|
|
272
|
+
}, section.title));
|
|
273
|
+
}
|
|
274
|
+
const styles = StyleSheet.create({
|
|
275
|
+
wrapper: {
|
|
276
|
+
width: '100%',
|
|
277
|
+
zIndex: 10
|
|
278
|
+
},
|
|
279
|
+
label: {
|
|
280
|
+
marginBottom: 8,
|
|
281
|
+
fontSize: 14,
|
|
282
|
+
marginLeft: 4,
|
|
283
|
+
fontWeight: '500'
|
|
284
|
+
},
|
|
285
|
+
trigger: {
|
|
286
|
+
height: 48
|
|
287
|
+
},
|
|
288
|
+
triggerContent: {
|
|
289
|
+
flex: 1,
|
|
290
|
+
flexDirection: 'row',
|
|
291
|
+
alignItems: 'center',
|
|
292
|
+
justifyContent: 'space-between',
|
|
293
|
+
paddingHorizontal: 16
|
|
294
|
+
},
|
|
295
|
+
triggerText: {
|
|
296
|
+
fontSize: 15,
|
|
297
|
+
fontWeight: '500',
|
|
298
|
+
flex: 1
|
|
299
|
+
},
|
|
300
|
+
chevron: {
|
|
301
|
+
fontSize: 12,
|
|
302
|
+
marginLeft: 8
|
|
303
|
+
},
|
|
304
|
+
backdrop: {
|
|
305
|
+
flex: 1
|
|
306
|
+
},
|
|
307
|
+
dropdownGlass: {
|
|
308
|
+
overflow: 'hidden'
|
|
309
|
+
},
|
|
310
|
+
scrollInner: {
|
|
311
|
+
maxHeight: MAX_DROPDOWN_HEIGHT - 2
|
|
312
|
+
},
|
|
313
|
+
option: {
|
|
314
|
+
paddingVertical: 12,
|
|
315
|
+
paddingHorizontal: 16
|
|
316
|
+
},
|
|
317
|
+
optionBorder: {
|
|
318
|
+
borderBottomWidth: StyleSheet.hairlineWidth
|
|
319
|
+
},
|
|
320
|
+
optionText: {
|
|
321
|
+
fontSize: 15,
|
|
322
|
+
fontWeight: '500'
|
|
323
|
+
},
|
|
324
|
+
optionTextIndented: {
|
|
325
|
+
paddingLeft: 12
|
|
326
|
+
},
|
|
327
|
+
sectionSeparator: {
|
|
328
|
+
height: 1,
|
|
329
|
+
marginHorizontal: 12
|
|
330
|
+
},
|
|
331
|
+
sectionHeader: {
|
|
332
|
+
paddingHorizontal: 16,
|
|
333
|
+
paddingTop: 12,
|
|
334
|
+
paddingBottom: 6
|
|
335
|
+
},
|
|
336
|
+
sectionTitle: {
|
|
337
|
+
fontSize: 14,
|
|
338
|
+
fontWeight: '700',
|
|
339
|
+
textTransform: 'uppercase',
|
|
340
|
+
letterSpacing: 0.5
|
|
341
|
+
}
|
|
342
|
+
});
|
|
343
|
+
//# sourceMappingURL=FluentGlassDropdown.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useState","useRef","useCallback","useEffect","StyleSheet","Text","View","Pressable","Dimensions","ScrollView","Modal","Animated","useSharedValue","useAnimatedStyle","withTiming","withSpring","Easing","FluentGlass","useTheme","jsx","_jsx","jsxs","_jsxs","SCREEN_HEIGHT","get","height","MAX_DROPDOWN_HEIGHT","SPRING_CONFIG","damping","stiffness","mass","TIMING_CONFIG","duration","easing","out","cubic","FluentGlassDropdown","value","onValueChange","options","sections","placeholder","label","style","accessibilityLabel","theme","COLORS","colors","isOpen","setIsOpen","triggerLayout","setTriggerLayout","openDirection","setOpenDirection","triggerRef","opacity","scale","isGrouped","Boolean","panelAnimStyle","transform","findSelectedLabel","section","found","data","find","item","selectedLabel","handleOpen","current","measureInWindow","x","y","width","spaceBelow","spaceAbove","direction","handleSelect","itemValue","setTimeout","handleClose","dropdownPositionStyle","position","left","maxHeight","top","styles","wrapper","children","color","textSecondary","fontFamily","typography","medium","ref","onPress","accessibilityRole","accessibilityState","expanded","trigger","backgroundColor","inputBg","intensity","tint","borderRadius","borderOpacity","triggerContent","triggerText","textPrimary","chevron","visible","transparent","animationType","onRequestClose","backdrop","e","stopPropagation","dropdownGlass","scrollInner","bounces","showsVerticalScrollIndicator","renderGrouped","renderFlat","selectedValue","onSelect","map","i","option","length","optionBorder","borderBottomColor","borderSubtle","selected","optionText","accent","fontWeight","semiBold","String","sectionIdx","sectionSeparator","border","sectionHeader","sectionTitle","bold","title","optionTextIndented","create","zIndex","marginBottom","fontSize","marginLeft","flex","flexDirection","alignItems","justifyContent","paddingHorizontal","overflow","paddingVertical","borderBottomWidth","hairlineWidth","paddingLeft","marginHorizontal","paddingTop","paddingBottom","textTransform","letterSpacing"],"sourceRoot":"..\\..\\..\\src","sources":["components/FluentGlassDropdown.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,QAAQ,EAAEC,MAAM,EAAEC,WAAW,EAAEC,SAAS,QAAQ,OAAO;AACvE,SACIC,UAAU,EACVC,IAAI,EACJC,IAAI,EACJC,SAAS,EACTC,UAAU,EACVC,UAAU,EACVC,KAAK,QAGF,cAAc;AACrB,OAAOC,QAAQ,IACXC,cAAc,EACdC,gBAAgB,EAChBC,UAAU,EACVC,UAAU,EACVC,MAAM,QACH,yBAAyB;AAChC,OAAOC,WAAW,MAAM,eAAe;AACvC,OAAOC,QAAQ,MAAM,mBAAmB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAGzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMC,aAAa,GAAGf,UAAU,CAACgB,GAAG,CAAC,QAAQ,CAAC,CAACC,MAAM;AACrD,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AAe;IAC/BC,iBAAiB,EAAE;EACvB,CAAC;EACDhD,WAAW,EAAE;IACT0C,QAAQ,EAAE,EAAE;IACZd,UAAU,EAAE,KAAK;IACjBgB,IAAI,EAAE;EACV,CAAC;EACD1C,OAAO,EAAE;IACLwC,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE;EAChB,CAAC;EACDpC,QAAQ,EAAE;IACNqC,IAAI,EAAE;EACV,CAAC;EACDlC,aAAa,EAAE;IACXuC,QAAQ,EAAE;EACd,CAAC;EACDtC,WAAW,EAAE;IACTlC,SAAS,EAAE1D,mBAAmB,GAAG;EACrC,CAAC;EACDqG,MAAM,EAAE;IACJ8B,eAAe,EAAE,EAAE;IACnBF,iBAAiB,EAAE;EACvB,CAAC;EACD1B,YAAY,EAAE;IACV6B,iBAAiB,EAAE1J,UAAU,CAAC2J;EAClC,CAAC;EACD1B,UAAU,EAAE;IACRgB,QAAQ,EAAE,EAAE;IACZd,UAAU,EAAE;EAChB,CAAC;EACDU,kBAAkB,EAAE;IAChBe,WAAW,EAAE;EACjB,CAAC;EACDrB,gBAAgB,EAAE;IACdlH,MAAM,EAAE,CAAC;IACTwI,gBAAgB,EAAE;EACtB,CAAC;EACDpB,aAAa,EAAE;IACXc,iBAAiB,EAAE,EAAE;IACrBO,UAAU,EAAE,EAAE;IACdC,aAAa,EAAE;EACnB,CAAC;EACDrB,YAAY,EAAE;IACVO,QAAQ,EAAE,EAAE;IACZd,UAAU,EAAE,KAAK;IACjB6B,aAAa,EAAE,WAAW;IAC1BC,aAAa,EAAE;EACnB;AACJ,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import FluentGlassTextInput from './FluentGlassTextInput';
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
/**
|
|
7
|
+
* FluentGlassEmailInput (Molécula)
|
|
8
|
+
* Input configurado específicamente para correos electrónicos.
|
|
9
|
+
*/
|
|
10
|
+
export default function FluentGlassEmailInput({
|
|
11
|
+
value,
|
|
12
|
+
onChangeText,
|
|
13
|
+
placeholder = 'Enter your email',
|
|
14
|
+
style,
|
|
15
|
+
size,
|
|
16
|
+
colorScheme,
|
|
17
|
+
blur,
|
|
18
|
+
radius,
|
|
19
|
+
accessibilityLabel,
|
|
20
|
+
...props
|
|
21
|
+
}) {
|
|
22
|
+
return /*#__PURE__*/_jsx(FluentGlassTextInput, {
|
|
23
|
+
value: value,
|
|
24
|
+
onChangeText: onChangeText,
|
|
25
|
+
placeholder: placeholder,
|
|
26
|
+
keyboardType: "email-address",
|
|
27
|
+
autoCapitalize: "none",
|
|
28
|
+
autoComplete: "email",
|
|
29
|
+
size: size,
|
|
30
|
+
colorScheme: colorScheme,
|
|
31
|
+
blur: blur,
|
|
32
|
+
radius: radius,
|
|
33
|
+
style: style,
|
|
34
|
+
accessibilityLabel: accessibilityLabel ?? 'Email address',
|
|
35
|
+
...props
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=FluentGlassEmailInput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","FluentGlassTextInput","jsx","_jsx","FluentGlassEmailInput","value","onChangeText","placeholder","style","size","colorScheme","blur","radius","accessibilityLabel","props","keyboardType","autoCapitalize","autoComplete"],"sourceRoot":"..\\..\\..\\src","sources":["components/FluentGlassEmailInput.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,OAAOC,oBAAoB,MAAM,wBAAwB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAY1D;AACA;AACA;AACA;AACA,eAAe,SAASC,qBAAqBA,CAAC;EAAEC,KAAK;EACjDC,YAAY;EACZC,WAAW,GAAG,kBAAkB;EAChCC,KAAK;EACLC,IAAI;EACJC,WAAW;EACXC,IAAI;EACJC,MAAM;EACNC,kBAAkB;EAClB,GAAGC;AAAkC,CAAC,EAAE;EACxC,oBACIX,IAAA,CAACF,oBAAoB;IACjBI,KAAK,EAAEA,KAAM;IACbC,YAAY,EAAEA,YAAa;IAC3BC,WAAW,EAAEA,WAAY;IACzBQ,YAAY,EAAC,eAAe;IAC5BC,cAAc,EAAC,MAAM;IACrBC,YAAY,EAAC,OAAO;IACpBR,IAAI,EAAEA,IAAK;IACXC,WAAW,EAAEA,WAAY;IACzBC,IAAI,EAAEA,IAAK;IACXC,MAAM,EAAEA,MAAO;IACfJ,KAAK,EAAEA,KAAM;IACbK,kBAAkB,EAAEA,kBAAkB,IAAI,eAAgB;IAAA,GACtDC;EAAK,CACZ,CAAC;AAEV","ignoreList":[]}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { StyleSheet, TextInput, View, Text } from 'react-native';
|
|
5
|
+
import FluentGlass from './FluentGlass';
|
|
6
|
+
import useTheme from '../theme/useTheme';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* FluentGlassInput (Component)
|
|
10
|
+
* Text input with "carved" glass effect.
|
|
11
|
+
*/
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
export default function FluentGlassInput({
|
|
14
|
+
value,
|
|
15
|
+
onChangeText,
|
|
16
|
+
placeholder,
|
|
17
|
+
label,
|
|
18
|
+
style,
|
|
19
|
+
keyboardType,
|
|
20
|
+
secureTextEntry,
|
|
21
|
+
accessibilityLabel,
|
|
22
|
+
accessibilityHint
|
|
23
|
+
}) {
|
|
24
|
+
const theme = useTheme();
|
|
25
|
+
const COLORS = theme.colors;
|
|
26
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
27
|
+
style: [styles.wrapper, style],
|
|
28
|
+
children: [label && /*#__PURE__*/_jsx(Text, {
|
|
29
|
+
style: [styles.label, {
|
|
30
|
+
color: COLORS.textSecondary,
|
|
31
|
+
fontFamily: theme.typography.medium
|
|
32
|
+
}],
|
|
33
|
+
children: label
|
|
34
|
+
}), /*#__PURE__*/_jsx(FluentGlass, {
|
|
35
|
+
style: [styles.container, {
|
|
36
|
+
backgroundColor: COLORS.inputBg
|
|
37
|
+
}],
|
|
38
|
+
intensity: 10,
|
|
39
|
+
borderRadius: 12,
|
|
40
|
+
borderOpacity: 0.1,
|
|
41
|
+
children: /*#__PURE__*/_jsx(TextInput, {
|
|
42
|
+
style: [styles.input, {
|
|
43
|
+
color: COLORS.textPrimary
|
|
44
|
+
}],
|
|
45
|
+
value: value,
|
|
46
|
+
onChangeText: onChangeText,
|
|
47
|
+
placeholder: placeholder,
|
|
48
|
+
placeholderTextColor: COLORS.textSecondary,
|
|
49
|
+
keyboardType: keyboardType,
|
|
50
|
+
secureTextEntry: secureTextEntry,
|
|
51
|
+
accessibilityLabel: accessibilityLabel ?? label ?? placeholder,
|
|
52
|
+
accessibilityHint: accessibilityHint
|
|
53
|
+
})
|
|
54
|
+
})]
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
const styles = StyleSheet.create({
|
|
58
|
+
wrapper: {
|
|
59
|
+
marginBottom: 16,
|
|
60
|
+
width: '100%'
|
|
61
|
+
},
|
|
62
|
+
label: {
|
|
63
|
+
marginBottom: 8,
|
|
64
|
+
fontSize: 14,
|
|
65
|
+
marginLeft: 4,
|
|
66
|
+
fontWeight: '500'
|
|
67
|
+
},
|
|
68
|
+
container: {
|
|
69
|
+
height: undefined,
|
|
70
|
+
minHeight: 50
|
|
71
|
+
},
|
|
72
|
+
input: {
|
|
73
|
+
flex: 1,
|
|
74
|
+
paddingHorizontal: 16,
|
|
75
|
+
fontSize: 16
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
//# sourceMappingURL=FluentGlassInput.js.map
|