@almadar/ui 5.1.2 → 5.1.4

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.
@@ -5874,53 +5874,57 @@ function warnFallback(name, family) {
5874
5874
  );
5875
5875
  }
5876
5876
  }
5877
- function makeLucideAdapter(name) {
5877
+ function makeLucideAdapter(name, isFallback = false) {
5878
5878
  const LucideComp = resolveLucide(name);
5879
- const Adapter = (props) => /* @__PURE__ */ jsxRuntime.jsx(
5880
- LucideComp,
5881
- {
5882
- className: props.className,
5883
- strokeWidth: props.strokeWidth,
5884
- style: props.style,
5885
- size: props.size
5886
- }
5887
- );
5888
- Adapter.displayName = `Lucide.${name}`;
5879
+ const Adapter = (props) => {
5880
+ const stroke = props.strokeWidth ?? (isFallback ? 2 : void 0);
5881
+ const style = isFallback ? { ...props.style ?? {}, strokeWidth: stroke ?? 2 } : props.style;
5882
+ return /* @__PURE__ */ jsxRuntime.jsx(
5883
+ LucideComp,
5884
+ {
5885
+ className: props.className,
5886
+ strokeWidth: stroke,
5887
+ style,
5888
+ size: props.size
5889
+ }
5890
+ );
5891
+ };
5892
+ Adapter.displayName = `Lucide.${name}${isFallback ? ".fallback" : ""}`;
5889
5893
  return Adapter;
5890
5894
  }
5891
5895
  function resolveIconForFamily(name, family) {
5892
5896
  switch (family) {
5893
5897
  case "lucide":
5894
- return makeLucideAdapter(name);
5898
+ return makeLucideAdapter(name, false);
5895
5899
  case "phosphor-outline": {
5896
5900
  const p2 = resolvePhosphor(name, "regular");
5897
5901
  if (p2) return p2;
5898
5902
  warnFallback(name, family);
5899
- return makeLucideAdapter(name);
5903
+ return makeLucideAdapter(name, true);
5900
5904
  }
5901
5905
  case "phosphor-fill": {
5902
5906
  const p2 = resolvePhosphor(name, "fill");
5903
5907
  if (p2) return p2;
5904
5908
  warnFallback(name, family);
5905
- return makeLucideAdapter(name);
5909
+ return makeLucideAdapter(name, true);
5906
5910
  }
5907
5911
  case "phosphor-duotone": {
5908
5912
  const p2 = resolvePhosphor(name, "duotone");
5909
5913
  if (p2) return p2;
5910
5914
  warnFallback(name, family);
5911
- return makeLucideAdapter(name);
5915
+ return makeLucideAdapter(name, true);
5912
5916
  }
5913
5917
  case "tabler": {
5914
5918
  const t = resolveTabler(name);
5915
5919
  if (t) return t;
5916
5920
  warnFallback(name, family);
5917
- return makeLucideAdapter(name);
5921
+ return makeLucideAdapter(name, true);
5918
5922
  }
5919
5923
  case "fa-solid": {
5920
5924
  const f3 = resolveFa(name);
5921
5925
  if (f3) return f3;
5922
5926
  warnFallback(name, family);
5923
- return makeLucideAdapter(name);
5927
+ return makeLucideAdapter(name, true);
5924
5928
  }
5925
5929
  }
5926
5930
  }
@@ -6058,7 +6062,11 @@ var init_iconFamily = __esm({
6058
6062
  info: "InfoCircle"
6059
6063
  };
6060
6064
  faAliases = {
6061
- // lucide name → fa-solid suffix (after the `Fa` prefix)
6065
+ // lucide name → fa-solid suffix (after the `Fa` prefix).
6066
+ // react-icons/fa ships FontAwesome 5 — names like `FaFileText` don't exist
6067
+ // (FA renamed to `FaFileAlt`). When you see a console.warn from
6068
+ // [iconFamily] about an unmapped lucide name in this family, add the
6069
+ // closest FA5 sibling here so the fallback stays in-family.
6062
6070
  search: "Search",
6063
6071
  close: "Times",
6064
6072
  x: "Times",
@@ -6110,7 +6118,93 @@ var init_iconFamily = __esm({
6110
6118
  more: "EllipsisH",
6111
6119
  "more-vertical": "EllipsisV",
6112
6120
  info: "InfoCircle",
6113
- warning: "ExclamationTriangle"
6121
+ warning: "ExclamationTriangle",
6122
+ // Files (FA renamed FileText → FileAlt)
6123
+ file: "File",
6124
+ "file-text": "FileAlt",
6125
+ "file-plus": "FileMedical",
6126
+ "file-minus": "FileExcel",
6127
+ "file-check": "FileSignature",
6128
+ document: "FileAlt",
6129
+ // Charts (lucide BarChart2 / BarChart3 → FA ChartBar)
6130
+ "bar-chart": "ChartBar",
6131
+ "bar-chart-2": "ChartBar",
6132
+ "bar-chart-3": "ChartBar",
6133
+ "line-chart": "ChartLine",
6134
+ "pie-chart": "ChartPie",
6135
+ activity: "ChartLine",
6136
+ "trending-up": "ChartLine",
6137
+ "trending-down": "ChartLine",
6138
+ // Messages (lucide MessageCircle/MessageSquare → FA CommentDots/CommentAlt)
6139
+ message: "Comment",
6140
+ "message-circle": "CommentDots",
6141
+ "message-square": "CommentAlt",
6142
+ "messages-square": "Comments",
6143
+ comment: "Comment",
6144
+ comments: "Comments",
6145
+ inbox: "Inbox",
6146
+ // Support / help
6147
+ "life-buoy": "LifeRing",
6148
+ lifebuoy: "LifeRing",
6149
+ // Project / kanban (FA has no kanban; closest semantic is Tasks/Columns)
6150
+ kanban: "Tasks",
6151
+ columns: "Columns",
6152
+ rows: "Bars",
6153
+ layout: "ThLarge",
6154
+ grid: "Th",
6155
+ list: "List",
6156
+ table: "Table",
6157
+ // Storage / folders
6158
+ folder: "Folder",
6159
+ "folder-open": "FolderOpen",
6160
+ archive: "Archive",
6161
+ bookmark: "Bookmark",
6162
+ briefcase: "Briefcase",
6163
+ package: "Box",
6164
+ box: "Box",
6165
+ // Map / location
6166
+ map: "Map",
6167
+ "map-pin": "MapMarkerAlt",
6168
+ navigation: "LocationArrow",
6169
+ compass: "Compass",
6170
+ globe: "Globe",
6171
+ target: "Bullseye",
6172
+ // Media
6173
+ image: "Image",
6174
+ video: "Video",
6175
+ film: "Film",
6176
+ camera: "Camera",
6177
+ music: "Music",
6178
+ play: "Play",
6179
+ pause: "Pause",
6180
+ "skip-forward": "Forward",
6181
+ "skip-back": "Backward",
6182
+ volume: "VolumeUp",
6183
+ "volume-2": "VolumeUp",
6184
+ "volume-x": "VolumeMute",
6185
+ mic: "Microphone",
6186
+ "mic-off": "MicrophoneSlash",
6187
+ phone: "Phone",
6188
+ // Code / data
6189
+ code: "Code",
6190
+ terminal: "Terminal",
6191
+ database: "Database",
6192
+ server: "Server",
6193
+ cloud: "Cloud",
6194
+ wifi: "Wifi",
6195
+ // Security
6196
+ shield: "ShieldAlt",
6197
+ key: "Key",
6198
+ // Misc actions
6199
+ printer: "Print",
6200
+ save: "Save",
6201
+ link: "Link",
6202
+ unlink: "Unlink",
6203
+ paperclip: "Paperclip",
6204
+ flag: "Flag",
6205
+ tag: "Tag",
6206
+ tags: "Tags",
6207
+ zap: "Bolt"
6114
6208
  };
6115
6209
  warned = /* @__PURE__ */ new Set();
6116
6210
  }
package/dist/avl/index.js CHANGED
@@ -5825,53 +5825,57 @@ function warnFallback(name, family) {
5825
5825
  );
5826
5826
  }
5827
5827
  }
5828
- function makeLucideAdapter(name) {
5828
+ function makeLucideAdapter(name, isFallback = false) {
5829
5829
  const LucideComp = resolveLucide(name);
5830
- const Adapter = (props) => /* @__PURE__ */ jsx(
5831
- LucideComp,
5832
- {
5833
- className: props.className,
5834
- strokeWidth: props.strokeWidth,
5835
- style: props.style,
5836
- size: props.size
5837
- }
5838
- );
5839
- Adapter.displayName = `Lucide.${name}`;
5830
+ const Adapter = (props) => {
5831
+ const stroke = props.strokeWidth ?? (isFallback ? 2 : void 0);
5832
+ const style = isFallback ? { ...props.style ?? {}, strokeWidth: stroke ?? 2 } : props.style;
5833
+ return /* @__PURE__ */ jsx(
5834
+ LucideComp,
5835
+ {
5836
+ className: props.className,
5837
+ strokeWidth: stroke,
5838
+ style,
5839
+ size: props.size
5840
+ }
5841
+ );
5842
+ };
5843
+ Adapter.displayName = `Lucide.${name}${isFallback ? ".fallback" : ""}`;
5840
5844
  return Adapter;
5841
5845
  }
5842
5846
  function resolveIconForFamily(name, family) {
5843
5847
  switch (family) {
5844
5848
  case "lucide":
5845
- return makeLucideAdapter(name);
5849
+ return makeLucideAdapter(name, false);
5846
5850
  case "phosphor-outline": {
5847
5851
  const p2 = resolvePhosphor(name, "regular");
5848
5852
  if (p2) return p2;
5849
5853
  warnFallback(name, family);
5850
- return makeLucideAdapter(name);
5854
+ return makeLucideAdapter(name, true);
5851
5855
  }
5852
5856
  case "phosphor-fill": {
5853
5857
  const p2 = resolvePhosphor(name, "fill");
5854
5858
  if (p2) return p2;
5855
5859
  warnFallback(name, family);
5856
- return makeLucideAdapter(name);
5860
+ return makeLucideAdapter(name, true);
5857
5861
  }
5858
5862
  case "phosphor-duotone": {
5859
5863
  const p2 = resolvePhosphor(name, "duotone");
5860
5864
  if (p2) return p2;
5861
5865
  warnFallback(name, family);
5862
- return makeLucideAdapter(name);
5866
+ return makeLucideAdapter(name, true);
5863
5867
  }
5864
5868
  case "tabler": {
5865
5869
  const t = resolveTabler(name);
5866
5870
  if (t) return t;
5867
5871
  warnFallback(name, family);
5868
- return makeLucideAdapter(name);
5872
+ return makeLucideAdapter(name, true);
5869
5873
  }
5870
5874
  case "fa-solid": {
5871
5875
  const f3 = resolveFa(name);
5872
5876
  if (f3) return f3;
5873
5877
  warnFallback(name, family);
5874
- return makeLucideAdapter(name);
5878
+ return makeLucideAdapter(name, true);
5875
5879
  }
5876
5880
  }
5877
5881
  }
@@ -6009,7 +6013,11 @@ var init_iconFamily = __esm({
6009
6013
  info: "InfoCircle"
6010
6014
  };
6011
6015
  faAliases = {
6012
- // lucide name → fa-solid suffix (after the `Fa` prefix)
6016
+ // lucide name → fa-solid suffix (after the `Fa` prefix).
6017
+ // react-icons/fa ships FontAwesome 5 — names like `FaFileText` don't exist
6018
+ // (FA renamed to `FaFileAlt`). When you see a console.warn from
6019
+ // [iconFamily] about an unmapped lucide name in this family, add the
6020
+ // closest FA5 sibling here so the fallback stays in-family.
6013
6021
  search: "Search",
6014
6022
  close: "Times",
6015
6023
  x: "Times",
@@ -6061,7 +6069,93 @@ var init_iconFamily = __esm({
6061
6069
  more: "EllipsisH",
6062
6070
  "more-vertical": "EllipsisV",
6063
6071
  info: "InfoCircle",
6064
- warning: "ExclamationTriangle"
6072
+ warning: "ExclamationTriangle",
6073
+ // Files (FA renamed FileText → FileAlt)
6074
+ file: "File",
6075
+ "file-text": "FileAlt",
6076
+ "file-plus": "FileMedical",
6077
+ "file-minus": "FileExcel",
6078
+ "file-check": "FileSignature",
6079
+ document: "FileAlt",
6080
+ // Charts (lucide BarChart2 / BarChart3 → FA ChartBar)
6081
+ "bar-chart": "ChartBar",
6082
+ "bar-chart-2": "ChartBar",
6083
+ "bar-chart-3": "ChartBar",
6084
+ "line-chart": "ChartLine",
6085
+ "pie-chart": "ChartPie",
6086
+ activity: "ChartLine",
6087
+ "trending-up": "ChartLine",
6088
+ "trending-down": "ChartLine",
6089
+ // Messages (lucide MessageCircle/MessageSquare → FA CommentDots/CommentAlt)
6090
+ message: "Comment",
6091
+ "message-circle": "CommentDots",
6092
+ "message-square": "CommentAlt",
6093
+ "messages-square": "Comments",
6094
+ comment: "Comment",
6095
+ comments: "Comments",
6096
+ inbox: "Inbox",
6097
+ // Support / help
6098
+ "life-buoy": "LifeRing",
6099
+ lifebuoy: "LifeRing",
6100
+ // Project / kanban (FA has no kanban; closest semantic is Tasks/Columns)
6101
+ kanban: "Tasks",
6102
+ columns: "Columns",
6103
+ rows: "Bars",
6104
+ layout: "ThLarge",
6105
+ grid: "Th",
6106
+ list: "List",
6107
+ table: "Table",
6108
+ // Storage / folders
6109
+ folder: "Folder",
6110
+ "folder-open": "FolderOpen",
6111
+ archive: "Archive",
6112
+ bookmark: "Bookmark",
6113
+ briefcase: "Briefcase",
6114
+ package: "Box",
6115
+ box: "Box",
6116
+ // Map / location
6117
+ map: "Map",
6118
+ "map-pin": "MapMarkerAlt",
6119
+ navigation: "LocationArrow",
6120
+ compass: "Compass",
6121
+ globe: "Globe",
6122
+ target: "Bullseye",
6123
+ // Media
6124
+ image: "Image",
6125
+ video: "Video",
6126
+ film: "Film",
6127
+ camera: "Camera",
6128
+ music: "Music",
6129
+ play: "Play",
6130
+ pause: "Pause",
6131
+ "skip-forward": "Forward",
6132
+ "skip-back": "Backward",
6133
+ volume: "VolumeUp",
6134
+ "volume-2": "VolumeUp",
6135
+ "volume-x": "VolumeMute",
6136
+ mic: "Microphone",
6137
+ "mic-off": "MicrophoneSlash",
6138
+ phone: "Phone",
6139
+ // Code / data
6140
+ code: "Code",
6141
+ terminal: "Terminal",
6142
+ database: "Database",
6143
+ server: "Server",
6144
+ cloud: "Cloud",
6145
+ wifi: "Wifi",
6146
+ // Security
6147
+ shield: "ShieldAlt",
6148
+ key: "Key",
6149
+ // Misc actions
6150
+ printer: "Print",
6151
+ save: "Save",
6152
+ link: "Link",
6153
+ unlink: "Unlink",
6154
+ paperclip: "Paperclip",
6155
+ flag: "Flag",
6156
+ tag: "Tag",
6157
+ tags: "Tags",
6158
+ zap: "Bolt"
6065
6159
  };
6066
6160
  warned = /* @__PURE__ */ new Set();
6067
6161
  }
@@ -1261,53 +1261,57 @@ function warnFallback(name, family) {
1261
1261
  );
1262
1262
  }
1263
1263
  }
1264
- function makeLucideAdapter(name) {
1264
+ function makeLucideAdapter(name, isFallback = false) {
1265
1265
  const LucideComp = resolveLucide(name);
1266
- const Adapter = (props) => /* @__PURE__ */ jsxRuntime.jsx(
1267
- LucideComp,
1268
- {
1269
- className: props.className,
1270
- strokeWidth: props.strokeWidth,
1271
- style: props.style,
1272
- size: props.size
1273
- }
1274
- );
1275
- Adapter.displayName = `Lucide.${name}`;
1266
+ const Adapter = (props) => {
1267
+ const stroke = props.strokeWidth ?? (isFallback ? 2 : void 0);
1268
+ const style = isFallback ? { ...props.style ?? {}, strokeWidth: stroke ?? 2 } : props.style;
1269
+ return /* @__PURE__ */ jsxRuntime.jsx(
1270
+ LucideComp,
1271
+ {
1272
+ className: props.className,
1273
+ strokeWidth: stroke,
1274
+ style,
1275
+ size: props.size
1276
+ }
1277
+ );
1278
+ };
1279
+ Adapter.displayName = `Lucide.${name}${isFallback ? ".fallback" : ""}`;
1276
1280
  return Adapter;
1277
1281
  }
1278
1282
  function resolveIconForFamily(name, family) {
1279
1283
  switch (family) {
1280
1284
  case "lucide":
1281
- return makeLucideAdapter(name);
1285
+ return makeLucideAdapter(name, false);
1282
1286
  case "phosphor-outline": {
1283
1287
  const p2 = resolvePhosphor(name, "regular");
1284
1288
  if (p2) return p2;
1285
1289
  warnFallback(name, family);
1286
- return makeLucideAdapter(name);
1290
+ return makeLucideAdapter(name, true);
1287
1291
  }
1288
1292
  case "phosphor-fill": {
1289
1293
  const p2 = resolvePhosphor(name, "fill");
1290
1294
  if (p2) return p2;
1291
1295
  warnFallback(name, family);
1292
- return makeLucideAdapter(name);
1296
+ return makeLucideAdapter(name, true);
1293
1297
  }
1294
1298
  case "phosphor-duotone": {
1295
1299
  const p2 = resolvePhosphor(name, "duotone");
1296
1300
  if (p2) return p2;
1297
1301
  warnFallback(name, family);
1298
- return makeLucideAdapter(name);
1302
+ return makeLucideAdapter(name, true);
1299
1303
  }
1300
1304
  case "tabler": {
1301
1305
  const t = resolveTabler(name);
1302
1306
  if (t) return t;
1303
1307
  warnFallback(name, family);
1304
- return makeLucideAdapter(name);
1308
+ return makeLucideAdapter(name, true);
1305
1309
  }
1306
1310
  case "fa-solid": {
1307
1311
  const f3 = resolveFa(name);
1308
1312
  if (f3) return f3;
1309
1313
  warnFallback(name, family);
1310
- return makeLucideAdapter(name);
1314
+ return makeLucideAdapter(name, true);
1311
1315
  }
1312
1316
  }
1313
1317
  }
@@ -1445,7 +1449,11 @@ var init_iconFamily = __esm({
1445
1449
  info: "InfoCircle"
1446
1450
  };
1447
1451
  faAliases = {
1448
- // lucide name → fa-solid suffix (after the `Fa` prefix)
1452
+ // lucide name → fa-solid suffix (after the `Fa` prefix).
1453
+ // react-icons/fa ships FontAwesome 5 — names like `FaFileText` don't exist
1454
+ // (FA renamed to `FaFileAlt`). When you see a console.warn from
1455
+ // [iconFamily] about an unmapped lucide name in this family, add the
1456
+ // closest FA5 sibling here so the fallback stays in-family.
1449
1457
  search: "Search",
1450
1458
  close: "Times",
1451
1459
  x: "Times",
@@ -1497,7 +1505,93 @@ var init_iconFamily = __esm({
1497
1505
  more: "EllipsisH",
1498
1506
  "more-vertical": "EllipsisV",
1499
1507
  info: "InfoCircle",
1500
- warning: "ExclamationTriangle"
1508
+ warning: "ExclamationTriangle",
1509
+ // Files (FA renamed FileText → FileAlt)
1510
+ file: "File",
1511
+ "file-text": "FileAlt",
1512
+ "file-plus": "FileMedical",
1513
+ "file-minus": "FileExcel",
1514
+ "file-check": "FileSignature",
1515
+ document: "FileAlt",
1516
+ // Charts (lucide BarChart2 / BarChart3 → FA ChartBar)
1517
+ "bar-chart": "ChartBar",
1518
+ "bar-chart-2": "ChartBar",
1519
+ "bar-chart-3": "ChartBar",
1520
+ "line-chart": "ChartLine",
1521
+ "pie-chart": "ChartPie",
1522
+ activity: "ChartLine",
1523
+ "trending-up": "ChartLine",
1524
+ "trending-down": "ChartLine",
1525
+ // Messages (lucide MessageCircle/MessageSquare → FA CommentDots/CommentAlt)
1526
+ message: "Comment",
1527
+ "message-circle": "CommentDots",
1528
+ "message-square": "CommentAlt",
1529
+ "messages-square": "Comments",
1530
+ comment: "Comment",
1531
+ comments: "Comments",
1532
+ inbox: "Inbox",
1533
+ // Support / help
1534
+ "life-buoy": "LifeRing",
1535
+ lifebuoy: "LifeRing",
1536
+ // Project / kanban (FA has no kanban; closest semantic is Tasks/Columns)
1537
+ kanban: "Tasks",
1538
+ columns: "Columns",
1539
+ rows: "Bars",
1540
+ layout: "ThLarge",
1541
+ grid: "Th",
1542
+ list: "List",
1543
+ table: "Table",
1544
+ // Storage / folders
1545
+ folder: "Folder",
1546
+ "folder-open": "FolderOpen",
1547
+ archive: "Archive",
1548
+ bookmark: "Bookmark",
1549
+ briefcase: "Briefcase",
1550
+ package: "Box",
1551
+ box: "Box",
1552
+ // Map / location
1553
+ map: "Map",
1554
+ "map-pin": "MapMarkerAlt",
1555
+ navigation: "LocationArrow",
1556
+ compass: "Compass",
1557
+ globe: "Globe",
1558
+ target: "Bullseye",
1559
+ // Media
1560
+ image: "Image",
1561
+ video: "Video",
1562
+ film: "Film",
1563
+ camera: "Camera",
1564
+ music: "Music",
1565
+ play: "Play",
1566
+ pause: "Pause",
1567
+ "skip-forward": "Forward",
1568
+ "skip-back": "Backward",
1569
+ volume: "VolumeUp",
1570
+ "volume-2": "VolumeUp",
1571
+ "volume-x": "VolumeMute",
1572
+ mic: "Microphone",
1573
+ "mic-off": "MicrophoneSlash",
1574
+ phone: "Phone",
1575
+ // Code / data
1576
+ code: "Code",
1577
+ terminal: "Terminal",
1578
+ database: "Database",
1579
+ server: "Server",
1580
+ cloud: "Cloud",
1581
+ wifi: "Wifi",
1582
+ // Security
1583
+ shield: "ShieldAlt",
1584
+ key: "Key",
1585
+ // Misc actions
1586
+ printer: "Print",
1587
+ save: "Save",
1588
+ link: "Link",
1589
+ unlink: "Unlink",
1590
+ paperclip: "Paperclip",
1591
+ flag: "Flag",
1592
+ tag: "Tag",
1593
+ tags: "Tags",
1594
+ zap: "Bolt"
1501
1595
  };
1502
1596
  warned = /* @__PURE__ */ new Set();
1503
1597
  }