@citygross/components 0.7.98 → 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.
- package/build/@types/components/SlideInOutContainer/SlideInOutContainer.d.ts +8 -0
- package/build/@types/components/SlideInOutContainer/SlideInOutContainer.stories.d.ts +7 -0
- package/build/@types/components/SlideInOutContainer/SlideInOutContainer.styles.d.ts +7 -0
- package/build/@types/index.d.ts +1 -0
- package/build/cjs/components/src/components/AddressBlock/AddressBlock.js +1 -0
- package/build/cjs/components/src/components/AddressBlock/AddressBlock.js.map +1 -1
- package/build/cjs/components/src/components/SlideInOutContainer/SlideInOutContainer.js +21 -0
- package/build/cjs/components/src/components/SlideInOutContainer/SlideInOutContainer.js.map +1 -0
- package/build/cjs/components/src/components/SlideInOutContainer/SlideInOutContainer.styles.js +20 -0
- package/build/cjs/components/src/components/SlideInOutContainer/SlideInOutContainer.styles.js.map +1 -0
- package/build/cjs/components/src/components/WarningLabel/WarningLabel.js +1 -0
- package/build/cjs/components/src/components/WarningLabel/WarningLabel.js.map +1 -1
- package/build/cjs/components/src/index.js +2 -0
- package/build/cjs/components/src/index.js.map +1 -1
- package/build/es/components/src/components/AddressBlock/AddressBlock.js +1 -0
- package/build/es/components/src/components/AddressBlock/AddressBlock.js.map +1 -1
- package/build/es/components/src/components/SlideInOutContainer/SlideInOutContainer.js +13 -0
- package/build/es/components/src/components/SlideInOutContainer/SlideInOutContainer.js.map +1 -0
- package/build/es/components/src/components/SlideInOutContainer/SlideInOutContainer.styles.js +12 -0
- package/build/es/components/src/components/SlideInOutContainer/SlideInOutContainer.styles.js.map +1 -0
- package/build/es/components/src/components/WarningLabel/WarningLabel.js +1 -0
- package/build/es/components/src/components/WarningLabel/WarningLabel.js.map +1 -1
- package/build/es/components/src/index.js +1 -0
- package/build/es/components/src/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare type TSlideInOutContainer = {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
isVisible?: boolean;
|
|
5
|
+
slideFrom?: 'left' | 'right';
|
|
6
|
+
isInitial?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare const SlideInOutContainer: ({ slideFrom, isVisible, isInitial, children }: TSlideInOutContainer) => JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare type TSideModalContainer = {
|
|
2
|
+
background?: string;
|
|
3
|
+
slideFrom?: 'left' | 'right';
|
|
4
|
+
maxWidth?: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const SideModalContainer: import("styled-components").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLDivElement, import("framer-motion").HTMLMotionProps<"div">>, import("styled-components").DefaultTheme, TSideModalContainer, never>;
|
|
7
|
+
export {};
|
package/build/@types/index.d.ts
CHANGED
|
@@ -69,3 +69,4 @@ export * from './components/Dropdown/Dropdown';
|
|
|
69
69
|
export * from './components/SearchListItem/SearchListItem';
|
|
70
70
|
export * from './components/MenuListItem/MenuListHeader';
|
|
71
71
|
export * from './components/MenuListItem/MenuListItem';
|
|
72
|
+
export * from './components/SlideInOutContainer/SlideInOutContainer';
|
|
@@ -83,6 +83,7 @@ require('../IconText/IconText.styles.js');
|
|
|
83
83
|
require('../Dropdown/Dropdown.styles.js');
|
|
84
84
|
require('../SearchListItem/SearchListItem.styles.js');
|
|
85
85
|
require('../MenuListItem/MenuListItem.styles.js');
|
|
86
|
+
require('../SlideInOutContainer/SlideInOutContainer.styles.js');
|
|
86
87
|
|
|
87
88
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
88
89
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddressBlock.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AddressBlock.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -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":";;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var _tslib = require('../../../../_virtual/_tslib.js');
|
|
6
|
+
var framerMotion = require('framer-motion');
|
|
7
|
+
var styled = require('styled-components');
|
|
8
|
+
|
|
9
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
10
|
+
|
|
11
|
+
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
12
|
+
|
|
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) {
|
|
14
|
+
var maxWidth = _a.maxWidth;
|
|
15
|
+
return maxWidth && "max-width:".concat(maxWidth);
|
|
16
|
+
}, function (props) { return ((props === null || props === void 0 ? void 0 : props.slideFrom) === 'left' ? "left: 0px" : 'right: 0px'); });
|
|
17
|
+
var templateObject_1;
|
|
18
|
+
|
|
19
|
+
exports.SideModalContainer = SideModalContainer;
|
|
20
|
+
//# sourceMappingURL=SlideInOutContainer.styles.js.map
|
package/build/cjs/components/src/components/SlideInOutContainer/SlideInOutContainer.styles.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SlideInOutContainer.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -83,6 +83,7 @@ require('../IconText/IconText.styles.js');
|
|
|
83
83
|
require('../Dropdown/Dropdown.styles.js');
|
|
84
84
|
require('../SearchListItem/SearchListItem.styles.js');
|
|
85
85
|
require('../MenuListItem/MenuListItem.styles.js');
|
|
86
|
+
require('../SlideInOutContainer/SlideInOutContainer.styles.js');
|
|
86
87
|
|
|
87
88
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
88
89
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WarningLabel.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"WarningLabel.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -74,6 +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
|
+
var SlideInOutContainer = require('./components/SlideInOutContainer/SlideInOutContainer.js');
|
|
77
78
|
|
|
78
79
|
|
|
79
80
|
|
|
@@ -180,4 +181,5 @@ exports.Dropdown = Dropdown.Dropdown;
|
|
|
180
181
|
exports.SearchListItem = SearchListItem.SearchListItem;
|
|
181
182
|
exports.MenuListHeader = MenuListHeader.MenuListHeader;
|
|
182
183
|
exports.MenuListItem = MenuListItem.MenuListItem;
|
|
184
|
+
exports.SlideInOutContainer = SlideInOutContainer.SlideInOutContainer;
|
|
183
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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -79,6 +79,7 @@ import '../IconText/IconText.styles.js';
|
|
|
79
79
|
import '../Dropdown/Dropdown.styles.js';
|
|
80
80
|
import '../SearchListItem/SearchListItem.styles.js';
|
|
81
81
|
import '../MenuListItem/MenuListItem.styles.js';
|
|
82
|
+
import '../SlideInOutContainer/SlideInOutContainer.styles.js';
|
|
82
83
|
|
|
83
84
|
function AddressBlock(_a) {
|
|
84
85
|
var _b = _a.deliverOption, deliverOption = _b === void 0 ? 'Address' : _b, icon = _a.icon, storeName = _a.storeName, customerName = _a.customerName, street = _a.street, zipCode = _a.zipCode, city = _a.city, doorCode = _a.doorCode, floor = _a.floor, deliveryInstructions = _a.deliveryInstructions, xsSpacing = _a.xsSpacing, lgSpacing = _a.lgSpacing;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddressBlock.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AddressBlock.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":";;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { __makeTemplateObject } from '../../../../_virtual/_tslib.js';
|
|
2
|
+
import { motion } from 'framer-motion';
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
|
|
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
|
+
var maxWidth = _a.maxWidth;
|
|
7
|
+
return maxWidth && "max-width:".concat(maxWidth);
|
|
8
|
+
}, function (props) { return ((props === null || props === void 0 ? void 0 : props.slideFrom) === 'left' ? "left: 0px" : 'right: 0px'); });
|
|
9
|
+
var templateObject_1;
|
|
10
|
+
|
|
11
|
+
export { SideModalContainer };
|
|
12
|
+
//# sourceMappingURL=SlideInOutContainer.styles.js.map
|
package/build/es/components/src/components/SlideInOutContainer/SlideInOutContainer.styles.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SlideInOutContainer.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
|
|
@@ -79,6 +79,7 @@ import '../IconText/IconText.styles.js';
|
|
|
79
79
|
import '../Dropdown/Dropdown.styles.js';
|
|
80
80
|
import '../SearchListItem/SearchListItem.styles.js';
|
|
81
81
|
import '../MenuListItem/MenuListItem.styles.js';
|
|
82
|
+
import '../SlideInOutContainer/SlideInOutContainer.styles.js';
|
|
82
83
|
|
|
83
84
|
function WarningLabel(_a) {
|
|
84
85
|
var children = _a.children, background = _a.background, toolTip = _a.toolTip;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WarningLabel.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"WarningLabel.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -70,4 +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
|
+
export { SlideInOutContainer } from './components/SlideInOutContainer/SlideInOutContainer.js';
|
|
73
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.
|
|
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": "
|
|
74
|
+
"gitHead": "dffdbcfa722a9e8080ff9e2a8d89a6c86bbff88e"
|
|
75
75
|
}
|