@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,674 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-72217b50.js');
|
|
6
|
+
|
|
7
|
+
const curaAccordionCss = ":host{display:block;color:var(--font-color);font-size:var(--font-size);font-size:var(--font-size);font-family:var(--font-family);font-weight:var(--font-weight-regular)}:host::after{content:\"\";display:block;border-bottom:solid 1px var(--neutral-base);width:100%}";
|
|
8
|
+
|
|
9
|
+
const CuraAccordion = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
12
|
+
this.mutationObserverCallback = (mutations, _) => {
|
|
13
|
+
var _a;
|
|
14
|
+
for (const mutation of mutations) {
|
|
15
|
+
if (mutation.type === 'attributes' && mutation.attributeName === 'opened' && ((_a = mutation.target) === null || _a === void 0 ? void 0 : _a['opened'])) {
|
|
16
|
+
if (this.behavior !== 'default')
|
|
17
|
+
continue;
|
|
18
|
+
this.host.querySelectorAll('cura-accordion-item').forEach(item => {
|
|
19
|
+
if (item != mutation.target) {
|
|
20
|
+
item.opened = false;
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
if (mutation.type === 'childList') {
|
|
25
|
+
const addedNodes = Array.from(mutation.addedNodes || []);
|
|
26
|
+
for (let node of addedNodes) {
|
|
27
|
+
this.setChildProperties(node);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
this.mutationObserver = new MutationObserver(this.mutationObserverCallback);
|
|
33
|
+
this.color = 'primary';
|
|
34
|
+
this.activeColor = 'accent';
|
|
35
|
+
this.colorMode = 'dark';
|
|
36
|
+
this.iconSize = 32;
|
|
37
|
+
this.openIcon = 'down';
|
|
38
|
+
this.closeIcon = 'up';
|
|
39
|
+
this.iconColor = '';
|
|
40
|
+
this.iconActiveColor = '';
|
|
41
|
+
this.behavior = 'default';
|
|
42
|
+
this.styles = {};
|
|
43
|
+
}
|
|
44
|
+
handleChangeColor() {
|
|
45
|
+
this.setColors();
|
|
46
|
+
}
|
|
47
|
+
connectedCallback() {
|
|
48
|
+
const weights = window.CuraAPI.theme.fonts.getWeights();
|
|
49
|
+
this.styles['--base-spacing'] = window.CuraAPI.theme.spacing.getSpacing();
|
|
50
|
+
this.styles['--neutral-purewhite'] = window.CuraAPI.theme.colors.getColor(`neutral-purewhite`);
|
|
51
|
+
this.styles['--neutral-lighter'] = window.CuraAPI.theme.colors.getColor(`neutral-lighter`);
|
|
52
|
+
this.styles['--neutral-base'] = window.CuraAPI.theme.colors.getColor(`neutral-base`);
|
|
53
|
+
this.styles['--font-size'] = window.CuraAPI.theme.fonts.getSize();
|
|
54
|
+
this.styles['--font-color'] = window.CuraAPI.theme.fonts.getColor();
|
|
55
|
+
this.styles['--font-family'] = window.CuraAPI.theme.fonts.getFamily();
|
|
56
|
+
this.styles['--font-weight-regular'] = weights.regular;
|
|
57
|
+
this.setColors();
|
|
58
|
+
}
|
|
59
|
+
componentDidLoad() {
|
|
60
|
+
this.host.querySelectorAll('cura-accordion-item').forEach(item => {
|
|
61
|
+
this.setChildProperties(item);
|
|
62
|
+
});
|
|
63
|
+
const options = { childList: true, subtree: true, attributes: true };
|
|
64
|
+
this.mutationObserver.observe(this.host, options);
|
|
65
|
+
}
|
|
66
|
+
disconnectedCallback() {
|
|
67
|
+
this.mutationObserver.disconnect();
|
|
68
|
+
}
|
|
69
|
+
setChildProperties(item) {
|
|
70
|
+
// Theme
|
|
71
|
+
item.colorMode = this.colorMode;
|
|
72
|
+
item.iconColor = this.iconColor || this.color;
|
|
73
|
+
item.iconActiveColor = this.iconActiveColor || this.activeColor;
|
|
74
|
+
// Icon
|
|
75
|
+
item.iconSize = this.iconSize;
|
|
76
|
+
item.openIcon = this.openIcon;
|
|
77
|
+
item.closeIcon = this.closeIcon;
|
|
78
|
+
}
|
|
79
|
+
setColors() {
|
|
80
|
+
this.styles = Object.assign(Object.assign({}, this.styles), { '--color-lighter': window.CuraAPI.theme.colors.getColor(`${this.color}-lighter`), '--color-light': window.CuraAPI.theme.colors.getColor(`${this.color}-light`), '--color-base': window.CuraAPI.theme.colors.getColor(`${this.color}-base`), '--color-dark': window.CuraAPI.theme.colors.getColor(`${this.color}-dark`), '--color-active-lighter': window.CuraAPI.theme.colors.getColor(`${this.activeColor}-lighter`), '--color-active-light': window.CuraAPI.theme.colors.getColor(`${this.activeColor}-light`), '--color-active-base': window.CuraAPI.theme.colors.getColor(`${this.activeColor}-base`), '--color-active-dark': window.CuraAPI.theme.colors.getColor(`${this.activeColor}-dark`), '--icon-color-lighter': window.CuraAPI.theme.colors.getColor(`${this.iconColor || this.color}-lighter`), '--icon-color-light': window.CuraAPI.theme.colors.getColor(`${this.iconColor || this.color}-light`), '--icon-color-base': window.CuraAPI.theme.colors.getColor(`${this.iconColor || this.color}-base`), '--icon-color-dark': window.CuraAPI.theme.colors.getColor(`${this.iconColor || this.color}-dark`), '--icon-color-active-lighter': window.CuraAPI.theme.colors.getColor(`${this.iconActiveColor || this.activeColor}-lighter`), '--icon-color-active-light': window.CuraAPI.theme.colors.getColor(`${this.iconActiveColor || this.activeColor}-light`), '--icon-color-active-base': window.CuraAPI.theme.colors.getColor(`${this.iconActiveColor || this.activeColor}-base`), '--icon-color-active-dark': window.CuraAPI.theme.colors.getColor(`${this.iconActiveColor || this.activeColor}-dark`) });
|
|
81
|
+
}
|
|
82
|
+
render() {
|
|
83
|
+
return (index.h(index.Host, { style: this.styles }, index.h("slot", { name: 'accordion-item' })));
|
|
84
|
+
}
|
|
85
|
+
get host() { return index.getElement(this); }
|
|
86
|
+
static get watchers() { return {
|
|
87
|
+
"color": ["handleChangeColor"],
|
|
88
|
+
"activeColor": ["handleChangeColor"]
|
|
89
|
+
}; }
|
|
90
|
+
};
|
|
91
|
+
CuraAccordion.style = curaAccordionCss;
|
|
92
|
+
|
|
93
|
+
const curaAccordionItemCss = ":host{display:block}:host .accordion-item{width:100%}:host .accordion-item .label{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host .accordion-item .label::before{content:\"\";display:block;border-top:solid 1px var(--neutral-base);width:100%}:host .accordion-item .label .label-container{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;gap:calc(var(--base-spacing) * 2px);min-height:40px;word-break:break-word;cursor:pointer;font-size:1.14em;font-weight:var(--font-weight-regular);color:var(--color-base);padding:0px}:host .accordion-item .label .label-container cura-icon{margin-right:4px}:host .accordion-item .label .label-container:hover{color:var(--color-light)}:host .accordion-item .label .label-container:hover cura-icon{--color:var(--icon-color-light) !important}:host .accordion-item .label .label-container:active{color:var(--color-dark)}:host .accordion-item .label .label-container:active cura-icon{--color:var(--icon-color-dark) !important}:host .accordion-item .content{font-size:1em;overflow:hidden;max-height:0;-webkit-transition:max-height 0.25s ease;transition:max-height 0.25s ease}:host .accordion-item .content .content-wrapper{padding:calc(var(--base-spacing) * 2px) 0px;border-top:solid 1px var(--neutral-base)}:host .accordion-item.active .label .label-container{color:var(--color-active-base)}:host .accordion-item.active .label .label-container:hover{color:var(--color-active-light)}:host .accordion-item.active .label .label-container:hover cura-icon{--color:var(--icon-color-active-light) !important}:host .accordion-item.active .label .label-container:active{color:var(--color-active-dark)}:host .accordion-item.active .label .label-container:active cura-icon{--color:var(--icon-color-active-dark) !important}:host .accordion-item.active .content{max-height:200vh;overflow-y:auto;-webkit-transition:max-height 0.5s ease 0.14s;transition:max-height 0.5s ease 0.14s}:host .accordion-item.inverted .label .label-container{color:var(--neutral-lighter)}:host .accordion-item.inverted .label .label-container:hover{color:var(--color-lighter)}:host .accordion-item.inverted .label .label-container:hover cura-icon{--color:var(--icon-color-lighter) !important}:host .accordion-item.inverted .label .label-container:active{color:var(--color-light)}:host .accordion-item.inverted .label .label-container:active cura-icon{--color:var(--icon-color-light) !important}:host .accordion-item.active.inverted .label .label-container{color:var(--neutral-purewhite)}:host .accordion-item.active.inverted .label .label-container:hover{color:var(--color-active-lighter)}:host .accordion-item.active.inverted .label .label-container:hover cura-icon{--color:var(--icon-color-active-lighter) !important}:host .accordion-item.active.inverted .label .label-container:active{color:var(--color-active-light)}:host .accordion-item.active.inverted .label .label-container:active cura-icon{--color:var(--icon-color-active-light) !important}@media (min-width: 768px) and (max-width: 1365px){:host .accordion-item .label .label-container{font-size:1.29em}:host .accordion-item .content{font-size:1.14em}}@media (min-width: 1366px){:host .accordion-item .label .label-container{font-size:1.29em}:host .accordion-item .content{font-size:1.14em}}";
|
|
94
|
+
|
|
95
|
+
const CuraAccordionItem = class {
|
|
96
|
+
constructor(hostRef) {
|
|
97
|
+
index.registerInstance(this, hostRef);
|
|
98
|
+
this.label = '';
|
|
99
|
+
this.iconSize = 32;
|
|
100
|
+
this.openIcon = 'down';
|
|
101
|
+
this.closeIcon = 'up';
|
|
102
|
+
this.iconColor = '';
|
|
103
|
+
this.iconActiveColor = '';
|
|
104
|
+
this.colorMode = 'dark';
|
|
105
|
+
this.opened = false;
|
|
106
|
+
this.styles = {};
|
|
107
|
+
}
|
|
108
|
+
getIconColor() {
|
|
109
|
+
const inverted = this.colorMode === 'light';
|
|
110
|
+
const iconColor = inverted ? 'neutral-lighter' : `${this.iconColor}-base`;
|
|
111
|
+
const iconActiveColor = inverted ? 'neutral-purewhite' : `${this.iconActiveColor}-base`;
|
|
112
|
+
return this.opened ? iconActiveColor : iconColor;
|
|
113
|
+
}
|
|
114
|
+
getClasses() {
|
|
115
|
+
const classes = {};
|
|
116
|
+
classes['accordion-item'] = true;
|
|
117
|
+
classes['active'] = this.opened;
|
|
118
|
+
classes['inverted'] = this.colorMode === 'light';
|
|
119
|
+
return classes;
|
|
120
|
+
}
|
|
121
|
+
accordionItemClick(_) {
|
|
122
|
+
this.opened = !this.opened;
|
|
123
|
+
}
|
|
124
|
+
render() {
|
|
125
|
+
return (index.h(index.Host, { slot: "accordion-item" }, index.h("div", { class: this.getClasses(), style: this.styles }, index.h("div", { class: "label", onClick: e => this.accordionItemClick(e) }, index.h("div", { class: "label-container" }, index.h("span", null, this.label), index.h("cura-icon", { name: this.opened ? this.closeIcon : this.openIcon, size: this.iconSize, color: this.getIconColor() }))), index.h("div", { class: 'content' }, index.h("div", { class: "content-wrapper" }, index.h("slot", null))))));
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
CuraAccordionItem.style = curaAccordionItemCss;
|
|
129
|
+
|
|
130
|
+
const curaButtonCss = ":host{--border-radius:4px;display:inline-block;vertical-align:middle}:host button,:host a{outline:none;-webkit-box-shadow:none;box-shadow:none;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;width:100%;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;text-decoration:none !important;font-size:var(--font-size);cursor:pointer;-webkit-transition:background-color 0.07s linear, border-color 0.07s linear, -webkit-box-shadow 0.07s linear;transition:background-color 0.07s linear, border-color 0.07s linear, -webkit-box-shadow 0.07s linear;transition:background-color 0.07s linear, box-shadow 0.07s linear, border-color 0.07s linear;transition:background-color 0.07s linear, box-shadow 0.07s linear, border-color 0.07s linear, -webkit-box-shadow 0.07s linear;border-radius:var(--border-radius);background-color:var(--color-base);border:none;padding:calc(var(--base-spacing) * 3.5px) calc(var(--base-spacing) * 4px);min-height:calc(var(--base-spacing) * 13px);min-width:calc(var(--base-spacing) * 13px)}:host button:not(.isLoading):not(.disabled):hover,:host a:not(.isLoading):not(.disabled):hover{background-color:var(--color-light)}:host button:not(.isLoading):not(.disabled):active,:host a:not(.isLoading):not(.disabled):active{background-color:var(--color-dark)}:host button:hover,:host a:hover{-webkit-box-shadow:0 4px 8px 0 rgba(38, 38, 38, 0.16);box-shadow:0 4px 8px 0 rgba(38, 38, 38, 0.16)}:host button.medium:hover,:host a.medium:hover{-webkit-box-shadow:0 3px 6px 0 rgba(38, 38, 38, 0.16);box-shadow:0 3px 6px 0 rgba(38, 38, 38, 0.16)}:host button.small:hover,:host a.small:hover{-webkit-box-shadow:0 2px 5px 0 rgba(38, 38, 38, 0.16);box-shadow:0 2px 5px 0 rgba(38, 38, 38, 0.16)}:host button:active,:host button.disabled:hover,:host button.isLoading:hover,:host a:active,:host a.disabled:hover,:host a.isLoading:hover{-webkit-box-shadow:none !important;box-shadow:none !important}:host button.medium,:host a.medium{padding:calc(var(--base-spacing) * 2.75px) calc(var(--base-spacing) * 4px);min-height:calc(var(--base-spacing) * 11px);min-width:calc(var(--base-spacing) * 11px)}:host button.small,:host a.small{padding:calc(var(--base-spacing) * 1.5px) calc(var(--base-spacing) * 3px);min-height:calc(var(--base-spacing) * 8px);min-width:calc(var(--base-spacing) * 8px)}:host button .button-container,:host a .button-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:1;-webkit-transition:opacity 0.2s linear;transition:opacity 0.2s linear}:host button.icon-right .button-container,:host a.icon-right .button-container{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host button .label,:host a .label{-ms-flex:1;flex:1;font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:1.43em;line-height:1.2em;text-align:var(--text-align, \"left\");color:var(--neutral-black)}:host button .label.inverted,:host a .label.inverted{color:var(--neutral-white)}:host button.medium .label,:host a.medium .label{font-size:1.14em}:host button.small .label,:host a.small .label{font-size:1em}:host button.icon-left cura-icon,:host a.icon-left cura-icon{margin-right:calc(var(--base-spacing) * 3px)}:host button.icon-right cura-icon,:host a.icon-right cura-icon{margin-left:calc(var(--base-spacing) * 3px)}:host button.medium.icon-left cura-icon,:host a.medium.icon-left cura-icon{margin-right:calc(var(--base-spacing) * 2.7px)}:host button.medium.icon-right cura-icon,:host a.medium.icon-right cura-icon{margin-left:calc(var(--base-spacing) * 2.7px)}:host button.small.icon-left cura-icon,:host a.small.icon-left cura-icon{margin-right:calc(var(--base-spacing) * 2.5px)}:host button.small.icon-right cura-icon,:host a.small.icon-right cura-icon{margin-left:calc(var(--base-spacing) * 2.5px)}:host button.disabled,:host a.disabled{cursor:not-allowed;background-color:var(--neutral-light)}:host button.disabled .label,:host button.disabled .label.inverted,:host a.disabled .label,:host a.disabled .label.inverted{color:var(--neutral-dark)}:host button.icon-only,:host a.icon-only{padding:calc(var(--base-spacing) * 3.5px)}:host button.icon-only .label,:host a.icon-only .label{display:none}:host button.icon-only cura-icon,:host a.icon-only cura-icon{margin-left:0 !important;margin-right:0 !important}:host button.icon-only.medium,:host a.icon-only.medium{padding:calc(var(--base-spacing) * 2.75px)}:host button.icon-only.small,:host a.icon-only.small{padding:calc(var(--base-spacing) * 1.5px)}:host button cura-loader-circle,:host a cura-loader-circle{position:absolute;display:none}:host button.isLoading,:host a.isLoading{cursor:wait}:host button.isLoading .button-container,:host a.isLoading .button-container{opacity:0.3}:host button.isLoading.icon-only .button-container,:host a.isLoading.icon-only .button-container{opacity:0}:host button.isLoading cura-loader-circle,:host a.isLoading cura-loader-circle{display:block}";
|
|
131
|
+
|
|
132
|
+
const CuraButton = class {
|
|
133
|
+
constructor(hostRef) {
|
|
134
|
+
index.registerInstance(this, hostRef);
|
|
135
|
+
this.size = 'medium';
|
|
136
|
+
this.disabled = false;
|
|
137
|
+
this.isLoading = false;
|
|
138
|
+
this.iconName = undefined;
|
|
139
|
+
this.iconset = 'default';
|
|
140
|
+
this.iconPosition = 'left';
|
|
141
|
+
this.iconOnly = undefined;
|
|
142
|
+
this.href = undefined;
|
|
143
|
+
this.target = "_self";
|
|
144
|
+
this.color = 'accent';
|
|
145
|
+
this.fontColor = 'dark';
|
|
146
|
+
this.textAlign = 'left';
|
|
147
|
+
this.styles = {};
|
|
148
|
+
}
|
|
149
|
+
handleChangeColor() {
|
|
150
|
+
this.setColors();
|
|
151
|
+
}
|
|
152
|
+
connectedCallback() {
|
|
153
|
+
this.weights = window.CuraAPI.theme.fonts.getWeights();
|
|
154
|
+
this.styles['--base-spacing'] = window.CuraAPI.theme.spacing.getSpacing();
|
|
155
|
+
this.styles['--neutral-white'] = window.CuraAPI.theme.colors.getColor(`neutral-white`);
|
|
156
|
+
this.styles['--neutral-light'] = window.CuraAPI.theme.colors.getColor(`neutral-light`);
|
|
157
|
+
this.styles['--neutral-dark'] = window.CuraAPI.theme.colors.getColor(`neutral-dark`);
|
|
158
|
+
this.styles['--font-size'] = window.CuraAPI.theme.fonts.getSize();
|
|
159
|
+
this.styles['--font-family'] = window.CuraAPI.theme.fonts.getFamily();
|
|
160
|
+
this.styles['--font-weight-medium'] = this.weights.medium;
|
|
161
|
+
this.styles['--text-align'] = this.textAlign;
|
|
162
|
+
this.setColors();
|
|
163
|
+
}
|
|
164
|
+
getClasses() {
|
|
165
|
+
const classes = {};
|
|
166
|
+
classes[`${this.size.toLowerCase()}`] = true;
|
|
167
|
+
classes[`icon-${this.iconPosition.toLowerCase()}`] = true;
|
|
168
|
+
classes[`icon-only`] = this.iconOnly;
|
|
169
|
+
classes['inverted'] = this.fontColor === 'light';
|
|
170
|
+
classes['disabled'] = this.disabled;
|
|
171
|
+
classes['isLoading'] = this.isLoading;
|
|
172
|
+
return classes;
|
|
173
|
+
}
|
|
174
|
+
setColors() {
|
|
175
|
+
this.styles = Object.assign(Object.assign({}, this.styles), { '--color-light': window.CuraAPI.theme.colors.getColor(`${this.color}-light`), '--color-base': window.CuraAPI.theme.colors.getColor(`${this.color}-base`), '--color-dark': window.CuraAPI.theme.colors.getColor(`${this.color}-dark`) });
|
|
176
|
+
}
|
|
177
|
+
getIcon() {
|
|
178
|
+
if (!this.iconName)
|
|
179
|
+
return '';
|
|
180
|
+
const iconSize = this.size === 'small' ? 16 : this.size === 'medium' ? 20 : 24;
|
|
181
|
+
const color = this.getSymbolColor();
|
|
182
|
+
return index.h("cura-icon", { name: this.iconName, iconset: this.iconset, size: iconSize, color: color });
|
|
183
|
+
}
|
|
184
|
+
getSymbolColor() {
|
|
185
|
+
return this.disabled
|
|
186
|
+
? 'neutral-dark'
|
|
187
|
+
: this.fontColor === 'light'
|
|
188
|
+
? 'neutral-white'
|
|
189
|
+
: 'neutral-black';
|
|
190
|
+
}
|
|
191
|
+
handleClick(e) {
|
|
192
|
+
if (this.disabled || this.isLoading)
|
|
193
|
+
e.preventDefault();
|
|
194
|
+
}
|
|
195
|
+
render() {
|
|
196
|
+
return (index.h(index.Host, null, this.href ? (index.h("a", { href: this.disabled ? '' : this.href, target: this.target, class: this.getClasses(), style: this.styles, onClick: (e) => this.handleClick(e) }, index.h("span", { class: "button-container" }, this.getIcon(), index.h("span", { class: { label: true, inverted: this.fontColor === 'light' } }, index.h("slot", null))), index.h("cura-loader-circle", { size: this.size, color: this.getSymbolColor() }))) : (index.h("button", { class: this.getClasses(), style: this.styles, disabled: this.disabled || null, onClick: (e) => this.handleClick(e) }, index.h("span", { class: "button-container" }, this.getIcon(), index.h("span", { class: { label: true, inverted: this.fontColor === 'light' } }, index.h("slot", null))), index.h("cura-loader-circle", { size: this.size, color: this.getSymbolColor() })))));
|
|
197
|
+
}
|
|
198
|
+
static get watchers() { return {
|
|
199
|
+
"color": ["handleChangeColor"]
|
|
200
|
+
}; }
|
|
201
|
+
};
|
|
202
|
+
CuraButton.style = curaButtonCss;
|
|
203
|
+
|
|
204
|
+
const curaButtonOutlineCss = ":host{--border-radius:4px;display:inline-block;vertical-align:middle}:host button,:host a{outline:none;-webkit-box-shadow:none;box-shadow:none;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;width:100%;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;text-decoration:none !important;font-size:var(--font-size);cursor:pointer;-webkit-transition:background-color 0.07s linear, border-color 0.07s linear, -webkit-box-shadow 0.07s linear;transition:background-color 0.07s linear, border-color 0.07s linear, -webkit-box-shadow 0.07s linear;transition:background-color 0.07s linear, box-shadow 0.07s linear, border-color 0.07s linear;transition:background-color 0.07s linear, box-shadow 0.07s linear, border-color 0.07s linear, -webkit-box-shadow 0.07s linear;border-radius:var(--border-radius);background-color:transparent;border:none;-webkit-box-shadow:inset 0px 0px 0px 2px var(--color-base);box-shadow:inset 0px 0px 0px 2px var(--color-base);padding:calc(var(--base-spacing) * 3.5px) calc(var(--base-spacing) * 4px);min-height:calc(var(--base-spacing) * 13px);min-width:calc(var(--base-spacing) * 13px)}:host button:not(.disabled):not(.isLoading):hover,:host a:not(.disabled):not(.isLoading):hover{-webkit-box-shadow:inset 0px 0px 0px 2px var(--color-light);box-shadow:inset 0px 0px 0px 2px var(--color-light)}:host button:not(.disabled):not(.isLoading):hover .label,:host a:not(.disabled):not(.isLoading):hover .label{color:var(--color-light)}:host button:not(.disabled):not(.isLoading):hover cura-icon,:host a:not(.disabled):not(.isLoading):hover cura-icon{--color:var(--color-light) !important}:host button:not(.disabled):not(.inverted):not(.isLoading):active,:host a:not(.disabled):not(.inverted):not(.isLoading):active{-webkit-box-shadow:inset 0px 0px 0px 2px var(--color-dark);box-shadow:inset 0px 0px 0px 2px var(--color-dark)}:host button:not(.disabled):not(.inverted):not(.isLoading):active .label,:host a:not(.disabled):not(.inverted):not(.isLoading):active .label{color:var(--color-dark)}:host button:not(.disabled):not(.inverted):not(.isLoading):active cura-icon,:host a:not(.disabled):not(.inverted):not(.isLoading):active cura-icon{--color:var(--color-dark) !important}:host button.medium,:host a.medium{padding:calc(var(--base-spacing) * 2.75px) calc(var(--base-spacing) * 4px);min-height:calc(var(--base-spacing) * 11px);min-width:calc(var(--base-spacing) * 11px)}:host button.small,:host a.small{padding:calc(var(--base-spacing) * 1.5px) calc(var(--base-spacing) * 3px);min-height:calc(var(--base-spacing) * 8px);min-width:calc(var(--base-spacing) * 8px)}:host button .button-container,:host a .button-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:1;-webkit-transition:opacity 0.2s linear;transition:opacity 0.2s linear}:host button.icon-right .button-container,:host a.icon-right .button-container{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host button .label,:host a .label{-ms-flex:1;flex:1;font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:1.43em;line-height:1.2em;text-align:var(--text-align, \"left\");color:var(--color-base)}:host button .label.inverted,:host a .label.inverted{color:var(--neutral-white)}:host button.medium .label,:host a.medium .label{font-size:1.14em}:host button.small .label,:host a.small .label{font-size:1em}:host button.icon-left cura-icon,:host a.icon-left cura-icon{margin-right:calc(var(--base-spacing) * 3px)}:host button.icon-right cura-icon,:host a.icon-right cura-icon{margin-left:calc(var(--base-spacing) * 3px)}:host button.medium.icon-left cura-icon,:host a.medium.icon-left cura-icon{margin-right:calc(var(--base-spacing) * 2.7px)}:host button.medium.icon-right cura-icon,:host a.medium.icon-right cura-icon{margin-left:calc(var(--base-spacing) * 2.7px)}:host button.small.icon-left cura-icon,:host a.small.icon-left cura-icon{margin-right:calc(var(--base-spacing) * 2.5px)}:host button.small.icon-right cura-icon,:host a.small.icon-right cura-icon{margin-left:calc(var(--base-spacing) * 2.5px)}:host button.disabled,:host a.disabled{cursor:not-allowed;-webkit-box-shadow:inset 0px 0px 0px 2px var(--neutral-base);box-shadow:inset 0px 0px 0px 2px var(--neutral-base)}:host button.disabled .label,:host button.disabled .label.inverted,:host a.disabled .label,:host a.disabled .label.inverted{color:var(--neutral-dark)}:host button.disabled.inverted,:host a.disabled.inverted{opacity:0.6;-webkit-box-shadow:inset 0px 0px 0px 2px var(--neutral-white);box-shadow:inset 0px 0px 0px 2px var(--neutral-white)}:host button.disabled.inverted .label,:host button.disabled.inverted .label.inverted,:host a.disabled.inverted .label,:host a.disabled.inverted .label.inverted{color:var(--neutral-white)}:host button.disabled.inverted cura-icon,:host a.disabled.inverted cura-icon{--color:var(--neutral-white) !important}:host button.disabled.inverted cura-loader-circle,:host a.disabled.inverted cura-loader-circle{--color:var(--neutral-white) !important}:host button.icon-only,:host a.icon-only{padding:calc(var(--base-spacing) * 3.5px)}:host button.icon-only .label,:host a.icon-only .label{display:none}:host button.icon-only cura-icon,:host a.icon-only cura-icon{margin-left:0 !important;margin-right:0 !important}:host button.icon-only.medium,:host a.icon-only.medium{padding:calc(var(--base-spacing) * 2.75px)}:host button.icon-only.small,:host a.icon-only.small{padding:calc(var(--base-spacing) * 1.5px)}:host button.inverted,:host a.inverted{-webkit-box-shadow:inset 0px 0px 0px 2px var(--neutral-white);box-shadow:inset 0px 0px 0px 2px var(--neutral-white)}:host button.inverted:not(.disabled):not(.isLoading):hover,:host a.inverted:not(.disabled):not(.isLoading):hover{-webkit-box-shadow:inset 0px 0px 0px 2px var(--color-lighter);box-shadow:inset 0px 0px 0px 2px var(--color-lighter)}:host button.inverted:not(.disabled):not(.isLoading):hover .label,:host a.inverted:not(.disabled):not(.isLoading):hover .label{color:var(--color-lighter)}:host button.inverted:not(.disabled):not(.isLoading):hover cura-icon,:host a.inverted:not(.disabled):not(.isLoading):hover cura-icon{--color:var(--color-lighter) !important}:host button.inverted:not(.disabled):not(.isLoading):active,:host a.inverted:not(.disabled):not(.isLoading):active{-webkit-box-shadow:inset 0px 0px 0px 2px var(--color-light);box-shadow:inset 0px 0px 0px 2px var(--color-light)}:host button.inverted:not(.disabled):not(.isLoading):active .label,:host a.inverted:not(.disabled):not(.isLoading):active .label{color:var(--color-light)}:host button.inverted:not(.disabled):not(.isLoading):active cura-icon,:host a.inverted:not(.disabled):not(.isLoading):active cura-icon{--color:var(--color-light) !important}:host button cura-loader-circle,:host a cura-loader-circle{position:absolute;display:none}:host button.isLoading,:host a.isLoading{cursor:wait}:host button.isLoading .button-container,:host a.isLoading .button-container{opacity:0.3}:host button.isLoading.icon-only .button-container,:host a.isLoading.icon-only .button-container{opacity:0}:host button.isLoading cura-loader-circle,:host a.isLoading cura-loader-circle{display:block}";
|
|
205
|
+
|
|
206
|
+
const CuraButtonOutline = class {
|
|
207
|
+
constructor(hostRef) {
|
|
208
|
+
index.registerInstance(this, hostRef);
|
|
209
|
+
this.size = 'large';
|
|
210
|
+
this.disabled = false;
|
|
211
|
+
this.isLoading = false;
|
|
212
|
+
this.iconName = undefined;
|
|
213
|
+
this.iconset = 'default';
|
|
214
|
+
this.iconPosition = 'left';
|
|
215
|
+
this.iconOnly = undefined;
|
|
216
|
+
this.href = undefined;
|
|
217
|
+
this.target = "_self";
|
|
218
|
+
this.color = 'accent';
|
|
219
|
+
this.fontColor = 'dark';
|
|
220
|
+
this.textAlign = 'left';
|
|
221
|
+
this.styles = {};
|
|
222
|
+
}
|
|
223
|
+
handleChangeColor() {
|
|
224
|
+
this.setColors();
|
|
225
|
+
}
|
|
226
|
+
connectedCallback() {
|
|
227
|
+
this.weights = window.CuraAPI.theme.fonts.getWeights();
|
|
228
|
+
this.styles['--base-spacing'] = window.CuraAPI.theme.spacing.getSpacing();
|
|
229
|
+
this.styles['--neutral-white'] = window.CuraAPI.theme.colors.getColor(`neutral-white`);
|
|
230
|
+
this.styles['--neutral-base'] = window.CuraAPI.theme.colors.getColor(`neutral-base`);
|
|
231
|
+
this.styles['--neutral-dark'] = window.CuraAPI.theme.colors.getColor(`neutral-dark`);
|
|
232
|
+
this.styles['--font-size'] = window.CuraAPI.theme.fonts.getSize();
|
|
233
|
+
this.styles['--font-family'] = window.CuraAPI.theme.fonts.getFamily();
|
|
234
|
+
this.styles['--font-weight-medium'] = this.weights.medium;
|
|
235
|
+
this.styles['--text-align'] = this.textAlign;
|
|
236
|
+
this.setColors();
|
|
237
|
+
}
|
|
238
|
+
getClasses() {
|
|
239
|
+
const classes = {};
|
|
240
|
+
classes[`${this.size.toLowerCase()}`] = true;
|
|
241
|
+
classes[`icon-${this.iconPosition.toLowerCase()}`] = true;
|
|
242
|
+
classes[`icon-only`] = this.iconOnly;
|
|
243
|
+
classes['inverted'] = this.fontColor === 'light';
|
|
244
|
+
classes['disabled'] = this.disabled;
|
|
245
|
+
classes['isLoading'] = this.isLoading;
|
|
246
|
+
return classes;
|
|
247
|
+
}
|
|
248
|
+
setColors() {
|
|
249
|
+
this.styles = Object.assign(Object.assign({}, this.styles), { '--color-lighter': window.CuraAPI.theme.colors.getColor(`${this.color}-lighter`), '--color-light': window.CuraAPI.theme.colors.getColor(`${this.color}-light`), '--color-base': window.CuraAPI.theme.colors.getColor(`${this.color}-base`), '--color-dark': window.CuraAPI.theme.colors.getColor(`${this.color}-dark`) });
|
|
250
|
+
}
|
|
251
|
+
getIcon() {
|
|
252
|
+
if (!this.iconName)
|
|
253
|
+
return '';
|
|
254
|
+
const iconSize = this.size === 'small' ? 16 : this.size === 'medium' ? 20 : 24;
|
|
255
|
+
const color = this.getSymbolColor();
|
|
256
|
+
return index.h("cura-icon", { name: this.iconName, iconset: this.iconset, size: iconSize, color: color });
|
|
257
|
+
}
|
|
258
|
+
getSymbolColor() {
|
|
259
|
+
return this.disabled
|
|
260
|
+
? 'neutral-dark'
|
|
261
|
+
: this.fontColor === 'light'
|
|
262
|
+
? 'neutral-white'
|
|
263
|
+
: `${this.color}-base`;
|
|
264
|
+
}
|
|
265
|
+
handleClick(e) {
|
|
266
|
+
if (this.disabled || this.isLoading)
|
|
267
|
+
e.preventDefault();
|
|
268
|
+
}
|
|
269
|
+
render() {
|
|
270
|
+
return (index.h(index.Host, null, this.href ? (index.h("a", { href: this.disabled ? '' : this.href, target: this.target, class: this.getClasses(), style: this.styles, onClick: (e) => this.handleClick(e) }, index.h("span", { class: "button-container" }, this.getIcon(), index.h("span", { class: { label: true, inverted: this.fontColor === 'light' } }, index.h("slot", null))), index.h("cura-loader-circle", { size: this.size, color: this.getSymbolColor() }))) : (index.h("button", { class: this.getClasses(), style: this.styles, disabled: this.disabled || null, onClick: (e) => this.handleClick(e) }, index.h("span", { class: "button-container" }, this.getIcon(), index.h("span", { class: { label: true, inverted: this.fontColor === 'light' } }, index.h("slot", null))), index.h("cura-loader-circle", { size: this.size, color: this.getSymbolColor() })))));
|
|
271
|
+
}
|
|
272
|
+
static get watchers() { return {
|
|
273
|
+
"color": ["handleChangeColor"]
|
|
274
|
+
}; }
|
|
275
|
+
};
|
|
276
|
+
CuraButtonOutline.style = curaButtonOutlineCss;
|
|
277
|
+
|
|
278
|
+
const curaButtonTransparentCss = ":host{--border-radius:4px;display:inline-block;vertical-align:middle}:host button,:host a{outline:none;-webkit-box-shadow:none;box-shadow:none;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;width:100%;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;text-decoration:none !important;font-size:var(--font-size);cursor:pointer;-webkit-transition:background-color 0.07s linear, border-color 0.07s linear, -webkit-box-shadow 0.07s linear;transition:background-color 0.07s linear, border-color 0.07s linear, -webkit-box-shadow 0.07s linear;transition:background-color 0.07s linear, box-shadow 0.07s linear, border-color 0.07s linear;transition:background-color 0.07s linear, box-shadow 0.07s linear, border-color 0.07s linear, -webkit-box-shadow 0.07s linear;border-radius:var(--border-radius);background-color:transparent;border-width:0px;border-color:transparent;padding:calc(var(--base-spacing) * 3.5px) calc(var(--base-spacing) * 4px);min-height:calc(var(--base-spacing) * 13px);min-width:calc(var(--base-spacing) * 13px)}:host button:not(.disabled):not(.isLoading):hover .label,:host a:not(.disabled):not(.isLoading):hover .label{color:var(--color-light)}:host button:not(.disabled):not(.isLoading):hover cura-icon,:host a:not(.disabled):not(.isLoading):hover cura-icon{--color:var(--color-light) !important}:host button:not(.disabled):not(.inverted):not(.isLoading):active .label,:host a:not(.disabled):not(.inverted):not(.isLoading):active .label{color:var(--color-dark)}:host button:not(.disabled):not(.inverted):not(.isLoading):active cura-icon,:host a:not(.disabled):not(.inverted):not(.isLoading):active cura-icon{--color:var(--color-dark) !important}:host button.medium,:host a.medium{padding:calc(var(--base-spacing) * 2.75px) calc(var(--base-spacing) * 4px);min-height:calc(var(--base-spacing) * 11px);min-width:calc(var(--base-spacing) * 11px)}:host button.small,:host a.small{padding:calc(var(--base-spacing) * 1.5px) calc(var(--base-spacing) * 3px);min-height:calc(var(--base-spacing) * 8px);min-width:calc(var(--base-spacing) * 8px)}:host button .button-container,:host a .button-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:1;-webkit-transition:opacity 0.2s linear;transition:opacity 0.2s linear}:host button.icon-right .button-container,:host a.icon-right .button-container{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host button .label,:host a .label{-ms-flex:1;flex:1;font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:1.43em;line-height:1.2em;text-align:var(--text-align, \"left\");color:var(--color-base)}:host button .label.inverted,:host a .label.inverted{color:var(--neutral-white)}:host button.medium .label,:host a.medium .label{font-size:1.14em}:host button.small .label,:host a.small .label{font-size:1em}:host button.icon-left cura-icon,:host a.icon-left cura-icon{margin-right:calc(var(--base-spacing) * 3px)}:host button.icon-right cura-icon,:host a.icon-right cura-icon{margin-left:calc(var(--base-spacing) * 3px)}:host button.medium.icon-left cura-icon,:host a.medium.icon-left cura-icon{margin-right:calc(var(--base-spacing) * 2.7px)}:host button.medium.icon-right cura-icon,:host a.medium.icon-right cura-icon{margin-left:calc(var(--base-spacing) * 2.7px)}:host button.small.icon-left cura-icon,:host a.small.icon-left cura-icon{margin-right:calc(var(--base-spacing) * 2.5px)}:host button.small.icon-right cura-icon,:host a.small.icon-right cura-icon{margin-left:calc(var(--base-spacing) * 2.5px)}:host button.disabled,:host a.disabled{cursor:not-allowed;border-color:var(--neutral-base)}:host button.disabled .label,:host button.disabled .label.inverted,:host a.disabled .label,:host a.disabled .label.inverted{color:var(--neutral-dark)}:host button.disabled.inverted,:host a.disabled.inverted{opacity:0.6}:host button.disabled.inverted .label,:host button.disabled.inverted .label.inverted,:host a.disabled.inverted .label,:host a.disabled.inverted .label.inverted{color:var(--neutral-white)}:host button.disabled.inverted cura-icon,:host a.disabled.inverted cura-icon{--color:var(--neutral-white) !important}:host button.disabled.inverted cura-loader-circle,:host a.disabled.inverted cura-loader-circle{--color:var(--neutral-white) !important}:host button.icon-only,:host a.icon-only{padding:calc(var(--base-spacing) * 3.5px)}:host button.icon-only .label,:host a.icon-only .label{display:none}:host button.icon-only cura-icon,:host a.icon-only cura-icon{margin-left:0 !important;margin-right:0 !important}:host button.icon-only.medium,:host a.icon-only.medium{padding:calc(var(--base-spacing) * 2.75px)}:host button.icon-only.small,:host a.icon-only.small{padding:calc(var(--base-spacing) * 1.5px)}:host button.inverted:not(.isLoading):not(.disabled):hover .label,:host a.inverted:not(.isLoading):not(.disabled):hover .label{color:var(--color-lighter)}:host button.inverted:not(.isLoading):not(.disabled):hover cura-icon,:host a.inverted:not(.isLoading):not(.disabled):hover cura-icon{--color:var(--color-lighter) !important}:host button.inverted:not(.isLoading):not(.disabled):active .label,:host a.inverted:not(.isLoading):not(.disabled):active .label{color:var(--color-light)}:host button.inverted:not(.isLoading):not(.disabled):active cura-icon,:host a.inverted:not(.isLoading):not(.disabled):active cura-icon{--color:var(--color-light) !important}:host button cura-loader-circle,:host a cura-loader-circle{position:absolute;display:none}:host button.isLoading,:host a.isLoading{cursor:wait}:host button.isLoading .button-container,:host a.isLoading .button-container{opacity:0.3}:host button.isLoading.icon-only .button-container,:host a.isLoading.icon-only .button-container{opacity:0}:host button.isLoading cura-loader-circle,:host a.isLoading cura-loader-circle{display:block}";
|
|
279
|
+
|
|
280
|
+
const CuraButtonTransparent = class {
|
|
281
|
+
constructor(hostRef) {
|
|
282
|
+
index.registerInstance(this, hostRef);
|
|
283
|
+
this.size = 'large';
|
|
284
|
+
this.disabled = false;
|
|
285
|
+
this.isLoading = false;
|
|
286
|
+
this.iconName = undefined;
|
|
287
|
+
this.iconset = 'default';
|
|
288
|
+
this.iconPosition = 'left';
|
|
289
|
+
this.iconOnly = undefined;
|
|
290
|
+
this.href = undefined;
|
|
291
|
+
this.target = "_self";
|
|
292
|
+
this.color = 'accent';
|
|
293
|
+
this.fontColor = 'dark';
|
|
294
|
+
this.textAlign = 'left';
|
|
295
|
+
this.styles = {};
|
|
296
|
+
}
|
|
297
|
+
handleChangeColor() {
|
|
298
|
+
this.setColors();
|
|
299
|
+
}
|
|
300
|
+
connectedCallback() {
|
|
301
|
+
this.weights = window.CuraAPI.theme.fonts.getWeights();
|
|
302
|
+
this.styles['--base-spacing'] = window.CuraAPI.theme.spacing.getSpacing();
|
|
303
|
+
this.styles['--neutral-white'] = window.CuraAPI.theme.colors.getColor(`neutral-white`);
|
|
304
|
+
this.styles['--neutral-base'] = window.CuraAPI.theme.colors.getColor(`neutral-base`);
|
|
305
|
+
this.styles['--neutral-dark'] = window.CuraAPI.theme.colors.getColor(`neutral-dark`);
|
|
306
|
+
this.styles['--font-size'] = window.CuraAPI.theme.fonts.getSize();
|
|
307
|
+
this.styles['--font-family'] = window.CuraAPI.theme.fonts.getFamily();
|
|
308
|
+
this.styles['--font-weight-medium'] = this.weights.medium;
|
|
309
|
+
this.styles['--text-align'] = this.textAlign;
|
|
310
|
+
this.setColors();
|
|
311
|
+
}
|
|
312
|
+
getClasses() {
|
|
313
|
+
const classes = {};
|
|
314
|
+
classes[`${this.size.toLowerCase()}`] = true;
|
|
315
|
+
classes[`icon-${this.iconPosition.toLowerCase()}`] = true;
|
|
316
|
+
classes[`icon-only`] = this.iconOnly;
|
|
317
|
+
classes['inverted'] = this.fontColor === 'light';
|
|
318
|
+
classes['disabled'] = this.disabled;
|
|
319
|
+
classes['isLoading'] = this.isLoading;
|
|
320
|
+
return classes;
|
|
321
|
+
}
|
|
322
|
+
setColors() {
|
|
323
|
+
this.styles = Object.assign(Object.assign({}, this.styles), { '--color-lighter': window.CuraAPI.theme.colors.getColor(`${this.color}-lighter`), '--color-light': window.CuraAPI.theme.colors.getColor(`${this.color}-light`), '--color-base': window.CuraAPI.theme.colors.getColor(`${this.color}-base`), '--color-dark': window.CuraAPI.theme.colors.getColor(`${this.color}-dark`) });
|
|
324
|
+
}
|
|
325
|
+
getIcon() {
|
|
326
|
+
if (!this.iconName)
|
|
327
|
+
return '';
|
|
328
|
+
const iconSize = this.size === 'small' ? 16 : this.size === 'medium' ? 20 : 24;
|
|
329
|
+
const color = this.getSymbolColor();
|
|
330
|
+
return index.h("cura-icon", { name: this.iconName, iconset: this.iconset, size: iconSize, color: color });
|
|
331
|
+
}
|
|
332
|
+
getSymbolColor() {
|
|
333
|
+
return this.disabled
|
|
334
|
+
? 'neutral-dark'
|
|
335
|
+
: this.fontColor === 'light'
|
|
336
|
+
? 'neutral-white'
|
|
337
|
+
: `${this.color}-base`;
|
|
338
|
+
}
|
|
339
|
+
handleClick(e) {
|
|
340
|
+
if (this.disabled || this.isLoading)
|
|
341
|
+
e.preventDefault();
|
|
342
|
+
}
|
|
343
|
+
render() {
|
|
344
|
+
return (index.h(index.Host, null, this.href ? (index.h("a", { href: this.disabled ? '' : this.href, target: this.target, class: this.getClasses(), style: this.styles, onClick: (e) => this.handleClick(e) }, index.h("span", { class: "button-container" }, this.getIcon(), index.h("span", { class: { label: true, inverted: this.fontColor === 'light' } }, index.h("slot", null))), index.h("cura-loader-circle", { size: this.size, color: this.getSymbolColor() }))) : (index.h("button", { class: this.getClasses(), style: this.styles, disabled: this.disabled || null, onClick: (e) => this.handleClick(e) }, index.h("span", { class: "button-container" }, this.getIcon(), index.h("span", { class: { label: true, inverted: this.fontColor === 'light' } }, index.h("slot", null))), index.h("cura-loader-circle", { size: this.size, color: this.getSymbolColor() })))));
|
|
345
|
+
}
|
|
346
|
+
static get watchers() { return {
|
|
347
|
+
"color": ["handleChangeColor"]
|
|
348
|
+
}; }
|
|
349
|
+
};
|
|
350
|
+
CuraButtonTransparent.style = curaButtonTransparentCss;
|
|
351
|
+
|
|
352
|
+
const curaDisplayCss = ":host{display:block;font-size:var(--font-size);text-transform:uppercase}:host h1,:host h2,:host h3,:host h4,:host h5,:host h6{font-family:var(--font-family);font-size:4.285em;font-weight:var(--font-weight-black);color:var(--color-body);line-height:120%;letter-spacing:-4%;-webkit-margin-before:var(--block-margin);margin-block-start:var(--block-margin);-webkit-margin-after:var(--block-margin);margin-block-end:var(--block-margin)}:host h1.large,:host h2.large,:host h3.large,:host h4.large,:host h5.large,:host h6.large{font-size:6.21em}:host h1.small,:host h2.small,:host h3.small,:host h4.small,:host h5.small,:host h6.small{font-size:3em;font-weight:var(--font-weight-bold)}@media (min-width: 768px) and (max-width: 1365px){:host h1,:host h2,:host h3,:host h4,:host h5,:host h6{font-size:4.92em}:host h1.large,:host h2.large,:host h3.large,:host h4.large,:host h5.large,:host h6.large{font-size:7.07em}:host h1.small,:host h2.small,:host h3.small,:host h4.small,:host h5.small,:host h6.small{font-size:3.428em}}@media (min-width: 1366px){:host h1,:host h2,:host h3,:host h4,:host h5,:host h6{font-size:6.14em;line-height:125%}:host h1.large,:host h2.large,:host h3.large,:host h4.large,:host h5.large,:host h6.large{font-size:8.857em;letter-spacing:-6%}:host h1.small,:host h2.small,:host h3.small,:host h4.small,:host h5.small,:host h6.small{font-size:4.285em;letter-spacing:-2%}}:host ::slotted(b),:host ::slotted(strong){font-weight:var(--font-weight-bold)}:host ::slotted(a){font-weight:var(--font-weight-bold);color:var(--color-link);text-decoration:none;text-underline-offset:10%;cursor:pointer}:host ::slotted(abbr){color:var(--color-link);-webkit-text-decoration:underline dashed 1px var(--color-link);text-decoration:underline dashed 1px var(--color-link);text-underline-offset:10%;cursor:default}";
|
|
353
|
+
|
|
354
|
+
const CuraDisplay = class {
|
|
355
|
+
constructor(hostRef) {
|
|
356
|
+
index.registerInstance(this, hostRef);
|
|
357
|
+
this.level = 1;
|
|
358
|
+
this.size = 'regular';
|
|
359
|
+
this.inverted = false;
|
|
360
|
+
this.spotColor = 'primary';
|
|
361
|
+
}
|
|
362
|
+
connectedCallback() {
|
|
363
|
+
this.weights = window.CuraAPI.theme.fonts.getWeights();
|
|
364
|
+
this.setFontProperties();
|
|
365
|
+
this.setColors();
|
|
366
|
+
}
|
|
367
|
+
getClasses() {
|
|
368
|
+
const classes = {};
|
|
369
|
+
classes[this.size.toLowerCase()] = true;
|
|
370
|
+
return classes;
|
|
371
|
+
}
|
|
372
|
+
setFontProperties() {
|
|
373
|
+
this.styles = {
|
|
374
|
+
'--font-family': window.CuraAPI.theme.fonts.getFamily('display'),
|
|
375
|
+
'--font-size': window.CuraAPI.theme.fonts.getSize(),
|
|
376
|
+
'--font-weight-bold': this.weights.bold,
|
|
377
|
+
'--font-weight-black': this.weights.black
|
|
378
|
+
};
|
|
379
|
+
this.setHostProperty('--font-size', window.CuraAPI.theme.fonts.getSize());
|
|
380
|
+
this.setHostProperty('--block-margin', '0.5em');
|
|
381
|
+
}
|
|
382
|
+
setColors() {
|
|
383
|
+
const fontColor = this.inverted
|
|
384
|
+
? window.CuraAPI.theme.colors.getColor('neutral-white')
|
|
385
|
+
: window.CuraAPI.theme.fonts.getColor();
|
|
386
|
+
this.styles['--color-body'] = fontColor || window.CuraAPI.theme.colors.getColor('neutral-darker');
|
|
387
|
+
this.styles['--color-link'] = this.inverted
|
|
388
|
+
? window.CuraAPI.theme.colors.getColor(`${this.spotColor}-lighter`)
|
|
389
|
+
: window.CuraAPI.theme.colors.getColor(`${this.spotColor}-dark`);
|
|
390
|
+
}
|
|
391
|
+
setHostProperty(prop, value) {
|
|
392
|
+
this.host.style.setProperty(prop, value);
|
|
393
|
+
}
|
|
394
|
+
getHeadingTag() {
|
|
395
|
+
const tags = {
|
|
396
|
+
'1': index.h("h1", { style: this.styles, class: this.getClasses() }, index.h("slot", null)),
|
|
397
|
+
'2': index.h("h2", { style: this.styles, class: this.getClasses() }, index.h("slot", null)),
|
|
398
|
+
'3': index.h("h3", { style: this.styles, class: this.getClasses() }, index.h("slot", null)),
|
|
399
|
+
'4': index.h("h4", { style: this.styles, class: this.getClasses() }, index.h("slot", null)),
|
|
400
|
+
'5': index.h("h5", { style: this.styles, class: this.getClasses() }, index.h("slot", null)),
|
|
401
|
+
'6': index.h("h6", { style: this.styles, class: this.getClasses() }, index.h("slot", null)),
|
|
402
|
+
'default': index.h("h1", { style: this.styles, class: this.getClasses() }, index.h("slot", null))
|
|
403
|
+
};
|
|
404
|
+
return tags[`${this.level}`] || tags['default'];
|
|
405
|
+
}
|
|
406
|
+
render() {
|
|
407
|
+
return (index.h(index.Host, null, this.getHeadingTag()));
|
|
408
|
+
}
|
|
409
|
+
get host() { return index.getElement(this); }
|
|
410
|
+
};
|
|
411
|
+
CuraDisplay.style = curaDisplayCss;
|
|
412
|
+
|
|
413
|
+
const curaHeadingCss = ":host{display:block;font-size:var(--font-size)}:host h1,:host h2,:host h3,:host h4,:host h5,:host h6{font-family:var(--font-family);font-size:1.71em;font-weight:var(--font-weight-regular);color:var(--color-body);line-height:130%;letter-spacing:0%;-webkit-margin-before:var(--block-margin);margin-block-start:var(--block-margin);-webkit-margin-after:var(--block-margin);margin-block-end:var(--block-margin)}:host h1.bold-weight,:host h2.bold-weight,:host h3.bold-weight,:host h4.bold-weight,:host h5.bold-weight,:host h6.bold-weight{font-weight:var(--font-weight-medium)}:host h1.large,:host h2.large,:host h3.large,:host h4.large,:host h5.large,:host h6.large{font-size:2.07em;letter-spacing:-2%}:host h1.small,:host h2.small,:host h3.small,:host h4.small,:host h5.small,:host h6.small{font-size:1.214em;line-height:150%;letter-spacing:0%}: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{font-weight:var(--font-weight-bold)}@media (min-width: 768px) and (max-width: 1365px){:host h1,:host h2,:host h3,:host h4,:host h5,:host h6{font-size:2em}:host h1.large,:host h2.large,:host h3.large,:host h4.large,:host h5.large,:host h6.large{font-size:2.357em}:host h1.small,:host h2.small,:host h3.small,:host h4.small,:host h5.small,:host h6.small{font-size:1.357em}}@media (min-width: 1366px){:host h1,:host h2,:host h3,:host h4,:host h5,:host h6{font-size:2.5em;line-height:135%;letter-spacing:-2%}:host h1.large,:host h2.large,:host h3.large,:host h4.large,:host h5.large,:host h6.large{font-size:2.92em}:host h1.small,:host h2.small,:host h3.small,:host h4.small,:host h5.small,:host h6.small{font-size:1.71em;line-height:160%;letter-spacing:0%}}:host ::slotted(b),:host ::slotted(strong){font-weight:var(--font-weight-bold)}:host ::slotted(a){font-weight:var(--font-weight-bold);color:var(--color-link);text-decoration:none;text-underline-offset:10%;cursor:pointer}:host ::slotted(abbr){color:var(--color-link);-webkit-text-decoration:underline dashed 1px var(--color-link);text-decoration:underline dashed 1px var(--color-link);text-underline-offset:10%;cursor:default}";
|
|
414
|
+
|
|
415
|
+
const CuraHeading = class {
|
|
416
|
+
constructor(hostRef) {
|
|
417
|
+
index.registerInstance(this, hostRef);
|
|
418
|
+
this.level = 1;
|
|
419
|
+
this.size = 'regular';
|
|
420
|
+
this.weight = 'regular';
|
|
421
|
+
this.inverted = false;
|
|
422
|
+
this.spotColor = 'primary';
|
|
423
|
+
}
|
|
424
|
+
connectedCallback() {
|
|
425
|
+
this.weights = window.CuraAPI.theme.fonts.getWeights();
|
|
426
|
+
this.setFontProperties();
|
|
427
|
+
this.setColors();
|
|
428
|
+
}
|
|
429
|
+
getClasses() {
|
|
430
|
+
const classes = {};
|
|
431
|
+
classes[this.size.toLowerCase()] = true;
|
|
432
|
+
classes[`${this.weight.toLowerCase()}-weight`] = true;
|
|
433
|
+
return classes;
|
|
434
|
+
}
|
|
435
|
+
setFontProperties() {
|
|
436
|
+
this.styles = {
|
|
437
|
+
'--font-family': window.CuraAPI.theme.fonts.getFamily('heading'),
|
|
438
|
+
'--font-size': window.CuraAPI.theme.fonts.getSize(),
|
|
439
|
+
'--font-weight-regular': this.weights.regular,
|
|
440
|
+
'--font-weight-medium': this.weights.medium,
|
|
441
|
+
'--font-weight-bold': this.weights.bold,
|
|
442
|
+
'--font-weight-black': this.weights.black
|
|
443
|
+
};
|
|
444
|
+
this.setHostProperty('--font-size', window.CuraAPI.theme.fonts.getSize());
|
|
445
|
+
this.setHostProperty('--block-margin', '0.5em');
|
|
446
|
+
}
|
|
447
|
+
setColors() {
|
|
448
|
+
const fontColor = this.inverted
|
|
449
|
+
? window.CuraAPI.theme.colors.getColor('neutral-white')
|
|
450
|
+
: window.CuraAPI.theme.fonts.getColor();
|
|
451
|
+
this.styles['--color-body'] = fontColor || window.CuraAPI.theme.colors.getColor('neutral-darker');
|
|
452
|
+
this.styles['--color-link'] = this.inverted
|
|
453
|
+
? window.CuraAPI.theme.colors.getColor(`${this.spotColor}-lighter`)
|
|
454
|
+
: window.CuraAPI.theme.colors.getColor(`${this.spotColor}-dark`);
|
|
455
|
+
}
|
|
456
|
+
setHostProperty(prop, value) {
|
|
457
|
+
this.host.style.setProperty(prop, value);
|
|
458
|
+
}
|
|
459
|
+
getHeadingTag() {
|
|
460
|
+
const tags = {
|
|
461
|
+
'1': index.h("h1", { style: this.styles, class: this.getClasses() }, index.h("slot", null)),
|
|
462
|
+
'2': index.h("h2", { style: this.styles, class: this.getClasses() }, index.h("slot", null)),
|
|
463
|
+
'3': index.h("h3", { style: this.styles, class: this.getClasses() }, index.h("slot", null)),
|
|
464
|
+
'4': index.h("h4", { style: this.styles, class: this.getClasses() }, index.h("slot", null)),
|
|
465
|
+
'5': index.h("h5", { style: this.styles, class: this.getClasses() }, index.h("slot", null)),
|
|
466
|
+
'6': index.h("h6", { style: this.styles, class: this.getClasses() }, index.h("slot", null)),
|
|
467
|
+
'default': index.h("h1", { style: this.styles, class: this.getClasses() }, index.h("slot", null))
|
|
468
|
+
};
|
|
469
|
+
return tags[`${this.level}`] || tags['default'];
|
|
470
|
+
}
|
|
471
|
+
render() {
|
|
472
|
+
return (index.h(index.Host, null, this.getHeadingTag()));
|
|
473
|
+
}
|
|
474
|
+
get host() { return index.getElement(this); }
|
|
475
|
+
};
|
|
476
|
+
CuraHeading.style = curaHeadingCss;
|
|
477
|
+
|
|
478
|
+
const curaIconCss = ":host{width:var(--size);height:var(--size)}:host svg{display:inline-block;stroke:var(--color);width:var(--size);height:var(--size);stroke-width:var(--stroke);fill:none}";
|
|
479
|
+
|
|
480
|
+
const CuraIcon = class {
|
|
481
|
+
constructor(hostRef) {
|
|
482
|
+
index.registerInstance(this, hostRef);
|
|
483
|
+
this.sizes = {
|
|
484
|
+
"128": { size: 128, stroke: 5.25 },
|
|
485
|
+
"72": { size: 72, stroke: 3.5 },
|
|
486
|
+
"64": { size: 64, stroke: 3.25 },
|
|
487
|
+
"48": { size: 48, stroke: 2.75 },
|
|
488
|
+
"40": { size: 40, stroke: 2.5 },
|
|
489
|
+
"32": { size: 32, stroke: 2.25 },
|
|
490
|
+
"24": { size: 24, stroke: 2 },
|
|
491
|
+
"20": { size: 20, stroke: 1.75 },
|
|
492
|
+
"16": { size: 16, stroke: 1.5 },
|
|
493
|
+
"default": { size: 24, stroke: 2 }
|
|
494
|
+
};
|
|
495
|
+
this.name = '';
|
|
496
|
+
this.color = 'neutral-base';
|
|
497
|
+
this.size = undefined;
|
|
498
|
+
this.iconset = 'default';
|
|
499
|
+
this.disabled = false;
|
|
500
|
+
}
|
|
501
|
+
sizeHandler(size) {
|
|
502
|
+
const scaledStroke = (iconSize) => {
|
|
503
|
+
return `${this.sizes[iconSize].stroke * (this.sizes.default.size / this.sizes[iconSize].size)}px`;
|
|
504
|
+
};
|
|
505
|
+
this.setHostProperty('--size', this.sizes[`${size}`] ? `${this.sizes[size].size}px` : `${this.sizes.default.size}px`);
|
|
506
|
+
this.setHostProperty('--stroke', this.sizes[`${size}`] ? scaledStroke(size) : scaledStroke("default"));
|
|
507
|
+
}
|
|
508
|
+
colorHandler() {
|
|
509
|
+
this.setHostProperty('--color', window.CuraAPI.theme.colors.getColor(this.disabled ? 'neutral-light' : this.color));
|
|
510
|
+
}
|
|
511
|
+
connectedCallback() {
|
|
512
|
+
this.assetsPath = window.CuraAPI.localAssetsPath;
|
|
513
|
+
this.sizeHandler(this.size);
|
|
514
|
+
this.colorHandler();
|
|
515
|
+
}
|
|
516
|
+
setHostProperty(prop, value) {
|
|
517
|
+
this.host.style.setProperty(prop, value);
|
|
518
|
+
}
|
|
519
|
+
render() {
|
|
520
|
+
return (index.h(index.Host, null, index.h("svg", { version: "1.1", viewBox: "0 0 24 24", preserveAspectRatio: "xMidYMid meet", xmlns: "http://www.w3.org/2000/svg" }, index.h("use", { xlinkHref: `${this.assetsPath}/icons/iconset-${this.iconset}.svg#${this.name}` }))));
|
|
521
|
+
}
|
|
522
|
+
get host() { return index.getElement(this); }
|
|
523
|
+
static get watchers() { return {
|
|
524
|
+
"size": ["sizeHandler"],
|
|
525
|
+
"color": ["colorHandler"],
|
|
526
|
+
"disabled": ["colorHandler"]
|
|
527
|
+
}; }
|
|
528
|
+
};
|
|
529
|
+
CuraIcon.style = curaIconCss;
|
|
530
|
+
|
|
531
|
+
const iconsetdefaulticons = ["360", "accessibility", "addUser", "airdrop", "alertCircle", "alertTriangle", "arrowDown", "arrowDownCircle", "arrowLeft", "arrowLeftCircle", "arrowRight", "arrowRightCircle", "arrowUp", "arrowUpCircle", "attach", "avatarF", "avatarM", "biometry", "bloodGroup", "calendar", "cam", "camOff", "central", "chatCircle", "check", "checkBadge", "checkCircle", "checkDouble", "clock", "close", "closeCircle", "collapse", "config", "currency", "delete", "desktop", "doc", "down", "download", "duplicate", "edit", "exam", "examDoc", "expand", "facebook", "fileBmp", "fileJpg", "filePdf", "filePng", "fileUpload", "fileXls", "filter", "fullscreen", "gallery", "geotag", "geotagUnity", "geotagUnityGroup", "google", "graph", "healthPlan", "heart", "height", "height2", "home", "horizontalList", "imageUp", "infoCircle", "instagram", "key", "lamp", "language", "language2", "languageEN", "languagePT", "lattes", "left", "like", "link", "linkExternal", "linkedin", "list", "login", "logout", "mail", "maintenance", "medDoc", "medEspec", "medImg", "medUser", "medical", "menuHamburguer", "menuKebab", "menuMeatballs", "mic", "micOff", "minus", "minusCircle", "minusSquare", "mobile", "news", "notification", "npsDeslike", "npsHate", "npsLike", "npsLove", "npsNeutral", "order", "partner", "phone", "play", "plus", "plusCircle", "plusSquare", "print", "profile", "profileCircle", "questionCircle", "questionSquare", "range", "reload", "ribbon", "right", "schedule", "scheduleCheck", "scheduleHistorico", "search", "secure", "share", "siren", "sound", "soundOff", "subItem", "target", "team", "telegram", "twitter", "unLink", "unSecure", "unity", "unlike", "up", "upload", "verticalList", "viewFalse", "viewTrue", "weight", "whatsapp", "wifi", "wifiOff", "youtube", "zoomIn", "zoomOut"];
|
|
532
|
+
|
|
533
|
+
const curaIconsViewCss = ":host{display:block;padding:24px;font-family:\"Roboto\", Arial, Helvetica, sans-serif}.iconDetail{display:block}.iconSizes{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.iconSizes .size{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;text-align:center;margin-right:9px;padding:8px}.iconSizes .size:last-child{margin-right:0}.iconSizes .size span{font-size:10px}.iconSizes.invert{margin-top:12px}.iconSizes.invert .size{background-color:#262626;color:#F6F6F6;border-radius:3px}.icons{margin-top:28px;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;position:relative}.icons .icon{position:relative;padding:4px;cursor:pointer;opacity:0.6;-webkit-transition:opacity 0.2s linear;transition:opacity 0.2s linear}.icons .icon span{font-size:12px;padding:6px;-webkit-box-sizing:border-box;box-sizing:border-box;background:#000;color:#FFF;border-radius:2px;position:absolute;top:-2px;left:50%;-webkit-transform:translateX(-50%) translateY(-100%);transform:translateX(-50%) translateY(-100%);display:none}.icons .icon:hover{opacity:1}.icons .icon:hover span{display:block}";
|
|
534
|
+
|
|
535
|
+
const CuraIconsView = class {
|
|
536
|
+
constructor(hostRef) {
|
|
537
|
+
index.registerInstance(this, hostRef);
|
|
538
|
+
this.sizes = [16, 20, 24, 32, 40, 48, 64, 72, 128];
|
|
539
|
+
this.colors = ['primary', 'secondary', 'accent', 'info', 'warning', 'error', 'success', 'neutral'];
|
|
540
|
+
this.setSelected = (icon) => {
|
|
541
|
+
this.selected = icon;
|
|
542
|
+
};
|
|
543
|
+
this.selected = '360';
|
|
544
|
+
}
|
|
545
|
+
render() {
|
|
546
|
+
return (index.h(index.Host, null, index.h("div", { class: "iconDetail" }, index.h("h4", null, this.selected), index.h("div", { class: "iconSizes" }, this.sizes.map(size => index.h("div", { class: "size" }, index.h("cura-icon", { name: this.selected, size: size }), index.h("span", null, size)))), index.h("div", { class: "iconSizes invert" }, this.sizes.map(size => index.h("div", { class: "size" }, index.h("cura-icon", { name: this.selected, size: size, color: "neutral-white" }), index.h("span", null, size)))), index.h("div", { class: "iconSizes" }, this.colors.map(color => index.h("div", { class: "size" }, index.h("cura-icon", { name: this.selected, color: color }), index.h("span", null, color))), index.h("div", { class: "size" }, index.h("cura-icon", { name: this.selected, disabled: true }), index.h("span", null, "Disabled")))), index.h("div", { class: "icons" }, iconsetdefaulticons.map(icon => index.h("div", { class: "icon", onClick: () => this.setSelected(icon) }, index.h("cura-icon", { name: icon }), index.h("span", null, icon))))));
|
|
547
|
+
}
|
|
548
|
+
};
|
|
549
|
+
CuraIconsView.style = curaIconsViewCss;
|
|
550
|
+
|
|
551
|
+
const curaLoaderCircleCss = ":host{display:inline-block;width:var(--size);height:var(--size)}:host svg{width:var(--size);height:var(--size);-webkit-animation:rotate 0.7s linear infinite;animation:rotate 0.7s linear infinite}:host circle,:host path{stroke-miterlimit:10;stroke-linecap:round;stroke-linejoin:round}:host path{stroke:var(--color)}:host stop{stop-color:var(--color)}:host linearGradient stop:first-child{stop-opacity:0.14}@-webkit-keyframes rotate{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotate{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}";
|
|
552
|
+
|
|
553
|
+
const CuraLoaderCircle = class {
|
|
554
|
+
constructor(hostRef) {
|
|
555
|
+
index.registerInstance(this, hostRef);
|
|
556
|
+
this.sizes = {
|
|
557
|
+
xlarge: 32,
|
|
558
|
+
large: 24,
|
|
559
|
+
medium: 20,
|
|
560
|
+
small: 16,
|
|
561
|
+
default: 16,
|
|
562
|
+
};
|
|
563
|
+
this.getPxSize = () => this.sizes[this.size] || this.sizes['default'];
|
|
564
|
+
this.size = 'medium';
|
|
565
|
+
this.color = 'neutral-white';
|
|
566
|
+
}
|
|
567
|
+
getStyles() {
|
|
568
|
+
return {
|
|
569
|
+
'--size': `${this.getPxSize()}px`,
|
|
570
|
+
'--color': window.CuraAPI.theme.colors.getColor(this.color)
|
|
571
|
+
};
|
|
572
|
+
}
|
|
573
|
+
render() {
|
|
574
|
+
return (index.h(index.Host, { style: this.getStyles() }, index.h("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("g", null, index.h("circle", { cx: "8", cy: "8", r: "7", stroke: "url(#paint0_linear_13485_11488)", "stroke-width": "2" }), index.h("path", { d: "M1 8C1 4.13401 4.11877 1 7.96596 1C9.53445 1 10.9819 1.52093 12.1462 2.4C12.8959 2.96601 13.5282 3.68049 14 4.5", "stroke-width": "2" })), index.h("defs", null, index.h("linearGradient", { id: "paint0_linear_13485_11488", x1: "15.7", y1: "4.5", x2: "4.15", y2: "11.5", gradientUnits: "userSpaceOnUse" }, index.h("stop", null), index.h("stop", { offset: "1" }))))));
|
|
575
|
+
}
|
|
576
|
+
};
|
|
577
|
+
CuraLoaderCircle.style = curaLoaderCircleCss;
|
|
578
|
+
|
|
579
|
+
const curaPageTemplateCss = ":host{display:block}:host .grid-template{display:grid;grid-template-rows:auto;grid-template-columns:auto;grid-template-areas:\"sub-header\" \"header\" \"pre-content\" \"content-container\" \"post-body\" \"footer\" \"sub-footer\"}:host .grid-template #sub-header{grid-area:sub-header}:host .grid-template #header{grid-area:header}:host .grid-template #pre-content{grid-area:pre-content}:host .grid-template #content-container{grid-area:content-container}:host .grid-template #post-body{grid-area:post-body}:host .grid-template #footer{grid-area:footer}:host .grid-template #sub-footer{grid-area:sub-footer}@media (max-width: 360px){:host .grid-template{padding:0px}}@media (min-width: 768px) and (max-width: 1365px){:host .grid-template{padding:0px}}@media (min-width: 1366px) and (max-width: 1919px){:host .grid-template{padding:0px}:host .grid-template #content-container #sidebar-left ::slotted(div[slot=sidebar-left]){margin-right:calc(var(--spacing) * 5px)}:host .grid-template #content-container #sidebar-right ::slotted(div[slot=sidebar-right]){margin-left:calc(var(--spacing) * 5px)}:host .grid-template #content-container{display:-ms-flexbox;display:flex}:host .grid-template #content-container #content{-ms-flex-positive:1;flex-grow:1}:host .grid-template #content-container #sidebar-left,:host .grid-template #content-container #sidebar-right{max-width:20%}}@media (min-width: 1920px){:host .grid-template{padding:0px}:host .grid-template #content-container #sidebar-left ::slotted(div[slot=sidebar-left]){margin-right:calc(var(--spacing) * 7px)}:host .grid-template #content-container #sidebar-right ::slotted(div[slot=sidebar-right]){margin-left:calc(var(--spacing) * 7px)}:host .grid-template #content-container{display:-ms-flexbox;display:flex}:host .grid-template #content-container #content{-ms-flex-positive:1;flex-grow:1}:host .grid-template #content-container #sidebar-left,:host .grid-template #content-container #sidebar-right{max-width:20%}:host .grid-template #content-container.centered{max-width:1920px;justify-self:center}}";
|
|
580
|
+
|
|
581
|
+
const CuraPageTemplate = class {
|
|
582
|
+
constructor(hostRef) {
|
|
583
|
+
index.registerInstance(this, hostRef);
|
|
584
|
+
this.contentwidth = 'default';
|
|
585
|
+
}
|
|
586
|
+
connectedCallback() {
|
|
587
|
+
this.styles = {
|
|
588
|
+
'--spacing': window.CuraAPI.theme.spacing.getSpacing(),
|
|
589
|
+
};
|
|
590
|
+
}
|
|
591
|
+
getClasses() {
|
|
592
|
+
const classes = {};
|
|
593
|
+
classes[this.contentwidth.toLowerCase()] = true;
|
|
594
|
+
return classes;
|
|
595
|
+
}
|
|
596
|
+
render() {
|
|
597
|
+
return (index.h(index.Host, null, index.h("div", { style: this.styles, class: "grid-template" }, index.h("div", { id: "sub-header" }, index.h("slot", { name: 'sub-header' })), index.h("div", { id: "header" }, index.h("slot", { name: 'header' })), index.h("div", { id: "pre-content" }, index.h("slot", { name: 'pre-content' })), index.h("div", { id: "content-container", class: this.getClasses() }, index.h("div", { id: "sidebar-left" }, index.h("slot", { name: 'sidebar-left' })), index.h("div", { id: "content" }, index.h("slot", { name: "content" }), index.h("slot", null)), index.h("div", { id: "sidebar-right" }, index.h("slot", { name: 'sidebar-right' }))), index.h("div", { id: "post-body" }, index.h("slot", { name: 'post-body' })), index.h("div", { id: "footer" }, index.h("slot", { name: 'footer' })), index.h("div", { id: "sub-footer" }, index.h("slot", { name: 'sub-footer' })))));
|
|
598
|
+
}
|
|
599
|
+
get host() { return index.getElement(this); }
|
|
600
|
+
};
|
|
601
|
+
CuraPageTemplate.style = curaPageTemplateCss;
|
|
602
|
+
|
|
603
|
+
const curaParagraphCss = ":host{display:block;font-size:var(--font-size)}:host p{font-family:var(--font-family);font-size:var(--font-size);font-weight:var(--font-weight-regular);color:var(--color-body);line-height:var(--line-height);-webkit-margin-before:var(--block-margin);margin-block-start:var(--block-margin);-webkit-margin-after:var(--block-margin);margin-block-end:var(--block-margin)}:host p.large{font-size:1.21em;line-height:calc(var(--line-height) + 10%);}:host p.small{font-size:0.85em;line-height:calc(var(--line-height) - 5%);}:host p.caption{font-size:0.71em;line-height:calc(var(--line-height) - 5%);}@media (min-width: 768px) and (max-width: 1365px){:host p{font-size:1.14em;line-height:calc(var(--line-height) + 5%);}:host p.large{font-size:1.35em;line-height:calc(var(--line-height) + 10%);}:host p.small{font-size:1em;line-height:calc(var(--line-height) - 5%);}:host p.caption{font-size:0.85em;line-height:calc(var(--line-height) - 5%);}}@media (min-width: 1366px){:host p{font-size:1.42em;line-height:calc(var(--line-height) + 10%);}:host p.large{font-size:1.71em;line-height:calc(var(--line-height) + 20%);}:host p.small{font-size:1.21em;line-height:calc(var(--line-height) + 5%);}:host p.caption{font-size:1em;line-height:calc(var(--line-height) + 5%);}}:host ::slotted(b),:host ::slotted(strong){font-weight:var(--font-weight-bold)}:host ::slotted(a){font-weight:var(--font-weight-medium);color:var(--color-link);text-underline-offset:10%}:host ::slotted(abbr){color:var(--color-link);-webkit-text-decoration:underline dashed 1px var(--color-link);text-decoration:underline dashed 1px var(--color-link);text-underline-offset:10%;cursor:default}";
|
|
604
|
+
|
|
605
|
+
const CuraParagraph = class {
|
|
606
|
+
constructor(hostRef) {
|
|
607
|
+
index.registerInstance(this, hostRef);
|
|
608
|
+
this.size = 'regular';
|
|
609
|
+
this.inverted = false;
|
|
610
|
+
this.spotColor = 'primary';
|
|
611
|
+
this.color = undefined;
|
|
612
|
+
this.styles = {};
|
|
613
|
+
}
|
|
614
|
+
handleChangeColor() {
|
|
615
|
+
this.setColors();
|
|
616
|
+
}
|
|
617
|
+
connectedCallback() {
|
|
618
|
+
this.weights = window.CuraAPI.theme.fonts.getWeights();
|
|
619
|
+
this.setFontProperties();
|
|
620
|
+
this.setColors();
|
|
621
|
+
}
|
|
622
|
+
setsizeClass() {
|
|
623
|
+
const sizeclass = {};
|
|
624
|
+
sizeclass[this.size.toLowerCase()] = true;
|
|
625
|
+
return sizeclass;
|
|
626
|
+
}
|
|
627
|
+
setFontProperties() {
|
|
628
|
+
this.styles = {
|
|
629
|
+
'--font-family': window.CuraAPI.theme.fonts.getFamily('body'),
|
|
630
|
+
'--font-size': window.CuraAPI.theme.fonts.getSize(),
|
|
631
|
+
'--font-weight-regular': this.weights.regular,
|
|
632
|
+
'--font-weight-medium': this.weights.medium,
|
|
633
|
+
'--font-weight-bold': this.weights.bold
|
|
634
|
+
};
|
|
635
|
+
this.setHostProperty('--font-size', window.CuraAPI.theme.fonts.getSize());
|
|
636
|
+
this.setHostProperty('--block-margin', '1.25em');
|
|
637
|
+
this.setHostProperty('--line-height', '140%');
|
|
638
|
+
}
|
|
639
|
+
setColors() {
|
|
640
|
+
const fontColor = this.color ? window.CuraAPI.theme.colors.getColor(this.color) :
|
|
641
|
+
this.inverted
|
|
642
|
+
? window.CuraAPI.theme.colors.getColor('neutral-white')
|
|
643
|
+
: window.CuraAPI.theme.fonts.getColor();
|
|
644
|
+
this.styles = Object.assign(Object.assign({}, this.styles), { '--color-body': fontColor || window.CuraAPI.theme.colors.getColor('neutral-darker'), '--color-link': this.inverted
|
|
645
|
+
? window.CuraAPI.theme.colors.getColor(`${this.spotColor}-lighter`)
|
|
646
|
+
: window.CuraAPI.theme.colors.getColor(`${this.spotColor}-dark`) });
|
|
647
|
+
}
|
|
648
|
+
setHostProperty(prop, value) {
|
|
649
|
+
this.host.style.setProperty(prop, value);
|
|
650
|
+
}
|
|
651
|
+
render() {
|
|
652
|
+
return (index.h(index.Host, null, index.h("p", { style: this.styles, class: this.setsizeClass() }, index.h("slot", null))));
|
|
653
|
+
}
|
|
654
|
+
get host() { return index.getElement(this); }
|
|
655
|
+
static get watchers() { return {
|
|
656
|
+
"color": ["handleChangeColor"]
|
|
657
|
+
}; }
|
|
658
|
+
};
|
|
659
|
+
CuraParagraph.style = curaParagraphCss;
|
|
660
|
+
|
|
661
|
+
exports.cura_accordion = CuraAccordion;
|
|
662
|
+
exports.cura_accordion_item = CuraAccordionItem;
|
|
663
|
+
exports.cura_button = CuraButton;
|
|
664
|
+
exports.cura_button_outline = CuraButtonOutline;
|
|
665
|
+
exports.cura_button_transparent = CuraButtonTransparent;
|
|
666
|
+
exports.cura_display = CuraDisplay;
|
|
667
|
+
exports.cura_heading = CuraHeading;
|
|
668
|
+
exports.cura_icon = CuraIcon;
|
|
669
|
+
exports.cura_icons_view = CuraIconsView;
|
|
670
|
+
exports.cura_loader_circle = CuraLoaderCircle;
|
|
671
|
+
exports.cura_page_template = CuraPageTemplate;
|
|
672
|
+
exports.cura_paragraph = CuraParagraph;
|
|
673
|
+
|
|
674
|
+
//# sourceMappingURL=cura-accordion_12.cjs.entry.js.map
|