@usecapsule/core-components 3.5.1-dev.1 → 3.5.1-dev.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/capsule/capsule.esm.js +1 -1
- package/dist/capsule/{p-4da7328c.entry.js → p-c6940f81.entry.js} +3 -3
- package/dist/capsule/p-c6940f81.entry.js.map +1 -0
- package/dist/cjs/cpsl-alert_34.cjs.entry.js +30 -28
- package/dist/cjs/cpsl-alert_34.cjs.entry.js.map +1 -1
- package/dist/collection/components/cpsl-text/cpsl-text.css +176 -57
- package/dist/collection/components/cpsl-text/cpsl-text.js +29 -27
- package/dist/collection/components/cpsl-text/cpsl-text.js.map +1 -1
- package/dist/esm/cpsl-alert_34.entry.js +30 -28
- package/dist/esm/cpsl-alert_34.entry.js.map +1 -1
- package/dist/types/components/cpsl-text/cpsl-text.d.ts +1 -1
- package/package.json +1 -1
- package/dist/capsule/p-4da7328c.entry.js.map +0 -1
@@ -19945,44 +19945,45 @@ const getTab = (tabs, tab) => {
|
|
19945
19945
|
};
|
19946
19946
|
CpslTabs.style = CpslTabsStyle0;
|
19947
19947
|
|
19948
|
-
const cpslTextCss = ":host{font-family:var(--cpsl-font-family, inherit);
|
19948
|
+
const cpslTextCss = ":host{display:block}:host p,h1,h2,h3,h4,h5,h6{font-family:var(--cpsl-font-family, inherit);padding:0px;margin:0px;font-weight:inherit;font-size:inherit;letter-spacing:inherit;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-smooth:never}:host p::-moz-selection,h1::-moz-selection,h2::-moz-selection,h3::-moz-selection,h4::-moz-selection,h5::-moz-selection,h6::-moz-selection{color:var(--cpsl-color-text-inverted) !important;background:var(--cpsl-color-background-64) !important}:host p::selection,h1::selection,h2::selection,h3::selection,h4::selection,h5::selection,h6::selection{color:var(--cpsl-color-text-inverted) !important;background:var(--cpsl-color-background-64) !important}:host p.primary,h1.primary,h2.primary,h3.primary,h4.primary,h5.primary,h6.primary{color:var(--cpsl-color-text-primary)}:host p.secondary,h1.secondary,h2.secondary,h3.secondary,h4.secondary,h5.secondary,h6.secondary{color:var(--cpsl-color-text-secondary)}:host p.tertiary,h1.tertiary,h2.tertiary,h3.tertiary,h4.tertiary,h5.tertiary,h6.tertiary{color:var(--cpsl-color-text-tertiary)}:host p.subtle,h1.subtle,h2.subtle,h3.subtle,h4.subtle,h5.subtle,h6.subtle{color:var(--cpsl-color-text-subtle)}:host p.inverted,h1.inverted,h2.inverted,h3.inverted,h4.inverted,h5.inverted,h6.inverted{color:var(--cpsl-color-text-inverted)}:host p.error,h1.error,h2.error,h3.error,h4.error,h5.error,h6.error{color:var(--cpsl-color-text-error)}:host p.contrast,h1.contrast,h2.contrast,h3.contrast,h4.contrast,h5.contrast,h6.contrast{color:var(--cpsl-color-text-contrast)}:host p.medium,h1.medium,h2.medium,h3.medium,h4.medium,h5.medium,h6.medium{font-weight:500}:host p.semi-bold,h1.semi-bold,h2.semi-bold,h3.semi-bold,h4.semi-bold,h5.semi-bold,h6.semi-bold{font-weight:600}:host p.bold,h1.bold,h2.bold,h3.bold,h4.bold,h5.bold,h6.bold{font-weight:700}:host p.body-2xs,h1.body-2xs,h2.body-2xs,h3.body-2xs,h4.body-2xs,h5.body-2xs,h6.body-2xs{font-size:var(--cpsl-font-size-body-2xs)}:host p.body-xs,h1.body-xs,h2.body-xs,h3.body-xs,h4.body-xs,h5.body-xs,h6.body-xs{font-size:var(--cpsl-font-size-body-xs)}:host p.body-s,h1.body-s,h2.body-s,h3.body-s,h4.body-s,h5.body-s,h6.body-s{font-size:var(--cpsl-font-size-body-s);line-height:142.857%}:host p.body-m,h1.body-m,h2.body-m,h3.body-m,h4.body-m,h5.body-m,h6.body-m{font-size:var(--cpsl-font-size-body-m);line-height:150%}:host p.body-l,h1.body-l,h2.body-l,h3.body-l,h4.body-l,h5.body-l,h6.body-l{font-size:var(--cpsl-font-size-body-l);line-height:140%}:host p.body-xl,h1.body-xl,h2.body-xl,h3.body-xl,h4.body-xl,h5.body-xl,h6.body-xl{font-size:var(--cpsl-font-size-body-xl)}:host p.heading-xs,h1.heading-xs,h2.heading-xs,h3.heading-xs,h4.heading-xs,h5.heading-xs,h6.heading-xs{font-size:var(--cpsl-font-size-heading-xs)}:host p.heading-s,h1.heading-s,h2.heading-s,h3.heading-s,h4.heading-s,h5.heading-s,h6.heading-s{font-size:var(--cpsl-font-size-heading-s)}:host p.heading-m,h1.heading-m,h2.heading-m,h3.heading-m,h4.heading-m,h5.heading-m,h6.heading-m{font-size:var(--cpsl-font-size-heading-m);letter-spacing:-0.4px}:host p.heading-l,h1.heading-l,h2.heading-l,h3.heading-l,h4.heading-l,h5.heading-l,h6.heading-l{font-size:var(--cpsl-font-size-heading-l);letter-spacing:-1.12px}:host p.heading-xl,h1.heading-xl,h2.heading-xl,h3.heading-xl,h4.heading-xl,h5.heading-xl,h6.heading-xl{font-size:var(--cpsl-font-size-heading-xl);letter-spacing:-1.28px}:host p.heading-2xl,h1.heading-2xl,h2.heading-2xl,h3.heading-2xl,h4.heading-2xl,h5.heading-2xl,h6.heading-2xl{font-size:var(--cpsl-font-size-heading-2xl);letter-spacing:-1.44px}";
|
19949
19949
|
const CpslTextStyle0 = cpslTextCss;
|
19950
19950
|
|
19951
19951
|
const TEXT_EL_PART = 'text-element';
|
19952
19952
|
const CpslText = class {
|
19953
19953
|
constructor(hostRef) {
|
19954
19954
|
index.registerInstance(this, hostRef);
|
19955
|
+
this.getContent = ({ classes, }) => {
|
19956
|
+
switch (this.variant) {
|
19957
|
+
case 'headingXS': {
|
19958
|
+
return (index.h("h6", { class: classes, part: TEXT_EL_PART }, index.h("slot", null)));
|
19959
|
+
}
|
19960
|
+
case 'headingS': {
|
19961
|
+
return (index.h("h5", { class: classes, part: TEXT_EL_PART }, index.h("slot", null)));
|
19962
|
+
}
|
19963
|
+
case 'headingM': {
|
19964
|
+
return (index.h("h4", { class: classes, part: TEXT_EL_PART }, index.h("slot", null)));
|
19965
|
+
}
|
19966
|
+
case 'headingL': {
|
19967
|
+
return (index.h("h3", { class: classes, part: TEXT_EL_PART }, index.h("slot", null)));
|
19968
|
+
}
|
19969
|
+
case 'headingXL': {
|
19970
|
+
return (index.h("h2", { class: classes, part: TEXT_EL_PART }, index.h("slot", null)));
|
19971
|
+
}
|
19972
|
+
case 'heading2XL': {
|
19973
|
+
return (index.h("h1", { class: classes, part: TEXT_EL_PART }, index.h("slot", null)));
|
19974
|
+
}
|
19975
|
+
default: {
|
19976
|
+
return (index.h("p", { class: classes, part: TEXT_EL_PART }, index.h("slot", null)));
|
19977
|
+
}
|
19978
|
+
}
|
19979
|
+
};
|
19955
19980
|
this.color = 'primary';
|
19956
19981
|
this.variant = 'bodyM';
|
19957
19982
|
this.weight = 'regular';
|
19958
19983
|
}
|
19959
|
-
get Content() {
|
19960
|
-
switch (this.variant) {
|
19961
|
-
case 'headingXS': {
|
19962
|
-
return (index.h("h6", { part: TEXT_EL_PART }, index.h("slot", null)));
|
19963
|
-
}
|
19964
|
-
case 'headingS': {
|
19965
|
-
return (index.h("h5", { part: TEXT_EL_PART }, index.h("slot", null)));
|
19966
|
-
}
|
19967
|
-
case 'headingM': {
|
19968
|
-
return (index.h("h4", { part: TEXT_EL_PART }, index.h("slot", null)));
|
19969
|
-
}
|
19970
|
-
case 'headingL': {
|
19971
|
-
return (index.h("h3", { part: TEXT_EL_PART }, index.h("slot", null)));
|
19972
|
-
}
|
19973
|
-
case 'headingXL': {
|
19974
|
-
return (index.h("h2", { part: TEXT_EL_PART }, index.h("slot", null)));
|
19975
|
-
}
|
19976
|
-
case 'heading2XL': {
|
19977
|
-
return (index.h("h1", { part: TEXT_EL_PART }, index.h("slot", null)));
|
19978
|
-
}
|
19979
|
-
default: {
|
19980
|
-
return (index.h("p", { part: TEXT_EL_PART }, index.h("slot", null)));
|
19981
|
-
}
|
19982
|
-
}
|
19983
|
-
}
|
19984
19984
|
render() {
|
19985
|
-
return (index.h(index.Host, { key: '
|
19985
|
+
return (index.h(index.Host, { key: '4e5d967b96ae69553f1826a31cd0baf84735cdb0' }, this.getContent({
|
19986
|
+
classes: {
|
19986
19987
|
// COLORS
|
19987
19988
|
'primary': this.color === 'primary',
|
19988
19989
|
'secondary': this.color === 'secondary',
|
@@ -20008,7 +20009,8 @@ const CpslText = class {
|
|
20008
20009
|
'heading-l': this.variant === 'headingL',
|
20009
20010
|
'heading-xl': this.variant === 'headingXL',
|
20010
20011
|
'heading-2xl': this.variant === 'heading2XL',
|
20011
|
-
}
|
20012
|
+
},
|
20013
|
+
})));
|
20012
20014
|
}
|
20013
20015
|
};
|
20014
20016
|
CpslText.style = CpslTextStyle0;
|