@digigov/react-core 0.20.1 → 0.21.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.
@@ -6,11 +6,16 @@ export interface AccordionSectionProps extends BaseProps<'details'> {
6
6
  * Add this prop when an AccordionSection should be open.
7
7
  */
8
8
  open?: boolean;
9
+ /**
10
+ * border is optional. The default value is true.
11
+ * In order to remove top and bottom border, change this value to false.
12
+ */
13
+ border?: boolean;
9
14
  }
10
15
  /**
11
16
  * AccordionSection should be inside the Accordion component.
12
17
  *
13
18
  * Inside this component must place the AccordionSectionHeader and the AccordionSectionContent components.
14
19
  */
15
- export declare const AccordionSection: React.ForwardRefExoticComponent<Pick<AccordionSectionProps, "slot" | "style" | "title" | "as" | "className" | "color" | "id" | "lang" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "open" | "onToggle" | "margin" | "marginTop" | "marginBottom" | "marginLeft" | "marginRight" | "padding" | "paddingTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "printHidden" | "xsUpHidden" | "smUpHidden" | "mdUpHidden" | "lgUpHidden" | "xlUpHidden" | "xsHidden" | "smHidden" | "mdHidden" | "lgHidden" | "xlHidden"> & React.RefAttributes<HTMLDetailsElement>>;
20
+ export declare const AccordionSection: React.ForwardRefExoticComponent<Pick<AccordionSectionProps, "slot" | "style" | "title" | "as" | "className" | "color" | "id" | "lang" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "open" | "onToggle" | "margin" | "marginTop" | "marginBottom" | "marginLeft" | "marginRight" | "padding" | "paddingTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "printHidden" | "xsUpHidden" | "smUpHidden" | "mdUpHidden" | "lgUpHidden" | "xlUpHidden" | "xsHidden" | "smHidden" | "mdHidden" | "lgHidden" | "xlHidden" | "border"> & React.RefAttributes<HTMLDetailsElement>>;
16
21
  export default AccordionSection;
@@ -17,7 +17,7 @@ var _Base = _interopRequireDefault(require("@digigov/react-core/Base"));
17
17
 
18
18
  var _clsx = _interopRequireDefault(require("clsx"));
19
19
 
20
- var _excluded = ["className", "children"];
20
+ var _excluded = ["className", "border", "children"];
21
21
 
22
22
  /**
23
23
  * AccordionSection should be inside the Accordion component.
@@ -27,12 +27,14 @@ var _excluded = ["className", "children"];
27
27
  // eslint-disable-next-line react/display-name
28
28
  var AccordionSection = /*#__PURE__*/_react["default"].forwardRef(function AccordionSection(_ref, ref) {
29
29
  var className = _ref.className,
30
+ _ref$border = _ref.border,
31
+ border = _ref$border === void 0 ? true : _ref$border,
30
32
  children = _ref.children,
31
33
  props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
32
34
  return /*#__PURE__*/_react["default"].createElement(_Base["default"], (0, _extends2["default"])({
33
35
  as: "details",
34
36
  ref: ref,
35
- className: (0, _clsx["default"])(className, true && 'govgr-accordion__section')
37
+ className: (0, _clsx["default"])(className, !border && 'govgr-accordion__section--no-border', true && 'govgr-accordion__section')
36
38
  }, props), children);
37
39
  });
38
40
 
package/CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
1
1
  # Change Log - @digigov/react-core
2
2
 
3
- This log was last generated on Wed, 22 Feb 2023 15:41:06 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 02 Mar 2023 11:33:41 GMT and should not be manually modified.
4
+
5
+ ## 0.21.0
6
+ Thu, 02 Mar 2023 11:33:41 GMT
7
+
8
+ ### Minor changes
9
+
10
+ - Add border prop at AccordionSection, warning prop to TableRow, verticalAlign prop to TableBody and unpurge some utility classes
4
11
 
5
12
  ## 0.20.1
6
13
  Wed, 22 Feb 2023 15:41:06 GMT
@@ -1,9 +1,14 @@
1
1
  import React from 'react';
2
2
  import { BaseProps } from '@digigov/react-core/Base';
3
3
  export interface TableBodyProps extends BaseProps<'tbody'> {
4
+ /**
5
+ * verticalAlign is optional. Default value is 'middle'.
6
+ * This prop set the vertical align of the body's content.
7
+ */
8
+ verticalAlign?: 'middle' | 'top' | 'bottom';
4
9
  }
5
10
  /**
6
11
  * Use TableBody inside the Table component to provide for the table data.
7
12
  */
8
- export declare const TableBody: React.ForwardRefExoticComponent<Pick<TableBodyProps, "slot" | "style" | "title" | "as" | "className" | "color" | "id" | "lang" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "margin" | "marginTop" | "marginBottom" | "marginLeft" | "marginRight" | "padding" | "paddingTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "printHidden" | "xsUpHidden" | "smUpHidden" | "mdUpHidden" | "lgUpHidden" | "xlUpHidden" | "xsHidden" | "smHidden" | "mdHidden" | "lgHidden" | "xlHidden"> & React.RefAttributes<HTMLTableSectionElement>>;
13
+ export declare const TableBody: React.ForwardRefExoticComponent<Pick<TableBodyProps, "slot" | "style" | "title" | "as" | "className" | "color" | "id" | "lang" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "margin" | "marginTop" | "marginBottom" | "marginLeft" | "marginRight" | "padding" | "paddingTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "printHidden" | "xsUpHidden" | "smUpHidden" | "mdUpHidden" | "lgUpHidden" | "xlUpHidden" | "xsHidden" | "smHidden" | "mdHidden" | "lgHidden" | "xlHidden" | "verticalAlign"> & React.RefAttributes<HTMLTableSectionElement>>;
9
14
  export default TableBody;
@@ -17,19 +17,21 @@ var _Base = _interopRequireDefault(require("@digigov/react-core/Base"));
17
17
 
18
18
  var _clsx = _interopRequireDefault(require("clsx"));
19
19
 
20
- var _excluded = ["className", "children"];
20
+ var _excluded = ["verticalAlign", "className", "children"];
21
21
 
22
22
  /**
23
23
  * Use TableBody inside the Table component to provide for the table data.
24
24
  */
25
25
  var TableBody = /*#__PURE__*/_react["default"].forwardRef(function TableBody(_ref, ref) {
26
- var className = _ref.className,
26
+ var _ref$verticalAlign = _ref.verticalAlign,
27
+ verticalAlign = _ref$verticalAlign === void 0 ? 'middle' : _ref$verticalAlign,
28
+ className = _ref.className,
27
29
  children = _ref.children,
28
30
  props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
29
31
  return /*#__PURE__*/_react["default"].createElement(_Base["default"], (0, _extends2["default"])({
30
32
  as: "tbody",
31
33
  ref: ref,
32
- className: (0, _clsx["default"])(className, true && 'govgr-table__body')
34
+ className: (0, _clsx["default"])(className, verticalAlign === 'bottom' && 'govgr-table__body--vertical-bottom', verticalAlign === 'top' && 'govgr-table__body--vertical-top', true && 'govgr-table__body')
33
35
  }, props), children);
34
36
  });
35
37
 
@@ -1,9 +1,14 @@
1
1
  import React from 'react';
2
2
  import { BaseProps } from '@digigov/react-core/Base';
3
3
  export interface TableRowProps extends BaseProps<'tr'> {
4
+ /**
5
+ * warning is optional. Default value is false.
6
+ * Add the warning prop to add a warning line on the left of the row.
7
+ */
8
+ warning?: boolean;
4
9
  }
5
10
  /**
6
11
  * Use TableRow inside the Table component to provide a new row to the table.
7
12
  */
8
- export declare const TableRow: React.ForwardRefExoticComponent<Pick<TableRowProps, "slot" | "style" | "title" | "as" | "className" | "color" | "id" | "lang" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "margin" | "marginTop" | "marginBottom" | "marginLeft" | "marginRight" | "padding" | "paddingTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "printHidden" | "xsUpHidden" | "smUpHidden" | "mdUpHidden" | "lgUpHidden" | "xlUpHidden" | "xsHidden" | "smHidden" | "mdHidden" | "lgHidden" | "xlHidden"> & React.RefAttributes<HTMLTableRowElement>>;
13
+ export declare const TableRow: React.ForwardRefExoticComponent<Pick<TableRowProps, "slot" | "style" | "title" | "as" | "className" | "color" | "id" | "lang" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "margin" | "marginTop" | "marginBottom" | "marginLeft" | "marginRight" | "padding" | "paddingTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "printHidden" | "xsUpHidden" | "smUpHidden" | "mdUpHidden" | "lgUpHidden" | "xlUpHidden" | "xsHidden" | "smHidden" | "mdHidden" | "lgHidden" | "xlHidden" | "warning"> & React.RefAttributes<HTMLTableRowElement>>;
9
14
  export default TableRow;
package/TableRow/index.js CHANGED
@@ -17,19 +17,21 @@ var _Base = _interopRequireDefault(require("@digigov/react-core/Base"));
17
17
 
18
18
  var _clsx = _interopRequireDefault(require("clsx"));
19
19
 
20
- var _excluded = ["className", "children"];
20
+ var _excluded = ["warning", "className", "children"];
21
21
 
22
22
  /**
23
23
  * Use TableRow inside the Table component to provide a new row to the table.
24
24
  */
25
25
  var TableRow = /*#__PURE__*/_react["default"].forwardRef(function TableRow(_ref, ref) {
26
- var className = _ref.className,
26
+ var _ref$warning = _ref.warning,
27
+ warning = _ref$warning === void 0 ? false : _ref$warning,
28
+ className = _ref.className,
27
29
  children = _ref.children,
28
30
  props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
29
31
  return /*#__PURE__*/_react["default"].createElement(_Base["default"], (0, _extends2["default"])({
30
32
  as: "tr",
31
33
  ref: ref,
32
- className: (0, _clsx["default"])(className, true && 'govgr-table__row')
34
+ className: (0, _clsx["default"])(className, warning && 'govgr-table__row--warning', true && 'govgr-table__row')
33
35
  }, props), children);
34
36
  });
35
37
 
package/Unpurge/index.js CHANGED
@@ -11,7 +11,7 @@ var _react = _interopRequireDefault(require("react"));
11
11
 
12
12
  function Unpurge() {
13
13
  return /*#__PURE__*/_react["default"].createElement("div", {
14
- className: "\n govgr-m-0 \n govgr-mt-0 \n govgr-mb-0 \n govgr-mr-0 \n govgr-ml-0 \n govgr-p-0 \n govgr-pt-0 \n govgr-pb-0 \n govgr-pr-0 \n govgr-pl-0 \n govgr-m-1 \n govgr-mt-1 \n govgr-mb-1 \n govgr-mr-1 \n govgr-ml-1 \n govgr-p-1 \n govgr-pt-1 \n govgr-pb-1 \n govgr-pr-1 \n govgr-pl-1 \n govgr-m-2 \n govgr-mt-2 \n govgr-mb-2 \n govgr-mr-2 \n govgr-ml-2 \n govgr-p-2 \n govgr-pt-2 \n govgr-pb-2 \n govgr-pr-2 \n govgr-pl-2 \n govgr-m-3 \n govgr-mt-3 \n govgr-mb-3 \n govgr-mr-3 \n govgr-ml-3 \n govgr-p-3 \n govgr-pt-3 \n govgr-pb-3 \n govgr-pr-3 \n govgr-pl-3 \n govgr-m-4 \n govgr-mt-4 \n govgr-mb-4 \n govgr-mr-4 \n govgr-ml-4 \n govgr-p-4 \n govgr-pt-4 \n govgr-pb-4 \n govgr-pr-4 \n govgr-pl-4 \n govgr-m-5 \n govgr-mt-5 \n govgr-mb-5 \n govgr-mr-5 \n govgr-ml-5 \n govgr-p-5 \n govgr-pt-5 \n govgr-pb-5 \n govgr-pr-5 \n govgr-pl-5 \n govgr-m-6 \n govgr-mt-6 \n govgr-mb-6 \n govgr-mr-6 \n govgr-ml-6 \n govgr-p-6 \n govgr-pt-6 \n govgr-pb-6 \n govgr-pr-6 \n govgr-pl-6 \n govgr-m-7 \n govgr-mt-7 \n govgr-mb-7 \n govgr-mr-7 \n govgr-ml-7 \n govgr-p-7 \n govgr-pt-7 \n govgr-pb-7 \n govgr-pr-7 \n govgr-pl-7 \n govgr-m-8 \n govgr-mt-8 \n govgr-mb-8 \n govgr-mr-8 \n govgr-ml-8 \n govgr-p-8 \n govgr-pt-8 \n govgr-pb-8 \n govgr-pr-8 \n govgr-pl-8 \n govgr-m-9 \n govgr-mt-9 \n govgr-mb-9 \n govgr-mr-9 \n govgr-ml-9 \n govgr-p-9 \n govgr-pt-9 \n govgr-pb-9 \n govgr-pr-9 \n govgr-pl-9 \n govgr-print-hidden\n "
14
+ className: "\n govgr-m-0 \n govgr-mt-0 \n govgr-mb-0 \n govgr-mr-0 \n govgr-ml-0 \n govgr-p-0 \n govgr-pt-0 \n govgr-pb-0 \n govgr-pr-0 \n govgr-pl-0 \n govgr-m-1 \n govgr-mt-1 \n govgr-mb-1 \n govgr-mr-1 \n govgr-ml-1 \n govgr-p-1 \n govgr-pt-1 \n govgr-pb-1 \n govgr-pr-1 \n govgr-pl-1 \n govgr-m-2 \n govgr-mt-2 \n govgr-mb-2 \n govgr-mr-2 \n govgr-ml-2 \n govgr-p-2 \n govgr-pt-2 \n govgr-pb-2 \n govgr-pr-2 \n govgr-pl-2 \n govgr-m-3 \n govgr-mt-3 \n govgr-mb-3 \n govgr-mr-3 \n govgr-ml-3 \n govgr-p-3 \n govgr-pt-3 \n govgr-pb-3 \n govgr-pr-3 \n govgr-pl-3 \n govgr-m-4 \n govgr-mt-4 \n govgr-mb-4 \n govgr-mr-4 \n govgr-ml-4 \n govgr-p-4 \n govgr-pt-4 \n govgr-pb-4 \n govgr-pr-4 \n govgr-pl-4 \n govgr-m-5 \n govgr-mt-5 \n govgr-mb-5 \n govgr-mr-5 \n govgr-ml-5 \n govgr-p-5 \n govgr-pt-5 \n govgr-pb-5 \n govgr-pr-5 \n govgr-pl-5 \n govgr-m-6 \n govgr-mt-6 \n govgr-mb-6 \n govgr-mr-6 \n govgr-ml-6 \n govgr-p-6 \n govgr-pt-6 \n govgr-pb-6 \n govgr-pr-6 \n govgr-pl-6 \n govgr-m-7 \n govgr-mt-7 \n govgr-mb-7 \n govgr-mr-7 \n govgr-ml-7 \n govgr-p-7 \n govgr-pt-7 \n govgr-pb-7 \n govgr-pr-7 \n govgr-pl-7 \n govgr-m-8 \n govgr-mt-8 \n govgr-mb-8 \n govgr-mr-8 \n govgr-ml-8 \n govgr-m-9 \n govgr-mt-9 \n govgr-mb-9 \n govgr-mr-9 \n govgr-ml-9 \n govgr-m-10 \n govgr-mt-10 \n govgr-mb-10 \n govgr-mr-10 \n govgr-ml-10 \n govgr-m-11 \n govgr-mt-11 \n govgr-mb-11 \n govgr-mr-11 \n govgr-ml-11 \n govgr-m-12 \n govgr-mt-12 \n govgr-mb-12 \n govgr-mr-12 \n govgr-ml-12 \n govgr-p-8 \n govgr-pt-8 \n govgr-pb-8 \n govgr-pr-8 \n govgr-pl-8 \n govgr-p-9 \n govgr-pt-9 \n govgr-pb-9 \n govgr-pr-9 \n govgr-pl-9 \n govgr-p-10\n govgr-pt-10\n govgr-pb-10\n govgr-pr-10\n govgr-pl-10\n govgr-p-11\n govgr-pt-11\n govgr-pb-11\n govgr-pr-11\n govgr-pl-11\n govgr-p-12\n govgr-pt-12\n govgr-pb-12\n govgr-pr-12\n govgr-pl-12\n govgr-print-hidden\n "
15
15
  });
16
16
  }
17
17
 
@@ -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 = ["className", "border", "children"];
4
4
  import React from 'react';
5
5
  import Base from '@digigov/react-core/Base';
6
6
  import clsx from 'clsx';
@@ -13,13 +13,15 @@ import clsx from 'clsx';
13
13
  // eslint-disable-next-line react/display-name
14
14
  export var AccordionSection = /*#__PURE__*/React.forwardRef(function AccordionSection(_ref, ref) {
15
15
  var className = _ref.className,
16
+ _ref$border = _ref.border,
17
+ border = _ref$border === void 0 ? true : _ref$border,
16
18
  children = _ref.children,
17
19
  props = _objectWithoutProperties(_ref, _excluded);
18
20
 
19
21
  return /*#__PURE__*/React.createElement(Base, _extends({
20
22
  as: "details",
21
23
  ref: ref,
22
- className: clsx(className, true && 'govgr-accordion__section')
24
+ className: clsx(className, !border && 'govgr-accordion__section--no-border', true && 'govgr-accordion__section')
23
25
  }, props), children);
24
26
  });
25
27
  export default AccordionSection;
@@ -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 = ["verticalAlign", "className", "children"];
4
4
  import React from 'react';
5
5
  import Base from '@digigov/react-core/Base';
6
6
  import clsx from 'clsx';
@@ -9,14 +9,16 @@ import clsx from 'clsx';
9
9
  * Use TableBody inside the Table component to provide for the table data.
10
10
  */
11
11
  export var TableBody = /*#__PURE__*/React.forwardRef(function TableBody(_ref, ref) {
12
- var className = _ref.className,
12
+ var _ref$verticalAlign = _ref.verticalAlign,
13
+ verticalAlign = _ref$verticalAlign === void 0 ? 'middle' : _ref$verticalAlign,
14
+ className = _ref.className,
13
15
  children = _ref.children,
14
16
  props = _objectWithoutProperties(_ref, _excluded);
15
17
 
16
18
  return /*#__PURE__*/React.createElement(Base, _extends({
17
19
  as: "tbody",
18
20
  ref: ref,
19
- className: clsx(className, true && 'govgr-table__body')
21
+ className: clsx(className, verticalAlign === 'bottom' && 'govgr-table__body--vertical-bottom', verticalAlign === 'top' && 'govgr-table__body--vertical-top', true && 'govgr-table__body')
20
22
  }, props), children);
21
23
  });
22
24
  export default TableBody;
@@ -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 = ["warning", "className", "children"];
4
4
  import React from 'react';
5
5
  import Base from '@digigov/react-core/Base';
6
6
  import clsx from 'clsx';
@@ -9,14 +9,16 @@ import clsx from 'clsx';
9
9
  * Use TableRow inside the Table component to provide a new row to the table.
10
10
  */
11
11
  export var TableRow = /*#__PURE__*/React.forwardRef(function TableRow(_ref, ref) {
12
- var className = _ref.className,
12
+ var _ref$warning = _ref.warning,
13
+ warning = _ref$warning === void 0 ? false : _ref$warning,
14
+ className = _ref.className,
13
15
  children = _ref.children,
14
16
  props = _objectWithoutProperties(_ref, _excluded);
15
17
 
16
18
  return /*#__PURE__*/React.createElement(Base, _extends({
17
19
  as: "tr",
18
20
  ref: ref,
19
- className: clsx(className, true && 'govgr-table__row')
21
+ className: clsx(className, warning && 'govgr-table__row--warning', true && 'govgr-table__row')
20
22
  }, props), children);
21
23
  });
22
24
  export default TableRow;
@@ -2,7 +2,7 @@ import React from 'react';
2
2
 
3
3
  function Unpurge() {
4
4
  return /*#__PURE__*/React.createElement("div", {
5
- className: "\n govgr-m-0 \n govgr-mt-0 \n govgr-mb-0 \n govgr-mr-0 \n govgr-ml-0 \n govgr-p-0 \n govgr-pt-0 \n govgr-pb-0 \n govgr-pr-0 \n govgr-pl-0 \n govgr-m-1 \n govgr-mt-1 \n govgr-mb-1 \n govgr-mr-1 \n govgr-ml-1 \n govgr-p-1 \n govgr-pt-1 \n govgr-pb-1 \n govgr-pr-1 \n govgr-pl-1 \n govgr-m-2 \n govgr-mt-2 \n govgr-mb-2 \n govgr-mr-2 \n govgr-ml-2 \n govgr-p-2 \n govgr-pt-2 \n govgr-pb-2 \n govgr-pr-2 \n govgr-pl-2 \n govgr-m-3 \n govgr-mt-3 \n govgr-mb-3 \n govgr-mr-3 \n govgr-ml-3 \n govgr-p-3 \n govgr-pt-3 \n govgr-pb-3 \n govgr-pr-3 \n govgr-pl-3 \n govgr-m-4 \n govgr-mt-4 \n govgr-mb-4 \n govgr-mr-4 \n govgr-ml-4 \n govgr-p-4 \n govgr-pt-4 \n govgr-pb-4 \n govgr-pr-4 \n govgr-pl-4 \n govgr-m-5 \n govgr-mt-5 \n govgr-mb-5 \n govgr-mr-5 \n govgr-ml-5 \n govgr-p-5 \n govgr-pt-5 \n govgr-pb-5 \n govgr-pr-5 \n govgr-pl-5 \n govgr-m-6 \n govgr-mt-6 \n govgr-mb-6 \n govgr-mr-6 \n govgr-ml-6 \n govgr-p-6 \n govgr-pt-6 \n govgr-pb-6 \n govgr-pr-6 \n govgr-pl-6 \n govgr-m-7 \n govgr-mt-7 \n govgr-mb-7 \n govgr-mr-7 \n govgr-ml-7 \n govgr-p-7 \n govgr-pt-7 \n govgr-pb-7 \n govgr-pr-7 \n govgr-pl-7 \n govgr-m-8 \n govgr-mt-8 \n govgr-mb-8 \n govgr-mr-8 \n govgr-ml-8 \n govgr-p-8 \n govgr-pt-8 \n govgr-pb-8 \n govgr-pr-8 \n govgr-pl-8 \n govgr-m-9 \n govgr-mt-9 \n govgr-mb-9 \n govgr-mr-9 \n govgr-ml-9 \n govgr-p-9 \n govgr-pt-9 \n govgr-pb-9 \n govgr-pr-9 \n govgr-pl-9 \n govgr-print-hidden\n "
5
+ className: "\n govgr-m-0 \n govgr-mt-0 \n govgr-mb-0 \n govgr-mr-0 \n govgr-ml-0 \n govgr-p-0 \n govgr-pt-0 \n govgr-pb-0 \n govgr-pr-0 \n govgr-pl-0 \n govgr-m-1 \n govgr-mt-1 \n govgr-mb-1 \n govgr-mr-1 \n govgr-ml-1 \n govgr-p-1 \n govgr-pt-1 \n govgr-pb-1 \n govgr-pr-1 \n govgr-pl-1 \n govgr-m-2 \n govgr-mt-2 \n govgr-mb-2 \n govgr-mr-2 \n govgr-ml-2 \n govgr-p-2 \n govgr-pt-2 \n govgr-pb-2 \n govgr-pr-2 \n govgr-pl-2 \n govgr-m-3 \n govgr-mt-3 \n govgr-mb-3 \n govgr-mr-3 \n govgr-ml-3 \n govgr-p-3 \n govgr-pt-3 \n govgr-pb-3 \n govgr-pr-3 \n govgr-pl-3 \n govgr-m-4 \n govgr-mt-4 \n govgr-mb-4 \n govgr-mr-4 \n govgr-ml-4 \n govgr-p-4 \n govgr-pt-4 \n govgr-pb-4 \n govgr-pr-4 \n govgr-pl-4 \n govgr-m-5 \n govgr-mt-5 \n govgr-mb-5 \n govgr-mr-5 \n govgr-ml-5 \n govgr-p-5 \n govgr-pt-5 \n govgr-pb-5 \n govgr-pr-5 \n govgr-pl-5 \n govgr-m-6 \n govgr-mt-6 \n govgr-mb-6 \n govgr-mr-6 \n govgr-ml-6 \n govgr-p-6 \n govgr-pt-6 \n govgr-pb-6 \n govgr-pr-6 \n govgr-pl-6 \n govgr-m-7 \n govgr-mt-7 \n govgr-mb-7 \n govgr-mr-7 \n govgr-ml-7 \n govgr-p-7 \n govgr-pt-7 \n govgr-pb-7 \n govgr-pr-7 \n govgr-pl-7 \n govgr-m-8 \n govgr-mt-8 \n govgr-mb-8 \n govgr-mr-8 \n govgr-ml-8 \n govgr-m-9 \n govgr-mt-9 \n govgr-mb-9 \n govgr-mr-9 \n govgr-ml-9 \n govgr-m-10 \n govgr-mt-10 \n govgr-mb-10 \n govgr-mr-10 \n govgr-ml-10 \n govgr-m-11 \n govgr-mt-11 \n govgr-mb-11 \n govgr-mr-11 \n govgr-ml-11 \n govgr-m-12 \n govgr-mt-12 \n govgr-mb-12 \n govgr-mr-12 \n govgr-ml-12 \n govgr-p-8 \n govgr-pt-8 \n govgr-pb-8 \n govgr-pr-8 \n govgr-pl-8 \n govgr-p-9 \n govgr-pt-9 \n govgr-pb-9 \n govgr-pr-9 \n govgr-pl-9 \n govgr-p-10\n govgr-pt-10\n govgr-pb-10\n govgr-pr-10\n govgr-pl-10\n govgr-p-11\n govgr-pt-11\n govgr-pb-11\n govgr-pr-11\n govgr-pl-11\n govgr-p-12\n govgr-pt-12\n govgr-pb-12\n govgr-pr-12\n govgr-pl-12\n govgr-print-hidden\n "
6
6
  });
7
7
  }
8
8
 
@@ -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 = ["className", "border", "children"];
4
4
  import React from 'react';
5
5
  import Base from '@digigov/react-core/Base';
6
6
  import clsx from 'clsx';
@@ -13,13 +13,15 @@ import clsx from 'clsx';
13
13
  // eslint-disable-next-line react/display-name
14
14
  export var AccordionSection = /*#__PURE__*/React.forwardRef(function AccordionSection(_ref, ref) {
15
15
  var className = _ref.className,
16
+ _ref$border = _ref.border,
17
+ border = _ref$border === void 0 ? true : _ref$border,
16
18
  children = _ref.children,
17
19
  props = _objectWithoutProperties(_ref, _excluded);
18
20
 
19
21
  return /*#__PURE__*/React.createElement(Base, _extends({
20
22
  as: "details",
21
23
  ref: ref,
22
- className: clsx(className, true && 'govgr-accordion__section')
24
+ className: clsx(className, !border && 'govgr-accordion__section--no-border', true && 'govgr-accordion__section')
23
25
  }, props), children);
24
26
  });
25
27
  export default AccordionSection;
@@ -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 = ["verticalAlign", "className", "children"];
4
4
  import React from 'react';
5
5
  import Base from '@digigov/react-core/Base';
6
6
  import clsx from 'clsx';
@@ -9,14 +9,16 @@ import clsx from 'clsx';
9
9
  * Use TableBody inside the Table component to provide for the table data.
10
10
  */
11
11
  export var TableBody = /*#__PURE__*/React.forwardRef(function TableBody(_ref, ref) {
12
- var className = _ref.className,
12
+ var _ref$verticalAlign = _ref.verticalAlign,
13
+ verticalAlign = _ref$verticalAlign === void 0 ? 'middle' : _ref$verticalAlign,
14
+ className = _ref.className,
13
15
  children = _ref.children,
14
16
  props = _objectWithoutProperties(_ref, _excluded);
15
17
 
16
18
  return /*#__PURE__*/React.createElement(Base, _extends({
17
19
  as: "tbody",
18
20
  ref: ref,
19
- className: clsx(className, true && 'govgr-table__body')
21
+ className: clsx(className, verticalAlign === 'bottom' && 'govgr-table__body--vertical-bottom', verticalAlign === 'top' && 'govgr-table__body--vertical-top', true && 'govgr-table__body')
20
22
  }, props), children);
21
23
  });
22
24
  export default TableBody;
@@ -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 = ["warning", "className", "children"];
4
4
  import React from 'react';
5
5
  import Base from '@digigov/react-core/Base';
6
6
  import clsx from 'clsx';
@@ -9,14 +9,16 @@ import clsx from 'clsx';
9
9
  * Use TableRow inside the Table component to provide a new row to the table.
10
10
  */
11
11
  export var TableRow = /*#__PURE__*/React.forwardRef(function TableRow(_ref, ref) {
12
- var className = _ref.className,
12
+ var _ref$warning = _ref.warning,
13
+ warning = _ref$warning === void 0 ? false : _ref$warning,
14
+ className = _ref.className,
13
15
  children = _ref.children,
14
16
  props = _objectWithoutProperties(_ref, _excluded);
15
17
 
16
18
  return /*#__PURE__*/React.createElement(Base, _extends({
17
19
  as: "tr",
18
20
  ref: ref,
19
- className: clsx(className, true && 'govgr-table__row')
21
+ className: clsx(className, warning && 'govgr-table__row--warning', true && 'govgr-table__row')
20
22
  }, props), children);
21
23
  });
22
24
  export default TableRow;
@@ -2,7 +2,7 @@ import React from 'react';
2
2
 
3
3
  function Unpurge() {
4
4
  return /*#__PURE__*/React.createElement("div", {
5
- className: "\n govgr-m-0 \n govgr-mt-0 \n govgr-mb-0 \n govgr-mr-0 \n govgr-ml-0 \n govgr-p-0 \n govgr-pt-0 \n govgr-pb-0 \n govgr-pr-0 \n govgr-pl-0 \n govgr-m-1 \n govgr-mt-1 \n govgr-mb-1 \n govgr-mr-1 \n govgr-ml-1 \n govgr-p-1 \n govgr-pt-1 \n govgr-pb-1 \n govgr-pr-1 \n govgr-pl-1 \n govgr-m-2 \n govgr-mt-2 \n govgr-mb-2 \n govgr-mr-2 \n govgr-ml-2 \n govgr-p-2 \n govgr-pt-2 \n govgr-pb-2 \n govgr-pr-2 \n govgr-pl-2 \n govgr-m-3 \n govgr-mt-3 \n govgr-mb-3 \n govgr-mr-3 \n govgr-ml-3 \n govgr-p-3 \n govgr-pt-3 \n govgr-pb-3 \n govgr-pr-3 \n govgr-pl-3 \n govgr-m-4 \n govgr-mt-4 \n govgr-mb-4 \n govgr-mr-4 \n govgr-ml-4 \n govgr-p-4 \n govgr-pt-4 \n govgr-pb-4 \n govgr-pr-4 \n govgr-pl-4 \n govgr-m-5 \n govgr-mt-5 \n govgr-mb-5 \n govgr-mr-5 \n govgr-ml-5 \n govgr-p-5 \n govgr-pt-5 \n govgr-pb-5 \n govgr-pr-5 \n govgr-pl-5 \n govgr-m-6 \n govgr-mt-6 \n govgr-mb-6 \n govgr-mr-6 \n govgr-ml-6 \n govgr-p-6 \n govgr-pt-6 \n govgr-pb-6 \n govgr-pr-6 \n govgr-pl-6 \n govgr-m-7 \n govgr-mt-7 \n govgr-mb-7 \n govgr-mr-7 \n govgr-ml-7 \n govgr-p-7 \n govgr-pt-7 \n govgr-pb-7 \n govgr-pr-7 \n govgr-pl-7 \n govgr-m-8 \n govgr-mt-8 \n govgr-mb-8 \n govgr-mr-8 \n govgr-ml-8 \n govgr-p-8 \n govgr-pt-8 \n govgr-pb-8 \n govgr-pr-8 \n govgr-pl-8 \n govgr-m-9 \n govgr-mt-9 \n govgr-mb-9 \n govgr-mr-9 \n govgr-ml-9 \n govgr-p-9 \n govgr-pt-9 \n govgr-pb-9 \n govgr-pr-9 \n govgr-pl-9 \n govgr-print-hidden\n "
5
+ className: "\n govgr-m-0 \n govgr-mt-0 \n govgr-mb-0 \n govgr-mr-0 \n govgr-ml-0 \n govgr-p-0 \n govgr-pt-0 \n govgr-pb-0 \n govgr-pr-0 \n govgr-pl-0 \n govgr-m-1 \n govgr-mt-1 \n govgr-mb-1 \n govgr-mr-1 \n govgr-ml-1 \n govgr-p-1 \n govgr-pt-1 \n govgr-pb-1 \n govgr-pr-1 \n govgr-pl-1 \n govgr-m-2 \n govgr-mt-2 \n govgr-mb-2 \n govgr-mr-2 \n govgr-ml-2 \n govgr-p-2 \n govgr-pt-2 \n govgr-pb-2 \n govgr-pr-2 \n govgr-pl-2 \n govgr-m-3 \n govgr-mt-3 \n govgr-mb-3 \n govgr-mr-3 \n govgr-ml-3 \n govgr-p-3 \n govgr-pt-3 \n govgr-pb-3 \n govgr-pr-3 \n govgr-pl-3 \n govgr-m-4 \n govgr-mt-4 \n govgr-mb-4 \n govgr-mr-4 \n govgr-ml-4 \n govgr-p-4 \n govgr-pt-4 \n govgr-pb-4 \n govgr-pr-4 \n govgr-pl-4 \n govgr-m-5 \n govgr-mt-5 \n govgr-mb-5 \n govgr-mr-5 \n govgr-ml-5 \n govgr-p-5 \n govgr-pt-5 \n govgr-pb-5 \n govgr-pr-5 \n govgr-pl-5 \n govgr-m-6 \n govgr-mt-6 \n govgr-mb-6 \n govgr-mr-6 \n govgr-ml-6 \n govgr-p-6 \n govgr-pt-6 \n govgr-pb-6 \n govgr-pr-6 \n govgr-pl-6 \n govgr-m-7 \n govgr-mt-7 \n govgr-mb-7 \n govgr-mr-7 \n govgr-ml-7 \n govgr-p-7 \n govgr-pt-7 \n govgr-pb-7 \n govgr-pr-7 \n govgr-pl-7 \n govgr-m-8 \n govgr-mt-8 \n govgr-mb-8 \n govgr-mr-8 \n govgr-ml-8 \n govgr-m-9 \n govgr-mt-9 \n govgr-mb-9 \n govgr-mr-9 \n govgr-ml-9 \n govgr-m-10 \n govgr-mt-10 \n govgr-mb-10 \n govgr-mr-10 \n govgr-ml-10 \n govgr-m-11 \n govgr-mt-11 \n govgr-mb-11 \n govgr-mr-11 \n govgr-ml-11 \n govgr-m-12 \n govgr-mt-12 \n govgr-mb-12 \n govgr-mr-12 \n govgr-ml-12 \n govgr-p-8 \n govgr-pt-8 \n govgr-pb-8 \n govgr-pr-8 \n govgr-pl-8 \n govgr-p-9 \n govgr-pt-9 \n govgr-pb-9 \n govgr-pr-9 \n govgr-pl-9 \n govgr-p-10\n govgr-pt-10\n govgr-pb-10\n govgr-pr-10\n govgr-pl-10\n govgr-p-11\n govgr-pt-11\n govgr-pb-11\n govgr-pr-11\n govgr-pl-11\n govgr-p-12\n govgr-pt-12\n govgr-pb-12\n govgr-pr-12\n govgr-pl-12\n govgr-print-hidden\n "
6
6
  });
7
7
  }
8
8
 
package/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Digigov v0.20.1
1
+ /** @license Digigov v0.21.0
2
2
  *
3
3
  * This source code is licensed under the BSD-2-Clause 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.20.1",
3
+ "version": "0.21.0",
4
4
  "description": "@digigov react core components",
5
5
  "author": "GRNET Developers <devs@lists.grnet.gr>",
6
6
  "license": "BSD-2-Clause",
@@ -11,7 +11,7 @@
11
11
  "directory": "dist"
12
12
  },
13
13
  "peerDependencies": {
14
- "@digigov/css": "0.32.1",
14
+ "@digigov/css": "0.33.0",
15
15
  "clsx": "1.1.1",
16
16
  "react": "^16.8.0 || ^17.0.0",
17
17
  "react-dom": "^16.8.0 || ^17.0.0"
@@ -7,6 +7,12 @@ export interface AccordionSectionProps extends BaseProps<'details'> {
7
7
  * Add this prop when an AccordionSection should be open.
8
8
  */
9
9
  open?: boolean;
10
+
11
+ /**
12
+ * border is optional. The default value is true.
13
+ * In order to remove top and bottom border, change this value to false.
14
+ */
15
+ border?: boolean;
10
16
  }
11
17
  /**
12
18
  * AccordionSection should be inside the Accordion component.
@@ -17,13 +23,17 @@ export interface AccordionSectionProps extends BaseProps<'details'> {
17
23
  export const AccordionSection = React.forwardRef<
18
24
  HTMLDetailsElement,
19
25
  AccordionSectionProps
20
- >(function AccordionSection({ className, children, ...props }, ref) {
26
+ >(function AccordionSection(
27
+ { className, border = true, children, ...props },
28
+ ref
29
+ ) {
21
30
  return (
22
31
  <Base
23
32
  as="details"
24
33
  ref={ref}
25
34
  className={clsx(className, {
26
35
  'govgr-accordion__section': true,
36
+ 'govgr-accordion__section--no-border': !border,
27
37
  })}
28
38
  {...props}
29
39
  >
@@ -2,20 +2,31 @@ import React from 'react';
2
2
  import Base, { BaseProps } from '@digigov/react-core/Base';
3
3
  import clsx from 'clsx';
4
4
 
5
- export interface TableBodyProps extends BaseProps<'tbody'> {}
5
+ export interface TableBodyProps extends BaseProps<'tbody'> {
6
+ /**
7
+ * verticalAlign is optional. Default value is 'middle'.
8
+ * This prop set the vertical align of the body's content.
9
+ */
10
+ verticalAlign?: 'middle' | 'top' | 'bottom';
11
+ }
6
12
  /**
7
13
  * Use TableBody inside the Table component to provide for the table data.
8
14
  */
9
15
  export const TableBody = React.forwardRef<
10
16
  HTMLTableSectionElement,
11
17
  TableBodyProps
12
- >(function TableBody({ className, children, ...props }, ref) {
18
+ >(function TableBody(
19
+ { verticalAlign = 'middle', className, children, ...props },
20
+ ref
21
+ ) {
13
22
  return (
14
23
  <Base
15
24
  as="tbody"
16
25
  ref={ref}
17
26
  className={clsx(className, {
18
27
  'govgr-table__body': true,
28
+ 'govgr-table__body--vertical-top': verticalAlign === 'top',
29
+ 'govgr-table__body--vertical-bottom': verticalAlign === 'bottom',
19
30
  })}
20
31
  {...props}
21
32
  >
@@ -2,18 +2,25 @@ import React from 'react';
2
2
  import Base, { BaseProps } from '@digigov/react-core/Base';
3
3
  import clsx from 'clsx';
4
4
 
5
- export interface TableRowProps extends BaseProps<'tr'> {}
5
+ export interface TableRowProps extends BaseProps<'tr'> {
6
+ /**
7
+ * warning is optional. Default value is false.
8
+ * Add the warning prop to add a warning line on the left of the row.
9
+ */
10
+ warning?: boolean;
11
+ }
6
12
  /**
7
13
  * Use TableRow inside the Table component to provide a new row to the table.
8
14
  */
9
15
  export const TableRow = React.forwardRef<HTMLTableRowElement, TableRowProps>(
10
- function TableRow({ className, children, ...props }, ref) {
16
+ function TableRow({ warning=false, className, children, ...props }, ref) {
11
17
  return (
12
18
  <Base
13
19
  as="tr"
14
20
  ref={ref}
15
21
  className={clsx(className, {
16
22
  'govgr-table__row': true,
23
+ 'govgr-table__row--warning': warning,
17
24
  })}
18
25
  {...props}
19
26
  >
@@ -89,21 +89,51 @@ function Unpurge() {
89
89
  govgr-mb-8
90
90
  govgr-mr-8
91
91
  govgr-ml-8
92
- govgr-p-8
93
- govgr-pt-8
94
- govgr-pb-8
95
- govgr-pr-8
96
- govgr-pl-8
97
92
  govgr-m-9
98
93
  govgr-mt-9
99
94
  govgr-mb-9
100
95
  govgr-mr-9
101
96
  govgr-ml-9
97
+ govgr-m-10
98
+ govgr-mt-10
99
+ govgr-mb-10
100
+ govgr-mr-10
101
+ govgr-ml-10
102
+ govgr-m-11
103
+ govgr-mt-11
104
+ govgr-mb-11
105
+ govgr-mr-11
106
+ govgr-ml-11
107
+ govgr-m-12
108
+ govgr-mt-12
109
+ govgr-mb-12
110
+ govgr-mr-12
111
+ govgr-ml-12
112
+ govgr-p-8
113
+ govgr-pt-8
114
+ govgr-pb-8
115
+ govgr-pr-8
116
+ govgr-pl-8
102
117
  govgr-p-9
103
118
  govgr-pt-9
104
119
  govgr-pb-9
105
120
  govgr-pr-9
106
121
  govgr-pl-9
122
+ govgr-p-10
123
+ govgr-pt-10
124
+ govgr-pb-10
125
+ govgr-pr-10
126
+ govgr-pl-10
127
+ govgr-p-11
128
+ govgr-pt-11
129
+ govgr-pb-11
130
+ govgr-pr-11
131
+ govgr-pl-11
132
+ govgr-p-12
133
+ govgr-pt-12
134
+ govgr-pb-12
135
+ govgr-pr-12
136
+ govgr-pl-12
107
137
  govgr-print-hidden
108
138
  `}
109
139
  ></div>