@rededor/cura 0.5.1 → 0.5.3
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 -1
- package/dist/assets/icons/iconset-default-tmp.svg +4 -0
- package/dist/assets/icons/iconset-default.svg +1 -1
- package/dist/cjs/{app-globals-0e3b7fc6.js → app-globals-2988084b.js} +5 -5
- package/dist/cjs/app-globals-2988084b.js.map +1 -0
- package/dist/cjs/cura-accordion_8.cjs.entry.js +445 -0
- package/dist/cjs/cura-accordion_8.cjs.entry.js.map +1 -0
- package/dist/cjs/cura-alert.cjs.entry.js +67 -0
- package/dist/cjs/cura-alert.cjs.entry.js.map +1 -0
- package/dist/cjs/cura-button-outline.cjs.entry.js +83 -0
- package/dist/cjs/cura-button-outline.cjs.entry.js.map +1 -0
- package/dist/cjs/cura-button-select.cjs.entry.js +97 -0
- package/dist/cjs/cura-button-select.cjs.entry.js.map +1 -0
- package/dist/cjs/cura-button-transparent.cjs.entry.js +83 -0
- package/dist/cjs/cura-button-transparent.cjs.entry.js.map +1 -0
- package/dist/cjs/cura-checkbox.cjs.entry.js +144 -0
- package/dist/cjs/cura-checkbox.cjs.entry.js.map +1 -0
- package/dist/cjs/cura-display.cjs.entry.js +74 -0
- package/dist/cjs/cura-display.cjs.entry.js.map +1 -0
- package/dist/cjs/cura-forms.definitions-11be2ebd.js +20 -0
- package/dist/cjs/cura-forms.definitions-11be2ebd.js.map +1 -0
- package/dist/cjs/cura-icon.definitions-b73b0178.js +21 -0
- package/dist/cjs/cura-icon.definitions-b73b0178.js.map +1 -0
- package/dist/cjs/cura-icons-view.cjs.entry.js +36 -0
- package/dist/cjs/cura-icons-view.cjs.entry.js.map +1 -0
- package/dist/cjs/cura-input-text.cjs.entry.js +3907 -0
- package/dist/cjs/cura-input-text.cjs.entry.js.map +1 -0
- package/dist/cjs/cura-label.cjs.entry.js +69 -0
- package/dist/cjs/cura-label.cjs.entry.js.map +1 -0
- package/dist/cjs/cura-radio.cjs.entry.js +114 -0
- package/dist/cjs/cura-radio.cjs.entry.js.map +1 -0
- package/dist/cjs/cura-switch.cjs.entry.js +89 -0
- package/dist/cjs/cura-switch.cjs.entry.js.map +1 -0
- package/dist/cjs/cura.cjs.js +3 -3
- package/dist/cjs/{index-404d93e9.js → index-7616f620.js} +35 -1
- package/dist/cjs/index-7616f620.js.map +1 -0
- package/dist/cjs/index.cjs.js +7 -0
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/collection/api/cura-api.type.js.map +1 -1
- package/dist/collection/api/modules/cura-theme-breakpoints-module.js +1 -1
- package/dist/collection/api/modules/cura-theme-breakpoints-module.js.map +1 -1
- package/dist/collection/api/modules/cura-theme-colors-module.js +1 -1
- package/dist/collection/api/modules/cura-theme-colors-module.js.map +1 -1
- package/dist/collection/api/theme-presets/static.js +2 -2
- package/dist/collection/api/theme-presets/static.js.map +1 -1
- package/dist/collection/assets/icons/iconset-default-list.js +1 -1
- package/dist/collection/assets/icons/iconset-default-list.js.map +1 -1
- package/dist/collection/assets/icons/iconset-default-tmp.svg +4 -0
- package/dist/collection/assets/icons/iconset-default.svg +1 -1
- package/dist/collection/assets-raw/icons/default/swap.svg +3 -0
- package/dist/collection/collection-manifest.json +7 -0
- package/dist/collection/components/accordion/cura-accordion-item/cura-accordion-item.css +10 -6
- package/dist/collection/components/buttons/cura-button/cura-button.css +4 -0
- package/dist/collection/components/buttons/cura-button/cura-button.stories.js +2 -2
- package/dist/collection/components/buttons/cura-button/cura-button.stories.js.map +1 -1
- package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.css +4 -0
- package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.stories.js +2 -2
- package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.stories.js.map +1 -1
- package/dist/collection/components/buttons/cura-button-select/cura-button-select.css +139 -0
- package/dist/collection/components/buttons/cura-button-select/cura-button-select.js +263 -0
- package/dist/collection/components/buttons/cura-button-select/cura-button-select.js.map +1 -0
- package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.css +4 -0
- package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.stories.js +2 -2
- package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.stories.js.map +1 -1
- package/dist/collection/components/cura-alert/cura-alert.css +30 -0
- package/dist/collection/components/cura-alert/cura-alert.js +167 -0
- package/dist/collection/components/cura-alert/cura-alert.js.map +1 -0
- package/dist/collection/components/cura-alert/cura-alert.stories.js +95 -0
- package/dist/collection/components/cura-alert/cura-alert.stories.js.map +1 -0
- package/dist/collection/components/cura-icon/cura-icon.definitions.js +15 -0
- package/dist/collection/components/cura-icon/cura-icon.definitions.js.map +1 -0
- package/dist/collection/components/cura-icon/cura-icon.js +9 -16
- package/dist/collection/components/cura-icon/cura-icon.js.map +1 -1
- package/dist/collection/components/cura-icon/cura-icon.stories.js +7 -6
- package/dist/collection/components/cura-icon/cura-icon.stories.js.map +1 -1
- package/dist/collection/components/cura-icons-view/cura-icons-view.css +16 -17
- package/dist/collection/components/cura-icons-view/cura-icons-view.js +10 -3
- package/dist/collection/components/cura-icons-view/cura-icons-view.js.map +1 -1
- package/dist/collection/components/cura-page-template/cura-page-template.css +13 -9
- package/dist/collection/components/forms/cura-checkbox/cura-checkbox.css +163 -0
- package/dist/collection/components/forms/cura-checkbox/cura-checkbox.js +431 -0
- package/dist/collection/components/forms/cura-checkbox/cura-checkbox.js.map +1 -0
- package/dist/collection/components/forms/cura-checkbox/cura-checkbox.stories.js +196 -0
- package/dist/collection/components/forms/cura-checkbox/cura-checkbox.stories.js.map +1 -0
- package/dist/collection/components/forms/cura-forms.definitions.js +15 -0
- package/dist/collection/components/forms/cura-forms.definitions.js.map +1 -0
- package/dist/collection/components/forms/cura-input-text/cura-input-text.css +326 -0
- package/dist/collection/components/forms/cura-input-text/cura-input-text.js +655 -0
- package/dist/collection/components/forms/cura-input-text/cura-input-text.js.map +1 -0
- package/dist/collection/components/forms/cura-input-text/cura-input-text.stories.js +224 -0
- package/dist/collection/components/forms/cura-input-text/cura-input-text.stories.js.map +1 -0
- package/dist/collection/components/forms/cura-input-text/mask-presets/input-mask-presets.js +46 -0
- package/dist/collection/components/forms/cura-input-text/mask-presets/input-mask-presets.js.map +1 -0
- package/dist/collection/components/forms/cura-label/cura-label.css +70 -0
- package/dist/collection/components/forms/cura-label/cura-label.js +190 -0
- package/dist/collection/components/forms/cura-label/cura-label.js.map +1 -0
- package/dist/collection/components/forms/cura-label/cura-label.stories.js +137 -0
- package/dist/collection/components/forms/cura-label/cura-label.stories.js.map +1 -0
- package/dist/collection/components/forms/cura-radio/cura-radio.css +146 -0
- package/dist/collection/components/forms/cura-radio/cura-radio.js +365 -0
- package/dist/collection/components/forms/cura-radio/cura-radio.js.map +1 -0
- package/dist/collection/components/forms/cura-radio/cura-radio.stories.js +175 -0
- package/dist/collection/components/forms/cura-radio/cura-radio.stories.js.map +1 -0
- package/dist/collection/components/forms/cura-switch/cura-switch.css +100 -0
- package/dist/collection/components/forms/cura-switch/cura-switch.js +266 -0
- package/dist/collection/components/forms/cura-switch/cura-switch.js.map +1 -0
- package/dist/collection/components/forms/cura-switch/cura-switch.stories.js +137 -0
- package/dist/collection/components/forms/cura-switch/cura-switch.stories.js.map +1 -0
- package/dist/collection/components/text/cura-display/cura-display.css +21 -38
- package/dist/collection/components/text/cura-display/cura-display.js +80 -49
- package/dist/collection/components/text/cura-display/cura-display.js.map +1 -1
- package/dist/collection/components/text/cura-display/cura-display.stories.js +78 -33
- package/dist/collection/components/text/cura-display/cura-display.stories.js.map +1 -1
- package/dist/collection/components/text/cura-heading/cura-heading.css +50 -24
- package/dist/collection/components/text/cura-heading/cura-heading.js +94 -39
- package/dist/collection/components/text/cura-heading/cura-heading.js.map +1 -1
- package/dist/collection/components/text/cura-heading/cura-heading.stories.js +92 -36
- package/dist/collection/components/text/cura-heading/cura-heading.stories.js.map +1 -1
- package/dist/collection/components/text/cura-paragraph/cura-paragraph.css +37 -38
- package/dist/collection/components/text/cura-paragraph/cura-paragraph.js +62 -41
- package/dist/collection/components/text/cura-paragraph/cura-paragraph.js.map +1 -1
- package/dist/collection/components/text/cura-paragraph/cura-paragraph.stories.js +78 -46
- package/dist/collection/components/text/cura-paragraph/cura-paragraph.stories.js.map +1 -1
- package/dist/collection/index.js +3 -1
- package/dist/collection/index.js.map +1 -1
- package/dist/components/cura-accordion-item.js +1 -1
- package/dist/components/cura-accordion-item.js.map +1 -1
- package/dist/components/cura-alert.d.ts +11 -0
- package/dist/components/cura-alert.js +105 -0
- package/dist/components/cura-alert.js.map +1 -0
- package/dist/components/cura-button-select.d.ts +11 -0
- package/dist/components/cura-button-select.js +127 -0
- package/dist/components/cura-button-select.js.map +1 -0
- package/dist/components/cura-checkbox.d.ts +11 -0
- package/dist/components/cura-checkbox.js +192 -0
- package/dist/components/cura-checkbox.js.map +1 -0
- package/dist/components/cura-display.js +41 -35
- package/dist/components/cura-display.js.map +1 -1
- package/dist/components/cura-forms.definitions.js +18 -0
- package/dist/components/cura-forms.definitions.js.map +1 -0
- package/dist/components/cura-heading.js +1 -87
- package/dist/components/cura-heading.js.map +1 -1
- package/dist/components/cura-heading2.js +104 -0
- package/dist/components/cura-heading2.js.map +1 -0
- package/dist/components/cura-icon2.js +24 -17
- package/dist/components/cura-icon2.js.map +1 -1
- package/dist/components/cura-icons-view.js +31 -7
- package/dist/components/cura-icons-view.js.map +1 -1
- package/dist/components/cura-input-text.d.ts +11 -0
- package/dist/components/cura-input-text.js +3961 -0
- package/dist/components/cura-input-text.js.map +1 -0
- package/dist/components/cura-label.d.ts +11 -0
- package/dist/components/cura-label.js +8 -0
- package/dist/components/cura-label.js.map +1 -0
- package/dist/components/cura-label2.js +88 -0
- package/dist/components/cura-label2.js.map +1 -0
- package/dist/components/cura-page-template.js +1 -1
- package/dist/components/cura-page-template.js.map +1 -1
- package/dist/components/cura-paragraph.js +1 -80
- package/dist/components/cura-paragraph.js.map +1 -1
- package/dist/components/cura-paragraph2.js +86 -0
- package/dist/components/cura-paragraph2.js.map +1 -0
- package/dist/components/cura-radio.d.ts +11 -0
- package/dist/components/cura-radio.js +154 -0
- package/dist/components/cura-radio.js.map +1 -0
- package/dist/components/cura-switch.d.ts +11 -0
- package/dist/components/cura-switch.js +119 -0
- package/dist/components/cura-switch.js.map +1 -0
- package/dist/components/index.js +23 -5
- package/dist/components/index.js.map +1 -1
- package/dist/cura/cura.esm.js +1 -1
- package/dist/cura/cura.esm.js.map +1 -1
- package/dist/cura/cura.js +1 -1
- package/dist/cura/index.esm.js +1 -1
- package/dist/cura/index.esm.js.map +1 -1
- package/dist/cura/p-120926c5.system.js +2 -0
- package/dist/cura/p-120926c5.system.js.map +1 -0
- package/dist/cura/p-1228e771.entry.js +2 -0
- package/dist/cura/p-1228e771.entry.js.map +1 -0
- package/dist/cura/p-2d42ccf4.entry.js +2 -0
- package/dist/cura/p-2d42ccf4.entry.js.map +1 -0
- package/dist/cura/p-3688570d.js +2 -0
- package/dist/cura/p-3688570d.js.map +1 -0
- package/dist/cura/p-36a83bc7.system.js +3 -0
- package/dist/cura/p-36a83bc7.system.js.map +1 -0
- package/dist/cura/p-3f3355f3.system.entry.js +2 -0
- package/dist/cura/p-3f3355f3.system.entry.js.map +1 -0
- package/dist/cura/p-48426f60.system.js +2 -0
- package/dist/cura/p-48426f60.system.js.map +1 -0
- package/dist/cura/p-4df84c9e.entry.js +2 -0
- package/dist/cura/p-4df84c9e.entry.js.map +1 -0
- package/dist/cura/p-70cefaf8.entry.js +2 -0
- package/dist/cura/p-70cefaf8.entry.js.map +1 -0
- package/dist/cura/p-72a9ed55.entry.js +2 -0
- package/dist/cura/p-72a9ed55.entry.js.map +1 -0
- package/dist/cura/p-75b2e4d1.system.entry.js +2 -0
- package/dist/cura/p-75b2e4d1.system.entry.js.map +1 -0
- package/dist/cura/p-880917c1.entry.js +2 -0
- package/dist/cura/p-880917c1.entry.js.map +1 -0
- package/dist/cura/p-9471c93e.system.entry.js +2 -0
- package/dist/cura/p-9471c93e.system.entry.js.map +1 -0
- package/dist/cura/p-98014544.entry.js +2 -0
- package/dist/cura/p-98014544.entry.js.map +1 -0
- package/dist/cura/p-98352c92.system.entry.js +2 -0
- package/dist/cura/p-98352c92.system.entry.js.map +1 -0
- package/dist/cura/p-a32889a4.system.js +2 -0
- package/dist/cura/p-a32889a4.system.js.map +1 -0
- package/dist/cura/p-a6d20c12.system.entry.js +2 -0
- package/dist/cura/p-a6d20c12.system.entry.js.map +1 -0
- package/dist/cura/p-ab8c9a8f.system.entry.js +2 -0
- package/dist/cura/p-ab8c9a8f.system.entry.js.map +1 -0
- package/dist/cura/p-ad194144.entry.js +2 -0
- package/dist/cura/p-ad194144.entry.js.map +1 -0
- package/dist/cura/p-b0e13882.system.entry.js +2 -0
- package/dist/cura/p-b0e13882.system.entry.js.map +1 -0
- package/dist/cura/p-ba66d7be.js +3 -0
- package/dist/cura/{p-c0c00396.system.js.map → p-ba66d7be.js.map} +1 -1
- package/dist/cura/p-bb3f9d05.entry.js +2 -0
- package/dist/cura/p-bb3f9d05.entry.js.map +1 -0
- package/dist/cura/p-c791725b.js +2 -0
- package/dist/cura/p-c791725b.js.map +1 -0
- package/dist/cura/p-c9afb94f.entry.js +2 -0
- package/dist/cura/p-c9afb94f.entry.js.map +1 -0
- package/dist/cura/p-d3f9c888.system.js +2 -0
- package/dist/cura/p-d3f9c888.system.js.map +1 -0
- package/dist/cura/p-e5e259fd.system.entry.js +2 -0
- package/dist/cura/p-e5e259fd.system.entry.js.map +1 -0
- package/dist/cura/p-edeffbfc.entry.js +2 -0
- package/dist/cura/p-edeffbfc.entry.js.map +1 -0
- package/dist/cura/p-eea5ca70.system.entry.js +2 -0
- package/dist/cura/p-eea5ca70.system.entry.js.map +1 -0
- package/dist/cura/p-f6e61abf.system.entry.js +2 -0
- package/dist/cura/p-f6e61abf.system.entry.js.map +1 -0
- package/dist/cura/p-f89f2ecc.system.entry.js +2 -0
- package/dist/cura/p-f89f2ecc.system.entry.js.map +1 -0
- package/dist/cura/p-f8fffdc1.js +2 -0
- package/dist/cura/p-f8fffdc1.js.map +1 -0
- package/dist/cura/p-fc4ba4ce.system.js +2 -0
- package/dist/cura/p-fc4ba4ce.system.js.map +1 -0
- package/dist/cura/p-fef52079.entry.js +2 -0
- package/dist/cura/p-fef52079.entry.js.map +1 -0
- package/dist/cura/p-ffd41520.system.entry.js +2 -0
- package/dist/cura/p-ffd41520.system.entry.js.map +1 -0
- package/dist/esm/{app-globals-cc003eaf.js → app-globals-29001758.js} +5 -5
- package/dist/esm/app-globals-29001758.js.map +1 -0
- package/dist/esm/cura-accordion_8.entry.js +434 -0
- package/dist/esm/cura-accordion_8.entry.js.map +1 -0
- package/dist/esm/cura-alert.entry.js +63 -0
- package/dist/esm/cura-alert.entry.js.map +1 -0
- package/dist/esm/cura-button-outline.entry.js +79 -0
- package/dist/esm/cura-button-outline.entry.js.map +1 -0
- package/dist/esm/cura-button-select.entry.js +93 -0
- package/dist/esm/cura-button-select.entry.js.map +1 -0
- package/dist/esm/cura-button-transparent.entry.js +79 -0
- package/dist/esm/cura-button-transparent.entry.js.map +1 -0
- package/dist/esm/cura-checkbox.entry.js +140 -0
- package/dist/esm/cura-checkbox.entry.js.map +1 -0
- package/dist/esm/cura-display.entry.js +70 -0
- package/dist/esm/cura-display.entry.js.map +1 -0
- package/dist/esm/cura-forms.definitions-0f774253.js +18 -0
- package/dist/esm/cura-forms.definitions-0f774253.js.map +1 -0
- package/dist/esm/cura-icon.definitions-a63d1862.js +18 -0
- package/dist/esm/cura-icon.definitions-a63d1862.js.map +1 -0
- package/dist/esm/cura-icons-view.entry.js +32 -0
- package/dist/esm/cura-icons-view.entry.js.map +1 -0
- package/dist/esm/cura-input-text.entry.js +3903 -0
- package/dist/esm/cura-input-text.entry.js.map +1 -0
- package/dist/esm/cura-label.entry.js +65 -0
- package/dist/esm/cura-label.entry.js.map +1 -0
- package/dist/esm/cura-radio.entry.js +110 -0
- package/dist/esm/cura-radio.entry.js.map +1 -0
- package/dist/esm/cura-switch.entry.js +85 -0
- package/dist/esm/cura-switch.entry.js.map +1 -0
- package/dist/esm/cura.js +4 -4
- package/dist/esm/{index-d99da69e.js → index-81f1a268.js} +35 -2
- package/dist/{esm-es5/index-d99da69e.js.map → esm/index-81f1a268.js.map} +1 -1
- package/dist/esm/index.js +4 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +4 -4
- package/dist/esm-es5/app-globals-29001758.js +2 -0
- package/dist/esm-es5/app-globals-29001758.js.map +1 -0
- package/dist/esm-es5/cura-accordion_8.entry.js +2 -0
- package/dist/esm-es5/cura-accordion_8.entry.js.map +1 -0
- package/dist/esm-es5/cura-alert.entry.js +2 -0
- package/dist/esm-es5/cura-alert.entry.js.map +1 -0
- package/dist/esm-es5/cura-button-outline.entry.js +2 -0
- package/dist/esm-es5/cura-button-outline.entry.js.map +1 -0
- package/dist/esm-es5/cura-button-select.entry.js +2 -0
- package/dist/esm-es5/cura-button-select.entry.js.map +1 -0
- package/dist/esm-es5/cura-button-transparent.entry.js +2 -0
- package/dist/esm-es5/cura-button-transparent.entry.js.map +1 -0
- package/dist/esm-es5/cura-checkbox.entry.js +2 -0
- package/dist/esm-es5/cura-checkbox.entry.js.map +1 -0
- package/dist/esm-es5/cura-display.entry.js +2 -0
- package/dist/esm-es5/cura-display.entry.js.map +1 -0
- package/dist/esm-es5/cura-forms.definitions-0f774253.js +2 -0
- package/dist/esm-es5/cura-forms.definitions-0f774253.js.map +1 -0
- package/dist/esm-es5/cura-icon.definitions-a63d1862.js +2 -0
- package/dist/esm-es5/cura-icon.definitions-a63d1862.js.map +1 -0
- package/dist/esm-es5/cura-icons-view.entry.js +2 -0
- package/dist/esm-es5/cura-icons-view.entry.js.map +1 -0
- package/dist/esm-es5/cura-input-text.entry.js +2 -0
- package/dist/esm-es5/cura-input-text.entry.js.map +1 -0
- package/dist/esm-es5/cura-label.entry.js +2 -0
- package/dist/esm-es5/cura-label.entry.js.map +1 -0
- package/dist/esm-es5/cura-radio.entry.js +2 -0
- package/dist/esm-es5/cura-radio.entry.js.map +1 -0
- package/dist/esm-es5/cura-switch.entry.js +2 -0
- package/dist/esm-es5/cura-switch.entry.js.map +1 -0
- package/dist/esm-es5/cura.js +1 -1
- package/dist/esm-es5/cura.js.map +1 -1
- package/dist/esm-es5/index-81f1a268.js +3 -0
- package/dist/esm-es5/index-81f1a268.js.map +1 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/index.js.map +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/loader.js.map +1 -1
- package/dist/types/api/cura-api.type.d.ts +1 -0
- package/dist/types/components/buttons/cura-button/cura-button.d.ts +1 -1
- package/dist/types/components/buttons/cura-button-select/cura-button-select.d.ts +51 -0
- package/dist/types/components/cura-alert/cura-alert.d.ts +16 -0
- package/dist/types/components/cura-alert/cura-alert.stories.d.ts +79 -0
- package/dist/types/components/cura-icon/cura-icon.d.ts +0 -42
- package/dist/types/components/cura-icon/cura-icon.definitions.d.ts +47 -0
- package/dist/types/components/cura-icons-view/cura-icons-view.d.ts +2 -1
- package/dist/types/components/forms/cura-checkbox/cura-checkbox.d.ts +100 -0
- package/dist/types/components/forms/cura-checkbox/cura-checkbox.stories.d.ts +199 -0
- package/dist/types/components/forms/cura-forms.definitions.d.ts +14 -0
- package/dist/types/components/forms/cura-input-text/cura-input-text.d.ts +138 -0
- package/dist/types/components/forms/cura-input-text/cura-input-text.stories.d.ts +224 -0
- package/dist/types/components/forms/cura-input-text/mask-presets/input-mask-presets.d.ts +5 -0
- package/dist/types/components/forms/cura-label/cura-label.d.ts +54 -0
- package/dist/types/components/forms/cura-label/cura-label.stories.d.ts +126 -0
- package/dist/types/components/forms/cura-radio/cura-radio.d.ts +81 -0
- package/dist/types/components/forms/cura-radio/cura-radio.stories.d.ts +180 -0
- package/dist/types/components/forms/cura-switch/cura-switch.d.ts +62 -0
- package/dist/types/components/forms/cura-switch/cura-switch.stories.d.ts +135 -0
- package/dist/types/components/text/cura-display/cura-display.d.ts +29 -18
- package/dist/types/components/text/cura-display/cura-display.stories.d.ts +52 -14
- package/dist/types/components/text/cura-heading/cura-heading.d.ts +34 -17
- package/dist/types/components/text/cura-heading/cura-heading.stories.d.ts +58 -6
- package/dist/types/components/text/cura-paragraph/cura-paragraph.d.ts +24 -12
- package/dist/types/components/text/cura-paragraph/cura-paragraph.stories.d.ts +47 -9
- package/dist/types/components.d.ts +741 -46
- package/dist/types/index.d.ts +9 -0
- package/package.json +5 -6
- package/dist/cjs/app-globals-0e3b7fc6.js.map +0 -1
- package/dist/cjs/cura-accordion_12.cjs.entry.js +0 -674
- package/dist/cjs/cura-accordion_12.cjs.entry.js.map +0 -1
- package/dist/cjs/index-404d93e9.js.map +0 -1
- package/dist/cura/p-319699df.entry.js +0 -2
- package/dist/cura/p-319699df.entry.js.map +0 -1
- package/dist/cura/p-46d20db3.js +0 -3
- package/dist/cura/p-46d20db3.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-5250cb43.system.js +0 -2
- package/dist/cura/p-5250cb43.system.js.map +0 -1
- package/dist/cura/p-5cc3c8bd.system.entry.js +0 -2
- package/dist/cura/p-5cc3c8bd.system.entry.js.map +0 -1
- package/dist/cura/p-788e035b.system.js +0 -2
- package/dist/cura/p-788e035b.system.js.map +0 -1
- package/dist/cura/p-c0c00396.system.js +0 -3
- package/dist/cura/p-d5c64a5f.js +0 -2
- package/dist/cura/p-d5c64a5f.js.map +0 -1
- package/dist/esm/app-globals-cc003eaf.js.map +0 -1
- package/dist/esm/cura-accordion_12.entry.js +0 -659
- package/dist/esm/cura-accordion_12.entry.js.map +0 -1
- package/dist/esm/index-d99da69e.js.map +0 -1
- package/dist/esm-es5/app-globals-cc003eaf.js +0 -2
- package/dist/esm-es5/app-globals-cc003eaf.js.map +0 -1
- package/dist/esm-es5/cura-accordion_12.entry.js +0 -2
- package/dist/esm-es5/cura-accordion_12.entry.js.map +0 -1
- package/dist/esm-es5/index-d99da69e.js +0 -3
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s)
|
|
4
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
const renderCuraSwitch = (label, message, args) => {
|
|
14
|
+
const block = `<cura-switch${args.checked ? `
|
|
15
|
+
checked` : ''}${args.size && args.size !== 'medium' ? `
|
|
16
|
+
size="${args.size}"` : ''}${args.disabled ? `
|
|
17
|
+
disabled` : ''}${args.position && args.position !== 'left' ? `
|
|
18
|
+
position="${args.position}"` : ''}${args.ontabindex !== 0 ? `
|
|
19
|
+
ontabindex="${args.ontabindex}"` : ''}${args.background && args.background !== 'light' ? `
|
|
20
|
+
background="${args.background}"` : ''}${args.color && args.color !== 'accent' ? `
|
|
21
|
+
color="${args.color}"` : ''}${label ? `
|
|
22
|
+
label="${label}"` : ''}>${message ? `
|
|
23
|
+
${message}` : ''}
|
|
24
|
+
</cura-switch>
|
|
25
|
+
`;
|
|
26
|
+
return `${block}`;
|
|
27
|
+
};
|
|
28
|
+
export default {
|
|
29
|
+
title: 'Componentes/Forms/Switch',
|
|
30
|
+
tags: ['autodocs'],
|
|
31
|
+
render: (_a) => {
|
|
32
|
+
var { label, message } = _a, args = __rest(_a, ["label", "message"]);
|
|
33
|
+
return renderCuraSwitch(label, message, args);
|
|
34
|
+
},
|
|
35
|
+
argTypes: {
|
|
36
|
+
label: {
|
|
37
|
+
control: 'text',
|
|
38
|
+
description: 'Texto do label do switch.',
|
|
39
|
+
name: 'label',
|
|
40
|
+
table: {
|
|
41
|
+
category: 'Properties',
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
message: {
|
|
45
|
+
control: 'text',
|
|
46
|
+
description: 'Texto adicional de ajuda ou mensagem.',
|
|
47
|
+
name: 'Content',
|
|
48
|
+
table: {
|
|
49
|
+
category: 'Slots',
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
checked: {
|
|
53
|
+
control: 'boolean',
|
|
54
|
+
description: 'Define se o switch está checado.',
|
|
55
|
+
table: {
|
|
56
|
+
category: 'States',
|
|
57
|
+
defaultValue: { summary: false },
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
disabled: {
|
|
61
|
+
control: 'boolean',
|
|
62
|
+
description: 'Desabilita o switch.',
|
|
63
|
+
table: {
|
|
64
|
+
category: 'States',
|
|
65
|
+
defaultValue: { summary: false },
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
ontabindex: {
|
|
69
|
+
control: 'number',
|
|
70
|
+
description: 'Define o tabIndex do switch.',
|
|
71
|
+
table: {
|
|
72
|
+
category: 'Properties',
|
|
73
|
+
defaultValue: { summary: 0 },
|
|
74
|
+
},
|
|
75
|
+
name: 'ontabindex',
|
|
76
|
+
},
|
|
77
|
+
position: {
|
|
78
|
+
control: { type: 'inline-radio' },
|
|
79
|
+
options: ['left', 'right'],
|
|
80
|
+
description: 'Posição do label em relação ao switch.',
|
|
81
|
+
table: {
|
|
82
|
+
category: 'Properties',
|
|
83
|
+
defaultValue: { summary: 'left' },
|
|
84
|
+
},
|
|
85
|
+
name: 'position',
|
|
86
|
+
},
|
|
87
|
+
size: {
|
|
88
|
+
control: { type: 'inline-radio' },
|
|
89
|
+
options: ['small', 'medium', 'large'],
|
|
90
|
+
description: 'Tamanho do switch.',
|
|
91
|
+
table: {
|
|
92
|
+
category: 'Properties',
|
|
93
|
+
defaultValue: { summary: 'medium' },
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
background: {
|
|
97
|
+
control: { type: 'inline-radio' },
|
|
98
|
+
options: ['dark', 'light'],
|
|
99
|
+
description: 'Background do switch.',
|
|
100
|
+
table: {
|
|
101
|
+
category: 'Properties',
|
|
102
|
+
defaultValue: { summary: 'light' },
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
color: {
|
|
106
|
+
control: { type: 'select' },
|
|
107
|
+
options: ['primary', 'secondary', 'accent', 'info', 'success', 'error', 'warning', 'neutral'],
|
|
108
|
+
description: 'Cor do switch.',
|
|
109
|
+
table: {
|
|
110
|
+
category: 'Properties',
|
|
111
|
+
defaultValue: { summary: 'accent' },
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
onchange: {
|
|
115
|
+
control: 'none',
|
|
116
|
+
description: 'Emite evento via Listener quando o estado do Switch é alterado. `{ checked: boolean }`',
|
|
117
|
+
table: {
|
|
118
|
+
category: 'Event',
|
|
119
|
+
defaultValue: { summary: '' },
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
};
|
|
124
|
+
export const CuraSwitchStory = {
|
|
125
|
+
args: {
|
|
126
|
+
label: 'Switch',
|
|
127
|
+
color: 'accent',
|
|
128
|
+
message: 'Mensagem do switch',
|
|
129
|
+
checked: false,
|
|
130
|
+
size: 'medium',
|
|
131
|
+
disabled: false,
|
|
132
|
+
position: 'left',
|
|
133
|
+
background: 'light',
|
|
134
|
+
ontabindex: 0,
|
|
135
|
+
},
|
|
136
|
+
};
|
|
137
|
+
//# sourceMappingURL=cura-switch.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cura-switch.stories.js","sourceRoot":"","sources":["../../../../src/components/forms/cura-switch/cura-switch.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,MAAM,gBAAgB,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E,OAAO;IACnB,UAAU,EAAE,CAAC;GACd;CACF,CAAC","sourcesContent":["const renderCuraSwitch = (label, message, args) => {\n const block = `<cura-switch${args.checked ? `\n checked` : ''}${args.size && args.size !== 'medium' ? `\n size=\"${args.size}\"` : ''}${args.disabled ? `\n disabled` : ''}${args.position && args.position !== 'left' ? `\n position=\"${args.position}\"` : ''}${args.ontabindex !== 0 ? `\n ontabindex=\"${args.ontabindex}\"` : ''}${args.background && args.background !== 'light' ? `\n background=\"${args.background}\"` : ''}${args.color && args.color !== 'accent' ? `\n color=\"${args.color}\"` : ''}${label ? `\n label=\"${label}\"` : ''}>${message ? `\n ${message}` : ''}\n</cura-switch>\n`;\n return `${block}`;\n};\n\nexport default {\n title: 'Componentes/Forms/Switch',\n tags: ['autodocs'],\n render: ({ label, message, ...args }) => {\n return renderCuraSwitch(label, message, args);\n },\n argTypes: {\n label: {\n control: 'text',\n description: 'Texto do label do switch.',\n name: 'label',\n table: {\n category: 'Properties',\n },\n },\n message: {\n control: 'text',\n description: 'Texto adicional de ajuda ou mensagem.',\n name: 'Content',\n table: {\n category: 'Slots',\n },\n },\n checked: {\n control: 'boolean',\n description: 'Define se o switch está checado.',\n table: {\n category: 'States',\n defaultValue: { summary: false },\n },\n },\n disabled: {\n control: 'boolean',\n description: 'Desabilita o switch.',\n table: {\n category: 'States',\n defaultValue: { summary: false },\n },\n },\n ontabindex: {\n control: 'number',\n description: 'Define o tabIndex do switch.',\n table: {\n category: 'Properties',\n defaultValue: { summary: 0 },\n },\n name: 'ontabindex',\n },\n position: {\n control: { type: 'inline-radio' },\n options: ['left', 'right'],\n description: 'Posição do label em relação ao switch.',\n table: {\n category: 'Properties',\n defaultValue: { summary: 'left' },\n },\n name: 'position',\n },\n size: {\n control: { type: 'inline-radio' },\n options: ['small', 'medium', 'large'],\n description: 'Tamanho do switch.',\n table: {\n category: 'Properties',\n defaultValue: { summary: 'medium' },\n },\n },\n background: {\n control: { type: 'inline-radio' },\n options: ['dark', 'light'],\n description: 'Background do switch.',\n table: {\n category: 'Properties',\n defaultValue: { summary: 'light' },\n },\n },\n color: {\n control: { type: 'select' },\n options: ['primary', 'secondary', 'accent', 'info', 'success', 'error', 'warning', 'neutral'],\n description: 'Cor do switch.',\n table: {\n category: 'Properties',\n defaultValue: { summary: 'accent' },\n },\n },\n onchange: {\n control: 'none',\n description: 'Emite evento via Listener quando o estado do Switch é alterado. `{ checked: boolean }`',\n table: {\n category: 'Event',\n defaultValue: { summary: '' },\n },\n },\n },\n};\n\nexport const CuraSwitchStory = {\n args: {\n label: 'Switch',\n color: 'accent',\n message: 'Mensagem do switch',\n checked: false,\n size: 'medium',\n disabled: false,\n position: 'left',\n background: 'light',\n ontabindex: 0,\n },\n};\n"]}
|
|
@@ -11,59 +11,40 @@
|
|
|
11
11
|
* Responsive media for large only.
|
|
12
12
|
* Use: @include large-only() { ... }
|
|
13
13
|
*/
|
|
14
|
-
/**
|
|
15
|
-
* Responsive media for large and up.
|
|
16
|
-
* Use: @include large-up() { ... }
|
|
17
|
-
*/
|
|
18
14
|
/**
|
|
19
15
|
* Responsive media for xlarge only.
|
|
20
16
|
* Use: @include xlarge-only() { ... }
|
|
21
17
|
*/
|
|
18
|
+
/**
|
|
19
|
+
* Responsive media for medium to large.
|
|
20
|
+
* Use: @include medium-large() { ... }
|
|
21
|
+
*/
|
|
22
|
+
/**
|
|
23
|
+
* Responsive media for large and up.
|
|
24
|
+
* Use: @include large-up() { ... }
|
|
25
|
+
*/
|
|
22
26
|
:host {
|
|
23
27
|
display: block;
|
|
24
|
-
font-size: var(--font-size);
|
|
25
|
-
text-transform: uppercase;
|
|
28
|
+
font-size: var(--font-size-base);
|
|
26
29
|
}
|
|
27
30
|
:host h1, :host h2, :host h3, :host h4, :host h5, :host h6 {
|
|
28
31
|
font-family: var(--font-family);
|
|
29
|
-
font-size: 4.285em;
|
|
30
|
-
font-weight: var(--font-weight-black);
|
|
31
|
-
color: var(--color-body);
|
|
32
|
-
line-height: 120%;
|
|
33
|
-
letter-spacing: -4%;
|
|
34
|
-
margin-block-start: var(--block-margin);
|
|
35
|
-
margin-block-end: var(--block-margin);
|
|
36
|
-
}
|
|
37
|
-
:host h1.large, :host h2.large, :host h3.large, :host h4.large, :host h5.large, :host h6.large {
|
|
38
|
-
font-size: 6.21em;
|
|
39
|
-
}
|
|
40
|
-
:host h1.small, :host h2.small, :host h3.small, :host h4.small, :host h5.small, :host h6.small {
|
|
41
32
|
font-size: 3em;
|
|
42
33
|
font-weight: var(--font-weight-bold);
|
|
34
|
+
color: var(--color-body);
|
|
35
|
+
line-height: var(--line-height);
|
|
36
|
+
margin-block: var(--margin-block);
|
|
37
|
+
letter-spacing: 0px;
|
|
43
38
|
}
|
|
44
|
-
@media (min-width:
|
|
39
|
+
@media (min-width: 769px) and (max-width: 1920px) {
|
|
45
40
|
:host h1, :host h2, :host h3, :host h4, :host h5, :host h6 {
|
|
46
|
-
font-size:
|
|
47
|
-
}
|
|
48
|
-
:host h1.large, :host h2.large, :host h3.large, :host h4.large, :host h5.large, :host h6.large {
|
|
49
|
-
font-size: 7.07em;
|
|
50
|
-
}
|
|
51
|
-
:host h1.small, :host h2.small, :host h3.small, :host h4.small, :host h5.small, :host h6.small {
|
|
52
|
-
font-size: 3.428em;
|
|
41
|
+
font-size: 3.429em;
|
|
53
42
|
}
|
|
54
43
|
}
|
|
55
|
-
@media (min-width:
|
|
44
|
+
@media (min-width: 1921px) {
|
|
56
45
|
:host h1, :host h2, :host h3, :host h4, :host h5, :host h6 {
|
|
57
|
-
font-size:
|
|
58
|
-
line-height:
|
|
59
|
-
}
|
|
60
|
-
:host h1.large, :host h2.large, :host h3.large, :host h4.large, :host h5.large, :host h6.large {
|
|
61
|
-
font-size: 8.857em;
|
|
62
|
-
letter-spacing: -6%;
|
|
63
|
-
}
|
|
64
|
-
:host h1.small, :host h2.small, :host h3.small, :host h4.small, :host h5.small, :host h6.small {
|
|
65
|
-
font-size: 4.285em;
|
|
66
|
-
letter-spacing: -2%;
|
|
46
|
+
font-size: 4.286em;
|
|
47
|
+
line-height: calc(var(--line-height) + 5%);
|
|
67
48
|
}
|
|
68
49
|
}
|
|
69
50
|
:host ::slotted(b), :host ::slotted(strong) {
|
|
@@ -72,10 +53,12 @@
|
|
|
72
53
|
:host ::slotted(a) {
|
|
73
54
|
font-weight: var(--font-weight-bold);
|
|
74
55
|
color: var(--color-link);
|
|
75
|
-
text-decoration: none;
|
|
76
56
|
text-underline-offset: 10%;
|
|
77
57
|
cursor: pointer;
|
|
78
58
|
}
|
|
59
|
+
:host ::slotted(u) {
|
|
60
|
+
text-underline-offset: 10%;
|
|
61
|
+
}
|
|
79
62
|
:host ::slotted(abbr) {
|
|
80
63
|
color: var(--color-link);
|
|
81
64
|
text-decoration: underline dashed 1px var(--color-link);
|
|
@@ -1,57 +1,57 @@
|
|
|
1
1
|
import { Host, h } from '@stencil/core';
|
|
2
2
|
export class CuraDisplay {
|
|
3
3
|
constructor() {
|
|
4
|
+
this.theme = window.CuraAPI.theme;
|
|
4
5
|
this.level = 1;
|
|
5
|
-
this.
|
|
6
|
-
this.
|
|
7
|
-
this.
|
|
6
|
+
this.spotColor = 'accent-dark';
|
|
7
|
+
this.color = undefined;
|
|
8
|
+
this.marginBlock = '1.25em';
|
|
9
|
+
this.lineHeight = '120%';
|
|
10
|
+
this.styles = {};
|
|
11
|
+
}
|
|
12
|
+
handleChangeColor() {
|
|
13
|
+
this.setColors();
|
|
8
14
|
}
|
|
9
15
|
connectedCallback() {
|
|
10
|
-
this.weights = window.CuraAPI.theme.fonts.getWeights();
|
|
11
16
|
this.setFontProperties();
|
|
12
17
|
this.setColors();
|
|
13
18
|
}
|
|
14
|
-
getClasses() {
|
|
15
|
-
const classes = {};
|
|
16
|
-
classes[this.size.toLowerCase()] = true;
|
|
17
|
-
return classes;
|
|
18
|
-
}
|
|
19
19
|
setFontProperties() {
|
|
20
|
+
this.weights = this.theme.fonts.getWeights();
|
|
21
|
+
this.fontSizeBase = this.theme.fonts.getSize();
|
|
20
22
|
this.styles = {
|
|
21
23
|
'--font-family': window.CuraAPI.theme.fonts.getFamily('display'),
|
|
22
24
|
'--font-size': window.CuraAPI.theme.fonts.getSize(),
|
|
23
|
-
'--font-weight-bold': this.weights.bold
|
|
24
|
-
'--font-weight-black': this.weights.black
|
|
25
|
+
'--font-weight-bold': this.weights.bold
|
|
25
26
|
};
|
|
26
|
-
this.setHostProperty('--font-size', window.CuraAPI.theme.fonts.getSize());
|
|
27
|
-
this.setHostProperty('--block-margin', '0.5em');
|
|
28
27
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
:
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
? window.CuraAPI.theme.colors.getColor(`${this.spotColor}-lighter`)
|
|
36
|
-
: window.CuraAPI.theme.colors.getColor(`${this.spotColor}-dark`);
|
|
28
|
+
hostCSSProperties() {
|
|
29
|
+
return {
|
|
30
|
+
'--margin-block': this.marginBlock,
|
|
31
|
+
'--font-size-base': this.fontSizeBase,
|
|
32
|
+
'--line-height': this.lineHeight
|
|
33
|
+
};
|
|
37
34
|
}
|
|
38
|
-
|
|
39
|
-
this.
|
|
35
|
+
setColors() {
|
|
36
|
+
const fontColor = this.color
|
|
37
|
+
? this.theme.colors.getColor(this.color)
|
|
38
|
+
: this.theme.fonts.getColor();
|
|
39
|
+
this.styles = Object.assign(Object.assign({}, this.styles), { '--color-body': fontColor || this.theme.colors.getColor('neutral-darker'), '--color-link': this.theme.colors.getColor(`${this.spotColor}`) });
|
|
40
40
|
}
|
|
41
41
|
getHeadingTag() {
|
|
42
42
|
const tags = {
|
|
43
|
-
'1': h("h1", { style: this.styles
|
|
44
|
-
'2': h("h2", { style: this.styles
|
|
45
|
-
'3': h("h3", { style: this.styles
|
|
46
|
-
'4': h("h4", { style: this.styles
|
|
47
|
-
'5': h("h5", { style: this.styles
|
|
48
|
-
'6': h("h6", { style: this.styles
|
|
49
|
-
'default': h("h1", { style: this.styles
|
|
43
|
+
'1': h("h1", { style: this.styles }, h("slot", null)),
|
|
44
|
+
'2': h("h2", { style: this.styles }, h("slot", null)),
|
|
45
|
+
'3': h("h3", { style: this.styles }, h("slot", null)),
|
|
46
|
+
'4': h("h4", { style: this.styles }, h("slot", null)),
|
|
47
|
+
'5': h("h5", { style: this.styles }, h("slot", null)),
|
|
48
|
+
'6': h("h6", { style: this.styles }, h("slot", null)),
|
|
49
|
+
'default': h("h1", { style: this.styles }, h("slot", null))
|
|
50
50
|
};
|
|
51
51
|
return tags[`${this.level}`] || tags['default'];
|
|
52
52
|
}
|
|
53
53
|
render() {
|
|
54
|
-
return (h(Host,
|
|
54
|
+
return (h(Host, { style: this.hostCSSProperties() }, this.getHeadingTag()));
|
|
55
55
|
}
|
|
56
56
|
static get is() { return "cura-display"; }
|
|
57
57
|
static get encapsulation() { return "shadow"; }
|
|
@@ -71,21 +71,21 @@ export class CuraDisplay {
|
|
|
71
71
|
"type": "number",
|
|
72
72
|
"mutable": false,
|
|
73
73
|
"complexType": {
|
|
74
|
-
"original": "
|
|
75
|
-
"resolved": "
|
|
74
|
+
"original": "1 | 2 | 3 | 4 | 5 | 6",
|
|
75
|
+
"resolved": "1 | 2 | 3 | 4 | 5 | 6",
|
|
76
76
|
"references": {}
|
|
77
77
|
},
|
|
78
78
|
"required": false,
|
|
79
79
|
"optional": false,
|
|
80
80
|
"docs": {
|
|
81
81
|
"tags": [],
|
|
82
|
-
"text": "Heading level for semantics
|
|
82
|
+
"text": "Heading level for semantics. Will render the related HTML tag <h1>, <h2>, ...\nValues: 1(default) to 6."
|
|
83
83
|
},
|
|
84
84
|
"attribute": "level",
|
|
85
85
|
"reflect": true,
|
|
86
86
|
"defaultValue": "1"
|
|
87
87
|
},
|
|
88
|
-
"
|
|
88
|
+
"spotColor": {
|
|
89
89
|
"type": "string",
|
|
90
90
|
"mutable": false,
|
|
91
91
|
"complexType": {
|
|
@@ -97,31 +97,48 @@ export class CuraDisplay {
|
|
|
97
97
|
"optional": false,
|
|
98
98
|
"docs": {
|
|
99
99
|
"tags": [],
|
|
100
|
-
"text": "
|
|
100
|
+
"text": "Apply design system color to interactive elements like <a> and <abbr> inside the text.\nValues: Color from design system scheme. Default to 'accent-dark'."
|
|
101
101
|
},
|
|
102
|
-
"attribute": "
|
|
102
|
+
"attribute": "spot-color",
|
|
103
103
|
"reflect": true,
|
|
104
|
-
"defaultValue": "'
|
|
104
|
+
"defaultValue": "'accent-dark'"
|
|
105
105
|
},
|
|
106
|
-
"
|
|
107
|
-
"type": "
|
|
106
|
+
"color": {
|
|
107
|
+
"type": "string",
|
|
108
108
|
"mutable": false,
|
|
109
109
|
"complexType": {
|
|
110
|
-
"original": "
|
|
111
|
-
"resolved": "
|
|
110
|
+
"original": "string",
|
|
111
|
+
"resolved": "string",
|
|
112
112
|
"references": {}
|
|
113
113
|
},
|
|
114
114
|
"required": false,
|
|
115
115
|
"optional": false,
|
|
116
116
|
"docs": {
|
|
117
117
|
"tags": [],
|
|
118
|
-
"text": "
|
|
118
|
+
"text": "Text color.\nValues: Color from design system scheme. Default to the font color from the theme."
|
|
119
119
|
},
|
|
120
|
-
"attribute": "
|
|
120
|
+
"attribute": "color",
|
|
121
|
+
"reflect": false
|
|
122
|
+
},
|
|
123
|
+
"marginBlock": {
|
|
124
|
+
"type": "string",
|
|
125
|
+
"mutable": false,
|
|
126
|
+
"complexType": {
|
|
127
|
+
"original": "string",
|
|
128
|
+
"resolved": "string",
|
|
129
|
+
"references": {}
|
|
130
|
+
},
|
|
131
|
+
"required": false,
|
|
132
|
+
"optional": false,
|
|
133
|
+
"docs": {
|
|
134
|
+
"tags": [],
|
|
135
|
+
"text": "CSS margin-block property values.\nDefault to 1.25em"
|
|
136
|
+
},
|
|
137
|
+
"attribute": "margin-block",
|
|
121
138
|
"reflect": true,
|
|
122
|
-
"defaultValue": "
|
|
139
|
+
"defaultValue": "'1.25em'"
|
|
123
140
|
},
|
|
124
|
-
"
|
|
141
|
+
"lineHeight": {
|
|
125
142
|
"type": "string",
|
|
126
143
|
"mutable": false,
|
|
127
144
|
"complexType": {
|
|
@@ -133,14 +150,28 @@ export class CuraDisplay {
|
|
|
133
150
|
"optional": false,
|
|
134
151
|
"docs": {
|
|
135
152
|
"tags": [],
|
|
136
|
-
"text": "
|
|
153
|
+
"text": "CSS line-height property values.\nDefault to 140%"
|
|
137
154
|
},
|
|
138
|
-
"attribute": "
|
|
155
|
+
"attribute": "line-height",
|
|
139
156
|
"reflect": true,
|
|
140
|
-
"defaultValue": "'
|
|
157
|
+
"defaultValue": "'120%'"
|
|
141
158
|
}
|
|
142
159
|
};
|
|
143
160
|
}
|
|
161
|
+
static get states() {
|
|
162
|
+
return {
|
|
163
|
+
"styles": {}
|
|
164
|
+
};
|
|
165
|
+
}
|
|
144
166
|
static get elementRef() { return "host"; }
|
|
167
|
+
static get watchers() {
|
|
168
|
+
return [{
|
|
169
|
+
"propName": "color",
|
|
170
|
+
"methodName": "handleChangeColor"
|
|
171
|
+
}, {
|
|
172
|
+
"propName": "spotColor",
|
|
173
|
+
"methodName": "handleChangeColor"
|
|
174
|
+
}];
|
|
175
|
+
}
|
|
145
176
|
}
|
|
146
177
|
//# sourceMappingURL=cura-display.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cura-display.js","sourceRoot":"","sources":["../../../../src/components/text/cura-display/cura-display.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"cura-display.js","sourceRoot":"","sources":["../../../../src/components/text/cura-display/cura-display.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAOhF,MAAM,OAAO,WAAW;;IA+CtB,UAAK,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK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c,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC,GAChE,CAAC;EACJ,CAAC;EAED,aAAa;IACX,MAAM,IAAI,GAAG;MACX,GAAG,EAAE,UAAI,KAAK,EAAE,IAAI,CAAC,MAAM;QAAE,eAAa,CAAK;MAC/C,GAAG,EAAE,UAAI,KAAK,EAAE,IAAI,CAAC,MAAM;QAAE,eAAa,CAAK;MAC/C,GAAG,EAAE,UAAI,KAAK,EAAE,IAAI,CAAC,MAAM;QAAE,eAAa,CAAK;MAC/C,GAAG,EAAE,UAAI,KAAK,EAAE,IAAI,CAAC,MAAM;QAAE,eAAa,CAAK;MAC/C,GAAG,EAAE,UAAI,KAAK,EAAE,IAAI,CAAC,MAAM;QAAE,eAAa,CAAK;MAC/C,GAAG,EAAE,UAAI,KAAK,EAAE,IAAI,CAAC,MAAM;QAAE,eAAa,CAAK;MAC/C,SAAS,EAAE,UAAI,KAAK,EAAE,IAAI,CAAC,MAAM;QAAE,eAAa,CAAK;KACtD,CAAC;IACF,OAAO,IAAI,CAAC,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,IAAI,IAAI,CAAC,SAAS,CAAC,CAAC;EAClD,CAAC;EAED,MAAM;IACJ,OAAO,CACL,EAAC,IAAI,IAAC,KAAK,EAAE,IAAI,CAAC,iBAAiB,EAAE,IACjC,IAAI,CAAC,aAAa,EAAE,CACjB,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEF","sourcesContent":["import { Component, Host, h, Element, Prop, State, Watch } from '@stencil/core';\n\n@Component({\n tag: 'cura-display',\n styleUrl: 'cura-display.scss',\n shadow: true,\n})\nexport class CuraDisplay {\n\n /**\n * Heading level for semantics. Will render the related HTML tag <h1>, <h2>, ...\n * Values: 1(default) to 6.\n */\n @Prop({reflect: true}) level: 1 | 2 | 3 | 4 | 5 | 6 = 1;\n\n /**\n * Apply design system color to interactive elements like <a> and <abbr> inside the text.\n * Values: Color from design system scheme. Default to 'accent-dark'.\n */\n @Prop({reflect: true}) spotColor = 'accent-dark';\n\n /**\n * Text color.\n * Values: Color from design system scheme. Default to the font color from the theme.\n */\n @Prop() color: string;\n @Watch('color')\n @Watch('spotColor')\n handleChangeColor() {\n this.setColors();\n }\n\n /**\n * CSS margin-block property values.\n * Default to 1.25em\n */\n @Prop({reflect: true}) marginBlock = '1.25em';\n\n /**\n * CSS line-height property values.\n * Default to 140%\n */\n @Prop({reflect: true}) lineHeight = '120%';\n\n /**\n * Host element <cura-display>\n */\n @Element() host: HTMLElement;\n\n /**\n * Internal Props\n */\n weights: any;\n fontSizeBase: string;\n theme = window.CuraAPI.theme;\n @State() styles = {};\n\n connectedCallback() {\n this.setFontProperties();\n this.setColors();\n }\n\n setFontProperties() {\n this.weights = this.theme.fonts.getWeights();\n this.fontSizeBase = this.theme.fonts.getSize();\n this.styles = {\n '--font-family': window.CuraAPI.theme.fonts.getFamily('display'),\n '--font-size': window.CuraAPI.theme.fonts.getSize(),\n '--font-weight-bold': this.weights.bold\n };\n }\n\n hostCSSProperties() {\n return {\n '--margin-block': this.marginBlock,\n '--font-size-base': this.fontSizeBase,\n '--line-height': this.lineHeight\n };\n }\n\n setColors() {\n const fontColor = this.color\n ? this.theme.colors.getColor(this.color)\n : this.theme.fonts.getColor();\n this.styles = {\n ...this.styles,\n '--color-body': fontColor || this.theme.colors.getColor('neutral-darker'),\n '--color-link': this.theme.colors.getColor(`${this.spotColor}`)\n };\n }\n\n getHeadingTag() {\n const tags = {\n '1': <h1 style={this.styles}><slot></slot></h1>,\n '2': <h2 style={this.styles}><slot></slot></h2>,\n '3': <h3 style={this.styles}><slot></slot></h3>,\n '4': <h4 style={this.styles}><slot></slot></h4>,\n '5': <h5 style={this.styles}><slot></slot></h5>,\n '6': <h6 style={this.styles}><slot></slot></h6>,\n 'default': <h1 style={this.styles}><slot></slot></h1>\n };\n return tags[`${this.level}`] || tags['default'];\n }\n\n render() {\n return (\n <Host style={this.hostCSSProperties()}>\n { this.getHeadingTag() }\n </Host>\n );\n }\n\n}\n"]}
|
|
@@ -10,71 +10,116 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
10
10
|
}
|
|
11
11
|
return t;
|
|
12
12
|
};
|
|
13
|
+
import { getColorsWithDepths } from "../../../utils/utils";
|
|
14
|
+
const colors = getColorsWithDepths();
|
|
15
|
+
const renderCuraDisplay = (label, args) => {
|
|
16
|
+
const styles = args.cssMarginBlock || args.cssLineHeight ? `<style>
|
|
17
|
+
cura-display { ${args.cssMarginBlock ? `
|
|
18
|
+
--margin-block: ${args.cssMarginBlock} !important;` : ``}${args.cssLineHeight ? `
|
|
19
|
+
--line-height: ${args.cssLineHeight} !important;` : ``}
|
|
20
|
+
}
|
|
21
|
+
</style>
|
|
22
|
+
|
|
23
|
+
` : '';
|
|
24
|
+
const block = `<cura-display${args.level ? `
|
|
25
|
+
level="${args.level}"` : ''}${args.color ? `
|
|
26
|
+
color="${args.color}"` : ''}${args.spotColor ? `
|
|
27
|
+
spot-color="${args.spotColor}"` : ''}${args.marginBlock ? `
|
|
28
|
+
margin-block="${args.marginBlock}"` : ''}${args.lineHeight ? `
|
|
29
|
+
line-height="${args.lineHeight}"` : ''}>
|
|
30
|
+
${label}
|
|
31
|
+
</cura-display>
|
|
32
|
+
`;
|
|
33
|
+
return `${styles}${block}${block}${block}`;
|
|
34
|
+
};
|
|
13
35
|
export default {
|
|
14
36
|
title: 'Componentes/Text/Display',
|
|
15
37
|
tags: ['autodocs'],
|
|
16
38
|
render: (_a) => {
|
|
17
39
|
var { label } = _a, args = __rest(_a, ["label"]);
|
|
18
|
-
|
|
19
|
-
// return `<div>${label}</div>`;
|
|
20
|
-
return `<cura-display
|
|
21
|
-
level="${args.level}"
|
|
22
|
-
spot-color="${args.spotColor}"
|
|
23
|
-
size="${args.size}"
|
|
24
|
-
inverted="${args.inverted}">
|
|
25
|
-
${label}
|
|
26
|
-
</cura-display>
|
|
27
|
-
<cura-paragraph>Proin quis turpis et turpis efficitur dictum. Suspendisse egestas posuere libero. Sed non dapibus urna. Sed luctus tincidunt nibh, eu tincidunt justo. Curabitur at ullamcorper mauris, feugiat fermentum nulla. Quisque sed nibh in odio blandit mollis at quis dolor. Sed urna lacus, ultricies ac vulputate at, luctus eu ex. Duis at elit facilisis, iaculis orci sed, suscipit nisl. Phasellus semper lorem sed tincidunt semper. Morbi lobortis eu mi sed ultricies. Sed consequat id orci at iaculis.</cura-paragraph>`;
|
|
40
|
+
return renderCuraDisplay(label, args);
|
|
28
41
|
},
|
|
29
42
|
argTypes: {
|
|
30
43
|
label: {
|
|
31
44
|
control: 'text',
|
|
32
|
-
description: '
|
|
45
|
+
description: 'Define o texto do componente diretamente.',
|
|
33
46
|
name: 'Content'
|
|
34
47
|
},
|
|
35
|
-
|
|
36
|
-
control: 'boolean',
|
|
37
|
-
description: 'Inverte cores do texto para aplicação em fundo escuro.',
|
|
38
|
-
table: {
|
|
39
|
-
category: 'Properties',
|
|
40
|
-
defaultValue: { summary: 'false' }
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
size: {
|
|
48
|
+
color: {
|
|
44
49
|
control: { type: 'select' },
|
|
45
|
-
options: ['
|
|
46
|
-
description: '
|
|
50
|
+
options: ['', ...colors],
|
|
51
|
+
description: 'Define a cor de texto do bloco. Aceita qualquer valor do esquema de cores do design system.',
|
|
47
52
|
table: {
|
|
48
53
|
category: 'Properties',
|
|
49
|
-
defaultValue: { summary: '
|
|
54
|
+
defaultValue: { summary: 'Cor de texto padrão do tema' }
|
|
50
55
|
}
|
|
51
56
|
},
|
|
52
57
|
spotColor: {
|
|
53
58
|
control: { type: 'select' },
|
|
54
|
-
options: ['
|
|
55
|
-
description: '
|
|
59
|
+
options: ['', ...colors],
|
|
60
|
+
description: 'Define a cor dos itens de interação dentro do bloco de texto como as tags `<a>`. Aceita qualquer valor do esquema de cores do design system.',
|
|
61
|
+
name: 'spot-color',
|
|
56
62
|
table: {
|
|
57
63
|
category: 'Properties',
|
|
58
|
-
defaultValue: { summary: '
|
|
64
|
+
defaultValue: { summary: 'accent-dark' }
|
|
59
65
|
}
|
|
60
66
|
},
|
|
61
67
|
level: {
|
|
62
68
|
control: { type: 'number', min: 1, max: 6, step: 1 },
|
|
63
|
-
description: 'Define a tag semântica do título. Ex. h1, h2, h3, etc.',
|
|
69
|
+
description: 'Define a tag semântica do título. Ex. h1, h2, h3, etc. A semântica é independente do estilo aplicado.',
|
|
64
70
|
table: {
|
|
65
71
|
category: 'Properties',
|
|
66
|
-
defaultValue: { summary:
|
|
72
|
+
defaultValue: { summary: 1 }
|
|
67
73
|
}
|
|
68
|
-
}
|
|
74
|
+
},
|
|
75
|
+
marginBlock: {
|
|
76
|
+
control: 'text',
|
|
77
|
+
description: 'Define o tamanho do espaçamento superior e inferior do bloco. Valores válidos para a propriedade CSS `margin-block`.',
|
|
78
|
+
name: 'margin-block',
|
|
79
|
+
table: {
|
|
80
|
+
category: 'Properties',
|
|
81
|
+
defaultValue: { summary: '1.25em' }
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
lineHeight: {
|
|
85
|
+
control: 'text',
|
|
86
|
+
description: 'Define a altura de linha base a ser considerada pelo componente em sua responsividade. Valores válidos para a propriedade CSS `line-height`.',
|
|
87
|
+
name: 'line-height',
|
|
88
|
+
table: {
|
|
89
|
+
category: 'Properties',
|
|
90
|
+
defaultValue: { summary: '130%' }
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
cssMarginBlock: {
|
|
94
|
+
control: 'text',
|
|
95
|
+
description: 'Permite a definição da propriedade `margin-block` por folhas de estilo. É necessário o uso do `!important` conforme o exemplo de código.',
|
|
96
|
+
name: '--margin-block',
|
|
97
|
+
table: {
|
|
98
|
+
category: 'CSS Properties',
|
|
99
|
+
defaultValue: { summary: '1.25em' }
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
cssLineHeight: {
|
|
103
|
+
control: 'text',
|
|
104
|
+
description: 'Permite a definição da propriedade `line-height` por folhas de estilo. É necessário o uso do `!important` conforme o exemplo de código.',
|
|
105
|
+
name: '--line-height',
|
|
106
|
+
table: {
|
|
107
|
+
category: 'CSS Properties',
|
|
108
|
+
defaultValue: { summary: '130%' }
|
|
109
|
+
}
|
|
110
|
+
},
|
|
69
111
|
},
|
|
70
112
|
};
|
|
71
113
|
export const Display = {
|
|
72
114
|
args: {
|
|
73
115
|
label: 'Dolor sit <a href="https://www.rededorsaoluiz.com.br" target="_blank">amet</a>, consectetur adipiscing elit.',
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
spotColor: '
|
|
77
|
-
|
|
116
|
+
level: '',
|
|
117
|
+
color: '',
|
|
118
|
+
spotColor: '',
|
|
119
|
+
marginBlock: '',
|
|
120
|
+
lineHeight: '',
|
|
121
|
+
cssMarginBlock: '',
|
|
122
|
+
cssLineHeight: ''
|
|
78
123
|
},
|
|
79
124
|
};
|
|
80
125
|
//# sourceMappingURL=cura-display.stories.js.map
|