@aurodesignsystem/auro-formkit 5.9.0 → 5.9.2

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 (136) hide show
  1. package/CHANGELOG.md +13 -4
  2. package/README.md +4 -4
  3. package/components/bibtemplate/dist/iconVersion.d.ts +1 -1
  4. package/components/bibtemplate/dist/index.js +2 -2
  5. package/components/bibtemplate/dist/registered.js +2 -2
  6. package/components/checkbox/README.md +62 -62
  7. package/components/checkbox/demo/api.js +1 -1
  8. package/components/checkbox/demo/api.md +127 -84
  9. package/components/checkbox/demo/api.min.js +125 -42
  10. package/components/checkbox/demo/index.md +9 -281
  11. package/components/checkbox/demo/index.min.js +125 -42
  12. package/components/checkbox/demo/readme.html +3 -4
  13. package/components/checkbox/demo/readme.md +62 -62
  14. package/components/checkbox/dist/auro-checkbox-group.d.ts +7 -8
  15. package/components/checkbox/dist/auro-checkbox.d.ts +74 -20
  16. package/components/checkbox/dist/index.js +125 -42
  17. package/components/checkbox/dist/registered.js +125 -42
  18. package/components/combobox/README.md +76 -74
  19. package/components/combobox/demo/api.html +1 -0
  20. package/components/combobox/demo/api.js +11 -12
  21. package/components/combobox/demo/api.md +1302 -875
  22. package/components/combobox/demo/api.min.js +416 -492
  23. package/components/combobox/demo/index.html +1 -7
  24. package/components/combobox/demo/index.js +0 -19
  25. package/components/combobox/demo/index.md +43 -723
  26. package/components/combobox/demo/index.min.js +369 -302
  27. package/components/combobox/demo/readme.html +3 -4
  28. package/components/combobox/demo/readme.md +76 -74
  29. package/components/combobox/dist/auro-combobox.d.ts +42 -42
  30. package/components/combobox/dist/index.js +204 -210
  31. package/components/combobox/dist/registered.js +204 -210
  32. package/components/counter/README.md +81 -66
  33. package/components/counter/demo/api.html +1 -2
  34. package/components/counter/demo/api.js +2 -2
  35. package/components/counter/demo/api.md +777 -259
  36. package/components/counter/demo/api.min.js +119 -171
  37. package/components/counter/demo/index.html +0 -2
  38. package/components/counter/demo/index.md +20 -329
  39. package/components/counter/demo/index.min.js +117 -152
  40. package/components/counter/demo/readme.html +3 -4
  41. package/components/counter/demo/readme.md +81 -66
  42. package/components/counter/dist/auro-counter-group.d.ts +21 -36
  43. package/components/counter/dist/auro-counter-wrapper.d.ts +1 -6
  44. package/components/counter/dist/auro-counter.d.ts +5 -8
  45. package/components/counter/dist/index.js +117 -152
  46. package/components/counter/dist/registered.js +117 -152
  47. package/components/datepicker/README.md +57 -61
  48. package/components/datepicker/demo/api.js +8 -8
  49. package/components/datepicker/demo/api.md +720 -561
  50. package/components/datepicker/demo/api.min.js +678 -2769
  51. package/components/datepicker/demo/index.md +65 -117
  52. package/components/datepicker/demo/index.min.js +678 -2769
  53. package/components/datepicker/demo/readme.html +3 -4
  54. package/components/datepicker/demo/readme.md +57 -61
  55. package/components/datepicker/dist/auro-calendar.d.ts +60 -34
  56. package/components/datepicker/dist/auro-datepicker.d.ts +32 -32
  57. package/components/datepicker/dist/iconVersion.d.ts +1 -1
  58. package/components/datepicker/dist/index.js +505 -2596
  59. package/components/datepicker/dist/popoverVersion.d.ts +1 -1
  60. package/components/datepicker/dist/registered.js +505 -2596
  61. package/components/dropdown/README.md +78 -62
  62. package/components/dropdown/demo/api.js +4 -4
  63. package/components/dropdown/demo/api.md +520 -478
  64. package/components/dropdown/demo/api.min.js +80 -95
  65. package/components/dropdown/demo/index.md +65 -119
  66. package/components/dropdown/demo/index.min.js +70 -85
  67. package/components/dropdown/demo/readme.html +3 -4
  68. package/components/dropdown/demo/readme.md +78 -62
  69. package/components/dropdown/dist/auro-dropdown.d.ts +42 -33
  70. package/components/dropdown/dist/iconVersion.d.ts +1 -1
  71. package/components/dropdown/dist/index.js +70 -85
  72. package/components/dropdown/dist/registered.js +70 -85
  73. package/components/form/README.md +16 -58
  74. package/components/form/demo/api.md +16 -21
  75. package/components/form/demo/api.min.js +13 -8
  76. package/components/form/demo/index.md +38 -39
  77. package/components/form/demo/index.min.js +13 -8
  78. package/components/form/demo/readme.md +16 -58
  79. package/components/form/demo/working.html +1 -1
  80. package/components/form/dist/auro-form.d.ts +15 -3
  81. package/components/form/dist/index.js +13 -8
  82. package/components/form/dist/registered.js +13 -8
  83. package/components/input/README.md +55 -60
  84. package/components/input/demo/api.js +3 -5
  85. package/components/input/demo/api.md +558 -537
  86. package/components/input/demo/api.min.js +102 -115
  87. package/components/input/demo/index.js +0 -1
  88. package/components/input/demo/index.md +90 -203
  89. package/components/input/demo/index.min.js +87 -99
  90. package/components/input/demo/readme.html +3 -4
  91. package/components/input/demo/readme.md +55 -60
  92. package/components/input/dist/auro-input.d.ts +6 -5
  93. package/components/input/dist/base-input.d.ts +68 -69
  94. package/components/input/dist/iconVersion.d.ts +1 -1
  95. package/components/input/dist/index.js +87 -82
  96. package/components/input/dist/registered.js +87 -82
  97. package/components/menu/README.md +61 -61
  98. package/components/menu/demo/api.js +6 -8
  99. package/components/menu/demo/api.md +520 -577
  100. package/components/menu/demo/api.min.js +199 -97
  101. package/components/menu/demo/index.js +0 -5
  102. package/components/menu/demo/index.md +36 -119
  103. package/components/menu/demo/index.min.js +164 -101
  104. package/components/menu/demo/readme.html +3 -4
  105. package/components/menu/demo/readme.md +61 -61
  106. package/components/menu/dist/auro-menu.context.d.ts +5 -0
  107. package/components/menu/dist/auro-menu.d.ts +75 -37
  108. package/components/menu/dist/auro-menuoption.d.ts +38 -13
  109. package/components/menu/dist/index.js +164 -50
  110. package/components/menu/dist/registered.js +164 -50
  111. package/components/radio/README.md +61 -57
  112. package/components/radio/demo/api.js +2 -2
  113. package/components/radio/demo/api.md +241 -170
  114. package/components/radio/demo/api.min.js +154 -77
  115. package/components/radio/demo/index.md +22 -99
  116. package/components/radio/demo/index.min.js +145 -68
  117. package/components/radio/demo/readme.html +3 -4
  118. package/components/radio/demo/readme.md +61 -57
  119. package/components/radio/dist/auro-radio-group.d.ts +67 -35
  120. package/components/radio/dist/auro-radio.d.ts +56 -33
  121. package/components/radio/dist/index.js +145 -68
  122. package/components/radio/dist/registered.js +145 -68
  123. package/components/select/README.md +68 -65
  124. package/components/select/demo/api.html +1 -0
  125. package/components/select/demo/api.js +7 -7
  126. package/components/select/demo/api.md +1305 -625
  127. package/components/select/demo/api.min.js +357 -262
  128. package/components/select/demo/index.html +0 -2
  129. package/components/select/demo/index.md +25 -833
  130. package/components/select/demo/index.min.js +356 -230
  131. package/components/select/demo/readme.html +3 -4
  132. package/components/select/demo/readme.md +68 -65
  133. package/components/select/dist/auro-select.d.ts +99 -90
  134. package/components/select/dist/index.js +192 -180
  135. package/components/select/dist/registered.js +192 -180
  136. package/package.json +9 -4
@@ -48,10 +48,9 @@
48
48
  Prism.highlightAll();
49
49
  })
50
50
  </script>
51
- <script type="module">
52
- import { initExamples } from "./index.min.js";
51
+ <script src="./index.min.js" data-demo-script="true" type="module"></script>
53
52
 
54
- initExamples();
55
- </script>
53
+ <!-- If additional elements are needed for the demo, add them here. -->
54
+ <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-accordion@latest/+esm" type="module"></script>
56
55
  </body>
57
56
  </html>
@@ -18,6 +18,7 @@ The following sections are editable by making changes to the following files:
18
18
  -->
19
19
 
20
20
  # Counter
21
+
21
22
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/description.md) -->
22
23
  <!-- The below content is automatically added from ./docs/partials/description.md -->
23
24
  The `auro-counter` component is a ui element that enables a way to increment or decrement a single digit value. Common use case is inside the `auro-counter-group` to facilitate a collection of counters to add passenger types to a flight.
@@ -27,7 +28,18 @@ The `auro-counter` component is a ui element that enables a way to increment or
27
28
  <!-- AURO-GENERATED-CONTENT This file is to be used for any additional content that should be included in the README.md which is specific to this component. -->
28
29
  <!-- AURO-GENERATED-CONTENT:END -->
29
30
 
31
+ ## Counter Use Cases
32
+
33
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/useCases.md) -->
34
+ <!-- The below content is automatically added from ./docs/partials/useCases.md -->
35
+ The `auro-counter` element should be used in situations where users may:
36
+
37
+ * Need to input a numeric value within a defined range
38
+ * Need a user-friendly interface for quantity selection
39
+ <!-- AURO-GENERATED-CONTENT:END -->
40
+
30
41
  ## Getting Started
42
+
31
43
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/templates/componentInstall.md) -->
32
44
  <!-- The below content is automatically added from ../../docs/templates/componentInstall.md -->
33
45
 
@@ -40,30 +52,7 @@ $ npm i @aurodesignsystem/auro-formkit
40
52
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/templates/gettingStarted.md) -->
41
53
  <!-- The below content is automatically added from ../../docs/templates/gettingStarted.md -->
42
54
 
43
- ### Import Options
44
-
45
- #### Automatic Registration
46
-
47
- For automatic registration, simply import the component:
48
-
49
- ```javascript
50
- // Registers <auro-counter> automatically
51
- import '@aurodesignsystem/auro-formkit/auro-counter';
52
- ```
53
-
54
- #### Custom Registration
55
-
56
- To protect from versioning conflicts with other instances of the component being loaded, it is recommended to use our static `AuroCounter.register('custom-counter')` method on the component class and pass in a unique name.
57
-
58
- ```javascript
59
- // Import the class only
60
- import { AuroCounter } from '@aurodesignsystem/auro-formkit/auro-counter/class';
61
-
62
- // Register with a custom name if desired
63
- AuroCounter.register('custom-counter');
64
- ```
65
-
66
- #### TypeScript Module Resolution
55
+ ### TypeScript Module Resolution
67
56
 
68
57
  When using TypeScript set `moduleResolution` to `bundler`, add the following to your `tsconfig.json`:
69
58
 
@@ -76,35 +65,10 @@ When using TypeScript set `moduleResolution` to `bundler`, add the following to
76
65
  ```
77
66
 
78
67
  This configuration enables proper module resolution for the component's TypeScript files.
79
- <!-- AURO-GENERATED-CONTENT:END -->
80
- **Reference component in HTML**
81
-
82
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./apiExamples/basic.html) -->
83
- <!-- The below code snippet is automatically added from ./apiExamples/basic.html -->
84
-
85
- ```html
86
- <auro-counter-group>
87
- <auro-counter>
88
- Short label
89
- </auro-counter>
90
- <auro-counter>
91
- Another short label
92
- </auro-counter>
93
- <auro-counter>
94
- This is an example of the wrapping behavior for a long label
95
- </auro-counter>
96
- </auro-counter-group>
97
- ```
98
- <!-- AURO-GENERATED-CONTENT:END -->
99
-
100
- ### Design Token CSS Custom Property dependency
101
-
102
- <!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/development/designTokens.md) -->
103
- The use of any Auro custom element has a dependency on the [Auro Design Tokens](https://auro.alaskaair.com/getting-started/developers/design-tokens).
104
-
105
68
  <!-- AURO-GENERATED-CONTENT:END -->
106
69
 
107
70
  ## Install from CDN
71
+
108
72
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/templates/bundleInstallDescription.md) -->
109
73
  <!-- The below content is automatically added from ../../docs/templates/bundleInstallDescription.md -->
110
74
  In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
@@ -114,22 +78,7 @@ In cases where the project is not able to process JS assets, there are pre-proce
114
78
  ```
115
79
  <!-- AURO-GENERATED-CONTENT:END -->
116
80
 
117
- ## UI development browser support
118
- <!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/browserSupport.md) -->
119
- For the most up to date information on [UI development browser support](https://auro.alaskaair.com/support/browsersSupport)
120
-
121
- <!-- AURO-GENERATED-CONTENT:END -->
122
-
123
- ## auro-counter use cases
124
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/useCases.md) -->
125
- <!-- The below content is automatically added from ./docs/partials/useCases.md -->
126
- The `auro-counter` element should be used in situations where users may:
127
-
128
- * Need to input a numeric value within a defined range
129
- * Need a user-friendly interface for quantity selection
130
- <!-- AURO-GENERATED-CONTENT:END -->
131
-
132
- ## Formkit development
81
+ ## Formkit Development
133
82
 
134
83
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/partials/developmentDescription.md) -->
135
84
  <!-- The below content is automatically added from ../../docs/partials/developmentDescription.md -->
@@ -143,4 +92,70 @@ To only develop a single component, use the `--filter` flag:
143
92
  ```shell
144
93
  npx turbo dev --filter=@aurodesignsystem/auro-input
145
94
  ```
95
+ <!-- AURO-GENERATED-CONTENT:END -->
96
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/customRegistration.md) -->
97
+ <!-- The below content is automatically added from ./docs/partials/customRegistration.md -->
98
+
99
+ ## Custom Component Registration for Version Management
100
+
101
+ There are two key parts to every Auro component: the <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes">class</a> and the custom element definition. The class defines the component’s behavior, while the custom element registers it under a specific name so it can be used in HTML.
102
+
103
+ When you install the component as described on the `Install` page, the class is imported automatically, and the component is registered globally for you.
104
+
105
+ However, if you need to load multiple versions of the same component on a single page (for example, when two projects depend on different versions), you can manually register the class under a custom element name to avoid conflicts.
106
+
107
+ You can do this by importing only the component class and using the `register(name)` method with a unique name:
108
+
109
+ ```js
110
+ // Import the class only
111
+ import { AuroCounter, AuroCounterGroup } from '@aurodesignsystem/auro-formkit/auro-counter/class';
112
+
113
+ // Register with a custom name if desired
114
+ AuroCounter.register('custom-counter');
115
+ AuroCounterGroup.register('custom-counter-group');
116
+ ```
117
+
118
+ This will create a new custom element `<custom-counter>` and `<custom-counter-group>` that behaves exactly like `<auro-counter>` and `<auro-counter-group>`, allowing both to coexist on the same page without interfering with each other.
119
+
120
+ <div class="exampleWrapper exampleWrapper--flex">
121
+ <custom-counter-group>
122
+ <div slot="bib.fullscreen.headline">Passengers</div>
123
+ <div slot="label">Passengers</div>
124
+ <custom-counter>
125
+ Adults
126
+ <span slot="description">18 years or older</span>
127
+ </custom-counter>
128
+ <custom-counter>
129
+ Children
130
+ <span slot="description">2-17 years</span>
131
+ </custom-counter>
132
+ </custom-counter-group>
133
+ </div>
134
+ <auro-accordion alignRight>
135
+ <span slot="trigger">See code</span>
136
+
137
+ ```html
138
+ <custom-counter-group>
139
+ <div slot="bib.fullscreen.headline">Passengers</div>
140
+ <div slot="label">Passengers</div>
141
+ <custom-counter>
142
+ Adults
143
+ <span slot="description">18 years or older</span>
144
+ </custom-counter>
145
+ <custom-counter>
146
+ Children
147
+ <span slot="description">2-17 years</span>
148
+ </custom-counter>
149
+ </custom-counter-group>
150
+
151
+ ```html
152
+ <custom-checkbox-group>
153
+ <span slot="legend">Form label goes here</span>
154
+ <custom-checkbox value="value1" name="custom" id="checkbox-custom1">Custom checkbox option</custom-checkbox>
155
+ <custom-checkbox value="value2" name="custom" id="checkbox-custom2" checked>Custom checkbox option</custom-checkbox>
156
+ <custom-checkbox value="value3" name="custom" id="checkbox-custom3">Custom checkbox option</custom-checkbox>
157
+ <custom-checkbox value="value4" name="custom" id="checkbox-custom4">Custom checkbox option</custom-checkbox>
158
+ </custom-checkbox-group>
159
+ ```
160
+ </auro-accordion>
146
161
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -1,11 +1,7 @@
1
1
  /**
2
- * Auro Counter Group is a group of counter components.
2
+ * The `auro-counter-group` element provides a flexible interface for grouping multiple counters, supporting validation, custom validity messages, and disabled states based on the group's value.
3
+ * @customElement auro-counter-group
3
4
  *
4
- * This web component provides a flexible interface for grouping multiple counters, supporting
5
- * validation, custom validity messages, and disabled states based on the group's value.
6
- *
7
- * @element auro-counter-group
8
- * @extends LitElement
9
5
  * @slot default - Slot for counter elements.
10
6
  * @slot ariaLabel.bib.close - Sets aria-label on close button in fullscreen bib
11
7
  * @slot bib.fullscreen.headline - Defines the headline to display above menu-options. Only used when `isDropdown` is true. Required.
@@ -13,20 +9,16 @@
13
9
  * @slot label - Dropdown label content. Only used when `isDropdown` is true.
14
10
  * @slot valueText - Dropdown value text display. Only used when `isDropdown` is true.
15
11
  * @slot helpText - Dropdown help text content. Only used when `isDropdown` is true.
16
- * @property {'classic'|'snowflake'} layout - Determines the layout style of the counter group when it is a dropdown. Options are 'classic' or 'snowflake'. Default is 'classic'.
17
12
  */
18
- export class AuroCounterGroup extends LitElement {
13
+ export class AuroCounterGroup extends AuroElement {
19
14
  static get styles(): import("lit").CSSResult[];
20
15
  static get properties(): {
21
16
  /**
22
17
  * Defines whether the component will be on lighter or darker backgrounds.
23
- * @property {'default', 'inverse'}
18
+ * @type {'default' | 'inverse'}
24
19
  * @default 'default'
25
20
  */
26
- appearance: {
27
- type: StringConstructor;
28
- reflect: boolean;
29
- };
21
+ appearance: "default" | "inverse";
30
22
  /**
31
23
  * If declared, bib's position will be automatically calculated where to appear.
32
24
  * @default false
@@ -53,23 +45,26 @@ export class AuroCounterGroup extends LitElement {
53
45
  attribute: boolean;
54
46
  };
55
47
  /**
56
- * Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
57
- * at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
48
+ * Defines the screen size breakpoint at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
58
49
  *
59
50
  * When expanded, the dropdown will automatically display in fullscreen mode
60
51
  * if the screen size is equal to or smaller than the selected breakpoint.
61
- * @default sm
52
+ * @type {'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'disabled'}
53
+ * @default 'sm'
62
54
  */
63
- fullscreenBreakpoint: {
64
- type: StringConstructor;
65
- reflect: boolean;
66
- };
55
+ fullscreenBreakpoint: "xs" | "sm" | "md" | "lg" | "xl" | "disabled";
67
56
  /**
68
- * Indicates if the counter group is displayed as a dropdown.
57
+ * If true, the counter group is displayed as a dropdown.
69
58
  */
70
59
  isDropdown: {
71
60
  type: BooleanConstructor;
72
61
  };
62
+ /**
63
+ * Determines the layout style of the counter group when it is a dropdown.
64
+ * @type {'classic' | 'snowflake'}
65
+ * @default 'classic'
66
+ */
67
+ layout: "classic" | "snowflake";
73
68
  /**
74
69
  * If declared, the dropdown will expand to the width of its parent container.
75
70
  * Otherwise, the dropdown width will be determined by its content.
@@ -103,7 +98,6 @@ export class AuroCounterGroup extends LitElement {
103
98
  /**
104
99
  * If declared, the bib will NOT flip to an alternate position
105
100
  * when there isn't enough space in the specified `placement`.
106
- * @default false
107
101
  */
108
102
  noFlip: {
109
103
  type: BooleanConstructor;
@@ -111,7 +105,6 @@ export class AuroCounterGroup extends LitElement {
111
105
  };
112
106
  /**
113
107
  * If declared, the dropdown will shift its position to avoid being cut off by the viewport.
114
- * @default false
115
108
  */
116
109
  shift: {
117
110
  type: BooleanConstructor;
@@ -134,17 +127,10 @@ export class AuroCounterGroup extends LitElement {
134
127
  };
135
128
  /**
136
129
  * Position where the bib should appear relative to the trigger.
137
- * Accepted values:
138
- * "top" | "right" | "bottom" | "left" |
139
- * "bottom-start" | "top-start" | "top-end" |
140
- * "right-start" | "right-end" | "bottom-end" |
141
- * "left-start" | "left-end".
142
- * @default bottom-start
130
+ * @type {'top' | 'right' | 'bottom' | 'left' | 'bottom-start' | 'top-start' | 'top-end' | 'right-start' | 'right-end' | 'bottom-end' | 'left-start' | 'left-end'}
131
+ * @default 'bottom-start'
143
132
  */
144
- placement: {
145
- type: StringConstructor;
146
- reflect: boolean;
147
- };
133
+ placement: "top" | "right" | "bottom" | "left" | "bottom-start" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-end" | "left-start" | "left-end";
148
134
  /**
149
135
  * The total value of the counters.
150
136
  */
@@ -176,7 +162,7 @@ export class AuroCounterGroup extends LitElement {
176
162
  };
177
163
  /**
178
164
  * Registers the custom element with the browser.
179
- * @param {string} [name="auro-counter-group"] - Custom element name to register.
165
+ * @param {string} [name="auro-counter-group"] - The name of the element that you want to register.
180
166
  * @example
181
167
  * AuroCounterGroup.register("custom-counter-group") // registers <custom-counter-group/>
182
168
  */
@@ -386,7 +372,6 @@ export class AuroCounterGroup extends LitElement {
386
372
  */
387
373
  private renderLayoutClassic;
388
374
  shape: any;
389
- layout: any;
390
375
  size: any;
391
376
  /**
392
377
  * Render the snowflake layout.
@@ -402,4 +387,4 @@ export class AuroCounterGroup extends LitElement {
402
387
  */
403
388
  private renderLayout;
404
389
  }
405
- import { LitElement } from "lit";
390
+ import { AuroElement } from "../../layoutElement/src/auroElement.js";
@@ -1,11 +1,6 @@
1
1
  /**
2
- * Auro Counter Wrapper is a group of counter components.
2
+ * Wrapper element for auro-counter elements in an application to provide layout structure for multiple counters.
3
3
  *
4
- * This web component provides a flexible interface for grouping multiple counters, supporting
5
- * validation, custom validity messages, and disabled states based on the group's value.
6
- *
7
- * @element auro-counter-group
8
- * @extends LitElement
9
4
  * @slot Default - Slot for counter elements.
10
5
  */
11
6
  export class AuroCounterWrapper extends LitElement {
@@ -1,12 +1,8 @@
1
1
  /**
2
- * Auro Counter is a customizable counter component for user interface interactions.
2
+ * The `auro-counter` element provides a flexible counter interface with increment and decrement buttons, supporting optional sub-labels and disabled states.
3
+ * @customElement auro-counter
3
4
  *
4
- * This web component provides a flexible counter interface with increment and decrement buttons,
5
- * supporting optional sub-labels and disabled states.
6
- *
7
- * @element auro-counter
8
- * @extends LitElement
9
- * @slot - Main label content for the counter.
5
+ * @slot default - Main label content for the counter.
10
6
  * @slot ariaLabel.minus - Accessible label for the decrement button.
11
7
  * @slot ariaLabel.plus - Accessible label for the increment button.
12
8
  * @slot helpText - Help text content for the counter.
@@ -20,12 +16,13 @@ export class AuroCounter extends LitElement {
20
16
  static get properties(): any;
21
17
  /**
22
18
  * Registers the custom element with the browser.
23
- * @param {string} [name="auro-counter"] - Custom element name to register.
19
+ * @param {string} [name="auro-counter"] - The name of the element that you want to register.
24
20
  * @example
25
21
  * AuroCounter.register("custom-counter") // registers <custom-counter/>
26
22
  */
27
23
  static register(name?: string): void;
28
24
  static get styles(): import("lit").CSSResult[];
25
+ _initializeDefaults(): void;
29
26
  appearance: string;
30
27
  defaultSlot: any;
31
28
  disabled: boolean;