@citygross/components 0.8.173 → 0.8.174

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,7 +1,9 @@
1
1
  import React from 'react';
2
2
  export declare type TFlex = {
3
+ alignItems?: 'baseline' | 'center' | 'flex-start' | 'flex-end' | 'stretch';
3
4
  children: React.ReactNode;
4
5
  gap?: number;
6
+ justifyContent?: 'center' | 'flex-start' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly';
5
7
  row?: boolean;
6
8
  } & React.HTMLAttributes<HTMLDivElement>;
7
9
  export declare const Flex: ({ children, ...props }: TFlex) => JSX.Element;
@@ -9,12 +9,18 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
9
9
 
10
10
  var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
11
11
 
12
- var Flex = styled__default["default"].div(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject(["\n display: flex;\n flex-direction: ", ";\n gap: ", "px;\n"], ["\n display: flex;\n flex-direction: ", ";\n gap: ", "px;\n"])), function (_a) {
12
+ var Flex = styled__default["default"].div(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject(["\n display: flex;\n align-items: ", ";\n flex-direction: ", ";\n gap: ", "px;\n justify-content: ", ";\n"], ["\n display: flex;\n align-items: ", ";\n flex-direction: ", ";\n gap: ", "px;\n justify-content: ", ";\n"])), function (_a) {
13
+ var alignItems = _a.alignItems;
14
+ return alignItems !== null && alignItems !== void 0 ? alignItems : 'center';
15
+ }, function (_a) {
13
16
  var row = _a.row;
14
17
  return (row ? 'row' : 'column');
15
18
  }, function (_a) {
16
19
  var gap = _a.gap;
17
20
  return gap !== null && gap !== void 0 ? gap : 0;
21
+ }, function (_a) {
22
+ var justifyContent = _a.justifyContent;
23
+ return justifyContent !== null && justifyContent !== void 0 ? justifyContent : 'center';
18
24
  });
19
25
  var templateObject_1;
20
26
 
@@ -1 +1 @@
1
- {"version":3,"file":"Flex.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"Flex.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,12 +1,18 @@
1
1
  import { __makeTemplateObject } from '../../../../_virtual/_tslib.js';
2
2
  import styled from 'styled-components';
3
3
 
4
- var Flex = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n flex-direction: ", ";\n gap: ", "px;\n"], ["\n display: flex;\n flex-direction: ", ";\n gap: ", "px;\n"])), function (_a) {
4
+ var Flex = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n align-items: ", ";\n flex-direction: ", ";\n gap: ", "px;\n justify-content: ", ";\n"], ["\n display: flex;\n align-items: ", ";\n flex-direction: ", ";\n gap: ", "px;\n justify-content: ", ";\n"])), function (_a) {
5
+ var alignItems = _a.alignItems;
6
+ return alignItems !== null && alignItems !== void 0 ? alignItems : 'center';
7
+ }, function (_a) {
5
8
  var row = _a.row;
6
9
  return (row ? 'row' : 'column');
7
10
  }, function (_a) {
8
11
  var gap = _a.gap;
9
12
  return gap !== null && gap !== void 0 ? gap : 0;
13
+ }, function (_a) {
14
+ var justifyContent = _a.justifyContent;
15
+ return justifyContent !== null && justifyContent !== void 0 ? justifyContent : 'center';
10
16
  });
11
17
  var templateObject_1;
12
18
 
@@ -1 +1 @@
1
- {"version":3,"file":"Flex.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"Flex.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@citygross/components",
3
- "version": "0.8.173",
3
+ "version": "0.8.174",
4
4
  "license": "ISC",
5
5
  "sideEffects": false,
6
6
  "main": "./build/cjs/components/src/index.js",
@@ -74,5 +74,5 @@
74
74
  "react-slick": "^0.30.1",
75
75
  "slick-carousel": "^1.8.1"
76
76
  },
77
- "gitHead": "5406a4bdbe2a92b1f3f687fd11e64cc023525077"
77
+ "gitHead": "57c68282f7d418e4f0b323a1dd79fc23c48b3e89"
78
78
  }