@neo4j-ndl/react 0.3.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) 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 +18 -13
  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/label/Label.js +3 -1
  26. package/lib/cjs/label/Label.js.map +1 -1
  27. package/lib/cjs/modal/Modal.js +105 -0
  28. package/lib/cjs/modal/Modal.js.map +1 -0
  29. package/lib/cjs/modal/index.js +38 -0
  30. package/lib/cjs/modal/index.js.map +1 -0
  31. package/lib/cjs/popover/Popover.js +11 -47
  32. package/lib/cjs/popover/Popover.js.map +1 -1
  33. package/lib/cjs/portal/Portal.js +52 -0
  34. package/lib/cjs/portal/Portal.js.map +1 -0
  35. package/lib/cjs/portal/index.js +38 -0
  36. package/lib/cjs/portal/index.js.map +1 -0
  37. package/lib/cjs/radio/Radio.js +2 -2
  38. package/lib/cjs/radio/Radio.js.map +1 -1
  39. package/lib/cjs/switch/Switch.js +2 -2
  40. package/lib/cjs/switch/Switch.js.map +1 -1
  41. package/lib/cjs/table/Table.js +5 -5
  42. package/lib/cjs/table/Table.js.map +1 -1
  43. package/lib/cjs/tabs/Tabs.js +4 -3
  44. package/lib/cjs/tabs/Tabs.js.map +1 -1
  45. package/lib/cjs/text-input/TextInput.js +72 -0
  46. package/lib/cjs/text-input/TextInput.js.map +1 -0
  47. package/lib/cjs/{input → text-input}/index.js +3 -3
  48. package/lib/cjs/text-input/index.js.map +1 -0
  49. package/lib/cjs/trap-focus/TrapFocus.js +310 -0
  50. package/lib/cjs/trap-focus/TrapFocus.js.map +1 -0
  51. package/lib/cjs/trap-focus/index.js +38 -0
  52. package/lib/cjs/trap-focus/index.js.map +1 -0
  53. package/lib/esm/{input/Input.js → _common/input/RadioAndCheckboxWrapper.js} +6 -6
  54. package/lib/esm/_common/input/RadioAndCheckboxWrapper.js.map +1 -0
  55. package/lib/esm/_common/input/types.js +2 -0
  56. package/lib/esm/_common/input/types.js.map +1 -0
  57. package/lib/esm/_common/utils.js +52 -0
  58. package/lib/esm/_common/utils.js.map +1 -0
  59. package/lib/esm/button/Button.js +16 -9
  60. package/lib/esm/button/Button.js.map +1 -1
  61. package/lib/esm/button/IconButton.js +79 -0
  62. package/lib/esm/button/IconButton.js.map +1 -0
  63. package/lib/esm/button/IconButtonArray.js +46 -0
  64. package/lib/esm/button/IconButtonArray.js.map +1 -0
  65. package/lib/esm/button/index.js +2 -0
  66. package/lib/esm/button/index.js.map +1 -1
  67. package/lib/esm/checkbox/Checkbox.js +2 -2
  68. package/lib/esm/checkbox/Checkbox.js.map +1 -1
  69. package/lib/esm/context-menu/ContextMenu.js +7 -13
  70. package/lib/esm/context-menu/ContextMenu.js.map +1 -1
  71. package/lib/esm/dialog/Dialog.js +131 -0
  72. package/lib/esm/dialog/Dialog.js.map +1 -0
  73. package/lib/esm/{input → dialog}/index.js +1 -1
  74. package/lib/esm/dialog/index.js.map +1 -0
  75. package/lib/esm/index.js +3 -0
  76. package/lib/esm/index.js.map +1 -1
  77. package/lib/esm/label/Label.js +3 -1
  78. package/lib/esm/label/Label.js.map +1 -1
  79. package/lib/esm/modal/Modal.js +75 -0
  80. package/lib/esm/modal/Modal.js.map +1 -0
  81. package/lib/esm/modal/index.js +22 -0
  82. package/lib/esm/modal/index.js.map +1 -0
  83. package/lib/esm/popover/Popover.js +11 -24
  84. package/lib/esm/popover/Popover.js.map +1 -1
  85. package/lib/esm/portal/Portal.js +25 -0
  86. package/lib/esm/portal/Portal.js.map +1 -0
  87. package/lib/esm/portal/index.js +22 -0
  88. package/lib/esm/portal/index.js.map +1 -0
  89. package/lib/esm/radio/Radio.js +2 -2
  90. package/lib/esm/radio/Radio.js.map +1 -1
  91. package/lib/esm/switch/Switch.js +2 -2
  92. package/lib/esm/switch/Switch.js.map +1 -1
  93. package/lib/esm/table/Table.js +5 -5
  94. package/lib/esm/table/Table.js.map +1 -1
  95. package/lib/esm/tabs/Tabs.js +4 -3
  96. package/lib/esm/tabs/Tabs.js.map +1 -1
  97. package/lib/esm/text-input/TextInput.js +67 -0
  98. package/lib/esm/text-input/TextInput.js.map +1 -0
  99. package/lib/esm/text-input/index.js +22 -0
  100. package/lib/esm/text-input/index.js.map +1 -0
  101. package/lib/esm/trap-focus/TrapFocus.js +283 -0
  102. package/lib/esm/trap-focus/TrapFocus.js.map +1 -0
  103. package/lib/esm/trap-focus/index.js +22 -0
  104. package/lib/esm/trap-focus/index.js.map +1 -0
  105. package/lib/types/_common/input/RadioAndCheckboxWrapper.d.ts +37 -0
  106. package/lib/types/_common/input/types.d.ts +31 -0
  107. package/lib/types/_common/utils.d.ts +29 -0
  108. package/lib/types/alert/Alert.d.ts +1 -1
  109. package/lib/types/button/Button.d.ts +3 -4
  110. package/lib/types/button/IconButton.d.ts +47 -0
  111. package/lib/types/button/IconButtonArray.d.ts +37 -0
  112. package/lib/types/button/index.d.ts +2 -0
  113. package/lib/types/checkbox/Checkbox.d.ts +2 -2
  114. package/lib/types/context-menu/ContextMenu.d.ts +4 -1
  115. package/lib/types/dialog/Dialog.d.ts +55 -0
  116. package/lib/types/{input → dialog}/index.d.ts +1 -1
  117. package/lib/types/index.d.ts +3 -0
  118. package/lib/types/modal/Modal.d.ts +34 -0
  119. package/lib/types/modal/index.d.ts +21 -0
  120. package/lib/types/popover/Popover.d.ts +4 -2
  121. package/lib/types/portal/Portal.d.ts +27 -0
  122. package/lib/types/portal/index.d.ts +21 -0
  123. package/lib/types/radio/Radio.d.ts +2 -2
  124. package/lib/types/switch/Switch.d.ts +2 -2
  125. package/lib/types/table/Table.d.ts +1 -8
  126. package/lib/types/tabs/Tabs.d.ts +3 -4
  127. package/lib/types/text-input/TextInput.d.ts +55 -0
  128. package/lib/types/text-input/index.d.ts +21 -0
  129. package/lib/types/trap-focus/TrapFocus.d.ts +35 -0
  130. package/lib/types/trap-focus/index.d.ts +21 -0
  131. package/package.json +3 -4
  132. package/lib/cjs/input/Input.js.map +0 -1
  133. package/lib/cjs/input/index.js.map +0 -1
  134. package/lib/esm/input/Input.js.map +0 -1
  135. package/lib/esm/input/index.js.map +0 -1
  136. package/lib/types/input/Input.d.ts +0 -44
@@ -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;