@aurodesignsystem/auro-dialog 1.0.8 → 1.1.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/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # Semantic Release Automated Changelog
2
2
 
3
+ # [1.1.0-beta.1](https://github.com/AlaskaAirlines/auro-dialog/compare/v1.0.9...v1.1.0-beta.1) (2024-07-04)
4
+
5
+
6
+ ### Features
7
+
8
+ * refactor color token structure with tier 3 tokens [#13](https://github.com/AlaskaAirlines/auro-dialog/issues/13) ([179e468](https://github.com/AlaskaAirlines/auro-dialog/commit/179e4684d5611f788c18537eeefe837915011b87))
9
+ * **version:** use custom versioned auro components ([8de7e7c](https://github.com/AlaskaAirlines/auro-dialog/commit/8de7e7c4bfdb8576be99a767121cf3cc68a0f12f))
10
+
11
+ ## [1.0.9](https://github.com/AlaskaAirlines/auro-dialog/compare/v1.0.8...v1.0.9) (2024-04-05)
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * **scroll:** make dialog content scroll [#15](https://github.com/AlaskaAirlines/auro-dialog/issues/15) ([4f69654](https://github.com/AlaskaAirlines/auro-dialog/commit/4f696542e23d345fe5f1f26215b18e519609e6b8))
17
+
3
18
  ## [1.0.8](https://github.com/AlaskaAirlines/auro-dialog/compare/v1.0.7...v1.0.8) (2024-02-23)
4
19
 
5
20
 
package/README.md CHANGED
@@ -128,7 +128,7 @@ In cases where the project is not able to process JS assets, there are pre-proce
128
128
  ```html
129
129
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@4.3.0/dist/tokens/CSSCustomProperties.css" />
130
130
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@5.0.8/dist/bundled/essentials.css" />
131
- <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-dialog@1.0.8/dist/auro-dialog__bundled.js" type="module"></script>
131
+ <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-dialog@1.1.0-beta.1/dist/auro-dialog__bundled.js" type="module"></script>
132
132
  ```
133
133
 
134
134
  <!-- AURO-GENERATED-CONTENT:END -->
package/demo/api.md CHANGED
@@ -8,7 +8,6 @@
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 |
12
11
  | [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. |
13
12
 
14
13
  ## Properties
@@ -16,6 +15,7 @@
16
15
  | Property | Attribute | Type | Default | Description |
17
16
  |------------------|---------------|---------------|---------|--------------------------------------------------|
18
17
  | [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 |
@@ -717,4 +717,25 @@ When using the dialog with the `unformatted` attribute, some may want to adjust
717
717
  </auro-dialog>
718
718
  ```
719
719
  <!-- AURO-GENERATED-CONTENT:END -->
720
- </auro-accordion>
720
+ </auro-accordion>
721
+
722
+ ### Theme Support
723
+
724
+ The component may be restyled using the following code sample and changing the values of the following token(s).
725
+
726
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../src/tokens.scss) -->
727
+ <!-- The below code snippet is automatically added from ./../../src/tokens.scss -->
728
+
729
+ ```scss
730
+ @import "./../node_modules/@aurodesignsystem/design-tokens/dist/tokens/SCSSVariables";
731
+
732
+ :host {
733
+ --ds-auro-dialog-background-color: var(--ds-color-background-primary-100-default, #{$ds-color-background-primary-100-default});
734
+ --ds-auro-dialog-boxshadow-color-one: rgb(0 0 0 / 0.12);
735
+ --ds-auro-dialog-boxshadow-color-two: rgb(0 0 0 / 0.1);
736
+ --ds-auro-dialog-overlay-modal-background-color: rgb(0 0 0 / 0.5);
737
+ --ds-auro-dialog-overlay-open-background-color: rgb(0 0 0 / 0.2);
738
+ --ds-auro-dialog-text-color: var(--ds-color-text-primary-default, #{$ds-color-text-primary-default});
739
+ }
740
+ ```
741
+ <!-- AURO-GENERATED-CONTENT:END -->
@@ -12,6 +12,10 @@ export class AuroDialog extends ComponentBase {
12
12
  type: BooleanConstructor;
13
13
  reflect: boolean;
14
14
  };
15
+ onDark: {
16
+ type: BooleanConstructor;
17
+ reflect: boolean;
18
+ };
15
19
  triggerElement: {
16
20
  attribute: boolean;
17
21
  };
@@ -1 +1 @@
1
- {"version":3,"file":"auro-dialog.d.ts","sourceRoot":"","sources":["../src/auro-dialog.js"],"names":[],"mappings":"AAQA;IAME;;;;;;;;;;;;;;;;MASC;IAED,iDAEC;CACF;0BAvByB,oBAAoB"}
1
+ {"version":3,"file":"auro-dialog.d.ts","sourceRoot":"","sources":["../src/auro-dialog.js"],"names":[],"mappings":"AAQA;IAME;;;;;;;;;;;;;;;;;;;;MASC;IAED,iDAEC;CACF;0BAvByB,oBAAoB"}