sag_components 1.0.494 → 1.0.495

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 (95) hide show
  1. package/dist/stories/CampaignTool/Popup.stories.js +1 -1
  2. package/dist/stories/components/CampaignTool/Popup.js +8 -5
  3. package/dist/stories/components/CampaignTool/PopupContent.js +3 -2
  4. package/package.json +1 -1
  5. package/.history/.env_20231001120549 +0 -0
  6. package/.history/.env_20231001120613 +0 -1
  7. package/.history/.env_20231003143620 +0 -1
  8. package/.history/.eslintrc_20230928112617.js +0 -26
  9. package/.history/.eslintrc_20230928130534.js +0 -27
  10. package/.history/.eslintrc_20230928133400.js +0 -28
  11. package/.history/.eslintrc_20230928133404.js +0 -28
  12. package/.history/.eslintrc_20230928133416.js +0 -28
  13. package/.history/.eslintrc_20230928133419.js +0 -28
  14. package/.history/.eslintrc_20230928133432.js +0 -28
  15. package/.history/.eslintrc_20230928133439.js +0 -28
  16. package/.history/.eslintrc_20230928133458.js +0 -29
  17. package/.history/.eslintrc_20230928133500.js +0 -28
  18. package/.history/.eslintrc_20230928134009.js +0 -28
  19. package/.history/.eslintrc_20230928135318.js +0 -34
  20. package/.history/.eslintrc_20230928135321.js +0 -34
  21. package/.history/.eslintrc_20230928135323.js +0 -34
  22. package/.history/.eslintrc_20230928135332.js +0 -34
  23. package/.history/.eslintrc_20230928135333.js +0 -34
  24. package/.history/.eslintrc_20230928135352.js +0 -29
  25. package/.history/.eslintrc_20230928135353.js +0 -29
  26. package/.history/.eslintrc_20230928135355.js +0 -29
  27. package/.history/.eslintrc_20230928135408.js +0 -29
  28. package/.history/.eslintrc_20230928135538.js +0 -30
  29. package/.history/.eslintrc_20230928135539.js +0 -30
  30. package/.history/.eslintrc_20230928135543.js +0 -30
  31. package/.history/.gitignore_20230921093332 +0 -119
  32. package/.history/.gitignore_20230921111638 +0 -120
  33. package/.history/.gitignore_20230921111650 +0 -120
  34. package/.history/.gitignore_20230921111810 +0 -121
  35. package/.history/package-lock_20231114111138.json +0 -47810
  36. package/.history/package-lock_20231114111158.json +0 -47802
  37. package/.history/package_20231029152422.json +0 -82
  38. package/.history/package_20231029153420.json +0 -82
  39. package/.history/package_20231029154416.json +0 -82
  40. package/.history/package_20231030094127.json +0 -82
  41. package/.history/package_20231030114707.json +0 -82
  42. package/.history/package_20231030130704.json +0 -82
  43. package/.history/package_20231030132422.json +0 -82
  44. package/.history/package_20231030134051.json +0 -82
  45. package/.history/package_20231030142913.json +0 -82
  46. package/.history/package_20231030143556.json +0 -82
  47. package/.history/package_20231030144210.json +0 -82
  48. package/.history/package_20231101113942.json +0 -82
  49. package/.history/package_20231101114544.json +0 -82
  50. package/.history/package_20231101151518.json +0 -82
  51. package/.history/package_20231101154501.json +0 -82
  52. package/.history/package_20231101155811.json +0 -82
  53. package/.history/package_20231101160235.json +0 -82
  54. package/.history/package_20231101160406.json +0 -82
  55. package/.history/package_20231101161325.json +0 -82
  56. package/.history/package_20231101161333.json +0 -82
  57. package/.history/package_20231102123623.json +0 -82
  58. package/.history/package_20231102125741.json +0 -82
  59. package/.history/package_20231102130857.json +0 -82
  60. package/.history/package_20231102132227.json +0 -82
  61. package/.history/package_20231102142340.json +0 -82
  62. package/.history/package_20231102143256.json +0 -82
  63. package/.history/package_20231105153539.json +0 -82
  64. package/.history/package_20231105154332.json +0 -82
  65. package/.history/package_20231105171201.json +0 -82
  66. package/.history/package_20231106123849.json +0 -82
  67. package/.history/package_20231107170638.json +0 -82
  68. package/.history/package_20231109103647.json +0 -82
  69. package/.history/package_20231109103911.json +0 -82
  70. package/.history/package_20231109105426.json +0 -82
  71. package/.history/package_20231109132014.json +0 -82
  72. package/.history/package_20231109132115.json +0 -82
  73. package/.history/package_20231114100517.json +0 -82
  74. package/.history/package_20231114100859.json +0 -82
  75. package/.history/package_20231114101553.json +0 -82
  76. package/.history/package_20231114102545.json +0 -82
  77. package/.history/package_20231114111208.json +0 -83
  78. package/.history/package_20231114111515.json +0 -83
  79. package/.history/package_20231114112931.json +0 -83
  80. package/.history/package_20231114113014.json +0 -83
  81. package/.history/package_20231114113155.json +0 -83
  82. package/.history/package_20231114124318.json +0 -83
  83. package/.history/package_20231114125107.json +0 -83
  84. package/.history/package_20231114125510.json +0 -83
  85. package/.history/package_20231114132634.json +0 -83
  86. package/.history/package_20231116165815.json +0 -83
  87. package/.history/package_20231116165916.json +0 -83
  88. package/.history/package_20231119113637.json +0 -83
  89. package/.history/package_20231120100907.json +0 -83
  90. package/.history/package_20231121151523.json +0 -77
  91. package/.history/package_20231121155513.json +0 -77
  92. package/.history/package_20231121162434.json +0 -77
  93. package/.history/package_20231122100718.json +0 -77
  94. package/.history/package_20231128125149.json +0 -82
  95. package/.history/package_20231128125208.json +0 -82
@@ -684,7 +684,7 @@ var _default = exports.default = {
684
684
  }
685
685
  }
686
686
  };
687
- const Template = args => /*#__PURE__*/_react.default.createElement(_Popup.default, args);
687
+ const Template = args => /*#__PURE__*/_react.default.createElement(_Popup.default, args, /*#__PURE__*/_react.default.createElement("div", null, "test"));
688
688
  const ExamplePopup = exports.ExamplePopup = Template.bind({});
689
689
  ExamplePopup.args = {
690
690
  title: "Offer Details",
@@ -24,6 +24,7 @@ const Popup = props => {
24
24
  borderColor,
25
25
  subtitleTextColor,
26
26
  onOverlayClick,
27
+ children,
27
28
  onChange
28
29
  } = props;
29
30
  const [IsPopupOpen, setIsPopupOpen] = (0, _react.useState)(isPopupOpen);
@@ -55,7 +56,8 @@ const Popup = props => {
55
56
  const AccordionItem = _ref => {
56
57
  let {
57
58
  title,
58
- rowsData
59
+ rowsData,
60
+ children
59
61
  } = _ref;
60
62
  const [IsItemOpen, setIsItemOpen] = (0, _react.useState)(false);
61
63
  const handleToggle = () => {
@@ -77,7 +79,7 @@ const Popup = props => {
77
79
  subtitleTextColor: subtitleTextColor
78
80
  }, title)), IsItemOpen && /*#__PURE__*/_react.default.createElement(_Popup.AccordionContentContainer, {
79
81
  id: "AccordionContentContainer"
80
- }, /*#__PURE__*/_react.default.createElement(_PopupContent.default, {
82
+ }, children, /*#__PURE__*/_react.default.createElement(_PopupContent.default, {
81
83
  id: "PopupContent",
82
84
  width: "100%",
83
85
  height: "100%",
@@ -89,7 +91,8 @@ const Popup = props => {
89
91
  };
90
92
  const Accordion = _ref2 => {
91
93
  let {
92
- items
94
+ items,
95
+ children
93
96
  } = _ref2;
94
97
  return /*#__PURE__*/_react.default.createElement(_Popup.AccordionContainer, {
95
98
  id: "AccordionContainer",
@@ -100,7 +103,7 @@ const Popup = props => {
100
103
  key: index,
101
104
  title: item.title,
102
105
  rowsData: ((_item$rowsData = item.rowsData) === null || _item$rowsData === void 0 ? void 0 : _item$rowsData.length) > 0 ? item.rowsData : []
103
- });
106
+ }, children);
104
107
  }));
105
108
  };
106
109
  return /*#__PURE__*/_react.default.createElement(_Popup.MainContainer, {
@@ -126,7 +129,7 @@ const Popup = props => {
126
129
  onClick: e => closePopup(e)
127
130
  }, "\xD7")), /*#__PURE__*/_react.default.createElement(Accordion, {
128
131
  items: popupItemsData
129
- }), /*#__PURE__*/_react.default.createElement(_Popup.ButtonsContainer, {
132
+ }, children), /*#__PURE__*/_react.default.createElement(_Popup.ButtonsContainer, {
130
133
  id: "ButtonsContainer"
131
134
  }, /*#__PURE__*/_react.default.createElement(_Popup.InputCommit, {
132
135
  value: "Save",
@@ -15,7 +15,8 @@ var _PopupContent = require("./PopupContent.style");
15
15
  const PopupContent = props => {
16
16
  let {
17
17
  width,
18
- height
18
+ height,
19
+ children
19
20
  } = props;
20
21
  const methods = (0, _reactHookForm.useFormContext)();
21
22
  const {
@@ -35,7 +36,7 @@ const PopupContent = props => {
35
36
  id: "FieldsContainer",
36
37
  height: height,
37
38
  paddingBottom: paddingBottom
38
- }, data === null || data === void 0 ? void 0 : data.map(item => /*#__PURE__*/_react.default.createElement(_PopupContent.FieldContainer, {
39
+ }, children, data === null || data === void 0 ? void 0 : data.map(item => /*#__PURE__*/_react.default.createElement(_PopupContent.FieldContainer, {
39
40
  id: "FieldContainer"
40
41
  }, item.inputType === "dropdown" ? /*#__PURE__*/_react.default.createElement(_FormSelect.FormSelect, {
41
42
  id: "Select",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sag_components",
3
- "version": "1.0.494",
3
+ "version": "1.0.495",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
File without changes
@@ -1 +0,0 @@
1
- STORYBOOK_FIGMA_ACCESS_TOKEN=figd_YdAmQQKQ2B6ZngEijA0JiqNNUdJvP23G46NK7-fc
@@ -1 +0,0 @@
1
- STORYBOOK_FIGMA_ACCESS_TOKEN=figd_MOcc8-aS91XJ3mFdtNlH4oPVY73ChHlmw6-hKhsb
@@ -1,26 +0,0 @@
1
- module.exports = {
2
- env: {
3
- browser: true,
4
- es2021: true,
5
- },
6
- extends: 'airbnb',
7
- overrides: [
8
- {
9
- env: {
10
- node: true,
11
- },
12
- files: [
13
- '.eslintrc.{js,cjs}',
14
- ],
15
- parserOptions: {
16
- sourceType: 'script',
17
- },
18
- },
19
- ],
20
- parserOptions: {
21
- ecmaVersion: 'latest',
22
- sourceType: 'module',
23
- },
24
- rules: {
25
- },
26
- };
@@ -1,27 +0,0 @@
1
- module.exports = {
2
- env: {
3
- browser: true,
4
- es2021: true,
5
- },
6
- extends: 'airbnb',
7
- overrides: [
8
- {
9
- env: {
10
- node: true,
11
- },
12
- files: [
13
- '.eslintrc.{js,cjs}',
14
- ],
15
- parserOptions: {
16
- sourceType: 'script',
17
- },
18
- },
19
- ],
20
- parserOptions: {
21
- ecmaVersion: 'latest',
22
- sourceType: 'module',
23
- },
24
- rules: {
25
- 'max-len': 'off',
26
- },
27
- };
@@ -1,28 +0,0 @@
1
- module.exports = {
2
- env: {
3
- browser: true,
4
- es2021: true,
5
- },
6
- extends: 'airbnb',
7
- overrides: [
8
- {
9
- env: {
10
- node: true,
11
- },
12
- files: [
13
- '.eslintrc.{js,cjs}',
14
- ],
15
- parserOptions: {
16
- sourceType: 'script',
17
- },
18
- },
19
- ],
20
- parserOptions: {
21
- ecmaVersion: 'latest',
22
- sourceType: 'module',
23
- },
24
- rules: {
25
- 'max-len': 'off',
26
- /*eslint linebreak-style: ["error", "windows"]*/
27
- },
28
- };
@@ -1,28 +0,0 @@
1
- module.exports = {
2
- env: {
3
- browser: true,
4
- es2021: true,
5
- },
6
- extends: 'airbnb',
7
- overrides: [
8
- {
9
- env: {
10
- node: true,
11
- },
12
- files: [
13
- '.eslintrc.{js,cjs}',
14
- ],
15
- parserOptions: {
16
- sourceType: 'script',
17
- },
18
- },
19
- ],
20
- parserOptions: {
21
- ecmaVersion: 'latest',
22
- sourceType: 'module',
23
- },
24
- rules: {
25
- 'max-len': 'off',
26
- eslint linebreak-style: ["error", "windows"]
27
- },
28
- };
@@ -1,28 +0,0 @@
1
- module.exports = {
2
- env: {
3
- browser: true,
4
- es2021: true,
5
- },
6
- extends: 'airbnb',
7
- overrides: [
8
- {
9
- env: {
10
- node: true,
11
- },
12
- files: [
13
- '.eslintrc.{js,cjs}',
14
- ],
15
- parserOptions: {
16
- sourceType: 'script',
17
- },
18
- },
19
- ],
20
- parserOptions: {
21
- ecmaVersion: 'latest',
22
- sourceType: 'module',
23
- },
24
- rules: {
25
- 'max-len': 'off',
26
- linebreak-style: ["error", "windows"]
27
- },
28
- };
@@ -1,28 +0,0 @@
1
- module.exports = {
2
- env: {
3
- browser: true,
4
- es2021: true,
5
- },
6
- extends: 'airbnb',
7
- overrides: [
8
- {
9
- env: {
10
- node: true,
11
- },
12
- files: [
13
- '.eslintrc.{js,cjs}',
14
- ],
15
- parserOptions: {
16
- sourceType: 'script',
17
- },
18
- },
19
- ],
20
- parserOptions: {
21
- ecmaVersion: 'latest',
22
- sourceType: 'module',
23
- },
24
- rules: {
25
- 'max-len': 'off',
26
- 'linebreak-style': ["error", "windows"]
27
- },
28
- };
@@ -1,28 +0,0 @@
1
- module.exports = {
2
- env: {
3
- browser: true,
4
- es2021: true,
5
- },
6
- extends: 'airbnb',
7
- overrides: [
8
- {
9
- env: {
10
- node: true,
11
- },
12
- files: [
13
- '.eslintrc.{js,cjs}',
14
- ],
15
- parserOptions: {
16
- sourceType: 'script',
17
- },
18
- },
19
- ],
20
- parserOptions: {
21
- ecmaVersion: 'latest',
22
- sourceType: 'module',
23
- },
24
- rules: {
25
- 'max-len': 'off',
26
- 'linebreak-style': ['error', 'windows']
27
- },
28
- };
@@ -1,28 +0,0 @@
1
- module.exports = {
2
- env: {
3
- browser: true,
4
- es2021: true,
5
- },
6
- extends: 'airbnb',
7
- overrides: [
8
- {
9
- env: {
10
- node: true,
11
- },
12
- files: [
13
- '.eslintrc.{js,cjs}',
14
- ],
15
- parserOptions: {
16
- sourceType: 'script',
17
- },
18
- },
19
- ],
20
- parserOptions: {
21
- ecmaVersion: 'latest',
22
- sourceType: 'module',
23
- },
24
- rules: {
25
- 'max-len': 'off',
26
- 'linebreak-style': ['error', 'windows'],
27
- },
28
- };
@@ -1,29 +0,0 @@
1
- /* eslint-disable linebreak-style */
2
- module.exports = {
3
- env: {
4
- browser: true,
5
- es2021: true,
6
- },
7
- extends: 'airbnb',
8
- overrides: [
9
- {
10
- env: {
11
- node: true,
12
- },
13
- files: [
14
- '.eslintrc.{js,cjs}',
15
- ],
16
- parserOptions: {
17
- sourceType: 'script',
18
- },
19
- },
20
- ],
21
- parserOptions: {
22
- ecmaVersion: 'latest',
23
- sourceType: 'module',
24
- },
25
- rules: {
26
- 'max-len': 'off',
27
- 'linebreak-style': ['error', 'windows'],
28
- },
29
- };
@@ -1,28 +0,0 @@
1
- module.exports = {
2
- env: {
3
- browser: true,
4
- es2021: true,
5
- },
6
- extends: 'airbnb',
7
- overrides: [
8
- {
9
- env: {
10
- node: true,
11
- },
12
- files: [
13
- '.eslintrc.{js,cjs}',
14
- ],
15
- parserOptions: {
16
- sourceType: 'script',
17
- },
18
- },
19
- ],
20
- parserOptions: {
21
- ecmaVersion: 'latest',
22
- sourceType: 'module',
23
- },
24
- rules: {
25
- 'max-len': 'off',
26
- 'linebreak-style': ['error', 'windows'],
27
- },
28
- };
@@ -1,28 +0,0 @@
1
- module.exports = {
2
- env: {
3
- browser: true,
4
- es2021: true,
5
- },
6
- extends: 'airbnb',
7
- overrides: [
8
- {
9
- env: {
10
- node: true,
11
- },
12
- files: [
13
- '.eslintrc.{js,cjs}',
14
- ],
15
- parserOptions: {
16
- sourceType: 'script',
17
- },
18
- },
19
- ],
20
- parserOptions: {
21
- ecmaVersion: 'latest',
22
- sourceType: 'module',
23
- },
24
- rules: {
25
- 'max-len': 'off',
26
- 'linebreak-style': 0,
27
- },
28
- };
@@ -1,34 +0,0 @@
1
- module.exports = {
2
- env: {
3
- browser: true,
4
- es2021: true,
5
- },
6
- extends: 'airbnb',
7
- overrides: [
8
- {
9
- env: {
10
- node: true,
11
- },
12
- files: [
13
- '.eslintrc.{js,cjs}',
14
- ],
15
- parserOptions: {
16
- sourceType: 'script',
17
- },
18
- },
19
- ],
20
- parserOptions: {
21
- ecmaVersion: 'latest',
22
- sourceType: 'module',
23
- },
24
- rules: {
25
- 'max-len': 'off',
26
- 'linebreak-style': 0,
27
- "react/function-component-definition": [
28
- 2,
29
- {
30
- namedComponents: "function-declaration",
31
- },
32
- ],
33
- },
34
- };
@@ -1,34 +0,0 @@
1
- module.exports = {
2
- env: {
3
- browser: true,
4
- es2021: true,
5
- },
6
- extends: 'airbnb',
7
- overrides: [
8
- {
9
- env: {
10
- node: true,
11
- },
12
- files: [
13
- '.eslintrc.{js,cjs}',
14
- ],
15
- parserOptions: {
16
- sourceType: 'script',
17
- },
18
- },
19
- ],
20
- parserOptions: {
21
- ecmaVersion: 'latest',
22
- sourceType: 'module',
23
- },
24
- rules: {
25
- 'max-len': 'off',
26
- 'linebreak-style': 0,
27
- 'react/function-component-definition": [
28
- 2,
29
- {
30
- namedComponents: "function-declaration",
31
- },
32
- ],
33
- },
34
- };
@@ -1,34 +0,0 @@
1
- module.exports = {
2
- env: {
3
- browser: true,
4
- es2021: true,
5
- },
6
- extends: 'airbnb',
7
- overrides: [
8
- {
9
- env: {
10
- node: true,
11
- },
12
- files: [
13
- '.eslintrc.{js,cjs}',
14
- ],
15
- parserOptions: {
16
- sourceType: 'script',
17
- },
18
- },
19
- ],
20
- parserOptions: {
21
- ecmaVersion: 'latest',
22
- sourceType: 'module',
23
- },
24
- rules: {
25
- 'max-len': 'off',
26
- 'linebreak-style': 0,
27
- 'react/function-component-definition': [
28
- 2,
29
- {
30
- namedComponents: "function-declaration",
31
- },
32
- ],
33
- },
34
- };
@@ -1,34 +0,0 @@
1
- module.exports = {
2
- env: {
3
- browser: true,
4
- es2021: true,
5
- },
6
- extends: 'airbnb',
7
- overrides: [
8
- {
9
- env: {
10
- node: true,
11
- },
12
- files: [
13
- '.eslintrc.{js,cjs}',
14
- ],
15
- parserOptions: {
16
- sourceType: 'script',
17
- },
18
- },
19
- ],
20
- parserOptions: {
21
- ecmaVersion: 'latest',
22
- sourceType: 'module',
23
- },
24
- rules: {
25
- 'max-len': 'off',
26
- 'linebreak-style': 0,
27
- 'react/function-component-definition': [
28
- 2,
29
- {
30
- namedComponents: 'function-declaration",
31
- },
32
- ],
33
- },
34
- };
@@ -1,34 +0,0 @@
1
- module.exports = {
2
- env: {
3
- browser: true,
4
- es2021: true,
5
- },
6
- extends: 'airbnb',
7
- overrides: [
8
- {
9
- env: {
10
- node: true,
11
- },
12
- files: [
13
- '.eslintrc.{js,cjs}',
14
- ],
15
- parserOptions: {
16
- sourceType: 'script',
17
- },
18
- },
19
- ],
20
- parserOptions: {
21
- ecmaVersion: 'latest',
22
- sourceType: 'module',
23
- },
24
- rules: {
25
- 'max-len': 'off',
26
- 'linebreak-style': 0,
27
- 'react/function-component-definition': [
28
- 2,
29
- {
30
- namedComponents: 'function-declaration',
31
- },
32
- ],
33
- },
34
- };
@@ -1,29 +0,0 @@
1
- module.exports = {
2
- env: {
3
- browser: true,
4
- es2021: true,
5
- },
6
- extends: 'airbnb',
7
- overrides: [
8
- {
9
- env: {
10
- node: true,
11
- },
12
- files: [
13
- '.eslintrc.{js,cjs}',
14
- ],
15
- parserOptions: {
16
- sourceType: 'script',
17
- },
18
- },
19
- ],
20
- parserOptions: {
21
- ecmaVersion: 'latest',
22
- sourceType: 'module',
23
- },
24
- rules: {
25
- 'max-len': 'off',
26
- 'linebreak-style': 0,
27
- 'react/function-component-definition': ''
28
- },
29
- };
@@ -1,29 +0,0 @@
1
- module.exports = {
2
- env: {
3
- browser: true,
4
- es2021: true,
5
- },
6
- extends: 'airbnb',
7
- overrides: [
8
- {
9
- env: {
10
- node: true,
11
- },
12
- files: [
13
- '.eslintrc.{js,cjs}',
14
- ],
15
- parserOptions: {
16
- sourceType: 'script',
17
- },
18
- },
19
- ],
20
- parserOptions: {
21
- ecmaVersion: 'latest',
22
- sourceType: 'module',
23
- },
24
- rules: {
25
- 'max-len': 'off',
26
- 'linebreak-style': 0,
27
- 'react/function-component-definition': 'off'
28
- },
29
- };
@@ -1,29 +0,0 @@
1
- module.exports = {
2
- env: {
3
- browser: true,
4
- es2021: true,
5
- },
6
- extends: 'airbnb',
7
- overrides: [
8
- {
9
- env: {
10
- node: true,
11
- },
12
- files: [
13
- '.eslintrc.{js,cjs}',
14
- ],
15
- parserOptions: {
16
- sourceType: 'script',
17
- },
18
- },
19
- ],
20
- parserOptions: {
21
- ecmaVersion: 'latest',
22
- sourceType: 'module',
23
- },
24
- rules: {
25
- 'max-len': 'off',
26
- 'linebreak-style': 0,
27
- 'react/function-component-definition': 'off',
28
- },
29
- };