Kaynağa Gözat

Lucide icons improvements #5666

Aleksandr Trofimov 1 ay önce
ebeveyn
işleme
aef9562f7e
3 değiştirilmiş dosya ile 13 ekleme ve 23 silme
  1. 2 2
      package.json
  2. 2 12
      template/scripts/BxBaseIconsetLucide.php
  3. 9 9
      yarn.lock

+ 2 - 2
package.json

@@ -166,8 +166,8 @@
     "@types/react": "^19.2.18",
     "@types/react-dom": "^19.2.7",
     "bower": "^1.8.14",
-    "lucide": "1.41.0",
-    "lucide-static": "1.41.0",
+    "lucide": "^1.42.0",
+    "lucide-static": "^1.42.0",
     "npm-run-all": "^4.1.5",
     "partial-json": "^0.1.7",
     "react": "^19.2.8",

+ 2 - 12
template/scripts/BxBaseIconsetLucide.php

@@ -13,8 +13,6 @@
  */
 class BxBaseIconsetLucide extends BxBaseIconset
 {
-    const VERSION = '1.41.0'; ///< Lucide version used when the local copy (see `build:lucide` in package.json) isn't available.
-
     protected $_aMap;
     protected static $_aCacheSvg = [];
 
@@ -33,24 +31,21 @@ class BxBaseIconsetLucide extends BxBaseIconset
             'bars' => 'menu',
             'book-reader' => 'book-open-text',
             'buffer' => 'layers',
-            'building' => 'building',
             'bullhorn' => 'megaphone',
             'calendar-alt' => 'calendar-days',
             'calendar-day' => 'calendar-days',
-            'calendar-plus' => 'calendar-plus',
             'camera-retro' => 'camera',
             'caret-right' => 'chevron-right',
             'cart-arrow-down' => 'shopping-cart',
             'cart-plus' => 'shopping-cart',
             'cc-stripe' => 'credit-card',
             'certificate' => 'award',
-            'chart-pie' => 'chart-pie',
             'check-circle' => 'circle-check',
             'check-double' => 'check-check',
-            'clipboard-check' => 'clipboard-check',
             'cog' => 'settings',
             'cogs' => 'settings',
             'comment' => 'message-circle',
+            'comment-alt' => 'message-square',
             'comment-dots' => 'message-square-dashed',
             'comments' => 'messages-square',
             'desktop' => 'monitor',
@@ -83,7 +78,6 @@ class BxBaseIconsetLucide extends BxBaseIconset
             'hand-holding-usd' => 'hand-coins',
             'hashtag' => 'hash',
             'helpcircle' => 'circle-question-mark',
-            'house' => 'house',
             'industry' => 'factory',
             'info-circle' => 'info',
             'keyround' => 'key-round',
@@ -105,7 +99,6 @@ class BxBaseIconsetLucide extends BxBaseIconset
             'question-circle' => 'circle-question-mark',
             'quote-right' => 'quote',
             'remove' => 'x',
-            'reply-all' => 'reply-all',
             'search-location' => 'search-check',
             'share-alt' => 'share-2',
             'shield-alt' => 'shield',
@@ -145,10 +138,7 @@ class BxBaseIconsetLucide extends BxBaseIconset
 
     public function getPreloaderJs()
     {
-        if(file_exists(BX_DIRECTORY_PATH_PLUGINS_PUBLIC . 'lucide/lucide.min.js'))
-            return '{dir_plugins_public}lucide/|lucide.min.js';
-
-        return 'https://unpkg.com/lucide@' . self::VERSION;
+        return '{dir_plugins_public}lucide/|lucide.min.js';
     }
 
     public function getIcon($sIcon)

+ 9 - 9
yarn.lock

@@ -2814,15 +2814,15 @@ lru-cache@^11.0.0, lru-cache@^11.1.0, lru-cache@^11.2.1:
   resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-11.5.2.tgz#00e16665c90c620fba14a3c368732a976493f760"
   integrity sha512-4pfM1Ff0x50o0tQwb5ucw/RzNyD0/YJME6IVcStalZuMWxdt3sR3huStTtxz4PUmvZfRguvDejasvQ2kifR11g==
 
-lucide-static@1.41.0:
-  version "1.41.0"
-  resolved "https://registry.yarnpkg.com/lucide-static/-/lucide-static-1.41.0.tgz#56c437537404a446883ff611301ef2442835bece"
-  integrity sha512-39fX7SH+Rwis0oUmLLOipOoFSiJll9yi2DyEGDaE7Sp0qQAEhEfMQ2scQNdWKeGVENGv1uXc5ZeZqBWsuhQSFg==
-
-lucide@1.41.0:
-  version "1.41.0"
-  resolved "https://registry.yarnpkg.com/lucide/-/lucide-1.41.0.tgz#e2336f8764b5b1bbfe62e7f621c7aaa81fc1c3fd"
-  integrity sha512-fIXP7JzC1vehdqOrMhwpbcXzX6CvUMuoDf16HY1FmC4sDBeuwrH2A0c6QmLn3wnSvaMchpEyM+JWijyTvOs3kw==
+lucide-static@^1.42.0:
+  version "1.42.0"
+  resolved "https://registry.yarnpkg.com/lucide-static/-/lucide-static-1.42.0.tgz#03792d91258f1637b30aa97ef871f10be2a2bd79"
+  integrity sha512-S4jgNBM6Tm8TusfIvj2A9KQotIxT8Hsnby3csAVh1LeD3vHgI0li14oCiQmYj+0Jjo/2l7cVzaqgPdwmce338Q==
+
+lucide@^1.42.0:
+  version "1.42.0"
+  resolved "https://registry.yarnpkg.com/lucide/-/lucide-1.42.0.tgz#8d09e25b546727c5db9fb8d9ba037f1338ad211e"
+  integrity sha512-KLZ517pIUzuXGSFLlDL+5s6pcp4FI7brn4AXrFmRP7ghtxVVJ7/o4d3VejZeLPU127D/jITLs5WTLnH9Dc7VxA==
 
 magic-string@^0.30.3:
   version "0.30.21"