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

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 (186) hide show
  1. package/.turbo/cache/000950e13093845f-meta.json +1 -1
  2. package/.turbo/cache/000950e13093845f.tar.zst +0 -0
  3. package/.turbo/cache/02ee016619902665-meta.json +1 -0
  4. package/.turbo/cache/02ee016619902665.tar.zst +0 -0
  5. package/.turbo/cache/06ca4027e423c554-meta.json +1 -0
  6. package/.turbo/cache/06ca4027e423c554.tar.zst +0 -0
  7. package/.turbo/cache/1e855b2163b7c980-meta.json +1 -0
  8. package/.turbo/cache/1e855b2163b7c980.tar.zst +0 -0
  9. package/.turbo/cache/2059bc724ac24519-meta.json +1 -1
  10. package/.turbo/cache/2059bc724ac24519.tar.zst +0 -0
  11. package/.turbo/cache/23b3a2fea223679d-meta.json +1 -1
  12. package/.turbo/cache/23b3a2fea223679d.tar.zst +0 -0
  13. package/.turbo/cache/26dbf393768f87cc-meta.json +1 -0
  14. package/.turbo/cache/26dbf393768f87cc.tar.zst +0 -0
  15. package/.turbo/cache/2c0d681132c153dd-meta.json +1 -1
  16. package/.turbo/cache/31bd5687f46c7eba-meta.json +1 -1
  17. package/.turbo/cache/3488cff10dd06acd-meta.json +1 -1
  18. package/.turbo/cache/3488cff10dd06acd.tar.zst +0 -0
  19. package/.turbo/cache/3c8718d2ba6d3fe5-meta.json +1 -0
  20. package/.turbo/cache/3c8718d2ba6d3fe5.tar.zst +0 -0
  21. package/.turbo/cache/4006a206400d5c7b-meta.json +1 -1
  22. package/.turbo/cache/43693504bf6e7c4c-meta.json +1 -1
  23. package/.turbo/cache/45cd32cd38eacbcb-meta.json +1 -1
  24. package/.turbo/cache/492dda333b8d15f1-meta.json +1 -1
  25. package/.turbo/cache/50cd7dcfc9f820c5-meta.json +1 -1
  26. package/.turbo/cache/51eaa58d5c167de8-meta.json +1 -1
  27. package/.turbo/cache/56f2745125fdd552-meta.json +1 -1
  28. package/.turbo/cache/56f2745125fdd552.tar.zst +0 -0
  29. package/.turbo/cache/5b57cc0e26e1fd5d-meta.json +1 -0
  30. package/.turbo/cache/5b57cc0e26e1fd5d.tar.zst +0 -0
  31. package/.turbo/cache/5f43911cbacf7df1-meta.json +1 -1
  32. package/.turbo/cache/5f43911cbacf7df1.tar.zst +0 -0
  33. package/.turbo/cache/60ad74320c682a2b-meta.json +1 -1
  34. package/.turbo/cache/61e218aba69cff58-meta.json +1 -1
  35. package/.turbo/cache/647bda3b31d82dc2-meta.json +1 -0
  36. package/.turbo/cache/647bda3b31d82dc2.tar.zst +0 -0
  37. package/.turbo/cache/6951c2a52e5ab5f7-meta.json +1 -1
  38. package/.turbo/cache/6951c2a52e5ab5f7.tar.zst +0 -0
  39. package/.turbo/cache/77da375a012de9d0-meta.json +1 -1
  40. package/.turbo/cache/78418f9089673a21-meta.json +1 -1
  41. package/.turbo/cache/7964d1656e9e702a-meta.json +1 -1
  42. package/.turbo/cache/7bf2b06a479d0b30-meta.json +1 -1
  43. package/.turbo/cache/7c9ca6163e61285c-meta.json +1 -1
  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/8fcce3ba8357be57-meta.json +1 -0
  50. package/.turbo/cache/8fcce3ba8357be57.tar.zst +0 -0
  51. package/.turbo/cache/9b5868be65819fdf-meta.json +1 -0
  52. package/.turbo/cache/9b5868be65819fdf.tar.zst +0 -0
  53. package/.turbo/cache/a227e8174447e364-meta.json +1 -0
  54. package/.turbo/cache/a227e8174447e364.tar.zst +0 -0
  55. package/.turbo/cache/a779ea8b78ce9d59-meta.json +1 -0
  56. package/.turbo/cache/a779ea8b78ce9d59.tar.zst +0 -0
  57. package/.turbo/cache/a9c36a3534c5496b-meta.json +1 -0
  58. package/.turbo/cache/a9c36a3534c5496b.tar.zst +0 -0
  59. package/.turbo/cache/b5e6dc7fb9ae1a2f-meta.json +1 -1
  60. package/.turbo/cache/b6a202cc85cb61a0-meta.json +1 -1
  61. package/.turbo/cache/ba270a0ef147f2e5-meta.json +1 -1
  62. package/.turbo/cache/be0b95293ea517cc-meta.json +1 -1
  63. package/.turbo/cache/c03a12ff38ba1e02-meta.json +1 -1
  64. package/.turbo/cache/c1312c6f8c051461-meta.json +1 -1
  65. package/.turbo/cache/c1312c6f8c051461.tar.zst +0 -0
  66. package/.turbo/cache/c3b2cc1b044a4135-meta.json +1 -0
  67. package/.turbo/cache/c3b2cc1b044a4135.tar.zst +0 -0
  68. package/.turbo/cache/c6c6411199b68170-meta.json +1 -1
  69. package/.turbo/cache/c6dbc49c3038946d-meta.json +1 -1
  70. package/.turbo/cache/cae7586c45bed13e-meta.json +1 -1
  71. package/.turbo/cache/cae7586c45bed13e.tar.zst +0 -0
  72. package/.turbo/cache/cf143eb1a55684db-meta.json +1 -1
  73. package/.turbo/cache/cf143eb1a55684db.tar.zst +0 -0
  74. package/.turbo/cache/d5b85352bc667f19-meta.json +1 -1
  75. package/.turbo/cache/d5b85352bc667f19.tar.zst +0 -0
  76. package/.turbo/cache/d5db503b2eaf239c-meta.json +1 -1
  77. package/.turbo/cache/d775555355d6b8fc-meta.json +1 -1
  78. package/.turbo/cache/d7c3007be148d2a1-meta.json +1 -1
  79. package/.turbo/cache/db5e65d819bfe66b-meta.json +1 -1
  80. package/.turbo/cache/dc597b3ea4f61ec8-meta.json +1 -1
  81. package/.turbo/cache/e392fe0927e4af23-meta.json +1 -0
  82. package/.turbo/cache/e392fe0927e4af23.tar.zst +0 -0
  83. package/.turbo/cache/e62cfee068e3ef36-meta.json +1 -1
  84. package/.turbo/cache/f2913bf19939d840-meta.json +1 -1
  85. package/.turbo/cache/f2913bf19939d840.tar.zst +0 -0
  86. package/.turbo/cache/f86b28e5ea2c66fe-meta.json +1 -1
  87. package/CHANGELOG.md +22 -0
  88. package/components/checkbox/.turbo/turbo-build.log +3 -3
  89. package/components/checkbox/.turbo/turbo-bundler.log +3 -3
  90. package/components/checkbox/README.md +1 -1
  91. package/components/combobox/.turbo/turbo-build.log +3 -3
  92. package/components/combobox/README.md +4 -4
  93. package/components/counter/.turbo/turbo-build$colon$sass.log +37 -6
  94. package/components/counter/.turbo/turbo-build.log +47 -10
  95. package/components/counter/.turbo/turbo-bundler.log +6 -3
  96. package/components/counter/.turbo/turbo-sass$colon$render.log +7 -1
  97. package/components/counter/README.md +1 -1
  98. package/components/counter/demo/api.md +8 -7
  99. package/components/counter/demo/api.min.js +3304 -247
  100. package/components/counter/demo/index.md +16 -20
  101. package/components/counter/demo/index.min.js +3304 -247
  102. package/components/counter/dist/auro-counter-group.d.ts +27 -7
  103. package/components/counter/dist/auro-counter-group.d.ts.map +1 -1
  104. package/components/counter/dist/auro-counter-wrapper.d.ts +23 -0
  105. package/components/counter/dist/auro-counter-wrapper.d.ts.map +1 -0
  106. package/components/counter/dist/index.js +3304 -247
  107. package/components/counter/dist/styles/counter-wrapper-color-css.d.ts +3 -0
  108. package/components/counter/dist/styles/counter-wrapper-color-css.d.ts.map +1 -0
  109. package/components/counter/dist/styles/{counter-group-color-css.d.ts → counter-wrapper-css.d.ts} +1 -1
  110. package/components/counter/dist/styles/counter-wrapper-css.d.ts.map +1 -0
  111. package/components/counter/src/auro-counter-group.js +72 -19
  112. package/components/counter/src/auro-counter-wrapper.js +54 -0
  113. package/components/counter/src/styles/counter-group-css.js +1 -1
  114. package/components/counter/src/styles/counter-group.css +4 -8
  115. package/components/counter/src/styles/counter-group.scss +6 -10
  116. package/components/counter/src/styles/counter-wrapper-color-css.js +2 -0
  117. package/components/counter/src/styles/{counter-group-color.css → counter-wrapper-color.css} +1 -1
  118. package/components/counter/src/styles/{counter-group-color.scss → counter-wrapper-color.scss} +1 -1
  119. package/components/counter/src/styles/counter-wrapper-css.js +2 -0
  120. package/components/counter/src/styles/counter-wrapper.css +15 -0
  121. package/components/counter/src/styles/counter-wrapper.scss +29 -0
  122. package/components/datepicker/.turbo/turbo-build.log +3 -3
  123. package/components/datepicker/README.md +4 -4
  124. package/components/dropdown/.turbo/turbo-build.log +3 -3
  125. package/components/dropdown/.turbo/turbo-bundler.log +2 -2
  126. package/components/dropdown/README.md +1 -1
  127. package/components/form/.turbo/turbo-build.log +3 -3
  128. package/components/form/.turbo/turbo-bundler.log +3 -3
  129. package/components/form/README.md +11 -9
  130. package/components/form/demo/api.min.js +187 -22
  131. package/components/form/demo/index.min.js +187 -22
  132. package/components/form/demo/registerDemoDeps.js +5 -0
  133. package/components/form/demo/working.html +86 -0
  134. package/components/form/dist/auro-form.d.ts +83 -2
  135. package/components/form/dist/auro-form.d.ts.map +1 -1
  136. package/components/form/dist/index.js +187 -22
  137. package/components/form/package.json +3 -1
  138. package/components/form/src/auro-form.js +187 -25
  139. package/components/form/src/styles/style-css.js +1 -1
  140. package/components/form/src/styles/style.css +8 -0
  141. package/components/form/src/styles/style.scss +10 -0
  142. package/components/input/.turbo/turbo-build.log +3 -3
  143. package/components/input/.turbo/turbo-bundler.log +3 -3
  144. package/components/input/README.md +1 -1
  145. package/components/menu/.turbo/turbo-build.log +3 -3
  146. package/components/menu/.turbo/turbo-bundler.log +3 -3
  147. package/components/menu/README.md +1 -1
  148. package/components/radio/.turbo/turbo-build.log +3 -3
  149. package/components/radio/.turbo/turbo-bundler.log +3 -3
  150. package/components/radio/README.md +1 -1
  151. package/components/select/.turbo/turbo-build.log +3 -3
  152. package/components/select/README.md +3 -3
  153. package/package.json +1 -1
  154. package/.turbo/cache/07028b4d43bdf4e1-meta.json +0 -1
  155. package/.turbo/cache/07028b4d43bdf4e1.tar.zst +0 -0
  156. package/.turbo/cache/0c8124a987c1cc05-meta.json +0 -1
  157. package/.turbo/cache/0c8124a987c1cc05.tar.zst +0 -0
  158. package/.turbo/cache/1b97859030a6d60b-meta.json +0 -1
  159. package/.turbo/cache/1b97859030a6d60b.tar.zst +0 -0
  160. package/.turbo/cache/1f6653e2ed4c0087-meta.json +0 -1
  161. package/.turbo/cache/1f6653e2ed4c0087.tar.zst +0 -0
  162. package/.turbo/cache/2690f6279766d11d-meta.json +0 -1
  163. package/.turbo/cache/2690f6279766d11d.tar.zst +0 -0
  164. package/.turbo/cache/50993de942ec15a9-meta.json +0 -1
  165. package/.turbo/cache/50993de942ec15a9.tar.zst +0 -0
  166. package/.turbo/cache/6081837e8943b62e-meta.json +0 -1
  167. package/.turbo/cache/6081837e8943b62e.tar.zst +0 -0
  168. package/.turbo/cache/6830a9e37c9d391f-meta.json +0 -1
  169. package/.turbo/cache/6830a9e37c9d391f.tar.zst +0 -0
  170. package/.turbo/cache/80410f4b5990ab83-meta.json +0 -1
  171. package/.turbo/cache/80410f4b5990ab83.tar.zst +0 -0
  172. package/.turbo/cache/9ae99e8e7bd83d06-meta.json +0 -1
  173. package/.turbo/cache/9ae99e8e7bd83d06.tar.zst +0 -0
  174. package/.turbo/cache/bfefe028012c089a-meta.json +0 -1
  175. package/.turbo/cache/bfefe028012c089a.tar.zst +0 -0
  176. package/.turbo/cache/dad3d78b33edd9e4-meta.json +0 -1
  177. package/.turbo/cache/dad3d78b33edd9e4.tar.zst +0 -0
  178. package/.turbo/cache/e9e36823f6c98f07-meta.json +0 -1
  179. package/.turbo/cache/e9e36823f6c98f07.tar.zst +0 -0
  180. package/.turbo/cache/ea8dd91dba19ddee-meta.json +0 -1
  181. package/.turbo/cache/ea8dd91dba19ddee.tar.zst +0 -0
  182. package/components/counter/dist/formkit/auro-dropdownVersion.d.ts +0 -3
  183. package/components/counter/dist/formkit/auro-dropdownVersion.d.ts.map +0 -1
  184. package/components/counter/dist/styles/counter-group-color-css.d.ts.map +0 -1
  185. package/components/counter/src/formkit/auro-dropdownVersion.js +0 -1
  186. package/components/counter/src/styles/counter-group-color-css.js +0 -2
@@ -0,0 +1,3 @@
1
+ declare const _default: import("lit").CSSResult;
2
+ export default _default;
3
+ //# sourceMappingURL=counter-wrapper-color-css.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"counter-wrapper-color-css.d.ts","sourceRoot":"","sources":["../../src/styles/counter-wrapper-color-css.js"],"names":[],"mappings":""}
@@ -1,3 +1,3 @@
1
1
  declare const _default: import("lit").CSSResult;
2
2
  export default _default;
3
- //# sourceMappingURL=counter-group-color-css.d.ts.map
3
+ //# sourceMappingURL=counter-wrapper-css.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"counter-wrapper-css.d.ts","sourceRoot":"","sources":["../../src/styles/counter-wrapper-css.js"],"names":[],"mappings":""}
@@ -1,3 +1,5 @@
1
+ /* eslint-disable lit/no-invalid-html, lit/binding-positions */
2
+
1
3
  // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
2
4
  // See LICENSE in the project root for license information.
3
5
 
@@ -5,11 +7,18 @@
5
7
 
6
8
  import { html } from "lit/static-html.js";
7
9
  import { LitElement } from "lit";
10
+
8
11
  import styleCss from "./styles/counter-group-css.js";
9
- import colorCss from "./styles/counter-group-color-css.js";
12
+
10
13
  import AuroLibraryRuntimeUtils from "@aurodesignsystem/auro-library/scripts/utils/runtimeUtils.mjs";
11
14
  import AuroFormValidation from "@auro-formkit/form-validation";
12
15
 
16
+ import { AuroDependencyVersioning } from "@aurodesignsystem/auro-library/scripts/runtime/dependencyTagVersioning.mjs";
17
+ import { AuroDropdown } from "@aurodesignsystem/auro-dropdown";
18
+ import dropdownVersion from "./dropdownVersion.js";
19
+
20
+ import './auro-counter-wrapper.js';
21
+
13
22
  /**
14
23
  * Auro Counter Group is a group of counter components.
15
24
  *
@@ -24,6 +33,8 @@ export class AuroCounterGroup extends LitElement {
24
33
  constructor() {
25
34
  super();
26
35
 
36
+ this.isDropdown = false;
37
+
27
38
  this.max = undefined;
28
39
  this.min = undefined;
29
40
  this.total = undefined;
@@ -39,18 +50,35 @@ export class AuroCounterGroup extends LitElement {
39
50
  * @private
40
51
  */
41
52
  this.validation = new AuroFormValidation();
53
+
54
+ /**
55
+ * Generate unique names for dependency components.
56
+ * @private
57
+ */
58
+ const versioning = new AuroDependencyVersioning();
59
+
60
+ /**
61
+ * Dynamically generated dropdown tag.
62
+ * @private
63
+ * @type {string}
64
+ */
65
+ this.dropdownTag = versioning.generateTag("auro-dropdown", dropdownVersion, AuroDropdown);
42
66
  }
43
67
 
44
68
  static get styles() {
45
- return [
46
- colorCss,
47
- styleCss
48
- ];
69
+ return [styleCss];
49
70
  }
50
71
 
51
72
  static get properties() {
52
73
  return {
53
74
 
75
+ /**
76
+ * Indicates if the counter group is displayed as a dropdown.
77
+ */
78
+ isDropdown: {
79
+ type: Boolean
80
+ },
81
+
54
82
  /**
55
83
  * The maximum value allowed for the whole group of counters.
56
84
  */
@@ -67,13 +95,6 @@ export class AuroCounterGroup extends LitElement {
67
95
  reflect: true,
68
96
  },
69
97
 
70
- /**
71
- * The total value of the counters.
72
- */
73
- total: {
74
- type: Number,
75
- },
76
-
77
98
  /**
78
99
  * Reflects the validity state.
79
100
  */
@@ -82,12 +103,19 @@ export class AuroCounterGroup extends LitElement {
82
103
  reflect: true,
83
104
  },
84
105
 
106
+ /**
107
+ * The total value of the counters.
108
+ */
109
+ total: {
110
+ type: Number,
111
+ },
112
+
85
113
  /**
86
114
  * The current individual values of the nested counters.
87
115
  */
88
116
  value: {
89
117
  type: Object,
90
- },
118
+ }
91
119
  };
92
120
  }
93
121
 
@@ -112,12 +140,32 @@ export class AuroCounterGroup extends LitElement {
112
140
 
113
141
  /**
114
142
  * Attaches input event listeners to all auro-counter elements within the component.
115
- * This method selects all `auro-counter` and `[auto-counter]` elements and adds an `input` event listener to each.
143
+ * This method selects all `auro-counter` and `[auro-counter]` elements and adds an `input` event listener to each.
116
144
  * The listener calls `this.updateValue()` whenever the value of a counter changes.
117
145
  * @private
118
146
  */
119
147
  configureCounters() {
120
- this.counters = this.querySelectorAll("auro-counter, [auto-counter]");
148
+ this.counters = this.querySelectorAll("auro-counter, [auro-counter]");
149
+ this.counters.forEach((counter) => {
150
+ counter.addEventListener("input", () => this.updateValue());
151
+ });
152
+ }
153
+
154
+ /**
155
+ * Configures the dropdown counters by selecting all `auro-counter` elements
156
+ * and appending them to the `auro-counter-wrapper` element within the shadow DOM.
157
+ * Adds an event listener to each counter to update the value on input.
158
+ * @private
159
+ */
160
+ configureDropdownCounters() {
161
+ const counterWrapper = this.shadowRoot.querySelector('auro-counter-wrapper');
162
+ this.counters = this.querySelectorAll("auro-counter, [auro-counter]");
163
+
164
+ this.counters.forEach((counter) => {
165
+ counterWrapper.append(counter);
166
+ });
167
+
168
+ this.counters = counterWrapper.querySelectorAll("auro-counter, [auro-counter]");
121
169
  this.counters.forEach((counter) => {
122
170
  counter.addEventListener("input", () => this.updateValue());
123
171
  });
@@ -188,9 +236,14 @@ export class AuroCounterGroup extends LitElement {
188
236
  // function that renders the HTML and CSS into the scope of the component
189
237
  render() {
190
238
  return html`
191
- <div class="counters">
192
- <slot @slotchange=${() => this.configureCounters()}></slot>
193
- </div>
194
- `;
239
+ ${this.isDropdown
240
+ ? html`<${this.dropdownTag} common chevron>
241
+ <div slot="trigger">${this.total}<slot name="placeholder"></slot></div>
242
+ <auro-counter-wrapper isInDropdown>
243
+ </auro-counter-wrapper>
244
+ </${this.dropdownTag}>
245
+ <slot @slotchange=${() => this.configureDropdownCounters()}></slot>`
246
+ : html`<auro-counter-wrapper><slot @slotchange=${() => this.configureCounters()}></slot></auro-counter-wrapper>`
247
+ }`;
195
248
  }
196
249
  }
@@ -0,0 +1,54 @@
1
+ // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
2
+ // See LICENSE in the project root for license information.
3
+
4
+ // ---------------------------------------------------------------------
5
+
6
+ import { html } from "lit/static-html.js";
7
+ import { LitElement } from "lit";
8
+
9
+ import styleCss from "./styles/counter-wrapper-css.js";
10
+ import colorCss from "./styles/counter-wrapper-color-css.js";
11
+
12
+ import AuroLibraryRuntimeUtils from "@aurodesignsystem/auro-library/scripts/utils/runtimeUtils.mjs";
13
+
14
+ /**
15
+ * Auro Counter Wrapper is a group of counter components.
16
+ *
17
+ * This web component provides a flexible interface for grouping multiple counters, supporting
18
+ * validation, custom validity messages, and disabled states based on the group's value.
19
+ *
20
+ * @element auro-counter-group
21
+ * @extends LitElement
22
+ * @slot Default - Slot for counter elements.
23
+ */
24
+ export class AuroCounterWrapper extends LitElement {
25
+
26
+ static get styles() {
27
+ return [
28
+ colorCss,
29
+ styleCss
30
+ ];
31
+ }
32
+
33
+ /**
34
+ * Registers the custom element with the browser.
35
+ * @param {string} [name="auro-counter-wrapper"] - Custom element name to register.
36
+ * @example
37
+ * AuroCounterWrapper.register("custom-counter-wrapper") // registers <custom-counter-wrapper/>
38
+ */
39
+ static register(name = "auro-counter-wrapper") {
40
+ AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroCounterWrapper);
41
+ }
42
+
43
+ // function that renders the HTML and CSS into the scope of the component
44
+ render() {
45
+ return html`<slot></slot>`;
46
+ }
47
+ }
48
+
49
+ /* istanbul ignore else */
50
+ // define the name of the custom component
51
+ if (!customElements.get("auro-counter-wrapper")) {
52
+ customElements.define("auro-counter-wrapper", AuroCounterWrapper);
53
+ }
54
+
@@ -1,2 +1,2 @@
1
1
  import { css } from 'lit';
2
- export default css`:host{position:relative;display:block}.counters{display:flex;flex-direction:column;gap:var(--ds-size-300, 1.5rem)}.counters ::slotted(*:not(:first-child)){padding-top:var(--ds-size-300, 1.5rem);border-top-width:1px;border-top-style:solid}`;
2
+ export default css`:host{position:relative;display:block}[slot=trigger]{display:flex;align-items:center;justify-content:space-between;gap:var(--ds-size-100, 0.5rem)}`;
@@ -4,13 +4,9 @@
4
4
  display: block;
5
5
  }
6
6
 
7
- .counters {
7
+ [slot=trigger] {
8
8
  display: flex;
9
- flex-direction: column;
10
- gap: var(--ds-size-300, 1.5rem);
11
- }
12
- .counters ::slotted(*:not(:first-child)) {
13
- padding-top: var(--ds-size-300, 1.5rem);
14
- border-top-width: 1px;
15
- border-top-style: solid;
9
+ align-items: center;
10
+ justify-content: space-between;
11
+ gap: var(--ds-size-100, 0.5rem);
16
12
  }
@@ -17,14 +17,10 @@
17
17
  display: block;
18
18
  }
19
19
 
20
- .counters {
21
- display: flex;
22
- flex-direction: column;
23
- gap: var(--ds-size-300, $ds-size-300);
24
-
25
- ::slotted(*:not(:first-child)) {
26
- padding-top: var(--ds-size-300, $ds-size-300);
27
- border-top-width: 1px;
28
- border-top-style: solid;
29
- }
20
+ [slot="trigger"] {
21
+ display: flex;
22
+ align-items: center;
23
+ justify-content: space-between;
24
+ gap: var(--ds-size-100, $ds-size-100);
25
+
30
26
  }
@@ -0,0 +1,2 @@
1
+ import { css } from 'lit';
2
+ export default css`:host ::slotted(*:not(:first-child)){border-color:var(--ds-color-border-divider-default, rgba(0, 0, 0, 0.12))}`;
@@ -1,4 +1,4 @@
1
1
  /* stylelint-disable no-descending-specificity, selector-max-attribute */
2
- .counters ::slotted(*:not(:first-child)) {
2
+ :host ::slotted(*:not(:first-child)) {
3
3
  border-color: var(--ds-color-border-divider-default, rgba(0, 0, 0, 0.12));
4
4
  }
@@ -12,7 +12,7 @@
12
12
 
13
13
  /* stylelint-disable no-descending-specificity, selector-max-attribute */
14
14
 
15
- .counters {
15
+ :host {
16
16
  ::slotted(*:not(:first-child)) {
17
17
  border-color: var(--ds-color-border-divider-default, $ds-color-border-divider-default);
18
18
  }
@@ -0,0 +1,2 @@
1
+ import { css } from 'lit';
2
+ export default css`:host{display:flex;flex-direction:column;gap:var(--ds-size-300, 1.5rem)}:host ::slotted(*:not(:first-child)){padding-top:var(--ds-size-300, 1.5rem);border-top-width:1px;border-top-style:solid}:host([isindropdown]){padding:var(--ds-size-300, 1.5rem)}`;
@@ -0,0 +1,15 @@
1
+ /* stylelint-disable no-descending-specificity, selector-max-attribute, selector-nest-combinators */
2
+ :host {
3
+ display: flex;
4
+ flex-direction: column;
5
+ gap: var(--ds-size-300, 1.5rem);
6
+ }
7
+ :host ::slotted(*:not(:first-child)) {
8
+ padding-top: var(--ds-size-300, 1.5rem);
9
+ border-top-width: 1px;
10
+ border-top-style: solid;
11
+ }
12
+
13
+ :host([isindropdown]) {
14
+ padding: var(--ds-size-300, 1.5rem);
15
+ }
@@ -0,0 +1,29 @@
1
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license.
2
+ // See LICENSE in the project root for license information.
3
+
4
+ // ---------------------------------------------------------------------
5
+
6
+ // layout styles - define any layout specifications for UI that is contained WITHIN the component
7
+ // never define layout that would cause effect on element outside the scope of this component
8
+
9
+ // Support for fallback values
10
+ @import "@aurodesignsystem/design-tokens/dist/tokens/SCSSVariables";
11
+ @import '@aurodesignsystem/webcorestylesheets/src/breakpoints';
12
+
13
+ /* stylelint-disable no-descending-specificity, selector-max-attribute, selector-nest-combinators */
14
+
15
+ :host {
16
+ display: flex;
17
+ flex-direction: column;
18
+ gap: var(--ds-size-300, $ds-size-300);
19
+
20
+ ::slotted(*:not(:first-child)) {
21
+ padding-top: var(--ds-size-300, $ds-size-300);
22
+ border-top-width: 1px;
23
+ border-top-style: solid;
24
+ }
25
+ }
26
+
27
+ :host([isindropdown]) {
28
+ padding: var(--ds-size-300, $ds-size-300);
29
+ }
@@ -373,13 +373,13 @@ More info and automated migrator: https://sass-lang.com/d/import
373
373
 
374
374
  
375
375
  ./src/index.js → dist...
376
- created dist in 7.4s
376
+ created dist in 7.7s
377
377
  
378
378
  ./demo/index.js → ./demo/...
379
- created ./demo/ in 3.5s
379
+ created ./demo/ in 3.6s
380
380
  
381
381
  ./demo/api.js → ./demo/...
382
- created ./demo/ in 3.3s
382
+ created ./demo/ in 3.4s
383
383
 
384
384
  > @aurodesignsystem/auro-datepicker@3.2.0 build:docs
385
385
  > wca analyze 'scripts/wca/*.js' --outFiles docs/api.md; node ../../packages/build-tools/src/docProcessor.mjs --component datepicker
@@ -93,10 +93,10 @@ In cases where the project is not able to process JS assets, there are pre-proce
93
93
  <!-- The below content is automatically added from ../../docs/templates/componentBundleUseModBrowsers.md -->
94
94
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@4.12.1/dist/tokens/CSSCustomProperties.css" />
95
95
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@5.1.2/dist/bundled/essentials.css" />
96
- <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-dropdown@2.0.0-beta.14/dist/auro-dropdown__bundled.js" type="module"></script>
97
- <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-input@2.0.0-beta.14/dist/auro-input__bundled.js" type="module"></script>
98
- <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-popover@2.0.0-beta.14/dist/auro-popover__bundled.js" type="module"></script>
99
- <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-datepicker@2.0.0-beta.14/dist/auro-datepicker__bundled.js" type="module"></script>
96
+ <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>
97
+ <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>
98
+ <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-popover@2.0.0-beta.16/dist/auro-popover__bundled.js" type="module"></script>
99
+ <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-datepicker@2.0.0-beta.16/dist/auro-datepicker__bundled.js" type="module"></script>
100
100
  <!-- AURO-GENERATED-CONTENT:END -->
101
101
 
102
102
  ## auro-datepicker use cases
@@ -90,13 +90,13 @@ More info and automated migrator: https://sass-lang.com/d/import
90
90
 
91
91
  
92
92
  ./src/index.js → dist...
93
- created dist in 1.1s
93
+ created dist in 1.2s
94
94
  
95
95
  ./demo/index.js → ./demo/...
96
- created ./demo/ in 1.1s
96
+ created ./demo/ in 801ms
97
97
  
98
98
  ./demo/api.js → ./demo/...
99
- created ./demo/ in 1s
99
+ created ./demo/ in 652ms
100
100
 
101
101
  > @aurodesignsystem/auro-dropdown@3.0.0 build:docs
102
102
  > wca analyze 'scripts/wca/*.js' --outFiles docs/api.md; node ../../packages/build-tools/src/docProcessor.mjs --component dropdown
@@ -7,7 +7,7 @@
7
7
  created dist in 1.2s
8
8
  
9
9
  ./demo/index.js → ./demo/...
10
- created ./demo/ in 899ms
10
+ created ./demo/ in 814ms
11
11
  
12
12
  ./demo/api.js → ./demo/...
13
- created ./demo/ in 669ms
13
+ created ./demo/ in 806ms
@@ -97,7 +97,7 @@ In cases where the project is not able to process JS assets, there are pre-proce
97
97
  <!-- The below content is automatically added from ../../docs/templates/componentBundleUseModBrowsers.md -->
98
98
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@4.9.2/dist/tokens/CSSCustomProperties.css" />
99
99
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@5.1.2/dist/bundled/essentials.css" />
100
- <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-dropdown@2.0.0-beta.14/dist/auro-dropdown__bundled.js" type="module"></script>
100
+ <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>
101
101
  <!-- AURO-GENERATED-CONTENT:END -->
102
102
 
103
103
  ## auro-dropdown use cases
@@ -69,13 +69,13 @@ Run in verbose mode to see all warnings.
69
69
 
70
70
  
71
71
  ./src/index.js → dist...
72
- created dist in 355ms
72
+ created dist in 149ms
73
73
  
74
74
  ./demo/index.js → ./demo/...
75
- created ./demo/ in 198ms
75
+ created ./demo/ in 77ms
76
76
  
77
77
  ./demo/api.js → ./demo/...
78
- created ./demo/ in 183ms
78
+ created ./demo/ in 70ms
79
79
 
80
80
  > @aurodesignsystem/auro-form@1.0.0 build:docs
81
81
  > wca analyze 'scripts/wca/*.js' --outFiles docs/api.md; node ../../packages/build-tools/src/docProcessor.mjs --component form
@@ -4,10 +4,10 @@
4
4
 
5
5
  
6
6
  ./src/index.js → dist...
7
- created dist in 533ms
7
+ created dist in 674ms
8
8
  
9
9
  ./demo/index.js → ./demo/...
10
- created ./demo/ in 265ms
10
+ created ./demo/ in 389ms
11
11
  
12
12
  ./demo/api.js → ./demo/...
13
- created ./demo/ in 276ms
13
+ created ./demo/ in 380ms
@@ -75,10 +75,11 @@ import "@aurodesignsystem/auro-formkit/auro-form";
75
75
  <!-- The below code snippet is automatically added from ./apiExamples/basic.html -->
76
76
 
77
77
  ```html
78
- <auro-form>Hello World</auro-form>
79
- <auro-input>
80
- <span slot="label">Hello World</span>
81
- </auro-input>
78
+ <auro-form>
79
+ <auro-input>
80
+ <span slot="label">Hello World</span>
81
+ </auro-input>
82
+ </auro-form>
82
83
  ```
83
84
  <!-- AURO-GENERATED-CONTENT:END -->
84
85
 
@@ -97,7 +98,7 @@ In cases where the project is not able to process JS assets, there are pre-proce
97
98
  <!-- The below content is automatically added from ../../docs/templates/componentBundleUseModBrowsers.md -->
98
99
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@4.12.1/dist/tokens/CSSCustomProperties.css" />
99
100
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@5.1.2/dist/bundled/essentials.css" />
100
- <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-form@2.0.0-beta.14/dist/auro-form__bundled.js" type="module"></script>
101
+ <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-form@2.0.0-beta.16/dist/auro-form__bundled.js" type="module"></script>
101
102
  <!-- AURO-GENERATED-CONTENT:END -->
102
103
 
103
104
  ## auro-form use cases
@@ -119,10 +120,11 @@ The `<auro-form>` element should be used in situations where users may:
119
120
  <!-- The below code snippet is automatically added from ./apiExamples/basic.html -->
120
121
 
121
122
  ```html
122
- <auro-form>Hello World</auro-form>
123
- <auro-input>
124
- <span slot="label">Hello World</span>
125
- </auro-input>
123
+ <auro-form>
124
+ <auro-input>
125
+ <span slot="label">Hello World</span>
126
+ </auro-input>
127
+ </auro-form>
126
128
  ```
127
129
  <!-- AURO-GENERATED-CONTENT:END -->
128
130