@rededor/cura 1.1.0 → 1.2.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/assets/cura-assets.zip +0 -0
- package/dist/cjs/app-globals-4d07f363.js.map +1 -1
- package/dist/cjs/cura-accordion_12.cjs.entry.js +21 -15
- package/dist/cjs/cura-accordion_12.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-alert.cjs.entry.js +2 -2
- package/dist/cjs/cura-avatar.cjs.entry.js +2 -2
- package/dist/cjs/cura-badge-distance.cjs.entry.js +1 -1
- package/dist/cjs/cura-badge-number.cjs.entry.js +29 -0
- package/dist/cjs/cura-badge-number.cjs.entry.js.map +1 -0
- package/dist/cjs/cura-button-outline.cjs.entry.js +2 -2
- package/dist/cjs/cura-button-select.cjs.entry.js +69 -58
- package/dist/cjs/cura-button-select.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-button-transparent.cjs.entry.js +2 -2
- package/dist/cjs/cura-calendar.cjs.entry.js +120 -234
- package/dist/cjs/cura-calendar.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-card.cjs.entry.js +2 -2
- package/dist/cjs/cura-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/cura-display.cjs.entry.js +2 -2
- package/dist/cjs/cura-dropdown-search-option-title.cjs.entry.js +2 -2
- package/dist/cjs/cura-dropdown-search-option.cjs.entry.js +3 -3
- package/dist/cjs/cura-dropdown-search.cjs.entry.js +30 -4
- package/dist/cjs/cura-dropdown-search.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-icons-view.cjs.entry.js +4 -4
- package/dist/cjs/cura-input-date.cjs.entry.js +188 -0
- package/dist/cjs/cura-input-date.cjs.entry.js.map +1 -0
- package/dist/cjs/cura-loader-bar.cjs.entry.js +2 -2
- package/dist/cjs/cura-radio.cjs.entry.js +2 -2
- package/dist/cjs/cura-switch.cjs.entry.js +2 -2
- package/dist/cjs/cura-toast.cjs.entry.js +2 -2
- package/dist/cjs/cura.cjs.js +2 -2
- package/dist/cjs/index-6dc29195.js +126 -0
- package/dist/cjs/index-6dc29195.js.map +1 -0
- package/dist/cjs/{index-98e7ba54.js → index-e6d728ec.js} +70 -3
- package/dist/{esm/index-1ad98520.js.map → cjs/index-e6d728ec.js.map} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/badges/cura-badge-number/cura-badge-number.css +30 -0
- package/dist/collection/components/badges/cura-badge-number/cura-badge-number.js +66 -0
- package/dist/collection/components/badges/cura-badge-number/cura-badge-number.js.map +1 -0
- package/dist/collection/components/badges/cura-badge-number/cura-badge-number.stories.js +56 -0
- package/dist/collection/components/badges/cura-badge-number/cura-badge-number.stories.js.map +1 -0
- package/dist/collection/components/buttons/cura-button/cura-button.js +1 -1
- package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.js +1 -1
- package/dist/collection/components/buttons/cura-button-select/cura-button-select.css +49 -21
- package/dist/collection/components/buttons/cura-button-select/cura-button-select.js +110 -113
- package/dist/collection/components/buttons/cura-button-select/cura-button-select.js.map +1 -1
- package/dist/collection/components/buttons/cura-button-select/cura-button-select.stories.js +133 -0
- package/dist/collection/components/buttons/cura-button-select/cura-button-select.stories.js.map +1 -0
- package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.js +1 -1
- package/dist/collection/components/cura-alert/cura-alert.js +1 -1
- package/dist/collection/components/cura-avatar/cura-avatar.js +1 -1
- package/dist/collection/components/cura-calendar/cura-calendar.css +2 -0
- package/dist/collection/components/cura-calendar/cura-calendar.js +79 -47
- package/dist/collection/components/cura-calendar/cura-calendar.js.map +1 -1
- package/dist/collection/components/cura-card/cura-card.js +1 -1
- package/dist/collection/components/cura-icon/cura-icon.js +1 -1
- package/dist/collection/components/cura-icons-view/cura-icons-view.js +3 -3
- package/dist/collection/components/cura-page-template/cura-page-template.js +1 -1
- package/dist/collection/components/cura-toast/cura-toast.js +1 -1
- package/dist/collection/components/forms/cura-checkbox/cura-checkbox.js +1 -1
- package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.js +2 -2
- package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search-option-title/cura-dropdown-search-option-title.js +1 -1
- package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search.css +1 -1
- package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search.js +28 -2
- package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search.js.map +1 -1
- package/dist/collection/components/forms/cura-input-date/cura-input-date.css +79 -0
- package/dist/collection/components/forms/cura-input-date/cura-input-date.js +424 -0
- package/dist/collection/components/forms/cura-input-date/cura-input-date.js.map +1 -0
- package/dist/collection/components/forms/cura-input-date/cura-input-date.stories.js +138 -0
- package/dist/collection/components/forms/cura-input-date/cura-input-date.stories.js.map +1 -0
- package/dist/collection/components/forms/cura-input-text/cura-input-text.css +5 -2
- package/dist/collection/components/forms/cura-input-text/cura-input-text.js +41 -2
- package/dist/collection/components/forms/cura-input-text/cura-input-text.js.map +1 -1
- package/dist/collection/components/forms/cura-input-text/cura-input-text.stories.js +73 -21
- package/dist/collection/components/forms/cura-input-text/cura-input-text.stories.js.map +1 -1
- package/dist/collection/components/forms/cura-input-text/mask-presets/input-mask-presets.js +3 -0
- package/dist/collection/components/forms/cura-input-text/mask-presets/input-mask-presets.js.map +1 -1
- package/dist/collection/components/forms/cura-label/cura-label.js +1 -1
- package/dist/collection/components/forms/cura-radio/cura-radio.js +1 -1
- package/dist/collection/components/forms/cura-select/cura-select.css +5 -2
- package/dist/collection/components/forms/cura-select/cura-select.js +3 -3
- package/dist/collection/components/forms/cura-select-options/cura-select-option.js +1 -1
- package/dist/collection/components/forms/cura-switch/cura-switch.js +1 -1
- package/dist/collection/components/loaders/cura-loader-bar/cura-loader-bar.js +1 -1
- package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.js +1 -1
- package/dist/collection/components/text/cura-display/cura-display.js +1 -1
- package/dist/collection/components/text/cura-heading/cura-heading.js +1 -1
- package/dist/collection/components/text/cura-paragraph/cura-paragraph.js +1 -1
- package/dist/components/cura-alert.js +1 -1
- package/dist/components/cura-avatar.js +1 -1
- package/dist/components/cura-badge-number.d.ts +11 -0
- package/dist/components/cura-badge-number.js +8 -0
- package/dist/components/cura-badge-number.js.map +1 -0
- package/dist/components/cura-badge-number2.js +49 -0
- package/dist/components/cura-badge-number2.js.map +1 -0
- package/dist/components/cura-button-outline.js +1 -1
- package/dist/components/cura-button-select.js +81 -65
- package/dist/components/cura-button-select.js.map +1 -1
- package/dist/components/cura-button-transparent2.js +1 -1
- package/dist/components/cura-button.js +1 -1
- package/dist/components/cura-calendar.js +1 -4073
- package/dist/components/cura-calendar.js.map +1 -1
- package/dist/components/cura-calendar2.js +4082 -0
- package/dist/components/cura-calendar2.js.map +1 -0
- package/dist/components/cura-card.js +1 -1
- package/dist/components/cura-checkbox.js +1 -1
- package/dist/components/cura-display.js +1 -1
- package/dist/components/cura-dropdown-search-option-title.js +1 -1
- package/dist/components/cura-dropdown-search-option.js +2 -2
- package/dist/components/cura-dropdown-search.js +29 -3
- package/dist/components/cura-dropdown-search.js.map +1 -1
- package/dist/components/cura-heading2.js +1 -1
- package/dist/components/cura-icon2.js +1 -1
- package/dist/components/cura-icons-view.js +3 -3
- package/dist/components/cura-input-date.d.ts +11 -0
- package/dist/components/cura-input-date.js +270 -0
- package/dist/components/cura-input-date.js.map +1 -0
- package/dist/components/cura-input-text2.js +10 -2
- package/dist/components/cura-input-text2.js.map +1 -1
- package/dist/components/cura-label2.js +1 -1
- package/dist/components/cura-loader-bar2.js +1 -1
- package/dist/components/cura-loader-circle2.js +1 -1
- package/dist/components/cura-page-template.js +1 -1
- package/dist/components/cura-paragraph2.js +1 -1
- package/dist/components/cura-radio.js +1 -1
- package/dist/components/cura-select-option2.js +1 -1
- package/dist/components/cura-select2.js +4 -4
- package/dist/components/cura-select2.js.map +1 -1
- package/dist/components/cura-switch.js +1 -1
- package/dist/components/cura-toast.js +1 -1
- package/dist/components/index.js +4 -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/p-0b7a7306.js.map +1 -1
- package/dist/cura/{p-0d435e42.entry.js → p-116a1cd6.entry.js} +2 -2
- package/dist/cura/p-272c784a.js +2 -0
- package/dist/cura/p-272c784a.js.map +1 -0
- package/dist/cura/{p-4c7a2419.entry.js → p-2d267d23.entry.js} +2 -2
- package/dist/cura/{p-9b658260.entry.js → p-33772510.entry.js} +2 -2
- package/dist/cura/{p-afd2c148.entry.js → p-41c3d47d.entry.js} +2 -2
- package/dist/cura/{p-fbf20e5a.entry.js → p-44e3325a.entry.js} +2 -2
- package/dist/cura/p-4e14c01c.entry.js +2 -0
- package/dist/cura/p-563ba0cd.entry.js +2 -0
- package/dist/cura/p-563ba0cd.entry.js.map +1 -0
- package/dist/cura/{p-57b8b468.entry.js → p-8f3db0fe.entry.js} +2 -2
- package/dist/cura/{p-a00d2c68.entry.js → p-907b3d12.entry.js} +2 -2
- package/dist/cura/p-a2ae6bd2.entry.js +2 -0
- package/dist/cura/p-a2ae6bd2.entry.js.map +1 -0
- package/dist/cura/{p-6682619b.entry.js → p-b2d5db22.entry.js} +2 -2
- package/dist/cura/p-b43b69f3.entry.js +2 -0
- package/dist/cura/p-b43b69f3.entry.js.map +1 -0
- package/dist/cura/{p-5ac9d510.entry.js → p-be10b681.entry.js} +2 -2
- package/dist/cura/p-be10b681.entry.js.map +1 -0
- package/dist/cura/{p-a5cf0fd6.entry.js → p-c6508bd7.entry.js} +2 -2
- package/dist/cura/{p-2203e829.entry.js → p-dcd2e5bb.entry.js} +2 -2
- package/dist/cura/{p-84d8c67d.entry.js → p-e5023e34.entry.js} +2 -2
- package/dist/cura/p-e8bc6381.entry.js +2 -0
- package/dist/cura/p-e8bc6381.entry.js.map +1 -0
- package/dist/cura/p-ed97cf3c.entry.js +2 -0
- package/dist/cura/p-ed97cf3c.entry.js.map +1 -0
- package/dist/cura/{p-ad8a7e0f.entry.js → p-fcbf4311.entry.js} +2 -2
- package/dist/cura/{p-66c5cf5f.entry.js → p-fd083399.entry.js} +2 -2
- package/dist/cura/p-fd5ed6b0.js +3 -0
- package/dist/cura/p-fd5ed6b0.js.map +1 -0
- package/dist/cura/{p-f9433d24.entry.js → p-fdce91a7.entry.js} +2 -2
- package/dist/esm/app-globals-6ca7103d.js.map +1 -1
- package/dist/esm/cura-accordion_12.entry.js +21 -15
- package/dist/esm/cura-accordion_12.entry.js.map +1 -1
- package/dist/esm/cura-alert.entry.js +2 -2
- package/dist/esm/cura-avatar.entry.js +2 -2
- package/dist/esm/cura-badge-distance.entry.js +1 -1
- package/dist/esm/cura-badge-number.entry.js +25 -0
- package/dist/esm/cura-badge-number.entry.js.map +1 -0
- package/dist/esm/cura-button-outline.entry.js +2 -2
- package/dist/esm/cura-button-select.entry.js +69 -58
- package/dist/esm/cura-button-select.entry.js.map +1 -1
- package/dist/esm/cura-button-transparent.entry.js +2 -2
- package/dist/esm/cura-calendar.entry.js +51 -165
- package/dist/esm/cura-calendar.entry.js.map +1 -1
- package/dist/esm/cura-card.entry.js +2 -2
- package/dist/esm/cura-checkbox.entry.js +2 -2
- package/dist/esm/cura-display.entry.js +2 -2
- package/dist/esm/cura-dropdown-search-option-title.entry.js +2 -2
- package/dist/esm/cura-dropdown-search-option.entry.js +3 -3
- package/dist/esm/cura-dropdown-search.entry.js +30 -4
- package/dist/esm/cura-dropdown-search.entry.js.map +1 -1
- package/dist/esm/cura-icons-view.entry.js +4 -4
- package/dist/esm/cura-input-date.entry.js +184 -0
- package/dist/esm/cura-input-date.entry.js.map +1 -0
- package/dist/esm/cura-loader-bar.entry.js +2 -2
- package/dist/esm/cura-radio.entry.js +2 -2
- package/dist/esm/cura-switch.entry.js +2 -2
- package/dist/esm/cura-toast.entry.js +2 -2
- package/dist/esm/cura.js +3 -3
- package/dist/esm/{index-1ad98520.js → index-747aad85.js} +70 -3
- package/dist/esm/index-747aad85.js.map +1 -0
- package/dist/esm/index-fbee309a.js +120 -0
- package/dist/esm/index-fbee309a.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/badges/cura-badge-number/cura-badge-number.d.ts +8 -0
- package/dist/types/components/badges/cura-badge-number/cura-badge-number.stories.d.ts +39 -0
- package/dist/types/components/buttons/cura-button-select/cura-button-select.d.ts +12 -34
- package/dist/types/components/buttons/cura-button-select/cura-button-select.stories.d.ts +105 -0
- package/dist/types/components/cura-calendar/cura-calendar.d.ts +50 -42
- package/dist/types/components/forms/cura-dropdown-search/cura-dropdown-search.d.ts +2 -0
- package/dist/types/components/forms/cura-input-date/cura-input-date.d.ts +92 -0
- package/dist/types/components/forms/cura-input-date/cura-input-date.stories.d.ts +125 -0
- package/dist/types/components/forms/cura-input-text/cura-input-text.d.ts +6 -0
- package/dist/types/components/forms/cura-input-text/cura-input-text.stories.d.ts +15 -0
- package/dist/types/components.d.ts +158 -48
- package/package.json +2 -2
- package/dist/cjs/index-98e7ba54.js.map +0 -1
- package/dist/cura/p-312791fb.js +0 -3
- package/dist/cura/p-312791fb.js.map +0 -1
- package/dist/cura/p-42dfa3a7.entry.js +0 -2
- package/dist/cura/p-42dfa3a7.entry.js.map +0 -1
- package/dist/cura/p-5ac9d510.entry.js.map +0 -1
- package/dist/cura/p-a9cda3b1.entry.js +0 -2
- package/dist/cura/p-a9cda3b1.entry.js.map +0 -1
- package/dist/cura/p-df5c3a86.entry.js +0 -2
- package/dist/cura/p-df5c3a86.entry.js.map +0 -1
- package/dist/cura/p-dfc65f66.entry.js +0 -2
- /package/dist/cura/{p-0d435e42.entry.js.map → p-116a1cd6.entry.js.map} +0 -0
- /package/dist/cura/{p-4c7a2419.entry.js.map → p-2d267d23.entry.js.map} +0 -0
- /package/dist/cura/{p-9b658260.entry.js.map → p-33772510.entry.js.map} +0 -0
- /package/dist/cura/{p-afd2c148.entry.js.map → p-41c3d47d.entry.js.map} +0 -0
- /package/dist/cura/{p-fbf20e5a.entry.js.map → p-44e3325a.entry.js.map} +0 -0
- /package/dist/cura/{p-dfc65f66.entry.js.map → p-4e14c01c.entry.js.map} +0 -0
- /package/dist/cura/{p-57b8b468.entry.js.map → p-8f3db0fe.entry.js.map} +0 -0
- /package/dist/cura/{p-a00d2c68.entry.js.map → p-907b3d12.entry.js.map} +0 -0
- /package/dist/cura/{p-6682619b.entry.js.map → p-b2d5db22.entry.js.map} +0 -0
- /package/dist/cura/{p-a5cf0fd6.entry.js.map → p-c6508bd7.entry.js.map} +0 -0
- /package/dist/cura/{p-2203e829.entry.js.map → p-dcd2e5bb.entry.js.map} +0 -0
- /package/dist/cura/{p-84d8c67d.entry.js.map → p-e5023e34.entry.js.map} +0 -0
- /package/dist/cura/{p-ad8a7e0f.entry.js.map → p-fcbf4311.entry.js.map} +0 -0
- /package/dist/cura/{p-66c5cf5f.entry.js.map → p-fd083399.entry.js.map} +0 -0
- /package/dist/cura/{p-f9433d24.entry.js.map → p-fdce91a7.entry.js.map} +0 -0
|
@@ -60,6 +60,7 @@ export declare class CuraInputText {
|
|
|
60
60
|
* @see: https://imask.js.org/
|
|
61
61
|
*/
|
|
62
62
|
maskPreset?: MaskPreset;
|
|
63
|
+
enableSelectionMode: boolean;
|
|
63
64
|
/**
|
|
64
65
|
* Regular expression for custom input masking. Uses IMask library.
|
|
65
66
|
* @see: https://imask.js.org/
|
|
@@ -104,6 +105,10 @@ export declare class CuraInputText {
|
|
|
104
105
|
* Removes the alertCircle icon when necessary(as used in CuraDropdownSearch)
|
|
105
106
|
*/
|
|
106
107
|
hideErrorIcon: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* Defines whether the input should have autocomplete
|
|
110
|
+
*/
|
|
111
|
+
autocomplete?: string;
|
|
107
112
|
/**
|
|
108
113
|
* Emitted when the value of the input changes
|
|
109
114
|
* @type {EventEmitter<string | number>}
|
|
@@ -146,6 +151,7 @@ export declare class CuraInputText {
|
|
|
146
151
|
isFocused: boolean;
|
|
147
152
|
isHovered: boolean;
|
|
148
153
|
transparent: boolean;
|
|
154
|
+
selection: boolean;
|
|
149
155
|
};
|
|
150
156
|
getLabelColor(): "neutral-black" | "neutral-medium" | "neutral-dark";
|
|
151
157
|
renderIcon(): any;
|
|
@@ -218,6 +218,20 @@ declare const _default: {
|
|
|
218
218
|
};
|
|
219
219
|
};
|
|
220
220
|
};
|
|
221
|
+
autocomplete: {
|
|
222
|
+
control: {
|
|
223
|
+
type: string;
|
|
224
|
+
};
|
|
225
|
+
options: string[];
|
|
226
|
+
description: string;
|
|
227
|
+
required: boolean;
|
|
228
|
+
table: {
|
|
229
|
+
category: string;
|
|
230
|
+
defaultValue: {
|
|
231
|
+
summary: string;
|
|
232
|
+
};
|
|
233
|
+
};
|
|
234
|
+
};
|
|
221
235
|
};
|
|
222
236
|
};
|
|
223
237
|
export default _default;
|
|
@@ -243,5 +257,6 @@ export declare const InputText: {
|
|
|
243
257
|
isLoading: boolean;
|
|
244
258
|
readOnly: boolean;
|
|
245
259
|
maxlength: any;
|
|
260
|
+
autocomplete: string;
|
|
246
261
|
};
|
|
247
262
|
};
|
|
@@ -78,6 +78,10 @@ export namespace Components {
|
|
|
78
78
|
"distance": number;
|
|
79
79
|
"label": string;
|
|
80
80
|
}
|
|
81
|
+
interface CuraBadgeNumber {
|
|
82
|
+
"color": string;
|
|
83
|
+
"number": number | null;
|
|
84
|
+
}
|
|
81
85
|
interface CuraButton {
|
|
82
86
|
/**
|
|
83
87
|
* Set the background color to dark or light.
|
|
@@ -203,33 +207,12 @@ export namespace Components {
|
|
|
203
207
|
"type": 'button' | 'reset' | 'submit';
|
|
204
208
|
}
|
|
205
209
|
interface CuraButtonSelect {
|
|
206
|
-
/**
|
|
207
|
-
* Set the font color to dark or light.
|
|
208
|
-
*/
|
|
209
210
|
"background": 'dark' | 'light';
|
|
210
|
-
/**
|
|
211
|
-
* Color base from color scheme. Default: accent.
|
|
212
|
-
*/
|
|
213
211
|
"color": string;
|
|
214
|
-
|
|
215
|
-
* Disabled state. Boolean.
|
|
216
|
-
*/
|
|
212
|
+
"counter": string | number | null;
|
|
217
213
|
"disabled": boolean;
|
|
218
|
-
|
|
219
|
-
* fontcolor theme of the checkbox. Can be 'dark' or 'light'.
|
|
220
|
-
*/
|
|
221
|
-
"fontcolor": 'dark' | 'light';
|
|
222
|
-
/**
|
|
223
|
-
* Icon position: left (default) | right.
|
|
224
|
-
*/
|
|
225
|
-
"iconPosition": 'left' | 'right';
|
|
226
|
-
/**
|
|
227
|
-
* selected state. Boolean.
|
|
228
|
-
*/
|
|
214
|
+
"iconName": string;
|
|
229
215
|
"selected": boolean;
|
|
230
|
-
/**
|
|
231
|
-
* Button size: small | medium (default) | large = medium
|
|
232
|
-
*/
|
|
233
216
|
"size": 'small' | 'medium' | 'large';
|
|
234
217
|
}
|
|
235
218
|
interface CuraButtonTransparent {
|
|
@@ -292,6 +275,12 @@ export namespace Components {
|
|
|
292
275
|
}
|
|
293
276
|
interface CuraCalendar {
|
|
294
277
|
"collapsed": boolean | null;
|
|
278
|
+
/**
|
|
279
|
+
* Array of dates chosen by the user, can be updated dynamically.
|
|
280
|
+
* @type {Date[]}
|
|
281
|
+
* @default []
|
|
282
|
+
*/
|
|
283
|
+
"customDates": Date[];
|
|
295
284
|
/**
|
|
296
285
|
* Date format used for display and parsing.
|
|
297
286
|
* @type {string}
|
|
@@ -584,7 +573,53 @@ export namespace Components {
|
|
|
584
573
|
}
|
|
585
574
|
interface CuraIconsView {
|
|
586
575
|
}
|
|
576
|
+
interface CuraInputDate {
|
|
577
|
+
/**
|
|
578
|
+
* Controls whether future dates (dates before the current date) should be disabled
|
|
579
|
+
*/
|
|
580
|
+
"disableFutureDates": boolean;
|
|
581
|
+
/**
|
|
582
|
+
* Controls whether past dates (dates before the current date) should be disabled
|
|
583
|
+
*/
|
|
584
|
+
"disablePassDates": boolean;
|
|
585
|
+
/**
|
|
586
|
+
* Enables the date range selection mode, allowing users to select a period of dates
|
|
587
|
+
*/
|
|
588
|
+
"enableRangeDates": boolean;
|
|
589
|
+
/**
|
|
590
|
+
* Helper text displayed below the input
|
|
591
|
+
*/
|
|
592
|
+
"helperText"?: string;
|
|
593
|
+
/**
|
|
594
|
+
* Whether to display a cura icon (default: null)
|
|
595
|
+
*/
|
|
596
|
+
"iconName"?: string;
|
|
597
|
+
/**
|
|
598
|
+
* Label text for the input date
|
|
599
|
+
*/
|
|
600
|
+
"label"?: string;
|
|
601
|
+
/**
|
|
602
|
+
* Name text for the input date
|
|
603
|
+
*/
|
|
604
|
+
"name"?: string;
|
|
605
|
+
/**
|
|
606
|
+
* Placeholder text for the input
|
|
607
|
+
*/
|
|
608
|
+
"placeholder"?: string | null;
|
|
609
|
+
/**
|
|
610
|
+
* Size of the input mode default: 'small', 'medium', or 'large' (default: 'medium')
|
|
611
|
+
*/
|
|
612
|
+
"size": 'small' | 'medium' | 'large';
|
|
613
|
+
/**
|
|
614
|
+
* Indicates input status (default: default)
|
|
615
|
+
*/
|
|
616
|
+
"status": 'error' | 'success' | 'default';
|
|
617
|
+
}
|
|
587
618
|
interface CuraInputText {
|
|
619
|
+
/**
|
|
620
|
+
* Defines whether the input should have autocomplete
|
|
621
|
+
*/
|
|
622
|
+
"autocomplete"?: string;
|
|
588
623
|
/**
|
|
589
624
|
* Icon button name for the clear button (default: 'closeCircle')
|
|
590
625
|
*/
|
|
@@ -593,6 +628,7 @@ export namespace Components {
|
|
|
593
628
|
* Whether the input is disabled (default: false)
|
|
594
629
|
*/
|
|
595
630
|
"disabled"?: boolean;
|
|
631
|
+
"enableSelectionMode": boolean;
|
|
596
632
|
/**
|
|
597
633
|
* Helper text displayed below the input
|
|
598
634
|
*/
|
|
@@ -900,6 +936,10 @@ export interface CuraDropdownSearchOptionCustomEvent<T> extends CustomEvent<T> {
|
|
|
900
936
|
detail: T;
|
|
901
937
|
target: HTMLCuraDropdownSearchOptionElement;
|
|
902
938
|
}
|
|
939
|
+
export interface CuraInputDateCustomEvent<T> extends CustomEvent<T> {
|
|
940
|
+
detail: T;
|
|
941
|
+
target: HTMLCuraInputDateElement;
|
|
942
|
+
}
|
|
903
943
|
export interface CuraInputTextCustomEvent<T> extends CustomEvent<T> {
|
|
904
944
|
detail: T;
|
|
905
945
|
target: HTMLCuraInputTextElement;
|
|
@@ -962,6 +1002,12 @@ declare global {
|
|
|
962
1002
|
prototype: HTMLCuraBadgeDistanceElement;
|
|
963
1003
|
new (): HTMLCuraBadgeDistanceElement;
|
|
964
1004
|
};
|
|
1005
|
+
interface HTMLCuraBadgeNumberElement extends Components.CuraBadgeNumber, HTMLStencilElement {
|
|
1006
|
+
}
|
|
1007
|
+
var HTMLCuraBadgeNumberElement: {
|
|
1008
|
+
prototype: HTMLCuraBadgeNumberElement;
|
|
1009
|
+
new (): HTMLCuraBadgeNumberElement;
|
|
1010
|
+
};
|
|
965
1011
|
interface HTMLCuraButtonElement extends Components.CuraButton, HTMLStencilElement {
|
|
966
1012
|
}
|
|
967
1013
|
var HTMLCuraButtonElement: {
|
|
@@ -975,7 +1021,7 @@ declare global {
|
|
|
975
1021
|
new (): HTMLCuraButtonOutlineElement;
|
|
976
1022
|
};
|
|
977
1023
|
interface HTMLCuraButtonSelectElementEventMap {
|
|
978
|
-
"onclick": { selected: boolean
|
|
1024
|
+
"onclick": { selected: boolean };
|
|
979
1025
|
}
|
|
980
1026
|
interface HTMLCuraButtonSelectElement extends Components.CuraButtonSelect, HTMLStencilElement {
|
|
981
1027
|
addEventListener<K extends keyof HTMLCuraButtonSelectElementEventMap>(type: K, listener: (this: HTMLCuraButtonSelectElement, ev: CuraButtonSelectCustomEvent<HTMLCuraButtonSelectElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -1102,6 +1148,23 @@ declare global {
|
|
|
1102
1148
|
prototype: HTMLCuraIconsViewElement;
|
|
1103
1149
|
new (): HTMLCuraIconsViewElement;
|
|
1104
1150
|
};
|
|
1151
|
+
interface HTMLCuraInputDateElementEventMap {
|
|
1152
|
+
"dateChange": string;
|
|
1153
|
+
}
|
|
1154
|
+
interface HTMLCuraInputDateElement extends Components.CuraInputDate, HTMLStencilElement {
|
|
1155
|
+
addEventListener<K extends keyof HTMLCuraInputDateElementEventMap>(type: K, listener: (this: HTMLCuraInputDateElement, ev: CuraInputDateCustomEvent<HTMLCuraInputDateElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1156
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1157
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1158
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1159
|
+
removeEventListener<K extends keyof HTMLCuraInputDateElementEventMap>(type: K, listener: (this: HTMLCuraInputDateElement, ev: CuraInputDateCustomEvent<HTMLCuraInputDateElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
1160
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1161
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1162
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1163
|
+
}
|
|
1164
|
+
var HTMLCuraInputDateElement: {
|
|
1165
|
+
prototype: HTMLCuraInputDateElement;
|
|
1166
|
+
new (): HTMLCuraInputDateElement;
|
|
1167
|
+
};
|
|
1105
1168
|
interface HTMLCuraInputTextElementEventMap {
|
|
1106
1169
|
"valueChange": string | number;
|
|
1107
1170
|
}
|
|
@@ -1229,6 +1292,7 @@ declare global {
|
|
|
1229
1292
|
"cura-alert": HTMLCuraAlertElement;
|
|
1230
1293
|
"cura-avatar": HTMLCuraAvatarElement;
|
|
1231
1294
|
"cura-badge-distance": HTMLCuraBadgeDistanceElement;
|
|
1295
|
+
"cura-badge-number": HTMLCuraBadgeNumberElement;
|
|
1232
1296
|
"cura-button": HTMLCuraButtonElement;
|
|
1233
1297
|
"cura-button-outline": HTMLCuraButtonOutlineElement;
|
|
1234
1298
|
"cura-button-select": HTMLCuraButtonSelectElement;
|
|
@@ -1243,6 +1307,7 @@ declare global {
|
|
|
1243
1307
|
"cura-heading": HTMLCuraHeadingElement;
|
|
1244
1308
|
"cura-icon": HTMLCuraIconElement;
|
|
1245
1309
|
"cura-icons-view": HTMLCuraIconsViewElement;
|
|
1310
|
+
"cura-input-date": HTMLCuraInputDateElement;
|
|
1246
1311
|
"cura-input-text": HTMLCuraInputTextElement;
|
|
1247
1312
|
"cura-label": HTMLCuraLabelElement;
|
|
1248
1313
|
"cura-loader-bar": HTMLCuraLoaderBarElement;
|
|
@@ -1328,6 +1393,10 @@ declare namespace LocalJSX {
|
|
|
1328
1393
|
"distance"?: number;
|
|
1329
1394
|
"label"?: string;
|
|
1330
1395
|
}
|
|
1396
|
+
interface CuraBadgeNumber {
|
|
1397
|
+
"color"?: string;
|
|
1398
|
+
"number"?: number | null;
|
|
1399
|
+
}
|
|
1331
1400
|
interface CuraButton {
|
|
1332
1401
|
/**
|
|
1333
1402
|
* Set the background color to dark or light.
|
|
@@ -1453,34 +1522,13 @@ declare namespace LocalJSX {
|
|
|
1453
1522
|
"type"?: 'button' | 'reset' | 'submit';
|
|
1454
1523
|
}
|
|
1455
1524
|
interface CuraButtonSelect {
|
|
1456
|
-
/**
|
|
1457
|
-
* Set the font color to dark or light.
|
|
1458
|
-
*/
|
|
1459
1525
|
"background"?: 'dark' | 'light';
|
|
1460
|
-
/**
|
|
1461
|
-
* Color base from color scheme. Default: accent.
|
|
1462
|
-
*/
|
|
1463
1526
|
"color"?: string;
|
|
1464
|
-
|
|
1465
|
-
* Disabled state. Boolean.
|
|
1466
|
-
*/
|
|
1527
|
+
"counter"?: string | number | null;
|
|
1467
1528
|
"disabled"?: boolean;
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
*/
|
|
1471
|
-
"fontcolor"?: 'dark' | 'light';
|
|
1472
|
-
/**
|
|
1473
|
-
* Icon position: left (default) | right.
|
|
1474
|
-
*/
|
|
1475
|
-
"iconPosition"?: 'left' | 'right';
|
|
1476
|
-
"onOnclick"?: (event: CuraButtonSelectCustomEvent<{ selected: boolean; }>) => void;
|
|
1477
|
-
/**
|
|
1478
|
-
* selected state. Boolean.
|
|
1479
|
-
*/
|
|
1529
|
+
"iconName"?: string;
|
|
1530
|
+
"onOnclick"?: (event: CuraButtonSelectCustomEvent<{ selected: boolean }>) => void;
|
|
1480
1531
|
"selected"?: boolean;
|
|
1481
|
-
/**
|
|
1482
|
-
* Button size: small | medium (default) | large = medium
|
|
1483
|
-
*/
|
|
1484
1532
|
"size"?: 'small' | 'medium' | 'large';
|
|
1485
1533
|
}
|
|
1486
1534
|
interface CuraButtonTransparent {
|
|
@@ -1543,6 +1591,12 @@ declare namespace LocalJSX {
|
|
|
1543
1591
|
}
|
|
1544
1592
|
interface CuraCalendar {
|
|
1545
1593
|
"collapsed"?: boolean | null;
|
|
1594
|
+
/**
|
|
1595
|
+
* Array of dates chosen by the user, can be updated dynamically.
|
|
1596
|
+
* @type {Date[]}
|
|
1597
|
+
* @default []
|
|
1598
|
+
*/
|
|
1599
|
+
"customDates"?: Date[];
|
|
1546
1600
|
/**
|
|
1547
1601
|
* Date format used for display and parsing.
|
|
1548
1602
|
* @type {string}
|
|
@@ -1851,7 +1905,58 @@ declare namespace LocalJSX {
|
|
|
1851
1905
|
}
|
|
1852
1906
|
interface CuraIconsView {
|
|
1853
1907
|
}
|
|
1908
|
+
interface CuraInputDate {
|
|
1909
|
+
/**
|
|
1910
|
+
* Controls whether future dates (dates before the current date) should be disabled
|
|
1911
|
+
*/
|
|
1912
|
+
"disableFutureDates"?: boolean;
|
|
1913
|
+
/**
|
|
1914
|
+
* Controls whether past dates (dates before the current date) should be disabled
|
|
1915
|
+
*/
|
|
1916
|
+
"disablePassDates"?: boolean;
|
|
1917
|
+
/**
|
|
1918
|
+
* Enables the date range selection mode, allowing users to select a period of dates
|
|
1919
|
+
*/
|
|
1920
|
+
"enableRangeDates"?: boolean;
|
|
1921
|
+
/**
|
|
1922
|
+
* Helper text displayed below the input
|
|
1923
|
+
*/
|
|
1924
|
+
"helperText"?: string;
|
|
1925
|
+
/**
|
|
1926
|
+
* Whether to display a cura icon (default: null)
|
|
1927
|
+
*/
|
|
1928
|
+
"iconName"?: string;
|
|
1929
|
+
/**
|
|
1930
|
+
* Label text for the input date
|
|
1931
|
+
*/
|
|
1932
|
+
"label"?: string;
|
|
1933
|
+
/**
|
|
1934
|
+
* Name text for the input date
|
|
1935
|
+
*/
|
|
1936
|
+
"name"?: string;
|
|
1937
|
+
/**
|
|
1938
|
+
* Emitted when the value of the input changes
|
|
1939
|
+
* @type {EventEmitter<string>}
|
|
1940
|
+
*/
|
|
1941
|
+
"onDateChange"?: (event: CuraInputDateCustomEvent<string>) => void;
|
|
1942
|
+
/**
|
|
1943
|
+
* Placeholder text for the input
|
|
1944
|
+
*/
|
|
1945
|
+
"placeholder"?: string | null;
|
|
1946
|
+
/**
|
|
1947
|
+
* Size of the input mode default: 'small', 'medium', or 'large' (default: 'medium')
|
|
1948
|
+
*/
|
|
1949
|
+
"size"?: 'small' | 'medium' | 'large';
|
|
1950
|
+
/**
|
|
1951
|
+
* Indicates input status (default: default)
|
|
1952
|
+
*/
|
|
1953
|
+
"status"?: 'error' | 'success' | 'default';
|
|
1954
|
+
}
|
|
1854
1955
|
interface CuraInputText {
|
|
1956
|
+
/**
|
|
1957
|
+
* Defines whether the input should have autocomplete
|
|
1958
|
+
*/
|
|
1959
|
+
"autocomplete"?: string;
|
|
1855
1960
|
/**
|
|
1856
1961
|
* Icon button name for the clear button (default: 'closeCircle')
|
|
1857
1962
|
*/
|
|
@@ -1860,6 +1965,7 @@ declare namespace LocalJSX {
|
|
|
1860
1965
|
* Whether the input is disabled (default: false)
|
|
1861
1966
|
*/
|
|
1862
1967
|
"disabled"?: boolean;
|
|
1968
|
+
"enableSelectionMode"?: boolean;
|
|
1863
1969
|
/**
|
|
1864
1970
|
* Helper text displayed below the input
|
|
1865
1971
|
*/
|
|
@@ -2160,6 +2266,7 @@ declare namespace LocalJSX {
|
|
|
2160
2266
|
"cura-alert": CuraAlert;
|
|
2161
2267
|
"cura-avatar": CuraAvatar;
|
|
2162
2268
|
"cura-badge-distance": CuraBadgeDistance;
|
|
2269
|
+
"cura-badge-number": CuraBadgeNumber;
|
|
2163
2270
|
"cura-button": CuraButton;
|
|
2164
2271
|
"cura-button-outline": CuraButtonOutline;
|
|
2165
2272
|
"cura-button-select": CuraButtonSelect;
|
|
@@ -2174,6 +2281,7 @@ declare namespace LocalJSX {
|
|
|
2174
2281
|
"cura-heading": CuraHeading;
|
|
2175
2282
|
"cura-icon": CuraIcon;
|
|
2176
2283
|
"cura-icons-view": CuraIconsView;
|
|
2284
|
+
"cura-input-date": CuraInputDate;
|
|
2177
2285
|
"cura-input-text": CuraInputText;
|
|
2178
2286
|
"cura-label": CuraLabel;
|
|
2179
2287
|
"cura-loader-bar": CuraLoaderBar;
|
|
@@ -2196,6 +2304,7 @@ declare module "@stencil/core" {
|
|
|
2196
2304
|
"cura-alert": LocalJSX.CuraAlert & JSXBase.HTMLAttributes<HTMLCuraAlertElement>;
|
|
2197
2305
|
"cura-avatar": LocalJSX.CuraAvatar & JSXBase.HTMLAttributes<HTMLCuraAvatarElement>;
|
|
2198
2306
|
"cura-badge-distance": LocalJSX.CuraBadgeDistance & JSXBase.HTMLAttributes<HTMLCuraBadgeDistanceElement>;
|
|
2307
|
+
"cura-badge-number": LocalJSX.CuraBadgeNumber & JSXBase.HTMLAttributes<HTMLCuraBadgeNumberElement>;
|
|
2199
2308
|
"cura-button": LocalJSX.CuraButton & JSXBase.HTMLAttributes<HTMLCuraButtonElement>;
|
|
2200
2309
|
"cura-button-outline": LocalJSX.CuraButtonOutline & JSXBase.HTMLAttributes<HTMLCuraButtonOutlineElement>;
|
|
2201
2310
|
"cura-button-select": LocalJSX.CuraButtonSelect & JSXBase.HTMLAttributes<HTMLCuraButtonSelectElement>;
|
|
@@ -2210,6 +2319,7 @@ declare module "@stencil/core" {
|
|
|
2210
2319
|
"cura-heading": LocalJSX.CuraHeading & JSXBase.HTMLAttributes<HTMLCuraHeadingElement>;
|
|
2211
2320
|
"cura-icon": LocalJSX.CuraIcon & JSXBase.HTMLAttributes<HTMLCuraIconElement>;
|
|
2212
2321
|
"cura-icons-view": LocalJSX.CuraIconsView & JSXBase.HTMLAttributes<HTMLCuraIconsViewElement>;
|
|
2322
|
+
"cura-input-date": LocalJSX.CuraInputDate & JSXBase.HTMLAttributes<HTMLCuraInputDateElement>;
|
|
2213
2323
|
"cura-input-text": LocalJSX.CuraInputText & JSXBase.HTMLAttributes<HTMLCuraInputTextElement>;
|
|
2214
2324
|
"cura-label": LocalJSX.CuraLabel & JSXBase.HTMLAttributes<HTMLCuraLabelElement>;
|
|
2215
2325
|
"cura-loader-bar": LocalJSX.CuraLoaderBar & JSXBase.HTMLAttributes<HTMLCuraLoaderBarElement>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rededor/cura",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0-alpha.0",
|
|
4
4
|
"description": "Cura Design System",
|
|
5
5
|
"author": "Rede D`Or São Luiz",
|
|
6
6
|
"license": "MIT",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"storybook": "^7.6.7",
|
|
52
52
|
"svgo": "^3.3.2"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "2bbdc349bb9ab92642e0fc91cac2863af0141602"
|
|
55
55
|
}
|