@aurodesignsystem/auro-formkit 2.0.0-beta.17 → 2.0.0-beta.18

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 (135) hide show
  1. package/.turbo/cache/000950e13093845f-meta.json +1 -1
  2. package/.turbo/cache/000950e13093845f.tar.zst +0 -0
  3. package/.turbo/cache/06ca4027e423c554-meta.json +1 -1
  4. package/.turbo/cache/06ca4027e423c554.tar.zst +0 -0
  5. package/.turbo/cache/2059bc724ac24519-meta.json +1 -1
  6. package/.turbo/cache/2059bc724ac24519.tar.zst +0 -0
  7. package/.turbo/cache/23b3a2fea223679d-meta.json +1 -1
  8. package/.turbo/cache/23b3a2fea223679d.tar.zst +0 -0
  9. package/.turbo/cache/26dbf393768f87cc-meta.json +1 -1
  10. package/.turbo/cache/2c0d681132c153dd-meta.json +1 -1
  11. package/.turbo/cache/31bd5687f46c7eba-meta.json +1 -1
  12. package/.turbo/cache/32b28ddf2ebb2080-meta.json +1 -0
  13. package/.turbo/cache/32b28ddf2ebb2080.tar.zst +0 -0
  14. package/.turbo/cache/3488cff10dd06acd-meta.json +1 -1
  15. package/.turbo/cache/3488cff10dd06acd.tar.zst +0 -0
  16. package/.turbo/cache/4006a206400d5c7b-meta.json +1 -1
  17. package/.turbo/cache/43693504bf6e7c4c-meta.json +1 -1
  18. package/.turbo/cache/45cd32cd38eacbcb-meta.json +1 -1
  19. package/.turbo/cache/492dda333b8d15f1-meta.json +1 -1
  20. package/.turbo/cache/50cd7dcfc9f820c5-meta.json +1 -1
  21. package/.turbo/cache/51eaa58d5c167de8-meta.json +1 -1
  22. package/.turbo/cache/56f2745125fdd552-meta.json +1 -1
  23. package/.turbo/cache/56f2745125fdd552.tar.zst +0 -0
  24. package/.turbo/cache/5b57cc0e26e1fd5d-meta.json +1 -1
  25. package/.turbo/cache/5f43911cbacf7df1-meta.json +1 -1
  26. package/.turbo/cache/5f43911cbacf7df1.tar.zst +0 -0
  27. package/.turbo/cache/60ad74320c682a2b-meta.json +1 -1
  28. package/.turbo/cache/61e218aba69cff58-meta.json +1 -1
  29. package/.turbo/cache/627be3e4a8af1d61-meta.json +1 -0
  30. package/.turbo/cache/627be3e4a8af1d61.tar.zst +0 -0
  31. package/.turbo/cache/631d441eebe7e4ac-meta.json +1 -0
  32. package/.turbo/cache/631d441eebe7e4ac.tar.zst +0 -0
  33. package/.turbo/cache/647bda3b31d82dc2-meta.json +1 -1
  34. package/.turbo/cache/647bda3b31d82dc2.tar.zst +0 -0
  35. package/.turbo/cache/6951c2a52e5ab5f7-meta.json +1 -1
  36. package/.turbo/cache/6951c2a52e5ab5f7.tar.zst +0 -0
  37. package/.turbo/cache/77da375a012de9d0-meta.json +1 -1
  38. package/.turbo/cache/78418f9089673a21-meta.json +1 -1
  39. package/.turbo/cache/7964d1656e9e702a-meta.json +1 -1
  40. package/.turbo/cache/7bf2b06a479d0b30-meta.json +1 -1
  41. package/.turbo/cache/7c9ca6163e61285c-meta.json +1 -1
  42. package/.turbo/cache/80ebd4b1fa5c1e3a-meta.json +1 -0
  43. package/.turbo/cache/80ebd4b1fa5c1e3a.tar.zst +0 -0
  44. package/.turbo/cache/876b8fa390c8ec81-meta.json +1 -1
  45. package/.turbo/cache/8bb856bd31b5b479-meta.json +1 -1
  46. package/.turbo/cache/8f287fd5d33579ae-meta.json +1 -1
  47. package/.turbo/cache/8f287fd5d33579ae.tar.zst +0 -0
  48. package/.turbo/cache/8f5fef3e04a6fcfa-meta.json +1 -1
  49. package/.turbo/cache/9d99fa3ab31d272f-meta.json +1 -0
  50. package/.turbo/cache/9d99fa3ab31d272f.tar.zst +0 -0
  51. package/.turbo/cache/9fd27f9b819a406a-meta.json +1 -0
  52. package/.turbo/cache/9fd27f9b819a406a.tar.zst +0 -0
  53. package/.turbo/cache/a227e8174447e364-meta.json +1 -1
  54. package/.turbo/cache/a779ea8b78ce9d59-meta.json +1 -1
  55. package/.turbo/cache/a9c36a3534c5496b-meta.json +1 -1
  56. package/.turbo/cache/b2313238e565c28e-meta.json +1 -0
  57. package/.turbo/cache/b2313238e565c28e.tar.zst +0 -0
  58. package/.turbo/cache/b5e6dc7fb9ae1a2f-meta.json +1 -1
  59. package/.turbo/cache/b6a202cc85cb61a0-meta.json +1 -1
  60. package/.turbo/cache/ba270a0ef147f2e5-meta.json +1 -1
  61. package/.turbo/cache/be0b95293ea517cc-meta.json +1 -1
  62. package/.turbo/cache/c03a12ff38ba1e02-meta.json +1 -1
  63. package/.turbo/cache/c1312c6f8c051461-meta.json +1 -1
  64. package/.turbo/cache/c1312c6f8c051461.tar.zst +0 -0
  65. package/.turbo/cache/c6c6411199b68170-meta.json +1 -1
  66. package/.turbo/cache/c6dbc49c3038946d-meta.json +1 -1
  67. package/.turbo/cache/cae7586c45bed13e-meta.json +1 -1
  68. package/.turbo/cache/cae7586c45bed13e.tar.zst +0 -0
  69. package/.turbo/cache/cf143eb1a55684db-meta.json +1 -1
  70. package/.turbo/cache/cf143eb1a55684db.tar.zst +0 -0
  71. package/.turbo/cache/d5b85352bc667f19-meta.json +1 -1
  72. package/.turbo/cache/d5b85352bc667f19.tar.zst +0 -0
  73. package/.turbo/cache/d5db503b2eaf239c-meta.json +1 -1
  74. package/.turbo/cache/d775555355d6b8fc-meta.json +1 -1
  75. package/.turbo/cache/d7c3007be148d2a1-meta.json +1 -1
  76. package/.turbo/cache/db5e65d819bfe66b-meta.json +1 -1
  77. package/.turbo/cache/dc597b3ea4f61ec8-meta.json +1 -1
  78. package/.turbo/cache/e62cfee068e3ef36-meta.json +1 -1
  79. package/.turbo/cache/f2913bf19939d840-meta.json +1 -1
  80. package/.turbo/cache/f2913bf19939d840.tar.zst +0 -0
  81. package/.turbo/cache/f86b28e5ea2c66fe-meta.json +1 -1
  82. package/CHANGELOG.md +13 -0
  83. package/components/checkbox/.turbo/turbo-build.log +3 -3
  84. package/components/checkbox/.turbo/turbo-bundler.log +3 -3
  85. package/components/checkbox/README.md +1 -1
  86. package/components/combobox/.turbo/turbo-build.log +3 -3
  87. package/components/combobox/README.md +4 -4
  88. package/components/counter/.turbo/turbo-build.log +3 -3
  89. package/components/counter/.turbo/turbo-bundler.log +6 -3
  90. package/components/counter/README.md +1 -1
  91. package/components/datepicker/.turbo/turbo-build.log +2 -2
  92. package/components/datepicker/README.md +4 -4
  93. package/components/dropdown/.turbo/turbo-build.log +3 -3
  94. package/components/dropdown/.turbo/turbo-bundler.log +2 -2
  95. package/components/dropdown/README.md +1 -1
  96. package/components/form/.turbo/turbo-build.log +3 -3
  97. package/components/form/.turbo/turbo-bundler.log +3 -3
  98. package/components/form/README.md +1 -1
  99. package/components/form/demo/api.min.js +218 -70
  100. package/components/form/demo/index.min.js +218 -70
  101. package/components/form/demo/registerDemoDeps.js +3 -2
  102. package/components/form/demo/working.html +23 -1
  103. package/components/form/dist/auro-form.d.ts +60 -6
  104. package/components/form/dist/auro-form.d.ts.map +1 -1
  105. package/components/form/dist/index.js +218 -70
  106. package/components/form/src/auro-form.js +216 -68
  107. package/components/form/src/styles/style-css.js +1 -1
  108. package/components/form/src/styles/style.css +0 -8
  109. package/components/form/src/styles/style.scss +0 -10
  110. package/components/input/.turbo/turbo-build.log +2 -2
  111. package/components/input/.turbo/turbo-bundler.log +1 -1
  112. package/components/input/README.md +1 -1
  113. package/components/menu/.turbo/turbo-build.log +3 -3
  114. package/components/menu/.turbo/turbo-bundler.log +3 -3
  115. package/components/menu/README.md +1 -1
  116. package/components/radio/.turbo/turbo-build.log +3 -3
  117. package/components/radio/.turbo/turbo-bundler.log +3 -3
  118. package/components/radio/README.md +1 -1
  119. package/components/select/.turbo/turbo-build.log +3 -3
  120. package/components/select/README.md +3 -3
  121. package/package.json +1 -1
  122. package/.turbo/cache/02ee016619902665-meta.json +0 -1
  123. package/.turbo/cache/02ee016619902665.tar.zst +0 -0
  124. package/.turbo/cache/1e855b2163b7c980-meta.json +0 -1
  125. package/.turbo/cache/1e855b2163b7c980.tar.zst +0 -0
  126. package/.turbo/cache/3c8718d2ba6d3fe5-meta.json +0 -1
  127. package/.turbo/cache/3c8718d2ba6d3fe5.tar.zst +0 -0
  128. package/.turbo/cache/8fcce3ba8357be57-meta.json +0 -1
  129. package/.turbo/cache/8fcce3ba8357be57.tar.zst +0 -0
  130. package/.turbo/cache/9b5868be65819fdf-meta.json +0 -1
  131. package/.turbo/cache/9b5868be65819fdf.tar.zst +0 -0
  132. package/.turbo/cache/c3b2cc1b044a4135-meta.json +0 -1
  133. package/.turbo/cache/c3b2cc1b044a4135.tar.zst +0 -0
  134. package/.turbo/cache/e392fe0927e4af23-meta.json +0 -1
  135. package/.turbo/cache/e392fe0927e4af23.tar.zst +0 -0
@@ -1,4 +1,4 @@
1
- /* eslint-disable no-underscore-dangle */
1
+ /* eslint-disable no-underscore-dangle,max-lines */
2
2
 
3
3
  // Copyright (c) 2024 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
4
4
  // See LICENSE in the project root for license information.
@@ -37,7 +37,12 @@ import AuroLibraryRuntimeUtils from '@aurodesignsystem/auro-library/scripts/util
37
37
  export class AuroForm extends LitElement {
38
38
  static get properties() {
39
39
  return {
40
- _formState: { attribute: false },
40
+ formState: { attribute: false },
41
+ _validity: { attribute: false },
42
+ _isInitialState: { attribute: false },
43
+ _elements: { attribute: false },
44
+ _submitElements: { attribute: false },
45
+ _resetElements: { attribute: false },
41
46
  };
42
47
  }
43
48
 
@@ -45,7 +50,24 @@ export class AuroForm extends LitElement {
45
50
  super();
46
51
 
47
52
  /** @type {FormState} */
48
- this._formState = {};
53
+ this.formState = {};
54
+
55
+ /** @type {"valid" | "invalid" | null} */
56
+ this._validity = null;
57
+ this._isInitialState = true;
58
+
59
+ /** @type {(HTMLElement & {reset: () => void})[]} */
60
+ this._elements = [];
61
+
62
+ /** @type {HTMLButtonElement[]} */
63
+ this._submitelements = [];
64
+
65
+ /** @type {HTMLButtonElement[]} */
66
+ this._resetElements = [];
67
+
68
+ // Bind listeners
69
+ this.reset = this.reset.bind(this);
70
+ this.submit = this.submit.bind(this);
49
71
  }
50
72
 
51
73
  // Note: button is NOT considered a form element in this context
@@ -79,7 +101,7 @@ export class AuroForm extends LitElement {
79
101
  return this._isInElementCollection(AuroForm.formElementTags, element);
80
102
  }
81
103
 
82
- static get submitElementTags() {
104
+ static get buttonElementTags() {
83
105
  return [
84
106
  'button',
85
107
  'auro-button',
@@ -87,12 +109,12 @@ export class AuroForm extends LitElement {
87
109
  }
88
110
 
89
111
  /**
90
- * Check if the tag name is a submit element.
112
+ * Check if the tag name is a button element.
91
113
  * @param {HTMLElement} element - The element to check.
92
114
  * @returns {boolean}
93
115
  */
94
- isSubmitElement(element) {
95
- return this._isInElementCollection(AuroForm.submitElementTags, element);
116
+ isButtonElement(element) {
117
+ return this._isInElementCollection(AuroForm.buttonElementTags, element);
96
118
  }
97
119
 
98
120
  static get styles() {
@@ -109,45 +131,76 @@ export class AuroForm extends LitElement {
109
131
  * @returns {Record<string, string | number | boolean | string[] | null>} The form value.
110
132
  */
111
133
  get value() {
112
- return Object.keys(this._formState).reduce((acc, key) => {
113
- acc[key] = this._formState[key].value;
134
+ return Object.keys(this.formState).reduce((acc, key) => {
135
+ acc[key] = this.formState[key].value;
114
136
  return acc;
115
137
  }, {});
116
138
  }
117
139
 
140
+ /**
141
+ * Infer validity status based on current formState.
142
+ * @private
143
+ */
144
+ _calculateValidity() {
145
+ if (this.isInitialState) {
146
+ this._validity = null;
147
+ } else {
148
+ // go through validity states and return the first invalid state (if any)
149
+ const invalidKey = Object.keys(this.formState).
150
+ find((key) => {
151
+ const formKey = this.formState[key];
152
+ // these are NOT extra parens
153
+ // eslint-disable-next-line no-extra-parens
154
+ return (formKey.validity !== 'valid' && formKey.required) || (formKey.validity !== 'valid' && formKey.value !== null);
155
+ });
156
+ this._validity = invalidKey ? 'invalid' : 'valid';
157
+ }
158
+ }
159
+
160
+ /**
161
+ * Current validity state of the form, based on form element events.
162
+ * @returns {"valid" | "invalid"}
163
+ */
118
164
  get validity() {
119
- // go through validity states and return the first invalid state (if any)
120
- const invalidKey = Object.keys(this._formState).
121
- find((key) => {
122
- const formKey = this._formState[key];
123
-
124
- // these are NOT extra :(
125
- // eslint-disable-next-line no-extra-parens
126
- return (formKey.validity !== 'valid' && formKey.required) || (formKey.validity !== 'valid' && formKey.value !== null);
127
- });
165
+ return this._validity;
166
+ }
167
+
168
+ _setInitialState() {
169
+ const anyTainted = Object.keys(this.formState).some((key) => this.formState[key].validity !== null || this.formState[key].value !== null);
128
170
 
129
- return invalidKey ? 'invalid' : 'valid';
171
+ this._isInitialState = !anyTainted;
172
+
173
+ this._resetElements.forEach((resetElement) => {
174
+ if (resetElement.hasAttribute("disabled")) {
175
+ resetElement.removeAttribute("disabled");
176
+ }
177
+ });
130
178
  }
131
179
 
132
- // Below is not implemented yet
180
+ /**
181
+ * Mostly internal way to determine if a form is in the initial state.
182
+ * @returns {boolean}
183
+ */
133
184
  get isInitialState() {
134
- const anyTainted = Object.keys(this._formState).some((key) => this._formState[key].validity !== null);
135
-
136
- return !anyTainted;
185
+ return this._isInitialState;
137
186
  }
138
187
 
139
- getSubmitFunction() {
140
- // We return an arrow function here to ensure that the `this` context points at this same AuroForm context.
141
- // Otherwise, submission tries to read `this.value` on the button element.
142
- return (event) => {
143
- event.preventDefault();
188
+ setDisabledStateOnButtons() {
189
+ this._resetElements.forEach((element) => {
190
+ if (this.isInitialState) {
191
+ element.setAttribute("disabled", "");
192
+ } else {
193
+ element.removeAttribute("disabled");
194
+ }
195
+ });
144
196
 
145
- this.dispatchEvent(new CustomEvent('submit', {
146
- detail: {
147
- value: this.value
148
- }
149
- }));
150
- };
197
+ this._submitelements.forEach((element) => {
198
+ if (this.isInitialState || this.validity !== "valid") {
199
+ element.setAttribute("disabled", "");
200
+ } else {
201
+ element.removeAttribute("disabled");
202
+ }
203
+ });
151
204
  }
152
205
 
153
206
  /**
@@ -155,16 +208,111 @@ export class AuroForm extends LitElement {
155
208
  * @returns {NodeList}
156
209
  */
157
210
  queryAuroElements() {
158
- const formElementQuery = AuroForm.formElementTags.map((tag) => `${tag}[name]`).join(',');
159
- const submitterQuery = AuroForm.submitElementTags.map((tag) => `${tag}[type=submit]`).join(',');
211
+ const queries = [
212
+ [
213
+ AuroForm.formElementTags,
214
+ '[name]'
215
+ ],
216
+ [
217
+ AuroForm.buttonElementTags,
218
+ '[type=submit]'
219
+ ],
220
+ [
221
+ AuroForm.buttonElementTags,
222
+ '[type=reset]'
223
+ ]
224
+ ];
225
+
226
+ return this.querySelectorAll(queries.flatMap(([
227
+ tags,
228
+ extraAttributes
229
+ ]) => tags.map((tag) => `${tag}${extraAttributes}, [${tag}]${extraAttributes}`)).join(', '));
230
+ }
160
231
 
161
- // Alternatively, for renamed components...
162
- const renamedFormElementQuery = AuroForm.formElementTags.map((tag) => `[${tag}][name]`).join(',');
163
- const renamedSubmitterQuery = AuroForm.formElementTags.map((tag) => `[${tag}][type=submit]`).join(',');
232
+ /**
233
+ * Initialize (or reinitialize) the form state.
234
+ */
235
+ initializeState() {
236
+ this.formState = {};
237
+ this._submitelements = [];
238
+ this._resetElements = [];
239
+ this._elements = [];
240
+
241
+ this.queryAuroElements().forEach((element) => {
242
+ if (this.isFormElement(element)) {
243
+ this.formState[element.getAttribute('name')] = {
244
+ value: element.getAttribute('value'),
245
+ validity: element.getAttribute('validity'),
246
+ required: element.hasAttribute('required'),
247
+ // element
248
+ };
164
249
 
165
- const unifiedElementQuery = `${formElementQuery},${submitterQuery},${renamedFormElementQuery},${renamedSubmitterQuery}`;
250
+ this._elements.push(element);
251
+ }
166
252
 
167
- return this.querySelectorAll(unifiedElementQuery);
253
+ if (this.isButtonElement(element) && element.getAttribute('type') === 'submit') {
254
+ element.removeEventListener('click', this.submit);
255
+ element.addEventListener('click', this.submit);
256
+
257
+ // Keep record of this element, so we can enable/disable as needed
258
+ this._submitelements.push(element);
259
+ }
260
+
261
+ if (this.isButtonElement(element) && element.getAttribute('type') === 'reset') {
262
+ // Keep record of this element, so we can enable/disable as needed
263
+ element.removeEventListener('click', this.reset);
264
+ element.addEventListener('click', this.reset);
265
+
266
+ this._resetElements.push(element);
267
+ }
268
+ });
269
+
270
+ // Set enabled/disabled states on buttons
271
+ this.setDisabledStateOnButtons();
272
+ }
273
+
274
+ reset() {
275
+ this._elements.forEach((element) => element.reset());
276
+
277
+ this.updateComplete.then(() => {
278
+ this.initializeState();
279
+ // Initial state must come first - validity can only be null if initial state is true
280
+ this._setInitialState();
281
+ this._calculateValidity();
282
+
283
+ // Wait for the above changes to run through, then disable submit/reset
284
+ this.updateComplete.then(() => {
285
+ this.setDisabledStateOnButtons();
286
+ });
287
+ });
288
+ }
289
+
290
+ /**
291
+ * Submit fires an event called `submit` - just as you would expect from a normal form.
292
+ *
293
+ * @example ```
294
+ * const form = document.querySelector('auro-
295
+ * ```
296
+ */
297
+ submit() {
298
+ // Steps required to get out of beta:
299
+ // 1. Submit triggers a forced validation on ALL elements
300
+ // 2. Wait for validation to complete (this.updateComplete.then or similar)
301
+ // 3. If still valid, go ahead with submit.
302
+ this._elements.forEach((element) => {
303
+ if (element.tagName.toLowerCase() !== "auro-datepicker") {
304
+ // Next line currently does NOT force
305
+ element.validate();
306
+ }
307
+ });
308
+
309
+ this.dispatchEvent(new CustomEvent('submit', {
310
+ bubbles: true,
311
+ composed: true,
312
+ detail: {
313
+ value: this.value
314
+ }
315
+ }));
168
316
  }
169
317
 
170
318
  /**
@@ -186,49 +334,49 @@ export class AuroForm extends LitElement {
186
334
 
187
335
  // Update the form state when a form element is detected
188
336
  slot.addEventListener('input', (event) => {
189
-
190
- /** @type {HTMLInputElement} */
191
- const eventTarget = event.target;
192
- if (this.isFormElement(eventTarget)) {
193
- this._formState[eventTarget.getAttribute("name")].value = eventTarget.value;
337
+ const targetName = event.target.getAttribute("name");
338
+ if (!this.isFormElement(event.target) || !targetName) {
339
+ return;
194
340
  }
341
+
342
+ this.formState[targetName].value = event.target.value;
343
+ this.requestUpdate('formState');
195
344
  });
196
345
 
197
346
  slot.addEventListener('auroFormElement-validated', (event) => {
198
- const oldValue = this._formState;
347
+ const targetName = event.target.getAttribute("name");
348
+ if (!this.isFormElement(event.target) || !targetName) {
349
+ return;
350
+ }
199
351
 
200
- this._formState[event.target.getAttribute("name")].validity = event.detail.validity;
201
- this.requestUpdate('formState', oldValue);
352
+ this.formState[targetName].validity = event.detail.validity;
353
+ this._calculateValidity();
202
354
  });
203
355
  }
204
356
 
205
- onSlotChange() {
206
- this._formState = {};
357
+ updated(_changedProperties) {
358
+ super.updated(_changedProperties);
207
359
 
208
- this.queryAuroElements().forEach((element) => {
209
- if (this.isFormElement(element)) {
210
- this._formState[element.getAttribute('name')] = {
211
- value: element.getAttribute('value'),
212
- validity: element.getAttribute('validity'),
213
- required: element.hasAttribute('required'),
214
- element
215
- };
216
- }
360
+ if (_changedProperties.has("formState")) {
361
+ this._setInitialState();
217
362
 
218
- if (this.isSubmitElement(element) && element.getAttribute('type') === 'submit') {
219
- element.removeEventListener('click', this.getSubmitFunction());
220
- element.addEventListener('click', this.getSubmitFunction());
221
- }
222
- });
363
+ // Automatically infer disabled state now
364
+ this.setDisabledStateOnButtons();
365
+ }
366
+
367
+ if (_changedProperties.has("_validity")) {
368
+ this._setInitialState();
369
+ }
370
+ }
371
+
372
+ onSlotChange() {
373
+ this.initializeState();
223
374
  }
224
375
 
225
376
  // function that renders the HTML and CSS into the scope of the component
226
377
  render() {
227
378
  return html`
228
379
  <form>
229
- <p>Value: ${JSON.stringify(this.value)}</p>
230
- <p>Validity: ${this.validity}</p>
231
- <h3>Auro form example</h3>
232
380
  <slot @slotchange="${this.onSlotChange}"></slot>
233
381
  </form>
234
382
  `;
@@ -1,2 +1,2 @@
1
1
  import { css } from 'lit';
2
- export default css`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.testClass{display:inline-block;padding:var(--auro-text-body-size-default);border:1px solid var(--auro-color-border-error-on-light);color:var(--auro-color-border-error-on-light)}:focus-visible{background-color:var(--auro-color-border-error-on-light);color:var(--auro-color-base-white)}:host form{display:block;width:100%;padding:1rem;border:1px solid #2a2a2a;border-radius:1rem}`;
2
+ export default css`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.testClass{display:inline-block;padding:var(--auro-text-body-size-default);border:1px solid var(--auro-color-border-error-on-light);color:var(--auro-color-border-error-on-light)}:focus-visible{background-color:var(--auro-color-border-error-on-light);color:var(--auro-color-base-white)}`;
@@ -34,11 +34,3 @@
34
34
  background-color: var(--auro-color-border-error-on-light);
35
35
  color: var(--auro-color-base-white);
36
36
  }
37
-
38
- :host form {
39
- display: block;
40
- width: 100%;
41
- padding: 1rem;
42
- border: 1px solid #2a2a2a;
43
- border-radius: 1rem;
44
- }
@@ -35,13 +35,3 @@
35
35
  background-color: var(--auro-color-border-error-on-light);
36
36
  color: var(--auro-color-base-white);
37
37
  }
38
-
39
- :host {
40
- form {
41
- display: block;
42
- width: 100%;
43
- padding: 1rem;
44
- border: 1px solid #2a2a2a;
45
- border-radius: 1rem;
46
- }
47
- }
@@ -216,10 +216,10 @@ More info and automated migrator: https://sass-lang.com/d/import
216
216
 
217
217
  
218
218
  ./src/index.js → dist...
219
- created dist in 1s
219
+ created dist in 1.3s
220
220
  
221
221
  ./demo/index.js → ./demo/...
222
- created ./demo/ in 1.1s
222
+ created ./demo/ in 1s
223
223
  
224
224
  ./demo/api.js → ./demo/...
225
225
  created ./demo/ in 1s
@@ -10,4 +10,4 @@
10
10
  created ./demo/ in 1s
11
11
  
12
12
  ./demo/api.js → ./demo/...
13
- created ./demo/ in 967ms
13
+ created ./demo/ in 894ms
@@ -89,7 +89,7 @@ In cases where the project is not able to process JS assets, there are pre-proce
89
89
  <!-- The below content is automatically added from ../../docs/templates/componentBundleUseModBrowsers.md -->
90
90
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@4.12.1/dist/tokens/CSSCustomProperties.css" />
91
91
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@5.1.2/dist/bundled/essentials.css" />
92
- <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-input@2.0.0-beta.16/dist/auro-input__bundled.js" type="module"></script>
92
+ <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-input@2.0.0-beta.17/dist/auro-input__bundled.js" type="module"></script>
93
93
  <!-- AURO-GENERATED-CONTENT:END -->
94
94
 
95
95
  ## auro-input use cases
@@ -101,13 +101,13 @@ More info and automated migrator: https://sass-lang.com/d/import
101
101
 
102
102
  
103
103
  ./src/index.js → dist...
104
- created dist in 873ms
104
+ created dist in 602ms
105
105
  
106
106
  ./demo/index.js → ./demo/...
107
- created ./demo/ in 417ms
107
+ created ./demo/ in 453ms
108
108
  
109
109
  ./demo/api.js → ./demo/...
110
- created ./demo/ in 456ms
110
+ created ./demo/ in 285ms
111
111
 
112
112
  > @aurodesignsystem/auro-menu@4.1.4 build:docs
113
113
  > wca analyze 'scripts/wca/*.js' --outFiles docs/api.md; node ../../packages/build-tools/src/docProcessor.mjs --component menu
@@ -4,10 +4,10 @@
4
4
 
5
5
  
6
6
  ./src/index.js → dist...
7
- created dist in 1s
7
+ created dist in 892ms
8
8
  
9
9
  ./demo/index.js → ./demo/...
10
- created ./demo/ in 824ms
10
+ created ./demo/ in 808ms
11
11
  
12
12
  ./demo/api.js → ./demo/...
13
- created ./demo/ in 571ms
13
+ created ./demo/ in 533ms
@@ -100,7 +100,7 @@ In cases where the project is not able to process JS assets, there are pre-proce
100
100
  <!-- The below content is automatically added from ../../docs/templates/componentBundleUseModBrowsers.md -->
101
101
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@4.12.1/dist/tokens/CSSCustomProperties.css" />
102
102
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@5.1.2/dist/bundled/essentials.css" />
103
- <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-menu@2.0.0-beta.16/dist/auro-menu__bundled.js" type="module"></script>
103
+ <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-menu@2.0.0-beta.17/dist/auro-menu__bundled.js" type="module"></script>
104
104
  <!-- AURO-GENERATED-CONTENT:END -->
105
105
 
106
106
  ## auro-menu use cases
@@ -138,13 +138,13 @@ Run in verbose mode to see all warnings.
138
138
 
139
139
  
140
140
  ./src/index.js → dist...
141
- created dist in 753ms
141
+ created dist in 480ms
142
142
  
143
143
  ./demo/index.js → ./demo/...
144
- created ./demo/ in 406ms
144
+ created ./demo/ in 334ms
145
145
  
146
146
  ./demo/api.js → ./demo/...
147
- created ./demo/ in 504ms
147
+ created ./demo/ in 447ms
148
148
 
149
149
  > @aurodesignsystem/auro-radio@4.1.1 build:docs
150
150
  > wca analyze 'scripts/wca/*.js' --outFiles docs/api.md; node ../../packages/build-tools/src/docProcessor.mjs --component radio
@@ -4,10 +4,10 @@
4
4
 
5
5
  
6
6
  ./src/index.js → dist...
7
- created dist in 624ms
7
+ created dist in 661ms
8
8
  
9
9
  ./demo/index.js → ./demo/...
10
- created ./demo/ in 522ms
10
+ created ./demo/ in 471ms
11
11
  
12
12
  ./demo/api.js → ./demo/...
13
- created ./demo/ in 571ms
13
+ created ./demo/ in 552ms
@@ -90,7 +90,7 @@ In cases where the project is not able to process JS assets, there are pre-proce
90
90
  <!-- The below content is automatically added from ../../docs/templates/componentBundleUseModBrowsers.md -->
91
91
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@4.9.2/dist/tokens/CSSCustomProperties.css" />
92
92
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@5.1.2/dist/bundled/essentials.css" />
93
- <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-radio@2.0.0-beta.16/dist/auro-radio__bundled.js" type="module"></script>
93
+ <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-radio@2.0.0-beta.17/dist/auro-radio__bundled.js" type="module"></script>
94
94
  <!-- AURO-GENERATED-CONTENT:END -->
95
95
 
96
96
  ## auro-radio use cases
@@ -137,13 +137,13 @@ More info and automated migrator: https://sass-lang.com/d/import
137
137
 
138
138
  
139
139
  ./src/index.js → dist...
140
- created dist in 988ms
140
+ created dist in 739ms
141
141
  
142
142
  ./demo/index.js → ./demo/...
143
- created ./demo/ in 719ms
143
+ created ./demo/ in 714ms
144
144
  
145
145
  ./demo/api.js → ./demo/...
146
- created ./demo/ in 587ms
146
+ created ./demo/ in 558ms
147
147
 
148
148
  > @aurodesignsystem/auro-select@3.3.0 build:docs
149
149
  > wca analyze 'scripts/wca/*.js' --outFiles docs/api.md; node ../../packages/build-tools/src/docProcessor.mjs --component select
@@ -99,9 +99,9 @@ In cases where the project is not able to process JS assets, there are pre-proce
99
99
  <!-- The below content is automatically added from ../../docs/templates/componentBundleUseModBrowsers.md -->
100
100
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@4.12.1/dist/tokens/CSSCustomProperties.css" />
101
101
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@5.1.2/dist/bundled/essentials.css" />
102
- <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-dropdown@2.0.0-beta.16/dist/auro-dropdown__bundled.js" type="module"></script>
103
- <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-menu@2.0.0-beta.16/dist/auro-menu__bundled.js" type="module"></script>
104
- <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-select@2.0.0-beta.16/dist/auro-select__bundled.js" type="module"></script>
102
+ <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-dropdown@2.0.0-beta.17/dist/auro-dropdown__bundled.js" type="module"></script>
103
+ <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-menu@2.0.0-beta.17/dist/auro-menu__bundled.js" type="module"></script>
104
+ <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-select@2.0.0-beta.17/dist/auro-select__bundled.js" type="module"></script>
105
105
  <!-- AURO-GENERATED-CONTENT:END -->
106
106
 
107
107
  ## auro-select use cases
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aurodesignsystem/auro-formkit",
3
- "version": "2.0.0-beta.17",
3
+ "version": "2.0.0-beta.18",
4
4
  "description": "A collection of web components used to build forms.",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -1 +0,0 @@
1
- {"hash":"02ee016619902665","duration":6139}
@@ -1 +0,0 @@
1
- {"hash":"1e855b2163b7c980","duration":2131}
@@ -1 +0,0 @@
1
- {"hash":"3c8718d2ba6d3fe5","duration":2364}
@@ -1 +0,0 @@
1
- {"hash":"8fcce3ba8357be57","duration":740}
@@ -1 +0,0 @@
1
- {"hash":"9b5868be65819fdf","duration":2376}
@@ -1 +0,0 @@
1
- {"hash":"c3b2cc1b044a4135","duration":3469}
@@ -1 +0,0 @@
1
- {"hash":"e392fe0927e4af23","duration":4898}