@aurodesignsystem-dev/auro-formkit 0.0.0-pr1422.0 → 0.0.0-pr1423.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (231) hide show
  1. package/components/bibtemplate/dist/auro-bibtemplate.d.ts +66 -0
  2. package/components/bibtemplate/dist/buttonVersion.d.ts +2 -0
  3. package/components/bibtemplate/dist/headerVersion.d.ts +2 -0
  4. package/components/bibtemplate/dist/iconVersion.d.ts +2 -0
  5. package/components/bibtemplate/dist/index.d.ts +2 -0
  6. package/components/bibtemplate/dist/index.js +395 -0
  7. package/components/bibtemplate/dist/registered.js +395 -0
  8. package/components/bibtemplate/dist/styles/color-css.d.ts +2 -0
  9. package/components/bibtemplate/dist/styles/style-css.d.ts +2 -0
  10. package/components/bibtemplate/dist/styles/tokens-css.d.ts +2 -0
  11. package/components/checkbox/demo/api.md +489 -0
  12. package/components/checkbox/demo/api.min.js +2133 -0
  13. package/components/checkbox/demo/index.md +55 -0
  14. package/components/checkbox/demo/index.min.js +2108 -0
  15. package/components/checkbox/demo/keyboardBehavior.md +0 -0
  16. package/components/checkbox/demo/readme.md +142 -0
  17. package/components/checkbox/dist/auro-checkbox-group.d.ts +176 -0
  18. package/components/checkbox/dist/auro-checkbox.d.ts +209 -0
  19. package/components/checkbox/dist/index.d.ts +3 -0
  20. package/components/checkbox/dist/index.js +2057 -0
  21. package/components/checkbox/dist/registered.js +2058 -0
  22. package/components/checkbox/dist/styles/auro-checkbox-css.d.ts +2 -0
  23. package/components/checkbox/dist/styles/auro-checkbox-group-css.d.ts +2 -0
  24. package/components/checkbox/dist/styles/color-css.d.ts +2 -0
  25. package/components/checkbox/dist/styles/colorGroup-css.d.ts +2 -0
  26. package/components/checkbox/dist/styles/tokens-css.d.ts +2 -0
  27. package/components/combobox/demo/api.md +2287 -0
  28. package/components/combobox/demo/api.min.js +17914 -0
  29. package/components/combobox/demo/index.md +196 -0
  30. package/components/combobox/demo/index.min.js +17819 -0
  31. package/components/combobox/demo/keyboardBehavior.md +281 -0
  32. package/components/combobox/demo/readme.md +158 -0
  33. package/components/combobox/dist/auro-combobox.d.ts +578 -0
  34. package/components/combobox/dist/comboboxKeyboardStrategy.d.ts +9 -0
  35. package/components/combobox/dist/index.d.ts +2 -0
  36. package/components/combobox/dist/index.js +15734 -0
  37. package/components/combobox/dist/registered.js +15736 -0
  38. package/components/combobox/dist/styles/emphasized/style-css.d.ts +2 -0
  39. package/components/combobox/dist/styles/snowflake/style-css.d.ts +2 -0
  40. package/components/combobox/dist/styles/style-css.d.ts +2 -0
  41. package/components/counter/demo/api.md +1285 -0
  42. package/components/counter/demo/api.min.js +8126 -0
  43. package/components/counter/demo/index.md +92 -0
  44. package/components/counter/demo/index.min.js +8107 -0
  45. package/components/counter/demo/keyboardBehavior.md +127 -0
  46. package/components/counter/demo/readme.md +161 -0
  47. package/components/counter/dist/auro-counter-button.d.ts +14 -0
  48. package/components/counter/dist/auro-counter-group.d.ts +390 -0
  49. package/components/counter/dist/auro-counter-wrapper.d.ts +17 -0
  50. package/components/counter/dist/auro-counter.d.ts +136 -0
  51. package/components/counter/dist/buttonVersion.d.ts +2 -0
  52. package/components/counter/dist/iconVersion.d.ts +2 -0
  53. package/components/counter/dist/index.d.ts +3 -0
  54. package/components/counter/dist/index.js +8029 -0
  55. package/components/counter/dist/keyboardStrategy.d.ts +4 -0
  56. package/components/counter/dist/registered.js +8030 -0
  57. package/components/counter/dist/styles/color-css.d.ts +2 -0
  58. package/components/counter/dist/styles/counter-button-color-css.d.ts +2 -0
  59. package/components/counter/dist/styles/counter-button-css.d.ts +2 -0
  60. package/components/counter/dist/styles/counter-group-css.d.ts +2 -0
  61. package/components/counter/dist/styles/counter-wrapper-color-css.d.ts +2 -0
  62. package/components/counter/dist/styles/counter-wrapper-css.d.ts +2 -0
  63. package/components/counter/dist/styles/shapeSize-css.d.ts +2 -0
  64. package/components/counter/dist/styles/style-css.d.ts +2 -0
  65. package/components/counter/dist/styles/tokens-css.d.ts +2 -0
  66. package/components/datepicker/demo/api.md +1824 -0
  67. package/components/datepicker/demo/api.min.js +24543 -0
  68. package/components/datepicker/demo/index.md +158 -0
  69. package/components/datepicker/demo/index.min.js +24264 -0
  70. package/components/datepicker/demo/keyboardBehavior.md +19 -0
  71. package/components/datepicker/demo/readme.md +137 -0
  72. package/components/datepicker/dist/auro-calendar-cell.d.ts +169 -0
  73. package/components/datepicker/dist/auro-calendar-month.d.ts +20 -0
  74. package/components/datepicker/dist/auro-calendar.d.ts +173 -0
  75. package/components/datepicker/dist/auro-datepicker.d.ts +716 -0
  76. package/components/datepicker/dist/buttonVersion.d.ts +2 -0
  77. package/components/datepicker/dist/datepickerKeyboardStrategy.d.ts +1 -0
  78. package/components/datepicker/dist/iconVersion.d.ts +2 -0
  79. package/components/datepicker/dist/index.d.ts +2 -0
  80. package/components/datepicker/dist/index.js +24179 -0
  81. package/components/datepicker/dist/popoverVersion.d.ts +2 -0
  82. package/components/datepicker/dist/registered.js +24179 -0
  83. package/components/datepicker/dist/styles/classic/color-css.d.ts +2 -0
  84. package/components/datepicker/dist/styles/classic/style-css.d.ts +2 -0
  85. package/components/datepicker/dist/styles/color-calendar-css.d.ts +2 -0
  86. package/components/datepicker/dist/styles/color-cell-css.d.ts +2 -0
  87. package/components/datepicker/dist/styles/color-css.d.ts +2 -0
  88. package/components/datepicker/dist/styles/color-month-css.d.ts +2 -0
  89. package/components/datepicker/dist/styles/shapeSize-css.d.ts +2 -0
  90. package/components/datepicker/dist/styles/snowflake/color-css.d.ts +2 -0
  91. package/components/datepicker/dist/styles/snowflake/style-css.d.ts +2 -0
  92. package/components/datepicker/dist/styles/style-auro-calendar-cell-css.d.ts +2 -0
  93. package/components/datepicker/dist/styles/style-auro-calendar-css.d.ts +2 -0
  94. package/components/datepicker/dist/styles/style-auro-calendar-month-css.d.ts +2 -0
  95. package/components/datepicker/dist/styles/style-css.d.ts +2 -0
  96. package/components/datepicker/dist/styles/tokens-css.d.ts +2 -0
  97. package/components/datepicker/dist/utilities.d.ts +78 -0
  98. package/components/datepicker/dist/utilitiesCalendar.d.ts +38 -0
  99. package/components/datepicker/dist/utilitiesCalendarRender.d.ts +50 -0
  100. package/components/datepicker/dist/vendor/wc-range-datepicker/day.d.ts +5 -0
  101. package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-calendar.d.ts +60 -0
  102. package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-cell.d.ts +1 -0
  103. package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker.d.ts +57 -0
  104. package/components/dropdown/demo/api.md +1358 -0
  105. package/components/dropdown/demo/api.min.js +4908 -0
  106. package/components/dropdown/demo/index.md +283 -0
  107. package/components/dropdown/demo/index.min.js +4843 -0
  108. package/components/dropdown/demo/keyboardBehavior.md +77 -0
  109. package/components/dropdown/demo/readme.md +160 -0
  110. package/components/dropdown/dist/auro-dropdown.d.ts +482 -0
  111. package/components/dropdown/dist/auro-dropdownBib.d.ts +128 -0
  112. package/components/dropdown/dist/dropdownBibKeyboardStrategy.d.ts +7 -0
  113. package/components/dropdown/dist/iconVersion.d.ts +2 -0
  114. package/components/dropdown/dist/index.d.ts +2 -0
  115. package/components/dropdown/dist/index.js +4736 -0
  116. package/components/dropdown/dist/registered.js +4736 -0
  117. package/components/dropdown/dist/styles/classic/bibColors-css.d.ts +2 -0
  118. package/components/dropdown/dist/styles/classic/bibStyles-css.d.ts +2 -0
  119. package/components/dropdown/dist/styles/classic/color-css.d.ts +2 -0
  120. package/components/dropdown/dist/styles/classic/style-css.d.ts +2 -0
  121. package/components/dropdown/dist/styles/color-css.d.ts +2 -0
  122. package/components/dropdown/dist/styles/emphasized/style-css.d.ts +2 -0
  123. package/components/dropdown/dist/styles/shapeSize-css.d.ts +2 -0
  124. package/components/dropdown/dist/styles/snowflake/style-css.d.ts +2 -0
  125. package/components/dropdown/dist/styles/style-css.d.ts +2 -0
  126. package/components/dropdown/dist/styles/tokens-css.d.ts +2 -0
  127. package/components/form/demo/api.md +319 -0
  128. package/components/form/demo/api.min.js +70726 -0
  129. package/components/form/demo/index.md +128 -0
  130. package/components/form/demo/index.min.js +70726 -0
  131. package/components/form/demo/keyboardBehavior.md +0 -0
  132. package/components/form/demo/readme.md +145 -0
  133. package/components/form/dist/auro-form.d.ts +280 -0
  134. package/components/form/dist/index.d.ts +2 -0
  135. package/components/form/dist/index.js +718 -0
  136. package/components/form/dist/registered.d.ts +1 -0
  137. package/components/form/dist/registered.js +718 -0
  138. package/components/form/dist/styles/style-css.d.ts +2 -0
  139. package/components/helptext/dist/auro-helptext.d.ts +69 -0
  140. package/components/helptext/dist/index.d.ts +2 -0
  141. package/components/helptext/dist/index.js +231 -0
  142. package/components/helptext/dist/registered.js +231 -0
  143. package/components/helptext/dist/styles/color-css.d.ts +2 -0
  144. package/components/helptext/dist/styles/style-css.d.ts +2 -0
  145. package/components/helptext/dist/styles/tokens-css.d.ts +2 -0
  146. package/components/input/demo/api.md +1397 -0
  147. package/components/input/demo/api.min.js +7473 -0
  148. package/components/input/demo/index.md +161 -0
  149. package/components/input/demo/index.min.js +7393 -0
  150. package/components/input/demo/keyboardBehavior.md +0 -0
  151. package/components/input/demo/readme.md +134 -0
  152. package/components/input/dist/auro-input.d.ts +207 -0
  153. package/components/input/dist/base-input.d.ts +628 -0
  154. package/components/input/dist/buttonVersion.d.ts +2 -0
  155. package/components/input/dist/i18n.d.ts +18 -0
  156. package/components/input/dist/iconVersion.d.ts +2 -0
  157. package/components/input/dist/index.d.ts +2 -0
  158. package/components/input/dist/index.js +7305 -0
  159. package/components/input/dist/registered.js +7305 -0
  160. package/components/input/dist/styles/classic/color-css.d.ts +2 -0
  161. package/components/input/dist/styles/classic/style-css.d.ts +2 -0
  162. package/components/input/dist/styles/color-css.d.ts +2 -0
  163. package/components/input/dist/styles/default/borders-css.d.ts +2 -0
  164. package/components/input/dist/styles/default/color-css.d.ts +2 -0
  165. package/components/input/dist/styles/default/mixins-css.d.ts +2 -0
  166. package/components/input/dist/styles/default/notificationIcons-css.d.ts +2 -0
  167. package/components/input/dist/styles/default/style-css.d.ts +2 -0
  168. package/components/input/dist/styles/emphasized/color-css.d.ts +2 -0
  169. package/components/input/dist/styles/emphasized/style-css.d.ts +2 -0
  170. package/components/input/dist/styles/mixins-css.d.ts +2 -0
  171. package/components/input/dist/styles/shapeSize-css.d.ts +2 -0
  172. package/components/input/dist/styles/snowflake/style-css.d.ts +2 -0
  173. package/components/input/dist/styles/style-css.d.ts +2 -0
  174. package/components/input/dist/styles/tokens-css.d.ts +2 -0
  175. package/components/input/dist/utilities.d.ts +25 -0
  176. package/components/layoutElement/dist/auroElement.d.ts +40 -0
  177. package/components/layoutElement/dist/index.d.ts +2 -0
  178. package/components/layoutElement/dist/index.js +107 -0
  179. package/components/layoutElement/dist/registered.js +107 -0
  180. package/components/menu/demo/api.md +1201 -0
  181. package/components/menu/demo/api.min.js +2397 -0
  182. package/components/menu/demo/index.md +72 -0
  183. package/components/menu/demo/index.min.js +2290 -0
  184. package/components/menu/demo/keyboardBehavior.md +0 -0
  185. package/components/menu/demo/readme.md +145 -0
  186. package/components/menu/dist/auro-menu-utils.d.ts +34 -0
  187. package/components/menu/dist/auro-menu.context.d.ts +239 -0
  188. package/components/menu/dist/auro-menu.d.ts +317 -0
  189. package/components/menu/dist/auro-menuoption.d.ts +210 -0
  190. package/components/menu/dist/iconVersion.d.ts +2 -0
  191. package/components/menu/dist/index.d.ts +4 -0
  192. package/components/menu/dist/index.js +2253 -0
  193. package/components/menu/dist/registered.js +2201 -0
  194. package/components/menu/dist/styles/default/color-menu-css.d.ts +2 -0
  195. package/components/menu/dist/styles/default/color-menuoption-css.d.ts +2 -0
  196. package/components/menu/dist/styles/default/style-menu-css.d.ts +2 -0
  197. package/components/menu/dist/styles/default/style-menuoption-css.d.ts +2 -0
  198. package/components/menu/dist/styles/default/tokens-css.d.ts +2 -0
  199. package/components/radio/demo/api.md +675 -0
  200. package/components/radio/demo/api.min.js +2210 -0
  201. package/components/radio/demo/index.md +73 -0
  202. package/components/radio/demo/index.min.js +2167 -0
  203. package/components/radio/demo/keyboardBehavior.md +0 -0
  204. package/components/radio/demo/readme.md +141 -0
  205. package/components/radio/dist/auro-radio-group.d.ts +250 -0
  206. package/components/radio/dist/auro-radio.d.ts +180 -0
  207. package/components/radio/dist/index.d.ts +3 -0
  208. package/components/radio/dist/index.js +2116 -0
  209. package/components/radio/dist/registered.js +2117 -0
  210. package/components/radio/dist/styles/auro-radio-group-css.d.ts +2 -0
  211. package/components/radio/dist/styles/color-css.d.ts +2 -0
  212. package/components/radio/dist/styles/groupColor-css.d.ts +2 -0
  213. package/components/radio/dist/styles/style-css.d.ts +2 -0
  214. package/components/radio/dist/styles/tokens-css.d.ts +2 -0
  215. package/components/select/demo/api.md +2378 -0
  216. package/components/select/demo/api.min.js +10431 -0
  217. package/components/select/demo/index.md +355 -0
  218. package/components/select/demo/index.min.js +10338 -0
  219. package/components/select/demo/keyboardBehavior.md +245 -0
  220. package/components/select/demo/readme.md +148 -0
  221. package/components/select/dist/auro-select.d.ts +553 -0
  222. package/components/select/dist/index.d.ts +2 -0
  223. package/components/select/dist/index.js +8265 -0
  224. package/components/select/dist/registered.js +8265 -0
  225. package/components/select/dist/selectKeyboardStrategy.d.ts +11 -0
  226. package/components/select/dist/styles/emphasized/color-css.d.ts +2 -0
  227. package/components/select/dist/styles/shapeSize-css.d.ts +2 -0
  228. package/components/select/dist/styles/style-css.d.ts +2 -0
  229. package/components/select/dist/styles/tokens-css.d.ts +2 -0
  230. package/custom-elements.json +18806 -0
  231. package/package.json +2 -2
@@ -0,0 +1,2 @@
1
+ declare const _default: import("lit").CSSResult;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("lit").CSSResult;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("lit").CSSResult;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("lit").CSSResult;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("lit").CSSResult;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("lit").CSSResult;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("lit").CSSResult;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("lit").CSSResult;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("lit").CSSResult;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("lit").CSSResult;
2
+ export default _default;
@@ -0,0 +1,319 @@
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>