@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
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,73 @@
|
|
|
1
1
|
# Semantic Release Automated Changelog
|
|
2
2
|
|
|
3
|
+
# [3.0.0](https://github.com/AlaskaAirlines/auro-formkit/compare/v2.2.1...v3.0.0) (2025-04-29)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* address focus border issue in input components ([a3dd710](https://github.com/AlaskaAirlines/auro-formkit/commit/a3dd7104e23a969b6526308079f8e2300627e19a))
|
|
9
|
+
* address incorrect names for combobox tags ([5047d45](https://github.com/AlaskaAirlines/auro-formkit/commit/5047d452f568229e099fa2799054ff01ef7cac5f))
|
|
10
|
+
* make input height correct size ([623ab34](https://github.com/AlaskaAirlines/auro-formkit/commit/623ab346f6a9433f4c5bed0ee514f52721a23559))
|
|
11
|
+
* update improper fallback reference ([5258046](https://github.com/AlaskaAirlines/auro-formkit/commit/525804665ce1e89a5211c245480ff6cfa02662cd))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* add on dark support for checkbox ([b452aa1](https://github.com/AlaskaAirlines/auro-formkit/commit/b452aa1aaa8dcbaf3fdbbadf86222a48164c4826))
|
|
17
|
+
* add on dark support for combobox ([b097007](https://github.com/AlaskaAirlines/auro-formkit/commit/b097007a09a751c834e58063a332f053665aa478))
|
|
18
|
+
* add on dark support for counter ([f6217bb](https://github.com/AlaskaAirlines/auro-formkit/commit/f6217bbc7527e15aa9ddeb94fd10bc4c03949053))
|
|
19
|
+
* add on dark support for datepicker ([bd7ff92](https://github.com/AlaskaAirlines/auro-formkit/commit/bd7ff920400157de5477799134d1bd084f3eb7aa))
|
|
20
|
+
* add on dark support for dropdown ([8cb4012](https://github.com/AlaskaAirlines/auro-formkit/commit/8cb40121b4ec02d23e368960f52a5fe5cf4b123e))
|
|
21
|
+
* add on dark support for helptext component ([ab35af7](https://github.com/AlaskaAirlines/auro-formkit/commit/ab35af7f7f04586c056d30cb99184d04ca19504d))
|
|
22
|
+
* add on dark support for input ([7470eb2](https://github.com/AlaskaAirlines/auro-formkit/commit/7470eb2209e0ad3e95548f47f959a60ea107b2e8))
|
|
23
|
+
* add on dark support for radio ([3eaf0bb](https://github.com/AlaskaAirlines/auro-formkit/commit/3eaf0bbf5e9ed46c985ae9d79184104787a871f1))
|
|
24
|
+
* add on dark support for select ([8348500](https://github.com/AlaskaAirlines/auro-formkit/commit/83485000ad0e0645244a74442335744c2541ff69))
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Performance Improvements
|
|
28
|
+
|
|
29
|
+
* update bibtemplate to use new design tokens ([8daa331](https://github.com/AlaskaAirlines/auro-formkit/commit/8daa331c089f61c2cee02b3df3016fe0e221e63b))
|
|
30
|
+
* update color tokenimports for form ([0fe05d9](https://github.com/AlaskaAirlines/auro-formkit/commit/0fe05d93da5daad8f11a75eb786fc3f70ad00ec8))
|
|
31
|
+
* update color tokens for alert icon ([ecb14c8](https://github.com/AlaskaAirlines/auro-formkit/commit/ecb14c8138483bafb1b7f3c086ba319a16ea9e99))
|
|
32
|
+
* update color tokens for helptext component ([d55b747](https://github.com/AlaskaAirlines/auro-formkit/commit/d55b747a7af5e9a9dcc54d1eedf0fed6ab835447))
|
|
33
|
+
* update color tokens for theme support in combobox [#432](https://github.com/AlaskaAirlines/auro-formkit/issues/432) ([cecf6fa](https://github.com/AlaskaAirlines/auro-formkit/commit/cecf6fa14a71a10a952b3386b834f52cf2f95990))
|
|
34
|
+
* update color tokens for theme support in counter [#433](https://github.com/AlaskaAirlines/auro-formkit/issues/433) ([f261afd](https://github.com/AlaskaAirlines/auro-formkit/commit/f261afd43ecd88e8693b28d53830cdd6f06f5875))
|
|
35
|
+
* update color tokens for theme support in datepicker [#434](https://github.com/AlaskaAirlines/auro-formkit/issues/434) ([e44b3d8](https://github.com/AlaskaAirlines/auro-formkit/commit/e44b3d83b7496de8614d11ac0d1c0e1068cd5ac2))
|
|
36
|
+
* update color tokens for theme support in dropdown [#435](https://github.com/AlaskaAirlines/auro-formkit/issues/435) ([f8c76c2](https://github.com/AlaskaAirlines/auro-formkit/commit/f8c76c244d33c26bad1a9bb256eeca434d10b27d))
|
|
37
|
+
* update color tokens for theme support in select [#439](https://github.com/AlaskaAirlines/auro-formkit/issues/439) ([fdda13b](https://github.com/AlaskaAirlines/auro-formkit/commit/fdda13b5efdb91f9b5f2346a74b6b2c36e74fd5b))
|
|
38
|
+
* update color tokens in checkbox for theme support [#431](https://github.com/AlaskaAirlines/auro-formkit/issues/431) ([48b9d59](https://github.com/AlaskaAirlines/auro-formkit/commit/48b9d5933bdc4e6aea94350b8e4b129d1bf313f1))
|
|
39
|
+
* update color tokens in input for theme support [#436](https://github.com/AlaskaAirlines/auro-formkit/issues/436) ([3dcde5e](https://github.com/AlaskaAirlines/auro-formkit/commit/3dcde5eae8b4ce479dba6a8b1310a987a60fca99))
|
|
40
|
+
* update color tokens in menu for theme support [#437](https://github.com/AlaskaAirlines/auro-formkit/issues/437) ([94f441a](https://github.com/AlaskaAirlines/auro-formkit/commit/94f441a01e9e7eddac382b5ab27d48f1a778f18e))
|
|
41
|
+
* update color tokens in radio for theme support [#438](https://github.com/AlaskaAirlines/auro-formkit/issues/438) ([d32c3fc](https://github.com/AlaskaAirlines/auro-formkit/commit/d32c3fc9f49574d3dd1a03a452f7b2bb3f2bd13f))
|
|
42
|
+
* update counter to use theming token structure ([fabba60](https://github.com/AlaskaAirlines/auro-formkit/commit/fabba60cebf900af6ec2ea82756b6c78dfd3ca57))
|
|
43
|
+
* update dependencies ([8f48297](https://github.com/AlaskaAirlines/auro-formkit/commit/8f482976c7b224a19f34f028972c2e670dfc863b))
|
|
44
|
+
* update remaining references to old design tokens ([85eb8ef](https://github.com/AlaskaAirlines/auro-formkit/commit/85eb8efbbe6f285e88957aac306806ef993429e7))
|
|
45
|
+
* update to v5.10.0 of design tokens ([2b691ca](https://github.com/AlaskaAirlines/auro-formkit/commit/2b691caf9a9b336899fdb288bbca522a59984688))
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
### BREAKING CHANGES
|
|
49
|
+
|
|
50
|
+
* All theme tokens now are inherited from dropdown.
|
|
51
|
+
|
|
52
|
+
## [2.2.1](https://github.com/AlaskaAirlines/auro-formkit/compare/v2.2.0...v2.2.1) (2025-04-22)
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
### Bug Fixes
|
|
56
|
+
|
|
57
|
+
* bubble focusable element's focusevent up to `#trigger` ([a9aabf3](https://github.com/AlaskaAirlines/auro-formkit/commit/a9aabf3702947201225744d87b621bd2d2bc0f36))
|
|
58
|
+
* clear event listeners on disconnectCallback in dropdown ([612ba3d](https://github.com/AlaskaAirlines/auro-formkit/commit/612ba3d1f2e9f80b8ecb39b2f026f8599044fe80))
|
|
59
|
+
* close only datepicker if dapicker is open inside of drawer ([15e8e14](https://github.com/AlaskaAirlines/auro-formkit/commit/15e8e147ca6d95982159a4004c5ac19f43fb1057))
|
|
60
|
+
* fix broken tabbing interaction ([493b453](https://github.com/AlaskaAirlines/auro-formkit/commit/493b4533353a6b03727f4448f53b3f2528c31080))
|
|
61
|
+
* null check on focus event binder in dropdown ([adabb63](https://github.com/AlaskaAirlines/auro-formkit/commit/adabb630d1fdc71618281643fff747a33f159955))
|
|
62
|
+
* properly closes bib when selecting an option ([51a5e91](https://github.com/AlaskaAirlines/auro-formkit/commit/51a5e91b8f3e66d6b4fbc414e2a502947394e902))
|
|
63
|
+
* put checkbox to be centered programmatically ([dd5e321](https://github.com/AlaskaAirlines/auro-formkit/commit/dd5e3216be4f1bd04719395ecd97ad8de759d9b0))
|
|
64
|
+
* put radio bullet to be centered programmatically ([b01be2c](https://github.com/AlaskaAirlines/auro-formkit/commit/b01be2c116db454560cffc3651fc260a58d5159a))
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
### Performance Improvements
|
|
68
|
+
|
|
69
|
+
* adding condition check of dropdown existence ([1ac8070](https://github.com/AlaskaAirlines/auro-formkit/commit/1ac8070c906a18418c4636506c35a26706bf0f26))
|
|
70
|
+
|
|
3
71
|
## [2.2.1-beta.3](https://github.com/AlaskaAirlines/auro-formkit/compare/v2.2.1-beta.2...v2.2.1-beta.3) (2025-04-14)
|
|
4
72
|
|
|
5
73
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "
|
|
1
|
+
declare const _default: "8.0.1";
|
|
2
2
|
export default _default;
|
|
@@ -5,9 +5,9 @@ import { ifDefined } from 'lit/directives/if-defined.js';
|
|
|
5
5
|
|
|
6
6
|
var colorCss$1 = css`#headerContainer{box-shadow:var(--ds-auro-dropdownbib-header-boxshadow-color)}#footerContainer{background-color:var(--ds-auro-dropdownbib-footer-container-color)}`;
|
|
7
7
|
|
|
8
|
-
var styleCss$2 = css`#bibTemplate{display:flex;overflow:hidden;height:100%;max-height:100%;flex-direction:column}#headerContainer{display:flex;flex-direction:column}#header{display:flex;width:100%;min-height:var(--ds-size-1000, 5rem);box-sizing:border-box;align-items:end;padding-top:var(--ds-size-400, 2rem);padding-right:var(--ds-size-700, 3.5rem);padding-left:var(--ds-size-200, 1rem);pointer-events:none}#subheader{width:100%}#subheader ::slotted([auro-input]){padding:0 var(--ds-size-200, 1rem)}#closeButton{position:absolute;top:var(--ds-size-400, 2rem);right:var(--ds-size-200, 1rem);border:none;background-color:transparent;cursor:pointer}#closeButton [auro-icon]{--ds-auro-icon-size: var(--ds-size-500,
|
|
8
|
+
var styleCss$2 = css`#bibTemplate{display:flex;overflow:hidden;height:100%;max-height:100%;flex-direction:column}#headerContainer{display:flex;flex-direction:column}#header{display:flex;width:100%;min-height:var(--ds-size-1000, 5rem);box-sizing:border-box;align-items:end;padding-top:var(--ds-size-400, 2rem);padding-right:var(--ds-size-700, 3.5rem);padding-left:var(--ds-size-200, 1rem);pointer-events:none}#subheader{width:100%}#subheader ::slotted([auro-input]){padding:0 var(--ds-size-200, 1rem)}#closeButton{position:absolute;top:var(--ds-size-400, 2rem);right:var(--ds-size-200, 1rem);border:none;background-color:transparent;cursor:pointer}#closeButton [auro-icon]{--ds-auro-icon-size: var(--ds-size-500, 2.5rem)}#bodyContainer{position:relative;overflow:auto;flex:1 1 100%}:host([isfullscreen]) #bibTemplate{max-height:100dvh}:host([isfullscreen]) #bodyContainer{margin-top:var(--ds-size-100, 0.5rem)}#footerContainer{position:absolute;right:0;bottom:0;left:0;padding:var(--ds-size-200, 1rem)}`;
|
|
9
9
|
|
|
10
|
-
var tokenCss = css`:host{--ds-auro-dropdownbib-header-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-footer-container-color: var(--ds-color-
|
|
10
|
+
var tokenCss = css`:host{--ds-auro-dropdownbib-header-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-footer-container-color: var(--ds-basic-color-surface-default, #ffffff)}`;
|
|
11
11
|
|
|
12
12
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
13
13
|
// See LICENSE in the project root for license information.
|
|
@@ -16,7 +16,7 @@ var tokenCss = css`:host{--ds-auro-dropdownbib-header-boxshadow-color: var(--ds-
|
|
|
16
16
|
|
|
17
17
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
18
18
|
|
|
19
|
-
let AuroLibraryRuntimeUtils$
|
|
19
|
+
let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
20
20
|
|
|
21
21
|
/* eslint-disable jsdoc/require-param */
|
|
22
22
|
|
|
@@ -185,7 +185,7 @@ const cacheFetch = (uri, options = {}) => {
|
|
|
185
185
|
return _fetchMap.get(uri);
|
|
186
186
|
};
|
|
187
187
|
|
|
188
|
-
var styleCss$1 = css`: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}
|
|
188
|
+
var styleCss$1 = css`: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}`;
|
|
189
189
|
|
|
190
190
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
191
191
|
// See LICENSE in the project root for license information.
|
|
@@ -193,7 +193,6 @@ var styleCss$1 = css`:focus:not(:focus-visible){outline:3px solid transparent}.u
|
|
|
193
193
|
|
|
194
194
|
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
195
195
|
/**
|
|
196
|
-
* @attr {Boolean} onDark - Set value for on-dark version of auro-icon
|
|
197
196
|
* @slot - Hidden from visibility, used for a11y if icon description is needed
|
|
198
197
|
*/
|
|
199
198
|
|
|
@@ -208,6 +207,10 @@ class BaseIcon extends AuroElement {
|
|
|
208
207
|
static get properties() {
|
|
209
208
|
return {
|
|
210
209
|
...super.properties,
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* Set value for on-dark version of auro-icon.
|
|
213
|
+
*/
|
|
211
214
|
onDark: {
|
|
212
215
|
type: Boolean,
|
|
213
216
|
reflect: true
|
|
@@ -266,81 +269,11 @@ class BaseIcon extends AuroElement {
|
|
|
266
269
|
}
|
|
267
270
|
}
|
|
268
271
|
|
|
269
|
-
var tokensCss = css`:host{--ds-auro-icon-color:var(--ds-color-
|
|
270
|
-
|
|
271
|
-
var colorCss = css`: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)}`;
|
|
272
|
-
|
|
273
|
-
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
274
|
-
// See LICENSE in the project root for license information.
|
|
275
|
-
|
|
276
|
-
// ---------------------------------------------------------------------
|
|
277
|
-
|
|
278
|
-
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
279
|
-
|
|
280
|
-
let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
281
|
-
|
|
282
|
-
/* eslint-disable jsdoc/require-param */
|
|
283
|
-
|
|
284
|
-
/**
|
|
285
|
-
* This will register a new custom element with the browser.
|
|
286
|
-
* @param {String} name - The name of the custom element.
|
|
287
|
-
* @param {Object} componentClass - The class to register as a custom element.
|
|
288
|
-
* @returns {void}
|
|
289
|
-
*/
|
|
290
|
-
registerComponent(name, componentClass) {
|
|
291
|
-
if (!customElements.get(name)) {
|
|
292
|
-
customElements.define(name, class extends componentClass {});
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
/**
|
|
297
|
-
* Finds and returns the closest HTML Element based on a selector.
|
|
298
|
-
* @returns {void}
|
|
299
|
-
*/
|
|
300
|
-
closestElement(
|
|
301
|
-
selector, // selector like in .closest()
|
|
302
|
-
base = this, // extra functionality to skip a parent
|
|
303
|
-
__Closest = (el, found = el && el.closest(selector)) =>
|
|
304
|
-
!el || el === document || el === window
|
|
305
|
-
? null // standard .closest() returns null for non-found selectors also
|
|
306
|
-
: found
|
|
307
|
-
? found // found a selector INside this element
|
|
308
|
-
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
309
|
-
) {
|
|
310
|
-
return __Closest(base);
|
|
311
|
-
}
|
|
312
|
-
/* eslint-enable jsdoc/require-param */
|
|
313
|
-
|
|
314
|
-
/**
|
|
315
|
-
* 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.
|
|
316
|
-
* @param {Object} elem - The element to check.
|
|
317
|
-
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
318
|
-
* @returns {void}
|
|
319
|
-
*/
|
|
320
|
-
handleComponentTagRename(elem, tagName) {
|
|
321
|
-
const tag = tagName.toLowerCase();
|
|
322
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
323
|
-
|
|
324
|
-
if (elemTag !== tag) {
|
|
325
|
-
elem.setAttribute(tag, true);
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
/**
|
|
330
|
-
* Validates if an element is a specific Auro component.
|
|
331
|
-
* @param {Object} elem - The element to validate.
|
|
332
|
-
* @param {String} tagName - The name of the Auro component to check against.
|
|
333
|
-
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
334
|
-
*/
|
|
335
|
-
elementMatch(elem, tagName) {
|
|
336
|
-
const tag = tagName.toLowerCase();
|
|
337
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
272
|
+
var tokensCss = css`: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)}`;
|
|
338
273
|
|
|
339
|
-
|
|
340
|
-
}
|
|
341
|
-
};
|
|
274
|
+
var colorCss = css`: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)}`;
|
|
342
275
|
|
|
343
|
-
// Copyright (c)
|
|
276
|
+
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
344
277
|
// See LICENSE in the project root for license information.
|
|
345
278
|
|
|
346
279
|
|
|
@@ -348,6 +281,7 @@ class AuroIcon extends BaseIcon {
|
|
|
348
281
|
constructor() {
|
|
349
282
|
super();
|
|
350
283
|
|
|
284
|
+
this.variant = undefined;
|
|
351
285
|
this.privateDefaults();
|
|
352
286
|
}
|
|
353
287
|
|
|
@@ -357,20 +291,6 @@ class AuroIcon extends BaseIcon {
|
|
|
357
291
|
* @returns {void}
|
|
358
292
|
*/
|
|
359
293
|
privateDefaults() {
|
|
360
|
-
this.accent = false;
|
|
361
|
-
this.customColor = false;
|
|
362
|
-
this.customSvg = false;
|
|
363
|
-
this.disabled = false;
|
|
364
|
-
this.emphasis = false;
|
|
365
|
-
this.error = false;
|
|
366
|
-
this.info = false;
|
|
367
|
-
this.label = false;
|
|
368
|
-
this.primary = false;
|
|
369
|
-
this.secondary = false;
|
|
370
|
-
this.subtle = false;
|
|
371
|
-
this.success = false;
|
|
372
|
-
this.tertiary = false;
|
|
373
|
-
this.warning = false;
|
|
374
294
|
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
375
295
|
this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
|
|
376
296
|
}
|
|
@@ -380,14 +300,6 @@ class AuroIcon extends BaseIcon {
|
|
|
380
300
|
return {
|
|
381
301
|
...super.properties,
|
|
382
302
|
|
|
383
|
-
/**
|
|
384
|
-
* Sets the icon to use the accent style.
|
|
385
|
-
*/
|
|
386
|
-
accent: {
|
|
387
|
-
type: Boolean,
|
|
388
|
-
reflect: true
|
|
389
|
-
},
|
|
390
|
-
|
|
391
303
|
/**
|
|
392
304
|
* Set aria-hidden value. Default is `true`. Option is `false`.
|
|
393
305
|
*/
|
|
@@ -418,38 +330,6 @@ class AuroIcon extends BaseIcon {
|
|
|
418
330
|
type: Boolean
|
|
419
331
|
},
|
|
420
332
|
|
|
421
|
-
/**
|
|
422
|
-
* Sets the icon to use the disabled style.
|
|
423
|
-
*/
|
|
424
|
-
disabled: {
|
|
425
|
-
type: Boolean,
|
|
426
|
-
reflect: true
|
|
427
|
-
},
|
|
428
|
-
|
|
429
|
-
/**
|
|
430
|
-
* Sets the icon to use the emphasis style.
|
|
431
|
-
*/
|
|
432
|
-
emphasis: {
|
|
433
|
-
type: Boolean,
|
|
434
|
-
reflect: true
|
|
435
|
-
},
|
|
436
|
-
|
|
437
|
-
/**
|
|
438
|
-
* Sets the icon to use the error style.
|
|
439
|
-
*/
|
|
440
|
-
error: {
|
|
441
|
-
type: Boolean,
|
|
442
|
-
reflect: true
|
|
443
|
-
},
|
|
444
|
-
|
|
445
|
-
/**
|
|
446
|
-
* Sets the icon to use the info style.
|
|
447
|
-
*/
|
|
448
|
-
info: {
|
|
449
|
-
type: Boolean,
|
|
450
|
-
reflect: true
|
|
451
|
-
},
|
|
452
|
-
|
|
453
333
|
/**
|
|
454
334
|
* Exposes content in slot as icon label.
|
|
455
335
|
*/
|
|
@@ -467,50 +347,10 @@ class AuroIcon extends BaseIcon {
|
|
|
467
347
|
},
|
|
468
348
|
|
|
469
349
|
/**
|
|
470
|
-
*
|
|
471
|
-
*/
|
|
472
|
-
primary: {
|
|
473
|
-
type: Boolean,
|
|
474
|
-
reflect: true
|
|
475
|
-
},
|
|
476
|
-
|
|
477
|
-
/**
|
|
478
|
-
* Sets the icon to use the secondary style.
|
|
479
|
-
*/
|
|
480
|
-
secondary: {
|
|
481
|
-
type: Boolean,
|
|
482
|
-
reflect: true
|
|
483
|
-
},
|
|
484
|
-
|
|
485
|
-
/**
|
|
486
|
-
* Sets the icon to use the subtle style.
|
|
487
|
-
*/
|
|
488
|
-
subtle: {
|
|
489
|
-
type: Boolean,
|
|
490
|
-
reflect: true
|
|
491
|
-
},
|
|
492
|
-
|
|
493
|
-
/**
|
|
494
|
-
* Sets the icon to use the success style.
|
|
495
|
-
*/
|
|
496
|
-
success: {
|
|
497
|
-
type: Boolean,
|
|
498
|
-
reflect: true
|
|
499
|
-
},
|
|
500
|
-
|
|
501
|
-
/**
|
|
502
|
-
* Sets the icon to use the tertiary style.
|
|
350
|
+
* 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`.
|
|
503
351
|
*/
|
|
504
|
-
|
|
505
|
-
type:
|
|
506
|
-
reflect: true
|
|
507
|
-
},
|
|
508
|
-
|
|
509
|
-
/**
|
|
510
|
-
* Sets the icon to use the warning style.
|
|
511
|
-
*/
|
|
512
|
-
warning: {
|
|
513
|
-
type: Boolean,
|
|
352
|
+
variant: {
|
|
353
|
+
type: String,
|
|
514
354
|
reflect: true
|
|
515
355
|
}
|
|
516
356
|
};
|
|
@@ -600,7 +440,7 @@ class AuroIcon extends BaseIcon {
|
|
|
600
440
|
}
|
|
601
441
|
}
|
|
602
442
|
|
|
603
|
-
var iconVersion = '
|
|
443
|
+
var iconVersion = '8.0.1';
|
|
604
444
|
|
|
605
445
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
606
446
|
// See LICENSE in the project root for license information.
|
|
@@ -825,7 +665,7 @@ class AuroBibtemplate extends LitElement {
|
|
|
825
665
|
constructor() {
|
|
826
666
|
super();
|
|
827
667
|
|
|
828
|
-
AuroLibraryRuntimeUtils$
|
|
668
|
+
AuroLibraryRuntimeUtils$1.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
|
|
829
669
|
|
|
830
670
|
const versioning = new AuroDependencyVersioning();
|
|
831
671
|
this.iconTag = versioning.generateTag('auro-formkit-bibtemplate-icon', iconVersion, AuroIcon);
|
|
@@ -864,7 +704,7 @@ class AuroBibtemplate extends LitElement {
|
|
|
864
704
|
*
|
|
865
705
|
*/
|
|
866
706
|
static register(name = "auro-bibtemplate") {
|
|
867
|
-
AuroLibraryRuntimeUtils$
|
|
707
|
+
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroBibtemplate);
|
|
868
708
|
}
|
|
869
709
|
|
|
870
710
|
/**
|