@aurodesignsystem/auro-formkit 2.2.1-beta.3 → 3.0.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.
- package/CHANGELOG.md +68 -0
- package/components/bibtemplate/dist/iconVersion.d.ts +1 -1
- package/components/bibtemplate/dist/index.js +18 -178
- package/components/bibtemplate/dist/registered.js +18 -178
- package/components/checkbox/README.md +1 -1
- package/components/checkbox/demo/api.html +2 -1
- package/components/checkbox/demo/api.md +129 -58
- package/components/checkbox/demo/api.min.js +41 -8
- package/components/checkbox/demo/index.html +2 -1
- package/components/checkbox/demo/index.md +116 -50
- package/components/checkbox/demo/index.min.js +41 -8
- package/components/checkbox/demo/readme.html +2 -1
- package/components/checkbox/demo/readme.md +1 -1
- package/components/checkbox/dist/auro-checkbox-group.d.ts +8 -0
- package/components/checkbox/dist/auro-checkbox.d.ts +8 -0
- package/components/checkbox/dist/index.js +41 -8
- package/components/checkbox/dist/registered.js +41 -8
- package/components/combobox/README.md +1 -1
- package/components/combobox/demo/api.html +2 -1
- package/components/combobox/demo/api.md +102 -1
- package/components/combobox/demo/api.min.js +238 -988
- package/components/combobox/demo/index.html +2 -4
- package/components/combobox/demo/index.md +32 -0
- package/components/combobox/demo/index.min.js +238 -988
- package/components/combobox/demo/readme.html +2 -1
- package/components/combobox/demo/readme.md +1 -1
- package/components/combobox/dist/auro-combobox.d.ts +8 -0
- package/components/combobox/dist/index.js +196 -786
- package/components/combobox/dist/registered.js +196 -786
- package/components/counter/README.md +1 -1
- package/components/counter/demo/api.html +2 -1
- package/components/counter/demo/api.md +29 -10
- package/components/counter/demo/api.min.js +187 -785
- package/components/counter/demo/index.html +2 -1
- package/components/counter/demo/index.md +104 -8
- package/components/counter/demo/index.min.js +187 -785
- package/components/counter/demo/readme.html +2 -1
- package/components/counter/demo/readme.md +1 -1
- package/components/counter/dist/auro-counter-group.d.ts +10 -2
- package/components/counter/dist/auro-counter.d.ts +1 -0
- package/components/counter/dist/iconVersion.d.ts +1 -1
- package/components/counter/dist/index.js +187 -785
- package/components/counter/dist/registered.js +187 -785
- package/components/datepicker/README.md +1 -1
- package/components/datepicker/demo/api.html +2 -4
- package/components/datepicker/demo/api.md +15 -14
- package/components/datepicker/demo/api.min.js +286 -1036
- package/components/datepicker/demo/index.html +2 -4
- package/components/datepicker/demo/index.md +38 -0
- package/components/datepicker/demo/index.min.js +286 -1036
- package/components/datepicker/demo/readme.html +2 -1
- package/components/datepicker/demo/readme.md +1 -1
- package/components/datepicker/dist/auro-datepicker.d.ts +8 -0
- package/components/datepicker/dist/index.js +286 -1036
- package/components/datepicker/dist/registered.js +286 -1036
- package/components/dropdown/README.md +1 -1
- package/components/dropdown/demo/api.html +2 -1
- package/components/dropdown/demo/api.md +173 -82
- package/components/dropdown/demo/api.min.js +41 -183
- package/components/dropdown/demo/index.html +2 -1
- package/components/dropdown/demo/index.md +86 -4
- package/components/dropdown/demo/index.min.js +41 -183
- package/components/dropdown/demo/readme.html +2 -1
- package/components/dropdown/demo/readme.md +1 -1
- package/components/dropdown/dist/auro-dropdown.d.ts +8 -0
- package/components/dropdown/dist/auro-dropdownBib.d.ts +2 -2
- package/components/dropdown/dist/index.js +41 -183
- package/components/dropdown/dist/registered.js +41 -183
- package/components/form/README.md +1 -1
- package/components/form/demo/api.html +2 -1
- package/components/form/demo/api.min.js +1 -1
- package/components/form/demo/index.html +2 -1
- package/components/form/demo/index.min.js +1 -1
- package/components/form/demo/readme.html +2 -1
- package/components/form/demo/readme.md +1 -1
- package/components/form/demo/working.html +2 -1
- package/components/form/dist/index.js +1 -1
- package/components/form/dist/registered.js +1 -1
- package/components/helptext/dist/auro-helptext.d.ts +8 -0
- package/components/helptext/dist/index.js +11 -2
- package/components/helptext/dist/registered.js +11 -2
- package/components/input/README.md +1 -1
- package/components/input/demo/api.html +2 -1
- package/components/input/demo/api.js +2 -0
- package/components/input/demo/api.md +108 -18
- package/components/input/demo/api.min.js +117 -402
- package/components/input/demo/index.html +2 -1
- package/components/input/demo/index.md +30 -0
- package/components/input/demo/index.min.js +103 -402
- package/components/input/demo/readme.html +2 -1
- package/components/input/demo/readme.md +1 -1
- package/components/input/dist/base-input.d.ts +8 -0
- package/components/input/dist/buttonVersion.d.ts +1 -1
- package/components/input/dist/iconVersion.d.ts +1 -1
- package/components/input/dist/index.js +103 -402
- package/components/input/dist/registered.js +103 -402
- package/components/menu/README.md +1 -1
- package/components/menu/demo/api.html +2 -1
- package/components/menu/demo/api.md +6 -2
- package/components/menu/demo/api.min.js +23 -183
- package/components/menu/demo/index.html +2 -1
- package/components/menu/demo/index.min.js +23 -183
- package/components/menu/demo/readme.html +2 -1
- package/components/menu/demo/readme.md +1 -1
- package/components/menu/dist/iconVersion.d.ts +1 -1
- package/components/menu/dist/index.js +23 -183
- package/components/menu/dist/registered.js +23 -183
- package/components/radio/README.md +1 -1
- package/components/radio/demo/api.html +2 -1
- package/components/radio/demo/api.md +160 -56
- package/components/radio/demo/api.min.js +35 -8
- package/components/radio/demo/index.html +2 -1
- package/components/radio/demo/index.md +43 -12
- package/components/radio/demo/index.min.js +35 -8
- package/components/radio/demo/readme.html +2 -1
- package/components/radio/demo/readme.md +1 -1
- package/components/radio/dist/auro-radio-group.d.ts +6 -0
- package/components/radio/dist/auro-radio.d.ts +6 -0
- package/components/radio/dist/index.js +35 -8
- package/components/radio/dist/registered.js +35 -8
- package/components/select/README.md +1 -1
- package/components/select/demo/api.html +2 -1
- package/components/select/demo/api.js +0 -2
- package/components/select/demo/api.md +112 -35
- package/components/select/demo/api.min.js +116 -589
- package/components/select/demo/index.html +2 -1
- package/components/select/demo/index.md +100 -0
- package/components/select/demo/index.min.js +116 -576
- package/components/select/demo/readme.html +2 -1
- package/components/select/demo/readme.md +1 -1
- package/components/select/dist/auro-select.d.ts +8 -0
- package/components/select/dist/index.js +91 -391
- package/components/select/dist/registered.js +91 -391
- package/package.json +23 -23
- package/components/counter/dist/styles/counter-button-tokens-css.d.ts +0 -2
- package/components/select/dist/styles/color-css.d.ts +0 -2
- package/components/select/dist/styles/tokens-css.d.ts +0 -2
|
@@ -63,7 +63,7 @@ const t$1=globalThis,e$3=t$1.ShadowRoot&&(void 0===t$1.ShadyCSS||t$1.ShadyCSS.na
|
|
|
63
63
|
|
|
64
64
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
65
65
|
|
|
66
|
-
let AuroLibraryRuntimeUtils$
|
|
66
|
+
let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
67
67
|
|
|
68
68
|
/* eslint-disable jsdoc/require-param */
|
|
69
69
|
|
|
@@ -2383,7 +2383,7 @@ const cacheFetch = (uri, options = {}) => {
|
|
|
2383
2383
|
return _fetchMap.get(uri);
|
|
2384
2384
|
};
|
|
2385
2385
|
|
|
2386
|
-
var styleCss$3 = i$3`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, 0.75rem))}:host{color:currentColor;vertical-align:middle;line-height:1;display:inline-block}
|
|
2386
|
+
var styleCss$3 = i$3`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, 0.75rem))}:host{color:currentColor;vertical-align:middle;line-height:1;display:inline-block}svg{min-width:var(--ds-auro-icon-size, 1.5rem) !important;width:var(--ds-auro-icon-size, 1.5rem) !important;height:var(--ds-auro-icon-size, 1.5rem) !important}.componentWrapper{display:flex}.svgWrapper{height:var(--ds-auro-icon-size);width:var(--ds-auro-icon-size)}.labelWrapper{margin-left:var(--ds-size-50, 0.25rem);line-height:1.8}`;
|
|
2387
2387
|
|
|
2388
2388
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
2389
2389
|
// See LICENSE in the project root for license information.
|
|
@@ -2391,7 +2391,6 @@ var styleCss$3 = i$3`:focus:not(:focus-visible){outline:3px solid transparent}.u
|
|
|
2391
2391
|
|
|
2392
2392
|
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
2393
2393
|
/**
|
|
2394
|
-
* @attr {Boolean} onDark - Set value for on-dark version of auro-icon
|
|
2395
2394
|
* @slot - Hidden from visibility, used for a11y if icon description is needed
|
|
2396
2395
|
*/
|
|
2397
2396
|
|
|
@@ -2406,6 +2405,10 @@ class BaseIcon extends AuroElement {
|
|
|
2406
2405
|
static get properties() {
|
|
2407
2406
|
return {
|
|
2408
2407
|
...super.properties,
|
|
2408
|
+
|
|
2409
|
+
/**
|
|
2410
|
+
* Set value for on-dark version of auro-icon.
|
|
2411
|
+
*/
|
|
2409
2412
|
onDark: {
|
|
2410
2413
|
type: Boolean,
|
|
2411
2414
|
reflect: true
|
|
@@ -2464,81 +2467,11 @@ class BaseIcon extends AuroElement {
|
|
|
2464
2467
|
}
|
|
2465
2468
|
}
|
|
2466
2469
|
|
|
2467
|
-
var tokensCss$2 = i$3`:host{--ds-auro-icon-color:var(--ds-color-
|
|
2468
|
-
|
|
2469
|
-
var colorCss$3 = i$3`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[accent]){--ds-auro-icon-color:var(--ds-color-icon-accent-default, #a2c270)}:host(:not([onDark])[disabled]){--ds-auro-icon-color:var(--ds-color-icon-ui-primary-disabled-default, #adadad)}:host(:not([onDark])[emphasis]){--ds-auro-icon-color:var(--ds-color-icon-emphasis-default, #2a2a2a)}:host(:not([onDark])[error]){--ds-auro-icon-color:var(--ds-color-icon-error-default, #cc1816)}:host(:not([onDark])[info]){--ds-auro-icon-color:var(--ds-color-icon-info-default, #326aa5)}:host(:not([onDark])[secondary]){--ds-auro-icon-color:var(--ds-color-icon-secondary-default, #7e8894)}:host(:not([onDark])[subtle]){--ds-auro-icon-color:var(--ds-color-icon-subtle-default, #a0c9f1)}:host(:not([onDark])[success]){--ds-auro-icon-color:var(--ds-color-icon-success-default, #40a080)}:host(:not([onDark])[tertiary]){--ds-auro-icon-color:var(--ds-color-icon-tertiary-default, #afb9c6)}:host(:not([onDark])[warning]){--ds-auro-icon-color:var(--ds-color-icon-warning-default, #c49432)}:host([onDark]){--ds-auro-icon-color:var(--ds-color-icon-primary-inverse, #f7f7f7)}:host([onDark][accent]){--ds-auro-icon-color:var(--ds-color-icon-accent-inverse, #badd81)}:host([onDark][disabled]){--ds-auro-icon-color:var(--ds-color-icon-ui-primary-disabled-inverse, #7e7e7e)}:host([onDark][emphasis]){--ds-auro-icon-color:var(--ds-color-icon-emphasis-inverse, #ffffff)}:host([onDark][error]){--ds-auro-icon-color:var(--ds-color-icon-error-inverse, #f9aca6)}:host([onDark][info]){--ds-auro-icon-color:var(--ds-color-icon-info-inverse, #89b2d4)}:host([onDark][secondary]){--ds-auro-icon-color:var(--ds-color-icon-secondary-inverse, #ccd2db)}:host([onDark][subtle]){--ds-auro-icon-color:var(--ds-color-icon-subtle-inverse, #326aa5)}:host([onDark][success]){--ds-auro-icon-color:var(--ds-color-icon-success-inverse, #8eceb9)}:host([onDark][tertiary]){--ds-auro-icon-color:var(--ds-color-icon-tertiary-inverse, #939fad)}:host([onDark][warning]){--ds-auro-icon-color:var(--ds-color-icon-warning-inverse, #f2c153)}`;
|
|
2470
|
-
|
|
2471
|
-
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
2472
|
-
// See LICENSE in the project root for license information.
|
|
2473
|
-
|
|
2474
|
-
// ---------------------------------------------------------------------
|
|
2475
|
-
|
|
2476
|
-
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
2477
|
-
|
|
2478
|
-
let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
2479
|
-
|
|
2480
|
-
/* eslint-disable jsdoc/require-param */
|
|
2481
|
-
|
|
2482
|
-
/**
|
|
2483
|
-
* This will register a new custom element with the browser.
|
|
2484
|
-
* @param {String} name - The name of the custom element.
|
|
2485
|
-
* @param {Object} componentClass - The class to register as a custom element.
|
|
2486
|
-
* @returns {void}
|
|
2487
|
-
*/
|
|
2488
|
-
registerComponent(name, componentClass) {
|
|
2489
|
-
if (!customElements.get(name)) {
|
|
2490
|
-
customElements.define(name, class extends componentClass {});
|
|
2491
|
-
}
|
|
2492
|
-
}
|
|
2493
|
-
|
|
2494
|
-
/**
|
|
2495
|
-
* Finds and returns the closest HTML Element based on a selector.
|
|
2496
|
-
* @returns {void}
|
|
2497
|
-
*/
|
|
2498
|
-
closestElement(
|
|
2499
|
-
selector, // selector like in .closest()
|
|
2500
|
-
base = this, // extra functionality to skip a parent
|
|
2501
|
-
__Closest = (el, found = el && el.closest(selector)) =>
|
|
2502
|
-
!el || el === document || el === window
|
|
2503
|
-
? null // standard .closest() returns null for non-found selectors also
|
|
2504
|
-
: found
|
|
2505
|
-
? found // found a selector INside this element
|
|
2506
|
-
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
2507
|
-
) {
|
|
2508
|
-
return __Closest(base);
|
|
2509
|
-
}
|
|
2510
|
-
/* eslint-enable jsdoc/require-param */
|
|
2511
|
-
|
|
2512
|
-
/**
|
|
2513
|
-
* 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.
|
|
2514
|
-
* @param {Object} elem - The element to check.
|
|
2515
|
-
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
2516
|
-
* @returns {void}
|
|
2517
|
-
*/
|
|
2518
|
-
handleComponentTagRename(elem, tagName) {
|
|
2519
|
-
const tag = tagName.toLowerCase();
|
|
2520
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
2521
|
-
|
|
2522
|
-
if (elemTag !== tag) {
|
|
2523
|
-
elem.setAttribute(tag, true);
|
|
2524
|
-
}
|
|
2525
|
-
}
|
|
2526
|
-
|
|
2527
|
-
/**
|
|
2528
|
-
* Validates if an element is a specific Auro component.
|
|
2529
|
-
* @param {Object} elem - The element to validate.
|
|
2530
|
-
* @param {String} tagName - The name of the Auro component to check against.
|
|
2531
|
-
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
2532
|
-
*/
|
|
2533
|
-
elementMatch(elem, tagName) {
|
|
2534
|
-
const tag = tagName.toLowerCase();
|
|
2535
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
2470
|
+
var tokensCss$2 = i$3`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-alaska-color:#02426D;--ds-auro-icon-size:var(--ds-size-300, 1.5rem)}`;
|
|
2536
2471
|
|
|
2537
|
-
|
|
2538
|
-
}
|
|
2539
|
-
};
|
|
2472
|
+
var colorCss$3 = i$3`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]){--ds-auro-icon-color:var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]){--ds-auro-icon-color:var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]){--ds-auro-icon-color:var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]){--ds-auro-icon-color:var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]){--ds-auro-icon-color:var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]){--ds-auro-icon-color:var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]){--ds-auro-icon-color:var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]){--ds-auro-icon-color:var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=fareOneWorldEmerald]){--ds-auro-icon-color:var(--ds-basic-color-fare-oneworld-emerald, #139142)}:host(:not([onDark])[variant=fareOneWorldSapphire]){--ds-auro-icon-color:var(--ds-basic-color-fare-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=fareOneWorldRuby]){--ds-auro-icon-color:var(--ds-basic-color-fare-oneworld-ruby, #a41d4a)}:host([onDark]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}`;
|
|
2540
2473
|
|
|
2541
|
-
// Copyright (c)
|
|
2474
|
+
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
2542
2475
|
// See LICENSE in the project root for license information.
|
|
2543
2476
|
|
|
2544
2477
|
|
|
@@ -2546,6 +2479,7 @@ class AuroIcon extends BaseIcon {
|
|
|
2546
2479
|
constructor() {
|
|
2547
2480
|
super();
|
|
2548
2481
|
|
|
2482
|
+
this.variant = undefined;
|
|
2549
2483
|
this.privateDefaults();
|
|
2550
2484
|
}
|
|
2551
2485
|
|
|
@@ -2555,20 +2489,6 @@ class AuroIcon extends BaseIcon {
|
|
|
2555
2489
|
* @returns {void}
|
|
2556
2490
|
*/
|
|
2557
2491
|
privateDefaults() {
|
|
2558
|
-
this.accent = false;
|
|
2559
|
-
this.customColor = false;
|
|
2560
|
-
this.customSvg = false;
|
|
2561
|
-
this.disabled = false;
|
|
2562
|
-
this.emphasis = false;
|
|
2563
|
-
this.error = false;
|
|
2564
|
-
this.info = false;
|
|
2565
|
-
this.label = false;
|
|
2566
|
-
this.primary = false;
|
|
2567
|
-
this.secondary = false;
|
|
2568
|
-
this.subtle = false;
|
|
2569
|
-
this.success = false;
|
|
2570
|
-
this.tertiary = false;
|
|
2571
|
-
this.warning = false;
|
|
2572
2492
|
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
2573
2493
|
this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
|
|
2574
2494
|
}
|
|
@@ -2578,14 +2498,6 @@ class AuroIcon extends BaseIcon {
|
|
|
2578
2498
|
return {
|
|
2579
2499
|
...super.properties,
|
|
2580
2500
|
|
|
2581
|
-
/**
|
|
2582
|
-
* Sets the icon to use the accent style.
|
|
2583
|
-
*/
|
|
2584
|
-
accent: {
|
|
2585
|
-
type: Boolean,
|
|
2586
|
-
reflect: true
|
|
2587
|
-
},
|
|
2588
|
-
|
|
2589
2501
|
/**
|
|
2590
2502
|
* Set aria-hidden value. Default is `true`. Option is `false`.
|
|
2591
2503
|
*/
|
|
@@ -2616,38 +2528,6 @@ class AuroIcon extends BaseIcon {
|
|
|
2616
2528
|
type: Boolean
|
|
2617
2529
|
},
|
|
2618
2530
|
|
|
2619
|
-
/**
|
|
2620
|
-
* Sets the icon to use the disabled style.
|
|
2621
|
-
*/
|
|
2622
|
-
disabled: {
|
|
2623
|
-
type: Boolean,
|
|
2624
|
-
reflect: true
|
|
2625
|
-
},
|
|
2626
|
-
|
|
2627
|
-
/**
|
|
2628
|
-
* Sets the icon to use the emphasis style.
|
|
2629
|
-
*/
|
|
2630
|
-
emphasis: {
|
|
2631
|
-
type: Boolean,
|
|
2632
|
-
reflect: true
|
|
2633
|
-
},
|
|
2634
|
-
|
|
2635
|
-
/**
|
|
2636
|
-
* Sets the icon to use the error style.
|
|
2637
|
-
*/
|
|
2638
|
-
error: {
|
|
2639
|
-
type: Boolean,
|
|
2640
|
-
reflect: true
|
|
2641
|
-
},
|
|
2642
|
-
|
|
2643
|
-
/**
|
|
2644
|
-
* Sets the icon to use the info style.
|
|
2645
|
-
*/
|
|
2646
|
-
info: {
|
|
2647
|
-
type: Boolean,
|
|
2648
|
-
reflect: true
|
|
2649
|
-
},
|
|
2650
|
-
|
|
2651
2531
|
/**
|
|
2652
2532
|
* Exposes content in slot as icon label.
|
|
2653
2533
|
*/
|
|
@@ -2665,50 +2545,10 @@ class AuroIcon extends BaseIcon {
|
|
|
2665
2545
|
},
|
|
2666
2546
|
|
|
2667
2547
|
/**
|
|
2668
|
-
*
|
|
2548
|
+
* The style of the icon. The accepted variants are `accent1`, `disabled`, `muted`, `statusDefault`, `statusInfo`, `statusSuccess`, `statusWarning`, `statusError`, `statusInfoSubtle`, `statusSuccessSubtle`, `statusWarningSubtle`, `statusErrorSubtle`, `fareBasicEconomy`, `fareBusiness`, `fareEconomy`, `fareFirst`, `farePremiumEconomy`, `fareOneWorldEmerald`, `fareOneWorldSapphire`, `fareOneWorldRuby`.
|
|
2669
2549
|
*/
|
|
2670
|
-
|
|
2671
|
-
type:
|
|
2672
|
-
reflect: true
|
|
2673
|
-
},
|
|
2674
|
-
|
|
2675
|
-
/**
|
|
2676
|
-
* Sets the icon to use the secondary style.
|
|
2677
|
-
*/
|
|
2678
|
-
secondary: {
|
|
2679
|
-
type: Boolean,
|
|
2680
|
-
reflect: true
|
|
2681
|
-
},
|
|
2682
|
-
|
|
2683
|
-
/**
|
|
2684
|
-
* Sets the icon to use the subtle style.
|
|
2685
|
-
*/
|
|
2686
|
-
subtle: {
|
|
2687
|
-
type: Boolean,
|
|
2688
|
-
reflect: true
|
|
2689
|
-
},
|
|
2690
|
-
|
|
2691
|
-
/**
|
|
2692
|
-
* Sets the icon to use the success style.
|
|
2693
|
-
*/
|
|
2694
|
-
success: {
|
|
2695
|
-
type: Boolean,
|
|
2696
|
-
reflect: true
|
|
2697
|
-
},
|
|
2698
|
-
|
|
2699
|
-
/**
|
|
2700
|
-
* Sets the icon to use the tertiary style.
|
|
2701
|
-
*/
|
|
2702
|
-
tertiary: {
|
|
2703
|
-
type: Boolean,
|
|
2704
|
-
reflect: true
|
|
2705
|
-
},
|
|
2706
|
-
|
|
2707
|
-
/**
|
|
2708
|
-
* Sets the icon to use the warning style.
|
|
2709
|
-
*/
|
|
2710
|
-
warning: {
|
|
2711
|
-
type: Boolean,
|
|
2550
|
+
variant: {
|
|
2551
|
+
type: String,
|
|
2712
2552
|
reflect: true
|
|
2713
2553
|
}
|
|
2714
2554
|
};
|
|
@@ -2804,7 +2644,7 @@ var styleCss$2 = i$3`:host{position:absolute;z-index:var(--depth-tooltip, 400);d
|
|
|
2804
2644
|
|
|
2805
2645
|
var colorCss$2 = i$3`.container{background-color:var(--ds-auro-dropdownbib-container-color);box-shadow:var(--ds-auro-dropdownbib-boxshadow-color);color:var(--ds-auro-dropdownbib-text-color)}`;
|
|
2806
2646
|
|
|
2807
|
-
var tokensCss$1 = i$3`:host{--ds-auro-dropdown-label-text-color: var(--ds-
|
|
2647
|
+
var tokensCss$1 = i$3`:host{--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-dropdown-trigger-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdown-trigger-border-color: transparent;--ds-auro-dropdown-trigger-outline-color: transparent;--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-dropdownbib-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdownbib-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}`;
|
|
2808
2648
|
|
|
2809
2649
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
2810
2650
|
// See LICENSE in the project root for license information.
|
|
@@ -2834,7 +2674,7 @@ class AuroDropdownBib extends r {
|
|
|
2834
2674
|
*/
|
|
2835
2675
|
this._mobileBreakpointValue = undefined;
|
|
2836
2676
|
|
|
2837
|
-
AuroLibraryRuntimeUtils$
|
|
2677
|
+
AuroLibraryRuntimeUtils$1.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
|
|
2838
2678
|
}
|
|
2839
2679
|
|
|
2840
2680
|
static get styles() {
|
|
@@ -2927,13 +2767,13 @@ var dropdownVersion = '3.0.0';
|
|
|
2927
2767
|
|
|
2928
2768
|
var styleCss$1 = i$3`:host{position:relative;display:inline-block;max-width:100%}:host([fluid]){display:block}#bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}.label{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem);transition:font-size .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:normal}.label[hasTrigger=false]{font-size:var(--ds-text-body-size-default, 1rem)}.trigger{position:relative;display:flex;align-items:center}.trigger[showBorder]{border-width:1px;border-style:solid;cursor:pointer;outline-style:solid;outline-width:1px}@media(hover: hover){.trigger:hover{cursor:pointer}}.triggerContentWrapper{overflow:hidden;flex:1;text-overflow:ellipsis;white-space:nowrap}#showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;margin-left:var(--ds-size-100, 0.5rem)}#showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem);line-height:var(--ds-size-300, 1.5rem)}#showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}:host([matchwidth]) #bibSizer{width:100%}:host([disabled]){pointer-events:none}:host([inset]) .trigger{padding:var(--ds-size-150, 0.75rem) var(--ds-size-200, 1rem)}:host([common]) .trigger,:host([inset][bordered]) .trigger{padding:var(--ds-size-200, 1rem) var(--ds-size-150, 0.75rem)}:host([inset][bordered][labeled]) .trigger{padding:var(--ds-size-100, 0.5rem) var(--ds-size-150, 0.75rem)}:host([common]) .trigger,:host([rounded]) .trigger{border-radius:var(--ds-border-radius, 0.375rem)}`;
|
|
2929
2769
|
|
|
2930
|
-
var colorCss$1 = i$3`.label{color:var(--ds-auro-dropdown-label-text-color)}.trigger{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-container-color);color:var(--ds-auro-dropdown-trigger-text-color);outline-color:var(--ds-auro-dropdown-trigger-outline-color)}.trigger:focus-within,.trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-color-
|
|
2770
|
+
var colorCss$1 = i$3`.label{color:var(--ds-auro-dropdown-label-text-color)}.trigger{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-container-color);color:var(--ds-auro-dropdown-trigger-text-color);outline-color:var(--ds-auro-dropdown-trigger-outline-color)}.trigger:focus-within,.trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused, #01426a)}:host([disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host([common]),:host([bordered]){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-bold, #585e67)}:host([common]) .trigger:active,:host([common]) .trigger:focus-within,:host([bordered]) .trigger:active,:host([bordered]) .trigger:focus-within{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused, #01426a)}:host([error]){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([error]) .trigger{outline:solid 1px var(--ds-auro-dropdown-trigger-border-color)}:host([error]) .trigger:focus-within,:host([error]) .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused, #01426a)}:host([disabled][common]),:host([disabled][bordered]){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host([onDark]){--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db);--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark]):focus-within,:host([onDark]):active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([onDark][disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][common]),:host([onDark][bordered]){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-inverse, #ffffff)}:host([onDark][common]) .trigger:focus-within,:host([onDark][common]) .trigger:active,:host([onDark][bordered]) .trigger:focus-within,:host([onDark][bordered]) .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([onDark][error]){--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}:host([onDark][error]) .trigger{outline:solid 1px var(--ds-auro-dropdown-trigger-border-color)}:host([onDark][error]) .trigger:focus-within,:host([onDark][error]) .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([onDark][disabled][common]),:host([onDark][disabled][bordered]){--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse-disabled, rgba(255, 255, 255, 0.1))}`;
|
|
2931
2771
|
|
|
2932
|
-
var colorCss = i$3`:host([error]){--ds-auro-helptext-color: var(--ds-color-
|
|
2772
|
+
var colorCss = i$3`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]){--ds-auro-helptext-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
2933
2773
|
|
|
2934
2774
|
var styleCss = i$3`.helptext-wrapper{display:none;font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-size-200, 1rem)}:host([large]) .helptext-wrapper{font-size:var(--ds-text-body-size-default, 1rem)}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
|
|
2935
2775
|
|
|
2936
|
-
var tokensCss = i$3`:host{--ds-auro-helptext-color: var(--ds-color-
|
|
2776
|
+
var tokensCss = i$3`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
|
|
2937
2777
|
|
|
2938
2778
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
2939
2779
|
// See LICENSE in the project root for license information.
|
|
@@ -3020,6 +2860,7 @@ class AuroHelpText extends r {
|
|
|
3020
2860
|
super();
|
|
3021
2861
|
|
|
3022
2862
|
this.error = false;
|
|
2863
|
+
this.onDark = false;
|
|
3023
2864
|
this.hasTextContent = false;
|
|
3024
2865
|
|
|
3025
2866
|
AuroLibraryRuntimeUtils.prototype.handleComponentTagRename(this, 'auro-helptext');
|
|
@@ -3058,6 +2899,14 @@ class AuroHelpText extends r {
|
|
|
3058
2899
|
type: Boolean,
|
|
3059
2900
|
reflect: true,
|
|
3060
2901
|
},
|
|
2902
|
+
|
|
2903
|
+
/**
|
|
2904
|
+
* If declared, will apply onDark styles.
|
|
2905
|
+
*/
|
|
2906
|
+
onDark: {
|
|
2907
|
+
type: Boolean,
|
|
2908
|
+
reflect: true
|
|
2909
|
+
}
|
|
3061
2910
|
};
|
|
3062
2911
|
}
|
|
3063
2912
|
|
|
@@ -3189,6 +3038,7 @@ class AuroDropdown extends r {
|
|
|
3189
3038
|
this.tabIndex = 0;
|
|
3190
3039
|
this.noToggle = false;
|
|
3191
3040
|
this.labeled = true;
|
|
3041
|
+
this.onDark = false;
|
|
3192
3042
|
|
|
3193
3043
|
// floaterConfig
|
|
3194
3044
|
this.placement = 'bottom-start';
|
|
@@ -3209,7 +3059,7 @@ class AuroDropdown extends r {
|
|
|
3209
3059
|
/**
|
|
3210
3060
|
* @private
|
|
3211
3061
|
*/
|
|
3212
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
3062
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
|
|
3213
3063
|
|
|
3214
3064
|
/**
|
|
3215
3065
|
* @private
|
|
@@ -3445,6 +3295,14 @@ class AuroDropdown extends r {
|
|
|
3445
3295
|
reflect: true
|
|
3446
3296
|
},
|
|
3447
3297
|
|
|
3298
|
+
/**
|
|
3299
|
+
* If declared, onDark styles will be applied.
|
|
3300
|
+
*/
|
|
3301
|
+
onDark: {
|
|
3302
|
+
type: Boolean,
|
|
3303
|
+
reflect: true
|
|
3304
|
+
},
|
|
3305
|
+
|
|
3448
3306
|
onSlotChange: {
|
|
3449
3307
|
type: Function,
|
|
3450
3308
|
reflect: false
|
|
@@ -3498,7 +3356,7 @@ class AuroDropdown extends r {
|
|
|
3498
3356
|
*
|
|
3499
3357
|
*/
|
|
3500
3358
|
static register(name = "auro-dropdown") {
|
|
3501
|
-
AuroLibraryRuntimeUtils$
|
|
3359
|
+
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroDropdown);
|
|
3502
3360
|
}
|
|
3503
3361
|
|
|
3504
3362
|
connectedCallback() {
|
|
@@ -3815,14 +3673,14 @@ class AuroDropdown extends r {
|
|
|
3815
3673
|
<${this.iconTag}
|
|
3816
3674
|
category="interface"
|
|
3817
3675
|
name="chevron-down"
|
|
3818
|
-
|
|
3819
|
-
|
|
3676
|
+
?onDark="${this.onDark}"
|
|
3677
|
+
variant="${this.disabled ? 'disabled' : 'muted'}">
|
|
3820
3678
|
>
|
|
3821
3679
|
</${this.iconTag}>
|
|
3822
3680
|
</div>
|
|
3823
3681
|
` : undefined }
|
|
3824
3682
|
</div>
|
|
3825
|
-
<${this.helpTextTag} part="helpText" ?error="${this.error}">
|
|
3683
|
+
<${this.helpTextTag} part="helpText" ?onDark=${this.onDark} ?error="${this.error}">
|
|
3826
3684
|
<slot name="helpText"></slot>
|
|
3827
3685
|
</${this.helpTextTag}>
|
|
3828
3686
|
<div class="slotContent">
|
|
@@ -22,7 +22,8 @@
|
|
|
22
22
|
type="text/css"
|
|
23
23
|
href="https://cdn.jsdelivr.net/npm/prismjs@1.24.1/themes/prism.css"
|
|
24
24
|
/>
|
|
25
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/
|
|
25
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/auro-classic/CSSCustomProperties.css">
|
|
26
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/alaska/CSSCustomProperties--alaska.css">
|
|
26
27
|
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/demoWrapper.css" />
|
|
27
28
|
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/elementDemoStyles.css" />
|
|
28
29
|
</head>
|
|
@@ -59,7 +59,27 @@ This first common example uses the default `auro-dropdown` element with the attr
|
|
|
59
59
|
</div>
|
|
60
60
|
</auro-dropdown>
|
|
61
61
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
62
|
-
</div>
|
|
62
|
+
</div>
|
|
63
|
+
<div class="exampleWrapper--ondark" aria-hidden>
|
|
64
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkCommon.html) -->
|
|
65
|
+
<!-- The below content is automatically added from ./../apiExamples/onDarkCommon.html -->
|
|
66
|
+
<auro-dropdown onDark common id="commonOnDark" aria-label="Label content for screen reader">
|
|
67
|
+
<div style="padding: var(--ds-size-150);">
|
|
68
|
+
Lorem ipsum solar
|
|
69
|
+
<br />
|
|
70
|
+
<auro-button onclick="document.querySelector('#commonOnDark').hide()">
|
|
71
|
+
Dismiss Dropdown
|
|
72
|
+
</auro-button>
|
|
73
|
+
</div>
|
|
74
|
+
<span slot="helpText">
|
|
75
|
+
Help text
|
|
76
|
+
</span>
|
|
77
|
+
<div slot="trigger">
|
|
78
|
+
Trigger
|
|
79
|
+
</div>
|
|
80
|
+
</auro-dropdown>
|
|
81
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
82
|
+
</div>
|
|
63
83
|
<auro-accordion alignRight>
|
|
64
84
|
<span slot="trigger">See code</span>
|
|
65
85
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/common.html) -->
|
|
@@ -83,6 +103,24 @@ This first common example uses the default `auro-dropdown` element with the attr
|
|
|
83
103
|
</auro-dropdown>
|
|
84
104
|
```
|
|
85
105
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
106
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkCommon.html) -->
|
|
107
|
+
<!-- The below content is automatically added from ./../apiExamples/onDarkCommon.html -->
|
|
108
|
+
<auro-dropdown onDark common id="commonOnDark" aria-label="Label content for screen reader">
|
|
109
|
+
<div style="padding: var(--ds-size-150);">
|
|
110
|
+
Lorem ipsum solar
|
|
111
|
+
<br />
|
|
112
|
+
<auro-button onclick="document.querySelector('#commonOnDark').hide()">
|
|
113
|
+
Dismiss Dropdown
|
|
114
|
+
</auro-button>
|
|
115
|
+
</div>
|
|
116
|
+
<span slot="helpText">
|
|
117
|
+
Help text
|
|
118
|
+
</span>
|
|
119
|
+
<div slot="trigger">
|
|
120
|
+
Trigger
|
|
121
|
+
</div>
|
|
122
|
+
</auro-dropdown>
|
|
123
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
86
124
|
</auro-accordion>
|
|
87
125
|
|
|
88
126
|
## Common use using the label content slot
|
|
@@ -92,7 +130,7 @@ This common example uses the default `auro-dropdown` element with the attributes
|
|
|
92
130
|
<div class="exampleWrapper">
|
|
93
131
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/commonSlot.html) -->
|
|
94
132
|
<!-- The below content is automatically added from ./../apiExamples/commonSlot.html -->
|
|
95
|
-
<auro-dropdown id="commonSlot"
|
|
133
|
+
<auro-dropdown id="commonSlot" common>
|
|
96
134
|
<div style="padding: var(--ds-size-150);">
|
|
97
135
|
Lorem ipsum solar
|
|
98
136
|
<br />
|
|
@@ -111,14 +149,37 @@ This common example uses the default `auro-dropdown` element with the attributes
|
|
|
111
149
|
</div>
|
|
112
150
|
</auro-dropdown>
|
|
113
151
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
114
|
-
</div>
|
|
152
|
+
</div>
|
|
153
|
+
<div class="exampleWrapper--ondark" aria-hidden>
|
|
154
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkCommonSlot.html) -->
|
|
155
|
+
<!-- The below content is automatically added from ./../apiExamples/onDarkCommonSlot.html -->
|
|
156
|
+
<auro-dropdown onDark common id="commonSlotOnDark">
|
|
157
|
+
<div style="padding: var(--ds-size-150);">
|
|
158
|
+
Lorem ipsum solar
|
|
159
|
+
<br />
|
|
160
|
+
<auro-button onclick="document.querySelector('#commonSlotOnDark').hide()">
|
|
161
|
+
Dismiss Dropdown
|
|
162
|
+
</auro-button>
|
|
163
|
+
</div>
|
|
164
|
+
<span slot="helpText">
|
|
165
|
+
Help text
|
|
166
|
+
</span>
|
|
167
|
+
<span slot="label">
|
|
168
|
+
Element label (default text will be read by screen reader)
|
|
169
|
+
</span>
|
|
170
|
+
<div slot="trigger">
|
|
171
|
+
Trigger
|
|
172
|
+
</div>
|
|
173
|
+
</auro-dropdown>
|
|
174
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
175
|
+
</div>
|
|
115
176
|
<auro-accordion alignRight>
|
|
116
177
|
<span slot="trigger">See code</span>
|
|
117
178
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/commonSlot.html) -->
|
|
118
179
|
<!-- The below code snippet is automatically added from ./../apiExamples/commonSlot.html -->
|
|
119
180
|
|
|
120
181
|
```html
|
|
121
|
-
<auro-dropdown id="commonSlot"
|
|
182
|
+
<auro-dropdown id="commonSlot" common>
|
|
122
183
|
<div style="padding: var(--ds-size-150);">
|
|
123
184
|
Lorem ipsum solar
|
|
124
185
|
<br />
|
|
@@ -138,6 +199,27 @@ This common example uses the default `auro-dropdown` element with the attributes
|
|
|
138
199
|
</auro-dropdown>
|
|
139
200
|
```
|
|
140
201
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
202
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkCommonSlot.html) -->
|
|
203
|
+
<!-- The below content is automatically added from ./../apiExamples/onDarkCommonSlot.html -->
|
|
204
|
+
<auro-dropdown onDark common id="commonSlotOnDark">
|
|
205
|
+
<div style="padding: var(--ds-size-150);">
|
|
206
|
+
Lorem ipsum solar
|
|
207
|
+
<br />
|
|
208
|
+
<auro-button onclick="document.querySelector('#commonSlotOnDark').hide()">
|
|
209
|
+
Dismiss Dropdown
|
|
210
|
+
</auro-button>
|
|
211
|
+
</div>
|
|
212
|
+
<span slot="helpText">
|
|
213
|
+
Help text
|
|
214
|
+
</span>
|
|
215
|
+
<span slot="label">
|
|
216
|
+
Element label (default text will be read by screen reader)
|
|
217
|
+
</span>
|
|
218
|
+
<div slot="trigger">
|
|
219
|
+
Trigger
|
|
220
|
+
</div>
|
|
221
|
+
</auro-dropdown>
|
|
222
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
141
223
|
</auro-accordion>
|
|
142
224
|
|
|
143
225
|
## Common use with popover content wider than the trigger
|