@elliemae/ds-menu-items-action 3.35.0 → 3.36.0-next.1

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.
@@ -55,8 +55,7 @@ const DSMenuItemsAction = (props) => {
55
55
  } = propsWithDefault;
56
56
  const gridLayout = import_react.default.useMemo(() => {
57
57
  const cols = ["auto"];
58
- if (secondaryLabel)
59
- cols.push("min-content");
58
+ if (secondaryLabel) cols.push("min-content");
60
59
  return cols;
61
60
  }, [secondaryLabel]);
62
61
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/DSMenuItemsAction.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["import React from 'react';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport {\n StyledGlobalMenuItemWrapper,\n StyledContentWrapper,\n StyleMenuItemLabel,\n StyleMenuItemSecondaryLabel,\n} from '@elliemae/ds-menu-items-commons';\nimport { type DSMenuItemsActionT, DSMenuItemsActionPropTypesSchema } from './react-desc-prop-types.js';\nimport { useMenuItemsAction } from './config/useMenuItemsAction.js';\n\nconst DSMenuItemsAction: React.ComponentType<DSMenuItemsActionT.Props> = (props) => {\n const { propsWithDefault, globalProps: globalAttributes, xstyledProps: xStyledProps } = useMenuItemsAction(props);\n\n const {\n dsId,\n label,\n secondaryLabel,\n onClick,\n isActive,\n disabled,\n innerRef,\n wrapperStyles,\n optionsShouldHavePadding,\n render: Render,\n } = propsWithDefault;\n\n const gridLayout = React.useMemo(() => {\n const cols = ['auto'];\n if (secondaryLabel) cols.push('min-content');\n return cols;\n }, [secondaryLabel]);\n\n return (\n <StyledGlobalMenuItemWrapper\n id={dsId}\n role=\"option\"\n isActive={isActive}\n disabled={disabled}\n onClick={!disabled ? onClick : undefined}\n innerRef={innerRef}\n pl={optionsShouldHavePadding ? 40 : 16}\n style={wrapperStyles}\n data-type=\"action\"\n {...globalAttributes}\n {...xStyledProps}\n >\n {Render !== undefined ? (\n <Render {...propsWithDefault} />\n ) : (\n <StyledContentWrapper cols={gridLayout} minHeight=\"16px\" gutter=\"xxs\" alignItems=\"center\">\n <>\n <StyleMenuItemLabel>{label}</StyleMenuItemLabel>\n {secondaryLabel !== undefined && (\n <StyleMenuItemSecondaryLabel>{secondaryLabel}</StyleMenuItemSecondaryLabel>\n )}\n </>\n </StyledContentWrapper>\n )}\n </StyledGlobalMenuItemWrapper>\n );\n};\n\n// this is `'DSActionMenuItem'` for legacy reasons, when moving to inheritance pattern this has been kept as it was to avoid complications\nDSMenuItemsAction.displayName = 'DSActionMenuItem';\nconst DSMenuItemsActionWithSchema = describe(DSMenuItemsAction);\nDSMenuItemsActionWithSchema.propTypes = DSMenuItemsActionPropTypesSchema;\n\nexport { DSMenuItemsAction, DSMenuItemsActionWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADgDf;AAhDR,mBAAkB;AAClB,8BAAyB;AACzB,mCAKO;AACP,mCAA0E;AAC1E,gCAAmC;AAEnC,MAAM,oBAAmE,CAAC,UAAU;AAClF,QAAM,EAAE,kBAAkB,aAAa,kBAAkB,cAAc,aAAa,QAAI,8CAAmB,KAAK;AAEhH,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,QAAQ;AAAA,EACV,IAAI;AAEJ,QAAM,aAAa,aAAAA,QAAM,QAAQ,MAAM;AACrC,UAAM,OAAO,CAAC,MAAM;AACpB,QAAI;AAAgB,WAAK,KAAK,aAAa;AAC3C,WAAO;AAAA,EACT,GAAG,CAAC,cAAc,CAAC;AAEnB,SACE;AAAA,IAAC;AAAA;AAAA,MACC,IAAI;AAAA,MACJ,MAAK;AAAA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ACA,IAAI,2BAA2B,KAAK;AAAA,MACpC,OAAO;AAAA,MACP,aAAU;AAAA,MACT,GAAG;AAAA,MACH,GAAG;AAAA,MAEH,qBAAW,SACV,4CAAC,UAAQ,GAAG,kBAAkB,IAE9B,4CAAC,qDAAqB,MAAM,YAAY,WAAU,QAAO,QAAO,OAAM,YAAW,UAC/E,sFACE;AAAA,oDAAC,mDAAoB,iBAAM;AAAA,QAC1B,mBAAmB,UAClB,4CAAC,4DAA6B,0BAAe;AAAA,SAEjD,GACF;AAAA;AAAA,EAEJ;AAEJ;AAGA,kBAAkB,cAAc;AAChC,MAAM,kCAA8B,kCAAS,iBAAiB;AAC9D,4BAA4B,YAAY;",
6
6
  "names": ["React"]
7
7
  }
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../src/config/useValidateProps.ts", "../../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["import { useValidateTypescriptPropTypes } from '@elliemae/ds-props-helpers';\nimport { DSMenuItemName } from '@elliemae/ds-menu-items-commons';\nimport type { WeakValidationMap } from 'react';\nimport { type DSMenuItemsActionT } from '../react-desc-prop-types.js';\n\n// because this is inherited from the common props, we do not want to put this in the /constants/index.ts file\n// this is strictly defined here because this is meant to strictly influence ONLY the ERROR layer\n// this is 100% decoupled from ds-slots & data-testid\n// this constants only affect the shown error message as of 21/december/2023\nconst DSMenuItemsActionName = `${DSMenuItemName}Action`;\n\nexport const useValidateProps = (\n props: DSMenuItemsActionT.InternalProps,\n propTypes: WeakValidationMap<unknown>,\n): void => {\n // we validate the \"required if\" via 'isRequiredIf from our custom PropTypes\n useValidateTypescriptPropTypes(props, propTypes, DSMenuItemsActionName);\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,8BAA+C;AAC/C,mCAA+B;AAQ/B,MAAM,wBAAwB,GAAG;AAE1B,MAAM,mBAAmB,CAC9B,OACA,cACS;AAET,8DAA+B,OAAO,WAAW,qBAAqB;AACxE;",
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,8BAA+C;AAC/C,mCAA+B;AAQ/B,MAAM,wBAAwB,GAAG,2CAAc;AAExC,MAAM,mBAAmB,CAC9B,OACA,cACS;AAET,8DAA+B,OAAO,WAAW,qBAAqB;AACxE;",
6
6
  "names": []
7
7
  }
package/dist/cjs/index.js CHANGED
@@ -34,5 +34,4 @@ __export(src_exports, {
34
34
  module.exports = __toCommonJS(src_exports);
35
35
  var React = __toESM(require("react"));
36
36
  var import_DSMenuItemsAction = require("./DSMenuItemsAction.js");
37
- var import_react_desc_prop_types = require("./react-desc-prop-types.js");
38
37
  //# sourceMappingURL=index.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.ts", "../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["// this is a workaround to typescript error TS2742\n// https://github.com/microsoft/TypeScript/issues/47663\nimport type {} from '@xstyled/system';\nexport { DSMenuItemsAction, DSMenuItemsActionWithSchema } from './DSMenuItemsAction.js';\nexport { type DSMenuItemsActionT } from './react-desc-prop-types.js';\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADGvB,+BAA+D;AAC/D,mCAAwC;",
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADGvB,+BAA+D;",
6
6
  "names": []
7
7
  }
@@ -26,8 +26,7 @@ const DSMenuItemsAction = (props) => {
26
26
  } = propsWithDefault;
27
27
  const gridLayout = React2.useMemo(() => {
28
28
  const cols = ["auto"];
29
- if (secondaryLabel)
30
- cols.push("min-content");
29
+ if (secondaryLabel) cols.push("min-content");
31
30
  return cols;
32
31
  }, [secondaryLabel]);
33
32
  return /* @__PURE__ */ jsx(
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/DSMenuItemsAction.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport {\n StyledGlobalMenuItemWrapper,\n StyledContentWrapper,\n StyleMenuItemLabel,\n StyleMenuItemSecondaryLabel,\n} from '@elliemae/ds-menu-items-commons';\nimport { type DSMenuItemsActionT, DSMenuItemsActionPropTypesSchema } from './react-desc-prop-types.js';\nimport { useMenuItemsAction } from './config/useMenuItemsAction.js';\n\nconst DSMenuItemsAction: React.ComponentType<DSMenuItemsActionT.Props> = (props) => {\n const { propsWithDefault, globalProps: globalAttributes, xstyledProps: xStyledProps } = useMenuItemsAction(props);\n\n const {\n dsId,\n label,\n secondaryLabel,\n onClick,\n isActive,\n disabled,\n innerRef,\n wrapperStyles,\n optionsShouldHavePadding,\n render: Render,\n } = propsWithDefault;\n\n const gridLayout = React.useMemo(() => {\n const cols = ['auto'];\n if (secondaryLabel) cols.push('min-content');\n return cols;\n }, [secondaryLabel]);\n\n return (\n <StyledGlobalMenuItemWrapper\n id={dsId}\n role=\"option\"\n isActive={isActive}\n disabled={disabled}\n onClick={!disabled ? onClick : undefined}\n innerRef={innerRef}\n pl={optionsShouldHavePadding ? 40 : 16}\n style={wrapperStyles}\n data-type=\"action\"\n {...globalAttributes}\n {...xStyledProps}\n >\n {Render !== undefined ? (\n <Render {...propsWithDefault} />\n ) : (\n <StyledContentWrapper cols={gridLayout} minHeight=\"16px\" gutter=\"xxs\" alignItems=\"center\">\n <>\n <StyleMenuItemLabel>{label}</StyleMenuItemLabel>\n {secondaryLabel !== undefined && (\n <StyleMenuItemSecondaryLabel>{secondaryLabel}</StyleMenuItemSecondaryLabel>\n )}\n </>\n </StyledContentWrapper>\n )}\n </StyledGlobalMenuItemWrapper>\n );\n};\n\n// this is `'DSActionMenuItem'` for legacy reasons, when moving to inheritance pattern this has been kept as it was to avoid complications\nDSMenuItemsAction.displayName = 'DSActionMenuItem';\nconst DSMenuItemsActionWithSchema = describe(DSMenuItemsAction);\nDSMenuItemsActionWithSchema.propTypes = DSMenuItemsActionPropTypesSchema;\n\nexport { DSMenuItemsAction, DSMenuItemsActionWithSchema };\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACgDf,SAGE,UAHF,KAGE,YAHF;AAhDR,OAAOA,YAAW;AAClB,SAAS,gBAAgB;AACzB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAkC,wCAAwC;AAC1E,SAAS,0BAA0B;AAEnC,MAAM,oBAAmE,CAAC,UAAU;AAClF,QAAM,EAAE,kBAAkB,aAAa,kBAAkB,cAAc,aAAa,IAAI,mBAAmB,KAAK;AAEhH,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,QAAQ;AAAA,EACV,IAAI;AAEJ,QAAM,aAAaA,OAAM,QAAQ,MAAM;AACrC,UAAM,OAAO,CAAC,MAAM;AACpB,QAAI;AAAgB,WAAK,KAAK,aAAa;AAC3C,WAAO;AAAA,EACT,GAAG,CAAC,cAAc,CAAC;AAEnB,SACE;AAAA,IAAC;AAAA;AAAA,MACC,IAAI;AAAA,MACJ,MAAK;AAAA,MACL;AAAA,MACA;AAAA,MACA,SAAS,CAAC,WAAW,UAAU;AAAA,MAC/B;AAAA,MACA,IAAI,2BAA2B,KAAK;AAAA,MACpC,OAAO;AAAA,MACP,aAAU;AAAA,MACT,GAAG;AAAA,MACH,GAAG;AAAA,MAEH,qBAAW,SACV,oBAAC,UAAQ,GAAG,kBAAkB,IAE9B,oBAAC,wBAAqB,MAA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E;AAAA,4BAAC,sBAAoB,iBAAM;AAAA,QAC1B,mBAAmB,UAClB,oBAAC,+BAA6B,0BAAe;AAAA,SAEjD,GACF;AAAA;AAAA,EAEJ;AAEJ;AAGA,kBAAkB,cAAc;AAChC,MAAM,8BAA8B,SAAS,iBAAiB;AAC9D,4BAA4B,YAAY;",
6
6
  "names": ["React"]
7
7
  }
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/config/useValidateProps.ts"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { useValidateTypescriptPropTypes } from '@elliemae/ds-props-helpers';\nimport { DSMenuItemName } from '@elliemae/ds-menu-items-commons';\nimport type { WeakValidationMap } from 'react';\nimport { type DSMenuItemsActionT } from '../react-desc-prop-types.js';\n\n// because this is inherited from the common props, we do not want to put this in the /constants/index.ts file\n// this is strictly defined here because this is meant to strictly influence ONLY the ERROR layer\n// this is 100% decoupled from ds-slots & data-testid\n// this constants only affect the shown error message as of 21/december/2023\nconst DSMenuItemsActionName = `${DSMenuItemName}Action`;\n\nexport const useValidateProps = (\n props: DSMenuItemsActionT.InternalProps,\n propTypes: WeakValidationMap<unknown>,\n): void => {\n // we validate the \"required if\" via 'isRequiredIf from our custom PropTypes\n useValidateTypescriptPropTypes(props, propTypes, DSMenuItemsActionName);\n};\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,sCAAsC;AAC/C,SAAS,sBAAsB;AAQ/B,MAAM,wBAAwB,GAAG;AAE1B,MAAM,mBAAmB,CAC9B,OACA,cACS;AAET,iCAA+B,OAAO,WAAW,qBAAqB;AACxE;",
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,sCAAsC;AAC/C,SAAS,sBAAsB;AAQ/B,MAAM,wBAAwB,GAAG,cAAc;AAExC,MAAM,mBAAmB,CAC9B,OACA,cACS;AAET,iCAA+B,OAAO,WAAW,qBAAqB;AACxE;",
6
6
  "names": []
7
7
  }
package/dist/esm/index.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import * as React from "react";
2
2
  import { DSMenuItemsAction, DSMenuItemsActionWithSchema } from "./DSMenuItemsAction.js";
3
- import {} from "./react-desc-prop-types.js";
4
3
  export {
5
4
  DSMenuItemsAction,
6
5
  DSMenuItemsActionWithSchema
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/index.ts"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "// this is a workaround to typescript error TS2742\n// https://github.com/microsoft/TypeScript/issues/47663\nimport type {} from '@xstyled/system';\nexport { DSMenuItemsAction, DSMenuItemsActionWithSchema } from './DSMenuItemsAction.js';\nexport { type DSMenuItemsActionT } from './react-desc-prop-types.js';\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACGvB,SAAS,mBAAmB,mCAAmC;AAC/D,eAAwC;",
5
+ "mappings": "AAAA,YAAY,WAAW;ACGvB,SAAS,mBAAmB,mCAAmC;",
6
6
  "names": []
7
7
  }
@@ -9,13 +9,19 @@ export interface MenuItemsActionCTX {
9
9
  export declare const useMenuItemsAction: (propsFromUser: DSMenuItemsActionT.Props) => {
10
10
  propsWithDefault: DSMenuItemsActionT.InternalProps;
11
11
  globalProps: Partial<Pick<object, "label" | "value" | "disabled" | "onClick" | "tabIndex" | "form" | "list" | "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" | "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" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "slot" | "spellCheck" | "style" | "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" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "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" | "width" | "wmode" | "wrap"> & Omit<{
12
- name?: string | undefined;
12
+ label?: string | undefined;
13
+ value?: string | number | readonly string[] | undefined;
14
+ disabled?: boolean | undefined;
15
+ onClick?: React.MouseEventHandler<HTMLLIElement> | undefined;
16
+ tabIndex?: 0 | -1 | undefined;
17
+ form?: string | undefined;
18
+ list?: string | undefined;
13
19
  "aria-activedescendant"?: string | undefined;
14
- "aria-atomic"?: boolean | "true" | "false" | undefined;
20
+ "aria-atomic"?: (boolean | "true" | "false") | undefined;
15
21
  "aria-autocomplete"?: "list" | "none" | "inline" | "both" | undefined;
16
22
  "aria-braillelabel"?: string | undefined;
17
23
  "aria-brailleroledescription"?: string | undefined;
18
- "aria-busy"?: boolean | "true" | "false" | undefined;
24
+ "aria-busy"?: (boolean | "true" | "false") | undefined;
19
25
  "aria-checked"?: boolean | "true" | "false" | "mixed" | undefined;
20
26
  "aria-colcount"?: number | undefined;
21
27
  "aria-colindex"?: number | undefined;
@@ -26,37 +32,37 @@ export declare const useMenuItemsAction: (propsFromUser: DSMenuItemsActionT.Prop
26
32
  "aria-describedby"?: string | undefined;
27
33
  "aria-description"?: string | undefined;
28
34
  "aria-details"?: string | undefined;
29
- "aria-disabled"?: boolean | "true" | "false" | undefined;
35
+ "aria-disabled"?: (boolean | "true" | "false") | undefined;
30
36
  "aria-dropeffect"?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
31
37
  "aria-errormessage"?: string | undefined;
32
- "aria-expanded"?: boolean | "true" | "false" | undefined;
38
+ "aria-expanded"?: (boolean | "true" | "false") | undefined;
33
39
  "aria-flowto"?: string | undefined;
34
- "aria-grabbed"?: boolean | "true" | "false" | undefined;
40
+ "aria-grabbed"?: (boolean | "true" | "false") | undefined;
35
41
  "aria-haspopup"?: boolean | "true" | "false" | "dialog" | "grid" | "listbox" | "menu" | "tree" | undefined;
36
- "aria-hidden"?: boolean | "true" | "false" | undefined;
42
+ "aria-hidden"?: (boolean | "true" | "false") | undefined;
37
43
  "aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
38
44
  "aria-keyshortcuts"?: string | undefined;
39
45
  "aria-label"?: string | undefined;
40
46
  "aria-labelledby"?: string | undefined;
41
47
  "aria-level"?: number | undefined;
42
48
  "aria-live"?: "off" | "assertive" | "polite" | undefined;
43
- "aria-modal"?: boolean | "true" | "false" | undefined;
44
- "aria-multiline"?: boolean | "true" | "false" | undefined;
45
- "aria-multiselectable"?: boolean | "true" | "false" | undefined;
49
+ "aria-modal"?: (boolean | "true" | "false") | undefined;
50
+ "aria-multiline"?: (boolean | "true" | "false") | undefined;
51
+ "aria-multiselectable"?: (boolean | "true" | "false") | undefined;
46
52
  "aria-orientation"?: "horizontal" | "vertical" | undefined;
47
53
  "aria-owns"?: string | undefined;
48
54
  "aria-placeholder"?: string | undefined;
49
55
  "aria-posinset"?: number | undefined;
50
56
  "aria-pressed"?: boolean | "true" | "false" | "mixed" | undefined;
51
- "aria-readonly"?: boolean | "true" | "false" | undefined;
57
+ "aria-readonly"?: (boolean | "true" | "false") | undefined;
52
58
  "aria-relevant"?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
53
- "aria-required"?: boolean | "true" | "false" | undefined;
59
+ "aria-required"?: (boolean | "true" | "false") | undefined;
54
60
  "aria-roledescription"?: string | undefined;
55
61
  "aria-rowcount"?: number | undefined;
56
62
  "aria-rowindex"?: number | undefined;
57
63
  "aria-rowindextext"?: string | undefined;
58
64
  "aria-rowspan"?: number | undefined;
59
- "aria-selected"?: boolean | "true" | "false" | undefined;
65
+ "aria-selected"?: (boolean | "true" | "false") | undefined;
60
66
  "aria-setsize"?: number | undefined;
61
67
  "aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
62
68
  "aria-valuemax"?: number | undefined;
@@ -150,7 +156,6 @@ export declare const useMenuItemsAction: (propsFromUser: DSMenuItemsActionT.Prop
150
156
  onWaitingCapture?: React.ReactEventHandler<HTMLLIElement> | undefined;
151
157
  onAuxClick?: React.MouseEventHandler<HTMLLIElement> | undefined;
152
158
  onAuxClickCapture?: React.MouseEventHandler<HTMLLIElement> | undefined;
153
- onClick?: React.MouseEventHandler<HTMLLIElement> | undefined;
154
159
  onClickCapture?: React.MouseEventHandler<HTMLLIElement> | undefined;
155
160
  onContextMenu?: React.MouseEventHandler<HTMLLIElement> | undefined;
156
161
  onContextMenuCapture?: React.MouseEventHandler<HTMLLIElement> | undefined;
@@ -224,8 +229,6 @@ export declare const useMenuItemsAction: (propsFromUser: DSMenuItemsActionT.Prop
224
229
  onAnimationIterationCapture?: React.AnimationEventHandler<HTMLLIElement> | undefined;
225
230
  onTransitionEnd?: React.TransitionEventHandler<HTMLLIElement> | undefined;
226
231
  onTransitionEndCapture?: React.TransitionEventHandler<HTMLLIElement> | undefined;
227
- form?: string | undefined;
228
- list?: string | undefined;
229
232
  defaultChecked?: boolean | undefined;
230
233
  defaultValue?: string | number | readonly string[] | undefined;
231
234
  suppressContentEditableWarning?: boolean | undefined;
@@ -233,18 +236,17 @@ export declare const useMenuItemsAction: (propsFromUser: DSMenuItemsActionT.Prop
233
236
  accessKey?: string | undefined;
234
237
  autoFocus?: boolean | undefined;
235
238
  className?: string | undefined;
236
- contentEditable?: boolean | "true" | "false" | "inherit" | "plaintext-only" | undefined;
239
+ contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
237
240
  contextMenu?: string | undefined;
238
241
  dir?: string | undefined;
239
- draggable?: boolean | "true" | "false" | undefined;
242
+ draggable?: (boolean | "true" | "false") | undefined;
240
243
  hidden?: boolean | undefined;
241
244
  id?: string | undefined;
242
245
  lang?: string | undefined;
243
246
  nonce?: string | undefined;
244
247
  slot?: string | undefined;
245
- spellCheck?: boolean | "true" | "false" | undefined;
248
+ spellCheck?: (boolean | "true" | "false") | undefined;
246
249
  style?: React.CSSProperties | undefined;
247
- tabIndex?: 0 | -1 | undefined;
248
250
  title?: string | undefined;
249
251
  translate?: "yes" | "no" | undefined;
250
252
  radioGroup?: string | undefined;
@@ -300,7 +302,6 @@ export declare const useMenuItemsAction: (propsFromUser: DSMenuItemsActionT.Prop
300
302
  dateTime?: string | undefined;
301
303
  default?: boolean | undefined;
302
304
  defer?: boolean | undefined;
303
- disabled?: boolean | undefined;
304
305
  download?: any;
305
306
  encType?: string | undefined;
306
307
  formAction?: string | undefined;
@@ -320,7 +321,6 @@ export declare const useMenuItemsAction: (propsFromUser: DSMenuItemsActionT.Prop
320
321
  keyParams?: string | undefined;
321
322
  keyType?: string | undefined;
322
323
  kind?: string | undefined;
323
- label?: string | undefined;
324
324
  loop?: boolean | undefined;
325
325
  low?: number | undefined;
326
326
  manifest?: string | undefined;
@@ -335,6 +335,7 @@ export declare const useMenuItemsAction: (propsFromUser: DSMenuItemsActionT.Prop
335
335
  minLength?: number | undefined;
336
336
  multiple?: boolean | undefined;
337
337
  muted?: boolean | undefined;
338
+ name?: string | undefined;
338
339
  noValidate?: boolean | undefined;
339
340
  open?: boolean | undefined;
340
341
  optimum?: number | undefined;
@@ -368,7 +369,6 @@ export declare const useMenuItemsAction: (propsFromUser: DSMenuItemsActionT.Prop
368
369
  target?: string | undefined;
369
370
  type?: string | undefined;
370
371
  useMap?: string | undefined;
371
- value?: string | number | readonly string[] | undefined;
372
372
  width?: string | number | undefined;
373
373
  wmode?: string | undefined;
374
374
  wrap?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-menu-items-action",
3
- "version": "3.35.0",
3
+ "version": "3.36.0-next.1",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Menu Items Action",
6
6
  "files": [
@@ -37,17 +37,17 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "@xstyled/styled-components": "~3.6.0",
40
- "@elliemae/ds-grid": "3.35.0",
41
- "@elliemae/ds-button": "3.35.0",
42
- "@elliemae/ds-system": "3.35.0",
43
- "@elliemae/ds-props-helpers": "3.35.0",
44
- "@elliemae/ds-menu-items-commons": "3.35.0",
45
- "@elliemae/ds-utilities": "3.35.0"
40
+ "@elliemae/ds-button": "3.36.0-next.1",
41
+ "@elliemae/ds-grid": "3.36.0-next.1",
42
+ "@elliemae/ds-menu-items-commons": "3.36.0-next.1",
43
+ "@elliemae/ds-props-helpers": "3.36.0-next.1",
44
+ "@elliemae/ds-system": "3.36.0-next.1",
45
+ "@elliemae/ds-utilities": "3.36.0-next.1"
46
46
  },
47
47
  "devDependencies": {
48
48
  "lodash": "^4.17.21",
49
49
  "styled-components": "~5.3.9",
50
- "@elliemae/ds-monorepo-devops": "3.35.0"
50
+ "@elliemae/ds-monorepo-devops": "3.36.0-next.1"
51
51
  },
52
52
  "peerDependencies": {
53
53
  "@testing-library/jest-dom": "~5.16.4",