@rededor/cura 0.4.6 → 0.5.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +5 -3
- package/dist/assets/icons/iconset-default-list.ts +0 -1
- package/dist/assets/icons/iconset-default-tmp.svg +0 -942
- package/dist/assets/icons/iconset-default.svg +0 -1
- package/dist/cjs/app-globals-11fb6b23.js +0 -479
- package/dist/cjs/app-globals-11fb6b23.js.map +0 -1
- package/dist/cjs/css-shim-83cf0349.js +0 -8
- package/dist/cjs/css-shim-83cf0349.js.map +0 -1
- package/dist/cjs/cura-button_10.cjs.entry.js +0 -549
- package/dist/cjs/cura-button_10.cjs.entry.js.map +0 -1
- package/dist/cjs/cura.cjs.js +0 -36
- package/dist/cjs/cura.cjs.js.map +0 -1
- package/dist/cjs/index-0e874533.js +0 -1995
- package/dist/cjs/index-0e874533.js.map +0 -1
- package/dist/cjs/index.cjs.js +0 -4
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/loader.cjs.js +0 -42
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/cjs/shadow-css-8baae635.js +0 -391
- package/dist/cjs/shadow-css-8baae635.js.map +0 -1
- package/dist/collection/api/cura-api.js +0 -34
- package/dist/collection/api/cura-api.js.map +0 -1
- package/dist/collection/api/cura-api.type.js +0 -7
- package/dist/collection/api/cura-api.type.js.map +0 -1
- package/dist/collection/api/modules/cura-theme-breakpoints-module.js +0 -14
- package/dist/collection/api/modules/cura-theme-breakpoints-module.js.map +0 -1
- package/dist/collection/api/modules/cura-theme-colors-module.js +0 -75
- package/dist/collection/api/modules/cura-theme-colors-module.js.map +0 -1
- package/dist/collection/api/modules/cura-theme-fonts-module.js +0 -36
- package/dist/collection/api/modules/cura-theme-fonts-module.js.map +0 -1
- package/dist/collection/api/modules/cura-theme-module.js +0 -78
- package/dist/collection/api/modules/cura-theme-module.js.map +0 -1
- package/dist/collection/api/modules/cura-theme-spacing-module.js +0 -13
- package/dist/collection/api/modules/cura-theme-spacing-module.js.map +0 -1
- package/dist/collection/api/theme-presets/static.js +0 -71
- package/dist/collection/api/theme-presets/static.js.map +0 -1
- package/dist/collection/api/theme-presets/theme-default.js +0 -50
- package/dist/collection/api/theme-presets/theme-default.js.map +0 -1
- package/dist/collection/api/theme-presets/theme-maternity.js +0 -46
- package/dist/collection/api/theme-presets/theme-maternity.js.map +0 -1
- package/dist/collection/api/theme-presets/theme-oncology.js +0 -53
- package/dist/collection/api/theme-presets/theme-oncology.js.map +0 -1
- package/dist/collection/api/theme-presets/theme-presets.js +0 -9
- package/dist/collection/api/theme-presets/theme-presets.js.map +0 -1
- package/dist/collection/assets/icons/iconset-default-list.js +0 -2
- package/dist/collection/assets/icons/iconset-default-list.js.map +0 -1
- package/dist/collection/assets/icons/iconset-default-tmp.svg +0 -942
- package/dist/collection/assets/icons/iconset-default.svg +0 -1
- package/dist/collection/assets-raw/icons/default/360.svg +0 -8
- package/dist/collection/assets-raw/icons/default/accessibility.svg +0 -5
- package/dist/collection/assets-raw/icons/default/addUser.svg +0 -6
- package/dist/collection/assets-raw/icons/default/airdrop.svg +0 -6
- package/dist/collection/assets-raw/icons/default/alertCircle.svg +0 -5
- package/dist/collection/assets-raw/icons/default/alertTriangle.svg +0 -5
- package/dist/collection/assets-raw/icons/default/arrowDown.svg +0 -3
- package/dist/collection/assets-raw/icons/default/arrowDownCircle.svg +0 -4
- package/dist/collection/assets-raw/icons/default/arrowLeft.svg +0 -3
- package/dist/collection/assets-raw/icons/default/arrowLeftCircle.svg +0 -4
- package/dist/collection/assets-raw/icons/default/arrowRight.svg +0 -3
- package/dist/collection/assets-raw/icons/default/arrowRightCircle.svg +0 -4
- package/dist/collection/assets-raw/icons/default/arrowUp.svg +0 -3
- package/dist/collection/assets-raw/icons/default/arrowUpCircle.svg +0 -4
- package/dist/collection/assets-raw/icons/default/attach.svg +0 -3
- package/dist/collection/assets-raw/icons/default/avatarF.svg +0 -6
- package/dist/collection/assets-raw/icons/default/avatarM.svg +0 -5
- package/dist/collection/assets-raw/icons/default/biometry.svg +0 -3
- package/dist/collection/assets-raw/icons/default/bloodGroup.svg +0 -3
- package/dist/collection/assets-raw/icons/default/calendar.svg +0 -8
- package/dist/collection/assets-raw/icons/default/cam.svg +0 -4
- package/dist/collection/assets-raw/icons/default/camOff.svg +0 -5
- package/dist/collection/assets-raw/icons/default/central.svg +0 -7
- package/dist/collection/assets-raw/icons/default/chatCircle.svg +0 -6
- package/dist/collection/assets-raw/icons/default/check.svg +0 -3
- package/dist/collection/assets-raw/icons/default/checkBadge.svg +0 -4
- package/dist/collection/assets-raw/icons/default/checkCircle.svg +0 -4
- package/dist/collection/assets-raw/icons/default/checkDouble.svg +0 -4
- package/dist/collection/assets-raw/icons/default/clock.svg +0 -5
- package/dist/collection/assets-raw/icons/default/close.svg +0 -3
- package/dist/collection/assets-raw/icons/default/closeCircle.svg +0 -5
- package/dist/collection/assets-raw/icons/default/collapse.svg +0 -4
- package/dist/collection/assets-raw/icons/default/config.svg +0 -4
- package/dist/collection/assets-raw/icons/default/delete.svg +0 -7
- package/dist/collection/assets-raw/icons/default/desktop.svg +0 -6
- package/dist/collection/assets-raw/icons/default/doc.svg +0 -7
- package/dist/collection/assets-raw/icons/default/down.svg +0 -3
- package/dist/collection/assets-raw/icons/default/download.svg +0 -3
- package/dist/collection/assets-raw/icons/default/duplicate.svg +0 -4
- package/dist/collection/assets-raw/icons/default/edit.svg +0 -5
- package/dist/collection/assets-raw/icons/default/exam.svg +0 -6
- package/dist/collection/assets-raw/icons/default/expand.svg +0 -4
- package/dist/collection/assets-raw/icons/default/facebook.svg +0 -3
- package/dist/collection/assets-raw/icons/default/fileBmp.svg +0 -17
- package/dist/collection/assets-raw/icons/default/fileJpg.svg +0 -8
- package/dist/collection/assets-raw/icons/default/filePdf.svg +0 -10
- package/dist/collection/assets-raw/icons/default/filePng.svg +0 -10
- package/dist/collection/assets-raw/icons/default/fileUpload.svg +0 -5
- package/dist/collection/assets-raw/icons/default/fileXls.svg +0 -8
- package/dist/collection/assets-raw/icons/default/filter.svg +0 -11
- package/dist/collection/assets-raw/icons/default/fullscreen.svg +0 -6
- package/dist/collection/assets-raw/icons/default/gallery.svg +0 -6
- package/dist/collection/assets-raw/icons/default/geotag.svg +0 -4
- package/dist/collection/assets-raw/icons/default/geotagUnity.svg +0 -5
- package/dist/collection/assets-raw/icons/default/google.svg +0 -3
- package/dist/collection/assets-raw/icons/default/graph.svg +0 -6
- package/dist/collection/assets-raw/icons/default/healthPlan.svg +0 -6
- package/dist/collection/assets-raw/icons/default/height.svg +0 -10
- package/dist/collection/assets-raw/icons/default/height2.svg +0 -8
- package/dist/collection/assets-raw/icons/default/home.svg +0 -6
- package/dist/collection/assets-raw/icons/default/horizontalList.svg +0 -4
- package/dist/collection/assets-raw/icons/default/imageUp.svg +0 -5
- package/dist/collection/assets-raw/icons/default/infoCircle.svg +0 -5
- package/dist/collection/assets-raw/icons/default/instagram.svg +0 -5
- package/dist/collection/assets-raw/icons/default/key.svg +0 -4
- package/dist/collection/assets-raw/icons/default/lamp.svg +0 -12
- package/dist/collection/assets-raw/icons/default/language.svg +0 -9
- package/dist/collection/assets-raw/icons/default/language2.svg +0 -4
- package/dist/collection/assets-raw/icons/default/languageEN.svg +0 -5
- package/dist/collection/assets-raw/icons/default/languagePT.svg +0 -5
- package/dist/collection/assets-raw/icons/default/lattes.svg +0 -3
- package/dist/collection/assets-raw/icons/default/left.svg +0 -3
- package/dist/collection/assets-raw/icons/default/like.svg +0 -4
- package/dist/collection/assets-raw/icons/default/link.svg +0 -4
- package/dist/collection/assets-raw/icons/default/linkExternal.svg +0 -4
- package/dist/collection/assets-raw/icons/default/linkedin.svg +0 -5
- package/dist/collection/assets-raw/icons/default/list.svg +0 -8
- package/dist/collection/assets-raw/icons/default/login.svg +0 -4
- package/dist/collection/assets-raw/icons/default/logout.svg +0 -3
- package/dist/collection/assets-raw/icons/default/mail.svg +0 -6
- package/dist/collection/assets-raw/icons/default/maintenance.svg +0 -4
- package/dist/collection/assets-raw/icons/default/medDoc.svg +0 -5
- package/dist/collection/assets-raw/icons/default/medEspec.svg +0 -4
- package/dist/collection/assets-raw/icons/default/medImg.svg +0 -5
- package/dist/collection/assets-raw/icons/default/medUser.svg +0 -10
- package/dist/collection/assets-raw/icons/default/medical.svg +0 -9
- package/dist/collection/assets-raw/icons/default/menuHamburguer.svg +0 -5
- package/dist/collection/assets-raw/icons/default/menuKebab.svg +0 -5
- package/dist/collection/assets-raw/icons/default/menuMeatballs.svg +0 -5
- package/dist/collection/assets-raw/icons/default/mic.svg +0 -5
- package/dist/collection/assets-raw/icons/default/micOff.svg +0 -6
- package/dist/collection/assets-raw/icons/default/minus.svg +0 -3
- package/dist/collection/assets-raw/icons/default/minusCircle.svg +0 -4
- package/dist/collection/assets-raw/icons/default/minusSquare.svg +0 -4
- package/dist/collection/assets-raw/icons/default/mobile.svg +0 -4
- package/dist/collection/assets-raw/icons/default/news.svg +0 -8
- package/dist/collection/assets-raw/icons/default/notification.svg +0 -6
- package/dist/collection/assets-raw/icons/default/npsDeslike.svg +0 -6
- package/dist/collection/assets-raw/icons/default/npsHate.svg +0 -6
- package/dist/collection/assets-raw/icons/default/npsLike.svg +0 -6
- package/dist/collection/assets-raw/icons/default/npsLove.svg +0 -6
- package/dist/collection/assets-raw/icons/default/npsNeutral.svg +0 -6
- package/dist/collection/assets-raw/icons/default/order.svg +0 -6
- package/dist/collection/assets-raw/icons/default/partner.svg +0 -5
- package/dist/collection/assets-raw/icons/default/phone.svg +0 -5
- package/dist/collection/assets-raw/icons/default/play.svg +0 -4
- package/dist/collection/assets-raw/icons/default/plus.svg +0 -4
- package/dist/collection/assets-raw/icons/default/plusCircle.svg +0 -5
- package/dist/collection/assets-raw/icons/default/plusSquare.svg +0 -5
- package/dist/collection/assets-raw/icons/default/print.svg +0 -7
- package/dist/collection/assets-raw/icons/default/profile.svg +0 -4
- package/dist/collection/assets-raw/icons/default/profileCircle.svg +0 -4
- package/dist/collection/assets-raw/icons/default/questionCircle.svg +0 -4
- package/dist/collection/assets-raw/icons/default/questionSquare.svg +0 -4
- package/dist/collection/assets-raw/icons/default/range.svg +0 -5
- package/dist/collection/assets-raw/icons/default/reload.svg +0 -4
- package/dist/collection/assets-raw/icons/default/ribbon.svg +0 -4
- package/dist/collection/assets-raw/icons/default/right.svg +0 -3
- package/dist/collection/assets-raw/icons/default/schedule.svg +0 -9
- package/dist/collection/assets-raw/icons/default/scheduleCheck.svg +0 -8
- package/dist/collection/assets-raw/icons/default/scheduleHistorico.svg +0 -9
- package/dist/collection/assets-raw/icons/default/search.svg +0 -4
- package/dist/collection/assets-raw/icons/default/secure.svg +0 -6
- package/dist/collection/assets-raw/icons/default/share.svg +0 -7
- package/dist/collection/assets-raw/icons/default/sound.svg +0 -5
- package/dist/collection/assets-raw/icons/default/soundOff.svg +0 -4
- package/dist/collection/assets-raw/icons/default/subItem.svg +0 -4
- package/dist/collection/assets-raw/icons/default/target.svg +0 -8
- package/dist/collection/assets-raw/icons/default/team.svg +0 -6
- package/dist/collection/assets-raw/icons/default/telegram.svg +0 -3
- package/dist/collection/assets-raw/icons/default/twitter.svg +0 -5
- package/dist/collection/assets-raw/icons/default/unLink.svg +0 -10
- package/dist/collection/assets-raw/icons/default/unSecure.svg +0 -6
- package/dist/collection/assets-raw/icons/default/unity.svg +0 -13
- package/dist/collection/assets-raw/icons/default/unlike.svg +0 -4
- package/dist/collection/assets-raw/icons/default/up.svg +0 -3
- package/dist/collection/assets-raw/icons/default/upload.svg +0 -3
- package/dist/collection/assets-raw/icons/default/verticalList.svg +0 -4
- package/dist/collection/assets-raw/icons/default/viewFalse.svg +0 -5
- package/dist/collection/assets-raw/icons/default/viewTrue.svg +0 -4
- package/dist/collection/assets-raw/icons/default/weight.svg +0 -5
- package/dist/collection/assets-raw/icons/default/whatsapp.svg +0 -4
- package/dist/collection/assets-raw/icons/default/wifi.svg +0 -6
- package/dist/collection/assets-raw/icons/default/wifiOff.svg +0 -7
- package/dist/collection/assets-raw/icons/default/youtube.svg +0 -4
- package/dist/collection/assets-raw/icons/default/zoomIn.svg +0 -6
- package/dist/collection/assets-raw/icons/default/zoomOut.svg +0 -5
- package/dist/collection/collection-manifest.json +0 -22
- package/dist/collection/components/buttons/cura-button/cura-button.css +0 -185
- package/dist/collection/components/buttons/cura-button/cura-button.js +0 -308
- package/dist/collection/components/buttons/cura-button/cura-button.js.map +0 -1
- package/dist/collection/components/buttons/cura-button/cura-button.stories.js +0 -122
- package/dist/collection/components/buttons/cura-button/cura-button.stories.js.map +0 -1
- package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.css +0 -220
- package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.js +0 -308
- package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.js.map +0 -1
- package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.css +0 -204
- package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.js +0 -308
- package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.js.map +0 -1
- package/dist/collection/components/cura-icon/cura-icon.css +0 -12
- package/dist/collection/components/cura-icon/cura-icon.js +0 -162
- package/dist/collection/components/cura-icon/cura-icon.js.map +0 -1
- package/dist/collection/components/cura-icons-view/cura-icons-view.css +0 -68
- package/dist/collection/components/cura-icons-view/cura-icons-view.js +0 -33
- package/dist/collection/components/cura-icons-view/cura-icons-view.js.map +0 -1
- package/dist/collection/components/cura-page-template/cura-page-template.css +0 -105
- package/dist/collection/components/cura-page-template/cura-page-template.js +0 -55
- package/dist/collection/components/cura-page-template/cura-page-template.js.map +0 -1
- package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.css +0 -33
- package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.js +0 -77
- package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.js.map +0 -1
- package/dist/collection/components/text/cura-display/cura-display.css +0 -84
- package/dist/collection/components/text/cura-display/cura-display.js +0 -146
- package/dist/collection/components/text/cura-display/cura-display.js.map +0 -1
- package/dist/collection/components/text/cura-heading/cura-heading.css +0 -92
- package/dist/collection/components/text/cura-heading/cura-heading.js +0 -168
- package/dist/collection/components/text/cura-heading/cura-heading.js.map +0 -1
- package/dist/collection/components/text/cura-paragraph/cura-paragraph.css +0 -115
- package/dist/collection/components/text/cura-paragraph/cura-paragraph.js +0 -150
- package/dist/collection/components/text/cura-paragraph/cura-paragraph.js.map +0 -1
- package/dist/collection/index.js +0 -2
- package/dist/collection/index.js.map +0 -1
- package/dist/collection/rededor-cura-start.js +0 -10
- package/dist/collection/rededor-cura-start.js.map +0 -1
- package/dist/collection/stories/Button.js +0 -21
- package/dist/collection/stories/Button.stories.js +0 -50
- package/dist/collection/stories/Header.js +0 -47
- package/dist/collection/stories/Header.stories.js +0 -28
- package/dist/collection/stories/Page.js +0 -94
- package/dist/collection/stories/Page.stories.js +0 -27
- package/dist/collection/stories/assets/accessibility.svg +0 -5
- package/dist/collection/stories/assets/discord.svg +0 -15
- package/dist/collection/stories/assets/github.svg +0 -3
- package/dist/collection/stories/assets/tutorials.svg +0 -12
- package/dist/collection/stories/assets/youtube.svg +0 -4
- package/dist/collection/utils/utils.js +0 -4
- package/dist/collection/utils/utils.js.map +0 -1
- package/dist/collection/utils/utils.spec.js +0 -16
- package/dist/collection/utils/utils.spec.js.map +0 -1
- package/dist/components/cura-button-outline.d.ts +0 -11
- package/dist/components/cura-button-outline.js +0 -123
- package/dist/components/cura-button-outline.js.map +0 -1
- package/dist/components/cura-button-transparent.d.ts +0 -11
- package/dist/components/cura-button-transparent.js +0 -123
- package/dist/components/cura-button-transparent.js.map +0 -1
- package/dist/components/cura-button.d.ts +0 -11
- package/dist/components/cura-button.js +0 -123
- package/dist/components/cura-button.js.map +0 -1
- package/dist/components/cura-display.d.ts +0 -11
- package/dist/components/cura-display.js +0 -89
- package/dist/components/cura-display.js.map +0 -1
- package/dist/components/cura-heading.d.ts +0 -11
- package/dist/components/cura-heading.js +0 -94
- package/dist/components/cura-heading.js.map +0 -1
- package/dist/components/cura-icon.d.ts +0 -11
- package/dist/components/cura-icon.js +0 -8
- package/dist/components/cura-icon.js.map +0 -1
- package/dist/components/cura-icon2.js +0 -79
- package/dist/components/cura-icon2.js.map +0 -1
- package/dist/components/cura-icons-view.d.ts +0 -11
- package/dist/components/cura-icons-view.js +0 -51
- package/dist/components/cura-icons-view.js.map +0 -1
- package/dist/components/cura-loader-circle.d.ts +0 -11
- package/dist/components/cura-loader-circle.js +0 -8
- package/dist/components/cura-loader-circle.js.map +0 -1
- package/dist/components/cura-loader-circle2.js +0 -51
- package/dist/components/cura-loader-circle2.js.map +0 -1
- package/dist/components/cura-page-template.d.ts +0 -11
- package/dist/components/cura-page-template.js +0 -49
- package/dist/components/cura-page-template.js.map +0 -1
- package/dist/components/cura-paragraph.d.ts +0 -11
- package/dist/components/cura-paragraph.js +0 -87
- package/dist/components/cura-paragraph.js.map +0 -1
- package/dist/components/index.d.ts +0 -39
- package/dist/components/index.js +0 -511
- package/dist/components/index.js.map +0 -1
- package/dist/cura/cura.esm.js +0 -2
- package/dist/cura/cura.esm.js.map +0 -1
- package/dist/cura/cura.js +0 -133
- package/dist/cura/index.esm.js +0 -2
- package/dist/cura/index.esm.js.map +0 -1
- package/dist/cura/p-0bb24006.system.js +0 -2
- package/dist/cura/p-0bb24006.system.js.map +0 -1
- package/dist/cura/p-0e6b48da.js +0 -2
- package/dist/cura/p-0e6b48da.js.map +0 -1
- package/dist/cura/p-118112e5.system.js +0 -14
- package/dist/cura/p-118112e5.system.js.map +0 -1
- package/dist/cura/p-183305c3.js +0 -2
- package/dist/cura/p-183305c3.js.map +0 -1
- package/dist/cura/p-19176c44.system.js +0 -2
- package/dist/cura/p-19176c44.system.js.map +0 -1
- package/dist/cura/p-3f6aaefc.system.js +0 -2
- package/dist/cura/p-3f6aaefc.system.js.map +0 -1
- package/dist/cura/p-50ea2036.system.js +0 -2
- package/dist/cura/p-50ea2036.system.js.map +0 -1
- package/dist/cura/p-a84ae34f.system.js +0 -3
- package/dist/cura/p-a84ae34f.system.js.map +0 -1
- package/dist/cura/p-b7e3230a.entry.js +0 -2
- package/dist/cura/p-b7e3230a.entry.js.map +0 -1
- package/dist/cura/p-beab48cd.js +0 -13
- package/dist/cura/p-beab48cd.js.map +0 -1
- package/dist/cura/p-cbc91ac5.js +0 -3
- package/dist/cura/p-cbc91ac5.js.map +0 -1
- package/dist/cura/p-e45582d9.system.entry.js +0 -2
- package/dist/cura/p-e45582d9.system.entry.js.map +0 -1
- package/dist/esm/app-globals-5009a324.js +0 -477
- package/dist/esm/app-globals-5009a324.js.map +0 -1
- package/dist/esm/css-shim-d13f0738.js +0 -6
- package/dist/esm/css-shim-d13f0738.js.map +0 -1
- package/dist/esm/cura-button_10.entry.js +0 -536
- package/dist/esm/cura-button_10.entry.js.map +0 -1
- package/dist/esm/cura.js +0 -31
- package/dist/esm/cura.js.map +0 -1
- package/dist/esm/index-92c824be.js +0 -1964
- package/dist/esm/index-92c824be.js.map +0 -1
- package/dist/esm/index.js +0 -3
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/loader.js +0 -38
- package/dist/esm/loader.js.map +0 -1
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/esm/shadow-css-07b0c8c8.js +0 -389
- package/dist/esm/shadow-css-07b0c8c8.js.map +0 -1
- package/dist/esm-es5/app-globals-5009a324.js +0 -2
- package/dist/esm-es5/app-globals-5009a324.js.map +0 -1
- package/dist/esm-es5/css-shim-d13f0738.js +0 -2
- package/dist/esm-es5/css-shim-d13f0738.js.map +0 -1
- package/dist/esm-es5/cura-button_10.entry.js +0 -2
- package/dist/esm-es5/cura-button_10.entry.js.map +0 -1
- package/dist/esm-es5/cura.js +0 -2
- package/dist/esm-es5/cura.js.map +0 -1
- package/dist/esm-es5/index-92c824be.js +0 -3
- package/dist/esm-es5/index-92c824be.js.map +0 -1
- package/dist/esm-es5/index.js +0 -2
- package/dist/esm-es5/index.js.map +0 -1
- package/dist/esm-es5/loader.js +0 -2
- package/dist/esm-es5/loader.js.map +0 -1
- package/dist/esm-es5/shadow-css-07b0c8c8.js +0 -13
- package/dist/esm-es5/shadow-css-07b0c8c8.js.map +0 -1
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/loader/cdn.js +0 -3
- package/dist/loader/index.cjs.js +0 -3
- package/dist/loader/index.d.ts +0 -21
- package/dist/loader/index.es2017.js +0 -3
- package/dist/loader/index.js +0 -4
- package/dist/loader/package.json +0 -11
- package/dist/types/api/cura-api.d.ts +0 -6
- package/dist/types/api/cura-api.type.d.ts +0 -65
- package/dist/types/api/modules/cura-theme-breakpoints-module.d.ts +0 -5
- package/dist/types/api/modules/cura-theme-colors-module.d.ts +0 -48
- package/dist/types/api/modules/cura-theme-fonts-module.d.ts +0 -24
- package/dist/types/api/modules/cura-theme-module.d.ts +0 -32
- package/dist/types/api/modules/cura-theme-spacing-module.d.ts +0 -6
- package/dist/types/api/theme-presets/static.d.ts +0 -69
- package/dist/types/api/theme-presets/theme-default.d.ts +0 -46
- package/dist/types/api/theme-presets/theme-maternity.d.ts +0 -43
- package/dist/types/api/theme-presets/theme-oncology.d.ts +0 -50
- package/dist/types/api/theme-presets/theme-presets.d.ts +0 -138
- package/dist/types/assets/icons/iconset-default-list.d.ts +0 -2
- package/dist/types/components/buttons/cura-button/cura-button.d.ts +0 -61
- package/dist/types/components/buttons/cura-button/cura-button.stories.d.ts +0 -119
- package/dist/types/components/buttons/cura-button-outline/cura-button-outline.d.ts +0 -61
- package/dist/types/components/buttons/cura-button-transparent/cura-button-transparent.d.ts +0 -61
- package/dist/types/components/cura-icon/cura-icon.d.ts +0 -56
- package/dist/types/components/cura-icons-view/cura-icons-view.d.ts +0 -7
- package/dist/types/components/cura-page-template/cura-page-template.d.ts +0 -8
- package/dist/types/components/loaders/cura-loader-circle/cura-loader-circle.d.ts +0 -23
- package/dist/types/components/text/cura-display/cura-display.d.ts +0 -38
- package/dist/types/components/text/cura-heading/cura-heading.d.ts +0 -43
- package/dist/types/components/text/cura-paragraph/cura-paragraph.d.ts +0 -37
- package/dist/types/components.d.ts +0 -574
- package/dist/types/index.d.ts +0 -1
- package/dist/types/rededor-cura-start.d.ts +0 -9
- package/dist/types/stencil-public-runtime.d.ts +0 -1638
- package/dist/types/utils/utils.d.ts +0 -1
package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.js
DELETED
|
@@ -1,308 +0,0 @@
|
|
|
1
|
-
import { Host, h } from '@stencil/core';
|
|
2
|
-
export class CuraButtonTransparent {
|
|
3
|
-
constructor() {
|
|
4
|
-
this.size = 'large';
|
|
5
|
-
this.disabled = false;
|
|
6
|
-
this.isLoading = false;
|
|
7
|
-
this.iconName = undefined;
|
|
8
|
-
this.iconset = 'default';
|
|
9
|
-
this.iconPosition = 'left';
|
|
10
|
-
this.iconOnly = undefined;
|
|
11
|
-
this.href = undefined;
|
|
12
|
-
this.target = "_self";
|
|
13
|
-
this.color = 'accent';
|
|
14
|
-
this.fontColor = 'dark';
|
|
15
|
-
this.textAlign = 'left';
|
|
16
|
-
this.styles = {};
|
|
17
|
-
}
|
|
18
|
-
handleChangeColor() {
|
|
19
|
-
this.setColors();
|
|
20
|
-
}
|
|
21
|
-
connectedCallback() {
|
|
22
|
-
this.weights = window.CuraAPI.theme.fonts.getWeights();
|
|
23
|
-
this.styles['--base-spacing'] = window.CuraAPI.theme.spacing.getSpacing();
|
|
24
|
-
this.styles['--neutral-white'] = window.CuraAPI.theme.colors.getColor(`neutral-white`);
|
|
25
|
-
this.styles['--neutral-base'] = window.CuraAPI.theme.colors.getColor(`neutral-base`);
|
|
26
|
-
this.styles['--neutral-dark'] = window.CuraAPI.theme.colors.getColor(`neutral-dark`);
|
|
27
|
-
this.styles['--font-size'] = window.CuraAPI.theme.fonts.getSize();
|
|
28
|
-
this.styles['--font-family'] = window.CuraAPI.theme.fonts.getFamily();
|
|
29
|
-
this.styles['--font-weight-medium'] = this.weights.medium;
|
|
30
|
-
this.styles['--text-align'] = this.textAlign;
|
|
31
|
-
this.setColors();
|
|
32
|
-
}
|
|
33
|
-
getClasses() {
|
|
34
|
-
const classes = {};
|
|
35
|
-
classes[`${this.size.toLowerCase()}`] = true;
|
|
36
|
-
classes[`icon-${this.iconPosition.toLowerCase()}`] = true;
|
|
37
|
-
classes[`icon-only`] = this.iconOnly;
|
|
38
|
-
classes['inverted'] = this.fontColor === 'light';
|
|
39
|
-
classes['disabled'] = this.disabled;
|
|
40
|
-
classes['isLoading'] = this.isLoading;
|
|
41
|
-
return classes;
|
|
42
|
-
}
|
|
43
|
-
setColors() {
|
|
44
|
-
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`) });
|
|
45
|
-
}
|
|
46
|
-
getIcon() {
|
|
47
|
-
if (!this.iconName)
|
|
48
|
-
return '';
|
|
49
|
-
const iconSize = this.size === 'small' ? 16 : this.size === 'medium' ? 20 : 24;
|
|
50
|
-
const color = this.getSymbolColor();
|
|
51
|
-
return h("cura-icon", { name: this.iconName, iconset: this.iconset, size: iconSize, color: color });
|
|
52
|
-
}
|
|
53
|
-
getSymbolColor() {
|
|
54
|
-
return this.disabled
|
|
55
|
-
? 'neutral-dark'
|
|
56
|
-
: this.fontColor === 'light'
|
|
57
|
-
? 'neutral-white'
|
|
58
|
-
: `${this.color}-base`;
|
|
59
|
-
}
|
|
60
|
-
handleClick(e) {
|
|
61
|
-
if (this.disabled || this.isLoading)
|
|
62
|
-
e.preventDefault();
|
|
63
|
-
}
|
|
64
|
-
render() {
|
|
65
|
-
return (h(Host, null, this.href ? (h("a", { href: this.disabled ? '' : this.href, target: this.target, class: this.getClasses(), style: this.styles, onClick: (e) => this.handleClick(e) }, h("span", { class: "button-container" }, this.getIcon(), h("span", { class: { label: true, inverted: this.fontColor === 'light' } }, h("slot", null))), h("cura-loader-circle", { size: this.size, color: this.getSymbolColor() }))) : (h("button", { class: this.getClasses(), style: this.styles, disabled: this.disabled || null, onClick: (e) => this.handleClick(e) }, h("span", { class: "button-container" }, this.getIcon(), h("span", { class: { label: true, inverted: this.fontColor === 'light' } }, h("slot", null))), h("cura-loader-circle", { size: this.size, color: this.getSymbolColor() })))));
|
|
66
|
-
}
|
|
67
|
-
static get is() { return "cura-button-transparent"; }
|
|
68
|
-
static get encapsulation() { return "shadow"; }
|
|
69
|
-
static get originalStyleUrls() {
|
|
70
|
-
return {
|
|
71
|
-
"$": ["cura-button-transparent.scss"]
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
static get styleUrls() {
|
|
75
|
-
return {
|
|
76
|
-
"$": ["cura-button-transparent.css"]
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
static get properties() {
|
|
80
|
-
return {
|
|
81
|
-
"size": {
|
|
82
|
-
"type": "string",
|
|
83
|
-
"mutable": false,
|
|
84
|
-
"complexType": {
|
|
85
|
-
"original": "'small' | 'medium' | 'large'",
|
|
86
|
-
"resolved": "\"large\" | \"medium\" | \"small\"",
|
|
87
|
-
"references": {}
|
|
88
|
-
},
|
|
89
|
-
"required": false,
|
|
90
|
-
"optional": false,
|
|
91
|
-
"docs": {
|
|
92
|
-
"tags": [],
|
|
93
|
-
"text": "Button size: small | medium | large (default)"
|
|
94
|
-
},
|
|
95
|
-
"attribute": "size",
|
|
96
|
-
"reflect": true,
|
|
97
|
-
"defaultValue": "'large'"
|
|
98
|
-
},
|
|
99
|
-
"disabled": {
|
|
100
|
-
"type": "boolean",
|
|
101
|
-
"mutable": false,
|
|
102
|
-
"complexType": {
|
|
103
|
-
"original": "boolean",
|
|
104
|
-
"resolved": "boolean",
|
|
105
|
-
"references": {}
|
|
106
|
-
},
|
|
107
|
-
"required": false,
|
|
108
|
-
"optional": false,
|
|
109
|
-
"docs": {
|
|
110
|
-
"tags": [],
|
|
111
|
-
"text": "Disabled state. Boolean."
|
|
112
|
-
},
|
|
113
|
-
"attribute": "disabled",
|
|
114
|
-
"reflect": true,
|
|
115
|
-
"defaultValue": "false"
|
|
116
|
-
},
|
|
117
|
-
"isLoading": {
|
|
118
|
-
"type": "boolean",
|
|
119
|
-
"mutable": false,
|
|
120
|
-
"complexType": {
|
|
121
|
-
"original": "boolean",
|
|
122
|
-
"resolved": "boolean",
|
|
123
|
-
"references": {}
|
|
124
|
-
},
|
|
125
|
-
"required": false,
|
|
126
|
-
"optional": false,
|
|
127
|
-
"docs": {
|
|
128
|
-
"tags": [],
|
|
129
|
-
"text": "Loading state. Boolean."
|
|
130
|
-
},
|
|
131
|
-
"attribute": "is-loading",
|
|
132
|
-
"reflect": true,
|
|
133
|
-
"defaultValue": "false"
|
|
134
|
-
},
|
|
135
|
-
"iconName": {
|
|
136
|
-
"type": "string",
|
|
137
|
-
"mutable": false,
|
|
138
|
-
"complexType": {
|
|
139
|
-
"original": "string",
|
|
140
|
-
"resolved": "string",
|
|
141
|
-
"references": {}
|
|
142
|
-
},
|
|
143
|
-
"required": false,
|
|
144
|
-
"optional": false,
|
|
145
|
-
"docs": {
|
|
146
|
-
"tags": [],
|
|
147
|
-
"text": "Name of the icon to be used from iconset."
|
|
148
|
-
},
|
|
149
|
-
"attribute": "icon-name",
|
|
150
|
-
"reflect": true
|
|
151
|
-
},
|
|
152
|
-
"iconset": {
|
|
153
|
-
"type": "string",
|
|
154
|
-
"mutable": false,
|
|
155
|
-
"complexType": {
|
|
156
|
-
"original": "string",
|
|
157
|
-
"resolved": "string",
|
|
158
|
-
"references": {}
|
|
159
|
-
},
|
|
160
|
-
"required": false,
|
|
161
|
-
"optional": false,
|
|
162
|
-
"docs": {
|
|
163
|
-
"tags": [],
|
|
164
|
-
"text": "Custom iconset if needed."
|
|
165
|
-
},
|
|
166
|
-
"attribute": "iconset",
|
|
167
|
-
"reflect": true,
|
|
168
|
-
"defaultValue": "'default'"
|
|
169
|
-
},
|
|
170
|
-
"iconPosition": {
|
|
171
|
-
"type": "string",
|
|
172
|
-
"mutable": false,
|
|
173
|
-
"complexType": {
|
|
174
|
-
"original": "'left' | 'right'",
|
|
175
|
-
"resolved": "\"left\" | \"right\"",
|
|
176
|
-
"references": {}
|
|
177
|
-
},
|
|
178
|
-
"required": false,
|
|
179
|
-
"optional": false,
|
|
180
|
-
"docs": {
|
|
181
|
-
"tags": [],
|
|
182
|
-
"text": "Icon position: left (default) | right."
|
|
183
|
-
},
|
|
184
|
-
"attribute": "icon-position",
|
|
185
|
-
"reflect": true,
|
|
186
|
-
"defaultValue": "'left'"
|
|
187
|
-
},
|
|
188
|
-
"iconOnly": {
|
|
189
|
-
"type": "boolean",
|
|
190
|
-
"mutable": false,
|
|
191
|
-
"complexType": {
|
|
192
|
-
"original": "false",
|
|
193
|
-
"resolved": "boolean",
|
|
194
|
-
"references": {}
|
|
195
|
-
},
|
|
196
|
-
"required": false,
|
|
197
|
-
"optional": false,
|
|
198
|
-
"docs": {
|
|
199
|
-
"tags": [],
|
|
200
|
-
"text": "Set button to FAB/icon only."
|
|
201
|
-
},
|
|
202
|
-
"attribute": "icon-only",
|
|
203
|
-
"reflect": true
|
|
204
|
-
},
|
|
205
|
-
"href": {
|
|
206
|
-
"type": "string",
|
|
207
|
-
"mutable": false,
|
|
208
|
-
"complexType": {
|
|
209
|
-
"original": "string",
|
|
210
|
-
"resolved": "string",
|
|
211
|
-
"references": {}
|
|
212
|
-
},
|
|
213
|
-
"required": false,
|
|
214
|
-
"optional": false,
|
|
215
|
-
"docs": {
|
|
216
|
-
"tags": [],
|
|
217
|
-
"text": "Property href switch button to link."
|
|
218
|
-
},
|
|
219
|
-
"attribute": "href",
|
|
220
|
-
"reflect": true
|
|
221
|
-
},
|
|
222
|
-
"target": {
|
|
223
|
-
"type": "string",
|
|
224
|
-
"mutable": false,
|
|
225
|
-
"complexType": {
|
|
226
|
-
"original": "string",
|
|
227
|
-
"resolved": "string",
|
|
228
|
-
"references": {}
|
|
229
|
-
},
|
|
230
|
-
"required": false,
|
|
231
|
-
"optional": false,
|
|
232
|
-
"docs": {
|
|
233
|
-
"tags": [],
|
|
234
|
-
"text": "Set target if link."
|
|
235
|
-
},
|
|
236
|
-
"attribute": "target",
|
|
237
|
-
"reflect": true,
|
|
238
|
-
"defaultValue": "\"_self\""
|
|
239
|
-
},
|
|
240
|
-
"color": {
|
|
241
|
-
"type": "string",
|
|
242
|
-
"mutable": false,
|
|
243
|
-
"complexType": {
|
|
244
|
-
"original": "string",
|
|
245
|
-
"resolved": "string",
|
|
246
|
-
"references": {}
|
|
247
|
-
},
|
|
248
|
-
"required": false,
|
|
249
|
-
"optional": false,
|
|
250
|
-
"docs": {
|
|
251
|
-
"tags": [],
|
|
252
|
-
"text": "Color base from color scheme. Default: accent."
|
|
253
|
-
},
|
|
254
|
-
"attribute": "color",
|
|
255
|
-
"reflect": false,
|
|
256
|
-
"defaultValue": "'accent'"
|
|
257
|
-
},
|
|
258
|
-
"fontColor": {
|
|
259
|
-
"type": "string",
|
|
260
|
-
"mutable": false,
|
|
261
|
-
"complexType": {
|
|
262
|
-
"original": "'dark' | 'light'",
|
|
263
|
-
"resolved": "\"dark\" | \"light\"",
|
|
264
|
-
"references": {}
|
|
265
|
-
},
|
|
266
|
-
"required": false,
|
|
267
|
-
"optional": false,
|
|
268
|
-
"docs": {
|
|
269
|
-
"tags": [],
|
|
270
|
-
"text": "Set the font color to dark or light."
|
|
271
|
-
},
|
|
272
|
-
"attribute": "font-color",
|
|
273
|
-
"reflect": true,
|
|
274
|
-
"defaultValue": "'dark'"
|
|
275
|
-
},
|
|
276
|
-
"textAlign": {
|
|
277
|
-
"type": "string",
|
|
278
|
-
"mutable": false,
|
|
279
|
-
"complexType": {
|
|
280
|
-
"original": "'left' | 'center' | 'right'",
|
|
281
|
-
"resolved": "\"center\" | \"left\" | \"right\"",
|
|
282
|
-
"references": {}
|
|
283
|
-
},
|
|
284
|
-
"required": false,
|
|
285
|
-
"optional": false,
|
|
286
|
-
"docs": {
|
|
287
|
-
"tags": [],
|
|
288
|
-
"text": "Set text aligment for the button label.\nVales: left (default) | center | right."
|
|
289
|
-
},
|
|
290
|
-
"attribute": "text-align",
|
|
291
|
-
"reflect": true,
|
|
292
|
-
"defaultValue": "'left'"
|
|
293
|
-
}
|
|
294
|
-
};
|
|
295
|
-
}
|
|
296
|
-
static get states() {
|
|
297
|
-
return {
|
|
298
|
-
"styles": {}
|
|
299
|
-
};
|
|
300
|
-
}
|
|
301
|
-
static get watchers() {
|
|
302
|
-
return [{
|
|
303
|
-
"propName": "color",
|
|
304
|
-
"methodName": "handleChangeColor"
|
|
305
|
-
}];
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
//# sourceMappingURL=cura-button-transparent.js.map
|
package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cura-button-transparent.js","sourceRoot":"","sources":["../../../../src/components/buttons/cura-button-transparent/cura-button-transparent.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAOvE,MAAM,OAAO,qBAAqB;;gBAK6B,OAAO;oBAKjC,KAAK;qBAIJ,KAAK;;mBASP,SAAS;wBAIc,MAAM;;;kBAa9B,OAAO;iBAKvB,QAAQ;qBAQ6B,MAAM;qBAKK,MAAM;kBAGpD,EAAE;;EAdpB,iBAAiB;IACf,IAAI,CAAC,SAAS,EAAE,CAAC;EACnB,CAAC;EAgBD,iBAAiB;IACf,IAAI,CAAC,OAAO,GAAG,MAAM,C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AAQ,IAAI,IAAI,EAC/B,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;MACnC,YAAM,KAAK,EAAC,kBAAkB;QAC1B,IAAI,CAAC,OAAO,EAAE;QAChB,YAAM,KAAK,EAAE,EAAC,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,SAAS,KAAK,OAAO,EAAC;UAAE,eAAa,CAAO,CACjF;MACP,0BAAoB,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,GAAuB,CACjF,CACV,CACM,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEH","sourcesContent":["import { Component, Host, h, Prop, State, Watch } from '@stencil/core';\n\n@Component({\n tag: 'cura-button-transparent',\n styleUrl: 'cura-button-transparent.scss',\n shadow: true,\n})\nexport class CuraButtonTransparent {\n\n /**\n * Button size: small | medium | large (default)\n */\n @Prop({reflect: true}) size: 'small' | 'medium' | 'large' = 'large';\n \n /**\n * Disabled state. Boolean.\n */\n @Prop({reflect: true}) disabled = false;\n /**\n * Loading state. Boolean.\n */\n @Prop({reflect: true}) isLoading = false;\n \n /**\n * Name of the icon to be used from iconset.\n */\n @Prop({reflect: true}) iconName: string;\n /**\n * Custom iconset if needed.\n */\n @Prop({reflect: true}) iconset = 'default';\n /**\n * Icon position: left (default) | right.\n */\n @Prop({reflect: true}) iconPosition: 'left' | 'right' = 'left';\n /**\n * Set button to FAB/icon only.\n */\n @Prop({reflect: true}) iconOnly: false;\n \n /**\n * Property href switch button to link.\n */\n @Prop({reflect: true}) href: string;\n /**\n * Set target if link.\n */\n @Prop({reflect: true}) target = \"_self\";\n \n /**\n * Color base from color scheme. Default: accent.\n */\n @Prop() color = 'accent';\n @Watch('color')\n handleChangeColor() {\n this.setColors();\n }\n /**\n * Set the font color to dark or light.\n */\n @Prop({reflect: true}) fontColor: 'dark' | 'light' = 'dark';\n /**\n * Set text aligment for the button label.\n * Vales: left (default) | center | right.\n */\n @Prop({reflect: true}) textAlign: 'left' | 'center' | 'right' = 'left';\n \n \n @State() styles = {};\n \n weights;\n \n connectedCallback() {\n this.weights = window.CuraAPI.theme.fonts.getWeights();\n this.styles['--base-spacing'] = window.CuraAPI.theme.spacing.getSpacing();\n this.styles['--neutral-white'] = window.CuraAPI.theme.colors.getColor(`neutral-white`);\n this.styles['--neutral-base'] = window.CuraAPI.theme.colors.getColor(`neutral-base`);\n this.styles['--neutral-dark'] = window.CuraAPI.theme.colors.getColor(`neutral-dark`);\n this.styles['--font-size'] = window.CuraAPI.theme.fonts.getSize();\n this.styles['--font-family'] = window.CuraAPI.theme.fonts.getFamily();\n this.styles['--font-weight-medium'] = this.weights.medium;\n this.styles['--text-align'] = this.textAlign;\n this.setColors();\n }\n \n getClasses() {\n const classes = {};\n classes[`${this.size.toLowerCase()}`] = true;\n classes[`icon-${this.iconPosition.toLowerCase()}`] = true;\n classes[`icon-only`] = this.iconOnly;\n classes['inverted'] = this.fontColor === 'light';\n classes['disabled'] = this.disabled;\n classes['isLoading'] = this.isLoading;\n return classes;\n }\n \n setColors() {\n this.styles = {\n ...this.styles,\n '--color-lighter': window.CuraAPI.theme.colors.getColor(`${this.color}-lighter`),\n '--color-light': window.CuraAPI.theme.colors.getColor(`${this.color}-light`),\n '--color-base': window.CuraAPI.theme.colors.getColor(`${this.color}-base`),\n '--color-dark': window.CuraAPI.theme.colors.getColor(`${this.color}-dark`)\n };\n }\n \n getIcon() {\n if (!this.iconName) return '';\n const iconSize = this.size === 'small' ? 16 : this.size === 'medium' ? 20 : 24;\n const color = this.getSymbolColor();\n return <cura-icon name={this.iconName} iconset={this.iconset} size={iconSize} color={color}></cura-icon>;\n }\n \n getSymbolColor() {\n return this.disabled \n ? 'neutral-dark' \n : this.fontColor === 'light' \n ? 'neutral-white' \n : `${this.color}-base`;\n }\n \n handleClick(e: Event) {\n if (this.disabled || this.isLoading) e.preventDefault();\n }\n \n render() {\n return (\n <Host>\n { this.href ? (\n <a href={this.disabled ? '' : this.href} \n target={this.target}\n class={this.getClasses()}\n style={this.styles}\n onClick={(e) => this.handleClick(e)}>\n <span class=\"button-container\">\n { this.getIcon() }\n <span class={{label: true, inverted: this.fontColor === 'light'}}><slot></slot></span>\n </span>\n <cura-loader-circle size={this.size} color={this.getSymbolColor()}></cura-loader-circle>\n </a>\n ) : (\n <button class={this.getClasses()}\n style={this.styles} \n disabled={this.disabled || null}\n onClick={(e) => this.handleClick(e)}>\n <span class=\"button-container\">\n { this.getIcon() }\n <span class={{label: true, inverted: this.fontColor === 'light'}}><slot></slot></span>\n </span>\n <cura-loader-circle size={this.size} color={this.getSymbolColor()}></cura-loader-circle>\n </button>\n )}\n </Host>\n );\n }\n\n}\n"]}
|
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
import { Host, h } from '@stencil/core';
|
|
2
|
-
export class CuraIcon {
|
|
3
|
-
constructor() {
|
|
4
|
-
this.sizes = {
|
|
5
|
-
"128": { size: 128, stroke: 5.25 },
|
|
6
|
-
"72": { size: 72, stroke: 3.5 },
|
|
7
|
-
"64": { size: 64, stroke: 3.25 },
|
|
8
|
-
"48": { size: 48, stroke: 2.75 },
|
|
9
|
-
"40": { size: 40, stroke: 2.5 },
|
|
10
|
-
"32": { size: 32, stroke: 2.25 },
|
|
11
|
-
"24": { size: 24, stroke: 2 },
|
|
12
|
-
"20": { size: 20, stroke: 1.75 },
|
|
13
|
-
"16": { size: 16, stroke: 1.5 },
|
|
14
|
-
"default": { size: 24, stroke: 2 }
|
|
15
|
-
};
|
|
16
|
-
this.name = '';
|
|
17
|
-
this.color = 'neutral-base';
|
|
18
|
-
this.size = undefined;
|
|
19
|
-
this.iconset = 'default';
|
|
20
|
-
this.disabled = false;
|
|
21
|
-
}
|
|
22
|
-
sizeHandler(size) {
|
|
23
|
-
const scaledStroke = (iconSize) => {
|
|
24
|
-
return `${this.sizes[iconSize].stroke * (this.sizes.default.size / this.sizes[iconSize].size)}px`;
|
|
25
|
-
};
|
|
26
|
-
this.setHostProperty('--size', this.sizes[`${size}`] ? `${this.sizes[size].size}px` : `${this.sizes.default.size}px`);
|
|
27
|
-
this.setHostProperty('--stroke', this.sizes[`${size}`] ? scaledStroke(size) : scaledStroke("default"));
|
|
28
|
-
}
|
|
29
|
-
colorHandler() {
|
|
30
|
-
this.setHostProperty('--color', window.CuraAPI.theme.colors.getColor(this.disabled ? 'neutral-light' : this.color));
|
|
31
|
-
}
|
|
32
|
-
connectedCallback() {
|
|
33
|
-
this.assetsPath = window.CuraAPI.localAssetsPath;
|
|
34
|
-
this.sizeHandler(this.size);
|
|
35
|
-
this.colorHandler();
|
|
36
|
-
}
|
|
37
|
-
setHostProperty(prop, value) {
|
|
38
|
-
this.host.style.setProperty(prop, value);
|
|
39
|
-
}
|
|
40
|
-
render() {
|
|
41
|
-
return (h(Host, null, h("svg", { version: "1.1", viewBox: "0 0 24 24", preserveAspectRatio: "xMidYMid meet", xmlns: "http://www.w3.org/2000/svg" }, h("use", { xlinkHref: `${this.assetsPath}/icons/iconset-${this.iconset}.svg#${this.name}` }))));
|
|
42
|
-
}
|
|
43
|
-
static get is() { return "cura-icon"; }
|
|
44
|
-
static get encapsulation() { return "shadow"; }
|
|
45
|
-
static get originalStyleUrls() {
|
|
46
|
-
return {
|
|
47
|
-
"$": ["cura-icon.scss"]
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
static get styleUrls() {
|
|
51
|
-
return {
|
|
52
|
-
"$": ["cura-icon.css"]
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
static get properties() {
|
|
56
|
-
return {
|
|
57
|
-
"name": {
|
|
58
|
-
"type": "string",
|
|
59
|
-
"mutable": false,
|
|
60
|
-
"complexType": {
|
|
61
|
-
"original": "string",
|
|
62
|
-
"resolved": "string",
|
|
63
|
-
"references": {}
|
|
64
|
-
},
|
|
65
|
-
"required": false,
|
|
66
|
-
"optional": false,
|
|
67
|
-
"docs": {
|
|
68
|
-
"tags": [],
|
|
69
|
-
"text": ""
|
|
70
|
-
},
|
|
71
|
-
"attribute": "name",
|
|
72
|
-
"reflect": true,
|
|
73
|
-
"defaultValue": "''"
|
|
74
|
-
},
|
|
75
|
-
"color": {
|
|
76
|
-
"type": "string",
|
|
77
|
-
"mutable": false,
|
|
78
|
-
"complexType": {
|
|
79
|
-
"original": "string",
|
|
80
|
-
"resolved": "string",
|
|
81
|
-
"references": {}
|
|
82
|
-
},
|
|
83
|
-
"required": false,
|
|
84
|
-
"optional": false,
|
|
85
|
-
"docs": {
|
|
86
|
-
"tags": [],
|
|
87
|
-
"text": ""
|
|
88
|
-
},
|
|
89
|
-
"attribute": "color",
|
|
90
|
-
"reflect": false,
|
|
91
|
-
"defaultValue": "'neutral-base'"
|
|
92
|
-
},
|
|
93
|
-
"size": {
|
|
94
|
-
"type": "any",
|
|
95
|
-
"mutable": false,
|
|
96
|
-
"complexType": {
|
|
97
|
-
"original": "string | number",
|
|
98
|
-
"resolved": "number | string",
|
|
99
|
-
"references": {}
|
|
100
|
-
},
|
|
101
|
-
"required": false,
|
|
102
|
-
"optional": false,
|
|
103
|
-
"docs": {
|
|
104
|
-
"tags": [],
|
|
105
|
-
"text": ""
|
|
106
|
-
},
|
|
107
|
-
"attribute": "size",
|
|
108
|
-
"reflect": false
|
|
109
|
-
},
|
|
110
|
-
"iconset": {
|
|
111
|
-
"type": "string",
|
|
112
|
-
"mutable": false,
|
|
113
|
-
"complexType": {
|
|
114
|
-
"original": "string",
|
|
115
|
-
"resolved": "string",
|
|
116
|
-
"references": {}
|
|
117
|
-
},
|
|
118
|
-
"required": false,
|
|
119
|
-
"optional": false,
|
|
120
|
-
"docs": {
|
|
121
|
-
"tags": [],
|
|
122
|
-
"text": ""
|
|
123
|
-
},
|
|
124
|
-
"attribute": "iconset",
|
|
125
|
-
"reflect": true,
|
|
126
|
-
"defaultValue": "'default'"
|
|
127
|
-
},
|
|
128
|
-
"disabled": {
|
|
129
|
-
"type": "boolean",
|
|
130
|
-
"mutable": false,
|
|
131
|
-
"complexType": {
|
|
132
|
-
"original": "boolean",
|
|
133
|
-
"resolved": "boolean",
|
|
134
|
-
"references": {}
|
|
135
|
-
},
|
|
136
|
-
"required": false,
|
|
137
|
-
"optional": false,
|
|
138
|
-
"docs": {
|
|
139
|
-
"tags": [],
|
|
140
|
-
"text": ""
|
|
141
|
-
},
|
|
142
|
-
"attribute": "disabled",
|
|
143
|
-
"reflect": false,
|
|
144
|
-
"defaultValue": "false"
|
|
145
|
-
}
|
|
146
|
-
};
|
|
147
|
-
}
|
|
148
|
-
static get elementRef() { return "host"; }
|
|
149
|
-
static get watchers() {
|
|
150
|
-
return [{
|
|
151
|
-
"propName": "size",
|
|
152
|
-
"methodName": "sizeHandler"
|
|
153
|
-
}, {
|
|
154
|
-
"propName": "color",
|
|
155
|
-
"methodName": "colorHandler"
|
|
156
|
-
}, {
|
|
157
|
-
"propName": "disabled",
|
|
158
|
-
"methodName": "colorHandler"
|
|
159
|
-
}];
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
//# sourceMappingURL=cura-icon.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cura-icon.js","sourceRoot":"","sources":["../../../src/components/cura-icon/cura-icon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAOzE,MAAM,OAAO,QAAQ;;IAUnB,UAAK,GAAG;MACN,K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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEF","sourcesContent":["import { Component, Host, h, Prop, Element, Watch } from '@stencil/core';\n\n@Component({\n tag: 'cura-icon',\n styleUrl: 'cura-icon.scss',\n shadow: true\n})\nexport class CuraIcon {\n\n @Prop({reflect: true}) name = '';\n @Prop() color = 'neutral-base';\n @Prop() size: string | number;\n @Prop({reflect: true}) iconset = 'default';\n @Prop() disabled = false;\n\n @Element() host: HTMLElement;\n\n sizes = {\n \"128\": {size: 128, stroke: 5.25},\n \"72\": {size: 72, stroke: 3.5},\n \"64\": {size: 64, stroke: 3.25},\n \"48\": {size: 48, stroke: 2.75},\n \"40\": {size: 40, stroke: 2.5},\n \"32\": {size: 32, stroke: 2.25},\n \"24\": {size: 24, stroke: 2},\n \"20\": {size: 20, stroke: 1.75},\n \"16\": {size: 16, stroke: 1.5},\n \"default\": {size: 24, stroke: 2}\n };\n\n @Watch('size')\n sizeHandler(size: string | number) {\n const scaledStroke = (iconSize: string | number) => {\n return `${this.sizes[iconSize].stroke * (this.sizes.default.size / this.sizes[iconSize].size)}px`;\n }\n this.setHostProperty('--size', this.sizes[`${size}`] ? `${this.sizes[size].size}px` : `${this.sizes.default.size}px`);\n this.setHostProperty('--stroke', this.sizes[`${size}`] ? scaledStroke(size) : scaledStroke(\"default\"));\n }\n\n @Watch('color')\n @Watch('disabled')\n colorHandler() {\n this.setHostProperty('--color', window.CuraAPI.theme.colors.getColor(this.disabled ? 'neutral-light' : this.color));\n }\n\n assetsPath: string;\n\n connectedCallback() {\n this.assetsPath = window.CuraAPI.localAssetsPath;\n this.sizeHandler(this.size);\n this.colorHandler();\n }\n\n setHostProperty(prop: string, value: string) {\n this.host.style.setProperty(prop, value);\n }\n\n render() {\n return (\n <Host>\n <svg\n version=\"1.1\"\n viewBox=\"0 0 24 24\"\n preserveAspectRatio=\"xMidYMid meet\"\n xmlns=\"http://www.w3.org/2000/svg\">\n <use\n xlinkHref={`${this.assetsPath}/icons/iconset-${this.iconset}.svg#${this.name}`}>\n </use>\n </svg>\n </Host>\n );\n }\n\n}\n"]}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
display: block;
|
|
3
|
-
padding: 24px;
|
|
4
|
-
font-family: "Roboto", Arial, Helvetica, sans-serif;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.iconDetail {
|
|
8
|
-
display: block;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.iconSizes {
|
|
12
|
-
display: flex;
|
|
13
|
-
align-items: center;
|
|
14
|
-
}
|
|
15
|
-
.iconSizes .size {
|
|
16
|
-
display: flex;
|
|
17
|
-
flex-direction: column;
|
|
18
|
-
text-align: center;
|
|
19
|
-
margin-right: 9px;
|
|
20
|
-
padding: 8px;
|
|
21
|
-
}
|
|
22
|
-
.iconSizes .size:last-child {
|
|
23
|
-
margin-right: 0;
|
|
24
|
-
}
|
|
25
|
-
.iconSizes .size span {
|
|
26
|
-
font-size: 10px;
|
|
27
|
-
}
|
|
28
|
-
.iconSizes.invert {
|
|
29
|
-
margin-top: 12px;
|
|
30
|
-
}
|
|
31
|
-
.iconSizes.invert .size {
|
|
32
|
-
background-color: #262626;
|
|
33
|
-
color: #F6F6F6;
|
|
34
|
-
border-radius: 3px;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.icons {
|
|
38
|
-
margin-top: 28px;
|
|
39
|
-
display: flex;
|
|
40
|
-
flex-wrap: wrap;
|
|
41
|
-
position: relative;
|
|
42
|
-
}
|
|
43
|
-
.icons .icon {
|
|
44
|
-
position: relative;
|
|
45
|
-
padding: 4px;
|
|
46
|
-
cursor: pointer;
|
|
47
|
-
opacity: 0.6;
|
|
48
|
-
transition: opacity 0.2s linear;
|
|
49
|
-
}
|
|
50
|
-
.icons .icon span {
|
|
51
|
-
font-size: 12px;
|
|
52
|
-
padding: 6px;
|
|
53
|
-
box-sizing: border-box;
|
|
54
|
-
background: #000;
|
|
55
|
-
color: #FFF;
|
|
56
|
-
border-radius: 2px;
|
|
57
|
-
position: absolute;
|
|
58
|
-
top: -2px;
|
|
59
|
-
left: 50%;
|
|
60
|
-
transform: translateX(-50%) translateY(-100%);
|
|
61
|
-
display: none;
|
|
62
|
-
}
|
|
63
|
-
.icons .icon:hover {
|
|
64
|
-
opacity: 1;
|
|
65
|
-
}
|
|
66
|
-
.icons .icon:hover span {
|
|
67
|
-
display: block;
|
|
68
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { Host, h } from '@stencil/core';
|
|
2
|
-
import iconsetdefaulticons from '../../assets/icons/iconset-default-list';
|
|
3
|
-
export class CuraIconsView {
|
|
4
|
-
constructor() {
|
|
5
|
-
this.sizes = [16, 20, 24, 32, 40, 48, 64, 72, 128];
|
|
6
|
-
this.colors = ['primary', 'secondary', 'accent', 'info', 'warning', 'error', 'success', 'neutral'];
|
|
7
|
-
this.setSelected = (icon) => {
|
|
8
|
-
this.selected = icon;
|
|
9
|
-
};
|
|
10
|
-
this.selected = '360';
|
|
11
|
-
}
|
|
12
|
-
render() {
|
|
13
|
-
return (h(Host, null, h("div", { class: "iconDetail" }, h("h4", null, this.selected), h("div", { class: "iconSizes" }, this.sizes.map(size => h("div", { class: "size" }, h("cura-icon", { name: this.selected, size: size }), h("span", null, size)))), h("div", { class: "iconSizes invert" }, this.sizes.map(size => h("div", { class: "size" }, h("cura-icon", { name: this.selected, size: size, color: "neutral-white" }), h("span", null, size)))), h("div", { class: "iconSizes" }, this.colors.map(color => h("div", { class: "size" }, h("cura-icon", { name: this.selected, color: color }), h("span", null, color))), h("div", { class: "size" }, h("cura-icon", { name: this.selected, disabled: true }), h("span", null, "Disabled")))), h("div", { class: "icons" }, iconsetdefaulticons.map(icon => h("div", { class: "icon", onClick: () => this.setSelected(icon) }, h("cura-icon", { name: icon }), h("span", null, icon))))));
|
|
14
|
-
}
|
|
15
|
-
static get is() { return "cura-icons-view"; }
|
|
16
|
-
static get encapsulation() { return "shadow"; }
|
|
17
|
-
static get originalStyleUrls() {
|
|
18
|
-
return {
|
|
19
|
-
"$": ["cura-icons-view.scss"]
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
static get styleUrls() {
|
|
23
|
-
return {
|
|
24
|
-
"$": ["cura-icons-view.css"]
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
static get states() {
|
|
28
|
-
return {
|
|
29
|
-
"selected": {}
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
//# sourceMappingURL=cura-icons-view.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cura-icons-view.js","sourceRoot":"","sources":["../../../src/components/cura-icons-view/cura-icons-view.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,mBAAmB,MAAM,yCAAyC,CAAC;AAO1E,MAAM,OAAO,aAAa;;IAExB,UAAK,GAAG,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,CAAC;IAC9C,WAAM,GAAG,CAAC,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;IAG9F,gBAAW,GAAG,CAAC,IAAI,EAAE,EAAE;MACrB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;IACvB,CAAC,CAAA;oBAJmB,KAAK;;EAMzB,MAAM;IACJ,OAAO,CACL,EAAC,IAAI;MACH,WAAK,KAAK,EAAC,YAAY;QACrB,cAAM,IAAI,CAAC,QAAQ,CAAO;QAC1B,WAAK,KAAK,EAAC,WAAW,IAClB,IAAI,CAAC,KAAK,CAAC,GAAG,CAAE,IAAI,CAAC,EAAE,CAEvB,WAAK,KAAK,EAAC,MAAM;UACf,iBAAW,IAAI,EAAE,IAAI,CAAC,QAAQ,EAAE,IAAI,EAAE,IAAI,GAAc;UACxD,gBAAQ,IAAI,CAAS,CACjB,CACP,CACG;QACN,WAAK,KAAK,EAAC,kBAAkB,IACzB,IAAI,CAAC,KAAK,CAAC,GAAG,CAAE,IAAI,CAAC,EAAE,CAEvB,WAAK,KAAK,EAAC,MAAM;UACf,iBAAW,IAAI,EAAE,IAAI,CAAC,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAC,eAAe,GAAa;UAC9E,gBAAQ,IAAI,CAAS,CACjB,CACP,CACG;QACN,WAAK,KAAK,EAAC,WAAW;UAClB,IAAI,CAAC,MAAM,CAAC,GAAG,CAAE,KAAK,CAAC,EAAE,CACzB,WAAK,KAAK,EAAC,MAAM;YACf,iBAAW,IAAI,EAAE,IAAI,CAAC,QAAQ,EAAE,KAAK,EAAE,KAAK,GAAc;YAC1D,gBAAQ,KAAK,CAAS,CAClB,CACP;UACD,WAAK,KAAK,EAAC,MAAM;YACf,iBAAW,IAAI,EAAE,IAAI,CAAC,QAAQ,EAAE,QAAQ,SAAa;YACrD,2BAAqB,CACjB,CACF,CACF;MACN,WAAK,KAAK,EAAC,OAAO,IACd,mBAAmB,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAC/B,WAAK,KAAK,EAAC,MAAM,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;QACrD,iBAAW,IAAI,EAAE,IAAI,GAAc;QACnC,gBAAO,IAAI,CAAQ,CACf,CACP,CACG,CACD,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;CAEF","sourcesContent":["import { Component, Host, h, State } from '@stencil/core';\nimport iconsetdefaulticons from '../../assets/icons/iconset-default-list';\n\n@Component({\n tag: 'cura-icons-view',\n styleUrl: 'cura-icons-view.scss',\n shadow: true,\n})\nexport class CuraIconsView {\n\n sizes = [16, 20, 24, 32, 40, 48, 64, 72, 128];\n colors = ['primary', 'secondary', 'accent', 'info', 'warning', 'error', 'success', 'neutral'];\n @State() selected = '360';\n\n setSelected = (icon) => {\n this.selected = icon;\n }\n\n render() {\n return (\n <Host>\n <div class=\"iconDetail\">\n <h4>{ this.selected }</h4>\n <div class=\"iconSizes\">\n { this.sizes.map( size =>\n\n <div class=\"size\">\n <cura-icon name={this.selected} size={size}></cura-icon>\n <span>{ size }</span>\n </div>\n )}\n </div>\n <div class=\"iconSizes invert\">\n { this.sizes.map( size =>\n\n <div class=\"size\">\n <cura-icon name={this.selected} size={size} color=\"neutral-white\"></cura-icon>\n <span>{ size }</span>\n </div>\n )}\n </div>\n <div class=\"iconSizes\">\n { this.colors.map( color =>\n <div class=\"size\">\n <cura-icon name={this.selected} color={color}></cura-icon>\n <span>{ color }</span>\n </div>\n )}\n <div class=\"size\">\n <cura-icon name={this.selected} disabled></cura-icon>\n <span>Disabled</span>\n </div>\n </div>\n </div>\n <div class=\"icons\">\n { iconsetdefaulticons.map(icon =>\n <div class=\"icon\" onClick={() => this.setSelected(icon)}>\n <cura-icon name={icon}></cura-icon>\n <span>{icon}</span>\n </div>\n )}\n </div>\n </Host>\n );\n }\n\n}\n"]}
|