odaptos_design_system 2.0.352 → 2.0.354

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.d.cts CHANGED
@@ -369,7 +369,7 @@ interface TagProps$1 extends HTMLAttributes<HTMLDivElement> {
369
369
  text: string;
370
370
  id?: string;
371
371
  status?: 'idle' | 'success' | 'info' | 'warning' | 'critical' | 'light' | 'violet';
372
- size?: 'sm' | 'base' | 'lg';
372
+ size?: 'sm' | 'base' | 'lg' | 'xl';
373
373
  iconLeft?: JSX.Element;
374
374
  iconRight?: JSX.Element;
375
375
  amountNumber?: number | undefined;
package/dist/index.d.ts CHANGED
@@ -369,7 +369,7 @@ interface TagProps$1 extends HTMLAttributes<HTMLDivElement> {
369
369
  text: string;
370
370
  id?: string;
371
371
  status?: 'idle' | 'success' | 'info' | 'warning' | 'critical' | 'light' | 'violet';
372
- size?: 'sm' | 'base' | 'lg';
372
+ size?: 'sm' | 'base' | 'lg' | 'xl';
373
373
  iconLeft?: JSX.Element;
374
374
  iconRight?: JSX.Element;
375
375
  amountNumber?: number | undefined;
package/dist/index.js CHANGED
@@ -16501,9 +16501,9 @@ var v$7 = "5.5.5";
16501
16501
  var fr$8 = 25;
16502
16502
  var ip$7 = 0;
16503
16503
  var op$7 = 75;
16504
- var w$7 = 120;
16505
- var h$7 = 120;
16506
- var nm$7 = "Loading-2-cropped";
16504
+ var w$7 = 16;
16505
+ var h$7 = 16;
16506
+ var nm$7 = "Loading-2-1rem";
16507
16507
  var ddd$7 = 0;
16508
16508
  var assets$7 = [];
16509
16509
  var layers$7 = [{
@@ -16540,8 +16540,8 @@ var layers$7 = [{
16540
16540
  "p": {
16541
16541
  "a": 0,
16542
16542
  "k": [
16543
- 60,
16544
- 60,
16543
+ 8,
16544
+ 8,
16545
16545
  0
16546
16546
  ],
16547
16547
  "ix": 2
@@ -16558,8 +16558,8 @@ var layers$7 = [{
16558
16558
  "s": {
16559
16559
  "a": 0,
16560
16560
  "k": [
16561
- 160,
16562
- 160,
16561
+ 22,
16562
+ 22,
16563
16563
  100
16564
16564
  ],
16565
16565
  "ix": 6
@@ -16768,8 +16768,8 @@ var layers$7 = [{
16768
16768
  "p": {
16769
16769
  "a": 0,
16770
16770
  "k": [
16771
- 60,
16772
- 60,
16771
+ 8,
16772
+ 8,
16773
16773
  0
16774
16774
  ],
16775
16775
  "ix": 2
@@ -16786,8 +16786,8 @@ var layers$7 = [{
16786
16786
  "s": {
16787
16787
  "a": 0,
16788
16788
  "k": [
16789
- 160,
16790
- 160,
16789
+ 22,
16790
+ 22,
16791
16791
  100
16792
16792
  ],
16793
16793
  "ix": 6
@@ -17714,7 +17714,7 @@ const Switch = ({ id, label, labelWeight = "bold", rightLabel, checked, disabled
17714
17714
 
17715
17715
  //#endregion
17716
17716
  //#region src/Atoms/Tag/Tag.modules.scss
17717
- var css_248z$66 = ".Tag-modules_tag__sYiD6{align-items:center;border-radius:.25rem;display:flex;gap:.25rem;padding:0 .375rem;width:-moz-fit-content;width:fit-content}.Tag-modules_tag__sYiD6 p{padding:0!important;white-space:nowrap}.Tag-modules_tag_ellipsis__-WHk-{align-items:center;border-radius:.25rem;display:flex;gap:.25rem;padding:0 .375rem;width:-moz-fit-content;width:fit-content}.Tag-modules_tag_ellipsis__-WHk- p{max-width:95%;overflow:hidden;padding:0!important;text-overflow:ellipsis;white-space:nowrap!important;width:100%}.Tag-modules_tag_idle__ym-G7{background:var(--color-neutral-dark-shades-600,#717376)}.Tag-modules_tag_idle__ym-G7 svg{fill:#fff!important;stroke:#fff!important}.Tag-modules_tag_info__Q6-WL{background:var(--color-primary-100,#e5f1ff)}.Tag-modules_tag_info__Q6-WL svg{fill:#004799!important;stroke:#004799!important}.Tag-modules_tag_violet__CgNel{background:var(--Color-Extended-Purple-100,#e9d3fd)}.Tag-modules_tag_violet__CgNel svg{fill:#5c1994!important;stroke:#5c1994!important}.Tag-modules_tag_light__RqIr6{background:var(--Color-Neutral-Clear-Shades-150,#eee)}.Tag-modules_tag_light__RqIr6 svg{fill:#32353a!important;stroke:#32353a!important}.Tag-modules_tag_success__yANfh{background:var(--color-extended-green-100,#e8f5ea)}.Tag-modules_tag_success__yANfh svg{fill:#3c743d!important;stroke:#3c743d!important}.Tag-modules_tag_warning__C-O5t{background:var(--color-extended-yellow-100,#fff3d6)}.Tag-modules_tag_warning__C-O5t svg{fill:#6e4f00!important;stroke:#6e4f00!important}.Tag-modules_tag_critical__v79so{background:var(--color-extended-red-100,#fddbdb)}.Tag-modules_tag_critical__v79so svg{fill:#98312e!important;stroke:#98312e!important}.Tag-modules_tag_sm__KQwsr{height:1.25rem}.Tag-modules_tag_sm__KQwsr svg{height:.75rem;width:.75rem}.Tag-modules_tag_base__omYEM{height:1.75rem}.Tag-modules_tag_base__omYEM svg{height:1rem;width:1rem}.Tag-modules_tag_lg__E0lbY{height:2.25rem;padding:.25rem .75rem!important}.Tag-modules_tag_lg__E0lbY svg{height:1.5rem;width:1.5rem}.Tag-modules_canBeRemoved__ei-3U svg{cursor:pointer}";
17717
+ var css_248z$66 = ".Tag-modules_tag__sYiD6{align-items:center;border-radius:.25rem;display:flex;gap:.25rem;padding:0 .375rem;width:-moz-fit-content;width:fit-content}.Tag-modules_tag__sYiD6 p{padding:0!important;white-space:nowrap}.Tag-modules_tag_ellipsis__-WHk-{align-items:center;border-radius:.25rem;display:flex;gap:.25rem;padding:0 .375rem;width:-moz-fit-content;width:fit-content}.Tag-modules_tag_ellipsis__-WHk- p{max-width:95%;overflow:hidden;padding:0!important;text-overflow:ellipsis;white-space:nowrap!important;width:100%}.Tag-modules_tag_idle__ym-G7{background:var(--color-neutral-dark-shades-600,#717376)}.Tag-modules_tag_idle__ym-G7 svg{fill:#fff!important;stroke:#fff!important}.Tag-modules_tag_info__Q6-WL{background:var(--color-primary-100,#e5f1ff)}.Tag-modules_tag_info__Q6-WL svg{fill:#004799!important;stroke:#004799!important}.Tag-modules_tag_violet__CgNel{background:var(--Color-Extended-Purple-100,#e9d3fd)}.Tag-modules_tag_violet__CgNel svg{fill:#5c1994!important;stroke:#5c1994!important}.Tag-modules_tag_light__RqIr6{background:var(--Color-Neutral-Clear-Shades-150,#eee)}.Tag-modules_tag_light__RqIr6 svg{fill:#32353a!important;stroke:#32353a!important}.Tag-modules_tag_success__yANfh{background:var(--color-extended-green-100,#e8f5ea)}.Tag-modules_tag_success__yANfh svg{fill:#3c743d!important;stroke:#3c743d!important}.Tag-modules_tag_warning__C-O5t{background:var(--color-extended-yellow-100,#fff3d6)}.Tag-modules_tag_warning__C-O5t svg{fill:#6e4f00!important;stroke:#6e4f00!important}.Tag-modules_tag_critical__v79so{background:var(--color-extended-red-100,#fddbdb)}.Tag-modules_tag_critical__v79so svg{fill:#98312e!important;stroke:#98312e!important}.Tag-modules_tag_sm__KQwsr{height:1.25rem}.Tag-modules_tag_sm__KQwsr svg{height:.75rem;width:.75rem}.Tag-modules_tag_base__omYEM{height:1.75rem}.Tag-modules_tag_base__omYEM svg{height:1rem;width:1rem}.Tag-modules_tag_lg__E0lbY{gap:.5rem;height:2.25rem;padding:.25rem .75rem!important}.Tag-modules_tag_lg__E0lbY svg{height:1.5rem;width:1.5rem}.Tag-modules_tag_xl__vljwh{gap:.5rem;height:3rem;padding:.25rem .75rem!important}.Tag-modules_tag_xl__vljwh svg{height:2rem;width:2rem}.Tag-modules_canBeRemoved__ei-3U svg{cursor:pointer}";
17718
17718
  var Tag_modules_default = {
17719
17719
  "tag": "Tag-modules_tag__sYiD6",
17720
17720
  "tag_ellipsis": "Tag-modules_tag_ellipsis__-WHk-",
@@ -17728,6 +17728,7 @@ var Tag_modules_default = {
17728
17728
  "tag_sm": "Tag-modules_tag_sm__KQwsr",
17729
17729
  "tag_base": "Tag-modules_tag_base__omYEM",
17730
17730
  "tag_lg": "Tag-modules_tag_lg__E0lbY",
17731
+ "tag_xl": "Tag-modules_tag_xl__vljwh",
17731
17732
  "canBeRemoved": "Tag-modules_canBeRemoved__ei-3U"
17732
17733
  };
17733
17734
  style_inject_es_default(css_248z$66);
@@ -17764,12 +17765,14 @@ const Tag = ({ text, id, status = "idle", size = "base", iconLeft, iconRight, am
17764
17765
  if (size === "sm") return Tag_modules_default.tag_sm;
17765
17766
  else if (size === "base") return Tag_modules_default.tag_base;
17766
17767
  else if (size === "lg") return Tag_modules_default.tag_lg;
17768
+ else if (size === "xl") return Tag_modules_default.tag_xl;
17767
17769
  else return Tag_modules_default.tag_base;
17768
17770
  };
17769
17771
  const getTextSize = () => {
17770
17772
  if (size === "sm") return "xs";
17771
17773
  else if (size === "base") return "sm";
17772
17774
  else if (size === "lg") return "base";
17775
+ else if (size === "xl") return "xl";
17773
17776
  else return "base";
17774
17777
  };
17775
17778
  const [isEllipsisActive, setIsEllipsisActive] = useState(false);