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,844 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Icon Explorer Component
|
|
3
|
+
* Development tool for exploring and testing icons
|
|
4
|
+
* Mobile-first responsive design with dark mode support
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```tsx
|
|
8
|
+
* import { IconExplorer } from 'rn-iconify/explorer';
|
|
9
|
+
*
|
|
10
|
+
* // Only render in development
|
|
11
|
+
* if (__DEV__) {
|
|
12
|
+
* return <IconExplorer onIconSelect={(name) => console.log(name)} />;
|
|
13
|
+
* }
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import React, { createContext, useContext } from 'react';
|
|
18
|
+
import {
|
|
19
|
+
View,
|
|
20
|
+
Text,
|
|
21
|
+
TextInput,
|
|
22
|
+
TouchableOpacity,
|
|
23
|
+
ScrollView,
|
|
24
|
+
FlatList,
|
|
25
|
+
StyleSheet,
|
|
26
|
+
Modal,
|
|
27
|
+
useColorScheme,
|
|
28
|
+
Dimensions,
|
|
29
|
+
SafeAreaView,
|
|
30
|
+
Pressable,
|
|
31
|
+
} from 'react-native';
|
|
32
|
+
import type { IconExplorerProps, ExplorerContextValue, SearchResult, IconSetInfo } from './types';
|
|
33
|
+
import { useExplorer } from './useExplorer';
|
|
34
|
+
import { generateIconJSX, generateImportStatement } from './iconSets';
|
|
35
|
+
import { IconRenderer } from '../IconRenderer';
|
|
36
|
+
|
|
37
|
+
const { width: SCREEN_WIDTH } = Dimensions.get('window');
|
|
38
|
+
const NUM_COLUMNS = SCREEN_WIDTH > 500 ? 5 : 4;
|
|
39
|
+
const GRID_ITEM_SIZE = (SCREEN_WIDTH - 32 - (NUM_COLUMNS - 1) * 8) / NUM_COLUMNS;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Theme colors
|
|
43
|
+
*/
|
|
44
|
+
interface ThemeColors {
|
|
45
|
+
background: string;
|
|
46
|
+
surface: string;
|
|
47
|
+
surfaceSecondary: string;
|
|
48
|
+
border: string;
|
|
49
|
+
text: string;
|
|
50
|
+
textSecondary: string;
|
|
51
|
+
textTertiary: string;
|
|
52
|
+
primary: string;
|
|
53
|
+
primaryText: string;
|
|
54
|
+
error: string;
|
|
55
|
+
codeBackground: string;
|
|
56
|
+
codeText: string;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
const lightTheme: ThemeColors = {
|
|
60
|
+
background: '#F9FAFB',
|
|
61
|
+
surface: '#FFFFFF',
|
|
62
|
+
surfaceSecondary: '#F3F4F6',
|
|
63
|
+
border: '#E5E7EB',
|
|
64
|
+
text: '#111827',
|
|
65
|
+
textSecondary: '#6B7280',
|
|
66
|
+
textTertiary: '#9CA3AF',
|
|
67
|
+
primary: '#6366F1',
|
|
68
|
+
primaryText: '#FFFFFF',
|
|
69
|
+
error: '#EF4444',
|
|
70
|
+
codeBackground: '#1F2937',
|
|
71
|
+
codeText: '#E5E7EB',
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
const darkTheme: ThemeColors = {
|
|
75
|
+
background: '#111827',
|
|
76
|
+
surface: '#1F2937',
|
|
77
|
+
surfaceSecondary: '#374151',
|
|
78
|
+
border: '#374151',
|
|
79
|
+
text: '#F9FAFB',
|
|
80
|
+
textSecondary: '#D1D5DB',
|
|
81
|
+
textTertiary: '#9CA3AF',
|
|
82
|
+
primary: '#818CF8',
|
|
83
|
+
primaryText: '#FFFFFF',
|
|
84
|
+
error: '#F87171',
|
|
85
|
+
codeBackground: '#0F172A',
|
|
86
|
+
codeText: '#E2E8F0',
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Explorer Context with theme
|
|
91
|
+
*/
|
|
92
|
+
interface ExplorerContextWithTheme extends ExplorerContextValue {
|
|
93
|
+
theme: ThemeColors;
|
|
94
|
+
isDark: boolean;
|
|
95
|
+
closePreview: () => void;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export const ExplorerContext = createContext<ExplorerContextWithTheme | null>(null);
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Hook to access explorer context
|
|
102
|
+
*/
|
|
103
|
+
export function useExplorerContext(): ExplorerContextWithTheme {
|
|
104
|
+
const context = useContext(ExplorerContext);
|
|
105
|
+
if (!context) {
|
|
106
|
+
throw new Error('useExplorerContext must be used within IconExplorer');
|
|
107
|
+
}
|
|
108
|
+
return context;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Search Bar Component
|
|
113
|
+
*/
|
|
114
|
+
function SearchBar() {
|
|
115
|
+
const { query, setQuery, theme } = useExplorerContext();
|
|
116
|
+
|
|
117
|
+
return (
|
|
118
|
+
<View style={[styles.searchBar, { backgroundColor: theme.surface, borderColor: theme.border }]}>
|
|
119
|
+
<View style={[styles.searchIconContainer, { backgroundColor: theme.surfaceSecondary }]}>
|
|
120
|
+
<IconRenderer iconName="mdi:magnify" size={20} color={theme.textSecondary} />
|
|
121
|
+
</View>
|
|
122
|
+
<TextInput
|
|
123
|
+
style={[styles.searchInput, { color: theme.text }]}
|
|
124
|
+
value={query}
|
|
125
|
+
onChangeText={setQuery}
|
|
126
|
+
placeholder="Search icons..."
|
|
127
|
+
placeholderTextColor={theme.textTertiary}
|
|
128
|
+
autoCorrect={false}
|
|
129
|
+
autoCapitalize="none"
|
|
130
|
+
/>
|
|
131
|
+
{query.length > 0 && (
|
|
132
|
+
<TouchableOpacity
|
|
133
|
+
style={[styles.clearButton, { backgroundColor: theme.surfaceSecondary }]}
|
|
134
|
+
onPress={() => setQuery('')}
|
|
135
|
+
>
|
|
136
|
+
<IconRenderer iconName="mdi:close" size={16} color={theme.textSecondary} />
|
|
137
|
+
</TouchableOpacity>
|
|
138
|
+
)}
|
|
139
|
+
</View>
|
|
140
|
+
);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Icon Set Filter Component
|
|
145
|
+
*/
|
|
146
|
+
function IconSetFilter() {
|
|
147
|
+
const { iconSets, activeIconSet, filterByIconSet, theme } = useExplorerContext();
|
|
148
|
+
|
|
149
|
+
return (
|
|
150
|
+
<ScrollView
|
|
151
|
+
horizontal
|
|
152
|
+
showsHorizontalScrollIndicator={false}
|
|
153
|
+
style={styles.filterContainer}
|
|
154
|
+
contentContainerStyle={styles.filterContent}
|
|
155
|
+
>
|
|
156
|
+
<TouchableOpacity
|
|
157
|
+
style={[
|
|
158
|
+
styles.filterChip,
|
|
159
|
+
{ backgroundColor: theme.surface, borderColor: theme.border },
|
|
160
|
+
!activeIconSet && { backgroundColor: theme.primary, borderColor: theme.primary },
|
|
161
|
+
]}
|
|
162
|
+
onPress={() => filterByIconSet(null)}
|
|
163
|
+
>
|
|
164
|
+
<Text
|
|
165
|
+
style={[
|
|
166
|
+
styles.filterChipText,
|
|
167
|
+
{ color: theme.textSecondary },
|
|
168
|
+
!activeIconSet && { color: theme.primaryText },
|
|
169
|
+
]}
|
|
170
|
+
>
|
|
171
|
+
All
|
|
172
|
+
</Text>
|
|
173
|
+
</TouchableOpacity>
|
|
174
|
+
{iconSets.map((set: IconSetInfo) => (
|
|
175
|
+
<TouchableOpacity
|
|
176
|
+
key={set.prefix}
|
|
177
|
+
style={[
|
|
178
|
+
styles.filterChip,
|
|
179
|
+
{ backgroundColor: theme.surface, borderColor: theme.border },
|
|
180
|
+
activeIconSet === set.prefix && {
|
|
181
|
+
backgroundColor: theme.primary,
|
|
182
|
+
borderColor: theme.primary,
|
|
183
|
+
},
|
|
184
|
+
]}
|
|
185
|
+
onPress={() => filterByIconSet(set.prefix)}
|
|
186
|
+
>
|
|
187
|
+
<Text
|
|
188
|
+
style={[
|
|
189
|
+
styles.filterChipText,
|
|
190
|
+
{ color: theme.textSecondary },
|
|
191
|
+
activeIconSet === set.prefix && { color: theme.primaryText },
|
|
192
|
+
]}
|
|
193
|
+
>
|
|
194
|
+
{set.prefix}
|
|
195
|
+
</Text>
|
|
196
|
+
</TouchableOpacity>
|
|
197
|
+
))}
|
|
198
|
+
</ScrollView>
|
|
199
|
+
);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* Icon Grid Item Component - Renders actual icons
|
|
204
|
+
*/
|
|
205
|
+
function IconGridItem({ item }: { item: SearchResult }) {
|
|
206
|
+
const { selectedIcon, selectIcon, theme, isDark } = useExplorerContext();
|
|
207
|
+
const isSelected = selectedIcon === item.fullName;
|
|
208
|
+
|
|
209
|
+
return (
|
|
210
|
+
<TouchableOpacity
|
|
211
|
+
style={[
|
|
212
|
+
styles.gridItem,
|
|
213
|
+
{ backgroundColor: theme.surfaceSecondary },
|
|
214
|
+
isSelected && {
|
|
215
|
+
backgroundColor: isDark ? '#312E81' : '#EEF2FF',
|
|
216
|
+
borderWidth: 2,
|
|
217
|
+
borderColor: theme.primary,
|
|
218
|
+
},
|
|
219
|
+
]}
|
|
220
|
+
onPress={() => selectIcon(item.fullName)}
|
|
221
|
+
activeOpacity={0.7}
|
|
222
|
+
>
|
|
223
|
+
<View style={styles.iconContainer}>
|
|
224
|
+
<IconRenderer
|
|
225
|
+
iconName={item.fullName}
|
|
226
|
+
size={28}
|
|
227
|
+
color={isSelected ? theme.primary : theme.text}
|
|
228
|
+
placeholder="skeleton"
|
|
229
|
+
placeholderColor={theme.textTertiary}
|
|
230
|
+
/>
|
|
231
|
+
</View>
|
|
232
|
+
<Text
|
|
233
|
+
style={[styles.iconName, { color: isSelected ? theme.primary : theme.textSecondary }]}
|
|
234
|
+
numberOfLines={1}
|
|
235
|
+
ellipsizeMode="middle"
|
|
236
|
+
>
|
|
237
|
+
{item.name}
|
|
238
|
+
</Text>
|
|
239
|
+
</TouchableOpacity>
|
|
240
|
+
);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* Icon Grid Component
|
|
245
|
+
*/
|
|
246
|
+
function IconGrid() {
|
|
247
|
+
const { results, isLoading, error, theme, query, collectionsLoaded } = useExplorerContext();
|
|
248
|
+
|
|
249
|
+
if (isLoading && !collectionsLoaded) {
|
|
250
|
+
return (
|
|
251
|
+
<View style={styles.centerContainer}>
|
|
252
|
+
<IconRenderer iconName="mdi:loading" size={40} color={theme.primary} animate="spin" />
|
|
253
|
+
<Text style={[styles.loadingText, { color: theme.textSecondary }]}>
|
|
254
|
+
Loading icon collections...
|
|
255
|
+
</Text>
|
|
256
|
+
<Text style={[styles.loadingHint, { color: theme.textTertiary }]}>
|
|
257
|
+
Fetching all available icons from Iconify API
|
|
258
|
+
</Text>
|
|
259
|
+
</View>
|
|
260
|
+
);
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
if (isLoading) {
|
|
264
|
+
return (
|
|
265
|
+
<View style={styles.centerContainer}>
|
|
266
|
+
<IconRenderer iconName="mdi:loading" size={32} color={theme.primary} animate="spin" />
|
|
267
|
+
<Text style={[styles.loadingText, { color: theme.textSecondary }]}>Searching...</Text>
|
|
268
|
+
</View>
|
|
269
|
+
);
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
if (error) {
|
|
273
|
+
return (
|
|
274
|
+
<View style={styles.centerContainer}>
|
|
275
|
+
<IconRenderer iconName="mdi:alert-circle" size={48} color={theme.error} />
|
|
276
|
+
<Text style={[styles.errorText, { color: theme.error }]}>{error}</Text>
|
|
277
|
+
</View>
|
|
278
|
+
);
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
if (results.length === 0) {
|
|
282
|
+
return (
|
|
283
|
+
<View style={styles.centerContainer}>
|
|
284
|
+
<IconRenderer iconName="mdi:magnify-close" size={64} color={theme.textTertiary} />
|
|
285
|
+
<Text style={[styles.emptyText, { color: theme.textSecondary }]}>
|
|
286
|
+
{query ? `No icons found for "${query}"` : 'Loading icons...'}
|
|
287
|
+
</Text>
|
|
288
|
+
{query && (
|
|
289
|
+
<Text style={[styles.emptyHint, { color: theme.textTertiary }]}>
|
|
290
|
+
Try a different search term
|
|
291
|
+
</Text>
|
|
292
|
+
)}
|
|
293
|
+
</View>
|
|
294
|
+
);
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
return (
|
|
298
|
+
<FlatList
|
|
299
|
+
data={results}
|
|
300
|
+
keyExtractor={(item) => item.fullName}
|
|
301
|
+
renderItem={({ item }) => <IconGridItem item={item} />}
|
|
302
|
+
numColumns={NUM_COLUMNS}
|
|
303
|
+
contentContainerStyle={styles.gridContent}
|
|
304
|
+
showsVerticalScrollIndicator={false}
|
|
305
|
+
columnWrapperStyle={styles.gridRow}
|
|
306
|
+
/>
|
|
307
|
+
);
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* Preview Modal Component - Bottom sheet style
|
|
312
|
+
*/
|
|
313
|
+
function PreviewModal() {
|
|
314
|
+
const {
|
|
315
|
+
selectedIcon,
|
|
316
|
+
previewSize,
|
|
317
|
+
previewColor,
|
|
318
|
+
setPreviewSize,
|
|
319
|
+
setPreviewColor,
|
|
320
|
+
copyIconCode,
|
|
321
|
+
config,
|
|
322
|
+
theme,
|
|
323
|
+
isDark,
|
|
324
|
+
closePreview,
|
|
325
|
+
} = useExplorerContext();
|
|
326
|
+
|
|
327
|
+
if (!selectedIcon) return null;
|
|
328
|
+
|
|
329
|
+
const sizes = config.preview.sizes;
|
|
330
|
+
const colors = config.preview.colors;
|
|
331
|
+
|
|
332
|
+
return (
|
|
333
|
+
<Modal
|
|
334
|
+
visible={!!selectedIcon}
|
|
335
|
+
animationType="slide"
|
|
336
|
+
transparent
|
|
337
|
+
presentationStyle="overFullScreen"
|
|
338
|
+
>
|
|
339
|
+
<Pressable style={styles.modalOverlay} onPress={closePreview}>
|
|
340
|
+
<Pressable
|
|
341
|
+
style={[styles.previewModal, { backgroundColor: theme.surface }]}
|
|
342
|
+
onPress={() => {}}
|
|
343
|
+
>
|
|
344
|
+
{/* Handle bar */}
|
|
345
|
+
<View style={styles.handleBarContainer}>
|
|
346
|
+
<View style={[styles.handleBar, { backgroundColor: theme.border }]} />
|
|
347
|
+
</View>
|
|
348
|
+
|
|
349
|
+
{/* Header */}
|
|
350
|
+
<View style={styles.previewHeader}>
|
|
351
|
+
<Text style={[styles.previewTitle, { color: theme.text }]} numberOfLines={1}>
|
|
352
|
+
{selectedIcon}
|
|
353
|
+
</Text>
|
|
354
|
+
<TouchableOpacity
|
|
355
|
+
style={[styles.closePreviewButton, { backgroundColor: theme.surfaceSecondary }]}
|
|
356
|
+
onPress={closePreview}
|
|
357
|
+
>
|
|
358
|
+
<IconRenderer iconName="mdi:close" size={20} color={theme.textSecondary} />
|
|
359
|
+
</TouchableOpacity>
|
|
360
|
+
</View>
|
|
361
|
+
|
|
362
|
+
{/* Large Preview */}
|
|
363
|
+
<View
|
|
364
|
+
style={[
|
|
365
|
+
styles.largePreviewContainer,
|
|
366
|
+
{ backgroundColor: isDark ? '#0F172A' : '#F8FAFC' },
|
|
367
|
+
]}
|
|
368
|
+
>
|
|
369
|
+
<IconRenderer iconName={selectedIcon} size={previewSize} color={previewColor} />
|
|
370
|
+
</View>
|
|
371
|
+
|
|
372
|
+
{/* Size Selector */}
|
|
373
|
+
<View style={styles.selectorRow}>
|
|
374
|
+
<Text style={[styles.selectorLabel, { color: theme.textSecondary }]}>Size</Text>
|
|
375
|
+
<View style={styles.selectorOptions}>
|
|
376
|
+
{sizes.map((size) => (
|
|
377
|
+
<TouchableOpacity
|
|
378
|
+
key={size}
|
|
379
|
+
style={[
|
|
380
|
+
styles.selectorButton,
|
|
381
|
+
{ backgroundColor: theme.surfaceSecondary },
|
|
382
|
+
previewSize === size && { backgroundColor: theme.primary },
|
|
383
|
+
]}
|
|
384
|
+
onPress={() => setPreviewSize(size)}
|
|
385
|
+
>
|
|
386
|
+
<Text
|
|
387
|
+
style={[
|
|
388
|
+
styles.selectorButtonText,
|
|
389
|
+
{ color: theme.text },
|
|
390
|
+
previewSize === size && { color: theme.primaryText },
|
|
391
|
+
]}
|
|
392
|
+
>
|
|
393
|
+
{size}
|
|
394
|
+
</Text>
|
|
395
|
+
</TouchableOpacity>
|
|
396
|
+
))}
|
|
397
|
+
</View>
|
|
398
|
+
</View>
|
|
399
|
+
|
|
400
|
+
{/* Color Selector */}
|
|
401
|
+
<View style={styles.selectorRow}>
|
|
402
|
+
<Text style={[styles.selectorLabel, { color: theme.textSecondary }]}>Color</Text>
|
|
403
|
+
<View style={styles.selectorOptions}>
|
|
404
|
+
{colors.map((color) => (
|
|
405
|
+
<TouchableOpacity
|
|
406
|
+
key={color}
|
|
407
|
+
style={[
|
|
408
|
+
styles.colorButton,
|
|
409
|
+
{ backgroundColor: color, borderColor: 'transparent' },
|
|
410
|
+
previewColor === color && { borderColor: theme.text, borderWidth: 3 },
|
|
411
|
+
]}
|
|
412
|
+
onPress={() => setPreviewColor(color)}
|
|
413
|
+
/>
|
|
414
|
+
))}
|
|
415
|
+
</View>
|
|
416
|
+
</View>
|
|
417
|
+
|
|
418
|
+
{/* Code Preview */}
|
|
419
|
+
<View style={[styles.codePreview, { backgroundColor: theme.codeBackground }]}>
|
|
420
|
+
<Text style={[styles.codeText, { color: theme.codeText }]}>
|
|
421
|
+
{generateImportStatement(selectedIcon)}
|
|
422
|
+
</Text>
|
|
423
|
+
<Text style={[styles.codeText, { color: theme.codeText }]}>
|
|
424
|
+
{generateIconJSX(selectedIcon, previewSize, previewColor)}
|
|
425
|
+
</Text>
|
|
426
|
+
</View>
|
|
427
|
+
|
|
428
|
+
{/* Copy Buttons */}
|
|
429
|
+
<View style={styles.buttonRow}>
|
|
430
|
+
<TouchableOpacity
|
|
431
|
+
style={[styles.copyButton, { backgroundColor: theme.primary }]}
|
|
432
|
+
onPress={() => copyIconCode(selectedIcon, 'jsx')}
|
|
433
|
+
>
|
|
434
|
+
<IconRenderer iconName="mdi:content-copy" size={18} color={theme.primaryText} />
|
|
435
|
+
<Text style={[styles.copyButtonText, { color: theme.primaryText }]}>Copy JSX</Text>
|
|
436
|
+
</TouchableOpacity>
|
|
437
|
+
<TouchableOpacity
|
|
438
|
+
style={[
|
|
439
|
+
styles.copyButton,
|
|
440
|
+
{
|
|
441
|
+
backgroundColor: theme.surfaceSecondary,
|
|
442
|
+
borderWidth: 1,
|
|
443
|
+
borderColor: theme.border,
|
|
444
|
+
},
|
|
445
|
+
]}
|
|
446
|
+
onPress={() => copyIconCode(selectedIcon, 'import')}
|
|
447
|
+
>
|
|
448
|
+
<IconRenderer iconName="mdi:code-tags" size={18} color={theme.text} />
|
|
449
|
+
<Text style={[styles.copyButtonText, { color: theme.text }]}>With Import</Text>
|
|
450
|
+
</TouchableOpacity>
|
|
451
|
+
</View>
|
|
452
|
+
</Pressable>
|
|
453
|
+
</Pressable>
|
|
454
|
+
</Modal>
|
|
455
|
+
);
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* Results Count Component
|
|
460
|
+
*/
|
|
461
|
+
function ResultsCount() {
|
|
462
|
+
const { results, isLoading, theme, totalIcons, collectionsLoaded, config } = useExplorerContext();
|
|
463
|
+
|
|
464
|
+
if (isLoading && !collectionsLoaded) return null;
|
|
465
|
+
|
|
466
|
+
const maxResults = config.maxResults;
|
|
467
|
+
const showingText =
|
|
468
|
+
results.length === maxResults
|
|
469
|
+
? `Showing ${results.length} of ${totalIcons.toLocaleString()}`
|
|
470
|
+
: `${results.length} icon${results.length !== 1 ? 's' : ''}`;
|
|
471
|
+
|
|
472
|
+
return (
|
|
473
|
+
<View style={styles.resultsCountContainer}>
|
|
474
|
+
<Text style={[styles.resultsCount, { color: theme.textTertiary }]}>
|
|
475
|
+
{showingText}
|
|
476
|
+
{collectionsLoaded && totalIcons > 0 && (
|
|
477
|
+
<Text style={{ color: theme.textTertiary }}>
|
|
478
|
+
{' '}
|
|
479
|
+
({totalIcons.toLocaleString()} total available)
|
|
480
|
+
</Text>
|
|
481
|
+
)}
|
|
482
|
+
</Text>
|
|
483
|
+
</View>
|
|
484
|
+
);
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
/**
|
|
488
|
+
* Icon Explorer Component
|
|
489
|
+
* Development tool for exploring and testing icons
|
|
490
|
+
*/
|
|
491
|
+
export function IconExplorer({
|
|
492
|
+
visible = true,
|
|
493
|
+
onClose,
|
|
494
|
+
style,
|
|
495
|
+
...config
|
|
496
|
+
}: IconExplorerProps): React.ReactElement | null {
|
|
497
|
+
const colorScheme = useColorScheme();
|
|
498
|
+
const isDark = colorScheme === 'dark';
|
|
499
|
+
const theme = isDark ? darkTheme : lightTheme;
|
|
500
|
+
|
|
501
|
+
const explorer = useExplorer(config);
|
|
502
|
+
|
|
503
|
+
const closePreview = () => {
|
|
504
|
+
explorer.selectIcon(null);
|
|
505
|
+
};
|
|
506
|
+
|
|
507
|
+
const contextValue: ExplorerContextWithTheme = {
|
|
508
|
+
...explorer,
|
|
509
|
+
theme,
|
|
510
|
+
isDark,
|
|
511
|
+
closePreview,
|
|
512
|
+
};
|
|
513
|
+
|
|
514
|
+
const content = (
|
|
515
|
+
<ExplorerContext.Provider value={contextValue}>
|
|
516
|
+
<SafeAreaView style={[styles.container, { backgroundColor: theme.background }, style]}>
|
|
517
|
+
{/* Header */}
|
|
518
|
+
<View
|
|
519
|
+
style={[
|
|
520
|
+
styles.header,
|
|
521
|
+
{ backgroundColor: theme.surface, borderBottomColor: theme.border },
|
|
522
|
+
]}
|
|
523
|
+
>
|
|
524
|
+
<View style={styles.headerLeft}>
|
|
525
|
+
<IconRenderer iconName="mdi:palette-outline" size={24} color={theme.primary} />
|
|
526
|
+
<Text style={[styles.headerTitle, { color: theme.text }]}>Icon Explorer</Text>
|
|
527
|
+
</View>
|
|
528
|
+
{onClose && (
|
|
529
|
+
<TouchableOpacity
|
|
530
|
+
style={[styles.closeButton, { backgroundColor: theme.surfaceSecondary }]}
|
|
531
|
+
onPress={onClose}
|
|
532
|
+
>
|
|
533
|
+
<IconRenderer iconName="mdi:close" size={20} color={theme.textSecondary} />
|
|
534
|
+
</TouchableOpacity>
|
|
535
|
+
)}
|
|
536
|
+
</View>
|
|
537
|
+
|
|
538
|
+
{/* Search */}
|
|
539
|
+
<SearchBar />
|
|
540
|
+
|
|
541
|
+
{/* Filters */}
|
|
542
|
+
<IconSetFilter />
|
|
543
|
+
|
|
544
|
+
{/* Results Count */}
|
|
545
|
+
<ResultsCount />
|
|
546
|
+
|
|
547
|
+
{/* Icon Grid - Full width */}
|
|
548
|
+
<View
|
|
549
|
+
style={[
|
|
550
|
+
styles.gridContainer,
|
|
551
|
+
{ backgroundColor: theme.surface, borderColor: theme.border },
|
|
552
|
+
]}
|
|
553
|
+
>
|
|
554
|
+
<IconGrid />
|
|
555
|
+
</View>
|
|
556
|
+
|
|
557
|
+
{/* Preview Modal */}
|
|
558
|
+
<PreviewModal />
|
|
559
|
+
</SafeAreaView>
|
|
560
|
+
</ExplorerContext.Provider>
|
|
561
|
+
);
|
|
562
|
+
|
|
563
|
+
// If used as modal
|
|
564
|
+
if (onClose) {
|
|
565
|
+
return (
|
|
566
|
+
<Modal visible={visible} animationType="slide" presentationStyle="pageSheet">
|
|
567
|
+
{content}
|
|
568
|
+
</Modal>
|
|
569
|
+
);
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
// Inline mode
|
|
573
|
+
if (!visible) return null;
|
|
574
|
+
return content;
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
/**
|
|
578
|
+
* Styles - Mobile-first design
|
|
579
|
+
*/
|
|
580
|
+
const styles = StyleSheet.create({
|
|
581
|
+
container: {
|
|
582
|
+
flex: 1,
|
|
583
|
+
},
|
|
584
|
+
header: {
|
|
585
|
+
flexDirection: 'row',
|
|
586
|
+
alignItems: 'center',
|
|
587
|
+
justifyContent: 'space-between',
|
|
588
|
+
paddingHorizontal: 16,
|
|
589
|
+
paddingVertical: 14,
|
|
590
|
+
borderBottomWidth: 1,
|
|
591
|
+
},
|
|
592
|
+
headerLeft: {
|
|
593
|
+
flexDirection: 'row',
|
|
594
|
+
alignItems: 'center',
|
|
595
|
+
gap: 10,
|
|
596
|
+
},
|
|
597
|
+
headerTitle: {
|
|
598
|
+
fontSize: 20,
|
|
599
|
+
fontWeight: '700',
|
|
600
|
+
},
|
|
601
|
+
closeButton: {
|
|
602
|
+
width: 36,
|
|
603
|
+
height: 36,
|
|
604
|
+
alignItems: 'center',
|
|
605
|
+
justifyContent: 'center',
|
|
606
|
+
borderRadius: 18,
|
|
607
|
+
},
|
|
608
|
+
searchBar: {
|
|
609
|
+
flexDirection: 'row',
|
|
610
|
+
alignItems: 'center',
|
|
611
|
+
marginHorizontal: 16,
|
|
612
|
+
marginTop: 16,
|
|
613
|
+
marginBottom: 12,
|
|
614
|
+
borderRadius: 12,
|
|
615
|
+
borderWidth: 1,
|
|
616
|
+
overflow: 'hidden',
|
|
617
|
+
},
|
|
618
|
+
searchIconContainer: {
|
|
619
|
+
paddingHorizontal: 12,
|
|
620
|
+
paddingVertical: 12,
|
|
621
|
+
},
|
|
622
|
+
searchInput: {
|
|
623
|
+
flex: 1,
|
|
624
|
+
paddingVertical: 12,
|
|
625
|
+
paddingRight: 12,
|
|
626
|
+
fontSize: 16,
|
|
627
|
+
},
|
|
628
|
+
clearButton: {
|
|
629
|
+
width: 32,
|
|
630
|
+
height: 32,
|
|
631
|
+
alignItems: 'center',
|
|
632
|
+
justifyContent: 'center',
|
|
633
|
+
borderRadius: 16,
|
|
634
|
+
marginRight: 8,
|
|
635
|
+
},
|
|
636
|
+
filterContainer: {
|
|
637
|
+
maxHeight: 48,
|
|
638
|
+
marginBottom: 8,
|
|
639
|
+
},
|
|
640
|
+
filterContent: {
|
|
641
|
+
paddingHorizontal: 16,
|
|
642
|
+
alignItems: 'center',
|
|
643
|
+
gap: 8,
|
|
644
|
+
},
|
|
645
|
+
filterChip: {
|
|
646
|
+
paddingHorizontal: 14,
|
|
647
|
+
paddingVertical: 8,
|
|
648
|
+
borderRadius: 20,
|
|
649
|
+
borderWidth: 1,
|
|
650
|
+
marginRight: 8,
|
|
651
|
+
},
|
|
652
|
+
filterChipText: {
|
|
653
|
+
fontSize: 14,
|
|
654
|
+
fontWeight: '500',
|
|
655
|
+
},
|
|
656
|
+
resultsCountContainer: {
|
|
657
|
+
paddingHorizontal: 16,
|
|
658
|
+
paddingBottom: 8,
|
|
659
|
+
},
|
|
660
|
+
resultsCount: {
|
|
661
|
+
fontSize: 13,
|
|
662
|
+
fontWeight: '500',
|
|
663
|
+
},
|
|
664
|
+
gridContainer: {
|
|
665
|
+
flex: 1,
|
|
666
|
+
marginHorizontal: 16,
|
|
667
|
+
marginBottom: 16,
|
|
668
|
+
borderRadius: 12,
|
|
669
|
+
borderWidth: 1,
|
|
670
|
+
overflow: 'hidden',
|
|
671
|
+
},
|
|
672
|
+
gridContent: {
|
|
673
|
+
padding: 12,
|
|
674
|
+
},
|
|
675
|
+
gridRow: {
|
|
676
|
+
justifyContent: 'flex-start',
|
|
677
|
+
gap: 8,
|
|
678
|
+
marginBottom: 8,
|
|
679
|
+
},
|
|
680
|
+
gridItem: {
|
|
681
|
+
width: GRID_ITEM_SIZE,
|
|
682
|
+
height: GRID_ITEM_SIZE + 20,
|
|
683
|
+
alignItems: 'center',
|
|
684
|
+
justifyContent: 'center',
|
|
685
|
+
borderRadius: 12,
|
|
686
|
+
padding: 8,
|
|
687
|
+
},
|
|
688
|
+
iconContainer: {
|
|
689
|
+
width: 40,
|
|
690
|
+
height: 40,
|
|
691
|
+
alignItems: 'center',
|
|
692
|
+
justifyContent: 'center',
|
|
693
|
+
marginBottom: 4,
|
|
694
|
+
},
|
|
695
|
+
iconName: {
|
|
696
|
+
fontSize: 10,
|
|
697
|
+
textAlign: 'center',
|
|
698
|
+
marginTop: 2,
|
|
699
|
+
},
|
|
700
|
+
centerContainer: {
|
|
701
|
+
flex: 1,
|
|
702
|
+
alignItems: 'center',
|
|
703
|
+
justifyContent: 'center',
|
|
704
|
+
padding: 24,
|
|
705
|
+
gap: 12,
|
|
706
|
+
},
|
|
707
|
+
loadingText: {
|
|
708
|
+
fontSize: 16,
|
|
709
|
+
marginTop: 8,
|
|
710
|
+
},
|
|
711
|
+
loadingHint: {
|
|
712
|
+
fontSize: 13,
|
|
713
|
+
textAlign: 'center',
|
|
714
|
+
marginTop: 4,
|
|
715
|
+
},
|
|
716
|
+
errorText: {
|
|
717
|
+
fontSize: 16,
|
|
718
|
+
textAlign: 'center',
|
|
719
|
+
marginTop: 8,
|
|
720
|
+
},
|
|
721
|
+
emptyText: {
|
|
722
|
+
fontSize: 18,
|
|
723
|
+
fontWeight: '600',
|
|
724
|
+
marginTop: 8,
|
|
725
|
+
},
|
|
726
|
+
emptyHint: {
|
|
727
|
+
fontSize: 14,
|
|
728
|
+
textAlign: 'center',
|
|
729
|
+
},
|
|
730
|
+
// Preview Modal Styles
|
|
731
|
+
modalOverlay: {
|
|
732
|
+
flex: 1,
|
|
733
|
+
backgroundColor: 'rgba(0, 0, 0, 0.5)',
|
|
734
|
+
justifyContent: 'flex-end',
|
|
735
|
+
},
|
|
736
|
+
previewModal: {
|
|
737
|
+
borderTopLeftRadius: 24,
|
|
738
|
+
borderTopRightRadius: 24,
|
|
739
|
+
paddingBottom: 34, // Safe area for iPhone
|
|
740
|
+
maxHeight: '85%',
|
|
741
|
+
},
|
|
742
|
+
handleBarContainer: {
|
|
743
|
+
alignItems: 'center',
|
|
744
|
+
paddingVertical: 12,
|
|
745
|
+
},
|
|
746
|
+
handleBar: {
|
|
747
|
+
width: 40,
|
|
748
|
+
height: 4,
|
|
749
|
+
borderRadius: 2,
|
|
750
|
+
},
|
|
751
|
+
previewHeader: {
|
|
752
|
+
flexDirection: 'row',
|
|
753
|
+
alignItems: 'center',
|
|
754
|
+
justifyContent: 'space-between',
|
|
755
|
+
paddingHorizontal: 20,
|
|
756
|
+
paddingBottom: 16,
|
|
757
|
+
},
|
|
758
|
+
previewTitle: {
|
|
759
|
+
fontSize: 16,
|
|
760
|
+
fontWeight: '600',
|
|
761
|
+
flex: 1,
|
|
762
|
+
marginRight: 12,
|
|
763
|
+
},
|
|
764
|
+
closePreviewButton: {
|
|
765
|
+
width: 32,
|
|
766
|
+
height: 32,
|
|
767
|
+
alignItems: 'center',
|
|
768
|
+
justifyContent: 'center',
|
|
769
|
+
borderRadius: 16,
|
|
770
|
+
},
|
|
771
|
+
largePreviewContainer: {
|
|
772
|
+
marginHorizontal: 20,
|
|
773
|
+
borderRadius: 16,
|
|
774
|
+
height: 120,
|
|
775
|
+
alignItems: 'center',
|
|
776
|
+
justifyContent: 'center',
|
|
777
|
+
marginBottom: 20,
|
|
778
|
+
},
|
|
779
|
+
selectorRow: {
|
|
780
|
+
paddingHorizontal: 20,
|
|
781
|
+
marginBottom: 16,
|
|
782
|
+
},
|
|
783
|
+
selectorLabel: {
|
|
784
|
+
fontSize: 13,
|
|
785
|
+
fontWeight: '600',
|
|
786
|
+
marginBottom: 10,
|
|
787
|
+
textTransform: 'uppercase',
|
|
788
|
+
letterSpacing: 0.5,
|
|
789
|
+
},
|
|
790
|
+
selectorOptions: {
|
|
791
|
+
flexDirection: 'row',
|
|
792
|
+
flexWrap: 'wrap',
|
|
793
|
+
gap: 10,
|
|
794
|
+
},
|
|
795
|
+
selectorButton: {
|
|
796
|
+
paddingHorizontal: 16,
|
|
797
|
+
paddingVertical: 8,
|
|
798
|
+
borderRadius: 8,
|
|
799
|
+
minWidth: 50,
|
|
800
|
+
alignItems: 'center',
|
|
801
|
+
},
|
|
802
|
+
selectorButtonText: {
|
|
803
|
+
fontSize: 14,
|
|
804
|
+
fontWeight: '600',
|
|
805
|
+
},
|
|
806
|
+
colorButton: {
|
|
807
|
+
width: 36,
|
|
808
|
+
height: 36,
|
|
809
|
+
borderRadius: 18,
|
|
810
|
+
borderWidth: 2,
|
|
811
|
+
},
|
|
812
|
+
codePreview: {
|
|
813
|
+
marginHorizontal: 20,
|
|
814
|
+
borderRadius: 12,
|
|
815
|
+
padding: 14,
|
|
816
|
+
marginBottom: 16,
|
|
817
|
+
},
|
|
818
|
+
codeText: {
|
|
819
|
+
fontFamily: 'monospace',
|
|
820
|
+
fontSize: 12,
|
|
821
|
+
marginBottom: 4,
|
|
822
|
+
lineHeight: 18,
|
|
823
|
+
},
|
|
824
|
+
buttonRow: {
|
|
825
|
+
flexDirection: 'row',
|
|
826
|
+
gap: 12,
|
|
827
|
+
paddingHorizontal: 20,
|
|
828
|
+
},
|
|
829
|
+
copyButton: {
|
|
830
|
+
flex: 1,
|
|
831
|
+
flexDirection: 'row',
|
|
832
|
+
alignItems: 'center',
|
|
833
|
+
justifyContent: 'center',
|
|
834
|
+
paddingVertical: 14,
|
|
835
|
+
borderRadius: 12,
|
|
836
|
+
gap: 8,
|
|
837
|
+
},
|
|
838
|
+
copyButtonText: {
|
|
839
|
+
fontSize: 15,
|
|
840
|
+
fontWeight: '600',
|
|
841
|
+
},
|
|
842
|
+
});
|
|
843
|
+
|
|
844
|
+
export default IconExplorer;
|