@citygross/components 0.7.97 → 0.7.99

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.
Files changed (32) hide show
  1. package/build/@types/components/DeliverySelectionButton/DeliverySelectionButton.d.ts +11 -0
  2. package/build/@types/components/DeliverySelectionButton/DeliverySelectionButton.stories.d.ts +13 -0
  3. package/build/@types/components/DeliverySelectionButton/DeliverySelectionButton.styles.d.ts +2 -0
  4. package/build/@types/components/RadioBox/RadioBoxItem.d.ts +3 -1
  5. package/build/@types/components/RadioBox/RadioBoxItem.styles.d.ts +2 -0
  6. package/build/@types/components/SlideInOutContainer/SlideInOutContainer.d.ts +9 -0
  7. package/build/@types/components/SlideInOutContainer/SlideInOutContainer.stories.d.ts +8 -0
  8. package/build/@types/components/SlideInOutContainer/SlideInOutContainer.styles.d.ts +7 -0
  9. package/build/@types/index.d.ts +1 -0
  10. package/build/cjs/components/src/components/AddressBlock/AddressBlock.js +1 -0
  11. package/build/cjs/components/src/components/AddressBlock/AddressBlock.js.map +1 -1
  12. package/build/cjs/components/src/components/RadioBox/RadioBoxItem.js +3 -3
  13. package/build/cjs/components/src/components/RadioBox/RadioBoxItem.styles.js +3 -1
  14. package/build/cjs/components/src/components/RadioBox/RadioBoxItem.styles.js.map +1 -1
  15. package/build/cjs/components/src/components/SlideInOutContainer/SlideInOutContainer.styles.js +16 -0
  16. package/build/cjs/components/src/components/SlideInOutContainer/SlideInOutContainer.styles.js.map +1 -0
  17. package/build/cjs/components/src/components/WarningLabel/WarningLabel.js +1 -0
  18. package/build/cjs/components/src/components/WarningLabel/WarningLabel.js.map +1 -1
  19. package/build/cjs/components/src/index.js +3 -0
  20. package/build/cjs/components/src/index.js.map +1 -1
  21. package/build/es/components/src/components/AddressBlock/AddressBlock.js +1 -0
  22. package/build/es/components/src/components/AddressBlock/AddressBlock.js.map +1 -1
  23. package/build/es/components/src/components/RadioBox/RadioBoxItem.js +3 -3
  24. package/build/es/components/src/components/RadioBox/RadioBoxItem.styles.js +3 -1
  25. package/build/es/components/src/components/RadioBox/RadioBoxItem.styles.js.map +1 -1
  26. package/build/es/components/src/components/SlideInOutContainer/SlideInOutContainer.styles.js +10 -0
  27. package/build/es/components/src/components/SlideInOutContainer/SlideInOutContainer.styles.js.map +1 -0
  28. package/build/es/components/src/components/WarningLabel/WarningLabel.js +1 -0
  29. package/build/es/components/src/components/WarningLabel/WarningLabel.js.map +1 -1
  30. package/build/es/components/src/index.js +3 -0
  31. package/build/es/components/src/index.js.map +1 -1
  32. package/package.json +2 -2
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ export declare type TDeliverySelectionButton = {
3
+ icon: React.ReactElement;
4
+ label: string;
5
+ active: boolean;
6
+ onClick: () => number;
7
+ disabled?: boolean;
8
+ name: string;
9
+ backgroundColor?: string;
10
+ };
11
+ export declare const DeliverySelectionButton: React.FunctionComponent<TDeliverySelectionButton>;
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import { Story } from '@storybook/react';
3
+ import { TDeliverySelectionButton } from './DeliverySelectionButton';
4
+ declare const _default: {
5
+ component: React.FunctionComponent<TDeliverySelectionButton>;
6
+ title: string;
7
+ };
8
+ export default _default;
9
+ export declare const HomeDelivery: Story<TDeliverySelectionButton>;
10
+ export declare const PickupInStore: Story<TDeliverySelectionButton>;
11
+ export declare const Disabled: Story<TDeliverySelectionButton>;
12
+ export declare const differentBackgroundColor: Story<TDeliverySelectionButton>;
13
+ export declare const MultipleIcons: Story<TDeliverySelectionButton>;
@@ -0,0 +1,2 @@
1
+ export declare const DeliverySelectionButtonWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
2
+ export declare const IconAndTextWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -8,5 +8,7 @@ export declare type TRadioBox = styles.TBaseRadioBox & {
8
8
  setActive?: () => void;
9
9
  background?: string;
10
10
  border?: string;
11
+ flexDirection?: string;
12
+ padding?: number;
11
13
  };
12
- export declare function RadioBoxItem({ radioColor, checked, isDisabled, name, align, setActive, background, border, boxShadow, children }: TRadioBox): JSX.Element;
14
+ export declare function RadioBoxItem({ radioColor, checked, isDisabled, name, align, setActive, background, border, boxShadow, children, flexDirection, padding }: TRadioBox): JSX.Element;
@@ -13,4 +13,6 @@ export declare type TBaseRadioBox = {
13
13
  export declare const BaseRadioBox: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, TBaseRadioBox & {
14
14
  border?: string | undefined;
15
15
  background?: string | undefined;
16
+ flexDirection?: string | undefined;
17
+ padding?: number | undefined;
16
18
  }, never>;
@@ -0,0 +1,9 @@
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
+ declare const SlideInOutContainer: ({ slideFrom, isVisible, isInitial, children }: TSlideInOutContainer) => JSX.Element;
9
+ export default SlideInOutContainer;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { Story } from '@storybook/react';
3
+ declare const _default: {
4
+ component: ({ slideFrom, isVisible, isInitial, children }: import("./SlideInOutContainer").TSlideInOutContainer) => JSX.Element;
5
+ title: string;
6
+ };
7
+ export default _default;
8
+ export declare const Default: Story;
@@ -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 {};
@@ -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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -12,9 +12,9 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
12
12
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
13
13
 
14
14
  function RadioBoxItem(_a) {
15
- var _b, _c;
16
- var _d = _a.radioColor, radioColor = _d === void 0 ? 'alertGreen' : _d, checked = _a.checked, isDisabled = _a.isDisabled, name = _a.name, _e = _a.align, align = _e === void 0 ? 'flex-start' : _e, setActive = _a.setActive, _f = _a.background, background = _f === void 0 ? (_b = designTokens.theme === null || designTokens.theme === void 0 ? void 0 : designTokens.theme.palette) === null || _b === void 0 ? void 0 : _b.white : _f, _g = _a.border, border = _g === void 0 ? (_c = designTokens.theme === null || designTokens.theme === void 0 ? void 0 : designTokens.theme.palette) === null || _c === void 0 ? void 0 : _c.border : _g, _h = _a.boxShadow, boxShadow = _h === void 0 ? true : _h, children = _a.children;
17
- return (React__default["default"].createElement(RadioBoxItem_styles.BaseRadioBox, { align: align, checked: checked, isDisabled: isDisabled, onClick: !isDisabled ? setActive : function () { }, background: background, border: border, boxShadow: boxShadow },
15
+ var _b, _c, _d;
16
+ var _e = _a.radioColor, radioColor = _e === void 0 ? 'alertGreen' : _e, checked = _a.checked, isDisabled = _a.isDisabled, name = _a.name, _f = _a.align, align = _f === void 0 ? 'flex-start' : _f, setActive = _a.setActive, _g = _a.background, background = _g === void 0 ? (_b = designTokens.theme === null || designTokens.theme === void 0 ? void 0 : designTokens.theme.palette) === null || _b === void 0 ? void 0 : _b.white : _g, _h = _a.border, border = _h === void 0 ? (_c = designTokens.theme === null || designTokens.theme === void 0 ? void 0 : designTokens.theme.palette) === null || _c === void 0 ? void 0 : _c.border : _h, _j = _a.boxShadow, boxShadow = _j === void 0 ? true : _j, children = _a.children, flexDirection = _a.flexDirection, _k = _a.padding, padding = _k === void 0 ? (_d = designTokens.theme.spacings) === null || _d === void 0 ? void 0 : _d.md : _k;
17
+ return (React__default["default"].createElement(RadioBoxItem_styles.BaseRadioBox, { align: align, checked: checked, isDisabled: isDisabled, onClick: !isDisabled ? setActive : function () { }, background: background, border: border, boxShadow: boxShadow, flexDirection: flexDirection, padding: padding },
18
18
  React__default["default"].createElement(Radio.Radio, { customColor: radioColor, checked: checked, disabled: isDisabled, name: name, onChange: function () { return setActive; } }),
19
19
  children));
20
20
  }
@@ -14,7 +14,9 @@ exports.Alignment = void 0;
14
14
  Alignment[Alignment["flex-start"] = 0] = "flex-start";
15
15
  Alignment[Alignment["center"] = 1] = "center";
16
16
  })(exports.Alignment || (exports.Alignment = {}));
17
- var BaseRadioBox = styled__default["default"].div(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject(["\n display: flex;\n flex-basis: 100%;\n padding: ", ";\n align-items: ", ";\n gap: ", "px;\n cursor: ", ";\n ", ";\n\n background: ", ";\n border: solid 1px ", ";\n ", ";\n border-radius: 5px;\n ", ";\n -webkit-transition: background-color 400ms linear;\n -ms-transition: background-color 400ms linear;\n transition: background-color 400ms linear;\n"], ["\n display: flex;\n flex-basis: 100%;\n padding: ", ";\n align-items: ", ";\n gap: ", "px;\n cursor: ", ";\n ", ";\n\n background: ", ";\n border: solid 1px ", ";\n ", ";\n border-radius: 5px;\n ", ";\n -webkit-transition: background-color 400ms linear;\n -ms-transition: background-color 400ms linear;\n transition: background-color 400ms linear;\n"])), function (props) { var _a; return "".concat((_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.md, "px "); }, function (props) { return props.align; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm; }, function (props) { return (props.isDisabled ? 'default' : 'pointer'); }, function (props) { return props.isDisabled && 'opacity: 0.4'; }, function (props) { var _a; return props.checked ? (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.blueLight : props.background; }, function (props) { var _a; return (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.medium; }, function (props) {
17
+ var BaseRadioBox = styled__default["default"].div(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject(["\n display: flex;\n flex-direction: ", ";\n flex-basis: 100%;\n padding: ", "px;\n align-items: ", ";\n gap: ", "px;\n cursor: ", ";\n ", ";\n\n background: ", ";\n border: solid 1px ", ";\n ", ";\n border-radius: 5px;\n ", ";\n -webkit-transition: background-color 400ms linear;\n -ms-transition: background-color 400ms linear;\n transition: background-color 400ms linear;\n"], ["\n display: flex;\n flex-direction: ", ";\n flex-basis: 100%;\n padding: ", "px;\n align-items: ", ";\n gap: ", "px;\n cursor: ", ";\n ", ";\n\n background: ", ";\n border: solid 1px ", ";\n ", ";\n border-radius: 5px;\n ", ";\n -webkit-transition: background-color 400ms linear;\n -ms-transition: background-color 400ms linear;\n transition: background-color 400ms linear;\n"])), function (props) {
18
+ return props.flexDirection ? props.flexDirection : 'row';
19
+ }, function (props) { return props.padding; }, function (props) { return props.align; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm; }, function (props) { return (props.isDisabled ? 'default' : 'pointer'); }, function (props) { return props.isDisabled && 'opacity: 0.4'; }, function (props) { var _a; return props.checked ? (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.blueLight : props.background; }, function (props) { var _a; return (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.medium; }, function (props) {
18
20
  return props.checked &&
19
21
  props.border &&
20
22
  "border: 1px solid ".concat(props.border && props.border);
@@ -1 +1 @@
1
- {"version":3,"file":"RadioBoxItem.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"RadioBoxItem.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,16 @@
1
+ 'use strict';
2
+
3
+ var _tslib = require('../../../../_virtual/_tslib.js');
4
+ var framerMotion = require('framer-motion');
5
+ var styled = require('styled-components');
6
+
7
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
+
9
+ var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
10
+
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) {
12
+ var maxWidth = _a.maxWidth;
13
+ return maxWidth && "max-width:".concat(maxWidth);
14
+ }, function (props) { return ((props === null || props === void 0 ? void 0 : props.slideFrom) === 'left' ? "left: 0px" : 'right: 0px'); });
15
+ var templateObject_1;
16
+ //# sourceMappingURL=SlideInOutContainer.styles.js.map
@@ -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,9 @@ 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
80
 
78
81
 
79
82
 
@@ -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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -4,9 +4,9 @@ import { Radio } from '../FormElements/Radio/Radio.js';
4
4
  import { BaseRadioBox } from './RadioBoxItem.styles.js';
5
5
 
6
6
  function RadioBoxItem(_a) {
7
- var _b, _c;
8
- var _d = _a.radioColor, radioColor = _d === void 0 ? 'alertGreen' : _d, checked = _a.checked, isDisabled = _a.isDisabled, name = _a.name, _e = _a.align, align = _e === void 0 ? 'flex-start' : _e, setActive = _a.setActive, _f = _a.background, background = _f === void 0 ? (_b = theme === null || theme === void 0 ? void 0 : theme.palette) === null || _b === void 0 ? void 0 : _b.white : _f, _g = _a.border, border = _g === void 0 ? (_c = theme === null || theme === void 0 ? void 0 : theme.palette) === null || _c === void 0 ? void 0 : _c.border : _g, _h = _a.boxShadow, boxShadow = _h === void 0 ? true : _h, children = _a.children;
9
- return (React.createElement(BaseRadioBox, { align: align, checked: checked, isDisabled: isDisabled, onClick: !isDisabled ? setActive : function () { }, background: background, border: border, boxShadow: boxShadow },
7
+ var _b, _c, _d;
8
+ var _e = _a.radioColor, radioColor = _e === void 0 ? 'alertGreen' : _e, checked = _a.checked, isDisabled = _a.isDisabled, name = _a.name, _f = _a.align, align = _f === void 0 ? 'flex-start' : _f, setActive = _a.setActive, _g = _a.background, background = _g === void 0 ? (_b = theme === null || theme === void 0 ? void 0 : theme.palette) === null || _b === void 0 ? void 0 : _b.white : _g, _h = _a.border, border = _h === void 0 ? (_c = theme === null || theme === void 0 ? void 0 : theme.palette) === null || _c === void 0 ? void 0 : _c.border : _h, _j = _a.boxShadow, boxShadow = _j === void 0 ? true : _j, children = _a.children, flexDirection = _a.flexDirection, _k = _a.padding, padding = _k === void 0 ? (_d = theme.spacings) === null || _d === void 0 ? void 0 : _d.md : _k;
9
+ return (React.createElement(BaseRadioBox, { align: align, checked: checked, isDisabled: isDisabled, onClick: !isDisabled ? setActive : function () { }, background: background, border: border, boxShadow: boxShadow, flexDirection: flexDirection, padding: padding },
10
10
  React.createElement(Radio, { customColor: radioColor, checked: checked, disabled: isDisabled, name: name, onChange: function () { return setActive; } }),
11
11
  children));
12
12
  }
@@ -6,7 +6,9 @@ var Alignment;
6
6
  Alignment[Alignment["flex-start"] = 0] = "flex-start";
7
7
  Alignment[Alignment["center"] = 1] = "center";
8
8
  })(Alignment || (Alignment = {}));
9
- var BaseRadioBox = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n flex-basis: 100%;\n padding: ", ";\n align-items: ", ";\n gap: ", "px;\n cursor: ", ";\n ", ";\n\n background: ", ";\n border: solid 1px ", ";\n ", ";\n border-radius: 5px;\n ", ";\n -webkit-transition: background-color 400ms linear;\n -ms-transition: background-color 400ms linear;\n transition: background-color 400ms linear;\n"], ["\n display: flex;\n flex-basis: 100%;\n padding: ", ";\n align-items: ", ";\n gap: ", "px;\n cursor: ", ";\n ", ";\n\n background: ", ";\n border: solid 1px ", ";\n ", ";\n border-radius: 5px;\n ", ";\n -webkit-transition: background-color 400ms linear;\n -ms-transition: background-color 400ms linear;\n transition: background-color 400ms linear;\n"])), function (props) { var _a; return "".concat((_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.md, "px "); }, function (props) { return props.align; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm; }, function (props) { return (props.isDisabled ? 'default' : 'pointer'); }, function (props) { return props.isDisabled && 'opacity: 0.4'; }, function (props) { var _a; return props.checked ? (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.blueLight : props.background; }, function (props) { var _a; return (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.medium; }, function (props) {
9
+ var BaseRadioBox = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n flex-direction: ", ";\n flex-basis: 100%;\n padding: ", "px;\n align-items: ", ";\n gap: ", "px;\n cursor: ", ";\n ", ";\n\n background: ", ";\n border: solid 1px ", ";\n ", ";\n border-radius: 5px;\n ", ";\n -webkit-transition: background-color 400ms linear;\n -ms-transition: background-color 400ms linear;\n transition: background-color 400ms linear;\n"], ["\n display: flex;\n flex-direction: ", ";\n flex-basis: 100%;\n padding: ", "px;\n align-items: ", ";\n gap: ", "px;\n cursor: ", ";\n ", ";\n\n background: ", ";\n border: solid 1px ", ";\n ", ";\n border-radius: 5px;\n ", ";\n -webkit-transition: background-color 400ms linear;\n -ms-transition: background-color 400ms linear;\n transition: background-color 400ms linear;\n"])), function (props) {
10
+ return props.flexDirection ? props.flexDirection : 'row';
11
+ }, function (props) { return props.padding; }, function (props) { return props.align; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm; }, function (props) { return (props.isDisabled ? 'default' : 'pointer'); }, function (props) { return props.isDisabled && 'opacity: 0.4'; }, function (props) { var _a; return props.checked ? (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.blueLight : props.background; }, function (props) { var _a; return (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.medium; }, function (props) {
10
12
  return props.checked &&
11
13
  props.border &&
12
14
  "border: 1px solid ".concat(props.border && props.border);
@@ -1 +1 @@
1
- {"version":3,"file":"RadioBoxItem.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"RadioBoxItem.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,10 @@
1
+ import { __makeTemplateObject } from '../../../../_virtual/_tslib.js';
2
+ import { motion } from 'framer-motion';
3
+ import styled from 'styled-components';
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) {
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
+ //# sourceMappingURL=SlideInOutContainer.styles.js.map
@@ -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,7 @@ 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
76
  //# 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.97",
3
+ "version": "0.7.99",
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": "5d3438e2c9972e0318a6db8266f7691ec650df6b"
74
+ "gitHead": "ed08313d9b9185ee857c5bee01c50d5b8312dd94"
75
75
  }