@aurodesignsystem/auro-dialog 1.1.0-beta.1 → 2.0.0-beta.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.
- package/.husky/commit-msg +0 -3
- package/.husky/pre-commit +0 -3
- package/CHANGELOG.md +30 -0
- package/README.md +3 -12
- package/demo/api.md +5 -6
- package/demo/index.md +4 -2
- package/dist/auro-dialog.d.ts +0 -4
- package/dist/auro-dialog.d.ts.map +1 -1
- package/dist/auro-dialog__bundled.js +183 -134
- package/dist/buttonVersion.d.ts +1 -1
- package/dist/color-css.d.ts +1 -1
- package/dist/componentBase.d.ts +4 -4
- package/dist/componentBase.d.ts.map +1 -1
- package/dist/iconVersion.d.ts +1 -1
- package/dist/style-css.d.ts +1 -1
- package/dist/style-unformatted-css.d.ts +1 -1
- package/dist/tokens-css.d.ts +1 -1
- package/index.js +2 -13
- package/package.json +34 -34
- package/src/buttonVersion.js +1 -1
- package/src/color-css.js +2 -2
- package/src/componentBase.js +15 -8
- package/src/iconVersion.js +1 -1
- package/src/style-css.js +2 -2
- package/src/style-unformatted-css.js +1 -1
- package/src/tokens-css.js +2 -2
package/.husky/commit-msg
CHANGED
package/.husky/pre-commit
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
# Semantic Release Automated Changelog
|
|
2
2
|
|
|
3
|
+
# [2.0.0-beta.1](https://github.com/AlaskaAirlines/auro-dialog/compare/v1.1.0-beta.2...v2.0.0-beta.1) (2024-10-03)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* resolve minor color theming issues ([04aed67](https://github.com/AlaskaAirlines/auro-dialog/commit/04aed672c13d2ec1e3be8f80025e7ffc8f18e6d1))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* add tag name as attribute when custom registered ([e749245](https://github.com/AlaskaAirlines/auro-dialog/commit/e749245d29676388bf40c32b263f32a5f1fc5a68))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Performance Improvements
|
|
17
|
+
|
|
18
|
+
* refactor custom component registration config ([5c1afc8](https://github.com/AlaskaAirlines/auro-dialog/commit/5c1afc8f4e8bd38114a03f0b95a0f5f81b25e763))
|
|
19
|
+
* update dependencies ([eea1e4f](https://github.com/AlaskaAirlines/auro-dialog/commit/eea1e4f3f84f172558fc6fba6784dbbbf81f2ef1))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### BREAKING CHANGES
|
|
23
|
+
|
|
24
|
+
* trigger major release for color theme support #13
|
|
25
|
+
|
|
26
|
+
# [1.1.0-beta.2](https://github.com/AlaskaAirlines/auro-dialog/compare/v1.1.0-beta.1...v1.1.0-beta.2) (2024-07-08)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### Performance Improvements
|
|
30
|
+
|
|
31
|
+
* **button:** use new version of flat variant button ([17ce223](https://github.com/AlaskaAirlines/auro-dialog/commit/17ce223fa6a5a91dbda69b316b76220397eea7a7))
|
|
32
|
+
|
|
3
33
|
# [1.1.0-beta.1](https://github.com/AlaskaAirlines/auro-dialog/compare/v1.0.9...v1.1.0-beta.1) (2024-07-04)
|
|
4
34
|
|
|
5
35
|
|
package/README.md
CHANGED
|
@@ -62,15 +62,6 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
|
|
|
62
62
|
|
|
63
63
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
64
64
|
|
|
65
|
-
### CSS Custom Property fallbacks
|
|
66
|
-
|
|
67
|
-
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/usage/cssFallbacks.md) -->
|
|
68
|
-
[CSS custom properties](https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties) are [not supported](https://auro.alaskaair.com/support/custom-properties) in older browsers. For this, fallback properties are pre-generated and included with the npm.
|
|
69
|
-
|
|
70
|
-
Any update to the Auro Design Tokens will be immediately reflected with browsers that support CSS custom properties, legacy browsers will require updated components with pre-generated fallback properties.
|
|
71
|
-
|
|
72
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
73
|
-
|
|
74
65
|
### Define dependency in project component
|
|
75
66
|
|
|
76
67
|
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/usage/componentImportDescription.md) -->
|
|
@@ -126,9 +117,9 @@ In cases where the project is not able to process JS assets, there are pre-proce
|
|
|
126
117
|
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/usage/bundleUseModBrowsers.md) -->
|
|
127
118
|
|
|
128
119
|
```html
|
|
129
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@4.
|
|
130
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@5.
|
|
131
|
-
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-dialog@
|
|
120
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@4.10.0/dist/tokens/CSSCustomProperties.css" />
|
|
121
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@5.1.1/dist/bundled/essentials.css" />
|
|
122
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-dialog@2.0.0-beta.1/dist/auro-dialog__bundled.js" type="module"></script>
|
|
132
123
|
```
|
|
133
124
|
|
|
134
125
|
<!-- AURO-GENERATED-CONTENT:END -->
|
package/demo/api.md
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
| Attribute | Type | Description |
|
|
9
9
|
|-----------|-----------|--------------------------------------------------|
|
|
10
10
|
| [md](#md) | `Boolean` | Sets dialog box to medium style. Adding both md and lg will set the dialog to md for desktop and lg for mobile. |
|
|
11
|
+
| [onDark](#onDark) | `Boolean` | Sets close icon to white for dark backgrounds |
|
|
11
12
|
| [sm](#sm) | `Boolean` | Sets dialog box to small style. Adding both sm and lg will set the dialog to sm for desktop and lg for mobile. |
|
|
12
13
|
|
|
13
14
|
## Properties
|
|
@@ -15,7 +16,6 @@
|
|
|
15
16
|
| Property | Attribute | Type | Default | Description |
|
|
16
17
|
|------------------|---------------|---------------|---------|--------------------------------------------------|
|
|
17
18
|
| [modal](#modal) | `modal` | `Boolean` | false | Modal dialog restricts the user to take an action (no default close actions) |
|
|
18
|
-
| [onDark](#onDark) | `onDark` | `Boolean` | | Sets close icon to white for dark backgrounds |
|
|
19
19
|
| [open](#open) | `open` | `Boolean` | | Sets state of dialog to open |
|
|
20
20
|
| [triggerElement](#triggerElement) | | `HTMLElement` | | The element to focus when the dialog is closed. If not set, defaults to the value of document.activeElement when the dialog is opened. |
|
|
21
21
|
| [unformatted](#unformatted) | `unformatted` | `Boolean` | false | Unformatted dialog window, edge-to-edge fill for content |
|
|
@@ -730,11 +730,10 @@ The component may be restyled using the following code sample and changing the v
|
|
|
730
730
|
@import "./../node_modules/@aurodesignsystem/design-tokens/dist/tokens/SCSSVariables";
|
|
731
731
|
|
|
732
732
|
:host {
|
|
733
|
-
--ds-auro-dialog-
|
|
734
|
-
--ds-auro-dialog-boxshadow-color
|
|
735
|
-
--ds-auro-dialog-
|
|
736
|
-
--ds-auro-dialog-overlay-
|
|
737
|
-
--ds-auro-dialog-overlay-open-background-color: rgb(0 0 0 / 0.2);
|
|
733
|
+
--ds-auro-dialog-container-color: var(--ds-color-container-primary-default, #{$ds-color-container-primary-default});
|
|
734
|
+
--ds-auro-dialog-boxshadow-color: var(--ds-elevation-300, #{$ds-elevation-300});
|
|
735
|
+
--ds-auro-dialog-overlay-modal-background-color: var(--ds-color-background-scrimmed-default, #{$ds-color-background-scrimmed-default});
|
|
736
|
+
--ds-auro-dialog-overlay-open-background-color: var(--ds-color-background-scrimmed-default, #{$ds-color-background-scrimmed-default});
|
|
738
737
|
--ds-auro-dialog-text-color: var(--ds-color-text-primary-default, #{$ds-color-text-primary-default});
|
|
739
738
|
}
|
|
740
739
|
```
|
package/demo/index.md
CHANGED
|
@@ -137,8 +137,10 @@ There are two important parts of every Auro component. The <a href="https://deve
|
|
|
137
137
|
To protect from versioning conflicts with other instances of the component being loaded, it is recommended to use our `registerComponent(name)` method and pass in a unique name.
|
|
138
138
|
|
|
139
139
|
```js
|
|
140
|
-
import './
|
|
141
|
-
|
|
140
|
+
import { AuroDialog } from './src/auro-dialog.js';
|
|
141
|
+
import * as RuntimeUtils from '@aurodesignsystem/auro-library/scripts/utils/runtimeUtils.mjs';
|
|
142
|
+
|
|
143
|
+
RuntimeUtils.default.prototype.registerComponent('custom-dialog', AuroDialog);
|
|
142
144
|
```
|
|
143
145
|
|
|
144
146
|
This will create a new custom element that you can use in your HTML that will function identically to the `auro-dialog` element.
|
package/dist/auro-dialog.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auro-dialog.d.ts","sourceRoot":"","sources":["../src/auro-dialog.js"],"names":[],"mappings":"AAQA;IAME
|
|
1
|
+
{"version":3,"file":"auro-dialog.d.ts","sourceRoot":"","sources":["../src/auro-dialog.js"],"names":[],"mappings":"AAQA;IAME;;;;;;;;;;;;;;;;MASC;IAED,iDAEC;CACF;0BAvByB,oBAAoB"}
|