rn-iconify 1.0.0 → 2.0.0
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/README.md +47 -235
- package/babel.js +14 -0
- package/lib/commonjs/IconRenderer.js +91 -4
- package/lib/commonjs/IconRenderer.js.map +1 -1
- package/lib/commonjs/accessibility/AccessibilityProvider.js +189 -0
- package/lib/commonjs/accessibility/AccessibilityProvider.js.map +1 -0
- package/lib/commonjs/accessibility/index.js +87 -0
- package/lib/commonjs/accessibility/index.js.map +1 -0
- package/lib/commonjs/accessibility/types.js +6 -0
- package/lib/commonjs/accessibility/types.js.map +1 -0
- package/lib/commonjs/accessibility/useAccessibleIcon.js +119 -0
- package/lib/commonjs/accessibility/useAccessibleIcon.js.map +1 -0
- package/lib/commonjs/accessibility/utils.js +231 -0
- package/lib/commonjs/accessibility/utils.js.map +1 -0
- package/lib/commonjs/alias/Icon.js +113 -0
- package/lib/commonjs/alias/Icon.js.map +1 -0
- package/lib/commonjs/alias/IconAliasContext.js +177 -0
- package/lib/commonjs/alias/IconAliasContext.js.map +1 -0
- package/lib/commonjs/alias/createIconAliases.js +222 -0
- package/lib/commonjs/alias/createIconAliases.js.map +1 -0
- package/lib/commonjs/alias/index.js +57 -0
- package/lib/commonjs/alias/index.js.map +1 -0
- package/lib/commonjs/alias/types.js +6 -0
- package/lib/commonjs/alias/types.js.map +1 -0
- package/lib/commonjs/animated/AnimatedIcon.js +116 -0
- package/lib/commonjs/animated/AnimatedIcon.js.map +1 -0
- package/lib/commonjs/animated/index.js +76 -0
- package/lib/commonjs/animated/index.js.map +1 -0
- package/lib/commonjs/animated/presets.js +220 -0
- package/lib/commonjs/animated/presets.js.map +1 -0
- package/lib/commonjs/animated/types.js +71 -0
- package/lib/commonjs/animated/types.js.map +1 -0
- package/lib/commonjs/animated/useIconAnimation.js +313 -0
- package/lib/commonjs/animated/useIconAnimation.js.map +1 -0
- package/lib/commonjs/babel/ast-utils.js +214 -0
- package/lib/commonjs/babel/ast-utils.js.map +1 -0
- package/lib/commonjs/babel/cache-writer.js +281 -0
- package/lib/commonjs/babel/cache-writer.js.map +1 -0
- package/lib/commonjs/babel/collector.js +219 -0
- package/lib/commonjs/babel/collector.js.map +1 -0
- package/lib/commonjs/babel/index.js +104 -0
- package/lib/commonjs/babel/index.js.map +1 -0
- package/lib/commonjs/babel/plugin.js +226 -0
- package/lib/commonjs/babel/plugin.js.map +1 -0
- package/lib/commonjs/babel/types.js +485 -0
- package/lib/commonjs/babel/types.js.map +1 -0
- package/lib/commonjs/bundle/index.js +213 -0
- package/lib/commonjs/bundle/index.js.map +1 -0
- package/lib/commonjs/cache/CacheManager.js +105 -6
- package/lib/commonjs/cache/CacheManager.js.map +1 -1
- package/lib/commonjs/cli/commands/analyze.js +171 -0
- package/lib/commonjs/cli/commands/analyze.js.map +1 -0
- package/lib/commonjs/cli/commands/bundle.js +214 -0
- package/lib/commonjs/cli/commands/bundle.js.map +1 -0
- package/lib/commonjs/cli/index.js +142 -0
- package/lib/commonjs/cli/index.js.map +1 -0
- package/lib/commonjs/cli/parser.js +260 -0
- package/lib/commonjs/cli/parser.js.map +1 -0
- package/lib/commonjs/cli/types.js +42 -0
- package/lib/commonjs/cli/types.js.map +1 -0
- package/lib/commonjs/config/ConfigManager.js +182 -0
- package/lib/commonjs/config/ConfigManager.js.map +1 -0
- package/lib/commonjs/config/index.js +44 -0
- package/lib/commonjs/config/index.js.map +1 -0
- package/lib/commonjs/config/types.js +55 -0
- package/lib/commonjs/config/types.js.map +1 -0
- package/lib/commonjs/createIconSet.js +49 -11
- package/lib/commonjs/createIconSet.js.map +1 -1
- package/lib/commonjs/explorer/IconExplorer.js +827 -0
- package/lib/commonjs/explorer/IconExplorer.js.map +1 -0
- package/lib/commonjs/explorer/iconSets.js +303 -0
- package/lib/commonjs/explorer/iconSets.js.map +1 -0
- package/lib/commonjs/explorer/index.js +93 -0
- package/lib/commonjs/explorer/index.js.map +1 -0
- package/lib/commonjs/explorer/types.js +6 -0
- package/lib/commonjs/explorer/types.js.map +1 -0
- package/lib/commonjs/explorer/useExplorer.js +359 -0
- package/lib/commonjs/explorer/useExplorer.js.map +1 -0
- package/lib/commonjs/index.js +618 -12
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/navigation/createDrawerIcon.js +129 -0
- package/lib/commonjs/navigation/createDrawerIcon.js.map +1 -0
- package/lib/commonjs/navigation/createHeaderIcon.js +185 -0
- package/lib/commonjs/navigation/createHeaderIcon.js.map +1 -0
- package/lib/commonjs/navigation/createTabBarIcon.js +178 -0
- package/lib/commonjs/navigation/createTabBarIcon.js.map +1 -0
- package/lib/commonjs/navigation/index.js +83 -0
- package/lib/commonjs/navigation/index.js.map +1 -0
- package/lib/commonjs/navigation/types.js +94 -0
- package/lib/commonjs/navigation/types.js.map +1 -0
- package/lib/commonjs/navigation/useNavigationIcon.js +128 -0
- package/lib/commonjs/navigation/useNavigationIcon.js.map +1 -0
- package/lib/commonjs/network/IconifyAPI.js +154 -14
- package/lib/commonjs/network/IconifyAPI.js.map +1 -1
- package/lib/commonjs/network/index.js +18 -0
- package/lib/commonjs/network/index.js.map +1 -1
- package/lib/commonjs/performance/PerformanceMonitor.js +327 -0
- package/lib/commonjs/performance/PerformanceMonitor.js.map +1 -0
- package/lib/commonjs/performance/index.js +43 -0
- package/lib/commonjs/performance/index.js.map +1 -0
- package/lib/commonjs/performance/types.js +2 -0
- package/lib/commonjs/performance/types.js.map +1 -0
- package/lib/commonjs/placeholder/PlaceholderFactory.js +111 -0
- package/lib/commonjs/placeholder/PlaceholderFactory.js.map +1 -0
- package/lib/commonjs/placeholder/Pulse.js +77 -0
- package/lib/commonjs/placeholder/Pulse.js.map +1 -0
- package/lib/commonjs/placeholder/Shimmer.js +95 -0
- package/lib/commonjs/placeholder/Shimmer.js.map +1 -0
- package/lib/commonjs/placeholder/Skeleton.js +52 -0
- package/lib/commonjs/placeholder/Skeleton.js.map +1 -0
- package/lib/commonjs/placeholder/index.js +41 -0
- package/lib/commonjs/placeholder/index.js.map +1 -0
- package/lib/commonjs/placeholder/types.js +40 -0
- package/lib/commonjs/placeholder/types.js.map +1 -0
- package/lib/commonjs/theme/IconThemeProvider.js +96 -0
- package/lib/commonjs/theme/IconThemeProvider.js.map +1 -0
- package/lib/commonjs/theme/context.js +53 -0
- package/lib/commonjs/theme/context.js.map +1 -0
- package/lib/commonjs/theme/index.js +52 -0
- package/lib/commonjs/theme/index.js.map +1 -0
- package/lib/commonjs/theme/types.js +39 -0
- package/lib/commonjs/theme/types.js.map +1 -0
- package/lib/commonjs/theme/useIconTheme.js +121 -0
- package/lib/commonjs/theme/useIconTheme.js.map +1 -0
- package/lib/module/IconRenderer.js +92 -5
- package/lib/module/IconRenderer.js.map +1 -1
- package/lib/module/accessibility/AccessibilityProvider.js +179 -0
- package/lib/module/accessibility/AccessibilityProvider.js.map +1 -0
- package/lib/module/accessibility/index.js +42 -0
- package/lib/module/accessibility/index.js.map +1 -0
- package/lib/module/accessibility/types.js +2 -0
- package/lib/module/accessibility/types.js.map +1 -0
- package/lib/module/accessibility/useAccessibleIcon.js +112 -0
- package/lib/module/accessibility/useAccessibleIcon.js.map +1 -0
- package/lib/module/accessibility/utils.js +221 -0
- package/lib/module/accessibility/utils.js.map +1 -0
- package/lib/module/alias/Icon.js +105 -0
- package/lib/module/alias/Icon.js.map +1 -0
- package/lib/module/alias/IconAliasContext.js +166 -0
- package/lib/module/alias/IconAliasContext.js.map +1 -0
- package/lib/module/alias/createIconAliases.js +213 -0
- package/lib/module/alias/createIconAliases.js.map +1 -0
- package/lib/module/alias/index.js +45 -0
- package/lib/module/alias/index.js.map +1 -0
- package/lib/module/alias/types.js +2 -0
- package/lib/module/alias/types.js.map +1 -0
- package/lib/module/animated/AnimatedIcon.js +109 -0
- package/lib/module/animated/AnimatedIcon.js.map +1 -0
- package/lib/module/animated/index.js +80 -0
- package/lib/module/animated/index.js.map +1 -0
- package/lib/module/animated/presets.js +209 -0
- package/lib/module/animated/presets.js.map +1 -0
- package/lib/module/animated/types.js +65 -0
- package/lib/module/animated/types.js.map +1 -0
- package/lib/module/animated/useIconAnimation.js +306 -0
- package/lib/module/animated/useIconAnimation.js.map +1 -0
- package/lib/module/babel/ast-utils.js +201 -0
- package/lib/module/babel/ast-utils.js.map +1 -0
- package/lib/module/babel/cache-writer.js +269 -0
- package/lib/module/babel/cache-writer.js.map +1 -0
- package/lib/module/babel/collector.js +214 -0
- package/lib/module/babel/collector.js.map +1 -0
- package/lib/module/babel/index.js +51 -0
- package/lib/module/babel/index.js.map +1 -0
- package/lib/module/babel/plugin.js +220 -0
- package/lib/module/babel/plugin.js.map +1 -0
- package/lib/module/babel/types.js +476 -0
- package/lib/module/babel/types.js.map +1 -0
- package/lib/module/bundle/index.js +205 -0
- package/lib/module/bundle/index.js.map +1 -0
- package/lib/module/cache/CacheManager.js +106 -6
- package/lib/module/cache/CacheManager.js.map +1 -1
- package/lib/module/cli/commands/analyze.js +166 -0
- package/lib/module/cli/commands/analyze.js.map +1 -0
- package/lib/module/cli/commands/bundle.js +208 -0
- package/lib/module/cli/commands/bundle.js.map +1 -0
- package/lib/module/cli/index.js +140 -0
- package/lib/module/cli/index.js.map +1 -0
- package/lib/module/cli/parser.js +251 -0
- package/lib/module/cli/parser.js.map +1 -0
- package/lib/module/cli/types.js +36 -0
- package/lib/module/cli/types.js.map +1 -0
- package/lib/module/components/index.js +27 -1
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/config/ConfigManager.js +173 -0
- package/lib/module/config/ConfigManager.js.map +1 -0
- package/lib/module/config/index.js +28 -0
- package/lib/module/config/index.js.map +1 -0
- package/lib/module/config/types.js +49 -0
- package/lib/module/config/types.js.map +1 -0
- package/lib/module/createIconSet.js +49 -11
- package/lib/module/createIconSet.js.map +1 -1
- package/lib/module/explorer/IconExplorer.js +817 -0
- package/lib/module/explorer/IconExplorer.js.map +1 -0
- package/lib/module/explorer/iconSets.js +291 -0
- package/lib/module/explorer/iconSets.js.map +1 -0
- package/lib/module/explorer/index.js +42 -0
- package/lib/module/explorer/index.js.map +1 -0
- package/lib/module/explorer/types.js +2 -0
- package/lib/module/explorer/types.js.map +1 -0
- package/lib/module/explorer/useExplorer.js +353 -0
- package/lib/module/explorer/useExplorer.js.map +1 -0
- package/lib/module/index.js +26 -11
- package/lib/module/index.js.map +1 -1
- package/lib/module/navigation/createDrawerIcon.js +121 -0
- package/lib/module/navigation/createDrawerIcon.js.map +1 -0
- package/lib/module/navigation/createHeaderIcon.js +175 -0
- package/lib/module/navigation/createHeaderIcon.js.map +1 -0
- package/lib/module/navigation/createTabBarIcon.js +168 -0
- package/lib/module/navigation/createTabBarIcon.js.map +1 -0
- package/lib/module/navigation/index.js +59 -0
- package/lib/module/navigation/index.js.map +1 -0
- package/lib/module/navigation/types.js +88 -0
- package/lib/module/navigation/types.js.map +1 -0
- package/lib/module/navigation/useNavigationIcon.js +121 -0
- package/lib/module/navigation/useNavigationIcon.js.map +1 -0
- package/lib/module/network/IconifyAPI.js +152 -14
- package/lib/module/network/IconifyAPI.js.map +1 -1
- package/lib/module/network/index.js +1 -1
- package/lib/module/network/index.js.map +1 -1
- package/lib/module/performance/PerformanceMonitor.js +317 -0
- package/lib/module/performance/PerformanceMonitor.js.map +1 -0
- package/lib/module/performance/index.js +26 -0
- package/lib/module/performance/index.js.map +1 -0
- package/lib/module/performance/types.js +2 -0
- package/lib/module/performance/types.js.map +1 -0
- package/lib/module/placeholder/PlaceholderFactory.js +105 -0
- package/lib/module/placeholder/PlaceholderFactory.js.map +1 -0
- package/lib/module/placeholder/Pulse.js +70 -0
- package/lib/module/placeholder/Pulse.js.map +1 -0
- package/lib/module/placeholder/Shimmer.js +88 -0
- package/lib/module/placeholder/Shimmer.js.map +1 -0
- package/lib/module/placeholder/Skeleton.js +45 -0
- package/lib/module/placeholder/Skeleton.js.map +1 -0
- package/lib/module/placeholder/index.js +15 -0
- package/lib/module/placeholder/index.js.map +1 -0
- package/lib/module/placeholder/types.js +34 -0
- package/lib/module/placeholder/types.js.map +1 -0
- package/lib/module/theme/IconThemeProvider.js +89 -0
- package/lib/module/theme/IconThemeProvider.js.map +1 -0
- package/lib/module/theme/context.js +47 -0
- package/lib/module/theme/context.js.map +1 -0
- package/lib/module/theme/index.js +19 -0
- package/lib/module/theme/index.js.map +1 -0
- package/lib/module/theme/types.js +33 -0
- package/lib/module/theme/types.js.map +1 -0
- package/lib/module/theme/useIconTheme.js +114 -0
- package/lib/module/theme/useIconTheme.js.map +1 -0
- package/lib/typescript/IconRenderer.d.ts +1 -1
- package/lib/typescript/IconRenderer.d.ts.map +1 -1
- package/lib/typescript/accessibility/AccessibilityProvider.d.ts +57 -0
- package/lib/typescript/accessibility/AccessibilityProvider.d.ts.map +1 -0
- package/lib/typescript/accessibility/index.d.ts +37 -0
- package/lib/typescript/accessibility/index.d.ts.map +1 -0
- package/lib/typescript/accessibility/types.d.ts +130 -0
- package/lib/typescript/accessibility/types.d.ts.map +1 -0
- package/lib/typescript/accessibility/useAccessibleIcon.d.ts +111 -0
- package/lib/typescript/accessibility/useAccessibleIcon.d.ts.map +1 -0
- package/lib/typescript/accessibility/utils.d.ts +29 -0
- package/lib/typescript/accessibility/utils.d.ts.map +1 -0
- package/lib/typescript/alias/Icon.d.ts +38 -0
- package/lib/typescript/alias/Icon.d.ts.map +1 -0
- package/lib/typescript/alias/IconAliasContext.d.ts +52 -0
- package/lib/typescript/alias/IconAliasContext.d.ts.map +1 -0
- package/lib/typescript/alias/createIconAliases.d.ts +77 -0
- package/lib/typescript/alias/createIconAliases.d.ts.map +1 -0
- package/lib/typescript/alias/index.d.ts +36 -0
- package/lib/typescript/alias/index.d.ts.map +1 -0
- package/lib/typescript/alias/types.d.ts +115 -0
- package/lib/typescript/alias/types.d.ts.map +1 -0
- package/lib/typescript/animated/AnimatedIcon.d.ts +45 -0
- package/lib/typescript/animated/AnimatedIcon.d.ts.map +1 -0
- package/lib/typescript/animated/index.d.ts +70 -0
- package/lib/typescript/animated/index.d.ts.map +1 -0
- package/lib/typescript/animated/presets.d.ts +35 -0
- package/lib/typescript/animated/presets.d.ts.map +1 -0
- package/lib/typescript/animated/types.d.ts +196 -0
- package/lib/typescript/animated/types.d.ts.map +1 -0
- package/lib/typescript/animated/useIconAnimation.d.ts +64 -0
- package/lib/typescript/animated/useIconAnimation.d.ts.map +1 -0
- package/lib/typescript/babel/ast-utils.d.ts +52 -0
- package/lib/typescript/babel/ast-utils.d.ts.map +1 -0
- package/lib/typescript/babel/cache-writer.d.ts +56 -0
- package/lib/typescript/babel/cache-writer.d.ts.map +1 -0
- package/lib/typescript/babel/collector.d.ts +107 -0
- package/lib/typescript/babel/collector.d.ts.map +1 -0
- package/lib/typescript/babel/index.d.ts +47 -0
- package/lib/typescript/babel/index.d.ts.map +1 -0
- package/lib/typescript/babel/plugin.d.ts +17 -0
- package/lib/typescript/babel/plugin.d.ts.map +1 -0
- package/lib/typescript/babel/types.d.ts +129 -0
- package/lib/typescript/babel/types.d.ts.map +1 -0
- package/lib/typescript/bundle/index.d.ts +161 -0
- package/lib/typescript/bundle/index.d.ts.map +1 -0
- package/lib/typescript/cache/CacheManager.d.ts +52 -4
- package/lib/typescript/cache/CacheManager.d.ts.map +1 -1
- package/lib/typescript/cli/commands/analyze.d.ts +10 -0
- package/lib/typescript/cli/commands/analyze.d.ts.map +1 -0
- package/lib/typescript/cli/commands/bundle.d.ts +10 -0
- package/lib/typescript/cli/commands/bundle.d.ts.map +1 -0
- package/lib/typescript/cli/index.d.ts +7 -0
- package/lib/typescript/cli/index.d.ts.map +1 -0
- package/lib/typescript/cli/parser.d.ts +18 -0
- package/lib/typescript/cli/parser.d.ts.map +1 -0
- package/lib/typescript/cli/types.d.ts +157 -0
- package/lib/typescript/cli/types.d.ts.map +1 -0
- package/lib/typescript/components/Academicons.d.ts +1 -1
- package/lib/typescript/components/AkarIcons.d.ts +1 -1
- package/lib/typescript/components/AntDesign.d.ts +1 -1
- package/lib/typescript/components/Arcticons.d.ts +1 -1
- package/lib/typescript/components/Basil.d.ts +1 -1
- package/lib/typescript/components/Bi.d.ts +1 -1
- package/lib/typescript/components/BitcoinIcons.d.ts +1 -1
- package/lib/typescript/components/Bpmn.d.ts +1 -1
- package/lib/typescript/components/Brandico.d.ts +1 -1
- package/lib/typescript/components/Bx.d.ts +1 -1
- package/lib/typescript/components/Bxl.d.ts +1 -1
- package/lib/typescript/components/Bxs.d.ts +1 -1
- package/lib/typescript/components/Bytesize.d.ts +1 -1
- package/lib/typescript/components/Carbon.d.ts +1 -1
- package/lib/typescript/components/Catppuccin.d.ts +1 -1
- package/lib/typescript/components/Cbi.d.ts +1 -1
- package/lib/typescript/components/Charm.d.ts +1 -1
- package/lib/typescript/components/Ci.d.ts +1 -1
- package/lib/typescript/components/Cib.d.ts +1 -1
- package/lib/typescript/components/Cif.d.ts +1 -1
- package/lib/typescript/components/Cil.d.ts +1 -1
- package/lib/typescript/components/CircleFlags.d.ts +1 -1
- package/lib/typescript/components/Circum.d.ts +1 -1
- package/lib/typescript/components/Clarity.d.ts +1 -1
- package/lib/typescript/components/Codex.d.ts +1 -1
- package/lib/typescript/components/Codicon.d.ts +1 -1
- package/lib/typescript/components/Covid.d.ts +1 -1
- package/lib/typescript/components/Cryptocurrency.d.ts +1 -1
- package/lib/typescript/components/CryptocurrencyColor.d.ts +1 -1
- package/lib/typescript/components/Cuida.d.ts +1 -1
- package/lib/typescript/components/Dashicons.d.ts +1 -1
- package/lib/typescript/components/Devicon.d.ts +1 -1
- package/lib/typescript/components/DeviconPlain.d.ts +1 -1
- package/lib/typescript/components/DinkieIcons.d.ts +1 -1
- package/lib/typescript/components/DuoIcons.d.ts +1 -1
- package/lib/typescript/components/Ei.d.ts +1 -1
- package/lib/typescript/components/El.d.ts +1 -1
- package/lib/typescript/components/EmojioneMonotone.d.ts +1 -1
- package/lib/typescript/components/Entypo.d.ts +1 -1
- package/lib/typescript/components/EntypoSocial.d.ts +1 -1
- package/lib/typescript/components/EosIcons.d.ts +1 -1
- package/lib/typescript/components/Ep.d.ts +1 -1
- package/lib/typescript/components/Et.d.ts +1 -1
- package/lib/typescript/components/Eva.d.ts +1 -1
- package/lib/typescript/components/F7.d.ts +1 -1
- package/lib/typescript/components/Fa.d.ts +1 -1
- package/lib/typescript/components/Fa6Brands.d.ts +1 -1
- package/lib/typescript/components/Fa6Regular.d.ts +1 -1
- package/lib/typescript/components/Fa6Solid.d.ts +1 -1
- package/lib/typescript/components/Fa7Brands.d.ts +1 -1
- package/lib/typescript/components/Fa7Regular.d.ts +1 -1
- package/lib/typescript/components/Fa7Solid.d.ts +1 -1
- package/lib/typescript/components/FaBrands.d.ts +1 -1
- package/lib/typescript/components/FaRegular.d.ts +1 -1
- package/lib/typescript/components/FaSolid.d.ts +1 -1
- package/lib/typescript/components/Fad.d.ts +1 -1
- package/lib/typescript/components/Famicons.d.ts +1 -1
- package/lib/typescript/components/Fe.d.ts +1 -1
- package/lib/typescript/components/Feather.d.ts +1 -1
- package/lib/typescript/components/FileIcons.d.ts +1 -1
- package/lib/typescript/components/Flag.d.ts +1 -1
- package/lib/typescript/components/Flagpack.d.ts +1 -1
- package/lib/typescript/components/FlatUi.d.ts +1 -1
- package/lib/typescript/components/Flowbite.d.ts +1 -1
- package/lib/typescript/components/Fluent.d.ts +1 -1
- package/lib/typescript/components/FluentColor.d.ts +1 -1
- package/lib/typescript/components/FluentEmoji.d.ts +1 -1
- package/lib/typescript/components/FluentEmojiFlat.d.ts +1 -1
- package/lib/typescript/components/FluentEmojiHighContrast.d.ts +1 -1
- package/lib/typescript/components/FluentMdl2.d.ts +1 -1
- package/lib/typescript/components/Fontelico.d.ts +1 -1
- package/lib/typescript/components/Fontisto.d.ts +1 -1
- package/lib/typescript/components/Formkit.d.ts +1 -1
- package/lib/typescript/components/Foundation.d.ts +1 -1
- package/lib/typescript/components/Gala.d.ts +1 -1
- package/lib/typescript/components/GameIcons.d.ts +1 -1
- package/lib/typescript/components/Garden.d.ts +1 -1
- package/lib/typescript/components/Geo.d.ts +1 -1
- package/lib/typescript/components/Gg.d.ts +1 -1
- package/lib/typescript/components/Gis.d.ts +1 -1
- package/lib/typescript/components/GravityUi.d.ts +1 -1
- package/lib/typescript/components/Gridicons.d.ts +1 -1
- package/lib/typescript/components/GrommetIcons.d.ts +1 -1
- package/lib/typescript/components/Guidance.d.ts +1 -1
- package/lib/typescript/components/Healthicons.d.ts +1 -1
- package/lib/typescript/components/Heroicons.d.ts +1 -1
- package/lib/typescript/components/HeroiconsOutline.d.ts +1 -1
- package/lib/typescript/components/HeroiconsSolid.d.ts +1 -1
- package/lib/typescript/components/Hugeicons.d.ts +1 -1
- package/lib/typescript/components/Humbleicons.d.ts +1 -1
- package/lib/typescript/components/Ic.d.ts +1 -1
- package/lib/typescript/components/IcomoonFree.d.ts +1 -1
- package/lib/typescript/components/IconPark.d.ts +1 -1
- package/lib/typescript/components/IconParkOutline.d.ts +1 -1
- package/lib/typescript/components/IconParkSolid.d.ts +1 -1
- package/lib/typescript/components/IconParkTwotone.d.ts +1 -1
- package/lib/typescript/components/Iconamoon.d.ts +1 -1
- package/lib/typescript/components/Iconoir.d.ts +1 -1
- package/lib/typescript/components/Icons8.d.ts +1 -1
- package/lib/typescript/components/Il.d.ts +1 -1
- package/lib/typescript/components/Ion.d.ts +1 -1
- package/lib/typescript/components/Iwwa.d.ts +1 -1
- package/lib/typescript/components/Ix.d.ts +1 -1
- package/lib/typescript/components/Jam.d.ts +1 -1
- package/lib/typescript/components/La.d.ts +1 -1
- package/lib/typescript/components/LetsIcons.d.ts +1 -1
- package/lib/typescript/components/LineMd.d.ts +1 -1
- package/lib/typescript/components/Lineicons.d.ts +1 -1
- package/lib/typescript/components/Logos.d.ts +1 -1
- package/lib/typescript/components/Ls.d.ts +1 -1
- package/lib/typescript/components/Lsicon.d.ts +1 -1
- package/lib/typescript/components/Lucide.d.ts +1 -1
- package/lib/typescript/components/LucideLab.d.ts +1 -1
- package/lib/typescript/components/Mage.d.ts +1 -1
- package/lib/typescript/components/Majesticons.d.ts +1 -1
- package/lib/typescript/components/Maki.d.ts +1 -1
- package/lib/typescript/components/Map.d.ts +1 -1
- package/lib/typescript/components/Marketeq.d.ts +1 -1
- package/lib/typescript/components/MaterialIconTheme.d.ts +1 -1
- package/lib/typescript/components/MaterialSymbols.d.ts +1 -1
- package/lib/typescript/components/MaterialSymbolsLight.d.ts +1 -1
- package/lib/typescript/components/Mdi.d.ts +1 -1
- package/lib/typescript/components/MdiLight.d.ts +1 -1
- package/lib/typescript/components/MedicalIcon.d.ts +1 -1
- package/lib/typescript/components/Memory.d.ts +1 -1
- package/lib/typescript/components/Meteocons.d.ts +1 -1
- package/lib/typescript/components/MeteorIcons.d.ts +1 -1
- package/lib/typescript/components/Mi.d.ts +1 -1
- package/lib/typescript/components/Mingcute.d.ts +1 -1
- package/lib/typescript/components/MonoIcons.d.ts +1 -1
- package/lib/typescript/components/Mynaui.d.ts +1 -1
- package/lib/typescript/components/Nimbus.d.ts +1 -1
- package/lib/typescript/components/Nonicons.d.ts +1 -1
- package/lib/typescript/components/Nrk.d.ts +1 -1
- package/lib/typescript/components/Octicon.d.ts +1 -1
- package/lib/typescript/components/Oi.d.ts +1 -1
- package/lib/typescript/components/Ooui.d.ts +1 -1
- package/lib/typescript/components/Oui.d.ts +1 -1
- package/lib/typescript/components/Pajamas.d.ts +1 -1
- package/lib/typescript/components/Pepicons.d.ts +1 -1
- package/lib/typescript/components/PepiconsPencil.d.ts +1 -1
- package/lib/typescript/components/PepiconsPop.d.ts +1 -1
- package/lib/typescript/components/PepiconsPrint.d.ts +1 -1
- package/lib/typescript/components/Ph.d.ts +1 -1
- package/lib/typescript/components/Picon.d.ts +1 -1
- package/lib/typescript/components/Pixel.d.ts +1 -1
- package/lib/typescript/components/Pixelarticons.d.ts +1 -1
- package/lib/typescript/components/Prime.d.ts +1 -1
- package/lib/typescript/components/Proicons.d.ts +1 -1
- package/lib/typescript/components/Ps.d.ts +1 -1
- package/lib/typescript/components/QlementineIcons.d.ts +1 -1
- package/lib/typescript/components/Quill.d.ts +1 -1
- package/lib/typescript/components/RadixIcons.d.ts +1 -1
- package/lib/typescript/components/Raphael.d.ts +1 -1
- package/lib/typescript/components/Ri.d.ts +1 -1
- package/lib/typescript/components/RivetIcons.d.ts +1 -1
- package/lib/typescript/components/Roentgen.d.ts +1 -1
- package/lib/typescript/components/Si.d.ts +1 -1
- package/lib/typescript/components/SiGlyph.d.ts +1 -1
- package/lib/typescript/components/Sidekickicons.d.ts +1 -1
- package/lib/typescript/components/SimpleIcons.d.ts +1 -1
- package/lib/typescript/components/SimpleLineIcons.d.ts +1 -1
- package/lib/typescript/components/SkillIcons.d.ts +1 -1
- package/lib/typescript/components/Solar.d.ts +1 -1
- package/lib/typescript/components/Stash.d.ts +1 -1
- package/lib/typescript/components/Streamline.d.ts +1 -1
- package/lib/typescript/components/StreamlineBlock.d.ts +1 -1
- package/lib/typescript/components/StreamlineColor.d.ts +1 -1
- package/lib/typescript/components/StreamlineCyber.d.ts +1 -1
- package/lib/typescript/components/StreamlineCyberColor.d.ts +1 -1
- package/lib/typescript/components/StreamlineEmojis.d.ts +1 -1
- package/lib/typescript/components/StreamlineFlex.d.ts +1 -1
- package/lib/typescript/components/StreamlineFlexColor.d.ts +1 -1
- package/lib/typescript/components/StreamlineFreehand.d.ts +1 -1
- package/lib/typescript/components/StreamlineFreehandColor.d.ts +1 -1
- package/lib/typescript/components/StreamlineKameleonColor.d.ts +1 -1
- package/lib/typescript/components/StreamlineLogos.d.ts +1 -1
- package/lib/typescript/components/StreamlinePixel.d.ts +1 -1
- package/lib/typescript/components/StreamlinePlump.d.ts +1 -1
- package/lib/typescript/components/StreamlinePlumpColor.d.ts +1 -1
- package/lib/typescript/components/StreamlineSharp.d.ts +1 -1
- package/lib/typescript/components/StreamlineSharpColor.d.ts +1 -1
- package/lib/typescript/components/StreamlineStickiesColor.d.ts +1 -1
- package/lib/typescript/components/StreamlineUltimate.d.ts +1 -1
- package/lib/typescript/components/StreamlineUltimateColor.d.ts +1 -1
- package/lib/typescript/components/Subway.d.ts +1 -1
- package/lib/typescript/components/SvgSpinners.d.ts +1 -1
- package/lib/typescript/components/SystemUicons.d.ts +1 -1
- package/lib/typescript/components/Tabler.d.ts +1 -1
- package/lib/typescript/components/Tdesign.d.ts +1 -1
- package/lib/typescript/components/Teenyicons.d.ts +1 -1
- package/lib/typescript/components/Temaki.d.ts +1 -1
- package/lib/typescript/components/Token.d.ts +1 -1
- package/lib/typescript/components/TokenBranded.d.ts +1 -1
- package/lib/typescript/components/Topcoat.d.ts +1 -1
- package/lib/typescript/components/Typcn.d.ts +1 -1
- package/lib/typescript/components/Uil.d.ts +1 -1
- package/lib/typescript/components/Uim.d.ts +1 -1
- package/lib/typescript/components/Uis.d.ts +1 -1
- package/lib/typescript/components/Uit.d.ts +1 -1
- package/lib/typescript/components/Uiw.d.ts +1 -1
- package/lib/typescript/components/Unjs.d.ts +1 -1
- package/lib/typescript/components/Vaadin.d.ts +1 -1
- package/lib/typescript/components/Vs.d.ts +1 -1
- package/lib/typescript/components/VscodeIcons.d.ts +1 -1
- package/lib/typescript/components/Websymbol.d.ts +1 -1
- package/lib/typescript/components/Weui.d.ts +1 -1
- package/lib/typescript/components/Whh.d.ts +1 -1
- package/lib/typescript/components/Wi.d.ts +1 -1
- package/lib/typescript/components/Wpf.d.ts +1 -1
- package/lib/typescript/components/Zmdi.d.ts +1 -1
- package/lib/typescript/components/Zondicons.d.ts +1 -1
- package/lib/typescript/components/index.d.ts +38 -1
- package/lib/typescript/components/index.d.ts.map +1 -1
- package/lib/typescript/config/ConfigManager.d.ts +102 -0
- package/lib/typescript/config/ConfigManager.d.ts.map +1 -0
- package/lib/typescript/config/index.d.ts +22 -0
- package/lib/typescript/config/index.d.ts.map +1 -0
- package/lib/typescript/config/types.d.ts +112 -0
- package/lib/typescript/config/types.d.ts.map +1 -0
- package/lib/typescript/createIconSet.d.ts +1 -1
- package/lib/typescript/createIconSet.d.ts.map +1 -1
- package/lib/typescript/explorer/IconExplorer.d.ts +54 -0
- package/lib/typescript/explorer/IconExplorer.d.ts.map +1 -0
- package/lib/typescript/explorer/iconSets.d.ts +35 -0
- package/lib/typescript/explorer/iconSets.d.ts.map +1 -0
- package/lib/typescript/explorer/index.d.ts +33 -0
- package/lib/typescript/explorer/index.d.ts.map +1 -0
- package/lib/typescript/explorer/types.d.ts +329 -0
- package/lib/typescript/explorer/types.d.ts.map +1 -0
- package/lib/typescript/explorer/useExplorer.d.ts +18 -0
- package/lib/typescript/explorer/useExplorer.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +25 -4
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/navigation/createDrawerIcon.d.ts +74 -0
- package/lib/typescript/navigation/createDrawerIcon.d.ts.map +1 -0
- package/lib/typescript/navigation/createHeaderIcon.d.ts +145 -0
- package/lib/typescript/navigation/createHeaderIcon.d.ts.map +1 -0
- package/lib/typescript/navigation/createTabBarIcon.d.ts +99 -0
- package/lib/typescript/navigation/createTabBarIcon.d.ts.map +1 -0
- package/lib/typescript/navigation/index.d.ts +51 -0
- package/lib/typescript/navigation/index.d.ts.map +1 -0
- package/lib/typescript/navigation/types.d.ts +149 -0
- package/lib/typescript/navigation/types.d.ts.map +1 -0
- package/lib/typescript/navigation/useNavigationIcon.d.ts +91 -0
- package/lib/typescript/navigation/useNavigationIcon.d.ts.map +1 -0
- package/lib/typescript/network/IconifyAPI.d.ts +32 -0
- package/lib/typescript/network/IconifyAPI.d.ts.map +1 -1
- package/lib/typescript/network/index.d.ts +2 -1
- package/lib/typescript/network/index.d.ts.map +1 -1
- package/lib/typescript/performance/PerformanceMonitor.d.ts +76 -0
- package/lib/typescript/performance/PerformanceMonitor.d.ts.map +1 -0
- package/lib/typescript/performance/index.d.ts +21 -0
- package/lib/typescript/performance/index.d.ts.map +1 -0
- package/lib/typescript/performance/types.d.ts +156 -0
- package/lib/typescript/performance/types.d.ts.map +1 -0
- package/lib/typescript/placeholder/PlaceholderFactory.d.ts +44 -0
- package/lib/typescript/placeholder/PlaceholderFactory.d.ts.map +1 -0
- package/lib/typescript/placeholder/Pulse.d.ts +18 -0
- package/lib/typescript/placeholder/Pulse.d.ts.map +1 -0
- package/lib/typescript/placeholder/Shimmer.d.ts +19 -0
- package/lib/typescript/placeholder/Shimmer.d.ts.map +1 -0
- package/lib/typescript/placeholder/Skeleton.d.ts +18 -0
- package/lib/typescript/placeholder/Skeleton.d.ts.map +1 -0
- package/lib/typescript/placeholder/index.d.ts +12 -0
- package/lib/typescript/placeholder/index.d.ts.map +1 -0
- package/lib/typescript/placeholder/types.d.ts +63 -0
- package/lib/typescript/placeholder/types.d.ts.map +1 -0
- package/lib/typescript/theme/IconThemeProvider.d.ts +64 -0
- package/lib/typescript/theme/IconThemeProvider.d.ts.map +1 -0
- package/lib/typescript/theme/context.d.ts +24 -0
- package/lib/typescript/theme/context.d.ts.map +1 -0
- package/lib/typescript/theme/index.d.ts +10 -0
- package/lib/typescript/theme/index.d.ts.map +1 -0
- package/lib/typescript/theme/types.d.ts +85 -0
- package/lib/typescript/theme/types.d.ts.map +1 -0
- package/lib/typescript/theme/useIconTheme.d.ts +78 -0
- package/lib/typescript/theme/useIconTheme.d.ts.map +1 -0
- package/lib/typescript/types/index.d.ts +58 -1
- package/lib/typescript/types/index.d.ts.map +1 -1
- package/package.json +41 -3
- package/src/IconRenderer.tsx +91 -4
- package/src/accessibility/AccessibilityProvider.tsx +220 -0
- package/src/accessibility/index.ts +63 -0
- package/src/accessibility/types.ts +152 -0
- package/src/accessibility/useAccessibleIcon.ts +220 -0
- package/src/accessibility/utils.ts +180 -0
- package/src/alias/Icon.tsx +113 -0
- package/src/alias/IconAliasContext.tsx +180 -0
- package/src/alias/createIconAliases.tsx +233 -0
- package/src/alias/index.ts +59 -0
- package/src/alias/types.ts +132 -0
- package/src/animated/AnimatedIcon.tsx +116 -0
- package/src/animated/index.ts +97 -0
- package/src/animated/presets.ts +211 -0
- package/src/animated/types.ts +239 -0
- package/src/animated/useIconAnimation.ts +383 -0
- package/src/babel/ast-utils.ts +219 -0
- package/src/babel/cache-writer.ts +323 -0
- package/src/babel/collector.ts +224 -0
- package/src/babel/index.ts +60 -0
- package/src/babel/plugin.ts +254 -0
- package/src/babel/types.ts +717 -0
- package/src/bundle/index.ts +313 -0
- package/src/cache/CacheManager.ts +123 -6
- package/src/cli/commands/analyze.ts +195 -0
- package/src/cli/commands/bundle.ts +231 -0
- package/src/cli/index.ts +153 -0
- package/src/cli/parser.ts +275 -0
- package/src/cli/types.ts +187 -0
- package/src/components/index.ts +52 -1
- package/src/config/ConfigManager.ts +196 -0
- package/src/config/index.ts +34 -0
- package/src/config/types.ts +149 -0
- package/src/createIconSet.tsx +48 -9
- package/src/explorer/IconExplorer.tsx +844 -0
- package/src/explorer/iconSets.ts +334 -0
- package/src/explorer/index.ts +64 -0
- package/src/explorer/types.ts +392 -0
- package/src/explorer/useExplorer.ts +390 -0
- package/src/index.ts +218 -9
- package/src/navigation/createDrawerIcon.tsx +113 -0
- package/src/navigation/createHeaderIcon.tsx +213 -0
- package/src/navigation/createTabBarIcon.tsx +180 -0
- package/src/navigation/index.ts +80 -0
- package/src/navigation/types.ts +155 -0
- package/src/navigation/useNavigationIcon.tsx +156 -0
- package/src/network/IconifyAPI.ts +182 -14
- package/src/network/index.ts +11 -1
- package/src/performance/PerformanceMonitor.ts +367 -0
- package/src/performance/index.ts +39 -0
- package/src/performance/types.ts +185 -0
- package/src/placeholder/PlaceholderFactory.tsx +133 -0
- package/src/placeholder/Pulse.tsx +86 -0
- package/src/placeholder/Shimmer.tsx +104 -0
- package/src/placeholder/Skeleton.tsx +52 -0
- package/src/placeholder/index.ts +21 -0
- package/src/placeholder/types.ts +78 -0
- package/src/theme/IconThemeProvider.tsx +94 -0
- package/src/theme/context.ts +51 -0
- package/src/theme/index.ts +19 -0
- package/src/theme/types.ts +108 -0
- package/src/theme/useIconTheme.ts +119 -0
- package/src/types/index.ts +78 -1
- package/lib/commonjs/components/Phosphor.js +0 -493
- package/lib/commonjs/components/Phosphor.js.map +0 -1
- package/lib/module/components/Phosphor.js +0 -488
- package/lib/module/components/Phosphor.js.map +0 -1
- package/lib/typescript/components/Phosphor.d.ts +0 -472
- package/lib/typescript/components/Phosphor.d.ts.map +0 -1
- package/src/components/Phosphor.tsx +0 -506
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Icon Explorer types for rn-iconify
|
|
3
|
+
* Development tool for exploring and testing icons
|
|
4
|
+
*/
|
|
5
|
+
import type { IconProps } from '../types';
|
|
6
|
+
/**
|
|
7
|
+
* Icon set metadata
|
|
8
|
+
*/
|
|
9
|
+
export interface IconSetInfo {
|
|
10
|
+
/**
|
|
11
|
+
* Icon set prefix (e.g., "mdi", "heroicons")
|
|
12
|
+
*/
|
|
13
|
+
prefix: string;
|
|
14
|
+
/**
|
|
15
|
+
* Human-readable name
|
|
16
|
+
*/
|
|
17
|
+
name: string;
|
|
18
|
+
/**
|
|
19
|
+
* Number of icons in the set
|
|
20
|
+
*/
|
|
21
|
+
total: number;
|
|
22
|
+
/**
|
|
23
|
+
* Icon set author
|
|
24
|
+
*/
|
|
25
|
+
author?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Icon set license
|
|
28
|
+
*/
|
|
29
|
+
license?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Sample icon names
|
|
32
|
+
*/
|
|
33
|
+
samples?: string[];
|
|
34
|
+
/**
|
|
35
|
+
* Icon set category
|
|
36
|
+
*/
|
|
37
|
+
category?: 'general' | 'brand' | 'emoji' | 'flags' | 'weather' | 'other';
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Search result item
|
|
41
|
+
*/
|
|
42
|
+
export interface SearchResult {
|
|
43
|
+
/**
|
|
44
|
+
* Full icon name (prefix:name)
|
|
45
|
+
*/
|
|
46
|
+
fullName: string;
|
|
47
|
+
/**
|
|
48
|
+
* Icon set prefix
|
|
49
|
+
*/
|
|
50
|
+
prefix: string;
|
|
51
|
+
/**
|
|
52
|
+
* Icon name without prefix
|
|
53
|
+
*/
|
|
54
|
+
name: string;
|
|
55
|
+
/**
|
|
56
|
+
* Search relevance score (0-1)
|
|
57
|
+
*/
|
|
58
|
+
score: number;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Icon preview configuration
|
|
62
|
+
*/
|
|
63
|
+
export interface PreviewConfig {
|
|
64
|
+
/**
|
|
65
|
+
* Preview sizes to show
|
|
66
|
+
*/
|
|
67
|
+
sizes: number[];
|
|
68
|
+
/**
|
|
69
|
+
* Preview colors to show
|
|
70
|
+
*/
|
|
71
|
+
colors: string[];
|
|
72
|
+
/**
|
|
73
|
+
* Show icon name
|
|
74
|
+
*/
|
|
75
|
+
showName: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Show icon code snippet
|
|
78
|
+
*/
|
|
79
|
+
showCode: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Background color for preview
|
|
82
|
+
*/
|
|
83
|
+
backgroundColor: string;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Explorer configuration
|
|
87
|
+
*/
|
|
88
|
+
export interface ExplorerConfig {
|
|
89
|
+
/**
|
|
90
|
+
* Icon sets to include
|
|
91
|
+
* If empty, includes all available sets
|
|
92
|
+
*/
|
|
93
|
+
iconSets?: string[];
|
|
94
|
+
/**
|
|
95
|
+
* Initial search query
|
|
96
|
+
*/
|
|
97
|
+
initialQuery?: string;
|
|
98
|
+
/**
|
|
99
|
+
* Maximum results to show
|
|
100
|
+
* @default 100
|
|
101
|
+
*/
|
|
102
|
+
maxResults?: number;
|
|
103
|
+
/**
|
|
104
|
+
* Preview configuration
|
|
105
|
+
*/
|
|
106
|
+
preview?: Partial<PreviewConfig>;
|
|
107
|
+
/**
|
|
108
|
+
* Callback when icon is selected
|
|
109
|
+
*/
|
|
110
|
+
onIconSelect?: (iconName: string) => void;
|
|
111
|
+
/**
|
|
112
|
+
* Callback when icon code is copied
|
|
113
|
+
*/
|
|
114
|
+
onCopyCode?: (code: string) => void;
|
|
115
|
+
/**
|
|
116
|
+
* Enable keyboard shortcuts
|
|
117
|
+
* @default true
|
|
118
|
+
*/
|
|
119
|
+
keyboardShortcuts?: boolean;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Resolved explorer configuration
|
|
123
|
+
*/
|
|
124
|
+
export interface ResolvedExplorerConfig {
|
|
125
|
+
iconSets: string[];
|
|
126
|
+
initialQuery: string;
|
|
127
|
+
maxResults: number;
|
|
128
|
+
preview: PreviewConfig;
|
|
129
|
+
onIconSelect?: (iconName: string) => void;
|
|
130
|
+
onCopyCode?: (code: string) => void;
|
|
131
|
+
keyboardShortcuts: boolean;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Explorer state
|
|
135
|
+
*/
|
|
136
|
+
export interface ExplorerState {
|
|
137
|
+
/**
|
|
138
|
+
* Current search query
|
|
139
|
+
*/
|
|
140
|
+
query: string;
|
|
141
|
+
/**
|
|
142
|
+
* Search results
|
|
143
|
+
*/
|
|
144
|
+
results: SearchResult[];
|
|
145
|
+
/**
|
|
146
|
+
* Currently selected icon
|
|
147
|
+
*/
|
|
148
|
+
selectedIcon: string | null;
|
|
149
|
+
/**
|
|
150
|
+
* Currently active icon set filter
|
|
151
|
+
*/
|
|
152
|
+
activeIconSet: string | null;
|
|
153
|
+
/**
|
|
154
|
+
* Loading state
|
|
155
|
+
*/
|
|
156
|
+
isLoading: boolean;
|
|
157
|
+
/**
|
|
158
|
+
* Error message if any
|
|
159
|
+
*/
|
|
160
|
+
error: string | null;
|
|
161
|
+
/**
|
|
162
|
+
* Current preview size
|
|
163
|
+
*/
|
|
164
|
+
previewSize: number;
|
|
165
|
+
/**
|
|
166
|
+
* Current preview color
|
|
167
|
+
*/
|
|
168
|
+
previewColor: string;
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Explorer actions
|
|
172
|
+
*/
|
|
173
|
+
export interface ExplorerActions {
|
|
174
|
+
/**
|
|
175
|
+
* Update search query
|
|
176
|
+
*/
|
|
177
|
+
setQuery: (query: string) => void;
|
|
178
|
+
/**
|
|
179
|
+
* Select an icon
|
|
180
|
+
*/
|
|
181
|
+
selectIcon: (iconName: string | null) => void;
|
|
182
|
+
/**
|
|
183
|
+
* Filter by icon set
|
|
184
|
+
*/
|
|
185
|
+
filterByIconSet: (prefix: string | null) => void;
|
|
186
|
+
/**
|
|
187
|
+
* Change preview size
|
|
188
|
+
*/
|
|
189
|
+
setPreviewSize: (size: number) => void;
|
|
190
|
+
/**
|
|
191
|
+
* Change preview color
|
|
192
|
+
*/
|
|
193
|
+
setPreviewColor: (color: string) => void;
|
|
194
|
+
/**
|
|
195
|
+
* Copy icon code to clipboard
|
|
196
|
+
*/
|
|
197
|
+
copyIconCode: (iconName: string, format?: 'jsx' | 'import') => void;
|
|
198
|
+
/**
|
|
199
|
+
* Reset explorer state
|
|
200
|
+
*/
|
|
201
|
+
reset: () => void;
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* Icon Explorer context value
|
|
205
|
+
*/
|
|
206
|
+
export interface ExplorerContextValue extends ExplorerState, ExplorerActions {
|
|
207
|
+
/**
|
|
208
|
+
* Explorer configuration
|
|
209
|
+
*/
|
|
210
|
+
config: ResolvedExplorerConfig;
|
|
211
|
+
/**
|
|
212
|
+
* Available icon sets
|
|
213
|
+
*/
|
|
214
|
+
iconSets: IconSetInfo[];
|
|
215
|
+
/**
|
|
216
|
+
* Total number of icons available
|
|
217
|
+
*/
|
|
218
|
+
totalIcons: number;
|
|
219
|
+
/**
|
|
220
|
+
* Whether all collections have been loaded
|
|
221
|
+
*/
|
|
222
|
+
collectionsLoaded: boolean;
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* Props for IconExplorer component
|
|
226
|
+
*/
|
|
227
|
+
export interface IconExplorerProps extends ExplorerConfig {
|
|
228
|
+
/**
|
|
229
|
+
* Whether the explorer is visible
|
|
230
|
+
*/
|
|
231
|
+
visible?: boolean;
|
|
232
|
+
/**
|
|
233
|
+
* Callback when explorer is closed
|
|
234
|
+
*/
|
|
235
|
+
onClose?: () => void;
|
|
236
|
+
/**
|
|
237
|
+
* Custom styles
|
|
238
|
+
*/
|
|
239
|
+
style?: object;
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* Props for IconGrid component
|
|
243
|
+
*/
|
|
244
|
+
export interface IconGridProps {
|
|
245
|
+
/**
|
|
246
|
+
* Icons to display
|
|
247
|
+
*/
|
|
248
|
+
icons: SearchResult[];
|
|
249
|
+
/**
|
|
250
|
+
* Selected icon
|
|
251
|
+
*/
|
|
252
|
+
selectedIcon?: string | null;
|
|
253
|
+
/**
|
|
254
|
+
* Preview size
|
|
255
|
+
*/
|
|
256
|
+
size?: number;
|
|
257
|
+
/**
|
|
258
|
+
* Preview color
|
|
259
|
+
*/
|
|
260
|
+
color?: string;
|
|
261
|
+
/**
|
|
262
|
+
* Callback when icon is pressed
|
|
263
|
+
*/
|
|
264
|
+
onIconPress?: (iconName: string) => void;
|
|
265
|
+
/**
|
|
266
|
+
* Number of columns
|
|
267
|
+
*/
|
|
268
|
+
columns?: number;
|
|
269
|
+
}
|
|
270
|
+
/**
|
|
271
|
+
* Props for IconPreview component
|
|
272
|
+
*/
|
|
273
|
+
export interface IconPreviewProps {
|
|
274
|
+
/**
|
|
275
|
+
* Icon name to preview
|
|
276
|
+
*/
|
|
277
|
+
iconName: string;
|
|
278
|
+
/**
|
|
279
|
+
* Preview config
|
|
280
|
+
*/
|
|
281
|
+
config?: Partial<PreviewConfig>;
|
|
282
|
+
/**
|
|
283
|
+
* Additional icon props
|
|
284
|
+
*/
|
|
285
|
+
iconProps?: Partial<IconProps>;
|
|
286
|
+
/**
|
|
287
|
+
* Callback when copy code is pressed
|
|
288
|
+
*/
|
|
289
|
+
onCopyCode?: (code: string) => void;
|
|
290
|
+
}
|
|
291
|
+
/**
|
|
292
|
+
* Props for SearchBar component
|
|
293
|
+
*/
|
|
294
|
+
export interface SearchBarProps {
|
|
295
|
+
/**
|
|
296
|
+
* Current search value
|
|
297
|
+
*/
|
|
298
|
+
value: string;
|
|
299
|
+
/**
|
|
300
|
+
* Callback when search value changes
|
|
301
|
+
*/
|
|
302
|
+
onChangeText: (text: string) => void;
|
|
303
|
+
/**
|
|
304
|
+
* Placeholder text
|
|
305
|
+
*/
|
|
306
|
+
placeholder?: string;
|
|
307
|
+
/**
|
|
308
|
+
* Auto focus on mount
|
|
309
|
+
*/
|
|
310
|
+
autoFocus?: boolean;
|
|
311
|
+
}
|
|
312
|
+
/**
|
|
313
|
+
* Props for IconSetFilter component
|
|
314
|
+
*/
|
|
315
|
+
export interface IconSetFilterProps {
|
|
316
|
+
/**
|
|
317
|
+
* Available icon sets
|
|
318
|
+
*/
|
|
319
|
+
iconSets: IconSetInfo[];
|
|
320
|
+
/**
|
|
321
|
+
* Currently selected icon set
|
|
322
|
+
*/
|
|
323
|
+
selected: string | null;
|
|
324
|
+
/**
|
|
325
|
+
* Callback when selection changes
|
|
326
|
+
*/
|
|
327
|
+
onSelect: (prefix: string | null) => void;
|
|
328
|
+
}
|
|
329
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/explorer/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAE1C;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IAEnB;;OAEG;IACH,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M,KAAK,IAAI,CAAC;IAErC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,QAAQ,EAAE,WAAW,EAAE,CAAC;IAExB;;OAEG;IACH,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAExB;;OAEG;IACH,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;CAC3C"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hook for managing Icon Explorer state
|
|
3
|
+
*/
|
|
4
|
+
import type { ExplorerConfig, ResolvedExplorerConfig, ExplorerContextValue, PreviewConfig } from './types';
|
|
5
|
+
/**
|
|
6
|
+
* Default preview configuration
|
|
7
|
+
*/
|
|
8
|
+
export declare const DEFAULT_PREVIEW_CONFIG: PreviewConfig;
|
|
9
|
+
/**
|
|
10
|
+
* Default explorer configuration
|
|
11
|
+
*/
|
|
12
|
+
export declare const DEFAULT_EXPLORER_CONFIG: ResolvedExplorerConfig;
|
|
13
|
+
/**
|
|
14
|
+
* Hook for Icon Explorer functionality
|
|
15
|
+
*/
|
|
16
|
+
export declare function useExplorer(config?: ExplorerConfig): ExplorerContextValue;
|
|
17
|
+
export default useExplorer;
|
|
18
|
+
//# sourceMappingURL=useExplorer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useExplorer.d.ts","sourceRoot":"","sources":["../../../src/explorer/useExplorer.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,KAAK,EACV,cAAc,EACd,sBAAsB,EAGtB,oBAAoB,EAEpB,aAAa,EACd,MAAM,SAAS,CAAC;AAIjB;;GAEG;AACH,eAAO,MAAM,sBAAsB,EAAE,aAMpC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,uBAAuB,EAAE,sBAMrC,CAAC;AA+EF;;GAEG;AACH,wBAAgB,WAAW,CAAC,MAAM,CAAC,EAAE,cAAc,GAAG,oBAAoB,CA2QzE;AAED,eAAe,WAAW,CAAC"}
|
|
@@ -13,15 +13,35 @@
|
|
|
13
13
|
* ```
|
|
14
14
|
*/
|
|
15
15
|
export * from './components';
|
|
16
|
-
export type { IconProps, IconRotation, IconFlip, IconLoadingState, IconifyIconData, IconifyAPIResponse, } from './types';
|
|
16
|
+
export type { IconProps, IconRotation, IconFlip, IconLoadingState, IconifyIconData, IconifyAPIResponse, PlaceholderType, PlaceholderPreset, PlaceholderConfig, AnimationType, AnimationPreset, AnimationConfig, AnimationEasing, AnimationControls, } from './types';
|
|
17
|
+
export { Skeleton, Pulse, Shimmer, PlaceholderFactory, DEFAULT_PLACEHOLDER_CONFIG, } from './placeholder';
|
|
18
|
+
export type { PlaceholderProps, PlaceholderFactoryProps } from './placeholder';
|
|
19
|
+
export { IconThemeProvider, IconThemeContext, useIconTheme, useIconThemeValue, useMergedIconProps, DEFAULT_ICON_THEME, mergeWithDefaults, } from './theme';
|
|
20
|
+
export type { IconTheme, IconThemeProviderProps, IconThemeContextValue } from './theme';
|
|
21
|
+
export { Icon, IconAliasProvider, IconAliasContext, useIconAliasContext, useResolveIcon, createIconAliases, defineAliases, } from './alias';
|
|
22
|
+
export type { IconAliasMap, IconAliases, AliasName, GenericIconProps, IconAliasContextValue, IconAliasProviderProps, CreateIconAliasesConfig, IconAliasResult, } from './alias';
|
|
17
23
|
export { createIconSet } from './createIconSet';
|
|
18
24
|
export type { IconNameType } from './createIconSet';
|
|
25
|
+
export { AnimatedIcon, useIconAnimation, ANIMATION_PRESETS, resolveAnimation, isAnimationPreset, getEasingFunction, getDefaultDuration, getDefaultLoop, DEFAULT_ANIMATION_DURATIONS, DEFAULT_ANIMATION_LOOPS, } from './animated';
|
|
26
|
+
export type { AnimatedIconProps, AnimationState, ResolvedAnimationConfig, AnimationDirection, } from './animated';
|
|
27
|
+
export { createTabBarIcon, createTabBarIcons, tabIcon, createDrawerIcon, createDrawerIcons, createHeaderIcon, createBackIcon, createCloseIcon, createMenuIcon, useNavigationIcon, DEFAULT_NAVIGATION_PRESETS, } from './navigation';
|
|
28
|
+
export type { TabBarIconProps, DrawerIconProps, HeaderIconProps, TabBarIconConfig, DrawerIconConfig, TabBarIconFunction, DrawerIconFunction, HeaderIconFunction, HeaderIconConfig, IconSpec, SimpleTabBarIconConfig, NavigationIconPreset, UseNavigationIconOptions, UseNavigationIconReturn, } from './navigation';
|
|
19
29
|
import { CacheManager } from './cache/CacheManager';
|
|
20
30
|
export { CacheManager };
|
|
21
|
-
export {
|
|
22
|
-
export type {
|
|
31
|
+
export { configure, resetConfiguration, getConfiguration, ConfigManager, DEFAULT_CONFIG, } from './config';
|
|
32
|
+
export type { IconifyConfig, IconifyAPIConfig, CacheConfig, PerformanceConfig, ResolvedConfig, } from './config';
|
|
33
|
+
export { fetchIcon, fetchIconsBatch, parseIconName, checkAPIHealth, getAPIBaseUrl, fetchCollection, searchIconsAPI, } from './network/IconifyAPI';
|
|
34
|
+
export type { BatchFetchResult, IconifyCollectionInfo } from './network/IconifyAPI';
|
|
23
35
|
export { getNativeIconify, isNativeModuleAvailable } from './native';
|
|
24
36
|
export type { PrefetchResult, CacheStats, ModuleConstants, NativeIconifyInterface } from './native';
|
|
37
|
+
export { loadOfflineBundle, loadOfflineBundleAsync, isBundleCompatible, getBundleStats, } from './bundle';
|
|
38
|
+
export type { IconBundle, BundleLoadResult } from './bundle';
|
|
39
|
+
export { PerformanceMonitor, enablePerformanceMonitoring, disablePerformanceMonitoring, getPerformanceReport, printPerformanceReport, } from './performance';
|
|
40
|
+
export type { IconLoadEvent, LoadEventType, CacheStatistics, PerformanceSummary, PerformanceReport, PerformanceListener, } from './performance';
|
|
41
|
+
export { AccessibilityProvider, AccessibilityContext, useAccessibilityContext, useAccessibility, useAccessibleIcon, withAccessibility, defaultLabelGenerator, adjustForHighContrast, meetsContrastRequirement, getHighContrastAlternative, calculateTouchTargetPadding, DEFAULT_ACCESSIBILITY_CONFIG, } from './accessibility';
|
|
42
|
+
export type { AccessibilityConfig, ResolvedAccessibilityConfig, AccessibilityContextValue, AccessibleIconProps, AccessibilityProviderProps, UseAccessibleIconInput, UseAccessibleIconOutput, } from './accessibility';
|
|
43
|
+
export { IconExplorer, ExplorerContext, useExplorerContext, useExplorer, getAllIconSets, getIconSetByPrefix, getIconSetsByCategory, searchIconSets, generateImportStatement, generateIconJSX, POPULAR_ICON_SETS, DEFAULT_PREVIEW_CONFIG, DEFAULT_EXPLORER_CONFIG, } from './explorer';
|
|
44
|
+
export type { IconSetInfo, SearchResult, PreviewConfig, ExplorerConfig, ResolvedExplorerConfig, ExplorerState, ExplorerActions, ExplorerContextValue, IconExplorerProps, IconGridProps, IconPreviewProps, SearchBarProps, IconSetFilterProps, } from './explorer';
|
|
25
45
|
/**
|
|
26
46
|
* Prefetch multiple icons into cache
|
|
27
47
|
* Useful for preloading icons before they're needed
|
|
@@ -57,11 +77,12 @@ export declare function clearCache(): Promise<void>;
|
|
|
57
77
|
* import { getCacheStats } from 'rn-iconify';
|
|
58
78
|
*
|
|
59
79
|
* const stats = getCacheStats();
|
|
60
|
-
* console.log(`Cached: ${stats.memoryCount} in memory, ${stats.diskCount} on disk`);
|
|
80
|
+
* console.log(`Cached: ${stats.memoryCount} in memory, ${stats.bundledCount} bundled, ${stats.diskCount} on disk`);
|
|
61
81
|
* ```
|
|
62
82
|
*/
|
|
63
83
|
export declare function getCacheStats(): {
|
|
64
84
|
memoryCount: number;
|
|
85
|
+
bundledCount: number;
|
|
65
86
|
diskCount: number;
|
|
66
87
|
diskSizeBytes: number;
|
|
67
88
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,cAAc,cAAc,CAAC;AAG7B,YAAY,EACV,SAAS,EACT,YAAY,EACZ,QAAQ,EACR,gBAAgB,EAChB,eAAe,EACf,kBAAkB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,cAAc,cAAc,CAAC;AAG7B,YAAY,EACV,SAAS,EACT,YAAY,EACZ,QAAQ,EACR,gBAAgB,EAChB,eAAe,EACf,kBAAkB,EAClB,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EAEjB,aAAa,EACb,eAAe,EACf,eAAe,EACf,eAAe,EACf,iBAAiB,GAClB,MAAM,SAAS,CAAC;AAGjB,OAAO,EACL,QAAQ,EACR,KAAK,EACL,OAAO,EACP,kBAAkB,EAClB,0BAA0B,GAC3B,MAAM,eAAe,CAAC;AACvB,YAAY,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAG/E,OAAO,EACL,iBAAiB,EACjB,gBAAgB,EAChB,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,SAAS,CAAC;AACjB,YAAY,EAAE,SAAS,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAGxF,OAAO,EACL,IAAI,EACJ,iBAAiB,EACjB,gBAAgB,EAChB,mBAAmB,EACnB,cAAc,EACd,iBAAiB,EACjB,aAAa,GACd,MAAM,SAAS,CAAC;AACjB,YAAY,EACV,YAAY,EACZ,WAAW,EACX,SAAS,EACT,gBAAgB,EAChB,qBAAqB,EACrB,sBAAsB,EACtB,uBAAuB,EACvB,eAAe,GAChB,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAGpD,OAAO,EACL,YAAY,EACZ,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,iB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M,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC,CAElD;AAED;;;;;;;;;GASG;AACH,wBAAsB,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC,CAGhD;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,aAAa,IAAI;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;CACvB,CAEA"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* createDrawerIcon - Helper for React Navigation drawer icons
|
|
3
|
+
* Creates a drawerIcon function for drawer navigation items
|
|
4
|
+
*/
|
|
5
|
+
import type { DrawerIconConfig, DrawerIconFunction } from './types';
|
|
6
|
+
type IconSpec = string;
|
|
7
|
+
/**
|
|
8
|
+
* Create a drawer icon function for React Navigation
|
|
9
|
+
*
|
|
10
|
+
* @example Simple usage
|
|
11
|
+
* ```tsx
|
|
12
|
+
* import { createDrawerIcon } from 'rn-iconify/navigation';
|
|
13
|
+
*
|
|
14
|
+
* <Drawer.Screen
|
|
15
|
+
* name="Home"
|
|
16
|
+
* component={HomeScreen}
|
|
17
|
+
* options={{
|
|
18
|
+
* drawerIcon: createDrawerIcon('mdi:home'),
|
|
19
|
+
* }}
|
|
20
|
+
* />
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* @example Different icons for focused/unfocused
|
|
24
|
+
* ```tsx
|
|
25
|
+
* <Drawer.Screen
|
|
26
|
+
* options={{
|
|
27
|
+
* drawerIcon: createDrawerIcon({
|
|
28
|
+
* icon: 'mdi:home-outline',
|
|
29
|
+
* focusedIcon: 'mdi:home',
|
|
30
|
+
* }),
|
|
31
|
+
* }}
|
|
32
|
+
* />
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
35
|
+
* @example With custom size
|
|
36
|
+
* ```tsx
|
|
37
|
+
* <Drawer.Screen
|
|
38
|
+
* options={{
|
|
39
|
+
* drawerIcon: createDrawerIcon({
|
|
40
|
+
* icon: 'mdi:settings',
|
|
41
|
+
* size: 28,
|
|
42
|
+
* }),
|
|
43
|
+
* }}
|
|
44
|
+
* />
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
export declare function createDrawerIcon(config: IconSpec | DrawerIconConfig): DrawerIconFunction;
|
|
48
|
+
/**
|
|
49
|
+
* Create multiple drawer icons at once
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* ```tsx
|
|
53
|
+
* import { createDrawerIcons } from 'rn-iconify/navigation';
|
|
54
|
+
*
|
|
55
|
+
* const drawerIcons = createDrawerIcons({
|
|
56
|
+
* Home: 'mdi:home',
|
|
57
|
+
* Profile: 'mdi:account',
|
|
58
|
+
* Settings: {
|
|
59
|
+
* icon: 'mdi:cog-outline',
|
|
60
|
+
* focusedIcon: 'mdi:cog',
|
|
61
|
+
* },
|
|
62
|
+
* });
|
|
63
|
+
*
|
|
64
|
+
* <Drawer.Screen
|
|
65
|
+
* name="Home"
|
|
66
|
+
* options={{ drawerIcon: drawerIcons.Home }}
|
|
67
|
+
* />
|
|
68
|
+
* ```
|
|
69
|
+
*/
|
|
70
|
+
export declare function createDrawerIcons<T extends Record<string, IconSpec | DrawerIconConfig>>(configs: T): {
|
|
71
|
+
[K in keyof T]: DrawerIconFunction;
|
|
72
|
+
};
|
|
73
|
+
export default createDrawerIcon;
|
|
74
|
+
//# sourceMappingURL=createDrawerIcon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createDrawerIcon.d.ts","sourceRoot":"","sources":["../../../src/navigation/createDrawerIcon.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,KAAK,EAAmB,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAGrF,KAAK,QAAQ,GAAG,MAAM,CAAC;AAYvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,QAAQ,GAAG,gBAAgB,GAAG,kBAAkB,CAcxF;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,QAAQ,GAAG,gBAAgB,CAAC,EACrF,OAAO,EAAE,CAAC,GACT;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,kBAAkB;CAAE,CAQxC;AAED,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* createHeaderIcon - Helper for React Navigation header icons
|
|
3
|
+
* Creates header icons for headerLeft, headerRight, etc.
|
|
4
|
+
*/
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import type { HeaderIconProps } from './types';
|
|
7
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
8
|
+
/**
|
|
9
|
+
* Configuration for header icon
|
|
10
|
+
*/
|
|
11
|
+
export interface HeaderIconConfig {
|
|
12
|
+
/**
|
|
13
|
+
* Icon name (full name or alias)
|
|
14
|
+
*/
|
|
15
|
+
icon: string;
|
|
16
|
+
/**
|
|
17
|
+
* Icon size
|
|
18
|
+
* @default 24
|
|
19
|
+
*/
|
|
20
|
+
size?: number;
|
|
21
|
+
/**
|
|
22
|
+
* Icon color (uses tintColor from navigation if not provided)
|
|
23
|
+
*/
|
|
24
|
+
color?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Callback when icon is pressed
|
|
27
|
+
*/
|
|
28
|
+
onPress?: () => void;
|
|
29
|
+
/**
|
|
30
|
+
* Container style
|
|
31
|
+
*/
|
|
32
|
+
style?: StyleProp<ViewStyle>;
|
|
33
|
+
/**
|
|
34
|
+
* Accessibility label
|
|
35
|
+
*/
|
|
36
|
+
accessibilityLabel?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Hit slop for touch area
|
|
39
|
+
*/
|
|
40
|
+
hitSlop?: {
|
|
41
|
+
top?: number;
|
|
42
|
+
bottom?: number;
|
|
43
|
+
left?: number;
|
|
44
|
+
right?: number;
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Create a header icon component for React Navigation
|
|
49
|
+
*
|
|
50
|
+
* @example headerRight with back action
|
|
51
|
+
* ```tsx
|
|
52
|
+
* import { createHeaderIcon } from 'rn-iconify/navigation';
|
|
53
|
+
*
|
|
54
|
+
* <Stack.Screen
|
|
55
|
+
* name="Details"
|
|
56
|
+
* options={({ navigation }) => ({
|
|
57
|
+
* headerRight: createHeaderIcon({
|
|
58
|
+
* icon: 'mdi:close',
|
|
59
|
+
* onPress: () => navigation.goBack(),
|
|
60
|
+
* }),
|
|
61
|
+
* })}
|
|
62
|
+
* />
|
|
63
|
+
* ```
|
|
64
|
+
*
|
|
65
|
+
* @example headerLeft with menu
|
|
66
|
+
* ```tsx
|
|
67
|
+
* <Stack.Screen
|
|
68
|
+
* options={({ navigation }) => ({
|
|
69
|
+
* headerLeft: createHeaderIcon({
|
|
70
|
+
* icon: 'mdi:menu',
|
|
71
|
+
* onPress: () => navigation.openDrawer(),
|
|
72
|
+
* accessibilityLabel: 'Open menu',
|
|
73
|
+
* }),
|
|
74
|
+
* })}
|
|
75
|
+
* />
|
|
76
|
+
* ```
|
|
77
|
+
*
|
|
78
|
+
* @example Custom styling
|
|
79
|
+
* ```tsx
|
|
80
|
+
* <Stack.Screen
|
|
81
|
+
* options={{
|
|
82
|
+
* headerRight: createHeaderIcon({
|
|
83
|
+
* icon: 'mdi:dots-vertical',
|
|
84
|
+
* size: 28,
|
|
85
|
+
* color: '#007AFF',
|
|
86
|
+
* style: { marginRight: 8 },
|
|
87
|
+
* }),
|
|
88
|
+
* }}
|
|
89
|
+
* />
|
|
90
|
+
* ```
|
|
91
|
+
*/
|
|
92
|
+
export declare function createHeaderIcon(config: HeaderIconConfig): (props: HeaderIconProps) => React.JSX.Element;
|
|
93
|
+
/**
|
|
94
|
+
* Create a back button icon for navigation headers
|
|
95
|
+
*
|
|
96
|
+
* @example
|
|
97
|
+
* ```tsx
|
|
98
|
+
* import { createBackIcon } from 'rn-iconify/navigation';
|
|
99
|
+
*
|
|
100
|
+
* <Stack.Screen
|
|
101
|
+
* options={({ navigation }) => ({
|
|
102
|
+
* headerLeft: createBackIcon({
|
|
103
|
+
* onPress: () => navigation.goBack(),
|
|
104
|
+
* }),
|
|
105
|
+
* })}
|
|
106
|
+
* />
|
|
107
|
+
* ```
|
|
108
|
+
*/
|
|
109
|
+
export declare function createBackIcon(options?: Omit<HeaderIconConfig, 'icon'>): (props: HeaderIconProps) => React.JSX.Element;
|
|
110
|
+
/**
|
|
111
|
+
* Create a close button icon for modal screens
|
|
112
|
+
*
|
|
113
|
+
* @example
|
|
114
|
+
* ```tsx
|
|
115
|
+
* import { createCloseIcon } from 'rn-iconify/navigation';
|
|
116
|
+
*
|
|
117
|
+
* <Stack.Screen
|
|
118
|
+
* options={({ navigation }) => ({
|
|
119
|
+
* headerRight: createCloseIcon({
|
|
120
|
+
* onPress: () => navigation.goBack(),
|
|
121
|
+
* }),
|
|
122
|
+
* })}
|
|
123
|
+
* />
|
|
124
|
+
* ```
|
|
125
|
+
*/
|
|
126
|
+
export declare function createCloseIcon(options?: Omit<HeaderIconConfig, 'icon'>): (props: HeaderIconProps) => React.JSX.Element;
|
|
127
|
+
/**
|
|
128
|
+
* Create a menu button icon for opening drawers
|
|
129
|
+
*
|
|
130
|
+
* @example
|
|
131
|
+
* ```tsx
|
|
132
|
+
* import { createMenuIcon } from 'rn-iconify/navigation';
|
|
133
|
+
*
|
|
134
|
+
* <Stack.Screen
|
|
135
|
+
* options={({ navigation }) => ({
|
|
136
|
+
* headerLeft: createMenuIcon({
|
|
137
|
+
* onPress: () => navigation.openDrawer(),
|
|
138
|
+
* }),
|
|
139
|
+
* })}
|
|
140
|
+
* />
|
|
141
|
+
* ```
|
|
142
|
+
*/
|
|
143
|
+
export declare function createMenuIcon(options?: Omit<HeaderIconConfig, 'icon'>): (props: HeaderIconProps) => React.JSX.Element;
|
|
144
|
+
export default createHeaderIcon;
|
|
145
|
+
//# sourceMappingURL=createHeaderIcon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createHeaderIcon.d.ts","sourceRoot":"","sources":["../../../src/navigation/createHeaderIcon.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAE7B;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B;;OAEG;IACH,OAAO,CAAC,EAAE;QAAE,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAC5E;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,gBAAgB,IAW5B,OAAO,eAAe,uBAwBlD;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,cAAc,CAAC,OAAO,GAAE,IAAI,CAAC,gBAAgB,EAAE,MAAM,CAAM,WA1CvC,eAAe,uBAgDlD;AAED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