@digigov/react-core 1.0.0-8ae63a77 → 1.0.0-8bbf3ef2
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/AccessibilityMenuHeaderButton/index.d.ts +1 -1
- package/BottomInfo/__snapshots__/index.test.tsx.snap +7 -2
- package/BottomInfoContainer/__snapshots__/index.test.tsx.snap +7 -2
- package/Button/__snapshots__/index.test.tsx.snap +18 -0
- package/Button/index.d.ts +8 -1
- package/Button/index.js +3 -2
- package/Button/index.test.js +17 -9
- package/Checkbox/__snapshots__/index.test.tsx.snap +76 -0
- package/Checkbox/index.d.ts +8 -1
- package/Checkbox/index.js +3 -2
- package/Checkbox/index.test.js +8 -0
- package/CloseButton/__snapshots__/index.test.tsx.snap +53 -0
- package/CloseButton/index.d.ts +7 -1
- package/CloseButton/index.js +4 -3
- package/CloseButton/index.test.js +8 -0
- package/Container/__snapshots__/index.test.tsx.snap +14 -4
- package/CopyToClipboardContainer/__snapshots__/index.spec.tsx.snap +21 -0
- package/CopyToClipboardContainer/index.d.ts +9 -1
- package/CopyToClipboardContainer/index.js +3 -2
- package/CopyToClipboardContainer/index.spec.js +8 -0
- package/DateInputContainer/__snapshots__/index.test.tsx.snap +17 -0
- package/DateInputContainer/index.d.ts +8 -1
- package/DateInputContainer/index.js +4 -3
- package/DateInputContainer/index.test.js +8 -0
- package/ErrorSummary/__snapshots__/index.test.tsx.snap +39 -0
- package/ErrorSummary/index.d.ts +8 -1
- package/ErrorSummary/index.js +4 -2
- package/ErrorSummary/index.test.js +8 -0
- package/ImageLogo/__snapshots__/index.test.tsx.snap +5 -3
- package/ModalContainer/index.d.ts +8 -1
- package/ModalContainer/index.js +3 -2
- package/Nav/__snapshots__/index.test.tsx.snap +91 -4
- package/Nav/index.d.ts +30 -15
- package/Nav/index.js +18 -9
- package/Nav/index.test.js +42 -0
- package/NavListItemAction/index.d.ts +1 -1
- package/NavListItemButton/index.d.ts +1 -1
- package/NavMenuContainer/__snapshots__/index.test.tsx.snap +104 -0
- package/NavMenuContainer/index.test.js +24 -0
- package/NotificationBannerContainer/__snapshots__/index.test.tsx.snap +23 -0
- package/NotificationBannerContainer/index.d.ts +8 -1
- package/NotificationBannerContainer/index.js +3 -2
- package/NotificationBannerContainer/index.test.js +8 -0
- package/RadioContainer/__snapshots__/index.test.tsx.snap +17 -0
- package/RadioContainer/index.d.ts +8 -1
- package/RadioContainer/index.js +5 -4
- package/RadioContainer/index.test.js +8 -0
- package/RadioItem/__snapshots__/index.test.tsx.snap +2 -2
- package/SearchButton/index.d.ts +1 -1
- package/SelectContainer/__snapshots__/index.test.tsx.snap +17 -0
- package/SelectContainer/index.d.ts +8 -1
- package/SelectContainer/index.js +4 -3
- package/SelectContainer/index.test.js +9 -1
- package/SingleCharacterInput/index.d.ts +1 -1
- package/StepNav/__snapshots__/index.test.tsx.snap +2 -2
- package/Tabs/index.d.ts +2 -1
- package/Tabs/index.js +4 -3
- package/TaskList/__snapshots__/index.test.tsx.snap +2 -2
- package/TextArea/__snapshots__/index.test.tsx.snap +19 -0
- package/TextArea/index.d.ts +8 -1
- package/TextArea/index.js +6 -5
- package/TextArea/index.test.js +8 -0
- package/TextInput/__snapshots__/index.test.tsx.snap +17 -0
- package/TextInput/index.d.ts +8 -1
- package/TextInput/index.js +3 -2
- package/TextInput/index.test.js +91 -83
- package/WarningText/__snapshots__/index.test.tsx.snap +31 -0
- package/WarningText/index.d.ts +8 -1
- package/WarningText/index.js +3 -2
- package/WarningText/index.test.js +8 -0
- package/es/BottomInfo/__snapshots__/index.test.tsx.snap +7 -2
- package/es/BottomInfoContainer/__snapshots__/index.test.tsx.snap +7 -2
- package/es/Button/__snapshots__/index.test.tsx.snap +18 -0
- package/es/Button/index.js +3 -2
- package/es/Button/index.test.js +17 -9
- package/es/Checkbox/__snapshots__/index.test.tsx.snap +76 -0
- package/es/Checkbox/index.js +3 -2
- package/es/Checkbox/index.test.js +8 -0
- package/es/CloseButton/__snapshots__/index.test.tsx.snap +53 -0
- package/es/CloseButton/index.js +4 -3
- package/es/CloseButton/index.test.js +8 -0
- package/es/Container/__snapshots__/index.test.tsx.snap +14 -4
- package/es/CopyToClipboardContainer/__snapshots__/index.spec.tsx.snap +21 -0
- package/es/CopyToClipboardContainer/index.js +3 -2
- package/es/CopyToClipboardContainer/index.spec.js +8 -0
- package/es/DateInputContainer/__snapshots__/index.test.tsx.snap +17 -0
- package/es/DateInputContainer/index.js +4 -3
- package/es/DateInputContainer/index.test.js +8 -0
- package/es/ErrorSummary/__snapshots__/index.test.tsx.snap +39 -0
- package/es/ErrorSummary/index.js +4 -2
- package/es/ErrorSummary/index.test.js +8 -0
- package/es/ImageLogo/__snapshots__/index.test.tsx.snap +5 -3
- package/es/ModalContainer/index.js +3 -2
- package/es/Nav/__snapshots__/index.test.tsx.snap +91 -4
- package/es/Nav/index.js +17 -9
- package/es/Nav/index.test.js +42 -0
- package/es/NavMenuContainer/__snapshots__/index.test.tsx.snap +104 -0
- package/es/NavMenuContainer/index.test.js +24 -0
- package/es/NotificationBannerContainer/__snapshots__/index.test.tsx.snap +23 -0
- package/es/NotificationBannerContainer/index.js +3 -2
- package/es/NotificationBannerContainer/index.test.js +8 -0
- package/es/RadioContainer/__snapshots__/index.test.tsx.snap +17 -0
- package/es/RadioContainer/index.js +5 -4
- package/es/RadioContainer/index.test.js +8 -0
- package/es/RadioItem/__snapshots__/index.test.tsx.snap +2 -2
- package/es/SelectContainer/__snapshots__/index.test.tsx.snap +17 -0
- package/es/SelectContainer/index.js +4 -3
- package/es/SelectContainer/index.test.js +9 -1
- package/es/StepNav/__snapshots__/index.test.tsx.snap +2 -2
- package/es/Tabs/index.js +4 -3
- package/es/TaskList/__snapshots__/index.test.tsx.snap +2 -2
- package/es/TextArea/__snapshots__/index.test.tsx.snap +19 -0
- package/es/TextArea/index.js +6 -5
- package/es/TextArea/index.test.js +8 -0
- package/es/TextInput/__snapshots__/index.test.tsx.snap +17 -0
- package/es/TextInput/index.js +3 -2
- package/es/TextInput/index.test.js +91 -83
- package/es/WarningText/__snapshots__/index.test.tsx.snap +31 -0
- package/es/WarningText/index.js +3 -2
- package/es/WarningText/index.test.js +8 -0
- package/esm/BottomInfo/__snapshots__/index.test.tsx.snap +7 -2
- package/esm/BottomInfoContainer/__snapshots__/index.test.tsx.snap +7 -2
- package/esm/Button/__snapshots__/index.test.tsx.snap +18 -0
- package/esm/Button/index.js +3 -2
- package/esm/Button/index.test.js +17 -9
- package/esm/Checkbox/__snapshots__/index.test.tsx.snap +76 -0
- package/esm/Checkbox/index.js +3 -2
- package/esm/Checkbox/index.test.js +8 -0
- package/esm/CloseButton/__snapshots__/index.test.tsx.snap +53 -0
- package/esm/CloseButton/index.js +4 -3
- package/esm/CloseButton/index.test.js +8 -0
- package/esm/Container/__snapshots__/index.test.tsx.snap +14 -4
- package/esm/CopyToClipboardContainer/__snapshots__/index.spec.tsx.snap +21 -0
- package/esm/CopyToClipboardContainer/index.js +3 -2
- package/esm/CopyToClipboardContainer/index.spec.js +8 -0
- package/esm/DateInputContainer/__snapshots__/index.test.tsx.snap +17 -0
- package/esm/DateInputContainer/index.js +4 -3
- package/esm/DateInputContainer/index.test.js +8 -0
- package/esm/ErrorSummary/__snapshots__/index.test.tsx.snap +39 -0
- package/esm/ErrorSummary/index.js +4 -2
- package/esm/ErrorSummary/index.test.js +8 -0
- package/esm/ImageLogo/__snapshots__/index.test.tsx.snap +5 -3
- package/esm/ModalContainer/index.js +3 -2
- package/esm/Nav/__snapshots__/index.test.tsx.snap +91 -4
- package/esm/Nav/index.js +17 -9
- package/esm/Nav/index.test.js +42 -0
- package/esm/NavMenuContainer/__snapshots__/index.test.tsx.snap +104 -0
- package/esm/NavMenuContainer/index.test.js +24 -0
- package/esm/NotificationBannerContainer/__snapshots__/index.test.tsx.snap +23 -0
- package/esm/NotificationBannerContainer/index.js +3 -2
- package/esm/NotificationBannerContainer/index.test.js +8 -0
- package/esm/RadioContainer/__snapshots__/index.test.tsx.snap +17 -0
- package/esm/RadioContainer/index.js +5 -4
- package/esm/RadioContainer/index.test.js +8 -0
- package/esm/RadioItem/__snapshots__/index.test.tsx.snap +2 -2
- package/esm/SelectContainer/__snapshots__/index.test.tsx.snap +17 -0
- package/esm/SelectContainer/index.js +4 -3
- package/esm/SelectContainer/index.test.js +9 -1
- package/esm/StepNav/__snapshots__/index.test.tsx.snap +2 -2
- package/esm/Tabs/index.js +4 -3
- package/esm/TaskList/__snapshots__/index.test.tsx.snap +2 -2
- package/esm/TextArea/__snapshots__/index.test.tsx.snap +19 -0
- package/esm/TextArea/index.js +6 -5
- package/esm/TextArea/index.test.js +8 -0
- package/esm/TextInput/__snapshots__/index.test.tsx.snap +17 -0
- package/esm/TextInput/index.js +3 -2
- package/esm/TextInput/index.test.js +91 -83
- package/esm/WarningText/__snapshots__/index.test.tsx.snap +31 -0
- package/esm/WarningText/index.js +3 -2
- package/esm/WarningText/index.test.js +8 -0
- package/esm/index.js +1 -1
- package/package.json +3 -3
- package/src/BottomInfo/__snapshots__/index.test.tsx.snap +7 -2
- package/src/BottomInfoContainer/__snapshots__/index.test.tsx.snap +7 -2
- package/src/Button/__snapshots__/index.test.tsx.snap +18 -0
- package/src/Button/index.test.tsx +3 -0
- package/src/Button/index.tsx +9 -0
- package/src/Checkbox/__snapshots__/index.test.tsx.snap +76 -0
- package/src/Checkbox/index.test.tsx +10 -0
- package/src/Checkbox/index.tsx +9 -1
- package/src/CloseButton/__snapshots__/index.test.tsx.snap +53 -0
- package/src/CloseButton/index.test.tsx +3 -0
- package/src/CloseButton/index.tsx +10 -3
- package/src/Container/__snapshots__/index.test.tsx.snap +14 -4
- package/src/CopyToClipboardContainer/__snapshots__/index.spec.tsx.snap +21 -0
- package/src/CopyToClipboardContainer/index.spec.tsx +8 -2
- package/src/CopyToClipboardContainer/index.tsx +10 -1
- package/src/DateInputContainer/__snapshots__/index.test.tsx.snap +17 -0
- package/src/DateInputContainer/index.test.tsx +5 -0
- package/src/DateInputContainer/index.tsx +11 -2
- package/src/ErrorSummary/__snapshots__/index.test.tsx.snap +39 -0
- package/src/ErrorSummary/index.test.tsx +4 -0
- package/src/ErrorSummary/index.tsx +12 -5
- package/src/ImageLogo/__snapshots__/index.test.tsx.snap +5 -3
- package/src/ModalContainer/index.tsx +9 -1
- package/src/Nav/__snapshots__/index.test.tsx.snap +91 -4
- package/src/Nav/index.test.tsx +15 -0
- package/src/Nav/index.tsx +53 -20
- package/src/NavMenuContainer/__snapshots__/index.test.tsx.snap +104 -0
- package/src/NavMenuContainer/index.test.tsx +9 -0
- package/src/NotificationBannerContainer/__snapshots__/index.test.tsx.snap +23 -0
- package/src/NotificationBannerContainer/index.test.tsx +7 -0
- package/src/NotificationBannerContainer/index.tsx +9 -1
- package/src/RadioContainer/__snapshots__/index.test.tsx.snap +17 -0
- package/src/RadioContainer/index.test.tsx +3 -0
- package/src/RadioContainer/index.tsx +9 -1
- package/src/RadioItem/__snapshots__/index.test.tsx.snap +2 -2
- package/src/SelectContainer/__snapshots__/index.test.tsx.snap +17 -0
- package/src/SelectContainer/index.test.tsx +5 -0
- package/src/SelectContainer/index.tsx +11 -2
- package/src/StepNav/__snapshots__/index.test.tsx.snap +2 -2
- package/src/Tabs/index.tsx +5 -2
- package/src/TaskList/__snapshots__/index.test.tsx.snap +2 -2
- package/src/TextArea/__snapshots__/index.test.tsx.snap +19 -0
- package/src/TextArea/index.test.tsx +3 -0
- package/src/TextArea/index.tsx +11 -2
- package/src/TextInput/__snapshots__/index.test.tsx.snap +17 -0
- package/src/TextInput/index.test.tsx +3 -0
- package/src/TextInput/index.tsx +9 -0
- package/src/WarningText/__snapshots__/index.test.tsx.snap +31 -0
- package/src/WarningText/index.test.tsx +3 -0
- package/src/WarningText/index.tsx +9 -1
|
@@ -1,13 +1,100 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
+
exports[`renders the Nav with border prop 1`] = `
|
|
4
|
+
<ForwardRef(Nav)
|
|
5
|
+
border={true}
|
|
6
|
+
>
|
|
7
|
+
<ForwardRef(Base)
|
|
8
|
+
as="nav"
|
|
9
|
+
className="govgr-nav--border govgr-nav"
|
|
10
|
+
>
|
|
11
|
+
<nav
|
|
12
|
+
className="govgr-nav--border govgr-nav"
|
|
13
|
+
>
|
|
14
|
+
hello
|
|
15
|
+
</nav>
|
|
16
|
+
</ForwardRef(Base)>
|
|
17
|
+
</ForwardRef(Nav)>
|
|
18
|
+
`;
|
|
19
|
+
|
|
20
|
+
exports[`renders the Nav with drawer="always" prop 1`] = `
|
|
21
|
+
<ForwardRef(Nav)
|
|
22
|
+
drawer="always"
|
|
23
|
+
>
|
|
24
|
+
<ForwardRef(Base)
|
|
25
|
+
as="nav"
|
|
26
|
+
className="govgr-nav--drawer govgr-nav--hidden govgr-nav--border govgr-nav"
|
|
27
|
+
>
|
|
28
|
+
<nav
|
|
29
|
+
className="govgr-nav--drawer govgr-nav--hidden govgr-nav--border govgr-nav"
|
|
30
|
+
>
|
|
31
|
+
hello
|
|
32
|
+
</nav>
|
|
33
|
+
</ForwardRef(Base)>
|
|
34
|
+
</ForwardRef(Nav)>
|
|
35
|
+
`;
|
|
36
|
+
|
|
37
|
+
exports[`renders the Nav with drawer="always", border and open props 1`] = `
|
|
38
|
+
<ForwardRef(Nav)
|
|
39
|
+
border={true}
|
|
40
|
+
drawer="always"
|
|
41
|
+
open={true}
|
|
42
|
+
>
|
|
43
|
+
<ForwardRef(Base)
|
|
44
|
+
as="nav"
|
|
45
|
+
className="govgr-nav--drawer govgr-nav--border govgr-nav"
|
|
46
|
+
>
|
|
47
|
+
<nav
|
|
48
|
+
className="govgr-nav--drawer govgr-nav--border govgr-nav"
|
|
49
|
+
>
|
|
50
|
+
hello
|
|
51
|
+
</nav>
|
|
52
|
+
</ForwardRef(Base)>
|
|
53
|
+
</ForwardRef(Nav)>
|
|
54
|
+
`;
|
|
55
|
+
|
|
56
|
+
exports[`renders the Nav with drawer="mdDown" prop 1`] = `
|
|
57
|
+
<ForwardRef(Nav)
|
|
58
|
+
drawer="mdDown"
|
|
59
|
+
>
|
|
60
|
+
<ForwardRef(Base)
|
|
61
|
+
as="nav"
|
|
62
|
+
className="govgr-nav--drawer-mdDown govgr-nav--hidden govgr-nav--border govgr-nav"
|
|
63
|
+
>
|
|
64
|
+
<nav
|
|
65
|
+
className="govgr-nav--drawer-mdDown govgr-nav--hidden govgr-nav--border govgr-nav"
|
|
66
|
+
>
|
|
67
|
+
hello
|
|
68
|
+
</nav>
|
|
69
|
+
</ForwardRef(Base)>
|
|
70
|
+
</ForwardRef(Nav)>
|
|
71
|
+
`;
|
|
72
|
+
|
|
73
|
+
exports[`renders the Nav with drawer="never" prop 1`] = `
|
|
74
|
+
<ForwardRef(Nav)
|
|
75
|
+
drawer="never"
|
|
76
|
+
>
|
|
77
|
+
<ForwardRef(Base)
|
|
78
|
+
as="nav"
|
|
79
|
+
className="govgr-nav--border govgr-nav"
|
|
80
|
+
>
|
|
81
|
+
<nav
|
|
82
|
+
className="govgr-nav--border govgr-nav"
|
|
83
|
+
>
|
|
84
|
+
hello
|
|
85
|
+
</nav>
|
|
86
|
+
</ForwardRef(Base)>
|
|
87
|
+
</ForwardRef(Nav)>
|
|
88
|
+
`;
|
|
89
|
+
|
|
3
90
|
exports[`renders the Nav with no props 1`] = `
|
|
4
91
|
<ForwardRef(Nav)>
|
|
5
92
|
<ForwardRef(Base)
|
|
6
93
|
as="nav"
|
|
7
|
-
className="govgr-nav--border govgr-nav
|
|
94
|
+
className="govgr-nav--border govgr-nav"
|
|
8
95
|
>
|
|
9
96
|
<nav
|
|
10
|
-
className="govgr-nav--border govgr-nav
|
|
97
|
+
className="govgr-nav--border govgr-nav"
|
|
11
98
|
>
|
|
12
99
|
hello
|
|
13
100
|
</nav>
|
|
@@ -21,10 +108,10 @@ exports[`renders the Nav with open prop 1`] = `
|
|
|
21
108
|
>
|
|
22
109
|
<ForwardRef(Base)
|
|
23
110
|
as="nav"
|
|
24
|
-
className="govgr-nav--border govgr-nav
|
|
111
|
+
className="govgr-nav--border govgr-nav"
|
|
25
112
|
>
|
|
26
113
|
<nav
|
|
27
|
-
className="govgr-nav--border govgr-nav
|
|
114
|
+
className="govgr-nav--border govgr-nav"
|
|
28
115
|
>
|
|
29
116
|
hello
|
|
30
117
|
</nav>
|
package/es/Nav/index.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["className", "open", "
|
|
3
|
+
var _excluded = ["className", "open", "drawer", "onClose", "closeButtonLabel", "border", "children"];
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import Base from '@digigov/react-core/Base';
|
|
7
|
+
import CloseButton from '@digigov/react-core/CloseButton';
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* Nav is mainly used under the Header.
|
|
@@ -11,12 +12,11 @@ import Base from '@digigov/react-core/Base';
|
|
|
11
12
|
*/
|
|
12
13
|
export var Nav = /*#__PURE__*/React.forwardRef(function Nav(_ref, ref) {
|
|
13
14
|
var className = _ref.className,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
_ref$
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
fixed = _ref$fixed === void 0 ? true : _ref$fixed,
|
|
15
|
+
open = _ref.open,
|
|
16
|
+
_ref$drawer = _ref.drawer,
|
|
17
|
+
drawer = _ref$drawer === void 0 ? 'never' : _ref$drawer,
|
|
18
|
+
onClose = _ref.onClose,
|
|
19
|
+
closeButtonLabel = _ref.closeButtonLabel,
|
|
20
20
|
_ref$border = _ref.border,
|
|
21
21
|
border = _ref$border === void 0 ? true : _ref$border,
|
|
22
22
|
children = _ref.children,
|
|
@@ -25,7 +25,15 @@ export var Nav = /*#__PURE__*/React.forwardRef(function Nav(_ref, ref) {
|
|
|
25
25
|
return /*#__PURE__*/React.createElement(Base, _extends({
|
|
26
26
|
as: "nav",
|
|
27
27
|
ref: ref,
|
|
28
|
-
className: clsx(className,
|
|
29
|
-
}, props),
|
|
28
|
+
className: clsx(className, drawer === 'smDown' && 'govgr-nav--drawer-smDown', drawer === 'mdDown' && 'govgr-nav--drawer-mdDown', drawer === 'lgDown' && 'govgr-nav--drawer-lgDown', drawer === 'always' && 'govgr-nav--drawer', drawer != 'never' && !open && 'govgr-nav--hidden', border && 'govgr-nav--border', true && 'govgr-nav')
|
|
29
|
+
}, props), onClose && drawer !== 'never' && /*#__PURE__*/React.createElement(CloseButton, {
|
|
30
|
+
smUpHidden: drawer === 'smDown',
|
|
31
|
+
mdUpHidden: drawer === 'mdDown',
|
|
32
|
+
lgUpHidden: drawer === 'lgDown',
|
|
33
|
+
onClick: function onClick(e) {
|
|
34
|
+
return onClose(e);
|
|
35
|
+
},
|
|
36
|
+
label: closeButtonLabel
|
|
37
|
+
}), children);
|
|
30
38
|
});
|
|
31
39
|
export default Nav;
|
package/es/Nav/index.test.js
CHANGED
|
@@ -14,4 +14,46 @@ var _ref2 = /*#__PURE__*/React.createElement(Nav, {
|
|
|
14
14
|
|
|
15
15
|
it('renders the Nav with open prop', function () {
|
|
16
16
|
expect(mount(_ref2)).toMatchSnapshot();
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
var _ref3 = /*#__PURE__*/React.createElement(Nav, {
|
|
20
|
+
border: true
|
|
21
|
+
}, "hello");
|
|
22
|
+
|
|
23
|
+
it('renders the Nav with border prop', function () {
|
|
24
|
+
expect(mount(_ref3)).toMatchSnapshot();
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
var _ref4 = /*#__PURE__*/React.createElement(Nav, {
|
|
28
|
+
drawer: "never"
|
|
29
|
+
}, "hello");
|
|
30
|
+
|
|
31
|
+
it('renders the Nav with drawer="never" prop', function () {
|
|
32
|
+
expect(mount(_ref4)).toMatchSnapshot();
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
var _ref5 = /*#__PURE__*/React.createElement(Nav, {
|
|
36
|
+
drawer: "mdDown"
|
|
37
|
+
}, "hello");
|
|
38
|
+
|
|
39
|
+
it('renders the Nav with drawer="mdDown" prop', function () {
|
|
40
|
+
expect(mount(_ref5)).toMatchSnapshot();
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
var _ref6 = /*#__PURE__*/React.createElement(Nav, {
|
|
44
|
+
drawer: "always"
|
|
45
|
+
}, "hello");
|
|
46
|
+
|
|
47
|
+
it('renders the Nav with drawer="always" prop', function () {
|
|
48
|
+
expect(mount(_ref6)).toMatchSnapshot();
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
var _ref7 = /*#__PURE__*/React.createElement(Nav, {
|
|
52
|
+
open: true,
|
|
53
|
+
border: true,
|
|
54
|
+
drawer: "always"
|
|
55
|
+
}, "hello");
|
|
56
|
+
|
|
57
|
+
it('renders the Nav with drawer="always", border and open props', function () {
|
|
58
|
+
expect(mount(_ref7)).toMatchSnapshot();
|
|
17
59
|
});
|
|
@@ -1,5 +1,109 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
+
exports[`renders the NavMenuContainer with active prop 1`] = `
|
|
4
|
+
<ForwardRef(NavMenuContainer)
|
|
5
|
+
active={true}
|
|
6
|
+
>
|
|
7
|
+
<ForwardRef(Base)
|
|
8
|
+
aria-hidden={false}
|
|
9
|
+
as="div"
|
|
10
|
+
className="govgr-nav-menu--horizontal govgr-nav-menu"
|
|
11
|
+
>
|
|
12
|
+
<div
|
|
13
|
+
aria-hidden={false}
|
|
14
|
+
className="govgr-nav-menu--horizontal govgr-nav-menu"
|
|
15
|
+
>
|
|
16
|
+
<ForwardRef(Container)
|
|
17
|
+
grid={true}
|
|
18
|
+
>
|
|
19
|
+
<ForwardRef(Base)
|
|
20
|
+
as="div"
|
|
21
|
+
className="govgr-container"
|
|
22
|
+
>
|
|
23
|
+
<div
|
|
24
|
+
className="govgr-container"
|
|
25
|
+
>
|
|
26
|
+
<div
|
|
27
|
+
className="govgr-main-wrapper"
|
|
28
|
+
>
|
|
29
|
+
hello
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
</ForwardRef(Base)>
|
|
33
|
+
</ForwardRef(Container)>
|
|
34
|
+
</div>
|
|
35
|
+
</ForwardRef(Base)>
|
|
36
|
+
</ForwardRef(NavMenuContainer)>
|
|
37
|
+
`;
|
|
38
|
+
|
|
39
|
+
exports[`renders the NavMenuContainer with layout="horizontal" prop 1`] = `
|
|
40
|
+
<ForwardRef(NavMenuContainer)
|
|
41
|
+
layout="horizontal"
|
|
42
|
+
>
|
|
43
|
+
<ForwardRef(Base)
|
|
44
|
+
aria-hidden={true}
|
|
45
|
+
as="div"
|
|
46
|
+
className="govgr-nav-menu--horizontal govgr-nav-menu--hidden govgr-nav-menu"
|
|
47
|
+
>
|
|
48
|
+
<div
|
|
49
|
+
aria-hidden={true}
|
|
50
|
+
className="govgr-nav-menu--horizontal govgr-nav-menu--hidden govgr-nav-menu"
|
|
51
|
+
>
|
|
52
|
+
<ForwardRef(Container)
|
|
53
|
+
grid={true}
|
|
54
|
+
>
|
|
55
|
+
<ForwardRef(Base)
|
|
56
|
+
as="div"
|
|
57
|
+
className="govgr-container"
|
|
58
|
+
>
|
|
59
|
+
<div
|
|
60
|
+
className="govgr-container"
|
|
61
|
+
>
|
|
62
|
+
<div
|
|
63
|
+
className="govgr-main-wrapper"
|
|
64
|
+
>
|
|
65
|
+
hello
|
|
66
|
+
</div>
|
|
67
|
+
</div>
|
|
68
|
+
</ForwardRef(Base)>
|
|
69
|
+
</ForwardRef(Container)>
|
|
70
|
+
</div>
|
|
71
|
+
</ForwardRef(Base)>
|
|
72
|
+
</ForwardRef(NavMenuContainer)>
|
|
73
|
+
`;
|
|
74
|
+
|
|
75
|
+
exports[`renders the NavMenuContainer with layout="vertical" prop 1`] = `
|
|
76
|
+
<ForwardRef(NavMenuContainer)
|
|
77
|
+
layout="vertical"
|
|
78
|
+
>
|
|
79
|
+
<ForwardRef(Base)
|
|
80
|
+
aria-hidden={true}
|
|
81
|
+
as="div"
|
|
82
|
+
className="govgr-nav-menu--vertical govgr-nav-menu--hidden govgr-nav-menu"
|
|
83
|
+
>
|
|
84
|
+
<div
|
|
85
|
+
aria-hidden={true}
|
|
86
|
+
className="govgr-nav-menu--vertical govgr-nav-menu--hidden govgr-nav-menu"
|
|
87
|
+
>
|
|
88
|
+
<ForwardRef(Container)
|
|
89
|
+
grid={false}
|
|
90
|
+
>
|
|
91
|
+
<ForwardRef(Base)
|
|
92
|
+
as="div"
|
|
93
|
+
className="govgr-container"
|
|
94
|
+
>
|
|
95
|
+
<div
|
|
96
|
+
className="govgr-container"
|
|
97
|
+
>
|
|
98
|
+
hello
|
|
99
|
+
</div>
|
|
100
|
+
</ForwardRef(Base)>
|
|
101
|
+
</ForwardRef(Container)>
|
|
102
|
+
</div>
|
|
103
|
+
</ForwardRef(Base)>
|
|
104
|
+
</ForwardRef(NavMenuContainer)>
|
|
105
|
+
`;
|
|
106
|
+
|
|
3
107
|
exports[`renders the NavMenuContainer with no props 1`] = `
|
|
4
108
|
<ForwardRef(NavMenuContainer)>
|
|
5
109
|
<ForwardRef(Base)
|
|
@@ -6,4 +6,28 @@ var _ref = /*#__PURE__*/React.createElement(NavMenuContainer, null, "hello");
|
|
|
6
6
|
|
|
7
7
|
it('renders the NavMenuContainer with no props', function () {
|
|
8
8
|
expect(mount(_ref)).toMatchSnapshot();
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
var _ref2 = /*#__PURE__*/React.createElement(NavMenuContainer, {
|
|
12
|
+
active: true
|
|
13
|
+
}, "hello");
|
|
14
|
+
|
|
15
|
+
it('renders the NavMenuContainer with active prop', function () {
|
|
16
|
+
expect(mount(_ref2)).toMatchSnapshot();
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
var _ref3 = /*#__PURE__*/React.createElement(NavMenuContainer, {
|
|
20
|
+
layout: "vertical"
|
|
21
|
+
}, "hello");
|
|
22
|
+
|
|
23
|
+
it('renders the NavMenuContainer with layout="vertical" prop', function () {
|
|
24
|
+
expect(mount(_ref3)).toMatchSnapshot();
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
var _ref4 = /*#__PURE__*/React.createElement(NavMenuContainer, {
|
|
28
|
+
layout: "horizontal"
|
|
29
|
+
}, "hello");
|
|
30
|
+
|
|
31
|
+
it('renders the NavMenuContainer with layout="horizontal" prop', function () {
|
|
32
|
+
expect(mount(_ref4)).toMatchSnapshot();
|
|
9
33
|
});
|
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
+
exports[`renders the NotificationBannerContainer with dense=true 1`] = `
|
|
4
|
+
<ForwardRef(NotificationBannerContainer)
|
|
5
|
+
dense={true}
|
|
6
|
+
>
|
|
7
|
+
<ForwardRef(Base)
|
|
8
|
+
aria-labelledby="govgr-notification-banner-title"
|
|
9
|
+
as="div"
|
|
10
|
+
className="govgr-notification-banner--info govgr-notification-banner--dense govgr-notification-banner"
|
|
11
|
+
data-module="govgr-notification-banner"
|
|
12
|
+
role="region"
|
|
13
|
+
>
|
|
14
|
+
<div
|
|
15
|
+
aria-labelledby="govgr-notification-banner-title"
|
|
16
|
+
className="govgr-notification-banner--info govgr-notification-banner--dense govgr-notification-banner"
|
|
17
|
+
data-module="govgr-notification-banner"
|
|
18
|
+
role="region"
|
|
19
|
+
>
|
|
20
|
+
hello
|
|
21
|
+
</div>
|
|
22
|
+
</ForwardRef(Base)>
|
|
23
|
+
</ForwardRef(NotificationBannerContainer)>
|
|
24
|
+
`;
|
|
25
|
+
|
|
3
26
|
exports[`renders the NotificationBannerContainer with no props 1`] = `
|
|
4
27
|
<ForwardRef(NotificationBannerContainer)>
|
|
5
28
|
<ForwardRef(Base)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["variant", "className", "children"];
|
|
3
|
+
var _excluded = ["variant", "className", "dense", "children"];
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import Base from '@digigov/react-core/Base';
|
|
@@ -16,6 +16,7 @@ export var NotificationBannerContainer = /*#__PURE__*/React.forwardRef(function
|
|
|
16
16
|
var _ref$variant = _ref.variant,
|
|
17
17
|
variant = _ref$variant === void 0 ? 'info' : _ref$variant,
|
|
18
18
|
className = _ref.className,
|
|
19
|
+
dense = _ref.dense,
|
|
19
20
|
children = _ref.children,
|
|
20
21
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
21
22
|
|
|
@@ -25,7 +26,7 @@ export var NotificationBannerContainer = /*#__PURE__*/React.forwardRef(function
|
|
|
25
26
|
"aria-labelledby": "govgr-notification-banner-title",
|
|
26
27
|
"data-module": "govgr-notification-banner",
|
|
27
28
|
ref: ref,
|
|
28
|
-
className: clsx(className, variant !== undefined && "govgr-notification-banner--".concat(variant), true && 'govgr-notification-banner')
|
|
29
|
+
className: clsx(className, variant !== undefined && "govgr-notification-banner--".concat(variant), dense && 'govgr-notification-banner--dense', true && 'govgr-notification-banner')
|
|
29
30
|
}, props), children);
|
|
30
31
|
});
|
|
31
32
|
export default NotificationBannerContainer;
|
|
@@ -14,4 +14,12 @@ var _ref2 = /*#__PURE__*/React.createElement(NotificationBannerContainer, {
|
|
|
14
14
|
|
|
15
15
|
it('renders the NotificationBannerContainer with variant=success', function () {
|
|
16
16
|
expect(mount(_ref2)).toMatchSnapshot();
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
var _ref3 = /*#__PURE__*/React.createElement(NotificationBannerContainer, {
|
|
20
|
+
dense: true
|
|
21
|
+
}, "hello");
|
|
22
|
+
|
|
23
|
+
it('renders the NotificationBannerContainer with dense=true', function () {
|
|
24
|
+
expect(mount(_ref3)).toMatchSnapshot();
|
|
17
25
|
});
|
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
+
exports[`renders the RadioContainer with dense prop 1`] = `
|
|
4
|
+
<ForwardRef(RadioContainer)
|
|
5
|
+
dense={true}
|
|
6
|
+
>
|
|
7
|
+
<ForwardRef(Base)
|
|
8
|
+
as="div"
|
|
9
|
+
className="govgr-radios--dense govgr-radios"
|
|
10
|
+
>
|
|
11
|
+
<div
|
|
12
|
+
className="govgr-radios--dense govgr-radios"
|
|
13
|
+
>
|
|
14
|
+
hello
|
|
15
|
+
</div>
|
|
16
|
+
</ForwardRef(Base)>
|
|
17
|
+
</ForwardRef(RadioContainer)>
|
|
18
|
+
`;
|
|
19
|
+
|
|
3
20
|
exports[`renders the RadioContainer with layout=horizontal 1`] = `
|
|
4
21
|
<ForwardRef(RadioContainer)
|
|
5
22
|
layout="horizontal"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["
|
|
3
|
+
var _excluded = ["layout", "dense", "className", "children"];
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import Base from '@digigov/react-core/Base';
|
|
@@ -10,15 +10,16 @@ import Base from '@digigov/react-core/Base';
|
|
|
10
10
|
* It is used as parent component to wrap RadioItem component.
|
|
11
11
|
*/
|
|
12
12
|
export var RadioContainer = /*#__PURE__*/React.forwardRef(function RadioContainer(_ref, ref) {
|
|
13
|
-
var
|
|
13
|
+
var layout = _ref.layout,
|
|
14
|
+
dense = _ref.dense,
|
|
15
|
+
className = _ref.className,
|
|
14
16
|
children = _ref.children,
|
|
15
|
-
layout = _ref.layout,
|
|
16
17
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
17
18
|
|
|
18
19
|
return /*#__PURE__*/React.createElement(Base, _extends({
|
|
19
20
|
as: "div",
|
|
20
21
|
ref: ref,
|
|
21
|
-
className: clsx(className, layout === 'horizontal' && 'govgr-radios--horizontal', true && 'govgr-radios')
|
|
22
|
+
className: clsx(className, layout === 'horizontal' && 'govgr-radios--horizontal', dense && 'govgr-radios--dense', true && 'govgr-radios')
|
|
22
23
|
}, props), children);
|
|
23
24
|
});
|
|
24
25
|
export default RadioContainer;
|
|
@@ -14,4 +14,12 @@ var _ref2 = /*#__PURE__*/React.createElement(RadioContainer, {
|
|
|
14
14
|
|
|
15
15
|
it('renders the RadioContainer with layout=horizontal', function () {
|
|
16
16
|
expect(mount(_ref2)).toMatchSnapshot();
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
var _ref3 = /*#__PURE__*/React.createElement(RadioContainer, {
|
|
20
|
+
dense: true
|
|
21
|
+
}, "hello");
|
|
22
|
+
|
|
23
|
+
it('renders the RadioContainer with dense prop', function () {
|
|
24
|
+
expect(mount(_ref3)).toMatchSnapshot();
|
|
17
25
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`renders the RadioItem \`
|
|
3
|
+
exports[`renders the RadioItem \`dividerText\` props 1`] = `
|
|
4
4
|
<ForwardRef(RadioItem)
|
|
5
5
|
dividerText="ή"
|
|
6
6
|
>
|
|
@@ -88,7 +88,7 @@ exports[`renders the RadioItem value props 1`] = `
|
|
|
88
88
|
</ForwardRef(RadioItem)>
|
|
89
89
|
`;
|
|
90
90
|
|
|
91
|
-
exports[`renders the RadioItem with \`name\`, \`disabled\`, \`
|
|
91
|
+
exports[`renders the RadioItem with \`name\`, \`disabled\`, \`dividerText\` and \`value\` props 1`] = `
|
|
92
92
|
<ForwardRef(RadioItem)
|
|
93
93
|
disabled={true}
|
|
94
94
|
dividerText="ή"
|
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
+
exports[`renders the SelectContainer with dense prop 1`] = `
|
|
4
|
+
<ForwardRef(SelectContainer)
|
|
5
|
+
dense={true}
|
|
6
|
+
>
|
|
7
|
+
<ForwardRef(Base)
|
|
8
|
+
as="select"
|
|
9
|
+
className="govgr-select--dense govgr-select"
|
|
10
|
+
>
|
|
11
|
+
<select
|
|
12
|
+
className="govgr-select--dense govgr-select"
|
|
13
|
+
>
|
|
14
|
+
hello
|
|
15
|
+
</select>
|
|
16
|
+
</ForwardRef(Base)>
|
|
17
|
+
</ForwardRef(SelectContainer)>
|
|
18
|
+
`;
|
|
19
|
+
|
|
3
20
|
exports[`renders the SelectContainer with name and defaultValue 1`] = `
|
|
4
21
|
<ForwardRef(SelectContainer)
|
|
5
22
|
defaultValue="some-value"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["className", "children"];
|
|
3
|
+
var _excluded = ["dense", "className", "children"];
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import Base from '@digigov/react-core/Base';
|
|
@@ -10,14 +10,15 @@ import Base from '@digigov/react-core/Base';
|
|
|
10
10
|
* It is used as a parent component to wrap SelectOption component.
|
|
11
11
|
*/
|
|
12
12
|
export var SelectContainer = /*#__PURE__*/React.forwardRef(function SelectContainer(_ref, ref) {
|
|
13
|
-
var
|
|
13
|
+
var dense = _ref.dense,
|
|
14
|
+
className = _ref.className,
|
|
14
15
|
children = _ref.children,
|
|
15
16
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
16
17
|
|
|
17
18
|
return /*#__PURE__*/React.createElement(Base, _extends({
|
|
18
19
|
as: "select",
|
|
19
20
|
ref: ref,
|
|
20
|
-
className: clsx(className, true && 'govgr-select')
|
|
21
|
+
className: clsx(className, dense && 'govgr-select--dense', true && 'govgr-select')
|
|
21
22
|
}, props), children);
|
|
22
23
|
});
|
|
23
24
|
export default SelectContainer;
|
|
@@ -17,10 +17,18 @@ it('renders the SelectContainer with name props', function () {
|
|
|
17
17
|
});
|
|
18
18
|
|
|
19
19
|
var _ref3 = /*#__PURE__*/React.createElement(SelectContainer, {
|
|
20
|
+
dense: true
|
|
21
|
+
}, "hello");
|
|
22
|
+
|
|
23
|
+
it('renders the SelectContainer with dense prop', function () {
|
|
24
|
+
expect(mount(_ref3)).toMatchSnapshot();
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
var _ref4 = /*#__PURE__*/React.createElement(SelectContainer, {
|
|
20
28
|
name: 'some-name',
|
|
21
29
|
defaultValue: 'some-value'
|
|
22
30
|
}, "hello");
|
|
23
31
|
|
|
24
32
|
it('renders the SelectContainer with name and defaultValue', function () {
|
|
25
|
-
expect(mount(
|
|
33
|
+
expect(mount(_ref4)).toMatchSnapshot();
|
|
26
34
|
});
|
|
@@ -6,10 +6,10 @@ exports[`renders the StepNav with dense props 1`] = `
|
|
|
6
6
|
>
|
|
7
7
|
<ForwardRef(Base)
|
|
8
8
|
as="div"
|
|
9
|
-
className="govgr-step--dense govgr-step-nav"
|
|
9
|
+
className="govgr-step-nav--dense govgr-step-nav"
|
|
10
10
|
>
|
|
11
11
|
<div
|
|
12
|
-
className="govgr-step--dense govgr-step-nav"
|
|
12
|
+
className="govgr-step-nav--dense govgr-step-nav"
|
|
13
13
|
>
|
|
14
14
|
hello
|
|
15
15
|
</div>
|
package/es/Tabs/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["className", "children"];
|
|
3
|
+
var _excluded = ["direction", "className", "children"];
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import Base from '@digigov/react-core/Base';
|
|
@@ -10,14 +10,15 @@ import Base from '@digigov/react-core/Base';
|
|
|
10
10
|
* This component must contain TabsHeading, TabsList, and a list of TabsPanel component.
|
|
11
11
|
*/
|
|
12
12
|
export var Tabs = /*#__PURE__*/React.forwardRef(function Tabs(_ref, ref) {
|
|
13
|
-
var
|
|
13
|
+
var direction = _ref.direction,
|
|
14
|
+
className = _ref.className,
|
|
14
15
|
children = _ref.children,
|
|
15
16
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
16
17
|
|
|
17
18
|
return /*#__PURE__*/React.createElement(Base, _extends({
|
|
18
19
|
as: "div",
|
|
19
20
|
ref: ref,
|
|
20
|
-
className: clsx(className, true && 'govgr-tabs')
|
|
21
|
+
className: clsx(className, direction === 'vertical' && 'govgr-tabs--vertical', true && 'govgr-tabs')
|
|
21
22
|
}, props), children);
|
|
22
23
|
});
|
|
23
24
|
export default Tabs;
|
|
@@ -6,10 +6,10 @@ exports[`renders the TaskList with dense prop 1`] = `
|
|
|
6
6
|
>
|
|
7
7
|
<ForwardRef(Base)
|
|
8
8
|
as="ol"
|
|
9
|
-
className="govgr-task--dense govgr-task-list"
|
|
9
|
+
className="govgr-task-list--dense govgr-task-list"
|
|
10
10
|
>
|
|
11
11
|
<ol
|
|
12
|
-
className="govgr-task--dense govgr-task-list"
|
|
12
|
+
className="govgr-task-list--dense govgr-task-list"
|
|
13
13
|
>
|
|
14
14
|
hello
|
|
15
15
|
</ol>
|
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
+
exports[`renders the TextArea with dense prop 1`] = `
|
|
4
|
+
<ForwardRef(TextArea)
|
|
5
|
+
dense={true}
|
|
6
|
+
>
|
|
7
|
+
<ForwardRef(Base)
|
|
8
|
+
as="textarea"
|
|
9
|
+
className="govgr-textarea--dense govgr-textarea"
|
|
10
|
+
rows={3}
|
|
11
|
+
>
|
|
12
|
+
<textarea
|
|
13
|
+
className="govgr-textarea--dense govgr-textarea"
|
|
14
|
+
rows={3}
|
|
15
|
+
>
|
|
16
|
+
hello
|
|
17
|
+
</textarea>
|
|
18
|
+
</ForwardRef(Base)>
|
|
19
|
+
</ForwardRef(TextArea)>
|
|
20
|
+
`;
|
|
21
|
+
|
|
3
22
|
exports[`renders the TextArea with no props 1`] = `
|
|
4
23
|
<ForwardRef(TextArea)>
|
|
5
24
|
<ForwardRef(Base)
|