@digigov/react-core 0.3.1 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,14 @@
1
1
  # Change Log - @digigov/react-core
2
2
 
3
- This log was last generated on Thu, 30 Dec 2021 14:56:45 GMT and should not be manually modified.
3
+ This log was last generated on Mon, 17 Jan 2022 14:50:34 GMT and should not be manually modified.
4
+
5
+ ## 0.4.0
6
+ Mon, 17 Jan 2022 14:50:34 GMT
7
+
8
+ ### Minor changes
9
+
10
+ - Add new feature in Card component and fix spacing
11
+ - Add `fullWidth` prop to Container and CallToAction now uses an SVG arrow icon
4
12
 
5
13
  ## 0.3.1
6
14
  Thu, 30 Dec 2021 14:56:45 GMT
@@ -19,6 +19,15 @@ var _ButtonLink = _interopRequireDefault(require("@digigov/react-core/ButtonLink
19
19
 
20
20
  var _excluded = ["className", "children"];
21
21
 
22
+ var _ref2 = /*#__PURE__*/_react["default"].createElement("svg", {
23
+ className: "govgr-btn-cta__arrow",
24
+ focusable: "false",
25
+ viewBox: "0 0 24 24",
26
+ "aria-hidden": "true"
27
+ }, /*#__PURE__*/_react["default"].createElement("path", {
28
+ d: "M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"
29
+ }));
30
+
22
31
  /**
23
32
  * Use this button for the main call to action on your service’s start page.
24
33
  */
@@ -28,10 +37,8 @@ var CallToAction = /*#__PURE__*/_react["default"].forwardRef(function CallToActi
28
37
  props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
29
38
  return /*#__PURE__*/_react["default"].createElement(_ButtonLink["default"], (0, _extends2["default"])({
30
39
  ref: ref,
31
- className: (0, _clsx["default"])(className, true && ['govgr-btn', 'govgr-btn-primary', 'govgr-btn-cta'])
32
- }, props), children, /*#__PURE__*/_react["default"].createElement("span", {
33
- className: (0, _clsx["default"])(className, true && 'right-arrow')
34
- }));
40
+ className: (0, _clsx["default"])(className, true && 'govgr-btn-cta')
41
+ }, props), children, _ref2);
35
42
  });
36
43
 
37
44
  exports.CallToAction = CallToAction;
@@ -1,8 +1,22 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
- exports[`renders the Card with border props 1`] = `
3
+ exports[`renders the Card with no props 1`] = `
4
+ <ForwardRef(Card)>
5
+ <div
6
+ className="govgr-card"
7
+ >
8
+ <div
9
+ className="govgr-card__body"
10
+ >
11
+ hello
12
+ </div>
13
+ </div>
14
+ </ForwardRef(Card)>
15
+ `;
16
+
17
+ exports[`renders the Card with variant="border" props 1`] = `
4
18
  <ForwardRef(Card)
5
- border={true}
19
+ variant="border"
6
20
  >
7
21
  <div
8
22
  className="govgr-card--border govgr-card"
@@ -16,10 +30,12 @@ exports[`renders the Card with border props 1`] = `
16
30
  </ForwardRef(Card)>
17
31
  `;
18
32
 
19
- exports[`renders the Card with no props 1`] = `
20
- <ForwardRef(Card)>
33
+ exports[`renders the Card with variant="divider" props 1`] = `
34
+ <ForwardRef(Card)
35
+ variant="divider"
36
+ >
21
37
  <div
22
- className="govgr-card"
38
+ className="govgr-card--divider govgr-card"
23
39
  >
24
40
  <div
25
41
  className="govgr-card__body"
package/Card/index.d.ts CHANGED
@@ -3,14 +3,15 @@ declare type DivElementAttributes = JSX.IntrinsicElements['div'];
3
3
  export interface CardProps extends DivElementAttributes {
4
4
  /**
5
5
  * By default, we recommend using Cards without border style. Card border increases the contrast to its background.
6
- * `border` property is optional.
6
+ * divider
7
+ * `variant` property is optional.
7
8
  */
8
- border?: boolean;
9
+ variant?: "border" | "divider";
9
10
  }
10
11
  /**
11
12
  * Cards can be used to divide and organise interface content for better understandability and readability.
12
13
  * Cards can help your users to scan through vast amounts of information quicker.
13
14
  * Use Card as parent component to wrap CardHeading, CardText and CartAction components
14
15
  */
15
- export declare const Card: React.ForwardRefExoticComponent<Pick<CardProps, "className" | "children" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "border"> & React.RefAttributes<HTMLDivElement>>;
16
+ export declare const Card: React.ForwardRefExoticComponent<Pick<CardProps, "className" | "children" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "variant"> & React.RefAttributes<HTMLDivElement>>;
16
17
  export default Card;
package/Card/index.js CHANGED
@@ -15,7 +15,7 @@ var _react = _interopRequireDefault(require("react"));
15
15
 
16
16
  var _clsx = _interopRequireDefault(require("clsx"));
17
17
 
18
- var _excluded = ["border", "className", "children"];
18
+ var _excluded = ["variant", "style", "className", "children"];
19
19
 
20
20
  /**
21
21
  * Cards can be used to divide and organise interface content for better understandability and readability.
@@ -23,13 +23,14 @@ var _excluded = ["border", "className", "children"];
23
23
  * Use Card as parent component to wrap CardHeading, CardText and CartAction components
24
24
  */
25
25
  var Card = /*#__PURE__*/_react["default"].forwardRef(function Card(_ref, ref) {
26
- var border = _ref.border,
26
+ var variant = _ref.variant,
27
+ style = _ref.style,
27
28
  className = _ref.className,
28
29
  children = _ref.children,
29
30
  props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
30
31
  return /*#__PURE__*/_react["default"].createElement("div", (0, _extends2["default"])({
31
32
  ref: ref,
32
- className: (0, _clsx["default"])(className, border === true && 'govgr-card--border', true && 'govgr-card')
33
+ className: (0, _clsx["default"])(className, variant === "divider" && 'govgr-card--divider', variant === "border" && 'govgr-card--border', true && 'govgr-card')
33
34
  }, props), /*#__PURE__*/_react["default"].createElement("div", {
34
35
  className: (0, _clsx["default"])(true && 'govgr-card__body')
35
36
  }, children));
@@ -15,9 +15,17 @@ it('renders the Card with no props', function () {
15
15
  });
16
16
 
17
17
  var _ref2 = /*#__PURE__*/_react["default"].createElement(_Card["default"], {
18
- border: true
18
+ variant: "border"
19
19
  }, "hello");
20
20
 
21
- it('renders the Card with border props', function () {
21
+ it('renders the Card with variant="border" props', function () {
22
22
  expect((0, _enzyme.mount)(_ref2)).toMatchSnapshot();
23
+ });
24
+
25
+ var _ref3 = /*#__PURE__*/_react["default"].createElement(_Card["default"], {
26
+ variant: "divider"
27
+ }, "hello");
28
+
29
+ it('renders the Card with variant="divider" props', function () {
30
+ expect((0, _enzyme.mount)(_ref3)).toMatchSnapshot();
23
31
  });
@@ -1,9 +1,17 @@
1
1
  import React from 'react';
2
2
  declare type DivElementAttributes = JSX.IntrinsicElements['div'];
3
3
  export interface ContainerProps extends DivElementAttributes {
4
+ /**
5
+ * cols is optional. Set to false if you don't need 3 columns layout.
6
+ */
7
+ cols?: true | false;
8
+ /**
9
+ * fullWidth is optional. Set to true if you need a full width layout.
10
+ */
11
+ fullWidth?: true | false;
4
12
  }
5
13
  /**
6
- * Container is a wrapper component for Main and Side
14
+ * Use Container as a wrapper.
7
15
  */
8
- export declare const Container: React.ForwardRefExoticComponent<Pick<ContainerProps, "className" | "children" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & React.RefAttributes<HTMLDivElement>>;
16
+ export declare const Container: React.ForwardRefExoticComponent<Pick<ContainerProps, "className" | "children" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "cols" | "fullWidth"> & React.RefAttributes<HTMLDivElement>>;
9
17
  export default Container;
@@ -15,20 +15,24 @@ var _react = _interopRequireDefault(require("react"));
15
15
 
16
16
  var _clsx = _interopRequireDefault(require("clsx"));
17
17
 
18
- var _excluded = ["className", "children"];
18
+ var _excluded = ["cols", "fullWidth", "className", "children"];
19
19
 
20
20
  /**
21
- * Container is a wrapper component for Main and Side
21
+ * Use Container as a wrapper.
22
22
  */
23
23
  var Container = /*#__PURE__*/_react["default"].forwardRef(function Container(_ref, ref) {
24
- var className = _ref.className,
24
+ var _ref$cols = _ref.cols,
25
+ cols = _ref$cols === void 0 ? true : _ref$cols,
26
+ _ref$fullWidth = _ref.fullWidth,
27
+ fullWidth = _ref$fullWidth === void 0 ? false : _ref$fullWidth,
28
+ className = _ref.className,
25
29
  children = _ref.children,
26
30
  props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
27
31
  return /*#__PURE__*/_react["default"].createElement("div", (0, _extends2["default"])({
28
32
  ref: ref,
29
- className: (0, _clsx["default"])(className, true && 'govgr-width-container')
33
+ className: (0, _clsx["default"])(className, !fullWidth && 'govgr-width-container', fullWidth && 'govgr-full-width-container')
30
34
  }, props), /*#__PURE__*/_react["default"].createElement("div", (0, _extends2["default"])({
31
- className: (0, _clsx["default"])(true && 'govgr-main-wrapper')
35
+ className: (0, _clsx["default"])(cols && 'govgr-main-wrapper')
32
36
  }, props), children));
33
37
  });
34
38
 
package/Masthead/index.js CHANGED
@@ -15,6 +15,8 @@ var _react = _interopRequireDefault(require("react"));
15
15
 
16
16
  var _clsx = _interopRequireDefault(require("clsx"));
17
17
 
18
+ var _Container = _interopRequireDefault(require("@digigov/react-core/Container"));
19
+
18
20
  var _excluded = ["className", "children"];
19
21
 
20
22
  /**
@@ -27,13 +29,7 @@ var Masthead = /*#__PURE__*/_react["default"].forwardRef(function Masthead(_ref,
27
29
  return /*#__PURE__*/_react["default"].createElement("div", (0, _extends2["default"])({
28
30
  ref: ref,
29
31
  className: (0, _clsx["default"])(className, true && ['govgr-masthead', 'govgr-background-dark'])
30
- }, props), /*#__PURE__*/_react["default"].createElement("div", (0, _extends2["default"])({
31
- ref: ref,
32
- className: (0, _clsx["default"])(true && 'govgr-width-container')
33
- }, props), /*#__PURE__*/_react["default"].createElement("div", (0, _extends2["default"])({
34
- ref: ref,
35
- className: (0, _clsx["default"])(true && 'govgr-main-wrapper')
36
- }, props), children)));
32
+ }, props), /*#__PURE__*/_react["default"].createElement(_Container["default"], null, children));
37
33
  });
38
34
 
39
35
  exports.Masthead = Masthead;
package/Table/index.d.ts CHANGED
@@ -30,5 +30,5 @@ export interface TableProps extends TableElementAttributes {
30
30
  /**
31
31
  * Table component is used to wrap the sub components of a table
32
32
  */
33
- export declare const Table: React.ForwardRefExoticComponent<Pick<TableProps, "className" | "children" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "summary" | "width" | "variant" | "zebra" | "dense" | "verticalBorders" | "cellPadding" | "cellSpacing"> & React.RefAttributes<HTMLTableElement>>;
33
+ export declare const Table: React.ForwardRefExoticComponent<Pick<TableProps, "className" | "children" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "summary" | "variant" | "width" | "zebra" | "dense" | "verticalBorders" | "cellPadding" | "cellSpacing"> & React.RefAttributes<HTMLTableElement>>;
34
34
  export default Table;
@@ -19,5 +19,5 @@ export interface TextAreaProps extends TextareaElementAttributes {
19
19
  * Textarea component is used when you need to let users enter an
20
20
  * amount of text that’s longer than a single line.
21
21
  */
22
- export declare const TextArea: React.ForwardRefExoticComponent<Pick<TextAreaProps, "className" | "children" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "form" | "value" | "disabled" | "autoFocus" | "name" | "error" | "autoComplete" | "required" | "rows" | "cols" | "dirName" | "maxLength" | "minLength" | "readOnly" | "wrap"> & React.RefAttributes<HTMLTextAreaElement>>;
22
+ export declare const TextArea: React.ForwardRefExoticComponent<Pick<TextAreaProps, "className" | "children" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "form" | "value" | "disabled" | "autoFocus" | "name" | "cols" | "error" | "autoComplete" | "required" | "rows" | "dirName" | "maxLength" | "minLength" | "readOnly" | "wrap"> & React.RefAttributes<HTMLTextAreaElement>>;
23
23
  export default TextArea;
@@ -5,6 +5,15 @@ import React from 'react';
5
5
  import clsx from 'clsx';
6
6
  import ButtonLink from '@digigov/react-core/ButtonLink';
7
7
 
8
+ var _ref2 = /*#__PURE__*/React.createElement("svg", {
9
+ className: "govgr-btn-cta__arrow",
10
+ focusable: "false",
11
+ viewBox: "0 0 24 24",
12
+ "aria-hidden": "true"
13
+ }, /*#__PURE__*/React.createElement("path", {
14
+ d: "M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"
15
+ }));
16
+
8
17
  /**
9
18
  * Use this button for the main call to action on your service’s start page.
10
19
  */
@@ -15,9 +24,7 @@ export var CallToAction = /*#__PURE__*/React.forwardRef(function CallToAction(_r
15
24
 
16
25
  return /*#__PURE__*/React.createElement(ButtonLink, _extends({
17
26
  ref: ref,
18
- className: clsx(className, true && ['govgr-btn', 'govgr-btn-primary', 'govgr-btn-cta'])
19
- }, props), children, /*#__PURE__*/React.createElement("span", {
20
- className: clsx(className, true && 'right-arrow')
21
- }));
27
+ className: clsx(className, true && 'govgr-btn-cta')
28
+ }, props), children, _ref2);
22
29
  });
23
30
  export default CallToAction;
@@ -1,8 +1,22 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
- exports[`renders the Card with border props 1`] = `
3
+ exports[`renders the Card with no props 1`] = `
4
+ <ForwardRef(Card)>
5
+ <div
6
+ className="govgr-card"
7
+ >
8
+ <div
9
+ className="govgr-card__body"
10
+ >
11
+ hello
12
+ </div>
13
+ </div>
14
+ </ForwardRef(Card)>
15
+ `;
16
+
17
+ exports[`renders the Card with variant="border" props 1`] = `
4
18
  <ForwardRef(Card)
5
- border={true}
19
+ variant="border"
6
20
  >
7
21
  <div
8
22
  className="govgr-card--border govgr-card"
@@ -16,10 +30,12 @@ exports[`renders the Card with border props 1`] = `
16
30
  </ForwardRef(Card)>
17
31
  `;
18
32
 
19
- exports[`renders the Card with no props 1`] = `
20
- <ForwardRef(Card)>
33
+ exports[`renders the Card with variant="divider" props 1`] = `
34
+ <ForwardRef(Card)
35
+ variant="divider"
36
+ >
21
37
  <div
22
- className="govgr-card"
38
+ className="govgr-card--divider govgr-card"
23
39
  >
24
40
  <div
25
41
  className="govgr-card__body"
package/es/Card/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 = ["border", "className", "children"];
3
+ var _excluded = ["variant", "style", "className", "children"];
4
4
  import React from 'react';
5
5
  import clsx from 'clsx';
6
6
 
@@ -10,14 +10,15 @@ import clsx from 'clsx';
10
10
  * Use Card as parent component to wrap CardHeading, CardText and CartAction components
11
11
  */
12
12
  export var Card = /*#__PURE__*/React.forwardRef(function Card(_ref, ref) {
13
- var border = _ref.border,
13
+ var variant = _ref.variant,
14
+ style = _ref.style,
14
15
  className = _ref.className,
15
16
  children = _ref.children,
16
17
  props = _objectWithoutProperties(_ref, _excluded);
17
18
 
18
19
  return /*#__PURE__*/React.createElement("div", _extends({
19
20
  ref: ref,
20
- className: clsx(className, border === true && 'govgr-card--border', true && 'govgr-card')
21
+ className: clsx(className, variant === "divider" && 'govgr-card--divider', variant === "border" && 'govgr-card--border', true && 'govgr-card')
21
22
  }, props), /*#__PURE__*/React.createElement("div", {
22
23
  className: clsx(true && 'govgr-card__body')
23
24
  }, children));
@@ -9,9 +9,17 @@ it('renders the Card with no props', function () {
9
9
  });
10
10
 
11
11
  var _ref2 = /*#__PURE__*/React.createElement(Card, {
12
- border: true
12
+ variant: "border"
13
13
  }, "hello");
14
14
 
15
- it('renders the Card with border props', function () {
15
+ it('renders the Card with variant="border" props', function () {
16
16
  expect(mount(_ref2)).toMatchSnapshot();
17
+ });
18
+
19
+ var _ref3 = /*#__PURE__*/React.createElement(Card, {
20
+ variant: "divider"
21
+ }, "hello");
22
+
23
+ it('renders the Card with variant="divider" props', function () {
24
+ expect(mount(_ref3)).toMatchSnapshot();
17
25
  });
@@ -1,22 +1,26 @@
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 = ["cols", "fullWidth", "className", "children"];
4
4
  import React from 'react';
5
5
  import clsx from 'clsx';
6
6
 
7
7
  /**
8
- * Container is a wrapper component for Main and Side
8
+ * Use Container as a wrapper.
9
9
  */
10
10
  export var Container = /*#__PURE__*/React.forwardRef(function Container(_ref, ref) {
11
- var className = _ref.className,
11
+ var _ref$cols = _ref.cols,
12
+ cols = _ref$cols === void 0 ? true : _ref$cols,
13
+ _ref$fullWidth = _ref.fullWidth,
14
+ fullWidth = _ref$fullWidth === void 0 ? false : _ref$fullWidth,
15
+ className = _ref.className,
12
16
  children = _ref.children,
13
17
  props = _objectWithoutProperties(_ref, _excluded);
14
18
 
15
19
  return /*#__PURE__*/React.createElement("div", _extends({
16
20
  ref: ref,
17
- className: clsx(className, true && 'govgr-width-container')
21
+ className: clsx(className, !fullWidth && 'govgr-width-container', fullWidth && 'govgr-full-width-container')
18
22
  }, props), /*#__PURE__*/React.createElement("div", _extends({
19
- className: clsx(true && 'govgr-main-wrapper')
23
+ className: clsx(cols && 'govgr-main-wrapper')
20
24
  }, props), children));
21
25
  });
22
26
  export default Container;
@@ -3,6 +3,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
3
3
  var _excluded = ["className", "children"];
4
4
  import React from 'react';
5
5
  import clsx from 'clsx';
6
+ import Container from '@digigov/react-core/Container';
6
7
 
7
8
  /**
8
9
  * Use the Masthead on the top of the page.
@@ -15,12 +16,6 @@ export var Masthead = /*#__PURE__*/React.forwardRef(function Masthead(_ref, ref)
15
16
  return /*#__PURE__*/React.createElement("div", _extends({
16
17
  ref: ref,
17
18
  className: clsx(className, true && ['govgr-masthead', 'govgr-background-dark'])
18
- }, props), /*#__PURE__*/React.createElement("div", _extends({
19
- ref: ref,
20
- className: clsx(true && 'govgr-width-container')
21
- }, props), /*#__PURE__*/React.createElement("div", _extends({
22
- ref: ref,
23
- className: clsx(true && 'govgr-main-wrapper')
24
- }, props), children)));
19
+ }, props), /*#__PURE__*/React.createElement(Container, null, children));
25
20
  });
26
21
  export default Masthead;
@@ -5,6 +5,15 @@ import React from 'react';
5
5
  import clsx from 'clsx';
6
6
  import ButtonLink from '@digigov/react-core/ButtonLink';
7
7
 
8
+ var _ref2 = /*#__PURE__*/React.createElement("svg", {
9
+ className: "govgr-btn-cta__arrow",
10
+ focusable: "false",
11
+ viewBox: "0 0 24 24",
12
+ "aria-hidden": "true"
13
+ }, /*#__PURE__*/React.createElement("path", {
14
+ d: "M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"
15
+ }));
16
+
8
17
  /**
9
18
  * Use this button for the main call to action on your service’s start page.
10
19
  */
@@ -15,9 +24,7 @@ export var CallToAction = /*#__PURE__*/React.forwardRef(function CallToAction(_r
15
24
 
16
25
  return /*#__PURE__*/React.createElement(ButtonLink, _extends({
17
26
  ref: ref,
18
- className: clsx(className, true && ['govgr-btn', 'govgr-btn-primary', 'govgr-btn-cta'])
19
- }, props), children, /*#__PURE__*/React.createElement("span", {
20
- className: clsx(className, true && 'right-arrow')
21
- }));
27
+ className: clsx(className, true && 'govgr-btn-cta')
28
+ }, props), children, _ref2);
22
29
  });
23
30
  export default CallToAction;
@@ -1,8 +1,22 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
- exports[`renders the Card with border props 1`] = `
3
+ exports[`renders the Card with no props 1`] = `
4
+ <ForwardRef(Card)>
5
+ <div
6
+ className="govgr-card"
7
+ >
8
+ <div
9
+ className="govgr-card__body"
10
+ >
11
+ hello
12
+ </div>
13
+ </div>
14
+ </ForwardRef(Card)>
15
+ `;
16
+
17
+ exports[`renders the Card with variant="border" props 1`] = `
4
18
  <ForwardRef(Card)
5
- border={true}
19
+ variant="border"
6
20
  >
7
21
  <div
8
22
  className="govgr-card--border govgr-card"
@@ -16,10 +30,12 @@ exports[`renders the Card with border props 1`] = `
16
30
  </ForwardRef(Card)>
17
31
  `;
18
32
 
19
- exports[`renders the Card with no props 1`] = `
20
- <ForwardRef(Card)>
33
+ exports[`renders the Card with variant="divider" props 1`] = `
34
+ <ForwardRef(Card)
35
+ variant="divider"
36
+ >
21
37
  <div
22
- className="govgr-card"
38
+ className="govgr-card--divider govgr-card"
23
39
  >
24
40
  <div
25
41
  className="govgr-card__body"
package/esm/Card/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 = ["border", "className", "children"];
3
+ var _excluded = ["variant", "style", "className", "children"];
4
4
  import React from 'react';
5
5
  import clsx from 'clsx';
6
6
 
@@ -10,14 +10,15 @@ import clsx from 'clsx';
10
10
  * Use Card as parent component to wrap CardHeading, CardText and CartAction components
11
11
  */
12
12
  export var Card = /*#__PURE__*/React.forwardRef(function Card(_ref, ref) {
13
- var border = _ref.border,
13
+ var variant = _ref.variant,
14
+ style = _ref.style,
14
15
  className = _ref.className,
15
16
  children = _ref.children,
16
17
  props = _objectWithoutProperties(_ref, _excluded);
17
18
 
18
19
  return /*#__PURE__*/React.createElement("div", _extends({
19
20
  ref: ref,
20
- className: clsx(className, border === true && 'govgr-card--border', true && 'govgr-card')
21
+ className: clsx(className, variant === "divider" && 'govgr-card--divider', variant === "border" && 'govgr-card--border', true && 'govgr-card')
21
22
  }, props), /*#__PURE__*/React.createElement("div", {
22
23
  className: clsx(true && 'govgr-card__body')
23
24
  }, children));
@@ -9,9 +9,17 @@ it('renders the Card with no props', function () {
9
9
  });
10
10
 
11
11
  var _ref2 = /*#__PURE__*/React.createElement(Card, {
12
- border: true
12
+ variant: "border"
13
13
  }, "hello");
14
14
 
15
- it('renders the Card with border props', function () {
15
+ it('renders the Card with variant="border" props', function () {
16
16
  expect(mount(_ref2)).toMatchSnapshot();
17
+ });
18
+
19
+ var _ref3 = /*#__PURE__*/React.createElement(Card, {
20
+ variant: "divider"
21
+ }, "hello");
22
+
23
+ it('renders the Card with variant="divider" props', function () {
24
+ expect(mount(_ref3)).toMatchSnapshot();
17
25
  });
@@ -1,22 +1,26 @@
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 = ["cols", "fullWidth", "className", "children"];
4
4
  import React from 'react';
5
5
  import clsx from 'clsx';
6
6
 
7
7
  /**
8
- * Container is a wrapper component for Main and Side
8
+ * Use Container as a wrapper.
9
9
  */
10
10
  export var Container = /*#__PURE__*/React.forwardRef(function Container(_ref, ref) {
11
- var className = _ref.className,
11
+ var _ref$cols = _ref.cols,
12
+ cols = _ref$cols === void 0 ? true : _ref$cols,
13
+ _ref$fullWidth = _ref.fullWidth,
14
+ fullWidth = _ref$fullWidth === void 0 ? false : _ref$fullWidth,
15
+ className = _ref.className,
12
16
  children = _ref.children,
13
17
  props = _objectWithoutProperties(_ref, _excluded);
14
18
 
15
19
  return /*#__PURE__*/React.createElement("div", _extends({
16
20
  ref: ref,
17
- className: clsx(className, true && 'govgr-width-container')
21
+ className: clsx(className, !fullWidth && 'govgr-width-container', fullWidth && 'govgr-full-width-container')
18
22
  }, props), /*#__PURE__*/React.createElement("div", _extends({
19
- className: clsx(true && 'govgr-main-wrapper')
23
+ className: clsx(cols && 'govgr-main-wrapper')
20
24
  }, props), children));
21
25
  });
22
26
  export default Container;
@@ -3,6 +3,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
3
3
  var _excluded = ["className", "children"];
4
4
  import React from 'react';
5
5
  import clsx from 'clsx';
6
+ import Container from '@digigov/react-core/Container';
6
7
 
7
8
  /**
8
9
  * Use the Masthead on the top of the page.
@@ -15,12 +16,6 @@ export var Masthead = /*#__PURE__*/React.forwardRef(function Masthead(_ref, ref)
15
16
  return /*#__PURE__*/React.createElement("div", _extends({
16
17
  ref: ref,
17
18
  className: clsx(className, true && ['govgr-masthead', 'govgr-background-dark'])
18
- }, props), /*#__PURE__*/React.createElement("div", _extends({
19
- ref: ref,
20
- className: clsx(true && 'govgr-width-container')
21
- }, props), /*#__PURE__*/React.createElement("div", _extends({
22
- ref: ref,
23
- className: clsx(true && 'govgr-main-wrapper')
24
- }, props), children)));
19
+ }, props), /*#__PURE__*/React.createElement(Container, null, children));
25
20
  });
26
21
  export default Masthead;
package/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Digigov v0.3.1
1
+ /** @license Digigov v0.4.0
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digigov/react-core",
3
- "version": "0.3.1",
3
+ "version": "0.4.0",
4
4
  "description": "@digigov react core components",
5
5
  "author": "GRNET Developers <devs@lists.grnet.gr>",
6
6
  "license": "MIT",
@@ -11,7 +11,7 @@
11
11
  "directory": "dist"
12
12
  },
13
13
  "peerDependencies": {
14
- "@digigov/css": "0.5.0",
14
+ "@digigov/css": "0.6.0",
15
15
  "clsx": "~1.1.1",
16
16
  "react": "16.14.0",
17
17
  "react-dom": "16.14.0"