y200subcontrols 0.0.32 → 0.0.321

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.
@@ -23,6 +23,7 @@ export let isLoading = false;
23
23
  {buttonStyle === 'dark' ? 'bg-slate-950 text-slate-50 ring-slate-800/20 ' : ''}
24
24
  {buttonStyle === 'indigo' ? 'bg-indigo-500 text-indigo-50 ring-indigo-500/20' : ''}
25
25
  {buttonStyle === 'teal' ? 'bg-teal-600 text-teal-50 ring-teal-600/20' : ''}
26
+ {buttonStyle === 'purple' ? 'bg-purple-600 text-purple-50 ring-purple-600/20' : ''}
26
27
 
27
28
  data-[loading='false']:disabled:bg-slate-100 data-[loading='false']:disabled:text-slate-300 disabled:ring-0
28
29
  data-[loading='false']:disabled:brightness-100
@@ -3,7 +3,7 @@ import type { Size } from './types.js';
3
3
  declare const __propDef: {
4
4
  props: {
5
5
  type?: "submit" | "reset" | "button";
6
- buttonStyle?: "red" | "dark" | "indigo" | "teal" | "blue";
6
+ buttonStyle?: "red" | "dark" | "indigo" | "teal" | "blue" | "purple";
7
7
  buttonSize?: Size;
8
8
  id?: string | undefined;
9
9
  disabled?: boolean;
@@ -10,6 +10,8 @@ export async function showDialog() {
10
10
  const cancelButton = document.getElementById("cancelButtonDialog");
11
11
  const p = new Promise((resolve) => {
12
12
  function closeDialog(result) {
13
+ okButton?.removeEventListener("click", acceptDialog);
14
+ cancelButton?.removeEventListener("click", cancelDialog);
13
15
  dialog.dismissDialog();
14
16
  resolve(result);
15
17
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "y200subcontrols",
3
- "version": "0.0.32",
3
+ "version": "0.0.321",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run package",