@digigov/ui 1.0.0-079f34f3d → 1.0.0-290a96e2

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.
@@ -8,7 +8,7 @@
8
8
  {
9
9
  "name": "hover",
10
10
  "args": {
11
- "selector": "html>body>div:nth-child(5)>section>div>div>main>a"
11
+ "selector": "html>body>div:nth-child(5)>section>div>main>a"
12
12
  }
13
13
  }
14
14
  ],
@@ -8,7 +8,7 @@
8
8
  {
9
9
  "name": "hover",
10
10
  "args": {
11
- "selector": "html>body>div:nth-child(5)>section>div>div>main>a"
11
+ "selector": "html>body>div:nth-child(5)>section>div>main>a"
12
12
  }
13
13
  }
14
14
  ],
@@ -1,5 +1,5 @@
1
- export * from '@digigov/react-core/Icon';
1
+ export * from '@digigov/react-icons/Icon';
2
2
  export * from '@digigov/react-icons';
3
3
  export * from '@digigov/react-icons/icons';
4
- import Icon from '@digigov/react-core/Icon';
4
+ import Icon from '@digigov/react-icons/Icon';
5
5
  export default Icon;
@@ -5,4 +5,5 @@ export default {
5
5
  displayName: 'Grid'
6
6
  };
7
7
  export * from '@digigov/ui/layouts/Grid/__stories__/Default';
8
+ export * from '@digigov/ui/layouts/Grid/__stories__/ResponsiveSpacing';
8
9
  export * from '@digigov/ui/layouts/Grid/__stories__/Inline';
@@ -0,0 +1,79 @@
1
+ import React from 'react';
2
+ import { Card } from '@digigov/ui/content/Card';
3
+ import { Grid } from '@digigov/ui/layouts/Grid';
4
+
5
+ var _ref = /*#__PURE__*/React.createElement(Grid, {
6
+ role: "row",
7
+ xs: 12,
8
+ sm: 6,
9
+ md: 4
10
+ }, /*#__PURE__*/React.createElement(Card, {
11
+ variant: "border",
12
+ role: "gridcell"
13
+ }, "1"));
14
+
15
+ var _ref2 = /*#__PURE__*/React.createElement(Grid, {
16
+ role: "row",
17
+ xs: 12,
18
+ sm: 6,
19
+ md: 4
20
+ }, /*#__PURE__*/React.createElement(Card, {
21
+ variant: "border",
22
+ role: "gridcell"
23
+ }, "1"));
24
+
25
+ var _ref3 = /*#__PURE__*/React.createElement(Grid, {
26
+ role: "row",
27
+ xs: 12,
28
+ sm: 6,
29
+ md: 4
30
+ }, /*#__PURE__*/React.createElement(Card, {
31
+ variant: "border",
32
+ role: "gridcell"
33
+ }, "1"));
34
+
35
+ var _ref4 = /*#__PURE__*/React.createElement(Grid, {
36
+ role: "row",
37
+ xs: 12,
38
+ sm: 6,
39
+ md: 4
40
+ }, /*#__PURE__*/React.createElement(Card, {
41
+ variant: "border",
42
+ role: "gridcell"
43
+ }, "1"));
44
+
45
+ var _ref5 = /*#__PURE__*/React.createElement(Grid, {
46
+ role: "row",
47
+ xs: 12,
48
+ sm: 6,
49
+ md: 4
50
+ }, /*#__PURE__*/React.createElement(Card, {
51
+ variant: "border",
52
+ role: "gridcell"
53
+ }, "1"));
54
+
55
+ var _ref6 = /*#__PURE__*/React.createElement(Grid, {
56
+ role: "row",
57
+ xs: 12,
58
+ sm: 6,
59
+ md: 4
60
+ }, /*#__PURE__*/React.createElement(Card, {
61
+ variant: "border",
62
+ role: "gridcell"
63
+ }, "1"));
64
+
65
+ export var ResponsiveSpacing = function ResponsiveSpacing() {
66
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Grid, {
67
+ role: "grid",
68
+ "aria-label": "grid-example",
69
+ container: true,
70
+ spacing: {
71
+ xs: 1,
72
+ sm: 4,
73
+ md: 6,
74
+ lg: 8,
75
+ xl: 12
76
+ }
77
+ }, _ref, _ref2, _ref3, _ref4, _ref5, _ref6));
78
+ };
79
+ export default ResponsiveSpacing;
@@ -8,7 +8,7 @@
8
8
  {
9
9
  "name": "hover",
10
10
  "args": {
11
- "selector": "html>body>div:nth-child(5)>section>div>div>main>a"
11
+ "selector": "html>body>div:nth-child(5)>section>div>main>a"
12
12
  }
13
13
  }
14
14
  ],
@@ -1,5 +1,5 @@
1
- export * from '@digigov/react-core/Icon';
1
+ export * from '@digigov/react-icons/Icon';
2
2
  export * from '@digigov/react-icons';
3
3
  export * from '@digigov/react-icons/icons';
4
- import Icon from '@digigov/react-core/Icon';
4
+ import Icon from '@digigov/react-icons/Icon';
5
5
  export default Icon;
package/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Digigov v1.0.0-079f34f3d
1
+ /** @license Digigov v1.0.0-290a96e2
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.
@@ -5,4 +5,5 @@ export default {
5
5
  displayName: 'Grid'
6
6
  };
7
7
  export * from '@digigov/ui/layouts/Grid/__stories__/Default';
8
+ export * from '@digigov/ui/layouts/Grid/__stories__/ResponsiveSpacing';
8
9
  export * from '@digigov/ui/layouts/Grid/__stories__/Inline';
@@ -0,0 +1,79 @@
1
+ import React from 'react';
2
+ import { Card } from '@digigov/ui/content/Card';
3
+ import { Grid } from '@digigov/ui/layouts/Grid';
4
+
5
+ var _ref = /*#__PURE__*/React.createElement(Grid, {
6
+ role: "row",
7
+ xs: 12,
8
+ sm: 6,
9
+ md: 4
10
+ }, /*#__PURE__*/React.createElement(Card, {
11
+ variant: "border",
12
+ role: "gridcell"
13
+ }, "1"));
14
+
15
+ var _ref2 = /*#__PURE__*/React.createElement(Grid, {
16
+ role: "row",
17
+ xs: 12,
18
+ sm: 6,
19
+ md: 4
20
+ }, /*#__PURE__*/React.createElement(Card, {
21
+ variant: "border",
22
+ role: "gridcell"
23
+ }, "1"));
24
+
25
+ var _ref3 = /*#__PURE__*/React.createElement(Grid, {
26
+ role: "row",
27
+ xs: 12,
28
+ sm: 6,
29
+ md: 4
30
+ }, /*#__PURE__*/React.createElement(Card, {
31
+ variant: "border",
32
+ role: "gridcell"
33
+ }, "1"));
34
+
35
+ var _ref4 = /*#__PURE__*/React.createElement(Grid, {
36
+ role: "row",
37
+ xs: 12,
38
+ sm: 6,
39
+ md: 4
40
+ }, /*#__PURE__*/React.createElement(Card, {
41
+ variant: "border",
42
+ role: "gridcell"
43
+ }, "1"));
44
+
45
+ var _ref5 = /*#__PURE__*/React.createElement(Grid, {
46
+ role: "row",
47
+ xs: 12,
48
+ sm: 6,
49
+ md: 4
50
+ }, /*#__PURE__*/React.createElement(Card, {
51
+ variant: "border",
52
+ role: "gridcell"
53
+ }, "1"));
54
+
55
+ var _ref6 = /*#__PURE__*/React.createElement(Grid, {
56
+ role: "row",
57
+ xs: 12,
58
+ sm: 6,
59
+ md: 4
60
+ }, /*#__PURE__*/React.createElement(Card, {
61
+ variant: "border",
62
+ role: "gridcell"
63
+ }, "1"));
64
+
65
+ export var ResponsiveSpacing = function ResponsiveSpacing() {
66
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Grid, {
67
+ role: "grid",
68
+ "aria-label": "grid-example",
69
+ container: true,
70
+ spacing: {
71
+ xs: 1,
72
+ sm: 4,
73
+ md: 6,
74
+ lg: 8,
75
+ xl: 12
76
+ }
77
+ }, _ref, _ref2, _ref3, _ref4, _ref5, _ref6));
78
+ };
79
+ export default ResponsiveSpacing;
@@ -1,5 +1,5 @@
1
- export * from '@digigov/react-core/Icon';
1
+ export * from '@digigov/react-icons/Icon';
2
2
  export * from '@digigov/react-icons';
3
3
  export * from '@digigov/react-icons/icons';
4
- import Icon from '@digigov/react-core/Icon';
4
+ import Icon from '@digigov/react-icons/Icon';
5
5
  export default Icon;
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "__esModule", {
8
8
  var _exportNames = {};
9
9
  exports["default"] = void 0;
10
10
 
11
- var _Icon = _interopRequireWildcard(require("@digigov/react-core/Icon"));
11
+ var _Icon = _interopRequireWildcard(require("@digigov/react-icons/Icon"));
12
12
 
13
13
  Object.keys(_Icon).forEach(function (key) {
14
14
  if (key === "default" || key === "__esModule") return;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import Container from '@digigov/react-core/Container';
3
- export declare const Content: import("react").ForwardRefExoticComponent<Pick<import("@digigov/react-core/Container").ContainerProps, "children" | "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" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "margin" | "marginTop" | "marginBottom" | "marginLeft" | "marginRight" | "padding" | "paddingTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "printHidden" | "printVisible" | "xsUpHidden" | "smUpHidden" | "mdUpHidden" | "lgUpHidden" | "xlUpHidden" | "xsHidden" | "smHidden" | "mdHidden" | "lgHidden" | "xlHidden" | "grid" | "fullWidth"> & import("react").RefAttributes<HTMLDivElement>>;
3
+ export declare const Content: import("react").ForwardRefExoticComponent<Pick<import("@digigov/react-core/Container").ContainerProps, "children" | "slot" | "style" | "title" | "as" | "className" | "color" | "id" | "lang" | "role" | "tabIndex" | "spacing" | "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" | "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" | "inline" | "margin" | "marginTop" | "marginBottom" | "marginLeft" | "marginRight" | "padding" | "paddingTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "printHidden" | "printVisible" | "xsUpHidden" | "smUpHidden" | "mdUpHidden" | "lgUpHidden" | "xlUpHidden" | "xsHidden" | "smHidden" | "mdHidden" | "lgHidden" | "xlHidden" | "grid" | "xs" | "sm" | "md" | "lg" | "xl" | "container" | "item" | "fullWidth"> & import("react").RefAttributes<HTMLDivElement>>;
4
4
  export default Content;
5
5
  export { Container };
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import Aside from '@digigov/react-core/Aside';
3
- export declare const Side: import("react").ForwardRefExoticComponent<Pick<import("@digigov/react-core/Aside").AsideProps, "children" | "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" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "margin" | "marginTop" | "marginBottom" | "marginLeft" | "marginRight" | "padding" | "paddingTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "printHidden" | "printVisible" | "xsUpHidden" | "smUpHidden" | "mdUpHidden" | "lgUpHidden" | "xlUpHidden" | "xsHidden" | "smHidden" | "mdHidden" | "lgHidden" | "xlHidden"> & import("react").RefAttributes<HTMLElement>>;
3
+ export declare const Side: import("react").ForwardRefExoticComponent<Pick<import("@digigov/react-core/Aside").AsideProps, "children" | "slot" | "style" | "title" | "as" | "className" | "color" | "id" | "lang" | "role" | "tabIndex" | "spacing" | "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" | "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" | "inline" | "margin" | "marginTop" | "marginBottom" | "marginLeft" | "marginRight" | "padding" | "paddingTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "printHidden" | "printVisible" | "xsUpHidden" | "smUpHidden" | "mdUpHidden" | "lgUpHidden" | "xlUpHidden" | "xsHidden" | "smHidden" | "mdHidden" | "lgHidden" | "xlHidden" | "xs" | "sm" | "md" | "lg" | "xl" | "container" | "item"> & import("react").RefAttributes<HTMLElement>>;
4
4
  export default Side;
5
5
  export { Aside };
@@ -5,5 +5,6 @@ declare namespace _default {
5
5
  }
6
6
  export default _default;
7
7
  export * from "@digigov/ui/layouts/Grid/__stories__/Default";
8
+ export * from "@digigov/ui/layouts/Grid/__stories__/ResponsiveSpacing";
8
9
  export * from "@digigov/ui/layouts/Grid/__stories__/Inline";
9
10
  import Grid from "@digigov/ui/layouts/Grid";
@@ -24,6 +24,20 @@ Object.keys(_Default).forEach(function (key) {
24
24
  });
25
25
  });
26
26
 
27
+ var _ResponsiveSpacing = require("@digigov/ui/layouts/Grid/__stories__/ResponsiveSpacing");
28
+
29
+ Object.keys(_ResponsiveSpacing).forEach(function (key) {
30
+ if (key === "default" || key === "__esModule") return;
31
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
32
+ if (key in exports && exports[key] === _ResponsiveSpacing[key]) return;
33
+ Object.defineProperty(exports, key, {
34
+ enumerable: true,
35
+ get: function get() {
36
+ return _ResponsiveSpacing[key];
37
+ }
38
+ });
39
+ });
40
+
27
41
  var _Inline = require("@digigov/ui/layouts/Grid/__stories__/Inline");
28
42
 
29
43
  Object.keys(_Inline).forEach(function (key) {
@@ -0,0 +1,2 @@
1
+ export declare const ResponsiveSpacing: () => JSX.Element;
2
+ export default ResponsiveSpacing;
@@ -0,0 +1,93 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = exports.ResponsiveSpacing = void 0;
9
+
10
+ var _react = _interopRequireDefault(require("react"));
11
+
12
+ var _Card = require("@digigov/ui/content/Card");
13
+
14
+ var _Grid = require("@digigov/ui/layouts/Grid");
15
+
16
+ var _ref = /*#__PURE__*/_react["default"].createElement(_Grid.Grid, {
17
+ role: "row",
18
+ xs: 12,
19
+ sm: 6,
20
+ md: 4
21
+ }, /*#__PURE__*/_react["default"].createElement(_Card.Card, {
22
+ variant: "border",
23
+ role: "gridcell"
24
+ }, "1"));
25
+
26
+ var _ref2 = /*#__PURE__*/_react["default"].createElement(_Grid.Grid, {
27
+ role: "row",
28
+ xs: 12,
29
+ sm: 6,
30
+ md: 4
31
+ }, /*#__PURE__*/_react["default"].createElement(_Card.Card, {
32
+ variant: "border",
33
+ role: "gridcell"
34
+ }, "1"));
35
+
36
+ var _ref3 = /*#__PURE__*/_react["default"].createElement(_Grid.Grid, {
37
+ role: "row",
38
+ xs: 12,
39
+ sm: 6,
40
+ md: 4
41
+ }, /*#__PURE__*/_react["default"].createElement(_Card.Card, {
42
+ variant: "border",
43
+ role: "gridcell"
44
+ }, "1"));
45
+
46
+ var _ref4 = /*#__PURE__*/_react["default"].createElement(_Grid.Grid, {
47
+ role: "row",
48
+ xs: 12,
49
+ sm: 6,
50
+ md: 4
51
+ }, /*#__PURE__*/_react["default"].createElement(_Card.Card, {
52
+ variant: "border",
53
+ role: "gridcell"
54
+ }, "1"));
55
+
56
+ var _ref5 = /*#__PURE__*/_react["default"].createElement(_Grid.Grid, {
57
+ role: "row",
58
+ xs: 12,
59
+ sm: 6,
60
+ md: 4
61
+ }, /*#__PURE__*/_react["default"].createElement(_Card.Card, {
62
+ variant: "border",
63
+ role: "gridcell"
64
+ }, "1"));
65
+
66
+ var _ref6 = /*#__PURE__*/_react["default"].createElement(_Grid.Grid, {
67
+ role: "row",
68
+ xs: 12,
69
+ sm: 6,
70
+ md: 4
71
+ }, /*#__PURE__*/_react["default"].createElement(_Card.Card, {
72
+ variant: "border",
73
+ role: "gridcell"
74
+ }, "1"));
75
+
76
+ var ResponsiveSpacing = function ResponsiveSpacing() {
77
+ return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_Grid.Grid, {
78
+ role: "grid",
79
+ "aria-label": "grid-example",
80
+ container: true,
81
+ spacing: {
82
+ xs: 1,
83
+ sm: 4,
84
+ md: 6,
85
+ lg: 8,
86
+ xl: 12
87
+ }
88
+ }, _ref, _ref2, _ref3, _ref4, _ref5, _ref6));
89
+ };
90
+
91
+ exports.ResponsiveSpacing = ResponsiveSpacing;
92
+ var _default = ResponsiveSpacing;
93
+ exports["default"] = _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digigov/ui",
3
- "version": "1.0.0-079f34f3d",
3
+ "version": "1.0.0-290a96e2",
4
4
  "description": "@digigov reusable components toolkit",
5
5
  "main": "./index.js",
6
6
  "module": "./esm/index.js",
@@ -13,7 +13,7 @@
13
13
  "react-query": "2.26.4",
14
14
  "yup": "0.32.11",
15
15
  "publint": "0.1.8",
16
- "@digigov/react-icons": "1.0.0-079f34f3d"
16
+ "@digigov/react-icons": "1.0.0-290a96e2"
17
17
  },
18
18
  "peerDependencies": {
19
19
  "@material-ui/core": "4.11.3",
@@ -21,7 +21,7 @@
21
21
  "clsx": "1.1.1",
22
22
  "react": "^16.8.0 || ^17.0.0",
23
23
  "react-dom": "^16.8.0 || ^17.0.0",
24
- "@digigov/react-core": "1.0.0-079f34f3d"
24
+ "@digigov/react-core": "1.0.0-290a96e2"
25
25
  },
26
26
  "gitHead": "c903a46306f77f55ad7fc4d2e274006f39a6c871",
27
27
  "private": false,
@@ -8,7 +8,7 @@
8
8
  {
9
9
  "name": "hover",
10
10
  "args": {
11
- "selector": "html>body>div:nth-child(5)>section>div>div>main>a"
11
+ "selector": "html>body>div:nth-child(5)>section>div>main>a"
12
12
  }
13
13
  }
14
14
  ],
@@ -1,6 +1,6 @@
1
- export * from '@digigov/react-core/Icon';
1
+ export * from '@digigov/react-icons/Icon';
2
2
  export * from '@digigov/react-icons';
3
3
  export * from '@digigov/react-icons/icons';
4
4
 
5
- import Icon from '@digigov/react-core/Icon';
5
+ import Icon from '@digigov/react-icons/Icon';
6
6
  export default Icon;
@@ -5,4 +5,5 @@ export default {
5
5
  displayName: 'Grid',
6
6
  };
7
7
  export * from '@digigov/ui/layouts/Grid/__stories__/Default';
8
+ export * from '@digigov/ui/layouts/Grid/__stories__/ResponsiveSpacing';
8
9
  export * from '@digigov/ui/layouts/Grid/__stories__/Inline';
@@ -0,0 +1,43 @@
1
+ import React from 'react';
2
+ import { Card } from '@digigov/ui/content/Card';
3
+ import { Grid } from '@digigov/ui/layouts/Grid';
4
+
5
+ export const ResponsiveSpacing = () => {
6
+ return (
7
+ <>
8
+ <Grid role="grid" aria-label="grid-example" container spacing={{xs:1, sm:4, md:6, lg:8, xl:12}}>
9
+ <Grid role="row" xs={12} sm={6} md={4}>
10
+ <Card variant="border" role="gridcell">
11
+ 1
12
+ </Card>
13
+ </Grid>
14
+ <Grid role="row" xs={12} sm={6} md={4}>
15
+ <Card variant="border" role="gridcell">
16
+ 1
17
+ </Card>
18
+ </Grid>
19
+ <Grid role="row" xs={12} sm={6} md={4}>
20
+ <Card variant="border" role="gridcell">
21
+ 1
22
+ </Card>
23
+ </Grid>
24
+ <Grid role="row" xs={12} sm={6} md={4}>
25
+ <Card variant="border" role="gridcell">
26
+ 1
27
+ </Card>
28
+ </Grid>
29
+ <Grid role="row" xs={12} sm={6} md={4}>
30
+ <Card variant="border" role="gridcell">
31
+ 1
32
+ </Card>
33
+ </Grid>
34
+ <Grid role="row" xs={12} sm={6} md={4}>
35
+ <Card variant="border" role="gridcell">
36
+ 1
37
+ </Card>
38
+ </Grid>
39
+ </Grid>
40
+ </>
41
+ );
42
+ };
43
+ export default ResponsiveSpacing;