@woovi/ui 6.9.7 → 7.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.
@@ -0,0 +1,21 @@
1
+ import type React from 'react';
2
+ /**
3
+ * Decides whether an Enter keydown inside a dialog should trigger the
4
+ * dialog's primary/default action.
5
+ *
6
+ * Guards (Enter is NOT hijacked when):
7
+ * - a modifier key is held (Shift/Alt/Ctrl/Meta) — e.g. Shift+Enter for newlines;
8
+ * - the IME is composing (e.g. typing accented/CJK characters);
9
+ * - focus is inside a multiline `<textarea>`, where Enter inserts a newline;
10
+ * - focus is on another actionable control (`<button>`, `<a>`, `[role="button"]`)
11
+ * or a `<select>`, so tabbing to "Cancel" and pressing Enter still cancels.
12
+ */
13
+ export declare const shouldSubmitOnEnter: (event: React.KeyboardEvent) => boolean;
14
+ /**
15
+ * Finds the primary/default action button inside a rendered dialog.
16
+ *
17
+ * By convention the actions live in MUI's `.MuiDialogActions-root` container
18
+ * with the confirm/primary button rendered LAST (e.g. `Cancel` then `Confirm`).
19
+ * Returns the last enabled button, or `null` when none is available.
20
+ */
21
+ export declare const findPrimaryDialogButton: (container: HTMLElement | null) => HTMLButtonElement | null;
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@woovi/ui",
3
3
  "description": "Woovi UI component library",
4
- "version": "6.9.7",
4
+ "version": "7.0.0",
5
+ "packageManager": "pnpm@10.28.1",
5
6
  "author": "Woovi",
6
7
  "dependencies": {
7
8
  "@emotion/react": "^11.14.0",
@@ -143,9 +144,6 @@
143
144
  "url": "https://github.com/entria/woovi-ui",
144
145
  "type": "git"
145
146
  },
146
- "sideEffects": false,
147
- "type": "module",
148
- "types": "./dist/index.d.ts",
149
147
  "scripts": {
150
148
  "changelo:major": "pnpm n ./scripts/release/changelog.ts --major",
151
149
  "changelo:minor": "pnpm n ./scripts/release/changelog.ts --minor",
@@ -176,5 +174,14 @@
176
174
  "firstRelease": "woovi-first-release",
177
175
  "publish:npm": "./release/publish-npm.sh",
178
176
  "publish:verdaccio": "./release/publish-verdaccio.sh"
179
- }
177
+ },
178
+ "pnpm": {
179
+ "overrides": {
180
+ "@types/react": "18.3.12",
181
+ "@types/react-dom": "18.3.0"
182
+ }
183
+ },
184
+ "sideEffects": false,
185
+ "type": "module",
186
+ "types": "./dist/index.d.ts"
180
187
  }