@rededor/cura 0.5.0-alpha.0 → 0.5.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/dist/assets/icons/iconset-default-list.ts +1 -0
- package/dist/assets/icons/iconset-default-tmp.svg +976 -0
- package/dist/assets/icons/iconset-default.svg +1 -0
- package/dist/cjs/app-globals-0e3b7fc6.js +511 -0
- package/dist/cjs/app-globals-0e3b7fc6.js.map +1 -0
- package/dist/cjs/css-shim-83cf0349.js +8 -0
- package/dist/cjs/css-shim-83cf0349.js.map +1 -0
- package/dist/cjs/cura-accordion_12.cjs.entry.js +674 -0
- package/dist/cjs/cura-accordion_12.cjs.entry.js.map +1 -0
- package/dist/cjs/cura.cjs.js +36 -0
- package/dist/cjs/cura.cjs.js.map +1 -0
- package/dist/cjs/index-72217b50.js +2003 -0
- package/dist/cjs/index-72217b50.js.map +1 -0
- package/dist/cjs/index.cjs.js +4 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +42 -0
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/shadow-css-8baae635.js +391 -0
- package/dist/cjs/shadow-css-8baae635.js.map +1 -0
- package/dist/collection/api/cura-api.js +34 -0
- package/dist/collection/api/cura-api.js.map +1 -0
- package/dist/collection/api/cura-api.type.js +7 -0
- package/dist/collection/api/cura-api.type.js.map +1 -0
- package/dist/collection/api/modules/cura-theme-breakpoints-module.js +14 -0
- package/dist/collection/api/modules/cura-theme-breakpoints-module.js.map +1 -0
- package/dist/collection/api/modules/cura-theme-colors-module.js +76 -0
- package/dist/collection/api/modules/cura-theme-colors-module.js.map +1 -0
- package/dist/collection/api/modules/cura-theme-fonts-module.js +36 -0
- package/dist/collection/api/modules/cura-theme-fonts-module.js.map +1 -0
- package/dist/collection/api/modules/cura-theme-module.js +78 -0
- package/dist/collection/api/modules/cura-theme-module.js.map +1 -0
- package/dist/collection/api/modules/cura-theme-spacing-module.js +13 -0
- package/dist/collection/api/modules/cura-theme-spacing-module.js.map +1 -0
- package/dist/collection/api/theme-presets/static.js +71 -0
- package/dist/collection/api/theme-presets/static.js.map +1 -0
- package/dist/collection/api/theme-presets/theme-default.js +50 -0
- package/dist/collection/api/theme-presets/theme-default.js.map +1 -0
- package/dist/collection/api/theme-presets/theme-legacy-default.js +32 -0
- package/dist/collection/api/theme-presets/theme-legacy-default.js.map +1 -0
- package/dist/collection/api/theme-presets/theme-maternity.js +46 -0
- package/dist/collection/api/theme-presets/theme-maternity.js.map +1 -0
- package/dist/collection/api/theme-presets/theme-oncology.js +53 -0
- package/dist/collection/api/theme-presets/theme-oncology.js.map +1 -0
- package/dist/collection/api/theme-presets/theme-presets.js +11 -0
- package/dist/collection/api/theme-presets/theme-presets.js.map +1 -0
- package/dist/collection/assets/icons/iconset-default-list.js +2 -0
- package/dist/collection/assets/icons/iconset-default-list.js.map +1 -0
- package/dist/collection/assets/icons/iconset-default-tmp.svg +976 -0
- package/dist/collection/assets/icons/iconset-default.svg +1 -0
- package/dist/collection/assets-raw/icons/default/360.svg +8 -0
- package/dist/collection/assets-raw/icons/default/accessibility.svg +5 -0
- package/dist/collection/assets-raw/icons/default/addUser.svg +6 -0
- package/dist/collection/assets-raw/icons/default/airdrop.svg +6 -0
- package/dist/collection/assets-raw/icons/default/alertCircle.svg +5 -0
- package/dist/collection/assets-raw/icons/default/alertTriangle.svg +5 -0
- package/dist/collection/assets-raw/icons/default/arrowDown.svg +3 -0
- package/dist/collection/assets-raw/icons/default/arrowDownCircle.svg +4 -0
- package/dist/collection/assets-raw/icons/default/arrowLeft.svg +3 -0
- package/dist/collection/assets-raw/icons/default/arrowLeftCircle.svg +4 -0
- package/dist/collection/assets-raw/icons/default/arrowRight.svg +3 -0
- package/dist/collection/assets-raw/icons/default/arrowRightCircle.svg +4 -0
- package/dist/collection/assets-raw/icons/default/arrowUp.svg +3 -0
- package/dist/collection/assets-raw/icons/default/arrowUpCircle.svg +4 -0
- package/dist/collection/assets-raw/icons/default/attach.svg +3 -0
- package/dist/collection/assets-raw/icons/default/avatarF.svg +6 -0
- package/dist/collection/assets-raw/icons/default/avatarM.svg +5 -0
- package/dist/collection/assets-raw/icons/default/biometry.svg +3 -0
- package/dist/collection/assets-raw/icons/default/bloodGroup.svg +3 -0
- package/dist/collection/assets-raw/icons/default/calendar.svg +8 -0
- package/dist/collection/assets-raw/icons/default/cam.svg +4 -0
- package/dist/collection/assets-raw/icons/default/camOff.svg +5 -0
- package/dist/collection/assets-raw/icons/default/central.svg +7 -0
- package/dist/collection/assets-raw/icons/default/chatCircle.svg +6 -0
- package/dist/collection/assets-raw/icons/default/check.svg +3 -0
- package/dist/collection/assets-raw/icons/default/checkBadge.svg +4 -0
- package/dist/collection/assets-raw/icons/default/checkCircle.svg +4 -0
- package/dist/collection/assets-raw/icons/default/checkDouble.svg +4 -0
- package/dist/collection/assets-raw/icons/default/clock.svg +5 -0
- package/dist/collection/assets-raw/icons/default/close.svg +3 -0
- package/dist/collection/assets-raw/icons/default/closeCircle.svg +5 -0
- package/dist/collection/assets-raw/icons/default/collapse.svg +4 -0
- package/dist/collection/assets-raw/icons/default/config.svg +4 -0
- package/dist/collection/assets-raw/icons/default/currency.svg +3 -0
- package/dist/collection/assets-raw/icons/default/delete.svg +7 -0
- package/dist/collection/assets-raw/icons/default/desktop.svg +6 -0
- package/dist/collection/assets-raw/icons/default/doc.svg +7 -0
- package/dist/collection/assets-raw/icons/default/down.svg +3 -0
- package/dist/collection/assets-raw/icons/default/download.svg +3 -0
- package/dist/collection/assets-raw/icons/default/duplicate.svg +4 -0
- package/dist/collection/assets-raw/icons/default/edit.svg +5 -0
- package/dist/collection/assets-raw/icons/default/exam.svg +6 -0
- package/dist/collection/assets-raw/icons/default/examDoc.svg +8 -0
- package/dist/collection/assets-raw/icons/default/expand.svg +4 -0
- package/dist/collection/assets-raw/icons/default/facebook.svg +3 -0
- package/dist/collection/assets-raw/icons/default/fileBmp.svg +17 -0
- package/dist/collection/assets-raw/icons/default/fileJpg.svg +8 -0
- package/dist/collection/assets-raw/icons/default/filePdf.svg +10 -0
- package/dist/collection/assets-raw/icons/default/filePng.svg +10 -0
- package/dist/collection/assets-raw/icons/default/fileUpload.svg +5 -0
- package/dist/collection/assets-raw/icons/default/fileXls.svg +8 -0
- package/dist/collection/assets-raw/icons/default/filter.svg +11 -0
- package/dist/collection/assets-raw/icons/default/fullscreen.svg +6 -0
- package/dist/collection/assets-raw/icons/default/gallery.svg +6 -0
- package/dist/collection/assets-raw/icons/default/geotag.svg +4 -0
- package/dist/collection/assets-raw/icons/default/geotagUnity.svg +5 -0
- package/dist/collection/assets-raw/icons/default/geotagUnityGroup.svg +3 -0
- package/dist/collection/assets-raw/icons/default/google.svg +3 -0
- package/dist/collection/assets-raw/icons/default/graph.svg +6 -0
- package/dist/collection/assets-raw/icons/default/healthPlan.svg +6 -0
- package/dist/collection/assets-raw/icons/default/heart.svg +3 -0
- package/dist/collection/assets-raw/icons/default/height.svg +10 -0
- package/dist/collection/assets-raw/icons/default/height2.svg +8 -0
- package/dist/collection/assets-raw/icons/default/home.svg +6 -0
- package/dist/collection/assets-raw/icons/default/horizontalList.svg +4 -0
- package/dist/collection/assets-raw/icons/default/imageUp.svg +5 -0
- package/dist/collection/assets-raw/icons/default/infoCircle.svg +5 -0
- package/dist/collection/assets-raw/icons/default/instagram.svg +5 -0
- package/dist/collection/assets-raw/icons/default/key.svg +4 -0
- package/dist/collection/assets-raw/icons/default/lamp.svg +12 -0
- package/dist/collection/assets-raw/icons/default/language.svg +9 -0
- package/dist/collection/assets-raw/icons/default/language2.svg +4 -0
- package/dist/collection/assets-raw/icons/default/languageEN.svg +5 -0
- package/dist/collection/assets-raw/icons/default/languagePT.svg +5 -0
- package/dist/collection/assets-raw/icons/default/lattes.svg +3 -0
- package/dist/collection/assets-raw/icons/default/left.svg +3 -0
- package/dist/collection/assets-raw/icons/default/like.svg +4 -0
- package/dist/collection/assets-raw/icons/default/link.svg +4 -0
- package/dist/collection/assets-raw/icons/default/linkExternal.svg +4 -0
- package/dist/collection/assets-raw/icons/default/linkedin.svg +5 -0
- package/dist/collection/assets-raw/icons/default/list.svg +8 -0
- package/dist/collection/assets-raw/icons/default/login.svg +4 -0
- package/dist/collection/assets-raw/icons/default/logout.svg +3 -0
- package/dist/collection/assets-raw/icons/default/mail.svg +6 -0
- package/dist/collection/assets-raw/icons/default/maintenance.svg +4 -0
- package/dist/collection/assets-raw/icons/default/medDoc.svg +5 -0
- package/dist/collection/assets-raw/icons/default/medEspec.svg +4 -0
- package/dist/collection/assets-raw/icons/default/medImg.svg +5 -0
- package/dist/collection/assets-raw/icons/default/medUser.svg +10 -0
- package/dist/collection/assets-raw/icons/default/medical.svg +9 -0
- package/dist/collection/assets-raw/icons/default/menuHamburguer.svg +5 -0
- package/dist/collection/assets-raw/icons/default/menuKebab.svg +5 -0
- package/dist/collection/assets-raw/icons/default/menuMeatballs.svg +5 -0
- package/dist/collection/assets-raw/icons/default/mic.svg +5 -0
- package/dist/collection/assets-raw/icons/default/micOff.svg +6 -0
- package/dist/collection/assets-raw/icons/default/minus.svg +3 -0
- package/dist/collection/assets-raw/icons/default/minusCircle.svg +4 -0
- package/dist/collection/assets-raw/icons/default/minusSquare.svg +4 -0
- package/dist/collection/assets-raw/icons/default/mobile.svg +4 -0
- package/dist/collection/assets-raw/icons/default/news.svg +8 -0
- package/dist/collection/assets-raw/icons/default/notification.svg +6 -0
- package/dist/collection/assets-raw/icons/default/npsDeslike.svg +6 -0
- package/dist/collection/assets-raw/icons/default/npsHate.svg +6 -0
- package/dist/collection/assets-raw/icons/default/npsLike.svg +6 -0
- package/dist/collection/assets-raw/icons/default/npsLove.svg +6 -0
- package/dist/collection/assets-raw/icons/default/npsNeutral.svg +6 -0
- package/dist/collection/assets-raw/icons/default/order.svg +6 -0
- package/dist/collection/assets-raw/icons/default/partner.svg +5 -0
- package/dist/collection/assets-raw/icons/default/phone.svg +5 -0
- package/dist/collection/assets-raw/icons/default/play.svg +4 -0
- package/dist/collection/assets-raw/icons/default/plus.svg +4 -0
- package/dist/collection/assets-raw/icons/default/plusCircle.svg +5 -0
- package/dist/collection/assets-raw/icons/default/plusSquare.svg +5 -0
- package/dist/collection/assets-raw/icons/default/print.svg +7 -0
- package/dist/collection/assets-raw/icons/default/profile.svg +4 -0
- package/dist/collection/assets-raw/icons/default/profileCircle.svg +4 -0
- package/dist/collection/assets-raw/icons/default/questionCircle.svg +4 -0
- package/dist/collection/assets-raw/icons/default/questionSquare.svg +4 -0
- package/dist/collection/assets-raw/icons/default/range.svg +5 -0
- package/dist/collection/assets-raw/icons/default/reload.svg +4 -0
- package/dist/collection/assets-raw/icons/default/ribbon.svg +4 -0
- package/dist/collection/assets-raw/icons/default/right.svg +3 -0
- package/dist/collection/assets-raw/icons/default/schedule.svg +9 -0
- package/dist/collection/assets-raw/icons/default/scheduleCheck.svg +8 -0
- package/dist/collection/assets-raw/icons/default/scheduleHistorico.svg +9 -0
- package/dist/collection/assets-raw/icons/default/search.svg +4 -0
- package/dist/collection/assets-raw/icons/default/secure.svg +6 -0
- package/dist/collection/assets-raw/icons/default/share.svg +7 -0
- package/dist/collection/assets-raw/icons/default/siren.svg +12 -0
- package/dist/collection/assets-raw/icons/default/sound.svg +5 -0
- package/dist/collection/assets-raw/icons/default/soundOff.svg +4 -0
- package/dist/collection/assets-raw/icons/default/subItem.svg +4 -0
- package/dist/collection/assets-raw/icons/default/target.svg +8 -0
- package/dist/collection/assets-raw/icons/default/team.svg +6 -0
- package/dist/collection/assets-raw/icons/default/telegram.svg +3 -0
- package/dist/collection/assets-raw/icons/default/twitter.svg +5 -0
- package/dist/collection/assets-raw/icons/default/unLink.svg +10 -0
- package/dist/collection/assets-raw/icons/default/unSecure.svg +6 -0
- package/dist/collection/assets-raw/icons/default/unity.svg +13 -0
- package/dist/collection/assets-raw/icons/default/unlike.svg +4 -0
- package/dist/collection/assets-raw/icons/default/up.svg +3 -0
- package/dist/collection/assets-raw/icons/default/upload.svg +3 -0
- package/dist/collection/assets-raw/icons/default/verticalList.svg +4 -0
- package/dist/collection/assets-raw/icons/default/viewFalse.svg +5 -0
- package/dist/collection/assets-raw/icons/default/viewTrue.svg +4 -0
- package/dist/collection/assets-raw/icons/default/weight.svg +5 -0
- package/dist/collection/assets-raw/icons/default/whatsapp.svg +4 -0
- package/dist/collection/assets-raw/icons/default/wifi.svg +6 -0
- package/dist/collection/assets-raw/icons/default/wifiOff.svg +7 -0
- package/dist/collection/assets-raw/icons/default/youtube.svg +4 -0
- package/dist/collection/assets-raw/icons/default/zoomIn.svg +6 -0
- package/dist/collection/assets-raw/icons/default/zoomOut.svg +5 -0
- package/dist/collection/collection-manifest.json +24 -0
- package/dist/collection/components/accordion/cura-accordion/cura-accordion.css +14 -0
- package/dist/collection/components/accordion/cura-accordion/cura-accordion.js +271 -0
- package/dist/collection/components/accordion/cura-accordion/cura-accordion.js.map +1 -0
- package/dist/collection/components/accordion/cura-accordion/cura-accordion.stories.js +160 -0
- package/dist/collection/components/accordion/cura-accordion/cura-accordion.stories.js.map +1 -0
- package/dist/collection/components/accordion/cura-accordion-item/cura-accordion-item.css +142 -0
- package/dist/collection/components/accordion/cura-accordion-item/cura-accordion-item.js +199 -0
- package/dist/collection/components/accordion/cura-accordion-item/cura-accordion-item.js.map +1 -0
- package/dist/collection/components/buttons/cura-button/cura-button.css +185 -0
- package/dist/collection/components/buttons/cura-button/cura-button.js +308 -0
- package/dist/collection/components/buttons/cura-button/cura-button.js.map +1 -0
- package/dist/collection/components/buttons/cura-button/cura-button.stories.js +168 -0
- package/dist/collection/components/buttons/cura-button/cura-button.stories.js.map +1 -0
- package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.css +220 -0
- package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.js +308 -0
- package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.js.map +1 -0
- package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.stories.js +168 -0
- package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.stories.js.map +1 -0
- package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.css +204 -0
- package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.js +308 -0
- package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.js.map +1 -0
- package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.stories.js +168 -0
- package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.stories.js.map +1 -0
- package/dist/collection/components/cura-icon/cura-icon.css +12 -0
- package/dist/collection/components/cura-icon/cura-icon.js +162 -0
- package/dist/collection/components/cura-icon/cura-icon.js.map +1 -0
- package/dist/collection/components/cura-icon/cura-icon.stories.js +75 -0
- package/dist/collection/components/cura-icon/cura-icon.stories.js.map +1 -0
- package/dist/collection/components/cura-icons-view/cura-icons-view.css +68 -0
- package/dist/collection/components/cura-icons-view/cura-icons-view.js +33 -0
- package/dist/collection/components/cura-icons-view/cura-icons-view.js.map +1 -0
- package/dist/collection/components/cura-icons-view/cura-icons-view.stories.js +11 -0
- package/dist/collection/components/cura-icons-view/cura-icons-view.stories.js.map +1 -0
- package/dist/collection/components/cura-page-template/cura-page-template.css +105 -0
- package/dist/collection/components/cura-page-template/cura-page-template.js +55 -0
- package/dist/collection/components/cura-page-template/cura-page-template.js.map +1 -0
- package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.css +33 -0
- package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.js +77 -0
- package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.js.map +1 -0
- package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.stories.js +56 -0
- package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.stories.js.map +1 -0
- package/dist/collection/components/text/cura-display/cura-display.css +84 -0
- package/dist/collection/components/text/cura-display/cura-display.js +146 -0
- package/dist/collection/components/text/cura-display/cura-display.js.map +1 -0
- package/dist/collection/components/text/cura-display/cura-display.stories.js +80 -0
- package/dist/collection/components/text/cura-display/cura-display.stories.js.map +1 -0
- package/dist/collection/components/text/cura-heading/cura-heading.css +92 -0
- package/dist/collection/components/text/cura-heading/cura-heading.js +168 -0
- package/dist/collection/components/text/cura-heading/cura-heading.js.map +1 -0
- package/dist/collection/components/text/cura-heading/cura-heading.stories.js +91 -0
- package/dist/collection/components/text/cura-heading/cura-heading.stories.js.map +1 -0
- package/dist/collection/components/text/cura-paragraph/cura-paragraph.css +115 -0
- package/dist/collection/components/text/cura-paragraph/cura-paragraph.js +150 -0
- package/dist/collection/components/text/cura-paragraph/cura-paragraph.js.map +1 -0
- package/dist/collection/components/text/cura-paragraph/cura-paragraph.stories.js +94 -0
- package/dist/collection/components/text/cura-paragraph/cura-paragraph.stories.js.map +1 -0
- package/dist/collection/index.js +2 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/rededor-cura-start.js +10 -0
- package/dist/collection/rededor-cura-start.js.map +1 -0
- package/dist/collection/stories/assets/accessibility.svg +5 -0
- package/dist/collection/stories/assets/discord.svg +15 -0
- package/dist/collection/stories/assets/github.svg +3 -0
- package/dist/collection/stories/assets/tutorials.svg +12 -0
- package/dist/collection/stories/assets/youtube.svg +4 -0
- package/dist/collection/stories/olds/Button.js +21 -0
- package/dist/collection/stories/olds/Button.st.js +50 -0
- package/dist/collection/stories/olds/Header.js +47 -0
- package/dist/collection/stories/olds/Header.st.js +28 -0
- package/dist/collection/stories/olds/Page.js +94 -0
- package/dist/collection/stories/olds/Page.st.js +27 -0
- package/dist/collection/utils/utils.js +16 -0
- package/dist/collection/utils/utils.js.map +1 -0
- package/dist/collection/utils/utils.spec.js +16 -0
- package/dist/collection/utils/utils.spec.js.map +1 -0
- package/dist/components/cura-accordion-item.d.ts +11 -0
- package/dist/components/cura-accordion-item.js +76 -0
- package/dist/components/cura-accordion-item.js.map +1 -0
- package/dist/components/cura-accordion.d.ts +11 -0
- package/dist/components/cura-accordion.js +120 -0
- package/dist/components/cura-accordion.js.map +1 -0
- package/dist/components/cura-button-outline.d.ts +11 -0
- package/dist/components/cura-button-outline.js +123 -0
- package/dist/components/cura-button-outline.js.map +1 -0
- package/dist/components/cura-button-transparent.d.ts +11 -0
- package/dist/components/cura-button-transparent.js +123 -0
- package/dist/components/cura-button-transparent.js.map +1 -0
- package/dist/components/cura-button.d.ts +11 -0
- package/dist/components/cura-button.js +123 -0
- package/dist/components/cura-button.js.map +1 -0
- package/dist/components/cura-display.d.ts +11 -0
- package/dist/components/cura-display.js +89 -0
- package/dist/components/cura-display.js.map +1 -0
- package/dist/components/cura-heading.d.ts +11 -0
- package/dist/components/cura-heading.js +94 -0
- package/dist/components/cura-heading.js.map +1 -0
- package/dist/components/cura-icon.d.ts +11 -0
- package/dist/components/cura-icon.js +8 -0
- package/dist/components/cura-icon.js.map +1 -0
- package/dist/components/cura-icon2.js +79 -0
- package/dist/components/cura-icon2.js.map +1 -0
- package/dist/components/cura-icons-view.d.ts +11 -0
- package/dist/components/cura-icons-view.js +51 -0
- package/dist/components/cura-icons-view.js.map +1 -0
- package/dist/components/cura-loader-circle.d.ts +11 -0
- package/dist/components/cura-loader-circle.js +8 -0
- package/dist/components/cura-loader-circle.js.map +1 -0
- package/dist/components/cura-loader-circle2.js +51 -0
- package/dist/components/cura-loader-circle2.js.map +1 -0
- package/dist/components/cura-page-template.d.ts +11 -0
- package/dist/components/cura-page-template.js +49 -0
- package/dist/components/cura-page-template.js.map +1 -0
- package/dist/components/cura-paragraph.d.ts +11 -0
- package/dist/components/cura-paragraph.js +87 -0
- package/dist/components/cura-paragraph.js.map +1 -0
- package/dist/components/index.d.ts +39 -0
- package/dist/components/index.js +547 -0
- package/dist/components/index.js.map +1 -0
- package/dist/cura/cura.esm.js +2 -0
- package/dist/cura/cura.esm.js.map +1 -0
- package/dist/cura/cura.js +133 -0
- package/dist/cura/index.esm.js +2 -0
- package/dist/cura/index.esm.js.map +1 -0
- package/dist/cura/p-118112e5.system.js +14 -0
- package/dist/cura/p-118112e5.system.js.map +1 -0
- package/dist/cura/p-183305c3.js +2 -0
- package/dist/cura/p-183305c3.js.map +1 -0
- package/dist/cura/p-2cbf52f1.js +3 -0
- package/dist/cura/p-2cbf52f1.js.map +1 -0
- package/dist/cura/p-3f6aaefc.system.js +2 -0
- package/dist/cura/p-3f6aaefc.system.js.map +1 -0
- package/dist/cura/p-4cdbc8a1.system.entry.js +2 -0
- package/dist/cura/p-4cdbc8a1.system.entry.js.map +1 -0
- package/dist/cura/p-50ea2036.system.js +2 -0
- package/dist/cura/p-50ea2036.system.js.map +1 -0
- package/dist/cura/p-788e035b.system.js +2 -0
- package/dist/cura/p-788e035b.system.js.map +1 -0
- package/dist/cura/p-8da635b7.system.js +3 -0
- package/dist/cura/p-8da635b7.system.js.map +1 -0
- package/dist/cura/p-beab48cd.js +13 -0
- package/dist/cura/p-beab48cd.js.map +1 -0
- package/dist/cura/p-c54ce246.entry.js +2 -0
- package/dist/cura/p-c54ce246.entry.js.map +1 -0
- package/dist/cura/p-d5c64a5f.js +2 -0
- package/dist/cura/p-d5c64a5f.js.map +1 -0
- package/dist/cura/p-f4232daa.system.js +2 -0
- package/dist/cura/p-f4232daa.system.js.map +1 -0
- package/dist/esm/app-globals-cc003eaf.js +509 -0
- package/dist/esm/app-globals-cc003eaf.js.map +1 -0
- package/dist/esm/css-shim-d13f0738.js +6 -0
- package/dist/esm/css-shim-d13f0738.js.map +1 -0
- package/dist/esm/cura-accordion_12.entry.js +659 -0
- package/dist/esm/cura-accordion_12.entry.js.map +1 -0
- package/dist/esm/cura.js +31 -0
- package/dist/esm/cura.js.map +1 -0
- package/dist/esm/index-9af0cdbd.js +1972 -0
- package/dist/esm/index-9af0cdbd.js.map +1 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/loader.js +38 -0
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm/shadow-css-07b0c8c8.js +389 -0
- package/dist/esm/shadow-css-07b0c8c8.js.map +1 -0
- package/dist/esm-es5/app-globals-cc003eaf.js +2 -0
- package/dist/esm-es5/app-globals-cc003eaf.js.map +1 -0
- package/dist/esm-es5/css-shim-d13f0738.js +2 -0
- package/dist/esm-es5/css-shim-d13f0738.js.map +1 -0
- package/dist/esm-es5/cura-accordion_12.entry.js +2 -0
- package/dist/esm-es5/cura-accordion_12.entry.js.map +1 -0
- package/dist/esm-es5/cura.js +2 -0
- package/dist/esm-es5/cura.js.map +1 -0
- package/dist/esm-es5/index-9af0cdbd.js +3 -0
- package/dist/esm-es5/index-9af0cdbd.js.map +1 -0
- package/dist/esm-es5/index.js +2 -0
- package/dist/esm-es5/index.js.map +1 -0
- package/dist/esm-es5/loader.js +2 -0
- package/dist/esm-es5/loader.js.map +1 -0
- package/dist/esm-es5/shadow-css-07b0c8c8.js +13 -0
- package/dist/esm-es5/shadow-css-07b0c8c8.js.map +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/loader/cdn.js +3 -0
- package/dist/loader/index.cjs.js +3 -0
- package/dist/loader/index.d.ts +21 -0
- package/dist/loader/index.es2017.js +3 -0
- package/dist/loader/index.js +4 -0
- package/dist/loader/package.json +11 -0
- package/dist/types/api/cura-api.d.ts +6 -0
- package/dist/types/api/cura-api.type.d.ts +65 -0
- package/dist/types/api/modules/cura-theme-breakpoints-module.d.ts +5 -0
- package/dist/types/api/modules/cura-theme-colors-module.d.ts +48 -0
- package/dist/types/api/modules/cura-theme-fonts-module.d.ts +24 -0
- package/dist/types/api/modules/cura-theme-module.d.ts +32 -0
- package/dist/types/api/modules/cura-theme-spacing-module.d.ts +6 -0
- package/dist/types/api/theme-presets/static.d.ts +69 -0
- package/dist/types/api/theme-presets/theme-default.d.ts +46 -0
- package/dist/types/api/theme-presets/theme-legacy-default.d.ts +43 -0
- package/dist/types/api/theme-presets/theme-maternity.d.ts +43 -0
- package/dist/types/api/theme-presets/theme-oncology.d.ts +50 -0
- package/dist/types/api/theme-presets/theme-presets.d.ts +181 -0
- package/dist/types/assets/icons/iconset-default-list.d.ts +2 -0
- package/dist/types/components/accordion/cura-accordion/cura-accordion.d.ts +39 -0
- package/dist/types/components/accordion/cura-accordion/cura-accordion.stories.d.ts +154 -0
- package/dist/types/components/accordion/cura-accordion-item/cura-accordion-item.d.ts +29 -0
- package/dist/types/components/buttons/cura-button/cura-button.d.ts +61 -0
- package/dist/types/components/buttons/cura-button/cura-button.stories.d.ts +171 -0
- package/dist/types/components/buttons/cura-button-outline/cura-button-outline.d.ts +61 -0
- package/dist/types/components/buttons/cura-button-outline/cura-button-outline.stories.d.ts +171 -0
- package/dist/types/components/buttons/cura-button-transparent/cura-button-transparent.d.ts +61 -0
- package/dist/types/components/buttons/cura-button-transparent/cura-button-transparent.stories.d.ts +171 -0
- package/dist/types/components/cura-icon/cura-icon.d.ts +56 -0
- package/dist/types/components/cura-icon/cura-icon.stories.d.ts +65 -0
- package/dist/types/components/cura-icons-view/cura-icons-view.d.ts +7 -0
- package/dist/types/components/cura-icons-view/cura-icons-view.stories.d.ts +7 -0
- package/dist/types/components/cura-page-template/cura-page-template.d.ts +8 -0
- package/dist/types/components/loaders/cura-loader-circle/cura-loader-circle.d.ts +23 -0
- package/dist/types/components/loaders/cura-loader-circle/cura-loader-circle.stories.d.ts +43 -0
- package/dist/types/components/text/cura-display/cura-display.d.ts +38 -0
- package/dist/types/components/text/cura-display/cura-display.stories.d.ts +76 -0
- package/dist/types/components/text/cura-heading/cura-heading.d.ts +43 -0
- package/dist/types/components/text/cura-heading/cura-heading.stories.d.ts +90 -0
- package/dist/types/components/text/cura-paragraph/cura-paragraph.d.ts +37 -0
- package/dist/types/components/text/cura-paragraph/cura-paragraph.stories.d.ts +74 -0
- package/dist/types/components.d.ts +688 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/rededor-cura-start.d.ts +9 -0
- package/dist/types/stencil-public-runtime.d.ts +1638 -0
- package/dist/types/utils/utils.d.ts +2 -0
- package/package.json +4 -6
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s)
|
|
4
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
export default {
|
|
14
|
+
title: 'Components/Text/Display',
|
|
15
|
+
tags: ['autodocs'],
|
|
16
|
+
render: (_a) => {
|
|
17
|
+
var { label } = _a, args = __rest(_a, ["label"]);
|
|
18
|
+
// You can either use a function to create DOM elements or use a plain html string!
|
|
19
|
+
// return `<div>${label}</div>`;
|
|
20
|
+
return `<cura-display
|
|
21
|
+
level="${args.level}"
|
|
22
|
+
spot-color="${args.spotColor}"
|
|
23
|
+
size="${args.size}"
|
|
24
|
+
inverted="${args.inverted}">
|
|
25
|
+
${label}
|
|
26
|
+
</cura-display>
|
|
27
|
+
<cura-paragraph>Proin quis turpis et turpis efficitur dictum. Suspendisse egestas posuere libero. Sed non dapibus urna. Sed luctus tincidunt nibh, eu tincidunt justo. Curabitur at ullamcorper mauris, feugiat fermentum nulla. Quisque sed nibh in odio blandit mollis at quis dolor. Sed urna lacus, ultricies ac vulputate at, luctus eu ex. Duis at elit facilisis, iaculis orci sed, suscipit nisl. Phasellus semper lorem sed tincidunt semper. Morbi lobortis eu mi sed ultricies. Sed consequat id orci at iaculis.</cura-paragraph>`;
|
|
28
|
+
},
|
|
29
|
+
argTypes: {
|
|
30
|
+
label: {
|
|
31
|
+
control: 'text',
|
|
32
|
+
description: 'Texto puro com ou sem quebra de linha dentro do componente. Não é propriedade HTML.',
|
|
33
|
+
name: 'Content'
|
|
34
|
+
},
|
|
35
|
+
inverted: {
|
|
36
|
+
control: 'boolean',
|
|
37
|
+
description: 'Inverte cores do texto para aplicação em fundo escuro.',
|
|
38
|
+
table: {
|
|
39
|
+
category: 'Properties',
|
|
40
|
+
defaultValue: { summary: 'false' }
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
size: {
|
|
44
|
+
control: { type: 'select' },
|
|
45
|
+
options: ['small', 'regular', 'large'],
|
|
46
|
+
description: 'Tamanhos disponíveis.',
|
|
47
|
+
table: {
|
|
48
|
+
category: 'Properties',
|
|
49
|
+
defaultValue: { summary: 'regular' }
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
spotColor: {
|
|
53
|
+
control: { type: 'select' },
|
|
54
|
+
options: ['primary', 'secondary', 'accent', 'info', 'success', 'error', 'warning', 'neutral'],
|
|
55
|
+
description: 'Cor fundamental do Design System sem profundidade (ex: primary).',
|
|
56
|
+
table: {
|
|
57
|
+
category: 'Properties',
|
|
58
|
+
defaultValue: { summary: 'primary' }
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
level: {
|
|
62
|
+
control: { type: 'number', min: 1, max: 6, step: 1 },
|
|
63
|
+
description: 'Define a tag semântica do título. Ex. h1, h2, h3, etc.',
|
|
64
|
+
table: {
|
|
65
|
+
category: 'Properties',
|
|
66
|
+
defaultValue: { summary: 'primary' }
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
};
|
|
71
|
+
export const Display = {
|
|
72
|
+
args: {
|
|
73
|
+
label: 'Dolor sit <a href="https://www.rededorsaoluiz.com.br" target="_blank">amet</a>, consectetur adipiscing elit.',
|
|
74
|
+
size: 'regular',
|
|
75
|
+
level: 1,
|
|
76
|
+
spotColor: 'primary',
|
|
77
|
+
inverted: false,
|
|
78
|
+
},
|
|
79
|
+
};
|
|
80
|
+
//# sourceMappingURL=cura-display.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cura-display.stories.js","sourceRoot":"","sources":["../../../../src/components/text/cura-display/cura-display.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;AACA,eAAe;EACb,KAAK,EAAE,yBAAyB;EAChC,IAAI,EAAE,CAAC,UAAU,CAAC;EAClB,MAAM,EAAE,CAAC,EAAkB,EAAE,EAAE;QAAtB,EAAE,KAAK,OAAW,EAAN,IAAI,cAAhB,SAAkB,CAAF;IACvB,mFAAmF;IACnF,gCAAgC;IAChC,OAAO;WACA,IAAI,CAAC,KAAK;gBACL,IAAI,CAAC,SAAS;UACpB,IAAI,CAAC,IAAI;cACL,IAAI,CAAC,QAAQ;IACvB,KAAK;;8gBAEqgB,CAAC;EAC7gB,CAAC;EACD,QAAQ,EAAE;IACR,KAAK,EAAE;MACL,OAAO,EAAE,MAAM;MACf,WAAW,EAAE,qFAAqF;MAClG,IAAI,EAAE,SAAS;KAChB;IACD,QAAQ,EAAE;MACR,OAAO,EAAE,SAAS;MAClB,WAAW,EAAE,wDAAwD;MACrE,KAAK,EAAE;QACL,QAAQ,EAAE,YAAY;QACtB,YAAY,EAAE,EAAE,OAAO,EAAE,OAAO,EAAC;OAClC;KACF;IACD,IAAI,EAAE;MACJ,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;MAC3B,OAAO,EAAE,CAAC,OAAO,EAAE,SAAS,EAAE,OAAO,CAAC;MACtC,WAAW,EAAE,uBAAuB;MACpC,KAAK,EAAE;QACL,QAAQ,EAAE,YAAY;QACtB,YAAY,EAAE,EAAE,OAAO,EAAE,SAAS,EAAC;OACpC;KACF;IACD,SAAS,EAAE;MACT,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;MAC3B,OAAO,EAAE,CAAC,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,CAAC;MAC7F,WAAW,EAAE,kEAAkE;MAC/E,KAAK,EAAE;QACL,QAAQ,EAAE,YAAY;QACtB,YAAY,EAAE,EAAE,OAAO,EAAE,SAAS,EAAC;OACpC;KACF;IACD,KAAK,EAAE;MACL,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE;MACpD,WAAW,EAAE,wDAAwD;MACrE,KAAK,EAAE;QACL,QAAQ,EAAE,YAAY;QACtB,YAAY,EAAE,EAAE,OAAO,EAAE,SAAS,EAAC;OACpC;KACF;GACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG;EACrB,IAAI,EAAE;IACJ,KAAK,EAAE,8GAA8G;IACrH,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,CAAC;IACR,SAAS,EAAE,SAAS;IACpB,QAAQ,EAAE,KAAK;GAChB;CACF,CAAC","sourcesContent":["\nexport default {\n title: 'Components/Text/Display',\n tags: ['autodocs'],\n render: ({ label, ...args }) => {\n // You can either use a function to create DOM elements or use a plain html string!\n // return `<div>${label}</div>`;\n return `<cura-display\n level=\"${args.level}\"\n spot-color=\"${args.spotColor}\"\n size=\"${args.size}\"\n inverted=\"${args.inverted}\">\n ${label}\n</cura-display>\n<cura-paragraph>Proin quis turpis et turpis efficitur dictum. Suspendisse egestas posuere libero. Sed non dapibus urna. Sed luctus tincidunt nibh, eu tincidunt justo. Curabitur at ullamcorper mauris, feugiat fermentum nulla. Quisque sed nibh in odio blandit mollis at quis dolor. Sed urna lacus, ultricies ac vulputate at, luctus eu ex. Duis at elit facilisis, iaculis orci sed, suscipit nisl. Phasellus semper lorem sed tincidunt semper. Morbi lobortis eu mi sed ultricies. Sed consequat id orci at iaculis.</cura-paragraph>`;\n },\n argTypes: {\n label: {\n control: 'text',\n description: 'Texto puro com ou sem quebra de linha dentro do componente. Não é propriedade HTML.',\n name: 'Content'\n },\n inverted: {\n control: 'boolean',\n description: 'Inverte cores do texto para aplicação em fundo escuro.',\n table: {\n category: 'Properties',\n defaultValue: { summary: 'false'}\n }\n },\n size: {\n control: { type: 'select' },\n options: ['small', 'regular', 'large'],\n description: 'Tamanhos disponíveis.',\n table: {\n category: 'Properties',\n defaultValue: { summary: 'regular'}\n }\n },\n spotColor: {\n control: { type: 'select' },\n options: ['primary', 'secondary', 'accent', 'info', 'success', 'error', 'warning', 'neutral'],\n description: 'Cor fundamental do Design System sem profundidade (ex: primary).',\n table: {\n category: 'Properties',\n defaultValue: { summary: 'primary'}\n }\n },\n level: {\n control: { type: 'number', min: 1, max: 6, step: 1 },\n description: 'Define a tag semântica do título. Ex. h1, h2, h3, etc.',\n table: {\n category: 'Properties',\n defaultValue: { summary: 'primary'}\n }\n }\n },\n};\n\nexport const Display = {\n args: {\n label: 'Dolor sit <a href=\"https://www.rededorsaoluiz.com.br\" target=\"_blank\">amet</a>, consectetur adipiscing elit.',\n size: 'regular',\n level: 1,\n spotColor: 'primary',\n inverted: false,\n },\n};\n"]}
|
|
@@ -0,0 +1,92 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,168 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cura-heading.js","sourceRoot":"","sources":["../../../../src/components/text/cura-heading/cura-heading.tsx"],"names":[],"mappings":"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","sourcesContent":["import { Component, Host, h, Prop, 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"]}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s)
|
|
4
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
export default {
|
|
14
|
+
title: 'Components/Text/Heading',
|
|
15
|
+
tags: ['autodocs'],
|
|
16
|
+
render: (_a) => {
|
|
17
|
+
var { label } = _a, args = __rest(_a, ["label"]);
|
|
18
|
+
// You can either use a function to create DOM elements or use a plain html string!
|
|
19
|
+
// return `<div>${label}</div>`;
|
|
20
|
+
return `<cura-heading
|
|
21
|
+
level="${args.level}"
|
|
22
|
+
spot-color="${args.spotColor}"
|
|
23
|
+
size="${args.size}"
|
|
24
|
+
inverted="${args.inverted}"
|
|
25
|
+
weight="${args.weight}">
|
|
26
|
+
${label}
|
|
27
|
+
</cura-heading>
|
|
28
|
+
<cura-paragraph>Proin quis turpis et turpis efficitur dictum. Suspendisse egestas posuere libero. Sed non dapibus urna. Sed luctus tincidunt nibh, eu tincidunt justo. Curabitur at ullamcorper mauris, feugiat fermentum nulla. Quisque sed nibh in odio blandit mollis at quis dolor. Sed urna lacus, ultricies ac vulputate at, luctus eu ex. Duis at elit facilisis, iaculis orci sed, suscipit nisl. Phasellus semper lorem sed tincidunt semper. Morbi lobortis eu mi sed ultricies. Sed consequat id orci at iaculis.</cura-paragraph>`;
|
|
29
|
+
},
|
|
30
|
+
argTypes: {
|
|
31
|
+
label: {
|
|
32
|
+
control: 'text',
|
|
33
|
+
description: 'Texto puro com ou sem quebra de linha dentro do componente. Não é propriedade HTML.',
|
|
34
|
+
name: 'Content'
|
|
35
|
+
},
|
|
36
|
+
inverted: {
|
|
37
|
+
control: 'boolean',
|
|
38
|
+
description: 'Inverte cores do texto para aplicação em fundo escuro.',
|
|
39
|
+
table: {
|
|
40
|
+
category: 'Properties',
|
|
41
|
+
defaultValue: { summary: 'false' }
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
size: {
|
|
45
|
+
control: { type: 'select' },
|
|
46
|
+
options: ['small', 'regular', 'large'],
|
|
47
|
+
description: 'Tamanhos disponíveis.',
|
|
48
|
+
table: {
|
|
49
|
+
category: 'Properties',
|
|
50
|
+
defaultValue: { summary: 'regular' }
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
weight: {
|
|
54
|
+
control: { type: 'inline-radio' },
|
|
55
|
+
options: ['regular', 'bold'],
|
|
56
|
+
description: 'Espessura de fonte',
|
|
57
|
+
table: {
|
|
58
|
+
category: 'Properties',
|
|
59
|
+
defaultValue: { summary: 'regular' }
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
spotColor: {
|
|
63
|
+
control: { type: 'select' },
|
|
64
|
+
options: ['primary', 'secondary', 'accent', 'info', 'success', 'error', 'warning', 'neutral'],
|
|
65
|
+
description: 'Cor fundamental do Design System sem profundidade (ex: primary).',
|
|
66
|
+
table: {
|
|
67
|
+
category: 'Properties',
|
|
68
|
+
defaultValue: { summary: 'primary' }
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
level: {
|
|
72
|
+
control: { type: 'number', min: 1, max: 6, step: 1 },
|
|
73
|
+
description: 'Define a tag semântica do título. Ex. h1, h2, h3, etc.',
|
|
74
|
+
table: {
|
|
75
|
+
category: 'Properties',
|
|
76
|
+
defaultValue: { summary: 'primary' }
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
};
|
|
81
|
+
export const Heading = {
|
|
82
|
+
args: {
|
|
83
|
+
label: 'Dolor sit <a href="https://www.rededorsaoluiz.com.br" target="_blank">amet</a>, consectetur adipiscing elit.',
|
|
84
|
+
size: 'regular',
|
|
85
|
+
weight: 'regular',
|
|
86
|
+
level: 1,
|
|
87
|
+
spotColor: 'primary',
|
|
88
|
+
inverted: false,
|
|
89
|
+
},
|
|
90
|
+
};
|
|
91
|
+
//# sourceMappingURL=cura-heading.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cura-heading.stories.js","sourceRoot":"","sources":["../../../../src/components/text/cura-heading/cura-heading.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;AACA,eAAe;EACb,KAAK,EAAE,yBAAyB;EAChC,IAAI,EAAE,CAAC,UAAU,CAAC;EAClB,MAAM,EAAE,CAAC,EAAkB,EAAE,EAAE;QAAtB,EAAE,KAAK,OAAW,EAAN,IAAI,cAAhB,SAAkB,CAAF;IACvB,mFAAmF;IACnF,gCAAgC;IAChC,OAAO;WACA,IAAI,CAAC,KAAK;gBACL,IAAI,CAAC,SAAS;UACpB,IAAI,CAAC,IAAI;cACL,IAAI,CAAC,QAAQ;YACf,IAAI,CAAC,MAAM;IACnB,KAAK;;8gBAEqgB,CAAC;EAC7gB,CAAC;EACD,QAAQ,EAAE;IACR,KAAK,EAAE;MACL,OAAO,EAAE,MAAM;MACf,WAAW,EAAE,qFAAqF;MAClG,IAAI,EAAE,SAAS;KAChB;IACD,QAAQ,EAAE;MACR,OAAO,EAAE,SAAS;MAClB,WAAW,EAAE,wDAAwD;MACrE,KAAK,EAAE;QACL,QAAQ,EAAE,YAAY;QACtB,YAAY,EAAE,EAAE,OAAO,EAAE,OAAO,EAAC;OAClC;KACF;IACD,IAAI,EAAE;MACJ,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;MAC3B,OAAO,EAAE,CAAC,OAAO,EAAE,SAAS,EAAE,OAAO,CAAC;MACtC,WAAW,EAAE,uBAAuB;MACpC,KAAK,EAAE;QACL,QAAQ,EAAE,YAAY;QACtB,YAAY,EAAE,EAAE,OAAO,EAAE,SAAS,EAAC;OACpC;KACF;IACD,MAAM,EAAE;MACN,OAAO,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE;MACjC,OAAO,EAAE,CAAC,SAAS,EAAE,MAAM,CAAC;MAC5B,WAAW,EAAE,oBAAoB;MACjC,KAAK,EAAE;QACL,QAAQ,EAAE,YAAY;QACtB,YAAY,EAAE,EAAE,OAAO,EAAE,SAAS,EAAC;OACpC;KACF;IACD,SAAS,EAAE;MACT,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;MAC3B,OAAO,EAAE,CAAC,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,CAAC;MAC7F,WAAW,EAAE,kEAAkE;MAC/E,KAAK,EAAE;QACL,QAAQ,EAAE,YAAY;QACtB,YAAY,EAAE,EAAE,OAAO,EAAE,SAAS,EAAC;OACpC;KACF;IACD,KAAK,EAAE;MACL,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE;MACpD,WAAW,EAAE,wDAAwD;MACrE,KAAK,EAAE;QACL,QAAQ,EAAE,YAAY;QACtB,YAAY,EAAE,EAAE,OAAO,EAAE,SAAS,EAAC;OACpC;KACF;GACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG;EACrB,IAAI,EAAE;IACJ,KAAK,EAAE,8GAA8G;IACrH,IAAI,EAAE,SAAS;IACf,MAAM,EAAE,SAAS;IACjB,KAAK,EAAE,CAAC;IACR,SAAS,EAAE,SAAS;IACpB,QAAQ,EAAE,KAAK;GAChB;CACF,CAAC","sourcesContent":["\nexport default {\n title: 'Components/Text/Heading',\n tags: ['autodocs'],\n render: ({ label, ...args }) => {\n // You can either use a function to create DOM elements or use a plain html string!\n // return `<div>${label}</div>`;\n return `<cura-heading\n level=\"${args.level}\"\n spot-color=\"${args.spotColor}\"\n size=\"${args.size}\"\n inverted=\"${args.inverted}\"\n weight=\"${args.weight}\">\n ${label}\n</cura-heading>\n<cura-paragraph>Proin quis turpis et turpis efficitur dictum. Suspendisse egestas posuere libero. Sed non dapibus urna. Sed luctus tincidunt nibh, eu tincidunt justo. Curabitur at ullamcorper mauris, feugiat fermentum nulla. Quisque sed nibh in odio blandit mollis at quis dolor. Sed urna lacus, ultricies ac vulputate at, luctus eu ex. Duis at elit facilisis, iaculis orci sed, suscipit nisl. Phasellus semper lorem sed tincidunt semper. Morbi lobortis eu mi sed ultricies. Sed consequat id orci at iaculis.</cura-paragraph>`;\n },\n argTypes: {\n label: {\n control: 'text',\n description: 'Texto puro com ou sem quebra de linha dentro do componente. Não é propriedade HTML.',\n name: 'Content'\n },\n inverted: {\n control: 'boolean',\n description: 'Inverte cores do texto para aplicação em fundo escuro.',\n table: {\n category: 'Properties',\n defaultValue: { summary: 'false'}\n }\n },\n size: {\n control: { type: 'select' },\n options: ['small', 'regular', 'large'],\n description: 'Tamanhos disponíveis.',\n table: {\n category: 'Properties',\n defaultValue: { summary: 'regular'}\n }\n },\n weight: {\n control: { type: 'inline-radio' },\n options: ['regular', 'bold'],\n description: 'Espessura de fonte',\n table: {\n category: 'Properties',\n defaultValue: { summary: 'regular'}\n }\n },\n spotColor: {\n control: { type: 'select' },\n options: ['primary', 'secondary', 'accent', 'info', 'success', 'error', 'warning', 'neutral'],\n description: 'Cor fundamental do Design System sem profundidade (ex: primary).',\n table: {\n category: 'Properties',\n defaultValue: { summary: 'primary'}\n }\n },\n level: {\n control: { type: 'number', min: 1, max: 6, step: 1 },\n description: 'Define a tag semântica do título. Ex. h1, h2, h3, etc.',\n table: {\n category: 'Properties',\n defaultValue: { summary: 'primary'}\n }\n }\n },\n};\n\nexport const Heading = {\n args: {\n label: 'Dolor sit <a href=\"https://www.rededorsaoluiz.com.br\" target=\"_blank\">amet</a>, consectetur adipiscing elit.',\n size: 'regular',\n weight: 'regular',\n level: 1,\n spotColor: 'primary',\n inverted: false,\n },\n};\n"]}
|
|
@@ -0,0 +1,115 @@
|
|
|
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
|
+
}
|