odaptos_design_system 2.0.343 → 2.0.345

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/dist/index.cjs CHANGED
@@ -316,7 +316,7 @@ style_inject_es_default(css_248z$82);
316
316
  //#region src/Atoms/Typography/renderInlineMarkdown.tsx
317
317
  /**
318
318
  * Minimal inline markdown renderer for typography components.
319
- * Supports: **bold**, *italic*, `code`, line breaks, and simple lists.
319
+ * Supports: **bold**, *italic*, __underline__ (or <u>underline</u>), `code`, line breaks, and simple lists.
320
320
  */
321
321
  const renderInlineMarkdown = (rawText) => {
322
322
  if (!rawText) return rawText;
@@ -327,6 +327,18 @@ const renderInlineMarkdown = (rawText) => {
327
327
  });
328
328
  };
329
329
  const renderStrongAndEm = (nodes) => {
330
+ const renderHtmlUnderline = (text) => {
331
+ return text.split(/<u>(.*?)<\/u>/g).map((part, index) => {
332
+ if (!(index % 2 === 1)) return part;
333
+ return /* @__PURE__ */ react.default.createElement("u", { key: `u-html-${index}` }, part);
334
+ });
335
+ };
336
+ const renderUnderline = (text) => {
337
+ return text.split(/__([^_]+)__/g).map((part, index) => {
338
+ if (!(index % 2 === 1)) return part;
339
+ return /* @__PURE__ */ react.default.createElement("u", { key: `u-${index}` }, part);
340
+ });
341
+ };
330
342
  const renderStrong = (text) => {
331
343
  return text.split(/\*\*([^*]+)\*\*/g).map((part, index) => {
332
344
  if (!(index % 2 === 1)) return part;
@@ -341,7 +353,13 @@ const renderInlineMarkdown = (rawText) => {
341
353
  };
342
354
  return nodes.flatMap((node) => {
343
355
  if (typeof node !== "string") return [node];
344
- return renderStrong(node).flatMap((strongNode) => {
356
+ return renderHtmlUnderline(node).flatMap((htmlUnderlineNode) => {
357
+ if (typeof htmlUnderlineNode !== "string") return [htmlUnderlineNode];
358
+ return renderUnderline(htmlUnderlineNode);
359
+ }).flatMap((underlineNode) => {
360
+ if (typeof underlineNode !== "string") return [underlineNode];
361
+ return renderStrong(underlineNode);
362
+ }).flatMap((strongNode) => {
345
363
  if (typeof strongNode !== "string") return [strongNode];
346
364
  return renderEm(strongNode);
347
365
  });
@@ -10522,6 +10540,31 @@ function DisketteIcon({ stroke, strokeWidth, fill, size = "base",...rest }) {
10522
10540
  })))));
10523
10541
  }
10524
10542
 
10543
+ //#endregion
10544
+ //#region src/DesignTokens/Icons/Miscellaneous/ShrinkIcon.tsx
10545
+ function ShrinkIcon({ stroke, strokeWidth, fill, size = "base",...rest }) {
10546
+ return /* @__PURE__ */ react.default.createElement(__mui_material.SvgIcon, {
10547
+ strokeWidth: strokeWidth ?? 0,
10548
+ stroke: stroke ? stroke : "none",
10549
+ sx: {
10550
+ height: getIconSize(size),
10551
+ width: getIconSize(size)
10552
+ },
10553
+ ...rest
10554
+ }, /* @__PURE__ */ react.default.createElement("svg", {
10555
+ xmlns: "http://www.w3.org/2000/svg",
10556
+ width: "20",
10557
+ height: "20",
10558
+ viewBox: "0 0 20 20",
10559
+ fill: "none"
10560
+ }, /* @__PURE__ */ react.default.createElement("path", {
10561
+ fillRule: "evenodd",
10562
+ clipRule: "evenodd",
10563
+ d: "M19.2379 0.0133979C19.1865 0.024067 19.1085 0.0541571 19.0645 0.080163C19.0206 0.106252 17.5293 1.58125 15.7505 3.35799L12.5163 6.58848L12.5102 4.47633L12.5041 2.36427L12.4542 2.25591C12.3949 2.12688 12.2767 1.99902 12.1573 1.93458C12.0869 1.89658 12.0339 1.88774 11.8755 1.88766C11.7029 1.88749 11.6692 1.89416 11.5829 1.94525C11.4524 2.02252 11.3561 2.12629 11.3026 2.24741C11.259 2.34618 11.2585 2.37869 11.2574 5.31035L11.2563 8.27353L11.3076 8.38555C11.3728 8.52775 11.4765 8.63152 11.6183 8.69646L11.7296 8.74747L14.6744 8.7468C16.6249 8.7463 17.6465 8.73855 17.7 8.72379C17.8646 8.67828 18.0522 8.48699 18.105 8.3107C18.1386 8.19851 18.134 8.03364 18.094 7.91619C18.0469 7.77783 17.896 7.61571 17.7553 7.55211L17.6409 7.50043L15.5221 7.4896L13.4035 7.47876L16.6348 4.24969C18.4121 2.47371 19.889 0.985452 19.9168 0.942442C20.0277 0.77132 20.0277 0.493007 19.9169 0.303964C19.7845 0.0779125 19.5044 -0.041948 19.2379 0.0133979ZM2.39126 11.2607C2.24821 11.2849 2.12917 11.3526 2.02839 11.4672C1.75112 11.7821 1.86216 12.2784 2.24913 12.4541C2.33491 12.493 2.43169 12.4948 4.47349 12.4952L6.60816 12.4957L3.35485 15.7519C0.724344 18.3847 0.0919554 19.0284 0.0515246 19.1145C-0.0151655 19.2566 -0.0174163 19.4848 0.0465228 19.6289C0.103209 19.7567 0.245009 19.8993 0.371053 19.955C0.508435 20.0158 0.724761 20.0149 0.865894 19.953C0.956426 19.9133 1.48503 19.3945 4.22916 16.6513L7.48505 13.3966L7.49114 15.5197C7.49731 17.6362 7.49747 17.6431 7.54366 17.7429C7.69271 18.0652 8.06025 18.2181 8.35819 18.0818C8.51625 18.0094 8.62278 17.911 8.68831 17.7767L8.74308 17.6644L8.74408 14.713C8.74458 13.0897 8.73841 11.7341 8.73032 11.7006C8.70423 11.5929 8.57193 11.4178 8.46448 11.3489C8.40754 11.3123 8.30917 11.2726 8.2459 11.2606C8.10911 11.2347 2.54457 11.2348 2.39126 11.2607Z",
10564
+ fill
10565
+ })));
10566
+ }
10567
+
10525
10568
  //#endregion
10526
10569
  //#region src/DesignTokens/Icons/Miscellaneous/KeyIcon.tsx
10527
10570
  function KeyIcon$1({ stroke, strokeWidth, fill, size = "base",...rest }) {
@@ -78179,6 +78222,7 @@ exports.Sentiment = Sentiment;
78179
78222
  exports.SettingsCircledIcon = SettingsCircledIcon;
78180
78223
  exports.SettingsSliderIcon = SettingsSliderIcon;
78181
78224
  exports.ShareIcon = ShareIcon;
78225
+ exports.ShrinkIcon = ShrinkIcon;
78182
78226
  exports.SingleSelect = SingleSelect;
78183
78227
  exports.SingleSelectWithCategories = SingleSelectWithCategories;
78184
78228
  exports.SingleSelectWithoutFilter = SingleSelectWithoutFilter;