sag_components 1.0.975 → 1.0.976
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/dist/Button.test.js +10 -10
- package/dist/LinkButton.test.js +10 -10
- package/dist/SingleBar.test.js +2 -2
- package/dist/index.js +1 -1
- package/dist/stories/components/AttachedFile/AttachedFile.js +1 -1
- package/dist/stories/components/AttachedFile/AttachedFile.style.js +40 -6
- package/dist/stories/components/BannerEventBox/BannerEventBox.js +33 -23
- package/dist/stories/components/BannerEventBox/BannerEventBox.style.js +71 -15
- package/dist/stories/components/BannerEventBoxList/BannerEventBoxList.js +10 -5
- package/dist/stories/components/BannerEventBoxList/BannerEventBoxList.style.js +182 -16
- package/dist/stories/components/BannersDropdown/BannersDropdown.style.js +91 -10
- package/dist/stories/components/BarChart/BarChart.js +5 -3
- package/dist/stories/components/BarChart/BarChart.stories.js +29 -20
- package/dist/stories/components/BarChart/BarChart.style.js +52 -10
- package/dist/stories/components/BarChartTwoRows/BarChartTwoRows.js +53 -44
- package/dist/stories/components/BarChartTwoRows/BarChartTwoRows.stories.js +166 -40
- package/dist/stories/components/BarChartTwoRows/BarChartTwoRows.style.js +72 -11
- package/dist/stories/components/BarChartsByWeeks/BarChartsByWeeks.js +7 -3
- package/dist/stories/components/BarChartsByWeeks/BarChartsByWeeks.style.js +88 -13
- package/dist/stories/components/Benchmark/Benchmark.style.js +53 -7
- package/dist/stories/components/Button/Button.js +1 -1
- package/dist/stories/components/Button/Button.style.js +82 -7
- package/dist/stories/components/CampaignDemoReport/CampaignDemoReport.style.js +40 -7
- package/dist/stories/components/Card/Card.style.js +57 -10
- package/dist/stories/components/CheckBox/CheckBox.style.js +28 -6
- package/dist/stories/components/CheckBoxButton/CheckBoxButton.style.js +31 -6
- package/dist/stories/components/CodeEditor/CodeEditor.style.js +4 -3
- package/dist/stories/components/CollapseData/CollapseData.js +5 -5
- package/dist/stories/components/CollapseData/CollapseData.style.js +119 -13
- package/dist/stories/components/CollapseHeader/CollapseHeader.js +2 -1
- package/dist/stories/components/CollapseHeader/CollapseHeader.style.js +192 -27
- package/dist/stories/components/CollapseMenuItem/CollapseMenuItem.style.js +53 -9
- package/dist/stories/components/Datepicker/Datepicker.style.js +9 -3
- package/dist/stories/components/DownloadProgress/DownloadProgress.style.js +43 -6
- package/dist/stories/components/Dropdown/Dropdown.style.js +9 -3
- package/dist/stories/components/DropdownMulti/DropdownMulti.js +290 -0
- package/dist/stories/components/DropdownMulti/DropdownMulti.stories.js +220 -0
- package/dist/stories/components/DropdownMulti/DropdownMulti.style.js +11 -0
- package/dist/stories/components/DropdownMultiNew/DropdownMultiNew.js +49 -36
- package/dist/stories/components/DropdownMultiNew/DropdownMultiNew.style.js +204 -16
- package/dist/stories/components/DropdownNew/DropdownNew.js +21 -11
- package/dist/stories/components/DropdownNew/DropdownNew.stories.js +18 -9
- package/dist/stories/components/DropdownNew/DropdownNew.style.js +13 -3
- package/dist/stories/components/DropdownSingleNew/DropdownSingleNew.js +30 -10
- package/dist/stories/components/DropdownSingleNew/DropdownSingleNew.style.js +175 -14
- package/dist/stories/components/EventDetailsCard/EventDetailsCard.style.js +86 -10
- package/dist/stories/components/EventList/EventList.style.js +30 -6
- package/dist/stories/components/EventListItem/EventListItem.style.js +39 -6
- package/dist/stories/components/FilterContainer/FilterContainer.style.js +22 -5
- package/dist/stories/components/FilterPanel/FilterPanel.js +22 -17
- package/dist/stories/components/FilterPanel/FilterPanel.style.js +81 -13
- package/dist/stories/components/FilterPanel.js +4 -0
- package/dist/stories/components/FormattedValue/FormattedValue.style.js +83 -10
- package/dist/stories/components/IconButton/IconButton.style.js +56 -7
- package/dist/stories/components/Input/Input.style.js +122 -9
- package/dist/stories/components/InputOld/InputOld.style.js +61 -8
- package/dist/stories/components/KpiFilter/KpiFilter.js +18 -1
- package/dist/stories/components/KpiFilter/KpiFilter.style.js +124 -18
- package/dist/stories/components/LinkButton/LinkButton.style.js +45 -6
- package/dist/stories/components/LinnerDataBox/LinnerDataBox.js +4 -2
- package/dist/stories/components/LinnerDataBox/LinnerDataBox.stories.js +32 -10
- package/dist/stories/components/LinnerDataBox/LinnerDataBox.style.js +60 -14
- package/dist/stories/components/ListBox/ListBox.style.js +40 -6
- package/dist/stories/components/MarketShareDescription/MarketShareDescription.stories.js +17 -3
- package/dist/stories/components/MarketShareDescription/MarketShareDescription.style.js +207 -19
- package/dist/stories/components/Modal/Modal.style.js +56 -8
- package/dist/stories/components/Modal/ModalTotalBenchmark.js +6 -6
- package/dist/stories/components/MonthPicker/MonthPicker.js +2 -2
- package/dist/stories/components/MonthPicker/MonthPicker.style.js +95 -10
- package/dist/stories/components/MonthPicker/MonthPopupPicker.js +91 -13
- package/dist/stories/components/MultipleCard/MultipleCard.style.js +5 -3
- package/dist/stories/components/NoDataFoundMessage/NoDataFoundMessage.style.js +31 -5
- package/dist/stories/components/OneColumnContainer/OneColumnContainer.style.js +99 -12
- package/dist/stories/components/PageFilterBar/PageFilterBar.style.js +14 -4
- package/dist/stories/components/PerformanceAnalytics/PerformanceAnalytics.js +16 -9
- package/dist/stories/components/PerformanceAnalytics/PerformanceAnalytics.style.js +136 -17
- package/dist/stories/components/PerformanceAnalyticsLegend/PerformanceAnalyticsLegend.js +14 -13
- package/dist/stories/components/PerformanceAnalyticsLegend/PerformanceAnalyticsLegend.style.js +55 -8
- package/dist/stories/components/PerformanceAnalyticsOneColumn/PerformanceAnalyticsOneColumn.js +12 -5
- package/dist/stories/components/PerformanceAnalyticsOneColumn/PerformanceAnalyticsOneColumn.style.js +108 -15
- package/dist/stories/components/PerformanceAnalyticsTotals/PerformanceAnalyticsTotals.js +1 -1
- package/dist/stories/components/PerformanceAnalyticsTotals/PerformanceAnalyticsTotals.style.js +81 -12
- package/dist/stories/components/Popup/Popup.style.js +114 -16
- package/dist/stories/components/PopupCharts/PopupCharts.style.js +100 -15
- package/dist/stories/components/PopupContent/PopupContent.style.js +64 -11
- package/dist/stories/components/ProductsVariety/ProductsVariety.style.js +78 -12
- package/dist/stories/components/ProgressBar/ProgressBar.style.js +15 -4
- package/dist/stories/components/QuarterPicker/QuarterPicker.js +2 -2
- package/dist/stories/components/QuarterPicker/QuarterPicker.style.js +94 -10
- package/dist/stories/components/QuarterPicker/QuarterPopupPicker.js +85 -12
- package/dist/stories/components/QuickFilter/QuickFilter.style.js +13 -3
- package/dist/stories/components/QuickFilter/QuickFilterDropdownMultiSelection.js +2 -2
- package/dist/stories/components/QuickFilter/QuickFilterDropdownMultiSelection.style.js +182 -16
- package/dist/stories/components/QuickFilter/QuickFilterDropdownSingle.js +1 -1
- package/dist/stories/components/QuickFilter/QuickFilterDropdownSingle.style.js +127 -15
- package/dist/stories/components/QuickFilterDropdownMultiSelection.js +1 -1
- package/dist/stories/components/QuickFilterDropdownSingle.js +1 -1
- package/dist/stories/components/RangePicker/RangeDatePicker.js +95 -12
- package/dist/stories/components/RangePicker/RangePicker.js +2 -2
- package/dist/stories/components/RangePicker/RangePicker.style.js +99 -10
- package/dist/stories/components/ReportTable/ReportTable.style.js +123 -14
- package/dist/stories/components/SagButton/SagButton.style.js +39 -5
- package/dist/stories/components/SagIconButton/SagIconButton.style.js +22 -4
- package/dist/stories/components/SagInput/SagInput.style.js +33 -5
- package/dist/stories/components/SalesAndROI/SalesAndROI.style.js +103 -11
- package/dist/stories/components/SearchInput/SearchInput.style.js +29 -4
- package/dist/stories/components/SegmentedButton/SegmentedButton.js +5 -5
- package/dist/stories/components/SegmentedButton/SegmentedButton.style.js +90 -9
- package/dist/stories/components/Select/Select.style.js +92 -9
- package/dist/stories/components/TabMenu/TabMenu.js +19 -7
- package/dist/stories/components/TabMenu/TabMenu.style.js +105 -14
- package/dist/stories/components/Table/Table.js +2 -2
- package/dist/stories/components/Table/Table.style.js +78 -9
- package/dist/stories/components/TextField/TextField.style.js +10 -3
- package/dist/stories/components/TitleDescription/TitleDescription.style.js +214 -28
- package/dist/stories/components/Tooltip/Tooltip.js +1 -1
- package/dist/stories/components/Tooltip/Tooltip.style.js +90 -5
- package/dist/stories/components/TopToggleList/TopToggleList.style.js +43 -8
- package/dist/stories/components/TotalBenchmark/TotalBenchmark.style.js +71 -11
- package/dist/stories/components/TotalBenchmarkAreachart/TotalBenchmarkAreachart.js +3 -3
- package/dist/stories/components/TotalBenchmarkAreachart/TotalBenchmarkAreachart.style.js +163 -22
- package/dist/stories/components/TotalBenchmarkArrows/TotalBenchmarkArrows.style.js +100 -16
- package/dist/stories/components/TotalBenchmarkBarchart/TotalBenchmarkBarchart.style.js +69 -12
- package/dist/stories/components/TotalDoughnutChart/TotalDoughnutChart.js +3 -3
- package/dist/stories/components/TotalDoughnutChart/TotalDoughnutChart.style.js +170 -22
- package/dist/stories/components/TotalHorizontalCharts/TotalHorizontalCharts.js +47 -32
- package/dist/stories/components/TotalHorizontalCharts/TotalHorizontalCharts.stories.js +52 -14
- package/dist/stories/components/TotalHorizontalCharts/TotalHorizontalCharts.style.js +51 -13
- package/dist/stories/components/TspanTooltip/TspanTooltip.js +3 -3
- package/dist/stories/components/TspanTooltip/TspanTooltip.style.js +97 -5
- package/dist/stories/components/TwoBarCharts/TwoBarCharts.js +6 -4
- package/dist/stories/components/TwoBarCharts/TwoBarCharts.stories.js +88 -23
- package/dist/stories/components/TwoBarCharts/TwoBarCharts.style.js +52 -10
- package/dist/stories/utils/CommonFunctions.js +13 -8
- package/package.json +1 -1
- package/dist/stories/components/HaiTooltip.js +0 -71
- package/dist/stories/components/HaiTooltip.style.js +0 -12
- package/dist/stories/components/Rbackup.js +0 -453
- package/dist/stories/components/TableTooltip.js +0 -71
- package/dist/stories/components/TableTooltip.style.js +0 -12
|
@@ -5,23 +5,135 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.StyledInput = exports.QuickFilterInput = exports.OptionsSubContainer = exports.OptionsContainer = exports.OptionItem = exports.Label = exports.InputSubContainer = exports.InputContainer = exports.IconContainer = exports.ErrorMessage = exports.DeleteIcon = void 0;
|
|
8
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
9
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
9
|
+
const QuickFilterInput = exports.QuickFilterInput = _styledComponents.default.div`
|
|
10
|
+
position: relative;
|
|
11
|
+
align-content: center;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
align-items: flex-start;
|
|
14
|
+
width: ${props => props.width || "auto"};
|
|
15
|
+
font-family: "Poppins", sans-serif;
|
|
16
|
+
font-weight: 400;
|
|
17
|
+
font-size: 14px;
|
|
18
|
+
border-radius: 8px;
|
|
19
|
+
`;
|
|
20
|
+
const Label = exports.Label = _styledComponents.default.label`
|
|
21
|
+
font-size: 14px;
|
|
22
|
+
font-weight: 500;
|
|
23
|
+
color: ${props => props.disabled ? "#D0D0D0" : "212121"};
|
|
24
|
+
font-family: "Poppins";
|
|
25
|
+
white-space: nowrap;
|
|
26
|
+
`;
|
|
27
|
+
const InputContainer = exports.InputContainer = _styledComponents.default.div`
|
|
28
|
+
display: flex;
|
|
29
|
+
justify-content: space-between;
|
|
30
|
+
align-content: center;
|
|
31
|
+
white-space: pre-wrap;
|
|
32
|
+
align-items: center;
|
|
33
|
+
overflow: hidden;
|
|
34
|
+
padding: 6px 16px;
|
|
35
|
+
margin-bottom: 8px;
|
|
36
|
+
width: 256px;
|
|
37
|
+
height: 24px;
|
|
38
|
+
border: 1px solid
|
|
39
|
+
${props => props.disabled ? "#bdbdbd" : props.error ? "red" : "#B1B1B1"};
|
|
40
|
+
font-family: "Poppins", sans-serif;
|
|
41
|
+
font-weight: 400;
|
|
42
|
+
font-size: 14px;
|
|
43
|
+
border-radius: 9px;
|
|
44
|
+
outline: none;
|
|
45
|
+
color: ${props => props.disabled ? "#888" : "#212121"};
|
|
46
|
+
|
|
47
|
+
&:hover {
|
|
48
|
+
border: 1px solid
|
|
49
|
+
${props => props.disabled ? "#bdbdbd" : props.error ? "red" : props.hoverColor || "#212121"};
|
|
50
|
+
cursor: ${props => props.disabled ? "not-allowed" : "pointer"};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&:focus {
|
|
54
|
+
border: 1px solid
|
|
55
|
+
${props => props.disabled ? "#bdbdbd" : props.error ? "red" : props.labelColor || "#212121"};
|
|
56
|
+
}
|
|
57
|
+
`;
|
|
58
|
+
const InputSubContainer = exports.InputSubContainer = _styledComponents.default.div`
|
|
59
|
+
display: flex;
|
|
60
|
+
color: ${props => props.disabled ? "#888" : "#212121"};
|
|
61
|
+
gap: 8px;
|
|
62
|
+
`;
|
|
63
|
+
const StyledInput = exports.StyledInput = _styledComponents.default.input`
|
|
64
|
+
width: 100%;
|
|
65
|
+
height: 20px;
|
|
66
|
+
font-family: "Poppins";
|
|
67
|
+
font-weight: 400;
|
|
68
|
+
font-size: 14px;
|
|
69
|
+
outline: none;
|
|
70
|
+
color: ${props => props.disabled ? "#888" : "#212121"};
|
|
71
|
+
border: none;
|
|
72
|
+
background-color: transparent;
|
|
73
|
+
&::placeholder {
|
|
74
|
+
color: ${props => props.disabled ? "#D0D0D0" : "#b1b1b1"};
|
|
75
|
+
}
|
|
76
|
+
`;
|
|
77
|
+
const OptionsContainer = exports.OptionsContainer = _styledComponents.default.div`
|
|
78
|
+
margin: 0;
|
|
79
|
+
top: 100%;
|
|
80
|
+
left: 0;
|
|
81
|
+
z-index: 100;
|
|
82
|
+
width: 100%;
|
|
83
|
+
background-color: #fff;
|
|
84
|
+
display: ${props => {
|
|
17
85
|
var _props$filteredoption;
|
|
18
86
|
return props.showoptions && ((_props$filteredoption = props.filteredoptions) === null || _props$filteredoption === void 0 ? void 0 : _props$filteredoption.length) > 0 ? "block" : "none";
|
|
19
|
-
}
|
|
20
|
-
|
|
87
|
+
}};
|
|
88
|
+
`;
|
|
89
|
+
const OptionsSubContainer = exports.OptionsSubContainer = _styledComponents.default.ul`
|
|
90
|
+
list-style: none;
|
|
91
|
+
font-weight: 400;
|
|
92
|
+
margin: 0;
|
|
93
|
+
padding: 8px 12px;
|
|
94
|
+
position: absolute;
|
|
95
|
+
top: 100%;
|
|
96
|
+
left: 0;
|
|
97
|
+
z-index: 101;
|
|
98
|
+
width: calc(100% - 23px);
|
|
99
|
+
font-family: "Poppins";
|
|
100
|
+
border-radius: 4px;
|
|
101
|
+
background-color: white;
|
|
102
|
+
display: ${props => {
|
|
21
103
|
var _props$filteredoption2;
|
|
22
104
|
return props.showoptions && ((_props$filteredoption2 = props.filteredoptions) === null || _props$filteredoption2 === void 0 ? void 0 : _props$filteredoption2.length) > 0 ? "block" : "none";
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
105
|
+
}};
|
|
106
|
+
box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.1);
|
|
107
|
+
max-height: 400px;
|
|
108
|
+
overflow: auto;
|
|
109
|
+
`;
|
|
110
|
+
const OptionItem = exports.OptionItem = _styledComponents.default.li`
|
|
111
|
+
padding: 10px;
|
|
112
|
+
cursor: pointer;
|
|
113
|
+
color: #212121;
|
|
114
|
+
font-family: "Poppins";
|
|
115
|
+
font-size: 14px;
|
|
116
|
+
font-style: normal;
|
|
117
|
+
font-weight: 400;
|
|
118
|
+
transition: background-color 0.3s;
|
|
119
|
+
background-color: ${props => props.selected ? "#C7E4FF" : "#fff"};
|
|
120
|
+
&:hover {
|
|
121
|
+
background-color: #edf6ff;
|
|
122
|
+
}
|
|
123
|
+
.highlight {
|
|
124
|
+
color: #229e38;
|
|
125
|
+
}
|
|
126
|
+
`;
|
|
127
|
+
const ErrorMessage = exports.ErrorMessage = _styledComponents.default.div`
|
|
128
|
+
font-size: 12px;
|
|
129
|
+
color: red;
|
|
130
|
+
margin-top: 5px;
|
|
131
|
+
`;
|
|
132
|
+
const IconContainer = exports.IconContainer = _styledComponents.default.div`
|
|
133
|
+
padding: 2px;
|
|
134
|
+
cursor: pointer;
|
|
135
|
+
`;
|
|
136
|
+
const DeleteIcon = exports.DeleteIcon = _styledComponents.default.div`
|
|
137
|
+
right: 40px;
|
|
138
|
+
position: absolute;
|
|
139
|
+
`;
|
|
@@ -73,7 +73,7 @@ const QuickFilterDropdownMultiSelection = _ref => {
|
|
|
73
73
|
if (index !== lastIndex) {
|
|
74
74
|
parts.push(text.slice(lastIndex, index));
|
|
75
75
|
}
|
|
76
|
-
parts.push(
|
|
76
|
+
parts.push(/*#__PURE__*/_react.default.createElement("span", {
|
|
77
77
|
key: index,
|
|
78
78
|
className: "highlight"
|
|
79
79
|
}, text.slice(index, index + highlight.length)));
|
|
@@ -45,7 +45,7 @@ const QuickFilterDropdownSingle = _ref => {
|
|
|
45
45
|
if (index !== lastIndex) {
|
|
46
46
|
parts.push(text.slice(lastIndex, index));
|
|
47
47
|
}
|
|
48
|
-
parts.push(
|
|
48
|
+
parts.push(/*#__PURE__*/_react.default.createElement("span", {
|
|
49
49
|
key: index,
|
|
50
50
|
className: "highlight"
|
|
51
51
|
}, text.slice(index, index + highlight.length)));
|
|
@@ -6,22 +6,105 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
10
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
10
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
12
11
|
var _ChervronRightIcon = _interopRequireDefault(require("../../icons/ChervronRightIcon"));
|
|
13
12
|
var _ChervronLeftIcon = _interopRequireDefault(require("../../icons/ChervronLeftIcon"));
|
|
14
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9;
|
|
15
13
|
// Styled components for the date picker
|
|
16
|
-
const DatePickerContainer = _styledComponents.default.div
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
14
|
+
const DatePickerContainer = _styledComponents.default.div`
|
|
15
|
+
position: relative;
|
|
16
|
+
`;
|
|
17
|
+
const DatePickerPopup = _styledComponents.default.div`
|
|
18
|
+
position: absolute;
|
|
19
|
+
width: 320px;
|
|
20
|
+
height: 410px;
|
|
21
|
+
top: 100%;
|
|
22
|
+
box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.15);
|
|
23
|
+
left: 0;
|
|
24
|
+
background-color: #fff;
|
|
25
|
+
border: 1px solid #ccc;
|
|
26
|
+
border-radius: 4px;
|
|
27
|
+
padding: 10px;
|
|
28
|
+
z-index: 1000;
|
|
29
|
+
`;
|
|
30
|
+
const DatePickerHeader = _styledComponents.default.div`
|
|
31
|
+
display: flex;
|
|
32
|
+
justify-content: space-between;
|
|
33
|
+
margin-bottom: 10px;
|
|
34
|
+
`;
|
|
35
|
+
const DatePickerFooter = _styledComponents.default.div`
|
|
36
|
+
display: flex;
|
|
37
|
+
justify-content: end;
|
|
38
|
+
margin-inline-end: 10px;
|
|
39
|
+
margin-top: 10px;
|
|
40
|
+
`;
|
|
41
|
+
const ClearButton = _styledComponents.default.button`
|
|
42
|
+
color: #568202;
|
|
43
|
+
text-align: center;
|
|
44
|
+
font-family: Poppins;
|
|
45
|
+
font-size: 12px;
|
|
46
|
+
background-color: transparent;
|
|
47
|
+
font-style: normal;
|
|
48
|
+
border: none;
|
|
49
|
+
font-weight: 400;
|
|
50
|
+
line-height: normal;
|
|
51
|
+
text-transform: uppercase;
|
|
52
|
+
`;
|
|
53
|
+
const NavDiv = _styledComponents.default.div`
|
|
54
|
+
width: 80px;
|
|
55
|
+
height: 30px;
|
|
56
|
+
display: flex;
|
|
57
|
+
padding: 5px;
|
|
58
|
+
justify-content: space-around;
|
|
59
|
+
`;
|
|
60
|
+
const DatePickerSelect = _styledComponents.default.div`
|
|
61
|
+
padding: 4px;
|
|
62
|
+
border-radius: 4px;
|
|
63
|
+
border: none;
|
|
64
|
+
font-family: Poppins;
|
|
65
|
+
font-size: 12px;
|
|
66
|
+
font-style: normal;
|
|
67
|
+
font-weight: 400;
|
|
68
|
+
cursor: pointer;
|
|
69
|
+
`;
|
|
70
|
+
const DatePickerCalendar = _styledComponents.default.div`
|
|
71
|
+
display: grid;
|
|
72
|
+
width: 260px;
|
|
73
|
+
height: 330px;
|
|
74
|
+
row-gap: 12px;
|
|
75
|
+
grid-template-columns: repeat(7, 1fr);
|
|
76
|
+
`;
|
|
77
|
+
const DateCell = _styledComponents.default.div`
|
|
78
|
+
width: 100%;
|
|
79
|
+
aspect-ratio: 1 / 1;
|
|
80
|
+
/* height: 32px; */
|
|
81
|
+
font-family: Poppins;
|
|
82
|
+
border-radius: 4px;
|
|
83
|
+
font-size: 12px;
|
|
84
|
+
font-style: normal;
|
|
85
|
+
font-weight: 400;
|
|
86
|
+
display: flex;
|
|
87
|
+
justify-content: center;
|
|
88
|
+
align-items: center;
|
|
89
|
+
cursor: pointer;
|
|
90
|
+
transition: background-color 0.3s ease;
|
|
91
|
+
|
|
92
|
+
&:hover {
|
|
93
|
+
background: #f4faf5;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&.selected {
|
|
97
|
+
background-color: #229e38;
|
|
98
|
+
color: #fff;
|
|
99
|
+
}
|
|
100
|
+
&.startselected {
|
|
101
|
+
border: 1px solid #229e38;
|
|
102
|
+
}
|
|
103
|
+
&.inrange {
|
|
104
|
+
border-radius: 0px;
|
|
105
|
+
background-color: #effef2;
|
|
106
|
+
}
|
|
107
|
+
`;
|
|
25
108
|
const daysOfWeek = ['S', 'M', 'T', 'W', 'T', 'F', 'S'];
|
|
26
109
|
const months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
|
|
27
110
|
const DatePicker = _ref => {
|
|
@@ -93,7 +176,7 @@ const DatePicker = _ref => {
|
|
|
93
176
|
className: "DatePickerHeader"
|
|
94
177
|
}, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(DatePickerSelect, {
|
|
95
178
|
className: "DatePickerSelect"
|
|
96
|
-
},
|
|
179
|
+
}, `${months[currentDate.getMonth()]} ${currentDate === null || currentDate === void 0 ? void 0 : currentDate.getFullYear()}`)), /*#__PURE__*/_react.default.createElement(NavDiv, {
|
|
97
180
|
className: "NavDiv"
|
|
98
181
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
99
182
|
onClick: handlePrevMonth
|
|
@@ -75,8 +75,8 @@ const RangePicker = _ref => {
|
|
|
75
75
|
setIsFocused(false);
|
|
76
76
|
setStartDateValue(startDate);
|
|
77
77
|
setEndDateValue(endDate);
|
|
78
|
-
onChange(
|
|
79
|
-
setValue(
|
|
78
|
+
onChange(`${(0, _moment.default)(startDate).format('DD/MM/YYYY')} - ${(0, _moment.default)(endDate).format('DD/MM/YYYY')}`);
|
|
79
|
+
setValue(`${(0, _moment.default)(startDate).format('DD/MM/YYYY')} - ${(0, _moment.default)(endDate).format('DD/MM/YYYY')}`);
|
|
80
80
|
}
|
|
81
81
|
};
|
|
82
82
|
const onChangeEvent = e => {
|
|
@@ -5,14 +5,103 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.StyledLabel = exports.StyledInput = exports.RequiredIndicator = exports.RangePickerContainer = exports.OptionsContainer = exports.InputContainer = exports.ErrorLabel = exports.CalendarDiv = void 0;
|
|
8
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
9
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
|
|
9
|
+
const RangePickerContainer = exports.RangePickerContainer = _styledComponents.default.div`
|
|
10
|
+
position: relative;
|
|
11
|
+
margin-bottom: 10px;
|
|
12
|
+
width: ${props => props.width || '100%'};
|
|
13
|
+
height: ${props => props.height || '60px'};
|
|
14
|
+
`;
|
|
15
|
+
const CalendarDiv = exports.CalendarDiv = _styledComponents.default.div`
|
|
16
|
+
position: absolute;
|
|
17
|
+
width: 11px;
|
|
18
|
+
height: 12px;
|
|
19
|
+
top: ${props => parseInt(props.height, 10) / 2 || '20px'};
|
|
20
|
+
right: 15px;
|
|
21
|
+
|
|
22
|
+
&:hover {
|
|
23
|
+
cursor: ${props => props.disabled ? 'not-allowed' : 'pointer'};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
`;
|
|
27
|
+
const InputContainer = exports.InputContainer = _styledComponents.default.div`
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-direction: row;
|
|
30
|
+
flex-wrap: nowrap;
|
|
31
|
+
justify-content: flex-start;
|
|
32
|
+
align-content: center;
|
|
33
|
+
white-space: pre-wrap;
|
|
34
|
+
align-items: center;
|
|
35
|
+
overflow: hidden;
|
|
36
|
+
width: 100%;
|
|
37
|
+
height: 100%;
|
|
38
|
+
box-sizing: border-box;
|
|
39
|
+
background-color: transparent;
|
|
40
|
+
border: 1px solid ${props => props.disabled ? '#bdbdbd' : props.error ? 'red' : '#B1B1B1'};
|
|
41
|
+
font-family: "Poppins", sans-serif;
|
|
42
|
+
font-weight: 400;
|
|
43
|
+
font-size: 14px;
|
|
44
|
+
border-radius: 12px;
|
|
45
|
+
outline: none;
|
|
46
|
+
color: ${props => props.disabled ? '#888' : '#212121'};
|
|
47
|
+
|
|
48
|
+
&:hover {
|
|
49
|
+
border: 1px solid ${props => props.disabled ? '#bdbdbd' : props.error ? 'red' : props.borderColorFocus || '#212121'};
|
|
50
|
+
cursor: ${props => props.disabled ? 'not-allowed' : 'pointer'};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&:focus {
|
|
54
|
+
border: 1px solid ${props => props.disabled ? '#bdbdbd' : props.error ? 'red' : props.borderColorFocus || '#212121'};
|
|
55
|
+
}
|
|
56
|
+
`;
|
|
57
|
+
const StyledInput = exports.StyledInput = _styledComponents.default.input`
|
|
58
|
+
padding: 20px;
|
|
59
|
+
font-size: 14px;
|
|
60
|
+
border-radius: ${props => props.borderRadius || '4px'};
|
|
61
|
+
border: none;
|
|
62
|
+
outline: none;
|
|
63
|
+
width: ${props => props.width || '90%'};
|
|
64
|
+
height: ${props => props.height || '60px'};
|
|
65
|
+
transition: border-color 0.3s ease;
|
|
66
|
+
font-family: Poppins;
|
|
67
|
+
font-size: 14px;
|
|
68
|
+
font-style: normal;
|
|
69
|
+
font-weight: 400;
|
|
70
|
+
box-sizing: border-box;
|
|
71
|
+
color: ${props => props.disabled ? '#888' : (props.isFocused || props.value ? props.textColor : '#757575') || '#333'};
|
|
72
|
+
cursor: ${props => props.disabled ? 'not-allowed' : 'text'};
|
|
73
|
+
`;
|
|
74
|
+
const StyledLabel = exports.StyledLabel = _styledComponents.default.label`
|
|
75
|
+
font-size: ${props => props.isFocused || props.hasValue ? '14px' : '14px'};
|
|
76
|
+
padding-inline-end: 5px;
|
|
77
|
+
padding-inline-start: 5px;
|
|
78
|
+
margin-right: 20px;
|
|
79
|
+
width: ${props => props.isFocused || props.hasValue ? 'auto' : '150px'};
|
|
80
|
+
color: ${props => props.disabled ? '#888' : (props.isFocused || props.hasValue ? props.borderColorFocus : '#757575') || '#333'};
|
|
81
|
+
background-color: white;
|
|
82
|
+
position: absolute;
|
|
83
|
+
top: ${props => props.isFocused || props.hasValue ? '0px' : '50%'};
|
|
84
|
+
left: 15px;
|
|
85
|
+
transform: translateY(-50%);
|
|
86
|
+
transition: top 0.3s ease, font-size 0.3s ease;
|
|
87
|
+
display: flex;
|
|
88
|
+
font-family: Poppins;
|
|
89
|
+
font-weight: 400;
|
|
90
|
+
align-items: center;
|
|
91
|
+
box-sizing: border-box;
|
|
92
|
+
cursor: pointer;
|
|
93
|
+
`;
|
|
94
|
+
const RequiredIndicator = exports.RequiredIndicator = _styledComponents.default.span`
|
|
95
|
+
color: red;
|
|
96
|
+
margin-left: 5px;
|
|
97
|
+
`;
|
|
98
|
+
const ErrorLabel = exports.ErrorLabel = _styledComponents.default.div`
|
|
99
|
+
font-size: 12px;
|
|
100
|
+
color: red;
|
|
101
|
+
margin-top: 5px;
|
|
102
|
+
`;
|
|
103
|
+
const OptionsContainer = exports.OptionsContainer = _styledComponents.default.div`
|
|
104
|
+
display: block;
|
|
105
|
+
margin: 0;
|
|
106
|
+
padding-top: 8px;
|
|
107
|
+
`;
|
|
@@ -5,18 +5,127 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.Tr = exports.Th = exports.Td = exports.TableWrapper = exports.Table = exports.SelectCheckboxSubContainer = exports.SelectCheckboxContainer = exports.SelectButtonSubContainer = exports.SelectButtonContainer = exports.InfoText = exports.InfoBlock = void 0;
|
|
8
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
9
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
9
|
+
const scrollableStyles = `
|
|
10
|
+
overflow-y: auto;
|
|
11
|
+
|
|
12
|
+
&::-webkit-scrollbar {
|
|
13
|
+
height: 10px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&::-webkit-scrollbar-track {
|
|
17
|
+
background: #E8E8E8;
|
|
18
|
+
border-radius: 5px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&::-webkit-scrollbar-thumb {
|
|
22
|
+
background: #D0D0D0;
|
|
23
|
+
border-radius: 5px;
|
|
24
|
+
}
|
|
25
|
+
`;
|
|
26
|
+
const TableWrapper = exports.TableWrapper = _styledComponents.default.div`
|
|
27
|
+
width: 100%;
|
|
28
|
+
white-space: nowrap;
|
|
29
|
+
border: 1px solid #dddddd;
|
|
30
|
+
border-radius: ${props => props.columnsNumber > props.maxColumnsNumber ? ' 12px 12px 6px 6px' : '12px'};
|
|
31
|
+
overflow-x: ${props => props.columnsNumber > props.maxColumnsNumber ? 'auto' : 'hidden'};
|
|
32
|
+
${scrollableStyles}
|
|
33
|
+
`;
|
|
34
|
+
const Table = exports.Table = _styledComponents.default.table`
|
|
35
|
+
font-family: "Poppins", sans-serif;
|
|
36
|
+
width: ${props => `${props.tableWidthSize}%`};
|
|
37
|
+
table-layout: fixed;
|
|
38
|
+
position: relative;
|
|
39
|
+
background-color: white;
|
|
40
|
+
border-collapse: collapse;
|
|
41
|
+
th,
|
|
42
|
+
td {
|
|
43
|
+
width: 100%;
|
|
44
|
+
text-align: left;
|
|
45
|
+
overflow: hidden;
|
|
46
|
+
text-overflow: ellipsis;
|
|
47
|
+
}
|
|
48
|
+
`;
|
|
49
|
+
const Th = exports.Th = _styledComponents.default.th`
|
|
50
|
+
font-weight: 600;
|
|
51
|
+
font-size: 12px;
|
|
52
|
+
color: #212121;
|
|
53
|
+
padding-top: 16px;
|
|
54
|
+
padding-left: 40px;
|
|
55
|
+
`;
|
|
56
|
+
const Td = exports.Td = _styledComponents.default.td`
|
|
57
|
+
font-weight: 400;
|
|
58
|
+
font-size: 12px;
|
|
59
|
+
padding-top: 20px;
|
|
60
|
+
padding-bottom: 20px;
|
|
61
|
+
padding-top: 16px;
|
|
62
|
+
padding-left: 40px;
|
|
63
|
+
`;
|
|
64
|
+
const Tr = exports.Tr = _styledComponents.default.tr`
|
|
65
|
+
border-bottom: 1px solid #f3f4f6;
|
|
66
|
+
&:last-of-type {
|
|
67
|
+
&::after {
|
|
68
|
+
content: "";
|
|
69
|
+
position: absolute;
|
|
70
|
+
pointer-events: none;
|
|
71
|
+
top: 0;
|
|
72
|
+
left: 0;
|
|
73
|
+
width: 100%;
|
|
74
|
+
height: 100%;
|
|
75
|
+
background: ${props => `${props.useColorLinearGradient ? 'linear-gradient(transparent 50%, white)' : null}`};
|
|
76
|
+
z-index: 2;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
`;
|
|
80
|
+
const InfoText = exports.InfoText = _styledComponents.default.div`
|
|
81
|
+
font-weight: 400;
|
|
82
|
+
font-size: 14px;
|
|
83
|
+
color: #212121;
|
|
84
|
+
padding-top: 20px;
|
|
85
|
+
padding-bottom: 20px;
|
|
86
|
+
`;
|
|
87
|
+
const InfoBlock = exports.InfoBlock = _styledComponents.default.div`
|
|
88
|
+
display: flex;
|
|
89
|
+
justify-content: center;
|
|
90
|
+
align-items: center;
|
|
91
|
+
gap: 8px;
|
|
92
|
+
background-color: white;
|
|
93
|
+
`;
|
|
94
|
+
const SelectButtonContainer = exports.SelectButtonContainer = _styledComponents.default.div`
|
|
95
|
+
display: flex;
|
|
96
|
+
align-items: center;
|
|
97
|
+
justify-content: flex-start;
|
|
98
|
+
`;
|
|
99
|
+
const SelectButtonSubContainer = exports.SelectButtonSubContainer = _styledComponents.default.div`
|
|
100
|
+
display: flex;
|
|
101
|
+
align-items: center;
|
|
102
|
+
font-size: 12px;
|
|
103
|
+
padding: 2px 10px;
|
|
104
|
+
justify-content: flex-start;
|
|
105
|
+
gap: 8px;
|
|
106
|
+
color: ${props => props.selectTextColor};
|
|
107
|
+
background-color: ${props => props.backgroundColor};
|
|
108
|
+
border-radius: 10px;
|
|
109
|
+
&:hover {
|
|
110
|
+
background-color: #f0f0f0;
|
|
111
|
+
cursor: ${props => props.cursor};
|
|
112
|
+
}
|
|
113
|
+
`;
|
|
114
|
+
const SelectCheckboxContainer = exports.SelectCheckboxContainer = _styledComponents.default.div`
|
|
115
|
+
display: flex;
|
|
116
|
+
align-items: center;
|
|
117
|
+
justify-content: flex-start;
|
|
118
|
+
`;
|
|
119
|
+
const SelectCheckboxSubContainer = exports.SelectCheckboxSubContainer = _styledComponents.default.div`
|
|
120
|
+
display: flex;
|
|
121
|
+
align-items: center;
|
|
122
|
+
font-size: 12px;
|
|
123
|
+
padding: 2px;
|
|
124
|
+
justify-content: flex-start;
|
|
125
|
+
gap: 8px;
|
|
126
|
+
color: ${props => props.selectTextColor};
|
|
127
|
+
&:hover {
|
|
128
|
+
background-color: #f0f0f0;
|
|
129
|
+
cursor: pointer;
|
|
130
|
+
}
|
|
131
|
+
`;
|
|
@@ -5,9 +5,43 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.Label = exports.ButtonContainer = exports.Button = void 0;
|
|
8
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
9
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
const
|
|
9
|
+
const ButtonContainer = exports.ButtonContainer = _styledComponents.default.div`
|
|
10
|
+
position: relative;
|
|
11
|
+
`;
|
|
12
|
+
const Button = exports.Button = _styledComponents.default.div`
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
justify-content: center;
|
|
16
|
+
align-content: center;
|
|
17
|
+
flex-wrap: wrap;
|
|
18
|
+
overflow: hidden;
|
|
19
|
+
width: ${props => props.width};
|
|
20
|
+
height: ${props => props.height};
|
|
21
|
+
border: ${props => `1px solid ${props.borderColor}`};
|
|
22
|
+
border-radius: ${props => props.radius};
|
|
23
|
+
background-color: ${props => props.disabled ? '#c5c5c5' : props.backgroundColor};
|
|
24
|
+
box-sizing: border-box;
|
|
25
|
+
&:hover {
|
|
26
|
+
background-color: ${props => props.disabled ? '#c5c5c5' : props.backgroundColor};
|
|
27
|
+
box-shadow: ${props => props.disabled ? '' : '5px 5px 10px 0px rgba(0, 0, 0, 0.2)'};
|
|
28
|
+
cursor: ${props => !props.disabled ? 'pointer' : 'default'};
|
|
29
|
+
}
|
|
30
|
+
&.button-clicked {
|
|
31
|
+
background-color: ${props => props.onClickColor};
|
|
32
|
+
color: white;
|
|
33
|
+
padding: 10px 10px;
|
|
34
|
+
cursor: pointer;
|
|
35
|
+
box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.3);
|
|
36
|
+
transition: background-color 0.3s, color 0.3s;
|
|
37
|
+
}
|
|
38
|
+
`;
|
|
39
|
+
const Label = exports.Label = _styledComponents.default.label`
|
|
40
|
+
font-family: "Poppins", sans-serif;
|
|
41
|
+
font-style: normal;
|
|
42
|
+
font-weight: ${props => props.fontWeight};
|
|
43
|
+
color: ${props => props.textColor};
|
|
44
|
+
pointer-events: none;
|
|
45
|
+
font-size: ${props => props.fontSize};
|
|
46
|
+
user-select: none;
|
|
47
|
+
`;
|