@elliemae/ds-menu-items-single 3.36.0-next.0 → 3.36.0-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/DSMenuItemsSingle.js +1 -2
- package/dist/cjs/DSMenuItemsSingle.js.map +1 -1
- package/dist/cjs/config/useValidateProps.js.map +1 -1
- package/dist/cjs/index.js +0 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/DSMenuItemsSingle.js +1 -2
- package/dist/esm/DSMenuItemsSingle.js.map +1 -1
- package/dist/esm/config/useValidateProps.js.map +1 -1
- package/dist/esm/index.js +0 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/types/config/useMenuItemsSingle.d.ts +25 -25
- package/package.json +8 -8
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/DSMenuItemsSingle.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 { Checkmark } from '@elliemae/ds-icons';\nimport { type DSMenuItemsSingleT, DSMenuItemsSinglePropTypesSchema } from './react-desc-prop-types.js';\nimport { useMenuItemsSingle } from './config/useMenuItemsSingle.js';\n\nconst DSMenuItemsSingle: React.ComponentType<DSMenuItemsSingleT.Props> = (props) => {\n const { propsWithDefault, globalProps, xstyledProps } = useMenuItemsSingle(props);\n const {\n dsId,\n label,\n secondaryLabel,\n isSelected,\n onClick,\n isActive,\n innerRef,\n onMouseDown,\n onMouseEnter,\n onMouseLeave,\n wrapperStyles,\n render: Render,\n dataTestid,\n disabled,\n } = propsWithDefault;\n\n const onMouseDownHandler = React.useCallback(\n (e: React.MouseEvent) => {\n if (disabled) return;\n onMouseDown?.(e);\n },\n [disabled, onMouseDown],\n );\n\n const gridLayout = React.useMemo(() => {\n const cols = {\n small: ['1rem', 'auto'],\n medium: ['1.2308rem', 'auto'],\n };\n if (secondaryLabel) {\n cols.small.push('min-content');\n cols.medium.push('min-content');\n }\n return cols;\n }, [secondaryLabel]);\n\n return (\n <StyledGlobalMenuItemWrapper\n aria-selected={isSelected}\n id={dsId}\n role=\"option\"\n isActive={isActive}\n isSelected={isSelected}\n onClick={onClick}\n innerRef={innerRef}\n onMouseDown={onMouseDownHandler}\n onMouseEnter={onMouseEnter}\n onMouseLeave={onMouseLeave}\n className={isActive ? 'ds-list-item-active' : ''}\n style={wrapperStyles}\n data-testid={dataTestid}\n disabled={disabled}\n data-type=\"single\"\n {...globalProps}\n {...xstyledProps}\n >\n {Render !== undefined ? (\n <Render {...propsWithDefault} />\n ) : (\n <StyledContentWrapper cols={gridLayout} minHeight=\"16px\" gutter=\"xxs\" alignItems=\"center\">\n <div>{isSelected && <Checkmark size=\"s\" color={['brand-primary', '600']} />}</div>\n <StyleMenuItemLabel>{label}</StyleMenuItemLabel>\n {secondaryLabel !== undefined && <StyleMenuItemSecondaryLabel>{secondaryLabel}</StyleMenuItemSecondaryLabel>}\n </StyledContentWrapper>\n )}\n </StyledGlobalMenuItemWrapper>\n );\n};\n\n// this is `'DSSingleMenuItem'` for legacy reasons, when moving to inheritance pattern this has been kept as it was to avoid complications\nDSMenuItemsSingle.displayName = 'DSSingleMenuItem';\nconst DSMenuItemsSingleWithSchema = describe(DSMenuItemsSingle);\nDSMenuItemsSingleWithSchema.propTypes = DSMenuItemsSinglePropTypesSchema;\n\nexport { DSMenuItemsSingle, DSMenuItemsSingleWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADwEf;AAxER,mBAAkB;AAClB,8BAAyB;AACzB,mCAKO;AACP,sBAA0B;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,KAAK,aAAa;AAAA,IAChC;AACA,WAAO;AAAA,EACT,GAAG,CAAC,cAAc,CAAC;AAEnB,SACE;AAAA,IAAC;AAAA;AAAA,MACC,iBAAe;AAAA,MACf,IAAI;AAAA,MACJ,MAAK;AAAA,MACL;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,aAAa;AAAA,MACb;AAAA,MACA;AAAA,MACA,WAAW,WAAW,wBAAwB;AAAA,MAC9C,OAAO;AAAA,MACP,eAAa;AAAA,MACb;AAAA,MACA,aAAU;AAAA,MACT,GAAG;AAAA,MACH,GAAG;AAAA,MAEH,qBAAW,SACV,4CAAC,UAAQ,GAAG,kBAAkB,IAE9B,6CAAC,qDAAqB,MAAM,YAAY,WAAU,QAAO,QAAO,OAAM,YAAW,UAC/E;AAAA,oDAAC,SAAK,wBAAc,4CAAC,6BAAU,MAAK,KAAI,OAAO,CAAC,iBAAiB,KAAK,GAAG,GAAG;AAAA,QAC5E,4CAAC,mDAAoB,iBAAM;AAAA,QAC1B,mBAAmB,UAAa,4CAAC,4DAA6B,0BAAe;AAAA,SAChF;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 DSMenuItemsSingleT } 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 DSMenuItemsSingleName = `${DSMenuItemName}Single`;\n\nexport const useValidateProps = (\n props: DSMenuItemsSingleT.InternalProps,\n propTypes: WeakValidationMap<unknown>,\n): void => {\n // we validate the \"required if\" via 'isRequiredIf from our custom PropTypes\n useValidateTypescriptPropTypes(props, propTypes, DSMenuItemsSingleName);\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;
|
|
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_DSMenuItemsSingle = require("./DSMenuItemsSingle.js");
|
|
37
|
-
var import_react_desc_prop_types = require("./react-desc-prop-types.js");
|
|
38
37
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -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 { DSMenuItemsSingle, DSMenuItemsSingleWithSchema } from './DSMenuItemsSingle.js';\nexport { type DSMenuItemsSingleT } 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;
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADGvB,+BAA+D;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/DSMenuItemsSingle.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 { Checkmark } from '@elliemae/ds-icons';\nimport { type DSMenuItemsSingleT, DSMenuItemsSinglePropTypesSchema } from './react-desc-prop-types.js';\nimport { useMenuItemsSingle } from './config/useMenuItemsSingle.js';\n\nconst DSMenuItemsSingle: React.ComponentType<DSMenuItemsSingleT.Props> = (props) => {\n const { propsWithDefault, globalProps, xstyledProps } = useMenuItemsSingle(props);\n const {\n dsId,\n label,\n secondaryLabel,\n isSelected,\n onClick,\n isActive,\n innerRef,\n onMouseDown,\n onMouseEnter,\n onMouseLeave,\n wrapperStyles,\n render: Render,\n dataTestid,\n disabled,\n } = propsWithDefault;\n\n const onMouseDownHandler = React.useCallback(\n (e: React.MouseEvent) => {\n if (disabled) return;\n onMouseDown?.(e);\n },\n [disabled, onMouseDown],\n );\n\n const gridLayout = React.useMemo(() => {\n const cols = {\n small: ['1rem', 'auto'],\n medium: ['1.2308rem', 'auto'],\n };\n if (secondaryLabel) {\n cols.small.push('min-content');\n cols.medium.push('min-content');\n }\n return cols;\n }, [secondaryLabel]);\n\n return (\n <StyledGlobalMenuItemWrapper\n aria-selected={isSelected}\n id={dsId}\n role=\"option\"\n isActive={isActive}\n isSelected={isSelected}\n onClick={onClick}\n innerRef={innerRef}\n onMouseDown={onMouseDownHandler}\n onMouseEnter={onMouseEnter}\n onMouseLeave={onMouseLeave}\n className={isActive ? 'ds-list-item-active' : ''}\n style={wrapperStyles}\n data-testid={dataTestid}\n disabled={disabled}\n data-type=\"single\"\n {...globalProps}\n {...xstyledProps}\n >\n {Render !== undefined ? (\n <Render {...propsWithDefault} />\n ) : (\n <StyledContentWrapper cols={gridLayout} minHeight=\"16px\" gutter=\"xxs\" alignItems=\"center\">\n <div>{isSelected && <Checkmark size=\"s\" color={['brand-primary', '600']} />}</div>\n <StyleMenuItemLabel>{label}</StyleMenuItemLabel>\n {secondaryLabel !== undefined && <StyleMenuItemSecondaryLabel>{secondaryLabel}</StyleMenuItemSecondaryLabel>}\n </StyledContentWrapper>\n )}\n </StyledGlobalMenuItemWrapper>\n );\n};\n\n// this is `'DSSingleMenuItem'` for legacy reasons, when moving to inheritance pattern this has been kept as it was to avoid complications\nDSMenuItemsSingle.displayName = 'DSSingleMenuItem';\nconst DSMenuItemsSingleWithSchema = describe(DSMenuItemsSingle);\nDSMenuItemsSingleWithSchema.propTypes = DSMenuItemsSinglePropTypesSchema;\n\nexport { DSMenuItemsSingle, DSMenuItemsSingleWithSchema };\n"],
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACwEf,cAEA,YAFA;AAxER,OAAOA,YAAW;AAClB,SAAS,gBAAgB;AACzB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,iBAAiB;AAC1B,SAAkC,wCAAwC;AAC1E,SAAS,0BAA0B;AAEnC,MAAM,oBAAmE,CAAC,UAAU;AAClF,QAAM,EAAE,kBAAkB,aAAa,aAAa,IAAI,mBAAmB,KAA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Ae;AAAA,MACf,IAAI;AAAA,MACJ,MAAK;AAAA,MACL;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,aAAa;AAAA,MACb;AAAA,MACA;AAAA,MACA,WAAW,WAAW,wBAAwB;AAAA,MAC9C,OAAO;AAAA,MACP,eAAa;AAAA,MACb;AAAA,MACA,aAAU;AAAA,MACT,GAAG;AAAA,MACH,GAAG;AAAA,MAEH,qBAAW,SACV,oBAAC,UAAQ,GAAG,kBAAkB,IAE9B,qBAAC,wBAAqB,MAAM,YAAY,WAAU,QAAO,QAAO,OAAM,YAAW,UAC/E;AAAA,4BAAC,SAAK,wBAAc,oBAAC,aAAU,MAAK,KAAI,OAAO,CAAC,iBAAiB,KAAK,GAAG,GAAG;AAAA,QAC5E,oBAAC,sBAAoB,iBAAM;AAAA,QAC1B,mBAAmB,UAAa,oBAAC,+BAA6B,0BAAe;AAAA,SAChF;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 DSMenuItemsSingleT } 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 DSMenuItemsSingleName = `${DSMenuItemName}Single`;\n\nexport const useValidateProps = (\n props: DSMenuItemsSingleT.InternalProps,\n propTypes: WeakValidationMap<unknown>,\n): void => {\n // we validate the \"required if\" via 'isRequiredIf from our custom PropTypes\n useValidateTypescriptPropTypes(props, propTypes, DSMenuItemsSingleName);\n};\n"],
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,sCAAsC;AAC/C,SAAS,sBAAsB;AAQ/B,MAAM,wBAAwB,GAAG;
|
|
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
package/dist/esm/index.js.map
CHANGED
|
@@ -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 { DSMenuItemsSingle, DSMenuItemsSingleWithSchema } from './DSMenuItemsSingle.js';\nexport { type DSMenuItemsSingleT } from './react-desc-prop-types.js';\n"],
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACGvB,SAAS,mBAAmB,mCAAmC;
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACGvB,SAAS,mBAAmB,mCAAmC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -9,13 +9,21 @@ export interface MenuItemsSingleCTX {
|
|
|
9
9
|
export declare const useMenuItemsSingle: (propsFromUser: DSMenuItemsSingleT.Props) => {
|
|
10
10
|
propsWithDefault: DSMenuItemsSingleT.InternalProps;
|
|
11
11
|
globalProps: Partial<Pick<object, "label" | "disabled" | "onClick" | "onMouseDown" | "onMouseEnter" | "onMouseLeave" | "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" | "onMouseDownCapture" | "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" | "value" | "width" | "wmode" | "wrap"> & Omit<{
|
|
12
|
-
|
|
12
|
+
label?: string | undefined;
|
|
13
|
+
disabled?: boolean | undefined;
|
|
14
|
+
onClick?: React.MouseEventHandler<HTMLLIElement> | undefined;
|
|
15
|
+
onMouseDown?: React.MouseEventHandler<HTMLLIElement> | undefined;
|
|
16
|
+
onMouseEnter?: React.MouseEventHandler<HTMLLIElement> | undefined;
|
|
17
|
+
onMouseLeave?: React.MouseEventHandler<HTMLLIElement> | undefined;
|
|
18
|
+
tabIndex?: 0 | -1 | undefined;
|
|
19
|
+
form?: string | undefined;
|
|
20
|
+
list?: string | undefined;
|
|
13
21
|
"aria-activedescendant"?: string | undefined;
|
|
14
|
-
"aria-atomic"?: boolean | "true" | "false" | undefined;
|
|
22
|
+
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
15
23
|
"aria-autocomplete"?: "list" | "none" | "inline" | "both" | undefined;
|
|
16
24
|
"aria-braillelabel"?: string | undefined;
|
|
17
25
|
"aria-brailleroledescription"?: string | undefined;
|
|
18
|
-
"aria-busy"?: boolean | "true" | "false" | undefined;
|
|
26
|
+
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
19
27
|
"aria-checked"?: boolean | "true" | "false" | "mixed" | undefined;
|
|
20
28
|
"aria-colcount"?: number | undefined;
|
|
21
29
|
"aria-colindex"?: number | undefined;
|
|
@@ -26,37 +34,37 @@ export declare const useMenuItemsSingle: (propsFromUser: DSMenuItemsSingleT.Prop
|
|
|
26
34
|
"aria-describedby"?: string | undefined;
|
|
27
35
|
"aria-description"?: string | undefined;
|
|
28
36
|
"aria-details"?: string | undefined;
|
|
29
|
-
"aria-disabled"?: boolean | "true" | "false" | undefined;
|
|
37
|
+
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
30
38
|
"aria-dropeffect"?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
31
39
|
"aria-errormessage"?: string | undefined;
|
|
32
|
-
"aria-expanded"?: boolean | "true" | "false" | undefined;
|
|
40
|
+
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
33
41
|
"aria-flowto"?: string | undefined;
|
|
34
|
-
"aria-grabbed"?: boolean | "true" | "false" | undefined;
|
|
42
|
+
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
35
43
|
"aria-haspopup"?: boolean | "true" | "false" | "dialog" | "grid" | "listbox" | "menu" | "tree" | undefined;
|
|
36
|
-
"aria-hidden"?: boolean | "true" | "false" | undefined;
|
|
44
|
+
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
37
45
|
"aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
38
46
|
"aria-keyshortcuts"?: string | undefined;
|
|
39
47
|
"aria-label"?: string | undefined;
|
|
40
48
|
"aria-labelledby"?: string | undefined;
|
|
41
49
|
"aria-level"?: number | undefined;
|
|
42
50
|
"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;
|
|
51
|
+
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
52
|
+
"aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
53
|
+
"aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
46
54
|
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
47
55
|
"aria-owns"?: string | undefined;
|
|
48
56
|
"aria-placeholder"?: string | undefined;
|
|
49
57
|
"aria-posinset"?: number | undefined;
|
|
50
58
|
"aria-pressed"?: boolean | "true" | "false" | "mixed" | undefined;
|
|
51
|
-
"aria-readonly"?: boolean | "true" | "false" | undefined;
|
|
59
|
+
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
52
60
|
"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;
|
|
61
|
+
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
54
62
|
"aria-roledescription"?: string | undefined;
|
|
55
63
|
"aria-rowcount"?: number | undefined;
|
|
56
64
|
"aria-rowindex"?: number | undefined;
|
|
57
65
|
"aria-rowindextext"?: string | undefined;
|
|
58
66
|
"aria-rowspan"?: number | undefined;
|
|
59
|
-
"aria-selected"?: boolean | "true" | "false" | undefined;
|
|
67
|
+
"aria-selected"?: (boolean | "true" | "false") | undefined;
|
|
60
68
|
"aria-setsize"?: number | undefined;
|
|
61
69
|
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
62
70
|
"aria-valuemax"?: number | undefined;
|
|
@@ -150,7 +158,6 @@ export declare const useMenuItemsSingle: (propsFromUser: DSMenuItemsSingleT.Prop
|
|
|
150
158
|
onWaitingCapture?: React.ReactEventHandler<HTMLLIElement> | undefined;
|
|
151
159
|
onAuxClick?: React.MouseEventHandler<HTMLLIElement> | undefined;
|
|
152
160
|
onAuxClickCapture?: React.MouseEventHandler<HTMLLIElement> | undefined;
|
|
153
|
-
onClick?: React.MouseEventHandler<HTMLLIElement> | undefined;
|
|
154
161
|
onClickCapture?: React.MouseEventHandler<HTMLLIElement> | undefined;
|
|
155
162
|
onContextMenu?: React.MouseEventHandler<HTMLLIElement> | undefined;
|
|
156
163
|
onContextMenuCapture?: React.MouseEventHandler<HTMLLIElement> | undefined;
|
|
@@ -172,10 +179,7 @@ export declare const useMenuItemsSingle: (propsFromUser: DSMenuItemsSingleT.Prop
|
|
|
172
179
|
onDragStartCapture?: React.DragEventHandler<HTMLLIElement> | undefined;
|
|
173
180
|
onDrop?: React.DragEventHandler<HTMLLIElement> | undefined;
|
|
174
181
|
onDropCapture?: React.DragEventHandler<HTMLLIElement> | undefined;
|
|
175
|
-
onMouseDown?: React.MouseEventHandler<HTMLLIElement> | undefined;
|
|
176
182
|
onMouseDownCapture?: React.MouseEventHandler<HTMLLIElement> | undefined;
|
|
177
|
-
onMouseEnter?: React.MouseEventHandler<HTMLLIElement> | undefined;
|
|
178
|
-
onMouseLeave?: React.MouseEventHandler<HTMLLIElement> | undefined;
|
|
179
183
|
onMouseMove?: React.MouseEventHandler<HTMLLIElement> | undefined;
|
|
180
184
|
onMouseMoveCapture?: React.MouseEventHandler<HTMLLIElement> | undefined;
|
|
181
185
|
onMouseOut?: React.MouseEventHandler<HTMLLIElement> | undefined;
|
|
@@ -224,8 +228,6 @@ export declare const useMenuItemsSingle: (propsFromUser: DSMenuItemsSingleT.Prop
|
|
|
224
228
|
onAnimationIterationCapture?: React.AnimationEventHandler<HTMLLIElement> | undefined;
|
|
225
229
|
onTransitionEnd?: React.TransitionEventHandler<HTMLLIElement> | undefined;
|
|
226
230
|
onTransitionEndCapture?: React.TransitionEventHandler<HTMLLIElement> | undefined;
|
|
227
|
-
form?: string | undefined;
|
|
228
|
-
list?: string | undefined;
|
|
229
231
|
defaultChecked?: boolean | undefined;
|
|
230
232
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
231
233
|
suppressContentEditableWarning?: boolean | undefined;
|
|
@@ -233,18 +235,17 @@ export declare const useMenuItemsSingle: (propsFromUser: DSMenuItemsSingleT.Prop
|
|
|
233
235
|
accessKey?: string | undefined;
|
|
234
236
|
autoFocus?: boolean | undefined;
|
|
235
237
|
className?: string | undefined;
|
|
236
|
-
contentEditable?: boolean | "true" | "false" | "inherit" | "plaintext-only" | undefined;
|
|
238
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
237
239
|
contextMenu?: string | undefined;
|
|
238
240
|
dir?: string | undefined;
|
|
239
|
-
draggable?: boolean | "true" | "false" | undefined;
|
|
241
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
240
242
|
hidden?: boolean | undefined;
|
|
241
243
|
id?: string | undefined;
|
|
242
244
|
lang?: string | undefined;
|
|
243
245
|
nonce?: string | undefined;
|
|
244
246
|
slot?: string | undefined;
|
|
245
|
-
spellCheck?: boolean | "true" | "false" | undefined;
|
|
247
|
+
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
246
248
|
style?: React.CSSProperties | undefined;
|
|
247
|
-
tabIndex?: 0 | -1 | undefined;
|
|
248
249
|
title?: string | undefined;
|
|
249
250
|
translate?: "yes" | "no" | undefined;
|
|
250
251
|
radioGroup?: string | undefined;
|
|
@@ -300,7 +301,6 @@ export declare const useMenuItemsSingle: (propsFromUser: DSMenuItemsSingleT.Prop
|
|
|
300
301
|
dateTime?: string | undefined;
|
|
301
302
|
default?: boolean | undefined;
|
|
302
303
|
defer?: boolean | undefined;
|
|
303
|
-
disabled?: boolean | undefined;
|
|
304
304
|
download?: any;
|
|
305
305
|
encType?: string | undefined;
|
|
306
306
|
formAction?: string | undefined;
|
|
@@ -320,7 +320,6 @@ export declare const useMenuItemsSingle: (propsFromUser: DSMenuItemsSingleT.Prop
|
|
|
320
320
|
keyParams?: string | undefined;
|
|
321
321
|
keyType?: string | undefined;
|
|
322
322
|
kind?: string | undefined;
|
|
323
|
-
label?: string | undefined;
|
|
324
323
|
loop?: boolean | undefined;
|
|
325
324
|
low?: number | undefined;
|
|
326
325
|
manifest?: string | undefined;
|
|
@@ -335,6 +334,7 @@ export declare const useMenuItemsSingle: (propsFromUser: DSMenuItemsSingleT.Prop
|
|
|
335
334
|
minLength?: number | undefined;
|
|
336
335
|
multiple?: boolean | undefined;
|
|
337
336
|
muted?: boolean | undefined;
|
|
337
|
+
name?: string | undefined;
|
|
338
338
|
noValidate?: boolean | undefined;
|
|
339
339
|
open?: boolean | undefined;
|
|
340
340
|
optimum?: number | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-menu-items-single",
|
|
3
|
-
"version": "3.36.0-next.
|
|
3
|
+
"version": "3.36.0-next.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Menu Items Single",
|
|
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.36.0-next.
|
|
41
|
-
"@elliemae/ds-
|
|
42
|
-
"@elliemae/ds-
|
|
43
|
-
"@elliemae/ds-
|
|
44
|
-
"@elliemae/ds-system": "3.36.0-next.
|
|
45
|
-
"@elliemae/ds-utilities": "3.36.0-next.
|
|
40
|
+
"@elliemae/ds-grid": "3.36.0-next.2",
|
|
41
|
+
"@elliemae/ds-props-helpers": "3.36.0-next.2",
|
|
42
|
+
"@elliemae/ds-menu-items-commons": "3.36.0-next.2",
|
|
43
|
+
"@elliemae/ds-icons": "3.36.0-next.2",
|
|
44
|
+
"@elliemae/ds-system": "3.36.0-next.2",
|
|
45
|
+
"@elliemae/ds-utilities": "3.36.0-next.2"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"lodash": "^4.17.21",
|
|
49
49
|
"styled-components": "~5.3.9",
|
|
50
|
-
"@elliemae/ds-monorepo-devops": "3.36.0-next.
|
|
50
|
+
"@elliemae/ds-monorepo-devops": "3.36.0-next.2"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"@testing-library/jest-dom": "~5.16.4",
|