@aurodesignsystem-dev/auro-card 0.0.0-pr136.1 → 0.0.0-pr139.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.
@@ -319,22 +319,15 @@ var styleCss = i$5`:focus:not(:focus-visible){outline:3px solid transparent}:hos
319
319
  var tokensCss = i$5`:host{--ds-auro-card-border-color: transparent;--ds-auro-card-background-color: transparent;--ds-auro-card-texticon-color: inherit}
320
320
  `;
321
321
 
322
- // Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
322
+ // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
323
323
  // See LICENSE in the project root for license information.
324
324
 
325
325
 
326
326
  // See https://git.io/JJ6SJ for "How to document your components using JSDoc"
327
327
  /**
328
328
  * The `<auro-card>` element provides users a flexible way to convey a summary of information.
329
+ * @customElement auro-card
329
330
  *
330
- * @attr {String} variant - Sets the variant of the card. Options `inset-content`, `inset-container`, `inset-stretch`.
331
- * @attr {Boolean} border - Adds desired UI border to the `auro-card` element.
332
- * @attr {Boolean} center - Centers content within the scope of the `auro-card`.
333
- * @attr {String} href - Sets the card to function as a hyperlink to the provided href value & disables the default CTA slot.
334
- * @attr {String} rel - Sets rel attribute on the [auro-hyperlink](https://auro.alaskaair.com/components/auro/hyperlink/api#rel).
335
- * @attr {Boolean} relative - If true, the auto URL re-write feature will be disabled.https://auro.alaskaair.com/components/auro/hyperlink/api#relative
336
- * @attr {String} role - Sets role attribute on the [auro-hyperlink](https://auro.alaskaair.com/components/auro/hyperlink/api#role).
337
- * @attr {String} target - Sets target attribute on the [auro-hyperlink](https://auro.alaskaair.com/components/auro/hyperlink/api#target).
338
331
  * @slot image - Content slot for image content.
339
332
  * @slot header - Content slot for string text header content.
340
333
  * @slot description - Content slot for string text description content.
@@ -352,6 +345,10 @@ class AuroCard extends i$2 {
352
345
  constructor() {
353
346
  super();
354
347
 
348
+ this._initializeDefaults();
349
+ }
350
+
351
+ _initializeDefaults() {
355
352
  /**
356
353
  * @private
357
354
  */
@@ -376,11 +373,19 @@ class AuroCard extends i$2 {
376
373
  static get properties() {
377
374
  return {
378
375
  /**
379
- * Sets the variant of the card. Options `inset-content`, `inset-container`, `inset-stretch`.
376
+ * Adds desired UI border to the `auro-card` element.
380
377
  */
381
- variant: {
382
- type: String,
383
- reflect: true,
378
+ border: {
379
+ type: Boolean,
380
+ reflect: true
381
+ },
382
+
383
+ /**
384
+ * Centers content within the scope of the `auro-card`.
385
+ */
386
+ center: {
387
+ type: Boolean,
388
+ reflect: true
384
389
  },
385
390
 
386
391
  /**
@@ -388,7 +393,7 @@ class AuroCard extends i$2 {
388
393
  */
389
394
  href: {
390
395
  type: String,
391
- reflect: true,
396
+ reflect: true
392
397
  },
393
398
 
394
399
  /**
@@ -396,15 +401,15 @@ class AuroCard extends i$2 {
396
401
  */
397
402
  rel: {
398
403
  type: String,
399
- reflect: true,
404
+ reflect: true
400
405
  },
401
406
 
402
407
  /**
403
- * If true, the auto URL re-write feature will be disabled. [see here for hyperlink relative](https://auro.alaskaair.com/components/auro/hyperlink/api#relative)
408
+ * If true, the auto URL re-write feature will be disabled. [See here for info about hyperlink relative attribute](https://auro.alaskaair.com/components/auro/hyperlink/api#relative).
404
409
  */
405
410
  relative: {
406
411
  type: Boolean,
407
- reflect: true,
412
+ reflect: true
408
413
  },
409
414
 
410
415
  /**
@@ -412,7 +417,7 @@ class AuroCard extends i$2 {
412
417
  */
413
418
  role: {
414
419
  type: String,
415
- reflect: true,
420
+ reflect: true
416
421
  },
417
422
 
418
423
  /**
@@ -420,14 +425,23 @@ class AuroCard extends i$2 {
420
425
  */
421
426
  target: {
422
427
  type: String,
423
- reflect: true,
428
+ reflect: true
424
429
  },
430
+
431
+ /**
432
+ * Sets the variant of the card.
433
+ * @type {'inset-content' | 'inset-container' | 'inset-stretch'}
434
+ */
435
+ variant: {
436
+ type: String,
437
+ reflect: true
438
+ }
425
439
  };
426
440
  }
427
441
 
428
442
  /**
429
443
  * This will register this element with the browser.
430
- * @param {string} [name="auro-card"] - The name of element that you want to register to.
444
+ * @param {string} [name="auro-card"] - The name of the element that you want to register.
431
445
  *
432
446
  * @example
433
447
  * AuroCard.register("custom-card") // this will register this element to <custom-card/>
package/demo/index.html CHANGED
@@ -51,10 +51,10 @@
51
51
  <script type="module" data-demo-script="true" src="./index.min.js"></script>
52
52
 
53
53
  <!-- If additional elements are needed for the demo, add them here. -->
54
- <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-accordion@latest/dist/auro-accordion__bundled.js" type="module"></script>
55
- <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-header@latest/dist/auro-header__bundled.js" type="module"></script>
56
- <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-avatar@latest/dist/auro-avatar__bundled.js" type="module"></script>
57
- <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-hyperlink@latest/dist/auro-hyperlink__bundled.js" type="module"></script>
58
- <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-icon@latest/dist/auro-icon__bundled.js" type="module"></script>
54
+ <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-accordion@latest/+esm" type="module"></script>
55
+ <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-header@latest/+esm" type="module"></script>
56
+ <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-avatar@latest/+esm" type="module"></script>
57
+ <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-hyperlink@latest/+esm" type="module"></script>
58
+ <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-icon@latest/+esm" type="module"></script>
59
59
  </body>
60
60
  </html>