@aurodesignsystem/auro-formkit 4.0.1 → 5.0.0-rc-1002.1.1

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 (175) hide show
  1. package/CHANGELOG.md +193 -3
  2. package/components/bibtemplate/dist/auro-bibtemplate.d.ts +12 -2
  3. package/components/bibtemplate/dist/buttonVersion.d.ts +2 -0
  4. package/components/bibtemplate/dist/headerVersion.d.ts +1 -1
  5. package/components/bibtemplate/dist/iconVersion.d.ts +1 -1
  6. package/components/bibtemplate/dist/index.js +1184 -105
  7. package/components/bibtemplate/dist/registered.js +1184 -105
  8. package/components/checkbox/README.md +1 -1
  9. package/components/checkbox/demo/api.html +16 -10
  10. package/components/checkbox/demo/api.md +54 -19
  11. package/components/checkbox/demo/api.min.js +81 -45
  12. package/components/checkbox/demo/index.html +16 -10
  13. package/components/checkbox/demo/index.md +2 -2
  14. package/components/checkbox/demo/index.min.js +81 -45
  15. package/components/checkbox/demo/readme.html +16 -9
  16. package/components/checkbox/demo/readme.md +1 -1
  17. package/components/checkbox/dist/auro-checkbox-group.d.ts +2 -2
  18. package/components/checkbox/dist/auro-checkbox.d.ts +10 -3
  19. package/components/checkbox/dist/index.js +80 -44
  20. package/components/checkbox/dist/registered.js +80 -44
  21. package/components/combobox/README.md +2 -0
  22. package/components/combobox/demo/api.html +16 -10
  23. package/components/combobox/demo/api.md +124 -7
  24. package/components/combobox/demo/api.min.js +4542 -1330
  25. package/components/combobox/demo/index.html +16 -10
  26. package/components/combobox/demo/index.md +108 -4
  27. package/components/combobox/demo/index.min.js +4542 -1330
  28. package/components/combobox/demo/readme.html +16 -9
  29. package/components/combobox/demo/readme.md +2 -0
  30. package/components/combobox/dist/auro-combobox.d.ts +81 -18
  31. package/components/combobox/dist/index.js +4588 -1520
  32. package/components/combobox/dist/registered.js +4588 -1520
  33. package/components/counter/demo/api.html +17 -10
  34. package/components/counter/demo/api.md +167 -21
  35. package/components/counter/demo/api.min.js +3621 -866
  36. package/components/counter/demo/index.html +17 -10
  37. package/components/counter/demo/index.md +191 -34
  38. package/components/counter/demo/index.min.js +3621 -866
  39. package/components/counter/demo/readme.html +16 -9
  40. package/components/counter/dist/auro-counter-button.d.ts +2 -0
  41. package/components/counter/dist/auro-counter-group.d.ts +162 -11
  42. package/components/counter/dist/auro-counter.d.ts +16 -0
  43. package/components/counter/dist/helptextVersion.d.ts +2 -0
  44. package/components/counter/dist/iconVersion.d.ts +1 -1
  45. package/components/counter/dist/index.js +3619 -864
  46. package/components/counter/dist/registered.js +3619 -864
  47. package/components/datepicker/README.md +2 -1
  48. package/components/datepicker/demo/api.html +16 -10
  49. package/components/datepicker/demo/api.md +80 -30
  50. package/components/datepicker/demo/api.min.js +14795 -10365
  51. package/components/datepicker/demo/index.html +16 -10
  52. package/components/datepicker/demo/index.md +96 -4
  53. package/components/datepicker/demo/index.min.js +14795 -10365
  54. package/components/datepicker/demo/readme.html +16 -9
  55. package/components/datepicker/demo/readme.md +2 -1
  56. package/components/datepicker/dist/auro-datepicker.d.ts +163 -4
  57. package/components/datepicker/dist/buttonVersion.d.ts +1 -1
  58. package/components/datepicker/dist/iconVersion.d.ts +2 -0
  59. package/components/datepicker/dist/index.js +14916 -10486
  60. package/components/datepicker/dist/popoverVersion.d.ts +1 -1
  61. package/components/datepicker/dist/registered.js +14916 -10486
  62. package/components/dropdown/demo/api.html +16 -10
  63. package/components/dropdown/demo/api.md +94 -262
  64. package/components/dropdown/demo/api.min.js +738 -259
  65. package/components/dropdown/demo/index.html +16 -10
  66. package/components/dropdown/demo/index.md +93 -266
  67. package/components/dropdown/demo/index.min.js +738 -259
  68. package/components/dropdown/demo/readme.html +16 -9
  69. package/components/dropdown/dist/auro-dropdown.d.ts +92 -73
  70. package/components/dropdown/dist/auro-dropdownBib.d.ts +14 -0
  71. package/components/dropdown/dist/index.js +710 -231
  72. package/components/dropdown/dist/registered.js +710 -231
  73. package/components/dropdown/dist/styles/classic/style-css.d.ts +2 -0
  74. package/components/dropdown/dist/styles/emphasized/style-css.d.ts +2 -0
  75. package/components/dropdown/dist/styles/shapeSize-css.d.ts +2 -0
  76. package/components/dropdown/dist/styles/snowflake/style-css.d.ts +2 -0
  77. package/components/form/demo/api.html +16 -9
  78. package/components/form/demo/api.md +1 -1
  79. package/components/form/demo/api.min.js +3 -3
  80. package/components/form/demo/autocomplete.html +19 -3
  81. package/components/form/demo/index.html +16 -9
  82. package/components/form/demo/index.min.js +3 -3
  83. package/components/form/demo/readme.html +16 -9
  84. package/components/form/demo/working.html +19 -13
  85. package/components/form/dist/auro-form.d.ts +1 -1
  86. package/components/form/dist/index.js +2 -2
  87. package/components/form/dist/registered.js +2 -2
  88. package/components/helptext/dist/auro-helptext.d.ts +0 -2
  89. package/components/helptext/dist/index.js +2 -4
  90. package/components/helptext/dist/registered.js +2 -4
  91. package/components/input/README.md +6 -2
  92. package/components/input/demo/api.html +16 -10
  93. package/components/input/demo/api.md +258 -144
  94. package/components/input/demo/api.min.js +1550 -497
  95. package/components/input/demo/index.html +17 -11
  96. package/components/input/demo/index.md +95 -27
  97. package/components/input/demo/index.min.js +1549 -496
  98. package/components/input/demo/readme.html +16 -9
  99. package/components/input/demo/readme.md +6 -2
  100. package/components/input/dist/auro-input.d.ts +139 -3
  101. package/components/input/dist/base-input.d.ts +80 -26
  102. package/components/input/dist/buttonVersion.d.ts +1 -1
  103. package/components/input/dist/iconVersion.d.ts +1 -1
  104. package/components/input/dist/index.js +1504 -451
  105. package/components/input/dist/registered.js +1504 -451
  106. package/components/input/dist/styles/classic/color-css.d.ts +2 -0
  107. package/components/input/dist/styles/classic/style-css.d.ts +2 -0
  108. package/components/input/dist/styles/default/borders-css.d.ts +2 -0
  109. package/components/input/dist/styles/default/color-css.d.ts +2 -0
  110. package/components/input/dist/styles/default/mixins-css.d.ts +2 -0
  111. package/components/input/dist/styles/default/notificationIcons-css.d.ts +2 -0
  112. package/components/input/dist/styles/default/style-css.d.ts +2 -0
  113. package/components/input/dist/styles/emphasized/color-css.d.ts +2 -0
  114. package/components/input/dist/styles/emphasized/style-css.d.ts +2 -0
  115. package/components/input/dist/styles/shapeSize-css.d.ts +2 -0
  116. package/components/input/dist/styles/snowflake/style-css.d.ts +2 -0
  117. package/components/layoutElement/dist/auroElement.d.ts +34 -0
  118. package/components/layoutElement/dist/index.d.ts +2 -0
  119. package/components/layoutElement/dist/index.js +98 -0
  120. package/components/layoutElement/dist/registered.js +98 -0
  121. package/components/menu/demo/api.html +17 -10
  122. package/components/menu/demo/api.md +65 -8
  123. package/components/menu/demo/api.min.js +304 -65
  124. package/components/menu/demo/index.html +16 -10
  125. package/components/menu/demo/index.min.js +304 -65
  126. package/components/menu/demo/readme.html +16 -9
  127. package/components/menu/dist/auro-menu.d.ts +53 -7
  128. package/components/menu/dist/auro-menuoption.d.ts +21 -3
  129. package/components/menu/dist/iconVersion.d.ts +1 -1
  130. package/components/menu/dist/index.js +289 -50
  131. package/components/menu/dist/registered.js +289 -50
  132. package/components/menu/dist/styles/default/color-menu-css.d.ts +2 -0
  133. package/components/menu/dist/styles/default/color-menuoption-css.d.ts +2 -0
  134. package/components/menu/dist/styles/default/style-menu-css.d.ts +2 -0
  135. package/components/menu/dist/styles/default/style-menuoption-css.d.ts +2 -0
  136. package/components/menu/dist/styles/default/tokens-css.d.ts +2 -0
  137. package/components/radio/demo/api.html +16 -10
  138. package/components/radio/demo/api.md +41 -9
  139. package/components/radio/demo/api.min.js +93 -95
  140. package/components/radio/demo/index.html +16 -10
  141. package/components/radio/demo/index.min.js +93 -95
  142. package/components/radio/demo/readme.html +16 -9
  143. package/components/radio/dist/auro-radio-group.d.ts +1 -1
  144. package/components/radio/dist/auro-radio.d.ts +11 -12
  145. package/components/radio/dist/index.js +92 -94
  146. package/components/radio/dist/registered.js +92 -94
  147. package/components/select/README.md +1 -0
  148. package/components/select/demo/api.html +16 -10
  149. package/components/select/demo/api.js +0 -2
  150. package/components/select/demo/api.md +156 -114
  151. package/components/select/demo/api.min.js +3126 -657
  152. package/components/select/demo/index.html +17 -10
  153. package/components/select/demo/index.md +398 -62
  154. package/components/select/demo/index.min.js +3129 -648
  155. package/components/select/demo/readme.html +16 -9
  156. package/components/select/demo/readme.md +1 -0
  157. package/components/select/dist/auro-select.d.ts +173 -18
  158. package/components/select/dist/helptextVersion.d.ts +2 -0
  159. package/components/select/dist/index.js +3128 -791
  160. package/components/select/dist/registered.js +3128 -791
  161. package/components/select/dist/styles/shapeSize-css.d.ts +2 -0
  162. package/components/select/dist/styles/tokens-css.d.ts +2 -0
  163. package/package.json +33 -32
  164. package/packages/build-tools/src/postinstall.mjs +0 -12
  165. /package/components/{dropdown/dist/styles/bibColors-css.d.ts → combobox/dist/styles/emphasized/style-css.d.ts} +0 -0
  166. /package/components/{dropdown/dist/styles/bibStyles-css.d.ts → combobox/dist/styles/snowflake/style-css.d.ts} +0 -0
  167. /package/components/{input/dist/styles/borders-css.d.ts → counter/dist/styles/shapeSize-css.d.ts} +0 -0
  168. /package/components/{input/dist/styles/input-css.d.ts → datepicker/dist/styles/classic/color-css.d.ts} +0 -0
  169. /package/components/{input/dist/styles/label-css.d.ts → datepicker/dist/styles/classic/style-css.d.ts} +0 -0
  170. /package/components/{input/dist/styles/notificationIcons-css.d.ts → datepicker/dist/styles/shapeSize-css.d.ts} +0 -0
  171. /package/components/{menu/dist/styles/color-menu-css.d.ts → datepicker/dist/styles/snowflake/color-css.d.ts} +0 -0
  172. /package/components/{menu/dist/styles/color-menuoption-css.d.ts → datepicker/dist/styles/snowflake/style-css.d.ts} +0 -0
  173. /package/components/{menu/dist/styles/style-menu-css.d.ts → dropdown/dist/styles/classic/bibColors-css.d.ts} +0 -0
  174. /package/components/{menu/dist/styles/style-menuoption-css.d.ts → dropdown/dist/styles/classic/bibStyles-css.d.ts} +0 -0
  175. /package/components/{menu/dist/styles/tokens-css.d.ts → dropdown/dist/styles/classic/color-css.d.ts} +0 -0
@@ -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,2 @@
1
+ declare const _default: import("lit").CSSResult;
2
+ export default _default;
@@ -0,0 +1,34 @@
1
+ export class AuroElement extends LitElement {
2
+ static get properties(): {
3
+ /**
4
+ * Defines the language of an element.
5
+ * @default {'default'}
6
+ */
7
+ layout: {
8
+ type: StringConstructor;
9
+ attribute: string;
10
+ reflect: boolean;
11
+ };
12
+ shape: {
13
+ type: StringConstructor;
14
+ attribute: string;
15
+ reflect: boolean;
16
+ };
17
+ size: {
18
+ type: StringConstructor;
19
+ attribute: string;
20
+ reflect: boolean;
21
+ };
22
+ onDark: {
23
+ type: BooleanConstructor;
24
+ attribute: string;
25
+ reflect: boolean;
26
+ };
27
+ };
28
+ resetShapeClasses(): void;
29
+ resetLayoutClasses(): void;
30
+ updateComponentArchitecture(): void;
31
+ updated(changedProperties: any): void;
32
+ render(): any;
33
+ }
34
+ import { LitElement } from "lit";
@@ -0,0 +1,2 @@
1
+ export { AuroElement };
2
+ import { AuroElement } from "./auroElement.js";
@@ -0,0 +1,98 @@
1
+ import { LitElement } from 'lit';
2
+
3
+ class AuroElement extends LitElement {
4
+ static get properties() {
5
+ return {
6
+
7
+ /**
8
+ * Defines the language of an element.
9
+ * @default {'default'}
10
+ */
11
+ layout: {
12
+ type: String,
13
+ attribute: "layout",
14
+ reflect: true
15
+ },
16
+
17
+ shape: {
18
+ type: String,
19
+ attribute: "shape",
20
+ reflect: true
21
+ },
22
+
23
+ size: {
24
+ type: String,
25
+ attribute: "size",
26
+ reflect: true
27
+ },
28
+
29
+ onDark: {
30
+ type: Boolean,
31
+ attribute: "ondark",
32
+ reflect: true
33
+ }
34
+ };
35
+ }
36
+
37
+ resetShapeClasses() {
38
+ const wrapper = this.shadowRoot.querySelector('.wrapper');
39
+
40
+ if (wrapper) {
41
+ wrapper.classList.forEach((className) => {
42
+ if (className.startsWith('shape-')) {
43
+ wrapper.classList.remove(className);
44
+ }
45
+ });
46
+
47
+ if (this.shape && this.size) {
48
+ wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
49
+ } else {
50
+ wrapper.classList.add('shape-none');
51
+ }
52
+ }
53
+
54
+ }
55
+
56
+ resetLayoutClasses() {
57
+ if (this.layout) {
58
+ const wrapper = this.shadowRoot.querySelector('.wrapper');
59
+
60
+ if (wrapper) {
61
+ wrapper.classList.forEach((className) => {
62
+ if (className.startsWith('layout-')) {
63
+ wrapper.classList.remove(className);
64
+ }
65
+ });
66
+
67
+ wrapper.classList.add(`layout-${this.layout.toLowerCase()}`);
68
+ }
69
+ }
70
+ }
71
+
72
+ updateComponentArchitecture() {
73
+ this.resetLayoutClasses();
74
+ this.resetShapeClasses();
75
+ }
76
+
77
+ updated(changedProperties) {
78
+ if (changedProperties.has('layout') || changedProperties.has('shape') || changedProperties.has('size')) {
79
+ this.updateComponentArchitecture();
80
+ }
81
+ }
82
+
83
+ // Try to render the defined `this.layout` layout. If that fails, fall back to the default layout.
84
+ // This will catch if an invalid layout value is passed in and render the default layout if so.
85
+ render() {
86
+ try {
87
+ return this.renderLayout();
88
+ } catch (error) {
89
+ // failed to get the defined layout
90
+ console.error('Failed to get the defined layout - using the default layout', error); // eslint-disable-line no-console
91
+
92
+ // fallback to the default layout
93
+ return this.getLayout('default');
94
+ }
95
+ }
96
+ }
97
+
98
+ export { AuroElement };
@@ -0,0 +1,98 @@
1
+ import { LitElement } from 'lit';
2
+
3
+ class AuroElement extends LitElement {
4
+ static get properties() {
5
+ return {
6
+
7
+ /**
8
+ * Defines the language of an element.
9
+ * @default {'default'}
10
+ */
11
+ layout: {
12
+ type: String,
13
+ attribute: "layout",
14
+ reflect: true
15
+ },
16
+
17
+ shape: {
18
+ type: String,
19
+ attribute: "shape",
20
+ reflect: true
21
+ },
22
+
23
+ size: {
24
+ type: String,
25
+ attribute: "size",
26
+ reflect: true
27
+ },
28
+
29
+ onDark: {
30
+ type: Boolean,
31
+ attribute: "ondark",
32
+ reflect: true
33
+ }
34
+ };
35
+ }
36
+
37
+ resetShapeClasses() {
38
+ const wrapper = this.shadowRoot.querySelector('.wrapper');
39
+
40
+ if (wrapper) {
41
+ wrapper.classList.forEach((className) => {
42
+ if (className.startsWith('shape-')) {
43
+ wrapper.classList.remove(className);
44
+ }
45
+ });
46
+
47
+ if (this.shape && this.size) {
48
+ wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
49
+ } else {
50
+ wrapper.classList.add('shape-none');
51
+ }
52
+ }
53
+
54
+ }
55
+
56
+ resetLayoutClasses() {
57
+ if (this.layout) {
58
+ const wrapper = this.shadowRoot.querySelector('.wrapper');
59
+
60
+ if (wrapper) {
61
+ wrapper.classList.forEach((className) => {
62
+ if (className.startsWith('layout-')) {
63
+ wrapper.classList.remove(className);
64
+ }
65
+ });
66
+
67
+ wrapper.classList.add(`layout-${this.layout.toLowerCase()}`);
68
+ }
69
+ }
70
+ }
71
+
72
+ updateComponentArchitecture() {
73
+ this.resetLayoutClasses();
74
+ this.resetShapeClasses();
75
+ }
76
+
77
+ updated(changedProperties) {
78
+ if (changedProperties.has('layout') || changedProperties.has('shape') || changedProperties.has('size')) {
79
+ this.updateComponentArchitecture();
80
+ }
81
+ }
82
+
83
+ // Try to render the defined `this.layout` layout. If that fails, fall back to the default layout.
84
+ // This will catch if an invalid layout value is passed in and render the default layout if so.
85
+ render() {
86
+ try {
87
+ return this.renderLayout();
88
+ } catch (error) {
89
+ // failed to get the defined layout
90
+ console.error('Failed to get the defined layout - using the default layout', error); // eslint-disable-line no-console
91
+
92
+ // fallback to the default layout
93
+ return this.getLayout('default');
94
+ }
95
+ }
96
+ }
97
+
98
+ AuroElement.register();
@@ -16,18 +16,24 @@
16
16
  <head>
17
17
  <meta charset="UTF-8" />
18
18
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
19
- <title>Auro Web Component Generator | auro-menu custom element</title>
20
- <link
21
- rel="stylesheet"
22
- type="text/css"
23
- href="https://cdn.jsdelivr.net/npm/prismjs@1.24.1/themes/prism.css"
24
- />
25
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/auro-classic/CSSCustomProperties.css">
26
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/alaska/CSSCustomProperties--alaska.css">
19
+ <title>Auro Web Component Demo | auro-menu</title>
20
+
21
+ <!-- Prism.js Stylesheet -->
22
+ <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/prismjs@1.24.1/themes/prism.css"/>
23
+
24
+ <!-- Legacy reference is still needed to support auro-menu's use of legacy token values at this time -->
25
+ <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/legacy/auro-classic/CSSCustomProperties.css"/>
26
+
27
+ <!-- Design Token Alaska Theme -->
28
+ <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/themes/alaska/CSSCustomProperties--alaska.min.css"/>
29
+
30
+ <!-- Webcore Stylesheet Alaska Theme -->
31
+ <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/bundled/themes/alaska.global.min.css" />
32
+
33
+ <!-- Demo Specific Styles -->
27
34
  <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/demoWrapper.css" />
28
35
  <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/elementDemoStyles.css" />
29
- <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/bundled/essentials-as.css" />
30
- </head>
36
+ </head>
31
37
  <body class="auro-markdown">
32
38
  <main></main>
33
39
 
@@ -47,6 +53,7 @@
47
53
  <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-input@latest/dist/auro-input__bundled.js" type="module"></script>
48
54
  <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-button@latest/dist/auro-button__bundled.js" type="module"></script>
49
55
  <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-loader@latest/dist/auro-loader__bundled.js" type="module"></script>
56
+ <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@latest/auro-radio/+esm"></script>
50
57
  <script type="module" data-demo-script="true">
51
58
  import { initExamples } from "./api.min.js"
52
59
  initExamples();
@@ -11,13 +11,14 @@ The auro-menu element provides users a way to select from a list of options.
11
11
  |-------------------------|------------------|-----------------------------------|-------------|--------------------------------------------------|
12
12
  | [disabled](#disabled) | `disabled` | `boolean` | | When true, the entire menu and all options are disabled; |
13
13
  | [hasLoadingPlaceholder](#hasLoadingPlaceholder) | | `boolean` | | Indicates whether the menu has a loadingIcon or loadingText to render when in a loading state. |
14
+ | [layout](#layout) | | `string` | | |
14
15
  | [loading](#loading) | `loading` | `boolean` | false | When true, displays a loading state using the loadingIcon and loadingText slots if provided. |
15
16
  | [matchWord](#matchWord) | `matchword` | `string` | "undefined" | Specifies a string used to highlight matched string parts in options. |
16
17
  | [multiSelect](#multiSelect) | `multiselect` | `boolean` | false | When true, the selected option can be multiple options. |
17
18
  | [noCheckmark](#noCheckmark) | `nocheckmark` | `boolean` | false | When true, selected option will not show the checkmark. |
18
19
  | [optionActive](#optionActive) | `optionactive` | `object` | "undefined" | Specifies the current active menuOption. |
19
20
  | [optionSelected](#optionSelected) | `optionSelected` | `HTMLElement\|Array<HTMLElement>` | "undefined" | An array of currently selected menu options, type `HTMLElement` by default. In multi-select mode, `optionSelected` is an array of HTML elements. |
20
- | [value](#value) | `value` | `String\|Array<string>` | "undefined" | Value selected for the menu, type `string` by default. In multi-select mode, `value` is an array of strings. |
21
+ | [value](#value) | `value` | `string` | "undefined" | Value selected for the component. |
21
22
 
22
23
  ## Methods
23
24
 
@@ -60,6 +61,7 @@ The auro-menu element provides users a way to define a menu option.
60
61
  |---------------|---------------|-----------|---------|--------------------------------------------------|
61
62
  | [disabled](#disabled) | `disabled` | `Boolean` | false | When true specifies that the menuoption is disabled. |
62
63
  | [iconTag](#iconTag) | | `string` | | |
64
+ | [layout](#layout) | | `string` | | |
63
65
  | [nocheckmark](#nocheckmark) | `nocheckmark` | `boolean` | false | |
64
66
  | [selected](#selected) | `selected` | `Boolean` | false | Specifies that an option is selected. |
65
67
  | [value](#value) | `value` | `String` | | Specifies the value to be sent to a server. |
@@ -936,19 +938,74 @@ export function auroMenuResetExample() {
936
938
 
937
939
  The component may be restyled using the following code sample and changing the values of the following token(s).
938
940
 
939
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../src/styles/tokens.scss) -->
940
- <!-- The below code snippet is automatically added from ./../src/styles/tokens.scss -->
941
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../src/styles/default/tokens.scss) -->
942
+ <!-- The below code snippet is automatically added from ./../src/styles/default/tokens.scss -->
941
943
 
942
944
  ```scss
943
- @import "@aurodesignsystem/design-tokens/dist/alaska/SCSSVariables--alaska";
945
+ @use "@aurodesignsystem/design-tokens/dist/themes/alaska/SCSSVariables--alaska" as v;
944
946
 
945
947
  :host {
946
- --ds-auro-menu-divider-color: var(--ds-basic-color-border-divider, #{$ds-basic-color-border-divider});
947
- --ds-auro-menu-loader-color: var(--ds-basic-color-brand-primary, #{$ds-basic-color-brand-primary});
948
- --ds-auro-menu-loader-text-color: var(--ds-basic-color-texticon-default, #{$ds-basic-color-texticon-default});
948
+ --ds-auro-menu-divider-color: var(--ds-basic-color-border-divider, #{v.$ds-basic-color-border-divider});
949
+ --ds-auro-menu-loader-color: var(--ds-basic-color-brand-primary, #{v.$ds-basic-color-brand-primary});
950
+ --ds-auro-menu-loader-text-color: var(--ds-basic-color-texticon-default, #{v.$ds-basic-color-texticon-default});
949
951
  --ds-auro-menuoption-container-color: transparent;
952
+ --ds-auro-menuoption-container-border-color: var(--ds-auro-menuoption-container-color);
950
953
  --ds-auro-menuoption-icon-color: transparent;
951
- --ds-auro-menuoption-text-color: var(--ds-basic-color-texticon-default, #{$ds-basic-color-texticon-default});
954
+ --ds-auro-menuoption-text-color: var(--ds-basic-color-texticon-default, #{v.$ds-basic-color-texticon-default});
952
955
  }
953
956
  ```
954
957
  <!-- AURO-GENERATED-CONTENT:END -->
958
+ <div class="exampleWrapper">
959
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/customColor.html) -->
960
+ <!-- The below content is automatically added from ./../apiExamples/customColor.html -->
961
+ <style>
962
+ #customColorMenu auro-menuoption[selected] {
963
+ --ds-auro-menuoption-container-color: var(--ds-basic-color-surface-accent1-subtle);
964
+ --ds-auro-menuoption-text-color: var(--ds-basic-color-texticon-default);
965
+ }
966
+ #customColorMenu auro-menuoption:hover {
967
+ --ds-auro-menuoption-container-color: var(--ds-basic-color-surface-accent1-muted);
968
+ }
969
+ #customColorMenu auro-menuoption:focus {
970
+ --ds-auro-menuoption-container-border-color: var(--ds-basic-color-border-brand);
971
+ }
972
+
973
+ </style>
974
+ <auro-menu id="customColorMenu">
975
+ <auro-menuoption value="stops">Stops</auro-menuoption>
976
+ <auro-menuoption value="price">Price</auro-menuoption>
977
+ <auro-menuoption value="duration">Duration</auro-menuoption>
978
+ <auro-menuoption value="departure">Departure</auro-menuoption>
979
+ <auro-menuoption value="arrival">Arrival</auro-menuoption>
980
+ </auro-menu>
981
+ <!-- AURO-GENERATED-CONTENT:END -->
982
+ </div>
983
+ <auro-accordion alignRight>
984
+ <span slot="trigger">See code</span>
985
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/customColor.html) -->
986
+ <!-- The below code snippet is automatically added from ./../apiExamples/customColor.html -->
987
+
988
+ ```html
989
+ <style>
990
+ #customColorMenu auro-menuoption[selected] {
991
+ --ds-auro-menuoption-container-color: var(--ds-basic-color-surface-accent1-subtle);
992
+ --ds-auro-menuoption-text-color: var(--ds-basic-color-texticon-default);
993
+ }
994
+ #customColorMenu auro-menuoption:hover {
995
+ --ds-auro-menuoption-container-color: var(--ds-basic-color-surface-accent1-muted);
996
+ }
997
+ #customColorMenu auro-menuoption:focus {
998
+ --ds-auro-menuoption-container-border-color: var(--ds-basic-color-border-brand);
999
+ }
1000
+
1001
+ </style>
1002
+ <auro-menu id="customColorMenu">
1003
+ <auro-menuoption value="stops">Stops</auro-menuoption>
1004
+ <auro-menuoption value="price">Price</auro-menuoption>
1005
+ <auro-menuoption value="duration">Duration</auro-menuoption>
1006
+ <auro-menuoption value="departure">Departure</auro-menuoption>
1007
+ <auro-menuoption value="arrival">Arrival</auro-menuoption>
1008
+ </auro-menu>
1009
+ ```
1010
+ <!-- AURO-GENERATED-CONTENT:END -->
1011
+ </auro-accordion>