@digigov/react-core 1.0.0-290a96e2 → 1.0.0-3bfc7d37
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/Blockquote/__snapshots__/index.test.tsx.snap +17 -0
- package/Blockquote/index.d.ts +8 -1
- package/Blockquote/index.js +3 -2
- package/Blockquote/index.test.js +8 -0
- package/Card/__snapshots__/index.test.tsx.snap +21 -0
- package/Card/index.d.ts +8 -1
- package/Card/index.js +3 -2
- package/Card/index.test.js +23 -15
- package/ImageLogo/__snapshots__/index.test.tsx.snap +36 -0
- package/ImageLogo/index.d.ts +20 -0
- package/ImageLogo/index.js +45 -0
- package/ImageLogo/index.test.d.ts +1 -0
- package/ImageLogo/index.test.js +26 -0
- package/ImageLogoSet/__snapshots__/index.test.tsx.snap +118 -0
- package/ImageLogoSet/index.d.ts +20 -0
- package/ImageLogoSet/index.js +45 -0
- package/ImageLogoSet/index.test.d.ts +1 -0
- package/ImageLogoSet/index.test.js +29 -0
- package/KitchenSinkCard/index.d.ts +1 -1
- package/RadioItem/__snapshots__/index.test.tsx.snap +2 -2
- package/RadioItem/index.d.ts +4 -4
- package/RadioItem/index.js +3 -3
- package/RadioItem/index.test.js +4 -4
- package/StepNav/__snapshots__/index.test.tsx.snap +17 -0
- package/StepNav/index.d.ts +8 -1
- package/StepNav/index.js +3 -2
- package/StepNav/index.test.js +8 -0
- package/TaskList/__snapshots__/index.test.tsx.snap +17 -0
- package/TaskList/index.d.ts +8 -1
- package/TaskList/index.js +3 -2
- package/TaskList/index.test.js +8 -0
- package/Timeline/__snapshots__/index.test.tsx.snap +17 -0
- package/Timeline/index.d.ts +2 -2
- package/Timeline/index.js +2 -3
- package/Timeline/index.test.js +8 -0
- package/Unpurge/index.js +1 -1
- package/es/Blockquote/__snapshots__/index.test.tsx.snap +17 -0
- package/es/Blockquote/index.js +3 -2
- package/es/Blockquote/index.test.js +8 -0
- package/es/Card/__snapshots__/index.test.tsx.snap +21 -0
- package/es/Card/index.js +3 -2
- package/es/Card/index.test.js +23 -15
- package/es/ImageLogo/__snapshots__/index.test.tsx.snap +36 -0
- package/es/ImageLogo/index.js +29 -0
- package/es/ImageLogo/index.test.js +20 -0
- package/es/ImageLogoSet/__snapshots__/index.test.tsx.snap +118 -0
- package/es/ImageLogoSet/index.js +30 -0
- package/es/ImageLogoSet/index.test.js +23 -0
- package/es/RadioItem/__snapshots__/index.test.tsx.snap +2 -2
- package/es/RadioItem/index.js +3 -3
- package/es/RadioItem/index.test.js +4 -4
- package/es/StepNav/__snapshots__/index.test.tsx.snap +17 -0
- package/es/StepNav/index.js +3 -2
- package/es/StepNav/index.test.js +8 -0
- package/es/TaskList/__snapshots__/index.test.tsx.snap +17 -0
- package/es/TaskList/index.js +3 -2
- package/es/TaskList/index.test.js +8 -0
- package/es/Timeline/__snapshots__/index.test.tsx.snap +17 -0
- package/es/Timeline/index.js +2 -3
- package/es/Timeline/index.test.js +8 -0
- package/es/Unpurge/index.js +1 -1
- package/es/index.js +2 -1
- package/es/registry.js +4 -0
- package/esm/Blockquote/__snapshots__/index.test.tsx.snap +17 -0
- package/esm/Blockquote/index.js +3 -2
- package/esm/Blockquote/index.test.js +8 -0
- package/esm/Card/__snapshots__/index.test.tsx.snap +21 -0
- package/esm/Card/index.js +3 -2
- package/esm/Card/index.test.js +23 -15
- package/esm/ImageLogo/__snapshots__/index.test.tsx.snap +36 -0
- package/esm/ImageLogo/index.js +29 -0
- package/esm/ImageLogo/index.test.js +20 -0
- package/esm/ImageLogoSet/__snapshots__/index.test.tsx.snap +118 -0
- package/esm/ImageLogoSet/index.js +30 -0
- package/esm/ImageLogoSet/index.test.js +23 -0
- package/esm/RadioItem/__snapshots__/index.test.tsx.snap +2 -2
- package/esm/RadioItem/index.js +3 -3
- package/esm/RadioItem/index.test.js +4 -4
- package/esm/StepNav/__snapshots__/index.test.tsx.snap +17 -0
- package/esm/StepNav/index.js +3 -2
- package/esm/StepNav/index.test.js +8 -0
- package/esm/TaskList/__snapshots__/index.test.tsx.snap +17 -0
- package/esm/TaskList/index.js +3 -2
- package/esm/TaskList/index.test.js +8 -0
- package/esm/Timeline/__snapshots__/index.test.tsx.snap +17 -0
- package/esm/Timeline/index.js +2 -3
- package/esm/Timeline/index.test.js +8 -0
- package/esm/Unpurge/index.js +1 -1
- package/esm/index.js +3 -2
- package/esm/registry.js +4 -0
- package/index.d.ts +2 -1
- package/index.js +17 -4
- package/package.json +3 -3
- package/registry.d.ts +2 -0
- package/registry.js +6 -0
- package/src/Blockquote/__snapshots__/index.test.tsx.snap +17 -0
- package/src/Blockquote/index.test.tsx +4 -0
- package/src/Blockquote/index.tsx +11 -2
- package/src/Card/__snapshots__/index.test.tsx.snap +21 -0
- package/src/Card/index.test.tsx +3 -0
- package/src/Card/index.tsx +9 -1
- package/src/ImageLogo/__snapshots__/index.test.tsx.snap +36 -0
- package/src/ImageLogo/index.test.tsx +13 -0
- package/src/ImageLogo/index.tsx +43 -0
- package/src/ImageLogoSet/__snapshots__/index.test.tsx.snap +118 -0
- package/src/ImageLogoSet/index.test.tsx +17 -0
- package/src/ImageLogoSet/index.tsx +36 -0
- package/src/RadioItem/__snapshots__/index.test.tsx.snap +2 -2
- package/src/RadioItem/index.test.tsx +4 -4
- package/src/RadioItem/index.tsx +5 -5
- package/src/StepNav/__snapshots__/index.test.tsx.snap +17 -0
- package/src/StepNav/index.test.tsx +4 -0
- package/src/StepNav/index.tsx +11 -2
- package/src/TaskList/__snapshots__/index.test.tsx.snap +17 -0
- package/src/TaskList/index.test.tsx +4 -0
- package/src/TaskList/index.tsx +11 -2
- package/src/Timeline/__snapshots__/index.test.tsx.snap +17 -0
- package/src/Timeline/index.test.tsx +4 -0
- package/src/Timeline/index.tsx +4 -4
- package/src/Unpurge/index.tsx +2 -0
- package/src/index.ts +2 -1
- package/src/registry.js +4 -0
|
@@ -0,0 +1,45 @@
|
|
|
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.ImageLogoSet = 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 _ImageLogo = _interopRequireDefault(require("@digigov/react-core/ImageLogo"));
|
|
17
|
+
|
|
18
|
+
var _excluded = ["lang", "src", "variants", "className", "children"];
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* ImageLogoSet is used as image inverter depending the theme (dark, light).
|
|
22
|
+
* This component can't have children.
|
|
23
|
+
*/
|
|
24
|
+
var ImageLogoSet = /*#__PURE__*/_react["default"].forwardRef(function ImageLogoSet(_ref, ref) {
|
|
25
|
+
var lang = _ref.lang,
|
|
26
|
+
src = _ref.src,
|
|
27
|
+
_ref$variants = _ref.variants,
|
|
28
|
+
variants = _ref$variants === void 0 ? ['dark', 'light'] : _ref$variants,
|
|
29
|
+
className = _ref.className,
|
|
30
|
+
children = _ref.children,
|
|
31
|
+
props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
|
|
32
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, variants.map(function (variant) {
|
|
33
|
+
var imageSrc = src === null || src === void 0 ? void 0 : src.replace(/(\.[^\.]+)$/, "--".concat(variant, "$1"));
|
|
34
|
+
return /*#__PURE__*/_react["default"].createElement(_ImageLogo["default"], (0, _extends2["default"])({
|
|
35
|
+
key: variant,
|
|
36
|
+
ref: ref,
|
|
37
|
+
variant: variant,
|
|
38
|
+
src: imageSrc
|
|
39
|
+
}, props));
|
|
40
|
+
}));
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
exports.ImageLogoSet = ImageLogoSet;
|
|
44
|
+
var _default = ImageLogoSet;
|
|
45
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
var _react = _interopRequireDefault(require("react"));
|
|
6
|
+
|
|
7
|
+
var _enzyme = require("enzyme");
|
|
8
|
+
|
|
9
|
+
var _ImageLogoSet = _interopRequireDefault(require("@digigov/react-core/ImageLogoSet"));
|
|
10
|
+
|
|
11
|
+
var _ref = /*#__PURE__*/_react["default"].createElement(_ImageLogoSet["default"], {
|
|
12
|
+
src: "logo.png"
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
it('renders the Hint with src prop', function () {
|
|
16
|
+
expect((0, _enzyme.mount)(_ref)).toMatchSnapshot();
|
|
17
|
+
});
|
|
18
|
+
it('renders the Hint with variants=[light] and src props', function () {
|
|
19
|
+
expect((0, _enzyme.mount)( /*#__PURE__*/_react["default"].createElement(_ImageLogoSet["default"], {
|
|
20
|
+
variants: ['light'],
|
|
21
|
+
src: "logo.png"
|
|
22
|
+
}))).toMatchSnapshot();
|
|
23
|
+
});
|
|
24
|
+
it('renders the Hint with variants=[light, dark] and src props', function () {
|
|
25
|
+
expect((0, _enzyme.mount)( /*#__PURE__*/_react["default"].createElement(_ImageLogoSet["default"], {
|
|
26
|
+
variants: ['light', 'dark'],
|
|
27
|
+
src: "logo.png"
|
|
28
|
+
}))).toMatchSnapshot();
|
|
29
|
+
});
|
|
@@ -2,4 +2,4 @@ import React from 'react';
|
|
|
2
2
|
import { CardProps } from '@digigov/react-core/Card';
|
|
3
3
|
export interface KitchenSinkCardProps extends CardProps {
|
|
4
4
|
}
|
|
5
|
-
export declare const KitchenSinkCard: React.ForwardRefExoticComponent<Pick<KitchenSinkCardProps, "slot" | "style" | "title" | "as" | "className" | "color" | "id" | "lang" | "role" | "tabIndex" | "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" | "children" | "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" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "margin" | "marginTop" | "marginBottom" | "marginLeft" | "marginRight" | "padding" | "paddingTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "printHidden" | "printVisible" | "xsUpHidden" | "smUpHidden" | "mdUpHidden" | "lgUpHidden" | "xlUpHidden" | "xsHidden" | "smHidden" | "mdHidden" | "lgHidden" | "xlHidden" | "variant" | "borderColor" | "callToAction"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
export declare const KitchenSinkCard: React.ForwardRefExoticComponent<Pick<KitchenSinkCardProps, "slot" | "style" | "title" | "as" | "className" | "color" | "id" | "lang" | "role" | "tabIndex" | "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" | "children" | "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" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "margin" | "marginTop" | "marginBottom" | "marginLeft" | "marginRight" | "padding" | "paddingTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "printHidden" | "printVisible" | "xsUpHidden" | "smUpHidden" | "mdUpHidden" | "lgUpHidden" | "xlUpHidden" | "xsHidden" | "smHidden" | "mdHidden" | "lgHidden" | "xlHidden" | "dense" | "variant" | "borderColor" | "callToAction"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`renders the RadioItem \`divider\` props 1`] = `
|
|
4
4
|
<ForwardRef(RadioItem)
|
|
5
|
-
|
|
5
|
+
dividerText="ή"
|
|
6
6
|
>
|
|
7
7
|
<ForwardRef(ChoiceDividerText)>
|
|
8
8
|
<ForwardRef(Base)
|
|
@@ -91,7 +91,7 @@ exports[`renders the RadioItem value props 1`] = `
|
|
|
91
91
|
exports[`renders the RadioItem with \`name\`, \`disabled\`, \`divider\` and \`value\` props 1`] = `
|
|
92
92
|
<ForwardRef(RadioItem)
|
|
93
93
|
disabled={true}
|
|
94
|
-
|
|
94
|
+
dividerText="ή"
|
|
95
95
|
name="name"
|
|
96
96
|
value="someValue"
|
|
97
97
|
>
|
package/RadioItem/index.d.ts
CHANGED
|
@@ -2,15 +2,15 @@ import React from 'react';
|
|
|
2
2
|
import { BaseProps } from '@digigov/react-core/Base';
|
|
3
3
|
export interface RadioItemProps extends BaseProps<'input'> {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
* Add this prop to add a choice
|
|
5
|
+
* dividerText is optional.
|
|
6
|
+
* Add this prop to add a choice dividerText on top of a radio item.
|
|
7
7
|
* The string is the text that it will appear above this radio item.
|
|
8
8
|
*/
|
|
9
|
-
|
|
9
|
+
dividerText?: string;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
12
|
* RadioItem component is used for display radio buttons.
|
|
13
13
|
* RadioItem component must be included inside Radio component, as a children component.
|
|
14
14
|
*/
|
|
15
|
-
export declare const RadioItem: React.ForwardRefExoticComponent<Pick<RadioItemProps, "form" | "slot" | "style" | "title" | "pattern" | "as" | "className" | "color" | "height" | "id" | "lang" | "max" | "min" | "name" | "type" | "width" | "role" | "tabIndex" | "crossOrigin" | "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" | "children" | "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" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "alt" | "src" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "value" | "autoComplete" | "accept" | "capture" | "checked" | "list" | "maxLength" | "minLength" | "multiple" | "readOnly" | "required" | "size" | "step" | "margin" | "marginTop" | "marginBottom" | "marginLeft" | "marginRight" | "padding" | "paddingTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "printHidden" | "printVisible" | "xsUpHidden" | "smUpHidden" | "mdUpHidden" | "lgUpHidden" | "xlUpHidden" | "xsHidden" | "smHidden" | "mdHidden" | "lgHidden" | "xlHidden" | "
|
|
15
|
+
export declare const RadioItem: React.ForwardRefExoticComponent<Pick<RadioItemProps, "form" | "slot" | "style" | "title" | "pattern" | "as" | "className" | "color" | "height" | "id" | "lang" | "max" | "min" | "name" | "type" | "width" | "role" | "tabIndex" | "crossOrigin" | "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" | "children" | "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" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "alt" | "src" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "value" | "autoComplete" | "accept" | "capture" | "checked" | "list" | "maxLength" | "minLength" | "multiple" | "readOnly" | "required" | "size" | "step" | "margin" | "marginTop" | "marginBottom" | "marginLeft" | "marginRight" | "padding" | "paddingTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "printHidden" | "printVisible" | "xsUpHidden" | "smUpHidden" | "mdUpHidden" | "lgUpHidden" | "xlUpHidden" | "xsHidden" | "smHidden" | "mdHidden" | "lgHidden" | "xlHidden" | "dividerText"> & React.RefAttributes<HTMLInputElement>>;
|
|
16
16
|
export default RadioItem;
|
package/RadioItem/index.js
CHANGED
|
@@ -21,14 +21,14 @@ var _ChoiceDividerText = _interopRequireDefault(require("@digigov/react-core/Cho
|
|
|
21
21
|
|
|
22
22
|
var _LabelContainer = _interopRequireDefault(require("@digigov/react-core/LabelContainer"));
|
|
23
23
|
|
|
24
|
-
var _excluded = ["
|
|
24
|
+
var _excluded = ["dividerText", "name", "value", "className", "disabled", "children"];
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* RadioItem component is used for display radio buttons.
|
|
28
28
|
* RadioItem component must be included inside Radio component, as a children component.
|
|
29
29
|
*/
|
|
30
30
|
var RadioItem = /*#__PURE__*/_react["default"].forwardRef(function RadioItem(_ref, ref) {
|
|
31
|
-
var
|
|
31
|
+
var dividerText = _ref.dividerText,
|
|
32
32
|
name = _ref.name,
|
|
33
33
|
value = _ref.value,
|
|
34
34
|
className = _ref.className,
|
|
@@ -36,7 +36,7 @@ var RadioItem = /*#__PURE__*/_react["default"].forwardRef(function RadioItem(_re
|
|
|
36
36
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
37
37
|
children = _ref.children,
|
|
38
38
|
props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
|
|
39
|
-
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null,
|
|
39
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, dividerText && /*#__PURE__*/_react["default"].createElement(_ChoiceDividerText["default"], null, dividerText), /*#__PURE__*/_react["default"].createElement("div", {
|
|
40
40
|
className: (0, _clsx["default"])(className, true && 'govgr-radios__item')
|
|
41
41
|
}, /*#__PURE__*/_react["default"].createElement(_LabelContainer["default"], {
|
|
42
42
|
className: (0, _clsx["default"])(disabled && 'govgr-radios__label--disabled', true && 'govgr-radios__label')
|
package/RadioItem/index.test.js
CHANGED
|
@@ -31,10 +31,10 @@ it('renders the RadioItem value props', function () {
|
|
|
31
31
|
});
|
|
32
32
|
|
|
33
33
|
var _ref4 = /*#__PURE__*/_react["default"].createElement(_RadioItem["default"], {
|
|
34
|
-
|
|
34
|
+
dividerText: 'ή'
|
|
35
35
|
}, "hello");
|
|
36
36
|
|
|
37
|
-
it('renders the RadioItem `
|
|
37
|
+
it('renders the RadioItem `dividerText` props', function () {
|
|
38
38
|
expect((0, _enzyme.mount)(_ref4)).toMatchSnapshot();
|
|
39
39
|
});
|
|
40
40
|
|
|
@@ -68,10 +68,10 @@ it('renders the RadioItem with name disabled and value props', function () {
|
|
|
68
68
|
var _ref8 = /*#__PURE__*/_react["default"].createElement(_RadioItem["default"], {
|
|
69
69
|
name: 'name',
|
|
70
70
|
value: 'someValue',
|
|
71
|
-
|
|
71
|
+
dividerText: 'ή',
|
|
72
72
|
disabled: true
|
|
73
73
|
}, "hello");
|
|
74
74
|
|
|
75
|
-
it('renders the RadioItem with `name`, `disabled`, `
|
|
75
|
+
it('renders the RadioItem with `name`, `disabled`, `dividerText` and `value` props', function () {
|
|
76
76
|
expect((0, _enzyme.mount)(_ref8)).toMatchSnapshot();
|
|
77
77
|
});
|
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
+
exports[`renders the StepNav with dense props 1`] = `
|
|
4
|
+
<ForwardRef(StepNav)
|
|
5
|
+
dense={true}
|
|
6
|
+
>
|
|
7
|
+
<ForwardRef(Base)
|
|
8
|
+
as="div"
|
|
9
|
+
className="govgr-step--dense govgr-step-nav"
|
|
10
|
+
>
|
|
11
|
+
<div
|
|
12
|
+
className="govgr-step--dense govgr-step-nav"
|
|
13
|
+
>
|
|
14
|
+
hello
|
|
15
|
+
</div>
|
|
16
|
+
</ForwardRef(Base)>
|
|
17
|
+
</ForwardRef(StepNav)>
|
|
18
|
+
`;
|
|
19
|
+
|
|
3
20
|
exports[`renders the StepNav with no props 1`] = `
|
|
4
21
|
<ForwardRef(StepNav)>
|
|
5
22
|
<ForwardRef(Base)
|
package/StepNav/index.d.ts
CHANGED
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BaseProps } from '@digigov/react-core/Base';
|
|
3
3
|
export interface StepNavProps extends BaseProps<'div'> {
|
|
4
|
+
/**
|
|
5
|
+
* dense is optional.
|
|
6
|
+
* @value true StepNav will be dense.
|
|
7
|
+
* @value false
|
|
8
|
+
* @default false
|
|
9
|
+
* */
|
|
10
|
+
dense?: boolean;
|
|
4
11
|
}
|
|
5
12
|
/**
|
|
6
13
|
* StepNav contains the content or any other element for step-by-step implementation.
|
|
7
14
|
* Use StepNav as wrapper component.
|
|
8
15
|
*/
|
|
9
|
-
export declare const StepNav: React.ForwardRefExoticComponent<Pick<StepNavProps, "slot" | "style" | "title" | "as" | "className" | "color" | "id" | "lang" | "role" | "tabIndex" | "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" | "children" | "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" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "margin" | "marginTop" | "marginBottom" | "marginLeft" | "marginRight" | "padding" | "paddingTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "printHidden" | "printVisible" | "xsUpHidden" | "smUpHidden" | "mdUpHidden" | "lgUpHidden" | "xlUpHidden" | "xsHidden" | "smHidden" | "mdHidden" | "lgHidden" | "xlHidden"> & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
+
export declare const StepNav: React.ForwardRefExoticComponent<Pick<StepNavProps, "slot" | "style" | "title" | "as" | "className" | "color" | "id" | "lang" | "role" | "tabIndex" | "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" | "children" | "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" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "margin" | "marginTop" | "marginBottom" | "marginLeft" | "marginRight" | "padding" | "paddingTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "printHidden" | "printVisible" | "xsUpHidden" | "smUpHidden" | "mdUpHidden" | "lgUpHidden" | "xlUpHidden" | "xsHidden" | "smHidden" | "mdHidden" | "lgHidden" | "xlHidden" | "dense"> & React.RefAttributes<HTMLDivElement>>;
|
|
10
17
|
export default StepNav;
|
package/StepNav/index.js
CHANGED
|
@@ -17,7 +17,7 @@ var _clsx = _interopRequireDefault(require("clsx"));
|
|
|
17
17
|
|
|
18
18
|
var _Base = _interopRequireDefault(require("@digigov/react-core/Base"));
|
|
19
19
|
|
|
20
|
-
var _excluded = ["className", "children"];
|
|
20
|
+
var _excluded = ["className", "dense", "children"];
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* StepNav contains the content or any other element for step-by-step implementation.
|
|
@@ -25,12 +25,13 @@ var _excluded = ["className", "children"];
|
|
|
25
25
|
*/
|
|
26
26
|
var StepNav = /*#__PURE__*/_react["default"].forwardRef(function StepNav(_ref, ref) {
|
|
27
27
|
var className = _ref.className,
|
|
28
|
+
dense = _ref.dense,
|
|
28
29
|
children = _ref.children,
|
|
29
30
|
props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
|
|
30
31
|
return /*#__PURE__*/_react["default"].createElement(_Base["default"], (0, _extends2["default"])({
|
|
31
32
|
as: "div",
|
|
32
33
|
ref: ref,
|
|
33
|
-
className: (0, _clsx["default"])(className, true && 'govgr-step-nav')
|
|
34
|
+
className: (0, _clsx["default"])(className, dense && 'govgr-step-nav--dense', true && 'govgr-step-nav')
|
|
34
35
|
}, props), children);
|
|
35
36
|
});
|
|
36
37
|
|
package/StepNav/index.test.js
CHANGED
|
@@ -12,4 +12,12 @@ var _ref = /*#__PURE__*/_react["default"].createElement(_StepNav["default"], nul
|
|
|
12
12
|
|
|
13
13
|
it('renders the StepNav with no props', function () {
|
|
14
14
|
expect((0, _enzyme.mount)(_ref)).toMatchSnapshot();
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
var _ref2 = /*#__PURE__*/_react["default"].createElement(_StepNav["default"], {
|
|
18
|
+
dense: true
|
|
19
|
+
}, "hello");
|
|
20
|
+
|
|
21
|
+
it('renders the StepNav with dense props', function () {
|
|
22
|
+
expect((0, _enzyme.mount)(_ref2)).toMatchSnapshot();
|
|
15
23
|
});
|
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
+
exports[`renders the TaskList with dense prop 1`] = `
|
|
4
|
+
<ForwardRef(TaskList)
|
|
5
|
+
dense={true}
|
|
6
|
+
>
|
|
7
|
+
<ForwardRef(Base)
|
|
8
|
+
as="ol"
|
|
9
|
+
className="govgr-task--dense govgr-task-list"
|
|
10
|
+
>
|
|
11
|
+
<ol
|
|
12
|
+
className="govgr-task--dense govgr-task-list"
|
|
13
|
+
>
|
|
14
|
+
hello
|
|
15
|
+
</ol>
|
|
16
|
+
</ForwardRef(Base)>
|
|
17
|
+
</ForwardRef(TaskList)>
|
|
18
|
+
`;
|
|
19
|
+
|
|
3
20
|
exports[`renders the TaskList with no prop 1`] = `
|
|
4
21
|
<ForwardRef(TaskList)>
|
|
5
22
|
<ForwardRef(Base)
|
package/TaskList/index.d.ts
CHANGED
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BaseProps } from '@digigov/react-core/Base';
|
|
3
3
|
export interface TaskListProps extends BaseProps<'ol'> {
|
|
4
|
+
/**
|
|
5
|
+
* dense is optional.
|
|
6
|
+
* @value true TaskList will be dense.
|
|
7
|
+
* @value false
|
|
8
|
+
* @default false
|
|
9
|
+
* */
|
|
10
|
+
dense?: boolean;
|
|
4
11
|
}
|
|
5
12
|
/**
|
|
6
13
|
* TaskList component is used for listing items.
|
|
7
14
|
* This component must contain TaskListItem component.
|
|
8
15
|
*/
|
|
9
|
-
export declare const TaskList: React.ForwardRefExoticComponent<Pick<TaskListProps, "slot" | "style" | "title" | "as" | "className" | "color" | "id" | "lang" | "type" | "role" | "tabIndex" | "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" | "children" | "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" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "reversed" | "start" | "margin" | "marginTop" | "marginBottom" | "marginLeft" | "marginRight" | "padding" | "paddingTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "printHidden" | "printVisible" | "xsUpHidden" | "smUpHidden" | "mdUpHidden" | "lgUpHidden" | "xlUpHidden" | "xsHidden" | "smHidden" | "mdHidden" | "lgHidden" | "xlHidden"> & React.RefAttributes<HTMLOListElement>>;
|
|
16
|
+
export declare const TaskList: React.ForwardRefExoticComponent<Pick<TaskListProps, "slot" | "style" | "title" | "as" | "className" | "color" | "id" | "lang" | "type" | "role" | "tabIndex" | "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" | "children" | "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" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "reversed" | "start" | "margin" | "marginTop" | "marginBottom" | "marginLeft" | "marginRight" | "padding" | "paddingTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "printHidden" | "printVisible" | "xsUpHidden" | "smUpHidden" | "mdUpHidden" | "lgUpHidden" | "xlUpHidden" | "xsHidden" | "smHidden" | "mdHidden" | "lgHidden" | "xlHidden" | "dense"> & React.RefAttributes<HTMLOListElement>>;
|
|
10
17
|
export default TaskList;
|
package/TaskList/index.js
CHANGED
|
@@ -17,7 +17,7 @@ var _clsx = _interopRequireDefault(require("clsx"));
|
|
|
17
17
|
|
|
18
18
|
var _Base = _interopRequireDefault(require("@digigov/react-core/Base"));
|
|
19
19
|
|
|
20
|
-
var _excluded = ["className", "children"];
|
|
20
|
+
var _excluded = ["className", "dense", "children"];
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* TaskList component is used for listing items.
|
|
@@ -25,12 +25,13 @@ var _excluded = ["className", "children"];
|
|
|
25
25
|
*/
|
|
26
26
|
var TaskList = /*#__PURE__*/_react["default"].forwardRef(function TaskList(_ref, ref) {
|
|
27
27
|
var className = _ref.className,
|
|
28
|
+
dense = _ref.dense,
|
|
28
29
|
children = _ref.children,
|
|
29
30
|
props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
|
|
30
31
|
return /*#__PURE__*/_react["default"].createElement(_Base["default"], (0, _extends2["default"])({
|
|
31
32
|
as: "ol",
|
|
32
33
|
ref: ref,
|
|
33
|
-
className: (0, _clsx["default"])(className, true && 'govgr-task-list')
|
|
34
|
+
className: (0, _clsx["default"])(className, dense && 'govgr-task-list--dense', true && 'govgr-task-list')
|
|
34
35
|
}, props), children);
|
|
35
36
|
});
|
|
36
37
|
|
package/TaskList/index.test.js
CHANGED
|
@@ -12,4 +12,12 @@ var _ref = /*#__PURE__*/_react["default"].createElement(_TaskList["default"], nu
|
|
|
12
12
|
|
|
13
13
|
it('renders the TaskList with no prop', function () {
|
|
14
14
|
expect((0, _enzyme.mount)(_ref)).toMatchSnapshot();
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
var _ref2 = /*#__PURE__*/_react["default"].createElement(_TaskList["default"], {
|
|
18
|
+
dense: true
|
|
19
|
+
}, "hello");
|
|
20
|
+
|
|
21
|
+
it('renders the TaskList with dense prop', function () {
|
|
22
|
+
expect((0, _enzyme.mount)(_ref2)).toMatchSnapshot();
|
|
15
23
|
});
|
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
+
exports[`renders the Timeline with dense prop 1`] = `
|
|
4
|
+
<ForwardRef(Timeline)
|
|
5
|
+
dense={true}
|
|
6
|
+
>
|
|
7
|
+
<ForwardRef(Base)
|
|
8
|
+
as="ol"
|
|
9
|
+
className="govgr-timeline--dense govgr-timeline"
|
|
10
|
+
>
|
|
11
|
+
<ol
|
|
12
|
+
className="govgr-timeline--dense govgr-timeline"
|
|
13
|
+
>
|
|
14
|
+
hello
|
|
15
|
+
</ol>
|
|
16
|
+
</ForwardRef(Base)>
|
|
17
|
+
</ForwardRef(Timeline)>
|
|
18
|
+
`;
|
|
19
|
+
|
|
3
20
|
exports[`renders the Timeline with no prop 1`] = `
|
|
4
21
|
<ForwardRef(Timeline)>
|
|
5
22
|
<ForwardRef(Base)
|
package/Timeline/index.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import React from 'react';
|
|
|
2
2
|
import { BaseProps } from '@digigov/react-core/Base';
|
|
3
3
|
export interface TimelineProps extends BaseProps<'ol'> {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
* @value true
|
|
5
|
+
* dense is optional.
|
|
6
|
+
* @value true Timeline will be dense.
|
|
7
7
|
* @value false
|
|
8
8
|
* @default true
|
|
9
9
|
*/
|
package/Timeline/index.js
CHANGED
|
@@ -24,15 +24,14 @@ var _excluded = ["dense", "className", "children"];
|
|
|
24
24
|
* This component must contain TimelineItem component.
|
|
25
25
|
*/
|
|
26
26
|
var Timeline = /*#__PURE__*/_react["default"].forwardRef(function Timeline(_ref, ref) {
|
|
27
|
-
var
|
|
28
|
-
dense = _ref$dense === void 0 ? true : _ref$dense,
|
|
27
|
+
var dense = _ref.dense,
|
|
29
28
|
className = _ref.className,
|
|
30
29
|
children = _ref.children,
|
|
31
30
|
props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
|
|
32
31
|
return /*#__PURE__*/_react["default"].createElement(_Base["default"], (0, _extends2["default"])({
|
|
33
32
|
as: "ol",
|
|
34
33
|
ref: ref,
|
|
35
|
-
className: (0, _clsx["default"])(className,
|
|
34
|
+
className: (0, _clsx["default"])(className, dense && 'govgr-timeline--dense', true && 'govgr-timeline')
|
|
36
35
|
}, props), children);
|
|
37
36
|
});
|
|
38
37
|
|
package/Timeline/index.test.js
CHANGED
|
@@ -12,4 +12,12 @@ var _ref = /*#__PURE__*/_react["default"].createElement(_Timeline["default"], nu
|
|
|
12
12
|
|
|
13
13
|
it('renders the Timeline with no prop', function () {
|
|
14
14
|
expect((0, _enzyme.mount)(_ref)).toMatchSnapshot();
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
var _ref2 = /*#__PURE__*/_react["default"].createElement(_Timeline["default"], {
|
|
18
|
+
dense: true
|
|
19
|
+
}, "hello");
|
|
20
|
+
|
|
21
|
+
it('renders the Timeline with dense prop', function () {
|
|
22
|
+
expect((0, _enzyme.mount)(_ref2)).toMatchSnapshot();
|
|
15
23
|
});
|
package/Unpurge/index.js
CHANGED
|
@@ -11,7 +11,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
11
11
|
|
|
12
12
|
function Unpurge() {
|
|
13
13
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
14
|
-
className: "\n govgr-m-0 \n govgr-mt-0 \n govgr-mb-0 \n govgr-mr-0 \n govgr-ml-0 \n govgr-p-0 \n govgr-pt-0 \n govgr-pb-0 \n govgr-pr-0 \n govgr-pl-0 \n govgr-m-1 \n govgr-mt-1 \n govgr-mb-1 \n govgr-mr-1 \n govgr-ml-1 \n govgr-p-1 \n govgr-pt-1 \n govgr-pb-1 \n govgr-pr-1 \n govgr-pl-1 \n govgr-m-2 \n govgr-mt-2 \n govgr-mb-2 \n govgr-mr-2 \n govgr-ml-2 \n govgr-p-2 \n govgr-pt-2 \n govgr-pb-2 \n govgr-pr-2 \n govgr-pl-2 \n govgr-m-3 \n govgr-mt-3 \n govgr-mb-3 \n govgr-mr-3 \n govgr-ml-3 \n govgr-p-3 \n govgr-pt-3 \n govgr-pb-3 \n govgr-pr-3 \n govgr-pl-3 \n govgr-m-4 \n govgr-mt-4 \n govgr-mb-4 \n govgr-mr-4 \n govgr-ml-4 \n govgr-p-4 \n govgr-pt-4 \n govgr-pb-4 \n govgr-pr-4 \n govgr-pl-4 \n govgr-m-5 \n govgr-mt-5 \n govgr-mb-5 \n govgr-mr-5 \n govgr-ml-5 \n govgr-p-5 \n govgr-pt-5 \n govgr-pb-5 \n govgr-pr-5 \n govgr-pl-5 \n govgr-m-6 \n govgr-mt-6 \n govgr-mb-6 \n govgr-mr-6 \n govgr-ml-6 \n govgr-p-6 \n govgr-pt-6 \n govgr-pb-6 \n govgr-pr-6 \n govgr-pl-6 \n govgr-m-7 \n govgr-mt-7 \n govgr-mb-7 \n govgr-mr-7 \n govgr-ml-7 \n govgr-p-7 \n govgr-pt-7 \n govgr-pb-7 \n govgr-pr-7 \n govgr-pl-7 \n govgr-m-8 \n govgr-mt-8 \n govgr-mb-8 \n govgr-mr-8 \n govgr-ml-8 \n govgr-m-9 \n govgr-mt-9 \n govgr-mb-9 \n govgr-mr-9 \n govgr-ml-9 \n govgr-m-10 \n govgr-mt-10 \n govgr-mb-10 \n govgr-mr-10 \n govgr-ml-10 \n govgr-m-11 \n govgr-mt-11 \n govgr-mb-11 \n govgr-mr-11 \n govgr-ml-11 \n govgr-m-12 \n govgr-mt-12 \n govgr-mb-12 \n govgr-mr-12 \n govgr-ml-12 \n govgr-p-8 \n govgr-pt-8 \n govgr-pb-8 \n govgr-pr-8 \n govgr-pl-8 \n govgr-p-9 \n govgr-pt-9 \n govgr-pb-9 \n govgr-pr-9 \n govgr-pl-9 \n govgr-p-10\n govgr-pt-10\n govgr-pb-10\n govgr-pr-10\n govgr-pl-10\n govgr-p-11\n govgr-pt-11\n govgr-pb-11\n govgr-pr-11\n govgr-pl-11\n govgr-p-12\n govgr-pt-12\n govgr-pb-12\n govgr-pr-12\n govgr-pl-12\n govgr-gap-1\n govgr-gap-2\n govgr-gap-4\n govgr-gap-6\n govgr-gap-8\n govgr-gap-10\n govgr-gap-12\n govgr-gap-xs-1\n govgr-gap-xs-2\n govgr-gap-xs-4\n govgr-gap-xs-5\n govgr-gap-xs-6\n govgr-gap-xs-8\n govgr-gap-xs-10\n govgr-gap-xs-12\n govgr-gap-sm-1\n govgr-gap-sm-2\n govgr-gap-sm-4\n govgr-gap-sm-5\n govgr-gap-sm-6\n govgr-gap-sm-8\n govgr-gap-sm-10\n govgr-gap-sm-12\n govgr-gap-md-1\n govgr-gap-md-2\n govgr-gap-md-4\n govgr-gap-md-5\n govgr-gap-md-6\n govgr-gap-md-8\n govgr-gap-md-10\n govgr-gap-md-12\n govgr-gap-lg-1\n govgr-gap-lg-2\n govgr-gap-lg-4\n govgr-gap-lg-5\n govgr-gap-lg-6\n govgr-gap-lg-8\n govgr-gap-lg-10\n govgr-gap-lg-12\n govgr-gap-xl-1\n govgr-gap-xl-2\n govgr-gap-xl-4\n govgr-gap-xl-5\n govgr-gap-xl-6\n govgr-gap-xl-8\n govgr-gap-xl-10\n govgr-gap-xl-12\n govgr-!-font-size-14\n govgr-!-font-size-16\n govgr-!-font-size-19\n govgr-!-font-size-24\n govgr-!-font-size-30\n govgr-!-font-size-36\n govgr-!-font-size-48\n govgr-!-font-size-72\n govgr-!-font-weight-regular\n govgr-!-font-weight-bold\n govgr-print-hidden\n govgr-svg-icon--arrow\n govgr-svg-icon--burger\n govgr-svg-icon--burger--active\n govgr-svg-icon--caret\n govgr-svg-icon--check\n govgr-svg-icon--close\n govgr-svg-icon--globe\n govgr-svg-icon--moreVert\n govgr-svg-icon--uncheck\n xs:govgr-grid__col-span-1\n xs:govgr-grid__col-span-2\n xs:govgr-grid__col-span-3\n xs:govgr-grid__col-span-4\n xs:govgr-grid__col-span-5\n xs:govgr-grid__col-span-6\n xs:govgr-grid__col-span-7\n xs:govgr-grid__col-span-8\n xs:govgr-grid__col-span-9\n xs:govgr-grid__col-span-10\n xs:govgr-grid__col-span-11\n xs:govgr-grid__col-span-12\n sm:govgr-grid__col-span-1\n sm:govgr-grid__col-span-2\n sm:govgr-grid__col-span-3\n sm:govgr-grid__col-span-4\n sm:govgr-grid__col-span-5\n sm:govgr-grid__col-span-6\n sm:govgr-grid__col-span-7\n sm:govgr-grid__col-span-8\n sm:govgr-grid__col-span-9\n sm:govgr-grid__col-span-10\n sm:govgr-grid__col-span-11\n sm:govgr-grid__col-span-12\n md:govgr-grid__col-span-1\n md:govgr-grid__col-span-2\n md:govgr-grid__col-span-3\n md:govgr-grid__col-span-4\n md:govgr-grid__col-span-5\n md:govgr-grid__col-span-6\n md:govgr-grid__col-span-7\n md:govgr-grid__col-span-8\n md:govgr-grid__col-span-9\n md:govgr-grid__col-span-10\n md:govgr-grid__col-span-11\n md:govgr-grid__col-span-12\n lg:govgr-grid__col-span-1\n lg:govgr-grid__col-span-2\n lg:govgr-grid__col-span-3\n lg:govgr-grid__col-span-4\n lg:govgr-grid__col-span-5\n lg:govgr-grid__col-span-6\n lg:govgr-grid__col-span-7\n lg:govgr-grid__col-span-8\n lg:govgr-grid__col-span-9\n lg:govgr-grid__col-span-10\n lg:govgr-grid__col-span-11\n lg:govgr-grid__col-span-12\n govgr-stack--row\n govgr-stack--row-reverse\n govgr-stack--column\n govgr-stack--column-reverse\n govgr-stack--justify-flex-start\n govgr-stack--justify-flex-end\n govgr-stack--justify-center\n govgr-stack--justify-space-between\n govgr-stack--justify-space-around\n govgr-stack--justify-space-evenly \n govgr-stack--align-stretch\n govgr-stack--align-flex-start\n govgr-stack--align-flex-end\n govgr-stack--align-center\n govgr-stack--align-baseline\n govgr-stack--content-flex-start\n govgr-stack--content-flex-end\n govgr-stack--content-center\n govgr-stack--content-space-between\n govgr-stack--content-space-around\n govgr-stack--content-space-evenly \n govgr-notification-banner--info\n govgr-notification-banner--success\n govgr-notification-banner--warning\n govgr-notification-banner--error\n govgr-input--width-2-char\n govgr-input--width-3-char\n govgr-input--width-4-char\n govgr-input--width-5-char\n govgr-input--width-10-char\n govgr-input--width-20-char\n govgr-!-width-one-quarter\n govgr-!-width-one-third\n govgr-!-width-one-half\n govgr-!-width-two-thirds\n govgr-!-width-three-quarters\n govgr-!-width-one-third\n govgr-!-width-one-half\n govgr-!-width-two-thirds\n govgr-!-width-three-quarters\n govgr-!-width-full\n govgr-table__caption--sm\n govgr-table__caption--md\n govgr-table__caption--lg\n govgr-table__caption--xl\n govgr-task-list__content__tag--primary\n govgr-task-list__content__tag--secondary\n govgr-task-list__content__tag--info\n govgr-svg-icon--xs\n govgr-svg-icon--sm\n govgr-svg-icon--md\n govgr-svg-icon--lg\n govgr-svg-icon--xl\n govgr-caption-md\n govgr-caption-lg\n govgr-caption-xl\n govgr-heading-xs\n govgr-heading-sm\n govgr-heading-md\n govgr-heading-lg\n govgr-heading-xl\n "
|
|
14
|
+
className: "\n govgr-m-0 \n govgr-mt-0 \n govgr-mb-0 \n govgr-mr-0 \n govgr-ml-0 \n govgr-p-0 \n govgr-pt-0 \n govgr-pb-0 \n govgr-pr-0 \n govgr-pl-0 \n govgr-m-1 \n govgr-mt-1 \n govgr-mb-1 \n govgr-mr-1 \n govgr-ml-1 \n govgr-p-1 \n govgr-pt-1 \n govgr-pb-1 \n govgr-pr-1 \n govgr-pl-1 \n govgr-m-2 \n govgr-mt-2 \n govgr-mb-2 \n govgr-mr-2 \n govgr-ml-2 \n govgr-p-2 \n govgr-pt-2 \n govgr-pb-2 \n govgr-pr-2 \n govgr-pl-2 \n govgr-m-3 \n govgr-mt-3 \n govgr-mb-3 \n govgr-mr-3 \n govgr-ml-3 \n govgr-p-3 \n govgr-pt-3 \n govgr-pb-3 \n govgr-pr-3 \n govgr-pl-3 \n govgr-m-4 \n govgr-mt-4 \n govgr-mb-4 \n govgr-mr-4 \n govgr-ml-4 \n govgr-p-4 \n govgr-pt-4 \n govgr-pb-4 \n govgr-pr-4 \n govgr-pl-4 \n govgr-m-5 \n govgr-mt-5 \n govgr-mb-5 \n govgr-mr-5 \n govgr-ml-5 \n govgr-p-5 \n govgr-pt-5 \n govgr-pb-5 \n govgr-pr-5 \n govgr-pl-5 \n govgr-m-6 \n govgr-mt-6 \n govgr-mb-6 \n govgr-mr-6 \n govgr-ml-6 \n govgr-p-6 \n govgr-pt-6 \n govgr-pb-6 \n govgr-pr-6 \n govgr-pl-6 \n govgr-m-7 \n govgr-mt-7 \n govgr-mb-7 \n govgr-mr-7 \n govgr-ml-7 \n govgr-p-7 \n govgr-pt-7 \n govgr-pb-7 \n govgr-pr-7 \n govgr-pl-7 \n govgr-m-8 \n govgr-mt-8 \n govgr-mb-8 \n govgr-mr-8 \n govgr-ml-8 \n govgr-m-9 \n govgr-mt-9 \n govgr-mb-9 \n govgr-mr-9 \n govgr-ml-9 \n govgr-m-10 \n govgr-mt-10 \n govgr-mb-10 \n govgr-mr-10 \n govgr-ml-10 \n govgr-m-11 \n govgr-mt-11 \n govgr-mb-11 \n govgr-mr-11 \n govgr-ml-11 \n govgr-m-12 \n govgr-mt-12 \n govgr-mb-12 \n govgr-mr-12 \n govgr-ml-12 \n govgr-p-8 \n govgr-pt-8 \n govgr-pb-8 \n govgr-pr-8 \n govgr-pl-8 \n govgr-p-9 \n govgr-pt-9 \n govgr-pb-9 \n govgr-pr-9 \n govgr-pl-9 \n govgr-p-10\n govgr-pt-10\n govgr-pb-10\n govgr-pr-10\n govgr-pl-10\n govgr-p-11\n govgr-pt-11\n govgr-pb-11\n govgr-pr-11\n govgr-pl-11\n govgr-p-12\n govgr-pt-12\n govgr-pb-12\n govgr-pr-12\n govgr-pl-12\n govgr-gap-1\n govgr-gap-2\n govgr-gap-4\n govgr-gap-6\n govgr-gap-8\n govgr-gap-10\n govgr-gap-12\n govgr-gap-xs-1\n govgr-gap-xs-2\n govgr-gap-xs-4\n govgr-gap-xs-5\n govgr-gap-xs-6\n govgr-gap-xs-8\n govgr-gap-xs-10\n govgr-gap-xs-12\n govgr-gap-sm-1\n govgr-gap-sm-2\n govgr-gap-sm-4\n govgr-gap-sm-5\n govgr-gap-sm-6\n govgr-gap-sm-8\n govgr-gap-sm-10\n govgr-gap-sm-12\n govgr-gap-md-1\n govgr-gap-md-2\n govgr-gap-md-4\n govgr-gap-md-5\n govgr-gap-md-6\n govgr-gap-md-8\n govgr-gap-md-10\n govgr-gap-md-12\n govgr-gap-lg-1\n govgr-gap-lg-2\n govgr-gap-lg-4\n govgr-gap-lg-5\n govgr-gap-lg-6\n govgr-gap-lg-8\n govgr-gap-lg-10\n govgr-gap-lg-12\n govgr-gap-xl-1\n govgr-gap-xl-2\n govgr-gap-xl-4\n govgr-gap-xl-5\n govgr-gap-xl-6\n govgr-gap-xl-8\n govgr-gap-xl-10\n govgr-gap-xl-12\n govgr-!-font-size-14\n govgr-!-font-size-16\n govgr-!-font-size-19\n govgr-!-font-size-24\n govgr-!-font-size-30\n govgr-!-font-size-36\n govgr-!-font-size-48\n govgr-!-font-size-72\n govgr-!-font-weight-regular\n govgr-!-font-weight-bold\n govgr-print-hidden\n govgr-svg-icon--arrow\n govgr-svg-icon--burger\n govgr-svg-icon--burger--active\n govgr-svg-icon--caret\n govgr-svg-icon--check\n govgr-svg-icon--close\n govgr-svg-icon--globe\n govgr-svg-icon--moreVert\n govgr-svg-icon--uncheck\n xs:govgr-grid__col-span-1\n xs:govgr-grid__col-span-2\n xs:govgr-grid__col-span-3\n xs:govgr-grid__col-span-4\n xs:govgr-grid__col-span-5\n xs:govgr-grid__col-span-6\n xs:govgr-grid__col-span-7\n xs:govgr-grid__col-span-8\n xs:govgr-grid__col-span-9\n xs:govgr-grid__col-span-10\n xs:govgr-grid__col-span-11\n xs:govgr-grid__col-span-12\n sm:govgr-grid__col-span-1\n sm:govgr-grid__col-span-2\n sm:govgr-grid__col-span-3\n sm:govgr-grid__col-span-4\n sm:govgr-grid__col-span-5\n sm:govgr-grid__col-span-6\n sm:govgr-grid__col-span-7\n sm:govgr-grid__col-span-8\n sm:govgr-grid__col-span-9\n sm:govgr-grid__col-span-10\n sm:govgr-grid__col-span-11\n sm:govgr-grid__col-span-12\n md:govgr-grid__col-span-1\n md:govgr-grid__col-span-2\n md:govgr-grid__col-span-3\n md:govgr-grid__col-span-4\n md:govgr-grid__col-span-5\n md:govgr-grid__col-span-6\n md:govgr-grid__col-span-7\n md:govgr-grid__col-span-8\n md:govgr-grid__col-span-9\n md:govgr-grid__col-span-10\n md:govgr-grid__col-span-11\n md:govgr-grid__col-span-12\n lg:govgr-grid__col-span-1\n lg:govgr-grid__col-span-2\n lg:govgr-grid__col-span-3\n lg:govgr-grid__col-span-4\n lg:govgr-grid__col-span-5\n lg:govgr-grid__col-span-6\n lg:govgr-grid__col-span-7\n lg:govgr-grid__col-span-8\n lg:govgr-grid__col-span-9\n lg:govgr-grid__col-span-10\n lg:govgr-grid__col-span-11\n lg:govgr-grid__col-span-12\n govgr-stack--row\n govgr-stack--row-reverse\n govgr-stack--column\n govgr-stack--column-reverse\n govgr-stack--justify-flex-start\n govgr-stack--justify-flex-end\n govgr-stack--justify-center\n govgr-stack--justify-space-between\n govgr-stack--justify-space-around\n govgr-stack--justify-space-evenly \n govgr-stack--align-stretch\n govgr-stack--align-flex-start\n govgr-stack--align-flex-end\n govgr-stack--align-center\n govgr-stack--align-baseline\n govgr-stack--content-flex-start\n govgr-stack--content-flex-end\n govgr-stack--content-center\n govgr-stack--content-space-between\n govgr-stack--content-space-around\n govgr-stack--content-space-evenly \n govgr-notification-banner--info\n govgr-notification-banner--success\n govgr-notification-banner--warning\n govgr-notification-banner--error\n govgr-input--width-2-char\n govgr-input--width-3-char\n govgr-input--width-4-char\n govgr-input--width-5-char\n govgr-input--width-10-char\n govgr-input--width-20-char\n govgr-!-width-one-quarter\n govgr-!-width-one-third\n govgr-!-width-one-half\n govgr-!-width-two-thirds\n govgr-!-width-three-quarters\n govgr-!-width-one-third\n govgr-!-width-one-half\n govgr-!-width-two-thirds\n govgr-!-width-three-quarters\n govgr-!-width-full\n govgr-table__caption--sm\n govgr-table__caption--md\n govgr-table__caption--lg\n govgr-table__caption--xl\n govgr-task-list__content__tag--primary\n govgr-task-list__content__tag--secondary\n govgr-task-list__content__tag--info\n govgr-svg-icon--xs\n govgr-svg-icon--sm\n govgr-svg-icon--md\n govgr-svg-icon--lg\n govgr-svg-icon--xl\n govgr-caption-md\n govgr-caption-lg\n govgr-caption-xl\n govgr-heading-xs\n govgr-heading-sm\n govgr-heading-md\n govgr-heading-lg\n govgr-heading-xl\n govgr-image-logo--light\n govgr-image-logo--dark\n "
|
|
15
15
|
});
|
|
16
16
|
}
|
|
17
17
|
|
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
+
exports[`renders the Blockquote with dense props 1`] = `
|
|
4
|
+
<ForwardRef(Blockquote)
|
|
5
|
+
dense={true}
|
|
6
|
+
>
|
|
7
|
+
<ForwardRef(Base)
|
|
8
|
+
as="blockquote"
|
|
9
|
+
className="govgr-blockquote--dense govgr-blockquote"
|
|
10
|
+
>
|
|
11
|
+
<blockquote
|
|
12
|
+
className="govgr-blockquote--dense govgr-blockquote"
|
|
13
|
+
>
|
|
14
|
+
hello
|
|
15
|
+
</blockquote>
|
|
16
|
+
</ForwardRef(Base)>
|
|
17
|
+
</ForwardRef(Blockquote)>
|
|
18
|
+
`;
|
|
19
|
+
|
|
3
20
|
exports[`renders the Blockquote with no props 1`] = `
|
|
4
21
|
<ForwardRef(Blockquote)>
|
|
5
22
|
<ForwardRef(Base)
|