@usecapsule/core-components 2.0.4-dev.dropdown.0 → 2.0.4
Sign up to get free protection for your applications and to get access to all the features.
- package/css/capsule-core.css +0 -12
- 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-0cab90fa.entry.js → p-68c73705.entry.js} +2 -2
- package/dist/capsule/{p-193ac141.entry.js → p-91412151.entry.js} +2 -2
- package/dist/capsule/p-f604b591.entry.js +2 -0
- package/dist/capsule/p-fbf8db64.entry.js +29 -0
- package/dist/capsule/p-fbf8db64.entry.js.map +1 -0
- package/dist/cjs/capsule.cjs.js +1 -1
- package/dist/cjs/{cpsl-alert_18.cjs.entry.js → cpsl-alert_17.cjs.entry.js} +41 -4104
- package/dist/cjs/cpsl-alert_17.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 +8 -28
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/assets/icons/decent-brand.svg +3 -0
- package/dist/collection/assets/icons/decent.svg +3 -0
- package/dist/collection/assets/icons/index.js +6 -236
- package/dist/collection/assets/icons/index.js.map +1 -1
- package/dist/collection/assets/icons/lightning.svg +3 -0
- package/dist/collection/assets/icons/ramp-network-brand.svg +3 -0
- package/dist/collection/assets/icons/ramp-network.svg +3 -0
- package/dist/collection/collection-manifest.json +0 -1
- package/dist/collection/components/cpsl-alert/cpsl-alert.js +1 -1
- 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 +0 -101
- package/dist/collection/components/cpsl-text/cpsl-text.js +1 -110
- 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 +4 -25
- package/dist/collection/utils/theme/generateFont.js.map +1 -1
- package/dist/collection/utils/theme/generateTheme.js +3 -2
- package/dist/collection/utils/theme/generateTheme.js.map +1 -1
- package/dist/esm/capsule.js +1 -1
- package/dist/esm/{cpsl-alert_18.entry.js → cpsl-alert_17.entry.js} +42 -4104
- package/dist/esm/cpsl-alert_17.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 +8 -28
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/assets/icons/index.d.ts +5 -235
- package/dist/types/components/cpsl-text/cpsl-text.d.ts +0 -4
- package/dist/types/components.d.ts +0 -53
- package/dist/types/index.d.ts +1 -1
- package/dist/types/interface.d.ts +0 -15
- package/dist/types/utils/theme/generateFont.d.ts +1 -1
- package/dist/types/utils/theme/generateTheme.d.ts +2 -1
- package/package.json +3 -2
- package/dist/capsule/p-7a2b95de.entry.js +0 -29
- package/dist/capsule/p-7a2b95de.entry.js.map +0 -1
- package/dist/capsule/p-cb8dc0a4.entry.js +0 -2
- package/dist/cjs/cpsl-alert_18.cjs.entry.js.map +0 -1
- package/dist/collection/assets/icons/AD.svg +0 -15
- package/dist/collection/assets/icons/AE.svg +0 -13
- package/dist/collection/assets/icons/AF.svg +0 -14
- package/dist/collection/assets/icons/AG.svg +0 -15
- package/dist/collection/assets/icons/AI.svg +0 -19
- package/dist/collection/assets/icons/AL.svg +0 -11
- package/dist/collection/assets/icons/AM.svg +0 -12
- package/dist/collection/assets/icons/AO.svg +0 -14
- package/dist/collection/assets/icons/AR.svg +0 -13
- package/dist/collection/assets/icons/AS.svg +0 -15
- package/dist/collection/assets/icons/AT.svg +0 -12
- package/dist/collection/assets/icons/AU.svg +0 -20
- package/dist/collection/assets/icons/AW.svg +0 -15
- package/dist/collection/assets/icons/AX.svg +0 -15
- package/dist/collection/assets/icons/AZ.svg +0 -14
- package/dist/collection/assets/icons/BA.svg +0 -13
- package/dist/collection/assets/icons/BB.svg +0 -13
- package/dist/collection/assets/icons/BD.svg +0 -11
- package/dist/collection/assets/icons/BE.svg +0 -12
- package/dist/collection/assets/icons/BF.svg +0 -12
- package/dist/collection/assets/icons/BG.svg +0 -12
- package/dist/collection/assets/icons/BH.svg +0 -11
- package/dist/collection/assets/icons/BI.svg +0 -18
- package/dist/collection/assets/icons/BJ.svg +0 -12
- package/dist/collection/assets/icons/BL.svg +0 -16
- package/dist/collection/assets/icons/BM.svg +0 -20
- package/dist/collection/assets/icons/BN.svg +0 -19
- package/dist/collection/assets/icons/BO.svg +0 -12
- package/dist/collection/assets/icons/BQ.svg +0 -14
- package/dist/collection/assets/icons/BQ2.svg +0 -20
- package/dist/collection/assets/icons/BQ3.svg +0 -15
- package/dist/collection/assets/icons/BR.svg +0 -14
- package/dist/collection/assets/icons/BS.svg +0 -13
- package/dist/collection/assets/icons/BT.svg +0 -12
- package/dist/collection/assets/icons/BW.svg +0 -13
- package/dist/collection/assets/icons/BY.svg +0 -18
- package/dist/collection/assets/icons/BZ.svg +0 -17
- package/dist/collection/assets/icons/CA.svg +0 -13
- package/dist/collection/assets/icons/CC.svg +0 -19
- package/dist/collection/assets/icons/CD.svg +0 -12
- package/dist/collection/assets/icons/CD2.svg +0 -14
- package/dist/collection/assets/icons/CF.svg +0 -20
- package/dist/collection/assets/icons/CH.svg +0 -11
- package/dist/collection/assets/icons/CK.svg +0 -22
- package/dist/collection/assets/icons/CL.svg +0 -13
- package/dist/collection/assets/icons/CM.svg +0 -13
- package/dist/collection/assets/icons/CN.svg +0 -15
- package/dist/collection/assets/icons/CO.svg +0 -12
- package/dist/collection/assets/icons/CR.svg +0 -13
- package/dist/collection/assets/icons/CU.svg +0 -15
- package/dist/collection/assets/icons/CW.svg +0 -14
- package/dist/collection/assets/icons/CX.svg +0 -19
- package/dist/collection/assets/icons/CY.svg +0 -12
- package/dist/collection/assets/icons/CZ.svg +0 -12
- package/dist/collection/assets/icons/DE.svg +0 -12
- package/dist/collection/assets/icons/DJ.svg +0 -13
- package/dist/collection/assets/icons/DK.svg +0 -14
- package/dist/collection/assets/icons/DM.svg +0 -34
- package/dist/collection/assets/icons/DO.svg +0 -17
- package/dist/collection/assets/icons/DS.svg +0 -13
- package/dist/collection/assets/icons/DZ.svg +0 -13
- package/dist/collection/assets/icons/EC.svg +0 -15
- package/dist/collection/assets/icons/EE.svg +0 -12
- package/dist/collection/assets/icons/EG.svg +0 -13
- package/dist/collection/assets/icons/EH.svg +0 -15
- package/dist/collection/assets/icons/ER.svg +0 -13
- package/dist/collection/assets/icons/ES.svg +0 -12
- package/dist/collection/assets/icons/ET.svg +0 -15
- package/dist/collection/assets/icons/FI.svg +0 -11
- package/dist/collection/assets/icons/FJ.svg +0 -18
- package/dist/collection/assets/icons/FK.svg +0 -18
- package/dist/collection/assets/icons/FM.svg +0 -14
- package/dist/collection/assets/icons/FO.svg +0 -12
- package/dist/collection/assets/icons/FR.svg +0 -12
- package/dist/collection/assets/icons/GA.svg +0 -12
- package/dist/collection/assets/icons/GB-2.svg +0 -11
- package/dist/collection/assets/icons/GB.svg +0 -23
- package/dist/collection/assets/icons/GD.svg +0 -26
- package/dist/collection/assets/icons/GE.svg +0 -15
- package/dist/collection/assets/icons/GG.svg +0 -12
- package/dist/collection/assets/icons/GH.svg +0 -13
- package/dist/collection/assets/icons/GI.svg +0 -13
- package/dist/collection/assets/icons/GL.svg +0 -13
- package/dist/collection/assets/icons/GM.svg +0 -13
- package/dist/collection/assets/icons/GN.svg +0 -12
- package/dist/collection/assets/icons/GQ.svg +0 -16
- package/dist/collection/assets/icons/GR.svg +0 -15
- package/dist/collection/assets/icons/GT.svg +0 -14
- package/dist/collection/assets/icons/GU.svg +0 -18
- package/dist/collection/assets/icons/GW.svg +0 -14
- package/dist/collection/assets/icons/GY.svg +0 -15
- package/dist/collection/assets/icons/HK.svg +0 -15
- package/dist/collection/assets/icons/HN.svg +0 -17
- package/dist/collection/assets/icons/HR.svg +0 -31
- package/dist/collection/assets/icons/HT.svg +0 -17
- package/dist/collection/assets/icons/HU.svg +0 -12
- package/dist/collection/assets/icons/ID.svg +0 -11
- package/dist/collection/assets/icons/IE.svg +0 -12
- package/dist/collection/assets/icons/IL.svg +0 -13
- package/dist/collection/assets/icons/IM.svg +0 -11
- package/dist/collection/assets/icons/IN.svg +0 -15
- package/dist/collection/assets/icons/IO.svg +0 -29
- package/dist/collection/assets/icons/IQ.svg +0 -15
- package/dist/collection/assets/icons/IR.svg +0 -13
- package/dist/collection/assets/icons/IS.svg +0 -15
- package/dist/collection/assets/icons/IT.svg +0 -12
- package/dist/collection/assets/icons/JE.svg +0 -13
- package/dist/collection/assets/icons/JM.svg +0 -14
- package/dist/collection/assets/icons/JO.svg +0 -14
- package/dist/collection/assets/icons/JP.svg +0 -11
- package/dist/collection/assets/icons/KE.svg +0 -19
- package/dist/collection/assets/icons/KG.svg +0 -16
- package/dist/collection/assets/icons/KH.svg +0 -13
- package/dist/collection/assets/icons/KI.svg +0 -17
- package/dist/collection/assets/icons/KM.svg +0 -19
- package/dist/collection/assets/icons/KN.svg +0 -15
- package/dist/collection/assets/icons/KP.svg +0 -15
- package/dist/collection/assets/icons/KR.svg +0 -30
- package/dist/collection/assets/icons/KW.svg +0 -13
- package/dist/collection/assets/icons/KY.svg +0 -20
- package/dist/collection/assets/icons/KZ.svg +0 -13
- package/dist/collection/assets/icons/LA.svg +0 -13
- package/dist/collection/assets/icons/LB.svg +0 -13
- package/dist/collection/assets/icons/LC.svg +0 -13
- package/dist/collection/assets/icons/LI.svg +0 -12
- package/dist/collection/assets/icons/LK.svg +0 -14
- package/dist/collection/assets/icons/LR.svg +0 -23
- package/dist/collection/assets/icons/LS.svg +0 -13
- package/dist/collection/assets/icons/LT.svg +0 -12
- package/dist/collection/assets/icons/LU.svg +0 -12
- package/dist/collection/assets/icons/LV.svg +0 -12
- package/dist/collection/assets/icons/LY.svg +0 -14
- package/dist/collection/assets/icons/MA.svg +0 -11
- package/dist/collection/assets/icons/MC.svg +0 -11
- package/dist/collection/assets/icons/MD.svg +0 -15
- package/dist/collection/assets/icons/ME.svg +0 -15
- package/dist/collection/assets/icons/MG.svg +0 -12
- package/dist/collection/assets/icons/MH.svg +0 -13
- package/dist/collection/assets/icons/MK.svg +0 -20
- package/dist/collection/assets/icons/ML.svg +0 -12
- package/dist/collection/assets/icons/MM.svg +0 -13
- package/dist/collection/assets/icons/MN.svg +0 -19
- package/dist/collection/assets/icons/MO.svg +0 -18
- package/dist/collection/assets/icons/MP.svg +0 -14
- package/dist/collection/assets/icons/MQ.svg +0 -18
- package/dist/collection/assets/icons/MR.svg +0 -12
- package/dist/collection/assets/icons/MS.svg +0 -17
- package/dist/collection/assets/icons/MT.svg +0 -12
- package/dist/collection/assets/icons/MU.svg +0 -13
- package/dist/collection/assets/icons/MV.svg +0 -12
- package/dist/collection/assets/icons/MW.svg +0 -13
- package/dist/collection/assets/icons/MX.svg +0 -14
- package/dist/collection/assets/icons/MY.svg +0 -17
- package/dist/collection/assets/icons/MZ.svg +0 -17
- package/dist/collection/assets/icons/NA.svg +0 -14
- package/dist/collection/assets/icons/NE.svg +0 -13
- package/dist/collection/assets/icons/NF.svg +0 -13
- package/dist/collection/assets/icons/NG.svg +0 -12
- package/dist/collection/assets/icons/NI.svg +0 -16
- package/dist/collection/assets/icons/NL.svg +0 -12
- package/dist/collection/assets/icons/NO.svg +0 -15
- package/dist/collection/assets/icons/NP.svg +0 -16
- package/dist/collection/assets/icons/NR.svg +0 -14
- package/dist/collection/assets/icons/NU.svg +0 -20
- package/dist/collection/assets/icons/NZ.svg +0 -18
- package/dist/collection/assets/icons/OM.svg +0 -15
- package/dist/collection/assets/icons/PA.svg +0 -14
- package/dist/collection/assets/icons/PE.svg +0 -12
- package/dist/collection/assets/icons/PF.svg +0 -17
- package/dist/collection/assets/icons/PG.svg +0 -17
- package/dist/collection/assets/icons/PH.svg +0 -16
- package/dist/collection/assets/icons/PK.svg +0 -14
- package/dist/collection/assets/icons/PL.svg +0 -11
- package/dist/collection/assets/icons/PN.svg +0 -18
- package/dist/collection/assets/icons/PR.svg +0 -15
- package/dist/collection/assets/icons/PS.svg +0 -13
- package/dist/collection/assets/icons/PT.svg +0 -14
- package/dist/collection/assets/icons/PW.svg +0 -11
- package/dist/collection/assets/icons/PY.svg +0 -14
- package/dist/collection/assets/icons/QA.svg +0 -11
- package/dist/collection/assets/icons/RO.svg +0 -12
- package/dist/collection/assets/icons/RS.svg +0 -16
- package/dist/collection/assets/icons/RU.svg +0 -12
- package/dist/collection/assets/icons/RW.svg +0 -13
- package/dist/collection/assets/icons/SA.svg +0 -16
- package/dist/collection/assets/icons/SB.svg +0 -17
- package/dist/collection/assets/icons/SC.svg +0 -14
- package/dist/collection/assets/icons/SE.svg +0 -14
- package/dist/collection/assets/icons/SG.svg +0 -17
- package/dist/collection/assets/icons/SI.svg +0 -13
- package/dist/collection/assets/icons/SK.svg +0 -16
- package/dist/collection/assets/icons/SL.svg +0 -12
- package/dist/collection/assets/icons/SM.svg +0 -16
- package/dist/collection/assets/icons/SN.svg +0 -13
- package/dist/collection/assets/icons/SO.svg +0 -11
- package/dist/collection/assets/icons/SR.svg +0 -14
- package/dist/collection/assets/icons/SS.svg +0 -15
- package/dist/collection/assets/icons/ST.svg +0 -15
- package/dist/collection/assets/icons/SV.svg +0 -15
- package/dist/collection/assets/icons/SX.svg +0 -17
- package/dist/collection/assets/icons/SY.svg +0 -14
- package/dist/collection/assets/icons/SZ.svg +0 -21
- package/dist/collection/assets/icons/TC.svg +0 -19
- package/dist/collection/assets/icons/TD.svg +0 -12
- package/dist/collection/assets/icons/TG.svg +0 -15
- package/dist/collection/assets/icons/TH.svg +0 -13
- package/dist/collection/assets/icons/TJ.svg +0 -20
- package/dist/collection/assets/icons/TK.svg +0 -15
- package/dist/collection/assets/icons/TL.svg +0 -13
- package/dist/collection/assets/icons/TM.svg +0 -30
- package/dist/collection/assets/icons/TN.svg +0 -13
- package/dist/collection/assets/icons/TO.svg +0 -12
- package/dist/collection/assets/icons/TR.svg +0 -12
- package/dist/collection/assets/icons/TT.svg +0 -13
- package/dist/collection/assets/icons/TV.svg +0 -25
- package/dist/collection/assets/icons/TW.svg +0 -14
- package/dist/collection/assets/icons/TZ.svg +0 -13
- package/dist/collection/assets/icons/UA.svg +0 -11
- package/dist/collection/assets/icons/UG.svg +0 -16
- package/dist/collection/assets/icons/US.svg +0 -15
- package/dist/collection/assets/icons/UY.svg +0 -16
- package/dist/collection/assets/icons/UZ.svg +0 -27
- package/dist/collection/assets/icons/VC.svg +0 -15
- package/dist/collection/assets/icons/VE.svg +0 -20
- package/dist/collection/assets/icons/VG.svg +0 -24
- package/dist/collection/assets/icons/VI.svg +0 -18
- package/dist/collection/assets/icons/VN.svg +0 -11
- package/dist/collection/assets/icons/VU.svg +0 -32
- package/dist/collection/assets/icons/WS.svg +0 -16
- package/dist/collection/assets/icons/YE.svg +0 -12
- package/dist/collection/assets/icons/ZA.svg +0 -15
- package/dist/collection/assets/icons/ZM.svg +0 -14
- package/dist/collection/assets/icons/ZW.svg +0 -20
- package/dist/collection/assets/icons/chevron-up.svg +0 -3
- package/dist/collection/assets/icons/earth.svg +0 -11
- package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.css +0 -88
- package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js +0 -118
- package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js.map +0 -1
- package/dist/collection/components/cpsl-dropdown/test/cpsl-dropdown.e2e.js +0 -29
- package/dist/collection/components/cpsl-dropdown/test/cpsl-dropdown.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-dropdown/test/cpsl-dropdown.spec.js +0 -37
- package/dist/collection/components/cpsl-dropdown/test/cpsl-dropdown.spec.js.map +0 -1
- package/dist/esm/cpsl-alert_18.entry.js.map +0 -1
- package/dist/types/components/cpsl-dropdown/cpsl-dropdown.d.ts +0 -26
- /package/dist/capsule/{p-0cab90fa.entry.js.map → p-68c73705.entry.js.map} +0 -0
- /package/dist/capsule/{p-193ac141.entry.js.map → p-91412151.entry.js.map} +0 -0
- /package/dist/capsule/{p-cb8dc0a4.entry.js.map → p-f604b591.entry.js.map} +0 -0
- /package/dist/types/Users/{vinay/Documents/GitHub/Capsule → keith/Documents}/component-library/core/.stencil/scripts/buildIconLibrary.d.ts +0 -0
@@ -168,16 +168,6 @@ export namespace Components {
|
|
168
168
|
}
|
169
169
|
interface CpslDivider {
|
170
170
|
}
|
171
|
-
interface CpslDropdown {
|
172
|
-
/**
|
173
|
-
* Items to be presented in the dropdown
|
174
|
-
*/
|
175
|
-
"items": Array<{ icon: IconType, label: string, value: string, selectedLabel?: string }>;
|
176
|
-
/**
|
177
|
-
* Width of the dropdown
|
178
|
-
*/
|
179
|
-
"width": string;
|
180
|
-
}
|
181
171
|
interface CpslGrid {
|
182
172
|
/**
|
183
173
|
* If `true`, the grid will have a fixed width based on the screen size.
|
@@ -431,18 +421,6 @@ export namespace Components {
|
|
431
421
|
"selectedTab"?: string;
|
432
422
|
}
|
433
423
|
interface CpslText {
|
434
|
-
/**
|
435
|
-
* The color of text. Options are: `"primary"`, `"secondary", `"subtle", `"inverted", `"error". Default is: `"primary"`.
|
436
|
-
*/
|
437
|
-
"color"?: 'primary' | 'secondary' | 'subtle' | 'inverted' | 'error';
|
438
|
-
/**
|
439
|
-
* The variant of text. Options are: `"body2XS"`, `"bodyXS", `"bodyS", `"bodyM", `"bodyL", `"bodyXL", `"headingXS", `"headingS", `"headingM", `"headingL", `"headingXL", `"heading2XL". Default is: `"bodyM"`.
|
440
|
-
*/
|
441
|
-
"variant"?: 'body2XS' | 'bodyXS' | 'bodyS' | 'bodyM' | 'bodyL' | 'bodyXL' | 'headingXS' | 'headingS' | 'headingM' | 'headingL' | 'headingXL' | 'heading2XL';
|
442
|
-
/**
|
443
|
-
* The weight of text. Options are: `"regular"`, `"medium", `"semiBold", `"bold". Default is: `"regular"`.
|
444
|
-
*/
|
445
|
-
"weight"?: 'regular' | 'medium' | 'semiBold' | 'bold';
|
446
424
|
}
|
447
425
|
interface CpslTileButton {
|
448
426
|
/**
|
@@ -527,12 +505,6 @@ declare global {
|
|
527
505
|
prototype: HTMLCpslDividerElement;
|
528
506
|
new (): HTMLCpslDividerElement;
|
529
507
|
};
|
530
|
-
interface HTMLCpslDropdownElement extends Components.CpslDropdown, HTMLStencilElement {
|
531
|
-
}
|
532
|
-
var HTMLCpslDropdownElement: {
|
533
|
-
prototype: HTMLCpslDropdownElement;
|
534
|
-
new (): HTMLCpslDropdownElement;
|
535
|
-
};
|
536
508
|
interface HTMLCpslGridElement extends Components.CpslGrid, HTMLStencilElement {
|
537
509
|
}
|
538
510
|
var HTMLCpslGridElement: {
|
@@ -699,7 +671,6 @@ declare global {
|
|
699
671
|
"cpsl-code-input": HTMLCpslCodeInputElement;
|
700
672
|
"cpsl-col": HTMLCpslColElement;
|
701
673
|
"cpsl-divider": HTMLCpslDividerElement;
|
702
|
-
"cpsl-dropdown": HTMLCpslDropdownElement;
|
703
674
|
"cpsl-grid": HTMLCpslGridElement;
|
704
675
|
"cpsl-icon": HTMLCpslIconElement;
|
705
676
|
"cpsl-info-box": HTMLCpslInfoBoxElement;
|
@@ -871,16 +842,6 @@ declare namespace LocalJSX {
|
|
871
842
|
}
|
872
843
|
interface CpslDivider {
|
873
844
|
}
|
874
|
-
interface CpslDropdown {
|
875
|
-
/**
|
876
|
-
* Items to be presented in the dropdown
|
877
|
-
*/
|
878
|
-
"items"?: Array<{ icon: IconType, label: string, value: string, selectedLabel?: string }>;
|
879
|
-
/**
|
880
|
-
* Width of the dropdown
|
881
|
-
*/
|
882
|
-
"width"?: string;
|
883
|
-
}
|
884
845
|
interface CpslGrid {
|
885
846
|
/**
|
886
847
|
* If `true`, the grid will have a fixed width based on the screen size.
|
@@ -1178,18 +1139,6 @@ declare namespace LocalJSX {
|
|
1178
1139
|
"selectedTab"?: string;
|
1179
1140
|
}
|
1180
1141
|
interface CpslText {
|
1181
|
-
/**
|
1182
|
-
* The color of text. Options are: `"primary"`, `"secondary", `"subtle", `"inverted", `"error". Default is: `"primary"`.
|
1183
|
-
*/
|
1184
|
-
"color"?: 'primary' | 'secondary' | 'subtle' | 'inverted' | 'error';
|
1185
|
-
/**
|
1186
|
-
* The variant of text. Options are: `"body2XS"`, `"bodyXS", `"bodyS", `"bodyM", `"bodyL", `"bodyXL", `"headingXS", `"headingS", `"headingM", `"headingL", `"headingXL", `"heading2XL". Default is: `"bodyM"`.
|
1187
|
-
*/
|
1188
|
-
"variant"?: 'body2XS' | 'bodyXS' | 'bodyS' | 'bodyM' | 'bodyL' | 'bodyXL' | 'headingXS' | 'headingS' | 'headingM' | 'headingL' | 'headingXL' | 'heading2XL';
|
1189
|
-
/**
|
1190
|
-
* The weight of text. Options are: `"regular"`, `"medium", `"semiBold", `"bold". Default is: `"regular"`.
|
1191
|
-
*/
|
1192
|
-
"weight"?: 'regular' | 'medium' | 'semiBold' | 'bold';
|
1193
1142
|
}
|
1194
1143
|
interface CpslTileButton {
|
1195
1144
|
/**
|
@@ -1208,7 +1157,6 @@ declare namespace LocalJSX {
|
|
1208
1157
|
"cpsl-code-input": CpslCodeInput;
|
1209
1158
|
"cpsl-col": CpslCol;
|
1210
1159
|
"cpsl-divider": CpslDivider;
|
1211
|
-
"cpsl-dropdown": CpslDropdown;
|
1212
1160
|
"cpsl-grid": CpslGrid;
|
1213
1161
|
"cpsl-icon": CpslIcon;
|
1214
1162
|
"cpsl-info-box": CpslInfoBox;
|
@@ -1237,7 +1185,6 @@ declare module "@stencil/core" {
|
|
1237
1185
|
"cpsl-code-input": LocalJSX.CpslCodeInput & JSXBase.HTMLAttributes<HTMLCpslCodeInputElement>;
|
1238
1186
|
"cpsl-col": LocalJSX.CpslCol & JSXBase.HTMLAttributes<HTMLCpslColElement>;
|
1239
1187
|
"cpsl-divider": LocalJSX.CpslDivider & JSXBase.HTMLAttributes<HTMLCpslDividerElement>;
|
1240
|
-
"cpsl-dropdown": LocalJSX.CpslDropdown & JSXBase.HTMLAttributes<HTMLCpslDropdownElement>;
|
1241
1188
|
"cpsl-grid": LocalJSX.CpslGrid & JSXBase.HTMLAttributes<HTMLCpslGridElement>;
|
1242
1189
|
"cpsl-icon": LocalJSX.CpslIcon & JSXBase.HTMLAttributes<HTMLCpslIconElement>;
|
1243
1190
|
"cpsl-info-box": LocalJSX.CpslInfoBox & JSXBase.HTMLAttributes<HTMLCpslInfoBoxElement>;
|
package/dist/types/index.d.ts
CHANGED
@@ -14,23 +14,8 @@ export type Theme = {
|
|
14
14
|
borderRadius?: BorderRadius;
|
15
15
|
font?: string;
|
16
16
|
customPalette?: CustomPalette;
|
17
|
-
customFontSizes?: CustomFontSizes;
|
18
17
|
};
|
19
18
|
export type BorderRadius = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'full';
|
20
|
-
export interface CustomFontSizes {
|
21
|
-
body2XS?: string;
|
22
|
-
bodyXS?: string;
|
23
|
-
bodyS?: string;
|
24
|
-
bodyM?: string;
|
25
|
-
bodyL?: string;
|
26
|
-
bodyXL?: string;
|
27
|
-
headingXS?: string;
|
28
|
-
headingS?: string;
|
29
|
-
headingM?: string;
|
30
|
-
headingL?: string;
|
31
|
-
headingXL?: string;
|
32
|
-
heading2XL?: string;
|
33
|
-
}
|
34
19
|
export interface CustomPalette {
|
35
20
|
text?: {
|
36
21
|
primary?: string;
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { Theme } from '../../interface';
|
2
|
-
export declare const generateFont: ({ font
|
2
|
+
export declare const generateFont: ({ font }: Pick<Theme, 'font'>) => void;
|
@@ -1,2 +1,3 @@
|
|
1
1
|
import { Theme } from '../../interface';
|
2
|
-
|
2
|
+
declare const generateTheme: ({ foregroundColor, backgroundColor, font, customPalette, borderRadius }: Theme) => boolean;
|
3
|
+
export default generateTheme;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@usecapsule/core-components",
|
3
|
-
"version": "2.0.4
|
3
|
+
"version": "2.0.4",
|
4
4
|
"description": "Capsule Core Components",
|
5
5
|
"main": "dist/index.cjs.js",
|
6
6
|
"module": "dist/index.js",
|
@@ -49,5 +49,6 @@
|
|
49
49
|
"sass": "^1.71.1",
|
50
50
|
"stencil-inline-svg": "^1.1.0",
|
51
51
|
"ts-node": "^10.9.2"
|
52
|
-
}
|
52
|
+
},
|
53
|
+
"gitHead": "a1ee3e425a196245daa5923ce385f2db0c1c2f8c"
|
53
54
|
}
|