@digigov/react-core 0.6.4 → 0.8.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.
- package/BackLink/__snapshots__/index.test.tsx.snap +34 -6
- package/CHANGELOG.md +23 -1
- package/List/index.d.ts +1 -1
- package/List/index.js +2 -1
- package/TableDataCell/index.d.ts +1 -1
- package/TableHeaderCell/index.d.ts +1 -1
- package/es/BackLink/__snapshots__/index.test.tsx.snap +34 -6
- package/es/List/index.js +2 -1
- package/es/index.js +0 -3
- package/esm/BackLink/__snapshots__/index.test.tsx.snap +34 -6
- package/esm/List/index.js +2 -1
- package/esm/index.js +1 -4
- package/index.d.ts +0 -3
- package/index.js +0 -24
- package/package.json +2 -2
- package/Dropdown/__snapshots__/index.test.tsx.snap +0 -144
- package/Dropdown/index.d.ts +0 -30
- package/Dropdown/index.js +0 -42
- package/Dropdown/index.test.d.ts +0 -1
- package/Dropdown/index.test.js +0 -101
- package/DropdownButton/__snapshots__/index.test.tsx.snap +0 -375
- package/DropdownButton/index.d.ts +0 -28
- package/DropdownButton/index.js +0 -47
- package/DropdownButton/index.test.d.ts +0 -1
- package/DropdownButton/index.test.js +0 -195
- package/DropdownContent/__snapshots__/index.test.tsx.snap +0 -11
- package/DropdownContent/index.d.ts +0 -9
- package/DropdownContent/index.js +0 -35
- package/DropdownContent/index.test.d.ts +0 -1
- package/DropdownContent/index.test.js +0 -15
- package/es/Dropdown/__snapshots__/index.test.tsx.snap +0 -144
- package/es/Dropdown/index.js +0 -27
- package/es/Dropdown/index.test.js +0 -95
- package/es/DropdownButton/__snapshots__/index.test.tsx.snap +0 -375
- package/es/DropdownButton/index.js +0 -31
- package/es/DropdownButton/index.test.js +0 -189
- package/es/DropdownContent/__snapshots__/index.test.tsx.snap +0 -11
- package/es/DropdownContent/index.js +0 -20
- package/es/DropdownContent/index.test.js +0 -9
- package/esm/Dropdown/__snapshots__/index.test.tsx.snap +0 -144
- package/esm/Dropdown/index.js +0 -27
- package/esm/Dropdown/index.test.js +0 -95
- package/esm/DropdownButton/__snapshots__/index.test.tsx.snap +0 -375
- package/esm/DropdownButton/index.js +0 -31
- package/esm/DropdownButton/index.test.js +0 -189
- package/esm/DropdownContent/__snapshots__/index.test.tsx.snap +0 -11
- package/esm/DropdownContent/index.js +0 -20
- package/esm/DropdownContent/index.test.js +0 -9
|
@@ -7,10 +7,24 @@ exports[`renders the BackLink with href="#" 1`] = `
|
|
|
7
7
|
<a
|
|
8
8
|
className="govgr-back-link"
|
|
9
9
|
href="#"
|
|
10
|
+
onClick={[Function]}
|
|
10
11
|
>
|
|
11
|
-
<
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
<ForwardRef(CaretIcon)>
|
|
13
|
+
<ForwardRef(SvgIcon)
|
|
14
|
+
className="govgr-caret--left"
|
|
15
|
+
>
|
|
16
|
+
<svg
|
|
17
|
+
aria-hidden="true"
|
|
18
|
+
className="govgr-caret--left govgr-svg-icon"
|
|
19
|
+
focusable="false"
|
|
20
|
+
viewBox="0 0 24 24"
|
|
21
|
+
>
|
|
22
|
+
<path
|
|
23
|
+
d="M18,22V2L6,12L18,22z"
|
|
24
|
+
/>
|
|
25
|
+
</svg>
|
|
26
|
+
</ForwardRef(SvgIcon)>
|
|
27
|
+
</ForwardRef(CaretIcon)>
|
|
14
28
|
hello
|
|
15
29
|
</a>
|
|
16
30
|
</ForwardRef(BackLink)>
|
|
@@ -20,10 +34,24 @@ exports[`renders the BackLink with no props 1`] = `
|
|
|
20
34
|
<ForwardRef(BackLink)>
|
|
21
35
|
<a
|
|
22
36
|
className="govgr-back-link"
|
|
37
|
+
onClick={[Function]}
|
|
23
38
|
>
|
|
24
|
-
<
|
|
25
|
-
|
|
26
|
-
|
|
39
|
+
<ForwardRef(CaretIcon)>
|
|
40
|
+
<ForwardRef(SvgIcon)
|
|
41
|
+
className="govgr-caret--left"
|
|
42
|
+
>
|
|
43
|
+
<svg
|
|
44
|
+
aria-hidden="true"
|
|
45
|
+
className="govgr-caret--left govgr-svg-icon"
|
|
46
|
+
focusable="false"
|
|
47
|
+
viewBox="0 0 24 24"
|
|
48
|
+
>
|
|
49
|
+
<path
|
|
50
|
+
d="M18,22V2L6,12L18,22z"
|
|
51
|
+
/>
|
|
52
|
+
</svg>
|
|
53
|
+
</ForwardRef(SvgIcon)>
|
|
54
|
+
</ForwardRef(CaretIcon)>
|
|
27
55
|
hello
|
|
28
56
|
</a>
|
|
29
57
|
</ForwardRef(BackLink)>
|
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,28 @@
|
|
|
1
1
|
# Change Log - @digigov/react-core
|
|
2
2
|
|
|
3
|
-
This log was last generated on Fri,
|
|
3
|
+
This log was last generated on Fri, 11 Mar 2022 15:42:46 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 0.8.0
|
|
6
|
+
Fri, 11 Mar 2022 15:42:46 GMT
|
|
7
|
+
|
|
8
|
+
### Minor changes
|
|
9
|
+
|
|
10
|
+
- update test at BackLink component
|
|
11
|
+
|
|
12
|
+
## 0.7.0
|
|
13
|
+
Thu, 10 Mar 2022 11:36:58 GMT
|
|
14
|
+
|
|
15
|
+
### Minor changes
|
|
16
|
+
|
|
17
|
+
- implement Loader component
|
|
18
|
+
|
|
19
|
+
## 0.6.5
|
|
20
|
+
Wed, 09 Mar 2022 13:21:47 GMT
|
|
21
|
+
|
|
22
|
+
### Patches
|
|
23
|
+
|
|
24
|
+
- add `bullet` as the default List style
|
|
25
|
+
- Deprecate Dropdown, moved permanently to @digigov/react-extensions/admin
|
|
4
26
|
|
|
5
27
|
## 0.6.4
|
|
6
28
|
Fri, 04 Mar 2022 12:15:07 GMT
|
package/List/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export interface ListProps extends UlElementAttributes {
|
|
|
4
4
|
/**
|
|
5
5
|
* listStyle is optional. By default, the list style is none.
|
|
6
6
|
*/
|
|
7
|
-
listStyle?: 'bullet' | 'number';
|
|
7
|
+
listStyle?: 'bullet' | 'number' | 'none';
|
|
8
8
|
/**
|
|
9
9
|
* spaced is optional. Use it to add space between the list items.
|
|
10
10
|
*/
|
package/List/index.js
CHANGED
|
@@ -22,7 +22,8 @@ var _excluded = ["listStyle", "spaced", "className", "children"];
|
|
|
22
22
|
* This component must contain ListItem component.
|
|
23
23
|
*/
|
|
24
24
|
var List = /*#__PURE__*/_react["default"].forwardRef(function List(_ref, ref) {
|
|
25
|
-
var listStyle = _ref.listStyle,
|
|
25
|
+
var _ref$listStyle = _ref.listStyle,
|
|
26
|
+
listStyle = _ref$listStyle === void 0 ? 'bullet' : _ref$listStyle,
|
|
26
27
|
_ref$spaced = _ref.spaced,
|
|
27
28
|
spaced = _ref$spaced === void 0 ? false : _ref$spaced,
|
|
28
29
|
className = _ref.className,
|
package/TableDataCell/index.d.ts
CHANGED
|
@@ -11,5 +11,5 @@ export interface TableDataCellProps extends TdElementAttributes {
|
|
|
11
11
|
/**
|
|
12
12
|
* Use TableDataCell inside the Table component to fill the data of a cell in a table.
|
|
13
13
|
*/
|
|
14
|
-
export declare const TableDataCell: React.ForwardRefExoticComponent<Pick<TableDataCellProps, "className" | "children" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "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" | "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" | "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" | "abbr" | "height" | "width" | "
|
|
14
|
+
export declare const TableDataCell: React.ForwardRefExoticComponent<Pick<TableDataCellProps, "className" | "children" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "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" | "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" | "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" | "abbr" | "height" | "width" | "dataType" | "align" | "colSpan" | "headers" | "rowSpan" | "scope" | "valign"> & React.RefAttributes<HTMLTableCellElement>>;
|
|
15
15
|
export default TableDataCell;
|
|
@@ -17,5 +17,5 @@ export interface TableHeaderCellProps extends ThElementAttributes {
|
|
|
17
17
|
/**
|
|
18
18
|
* Use TableHeaderCell inside the Table component to provide the header row and/or column of the table.
|
|
19
19
|
*/
|
|
20
|
-
export declare const TableHeaderCell: React.ForwardRefExoticComponent<Pick<TableHeaderCellProps, "className" | "children" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "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" | "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" | "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" | "abbr" | "
|
|
20
|
+
export declare const TableHeaderCell: React.ForwardRefExoticComponent<Pick<TableHeaderCellProps, "className" | "children" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "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" | "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" | "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" | "abbr" | "dataType" | "align" | "colSpan" | "headers" | "rowSpan" | "scope" | "cellWidth"> & React.RefAttributes<HTMLTableCellElement>>;
|
|
21
21
|
export default TableHeaderCell;
|
|
@@ -7,10 +7,24 @@ exports[`renders the BackLink with href="#" 1`] = `
|
|
|
7
7
|
<a
|
|
8
8
|
className="govgr-back-link"
|
|
9
9
|
href="#"
|
|
10
|
+
onClick={[Function]}
|
|
10
11
|
>
|
|
11
|
-
<
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
<ForwardRef(CaretIcon)>
|
|
13
|
+
<ForwardRef(SvgIcon)
|
|
14
|
+
className="govgr-caret--left"
|
|
15
|
+
>
|
|
16
|
+
<svg
|
|
17
|
+
aria-hidden="true"
|
|
18
|
+
className="govgr-caret--left govgr-svg-icon"
|
|
19
|
+
focusable="false"
|
|
20
|
+
viewBox="0 0 24 24"
|
|
21
|
+
>
|
|
22
|
+
<path
|
|
23
|
+
d="M18,22V2L6,12L18,22z"
|
|
24
|
+
/>
|
|
25
|
+
</svg>
|
|
26
|
+
</ForwardRef(SvgIcon)>
|
|
27
|
+
</ForwardRef(CaretIcon)>
|
|
14
28
|
hello
|
|
15
29
|
</a>
|
|
16
30
|
</ForwardRef(BackLink)>
|
|
@@ -20,10 +34,24 @@ exports[`renders the BackLink with no props 1`] = `
|
|
|
20
34
|
<ForwardRef(BackLink)>
|
|
21
35
|
<a
|
|
22
36
|
className="govgr-back-link"
|
|
37
|
+
onClick={[Function]}
|
|
23
38
|
>
|
|
24
|
-
<
|
|
25
|
-
|
|
26
|
-
|
|
39
|
+
<ForwardRef(CaretIcon)>
|
|
40
|
+
<ForwardRef(SvgIcon)
|
|
41
|
+
className="govgr-caret--left"
|
|
42
|
+
>
|
|
43
|
+
<svg
|
|
44
|
+
aria-hidden="true"
|
|
45
|
+
className="govgr-caret--left govgr-svg-icon"
|
|
46
|
+
focusable="false"
|
|
47
|
+
viewBox="0 0 24 24"
|
|
48
|
+
>
|
|
49
|
+
<path
|
|
50
|
+
d="M18,22V2L6,12L18,22z"
|
|
51
|
+
/>
|
|
52
|
+
</svg>
|
|
53
|
+
</ForwardRef(SvgIcon)>
|
|
54
|
+
</ForwardRef(CaretIcon)>
|
|
27
55
|
hello
|
|
28
56
|
</a>
|
|
29
57
|
</ForwardRef(BackLink)>
|
package/es/List/index.js
CHANGED
|
@@ -9,7 +9,8 @@ import clsx from 'clsx';
|
|
|
9
9
|
* This component must contain ListItem component.
|
|
10
10
|
*/
|
|
11
11
|
export var List = /*#__PURE__*/React.forwardRef(function List(_ref, ref) {
|
|
12
|
-
var listStyle = _ref.listStyle,
|
|
12
|
+
var _ref$listStyle = _ref.listStyle,
|
|
13
|
+
listStyle = _ref$listStyle === void 0 ? 'bullet' : _ref$listStyle,
|
|
13
14
|
_ref$spaced = _ref.spaced,
|
|
14
15
|
spaced = _ref$spaced === void 0 ? false : _ref$spaced,
|
|
15
16
|
className = _ref.className,
|
package/es/index.js
CHANGED
|
@@ -37,9 +37,6 @@ export { default as DateInputItem } from '@digigov/react-core/DateInputItem';
|
|
|
37
37
|
export { default as Details } from '@digigov/react-core/Details';
|
|
38
38
|
export { default as DetailsContent } from '@digigov/react-core/DetailsContent';
|
|
39
39
|
export { default as DetailsSummary } from '@digigov/react-core/DetailsSummary';
|
|
40
|
-
export { default as Dropdown } from '@digigov/react-core/Dropdown';
|
|
41
|
-
export { default as DropdownButton } from '@digigov/react-core/DropdownButton';
|
|
42
|
-
export { default as DropdownContent } from '@digigov/react-core/DropdownContent';
|
|
43
40
|
export { default as ErrorMessage } from '@digigov/react-core/ErrorMessage';
|
|
44
41
|
export { default as ErrorSummary } from '@digigov/react-core/ErrorSummary';
|
|
45
42
|
export { default as Fieldset } from '@digigov/react-core/Fieldset';
|
|
@@ -7,10 +7,24 @@ exports[`renders the BackLink with href="#" 1`] = `
|
|
|
7
7
|
<a
|
|
8
8
|
className="govgr-back-link"
|
|
9
9
|
href="#"
|
|
10
|
+
onClick={[Function]}
|
|
10
11
|
>
|
|
11
|
-
<
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
<ForwardRef(CaretIcon)>
|
|
13
|
+
<ForwardRef(SvgIcon)
|
|
14
|
+
className="govgr-caret--left"
|
|
15
|
+
>
|
|
16
|
+
<svg
|
|
17
|
+
aria-hidden="true"
|
|
18
|
+
className="govgr-caret--left govgr-svg-icon"
|
|
19
|
+
focusable="false"
|
|
20
|
+
viewBox="0 0 24 24"
|
|
21
|
+
>
|
|
22
|
+
<path
|
|
23
|
+
d="M18,22V2L6,12L18,22z"
|
|
24
|
+
/>
|
|
25
|
+
</svg>
|
|
26
|
+
</ForwardRef(SvgIcon)>
|
|
27
|
+
</ForwardRef(CaretIcon)>
|
|
14
28
|
hello
|
|
15
29
|
</a>
|
|
16
30
|
</ForwardRef(BackLink)>
|
|
@@ -20,10 +34,24 @@ exports[`renders the BackLink with no props 1`] = `
|
|
|
20
34
|
<ForwardRef(BackLink)>
|
|
21
35
|
<a
|
|
22
36
|
className="govgr-back-link"
|
|
37
|
+
onClick={[Function]}
|
|
23
38
|
>
|
|
24
|
-
<
|
|
25
|
-
|
|
26
|
-
|
|
39
|
+
<ForwardRef(CaretIcon)>
|
|
40
|
+
<ForwardRef(SvgIcon)
|
|
41
|
+
className="govgr-caret--left"
|
|
42
|
+
>
|
|
43
|
+
<svg
|
|
44
|
+
aria-hidden="true"
|
|
45
|
+
className="govgr-caret--left govgr-svg-icon"
|
|
46
|
+
focusable="false"
|
|
47
|
+
viewBox="0 0 24 24"
|
|
48
|
+
>
|
|
49
|
+
<path
|
|
50
|
+
d="M18,22V2L6,12L18,22z"
|
|
51
|
+
/>
|
|
52
|
+
</svg>
|
|
53
|
+
</ForwardRef(SvgIcon)>
|
|
54
|
+
</ForwardRef(CaretIcon)>
|
|
27
55
|
hello
|
|
28
56
|
</a>
|
|
29
57
|
</ForwardRef(BackLink)>
|
package/esm/List/index.js
CHANGED
|
@@ -9,7 +9,8 @@ import clsx from 'clsx';
|
|
|
9
9
|
* This component must contain ListItem component.
|
|
10
10
|
*/
|
|
11
11
|
export var List = /*#__PURE__*/React.forwardRef(function List(_ref, ref) {
|
|
12
|
-
var listStyle = _ref.listStyle,
|
|
12
|
+
var _ref$listStyle = _ref.listStyle,
|
|
13
|
+
listStyle = _ref$listStyle === void 0 ? 'bullet' : _ref$listStyle,
|
|
13
14
|
_ref$spaced = _ref.spaced,
|
|
14
15
|
spaced = _ref$spaced === void 0 ? false : _ref$spaced,
|
|
15
16
|
className = _ref.className,
|
package/esm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license Digigov v0.
|
|
1
|
+
/** @license Digigov v0.8.0
|
|
2
2
|
*
|
|
3
3
|
* This source code is licensed under the MIT license found in the
|
|
4
4
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -42,9 +42,6 @@ export { default as DateInputItem } from '@digigov/react-core/DateInputItem';
|
|
|
42
42
|
export { default as Details } from '@digigov/react-core/Details';
|
|
43
43
|
export { default as DetailsContent } from '@digigov/react-core/DetailsContent';
|
|
44
44
|
export { default as DetailsSummary } from '@digigov/react-core/DetailsSummary';
|
|
45
|
-
export { default as Dropdown } from '@digigov/react-core/Dropdown';
|
|
46
|
-
export { default as DropdownButton } from '@digigov/react-core/DropdownButton';
|
|
47
|
-
export { default as DropdownContent } from '@digigov/react-core/DropdownContent';
|
|
48
45
|
export { default as ErrorMessage } from '@digigov/react-core/ErrorMessage';
|
|
49
46
|
export { default as ErrorSummary } from '@digigov/react-core/ErrorSummary';
|
|
50
47
|
export { default as Fieldset } from '@digigov/react-core/Fieldset';
|
package/index.d.ts
CHANGED
|
@@ -37,9 +37,6 @@ export { default as DateInputItem } from '@digigov/react-core/DateInputItem';
|
|
|
37
37
|
export { default as Details } from '@digigov/react-core/Details';
|
|
38
38
|
export { default as DetailsContent } from '@digigov/react-core/DetailsContent';
|
|
39
39
|
export { default as DetailsSummary } from '@digigov/react-core/DetailsSummary';
|
|
40
|
-
export { default as Dropdown } from '@digigov/react-core/Dropdown';
|
|
41
|
-
export { default as DropdownButton } from '@digigov/react-core/DropdownButton';
|
|
42
|
-
export { default as DropdownContent } from '@digigov/react-core/DropdownContent';
|
|
43
40
|
export { default as ErrorMessage } from '@digigov/react-core/ErrorMessage';
|
|
44
41
|
export { default as ErrorSummary } from '@digigov/react-core/ErrorSummary';
|
|
45
42
|
export { default as Fieldset } from '@digigov/react-core/Fieldset';
|
package/index.js
CHANGED
|
@@ -233,24 +233,6 @@ Object.defineProperty(exports, "DetailsSummary", {
|
|
|
233
233
|
return _DetailsSummary["default"];
|
|
234
234
|
}
|
|
235
235
|
});
|
|
236
|
-
Object.defineProperty(exports, "Dropdown", {
|
|
237
|
-
enumerable: true,
|
|
238
|
-
get: function get() {
|
|
239
|
-
return _Dropdown["default"];
|
|
240
|
-
}
|
|
241
|
-
});
|
|
242
|
-
Object.defineProperty(exports, "DropdownButton", {
|
|
243
|
-
enumerable: true,
|
|
244
|
-
get: function get() {
|
|
245
|
-
return _DropdownButton["default"];
|
|
246
|
-
}
|
|
247
|
-
});
|
|
248
|
-
Object.defineProperty(exports, "DropdownContent", {
|
|
249
|
-
enumerable: true,
|
|
250
|
-
get: function get() {
|
|
251
|
-
return _DropdownContent["default"];
|
|
252
|
-
}
|
|
253
|
-
});
|
|
254
236
|
Object.defineProperty(exports, "ErrorMessage", {
|
|
255
237
|
enumerable: true,
|
|
256
238
|
get: function get() {
|
|
@@ -906,12 +888,6 @@ var _DetailsContent = _interopRequireDefault(require("@digigov/react-core/Detail
|
|
|
906
888
|
|
|
907
889
|
var _DetailsSummary = _interopRequireDefault(require("@digigov/react-core/DetailsSummary"));
|
|
908
890
|
|
|
909
|
-
var _Dropdown = _interopRequireDefault(require("@digigov/react-core/Dropdown"));
|
|
910
|
-
|
|
911
|
-
var _DropdownButton = _interopRequireDefault(require("@digigov/react-core/DropdownButton"));
|
|
912
|
-
|
|
913
|
-
var _DropdownContent = _interopRequireDefault(require("@digigov/react-core/DropdownContent"));
|
|
914
|
-
|
|
915
891
|
var _ErrorMessage = _interopRequireDefault(require("@digigov/react-core/ErrorMessage"));
|
|
916
892
|
|
|
917
893
|
var _ErrorSummary = _interopRequireDefault(require("@digigov/react-core/ErrorSummary"));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digigov/react-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "@digigov react core components",
|
|
5
5
|
"author": "GRNET Developers <devs@lists.grnet.gr>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"directory": "dist"
|
|
12
12
|
},
|
|
13
13
|
"peerDependencies": {
|
|
14
|
-
"@digigov/css": "0.
|
|
14
|
+
"@digigov/css": "0.16.0",
|
|
15
15
|
"clsx": "1.1.1",
|
|
16
16
|
"react": "16.14.0",
|
|
17
17
|
"react-dom": "16.14.0"
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`renders the Dropdown disabled 1`] = `
|
|
4
|
-
<ForwardRef(Dropdown)
|
|
5
|
-
disabled={true}
|
|
6
|
-
>
|
|
7
|
-
<details
|
|
8
|
-
className="govgr-dropdown--disabled govgr-dropdown"
|
|
9
|
-
>
|
|
10
|
-
hello
|
|
11
|
-
</details>
|
|
12
|
-
</ForwardRef(Dropdown)>
|
|
13
|
-
`;
|
|
14
|
-
|
|
15
|
-
exports[`renders the Dropdown with align=left 1`] = `
|
|
16
|
-
<ForwardRef(Dropdown)
|
|
17
|
-
align="left"
|
|
18
|
-
>
|
|
19
|
-
<details
|
|
20
|
-
className="govgr-dropdown--left govgr-dropdown"
|
|
21
|
-
>
|
|
22
|
-
hello
|
|
23
|
-
</details>
|
|
24
|
-
</ForwardRef(Dropdown)>
|
|
25
|
-
`;
|
|
26
|
-
|
|
27
|
-
exports[`renders the Dropdown with align=left and open=true 1`] = `
|
|
28
|
-
<ForwardRef(Dropdown)
|
|
29
|
-
align="left"
|
|
30
|
-
open={true}
|
|
31
|
-
>
|
|
32
|
-
<details
|
|
33
|
-
className="govgr-dropdown--left govgr-dropdown"
|
|
34
|
-
open={true}
|
|
35
|
-
>
|
|
36
|
-
hello
|
|
37
|
-
</details>
|
|
38
|
-
</ForwardRef(Dropdown)>
|
|
39
|
-
`;
|
|
40
|
-
|
|
41
|
-
exports[`renders the Dropdown with align=right and open=false 1`] = `
|
|
42
|
-
<ForwardRef(Dropdown)
|
|
43
|
-
align="right"
|
|
44
|
-
open={false}
|
|
45
|
-
>
|
|
46
|
-
<details
|
|
47
|
-
className="govgr-dropdown"
|
|
48
|
-
open={false}
|
|
49
|
-
>
|
|
50
|
-
hello
|
|
51
|
-
</details>
|
|
52
|
-
</ForwardRef(Dropdown)>
|
|
53
|
-
`;
|
|
54
|
-
|
|
55
|
-
exports[`renders the Dropdown with no props 1`] = `
|
|
56
|
-
<ForwardRef(Dropdown)>
|
|
57
|
-
<details
|
|
58
|
-
className="govgr-dropdown"
|
|
59
|
-
>
|
|
60
|
-
hello
|
|
61
|
-
</details>
|
|
62
|
-
</ForwardRef(Dropdown)>
|
|
63
|
-
`;
|
|
64
|
-
|
|
65
|
-
exports[`renders the Dropdown with open=false 1`] = `
|
|
66
|
-
<ForwardRef(Dropdown)
|
|
67
|
-
open={false}
|
|
68
|
-
>
|
|
69
|
-
<details
|
|
70
|
-
className="govgr-dropdown"
|
|
71
|
-
open={false}
|
|
72
|
-
>
|
|
73
|
-
hello
|
|
74
|
-
</details>
|
|
75
|
-
</ForwardRef(Dropdown)>
|
|
76
|
-
`;
|
|
77
|
-
|
|
78
|
-
exports[`renders the Dropdown with open=true 1`] = `
|
|
79
|
-
<ForwardRef(Dropdown)
|
|
80
|
-
open={true}
|
|
81
|
-
>
|
|
82
|
-
<details
|
|
83
|
-
className="govgr-dropdown"
|
|
84
|
-
open={true}
|
|
85
|
-
>
|
|
86
|
-
hello
|
|
87
|
-
</details>
|
|
88
|
-
</ForwardRef(Dropdown)>
|
|
89
|
-
`;
|
|
90
|
-
|
|
91
|
-
exports[`renders the Dropdown with placement=bottom and open=false 1`] = `
|
|
92
|
-
<ForwardRef(Dropdown)
|
|
93
|
-
open={false}
|
|
94
|
-
placement="bottom"
|
|
95
|
-
>
|
|
96
|
-
<details
|
|
97
|
-
className="govgr-dropdown"
|
|
98
|
-
open={false}
|
|
99
|
-
>
|
|
100
|
-
hello
|
|
101
|
-
</details>
|
|
102
|
-
</ForwardRef(Dropdown)>
|
|
103
|
-
`;
|
|
104
|
-
|
|
105
|
-
exports[`renders the Dropdown with placement=top 1`] = `
|
|
106
|
-
<ForwardRef(Dropdown)
|
|
107
|
-
placement="top"
|
|
108
|
-
>
|
|
109
|
-
<details
|
|
110
|
-
className="govgr-dropdown--up govgr-dropdown"
|
|
111
|
-
>
|
|
112
|
-
hello
|
|
113
|
-
</details>
|
|
114
|
-
</ForwardRef(Dropdown)>
|
|
115
|
-
`;
|
|
116
|
-
|
|
117
|
-
exports[`renders the Dropdown with placement=top align=left and open=true 1`] = `
|
|
118
|
-
<ForwardRef(Dropdown)
|
|
119
|
-
align="left"
|
|
120
|
-
open={true}
|
|
121
|
-
placement="top"
|
|
122
|
-
>
|
|
123
|
-
<details
|
|
124
|
-
className="govgr-dropdown--up govgr-dropdown--left govgr-dropdown"
|
|
125
|
-
open={true}
|
|
126
|
-
>
|
|
127
|
-
hello
|
|
128
|
-
</details>
|
|
129
|
-
</ForwardRef(Dropdown)>
|
|
130
|
-
`;
|
|
131
|
-
|
|
132
|
-
exports[`renders the Dropdown with placement=top and open=true 1`] = `
|
|
133
|
-
<ForwardRef(Dropdown)
|
|
134
|
-
open={true}
|
|
135
|
-
placement="top"
|
|
136
|
-
>
|
|
137
|
-
<details
|
|
138
|
-
className="govgr-dropdown--up govgr-dropdown"
|
|
139
|
-
open={true}
|
|
140
|
-
>
|
|
141
|
-
hello
|
|
142
|
-
</details>
|
|
143
|
-
</ForwardRef(Dropdown)>
|
|
144
|
-
`;
|
package/Dropdown/index.d.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare type DetailsHTMLAttributes = JSX.IntrinsicElements['details'];
|
|
3
|
-
export interface DropdownProps extends DetailsHTMLAttributes {
|
|
4
|
-
/**
|
|
5
|
-
* open is optional. The default value is false.
|
|
6
|
-
* Add this prop when an Dropdown should be open.
|
|
7
|
-
*/
|
|
8
|
-
open?: boolean;
|
|
9
|
-
/**
|
|
10
|
-
* align is optional. The default value is right.
|
|
11
|
-
* align prop adds DropdownContent right or left.
|
|
12
|
-
*/
|
|
13
|
-
align?: 'right' | 'left';
|
|
14
|
-
/**
|
|
15
|
-
* placement is optional. The default value is bottom.
|
|
16
|
-
* placement prop adds DropdownContent top or bottom.
|
|
17
|
-
*/
|
|
18
|
-
placement?: 'top' | 'bottom';
|
|
19
|
-
/**
|
|
20
|
-
* disabled is optional. The default value is false.
|
|
21
|
-
* disabled prop diables any action for Dropdown component.
|
|
22
|
-
*/
|
|
23
|
-
disabled?: boolean;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Dropdown is the main component for a dropdown.
|
|
27
|
-
* Inside this component must be DropdownButton and DropdownContent components.
|
|
28
|
-
*/
|
|
29
|
-
export declare const Dropdown: React.ForwardRefExoticComponent<Pick<DropdownProps, "className" | "children" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "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" | "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" | "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" | "open" | "disabled" | "onToggle" | "align" | "placement"> & React.RefAttributes<HTMLDetailsElement>>;
|
|
30
|
-
export default Dropdown;
|
package/Dropdown/index.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports["default"] = exports.Dropdown = void 0;
|
|
9
|
-
|
|
10
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
|
-
|
|
12
|
-
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
13
|
-
|
|
14
|
-
var _react = _interopRequireDefault(require("react"));
|
|
15
|
-
|
|
16
|
-
var _clsx = _interopRequireDefault(require("clsx"));
|
|
17
|
-
|
|
18
|
-
var _excluded = ["className", "children", "align", "placement", "open", "disabled"];
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Dropdown is the main component for a dropdown.
|
|
22
|
-
* Inside this component must be DropdownButton and DropdownContent components.
|
|
23
|
-
*/
|
|
24
|
-
// eslint-disable-next-line react/display-name
|
|
25
|
-
var Dropdown = /*#__PURE__*/_react["default"].forwardRef(function Dropdown(_ref, ref) {
|
|
26
|
-
var className = _ref.className,
|
|
27
|
-
children = _ref.children,
|
|
28
|
-
align = _ref.align,
|
|
29
|
-
placement = _ref.placement,
|
|
30
|
-
open = _ref.open,
|
|
31
|
-
disabled = _ref.disabled,
|
|
32
|
-
props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
|
|
33
|
-
return /*#__PURE__*/_react["default"].createElement("details", (0, _extends2["default"])({
|
|
34
|
-
ref: ref,
|
|
35
|
-
open: open,
|
|
36
|
-
className: (0, _clsx["default"])(className, placement === 'top' && 'govgr-dropdown--up', disabled === true && 'govgr-dropdown--disabled', align === 'left' && 'govgr-dropdown--left', true && 'govgr-dropdown')
|
|
37
|
-
}, props), children);
|
|
38
|
-
});
|
|
39
|
-
|
|
40
|
-
exports.Dropdown = Dropdown;
|
|
41
|
-
var _default = Dropdown;
|
|
42
|
-
exports["default"] = _default;
|
package/Dropdown/index.test.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|