@almadar/ui 5.21.4 → 5.21.5

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.
@@ -17606,14 +17606,40 @@ var init_MarkdownContent = __esm({
17606
17606
  }) {
17607
17607
  if (!inline) {
17608
17608
  const match = /language-(\w+)/.exec(codeClassName ?? "");
17609
- const language = match ? match[1] : "text";
17610
17609
  const code = String(children).replace(/\n$/, "");
17610
+ if (match) {
17611
+ return /* @__PURE__ */ jsxRuntime.jsx(
17612
+ CodeBlock,
17613
+ {
17614
+ code,
17615
+ language: match[1],
17616
+ maxHeight: "60vh"
17617
+ }
17618
+ );
17619
+ }
17611
17620
  return /* @__PURE__ */ jsxRuntime.jsx(
17612
- CodeBlock,
17621
+ "pre",
17613
17622
  {
17614
- code,
17615
- language,
17616
- maxHeight: "60vh"
17623
+ style: {
17624
+ backgroundColor: "var(--color-muted)",
17625
+ color: "var(--color-foreground)",
17626
+ padding: "1rem",
17627
+ borderRadius: "0.5rem",
17628
+ overflow: "auto",
17629
+ margin: 0
17630
+ },
17631
+ children: /* @__PURE__ */ jsxRuntime.jsx(
17632
+ "code",
17633
+ {
17634
+ ...props,
17635
+ className: codeClassName,
17636
+ style: {
17637
+ fontFamily: "ui-monospace, monospace",
17638
+ fontSize: "0.875em"
17639
+ },
17640
+ children
17641
+ }
17642
+ )
17617
17643
  }
17618
17644
  );
17619
17645
  }
package/dist/avl/index.js CHANGED
@@ -17557,14 +17557,40 @@ var init_MarkdownContent = __esm({
17557
17557
  }) {
17558
17558
  if (!inline) {
17559
17559
  const match = /language-(\w+)/.exec(codeClassName ?? "");
17560
- const language = match ? match[1] : "text";
17561
17560
  const code = String(children).replace(/\n$/, "");
17561
+ if (match) {
17562
+ return /* @__PURE__ */ jsx(
17563
+ CodeBlock,
17564
+ {
17565
+ code,
17566
+ language: match[1],
17567
+ maxHeight: "60vh"
17568
+ }
17569
+ );
17570
+ }
17562
17571
  return /* @__PURE__ */ jsx(
17563
- CodeBlock,
17572
+ "pre",
17564
17573
  {
17565
- code,
17566
- language,
17567
- maxHeight: "60vh"
17574
+ style: {
17575
+ backgroundColor: "var(--color-muted)",
17576
+ color: "var(--color-foreground)",
17577
+ padding: "1rem",
17578
+ borderRadius: "0.5rem",
17579
+ overflow: "auto",
17580
+ margin: 0
17581
+ },
17582
+ children: /* @__PURE__ */ jsx(
17583
+ "code",
17584
+ {
17585
+ ...props,
17586
+ className: codeClassName,
17587
+ style: {
17588
+ fontFamily: "ui-monospace, monospace",
17589
+ fontSize: "0.875em"
17590
+ },
17591
+ children
17592
+ }
17593
+ )
17568
17594
  }
17569
17595
  );
17570
17596
  }
@@ -12944,14 +12944,40 @@ var init_MarkdownContent = __esm({
12944
12944
  }) {
12945
12945
  if (!inline) {
12946
12946
  const match = /language-(\w+)/.exec(codeClassName ?? "");
12947
- const language = match ? match[1] : "text";
12948
12947
  const code = String(children).replace(/\n$/, "");
12948
+ if (match) {
12949
+ return /* @__PURE__ */ jsxRuntime.jsx(
12950
+ exports.CodeBlock,
12951
+ {
12952
+ code,
12953
+ language: match[1],
12954
+ maxHeight: "60vh"
12955
+ }
12956
+ );
12957
+ }
12949
12958
  return /* @__PURE__ */ jsxRuntime.jsx(
12950
- exports.CodeBlock,
12959
+ "pre",
12951
12960
  {
12952
- code,
12953
- language,
12954
- maxHeight: "60vh"
12961
+ style: {
12962
+ backgroundColor: "var(--color-muted)",
12963
+ color: "var(--color-foreground)",
12964
+ padding: "1rem",
12965
+ borderRadius: "0.5rem",
12966
+ overflow: "auto",
12967
+ margin: 0
12968
+ },
12969
+ children: /* @__PURE__ */ jsxRuntime.jsx(
12970
+ "code",
12971
+ {
12972
+ ...props,
12973
+ className: codeClassName,
12974
+ style: {
12975
+ fontFamily: "ui-monospace, monospace",
12976
+ fontSize: "0.875em"
12977
+ },
12978
+ children
12979
+ }
12980
+ )
12955
12981
  }
12956
12982
  );
12957
12983
  }
@@ -12895,14 +12895,40 @@ var init_MarkdownContent = __esm({
12895
12895
  }) {
12896
12896
  if (!inline) {
12897
12897
  const match = /language-(\w+)/.exec(codeClassName ?? "");
12898
- const language = match ? match[1] : "text";
12899
12898
  const code = String(children).replace(/\n$/, "");
12899
+ if (match) {
12900
+ return /* @__PURE__ */ jsx(
12901
+ CodeBlock,
12902
+ {
12903
+ code,
12904
+ language: match[1],
12905
+ maxHeight: "60vh"
12906
+ }
12907
+ );
12908
+ }
12900
12909
  return /* @__PURE__ */ jsx(
12901
- CodeBlock,
12910
+ "pre",
12902
12911
  {
12903
- code,
12904
- language,
12905
- maxHeight: "60vh"
12912
+ style: {
12913
+ backgroundColor: "var(--color-muted)",
12914
+ color: "var(--color-foreground)",
12915
+ padding: "1rem",
12916
+ borderRadius: "0.5rem",
12917
+ overflow: "auto",
12918
+ margin: 0
12919
+ },
12920
+ children: /* @__PURE__ */ jsx(
12921
+ "code",
12922
+ {
12923
+ ...props,
12924
+ className: codeClassName,
12925
+ style: {
12926
+ fontFamily: "ui-monospace, monospace",
12927
+ fontSize: "0.875em"
12928
+ },
12929
+ children
12930
+ }
12931
+ )
12906
12932
  }
12907
12933
  );
12908
12934
  }
@@ -14419,14 +14419,40 @@ var init_MarkdownContent = __esm({
14419
14419
  }) {
14420
14420
  if (!inline) {
14421
14421
  const match = /language-(\w+)/.exec(codeClassName ?? "");
14422
- const language = match ? match[1] : "text";
14423
14422
  const code = String(children).replace(/\n$/, "");
14423
+ if (match) {
14424
+ return /* @__PURE__ */ jsxRuntime.jsx(
14425
+ CodeBlock,
14426
+ {
14427
+ code,
14428
+ language: match[1],
14429
+ maxHeight: "60vh"
14430
+ }
14431
+ );
14432
+ }
14424
14433
  return /* @__PURE__ */ jsxRuntime.jsx(
14425
- CodeBlock,
14434
+ "pre",
14426
14435
  {
14427
- code,
14428
- language,
14429
- maxHeight: "60vh"
14436
+ style: {
14437
+ backgroundColor: "var(--color-muted)",
14438
+ color: "var(--color-foreground)",
14439
+ padding: "1rem",
14440
+ borderRadius: "0.5rem",
14441
+ overflow: "auto",
14442
+ margin: 0
14443
+ },
14444
+ children: /* @__PURE__ */ jsxRuntime.jsx(
14445
+ "code",
14446
+ {
14447
+ ...props,
14448
+ className: codeClassName,
14449
+ style: {
14450
+ fontFamily: "ui-monospace, monospace",
14451
+ fontSize: "0.875em"
14452
+ },
14453
+ children
14454
+ }
14455
+ )
14430
14456
  }
14431
14457
  );
14432
14458
  }
@@ -14370,14 +14370,40 @@ var init_MarkdownContent = __esm({
14370
14370
  }) {
14371
14371
  if (!inline) {
14372
14372
  const match = /language-(\w+)/.exec(codeClassName ?? "");
14373
- const language = match ? match[1] : "text";
14374
14373
  const code = String(children).replace(/\n$/, "");
14374
+ if (match) {
14375
+ return /* @__PURE__ */ jsx(
14376
+ CodeBlock,
14377
+ {
14378
+ code,
14379
+ language: match[1],
14380
+ maxHeight: "60vh"
14381
+ }
14382
+ );
14383
+ }
14375
14384
  return /* @__PURE__ */ jsx(
14376
- CodeBlock,
14385
+ "pre",
14377
14386
  {
14378
- code,
14379
- language,
14380
- maxHeight: "60vh"
14387
+ style: {
14388
+ backgroundColor: "var(--color-muted)",
14389
+ color: "var(--color-foreground)",
14390
+ padding: "1rem",
14391
+ borderRadius: "0.5rem",
14392
+ overflow: "auto",
14393
+ margin: 0
14394
+ },
14395
+ children: /* @__PURE__ */ jsx(
14396
+ "code",
14397
+ {
14398
+ ...props,
14399
+ className: codeClassName,
14400
+ style: {
14401
+ fontFamily: "ui-monospace, monospace",
14402
+ fontSize: "0.875em"
14403
+ },
14404
+ children
14405
+ }
14406
+ )
14381
14407
  }
14382
14408
  );
14383
14409
  }
@@ -14319,14 +14319,40 @@ var init_MarkdownContent = __esm({
14319
14319
  }) {
14320
14320
  if (!inline) {
14321
14321
  const match = /language-(\w+)/.exec(codeClassName ?? "");
14322
- const language = match ? match[1] : "text";
14323
14322
  const code = String(children).replace(/\n$/, "");
14323
+ if (match) {
14324
+ return /* @__PURE__ */ jsxRuntime.jsx(
14325
+ CodeBlock,
14326
+ {
14327
+ code,
14328
+ language: match[1],
14329
+ maxHeight: "60vh"
14330
+ }
14331
+ );
14332
+ }
14324
14333
  return /* @__PURE__ */ jsxRuntime.jsx(
14325
- CodeBlock,
14334
+ "pre",
14326
14335
  {
14327
- code,
14328
- language,
14329
- maxHeight: "60vh"
14336
+ style: {
14337
+ backgroundColor: "var(--color-muted)",
14338
+ color: "var(--color-foreground)",
14339
+ padding: "1rem",
14340
+ borderRadius: "0.5rem",
14341
+ overflow: "auto",
14342
+ margin: 0
14343
+ },
14344
+ children: /* @__PURE__ */ jsxRuntime.jsx(
14345
+ "code",
14346
+ {
14347
+ ...props,
14348
+ className: codeClassName,
14349
+ style: {
14350
+ fontFamily: "ui-monospace, monospace",
14351
+ fontSize: "0.875em"
14352
+ },
14353
+ children
14354
+ }
14355
+ )
14330
14356
  }
14331
14357
  );
14332
14358
  }
@@ -14270,14 +14270,40 @@ var init_MarkdownContent = __esm({
14270
14270
  }) {
14271
14271
  if (!inline) {
14272
14272
  const match = /language-(\w+)/.exec(codeClassName ?? "");
14273
- const language = match ? match[1] : "text";
14274
14273
  const code = String(children).replace(/\n$/, "");
14274
+ if (match) {
14275
+ return /* @__PURE__ */ jsx(
14276
+ CodeBlock,
14277
+ {
14278
+ code,
14279
+ language: match[1],
14280
+ maxHeight: "60vh"
14281
+ }
14282
+ );
14283
+ }
14275
14284
  return /* @__PURE__ */ jsx(
14276
- CodeBlock,
14285
+ "pre",
14277
14286
  {
14278
- code,
14279
- language,
14280
- maxHeight: "60vh"
14287
+ style: {
14288
+ backgroundColor: "var(--color-muted)",
14289
+ color: "var(--color-foreground)",
14290
+ padding: "1rem",
14291
+ borderRadius: "0.5rem",
14292
+ overflow: "auto",
14293
+ margin: 0
14294
+ },
14295
+ children: /* @__PURE__ */ jsx(
14296
+ "code",
14297
+ {
14298
+ ...props,
14299
+ className: codeClassName,
14300
+ style: {
14301
+ fontFamily: "ui-monospace, monospace",
14302
+ fontSize: "0.875em"
14303
+ },
14304
+ children
14305
+ }
14306
+ )
14281
14307
  }
14282
14308
  );
14283
14309
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@almadar/ui",
3
- "version": "5.21.4",
3
+ "version": "5.21.5",
4
4
  "description": "React UI components, hooks, and providers for Almadar",
5
5
  "type": "module",
6
6
  "sideEffects": [