@citygross/components 0.7.16 → 0.7.20

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 (94) hide show
  1. package/build/@types/components/AddressBlock/AddressBlock.d.ts +0 -1
  2. package/build/@types/components/AlertBox/AlertBox.d.ts +8 -0
  3. package/build/@types/components/{InfoBlock/InfoBlock.stories.d.ts → AlertBox/AlertBox.stories.d.ts} +4 -4
  4. package/build/@types/components/AlertBox/AlertBox.styles.d.ts +6 -0
  5. package/build/@types/components/Button/IconButton.d.ts +0 -1
  6. package/build/@types/components/CartItemSummary/CartItemSummary.d.ts +0 -1
  7. package/build/@types/components/CartSummary/CartSummary.d.ts +5 -2
  8. package/build/@types/components/Chips/Chip.d.ts +0 -1
  9. package/build/@types/components/DeliverySlotItem/DeliverySlotItem.d.ts +0 -1
  10. package/build/@types/components/DotIndicator/DotIndicator.d.ts +0 -1
  11. package/build/@types/components/Form/Form.d.ts +2 -1
  12. package/build/@types/components/Form/Form.styles.d.ts +4 -2
  13. package/build/@types/components/FormElements/Input/Input.d.ts +0 -1
  14. package/build/@types/components/FormElements/TextArea/TextArea.d.ts +0 -1
  15. package/build/@types/components/Header/Header.stories.d.ts +0 -1
  16. package/build/@types/components/HeaderLink/HeaderLink.d.ts +0 -1
  17. package/build/@types/components/HeaderLink/HeaderLink.stories.d.ts +0 -1
  18. package/build/@types/components/ListItemWithRadio/ListItemWithRadio.styles.d.ts +1 -1
  19. package/build/@types/components/Logo/Logo.d.ts +0 -1
  20. package/build/@types/components/Logo/Logo.stories.d.ts +0 -1
  21. package/build/@types/components/Pagination/Pagination.d.ts +0 -1
  22. package/build/@types/components/QuantitySelector/QuantitySelector.d.ts +0 -1
  23. package/build/@types/components/RadioGroup/RadioGroup.d.ts +0 -1
  24. package/build/@types/components/RadioGroup/RadioListItem.d.ts +0 -1
  25. package/build/@types/components/RadioGroup/RadioListItem.styles.d.ts +0 -1
  26. package/build/@types/components/Slider/Slider.stories.d.ts +0 -1
  27. package/build/@types/components/Spinner/Spinner.d.ts +0 -1
  28. package/build/@types/components/Spinner/Spinner.stories.d.ts +0 -1
  29. package/build/@types/components/StepperMobile/StepperMobile.d.ts +0 -1
  30. package/build/@types/components/Timeline/Timeline.d.ts +0 -1
  31. package/build/@types/components/Timeline/Timeline.styles.d.ts +0 -1
  32. package/build/@types/components/Typography/h1.stories.d.ts +0 -1
  33. package/build/@types/components/Typography/h2.stories.d.ts +0 -1
  34. package/build/@types/components/Typography/h3.stories.d.ts +0 -1
  35. package/build/@types/containers/TwoColumnsContainer/TwoColumnsPageContainer.stories.d.ts +0 -1
  36. package/build/@types/containers/WizardContainer/Steps/Step.d.ts +6 -0
  37. package/build/@types/containers/WizardContainer/WizardContainer.d.ts +2 -0
  38. package/build/@types/containers/WizardContainer/WizardContainer.stories.d.ts +24 -0
  39. package/build/@types/index.d.ts +1 -0
  40. package/build/cjs/components/src/components/AlertBox/AlertBox.js +22 -0
  41. package/build/cjs/components/src/components/AlertBox/AlertBox.js.map +1 -0
  42. package/build/cjs/components/src/components/AlertBox/AlertBox.styles.js +16 -0
  43. package/build/cjs/components/src/components/AlertBox/AlertBox.styles.js.map +1 -0
  44. package/build/cjs/components/src/components/Button/Button.styles.js +2 -1
  45. package/build/cjs/components/src/components/Button/Button.styles.js.map +1 -1
  46. package/build/cjs/components/src/components/CartItemSummary/CartItemSummary.styles.js +3 -3
  47. package/build/cjs/components/src/components/CartSummary/CartSummary.js +21 -19
  48. package/build/cjs/components/src/components/CartSummary/CartSummary.js.map +1 -1
  49. package/build/cjs/components/src/components/DeliverySlotItem/DeliverySlotItem.js +8 -3
  50. package/build/cjs/components/src/components/DeliverySlotItem/DeliverySlotItem.js.map +1 -1
  51. package/build/cjs/components/src/components/DeliverySlotItem/DeliverySlotItem.styles.js +11 -12
  52. package/build/cjs/components/src/components/DeliverySlotItem/DeliverySlotItem.styles.js.map +1 -1
  53. package/build/cjs/components/src/components/Form/Form.js +4 -8
  54. package/build/cjs/components/src/components/Form/Form.js.map +1 -1
  55. package/build/cjs/components/src/components/Form/Form.styles.js +3 -5
  56. package/build/cjs/components/src/components/Form/Form.styles.js.map +1 -1
  57. package/build/cjs/components/src/components/ListItem/ListItem.styles.js +1 -1
  58. package/build/cjs/components/src/components/ListItemWithRadio/ListItemWithRadio.js +18 -19
  59. package/build/cjs/components/src/components/ListItemWithRadio/ListItemWithRadio.js.map +1 -1
  60. package/build/cjs/components/src/components/ListItemWithRadio/ListItemWithRadio.styles.js +6 -6
  61. package/build/cjs/components/src/components/RadioGroup/RadioListItem.styles.js +1 -1
  62. package/build/cjs/components/src/components/Slider/Slider.styles.js +1 -1
  63. package/build/cjs/components/src/containers/PageContainer/PageContainer.js +1 -1
  64. package/build/cjs/components/src/index.js +2 -0
  65. package/build/cjs/components/src/index.js.map +1 -1
  66. package/build/es/components/src/components/AlertBox/AlertBox.js +14 -0
  67. package/build/es/components/src/components/AlertBox/AlertBox.js.map +1 -0
  68. package/build/es/components/src/components/AlertBox/AlertBox.styles.js +8 -0
  69. package/build/es/components/src/components/AlertBox/AlertBox.styles.js.map +1 -0
  70. package/build/es/components/src/components/Button/Button.styles.js +2 -1
  71. package/build/es/components/src/components/Button/Button.styles.js.map +1 -1
  72. package/build/es/components/src/components/CartItemSummary/CartItemSummary.styles.js +3 -3
  73. package/build/es/components/src/components/CartSummary/CartSummary.js +21 -19
  74. package/build/es/components/src/components/CartSummary/CartSummary.js.map +1 -1
  75. package/build/es/components/src/components/DeliverySlotItem/DeliverySlotItem.js +8 -3
  76. package/build/es/components/src/components/DeliverySlotItem/DeliverySlotItem.js.map +1 -1
  77. package/build/es/components/src/components/DeliverySlotItem/DeliverySlotItem.styles.js +11 -12
  78. package/build/es/components/src/components/DeliverySlotItem/DeliverySlotItem.styles.js.map +1 -1
  79. package/build/es/components/src/components/Form/Form.js +5 -9
  80. package/build/es/components/src/components/Form/Form.js.map +1 -1
  81. package/build/es/components/src/components/Form/Form.styles.js +4 -5
  82. package/build/es/components/src/components/Form/Form.styles.js.map +1 -1
  83. package/build/es/components/src/components/ListItem/ListItem.styles.js +1 -1
  84. package/build/es/components/src/components/ListItemWithRadio/ListItemWithRadio.js +19 -20
  85. package/build/es/components/src/components/ListItemWithRadio/ListItemWithRadio.js.map +1 -1
  86. package/build/es/components/src/components/ListItemWithRadio/ListItemWithRadio.styles.js +6 -6
  87. package/build/es/components/src/components/RadioGroup/RadioListItem.styles.js +1 -1
  88. package/build/es/components/src/components/Slider/Slider.styles.js +1 -1
  89. package/build/es/components/src/containers/PageContainer/PageContainer.js +1 -1
  90. package/build/es/components/src/index.js +1 -0
  91. package/build/es/components/src/index.js.map +1 -1
  92. package/package.json +3 -2
  93. package/build/@types/components/InfoBlock/InfoBlock.d.ts +0 -8
  94. package/build/@types/components/InfoBlock/InfoBlock.styles.d.ts +0 -6
@@ -4,21 +4,17 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var React = require('react');
6
6
  var Form_styles = require('./Form.styles.js');
7
- var Divider_styles = require('../Divider/Divider.styles.js');
8
- var designTokens = require('@citygross/design-tokens');
9
7
 
10
8
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
11
9
 
12
10
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
13
11
 
14
12
  function Form(_a) {
15
- var _b, _c;
16
- var title = _a.title, icon = _a.icon, children = _a.children, onSubmit = _a.onSubmit;
17
- return (React__default['default'].createElement(Form_styles.FormWrapper, { onSubmit: function (e) { return onSubmit && onSubmit(e); } },
13
+ var title = _a.title, icon = _a.icon, children = _a.children, onSubmit = _a.onSubmit, background = _a.background;
14
+ return (React__default['default'].createElement(Form_styles.FormWrapper, { onSubmit: function (e) { return onSubmit && onSubmit(e); }, background: background },
18
15
  React__default['default'].createElement(Form_styles.FormHeader, null,
19
- icon,
20
- React__default['default'].createElement(Form_styles.HeaderTitle, null, title)),
21
- React__default['default'].createElement(Divider_styles.Divider, { xsSpacing: (_b = designTokens.theme === null || designTokens.theme === void 0 ? void 0 : designTokens.theme.spacings) === null || _b === void 0 ? void 0 : _b.xs, lgSpacing: (_c = designTokens.theme === null || designTokens.theme === void 0 ? void 0 : designTokens.theme.spacings) === null || _c === void 0 ? void 0 : _c.xs }),
16
+ icon && icon,
17
+ title),
22
18
  children));
23
19
  }
24
20
 
@@ -1 +1 @@
1
- {"version":3,"file":"Form.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"Form.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;"}
@@ -9,12 +9,10 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
9
9
 
10
10
  var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
11
11
 
12
- var FormWrapper = styled__default['default'].form(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n padding: ", "px;\n background-color: ", ";\n gap: ", "px;\n border-radius: ", "px;\n @media (min-width: ", "px) {\n padding: ", "px;\n }\n"], ["\n display: flex;\n flex-direction: column;\n padding: ", "px;\n background-color: ", ";\n gap: ", "px;\n border-radius: ", "px;\n @media (min-width: ", "px) {\n padding: ", "px;\n }\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm; }, function (props) { var _a; return (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.lighter; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm; }, function (props) { var _a; return (_a = props.theme.attributes) === null || _a === void 0 ? void 0 : _a.borderRadius.small; }, function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.xs; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.md; });
13
- var FormHeader = styled__default['default'].div(templateObject_2 || (templateObject_2 = _tslib.__makeTemplateObject(["\n display: flex;\n flex-direction: row;\n align-items: center;\n"], ["\n display: flex;\n flex-direction: row;\n align-items: center;\n"])));
14
- var HeaderTitle = styled__default['default'].div(templateObject_3 || (templateObject_3 = _tslib.__makeTemplateObject(["\n padding: 0 ", "px;\n"], ["\n padding: 0 ", "px;\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs; });
15
- var templateObject_1, templateObject_2, templateObject_3;
12
+ var FormWrapper = styled__default['default'].form(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n padding: ", "px;\n background-color: ", ";\n gap: ", "px;\n border-radius: ", "px;\n @media (min-width: ", "px) {\n padding: ", "px;\n }\n"], ["\n display: flex;\n flex-direction: column;\n padding: ", "px;\n background-color: ", ";\n gap: ", "px;\n border-radius: ", "px;\n @media (min-width: ", "px) {\n padding: ", "px;\n }\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm; }, function (props) { var _a; return props.background || ((_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.white); }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm; }, function (props) { var _a; return (_a = props.theme.attributes) === null || _a === void 0 ? void 0 : _a.borderRadius.small; }, function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.xs; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.lg; });
13
+ var FormHeader = styled__default['default'].div(templateObject_2 || (templateObject_2 = _tslib.__makeTemplateObject(["\n display: flex;\n flex-direction: row;\n align-items: center;\n padding-bottom: ", "px;\n gap: ", "px;\n"], ["\n display: flex;\n flex-direction: row;\n align-items: center;\n padding-bottom: ", "px;\n gap: ", "px;\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs; });
14
+ var templateObject_1, templateObject_2;
16
15
 
17
16
  exports.FormHeader = FormHeader;
18
17
  exports.FormWrapper = FormWrapper;
19
- exports.HeaderTitle = HeaderTitle;
20
18
  //# sourceMappingURL=Form.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Form.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"Form.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;"}
@@ -13,7 +13,7 @@ var ItemInformationContainer = styled__default['default'].div(templateObject_1 |
13
13
  var ListItemContainer = styled__default['default'].div(templateObject_2 || (templateObject_2 = _tslib.__makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n\n p {\n padding: 1px 0px;\n }\n"], ["\n display: flex;\n justify-content: space-between;\n\n p {\n padding: 1px 0px;\n }\n"])));
14
14
  var ListLeft = styled__default['default'].div(templateObject_3 || (templateObject_3 = _tslib.__makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: ", "px;\n @media (min-width: ", "px) {\n gap: 20px;\n }\n"], ["\n display: flex;\n align-items: center;\n gap: ", "px;\n @media (min-width: ", "px) {\n gap: 20px;\n }\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm; }, function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.xs; });
15
15
  var ListRight = styled__default['default'].div(templateObject_4 || (templateObject_4 = _tslib.__makeTemplateObject(["\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n justify-content: space-between;\n text-align: right;\n"], ["\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n justify-content: space-between;\n text-align: right;\n"])));
16
- var ListImageContainer = styled__default['default'].div(templateObject_5 || (templateObject_5 = _tslib.__makeTemplateObject(["\n display: flex;\n align-items: center;\n flex-direction: row;\n width: ", "px;\n height: ", "px;\n"], ["\n display: flex;\n align-items: center;\n flex-direction: row;\n width: ", "px;\n height: ", "px;\n"])), function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.ListImageMaxWidth; }, function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.ListImageMaxWidth; });
16
+ var ListImageContainer = styled__default['default'].div(templateObject_5 || (templateObject_5 = _tslib.__makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n flex-direction: row;\n width: ", "px;\n height: ", "px;\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n flex-direction: row;\n width: ", "px;\n height: ", "px;\n"])), function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.ListImageMaxWidth; }, function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.ListImageMaxWidth; });
17
17
  var ListImage = styled__default['default'].img(templateObject_6 || (templateObject_6 = _tslib.__makeTemplateObject(["\n max-width: 100%;\n max-height: 50px;\n"], ["\n max-width: 100%;\n max-height: 50px;\n"])));
18
18
  var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6;
19
19
 
@@ -18,25 +18,24 @@ function ListItemWithRadio(_a) {
18
18
  var _b, _c;
19
19
  var item = _a.item, loading = _a.loading, rightChildren = _a.rightChildren, radioChildren = _a.radioChildren;
20
20
  return (React__default['default'].createElement(ListItemWithRadio_styles.ListItemContainer, null,
21
- React__default['default'].createElement(ListItemWithRadio_styles.ListLeft, null,
22
- React__default['default'].createElement(ListItemWithRadio_styles.ListImageContainer, null,
23
- React__default['default'].createElement(ListItemWithRadio_styles.ListImage, { src: (item === null || item === void 0 ? void 0 : item.image) || fallback_grocery, alt: item === null || item === void 0 ? void 0 : item.name })),
24
- loading ? (React__default['default'].createElement(React__default['default'].Fragment, null,
25
- React__default['default'].createElement(ListItemWithRadio_styles.ListItemHeader, null,
26
- React__default['default'].createElement(Skeleton__default['default'], { width: 180 })),
27
- React__default['default'].createElement(ListItemWithRadio_styles.RadioWrapper, null,
28
- React__default['default'].createElement(Skeleton__default['default'], { width: 140, count: 2, style: {
29
- display: 'flex',
30
- flexDirection: 'column',
31
- marginBottom: ((_b = index.theme.spacings) === null || _b === void 0 ? void 0 : _b.xs) + "px"
32
- } })))) : (React__default['default'].createElement(React__default['default'].Fragment, null,
33
- React__default['default'].createElement(ListItemWithRadio_styles.ListItemHeader, null,
34
- React__default['default'].createElement(typography.BodyText, { fontWeight: 'semiBold' }, item === null || item === void 0 ? void 0 :
35
- item.name,
36
- " "),
37
- React__default['default'].createElement(typography.BodyText, { size: typography.TextTypes.TextSize.SMALL, color: (_c = index.theme === null || index.theme === void 0 ? void 0 : index.theme.palette) === null || _c === void 0 ? void 0 : _c.dark }, item === null || item === void 0 ? void 0 : item.description)),
38
- React__default['default'].createElement(ListItemWithRadio_styles.RadioWrapper, null, radioChildren && radioChildren)))),
39
- rightChildren && rightChildren));
21
+ React__default['default'].createElement(ListItemWithRadio_styles.ListImageContainer, null,
22
+ React__default['default'].createElement(ListItemWithRadio_styles.ListImage, { src: (item === null || item === void 0 ? void 0 : item.image) || fallback_grocery, alt: item === null || item === void 0 ? void 0 : item.name })),
23
+ loading ? (React__default['default'].createElement(React__default['default'].Fragment, null,
24
+ React__default['default'].createElement(ListItemWithRadio_styles.ListItemHeader, null,
25
+ React__default['default'].createElement(Skeleton__default['default'], { width: 180 })),
26
+ React__default['default'].createElement(ListItemWithRadio_styles.RadioWrapper, null,
27
+ React__default['default'].createElement(Skeleton__default['default'], { width: 140, count: 2, style: {
28
+ display: 'flex',
29
+ flexDirection: 'column',
30
+ marginBottom: ((_b = index.theme.spacings) === null || _b === void 0 ? void 0 : _b.xs) + "px"
31
+ } })))) : (React__default['default'].createElement(React__default['default'].Fragment, null,
32
+ React__default['default'].createElement(ListItemWithRadio_styles.ListItemHeader, null,
33
+ React__default['default'].createElement(typography.BodyText, { fontWeight: 'semiBold' }, item === null || item === void 0 ? void 0 :
34
+ item.name,
35
+ " "),
36
+ React__default['default'].createElement(typography.BodyText, { size: typography.TextTypes.TextSize.SMALL, color: (_c = index.theme === null || index.theme === void 0 ? void 0 : index.theme.palette) === null || _c === void 0 ? void 0 : _c.dark }, item === null || item === void 0 ? void 0 : item.description)),
37
+ React__default['default'].createElement(ListItemWithRadio_styles.RadioWrapper, null, radioChildren && radioChildren))),
38
+ rightChildren && (React__default['default'].createElement(ListItemWithRadio_styles.RightChildWrapper, null, rightChildren))));
40
39
  }
41
40
 
42
41
  exports.ListItemWithRadio = ListItemWithRadio;
@@ -1 +1 @@
1
- {"version":3,"file":"ListItemWithRadio.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"ListItemWithRadio.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -11,17 +11,17 @@ var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
11
11
 
12
12
  var ListImageContainer = styled__default['default'].div(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject(["\n display: flex;\n align-items: center;\n flex-direction: row;\n width: ", "px;\n height: ", "px;\n grid-area: img;\n"], ["\n display: flex;\n align-items: center;\n flex-direction: row;\n width: ", "px;\n height: ", "px;\n grid-area: img;\n"])), function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.ListImageMaxWidth; }, function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.ListImageMaxWidth; });
13
13
  var ListImage = styled__default['default'].img(templateObject_2 || (templateObject_2 = _tslib.__makeTemplateObject(["\n max-width: 100%;\n max-height: 100%;\n"], ["\n max-width: 100%;\n max-height: 100%;\n"])));
14
- var ListItemContainer = styled__default['default'].div(templateObject_3 || (templateObject_3 = _tslib.__makeTemplateObject(["\n display: flex;\n"], ["\n display: flex;\n"])));
15
- var ListLeft = styled__default['default'].div(templateObject_4 || (templateObject_4 = _tslib.__makeTemplateObject(["\n display: grid;\n flex: 1;\n gap: ", "px;\n grid-template-columns: ", "px 1fr;\n grid-template-areas:\n 'img header'\n 'radio radio';\n\n @media (min-width: ", "px) {\n grid-template-rows: ", "px 1fr;\n grid-template-areas:\n 'img header'\n '. radio';\n }\n"], ["\n display: grid;\n flex: 1;\n gap: ", "px;\n grid-template-columns: ", "px 1fr;\n grid-template-areas:\n 'img header'\n 'radio radio';\n\n @media (min-width: ", "px) {\n grid-template-rows: ", "px 1fr;\n grid-template-areas:\n 'img header'\n '. radio';\n }\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm; }, function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.ListImageMaxWidth; }, function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.xs; }, function (props) { var _a, _b; return (_b = (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.lineHeight) === null || _b === void 0 ? void 0 : _b.m1; });
16
- var ListItemHeader = styled__default['default'](ListItemContainer)(templateObject_5 || (templateObject_5 = _tslib.__makeTemplateObject(["\n flex-direction: column;\n gap: 2px;\n padding-left: ", "px;\n grid-area: header;\n @media (min-width: ", "px) {\n flex-direction: row;\n gap: ", "px;\n align-items: center;\n }\n"], ["\n flex-direction: column;\n gap: 2px;\n padding-left: ", "px;\n grid-area: header;\n @media (min-width: ", "px) {\n flex-direction: row;\n gap: ", "px;\n align-items: center;\n }\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xxs; }, function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.xs; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs; });
17
- styled__default['default'].div(templateObject_6 || (templateObject_6 = _tslib.__makeTemplateObject(["\n flex-direction: column;\n gap: ", "px;\n"], ["\n flex-direction: column;\n gap: ", "px;\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm; });
18
- var RadioWrapper = styled__default['default'].div(templateObject_7 || (templateObject_7 = _tslib.__makeTemplateObject(["\n grid-area: radio;\n @media (min-width: ", "px) {\n padding-left: ", "px;\n }\n"], ["\n grid-area: radio;\n @media (min-width: ", "px) {\n padding-left: ", "px;\n }\n"])), function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.xs; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xxs; });
14
+ var ListItemContainer = styled__default['default'].div(templateObject_3 || (templateObject_3 = _tslib.__makeTemplateObject(["\n display: grid;\n flex: 1;\n gap: ", "px;\n grid-template-columns: ", "px 1fr;\n grid-template-areas:\n 'img header rightChild'\n 'radio radio radio';\n\n @media (min-width: ", "px) {\n grid-template-rows: ", "px 1fr;\n grid-template-areas:\n 'img header rightChild'\n '. radio .';\n }\n"], ["\n display: grid;\n flex: 1;\n gap: ", "px;\n grid-template-columns: ", "px 1fr;\n grid-template-areas:\n 'img header rightChild'\n 'radio radio radio';\n\n @media (min-width: ", "px) {\n grid-template-rows: ", "px 1fr;\n grid-template-areas:\n 'img header rightChild'\n '. radio .';\n }\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm; }, function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.ListImageMaxWidth; }, function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.sm; }, function (props) { var _a, _b; return (_b = (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.lineHeight) === null || _b === void 0 ? void 0 : _b.m1; });
15
+ var ListItemHeader = styled__default['default'].div(templateObject_4 || (templateObject_4 = _tslib.__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n gap: 2px;\n padding-left: ", "px;\n grid-area: header;\n @media (min-width: ", "px) {\n flex-direction: row;\n gap: ", "px;\n align-items: center;\n }\n"], ["\n display: flex;\n flex-direction: column;\n gap: 2px;\n padding-left: ", "px;\n grid-area: header;\n @media (min-width: ", "px) {\n flex-direction: row;\n gap: ", "px;\n align-items: center;\n }\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xxs; }, function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.sm; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs; });
16
+ styled__default['default'].div(templateObject_5 || (templateObject_5 = _tslib.__makeTemplateObject(["\n flex-direction: column;\n gap: ", "px;\n"], ["\n flex-direction: column;\n gap: ", "px;\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm; });
17
+ var RadioWrapper = styled__default['default'].div(templateObject_6 || (templateObject_6 = _tslib.__makeTemplateObject(["\n grid-area: radio;\n @media (min-width: ", "px) {\n padding-left: ", "px;\n }\n"], ["\n grid-area: radio;\n @media (min-width: ", "px) {\n padding-left: ", "px;\n }\n"])), function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.sm; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xxs; });
18
+ var RightChildWrapper = styled__default['default'].div(templateObject_7 || (templateObject_7 = _tslib.__makeTemplateObject(["\n grid-area: rightChild;\n"], ["\n grid-area: rightChild;\n"])));
19
19
  var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7;
20
20
 
21
21
  exports.ListImage = ListImage;
22
22
  exports.ListImageContainer = ListImageContainer;
23
23
  exports.ListItemContainer = ListItemContainer;
24
24
  exports.ListItemHeader = ListItemHeader;
25
- exports.ListLeft = ListLeft;
26
25
  exports.RadioWrapper = RadioWrapper;
26
+ exports.RightChildWrapper = RightChildWrapper;
27
27
  //# sourceMappingURL=ListItemWithRadio.styles.js.map
@@ -11,7 +11,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
11
11
  var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
12
12
 
13
13
  var BaseRadioListItemContainer = styled__default['default'].div(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject(["\n display: flex;\n padding: ", "px;\n align-items: center;\n cursor: pointer;\n flex-wrap: wrap;\n border-radius: ", "px;\n background: ", ";\n > p:first-of-type {\n margin-left: ", "px;\n }\n"], ["\n display: flex;\n padding: ", "px;\n align-items: center;\n cursor: pointer;\n flex-wrap: wrap;\n border-radius: ", "px;\n background: ", ";\n > p:first-of-type {\n margin-left: ", "px;\n }\n"])), function (props) { var _a; return (props.noPadding ? 0 : (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs); }, function (props) { var _a; return (_a = props.theme.attributes) === null || _a === void 0 ? void 0 : _a.borderRadius.small; }, function (props) { return props.background; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs; });
14
- var BaseRadioItemLeftWrapper = styled__default['default'].div(templateObject_2 || (templateObject_2 = _tslib.__makeTemplateObject(["\n display: flex;\n align-items: flex-start;\n ", ";\n > * {\n &:first-child {\n margin-right: ", "px;\n }\n }\n ", ";\n"], ["\n display: flex;\n align-items: flex-start;\n ", ";\n > * {\n &:first-child {\n margin-right: ", "px;\n }\n }\n ", ";\n"])), function (props) { return props.flexGrow && "flex-grow: " + props.flexGrow; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm; }, function (props) { return props.isDisabled && 'opacity: 0.4'; });
14
+ var BaseRadioItemLeftWrapper = styled__default['default'].div(templateObject_2 || (templateObject_2 = _tslib.__makeTemplateObject(["\n display: flex;\n align-items: center;\n ", ";\n > * {\n &:first-child {\n margin-right: ", "px;\n }\n }\n ", ";\n"], ["\n display: flex;\n align-items: center;\n ", ";\n > * {\n &:first-child {\n margin-right: ", "px;\n }\n }\n ", ";\n"])), function (props) { return props.flexGrow && "flex-grow: " + props.flexGrow; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm; }, function (props) { return props.isDisabled && 'opacity: 0.4'; });
15
15
  var ExtraTextContainer = styled__default['default'].div(templateObject_3 || (templateObject_3 = _tslib.__makeTemplateObject(["\n flex-basis: 100%;\n margin-left: ", "px;\n text-align: start;\n"], ["\n flex-basis: 100%;\n margin-left: ", "px;\n text-align: start;\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xl; });
16
16
  var StyledH3 = styled__default['default'](typography.H3).attrs({ as: 'label' })(templateObject_4 || (templateObject_4 = _tslib.__makeTemplateObject(["\n cursor: pointer;\n"], ["\n cursor: pointer;\n"])));
17
17
  var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
@@ -13,7 +13,7 @@ var Container = styled__default['default'].div(templateObject_1 || (templateObje
13
13
  var SliderContainer = styled__default['default'].div(templateObject_2 || (templateObject_2 = _tslib.__makeTemplateObject(["\n display: flex;\n align-items: center;\n overflow: scroll;\n scroll-behavior: smooth;\n margin: 0 -", "px;\n overflow-y: hidden;\n -ms-overflow-style: none; /* IE and Edge */\n scrollbar-width: none; /* Firefox */\n\n &::-webkit-scrollbar {\n display: none;\n }\n\n @media (pointer: fine) {\n overflow-x: hidden;\n }\n @media (min-width: ", "px) {\n margin: 0 -", "px;\n }\n"], ["\n display: flex;\n align-items: center;\n overflow: scroll;\n scroll-behavior: smooth;\n margin: 0 -", "px;\n overflow-y: hidden;\n -ms-overflow-style: none; /* IE and Edge */\n scrollbar-width: none; /* Firefox */\n\n &::-webkit-scrollbar {\n display: none;\n }\n\n @media (pointer: fine) {\n overflow-x: hidden;\n }\n @media (min-width: ", "px) {\n margin: 0 -", "px;\n }\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm; }, function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.md; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.lg; });
14
14
  var LeftIconButtonContainer = styled__default['default'].div(templateObject_3 || (templateObject_3 = _tslib.__makeTemplateObject(["\n display: flex;\n position: absolute;\n left: -", "px;\n z-index: 1;\n @media (min-width: ", "px) {\n left: -", "px;\n }\n"], ["\n display: flex;\n position: absolute;\n left: -", "px;\n z-index: 1;\n @media (min-width: ", "px) {\n left: -", "px;\n }\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs; }, function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.md; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm; });
15
15
  var RightIconButtonContainer = styled__default['default'].div(templateObject_4 || (templateObject_4 = _tslib.__makeTemplateObject(["\n display: flex;\n position: absolute;\n right: -", "px;\n @media (min-width: ", "px) {\n right: -", "px;\n }\n"], ["\n display: flex;\n position: absolute;\n right: -", "px;\n @media (min-width: ", "px) {\n right: -", "px;\n }\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs; }, function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.md; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm; });
16
- var ItemsContainer = styled__default['default'].div(templateObject_5 || (templateObject_5 = _tslib.__makeTemplateObject(["\n display: flex;\n flex-direction: row;\n gap: ", "px;\n padding: 0 ", "px;\n @media (min-width: ", "px) {\n padding: 0 ", "px;\n }\n"], ["\n display: flex;\n flex-direction: row;\n gap: ", "px;\n padding: 0 ", "px;\n @media (min-width: ", "px) {\n padding: 0 ", "px;\n }\n"])), function (props) { var _a, _b; return (_a = props.itemGap) !== null && _a !== void 0 ? _a : (_b = props.theme.constants) === null || _b === void 0 ? void 0 : _b.itemGap; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm; }, function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.md; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.lg; });
16
+ var ItemsContainer = styled__default['default'].div(templateObject_5 || (templateObject_5 = _tslib.__makeTemplateObject(["\n display: flex;\n flex-direction: row;\n gap: ", "px;\n padding: 0 ", "px;\n @media (min-width: ", "px) {\n padding: 0 ", "px;\n gap: ", "px;\n }\n"], ["\n display: flex;\n flex-direction: row;\n gap: ", "px;\n padding: 0 ", "px;\n @media (min-width: ", "px) {\n padding: 0 ", "px;\n gap: ", "px;\n }\n"])), function (props) { var _a, _b; return (_a = props.itemGap) !== null && _a !== void 0 ? _a : (_b = props.theme.spacings) === null || _b === void 0 ? void 0 : _b.xxs; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm; }, function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.md; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.lg; }, function (props) { var _a, _b; return (_a = props.itemGap) !== null && _a !== void 0 ? _a : (_b = props.theme.spacings) === null || _b === void 0 ? void 0 : _b.xs; });
17
17
  var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
18
18
 
19
19
  exports.Container = Container;
@@ -10,7 +10,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
10
10
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
11
11
 
12
12
  var PageContainer = function (_a) {
13
- var children = _a.children, containerBackground = _a.containerBackground, maxWidth = _a.maxWidth, _b = _a.shadow, shadow = _b === void 0 ? true : _b, background = _a.background;
13
+ var children = _a.children, containerBackground = _a.containerBackground, maxWidth = _a.maxWidth, shadow = _a.shadow, background = _a.background;
14
14
  return (React__default['default'].createElement(PageContainer_styles.CommonPageWrapper, { background: background },
15
15
  React__default['default'].createElement(PageContainer_styles.CommonPage, { shadow: shadow, background: containerBackground, maxWidth: maxWidth }, children)));
16
16
  };
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var AddressBlock = require('./components/AddressBlock/AddressBlock.js');
6
+ var AlertBox = require('./components/AlertBox/AlertBox.js');
6
7
  var Button = require('./components/Button/Button.js');
7
8
  var Header = require('./components/Header/Header.js');
8
9
  var Badge = require('./components/Badge/Badge.js');
@@ -51,6 +52,7 @@ var TwoColumnsPageContainer = require('./containers/TwoColumnsContainer/TwoColum
51
52
 
52
53
 
53
54
  exports.AddressBlock = AddressBlock.AddressBlock;
55
+ exports.AlertBox = AlertBox.AlertBox;
54
56
  exports.Button = Button.Button;
55
57
  Object.defineProperty(exports, 'ButtonColor', {
56
58
  enumerable: true,
@@ -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,14 @@
1
+ import React from 'react';
2
+ import { theme as theme_1 } from '../../../../design-tokens/build/index.js';
3
+ import { AlertBox as AlertBox$1 } from './AlertBox.styles.js';
4
+
5
+ function AlertBox(_a) {
6
+ var _b, _c;
7
+ var _d = _a.background, background = _d === void 0 ? (_b = theme_1.palette) === null || _b === void 0 ? void 0 : _b.blueLight : _d, _e = _a.borderColor, borderColor = _e === void 0 ? (_c = theme_1.palette) === null || _c === void 0 ? void 0 : _c.alertBlue : _e, icon = _a.icon, children = _a.children;
8
+ return (React.createElement(AlertBox$1, { background: background, borderColor: borderColor },
9
+ icon,
10
+ children));
11
+ }
12
+
13
+ export { AlertBox };
14
+ //# sourceMappingURL=AlertBox.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AlertBox.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
@@ -0,0 +1,8 @@
1
+ import { __makeTemplateObject } from '../../../../_virtual/_tslib.js';
2
+ import styled from 'styled-components';
3
+
4
+ var AlertBox = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background: ", ";\n border-left: ", ";\n border-radius: ", ";\n box-shadow: ", ";\n padding: ", "px;\n display: flex;\n align-items: center;\n gap: ", "px;\n"], ["\n background: ", ";\n border-left: ", ";\n border-radius: ", ";\n box-shadow: ", ";\n padding: ", "px;\n display: flex;\n align-items: center;\n gap: ", "px;\n"])), function (props) { var _a; return props.background || ((_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.blueLight); }, function (props) { var _a; return ((_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.infoBlockBorderWidth) + "px solid " + props.borderColor; }, function (props) { var _a, _b; return ((_a = props.theme.attributes) === null || _a === void 0 ? void 0 : _a.borderRadius.extraSmall) + "px 0 0 " + ((_b = props.theme.attributes) === null || _b === void 0 ? void 0 : _b.borderRadius.extraSmall) + "px"; }, function (props) { var _a; return (_a = props.theme.attributes) === null || _a === void 0 ? void 0 : _a.boxShadow.layoutShadow; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm; });
5
+ var templateObject_1;
6
+
7
+ export { AlertBox };
8
+ //# sourceMappingURL=AlertBox.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AlertBox.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -3,6 +3,8 @@ import styled from 'styled-components';
3
3
  import 'react';
4
4
  import '@citygross/typography';
5
5
  import '../AddressBlock/AddressBlock.styles.js';
6
+ import '../../../../design-tokens/build/index.js';
7
+ import '../AlertBox/AlertBox.styles.js';
6
8
  import './Button.js';
7
9
  import '@citygross/utils';
8
10
  import '@citygross/design-tokens';
@@ -16,7 +18,6 @@ import 'react-loading-skeleton';
16
18
  import '../CartItemSummary/CartItemSummary.styles.js';
17
19
  import '../Divider/Divider.styles.js';
18
20
  import '../CartSummary/CartSummary.styles.js';
19
- import '../../../../design-tokens/build/index.js';
20
21
  import '../CustomerInfoBlock/CustomerInfoBlock.styles.js';
21
22
  import '../Collapsable/Collapsable.styles.js';
22
23
  import '../DeliverySlotItem/DeliverySlotItem.styles.js';
@@ -1 +1 @@
1
- {"version":3,"file":"Button.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"Button.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,9 +1,9 @@
1
1
  import { __makeTemplateObject } from '../../../../_virtual/_tslib.js';
2
2
  import styled from 'styled-components';
3
3
 
4
- var CartItemSummaryWrapper = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n"], ["\n display: flex;\n"])));
5
- var CancelledWrapper = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 10px;\n"], ["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 10px;\n"])));
6
- var ItemInformationContainer = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 10px;\n"], ["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 10px;\n"])));
4
+ var CartItemSummaryWrapper = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n gap: 20px;\n"], ["\n display: flex;\n gap: 20px;\n"])));
5
+ var CancelledWrapper = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n"], ["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n"])));
6
+ var ItemInformationContainer = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n"], ["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n"])));
7
7
  var templateObject_1, templateObject_2, templateObject_3;
8
8
 
9
9
  export { CancelledWrapper, CartItemSummaryWrapper, ItemInformationContainer };
@@ -1,3 +1,4 @@
1
+ import { __rest } from '../../../../_virtual/_tslib.js';
1
2
  import { formatPrice } from '@citygross/utils';
2
3
  import React from 'react';
3
4
  import { Divider } from '../Divider/Divider.js';
@@ -22,11 +23,12 @@ var calculateSummaryLine = function (items) {
22
23
  });
23
24
  return sumOfItems;
24
25
  };
25
- function CartSummary(cartSummary) {
26
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
27
- var charges = (_a = cartSummary.charges) !== null && _a !== void 0 ? _a : [];
28
- var bags = (_b = cartSummary.bags) !== null && _b !== void 0 ? _b : [];
29
- var groceries = (_c = cartSummary.groceries) !== null && _c !== void 0 ? _c : [];
26
+ function CartSummary(_a) {
27
+ var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
28
+ var _m = _a.saveLabel, saveLabel = _m === void 0 ? 'sparat via erbjudanden' : _m, _o = _a.shippingLabel, shippingLabel = _o === void 0 ? 'frakt' : _o, _p = _a.totalLabel, totalLabel = _p === void 0 ? 'totalt' : _p, _q = _a.taxLabel, taxLabel = _q === void 0 ? 'varav moms' : _q, cartSummary = __rest(_a, ["saveLabel", "shippingLabel", "totalLabel", "taxLabel"]);
29
+ var charges = (_b = cartSummary.charges) !== null && _b !== void 0 ? _b : [];
30
+ var bags = (_c = cartSummary.bags) !== null && _c !== void 0 ? _c : [];
31
+ var groceries = (_d = cartSummary.groceries) !== null && _d !== void 0 ? _d : [];
30
32
  var sumOfBags = calculateSummaryLine(bags);
31
33
  var sumOfGroceries = calculateSummaryLine(groceries);
32
34
  return (React.createElement(CartSummaryContainer, null,
@@ -37,42 +39,42 @@ function CartSummary(cartSummary) {
37
39
  React.createElement(CartSummaryHeader, { title: cartSummary.title },
38
40
  bags.length > 0 && (React.createElement(CartLine, null,
39
41
  React.createElement(BodyText, null,
40
- "Matkassar ",
42
+ "matkassar ",
41
43
  sumOfBags.quantity,
42
44
  " st"),
43
45
  React.createElement(AmountWrapper, null,
44
- sumOfBags.cancelledAmount > 0 && (React.createElement(BodyText, { lineThrough: true, color: (_d = theme_1 === null || theme_1 === void 0 ? void 0 : theme_1.palette) === null || _d === void 0 ? void 0 : _d.dark }, formatPrice(sumOfBags.cancelledAmount))),
46
+ sumOfBags.cancelledAmount > 0 && (React.createElement(BodyText, { lineThrough: true, color: (_e = theme_1 === null || theme_1 === void 0 ? void 0 : theme_1.palette) === null || _e === void 0 ? void 0 : _e.dark }, formatPrice(sumOfBags.cancelledAmount))),
45
47
  React.createElement(H3, { fontWeight: 'semiBold' }, formatPrice(sumOfBags.amount))))),
46
48
  groceries.length > 0 && (React.createElement(CartLine, null,
47
49
  React.createElement(BodyText, null,
48
- "Matvaror ",
50
+ "matvaror ",
49
51
  sumOfGroceries.quantity,
50
52
  " st"),
51
53
  React.createElement(AmountWrapper, null,
52
- sumOfGroceries.cancelledAmount > 0 && (React.createElement(BodyText, { lineThrough: true, color: (_e = theme_1 === null || theme_1 === void 0 ? void 0 : theme_1.palette) === null || _e === void 0 ? void 0 : _e.dark }, formatPrice(sumOfGroceries.cancelledAmount))),
54
+ sumOfGroceries.cancelledAmount > 0 && (React.createElement(BodyText, { lineThrough: true, color: (_f = theme_1 === null || theme_1 === void 0 ? void 0 : theme_1.palette) === null || _f === void 0 ? void 0 : _f.dark }, formatPrice(sumOfGroceries.cancelledAmount))),
53
55
  React.createElement(H3, { fontWeight: 'semiBold' }, formatPrice(sumOfGroceries.amount))))),
54
- (charges === null || charges === void 0 ? void 0 : charges.length) > 0 && (React.createElement(Divider, { xsSpacing: (_f = theme_1.spacings) === null || _f === void 0 ? void 0 : _f.xs, lgSpacing: (_g = theme_1.spacings) === null || _g === void 0 ? void 0 : _g.xs })), charges === null || charges === void 0 ? void 0 :
56
+ (charges === null || charges === void 0 ? void 0 : charges.length) > 0 && (React.createElement(Divider, { xsSpacing: (_g = theme_1.spacings) === null || _g === void 0 ? void 0 : _g.xs, lgSpacing: (_h = theme_1.spacings) === null || _h === void 0 ? void 0 : _h.xs })), charges === null || charges === void 0 ? void 0 :
55
57
  charges.map(function (charge) {
56
- var _a;
58
+ var _a, _b;
57
59
  return (React.createElement(CartLine, { key: charge.name },
58
- React.createElement(BodyText, null, charge.name),
60
+ React.createElement(BodyText, null, (_a = charge === null || charge === void 0 ? void 0 : charge.name) === null || _a === void 0 ? void 0 : _a.toLowerCase()),
59
61
  React.createElement(AmountWrapper, null,
60
- charge.cancelledAmount > 0 && (React.createElement(BodyText, { lineThrough: true, color: (_a = theme_1 === null || theme_1 === void 0 ? void 0 : theme_1.palette) === null || _a === void 0 ? void 0 : _a.dark }, formatPrice(charge.cancelledAmount))),
62
+ charge.cancelledAmount > 0 && (React.createElement(BodyText, { lineThrough: true, color: (_b = theme_1 === null || theme_1 === void 0 ? void 0 : theme_1.palette) === null || _b === void 0 ? void 0 : _b.dark }, formatPrice(charge.cancelledAmount))),
61
63
  React.createElement(BodyText, null, formatPrice(charge.amount)))));
62
64
  }),
63
65
  cartSummary.totalDiscount > 0 && (React.createElement(CartLine, null,
64
- React.createElement(BodyText, { color: (_h = theme_1 === null || theme_1 === void 0 ? void 0 : theme_1.palette) === null || _h === void 0 ? void 0 : _h.alertRed }, "Sparat via erbjudanden"),
65
- React.createElement(BodyText, { color: (_j = theme_1 === null || theme_1 === void 0 ? void 0 : theme_1.palette) === null || _j === void 0 ? void 0 : _j.alertRed }, formatPrice(cartSummary.totalDiscount))))),
66
+ React.createElement(BodyText, { color: (_j = theme_1 === null || theme_1 === void 0 ? void 0 : theme_1.palette) === null || _j === void 0 ? void 0 : _j.alertRed }, saveLabel),
67
+ React.createElement(BodyText, { color: (_k = theme_1 === null || theme_1 === void 0 ? void 0 : theme_1.palette) === null || _k === void 0 ? void 0 : _k.alertRed }, formatPrice(cartSummary.totalDiscount))))),
66
68
  React.createElement(CartSummaryFooter, null,
67
- ((_k = cartSummary.deliveryFee) === null || _k === void 0 ? void 0 : _k.amount) &&
69
+ ((_l = cartSummary.deliveryFee) === null || _l === void 0 ? void 0 : _l.amount) &&
68
70
  cartSummary.deliveryFee.amount > 0 && (React.createElement(CartLine, null,
69
- React.createElement(BodyText, null, "Frakt:"),
71
+ React.createElement(BodyText, null, shippingLabel),
70
72
  React.createElement(BodyText, null, formatPrice(cartSummary.deliveryFee.amount)))),
71
73
  React.createElement(CartLine, null,
72
- React.createElement(H3, { fontWeight: 'semiBold' }, "Totalt:"),
74
+ React.createElement(H3, { fontWeight: 'semiBold' }, totalLabel),
73
75
  React.createElement(H3, { fontWeight: 'semiBold' }, formatPrice(cartSummary.totalAmount))),
74
76
  React.createElement(CartLine, null,
75
- React.createElement(BodyText, null, "Varav moms:"),
77
+ React.createElement(BodyText, null, taxLabel),
76
78
  React.createElement(BodyText, null, formatPrice(cartSummary.totalTaxAmount)))))));
77
79
  }
78
80
 
@@ -1 +1 @@
1
- {"version":3,"file":"CartSummary.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"CartSummary.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -23,10 +23,13 @@ function DeliverySlotItem(_a) {
23
23
  .toLocaleLowerCase());
24
24
  }, [width]);
25
25
  var slotRef = useRef(null);
26
- var _e = useState(false), isVisible = _e[0], setIsVisible = _e[1];
26
+ var _e = useState(true), isVisible = _e[0], setIsVisible = _e[1];
27
27
  var callbackFn = function (entries) {
28
28
  var entry = entries[0];
29
- setIsVisible(entry.isIntersecting);
29
+ if (!entry) {
30
+ return setIsVisible(true);
31
+ }
32
+ setIsVisible(!entry.isIntersecting);
30
33
  };
31
34
  var options = {
32
35
  root: null,
@@ -35,6 +38,8 @@ function DeliverySlotItem(_a) {
35
38
  };
36
39
  useEffect(function () {
37
40
  var observer = new IntersectionObserver(callbackFn, options);
41
+ if (!observer)
42
+ return;
38
43
  if (slotRef.current)
39
44
  observer.observe(slotRef === null || slotRef === void 0 ? void 0 : slotRef.current);
40
45
  return function () {
@@ -46,7 +51,7 @@ function DeliverySlotItem(_a) {
46
51
  return string.charAt(0).toUpperCase() + string.slice(1);
47
52
  }
48
53
  var removeLeadingZero = function (day) { return day.replace(/^0+/, ''); };
49
- return (React.createElement(DeliverySlotItemContainer, { onClick: !disabled ? onSelect : function () { return null; }, disabled: disabled, isVisible: isVisible, ref: slotRef },
54
+ return (React.createElement(DeliverySlotItemContainer, { onClick: !disabled ? onSelect : function () { return null; }, disabled: disabled, isVisible: !isVisible, ref: slotRef, selected: selected },
50
55
  React.createElement(DeliverySlotHeaderContainer, { disabled: disabled, selected: selected },
51
56
  React.createElement(DeliverySlotHeaderText, { disabled: disabled },
52
57
  React.createElement(BodyText, { color: selected ? 'white' : 'black' }, capitalizeFirstLetter(weekDay)))),
@@ -1 +1 @@
1
- {"version":3,"file":"DeliverySlotItem.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"DeliverySlotItem.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,30 +1,29 @@
1
1
  import { __makeTemplateObject } from '../../../../_virtual/_tslib.js';
2
2
  import styled from 'styled-components';
3
3
 
4
- var styledDiv = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n border: solid 1px\n ", ";\n"], ["\n border: solid 1px\n ", ";\n"])), function (props) {
4
+ var DeliverySlotItemContainer = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-self: center;\n opacity: ", ";\n transition: opacity ", ";\n min-width: ", "px;\n border: solid 1px\n ", ";\n border-radius: ", "px;\n overflow: hidden;\n\n @media (min-width: ", "px) {\n min-width: ", "px;\n }\n\n &:hover {\n cursor: ", ";\n }\n"], ["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-self: center;\n opacity: ", ";\n transition: opacity ", ";\n min-width: ", "px;\n border: solid 1px\n ", ";\n border-radius: ", "px;\n overflow: hidden;\n\n @media (min-width: ", "px) {\n min-width: ", "px;\n }\n\n &:hover {\n cursor: ", ";\n }\n"])), function (props) { return (props.isVisible ? 1 : 0.4); }, function (props) { var _a, _b; return (_b = (_a = props.theme.attributes) === null || _a === void 0 ? void 0 : _a.transition) === null || _b === void 0 ? void 0 : _b.t1; }, function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.deliverySlotItemWidth; }, function (props) {
5
5
  var _a, _b;
6
6
  return props.selected
7
7
  ? (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.brandBlue
8
- : (_b = props.theme.palette) === null || _b === void 0 ? void 0 : _b.lighter;
9
- });
10
- var DeliverySlotItemContainer = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-self: center;\n opacity: ", ";\n transition: opacity ", ";\n min-width: ", "px;\n\n @media (min-width: ", "px) {\n min-width: ", "px;\n }\n\n &:hover {\n cursor: ", ";\n }\n"], ["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-self: center;\n opacity: ", ";\n transition: opacity ", ";\n min-width: ", "px;\n\n @media (min-width: ", "px) {\n min-width: ", "px;\n }\n\n &:hover {\n cursor: ", ";\n }\n"])), function (props) { return (props.isVisible ? 1 : 0.4); }, function (props) { var _a, _b; return (_b = (_a = props.theme.attributes) === null || _a === void 0 ? void 0 : _a.transition) === null || _b === void 0 ? void 0 : _b.t1; }, function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.deliverySlotItemWidth; }, function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.md; }, function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.deliverySlotItemWidthDesktop; }, function (props) { return (props.disabled ? 'default' : 'pointer'); });
11
- var DeliverySlotHeaderContainer = styled(styledDiv)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: flex;\n width: stretch;\n border-radius: 5px 5px 0 0;\n align-items: center;\n justify-content: center;\n background: ", ";\n"], ["\n display: flex;\n width: stretch;\n border-radius: 5px 5px 0 0;\n align-items: center;\n justify-content: center;\n background: ", ";\n"])), function (props) {
8
+ : (_b = props.theme.palette) === null || _b === void 0 ? void 0 : _b.medium;
9
+ }, function (props) { var _a; return (_a = props.theme.attributes) === null || _a === void 0 ? void 0 : _a.borderRadius.small; }, function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.md; }, function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.deliverySlotItemWidthDesktop; }, function (props) { return (props.disabled ? 'default' : 'pointer'); });
10
+ var DeliverySlotHeaderContainer = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n width: 100%;\n align-items: center;\n justify-content: center;\n background: ", ";\n"], ["\n display: flex;\n width: 100%;\n align-items: center;\n justify-content: center;\n background: ", ";\n"])), function (props) {
12
11
  var _a, _b;
13
12
  return props.selected
14
13
  ? (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.brandBlue
15
- : (_b = props.theme.palette) === null || _b === void 0 ? void 0 : _b.lighter;
14
+ : (_b = props.theme.palette) === null || _b === void 0 ? void 0 : _b.lightest;
16
15
  });
17
- var DeliverySlotHeaderText = styled.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n padding: ", "px;\n ", ";\n"], ["\n padding: ", "px;\n ", ";\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm; }, function (props) { return props.disabled && 'opacity: 0.4'; });
18
- var DeliverySlotContainer = styled(styledDiv)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n padding: ", "px 0;\n flex: 1;\n width: stretch;\n border-radius: 0 0 5px 5px;\n background: ", ";\n"], ["\n padding: ", "px 0;\n flex: 1;\n width: stretch;\n border-radius: 0 0 5px 5px;\n background: ", ";\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm; }, function (props) {
16
+ var DeliverySlotHeaderText = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n padding: ", "px;\n ", ";\n"], ["\n padding: ", "px;\n ", ";\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm; }, function (props) { return props.disabled && 'opacity: 0.4'; });
17
+ var DeliverySlotContainer = styled.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n padding: ", "px 0;\n flex: 1;\n width: stretch;\n background: ", ";\n"], ["\n padding: ", "px 0;\n flex: 1;\n width: stretch;\n background: ", ";\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm; }, function (props) {
19
18
  var _a, _b;
20
19
  return props.selected
21
20
  ? (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.blueLight
22
21
  : (_b = props.theme.palette) === null || _b === void 0 ? void 0 : _b.white;
23
22
  });
24
- var DeliverySlotBody = styled.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: center;\n ", ";\n"], ["\n display: flex;\n flex-direction: column;\n align-items: center;\n ", ";\n"])), function (props) { return props.disabled && 'opacity: 0.4'; });
25
- var DisabledLabel = styled.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n display: flex;\n justify-content: center;\n padding: ", "px 0;\n"], ["\n display: flex;\n justify-content: center;\n padding: ", "px 0;\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xxs; });
26
- var DotContainer = styled.div(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n justify-content: center;\n display: flex;\n padding: ", "px 0;\n"], ["\n justify-content: center;\n display: flex;\n padding: ", "px 0;\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs; });
27
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8;
23
+ var DeliverySlotBody = styled.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: center;\n ", ";\n"], ["\n display: flex;\n flex-direction: column;\n align-items: center;\n ", ";\n"])), function (props) { return props.disabled && 'opacity: 0.4'; });
24
+ var DisabledLabel = styled.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n display: flex;\n justify-content: center;\n padding: ", "px 0;\n"], ["\n display: flex;\n justify-content: center;\n padding: ", "px 0;\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xxs; });
25
+ var DotContainer = styled.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n justify-content: center;\n display: flex;\n padding: ", "px 0;\n"], ["\n justify-content: center;\n display: flex;\n padding: ", "px 0;\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs; });
26
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7;
28
27
 
29
28
  export { DeliverySlotBody, DeliverySlotContainer, DeliverySlotHeaderContainer, DeliverySlotHeaderText, DeliverySlotItemContainer, DisabledLabel, DotContainer };
30
29
  //# sourceMappingURL=DeliverySlotItem.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DeliverySlotItem.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"DeliverySlotItem.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,16 +1,12 @@
1
1
  import React from 'react';
2
- import { FormWrapper, FormHeader, HeaderTitle } from './Form.styles.js';
3
- import { Divider } from '../Divider/Divider.styles.js';
4
- import { theme } from '@citygross/design-tokens';
2
+ import { FormWrapper, FormHeader } from './Form.styles.js';
5
3
 
6
4
  function Form(_a) {
7
- var _b, _c;
8
- var title = _a.title, icon = _a.icon, children = _a.children, onSubmit = _a.onSubmit;
9
- return (React.createElement(FormWrapper, { onSubmit: function (e) { return onSubmit && onSubmit(e); } },
5
+ var title = _a.title, icon = _a.icon, children = _a.children, onSubmit = _a.onSubmit, background = _a.background;
6
+ return (React.createElement(FormWrapper, { onSubmit: function (e) { return onSubmit && onSubmit(e); }, background: background },
10
7
  React.createElement(FormHeader, null,
11
- icon,
12
- React.createElement(HeaderTitle, null, title)),
13
- React.createElement(Divider, { xsSpacing: (_b = theme === null || theme === void 0 ? void 0 : theme.spacings) === null || _b === void 0 ? void 0 : _b.xs, lgSpacing: (_c = theme === null || theme === void 0 ? void 0 : theme.spacings) === null || _c === void 0 ? void 0 : _c.xs }),
8
+ icon && icon,
9
+ title),
14
10
  children));
15
11
  }
16
12
 
@@ -1 +1 @@
1
- {"version":3,"file":"Form.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"Form.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
@@ -1,10 +1,9 @@
1
1
  import { __makeTemplateObject } from '../../../../_virtual/_tslib.js';
2
2
  import styled from 'styled-components';
3
3
 
4
- var FormWrapper = styled.form(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n padding: ", "px;\n background-color: ", ";\n gap: ", "px;\n border-radius: ", "px;\n @media (min-width: ", "px) {\n padding: ", "px;\n }\n"], ["\n display: flex;\n flex-direction: column;\n padding: ", "px;\n background-color: ", ";\n gap: ", "px;\n border-radius: ", "px;\n @media (min-width: ", "px) {\n padding: ", "px;\n }\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm; }, function (props) { var _a; return (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.lighter; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm; }, function (props) { var _a; return (_a = props.theme.attributes) === null || _a === void 0 ? void 0 : _a.borderRadius.small; }, function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.xs; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.md; });
5
- var FormHeader = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n flex-direction: row;\n align-items: center;\n"], ["\n display: flex;\n flex-direction: row;\n align-items: center;\n"])));
6
- var HeaderTitle = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n padding: 0 ", "px;\n"], ["\n padding: 0 ", "px;\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs; });
7
- var templateObject_1, templateObject_2, templateObject_3;
4
+ var FormWrapper = styled.form(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n padding: ", "px;\n background-color: ", ";\n gap: ", "px;\n border-radius: ", "px;\n @media (min-width: ", "px) {\n padding: ", "px;\n }\n"], ["\n display: flex;\n flex-direction: column;\n padding: ", "px;\n background-color: ", ";\n gap: ", "px;\n border-radius: ", "px;\n @media (min-width: ", "px) {\n padding: ", "px;\n }\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm; }, function (props) { var _a; return props.background || ((_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.white); }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm; }, function (props) { var _a; return (_a = props.theme.attributes) === null || _a === void 0 ? void 0 : _a.borderRadius.small; }, function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.xs; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.lg; });
5
+ var FormHeader = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n flex-direction: row;\n align-items: center;\n padding-bottom: ", "px;\n gap: ", "px;\n"], ["\n display: flex;\n flex-direction: row;\n align-items: center;\n padding-bottom: ", "px;\n gap: ", "px;\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs; });
6
+ var templateObject_1, templateObject_2;
8
7
 
9
- export { FormHeader, FormWrapper, HeaderTitle };
8
+ export { FormHeader, FormWrapper };
10
9
  //# sourceMappingURL=Form.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Form.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
1
+ {"version":3,"file":"Form.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
@@ -5,7 +5,7 @@ var ItemInformationContainer = styled.div(templateObject_1 || (templateObject_1
5
5
  var ListItemContainer = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n\n p {\n padding: 1px 0px;\n }\n"], ["\n display: flex;\n justify-content: space-between;\n\n p {\n padding: 1px 0px;\n }\n"])));
6
6
  var ListLeft = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: ", "px;\n @media (min-width: ", "px) {\n gap: 20px;\n }\n"], ["\n display: flex;\n align-items: center;\n gap: ", "px;\n @media (min-width: ", "px) {\n gap: 20px;\n }\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm; }, function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.xs; });
7
7
  var ListRight = styled.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n justify-content: space-between;\n text-align: right;\n"], ["\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n justify-content: space-between;\n text-align: right;\n"])));
8
- var ListImageContainer = styled.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n flex-direction: row;\n width: ", "px;\n height: ", "px;\n"], ["\n display: flex;\n align-items: center;\n flex-direction: row;\n width: ", "px;\n height: ", "px;\n"])), function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.ListImageMaxWidth; }, function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.ListImageMaxWidth; });
8
+ var ListImageContainer = styled.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n flex-direction: row;\n width: ", "px;\n height: ", "px;\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n flex-direction: row;\n width: ", "px;\n height: ", "px;\n"])), function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.ListImageMaxWidth; }, function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.ListImageMaxWidth; });
9
9
  var ListImage = styled.img(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n max-width: 100%;\n max-height: 50px;\n"], ["\n max-width: 100%;\n max-height: 50px;\n"])));
10
10
  var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6;
11
11