@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
|
@@ -5,6 +5,10 @@
|
|
|
5
5
|
* It contains typing information for all components that exist in this project.
|
|
6
6
|
*/
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
|
+
import { MaskPreset } from "./components/forms/cura-input-text/cura-input-text";
|
|
9
|
+
import { FactoryArg, MaskedRegExp } from "imask";
|
|
10
|
+
export { MaskPreset } from "./components/forms/cura-input-text/cura-input-text";
|
|
11
|
+
export { FactoryArg, MaskedRegExp } from "imask";
|
|
8
12
|
export namespace Components {
|
|
9
13
|
interface CuraAccordion {
|
|
10
14
|
"activeColor": string;
|
|
@@ -54,6 +58,12 @@ export namespace Components {
|
|
|
54
58
|
"openIcon": string;
|
|
55
59
|
"opened": boolean;
|
|
56
60
|
}
|
|
61
|
+
interface CuraAlert {
|
|
62
|
+
"closeable": boolean;
|
|
63
|
+
"floating": boolean;
|
|
64
|
+
"label": string;
|
|
65
|
+
"type": 'info' | 'success' | 'warning' | 'error';
|
|
66
|
+
}
|
|
57
67
|
interface CuraButton {
|
|
58
68
|
/**
|
|
59
69
|
* Color base from color scheme. Default: accent.
|
|
@@ -154,6 +164,36 @@ export namespace Components {
|
|
|
154
164
|
*/
|
|
155
165
|
"textAlign": 'left' | 'center' | 'right';
|
|
156
166
|
}
|
|
167
|
+
interface CuraButtonSelect {
|
|
168
|
+
/**
|
|
169
|
+
* Set the font color to dark or light.
|
|
170
|
+
*/
|
|
171
|
+
"background": 'dark' | 'light';
|
|
172
|
+
/**
|
|
173
|
+
* Color base from color scheme. Default: accent.
|
|
174
|
+
*/
|
|
175
|
+
"color": string;
|
|
176
|
+
/**
|
|
177
|
+
* Disabled state. Boolean.
|
|
178
|
+
*/
|
|
179
|
+
"disabled": boolean;
|
|
180
|
+
/**
|
|
181
|
+
* fontcolor theme of the checkbox. Can be 'dark' or 'light'.
|
|
182
|
+
*/
|
|
183
|
+
"fontcolor": 'dark' | 'light';
|
|
184
|
+
/**
|
|
185
|
+
* Icon position: left (default) | right.
|
|
186
|
+
*/
|
|
187
|
+
"iconPosition": 'left' | 'right';
|
|
188
|
+
/**
|
|
189
|
+
* selected state. Boolean.
|
|
190
|
+
*/
|
|
191
|
+
"selected": boolean;
|
|
192
|
+
/**
|
|
193
|
+
* Button size: small | medium (default) | large = medium
|
|
194
|
+
*/
|
|
195
|
+
"size": 'small' | 'medium' | 'large';
|
|
196
|
+
}
|
|
157
197
|
interface CuraButtonTransparent {
|
|
158
198
|
/**
|
|
159
199
|
* Color base from color scheme. Default: accent.
|
|
@@ -204,45 +244,115 @@ export namespace Components {
|
|
|
204
244
|
*/
|
|
205
245
|
"textAlign": 'left' | 'center' | 'right';
|
|
206
246
|
}
|
|
247
|
+
interface CuraCheckbox {
|
|
248
|
+
/**
|
|
249
|
+
* Background theme of the checkbox. Can be 'dark' or 'light'.
|
|
250
|
+
*/
|
|
251
|
+
"background": 'dark' | 'light';
|
|
252
|
+
/**
|
|
253
|
+
* Reflects the checked state of the checkbox. Mutable property allowing state change.
|
|
254
|
+
*/
|
|
255
|
+
"checked": boolean;
|
|
256
|
+
/**
|
|
257
|
+
* Color theme of the checkbox.
|
|
258
|
+
*/
|
|
259
|
+
"color": string;
|
|
260
|
+
/**
|
|
261
|
+
* Reflects the disabled state of the checkbox.
|
|
262
|
+
*/
|
|
263
|
+
"disabled": boolean;
|
|
264
|
+
/**
|
|
265
|
+
* iconColor theme of the checkbox. Can be 'dark' or 'light'.
|
|
266
|
+
*/
|
|
267
|
+
"iconColor": 'dark' | 'light';
|
|
268
|
+
/**
|
|
269
|
+
* Reflects the indeterminate state of the checkbox. Mutable property allowing state change.
|
|
270
|
+
*/
|
|
271
|
+
"indeterminate": boolean;
|
|
272
|
+
/**
|
|
273
|
+
* Text label associated with the checkbox.
|
|
274
|
+
*/
|
|
275
|
+
"label": string;
|
|
276
|
+
/**
|
|
277
|
+
* Name attribute of the checkbox.
|
|
278
|
+
*/
|
|
279
|
+
"name": string;
|
|
280
|
+
/**
|
|
281
|
+
* Specifies the tabindex of the checkbox.
|
|
282
|
+
*/
|
|
283
|
+
"ontabindex": number;
|
|
284
|
+
/**
|
|
285
|
+
* Position of the label relative to the checkbox. Can be 'left' or 'right'.
|
|
286
|
+
*/
|
|
287
|
+
"position": 'left' | 'right';
|
|
288
|
+
/**
|
|
289
|
+
* Reflects the required state of the checkbox.
|
|
290
|
+
*/
|
|
291
|
+
"required": boolean;
|
|
292
|
+
/**
|
|
293
|
+
* Size of the checkbox. Can be 'small', 'medium', or 'large'.
|
|
294
|
+
*/
|
|
295
|
+
"size": 'small' | 'medium' | 'large';
|
|
296
|
+
/**
|
|
297
|
+
* Status of the checkbox. Can be 'error', 'success', or 'default'.
|
|
298
|
+
*/
|
|
299
|
+
"status": 'error' | 'success' | 'default';
|
|
300
|
+
/**
|
|
301
|
+
* Value associated with the checkbox.
|
|
302
|
+
*/
|
|
303
|
+
"value": string;
|
|
304
|
+
}
|
|
207
305
|
interface CuraDisplay {
|
|
208
306
|
/**
|
|
209
|
-
*
|
|
307
|
+
* Text color. Values: Color from design system scheme. Default to the font color from the theme.
|
|
308
|
+
*/
|
|
309
|
+
"color": string;
|
|
310
|
+
/**
|
|
311
|
+
* Heading level for semantics. Will render the related HTML tag <h1>, <h2>, ... Values: 1(default) to 6.
|
|
210
312
|
*/
|
|
211
|
-
"
|
|
313
|
+
"level": 1 | 2 | 3 | 4 | 5 | 6;
|
|
212
314
|
/**
|
|
213
|
-
*
|
|
315
|
+
* CSS line-height property values. Default to 140%
|
|
214
316
|
*/
|
|
215
|
-
"
|
|
317
|
+
"lineHeight": string;
|
|
216
318
|
/**
|
|
217
|
-
*
|
|
319
|
+
* CSS margin-block property values. Default to 1.25em
|
|
218
320
|
*/
|
|
219
|
-
"
|
|
321
|
+
"marginBlock": string;
|
|
220
322
|
/**
|
|
221
|
-
* Apply
|
|
323
|
+
* Apply design system color to interactive elements like <a> and <abbr> inside the text. Values: Color from design system scheme. Default to 'accent-dark'.
|
|
222
324
|
*/
|
|
223
325
|
"spotColor": string;
|
|
224
326
|
}
|
|
225
327
|
interface CuraHeading {
|
|
226
328
|
/**
|
|
227
|
-
*
|
|
329
|
+
* Text color. Values: Color from design system scheme. Default to the font color from the theme.
|
|
330
|
+
*/
|
|
331
|
+
"color": string;
|
|
332
|
+
/**
|
|
333
|
+
* Heading level for semantics. Will render the related HTML tag <h1>, <h2>, ... Values: 1(default) to 6.
|
|
334
|
+
*/
|
|
335
|
+
"level": 1 | 2 | 3 | 4 | 5 | 6;
|
|
336
|
+
/**
|
|
337
|
+
* CSS line-height property values. Default to 140%
|
|
228
338
|
*/
|
|
229
|
-
"
|
|
339
|
+
"lineHeight": string;
|
|
230
340
|
/**
|
|
231
|
-
*
|
|
341
|
+
* CSS margin-block property values. Default to 1.25em
|
|
232
342
|
*/
|
|
233
|
-
"
|
|
343
|
+
"marginBlock": string;
|
|
234
344
|
/**
|
|
235
|
-
* Heading style size. Values: small |
|
|
345
|
+
* Heading style size. Values: regular (deprecated), medium (default) | large | small | caption (deprecated) | xsmall.
|
|
236
346
|
*/
|
|
237
|
-
"size":
|
|
347
|
+
"size": 'regular' | 'medium' | 'large' | 'small' | 'caption' | 'xsmall';
|
|
238
348
|
/**
|
|
239
|
-
* Apply
|
|
349
|
+
* Apply design system color to interactive elements like <a> and <abbr> inside the text. Values: Color from design system scheme. Default to 'accent-dark'.
|
|
240
350
|
*/
|
|
241
351
|
"spotColor": string;
|
|
242
352
|
/**
|
|
243
|
-
* Heading font weight. Values: regular(default) | bold.
|
|
353
|
+
* Heading font weight. It is possible to use regular HTML tags like <b> or <strong> as well. Values: regular (default) | bold.
|
|
244
354
|
*/
|
|
245
|
-
"weight":
|
|
355
|
+
"weight": 'regular' | 'bold';
|
|
246
356
|
}
|
|
247
357
|
interface CuraIcon {
|
|
248
358
|
"color": string;
|
|
@@ -253,6 +363,109 @@ export namespace Components {
|
|
|
253
363
|
}
|
|
254
364
|
interface CuraIconsView {
|
|
255
365
|
}
|
|
366
|
+
interface CuraInputText {
|
|
367
|
+
/**
|
|
368
|
+
* Icon button name for the clear button (default: 'closeCircle')
|
|
369
|
+
*/
|
|
370
|
+
"clearIcon"?: boolean;
|
|
371
|
+
/**
|
|
372
|
+
* Whether the input is disabled (default: false)
|
|
373
|
+
*/
|
|
374
|
+
"disabled"?: boolean;
|
|
375
|
+
/**
|
|
376
|
+
* Helper text displayed below the input
|
|
377
|
+
*/
|
|
378
|
+
"helperText"?: string;
|
|
379
|
+
/**
|
|
380
|
+
* Whether to display a cura icon (default: null)
|
|
381
|
+
*/
|
|
382
|
+
"iconName"?: string;
|
|
383
|
+
/**
|
|
384
|
+
* Whether the input is in loading state (default: false)
|
|
385
|
+
*/
|
|
386
|
+
"isLoading"?: boolean;
|
|
387
|
+
/**
|
|
388
|
+
* Label text for the input
|
|
389
|
+
*/
|
|
390
|
+
"label": string;
|
|
391
|
+
/**
|
|
392
|
+
* Advanced mask object to be used with IMask library
|
|
393
|
+
* @see : https://imask.js.org/
|
|
394
|
+
*/
|
|
395
|
+
"maskAdvanced"?: FactoryArg | string | null;
|
|
396
|
+
/**
|
|
397
|
+
* Mask preset for input formatting: 'cpf', 'cnpj', 'phone', 'date', etc. Uses IMask library.
|
|
398
|
+
* @see : https://imask.js.org/
|
|
399
|
+
*/
|
|
400
|
+
"maskPreset"?: MaskPreset;
|
|
401
|
+
/**
|
|
402
|
+
* Regular expression for custom input masking. Uses IMask library.
|
|
403
|
+
* @see : https://imask.js.org/
|
|
404
|
+
*/
|
|
405
|
+
"maskRegex"?: MaskedRegExp['mask'] | string | null;
|
|
406
|
+
/**
|
|
407
|
+
* Maximum length of the input value (default: undefined)
|
|
408
|
+
*/
|
|
409
|
+
"maxlength"?: number | undefined;
|
|
410
|
+
/**
|
|
411
|
+
* Mode of the input: 'default' or 'transparent' (default: 'default')
|
|
412
|
+
*/
|
|
413
|
+
"mode": 'default' | 'transparent';
|
|
414
|
+
/**
|
|
415
|
+
* Placeholder text for the input
|
|
416
|
+
*/
|
|
417
|
+
"placeholder"?: string | null;
|
|
418
|
+
/**
|
|
419
|
+
* Whether the input is read-only (default: false)
|
|
420
|
+
*/
|
|
421
|
+
"readOnly"?: boolean;
|
|
422
|
+
/**
|
|
423
|
+
* Whether the input is required (default: false)
|
|
424
|
+
*/
|
|
425
|
+
"required"?: boolean;
|
|
426
|
+
/**
|
|
427
|
+
* Size of the input mode default: 'small', 'medium', or 'large' (default: 'medium')
|
|
428
|
+
*/
|
|
429
|
+
"size": 'small' | 'medium' | 'large';
|
|
430
|
+
/**
|
|
431
|
+
* Indicates input status(default: default)
|
|
432
|
+
*/
|
|
433
|
+
"status": 'error' | 'success' | 'default';
|
|
434
|
+
/**
|
|
435
|
+
* Type of the input: 'text', 'number' (default: 'text')
|
|
436
|
+
*/
|
|
437
|
+
"type": 'text' | 'number';
|
|
438
|
+
/**
|
|
439
|
+
* Value of the input field
|
|
440
|
+
*/
|
|
441
|
+
"value": string | number;
|
|
442
|
+
}
|
|
443
|
+
interface CuraLabel {
|
|
444
|
+
/**
|
|
445
|
+
* Text color. Values: Color from design system scheme. Default to the font color from the theme.
|
|
446
|
+
*/
|
|
447
|
+
"color": string;
|
|
448
|
+
/**
|
|
449
|
+
* CSS line-height property values. Default to 140%
|
|
450
|
+
*/
|
|
451
|
+
"lineHeight": string;
|
|
452
|
+
/**
|
|
453
|
+
* CSS margin-block property values. Default to 1.25em
|
|
454
|
+
*/
|
|
455
|
+
"marginBlock": string;
|
|
456
|
+
/**
|
|
457
|
+
* Set size of body text. Values: medium (default) | large | small | xsmall.
|
|
458
|
+
*/
|
|
459
|
+
"size": 'medium' | 'large' | 'small' | 'xsmall';
|
|
460
|
+
/**
|
|
461
|
+
* Apply design system color to interactive elements like <a> and <abbr> inside the text. Values: Color from design system scheme. Default to 'accent-dark'.
|
|
462
|
+
*/
|
|
463
|
+
"spotColor": string;
|
|
464
|
+
/**
|
|
465
|
+
* Label font weight. It is possible to use regular HTML tags like <b> or <strong> as well. Values: regular (default) | bold.
|
|
466
|
+
*/
|
|
467
|
+
"weight": 'regular' | 'bold';
|
|
468
|
+
}
|
|
256
469
|
interface CuraLoaderCircle {
|
|
257
470
|
/**
|
|
258
471
|
* One from color scheme. Default: neutral-white.
|
|
@@ -268,22 +481,134 @@ export namespace Components {
|
|
|
268
481
|
}
|
|
269
482
|
interface CuraParagraph {
|
|
270
483
|
/**
|
|
271
|
-
* Color
|
|
484
|
+
* Text color. Values: Color from design system scheme. Default to the font color from the theme.
|
|
485
|
+
*/
|
|
486
|
+
"color": string;
|
|
487
|
+
/**
|
|
488
|
+
* CSS line-height property values. Default to 140%
|
|
272
489
|
*/
|
|
273
|
-
"
|
|
490
|
+
"lineHeight": string;
|
|
274
491
|
/**
|
|
275
|
-
*
|
|
492
|
+
* CSS margin-block property values. Default to 1.25em
|
|
276
493
|
*/
|
|
277
|
-
"
|
|
494
|
+
"marginBlock": string;
|
|
278
495
|
/**
|
|
279
|
-
* Set size of body text. Values: regular (default) | large | small | caption.
|
|
496
|
+
* Set size of body text. Values: regular (deprecated), medium (default) | large | small | caption (deprecated) | xsmall.
|
|
280
497
|
*/
|
|
281
|
-
"size": 'regular' | 'large' | 'small' | 'caption';
|
|
498
|
+
"size": 'regular' | 'medium' | 'large' | 'small' | 'caption' | 'xsmall';
|
|
282
499
|
/**
|
|
283
|
-
* Apply
|
|
500
|
+
* Apply design system color to interactive elements like <a> and <abbr> inside the text. Values: Color from design system scheme. Default to 'accent-dark'.
|
|
284
501
|
*/
|
|
285
502
|
"spotColor": string;
|
|
286
503
|
}
|
|
504
|
+
interface CuraRadio {
|
|
505
|
+
/**
|
|
506
|
+
* Background theme of the radio button. Can be 'dark' or 'light'.
|
|
507
|
+
*/
|
|
508
|
+
"background": 'dark' | 'light';
|
|
509
|
+
/**
|
|
510
|
+
* Reflects the checked state of the radio button. Mutable property allowing state change.
|
|
511
|
+
*/
|
|
512
|
+
"checked": boolean;
|
|
513
|
+
/**
|
|
514
|
+
* Color theme of the radio button.
|
|
515
|
+
*/
|
|
516
|
+
"color": string;
|
|
517
|
+
/**
|
|
518
|
+
* Reflects the disabled state of the radio button.
|
|
519
|
+
*/
|
|
520
|
+
"disabled": boolean;
|
|
521
|
+
/**
|
|
522
|
+
* Text label associated with the radio button.
|
|
523
|
+
*/
|
|
524
|
+
"label": string;
|
|
525
|
+
/**
|
|
526
|
+
* Name attribute of the radio button.
|
|
527
|
+
*/
|
|
528
|
+
"name": string;
|
|
529
|
+
/**
|
|
530
|
+
* Specifies the tabindex of the radio button.
|
|
531
|
+
*/
|
|
532
|
+
"ontabindex": number;
|
|
533
|
+
/**
|
|
534
|
+
* Position of the label relative to the radio button. Can be 'left' or 'right'.
|
|
535
|
+
*/
|
|
536
|
+
"position": "left" | "right";
|
|
537
|
+
/**
|
|
538
|
+
* Reflects the required state of the radio button.
|
|
539
|
+
*/
|
|
540
|
+
"required": boolean;
|
|
541
|
+
/**
|
|
542
|
+
* Size of the radio button. Can be 'small', 'medium', or 'large'.
|
|
543
|
+
*/
|
|
544
|
+
"size": 'small' | 'medium' | 'large';
|
|
545
|
+
/**
|
|
546
|
+
* Status of the radio button. Can be 'error', 'success', or 'default'.
|
|
547
|
+
*/
|
|
548
|
+
"status": 'error' | 'success' | 'default';
|
|
549
|
+
/**
|
|
550
|
+
* Value associated with the radio button.
|
|
551
|
+
*/
|
|
552
|
+
"value": string;
|
|
553
|
+
}
|
|
554
|
+
interface CuraSwitch {
|
|
555
|
+
/**
|
|
556
|
+
* Background style of the switch. Can be 'dark' or 'light'.
|
|
557
|
+
*/
|
|
558
|
+
"background": 'dark' | 'light';
|
|
559
|
+
/**
|
|
560
|
+
* Indicates whether the switch is checked or not.
|
|
561
|
+
*/
|
|
562
|
+
"checked": boolean;
|
|
563
|
+
/**
|
|
564
|
+
* Accent color of the switch.
|
|
565
|
+
*/
|
|
566
|
+
"color": string;
|
|
567
|
+
/**
|
|
568
|
+
* Indicates whether the switch is disabled or not.
|
|
569
|
+
*/
|
|
570
|
+
"disabled": boolean;
|
|
571
|
+
/**
|
|
572
|
+
* The label text to display next to the switch.
|
|
573
|
+
*/
|
|
574
|
+
"label": string;
|
|
575
|
+
/**
|
|
576
|
+
* Tab index for the switch element. Reflects as an HTML attribute.
|
|
577
|
+
*/
|
|
578
|
+
"ontabindex": number;
|
|
579
|
+
/**
|
|
580
|
+
* Position of the label relative to the switch. Can be 'left' or 'right'.
|
|
581
|
+
*/
|
|
582
|
+
"position": "left" | "right";
|
|
583
|
+
/**
|
|
584
|
+
* Size of the switch. Can be 'small', 'medium', or 'large'.
|
|
585
|
+
*/
|
|
586
|
+
"size": 'small' | 'medium' | 'large';
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
export interface CuraAlertCustomEvent<T> extends CustomEvent<T> {
|
|
590
|
+
detail: T;
|
|
591
|
+
target: HTMLCuraAlertElement;
|
|
592
|
+
}
|
|
593
|
+
export interface CuraButtonSelectCustomEvent<T> extends CustomEvent<T> {
|
|
594
|
+
detail: T;
|
|
595
|
+
target: HTMLCuraButtonSelectElement;
|
|
596
|
+
}
|
|
597
|
+
export interface CuraCheckboxCustomEvent<T> extends CustomEvent<T> {
|
|
598
|
+
detail: T;
|
|
599
|
+
target: HTMLCuraCheckboxElement;
|
|
600
|
+
}
|
|
601
|
+
export interface CuraInputTextCustomEvent<T> extends CustomEvent<T> {
|
|
602
|
+
detail: T;
|
|
603
|
+
target: HTMLCuraInputTextElement;
|
|
604
|
+
}
|
|
605
|
+
export interface CuraRadioCustomEvent<T> extends CustomEvent<T> {
|
|
606
|
+
detail: T;
|
|
607
|
+
target: HTMLCuraRadioElement;
|
|
608
|
+
}
|
|
609
|
+
export interface CuraSwitchCustomEvent<T> extends CustomEvent<T> {
|
|
610
|
+
detail: T;
|
|
611
|
+
target: HTMLCuraSwitchElement;
|
|
287
612
|
}
|
|
288
613
|
declare global {
|
|
289
614
|
interface HTMLCuraAccordionElement extends Components.CuraAccordion, HTMLStencilElement {
|
|
@@ -298,6 +623,12 @@ declare global {
|
|
|
298
623
|
prototype: HTMLCuraAccordionItemElement;
|
|
299
624
|
new (): HTMLCuraAccordionItemElement;
|
|
300
625
|
};
|
|
626
|
+
interface HTMLCuraAlertElement extends Components.CuraAlert, HTMLStencilElement {
|
|
627
|
+
}
|
|
628
|
+
var HTMLCuraAlertElement: {
|
|
629
|
+
prototype: HTMLCuraAlertElement;
|
|
630
|
+
new (): HTMLCuraAlertElement;
|
|
631
|
+
};
|
|
301
632
|
interface HTMLCuraButtonElement extends Components.CuraButton, HTMLStencilElement {
|
|
302
633
|
}
|
|
303
634
|
var HTMLCuraButtonElement: {
|
|
@@ -310,12 +641,24 @@ declare global {
|
|
|
310
641
|
prototype: HTMLCuraButtonOutlineElement;
|
|
311
642
|
new (): HTMLCuraButtonOutlineElement;
|
|
312
643
|
};
|
|
644
|
+
interface HTMLCuraButtonSelectElement extends Components.CuraButtonSelect, HTMLStencilElement {
|
|
645
|
+
}
|
|
646
|
+
var HTMLCuraButtonSelectElement: {
|
|
647
|
+
prototype: HTMLCuraButtonSelectElement;
|
|
648
|
+
new (): HTMLCuraButtonSelectElement;
|
|
649
|
+
};
|
|
313
650
|
interface HTMLCuraButtonTransparentElement extends Components.CuraButtonTransparent, HTMLStencilElement {
|
|
314
651
|
}
|
|
315
652
|
var HTMLCuraButtonTransparentElement: {
|
|
316
653
|
prototype: HTMLCuraButtonTransparentElement;
|
|
317
654
|
new (): HTMLCuraButtonTransparentElement;
|
|
318
655
|
};
|
|
656
|
+
interface HTMLCuraCheckboxElement extends Components.CuraCheckbox, HTMLStencilElement {
|
|
657
|
+
}
|
|
658
|
+
var HTMLCuraCheckboxElement: {
|
|
659
|
+
prototype: HTMLCuraCheckboxElement;
|
|
660
|
+
new (): HTMLCuraCheckboxElement;
|
|
661
|
+
};
|
|
319
662
|
interface HTMLCuraDisplayElement extends Components.CuraDisplay, HTMLStencilElement {
|
|
320
663
|
}
|
|
321
664
|
var HTMLCuraDisplayElement: {
|
|
@@ -340,6 +683,18 @@ declare global {
|
|
|
340
683
|
prototype: HTMLCuraIconsViewElement;
|
|
341
684
|
new (): HTMLCuraIconsViewElement;
|
|
342
685
|
};
|
|
686
|
+
interface HTMLCuraInputTextElement extends Components.CuraInputText, HTMLStencilElement {
|
|
687
|
+
}
|
|
688
|
+
var HTMLCuraInputTextElement: {
|
|
689
|
+
prototype: HTMLCuraInputTextElement;
|
|
690
|
+
new (): HTMLCuraInputTextElement;
|
|
691
|
+
};
|
|
692
|
+
interface HTMLCuraLabelElement extends Components.CuraLabel, HTMLStencilElement {
|
|
693
|
+
}
|
|
694
|
+
var HTMLCuraLabelElement: {
|
|
695
|
+
prototype: HTMLCuraLabelElement;
|
|
696
|
+
new (): HTMLCuraLabelElement;
|
|
697
|
+
};
|
|
343
698
|
interface HTMLCuraLoaderCircleElement extends Components.CuraLoaderCircle, HTMLStencilElement {
|
|
344
699
|
}
|
|
345
700
|
var HTMLCuraLoaderCircleElement: {
|
|
@@ -358,19 +713,38 @@ declare global {
|
|
|
358
713
|
prototype: HTMLCuraParagraphElement;
|
|
359
714
|
new (): HTMLCuraParagraphElement;
|
|
360
715
|
};
|
|
716
|
+
interface HTMLCuraRadioElement extends Components.CuraRadio, HTMLStencilElement {
|
|
717
|
+
}
|
|
718
|
+
var HTMLCuraRadioElement: {
|
|
719
|
+
prototype: HTMLCuraRadioElement;
|
|
720
|
+
new (): HTMLCuraRadioElement;
|
|
721
|
+
};
|
|
722
|
+
interface HTMLCuraSwitchElement extends Components.CuraSwitch, HTMLStencilElement {
|
|
723
|
+
}
|
|
724
|
+
var HTMLCuraSwitchElement: {
|
|
725
|
+
prototype: HTMLCuraSwitchElement;
|
|
726
|
+
new (): HTMLCuraSwitchElement;
|
|
727
|
+
};
|
|
361
728
|
interface HTMLElementTagNameMap {
|
|
362
729
|
"cura-accordion": HTMLCuraAccordionElement;
|
|
363
730
|
"cura-accordion-item": HTMLCuraAccordionItemElement;
|
|
731
|
+
"cura-alert": HTMLCuraAlertElement;
|
|
364
732
|
"cura-button": HTMLCuraButtonElement;
|
|
365
733
|
"cura-button-outline": HTMLCuraButtonOutlineElement;
|
|
734
|
+
"cura-button-select": HTMLCuraButtonSelectElement;
|
|
366
735
|
"cura-button-transparent": HTMLCuraButtonTransparentElement;
|
|
736
|
+
"cura-checkbox": HTMLCuraCheckboxElement;
|
|
367
737
|
"cura-display": HTMLCuraDisplayElement;
|
|
368
738
|
"cura-heading": HTMLCuraHeadingElement;
|
|
369
739
|
"cura-icon": HTMLCuraIconElement;
|
|
370
740
|
"cura-icons-view": HTMLCuraIconsViewElement;
|
|
741
|
+
"cura-input-text": HTMLCuraInputTextElement;
|
|
742
|
+
"cura-label": HTMLCuraLabelElement;
|
|
371
743
|
"cura-loader-circle": HTMLCuraLoaderCircleElement;
|
|
372
744
|
"cura-page-template": HTMLCuraPageTemplateElement;
|
|
373
745
|
"cura-paragraph": HTMLCuraParagraphElement;
|
|
746
|
+
"cura-radio": HTMLCuraRadioElement;
|
|
747
|
+
"cura-switch": HTMLCuraSwitchElement;
|
|
374
748
|
}
|
|
375
749
|
}
|
|
376
750
|
declare namespace LocalJSX {
|
|
@@ -422,6 +796,13 @@ declare namespace LocalJSX {
|
|
|
422
796
|
"openIcon"?: string;
|
|
423
797
|
"opened"?: boolean;
|
|
424
798
|
}
|
|
799
|
+
interface CuraAlert {
|
|
800
|
+
"closeable"?: boolean;
|
|
801
|
+
"floating"?: boolean;
|
|
802
|
+
"label"?: string;
|
|
803
|
+
"onClose"?: (event: CuraAlertCustomEvent<void>) => void;
|
|
804
|
+
"type"?: 'info' | 'success' | 'warning' | 'error';
|
|
805
|
+
}
|
|
425
806
|
interface CuraButton {
|
|
426
807
|
/**
|
|
427
808
|
* Color base from color scheme. Default: accent.
|
|
@@ -522,6 +903,37 @@ declare namespace LocalJSX {
|
|
|
522
903
|
*/
|
|
523
904
|
"textAlign"?: 'left' | 'center' | 'right';
|
|
524
905
|
}
|
|
906
|
+
interface CuraButtonSelect {
|
|
907
|
+
/**
|
|
908
|
+
* Set the font color to dark or light.
|
|
909
|
+
*/
|
|
910
|
+
"background"?: 'dark' | 'light';
|
|
911
|
+
/**
|
|
912
|
+
* Color base from color scheme. Default: accent.
|
|
913
|
+
*/
|
|
914
|
+
"color"?: string;
|
|
915
|
+
/**
|
|
916
|
+
* Disabled state. Boolean.
|
|
917
|
+
*/
|
|
918
|
+
"disabled"?: boolean;
|
|
919
|
+
/**
|
|
920
|
+
* fontcolor theme of the checkbox. Can be 'dark' or 'light'.
|
|
921
|
+
*/
|
|
922
|
+
"fontcolor"?: 'dark' | 'light';
|
|
923
|
+
/**
|
|
924
|
+
* Icon position: left (default) | right.
|
|
925
|
+
*/
|
|
926
|
+
"iconPosition"?: 'left' | 'right';
|
|
927
|
+
"onOnclick"?: (event: CuraButtonSelectCustomEvent<{ selected: boolean; }>) => void;
|
|
928
|
+
/**
|
|
929
|
+
* selected state. Boolean.
|
|
930
|
+
*/
|
|
931
|
+
"selected"?: boolean;
|
|
932
|
+
/**
|
|
933
|
+
* Button size: small | medium (default) | large = medium
|
|
934
|
+
*/
|
|
935
|
+
"size"?: 'small' | 'medium' | 'large';
|
|
936
|
+
}
|
|
525
937
|
interface CuraButtonTransparent {
|
|
526
938
|
/**
|
|
527
939
|
* Color base from color scheme. Default: accent.
|
|
@@ -572,45 +984,116 @@ declare namespace LocalJSX {
|
|
|
572
984
|
*/
|
|
573
985
|
"textAlign"?: 'left' | 'center' | 'right';
|
|
574
986
|
}
|
|
987
|
+
interface CuraCheckbox {
|
|
988
|
+
/**
|
|
989
|
+
* Background theme of the checkbox. Can be 'dark' or 'light'.
|
|
990
|
+
*/
|
|
991
|
+
"background"?: 'dark' | 'light';
|
|
992
|
+
/**
|
|
993
|
+
* Reflects the checked state of the checkbox. Mutable property allowing state change.
|
|
994
|
+
*/
|
|
995
|
+
"checked"?: boolean;
|
|
996
|
+
/**
|
|
997
|
+
* Color theme of the checkbox.
|
|
998
|
+
*/
|
|
999
|
+
"color"?: string;
|
|
1000
|
+
/**
|
|
1001
|
+
* Reflects the disabled state of the checkbox.
|
|
1002
|
+
*/
|
|
1003
|
+
"disabled"?: boolean;
|
|
1004
|
+
/**
|
|
1005
|
+
* iconColor theme of the checkbox. Can be 'dark' or 'light'.
|
|
1006
|
+
*/
|
|
1007
|
+
"iconColor"?: 'dark' | 'light';
|
|
1008
|
+
/**
|
|
1009
|
+
* Reflects the indeterminate state of the checkbox. Mutable property allowing state change.
|
|
1010
|
+
*/
|
|
1011
|
+
"indeterminate"?: boolean;
|
|
1012
|
+
/**
|
|
1013
|
+
* Text label associated with the checkbox.
|
|
1014
|
+
*/
|
|
1015
|
+
"label"?: string;
|
|
1016
|
+
/**
|
|
1017
|
+
* Name attribute of the checkbox.
|
|
1018
|
+
*/
|
|
1019
|
+
"name"?: string;
|
|
1020
|
+
"onOnchange"?: (event: CuraCheckboxCustomEvent<{ value: string, checked: boolean, indeterminate: boolean }>) => void;
|
|
1021
|
+
/**
|
|
1022
|
+
* Specifies the tabindex of the checkbox.
|
|
1023
|
+
*/
|
|
1024
|
+
"ontabindex"?: number;
|
|
1025
|
+
/**
|
|
1026
|
+
* Position of the label relative to the checkbox. Can be 'left' or 'right'.
|
|
1027
|
+
*/
|
|
1028
|
+
"position"?: 'left' | 'right';
|
|
1029
|
+
/**
|
|
1030
|
+
* Reflects the required state of the checkbox.
|
|
1031
|
+
*/
|
|
1032
|
+
"required"?: boolean;
|
|
1033
|
+
/**
|
|
1034
|
+
* Size of the checkbox. Can be 'small', 'medium', or 'large'.
|
|
1035
|
+
*/
|
|
1036
|
+
"size"?: 'small' | 'medium' | 'large';
|
|
1037
|
+
/**
|
|
1038
|
+
* Status of the checkbox. Can be 'error', 'success', or 'default'.
|
|
1039
|
+
*/
|
|
1040
|
+
"status"?: 'error' | 'success' | 'default';
|
|
1041
|
+
/**
|
|
1042
|
+
* Value associated with the checkbox.
|
|
1043
|
+
*/
|
|
1044
|
+
"value"?: string;
|
|
1045
|
+
}
|
|
575
1046
|
interface CuraDisplay {
|
|
576
1047
|
/**
|
|
577
|
-
*
|
|
1048
|
+
* Text color. Values: Color from design system scheme. Default to the font color from the theme.
|
|
1049
|
+
*/
|
|
1050
|
+
"color"?: string;
|
|
1051
|
+
/**
|
|
1052
|
+
* Heading level for semantics. Will render the related HTML tag <h1>, <h2>, ... Values: 1(default) to 6.
|
|
578
1053
|
*/
|
|
579
|
-
"
|
|
1054
|
+
"level"?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
580
1055
|
/**
|
|
581
|
-
*
|
|
1056
|
+
* CSS line-height property values. Default to 140%
|
|
582
1057
|
*/
|
|
583
|
-
"
|
|
1058
|
+
"lineHeight"?: string;
|
|
584
1059
|
/**
|
|
585
|
-
*
|
|
1060
|
+
* CSS margin-block property values. Default to 1.25em
|
|
586
1061
|
*/
|
|
587
|
-
"
|
|
1062
|
+
"marginBlock"?: string;
|
|
588
1063
|
/**
|
|
589
|
-
* Apply
|
|
1064
|
+
* Apply design system color to interactive elements like <a> and <abbr> inside the text. Values: Color from design system scheme. Default to 'accent-dark'.
|
|
590
1065
|
*/
|
|
591
1066
|
"spotColor"?: string;
|
|
592
1067
|
}
|
|
593
1068
|
interface CuraHeading {
|
|
594
1069
|
/**
|
|
595
|
-
*
|
|
1070
|
+
* Text color. Values: Color from design system scheme. Default to the font color from the theme.
|
|
596
1071
|
*/
|
|
597
|
-
"
|
|
1072
|
+
"color"?: string;
|
|
598
1073
|
/**
|
|
599
|
-
* Heading level for semantics. Values: 1(default)
|
|
1074
|
+
* Heading level for semantics. Will render the related HTML tag <h1>, <h2>, ... Values: 1(default) to 6.
|
|
600
1075
|
*/
|
|
601
|
-
"level"?:
|
|
1076
|
+
"level"?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
602
1077
|
/**
|
|
603
|
-
*
|
|
1078
|
+
* CSS line-height property values. Default to 140%
|
|
604
1079
|
*/
|
|
605
|
-
"
|
|
1080
|
+
"lineHeight"?: string;
|
|
606
1081
|
/**
|
|
607
|
-
*
|
|
1082
|
+
* CSS margin-block property values. Default to 1.25em
|
|
1083
|
+
*/
|
|
1084
|
+
"marginBlock"?: string;
|
|
1085
|
+
/**
|
|
1086
|
+
* Heading style size. Values: regular (deprecated), medium (default) | large | small | caption (deprecated) | xsmall.
|
|
1087
|
+
*/
|
|
1088
|
+
"size"?: 'regular' | 'medium' | 'large' | 'small' | 'caption' | 'xsmall';
|
|
1089
|
+
/**
|
|
1090
|
+
* Apply design system color to interactive elements like <a> and <abbr> inside the text. Values: Color from design system scheme. Default to 'accent-dark'.
|
|
608
1091
|
*/
|
|
609
1092
|
"spotColor"?: string;
|
|
610
1093
|
/**
|
|
611
|
-
* Heading font weight. Values: regular(default) | bold.
|
|
1094
|
+
* Heading font weight. It is possible to use regular HTML tags like <b> or <strong> as well. Values: regular (default) | bold.
|
|
612
1095
|
*/
|
|
613
|
-
"weight"?:
|
|
1096
|
+
"weight"?: 'regular' | 'bold';
|
|
614
1097
|
}
|
|
615
1098
|
interface CuraIcon {
|
|
616
1099
|
"color"?: string;
|
|
@@ -621,6 +1104,114 @@ declare namespace LocalJSX {
|
|
|
621
1104
|
}
|
|
622
1105
|
interface CuraIconsView {
|
|
623
1106
|
}
|
|
1107
|
+
interface CuraInputText {
|
|
1108
|
+
/**
|
|
1109
|
+
* Icon button name for the clear button (default: 'closeCircle')
|
|
1110
|
+
*/
|
|
1111
|
+
"clearIcon"?: boolean;
|
|
1112
|
+
/**
|
|
1113
|
+
* Whether the input is disabled (default: false)
|
|
1114
|
+
*/
|
|
1115
|
+
"disabled"?: boolean;
|
|
1116
|
+
/**
|
|
1117
|
+
* Helper text displayed below the input
|
|
1118
|
+
*/
|
|
1119
|
+
"helperText"?: string;
|
|
1120
|
+
/**
|
|
1121
|
+
* Whether to display a cura icon (default: null)
|
|
1122
|
+
*/
|
|
1123
|
+
"iconName"?: string;
|
|
1124
|
+
/**
|
|
1125
|
+
* Whether the input is in loading state (default: false)
|
|
1126
|
+
*/
|
|
1127
|
+
"isLoading"?: boolean;
|
|
1128
|
+
/**
|
|
1129
|
+
* Label text for the input
|
|
1130
|
+
*/
|
|
1131
|
+
"label"?: string;
|
|
1132
|
+
/**
|
|
1133
|
+
* Advanced mask object to be used with IMask library
|
|
1134
|
+
* @see : https://imask.js.org/
|
|
1135
|
+
*/
|
|
1136
|
+
"maskAdvanced"?: FactoryArg | string | null;
|
|
1137
|
+
/**
|
|
1138
|
+
* Mask preset for input formatting: 'cpf', 'cnpj', 'phone', 'date', etc. Uses IMask library.
|
|
1139
|
+
* @see : https://imask.js.org/
|
|
1140
|
+
*/
|
|
1141
|
+
"maskPreset"?: MaskPreset;
|
|
1142
|
+
/**
|
|
1143
|
+
* Regular expression for custom input masking. Uses IMask library.
|
|
1144
|
+
* @see : https://imask.js.org/
|
|
1145
|
+
*/
|
|
1146
|
+
"maskRegex"?: MaskedRegExp['mask'] | string | null;
|
|
1147
|
+
/**
|
|
1148
|
+
* Maximum length of the input value (default: undefined)
|
|
1149
|
+
*/
|
|
1150
|
+
"maxlength"?: number | undefined;
|
|
1151
|
+
/**
|
|
1152
|
+
* Mode of the input: 'default' or 'transparent' (default: 'default')
|
|
1153
|
+
*/
|
|
1154
|
+
"mode"?: 'default' | 'transparent';
|
|
1155
|
+
/**
|
|
1156
|
+
* Emitted when the value of the input changes
|
|
1157
|
+
* @type {EventEmitter<string | number>}
|
|
1158
|
+
*/
|
|
1159
|
+
"onValueChange"?: (event: CuraInputTextCustomEvent<string | number>) => void;
|
|
1160
|
+
/**
|
|
1161
|
+
* Placeholder text for the input
|
|
1162
|
+
*/
|
|
1163
|
+
"placeholder"?: string | null;
|
|
1164
|
+
/**
|
|
1165
|
+
* Whether the input is read-only (default: false)
|
|
1166
|
+
*/
|
|
1167
|
+
"readOnly"?: boolean;
|
|
1168
|
+
/**
|
|
1169
|
+
* Whether the input is required (default: false)
|
|
1170
|
+
*/
|
|
1171
|
+
"required"?: boolean;
|
|
1172
|
+
/**
|
|
1173
|
+
* Size of the input mode default: 'small', 'medium', or 'large' (default: 'medium')
|
|
1174
|
+
*/
|
|
1175
|
+
"size"?: 'small' | 'medium' | 'large';
|
|
1176
|
+
/**
|
|
1177
|
+
* Indicates input status(default: default)
|
|
1178
|
+
*/
|
|
1179
|
+
"status"?: 'error' | 'success' | 'default';
|
|
1180
|
+
/**
|
|
1181
|
+
* Type of the input: 'text', 'number' (default: 'text')
|
|
1182
|
+
*/
|
|
1183
|
+
"type"?: 'text' | 'number';
|
|
1184
|
+
/**
|
|
1185
|
+
* Value of the input field
|
|
1186
|
+
*/
|
|
1187
|
+
"value"?: string | number;
|
|
1188
|
+
}
|
|
1189
|
+
interface CuraLabel {
|
|
1190
|
+
/**
|
|
1191
|
+
* Text color. Values: Color from design system scheme. Default to the font color from the theme.
|
|
1192
|
+
*/
|
|
1193
|
+
"color"?: string;
|
|
1194
|
+
/**
|
|
1195
|
+
* CSS line-height property values. Default to 140%
|
|
1196
|
+
*/
|
|
1197
|
+
"lineHeight"?: string;
|
|
1198
|
+
/**
|
|
1199
|
+
* CSS margin-block property values. Default to 1.25em
|
|
1200
|
+
*/
|
|
1201
|
+
"marginBlock"?: string;
|
|
1202
|
+
/**
|
|
1203
|
+
* Set size of body text. Values: medium (default) | large | small | xsmall.
|
|
1204
|
+
*/
|
|
1205
|
+
"size"?: 'medium' | 'large' | 'small' | 'xsmall';
|
|
1206
|
+
/**
|
|
1207
|
+
* Apply design system color to interactive elements like <a> and <abbr> inside the text. Values: Color from design system scheme. Default to 'accent-dark'.
|
|
1208
|
+
*/
|
|
1209
|
+
"spotColor"?: string;
|
|
1210
|
+
/**
|
|
1211
|
+
* Label font weight. It is possible to use regular HTML tags like <b> or <strong> as well. Values: regular (default) | bold.
|
|
1212
|
+
*/
|
|
1213
|
+
"weight"?: 'regular' | 'bold';
|
|
1214
|
+
}
|
|
624
1215
|
interface CuraLoaderCircle {
|
|
625
1216
|
/**
|
|
626
1217
|
* One from color scheme. Default: neutral-white.
|
|
@@ -636,35 +1227,132 @@ declare namespace LocalJSX {
|
|
|
636
1227
|
}
|
|
637
1228
|
interface CuraParagraph {
|
|
638
1229
|
/**
|
|
639
|
-
* Color
|
|
1230
|
+
* Text color. Values: Color from design system scheme. Default to the font color from the theme.
|
|
640
1231
|
*/
|
|
641
|
-
"color"?:
|
|
1232
|
+
"color"?: string;
|
|
642
1233
|
/**
|
|
643
|
-
*
|
|
1234
|
+
* CSS line-height property values. Default to 140%
|
|
644
1235
|
*/
|
|
645
|
-
"
|
|
1236
|
+
"lineHeight"?: string;
|
|
646
1237
|
/**
|
|
647
|
-
*
|
|
1238
|
+
* CSS margin-block property values. Default to 1.25em
|
|
648
1239
|
*/
|
|
649
|
-
"
|
|
1240
|
+
"marginBlock"?: string;
|
|
650
1241
|
/**
|
|
651
|
-
*
|
|
1242
|
+
* Set size of body text. Values: regular (deprecated), medium (default) | large | small | caption (deprecated) | xsmall.
|
|
1243
|
+
*/
|
|
1244
|
+
"size"?: 'regular' | 'medium' | 'large' | 'small' | 'caption' | 'xsmall';
|
|
1245
|
+
/**
|
|
1246
|
+
* Apply design system color to interactive elements like <a> and <abbr> inside the text. Values: Color from design system scheme. Default to 'accent-dark'.
|
|
652
1247
|
*/
|
|
653
1248
|
"spotColor"?: string;
|
|
654
1249
|
}
|
|
1250
|
+
interface CuraRadio {
|
|
1251
|
+
/**
|
|
1252
|
+
* Background theme of the radio button. Can be 'dark' or 'light'.
|
|
1253
|
+
*/
|
|
1254
|
+
"background"?: 'dark' | 'light';
|
|
1255
|
+
/**
|
|
1256
|
+
* Reflects the checked state of the radio button. Mutable property allowing state change.
|
|
1257
|
+
*/
|
|
1258
|
+
"checked"?: boolean;
|
|
1259
|
+
/**
|
|
1260
|
+
* Color theme of the radio button.
|
|
1261
|
+
*/
|
|
1262
|
+
"color"?: string;
|
|
1263
|
+
/**
|
|
1264
|
+
* Reflects the disabled state of the radio button.
|
|
1265
|
+
*/
|
|
1266
|
+
"disabled"?: boolean;
|
|
1267
|
+
/**
|
|
1268
|
+
* Text label associated with the radio button.
|
|
1269
|
+
*/
|
|
1270
|
+
"label"?: string;
|
|
1271
|
+
/**
|
|
1272
|
+
* Name attribute of the radio button.
|
|
1273
|
+
*/
|
|
1274
|
+
"name"?: string;
|
|
1275
|
+
"onOnchange"?: (event: CuraRadioCustomEvent<{ value: string, checked: boolean }>) => void;
|
|
1276
|
+
/**
|
|
1277
|
+
* Specifies the tabindex of the radio button.
|
|
1278
|
+
*/
|
|
1279
|
+
"ontabindex"?: number;
|
|
1280
|
+
/**
|
|
1281
|
+
* Position of the label relative to the radio button. Can be 'left' or 'right'.
|
|
1282
|
+
*/
|
|
1283
|
+
"position"?: "left" | "right";
|
|
1284
|
+
/**
|
|
1285
|
+
* Reflects the required state of the radio button.
|
|
1286
|
+
*/
|
|
1287
|
+
"required"?: boolean;
|
|
1288
|
+
/**
|
|
1289
|
+
* Size of the radio button. Can be 'small', 'medium', or 'large'.
|
|
1290
|
+
*/
|
|
1291
|
+
"size"?: 'small' | 'medium' | 'large';
|
|
1292
|
+
/**
|
|
1293
|
+
* Status of the radio button. Can be 'error', 'success', or 'default'.
|
|
1294
|
+
*/
|
|
1295
|
+
"status"?: 'error' | 'success' | 'default';
|
|
1296
|
+
/**
|
|
1297
|
+
* Value associated with the radio button.
|
|
1298
|
+
*/
|
|
1299
|
+
"value"?: string;
|
|
1300
|
+
}
|
|
1301
|
+
interface CuraSwitch {
|
|
1302
|
+
/**
|
|
1303
|
+
* Background style of the switch. Can be 'dark' or 'light'.
|
|
1304
|
+
*/
|
|
1305
|
+
"background"?: 'dark' | 'light';
|
|
1306
|
+
/**
|
|
1307
|
+
* Indicates whether the switch is checked or not.
|
|
1308
|
+
*/
|
|
1309
|
+
"checked"?: boolean;
|
|
1310
|
+
/**
|
|
1311
|
+
* Accent color of the switch.
|
|
1312
|
+
*/
|
|
1313
|
+
"color"?: string;
|
|
1314
|
+
/**
|
|
1315
|
+
* Indicates whether the switch is disabled or not.
|
|
1316
|
+
*/
|
|
1317
|
+
"disabled"?: boolean;
|
|
1318
|
+
/**
|
|
1319
|
+
* The label text to display next to the switch.
|
|
1320
|
+
*/
|
|
1321
|
+
"label"?: string;
|
|
1322
|
+
"onOnchange"?: (event: CuraSwitchCustomEvent<{ checked: boolean }>) => void;
|
|
1323
|
+
/**
|
|
1324
|
+
* Tab index for the switch element. Reflects as an HTML attribute.
|
|
1325
|
+
*/
|
|
1326
|
+
"ontabindex"?: number;
|
|
1327
|
+
/**
|
|
1328
|
+
* Position of the label relative to the switch. Can be 'left' or 'right'.
|
|
1329
|
+
*/
|
|
1330
|
+
"position"?: "left" | "right";
|
|
1331
|
+
/**
|
|
1332
|
+
* Size of the switch. Can be 'small', 'medium', or 'large'.
|
|
1333
|
+
*/
|
|
1334
|
+
"size"?: 'small' | 'medium' | 'large';
|
|
1335
|
+
}
|
|
655
1336
|
interface IntrinsicElements {
|
|
656
1337
|
"cura-accordion": CuraAccordion;
|
|
657
1338
|
"cura-accordion-item": CuraAccordionItem;
|
|
1339
|
+
"cura-alert": CuraAlert;
|
|
658
1340
|
"cura-button": CuraButton;
|
|
659
1341
|
"cura-button-outline": CuraButtonOutline;
|
|
1342
|
+
"cura-button-select": CuraButtonSelect;
|
|
660
1343
|
"cura-button-transparent": CuraButtonTransparent;
|
|
1344
|
+
"cura-checkbox": CuraCheckbox;
|
|
661
1345
|
"cura-display": CuraDisplay;
|
|
662
1346
|
"cura-heading": CuraHeading;
|
|
663
1347
|
"cura-icon": CuraIcon;
|
|
664
1348
|
"cura-icons-view": CuraIconsView;
|
|
1349
|
+
"cura-input-text": CuraInputText;
|
|
1350
|
+
"cura-label": CuraLabel;
|
|
665
1351
|
"cura-loader-circle": CuraLoaderCircle;
|
|
666
1352
|
"cura-page-template": CuraPageTemplate;
|
|
667
1353
|
"cura-paragraph": CuraParagraph;
|
|
1354
|
+
"cura-radio": CuraRadio;
|
|
1355
|
+
"cura-switch": CuraSwitch;
|
|
668
1356
|
}
|
|
669
1357
|
}
|
|
670
1358
|
export { LocalJSX as JSX };
|
|
@@ -673,16 +1361,23 @@ declare module "@stencil/core" {
|
|
|
673
1361
|
interface IntrinsicElements {
|
|
674
1362
|
"cura-accordion": LocalJSX.CuraAccordion & JSXBase.HTMLAttributes<HTMLCuraAccordionElement>;
|
|
675
1363
|
"cura-accordion-item": LocalJSX.CuraAccordionItem & JSXBase.HTMLAttributes<HTMLCuraAccordionItemElement>;
|
|
1364
|
+
"cura-alert": LocalJSX.CuraAlert & JSXBase.HTMLAttributes<HTMLCuraAlertElement>;
|
|
676
1365
|
"cura-button": LocalJSX.CuraButton & JSXBase.HTMLAttributes<HTMLCuraButtonElement>;
|
|
677
1366
|
"cura-button-outline": LocalJSX.CuraButtonOutline & JSXBase.HTMLAttributes<HTMLCuraButtonOutlineElement>;
|
|
1367
|
+
"cura-button-select": LocalJSX.CuraButtonSelect & JSXBase.HTMLAttributes<HTMLCuraButtonSelectElement>;
|
|
678
1368
|
"cura-button-transparent": LocalJSX.CuraButtonTransparent & JSXBase.HTMLAttributes<HTMLCuraButtonTransparentElement>;
|
|
1369
|
+
"cura-checkbox": LocalJSX.CuraCheckbox & JSXBase.HTMLAttributes<HTMLCuraCheckboxElement>;
|
|
679
1370
|
"cura-display": LocalJSX.CuraDisplay & JSXBase.HTMLAttributes<HTMLCuraDisplayElement>;
|
|
680
1371
|
"cura-heading": LocalJSX.CuraHeading & JSXBase.HTMLAttributes<HTMLCuraHeadingElement>;
|
|
681
1372
|
"cura-icon": LocalJSX.CuraIcon & JSXBase.HTMLAttributes<HTMLCuraIconElement>;
|
|
682
1373
|
"cura-icons-view": LocalJSX.CuraIconsView & JSXBase.HTMLAttributes<HTMLCuraIconsViewElement>;
|
|
1374
|
+
"cura-input-text": LocalJSX.CuraInputText & JSXBase.HTMLAttributes<HTMLCuraInputTextElement>;
|
|
1375
|
+
"cura-label": LocalJSX.CuraLabel & JSXBase.HTMLAttributes<HTMLCuraLabelElement>;
|
|
683
1376
|
"cura-loader-circle": LocalJSX.CuraLoaderCircle & JSXBase.HTMLAttributes<HTMLCuraLoaderCircleElement>;
|
|
684
1377
|
"cura-page-template": LocalJSX.CuraPageTemplate & JSXBase.HTMLAttributes<HTMLCuraPageTemplateElement>;
|
|
685
1378
|
"cura-paragraph": LocalJSX.CuraParagraph & JSXBase.HTMLAttributes<HTMLCuraParagraphElement>;
|
|
1379
|
+
"cura-radio": LocalJSX.CuraRadio & JSXBase.HTMLAttributes<HTMLCuraRadioElement>;
|
|
1380
|
+
"cura-switch": LocalJSX.CuraSwitch & JSXBase.HTMLAttributes<HTMLCuraSwitchElement>;
|
|
686
1381
|
}
|
|
687
1382
|
}
|
|
688
1383
|
}
|