@rededor/cura 2.0.0-alpha.14 → 2.0.0-alpha.16
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/cjs/cura-accordion_22.cjs.entry.js +39 -83
- package/dist/cjs/cura-display.cjs.entry.js +1 -1
- package/dist/cjs/cura-input-textarea.cjs.entry.js +236 -0
- package/dist/cjs/cura-loader-bar.cjs.entry.js +1 -1
- package/dist/cjs/cura-radio.cjs.entry.js +1 -1
- package/dist/cjs/cura-switch.cjs.entry.js +1 -1
- package/dist/cjs/cura-tabs-button.cjs.entry.js +1 -1
- package/dist/cjs/cura-tabs-transparent.cjs.entry.js +1 -1
- package/dist/cjs/cura.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/utils-DMHZ2n4p.js +47 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/cura-calendar/cura-calendar.js +20 -27
- package/dist/collection/components/forms/cura-input-textarea/cura-input-textarea.css +174 -0
- package/dist/collection/components/forms/cura-input-textarea/cura-input-textarea.js +613 -0
- package/dist/collection/components/forms/cura-input-textarea/cura-input-textarea.stories.js +222 -0
- 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.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/tabs/cura-tabs/cura-tabs.js +1 -1
- package/dist/collection/components/tabs/cura-tabs-button/cura-tabs-button.js +1 -1
- package/dist/collection/components/tabs/cura-tabs-group/cura-tabs-group.js +1 -1
- package/dist/collection/components/tabs/cura-tabs-transparent/cura-tabs-transparent.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-accordion-item.js +1 -1
- package/dist/components/cura-alert.js +1 -1
- package/dist/components/cura-badge-counter.js +1 -1
- package/dist/components/cura-badge-distance.js +1 -1
- package/dist/components/cura-badge-pill.js +1 -1
- package/dist/components/cura-button-outline.js +1 -1
- package/dist/components/cura-button-select.js +1 -1
- package/dist/components/cura-button-transparent.js +1 -1
- package/dist/components/cura-button.js +1 -1
- package/dist/components/cura-calendar.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-category.js +1 -1
- package/dist/components/cura-dropdown-search-not-found.js +1 -1
- package/dist/components/cura-dropdown-search.js +1 -1
- package/dist/components/cura-heading.js +1 -1
- package/dist/components/cura-icons-view.js +1 -1
- package/dist/components/cura-input-date.js +1 -1
- package/dist/components/cura-input-text.js +1 -1
- package/dist/components/cura-input-textarea.d.ts +11 -0
- package/dist/components/cura-input-textarea.js +1 -0
- package/dist/components/cura-label.js +1 -1
- package/dist/components/cura-loader-bar.js +1 -1
- package/dist/components/cura-loader-circle.js +1 -1
- package/dist/components/cura-modal.js +1 -1
- package/dist/components/cura-paragraph.js +1 -1
- package/dist/components/cura-radio.js +1 -1
- package/dist/components/cura-select-option.js +1 -1
- package/dist/components/cura-select.js +1 -1
- package/dist/components/cura-stepper-item.js +1 -1
- package/dist/components/cura-stepper.js +1 -1
- package/dist/components/cura-switch.js +1 -1
- package/dist/components/cura-tabs-button.js +1 -1
- package/dist/components/cura-tabs-group.js +1 -1
- package/dist/components/cura-tabs-transparent.js +1 -1
- package/dist/components/cura-tabs.js +1 -1
- package/dist/components/cura-toast.js +1 -1
- package/dist/components/cura-tooltip.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/p-B2TDH4aP.js +1 -0
- package/dist/components/{p-Oyg5hynZ.js → p-BHVSbubb.js} +1 -1
- package/dist/components/{p-BBtCzdwH.js → p-BKDpza6x.js} +1 -1
- package/dist/components/{p-BOQ-9WHP.js → p-BuETJyzc.js} +1 -1
- package/dist/components/{p-BGBnVlL3.js → p-CksTHXxZ.js} +1 -1
- package/dist/components/{p-I4AXUk2V.js → p-D4hCuriT.js} +1 -1
- package/dist/components/p-DQP7jRHp.js +1 -0
- package/dist/components/p-DgK8dEko.js +1 -0
- package/dist/components/{p-BXFxWVl3.js → p-DgQJ968V.js} +1 -1
- package/dist/components/{p-BFGkepgq.js → p-Dmalf4Oj.js} +1 -1
- package/dist/components/{p-DbZtk_CM.js → p-KovUKiTX.js} +1 -1
- package/dist/components/{p-Bac-rr_f.js → p-PiUhcFob.js} +1 -1
- package/dist/components/{p-BmMvoH-m.js → p-TnCIk87O.js} +1 -1
- package/dist/components/{p-Cm1Vfoc6.js → p-i55vIhdM.js} +1 -1
- package/dist/cura/cura.esm.js +1 -1
- package/dist/cura/{p-71fffffa.entry.js → p-1c48aaa7.entry.js} +1 -1
- package/dist/cura/{p-2572a4f9.entry.js → p-4178e3e6.entry.js} +1 -1
- package/dist/cura/p-5b26a166.entry.js +1 -0
- package/dist/cura/p-CUmwazb8.js +1 -0
- package/dist/cura/p-a305e17a.entry.js +1 -0
- package/dist/cura/{p-8b29b763.entry.js → p-b157025d.entry.js} +1 -1
- package/dist/cura/{p-1ecb2249.entry.js → p-bd649bed.entry.js} +1 -1
- package/dist/cura/{p-04b5c710.entry.js → p-d43fb791.entry.js} +1 -1
- package/dist/cura/{p-a5c4849c.entry.js → p-d64ef37d.entry.js} +1 -1
- package/dist/esm/cura-accordion_22.entry.js +32 -76
- package/dist/esm/cura-display.entry.js +1 -1
- package/dist/esm/cura-input-textarea.entry.js +234 -0
- package/dist/esm/cura-loader-bar.entry.js +1 -1
- package/dist/esm/cura-radio.entry.js +1 -1
- package/dist/esm/cura-switch.entry.js +1 -1
- package/dist/esm/cura-tabs-button.entry.js +1 -1
- package/dist/esm/cura-tabs-transparent.entry.js +1 -1
- package/dist/esm/cura.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/utils-BZCR971L.js +41 -0
- package/dist/types/components/cura-calendar/cura-calendar.d.ts +3 -6
- package/dist/types/components/forms/cura-input-textarea/cura-input-textarea.d.ts +116 -0
- package/dist/types/components/forms/cura-input-textarea/cura-input-textarea.stories.d.ts +188 -0
- package/dist/types/components.d.ts +210 -0
- package/package.json +2 -2
- package/dist/components/p-BJafC0R3.js +0 -1
- package/dist/components/p-nqT7t82E.js +0 -1
- package/dist/cura/p-c287c69e.entry.js +0 -1
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
tags: string[];
|
|
4
|
+
render: ({ helperText, ...args }: {
|
|
5
|
+
[x: string]: any;
|
|
6
|
+
helperText: any;
|
|
7
|
+
}) => string;
|
|
8
|
+
argTypes: {
|
|
9
|
+
mode: {
|
|
10
|
+
control: {
|
|
11
|
+
type: string;
|
|
12
|
+
};
|
|
13
|
+
options: string[];
|
|
14
|
+
description: string;
|
|
15
|
+
table: {
|
|
16
|
+
category: string;
|
|
17
|
+
defaultValue: {
|
|
18
|
+
summary: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
status: {
|
|
23
|
+
control: {
|
|
24
|
+
type: string;
|
|
25
|
+
};
|
|
26
|
+
options: string[];
|
|
27
|
+
description: string;
|
|
28
|
+
table: {
|
|
29
|
+
category: string;
|
|
30
|
+
defaultValue: {
|
|
31
|
+
summary: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
size: {
|
|
36
|
+
control: {
|
|
37
|
+
type: string;
|
|
38
|
+
};
|
|
39
|
+
options: string[];
|
|
40
|
+
description: string;
|
|
41
|
+
table: {
|
|
42
|
+
category: string;
|
|
43
|
+
defaultValue: {
|
|
44
|
+
summary: string;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
label: {
|
|
49
|
+
control: string;
|
|
50
|
+
description: string;
|
|
51
|
+
required: boolean;
|
|
52
|
+
table: {
|
|
53
|
+
category: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
name: {
|
|
57
|
+
control: string;
|
|
58
|
+
description: string;
|
|
59
|
+
required: boolean;
|
|
60
|
+
table: {
|
|
61
|
+
category: string;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
placeholder: {
|
|
65
|
+
control: string;
|
|
66
|
+
description: string;
|
|
67
|
+
required: boolean;
|
|
68
|
+
table: {
|
|
69
|
+
category: string;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
helperText: {
|
|
73
|
+
control: string;
|
|
74
|
+
description: string;
|
|
75
|
+
table: {
|
|
76
|
+
category: string;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
value: {
|
|
80
|
+
control: string;
|
|
81
|
+
description: string;
|
|
82
|
+
table: {
|
|
83
|
+
category: string;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
required: {
|
|
87
|
+
control: string;
|
|
88
|
+
description: string;
|
|
89
|
+
table: {
|
|
90
|
+
category: string;
|
|
91
|
+
defaultValue: {
|
|
92
|
+
summary: boolean;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
maxlength: {
|
|
97
|
+
control: string;
|
|
98
|
+
description: string;
|
|
99
|
+
required: boolean;
|
|
100
|
+
table: {
|
|
101
|
+
category: string;
|
|
102
|
+
defaultValue: {
|
|
103
|
+
summary: any;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
iconName: {
|
|
108
|
+
control: {
|
|
109
|
+
type: string;
|
|
110
|
+
};
|
|
111
|
+
options: string[];
|
|
112
|
+
description: string;
|
|
113
|
+
required: boolean;
|
|
114
|
+
table: {
|
|
115
|
+
category: string;
|
|
116
|
+
defaultValue: {
|
|
117
|
+
summary: string;
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
disabled: {
|
|
122
|
+
control: string;
|
|
123
|
+
description: string;
|
|
124
|
+
table: {
|
|
125
|
+
category: string;
|
|
126
|
+
defaultValue: {
|
|
127
|
+
summary: boolean;
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
readOnly: {
|
|
132
|
+
control: string;
|
|
133
|
+
description: string;
|
|
134
|
+
category: string;
|
|
135
|
+
required: boolean;
|
|
136
|
+
table: {
|
|
137
|
+
category: string;
|
|
138
|
+
defaultValue: {
|
|
139
|
+
summary: boolean;
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
isLoading: {
|
|
144
|
+
control: string;
|
|
145
|
+
description: string;
|
|
146
|
+
table: {
|
|
147
|
+
category: string;
|
|
148
|
+
defaultValue: {
|
|
149
|
+
summary: boolean;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
autocomplete: {
|
|
154
|
+
control: {
|
|
155
|
+
type: string;
|
|
156
|
+
};
|
|
157
|
+
options: string[];
|
|
158
|
+
description: string;
|
|
159
|
+
required: boolean;
|
|
160
|
+
table: {
|
|
161
|
+
category: string;
|
|
162
|
+
defaultValue: {
|
|
163
|
+
summary: string;
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
export default _default;
|
|
170
|
+
export declare const InputTextArea: {
|
|
171
|
+
args: {
|
|
172
|
+
mode: string;
|
|
173
|
+
status: string;
|
|
174
|
+
size: string;
|
|
175
|
+
label: string;
|
|
176
|
+
name: string;
|
|
177
|
+
placeholder: string;
|
|
178
|
+
helperText: string;
|
|
179
|
+
value: string;
|
|
180
|
+
required: boolean;
|
|
181
|
+
maxlength: any;
|
|
182
|
+
iconName: string;
|
|
183
|
+
disabled: boolean;
|
|
184
|
+
readOnly: boolean;
|
|
185
|
+
isLoading: boolean;
|
|
186
|
+
autocomplete: string;
|
|
187
|
+
};
|
|
188
|
+
};
|
|
@@ -1072,6 +1072,87 @@ export namespace Components {
|
|
|
1072
1072
|
*/
|
|
1073
1073
|
"value": string | number;
|
|
1074
1074
|
}
|
|
1075
|
+
interface CuraInputTextarea {
|
|
1076
|
+
/**
|
|
1077
|
+
* Whether the textarea should have autocomplete
|
|
1078
|
+
* @default 'on'
|
|
1079
|
+
*/
|
|
1080
|
+
"autocomplete"?: string;
|
|
1081
|
+
/**
|
|
1082
|
+
* Whether the textarea is disabled (default: false)
|
|
1083
|
+
* @default false
|
|
1084
|
+
*/
|
|
1085
|
+
"disabled"?: boolean;
|
|
1086
|
+
/**
|
|
1087
|
+
* Helper text displayed below the textarea
|
|
1088
|
+
*/
|
|
1089
|
+
"helperText"?: string;
|
|
1090
|
+
/**
|
|
1091
|
+
* Removes the alertCircle icon when necessary (as used in CuraDropdownSearch)
|
|
1092
|
+
* @default false
|
|
1093
|
+
*/
|
|
1094
|
+
"hideErrorIcon": boolean;
|
|
1095
|
+
/**
|
|
1096
|
+
* Cura icon name to display
|
|
1097
|
+
* @default ''
|
|
1098
|
+
*/
|
|
1099
|
+
"iconName"?: string;
|
|
1100
|
+
/**
|
|
1101
|
+
* Whether the textarea is in loading state (default: false)
|
|
1102
|
+
* @default false
|
|
1103
|
+
*/
|
|
1104
|
+
"isLoading"?: boolean;
|
|
1105
|
+
/**
|
|
1106
|
+
* Label text for the textarea
|
|
1107
|
+
* @default ''
|
|
1108
|
+
*/
|
|
1109
|
+
"label"?: string;
|
|
1110
|
+
/**
|
|
1111
|
+
* Maximum length of the textarea value
|
|
1112
|
+
*/
|
|
1113
|
+
"maxlength"?: number | undefined;
|
|
1114
|
+
/**
|
|
1115
|
+
* Name for the textarea
|
|
1116
|
+
* @default ''
|
|
1117
|
+
*/
|
|
1118
|
+
"name"?: string;
|
|
1119
|
+
/**
|
|
1120
|
+
* Placeholder text
|
|
1121
|
+
* @default null
|
|
1122
|
+
*/
|
|
1123
|
+
"placeholder"?: string | null;
|
|
1124
|
+
/**
|
|
1125
|
+
* Whether the textarea is read-only (default: false)
|
|
1126
|
+
* @default false
|
|
1127
|
+
*/
|
|
1128
|
+
"readOnly"?: boolean;
|
|
1129
|
+
/**
|
|
1130
|
+
* Whether the textarea is required (default: false)
|
|
1131
|
+
* @default false
|
|
1132
|
+
*/
|
|
1133
|
+
"required"?: boolean;
|
|
1134
|
+
/**
|
|
1135
|
+
* Whether the textarea is resizable (default: true)
|
|
1136
|
+
* @default true
|
|
1137
|
+
*/
|
|
1138
|
+
"resizable"?: boolean;
|
|
1139
|
+
"setFocus": () => Promise<void>;
|
|
1140
|
+
/**
|
|
1141
|
+
* Size of the textarea: 'small', 'medium', or 'large' (default: 'medium')
|
|
1142
|
+
* @default 'medium'
|
|
1143
|
+
*/
|
|
1144
|
+
"size": 'small' | 'medium' | 'large' | string;
|
|
1145
|
+
/**
|
|
1146
|
+
* Indicates input status (default: 'default')
|
|
1147
|
+
* @default 'default'
|
|
1148
|
+
*/
|
|
1149
|
+
"status": 'error' | 'success' | 'default' | string;
|
|
1150
|
+
/**
|
|
1151
|
+
* Initial value of the textarea
|
|
1152
|
+
* @default ''
|
|
1153
|
+
*/
|
|
1154
|
+
"value": string | number;
|
|
1155
|
+
}
|
|
1075
1156
|
interface CuraLabel {
|
|
1076
1157
|
/**
|
|
1077
1158
|
* Text color. Values: Color from design system scheme. Default to the font color from the theme.
|
|
@@ -1658,6 +1739,10 @@ export interface CuraInputTextCustomEvent<T> extends CustomEvent<T> {
|
|
|
1658
1739
|
detail: T;
|
|
1659
1740
|
target: HTMLCuraInputTextElement;
|
|
1660
1741
|
}
|
|
1742
|
+
export interface CuraInputTextareaCustomEvent<T> extends CustomEvent<T> {
|
|
1743
|
+
detail: T;
|
|
1744
|
+
target: HTMLCuraInputTextareaElement;
|
|
1745
|
+
}
|
|
1661
1746
|
export interface CuraModalCustomEvent<T> extends CustomEvent<T> {
|
|
1662
1747
|
detail: T;
|
|
1663
1748
|
target: HTMLCuraModalElement;
|
|
@@ -1953,6 +2038,24 @@ declare global {
|
|
|
1953
2038
|
prototype: HTMLCuraInputTextElement;
|
|
1954
2039
|
new (): HTMLCuraInputTextElement;
|
|
1955
2040
|
};
|
|
2041
|
+
interface HTMLCuraInputTextareaElementEventMap {
|
|
2042
|
+
"valueChange": string | number;
|
|
2043
|
+
"inputClear": string | number;
|
|
2044
|
+
}
|
|
2045
|
+
interface HTMLCuraInputTextareaElement extends Components.CuraInputTextarea, HTMLStencilElement {
|
|
2046
|
+
addEventListener<K extends keyof HTMLCuraInputTextareaElementEventMap>(type: K, listener: (this: HTMLCuraInputTextareaElement, ev: CuraInputTextareaCustomEvent<HTMLCuraInputTextareaElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2047
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2048
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2049
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
2050
|
+
removeEventListener<K extends keyof HTMLCuraInputTextareaElementEventMap>(type: K, listener: (this: HTMLCuraInputTextareaElement, ev: CuraInputTextareaCustomEvent<HTMLCuraInputTextareaElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
2051
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2052
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2053
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
2054
|
+
}
|
|
2055
|
+
var HTMLCuraInputTextareaElement: {
|
|
2056
|
+
prototype: HTMLCuraInputTextareaElement;
|
|
2057
|
+
new (): HTMLCuraInputTextareaElement;
|
|
2058
|
+
};
|
|
1956
2059
|
interface HTMLCuraLabelElement extends Components.CuraLabel, HTMLStencilElement {
|
|
1957
2060
|
}
|
|
1958
2061
|
var HTMLCuraLabelElement: {
|
|
@@ -2204,6 +2307,7 @@ declare global {
|
|
|
2204
2307
|
"cura-icons-view": HTMLCuraIconsViewElement;
|
|
2205
2308
|
"cura-input-date": HTMLCuraInputDateElement;
|
|
2206
2309
|
"cura-input-text": HTMLCuraInputTextElement;
|
|
2310
|
+
"cura-input-textarea": HTMLCuraInputTextareaElement;
|
|
2207
2311
|
"cura-label": HTMLCuraLabelElement;
|
|
2208
2312
|
"cura-loader-bar": HTMLCuraLoaderBarElement;
|
|
2209
2313
|
"cura-loader-circle": HTMLCuraLoaderCircleElement;
|
|
@@ -3359,6 +3463,92 @@ declare namespace LocalJSX {
|
|
|
3359
3463
|
*/
|
|
3360
3464
|
"value"?: string | number;
|
|
3361
3465
|
}
|
|
3466
|
+
interface CuraInputTextarea {
|
|
3467
|
+
/**
|
|
3468
|
+
* Whether the textarea should have autocomplete
|
|
3469
|
+
* @default 'on'
|
|
3470
|
+
*/
|
|
3471
|
+
"autocomplete"?: string;
|
|
3472
|
+
/**
|
|
3473
|
+
* Whether the textarea is disabled (default: false)
|
|
3474
|
+
* @default false
|
|
3475
|
+
*/
|
|
3476
|
+
"disabled"?: boolean;
|
|
3477
|
+
/**
|
|
3478
|
+
* The `id` of a `<form>` element to associate this element with.
|
|
3479
|
+
*/
|
|
3480
|
+
"form"?: string;
|
|
3481
|
+
/**
|
|
3482
|
+
* Helper text displayed below the textarea
|
|
3483
|
+
*/
|
|
3484
|
+
"helperText"?: string;
|
|
3485
|
+
/**
|
|
3486
|
+
* Removes the alertCircle icon when necessary (as used in CuraDropdownSearch)
|
|
3487
|
+
* @default false
|
|
3488
|
+
*/
|
|
3489
|
+
"hideErrorIcon"?: boolean;
|
|
3490
|
+
/**
|
|
3491
|
+
* Cura icon name to display
|
|
3492
|
+
* @default ''
|
|
3493
|
+
*/
|
|
3494
|
+
"iconName"?: string;
|
|
3495
|
+
/**
|
|
3496
|
+
* Whether the textarea is in loading state (default: false)
|
|
3497
|
+
* @default false
|
|
3498
|
+
*/
|
|
3499
|
+
"isLoading"?: boolean;
|
|
3500
|
+
/**
|
|
3501
|
+
* Label text for the textarea
|
|
3502
|
+
* @default ''
|
|
3503
|
+
*/
|
|
3504
|
+
"label"?: string;
|
|
3505
|
+
/**
|
|
3506
|
+
* Maximum length of the textarea value
|
|
3507
|
+
*/
|
|
3508
|
+
"maxlength"?: number | undefined;
|
|
3509
|
+
/**
|
|
3510
|
+
* Name for the textarea
|
|
3511
|
+
* @default ''
|
|
3512
|
+
*/
|
|
3513
|
+
"name"?: string;
|
|
3514
|
+
"onInputClear"?: (event: CuraInputTextareaCustomEvent<string | number>) => void;
|
|
3515
|
+
"onValueChange"?: (event: CuraInputTextareaCustomEvent<string | number>) => void;
|
|
3516
|
+
/**
|
|
3517
|
+
* Placeholder text
|
|
3518
|
+
* @default null
|
|
3519
|
+
*/
|
|
3520
|
+
"placeholder"?: string | null;
|
|
3521
|
+
/**
|
|
3522
|
+
* Whether the textarea is read-only (default: false)
|
|
3523
|
+
* @default false
|
|
3524
|
+
*/
|
|
3525
|
+
"readOnly"?: boolean;
|
|
3526
|
+
/**
|
|
3527
|
+
* Whether the textarea is required (default: false)
|
|
3528
|
+
* @default false
|
|
3529
|
+
*/
|
|
3530
|
+
"required"?: boolean;
|
|
3531
|
+
/**
|
|
3532
|
+
* Whether the textarea is resizable (default: true)
|
|
3533
|
+
* @default true
|
|
3534
|
+
*/
|
|
3535
|
+
"resizable"?: boolean;
|
|
3536
|
+
/**
|
|
3537
|
+
* Size of the textarea: 'small', 'medium', or 'large' (default: 'medium')
|
|
3538
|
+
* @default 'medium'
|
|
3539
|
+
*/
|
|
3540
|
+
"size"?: 'small' | 'medium' | 'large' | string;
|
|
3541
|
+
/**
|
|
3542
|
+
* Indicates input status (default: 'default')
|
|
3543
|
+
* @default 'default'
|
|
3544
|
+
*/
|
|
3545
|
+
"status"?: 'error' | 'success' | 'default' | string;
|
|
3546
|
+
/**
|
|
3547
|
+
* Initial value of the textarea
|
|
3548
|
+
* @default ''
|
|
3549
|
+
*/
|
|
3550
|
+
"value"?: string | number;
|
|
3551
|
+
}
|
|
3362
3552
|
interface CuraLabel {
|
|
3363
3553
|
/**
|
|
3364
3554
|
* Text color. Values: Color from design system scheme. Default to the font color from the theme.
|
|
@@ -4200,6 +4390,24 @@ declare namespace LocalJSX {
|
|
|
4200
4390
|
"hideErrorIcon": boolean;
|
|
4201
4391
|
"autocomplete": string;
|
|
4202
4392
|
}
|
|
4393
|
+
interface CuraInputTextareaAttributes {
|
|
4394
|
+
"status": 'error' | 'success' | 'default' | string;
|
|
4395
|
+
"size": 'small' | 'medium' | 'large' | string;
|
|
4396
|
+
"label": string;
|
|
4397
|
+
"name": string;
|
|
4398
|
+
"placeholder": string | null;
|
|
4399
|
+
"value": string;
|
|
4400
|
+
"iconName": string;
|
|
4401
|
+
"helperText": string;
|
|
4402
|
+
"disabled": boolean;
|
|
4403
|
+
"required": boolean;
|
|
4404
|
+
"maxlength": number | undefined;
|
|
4405
|
+
"readOnly": boolean;
|
|
4406
|
+
"resizable": boolean;
|
|
4407
|
+
"isLoading": boolean;
|
|
4408
|
+
"hideErrorIcon": boolean;
|
|
4409
|
+
"autocomplete": string;
|
|
4410
|
+
}
|
|
4203
4411
|
interface CuraLabelAttributes {
|
|
4204
4412
|
"size": 'medium' | 'large' | 'small' | 'xsmall' | string;
|
|
4205
4413
|
"weight": 'regular' | 'bold';
|
|
@@ -4384,6 +4592,7 @@ declare namespace LocalJSX {
|
|
|
4384
4592
|
"cura-icons-view": CuraIconsView;
|
|
4385
4593
|
"cura-input-date": Omit<CuraInputDate, keyof CuraInputDateAttributes> & { [K in keyof CuraInputDate & keyof CuraInputDateAttributes]?: CuraInputDate[K] } & { [K in keyof CuraInputDate & keyof CuraInputDateAttributes as `attr:${K}`]?: CuraInputDateAttributes[K] } & { [K in keyof CuraInputDate & keyof CuraInputDateAttributes as `prop:${K}`]?: CuraInputDate[K] };
|
|
4386
4594
|
"cura-input-text": Omit<CuraInputText, keyof CuraInputTextAttributes> & { [K in keyof CuraInputText & keyof CuraInputTextAttributes]?: CuraInputText[K] } & { [K in keyof CuraInputText & keyof CuraInputTextAttributes as `attr:${K}`]?: CuraInputTextAttributes[K] } & { [K in keyof CuraInputText & keyof CuraInputTextAttributes as `prop:${K}`]?: CuraInputText[K] };
|
|
4595
|
+
"cura-input-textarea": Omit<CuraInputTextarea, keyof CuraInputTextareaAttributes> & { [K in keyof CuraInputTextarea & keyof CuraInputTextareaAttributes]?: CuraInputTextarea[K] } & { [K in keyof CuraInputTextarea & keyof CuraInputTextareaAttributes as `attr:${K}`]?: CuraInputTextareaAttributes[K] } & { [K in keyof CuraInputTextarea & keyof CuraInputTextareaAttributes as `prop:${K}`]?: CuraInputTextarea[K] };
|
|
4387
4596
|
"cura-label": Omit<CuraLabel, keyof CuraLabelAttributes> & { [K in keyof CuraLabel & keyof CuraLabelAttributes]?: CuraLabel[K] } & { [K in keyof CuraLabel & keyof CuraLabelAttributes as `attr:${K}`]?: CuraLabelAttributes[K] } & { [K in keyof CuraLabel & keyof CuraLabelAttributes as `prop:${K}`]?: CuraLabel[K] };
|
|
4388
4597
|
"cura-loader-bar": Omit<CuraLoaderBar, keyof CuraLoaderBarAttributes> & { [K in keyof CuraLoaderBar & keyof CuraLoaderBarAttributes]?: CuraLoaderBar[K] } & { [K in keyof CuraLoaderBar & keyof CuraLoaderBarAttributes as `attr:${K}`]?: CuraLoaderBarAttributes[K] } & { [K in keyof CuraLoaderBar & keyof CuraLoaderBarAttributes as `prop:${K}`]?: CuraLoaderBar[K] };
|
|
4389
4598
|
"cura-loader-circle": Omit<CuraLoaderCircle, keyof CuraLoaderCircleAttributes> & { [K in keyof CuraLoaderCircle & keyof CuraLoaderCircleAttributes]?: CuraLoaderCircle[K] } & { [K in keyof CuraLoaderCircle & keyof CuraLoaderCircleAttributes as `attr:${K}`]?: CuraLoaderCircleAttributes[K] } & { [K in keyof CuraLoaderCircle & keyof CuraLoaderCircleAttributes as `prop:${K}`]?: CuraLoaderCircle[K] };
|
|
@@ -4434,6 +4643,7 @@ declare module "@stencil/core" {
|
|
|
4434
4643
|
"cura-icons-view": LocalJSX.IntrinsicElements["cura-icons-view"] & JSXBase.HTMLAttributes<HTMLCuraIconsViewElement>;
|
|
4435
4644
|
"cura-input-date": LocalJSX.IntrinsicElements["cura-input-date"] & JSXBase.HTMLAttributes<HTMLCuraInputDateElement>;
|
|
4436
4645
|
"cura-input-text": LocalJSX.IntrinsicElements["cura-input-text"] & JSXBase.HTMLAttributes<HTMLCuraInputTextElement>;
|
|
4646
|
+
"cura-input-textarea": LocalJSX.IntrinsicElements["cura-input-textarea"] & JSXBase.HTMLAttributes<HTMLCuraInputTextareaElement>;
|
|
4437
4647
|
"cura-label": LocalJSX.IntrinsicElements["cura-label"] & JSXBase.HTMLAttributes<HTMLCuraLabelElement>;
|
|
4438
4648
|
"cura-loader-bar": LocalJSX.IntrinsicElements["cura-loader-bar"] & JSXBase.HTMLAttributes<HTMLCuraLoaderBarElement>;
|
|
4439
4649
|
"cura-loader-circle": LocalJSX.IntrinsicElements["cura-loader-circle"] & JSXBase.HTMLAttributes<HTMLCuraLoaderCircleElement>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rededor/cura",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.16",
|
|
4
4
|
"description": "Cura Design System",
|
|
5
5
|
"author": "Rede D`Or São Luiz",
|
|
6
6
|
"license": "MIT",
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"storybook": "^7.6.7",
|
|
55
55
|
"svgo": "^3.3.2"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "9dce78a5e320ef39fcaf108999cb9f5ca0272ec5"
|
|
58
58
|
}
|