@aurodesignsystem-dev/auro-formkit 0.0.0-pr802.0 → 0.0.0-pr806.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 (57) hide show
  1. package/components/bibtemplate/dist/index.js +1 -1
  2. package/components/bibtemplate/dist/registered.js +1 -1
  3. package/components/checkbox/demo/api.md +2 -1
  4. package/components/checkbox/demo/api.min.js +8 -1
  5. package/components/checkbox/demo/index.min.js +8 -1
  6. package/components/checkbox/dist/index.js +8 -1
  7. package/components/checkbox/dist/registered.js +8 -1
  8. package/components/combobox/demo/api.md +2 -0
  9. package/components/combobox/demo/api.min.js +87 -73
  10. package/components/combobox/demo/index.min.js +87 -73
  11. package/components/combobox/dist/auro-combobox.d.ts +2 -4
  12. package/components/combobox/dist/index.js +86 -72
  13. package/components/combobox/dist/registered.js +86 -72
  14. package/components/counter/demo/api.md +2 -0
  15. package/components/counter/demo/api.min.js +31 -61
  16. package/components/counter/demo/index.min.js +31 -61
  17. package/components/counter/dist/auro-counter-group.d.ts +10 -0
  18. package/components/counter/dist/index.js +31 -61
  19. package/components/counter/dist/registered.js +31 -61
  20. package/components/datepicker/README.md +1 -1
  21. package/components/datepicker/demo/api.md +41 -19
  22. package/components/datepicker/demo/api.min.js +341 -188
  23. package/components/datepicker/demo/index.md +4 -4
  24. package/components/datepicker/demo/index.min.js +341 -188
  25. package/components/datepicker/demo/readme.md +1 -1
  26. package/components/datepicker/dist/auro-datepicker.d.ts +73 -12
  27. package/components/datepicker/dist/index.js +341 -188
  28. package/components/datepicker/dist/registered.js +341 -188
  29. package/components/datepicker/dist/styles/classic/style-css.d.ts +2 -0
  30. package/components/dropdown/demo/api.md +1 -1
  31. package/components/dropdown/demo/api.min.js +10 -60
  32. package/components/dropdown/demo/index.min.js +10 -60
  33. package/components/dropdown/dist/auro-dropdown.d.ts +0 -7
  34. package/components/dropdown/dist/index.js +10 -60
  35. package/components/dropdown/dist/registered.js +10 -60
  36. package/components/input/demo/api.min.js +75 -9
  37. package/components/input/demo/index.min.js +75 -9
  38. package/components/input/dist/auro-input.d.ts +24 -0
  39. package/components/input/dist/index.js +75 -9
  40. package/components/input/dist/registered.js +75 -9
  41. package/components/menu/demo/api.min.js +1 -1
  42. package/components/menu/demo/index.min.js +1 -1
  43. package/components/menu/dist/index.js +1 -1
  44. package/components/menu/dist/registered.js +1 -1
  45. package/components/radio/demo/api.min.js +1 -1
  46. package/components/radio/demo/index.min.js +1 -1
  47. package/components/radio/dist/index.js +1 -1
  48. package/components/radio/dist/registered.js +1 -1
  49. package/components/select/demo/api.md +46 -64
  50. package/components/select/demo/api.min.js +61 -76
  51. package/components/select/demo/index.md +1057 -137
  52. package/components/select/demo/index.min.js +61 -76
  53. package/components/select/dist/auro-select.d.ts +22 -5
  54. package/components/select/dist/index.js +60 -75
  55. package/components/select/dist/registered.js +60 -75
  56. package/package.json +2 -2
  57. /package/components/datepicker/dist/styles/{default → classic}/color-css.d.ts +0 -0
@@ -6584,6 +6584,7 @@ let AuroElement$3 = class AuroElement extends i$2 {
6584
6584
  // See LICENSE in the project root for license information.
6585
6585
 
6586
6586
 
6587
+
6587
6588
  /*
6588
6589
  * @slot - Default slot for the popover content.
6589
6590
  * @slot helpText - Defines the content of the helpText.
@@ -7087,6 +7088,13 @@ class AuroDropdown extends AuroElement$3 {
7087
7088
 
7088
7089
  // Add the tag name as an attribute if it is different than the component name
7089
7090
  this.runtimeUtils.handleComponentTagRename(this, 'auro-dropdown');
7091
+
7092
+ this.trigger.addEventListener('click', () => {
7093
+ this.dispatchEvent(new CustomEvent('auroDropdown-triggerClick', {
7094
+ bubbles: true,
7095
+ composed: true
7096
+ }));
7097
+ });
7090
7098
  }
7091
7099
 
7092
7100
  /**
@@ -7159,64 +7167,6 @@ class AuroDropdown extends AuroElement$3 {
7159
7167
  this.hasFocus = false;
7160
7168
  }
7161
7169
 
7162
- /**
7163
- * Determines if the element or any children are focusable.
7164
- * @private
7165
- * @param {HTMLElement} element - Element to check.
7166
- * @returns {Boolean} - True if the element or any children are focusable.
7167
- */
7168
- containsFocusableElement(element) {
7169
- this.showTriggerBorders = true;
7170
-
7171
- const nodes = [
7172
- element,
7173
- ...element.children
7174
- ];
7175
-
7176
- const focusableElements = [
7177
- 'a',
7178
- 'auro-hyperlink',
7179
- 'button',
7180
- 'auro-button',
7181
- 'input',
7182
- 'auro-input',
7183
- ];
7184
-
7185
- const focusableElementsThatNeedBorders = ['auro-input'];
7186
-
7187
- const result = nodes.some((node) => {
7188
- const tagName = node.tagName.toLowerCase();
7189
-
7190
- if (node.tabIndex > -1) {
7191
- return true;
7192
- }
7193
-
7194
- if (focusableElements.includes(tagName)) {
7195
- if ((tagName === 'a' || tagName === 'auro-hyperlink' || node.hasAttribute('auro-hyperlink')) && node.hasAttribute('href')) {
7196
- return true;
7197
- }
7198
- if (!node.hasAttribute('disabled')) {
7199
- return true;
7200
- }
7201
- }
7202
-
7203
- if (focusableElements.some((focusableElement) => focusableElement.startsWith('auro-') && (focusableElement === tagName || node.hasAttribute(focusableElement)))) {
7204
- return true;
7205
- }
7206
-
7207
- return false;
7208
- });
7209
-
7210
- if (result) {
7211
- this.showTriggerBorders = !nodes.some((node) => {
7212
- const tagName = node.tagName.toLowerCase();
7213
- return focusableElements.includes(tagName) && !focusableElementsThatNeedBorders.includes(tagName);
7214
- });
7215
- }
7216
-
7217
- return result;
7218
- }
7219
-
7220
7170
  /**
7221
7171
  * Creates and dispatches a duplicate focus event on the trigger element.
7222
7172
  * @private
@@ -7328,7 +7278,7 @@ class AuroDropdown extends AuroElement$3 {
7328
7278
  if (triggerContentNodes) {
7329
7279
 
7330
7280
  // See if any of them are focusable elements
7331
- this.triggerContentFocusable = triggerContentNodes.some((node) => this.containsFocusableElement(node));
7281
+ this.triggerContentFocusable = triggerContentNodes.some((node) => getFocusableElements(node).length > 0);
7332
7282
 
7333
7283
  // If any of them are focusable elements
7334
7284
  if (this.triggerContentFocusable) {
@@ -7400,7 +7350,7 @@ class AuroDropdown extends AuroElement$3 {
7400
7350
  <div
7401
7351
  id="trigger"
7402
7352
  class="${e(this.commonWrapperClasses)}" part="wrapper"
7403
- tabindex="${this.tabIndex}"
7353
+ tabindex="${o(this.triggerContentFocusable ? undefined : this.tabIndex)}"
7404
7354
  role="${o(this.triggerContentFocusable ? undefined : this.a11yRole)}"
7405
7355
  aria-expanded="${o(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
7406
7356
  aria-controls="${o(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.dropdownId)}"
@@ -9373,7 +9323,7 @@ class AuroBibtemplate extends i$2 {
9373
9323
  /**
9374
9324
  * @private
9375
9325
  */
9376
- this.buttonTag = versioning.generateTag('auro-formkit-input-button', buttonVersion, AuroButton);
9326
+ this.buttonTag = versioning.generateTag('auro-formkit-bibtemplate-button', buttonVersion, AuroButton);
9377
9327
  }
9378
9328
 
9379
9329
  static get styles() {
@@ -10040,6 +9990,26 @@ class AuroCounterGroup extends AuroElement {
10040
9990
  });
10041
9991
  }
10042
9992
 
9993
+ /**
9994
+ * Hides the dropdown bib if its open.
9995
+ * @returns {void}
9996
+ */
9997
+ hideBib() {
9998
+ if (this.dropdown && this.dropdown.isPopoverVisible) {
9999
+ this.dropdown.hide();
10000
+ }
10001
+ }
10002
+
10003
+ /**
10004
+ * Shows the dropdown bib if there are options to show.
10005
+ * @returns {void}
10006
+ */
10007
+ showBib() {
10008
+ if (this.dropdown && !this.dropdown.isPopoverVisible) {
10009
+ this.dropdown.show();
10010
+ }
10011
+ }
10012
+
10043
10013
  /**
10044
10014
  * Configures the dropdown counters by selecting all `auro-counter` elements,
10045
10015
  * appending them to the `auro-counter-wrapper` element within the shadow DOM,
@@ -267,6 +267,16 @@ export class AuroCounterGroup extends LitElement {
267
267
  */
268
268
  private getErrorMessages;
269
269
  errorMessage: any;
270
+ /**
271
+ * Hides the dropdown bib if its open.
272
+ * @returns {void}
273
+ */
274
+ hideBib(): void;
275
+ /**
276
+ * Shows the dropdown bib if there are options to show.
277
+ * @returns {void}
278
+ */
279
+ showBib(): void;
270
280
  /**
271
281
  * Configures the dropdown counters by selecting all `auro-counter` elements,
272
282
  * appending them to the `auro-counter-wrapper` element within the shadow DOM,
@@ -6537,6 +6537,7 @@ let AuroElement$3 = class AuroElement extends LitElement {
6537
6537
  // See LICENSE in the project root for license information.
6538
6538
 
6539
6539
 
6540
+
6540
6541
  /*
6541
6542
  * @slot - Default slot for the popover content.
6542
6543
  * @slot helpText - Defines the content of the helpText.
@@ -7040,6 +7041,13 @@ class AuroDropdown extends AuroElement$3 {
7040
7041
 
7041
7042
  // Add the tag name as an attribute if it is different than the component name
7042
7043
  this.runtimeUtils.handleComponentTagRename(this, 'auro-dropdown');
7044
+
7045
+ this.trigger.addEventListener('click', () => {
7046
+ this.dispatchEvent(new CustomEvent('auroDropdown-triggerClick', {
7047
+ bubbles: true,
7048
+ composed: true
7049
+ }));
7050
+ });
7043
7051
  }
7044
7052
 
7045
7053
  /**
@@ -7112,64 +7120,6 @@ class AuroDropdown extends AuroElement$3 {
7112
7120
  this.hasFocus = false;
7113
7121
  }
7114
7122
 
7115
- /**
7116
- * Determines if the element or any children are focusable.
7117
- * @private
7118
- * @param {HTMLElement} element - Element to check.
7119
- * @returns {Boolean} - True if the element or any children are focusable.
7120
- */
7121
- containsFocusableElement(element) {
7122
- this.showTriggerBorders = true;
7123
-
7124
- const nodes = [
7125
- element,
7126
- ...element.children
7127
- ];
7128
-
7129
- const focusableElements = [
7130
- 'a',
7131
- 'auro-hyperlink',
7132
- 'button',
7133
- 'auro-button',
7134
- 'input',
7135
- 'auro-input',
7136
- ];
7137
-
7138
- const focusableElementsThatNeedBorders = ['auro-input'];
7139
-
7140
- const result = nodes.some((node) => {
7141
- const tagName = node.tagName.toLowerCase();
7142
-
7143
- if (node.tabIndex > -1) {
7144
- return true;
7145
- }
7146
-
7147
- if (focusableElements.includes(tagName)) {
7148
- if ((tagName === 'a' || tagName === 'auro-hyperlink' || node.hasAttribute('auro-hyperlink')) && node.hasAttribute('href')) {
7149
- return true;
7150
- }
7151
- if (!node.hasAttribute('disabled')) {
7152
- return true;
7153
- }
7154
- }
7155
-
7156
- if (focusableElements.some((focusableElement) => focusableElement.startsWith('auro-') && (focusableElement === tagName || node.hasAttribute(focusableElement)))) {
7157
- return true;
7158
- }
7159
-
7160
- return false;
7161
- });
7162
-
7163
- if (result) {
7164
- this.showTriggerBorders = !nodes.some((node) => {
7165
- const tagName = node.tagName.toLowerCase();
7166
- return focusableElements.includes(tagName) && !focusableElementsThatNeedBorders.includes(tagName);
7167
- });
7168
- }
7169
-
7170
- return result;
7171
- }
7172
-
7173
7123
  /**
7174
7124
  * Creates and dispatches a duplicate focus event on the trigger element.
7175
7125
  * @private
@@ -7281,7 +7231,7 @@ class AuroDropdown extends AuroElement$3 {
7281
7231
  if (triggerContentNodes) {
7282
7232
 
7283
7233
  // See if any of them are focusable elements
7284
- this.triggerContentFocusable = triggerContentNodes.some((node) => this.containsFocusableElement(node));
7234
+ this.triggerContentFocusable = triggerContentNodes.some((node) => getFocusableElements(node).length > 0);
7285
7235
 
7286
7236
  // If any of them are focusable elements
7287
7237
  if (this.triggerContentFocusable) {
@@ -7353,7 +7303,7 @@ class AuroDropdown extends AuroElement$3 {
7353
7303
  <div
7354
7304
  id="trigger"
7355
7305
  class="${classMap(this.commonWrapperClasses)}" part="wrapper"
7356
- tabindex="${this.tabIndex}"
7306
+ tabindex="${ifDefined(this.triggerContentFocusable ? undefined : this.tabIndex)}"
7357
7307
  role="${ifDefined(this.triggerContentFocusable ? undefined : this.a11yRole)}"
7358
7308
  aria-expanded="${ifDefined(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
7359
7309
  aria-controls="${ifDefined(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.dropdownId)}"
@@ -9326,7 +9276,7 @@ class AuroBibtemplate extends LitElement {
9326
9276
  /**
9327
9277
  * @private
9328
9278
  */
9329
- this.buttonTag = versioning.generateTag('auro-formkit-input-button', buttonVersion, AuroButton);
9279
+ this.buttonTag = versioning.generateTag('auro-formkit-bibtemplate-button', buttonVersion, AuroButton);
9330
9280
  }
9331
9281
 
9332
9282
  static get styles() {
@@ -9993,6 +9943,26 @@ class AuroCounterGroup extends AuroElement {
9993
9943
  });
9994
9944
  }
9995
9945
 
9946
+ /**
9947
+ * Hides the dropdown bib if its open.
9948
+ * @returns {void}
9949
+ */
9950
+ hideBib() {
9951
+ if (this.dropdown && this.dropdown.isPopoverVisible) {
9952
+ this.dropdown.hide();
9953
+ }
9954
+ }
9955
+
9956
+ /**
9957
+ * Shows the dropdown bib if there are options to show.
9958
+ * @returns {void}
9959
+ */
9960
+ showBib() {
9961
+ if (this.dropdown && !this.dropdown.isPopoverVisible) {
9962
+ this.dropdown.show();
9963
+ }
9964
+ }
9965
+
9996
9966
  /**
9997
9967
  * Configures the dropdown counters by selecting all `auro-counter` elements,
9998
9968
  * appending them to the `auro-counter-wrapper` element within the shadow DOM,
@@ -6537,6 +6537,7 @@ let AuroElement$3 = class AuroElement extends LitElement {
6537
6537
  // See LICENSE in the project root for license information.
6538
6538
 
6539
6539
 
6540
+
6540
6541
  /*
6541
6542
  * @slot - Default slot for the popover content.
6542
6543
  * @slot helpText - Defines the content of the helpText.
@@ -7040,6 +7041,13 @@ class AuroDropdown extends AuroElement$3 {
7040
7041
 
7041
7042
  // Add the tag name as an attribute if it is different than the component name
7042
7043
  this.runtimeUtils.handleComponentTagRename(this, 'auro-dropdown');
7044
+
7045
+ this.trigger.addEventListener('click', () => {
7046
+ this.dispatchEvent(new CustomEvent('auroDropdown-triggerClick', {
7047
+ bubbles: true,
7048
+ composed: true
7049
+ }));
7050
+ });
7043
7051
  }
7044
7052
 
7045
7053
  /**
@@ -7112,64 +7120,6 @@ class AuroDropdown extends AuroElement$3 {
7112
7120
  this.hasFocus = false;
7113
7121
  }
7114
7122
 
7115
- /**
7116
- * Determines if the element or any children are focusable.
7117
- * @private
7118
- * @param {HTMLElement} element - Element to check.
7119
- * @returns {Boolean} - True if the element or any children are focusable.
7120
- */
7121
- containsFocusableElement(element) {
7122
- this.showTriggerBorders = true;
7123
-
7124
- const nodes = [
7125
- element,
7126
- ...element.children
7127
- ];
7128
-
7129
- const focusableElements = [
7130
- 'a',
7131
- 'auro-hyperlink',
7132
- 'button',
7133
- 'auro-button',
7134
- 'input',
7135
- 'auro-input',
7136
- ];
7137
-
7138
- const focusableElementsThatNeedBorders = ['auro-input'];
7139
-
7140
- const result = nodes.some((node) => {
7141
- const tagName = node.tagName.toLowerCase();
7142
-
7143
- if (node.tabIndex > -1) {
7144
- return true;
7145
- }
7146
-
7147
- if (focusableElements.includes(tagName)) {
7148
- if ((tagName === 'a' || tagName === 'auro-hyperlink' || node.hasAttribute('auro-hyperlink')) && node.hasAttribute('href')) {
7149
- return true;
7150
- }
7151
- if (!node.hasAttribute('disabled')) {
7152
- return true;
7153
- }
7154
- }
7155
-
7156
- if (focusableElements.some((focusableElement) => focusableElement.startsWith('auro-') && (focusableElement === tagName || node.hasAttribute(focusableElement)))) {
7157
- return true;
7158
- }
7159
-
7160
- return false;
7161
- });
7162
-
7163
- if (result) {
7164
- this.showTriggerBorders = !nodes.some((node) => {
7165
- const tagName = node.tagName.toLowerCase();
7166
- return focusableElements.includes(tagName) && !focusableElementsThatNeedBorders.includes(tagName);
7167
- });
7168
- }
7169
-
7170
- return result;
7171
- }
7172
-
7173
7123
  /**
7174
7124
  * Creates and dispatches a duplicate focus event on the trigger element.
7175
7125
  * @private
@@ -7281,7 +7231,7 @@ class AuroDropdown extends AuroElement$3 {
7281
7231
  if (triggerContentNodes) {
7282
7232
 
7283
7233
  // See if any of them are focusable elements
7284
- this.triggerContentFocusable = triggerContentNodes.some((node) => this.containsFocusableElement(node));
7234
+ this.triggerContentFocusable = triggerContentNodes.some((node) => getFocusableElements(node).length > 0);
7285
7235
 
7286
7236
  // If any of them are focusable elements
7287
7237
  if (this.triggerContentFocusable) {
@@ -7353,7 +7303,7 @@ class AuroDropdown extends AuroElement$3 {
7353
7303
  <div
7354
7304
  id="trigger"
7355
7305
  class="${classMap(this.commonWrapperClasses)}" part="wrapper"
7356
- tabindex="${this.tabIndex}"
7306
+ tabindex="${ifDefined(this.triggerContentFocusable ? undefined : this.tabIndex)}"
7357
7307
  role="${ifDefined(this.triggerContentFocusable ? undefined : this.a11yRole)}"
7358
7308
  aria-expanded="${ifDefined(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
7359
7309
  aria-controls="${ifDefined(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.dropdownId)}"
@@ -9326,7 +9276,7 @@ class AuroBibtemplate extends LitElement {
9326
9276
  /**
9327
9277
  * @private
9328
9278
  */
9329
- this.buttonTag = versioning.generateTag('auro-formkit-input-button', buttonVersion, AuroButton);
9279
+ this.buttonTag = versioning.generateTag('auro-formkit-bibtemplate-button', buttonVersion, AuroButton);
9330
9280
  }
9331
9281
 
9332
9282
  static get styles() {
@@ -9993,6 +9943,26 @@ class AuroCounterGroup extends AuroElement {
9993
9943
  });
9994
9944
  }
9995
9945
 
9946
+ /**
9947
+ * Hides the dropdown bib if its open.
9948
+ * @returns {void}
9949
+ */
9950
+ hideBib() {
9951
+ if (this.dropdown && this.dropdown.isPopoverVisible) {
9952
+ this.dropdown.hide();
9953
+ }
9954
+ }
9955
+
9956
+ /**
9957
+ * Shows the dropdown bib if there are options to show.
9958
+ * @returns {void}
9959
+ */
9960
+ showBib() {
9961
+ if (this.dropdown && !this.dropdown.isPopoverVisible) {
9962
+ this.dropdown.show();
9963
+ }
9964
+ }
9965
+
9996
9966
  /**
9997
9967
  * Configures the dropdown counters by selecting all `auro-counter` elements,
9998
9968
  * appending them to the `auro-counter-wrapper` element within the shadow DOM,
@@ -83,7 +83,7 @@ This configuration enables proper module resolution for the component's TypeScri
83
83
  <!-- The below code snippet is automatically added from ./apiExamples/basic.html -->
84
84
 
85
85
  ```html
86
- <auro-datepicker>
86
+ <auro-datepicker required="">
87
87
  <span slot="bib.fullscreen.headline">Datepicker Headline</span>
88
88
  <span slot="fromLabel">Choose a date</span>
89
89
  <span slot="bib.fullscreen.dateLabel">Choose a date</span>
@@ -51,17 +51,13 @@
51
51
  | Method | Type | Description |
52
52
  |-------------------------------|----------------------------------------|--------------------------------------------------|
53
53
  | [clear](#clear) | `(): void` | Clears the current value(s) of the datepicker. |
54
- | [focus](#focus) | `(focusInput: string): void` | Focuses the datepicker trigger input.<br /><br />**focusInput**: Pass in `endDate` to focus on the return input. No parameter is needed to focus on the depart input. |
55
- | [renderHtmlActionClear](#renderHtmlActionClear) | `(): TemplateResult` | |
56
- | [renderHtmlIconCalendar](#renderHtmlIconCalendar) | `(): TemplateResult` | |
57
- | [renderHtmlIconError](#renderHtmlIconError) | `(): TemplateResult` | |
58
- | [renderHtmlInputs](#renderHtmlInputs) | `(): TemplateResult` | |
54
+ | [focus](#focus) | `(focusInput?: string): void` | Focuses the datepicker trigger input.<br /><br />**focusInput**: Pass in `endDate` to focus on the return input. No parameter is needed to focus on the depart input. |
55
+ | [hideBib](#hideBib) | `(): void` | Hides the dropdown bib if its open. |
59
56
  | [reset](#reset) | `(): void` | Resets component to initial state. |
60
57
  | [resetLayoutClasses](#resetLayoutClasses) | `(): void` | |
61
58
  | [resetShapeClasses](#resetShapeClasses) | `(): void` | |
62
59
  | [resetValues](#resetValues) | `(): void` | Resets values without resetting validation. |
63
- | [setHasFocus](#setHasFocus) | `(): void` | |
64
- | [setHasValue](#setHasValue) | `(): void` | |
60
+ | [showBib](#showBib) | `(): void` | Shows the dropdown bib if there are options to show. |
65
61
  | [updateComponentArchitecture](#updateComponentArchitecture) | `(): void` | |
66
62
  | [validate](#validate) | `(force?: boolean \| undefined): void` | Validates value.<br /><br />**force**: Whether to force validation. |
67
63
 
@@ -107,7 +103,7 @@
107
103
  <div class="exampleWrapper">
108
104
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
109
105
  <!-- The below content is automatically added from ./../apiExamples/basic.html -->
110
- <auro-datepicker>
106
+ <auro-datepicker required="">
111
107
  <span slot="bib.fullscreen.headline">Datepicker Headline</span>
112
108
  <span slot="fromLabel">Choose a date</span>
113
109
  <span slot="bib.fullscreen.dateLabel">Choose a date</span>
@@ -120,7 +116,7 @@
120
116
  <!-- The below code snippet is automatically added from ./../apiExamples/basic.html -->
121
117
 
122
118
  ```html
123
- <auro-datepicker>
119
+ <auro-datepicker required="">
124
120
  <span slot="bib.fullscreen.headline">Datepicker Headline</span>
125
121
  <span slot="fromLabel">Choose a date</span>
126
122
  <span slot="bib.fullscreen.dateLabel">Choose a date</span>
@@ -136,7 +132,7 @@ When used, the datepicker will display two inputs and the component will support
136
132
  <div class="exampleWrapper">
137
133
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basicRange.html) -->
138
134
  <!-- The below content is automatically added from ./../apiExamples/basicRange.html -->
139
- <auro-datepicker range>
135
+ <auro-datepicker range minDate="07/08/2025">
140
136
  <span slot="bib.fullscreen.headline">Datepicker Range Headline</span>
141
137
  <span slot="fromLabel">Departure</span>
142
138
  <span slot="toLabel">Return</span>
@@ -150,7 +146,7 @@ When used, the datepicker will display two inputs and the component will support
150
146
  <!-- The below code snippet is automatically added from ./../apiExamples/basicRange.html -->
151
147
 
152
148
  ```html
153
- <auro-datepicker range>
149
+ <auro-datepicker range minDate="07/08/2025">
154
150
  <span slot="bib.fullscreen.headline">Datepicker Range Headline</span>
155
151
  <span slot="fromLabel">Departure</span>
156
152
  <span slot="toLabel">Return</span>
@@ -914,7 +910,7 @@ Sets the label used for the input. When the `range` attribute is used this is th
914
910
  <div class="exampleWrapper">
915
911
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
916
912
  <!-- The below content is automatically added from ./../apiExamples/basic.html -->
917
- <auro-datepicker>
913
+ <auro-datepicker required="">
918
914
  <span slot="bib.fullscreen.headline">Datepicker Headline</span>
919
915
  <span slot="fromLabel">Choose a date</span>
920
916
  <span slot="bib.fullscreen.dateLabel">Choose a date</span>
@@ -927,7 +923,7 @@ Sets the label used for the input. When the `range` attribute is used this is th
927
923
  <!-- The below code snippet is automatically added from ./../apiExamples/basic.html -->
928
924
 
929
925
  ```html
930
- <auro-datepicker>
926
+ <auro-datepicker required="">
931
927
  <span slot="bib.fullscreen.headline">Datepicker Headline</span>
932
928
  <span slot="fromLabel">Choose a date</span>
933
929
  <span slot="bib.fullscreen.dateLabel">Choose a date</span>
@@ -975,7 +971,7 @@ To view this demo, set your window to a mobile screen size.
975
971
  <div class="exampleWrapper">
976
972
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
977
973
  <!-- The below content is automatically added from ./../apiExamples/basic.html -->
978
- <auro-datepicker>
974
+ <auro-datepicker required="">
979
975
  <span slot="bib.fullscreen.headline">Datepicker Headline</span>
980
976
  <span slot="fromLabel">Choose a date</span>
981
977
  <span slot="bib.fullscreen.dateLabel">Choose a date</span>
@@ -988,7 +984,7 @@ To view this demo, set your window to a mobile screen size.
988
984
  <!-- The below code snippet is automatically added from ./../apiExamples/basic.html -->
989
985
 
990
986
  ```html
991
- <auro-datepicker>
987
+ <auro-datepicker required="">
992
988
  <span slot="bib.fullscreen.headline">Datepicker Headline</span>
993
989
  <span slot="fromLabel">Choose a date</span>
994
990
  <span slot="bib.fullscreen.dateLabel">Choose a date</span>
@@ -1004,7 +1000,7 @@ Only for use with the `range` attribute. Sets the label for the second input.
1004
1000
  <div class="exampleWrapper">
1005
1001
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basicRange.html) -->
1006
1002
  <!-- The below content is automatically added from ./../apiExamples/basicRange.html -->
1007
- <auro-datepicker range>
1003
+ <auro-datepicker range minDate="07/08/2025">
1008
1004
  <span slot="bib.fullscreen.headline">Datepicker Range Headline</span>
1009
1005
  <span slot="fromLabel">Departure</span>
1010
1006
  <span slot="toLabel">Return</span>
@@ -1018,7 +1014,7 @@ Only for use with the `range` attribute. Sets the label for the second input.
1018
1014
  <!-- The below code snippet is automatically added from ./../apiExamples/basicRange.html -->
1019
1015
 
1020
1016
  ```html
1021
- <auro-datepicker range>
1017
+ <auro-datepicker range minDate="07/08/2025">
1022
1018
  <span slot="bib.fullscreen.headline">Datepicker Range Headline</span>
1023
1019
  <span slot="fromLabel">Departure</span>
1024
1020
  <span slot="toLabel">Return</span>
@@ -1474,9 +1470,35 @@ The component may be restyled using the following code sample and changing the v
1474
1470
 
1475
1471
  @use "@aurodesignsystem/design-tokens/dist/themes/alaska/SCSSVariables--alaska" as v;
1476
1472
 
1477
- :host {
1478
- --ds-auro-datepicker-placeholder-color: var(--ds-basic-color-texticon-default, #{v.$ds-basic-color-texticon-default});
1473
+ :host(:not([ondark])) {
1474
+ // datepicker
1479
1475
  --ds-auro-datepicker-range-input-divider-color: var(--ds-basic-color-border-bold, #{v.$ds-basic-color-border-bold});
1476
+ --ds-auro-datepicker-error-icon-color: var(--ds-basic-color-status-error, #{v.$ds-basic-color-status-error});
1477
+ --ds-auro-datepicker-label-text-color: var(--ds-basic-color-texticon-muted, #{v.$ds-basic-color-texticon-muted});
1478
+
1479
+ // calendar
1480
+ --ds-auro-calendar-mobile-header-container-color: var(--ds-basic-color-surface-default, #{v.$ds-basic-color-surface-default});
1481
+ --ds-auro-calendar-mobile-header-divider-color: var(--ds-basic-color-border-divider, #{v.$ds-basic-color-border-divider});
1482
+ --ds-auro-calendar-mobile-header-text-color: var(--ds-basic-color-texticon-muted, #{v.$ds-basic-color-texticon-muted});
1483
+ --ds-auro-calendar-nav-btn-border-color: transparent;
1484
+ --ds-auro-calendar-nav-btn-chevron-color: var(--ds-basic-color-brand-primary, #{v.$ds-basic-color-brand-primary});
1485
+ --ds-auro-calendar-nav-btn-container-color: transparent;
1486
+ --ds-auro-calendar-month-container-color: var(--ds-basic-color-surface-default, #{v.$ds-basic-color-surface-default});
1487
+ --ds-auro-calendar-month-divider-color: var(--ds-basic-color-border-divider, #{v.$ds-basic-color-border-divider});
1488
+ --ds-auro-calendar-month-header-color: var(--ds-basic-color-texticon-default, #{v.$ds-basic-color-texticon-default});
1489
+ --ds-auro-calendar-cell-border-color: transparent;
1490
+ --ds-auro-calendar-cell-container-color: transparent;
1491
+ --ds-auro-calendar-cell-in-range-color: var(--ds-advanced-color-shared-background-muted, #{v.$ds-advanced-color-shared-background-muted});
1492
+ --ds-auro-calendar-cell-price-text-color: var(--ds-basic-color-texticon-default, #{v.$ds-basic-color-texticon-default});
1493
+ --ds-auro-calendar-cell-text-color: var(--ds-basic-color-texticon-default, #{v.$ds-basic-color-texticon-default});
1494
+ }
1495
+
1496
+ :host([ondark]) {
1497
+ --ds-auro-datepicker-range-input-divider-color: var(--ds-basic-color-texticon-inverse-muted, v.$ds-basic-color-texticon-inverse-muted);
1498
+ --ds-auro-datepicker-error-icon-color: var(--ds-basic-color-status-error-subtle, v.$ds-basic-color-status-error-subtle);
1499
+ --ds-auro-datepicker-label-text-color: var(--ds-basic-color-texticon-inverse-muted, v.$ds-basic-color-texticon-inverse-muted);
1500
+
1501
+ // calendar
1480
1502
  --ds-auro-calendar-mobile-header-container-color: var(--ds-basic-color-surface-default, #{v.$ds-basic-color-surface-default});
1481
1503
  --ds-auro-calendar-mobile-header-divider-color: var(--ds-basic-color-border-divider, #{v.$ds-basic-color-border-divider});
1482
1504
  --ds-auro-calendar-mobile-header-text-color: var(--ds-basic-color-texticon-muted, #{v.$ds-basic-color-texticon-muted});