@usecapsule/core-components 2.0.5 → 2.0.7
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-a95ec4df.entry.js → p-415384b7.entry.js} +2 -2
- package/dist/capsule/{p-91412151.entry.js → p-4d957466.entry.js} +2 -2
- package/dist/capsule/p-6b02ea8d.entry.js +2 -0
- package/dist/capsule/p-b2997f3c.js +3 -0
- package/dist/capsule/p-b2997f3c.js.map +1 -0
- package/dist/capsule/{p-d7be092d.entry.js → p-b76350fd.entry.js} +2 -2
- package/dist/capsule/p-d0b8e7cb.entry.js +29 -0
- package/dist/capsule/p-d0b8e7cb.entry.js.map +1 -0
- package/dist/capsule/{p-68c73705.entry.js → p-fa4e3c14.entry.js} +2 -2
- package/dist/cjs/capsule.cjs.js +2 -2
- package/dist/cjs/{cpsl-alert_17.cjs.entry.js → cpsl-alert_18.cjs.entry.js} +4142 -17
- package/dist/cjs/cpsl-alert_18.cjs.entry.js.map +1 -0
- package/dist/cjs/cpsl-animation.cjs.entry.js +1 -1
- package/dist/cjs/cpsl-col.cjs.entry.js +1 -1
- package/dist/cjs/cpsl-grid.cjs.entry.js +3 -3
- package/dist/cjs/cpsl-info-box.cjs.entry.js +2 -2
- package/dist/cjs/cpsl-row.cjs.entry.js +2 -2
- package/dist/cjs/{index-3fccb5b4.js → index-87ba56f9.js} +10 -5
- package/dist/cjs/index-87ba56f9.js.map +1 -0
- package/dist/cjs/index.cjs.js +28 -8
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- 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 +213 -0
- package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js +207 -0
- package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js.map +1 -0
- package/dist/collection/components/cpsl-dropdown/dropdown-interface.js +2 -0
- package/dist/collection/components/cpsl-dropdown/dropdown-interface.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-input/cpsl-input.js.map +1 -1
- 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 +3 -3
- package/dist/esm/{cpsl-alert_17.entry.js → cpsl-alert_18.entry.js} +4142 -18
- package/dist/esm/cpsl-alert_18.entry.js.map +1 -0
- package/dist/esm/cpsl-animation.entry.js +1 -1
- package/dist/esm/cpsl-col.entry.js +1 -1
- package/dist/esm/cpsl-grid.entry.js +3 -3
- package/dist/esm/cpsl-info-box.entry.js +2 -2
- package/dist/esm/cpsl-row.entry.js +2 -2
- package/dist/esm/{index-f00e090c.js → index-fd970ca2.js} +10 -5
- package/dist/esm/index-fd970ca2.js.map +1 -0
- package/dist/esm/index.js +28 -8
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +3 -3
- 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-dropdown/dropdown-interface.d.ts +7 -0
- package/dist/types/components/cpsl-text/cpsl-text.d.ts +4 -0
- package/dist/types/components.d.ts +82 -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 -2
- package/dist/capsule/p-6fb7c4d1.js +0 -3
- package/dist/capsule/p-6fb7c4d1.js.map +0 -1
- package/dist/capsule/p-cacdef26.entry.js +0 -29
- package/dist/capsule/p-cacdef26.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/cjs/index-3fccb5b4.js.map +0 -1
- package/dist/esm/cpsl-alert_17.entry.js.map +0 -1
- package/dist/esm/index-f00e090c.js.map +0 -1
- /package/dist/capsule/{p-a95ec4df.entry.js.map → p-415384b7.entry.js.map} +0 -0
- /package/dist/capsule/{p-91412151.entry.js.map → p-4d957466.entry.js.map} +0 -0
- /package/dist/capsule/{p-f604b591.entry.js.map → p-6b02ea8d.entry.js.map} +0 -0
- /package/dist/capsule/{p-d7be092d.entry.js.map → p-b76350fd.entry.js.map} +0 -0
- /package/dist/capsule/{p-68c73705.entry.js.map → p-fa4e3c14.entry.js.map} +0 -0
- /package/dist/types/Users/{taylorbosch → vinay}/Documents/GitHub/Capsule/component-library/core/.stencil/scripts/buildIconLibrary.d.ts +0 -0
@@ -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\" | \"decentBrand\" | \"decent\" | \"discordBrand\" | \"discord\" | \"downloadCloud\" | \"dribbbleBrand\" | \"dribbble\" | \"eyeOff\" | \"eye\" | \"facebookBrand\" | \"facebook\" | \"figmaBrand\" | \"figma\" | \"githubBrand\" | \"github\" | \"googleBrand\" | \"google\" | \"helpCircle\" | \"heroEmail\" | \"heroLock\" | \"heroPasskey\" | \"heroPhone\" | \"heroWallet\" | \"infoCircle\" | \"instagramBrand\" | \"instagram\" | \"key\" | \"lightning\" | \"linkedinBrand\" | \"linkedin\" | \"mail\" | \"moreLoginOptions\" | \"phone\" | \"pintrestBrand\" | \"pintrest\" | \"plusCircle\" | \"rampNetworkBrand\" | \"rampNetwork\" | \"redditBrand\" | \"reddit\" | \"signalBrand\" | \"signal\" | \"snapchatBrand\" | \"snapchat\" | \"telegramBrand\" | \"telegram\" | \"tikTokBrand\" | \"tikTok\" | \"tumblrBrand\" | \"tumblr\" | \"twitterBrand\" | \"twitter\" | \"wallet\" | \"youtubeBrand\" | \"youtube\"",
|
155
|
+
"resolved": "\"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\" | \"decentBrand\" | \"decent\" | \"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\" | \"key\" | \"lightning\" | \"linkedinBrand\" | \"linkedin\" | \"mail\" | \"moreLoginOptions\" | \"phone\" | \"pintrestBrand\" | \"pintrest\" | \"plusCircle\" | \"rampNetworkBrand\" | \"rampNetwork\" | \"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\" | \"decentBrand\" | \"decent\" | \"discordBrand\" | \"discord\" | \"downloadCloud\" | \"dribbbleBrand\" | \"dribbble\" | \"eyeOff\" | \"eye\" | \"facebookBrand\" | \"facebook\" | \"figmaBrand\" | \"figma\" | \"githubBrand\" | \"github\" | \"googleBrand\" | \"google\" | \"helpCircle\" | \"heroEmail\" | \"heroLock\" | \"heroPasskey\" | \"heroPhone\" | \"heroWallet\" | \"infoCircle\" | \"instagramBrand\" | \"instagram\" | \"key\" | \"lightning\" | \"linkedinBrand\" | \"linkedin\" | \"mail\" | \"moreLoginOptions\" | \"phone\" | \"pintrestBrand\" | \"pintrest\" | \"plusCircle\" | \"rampNetworkBrand\" | \"rampNetwork\" | \"redditBrand\" | \"reddit\" | \"signalBrand\" | \"signal\" | \"snapchatBrand\" | \"snapchat\" | \"telegramBrand\" | \"telegram\" | \"tikTokBrand\" | \"tikTok\" | \"tumblrBrand\" | \"tumblr\" | \"twitterBrand\" | \"twitter\" | \"wallet\" | \"youtubeBrand\" | \"youtube\"",
|
195
|
+
"resolved": "\"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\" | \"decentBrand\" | \"decent\" | \"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\" | \"key\" | \"lightning\" | \"linkedinBrand\" | \"linkedin\" | \"mail\" | \"moreLoginOptions\" | \"phone\" | \"pintrestBrand\" | \"pintrest\" | \"plusCircle\" | \"rampNetworkBrand\" | \"rampNetwork\" | \"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"]}
|
@@ -5,7 +5,7 @@ export class CpslTileButton {
|
|
5
5
|
this.icon = undefined;
|
6
6
|
}
|
7
7
|
render() {
|
8
|
-
return (h(Host, { key: '
|
8
|
+
return (h(Host, { key: '61cbce3574220ee8009ab95c3e37d80535543d1c' }, h("button", { key: '50169b226155e2b06014c415dd522dfc0deb799c', class: "button-native" }, h("cpsl-icon", { key: '9ee77a4d725f4bec258ae753365a1f5aca733ff5', exportparts: "icon", src: this.src, icon: this.icon }), h("slot", { key: 'b01617dbca7322d9cc8f58c30680cd5f3ed0f576' }))));
|
9
9
|
}
|
10
10
|
static get is() { return "cpsl-tile-button"; }
|
11
11
|
static get encapsulation() { return "shadow"; }
|
@@ -43,7 +43,7 @@ export class CpslTileButton {
|
|
43
43
|
"mutable": false,
|
44
44
|
"complexType": {
|
45
45
|
"original": "IconType",
|
46
|
-
"resolved": "\"alertCircle\" | \"angelListBrand\" | \"angelList\" | \"appleBrand\" | \"apple\" | \"arrowNarrow\" | \"arrow\" | \"backupKit\" | \"capsuleLogo\" | \"capsuleRingsDark\" | \"capsuleRings\" | \"capsule\" | \"check\" | \"clock\" | \"close\" | \"clubhouseBrand\" | \"clubhouse\" | \"copy\" | \"decentBrand\" | \"decent\" | \"discordBrand\" | \"discord\" | \"downloadCloud\" | \"dribbbleBrand\" | \"dribbble\" | \"eyeOff\" | \"eye\" | \"facebookBrand\" | \"facebook\" | \"figmaBrand\" | \"figma\" | \"githubBrand\" | \"github\" | \"googleBrand\" | \"google\" | \"helpCircle\" | \"heroEmail\" | \"heroLock\" | \"heroPasskey\" | \"heroPhone\" | \"heroWallet\" | \"infoCircle\" | \"instagramBrand\" | \"instagram\" | \"key\" | \"lightning\" | \"linkedinBrand\" | \"linkedin\" | \"mail\" | \"moreLoginOptions\" | \"phone\" | \"pintrestBrand\" | \"pintrest\" | \"plusCircle\" | \"rampNetworkBrand\" | \"rampNetwork\" | \"redditBrand\" | \"reddit\" | \"signalBrand\" | \"signal\" | \"snapchatBrand\" | \"snapchat\" | \"telegramBrand\" | \"telegram\" | \"tikTokBrand\" | \"tikTok\" | \"tumblrBrand\" | \"tumblr\" | \"twitterBrand\" | \"twitter\" | \"wallet\" | \"youtubeBrand\" | \"youtube\"",
|
46
|
+
"resolved": "\"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\" | \"decentBrand\" | \"decent\" | \"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\" | \"key\" | \"lightning\" | \"linkedinBrand\" | \"linkedin\" | \"mail\" | \"moreLoginOptions\" | \"phone\" | \"pintrestBrand\" | \"pintrest\" | \"plusCircle\" | \"rampNetworkBrand\" | \"rampNetwork\" | \"redditBrand\" | \"reddit\" | \"signalBrand\" | \"signal\" | \"snapchatBrand\" | \"snapchat\" | \"telegramBrand\" | \"telegram\" | \"tikTokBrand\" | \"tikTok\" | \"tumblrBrand\" | \"tumblr\" | \"twitterBrand\" | \"twitter\" | \"wallet\" | \"youtubeBrand\" | \"youtube\"",
|
47
47
|
"references": {
|
48
48
|
"IconType": {
|
49
49
|
"location": "import",
|
package/dist/collection/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAE7B,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAE7B,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC","sourcesContent":["export * from './components';\n\nexport { generateTheme } from './utils/theme/generateTheme';\nexport type { Theme, BorderRadius } from './interface';\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"interface.js","sourceRoot":"","sources":["../../src/interface.ts"],"names":[],"mappings":"","sourcesContent":["import { Icons } from './assets/icons';\n\nexport type PredefinedColors = 'primary' | 'secondary' | 'tertiary' | 'success' | 'warning' | 'danger' | 'light' | 'medium' | 'dark';\n\n// From: https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete\nexport type AutocompleteTypes =\n | 'on'\n | 'off'\n | 'name'\n | 'honorific-prefix'\n | 'given-name'\n | 'additional-name'\n | 'family-name'\n | 'honorific-suffix'\n | 'nickname'\n | 'email'\n | 'username'\n | 'new-password'\n | 'current-password'\n | 'one-time-code'\n | 'organization-title'\n | 'organization'\n | 'street-address'\n | 'address-line1'\n | 'address-line2'\n | 'address-line3'\n | 'address-level4'\n | 'address-level3'\n | 'address-level2'\n | 'address-level1'\n | 'country'\n | 'country-name'\n | 'postal-code'\n | 'cc-name'\n | 'cc-given-name'\n | 'cc-additional-name'\n | 'cc-family-name'\n | 'cc-family-name'\n | 'cc-number'\n | 'cc-exp'\n | 'cc-exp-month'\n | 'cc-exp-year'\n | 'cc-csc'\n | 'cc-type'\n | 'transaction-currency'\n | 'transaction-amount'\n | 'language'\n | 'bday'\n | 'bday-day'\n | 'bday-month'\n | 'bday-year'\n | 'sex'\n | 'tel'\n | 'tel-country-code'\n | 'tel-national'\n | 'tel-area-code'\n | 'tel-local'\n | 'tel-extension'\n | 'impp'\n | 'url'\n | 'photo';\n\nexport type TextFieldTypes = 'date' | 'email' | 'number' | 'password' | 'search' | 'tel' | 'text' | 'url' | 'time' | 'week' | 'month' | 'datetime-local';\n\nexport type LiteralUnion<T extends U, U = string> = T | (U & Record<never, never>);\n\nexport type Color = LiteralUnion<PredefinedColors, string>;\n\nexport type CssClassMap = { [className: string]: boolean };\n\nexport type IconType = keyof typeof Icons;\n\nexport type Theme = {\n foregroundColor?: string;\n backgroundColor?: string;\n borderRadius?: BorderRadius;\n font?: string;\n customPalette?: CustomPalette;\n};\n\nexport type BorderRadius = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'full';\n\nexport interface CustomPalette {\n text?: {\n primary?: string;\n secondary?: string;\n subtle?: string;\n inverted?: string;\n error?: string;\n };\n modal?: {\n surface?: {\n main?: string;\n footer?: string;\n };\n border?: string;\n };\n input?: {\n surface?: {\n disabled?: string;\n default?: string;\n };\n border?: {\n placeholder?: string;\n active?: string;\n error?: string;\n };\n };\n tileButton?: {\n surface?: {\n default?: string;\n hover?: string;\n pressed?: string;\n };\n border?: string;\n };\n primaryButton?: {\n surface?: {\n default?: string;\n hover?: string;\n pressed?: string;\n disabled?: string;\n };\n border?: {\n default?: string;\n disabled?: string;\n };\n outline?: string;\n };\n secondaryButton?: {\n surface?: {\n default?: string;\n hover?: string;\n pressed?: string;\n disabled?: string;\n };\n border?: {\n default?: string;\n disabled?: string;\n };\n outline?: string;\n };\n divider?: string;\n spinner?: {\n path?: string;\n circle?: string;\n };\n pill?: {\n text?: string;\n container?: {\n background?: string;\n border?: string;\n };\n };\n progressIndicator?: {\n active?: string;\n next?: string;\n previous?: string;\n };\n qr?: {\n fill?: string;\n background?: string;\n border?: string;\n };\n slideButton?: {\n slider?: {\n background?: string;\n border?: string;\n text?: string;\n container?: {\n start?: {\n background?: string;\n border?: string;\n };\n end?: {\n background?: string;\n border?: string;\n };\n };\n };\n start?: {\n text?: string;\n };\n end?: {\n text?: string;\n };\n };\n alert?: {\n surface?: {\n error?: string;\n };\n border?: {\n error?: string;\n };\n };\n}\n"]}
|
1
|
+
{"version":3,"file":"interface.js","sourceRoot":"","sources":["../../src/interface.ts"],"names":[],"mappings":"","sourcesContent":["import { Icons } from './assets/icons';\n\nexport type PredefinedColors = 'primary' | 'secondary' | 'tertiary' | 'success' | 'warning' | 'danger' | 'light' | 'medium' | 'dark';\n\n// From: https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete\nexport type AutocompleteTypes =\n | 'on'\n | 'off'\n | 'name'\n | 'honorific-prefix'\n | 'given-name'\n | 'additional-name'\n | 'family-name'\n | 'honorific-suffix'\n | 'nickname'\n | 'email'\n | 'username'\n | 'new-password'\n | 'current-password'\n | 'one-time-code'\n | 'organization-title'\n | 'organization'\n | 'street-address'\n | 'address-line1'\n | 'address-line2'\n | 'address-line3'\n | 'address-level4'\n | 'address-level3'\n | 'address-level2'\n | 'address-level1'\n | 'country'\n | 'country-name'\n | 'postal-code'\n | 'cc-name'\n | 'cc-given-name'\n | 'cc-additional-name'\n | 'cc-family-name'\n | 'cc-family-name'\n | 'cc-number'\n | 'cc-exp'\n | 'cc-exp-month'\n | 'cc-exp-year'\n | 'cc-csc'\n | 'cc-type'\n | 'transaction-currency'\n | 'transaction-amount'\n | 'language'\n | 'bday'\n | 'bday-day'\n | 'bday-month'\n | 'bday-year'\n | 'sex'\n | 'tel'\n | 'tel-country-code'\n | 'tel-national'\n | 'tel-area-code'\n | 'tel-local'\n | 'tel-extension'\n | 'impp'\n | 'url'\n | 'photo';\n\nexport type TextFieldTypes = 'date' | 'email' | 'number' | 'password' | 'search' | 'tel' | 'text' | 'url' | 'time' | 'week' | 'month' | 'datetime-local';\n\nexport type LiteralUnion<T extends U, U = string> = T | (U & Record<never, never>);\n\nexport type Color = LiteralUnion<PredefinedColors, string>;\n\nexport type CssClassMap = { [className: string]: boolean };\n\nexport type IconType = keyof typeof Icons;\n\nexport type Theme = {\n foregroundColor?: string;\n backgroundColor?: string;\n borderRadius?: BorderRadius;\n font?: string;\n customPalette?: CustomPalette;\n customFontSizes?: CustomFontSizes;\n};\n\nexport type BorderRadius = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'full';\n\nexport interface CustomFontSizes {\n body2XS?: string;\n bodyXS?: string;\n bodyS?: string;\n bodyM?: string;\n bodyL?: string;\n bodyXL?: string;\n headingXS?: string;\n headingS?: string;\n headingM?: string;\n headingL?: string;\n headingXL?: string;\n heading2XL?: string;\n}\n\nexport interface CustomPalette {\n text?: {\n primary?: string;\n secondary?: string;\n subtle?: string;\n inverted?: string;\n error?: string;\n };\n modal?: {\n surface?: {\n main?: string;\n footer?: string;\n };\n border?: string;\n };\n input?: {\n surface?: {\n disabled?: string;\n default?: string;\n };\n border?: {\n placeholder?: string;\n active?: string;\n error?: string;\n };\n };\n tileButton?: {\n surface?: {\n default?: string;\n hover?: string;\n pressed?: string;\n };\n border?: string;\n };\n primaryButton?: {\n surface?: {\n default?: string;\n hover?: string;\n pressed?: string;\n disabled?: string;\n };\n border?: {\n default?: string;\n disabled?: string;\n };\n outline?: string;\n };\n secondaryButton?: {\n surface?: {\n default?: string;\n hover?: string;\n pressed?: string;\n disabled?: string;\n };\n border?: {\n default?: string;\n disabled?: string;\n };\n outline?: string;\n };\n divider?: string;\n spinner?: {\n path?: string;\n circle?: string;\n };\n pill?: {\n text?: string;\n container?: {\n background?: string;\n border?: string;\n };\n };\n progressIndicator?: {\n active?: string;\n next?: string;\n previous?: string;\n };\n qr?: {\n fill?: string;\n background?: string;\n border?: string;\n };\n slideButton?: {\n slider?: {\n background?: string;\n border?: string;\n text?: string;\n container?: {\n start?: {\n background?: string;\n border?: string;\n };\n end?: {\n background?: string;\n border?: string;\n };\n };\n };\n start?: {\n text?: string;\n };\n end?: {\n text?: string;\n };\n };\n alert?: {\n surface?: {\n error?: string;\n };\n border?: {\n error?: string;\n };\n };\n}\n"]}
|
@@ -1,7 +1,28 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
const FONT_NAME_MAP = {
|
2
|
+
body2XS: 'body-2xs',
|
3
|
+
bodyXS: 'body-xs',
|
4
|
+
bodyS: 'body-s',
|
5
|
+
bodyM: 'body-m',
|
6
|
+
bodyL: 'body-l',
|
7
|
+
bodyXL: 'body-xl',
|
8
|
+
headingXS: 'heading-xs',
|
9
|
+
headingS: 'heading-s',
|
10
|
+
headingM: 'heading-m',
|
11
|
+
headingL: 'heading-l',
|
12
|
+
headingXL: 'heading-xl',
|
13
|
+
heading2XL: 'heading-2xl',
|
14
|
+
};
|
15
|
+
export const generateFont = ({ font, customFontSizes }) => {
|
16
|
+
if (Boolean(font)) {
|
17
|
+
document.documentElement.style.setProperty('--cpsl-default-font', font);
|
4
18
|
}
|
5
|
-
|
19
|
+
Object.entries(FONT_NAME_MAP).forEach(([key, value]) => {
|
20
|
+
if (customFontSizes === null || customFontSizes === void 0 ? void 0 : customFontSizes[key]) {
|
21
|
+
document.documentElement.style.setProperty(`--cpsl-font-size-${value}`, customFontSizes[key]);
|
22
|
+
}
|
23
|
+
else {
|
24
|
+
document.documentElement.style.removeProperty(`--cpsl-font-size-${value}`);
|
25
|
+
}
|
26
|
+
});
|
6
27
|
};
|
7
28
|
//# sourceMappingURL=generateFont.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"generateFont.js","sourceRoot":"","sources":["../../../../src/utils/theme/generateFont.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,EAAE,IAAI,
|
1
|
+
{"version":3,"file":"generateFont.js","sourceRoot":"","sources":["../../../../src/utils/theme/generateFont.ts"],"names":[],"mappings":"AAEA,MAAM,aAAa,GAAG;IACpB,OAAO,EAAE,UAAU;IACnB,MAAM,EAAE,SAAS;IACjB,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,MAAM,EAAE,SAAS;IACjB,SAAS,EAAE,YAAY;IACvB,QAAQ,EAAE,WAAW;IACrB,QAAQ,EAAE,WAAW;IACrB,QAAQ,EAAE,WAAW;IACrB,SAAS,EAAE,YAAY;IACvB,UAAU,EAAE,aAAa;CAC1B,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,EAAE,IAAI,EAAE,eAAe,EAA2C,EAAE,EAAE;IACjG,IAAI,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;QAClB,QAAQ,CAAC,eAAe,CAAC,KAAK,CAAC,WAAW,CAAC,qBAAqB,EAAE,IAAI,CAAC,CAAC;IAC1E,CAAC;IAED,MAAM,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;QACrD,IAAI,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAG,GAAG,CAAC,EAAE,CAAC;YAC3B,QAAQ,CAAC,eAAe,CAAC,KAAK,CAAC,WAAW,CAAC,oBAAoB,KAAK,EAAE,EAAE,eAAe,CAAC,GAAG,CAAC,CAAC,CAAC;QAChG,CAAC;aAAM,CAAC;YACN,QAAQ,CAAC,eAAe,CAAC,KAAK,CAAC,cAAc,CAAC,oBAAoB,KAAK,EAAE,CAAC,CAAC;QAC7E,CAAC;IACH,CAAC,CAAC,CAAC;AACL,CAAC,CAAC","sourcesContent":["import { Theme } from '../../interface';\n\nconst FONT_NAME_MAP = {\n body2XS: 'body-2xs',\n bodyXS: 'body-xs',\n bodyS: 'body-s',\n bodyM: 'body-m',\n bodyL: 'body-l',\n bodyXL: 'body-xl',\n headingXS: 'heading-xs',\n headingS: 'heading-s',\n headingM: 'heading-m',\n headingL: 'heading-l',\n headingXL: 'heading-xl',\n heading2XL: 'heading-2xl',\n};\n\nexport const generateFont = ({ font, customFontSizes }: Pick<Theme, 'font' | 'customFontSizes'>) => {\n if (Boolean(font)) {\n document.documentElement.style.setProperty('--cpsl-default-font', font);\n }\n\n Object.entries(FONT_NAME_MAP).forEach(([key, value]) => {\n if (customFontSizes?.[key]) {\n document.documentElement.style.setProperty(`--cpsl-font-size-${value}`, customFontSizes[key]);\n } else {\n document.documentElement.style.removeProperty(`--cpsl-font-size-${value}`);\n }\n });\n};\n"]}
|
@@ -2,11 +2,10 @@ import { DEFAULT_THEME } from "../../constants";
|
|
2
2
|
import { generateBorderRadii } from "./generateBorderRadii";
|
3
3
|
import { generateFont } from "./generateFont";
|
4
4
|
import { generatePalette } from "./generatePalette";
|
5
|
-
const generateTheme = ({ foregroundColor = DEFAULT_THEME.foregroundColor, backgroundColor = DEFAULT_THEME.backgroundColor, font, customPalette, borderRadius }) => {
|
5
|
+
export const generateTheme = ({ foregroundColor = DEFAULT_THEME.foregroundColor, backgroundColor = DEFAULT_THEME.backgroundColor, font, customPalette, borderRadius, customFontSizes, }) => {
|
6
6
|
const palette = generatePalette({ foregroundColor, backgroundColor, customPalette });
|
7
|
-
generateFont({ font });
|
7
|
+
generateFont({ font, customFontSizes });
|
8
8
|
generateBorderRadii({ borderRadius });
|
9
9
|
return palette.isDarkBackground;
|
10
10
|
};
|
11
|
-
export default generateTheme;
|
12
11
|
//# sourceMappingURL=generateTheme.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"generateTheme.js","sourceRoot":"","sources":["../../../../src/utils/theme/generateTheme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAMpD,MAAM,aAAa,GAAG,CAAC,
|
1
|
+
{"version":3,"file":"generateTheme.js","sourceRoot":"","sources":["../../../../src/utils/theme/generateTheme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAMpD,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAC5B,eAAe,GAAG,aAAa,CAAC,eAAe,EAC/C,eAAe,GAAG,aAAa,CAAC,eAAe,EAC/C,IAAI,EACJ,aAAa,EACb,YAAY,EACZ,eAAe,GACT,EAAW,EAAE;IACnB,MAAM,OAAO,GAAG,eAAe,CAAC,EAAE,eAAe,EAAE,eAAe,EAAE,aAAa,EAAE,CAAC,CAAC;IAErF,YAAY,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC,CAAC;IAExC,mBAAmB,CAAC,EAAE,YAAY,EAAE,CAAC,CAAC;IAEtC,OAAO,OAAO,CAAC,gBAAgB,CAAC;AAClC,CAAC,CAAC","sourcesContent":["import { DEFAULT_THEME } from '../../constants';\nimport { Theme } from '../../interface';\nimport { generateBorderRadii } from './generateBorderRadii';\nimport { generateFont } from './generateFont';\nimport { generatePalette } from './generatePalette';\n\n/**\n * Generates css theme variables.\n * @returns @boolean Whether background is dark or not.\n */\nexport const generateTheme = ({\n foregroundColor = DEFAULT_THEME.foregroundColor,\n backgroundColor = DEFAULT_THEME.backgroundColor,\n font,\n customPalette,\n borderRadius,\n customFontSizes,\n}: Theme): boolean => {\n const palette = generatePalette({ foregroundColor, backgroundColor, customPalette });\n\n generateFont({ font, customFontSizes });\n\n generateBorderRadii({ borderRadius });\n\n return palette.isDarkBackground;\n};\n"]}
|
package/dist/esm/capsule.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
2
|
-
export { s as setNonce } from './index-
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-fd970ca2.js';
|
2
|
+
export { s as setNonce } from './index-fd970ca2.js';
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
4
4
|
|
5
5
|
/*
|
@@ -16,7 +16,7 @@ const patchBrowser = () => {
|
|
16
16
|
|
17
17
|
patchBrowser().then(async (options) => {
|
18
18
|
await globalScripts();
|
19
|
-
return bootstrapLazy([["cpsl-animation",[[1,"cpsl-animation",{"src":[1],"replayAnimation":[64]}]]],["cpsl-col",[[1,"cpsl-col",{"offset":[1],"offsetXs":[1,"offset-xs"],"offsetSm":[1,"offset-sm"],"offsetMd":[1,"offset-md"],"offsetLg":[1,"offset-lg"],"offsetXl":[1,"offset-xl"],"pull":[1],"pullXs":[1,"pull-xs"],"pullSm":[1,"pull-sm"],"pullMd":[1,"pull-md"],"pullLg":[1,"pull-lg"],"pullXl":[1,"pull-xl"],"push":[1],"pushXs":[1,"push-xs"],"pushSm":[1,"push-sm"],"pushMd":[1,"push-md"],"pushLg":[1,"push-lg"],"pushXl":[1,"push-xl"],"size":[1],"sizeXs":[1,"size-xs"],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]},[[9,"resize","onResize"]]]]],["cpsl-grid",[[1,"cpsl-grid",{"fixed":[4]}]]],["cpsl-info-box",[[1,"cpsl-info-box"]]],["cpsl-row",[[1,"cpsl-row"]]],["cpsl-
|
19
|
+
return bootstrapLazy([["cpsl-animation",[[1,"cpsl-animation",{"src":[1],"replayAnimation":[64]}]]],["cpsl-col",[[1,"cpsl-col",{"offset":[1],"offsetXs":[1,"offset-xs"],"offsetSm":[1,"offset-sm"],"offsetMd":[1,"offset-md"],"offsetLg":[1,"offset-lg"],"offsetXl":[1,"offset-xl"],"pull":[1],"pullXs":[1,"pull-xs"],"pullSm":[1,"pull-sm"],"pullMd":[1,"pull-md"],"pullLg":[1,"pull-lg"],"pullXl":[1,"pull-xl"],"push":[1],"pushXs":[1,"push-xs"],"pushSm":[1,"push-sm"],"pushMd":[1,"push-md"],"pushLg":[1,"push-lg"],"pushXl":[1,"push-xl"],"size":[1],"sizeXs":[1,"size-xs"],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]},[[9,"resize","onResize"]]]]],["cpsl-grid",[[1,"cpsl-grid",{"fixed":[4]}]]],["cpsl-info-box",[[1,"cpsl-info-box"]]],["cpsl-row",[[1,"cpsl-row"]]],["cpsl-alert_18",[[1,"cpsl-code-input",{"code":[1025],"errorText":[1,"error-text"],"helperText":[1,"helper-text"],"length":[2],"type":[1]}],[1,"cpsl-input",{"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"noAutoDisable":[4,"no-auto-disable"],"autofocus":[4],"disabled":[4],"enterkeyhint":[1],"errorText":[1,"error-text"],"helperText":[1,"helper-text"],"inputmode":[1],"label":[1],"max":[8],"maxlength":[2],"min":[8],"minlength":[2],"multiple":[4],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"startIconSrc":[1,"start-icon-src"],"startIcon":[1,"start-icon"],"step":[1],"type":[1],"value":[1025],"hasFocus":[32]},null,{"disabled":["handleDisable"]}],[1,"cpsl-modal",{"enterTransitionDuration":[2,"enter-transition-duration"],"exitTransitionDuration":[2,"exit-transition-duration"],"footerExpanded":[4,"footer-expanded"],"footerTransitionDuration":[2,"footer-transition-duration"],"noOverlay":[4,"no-overlay"],"open":[4],"hasFooter":[32]},null,{"footerExpanded":["toggleHeight"],"open":["toggleModal"]}],[1,"cpsl-slide-button",{"disabled":[4],"endIcon":[1,"end-icon"],"endText":[1,"end-text"],"startIcon":[1,"start-icon"],"startText":[1,"start-text"]}],[1,"cpsl-tile-button",{"src":[1],"icon":[1]}],[1,"cpsl-alert",{"type":[1],"icon":[1]}],[1,"cpsl-button",{"disabled":[516],"variant":[513]}],[1,"cpsl-divider"],[1,"cpsl-dropdown",{"width":[1],"hasCpslSearch":[4,"has-cpsl-search"],"items":[16],"isOpen":[32],"selectedItem":[32],"searchQuery":[32],"filteredItems":[32]},[[9,"resize","handleResize"]],{"isOpen":["handleOpenChange"]}],[1,"cpsl-pill",{"text":[1]}],[1,"cpsl-progress-indicator",{"totalSteps":[2,"total-steps"],"step":[2]}],[1,"cpsl-qr-code",{"url":[1],"imageSrc":[1,"image-src"],"size":[2]}],[1,"cpsl-spinner",{"size":[2],"speed":[2]}],[1,"cpsl-tab",{"selected":[4],"tab":[1]},[[8,"cpslTabsChanged","onTabsChanged"],[8,"cpslTabsInit","onTabsInit"]]],[1,"cpsl-tabs",{"fullWidth":[4,"full-width"],"selectedTab":[1,"selected-tab"],"selectedTabRect":[32],"loaded":[32]},null,{"fullWidth":["updateSlider"],"selectedTab":["updateTab"]}],[1,"cpsl-text",{"color":[1],"variant":[1],"weight":[1]}],[1,"cpsl-overlay",{"open":[4],"enterTransitionDuration":[2,"enter-transition-duration"],"exitTransitionDuration":[2,"exit-transition-duration"]},null,{"open":["toggleHeight"]}],[1,"cpsl-icon",{"src":[1],"icon":[1]}]]]], options);
|
20
20
|
});
|
21
21
|
|
22
22
|
//# sourceMappingURL=capsule.js.map
|