@neo4j-ndl/react 0.3.1 → 0.5.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.
Files changed (126) hide show
  1. package/lib/cjs/{input/Input.js → _common/input/RadioAndCheckboxWrapper.js} +6 -6
  2. package/lib/cjs/_common/input/RadioAndCheckboxWrapper.js.map +1 -0
  3. package/lib/cjs/_common/input/types.js +3 -0
  4. package/lib/cjs/_common/input/types.js.map +1 -0
  5. package/lib/cjs/_common/utils.js +59 -0
  6. package/lib/cjs/_common/utils.js.map +1 -0
  7. package/lib/cjs/button/Button.js +4 -8
  8. package/lib/cjs/button/Button.js.map +1 -1
  9. package/lib/cjs/button/IconButton.js +85 -0
  10. package/lib/cjs/button/IconButton.js.map +1 -0
  11. package/lib/cjs/button/IconButtonArray.js +52 -0
  12. package/lib/cjs/button/IconButtonArray.js.map +1 -0
  13. package/lib/cjs/button/index.js +2 -0
  14. package/lib/cjs/button/index.js.map +1 -1
  15. package/lib/cjs/checkbox/Checkbox.js +2 -2
  16. package/lib/cjs/checkbox/Checkbox.js.map +1 -1
  17. package/lib/cjs/context-menu/ContextMenu.js +7 -13
  18. package/lib/cjs/context-menu/ContextMenu.js.map +1 -1
  19. package/lib/cjs/dialog/Dialog.js +161 -0
  20. package/lib/cjs/dialog/Dialog.js.map +1 -0
  21. package/lib/cjs/dialog/index.js +38 -0
  22. package/lib/cjs/dialog/index.js.map +1 -0
  23. package/lib/cjs/index.js +3 -0
  24. package/lib/cjs/index.js.map +1 -1
  25. package/lib/cjs/modal/Modal.js +105 -0
  26. package/lib/cjs/modal/Modal.js.map +1 -0
  27. package/lib/cjs/modal/index.js +38 -0
  28. package/lib/cjs/modal/index.js.map +1 -0
  29. package/lib/cjs/popover/Popover.js +30 -52
  30. package/lib/cjs/popover/Popover.js.map +1 -1
  31. package/lib/cjs/portal/Portal.js +52 -0
  32. package/lib/cjs/portal/Portal.js.map +1 -0
  33. package/lib/cjs/portal/index.js +38 -0
  34. package/lib/cjs/portal/index.js.map +1 -0
  35. package/lib/cjs/radio/Radio.js +2 -2
  36. package/lib/cjs/radio/Radio.js.map +1 -1
  37. package/lib/cjs/switch/Switch.js +2 -2
  38. package/lib/cjs/switch/Switch.js.map +1 -1
  39. package/lib/cjs/table/Table.js +5 -5
  40. package/lib/cjs/table/Table.js.map +1 -1
  41. package/lib/cjs/text-input/TextInput.js +72 -0
  42. package/lib/cjs/text-input/TextInput.js.map +1 -0
  43. package/lib/cjs/{input → text-input}/index.js +3 -3
  44. package/lib/cjs/text-input/index.js.map +1 -0
  45. package/lib/cjs/trap-focus/TrapFocus.js +310 -0
  46. package/lib/cjs/trap-focus/TrapFocus.js.map +1 -0
  47. package/lib/cjs/trap-focus/index.js +38 -0
  48. package/lib/cjs/trap-focus/index.js.map +1 -0
  49. package/lib/esm/{input/Input.js → _common/input/RadioAndCheckboxWrapper.js} +6 -6
  50. package/lib/esm/_common/input/RadioAndCheckboxWrapper.js.map +1 -0
  51. package/lib/esm/_common/input/types.js +2 -0
  52. package/lib/esm/_common/input/types.js.map +1 -0
  53. package/lib/esm/_common/utils.js +52 -0
  54. package/lib/esm/_common/utils.js.map +1 -0
  55. package/lib/esm/button/Button.js +2 -4
  56. package/lib/esm/button/Button.js.map +1 -1
  57. package/lib/esm/button/IconButton.js +79 -0
  58. package/lib/esm/button/IconButton.js.map +1 -0
  59. package/lib/esm/button/IconButtonArray.js +46 -0
  60. package/lib/esm/button/IconButtonArray.js.map +1 -0
  61. package/lib/esm/button/index.js +2 -0
  62. package/lib/esm/button/index.js.map +1 -1
  63. package/lib/esm/checkbox/Checkbox.js +2 -2
  64. package/lib/esm/checkbox/Checkbox.js.map +1 -1
  65. package/lib/esm/context-menu/ContextMenu.js +7 -13
  66. package/lib/esm/context-menu/ContextMenu.js.map +1 -1
  67. package/lib/esm/dialog/Dialog.js +131 -0
  68. package/lib/esm/dialog/Dialog.js.map +1 -0
  69. package/lib/esm/{input → dialog}/index.js +1 -1
  70. package/lib/esm/dialog/index.js.map +1 -0
  71. package/lib/esm/index.js +3 -0
  72. package/lib/esm/index.js.map +1 -1
  73. package/lib/esm/modal/Modal.js +75 -0
  74. package/lib/esm/modal/Modal.js.map +1 -0
  75. package/lib/esm/modal/index.js +22 -0
  76. package/lib/esm/modal/index.js.map +1 -0
  77. package/lib/esm/popover/Popover.js +30 -29
  78. package/lib/esm/popover/Popover.js.map +1 -1
  79. package/lib/esm/portal/Portal.js +25 -0
  80. package/lib/esm/portal/Portal.js.map +1 -0
  81. package/lib/esm/portal/index.js +22 -0
  82. package/lib/esm/portal/index.js.map +1 -0
  83. package/lib/esm/radio/Radio.js +2 -2
  84. package/lib/esm/radio/Radio.js.map +1 -1
  85. package/lib/esm/switch/Switch.js +2 -2
  86. package/lib/esm/switch/Switch.js.map +1 -1
  87. package/lib/esm/table/Table.js +5 -5
  88. package/lib/esm/table/Table.js.map +1 -1
  89. package/lib/esm/text-input/TextInput.js +67 -0
  90. package/lib/esm/text-input/TextInput.js.map +1 -0
  91. package/lib/esm/text-input/index.js +22 -0
  92. package/lib/esm/text-input/index.js.map +1 -0
  93. package/lib/esm/trap-focus/TrapFocus.js +283 -0
  94. package/lib/esm/trap-focus/TrapFocus.js.map +1 -0
  95. package/lib/esm/trap-focus/index.js +22 -0
  96. package/lib/esm/trap-focus/index.js.map +1 -0
  97. package/lib/types/_common/input/RadioAndCheckboxWrapper.d.ts +37 -0
  98. package/lib/types/_common/input/types.d.ts +31 -0
  99. package/lib/types/_common/utils.d.ts +29 -0
  100. package/lib/types/button/Button.d.ts +1 -4
  101. package/lib/types/button/IconButton.d.ts +47 -0
  102. package/lib/types/button/IconButtonArray.d.ts +37 -0
  103. package/lib/types/button/index.d.ts +2 -0
  104. package/lib/types/checkbox/Checkbox.d.ts +2 -2
  105. package/lib/types/context-menu/ContextMenu.d.ts +4 -1
  106. package/lib/types/dialog/Dialog.d.ts +55 -0
  107. package/lib/types/{input → dialog}/index.d.ts +1 -1
  108. package/lib/types/index.d.ts +3 -0
  109. package/lib/types/modal/Modal.d.ts +34 -0
  110. package/lib/types/modal/index.d.ts +21 -0
  111. package/lib/types/popover/Popover.d.ts +5 -3
  112. package/lib/types/portal/Portal.d.ts +27 -0
  113. package/lib/types/portal/index.d.ts +21 -0
  114. package/lib/types/radio/Radio.d.ts +2 -2
  115. package/lib/types/switch/Switch.d.ts +2 -2
  116. package/lib/types/table/Table.d.ts +1 -8
  117. package/lib/types/text-input/TextInput.d.ts +55 -0
  118. package/lib/types/text-input/index.d.ts +21 -0
  119. package/lib/types/trap-focus/TrapFocus.d.ts +35 -0
  120. package/lib/types/trap-focus/index.d.ts +21 -0
  121. package/package.json +2 -2
  122. package/lib/cjs/input/Input.js.map +0 -1
  123. package/lib/cjs/input/index.js.map +0 -1
  124. package/lib/esm/input/Input.js.map +0 -1
  125. package/lib/esm/input/index.js.map +0 -1
  126. package/lib/types/input/Input.d.ts +0 -44
@@ -0,0 +1,21 @@
1
+ /**
2
+ *
3
+ * Copyright (c) "Neo4j"
4
+ * Neo4j Sweden AB [http://neo4j.com]
5
+ *
6
+ * This file is part of Neo4j.
7
+ *
8
+ * Neo4j is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ * GNU General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU General Public License
19
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
+ */
21
+ export * from './TrapFocus';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neo4j-ndl/react",
3
- "version": "0.3.1",
3
+ "version": "0.5.1",
4
4
  "description": "React implementation of Neo4j Design System",
5
5
  "keywords": [
6
6
  "button",
@@ -67,7 +67,7 @@
67
67
  },
68
68
  "dependencies": {
69
69
  "@heroicons/react": "^1.0.5",
70
- "@neo4j-ndl/base": "^0.3.1",
70
+ "@neo4j-ndl/base": "^0.5.0",
71
71
  "classnames": "^2.3.1",
72
72
  "react-dropzone": "^12.0.4",
73
73
  "react-table": "^7.7.0"
@@ -1 +0,0 @@
1
- {"version":3,"file":"Input.js","sourceRoot":"","sources":["../../../src/input/Input.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,iCAAwD;AACxD,4DAAoC;AA8BpC,qCAAqC;AAErC;;;;;;GAMG;AAEH,MAAM,KAAK,GAAG,CAAC,KAAiB,EAAE,GAAmC,EAAE,EAAE;IACvE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,WAAW,KAAyB,KAAK,EAAzB,eAAe,UAAK,KAAK,EAAzD,iCAAiD,CAAQ,CAAC;IAEhE,MAAM,sBAAsB,GAAG,IAAA,oBAAU,EAAC,eAAe,EAAE;QACzD,QAAQ,EAAE,eAAe,CAAC,QAAQ;KACnC,CAAC,CAAC;IAEH,MAAM,kBAAkB,GAAG,IAAA,oBAAU,EAAC,iBAAiB,EAAE;QACvD,KAAK;QACL,cAAc,EAAE,WAAW;KAC5B,CAAC,CAAC;IAEH,OAAO,CACL,8CAAK,SAAS,EAAE,sBAAsB,gBAGpC,iDAAO,SAAS,EAAE,kBAAkB,iBAClC,kDAAW,eAAe,IAAE,GAAG,EAAE,GAAG,IAAI,EACvC,KAAK,KACA,IACJ,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,IAAA,kBAAU,EAAC,KAAK,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/input/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;AAEH,iCAA2C;AAAlC,+GAAA,OAAO,OAAS"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Input.js","sourceRoot":"","sources":["../../../src/input/Input.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAc,EAAgB,UAAU,EAAE,MAAM,OAAO,CAAC;AACxD,OAAO,UAAU,MAAM,YAAY,CAAC;AA8BpC,qCAAqC;AAErC;;;;;;GAMG;AAEH,MAAM,KAAK,GAAG,CAAC,KAAiB,EAAE,GAAmC,EAAE,EAAE;IACvE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,WAAW,KAAyB,KAAK,EAAzB,eAAe,UAAK,KAAK,EAAzD,iCAAiD,CAAQ,CAAC;IAEhE,MAAM,sBAAsB,GAAG,UAAU,CAAC,eAAe,EAAE;QACzD,QAAQ,EAAE,eAAe,CAAC,QAAQ;KACnC,CAAC,CAAC;IAEH,MAAM,kBAAkB,GAAG,UAAU,CAAC,iBAAiB,EAAE;QACvD,KAAK;QACL,cAAc,EAAE,WAAW;KAC5B,CAAC,CAAC;IAEH,OAAO,CACL,4BAAK,SAAS,EAAE,sBAAsB,gBAGpC,+BAAO,SAAS,EAAE,kBAAkB,iBAClC,gCAAW,eAAe,IAAE,GAAG,EAAE,GAAG,IAAI,EACvC,KAAK,KACA,IACJ,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC,KAAK,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/input/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC"}
@@ -1,44 +0,0 @@
1
- /**
2
- *
3
- * Copyright (c) "Neo4j"
4
- * Neo4j Sweden AB [http://neo4j.com]
5
- *
6
- * This file is part of Neo4j.
7
- *
8
- * Neo4j is free software: you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation, either version 3 of the License, or
11
- * (at your option) any later version.
12
- *
13
- * This program is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
- * GNU General Public License for more details.
17
- *
18
- * You should have received a copy of the GNU General Public License
19
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
- */
21
- import React from 'react';
22
- /**
23
- *
24
- *
25
- * Types
26
- *
27
- *
28
- */
29
- export interface InputProps extends React.ComponentPropsWithoutRef<'input'> {
30
- /** Sets checked state */
31
- checked?: boolean;
32
- /** Sets disabled state */
33
- disabled?: boolean;
34
- /** Sets the label */
35
- label?: string;
36
- /** Displays with fluid width */
37
- fluid?: boolean;
38
- /** Displays label before */
39
- labelBefore?: boolean;
40
- /** Ref to the `input` element */
41
- ref?: React.RefObject<HTMLInputElement>;
42
- }
43
- declare const _default: React.ForwardRefExoticComponent<Pick<InputProps, "size" | "className" | "form" | "label" | "slot" | "style" | "title" | "pattern" | "list" | "children" | "role" | "onChange" | "accept" | "alt" | "autoComplete" | "autoFocus" | "capture" | "checked" | "crossOrigin" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "height" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "name" | "placeholder" | "readOnly" | "required" | "src" | "step" | "type" | "value" | "width" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "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-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "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" | "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" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "enterKeyHint" | "fluid" | "labelBefore"> & React.RefAttributes<HTMLInputElement>>;
44
- export default _default;