@maggioli-design-system/mds-input 1.0.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/cjs/index-3aa055da.js +1207 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +21 -0
- package/dist/cjs/mds-input.cjs.entry.js +162 -0
- package/dist/cjs/mds-input.cjs.js +19 -0
- package/dist/collection/collection-manifest.json +12 -0
- package/dist/collection/components/mds-input/mds-input.css +482 -0
- package/dist/collection/components/mds-input/mds-input.js +586 -0
- package/dist/collection/components/mds-input/meta/interfaces.js +1 -0
- package/dist/collection/components/mds-input/test/mds-input.stories.js +165 -0
- package/dist/collection/dictionary/autocomplete.js +59 -0
- package/dist/collection/dictionary/button.js +26 -0
- package/dist/collection/dictionary/color.js +19 -0
- package/dist/collection/dictionary/icon.js +3 -0
- package/dist/collection/dictionary/input-text-type.js +13 -0
- package/dist/collection/dictionary/loading.js +5 -0
- package/dist/collection/dictionary/typography.js +43 -0
- package/dist/collection/dictionary/variant.js +65 -0
- package/dist/collection/fixtures/cities.js +110 -0
- package/dist/collection/interface/input-value.js +1 -0
- package/dist/collection/types/autocomplete.js +1 -0
- package/dist/collection/types/button.js +1 -0
- package/dist/collection/types/form-rel.js +1 -0
- package/dist/collection/types/input-text-type.js +1 -0
- package/dist/collection/types/input-value-type.js +1 -0
- package/dist/collection/types/loading.js +1 -0
- package/dist/collection/types/typography.js +1 -0
- package/dist/collection/types/variant.js +1 -0
- package/dist/components/index.d.ts +26 -0
- package/dist/components/index.js +1 -0
- package/dist/components/mds-input.d.ts +11 -0
- package/dist/components/mds-input.js +200 -0
- package/dist/esm/index-2cdf06e7.js +1179 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +17 -0
- package/dist/esm/mds-input.entry.js +158 -0
- package/dist/esm/mds-input.js +17 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm-es5/index-2cdf06e7.js +1 -0
- package/dist/esm-es5/index.js +0 -0
- package/dist/esm-es5/loader.js +1 -0
- package/dist/esm-es5/mds-input.entry.js +1 -0
- package/dist/esm-es5/mds-input.js +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/mds-input/index.esm.js +0 -0
- package/dist/mds-input/mds-input.esm.js +1 -0
- package/dist/mds-input/mds-input.js +130 -0
- package/dist/mds-input/p-132bdeae.system.entry.js +1 -0
- package/dist/mds-input/p-275873d7.entry.js +1 -0
- package/dist/mds-input/p-50ea2036.system.js +1 -0
- package/dist/mds-input/p-8bdf82a6.js +1 -0
- package/dist/mds-input/p-91d946fe.system.js +1 -0
- package/dist/mds-input/p-992602db.system.js +1 -0
- package/dist/stats.json +1424 -0
- package/dist/types/components/mds-input/meta/interfaces.d.ts +4 -0
- package/dist/types/components.d.ts +218 -0
- package/dist/types/dictionary/autocomplete.d.ts +2 -0
- package/dist/types/dictionary/button.d.ts +5 -0
- package/dist/types/dictionary/color.d.ts +3 -0
- package/dist/types/dictionary/icon.d.ts +2 -0
- package/dist/types/dictionary/input-text-type.d.ts +2 -0
- package/dist/types/dictionary/loading.d.ts +2 -0
- package/dist/types/dictionary/typography.d.ts +6 -0
- package/dist/types/dictionary/variant.d.ts +9 -0
- package/dist/types/fixtures/cities.d.ts +2 -0
- package/dist/types/interface/input-value.d.ts +4 -0
- package/dist/types/stencil-public-runtime.d.ts +1565 -0
- package/dist/types/types/autocomplete.d.ts +2 -0
- package/dist/types/types/button.d.ts +4 -0
- package/dist/types/types/form-rel.d.ts +1 -0
- package/dist/types/types/input-text-type.d.ts +1 -0
- package/dist/types/types/input-value-type.d.ts +1 -0
- package/dist/types/types/loading.d.ts +1 -0
- package/dist/types/types/typography.d.ts +5 -0
- package/dist/types/types/variant.d.ts +10 -0
- package/loader/cdn.js +3 -0
- package/loader/index.cjs.js +3 -0
- package/loader/index.d.ts +12 -0
- package/loader/index.es2017.js +3 -0
- package/loader/index.js +4 -0
- package/loader/package.json +10 -0
- package/package.json +46 -0
- package/readme.md +97 -0
- package/src/components/mds-input/css/mds-input-variant.css +65 -0
- package/src/components/mds-input/mds-input.css +133 -0
- package/src/components/mds-input/mds-input.tsx +294 -0
- package/src/components/mds-input/meta/interfaces.ts +5 -0
- package/src/components/mds-input/readme.md +77 -0
- package/src/components/mds-input/test/mds-input.e2e.ts +12 -0
- package/src/components/mds-input/test/mds-input.spec.tsx +19 -0
- package/src/components/mds-input/test/mds-input.stories.js +165 -0
- package/src/components.d.ts +218 -0
- package/src/dictionary/autocomplete.ts +62 -0
- package/src/dictionary/button.ts +35 -0
- package/src/dictionary/color.ts +24 -0
- package/src/dictionary/icon.ts +5 -0
- package/src/dictionary/input-text-type.ts +17 -0
- package/src/dictionary/loading.ts +9 -0
- package/src/dictionary/typography.ts +54 -0
- package/src/dictionary/variant.ts +82 -0
- package/src/fixtures/cities.ts +116 -0
- package/src/interface/input-value.ts +5 -0
- package/src/types/autocomplete.ts +69 -0
- package/src/types/button.ts +24 -0
- package/src/types/form-rel.ts +11 -0
- package/src/types/input-text-type.ts +11 -0
- package/src/types/input-value-type.ts +5 -0
- package/src/types/loading.ts +3 -0
- package/src/types/typography.ts +41 -0
- package/src/types/variant.ts +73 -0
- package/www/build/index.esm.js +0 -0
- package/www/build/mds-input.esm.js +1 -0
- package/www/build/mds-input.js +130 -0
- package/www/build/p-132bdeae.system.entry.js +1 -0
- package/www/build/p-275873d7.entry.js +1 -0
- package/www/build/p-50ea2036.system.js +1 -0
- package/www/build/p-8bdf82a6.js +1 -0
- package/www/build/p-91d946fe.system.js +1 -0
- package/www/build/p-992602db.system.js +1 -0
- package/www/host.config.json +15 -0
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/**
|
|
4
|
+
* This is an autogenerated file created by the Stencil compiler.
|
|
5
|
+
* It contains typing information for all components that exist in this project.
|
|
6
|
+
*/
|
|
7
|
+
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
|
+
import { AutocompleteType } from "./types/autocomplete";
|
|
9
|
+
import { ThemeStatusVariantType } from "./types/variant";
|
|
10
|
+
import { InputTextType } from "./types/input-text-type";
|
|
11
|
+
import { InputValueType } from "./types/input-value-type";
|
|
12
|
+
import { InputValue } from "./components/mds-input/meta/interfaces";
|
|
13
|
+
export namespace Components {
|
|
14
|
+
interface MdsInput {
|
|
15
|
+
/**
|
|
16
|
+
* Specifies whether the element should have autocomplete enabled
|
|
17
|
+
*/
|
|
18
|
+
"autocomplete"?: AutocompleteType;
|
|
19
|
+
/**
|
|
20
|
+
* Specifies that the element should automatically get focus when the page loads
|
|
21
|
+
*/
|
|
22
|
+
"autofocus"?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* A list of search terms to be searched from the input field, it should be used with type="search" input.
|
|
25
|
+
*/
|
|
26
|
+
"datalist"?: string[];
|
|
27
|
+
/**
|
|
28
|
+
* If true, the element is displayed as disabled
|
|
29
|
+
*/
|
|
30
|
+
"disabled"?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Returns the native `<input>` element used under the hood.
|
|
33
|
+
*/
|
|
34
|
+
"getInputElement": () => Promise<HTMLInputElement | HTMLTextAreaElement>;
|
|
35
|
+
/**
|
|
36
|
+
* An icon displayed at the right of the input
|
|
37
|
+
*/
|
|
38
|
+
"icon"?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Specifies the maximum value use it with input type="number" or type="date" Example: max="180", max="2046-12-04"
|
|
41
|
+
*/
|
|
42
|
+
"max"?: number;
|
|
43
|
+
/**
|
|
44
|
+
* Specifies the maximum number of characters allowed in an element use it with input type="number"
|
|
45
|
+
*/
|
|
46
|
+
"maxlength"?: number;
|
|
47
|
+
/**
|
|
48
|
+
* Specifies the minimum value use it with input type="number" or type="date" Example: min="-3", min="1988-04-15"
|
|
49
|
+
*/
|
|
50
|
+
"min"?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Specifies the minimum number of characters allowed in an element use it with input type="number"
|
|
53
|
+
*/
|
|
54
|
+
"minlength"?: number;
|
|
55
|
+
/**
|
|
56
|
+
* Is needed to reference the form data after the form is submitted
|
|
57
|
+
*/
|
|
58
|
+
"name"?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Specifies a regular expression that element\'s value is checked against
|
|
61
|
+
*/
|
|
62
|
+
"pattern"?: string;
|
|
63
|
+
/**
|
|
64
|
+
* Specifies a short hint that describes the expected value of the element
|
|
65
|
+
*/
|
|
66
|
+
"placeholder"?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Specifies that the element is read-only
|
|
69
|
+
*/
|
|
70
|
+
"readonly"?: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* Specifies that the element must be filled out before submitting the form
|
|
73
|
+
*/
|
|
74
|
+
"required"?: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* Sets focus on the specified `my-input`. Use this method instead of the global `input.focus()`.
|
|
77
|
+
*/
|
|
78
|
+
"setFocus": () => Promise<void>;
|
|
79
|
+
/**
|
|
80
|
+
* Specifies the interval between legal numbers in an input field
|
|
81
|
+
*/
|
|
82
|
+
"step"?: string;
|
|
83
|
+
/**
|
|
84
|
+
* Specifies the type of input element
|
|
85
|
+
*/
|
|
86
|
+
"type": InputTextType;
|
|
87
|
+
/**
|
|
88
|
+
* Specifies the value of the input element
|
|
89
|
+
*/
|
|
90
|
+
"value"?: InputValueType;
|
|
91
|
+
/**
|
|
92
|
+
* Sets the variant of the input field
|
|
93
|
+
*/
|
|
94
|
+
"variant"?: ThemeStatusVariantType;
|
|
95
|
+
/**
|
|
96
|
+
* Sets the word(s) of the variant of the input field
|
|
97
|
+
*/
|
|
98
|
+
"variantTip"?: string;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
declare global {
|
|
102
|
+
interface HTMLMdsInputElement extends Components.MdsInput, HTMLStencilElement {
|
|
103
|
+
}
|
|
104
|
+
var HTMLMdsInputElement: {
|
|
105
|
+
prototype: HTMLMdsInputElement;
|
|
106
|
+
new (): HTMLMdsInputElement;
|
|
107
|
+
};
|
|
108
|
+
interface HTMLElementTagNameMap {
|
|
109
|
+
"mds-input": HTMLMdsInputElement;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
declare namespace LocalJSX {
|
|
113
|
+
interface MdsInput {
|
|
114
|
+
/**
|
|
115
|
+
* Specifies whether the element should have autocomplete enabled
|
|
116
|
+
*/
|
|
117
|
+
"autocomplete"?: AutocompleteType;
|
|
118
|
+
/**
|
|
119
|
+
* Specifies that the element should automatically get focus when the page loads
|
|
120
|
+
*/
|
|
121
|
+
"autofocus"?: boolean;
|
|
122
|
+
/**
|
|
123
|
+
* A list of search terms to be searched from the input field, it should be used with type="search" input.
|
|
124
|
+
*/
|
|
125
|
+
"datalist"?: string[];
|
|
126
|
+
/**
|
|
127
|
+
* If true, the element is displayed as disabled
|
|
128
|
+
*/
|
|
129
|
+
"disabled"?: boolean;
|
|
130
|
+
/**
|
|
131
|
+
* An icon displayed at the right of the input
|
|
132
|
+
*/
|
|
133
|
+
"icon"?: string;
|
|
134
|
+
/**
|
|
135
|
+
* Specifies the maximum value use it with input type="number" or type="date" Example: max="180", max="2046-12-04"
|
|
136
|
+
*/
|
|
137
|
+
"max"?: number;
|
|
138
|
+
/**
|
|
139
|
+
* Specifies the maximum number of characters allowed in an element use it with input type="number"
|
|
140
|
+
*/
|
|
141
|
+
"maxlength"?: number;
|
|
142
|
+
/**
|
|
143
|
+
* Specifies the minimum value use it with input type="number" or type="date" Example: min="-3", min="1988-04-15"
|
|
144
|
+
*/
|
|
145
|
+
"min"?: string;
|
|
146
|
+
/**
|
|
147
|
+
* Specifies the minimum number of characters allowed in an element use it with input type="number"
|
|
148
|
+
*/
|
|
149
|
+
"minlength"?: number;
|
|
150
|
+
/**
|
|
151
|
+
* Is needed to reference the form data after the form is submitted
|
|
152
|
+
*/
|
|
153
|
+
"name"?: string;
|
|
154
|
+
/**
|
|
155
|
+
* Emits a void event when input element is blurred
|
|
156
|
+
*/
|
|
157
|
+
"onBlurEvent"?: (event: CustomEvent<void>) => void;
|
|
158
|
+
/**
|
|
159
|
+
* Emits an InputChangeEventDetail when the value of the input element changes
|
|
160
|
+
*/
|
|
161
|
+
"onChangeEvent"?: (event: CustomEvent<InputValue>) => void;
|
|
162
|
+
/**
|
|
163
|
+
* Emits a void event when input element is focused
|
|
164
|
+
*/
|
|
165
|
+
"onFocusEvent"?: (event: CustomEvent<void>) => void;
|
|
166
|
+
/**
|
|
167
|
+
* Emits a KeyboardEvent when a keboard key is pressed on the focused input element
|
|
168
|
+
*/
|
|
169
|
+
"onKeyDownEvent"?: (event: CustomEvent<KeyboardEvent>) => void;
|
|
170
|
+
/**
|
|
171
|
+
* Specifies a regular expression that element\'s value is checked against
|
|
172
|
+
*/
|
|
173
|
+
"pattern"?: string;
|
|
174
|
+
/**
|
|
175
|
+
* Specifies a short hint that describes the expected value of the element
|
|
176
|
+
*/
|
|
177
|
+
"placeholder"?: string;
|
|
178
|
+
/**
|
|
179
|
+
* Specifies that the element is read-only
|
|
180
|
+
*/
|
|
181
|
+
"readonly"?: boolean;
|
|
182
|
+
/**
|
|
183
|
+
* Specifies that the element must be filled out before submitting the form
|
|
184
|
+
*/
|
|
185
|
+
"required"?: boolean;
|
|
186
|
+
/**
|
|
187
|
+
* Specifies the interval between legal numbers in an input field
|
|
188
|
+
*/
|
|
189
|
+
"step"?: string;
|
|
190
|
+
/**
|
|
191
|
+
* Specifies the type of input element
|
|
192
|
+
*/
|
|
193
|
+
"type"?: InputTextType;
|
|
194
|
+
/**
|
|
195
|
+
* Specifies the value of the input element
|
|
196
|
+
*/
|
|
197
|
+
"value"?: InputValueType;
|
|
198
|
+
/**
|
|
199
|
+
* Sets the variant of the input field
|
|
200
|
+
*/
|
|
201
|
+
"variant"?: ThemeStatusVariantType;
|
|
202
|
+
/**
|
|
203
|
+
* Sets the word(s) of the variant of the input field
|
|
204
|
+
*/
|
|
205
|
+
"variantTip"?: string;
|
|
206
|
+
}
|
|
207
|
+
interface IntrinsicElements {
|
|
208
|
+
"mds-input": MdsInput;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
export { LocalJSX as JSX };
|
|
212
|
+
declare module "@stencil/core" {
|
|
213
|
+
export namespace JSX {
|
|
214
|
+
interface IntrinsicElements {
|
|
215
|
+
"mds-input": LocalJSX.MdsInput & JSXBase.HTMLAttributes<HTMLMdsInputElement>;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
declare const buttonVariantDictionary: string[];
|
|
2
|
+
declare const buttonToneVariantDictionary: string[];
|
|
3
|
+
declare const buttonSizeDictionary: string[];
|
|
4
|
+
declare const buttonIconPositionDictionary: string[];
|
|
5
|
+
export { buttonSizeDictionary, buttonToneVariantDictionary, buttonVariantDictionary, buttonIconPositionDictionary, };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const typographyDictionary: string[];
|
|
2
|
+
declare const typographyMonoDictionary: string[];
|
|
3
|
+
declare const typographyPrimaryDictionary: string[];
|
|
4
|
+
declare const typographySecondaryDictionary: string[];
|
|
5
|
+
declare const typographySmallerDictionary: string[];
|
|
6
|
+
export { typographyDictionary, typographyMonoDictionary, typographyPrimaryDictionary, typographySecondaryDictionary, typographySmallerDictionary, };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const themeVariantDictionary: string[];
|
|
2
|
+
declare const themeLuminanceVariantDictionary: string[];
|
|
3
|
+
declare const themeStatusVariantDictionary: string[];
|
|
4
|
+
declare const themeFullVariantDictionary: string[];
|
|
5
|
+
declare const themeLabelVariantDictionary: string[];
|
|
6
|
+
declare const toneVariantDictionary: string[];
|
|
7
|
+
declare const toneSimpleVariantDictionary: string[];
|
|
8
|
+
declare const toneMinimalVariantDictionary: string[];
|
|
9
|
+
export { themeFullVariantDictionary, themeLabelVariantDictionary, themeLuminanceVariantDictionary, themeStatusVariantDictionary, themeVariantDictionary, toneMinimalVariantDictionary, toneSimpleVariantDictionary, toneVariantDictionary, };
|