@almadar/ui 5.21.4 → 5.21.6

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,33 @@ 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: "0.5rem 0.75rem",
17627
+ borderRadius: "0.375rem",
17628
+ margin: "0.5rem 0",
17629
+ whiteSpace: "pre-wrap",
17630
+ wordBreak: "break-word",
17631
+ fontFamily: "ui-monospace, monospace",
17632
+ fontSize: "0.875em",
17633
+ lineHeight: 1.6
17634
+ },
17635
+ children
17617
17636
  }
17618
17637
  );
17619
17638
  }
package/dist/avl/index.js CHANGED
@@ -17557,14 +17557,33 @@ 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: "0.5rem 0.75rem",
17578
+ borderRadius: "0.375rem",
17579
+ margin: "0.5rem 0",
17580
+ whiteSpace: "pre-wrap",
17581
+ wordBreak: "break-word",
17582
+ fontFamily: "ui-monospace, monospace",
17583
+ fontSize: "0.875em",
17584
+ lineHeight: 1.6
17585
+ },
17586
+ children
17568
17587
  }
17569
17588
  );
17570
17589
  }
@@ -12944,14 +12944,33 @@ 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: "0.5rem 0.75rem",
12965
+ borderRadius: "0.375rem",
12966
+ margin: "0.5rem 0",
12967
+ whiteSpace: "pre-wrap",
12968
+ wordBreak: "break-word",
12969
+ fontFamily: "ui-monospace, monospace",
12970
+ fontSize: "0.875em",
12971
+ lineHeight: 1.6
12972
+ },
12973
+ children
12955
12974
  }
12956
12975
  );
12957
12976
  }
@@ -12895,14 +12895,33 @@ 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: "0.5rem 0.75rem",
12916
+ borderRadius: "0.375rem",
12917
+ margin: "0.5rem 0",
12918
+ whiteSpace: "pre-wrap",
12919
+ wordBreak: "break-word",
12920
+ fontFamily: "ui-monospace, monospace",
12921
+ fontSize: "0.875em",
12922
+ lineHeight: 1.6
12923
+ },
12924
+ children
12906
12925
  }
12907
12926
  );
12908
12927
  }
@@ -14419,14 +14419,33 @@ 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: "0.5rem 0.75rem",
14440
+ borderRadius: "0.375rem",
14441
+ margin: "0.5rem 0",
14442
+ whiteSpace: "pre-wrap",
14443
+ wordBreak: "break-word",
14444
+ fontFamily: "ui-monospace, monospace",
14445
+ fontSize: "0.875em",
14446
+ lineHeight: 1.6
14447
+ },
14448
+ children
14430
14449
  }
14431
14450
  );
14432
14451
  }
@@ -14370,14 +14370,33 @@ 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: "0.5rem 0.75rem",
14391
+ borderRadius: "0.375rem",
14392
+ margin: "0.5rem 0",
14393
+ whiteSpace: "pre-wrap",
14394
+ wordBreak: "break-word",
14395
+ fontFamily: "ui-monospace, monospace",
14396
+ fontSize: "0.875em",
14397
+ lineHeight: 1.6
14398
+ },
14399
+ children
14381
14400
  }
14382
14401
  );
14383
14402
  }
@@ -14319,14 +14319,33 @@ 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: "0.5rem 0.75rem",
14340
+ borderRadius: "0.375rem",
14341
+ margin: "0.5rem 0",
14342
+ whiteSpace: "pre-wrap",
14343
+ wordBreak: "break-word",
14344
+ fontFamily: "ui-monospace, monospace",
14345
+ fontSize: "0.875em",
14346
+ lineHeight: 1.6
14347
+ },
14348
+ children
14330
14349
  }
14331
14350
  );
14332
14351
  }
@@ -14270,14 +14270,33 @@ 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: "0.5rem 0.75rem",
14291
+ borderRadius: "0.375rem",
14292
+ margin: "0.5rem 0",
14293
+ whiteSpace: "pre-wrap",
14294
+ wordBreak: "break-word",
14295
+ fontFamily: "ui-monospace, monospace",
14296
+ fontSize: "0.875em",
14297
+ lineHeight: 1.6
14298
+ },
14299
+ children
14281
14300
  }
14282
14301
  );
14283
14302
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@almadar/ui",
3
- "version": "5.21.4",
3
+ "version": "5.21.6",
4
4
  "description": "React UI components, hooks, and providers for Almadar",
5
5
  "type": "module",
6
6
  "sideEffects": [