@aurodesignsystem-dev/auro-formkit 0.0.0-pr681.1 → 0.0.0-pr684.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 (37) hide show
  1. package/components/bibtemplate/dist/auro-bibtemplate.d.ts +12 -2
  2. package/components/bibtemplate/dist/buttonVersion.d.ts +2 -0
  3. package/components/bibtemplate/dist/iconVersion.d.ts +1 -1
  4. package/components/bibtemplate/dist/index.js +1026 -12
  5. package/components/bibtemplate/dist/registered.js +1026 -12
  6. package/components/combobox/demo/api.min.js +1830 -478
  7. package/components/combobox/demo/index.min.js +1830 -478
  8. package/components/combobox/dist/index.js +1703 -355
  9. package/components/combobox/dist/registered.js +1703 -355
  10. package/components/counter/demo/api.min.js +1813 -466
  11. package/components/counter/demo/index.min.js +1813 -466
  12. package/components/counter/dist/auro-counter-button.d.ts +2 -0
  13. package/components/counter/dist/iconVersion.d.ts +1 -1
  14. package/components/counter/dist/index.js +1813 -466
  15. package/components/counter/dist/registered.js +1813 -466
  16. package/components/datepicker/demo/api.min.js +2319 -643
  17. package/components/datepicker/demo/index.min.js +2319 -643
  18. package/components/datepicker/dist/index.js +2319 -643
  19. package/components/datepicker/dist/registered.js +2319 -643
  20. package/components/dropdown/demo/api.min.js +6 -2
  21. package/components/dropdown/demo/index.min.js +6 -2
  22. package/components/dropdown/dist/index.js +6 -2
  23. package/components/dropdown/dist/registered.js +6 -2
  24. package/components/input/demo/api.min.js +565 -235
  25. package/components/input/demo/index.min.js +565 -235
  26. package/components/input/dist/index.js +565 -235
  27. package/components/input/dist/registered.js +565 -235
  28. package/components/menu/demo/api.min.js +7 -3
  29. package/components/menu/demo/index.min.js +7 -3
  30. package/components/menu/dist/iconVersion.d.ts +1 -1
  31. package/components/menu/dist/index.js +7 -3
  32. package/components/menu/dist/registered.js +7 -3
  33. package/components/select/demo/api.min.js +1166 -144
  34. package/components/select/demo/index.min.js +1166 -144
  35. package/components/select/dist/index.js +1159 -141
  36. package/components/select/dist/registered.js +1159 -141
  37. package/package.json +1 -1
@@ -161,6 +161,8 @@ const stringsES = {
161
161
  'dateMM': 'Ingrese una fecha completa en el formato MM',
162
162
  'dateDD': 'Ingrese una fecha completa en el formato DD',
163
163
  'clearInput': 'Borrar campo de entrada',
164
+ 'showPassword': 'Mostrar contraseña',
165
+ 'hidePassword': 'Ocultar contraseña'
164
166
  };
165
167
 
166
168
  const stringsEN = {
@@ -185,6 +187,8 @@ const stringsEN = {
185
187
  'dateMM': 'Please enter a complete date in the format MM',
186
188
  'dateDD': 'Please enter a complete date in the format DD',
187
189
  'clearInput': 'Clear input field',
190
+ 'showPassword': 'Show password',
191
+ 'hidePassword': 'Hide password'
188
192
  };
189
193
 
190
194
  /**
@@ -4479,7 +4483,7 @@ const {
4479
4483
 
4480
4484
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
4481
4485
 
4482
- let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
4486
+ let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
4483
4487
 
4484
4488
  /* eslint-disable jsdoc/require-param */
4485
4489
 
@@ -4549,7 +4553,7 @@ let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
4549
4553
  class AuroFormValidation {
4550
4554
 
4551
4555
  constructor() {
4552
- this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
4556
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$3();
4553
4557
  }
4554
4558
 
4555
4559
  /**
@@ -4910,7 +4914,7 @@ class AuroFormValidation {
4910
4914
  }
4911
4915
  }
4912
4916
 
4913
- let AuroElement$1 = class AuroElement extends i$2 {
4917
+ let AuroElement$2 = class AuroElement extends i$2 {
4914
4918
  static get properties() {
4915
4919
  return {
4916
4920
 
@@ -5030,7 +5034,7 @@ let AuroElement$1 = class AuroElement extends i$2 {
5030
5034
  * @event auroFormElement-validated - Notifies that the `validity` and `errorMessage` value has changed.
5031
5035
  */
5032
5036
 
5033
- class BaseInput extends AuroElement$1 {
5037
+ class BaseInput extends AuroElement$2 {
5034
5038
 
5035
5039
  constructor() {
5036
5040
  super();
@@ -6093,7 +6097,7 @@ class BaseInput extends AuroElement$1 {
6093
6097
  // See LICENSE in the project root for license information.
6094
6098
 
6095
6099
 
6096
- let AuroDependencyVersioning$1 = class AuroDependencyVersioning {
6100
+ class AuroDependencyVersioning {
6097
6101
 
6098
6102
  /**
6099
6103
  * Generates a unique string to be used for child auro element naming.
@@ -6127,7 +6131,7 @@ let AuroDependencyVersioning$1 = class AuroDependencyVersioning {
6127
6131
 
6128
6132
  return tag;
6129
6133
  }
6130
- };
6134
+ }
6131
6135
 
6132
6136
  // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
6133
6137
  // See LICENSE in the project root for license information.
@@ -6139,7 +6143,7 @@ let AuroDependencyVersioning$1 = class AuroDependencyVersioning {
6139
6143
  * @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
6140
6144
  */
6141
6145
 
6142
- class AuroElement extends i$2 {
6146
+ let AuroElement$1 = class AuroElement extends i$2 {
6143
6147
 
6144
6148
  // function to define props used within the scope of this component
6145
6149
  static get properties() {
@@ -6163,7 +6167,7 @@ class AuroElement extends i$2 {
6163
6167
 
6164
6168
  return 'false'
6165
6169
  }
6166
- }
6170
+ };
6167
6171
 
6168
6172
  var error = {"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" aria-labelledby=\"error__desc\" class=\"ico_squareLarge\" data-deprecated=\"true\" role=\"img\" style=\"min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor\" viewBox=\"0 0 24 24\" part=\"svg\"><title/><desc id=\"error__desc\">Error alert indicator.</desc><path d=\"m13.047 5.599 6.786 11.586A1.207 1.207 0 0 1 18.786 19H5.214a1.207 1.207 0 0 1-1.047-1.815l6.786-11.586a1.214 1.214 0 0 1 2.094 0m-1.165.87a.23.23 0 0 0-.085.085L5.419 17.442a.232.232 0 0 0 .203.35h12.756a.234.234 0 0 0 .203-.35L12.203 6.554a.236.236 0 0 0-.321-.084M12 15.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m-.024-6.22c.325 0 .589.261.589.583v4.434a.586.586 0 0 1-.589.583.586.586 0 0 1-.588-.583V9.863c0-.322.264-.583.588-.583\"/></svg>"};
6169
6173
 
@@ -6207,7 +6211,7 @@ var styleCss$3 = i$5`:focus:not(:focus-visible){outline:3px solid transparent}.u
6207
6211
  */
6208
6212
 
6209
6213
  // build the component class
6210
- class BaseIcon extends AuroElement {
6214
+ class BaseIcon extends AuroElement$1 {
6211
6215
  constructor() {
6212
6216
  super();
6213
6217
  this.onDark = false;
@@ -6290,7 +6294,7 @@ var colorCss$3 = i$5`:host{color:var(--ds-auro-icon-color)}:host([customColor]){
6290
6294
 
6291
6295
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
6292
6296
 
6293
- let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
6297
+ let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
6294
6298
 
6295
6299
  /* eslint-disable jsdoc/require-param */
6296
6300
 
@@ -6372,7 +6376,7 @@ class AuroIcon extends BaseIcon {
6372
6376
  */
6373
6377
  privateDefaults() {
6374
6378
  this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
6375
- this.runtimeUtils = new AuroLibraryRuntimeUtils$3();
6379
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
6376
6380
  }
6377
6381
 
6378
6382
  // function to define props used within the scope of this component
@@ -6454,7 +6458,7 @@ class AuroIcon extends BaseIcon {
6454
6458
  *
6455
6459
  */
6456
6460
  static register(name = "auro-icon") {
6457
- AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroIcon);
6461
+ AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroIcon);
6458
6462
  }
6459
6463
 
6460
6464
  connectedCallback() {
@@ -6475,8 +6479,12 @@ class AuroIcon extends BaseIcon {
6475
6479
  async firstUpdated() {
6476
6480
  await super.firstUpdated();
6477
6481
 
6478
- // Removes the SVG description for screenreader if ariaHidden is set to true
6479
- if (!this.hasAttribute('ariaHidden') && this.svg) {
6482
+ /**
6483
+ * icons provide a description for screen readers. Icon only instances Auro-button
6484
+ * depend on this description to provide context for the user using a screen reader.
6485
+ * Removes the SVG description for screen reader if ariaHidden is set to true.
6486
+ */
6487
+ if (this.hasAttribute('ariaHidden') && this.svg) {
6480
6488
  const svgDesc = this.svg.querySelector('desc');
6481
6489
 
6482
6490
  if (svgDesc) {
@@ -6522,121 +6530,479 @@ class AuroIcon extends BaseIcon {
6522
6530
 
6523
6531
  var iconVersion = '8.0.1';
6524
6532
 
6525
- // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
6526
- // See LICENSE in the project root for license information.
6533
+ /**
6534
+ * Private module-level WeakMap to hold MutationObservers for each host element.
6535
+ */
6536
+ const _observers = new WeakMap();
6527
6537
 
6538
+ /**
6539
+ * Private module-level WeakMap to hold attribute matchers and targets for each host element.
6540
+ * Structure: {
6541
+ * host: {
6542
+ * matchers: Set<Function>,
6543
+ * targets: Map<HTMLElement, Map<Function, {removeOriginal: boolean, currentAttributes: Map<string, string>}>>
6544
+ * }
6545
+ * }
6546
+ */
6547
+ const _transportConfig = new WeakMap();
6528
6548
 
6529
- class AuroDependencyVersioning {
6549
+ /**
6550
+ * Transfers all matching attributes from a host element to a target element and observes for future changes.
6551
+ *
6552
+ * @param {Object} params - The parameters for the function.
6553
+ * @param {HTMLElement} params.host - The host element from which attributes will be transported.
6554
+ * @param {HTMLElement} params.target - The target element to which attributes will be transported.
6555
+ * @param {boolean} [params.removeOriginal=true] - Whether to remove the attributes from the host element.
6556
+ * @param {boolean} [params.observe=true] - Whether to attach a MutationObserver to the host element.
6557
+ * @returns {Function} A function to detach the observer when no longer needed.
6558
+ * @throws {TypeError} If the host or target parameters are not instances of HTMLElement.
6559
+ */
6560
+ const transportAttributes = ({ host, target, match, removeOriginal = true }) => {
6561
+ // Guard Clause: Ensure host is valid HTMLElement instance
6562
+ if (typeof host !== 'object' || !(host instanceof HTMLElement)) {
6563
+ throw new TypeError('a11yUtilities.js | transportAttributes | The "host" parameter must be an instance of HTMLElement.');
6564
+ }
6530
6565
 
6531
- /**
6532
- * Generates a unique string to be used for child auro element naming.
6533
- * @private
6534
- * @param {string} baseName - Defines the first part of the unique element name.
6535
- * @param {string} version - Version of the component that will be appended to the baseName.
6536
- * @returns {string} - Unique string to be used for naming.
6537
- */
6538
- generateElementName(baseName, version) {
6539
- let result = baseName;
6566
+ // Guard Clause: Ensure target is valid HTMLElement instance
6567
+ if (typeof target !== 'object' || !(target instanceof HTMLElement)) {
6568
+ throw new TypeError('a11yUtilities.js | transportAttributes | The "target" parameter must be an instance of HTMLElement.');
6569
+ }
6540
6570
 
6541
- result += '-';
6542
- result += version.replace(/[.]/g, '_');
6571
+ // Guard Clause: Ensure match is a function
6572
+ if (typeof match !== 'function') {
6573
+ throw new TypeError('a11yUtilities.js | transportAttributes | The "match" parameter must be a function.');
6574
+ }
6543
6575
 
6544
- return result;
6576
+ // Guard Clause: Ensure removeOriginal is a boolean
6577
+ if (typeof removeOriginal !== 'boolean') {
6578
+ throw new TypeError('a11yUtilities.js | transportAttributes | The "removeOriginal" parameter must be a boolean.');
6545
6579
  }
6580
+
6581
+ // Register this transport and get cleanup function
6582
+ return _registerTransport({
6583
+ host,
6584
+ target,
6585
+ matcher: match,
6586
+ removeOriginal
6587
+ });
6588
+ };
6546
6589
 
6547
- /**
6548
- * Generates a unique string to be used for child auro element naming.
6549
- * @param {string} baseName - Defines the first part of the unique element name.
6550
- * @param {string} version - Version of the component that will be appended to the baseName.
6551
- * @returns {string} - Unique string to be used for naming.
6552
- */
6553
- generateTag(baseName, version, tagClass) {
6554
- const elementName = this.generateElementName(baseName, version);
6555
- const tag = i$1`${s$1(elementName)}`;
6590
+ /**
6591
+ * Registers a matcher and target for a host element and attaches an observer if needed.
6592
+ *
6593
+ * @param {Object} params - The parameters object.
6594
+ * @param {HTMLElement} params.host - The host element to observe.
6595
+ * @param {HTMLElement} params.target - The target element to receive attributes.
6596
+ * @param {Function} params.matcher - Function that determines which attributes to transport.
6597
+ * @param {boolean} [params.removeOriginal=true] - Whether to remove original attributes.
6598
+ * @param {boolean} [params.observe=true] - Whether to observe for attribute changes.
6599
+ * @returns {Function} Function to detach the specific matcher and target pairing.
6600
+ * @private
6601
+ */
6602
+ const _registerTransport = ({ host, target, matcher, removeOriginal = true }) => {
6603
+ // Initialize config for this host if it doesn't exist
6604
+ if (!_transportConfig.has(host)) {
6605
+ _transportConfig.set(host, {
6606
+ matchers: new Set(),
6607
+ targets: new Map()
6608
+ });
6609
+ }
6556
6610
 
6557
- if (!customElements.get(elementName)) {
6558
- customElements.define(elementName, class extends tagClass {});
6611
+ const config = _transportConfig.get(host);
6612
+
6613
+ // Add the matcher to the set of matchers for this host
6614
+ config.matchers.add(matcher);
6615
+
6616
+ // Initialize target entry if it doesn't exist
6617
+ if (!config.targets.has(target)) {
6618
+ config.targets.set(target, new Map());
6619
+ }
6620
+
6621
+ // Store the matcher with its removeOriginal setting for this target
6622
+ config.targets.get(target).set(matcher, {
6623
+ removeOriginal,
6624
+ currentAttributes: new Map()
6625
+ });
6626
+
6627
+ // Perform initial attribute transport
6628
+ _transportAttributes({ host, target, matcher, removeOriginal });
6629
+
6630
+ // Attach observer
6631
+ _attachObserver(host);
6632
+
6633
+ // Return cleanup function and utility functions
6634
+ return {
6635
+ cleanup: () => _cleanupTransport(host, target, matcher),
6636
+ getObservedAttributes: () => _getObservedAttributes(host, target, matcher),
6637
+ getObservedAttribute: (attr) => _getObservedAttribute(host, target, matcher, attr),
6638
+ }
6639
+ };
6640
+
6641
+ /**
6642
+ * Cleans up resources associated with a specific matcher and target for a host element.
6643
+ *
6644
+ * @param {HTMLElement} host - The host element
6645
+ * @param {HTMLElement} target - The target element
6646
+ * @param {Function} matcher - The matcher function
6647
+ * @private
6648
+ */
6649
+ const _cleanupTransport = (host, target, matcher) => {
6650
+ const config = _transportConfig.get(host);
6651
+ if (!config) return;
6652
+
6653
+ // Remove this matcher from this target
6654
+ const targetMatchers = config.targets.get(target);
6655
+ if (targetMatchers) {
6656
+ targetMatchers.delete(matcher);
6657
+
6658
+ // If this target has no more matchers, remove it
6659
+ if (targetMatchers.size === 0) {
6660
+ config.targets.delete(target);
6661
+ }
6662
+ }
6663
+
6664
+ // Check if this matcher is still used by any target
6665
+ let matcherStillUsed = false;
6666
+ for (const matcherMap of config.targets.values()) {
6667
+ if (matcherMap.has(matcher)) {
6668
+ matcherStillUsed = true;
6669
+ break;
6670
+ }
6671
+ }
6672
+
6673
+ // If not used anymore, remove from matchers set
6674
+ if (!matcherStillUsed) {
6675
+ config.matchers.delete(matcher);
6676
+ }
6677
+
6678
+ // If no more targets or matchers, detach observer
6679
+ if (config.targets.size === 0 || config.matchers.size === 0) {
6680
+ _detachObserver(host);
6681
+ }
6682
+ };
6683
+
6684
+ /**
6685
+ * Generic function to transport attributes from a host element to a target element.
6686
+ *
6687
+ * @param {Object} params - The parameters object.
6688
+ * @param {HTMLElement} params.host - The host element from which to transport attributes.
6689
+ * @param {HTMLElement} params.target - The target element to which attributes will be transported.
6690
+ * @param {Function} params.matcher - Function that takes an attribute name and returns true if it should be transported.
6691
+ * @param {boolean} [params.removeOriginal=true] - Whether to remove original attributes from host.
6692
+ * @returns {void}
6693
+ * @private
6694
+ */
6695
+ const _transportAttributes = ({ host, target, matcher, removeOriginal = true }) => {
6696
+ // Get a list of all matching attributes on the host element and their values
6697
+ const matchingAttributes = host.getAttributeNames()
6698
+ .filter(attr => matcher(attr))
6699
+ .reduce((acc, attr) => {
6700
+ acc[attr] = host.getAttribute(attr);
6701
+ return acc;
6702
+ }, {});
6703
+
6704
+ // Move matching attributes to the target element, removing them from the host if removeOriginal is true
6705
+ Object.entries(matchingAttributes).forEach(([key, value]) => {
6706
+ _setObservedAttribute(host, target, matcher, key, value);
6707
+ target.setAttribute(key, value);
6708
+ if (removeOriginal) {
6709
+ host.removeAttribute(key);
6559
6710
  }
6711
+ });
6712
+ };
6560
6713
 
6561
- return tag;
6714
+ /**
6715
+ * Attaches a MutationObserver to the host element to monitor attribute changes.
6716
+ *
6717
+ * @param {HTMLElement} host - The element to observe for attribute changes.
6718
+ * @returns {MutationObserver} The observer instance.
6719
+ * @private
6720
+ */
6721
+ const _attachObserver = (host) => {
6722
+ // If an observer for this host already exists, return it
6723
+ if (_observers.has(host)) {
6724
+ return _observers.get(host);
6725
+ }
6726
+
6727
+ // Create a new MutationObserver
6728
+ const observer = new MutationObserver((mutations) => {
6729
+ const config = _transportConfig.get(host);
6730
+ if (!config) return;
6731
+
6732
+ // For each mutation affecting attributes
6733
+ mutations
6734
+ .filter(mutation => mutation.type === 'attributes')
6735
+ .forEach(mutation => {
6736
+ const attributeName = mutation.attributeName;
6737
+
6738
+ // Find matchers that care about this attribute
6739
+ for (const matcher of config.matchers) {
6740
+ if (matcher(attributeName)) {
6741
+ // For each target that uses this matcher
6742
+ for (const [target, matcherConfigs] of config.targets.entries()) {
6743
+ if (matcherConfigs.has(matcher)) {
6744
+ const { removeOriginal } = matcherConfigs.get(matcher);
6745
+ _transportAttributes({
6746
+ host,
6747
+ target,
6748
+ matcher,
6749
+ removeOriginal
6750
+ });
6751
+ }
6752
+ }
6753
+ }
6754
+ }
6755
+ });
6756
+ });
6757
+
6758
+ // Start observing attribute changes
6759
+ observer.observe(host, { attributes: true });
6760
+
6761
+ // Store the observer
6762
+ _observers.set(host, observer);
6763
+
6764
+ return observer;
6765
+ };
6766
+
6767
+ /**
6768
+ * Detaches and cleans up the MutationObserver for a given host element.
6769
+ *
6770
+ * @param {HTMLElement} host - The element whose observer should be detached.
6771
+ * @private
6772
+ */
6773
+ const _detachObserver = (host) => {
6774
+ if (_observers.has(host)) {
6775
+ const observer = _observers.get(host);
6776
+ observer.disconnect();
6777
+ _observers.delete(host);
6562
6778
  }
6563
- }
6779
+
6780
+ // Clean up the transport config as well
6781
+ if (_transportConfig.has(host)) {
6782
+ _transportConfig.delete(host);
6783
+ }
6784
+ };
6564
6785
 
6565
- // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
6566
- // See LICENSE in the project root for license information.
6786
+ /**
6787
+ * Gets the matcher configuration for a specific host, target, and matcher
6788
+ * @param {HTMLElement} host - The host element
6789
+ * @param {HTMLElement} target - The target element
6790
+ * @param {Function} matcher - The matcher function
6791
+ * @returns {Object|undefined} The matcher configuration if found
6792
+ * @private
6793
+ */
6794
+ const _getMatcherConfig = (host, target, matcher) => {
6795
+ const config = _transportConfig.get(host);
6796
+ if (!config) return undefined;
6797
+
6798
+ const targetMatchers = config.targets.get(target);
6799
+ if (!targetMatchers) return undefined;
6800
+
6801
+ return targetMatchers.get(matcher);
6802
+ };
6567
6803
 
6568
- // ---------------------------------------------------------------------
6804
+ /**
6805
+ * Sets an observed attribute value
6806
+ * @param {HTMLElement} host - The host element
6807
+ * @param {HTMLElement} target - The target element
6808
+ * @param {Function} matcher - The matcher function
6809
+ * @param {string} key - The attribute name
6810
+ * @param {string} value - The attribute value
6811
+ * @private
6812
+ */
6813
+ const _setObservedAttribute = (host, target, matcher, key, value) => {
6814
+ const matcherConfig = _getMatcherConfig(host, target, matcher);
6815
+ if (matcherConfig) {
6816
+ matcherConfig.currentAttributes.set(key, value);
6817
+ }
6818
+ };
6569
6819
 
6570
- /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
6820
+ const _getObservedAttribute = (host, target, matcher, attr) => {
6821
+ const matcherConfig = _getMatcherConfig(host, target, matcher);
6822
+ if (matcherConfig) return matcherConfig.currentAttributes.get(attr);
6823
+ return undefined;
6824
+ };
6571
6825
 
6572
- let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
6826
+ const _getObservedAttributes = (host, target, matcher) => {
6827
+ const matcherConfig = _getMatcherConfig(host, target, matcher);
6828
+ if (matcherConfig) return Array.from(matcherConfig.currentAttributes.entries());
6829
+ return [];
6830
+ };
6573
6831
 
6574
- /* eslint-disable jsdoc/require-param */
6832
+ const _matchers = {
6833
+ 'aria-': attr => attr.startsWith('aria-'),
6834
+ 'role': attr => attr.match(/^role$/)
6835
+ };
6836
+
6837
+ const transportAllA11yAttributes = ({ host, target, removeOriginal = true }) => {
6838
+ return transportAttributes({
6839
+ host,
6840
+ target,
6841
+ match: attr => {
6842
+ for (const key in _matchers) {
6843
+ if (_matchers[key](attr)) return true;
6844
+ }
6845
+ return false;
6846
+ },
6847
+ removeOriginal
6848
+ });
6849
+ };
6850
+
6851
+ class AuroElement extends i$2 {
6575
6852
 
6576
6853
  /**
6577
- * This will register a new custom element with the browser.
6578
- * @param {String} name - The name of the custom element.
6579
- * @param {Object} componentClass - The class to register as a custom element.
6580
- * @returns {void}
6854
+ * @type {Object} return object from transportAttributes via a11yUtilities
6855
+ * @property {Function} cleanup - Function to clean up the attribute watcher.
6856
+ * @property {Function} getCurrentAttributes - Function to get the current attributes being watched and their values.
6857
+ * @property {Function} getObservedAttribute - Function to get the value of a specific observed attribute by name.
6858
+ * @private
6581
6859
  */
6582
- registerComponent(name, componentClass) {
6583
- if (!customElements.get(name)) {
6584
- customElements.define(name, class extends componentClass {});
6860
+ attributeWatcher;
6861
+
6862
+ static get properties() {
6863
+ return {
6864
+
6865
+ /**
6866
+ * Defines the layout of an element.
6867
+ * @default {'default'}
6868
+ */
6869
+ layout: {
6870
+ type: String,
6871
+ attribute: "layout",
6872
+ reflect: true
6873
+ },
6874
+
6875
+ /**
6876
+ * Defines the shape of an element.
6877
+ * @property {'default', 'rounded', 'pill', 'circle'}
6878
+ * @default {'default'}
6879
+ */
6880
+ shape: {
6881
+ type: String,
6882
+ attribute: "shape",
6883
+ reflect: true
6884
+ },
6885
+
6886
+ /**
6887
+ * Defines the size of an element.
6888
+ * @property {'xs', 'sm', 'md', 'lg', 'xl'}
6889
+ * @default {'md'}
6890
+ */
6891
+ size: {
6892
+ type: String,
6893
+ attribute: "size",
6894
+ reflect: true
6895
+ },
6896
+
6897
+ /**
6898
+ * This Boolean attribute lets you specify that the element should be rendered in dark mode.
6899
+ * @default {false}
6900
+ */
6901
+ onDark: {
6902
+ type: Boolean,
6903
+ attribute: "ondark",
6904
+ reflect: true
6905
+ },
6906
+
6907
+ /**
6908
+ * A reference to the wrapper element in the shadow DOM.
6909
+ * This is used to apply layout and shape classes dynamically.
6910
+ * @type {HTMLElement|null}
6911
+ * @default {null}
6912
+ * @private
6913
+ */
6914
+ wrapper: {
6915
+ type: HTMLElement,
6916
+ attribute: false,
6917
+ reflect: false
6918
+ }
6919
+ };
6920
+ }
6921
+
6922
+
6923
+
6924
+ resetShapeClasses() {
6925
+ if (this.shape && this.size) {
6926
+
6927
+ if (this.wrapper) {
6928
+ this.wrapper.classList.forEach((className) => {
6929
+ if (className.startsWith('shape-')) {
6930
+ this.wrapper.classList.remove(className);
6931
+ }
6932
+ });
6933
+
6934
+ this.wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
6935
+ }
6585
6936
  }
6586
6937
  }
6587
6938
 
6588
- /**
6589
- * Finds and returns the closest HTML Element based on a selector.
6590
- * @returns {void}
6591
- */
6592
- closestElement(
6593
- selector, // selector like in .closest()
6594
- base = this, // extra functionality to skip a parent
6595
- __Closest = (el, found = el && el.closest(selector)) =>
6596
- !el || el === document || el === window
6597
- ? null // standard .closest() returns null for non-found selectors also
6598
- : found
6599
- ? found // found a selector INside this element
6600
- : __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
6601
- ) {
6602
- return __Closest(base);
6939
+ resetLayoutClasses() {
6940
+ if (this.layout) {
6941
+ if (this.wrapper) {
6942
+ this.wrapper.classList.forEach((className) => {
6943
+ if (className.startsWith('layout-')) {
6944
+ this.wrapper.classList.remove(className);
6945
+ }
6946
+ });
6947
+
6948
+ this.wrapper.classList.add(`layout-${this.layout.toLowerCase()}`);
6949
+ }
6950
+ }
6603
6951
  }
6604
- /* eslint-enable jsdoc/require-param */
6605
6952
 
6606
- /**
6607
- * If the element passed is registered with a different tag name than what is passed in, the tag name is added as an attribute to the element.
6608
- * @param {Object} elem - The element to check.
6609
- * @param {String} tagName - The name of the Auro component to check for or add as an attribute.
6610
- * @returns {void}
6611
- */
6612
- handleComponentTagRename(elem, tagName) {
6613
- const tag = tagName.toLowerCase();
6614
- const elemTag = elem.tagName.toLowerCase();
6953
+ updateComponentArchitecture() {
6954
+ this.resetLayoutClasses();
6955
+ this.resetShapeClasses();
6956
+ }
6615
6957
 
6616
- if (elemTag !== tag) {
6617
- elem.setAttribute(tag, true);
6958
+ updated(changedProperties) {
6959
+ if (changedProperties.has('layout') || changedProperties.has('shape') || changedProperties.has('size')) {
6960
+ this.updateComponentArchitecture();
6618
6961
  }
6619
6962
  }
6620
6963
 
6621
- /**
6622
- * Validates if an element is a specific Auro component.
6623
- * @param {Object} elem - The element to validate.
6624
- * @param {String} tagName - The name of the Auro component to check against.
6625
- * @returns {Boolean} - Returns true if the element is the specified Auro component.
6626
- */
6627
- elementMatch(elem, tagName) {
6628
- const tag = tagName.toLowerCase();
6629
- const elemTag = elem.tagName.toLowerCase();
6964
+ firstUpdated() {
6965
+ super.firstUpdated();
6630
6966
 
6631
- return elemTag === tag || elem.hasAttribute(tag);
6967
+ // Set a reference to the wrapper element in the shadow DOM
6968
+ this.wrapper = this.shadowRoot.querySelector('.wrapper');
6969
+
6970
+ // Initialize the transportation of ARIA attributes to the target element and get the disconnect function for cleanup
6971
+ this.attributeWatcher = transportAllA11yAttributes({ host: this, target: this.shadowRoot.querySelector('.wrapper') });
6632
6972
  }
6633
- };
6634
6973
 
6635
- var styleCss$2 = i$5`:focus:not(:focus-visible){outline:3px solid transparent}.util_insetNone{padding:0}.util_insetXxxs{padding:.125rem}.util_insetXxxs--stretch{padding:.25rem .125rem}.util_insetXxxs--squish{padding:0 .125rem}.util_insetXxs{padding:.25rem}.util_insetXxs--stretch{padding:.375rem .25rem}.util_insetXxs--squish{padding:.125rem .25rem}.util_insetXs{padding:.5rem}.util_insetXs--stretch{padding:.75rem .5rem}.util_insetXs--squish{padding:.25rem .5rem}.util_insetSm{padding:.75rem}.util_insetSm--stretch{padding:1.125rem .75rem}.util_insetSm--squish{padding:.375rem .75rem}.util_insetMd{padding:1rem}.util_insetMd--stretch{padding:1.5rem 1rem}.util_insetMd--squish{padding:.5rem 1rem}.util_insetLg{padding:1.5rem}.util_insetLg--stretch{padding:2.25rem 1.5rem}.util_insetLg--squish{padding:.75rem 1.5rem}.util_insetXl{padding:2rem}.util_insetXl--stretch{padding:3rem 2rem}.util_insetXl--squish{padding:1rem 2rem}.util_insetXxl{padding:3rem}.util_insetXxl--stretch{padding:4.5rem 3rem}.util_insetXxl--squish{padding:1.5rem 3rem}.util_insetXxxl{padding:4rem}.util_insetXxxl--stretch{padding:6rem 4rem}.util_insetXxxl--squish{padding:2rem 4rem}:host([fluid]) .auro-button,:host([fluid=true]) .auro-button{min-width:auto;width:100%}:host([variant=flat]){display:inline-block;height:var(--ds-size-300, 1.5rem);width:var(--ds-size-300, 1.5rem)}:host([variant=flat]) .auro-button{height:100%;width:100%}::slotted(svg){vertical-align:middle}slot{pointer-events:none}.auro-button{position:relative;padding:0 var(--ds-size-300, 1.5rem);cursor:pointer;border-width:1px;border-style:solid;border-radius:var(--ds-border-radius, 0.375rem);font-family:var(--ds-basic-text-body-default-font-family, "AS Circular");font-size:var(--ds-basic-text-body-default-font-size, 16px);font-weight:var(--ds-basic-text-body-default-font-weight, 450);line-height:var(--ds-basic-text-body-default-line-height, 24px);letter-spacing:var(--ds-basic-text-body-default-letter-spacing, 0);overflow:hidden;text-overflow:ellipsis;user-select:none;white-space:nowrap;min-height:var(--ds-size-600, 3rem);max-height:var(--ds-size-600, 3rem);display:inline-flex;flex-direction:row;align-items:center;justify-content:center;gap:var(--ds-size-100, 0.5rem);margin:0;-webkit-touch-callout:none;-webkit-user-select:none}.auro-button:active{transform:scale(0.95)}.auro-button:focus-visible{outline:none}.auro-button:focus-visible:not([variant=flat]){outline-style:solid;outline-width:var(--ds-size-50, 0.25rem);outline-offset:calc(var(--ds-size-50, 0.25rem)*-1)}.auro-button:focus-visible:not([variant=flat]):not([variant=secondary]):not([variant=tertiary]){outline-width:calc(var(--ds-size-50, 0.25rem) - 1px)}.auro-button.loading{cursor:not-allowed}.auro-button.loading *:not([auro-loader]){visibility:hidden}@media screen and (min-width: 576px){.auro-button{min-width:8.75rem;width:auto}}.auro-button:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=secondary]:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=tertiary]:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=flat]{height:unset;width:unset;min-height:unset;max-height:unset;min-width:unset;max-width:unset;border:0;border-radius:unset;gap:unset;padding:unset}.auro-button[onDark]:disabled{cursor:not-allowed;transform:unset}.auro-button[onDark][variant=secondary]:disabled{cursor:not-allowed;transform:unset}@media(hover: hover){.auro-button[onDark][variant=tertiary]:active,.auro-button[onDark][variant=tertiary]:hover{box-shadow:none}}.auro-button[onDark][variant=tertiary]:active{box-shadow:none}.auro-button[onDark][variant=tertiary]:disabled{cursor:not-allowed;transform:unset}.auro-button--slim{padding:var(--ds-size-100, 0.5rem) var(--ds-size-200, 1rem);font-family:var(--ds-basic-text-body-sm-font-family, "AS Circular");font-size:var(--ds-basic-text-body-sm-font-size, 14px);font-weight:var(--ds-basic-text-body-sm-font-weight, 450);line-height:var(--ds-basic-text-body-sm-line-height, 20px);letter-spacing:var(--ds-basic-text-body-sm-letter-spacing, 0);min-width:unset;min-height:calc(var(--ds-size-500, 2.5rem) - var(--ds-size-50, 0.25rem));max-height:calc(var(--ds-size-500, 2.5rem) - var(--ds-size-50, 0.25rem))}.auro-button--iconOnly{padding:0 var(--ds-size-100, 0.5rem);border-radius:100px;min-width:unset;height:var(--ds-size-600, 3rem);width:var(--ds-size-500, 2.5rem)}.auro-button--iconOnly ::slotted(auro-icon),.auro-button--iconOnly ::slotted([auro-icon]){--ds-auro-icon-size:var(--ds-size-300, 1.5rem)}.auro-button--iconOnly:not(.auro-button--rounded):focus-visible:not([variant=secondary]):not([variant=tertiary]):not([variant=flat]){outline-width:1px;outline-offset:-2px}.auro-button--iconOnlySlim{padding:0 var(--ds-size-50, 0.25rem);height:calc(var(--ds-size-400, 2rem) + var(--ds-size-50, 0.25rem));width:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-50, 0.25rem))}.auro-button--iconOnlySlim ::slotted(auro-icon),.auro-button--iconOnlySlim ::slotted([auro-icon]){--ds-auro-icon-size:calc(var(--ds-size-200, 1rem) + var(--ds-size-50, 0.25rem))}.auro-button--rounded{border-radius:100px;box-shadow:var(--ds-elevation-300, 0px 0px 15px rgba(0, 0, 0, 0.2));height:var(--ds-size-500, 2.5rem);min-width:unset;transition:all 300ms ease-out,outline 0ms,outline-offset 0ms}.auro-button--rounded ::slotted(auro-icon),.auro-button--rounded ::slotted([auro-icon]){--ds-auro-icon-size:var(--ds-size-300, 1.5rem)}.auro-button--rounded:focus-visible:not([variant=flat]):after{border-radius:100px}:host([rounded]) .textSlot{transition:opacity 300ms ease-in;opacity:1}:host([rounded][iconOnly]) .textSlot{opacity:0}:host([rounded][iconOnly]) .textWrapper{display:none}:host([rounded][iconOnly]) .auro-button{min-width:unset;padding:unset;width:var(--ds-size-600, 3rem)}[auro-loader]{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none}`;
6974
+ disconnectedCallback() {
6975
+ super.disconnectedCallback();
6976
+
6977
+ // Cleanup the ARIA observer if it exists
6978
+ if (this.attributeWatcher) {
6979
+ this.attributeWatcher.cleanup();
6980
+ this.attributeWatcher = null;
6981
+ }
6982
+ }
6983
+
6984
+ // Try to render the defined `this.layout` layout. If that fails, fall back to the default layout.
6985
+ // This will catch if an invalid layout value is passed in and render the default layout if so.
6986
+ render() {
6987
+ try {
6988
+ return this.renderLayout();
6989
+ } catch (error) {
6990
+ // failed to get the defined layout
6991
+ console.error('Failed to get the defined layout - using the default layout', error); // eslint-disable-line no-console
6992
+
6993
+ // fallback to the default layout
6994
+ return this.getLayout('default');
6995
+ }
6996
+ }
6997
+ }
6998
+
6999
+ var styleCss$2 = i$5`:focus:not(:focus-visible){outline:3px solid transparent}.util_insetNone{padding:0}.util_insetXxxs{padding:.125rem}.util_insetXxxs--stretch{padding:.25rem .125rem}.util_insetXxxs--squish{padding:0 .125rem}.util_insetXxs{padding:.25rem}.util_insetXxs--stretch{padding:.375rem .25rem}.util_insetXxs--squish{padding:.125rem .25rem}.util_insetXs{padding:.5rem}.util_insetXs--stretch{padding:.75rem .5rem}.util_insetXs--squish{padding:.25rem .5rem}.util_insetSm{padding:.75rem}.util_insetSm--stretch{padding:1.125rem .75rem}.util_insetSm--squish{padding:.375rem .75rem}.util_insetMd{padding:1rem}.util_insetMd--stretch{padding:1.5rem 1rem}.util_insetMd--squish{padding:.5rem 1rem}.util_insetLg{padding:1.5rem}.util_insetLg--stretch{padding:2.25rem 1.5rem}.util_insetLg--squish{padding:.75rem 1.5rem}.util_insetXl{padding:2rem}.util_insetXl--stretch{padding:3rem 2rem}.util_insetXl--squish{padding:1rem 2rem}.util_insetXxl{padding:3rem}.util_insetXxl--stretch{padding:4.5rem 3rem}.util_insetXxl--squish{padding:1.5rem 3rem}.util_insetXxxl{padding:4rem}.util_insetXxxl--stretch{padding:6rem 4rem}.util_insetXxxl--squish{padding:2rem 4rem}:host([fluid]) .auro-button,:host([fluid=true]) .auro-button{min-width:auto;width:100%}:host([variant=flat]){display:inline-block}::slotted(svg){vertical-align:middle}slot{pointer-events:none}.auro-button{position:relative;padding:0 var(--ds-size-300, 1.5rem);cursor:pointer;border-width:1px;border-style:solid;border-radius:var(--ds-border-radius, 0.375rem);overflow:hidden;text-overflow:ellipsis;user-select:none;white-space:nowrap;min-height:var(--ds-size-600, 3rem);max-height:var(--ds-size-600, 3rem);display:inline-flex;flex-direction:row;align-items:center;justify-content:center;gap:var(--ds-size-100, 0.5rem);margin:0;-webkit-touch-callout:none;-webkit-user-select:none;transition:padding 300ms ease-out}.auro-button:active{transform:scale(0.95)}.auro-button:focus-visible,.auro-button:focus{outline:none;outline-style:solid;outline-width:var(--ds-size-50, 0.25rem);outline-offset:calc(var(--ds-size-50, 0.25rem)*-1)}.auro-button:focus-visible:not([variant=secondary]):not([variant=tertiary]),.auro-button:focus:not([variant=secondary]):not([variant=tertiary]){outline-width:calc(var(--ds-size-50, 0.25rem) - 1px)}.auro-button.loading{cursor:not-allowed}.auro-button.loading *:not([auro-loader]){visibility:hidden}@media screen and (min-width: 576px){.auro-button{min-width:8.75rem;width:auto}}.auro-button:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=secondary]:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=tertiary]:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=ghost]:disabled{cursor:not-allowed;transform:unset}.auro-button[onDark]:disabled{cursor:not-allowed;transform:unset}.auro-button[onDark][variant=secondary]:disabled{cursor:not-allowed;transform:unset}@media(hover: hover){.auro-button[onDark][variant=tertiary]:active,.auro-button[onDark][variant=tertiary]:hover{box-shadow:none}}.auro-button[onDark][variant=tertiary]:active{box-shadow:none}.auro-button[onDark][variant=tertiary]:disabled{cursor:not-allowed;transform:unset}.auro-button--slim{min-width:unset;min-height:calc(var(--ds-size-500, 2.5rem) - var(--ds-size-50, 0.25rem));max-height:calc(var(--ds-size-500, 2.5rem) - var(--ds-size-50, 0.25rem))}.auro-button--iconOnly{padding:0 var(--ds-size-100, 0.5rem);border-radius:100px;min-width:unset;height:var(--ds-size-600, 3rem);width:var(--ds-size-500, 2.5rem)}.auro-button--iconOnly ::slotted(auro-icon),.auro-button--iconOnly ::slotted([auro-icon]){--ds-auro-icon-size:var(--ds-size-300, 1.5rem)}.auro-button--iconOnly:not(.auro-button--rounded):focus-visible:not([variant=secondary]):not([variant=tertiary]):not([variant=flat]),.auro-button--iconOnly:not(.auro-button--rounded):focus:not([variant=secondary]):not([variant=tertiary]):not([variant=flat]){outline-width:1px;outline-offset:-2px}.auro-button--iconOnlySlim{padding:0 var(--ds-size-50, 0.25rem);height:calc(var(--ds-size-400, 2rem) + var(--ds-size-50, 0.25rem));width:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-50, 0.25rem))}.auro-button--iconOnlySlim ::slotted(auro-icon),.auro-button--iconOnlySlim ::slotted([auro-icon]){--ds-auro-icon-size:calc(var(--ds-size-200, 1rem) + var(--ds-size-50, 0.25rem))}.auro-button--rounded{border-radius:100px;box-shadow:var(--ds-elevation-300, 0px 0px 15px rgba(0, 0, 0, 0.2));height:var(--ds-size-500, 2.5rem);min-width:unset;transition:padding 300ms ease-out,outline 0ms,outline-offset 0ms}.auro-button--rounded ::slotted(auro-icon),.auro-button--rounded ::slotted([auro-icon]){--ds-auro-icon-size:var(--ds-size-300, 1.5rem)}.auro-button--rounded:focus-visible:not([variant=flat]):after,.auro-button--rounded:focus:not([variant=flat]):after{border-radius:100px}:host([size=xs]) .wrapper:focus-visible,:host([size=xs]) .wrapper:focus{outline-width:1px;outline-offset:-2px}:host([rounded]) .textSlot{transition:opacity 300ms ease-in;opacity:1}:host([rounded][iconOnly]) .textSlot{opacity:0}:host([rounded][iconOnly]) .textWrapper{display:none}:host([rounded][iconOnly]) .auro-button{min-width:unset;padding:unset;width:var(--ds-size-600, 3rem)}[auro-loader]{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none}`;
7000
+
7001
+ var colorCss$2 = i$5`[auro-loader]{color:var(--ds-auro-button-loader-color)}.auro-button{-webkit-tap-highlight-color:var(--ds-auro-button-tap-color);color:var(--ds-auro-button-text-color);background-color:var(--ds-auro-button-container-color);background-image:linear-gradient(var(--ds-auro-button-container-image), var(--ds-auro-button-container-image));border-color:var(--ds-auro-button-border-color)}.auro-button:not([variant=secondary]):not([variant=tertiary]):focus-visible{outline-color:var(--ds-auro-button-border-inset-color)}.auro-button:not([ondark]):active:not(:disabled),.auro-button:not([ondark]):hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-hover, #00274a);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-hover, #00274a);--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-hover, #00274a)}.auro-button:not([ondark]):disabled{--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-disabled, #acc9e2);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-disabled, #acc9e2);--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-disabled, #acc9e2)}.auro-button:not([ondark])[variant=secondary]{--ds-auro-button-container-color:var(--ds-advanced-color-button-secondary-background, #ffffff);--ds-auro-button-container-image:var(--ds-advanced-color-button-secondary-background, #ffffff);--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border, #01426a);--ds-auro-button-text-color:var(--ds-advanced-color-button-secondary-text, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-secondary-text, #01426a)}.auro-button:not([ondark])[variant=secondary]:active:not(:disabled),.auro-button:not([ondark])[variant=secondary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-secondary-background-hover, #f2f2f2);--ds-auro-button-container-image:var(--ds-advanced-color-button-secondary-background-hover, #f2f2f2);--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border-hover, #00274a);--ds-auro-button-text-color:var(--ds-advanced-color-button-secondary-text-hover, #00274a)}.auro-button:not([ondark])[variant=secondary]:focus-visible{--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused, #01426a)}.auro-button:not([ondark])[variant=secondary]:disabled{--ds-auro-button-container-color:var(--ds-advanced-color-button-secondary-background-disabled, #f7f7f7);--ds-auro-button-container-image:var(--ds-advanced-color-button-secondary-background-disabled, #f7f7f7);--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border-disabled, #cfe0ef);--ds-auro-button-text-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}.auro-button:not([ondark])[variant=tertiary]{--ds-auro-button-container-color:var(--ds-advanced-color-button-tertiary-background, rgba(0, 0, 0, 0.05));--ds-auro-button-container-image:var(--ds-advanced-color-button-tertiary-background, rgba(0, 0, 0, 0.05));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-advanced-color-button-tertiary-text, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-tertiary-text, #01426a)}.auro-button:not([ondark])[variant=tertiary]:active:not(:disabled),.auro-button:not([ondark])[variant=tertiary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-tertiary-background-hover, rgba(0, 0, 0, 0.1));--ds-auro-button-container-image:var(--ds-advanced-color-button-tertiary-background-hover, rgba(0, 0, 0, 0.1));--ds-auro-button-border-color:transparent}.auro-button:not([ondark])[variant=tertiary]:focus-visible{--ds-auro-button-border-color:var(--ds-advanced-color-state-focused, #01426a);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused, #01426a)}.auro-button:not([ondark])[variant=tertiary]:disabled{--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}.auro-button:not([ondark])[variant=ghost]{--ds-auro-button-container-color:transparent;--ds-auro-button-container-image:transparent;--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-advanced-color-button-ghost-text, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-ghost-text, #01426a)}.auro-button:not([ondark])[variant=ghost]:active:not(:disabled),.auro-button:not([ondark])[variant=ghost]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-ghost-background-hover, rgba(0, 0, 0, 0.05));--ds-auro-button-container-image:var(--ds-advanced-color-button-ghost-background-hover, rgba(0, 0, 0, 0.05));--ds-auro-button-border-color:transparent}.auro-button:not([ondark])[variant=ghost]:focus-visible{--ds-auro-button-border-color:var(--ds-advanced-color-state-focused, #01426a);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused, #01426a)}.auro-button:not([ondark])[variant=ghost]:disabled{--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}.auro-button:not([ondark])[variant=flat]{color:var(--ds-advanced-color-button-flat-text, #676767);background-color:transparent;background-image:none;border-color:transparent}.auro-button:not([ondark])[variant=flat]:active:not(:disabled),.auro-button:not([ondark])[variant=flat]:hover:not(:disabled){color:var(--ds-advanced-color-button-flat-text-hover, #525252);background-color:transparent;background-image:none;border-color:transparent}.auro-button:not([ondark])[variant=flat]:disabled{color:var(--ds-advanced-color-button-flat-text-disabled, #d0d0d0);background-color:transparent;background-image:none;border-color:transparent}.auro-button:not([ondark])[variant=flat]:focus-visible{--ds-auro-button-border-color:var(--ds-advanced-color-state-focused, #01426a);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused, #01426a)}.auro-button[ondark]{--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-inverse, #ffffff);--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-inverse, #ffffff);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-inverse, #ffffff);--ds-auro-button-text-color:var(--ds-advanced-color-button-primary-text-inverse, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-primary-text-inverse, #01426a)}.auro-button[ondark]:active:not(:disabled),.auro-button[ondark]:hover:not(:disabled){--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-inverse-hover, #ebf3f9);--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-inverse-hover, #ebf3f9);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-inverse-hover, #ebf3f9)}.auro-button[ondark]:focus-visible{--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused, #01426a)}.auro-button[ondark]:disabled{--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-button-text-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}.auro-button[ondark][variant=secondary]{--ds-auro-button-container-color:transparent;--ds-auro-button-container-image:transparent;--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border-inverse, #ffffff);--ds-auro-button-text-color:var(--ds-advanced-color-button-secondary-text-inverse, #ffffff);--ds-auro-button-loader-color:var(--ds-advanced-color-button-secondary-text-inverse, #ffffff)}.auro-button[ondark][variant=secondary]:active:not(:disabled),.auro-button[ondark][variant=secondary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-secondary-background-inverse-hover, rgba(255, 255, 255, 0.1));--ds-auro-button-container-image:var(--ds-advanced-color-button-secondary-background-inverse-hover, rgba(255, 255, 255, 0.1))}.auro-button[ondark][variant=secondary]:focus-visible{--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused-inverse, #ffffff)}.auro-button[ondark][variant=secondary]:disabled{--ds-auro-button-text-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border-inverse-disabled, #dddddd)}.auro-button[ondark][variant=tertiary]{--ds-auro-button-container-color:var(--ds-advanced-color-button-tertiary-background-inverse, rgba(255, 255, 255, 0.05));--ds-auro-button-container-image:var(--ds-advanced-color-button-tertiary-background-inverse, rgba(255, 255, 255, 0.05));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-advanced-color-button-tertiary-text-inverse, #ffffff);--ds-auro-button-loader-color:var(--ds-advanced-color-button-tertiary-text-inverse, #ffffff)}.auro-button[ondark][variant=tertiary]:active:not(:disabled),.auro-button[ondark][variant=tertiary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-tertiary-background-inverse-hover, rgba(255, 255, 255, 0.1));--ds-auro-button-container-image:var(--ds-advanced-color-button-tertiary-background-inverse-hover, rgba(255, 255, 255, 0.1))}.auro-button[ondark][variant=tertiary]:focus-visible{--ds-auro-button-border-color:var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused-inverse, #ffffff)}.auro-button[ondark][variant=tertiary]:disabled{--ds-auro-button-text-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}.auro-button[ondark][variant=ghost]{--ds-auro-button-container-color:transparent;--ds-auro-button-container-image:transparent;--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-advanced-color-button-ghost-text-inverse, #ffffff);--ds-auro-button-loader-color:var(--ds-advanced-color-button-ghost-text-inverse, #ffffff)}.auro-button[ondark][variant=ghost]:active:not(:disabled),.auro-button[ondark][variant=ghost]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-ghost-background-inverse-hover, rgba(255, 255, 255, 0.05));--ds-auro-button-container-image:var(--ds-advanced-color-button-ghost-background-inverse-hover, rgba(255, 255, 255, 0.05))}.auro-button[ondark][variant=ghost]:focus-visible{--ds-auro-button-border-color:var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused-inverse, #ffffff)}.auro-button[ondark][variant=ghost]:disabled{--ds-auro-button-text-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}.auro-button[ondark][variant=flat]{color:var(--ds-advanced-color-button-flat-text-inverse, #ffffff);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark][variant=flat]:active:not(:disabled),.auro-button[ondark][variant=flat]:hover:not(:disabled){color:var(--ds-advanced-color-button-flat-text-inverse-hover, #adadad);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark][variant=flat]:disabled{color:var(--ds-advanced-color-button-flat-text-inverse-disabled, #7e8894);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark][variant=flat]:focus-visible{--ds-auro-button-border-color:var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused-inverse, #ffffff)}`;
6636
7002
 
6637
- var colorCss$2 = i$5`[auro-loader]{color:var(--ds-auro-button-loader-color)}.auro-button{-webkit-tap-highlight-color:var(--ds-auro-button-tap-color);color:var(--ds-auro-button-text-color);background-color:var(--ds-auro-button-container-color);background-image:linear-gradient(var(--ds-auro-button-container-image), var(--ds-auro-button-container-image));border-color:var(--ds-auro-button-border-color)}.auro-button:not([variant=secondary]):not([variant=tertiary]):focus-visible{outline-color:var(--ds-auro-button-border-inset-color)}.auro-button:not([ondark]):active:not(:disabled),.auro-button:not([ondark]):hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-hover, #00274a);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-hover, #00274a);--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-hover, #00274a)}.auro-button:not([ondark]):disabled{--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-disabled, #acc9e2);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-disabled, #acc9e2);--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-disabled, #acc9e2)}.auro-button:not([ondark])[variant=secondary]{--ds-auro-button-container-color:var(--ds-advanced-color-button-secondary-background, #ffffff);--ds-auro-button-container-image:var(--ds-advanced-color-button-secondary-background, #ffffff);--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border, #01426a);--ds-auro-button-text-color:var(--ds-advanced-color-button-secondary-text, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-secondary-text, #01426a)}.auro-button:not([ondark])[variant=secondary]:active:not(:disabled),.auro-button:not([ondark])[variant=secondary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-secondary-background-hover, #f2f2f2);--ds-auro-button-container-image:var(--ds-advanced-color-button-secondary-background-hover, #f2f2f2);--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border-hover, #00274a);--ds-auro-button-text-color:var(--ds-advanced-color-button-secondary-text-hover, #00274a)}.auro-button:not([ondark])[variant=secondary]:focus-visible{--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused, #01426a)}.auro-button:not([ondark])[variant=secondary]:disabled{--ds-auro-button-container-color:var(--ds-advanced-color-button-secondary-background-disabled, #f7f7f7);--ds-auro-button-container-image:var(--ds-advanced-color-button-secondary-background-disabled, #f7f7f7);--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border-disabled, #cfe0ef);--ds-auro-button-text-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}.auro-button:not([ondark])[variant=tertiary]{--ds-auro-button-container-color:var(--ds-advanced-color-button-tertiary-background, rgba(0, 0, 0, 0.05));--ds-auro-button-container-image:var(--ds-advanced-color-button-tertiary-background, rgba(0, 0, 0, 0.05));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-advanced-color-button-tertiary-text, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-tertiary-text, #01426a)}.auro-button:not([ondark])[variant=tertiary]:active:not(:disabled),.auro-button:not([ondark])[variant=tertiary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-tertiary-background-hover, rgba(0, 0, 0, 0.1));--ds-auro-button-container-image:var(--ds-advanced-color-button-tertiary-background-hover, rgba(0, 0, 0, 0.1));--ds-auro-button-border-color:transparent}.auro-button:not([ondark])[variant=tertiary]:focus-visible{--ds-auro-button-border-color:var(--ds-advanced-color-state-focused, #01426a);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused, #01426a)}.auro-button:not([ondark])[variant=tertiary]:disabled{--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}.auro-button:not([ondark])[variant=flat]{color:var(--ds-advanced-color-button-flat-text, #676767);background-color:transparent;background-image:none;border-color:transparent}.auro-button:not([ondark])[variant=flat]:active:not(:disabled),.auro-button:not([ondark])[variant=flat]:hover:not(:disabled){color:var(--ds-advanced-color-button-flat-text-hover, #525252);background-color:transparent;background-image:none;border-color:transparent}.auro-button:not([ondark])[variant=flat]:disabled{color:var(--ds-advanced-color-button-flat-text-disabled, #d0d0d0);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark]{--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-inverse, #ffffff);--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-inverse, #ffffff);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-inverse, #ffffff);--ds-auro-button-text-color:var(--ds-advanced-color-button-primary-text-inverse, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-primary-text-inverse, #01426a)}.auro-button[ondark]:active:not(:disabled),.auro-button[ondark]:hover:not(:disabled){--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-inverse-hover, #ebf3f9);--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-inverse-hover, #ebf3f9);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-inverse-hover, #ebf3f9)}.auro-button[ondark]:focus-visible{--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused, #01426a)}.auro-button[ondark]:disabled{--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-button-text-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}.auro-button[ondark][variant=secondary]{--ds-auro-button-container-color:transparent;--ds-auro-button-container-image:transparent;--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border-inverse, #ffffff);--ds-auro-button-text-color:var(--ds-advanced-color-button-secondary-text-inverse, #ffffff);--ds-auro-button-loader-color:var(--ds-advanced-color-button-secondary-text-inverse, #ffffff)}.auro-button[ondark][variant=secondary]:active:not(:disabled),.auro-button[ondark][variant=secondary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-secondary-background-inverse-hover, rgba(255, 255, 255, 0.1));--ds-auro-button-container-image:var(--ds-advanced-color-button-secondary-background-inverse-hover, rgba(255, 255, 255, 0.1))}.auro-button[ondark][variant=secondary]:focus-visible{--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused-inverse, #ffffff)}.auro-button[ondark][variant=secondary]:disabled{--ds-auro-button-text-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border-inverse-disabled, #dddddd)}.auro-button[ondark][variant=tertiary]{--ds-auro-button-container-color:var(--ds-advanced-color-button-tertiary-background-inverse, rgba(255, 255, 255, 0.05));--ds-auro-button-container-image:var(--ds-advanced-color-button-tertiary-background-inverse, rgba(255, 255, 255, 0.05));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-advanced-color-button-tertiary-text-inverse, #ffffff);--ds-auro-button-loader-color:var(--ds-advanced-color-button-tertiary-text-inverse, #ffffff)}.auro-button[ondark][variant=tertiary]:active:not(:disabled),.auro-button[ondark][variant=tertiary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-tertiary-background-inverse-hover, rgba(255, 255, 255, 0.1));--ds-auro-button-container-image:var(--ds-advanced-color-button-tertiary-background-inverse-hover, rgba(255, 255, 255, 0.1))}.auro-button[ondark][variant=tertiary]:focus-visible{--ds-auro-button-border-color:var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused-inverse, #ffffff)}.auro-button[ondark][variant=tertiary]:disabled{--ds-auro-button-text-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}.auro-button[ondark][variant=flat]{color:var(--ds-advanced-color-button-flat-text-inverse, #ffffff);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark][variant=flat]:active:not(:disabled),.auro-button[ondark][variant=flat]:hover:not(:disabled){color:var(--ds-advanced-color-button-flat-text-inverse-hover, #adadad);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark][variant=flat]:disabled{color:var(--ds-advanced-color-button-flat-text-inverse-disabled, #7e8894);background-color:transparent;background-image:none;border-color:transparent}`;
7003
+ var tokensCss$2 = i$5`:host(:not([onDark])){--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border, #01426a);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background, #01426a);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-primary-text, #ffffff);--ds-auro-button-text-color:var(--ds-advanced-color-button-primary-text, #ffffff);--ds-auro-button-tap-color:transparent}:host([onDark]){--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-inverse, #ffffff);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-inverse, #ffffff);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-inverse, #ffffff);--ds-auro-button-loader-color:var(--ds-advanced-color-button-primary-text-inverse, #01426a);--ds-auro-button-text-color:var(--ds-advanced-color-button-primary-text-inverse, #01426a);--ds-auro-button-tap-color:transparent}`;
6638
7004
 
6639
- var tokensCss$2 = i$5`:host{--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border, #01426a);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background, #01426a);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-primary-text, #ffffff);--ds-auro-button-text-color:var(--ds-advanced-color-button-primary-text, #ffffff);--ds-auro-button-tap-color:transparent}`;
7005
+ var shapeSize = i$5`.shape-rounded-xl{min-height:68px;max-height:68px;border-style:solid;border-radius:6px;overflow:hidden;font-size:18px}.shape-rounded-lg{min-height:52px;max-height:52px;border-style:solid;border-radius:6px;overflow:hidden;font-size:18px}.shape-rounded-md{min-height:44px;max-height:44px;border-style:solid;border-radius:6px;overflow:hidden;font-size:16px}.shape-rounded-sm{min-height:32px;max-height:32px;border-style:solid;border-radius:6px;overflow:hidden;font-size:14px}.shape-rounded-xs{min-height:20px;max-height:20px;border-style:solid;border-radius:4px;overflow:hidden;font-size:12px;outline-offset:-2px;outline-width:1px}.shape-pill-xl{min-height:68px;max-height:68px;border-style:solid;border-radius:34px;overflow:hidden;font-size:18px}.shape-pill-left-xl{min-height:68px;max-height:68px;border-style:solid;border-radius:34px 0 0 34px;overflow:hidden}.shape-pill-right-xl{min-height:68px;max-height:68px;border-style:solid;border-radius:0 34px 34px 0;overflow:hidden}.shape-pill-lg{min-height:52px;max-height:52px;border-style:solid;border-radius:26px;overflow:hidden;font-size:18px}.shape-pill-left-lg{min-height:52px;max-height:52px;border-style:solid;border-radius:26px 0 0 26px;overflow:hidden}.shape-pill-right-lg{min-height:52px;max-height:52px;border-style:solid;border-radius:0 26px 26px 0;overflow:hidden}.shape-pill-md{min-height:44px;max-height:44px;border-style:solid;border-radius:22px;overflow:hidden}.shape-pill-left-md{min-height:44px;max-height:44px;border-style:solid;border-radius:22px 0 0 22px;overflow:hidden}.shape-pill-right-md{min-height:44px;max-height:44px;border-style:solid;border-radius:0 22px 22px 0;overflow:hidden;font-size:16px}.shape-pill-sm{min-height:32px;max-height:32px;border-style:solid;border-radius:16px;overflow:hidden;font-size:14px}.shape-pill-left-sm{min-height:32px;max-height:32px;border-style:solid;border-radius:16px 0 0 16px;overflow:hidden}.shape-pill-right-sm{min-height:32px;max-height:32px;border-style:solid;border-radius:0 16px 16px 0;overflow:hidden}.shape-pill-xs{min-height:20px;max-height:20px;border-style:solid;border-radius:10px;overflow:hidden;font-size:12px;outline-offset:-2px;outline-width:1px}.shape-pill-left-xs{min-height:20px;max-height:20px;border-style:solid;border-radius:10px 0 0 10px;overflow:hidden;outline-offset:-2px;outline-width:1px}.shape-pill-right-xs{min-height:20px;max-height:20px;border-style:solid;border-radius:0 10px 10px 0;overflow:hidden;outline-offset:-2px;outline-width:1px}.shape-circle-xl{min-height:68px;max-height:68px;min-width:68px;max-width:68px;border-style:solid;border-radius:34px;overflow:hidden;padding:0}.shape-circle-lg{min-height:52px;max-height:52px;min-width:52px;max-width:52px;border-style:solid;border-radius:26px;overflow:hidden;padding:0}.shape-circle-md{min-height:44px;max-height:44px;min-width:44px;max-width:44px;border-style:solid;border-radius:22px;overflow:hidden;padding:0}.shape-circle-sm{min-height:32px;max-height:32px;min-width:32px;max-width:32px;border-style:solid;border-radius:16px;overflow:hidden;padding:0}.shape-circle-xs{min-height:20px;max-height:20px;min-width:20px;max-width:20px;border-style:solid;border-radius:10px;overflow:hidden;padding:0;outline-offset:-2px;outline-width:1px}`;
6640
7006
 
6641
7007
  // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
6642
7008
  // See LICENSE in the project root for license information.
@@ -6855,7 +7221,7 @@ class AuroLoader extends i$2 {
6855
7221
 
6856
7222
  var loaderVersion = '5.0.0';
6857
7223
 
6858
- /* eslint-disable max-lines */
7224
+ /* eslint-disable max-lines, curly */
6859
7225
  // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
6860
7226
  // See LICENSE in the project root for license information.
6861
7227
 
@@ -6871,7 +7237,18 @@ var loaderVersion = '5.0.0';
6871
7237
 
6872
7238
  /* eslint-disable lit/no-invalid-html, lit/binding-positions */
6873
7239
 
6874
- class AuroButton extends i$2 {
7240
+ const ICON_ONLY_SHAPES = ['circle'];
7241
+
7242
+ /**
7243
+ * AuroButton is a custom element that provides a styled, accessible button with support for various states and form association.
7244
+ * It is designed to be flexible, supporting loading states, icon slots, and integration with HTML5 forms.
7245
+ * @property {'default', 'rounded', 'pill', 'circle'} shape - Defines the shape of the button.
7246
+ * @property {'xs', 'sm', 'md', 'lg', 'xl'} size - Defines the size of the button.
7247
+ * @property {'primary', 'secondary', 'tertiary', 'ghost', 'flat'} variant - Sets the button variant.
7248
+ * @property {'submit', 'reset', 'button'} type - The type of button. Matches HTML5 Button Spec.
7249
+ * @property {boolean} onDark - Indicates if the button is rendered in dark mode.
7250
+ */
7251
+ class AuroButton extends AuroElement {
6875
7252
 
6876
7253
  /**
6877
7254
  * Enables form association for this element.
@@ -6886,13 +7263,10 @@ class AuroButton extends i$2 {
6886
7263
  super();
6887
7264
  this.autofocus = false;
6888
7265
  this.disabled = false;
6889
- this.iconOnly = false;
6890
7266
  this.loading = false;
7267
+ this.size = "md";
7268
+ this.shape = "rounded";
6891
7269
  this.onDark = false;
6892
- this.secondary = false;
6893
- this.tertiary = false;
6894
- this.rounded = false;
6895
- this.slim = false;
6896
7270
  this.fluid = false;
6897
7271
  this.loadingText = this.loadingText || 'Loading...';
6898
7272
 
@@ -6921,43 +7295,38 @@ class AuroButton extends i$2 {
6921
7295
  return [
6922
7296
  tokensCss$2,
6923
7297
  styleCss$2,
6924
- colorCss$2
7298
+ colorCss$2,
7299
+ shapeSize
6925
7300
  ];
6926
7301
  }
6927
7302
 
6928
7303
  static get properties() {
6929
7304
  return {
6930
7305
 
6931
- /**
6932
- * This Boolean attribute lets you specify that the button should have input focus when the page loads, unless overridden by the user.
6933
- */
6934
- autofocus: {
6935
- type: Boolean,
6936
- reflect: true
6937
- },
7306
+ ...super.properties,
6938
7307
 
6939
7308
  /**
6940
- * If set to true, button will become disabled and not allow for interactions.
7309
+ * Override layout since it isn't used in this component.
7310
+ * @private
6941
7311
  */
6942
- disabled: {
7312
+ layout: {
6943
7313
  type: Boolean,
6944
- reflect: true
7314
+ attribute: false,
7315
+ reflect: false
6945
7316
  },
6946
7317
 
6947
7318
  /**
6948
- * DEPRECATED.
6949
- * @deprecated
7319
+ * This Boolean attribute lets you specify that the button should have input focus when the page loads, unless overridden by the user.
6950
7320
  */
6951
- secondary: {
7321
+ autofocus: {
6952
7322
  type: Boolean,
6953
7323
  reflect: true
6954
7324
  },
6955
7325
 
6956
7326
  /**
6957
- * DEPRECATED.
6958
- * @deprecated
7327
+ * If set to true, button will become disabled and not allow for interactions.
6959
7328
  */
6960
- tertiary: {
7329
+ disabled: {
6961
7330
  type: Boolean,
6962
7331
  reflect: true
6963
7332
  },
@@ -6965,15 +7334,7 @@ class AuroButton extends i$2 {
6965
7334
  /**
6966
7335
  * Alters the shape of the button to be full width of its parent container.
6967
7336
  */
6968
- fluid: {
6969
- type: Boolean,
6970
- reflect: true
6971
- },
6972
-
6973
- /**
6974
- * If set to true, the button will contain an icon with no additional content.
6975
- */
6976
- iconOnly: {
7337
+ fluid: {
6977
7338
  type: Boolean,
6978
7339
  reflect: true
6979
7340
  },
@@ -6981,7 +7342,7 @@ class AuroButton extends i$2 {
6981
7342
  /**
6982
7343
  * If set to true button text will be replaced with `auro-loader` and become disabled.
6983
7344
  */
6984
- loading: {
7345
+ loading: {
6985
7346
  type: Boolean,
6986
7347
  reflect: true
6987
7348
  },
@@ -6989,34 +7350,10 @@ class AuroButton extends i$2 {
6989
7350
  /**
6990
7351
  * Sets custom loading text for the `aria-label` on a button in loading state. If not set, the default value of "Loading..." will be used.
6991
7352
  */
6992
- loadingText: {
7353
+ loadingText: {
6993
7354
  type: String
6994
7355
  },
6995
7356
 
6996
- /**
6997
- * Set value for on-dark version of auro-button.
6998
- */
6999
- onDark: {
7000
- type: Boolean,
7001
- reflect: true
7002
- },
7003
-
7004
- /**
7005
- * If set to true, the button will have a rounded shape.
7006
- */
7007
- rounded: {
7008
- type: Boolean,
7009
- reflect: true
7010
- },
7011
-
7012
- /**
7013
- * Set value for slim version of auro-button.
7014
- */
7015
- slim: {
7016
- type: Boolean,
7017
- reflect: true
7018
- },
7019
-
7020
7357
  /**
7021
7358
  * Populates `tabIndex` to define the focusable sequence in keyboard navigation.
7022
7359
  */
@@ -7025,48 +7362,10 @@ class AuroButton extends i$2 {
7025
7362
  reflect: true
7026
7363
  },
7027
7364
 
7028
- /**
7029
- * Populates the `aria-hidden` attribute to hide the button from a11y API.
7030
- */
7031
- ariahidden: {
7032
- type: String,
7033
- reflect: true,
7034
- },
7035
-
7036
- /**
7037
- * Populates the `aria-label` attribute that is used to define a string that labels the current element.
7038
- * Use it in cases where a text label is not visible on the screen.
7039
- * If there is visible text labeling the element, use `aria-labelledby` instead.
7040
- */
7041
- arialabel: {
7042
- type: String,
7043
- reflect: true
7044
- },
7045
-
7046
- /**
7047
- * Populates the `aria-labelledby` attribute that establishes relationships between objects and their label(s),
7048
- * and its value should be one or more element IDs, which refer to elements that have the text needed for labeling.
7049
- * List multiple element IDs in a space delimited fashion.
7050
- */
7051
- arialabelledby: {
7052
- type: String,
7053
- reflect: true
7054
- },
7055
-
7056
- /**
7057
- * Populates the `aria-expanded` attribute that indicates whether the element,
7058
- * or another grouping element it controls, is currently expanded or collapsed.
7059
- * This is an optional attribute for buttons.
7060
- */
7061
- ariaexpanded: {
7062
- type: Boolean,
7063
- reflect: true
7064
- },
7065
-
7066
7365
  /**
7067
7366
  * Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
7068
7367
  */
7069
- title: {
7368
+ title: {
7070
7369
  type: String,
7071
7370
  reflect: true
7072
7371
  },
@@ -7074,7 +7373,7 @@ class AuroButton extends i$2 {
7074
7373
  /**
7075
7374
  * The type of the button. Possible values are: `submit`, `reset`, `button`.
7076
7375
  */
7077
- type: {
7376
+ type: {
7078
7377
  type: String,
7079
7378
  reflect: true
7080
7379
  },
@@ -7082,19 +7381,19 @@ class AuroButton extends i$2 {
7082
7381
  /**
7083
7382
  * Defines the value associated with the button which is submitted with the form data.
7084
7383
  */
7085
- value: {
7384
+ value: {
7086
7385
  type: String,
7087
7386
  reflect: true
7088
7387
  },
7089
7388
 
7090
7389
  /**
7091
- * Sets button variant option. Possible values are: `secondary`, `tertiary`.
7390
+ * Sets button variant option.
7391
+ * @default primary
7092
7392
  */
7093
- variant: {
7393
+ variant: {
7094
7394
  type: String,
7095
7395
  reflect: true
7096
7396
  },
7097
- ready: { type: Boolean },
7098
7397
  };
7099
7398
  }
7100
7399
 
@@ -7107,7 +7406,7 @@ class AuroButton extends i$2 {
7107
7406
  *
7108
7407
  */
7109
7408
  static register(name = "auro-button") {
7110
- AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroButton);
7409
+ AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroButton);
7111
7410
  }
7112
7411
 
7113
7412
  /**
@@ -7119,17 +7418,6 @@ class AuroButton extends i$2 {
7119
7418
  this.renderRoot.querySelector('button').focus();
7120
7419
  }
7121
7420
 
7122
- updated() {
7123
- // support the old `secondary` and `tertiary` attributes` that are deprecated
7124
- if (this.secondary) {
7125
- this.setAttribute('variant', 'secondary');
7126
- }
7127
-
7128
- if (this.tertiary) {
7129
- this.setAttribute('variant', 'tertiary');
7130
- }
7131
- }
7132
-
7133
7421
  /**
7134
7422
  * Submits the form that this button is associated with.
7135
7423
  * @private
@@ -7150,25 +7438,56 @@ class AuroButton extends i$2 {
7150
7438
  return this.internals ? this.internals.form : null;
7151
7439
  }
7152
7440
 
7153
- render() {
7441
+ /**
7442
+ * @private
7443
+ * @returns {Boolean}
7444
+ */
7445
+ get hideText() {
7446
+ return ICON_ONLY_SHAPES.includes(this.shape);
7447
+ }
7448
+
7449
+ /**
7450
+ * Returns the current value of the projected `aria-label` attribute or undefined if not set.
7451
+ * @returns {string | undefined}
7452
+ * @private
7453
+ */
7454
+ get currentAriaLabel() {
7455
+ if (!this.attributeWatcher) return undefined;
7456
+
7457
+ const ariaLabel = this.attributeWatcher.getObservedAttribute("aria-label");
7458
+ return ariaLabel || undefined;
7459
+ }
7460
+
7461
+ /**
7462
+ * Returns the current value of the projected `aria-labelledby` attribute or undefined if not set.
7463
+ * @returns {string | undefined}
7464
+ * @private
7465
+ */
7466
+ get currentAriaLabelledBy() {
7467
+ if (!this.attributeWatcher) return undefined;
7468
+
7469
+ const ariaLabelledBy = this.attributeWatcher.getObservedAttribute("aria-labelledby");
7470
+ return ariaLabelledBy || undefined;
7471
+ }
7472
+
7473
+ /**
7474
+ * Renders the default layout for the button.
7475
+ * @returns {TemplateResult}
7476
+ * @private
7477
+ */
7478
+ renderLayoutDefault() {
7154
7479
  const classes = {
7155
- 'util_insetLg--squish': true,
7156
- 'auro-button': true,
7157
- 'auroButton': true,
7158
- 'auro-button--rounded': this.rounded,
7159
- 'auro-button--slim': this.slim,
7160
- 'auro-button--iconOnly': this.iconOnly,
7161
- 'auro-button--iconOnlySlim': this.iconOnly && this.slim,
7162
- 'loading': this.loading
7480
+ "util_insetLg--squish": true,
7481
+ "auro-button": true,
7482
+ wrapper: true,
7483
+ loading: this.loading,
7163
7484
  };
7164
7485
 
7165
7486
  return u$2`
7166
7487
  <button
7167
7488
  part="button"
7168
- aria-hidden="${o(this.ariahidden || undefined)}"
7169
- aria-label="${o(this.loading ? this.loadingText : this.arialabel || undefined)}"
7170
- aria-labelledby="${o(this.arialabelledby ? this.arialabelledby : undefined)}"
7171
- aria-expanded="${o(this.ariaexpanded)}"
7489
+ aria-label="${o(this.loading ? this.loadingText : this.currentAriaLabel || undefined)}"
7490
+ aria-labelledby="${o(this.loading ? undefined : this.currentAriaLabelledBy || undefined)}"
7172
7491
  tabIndex="${o(this.tIndex)}"
7173
7492
  ?autofocus="${this.autofocus}"
7174
7493
  class="${e(classes)}"
@@ -7185,7 +7504,7 @@ class AuroButton extends i$2 {
7185
7504
 
7186
7505
  <span class="contentWrapper">
7187
7506
  <span class="textSlot" part="text">
7188
- ${this.iconOnly ? undefined : u$2`<slot></slot>`}
7507
+ ${this.hideText ? undefined : u$2`<slot></slot>`}
7189
7508
  </span>
7190
7509
 
7191
7510
  <span part="icon">
@@ -7195,6 +7514,15 @@ class AuroButton extends i$2 {
7195
7514
  </button>
7196
7515
  `;
7197
7516
  }
7517
+
7518
+ /**
7519
+ * Renders the layout of the button
7520
+ * @returns {TemplateResult}
7521
+ * @private
7522
+ */
7523
+ renderLayout() {
7524
+ return this.renderLayoutDefault();
7525
+ }
7198
7526
  }
7199
7527
 
7200
7528
  var buttonVersion = '9.3.0';
@@ -7420,7 +7748,7 @@ class AuroInput extends BaseInput {
7420
7748
  /**
7421
7749
  * Generate unique names for dependency components.
7422
7750
  */
7423
- const versioning = new AuroDependencyVersioning$1();
7751
+ const versioning = new AuroDependencyVersioning();
7424
7752
 
7425
7753
  /**
7426
7754
  * @private
@@ -7541,7 +7869,7 @@ class AuroInput extends BaseInput {
7541
7869
  *
7542
7870
  */
7543
7871
  static register(name = "auro-input") {
7544
- AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroInput);
7872
+ AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroInput);
7545
7873
  }
7546
7874
 
7547
7875
  /**
@@ -7671,11 +7999,12 @@ class AuroInput extends BaseInput {
7671
7999
  ?onDark="${this.onDark}"
7672
8000
  aria-label="${i18n(this.lang, 'clearInput')}"
7673
8001
  class="notificationBtn clearBtn"
7674
- tabindex="-1"
7675
- variant="flat">
8002
+ shape="circle"
8003
+ size="sm"
8004
+ variant="ghost">
7676
8005
  <${this.iconTag}
8006
+ customColor="${this.onDark}"
7677
8007
  category="interface"
7678
- customColor
7679
8008
  name="x-lg"
7680
8009
  >
7681
8010
  </${this.iconTag}>
@@ -7695,20 +8024,21 @@ class AuroInput extends BaseInput {
7695
8024
  <${this.buttonTag}
7696
8025
  @click="${this.handleClickShowPassword}"
7697
8026
  ?onDark="${this.onDark}"
7698
- aria-hidden="true"
7699
8027
  class="notificationBtn passwordBtn"
7700
- tabindex="-1"
7701
- variant="flat">
8028
+ aria-label="${this.showPassword ? i18n(this.lang, "hidePassword") : i18n(this.lang, "showPassword")}"
8029
+ shape="circle"
8030
+ size="sm"
8031
+ variant="ghost">
7702
8032
  <${this.iconTag}
8033
+ customColor="${this.onDark}"
7703
8034
  ?hidden=${!this.showPassword}
7704
8035
  category="interface"
7705
- customColor
7706
8036
  name="hide-password-stroke">
7707
8037
  </${this.iconTag}>
7708
8038
  <${this.iconTag}
8039
+ customColor="${this.onDark}"
7709
8040
  ?hidden=${this.showPassword}
7710
8041
  category="interface"
7711
- customColor
7712
8042
  name="view-password-stroke">
7713
8043
  </${this.iconTag}>
7714
8044
  </${this.buttonTag}>