@elliemae/ds-menu-items-separator 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.
@@ -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 DSMenuItemsSeparatorT } 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 DSMenuItemsSeparatorName = `${DSMenuItemName}Separator`;\n\nexport const useValidateProps = (\n props: DSMenuItemsSeparatorT.InternalProps,\n propTypes: WeakValidationMap<unknown>,\n): void => {\n // we validate the \"required if\" via 'isRequiredIf from our custom PropTypes\n useValidateTypescriptPropTypes(props, propTypes, DSMenuItemsSeparatorName);\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,2BAA2B,GAAG;AAE7B,MAAM,mBAAmB,CAC9B,OACA,cACS;AAET,8DAA+B,OAAO,WAAW,wBAAwB;AAC3E;",
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,8BAA+C;AAC/C,mCAA+B;AAQ/B,MAAM,2BAA2B,GAAG,2CAAc;AAE3C,MAAM,mBAAmB,CAC9B,OACA,cACS;AAET,8DAA+B,OAAO,WAAW,wBAAwB;AAC3E;",
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_DSMenuItemsSeparator = require("./DSMenuItemsSeparator.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 { DSMenuItemsSeparator, DSMenuItemsSeparatorWithSchema } from './DSMenuItemsSeparator.js';\nexport { type DSMenuItemsSeparatorT } 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,kCAAqE;AACrE,mCAA2C;",
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADGvB,kCAAqE;",
6
6
  "names": []
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 DSMenuItemsSeparatorT } 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 DSMenuItemsSeparatorName = `${DSMenuItemName}Separator`;\n\nexport const useValidateProps = (\n props: DSMenuItemsSeparatorT.InternalProps,\n propTypes: WeakValidationMap<unknown>,\n): void => {\n // we validate the \"required if\" via 'isRequiredIf from our custom PropTypes\n useValidateTypescriptPropTypes(props, propTypes, DSMenuItemsSeparatorName);\n};\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,sCAAsC;AAC/C,SAAS,sBAAsB;AAQ/B,MAAM,2BAA2B,GAAG;AAE7B,MAAM,mBAAmB,CAC9B,OACA,cACS;AAET,iCAA+B,OAAO,WAAW,wBAAwB;AAC3E;",
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,sCAAsC;AAC/C,SAAS,sBAAsB;AAQ/B,MAAM,2BAA2B,GAAG,cAAc;AAE3C,MAAM,mBAAmB,CAC9B,OACA,cACS;AAET,iCAA+B,OAAO,WAAW,wBAAwB;AAC3E;",
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 { DSMenuItemsSeparator, DSMenuItemsSeparatorWithSchema } from "./DSMenuItemsSeparator.js";
3
- import {} from "./react-desc-prop-types.js";
4
3
  export {
5
4
  DSMenuItemsSeparator,
6
5
  DSMenuItemsSeparatorWithSchema
@@ -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 { DSMenuItemsSeparator, DSMenuItemsSeparatorWithSchema } from './DSMenuItemsSeparator.js';\nexport { type DSMenuItemsSeparatorT } from './react-desc-prop-types.js';\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACGvB,SAAS,sBAAsB,sCAAsC;AACrE,eAA2C;",
5
+ "mappings": "AAAA,YAAY,WAAW;ACGvB,SAAS,sBAAsB,sCAAsC;",
6
6
  "names": []
7
7
  }
@@ -10,13 +10,15 @@ export interface MenuItemsSeparatorCTX {
10
10
  export declare const useMenuItemsSeparator: (propsFromUser: DSMenuItemsSeparatorT.Props) => {
11
11
  propsWithDefault: DSMenuItemsSeparatorT.InternalProps;
12
12
  globalProps: Partial<Pick<DSGridT.Props, "role" | "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" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "async" | "autoComplete" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "cite" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "data" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "label" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "noValidate" | "open" | "optimum" | "pattern" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "span" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "summary" | "target" | "type" | "useMap" | "value" | "width" | "wmode" | "wrap"> & Omit<{
13
- name?: string | undefined;
13
+ role?: React.AriaRole | undefined;
14
+ form?: string | undefined;
15
+ list?: string | undefined;
14
16
  "aria-activedescendant"?: string | undefined;
15
- "aria-atomic"?: boolean | "true" | "false" | undefined;
17
+ "aria-atomic"?: (boolean | "true" | "false") | undefined;
16
18
  "aria-autocomplete"?: "list" | "none" | "inline" | "both" | undefined;
17
19
  "aria-braillelabel"?: string | undefined;
18
20
  "aria-brailleroledescription"?: string | undefined;
19
- "aria-busy"?: boolean | "true" | "false" | undefined;
21
+ "aria-busy"?: (boolean | "true" | "false") | undefined;
20
22
  "aria-checked"?: boolean | "true" | "false" | "mixed" | undefined;
21
23
  "aria-colcount"?: number | undefined;
22
24
  "aria-colindex"?: number | undefined;
@@ -27,37 +29,37 @@ export declare const useMenuItemsSeparator: (propsFromUser: DSMenuItemsSeparator
27
29
  "aria-describedby"?: string | undefined;
28
30
  "aria-description"?: string | undefined;
29
31
  "aria-details"?: string | undefined;
30
- "aria-disabled"?: boolean | "true" | "false" | undefined;
32
+ "aria-disabled"?: (boolean | "true" | "false") | undefined;
31
33
  "aria-dropeffect"?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
32
34
  "aria-errormessage"?: string | undefined;
33
- "aria-expanded"?: boolean | "true" | "false" | undefined;
35
+ "aria-expanded"?: (boolean | "true" | "false") | undefined;
34
36
  "aria-flowto"?: string | undefined;
35
- "aria-grabbed"?: boolean | "true" | "false" | undefined;
37
+ "aria-grabbed"?: (boolean | "true" | "false") | undefined;
36
38
  "aria-haspopup"?: boolean | "true" | "false" | "dialog" | "grid" | "listbox" | "menu" | "tree" | undefined;
37
- "aria-hidden"?: boolean | "true" | "false" | undefined;
39
+ "aria-hidden"?: (boolean | "true" | "false") | undefined;
38
40
  "aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
39
41
  "aria-keyshortcuts"?: string | undefined;
40
42
  "aria-label"?: string | undefined;
41
43
  "aria-labelledby"?: string | undefined;
42
44
  "aria-level"?: number | undefined;
43
45
  "aria-live"?: "off" | "assertive" | "polite" | undefined;
44
- "aria-modal"?: boolean | "true" | "false" | undefined;
45
- "aria-multiline"?: boolean | "true" | "false" | undefined;
46
- "aria-multiselectable"?: boolean | "true" | "false" | undefined;
46
+ "aria-modal"?: (boolean | "true" | "false") | undefined;
47
+ "aria-multiline"?: (boolean | "true" | "false") | undefined;
48
+ "aria-multiselectable"?: (boolean | "true" | "false") | undefined;
47
49
  "aria-orientation"?: "horizontal" | "vertical" | undefined;
48
50
  "aria-owns"?: string | undefined;
49
51
  "aria-placeholder"?: string | undefined;
50
52
  "aria-posinset"?: number | undefined;
51
53
  "aria-pressed"?: boolean | "true" | "false" | "mixed" | undefined;
52
- "aria-readonly"?: boolean | "true" | "false" | undefined;
54
+ "aria-readonly"?: (boolean | "true" | "false") | undefined;
53
55
  "aria-relevant"?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
54
- "aria-required"?: boolean | "true" | "false" | undefined;
56
+ "aria-required"?: (boolean | "true" | "false") | undefined;
55
57
  "aria-roledescription"?: string | undefined;
56
58
  "aria-rowcount"?: number | undefined;
57
59
  "aria-rowindex"?: number | undefined;
58
60
  "aria-rowindextext"?: string | undefined;
59
61
  "aria-rowspan"?: number | undefined;
60
- "aria-selected"?: boolean | "true" | "false" | undefined;
62
+ "aria-selected"?: (boolean | "true" | "false") | undefined;
61
63
  "aria-setsize"?: number | undefined;
62
64
  "aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
63
65
  "aria-valuemax"?: number | undefined;
@@ -225,8 +227,6 @@ export declare const useMenuItemsSeparator: (propsFromUser: DSMenuItemsSeparator
225
227
  onAnimationIterationCapture?: React.AnimationEventHandler<HTMLDivElement> | undefined;
226
228
  onTransitionEnd?: React.TransitionEventHandler<HTMLDivElement> | undefined;
227
229
  onTransitionEndCapture?: React.TransitionEventHandler<HTMLDivElement> | undefined;
228
- form?: string | undefined;
229
- list?: string | undefined;
230
230
  defaultChecked?: boolean | undefined;
231
231
  defaultValue?: string | number | readonly string[] | undefined;
232
232
  suppressContentEditableWarning?: boolean | undefined;
@@ -234,22 +234,21 @@ export declare const useMenuItemsSeparator: (propsFromUser: DSMenuItemsSeparator
234
234
  accessKey?: string | undefined;
235
235
  autoFocus?: boolean | undefined;
236
236
  className?: string | undefined;
237
- contentEditable?: boolean | "true" | "false" | "inherit" | "plaintext-only" | undefined;
237
+ contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
238
238
  contextMenu?: string | undefined;
239
239
  dir?: string | undefined;
240
- draggable?: boolean | "true" | "false" | undefined;
240
+ draggable?: (boolean | "true" | "false") | undefined;
241
241
  hidden?: boolean | undefined;
242
242
  id?: string | undefined;
243
243
  lang?: string | undefined;
244
244
  nonce?: string | undefined;
245
245
  slot?: string | undefined;
246
- spellCheck?: boolean | "true" | "false" | undefined;
246
+ spellCheck?: (boolean | "true" | "false") | undefined;
247
247
  style?: React.CSSProperties | undefined;
248
248
  tabIndex?: 0 | -1 | undefined;
249
249
  title?: string | undefined;
250
250
  translate?: "yes" | "no" | undefined;
251
251
  radioGroup?: string | undefined;
252
- role?: React.AriaRole | undefined;
253
252
  about?: string | undefined;
254
253
  content?: string | undefined;
255
254
  datatype?: string | undefined;
@@ -336,6 +335,7 @@ export declare const useMenuItemsSeparator: (propsFromUser: DSMenuItemsSeparator
336
335
  minLength?: number | undefined;
337
336
  multiple?: boolean | undefined;
338
337
  muted?: boolean | undefined;
338
+ name?: string | undefined;
339
339
  noValidate?: boolean | undefined;
340
340
  open?: boolean | undefined;
341
341
  optimum?: number | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-menu-items-separator",
3
- "version": "3.35.0",
3
+ "version": "3.36.0-next.1",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Menu Items Separator",
6
6
  "files": [
@@ -37,17 +37,17 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "@xstyled/styled-components": "~3.6.0",
40
- "@elliemae/ds-button": "3.35.0",
41
- "@elliemae/ds-grid": "3.35.0",
42
- "@elliemae/ds-props-helpers": "3.35.0",
43
- "@elliemae/ds-menu-items-commons": "3.35.0",
44
- "@elliemae/ds-utilities": "3.35.0",
45
- "@elliemae/ds-system": "3.35.0"
40
+ "@elliemae/ds-props-helpers": "3.36.0-next.1",
41
+ "@elliemae/ds-button": "3.36.0-next.1",
42
+ "@elliemae/ds-menu-items-commons": "3.36.0-next.1",
43
+ "@elliemae/ds-utilities": "3.36.0-next.1",
44
+ "@elliemae/ds-grid": "3.36.0-next.1",
45
+ "@elliemae/ds-system": "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",