@elliemae/ds-utilities 3.50.1-next.8 → 3.51.0-next.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/dist/cjs/onClickHandlerForNonInteractiveElements.js +2 -3
- package/dist/cjs/onClickHandlerForNonInteractiveElements.js.map +2 -2
- package/dist/esm/onClickHandlerForNonInteractiveElements.js +2 -3
- package/dist/esm/onClickHandlerForNonInteractiveElements.js.map +2 -2
- package/package.json +12 -12
|
@@ -39,9 +39,8 @@ const onClickHandlerForNonInteractiveElements = (onClickHandler) => ({
|
|
|
39
39
|
onClick: onClickHandler,
|
|
40
40
|
onKeyPress: (event) => {
|
|
41
41
|
event.stopPropagation();
|
|
42
|
-
const {
|
|
43
|
-
if (
|
|
44
|
-
else if (keyCode === 13) onClickHandler(event);
|
|
42
|
+
const { code } = event;
|
|
43
|
+
if (code === "Enter") onClickHandler(event);
|
|
45
44
|
}
|
|
46
45
|
});
|
|
47
46
|
var onClickHandlerForNonInteractiveElements_default = onClickHandlerForNonInteractiveElements;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/onClickHandlerForNonInteractiveElements.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import type React from 'react';\n\nexport const onClickHandlerForNonInteractiveElements = (\n onClickHandler: React.MouseEventHandler & React.KeyboardEventHandler,\n) => ({\n role: 'button',\n tabIndex: '0',\n onClick: onClickHandler,\n onKeyPress: (event: React.KeyboardEvent) => {\n event.stopPropagation();\n const {
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADEhB,MAAM,0CAA0C,CACrD,oBACI;AAAA,EACJ,MAAM;AAAA,EACN,UAAU;AAAA,EACV,SAAS;AAAA,EACT,YAAY,CAAC,UAA+B;AAC1C,UAAM,gBAAgB;AACtB,UAAM,EAAE,
|
|
4
|
+
"sourcesContent": ["import type React from 'react';\n\nexport const onClickHandlerForNonInteractiveElements = (\n onClickHandler: React.MouseEventHandler & React.KeyboardEventHandler,\n) => ({\n role: 'button',\n tabIndex: '0',\n onClick: onClickHandler,\n onKeyPress: (event: React.KeyboardEvent) => {\n event.stopPropagation();\n const { code } = event;\n if (code === 'Enter') onClickHandler(event);\n },\n});\n\nexport default onClickHandlerForNonInteractiveElements;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADEhB,MAAM,0CAA0C,CACrD,oBACI;AAAA,EACJ,MAAM;AAAA,EACN,UAAU;AAAA,EACV,SAAS;AAAA,EACT,YAAY,CAAC,UAA+B;AAC1C,UAAM,gBAAgB;AACtB,UAAM,EAAE,KAAK,IAAI;AACjB,QAAI,SAAS,QAAS,gBAAe,KAAK;AAAA,EAC5C;AACF;AAEA,IAAO,kDAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -5,9 +5,8 @@ const onClickHandlerForNonInteractiveElements = (onClickHandler) => ({
|
|
|
5
5
|
onClick: onClickHandler,
|
|
6
6
|
onKeyPress: (event) => {
|
|
7
7
|
event.stopPropagation();
|
|
8
|
-
const {
|
|
9
|
-
if (
|
|
10
|
-
else if (keyCode === 13) onClickHandler(event);
|
|
8
|
+
const { code } = event;
|
|
9
|
+
if (code === "Enter") onClickHandler(event);
|
|
11
10
|
}
|
|
12
11
|
});
|
|
13
12
|
var onClickHandlerForNonInteractiveElements_default = onClickHandlerForNonInteractiveElements;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/onClickHandlerForNonInteractiveElements.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import type React from 'react';\n\nexport const onClickHandlerForNonInteractiveElements = (\n onClickHandler: React.MouseEventHandler & React.KeyboardEventHandler,\n) => ({\n role: 'button',\n tabIndex: '0',\n onClick: onClickHandler,\n onKeyPress: (event: React.KeyboardEvent) => {\n event.stopPropagation();\n const {
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACEhB,MAAM,0CAA0C,CACrD,oBACI;AAAA,EACJ,MAAM;AAAA,EACN,UAAU;AAAA,EACV,SAAS;AAAA,EACT,YAAY,CAAC,UAA+B;AAC1C,UAAM,gBAAgB;AACtB,UAAM,EAAE,
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import type React from 'react';\n\nexport const onClickHandlerForNonInteractiveElements = (\n onClickHandler: React.MouseEventHandler & React.KeyboardEventHandler,\n) => ({\n role: 'button',\n tabIndex: '0',\n onClick: onClickHandler,\n onKeyPress: (event: React.KeyboardEvent) => {\n event.stopPropagation();\n const { code } = event;\n if (code === 'Enter') onClickHandler(event);\n },\n});\n\nexport default onClickHandlerForNonInteractiveElements;\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACEhB,MAAM,0CAA0C,CACrD,oBACI;AAAA,EACJ,MAAM;AAAA,EACN,UAAU;AAAA,EACV,SAAS;AAAA,EACT,YAAY,CAAC,UAA+B;AAC1C,UAAM,gBAAgB;AACtB,UAAM,EAAE,KAAK,IAAI;AACjB,QAAI,SAAS,QAAS,gBAAe,KAAK;AAAA,EAC5C;AACF;AAEA,IAAO,kDAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-utilities",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.51.0-next.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Utilities",
|
|
6
6
|
"files": [
|
|
@@ -155,28 +155,28 @@
|
|
|
155
155
|
"@elliemae/pui-theme": "~2.10.0",
|
|
156
156
|
"hotkeys-js": "~3.10.2",
|
|
157
157
|
"raf": "~3.4.1",
|
|
158
|
-
"react-dom": "^
|
|
158
|
+
"react-dom": "^18.3.1",
|
|
159
159
|
"resize-observer-polyfill": "~1.5.1",
|
|
160
160
|
"uncontrollable": "~7.2.1",
|
|
161
161
|
"use-force-update": "~1.0.11",
|
|
162
162
|
"use-measure": "~0.3.0",
|
|
163
163
|
"use-onclickoutside": "~0.4.1",
|
|
164
|
-
"@elliemae/ds-hooks-focus-trap": "3.
|
|
165
|
-
"@elliemae/ds-hooks-
|
|
166
|
-
"@elliemae/ds-hooks-
|
|
167
|
-
"@elliemae/ds-hooks-on-first-focus-in": "3.
|
|
168
|
-
"@elliemae/ds-props-helpers": "3.
|
|
164
|
+
"@elliemae/ds-hooks-focus-trap": "3.51.0-next.0",
|
|
165
|
+
"@elliemae/ds-hooks-is-mobile": "3.51.0-next.0",
|
|
166
|
+
"@elliemae/ds-hooks-on-blur-out": "3.51.0-next.0",
|
|
167
|
+
"@elliemae/ds-hooks-on-first-focus-in": "3.51.0-next.0",
|
|
168
|
+
"@elliemae/ds-props-helpers": "3.51.0-next.0"
|
|
169
169
|
},
|
|
170
170
|
"devDependencies": {
|
|
171
|
-
"@elliemae/pui-cli": "9.0.0-next.
|
|
171
|
+
"@elliemae/pui-cli": "9.0.0-next.50",
|
|
172
172
|
"jest": "~29.7.0",
|
|
173
|
-
"react-dom": "^
|
|
174
|
-
"@elliemae/ds-monorepo-devops": "3.
|
|
173
|
+
"react-dom": "^18.3.1",
|
|
174
|
+
"@elliemae/ds-monorepo-devops": "3.51.0-next.0"
|
|
175
175
|
},
|
|
176
176
|
"peerDependencies": {
|
|
177
177
|
"lodash": "^4.17.21",
|
|
178
|
-
"react": "^
|
|
179
|
-
"react-dom": "^
|
|
178
|
+
"react": "^18.3.1",
|
|
179
|
+
"react-dom": "^18.3.1"
|
|
180
180
|
},
|
|
181
181
|
"scripts": {
|
|
182
182
|
"test": "pui-cli test --passWithNoTests --coverage=\"false\"",
|