@citygross/components 0.7.99 → 0.7.100

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.
@@ -5,5 +5,4 @@ export declare type TSlideInOutContainer = {
5
5
  slideFrom?: 'left' | 'right';
6
6
  isInitial?: boolean;
7
7
  };
8
- declare const SlideInOutContainer: ({ slideFrom, isVisible, isInitial, children }: TSlideInOutContainer) => JSX.Element;
9
- export default SlideInOutContainer;
8
+ export declare const SlideInOutContainer: ({ slideFrom, isVisible, isInitial, children }: TSlideInOutContainer) => JSX.Element;
@@ -1,7 +1,6 @@
1
- /// <reference types="react" />
2
1
  import { Story } from '@storybook/react';
3
2
  declare const _default: {
4
- component: ({ slideFrom, isVisible, isInitial, children }: import("./SlideInOutContainer").TSlideInOutContainer) => JSX.Element;
3
+ component: any;
5
4
  title: string;
6
5
  };
7
6
  export default _default;
@@ -0,0 +1,21 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var framerMotion = require('framer-motion');
6
+ var React = require('react');
7
+ var SlideInOutContainer_styles = require('./SlideInOutContainer.styles.js');
8
+
9
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
10
+
11
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
12
+
13
+ var SlideInOutContainer = function (_a) {
14
+ var _b = _a.slideFrom, slideFrom = _b === void 0 ? 'right' : _b, isVisible = _a.isVisible, isInitial = _a.isInitial, children = _a.children;
15
+ return (React__default["default"].createElement(framerMotion.AnimatePresence, null, isVisible && (React__default["default"].createElement(SlideInOutContainer_styles.SideModalContainer, { slideFrom: slideFrom, transition: { type: 'just' }, onClick: function (e) { return e.stopPropagation(); }, initial: {
16
+ x: isInitial ? 0 : slideFrom === 'left' ? '-100%' : '100%'
17
+ }, animate: { x: 0 }, exit: { x: slideFrom === 'left' ? '-100%' : '100%' } }, children))));
18
+ };
19
+
20
+ exports.SlideInOutContainer = SlideInOutContainer;
21
+ //# sourceMappingURL=SlideInOutContainer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SlideInOutContainer.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;"}
@@ -1,5 +1,7 @@
1
1
  'use strict';
2
2
 
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
3
5
  var _tslib = require('../../../../_virtual/_tslib.js');
4
6
  var framerMotion = require('framer-motion');
5
7
  var styled = require('styled-components');
@@ -8,9 +10,11 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
8
10
 
9
11
  var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
10
12
 
11
- styled__default["default"](framerMotion.motion.div)(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject(["\n width: 100%;\n ", ";\n position: absolute;\n ", ";\n top: 0;\n\n overflow: auto;\n -ms-overflow-style: none;\n scrollbar-width: none;\n &::-webkit-scrollbar {\n display: none;\n }\n"], ["\n width: 100%;\n ", ";\n position: absolute;\n ", ";\n top: 0;\n\n overflow: auto;\n -ms-overflow-style: none;\n scrollbar-width: none;\n &::-webkit-scrollbar {\n display: none;\n }\n"])), function (_a) {
13
+ var SideModalContainer = styled__default["default"](framerMotion.motion.div)(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject(["\n width: 100%;\n ", ";\n position: absolute;\n ", ";\n top: 0;\n\n overflow: auto;\n -ms-overflow-style: none;\n scrollbar-width: none;\n &::-webkit-scrollbar {\n display: none;\n }\n"], ["\n width: 100%;\n ", ";\n position: absolute;\n ", ";\n top: 0;\n\n overflow: auto;\n -ms-overflow-style: none;\n scrollbar-width: none;\n &::-webkit-scrollbar {\n display: none;\n }\n"])), function (_a) {
12
14
  var maxWidth = _a.maxWidth;
13
15
  return maxWidth && "max-width:".concat(maxWidth);
14
16
  }, function (props) { return ((props === null || props === void 0 ? void 0 : props.slideFrom) === 'left' ? "left: 0px" : 'right: 0px'); });
15
17
  var templateObject_1;
18
+
19
+ exports.SideModalContainer = SideModalContainer;
16
20
  //# sourceMappingURL=SlideInOutContainer.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SlideInOutContainer.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"SlideInOutContainer.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
@@ -74,9 +74,7 @@ var Dropdown = require('./components/Dropdown/Dropdown.js');
74
74
  var SearchListItem = require('./components/SearchListItem/SearchListItem.js');
75
75
  var MenuListHeader = require('./components/MenuListItem/MenuListHeader.js');
76
76
  var MenuListItem = require('./components/MenuListItem/MenuListItem.js');
77
- require('framer-motion');
78
- require('react');
79
- require('./components/SlideInOutContainer/SlideInOutContainer.styles.js');
77
+ var SlideInOutContainer = require('./components/SlideInOutContainer/SlideInOutContainer.js');
80
78
 
81
79
 
82
80
 
@@ -183,4 +181,5 @@ exports.Dropdown = Dropdown.Dropdown;
183
181
  exports.SearchListItem = SearchListItem.SearchListItem;
184
182
  exports.MenuListHeader = MenuListHeader.MenuListHeader;
185
183
  exports.MenuListItem = MenuListItem.MenuListItem;
184
+ exports.SlideInOutContainer = SlideInOutContainer.SlideInOutContainer;
186
185
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,13 @@
1
+ import { AnimatePresence } from 'framer-motion';
2
+ import React from 'react';
3
+ import { SideModalContainer } from './SlideInOutContainer.styles.js';
4
+
5
+ var SlideInOutContainer = function (_a) {
6
+ var _b = _a.slideFrom, slideFrom = _b === void 0 ? 'right' : _b, isVisible = _a.isVisible, isInitial = _a.isInitial, children = _a.children;
7
+ return (React.createElement(AnimatePresence, null, isVisible && (React.createElement(SideModalContainer, { slideFrom: slideFrom, transition: { type: 'just' }, onClick: function (e) { return e.stopPropagation(); }, initial: {
8
+ x: isInitial ? 0 : slideFrom === 'left' ? '-100%' : '100%'
9
+ }, animate: { x: 0 }, exit: { x: slideFrom === 'left' ? '-100%' : '100%' } }, children))));
10
+ };
11
+
12
+ export { SlideInOutContainer };
13
+ //# sourceMappingURL=SlideInOutContainer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SlideInOutContainer.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
@@ -2,9 +2,11 @@ import { __makeTemplateObject } from '../../../../_virtual/_tslib.js';
2
2
  import { motion } from 'framer-motion';
3
3
  import styled from 'styled-components';
4
4
 
5
- styled(motion.div)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n ", ";\n position: absolute;\n ", ";\n top: 0;\n\n overflow: auto;\n -ms-overflow-style: none;\n scrollbar-width: none;\n &::-webkit-scrollbar {\n display: none;\n }\n"], ["\n width: 100%;\n ", ";\n position: absolute;\n ", ";\n top: 0;\n\n overflow: auto;\n -ms-overflow-style: none;\n scrollbar-width: none;\n &::-webkit-scrollbar {\n display: none;\n }\n"])), function (_a) {
5
+ var SideModalContainer = styled(motion.div)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n ", ";\n position: absolute;\n ", ";\n top: 0;\n\n overflow: auto;\n -ms-overflow-style: none;\n scrollbar-width: none;\n &::-webkit-scrollbar {\n display: none;\n }\n"], ["\n width: 100%;\n ", ";\n position: absolute;\n ", ";\n top: 0;\n\n overflow: auto;\n -ms-overflow-style: none;\n scrollbar-width: none;\n &::-webkit-scrollbar {\n display: none;\n }\n"])), function (_a) {
6
6
  var maxWidth = _a.maxWidth;
7
7
  return maxWidth && "max-width:".concat(maxWidth);
8
8
  }, function (props) { return ((props === null || props === void 0 ? void 0 : props.slideFrom) === 'left' ? "left: 0px" : 'right: 0px'); });
9
9
  var templateObject_1;
10
+
11
+ export { SideModalContainer };
10
12
  //# sourceMappingURL=SlideInOutContainer.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SlideInOutContainer.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
1
+ {"version":3,"file":"SlideInOutContainer.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
@@ -70,7 +70,5 @@ export { Dropdown } from './components/Dropdown/Dropdown.js';
70
70
  export { SearchListItem } from './components/SearchListItem/SearchListItem.js';
71
71
  export { MenuListHeader } from './components/MenuListItem/MenuListHeader.js';
72
72
  export { MenuListItem } from './components/MenuListItem/MenuListItem.js';
73
- import 'framer-motion';
74
- import 'react';
75
- import './components/SlideInOutContainer/SlideInOutContainer.styles.js';
73
+ export { SlideInOutContainer } from './components/SlideInOutContainer/SlideInOutContainer.js';
76
74
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@citygross/components",
3
- "version": "0.7.99",
3
+ "version": "0.7.100",
4
4
  "license": "ISC",
5
5
  "sideEffects": false,
6
6
  "main": "./build/cjs/components/src/index.js",
@@ -71,5 +71,5 @@
71
71
  "moment": "^2.29.1",
72
72
  "react-loading-skeleton": "^2.2.0"
73
73
  },
74
- "gitHead": "ed08313d9b9185ee857c5bee01c50d5b8312dd94"
74
+ "gitHead": "dffdbcfa722a9e8080ff9e2a8d89a6c86bbff88e"
75
75
  }