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,16 +5,82 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.ProductsVarietyTitleContainer = exports.ProductsVarietyTitle = exports.ProductsVarietySubTitle = exports.ProductsVarietyMainContainer = exports.ProductsVarietyContentContainer = exports.ProductsVarietyContainer = exports.ProductsTitle = exports.ProductContainer = exports.ProductButtonContainer = exports.Product = 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
|
-
const
|
|
20
|
-
|
|
9
|
+
const ProductsVarietyMainContainer = exports.ProductsVarietyMainContainer = _styledComponents.default.div`
|
|
10
|
+
font-family: "Poppins", sans-serif;
|
|
11
|
+
position: relative;
|
|
12
|
+
margin: 0;
|
|
13
|
+
padding: 10px;
|
|
14
|
+
background: #ffffff;
|
|
15
|
+
border-radius: 12px;
|
|
16
|
+
box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.2);
|
|
17
|
+
`;
|
|
18
|
+
const ProductsVarietyContainer = exports.ProductsVarietyContainer = _styledComponents.default.div`
|
|
19
|
+
display: flex;
|
|
20
|
+
justify-content: space-between;
|
|
21
|
+
align-items: center;
|
|
22
|
+
margin: 0 10px;
|
|
23
|
+
`;
|
|
24
|
+
const ProductsVarietyTitleContainer = exports.ProductsVarietyTitleContainer = _styledComponents.default.div`
|
|
25
|
+
font-size: 20px;
|
|
26
|
+
line-height: 25px;
|
|
27
|
+
display: flex;
|
|
28
|
+
justify-content: flex-start;
|
|
29
|
+
align-items: center;
|
|
30
|
+
margin: 10px;
|
|
31
|
+
gap: 15px;
|
|
32
|
+
`;
|
|
33
|
+
const ProductsVarietyTitle = exports.ProductsVarietyTitle = _styledComponents.default.h3`
|
|
34
|
+
font-weight: 500;
|
|
35
|
+
font-size: 20px;
|
|
36
|
+
margin: 0;
|
|
37
|
+
`;
|
|
38
|
+
const ProductsVarietySubTitle = exports.ProductsVarietySubTitle = _styledComponents.default.h3`
|
|
39
|
+
color: #757171;
|
|
40
|
+
font-weight: 500;
|
|
41
|
+
font-size: 20px;
|
|
42
|
+
margin: 0;
|
|
43
|
+
`;
|
|
44
|
+
const ProductsVarietyContentContainer = exports.ProductsVarietyContentContainer = _styledComponents.default.div`
|
|
45
|
+
display: flex;
|
|
46
|
+
justify-content: flex-start;
|
|
47
|
+
flex-direction: column;
|
|
48
|
+
align-items: flex-start;
|
|
49
|
+
margin: 10px;
|
|
50
|
+
padding: 10px 20px 20px 50px;
|
|
51
|
+
font-size: 20px;
|
|
52
|
+
line-height: 25px;
|
|
53
|
+
`;
|
|
54
|
+
const ProductsTitle = exports.ProductsTitle = _styledComponents.default.h3`
|
|
55
|
+
font-weight: 600;
|
|
56
|
+
font-size: 14px;
|
|
57
|
+
margin: 10px 0;
|
|
58
|
+
`;
|
|
59
|
+
const ProductContainer = exports.ProductContainer = _styledComponents.default.div`
|
|
60
|
+
display: flex;
|
|
61
|
+
justify-content: flex-start;
|
|
62
|
+
align-items: center;
|
|
63
|
+
border-bottom: 1px solid #00000010;
|
|
64
|
+
width: 100%;
|
|
65
|
+
gap: 20px;
|
|
66
|
+
`;
|
|
67
|
+
const Product = exports.Product = _styledComponents.default.h3`
|
|
68
|
+
font-weight: 400;
|
|
69
|
+
font-size: 14px;
|
|
70
|
+
border-radius: 12px;
|
|
71
|
+
`;
|
|
72
|
+
const ProductButtonContainer = exports.ProductButtonContainer = _styledComponents.default.div`
|
|
73
|
+
display: flex;
|
|
74
|
+
gap: 10px;
|
|
75
|
+
align-items: center;
|
|
76
|
+
justify-content: space-between;
|
|
77
|
+
height: 25px;
|
|
78
|
+
padding: 0 15px;
|
|
79
|
+
user-select: none;
|
|
80
|
+
border-radius: 12px;
|
|
81
|
+
background: ${props => props.background || '#ffffff'};
|
|
82
|
+
&:hover {
|
|
83
|
+
background-color: #f0f0f0;
|
|
84
|
+
cursor: pointer;
|
|
85
|
+
}
|
|
86
|
+
`;
|
|
@@ -5,9 +5,20 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.ProgressBarFiller = exports.ProgressBarContainer = void 0;
|
|
8
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
9
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
|
-
var _templateObject, _templateObject2;
|
|
11
9
|
// Styled-components for the progress container and the filler
|
|
12
|
-
const ProgressBarContainer = exports.ProgressBarContainer = _styledComponents.default.div
|
|
13
|
-
|
|
10
|
+
const ProgressBarContainer = exports.ProgressBarContainer = _styledComponents.default.div`
|
|
11
|
+
width: ${props => props.width};
|
|
12
|
+
background-color: #F2F2F2;
|
|
13
|
+
border-radius: 12px;
|
|
14
|
+
height: ${props => props.height};
|
|
15
|
+
margin: 5px 0;
|
|
16
|
+
`;
|
|
17
|
+
const ProgressBarFiller = exports.ProgressBarFiller = _styledComponents.default.div`
|
|
18
|
+
background-color: ${props => props.color};
|
|
19
|
+
height: 100%;
|
|
20
|
+
text-align: center;
|
|
21
|
+
border-radius: 12px;
|
|
22
|
+
transition: width 0.5s ease-in-out;
|
|
23
|
+
width: ${props => props.progress}%;
|
|
24
|
+
`;
|
|
@@ -72,8 +72,8 @@ const QuarterPicker = _ref => {
|
|
|
72
72
|
setIsOpen(!isOpen);
|
|
73
73
|
setIsFocused(false);
|
|
74
74
|
setStartDateValue(startDate);
|
|
75
|
-
setValue(
|
|
76
|
-
onChange(
|
|
75
|
+
setValue(`${startDate}`);
|
|
76
|
+
onChange(`${startDate}`);
|
|
77
77
|
}
|
|
78
78
|
};
|
|
79
79
|
const onChangeEvent = e => {
|
|
@@ -5,14 +5,98 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.StyledLabel = exports.StyledInput = exports.RequiredIndicator = exports.QuarterPickerContainer = 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 QuarterPickerContainer = exports.QuarterPickerContainer = _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: 11px;
|
|
19
|
+
top: ${props => parseInt(props.height, 10) / 2 || '20px'};
|
|
20
|
+
right: 25px;
|
|
21
|
+
`;
|
|
22
|
+
const InputContainer = exports.InputContainer = _styledComponents.default.div`
|
|
23
|
+
display: flex;
|
|
24
|
+
flex-direction: row;
|
|
25
|
+
flex-wrap: nowrap;
|
|
26
|
+
justify-content: flex-start;
|
|
27
|
+
align-content: center;
|
|
28
|
+
white-space: pre-wrap;
|
|
29
|
+
align-items: center;
|
|
30
|
+
overflow: hidden;
|
|
31
|
+
width: 100%;
|
|
32
|
+
height: 100%;
|
|
33
|
+
box-sizing: border-box;
|
|
34
|
+
background-color: transparent;
|
|
35
|
+
border: 1px solid ${props => props.disabled ? '#bdbdbd' : props.error ? 'red' : '#B1B1B1'};
|
|
36
|
+
font-family: "Poppins", sans-serif;
|
|
37
|
+
font-weight: 400;
|
|
38
|
+
font-size: 14px;
|
|
39
|
+
border-radius: 12px;
|
|
40
|
+
outline: none;
|
|
41
|
+
color: ${props => props.disabled ? '#888' : '#212121'};
|
|
42
|
+
|
|
43
|
+
&:hover {
|
|
44
|
+
border: 1px solid ${props => props.disabled ? '#bdbdbd' : props.error ? 'red' : props.borderColorFocus || '#212121'};
|
|
45
|
+
cursor: ${props => props.disabled ? 'not-allowed' : 'pointer'};
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&:focus {
|
|
49
|
+
border: 1px solid ${props => props.disabled ? '#bdbdbd' : props.error ? 'red' : props.borderColorFocus || '#212121'};
|
|
50
|
+
}
|
|
51
|
+
`;
|
|
52
|
+
const StyledInput = exports.StyledInput = _styledComponents.default.input`
|
|
53
|
+
padding: 20px;
|
|
54
|
+
font-size: 14px;
|
|
55
|
+
border-radius: ${props => props.borderRadius || '4px'};
|
|
56
|
+
border: none;
|
|
57
|
+
outline: none;
|
|
58
|
+
width: ${props => props.width || '90%'};
|
|
59
|
+
height: ${props => props.height || '60px'};
|
|
60
|
+
transition: border-color 0.3s ease;
|
|
61
|
+
font-family: Poppins;
|
|
62
|
+
font-size: 14px;
|
|
63
|
+
font-style: normal;
|
|
64
|
+
font-weight: 400;
|
|
65
|
+
box-sizing: border-box;
|
|
66
|
+
color: ${props => props.disabled ? '#888' : (props.isFocused || props.value ? props.textColor : '#757575') || '#333'};
|
|
67
|
+
cursor: ${props => props.disabled ? 'not-allowed' : 'text'};
|
|
68
|
+
`;
|
|
69
|
+
const StyledLabel = exports.StyledLabel = _styledComponents.default.label`
|
|
70
|
+
font-size: ${props => props.isFocused || props.hasValue ? '14px' : '14px'};
|
|
71
|
+
padding-inline-end: 5px;
|
|
72
|
+
padding-inline-start: 5px;
|
|
73
|
+
margin-right: 20px;
|
|
74
|
+
width: ${props => props.isFocused || props.hasValue ? 'auto' : '150px'};
|
|
75
|
+
color: ${props => props.disabled ? '#888' : (props.isFocused || props.hasValue ? props.borderColorFocus : '#757575') || '#333'};
|
|
76
|
+
background-color: white;
|
|
77
|
+
position: absolute;
|
|
78
|
+
top: ${props => props.isFocused || props.hasValue ? '0px' : '50%'};
|
|
79
|
+
left: 15px;
|
|
80
|
+
transform: translateY(-50%);
|
|
81
|
+
transition: top 0.3s ease, font-size 0.3s ease;
|
|
82
|
+
display: flex;
|
|
83
|
+
font-family: Poppins;
|
|
84
|
+
font-weight: 400;
|
|
85
|
+
align-items: center;
|
|
86
|
+
box-sizing: border-box;
|
|
87
|
+
cursor: pointer;
|
|
88
|
+
`;
|
|
89
|
+
const RequiredIndicator = exports.RequiredIndicator = _styledComponents.default.span`
|
|
90
|
+
color: red;
|
|
91
|
+
margin-left: 5px;
|
|
92
|
+
`;
|
|
93
|
+
const ErrorLabel = exports.ErrorLabel = _styledComponents.default.div`
|
|
94
|
+
font-size: 12px;
|
|
95
|
+
color: red;
|
|
96
|
+
margin-top: 5px;
|
|
97
|
+
`;
|
|
98
|
+
const OptionsContainer = exports.OptionsContainer = _styledComponents.default.div`
|
|
99
|
+
display: block;
|
|
100
|
+
margin: 0;
|
|
101
|
+
padding-top: 8px;
|
|
102
|
+
`;
|
|
@@ -6,17 +6,34 @@ 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
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
|
|
13
11
|
// import ChervronRightIcon from './icons/ChervronRightIcon';
|
|
14
12
|
// import ChervronLeftIcon from './icons/ChervronLeftIcon';
|
|
15
13
|
|
|
16
14
|
// Styled components for the date picker
|
|
17
|
-
const DatePickerContainer = _styledComponents.default.div
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
const DatePickerContainer = _styledComponents.default.div`
|
|
16
|
+
position: relative;
|
|
17
|
+
`;
|
|
18
|
+
const DatePickerPopup = _styledComponents.default.div`
|
|
19
|
+
position: absolute;
|
|
20
|
+
width: auto;
|
|
21
|
+
// margin: 5px;
|
|
22
|
+
height: 120px;
|
|
23
|
+
top: 100%;
|
|
24
|
+
box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.15);
|
|
25
|
+
left: 0;
|
|
26
|
+
background-color: #fff;
|
|
27
|
+
border: 1px solid #ccc;
|
|
28
|
+
border-radius: 4px;
|
|
29
|
+
padding: 10px;
|
|
30
|
+
z-index: 1000;
|
|
31
|
+
`;
|
|
32
|
+
const DatePickerHeader = _styledComponents.default.div`
|
|
33
|
+
display: flex;
|
|
34
|
+
justify-content: space-between;
|
|
35
|
+
margin-bottom: 10px;
|
|
36
|
+
`;
|
|
20
37
|
|
|
21
38
|
// const NavDiv = styled.div`
|
|
22
39
|
// width: 80px;
|
|
@@ -26,9 +43,65 @@ const DatePickerHeader = _styledComponents.default.div(_templateObject3 || (_tem
|
|
|
26
43
|
// justify-content: space-around;
|
|
27
44
|
// `;
|
|
28
45
|
|
|
29
|
-
const DatePickerSelect = _styledComponents.default.select
|
|
30
|
-
|
|
31
|
-
|
|
46
|
+
const DatePickerSelect = _styledComponents.default.select`
|
|
47
|
+
padding: 4px;
|
|
48
|
+
border: none;
|
|
49
|
+
font-family: Poppins;
|
|
50
|
+
font-size: 12px;
|
|
51
|
+
font-style: normal;
|
|
52
|
+
font-weight: 400;
|
|
53
|
+
cursor: pointer;
|
|
54
|
+
|
|
55
|
+
&:focus {
|
|
56
|
+
border: none;
|
|
57
|
+
}
|
|
58
|
+
`;
|
|
59
|
+
const DatePickerCalendar = _styledComponents.default.div`
|
|
60
|
+
display: grid;
|
|
61
|
+
width: 220px;
|
|
62
|
+
height: 150px;
|
|
63
|
+
row-gap: 30px;
|
|
64
|
+
margin: 20px;
|
|
65
|
+
column-gap: 30px;
|
|
66
|
+
grid-template-columns: repeat(4, 1fr);
|
|
67
|
+
grid-template-rows: repeat(4, 1fr);
|
|
68
|
+
`;
|
|
69
|
+
const DateCell = _styledComponents.default.div`
|
|
70
|
+
width: 100%;
|
|
71
|
+
aspect-ratio: 1 / 1;
|
|
72
|
+
/* height: 32px; */
|
|
73
|
+
font-family: Poppins;
|
|
74
|
+
border-radius: 4px;
|
|
75
|
+
font-size: 12px;
|
|
76
|
+
font-style: normal;
|
|
77
|
+
font-weight: 400;
|
|
78
|
+
display: flex;
|
|
79
|
+
justify-content: center;
|
|
80
|
+
align-items: center;
|
|
81
|
+
cursor: pointer;
|
|
82
|
+
transition: background-color 0.3s ease;
|
|
83
|
+
|
|
84
|
+
&:hover {
|
|
85
|
+
background: #f4faf5;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&.selected {
|
|
89
|
+
background-color: #229e38;
|
|
90
|
+
color: #fff;
|
|
91
|
+
}
|
|
92
|
+
&.startselected {
|
|
93
|
+
border: 1px solid #229e38;
|
|
94
|
+
}
|
|
95
|
+
&.inrange {
|
|
96
|
+
border-radius: 0px;
|
|
97
|
+
background-color: #effef2;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&.disable {
|
|
101
|
+
pointer-events: none;
|
|
102
|
+
color: #ccc;
|
|
103
|
+
}
|
|
104
|
+
`;
|
|
32
105
|
const years = [2022, 2023, 2024];
|
|
33
106
|
const QuarterPopupPicker = _ref => {
|
|
34
107
|
let {
|
|
@@ -43,7 +116,7 @@ const QuarterPopupPicker = _ref => {
|
|
|
43
116
|
const [currentStartDate, setCurrentStartDate] = (0, _react.useState)(new Date(new Date().getFullYear(), 0, 1));
|
|
44
117
|
const handleDateSelect = date => {
|
|
45
118
|
setSelectedQuarter(date);
|
|
46
|
-
onChangeDate(
|
|
119
|
+
onChangeDate(`${date}-${currentStartDate.getFullYear()}`);
|
|
47
120
|
};
|
|
48
121
|
|
|
49
122
|
// const handlePrevMonth = () => {
|
|
@@ -82,8 +155,8 @@ const QuarterPopupPicker = _ref => {
|
|
|
82
155
|
setValue('');
|
|
83
156
|
}
|
|
84
157
|
}, years.map(year => /*#__PURE__*/_react.default.createElement("option", {
|
|
85
|
-
key:
|
|
86
|
-
value:
|
|
158
|
+
key: `${year}`,
|
|
159
|
+
value: `${year}`
|
|
87
160
|
}, year))))), /*#__PURE__*/_react.default.createElement(DatePickerCalendar, null, dates.map(date => {
|
|
88
161
|
if (selectedQuarter === date) {
|
|
89
162
|
return /*#__PURE__*/_react.default.createElement(DateCell, {
|
|
@@ -92,7 +165,7 @@ const QuarterPopupPicker = _ref => {
|
|
|
92
165
|
onClick: () => handleDateSelect(date)
|
|
93
166
|
}, date);
|
|
94
167
|
}
|
|
95
|
-
if (!availableQuarters.includes(
|
|
168
|
+
if (!availableQuarters.includes(`${date}-${currentDate.getFullYear()}`)) {
|
|
96
169
|
return /*#__PURE__*/_react.default.createElement(DateCell, {
|
|
97
170
|
className: "disable",
|
|
98
171
|
key: date
|
|
@@ -5,7 +5,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.QuickFilterMain = void 0;
|
|
8
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
9
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
const QuickFilterMain = exports.QuickFilterMain = _styledComponents.default.div`
|
|
10
|
+
position: relative;
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
align-content: center;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
align-items: flex-start;
|
|
16
|
+
width: ${props => props.width || 'auto'};
|
|
17
|
+
font-family: "Poppins", sans-serif;
|
|
18
|
+
font-weight: 400;
|
|
19
|
+
font-size: 14px;
|
|
20
|
+
border-radius: 10px;
|
|
21
|
+
`;
|
|
@@ -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)));
|
|
@@ -156,7 +156,7 @@ const QuickFilterDropdownMultiSelection = _ref => {
|
|
|
156
156
|
inputRef === null || inputRef === void 0 ? void 0 : (_inputRef$current3 = inputRef.current) === null || _inputRef$current3 === void 0 ? void 0 : _inputRef$current3.focus();
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
|
-
}, option.label && ((_option$label = option.label) === null || _option$label === void 0 ? void 0 : _option$label.length) > 10 ?
|
|
159
|
+
}, option.label && ((_option$label = option.label) === null || _option$label === void 0 ? void 0 : _option$label.length) > 10 ? `${(_option$label2 = option.label) === null || _option$label2 === void 0 ? void 0 : _option$label2.substring(0, 10)}... ` : `${option.label} `, /*#__PURE__*/_react.default.createElement(_CloseXIcon.CloseXIcon, {
|
|
160
160
|
width: "8px",
|
|
161
161
|
height: "8px",
|
|
162
162
|
fill: "#212121"
|
|
@@ -5,24 +5,190 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.StyledInput = exports.SelectedOptionsContainer = exports.SelectedOptionItem = exports.OptionsSubContainer = exports.OptionsContainer = exports.OptionItem = exports.Label = exports.InputSubContainer = exports.InputContainer = exports.IconContainer = exports.ErrorMessage = exports.DropdownWrapper = 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 DropdownWrapper = exports.DropdownWrapper = _styledComponents.default.div`
|
|
10
|
+
position: relative;
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
align-content: center;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
align-items: flex-start;
|
|
16
|
+
width: ${props => props.width || '300px'};
|
|
17
|
+
font-family: "Poppins", sans-serif;
|
|
18
|
+
font-weight: 400;
|
|
19
|
+
font-size: 14px;
|
|
20
|
+
border-radius: 10px;
|
|
21
|
+
`;
|
|
22
|
+
const Label = exports.Label = _styledComponents.default.label`
|
|
23
|
+
font-size: ${props => props.isFocused || props.hasValue ? '14px' : '14px'};
|
|
24
|
+
font-weight: 400;
|
|
25
|
+
padding-inline-end: 5px;
|
|
26
|
+
padding-inline-start: 5px;
|
|
27
|
+
margin-right: 10px;
|
|
28
|
+
z-index: 2;
|
|
29
|
+
color: ${props => props.error ? 'red' : props.disabled ? '#888' : props.labelColor};
|
|
30
|
+
background-color: ${props => props.showLabelOnTop ? 'white' : 'transparent'} ;
|
|
31
|
+
position: absolute;
|
|
32
|
+
top: ${props => props.isFocused || props.hasValue ? '0px' : '27px'};
|
|
33
|
+
left: ${props => props.isFocused || props.hasValue ? '23px' : '10px'};
|
|
34
|
+
font-family: Poppins;
|
|
35
|
+
transform: translateY(-50%);
|
|
36
|
+
transition: ${props => props.showLabelOnTop ? 'top 0.3s ease, font-size 0.3s ease, color 0.3s ease' : ''} ;
|
|
37
|
+
display: flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
box-sizing: border-box;
|
|
40
|
+
gap: 4px;
|
|
41
|
+
&:hover {
|
|
42
|
+
cursor: ${props => props.disabled ? 'not-allowed' : 'pointer'};
|
|
43
|
+
}
|
|
44
|
+
`;
|
|
45
|
+
const InputContainer = exports.InputContainer = _styledComponents.default.div`
|
|
46
|
+
display: flex;
|
|
47
|
+
flex-direction: row;
|
|
48
|
+
flex-wrap: nowrap;
|
|
49
|
+
justify-content: flex-start;
|
|
50
|
+
align-content: center;
|
|
51
|
+
white-space: pre-wrap;
|
|
52
|
+
align-items: center;
|
|
53
|
+
overflow: hidden;
|
|
54
|
+
padding: 0 5px 0 0;
|
|
55
|
+
margin-bottom: 8px;
|
|
56
|
+
gap: 4px;
|
|
57
|
+
width: 100%;
|
|
58
|
+
height: 100%;
|
|
59
|
+
box-sizing: border-box;
|
|
60
|
+
background-color: transparent;
|
|
61
|
+
border: 1px solid ${props => props.disabled ? '#bdbdbd' : props.error ? 'red' : '#B1B1B1'};
|
|
62
|
+
font-family: "Poppins", sans-serif;
|
|
63
|
+
font-weight: 400;
|
|
64
|
+
font-size: 14px;
|
|
65
|
+
border-radius: 12px;
|
|
66
|
+
outline: none;
|
|
67
|
+
color: ${props => props.disabled ? '#888' : '#212121'};
|
|
68
|
+
&:hover {
|
|
69
|
+
border: 1px solid ${props => props.disabled ? '#bdbdbd' : props.error ? 'red' : props.labelColor || '#212121'};
|
|
70
|
+
cursor: ${props => props.disabled ? 'not-allowed' : 'pointer'};
|
|
71
|
+
}
|
|
72
|
+
&:focus {
|
|
73
|
+
border: 1px solid ${props => props.disabled ? '#bdbdbd' : props.error ? 'red' : props.labelColor || '#212121'};
|
|
74
|
+
}
|
|
75
|
+
`;
|
|
76
|
+
const InputSubContainer = exports.InputSubContainer = _styledComponents.default.div`
|
|
77
|
+
display: flex;
|
|
78
|
+
flex-direction: column;
|
|
79
|
+
flex-wrap: nowrap;
|
|
80
|
+
align-content: center;
|
|
81
|
+
align-items: flex-start;
|
|
82
|
+
justify-content: center;
|
|
83
|
+
white-space: pre-wrap;
|
|
84
|
+
overflow: hidden;
|
|
85
|
+
padding: 10px 4px 10px 10px;
|
|
86
|
+
width: 100%;
|
|
87
|
+
height: 100%;
|
|
88
|
+
min-height: 53px;
|
|
89
|
+
box-sizing: border-box;
|
|
90
|
+
background-color: transparent;
|
|
91
|
+
border-radius: 12px;
|
|
92
|
+
outline: none;
|
|
93
|
+
color: ${props => props.disabled ? '#888' : '#212121'};
|
|
94
|
+
`;
|
|
95
|
+
const StyledInput = exports.StyledInput = _styledComponents.default.input`
|
|
96
|
+
width: calc(100% - 20px);
|
|
97
|
+
height: 25px;
|
|
98
|
+
font-family: Poppins;
|
|
99
|
+
font-weight: 400;
|
|
100
|
+
font-size: 14px;
|
|
101
|
+
outline: none;
|
|
102
|
+
background-color: transparent;
|
|
103
|
+
color: ${props => props.disabled ? '#888' : '#212121'};
|
|
104
|
+
border: none;
|
|
105
|
+
`;
|
|
106
|
+
const OptionsContainer = exports.OptionsContainer = _styledComponents.default.div`
|
|
107
|
+
margin: 0;
|
|
108
|
+
top: 100%;
|
|
109
|
+
left: 0;
|
|
110
|
+
z-index: 100;
|
|
111
|
+
width: 100%;
|
|
112
|
+
background-color: #fff;
|
|
113
|
+
display: ${props => {
|
|
17
114
|
var _props$filteredoption;
|
|
18
115
|
return props.showoptions && ((_props$filteredoption = props.filteredoptions) === null || _props$filteredoption === void 0 ? void 0 : _props$filteredoption.length) > 0 ? 'block' : 'none';
|
|
19
|
-
}
|
|
20
|
-
|
|
116
|
+
}};
|
|
117
|
+
|
|
118
|
+
`;
|
|
119
|
+
const OptionsSubContainer = exports.OptionsSubContainer = _styledComponents.default.ul`
|
|
120
|
+
list-style: none;
|
|
121
|
+
font-weight: 400;
|
|
122
|
+
margin: 0;
|
|
123
|
+
padding: 8px 12px;
|
|
124
|
+
position: absolute;
|
|
125
|
+
top: 100%;
|
|
126
|
+
left: 0;
|
|
127
|
+
z-index: 101;
|
|
128
|
+
width: calc(100% - 23px);
|
|
129
|
+
font-family: Poppins;
|
|
130
|
+
border-radius: 4px;
|
|
131
|
+
background-color: #fff;
|
|
132
|
+
display: ${props => {
|
|
21
133
|
var _props$filteredoption2;
|
|
22
134
|
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
|
-
|
|
28
|
-
const
|
|
135
|
+
}};
|
|
136
|
+
box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.1);
|
|
137
|
+
max-height: 400px;
|
|
138
|
+
overflow: auto;
|
|
139
|
+
`;
|
|
140
|
+
const OptionItem = exports.OptionItem = _styledComponents.default.li`
|
|
141
|
+
gap: 8px;
|
|
142
|
+
padding: 10px;
|
|
143
|
+
cursor: pointer;
|
|
144
|
+
color: #212121;
|
|
145
|
+
font-family: Poppins;
|
|
146
|
+
font-size: 14px;
|
|
147
|
+
font-style: normal;
|
|
148
|
+
font-weight: 400;
|
|
149
|
+
transition: background-color 0.3s;
|
|
150
|
+
|
|
151
|
+
&:hover {
|
|
152
|
+
background-color: #EDF6FF;
|
|
153
|
+
}
|
|
154
|
+
`;
|
|
155
|
+
const ErrorMessage = exports.ErrorMessage = _styledComponents.default.div`
|
|
156
|
+
font-size: 12px;
|
|
157
|
+
color: red;
|
|
158
|
+
margin-top: 5px;
|
|
159
|
+
`;
|
|
160
|
+
const SelectedOptionsContainer = exports.SelectedOptionsContainer = _styledComponents.default.div`
|
|
161
|
+
display: flex;
|
|
162
|
+
flex-direction: row;
|
|
163
|
+
flex-wrap: nowrap;
|
|
164
|
+
justify-content: flex-start;
|
|
165
|
+
align-content: center;
|
|
166
|
+
align-items: center;
|
|
167
|
+
white-space: pre-wrap;
|
|
168
|
+
overflow: hidden;
|
|
169
|
+
padding: 0;
|
|
170
|
+
font-weight: 400;
|
|
171
|
+
border-top: none;
|
|
172
|
+
border-radius: 4px;
|
|
173
|
+
background-color: #fff;
|
|
174
|
+
gap: 4px;
|
|
175
|
+
`;
|
|
176
|
+
const SelectedOptionItem = exports.SelectedOptionItem = _styledComponents.default.div`
|
|
177
|
+
display: flex;
|
|
178
|
+
margin: 0;
|
|
179
|
+
flex-wrap: nowrap;
|
|
180
|
+
white-space: pre-wrap;
|
|
181
|
+
overflow: hidden;
|
|
182
|
+
cursor: pointer;
|
|
183
|
+
color: #212121;
|
|
184
|
+
background-color: #E3E4E5;
|
|
185
|
+
border-radius: 4px;
|
|
186
|
+
align-items: center;
|
|
187
|
+
padding: 4px 6px;
|
|
188
|
+
font-size: 12px;
|
|
189
|
+
`;
|
|
190
|
+
const IconContainer = exports.IconContainer = _styledComponents.default.div`
|
|
191
|
+
display: flex;
|
|
192
|
+
padding: 2px;
|
|
193
|
+
cursor: pointer;
|
|
194
|
+
`;
|
|
@@ -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)));
|