@aurodesignsystem-dev/auro-formkit 0.0.0-pr1379.0 → 0.0.0-pr1379.10

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 (226) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/README.md +87 -113
  3. package/components/combobox/demo/keyboardBehavior.html +81 -0
  4. package/components/counter/demo/keyboardBehavior.html +81 -0
  5. package/components/datepicker/demo/keyboard-behavior.html +81 -0
  6. package/components/dropdown/demo/keyboardBehavior.html +81 -0
  7. package/components/select/demo/keyboardBehavior.html +81 -0
  8. package/package.json +64 -53
  9. package/components/bibtemplate/dist/auro-bibtemplate.d.ts +0 -66
  10. package/components/bibtemplate/dist/buttonVersion.d.ts +0 -2
  11. package/components/bibtemplate/dist/headerVersion.d.ts +0 -2
  12. package/components/bibtemplate/dist/iconVersion.d.ts +0 -2
  13. package/components/bibtemplate/dist/index.d.ts +0 -2
  14. package/components/bibtemplate/dist/index.js +0 -395
  15. package/components/bibtemplate/dist/registered.js +0 -395
  16. package/components/bibtemplate/dist/styles/color-css.d.ts +0 -2
  17. package/components/bibtemplate/dist/styles/style-css.d.ts +0 -2
  18. package/components/bibtemplate/dist/styles/tokens-css.d.ts +0 -2
  19. package/components/checkbox/demo/api.md +0 -489
  20. package/components/checkbox/demo/api.min.js +0 -2133
  21. package/components/checkbox/demo/index.md +0 -55
  22. package/components/checkbox/demo/index.min.js +0 -2108
  23. package/components/checkbox/demo/readme.md +0 -142
  24. package/components/checkbox/dist/auro-checkbox-group.d.ts +0 -176
  25. package/components/checkbox/dist/auro-checkbox.d.ts +0 -209
  26. package/components/checkbox/dist/index.d.ts +0 -3
  27. package/components/checkbox/dist/index.js +0 -2057
  28. package/components/checkbox/dist/registered.js +0 -2058
  29. package/components/checkbox/dist/styles/auro-checkbox-css.d.ts +0 -2
  30. package/components/checkbox/dist/styles/auro-checkbox-group-css.d.ts +0 -2
  31. package/components/checkbox/dist/styles/color-css.d.ts +0 -2
  32. package/components/checkbox/dist/styles/colorGroup-css.d.ts +0 -2
  33. package/components/checkbox/dist/styles/tokens-css.d.ts +0 -2
  34. package/components/combobox/demo/api.md +0 -2287
  35. package/components/combobox/demo/api.min.js +0 -17549
  36. package/components/combobox/demo/index.md +0 -196
  37. package/components/combobox/demo/index.min.js +0 -17454
  38. package/components/combobox/demo/readme.md +0 -158
  39. package/components/combobox/dist/auro-combobox.d.ts +0 -552
  40. package/components/combobox/dist/comboboxKeyboardStrategy.d.ts +0 -6
  41. package/components/combobox/dist/index.d.ts +0 -2
  42. package/components/combobox/dist/index.js +0 -15474
  43. package/components/combobox/dist/registered.js +0 -15476
  44. package/components/combobox/dist/styles/emphasized/style-css.d.ts +0 -2
  45. package/components/combobox/dist/styles/snowflake/style-css.d.ts +0 -2
  46. package/components/combobox/dist/styles/style-css.d.ts +0 -2
  47. package/components/counter/demo/api.md +0 -1285
  48. package/components/counter/demo/api.min.js +0 -7993
  49. package/components/counter/demo/index.md +0 -92
  50. package/components/counter/demo/index.min.js +0 -7974
  51. package/components/counter/demo/readme.md +0 -161
  52. package/components/counter/dist/auro-counter-button.d.ts +0 -14
  53. package/components/counter/dist/auro-counter-group.d.ts +0 -390
  54. package/components/counter/dist/auro-counter-wrapper.d.ts +0 -17
  55. package/components/counter/dist/auro-counter.d.ts +0 -126
  56. package/components/counter/dist/buttonVersion.d.ts +0 -2
  57. package/components/counter/dist/iconVersion.d.ts +0 -2
  58. package/components/counter/dist/index.d.ts +0 -3
  59. package/components/counter/dist/index.js +0 -7896
  60. package/components/counter/dist/registered.js +0 -7897
  61. package/components/counter/dist/styles/color-css.d.ts +0 -2
  62. package/components/counter/dist/styles/counter-button-color-css.d.ts +0 -2
  63. package/components/counter/dist/styles/counter-button-css.d.ts +0 -2
  64. package/components/counter/dist/styles/counter-group-css.d.ts +0 -2
  65. package/components/counter/dist/styles/counter-wrapper-color-css.d.ts +0 -2
  66. package/components/counter/dist/styles/counter-wrapper-css.d.ts +0 -2
  67. package/components/counter/dist/styles/shapeSize-css.d.ts +0 -2
  68. package/components/counter/dist/styles/style-css.d.ts +0 -2
  69. package/components/counter/dist/styles/tokens-css.d.ts +0 -2
  70. package/components/datepicker/demo/api.md +0 -1824
  71. package/components/datepicker/demo/api.min.js +0 -24530
  72. package/components/datepicker/demo/index.md +0 -158
  73. package/components/datepicker/demo/index.min.js +0 -24251
  74. package/components/datepicker/demo/readme.md +0 -137
  75. package/components/datepicker/dist/auro-calendar-cell.d.ts +0 -169
  76. package/components/datepicker/dist/auro-calendar-month.d.ts +0 -20
  77. package/components/datepicker/dist/auro-calendar.d.ts +0 -173
  78. package/components/datepicker/dist/auro-datepicker.d.ts +0 -722
  79. package/components/datepicker/dist/buttonVersion.d.ts +0 -2
  80. package/components/datepicker/dist/iconVersion.d.ts +0 -2
  81. package/components/datepicker/dist/index.d.ts +0 -2
  82. package/components/datepicker/dist/index.js +0 -24166
  83. package/components/datepicker/dist/popoverVersion.d.ts +0 -2
  84. package/components/datepicker/dist/registered.js +0 -24166
  85. package/components/datepicker/dist/styles/classic/color-css.d.ts +0 -2
  86. package/components/datepicker/dist/styles/classic/style-css.d.ts +0 -2
  87. package/components/datepicker/dist/styles/color-calendar-css.d.ts +0 -2
  88. package/components/datepicker/dist/styles/color-cell-css.d.ts +0 -2
  89. package/components/datepicker/dist/styles/color-css.d.ts +0 -2
  90. package/components/datepicker/dist/styles/color-month-css.d.ts +0 -2
  91. package/components/datepicker/dist/styles/shapeSize-css.d.ts +0 -2
  92. package/components/datepicker/dist/styles/snowflake/color-css.d.ts +0 -2
  93. package/components/datepicker/dist/styles/snowflake/style-css.d.ts +0 -2
  94. package/components/datepicker/dist/styles/style-auro-calendar-cell-css.d.ts +0 -2
  95. package/components/datepicker/dist/styles/style-auro-calendar-css.d.ts +0 -2
  96. package/components/datepicker/dist/styles/style-auro-calendar-month-css.d.ts +0 -2
  97. package/components/datepicker/dist/styles/style-css.d.ts +0 -2
  98. package/components/datepicker/dist/styles/tokens-css.d.ts +0 -2
  99. package/components/datepicker/dist/utilities.d.ts +0 -78
  100. package/components/datepicker/dist/utilitiesCalendar.d.ts +0 -38
  101. package/components/datepicker/dist/utilitiesCalendarRender.d.ts +0 -50
  102. package/components/datepicker/dist/vendor/wc-range-datepicker/day.d.ts +0 -5
  103. package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-calendar.d.ts +0 -60
  104. package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-cell.d.ts +0 -1
  105. package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker.d.ts +0 -57
  106. package/components/dropdown/demo/api.md +0 -1358
  107. package/components/dropdown/demo/api.min.js +0 -4853
  108. package/components/dropdown/demo/index.md +0 -283
  109. package/components/dropdown/demo/index.min.js +0 -4788
  110. package/components/dropdown/demo/readme.md +0 -160
  111. package/components/dropdown/dist/auro-dropdown.d.ts +0 -482
  112. package/components/dropdown/dist/auro-dropdownBib.d.ts +0 -155
  113. package/components/dropdown/dist/iconVersion.d.ts +0 -2
  114. package/components/dropdown/dist/index.d.ts +0 -2
  115. package/components/dropdown/dist/index.js +0 -4685
  116. package/components/dropdown/dist/keyboardUtils.d.ts +0 -18
  117. package/components/dropdown/dist/registered.js +0 -4685
  118. package/components/dropdown/dist/styles/classic/bibColors-css.d.ts +0 -2
  119. package/components/dropdown/dist/styles/classic/bibStyles-css.d.ts +0 -2
  120. package/components/dropdown/dist/styles/classic/color-css.d.ts +0 -2
  121. package/components/dropdown/dist/styles/classic/style-css.d.ts +0 -2
  122. package/components/dropdown/dist/styles/color-css.d.ts +0 -2
  123. package/components/dropdown/dist/styles/emphasized/style-css.d.ts +0 -2
  124. package/components/dropdown/dist/styles/shapeSize-css.d.ts +0 -2
  125. package/components/dropdown/dist/styles/snowflake/style-css.d.ts +0 -2
  126. package/components/dropdown/dist/styles/style-css.d.ts +0 -2
  127. package/components/dropdown/dist/styles/tokens-css.d.ts +0 -2
  128. package/components/form/demo/api.md +0 -319
  129. package/components/form/demo/api.min.js +0 -69996
  130. package/components/form/demo/index.md +0 -128
  131. package/components/form/demo/index.min.js +0 -69996
  132. package/components/form/demo/readme.md +0 -145
  133. package/components/form/dist/auro-form.d.ts +0 -280
  134. package/components/form/dist/index.d.ts +0 -2
  135. package/components/form/dist/index.js +0 -718
  136. package/components/form/dist/registered.d.ts +0 -1
  137. package/components/form/dist/registered.js +0 -718
  138. package/components/form/dist/styles/style-css.d.ts +0 -2
  139. package/components/helptext/dist/auro-helptext.d.ts +0 -69
  140. package/components/helptext/dist/index.d.ts +0 -2
  141. package/components/helptext/dist/index.js +0 -231
  142. package/components/helptext/dist/registered.js +0 -231
  143. package/components/helptext/dist/styles/color-css.d.ts +0 -2
  144. package/components/helptext/dist/styles/style-css.d.ts +0 -2
  145. package/components/helptext/dist/styles/tokens-css.d.ts +0 -2
  146. package/components/input/demo/api.md +0 -1397
  147. package/components/input/demo/api.min.js +0 -7435
  148. package/components/input/demo/index.md +0 -161
  149. package/components/input/demo/index.min.js +0 -7355
  150. package/components/input/demo/readme.md +0 -134
  151. package/components/input/dist/auro-input.d.ts +0 -195
  152. package/components/input/dist/base-input.d.ts +0 -628
  153. package/components/input/dist/buttonVersion.d.ts +0 -2
  154. package/components/input/dist/i18n.d.ts +0 -18
  155. package/components/input/dist/iconVersion.d.ts +0 -2
  156. package/components/input/dist/index.d.ts +0 -2
  157. package/components/input/dist/index.js +0 -7278
  158. package/components/input/dist/registered.js +0 -7278
  159. package/components/input/dist/styles/classic/color-css.d.ts +0 -2
  160. package/components/input/dist/styles/classic/style-css.d.ts +0 -2
  161. package/components/input/dist/styles/color-css.d.ts +0 -2
  162. package/components/input/dist/styles/default/borders-css.d.ts +0 -2
  163. package/components/input/dist/styles/default/color-css.d.ts +0 -2
  164. package/components/input/dist/styles/default/mixins-css.d.ts +0 -2
  165. package/components/input/dist/styles/default/notificationIcons-css.d.ts +0 -2
  166. package/components/input/dist/styles/default/style-css.d.ts +0 -2
  167. package/components/input/dist/styles/emphasized/color-css.d.ts +0 -2
  168. package/components/input/dist/styles/emphasized/style-css.d.ts +0 -2
  169. package/components/input/dist/styles/mixins-css.d.ts +0 -2
  170. package/components/input/dist/styles/shapeSize-css.d.ts +0 -2
  171. package/components/input/dist/styles/snowflake/style-css.d.ts +0 -2
  172. package/components/input/dist/styles/style-css.d.ts +0 -2
  173. package/components/input/dist/styles/tokens-css.d.ts +0 -2
  174. package/components/input/dist/utilities.d.ts +0 -25
  175. package/components/layoutElement/dist/auroElement.d.ts +0 -40
  176. package/components/layoutElement/dist/index.d.ts +0 -2
  177. package/components/layoutElement/dist/index.js +0 -107
  178. package/components/layoutElement/dist/registered.js +0 -107
  179. package/components/menu/demo/api.md +0 -1200
  180. package/components/menu/demo/api.min.js +0 -2292
  181. package/components/menu/demo/index.md +0 -72
  182. package/components/menu/demo/index.min.js +0 -2185
  183. package/components/menu/demo/readme.md +0 -145
  184. package/components/menu/dist/auro-menu-utils.d.ts +0 -34
  185. package/components/menu/dist/auro-menu.context.d.ts +0 -227
  186. package/components/menu/dist/auro-menu.d.ts +0 -324
  187. package/components/menu/dist/auro-menuoption.d.ts +0 -210
  188. package/components/menu/dist/iconVersion.d.ts +0 -2
  189. package/components/menu/dist/index.d.ts +0 -4
  190. package/components/menu/dist/index.js +0 -2148
  191. package/components/menu/dist/registered.js +0 -2096
  192. package/components/menu/dist/styles/default/color-menu-css.d.ts +0 -2
  193. package/components/menu/dist/styles/default/color-menuoption-css.d.ts +0 -2
  194. package/components/menu/dist/styles/default/style-menu-css.d.ts +0 -2
  195. package/components/menu/dist/styles/default/style-menuoption-css.d.ts +0 -2
  196. package/components/menu/dist/styles/default/tokens-css.d.ts +0 -2
  197. package/components/radio/demo/api.md +0 -675
  198. package/components/radio/demo/api.min.js +0 -2210
  199. package/components/radio/demo/index.md +0 -73
  200. package/components/radio/demo/index.min.js +0 -2167
  201. package/components/radio/demo/readme.md +0 -141
  202. package/components/radio/dist/auro-radio-group.d.ts +0 -250
  203. package/components/radio/dist/auro-radio.d.ts +0 -180
  204. package/components/radio/dist/index.d.ts +0 -3
  205. package/components/radio/dist/index.js +0 -2116
  206. package/components/radio/dist/registered.js +0 -2117
  207. package/components/radio/dist/styles/auro-radio-group-css.d.ts +0 -2
  208. package/components/radio/dist/styles/color-css.d.ts +0 -2
  209. package/components/radio/dist/styles/groupColor-css.d.ts +0 -2
  210. package/components/radio/dist/styles/style-css.d.ts +0 -2
  211. package/components/radio/dist/styles/tokens-css.d.ts +0 -2
  212. package/components/select/demo/api.md +0 -2378
  213. package/components/select/demo/api.min.js +0 -10133
  214. package/components/select/demo/index.md +0 -355
  215. package/components/select/demo/index.min.js +0 -10040
  216. package/components/select/demo/readme.md +0 -148
  217. package/components/select/dist/auro-select.d.ts +0 -545
  218. package/components/select/dist/index.d.ts +0 -2
  219. package/components/select/dist/index.js +0 -8072
  220. package/components/select/dist/registered.js +0 -8072
  221. package/components/select/dist/selectKeyboardStrategy.d.ts +0 -8
  222. package/components/select/dist/styles/emphasized/color-css.d.ts +0 -2
  223. package/components/select/dist/styles/shapeSize-css.d.ts +0 -2
  224. package/components/select/dist/styles/style-css.d.ts +0 -2
  225. package/components/select/dist/styles/tokens-css.d.ts +0 -2
  226. package/custom-elements.json +0 -18656
@@ -1,2 +0,0 @@
1
- declare const _default: import("lit").CSSResult;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import("lit").CSSResult;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import("lit").CSSResult;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import("lit").CSSResult;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import("lit").CSSResult;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import("lit").CSSResult;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import("lit").CSSResult;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import("lit").CSSResult;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import("lit").CSSResult;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import("lit").CSSResult;
2
- export default _default;
@@ -1,319 +0,0 @@
1
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=../docs/api.md) -->
2
- <!-- The below content is automatically added from ../docs/api.md -->
3
-
4
- # auro-form
5
-
6
- The `auro-form` element provides users a way to create and manage forms in a consistent manner.
7
-
8
- ## Properties
9
-
10
- | Property | Modifiers | Type | Description |
11
- |------------------|-----------|--------------------------------------------------|--------------------------------------------------|
12
- | [isInitialState](#isInitialState) | readonly | `boolean` | Returns `true` if no form element has been interacted with or had its value changed since the form was initialized or last reset. |
13
- | [validity](#validity) | readonly | `"valid" \| "invalid" \| null` | Returns `'valid'` if all required and interacted-with form elements are valid, `'invalid'` if any are not, or `null` if the form has not been interacted with yet. |
14
- | [value](#value) | readonly | `Record<string, string \| number \| boolean \| string[] \| null>` | Returns the current values of all named form elements as a key-value object, keyed by each element's `name` attribute. |
15
-
16
- ## Methods
17
-
18
- | Method | Type | Description |
19
- |----------|---------------------|--------------------------------------------------|
20
- | [reset](#reset) | `(): void` | Resets all form elements to their initial state and fires a `reset` event. The event's `detail.previousValue` contains the form values captured immediately before the reset. |
21
- | [submit](#submit) | `(): Promise<void>` | Validates all form elements. If all are valid, fires a `submit` event with `detail.value` containing the current form values. If any element is invalid, its error state is surfaced and the `submit` event is not fired. |
22
-
23
- ## Events
24
-
25
- | Event | Type | Description |
26
- |----------|--------------------------------------------------|--------------------------------------------------|
27
- | [change](#change) | | Fires when a child form element's value changes or the form is initialized. |
28
- | [input](#input) | | Fires when a child form element receives user input. |
29
- | [reset](#reset) | `CustomEvent<{ previousValue: Record<string, string \| number \| boolean \| string[] \| null>; }>` | Fires when the form is reset. The event detail contains the previous value of the form before reset. |
30
- | [submit](#submit) | `CustomEvent<{ value: Record<string, string \| number \| boolean \| string[] \| null>; }>` | Fires when the form is submitted. The event detail contains the current value of the form. |
31
-
32
- ## Slots
33
-
34
- | Name | Description |
35
- |-----------|-------------------------------------|
36
- | [default](#default) | The default slot for form elements. |
37
- <!-- AURO-GENERATED-CONTENT:END -->
38
-
39
- ## Examples
40
-
41
- ### Basic Form
42
-
43
- The most basic form implementation requires an `auro-input` and an optional auro button with `type="submit"`.
44
-
45
- By default, Auro Form connects a `submit` event to all `type="submit"` buttons within the form.
46
-
47
- <div class="exampleWrapper">
48
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
49
- <!-- The below content is automatically added from ./../apiExamples/basic.html -->
50
- <auro-form>
51
- <auro-input id="search-box" name="searchBox" required>
52
- <span slot="label">Search flights</span>
53
- </auro-input>
54
- <br />
55
- <auro-button type="submit">Submit</auro-button>
56
- </auro-form>
57
- <!-- AURO-GENERATED-CONTENT:END -->
58
- </div>
59
- <auro-accordion alignRight>
60
- <span slot="trigger">See code</span>
61
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic.html) -->
62
- <!-- The below code snippet is automatically added from ./../apiExamples/basic.html -->
63
-
64
- ```html
65
- <auro-form>
66
- <auro-input id="search-box" name="searchBox" required>
67
- <span slot="label">Search flights</span>
68
- </auro-input>
69
- <br />
70
- <auro-button type="submit">Submit</auro-button>
71
- </auro-form>
72
- ```
73
- <!-- AURO-GENERATED-CONTENT:END -->
74
- </auro-accordion>
75
-
76
- ### Form with Column Layout
77
-
78
- Auro Form is designed to be completely unstyled by default, allowing developers to use divs, structural elements, or
79
- custom CSS to style the form.
80
-
81
- This example shows that you can use advanced layouts with Auro Form, such as a column layout.
82
-
83
- <div class="exampleWrapper">
84
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/column-layout.html) -->
85
- <!-- The below content is automatically added from ./../apiExamples/column-layout.html -->
86
- <style>
87
- .columned-form {
88
- display: grid;
89
- grid-template-columns: 1fr 1fr;
90
- gap: 1rem;
91
- }
92
-
93
- .columned-form div {
94
- display: flex;
95
- flex-direction: column;
96
- padding: 1rem;
97
- gap: 1rem;
98
- }
99
-
100
- .controls {
101
- display: flex;
102
- justify-content: flex-end;
103
- margin-top: 1rem;
104
- }
105
- </style>
106
- <auro-form>
107
- <div class="columned-form">
108
- <div>
109
- <auro-input id="search-box" name="searchBox" required>
110
- <span slot="label">Search flights</span>
111
- </auro-input>
112
- <auro-input id="last-name" name="lastName" required>
113
- <span slot="label">Last Name</span>
114
- </auro-input>
115
- </div>
116
- <div>
117
- <div class="datepickerBlock">
118
- <h4>Pick a date range</h4>
119
- <auro-datepicker id="date-range" name="dateRange" required range>
120
- <span slot="fromLabel">Start</span>
121
- <span slot="toLabel">End</span>
122
- <span slot="bib.fullscreen.fromLabel">Start</span>
123
- <span slot="bib.fullscreen.toLabel">End</span>
124
- </auro-datepicker>
125
- </div>
126
- <div class="controls">
127
- <auro-button type="submit">Submit</auro-button>
128
- </div>
129
- </div>
130
- </div>
131
- </auro-form>
132
- <!-- AURO-GENERATED-CONTENT:END -->
133
- </div>
134
- <auro-accordion alignRight>
135
- <span slot="trigger">See code</span>
136
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/column-layout.html) -->
137
- <!-- The below code snippet is automatically added from ./../apiExamples/column-layout.html -->
138
-
139
- ```html
140
- <style>
141
- .columned-form {
142
- display: grid;
143
- grid-template-columns: 1fr 1fr;
144
- gap: 1rem;
145
- }
146
-
147
- .columned-form div {
148
- display: flex;
149
- flex-direction: column;
150
- padding: 1rem;
151
- gap: 1rem;
152
- }
153
-
154
- .controls {
155
- display: flex;
156
- justify-content: flex-end;
157
- margin-top: 1rem;
158
- }
159
- </style>
160
- <auro-form>
161
- <div class="columned-form">
162
- <div>
163
- <auro-input id="search-box" name="searchBox" required>
164
- <span slot="label">Search flights</span>
165
- </auro-input>
166
- <auro-input id="last-name" name="lastName" required>
167
- <span slot="label">Last Name</span>
168
- </auro-input>
169
- </div>
170
- <div>
171
- <div class="datepickerBlock">
172
- <h4>Pick a date range</h4>
173
- <auro-datepicker id="date-range" name="dateRange" required range>
174
- <span slot="fromLabel">Start</span>
175
- <span slot="toLabel">End</span>
176
- <span slot="bib.fullscreen.fromLabel">Start</span>
177
- <span slot="bib.fullscreen.toLabel">End</span>
178
- </auro-datepicker>
179
- </div>
180
- <div class="controls">
181
- <auro-button type="submit">Submit</auro-button>
182
- </div>
183
- </div>
184
- </div>
185
- </auro-form>
186
- ```
187
- <!-- AURO-GENERATED-CONTENT:END -->
188
- </auro-accordion>
189
-
190
- ### Complex Form
191
-
192
- Finally, a more complex form example with multiple form elements, including a date picker and a select element.
193
-
194
- <div class="exampleWrapper">
195
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/complex.html) -->
196
- <!-- The below content is automatically added from ./../apiExamples/complex.html -->
197
- <style>
198
- .submitBlock {
199
- margin-top: 1rem;
200
- display: flex;
201
- justify-content: flex-end;
202
- gap: 1rem;
203
- }
204
-
205
- .datepickerBlock {
206
- margin-top: 1rem;
207
- }
208
-
209
- .complex-form {
210
- display: block;
211
- padding: 1rem;
212
- border: 1px solid #2a2a2a;
213
- border-radius: 1rem;
214
- }
215
- </style>
216
- <auro-form class="complex-form">
217
- <auro-input id="first-name" name="firstName" required>
218
- <span slot="label">First Name</span>
219
- </auro-input>
220
- <br />
221
- <auro-input id="last-name" name="lastName" required>
222
- <span slot="label">Last Name</span>
223
- </auro-input>
224
- <br />
225
- <auro-input id="occupation" name="occupation" required>
226
- <span slot="label">Occupation</span>
227
- </auro-input>
228
- <br />
229
- <auro-input-two id="cool-fact" name="coolFact" required>
230
- <span slot="label">Cool Fact</span>
231
- </auro-input-two>
232
- <div class="datepickerBlock">
233
- <h4>Pick a cool date</h4>
234
- <auro-datepicker id="date-example" name="dateExample" required>
235
- <span slot="fromLabel">Choose a date</span>
236
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
237
- </auro-datepicker>
238
- </div>
239
- <div class="datepickerBlock">
240
- <h4>Pick a date range</h4>
241
- <auro-datepicker id="date-range" name="dateRange" required range>
242
- <span slot="fromLabel">Start</span>
243
- <span slot="toLabel">End</span>
244
- <span slot="bib.fullscreen.fromLabel">Start</span>
245
- <span slot="bib.fullscreen.toLabel">End</span>
246
- </auro-datepicker>
247
- </div>
248
- <div class="submitBlock">
249
- <auro-button type="reset">Reset</auro-button>
250
- <auro-button type="submit">Submit</auro-button>
251
- </div>
252
- </auro-form>
253
- <!-- AURO-GENERATED-CONTENT:END -->
254
- </div>
255
- <auro-accordion alignRight>
256
- <span slot="trigger">See code</span>
257
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/complex.html) -->
258
- <!-- The below code snippet is automatically added from ./../apiExamples/complex.html -->
259
-
260
- ```html
261
- <style>
262
- .submitBlock {
263
- margin-top: 1rem;
264
- display: flex;
265
- justify-content: flex-end;
266
- gap: 1rem;
267
- }
268
-
269
- .datepickerBlock {
270
- margin-top: 1rem;
271
- }
272
-
273
- .complex-form {
274
- display: block;
275
- padding: 1rem;
276
- border: 1px solid #2a2a2a;
277
- border-radius: 1rem;
278
- }
279
- </style>
280
- <auro-form class="complex-form">
281
- <auro-input id="first-name" name="firstName" required>
282
- <span slot="label">First Name</span>
283
- </auro-input>
284
- <br />
285
- <auro-input id="last-name" name="lastName" required>
286
- <span slot="label">Last Name</span>
287
- </auro-input>
288
- <br />
289
- <auro-input id="occupation" name="occupation" required>
290
- <span slot="label">Occupation</span>
291
- </auro-input>
292
- <br />
293
- <auro-input-two id="cool-fact" name="coolFact" required>
294
- <span slot="label">Cool Fact</span>
295
- </auro-input-two>
296
- <div class="datepickerBlock">
297
- <h4>Pick a cool date</h4>
298
- <auro-datepicker id="date-example" name="dateExample" required>
299
- <span slot="fromLabel">Choose a date</span>
300
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
301
- </auro-datepicker>
302
- </div>
303
- <div class="datepickerBlock">
304
- <h4>Pick a date range</h4>
305
- <auro-datepicker id="date-range" name="dateRange" required range>
306
- <span slot="fromLabel">Start</span>
307
- <span slot="toLabel">End</span>
308
- <span slot="bib.fullscreen.fromLabel">Start</span>
309
- <span slot="bib.fullscreen.toLabel">End</span>
310
- </auro-datepicker>
311
- </div>
312
- <div class="submitBlock">
313
- <auro-button type="reset">Reset</auro-button>
314
- <auro-button type="submit">Submit</auro-button>
315
- </div>
316
- </auro-form>
317
- ```
318
- <!-- AURO-GENERATED-CONTENT:END -->
319
- </auro-accordion>