@elliemae/ds-props-helpers 3.29.1 → 3.30.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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/getProps/index.ts", "../../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["/* eslint-disable indent */\n\nexport const getAriaProps = <T extends Record<string, unknown> = Record<string, unknown>>(props: T): AriaProps =>\n Object.fromEntries(Object.entries(props).filter(([key]) => key.startsWith('aria-'))) as AriaProps;\n\nexport const getDataProps = <T extends Record<string, unknown> = Record<string, unknown>>(props: T): DataProps =>\n Object.fromEntries(Object.entries(props).filter(([key]) => key.startsWith('data-'))) as DataProps;\n\nexport const getAriaOrDataProps = <T extends Record<string, unknown> = Record<string, unknown>>(\n props: T,\n): AriaAndDataProps =>\n Object.fromEntries(\n Object.entries(props).filter(([key]) => key.startsWith('aria-') || key.startsWith('data-')),\n ) as AriaAndDataProps;\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADEhB,MAAM,eAAe,CAA8D,UACxF,OAAO,YAAY,OAAO,QAAQ,KAAK,EAAE,OAAO,CAAC,CAAC,GAAG,MAAM,IAAI,WAAW,OAAO,CAAC,CAAC;AAE9E,MAAM,eAAe,CAA8D,UACxF,OAAO,YAAY,OAAO,QAAQ,KAAK,EAAE,OAAO,CAAC,CAAC,GAAG,MAAM,IAAI,WAAW,OAAO,CAAC,CAAC;AAE9E,MAAM,qBAAqB,CAChC,UAEA,OAAO;AAAA,EACL,OAAO,QAAQ,KAAK,EAAE,OAAO,CAAC,CAAC,GAAG,MAAM,IAAI,WAAW,OAAO,KAAK,IAAI,WAAW,OAAO,CAAC;AAC5F;",
4
+ "sourcesContent": ["/* eslint-disable indent */\nimport { type TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';\n\nexport const getAriaProps = <T extends Record<string, unknown> = Record<string, unknown>>(\n props: T,\n): TypescriptHelpersT.AriaProps =>\n Object.fromEntries(Object.entries(props).filter(([key]) => key.startsWith('aria-'))) as TypescriptHelpersT.AriaProps;\n\nexport const getDataProps = <T extends Record<string, unknown> = Record<string, unknown>>(\n props: T,\n): TypescriptHelpersT.DataProps =>\n Object.fromEntries(Object.entries(props).filter(([key]) => key.startsWith('data-'))) as TypescriptHelpersT.DataProps;\n\nexport const getAriaOrDataProps = <T extends Record<string, unknown> = Record<string, unknown>>(\n props: T,\n): TypescriptHelpersT.AriaAndDataProps =>\n Object.fromEntries(\n Object.entries(props).filter(([key]) => key.startsWith('aria-') || key.startsWith('data-')),\n ) as TypescriptHelpersT.AriaAndDataProps;\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADGhB,MAAM,eAAe,CAC1B,UAEA,OAAO,YAAY,OAAO,QAAQ,KAAK,EAAE,OAAO,CAAC,CAAC,GAAG,MAAM,IAAI,WAAW,OAAO,CAAC,CAAC;AAE9E,MAAM,eAAe,CAC1B,UAEA,OAAO,YAAY,OAAO,QAAQ,KAAK,EAAE,OAAO,CAAC,CAAC,GAAG,MAAM,IAAI,WAAW,OAAO,CAAC,CAAC;AAE9E,MAAM,qBAAqB,CAChC,UAEA,OAAO;AAAA,EACL,OAAO,QAAQ,KAAK,EAAE,OAAO,CAAC,CAAC,GAAG,MAAM,IAAI,WAAW,OAAO,KAAK,IAAI,WAAW,OAAO,CAAC;AAC5F;",
6
6
  "names": []
7
7
  }
@@ -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 { 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?: 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;ADEvB,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": ["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;",
6
6
  "names": []
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/propsPerDataTestId/getPropsPerDatatestid.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["/* eslint-disable indent */\n/* eslint-disable complexity */\nimport { getAriaOrDataProps } from '../getProps/index.js';\n\n/**\n * Returns the props for a given dataTestId.\n * props are going to be filtered so only aria related and data-* props are going to be returned.\n * @param {Record<string, string> | (() => Record<string, string>)} userProps - The props passed by the user.\n * @returns The props for the given dataTestId.\n * @example\n * const userProps = {\n * 'ds-controlled-date-time-picker-month-input': {\n * 'aria-label': 'month-input-aria-label',\n * 'data-test': 'month-input-data-test',\n * somethingElse: 'this will not be returned',\n * },\n * 'ds-controlled-date-time-picker-day-input': {\n * 'aria-label': 'day-aria-label',\n * 'data-test': 'day-data-test',\n * },\n * };\n * const dataTestIdProps = getDataTestIdProps(userProps['ds-controlled-date-time-picker-day-input']);\n * // dataTestIdProps = {\n * // 'aria-label': 'day-aria-label',\n * // 'data-test': 'day-data-test',\n * // }\n * @example\n * const userProps = {\n * 'ds-controlled-date-time-picker-month-input': {\n * 'aria-label': 'month-input-aria-label',\n * 'data-test': 'month-input-data-test',\n * },\n * 'ds-controlled-date-time-picker-day-input': (props) => ({ // notice that this is a function that returns an object\n * 'aria-label': 'day-aria-label',\n * 'data-test': 'day-data-test',\n * somethingElse: 'this will not be returned',\n * }),\n * };\n * const dataTestIdProps = getDataTestIdProps(userProps['ds-controlled-date-time-picker-day-input']);\n * // dataTestIdProps = {\n * // 'aria-label': 'day-aria-label',\n * // 'data-test': 'day-data-test',\n * // }\n * @fires getAriaOrDataProps\n */\nconst getPropsPerDatatestid = (userProps: AriaAndDataPropsOrPropsGetter | undefined) => {\n if (\n userProps === undefined ||\n userProps === null ||\n (typeof userProps !== 'object' && typeof userProps !== 'function')\n )\n return {};\n\n if (typeof userProps === 'function') {\n const values = getAriaOrDataProps(userProps());\n return values;\n }\n return getAriaOrDataProps(userProps);\n};\n\nexport { getPropsPerDatatestid };\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADEvB,sBAAmC;AA2CnC,MAAM,wBAAwB,CAAC,cAAyD;AACtF,MACE,cAAc,UACd,cAAc,QACb,OAAO,cAAc,YAAY,OAAO,cAAc;AAEvD,WAAO,CAAC;AAEV,MAAI,OAAO,cAAc,YAAY;AACnC,UAAM,aAAS,oCAAmB,UAAU,CAAC;AAC7C,WAAO;AAAA,EACT;AACA,aAAO,oCAAmB,SAAS;AACrC;",
4
+ "sourcesContent": ["/* eslint-disable indent */\n/* eslint-disable complexity */\nimport { type TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';\nimport { getAriaOrDataProps } from '../getProps/index.js';\n\n/**\n * Returns the props for a given dataTestId.\n * props are going to be filtered so only aria related and data-* props are going to be returned.\n * @param {Record<string, string> | (() => Record<string, string>)} userProps - The props passed by the user.\n * @returns The props for the given dataTestId.\n * @example\n * const userProps = {\n * 'ds-controlled-date-time-picker-month-input': {\n * 'aria-label': 'month-input-aria-label',\n * 'data-test': 'month-input-data-test',\n * somethingElse: 'this will not be returned',\n * },\n * 'ds-controlled-date-time-picker-day-input': {\n * 'aria-label': 'day-aria-label',\n * 'data-test': 'day-data-test',\n * },\n * };\n * const dataTestIdProps = getDataTestIdProps(userProps['ds-controlled-date-time-picker-day-input']);\n * // dataTestIdProps = {\n * // 'aria-label': 'day-aria-label',\n * // 'data-test': 'day-data-test',\n * // }\n * @example\n * const userProps = {\n * 'ds-controlled-date-time-picker-month-input': {\n * 'aria-label': 'month-input-aria-label',\n * 'data-test': 'month-input-data-test',\n * },\n * 'ds-controlled-date-time-picker-day-input': (props) => ({ // notice that this is a function that returns an object\n * 'aria-label': 'day-aria-label',\n * 'data-test': 'day-data-test',\n * somethingElse: 'this will not be returned',\n * }),\n * };\n * const dataTestIdProps = getDataTestIdProps(userProps['ds-controlled-date-time-picker-day-input']);\n * // dataTestIdProps = {\n * // 'aria-label': 'day-aria-label',\n * // 'data-test': 'day-data-test',\n * // }\n * @fires getAriaOrDataProps\n */\nconst getPropsPerDatatestid = (userProps: TypescriptHelpersT.AriaAndDataPropsOrPropsGetter | undefined) => {\n if (\n userProps === undefined ||\n userProps === null ||\n (typeof userProps !== 'object' && typeof userProps !== 'function')\n )\n return {};\n\n if (typeof userProps === 'function') {\n const values = getAriaOrDataProps(userProps());\n return values;\n }\n return getAriaOrDataProps(userProps);\n};\n\nexport { getPropsPerDatatestid };\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADGvB,sBAAmC;AA2CnC,MAAM,wBAAwB,CAAC,cAA4E;AACzG,MACE,cAAc,UACd,cAAc,QACb,OAAO,cAAc,YAAY,OAAO,cAAc;AAEvD,WAAO,CAAC;AAEV,MAAI,OAAO,cAAc,YAAY;AACnC,UAAM,aAAS,oCAAmB,UAAU,CAAC;AAC7C,WAAO;AAAA,EACT;AACA,aAAO,oCAAmB,SAAS;AACrC;",
6
6
  "names": []
7
7
  }
@@ -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 { 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<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;ADCvB,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.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;",
6
6
  "names": []
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/xstyledProps/useGetXstyledProps.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import { useMemo } from 'react';\nimport type {\n SizingProps,\n SpaceProps,\n LayoutProps,\n BoxShadowProps,\n BorderProps,\n BackgroundProps,\n} from '@elliemae/ds-system';\nimport { xstyledKeys } from './constants.js';\n\nexport interface XstyledProps\n extends SpaceProps,\n SizingProps,\n LayoutProps,\n BoxShadowProps,\n BorderProps,\n BackgroundProps {}\n\ntype PropsWithXstyled<T> = T & XstyledProps;\n\nexport const useGetXstyledProps = <T,>(props: PropsWithXstyled<T>): XstyledProps => {\n const componentXstyledProps = useMemo(() => {\n const xstyledPropsObject: Record<string, unknown> = {};\n Object.entries(props).forEach(([key, value]) => {\n if (key in xstyledKeys) {\n xstyledPropsObject[key] = value;\n }\n });\n return xstyledPropsObject;\n }, [props]);\n\n return componentXstyledProps as XstyledProps;\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAwB;AASxB,uBAA4B;AAYrB,MAAM,qBAAqB,CAAK,UAA6C;AAClF,QAAM,4BAAwB,sBAAQ,MAAM;AAC1C,UAAM,qBAA8C,CAAC;AACrD,WAAO,QAAQ,KAAK,EAAE,QAAQ,CAAC,CAAC,KAAK,KAAK,MAAM;AAC9C,UAAI,OAAO,8BAAa;AACtB,2BAAmB,GAAG,IAAI;AAAA,MAC5B;AAAA,IACF,CAAC;AACD,WAAO;AAAA,EACT,GAAG,CAAC,KAAK,CAAC;AAEV,SAAO;AACT;",
4
+ "sourcesContent": ["import { useMemo } from 'react';\nimport type {\n SizingProps,\n SpaceProps,\n LayoutProps,\n BoxShadowProps,\n BorderProps,\n BackgroundProps,\n FontWeightProps,\n TextAlignProps,\n} from '@elliemae/ds-system';\nimport { xstyledKeys } from './constants.js';\n\nexport interface XstyledProps\n extends SpaceProps,\n SizingProps,\n LayoutProps,\n BoxShadowProps,\n BorderProps,\n BackgroundProps,\n FontWeightProps,\n TextAlignProps {}\n\ntype PropsWithXstyled<T> = T & XstyledProps;\n\nexport const useGetXstyledProps = <T,>(props: PropsWithXstyled<T>): XstyledProps => {\n const componentXstyledProps = useMemo(() => {\n const xstyledPropsObject: Record<string, unknown> = {};\n Object.entries(props).forEach(([key, value]) => {\n if (key in xstyledKeys) {\n xstyledPropsObject[key] = value;\n }\n });\n return xstyledPropsObject;\n }, [props]);\n\n return componentXstyledProps as XstyledProps;\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAwB;AAWxB,uBAA4B;AAcrB,MAAM,qBAAqB,CAAK,UAA6C;AAClF,QAAM,4BAAwB,sBAAQ,MAAM;AAC1C,UAAM,qBAA8C,CAAC;AACrD,WAAO,QAAQ,KAAK,EAAE,QAAQ,CAAC,CAAC,KAAK,KAAK,MAAM;AAC9C,UAAI,OAAO,8BAAa;AACtB,2BAAmB,GAAG,IAAI;AAAA,MAC5B;AAAA,IACF,CAAC;AACD,WAAO;AAAA,EACT,GAAG,CAAC,KAAK,CAAC;AAEV,SAAO;AACT;",
6
6
  "names": []
7
7
  }
@@ -122,6 +122,8 @@ const xstyledPropTypes = {
122
122
  borderRightWidth: xstyledGenericPropType.description(genericDescription).xstyled(),
123
123
  borderLeftWidth: xstyledGenericPropType.description(genericDescription).xstyled(),
124
124
  borderRadius: xstyledGenericPropType.description(genericDescription).xstyled(),
125
- boxShadow: xstyledGenericPropType.description(genericDescription).xstyled()
125
+ boxShadow: xstyledGenericPropType.description(genericDescription).xstyled(),
126
+ fontWeight: xstyledGenericPropType.description(genericDescription).xstyled(),
127
+ textAlign: xstyledGenericPropType.description(genericDescription).xstyled()
126
128
  };
127
129
  //# sourceMappingURL=xstyledPropTypes.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/xstyledProps/xstyledPropTypes.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import { PropTypes } from '../propTypes/index.js';\n\n// Based on https://github.com/gregberge/xstyled/blob/c0c92b459bb3a5de46d7854be3667861f816baa5/packages/prop-types/src/index.ts\nconst xstyledGenericPropType = PropTypes.oneOfType([\n PropTypes.number,\n PropTypes.string,\n PropTypes.object,\n PropTypes.bool,\n]);\n\nconst genericDescription = 'Applies to the root container. For more info read xstyled docs';\n\nexport const xstyledPropTypes = {\n margin: xstyledGenericPropType.description(genericDescription).xstyled(),\n m: xstyledGenericPropType.description(genericDescription).xstyled(),\n marginTop: xstyledGenericPropType.description(genericDescription).xstyled(),\n mt: xstyledGenericPropType.description(genericDescription).xstyled(),\n marginRight: xstyledGenericPropType.description(genericDescription).xstyled(),\n mr: xstyledGenericPropType.description(genericDescription).xstyled(),\n marginBottom: xstyledGenericPropType.description(genericDescription).xstyled(),\n mb: xstyledGenericPropType.description(genericDescription).xstyled(),\n marginLeft: xstyledGenericPropType.description(genericDescription).xstyled(),\n ml: xstyledGenericPropType.description(genericDescription).xstyled(),\n mx: xstyledGenericPropType.description(genericDescription).xstyled(),\n my: xstyledGenericPropType.description(genericDescription).xstyled(),\n padding: xstyledGenericPropType.description(genericDescription).xstyled(),\n p: xstyledGenericPropType.description(genericDescription).xstyled(),\n paddingTop: xstyledGenericPropType.description(genericDescription).xstyled(),\n pt: xstyledGenericPropType.description(genericDescription).xstyled(),\n paddingRight: xstyledGenericPropType.description(genericDescription).xstyled(),\n pr: xstyledGenericPropType.description(genericDescription).xstyled(),\n paddingBottom: xstyledGenericPropType.description(genericDescription).xstyled(),\n pb: xstyledGenericPropType.description(genericDescription).xstyled(),\n paddingLeft: xstyledGenericPropType.description(genericDescription).xstyled(),\n pl: xstyledGenericPropType.description(genericDescription).xstyled(),\n px: xstyledGenericPropType.description(genericDescription).xstyled(),\n py: xstyledGenericPropType.description(genericDescription).xstyled(),\n spaceY: xstyledGenericPropType.description(genericDescription).xstyled(),\n spaceX: xstyledGenericPropType.description(genericDescription).xstyled(),\n spaceXReverse: xstyledGenericPropType.description(genericDescription).xstyled(),\n spaceYReverse: xstyledGenericPropType.description(genericDescription).xstyled(),\n w: xstyledGenericPropType.description(genericDescription).xstyled(),\n width: xstyledGenericPropType.description(genericDescription).xstyled(),\n maxWidth: xstyledGenericPropType.description(genericDescription).xstyled(),\n maxW: xstyledGenericPropType.description(genericDescription).xstyled(),\n minWidth: xstyledGenericPropType.description(genericDescription).xstyled(),\n minW: xstyledGenericPropType.description(genericDescription).xstyled(),\n h: xstyledGenericPropType.description(genericDescription).xstyled(),\n height: xstyledGenericPropType.description(genericDescription).xstyled(),\n maxHeight: xstyledGenericPropType.description(genericDescription).xstyled(),\n maxH: xstyledGenericPropType.description(genericDescription).xstyled(),\n minHeight: xstyledGenericPropType.description(genericDescription).xstyled(),\n minH: xstyledGenericPropType.description(genericDescription).xstyled(),\n maskSize: xstyledGenericPropType.description(genericDescription).xstyled(),\n display: xstyledGenericPropType.description(genericDescription).xstyled(),\n float: xstyledGenericPropType.description(genericDescription).xstyled(),\n boxSizing: xstyledGenericPropType.description(genericDescription).xstyled(),\n container: xstyledGenericPropType.description(genericDescription).xstyled(),\n overflow: xstyledGenericPropType.description(genericDescription).xstyled(),\n overflowX: xstyledGenericPropType.description(genericDescription).xstyled(),\n overflowY: xstyledGenericPropType.description(genericDescription).xstyled(),\n zIndex: xstyledGenericPropType.description(genericDescription).xstyled(),\n position: xstyledGenericPropType.description(genericDescription).xstyled(),\n top: xstyledGenericPropType.description(genericDescription).xstyled(),\n right: xstyledGenericPropType.description(genericDescription).xstyled(),\n bottom: xstyledGenericPropType.description(genericDescription).xstyled(),\n left: xstyledGenericPropType.description(genericDescription).xstyled(),\n visibility: xstyledGenericPropType.description(genericDescription).xstyled(),\n overscrollBehavior: xstyledGenericPropType.description(genericDescription).xstyled(),\n objectFit: xstyledGenericPropType.description(genericDescription).xstyled(),\n color: xstyledGenericPropType.description(genericDescription).xstyled(),\n bg: xstyledGenericPropType.description(genericDescription).xstyled(),\n backgroundColor: xstyledGenericPropType.description(genericDescription).xstyled(),\n border: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderTop: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderBottom: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderRight: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderLeft: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderColor: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderTopColor: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderBottomColor: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderRightColor: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderLeftColor: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderStyle: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderTopStyle: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderBottomStyle: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderRightStyle: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderLeftStyle: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderWidth: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderTopWidth: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderBottomWidth: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderRightWidth: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderLeftWidth: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderRadius: xstyledGenericPropType.description(genericDescription).xstyled(),\n boxShadow: xstyledGenericPropType.description(genericDescription).xstyled(),\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,uBAA0B;AAG1B,MAAM,yBAAyB,2BAAU,UAAU;AAAA,EACjD,2BAAU;AAAA,EACV,2BAAU;AAAA,EACV,2BAAU;AAAA,EACV,2BAAU;AACZ,CAAC;AAED,MAAM,qBAAqB;AAEpB,MAAM,mBAAmB;AAAA,EAC9B,QAAQ,uBAAuB,YAAY,kBAAkB,EAAE,QAAQ;AAAA,EACvE,GAAG,uBAAuB,YAAY,kBAAkB,EAAE,QAAQ;AAAA,EAClE,WAAW,uBAAuB,YAAY,kBAAkB,EAAE,QAAQ;AAAA,EAC1E,IAAI,uBAAuB,YAAY,kBAAkB,EAAE,QAAQ;AAAA,EACnE,aAAa,uBAAuB,YAAY,kBAAkB,EAAE,QAAQ;AAAA,EAC5E,IAAI,uBAAuB,YAAY,kBAAkB,EAAE,QAAQ;AAAA,EACnE,cAAc,uBAAuB,YAAY,kBAAkB,EAAE,QAAQ;AAAA,EAC7E,IAAI,uBAAuB,YAAY,kBAAkB,EAAE,QAAQ;AAAA,EACnE,YAAY,uBAAuB,YAAY,kBAAkB,EAAE,QAAQ;AAAA,EAC3E,IAAI,uBAAuB,YAAY,kBAAkB,EAAE,QAAQ;AAAA,EACnE,IAAI,uBAAuB,YAAY,kBAAkB,EAAE,QAAQ;AAAA,EACnE,IAAI,u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AAuB,YAAY,kBAAkB,EAAE,QAAQ;AAAA,EACjF,iBAAiB,uBAAuB,YAAY,kBAAkB,EAAE,QAAQ;AAAA,EAChF,cAAc,uBAAuB,YAAY,kBAAkB,EAAE,QAAQ;AAAA,EAC7E,WAAW,uBAAuB,YAAY,kBAAkB,EAAE,QAAQ;AAC5E;",
4
+ "sourcesContent": ["import { PropTypes } from '../propTypes/index.js';\n\n// Based on https://github.com/gregberge/xstyled/blob/c0c92b459bb3a5de46d7854be3667861f816baa5/packages/prop-types/src/index.ts\nconst xstyledGenericPropType = PropTypes.oneOfType([\n PropTypes.number,\n PropTypes.string,\n PropTypes.object,\n PropTypes.bool,\n]);\n\nconst genericDescription = 'Applies to the root container. For more info read xstyled docs';\n\nexport const xstyledPropTypes = {\n margin: xstyledGenericPropType.description(genericDescription).xstyled(),\n m: xstyledGenericPropType.description(genericDescription).xstyled(),\n marginTop: xstyledGenericPropType.description(genericDescription).xstyled(),\n mt: xstyledGenericPropType.description(genericDescription).xstyled(),\n marginRight: xstyledGenericPropType.description(genericDescription).xstyled(),\n mr: xstyledGenericPropType.description(genericDescription).xstyled(),\n marginBottom: xstyledGenericPropType.description(genericDescription).xstyled(),\n mb: xstyledGenericPropType.description(genericDescription).xstyled(),\n marginLeft: xstyledGenericPropType.description(genericDescription).xstyled(),\n ml: xstyledGenericPropType.description(genericDescription).xstyled(),\n mx: xstyledGenericPropType.description(genericDescription).xstyled(),\n my: xstyledGenericPropType.description(genericDescription).xstyled(),\n padding: xstyledGenericPropType.description(genericDescription).xstyled(),\n p: xstyledGenericPropType.description(genericDescription).xstyled(),\n paddingTop: xstyledGenericPropType.description(genericDescription).xstyled(),\n pt: xstyledGenericPropType.description(genericDescription).xstyled(),\n paddingRight: xstyledGenericPropType.description(genericDescription).xstyled(),\n pr: xstyledGenericPropType.description(genericDescription).xstyled(),\n paddingBottom: xstyledGenericPropType.description(genericDescription).xstyled(),\n pb: xstyledGenericPropType.description(genericDescription).xstyled(),\n paddingLeft: xstyledGenericPropType.description(genericDescription).xstyled(),\n pl: xstyledGenericPropType.description(genericDescription).xstyled(),\n px: xstyledGenericPropType.description(genericDescription).xstyled(),\n py: xstyledGenericPropType.description(genericDescription).xstyled(),\n spaceY: xstyledGenericPropType.description(genericDescription).xstyled(),\n spaceX: xstyledGenericPropType.description(genericDescription).xstyled(),\n spaceXReverse: xstyledGenericPropType.description(genericDescription).xstyled(),\n spaceYReverse: xstyledGenericPropType.description(genericDescription).xstyled(),\n w: xstyledGenericPropType.description(genericDescription).xstyled(),\n width: xstyledGenericPropType.description(genericDescription).xstyled(),\n maxWidth: xstyledGenericPropType.description(genericDescription).xstyled(),\n maxW: xstyledGenericPropType.description(genericDescription).xstyled(),\n minWidth: xstyledGenericPropType.description(genericDescription).xstyled(),\n minW: xstyledGenericPropType.description(genericDescription).xstyled(),\n h: xstyledGenericPropType.description(genericDescription).xstyled(),\n height: xstyledGenericPropType.description(genericDescription).xstyled(),\n maxHeight: xstyledGenericPropType.description(genericDescription).xstyled(),\n maxH: xstyledGenericPropType.description(genericDescription).xstyled(),\n minHeight: xstyledGenericPropType.description(genericDescription).xstyled(),\n minH: xstyledGenericPropType.description(genericDescription).xstyled(),\n maskSize: xstyledGenericPropType.description(genericDescription).xstyled(),\n display: xstyledGenericPropType.description(genericDescription).xstyled(),\n float: xstyledGenericPropType.description(genericDescription).xstyled(),\n boxSizing: xstyledGenericPropType.description(genericDescription).xstyled(),\n container: xstyledGenericPropType.description(genericDescription).xstyled(),\n overflow: xstyledGenericPropType.description(genericDescription).xstyled(),\n overflowX: xstyledGenericPropType.description(genericDescription).xstyled(),\n overflowY: xstyledGenericPropType.description(genericDescription).xstyled(),\n zIndex: xstyledGenericPropType.description(genericDescription).xstyled(),\n position: xstyledGenericPropType.description(genericDescription).xstyled(),\n top: xstyledGenericPropType.description(genericDescription).xstyled(),\n right: xstyledGenericPropType.description(genericDescription).xstyled(),\n bottom: xstyledGenericPropType.description(genericDescription).xstyled(),\n left: xstyledGenericPropType.description(genericDescription).xstyled(),\n visibility: xstyledGenericPropType.description(genericDescription).xstyled(),\n overscrollBehavior: xstyledGenericPropType.description(genericDescription).xstyled(),\n objectFit: xstyledGenericPropType.description(genericDescription).xstyled(),\n color: xstyledGenericPropType.description(genericDescription).xstyled(),\n bg: xstyledGenericPropType.description(genericDescription).xstyled(),\n backgroundColor: xstyledGenericPropType.description(genericDescription).xstyled(),\n border: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderTop: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderBottom: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderRight: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderLeft: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderColor: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderTopColor: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderBottomColor: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderRightColor: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderLeftColor: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderStyle: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderTopStyle: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderBottomStyle: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderRightStyle: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderLeftStyle: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderWidth: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderTopWidth: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderBottomWidth: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderRightWidth: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderLeftWidth: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderRadius: xstyledGenericPropType.description(genericDescription).xstyled(),\n boxShadow: xstyledGenericPropType.description(genericDescription).xstyled(),\n fontWeight: xstyledGenericPropType.description(genericDescription).xstyled(),\n textAlign: xstyledGenericPropType.description(genericDescription).xstyled(),\n};\n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;",
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/getProps/index.ts"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable indent */\n\nexport const getAriaProps = <T extends Record<string, unknown> = Record<string, unknown>>(props: T): AriaProps =>\n Object.fromEntries(Object.entries(props).filter(([key]) => key.startsWith('aria-'))) as AriaProps;\n\nexport const getDataProps = <T extends Record<string, unknown> = Record<string, unknown>>(props: T): DataProps =>\n Object.fromEntries(Object.entries(props).filter(([key]) => key.startsWith('data-'))) as DataProps;\n\nexport const getAriaOrDataProps = <T extends Record<string, unknown> = Record<string, unknown>>(\n props: T,\n): AriaAndDataProps =>\n Object.fromEntries(\n Object.entries(props).filter(([key]) => key.startsWith('aria-') || key.startsWith('data-')),\n ) as AriaAndDataProps;\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACEhB,MAAM,eAAe,CAA8D,UACxF,OAAO,YAAY,OAAO,QAAQ,KAAK,EAAE,OAAO,CAAC,CAAC,GAAG,MAAM,IAAI,WAAW,OAAO,CAAC,CAAC;AAE9E,MAAM,eAAe,CAA8D,UACxF,OAAO,YAAY,OAAO,QAAQ,KAAK,EAAE,OAAO,CAAC,CAAC,GAAG,MAAM,IAAI,WAAW,OAAO,CAAC,CAAC;AAE9E,MAAM,qBAAqB,CAChC,UAEA,OAAO;AAAA,EACL,OAAO,QAAQ,KAAK,EAAE,OAAO,CAAC,CAAC,GAAG,MAAM,IAAI,WAAW,OAAO,KAAK,IAAI,WAAW,OAAO,CAAC;AAC5F;",
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable indent */\nimport { type TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';\n\nexport const getAriaProps = <T extends Record<string, unknown> = Record<string, unknown>>(\n props: T,\n): TypescriptHelpersT.AriaProps =>\n Object.fromEntries(Object.entries(props).filter(([key]) => key.startsWith('aria-'))) as TypescriptHelpersT.AriaProps;\n\nexport const getDataProps = <T extends Record<string, unknown> = Record<string, unknown>>(\n props: T,\n): TypescriptHelpersT.DataProps =>\n Object.fromEntries(Object.entries(props).filter(([key]) => key.startsWith('data-'))) as TypescriptHelpersT.DataProps;\n\nexport const getAriaOrDataProps = <T extends Record<string, unknown> = Record<string, unknown>>(\n props: T,\n): TypescriptHelpersT.AriaAndDataProps =>\n Object.fromEntries(\n Object.entries(props).filter(([key]) => key.startsWith('aria-') || key.startsWith('data-')),\n ) as TypescriptHelpersT.AriaAndDataProps;\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACGhB,MAAM,eAAe,CAC1B,UAEA,OAAO,YAAY,OAAO,QAAQ,KAAK,EAAE,OAAO,CAAC,CAAC,GAAG,MAAM,IAAI,WAAW,OAAO,CAAC,CAAC;AAE9E,MAAM,eAAe,CAC1B,UAEA,OAAO,YAAY,OAAO,QAAQ,KAAK,EAAE,OAAO,CAAC,CAAC,GAAG,MAAM,IAAI,WAAW,OAAO,CAAC,CAAC;AAE9E,MAAM,qBAAqB,CAChC,UAEA,OAAO;AAAA,EACL,OAAO,QAAQ,KAAK,EAAE,OAAO,CAAC,CAAC,GAAG,MAAM,IAAI,WAAW,OAAO,KAAK,IAAI,WAAW,OAAO,CAAC;AAC5F;",
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 { 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?: 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;ACEvB,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", "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;",
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/propsPerDataTestId/getPropsPerDatatestid.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable indent */\n/* eslint-disable complexity */\nimport { getAriaOrDataProps } from '../getProps/index.js';\n\n/**\n * Returns the props for a given dataTestId.\n * props are going to be filtered so only aria related and data-* props are going to be returned.\n * @param {Record<string, string> | (() => Record<string, string>)} userProps - The props passed by the user.\n * @returns The props for the given dataTestId.\n * @example\n * const userProps = {\n * 'ds-controlled-date-time-picker-month-input': {\n * 'aria-label': 'month-input-aria-label',\n * 'data-test': 'month-input-data-test',\n * somethingElse: 'this will not be returned',\n * },\n * 'ds-controlled-date-time-picker-day-input': {\n * 'aria-label': 'day-aria-label',\n * 'data-test': 'day-data-test',\n * },\n * };\n * const dataTestIdProps = getDataTestIdProps(userProps['ds-controlled-date-time-picker-day-input']);\n * // dataTestIdProps = {\n * // 'aria-label': 'day-aria-label',\n * // 'data-test': 'day-data-test',\n * // }\n * @example\n * const userProps = {\n * 'ds-controlled-date-time-picker-month-input': {\n * 'aria-label': 'month-input-aria-label',\n * 'data-test': 'month-input-data-test',\n * },\n * 'ds-controlled-date-time-picker-day-input': (props) => ({ // notice that this is a function that returns an object\n * 'aria-label': 'day-aria-label',\n * 'data-test': 'day-data-test',\n * somethingElse: 'this will not be returned',\n * }),\n * };\n * const dataTestIdProps = getDataTestIdProps(userProps['ds-controlled-date-time-picker-day-input']);\n * // dataTestIdProps = {\n * // 'aria-label': 'day-aria-label',\n * // 'data-test': 'day-data-test',\n * // }\n * @fires getAriaOrDataProps\n */\nconst getPropsPerDatatestid = (userProps: AriaAndDataPropsOrPropsGetter | undefined) => {\n if (\n userProps === undefined ||\n userProps === null ||\n (typeof userProps !== 'object' && typeof userProps !== 'function')\n )\n return {};\n\n if (typeof userProps === 'function') {\n const values = getAriaOrDataProps(userProps());\n return values;\n }\n return getAriaOrDataProps(userProps);\n};\n\nexport { getPropsPerDatatestid };\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACEvB,SAAS,0BAA0B;AA2CnC,MAAM,wBAAwB,CAAC,cAAyD;AACtF,MACE,cAAc,UACd,cAAc,QACb,OAAO,cAAc,YAAY,OAAO,cAAc;AAEvD,WAAO,CAAC;AAEV,MAAI,OAAO,cAAc,YAAY;AACnC,UAAM,SAAS,mBAAmB,UAAU,CAAC;AAC7C,WAAO;AAAA,EACT;AACA,SAAO,mBAAmB,SAAS;AACrC;",
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable indent */\n/* eslint-disable complexity */\nimport { type TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';\nimport { getAriaOrDataProps } from '../getProps/index.js';\n\n/**\n * Returns the props for a given dataTestId.\n * props are going to be filtered so only aria related and data-* props are going to be returned.\n * @param {Record<string, string> | (() => Record<string, string>)} userProps - The props passed by the user.\n * @returns The props for the given dataTestId.\n * @example\n * const userProps = {\n * 'ds-controlled-date-time-picker-month-input': {\n * 'aria-label': 'month-input-aria-label',\n * 'data-test': 'month-input-data-test',\n * somethingElse: 'this will not be returned',\n * },\n * 'ds-controlled-date-time-picker-day-input': {\n * 'aria-label': 'day-aria-label',\n * 'data-test': 'day-data-test',\n * },\n * };\n * const dataTestIdProps = getDataTestIdProps(userProps['ds-controlled-date-time-picker-day-input']);\n * // dataTestIdProps = {\n * // 'aria-label': 'day-aria-label',\n * // 'data-test': 'day-data-test',\n * // }\n * @example\n * const userProps = {\n * 'ds-controlled-date-time-picker-month-input': {\n * 'aria-label': 'month-input-aria-label',\n * 'data-test': 'month-input-data-test',\n * },\n * 'ds-controlled-date-time-picker-day-input': (props) => ({ // notice that this is a function that returns an object\n * 'aria-label': 'day-aria-label',\n * 'data-test': 'day-data-test',\n * somethingElse: 'this will not be returned',\n * }),\n * };\n * const dataTestIdProps = getDataTestIdProps(userProps['ds-controlled-date-time-picker-day-input']);\n * // dataTestIdProps = {\n * // 'aria-label': 'day-aria-label',\n * // 'data-test': 'day-data-test',\n * // }\n * @fires getAriaOrDataProps\n */\nconst getPropsPerDatatestid = (userProps: TypescriptHelpersT.AriaAndDataPropsOrPropsGetter | undefined) => {\n if (\n userProps === undefined ||\n userProps === null ||\n (typeof userProps !== 'object' && typeof userProps !== 'function')\n )\n return {};\n\n if (typeof userProps === 'function') {\n const values = getAriaOrDataProps(userProps());\n return values;\n }\n return getAriaOrDataProps(userProps);\n};\n\nexport { getPropsPerDatatestid };\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACGvB,SAAS,0BAA0B;AA2CnC,MAAM,wBAAwB,CAAC,cAA4E;AACzG,MACE,cAAc,UACd,cAAc,QACb,OAAO,cAAc,YAAY,OAAO,cAAc;AAEvD,WAAO,CAAC;AAEV,MAAI,OAAO,cAAc,YAAY;AACnC,UAAM,SAAS,mBAAmB,UAAU,CAAC;AAC7C,WAAO;AAAA,EACT;AACA,SAAO,mBAAmB,SAAS;AACrC;",
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/propsPerSlot/getPropsPerSlotPropTypes.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable indent */\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<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;ACCvB,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.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;",
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/xstyledProps/useGetXstyledProps.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { useMemo } from 'react';\nimport type {\n SizingProps,\n SpaceProps,\n LayoutProps,\n BoxShadowProps,\n BorderProps,\n BackgroundProps,\n} from '@elliemae/ds-system';\nimport { xstyledKeys } from './constants.js';\n\nexport interface XstyledProps\n extends SpaceProps,\n SizingProps,\n LayoutProps,\n BoxShadowProps,\n BorderProps,\n BackgroundProps {}\n\ntype PropsWithXstyled<T> = T & XstyledProps;\n\nexport const useGetXstyledProps = <T,>(props: PropsWithXstyled<T>): XstyledProps => {\n const componentXstyledProps = useMemo(() => {\n const xstyledPropsObject: Record<string, unknown> = {};\n Object.entries(props).forEach(([key, value]) => {\n if (key in xstyledKeys) {\n xstyledPropsObject[key] = value;\n }\n });\n return xstyledPropsObject;\n }, [props]);\n\n return componentXstyledProps as XstyledProps;\n};\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,eAAe;AASxB,SAAS,mBAAmB;AAYrB,MAAM,qBAAqB,CAAK,UAA6C;AAClF,QAAM,wBAAwB,QAAQ,MAAM;AAC1C,UAAM,qBAA8C,CAAC;AACrD,WAAO,QAAQ,KAAK,EAAE,QAAQ,CAAC,CAAC,KAAK,KAAK,MAAM;AAC9C,UAAI,OAAO,aAAa;AACtB,2BAAmB,GAAG,IAAI;AAAA,MAC5B;AAAA,IACF,CAAC;AACD,WAAO;AAAA,EACT,GAAG,CAAC,KAAK,CAAC;AAEV,SAAO;AACT;",
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { useMemo } from 'react';\nimport type {\n SizingProps,\n SpaceProps,\n LayoutProps,\n BoxShadowProps,\n BorderProps,\n BackgroundProps,\n FontWeightProps,\n TextAlignProps,\n} from '@elliemae/ds-system';\nimport { xstyledKeys } from './constants.js';\n\nexport interface XstyledProps\n extends SpaceProps,\n SizingProps,\n LayoutProps,\n BoxShadowProps,\n BorderProps,\n BackgroundProps,\n FontWeightProps,\n TextAlignProps {}\n\ntype PropsWithXstyled<T> = T & XstyledProps;\n\nexport const useGetXstyledProps = <T,>(props: PropsWithXstyled<T>): XstyledProps => {\n const componentXstyledProps = useMemo(() => {\n const xstyledPropsObject: Record<string, unknown> = {};\n Object.entries(props).forEach(([key, value]) => {\n if (key in xstyledKeys) {\n xstyledPropsObject[key] = value;\n }\n });\n return xstyledPropsObject;\n }, [props]);\n\n return componentXstyledProps as XstyledProps;\n};\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,eAAe;AAWxB,SAAS,mBAAmB;AAcrB,MAAM,qBAAqB,CAAK,UAA6C;AAClF,QAAM,wBAAwB,QAAQ,MAAM;AAC1C,UAAM,qBAA8C,CAAC;AACrD,WAAO,QAAQ,KAAK,EAAE,QAAQ,CAAC,CAAC,KAAK,KAAK,MAAM;AAC9C,UAAI,OAAO,aAAa;AACtB,2BAAmB,GAAG,IAAI;AAAA,MAC5B;AAAA,IACF,CAAC;AACD,WAAO;AAAA,EACT,GAAG,CAAC,KAAK,CAAC;AAEV,SAAO;AACT;",
6
6
  "names": []
7
7
  }
@@ -89,7 +89,9 @@ const xstyledPropTypes = {
89
89
  borderRightWidth: xstyledGenericPropType.description(genericDescription).xstyled(),
90
90
  borderLeftWidth: xstyledGenericPropType.description(genericDescription).xstyled(),
91
91
  borderRadius: xstyledGenericPropType.description(genericDescription).xstyled(),
92
- boxShadow: xstyledGenericPropType.description(genericDescription).xstyled()
92
+ boxShadow: xstyledGenericPropType.description(genericDescription).xstyled(),
93
+ fontWeight: xstyledGenericPropType.description(genericDescription).xstyled(),
94
+ textAlign: xstyledGenericPropType.description(genericDescription).xstyled()
93
95
  };
94
96
  export {
95
97
  xstyledPropTypes
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/xstyledProps/xstyledPropTypes.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { PropTypes } from '../propTypes/index.js';\n\n// Based on https://github.com/gregberge/xstyled/blob/c0c92b459bb3a5de46d7854be3667861f816baa5/packages/prop-types/src/index.ts\nconst xstyledGenericPropType = PropTypes.oneOfType([\n PropTypes.number,\n PropTypes.string,\n PropTypes.object,\n PropTypes.bool,\n]);\n\nconst genericDescription = 'Applies to the root container. For more info read xstyled docs';\n\nexport const xstyledPropTypes = {\n margin: xstyledGenericPropType.description(genericDescription).xstyled(),\n m: xstyledGenericPropType.description(genericDescription).xstyled(),\n marginTop: xstyledGenericPropType.description(genericDescription).xstyled(),\n mt: xstyledGenericPropType.description(genericDescription).xstyled(),\n marginRight: xstyledGenericPropType.description(genericDescription).xstyled(),\n mr: xstyledGenericPropType.description(genericDescription).xstyled(),\n marginBottom: xstyledGenericPropType.description(genericDescription).xstyled(),\n mb: xstyledGenericPropType.description(genericDescription).xstyled(),\n marginLeft: xstyledGenericPropType.description(genericDescription).xstyled(),\n ml: xstyledGenericPropType.description(genericDescription).xstyled(),\n mx: xstyledGenericPropType.description(genericDescription).xstyled(),\n my: xstyledGenericPropType.description(genericDescription).xstyled(),\n padding: xstyledGenericPropType.description(genericDescription).xstyled(),\n p: xstyledGenericPropType.description(genericDescription).xstyled(),\n paddingTop: xstyledGenericPropType.description(genericDescription).xstyled(),\n pt: xstyledGenericPropType.description(genericDescription).xstyled(),\n paddingRight: xstyledGenericPropType.description(genericDescription).xstyled(),\n pr: xstyledGenericPropType.description(genericDescription).xstyled(),\n paddingBottom: xstyledGenericPropType.description(genericDescription).xstyled(),\n pb: xstyledGenericPropType.description(genericDescription).xstyled(),\n paddingLeft: xstyledGenericPropType.description(genericDescription).xstyled(),\n pl: xstyledGenericPropType.description(genericDescription).xstyled(),\n px: xstyledGenericPropType.description(genericDescription).xstyled(),\n py: xstyledGenericPropType.description(genericDescription).xstyled(),\n spaceY: xstyledGenericPropType.description(genericDescription).xstyled(),\n spaceX: xstyledGenericPropType.description(genericDescription).xstyled(),\n spaceXReverse: xstyledGenericPropType.description(genericDescription).xstyled(),\n spaceYReverse: xstyledGenericPropType.description(genericDescription).xstyled(),\n w: xstyledGenericPropType.description(genericDescription).xstyled(),\n width: xstyledGenericPropType.description(genericDescription).xstyled(),\n maxWidth: xstyledGenericPropType.description(genericDescription).xstyled(),\n maxW: xstyledGenericPropType.description(genericDescription).xstyled(),\n minWidth: xstyledGenericPropType.description(genericDescription).xstyled(),\n minW: xstyledGenericPropType.description(genericDescription).xstyled(),\n h: xstyledGenericPropType.description(genericDescription).xstyled(),\n height: xstyledGenericPropType.description(genericDescription).xstyled(),\n maxHeight: xstyledGenericPropType.description(genericDescription).xstyled(),\n maxH: xstyledGenericPropType.description(genericDescription).xstyled(),\n minHeight: xstyledGenericPropType.description(genericDescription).xstyled(),\n minH: xstyledGenericPropType.description(genericDescription).xstyled(),\n maskSize: xstyledGenericPropType.description(genericDescription).xstyled(),\n display: xstyledGenericPropType.description(genericDescription).xstyled(),\n float: xstyledGenericPropType.description(genericDescription).xstyled(),\n boxSizing: xstyledGenericPropType.description(genericDescription).xstyled(),\n container: xstyledGenericPropType.description(genericDescription).xstyled(),\n overflow: xstyledGenericPropType.description(genericDescription).xstyled(),\n overflowX: xstyledGenericPropType.description(genericDescription).xstyled(),\n overflowY: xstyledGenericPropType.description(genericDescription).xstyled(),\n zIndex: xstyledGenericPropType.description(genericDescription).xstyled(),\n position: xstyledGenericPropType.description(genericDescription).xstyled(),\n top: xstyledGenericPropType.description(genericDescription).xstyled(),\n right: xstyledGenericPropType.description(genericDescription).xstyled(),\n bottom: xstyledGenericPropType.description(genericDescription).xstyled(),\n left: xstyledGenericPropType.description(genericDescription).xstyled(),\n visibility: xstyledGenericPropType.description(genericDescription).xstyled(),\n overscrollBehavior: xstyledGenericPropType.description(genericDescription).xstyled(),\n objectFit: xstyledGenericPropType.description(genericDescription).xstyled(),\n color: xstyledGenericPropType.description(genericDescription).xstyled(),\n bg: xstyledGenericPropType.description(genericDescription).xstyled(),\n backgroundColor: xstyledGenericPropType.description(genericDescription).xstyled(),\n border: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderTop: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderBottom: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderRight: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderLeft: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderColor: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderTopColor: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderBottomColor: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderRightColor: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderLeftColor: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderStyle: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderTopStyle: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderBottomStyle: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderRightStyle: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderLeftStyle: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderWidth: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderTopWidth: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderBottomWidth: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderRightWidth: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderLeftWidth: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderRadius: xstyledGenericPropType.description(genericDescription).xstyled(),\n boxShadow: xstyledGenericPropType.description(genericDescription).xstyled(),\n};\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,iBAAiB;AAG1B,MAAM,yBAAyB,UAAU,UAAU;AAAA,EACjD,UAAU;AAAA,EACV,UAAU;AAAA,EACV,UAAU;AAAA,EACV,UAAU;AACZ,CAAC;AAED,MAAM,qBAAqB;AAEpB,MAAM,mBAAmB;AAAA,EAC9B,QAAQ,uBAAuB,YAAY,kBAAkB,EAAE,QAAQ;AAAA,EACvE,GAAG,uBAAuB,YAAY,kBAAkB,EAAE,QAAQ;AAAA,EAClE,WAAW,uB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B,EAAE,QAAQ;AAAA,EAChF,aAAa,uBAAuB,YAAY,kBAAkB,EAAE,QAAQ;AAAA,EAC5E,gBAAgB,uBAAuB,YAAY,kBAAkB,EAAE,QAAQ;AAAA,EAC/E,mBAAmB,uBAAuB,YAAY,kBAAkB,EAAE,QAAQ;AAAA,EAClF,kBAAkB,uBAAuB,YAAY,kBAAkB,EAAE,QAAQ;AAAA,EACjF,iBAAiB,uBAAuB,YAAY,kBAAkB,EAAE,QAAQ;AAAA,EAChF,aAAa,uBAAuB,YAAY,kBAAkB,EAAE,QAAQ;AAAA,EAC5E,gBAAgB,uBAAuB,YAAY,kBAAkB,EAAE,QAAQ;AAAA,EAC/E,mBAAmB,uBAAuB,YAAY,kBAAkB,EAAE,QAAQ;AAAA,EAClF,kBAAkB,uBAAuB,YAAY,kBAAkB,EAAE,QAAQ;AAAA,EACjF,iBAAiB,uBAAuB,YAAY,kBAAkB,EAAE,QAAQ;AAAA,EAChF,cAAc,uBAAuB,YAAY,kBAAkB,EAAE,QAAQ;AAAA,EAC7E,WAAW,uBAAuB,YAAY,kBAAkB,EAAE,QAAQ;AAC5E;",
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { PropTypes } from '../propTypes/index.js';\n\n// Based on https://github.com/gregberge/xstyled/blob/c0c92b459bb3a5de46d7854be3667861f816baa5/packages/prop-types/src/index.ts\nconst xstyledGenericPropType = PropTypes.oneOfType([\n PropTypes.number,\n PropTypes.string,\n PropTypes.object,\n PropTypes.bool,\n]);\n\nconst genericDescription = 'Applies to the root container. For more info read xstyled docs';\n\nexport const xstyledPropTypes = {\n margin: xstyledGenericPropType.description(genericDescription).xstyled(),\n m: xstyledGenericPropType.description(genericDescription).xstyled(),\n marginTop: xstyledGenericPropType.description(genericDescription).xstyled(),\n mt: xstyledGenericPropType.description(genericDescription).xstyled(),\n marginRight: xstyledGenericPropType.description(genericDescription).xstyled(),\n mr: xstyledGenericPropType.description(genericDescription).xstyled(),\n marginBottom: xstyledGenericPropType.description(genericDescription).xstyled(),\n mb: xstyledGenericPropType.description(genericDescription).xstyled(),\n marginLeft: xstyledGenericPropType.description(genericDescription).xstyled(),\n ml: xstyledGenericPropType.description(genericDescription).xstyled(),\n mx: xstyledGenericPropType.description(genericDescription).xstyled(),\n my: xstyledGenericPropType.description(genericDescription).xstyled(),\n padding: xstyledGenericPropType.description(genericDescription).xstyled(),\n p: xstyledGenericPropType.description(genericDescription).xstyled(),\n paddingTop: xstyledGenericPropType.description(genericDescription).xstyled(),\n pt: xstyledGenericPropType.description(genericDescription).xstyled(),\n paddingRight: xstyledGenericPropType.description(genericDescription).xstyled(),\n pr: xstyledGenericPropType.description(genericDescription).xstyled(),\n paddingBottom: xstyledGenericPropType.description(genericDescription).xstyled(),\n pb: xstyledGenericPropType.description(genericDescription).xstyled(),\n paddingLeft: xstyledGenericPropType.description(genericDescription).xstyled(),\n pl: xstyledGenericPropType.description(genericDescription).xstyled(),\n px: xstyledGenericPropType.description(genericDescription).xstyled(),\n py: xstyledGenericPropType.description(genericDescription).xstyled(),\n spaceY: xstyledGenericPropType.description(genericDescription).xstyled(),\n spaceX: xstyledGenericPropType.description(genericDescription).xstyled(),\n spaceXReverse: xstyledGenericPropType.description(genericDescription).xstyled(),\n spaceYReverse: xstyledGenericPropType.description(genericDescription).xstyled(),\n w: xstyledGenericPropType.description(genericDescription).xstyled(),\n width: xstyledGenericPropType.description(genericDescription).xstyled(),\n maxWidth: xstyledGenericPropType.description(genericDescription).xstyled(),\n maxW: xstyledGenericPropType.description(genericDescription).xstyled(),\n minWidth: xstyledGenericPropType.description(genericDescription).xstyled(),\n minW: xstyledGenericPropType.description(genericDescription).xstyled(),\n h: xstyledGenericPropType.description(genericDescription).xstyled(),\n height: xstyledGenericPropType.description(genericDescription).xstyled(),\n maxHeight: xstyledGenericPropType.description(genericDescription).xstyled(),\n maxH: xstyledGenericPropType.description(genericDescription).xstyled(),\n minHeight: xstyledGenericPropType.description(genericDescription).xstyled(),\n minH: xstyledGenericPropType.description(genericDescription).xstyled(),\n maskSize: xstyledGenericPropType.description(genericDescription).xstyled(),\n display: xstyledGenericPropType.description(genericDescription).xstyled(),\n float: xstyledGenericPropType.description(genericDescription).xstyled(),\n boxSizing: xstyledGenericPropType.description(genericDescription).xstyled(),\n container: xstyledGenericPropType.description(genericDescription).xstyled(),\n overflow: xstyledGenericPropType.description(genericDescription).xstyled(),\n overflowX: xstyledGenericPropType.description(genericDescription).xstyled(),\n overflowY: xstyledGenericPropType.description(genericDescription).xstyled(),\n zIndex: xstyledGenericPropType.description(genericDescription).xstyled(),\n position: xstyledGenericPropType.description(genericDescription).xstyled(),\n top: xstyledGenericPropType.description(genericDescription).xstyled(),\n right: xstyledGenericPropType.description(genericDescription).xstyled(),\n bottom: xstyledGenericPropType.description(genericDescription).xstyled(),\n left: xstyledGenericPropType.description(genericDescription).xstyled(),\n visibility: xstyledGenericPropType.description(genericDescription).xstyled(),\n overscrollBehavior: xstyledGenericPropType.description(genericDescription).xstyled(),\n objectFit: xstyledGenericPropType.description(genericDescription).xstyled(),\n color: xstyledGenericPropType.description(genericDescription).xstyled(),\n bg: xstyledGenericPropType.description(genericDescription).xstyled(),\n backgroundColor: xstyledGenericPropType.description(genericDescription).xstyled(),\n border: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderTop: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderBottom: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderRight: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderLeft: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderColor: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderTopColor: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderBottomColor: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderRightColor: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderLeftColor: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderStyle: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderTopStyle: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderBottomStyle: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderRightStyle: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderLeftStyle: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderWidth: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderTopWidth: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderBottomWidth: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderRightWidth: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderLeftWidth: xstyledGenericPropType.description(genericDescription).xstyled(),\n borderRadius: xstyledGenericPropType.description(genericDescription).xstyled(),\n boxShadow: xstyledGenericPropType.description(genericDescription).xstyled(),\n fontWeight: xstyledGenericPropType.description(genericDescription).xstyled(),\n textAlign: xstyledGenericPropType.description(genericDescription).xstyled(),\n};\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,iBAAiB;AAG1B,MAAM,yBAAyB,UAAU,UAAU;AAAA,EACjD,UAAU;AAAA,EACV,UAAU;AAAA,EACV,UAAU;AAAA,EACV,UAAU;AACZ,CAAC;AAED,MAAM,qBAAqB;AAEpB,MAAM,mBAAmB;AAAA,EAC9B,QAAQ,uBAAuB,YAAY,kBAAkB,EAAE,QAAQ;AAAA,EACvE,GAAG,uBAAuB,YAAY,kBAAkB,EAAE,QAAQ;AAAA,EAClE,WAAW,uBAAuB,YAAY,kBAAkB,EAAE,QAAQ;AAAA,EAC1E,IAAI,uBAAuB,YAAY,kBAAkB,EAAE,QAAQ;AAAA,EACnE,aAAa,uBAAuB,YAAY,kBAAkB,EAAE,QAAQ;AAAA,EAC5E,IAAI,uBAAuB,YAAY,kBAAkB,EAAE,QAAQ;AAAA,EACnE,cAAc,uBAAuB,YAAY,kBAAkB,EAAE,QAAQ;AAAA,EAC7E,IAAI,uBAAuB,YAAY,kBAAkB,EAAE,QAAQ;AAAA,EACnE,YAAY,uBAAuB,YAAY,kBAAkB,EAAE,QAAQ;AAAA,EAC3E,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BAAuB,YAAY,kBAAkB,EAAE,QAAQ;AAAA,EAC/E,mBAAmB,uBAAuB,YAAY,kBAAkB,EAAE,QAAQ;AAAA,EAClF,kBAAkB,uBAAuB,YAAY,kBAAkB,EAAE,QAAQ;AAAA,EACjF,iBAAiB,uBAAuB,YAAY,kBAAkB,EAAE,QAAQ;AAAA,EAChF,cAAc,uBAAuB,YAAY,kBAAkB,EAAE,QAAQ;AAAA,EAC7E,WAAW,uBAAuB,YAAY,kBAAkB,EAAE,QAAQ;AAAA,EAC1E,YAAY,uBAAuB,YAAY,kBAAkB,EAAE,QAAQ;AAAA,EAC3E,WAAW,uBAAuB,YAAY,kBAAkB,EAAE,QAAQ;AAC5E;",
6
6
  "names": []
7
7
  }
@@ -1,3 +1,4 @@
1
- export declare const getAriaProps: <T extends Record<string, unknown> = Record<string, unknown>>(props: T) => AriaProps;
2
- export declare const getDataProps: <T extends Record<string, unknown> = Record<string, unknown>>(props: T) => DataProps;
3
- export declare const getAriaOrDataProps: <T extends Record<string, unknown> = Record<string, unknown>>(props: T) => AriaAndDataProps;
1
+ import { type TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';
2
+ export declare const getAriaProps: <T extends Record<string, unknown> = Record<string, unknown>>(props: T) => TypescriptHelpersT.AriaProps;
3
+ export declare const getDataProps: <T extends Record<string, unknown> = Record<string, unknown>>(props: T) => TypescriptHelpersT.DataProps;
4
+ export declare const getAriaOrDataProps: <T extends Record<string, unknown> = Record<string, unknown>>(props: T) => TypescriptHelpersT.AriaAndDataProps;
@@ -1,6 +1,7 @@
1
1
  import type { AllHTMLAttributes, AriaAttributes, DOMAttributes, HTMLAttributes } from 'react';
2
+ import { type TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';
2
3
  import type { GlobalAttributes } from './constants.js';
3
4
  export type GlobalAttributesT<T = Element> = Omit<AriaAttributes & DOMAttributes<T> & HTMLAttributes<T> & Omit<AllHTMLAttributes<T>, 'as'> & {
4
- tabIndex?: WCAGTabIndex;
5
+ tabIndex?: TypescriptHelpersT.WCAGTabIndex;
5
6
  }, 'dangerouslySetInnerHTML'>;
6
7
  export declare const getGlobalAttributes: <T, S = Element>(props: T, overrides?: Partial<GlobalAttributes<CallableFunction>>) => GlobalAttributesT<S>;
@@ -1,3 +1,4 @@
1
+ import { type TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';
1
2
  /**
2
3
  * Returns the props for a given dataTestId.
3
4
  * props are going to be filtered so only aria related and data-* props are going to be returned.
@@ -39,5 +40,5 @@
39
40
  * // }
40
41
  * @fires getAriaOrDataProps
41
42
  */
42
- declare const getPropsPerDatatestid: (userProps: AriaAndDataPropsOrPropsGetter | undefined) => AriaAndDataProps;
43
+ declare const getPropsPerDatatestid: (userProps: TypescriptHelpersT.AriaAndDataPropsOrPropsGetter | undefined) => TypescriptHelpersT.AriaAndDataProps;
43
44
  export { getPropsPerDatatestid };
@@ -1,6 +1,7 @@
1
+ import { type TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';
1
2
  import type { ReactDescT } from '../propTypes/types.js';
2
3
  type PropsPerSlotPropTypes<Name extends string, Slots extends Record<string, string>> = {
3
- [key in keyof Required<PropsForGlobalOnSlots<Name, Slots>>]: ReactDescT;
4
+ [key in keyof Required<TypescriptHelpersT.PropsForGlobalOnSlots<Name, Slots>>]: ReactDescT;
4
5
  };
5
6
  export declare const getPropsPerSlotPropTypes: <Name extends string, Slots extends Record<string, string>>(name: Name, slots: Slots) => PropsPerSlotPropTypes<Name, Slots>;
6
7
  export {};
@@ -1,5 +1,5 @@
1
- import type { SizingProps, SpaceProps, LayoutProps, BoxShadowProps, BorderProps, BackgroundProps } from '@elliemae/ds-system';
2
- export interface XstyledProps extends SpaceProps, SizingProps, LayoutProps, BoxShadowProps, BorderProps, BackgroundProps {
1
+ import type { SizingProps, SpaceProps, LayoutProps, BoxShadowProps, BorderProps, BackgroundProps, FontWeightProps, TextAlignProps } from '@elliemae/ds-system';
2
+ export interface XstyledProps extends SpaceProps, SizingProps, LayoutProps, BoxShadowProps, BorderProps, BackgroundProps, FontWeightProps, TextAlignProps {
3
3
  }
4
4
  type PropsWithXstyled<T> = T & XstyledProps;
5
5
  export declare const useGetXstyledProps: <T>(props: PropsWithXstyled<T>) => XstyledProps;
@@ -81,4 +81,6 @@ export declare const xstyledPropTypes: {
81
81
  borderLeftWidth: import("../propTypes/types.js").ReactDescT;
82
82
  borderRadius: import("../propTypes/types.js").ReactDescT;
83
83
  boxShadow: import("../propTypes/types.js").ReactDescT;
84
+ fontWeight: import("../propTypes/types.js").ReactDescT;
85
+ textAlign: import("../propTypes/types.js").ReactDescT;
84
86
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-props-helpers",
3
- "version": "3.29.1",
3
+ "version": "3.30.0-next.0",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Props Helpers",
6
6
  "files": [
@@ -34,11 +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.29.1"
37
+ "@elliemae/ds-system": "3.30.0-next.0",
38
+ "@elliemae/ds-typescript-helpers": "3.30.0-next.0"
38
39
  },
39
40
  "devDependencies": {
40
41
  "@elliemae/pui-cli": "~9.0.0-next.31",
41
- "@elliemae/ds-monorepo-devops": "3.29.1"
42
+ "@elliemae/ds-monorepo-devops": "3.30.0-next.0"
42
43
  },
43
44
  "peerDependencies": {
44
45
  "lodash": "^4.17.21",