@rededor/cura 0.4.5 → 0.5.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +18 -4
- package/dist/assets/icons/iconset-default-list.ts +0 -1
- package/dist/assets/icons/iconset-default.svg +0 -1
- package/dist/cjs/app-globals-858f45bf.js +0 -479
- package/dist/cjs/app-globals-858f45bf.js.map +0 -1
- package/dist/cjs/css-shim-83cf0349.js +0 -8
- package/dist/cjs/css-shim-83cf0349.js.map +0 -1
- package/dist/cjs/cura-button_10.cjs.entry.js +0 -549
- package/dist/cjs/cura-button_10.cjs.entry.js.map +0 -1
- package/dist/cjs/cura.cjs.js +0 -36
- package/dist/cjs/cura.cjs.js.map +0 -1
- package/dist/cjs/index-0e874533.js +0 -1995
- package/dist/cjs/index-0e874533.js.map +0 -1
- package/dist/cjs/index.cjs.js +0 -4
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/loader.cjs.js +0 -42
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/cjs/shadow-css-8baae635.js +0 -391
- package/dist/cjs/shadow-css-8baae635.js.map +0 -1
- package/dist/collection/api/cura-api.js +0 -34
- package/dist/collection/api/cura-api.js.map +0 -1
- package/dist/collection/api/cura-api.type.js +0 -7
- package/dist/collection/api/cura-api.type.js.map +0 -1
- package/dist/collection/api/modules/cura-theme-breakpoints-module.js +0 -14
- package/dist/collection/api/modules/cura-theme-breakpoints-module.js.map +0 -1
- package/dist/collection/api/modules/cura-theme-colors-module.js +0 -75
- package/dist/collection/api/modules/cura-theme-colors-module.js.map +0 -1
- package/dist/collection/api/modules/cura-theme-fonts-module.js +0 -36
- package/dist/collection/api/modules/cura-theme-fonts-module.js.map +0 -1
- package/dist/collection/api/modules/cura-theme-module.js +0 -78
- package/dist/collection/api/modules/cura-theme-module.js.map +0 -1
- package/dist/collection/api/modules/cura-theme-spacing-module.js +0 -13
- package/dist/collection/api/modules/cura-theme-spacing-module.js.map +0 -1
- package/dist/collection/api/theme-presets/static.js +0 -71
- package/dist/collection/api/theme-presets/static.js.map +0 -1
- package/dist/collection/api/theme-presets/theme-default.js +0 -50
- package/dist/collection/api/theme-presets/theme-default.js.map +0 -1
- package/dist/collection/api/theme-presets/theme-maternity.js +0 -46
- package/dist/collection/api/theme-presets/theme-maternity.js.map +0 -1
- package/dist/collection/api/theme-presets/theme-oncology.js +0 -53
- package/dist/collection/api/theme-presets/theme-oncology.js.map +0 -1
- package/dist/collection/api/theme-presets/theme-presets.js +0 -9
- package/dist/collection/api/theme-presets/theme-presets.js.map +0 -1
- package/dist/collection/assets/icons/iconset-default-list.js +0 -2
- package/dist/collection/assets/icons/iconset-default-list.js.map +0 -1
- package/dist/collection/assets/icons/iconset-default.svg +0 -1
- package/dist/collection/assets-raw/icons/default/360.svg +0 -8
- package/dist/collection/assets-raw/icons/default/accessibility.svg +0 -5
- package/dist/collection/assets-raw/icons/default/addUser.svg +0 -6
- package/dist/collection/assets-raw/icons/default/alertCircle.svg +0 -5
- package/dist/collection/assets-raw/icons/default/alertTriangle.svg +0 -5
- package/dist/collection/assets-raw/icons/default/arrowDown.svg +0 -3
- package/dist/collection/assets-raw/icons/default/arrowDownCircle.svg +0 -4
- package/dist/collection/assets-raw/icons/default/arrowLeft.svg +0 -3
- package/dist/collection/assets-raw/icons/default/arrowLeftCircle.svg +0 -4
- package/dist/collection/assets-raw/icons/default/arrowRight.svg +0 -3
- package/dist/collection/assets-raw/icons/default/arrowRightCircle.svg +0 -4
- package/dist/collection/assets-raw/icons/default/arrowUp.svg +0 -3
- package/dist/collection/assets-raw/icons/default/arrowUpCircle.svg +0 -4
- package/dist/collection/assets-raw/icons/default/attach.svg +0 -3
- package/dist/collection/assets-raw/icons/default/avatarF.svg +0 -6
- package/dist/collection/assets-raw/icons/default/avatarM.svg +0 -5
- package/dist/collection/assets-raw/icons/default/biometry.svg +0 -3
- package/dist/collection/assets-raw/icons/default/bloodGroup.svg +0 -3
- package/dist/collection/assets-raw/icons/default/calendar.svg +0 -8
- package/dist/collection/assets-raw/icons/default/cam.svg +0 -4
- package/dist/collection/assets-raw/icons/default/camOff.svg +0 -5
- package/dist/collection/assets-raw/icons/default/central.svg +0 -7
- package/dist/collection/assets-raw/icons/default/chatCircle.svg +0 -6
- package/dist/collection/assets-raw/icons/default/check.svg +0 -3
- package/dist/collection/assets-raw/icons/default/checkBadge.svg +0 -4
- package/dist/collection/assets-raw/icons/default/checkCircle.svg +0 -4
- package/dist/collection/assets-raw/icons/default/checkDouble.svg +0 -4
- package/dist/collection/assets-raw/icons/default/clock.svg +0 -5
- package/dist/collection/assets-raw/icons/default/close.svg +0 -3
- package/dist/collection/assets-raw/icons/default/closeCircle.svg +0 -5
- package/dist/collection/assets-raw/icons/default/collapse.svg +0 -4
- package/dist/collection/assets-raw/icons/default/config.svg +0 -4
- package/dist/collection/assets-raw/icons/default/delete.svg +0 -7
- package/dist/collection/assets-raw/icons/default/desktop.svg +0 -6
- package/dist/collection/assets-raw/icons/default/doc.svg +0 -4
- package/dist/collection/assets-raw/icons/default/down.svg +0 -3
- package/dist/collection/assets-raw/icons/default/download.svg +0 -3
- package/dist/collection/assets-raw/icons/default/duplicate.svg +0 -4
- package/dist/collection/assets-raw/icons/default/edit.svg +0 -5
- package/dist/collection/assets-raw/icons/default/exam.svg +0 -6
- package/dist/collection/assets-raw/icons/default/expand.svg +0 -4
- package/dist/collection/assets-raw/icons/default/facebook.svg +0 -3
- package/dist/collection/assets-raw/icons/default/fileBmp.svg +0 -17
- package/dist/collection/assets-raw/icons/default/fileJpg.svg +0 -8
- package/dist/collection/assets-raw/icons/default/filePdf.svg +0 -10
- package/dist/collection/assets-raw/icons/default/filePng.svg +0 -10
- package/dist/collection/assets-raw/icons/default/fileUpload.svg +0 -5
- package/dist/collection/assets-raw/icons/default/fileXls.svg +0 -8
- package/dist/collection/assets-raw/icons/default/filter.svg +0 -11
- package/dist/collection/assets-raw/icons/default/fullscreen.svg +0 -6
- package/dist/collection/assets-raw/icons/default/gallery.svg +0 -6
- package/dist/collection/assets-raw/icons/default/geotag.svg +0 -4
- package/dist/collection/assets-raw/icons/default/geotagUnity.svg +0 -5
- package/dist/collection/assets-raw/icons/default/google.svg +0 -3
- package/dist/collection/assets-raw/icons/default/graph.svg +0 -6
- package/dist/collection/assets-raw/icons/default/healthPlan.svg +0 -6
- package/dist/collection/assets-raw/icons/default/height.svg +0 -10
- package/dist/collection/assets-raw/icons/default/height2.svg +0 -8
- package/dist/collection/assets-raw/icons/default/home.svg +0 -6
- package/dist/collection/assets-raw/icons/default/horizontalList.svg +0 -4
- package/dist/collection/assets-raw/icons/default/imageUp.svg +0 -5
- package/dist/collection/assets-raw/icons/default/infoCircle.svg +0 -5
- package/dist/collection/assets-raw/icons/default/instagram.svg +0 -5
- package/dist/collection/assets-raw/icons/default/key.svg +0 -4
- package/dist/collection/assets-raw/icons/default/lamp.svg +0 -12
- package/dist/collection/assets-raw/icons/default/language.svg +0 -9
- package/dist/collection/assets-raw/icons/default/language2.svg +0 -4
- package/dist/collection/assets-raw/icons/default/languageEN.svg +0 -5
- package/dist/collection/assets-raw/icons/default/languagePT.svg +0 -5
- package/dist/collection/assets-raw/icons/default/lattes.svg +0 -3
- package/dist/collection/assets-raw/icons/default/left.svg +0 -3
- package/dist/collection/assets-raw/icons/default/like.svg +0 -4
- package/dist/collection/assets-raw/icons/default/link.svg +0 -4
- package/dist/collection/assets-raw/icons/default/linkExternal.svg +0 -4
- package/dist/collection/assets-raw/icons/default/linkedin.svg +0 -5
- package/dist/collection/assets-raw/icons/default/list.svg +0 -8
- package/dist/collection/assets-raw/icons/default/login.svg +0 -4
- package/dist/collection/assets-raw/icons/default/logout.svg +0 -3
- package/dist/collection/assets-raw/icons/default/mail.svg +0 -6
- package/dist/collection/assets-raw/icons/default/medDoc.svg +0 -5
- package/dist/collection/assets-raw/icons/default/medEspec.svg +0 -4
- package/dist/collection/assets-raw/icons/default/medImg.svg +0 -5
- package/dist/collection/assets-raw/icons/default/medUser.svg +0 -10
- package/dist/collection/assets-raw/icons/default/medical.svg +0 -9
- package/dist/collection/assets-raw/icons/default/menuHamburguer.svg +0 -5
- package/dist/collection/assets-raw/icons/default/menuKebab.svg +0 -5
- package/dist/collection/assets-raw/icons/default/menuMeatballs.svg +0 -5
- package/dist/collection/assets-raw/icons/default/mic.svg +0 -5
- package/dist/collection/assets-raw/icons/default/micOff.svg +0 -6
- package/dist/collection/assets-raw/icons/default/minus.svg +0 -3
- package/dist/collection/assets-raw/icons/default/minusCircle.svg +0 -4
- package/dist/collection/assets-raw/icons/default/minusSquare.svg +0 -4
- package/dist/collection/assets-raw/icons/default/mobile.svg +0 -4
- package/dist/collection/assets-raw/icons/default/news.svg +0 -8
- package/dist/collection/assets-raw/icons/default/notification.svg +0 -6
- package/dist/collection/assets-raw/icons/default/npsDeslike.svg +0 -6
- package/dist/collection/assets-raw/icons/default/npsHate.svg +0 -6
- package/dist/collection/assets-raw/icons/default/npsLike.svg +0 -6
- package/dist/collection/assets-raw/icons/default/npsLove.svg +0 -6
- package/dist/collection/assets-raw/icons/default/npsNeutral.svg +0 -6
- package/dist/collection/assets-raw/icons/default/order.svg +0 -6
- package/dist/collection/assets-raw/icons/default/partner.svg +0 -5
- package/dist/collection/assets-raw/icons/default/phone.svg +0 -5
- package/dist/collection/assets-raw/icons/default/play.svg +0 -4
- package/dist/collection/assets-raw/icons/default/plus.svg +0 -4
- package/dist/collection/assets-raw/icons/default/plusCircle.svg +0 -5
- package/dist/collection/assets-raw/icons/default/plusSquare.svg +0 -5
- package/dist/collection/assets-raw/icons/default/print.svg +0 -7
- package/dist/collection/assets-raw/icons/default/profile.svg +0 -4
- package/dist/collection/assets-raw/icons/default/profile2.svg +0 -4
- package/dist/collection/assets-raw/icons/default/questionCircle.svg +0 -4
- package/dist/collection/assets-raw/icons/default/questionSquare.svg +0 -4
- package/dist/collection/assets-raw/icons/default/range.svg +0 -5
- package/dist/collection/assets-raw/icons/default/reload.svg +0 -4
- package/dist/collection/assets-raw/icons/default/ribbon.svg +0 -4
- package/dist/collection/assets-raw/icons/default/right.svg +0 -3
- package/dist/collection/assets-raw/icons/default/schedule.svg +0 -9
- package/dist/collection/assets-raw/icons/default/scheduleHistorico.svg +0 -9
- package/dist/collection/assets-raw/icons/default/search.svg +0 -4
- package/dist/collection/assets-raw/icons/default/secure.svg +0 -6
- package/dist/collection/assets-raw/icons/default/share.svg +0 -7
- package/dist/collection/assets-raw/icons/default/sound.svg +0 -5
- package/dist/collection/assets-raw/icons/default/soundOff.svg +0 -4
- package/dist/collection/assets-raw/icons/default/subItem.svg +0 -4
- package/dist/collection/assets-raw/icons/default/target.svg +0 -8
- package/dist/collection/assets-raw/icons/default/team.svg +0 -6
- package/dist/collection/assets-raw/icons/default/twitter.svg +0 -3
- package/dist/collection/assets-raw/icons/default/unLink.svg +0 -10
- package/dist/collection/assets-raw/icons/default/unSecure.svg +0 -6
- package/dist/collection/assets-raw/icons/default/unity.svg +0 -13
- package/dist/collection/assets-raw/icons/default/unlike.svg +0 -4
- package/dist/collection/assets-raw/icons/default/up.svg +0 -3
- package/dist/collection/assets-raw/icons/default/upload.svg +0 -3
- package/dist/collection/assets-raw/icons/default/verticalList.svg +0 -4
- package/dist/collection/assets-raw/icons/default/viewFalse.svg +0 -5
- package/dist/collection/assets-raw/icons/default/viewTrue.svg +0 -4
- package/dist/collection/assets-raw/icons/default/weight.svg +0 -5
- package/dist/collection/assets-raw/icons/default/whatsapp.svg +0 -4
- package/dist/collection/assets-raw/icons/default/wifi.svg +0 -6
- package/dist/collection/assets-raw/icons/default/wifiOff.svg +0 -7
- package/dist/collection/assets-raw/icons/default/youtube.svg +0 -4
- package/dist/collection/assets-raw/icons/default/zoomIn.svg +0 -6
- package/dist/collection/assets-raw/icons/default/zoomOut.svg +0 -5
- package/dist/collection/collection-manifest.json +0 -22
- package/dist/collection/components/buttons/cura-button/cura-button.css +0 -185
- package/dist/collection/components/buttons/cura-button/cura-button.js +0 -308
- package/dist/collection/components/buttons/cura-button/cura-button.js.map +0 -1
- package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.css +0 -220
- package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.js +0 -308
- package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.js.map +0 -1
- package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.css +0 -204
- package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.js +0 -308
- package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.js.map +0 -1
- package/dist/collection/components/cura-icon/cura-icon.css +0 -12
- package/dist/collection/components/cura-icon/cura-icon.js +0 -162
- package/dist/collection/components/cura-icon/cura-icon.js.map +0 -1
- package/dist/collection/components/cura-icons-view/cura-icons-view.css +0 -68
- package/dist/collection/components/cura-icons-view/cura-icons-view.js +0 -33
- package/dist/collection/components/cura-icons-view/cura-icons-view.js.map +0 -1
- package/dist/collection/components/cura-page-template/cura-page-template.css +0 -105
- package/dist/collection/components/cura-page-template/cura-page-template.js +0 -55
- package/dist/collection/components/cura-page-template/cura-page-template.js.map +0 -1
- package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.css +0 -33
- package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.js +0 -77
- package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.js.map +0 -1
- package/dist/collection/components/text/cura-display/cura-display.css +0 -84
- package/dist/collection/components/text/cura-display/cura-display.js +0 -146
- package/dist/collection/components/text/cura-display/cura-display.js.map +0 -1
- package/dist/collection/components/text/cura-heading/cura-heading.css +0 -92
- package/dist/collection/components/text/cura-heading/cura-heading.js +0 -168
- package/dist/collection/components/text/cura-heading/cura-heading.js.map +0 -1
- package/dist/collection/components/text/cura-paragraph/cura-paragraph.css +0 -115
- package/dist/collection/components/text/cura-paragraph/cura-paragraph.js +0 -150
- package/dist/collection/components/text/cura-paragraph/cura-paragraph.js.map +0 -1
- package/dist/collection/index.js +0 -2
- package/dist/collection/index.js.map +0 -1
- package/dist/collection/rededor-cura-start.js +0 -10
- package/dist/collection/rededor-cura-start.js.map +0 -1
- package/dist/collection/utils/utils.js +0 -4
- package/dist/collection/utils/utils.js.map +0 -1
- package/dist/collection/utils/utils.spec.js +0 -16
- package/dist/collection/utils/utils.spec.js.map +0 -1
- package/dist/components/cura-button-outline.d.ts +0 -11
- package/dist/components/cura-button-outline.js +0 -123
- package/dist/components/cura-button-outline.js.map +0 -1
- package/dist/components/cura-button-transparent.d.ts +0 -11
- package/dist/components/cura-button-transparent.js +0 -123
- package/dist/components/cura-button-transparent.js.map +0 -1
- package/dist/components/cura-button.d.ts +0 -11
- package/dist/components/cura-button.js +0 -123
- package/dist/components/cura-button.js.map +0 -1
- package/dist/components/cura-display.d.ts +0 -11
- package/dist/components/cura-display.js +0 -89
- package/dist/components/cura-display.js.map +0 -1
- package/dist/components/cura-heading.d.ts +0 -11
- package/dist/components/cura-heading.js +0 -94
- package/dist/components/cura-heading.js.map +0 -1
- package/dist/components/cura-icon.d.ts +0 -11
- package/dist/components/cura-icon.js +0 -8
- package/dist/components/cura-icon.js.map +0 -1
- package/dist/components/cura-icon2.js +0 -79
- package/dist/components/cura-icon2.js.map +0 -1
- package/dist/components/cura-icons-view.d.ts +0 -11
- package/dist/components/cura-icons-view.js +0 -51
- package/dist/components/cura-icons-view.js.map +0 -1
- package/dist/components/cura-loader-circle.d.ts +0 -11
- package/dist/components/cura-loader-circle.js +0 -8
- package/dist/components/cura-loader-circle.js.map +0 -1
- package/dist/components/cura-loader-circle2.js +0 -51
- package/dist/components/cura-loader-circle2.js.map +0 -1
- package/dist/components/cura-page-template.d.ts +0 -11
- package/dist/components/cura-page-template.js +0 -49
- package/dist/components/cura-page-template.js.map +0 -1
- package/dist/components/cura-paragraph.d.ts +0 -11
- package/dist/components/cura-paragraph.js +0 -87
- package/dist/components/cura-paragraph.js.map +0 -1
- package/dist/components/index.d.ts +0 -39
- package/dist/components/index.js +0 -511
- package/dist/components/index.js.map +0 -1
- package/dist/cura/cura.esm.js +0 -2
- package/dist/cura/cura.esm.js.map +0 -1
- package/dist/cura/cura.js +0 -133
- package/dist/cura/index.esm.js +0 -2
- package/dist/cura/index.esm.js.map +0 -1
- package/dist/cura/p-118112e5.system.js +0 -14
- package/dist/cura/p-118112e5.system.js.map +0 -1
- package/dist/cura/p-183305c3.js +0 -2
- package/dist/cura/p-183305c3.js.map +0 -1
- package/dist/cura/p-2b6e4727.entry.js +0 -2
- package/dist/cura/p-2b6e4727.entry.js.map +0 -1
- package/dist/cura/p-3f6aaefc.system.js +0 -2
- package/dist/cura/p-3f6aaefc.system.js.map +0 -1
- package/dist/cura/p-50ea2036.system.js +0 -2
- package/dist/cura/p-50ea2036.system.js.map +0 -1
- package/dist/cura/p-8e62c529.system.entry.js +0 -2
- package/dist/cura/p-8e62c529.system.entry.js.map +0 -1
- package/dist/cura/p-a84ae34f.system.js +0 -3
- package/dist/cura/p-a84ae34f.system.js.map +0 -1
- package/dist/cura/p-aa9ad33b.system.js +0 -2
- package/dist/cura/p-aa9ad33b.system.js.map +0 -1
- package/dist/cura/p-b1ae12e5.system.js +0 -2
- package/dist/cura/p-b1ae12e5.system.js.map +0 -1
- package/dist/cura/p-beab48cd.js +0 -13
- package/dist/cura/p-beab48cd.js.map +0 -1
- package/dist/cura/p-cbc91ac5.js +0 -3
- package/dist/cura/p-cbc91ac5.js.map +0 -1
- package/dist/cura/p-deafb1b5.js +0 -2
- package/dist/cura/p-deafb1b5.js.map +0 -1
- package/dist/esm/app-globals-66a65edd.js +0 -477
- package/dist/esm/app-globals-66a65edd.js.map +0 -1
- package/dist/esm/css-shim-d13f0738.js +0 -6
- package/dist/esm/css-shim-d13f0738.js.map +0 -1
- package/dist/esm/cura-button_10.entry.js +0 -536
- package/dist/esm/cura-button_10.entry.js.map +0 -1
- package/dist/esm/cura.js +0 -31
- package/dist/esm/cura.js.map +0 -1
- package/dist/esm/index-92c824be.js +0 -1964
- package/dist/esm/index-92c824be.js.map +0 -1
- package/dist/esm/index.js +0 -3
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/loader.js +0 -38
- package/dist/esm/loader.js.map +0 -1
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/esm/shadow-css-07b0c8c8.js +0 -389
- package/dist/esm/shadow-css-07b0c8c8.js.map +0 -1
- package/dist/esm-es5/app-globals-66a65edd.js +0 -2
- package/dist/esm-es5/app-globals-66a65edd.js.map +0 -1
- package/dist/esm-es5/css-shim-d13f0738.js +0 -2
- package/dist/esm-es5/css-shim-d13f0738.js.map +0 -1
- package/dist/esm-es5/cura-button_10.entry.js +0 -2
- package/dist/esm-es5/cura-button_10.entry.js.map +0 -1
- package/dist/esm-es5/cura.js +0 -2
- package/dist/esm-es5/cura.js.map +0 -1
- package/dist/esm-es5/index-92c824be.js +0 -3
- package/dist/esm-es5/index-92c824be.js.map +0 -1
- package/dist/esm-es5/index.js +0 -2
- package/dist/esm-es5/index.js.map +0 -1
- package/dist/esm-es5/loader.js +0 -2
- package/dist/esm-es5/loader.js.map +0 -1
- package/dist/esm-es5/shadow-css-07b0c8c8.js +0 -13
- package/dist/esm-es5/shadow-css-07b0c8c8.js.map +0 -1
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/loader/cdn.js +0 -3
- package/dist/loader/index.cjs.js +0 -3
- package/dist/loader/index.d.ts +0 -21
- package/dist/loader/index.es2017.js +0 -3
- package/dist/loader/index.js +0 -4
- package/dist/loader/package.json +0 -11
- package/dist/types/api/cura-api.d.ts +0 -6
- package/dist/types/api/cura-api.type.d.ts +0 -65
- package/dist/types/api/modules/cura-theme-breakpoints-module.d.ts +0 -5
- package/dist/types/api/modules/cura-theme-colors-module.d.ts +0 -48
- package/dist/types/api/modules/cura-theme-fonts-module.d.ts +0 -24
- package/dist/types/api/modules/cura-theme-module.d.ts +0 -32
- package/dist/types/api/modules/cura-theme-spacing-module.d.ts +0 -6
- package/dist/types/api/theme-presets/static.d.ts +0 -69
- package/dist/types/api/theme-presets/theme-default.d.ts +0 -46
- package/dist/types/api/theme-presets/theme-maternity.d.ts +0 -43
- package/dist/types/api/theme-presets/theme-oncology.d.ts +0 -50
- package/dist/types/api/theme-presets/theme-presets.d.ts +0 -138
- package/dist/types/assets/icons/iconset-default-list.d.ts +0 -2
- package/dist/types/components/buttons/cura-button/cura-button.d.ts +0 -61
- package/dist/types/components/buttons/cura-button-outline/cura-button-outline.d.ts +0 -61
- package/dist/types/components/buttons/cura-button-transparent/cura-button-transparent.d.ts +0 -61
- package/dist/types/components/cura-icon/cura-icon.d.ts +0 -56
- package/dist/types/components/cura-icons-view/cura-icons-view.d.ts +0 -7
- package/dist/types/components/cura-page-template/cura-page-template.d.ts +0 -8
- package/dist/types/components/loaders/cura-loader-circle/cura-loader-circle.d.ts +0 -23
- package/dist/types/components/text/cura-display/cura-display.d.ts +0 -38
- package/dist/types/components/text/cura-heading/cura-heading.d.ts +0 -43
- package/dist/types/components/text/cura-paragraph/cura-paragraph.d.ts +0 -37
- package/dist/types/components.d.ts +0 -574
- package/dist/types/index.d.ts +0 -1
- package/dist/types/rededor-cura-start.d.ts +0 -9
- package/dist/types/stencil-public-runtime.d.ts +0 -1638
- package/dist/types/utils/utils.d.ts +0 -1
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
import { Host, h } from '@stencil/core';
|
|
2
|
-
export class CuraDisplay {
|
|
3
|
-
constructor() {
|
|
4
|
-
this.level = 1;
|
|
5
|
-
this.size = 'regular';
|
|
6
|
-
this.inverted = false;
|
|
7
|
-
this.spotColor = 'primary';
|
|
8
|
-
}
|
|
9
|
-
connectedCallback() {
|
|
10
|
-
this.weights = window.CuraAPI.theme.fonts.getWeights();
|
|
11
|
-
this.setFontProperties();
|
|
12
|
-
this.setColors();
|
|
13
|
-
}
|
|
14
|
-
getClasses() {
|
|
15
|
-
const classes = {};
|
|
16
|
-
classes[this.size.toLowerCase()] = true;
|
|
17
|
-
return classes;
|
|
18
|
-
}
|
|
19
|
-
setFontProperties() {
|
|
20
|
-
this.styles = {
|
|
21
|
-
'--font-family': window.CuraAPI.theme.fonts.getFamily('display'),
|
|
22
|
-
'--font-size': window.CuraAPI.theme.fonts.getSize(),
|
|
23
|
-
'--font-weight-bold': this.weights.bold,
|
|
24
|
-
'--font-weight-black': this.weights.black
|
|
25
|
-
};
|
|
26
|
-
this.setHostProperty('--font-size', window.CuraAPI.theme.fonts.getSize());
|
|
27
|
-
this.setHostProperty('--block-margin', '0.5em');
|
|
28
|
-
}
|
|
29
|
-
setColors() {
|
|
30
|
-
const fontColor = this.inverted
|
|
31
|
-
? window.CuraAPI.theme.colors.getColor('neutral-white')
|
|
32
|
-
: window.CuraAPI.theme.fonts.getColor();
|
|
33
|
-
this.styles['--color-body'] = fontColor || window.CuraAPI.theme.colors.getColor('neutral-darker');
|
|
34
|
-
this.styles['--color-link'] = this.inverted
|
|
35
|
-
? window.CuraAPI.theme.colors.getColor(`${this.spotColor}-lighter`)
|
|
36
|
-
: window.CuraAPI.theme.colors.getColor(`${this.spotColor}-dark`);
|
|
37
|
-
}
|
|
38
|
-
setHostProperty(prop, value) {
|
|
39
|
-
this.host.style.setProperty(prop, value);
|
|
40
|
-
}
|
|
41
|
-
getHeadingTag() {
|
|
42
|
-
const tags = {
|
|
43
|
-
'1': h("h1", { style: this.styles, class: this.getClasses() }, h("slot", null)),
|
|
44
|
-
'2': h("h2", { style: this.styles, class: this.getClasses() }, h("slot", null)),
|
|
45
|
-
'3': h("h3", { style: this.styles, class: this.getClasses() }, h("slot", null)),
|
|
46
|
-
'4': h("h4", { style: this.styles, class: this.getClasses() }, h("slot", null)),
|
|
47
|
-
'5': h("h5", { style: this.styles, class: this.getClasses() }, h("slot", null)),
|
|
48
|
-
'6': h("h6", { style: this.styles, class: this.getClasses() }, h("slot", null)),
|
|
49
|
-
'default': h("h1", { style: this.styles, class: this.getClasses() }, h("slot", null))
|
|
50
|
-
};
|
|
51
|
-
return tags[`${this.level}`] || tags['default'];
|
|
52
|
-
}
|
|
53
|
-
render() {
|
|
54
|
-
return (h(Host, null, this.getHeadingTag()));
|
|
55
|
-
}
|
|
56
|
-
static get is() { return "cura-display"; }
|
|
57
|
-
static get encapsulation() { return "shadow"; }
|
|
58
|
-
static get originalStyleUrls() {
|
|
59
|
-
return {
|
|
60
|
-
"$": ["cura-display.scss"]
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
static get styleUrls() {
|
|
64
|
-
return {
|
|
65
|
-
"$": ["cura-display.css"]
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
static get properties() {
|
|
69
|
-
return {
|
|
70
|
-
"level": {
|
|
71
|
-
"type": "number",
|
|
72
|
-
"mutable": false,
|
|
73
|
-
"complexType": {
|
|
74
|
-
"original": "number",
|
|
75
|
-
"resolved": "number",
|
|
76
|
-
"references": {}
|
|
77
|
-
},
|
|
78
|
-
"required": false,
|
|
79
|
-
"optional": false,
|
|
80
|
-
"docs": {
|
|
81
|
-
"tags": [],
|
|
82
|
-
"text": "Heading level for semantics.\nValues: 1(default)-6."
|
|
83
|
-
},
|
|
84
|
-
"attribute": "level",
|
|
85
|
-
"reflect": true,
|
|
86
|
-
"defaultValue": "1"
|
|
87
|
-
},
|
|
88
|
-
"size": {
|
|
89
|
-
"type": "string",
|
|
90
|
-
"mutable": false,
|
|
91
|
-
"complexType": {
|
|
92
|
-
"original": "string",
|
|
93
|
-
"resolved": "string",
|
|
94
|
-
"references": {}
|
|
95
|
-
},
|
|
96
|
-
"required": false,
|
|
97
|
-
"optional": false,
|
|
98
|
-
"docs": {
|
|
99
|
-
"tags": [],
|
|
100
|
-
"text": "Heading style size.\nValues: small | regular(default) | large."
|
|
101
|
-
},
|
|
102
|
-
"attribute": "size",
|
|
103
|
-
"reflect": true,
|
|
104
|
-
"defaultValue": "'regular'"
|
|
105
|
-
},
|
|
106
|
-
"inverted": {
|
|
107
|
-
"type": "boolean",
|
|
108
|
-
"mutable": false,
|
|
109
|
-
"complexType": {
|
|
110
|
-
"original": "boolean",
|
|
111
|
-
"resolved": "boolean",
|
|
112
|
-
"references": {}
|
|
113
|
-
},
|
|
114
|
-
"required": false,
|
|
115
|
-
"optional": false,
|
|
116
|
-
"docs": {
|
|
117
|
-
"tags": [],
|
|
118
|
-
"text": "Apply light color to text in dark background.\nValues: boolean."
|
|
119
|
-
},
|
|
120
|
-
"attribute": "inverted",
|
|
121
|
-
"reflect": true,
|
|
122
|
-
"defaultValue": "false"
|
|
123
|
-
},
|
|
124
|
-
"spotColor": {
|
|
125
|
-
"type": "string",
|
|
126
|
-
"mutable": false,
|
|
127
|
-
"complexType": {
|
|
128
|
-
"original": "string",
|
|
129
|
-
"resolved": "string",
|
|
130
|
-
"references": {}
|
|
131
|
-
},
|
|
132
|
-
"required": false,
|
|
133
|
-
"optional": false,
|
|
134
|
-
"docs": {
|
|
135
|
-
"tags": [],
|
|
136
|
-
"text": "Apply base system color to elements like <a> and <abbr>.\nValues: String primary(default) | secondary | accent | neutral | success | error | warning | info."
|
|
137
|
-
},
|
|
138
|
-
"attribute": "spot-color",
|
|
139
|
-
"reflect": true,
|
|
140
|
-
"defaultValue": "'primary'"
|
|
141
|
-
}
|
|
142
|
-
};
|
|
143
|
-
}
|
|
144
|
-
static get elementRef() { return "host"; }
|
|
145
|
-
}
|
|
146
|
-
//# sourceMappingURL=cura-display.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cura-display.js","sourceRoot":"","sources":["../../../../src/components/text/cura-display/cura-display.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAOlE,MAAM,OAAO,WAAW;;iBAMS,CAAC;gBAKF,SAAS;oBAKL,KAAK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E,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE;QAAE,eAAa,CAAK;KAChF,CAAC;IACF,OAAO,IAAI,CAAC,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,IAAI,IAAI,CAAC,SAAS,CAAC,CAAC;EAClD,CAAC;EAED,MAAM;IACJ,OAAO,CACL,EAAC,IAAI,QACD,IAAI,CAAC,aAAa,EAAE,CACjB,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEF","sourcesContent":["import { Component, Host, h, Element, Prop } from '@stencil/core';\n\n@Component({\n tag: 'cura-display',\n styleUrl: 'cura-display.scss',\n shadow: true,\n})\nexport class CuraDisplay {\n\n /**\n * Heading level for semantics.\n * Values: 1(default)-6.\n */\n @Prop({reflect: true}) level = 1;\n /**\n * Heading style size.\n * Values: small | regular(default) | large.\n */\n @Prop({reflect: true}) size = 'regular';\n /**\n * Apply light color to text in dark background.\n * Values: boolean.\n */\n @Prop({reflect: true}) inverted = false;\n /**\n * Apply base system color to elements like <a> and <abbr>.\n * Values: String primary(default) | secondary | accent | neutral | success | error | warning | info.\n */\n @Prop({reflect: true}) spotColor = 'primary';\n \n /**\n * Host element <cura-heading>\n */\n @Element() host: HTMLElement;\n \n /**\n * Internal Props\n */\n weights: any;\n styles: any;\n\n connectedCallback() {\n this.weights = window.CuraAPI.theme.fonts.getWeights();\n this.setFontProperties();\n this.setColors();\n }\n\n getClasses() {\n const classes = {};\n classes[this.size.toLowerCase()] = true;\n return classes;\n }\n\n setFontProperties() {\n this.styles = {\n '--font-family': window.CuraAPI.theme.fonts.getFamily('display'),\n '--font-size': window.CuraAPI.theme.fonts.getSize(),\n '--font-weight-bold': this.weights.bold,\n '--font-weight-black': this.weights.black\n }\n this.setHostProperty('--font-size', window.CuraAPI.theme.fonts.getSize());\n this.setHostProperty('--block-margin', '0.5em');\n }\n\n setColors() {\n const fontColor = this.inverted \n ? window.CuraAPI.theme.colors.getColor('neutral-white') \n : window.CuraAPI.theme.fonts.getColor();\n this.styles['--color-body'] = fontColor || window.CuraAPI.theme.colors.getColor('neutral-darker');\n this.styles['--color-link'] = this.inverted \n ? window.CuraAPI.theme.colors.getColor(`${this.spotColor}-lighter`)\n : window.CuraAPI.theme.colors.getColor(`${this.spotColor}-dark`);\n }\n\n setHostProperty(prop: string, value: string) {\n this.host.style.setProperty(prop, value);\n }\n\n getHeadingTag() {\n const tags = {\n '1': <h1 style={this.styles} class={this.getClasses()}><slot></slot></h1>,\n '2': <h2 style={this.styles} class={this.getClasses()}><slot></slot></h2>,\n '3': <h3 style={this.styles} class={this.getClasses()}><slot></slot></h3>,\n '4': <h4 style={this.styles} class={this.getClasses()}><slot></slot></h4>,\n '5': <h5 style={this.styles} class={this.getClasses()}><slot></slot></h5>,\n '6': <h6 style={this.styles} class={this.getClasses()}><slot></slot></h6>,\n 'default': <h1 style={this.styles} class={this.getClasses()}><slot></slot></h1>\n };\n return tags[`${this.level}`] || tags['default'];\n }\n\n render() {\n return (\n <Host>\n { this.getHeadingTag() }\n </Host>\n );\n }\n\n}\n"]}
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
/* Breakpoints variables */
|
|
2
|
-
/**
|
|
3
|
-
* Responsive media for mobile (small) only.
|
|
4
|
-
* Use: @include mobile-only() { ... }
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* Responsive media for medium only.
|
|
8
|
-
* Use: @include medium-only() { ... }
|
|
9
|
-
*/
|
|
10
|
-
/**
|
|
11
|
-
* Responsive media for large only.
|
|
12
|
-
* Use: @include large-only() { ... }
|
|
13
|
-
*/
|
|
14
|
-
/**
|
|
15
|
-
* Responsive media for large and up.
|
|
16
|
-
* Use: @include large-up() { ... }
|
|
17
|
-
*/
|
|
18
|
-
/**
|
|
19
|
-
* Responsive media for xlarge only.
|
|
20
|
-
* Use: @include xlarge-only() { ... }
|
|
21
|
-
*/
|
|
22
|
-
:host {
|
|
23
|
-
display: block;
|
|
24
|
-
font-size: var(--font-size);
|
|
25
|
-
}
|
|
26
|
-
:host h1, :host h2, :host h3, :host h4, :host h5, :host h6 {
|
|
27
|
-
font-family: var(--font-family);
|
|
28
|
-
font-size: 1.71em;
|
|
29
|
-
font-weight: var(--font-weight-regular);
|
|
30
|
-
color: var(--color-body);
|
|
31
|
-
line-height: 130%;
|
|
32
|
-
letter-spacing: 0%;
|
|
33
|
-
margin-block-start: var(--block-margin);
|
|
34
|
-
margin-block-end: var(--block-margin);
|
|
35
|
-
}
|
|
36
|
-
:host h1.bold-weight, :host h2.bold-weight, :host h3.bold-weight, :host h4.bold-weight, :host h5.bold-weight, :host h6.bold-weight {
|
|
37
|
-
font-weight: var(--font-weight-medium);
|
|
38
|
-
}
|
|
39
|
-
:host h1.large, :host h2.large, :host h3.large, :host h4.large, :host h5.large, :host h6.large {
|
|
40
|
-
font-size: 2.07em;
|
|
41
|
-
letter-spacing: -2%;
|
|
42
|
-
}
|
|
43
|
-
:host h1.small, :host h2.small, :host h3.small, :host h4.small, :host h5.small, :host h6.small {
|
|
44
|
-
font-size: 1.214em;
|
|
45
|
-
line-height: 150%;
|
|
46
|
-
letter-spacing: 0%;
|
|
47
|
-
}
|
|
48
|
-
:host h1.small.bold-weight, :host h2.small.bold-weight, :host h3.small.bold-weight, :host h4.small.bold-weight, :host h5.small.bold-weight, :host h6.small.bold-weight {
|
|
49
|
-
font-weight: var(--font-weight-bold);
|
|
50
|
-
}
|
|
51
|
-
@media (min-width: 768px) and (max-width: 1365px) {
|
|
52
|
-
:host h1, :host h2, :host h3, :host h4, :host h5, :host h6 {
|
|
53
|
-
font-size: 2em;
|
|
54
|
-
}
|
|
55
|
-
:host h1.large, :host h2.large, :host h3.large, :host h4.large, :host h5.large, :host h6.large {
|
|
56
|
-
font-size: 2.357em;
|
|
57
|
-
}
|
|
58
|
-
:host h1.small, :host h2.small, :host h3.small, :host h4.small, :host h5.small, :host h6.small {
|
|
59
|
-
font-size: 1.357em;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
@media (min-width: 1366px) {
|
|
63
|
-
:host h1, :host h2, :host h3, :host h4, :host h5, :host h6 {
|
|
64
|
-
font-size: 2.5em;
|
|
65
|
-
line-height: 135%;
|
|
66
|
-
letter-spacing: -2%;
|
|
67
|
-
}
|
|
68
|
-
:host h1.large, :host h2.large, :host h3.large, :host h4.large, :host h5.large, :host h6.large {
|
|
69
|
-
font-size: 2.92em;
|
|
70
|
-
}
|
|
71
|
-
:host h1.small, :host h2.small, :host h3.small, :host h4.small, :host h5.small, :host h6.small {
|
|
72
|
-
font-size: 1.71em;
|
|
73
|
-
line-height: 160%;
|
|
74
|
-
letter-spacing: 0%;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
:host ::slotted(b), :host ::slotted(strong) {
|
|
78
|
-
font-weight: var(--font-weight-bold);
|
|
79
|
-
}
|
|
80
|
-
:host ::slotted(a) {
|
|
81
|
-
font-weight: var(--font-weight-bold);
|
|
82
|
-
color: var(--color-link);
|
|
83
|
-
text-decoration: none;
|
|
84
|
-
text-underline-offset: 10%;
|
|
85
|
-
cursor: pointer;
|
|
86
|
-
}
|
|
87
|
-
:host ::slotted(abbr) {
|
|
88
|
-
color: var(--color-link);
|
|
89
|
-
text-decoration: underline dashed 1px var(--color-link);
|
|
90
|
-
text-underline-offset: 10%;
|
|
91
|
-
cursor: default;
|
|
92
|
-
}
|
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
import { Host, h } from '@stencil/core';
|
|
2
|
-
export class CuraHeading {
|
|
3
|
-
constructor() {
|
|
4
|
-
this.level = 1;
|
|
5
|
-
this.size = 'regular';
|
|
6
|
-
this.weight = 'regular';
|
|
7
|
-
this.inverted = false;
|
|
8
|
-
this.spotColor = 'primary';
|
|
9
|
-
}
|
|
10
|
-
connectedCallback() {
|
|
11
|
-
this.weights = window.CuraAPI.theme.fonts.getWeights();
|
|
12
|
-
this.setFontProperties();
|
|
13
|
-
this.setColors();
|
|
14
|
-
}
|
|
15
|
-
getClasses() {
|
|
16
|
-
const classes = {};
|
|
17
|
-
classes[this.size.toLowerCase()] = true;
|
|
18
|
-
classes[`${this.weight.toLowerCase()}-weight`] = true;
|
|
19
|
-
return classes;
|
|
20
|
-
}
|
|
21
|
-
setFontProperties() {
|
|
22
|
-
this.styles = {
|
|
23
|
-
'--font-family': window.CuraAPI.theme.fonts.getFamily('heading'),
|
|
24
|
-
'--font-size': window.CuraAPI.theme.fonts.getSize(),
|
|
25
|
-
'--font-weight-regular': this.weights.regular,
|
|
26
|
-
'--font-weight-medium': this.weights.medium,
|
|
27
|
-
'--font-weight-bold': this.weights.bold,
|
|
28
|
-
'--font-weight-black': this.weights.black
|
|
29
|
-
};
|
|
30
|
-
this.setHostProperty('--font-size', window.CuraAPI.theme.fonts.getSize());
|
|
31
|
-
this.setHostProperty('--block-margin', '0.5em');
|
|
32
|
-
}
|
|
33
|
-
setColors() {
|
|
34
|
-
const fontColor = this.inverted
|
|
35
|
-
? window.CuraAPI.theme.colors.getColor('neutral-white')
|
|
36
|
-
: window.CuraAPI.theme.fonts.getColor();
|
|
37
|
-
this.styles['--color-body'] = fontColor || window.CuraAPI.theme.colors.getColor('neutral-darker');
|
|
38
|
-
this.styles['--color-link'] = this.inverted
|
|
39
|
-
? window.CuraAPI.theme.colors.getColor(`${this.spotColor}-lighter`)
|
|
40
|
-
: window.CuraAPI.theme.colors.getColor(`${this.spotColor}-dark`);
|
|
41
|
-
}
|
|
42
|
-
setHostProperty(prop, value) {
|
|
43
|
-
this.host.style.setProperty(prop, value);
|
|
44
|
-
}
|
|
45
|
-
getHeadingTag() {
|
|
46
|
-
const tags = {
|
|
47
|
-
'1': h("h1", { style: this.styles, class: this.getClasses() }, h("slot", null)),
|
|
48
|
-
'2': h("h2", { style: this.styles, class: this.getClasses() }, h("slot", null)),
|
|
49
|
-
'3': h("h3", { style: this.styles, class: this.getClasses() }, h("slot", null)),
|
|
50
|
-
'4': h("h4", { style: this.styles, class: this.getClasses() }, h("slot", null)),
|
|
51
|
-
'5': h("h5", { style: this.styles, class: this.getClasses() }, h("slot", null)),
|
|
52
|
-
'6': h("h6", { style: this.styles, class: this.getClasses() }, h("slot", null)),
|
|
53
|
-
'default': h("h1", { style: this.styles, class: this.getClasses() }, h("slot", null))
|
|
54
|
-
};
|
|
55
|
-
return tags[`${this.level}`] || tags['default'];
|
|
56
|
-
}
|
|
57
|
-
render() {
|
|
58
|
-
return (h(Host, null, this.getHeadingTag()));
|
|
59
|
-
}
|
|
60
|
-
static get is() { return "cura-heading"; }
|
|
61
|
-
static get encapsulation() { return "shadow"; }
|
|
62
|
-
static get originalStyleUrls() {
|
|
63
|
-
return {
|
|
64
|
-
"$": ["cura-heading.scss"]
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
static get styleUrls() {
|
|
68
|
-
return {
|
|
69
|
-
"$": ["cura-heading.css"]
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
static get properties() {
|
|
73
|
-
return {
|
|
74
|
-
"level": {
|
|
75
|
-
"type": "number",
|
|
76
|
-
"mutable": false,
|
|
77
|
-
"complexType": {
|
|
78
|
-
"original": "number",
|
|
79
|
-
"resolved": "number",
|
|
80
|
-
"references": {}
|
|
81
|
-
},
|
|
82
|
-
"required": false,
|
|
83
|
-
"optional": false,
|
|
84
|
-
"docs": {
|
|
85
|
-
"tags": [],
|
|
86
|
-
"text": "Heading level for semantics.\nValues: 1(default)-6."
|
|
87
|
-
},
|
|
88
|
-
"attribute": "level",
|
|
89
|
-
"reflect": true,
|
|
90
|
-
"defaultValue": "1"
|
|
91
|
-
},
|
|
92
|
-
"size": {
|
|
93
|
-
"type": "string",
|
|
94
|
-
"mutable": false,
|
|
95
|
-
"complexType": {
|
|
96
|
-
"original": "string",
|
|
97
|
-
"resolved": "string",
|
|
98
|
-
"references": {}
|
|
99
|
-
},
|
|
100
|
-
"required": false,
|
|
101
|
-
"optional": false,
|
|
102
|
-
"docs": {
|
|
103
|
-
"tags": [],
|
|
104
|
-
"text": "Heading style size.\nValues: small | regular(default) | large."
|
|
105
|
-
},
|
|
106
|
-
"attribute": "size",
|
|
107
|
-
"reflect": true,
|
|
108
|
-
"defaultValue": "'regular'"
|
|
109
|
-
},
|
|
110
|
-
"weight": {
|
|
111
|
-
"type": "string",
|
|
112
|
-
"mutable": false,
|
|
113
|
-
"complexType": {
|
|
114
|
-
"original": "string",
|
|
115
|
-
"resolved": "string",
|
|
116
|
-
"references": {}
|
|
117
|
-
},
|
|
118
|
-
"required": false,
|
|
119
|
-
"optional": false,
|
|
120
|
-
"docs": {
|
|
121
|
-
"tags": [],
|
|
122
|
-
"text": "Heading font weight.\nValues: regular(default) | bold."
|
|
123
|
-
},
|
|
124
|
-
"attribute": "weight",
|
|
125
|
-
"reflect": true,
|
|
126
|
-
"defaultValue": "'regular'"
|
|
127
|
-
},
|
|
128
|
-
"inverted": {
|
|
129
|
-
"type": "boolean",
|
|
130
|
-
"mutable": false,
|
|
131
|
-
"complexType": {
|
|
132
|
-
"original": "boolean",
|
|
133
|
-
"resolved": "boolean",
|
|
134
|
-
"references": {}
|
|
135
|
-
},
|
|
136
|
-
"required": false,
|
|
137
|
-
"optional": false,
|
|
138
|
-
"docs": {
|
|
139
|
-
"tags": [],
|
|
140
|
-
"text": "Apply light color to text in dark background.\nValues: boolean."
|
|
141
|
-
},
|
|
142
|
-
"attribute": "inverted",
|
|
143
|
-
"reflect": true,
|
|
144
|
-
"defaultValue": "false"
|
|
145
|
-
},
|
|
146
|
-
"spotColor": {
|
|
147
|
-
"type": "string",
|
|
148
|
-
"mutable": false,
|
|
149
|
-
"complexType": {
|
|
150
|
-
"original": "string",
|
|
151
|
-
"resolved": "string",
|
|
152
|
-
"references": {}
|
|
153
|
-
},
|
|
154
|
-
"required": false,
|
|
155
|
-
"optional": false,
|
|
156
|
-
"docs": {
|
|
157
|
-
"tags": [],
|
|
158
|
-
"text": "Apply base system color to elements like <a> and <abbr>.\nValues: String primary(default) | secondary | accent | neutral | success | error | warning | info."
|
|
159
|
-
},
|
|
160
|
-
"attribute": "spot-color",
|
|
161
|
-
"reflect": true,
|
|
162
|
-
"defaultValue": "'primary'"
|
|
163
|
-
}
|
|
164
|
-
};
|
|
165
|
-
}
|
|
166
|
-
static get elementRef() { return "host"; }
|
|
167
|
-
}
|
|
168
|
-
//# sourceMappingURL=cura-heading.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cura-heading.js","sourceRoot":"","sources":["../../../../src/components/text/cura-heading/cura-heading.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAOlE,MAAM,OAAO,WAAW;;iBAMS,CAAC;gBAKF,SAAS;kBAKP,SAAS;oBAKP,KAAK;qBAKJ,SAAS;;EAa5C,iBAAiB;IACf,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,UAAU,EAAE,CAAC;IACvD,IAAI,CAAC,iBAAiB,EAAE,CAAC;IACzB,IAAI,CAAC,SAAS,EAAE,CAAC;EACnB,CAAC;EAED,UAAU;IACR,MAAM,OAAO,GAAG,EAAE,CAAC;IACnB,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,GAAI,IAAI,CAAC;IACzC,OAAO,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,SAAS,CAAC,GAAG,IAAI,CAAC;IACtD,OAAO,OAAO,CAAC;EACjB,CAAC;EAED,iBAAiB;IACf,IAAI,CAAC,MAAM,GAAG;MACZ,eAAe,EAAE,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,SAAS,CAAC;MAChE,aAAa,EAAE,MAAM,CAAC,OAAO,CAAC,KAAK,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element } from '@stencil/core';\n\n@Component({\n tag: 'cura-heading',\n styleUrl: 'cura-heading.scss',\n shadow: true,\n})\nexport class CuraHeading {\n\n /**\n * Heading level for semantics.\n * Values: 1(default)-6.\n */\n @Prop({reflect: true}) level = 1;\n /**\n * Heading style size.\n * Values: small | regular(default) | large.\n */\n @Prop({reflect: true}) size = 'regular';\n /**\n * Heading font weight.\n * Values: regular(default) | bold.\n */\n @Prop({reflect: true}) weight = 'regular';\n /**\n * Apply light color to text in dark background.\n * Values: boolean.\n */\n @Prop({reflect: true}) inverted = false;\n /**\n * Apply base system color to elements like <a> and <abbr>.\n * Values: String primary(default) | secondary | accent | neutral | success | error | warning | info.\n */\n @Prop({reflect: true}) spotColor = 'primary';\n\n /**\n * Host element <cura-heading>\n */\n @Element() host: HTMLElement;\n\n /**\n * Internal Props\n */\n weights: any;\n styles: any;\n\n connectedCallback() {\n this.weights = window.CuraAPI.theme.fonts.getWeights();\n this.setFontProperties();\n this.setColors();\n }\n\n getClasses() {\n const classes = {};\n classes[this.size.toLowerCase()] = true;\n classes[`${this.weight.toLowerCase()}-weight`] = true;\n return classes;\n }\n\n setFontProperties() {\n this.styles = {\n '--font-family': window.CuraAPI.theme.fonts.getFamily('heading'),\n '--font-size': window.CuraAPI.theme.fonts.getSize(),\n '--font-weight-regular': this.weights.regular,\n '--font-weight-medium': this.weights.medium,\n '--font-weight-bold': this.weights.bold,\n '--font-weight-black': this.weights.black\n }\n this.setHostProperty('--font-size', window.CuraAPI.theme.fonts.getSize());\n this.setHostProperty('--block-margin', '0.5em');\n }\n\n setColors() {\n const fontColor = this.inverted \n ? window.CuraAPI.theme.colors.getColor('neutral-white') \n : window.CuraAPI.theme.fonts.getColor();\n this.styles['--color-body'] = fontColor || window.CuraAPI.theme.colors.getColor('neutral-darker');\n this.styles['--color-link'] = this.inverted \n ? window.CuraAPI.theme.colors.getColor(`${this.spotColor}-lighter`)\n : window.CuraAPI.theme.colors.getColor(`${this.spotColor}-dark`);\n }\n\n setHostProperty(prop: string, value: string) {\n this.host.style.setProperty(prop, value);\n }\n\n getHeadingTag() {\n const tags = {\n '1': <h1 style={this.styles} class={this.getClasses()}><slot></slot></h1>,\n '2': <h2 style={this.styles} class={this.getClasses()}><slot></slot></h2>,\n '3': <h3 style={this.styles} class={this.getClasses()}><slot></slot></h3>,\n '4': <h4 style={this.styles} class={this.getClasses()}><slot></slot></h4>,\n '5': <h5 style={this.styles} class={this.getClasses()}><slot></slot></h5>,\n '6': <h6 style={this.styles} class={this.getClasses()}><slot></slot></h6>,\n 'default': <h1 style={this.styles} class={this.getClasses()}><slot></slot></h1>\n };\n return tags[`${this.level}`] || tags['default'];\n }\n\n render() {\n return (\n <Host>\n { this.getHeadingTag() }\n </Host>\n );\n }\n\n}\n"]}
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
/* Breakpoints variables */
|
|
2
|
-
/**
|
|
3
|
-
* Responsive media for mobile (small) only.
|
|
4
|
-
* Use: @include mobile-only() { ... }
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* Responsive media for medium only.
|
|
8
|
-
* Use: @include medium-only() { ... }
|
|
9
|
-
*/
|
|
10
|
-
/**
|
|
11
|
-
* Responsive media for large only.
|
|
12
|
-
* Use: @include large-only() { ... }
|
|
13
|
-
*/
|
|
14
|
-
/**
|
|
15
|
-
* Responsive media for large and up.
|
|
16
|
-
* Use: @include large-up() { ... }
|
|
17
|
-
*/
|
|
18
|
-
/**
|
|
19
|
-
* Responsive media for xlarge only.
|
|
20
|
-
* Use: @include xlarge-only() { ... }
|
|
21
|
-
*/
|
|
22
|
-
:host {
|
|
23
|
-
display: block;
|
|
24
|
-
font-size: var(--font-size);
|
|
25
|
-
}
|
|
26
|
-
:host p {
|
|
27
|
-
font-family: var(--font-family);
|
|
28
|
-
font-size: var(--font-size);
|
|
29
|
-
font-weight: var(--font-weight-regular);
|
|
30
|
-
color: var(--color-body);
|
|
31
|
-
line-height: var(--line-height);
|
|
32
|
-
/* letter-spacing: 0.02em; */
|
|
33
|
-
margin-block-start: var(--block-margin);
|
|
34
|
-
margin-block-end: var(--block-margin);
|
|
35
|
-
}
|
|
36
|
-
:host p.large {
|
|
37
|
-
font-size: 1.21em;
|
|
38
|
-
line-height: calc(var(--line-height) + 10%);
|
|
39
|
-
/* line-height: 150%; */
|
|
40
|
-
/* letter-spacing: normal; */
|
|
41
|
-
}
|
|
42
|
-
:host p.small {
|
|
43
|
-
font-size: 0.85em;
|
|
44
|
-
line-height: calc(var(--line-height) - 5%);
|
|
45
|
-
/* line-height: 135%; */
|
|
46
|
-
/* letter-spacing: 0.04em; */
|
|
47
|
-
}
|
|
48
|
-
:host p.caption {
|
|
49
|
-
font-size: 0.71em;
|
|
50
|
-
line-height: calc(var(--line-height) - 5%);
|
|
51
|
-
/* line-height: 135%; */
|
|
52
|
-
/* letter-spacing: 0.06em; */
|
|
53
|
-
}
|
|
54
|
-
@media (min-width: 768px) and (max-width: 1365px) {
|
|
55
|
-
:host p {
|
|
56
|
-
font-size: 1.14em;
|
|
57
|
-
line-height: calc(var(--line-height) + 5%);
|
|
58
|
-
/* line-height: 145%; */
|
|
59
|
-
}
|
|
60
|
-
:host p.large {
|
|
61
|
-
font-size: 1.35em;
|
|
62
|
-
line-height: calc(var(--line-height) + 10%);
|
|
63
|
-
/* line-height: 150%; */
|
|
64
|
-
}
|
|
65
|
-
:host p.small {
|
|
66
|
-
font-size: 1em;
|
|
67
|
-
line-height: calc(var(--line-height) - 5%);
|
|
68
|
-
/* line-height: 135%; */
|
|
69
|
-
}
|
|
70
|
-
:host p.caption {
|
|
71
|
-
font-size: 0.85em;
|
|
72
|
-
line-height: calc(var(--line-height) - 5%);
|
|
73
|
-
/* line-height: 135%; */
|
|
74
|
-
/* letter-spacing: 0.06em; */
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
@media (min-width: 1366px) {
|
|
78
|
-
:host p {
|
|
79
|
-
font-size: 1.42em;
|
|
80
|
-
line-height: calc(var(--line-height) + 10%);
|
|
81
|
-
/* line-height: 150%; */
|
|
82
|
-
/* letter-spacing: normal; */
|
|
83
|
-
}
|
|
84
|
-
:host p.large {
|
|
85
|
-
font-size: 1.71em;
|
|
86
|
-
line-height: calc(var(--line-height) + 20%);
|
|
87
|
-
/* line-height: 160%; */
|
|
88
|
-
}
|
|
89
|
-
:host p.small {
|
|
90
|
-
font-size: 1.21em;
|
|
91
|
-
line-height: calc(var(--line-height) + 5%);
|
|
92
|
-
/* line-height: 145%; */
|
|
93
|
-
/* letter-spacing: normal; */
|
|
94
|
-
}
|
|
95
|
-
:host p.caption {
|
|
96
|
-
font-size: 1em;
|
|
97
|
-
line-height: calc(var(--line-height) + 5%);
|
|
98
|
-
/* line-height: 145%; */
|
|
99
|
-
/* letter-spacing: 0.02em; */
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
:host ::slotted(b), :host ::slotted(strong) {
|
|
103
|
-
font-weight: var(--font-weight-bold);
|
|
104
|
-
}
|
|
105
|
-
:host ::slotted(a) {
|
|
106
|
-
font-weight: var(--font-weight-medium);
|
|
107
|
-
color: var(--color-link);
|
|
108
|
-
text-underline-offset: 10%;
|
|
109
|
-
}
|
|
110
|
-
:host ::slotted(abbr) {
|
|
111
|
-
color: var(--color-link);
|
|
112
|
-
text-decoration: underline dashed 1px var(--color-link);
|
|
113
|
-
text-underline-offset: 10%;
|
|
114
|
-
cursor: default;
|
|
115
|
-
}
|