@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.
Files changed (126) hide show
  1. package/dist/cjs/index-3aa055da.js +1207 -0
  2. package/dist/cjs/index.cjs.js +2 -0
  3. package/dist/cjs/loader.cjs.js +21 -0
  4. package/dist/cjs/mds-input.cjs.entry.js +162 -0
  5. package/dist/cjs/mds-input.cjs.js +19 -0
  6. package/dist/collection/collection-manifest.json +12 -0
  7. package/dist/collection/components/mds-input/mds-input.css +482 -0
  8. package/dist/collection/components/mds-input/mds-input.js +586 -0
  9. package/dist/collection/components/mds-input/meta/interfaces.js +1 -0
  10. package/dist/collection/components/mds-input/test/mds-input.stories.js +165 -0
  11. package/dist/collection/dictionary/autocomplete.js +59 -0
  12. package/dist/collection/dictionary/button.js +26 -0
  13. package/dist/collection/dictionary/color.js +19 -0
  14. package/dist/collection/dictionary/icon.js +3 -0
  15. package/dist/collection/dictionary/input-text-type.js +13 -0
  16. package/dist/collection/dictionary/loading.js +5 -0
  17. package/dist/collection/dictionary/typography.js +43 -0
  18. package/dist/collection/dictionary/variant.js +65 -0
  19. package/dist/collection/fixtures/cities.js +110 -0
  20. package/dist/collection/interface/input-value.js +1 -0
  21. package/dist/collection/types/autocomplete.js +1 -0
  22. package/dist/collection/types/button.js +1 -0
  23. package/dist/collection/types/form-rel.js +1 -0
  24. package/dist/collection/types/input-text-type.js +1 -0
  25. package/dist/collection/types/input-value-type.js +1 -0
  26. package/dist/collection/types/loading.js +1 -0
  27. package/dist/collection/types/typography.js +1 -0
  28. package/dist/collection/types/variant.js +1 -0
  29. package/dist/components/index.d.ts +26 -0
  30. package/dist/components/index.js +1 -0
  31. package/dist/components/mds-input.d.ts +11 -0
  32. package/dist/components/mds-input.js +200 -0
  33. package/dist/esm/index-2cdf06e7.js +1179 -0
  34. package/dist/esm/index.js +1 -0
  35. package/dist/esm/loader.js +17 -0
  36. package/dist/esm/mds-input.entry.js +158 -0
  37. package/dist/esm/mds-input.js +17 -0
  38. package/dist/esm/polyfills/core-js.js +11 -0
  39. package/dist/esm/polyfills/css-shim.js +1 -0
  40. package/dist/esm/polyfills/dom.js +79 -0
  41. package/dist/esm/polyfills/es5-html-element.js +1 -0
  42. package/dist/esm/polyfills/index.js +34 -0
  43. package/dist/esm/polyfills/system.js +6 -0
  44. package/dist/esm-es5/index-2cdf06e7.js +1 -0
  45. package/dist/esm-es5/index.js +0 -0
  46. package/dist/esm-es5/loader.js +1 -0
  47. package/dist/esm-es5/mds-input.entry.js +1 -0
  48. package/dist/esm-es5/mds-input.js +1 -0
  49. package/dist/index.cjs.js +1 -0
  50. package/dist/index.js +1 -0
  51. package/dist/mds-input/index.esm.js +0 -0
  52. package/dist/mds-input/mds-input.esm.js +1 -0
  53. package/dist/mds-input/mds-input.js +130 -0
  54. package/dist/mds-input/p-132bdeae.system.entry.js +1 -0
  55. package/dist/mds-input/p-275873d7.entry.js +1 -0
  56. package/dist/mds-input/p-50ea2036.system.js +1 -0
  57. package/dist/mds-input/p-8bdf82a6.js +1 -0
  58. package/dist/mds-input/p-91d946fe.system.js +1 -0
  59. package/dist/mds-input/p-992602db.system.js +1 -0
  60. package/dist/stats.json +1424 -0
  61. package/dist/types/components/mds-input/meta/interfaces.d.ts +4 -0
  62. package/dist/types/components.d.ts +218 -0
  63. package/dist/types/dictionary/autocomplete.d.ts +2 -0
  64. package/dist/types/dictionary/button.d.ts +5 -0
  65. package/dist/types/dictionary/color.d.ts +3 -0
  66. package/dist/types/dictionary/icon.d.ts +2 -0
  67. package/dist/types/dictionary/input-text-type.d.ts +2 -0
  68. package/dist/types/dictionary/loading.d.ts +2 -0
  69. package/dist/types/dictionary/typography.d.ts +6 -0
  70. package/dist/types/dictionary/variant.d.ts +9 -0
  71. package/dist/types/fixtures/cities.d.ts +2 -0
  72. package/dist/types/interface/input-value.d.ts +4 -0
  73. package/dist/types/stencil-public-runtime.d.ts +1565 -0
  74. package/dist/types/types/autocomplete.d.ts +2 -0
  75. package/dist/types/types/button.d.ts +4 -0
  76. package/dist/types/types/form-rel.d.ts +1 -0
  77. package/dist/types/types/input-text-type.d.ts +1 -0
  78. package/dist/types/types/input-value-type.d.ts +1 -0
  79. package/dist/types/types/loading.d.ts +1 -0
  80. package/dist/types/types/typography.d.ts +5 -0
  81. package/dist/types/types/variant.d.ts +10 -0
  82. package/loader/cdn.js +3 -0
  83. package/loader/index.cjs.js +3 -0
  84. package/loader/index.d.ts +12 -0
  85. package/loader/index.es2017.js +3 -0
  86. package/loader/index.js +4 -0
  87. package/loader/package.json +10 -0
  88. package/package.json +46 -0
  89. package/readme.md +97 -0
  90. package/src/components/mds-input/css/mds-input-variant.css +65 -0
  91. package/src/components/mds-input/mds-input.css +133 -0
  92. package/src/components/mds-input/mds-input.tsx +294 -0
  93. package/src/components/mds-input/meta/interfaces.ts +5 -0
  94. package/src/components/mds-input/readme.md +77 -0
  95. package/src/components/mds-input/test/mds-input.e2e.ts +12 -0
  96. package/src/components/mds-input/test/mds-input.spec.tsx +19 -0
  97. package/src/components/mds-input/test/mds-input.stories.js +165 -0
  98. package/src/components.d.ts +218 -0
  99. package/src/dictionary/autocomplete.ts +62 -0
  100. package/src/dictionary/button.ts +35 -0
  101. package/src/dictionary/color.ts +24 -0
  102. package/src/dictionary/icon.ts +5 -0
  103. package/src/dictionary/input-text-type.ts +17 -0
  104. package/src/dictionary/loading.ts +9 -0
  105. package/src/dictionary/typography.ts +54 -0
  106. package/src/dictionary/variant.ts +82 -0
  107. package/src/fixtures/cities.ts +116 -0
  108. package/src/interface/input-value.ts +5 -0
  109. package/src/types/autocomplete.ts +69 -0
  110. package/src/types/button.ts +24 -0
  111. package/src/types/form-rel.ts +11 -0
  112. package/src/types/input-text-type.ts +11 -0
  113. package/src/types/input-value-type.ts +5 -0
  114. package/src/types/loading.ts +3 -0
  115. package/src/types/typography.ts +41 -0
  116. package/src/types/variant.ts +73 -0
  117. package/www/build/index.esm.js +0 -0
  118. package/www/build/mds-input.esm.js +1 -0
  119. package/www/build/mds-input.js +130 -0
  120. package/www/build/p-132bdeae.system.entry.js +1 -0
  121. package/www/build/p-275873d7.entry.js +1 -0
  122. package/www/build/p-50ea2036.system.js +1 -0
  123. package/www/build/p-8bdf82a6.js +1 -0
  124. package/www/build/p-91d946fe.system.js +1 -0
  125. package/www/build/p-992602db.system.js +1 -0
  126. package/www/host.config.json +15 -0
@@ -0,0 +1,4 @@
1
+ import { InputValueType } from '../../../types/input-value-type';
2
+ export interface InputValue {
3
+ value: InputValueType;
4
+ }
@@ -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,2 @@
1
+ declare const autoCompleteDictionary: string[];
2
+ export { autoCompleteDictionary, };
@@ -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,3 @@
1
+ declare const colorLabelDictionary: string[];
2
+ declare const colorStatusDictionary: string[];
3
+ export { colorLabelDictionary, colorStatusDictionary, };
@@ -0,0 +1,2 @@
1
+ declare const iconsDictionary: string[];
2
+ export { iconsDictionary, };
@@ -0,0 +1,2 @@
1
+ declare const inputTextTypeDictionary: string[];
2
+ export { inputTextTypeDictionary, };
@@ -0,0 +1,2 @@
1
+ declare const loadingDictionary: string[];
2
+ export { loadingDictionary, };
@@ -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, };
@@ -0,0 +1,2 @@
1
+ declare const citiesDictionary: string[];
2
+ export { citiesDictionary, };
@@ -0,0 +1,4 @@
1
+ import { InputValueType } from '../types/input-value-type';
2
+ export interface InputValue {
3
+ value: InputValueType;
4
+ }