@sveltia/ui 0.18.0 → 0.18.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.
@@ -81,7 +81,7 @@
81
81
  showContent = true;
82
82
  dialog.showModal();
83
83
  onOpen?.(new CustomEvent('Open'));
84
- await sleep(100);
84
+ await sleep(0);
85
85
  setOpenClass = true;
86
86
  await waitForTransition();
87
87
  setActiveClass = true;
@@ -96,11 +96,11 @@
96
96
  }
97
97
 
98
98
  onClosing?.(new CustomEvent('Closing'));
99
+ dialog.close();
99
100
  setActiveClass = false;
100
101
  setOpenClass = false;
101
102
  await waitForTransition();
102
103
  showContent = false;
103
- dialog.close();
104
104
 
105
105
  if (dialog.returnValue === 'ok') {
106
106
  onOk?.(new CustomEvent('Ok'));
@@ -142,7 +142,7 @@
142
142
  <dialog
143
143
  bind:this={dialog}
144
144
  {...restProps}
145
- inert={!showContent}
145
+ inert={!setOpenClass}
146
146
  {role}
147
147
  class="sui modal {className}"
148
148
  class:backdrop={showBackdrop}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sveltia/ui",
3
- "version": "0.18.0",
3
+ "version": "0.18.1",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "repository": {
@@ -47,26 +47,26 @@
47
47
  "devDependencies": {
48
48
  "@playwright/test": "^1.48.0",
49
49
  "@sveltejs/adapter-auto": "^3.2.5",
50
- "@sveltejs/kit": "^2.6.3",
50
+ "@sveltejs/kit": "^2.7.0",
51
51
  "@sveltejs/package": "^2.3.5",
52
- "@sveltejs/vite-plugin-svelte": "4.0.0-next.7",
53
- "cspell": "^8.14.4",
52
+ "@sveltejs/vite-plugin-svelte": "4.0.0-next.8",
53
+ "cspell": "^8.15.1",
54
54
  "eslint": "^8.57.1",
55
55
  "eslint-config-airbnb-base": "^15.0.0",
56
56
  "eslint-config-prettier": "^9.1.0",
57
57
  "eslint-plugin-import": "^2.31.0",
58
- "eslint-plugin-jsdoc": "^50.3.1",
58
+ "eslint-plugin-jsdoc": "^50.3.2",
59
59
  "eslint-plugin-svelte": "^2.44.1",
60
60
  "postcss": "^8.4.47",
61
61
  "postcss-html": "^1.7.0",
62
62
  "prettier": "^3.3.3",
63
63
  "prettier-plugin-svelte": "^3.2.7",
64
- "sass": "^1.79.4",
65
- "stylelint": "^16.9.0",
64
+ "sass": "^1.79.5",
65
+ "stylelint": "^16.10.0",
66
66
  "stylelint-config-recommended-scss": "^14.1.0",
67
67
  "stylelint-scss": "^6.7.0",
68
- "svelte": "5.0.0-next.263",
69
- "svelte-check": "^4.0.4",
68
+ "svelte": "5.0.0-next.264",
69
+ "svelte-check": "^4.0.5",
70
70
  "svelte-i18n": "^4.0.0",
71
71
  "svelte-preprocess": "^6.0.3",
72
72
  "tslib": "^2.7.0",