odaptos_design_system 2.0.353 → 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.cjs +4 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -17768,7 +17768,7 @@ const Switch = ({ id, label, labelWeight = "bold", rightLabel, checked, disabled
|
|
|
17768
17768
|
|
|
17769
17769
|
//#endregion
|
|
17770
17770
|
//#region src/Atoms/Tag/Tag.modules.scss
|
|
17771
|
-
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}";
|
|
17771
|
+
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}";
|
|
17772
17772
|
var Tag_modules_default = {
|
|
17773
17773
|
"tag": "Tag-modules_tag__sYiD6",
|
|
17774
17774
|
"tag_ellipsis": "Tag-modules_tag_ellipsis__-WHk-",
|
|
@@ -17782,6 +17782,7 @@ var Tag_modules_default = {
|
|
|
17782
17782
|
"tag_sm": "Tag-modules_tag_sm__KQwsr",
|
|
17783
17783
|
"tag_base": "Tag-modules_tag_base__omYEM",
|
|
17784
17784
|
"tag_lg": "Tag-modules_tag_lg__E0lbY",
|
|
17785
|
+
"tag_xl": "Tag-modules_tag_xl__vljwh",
|
|
17785
17786
|
"canBeRemoved": "Tag-modules_canBeRemoved__ei-3U"
|
|
17786
17787
|
};
|
|
17787
17788
|
style_inject_es_default(css_248z$66);
|
|
@@ -17818,12 +17819,14 @@ const Tag = ({ text, id, status = "idle", size = "base", iconLeft, iconRight, am
|
|
|
17818
17819
|
if (size === "sm") return Tag_modules_default.tag_sm;
|
|
17819
17820
|
else if (size === "base") return Tag_modules_default.tag_base;
|
|
17820
17821
|
else if (size === "lg") return Tag_modules_default.tag_lg;
|
|
17822
|
+
else if (size === "xl") return Tag_modules_default.tag_xl;
|
|
17821
17823
|
else return Tag_modules_default.tag_base;
|
|
17822
17824
|
};
|
|
17823
17825
|
const getTextSize = () => {
|
|
17824
17826
|
if (size === "sm") return "xs";
|
|
17825
17827
|
else if (size === "base") return "sm";
|
|
17826
17828
|
else if (size === "lg") return "base";
|
|
17829
|
+
else if (size === "xl") return "xl";
|
|
17827
17830
|
else return "base";
|
|
17828
17831
|
};
|
|
17829
17832
|
const [isEllipsisActive, setIsEllipsisActive] = (0, react.useState)(false);
|