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,163 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.FluentGlassTable = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _useTheme = _interopRequireDefault(require("../theme/useTheme"));
|
|
10
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
+
/**
|
|
13
|
+
* FluentGlassTable (Namespace)
|
|
14
|
+
* Simple flex-based table layout.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
function Root({
|
|
18
|
+
children,
|
|
19
|
+
style
|
|
20
|
+
}) {
|
|
21
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
22
|
+
accessible: true,
|
|
23
|
+
accessibilityLabel: "Data table",
|
|
24
|
+
style: [styles.root, style],
|
|
25
|
+
children: children
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
function Row({
|
|
29
|
+
children,
|
|
30
|
+
style,
|
|
31
|
+
isHeader = false
|
|
32
|
+
}) {
|
|
33
|
+
const {
|
|
34
|
+
colors
|
|
35
|
+
} = (0, _useTheme.default)();
|
|
36
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
37
|
+
style: [styles.row, {
|
|
38
|
+
borderBottomColor: `${colors.textSecondary}1A`
|
|
39
|
+
}, isHeader && {
|
|
40
|
+
borderBottomColor: `${colors.textSecondary}4D`,
|
|
41
|
+
marginBottom: 4
|
|
42
|
+
}, style],
|
|
43
|
+
children: children
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
const alignMap = {
|
|
47
|
+
left: 'flex-start',
|
|
48
|
+
center: 'center',
|
|
49
|
+
right: 'flex-end'
|
|
50
|
+
};
|
|
51
|
+
function Cell({
|
|
52
|
+
children,
|
|
53
|
+
style,
|
|
54
|
+
flex = 1,
|
|
55
|
+
align = 'left'
|
|
56
|
+
}) {
|
|
57
|
+
const {
|
|
58
|
+
colors
|
|
59
|
+
} = (0, _useTheme.default)();
|
|
60
|
+
const isText = typeof children === 'string' || typeof children === 'number';
|
|
61
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
62
|
+
style: [styles.cell, {
|
|
63
|
+
flex,
|
|
64
|
+
alignItems: alignMap[align]
|
|
65
|
+
}, style],
|
|
66
|
+
children: isText ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
67
|
+
style: [styles.cellText, {
|
|
68
|
+
color: colors.textPrimary
|
|
69
|
+
}],
|
|
70
|
+
children: children
|
|
71
|
+
}) : children
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
function HeaderCell({
|
|
75
|
+
children,
|
|
76
|
+
style,
|
|
77
|
+
flex = 1,
|
|
78
|
+
align = 'left'
|
|
79
|
+
}) {
|
|
80
|
+
const {
|
|
81
|
+
colors,
|
|
82
|
+
typography
|
|
83
|
+
} = (0, _useTheme.default)();
|
|
84
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
85
|
+
style: [styles.cell, {
|
|
86
|
+
flex,
|
|
87
|
+
alignItems: alignMap[align]
|
|
88
|
+
}, style],
|
|
89
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
90
|
+
style: [styles.headerText, {
|
|
91
|
+
color: colors.textSecondary,
|
|
92
|
+
fontFamily: typography.semiBold
|
|
93
|
+
}],
|
|
94
|
+
children: children
|
|
95
|
+
})
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
function EditableCell({
|
|
99
|
+
value,
|
|
100
|
+
onChangeText,
|
|
101
|
+
style,
|
|
102
|
+
flex = 1,
|
|
103
|
+
align = 'left',
|
|
104
|
+
textStyle,
|
|
105
|
+
...props
|
|
106
|
+
}) {
|
|
107
|
+
const {
|
|
108
|
+
colors
|
|
109
|
+
} = (0, _useTheme.default)();
|
|
110
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
111
|
+
style: [styles.cell, {
|
|
112
|
+
flex,
|
|
113
|
+
alignItems: alignMap[align]
|
|
114
|
+
}, style],
|
|
115
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TextInput, {
|
|
116
|
+
value: value,
|
|
117
|
+
onChangeText: onChangeText,
|
|
118
|
+
style: [styles.cellText, styles.input, {
|
|
119
|
+
color: colors.textPrimary
|
|
120
|
+
}, textStyle, {
|
|
121
|
+
textAlign: align
|
|
122
|
+
}],
|
|
123
|
+
placeholderTextColor: colors.textSecondary,
|
|
124
|
+
...props
|
|
125
|
+
})
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
const styles = _reactNative.StyleSheet.create({
|
|
129
|
+
root: {
|
|
130
|
+
width: '100%'
|
|
131
|
+
},
|
|
132
|
+
row: {
|
|
133
|
+
flexDirection: 'row',
|
|
134
|
+
paddingVertical: 12,
|
|
135
|
+
borderBottomWidth: 1,
|
|
136
|
+
alignItems: 'center'
|
|
137
|
+
},
|
|
138
|
+
cell: {
|
|
139
|
+
paddingHorizontal: 4
|
|
140
|
+
},
|
|
141
|
+
cellText: {
|
|
142
|
+
fontSize: 14
|
|
143
|
+
},
|
|
144
|
+
headerText: {
|
|
145
|
+
fontSize: 12,
|
|
146
|
+
fontWeight: '600',
|
|
147
|
+
textTransform: 'uppercase',
|
|
148
|
+
letterSpacing: 0.5
|
|
149
|
+
},
|
|
150
|
+
input: {
|
|
151
|
+
padding: 0,
|
|
152
|
+
// Remove default Android padding
|
|
153
|
+
width: '100%'
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
const FluentGlassTable = exports.FluentGlassTable = {
|
|
157
|
+
Root,
|
|
158
|
+
Row,
|
|
159
|
+
Cell,
|
|
160
|
+
EditableCell,
|
|
161
|
+
Header: HeaderCell
|
|
162
|
+
};
|
|
163
|
+
//# sourceMappingURL=FluentGlassTable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_useTheme","_jsxRuntime","e","__esModule","default","Root","children","style","jsx","View","accessible","accessibilityLabel","styles","root","Row","isHeader","colors","useTheme","row","borderBottomColor","textSecondary","marginBottom","alignMap","left","center","right","Cell","flex","align","isText","cell","alignItems","Text","cellText","color","textPrimary","HeaderCell","typography","headerText","fontFamily","semiBold","EditableCell","value","onChangeText","textStyle","props","TextInput","input","textAlign","placeholderTextColor","StyleSheet","create","width","flexDirection","paddingVertical","borderBottomWidth","paddingHorizontal","fontSize","fontWeight","textTransform","letterSpacing","padding","FluentGlassTable","exports","Header"],"sourceRoot":"..\\..\\..\\src","sources":["components/FluentGlassTable.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAH,sBAAA,CAAAC,OAAA;AAAyC,IAAAG,WAAA,GAAAH,OAAA;AAAA,SAAAD,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEzC;AACA;AACA;AACA;;AAsCA,SAASG,IAAIA,CAAC;EAAEC,QAAQ;EAAEC;AAAiC,CAAC,EAAE;EAC1D,oBAAO,IAAAN,WAAA,CAAAO,GAAA,EAACT,YAAA,CAAAU,IAAI;IAACC,UAAU,EAAE,IAAK;IAACC,kBAAkB,EAAC,YAAY;IAACJ,KAAK,EAAE,CAACK,MAAM,CAACC,IAAI,EAAEN,KAAK,CAAE;IAAAD,QAAA,EAAEA;EAAQ,CAAO,CAAC;AACjH;AAEA,SAASQ,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AAA,CAAAO,GAAA,EAACT,YAAA,CAAA+C,SAAS;MACNJ,KAAK,EAAEA,KAAM;MACbC,YAAY,EAAEA,YAAa;MAC3BpC,KAAK,EAAE,CAACK,MAAM,CAACqB,QAAQ,EAAErB,MAAM,CAACmC,KAAK,EAAE;QAAEb,KAAK,EAAElB,MAAM,CAACmB;MAAY,CAAC,EAAES,SAAS,EAAE;QAAEI,SAAS,EAAEpB;MAAM,CAAC,CAAE;MACvGqB,oBAAoB,EAAEjC,MAAM,CAACI,aAAc;MAAA,GACvCyB;IAAK,CACZ;EAAC,CACA,CAAC;AAEf;AAEA,MAAMjC,MAAM,GAAGsC,uBAAU,CAACC,MAAM,CAAC;EAC7BtC,IAAI,EAAE;IACFuC,KAAK,EAAE;EACX,CAAC;EACDlC,GAAG,EAAE;IACDmC,aAAa,EAAE,KAAK;IACpBC,eAAe,EAAE,EAAE;IACnBC,iBAAiB,EAAE,CAAC;IACpBxB,UAAU,EAAE;EAChB,CAAC;EACDD,IAAI,EAAE;IACF0B,iBAAiB,EAAE;EACvB,CAAC;EACDvB,QAAQ,EAAE;IACNwB,QAAQ,EAAE;EACd,CAAC;EACDnB,UAAU,EAAE;IACRmB,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,KAAK;IACjBC,aAAa,EAAE,WAAW;IAC1BC,aAAa,EAAE;EACnB,CAAC;EACDb,KAAK,EAAE;IACHc,OAAO,EAAE,CAAC;IAAE;IACZT,KAAK,EAAE;EACX;AACJ,CAAC,CAAC;AAEK,MAAMU,gBAAgB,GAAAC,OAAA,CAAAD,gBAAA,GAAG;EAC5BzD,IAAI;EACJS,GAAG;EACHY,IAAI;EACJe,YAAY;EACZuB,MAAM,EAAE5B;AACZ,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = FluentGlassTag;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _FluentGlass = _interopRequireDefault(require("./FluentGlass"));
|
|
10
|
+
var _useTheme = _interopRequireDefault(require("../theme/useTheme"));
|
|
11
|
+
var _resolvers = require("../theme/resolvers");
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
+
// removed static colors import
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* FluentGlassTag (Atom)
|
|
18
|
+
* Glassmorphism tag pill — dynamic glass for labels (tech stack, categories).
|
|
19
|
+
* Optionally removable via onRemove callback.
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
function FluentGlassTag({
|
|
23
|
+
label,
|
|
24
|
+
onRemove,
|
|
25
|
+
style,
|
|
26
|
+
textStyle,
|
|
27
|
+
color,
|
|
28
|
+
// Custom dot color override (optional)
|
|
29
|
+
colorScheme = 'info' // Default to bluish tint
|
|
30
|
+
}) {
|
|
31
|
+
const theme = (0, _useTheme.default)();
|
|
32
|
+
const {
|
|
33
|
+
colors,
|
|
34
|
+
typography
|
|
35
|
+
} = theme;
|
|
36
|
+
const colorConfig = (0, _resolvers.resolveColorScheme)(theme, colorScheme);
|
|
37
|
+
const dotColor = color || colorConfig.solid;
|
|
38
|
+
const textColor = colorConfig.text || colors.textPrimary;
|
|
39
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_FluentGlass.default, {
|
|
40
|
+
accessible: true,
|
|
41
|
+
accessibilityLabel: String(label),
|
|
42
|
+
style: [styles.container, style],
|
|
43
|
+
colorScheme: colorScheme,
|
|
44
|
+
intensity: 20,
|
|
45
|
+
tint: "dark",
|
|
46
|
+
borderRadius: 20,
|
|
47
|
+
borderOpacity: 0.3,
|
|
48
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
49
|
+
style: styles.content,
|
|
50
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
51
|
+
style: [styles.dot, {
|
|
52
|
+
backgroundColor: dotColor
|
|
53
|
+
}]
|
|
54
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
55
|
+
style: [styles.text, {
|
|
56
|
+
fontFamily: typography.medium,
|
|
57
|
+
color: textColor
|
|
58
|
+
}, textStyle],
|
|
59
|
+
children: label
|
|
60
|
+
}), onRemove ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
|
|
61
|
+
onPress: onRemove,
|
|
62
|
+
hitSlop: 8,
|
|
63
|
+
style: styles.removeBtn,
|
|
64
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
65
|
+
style: [styles.removeText, {
|
|
66
|
+
fontFamily: typography.bold,
|
|
67
|
+
color: `${textColor}99`
|
|
68
|
+
}],
|
|
69
|
+
children: "\u2715"
|
|
70
|
+
})
|
|
71
|
+
}) : null]
|
|
72
|
+
})
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
const styles = _reactNative.StyleSheet.create({
|
|
76
|
+
container: {
|
|
77
|
+
height: 32,
|
|
78
|
+
alignSelf: 'flex-start'
|
|
79
|
+
},
|
|
80
|
+
content: {
|
|
81
|
+
flex: 1,
|
|
82
|
+
flexDirection: 'row',
|
|
83
|
+
alignItems: 'center',
|
|
84
|
+
justifyContent: 'center',
|
|
85
|
+
paddingHorizontal: 14
|
|
86
|
+
},
|
|
87
|
+
dot: {
|
|
88
|
+
width: 6,
|
|
89
|
+
height: 6,
|
|
90
|
+
borderRadius: 3,
|
|
91
|
+
marginRight: 8
|
|
92
|
+
},
|
|
93
|
+
text: {
|
|
94
|
+
fontSize: 13,
|
|
95
|
+
fontWeight: '500'
|
|
96
|
+
},
|
|
97
|
+
removeBtn: {
|
|
98
|
+
marginLeft: 8,
|
|
99
|
+
width: 16,
|
|
100
|
+
height: 16,
|
|
101
|
+
alignItems: 'center',
|
|
102
|
+
justifyContent: 'center'
|
|
103
|
+
},
|
|
104
|
+
removeText: {
|
|
105
|
+
fontSize: 11,
|
|
106
|
+
fontWeight: '700'
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
//# sourceMappingURL=FluentGlassTag.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_FluentGlass","_useTheme","_resolvers","_jsxRuntime","e","__esModule","default","FluentGlassTag","label","onRemove","style","textStyle","color","colorScheme","theme","useTheme","colors","typography","colorConfig","resolveColorScheme","dotColor","solid","textColor","text","textPrimary","jsx","accessible","accessibilityLabel","String","styles","container","intensity","tint","borderRadius","borderOpacity","children","jsxs","View","content","dot","backgroundColor","Text","fontFamily","medium","Pressable","onPress","hitSlop","removeBtn","removeText","bold","StyleSheet","create","height","alignSelf","flex","flexDirection","alignItems","justifyContent","paddingHorizontal","width","marginRight","fontSize","fontWeight","marginLeft"],"sourceRoot":"..\\..\\..\\src","sources":["components/FluentGlassTag.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,SAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AAAwD,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAJxD;;AAMA;AACA;AACA;AACA;AACA;;AAYe,SAASG,cAAcA,CAAC;EACnCC,KAAK;EACLC,QAAQ;EACRC,KAAK;EACLC,SAAS;EACTC,KAAK;EAAE;EACPC,WAAW,GAAG,MAAM,CAAE;AACL,CAAC,EAAE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strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = FluentGlassTextInput;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _FluentGlass = _interopRequireDefault(require("./FluentGlass"));
|
|
10
|
+
var _useTheme = _interopRequireDefault(require("../theme/useTheme"));
|
|
11
|
+
var _resolvers = require("../theme/resolvers");
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
+
/**
|
|
15
|
+
* FluentGlassTextInput (Átomo)
|
|
16
|
+
* Componente básico de input de texto con estilo glassmorphism.
|
|
17
|
+
*/
|
|
18
|
+
function FluentGlassTextInput({
|
|
19
|
+
value,
|
|
20
|
+
onChangeText,
|
|
21
|
+
placeholder,
|
|
22
|
+
keyboardType = 'default',
|
|
23
|
+
autoCapitalize = 'sentences',
|
|
24
|
+
autoComplete,
|
|
25
|
+
secureTextEntry = false,
|
|
26
|
+
style,
|
|
27
|
+
inputStyle,
|
|
28
|
+
children,
|
|
29
|
+
size,
|
|
30
|
+
colorScheme,
|
|
31
|
+
blur,
|
|
32
|
+
radius,
|
|
33
|
+
accessibilityLabel,
|
|
34
|
+
accessibilityHint
|
|
35
|
+
}) {
|
|
36
|
+
const theme = (0, _useTheme.default)();
|
|
37
|
+
const sizeConfig = (0, _resolvers.resolveSize)(theme, size || theme.defaults.size);
|
|
38
|
+
const compat = (0, _resolvers.resolveBackwardCompat)({
|
|
39
|
+
colorScheme,
|
|
40
|
+
blur
|
|
41
|
+
});
|
|
42
|
+
const resolvedScheme = compat.colorScheme || theme.defaults.colorScheme;
|
|
43
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_FluentGlass.default, {
|
|
44
|
+
style: [styles.container, {
|
|
45
|
+
minHeight: sizeConfig.minHeight
|
|
46
|
+
}, style],
|
|
47
|
+
colorScheme: resolvedScheme,
|
|
48
|
+
blur: compat.blur || 'subtle',
|
|
49
|
+
radius: radius,
|
|
50
|
+
borderOpacity: 0.15,
|
|
51
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
52
|
+
style: styles.innerContainer,
|
|
53
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TextInput, {
|
|
54
|
+
style: [styles.input, {
|
|
55
|
+
paddingHorizontal: sizeConfig.paddingHorizontal,
|
|
56
|
+
color: theme.colors.textPrimary,
|
|
57
|
+
fontSize: sizeConfig.fontSize,
|
|
58
|
+
fontFamily: theme.typography.regular
|
|
59
|
+
}, inputStyle, {
|
|
60
|
+
outlineStyle: 'none'
|
|
61
|
+
}],
|
|
62
|
+
value: value,
|
|
63
|
+
onChangeText: onChangeText,
|
|
64
|
+
placeholder: placeholder,
|
|
65
|
+
placeholderTextColor: theme.colors.textSecondary,
|
|
66
|
+
keyboardType: keyboardType,
|
|
67
|
+
autoCapitalize: autoCapitalize,
|
|
68
|
+
autoComplete: autoComplete,
|
|
69
|
+
secureTextEntry: secureTextEntry,
|
|
70
|
+
accessibilityLabel: accessibilityLabel ?? placeholder,
|
|
71
|
+
accessibilityHint: accessibilityHint
|
|
72
|
+
}), children]
|
|
73
|
+
})
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
const styles = _reactNative.StyleSheet.create({
|
|
77
|
+
container: {
|
|
78
|
+
// minHeight set inline by sizeConfig
|
|
79
|
+
},
|
|
80
|
+
innerContainer: {
|
|
81
|
+
flex: 1,
|
|
82
|
+
flexDirection: 'row',
|
|
83
|
+
alignItems: 'center'
|
|
84
|
+
},
|
|
85
|
+
input: {
|
|
86
|
+
flex: 1,
|
|
87
|
+
height: '100%'
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
//# sourceMappingURL=FluentGlassTextInput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_FluentGlass","_useTheme","_resolvers","_jsxRuntime","e","__esModule","default","FluentGlassTextInput","value","onChangeText","placeholder","keyboardType","autoCapitalize","autoComplete","secureTextEntry","style","inputStyle","children","size","colorScheme","blur","radius","accessibilityLabel","accessibilityHint","theme","useTheme","sizeConfig","resolveSize","defaults","compat","resolveBackwardCompat","resolvedScheme","jsx","styles","container","minHeight","borderOpacity","jsxs","View","innerContainer","TextInput","input","paddingHorizontal","color","colors","textPrimary","fontSize","fontFamily","typography","regular","outlineStyle","placeholderTextColor","textSecondary","StyleSheet","create","flex","flexDirection","alignItems","height"],"sourceRoot":"..\\..\\..\\src","sources":["components/FluentGlassTextInput.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,SAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AAAwE,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAgBxE;AACA;AACA;AACA;AACe,SAASG,oBAAoBA,CAAC;EAAEC,KAAK;EAChDC,YAAY;EACZC,WAAW;EACXC,YAAY,GAAG,SAAS;EACxBC,cAAc,GAAG,WAAW;EAC5BC,YAAY;EACZC,eAAe,GAAG,KAAK;EACvBC,KAAK;EACLC,UAAU;EACVC,QAAQ;EACRC,IAAI;EACJC,WAAW;EACXC,IAAI;EACJC,MAAM;EACNC,kBAAkB;EAClBC;AAA8C,CAAC,EAAE;EACjD,MAAMC,KAAK,GAAG,IAAAC,iBAAQ,EAAC,CAAC;EACxB,MAAMC,UAAU,GAAG,IAAAC,sBAAW,EAACH,KAAK,EA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