sag_components 1.0.271 → 1.0.273
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.history/{package_20230928174318.json → package_20231029152422.json} +26 -25
- package/.history/{package_20230928174320.json → package_20231029153420.json} +26 -25
- package/dist/stories/components/PerformanceAnalytics.js +0 -1
- package/dist/stories/components/SegmentedButton.js +21 -20
- package/dist/stories/components/SegmentedButton.style.js +6 -8
- package/package.json +1 -1
- package/.history/package_20230928095230.json +0 -74
- package/.history/package_20230928112303.json +0 -75
- package/.history/package_20230928131946.json +0 -80
- package/.history/package_20230928131950.json +0 -81
- package/.history/package_20230928131953.json +0 -80
- package/.history/package_20230928131956.json +0 -81
- package/.history/package_20230928131959.json +0 -80
- package/.history/package_20230928132003.json +0 -81
- package/.history/package_20230928132004.json +0 -81
- package/.history/package_20230928134639.json +0 -80
- package/.history/package_20230928134643.json +0 -81
- package/.history/package_20230928134645.json +0 -81
- package/.history/package_20230928134650.json +0 -81
- package/.history/package_20230928134912.json +0 -81
- package/.history/package_20230928174159.json +0 -81
- package/.history/package_20230928174200.json +0 -81
- package/.history/package_20230928174202.json +0 -81
- package/.history/package_20230928174226.json +0 -81
- package/.history/package_20230928174227.json +0 -81
- package/.history/package_20230928174228.json +0 -81
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sag_components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.272",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -14,20 +14,20 @@
|
|
|
14
14
|
"author": "SAG",
|
|
15
15
|
"license": "ISC",
|
|
16
16
|
"devDependencies": {
|
|
17
|
-
"@babel/cli": "^7.
|
|
18
|
-
"@babel/preset-env": "^7.
|
|
19
|
-
"@babel/preset-react": "^7.
|
|
20
|
-
"@babel/preset-typescript": "^7.
|
|
21
|
-
"@storybook/addon-a11y": "^7.4.
|
|
22
|
-
"@storybook/addon-essentials": "^7.4.
|
|
23
|
-
"@storybook/addon-interactions": "^7.4.
|
|
24
|
-
"@storybook/addon-links": "^7.4.
|
|
25
|
-
"@storybook/addon-storysource": "^7.4.
|
|
26
|
-
"@storybook/blocks": "^7.4.
|
|
17
|
+
"@babel/cli": "^7.23.0",
|
|
18
|
+
"@babel/preset-env": "^7.23.2",
|
|
19
|
+
"@babel/preset-react": "^7.22.15",
|
|
20
|
+
"@babel/preset-typescript": "^7.23.2",
|
|
21
|
+
"@storybook/addon-a11y": "^7.4.6",
|
|
22
|
+
"@storybook/addon-essentials": "^7.4.6",
|
|
23
|
+
"@storybook/addon-interactions": "^7.4.6",
|
|
24
|
+
"@storybook/addon-links": "^7.4.6",
|
|
25
|
+
"@storybook/addon-storysource": "^7.4.6",
|
|
26
|
+
"@storybook/blocks": "^7.4.6",
|
|
27
27
|
"@storybook/preset-scss": "^1.0.3",
|
|
28
|
-
"@storybook/react": "^7.4.
|
|
29
|
-
"@storybook/react-webpack5": "^7.4.
|
|
30
|
-
"@storybook/testing-library": "^0.2.
|
|
28
|
+
"@storybook/react": "^7.4.6",
|
|
29
|
+
"@storybook/react-webpack5": "^7.4.6",
|
|
30
|
+
"@storybook/testing-library": "^0.2.2",
|
|
31
31
|
"cross-env": "^7.0.3",
|
|
32
32
|
"css-loader": "^5.2.7",
|
|
33
33
|
"eslint": "^8.50.0",
|
|
@@ -43,27 +43,28 @@
|
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@dnd-kit/core": "^6.0.8",
|
|
46
|
-
"@emotion/react": "^11.11.
|
|
46
|
+
"@emotion/react": "^11.11.1",
|
|
47
47
|
"@emotion/styled": "^11.11.0",
|
|
48
|
-
"@fontsource/roboto": "^
|
|
49
|
-
"@fortawesome/fontawesome-svg-core": "^6.4.
|
|
50
|
-
"@fortawesome/free-solid-svg-icons": "^6.4.
|
|
48
|
+
"@fontsource/roboto": "^5.0.8",
|
|
49
|
+
"@fortawesome/fontawesome-svg-core": "^6.4.2",
|
|
50
|
+
"@fortawesome/free-solid-svg-icons": "^6.4.2",
|
|
51
51
|
"@fortawesome/react-fontawesome": "^0.2.0",
|
|
52
|
-
"@mui/icons-material": "^5.
|
|
53
|
-
"@mui/material": "^5.13
|
|
54
|
-
"@mui/styled-engine-sc": "^5.12
|
|
55
|
-
"@mui/x-date-pickers": "^6.
|
|
52
|
+
"@mui/icons-material": "^5.14.13",
|
|
53
|
+
"@mui/material": "^5.14.13",
|
|
54
|
+
"@mui/styled-engine-sc": "^5.14.12",
|
|
55
|
+
"@mui/x-date-pickers": "^6.16.2",
|
|
56
|
+
"@storybook/addon-designs": "^7.0.5",
|
|
56
57
|
"babel-plugin-react-css-modules": "^5.2.6",
|
|
57
58
|
"classnames": "^2.3.2",
|
|
58
|
-
"dayjs": "^1.11.
|
|
59
|
+
"dayjs": "^1.11.10",
|
|
59
60
|
"hoopy": "^0.1.4",
|
|
61
|
+
"prop-types": "^15.8.1",
|
|
60
62
|
"react": "^18.2.0",
|
|
61
63
|
"react-css-modules": "^4.7.11",
|
|
62
64
|
"react-loading-skeleton": "^3.3.1",
|
|
63
65
|
"react-scripts": "5.0.1",
|
|
64
|
-
"prop-types": "^15.8.1",
|
|
65
66
|
"recharts": "^2.6.2",
|
|
66
|
-
"storybook": "^7.4.
|
|
67
|
+
"storybook": "^7.4.6",
|
|
67
68
|
"styled-components": "^5.3.11"
|
|
68
69
|
},
|
|
69
70
|
"browserslist": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sag_components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.273",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -14,20 +14,20 @@
|
|
|
14
14
|
"author": "SAG",
|
|
15
15
|
"license": "ISC",
|
|
16
16
|
"devDependencies": {
|
|
17
|
-
"@babel/cli": "^7.
|
|
18
|
-
"@babel/preset-env": "^7.
|
|
19
|
-
"@babel/preset-react": "^7.
|
|
20
|
-
"@babel/preset-typescript": "^7.
|
|
21
|
-
"@storybook/addon-a11y": "^7.4.
|
|
22
|
-
"@storybook/addon-essentials": "^7.4.
|
|
23
|
-
"@storybook/addon-interactions": "^7.4.
|
|
24
|
-
"@storybook/addon-links": "^7.4.
|
|
25
|
-
"@storybook/addon-storysource": "^7.4.
|
|
26
|
-
"@storybook/blocks": "^7.4.
|
|
17
|
+
"@babel/cli": "^7.23.0",
|
|
18
|
+
"@babel/preset-env": "^7.23.2",
|
|
19
|
+
"@babel/preset-react": "^7.22.15",
|
|
20
|
+
"@babel/preset-typescript": "^7.23.2",
|
|
21
|
+
"@storybook/addon-a11y": "^7.4.6",
|
|
22
|
+
"@storybook/addon-essentials": "^7.4.6",
|
|
23
|
+
"@storybook/addon-interactions": "^7.4.6",
|
|
24
|
+
"@storybook/addon-links": "^7.4.6",
|
|
25
|
+
"@storybook/addon-storysource": "^7.4.6",
|
|
26
|
+
"@storybook/blocks": "^7.4.6",
|
|
27
27
|
"@storybook/preset-scss": "^1.0.3",
|
|
28
|
-
"@storybook/react": "^7.4.
|
|
29
|
-
"@storybook/react-webpack5": "^7.4.
|
|
30
|
-
"@storybook/testing-library": "^0.2.
|
|
28
|
+
"@storybook/react": "^7.4.6",
|
|
29
|
+
"@storybook/react-webpack5": "^7.4.6",
|
|
30
|
+
"@storybook/testing-library": "^0.2.2",
|
|
31
31
|
"cross-env": "^7.0.3",
|
|
32
32
|
"css-loader": "^5.2.7",
|
|
33
33
|
"eslint": "^8.50.0",
|
|
@@ -43,27 +43,28 @@
|
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@dnd-kit/core": "^6.0.8",
|
|
46
|
-
"@emotion/react": "^11.11.
|
|
46
|
+
"@emotion/react": "^11.11.1",
|
|
47
47
|
"@emotion/styled": "^11.11.0",
|
|
48
|
-
"@fontsource/roboto": "^
|
|
49
|
-
"@fortawesome/fontawesome-svg-core": "^6.4.
|
|
50
|
-
"@fortawesome/free-solid-svg-icons": "^6.4.
|
|
48
|
+
"@fontsource/roboto": "^5.0.8",
|
|
49
|
+
"@fortawesome/fontawesome-svg-core": "^6.4.2",
|
|
50
|
+
"@fortawesome/free-solid-svg-icons": "^6.4.2",
|
|
51
51
|
"@fortawesome/react-fontawesome": "^0.2.0",
|
|
52
|
-
"@mui/icons-material": "^5.
|
|
53
|
-
"@mui/material": "^5.13
|
|
54
|
-
"@mui/styled-engine-sc": "^5.12
|
|
55
|
-
"@mui/x-date-pickers": "^6.
|
|
52
|
+
"@mui/icons-material": "^5.14.13",
|
|
53
|
+
"@mui/material": "^5.14.13",
|
|
54
|
+
"@mui/styled-engine-sc": "^5.14.12",
|
|
55
|
+
"@mui/x-date-pickers": "^6.16.2",
|
|
56
|
+
"@storybook/addon-designs": "^7.0.5",
|
|
56
57
|
"babel-plugin-react-css-modules": "^5.2.6",
|
|
57
58
|
"classnames": "^2.3.2",
|
|
58
|
-
"dayjs": "^1.11.
|
|
59
|
+
"dayjs": "^1.11.10",
|
|
59
60
|
"hoopy": "^0.1.4",
|
|
61
|
+
"prop-types": "^15.8.1",
|
|
60
62
|
"react": "^18.2.0",
|
|
61
63
|
"react-css-modules": "^4.7.11",
|
|
62
64
|
"react-loading-skeleton": "^3.3.1",
|
|
63
65
|
"react-scripts": "5.0.1",
|
|
64
|
-
"prop-types": "^15.8.1",
|
|
65
66
|
"recharts": "^2.6.2",
|
|
66
|
-
"storybook": "^7.4.
|
|
67
|
+
"storybook": "^7.4.6",
|
|
67
68
|
"styled-components": "^5.3.11"
|
|
68
69
|
},
|
|
69
70
|
"browserslist": {
|
|
@@ -303,7 +303,6 @@ var PerformanceAnalytics = exports.PerformanceAnalytics = function PerformanceAn
|
|
|
303
303
|
var negativeData = data.filter(function (item) {
|
|
304
304
|
return item.IncrementalGrowthValue < 0;
|
|
305
305
|
});
|
|
306
|
-
console.log('negativeData', negativeData);
|
|
307
306
|
if (negativeData && negativeData.length > 0) return true;
|
|
308
307
|
return false;
|
|
309
308
|
}
|
|
@@ -10,16 +10,17 @@ var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/
|
|
|
10
10
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
11
11
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
|
12
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
|
-
var
|
|
14
|
-
var _excluded = ["name", "options", "width", "
|
|
15
|
-
/*
|
|
13
|
+
var _SegmentedButton = require("./SegmentedButton.style");
|
|
14
|
+
var _excluded = ["name", "options", "width", "height", "controlRadius", "segmentRadius", "fontSize", "backgroundColor", "selectedSegmentColor", "selectedTextColor", "unselectedTextColor", "defaultIndex", "onClick"];
|
|
15
|
+
/* eslint-disable react/require-default-props */
|
|
16
|
+
/* SegmentedButton */
|
|
16
17
|
var SegmentedButton = exports.SegmentedButton = function SegmentedButton(_ref) {
|
|
17
18
|
var name = _ref.name,
|
|
18
19
|
options = _ref.options,
|
|
19
20
|
_ref$width = _ref.width,
|
|
20
21
|
width = _ref$width === void 0 ? 120 : _ref$width,
|
|
21
|
-
_ref$
|
|
22
|
-
|
|
22
|
+
_ref$height = _ref.height,
|
|
23
|
+
height = _ref$height === void 0 ? 40 : _ref$height,
|
|
23
24
|
_ref$controlRadius = _ref.controlRadius,
|
|
24
25
|
controlRadius = _ref$controlRadius === void 0 ? 8 : _ref$controlRadius,
|
|
25
26
|
_ref$segmentRadius = _ref.segmentRadius,
|
|
@@ -27,13 +28,13 @@ var SegmentedButton = exports.SegmentedButton = function SegmentedButton(_ref) {
|
|
|
27
28
|
_ref$fontSize = _ref.fontSize,
|
|
28
29
|
fontSize = _ref$fontSize === void 0 ? 14 : _ref$fontSize,
|
|
29
30
|
_ref$backgroundColor = _ref.backgroundColor,
|
|
30
|
-
backgroundColor = _ref$backgroundColor === void 0 ?
|
|
31
|
+
backgroundColor = _ref$backgroundColor === void 0 ? '#ECF0FF' : _ref$backgroundColor,
|
|
31
32
|
_ref$selectedSegmentC = _ref.selectedSegmentColor,
|
|
32
|
-
selectedSegmentColor = _ref$selectedSegmentC === void 0 ?
|
|
33
|
+
selectedSegmentColor = _ref$selectedSegmentC === void 0 ? '#3a9df9' : _ref$selectedSegmentC,
|
|
33
34
|
_ref$selectedTextColo = _ref.selectedTextColor,
|
|
34
|
-
selectedTextColor = _ref$selectedTextColo === void 0 ?
|
|
35
|
+
selectedTextColor = _ref$selectedTextColo === void 0 ? 'white' : _ref$selectedTextColo,
|
|
35
36
|
_ref$unselectedTextCo = _ref.unselectedTextColor,
|
|
36
|
-
unselectedTextColor = _ref$unselectedTextCo === void 0 ?
|
|
37
|
+
unselectedTextColor = _ref$unselectedTextCo === void 0 ? 'black' : _ref$unselectedTextCo,
|
|
37
38
|
_ref$defaultIndex = _ref.defaultIndex,
|
|
38
39
|
defaultIndex = _ref$defaultIndex === void 0 ? 0 : _ref$defaultIndex,
|
|
39
40
|
onClick = _ref.onClick,
|
|
@@ -66,8 +67,8 @@ var SegmentedButton = exports.SegmentedButton = function SegmentedButton(_ref) {
|
|
|
66
67
|
offsetWidth = _activeSegmentRef$cur.offsetWidth,
|
|
67
68
|
offsetLeft = _activeSegmentRef$cur.offsetLeft;
|
|
68
69
|
var style = controlRef.current.style;
|
|
69
|
-
style.setProperty(
|
|
70
|
-
style.setProperty(
|
|
70
|
+
style.setProperty('--highlight-width', "".concat(offsetWidth, "px"));
|
|
71
|
+
style.setProperty('--highlight-x-pos', "".concat(offsetLeft, "px"));
|
|
71
72
|
}, [activeIndex, controlRef, optionsRef]);
|
|
72
73
|
var onInputChangeHandler = function onInputChangeHandler(value, index) {
|
|
73
74
|
setActiveIndex(index);
|
|
@@ -80,20 +81,20 @@ var SegmentedButton = exports.SegmentedButton = function SegmentedButton(_ref) {
|
|
|
80
81
|
if (options && options.length > 0 && width && width > 0) {
|
|
81
82
|
segmentWidth = width / options.length;
|
|
82
83
|
}
|
|
83
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
84
|
+
return /*#__PURE__*/_react.default.createElement(_SegmentedButton.ControlsContainer, {
|
|
84
85
|
id: "ControlsContainer",
|
|
85
86
|
fontSize: fontSize,
|
|
86
87
|
ref: controlRef
|
|
87
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
88
|
+
}, /*#__PURE__*/_react.default.createElement(_SegmentedButton.Controls, {
|
|
88
89
|
id: "Controls",
|
|
89
90
|
backgroundColor: backgroundColor,
|
|
90
91
|
selectedSegmentColor: selectedSegmentColor,
|
|
91
92
|
segmentRadius: segmentRadius,
|
|
92
93
|
controlRadius: controlRadius,
|
|
93
94
|
segmentWidth: segmentWidth,
|
|
94
|
-
className: "controls ".concat(componentReady.current ?
|
|
95
|
+
className: "controls ".concat(componentReady.current ? 'ready' : 'idle')
|
|
95
96
|
}, optionsRef === null || optionsRef === void 0 ? void 0 : optionsRef.map(function (item, i) {
|
|
96
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
97
|
+
return /*#__PURE__*/_react.default.createElement(_SegmentedButton.Segment, {
|
|
97
98
|
id: "Segment",
|
|
98
99
|
key: item.id,
|
|
99
100
|
backgroundColor: backgroundColor,
|
|
@@ -101,9 +102,9 @@ var SegmentedButton = exports.SegmentedButton = function SegmentedButton(_ref) {
|
|
|
101
102
|
segmentRadius: segmentRadius,
|
|
102
103
|
controlRadius: controlRadius,
|
|
103
104
|
segmentWidth: segmentWidth,
|
|
104
|
-
className: "".concat(activeIndex === i ?
|
|
105
|
+
className: "".concat(activeIndex === i ? 'active' : 'inactive'),
|
|
105
106
|
ref: item.ref
|
|
106
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
107
|
+
}, /*#__PURE__*/_react.default.createElement(_SegmentedButton.ControlsInput, {
|
|
107
108
|
type: "radio",
|
|
108
109
|
value: item.value,
|
|
109
110
|
id: item.id,
|
|
@@ -112,12 +113,12 @@ var SegmentedButton = exports.SegmentedButton = function SegmentedButton(_ref) {
|
|
|
112
113
|
return onInputChangeHandler(item.value, item.id);
|
|
113
114
|
},
|
|
114
115
|
checked: i === activeIndex
|
|
115
|
-
}), /*#__PURE__*/_react.default.createElement(
|
|
116
|
+
}), /*#__PURE__*/_react.default.createElement(_SegmentedButton.SegmentLabel, {
|
|
116
117
|
id: "SegmentLabel",
|
|
117
118
|
selectedTextColor: selectedTextColor,
|
|
118
119
|
unselectedTextColor: unselectedTextColor,
|
|
119
|
-
|
|
120
|
-
className: "".concat(activeIndex === i ?
|
|
120
|
+
segmentheight: height / 5,
|
|
121
|
+
className: "".concat(activeIndex === i ? 'active' : 'inactive', " "),
|
|
121
122
|
htmlFor: item.value
|
|
122
123
|
}, item.value));
|
|
123
124
|
})));
|
|
@@ -10,24 +10,22 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
|
10
10
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
11
11
|
var ControlsContainer = exports.ControlsContainer = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex; \n font: ", "; \n margin: 0;\n --highlight-width: auto;\n --highlight-x-pos: 0;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n"])), function (props) {
|
|
12
12
|
var _props$fontSize;
|
|
13
|
-
return (_props$fontSize = props.fontSize) === null || _props$fontSize === void 0 ? void 0 : _props$fontSize.toString().concat(
|
|
13
|
+
return (_props$fontSize = props.fontSize) === null || _props$fontSize === void 0 ? void 0 : _props$fontSize.toString().concat('', 'px Poppins, sans-serif');
|
|
14
14
|
});
|
|
15
|
-
var Controls = exports.Controls = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n display: inline-flex;\n justify-content: space-between; \n background: ", ";\n
|
|
15
|
+
var Controls = exports.Controls = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n display: inline-flex;\n justify-content: space-between; \n background: ", ";\n border-radius: ", "; //12px\n // max-width: 500px; //use this to limit max lenght of the control \n padding: 6px; \n margin: auto;\n overflow: hidden;\n position: relative;\n &.controls::before {\n content: \"\";\n background: ", "; /* #3a9df9; #5465ff;*/\n box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);\n border-radius: ", "; //12px\n width: var(--highlight-width);\n transform: translateX(var(--highlight-x-pos));\n position: absolute;\n top: 3px;\n bottom: 3px;\n left: 0; \n z-index: 0;\n }\n &.controls.ready::before {\n transition: transform 0.3s ease, width 0.3s ease;\n }\n"])), function (props) {
|
|
16
16
|
return props.backgroundColor;
|
|
17
17
|
}, function (props) {
|
|
18
|
-
return props.controlRadius.toString().concat(
|
|
18
|
+
return props.controlRadius.toString().concat('', 'px');
|
|
19
19
|
}, function (props) {
|
|
20
20
|
return props.selectedSegmentColor;
|
|
21
21
|
}, function (props) {
|
|
22
|
-
return props.segmentRadius.toString().concat(
|
|
22
|
+
return props.segmentRadius.toString().concat('', 'px');
|
|
23
23
|
});
|
|
24
24
|
var ControlsInput = exports.ControlsInput = _styledComponents.default.input(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n opacity: 0;\n margin: 0;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n position: absolute;\n width: 100%;\n cursor: pointer;\n height: 100%;\n"])));
|
|
25
25
|
var Segment = exports.Segment = _styledComponents.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n /* width: 100%; uncomment for each segment to have matching width */ \n min-width: ", "; //120px;\n position: relative;\n text-align: center;\n z-index: 1; \n"])), function (props) {
|
|
26
|
-
return props.segmentWidth.toString().concat(
|
|
26
|
+
return props.segmentWidth.toString().concat('', 'px');
|
|
27
27
|
});
|
|
28
|
-
var SegmentLabel = exports.SegmentLabel = _styledComponents.default.label(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n cursor: pointer;\n display: block;\n
|
|
29
|
-
return props.segmentHeigth.toString().concat("", "px");
|
|
30
|
-
}, function (props) {
|
|
28
|
+
var SegmentLabel = exports.SegmentLabel = _styledComponents.default.label(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n cursor: pointer;\n display: block;\n transition: color 0.5s ease;\n &.active {\n color: ", ";\n }\n &.inactive {\n color: ", ";\n }\n"])), function (props) {
|
|
31
29
|
return props.selectedTextColor;
|
|
32
30
|
}, function (props) {
|
|
33
31
|
return props.unselectedTextColor;
|
package/package.json
CHANGED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "sag_components",
|
|
3
|
-
"version": "1.0.241",
|
|
4
|
-
"description": "",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"start": "react-scripts start",
|
|
8
|
-
"build": "cross-env BABEL_ENV=production babel src -d dist ",
|
|
9
|
-
"storybook": "storybook dev -p 6006",
|
|
10
|
-
"build-storybook": "storybook build"
|
|
11
|
-
},
|
|
12
|
-
"keywords": [],
|
|
13
|
-
"author": "SAG",
|
|
14
|
-
"license": "ISC",
|
|
15
|
-
"devDependencies": {
|
|
16
|
-
"@babel/cli": "^7.21.5",
|
|
17
|
-
"@babel/preset-env": "^7.21.4",
|
|
18
|
-
"@babel/preset-react": "^7.18.6",
|
|
19
|
-
"@babel/preset-typescript": "^7.21.4",
|
|
20
|
-
"@storybook/addon-a11y": "^7.4.5",
|
|
21
|
-
"@storybook/addon-essentials": "^7.4.5",
|
|
22
|
-
"@storybook/addon-interactions": "^7.4.5",
|
|
23
|
-
"@storybook/addon-links": "^7.4.5",
|
|
24
|
-
"@storybook/addon-storysource": "^7.4.5",
|
|
25
|
-
"@storybook/blocks": "^7.4.5",
|
|
26
|
-
"@storybook/preset-scss": "^1.0.3",
|
|
27
|
-
"@storybook/react": "^7.4.5",
|
|
28
|
-
"@storybook/react-webpack5": "^7.4.5",
|
|
29
|
-
"@storybook/testing-library": "^0.2.1",
|
|
30
|
-
"cross-env": "^7.0.3",
|
|
31
|
-
"css-loader": "^5.2.7",
|
|
32
|
-
"prop-types": "^15.8.1",
|
|
33
|
-
"react": "^18.2.0",
|
|
34
|
-
"react-dom": "^18.2.0",
|
|
35
|
-
"sass": "^1.62.0",
|
|
36
|
-
"sass-loader": "^10.4.1",
|
|
37
|
-
"style-loader": "^2.0.0",
|
|
38
|
-
"styled-components": "^5.3.10"
|
|
39
|
-
},
|
|
40
|
-
"dependencies": {
|
|
41
|
-
"@dnd-kit/core": "^6.0.8",
|
|
42
|
-
"@emotion/react": "^11.11.0",
|
|
43
|
-
"@emotion/styled": "^11.11.0",
|
|
44
|
-
"@fontsource/roboto": "^4.5.8",
|
|
45
|
-
"@fortawesome/fontawesome-svg-core": "^6.4.0",
|
|
46
|
-
"@fortawesome/free-solid-svg-icons": "^6.4.0",
|
|
47
|
-
"@fortawesome/react-fontawesome": "^0.2.0",
|
|
48
|
-
"@mui/icons-material": "^5.11.16",
|
|
49
|
-
"@mui/material": "^5.13.0",
|
|
50
|
-
"@mui/styled-engine-sc": "^5.12.0",
|
|
51
|
-
"@mui/x-date-pickers": "^6.11.1",
|
|
52
|
-
"babel-plugin-react-css-modules": "^5.2.6",
|
|
53
|
-
"classnames": "^2.3.2",
|
|
54
|
-
"dayjs": "^1.11.9",
|
|
55
|
-
"hoopy": "^0.1.4",
|
|
56
|
-
"react-css-modules": "^4.7.11",
|
|
57
|
-
"react-loading-skeleton": "^3.3.1",
|
|
58
|
-
"react-scripts": "5.0.1",
|
|
59
|
-
"recharts": "^2.6.2",
|
|
60
|
-
"storybook": "^7.4.5"
|
|
61
|
-
},
|
|
62
|
-
"browserslist": {
|
|
63
|
-
"production": [
|
|
64
|
-
">0.2%",
|
|
65
|
-
"not dead",
|
|
66
|
-
"not op_mini all"
|
|
67
|
-
],
|
|
68
|
-
"development": [
|
|
69
|
-
"last 1 chrome version",
|
|
70
|
-
"last 1 firefox version",
|
|
71
|
-
"last 1 safari version"
|
|
72
|
-
]
|
|
73
|
-
}
|
|
74
|
-
}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "sag_components",
|
|
3
|
-
"version": "1.0.241",
|
|
4
|
-
"description": "",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"start": "react-scripts start",
|
|
8
|
-
"lint": "eslint .",
|
|
9
|
-
"build": "cross-env BABEL_ENV=production babel src -d dist ",
|
|
10
|
-
"storybook": "storybook dev -p 6006",
|
|
11
|
-
"build-storybook": "storybook build"
|
|
12
|
-
},
|
|
13
|
-
"keywords": [],
|
|
14
|
-
"author": "SAG",
|
|
15
|
-
"license": "ISC",
|
|
16
|
-
"devDependencies": {
|
|
17
|
-
"@babel/cli": "^7.21.5",
|
|
18
|
-
"@babel/preset-env": "^7.21.4",
|
|
19
|
-
"@babel/preset-react": "^7.18.6",
|
|
20
|
-
"@babel/preset-typescript": "^7.21.4",
|
|
21
|
-
"@storybook/addon-a11y": "^7.4.5",
|
|
22
|
-
"@storybook/addon-essentials": "^7.4.5",
|
|
23
|
-
"@storybook/addon-interactions": "^7.4.5",
|
|
24
|
-
"@storybook/addon-links": "^7.4.5",
|
|
25
|
-
"@storybook/addon-storysource": "^7.4.5",
|
|
26
|
-
"@storybook/blocks": "^7.4.5",
|
|
27
|
-
"@storybook/preset-scss": "^1.0.3",
|
|
28
|
-
"@storybook/react": "^7.4.5",
|
|
29
|
-
"@storybook/react-webpack5": "^7.4.5",
|
|
30
|
-
"@storybook/testing-library": "^0.2.1",
|
|
31
|
-
"cross-env": "^7.0.3",
|
|
32
|
-
"css-loader": "^5.2.7",
|
|
33
|
-
"prop-types": "^15.8.1",
|
|
34
|
-
"react": "^18.2.0",
|
|
35
|
-
"react-dom": "^18.2.0",
|
|
36
|
-
"sass": "^1.62.0",
|
|
37
|
-
"sass-loader": "^10.4.1",
|
|
38
|
-
"style-loader": "^2.0.0",
|
|
39
|
-
"styled-components": "^5.3.10"
|
|
40
|
-
},
|
|
41
|
-
"dependencies": {
|
|
42
|
-
"@dnd-kit/core": "^6.0.8",
|
|
43
|
-
"@emotion/react": "^11.11.0",
|
|
44
|
-
"@emotion/styled": "^11.11.0",
|
|
45
|
-
"@fontsource/roboto": "^4.5.8",
|
|
46
|
-
"@fortawesome/fontawesome-svg-core": "^6.4.0",
|
|
47
|
-
"@fortawesome/free-solid-svg-icons": "^6.4.0",
|
|
48
|
-
"@fortawesome/react-fontawesome": "^0.2.0",
|
|
49
|
-
"@mui/icons-material": "^5.11.16",
|
|
50
|
-
"@mui/material": "^5.13.0",
|
|
51
|
-
"@mui/styled-engine-sc": "^5.12.0",
|
|
52
|
-
"@mui/x-date-pickers": "^6.11.1",
|
|
53
|
-
"babel-plugin-react-css-modules": "^5.2.6",
|
|
54
|
-
"classnames": "^2.3.2",
|
|
55
|
-
"dayjs": "^1.11.9",
|
|
56
|
-
"hoopy": "^0.1.4",
|
|
57
|
-
"react-css-modules": "^4.7.11",
|
|
58
|
-
"react-loading-skeleton": "^3.3.1",
|
|
59
|
-
"react-scripts": "5.0.1",
|
|
60
|
-
"recharts": "^2.6.2",
|
|
61
|
-
"storybook": "^7.4.5"
|
|
62
|
-
},
|
|
63
|
-
"browserslist": {
|
|
64
|
-
"production": [
|
|
65
|
-
">0.2%",
|
|
66
|
-
"not dead",
|
|
67
|
-
"not op_mini all"
|
|
68
|
-
],
|
|
69
|
-
"development": [
|
|
70
|
-
"last 1 chrome version",
|
|
71
|
-
"last 1 firefox version",
|
|
72
|
-
"last 1 safari version"
|
|
73
|
-
]
|
|
74
|
-
}
|
|
75
|
-
}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "sag_components",
|
|
3
|
-
"version": "1.0.241",
|
|
4
|
-
"description": "",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"start": "react-scripts start",
|
|
8
|
-
"lint": "eslint .",
|
|
9
|
-
"build": "cross-env BABEL_ENV=production babel src -d dist ",
|
|
10
|
-
"storybook": "storybook dev -p 6006",
|
|
11
|
-
"build-storybook": "storybook build"
|
|
12
|
-
},
|
|
13
|
-
"keywords": [],
|
|
14
|
-
"author": "SAG",
|
|
15
|
-
"license": "ISC",
|
|
16
|
-
"devDependencies": {
|
|
17
|
-
"@babel/cli": "^7.21.5",
|
|
18
|
-
"@babel/preset-env": "^7.21.4",
|
|
19
|
-
"@babel/preset-react": "^7.18.6",
|
|
20
|
-
"@babel/preset-typescript": "^7.21.4",
|
|
21
|
-
"@storybook/addon-a11y": "^7.4.5",
|
|
22
|
-
"@storybook/addon-essentials": "^7.4.5",
|
|
23
|
-
"@storybook/addon-interactions": "^7.4.5",
|
|
24
|
-
"@storybook/addon-links": "^7.4.5",
|
|
25
|
-
"@storybook/addon-storysource": "^7.4.5",
|
|
26
|
-
"@storybook/blocks": "^7.4.5",
|
|
27
|
-
"@storybook/preset-scss": "^1.0.3",
|
|
28
|
-
"@storybook/react": "^7.4.5",
|
|
29
|
-
"@storybook/react-webpack5": "^7.4.5",
|
|
30
|
-
"@storybook/testing-library": "^0.2.1",
|
|
31
|
-
"cross-env": "^7.0.3",
|
|
32
|
-
"css-loader": "^5.2.7",
|
|
33
|
-
"eslint": "^8.50.0",
|
|
34
|
-
"eslint-config-airbnb": "^19.0.4",
|
|
35
|
-
"eslint-plugin-import": "^2.28.1",
|
|
36
|
-
"eslint-plugin-jsx-a11y": "^6.7.1",
|
|
37
|
-
"eslint-plugin-react": "^7.33.2",
|
|
38
|
-
"eslint-plugin-react-hooks": "^4.6.0",
|
|
39
|
-
"prop-types": "^15.8.1",
|
|
40
|
-
"react-dom": "^18.2.0",
|
|
41
|
-
"sass": "^1.62.0",
|
|
42
|
-
"sass-loader": "^10.4.1",
|
|
43
|
-
"style-loader": "^2.0.0",
|
|
44
|
-
"styled-components": "^5.3.10"
|
|
45
|
-
},
|
|
46
|
-
"dependencies": {
|
|
47
|
-
"@dnd-kit/core": "^6.0.8",
|
|
48
|
-
"@emotion/react": "^11.11.0",
|
|
49
|
-
"@emotion/styled": "^11.11.0",
|
|
50
|
-
"@fontsource/roboto": "^4.5.8",
|
|
51
|
-
"@fortawesome/fontawesome-svg-core": "^6.4.0",
|
|
52
|
-
"@fortawesome/free-solid-svg-icons": "^6.4.0",
|
|
53
|
-
"@fortawesome/react-fontawesome": "^0.2.0",
|
|
54
|
-
"@mui/icons-material": "^5.11.16",
|
|
55
|
-
"@mui/material": "^5.13.0",
|
|
56
|
-
"@mui/styled-engine-sc": "^5.12.0",
|
|
57
|
-
"@mui/x-date-pickers": "^6.11.1",
|
|
58
|
-
"babel-plugin-react-css-modules": "^5.2.6",
|
|
59
|
-
"classnames": "^2.3.2",
|
|
60
|
-
"dayjs": "^1.11.9",
|
|
61
|
-
"hoopy": "^0.1.4",
|
|
62
|
-
"react-css-modules": "^4.7.11",
|
|
63
|
-
"react-loading-skeleton": "^3.3.1",
|
|
64
|
-
"react-scripts": "5.0.1",
|
|
65
|
-
"recharts": "^2.6.2",
|
|
66
|
-
"storybook": "^7.4.5"
|
|
67
|
-
},
|
|
68
|
-
"browserslist": {
|
|
69
|
-
"production": [
|
|
70
|
-
">0.2%",
|
|
71
|
-
"not dead",
|
|
72
|
-
"not op_mini all"
|
|
73
|
-
],
|
|
74
|
-
"development": [
|
|
75
|
-
"last 1 chrome version",
|
|
76
|
-
"last 1 firefox version",
|
|
77
|
-
"last 1 safari version"
|
|
78
|
-
]
|
|
79
|
-
}
|
|
80
|
-
}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "sag_components",
|
|
3
|
-
"version": "1.0.241",
|
|
4
|
-
"description": "",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"start": "react-scripts start",
|
|
8
|
-
"lint": "eslint .",
|
|
9
|
-
"build": "cross-env BABEL_ENV=production babel src -d dist ",
|
|
10
|
-
"storybook": "storybook dev -p 6006",
|
|
11
|
-
"build-storybook": "storybook build"
|
|
12
|
-
},
|
|
13
|
-
"keywords": [],
|
|
14
|
-
"author": "SAG",
|
|
15
|
-
"license": "ISC",
|
|
16
|
-
"devDependencies": {
|
|
17
|
-
"@babel/cli": "^7.21.5",
|
|
18
|
-
"@babel/preset-env": "^7.21.4",
|
|
19
|
-
"@babel/preset-react": "^7.18.6",
|
|
20
|
-
"@babel/preset-typescript": "^7.21.4",
|
|
21
|
-
"@storybook/addon-a11y": "^7.4.5",
|
|
22
|
-
"@storybook/addon-essentials": "^7.4.5",
|
|
23
|
-
"@storybook/addon-interactions": "^7.4.5",
|
|
24
|
-
"@storybook/addon-links": "^7.4.5",
|
|
25
|
-
"@storybook/addon-storysource": "^7.4.5",
|
|
26
|
-
"@storybook/blocks": "^7.4.5",
|
|
27
|
-
"@storybook/preset-scss": "^1.0.3",
|
|
28
|
-
"@storybook/react": "^7.4.5",
|
|
29
|
-
"@storybook/react-webpack5": "^7.4.5",
|
|
30
|
-
"@storybook/testing-library": "^0.2.1",
|
|
31
|
-
"cross-env": "^7.0.3",
|
|
32
|
-
"css-loader": "^5.2.7",
|
|
33
|
-
"eslint": "^8.50.0",
|
|
34
|
-
"eslint-config-airbnb": "^19.0.4",
|
|
35
|
-
"eslint-plugin-import": "^2.28.1",
|
|
36
|
-
"eslint-plugin-jsx-a11y": "^6.7.1",
|
|
37
|
-
"eslint-plugin-react": "^7.33.2",
|
|
38
|
-
"eslint-plugin-react-hooks": "^4.6.0",
|
|
39
|
-
"prop-types": "^15.8.1",
|
|
40
|
-
"react-dom": "^18.2.0",
|
|
41
|
-
"sass": "^1.62.0",
|
|
42
|
-
"sass-loader": "^10.4.1",
|
|
43
|
-
"style-loader": "^2.0.0",
|
|
44
|
-
"styled-components": "^5.3.10"
|
|
45
|
-
},
|
|
46
|
-
"dependencies": {
|
|
47
|
-
"@dnd-kit/core": "^6.0.8",
|
|
48
|
-
"@emotion/react": "^11.11.0",
|
|
49
|
-
"@emotion/styled": "^11.11.0",
|
|
50
|
-
"@fontsource/roboto": "^4.5.8",
|
|
51
|
-
"@fortawesome/fontawesome-svg-core": "^6.4.0",
|
|
52
|
-
"@fortawesome/free-solid-svg-icons": "^6.4.0",
|
|
53
|
-
"@fortawesome/react-fontawesome": "^0.2.0",
|
|
54
|
-
"@mui/icons-material": "^5.11.16",
|
|
55
|
-
"@mui/material": "^5.13.0",
|
|
56
|
-
"@mui/styled-engine-sc": "^5.12.0",
|
|
57
|
-
"@mui/x-date-pickers": "^6.11.1",
|
|
58
|
-
"babel-plugin-react-css-modules": "^5.2.6",
|
|
59
|
-
"classnames": "^2.3.2",
|
|
60
|
-
"dayjs": "^1.11.9",
|
|
61
|
-
"hoopy": "^0.1.4",
|
|
62
|
-
"react": "^18.2.0",
|
|
63
|
-
"react-css-modules": "^4.7.11",
|
|
64
|
-
"react-loading-skeleton": "^3.3.1",
|
|
65
|
-
"react-scripts": "5.0.1",
|
|
66
|
-
"recharts": "^2.6.2",
|
|
67
|
-
"storybook": "^7.4.5"
|
|
68
|
-
},
|
|
69
|
-
"browserslist": {
|
|
70
|
-
"production": [
|
|
71
|
-
">0.2%",
|
|
72
|
-
"not dead",
|
|
73
|
-
"not op_mini all"
|
|
74
|
-
],
|
|
75
|
-
"development": [
|
|
76
|
-
"last 1 chrome version",
|
|
77
|
-
"last 1 firefox version",
|
|
78
|
-
"last 1 safari version"
|
|
79
|
-
]
|
|
80
|
-
}
|
|
81
|
-
}
|