@usecapsule/core-components 2.0.3 → 2.0.4-dev.dropdown.0
Sign up to get free protection for your applications and to get access to all the features.
- package/css/capsule-core.css +12 -0
- package/css/capsule-core.css.map +1 -1
- package/dist/capsule/capsule.esm.js +1 -1
- package/dist/capsule/capsule.esm.js.map +1 -1
- package/dist/capsule/index.esm.js +1 -1
- package/dist/capsule/index.esm.js.map +1 -1
- package/dist/capsule/{p-68c73705.entry.js → p-0cab90fa.entry.js} +2 -2
- package/dist/capsule/{p-91412151.entry.js → p-193ac141.entry.js} +2 -2
- package/dist/capsule/p-7a2b95de.entry.js +29 -0
- package/dist/capsule/p-7a2b95de.entry.js.map +1 -0
- package/dist/capsule/p-cb8dc0a4.entry.js +2 -0
- package/dist/cjs/capsule.cjs.js +1 -1
- package/dist/cjs/{cpsl-alert_17.cjs.entry.js → cpsl-alert_18.cjs.entry.js} +4104 -16
- package/dist/cjs/cpsl-alert_18.cjs.entry.js.map +1 -0
- package/dist/cjs/cpsl-grid.cjs.entry.js +2 -2
- package/dist/cjs/cpsl-info-box.cjs.entry.js +1 -1
- package/dist/cjs/cpsl-row.cjs.entry.js +1 -1
- package/dist/cjs/index-3fccb5b4.js +2 -2
- package/dist/cjs/index.cjs.js +28 -8
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/assets/icons/AD.svg +15 -0
- package/dist/collection/assets/icons/AE.svg +13 -0
- package/dist/collection/assets/icons/AF.svg +14 -0
- package/dist/collection/assets/icons/AG.svg +15 -0
- package/dist/collection/assets/icons/AI.svg +19 -0
- package/dist/collection/assets/icons/AL.svg +11 -0
- package/dist/collection/assets/icons/AM.svg +12 -0
- package/dist/collection/assets/icons/AO.svg +14 -0
- package/dist/collection/assets/icons/AR.svg +13 -0
- package/dist/collection/assets/icons/AS.svg +15 -0
- package/dist/collection/assets/icons/AT.svg +12 -0
- package/dist/collection/assets/icons/AU.svg +20 -0
- package/dist/collection/assets/icons/AW.svg +15 -0
- package/dist/collection/assets/icons/AX.svg +15 -0
- package/dist/collection/assets/icons/AZ.svg +14 -0
- package/dist/collection/assets/icons/BA.svg +13 -0
- package/dist/collection/assets/icons/BB.svg +13 -0
- package/dist/collection/assets/icons/BD.svg +11 -0
- package/dist/collection/assets/icons/BE.svg +12 -0
- package/dist/collection/assets/icons/BF.svg +12 -0
- package/dist/collection/assets/icons/BG.svg +12 -0
- package/dist/collection/assets/icons/BH.svg +11 -0
- package/dist/collection/assets/icons/BI.svg +18 -0
- package/dist/collection/assets/icons/BJ.svg +12 -0
- package/dist/collection/assets/icons/BL.svg +16 -0
- package/dist/collection/assets/icons/BM.svg +20 -0
- package/dist/collection/assets/icons/BN.svg +19 -0
- package/dist/collection/assets/icons/BO.svg +12 -0
- package/dist/collection/assets/icons/BQ.svg +14 -0
- package/dist/collection/assets/icons/BQ2.svg +20 -0
- package/dist/collection/assets/icons/BQ3.svg +15 -0
- package/dist/collection/assets/icons/BR.svg +14 -0
- package/dist/collection/assets/icons/BS.svg +13 -0
- package/dist/collection/assets/icons/BT.svg +12 -0
- package/dist/collection/assets/icons/BW.svg +13 -0
- package/dist/collection/assets/icons/BY.svg +18 -0
- package/dist/collection/assets/icons/BZ.svg +17 -0
- package/dist/collection/assets/icons/CA.svg +13 -0
- package/dist/collection/assets/icons/CC.svg +19 -0
- package/dist/collection/assets/icons/CD.svg +12 -0
- package/dist/collection/assets/icons/CD2.svg +14 -0
- package/dist/collection/assets/icons/CF.svg +20 -0
- package/dist/collection/assets/icons/CH.svg +11 -0
- package/dist/collection/assets/icons/CK.svg +22 -0
- package/dist/collection/assets/icons/CL.svg +13 -0
- package/dist/collection/assets/icons/CM.svg +13 -0
- package/dist/collection/assets/icons/CN.svg +15 -0
- package/dist/collection/assets/icons/CO.svg +12 -0
- package/dist/collection/assets/icons/CR.svg +13 -0
- package/dist/collection/assets/icons/CU.svg +15 -0
- package/dist/collection/assets/icons/CW.svg +14 -0
- package/dist/collection/assets/icons/CX.svg +19 -0
- package/dist/collection/assets/icons/CY.svg +12 -0
- package/dist/collection/assets/icons/CZ.svg +12 -0
- package/dist/collection/assets/icons/DE.svg +12 -0
- package/dist/collection/assets/icons/DJ.svg +13 -0
- package/dist/collection/assets/icons/DK.svg +14 -0
- package/dist/collection/assets/icons/DM.svg +34 -0
- package/dist/collection/assets/icons/DO.svg +17 -0
- package/dist/collection/assets/icons/DS.svg +13 -0
- package/dist/collection/assets/icons/DZ.svg +13 -0
- package/dist/collection/assets/icons/EC.svg +15 -0
- package/dist/collection/assets/icons/EE.svg +12 -0
- package/dist/collection/assets/icons/EG.svg +13 -0
- package/dist/collection/assets/icons/EH.svg +15 -0
- package/dist/collection/assets/icons/ER.svg +13 -0
- package/dist/collection/assets/icons/ES.svg +12 -0
- package/dist/collection/assets/icons/ET.svg +15 -0
- package/dist/collection/assets/icons/FI.svg +11 -0
- package/dist/collection/assets/icons/FJ.svg +18 -0
- package/dist/collection/assets/icons/FK.svg +18 -0
- package/dist/collection/assets/icons/FM.svg +14 -0
- package/dist/collection/assets/icons/FO.svg +12 -0
- package/dist/collection/assets/icons/FR.svg +12 -0
- package/dist/collection/assets/icons/GA.svg +12 -0
- package/dist/collection/assets/icons/GB-2.svg +11 -0
- package/dist/collection/assets/icons/GB.svg +23 -0
- package/dist/collection/assets/icons/GD.svg +26 -0
- package/dist/collection/assets/icons/GE.svg +15 -0
- package/dist/collection/assets/icons/GG.svg +12 -0
- package/dist/collection/assets/icons/GH.svg +13 -0
- package/dist/collection/assets/icons/GI.svg +13 -0
- package/dist/collection/assets/icons/GL.svg +13 -0
- package/dist/collection/assets/icons/GM.svg +13 -0
- package/dist/collection/assets/icons/GN.svg +12 -0
- package/dist/collection/assets/icons/GQ.svg +16 -0
- package/dist/collection/assets/icons/GR.svg +15 -0
- package/dist/collection/assets/icons/GT.svg +14 -0
- package/dist/collection/assets/icons/GU.svg +18 -0
- package/dist/collection/assets/icons/GW.svg +14 -0
- package/dist/collection/assets/icons/GY.svg +15 -0
- package/dist/collection/assets/icons/HK.svg +15 -0
- package/dist/collection/assets/icons/HN.svg +17 -0
- package/dist/collection/assets/icons/HR.svg +31 -0
- package/dist/collection/assets/icons/HT.svg +17 -0
- package/dist/collection/assets/icons/HU.svg +12 -0
- package/dist/collection/assets/icons/ID.svg +11 -0
- package/dist/collection/assets/icons/IE.svg +12 -0
- package/dist/collection/assets/icons/IL.svg +13 -0
- package/dist/collection/assets/icons/IM.svg +11 -0
- package/dist/collection/assets/icons/IN.svg +15 -0
- package/dist/collection/assets/icons/IO.svg +29 -0
- package/dist/collection/assets/icons/IQ.svg +15 -0
- package/dist/collection/assets/icons/IR.svg +13 -0
- package/dist/collection/assets/icons/IS.svg +15 -0
- package/dist/collection/assets/icons/IT.svg +12 -0
- package/dist/collection/assets/icons/JE.svg +13 -0
- package/dist/collection/assets/icons/JM.svg +14 -0
- package/dist/collection/assets/icons/JO.svg +14 -0
- package/dist/collection/assets/icons/JP.svg +11 -0
- package/dist/collection/assets/icons/KE.svg +19 -0
- package/dist/collection/assets/icons/KG.svg +16 -0
- package/dist/collection/assets/icons/KH.svg +13 -0
- package/dist/collection/assets/icons/KI.svg +17 -0
- package/dist/collection/assets/icons/KM.svg +19 -0
- package/dist/collection/assets/icons/KN.svg +15 -0
- package/dist/collection/assets/icons/KP.svg +15 -0
- package/dist/collection/assets/icons/KR.svg +30 -0
- package/dist/collection/assets/icons/KW.svg +13 -0
- package/dist/collection/assets/icons/KY.svg +20 -0
- package/dist/collection/assets/icons/KZ.svg +13 -0
- package/dist/collection/assets/icons/LA.svg +13 -0
- package/dist/collection/assets/icons/LB.svg +13 -0
- package/dist/collection/assets/icons/LC.svg +13 -0
- package/dist/collection/assets/icons/LI.svg +12 -0
- package/dist/collection/assets/icons/LK.svg +14 -0
- package/dist/collection/assets/icons/LR.svg +23 -0
- package/dist/collection/assets/icons/LS.svg +13 -0
- package/dist/collection/assets/icons/LT.svg +12 -0
- package/dist/collection/assets/icons/LU.svg +12 -0
- package/dist/collection/assets/icons/LV.svg +12 -0
- package/dist/collection/assets/icons/LY.svg +14 -0
- package/dist/collection/assets/icons/MA.svg +11 -0
- package/dist/collection/assets/icons/MC.svg +11 -0
- package/dist/collection/assets/icons/MD.svg +15 -0
- package/dist/collection/assets/icons/ME.svg +15 -0
- package/dist/collection/assets/icons/MG.svg +12 -0
- package/dist/collection/assets/icons/MH.svg +13 -0
- package/dist/collection/assets/icons/MK.svg +20 -0
- package/dist/collection/assets/icons/ML.svg +12 -0
- package/dist/collection/assets/icons/MM.svg +13 -0
- package/dist/collection/assets/icons/MN.svg +19 -0
- package/dist/collection/assets/icons/MO.svg +18 -0
- package/dist/collection/assets/icons/MP.svg +14 -0
- package/dist/collection/assets/icons/MQ.svg +18 -0
- package/dist/collection/assets/icons/MR.svg +12 -0
- package/dist/collection/assets/icons/MS.svg +17 -0
- package/dist/collection/assets/icons/MT.svg +12 -0
- package/dist/collection/assets/icons/MU.svg +13 -0
- package/dist/collection/assets/icons/MV.svg +12 -0
- package/dist/collection/assets/icons/MW.svg +13 -0
- package/dist/collection/assets/icons/MX.svg +14 -0
- package/dist/collection/assets/icons/MY.svg +17 -0
- package/dist/collection/assets/icons/MZ.svg +17 -0
- package/dist/collection/assets/icons/NA.svg +14 -0
- package/dist/collection/assets/icons/NE.svg +13 -0
- package/dist/collection/assets/icons/NF.svg +13 -0
- package/dist/collection/assets/icons/NG.svg +12 -0
- package/dist/collection/assets/icons/NI.svg +16 -0
- package/dist/collection/assets/icons/NL.svg +12 -0
- package/dist/collection/assets/icons/NO.svg +15 -0
- package/dist/collection/assets/icons/NP.svg +16 -0
- package/dist/collection/assets/icons/NR.svg +14 -0
- package/dist/collection/assets/icons/NU.svg +20 -0
- package/dist/collection/assets/icons/NZ.svg +18 -0
- package/dist/collection/assets/icons/OM.svg +15 -0
- package/dist/collection/assets/icons/PA.svg +14 -0
- package/dist/collection/assets/icons/PE.svg +12 -0
- package/dist/collection/assets/icons/PF.svg +17 -0
- package/dist/collection/assets/icons/PG.svg +17 -0
- package/dist/collection/assets/icons/PH.svg +16 -0
- package/dist/collection/assets/icons/PK.svg +14 -0
- package/dist/collection/assets/icons/PL.svg +11 -0
- package/dist/collection/assets/icons/PN.svg +18 -0
- package/dist/collection/assets/icons/PR.svg +15 -0
- package/dist/collection/assets/icons/PS.svg +13 -0
- package/dist/collection/assets/icons/PT.svg +14 -0
- package/dist/collection/assets/icons/PW.svg +11 -0
- package/dist/collection/assets/icons/PY.svg +14 -0
- package/dist/collection/assets/icons/QA.svg +11 -0
- package/dist/collection/assets/icons/RO.svg +12 -0
- package/dist/collection/assets/icons/RS.svg +16 -0
- package/dist/collection/assets/icons/RU.svg +12 -0
- package/dist/collection/assets/icons/RW.svg +13 -0
- package/dist/collection/assets/icons/SA.svg +16 -0
- package/dist/collection/assets/icons/SB.svg +17 -0
- package/dist/collection/assets/icons/SC.svg +14 -0
- package/dist/collection/assets/icons/SE.svg +14 -0
- package/dist/collection/assets/icons/SG.svg +17 -0
- package/dist/collection/assets/icons/SI.svg +13 -0
- package/dist/collection/assets/icons/SK.svg +16 -0
- package/dist/collection/assets/icons/SL.svg +12 -0
- package/dist/collection/assets/icons/SM.svg +16 -0
- package/dist/collection/assets/icons/SN.svg +13 -0
- package/dist/collection/assets/icons/SO.svg +11 -0
- package/dist/collection/assets/icons/SR.svg +14 -0
- package/dist/collection/assets/icons/SS.svg +15 -0
- package/dist/collection/assets/icons/ST.svg +15 -0
- package/dist/collection/assets/icons/SV.svg +15 -0
- package/dist/collection/assets/icons/SX.svg +17 -0
- package/dist/collection/assets/icons/SY.svg +14 -0
- package/dist/collection/assets/icons/SZ.svg +21 -0
- package/dist/collection/assets/icons/TC.svg +19 -0
- package/dist/collection/assets/icons/TD.svg +12 -0
- package/dist/collection/assets/icons/TG.svg +15 -0
- package/dist/collection/assets/icons/TH.svg +13 -0
- package/dist/collection/assets/icons/TJ.svg +20 -0
- package/dist/collection/assets/icons/TK.svg +15 -0
- package/dist/collection/assets/icons/TL.svg +13 -0
- package/dist/collection/assets/icons/TM.svg +30 -0
- package/dist/collection/assets/icons/TN.svg +13 -0
- package/dist/collection/assets/icons/TO.svg +12 -0
- package/dist/collection/assets/icons/TR.svg +12 -0
- package/dist/collection/assets/icons/TT.svg +13 -0
- package/dist/collection/assets/icons/TV.svg +25 -0
- package/dist/collection/assets/icons/TW.svg +14 -0
- package/dist/collection/assets/icons/TZ.svg +13 -0
- package/dist/collection/assets/icons/UA.svg +11 -0
- package/dist/collection/assets/icons/UG.svg +16 -0
- package/dist/collection/assets/icons/US.svg +15 -0
- package/dist/collection/assets/icons/UY.svg +16 -0
- package/dist/collection/assets/icons/UZ.svg +27 -0
- package/dist/collection/assets/icons/VC.svg +15 -0
- package/dist/collection/assets/icons/VE.svg +20 -0
- package/dist/collection/assets/icons/VG.svg +24 -0
- package/dist/collection/assets/icons/VI.svg +18 -0
- package/dist/collection/assets/icons/VN.svg +11 -0
- package/dist/collection/assets/icons/VU.svg +32 -0
- package/dist/collection/assets/icons/WS.svg +16 -0
- package/dist/collection/assets/icons/YE.svg +12 -0
- package/dist/collection/assets/icons/ZA.svg +15 -0
- package/dist/collection/assets/icons/ZM.svg +14 -0
- package/dist/collection/assets/icons/ZW.svg +20 -0
- package/dist/collection/assets/icons/chevron-up.svg +3 -0
- package/dist/collection/assets/icons/earth.svg +11 -0
- package/dist/collection/assets/icons/index.js +236 -1
- package/dist/collection/assets/icons/index.js.map +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/cpsl-alert/cpsl-alert.js +1 -1
- package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.css +88 -0
- package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js +118 -0
- package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js.map +1 -0
- package/dist/collection/components/cpsl-dropdown/test/cpsl-dropdown.e2e.js +29 -0
- package/dist/collection/components/cpsl-dropdown/test/cpsl-dropdown.e2e.js.map +1 -0
- package/dist/collection/components/cpsl-dropdown/test/cpsl-dropdown.spec.js +37 -0
- package/dist/collection/components/cpsl-dropdown/test/cpsl-dropdown.spec.js.map +1 -0
- package/dist/collection/components/cpsl-grid/cpsl-grid.js +2 -2
- package/dist/collection/components/cpsl-icon/cpsl-icon.js +2 -2
- package/dist/collection/components/cpsl-info-box/cpsl-info-box.js +1 -1
- package/dist/collection/components/cpsl-input/cpsl-input.css +3 -3
- package/dist/collection/components/cpsl-input/cpsl-input.js +2 -2
- package/dist/collection/components/cpsl-overlay/cpsl-overlay.js +1 -1
- package/dist/collection/components/cpsl-pill/cpsl-pill.js +1 -1
- package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js +1 -1
- package/dist/collection/components/cpsl-row/cpsl-row.js +1 -1
- package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js +3 -3
- package/dist/collection/components/cpsl-spinner/cpsl-spinner.js +2 -2
- package/dist/collection/components/cpsl-tab/cpsl-tab.js +1 -1
- package/dist/collection/components/cpsl-tabs/cpsl-tabs.js +1 -1
- package/dist/collection/components/cpsl-text/cpsl-text.css +101 -0
- package/dist/collection/components/cpsl-text/cpsl-text.js +110 -1
- package/dist/collection/components/cpsl-text/cpsl-text.js.map +1 -1
- package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.js +2 -2
- package/dist/collection/index.js +1 -1
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/interface.js.map +1 -1
- package/dist/collection/utils/theme/generateFont.js +25 -4
- package/dist/collection/utils/theme/generateFont.js.map +1 -1
- package/dist/collection/utils/theme/generateTheme.js +2 -3
- package/dist/collection/utils/theme/generateTheme.js.map +1 -1
- package/dist/esm/capsule.js +1 -1
- package/dist/esm/{cpsl-alert_17.entry.js → cpsl-alert_18.entry.js} +4104 -17
- package/dist/esm/cpsl-alert_18.entry.js.map +1 -0
- package/dist/esm/cpsl-grid.entry.js +2 -2
- package/dist/esm/cpsl-info-box.entry.js +1 -1
- package/dist/esm/cpsl-row.entry.js +1 -1
- package/dist/esm/index-f00e090c.js +2 -2
- package/dist/esm/index.js +28 -8
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/assets/icons/index.d.ts +235 -0
- package/dist/types/components/cpsl-dropdown/cpsl-dropdown.d.ts +26 -0
- package/dist/types/components/cpsl-text/cpsl-text.d.ts +4 -0
- package/dist/types/components.d.ts +53 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/interface.d.ts +15 -0
- package/dist/types/utils/theme/generateFont.d.ts +1 -1
- package/dist/types/utils/theme/generateTheme.d.ts +1 -2
- package/package.json +2 -3
- package/dist/capsule/p-81a385a0.entry.js +0 -29
- package/dist/capsule/p-81a385a0.entry.js.map +0 -1
- package/dist/capsule/p-f604b591.entry.js +0 -2
- package/dist/cjs/cpsl-alert_17.cjs.entry.js.map +0 -1
- package/dist/esm/cpsl-alert_17.entry.js.map +0 -1
- /package/dist/capsule/{p-68c73705.entry.js.map → p-0cab90fa.entry.js.map} +0 -0
- /package/dist/capsule/{p-91412151.entry.js.map → p-193ac141.entry.js.map} +0 -0
- /package/dist/capsule/{p-f604b591.entry.js.map → p-cb8dc0a4.entry.js.map} +0 -0
- /package/dist/types/Users/{taylorbosch → vinay}/Documents/GitHub/Capsule/component-library/core/.stencil/scripts/buildIconLibrary.d.ts +0 -0
@@ -0,0 +1,29 @@
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
4
|
+
function fulfilled(value) { try {
|
5
|
+
step(generator.next(value));
|
6
|
+
}
|
7
|
+
catch (e) {
|
8
|
+
reject(e);
|
9
|
+
} }
|
10
|
+
function rejected(value) { try {
|
11
|
+
step(generator["throw"](value));
|
12
|
+
}
|
13
|
+
catch (e) {
|
14
|
+
reject(e);
|
15
|
+
} }
|
16
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
17
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
18
|
+
});
|
19
|
+
};
|
20
|
+
import { newE2EPage } from "@stencil/core/testing";
|
21
|
+
describe('cpsl-dropdown', () => {
|
22
|
+
it('renders', () => __awaiter(void 0, void 0, void 0, function* () {
|
23
|
+
const page = yield newE2EPage();
|
24
|
+
yield page.setContent('<cpsl-dropdown></cpsl-dropdown>');
|
25
|
+
const element = yield page.find('cpsl-dropdown');
|
26
|
+
expect(element).toHaveClass('hydrated');
|
27
|
+
}));
|
28
|
+
});
|
29
|
+
//# sourceMappingURL=cpsl-dropdown.e2e.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"cpsl-dropdown.e2e.js","sourceRoot":"","sources":["../../../../../src/components/cpsl-dropdown/test/cpsl-dropdown.e2e.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,QAAQ,CAAC,eAAe,EAAE,GAAG,EAAE;IAC7B,EAAE,CAAC,SAAS,EAAE,GAAS,EAAE;QACvB,MAAM,IAAI,GAAG,MAAM,UAAU,EAAE,CAAC;QAChC,MAAM,IAAI,CAAC,UAAU,CAAC,iCAAiC,CAAC,CAAC;QAEzD,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QACjD,MAAM,CAAC,OAAO,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAC1C,CAAC,CAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { newE2EPage } from '@stencil/core/testing';\n\ndescribe('cpsl-dropdown', () => {\n it('renders', async () => {\n const page = await newE2EPage();\n await page.setContent('<cpsl-dropdown></cpsl-dropdown>');\n\n const element = await page.find('cpsl-dropdown');\n expect(element).toHaveClass('hydrated');\n });\n});\n"]}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
4
|
+
function fulfilled(value) { try {
|
5
|
+
step(generator.next(value));
|
6
|
+
}
|
7
|
+
catch (e) {
|
8
|
+
reject(e);
|
9
|
+
} }
|
10
|
+
function rejected(value) { try {
|
11
|
+
step(generator["throw"](value));
|
12
|
+
}
|
13
|
+
catch (e) {
|
14
|
+
reject(e);
|
15
|
+
} }
|
16
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
17
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
18
|
+
});
|
19
|
+
};
|
20
|
+
import { newSpecPage } from "@stencil/core/testing";
|
21
|
+
import { CpslDropdown } from "../cpsl-dropdown";
|
22
|
+
describe('cpsl-dropdown', () => {
|
23
|
+
it('renders', () => __awaiter(void 0, void 0, void 0, function* () {
|
24
|
+
const page = yield newSpecPage({
|
25
|
+
components: [CpslDropdown],
|
26
|
+
html: `<cpsl-dropdown></cpsl-dropdown>`,
|
27
|
+
});
|
28
|
+
expect(page.root).toEqualHtml(`
|
29
|
+
<cpsl-dropdown>
|
30
|
+
<mock:shadow-root>
|
31
|
+
<slot></slot>
|
32
|
+
</mock:shadow-root>
|
33
|
+
</cpsl-dropdown>
|
34
|
+
`);
|
35
|
+
}));
|
36
|
+
});
|
37
|
+
//# sourceMappingURL=cpsl-dropdown.spec.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"cpsl-dropdown.spec.js","sourceRoot":"","sources":["../../../../../src/components/cpsl-dropdown/test/cpsl-dropdown.spec.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD,QAAQ,CAAC,eAAe,EAAE,GAAG,EAAE;IAC7B,EAAE,CAAC,SAAS,EAAE,GAAS,EAAE;QACvB,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;YAC7B,UAAU,EAAE,CAAC,YAAY,CAAC;YAC1B,IAAI,EAAE,iCAAiC;SACxC,CAAC,CAAC;QACH,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC;;;;;;KAM7B,CAAC,CAAC;IACL,CAAC,CAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { newSpecPage } from '@stencil/core/testing';\nimport { CpslDropdown } from '../cpsl-dropdown';\n\ndescribe('cpsl-dropdown', () => {\n it('renders', async () => {\n const page = await newSpecPage({\n components: [CpslDropdown],\n html: `<cpsl-dropdown></cpsl-dropdown>`,\n });\n expect(page.root).toEqualHtml(`\n <cpsl-dropdown>\n <mock:shadow-root>\n <slot></slot>\n </mock:shadow-root>\n </cpsl-dropdown>\n `);\n });\n});\n"]}
|
@@ -4,9 +4,9 @@ export class CpslGrid {
|
|
4
4
|
this.fixed = false;
|
5
5
|
}
|
6
6
|
render() {
|
7
|
-
return (h(Host, { key: '
|
7
|
+
return (h(Host, { key: 'ad08de3e168770731291ad1fd2ddffcac4ca6145', class: {
|
8
8
|
'grid-fixed': this.fixed,
|
9
|
-
} }, h("slot", { key: '
|
9
|
+
} }, h("slot", { key: '0c93c6a07b6acfaa4bd50c6edabbae30e37ed09d' })));
|
10
10
|
}
|
11
11
|
static get is() { return "cpsl-grid"; }
|
12
12
|
static get encapsulation() { return "shadow"; }
|
@@ -6,7 +6,7 @@ export class CpslIcon {
|
|
6
6
|
this.icon = undefined;
|
7
7
|
}
|
8
8
|
render() {
|
9
|
-
return (h(Host, { key: '
|
9
|
+
return (h(Host, { key: '89f3081baf013558e965cc6682811d66dc2b188d', part: "icon", role: "img" }, !Boolean(this.icon) ? h("img", { src: this.src }) : h("div", { innerHTML: Icons[this.icon] })));
|
10
10
|
}
|
11
11
|
static get is() { return "cpsl-icon"; }
|
12
12
|
static get encapsulation() { return "shadow"; }
|
@@ -44,7 +44,7 @@ export class CpslIcon {
|
|
44
44
|
"mutable": false,
|
45
45
|
"complexType": {
|
46
46
|
"original": "IconType",
|
47
|
-
"resolved": "\"alertCircle\" | \"angelListBrand\" | \"angelList\" | \"appleBrand\" | \"apple\" | \"arrowNarrow\" | \"arrow\" | \"backupKit\" | \"capsuleLogo\" | \"capsuleRingsDark\" | \"capsuleRings\" | \"capsule\" | \"check\" | \"clock\" | \"close\" | \"clubhouseBrand\" | \"clubhouse\" | \"copy\" | \"discordBrand\" | \"discord\" | \"downloadCloud\" | \"dribbbleBrand\" | \"dribbble\" | \"eyeOff\" | \"eye\" | \"facebookBrand\" | \"facebook\" | \"figmaBrand\" | \"figma\" | \"githubBrand\" | \"github\" | \"googleBrand\" | \"google\" | \"helpCircle\" | \"heroEmail\" | \"heroLock\" | \"heroPasskey\" | \"heroPhone\" | \"heroWallet\" | \"infoCircle\" | \"instagramBrand\" | \"instagram\" | \"
|
47
|
+
"resolved": "\"key\" | \"AD\" | \"AE\" | \"AF\" | \"AG\" | \"AI\" | \"AL\" | \"AM\" | \"AO\" | \"AR\" | \"AS\" | \"AT\" | \"AU\" | \"AW\" | \"AX\" | \"AZ\" | \"BA\" | \"BB\" | \"BD\" | \"BE\" | \"BF\" | \"BG\" | \"BH\" | \"BI\" | \"BJ\" | \"BL\" | \"BM\" | \"BN\" | \"BO\" | \"BQ\" | \"BQ2\" | \"BQ3\" | \"BR\" | \"BS\" | \"BT\" | \"BW\" | \"BY\" | \"BZ\" | \"CA\" | \"CC\" | \"CD\" | \"CD2\" | \"CF\" | \"CH\" | \"CK\" | \"CL\" | \"CM\" | \"CN\" | \"CO\" | \"CR\" | \"CU\" | \"CW\" | \"CX\" | \"CY\" | \"CZ\" | \"DE\" | \"DJ\" | \"DK\" | \"DM\" | \"DO\" | \"DS\" | \"DZ\" | \"EC\" | \"EE\" | \"EG\" | \"EH\" | \"ER\" | \"ES\" | \"ET\" | \"FI\" | \"FJ\" | \"FK\" | \"FM\" | \"FO\" | \"FR\" | \"GA\" | \"GB2\" | \"GB\" | \"GD\" | \"GE\" | \"GG\" | \"GH\" | \"GI\" | \"GL\" | \"GM\" | \"GN\" | \"GQ\" | \"GR\" | \"GT\" | \"GU\" | \"GW\" | \"GY\" | \"HK\" | \"HN\" | \"HR\" | \"HT\" | \"HU\" | \"ID\" | \"IE\" | \"IL\" | \"IM\" | \"IN\" | \"IO\" | \"IQ\" | \"IR\" | \"IS\" | \"IT\" | \"JE\" | \"JM\" | \"JO\" | \"JP\" | \"KE\" | \"KG\" | \"KH\" | \"KI\" | \"KM\" | \"KN\" | \"KP\" | \"KR\" | \"KW\" | \"KY\" | \"KZ\" | \"LA\" | \"LB\" | \"LC\" | \"LI\" | \"LK\" | \"LR\" | \"LS\" | \"LT\" | \"LU\" | \"LV\" | \"LY\" | \"MA\" | \"MC\" | \"MD\" | \"ME\" | \"MG\" | \"MH\" | \"MK\" | \"ML\" | \"MM\" | \"MN\" | \"MO\" | \"MP\" | \"MQ\" | \"MR\" | \"MS\" | \"MT\" | \"MU\" | \"MV\" | \"MW\" | \"MX\" | \"MY\" | \"MZ\" | \"NA\" | \"NE\" | \"NF\" | \"NG\" | \"NI\" | \"NL\" | \"NO\" | \"NP\" | \"NR\" | \"NU\" | \"NZ\" | \"OM\" | \"PA\" | \"PE\" | \"PF\" | \"PG\" | \"PH\" | \"PK\" | \"PL\" | \"PN\" | \"PR\" | \"PS\" | \"PT\" | \"PW\" | \"PY\" | \"QA\" | \"RO\" | \"RS\" | \"RU\" | \"RW\" | \"SA\" | \"SB\" | \"SC\" | \"SE\" | \"SG\" | \"SI\" | \"SK\" | \"SL\" | \"SM\" | \"SN\" | \"SO\" | \"SR\" | \"SS\" | \"ST\" | \"SV\" | \"SX\" | \"SY\" | \"SZ\" | \"TC\" | \"TD\" | \"TG\" | \"TH\" | \"TJ\" | \"TK\" | \"TL\" | \"TM\" | \"TN\" | \"TO\" | \"TR\" | \"TT\" | \"TV\" | \"TW\" | \"TZ\" | \"UA\" | \"UG\" | \"US\" | \"UY\" | \"UZ\" | \"VC\" | \"VE\" | \"VG\" | \"VI\" | \"VN\" | \"VU\" | \"WS\" | \"YE\" | \"ZA\" | \"ZM\" | \"ZW\" | \"alertCircle\" | \"angelListBrand\" | \"angelList\" | \"appleBrand\" | \"apple\" | \"arrowNarrow\" | \"arrow\" | \"backupKit\" | \"capsuleLogo\" | \"capsuleRingsDark\" | \"capsuleRings\" | \"capsule\" | \"check\" | \"chevronUp\" | \"clock\" | \"close\" | \"clubhouseBrand\" | \"clubhouse\" | \"copy\" | \"discordBrand\" | \"discord\" | \"downloadCloud\" | \"dribbbleBrand\" | \"dribbble\" | \"earth\" | \"eyeOff\" | \"eye\" | \"facebookBrand\" | \"facebook\" | \"figmaBrand\" | \"figma\" | \"githubBrand\" | \"github\" | \"googleBrand\" | \"google\" | \"helpCircle\" | \"heroEmail\" | \"heroLock\" | \"heroPasskey\" | \"heroPhone\" | \"heroWallet\" | \"infoCircle\" | \"instagramBrand\" | \"instagram\" | \"linkedinBrand\" | \"linkedin\" | \"mail\" | \"moreLoginOptions\" | \"phone\" | \"pintrestBrand\" | \"pintrest\" | \"plusCircle\" | \"redditBrand\" | \"reddit\" | \"signalBrand\" | \"signal\" | \"snapchatBrand\" | \"snapchat\" | \"telegramBrand\" | \"telegram\" | \"tikTokBrand\" | \"tikTok\" | \"tumblrBrand\" | \"tumblr\" | \"twitterBrand\" | \"twitter\" | \"wallet\" | \"youtubeBrand\" | \"youtube\"",
|
48
48
|
"references": {
|
49
49
|
"IconType": {
|
50
50
|
"location": "import",
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
2
2
|
export class CpslInfoBox {
|
3
3
|
render() {
|
4
|
-
return (h(Host, { key: '
|
4
|
+
return (h(Host, { key: 'c3adc346763da83e631c71bbc4f1ce7aad99ba04' }, h("div", { key: 'c03ce70d8c94d42264216c1376d81f8601a45656', class: "info-box-container" }, h("slot", { key: '3ae35495b7371479d0ad8e731011fb8b06a2c0d9' }))));
|
5
5
|
}
|
6
6
|
static get is() { return "cpsl-info-box"; }
|
7
7
|
static get encapsulation() { return "shadow"; }
|
@@ -72,16 +72,16 @@
|
|
72
72
|
--input-background-color-disabled: var(--cpsl-color-input-surface-disabled);
|
73
73
|
--input-color: var(--cpsl-color-text-primary);
|
74
74
|
--input-placeholder-color: var(--cpsl-color-text-secondary);
|
75
|
-
--input-font-size:
|
75
|
+
--input-font-size: var(--cpsl-font-size-body-m);
|
76
76
|
--label-color: var(--cpsl-color-text-primary);
|
77
|
-
--label-font-size:
|
77
|
+
--label-font-size: var(--cpsl-font-size-body-s);
|
78
78
|
--label-margin-bottom: 5px;
|
79
79
|
--helper-text-color: var(--cpsl-color-text-secondary);
|
80
80
|
--helper-text-error-color: var(--cpsl-color-text-error);
|
81
81
|
--helper-text-icon-color: var(--cpsl-color-text-secondary);
|
82
82
|
--helper-text-icon-error-color: var(--cpsl-color-text-error);
|
83
83
|
--helper-text-icon-size: 16px;
|
84
|
-
--helper-text-font-size:
|
84
|
+
--helper-text-font-size: var(--cpsl-font-size-body-xs);
|
85
85
|
--helper-text-margin-top: 8px;
|
86
86
|
display: block;
|
87
87
|
font-family: var(--cpsl-font-family, inherit);
|
@@ -101,7 +101,7 @@ export class CpslInput {
|
|
101
101
|
}
|
102
102
|
render() {
|
103
103
|
var _a;
|
104
|
-
return (h(Host, { key: '
|
104
|
+
return (h(Host, { key: '3e1a55cf2869a31c54ab03c3ecf2bae84ef5031b', class: { 'disabled': this.disabled, 'focused': this.hasFocus, 'has-value': Boolean(this.focusedValue) || Boolean(this.value) } }, this.label && (h("label", { class: "label", htmlFor: this.inputId }, this.label)), h("div", { key: '00a7a2d2dde66c610a9626044aae8ed75b9e9bf3', onClick: this.focusInput, class: { 'input-container': true, 'error-container': Boolean(this.errorText) } }, h("slot", { key: 'aefa6ccf3ca17216da5a657e104f471109836c78', name: "start" }), h("input", { key: '86e8426bff08ead8595bd40086fc7e5fc3c67295', class: "native-input", id: this.inputId, disabled: this.disabled, autoCapitalize: this.autocapitalize, autoComplete: this.autocomplete, autoCorrect: this.autocorrect, autoFocus: this.autofocus, enterKeyHint: this.enterkeyhint, inputMode: this.inputmode, min: this.min, max: this.max, minLength: this.minlength, maxLength: this.maxlength, multiple: this.multiple, name: this.name, pattern: this.pattern, placeholder: this.placeholder || '', readOnly: this.readonly, required: this.required, spellcheck: this.spellcheck, type: this.type, value: this.value, onInput: this.onInput, onChange: this.onChange, onFocus: this.onFocus, onBlur: this.onBlur }), h("slot", { key: '246e05dbbc4740ce09bd9b4bba779eb0d1010882', name: "end" })), (this.errorText || this.helperText) && (h("div", { class: { 'helper-text-container': true, 'error-text': Boolean(this.errorText) } }, h("cpsl-icon", { icon: Boolean(this.errorText) ? 'alertCircle' : 'infoCircle' }), h("span", null, (_a = this.errorText) !== null && _a !== void 0 ? _a : this.helperText)))));
|
105
105
|
}
|
106
106
|
static get is() { return "cpsl-input"; }
|
107
107
|
static get encapsulation() { return "shadow"; }
|
@@ -528,7 +528,7 @@ export class CpslInput {
|
|
528
528
|
"mutable": false,
|
529
529
|
"complexType": {
|
530
530
|
"original": "IconType",
|
531
|
-
"resolved": "\"alertCircle\" | \"angelListBrand\" | \"angelList\" | \"appleBrand\" | \"apple\" | \"arrowNarrow\" | \"arrow\" | \"backupKit\" | \"capsuleLogo\" | \"capsuleRingsDark\" | \"capsuleRings\" | \"capsule\" | \"check\" | \"clock\" | \"close\" | \"clubhouseBrand\" | \"clubhouse\" | \"copy\" | \"discordBrand\" | \"discord\" | \"downloadCloud\" | \"dribbbleBrand\" | \"dribbble\" | \"eyeOff\" | \"eye\" | \"facebookBrand\" | \"facebook\" | \"figmaBrand\" | \"figma\" | \"githubBrand\" | \"github\" | \"googleBrand\" | \"google\" | \"helpCircle\" | \"heroEmail\" | \"heroLock\" | \"heroPasskey\" | \"heroPhone\" | \"heroWallet\" | \"infoCircle\" | \"instagramBrand\" | \"instagram\" | \"
|
531
|
+
"resolved": "\"key\" | \"AD\" | \"AE\" | \"AF\" | \"AG\" | \"AI\" | \"AL\" | \"AM\" | \"AO\" | \"AR\" | \"AS\" | \"AT\" | \"AU\" | \"AW\" | \"AX\" | \"AZ\" | \"BA\" | \"BB\" | \"BD\" | \"BE\" | \"BF\" | \"BG\" | \"BH\" | \"BI\" | \"BJ\" | \"BL\" | \"BM\" | \"BN\" | \"BO\" | \"BQ\" | \"BQ2\" | \"BQ3\" | \"BR\" | \"BS\" | \"BT\" | \"BW\" | \"BY\" | \"BZ\" | \"CA\" | \"CC\" | \"CD\" | \"CD2\" | \"CF\" | \"CH\" | \"CK\" | \"CL\" | \"CM\" | \"CN\" | \"CO\" | \"CR\" | \"CU\" | \"CW\" | \"CX\" | \"CY\" | \"CZ\" | \"DE\" | \"DJ\" | \"DK\" | \"DM\" | \"DO\" | \"DS\" | \"DZ\" | \"EC\" | \"EE\" | \"EG\" | \"EH\" | \"ER\" | \"ES\" | \"ET\" | \"FI\" | \"FJ\" | \"FK\" | \"FM\" | \"FO\" | \"FR\" | \"GA\" | \"GB2\" | \"GB\" | \"GD\" | \"GE\" | \"GG\" | \"GH\" | \"GI\" | \"GL\" | \"GM\" | \"GN\" | \"GQ\" | \"GR\" | \"GT\" | \"GU\" | \"GW\" | \"GY\" | \"HK\" | \"HN\" | \"HR\" | \"HT\" | \"HU\" | \"ID\" | \"IE\" | \"IL\" | \"IM\" | \"IN\" | \"IO\" | \"IQ\" | \"IR\" | \"IS\" | \"IT\" | \"JE\" | \"JM\" | \"JO\" | \"JP\" | \"KE\" | \"KG\" | \"KH\" | \"KI\" | \"KM\" | \"KN\" | \"KP\" | \"KR\" | \"KW\" | \"KY\" | \"KZ\" | \"LA\" | \"LB\" | \"LC\" | \"LI\" | \"LK\" | \"LR\" | \"LS\" | \"LT\" | \"LU\" | \"LV\" | \"LY\" | \"MA\" | \"MC\" | \"MD\" | \"ME\" | \"MG\" | \"MH\" | \"MK\" | \"ML\" | \"MM\" | \"MN\" | \"MO\" | \"MP\" | \"MQ\" | \"MR\" | \"MS\" | \"MT\" | \"MU\" | \"MV\" | \"MW\" | \"MX\" | \"MY\" | \"MZ\" | \"NA\" | \"NE\" | \"NF\" | \"NG\" | \"NI\" | \"NL\" | \"NO\" | \"NP\" | \"NR\" | \"NU\" | \"NZ\" | \"OM\" | \"PA\" | \"PE\" | \"PF\" | \"PG\" | \"PH\" | \"PK\" | \"PL\" | \"PN\" | \"PR\" | \"PS\" | \"PT\" | \"PW\" | \"PY\" | \"QA\" | \"RO\" | \"RS\" | \"RU\" | \"RW\" | \"SA\" | \"SB\" | \"SC\" | \"SE\" | \"SG\" | \"SI\" | \"SK\" | \"SL\" | \"SM\" | \"SN\" | \"SO\" | \"SR\" | \"SS\" | \"ST\" | \"SV\" | \"SX\" | \"SY\" | \"SZ\" | \"TC\" | \"TD\" | \"TG\" | \"TH\" | \"TJ\" | \"TK\" | \"TL\" | \"TM\" | \"TN\" | \"TO\" | \"TR\" | \"TT\" | \"TV\" | \"TW\" | \"TZ\" | \"UA\" | \"UG\" | \"US\" | \"UY\" | \"UZ\" | \"VC\" | \"VE\" | \"VG\" | \"VI\" | \"VN\" | \"VU\" | \"WS\" | \"YE\" | \"ZA\" | \"ZM\" | \"ZW\" | \"alertCircle\" | \"angelListBrand\" | \"angelList\" | \"appleBrand\" | \"apple\" | \"arrowNarrow\" | \"arrow\" | \"backupKit\" | \"capsuleLogo\" | \"capsuleRingsDark\" | \"capsuleRings\" | \"capsule\" | \"check\" | \"chevronUp\" | \"clock\" | \"close\" | \"clubhouseBrand\" | \"clubhouse\" | \"copy\" | \"discordBrand\" | \"discord\" | \"downloadCloud\" | \"dribbbleBrand\" | \"dribbble\" | \"earth\" | \"eyeOff\" | \"eye\" | \"facebookBrand\" | \"facebook\" | \"figmaBrand\" | \"figma\" | \"githubBrand\" | \"github\" | \"googleBrand\" | \"google\" | \"helpCircle\" | \"heroEmail\" | \"heroLock\" | \"heroPasskey\" | \"heroPhone\" | \"heroWallet\" | \"infoCircle\" | \"instagramBrand\" | \"instagram\" | \"linkedinBrand\" | \"linkedin\" | \"mail\" | \"moreLoginOptions\" | \"phone\" | \"pintrestBrand\" | \"pintrest\" | \"plusCircle\" | \"redditBrand\" | \"reddit\" | \"signalBrand\" | \"signal\" | \"snapchatBrand\" | \"snapchat\" | \"telegramBrand\" | \"telegram\" | \"tikTokBrand\" | \"tikTok\" | \"tumblrBrand\" | \"tumblr\" | \"twitterBrand\" | \"twitter\" | \"wallet\" | \"youtubeBrand\" | \"youtube\"",
|
532
532
|
"references": {
|
533
533
|
"IconType": {
|
534
534
|
"location": "import",
|
@@ -26,7 +26,7 @@ export class CpslOverlay {
|
|
26
26
|
}
|
27
27
|
}
|
28
28
|
render() {
|
29
|
-
return (h(Host, { key: '
|
29
|
+
return (h(Host, { key: 'fb52455d1a68056a20f95e7572dd4afcb1827c41' }, h("slot", { key: '70c5a7f0ecda8560c92ea6f907ad60650f1cdcf2' })));
|
30
30
|
}
|
31
31
|
static get is() { return "cpsl-overlay"; }
|
32
32
|
static get encapsulation() { return "shadow"; }
|
@@ -4,7 +4,7 @@ export class CpslPill {
|
|
4
4
|
this.text = undefined;
|
5
5
|
}
|
6
6
|
render() {
|
7
|
-
return (h(Host, { key: '
|
7
|
+
return (h(Host, { key: '061ac64aeb0f301d51f62ff889b6a817b0e5abba' }, h("div", { key: 'b6d260c1431d5540c07e976e8fc6d6680dcdda43', class: "pill-container" }, h("span", { key: '22d35f5d971c5ce45995e70af3eb9ef0446fdad1' }, this.text))));
|
8
8
|
}
|
9
9
|
static get is() { return "cpsl-pill"; }
|
10
10
|
static get encapsulation() { return "shadow"; }
|
@@ -32,7 +32,7 @@ export class CpslQrCode {
|
|
32
32
|
qrCode.append(container);
|
33
33
|
}
|
34
34
|
render() {
|
35
|
-
return (h(Host, { key: '
|
35
|
+
return (h(Host, { key: '8aa4d75e098ba25375d26e9e84e150cc70106ffa' }, h("div", { key: '02b8d5f1192ecce74476b76f5a6e8602589e2b58', id: "qr-container", class: "qr-container" })));
|
36
36
|
}
|
37
37
|
static get is() { return "cpsl-qr-code"; }
|
38
38
|
static get encapsulation() { return "shadow"; }
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
2
2
|
export class CpslRow {
|
3
3
|
render() {
|
4
|
-
return (h(Host, { key: '
|
4
|
+
return (h(Host, { key: '5f061d20ff017b612a4bada01c66992795cbabe1' }, h("slot", { key: 'ba35af68f6f00e8b12ff3c091935482beb10d27c' })));
|
5
5
|
}
|
6
6
|
static get is() { return "cpsl-row"; }
|
7
7
|
static get encapsulation() { return "shadow"; }
|
@@ -114,7 +114,7 @@ export class CpslSlideButton {
|
|
114
114
|
return this.el.shadowRoot.getElementById('end-icon');
|
115
115
|
}
|
116
116
|
render() {
|
117
|
-
return (h(Host, { key: '
|
117
|
+
return (h(Host, { key: 'ce018bff4b8a965f6828bac0a16ab0ebbf5000d6' }, h("div", { key: '0620f35a12979b3262eca8b1a25a1af59745761d', id: "slider-container", class: "slider-container" }, h("div", { key: '07c87359d2fff731a4432c802845ace2d361980b', id: "start-slider-container-background", class: { 'start-slider-container-background': true, 'slider-container-background': true } }), h("div", { key: '4140a0ab0f2f59693a35b9d36c0a0b6fd6152fbe', id: "end-slider-container-background", class: { 'end-slider-container-background': true, 'slider-container-background': true } }), h("div", { key: '39ca4cbcc83d4a8667f93cbeca1dd6c1637d0db2', id: "slider", class: { slider: true, disabled: this.disabled } }, h("cpsl-icon", { key: 'f0733efde0e3a00b34d0dd08267e2893f3dfc658', id: "start-icon", class: { 'start-icon': true, 'icon': true }, icon: this.startIcon }), h("cpsl-icon", { key: '5f77af9484aad6bc02a8caa89e5c066334f9835b', id: "end-icon", class: { 'end-icon': true, 'icon': true }, icon: this.endIcon })), h("span", { key: 'ebf3026838ed70e406704ba85ecd68c0aa04db13', id: "start-text", class: { 'start-text': true, 'disabled': this.disabled } }, this.startText), h("span", { key: 'd13ea9ea109900c679c049702760b1c8ce08e38a', id: "end-text", class: "end-text" }, this.endText))));
|
118
118
|
}
|
119
119
|
static get is() { return "cpsl-slide-button"; }
|
120
120
|
static get encapsulation() { return "shadow"; }
|
@@ -152,7 +152,7 @@ export class CpslSlideButton {
|
|
152
152
|
"mutable": false,
|
153
153
|
"complexType": {
|
154
154
|
"original": "IconType",
|
155
|
-
"resolved": "\"alertCircle\" | \"angelListBrand\" | \"angelList\" | \"appleBrand\" | \"apple\" | \"arrowNarrow\" | \"arrow\" | \"backupKit\" | \"capsuleLogo\" | \"capsuleRingsDark\" | \"capsuleRings\" | \"capsule\" | \"check\" | \"clock\" | \"close\" | \"clubhouseBrand\" | \"clubhouse\" | \"copy\" | \"discordBrand\" | \"discord\" | \"downloadCloud\" | \"dribbbleBrand\" | \"dribbble\" | \"eyeOff\" | \"eye\" | \"facebookBrand\" | \"facebook\" | \"figmaBrand\" | \"figma\" | \"githubBrand\" | \"github\" | \"googleBrand\" | \"google\" | \"helpCircle\" | \"heroEmail\" | \"heroLock\" | \"heroPasskey\" | \"heroPhone\" | \"heroWallet\" | \"infoCircle\" | \"instagramBrand\" | \"instagram\" | \"
|
155
|
+
"resolved": "\"key\" | \"AD\" | \"AE\" | \"AF\" | \"AG\" | \"AI\" | \"AL\" | \"AM\" | \"AO\" | \"AR\" | \"AS\" | \"AT\" | \"AU\" | \"AW\" | \"AX\" | \"AZ\" | \"BA\" | \"BB\" | \"BD\" | \"BE\" | \"BF\" | \"BG\" | \"BH\" | \"BI\" | \"BJ\" | \"BL\" | \"BM\" | \"BN\" | \"BO\" | \"BQ\" | \"BQ2\" | \"BQ3\" | \"BR\" | \"BS\" | \"BT\" | \"BW\" | \"BY\" | \"BZ\" | \"CA\" | \"CC\" | \"CD\" | \"CD2\" | \"CF\" | \"CH\" | \"CK\" | \"CL\" | \"CM\" | \"CN\" | \"CO\" | \"CR\" | \"CU\" | \"CW\" | \"CX\" | \"CY\" | \"CZ\" | \"DE\" | \"DJ\" | \"DK\" | \"DM\" | \"DO\" | \"DS\" | \"DZ\" | \"EC\" | \"EE\" | \"EG\" | \"EH\" | \"ER\" | \"ES\" | \"ET\" | \"FI\" | \"FJ\" | \"FK\" | \"FM\" | \"FO\" | \"FR\" | \"GA\" | \"GB2\" | \"GB\" | \"GD\" | \"GE\" | \"GG\" | \"GH\" | \"GI\" | \"GL\" | \"GM\" | \"GN\" | \"GQ\" | \"GR\" | \"GT\" | \"GU\" | \"GW\" | \"GY\" | \"HK\" | \"HN\" | \"HR\" | \"HT\" | \"HU\" | \"ID\" | \"IE\" | \"IL\" | \"IM\" | \"IN\" | \"IO\" | \"IQ\" | \"IR\" | \"IS\" | \"IT\" | \"JE\" | \"JM\" | \"JO\" | \"JP\" | \"KE\" | \"KG\" | \"KH\" | \"KI\" | \"KM\" | \"KN\" | \"KP\" | \"KR\" | \"KW\" | \"KY\" | \"KZ\" | \"LA\" | \"LB\" | \"LC\" | \"LI\" | \"LK\" | \"LR\" | \"LS\" | \"LT\" | \"LU\" | \"LV\" | \"LY\" | \"MA\" | \"MC\" | \"MD\" | \"ME\" | \"MG\" | \"MH\" | \"MK\" | \"ML\" | \"MM\" | \"MN\" | \"MO\" | \"MP\" | \"MQ\" | \"MR\" | \"MS\" | \"MT\" | \"MU\" | \"MV\" | \"MW\" | \"MX\" | \"MY\" | \"MZ\" | \"NA\" | \"NE\" | \"NF\" | \"NG\" | \"NI\" | \"NL\" | \"NO\" | \"NP\" | \"NR\" | \"NU\" | \"NZ\" | \"OM\" | \"PA\" | \"PE\" | \"PF\" | \"PG\" | \"PH\" | \"PK\" | \"PL\" | \"PN\" | \"PR\" | \"PS\" | \"PT\" | \"PW\" | \"PY\" | \"QA\" | \"RO\" | \"RS\" | \"RU\" | \"RW\" | \"SA\" | \"SB\" | \"SC\" | \"SE\" | \"SG\" | \"SI\" | \"SK\" | \"SL\" | \"SM\" | \"SN\" | \"SO\" | \"SR\" | \"SS\" | \"ST\" | \"SV\" | \"SX\" | \"SY\" | \"SZ\" | \"TC\" | \"TD\" | \"TG\" | \"TH\" | \"TJ\" | \"TK\" | \"TL\" | \"TM\" | \"TN\" | \"TO\" | \"TR\" | \"TT\" | \"TV\" | \"TW\" | \"TZ\" | \"UA\" | \"UG\" | \"US\" | \"UY\" | \"UZ\" | \"VC\" | \"VE\" | \"VG\" | \"VI\" | \"VN\" | \"VU\" | \"WS\" | \"YE\" | \"ZA\" | \"ZM\" | \"ZW\" | \"alertCircle\" | \"angelListBrand\" | \"angelList\" | \"appleBrand\" | \"apple\" | \"arrowNarrow\" | \"arrow\" | \"backupKit\" | \"capsuleLogo\" | \"capsuleRingsDark\" | \"capsuleRings\" | \"capsule\" | \"check\" | \"chevronUp\" | \"clock\" | \"close\" | \"clubhouseBrand\" | \"clubhouse\" | \"copy\" | \"discordBrand\" | \"discord\" | \"downloadCloud\" | \"dribbbleBrand\" | \"dribbble\" | \"earth\" | \"eyeOff\" | \"eye\" | \"facebookBrand\" | \"facebook\" | \"figmaBrand\" | \"figma\" | \"githubBrand\" | \"github\" | \"googleBrand\" | \"google\" | \"helpCircle\" | \"heroEmail\" | \"heroLock\" | \"heroPasskey\" | \"heroPhone\" | \"heroWallet\" | \"infoCircle\" | \"instagramBrand\" | \"instagram\" | \"linkedinBrand\" | \"linkedin\" | \"mail\" | \"moreLoginOptions\" | \"phone\" | \"pintrestBrand\" | \"pintrest\" | \"plusCircle\" | \"redditBrand\" | \"reddit\" | \"signalBrand\" | \"signal\" | \"snapchatBrand\" | \"snapchat\" | \"telegramBrand\" | \"telegram\" | \"tikTokBrand\" | \"tikTok\" | \"tumblrBrand\" | \"tumblr\" | \"twitterBrand\" | \"twitter\" | \"wallet\" | \"youtubeBrand\" | \"youtube\"",
|
156
156
|
"references": {
|
157
157
|
"IconType": {
|
158
158
|
"location": "import",
|
@@ -192,7 +192,7 @@ export class CpslSlideButton {
|
|
192
192
|
"mutable": false,
|
193
193
|
"complexType": {
|
194
194
|
"original": "IconType",
|
195
|
-
"resolved": "\"alertCircle\" | \"angelListBrand\" | \"angelList\" | \"appleBrand\" | \"apple\" | \"arrowNarrow\" | \"arrow\" | \"backupKit\" | \"capsuleLogo\" | \"capsuleRingsDark\" | \"capsuleRings\" | \"capsule\" | \"check\" | \"clock\" | \"close\" | \"clubhouseBrand\" | \"clubhouse\" | \"copy\" | \"discordBrand\" | \"discord\" | \"downloadCloud\" | \"dribbbleBrand\" | \"dribbble\" | \"eyeOff\" | \"eye\" | \"facebookBrand\" | \"facebook\" | \"figmaBrand\" | \"figma\" | \"githubBrand\" | \"github\" | \"googleBrand\" | \"google\" | \"helpCircle\" | \"heroEmail\" | \"heroLock\" | \"heroPasskey\" | \"heroPhone\" | \"heroWallet\" | \"infoCircle\" | \"instagramBrand\" | \"instagram\" | \"
|
195
|
+
"resolved": "\"key\" | \"AD\" | \"AE\" | \"AF\" | \"AG\" | \"AI\" | \"AL\" | \"AM\" | \"AO\" | \"AR\" | \"AS\" | \"AT\" | \"AU\" | \"AW\" | \"AX\" | \"AZ\" | \"BA\" | \"BB\" | \"BD\" | \"BE\" | \"BF\" | \"BG\" | \"BH\" | \"BI\" | \"BJ\" | \"BL\" | \"BM\" | \"BN\" | \"BO\" | \"BQ\" | \"BQ2\" | \"BQ3\" | \"BR\" | \"BS\" | \"BT\" | \"BW\" | \"BY\" | \"BZ\" | \"CA\" | \"CC\" | \"CD\" | \"CD2\" | \"CF\" | \"CH\" | \"CK\" | \"CL\" | \"CM\" | \"CN\" | \"CO\" | \"CR\" | \"CU\" | \"CW\" | \"CX\" | \"CY\" | \"CZ\" | \"DE\" | \"DJ\" | \"DK\" | \"DM\" | \"DO\" | \"DS\" | \"DZ\" | \"EC\" | \"EE\" | \"EG\" | \"EH\" | \"ER\" | \"ES\" | \"ET\" | \"FI\" | \"FJ\" | \"FK\" | \"FM\" | \"FO\" | \"FR\" | \"GA\" | \"GB2\" | \"GB\" | \"GD\" | \"GE\" | \"GG\" | \"GH\" | \"GI\" | \"GL\" | \"GM\" | \"GN\" | \"GQ\" | \"GR\" | \"GT\" | \"GU\" | \"GW\" | \"GY\" | \"HK\" | \"HN\" | \"HR\" | \"HT\" | \"HU\" | \"ID\" | \"IE\" | \"IL\" | \"IM\" | \"IN\" | \"IO\" | \"IQ\" | \"IR\" | \"IS\" | \"IT\" | \"JE\" | \"JM\" | \"JO\" | \"JP\" | \"KE\" | \"KG\" | \"KH\" | \"KI\" | \"KM\" | \"KN\" | \"KP\" | \"KR\" | \"KW\" | \"KY\" | \"KZ\" | \"LA\" | \"LB\" | \"LC\" | \"LI\" | \"LK\" | \"LR\" | \"LS\" | \"LT\" | \"LU\" | \"LV\" | \"LY\" | \"MA\" | \"MC\" | \"MD\" | \"ME\" | \"MG\" | \"MH\" | \"MK\" | \"ML\" | \"MM\" | \"MN\" | \"MO\" | \"MP\" | \"MQ\" | \"MR\" | \"MS\" | \"MT\" | \"MU\" | \"MV\" | \"MW\" | \"MX\" | \"MY\" | \"MZ\" | \"NA\" | \"NE\" | \"NF\" | \"NG\" | \"NI\" | \"NL\" | \"NO\" | \"NP\" | \"NR\" | \"NU\" | \"NZ\" | \"OM\" | \"PA\" | \"PE\" | \"PF\" | \"PG\" | \"PH\" | \"PK\" | \"PL\" | \"PN\" | \"PR\" | \"PS\" | \"PT\" | \"PW\" | \"PY\" | \"QA\" | \"RO\" | \"RS\" | \"RU\" | \"RW\" | \"SA\" | \"SB\" | \"SC\" | \"SE\" | \"SG\" | \"SI\" | \"SK\" | \"SL\" | \"SM\" | \"SN\" | \"SO\" | \"SR\" | \"SS\" | \"ST\" | \"SV\" | \"SX\" | \"SY\" | \"SZ\" | \"TC\" | \"TD\" | \"TG\" | \"TH\" | \"TJ\" | \"TK\" | \"TL\" | \"TM\" | \"TN\" | \"TO\" | \"TR\" | \"TT\" | \"TV\" | \"TW\" | \"TZ\" | \"UA\" | \"UG\" | \"US\" | \"UY\" | \"UZ\" | \"VC\" | \"VE\" | \"VG\" | \"VI\" | \"VN\" | \"VU\" | \"WS\" | \"YE\" | \"ZA\" | \"ZM\" | \"ZW\" | \"alertCircle\" | \"angelListBrand\" | \"angelList\" | \"appleBrand\" | \"apple\" | \"arrowNarrow\" | \"arrow\" | \"backupKit\" | \"capsuleLogo\" | \"capsuleRingsDark\" | \"capsuleRings\" | \"capsule\" | \"check\" | \"chevronUp\" | \"clock\" | \"close\" | \"clubhouseBrand\" | \"clubhouse\" | \"copy\" | \"discordBrand\" | \"discord\" | \"downloadCloud\" | \"dribbbleBrand\" | \"dribbble\" | \"earth\" | \"eyeOff\" | \"eye\" | \"facebookBrand\" | \"facebook\" | \"figmaBrand\" | \"figma\" | \"githubBrand\" | \"github\" | \"googleBrand\" | \"google\" | \"helpCircle\" | \"heroEmail\" | \"heroLock\" | \"heroPasskey\" | \"heroPhone\" | \"heroWallet\" | \"infoCircle\" | \"instagramBrand\" | \"instagram\" | \"linkedinBrand\" | \"linkedin\" | \"mail\" | \"moreLoginOptions\" | \"phone\" | \"pintrestBrand\" | \"pintrest\" | \"plusCircle\" | \"redditBrand\" | \"reddit\" | \"signalBrand\" | \"signal\" | \"snapchatBrand\" | \"snapchat\" | \"telegramBrand\" | \"telegram\" | \"tikTokBrand\" | \"tikTok\" | \"tumblrBrand\" | \"tumblr\" | \"twitterBrand\" | \"twitter\" | \"wallet\" | \"youtubeBrand\" | \"youtube\"",
|
196
196
|
"references": {
|
197
197
|
"IconType": {
|
198
198
|
"location": "import",
|
@@ -5,13 +5,13 @@ export class CpslSpinner {
|
|
5
5
|
this.speed = 1;
|
6
6
|
}
|
7
7
|
render() {
|
8
|
-
return (h(Host, { key: '
|
8
|
+
return (h(Host, { key: 'f52df0bdd08e1de7ffb6cdda5f1791b1524cbbbe', style: {
|
9
9
|
'height': `${this.size}px`,
|
10
10
|
'width': `${this.size}px`,
|
11
11
|
'animation': `spin ${this.speed}s linear infinite`,
|
12
12
|
'-webkit-animation': `spin ${this.speed}s linear infinite`,
|
13
13
|
'-moz-animation': `spin ${this.speed}s linear infinite`,
|
14
|
-
} }, h("svg", { key: '
|
14
|
+
} }, h("svg", { key: '867ba4a123619a10de1700ed9c23a9c154fed67c', height: this.size, width: this.size, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 54 54", fill: "none" }, h("path", { key: 'd4711f92c2dd5d85b01e26e3c3a82f776cd1b72f', d: "M43.1586 17C39.8082 11.5978 33.8243 8 27 8C16.5066 8 8 16.5066 8 27C8 37.4934 16.5066 46 27 46C33.8242 46 39.8082 42.4022 43.1586 37", "stroke-width": "6", "stroke-linecap": "round" }), h("circle", { key: '69cbe92b1cc4f8d1736d4529b78fc5969f127844', cx: "45", cy: "27", r: "5" }))));
|
15
15
|
}
|
16
16
|
static get is() { return "cpsl-spinner"; }
|
17
17
|
static get encapsulation() { return "shadow"; }
|
@@ -21,7 +21,7 @@ export class CpslTab {
|
|
21
21
|
}
|
22
22
|
}
|
23
23
|
render() {
|
24
|
-
return (h(Host, { key: '
|
24
|
+
return (h(Host, { key: 'ece9ef79afb7bd761b945f8495b5d7a5707eea28', onClick: this.onTabClicked }, h("div", { key: '787d62147f208c37bd7e494499be123317499ed3', class: { 'tab-container': true } }, h("slot", { key: '2834e0f4c14b2940941e0dbe78105835111688cf' }))));
|
25
25
|
}
|
26
26
|
static get is() { return "cpsl-tab"; }
|
27
27
|
static get encapsulation() { return "shadow"; }
|
@@ -46,7 +46,7 @@ export class CpslTabs {
|
|
46
46
|
const tabsPosition = this.el.getBoundingClientRect();
|
47
47
|
const tabsBorderWidth = +getComputedStyle(this.el).getPropertyValue('--tabs-border-width').slice(0, -2);
|
48
48
|
const selectedTabRect = this.selectedTabRect;
|
49
|
-
return (h(Host, { key: '
|
49
|
+
return (h(Host, { key: '47d4b201d34630654f4d11c26972f0ddf9d9f748', class: { 'full-width': this.fullWidth }, onCpslTabButtonClick: this.onTabClicked }, h("div", { key: '2a956a61b65fb99445a76211448b0ca2b830baab', class: "tabs-container" }, h("slot", { key: '3ef04f0dacff55ea829b92e22b0f260e1f95bb95' }), h("div", { key: '4cf63ec114998fa41b3367c9c648467044f19d95', class: { slider: true, loaded: this.loaded }, style: { width: `${selectedTabRect.width}px`, left: `${selectedTabRect.x - tabsPosition.x - tabsBorderWidth * 2}px` } }))));
|
50
50
|
}
|
51
51
|
static get is() { return "cpsl-tabs"; }
|
52
52
|
static get encapsulation() { return "shadow"; }
|
@@ -56,4 +56,105 @@
|
|
56
56
|
:host {
|
57
57
|
font-family: var(--cpsl-font-family, inherit);
|
58
58
|
color: var(--cpsl-color-text-primary);
|
59
|
+
padding: 0px;
|
60
|
+
margin: 0px;
|
61
|
+
display: block;
|
62
|
+
}
|
63
|
+
|
64
|
+
:host p,
|
65
|
+
h1,
|
66
|
+
h2,
|
67
|
+
h3,
|
68
|
+
h4,
|
69
|
+
h5,
|
70
|
+
h6 {
|
71
|
+
padding: 0px;
|
72
|
+
margin: 0px;
|
73
|
+
font-weight: inherit;
|
74
|
+
font-size: inherit;
|
75
|
+
letter-spacing: inherit;
|
76
|
+
}
|
77
|
+
|
78
|
+
:host(.primary) {
|
79
|
+
color: var(--cpsl-color-text-primary);
|
80
|
+
}
|
81
|
+
|
82
|
+
:host(.secondary) {
|
83
|
+
color: var(--cpsl-color-text-secondary);
|
84
|
+
}
|
85
|
+
|
86
|
+
:host(.subtle) {
|
87
|
+
color: var(--cpsl-color-text-subtle);
|
88
|
+
}
|
89
|
+
|
90
|
+
:host(.inverted) {
|
91
|
+
color: var(--cpsl-color-text-inverted);
|
92
|
+
}
|
93
|
+
|
94
|
+
:host(.error) {
|
95
|
+
color: var(--cpsl-color-text-error);
|
96
|
+
}
|
97
|
+
|
98
|
+
:host(.medium) {
|
99
|
+
font-weight: 500;
|
100
|
+
}
|
101
|
+
|
102
|
+
:host(.semi-bold) {
|
103
|
+
font-weight: 600;
|
104
|
+
}
|
105
|
+
|
106
|
+
:host(.bold) {
|
107
|
+
font-weight: 700;
|
108
|
+
}
|
109
|
+
|
110
|
+
:host(.body-2xs) {
|
111
|
+
font-size: var(--cpsl-font-size-body-2xs);
|
112
|
+
}
|
113
|
+
|
114
|
+
:host(.body-xs) {
|
115
|
+
font-size: var(--cpsl-font-size-body-xs);
|
116
|
+
}
|
117
|
+
|
118
|
+
:host(.body-s) {
|
119
|
+
font-size: var(--cpsl-font-size-body-s);
|
120
|
+
}
|
121
|
+
|
122
|
+
:host(.body-m) {
|
123
|
+
font-size: var(--cpsl-font-size-body-m);
|
124
|
+
}
|
125
|
+
|
126
|
+
:host(.body-l) {
|
127
|
+
font-size: var(--cpsl-font-size-body-l);
|
128
|
+
}
|
129
|
+
|
130
|
+
:host(.body-xl) {
|
131
|
+
font-size: var(--cpsl-font-size-body-xl);
|
132
|
+
}
|
133
|
+
|
134
|
+
:host(.heading-xs) {
|
135
|
+
font-size: var(--cpsl-font-size-heading-xs);
|
136
|
+
}
|
137
|
+
|
138
|
+
:host(.heading-s) {
|
139
|
+
font-size: var(--cpsl-font-size-heading-s);
|
140
|
+
}
|
141
|
+
|
142
|
+
:host(.heading-m) {
|
143
|
+
font-size: var(--cpsl-font-size-heading-m);
|
144
|
+
letter-spacing: -0.4px;
|
145
|
+
}
|
146
|
+
|
147
|
+
:host(.heading-l) {
|
148
|
+
font-size: var(--cpsl-font-size-heading-l);
|
149
|
+
letter-spacing: -1.12px;
|
150
|
+
}
|
151
|
+
|
152
|
+
:host(.heading-xl) {
|
153
|
+
font-size: var(--cpsl-font-size-heading-xl);
|
154
|
+
letter-spacing: -1.28px;
|
155
|
+
}
|
156
|
+
|
157
|
+
:host(.heading-2xl) {
|
158
|
+
font-size: var(--cpsl-font-size-heading-2xl);
|
159
|
+
letter-spacing: -1.44px;
|
59
160
|
}
|
@@ -1,7 +1,58 @@
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
2
2
|
export class CpslText {
|
3
|
+
constructor() {
|
4
|
+
this.color = 'primary';
|
5
|
+
this.variant = 'bodyM';
|
6
|
+
this.weight = 'regular';
|
7
|
+
}
|
8
|
+
get Content() {
|
9
|
+
switch (this.variant) {
|
10
|
+
case 'headingXS': {
|
11
|
+
return (h("h6", null, h("slot", null)));
|
12
|
+
}
|
13
|
+
case 'headingS': {
|
14
|
+
return (h("h5", null, h("slot", null)));
|
15
|
+
}
|
16
|
+
case 'headingM': {
|
17
|
+
return (h("h4", null, h("slot", null)));
|
18
|
+
}
|
19
|
+
case 'headingL': {
|
20
|
+
return (h("h3", null, h("slot", null)));
|
21
|
+
}
|
22
|
+
case 'headingXL': {
|
23
|
+
return (h("h2", null, h("slot", null)));
|
24
|
+
}
|
25
|
+
case 'heading2XL': {
|
26
|
+
return (h("h1", null, h("slot", null)));
|
27
|
+
}
|
28
|
+
default: {
|
29
|
+
return (h("p", null, h("slot", null)));
|
30
|
+
}
|
31
|
+
}
|
32
|
+
}
|
3
33
|
render() {
|
4
|
-
return (h(Host, { key: '
|
34
|
+
return (h(Host, { key: '33b70ccfe3929f306d0a9b956ec2a4e16bf751b8', class: {
|
35
|
+
'primary': this.color === 'primary',
|
36
|
+
'secondary': this.color === 'secondary',
|
37
|
+
'subtle': this.color === 'subtle',
|
38
|
+
'inverted': this.color === 'inverted',
|
39
|
+
'error': this.color === 'error',
|
40
|
+
'medium': this.weight === 'medium',
|
41
|
+
'semi-bold': this.weight === 'semiBold',
|
42
|
+
'bold': this.weight === 'bold',
|
43
|
+
'body-2xs': this.variant === 'body2XS',
|
44
|
+
'body-xs': this.variant === 'bodyXS',
|
45
|
+
'body-s': this.variant === 'bodyS',
|
46
|
+
'body-m': this.variant === 'bodyM',
|
47
|
+
'body-l': this.variant === 'bodyL',
|
48
|
+
'body-xl': this.variant === 'bodyXL',
|
49
|
+
'heading-xs': this.variant === 'headingXS',
|
50
|
+
'heading-s': this.variant === 'headingS',
|
51
|
+
'heading-m': this.variant === 'headingM',
|
52
|
+
'heading-l': this.variant === 'headingL',
|
53
|
+
'heading-xl': this.variant === 'headingXL',
|
54
|
+
'heading-2xl': this.variant === 'heading2XL',
|
55
|
+
} }, this.Content));
|
5
56
|
}
|
6
57
|
static get is() { return "cpsl-text"; }
|
7
58
|
static get encapsulation() { return "shadow"; }
|
@@ -15,5 +66,63 @@ export class CpslText {
|
|
15
66
|
"$": ["cpsl-text.css"]
|
16
67
|
};
|
17
68
|
}
|
69
|
+
static get properties() {
|
70
|
+
return {
|
71
|
+
"color": {
|
72
|
+
"type": "string",
|
73
|
+
"mutable": false,
|
74
|
+
"complexType": {
|
75
|
+
"original": "'primary' | 'secondary' | 'subtle' | 'inverted' | 'error'",
|
76
|
+
"resolved": "\"error\" | \"inverted\" | \"primary\" | \"secondary\" | \"subtle\"",
|
77
|
+
"references": {}
|
78
|
+
},
|
79
|
+
"required": false,
|
80
|
+
"optional": true,
|
81
|
+
"docs": {
|
82
|
+
"tags": [],
|
83
|
+
"text": "The color of text.\nOptions are: `\"primary\"`, `\"secondary\", `\"subtle\", `\"inverted\", `\"error\".\nDefault is: `\"primary\"`."
|
84
|
+
},
|
85
|
+
"attribute": "color",
|
86
|
+
"reflect": false,
|
87
|
+
"defaultValue": "'primary'"
|
88
|
+
},
|
89
|
+
"variant": {
|
90
|
+
"type": "string",
|
91
|
+
"mutable": false,
|
92
|
+
"complexType": {
|
93
|
+
"original": "'body2XS' | 'bodyXS' | 'bodyS' | 'bodyM' | 'bodyL' | 'bodyXL' | 'headingXS' | 'headingS' | 'headingM' | 'headingL' | 'headingXL' | 'heading2XL'",
|
94
|
+
"resolved": "\"body2XS\" | \"bodyL\" | \"bodyM\" | \"bodyS\" | \"bodyXL\" | \"bodyXS\" | \"heading2XL\" | \"headingL\" | \"headingM\" | \"headingS\" | \"headingXL\" | \"headingXS\"",
|
95
|
+
"references": {}
|
96
|
+
},
|
97
|
+
"required": false,
|
98
|
+
"optional": true,
|
99
|
+
"docs": {
|
100
|
+
"tags": [],
|
101
|
+
"text": "The variant of text.\nOptions are: `\"body2XS\"`, `\"bodyXS\", `\"bodyS\", `\"bodyM\", `\"bodyL\", `\"bodyXL\", `\"headingXS\", `\"headingS\", `\"headingM\", `\"headingL\", `\"headingXL\", `\"heading2XL\".\nDefault is: `\"bodyM\"`."
|
102
|
+
},
|
103
|
+
"attribute": "variant",
|
104
|
+
"reflect": false,
|
105
|
+
"defaultValue": "'bodyM'"
|
106
|
+
},
|
107
|
+
"weight": {
|
108
|
+
"type": "string",
|
109
|
+
"mutable": false,
|
110
|
+
"complexType": {
|
111
|
+
"original": "'regular' | 'medium' | 'semiBold' | 'bold'",
|
112
|
+
"resolved": "\"bold\" | \"medium\" | \"regular\" | \"semiBold\"",
|
113
|
+
"references": {}
|
114
|
+
},
|
115
|
+
"required": false,
|
116
|
+
"optional": true,
|
117
|
+
"docs": {
|
118
|
+
"tags": [],
|
119
|
+
"text": "The weight of text.\nOptions are: `\"regular\"`, `\"medium\", `\"semiBold\", `\"bold\".\nDefault is: `\"regular\"`."
|
120
|
+
},
|
121
|
+
"attribute": "weight",
|
122
|
+
"reflect": false,
|
123
|
+
"defaultValue": "'regular'"
|
124
|
+
}
|
125
|
+
};
|
126
|
+
}
|
18
127
|
}
|
19
128
|
//# sourceMappingURL=cpsl-text.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"cpsl-text.js","sourceRoot":"","sources":["../../../../src/components/cpsl-text/cpsl-text.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;
|
1
|
+
{"version":3,"file":"cpsl-text.js","sourceRoot":"","sources":["../../../../src/components/cpsl-text/cpsl-text.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAOzD,MAAM,OAAO,QAAQ;;qBAMyD,SAAS;uBAO+E,OAAO;sBAO7G,SAAS;;IAEvE,IAAY,OAAO;QACjB,QAAQ,IAAI,CAAC,OAAO,EAAE,CAAC;YACrB,KAAK,WAAW,CAAC,CAAC,CAAC;gBACjB,OAAO,CACL;oBACE,eAAa,CACV,CACN,CAAC;YACJ,CAAC;YACD,KAAK,UAAU,CAAC,CAAC,CAAC;gBAChB,OAAO,CACL;oBACE,eAAa,CACV,CACN,CAAC;YACJ,CAAC;YACD,KAAK,UAAU,CAAC,CAAC,CAAC;gBAChB,OAAO,CACL;oBACE,eAAa,CACV,CACN,CAAC;YACJ,CAAC;YACD,KAAK,UAAU,CAAC,CAAC,CAAC;gBAChB,OAAO,CACL;oBACE,eAAa,CACV,CACN,CAAC;YACJ,CAAC;YACD,KAAK,WAAW,CAAC,CAAC,CAAC;gBACjB,OAAO,CACL;oBACE,eAAa,CACV,CACN,CAAC;YACJ,CAAC;YACD,KAAK,YAAY,CAAC,CAAC,CAAC;gBAClB,OAAO,CACL;oBACE,eAAa,CACV,CACN,CAAC;YACJ,CAAC;YACD,OAAO,CAAC,CAAC,CAAC;gBACR,OAAO,CACL;oBACE,eAAa,CACX,CACL,CAAC;YACJ,CAAC;QACH,CAAC;IACH,CAAC;IAED,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,qDACH,KAAK,EAAE;gBAEL,SAAS,EAAE,IAAI,CAAC,KAAK,KAAK,SAAS;gBACnC,WAAW,EAAE,IAAI,CAAC,KAAK,KAAK,WAAW;gBACvC,QAAQ,EAAE,IAAI,CAAC,KAAK,KAAK,QAAQ;gBACjC,UAAU,EAAE,IAAI,CAAC,KAAK,KAAK,UAAU;gBACrC,OAAO,EAAE,IAAI,CAAC,KAAK,KAAK,OAAO;gBAE/B,QAAQ,EAAE,IAAI,CAAC,MAAM,KAAK,QAAQ;gBAClC,WAAW,EAAE,IAAI,CAAC,MAAM,KAAK,UAAU;gBACvC,MAAM,EAAE,IAAI,CAAC,MAAM,KAAK,MAAM;gBAE9B,UAAU,EAAE,IAAI,CAAC,OAAO,KAAK,SAAS;gBACtC,SAAS,EAAE,IAAI,CAAC,OAAO,KAAK,QAAQ;gBACpC,QAAQ,EAAE,IAAI,CAAC,OAAO,KAAK,OAAO;gBAClC,QAAQ,EAAE,IAAI,CAAC,OAAO,KAAK,OAAO;gBAClC,QAAQ,EAAE,IAAI,CAAC,OAAO,KAAK,OAAO;gBAClC,SAAS,EAAE,IAAI,CAAC,OAAO,KAAK,QAAQ;gBACpC,YAAY,EAAE,IAAI,CAAC,OAAO,KAAK,WAAW;gBAC1C,WAAW,EAAE,IAAI,CAAC,OAAO,KAAK,UAAU;gBACxC,WAAW,EAAE,IAAI,CAAC,OAAO,KAAK,UAAU;gBACxC,WAAW,EAAE,IAAI,CAAC,OAAO,KAAK,UAAU;gBACxC,YAAY,EAAE,IAAI,CAAC,OAAO,KAAK,WAAW;gBAC1C,aAAa,EAAE,IAAI,CAAC,OAAO,KAAK,YAAY;aAC7C,IAEA,IAAI,CAAC,OAAO,CACR,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, Prop, h } from '@stencil/core';\n\n@Component({\n tag: 'cpsl-text',\n styleUrl: 'cpsl-text.scss',\n shadow: true,\n})\nexport class CpslText {\n /**\n * The color of text.\n * Options are: `\"primary\"`, `\"secondary\", `\"subtle\", `\"inverted\", `\"error\".\n * Default is: `\"primary\"`.\n */\n @Prop() color?: 'primary' | 'secondary' | 'subtle' | 'inverted' | 'error' = 'primary';\n\n /**\n * The variant of text.\n * Options are: `\"body2XS\"`, `\"bodyXS\", `\"bodyS\", `\"bodyM\", `\"bodyL\", `\"bodyXL\", `\"headingXS\", `\"headingS\", `\"headingM\", `\"headingL\", `\"headingXL\", `\"heading2XL\".\n * Default is: `\"bodyM\"`.\n */\n @Prop() variant?: 'body2XS' | 'bodyXS' | 'bodyS' | 'bodyM' | 'bodyL' | 'bodyXL' | 'headingXS' | 'headingS' | 'headingM' | 'headingL' | 'headingXL' | 'heading2XL' = 'bodyM';\n\n /**\n * The weight of text.\n * Options are: `\"regular\"`, `\"medium\", `\"semiBold\", `\"bold\".\n * Default is: `\"regular\"`.\n */\n @Prop() weight?: 'regular' | 'medium' | 'semiBold' | 'bold' = 'regular';\n\n private get Content() {\n switch (this.variant) {\n case 'headingXS': {\n return (\n <h6>\n <slot></slot>\n </h6>\n );\n }\n case 'headingS': {\n return (\n <h5>\n <slot></slot>\n </h5>\n );\n }\n case 'headingM': {\n return (\n <h4>\n <slot></slot>\n </h4>\n );\n }\n case 'headingL': {\n return (\n <h3>\n <slot></slot>\n </h3>\n );\n }\n case 'headingXL': {\n return (\n <h2>\n <slot></slot>\n </h2>\n );\n }\n case 'heading2XL': {\n return (\n <h1>\n <slot></slot>\n </h1>\n );\n }\n default: {\n return (\n <p>\n <slot></slot>\n </p>\n );\n }\n }\n }\n\n render() {\n return (\n <Host\n class={{\n // COLORS\n 'primary': this.color === 'primary',\n 'secondary': this.color === 'secondary',\n 'subtle': this.color === 'subtle',\n 'inverted': this.color === 'inverted',\n 'error': this.color === 'error',\n // WEIGHTS\n 'medium': this.weight === 'medium',\n 'semi-bold': this.weight === 'semiBold',\n 'bold': this.weight === 'bold',\n // SIZES\n 'body-2xs': this.variant === 'body2XS',\n 'body-xs': this.variant === 'bodyXS',\n 'body-s': this.variant === 'bodyS',\n 'body-m': this.variant === 'bodyM',\n 'body-l': this.variant === 'bodyL',\n 'body-xl': this.variant === 'bodyXL',\n 'heading-xs': this.variant === 'headingXS',\n 'heading-s': this.variant === 'headingS',\n 'heading-m': this.variant === 'headingM',\n 'heading-l': this.variant === 'headingL',\n 'heading-xl': this.variant === 'headingXL',\n 'heading-2xl': this.variant === 'heading2XL',\n }}\n >\n {this.Content}\n </Host>\n );\n }\n}\n"]}
|