@rededor/cura 0.5.2 → 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/cura-accordion_8.cjs.entry.js +10 -17
- package/dist/cjs/cura-accordion_8.cjs.entry.js.map +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +13 -6
- package/dist/cjs/cura-icons-view.cjs.entry.js.map +1 -1
- 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 +1 -1
- 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 +2 -2
- package/dist/cjs/{index-404d93e9.js → index-7616f620.js} +35 -1
- package/dist/cjs/index-7616f620.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- 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 +6 -0
- 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/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-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/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-forms.definitions.js +18 -0
- package/dist/components/cura-forms.definitions.js.map +1 -0
- package/dist/components/cura-heading.js +1 -100
- 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.js +1 -84
- package/dist/components/cura-label.js.map +1 -1
- package/dist/components/cura-label2.js +88 -0
- package/dist/components/cura-label2.js.map +1 -0
- package/dist/components/cura-paragraph.js +1 -82
- 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 +12 -0
- 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/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-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-0c79c54e.entry.js → p-72a9ed55.entry.js} +2 -2
- package/dist/cura/{p-7c8f3c77.system.entry.js → p-75b2e4d1.system.entry.js} +2 -2
- package/dist/cura/{p-03047b3e.entry.js → p-880917c1.entry.js} +2 -2
- package/dist/cura/{p-d47b9cfe.system.entry.js → p-9471c93e.system.entry.js} +2 -2
- package/dist/cura/p-98014544.entry.js +2 -0
- package/dist/cura/p-98014544.entry.js.map +1 -0
- package/dist/cura/{p-223924fb.system.entry.js → p-98352c92.system.entry.js} +2 -2
- 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-91b0f78e.entry.js → p-ad194144.entry.js} +2 -2
- 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-ca054b07.system.entry.js → p-e5e259fd.system.entry.js} +2 -2
- package/dist/cura/{p-49813052.entry.js → p-edeffbfc.entry.js} +2 -2
- 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-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/cura-accordion_8.entry.js +10 -17
- package/dist/esm/cura-accordion_8.entry.js.map +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +13 -6
- package/dist/esm/cura-icons-view.entry.js.map +1 -1
- 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 +1 -1
- 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 +3 -3
- 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/loader.js +3 -3
- package/dist/esm-es5/cura-accordion_8.entry.js +1 -1
- package/dist/esm-es5/cura-accordion_8.entry.js.map +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/esm-es5/cura-icons-view.entry.js.map +1 -1
- 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 +1 -1
- 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/loader.js +1 -1
- package/dist/esm-es5/loader.js.map +1 -1
- 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-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.d.ts +602 -0
- package/package.json +5 -4
- package/dist/cjs/index-404d93e9.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-4bdbcdf0.system.entry.js +0 -2
- package/dist/cura/p-4bdbcdf0.system.entry.js.map +0 -1
- package/dist/cura/p-8b18b5f7.system.js +0 -2
- package/dist/cura/p-8b18b5f7.system.js.map +0 -1
- package/dist/cura/p-a0395f90.entry.js +0 -2
- package/dist/cura/p-a0395f90.entry.js.map +0 -1
- package/dist/cura/p-a7ef255f.entry.js +0 -2
- package/dist/cura/p-a7ef255f.entry.js.map +0 -1
- package/dist/cura/p-c0c00396.system.js +0 -3
- package/dist/cura/p-fc77814b.system.entry.js +0 -2
- package/dist/cura/p-fc77814b.system.entry.js.map +0 -1
- package/dist/esm/index-d99da69e.js.map +0 -1
- package/dist/esm-es5/index-d99da69e.js +0 -3
- /package/dist/cura/{p-0c79c54e.entry.js.map → p-72a9ed55.entry.js.map} +0 -0
- /package/dist/cura/{p-7c8f3c77.system.entry.js.map → p-75b2e4d1.system.entry.js.map} +0 -0
- /package/dist/cura/{p-03047b3e.entry.js.map → p-880917c1.entry.js.map} +0 -0
- /package/dist/cura/{p-d47b9cfe.system.entry.js.map → p-9471c93e.system.entry.js.map} +0 -0
- /package/dist/cura/{p-223924fb.system.entry.js.map → p-98352c92.system.entry.js.map} +0 -0
- /package/dist/cura/{p-91b0f78e.entry.js.map → p-ad194144.entry.js.map} +0 -0
- /package/dist/cura/{p-ca054b07.system.entry.js.map → p-e5e259fd.system.entry.js.map} +0 -0
- /package/dist/cura/{p-49813052.entry.js.map → p-edeffbfc.entry.js.map} +0 -0
|
@@ -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,6 +244,64 @@ 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.
|
|
@@ -265,6 +363,83 @@ export namespace Components {
|
|
|
265
363
|
}
|
|
266
364
|
interface CuraIconsView {
|
|
267
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
|
+
}
|
|
268
443
|
interface CuraLabel {
|
|
269
444
|
/**
|
|
270
445
|
* Text color. Values: Color from design system scheme. Default to the font color from the theme.
|
|
@@ -326,6 +501,114 @@ export namespace Components {
|
|
|
326
501
|
*/
|
|
327
502
|
"spotColor": string;
|
|
328
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;
|
|
329
612
|
}
|
|
330
613
|
declare global {
|
|
331
614
|
interface HTMLCuraAccordionElement extends Components.CuraAccordion, HTMLStencilElement {
|
|
@@ -340,6 +623,12 @@ declare global {
|
|
|
340
623
|
prototype: HTMLCuraAccordionItemElement;
|
|
341
624
|
new (): HTMLCuraAccordionItemElement;
|
|
342
625
|
};
|
|
626
|
+
interface HTMLCuraAlertElement extends Components.CuraAlert, HTMLStencilElement {
|
|
627
|
+
}
|
|
628
|
+
var HTMLCuraAlertElement: {
|
|
629
|
+
prototype: HTMLCuraAlertElement;
|
|
630
|
+
new (): HTMLCuraAlertElement;
|
|
631
|
+
};
|
|
343
632
|
interface HTMLCuraButtonElement extends Components.CuraButton, HTMLStencilElement {
|
|
344
633
|
}
|
|
345
634
|
var HTMLCuraButtonElement: {
|
|
@@ -352,12 +641,24 @@ declare global {
|
|
|
352
641
|
prototype: HTMLCuraButtonOutlineElement;
|
|
353
642
|
new (): HTMLCuraButtonOutlineElement;
|
|
354
643
|
};
|
|
644
|
+
interface HTMLCuraButtonSelectElement extends Components.CuraButtonSelect, HTMLStencilElement {
|
|
645
|
+
}
|
|
646
|
+
var HTMLCuraButtonSelectElement: {
|
|
647
|
+
prototype: HTMLCuraButtonSelectElement;
|
|
648
|
+
new (): HTMLCuraButtonSelectElement;
|
|
649
|
+
};
|
|
355
650
|
interface HTMLCuraButtonTransparentElement extends Components.CuraButtonTransparent, HTMLStencilElement {
|
|
356
651
|
}
|
|
357
652
|
var HTMLCuraButtonTransparentElement: {
|
|
358
653
|
prototype: HTMLCuraButtonTransparentElement;
|
|
359
654
|
new (): HTMLCuraButtonTransparentElement;
|
|
360
655
|
};
|
|
656
|
+
interface HTMLCuraCheckboxElement extends Components.CuraCheckbox, HTMLStencilElement {
|
|
657
|
+
}
|
|
658
|
+
var HTMLCuraCheckboxElement: {
|
|
659
|
+
prototype: HTMLCuraCheckboxElement;
|
|
660
|
+
new (): HTMLCuraCheckboxElement;
|
|
661
|
+
};
|
|
361
662
|
interface HTMLCuraDisplayElement extends Components.CuraDisplay, HTMLStencilElement {
|
|
362
663
|
}
|
|
363
664
|
var HTMLCuraDisplayElement: {
|
|
@@ -382,6 +683,12 @@ declare global {
|
|
|
382
683
|
prototype: HTMLCuraIconsViewElement;
|
|
383
684
|
new (): HTMLCuraIconsViewElement;
|
|
384
685
|
};
|
|
686
|
+
interface HTMLCuraInputTextElement extends Components.CuraInputText, HTMLStencilElement {
|
|
687
|
+
}
|
|
688
|
+
var HTMLCuraInputTextElement: {
|
|
689
|
+
prototype: HTMLCuraInputTextElement;
|
|
690
|
+
new (): HTMLCuraInputTextElement;
|
|
691
|
+
};
|
|
385
692
|
interface HTMLCuraLabelElement extends Components.CuraLabel, HTMLStencilElement {
|
|
386
693
|
}
|
|
387
694
|
var HTMLCuraLabelElement: {
|
|
@@ -406,20 +713,38 @@ declare global {
|
|
|
406
713
|
prototype: HTMLCuraParagraphElement;
|
|
407
714
|
new (): HTMLCuraParagraphElement;
|
|
408
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
|
+
};
|
|
409
728
|
interface HTMLElementTagNameMap {
|
|
410
729
|
"cura-accordion": HTMLCuraAccordionElement;
|
|
411
730
|
"cura-accordion-item": HTMLCuraAccordionItemElement;
|
|
731
|
+
"cura-alert": HTMLCuraAlertElement;
|
|
412
732
|
"cura-button": HTMLCuraButtonElement;
|
|
413
733
|
"cura-button-outline": HTMLCuraButtonOutlineElement;
|
|
734
|
+
"cura-button-select": HTMLCuraButtonSelectElement;
|
|
414
735
|
"cura-button-transparent": HTMLCuraButtonTransparentElement;
|
|
736
|
+
"cura-checkbox": HTMLCuraCheckboxElement;
|
|
415
737
|
"cura-display": HTMLCuraDisplayElement;
|
|
416
738
|
"cura-heading": HTMLCuraHeadingElement;
|
|
417
739
|
"cura-icon": HTMLCuraIconElement;
|
|
418
740
|
"cura-icons-view": HTMLCuraIconsViewElement;
|
|
741
|
+
"cura-input-text": HTMLCuraInputTextElement;
|
|
419
742
|
"cura-label": HTMLCuraLabelElement;
|
|
420
743
|
"cura-loader-circle": HTMLCuraLoaderCircleElement;
|
|
421
744
|
"cura-page-template": HTMLCuraPageTemplateElement;
|
|
422
745
|
"cura-paragraph": HTMLCuraParagraphElement;
|
|
746
|
+
"cura-radio": HTMLCuraRadioElement;
|
|
747
|
+
"cura-switch": HTMLCuraSwitchElement;
|
|
423
748
|
}
|
|
424
749
|
}
|
|
425
750
|
declare namespace LocalJSX {
|
|
@@ -471,6 +796,13 @@ declare namespace LocalJSX {
|
|
|
471
796
|
"openIcon"?: string;
|
|
472
797
|
"opened"?: boolean;
|
|
473
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
|
+
}
|
|
474
806
|
interface CuraButton {
|
|
475
807
|
/**
|
|
476
808
|
* Color base from color scheme. Default: accent.
|
|
@@ -571,6 +903,37 @@ declare namespace LocalJSX {
|
|
|
571
903
|
*/
|
|
572
904
|
"textAlign"?: 'left' | 'center' | 'right';
|
|
573
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
|
+
}
|
|
574
937
|
interface CuraButtonTransparent {
|
|
575
938
|
/**
|
|
576
939
|
* Color base from color scheme. Default: accent.
|
|
@@ -621,6 +984,65 @@ declare namespace LocalJSX {
|
|
|
621
984
|
*/
|
|
622
985
|
"textAlign"?: 'left' | 'center' | 'right';
|
|
623
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
|
+
}
|
|
624
1046
|
interface CuraDisplay {
|
|
625
1047
|
/**
|
|
626
1048
|
* Text color. Values: Color from design system scheme. Default to the font color from the theme.
|
|
@@ -682,6 +1104,88 @@ declare namespace LocalJSX {
|
|
|
682
1104
|
}
|
|
683
1105
|
interface CuraIconsView {
|
|
684
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
|
+
}
|
|
685
1189
|
interface CuraLabel {
|
|
686
1190
|
/**
|
|
687
1191
|
* Text color. Values: Color from design system scheme. Default to the font color from the theme.
|
|
@@ -743,20 +1247,112 @@ declare namespace LocalJSX {
|
|
|
743
1247
|
*/
|
|
744
1248
|
"spotColor"?: string;
|
|
745
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
|
+
}
|
|
746
1336
|
interface IntrinsicElements {
|
|
747
1337
|
"cura-accordion": CuraAccordion;
|
|
748
1338
|
"cura-accordion-item": CuraAccordionItem;
|
|
1339
|
+
"cura-alert": CuraAlert;
|
|
749
1340
|
"cura-button": CuraButton;
|
|
750
1341
|
"cura-button-outline": CuraButtonOutline;
|
|
1342
|
+
"cura-button-select": CuraButtonSelect;
|
|
751
1343
|
"cura-button-transparent": CuraButtonTransparent;
|
|
1344
|
+
"cura-checkbox": CuraCheckbox;
|
|
752
1345
|
"cura-display": CuraDisplay;
|
|
753
1346
|
"cura-heading": CuraHeading;
|
|
754
1347
|
"cura-icon": CuraIcon;
|
|
755
1348
|
"cura-icons-view": CuraIconsView;
|
|
1349
|
+
"cura-input-text": CuraInputText;
|
|
756
1350
|
"cura-label": CuraLabel;
|
|
757
1351
|
"cura-loader-circle": CuraLoaderCircle;
|
|
758
1352
|
"cura-page-template": CuraPageTemplate;
|
|
759
1353
|
"cura-paragraph": CuraParagraph;
|
|
1354
|
+
"cura-radio": CuraRadio;
|
|
1355
|
+
"cura-switch": CuraSwitch;
|
|
760
1356
|
}
|
|
761
1357
|
}
|
|
762
1358
|
export { LocalJSX as JSX };
|
|
@@ -765,17 +1361,23 @@ declare module "@stencil/core" {
|
|
|
765
1361
|
interface IntrinsicElements {
|
|
766
1362
|
"cura-accordion": LocalJSX.CuraAccordion & JSXBase.HTMLAttributes<HTMLCuraAccordionElement>;
|
|
767
1363
|
"cura-accordion-item": LocalJSX.CuraAccordionItem & JSXBase.HTMLAttributes<HTMLCuraAccordionItemElement>;
|
|
1364
|
+
"cura-alert": LocalJSX.CuraAlert & JSXBase.HTMLAttributes<HTMLCuraAlertElement>;
|
|
768
1365
|
"cura-button": LocalJSX.CuraButton & JSXBase.HTMLAttributes<HTMLCuraButtonElement>;
|
|
769
1366
|
"cura-button-outline": LocalJSX.CuraButtonOutline & JSXBase.HTMLAttributes<HTMLCuraButtonOutlineElement>;
|
|
1367
|
+
"cura-button-select": LocalJSX.CuraButtonSelect & JSXBase.HTMLAttributes<HTMLCuraButtonSelectElement>;
|
|
770
1368
|
"cura-button-transparent": LocalJSX.CuraButtonTransparent & JSXBase.HTMLAttributes<HTMLCuraButtonTransparentElement>;
|
|
1369
|
+
"cura-checkbox": LocalJSX.CuraCheckbox & JSXBase.HTMLAttributes<HTMLCuraCheckboxElement>;
|
|
771
1370
|
"cura-display": LocalJSX.CuraDisplay & JSXBase.HTMLAttributes<HTMLCuraDisplayElement>;
|
|
772
1371
|
"cura-heading": LocalJSX.CuraHeading & JSXBase.HTMLAttributes<HTMLCuraHeadingElement>;
|
|
773
1372
|
"cura-icon": LocalJSX.CuraIcon & JSXBase.HTMLAttributes<HTMLCuraIconElement>;
|
|
774
1373
|
"cura-icons-view": LocalJSX.CuraIconsView & JSXBase.HTMLAttributes<HTMLCuraIconsViewElement>;
|
|
1374
|
+
"cura-input-text": LocalJSX.CuraInputText & JSXBase.HTMLAttributes<HTMLCuraInputTextElement>;
|
|
775
1375
|
"cura-label": LocalJSX.CuraLabel & JSXBase.HTMLAttributes<HTMLCuraLabelElement>;
|
|
776
1376
|
"cura-loader-circle": LocalJSX.CuraLoaderCircle & JSXBase.HTMLAttributes<HTMLCuraLoaderCircleElement>;
|
|
777
1377
|
"cura-page-template": LocalJSX.CuraPageTemplate & JSXBase.HTMLAttributes<HTMLCuraPageTemplateElement>;
|
|
778
1378
|
"cura-paragraph": LocalJSX.CuraParagraph & JSXBase.HTMLAttributes<HTMLCuraParagraphElement>;
|
|
1379
|
+
"cura-radio": LocalJSX.CuraRadio & JSXBase.HTMLAttributes<HTMLCuraRadioElement>;
|
|
1380
|
+
"cura-switch": LocalJSX.CuraSwitch & JSXBase.HTMLAttributes<HTMLCuraSwitchElement>;
|
|
779
1381
|
}
|
|
780
1382
|
}
|
|
781
1383
|
}
|