orcs-design-system 3.2.45 → 3.2.46

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.
@@ -1,29 +1,27 @@
1
1
  import React from "react";
2
2
  import Flex from ".";
3
3
  import Button from "../Button";
4
- import Spacer from "../Spacer";
5
4
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
6
5
  export default {
7
6
  title: "Components/Flex",
8
7
  component: Flex
9
8
  };
10
- export const basicFlex = () => /*#__PURE__*/_jsx(Flex, {
11
- children: /*#__PURE__*/_jsxs(Spacer, {
12
- mx: "s",
13
- children: [/*#__PURE__*/_jsx(Button, {
14
- children: "Button 1"
15
- }), /*#__PURE__*/_jsx(Button, {
16
- children: "Button 2"
17
- }), /*#__PURE__*/_jsx(Button, {
18
- children: "Button 3"
19
- }), /*#__PURE__*/_jsx(Button, {
20
- children: "Button 4"
21
- }), /*#__PURE__*/_jsx(Button, {
22
- children: "Button 5"
23
- }), /*#__PURE__*/_jsx(Button, {
24
- children: "Button 6"
25
- })]
26
- })
9
+ export const basicFlex = () => /*#__PURE__*/_jsxs(Flex, {
10
+ gap: "r",
11
+ flexWrap: "wrap",
12
+ children: [/*#__PURE__*/_jsx(Button, {
13
+ children: "Button 1"
14
+ }), /*#__PURE__*/_jsx(Button, {
15
+ children: "Button 2"
16
+ }), /*#__PURE__*/_jsx(Button, {
17
+ children: "Button 3"
18
+ }), /*#__PURE__*/_jsx(Button, {
19
+ children: "Button 4"
20
+ }), /*#__PURE__*/_jsx(Button, {
21
+ children: "Button 5"
22
+ }), /*#__PURE__*/_jsx(Button, {
23
+ children: "Button 6"
24
+ })]
27
25
  });
28
26
  basicFlex.storyName = "Basic Flex";
29
27
  basicFlex.__docgenInfo = {
@@ -13,8 +13,9 @@ const FlexWrapper = styled("div").withConfig({
13
13
  componentId: "sc-1f3kfw7-0"
14
14
  }).attrs(props => ({
15
15
  "data-testid": props.dataTestId ? props.dataTestId : props["data-testid"] ? props["data-testid"] : null
16
- }))(css({
17
- boxSizing: "border-box"
16
+ }))(props => css({
17
+ boxSizing: "border-box",
18
+ gap: props.gap
18
19
  }), FlexStyles);
19
20
  const FlexItem = styled("div").withConfig({
20
21
  displayName: "Flex__FlexItem",
@@ -25,10 +26,12 @@ const FlexItem = styled("div").withConfig({
25
26
  export default function Flex(_ref) {
26
27
  let {
27
28
  children,
29
+ gap,
28
30
  theme,
29
31
  ...props
30
32
  } = _ref;
31
33
  const component = /*#__PURE__*/_jsx(FlexWrapper, {
34
+ gap: gap,
32
35
  ...props,
33
36
  children: children
34
37
  });
@@ -49,6 +52,7 @@ export default function Flex(_ref) {
49
52
  Flex.propTypes = {
50
53
  /** Children of `Flex` are taken as node elements */
51
54
  children: PropTypes.node,
55
+ gap: PropTypes.string,
52
56
  theme: PropTypes.object,
53
57
  ...styledPropTypes.space,
54
58
  ...styledPropTypes.layout,
@@ -109,6 +113,13 @@ Flex.__docgenInfo = {
109
113
  },
110
114
  "required": false
111
115
  },
116
+ "gap": {
117
+ "description": "",
118
+ "type": {
119
+ "name": "string"
120
+ },
121
+ "required": false
122
+ },
112
123
  "theme": {
113
124
  "description": "",
114
125
  "type": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orcs-design-system",
3
- "version": "3.2.45",
3
+ "version": "3.2.46",
4
4
  "engines": {
5
5
  "node": "20.12.2"
6
6
  },