@elliemae/ds-props-helpers 3.33.0-next.0 → 3.33.0-next.10

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/globalProps/getGlobalAttributes.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import type { AllHTMLAttributes, AriaAttributes, DOMAttributes, HTMLAttributes } from 'react';\nimport { type TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';\nimport type { GlobalAttributes } from './constants.js';\nimport { globalAttributes } from './constants.js';\n\nexport type GlobalAttributesT<T = Element> = Omit<\n AriaAttributes &\n DOMAttributes<T> &\n HTMLAttributes<T> &\n Omit<AllHTMLAttributes<T>, 'as'> & { tabIndex?: TypescriptHelpersT.WCAGTabIndex },\n 'dangerouslySetInnerHTML'\n>;\n\nexport const getGlobalAttributes = <T, S = Element>(\n props: T,\n overrides?: Partial<GlobalAttributes<CallableFunction>>,\n): GlobalAttributesT<S> => {\n const globalAttributesObject: GlobalAttributesT<S> = {};\n Object.entries(props as Record<string, unknown>).forEach(([key, value]) => {\n if (key in globalAttributes || key.startsWith('data-')) {\n if (\n overrides &&\n key in overrides &&\n typeof value === 'function' &&\n typeof overrides[key as keyof GlobalAttributes] === 'function'\n ) {\n const newFunc = (...args: unknown[]) => {\n (value as CallableFunction)(...args);\n (overrides[key as keyof GlobalAttributes] as CallableFunction)(...args);\n };\n globalAttributesObject[key as keyof GlobalAttributesT] = newFunc as unknown as T[keyof T];\n } else {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n globalAttributesObject[key as keyof GlobalAttributesT] = value;\n }\n }\n });\n return globalAttributesObject;\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADGvB,uBAAiC;AAU1B,MAAM,sBAAsB,CACjC,OACA,cACyB;AACzB,QAAM,yBAA+C,CAAC;AACtD,SAAO,QAAQ,KAAgC,EAAE,QAAQ,CAAC,CAAC,KAAK,KAAK,MAAM;AACzE,QAAI,OAAO,qCAAoB,IAAI,WAAW,OAAO,GAAG;AACtD,UACE,aACA,OAAO,aACP,OAAO,UAAU,cACjB,OAAO,UAAU,GAA6B,MAAM,YACpD;AACA,cAAM,UAAU,IAAI,SAAoB;AACtC,UAAC,MAA2B,GAAG,IAAI;AACnC,UAAC,UAAU,GAA6B,EAAuB,GAAG,IAAI;AAAA,QACxE;AACA,+BAAuB,GAA8B,IAAI;AAAA,MAC3D,OAAO;AAEL,+BAAuB,GAA8B,IAAI;AAAA,MAC3D;AAAA,IACF;AAAA,EACF,CAAC;AACD,SAAO;AACT;",
4
+ "sourcesContent": ["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport type { AllHTMLAttributes, AriaAttributes, DOMAttributes, HTMLAttributes } from 'react';\nimport { type TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';\nimport type { GlobalAttributes } from './constants.js';\nimport { globalAttributes } from './constants.js';\n\ntype GenericGlobalAttributes<T = Element> = Omit<\n AriaAttributes &\n DOMAttributes<T> &\n HTMLAttributes<T> &\n AllHTMLAttributes<T> & { tabIndex?: TypescriptHelpersT.WCAGTabIndex },\n 'dangerouslySetInnerHTML' | 'as'\n>;\n\nexport type GlobalAttributesT<T = Element, S extends Record<string, any> = object> = Partial<\n Pick<S, keyof GenericGlobalAttributes<T>> & Omit<GenericGlobalAttributes<T>, keyof S>\n>;\n\nexport const getGlobalAttributes = <T, S = Element, P extends Record<string, any> = object>(\n props: T,\n overrides?: Partial<GlobalAttributes<CallableFunction>>,\n): GlobalAttributesT<S, P> => {\n const globalAttributesObject = {} as GlobalAttributesT<S, P>;\n Object.entries(props as Record<string, unknown>).forEach(([key, value]) => {\n if (key in globalAttributes || key.startsWith('data-')) {\n if (\n overrides &&\n key in overrides &&\n typeof value === 'function' &&\n typeof overrides[key as keyof GlobalAttributes] === 'function'\n ) {\n const newFunc = (...args: unknown[]) => {\n (value as CallableFunction)(...args);\n (overrides[key as keyof GlobalAttributes] as CallableFunction)(...args);\n };\n globalAttributesObject[key as keyof GlobalAttributesT<S, P>] = newFunc as unknown as T[keyof T];\n } else {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n globalAttributesObject[key as keyof GlobalAttributesT<S, P>] = value;\n }\n }\n });\n return globalAttributesObject;\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADIvB,uBAAiC;AAc1B,MAAM,sBAAsB,CACjC,OACA,cAC4B;AAC5B,QAAM,yBAAyB,CAAC;AAChC,SAAO,QAAQ,KAAgC,EAAE,QAAQ,CAAC,CAAC,KAAK,KAAK,MAAM;AACzE,QAAI,OAAO,qCAAoB,IAAI,WAAW,OAAO,GAAG;AACtD,UACE,aACA,OAAO,aACP,OAAO,UAAU,cACjB,OAAO,UAAU,GAA6B,MAAM,YACpD;AACA,cAAM,UAAU,IAAI,SAAoB;AACtC,UAAC,MAA2B,GAAG,IAAI;AACnC,UAAC,UAAU,GAA6B,EAAuB,GAAG,IAAI;AAAA,QACxE;AACA,+BAAuB,GAAoC,IAAI;AAAA,MACjE,OAAO;AAEL,+BAAuB,GAAoC,IAAI;AAAA,MACjE;AAAA,IACF;AAAA,EACF,CAAC;AACD,SAAO;AACT;",
6
6
  "names": []
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/globalProps/useGetGlobalAttributes.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import { useMemo } from 'react';\nimport type { GlobalAttributes } from './constants.js';\nimport { getGlobalAttributes } from './getGlobalAttributes.js';\nimport type { GlobalAttributesT } from './getGlobalAttributes.js';\n\nexport const useGetGlobalAttributes = <T, S = Element>(\n props: T,\n overrides?: Partial<GlobalAttributes<CallableFunction>>,\n): GlobalAttributesT<S> => {\n const componentGlobalAttributes: GlobalAttributesT<S> = useMemo(\n () => getGlobalAttributes(props, overrides),\n [props, overrides],\n );\n return componentGlobalAttributes;\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAwB;AAExB,iCAAoC;AAG7B,MAAM,yBAAyB,CACpC,OACA,cACyB;AACzB,QAAM,gCAAkD;AAAA,IACtD,UAAM,gDAAoB,OAAO,SAAS;AAAA,IAC1C,CAAC,OAAO,SAAS;AAAA,EACnB;AACA,SAAO;AACT;",
4
+ "sourcesContent": ["import { useMemo } from 'react';\nimport type { GlobalAttributes } from './constants.js';\nimport { getGlobalAttributes } from './getGlobalAttributes.js';\nimport type { GlobalAttributesT } from './getGlobalAttributes.js';\n\nexport const useGetGlobalAttributes = <P extends object, S = Element, T extends object = object>(\n props: P,\n overrides?: Partial<GlobalAttributes<CallableFunction>>,\n): GlobalAttributesT<S, T> => {\n const componentGlobalAttributes: GlobalAttributesT<S, T> = useMemo(\n () => getGlobalAttributes<P, S, T>(props, overrides),\n [props, overrides],\n );\n return componentGlobalAttributes;\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAwB;AAExB,iCAAoC;AAG7B,MAAM,yBAAyB,CACpC,OACA,cAC4B;AAC5B,QAAM,gCAAqD;AAAA,IACzD,UAAM,gDAA6B,OAAO,SAAS;AAAA,IACnD,CAAC,OAAO,SAAS;AAAA,EACnB;AACA,SAAO;AACT;",
6
6
  "names": []
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.ts", "../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["export { useMemoMergePropsWithDefault } from './defaultProps/index.js';\nexport { getAriaProps, getDataProps } from './getProps/index.js';\nexport {\n getGlobalAttributes,\n useGetGlobalAttributes,\n globalAttributesPropTypes,\n type GlobalAttributesT,\n} from './globalProps/index.js';\nexport { describe, PropTypes, type DSPropTypesSchema } from './propTypes/index.js';\nexport {\n throwTypeError,\n throwRequiredError,\n useValidateTypescriptPropTypes,\n validateTypescriptPropTypesImplementation,\n} from './validation/index.js';\nexport { type XstyledProps, useGetXstyledProps, xstyledPropTypes } from './xstyledProps/index.js';\nexport { useDeprecateComponent } from './useDeprecateComponent/index.js';\n\nexport { getPropsPerDatatestid, getPropsPerDatatestIdPropTypes } from './propsPerDataTestId/index.js';\nexport { getPropsPerSlotPropTypes } from './propsPerSlot/index.js';\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,0BAA6C;AAC7C,sBAA2C;AAC3C,yBAKO;AACP,uBAA4D;AAC5D,wBAKO;AACP,0BAAwE;AACxE,mCAAsC;AAEtC,gCAAsE;AACtE,0BAAyC;",
4
+ "sourcesContent": ["export { useMemoMergePropsWithDefault } from './defaultProps/index.js';\nexport { getAriaProps, getDataProps } from './getProps/index.js';\nexport {\n getGlobalAttributes,\n useGetGlobalAttributes,\n globalAttributesPropTypes,\n type GlobalAttributesT,\n} from './globalProps/index.js';\nexport { describe, PropTypes, type DSPropTypesSchema } from './propTypes/index.js';\nexport type { ValidationMap } from 'prop-types';\nexport {\n throwTypeError,\n throwRequiredError,\n useValidateTypescriptPropTypes,\n validateTypescriptPropTypesImplementation,\n} from './validation/index.js';\nexport { type XstyledProps, useGetXstyledProps, xstyledPropTypes } from './xstyledProps/index.js';\nexport { useDeprecateComponent } from './useDeprecateComponent/index.js';\n\nexport { getPropsPerDatatestid, getPropsPerDatatestIdPropTypes } from './propsPerDataTestId/index.js';\nexport { getPropsPerSlotPropTypes } from './propsPerSlot/index.js';\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,0BAA6C;AAC7C,sBAA2C;AAC3C,yBAKO;AACP,uBAA4D;AAE5D,wBAKO;AACP,0BAAwE;AACxE,mCAAsC;AAEtC,gCAAsE;AACtE,0BAAyC;",
6
6
  "names": []
7
7
  }
@@ -51,14 +51,17 @@ const getPropsPerSlotPropTypes = (name, slots) => {
51
51
  const leafValues = getLeafValues(name, slots);
52
52
  const propsPerSlotPropTypes = {};
53
53
  leafValues.forEach((leafValue) => {
54
- propsPerSlotPropTypes[leafValue] = import_propTypes.PropTypes.shape({
55
- "aria-*": import_propTypes.PropTypes.string.description("Aria related properties"),
56
- "data-*": import_propTypes.PropTypes.string.description("Any data property to attach to the root container"),
57
- "on-*": import_propTypes.PropTypes.func.description("Any supported React event"),
58
- "all HTML attributes": import_propTypes.PropTypes.any.description(
59
- "HTML attributes such as id, className, autoComplete, href and so on"
60
- )
61
- }).description(`an object containing the definitions for ${leafValue} aria and data props`).dataTestId();
54
+ propsPerSlotPropTypes[leafValue] = import_propTypes.PropTypes.oneOfType([
55
+ import_propTypes.PropTypes.func,
56
+ import_propTypes.PropTypes.shape({
57
+ "aria-*": import_propTypes.PropTypes.string.description("Aria related properties"),
58
+ "data-*": import_propTypes.PropTypes.string.description("Any data property to attach to the root container"),
59
+ "on-*": import_propTypes.PropTypes.func.description("Any supported React event"),
60
+ "all HTML attributes": import_propTypes.PropTypes.any.description(
61
+ "HTML attributes such as id, className, autoComplete, href and so on"
62
+ )
63
+ })
64
+ ]).description(`An object or function containing the definitions for ${leafValue} aria and data props.`).dataTestId();
62
65
  });
63
66
  return propsPerSlotPropTypes;
64
67
  };
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/propsPerSlot/getPropsPerSlotPropTypes.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["/* eslint-disable indent */\nimport { type TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';\nimport { PropTypes } from '../propTypes/index.js';\nimport type { ReactDescT } from '../propTypes/types.js';\n\ntype PropsPerSlotPropTypes<Name extends string, Slots extends Record<string, string>> = {\n [key in keyof Required<TypescriptHelpersT.PropsForGlobalOnSlots<Name, Slots>>]: ReactDescT;\n};\n\nconst getLeafValues = <Name extends string, Slots extends Record<string, string>>(name: Name, slots: Slots) => {\n const keys = Object.keys(slots);\n const leafValues = keys.reduce(\n (acc, key) => {\n const value = slots[key];\n acc.push(\n `ds${name.slice(2)}${value\n .split('-')\n .map((word) => word[0].toUpperCase() + word.slice(1))\n .join('')}` as keyof PropsPerSlotPropTypes<Name, Slots>,\n );\n return acc;\n },\n [] as (keyof PropsPerSlotPropTypes<Name, Slots>)[],\n );\n return leafValues;\n};\n\nexport const getPropsPerSlotPropTypes = <Name extends string, Slots extends Record<string, string>>(\n name: Name,\n slots: Slots,\n): PropsPerSlotPropTypes<Name, Slots> => {\n const leafValues = getLeafValues(name, slots);\n const propsPerSlotPropTypes = {} as PropsPerSlotPropTypes<Name, Slots>;\n leafValues.forEach((leafValue) => {\n propsPerSlotPropTypes[leafValue] = PropTypes.shape({\n 'aria-*': PropTypes.string.description('Aria related properties'),\n 'data-*': PropTypes.string.description('Any data property to attach to the root container'),\n 'on-*': PropTypes.func.description('Any supported React event'),\n 'all HTML attributes': PropTypes.any.description(\n 'HTML attributes such as id, className, autoComplete, href and so on',\n ),\n })\n .description(`an object containing the definitions for ${leafValue} aria and data props`)\n .dataTestId();\n });\n return propsPerSlotPropTypes;\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADEvB,uBAA0B;AAO1B,MAAM,gBAAgB,CAA4D,MAAY,UAAiB;AAC7G,QAAM,OAAO,OAAO,KAAK,KAAK;AAC9B,QAAM,aAAa,KAAK;AAAA,IACtB,CAAC,KAAK,QAAQ;AACZ,YAAM,QAAQ,MAAM,GAAG;AACvB,UAAI;AAAA,QACF,KAAK,KAAK,MAAM,CAAC,IAAI,MAClB,MAAM,GAAG,EACT,IAAI,CAAC,SAAS,KAAK,CAAC,EAAE,YAAY,IAAI,KAAK,MAAM,CAAC,CAAC,EACnD,KAAK,EAAE;AAAA,MACZ;AACA,aAAO;AAAA,IACT;AAAA,IACA,CAAC;AAAA,EACH;AACA,SAAO;AACT;AAEO,MAAM,2BAA2B,CACtC,MACA,UACuC;AACvC,QAAM,aAAa,cAAc,MAAM,KAAK;AAC5C,QAAM,wBAAwB,CAAC;AAC/B,aAAW,QAAQ,CAAC,cAAc;AAChC,0BAAsB,SAAS,IAAI,2BAAU,MAAM;AAAA,MACjD,UAAU,2BAAU,OAAO,YAAY,yBAAyB;AAAA,MAChE,UAAU,2BAAU,OAAO,YAAY,mDAAmD;AAAA,MAC1F,QAAQ,2BAAU,KAAK,YAAY,2BAA2B;AAAA,MAC9D,uBAAuB,2BAAU,IAAI;AAAA,QACnC;AAAA,MACF;AAAA,IACF,CAAC,EACE,YAAY,4CAA4C,+BAA+B,EACvF,WAAW;AAAA,EAChB,CAAC;AACD,SAAO;AACT;",
4
+ "sourcesContent": ["/* eslint-disable indent */\nimport { type TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';\nimport { PropTypes } from '../propTypes/index.js';\nimport type { ReactDescT } from '../propTypes/types.js';\n\ntype PropsPerSlotPropTypes<Name extends string, Slots extends Record<string, string>> = {\n [key in keyof Required<TypescriptHelpersT.PropsForGlobalOnSlots<Name, Slots>>]: ReactDescT;\n};\n\nconst getLeafValues = <Name extends string, Slots extends Record<string, string>>(name: Name, slots: Slots) => {\n const keys = Object.keys(slots);\n const leafValues = keys.reduce(\n (acc, key) => {\n const value = slots[key];\n acc.push(\n `ds${name.slice(2)}${value\n .split('-')\n .map((word) => word[0].toUpperCase() + word.slice(1))\n .join('')}` as keyof PropsPerSlotPropTypes<Name, Slots>,\n );\n return acc;\n },\n [] as (keyof PropsPerSlotPropTypes<Name, Slots>)[],\n );\n return leafValues;\n};\n\nexport const getPropsPerSlotPropTypes = <Name extends string, Slots extends Record<string, string>>(\n name: Name,\n slots: Slots,\n): PropsPerSlotPropTypes<Name, Slots> => {\n const leafValues = getLeafValues(name, slots);\n const propsPerSlotPropTypes = {} as PropsPerSlotPropTypes<Name, Slots>;\n leafValues.forEach((leafValue) => {\n propsPerSlotPropTypes[leafValue] = PropTypes.oneOfType([\n PropTypes.func,\n PropTypes.shape({\n 'aria-*': PropTypes.string.description('Aria related properties'),\n 'data-*': PropTypes.string.description('Any data property to attach to the root container'),\n 'on-*': PropTypes.func.description('Any supported React event'),\n 'all HTML attributes': PropTypes.any.description(\n 'HTML attributes such as id, className, autoComplete, href and so on',\n ),\n }),\n ])\n .description(`An object or function containing the definitions for ${leafValue} aria and data props.`)\n .dataTestId();\n });\n return propsPerSlotPropTypes;\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADEvB,uBAA0B;AAO1B,MAAM,gBAAgB,CAA4D,MAAY,UAAiB;AAC7G,QAAM,OAAO,OAAO,KAAK,KAAK;AAC9B,QAAM,aAAa,KAAK;AAAA,IACtB,CAAC,KAAK,QAAQ;AACZ,YAAM,QAAQ,MAAM,GAAG;AACvB,UAAI;AAAA,QACF,KAAK,KAAK,MAAM,CAAC,IAAI,MAClB,MAAM,GAAG,EACT,IAAI,CAAC,SAAS,KAAK,CAAC,EAAE,YAAY,IAAI,KAAK,MAAM,CAAC,CAAC,EACnD,KAAK,EAAE;AAAA,MACZ;AACA,aAAO;AAAA,IACT;AAAA,IACA,CAAC;AAAA,EACH;AACA,SAAO;AACT;AAEO,MAAM,2BAA2B,CACtC,MACA,UACuC;AACvC,QAAM,aAAa,cAAc,MAAM,KAAK;AAC5C,QAAM,wBAAwB,CAAC;AAC/B,aAAW,QAAQ,CAAC,cAAc;AAChC,0BAAsB,SAAS,IAAI,2BAAU,UAAU;AAAA,MACrD,2BAAU;AAAA,MACV,2BAAU,MAAM;AAAA,QACd,UAAU,2BAAU,OAAO,YAAY,yBAAyB;AAAA,QAChE,UAAU,2BAAU,OAAO,YAAY,mDAAmD;AAAA,QAC1F,QAAQ,2BAAU,KAAK,YAAY,2BAA2B;AAAA,QAC9D,uBAAuB,2BAAU,IAAI;AAAA,UACnC;AAAA,QACF;AAAA,MACF,CAAC;AAAA,IACH,CAAC,EACE,YAAY,wDAAwD,gCAAgC,EACpG,WAAW;AAAA,EAChB,CAAC;AACD,SAAO;AACT;",
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/globalProps/getGlobalAttributes.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import type { AllHTMLAttributes, AriaAttributes, DOMAttributes, HTMLAttributes } from 'react';\nimport { type TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';\nimport type { GlobalAttributes } from './constants.js';\nimport { globalAttributes } from './constants.js';\n\nexport type GlobalAttributesT<T = Element> = Omit<\n AriaAttributes &\n DOMAttributes<T> &\n HTMLAttributes<T> &\n Omit<AllHTMLAttributes<T>, 'as'> & { tabIndex?: TypescriptHelpersT.WCAGTabIndex },\n 'dangerouslySetInnerHTML'\n>;\n\nexport const getGlobalAttributes = <T, S = Element>(\n props: T,\n overrides?: Partial<GlobalAttributes<CallableFunction>>,\n): GlobalAttributesT<S> => {\n const globalAttributesObject: GlobalAttributesT<S> = {};\n Object.entries(props as Record<string, unknown>).forEach(([key, value]) => {\n if (key in globalAttributes || key.startsWith('data-')) {\n if (\n overrides &&\n key in overrides &&\n typeof value === 'function' &&\n typeof overrides[key as keyof GlobalAttributes] === 'function'\n ) {\n const newFunc = (...args: unknown[]) => {\n (value as CallableFunction)(...args);\n (overrides[key as keyof GlobalAttributes] as CallableFunction)(...args);\n };\n globalAttributesObject[key as keyof GlobalAttributesT] = newFunc as unknown as T[keyof T];\n } else {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n globalAttributesObject[key as keyof GlobalAttributesT] = value;\n }\n }\n });\n return globalAttributesObject;\n};\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACGvB,SAAS,wBAAwB;AAU1B,MAAM,sBAAsB,CACjC,OACA,cACyB;AACzB,QAAM,yBAA+C,CAAC;AACtD,SAAO,QAAQ,KAAgC,EAAE,QAAQ,CAAC,CAAC,KAAK,KAAK,MAAM;AACzE,QAAI,OAAO,oBAAoB,IAAI,WAAW,OAAO,GAAG;AACtD,UACE,aACA,OAAO,aACP,OAAO,UAAU,cACjB,OAAO,UAAU,GAA6B,MAAM,YACpD;AACA,cAAM,UAAU,IAAI,SAAoB;AACtC,UAAC,MAA2B,GAAG,IAAI;AACnC,UAAC,UAAU,GAA6B,EAAuB,GAAG,IAAI;AAAA,QACxE;AACA,+BAAuB,GAA8B,IAAI;AAAA,MAC3D,OAAO;AAEL,+BAAuB,GAA8B,IAAI;AAAA,MAC3D;AAAA,IACF;AAAA,EACF,CAAC;AACD,SAAO;AACT;",
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-explicit-any */\nimport type { AllHTMLAttributes, AriaAttributes, DOMAttributes, HTMLAttributes } from 'react';\nimport { type TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';\nimport type { GlobalAttributes } from './constants.js';\nimport { globalAttributes } from './constants.js';\n\ntype GenericGlobalAttributes<T = Element> = Omit<\n AriaAttributes &\n DOMAttributes<T> &\n HTMLAttributes<T> &\n AllHTMLAttributes<T> & { tabIndex?: TypescriptHelpersT.WCAGTabIndex },\n 'dangerouslySetInnerHTML' | 'as'\n>;\n\nexport type GlobalAttributesT<T = Element, S extends Record<string, any> = object> = Partial<\n Pick<S, keyof GenericGlobalAttributes<T>> & Omit<GenericGlobalAttributes<T>, keyof S>\n>;\n\nexport const getGlobalAttributes = <T, S = Element, P extends Record<string, any> = object>(\n props: T,\n overrides?: Partial<GlobalAttributes<CallableFunction>>,\n): GlobalAttributesT<S, P> => {\n const globalAttributesObject = {} as GlobalAttributesT<S, P>;\n Object.entries(props as Record<string, unknown>).forEach(([key, value]) => {\n if (key in globalAttributes || key.startsWith('data-')) {\n if (\n overrides &&\n key in overrides &&\n typeof value === 'function' &&\n typeof overrides[key as keyof GlobalAttributes] === 'function'\n ) {\n const newFunc = (...args: unknown[]) => {\n (value as CallableFunction)(...args);\n (overrides[key as keyof GlobalAttributes] as CallableFunction)(...args);\n };\n globalAttributesObject[key as keyof GlobalAttributesT<S, P>] = newFunc as unknown as T[keyof T];\n } else {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n globalAttributesObject[key as keyof GlobalAttributesT<S, P>] = value;\n }\n }\n });\n return globalAttributesObject;\n};\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACIvB,SAAS,wBAAwB;AAc1B,MAAM,sBAAsB,CACjC,OACA,cAC4B;AAC5B,QAAM,yBAAyB,CAAC;AAChC,SAAO,QAAQ,KAAgC,EAAE,QAAQ,CAAC,CAAC,KAAK,KAAK,MAAM;AACzE,QAAI,OAAO,oBAAoB,IAAI,WAAW,OAAO,GAAG;AACtD,UACE,aACA,OAAO,aACP,OAAO,UAAU,cACjB,OAAO,UAAU,GAA6B,MAAM,YACpD;AACA,cAAM,UAAU,IAAI,SAAoB;AACtC,UAAC,MAA2B,GAAG,IAAI;AACnC,UAAC,UAAU,GAA6B,EAAuB,GAAG,IAAI;AAAA,QACxE;AACA,+BAAuB,GAAoC,IAAI;AAAA,MACjE,OAAO;AAEL,+BAAuB,GAAoC,IAAI;AAAA,MACjE;AAAA,IACF;AAAA,EACF,CAAC;AACD,SAAO;AACT;",
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/globalProps/useGetGlobalAttributes.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { useMemo } from 'react';\nimport type { GlobalAttributes } from './constants.js';\nimport { getGlobalAttributes } from './getGlobalAttributes.js';\nimport type { GlobalAttributesT } from './getGlobalAttributes.js';\n\nexport const useGetGlobalAttributes = <T, S = Element>(\n props: T,\n overrides?: Partial<GlobalAttributes<CallableFunction>>,\n): GlobalAttributesT<S> => {\n const componentGlobalAttributes: GlobalAttributesT<S> = useMemo(\n () => getGlobalAttributes(props, overrides),\n [props, overrides],\n );\n return componentGlobalAttributes;\n};\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,eAAe;AAExB,SAAS,2BAA2B;AAG7B,MAAM,yBAAyB,CACpC,OACA,cACyB;AACzB,QAAM,4BAAkD;AAAA,IACtD,MAAM,oBAAoB,OAAO,SAAS;AAAA,IAC1C,CAAC,OAAO,SAAS;AAAA,EACnB;AACA,SAAO;AACT;",
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { useMemo } from 'react';\nimport type { GlobalAttributes } from './constants.js';\nimport { getGlobalAttributes } from './getGlobalAttributes.js';\nimport type { GlobalAttributesT } from './getGlobalAttributes.js';\n\nexport const useGetGlobalAttributes = <P extends object, S = Element, T extends object = object>(\n props: P,\n overrides?: Partial<GlobalAttributes<CallableFunction>>,\n): GlobalAttributesT<S, T> => {\n const componentGlobalAttributes: GlobalAttributesT<S, T> = useMemo(\n () => getGlobalAttributes<P, S, T>(props, overrides),\n [props, overrides],\n );\n return componentGlobalAttributes;\n};\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,eAAe;AAExB,SAAS,2BAA2B;AAG7B,MAAM,yBAAyB,CACpC,OACA,cAC4B;AAC5B,QAAM,4BAAqD;AAAA,IACzD,MAAM,oBAA6B,OAAO,SAAS;AAAA,IACnD,CAAC,OAAO,SAAS;AAAA,EACnB;AACA,SAAO;AACT;",
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/index.ts"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export { useMemoMergePropsWithDefault } from './defaultProps/index.js';\nexport { getAriaProps, getDataProps } from './getProps/index.js';\nexport {\n getGlobalAttributes,\n useGetGlobalAttributes,\n globalAttributesPropTypes,\n type GlobalAttributesT,\n} from './globalProps/index.js';\nexport { describe, PropTypes, type DSPropTypesSchema } from './propTypes/index.js';\nexport {\n throwTypeError,\n throwRequiredError,\n useValidateTypescriptPropTypes,\n validateTypescriptPropTypesImplementation,\n} from './validation/index.js';\nexport { type XstyledProps, useGetXstyledProps, xstyledPropTypes } from './xstyledProps/index.js';\nexport { useDeprecateComponent } from './useDeprecateComponent/index.js';\n\nexport { getPropsPerDatatestid, getPropsPerDatatestIdPropTypes } from './propsPerDataTestId/index.js';\nexport { getPropsPerSlotPropTypes } from './propsPerSlot/index.js';\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,oCAAoC;AAC7C,SAAS,cAAc,oBAAoB;AAC3C;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AACP,SAAS,UAAU,iBAAyC;AAC5D;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAA4B,oBAAoB,wBAAwB;AACxE,SAAS,6BAA6B;AAEtC,SAAS,uBAAuB,sCAAsC;AACtE,SAAS,gCAAgC;",
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export { useMemoMergePropsWithDefault } from './defaultProps/index.js';\nexport { getAriaProps, getDataProps } from './getProps/index.js';\nexport {\n getGlobalAttributes,\n useGetGlobalAttributes,\n globalAttributesPropTypes,\n type GlobalAttributesT,\n} from './globalProps/index.js';\nexport { describe, PropTypes, type DSPropTypesSchema } from './propTypes/index.js';\nexport type { ValidationMap } from 'prop-types';\nexport {\n throwTypeError,\n throwRequiredError,\n useValidateTypescriptPropTypes,\n validateTypescriptPropTypesImplementation,\n} from './validation/index.js';\nexport { type XstyledProps, useGetXstyledProps, xstyledPropTypes } from './xstyledProps/index.js';\nexport { useDeprecateComponent } from './useDeprecateComponent/index.js';\n\nexport { getPropsPerDatatestid, getPropsPerDatatestIdPropTypes } from './propsPerDataTestId/index.js';\nexport { getPropsPerSlotPropTypes } from './propsPerSlot/index.js';\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,oCAAoC;AAC7C,SAAS,cAAc,oBAAoB;AAC3C;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AACP,SAAS,UAAU,iBAAyC;AAE5D;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAA4B,oBAAoB,wBAAwB;AACxE,SAAS,6BAA6B;AAEtC,SAAS,uBAAuB,sCAAsC;AACtE,SAAS,gCAAgC;",
6
6
  "names": []
7
7
  }
@@ -18,14 +18,17 @@ const getPropsPerSlotPropTypes = (name, slots) => {
18
18
  const leafValues = getLeafValues(name, slots);
19
19
  const propsPerSlotPropTypes = {};
20
20
  leafValues.forEach((leafValue) => {
21
- propsPerSlotPropTypes[leafValue] = PropTypes.shape({
22
- "aria-*": PropTypes.string.description("Aria related properties"),
23
- "data-*": PropTypes.string.description("Any data property to attach to the root container"),
24
- "on-*": PropTypes.func.description("Any supported React event"),
25
- "all HTML attributes": PropTypes.any.description(
26
- "HTML attributes such as id, className, autoComplete, href and so on"
27
- )
28
- }).description(`an object containing the definitions for ${leafValue} aria and data props`).dataTestId();
21
+ propsPerSlotPropTypes[leafValue] = PropTypes.oneOfType([
22
+ PropTypes.func,
23
+ PropTypes.shape({
24
+ "aria-*": PropTypes.string.description("Aria related properties"),
25
+ "data-*": PropTypes.string.description("Any data property to attach to the root container"),
26
+ "on-*": PropTypes.func.description("Any supported React event"),
27
+ "all HTML attributes": PropTypes.any.description(
28
+ "HTML attributes such as id, className, autoComplete, href and so on"
29
+ )
30
+ })
31
+ ]).description(`An object or function containing the definitions for ${leafValue} aria and data props.`).dataTestId();
29
32
  });
30
33
  return propsPerSlotPropTypes;
31
34
  };
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/propsPerSlot/getPropsPerSlotPropTypes.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable indent */\nimport { type TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';\nimport { PropTypes } from '../propTypes/index.js';\nimport type { ReactDescT } from '../propTypes/types.js';\n\ntype PropsPerSlotPropTypes<Name extends string, Slots extends Record<string, string>> = {\n [key in keyof Required<TypescriptHelpersT.PropsForGlobalOnSlots<Name, Slots>>]: ReactDescT;\n};\n\nconst getLeafValues = <Name extends string, Slots extends Record<string, string>>(name: Name, slots: Slots) => {\n const keys = Object.keys(slots);\n const leafValues = keys.reduce(\n (acc, key) => {\n const value = slots[key];\n acc.push(\n `ds${name.slice(2)}${value\n .split('-')\n .map((word) => word[0].toUpperCase() + word.slice(1))\n .join('')}` as keyof PropsPerSlotPropTypes<Name, Slots>,\n );\n return acc;\n },\n [] as (keyof PropsPerSlotPropTypes<Name, Slots>)[],\n );\n return leafValues;\n};\n\nexport const getPropsPerSlotPropTypes = <Name extends string, Slots extends Record<string, string>>(\n name: Name,\n slots: Slots,\n): PropsPerSlotPropTypes<Name, Slots> => {\n const leafValues = getLeafValues(name, slots);\n const propsPerSlotPropTypes = {} as PropsPerSlotPropTypes<Name, Slots>;\n leafValues.forEach((leafValue) => {\n propsPerSlotPropTypes[leafValue] = PropTypes.shape({\n 'aria-*': PropTypes.string.description('Aria related properties'),\n 'data-*': PropTypes.string.description('Any data property to attach to the root container'),\n 'on-*': PropTypes.func.description('Any supported React event'),\n 'all HTML attributes': PropTypes.any.description(\n 'HTML attributes such as id, className, autoComplete, href and so on',\n ),\n })\n .description(`an object containing the definitions for ${leafValue} aria and data props`)\n .dataTestId();\n });\n return propsPerSlotPropTypes;\n};\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACEvB,SAAS,iBAAiB;AAO1B,MAAM,gBAAgB,CAA4D,MAAY,UAAiB;AAC7G,QAAM,OAAO,OAAO,KAAK,KAAK;AAC9B,QAAM,aAAa,KAAK;AAAA,IACtB,CAAC,KAAK,QAAQ;AACZ,YAAM,QAAQ,MAAM,GAAG;AACvB,UAAI;AAAA,QACF,KAAK,KAAK,MAAM,CAAC,IAAI,MAClB,MAAM,GAAG,EACT,IAAI,CAAC,SAAS,KAAK,CAAC,EAAE,YAAY,IAAI,KAAK,MAAM,CAAC,CAAC,EACnD,KAAK,EAAE;AAAA,MACZ;AACA,aAAO;AAAA,IACT;AAAA,IACA,CAAC;AAAA,EACH;AACA,SAAO;AACT;AAEO,MAAM,2BAA2B,CACtC,MACA,UACuC;AACvC,QAAM,aAAa,cAAc,MAAM,KAAK;AAC5C,QAAM,wBAAwB,CAAC;AAC/B,aAAW,QAAQ,CAAC,cAAc;AAChC,0BAAsB,SAAS,IAAI,UAAU,MAAM;AAAA,MACjD,UAAU,UAAU,OAAO,YAAY,yBAAyB;AAAA,MAChE,UAAU,UAAU,OAAO,YAAY,mDAAmD;AAAA,MAC1F,QAAQ,UAAU,KAAK,YAAY,2BAA2B;AAAA,MAC9D,uBAAuB,UAAU,IAAI;AAAA,QACnC;AAAA,MACF;AAAA,IACF,CAAC,EACE,YAAY,4CAA4C,+BAA+B,EACvF,WAAW;AAAA,EAChB,CAAC;AACD,SAAO;AACT;",
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable indent */\nimport { type TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';\nimport { PropTypes } from '../propTypes/index.js';\nimport type { ReactDescT } from '../propTypes/types.js';\n\ntype PropsPerSlotPropTypes<Name extends string, Slots extends Record<string, string>> = {\n [key in keyof Required<TypescriptHelpersT.PropsForGlobalOnSlots<Name, Slots>>]: ReactDescT;\n};\n\nconst getLeafValues = <Name extends string, Slots extends Record<string, string>>(name: Name, slots: Slots) => {\n const keys = Object.keys(slots);\n const leafValues = keys.reduce(\n (acc, key) => {\n const value = slots[key];\n acc.push(\n `ds${name.slice(2)}${value\n .split('-')\n .map((word) => word[0].toUpperCase() + word.slice(1))\n .join('')}` as keyof PropsPerSlotPropTypes<Name, Slots>,\n );\n return acc;\n },\n [] as (keyof PropsPerSlotPropTypes<Name, Slots>)[],\n );\n return leafValues;\n};\n\nexport const getPropsPerSlotPropTypes = <Name extends string, Slots extends Record<string, string>>(\n name: Name,\n slots: Slots,\n): PropsPerSlotPropTypes<Name, Slots> => {\n const leafValues = getLeafValues(name, slots);\n const propsPerSlotPropTypes = {} as PropsPerSlotPropTypes<Name, Slots>;\n leafValues.forEach((leafValue) => {\n propsPerSlotPropTypes[leafValue] = PropTypes.oneOfType([\n PropTypes.func,\n PropTypes.shape({\n 'aria-*': PropTypes.string.description('Aria related properties'),\n 'data-*': PropTypes.string.description('Any data property to attach to the root container'),\n 'on-*': PropTypes.func.description('Any supported React event'),\n 'all HTML attributes': PropTypes.any.description(\n 'HTML attributes such as id, className, autoComplete, href and so on',\n ),\n }),\n ])\n .description(`An object or function containing the definitions for ${leafValue} aria and data props.`)\n .dataTestId();\n });\n return propsPerSlotPropTypes;\n};\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACEvB,SAAS,iBAAiB;AAO1B,MAAM,gBAAgB,CAA4D,MAAY,UAAiB;AAC7G,QAAM,OAAO,OAAO,KAAK,KAAK;AAC9B,QAAM,aAAa,KAAK;AAAA,IACtB,CAAC,KAAK,QAAQ;AACZ,YAAM,QAAQ,MAAM,GAAG;AACvB,UAAI;AAAA,QACF,KAAK,KAAK,MAAM,CAAC,IAAI,MAClB,MAAM,GAAG,EACT,IAAI,CAAC,SAAS,KAAK,CAAC,EAAE,YAAY,IAAI,KAAK,MAAM,CAAC,CAAC,EACnD,KAAK,EAAE;AAAA,MACZ;AACA,aAAO;AAAA,IACT;AAAA,IACA,CAAC;AAAA,EACH;AACA,SAAO;AACT;AAEO,MAAM,2BAA2B,CACtC,MACA,UACuC;AACvC,QAAM,aAAa,cAAc,MAAM,KAAK;AAC5C,QAAM,wBAAwB,CAAC;AAC/B,aAAW,QAAQ,CAAC,cAAc;AAChC,0BAAsB,SAAS,IAAI,UAAU,UAAU;AAAA,MACrD,UAAU;AAAA,MACV,UAAU,MAAM;AAAA,QACd,UAAU,UAAU,OAAO,YAAY,yBAAyB;AAAA,QAChE,UAAU,UAAU,OAAO,YAAY,mDAAmD;AAAA,QAC1F,QAAQ,UAAU,KAAK,YAAY,2BAA2B;AAAA,QAC9D,uBAAuB,UAAU,IAAI;AAAA,UACnC;AAAA,QACF;AAAA,MACF,CAAC;AAAA,IACH,CAAC,EACE,YAAY,wDAAwD,gCAAgC,EACpG,WAAW;AAAA,EAChB,CAAC;AACD,SAAO;AACT;",
6
6
  "names": []
7
7
  }
@@ -1,7 +1,9 @@
1
1
  import type { AllHTMLAttributes, AriaAttributes, DOMAttributes, HTMLAttributes } from 'react';
2
2
  import { type TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';
3
3
  import type { GlobalAttributes } from './constants.js';
4
- export type GlobalAttributesT<T = Element> = Omit<AriaAttributes & DOMAttributes<T> & HTMLAttributes<T> & Omit<AllHTMLAttributes<T>, 'as'> & {
4
+ type GenericGlobalAttributes<T = Element> = Omit<AriaAttributes & DOMAttributes<T> & HTMLAttributes<T> & AllHTMLAttributes<T> & {
5
5
  tabIndex?: TypescriptHelpersT.WCAGTabIndex;
6
- }, 'dangerouslySetInnerHTML'>;
7
- export declare const getGlobalAttributes: <T, S = Element>(props: T, overrides?: Partial<GlobalAttributes<CallableFunction>>) => GlobalAttributesT<S>;
6
+ }, 'dangerouslySetInnerHTML' | 'as'>;
7
+ export type GlobalAttributesT<T = Element, S extends Record<string, any> = object> = Partial<Pick<S, keyof GenericGlobalAttributes<T>> & Omit<GenericGlobalAttributes<T>, keyof S>>;
8
+ export declare const getGlobalAttributes: <T, S = Element, P extends Record<string, any> = object>(props: T, overrides?: Partial<GlobalAttributes<CallableFunction>>) => Partial<Pick<P, "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "form" | "list" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "async" | "autoComplete" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "cite" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "data" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "label" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "noValidate" | "open" | "optimum" | "pattern" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "span" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "summary" | "target" | "type" | "useMap" | "value" | "width" | "wmode" | "wrap"> & Omit<GenericGlobalAttributes<S>, keyof P>>;
9
+ export {};
@@ -1,3 +1,368 @@
1
+ /// <reference types="react" />
1
2
  import type { GlobalAttributes } from './constants.js';
2
3
  import type { GlobalAttributesT } from './getGlobalAttributes.js';
3
- export declare const useGetGlobalAttributes: <T, S = Element>(props: T, overrides?: Partial<GlobalAttributes<CallableFunction>>) => GlobalAttributesT<S>;
4
+ export declare const useGetGlobalAttributes: <P extends object, S = Element, T extends object = object>(props: P, overrides?: Partial<GlobalAttributes<CallableFunction>>) => Partial<Pick<T, "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "form" | "list" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "async" | "autoComplete" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "cite" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "data" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "label" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "noValidate" | "open" | "optimum" | "pattern" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "span" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "summary" | "target" | "type" | "useMap" | "value" | "width" | "wmode" | "wrap"> & Omit<{
5
+ "aria-activedescendant"?: string | undefined;
6
+ "aria-atomic"?: (boolean | "true" | "false") | undefined;
7
+ "aria-autocomplete"?: "list" | "none" | "inline" | "both" | undefined;
8
+ "aria-braillelabel"?: string | undefined;
9
+ "aria-brailleroledescription"?: string | undefined;
10
+ "aria-busy"?: (boolean | "true" | "false") | undefined;
11
+ "aria-checked"?: boolean | "true" | "false" | "mixed" | undefined;
12
+ "aria-colcount"?: number | undefined;
13
+ "aria-colindex"?: number | undefined;
14
+ "aria-colindextext"?: string | undefined;
15
+ "aria-colspan"?: number | undefined;
16
+ "aria-controls"?: string | undefined;
17
+ "aria-current"?: boolean | "true" | "false" | "step" | "page" | "location" | "date" | "time" | undefined;
18
+ "aria-describedby"?: string | undefined;
19
+ "aria-description"?: string | undefined;
20
+ "aria-details"?: string | undefined;
21
+ "aria-disabled"?: (boolean | "true" | "false") | undefined;
22
+ "aria-dropeffect"?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
23
+ "aria-errormessage"?: string | undefined;
24
+ "aria-expanded"?: (boolean | "true" | "false") | undefined;
25
+ "aria-flowto"?: string | undefined;
26
+ "aria-grabbed"?: (boolean | "true" | "false") | undefined;
27
+ "aria-haspopup"?: boolean | "true" | "false" | "dialog" | "grid" | "listbox" | "menu" | "tree" | undefined;
28
+ "aria-hidden"?: (boolean | "true" | "false") | undefined;
29
+ "aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
30
+ "aria-keyshortcuts"?: string | undefined;
31
+ "aria-label"?: string | undefined;
32
+ "aria-labelledby"?: string | undefined;
33
+ "aria-level"?: number | undefined;
34
+ "aria-live"?: "off" | "assertive" | "polite" | undefined;
35
+ "aria-modal"?: (boolean | "true" | "false") | undefined;
36
+ "aria-multiline"?: (boolean | "true" | "false") | undefined;
37
+ "aria-multiselectable"?: (boolean | "true" | "false") | undefined;
38
+ "aria-orientation"?: "horizontal" | "vertical" | undefined;
39
+ "aria-owns"?: string | undefined;
40
+ "aria-placeholder"?: string | undefined;
41
+ "aria-posinset"?: number | undefined;
42
+ "aria-pressed"?: boolean | "true" | "false" | "mixed" | undefined;
43
+ "aria-readonly"?: (boolean | "true" | "false") | undefined;
44
+ "aria-relevant"?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
45
+ "aria-required"?: (boolean | "true" | "false") | undefined;
46
+ "aria-roledescription"?: string | undefined;
47
+ "aria-rowcount"?: number | undefined;
48
+ "aria-rowindex"?: number | undefined;
49
+ "aria-rowindextext"?: string | undefined;
50
+ "aria-rowspan"?: number | undefined;
51
+ "aria-selected"?: (boolean | "true" | "false") | undefined;
52
+ "aria-setsize"?: number | undefined;
53
+ "aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
54
+ "aria-valuemax"?: number | undefined;
55
+ "aria-valuemin"?: number | undefined;
56
+ "aria-valuenow"?: number | undefined;
57
+ "aria-valuetext"?: string | undefined;
58
+ children?: import("react").ReactNode;
59
+ onCopy?: import("react").ClipboardEventHandler<S> | undefined;
60
+ onCopyCapture?: import("react").ClipboardEventHandler<S> | undefined;
61
+ onCut?: import("react").ClipboardEventHandler<S> | undefined;
62
+ onCutCapture?: import("react").ClipboardEventHandler<S> | undefined;
63
+ onPaste?: import("react").ClipboardEventHandler<S> | undefined;
64
+ onPasteCapture?: import("react").ClipboardEventHandler<S> | undefined;
65
+ onCompositionEnd?: import("react").CompositionEventHandler<S> | undefined;
66
+ onCompositionEndCapture?: import("react").CompositionEventHandler<S> | undefined;
67
+ onCompositionStart?: import("react").CompositionEventHandler<S> | undefined;
68
+ onCompositionStartCapture?: import("react").CompositionEventHandler<S> | undefined;
69
+ onCompositionUpdate?: import("react").CompositionEventHandler<S> | undefined;
70
+ onCompositionUpdateCapture?: import("react").CompositionEventHandler<S> | undefined;
71
+ onFocus?: import("react").FocusEventHandler<S> | undefined;
72
+ onFocusCapture?: import("react").FocusEventHandler<S> | undefined;
73
+ onBlur?: import("react").FocusEventHandler<S> | undefined;
74
+ onBlurCapture?: import("react").FocusEventHandler<S> | undefined;
75
+ onChange?: import("react").FormEventHandler<S> | undefined;
76
+ onChangeCapture?: import("react").FormEventHandler<S> | undefined;
77
+ onBeforeInput?: import("react").FormEventHandler<S> | undefined;
78
+ onBeforeInputCapture?: import("react").FormEventHandler<S> | undefined;
79
+ onInput?: import("react").FormEventHandler<S> | undefined;
80
+ onInputCapture?: import("react").FormEventHandler<S> | undefined;
81
+ onReset?: import("react").FormEventHandler<S> | undefined;
82
+ onResetCapture?: import("react").FormEventHandler<S> | undefined;
83
+ onSubmit?: import("react").FormEventHandler<S> | undefined;
84
+ onSubmitCapture?: import("react").FormEventHandler<S> | undefined;
85
+ onInvalid?: import("react").FormEventHandler<S> | undefined;
86
+ onInvalidCapture?: import("react").FormEventHandler<S> | undefined;
87
+ onLoad?: import("react").ReactEventHandler<S> | undefined;
88
+ onLoadCapture?: import("react").ReactEventHandler<S> | undefined;
89
+ onError?: import("react").ReactEventHandler<S> | undefined;
90
+ onErrorCapture?: import("react").ReactEventHandler<S> | undefined;
91
+ onKeyDown?: import("react").KeyboardEventHandler<S> | undefined;
92
+ onKeyDownCapture?: import("react").KeyboardEventHandler<S> | undefined;
93
+ onKeyPress?: import("react").KeyboardEventHandler<S> | undefined;
94
+ onKeyPressCapture?: import("react").KeyboardEventHandler<S> | undefined;
95
+ onKeyUp?: import("react").KeyboardEventHandler<S> | undefined;
96
+ onKeyUpCapture?: import("react").KeyboardEventHandler<S> | undefined;
97
+ onAbort?: import("react").ReactEventHandler<S> | undefined;
98
+ onAbortCapture?: import("react").ReactEventHandler<S> | undefined;
99
+ onCanPlay?: import("react").ReactEventHandler<S> | undefined;
100
+ onCanPlayCapture?: import("react").ReactEventHandler<S> | undefined;
101
+ onCanPlayThrough?: import("react").ReactEventHandler<S> | undefined;
102
+ onCanPlayThroughCapture?: import("react").ReactEventHandler<S> | undefined;
103
+ onDurationChange?: import("react").ReactEventHandler<S> | undefined;
104
+ onDurationChangeCapture?: import("react").ReactEventHandler<S> | undefined;
105
+ onEmptied?: import("react").ReactEventHandler<S> | undefined;
106
+ onEmptiedCapture?: import("react").ReactEventHandler<S> | undefined;
107
+ onEncrypted?: import("react").ReactEventHandler<S> | undefined;
108
+ onEncryptedCapture?: import("react").ReactEventHandler<S> | undefined;
109
+ onEnded?: import("react").ReactEventHandler<S> | undefined;
110
+ onEndedCapture?: import("react").ReactEventHandler<S> | undefined;
111
+ onLoadedData?: import("react").ReactEventHandler<S> | undefined;
112
+ onLoadedDataCapture?: import("react").ReactEventHandler<S> | undefined;
113
+ onLoadedMetadata?: import("react").ReactEventHandler<S> | undefined;
114
+ onLoadedMetadataCapture?: import("react").ReactEventHandler<S> | undefined;
115
+ onLoadStart?: import("react").ReactEventHandler<S> | undefined;
116
+ onLoadStartCapture?: import("react").ReactEventHandler<S> | undefined;
117
+ onPause?: import("react").ReactEventHandler<S> | undefined;
118
+ onPauseCapture?: import("react").ReactEventHandler<S> | undefined;
119
+ onPlay?: import("react").ReactEventHandler<S> | undefined;
120
+ onPlayCapture?: import("react").ReactEventHandler<S> | undefined;
121
+ onPlaying?: import("react").ReactEventHandler<S> | undefined;
122
+ onPlayingCapture?: import("react").ReactEventHandler<S> | undefined;
123
+ onProgress?: import("react").ReactEventHandler<S> | undefined;
124
+ onProgressCapture?: import("react").ReactEventHandler<S> | undefined;
125
+ onRateChange?: import("react").ReactEventHandler<S> | undefined;
126
+ onRateChangeCapture?: import("react").ReactEventHandler<S> | undefined;
127
+ onResize?: import("react").ReactEventHandler<S> | undefined;
128
+ onResizeCapture?: import("react").ReactEventHandler<S> | undefined;
129
+ onSeeked?: import("react").ReactEventHandler<S> | undefined;
130
+ onSeekedCapture?: import("react").ReactEventHandler<S> | undefined;
131
+ onSeeking?: import("react").ReactEventHandler<S> | undefined;
132
+ onSeekingCapture?: import("react").ReactEventHandler<S> | undefined;
133
+ onStalled?: import("react").ReactEventHandler<S> | undefined;
134
+ onStalledCapture?: import("react").ReactEventHandler<S> | undefined;
135
+ onSuspend?: import("react").ReactEventHandler<S> | undefined;
136
+ onSuspendCapture?: import("react").ReactEventHandler<S> | undefined;
137
+ onTimeUpdate?: import("react").ReactEventHandler<S> | undefined;
138
+ onTimeUpdateCapture?: import("react").ReactEventHandler<S> | undefined;
139
+ onVolumeChange?: import("react").ReactEventHandler<S> | undefined;
140
+ onVolumeChangeCapture?: import("react").ReactEventHandler<S> | undefined;
141
+ onWaiting?: import("react").ReactEventHandler<S> | undefined;
142
+ onWaitingCapture?: import("react").ReactEventHandler<S> | undefined;
143
+ onAuxClick?: import("react").MouseEventHandler<S> | undefined;
144
+ onAuxClickCapture?: import("react").MouseEventHandler<S> | undefined;
145
+ onClick?: import("react").MouseEventHandler<S> | undefined;
146
+ onClickCapture?: import("react").MouseEventHandler<S> | undefined;
147
+ onContextMenu?: import("react").MouseEventHandler<S> | undefined;
148
+ onContextMenuCapture?: import("react").MouseEventHandler<S> | undefined;
149
+ onDoubleClick?: import("react").MouseEventHandler<S> | undefined;
150
+ onDoubleClickCapture?: import("react").MouseEventHandler<S> | undefined;
151
+ onDrag?: import("react").DragEventHandler<S> | undefined;
152
+ onDragCapture?: import("react").DragEventHandler<S> | undefined;
153
+ onDragEnd?: import("react").DragEventHandler<S> | undefined;
154
+ onDragEndCapture?: import("react").DragEventHandler<S> | undefined;
155
+ onDragEnter?: import("react").DragEventHandler<S> | undefined;
156
+ onDragEnterCapture?: import("react").DragEventHandler<S> | undefined;
157
+ onDragExit?: import("react").DragEventHandler<S> | undefined;
158
+ onDragExitCapture?: import("react").DragEventHandler<S> | undefined;
159
+ onDragLeave?: import("react").DragEventHandler<S> | undefined;
160
+ onDragLeaveCapture?: import("react").DragEventHandler<S> | undefined;
161
+ onDragOver?: import("react").DragEventHandler<S> | undefined;
162
+ onDragOverCapture?: import("react").DragEventHandler<S> | undefined;
163
+ onDragStart?: import("react").DragEventHandler<S> | undefined;
164
+ onDragStartCapture?: import("react").DragEventHandler<S> | undefined;
165
+ onDrop?: import("react").DragEventHandler<S> | undefined;
166
+ onDropCapture?: import("react").DragEventHandler<S> | undefined;
167
+ onMouseDown?: import("react").MouseEventHandler<S> | undefined;
168
+ onMouseDownCapture?: import("react").MouseEventHandler<S> | undefined;
169
+ onMouseEnter?: import("react").MouseEventHandler<S> | undefined;
170
+ onMouseLeave?: import("react").MouseEventHandler<S> | undefined;
171
+ onMouseMove?: import("react").MouseEventHandler<S> | undefined;
172
+ onMouseMoveCapture?: import("react").MouseEventHandler<S> | undefined;
173
+ onMouseOut?: import("react").MouseEventHandler<S> | undefined;
174
+ onMouseOutCapture?: import("react").MouseEventHandler<S> | undefined;
175
+ onMouseOver?: import("react").MouseEventHandler<S> | undefined;
176
+ onMouseOverCapture?: import("react").MouseEventHandler<S> | undefined;
177
+ onMouseUp?: import("react").MouseEventHandler<S> | undefined;
178
+ onMouseUpCapture?: import("react").MouseEventHandler<S> | undefined;
179
+ onSelect?: import("react").ReactEventHandler<S> | undefined;
180
+ onSelectCapture?: import("react").ReactEventHandler<S> | undefined;
181
+ onTouchCancel?: import("react").TouchEventHandler<S> | undefined;
182
+ onTouchCancelCapture?: import("react").TouchEventHandler<S> | undefined;
183
+ onTouchEnd?: import("react").TouchEventHandler<S> | undefined;
184
+ onTouchEndCapture?: import("react").TouchEventHandler<S> | undefined;
185
+ onTouchMove?: import("react").TouchEventHandler<S> | undefined;
186
+ onTouchMoveCapture?: import("react").TouchEventHandler<S> | undefined;
187
+ onTouchStart?: import("react").TouchEventHandler<S> | undefined;
188
+ onTouchStartCapture?: import("react").TouchEventHandler<S> | undefined;
189
+ onPointerDown?: import("react").PointerEventHandler<S> | undefined;
190
+ onPointerDownCapture?: import("react").PointerEventHandler<S> | undefined;
191
+ onPointerMove?: import("react").PointerEventHandler<S> | undefined;
192
+ onPointerMoveCapture?: import("react").PointerEventHandler<S> | undefined;
193
+ onPointerUp?: import("react").PointerEventHandler<S> | undefined;
194
+ onPointerUpCapture?: import("react").PointerEventHandler<S> | undefined;
195
+ onPointerCancel?: import("react").PointerEventHandler<S> | undefined;
196
+ onPointerCancelCapture?: import("react").PointerEventHandler<S> | undefined;
197
+ onPointerEnter?: import("react").PointerEventHandler<S> | undefined;
198
+ onPointerLeave?: import("react").PointerEventHandler<S> | undefined;
199
+ onPointerOver?: import("react").PointerEventHandler<S> | undefined;
200
+ onPointerOverCapture?: import("react").PointerEventHandler<S> | undefined;
201
+ onPointerOut?: import("react").PointerEventHandler<S> | undefined;
202
+ onPointerOutCapture?: import("react").PointerEventHandler<S> | undefined;
203
+ onGotPointerCapture?: import("react").PointerEventHandler<S> | undefined;
204
+ onGotPointerCaptureCapture?: import("react").PointerEventHandler<S> | undefined;
205
+ onLostPointerCapture?: import("react").PointerEventHandler<S> | undefined;
206
+ onLostPointerCaptureCapture?: import("react").PointerEventHandler<S> | undefined;
207
+ onScroll?: import("react").UIEventHandler<S> | undefined;
208
+ onScrollCapture?: import("react").UIEventHandler<S> | undefined;
209
+ onWheel?: import("react").WheelEventHandler<S> | undefined;
210
+ onWheelCapture?: import("react").WheelEventHandler<S> | undefined;
211
+ onAnimationStart?: import("react").AnimationEventHandler<S> | undefined;
212
+ onAnimationStartCapture?: import("react").AnimationEventHandler<S> | undefined;
213
+ onAnimationEnd?: import("react").AnimationEventHandler<S> | undefined;
214
+ onAnimationEndCapture?: import("react").AnimationEventHandler<S> | undefined;
215
+ onAnimationIteration?: import("react").AnimationEventHandler<S> | undefined;
216
+ onAnimationIterationCapture?: import("react").AnimationEventHandler<S> | undefined;
217
+ onTransitionEnd?: import("react").TransitionEventHandler<S> | undefined;
218
+ onTransitionEndCapture?: import("react").TransitionEventHandler<S> | undefined;
219
+ form?: string | undefined;
220
+ list?: string | undefined;
221
+ defaultChecked?: boolean | undefined;
222
+ defaultValue?: string | number | readonly string[] | undefined;
223
+ suppressContentEditableWarning?: boolean | undefined;
224
+ suppressHydrationWarning?: boolean | undefined;
225
+ accessKey?: string | undefined;
226
+ autoFocus?: boolean | undefined;
227
+ className?: string | undefined;
228
+ contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
229
+ contextMenu?: string | undefined;
230
+ dir?: string | undefined;
231
+ draggable?: (boolean | "true" | "false") | undefined;
232
+ hidden?: boolean | undefined;
233
+ id?: string | undefined;
234
+ lang?: string | undefined;
235
+ nonce?: string | undefined;
236
+ slot?: string | undefined;
237
+ spellCheck?: (boolean | "true" | "false") | undefined;
238
+ style?: import("react").CSSProperties | undefined;
239
+ tabIndex?: 0 | -1 | undefined;
240
+ title?: string | undefined;
241
+ translate?: "yes" | "no" | undefined;
242
+ radioGroup?: string | undefined;
243
+ role?: import("react").AriaRole | undefined;
244
+ about?: string | undefined;
245
+ content?: string | undefined;
246
+ datatype?: string | undefined;
247
+ inlist?: any;
248
+ prefix?: string | undefined;
249
+ property?: string | undefined;
250
+ rel?: string | undefined;
251
+ resource?: string | undefined;
252
+ rev?: string | undefined;
253
+ typeof?: string | undefined;
254
+ vocab?: string | undefined;
255
+ autoCapitalize?: string | undefined;
256
+ autoCorrect?: string | undefined;
257
+ autoSave?: string | undefined;
258
+ color?: string | undefined;
259
+ itemProp?: string | undefined;
260
+ itemScope?: boolean | undefined;
261
+ itemType?: string | undefined;
262
+ itemID?: string | undefined;
263
+ itemRef?: string | undefined;
264
+ results?: number | undefined;
265
+ security?: string | undefined;
266
+ unselectable?: "on" | "off" | undefined;
267
+ inputMode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
268
+ is?: string | undefined;
269
+ accept?: string | undefined;
270
+ acceptCharset?: string | undefined;
271
+ action?: string | undefined;
272
+ allowFullScreen?: boolean | undefined;
273
+ allowTransparency?: boolean | undefined;
274
+ alt?: string | undefined;
275
+ async?: boolean | undefined;
276
+ autoComplete?: string | undefined;
277
+ autoPlay?: boolean | undefined;
278
+ capture?: boolean | "user" | "environment" | undefined;
279
+ cellPadding?: string | number | undefined;
280
+ cellSpacing?: string | number | undefined;
281
+ charSet?: string | undefined;
282
+ challenge?: string | undefined;
283
+ checked?: boolean | undefined;
284
+ cite?: string | undefined;
285
+ classID?: string | undefined;
286
+ cols?: number | undefined;
287
+ colSpan?: number | undefined;
288
+ controls?: boolean | undefined;
289
+ coords?: string | undefined;
290
+ crossOrigin?: "" | "anonymous" | "use-credentials" | undefined;
291
+ data?: string | undefined;
292
+ dateTime?: string | undefined;
293
+ default?: boolean | undefined;
294
+ defer?: boolean | undefined;
295
+ disabled?: boolean | undefined;
296
+ download?: any;
297
+ encType?: string | undefined;
298
+ formAction?: string | undefined;
299
+ formEncType?: string | undefined;
300
+ formMethod?: string | undefined;
301
+ formNoValidate?: boolean | undefined;
302
+ formTarget?: string | undefined;
303
+ frameBorder?: string | number | undefined;
304
+ headers?: string | undefined;
305
+ height?: string | number | undefined;
306
+ high?: number | undefined;
307
+ href?: string | undefined;
308
+ hrefLang?: string | undefined;
309
+ htmlFor?: string | undefined;
310
+ httpEquiv?: string | undefined;
311
+ integrity?: string | undefined;
312
+ keyParams?: string | undefined;
313
+ keyType?: string | undefined;
314
+ kind?: string | undefined;
315
+ label?: string | undefined;
316
+ loop?: boolean | undefined;
317
+ low?: number | undefined;
318
+ manifest?: string | undefined;
319
+ marginHeight?: number | undefined;
320
+ marginWidth?: number | undefined;
321
+ max?: string | number | undefined;
322
+ maxLength?: number | undefined;
323
+ media?: string | undefined;
324
+ mediaGroup?: string | undefined;
325
+ method?: string | undefined;
326
+ min?: string | number | undefined;
327
+ minLength?: number | undefined;
328
+ multiple?: boolean | undefined;
329
+ muted?: boolean | undefined;
330
+ name?: string | undefined;
331
+ noValidate?: boolean | undefined;
332
+ open?: boolean | undefined;
333
+ optimum?: number | undefined;
334
+ pattern?: string | undefined;
335
+ placeholder?: string | undefined;
336
+ playsInline?: boolean | undefined;
337
+ poster?: string | undefined;
338
+ preload?: string | undefined;
339
+ readOnly?: boolean | undefined;
340
+ required?: boolean | undefined;
341
+ reversed?: boolean | undefined;
342
+ rows?: number | undefined;
343
+ rowSpan?: number | undefined;
344
+ sandbox?: string | undefined;
345
+ scope?: string | undefined;
346
+ scoped?: boolean | undefined;
347
+ scrolling?: string | undefined;
348
+ seamless?: boolean | undefined;
349
+ selected?: boolean | undefined;
350
+ shape?: string | undefined;
351
+ size?: number | undefined;
352
+ sizes?: string | undefined;
353
+ span?: number | undefined;
354
+ src?: string | undefined;
355
+ srcDoc?: string | undefined;
356
+ srcLang?: string | undefined;
357
+ srcSet?: string | undefined;
358
+ start?: number | undefined;
359
+ step?: string | number | undefined;
360
+ summary?: string | undefined;
361
+ target?: string | undefined;
362
+ type?: string | undefined;
363
+ useMap?: string | undefined;
364
+ value?: string | number | readonly string[] | undefined;
365
+ width?: string | number | undefined;
366
+ wmode?: string | undefined;
367
+ wrap?: string | undefined;
368
+ }, keyof T>>;
@@ -2,6 +2,7 @@ export { useMemoMergePropsWithDefault } from './defaultProps/index.js';
2
2
  export { getAriaProps, getDataProps } from './getProps/index.js';
3
3
  export { getGlobalAttributes, useGetGlobalAttributes, globalAttributesPropTypes, type GlobalAttributesT, } from './globalProps/index.js';
4
4
  export { describe, PropTypes, type DSPropTypesSchema } from './propTypes/index.js';
5
+ export type { ValidationMap } from 'prop-types';
5
6
  export { throwTypeError, throwRequiredError, useValidateTypescriptPropTypes, validateTypescriptPropTypesImplementation, } from './validation/index.js';
6
7
  export { type XstyledProps, useGetXstyledProps, xstyledPropTypes } from './xstyledProps/index.js';
7
8
  export { useDeprecateComponent } from './useDeprecateComponent/index.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-props-helpers",
3
- "version": "3.33.0-next.0",
3
+ "version": "3.33.0-next.10",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Props Helpers",
6
6
  "files": [
@@ -34,12 +34,12 @@
34
34
  "dependencies": {
35
35
  "fast-deep-equal": "~3.1.3",
36
36
  "prop-types": "~15.8.1",
37
- "@elliemae/ds-system": "3.33.0-next.0",
38
- "@elliemae/ds-typescript-helpers": "3.33.0-next.0"
37
+ "@elliemae/ds-system": "3.33.0-next.10",
38
+ "@elliemae/ds-typescript-helpers": "3.33.0-next.10"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@elliemae/pui-cli": "~9.0.0-next.31",
42
- "@elliemae/ds-monorepo-devops": "3.33.0-next.0"
42
+ "@elliemae/ds-monorepo-devops": "3.33.0-next.10"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "lodash": "^4.17.21",
@@ -52,7 +52,7 @@
52
52
  },
53
53
  "scripts": {
54
54
  "dev": "cross-env NODE_ENV=development node ../../../scripts/build/build.mjs --watch",
55
- "test": "pui-cli test --passWithNoTests",
55
+ "test": "pui-cli test --passWithNoTests --coverage=\"false\"",
56
56
  "lint": "node ../../../scripts/lint.mjs --fix",
57
57
  "eslint:fix": "eslint --ext='.js,.jsx,.test.js,.ts,.tsx' --fix --config='../../../.eslintrc.js' src/",
58
58
  "dts": "node ../../../scripts/dts.mjs",