@elliemae/ds-hooks-keyboard-navigation 3.62.1 → 3.70.0-alpha.9

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/react-desc-prop-types.ts", "../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["/* eslint-disable @typescript-eslint/no-empty-interface */\n\nimport type React from 'react';\nimport { PropTypes } from '@elliemae/ds-props-helpers';\nimport { type useKeyboardNavigation } from './DSHooksKeyboardNavigation.js';\n\nexport const DIRECTIONS = {\n HORIZONTAL: 'horizontal',\n VERTICAL: 'vertical',\n AGNOSTIC: 'agnostic',\n} as const;\n\nexport declare namespace DSHooksKeyboardNaviationT {\n interface Props {\n options: string[];\n direction?: (typeof DIRECTIONS)[keyof typeof DIRECTIONS];\n disableRoving?: boolean;\n focusCriteria?: (dsId: string) => boolean;\n onKeyDown?: React.KeyboardEventHandler;\n focusedOption: string | null;\n setFocusedOption: React.Dispatch<React.SetStateAction<string | null>>;\n }\n\n type UseKeyboardNavigationReturnType = ReturnType<typeof useKeyboardNavigation>;\n type ItemPropsT = ReturnType<UseKeyboardNavigationReturnType['getItemProps']>;\n type WrapperPropsT = ReturnType<UseKeyboardNavigationReturnType['getWrapperProps']>;\n}\n\nexport const propTypes = {\n options: PropTypes.arrayOf(PropTypes.string).description('Array of strings to be items ids.').isRequired,\n direction: PropTypes.oneOf(['horizontal', 'vertical', 'agnostic'])\n .description(\n `The direction of the navigation.\n If horizontal, \"Left\" triggers \"previous\" and \"Right\" triggers \"next\".\n If vertical, \"Up\" triggers \"previous\" and \"Down\" triggers \"next\".\n If agnostic, \"Left\" and \"Up\" trigger \"previous\" and \"Right\" and \"Down\" trigger \"next\".\nDefaults to \"agnostic\".`,\n )\n .defaultValue('agnostic'),\n disableRoving: PropTypes.bool\n .description('If true, the roving tab index will not be applied to the items.')\n .defaultValue(false),\n focusCriteria: PropTypes.func.description(\n 'Function that returns a boolean to determine if the element should be focused.When not provided, all elements will be accounted as focusable.',\n ),\n} as React.WeakValidationMap<unknown>;\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADGvB,8BAA0B;AAGnB,MAAM,aAAa;AAAA,EACxB,YAAY;AAAA,EACZ,UAAU;AAAA,EACV,UAAU;AACZ;AAkBO,MAAM,YAAY;AAAA,EACvB,SAAS,kCAAU,QAAQ,kCAAU,MAAM,EAAE,YAAY,mCAAmC,EAAE;AAAA,EAC9F,WAAW,kCAAU,MAAM,CAAC,cAAc,YAAY,UAAU,CAAC,EAC9D;AAAA,IACC;AAAA;AAAA;AAAA;AAAA;AAAA,EAKF,EACC,aAAa,UAAU;AAAA,EAC1B,eAAe,kCAAU,KACtB,YAAY,iEAAiE,EAC7E,aAAa,KAAK;AAAA,EACrB,eAAe,kCAAU,KAAK;AAAA,IAC5B;AAAA,EACF;AACF;",
4
+ "sourcesContent": ["import type React from 'react';\nimport { PropTypes } from '@elliemae/ds-props-helpers';\nimport { type useKeyboardNavigation } from './DSHooksKeyboardNavigation.js';\n\nexport const DIRECTIONS = {\n HORIZONTAL: 'horizontal',\n VERTICAL: 'vertical',\n AGNOSTIC: 'agnostic',\n} as const;\n\nexport declare namespace DSHooksKeyboardNaviationT {\n interface Props {\n options: string[];\n direction?: (typeof DIRECTIONS)[keyof typeof DIRECTIONS];\n disableRoving?: boolean;\n focusCriteria?: (dsId: string) => boolean;\n onKeyDown?: React.KeyboardEventHandler;\n focusedOption: string | null;\n setFocusedOption: React.Dispatch<React.SetStateAction<string | null>>;\n }\n\n type UseKeyboardNavigationReturnType = ReturnType<typeof useKeyboardNavigation>;\n type ItemPropsT = ReturnType<UseKeyboardNavigationReturnType['getItemProps']>;\n type WrapperPropsT = ReturnType<UseKeyboardNavigationReturnType['getWrapperProps']>;\n}\n\nexport const propTypes = {\n options: PropTypes.arrayOf(PropTypes.string).description('Array of strings to be items ids.').isRequired,\n direction: PropTypes.oneOf(['horizontal', 'vertical', 'agnostic'])\n .description(\n `The direction of the navigation.\n If horizontal, \"Left\" triggers \"previous\" and \"Right\" triggers \"next\".\n If vertical, \"Up\" triggers \"previous\" and \"Down\" triggers \"next\".\n If agnostic, \"Left\" and \"Up\" trigger \"previous\" and \"Right\" and \"Down\" trigger \"next\".\nDefaults to \"agnostic\".`,\n )\n .defaultValue('agnostic'),\n disableRoving: PropTypes.bool\n .description('If true, the roving tab index will not be applied to the items.')\n .defaultValue(false),\n focusCriteria: PropTypes.func.description(\n 'Function that returns a boolean to determine if the element should be focused.When not provided, all elements will be accounted as focusable.',\n ),\n} as React.WeakValidationMap<unknown>;\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADCvB,8BAA0B;AAGnB,MAAM,aAAa;AAAA,EACxB,YAAY;AAAA,EACZ,UAAU;AAAA,EACV,UAAU;AACZ;AAkBO,MAAM,YAAY;AAAA,EACvB,SAAS,kCAAU,QAAQ,kCAAU,MAAM,EAAE,YAAY,mCAAmC,EAAE;AAAA,EAC9F,WAAW,kCAAU,MAAM,CAAC,cAAc,YAAY,UAAU,CAAC,EAC9D;AAAA,IACC;AAAA;AAAA;AAAA;AAAA;AAAA,EAKF,EACC,aAAa,UAAU;AAAA,EAC1B,eAAe,kCAAU,KACtB,YAAY,iEAAiE,EAC7E,aAAa,KAAK;AAAA,EACrB,eAAe,kCAAU,KAAK;AAAA,IAC5B;AAAA,EACF;AACF;",
6
6
  "names": []
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/react-desc-prop-types.ts"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-empty-interface */\n\nimport type React from 'react';\nimport { PropTypes } from '@elliemae/ds-props-helpers';\nimport { type useKeyboardNavigation } from './DSHooksKeyboardNavigation.js';\n\nexport const DIRECTIONS = {\n HORIZONTAL: 'horizontal',\n VERTICAL: 'vertical',\n AGNOSTIC: 'agnostic',\n} as const;\n\nexport declare namespace DSHooksKeyboardNaviationT {\n interface Props {\n options: string[];\n direction?: (typeof DIRECTIONS)[keyof typeof DIRECTIONS];\n disableRoving?: boolean;\n focusCriteria?: (dsId: string) => boolean;\n onKeyDown?: React.KeyboardEventHandler;\n focusedOption: string | null;\n setFocusedOption: React.Dispatch<React.SetStateAction<string | null>>;\n }\n\n type UseKeyboardNavigationReturnType = ReturnType<typeof useKeyboardNavigation>;\n type ItemPropsT = ReturnType<UseKeyboardNavigationReturnType['getItemProps']>;\n type WrapperPropsT = ReturnType<UseKeyboardNavigationReturnType['getWrapperProps']>;\n}\n\nexport const propTypes = {\n options: PropTypes.arrayOf(PropTypes.string).description('Array of strings to be items ids.').isRequired,\n direction: PropTypes.oneOf(['horizontal', 'vertical', 'agnostic'])\n .description(\n `The direction of the navigation.\n If horizontal, \"Left\" triggers \"previous\" and \"Right\" triggers \"next\".\n If vertical, \"Up\" triggers \"previous\" and \"Down\" triggers \"next\".\n If agnostic, \"Left\" and \"Up\" trigger \"previous\" and \"Right\" and \"Down\" trigger \"next\".\nDefaults to \"agnostic\".`,\n )\n .defaultValue('agnostic'),\n disableRoving: PropTypes.bool\n .description('If true, the roving tab index will not be applied to the items.')\n .defaultValue(false),\n focusCriteria: PropTypes.func.description(\n 'Function that returns a boolean to determine if the element should be focused.When not provided, all elements will be accounted as focusable.',\n ),\n} as React.WeakValidationMap<unknown>;\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACGvB,SAAS,iBAAiB;AAGnB,MAAM,aAAa;AAAA,EACxB,YAAY;AAAA,EACZ,UAAU;AAAA,EACV,UAAU;AACZ;AAkBO,MAAM,YAAY;AAAA,EACvB,SAAS,UAAU,QAAQ,UAAU,MAAM,EAAE,YAAY,mCAAmC,EAAE;AAAA,EAC9F,WAAW,UAAU,MAAM,CAAC,cAAc,YAAY,UAAU,CAAC,EAC9D;AAAA,IACC;AAAA;AAAA;AAAA;AAAA;AAAA,EAKF,EACC,aAAa,UAAU;AAAA,EAC1B,eAAe,UAAU,KACtB,YAAY,iEAAiE,EAC7E,aAAa,KAAK;AAAA,EACrB,eAAe,UAAU,KAAK;AAAA,IAC5B;AAAA,EACF;AACF;",
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import type React from 'react';\nimport { PropTypes } from '@elliemae/ds-props-helpers';\nimport { type useKeyboardNavigation } from './DSHooksKeyboardNavigation.js';\n\nexport const DIRECTIONS = {\n HORIZONTAL: 'horizontal',\n VERTICAL: 'vertical',\n AGNOSTIC: 'agnostic',\n} as const;\n\nexport declare namespace DSHooksKeyboardNaviationT {\n interface Props {\n options: string[];\n direction?: (typeof DIRECTIONS)[keyof typeof DIRECTIONS];\n disableRoving?: boolean;\n focusCriteria?: (dsId: string) => boolean;\n onKeyDown?: React.KeyboardEventHandler;\n focusedOption: string | null;\n setFocusedOption: React.Dispatch<React.SetStateAction<string | null>>;\n }\n\n type UseKeyboardNavigationReturnType = ReturnType<typeof useKeyboardNavigation>;\n type ItemPropsT = ReturnType<UseKeyboardNavigationReturnType['getItemProps']>;\n type WrapperPropsT = ReturnType<UseKeyboardNavigationReturnType['getWrapperProps']>;\n}\n\nexport const propTypes = {\n options: PropTypes.arrayOf(PropTypes.string).description('Array of strings to be items ids.').isRequired,\n direction: PropTypes.oneOf(['horizontal', 'vertical', 'agnostic'])\n .description(\n `The direction of the navigation.\n If horizontal, \"Left\" triggers \"previous\" and \"Right\" triggers \"next\".\n If vertical, \"Up\" triggers \"previous\" and \"Down\" triggers \"next\".\n If agnostic, \"Left\" and \"Up\" trigger \"previous\" and \"Right\" and \"Down\" trigger \"next\".\nDefaults to \"agnostic\".`,\n )\n .defaultValue('agnostic'),\n disableRoving: PropTypes.bool\n .description('If true, the roving tab index will not be applied to the items.')\n .defaultValue(false),\n focusCriteria: PropTypes.func.description(\n 'Function that returns a boolean to determine if the element should be focused.When not provided, all elements will be accounted as focusable.',\n ),\n} as React.WeakValidationMap<unknown>;\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACCvB,SAAS,iBAAiB;AAGnB,MAAM,aAAa;AAAA,EACxB,YAAY;AAAA,EACZ,UAAU;AAAA,EACV,UAAU;AACZ;AAkBO,MAAM,YAAY;AAAA,EACvB,SAAS,UAAU,QAAQ,UAAU,MAAM,EAAE,YAAY,mCAAmC,EAAE;AAAA,EAC9F,WAAW,UAAU,MAAM,CAAC,cAAc,YAAY,UAAU,CAAC,EAC9D;AAAA,IACC;AAAA;AAAA;AAAA;AAAA;AAAA,EAKF,EACC,aAAa,UAAU;AAAA,EAC1B,eAAe,UAAU,KACtB,YAAY,iEAAiE,EAC7E,aAAa,KAAK;AAAA,EACrB,eAAe,UAAU,KAAK;AAAA,IAC5B;AAAA,EACF;AACF;",
6
6
  "names": []
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-hooks-keyboard-navigation",
3
- "version": "3.62.1",
3
+ "version": "3.70.0-alpha.9",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Hooks Keyboaord Navigation",
6
6
  "files": [
@@ -22,7 +22,7 @@
22
22
  ],
23
23
  "repository": {
24
24
  "type": "git",
25
- "url": "https://git.elliemae.io/platform-ui/dimsum.git"
25
+ "url": "https://github.com/intcx/PLATFORM-UI.dimsum.git"
26
26
  },
27
27
  "engines": {
28
28
  "pnpm": ">=9",
@@ -36,21 +36,21 @@
36
36
  "indent": 4
37
37
  },
38
38
  "dependencies": {
39
- "@elliemae/ds-hooks-on-blur-out": "3.62.1",
40
- "@elliemae/ds-typescript-helpers": "3.62.1",
41
- "@elliemae/ds-props-helpers": "3.62.1"
39
+ "@elliemae/ds-hooks-on-blur-out": "3.70.0-alpha.9",
40
+ "@elliemae/ds-typescript-helpers": "3.70.0-alpha.9",
41
+ "@elliemae/ds-props-helpers": "3.70.0-alpha.9"
42
42
  },
43
43
  "devDependencies": {
44
44
  "jest": "^30.0.0",
45
- "styled-components": "~5.3.9",
45
+ "styled-components": "~5.3.11",
46
46
  "styled-system": "^5.1.5",
47
- "@elliemae/ds-monorepo-devops": "3.62.1"
47
+ "@elliemae/ds-monorepo-devops": "3.70.0-alpha.9"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "lodash-es": "^4.18.1",
51
51
  "react": "^18.3.1",
52
52
  "react-dom": "^18.3.1",
53
- "styled-components": "~5.3.9",
53
+ "styled-components": "~5.3.11",
54
54
  "styled-system": "^5.1.5"
55
55
  },
56
56
  "publishConfig": {
@@ -1 +0,0 @@
1
- export {};