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,287 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = FluentGlassBarChart;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _reactNativeReanimated = _interopRequireWildcard(require("react-native-reanimated"));
|
|
10
|
+
var _FluentGlass = _interopRequireDefault(require("./FluentGlass"));
|
|
11
|
+
var _useTheme = _interopRequireDefault(require("../theme/useTheme"));
|
|
12
|
+
var _responsive = require("../utils/responsive");
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
16
|
+
/**
|
|
17
|
+
* FluentGlassBarChart (Component)
|
|
18
|
+
* Glassmorphism bar chart with animated glass bars.
|
|
19
|
+
*
|
|
20
|
+
* Props:
|
|
21
|
+
* data - Array of { label, value, color? }
|
|
22
|
+
* title - Optional chart title
|
|
23
|
+
* height - Chart area height (default 180)
|
|
24
|
+
* showGrid - Show horizontal grid lines (default true)
|
|
25
|
+
* showValues - Show value labels on bars (default true)
|
|
26
|
+
* style - Container style override
|
|
27
|
+
* style - Container style override
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
// ─── Animated Glass Bar ───
|
|
31
|
+
function Bar({
|
|
32
|
+
value,
|
|
33
|
+
maxValue,
|
|
34
|
+
color,
|
|
35
|
+
label,
|
|
36
|
+
index,
|
|
37
|
+
height,
|
|
38
|
+
showValue
|
|
39
|
+
}) {
|
|
40
|
+
const barHeight = (0, _reactNativeReanimated.useSharedValue)(0);
|
|
41
|
+
const targetHeight = maxValue > 0 ? value / maxValue * height : 0;
|
|
42
|
+
(0, _react.useEffect)(() => {
|
|
43
|
+
barHeight.value = (0, _reactNativeReanimated.withDelay)(index * 80, (0, _reactNativeReanimated.withSpring)(targetHeight, {
|
|
44
|
+
mass: 0.6,
|
|
45
|
+
damping: 14,
|
|
46
|
+
stiffness: 100
|
|
47
|
+
}));
|
|
48
|
+
}, [value, maxValue]);
|
|
49
|
+
const animatedBarStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => ({
|
|
50
|
+
height: barHeight.value
|
|
51
|
+
}));
|
|
52
|
+
|
|
53
|
+
// Create glass-like rgba from the color
|
|
54
|
+
const glassBase = hexToRgba(color, 0.35);
|
|
55
|
+
const glassBorder = hexToRgba(color, 0.5);
|
|
56
|
+
const glassHighlight = hexToRgba(color, 0.6);
|
|
57
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
58
|
+
style: styles.barColumn,
|
|
59
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
60
|
+
style: [styles.barTrack, {
|
|
61
|
+
height
|
|
62
|
+
}],
|
|
63
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeReanimated.default.View, {
|
|
64
|
+
style: [styles.bar, {
|
|
65
|
+
backgroundColor: glassBase,
|
|
66
|
+
borderColor: glassBorder
|
|
67
|
+
}, animatedBarStyle],
|
|
68
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
69
|
+
style: [styles.barHighlight, {
|
|
70
|
+
backgroundColor: glassHighlight
|
|
71
|
+
}]
|
|
72
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
73
|
+
style: [styles.barSheen, {
|
|
74
|
+
backgroundColor: hexToRgba(color, 0.12)
|
|
75
|
+
}]
|
|
76
|
+
})]
|
|
77
|
+
})
|
|
78
|
+
})
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
// ─── Hex → RGBA helper ───
|
|
83
|
+
function hexToRgba(hex, alpha) {
|
|
84
|
+
const clean = hex.replace('#', '');
|
|
85
|
+
const r = parseInt(clean.substring(0, 2), 16);
|
|
86
|
+
const g = parseInt(clean.substring(2, 4), 16);
|
|
87
|
+
const b = parseInt(clean.substring(4, 6), 16);
|
|
88
|
+
return `rgba(${r}, ${g}, ${b}, ${alpha})`;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// ─── Grid Lines (5 lines: 0%, 25%, 50%, 75%, 100%) ───
|
|
92
|
+
function GridLines({
|
|
93
|
+
height,
|
|
94
|
+
borderSubtle
|
|
95
|
+
}) {
|
|
96
|
+
const percentages = [0, 0.25, 0.5, 0.75, 1];
|
|
97
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
98
|
+
style: [_reactNative.StyleSheet.absoluteFill, {
|
|
99
|
+
height
|
|
100
|
+
}],
|
|
101
|
+
children: percentages.map((pct, i) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
102
|
+
style: [styles.gridLine, {
|
|
103
|
+
bottom: pct * height,
|
|
104
|
+
backgroundColor: borderSubtle
|
|
105
|
+
}]
|
|
106
|
+
}, i))
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
function FluentGlassBarChart({
|
|
110
|
+
data = [],
|
|
111
|
+
title,
|
|
112
|
+
height = 180,
|
|
113
|
+
showGrid = true,
|
|
114
|
+
showValues = true,
|
|
115
|
+
style
|
|
116
|
+
}) {
|
|
117
|
+
const theme = (0, _useTheme.default)();
|
|
118
|
+
const COLORS = theme.colors;
|
|
119
|
+
const typography = theme.typography;
|
|
120
|
+
const maxValue = Math.max(...data.map(d => d.value), 1);
|
|
121
|
+
|
|
122
|
+
// Default colors cycle
|
|
123
|
+
const defaultColors = [COLORS.accent,
|
|
124
|
+
// Cyan
|
|
125
|
+
COLORS.positive,
|
|
126
|
+
// Emerald
|
|
127
|
+
COLORS.purple,
|
|
128
|
+
// Purple
|
|
129
|
+
COLORS.warning,
|
|
130
|
+
// Amber
|
|
131
|
+
COLORS.negative,
|
|
132
|
+
// Red
|
|
133
|
+
COLORS.secondary,
|
|
134
|
+
// Blue
|
|
135
|
+
COLORS.pink // Pink
|
|
136
|
+
];
|
|
137
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_FluentGlass.default, {
|
|
138
|
+
accessible: true,
|
|
139
|
+
accessibilityRole: "summary",
|
|
140
|
+
accessibilityLabel: title ? `Bar chart: ${title}` : 'Bar chart',
|
|
141
|
+
style: [styles.container, style],
|
|
142
|
+
intensity: 18,
|
|
143
|
+
borderRadius: 16,
|
|
144
|
+
borderOpacity: 0.2,
|
|
145
|
+
children: [title && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
146
|
+
style: [styles.titleSection, {
|
|
147
|
+
borderBottomColor: COLORS.borderSubtle
|
|
148
|
+
}],
|
|
149
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
150
|
+
style: [styles.title, {
|
|
151
|
+
color: COLORS.textPrimary,
|
|
152
|
+
fontFamily: typography.bold
|
|
153
|
+
}],
|
|
154
|
+
children: title
|
|
155
|
+
})
|
|
156
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
157
|
+
style: styles.chartSection,
|
|
158
|
+
children: [showValues && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
159
|
+
style: styles.valuesRow,
|
|
160
|
+
children: data.map((item, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
161
|
+
style: [styles.barValue, {
|
|
162
|
+
color: COLORS.textSecondary,
|
|
163
|
+
fontFamily: typography.semiBold
|
|
164
|
+
}],
|
|
165
|
+
children: item.value
|
|
166
|
+
}, index))
|
|
167
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
168
|
+
style: styles.chartArea,
|
|
169
|
+
children: [showGrid && /*#__PURE__*/(0, _jsxRuntime.jsx)(GridLines, {
|
|
170
|
+
height: height,
|
|
171
|
+
borderSubtle: COLORS.borderSubtle
|
|
172
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
173
|
+
style: [styles.barsRow, {
|
|
174
|
+
height
|
|
175
|
+
}],
|
|
176
|
+
children: data.map((item, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)(Bar, {
|
|
177
|
+
value: item.value,
|
|
178
|
+
maxValue: maxValue,
|
|
179
|
+
color: item.color || defaultColors[index % defaultColors.length],
|
|
180
|
+
label: item.label,
|
|
181
|
+
index: index,
|
|
182
|
+
height: height,
|
|
183
|
+
showValue: false
|
|
184
|
+
}, index))
|
|
185
|
+
})]
|
|
186
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
187
|
+
style: styles.labelsRow,
|
|
188
|
+
children: data.map((item, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
189
|
+
style: [styles.barLabel, {
|
|
190
|
+
color: COLORS.textSecondary,
|
|
191
|
+
fontFamily: typography.medium
|
|
192
|
+
}],
|
|
193
|
+
numberOfLines: 1,
|
|
194
|
+
children: item.label
|
|
195
|
+
}, index))
|
|
196
|
+
})]
|
|
197
|
+
})]
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
const styles = _reactNative.StyleSheet.create({
|
|
201
|
+
container: {},
|
|
202
|
+
// Title — own section with separator
|
|
203
|
+
titleSection: {
|
|
204
|
+
paddingHorizontal: 18,
|
|
205
|
+
paddingTop: 16,
|
|
206
|
+
paddingBottom: 14,
|
|
207
|
+
borderBottomWidth: 1
|
|
208
|
+
},
|
|
209
|
+
title: {
|
|
210
|
+
fontSize: (0, _responsive.moderateScale)(16),
|
|
211
|
+
fontWeight: '700'
|
|
212
|
+
},
|
|
213
|
+
// Chart section
|
|
214
|
+
chartSection: {
|
|
215
|
+
padding: 18
|
|
216
|
+
},
|
|
217
|
+
valuesRow: {
|
|
218
|
+
flexDirection: 'row',
|
|
219
|
+
justifyContent: 'space-around',
|
|
220
|
+
marginBottom: 6,
|
|
221
|
+
gap: 8
|
|
222
|
+
},
|
|
223
|
+
chartArea: {
|
|
224
|
+
position: 'relative'
|
|
225
|
+
},
|
|
226
|
+
barsRow: {
|
|
227
|
+
flexDirection: 'row',
|
|
228
|
+
alignItems: 'flex-end',
|
|
229
|
+
justifyContent: 'space-around',
|
|
230
|
+
gap: 8
|
|
231
|
+
},
|
|
232
|
+
labelsRow: {
|
|
233
|
+
flexDirection: 'row',
|
|
234
|
+
justifyContent: 'space-around',
|
|
235
|
+
marginTop: 8,
|
|
236
|
+
gap: 8
|
|
237
|
+
},
|
|
238
|
+
barColumn: {
|
|
239
|
+
flex: 1,
|
|
240
|
+
alignItems: 'center'
|
|
241
|
+
},
|
|
242
|
+
barTrack: {
|
|
243
|
+
width: '100%',
|
|
244
|
+
justifyContent: 'flex-end',
|
|
245
|
+
alignItems: 'center'
|
|
246
|
+
},
|
|
247
|
+
// Glass bar
|
|
248
|
+
bar: {
|
|
249
|
+
width: '72%',
|
|
250
|
+
borderRadius: 8,
|
|
251
|
+
borderTopLeftRadius: 10,
|
|
252
|
+
borderTopRightRadius: 10,
|
|
253
|
+
minHeight: 4,
|
|
254
|
+
overflow: 'hidden',
|
|
255
|
+
borderWidth: 1
|
|
256
|
+
},
|
|
257
|
+
barHighlight: {
|
|
258
|
+
height: 3,
|
|
259
|
+
width: '100%'
|
|
260
|
+
},
|
|
261
|
+
barSheen: {
|
|
262
|
+
position: 'absolute',
|
|
263
|
+
top: 0,
|
|
264
|
+
left: '50%',
|
|
265
|
+
width: '50%',
|
|
266
|
+
height: '100%'
|
|
267
|
+
},
|
|
268
|
+
barValue: {
|
|
269
|
+
flex: 1,
|
|
270
|
+
fontSize: (0, _responsive.moderateScale)(11, 0.3),
|
|
271
|
+
fontWeight: '600',
|
|
272
|
+
textAlign: 'center'
|
|
273
|
+
},
|
|
274
|
+
barLabel: {
|
|
275
|
+
flex: 1,
|
|
276
|
+
fontSize: (0, _responsive.moderateScale)(11, 0.3),
|
|
277
|
+
fontWeight: '500',
|
|
278
|
+
textAlign: 'center'
|
|
279
|
+
},
|
|
280
|
+
gridLine: {
|
|
281
|
+
position: 'absolute',
|
|
282
|
+
left: 0,
|
|
283
|
+
right: 0,
|
|
284
|
+
height: 1
|
|
285
|
+
}
|
|
286
|
+
});
|
|
287
|
+
//# sourceMappingURL=FluentGlassBarChart.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeReanimated","_FluentGlass","_interopRequireDefault","_useTheme","_responsive","_jsxRuntime","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","Bar","value","maxValue","color","label","index","height","showValue","barHeight","useSharedValue","targetHeight","useEffect","withDelay","withSpring","mass","damping","stiffness","animatedBarStyle","useAnimatedStyle","glassBase","hexToRgba","glassBorder","glassHighlight","jsx","View","style","styles","barColumn","children","barTrack","jsxs","bar","backgroundColor","borderColor","barHighlight","barSheen","hex","alpha","clean","replace","parseInt","substring","g","b","GridLines","borderSubtle","percentages","StyleSheet","absoluteFill","map","pct","gridLine","bottom","FluentGlassBarChart","data","title","showGrid","showValues","theme","useTheme","COLORS","colors","typography","Math","max","d","defaultColors","accent","positive","purple","warning","negative","secondary","pink","accessible","accessibilityRole","accessibilityLabel","container","intensity","borderRadius","borderOpacity","titleSection","borderBottomColor","Text","textPrimary","fontFamily","bold","chartSection","valuesRow","item","barValue","textSecondary","semiBold","chartArea","barsRow","length","labelsRow","barLabel","medium","numberOfLines","create","paddingHorizontal","paddingTop","paddingBottom","borderBottomWidth","fontSize","moderateScale","fontWeight","padding","flexDirection","justifyContent","marginBottom","gap","position","alignItems","marginTop","flex","width","borderTopLeftRadius","borderTopRightRadius","minHeight","overflow","borderWidth","top","left","textAlign","right"],"sourceRoot":"..\\..\\..\\src","sources":["components/FluentGlassBarChart.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAH,uBAAA,CAAAC,OAAA;AAMA,IAAAG,YAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,SAAA,GAAAD,sBAAA,CAAAJ,OAAA;AACA,IAAAM,WAAA,GAAAN,OAAA;AAAoD,IAAAO,WAAA,GAAAP,OAAA;AAAA,SAAAI,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAT,wBAAAS,CAAA,EAAAG,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAb,uBAAA,YAAAA,CAAAS,CAAA,EAAAG,CAAA,SAAAA,CAAA,IAAAH,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,CAAA,MAAAO,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAR,OAAA,EAAAF,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAS,CAAA,MAAAF,CAAA,GAAAJ,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAE,CAAA,CAAAI,GAAA,CAAAX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AE;EACf,CAAC;EACD5B,QAAQ,EAAE;IACNmB,IAAI,EAAE,CAAC;IACPX,QAAQ,EAAE,IAAAC,yBAAa,EAAC,EAAE,EAAE,GAAG,CAAC;IAChCC,UAAU,EAAE,KAAK;IACjBkB,SAAS,EAAE;EACf,CAAC;EACD1E,QAAQ,EAAE;IACN8D,QAAQ,EAAE,UAAU;IACpBW,IAAI,EAAE,CAAC;IACPE,KAAK,EAAE,CAAC;IACRxH,MAAM,EAAE;EACZ;AACJ,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = FluentGlassBreadcrumb;
|
|
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 _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
+
/**
|
|
14
|
+
* FluentGlassBreadcrumb (Molecule)
|
|
15
|
+
* Glassmorphism breadcrumb navigation with two variants:
|
|
16
|
+
* - 'standard': All items visible, last one bold
|
|
17
|
+
* - 'collapsed': Middle items replaced with "..." ellipsis button
|
|
18
|
+
*/
|
|
19
|
+
function FluentGlassBreadcrumb({
|
|
20
|
+
items = [],
|
|
21
|
+
variant = 'standard',
|
|
22
|
+
separator = '›',
|
|
23
|
+
onExpandCollapsed,
|
|
24
|
+
style
|
|
25
|
+
}) {
|
|
26
|
+
const theme = (0, _useTheme.default)();
|
|
27
|
+
const COLORS = theme.colors;
|
|
28
|
+
const typography = theme.typography;
|
|
29
|
+
const visibleItems = getVisibleItems(items, variant);
|
|
30
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_FluentGlass.default, {
|
|
31
|
+
style: [styles.container, style],
|
|
32
|
+
intensity: 15,
|
|
33
|
+
tint: "dark",
|
|
34
|
+
borderRadius: 16,
|
|
35
|
+
borderOpacity: 0.2,
|
|
36
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
37
|
+
style: styles.content,
|
|
38
|
+
children: visibleItems.map((item, index) => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
39
|
+
style: styles.itemRow,
|
|
40
|
+
children: [index > 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
41
|
+
style: [styles.separator, {
|
|
42
|
+
color: COLORS.textSecondary,
|
|
43
|
+
fontFamily: typography.regular
|
|
44
|
+
}],
|
|
45
|
+
children: separator
|
|
46
|
+
}) : null, item.isEllipsis ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
|
|
47
|
+
onPress: onExpandCollapsed,
|
|
48
|
+
style: [styles.ellipsisBtn, {
|
|
49
|
+
backgroundColor: COLORS.borderSubtle
|
|
50
|
+
}],
|
|
51
|
+
hitSlop: 6,
|
|
52
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
53
|
+
style: [styles.ellipsisText, {
|
|
54
|
+
color: COLORS.textSecondary,
|
|
55
|
+
fontFamily: typography.bold
|
|
56
|
+
}],
|
|
57
|
+
children: "\xB7\xB7\xB7"
|
|
58
|
+
})
|
|
59
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
|
|
60
|
+
onPress: item.onPress,
|
|
61
|
+
disabled: !item.onPress,
|
|
62
|
+
hitSlop: 4,
|
|
63
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
64
|
+
style: styles.labelRow,
|
|
65
|
+
children: [item.icon ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
66
|
+
style: styles.icon,
|
|
67
|
+
children: item.icon
|
|
68
|
+
}) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
69
|
+
style: [styles.label, {
|
|
70
|
+
color: COLORS.textSecondary,
|
|
71
|
+
fontFamily: typography.regular
|
|
72
|
+
}, item.isActive && [styles.activeLabel, {
|
|
73
|
+
color: COLORS.textPrimary,
|
|
74
|
+
fontFamily: typography.bold
|
|
75
|
+
}], item.onPress && {
|
|
76
|
+
color: COLORS.textSecondary
|
|
77
|
+
}],
|
|
78
|
+
numberOfLines: 1,
|
|
79
|
+
children: item.label
|
|
80
|
+
})]
|
|
81
|
+
})
|
|
82
|
+
})]
|
|
83
|
+
}, index))
|
|
84
|
+
})
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Determines which items to show based on variant.
|
|
90
|
+
* 'collapsed' shows first, ellipsis, last two.
|
|
91
|
+
*/
|
|
92
|
+
function getVisibleItems(items, variant) {
|
|
93
|
+
if (!items.length) return [];
|
|
94
|
+
|
|
95
|
+
// Mark the last item as "active" (current page)
|
|
96
|
+
const withActive = items.map((item, i) => ({
|
|
97
|
+
...item,
|
|
98
|
+
isActive: i === items.length - 1
|
|
99
|
+
}));
|
|
100
|
+
if (variant === 'collapsed' && items.length > 3) {
|
|
101
|
+
return [withActive[0], {
|
|
102
|
+
label: '',
|
|
103
|
+
isEllipsis: true
|
|
104
|
+
}, withActive[items.length - 2], withActive[items.length - 1]];
|
|
105
|
+
}
|
|
106
|
+
return withActive;
|
|
107
|
+
}
|
|
108
|
+
const styles = _reactNative.StyleSheet.create({
|
|
109
|
+
container: {
|
|
110
|
+
height: 40,
|
|
111
|
+
alignSelf: 'flex-start'
|
|
112
|
+
},
|
|
113
|
+
content: {
|
|
114
|
+
flex: 1,
|
|
115
|
+
flexDirection: 'row',
|
|
116
|
+
alignItems: 'center',
|
|
117
|
+
paddingHorizontal: 16
|
|
118
|
+
},
|
|
119
|
+
itemRow: {
|
|
120
|
+
flexDirection: 'row',
|
|
121
|
+
alignItems: 'center'
|
|
122
|
+
},
|
|
123
|
+
separator: {
|
|
124
|
+
fontSize: 14,
|
|
125
|
+
marginHorizontal: 8,
|
|
126
|
+
fontWeight: '400'
|
|
127
|
+
},
|
|
128
|
+
labelRow: {
|
|
129
|
+
flexDirection: 'row',
|
|
130
|
+
alignItems: 'center'
|
|
131
|
+
},
|
|
132
|
+
icon: {
|
|
133
|
+
fontSize: 14,
|
|
134
|
+
marginRight: 4
|
|
135
|
+
},
|
|
136
|
+
label: {
|
|
137
|
+
fontSize: 14,
|
|
138
|
+
fontWeight: '400'
|
|
139
|
+
},
|
|
140
|
+
activeLabel: {
|
|
141
|
+
fontWeight: '700'
|
|
142
|
+
},
|
|
143
|
+
pressableLabel: {},
|
|
144
|
+
ellipsisBtn: {
|
|
145
|
+
borderRadius: 6,
|
|
146
|
+
paddingHorizontal: 8,
|
|
147
|
+
paddingVertical: 2
|
|
148
|
+
},
|
|
149
|
+
ellipsisText: {
|
|
150
|
+
fontSize: 14,
|
|
151
|
+
fontWeight: '700',
|
|
152
|
+
letterSpacing: 1
|
|
153
|
+
}
|
|
154
|
+
});
|
|
155
|
+
//# sourceMappingURL=FluentGlassBreadcrumb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_FluentGlass","_useTheme","_jsxRuntime","e","__esModule","default","FluentGlassBreadcrumb","items","variant","separator","onExpandCollapsed","style","theme","useTheme","COLORS","colors","typography","visibleItems","getVisibleItems","jsx","styles","container","intensity","tint","borderRadius","borderOpacity","children","View","content","map","item","index","jsxs","itemRow","Text","color","textSecondary","fontFamily","regular","isEllipsis","Pressable","onPress","ellipsisBtn","backgroundColor","borderSubtle","hitSlop","ellipsisText","bold","disabled","labelRow","icon","label","isActive","activeLabel","textPrimary","numberOfLines","length","withActive","i","StyleSheet","create","height","alignSelf","flex","flexDirection","alignItems","paddingHorizontal","fontSize","marginHorizontal","fontWeight","marginRight","pressableLabel","paddingVertical","letterSpacing"],"sourceRoot":"..\\..\\..\\src","sources":["components/FluentGlassBreadcrumb.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;AAAyC,IAAAI,WAAA,GAAAJ,OAAA;AAAA,SAAAD,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAqBzC;AACA;AACA;AACA;AACA;AACA;AACe,SAASG,qBAAqBA,CAAC;EAC1CC,KAAK,GAAG,EAAE;EACVC,OAAO,GAAG,UAAU;EACpBC,SAAS,GAAG,GAAG;EACfC,iBAAiB;EACjBC;AACwB,CAAC,EAAE;EAC3B,MAAMC,KAAK,GAAG,IAAAC,iBAAQ,EAAC,CAAC;EACxB,MAAMC,MAAM,GAAGF,KAAK,CAACG,MAAM;EAC3B,MAAMC,UAAU,GAAGJ,KAAK,CAACI,UAAU;EAEnC,MAAMC,YAAY,GAAGC,eAAe,CAACX,KAAK,EAAEC,OAAO,CAAC;EAEpD,oBACI,IAAAN,WAAA,CAAAiB,GAAA,EAACnB,YAAA,CAAAK,OAAW;IACRM,KAAK,EAAE,CAACS,MAAM,CAACC,SAAS,EAAEV,KAAK,CAAE;IACjCW,SAAS,EAAE,EAAG;IACdC,IAAI,EAAC,MAAM;IACXC,YAAY,EAAE,EAAG;IACjBC,aAAa,EAAE,GAAI;IAAAC,QAAA,eAEnB,IAAAxB,WAAA,CAAAiB,GAAA,EAACpB,YAAA,CAAA4B,IAAI;MAAChB,KAAK,EAAES,MAAM,CAACQ,OAAQ;MAAAF,QAAA,EACvBT,YAAY,CAACY,GAAG,CA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AAC","ignoreList":[]}
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = FluentGlassButton;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _reactNativeReanimated = _interopRequireWildcard(require("react-native-reanimated"));
|
|
10
|
+
var _FluentGlass = _interopRequireDefault(require("./FluentGlass"));
|
|
11
|
+
var _useTheme = _interopRequireDefault(require("../theme/useTheme"));
|
|
12
|
+
var _resolvers = require("../theme/resolvers");
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
15
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
|
+
const AnimatedPressable = _reactNativeReanimated.default.createAnimatedComponent(_reactNative.Pressable);
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* FluentGlassButton (Component)
|
|
20
|
+
* Interactive glass button with scale animation and variants.
|
|
21
|
+
*
|
|
22
|
+
* @param {string} size - 'xs' | 'sm' | 'md' | 'lg' | 'xl'
|
|
23
|
+
* @param {string} colorScheme - 'default' | 'dark' | 'info' | 'success' | 'error' | 'warning'
|
|
24
|
+
* @param {string} blur - 'none' | 'subtle' | 'medium' | 'strong' | 'max'
|
|
25
|
+
* @param {string} radius - 'none' | 'sm' | 'md' | 'lg' | 'pill'
|
|
26
|
+
*
|
|
27
|
+
* Legacy props: variant ('primary' | 'secondary' | 'ghost'), intensity, tint
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
function FluentGlassButton({
|
|
31
|
+
title,
|
|
32
|
+
onPress,
|
|
33
|
+
// New standardized props
|
|
34
|
+
size,
|
|
35
|
+
colorScheme,
|
|
36
|
+
blur,
|
|
37
|
+
radius,
|
|
38
|
+
// Legacy props
|
|
39
|
+
variant = 'primary',
|
|
40
|
+
style,
|
|
41
|
+
textStyle,
|
|
42
|
+
icon,
|
|
43
|
+
disabled = false,
|
|
44
|
+
intensity,
|
|
45
|
+
tint,
|
|
46
|
+
accessibilityLabel,
|
|
47
|
+
accessibilityHint
|
|
48
|
+
}) {
|
|
49
|
+
const theme = (0, _useTheme.default)();
|
|
50
|
+
|
|
51
|
+
// Resolve props
|
|
52
|
+
const sizeConfig = (0, _resolvers.resolveSize)(theme, size || theme.defaults.size);
|
|
53
|
+
const compat = (0, _resolvers.resolveBackwardCompat)({
|
|
54
|
+
variant,
|
|
55
|
+
intensity,
|
|
56
|
+
tint,
|
|
57
|
+
colorScheme,
|
|
58
|
+
blur
|
|
59
|
+
});
|
|
60
|
+
const resolvedScheme = compat.colorScheme || theme.defaults.colorScheme;
|
|
61
|
+
const resolvedBlur = compat.blur || theme.defaults.blur;
|
|
62
|
+
const scaleAnim = (0, _reactNativeReanimated.useSharedValue)(1);
|
|
63
|
+
const animatedStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => ({
|
|
64
|
+
transform: [{
|
|
65
|
+
scale: scaleAnim.value
|
|
66
|
+
}]
|
|
67
|
+
}));
|
|
68
|
+
const handlePressIn = () => {
|
|
69
|
+
if (disabled) return;
|
|
70
|
+
scaleAnim.value = (0, _reactNativeReanimated.withSpring)(0.96);
|
|
71
|
+
};
|
|
72
|
+
const handlePressOut = () => {
|
|
73
|
+
if (disabled) return;
|
|
74
|
+
scaleAnim.value = (0, _reactNativeReanimated.withSpring)(1);
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
// Resolve visual styles from colorScheme
|
|
78
|
+
const isGhost = variant === 'ghost' && !colorScheme;
|
|
79
|
+
const colorConfig = (0, _resolvers.resolveColorScheme)(theme, resolvedScheme);
|
|
80
|
+
const getButtonStyles = () => {
|
|
81
|
+
if (isGhost) {
|
|
82
|
+
return {
|
|
83
|
+
backgroundColor: 'transparent',
|
|
84
|
+
borderOpacity: 0,
|
|
85
|
+
textColor: theme.colors.textSecondary
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
// For semantic colors (success, error, warning, info), use solid color
|
|
90
|
+
const isSemanticColor = ['success', 'error', 'warning', 'info'].includes(resolvedScheme);
|
|
91
|
+
return {
|
|
92
|
+
backgroundColor: isSemanticColor ? colorConfig.solid : colorConfig.bg,
|
|
93
|
+
borderOpacity: isSemanticColor ? 0.5 : 0.3,
|
|
94
|
+
textColor: isSemanticColor ? theme.colors.white : theme.colors.textPrimary
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
const btnStyle = getButtonStyles();
|
|
98
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(AnimatedPressable, {
|
|
99
|
+
onPress: onPress,
|
|
100
|
+
onPressIn: handlePressIn,
|
|
101
|
+
onPressOut: handlePressOut,
|
|
102
|
+
disabled: disabled,
|
|
103
|
+
style: [styles.wrapper, animatedStyle, style],
|
|
104
|
+
accessibilityRole: "button",
|
|
105
|
+
accessibilityLabel: accessibilityLabel ?? title,
|
|
106
|
+
accessibilityHint: accessibilityHint,
|
|
107
|
+
accessibilityState: {
|
|
108
|
+
disabled: !!disabled
|
|
109
|
+
},
|
|
110
|
+
children: isGhost ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
111
|
+
style: [styles.content, {
|
|
112
|
+
paddingHorizontal: sizeConfig.paddingHorizontal
|
|
113
|
+
}],
|
|
114
|
+
children: [icon && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
115
|
+
style: styles.iconContainer,
|
|
116
|
+
children: icon
|
|
117
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
118
|
+
style: [styles.text, {
|
|
119
|
+
color: btnStyle.textColor,
|
|
120
|
+
fontSize: sizeConfig.fontSize,
|
|
121
|
+
fontFamily: theme.typography.semiBold
|
|
122
|
+
}, textStyle],
|
|
123
|
+
children: title
|
|
124
|
+
})]
|
|
125
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_FluentGlass.default, {
|
|
126
|
+
style: [styles.container, {
|
|
127
|
+
backgroundColor: btnStyle.backgroundColor,
|
|
128
|
+
minHeight: sizeConfig.minHeight,
|
|
129
|
+
borderRadius: sizeConfig.borderRadius
|
|
130
|
+
}],
|
|
131
|
+
colorScheme: resolvedScheme,
|
|
132
|
+
blur: resolvedBlur,
|
|
133
|
+
radius: radius,
|
|
134
|
+
borderOpacity: btnStyle.borderOpacity,
|
|
135
|
+
borderRadius: sizeConfig.borderRadius,
|
|
136
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
137
|
+
style: [styles.content, {
|
|
138
|
+
paddingHorizontal: sizeConfig.paddingHorizontal
|
|
139
|
+
}],
|
|
140
|
+
children: [icon && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
141
|
+
style: styles.iconContainer,
|
|
142
|
+
children: icon
|
|
143
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
144
|
+
style: [styles.text, {
|
|
145
|
+
color: btnStyle.textColor,
|
|
146
|
+
fontSize: sizeConfig.fontSize,
|
|
147
|
+
fontFamily: theme.typography.semiBold
|
|
148
|
+
}, textStyle],
|
|
149
|
+
children: title
|
|
150
|
+
})]
|
|
151
|
+
})
|
|
152
|
+
})
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
const styles = _reactNative.StyleSheet.create({
|
|
156
|
+
wrapper: {
|
|
157
|
+
marginVertical: 4
|
|
158
|
+
},
|
|
159
|
+
container: {
|
|
160
|
+
borderRadius: 12
|
|
161
|
+
},
|
|
162
|
+
content: {
|
|
163
|
+
flex: 1,
|
|
164
|
+
flexDirection: 'row',
|
|
165
|
+
alignItems: 'center',
|
|
166
|
+
justifyContent: 'center'
|
|
167
|
+
},
|
|
168
|
+
text: {
|
|
169
|
+
fontWeight: '600'
|
|
170
|
+
},
|
|
171
|
+
iconContainer: {
|
|
172
|
+
marginRight: 8
|
|
173
|
+
}
|
|
174
|
+
});
|
|
175
|
+
//# sourceMappingURL=FluentGlassButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeReanimated","_interopRequireWildcard","_FluentGlass","_useTheme","_resolvers","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","AnimatedPressable","Animated","createAnimatedComponent","Pressable","FluentGlassButton","title","onPress","size","colorScheme","blur","radius","variant","style","textStyle","icon","disabled","intensity","tint","accessibilityLabel","accessibilityHint","theme","useTheme","sizeConfig","resolveSize","defaults","compat","resolveBackwardCompat","resolvedScheme","resolvedBlur","scaleAnim","useSharedValue","animatedStyle","useAnimatedStyle","transform","scale","value","handlePressIn","withSpring","handlePressOut","isGhost","colorConfig","resolveColorScheme","getButtonStyles","backgroundColor","borderOpacity","textColor","colors","textSecondary","isSemanticColor","includes","solid","bg","white","textPrimary","btnStyle","jsx","onPressIn","onPressOut","styles","wrapper","accessibilityRole","accessibilityState","children","jsxs","View","content","paddingHorizontal","iconContainer","Text","text","color","fontSize","fontFamily","typography","semiBold","container","minHeight","borderRadius","StyleSheet","create","marginVertical","flex","flexDirection","alignItems","justifyContent","fontWeight","marginRight"],"sourceRoot":"..\\..\\..\\src","s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