@vaadin/confirm-dialog 22.0.0-alpha9 → 22.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/README.md CHANGED
@@ -1,13 +1,12 @@
1
- # <vaadin-confirm-dialog>
1
+ # @vaadin/confirm-dialog
2
2
 
3
- [Live Demo ↗](https://vaadin.com/components/vaadin-confirm-dialog/html-examples)
4
- |
5
- [API documentation ↗](https://vaadin.com/components/vaadin-confirm-dialog/html-api)
3
+ A modal dialog web component for confirming user actions.
6
4
 
7
- [<vaadin-confirm-dialog>](https://vaadin.com/components/vaadin-confirm-dialog) is a Web Component providing an easy way to ask the user to confirm a choice, part of the [Vaadin components](https://vaadin.com/components).
5
+ > ℹ️  A commercial Vaadin [subscription](https://vaadin.com/pricing) is required to use Confirm Dialog in your project.
6
+
7
+ [Documentation + Live Demo ↗](https://vaadin.com/docs/latest/ds/components/confirm-dialog)
8
8
 
9
9
  [![npm version](https://badgen.net/npm/v/@vaadin/confirm-dialog)](https://www.npmjs.com/package/@vaadin/confirm-dialog)
10
- [![Published on Vaadin Directory](https://img.shields.io/badge/Vaadin%20Directory-published-00b4f0.svg)](https://vaadin.com/directory/component/vaadinvaadin-confirm-dialog)
11
10
  [![Discord](https://img.shields.io/discord/732335336448852018?label=discord)](https://discord.gg/PHmkCKC)
12
11
 
13
12
  ```html
@@ -16,41 +15,44 @@
16
15
  </vaadin-confirm-dialog>
17
16
  ```
18
17
 
19
- [<img src="https://raw.githubusercontent.com/vaadin/vaadin-confirm-dialog/master/screenshot.png" width="200" alt="Screenshot of vaadin-confirm-dialog">](https://vaadin.com/components/vaadin-confirm-dialog)
18
+ [<img src="https://raw.githubusercontent.com/vaadin/web-components/master/packages/confirm-dialog/screenshot.png" width="200" alt="Screenshot of vaadin-confirm-dialog">](https://vaadin.com/docs/latest/ds/components/confirm-dialog)
20
19
 
21
20
  ## Installation
22
21
 
23
- Install `vaadin-confirm-dialog`:
22
+ Install the component:
24
23
 
25
24
  ```sh
26
- npm i @vaadin/confirm-dialog --save
25
+ npm i @vaadin/confirm-dialog
27
26
  ```
28
27
 
29
- Once installed, import it in your application:
28
+ Once installed, import the component in your application:
30
29
 
31
30
  ```js
32
- import '@vaadin/confirm-dialog/vaadin-confirm-dialog.js';
31
+ import '@vaadin/confirm-dialog';
33
32
  ```
34
33
 
35
- ## Getting started
36
-
37
- Vaadin components use the Lumo theme by default.
38
-
39
- To use the Material theme, import the correspondent file from the `theme/material` folder.
34
+ ## Themes
40
35
 
41
- ## Entry points
36
+ Vaadin components come with two built-in [themes](https://vaadin.com/docs/latest/ds/customization/using-themes), Lumo and Material.
37
+ The [main entrypoint](https://github.com/vaadin/web-components/blob/master/packages/confirm-dialog/vaadin-confirm-dialog.js) of the package uses the Lumo theme.
42
38
 
43
- - The component with the Lumo theme:
39
+ To use the Material theme, import the component from the `theme/material` folder:
44
40
 
45
- `theme/lumo/vaadin-confirm-dialog.js`
41
+ ```js
42
+ import '@vaadin/confirm-dialog/theme/material/vaadin-confirm-dialog.js';
43
+ ```
46
44
 
47
- - The component with the Material theme:
45
+ You can also import the Lumo version of the component explicitly:
48
46
 
49
- `theme/material/vaadin-confirm-dialog.js`
47
+ ```js
48
+ import '@vaadin/confirm-dialog/theme/lumo/vaadin-confirm-dialog.js';
49
+ ```
50
50
 
51
- - Alias for `theme/lumo/vaadin-confirm-dialog.js`:
51
+ Finally, you can import the un-themed component from the `src` folder to get a minimal starting point:
52
52
 
53
- `vaadin-confirm-dialog.js`
53
+ ```js
54
+ import '@vaadin/confirm-dialog/src/vaadin-confirm-dialog.js';
55
+ ```
54
56
 
55
57
  ## Contributing
56
58
 
@@ -60,4 +62,5 @@ Read the [contributing guide](https://vaadin.com/docs/latest/guide/contributing/
60
62
 
61
63
  Commercial Vaadin Developer License 4.0 (CVDLv4). For license terms, see LICENSE.
62
64
 
63
- Vaadin collects development time usage statistics to improve this product. For details and to opt-out, see https://github.com/vaadin/vaadin-usage-statistics.
65
+ Vaadin collects usage statistics at development time to improve this product.
66
+ For confirm-dialog and to opt-out, see https://github.com/vaadin/vaadin-usage-statistics.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/confirm-dialog",
3
- "version": "22.0.0-alpha9",
3
+ "version": "22.0.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -33,19 +33,19 @@
33
33
  ],
34
34
  "dependencies": {
35
35
  "@polymer/polymer": "^3.0.0",
36
- "@vaadin/button": "22.0.0-alpha9",
37
- "@vaadin/component-base": "22.0.0-alpha9",
38
- "@vaadin/dialog": "22.0.0-alpha9",
36
+ "@vaadin/button": "^22.0.0",
37
+ "@vaadin/component-base": "^22.0.0",
38
+ "@vaadin/dialog": "^22.0.0",
39
39
  "@vaadin/vaadin-license-checker": "^2.1.0",
40
- "@vaadin/vaadin-lumo-styles": "22.0.0-alpha9",
41
- "@vaadin/vaadin-material-styles": "22.0.0-alpha9",
42
- "@vaadin/vaadin-overlay": "22.0.0-alpha9",
43
- "@vaadin/vaadin-themable-mixin": "22.0.0-alpha9"
40
+ "@vaadin/vaadin-lumo-styles": "^22.0.0",
41
+ "@vaadin/vaadin-material-styles": "^22.0.0",
42
+ "@vaadin/vaadin-overlay": "^22.0.0",
43
+ "@vaadin/vaadin-themable-mixin": "^22.0.0"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@esm-bundle/chai": "^4.3.4",
47
- "@vaadin/testing-helpers": "^0.3.0",
47
+ "@vaadin/testing-helpers": "^0.3.2",
48
48
  "sinon": "^9.2.1"
49
49
  },
50
- "gitHead": "6e8c899dc65918f97e3c0acb2076122c4b2ef274"
50
+ "gitHead": "b668e9b1a975227fbe34beb70d1cd5b03dce2348"
51
51
  }
@@ -3,12 +3,12 @@
3
3
  * Copyright (c) 2018 - 2021 Vaadin Ltd
4
4
  * This program is available under Commercial Vaadin Developer License 4.0, available at https://vaadin.com/license/cvdl-4.0.
5
5
  */
6
- import { PolymerElement, html } from '@polymer/polymer/polymer-element.js';
7
- import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
8
- import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
9
6
  import '@vaadin/vaadin-license-checker/vaadin-license-checker.js';
10
7
  import '@vaadin/button/src/vaadin-button.js';
11
8
  import '@vaadin/dialog/src/vaadin-dialog.js';
9
+ import { html, PolymerElement } from '@polymer/polymer/polymer-element.js';
10
+ import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
11
+ import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
12
12
 
13
13
  /**
14
14
  * `<vaadin-confirm-dialog>` is a Web Component for showing alerts and asking for user confirmation.
@@ -1,6 +1,6 @@
1
- import { registerStyles, css } from '@vaadin/vaadin-themable-mixin/register-styles.js';
2
1
  import '@vaadin/vaadin-lumo-styles/color.js';
3
2
  import '@vaadin/vaadin-lumo-styles/spacing.js';
3
+ import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
4
4
 
5
5
  registerStyles(
6
6
  'vaadin-dialog-overlay',
@@ -1,4 +1,4 @@
1
- import { registerStyles, css } from '@vaadin/vaadin-themable-mixin/register-styles.js';
1
+ import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
2
2
 
3
3
  registerStyles(
4
4
  'vaadin-dialog-overlay',