sag_components 2.0.0-beta → 2.0.0-beta1
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/index.d.ts +25 -0
- package/dist/index.esm.js +3349 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/index.js +3357 -0
- package/dist/index.js.map +1 -0
- package/dist/types/components/AttachedFile/AttachedFile.d.ts +24 -0
- package/dist/types/components/AttachedFile/AttachedFile.stories.d.ts +35 -0
- package/dist/types/components/AttachedFile/AttachedFile.style.d.ts +4 -0
- package/dist/types/components/AutocompleteField/AutocompleteField.d.ts +15 -0
- package/dist/types/components/AutocompleteField/AutocompleteField.stories.d.ts +19 -0
- package/dist/types/components/AutocompleteField/AutocompleteField.style.d.ts +5 -0
- package/dist/types/components/BannerEventBox/BannerEventBox.d.ts +39 -0
- package/dist/types/components/BannerEventBox/BannerEventBox.stories.d.ts +61 -0
- package/dist/types/components/BannerEventBox/BannerEventBox.style.d.ts +13 -0
- package/dist/types/components/BannerEventBoxList/BannerEventBoxList.d.ts +74 -0
- package/dist/types/components/BannerEventBoxList/BannerEventBoxList.stories.d.ts +40 -0
- package/dist/types/components/BannerEventBoxList/BannerEventBoxList.style.d.ts +12 -0
- package/dist/types/components/BannersDropdown/BannersDropdown.d.ts +18 -0
- package/dist/types/components/BannersDropdown/BannersDropdown.stories.d.ts +38 -0
- package/dist/types/components/BannersDropdown/BannersDropdown.style.d.ts +8 -0
- package/dist/types/components/BarChart/BarChart.d.ts +79 -0
- package/dist/types/components/BarChart/BarChart.stories.d.ts +320 -0
- package/dist/types/components/BarChart/BarChart.style.d.ts +8 -0
- package/dist/types/components/BarChartTwoRows/BarChartTwoRows.d.ts +82 -0
- package/dist/types/components/BarChartTwoRows/BarChartTwoRows.stories.d.ts +300 -0
- package/dist/types/components/BarChartTwoRows/BarChartTwoRows.style.d.ts +31 -0
- package/dist/types/components/BarChartWithAreaChart/BarChartWithAreaChart.d.ts +66 -0
- package/dist/types/components/BarChartWithAreaChart/BarChartWithAreaChart.stories.d.ts +147 -0
- package/dist/types/components/BarChartWithAreaChart/BarChartWithAreaChart.style.d.ts +9 -0
- package/dist/types/components/BarChartsByWeeks/BarChartsByWeeks.d.ts +107 -0
- package/dist/types/components/BarChartsByWeeks/BarChartsByWeeks.stories.d.ts +465 -0
- package/dist/types/components/BarChartsByWeeks/BarChartsByWeeks.style.d.ts +11 -0
- package/dist/types/components/Benchmark/Benchmark.d.ts +45 -0
- package/dist/types/components/Benchmark/Benchmark.stories.d.ts +224 -0
- package/dist/types/components/Benchmark/Benchmark.style.d.ts +5 -0
- package/dist/types/components/Button/Button.d.ts +22 -0
- package/dist/types/components/Button/Button.stories.d.ts +393 -0
- package/dist/types/components/Button/Button.style.d.ts +5 -0
- package/dist/types/components/Button/Button.test.d.ts +1 -0
- package/dist/types/components/CampaignTool/CampaignDemoReport.d.ts +33 -0
- package/dist/types/components/CampaignTool/CampaignDemoReport.stories.d.ts +64 -0
- package/dist/types/components/CampaignTool/CampaignDemoReport.style.d.ts +5 -0
- package/dist/types/components/CampaignTool/Card.d.ts +37 -0
- package/dist/types/components/CampaignTool/Card.stories.d.ts +57 -0
- package/dist/types/components/CampaignTool/Card.style.d.ts +8 -0
- package/dist/types/components/CampaignTool/FormInput.d.ts +5 -0
- package/dist/types/components/CampaignTool/FormSelect.d.ts +5 -0
- package/dist/types/components/CampaignTool/MultipleCard.d.ts +15 -0
- package/dist/types/components/CampaignTool/MultipleCard.stories.d.ts +31 -0
- package/dist/types/components/CampaignTool/MultipleCard.style.d.ts +1 -0
- package/dist/types/components/CampaignTool/PageFilterBar.d.ts +12 -0
- package/dist/types/components/CampaignTool/PageFilterBar.stories.d.ts +23 -0
- package/dist/types/components/CampaignTool/PageFilterBar.style.d.ts +2 -0
- package/dist/types/components/CampaignTool/Popup.d.ts +27 -0
- package/dist/types/components/CampaignTool/Popup.stories.d.ts +166 -0
- package/dist/types/components/CampaignTool/Popup.style.d.ts +14 -0
- package/dist/types/components/CampaignTool/PopupContent.d.ts +28 -0
- package/dist/types/components/CampaignTool/PopupContent.style.d.ts +7 -0
- package/dist/types/components/CampaignTool/PopupFieldsRules.d.ts +41 -0
- package/dist/types/components/CampaignTool/Table.d.ts +56 -0
- package/dist/types/components/CampaignTool/Table.stories.d.ts +120 -0
- package/dist/types/components/CampaignTool/Table.style.d.ts +7 -0
- package/dist/types/components/CheckBox/CheckBox.d.ts +15 -0
- package/dist/types/components/CheckBox/CheckBox.stories.d.ts +150 -0
- package/dist/types/components/CheckBox/CheckBox.style.d.ts +4 -0
- package/dist/types/components/CheckBoxButton/CheckBoxButton.d.ts +21 -0
- package/dist/types/components/CheckBoxButton/CheckBoxButton.stories.d.ts +221 -0
- package/dist/types/components/CheckBoxButton/CheckBoxButton.style.d.ts +4 -0
- package/dist/types/components/CodeEditor/CodeEditor.d.ts +5 -0
- package/dist/types/components/CodeEditor/CodeEditor.style.d.ts +2 -0
- package/dist/types/components/CollapseData/CollapseData.d.ts +34 -0
- package/dist/types/components/CollapseData/CollapseData.stories.d.ts +86 -0
- package/dist/types/components/CollapseData/CollapseData.style.d.ts +11 -0
- package/dist/types/components/CollapseHeader/CollapseHeader.d.ts +70 -0
- package/dist/types/components/CollapseHeader/CollapseHeader.stories.d.ts +151 -0
- package/dist/types/components/CollapseHeader/CollapseHeader.style.d.ts +25 -0
- package/dist/types/components/CollapseMenuItem/CollapseMenuItem.d.ts +24 -0
- package/dist/types/components/CollapseMenuItem/CollapseMenuItem.stories.d.ts +79 -0
- package/dist/types/components/CollapseMenuItem/CollapseMenuItem.style.d.ts +7 -0
- package/dist/types/components/Datepicker/Datepicker.d.ts +12 -0
- package/dist/types/components/Datepicker/Datepicker.stories.d.ts +112 -0
- package/dist/types/components/Datepicker/Datepicker.style.d.ts +1 -0
- package/dist/types/components/DialogOverlay/DialogOverlay.d.ts +21 -0
- package/dist/types/components/DialogOverlay/DialogOverlay.stories.d.ts +41 -0
- package/dist/types/components/DialogOverlay/DialogOverlay.style.d.ts +6 -0
- package/dist/types/components/DoublePanelDataRow/DoublePanelDataRow.d.ts +34 -0
- package/dist/types/components/DoublePanelDataRow/DoublePanelDataRow.stories.d.ts +103 -0
- package/dist/types/components/DoublePanelDataRow/DoublePanelDataRow.style.d.ts +9 -0
- package/dist/types/components/DownloadProgress/DownloadProgress.d.ts +39 -0
- package/dist/types/components/DownloadProgress/DownloadProgress.stories.d.ts +159 -0
- package/dist/types/components/DownloadProgress/DownloadProgress.style.d.ts +4 -0
- package/dist/types/components/Dropdown/Dropdown.d.ts +24 -0
- package/dist/types/components/Dropdown/Dropdown.stories.d.ts +451 -0
- package/dist/types/components/Dropdown/Dropdown.style.d.ts +1 -0
- package/dist/types/components/DropdownMulti/DropdownMulti.d.ts +75 -0
- package/dist/types/components/DropdownMulti/DropdownMulti.stories.d.ts +263 -0
- package/dist/types/components/DropdownMulti/DropdownMulti.style.d.ts +1 -0
- package/dist/types/components/DropdownMultiNew/DropdownMultiNew.d.ts +79 -0
- package/dist/types/components/DropdownMultiNew/DropdownMultiNew.style.d.ts +12 -0
- package/dist/types/components/DropdownMultiNew/DropdownNew.stories.d.ts +574 -0
- package/dist/types/components/DropdownNew/DropdownNew.d.ts +81 -0
- package/dist/types/components/DropdownNew/DropdownNew.style.d.ts +1 -0
- package/dist/types/components/DropdownSingleNew/DropdownSingleNew.d.ts +75 -0
- package/dist/types/components/DropdownSingleNew/DropdownSingleNew.style.d.ts +10 -0
- package/dist/types/components/EventDetailsCard/EventDetailsCard.d.ts +48 -0
- package/dist/types/components/EventDetailsCard/EventDetailsCard.stories.d.ts +151 -0
- package/dist/types/components/EventDetailsCard/EventDetailsCard.style.d.ts +6 -0
- package/dist/types/components/EventList/EventList.d.ts +30 -0
- package/dist/types/components/EventList/EventList.stories.d.ts +84 -0
- package/dist/types/components/EventList/EventList.style.d.ts +4 -0
- package/dist/types/components/EventListItem/EventListItem.d.ts +27 -0
- package/dist/types/components/EventListItem/EventListItem.stories.d.ts +81 -0
- package/dist/types/components/EventListItem/EventListItem.style.d.ts +4 -0
- package/dist/types/components/FilterContainer/FilterContainer.d.ts +3 -0
- package/dist/types/components/FilterContainer/FilterContainer.stories.d.ts +15 -0
- package/dist/types/components/FilterContainer/FilterContainer.style.d.ts +3 -0
- package/dist/types/components/FilterPanel/FilterPanel.d.ts +67 -0
- package/dist/types/components/FilterPanel/FilterPanel.stories.d.ts +824 -0
- package/dist/types/components/FilterPanel/FilterPanel.style.d.ts +11 -0
- package/dist/types/components/FormattedValue/FormattedValue.d.ts +45 -0
- package/dist/types/components/FormattedValue/FormattedValue.stories.d.ts +297 -0
- package/dist/types/components/FormattedValue/FormattedValue.style.d.ts +7 -0
- package/dist/types/components/Heatmap/Heatmap.d.ts +15 -0
- package/dist/types/components/Heatmap/Heatmap.stories.d.ts +87 -0
- package/dist/types/components/Heatmap/Heatmap.style.d.ts +15 -0
- package/dist/types/components/IconButton/IconButton.d.ts +48 -0
- package/dist/types/components/IconButton/IconButton.stories.d.ts +166 -0
- package/dist/types/components/IconButton/IconButton.style.d.ts +4 -0
- package/dist/types/components/Input/Input.d.ts +80 -0
- package/dist/types/components/Input/Input.stories.d.ts +688 -0
- package/dist/types/components/Input/Input.style.d.ts +7 -0
- package/dist/types/components/InputOld/InputOld.d.ts +66 -0
- package/dist/types/components/InputOld/InputOld.stories.d.ts +130 -0
- package/dist/types/components/InputOld/InputOld.style.d.ts +6 -0
- package/dist/types/components/KpiFilter/KpiFilter.d.ts +58 -0
- package/dist/types/components/KpiFilter/KpiFilter.stories.d.ts +300 -0
- package/dist/types/components/KpiFilter/KpiFilter.style.d.ts +16 -0
- package/dist/types/components/LinkButton/LinkButton.d.ts +13 -0
- package/dist/types/components/LinkButton/LinkButton.stories.d.ts +279 -0
- package/dist/types/components/LinkButton/LinkButton.style.d.ts +4 -0
- package/dist/types/components/LinkButton/LinkButton.test.d.ts +1 -0
- package/dist/types/components/LinnerDataBox/LinnerDataBox.d.ts +35 -0
- package/dist/types/components/LinnerDataBox/LinnerDataBox.stories.d.ts +72 -0
- package/dist/types/components/LinnerDataBox/LinnerDataBox.style.d.ts +12 -0
- package/dist/types/components/ListBox/ListBox.d.ts +15 -0
- package/dist/types/components/ListBox/ListBox.stories.d.ts +162 -0
- package/dist/types/components/ListBox/ListBox.style.d.ts +4 -0
- package/dist/types/components/MarketShareDescription/MarketShareDescription.d.ts +31 -0
- package/dist/types/components/MarketShareDescription/MarketShareDescription.stories.d.ts +135 -0
- package/dist/types/components/MarketShareDescription/MarketShareDescription.style.d.ts +16 -0
- package/dist/types/components/Modal/Modal.d.ts +6 -0
- package/dist/types/components/Modal/Modal.style.d.ts +4 -0
- package/dist/types/components/Modal/ModalTotalBenchmark.d.ts +8 -0
- package/dist/types/components/Modal/ModalTotalCost.d.ts +7 -0
- package/dist/types/components/MonthPicker/MonthPicker.d.ts +54 -0
- package/dist/types/components/MonthPicker/MonthPicker.stories.d.ts +197 -0
- package/dist/types/components/MonthPicker/MonthPicker.style.d.ts +8 -0
- package/dist/types/components/MonthPicker/MonthPopupPicker.d.ts +9 -0
- package/dist/types/components/NoDataFoundMessage/NoDataFoundMessage.d.ts +12 -0
- package/dist/types/components/NoDataFoundMessage/NoDataFoundMessage.stories.d.ts +45 -0
- package/dist/types/components/NoDataFoundMessage/NoDataFoundMessage.style.d.ts +3 -0
- package/dist/types/components/OneColumnContainer/OneColumnContainer.d.ts +63 -0
- package/dist/types/components/OneColumnContainer/OneColumnContainer.stories.d.ts +149 -0
- package/dist/types/components/OneColumnContainer/OneColumnContainer.style.d.ts +10 -0
- package/dist/types/components/PerformanceAnalytics/PerformanceAnalytics.d.ts +86 -0
- package/dist/types/components/PerformanceAnalytics/PerformanceAnalytics.stories.d.ts +263 -0
- package/dist/types/components/PerformanceAnalytics/PerformanceAnalytics.style.d.ts +14 -0
- package/dist/types/components/PerformanceAnalyticsLegend/PerformanceAnalyticsLegend.d.ts +29 -0
- package/dist/types/components/PerformanceAnalyticsLegend/PerformanceAnalyticsLegend.stories.d.ts +98 -0
- package/dist/types/components/PerformanceAnalyticsLegend/PerformanceAnalyticsLegend.style.d.ts +6 -0
- package/dist/types/components/PerformanceAnalyticsOneColumn/PerformanceAnalyticsOneColumn.d.ts +85 -0
- package/dist/types/components/PerformanceAnalyticsOneColumn/PerformanceAnalyticsOneColumn.stories.d.ts +236 -0
- package/dist/types/components/PerformanceAnalyticsOneColumn/PerformanceAnalyticsOneColumn.style.d.ts +13 -0
- package/dist/types/components/PerformanceAnalyticsTotals/PerformanceAnalyticsTotals.d.ts +37 -0
- package/dist/types/components/PerformanceAnalyticsTotals/PerformanceAnalyticsTotals.stories.d.ts +102 -0
- package/dist/types/components/PerformanceAnalyticsTotals/PerformanceAnalyticsTotals.style.d.ts +10 -0
- package/dist/types/components/PieChart/PieChart.d.ts +66 -0
- package/dist/types/components/PieChart/PieChart.stories.d.ts +295 -0
- package/dist/types/components/PieChart/PieChart.style.d.ts +18 -0
- package/dist/types/components/PopupCharts/PopupCharts.d.ts +64 -0
- package/dist/types/components/PopupCharts/PopupCharts.stories.d.ts +280 -0
- package/dist/types/components/PopupCharts/PopupCharts.style.d.ts +12 -0
- package/dist/types/components/ProductsVariety/ProductsVariety.d.ts +29 -0
- package/dist/types/components/ProductsVariety/ProductsVariety.stories.d.ts +77 -0
- package/dist/types/components/ProductsVariety/ProductsVariety.style.d.ts +10 -0
- package/dist/types/components/ProgressBar/ProgressBar.d.ts +24 -0
- package/dist/types/components/ProgressBar/ProgressBar.stories.d.ts +94 -0
- package/dist/types/components/ProgressBar/ProgressBar.style.d.ts +2 -0
- package/dist/types/components/QuarterPicker/QuarterPicker.d.ts +54 -0
- package/dist/types/components/QuarterPicker/QuarterPicker.stories.d.ts +197 -0
- package/dist/types/components/QuarterPicker/QuarterPicker.style.d.ts +8 -0
- package/dist/types/components/QuarterPicker/QuarterPopupPicker.d.ts +9 -0
- package/dist/types/components/QuickFilter/QuickFilter.d.ts +69 -0
- package/dist/types/components/QuickFilter/QuickFilter.stories.d.ts +393 -0
- package/dist/types/components/QuickFilter/QuickFilter.style.d.ts +1 -0
- package/dist/types/components/QuickFilterDropdownMultiSelection/QuickFilterDropdownMultiSelection.d.ts +76 -0
- package/dist/types/components/QuickFilterDropdownMultiSelection/QuickFilterDropdownMultiSelection.style.d.ts +12 -0
- package/dist/types/components/QuickFilterDropdownSingle/QuickFilterDropdownSingle.d.ts +68 -0
- package/dist/types/components/QuickFilterDropdownSingle/QuickFilterDropdownSingle.style.d.ts +11 -0
- package/dist/types/components/RangePicker/RangeDatePicker.d.ts +9 -0
- package/dist/types/components/RangePicker/RangePicker.d.ts +52 -0
- package/dist/types/components/RangePicker/RangePicker.stories.d.ts +194 -0
- package/dist/types/components/RangePicker/RangePicker.style.d.ts +8 -0
- package/dist/types/components/ReportTable/ReportTable.d.ts +83 -0
- package/dist/types/components/ReportTable/ReportTable.stories.d.ts +322 -0
- package/dist/types/components/ReportTable/ReportTable.style.d.ts +14 -0
- package/dist/types/components/SagButton/SagButton.d.ts +45 -0
- package/dist/types/components/SagButton/SagButton.stories.d.ts +168 -0
- package/dist/types/components/SagButton/SagButton.style.d.ts +3 -0
- package/dist/types/components/SagIconButton/SagIconButton.d.ts +45 -0
- package/dist/types/components/SagIconButton/SagIconButton.stories.d.ts +178 -0
- package/dist/types/components/SagIconButton/SagIconButton.style.d.ts +2 -0
- package/dist/types/components/SagInput/SagInput.d.ts +36 -0
- package/dist/types/components/SagInput/SagInput.stories.d.ts +88 -0
- package/dist/types/components/SagInput/SagInput.style.d.ts +3 -0
- package/dist/types/components/SalesAndROI/SalesAndROI.d.ts +50 -0
- package/dist/types/components/SalesAndROI/SalesAndROI.stories.d.ts +222 -0
- package/dist/types/components/SalesAndROI/SalesAndROI.style.d.ts +9 -0
- package/dist/types/components/SearchInput/SearchInput.d.ts +24 -0
- package/dist/types/components/SearchInput/SearchInput.stories.d.ts +49 -0
- package/dist/types/components/SearchInput/SearchInput.style.d.ts +2 -0
- package/dist/types/components/SegmentedButton/SegmentedButton.d.ts +49 -0
- package/dist/types/components/SegmentedButton/SegmentedButton.stories.d.ts +260 -0
- package/dist/types/components/SegmentedButton/SegmentedButton.style.d.ts +6 -0
- package/dist/types/components/Select/Select.d.ts +21 -0
- package/dist/types/components/Select/Select.stories.d.ts +285 -0
- package/dist/types/components/Select/Select.style.d.ts +6 -0
- package/dist/types/components/SingleBarLineCharts/SingleBar.test.d.ts +1 -0
- package/dist/types/components/SingleBarLineCharts/SingleBarLineCharts.d.ts +28 -0
- package/dist/types/components/SingleBarLineCharts/SingleBarLineCharts.stories.d.ts +398 -0
- package/dist/types/components/SingleBarLineCharts/SingleBarLineCharts.style.d.ts +61 -0
- package/dist/types/components/TabMenu/TabMenu.d.ts +90 -0
- package/dist/types/components/TabMenu/TabMenu.stories.d.ts +174 -0
- package/dist/types/components/TabMenu/TabMenu.style.d.ts +58 -0
- package/dist/types/components/TextField/TextField.d.ts +6 -0
- package/dist/types/components/TextField/TextField.stories.d.ts +243 -0
- package/dist/types/components/TextField/TextField.style.d.ts +1 -0
- package/dist/types/components/TitleDescription/TitleDescription.d.ts +59 -0
- package/dist/types/components/TitleDescription/TitleDescription.stories.d.ts +137 -0
- package/dist/types/components/TitleDescription/TitleDescription.style.d.ts +26 -0
- package/dist/types/components/Tooltip/Tooltip.d.ts +24 -0
- package/dist/types/components/Tooltip/Tooltip.style.d.ts +3 -0
- package/dist/types/components/TopToggleList/TopToggleList.d.ts +24 -0
- package/dist/types/components/TopToggleList/TopToggleList.stories.d.ts +36 -0
- package/dist/types/components/TopToggleList/TopToggleList.style.d.ts +5 -0
- package/dist/types/components/TotalBenchmark/TotalBenchmark.d.ts +40 -0
- package/dist/types/components/TotalBenchmark/TotalBenchmark.stories.d.ts +176 -0
- package/dist/types/components/TotalBenchmark/TotalBenchmark.style.d.ts +9 -0
- package/dist/types/components/TotalBenchmarkAreachart/TotalBenchmarkAreachart.d.ts +86 -0
- package/dist/types/components/TotalBenchmarkAreachart/TotalBenchmarkAreachart.stories.d.ts +379 -0
- package/dist/types/components/TotalBenchmarkAreachart/TotalBenchmarkAreachart.style.d.ts +20 -0
- package/dist/types/components/TotalBenchmarkArrows/TotalBenchmarkArrows.d.ts +54 -0
- package/dist/types/components/TotalBenchmarkArrows/TotalBenchmarkArrows.stories.d.ts +237 -0
- package/dist/types/components/TotalBenchmarkArrows/TotalBenchmarkArrows.style.d.ts +14 -0
- package/dist/types/components/TotalBenchmarkBarchart/TotalBenchmarkBarchart.d.ts +56 -0
- package/dist/types/components/TotalBenchmarkBarchart/TotalBenchmarkBarchart.stories.d.ts +257 -0
- package/dist/types/components/TotalBenchmarkBarchart/TotalBenchmarkBarchart.style.d.ts +10 -0
- package/dist/types/components/TotalDoughnutChart/TotalDoughnutChart.d.ts +66 -0
- package/dist/types/components/TotalDoughnutChart/TotalDoughnutChart.stories.d.ts +416 -0
- package/dist/types/components/TotalDoughnutChart/TotalDoughnutChart.style.d.ts +19 -0
- package/dist/types/components/TotalHorizontalCharts/TotalHorizontalCharts.d.ts +76 -0
- package/dist/types/components/TotalHorizontalCharts/TotalHorizontalCharts.stories.d.ts +331 -0
- package/dist/types/components/TotalHorizontalCharts/TotalHorizontalCharts.style.d.ts +6 -0
- package/dist/types/components/TspanTooltip/TspanTooltip.d.ts +24 -0
- package/dist/types/components/TspanTooltip/TspanTooltip.style.d.ts +3 -0
- package/dist/types/components/TwoBarCharts/TwoBarCharts.d.ts +74 -0
- package/dist/types/components/TwoBarCharts/TwoBarCharts.stories.d.ts +238 -0
- package/dist/types/components/TwoBarCharts/TwoBarCharts.style.d.ts +8 -0
- package/dist/types/icons/ArrowDownIcon.d.ts +6 -0
- package/dist/types/icons/ArrowDropDownIcon.d.ts +6 -0
- package/dist/types/icons/ArrowSelectIcon.d.ts +6 -0
- package/dist/types/icons/ArrowUpIcon.d.ts +6 -0
- package/dist/types/icons/AttachedIcon.d.ts +6 -0
- package/dist/types/icons/BellIcon.d.ts +6 -0
- package/dist/types/icons/ButtonArrowRight.d.ts +5 -0
- package/dist/types/icons/Calendar.d.ts +2 -0
- package/dist/types/icons/CalendarIcon.d.ts +6 -0
- package/dist/types/icons/CalendarInOpen.d.ts +2 -0
- package/dist/types/icons/CheckBoxButtonCheckedIcon.d.ts +7 -0
- package/dist/types/icons/CheckBoxCheckedIcon.d.ts +7 -0
- package/dist/types/icons/CheckBoxNotCheckedIcon.d.ts +7 -0
- package/dist/types/icons/ChervronLeftIcon.d.ts +2 -0
- package/dist/types/icons/ChervronRightIcon.d.ts +2 -0
- package/dist/types/icons/ChevronLeftIcon.d.ts +4 -0
- package/dist/types/icons/ChevronRightIcon.d.ts +4 -0
- package/dist/types/icons/ClockIcon.d.ts +6 -0
- package/dist/types/icons/CloseIcon.d.ts +6 -0
- package/dist/types/icons/CloseXIcon.d.ts +6 -0
- package/dist/types/icons/ComboBoxArrowDownIcon.d.ts +7 -0
- package/dist/types/icons/ComboBoxArrowUpIcon.d.ts +7 -0
- package/dist/types/icons/DocumentIcon.d.ts +6 -0
- package/dist/types/icons/DownloadIcon.d.ts +6 -0
- package/dist/types/icons/Duplicate.d.ts +7 -0
- package/dist/types/icons/ErrorIcon.d.ts +6 -0
- package/dist/types/icons/ExitIcon.d.ts +7 -0
- package/dist/types/icons/ExportIcon.d.ts +7 -0
- package/dist/types/icons/EyeIcon.d.ts +7 -0
- package/dist/types/icons/FileIcon.d.ts +6 -0
- package/dist/types/icons/FilterIcon.d.ts +6 -0
- package/dist/types/icons/FlyIcon.d.ts +7 -0
- package/dist/types/icons/FoodLionChartIcon.d.ts +2 -0
- package/dist/types/icons/FoodLionIcon.d.ts +6 -0
- package/dist/types/icons/FoodLionNewIcon.d.ts +5 -0
- package/dist/types/icons/GiantFoodChartIcon.d.ts +2 -0
- package/dist/types/icons/GiantFoodIcon.d.ts +7 -0
- package/dist/types/icons/GiantFoodIcon_new.d.ts +7 -0
- package/dist/types/icons/HannafordChartIcon.d.ts +2 -0
- package/dist/types/icons/HannafordIcon.d.ts +6 -0
- package/dist/types/icons/HannafordIcon_new.d.ts +6 -0
- package/dist/types/icons/HannafordNewIcon.d.ts +5 -0
- package/dist/types/icons/InfoIcon.d.ts +7 -0
- package/dist/types/icons/LampIcon.d.ts +6 -0
- package/dist/types/icons/LegendLineIcon.d.ts +6 -0
- package/dist/types/icons/LegendUnionIcon.d.ts +6 -0
- package/dist/types/icons/MaintenanceIcon.d.ts +7 -0
- package/dist/types/icons/MenuItemClosedIcon.d.ts +7 -0
- package/dist/types/icons/MenuItemOpenIcon.d.ts +7 -0
- package/dist/types/icons/MenuItemRightIcon.d.ts +7 -0
- package/dist/types/icons/MenuItemUpIcon.d.ts +7 -0
- package/dist/types/icons/NoDataFoundIcon.d.ts +12 -0
- package/dist/types/icons/OptionsIcon.d.ts +6 -0
- package/dist/types/icons/ReselectIcon.d.ts +6 -0
- package/dist/types/icons/SearchIcon.d.ts +6 -0
- package/dist/types/icons/ShoppingCartIcon.d.ts +6 -0
- package/dist/types/icons/ShoutIcon.d.ts +6 -0
- package/dist/types/icons/Sort.d.ts +1 -0
- package/dist/types/icons/SortIcon.d.ts +7 -0
- package/dist/types/icons/SpotlightProductIcon.d.ts +7 -0
- package/dist/types/icons/StopAndShopChartIcon.d.ts +2 -0
- package/dist/types/icons/StopAndShopIcon.d.ts +7 -0
- package/dist/types/icons/StopAndShopNewIcon.d.ts +6 -0
- package/dist/types/icons/SucceededIcon.d.ts +6 -0
- package/dist/types/icons/TheGiantCompanyChartIcon.d.ts +2 -0
- package/dist/types/icons/TheGiantCompanyIcon.d.ts +5 -0
- package/dist/types/icons/TheGiantCompanyNewIcon.d.ts +6 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/reactTestApp/App.d.ts +2 -0
- package/dist/types/reactTestApp/index.d.ts +1 -0
- package/dist/types/reactTestApp/vite.config.d.ts +2 -0
- package/dist/types/utils/CommonFunctions.d.ts +6 -0
- package/dist/types/utils/ComponentFactory.d.ts +4 -0
- package/dist/types/utils/IconsHandler.d.ts +1 -0
- package/dist/types/utils/IconsHandler.style.d.ts +1 -0
- package/dist/types/utils/regex/Email.regex.d.ts +1 -0
- package/dist/types/utils/regex/LatinWithSpaces.regex.d.ts +1 -0
- package/dist/types/utils/regex/OnlyEnglishLetters.regex.d.ts +1 -0
- package/dist/types/utils/regex/Phone.regex.d.ts +1 -0
- package/package.json +19 -2
- package/.eslintrc.js +0 -37
- package/dist/components/AttachedFile/AttachedFile.js +0 -69
- package/dist/components/AttachedFile/AttachedFile.stories.js +0 -37
- package/dist/components/AttachedFile/AttachedFile.style.js +0 -48
- package/dist/components/AutocompleteField/AutocompleteField.js +0 -45
- package/dist/components/AutocompleteField/AutocompleteField.stories.js +0 -25
- package/dist/components/AutocompleteField/AutocompleteField.style.js +0 -55
- package/dist/components/BannerEventBox/BannerEventBox.js +0 -125
- package/dist/components/BannerEventBox/BannerEventBox.stories.js +0 -59
- package/dist/components/BannerEventBox/BannerEventBox.style.js +0 -78
- package/dist/components/BannerEventBoxList/BannerEventBoxList.js +0 -175
- package/dist/components/BannerEventBoxList/BannerEventBoxList.stories.js +0 -39
- package/dist/components/BannerEventBoxList/BannerEventBoxList.style.js +0 -190
- package/dist/components/BannersDropdown/BannersDropdown.js +0 -134
- package/dist/components/BannersDropdown/BannersDropdown.stories.js +0 -64
- package/dist/components/BannersDropdown/BannersDropdown.style.js +0 -99
- package/dist/components/BarChart/BarChart.js +0 -245
- package/dist/components/BarChart/BarChart.stories.js +0 -306
- package/dist/components/BarChart/BarChart.style.js +0 -60
- package/dist/components/BarChartTwoRows/BarChartTwoRows.js +0 -222
- package/dist/components/BarChartTwoRows/BarChartTwoRows.stories.js +0 -259
- package/dist/components/BarChartTwoRows/BarChartTwoRows.style.js +0 -79
- package/dist/components/BarChartWithAreaChart/BarChartWithAreaChart.js +0 -263
- package/dist/components/BarChartWithAreaChart/BarChartWithAreaChart.stories.js +0 -134
- package/dist/components/BarChartWithAreaChart/BarChartWithAreaChart.style.js +0 -67
- package/dist/components/BarChartsByWeeks/BarChartsByWeeks.js +0 -308
- package/dist/components/BarChartsByWeeks/BarChartsByWeeks.stories.js +0 -445
- package/dist/components/BarChartsByWeeks/BarChartsByWeeks.style.js +0 -96
- package/dist/components/Benchmark/Benchmark.js +0 -126
- package/dist/components/Benchmark/Benchmark.stories.js +0 -147
- package/dist/components/Benchmark/Benchmark.style.js +0 -61
- package/dist/components/Button/Button.js +0 -181
- package/dist/components/Button/Button.stories.js +0 -255
- package/dist/components/Button/Button.style.js +0 -90
- package/dist/components/Button/Button.test.js +0 -94
- package/dist/components/CampaignTool/CampaignDemoReport.js +0 -71
- package/dist/components/CampaignTool/CampaignDemoReport.stories.js +0 -65
- package/dist/components/CampaignTool/CampaignDemoReport.style.js +0 -48
- package/dist/components/CampaignTool/Card.js +0 -100
- package/dist/components/CampaignTool/Card.stories.js +0 -92
- package/dist/components/CampaignTool/Card.style.js +0 -65
- package/dist/components/CampaignTool/FormInput.js +0 -35
- package/dist/components/CampaignTool/FormSelect.js +0 -37
- package/dist/components/CampaignTool/MultipleCard.js +0 -33
- package/dist/components/CampaignTool/MultipleCard.stories.js +0 -33
- package/dist/components/CampaignTool/MultipleCard.style.js +0 -13
- package/dist/components/CampaignTool/PageFilterBar.js +0 -29
- package/dist/components/CampaignTool/PageFilterBar.stories.js +0 -28
- package/dist/components/CampaignTool/PageFilterBar.style.js +0 -22
- package/dist/components/CampaignTool/Popup.js +0 -137
- package/dist/components/CampaignTool/Popup.stories.js +0 -702
- package/dist/components/CampaignTool/Popup.style.js +0 -122
- package/dist/components/CampaignTool/PopupContent.js +0 -84
- package/dist/components/CampaignTool/PopupContent.style.js +0 -74
- package/dist/components/CampaignTool/PopupFieldsRules.js +0 -168
- package/dist/components/CampaignTool/Table.js +0 -223
- package/dist/components/CampaignTool/Table.stories.js +0 -104
- package/dist/components/CampaignTool/Table.style.js +0 -86
- package/dist/components/CheckBox/CheckBox.js +0 -61
- package/dist/components/CheckBox/CheckBox.stories.js +0 -107
- package/dist/components/CheckBox/CheckBox.style.js +0 -36
- package/dist/components/CheckBoxButton/CheckBoxButton.js +0 -57
- package/dist/components/CheckBoxButton/CheckBoxButton.stories.js +0 -150
- package/dist/components/CheckBoxButton/CheckBoxButton.style.js +0 -39
- package/dist/components/CodeEditor/CodeEditor.js +0 -31
- package/dist/components/CodeEditor/CodeEditor.style.js +0 -13
- package/dist/components/CollapseData/CollapseData.js +0 -100
- package/dist/components/CollapseData/CollapseData.stories.js +0 -125
- package/dist/components/CollapseData/CollapseData.style.js +0 -127
- package/dist/components/CollapseHeader/CollapseHeader.js +0 -284
- package/dist/components/CollapseHeader/CollapseHeader.stories.js +0 -123
- package/dist/components/CollapseHeader/CollapseHeader.style.js +0 -200
- package/dist/components/CollapseMenuItem/CollapseMenuItem.js +0 -72
- package/dist/components/CollapseMenuItem/CollapseMenuItem.stories.js +0 -121
- package/dist/components/CollapseMenuItem/CollapseMenuItem.style.js +0 -61
- package/dist/components/Datepicker/Datepicker.js +0 -136
- package/dist/components/Datepicker/Datepicker.stories.js +0 -85
- package/dist/components/Datepicker/Datepicker.style.js +0 -19
- package/dist/components/DialogOverlay/DialogOverlay.js +0 -57
- package/dist/components/DialogOverlay/DialogOverlay.stories.js +0 -39
- package/dist/components/DialogOverlay/DialogOverlay.style.js +0 -70
- package/dist/components/DoublePanelDataRow/DoublePanelDataRow.js +0 -89
- package/dist/components/DoublePanelDataRow/DoublePanelDataRow.stories.js +0 -116
- package/dist/components/DoublePanelDataRow/DoublePanelDataRow.style.js +0 -66
- package/dist/components/DownloadProgress/DownloadProgress.js +0 -99
- package/dist/components/DownloadProgress/DownloadProgress.stories.js +0 -109
- package/dist/components/DownloadProgress/DownloadProgress.style.js +0 -51
- package/dist/components/Dropdown/Dropdown.js +0 -199
- package/dist/components/Dropdown/Dropdown.stories.js +0 -318
- package/dist/components/Dropdown/Dropdown.style.js +0 -17
- package/dist/components/DropdownMulti/DropdownMulti.js +0 -277
- package/dist/components/DropdownMulti/DropdownMulti.stories.js +0 -220
- package/dist/components/DropdownMulti/DropdownMulti.style.js +0 -17
- package/dist/components/DropdownMultiNew/DropdownMultiNew.js +0 -250
- package/dist/components/DropdownMultiNew/DropdownMultiNew.style.js +0 -212
- package/dist/components/DropdownMultiNew/DropdownNew.stories.js +0 -407
- package/dist/components/DropdownNew/DropdownNew.js +0 -80
- package/dist/components/DropdownNew/DropdownNew.style.js +0 -21
- package/dist/components/DropdownSingleNew/DropdownSingleNew.js +0 -228
- package/dist/components/DropdownSingleNew/DropdownSingleNew.style.js +0 -183
- package/dist/components/EventDetailsCard/EventDetailsCard.js +0 -170
- package/dist/components/EventDetailsCard/EventDetailsCard.stories.js +0 -114
- package/dist/components/EventDetailsCard/EventDetailsCard.style.js +0 -62
- package/dist/components/EventList/EventList.js +0 -64
- package/dist/components/EventList/EventList.stories.js +0 -84
- package/dist/components/EventList/EventList.style.js +0 -38
- package/dist/components/EventListItem/EventListItem.js +0 -68
- package/dist/components/EventListItem/EventListItem.stories.js +0 -65
- package/dist/components/EventListItem/EventListItem.style.js +0 -47
- package/dist/components/FilterContainer/FilterContainer.js +0 -26
- package/dist/components/FilterContainer/FilterContainer.stories.js +0 -22
- package/dist/components/FilterContainer/FilterContainer.style.js +0 -30
- package/dist/components/FilterPanel/FilterPanel.js +0 -459
- package/dist/components/FilterPanel/FilterPanel.stories.js +0 -967
- package/dist/components/FilterPanel/FilterPanel.style.js +0 -89
- package/dist/components/FormattedValue/FormattedValue.js +0 -87
- package/dist/components/FormattedValue/FormattedValue.stories.js +0 -183
- package/dist/components/FormattedValue/FormattedValue.style.js +0 -91
- package/dist/components/Heatmap/Heatmap.js +0 -177
- package/dist/components/Heatmap/Heatmap.stories.js +0 -118
- package/dist/components/Heatmap/Heatmap.style.js +0 -151
- package/dist/components/IconButton/IconButton.js +0 -132
- package/dist/components/IconButton/IconButton.stories.js +0 -126
- package/dist/components/IconButton/IconButton.style.js +0 -65
- package/dist/components/Input/Input.js +0 -173
- package/dist/components/Input/Input.stories.js +0 -422
- package/dist/components/Input/Input.style.js +0 -132
- package/dist/components/InputOld/InputOld.js +0 -97
- package/dist/components/InputOld/InputOld.stories.js +0 -103
- package/dist/components/InputOld/InputOld.style.js +0 -71
- package/dist/components/KpiFilter/KpiFilter.js +0 -294
- package/dist/components/KpiFilter/KpiFilter.stories.js +0 -401
- package/dist/components/KpiFilter/KpiFilter.style.js +0 -132
- package/dist/components/LinkButton/LinkButton.js +0 -166
- package/dist/components/LinkButton/LinkButton.stories.js +0 -171
- package/dist/components/LinkButton/LinkButton.style.js +0 -53
- package/dist/components/LinkButton/LinkButton.test.js +0 -94
- package/dist/components/LinnerDataBox/LinnerDataBox.js +0 -81
- package/dist/components/LinnerDataBox/LinnerDataBox.stories.js +0 -79
- package/dist/components/LinnerDataBox/LinnerDataBox.style.js +0 -68
- package/dist/components/ListBox/ListBox.js +0 -59
- package/dist/components/ListBox/ListBox.stories.js +0 -132
- package/dist/components/ListBox/ListBox.style.js +0 -48
- package/dist/components/MarketShareDescription/MarketShareDescription.js +0 -119
- package/dist/components/MarketShareDescription/MarketShareDescription.stories.js +0 -196
- package/dist/components/MarketShareDescription/MarketShareDescription.style.js +0 -215
- package/dist/components/Modal/Modal.js +0 -23
- package/dist/components/Modal/Modal.style.js +0 -64
- package/dist/components/Modal/ModalTotalBenchmark.js +0 -129
- package/dist/components/Modal/ModalTotalCost.js +0 -101
- package/dist/components/MonthPicker/MonthPicker.js +0 -149
- package/dist/components/MonthPicker/MonthPicker.stories.js +0 -142
- package/dist/components/MonthPicker/MonthPicker.style.js +0 -105
- package/dist/components/MonthPicker/MonthPopupPicker.js +0 -215
- package/dist/components/NoDataFoundMessage/NoDataFoundMessage.js +0 -30
- package/dist/components/NoDataFoundMessage/NoDataFoundMessage.stories.js +0 -66
- package/dist/components/NoDataFoundMessage/NoDataFoundMessage.style.js +0 -39
- package/dist/components/OneColumnContainer/OneColumnContainer.js +0 -127
- package/dist/components/OneColumnContainer/OneColumnContainer.stories.js +0 -117
- package/dist/components/OneColumnContainer/OneColumnContainer.style.js +0 -107
- package/dist/components/PerformanceAnalytics/PerformanceAnalytics.js +0 -442
- package/dist/components/PerformanceAnalytics/PerformanceAnalytics.stories.js +0 -263
- package/dist/components/PerformanceAnalytics/PerformanceAnalytics.style.js +0 -144
- package/dist/components/PerformanceAnalyticsLegend/PerformanceAnalyticsLegend.js +0 -60
- package/dist/components/PerformanceAnalyticsLegend/PerformanceAnalyticsLegend.stories.js +0 -99
- package/dist/components/PerformanceAnalyticsLegend/PerformanceAnalyticsLegend.style.js +0 -63
- package/dist/components/PerformanceAnalyticsOneColumn/PerformanceAnalyticsOneColumn.js +0 -317
- package/dist/components/PerformanceAnalyticsOneColumn/PerformanceAnalyticsOneColumn.stories.js +0 -236
- package/dist/components/PerformanceAnalyticsOneColumn/PerformanceAnalyticsOneColumn.style.js +0 -116
- package/dist/components/PerformanceAnalyticsTotals/PerformanceAnalyticsTotals.js +0 -86
- package/dist/components/PerformanceAnalyticsTotals/PerformanceAnalyticsTotals.stories.js +0 -109
- package/dist/components/PerformanceAnalyticsTotals/PerformanceAnalyticsTotals.style.js +0 -89
- package/dist/components/PieChart/PieChart.js +0 -193
- package/dist/components/PieChart/PieChart.stories.js +0 -215
- package/dist/components/PieChart/PieChart.style.js +0 -154
- package/dist/components/PopupCharts/PopupCharts.js +0 -212
- package/dist/components/PopupCharts/PopupCharts.stories.js +0 -1196
- package/dist/components/PopupCharts/PopupCharts.style.js +0 -108
- package/dist/components/ProductsVariety/ProductsVariety.js +0 -106
- package/dist/components/ProductsVariety/ProductsVariety.stories.js +0 -90
- package/dist/components/ProductsVariety/ProductsVariety.style.js +0 -86
- package/dist/components/ProgressBar/ProgressBar.js +0 -56
- package/dist/components/ProgressBar/ProgressBar.stories.js +0 -71
- package/dist/components/ProgressBar/ProgressBar.style.js +0 -24
- package/dist/components/QuarterPicker/QuarterPicker.js +0 -145
- package/dist/components/QuarterPicker/QuarterPicker.stories.js +0 -142
- package/dist/components/QuarterPicker/QuarterPicker.style.js +0 -104
- package/dist/components/QuarterPicker/QuarterPopupPicker.js +0 -196
- package/dist/components/QuickFilter/QuickFilter.js +0 -68
- package/dist/components/QuickFilter/QuickFilter.stories.js +0 -275
- package/dist/components/QuickFilter/QuickFilter.style.js +0 -21
- package/dist/components/QuickFilterDropdownMultiSelection/QuickFilterDropdownMultiSelection.js +0 -261
- package/dist/components/QuickFilterDropdownMultiSelection/QuickFilterDropdownMultiSelection.style.js +0 -188
- package/dist/components/QuickFilterDropdownSingle/QuickFilterDropdownSingle.js +0 -198
- package/dist/components/QuickFilterDropdownSingle/QuickFilterDropdownSingle.style.js +0 -133
- package/dist/components/RangePicker/RangeDatePicker.js +0 -229
- package/dist/components/RangePicker/RangePicker.js +0 -158
- package/dist/components/RangePicker/RangePicker.stories.js +0 -140
- package/dist/components/RangePicker/RangePicker.style.js +0 -109
- package/dist/components/ReportTable/ReportTable.js +0 -412
- package/dist/components/ReportTable/ReportTable.stories.js +0 -255
- package/dist/components/ReportTable/ReportTable.style.js +0 -304
- package/dist/components/SagButton/SagButton.js +0 -73
- package/dist/components/SagButton/SagButton.stories.js +0 -118
- package/dist/components/SagButton/SagButton.style.js +0 -47
- package/dist/components/SagIconButton/SagIconButton.js +0 -103
- package/dist/components/SagIconButton/SagIconButton.stories.js +0 -122
- package/dist/components/SagIconButton/SagIconButton.style.js +0 -30
- package/dist/components/SagInput/SagInput.js +0 -62
- package/dist/components/SagInput/SagInput.stories.js +0 -69
- package/dist/components/SagInput/SagInput.style.js +0 -41
- package/dist/components/SalesAndROI/SalesAndROI.js +0 -104
- package/dist/components/SalesAndROI/SalesAndROI.stories.js +0 -166
- package/dist/components/SalesAndROI/SalesAndROI.style.js +0 -111
- package/dist/components/SearchInput/SearchInput.js +0 -42
- package/dist/components/SearchInput/SearchInput.stories.js +0 -44
- package/dist/components/SearchInput/SearchInput.style.js +0 -37
- package/dist/components/SegmentedButton/SegmentedButton.js +0 -120
- package/dist/components/SegmentedButton/SegmentedButton.stories.js +0 -181
- package/dist/components/SegmentedButton/SegmentedButton.style.js +0 -97
- package/dist/components/Select/Select.js +0 -108
- package/dist/components/Select/Select.stories.js +0 -201
- package/dist/components/Select/Select.style.js +0 -101
- package/dist/components/SingleBarLineCharts/SingleBar.test.js +0 -68
- package/dist/components/SingleBarLineCharts/SingleBarLineCharts.js +0 -360
- package/dist/components/SingleBarLineCharts/SingleBarLineCharts.stories.js +0 -310
- package/dist/components/SingleBarLineCharts/SingleBarLineCharts.style.js +0 -101
- package/dist/components/TabMenu/TabMenu.js +0 -250
- package/dist/components/TabMenu/TabMenu.stories.js +0 -136
- package/dist/components/TabMenu/TabMenu.style.js +0 -121
- package/dist/components/TextField/TextField.js +0 -183
- package/dist/components/TextField/TextField.stories.js +0 -160
- package/dist/components/TextField/TextField.style.js +0 -18
- package/dist/components/TitleDescription/TitleDescription.js +0 -305
- package/dist/components/TitleDescription/TitleDescription.stories.js +0 -116
- package/dist/components/TitleDescription/TitleDescription.style.js +0 -222
- package/dist/components/Tooltip/Tooltip.js +0 -55
- package/dist/components/Tooltip/Tooltip.style.js +0 -103
- package/dist/components/TopToggleList/TopToggleList.js +0 -57
- package/dist/components/TopToggleList/TopToggleList.stories.js +0 -52
- package/dist/components/TopToggleList/TopToggleList.style.js +0 -51
- package/dist/components/TotalBenchmark/TotalBenchmark.js +0 -96
- package/dist/components/TotalBenchmark/TotalBenchmark.stories.js +0 -135
- package/dist/components/TotalBenchmark/TotalBenchmark.style.js +0 -79
- package/dist/components/TotalBenchmarkAreachart/TotalBenchmarkAreachart.js +0 -311
- package/dist/components/TotalBenchmarkAreachart/TotalBenchmarkAreachart.stories.js +0 -341
- package/dist/components/TotalBenchmarkAreachart/TotalBenchmarkAreachart.style.js +0 -171
- package/dist/components/TotalBenchmarkArrows/TotalBenchmarkArrows.js +0 -149
- package/dist/components/TotalBenchmarkArrows/TotalBenchmarkArrows.stories.js +0 -170
- package/dist/components/TotalBenchmarkArrows/TotalBenchmarkArrows.style.js +0 -108
- package/dist/components/TotalBenchmarkBarchart/TotalBenchmarkBarchart.js +0 -162
- package/dist/components/TotalBenchmarkBarchart/TotalBenchmarkBarchart.stories.js +0 -183
- package/dist/components/TotalBenchmarkBarchart/TotalBenchmarkBarchart.style.js +0 -77
- package/dist/components/TotalDoughnutChart/TotalDoughnutChart.js +0 -228
- package/dist/components/TotalDoughnutChart/TotalDoughnutChart.stories.js +0 -301
- package/dist/components/TotalDoughnutChart/TotalDoughnutChart.style.js +0 -178
- package/dist/components/TotalHorizontalCharts/TotalHorizontalCharts.js +0 -218
- package/dist/components/TotalHorizontalCharts/TotalHorizontalCharts.stories.js +0 -291
- package/dist/components/TotalHorizontalCharts/TotalHorizontalCharts.style.js +0 -93
- package/dist/components/TspanTooltip/TspanTooltip.js +0 -41
- package/dist/components/TspanTooltip/TspanTooltip.style.js +0 -105
- package/dist/components/TwoBarCharts/TwoBarCharts.js +0 -211
- package/dist/components/TwoBarCharts/TwoBarCharts.stories.js +0 -185
- package/dist/components/TwoBarCharts/TwoBarCharts.style.js +0 -60
- package/dist/icons/ArrowDownIcon.js +0 -17
- package/dist/icons/ArrowDropDownIcon.js +0 -19
- package/dist/icons/ArrowSelectIcon.js +0 -18
- package/dist/icons/ArrowUpIcon.js +0 -17
- package/dist/icons/AttachedIcon.js +0 -17
- package/dist/icons/BellIcon.js +0 -17
- package/dist/icons/ButtonArrowRight.js +0 -18
- package/dist/icons/Calendar.js +0 -13
- package/dist/icons/CalendarIcon.js +0 -19
- package/dist/icons/CalendarInOpen.js +0 -14
- package/dist/icons/CheckBoxButtonCheckedIcon.js +0 -20
- package/dist/icons/CheckBoxCheckedIcon.js +0 -20
- package/dist/icons/CheckBoxNotCheckedIcon.js +0 -20
- package/dist/icons/ChervronLeftIcon.js +0 -13
- package/dist/icons/ChervronRightIcon.js +0 -13
- package/dist/icons/ChevronLeftIcon.js +0 -20
- package/dist/icons/ChevronRightIcon.js +0 -20
- package/dist/icons/ClockIcon.js +0 -19
- package/dist/icons/CloseIcon.js +0 -17
- package/dist/icons/CloseXIcon.js +0 -17
- package/dist/icons/ComboBoxArrowDownIcon.js +0 -20
- package/dist/icons/ComboBoxArrowUpIcon.js +0 -18
- package/dist/icons/DocumentIcon.js +0 -22
- package/dist/icons/DownloadIcon.js +0 -17
- package/dist/icons/Duplicate.js +0 -18
- package/dist/icons/ErrorIcon.js +0 -18
- package/dist/icons/ExitIcon.js +0 -18
- package/dist/icons/ExportIcon.js +0 -18
- package/dist/icons/EyeIcon.js +0 -18
- package/dist/icons/FileIcon.js +0 -17
- package/dist/icons/FilterIcon.js +0 -20
- package/dist/icons/FlyIcon.js +0 -20
- package/dist/icons/FoodLionChartIcon.js +0 -22
- package/dist/icons/FoodLionIcon.js +0 -1042
- package/dist/icons/FoodLionNewIcon.js +0 -22
- package/dist/icons/GiantFoodChartIcon.js +0 -20
- package/dist/icons/GiantFoodIcon.js +0 -673
- package/dist/icons/GiantFoodIcon_new.js +0 -24
- package/dist/icons/HannafordChartIcon.js +0 -20
- package/dist/icons/HannafordIcon.js +0 -1686
- package/dist/icons/HannafordIcon_new.js +0 -23
- package/dist/icons/HannafordNewIcon.js +0 -204
- package/dist/icons/InfoIcon.js +0 -18
- package/dist/icons/LampIcon.js +0 -20
- package/dist/icons/LegendLineIcon.js +0 -17
- package/dist/icons/LegendUnionIcon.js +0 -17
- package/dist/icons/MaintenanceIcon.js +0 -20
- package/dist/icons/MenuItemClosedIcon.js +0 -20
- package/dist/icons/MenuItemOpenIcon.js +0 -18
- package/dist/icons/MenuItemRightIcon.js +0 -18
- package/dist/icons/MenuItemUpIcon.js +0 -18
- package/dist/icons/NoDataFoundIcon.js +0 -32
- package/dist/icons/OptionsIcon.js +0 -17
- package/dist/icons/ReselectIcon.js +0 -17
- package/dist/icons/SearchIcon.js +0 -17
- package/dist/icons/ShoppingCartIcon.js +0 -25
- package/dist/icons/ShoutIcon.js +0 -17
- package/dist/icons/Sort.js +0 -5
- package/dist/icons/SortIcon.js +0 -23
- package/dist/icons/SpotlightProductIcon.js +0 -18
- package/dist/icons/StopAndShopChartIcon.js +0 -22
- package/dist/icons/StopAndShopIcon.js +0 -61
- package/dist/icons/StopAndShopNewIcon.js +0 -23
- package/dist/icons/SucceededIcon.js +0 -18
- package/dist/icons/TheGiantCompanyChartIcon.js +0 -20
- package/dist/icons/TheGiantCompanyIcon.js +0 -22
- package/dist/icons/TheGiantCompanyNewIcon.js +0 -23
- package/dist/reactTestApp/index.js +0 -17
- package/dist/reactTestApp/vite.config.js +0 -15
- package/dist/utils/CommonFunctions.js +0 -95
- package/dist/utils/ComponentFactory.js +0 -64
- package/dist/utils/IconsHandler.js +0 -70
- package/dist/utils/IconsHandler.style.js +0 -16
- package/dist/utils/regex/Email.regex.js +0 -7
- package/dist/utils/regex/LatinWithSpaces.regex.js +0 -7
- package/dist/utils/regex/OnlyEnglishLetters.regex.js +0 -7
- package/dist/utils/regex/Phone.regex.js +0 -7
- package/favicon.ico +0 -0
- package/index.html +0 -65
- package/manifest.json +0 -25
- package/robots.txt +0 -3
package/dist/index.js
ADDED
|
@@ -0,0 +1,3357 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
|
|
7
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
|
+
|
|
9
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
10
|
+
|
|
11
|
+
var reactIs = {exports: {}};
|
|
12
|
+
|
|
13
|
+
var reactIs_production_min = {};
|
|
14
|
+
|
|
15
|
+
/** @license React v16.13.1
|
|
16
|
+
* react-is.production.min.js
|
|
17
|
+
*
|
|
18
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
19
|
+
*
|
|
20
|
+
* This source code is licensed under the MIT license found in the
|
|
21
|
+
* LICENSE file in the root directory of this source tree.
|
|
22
|
+
*/
|
|
23
|
+
var hasRequiredReactIs_production_min;
|
|
24
|
+
function requireReactIs_production_min() {
|
|
25
|
+
if (hasRequiredReactIs_production_min) return reactIs_production_min;
|
|
26
|
+
hasRequiredReactIs_production_min = 1;
|
|
27
|
+
var b = "function" === typeof Symbol && Symbol.for,
|
|
28
|
+
c = b ? Symbol.for("react.element") : 60103,
|
|
29
|
+
d = b ? Symbol.for("react.portal") : 60106,
|
|
30
|
+
e = b ? Symbol.for("react.fragment") : 60107,
|
|
31
|
+
f = b ? Symbol.for("react.strict_mode") : 60108,
|
|
32
|
+
g = b ? Symbol.for("react.profiler") : 60114,
|
|
33
|
+
h = b ? Symbol.for("react.provider") : 60109,
|
|
34
|
+
k = b ? Symbol.for("react.context") : 60110,
|
|
35
|
+
l = b ? Symbol.for("react.async_mode") : 60111,
|
|
36
|
+
m = b ? Symbol.for("react.concurrent_mode") : 60111,
|
|
37
|
+
n = b ? Symbol.for("react.forward_ref") : 60112,
|
|
38
|
+
p = b ? Symbol.for("react.suspense") : 60113,
|
|
39
|
+
q = b ? Symbol.for("react.suspense_list") : 60120,
|
|
40
|
+
r = b ? Symbol.for("react.memo") : 60115,
|
|
41
|
+
t = b ? Symbol.for("react.lazy") : 60116,
|
|
42
|
+
v = b ? Symbol.for("react.block") : 60121,
|
|
43
|
+
w = b ? Symbol.for("react.fundamental") : 60117,
|
|
44
|
+
x = b ? Symbol.for("react.responder") : 60118,
|
|
45
|
+
y = b ? Symbol.for("react.scope") : 60119;
|
|
46
|
+
function z(a) {
|
|
47
|
+
if ("object" === typeof a && null !== a) {
|
|
48
|
+
var u = a.$$typeof;
|
|
49
|
+
switch (u) {
|
|
50
|
+
case c:
|
|
51
|
+
switch (a = a.type, a) {
|
|
52
|
+
case l:
|
|
53
|
+
case m:
|
|
54
|
+
case e:
|
|
55
|
+
case g:
|
|
56
|
+
case f:
|
|
57
|
+
case p:
|
|
58
|
+
return a;
|
|
59
|
+
default:
|
|
60
|
+
switch (a = a && a.$$typeof, a) {
|
|
61
|
+
case k:
|
|
62
|
+
case n:
|
|
63
|
+
case t:
|
|
64
|
+
case r:
|
|
65
|
+
case h:
|
|
66
|
+
return a;
|
|
67
|
+
default:
|
|
68
|
+
return u;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
case d:
|
|
72
|
+
return u;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
function A(a) {
|
|
77
|
+
return z(a) === m;
|
|
78
|
+
}
|
|
79
|
+
reactIs_production_min.AsyncMode = l;
|
|
80
|
+
reactIs_production_min.ConcurrentMode = m;
|
|
81
|
+
reactIs_production_min.ContextConsumer = k;
|
|
82
|
+
reactIs_production_min.ContextProvider = h;
|
|
83
|
+
reactIs_production_min.Element = c;
|
|
84
|
+
reactIs_production_min.ForwardRef = n;
|
|
85
|
+
reactIs_production_min.Fragment = e;
|
|
86
|
+
reactIs_production_min.Lazy = t;
|
|
87
|
+
reactIs_production_min.Memo = r;
|
|
88
|
+
reactIs_production_min.Portal = d;
|
|
89
|
+
reactIs_production_min.Profiler = g;
|
|
90
|
+
reactIs_production_min.StrictMode = f;
|
|
91
|
+
reactIs_production_min.Suspense = p;
|
|
92
|
+
reactIs_production_min.isAsyncMode = function (a) {
|
|
93
|
+
return A(a) || z(a) === l;
|
|
94
|
+
};
|
|
95
|
+
reactIs_production_min.isConcurrentMode = A;
|
|
96
|
+
reactIs_production_min.isContextConsumer = function (a) {
|
|
97
|
+
return z(a) === k;
|
|
98
|
+
};
|
|
99
|
+
reactIs_production_min.isContextProvider = function (a) {
|
|
100
|
+
return z(a) === h;
|
|
101
|
+
};
|
|
102
|
+
reactIs_production_min.isElement = function (a) {
|
|
103
|
+
return "object" === typeof a && null !== a && a.$$typeof === c;
|
|
104
|
+
};
|
|
105
|
+
reactIs_production_min.isForwardRef = function (a) {
|
|
106
|
+
return z(a) === n;
|
|
107
|
+
};
|
|
108
|
+
reactIs_production_min.isFragment = function (a) {
|
|
109
|
+
return z(a) === e;
|
|
110
|
+
};
|
|
111
|
+
reactIs_production_min.isLazy = function (a) {
|
|
112
|
+
return z(a) === t;
|
|
113
|
+
};
|
|
114
|
+
reactIs_production_min.isMemo = function (a) {
|
|
115
|
+
return z(a) === r;
|
|
116
|
+
};
|
|
117
|
+
reactIs_production_min.isPortal = function (a) {
|
|
118
|
+
return z(a) === d;
|
|
119
|
+
};
|
|
120
|
+
reactIs_production_min.isProfiler = function (a) {
|
|
121
|
+
return z(a) === g;
|
|
122
|
+
};
|
|
123
|
+
reactIs_production_min.isStrictMode = function (a) {
|
|
124
|
+
return z(a) === f;
|
|
125
|
+
};
|
|
126
|
+
reactIs_production_min.isSuspense = function (a) {
|
|
127
|
+
return z(a) === p;
|
|
128
|
+
};
|
|
129
|
+
reactIs_production_min.isValidElementType = function (a) {
|
|
130
|
+
return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
|
|
131
|
+
};
|
|
132
|
+
reactIs_production_min.typeOf = z;
|
|
133
|
+
return reactIs_production_min;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
var reactIs_development = {};
|
|
137
|
+
|
|
138
|
+
/** @license React v16.13.1
|
|
139
|
+
* react-is.development.js
|
|
140
|
+
*
|
|
141
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
142
|
+
*
|
|
143
|
+
* This source code is licensed under the MIT license found in the
|
|
144
|
+
* LICENSE file in the root directory of this source tree.
|
|
145
|
+
*/
|
|
146
|
+
var hasRequiredReactIs_development;
|
|
147
|
+
function requireReactIs_development() {
|
|
148
|
+
if (hasRequiredReactIs_development) return reactIs_development;
|
|
149
|
+
hasRequiredReactIs_development = 1;
|
|
150
|
+
if (process.env.NODE_ENV !== "production") {
|
|
151
|
+
(function () {
|
|
152
|
+
|
|
153
|
+
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
154
|
+
// nor polyfill, then a plain number is used for performance.
|
|
155
|
+
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
156
|
+
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
157
|
+
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
158
|
+
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
159
|
+
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
160
|
+
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
161
|
+
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
162
|
+
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
|
|
163
|
+
// (unstable) APIs that have been removed. Can we remove the symbols?
|
|
164
|
+
|
|
165
|
+
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
166
|
+
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
167
|
+
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
168
|
+
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
169
|
+
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
170
|
+
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
171
|
+
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
172
|
+
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
|
173
|
+
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
174
|
+
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
175
|
+
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
176
|
+
function isValidElementType(type) {
|
|
177
|
+
return typeof type === 'string' || typeof type === 'function' ||
|
|
178
|
+
// Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
179
|
+
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
|
180
|
+
}
|
|
181
|
+
function typeOf(object) {
|
|
182
|
+
if (typeof object === 'object' && object !== null) {
|
|
183
|
+
var $$typeof = object.$$typeof;
|
|
184
|
+
switch ($$typeof) {
|
|
185
|
+
case REACT_ELEMENT_TYPE:
|
|
186
|
+
var type = object.type;
|
|
187
|
+
switch (type) {
|
|
188
|
+
case REACT_ASYNC_MODE_TYPE:
|
|
189
|
+
case REACT_CONCURRENT_MODE_TYPE:
|
|
190
|
+
case REACT_FRAGMENT_TYPE:
|
|
191
|
+
case REACT_PROFILER_TYPE:
|
|
192
|
+
case REACT_STRICT_MODE_TYPE:
|
|
193
|
+
case REACT_SUSPENSE_TYPE:
|
|
194
|
+
return type;
|
|
195
|
+
default:
|
|
196
|
+
var $$typeofType = type && type.$$typeof;
|
|
197
|
+
switch ($$typeofType) {
|
|
198
|
+
case REACT_CONTEXT_TYPE:
|
|
199
|
+
case REACT_FORWARD_REF_TYPE:
|
|
200
|
+
case REACT_LAZY_TYPE:
|
|
201
|
+
case REACT_MEMO_TYPE:
|
|
202
|
+
case REACT_PROVIDER_TYPE:
|
|
203
|
+
return $$typeofType;
|
|
204
|
+
default:
|
|
205
|
+
return $$typeof;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
case REACT_PORTAL_TYPE:
|
|
209
|
+
return $$typeof;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
return undefined;
|
|
213
|
+
} // AsyncMode is deprecated along with isAsyncMode
|
|
214
|
+
|
|
215
|
+
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
216
|
+
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
217
|
+
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
218
|
+
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
219
|
+
var Element = REACT_ELEMENT_TYPE;
|
|
220
|
+
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
221
|
+
var Fragment = REACT_FRAGMENT_TYPE;
|
|
222
|
+
var Lazy = REACT_LAZY_TYPE;
|
|
223
|
+
var Memo = REACT_MEMO_TYPE;
|
|
224
|
+
var Portal = REACT_PORTAL_TYPE;
|
|
225
|
+
var Profiler = REACT_PROFILER_TYPE;
|
|
226
|
+
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
227
|
+
var Suspense = REACT_SUSPENSE_TYPE;
|
|
228
|
+
var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
|
|
229
|
+
|
|
230
|
+
function isAsyncMode(object) {
|
|
231
|
+
{
|
|
232
|
+
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
233
|
+
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
234
|
+
|
|
235
|
+
console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
239
|
+
}
|
|
240
|
+
function isConcurrentMode(object) {
|
|
241
|
+
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
242
|
+
}
|
|
243
|
+
function isContextConsumer(object) {
|
|
244
|
+
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
245
|
+
}
|
|
246
|
+
function isContextProvider(object) {
|
|
247
|
+
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
248
|
+
}
|
|
249
|
+
function isElement(object) {
|
|
250
|
+
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
251
|
+
}
|
|
252
|
+
function isForwardRef(object) {
|
|
253
|
+
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
254
|
+
}
|
|
255
|
+
function isFragment(object) {
|
|
256
|
+
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
257
|
+
}
|
|
258
|
+
function isLazy(object) {
|
|
259
|
+
return typeOf(object) === REACT_LAZY_TYPE;
|
|
260
|
+
}
|
|
261
|
+
function isMemo(object) {
|
|
262
|
+
return typeOf(object) === REACT_MEMO_TYPE;
|
|
263
|
+
}
|
|
264
|
+
function isPortal(object) {
|
|
265
|
+
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
266
|
+
}
|
|
267
|
+
function isProfiler(object) {
|
|
268
|
+
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
269
|
+
}
|
|
270
|
+
function isStrictMode(object) {
|
|
271
|
+
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
272
|
+
}
|
|
273
|
+
function isSuspense(object) {
|
|
274
|
+
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
275
|
+
}
|
|
276
|
+
reactIs_development.AsyncMode = AsyncMode;
|
|
277
|
+
reactIs_development.ConcurrentMode = ConcurrentMode;
|
|
278
|
+
reactIs_development.ContextConsumer = ContextConsumer;
|
|
279
|
+
reactIs_development.ContextProvider = ContextProvider;
|
|
280
|
+
reactIs_development.Element = Element;
|
|
281
|
+
reactIs_development.ForwardRef = ForwardRef;
|
|
282
|
+
reactIs_development.Fragment = Fragment;
|
|
283
|
+
reactIs_development.Lazy = Lazy;
|
|
284
|
+
reactIs_development.Memo = Memo;
|
|
285
|
+
reactIs_development.Portal = Portal;
|
|
286
|
+
reactIs_development.Profiler = Profiler;
|
|
287
|
+
reactIs_development.StrictMode = StrictMode;
|
|
288
|
+
reactIs_development.Suspense = Suspense;
|
|
289
|
+
reactIs_development.isAsyncMode = isAsyncMode;
|
|
290
|
+
reactIs_development.isConcurrentMode = isConcurrentMode;
|
|
291
|
+
reactIs_development.isContextConsumer = isContextConsumer;
|
|
292
|
+
reactIs_development.isContextProvider = isContextProvider;
|
|
293
|
+
reactIs_development.isElement = isElement;
|
|
294
|
+
reactIs_development.isForwardRef = isForwardRef;
|
|
295
|
+
reactIs_development.isFragment = isFragment;
|
|
296
|
+
reactIs_development.isLazy = isLazy;
|
|
297
|
+
reactIs_development.isMemo = isMemo;
|
|
298
|
+
reactIs_development.isPortal = isPortal;
|
|
299
|
+
reactIs_development.isProfiler = isProfiler;
|
|
300
|
+
reactIs_development.isStrictMode = isStrictMode;
|
|
301
|
+
reactIs_development.isSuspense = isSuspense;
|
|
302
|
+
reactIs_development.isValidElementType = isValidElementType;
|
|
303
|
+
reactIs_development.typeOf = typeOf;
|
|
304
|
+
})();
|
|
305
|
+
}
|
|
306
|
+
return reactIs_development;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
var hasRequiredReactIs;
|
|
310
|
+
function requireReactIs() {
|
|
311
|
+
if (hasRequiredReactIs) return reactIs.exports;
|
|
312
|
+
hasRequiredReactIs = 1;
|
|
313
|
+
if (process.env.NODE_ENV === 'production') {
|
|
314
|
+
reactIs.exports = requireReactIs_production_min();
|
|
315
|
+
} else {
|
|
316
|
+
reactIs.exports = requireReactIs_development();
|
|
317
|
+
}
|
|
318
|
+
return reactIs.exports;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
/*
|
|
322
|
+
object-assign
|
|
323
|
+
(c) Sindre Sorhus
|
|
324
|
+
@license MIT
|
|
325
|
+
*/
|
|
326
|
+
var objectAssign;
|
|
327
|
+
var hasRequiredObjectAssign;
|
|
328
|
+
function requireObjectAssign() {
|
|
329
|
+
if (hasRequiredObjectAssign) return objectAssign;
|
|
330
|
+
hasRequiredObjectAssign = 1;
|
|
331
|
+
/* eslint-disable no-unused-vars */
|
|
332
|
+
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
333
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
334
|
+
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
335
|
+
function toObject(val) {
|
|
336
|
+
if (val === null || val === undefined) {
|
|
337
|
+
throw new TypeError('Object.assign cannot be called with null or undefined');
|
|
338
|
+
}
|
|
339
|
+
return Object(val);
|
|
340
|
+
}
|
|
341
|
+
function shouldUseNative() {
|
|
342
|
+
try {
|
|
343
|
+
if (!Object.assign) {
|
|
344
|
+
return false;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
// Detect buggy property enumeration order in older V8 versions.
|
|
348
|
+
|
|
349
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=4118
|
|
350
|
+
var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
|
|
351
|
+
test1[5] = 'de';
|
|
352
|
+
if (Object.getOwnPropertyNames(test1)[0] === '5') {
|
|
353
|
+
return false;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
357
|
+
var test2 = {};
|
|
358
|
+
for (var i = 0; i < 10; i++) {
|
|
359
|
+
test2['_' + String.fromCharCode(i)] = i;
|
|
360
|
+
}
|
|
361
|
+
var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
|
|
362
|
+
return test2[n];
|
|
363
|
+
});
|
|
364
|
+
if (order2.join('') !== '0123456789') {
|
|
365
|
+
return false;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
369
|
+
var test3 = {};
|
|
370
|
+
'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
|
|
371
|
+
test3[letter] = letter;
|
|
372
|
+
});
|
|
373
|
+
if (Object.keys(Object.assign({}, test3)).join('') !== 'abcdefghijklmnopqrst') {
|
|
374
|
+
return false;
|
|
375
|
+
}
|
|
376
|
+
return true;
|
|
377
|
+
} catch (err) {
|
|
378
|
+
// We don't expect any of the above to throw, but better to be safe.
|
|
379
|
+
return false;
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
|
|
383
|
+
var from;
|
|
384
|
+
var to = toObject(target);
|
|
385
|
+
var symbols;
|
|
386
|
+
for (var s = 1; s < arguments.length; s++) {
|
|
387
|
+
from = Object(arguments[s]);
|
|
388
|
+
for (var key in from) {
|
|
389
|
+
if (hasOwnProperty.call(from, key)) {
|
|
390
|
+
to[key] = from[key];
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
if (getOwnPropertySymbols) {
|
|
394
|
+
symbols = getOwnPropertySymbols(from);
|
|
395
|
+
for (var i = 0; i < symbols.length; i++) {
|
|
396
|
+
if (propIsEnumerable.call(from, symbols[i])) {
|
|
397
|
+
to[symbols[i]] = from[symbols[i]];
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
return to;
|
|
403
|
+
};
|
|
404
|
+
return objectAssign;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
/**
|
|
408
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
409
|
+
*
|
|
410
|
+
* This source code is licensed under the MIT license found in the
|
|
411
|
+
* LICENSE file in the root directory of this source tree.
|
|
412
|
+
*/
|
|
413
|
+
var ReactPropTypesSecret_1;
|
|
414
|
+
var hasRequiredReactPropTypesSecret;
|
|
415
|
+
function requireReactPropTypesSecret() {
|
|
416
|
+
if (hasRequiredReactPropTypesSecret) return ReactPropTypesSecret_1;
|
|
417
|
+
hasRequiredReactPropTypesSecret = 1;
|
|
418
|
+
var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
419
|
+
ReactPropTypesSecret_1 = ReactPropTypesSecret;
|
|
420
|
+
return ReactPropTypesSecret_1;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
var has;
|
|
424
|
+
var hasRequiredHas;
|
|
425
|
+
function requireHas() {
|
|
426
|
+
if (hasRequiredHas) return has;
|
|
427
|
+
hasRequiredHas = 1;
|
|
428
|
+
has = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
429
|
+
return has;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
434
|
+
*
|
|
435
|
+
* This source code is licensed under the MIT license found in the
|
|
436
|
+
* LICENSE file in the root directory of this source tree.
|
|
437
|
+
*/
|
|
438
|
+
var checkPropTypes_1;
|
|
439
|
+
var hasRequiredCheckPropTypes;
|
|
440
|
+
function requireCheckPropTypes() {
|
|
441
|
+
if (hasRequiredCheckPropTypes) return checkPropTypes_1;
|
|
442
|
+
hasRequiredCheckPropTypes = 1;
|
|
443
|
+
var printWarning = function () {};
|
|
444
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
445
|
+
var ReactPropTypesSecret = requireReactPropTypesSecret();
|
|
446
|
+
var loggedTypeFailures = {};
|
|
447
|
+
var has = requireHas();
|
|
448
|
+
printWarning = function (text) {
|
|
449
|
+
var message = 'Warning: ' + text;
|
|
450
|
+
if (typeof console !== 'undefined') {
|
|
451
|
+
console.error(message);
|
|
452
|
+
}
|
|
453
|
+
try {
|
|
454
|
+
// --- Welcome to debugging React ---
|
|
455
|
+
// This error was thrown as a convenience so that you can use this stack
|
|
456
|
+
// to find the callsite that caused this warning to fire.
|
|
457
|
+
throw new Error(message);
|
|
458
|
+
} catch (x) {/**/}
|
|
459
|
+
};
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
/**
|
|
463
|
+
* Assert that the values match with the type specs.
|
|
464
|
+
* Error messages are memorized and will only be shown once.
|
|
465
|
+
*
|
|
466
|
+
* @param {object} typeSpecs Map of name to a ReactPropType
|
|
467
|
+
* @param {object} values Runtime values that need to be type-checked
|
|
468
|
+
* @param {string} location e.g. "prop", "context", "child context"
|
|
469
|
+
* @param {string} componentName Name of the component for error messages.
|
|
470
|
+
* @param {?Function} getStack Returns the component stack.
|
|
471
|
+
* @private
|
|
472
|
+
*/
|
|
473
|
+
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
474
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
475
|
+
for (var typeSpecName in typeSpecs) {
|
|
476
|
+
if (has(typeSpecs, typeSpecName)) {
|
|
477
|
+
var error;
|
|
478
|
+
// Prop type validation may throw. In case they do, we don't want to
|
|
479
|
+
// fail the render phase where it didn't fail before. So we log it.
|
|
480
|
+
// After these have been cleaned up, we'll let them throw.
|
|
481
|
+
try {
|
|
482
|
+
// This is intentionally an invariant that gets caught. It's the same
|
|
483
|
+
// behavior as without this statement except with a better message.
|
|
484
|
+
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
|
485
|
+
var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
|
|
486
|
+
err.name = 'Invariant Violation';
|
|
487
|
+
throw err;
|
|
488
|
+
}
|
|
489
|
+
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
|
|
490
|
+
} catch (ex) {
|
|
491
|
+
error = ex;
|
|
492
|
+
}
|
|
493
|
+
if (error && !(error instanceof Error)) {
|
|
494
|
+
printWarning((componentName || 'React class') + ': type specification of ' + location + ' `' + typeSpecName + '` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).');
|
|
495
|
+
}
|
|
496
|
+
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
|
497
|
+
// Only monitor this failure once because there tends to be a lot of the
|
|
498
|
+
// same error.
|
|
499
|
+
loggedTypeFailures[error.message] = true;
|
|
500
|
+
var stack = getStack ? getStack() : '';
|
|
501
|
+
printWarning('Failed ' + location + ' type: ' + error.message + (stack != null ? stack : ''));
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
/**
|
|
509
|
+
* Resets warning cache when testing.
|
|
510
|
+
*
|
|
511
|
+
* @private
|
|
512
|
+
*/
|
|
513
|
+
checkPropTypes.resetWarningCache = function () {
|
|
514
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
515
|
+
loggedTypeFailures = {};
|
|
516
|
+
}
|
|
517
|
+
};
|
|
518
|
+
checkPropTypes_1 = checkPropTypes;
|
|
519
|
+
return checkPropTypes_1;
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
/**
|
|
523
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
524
|
+
*
|
|
525
|
+
* This source code is licensed under the MIT license found in the
|
|
526
|
+
* LICENSE file in the root directory of this source tree.
|
|
527
|
+
*/
|
|
528
|
+
var factoryWithTypeCheckers;
|
|
529
|
+
var hasRequiredFactoryWithTypeCheckers;
|
|
530
|
+
function requireFactoryWithTypeCheckers() {
|
|
531
|
+
if (hasRequiredFactoryWithTypeCheckers) return factoryWithTypeCheckers;
|
|
532
|
+
hasRequiredFactoryWithTypeCheckers = 1;
|
|
533
|
+
var ReactIs = requireReactIs();
|
|
534
|
+
var assign = requireObjectAssign();
|
|
535
|
+
var ReactPropTypesSecret = requireReactPropTypesSecret();
|
|
536
|
+
var has = requireHas();
|
|
537
|
+
var checkPropTypes = requireCheckPropTypes();
|
|
538
|
+
var printWarning = function () {};
|
|
539
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
540
|
+
printWarning = function (text) {
|
|
541
|
+
var message = 'Warning: ' + text;
|
|
542
|
+
if (typeof console !== 'undefined') {
|
|
543
|
+
console.error(message);
|
|
544
|
+
}
|
|
545
|
+
try {
|
|
546
|
+
// --- Welcome to debugging React ---
|
|
547
|
+
// This error was thrown as a convenience so that you can use this stack
|
|
548
|
+
// to find the callsite that caused this warning to fire.
|
|
549
|
+
throw new Error(message);
|
|
550
|
+
} catch (x) {}
|
|
551
|
+
};
|
|
552
|
+
}
|
|
553
|
+
function emptyFunctionThatReturnsNull() {
|
|
554
|
+
return null;
|
|
555
|
+
}
|
|
556
|
+
factoryWithTypeCheckers = function (isValidElement, throwOnDirectAccess) {
|
|
557
|
+
/* global Symbol */
|
|
558
|
+
var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
|
559
|
+
var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
|
|
560
|
+
|
|
561
|
+
/**
|
|
562
|
+
* Returns the iterator method function contained on the iterable object.
|
|
563
|
+
*
|
|
564
|
+
* Be sure to invoke the function with the iterable as context:
|
|
565
|
+
*
|
|
566
|
+
* var iteratorFn = getIteratorFn(myIterable);
|
|
567
|
+
* if (iteratorFn) {
|
|
568
|
+
* var iterator = iteratorFn.call(myIterable);
|
|
569
|
+
* ...
|
|
570
|
+
* }
|
|
571
|
+
*
|
|
572
|
+
* @param {?object} maybeIterable
|
|
573
|
+
* @return {?function}
|
|
574
|
+
*/
|
|
575
|
+
function getIteratorFn(maybeIterable) {
|
|
576
|
+
var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
|
|
577
|
+
if (typeof iteratorFn === 'function') {
|
|
578
|
+
return iteratorFn;
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
/**
|
|
583
|
+
* Collection of methods that allow declaration and validation of props that are
|
|
584
|
+
* supplied to React components. Example usage:
|
|
585
|
+
*
|
|
586
|
+
* var Props = require('ReactPropTypes');
|
|
587
|
+
* var MyArticle = React.createClass({
|
|
588
|
+
* propTypes: {
|
|
589
|
+
* // An optional string prop named "description".
|
|
590
|
+
* description: Props.string,
|
|
591
|
+
*
|
|
592
|
+
* // A required enum prop named "category".
|
|
593
|
+
* category: Props.oneOf(['News','Photos']).isRequired,
|
|
594
|
+
*
|
|
595
|
+
* // A prop named "dialog" that requires an instance of Dialog.
|
|
596
|
+
* dialog: Props.instanceOf(Dialog).isRequired
|
|
597
|
+
* },
|
|
598
|
+
* render: function() { ... }
|
|
599
|
+
* });
|
|
600
|
+
*
|
|
601
|
+
* A more formal specification of how these methods are used:
|
|
602
|
+
*
|
|
603
|
+
* type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
|
|
604
|
+
* decl := ReactPropTypes.{type}(.isRequired)?
|
|
605
|
+
*
|
|
606
|
+
* Each and every declaration produces a function with the same signature. This
|
|
607
|
+
* allows the creation of custom validation functions. For example:
|
|
608
|
+
*
|
|
609
|
+
* var MyLink = React.createClass({
|
|
610
|
+
* propTypes: {
|
|
611
|
+
* // An optional string or URI prop named "href".
|
|
612
|
+
* href: function(props, propName, componentName) {
|
|
613
|
+
* var propValue = props[propName];
|
|
614
|
+
* if (propValue != null && typeof propValue !== 'string' &&
|
|
615
|
+
* !(propValue instanceof URI)) {
|
|
616
|
+
* return new Error(
|
|
617
|
+
* 'Expected a string or an URI for ' + propName + ' in ' +
|
|
618
|
+
* componentName
|
|
619
|
+
* );
|
|
620
|
+
* }
|
|
621
|
+
* }
|
|
622
|
+
* },
|
|
623
|
+
* render: function() {...}
|
|
624
|
+
* });
|
|
625
|
+
*
|
|
626
|
+
* @internal
|
|
627
|
+
*/
|
|
628
|
+
|
|
629
|
+
var ANONYMOUS = '<<anonymous>>';
|
|
630
|
+
|
|
631
|
+
// Important!
|
|
632
|
+
// Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
|
|
633
|
+
var ReactPropTypes = {
|
|
634
|
+
array: createPrimitiveTypeChecker('array'),
|
|
635
|
+
bigint: createPrimitiveTypeChecker('bigint'),
|
|
636
|
+
bool: createPrimitiveTypeChecker('boolean'),
|
|
637
|
+
func: createPrimitiveTypeChecker('function'),
|
|
638
|
+
number: createPrimitiveTypeChecker('number'),
|
|
639
|
+
object: createPrimitiveTypeChecker('object'),
|
|
640
|
+
string: createPrimitiveTypeChecker('string'),
|
|
641
|
+
symbol: createPrimitiveTypeChecker('symbol'),
|
|
642
|
+
any: createAnyTypeChecker(),
|
|
643
|
+
arrayOf: createArrayOfTypeChecker,
|
|
644
|
+
element: createElementTypeChecker(),
|
|
645
|
+
elementType: createElementTypeTypeChecker(),
|
|
646
|
+
instanceOf: createInstanceTypeChecker,
|
|
647
|
+
node: createNodeChecker(),
|
|
648
|
+
objectOf: createObjectOfTypeChecker,
|
|
649
|
+
oneOf: createEnumTypeChecker,
|
|
650
|
+
oneOfType: createUnionTypeChecker,
|
|
651
|
+
shape: createShapeTypeChecker,
|
|
652
|
+
exact: createStrictShapeTypeChecker
|
|
653
|
+
};
|
|
654
|
+
|
|
655
|
+
/**
|
|
656
|
+
* inlined Object.is polyfill to avoid requiring consumers ship their own
|
|
657
|
+
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
|
|
658
|
+
*/
|
|
659
|
+
/*eslint-disable no-self-compare*/
|
|
660
|
+
function is(x, y) {
|
|
661
|
+
// SameValue algorithm
|
|
662
|
+
if (x === y) {
|
|
663
|
+
// Steps 1-5, 7-10
|
|
664
|
+
// Steps 6.b-6.e: +0 != -0
|
|
665
|
+
return x !== 0 || 1 / x === 1 / y;
|
|
666
|
+
} else {
|
|
667
|
+
// Step 6.a: NaN == NaN
|
|
668
|
+
return x !== x && y !== y;
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
/*eslint-enable no-self-compare*/
|
|
672
|
+
|
|
673
|
+
/**
|
|
674
|
+
* We use an Error-like object for backward compatibility as people may call
|
|
675
|
+
* PropTypes directly and inspect their output. However, we don't use real
|
|
676
|
+
* Errors anymore. We don't inspect their stack anyway, and creating them
|
|
677
|
+
* is prohibitively expensive if they are created too often, such as what
|
|
678
|
+
* happens in oneOfType() for any type before the one that matched.
|
|
679
|
+
*/
|
|
680
|
+
function PropTypeError(message, data) {
|
|
681
|
+
this.message = message;
|
|
682
|
+
this.data = data && typeof data === 'object' ? data : {};
|
|
683
|
+
this.stack = '';
|
|
684
|
+
}
|
|
685
|
+
// Make `instanceof Error` still work for returned errors.
|
|
686
|
+
PropTypeError.prototype = Error.prototype;
|
|
687
|
+
function createChainableTypeChecker(validate) {
|
|
688
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
689
|
+
var manualPropTypeCallCache = {};
|
|
690
|
+
var manualPropTypeWarningCount = 0;
|
|
691
|
+
}
|
|
692
|
+
function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
|
|
693
|
+
componentName = componentName || ANONYMOUS;
|
|
694
|
+
propFullName = propFullName || propName;
|
|
695
|
+
if (secret !== ReactPropTypesSecret) {
|
|
696
|
+
if (throwOnDirectAccess) {
|
|
697
|
+
// New behavior only for users of `prop-types` package
|
|
698
|
+
var err = new Error('Calling PropTypes validators directly is not supported by the `prop-types` package. ' + 'Use `PropTypes.checkPropTypes()` to call them. ' + 'Read more at http://fb.me/use-check-prop-types');
|
|
699
|
+
err.name = 'Invariant Violation';
|
|
700
|
+
throw err;
|
|
701
|
+
} else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
|
|
702
|
+
// Old behavior for people using React.PropTypes
|
|
703
|
+
var cacheKey = componentName + ':' + propName;
|
|
704
|
+
if (!manualPropTypeCallCache[cacheKey] &&
|
|
705
|
+
// Avoid spamming the console because they are often not actionable except for lib authors
|
|
706
|
+
manualPropTypeWarningCount < 3) {
|
|
707
|
+
printWarning('You are manually calling a React.PropTypes validation ' + 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' + 'and will throw in the standalone `prop-types` package. ' + 'You may be seeing this warning due to a third-party PropTypes ' + 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.');
|
|
708
|
+
manualPropTypeCallCache[cacheKey] = true;
|
|
709
|
+
manualPropTypeWarningCount++;
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
}
|
|
713
|
+
if (props[propName] == null) {
|
|
714
|
+
if (isRequired) {
|
|
715
|
+
if (props[propName] === null) {
|
|
716
|
+
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
|
|
717
|
+
}
|
|
718
|
+
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
|
|
719
|
+
}
|
|
720
|
+
return null;
|
|
721
|
+
} else {
|
|
722
|
+
return validate(props, propName, componentName, location, propFullName);
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
var chainedCheckType = checkType.bind(null, false);
|
|
726
|
+
chainedCheckType.isRequired = checkType.bind(null, true);
|
|
727
|
+
return chainedCheckType;
|
|
728
|
+
}
|
|
729
|
+
function createPrimitiveTypeChecker(expectedType) {
|
|
730
|
+
function validate(props, propName, componentName, location, propFullName, secret) {
|
|
731
|
+
var propValue = props[propName];
|
|
732
|
+
var propType = getPropType(propValue);
|
|
733
|
+
if (propType !== expectedType) {
|
|
734
|
+
// `propValue` being instance of, say, date/regexp, pass the 'object'
|
|
735
|
+
// check, but we can offer a more precise error message here rather than
|
|
736
|
+
// 'of type `object`'.
|
|
737
|
+
var preciseType = getPreciseType(propValue);
|
|
738
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'), {
|
|
739
|
+
expectedType: expectedType
|
|
740
|
+
});
|
|
741
|
+
}
|
|
742
|
+
return null;
|
|
743
|
+
}
|
|
744
|
+
return createChainableTypeChecker(validate);
|
|
745
|
+
}
|
|
746
|
+
function createAnyTypeChecker() {
|
|
747
|
+
return createChainableTypeChecker(emptyFunctionThatReturnsNull);
|
|
748
|
+
}
|
|
749
|
+
function createArrayOfTypeChecker(typeChecker) {
|
|
750
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
751
|
+
if (typeof typeChecker !== 'function') {
|
|
752
|
+
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
|
|
753
|
+
}
|
|
754
|
+
var propValue = props[propName];
|
|
755
|
+
if (!Array.isArray(propValue)) {
|
|
756
|
+
var propType = getPropType(propValue);
|
|
757
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
|
|
758
|
+
}
|
|
759
|
+
for (var i = 0; i < propValue.length; i++) {
|
|
760
|
+
var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
|
|
761
|
+
if (error instanceof Error) {
|
|
762
|
+
return error;
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
return null;
|
|
766
|
+
}
|
|
767
|
+
return createChainableTypeChecker(validate);
|
|
768
|
+
}
|
|
769
|
+
function createElementTypeChecker() {
|
|
770
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
771
|
+
var propValue = props[propName];
|
|
772
|
+
if (!isValidElement(propValue)) {
|
|
773
|
+
var propType = getPropType(propValue);
|
|
774
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
|
|
775
|
+
}
|
|
776
|
+
return null;
|
|
777
|
+
}
|
|
778
|
+
return createChainableTypeChecker(validate);
|
|
779
|
+
}
|
|
780
|
+
function createElementTypeTypeChecker() {
|
|
781
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
782
|
+
var propValue = props[propName];
|
|
783
|
+
if (!ReactIs.isValidElementType(propValue)) {
|
|
784
|
+
var propType = getPropType(propValue);
|
|
785
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
|
|
786
|
+
}
|
|
787
|
+
return null;
|
|
788
|
+
}
|
|
789
|
+
return createChainableTypeChecker(validate);
|
|
790
|
+
}
|
|
791
|
+
function createInstanceTypeChecker(expectedClass) {
|
|
792
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
793
|
+
if (!(props[propName] instanceof expectedClass)) {
|
|
794
|
+
var expectedClassName = expectedClass.name || ANONYMOUS;
|
|
795
|
+
var actualClassName = getClassName(props[propName]);
|
|
796
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
|
|
797
|
+
}
|
|
798
|
+
return null;
|
|
799
|
+
}
|
|
800
|
+
return createChainableTypeChecker(validate);
|
|
801
|
+
}
|
|
802
|
+
function createEnumTypeChecker(expectedValues) {
|
|
803
|
+
if (!Array.isArray(expectedValues)) {
|
|
804
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
805
|
+
if (arguments.length > 1) {
|
|
806
|
+
printWarning('Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' + 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).');
|
|
807
|
+
} else {
|
|
808
|
+
printWarning('Invalid argument supplied to oneOf, expected an array.');
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
return emptyFunctionThatReturnsNull;
|
|
812
|
+
}
|
|
813
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
814
|
+
var propValue = props[propName];
|
|
815
|
+
for (var i = 0; i < expectedValues.length; i++) {
|
|
816
|
+
if (is(propValue, expectedValues[i])) {
|
|
817
|
+
return null;
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
|
|
821
|
+
var type = getPreciseType(value);
|
|
822
|
+
if (type === 'symbol') {
|
|
823
|
+
return String(value);
|
|
824
|
+
}
|
|
825
|
+
return value;
|
|
826
|
+
});
|
|
827
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
|
|
828
|
+
}
|
|
829
|
+
return createChainableTypeChecker(validate);
|
|
830
|
+
}
|
|
831
|
+
function createObjectOfTypeChecker(typeChecker) {
|
|
832
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
833
|
+
if (typeof typeChecker !== 'function') {
|
|
834
|
+
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
|
|
835
|
+
}
|
|
836
|
+
var propValue = props[propName];
|
|
837
|
+
var propType = getPropType(propValue);
|
|
838
|
+
if (propType !== 'object') {
|
|
839
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
|
|
840
|
+
}
|
|
841
|
+
for (var key in propValue) {
|
|
842
|
+
if (has(propValue, key)) {
|
|
843
|
+
var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
844
|
+
if (error instanceof Error) {
|
|
845
|
+
return error;
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
return null;
|
|
850
|
+
}
|
|
851
|
+
return createChainableTypeChecker(validate);
|
|
852
|
+
}
|
|
853
|
+
function createUnionTypeChecker(arrayOfTypeCheckers) {
|
|
854
|
+
if (!Array.isArray(arrayOfTypeCheckers)) {
|
|
855
|
+
process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
|
|
856
|
+
return emptyFunctionThatReturnsNull;
|
|
857
|
+
}
|
|
858
|
+
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
859
|
+
var checker = arrayOfTypeCheckers[i];
|
|
860
|
+
if (typeof checker !== 'function') {
|
|
861
|
+
printWarning('Invalid argument supplied to oneOfType. Expected an array of check functions, but ' + 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.');
|
|
862
|
+
return emptyFunctionThatReturnsNull;
|
|
863
|
+
}
|
|
864
|
+
}
|
|
865
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
866
|
+
var expectedTypes = [];
|
|
867
|
+
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
868
|
+
var checker = arrayOfTypeCheckers[i];
|
|
869
|
+
var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
|
|
870
|
+
if (checkerResult == null) {
|
|
871
|
+
return null;
|
|
872
|
+
}
|
|
873
|
+
if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
|
|
874
|
+
expectedTypes.push(checkerResult.data.expectedType);
|
|
875
|
+
}
|
|
876
|
+
}
|
|
877
|
+
var expectedTypesMessage = expectedTypes.length > 0 ? ', expected one of type [' + expectedTypes.join(', ') + ']' : '';
|
|
878
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
|
|
879
|
+
}
|
|
880
|
+
return createChainableTypeChecker(validate);
|
|
881
|
+
}
|
|
882
|
+
function createNodeChecker() {
|
|
883
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
884
|
+
if (!isNode(props[propName])) {
|
|
885
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
|
|
886
|
+
}
|
|
887
|
+
return null;
|
|
888
|
+
}
|
|
889
|
+
return createChainableTypeChecker(validate);
|
|
890
|
+
}
|
|
891
|
+
function invalidValidatorError(componentName, location, propFullName, key, type) {
|
|
892
|
+
return new PropTypeError((componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.');
|
|
893
|
+
}
|
|
894
|
+
function createShapeTypeChecker(shapeTypes) {
|
|
895
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
896
|
+
var propValue = props[propName];
|
|
897
|
+
var propType = getPropType(propValue);
|
|
898
|
+
if (propType !== 'object') {
|
|
899
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
900
|
+
}
|
|
901
|
+
for (var key in shapeTypes) {
|
|
902
|
+
var checker = shapeTypes[key];
|
|
903
|
+
if (typeof checker !== 'function') {
|
|
904
|
+
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
905
|
+
}
|
|
906
|
+
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
907
|
+
if (error) {
|
|
908
|
+
return error;
|
|
909
|
+
}
|
|
910
|
+
}
|
|
911
|
+
return null;
|
|
912
|
+
}
|
|
913
|
+
return createChainableTypeChecker(validate);
|
|
914
|
+
}
|
|
915
|
+
function createStrictShapeTypeChecker(shapeTypes) {
|
|
916
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
917
|
+
var propValue = props[propName];
|
|
918
|
+
var propType = getPropType(propValue);
|
|
919
|
+
if (propType !== 'object') {
|
|
920
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
921
|
+
}
|
|
922
|
+
// We need to check all keys in case some are required but missing from props.
|
|
923
|
+
var allKeys = assign({}, props[propName], shapeTypes);
|
|
924
|
+
for (var key in allKeys) {
|
|
925
|
+
var checker = shapeTypes[key];
|
|
926
|
+
if (has(shapeTypes, key) && typeof checker !== 'function') {
|
|
927
|
+
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
928
|
+
}
|
|
929
|
+
if (!checker) {
|
|
930
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' + '\nBad object: ' + JSON.stringify(props[propName], null, ' ') + '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' '));
|
|
931
|
+
}
|
|
932
|
+
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
933
|
+
if (error) {
|
|
934
|
+
return error;
|
|
935
|
+
}
|
|
936
|
+
}
|
|
937
|
+
return null;
|
|
938
|
+
}
|
|
939
|
+
return createChainableTypeChecker(validate);
|
|
940
|
+
}
|
|
941
|
+
function isNode(propValue) {
|
|
942
|
+
switch (typeof propValue) {
|
|
943
|
+
case 'number':
|
|
944
|
+
case 'string':
|
|
945
|
+
case 'undefined':
|
|
946
|
+
return true;
|
|
947
|
+
case 'boolean':
|
|
948
|
+
return !propValue;
|
|
949
|
+
case 'object':
|
|
950
|
+
if (Array.isArray(propValue)) {
|
|
951
|
+
return propValue.every(isNode);
|
|
952
|
+
}
|
|
953
|
+
if (propValue === null || isValidElement(propValue)) {
|
|
954
|
+
return true;
|
|
955
|
+
}
|
|
956
|
+
var iteratorFn = getIteratorFn(propValue);
|
|
957
|
+
if (iteratorFn) {
|
|
958
|
+
var iterator = iteratorFn.call(propValue);
|
|
959
|
+
var step;
|
|
960
|
+
if (iteratorFn !== propValue.entries) {
|
|
961
|
+
while (!(step = iterator.next()).done) {
|
|
962
|
+
if (!isNode(step.value)) {
|
|
963
|
+
return false;
|
|
964
|
+
}
|
|
965
|
+
}
|
|
966
|
+
} else {
|
|
967
|
+
// Iterator will provide entry [k,v] tuples rather than values.
|
|
968
|
+
while (!(step = iterator.next()).done) {
|
|
969
|
+
var entry = step.value;
|
|
970
|
+
if (entry) {
|
|
971
|
+
if (!isNode(entry[1])) {
|
|
972
|
+
return false;
|
|
973
|
+
}
|
|
974
|
+
}
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
} else {
|
|
978
|
+
return false;
|
|
979
|
+
}
|
|
980
|
+
return true;
|
|
981
|
+
default:
|
|
982
|
+
return false;
|
|
983
|
+
}
|
|
984
|
+
}
|
|
985
|
+
function isSymbol(propType, propValue) {
|
|
986
|
+
// Native Symbol.
|
|
987
|
+
if (propType === 'symbol') {
|
|
988
|
+
return true;
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
// falsy value can't be a Symbol
|
|
992
|
+
if (!propValue) {
|
|
993
|
+
return false;
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
// 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
|
|
997
|
+
if (propValue['@@toStringTag'] === 'Symbol') {
|
|
998
|
+
return true;
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
// Fallback for non-spec compliant Symbols which are polyfilled.
|
|
1002
|
+
if (typeof Symbol === 'function' && propValue instanceof Symbol) {
|
|
1003
|
+
return true;
|
|
1004
|
+
}
|
|
1005
|
+
return false;
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
// Equivalent of `typeof` but with special handling for array and regexp.
|
|
1009
|
+
function getPropType(propValue) {
|
|
1010
|
+
var propType = typeof propValue;
|
|
1011
|
+
if (Array.isArray(propValue)) {
|
|
1012
|
+
return 'array';
|
|
1013
|
+
}
|
|
1014
|
+
if (propValue instanceof RegExp) {
|
|
1015
|
+
// Old webkits (at least until Android 4.0) return 'function' rather than
|
|
1016
|
+
// 'object' for typeof a RegExp. We'll normalize this here so that /bla/
|
|
1017
|
+
// passes PropTypes.object.
|
|
1018
|
+
return 'object';
|
|
1019
|
+
}
|
|
1020
|
+
if (isSymbol(propType, propValue)) {
|
|
1021
|
+
return 'symbol';
|
|
1022
|
+
}
|
|
1023
|
+
return propType;
|
|
1024
|
+
}
|
|
1025
|
+
|
|
1026
|
+
// This handles more types than `getPropType`. Only used for error messages.
|
|
1027
|
+
// See `createPrimitiveTypeChecker`.
|
|
1028
|
+
function getPreciseType(propValue) {
|
|
1029
|
+
if (typeof propValue === 'undefined' || propValue === null) {
|
|
1030
|
+
return '' + propValue;
|
|
1031
|
+
}
|
|
1032
|
+
var propType = getPropType(propValue);
|
|
1033
|
+
if (propType === 'object') {
|
|
1034
|
+
if (propValue instanceof Date) {
|
|
1035
|
+
return 'date';
|
|
1036
|
+
} else if (propValue instanceof RegExp) {
|
|
1037
|
+
return 'regexp';
|
|
1038
|
+
}
|
|
1039
|
+
}
|
|
1040
|
+
return propType;
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
// Returns a string that is postfixed to a warning about an invalid type.
|
|
1044
|
+
// For example, "undefined" or "of type array"
|
|
1045
|
+
function getPostfixForTypeWarning(value) {
|
|
1046
|
+
var type = getPreciseType(value);
|
|
1047
|
+
switch (type) {
|
|
1048
|
+
case 'array':
|
|
1049
|
+
case 'object':
|
|
1050
|
+
return 'an ' + type;
|
|
1051
|
+
case 'boolean':
|
|
1052
|
+
case 'date':
|
|
1053
|
+
case 'regexp':
|
|
1054
|
+
return 'a ' + type;
|
|
1055
|
+
default:
|
|
1056
|
+
return type;
|
|
1057
|
+
}
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1060
|
+
// Returns class name of the object, if any.
|
|
1061
|
+
function getClassName(propValue) {
|
|
1062
|
+
if (!propValue.constructor || !propValue.constructor.name) {
|
|
1063
|
+
return ANONYMOUS;
|
|
1064
|
+
}
|
|
1065
|
+
return propValue.constructor.name;
|
|
1066
|
+
}
|
|
1067
|
+
ReactPropTypes.checkPropTypes = checkPropTypes;
|
|
1068
|
+
ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
|
|
1069
|
+
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
1070
|
+
return ReactPropTypes;
|
|
1071
|
+
};
|
|
1072
|
+
return factoryWithTypeCheckers;
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
/**
|
|
1076
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
1077
|
+
*
|
|
1078
|
+
* This source code is licensed under the MIT license found in the
|
|
1079
|
+
* LICENSE file in the root directory of this source tree.
|
|
1080
|
+
*/
|
|
1081
|
+
var factoryWithThrowingShims;
|
|
1082
|
+
var hasRequiredFactoryWithThrowingShims;
|
|
1083
|
+
function requireFactoryWithThrowingShims() {
|
|
1084
|
+
if (hasRequiredFactoryWithThrowingShims) return factoryWithThrowingShims;
|
|
1085
|
+
hasRequiredFactoryWithThrowingShims = 1;
|
|
1086
|
+
var ReactPropTypesSecret = requireReactPropTypesSecret();
|
|
1087
|
+
function emptyFunction() {}
|
|
1088
|
+
function emptyFunctionWithReset() {}
|
|
1089
|
+
emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
|
1090
|
+
factoryWithThrowingShims = function () {
|
|
1091
|
+
function shim(props, propName, componentName, location, propFullName, secret) {
|
|
1092
|
+
if (secret === ReactPropTypesSecret) {
|
|
1093
|
+
// It is still safe when called from React.
|
|
1094
|
+
return;
|
|
1095
|
+
}
|
|
1096
|
+
var err = new Error('Calling PropTypes validators directly is not supported by the `prop-types` package. ' + 'Use PropTypes.checkPropTypes() to call them. ' + 'Read more at http://fb.me/use-check-prop-types');
|
|
1097
|
+
err.name = 'Invariant Violation';
|
|
1098
|
+
throw err;
|
|
1099
|
+
}
|
|
1100
|
+
shim.isRequired = shim;
|
|
1101
|
+
function getShim() {
|
|
1102
|
+
return shim;
|
|
1103
|
+
}
|
|
1104
|
+
// Important!
|
|
1105
|
+
// Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
|
|
1106
|
+
var ReactPropTypes = {
|
|
1107
|
+
array: shim,
|
|
1108
|
+
bigint: shim,
|
|
1109
|
+
bool: shim,
|
|
1110
|
+
func: shim,
|
|
1111
|
+
number: shim,
|
|
1112
|
+
object: shim,
|
|
1113
|
+
string: shim,
|
|
1114
|
+
symbol: shim,
|
|
1115
|
+
any: shim,
|
|
1116
|
+
arrayOf: getShim,
|
|
1117
|
+
element: shim,
|
|
1118
|
+
elementType: shim,
|
|
1119
|
+
instanceOf: getShim,
|
|
1120
|
+
node: shim,
|
|
1121
|
+
objectOf: getShim,
|
|
1122
|
+
oneOf: getShim,
|
|
1123
|
+
oneOfType: getShim,
|
|
1124
|
+
shape: getShim,
|
|
1125
|
+
exact: getShim,
|
|
1126
|
+
checkPropTypes: emptyFunctionWithReset,
|
|
1127
|
+
resetWarningCache: emptyFunction
|
|
1128
|
+
};
|
|
1129
|
+
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
1130
|
+
return ReactPropTypes;
|
|
1131
|
+
};
|
|
1132
|
+
return factoryWithThrowingShims;
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
/**
|
|
1136
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
1137
|
+
*
|
|
1138
|
+
* This source code is licensed under the MIT license found in the
|
|
1139
|
+
* LICENSE file in the root directory of this source tree.
|
|
1140
|
+
*/
|
|
1141
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1142
|
+
var ReactIs = requireReactIs();
|
|
1143
|
+
|
|
1144
|
+
// By explicitly using `prop-types` you are opting into new development behavior.
|
|
1145
|
+
// http://fb.me/prop-types-in-prod
|
|
1146
|
+
var throwOnDirectAccess = true;
|
|
1147
|
+
requireFactoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
|
|
1148
|
+
} else {
|
|
1149
|
+
// By explicitly using `prop-types` you are opting into new production behavior.
|
|
1150
|
+
// http://fb.me/prop-types-in-prod
|
|
1151
|
+
requireFactoryWithThrowingShims()();
|
|
1152
|
+
}
|
|
1153
|
+
|
|
1154
|
+
/******************************************************************************
|
|
1155
|
+
Copyright (c) Microsoft Corporation.
|
|
1156
|
+
|
|
1157
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
1158
|
+
purpose with or without fee is hereby granted.
|
|
1159
|
+
|
|
1160
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
1161
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
1162
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
1163
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
1164
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
1165
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
1166
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
1167
|
+
***************************************************************************** */
|
|
1168
|
+
|
|
1169
|
+
var __assign = function() {
|
|
1170
|
+
__assign = Object.assign || function __assign(t) {
|
|
1171
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
1172
|
+
s = arguments[i];
|
|
1173
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
1174
|
+
}
|
|
1175
|
+
return t;
|
|
1176
|
+
};
|
|
1177
|
+
return __assign.apply(this, arguments);
|
|
1178
|
+
};
|
|
1179
|
+
|
|
1180
|
+
function __spreadArray(to, from, pack) {
|
|
1181
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
1182
|
+
if (ar || !(i in from)) {
|
|
1183
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
1184
|
+
ar[i] = from[i];
|
|
1185
|
+
}
|
|
1186
|
+
}
|
|
1187
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
1188
|
+
}
|
|
1189
|
+
|
|
1190
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
1191
|
+
var e = new Error(message);
|
|
1192
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
1193
|
+
};
|
|
1194
|
+
|
|
1195
|
+
function memoize(fn) {
|
|
1196
|
+
var cache = Object.create(null);
|
|
1197
|
+
return function (arg) {
|
|
1198
|
+
if (cache[arg] === undefined) cache[arg] = fn(arg);
|
|
1199
|
+
return cache[arg];
|
|
1200
|
+
};
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1203
|
+
var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23
|
|
1204
|
+
|
|
1205
|
+
var isPropValid = /* #__PURE__ */memoize(function (prop) {
|
|
1206
|
+
return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111
|
|
1207
|
+
/* o */ && prop.charCodeAt(1) === 110
|
|
1208
|
+
/* n */ && prop.charCodeAt(2) < 91;
|
|
1209
|
+
}
|
|
1210
|
+
/* Z+1 */);
|
|
1211
|
+
|
|
1212
|
+
var MS = '-ms-';
|
|
1213
|
+
var MOZ = '-moz-';
|
|
1214
|
+
var WEBKIT = '-webkit-';
|
|
1215
|
+
var COMMENT = 'comm';
|
|
1216
|
+
var RULESET = 'rule';
|
|
1217
|
+
var DECLARATION = 'decl';
|
|
1218
|
+
var IMPORT = '@import';
|
|
1219
|
+
var KEYFRAMES = '@keyframes';
|
|
1220
|
+
var LAYER = '@layer';
|
|
1221
|
+
|
|
1222
|
+
/**
|
|
1223
|
+
* @param {number}
|
|
1224
|
+
* @return {number}
|
|
1225
|
+
*/
|
|
1226
|
+
var abs = Math.abs;
|
|
1227
|
+
|
|
1228
|
+
/**
|
|
1229
|
+
* @param {number}
|
|
1230
|
+
* @return {string}
|
|
1231
|
+
*/
|
|
1232
|
+
var from = String.fromCharCode;
|
|
1233
|
+
|
|
1234
|
+
/**
|
|
1235
|
+
* @param {object}
|
|
1236
|
+
* @return {object}
|
|
1237
|
+
*/
|
|
1238
|
+
var assign = Object.assign;
|
|
1239
|
+
|
|
1240
|
+
/**
|
|
1241
|
+
* @param {string} value
|
|
1242
|
+
* @param {number} length
|
|
1243
|
+
* @return {number}
|
|
1244
|
+
*/
|
|
1245
|
+
function hash(value, length) {
|
|
1246
|
+
return charat(value, 0) ^ 45 ? (((length << 2 ^ charat(value, 0)) << 2 ^ charat(value, 1)) << 2 ^ charat(value, 2)) << 2 ^ charat(value, 3) : 0;
|
|
1247
|
+
}
|
|
1248
|
+
|
|
1249
|
+
/**
|
|
1250
|
+
* @param {string} value
|
|
1251
|
+
* @return {string}
|
|
1252
|
+
*/
|
|
1253
|
+
function trim(value) {
|
|
1254
|
+
return value.trim();
|
|
1255
|
+
}
|
|
1256
|
+
|
|
1257
|
+
/**
|
|
1258
|
+
* @param {string} value
|
|
1259
|
+
* @param {RegExp} pattern
|
|
1260
|
+
* @return {string?}
|
|
1261
|
+
*/
|
|
1262
|
+
function match(value, pattern) {
|
|
1263
|
+
return (value = pattern.exec(value)) ? value[0] : value;
|
|
1264
|
+
}
|
|
1265
|
+
|
|
1266
|
+
/**
|
|
1267
|
+
* @param {string} value
|
|
1268
|
+
* @param {(string|RegExp)} pattern
|
|
1269
|
+
* @param {string} replacement
|
|
1270
|
+
* @return {string}
|
|
1271
|
+
*/
|
|
1272
|
+
function replace(value, pattern, replacement) {
|
|
1273
|
+
return value.replace(pattern, replacement);
|
|
1274
|
+
}
|
|
1275
|
+
|
|
1276
|
+
/**
|
|
1277
|
+
* @param {string} value
|
|
1278
|
+
* @param {string} search
|
|
1279
|
+
* @param {number} position
|
|
1280
|
+
* @return {number}
|
|
1281
|
+
*/
|
|
1282
|
+
function indexof(value, search, position) {
|
|
1283
|
+
return value.indexOf(search, position);
|
|
1284
|
+
}
|
|
1285
|
+
|
|
1286
|
+
/**
|
|
1287
|
+
* @param {string} value
|
|
1288
|
+
* @param {number} index
|
|
1289
|
+
* @return {number}
|
|
1290
|
+
*/
|
|
1291
|
+
function charat(value, index) {
|
|
1292
|
+
return value.charCodeAt(index) | 0;
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
/**
|
|
1296
|
+
* @param {string} value
|
|
1297
|
+
* @param {number} begin
|
|
1298
|
+
* @param {number} end
|
|
1299
|
+
* @return {string}
|
|
1300
|
+
*/
|
|
1301
|
+
function substr(value, begin, end) {
|
|
1302
|
+
return value.slice(begin, end);
|
|
1303
|
+
}
|
|
1304
|
+
|
|
1305
|
+
/**
|
|
1306
|
+
* @param {string} value
|
|
1307
|
+
* @return {number}
|
|
1308
|
+
*/
|
|
1309
|
+
function strlen(value) {
|
|
1310
|
+
return value.length;
|
|
1311
|
+
}
|
|
1312
|
+
|
|
1313
|
+
/**
|
|
1314
|
+
* @param {any[]} value
|
|
1315
|
+
* @return {number}
|
|
1316
|
+
*/
|
|
1317
|
+
function sizeof(value) {
|
|
1318
|
+
return value.length;
|
|
1319
|
+
}
|
|
1320
|
+
|
|
1321
|
+
/**
|
|
1322
|
+
* @param {any} value
|
|
1323
|
+
* @param {any[]} array
|
|
1324
|
+
* @return {any}
|
|
1325
|
+
*/
|
|
1326
|
+
function append(value, array) {
|
|
1327
|
+
return array.push(value), value;
|
|
1328
|
+
}
|
|
1329
|
+
|
|
1330
|
+
/**
|
|
1331
|
+
* @param {string[]} array
|
|
1332
|
+
* @param {function} callback
|
|
1333
|
+
* @return {string}
|
|
1334
|
+
*/
|
|
1335
|
+
function combine(array, callback) {
|
|
1336
|
+
return array.map(callback).join('');
|
|
1337
|
+
}
|
|
1338
|
+
|
|
1339
|
+
/**
|
|
1340
|
+
* @param {string[]} array
|
|
1341
|
+
* @param {RegExp} pattern
|
|
1342
|
+
* @return {string[]}
|
|
1343
|
+
*/
|
|
1344
|
+
function filter(array, pattern) {
|
|
1345
|
+
return array.filter(function (value) {
|
|
1346
|
+
return !match(value, pattern);
|
|
1347
|
+
});
|
|
1348
|
+
}
|
|
1349
|
+
|
|
1350
|
+
var line = 1;
|
|
1351
|
+
var column = 1;
|
|
1352
|
+
var length = 0;
|
|
1353
|
+
var position = 0;
|
|
1354
|
+
var character = 0;
|
|
1355
|
+
var characters = '';
|
|
1356
|
+
|
|
1357
|
+
/**
|
|
1358
|
+
* @param {string} value
|
|
1359
|
+
* @param {object | null} root
|
|
1360
|
+
* @param {object | null} parent
|
|
1361
|
+
* @param {string} type
|
|
1362
|
+
* @param {string[] | string} props
|
|
1363
|
+
* @param {object[] | string} children
|
|
1364
|
+
* @param {object[]} siblings
|
|
1365
|
+
* @param {number} length
|
|
1366
|
+
*/
|
|
1367
|
+
function node(value, root, parent, type, props, children, length, siblings) {
|
|
1368
|
+
return {
|
|
1369
|
+
value: value,
|
|
1370
|
+
root: root,
|
|
1371
|
+
parent: parent,
|
|
1372
|
+
type: type,
|
|
1373
|
+
props: props,
|
|
1374
|
+
children: children,
|
|
1375
|
+
line: line,
|
|
1376
|
+
column: column,
|
|
1377
|
+
length: length,
|
|
1378
|
+
return: '',
|
|
1379
|
+
siblings: siblings
|
|
1380
|
+
};
|
|
1381
|
+
}
|
|
1382
|
+
|
|
1383
|
+
/**
|
|
1384
|
+
* @param {object} root
|
|
1385
|
+
* @param {object} props
|
|
1386
|
+
* @return {object}
|
|
1387
|
+
*/
|
|
1388
|
+
function copy(root, props) {
|
|
1389
|
+
return assign(node('', null, null, '', null, null, 0, root.siblings), root, {
|
|
1390
|
+
length: -root.length
|
|
1391
|
+
}, props);
|
|
1392
|
+
}
|
|
1393
|
+
|
|
1394
|
+
/**
|
|
1395
|
+
* @param {object} root
|
|
1396
|
+
*/
|
|
1397
|
+
function lift(root) {
|
|
1398
|
+
while (root.root) root = copy(root.root, {
|
|
1399
|
+
children: [root]
|
|
1400
|
+
});
|
|
1401
|
+
append(root, root.siblings);
|
|
1402
|
+
}
|
|
1403
|
+
|
|
1404
|
+
/**
|
|
1405
|
+
* @return {number}
|
|
1406
|
+
*/
|
|
1407
|
+
function char() {
|
|
1408
|
+
return character;
|
|
1409
|
+
}
|
|
1410
|
+
|
|
1411
|
+
/**
|
|
1412
|
+
* @return {number}
|
|
1413
|
+
*/
|
|
1414
|
+
function prev() {
|
|
1415
|
+
character = position > 0 ? charat(characters, --position) : 0;
|
|
1416
|
+
if (column--, character === 10) column = 1, line--;
|
|
1417
|
+
return character;
|
|
1418
|
+
}
|
|
1419
|
+
|
|
1420
|
+
/**
|
|
1421
|
+
* @return {number}
|
|
1422
|
+
*/
|
|
1423
|
+
function next() {
|
|
1424
|
+
character = position < length ? charat(characters, position++) : 0;
|
|
1425
|
+
if (column++, character === 10) column = 1, line++;
|
|
1426
|
+
return character;
|
|
1427
|
+
}
|
|
1428
|
+
|
|
1429
|
+
/**
|
|
1430
|
+
* @return {number}
|
|
1431
|
+
*/
|
|
1432
|
+
function peek() {
|
|
1433
|
+
return charat(characters, position);
|
|
1434
|
+
}
|
|
1435
|
+
|
|
1436
|
+
/**
|
|
1437
|
+
* @return {number}
|
|
1438
|
+
*/
|
|
1439
|
+
function caret() {
|
|
1440
|
+
return position;
|
|
1441
|
+
}
|
|
1442
|
+
|
|
1443
|
+
/**
|
|
1444
|
+
* @param {number} begin
|
|
1445
|
+
* @param {number} end
|
|
1446
|
+
* @return {string}
|
|
1447
|
+
*/
|
|
1448
|
+
function slice(begin, end) {
|
|
1449
|
+
return substr(characters, begin, end);
|
|
1450
|
+
}
|
|
1451
|
+
|
|
1452
|
+
/**
|
|
1453
|
+
* @param {number} type
|
|
1454
|
+
* @return {number}
|
|
1455
|
+
*/
|
|
1456
|
+
function token(type) {
|
|
1457
|
+
switch (type) {
|
|
1458
|
+
// \0 \t \n \r \s whitespace token
|
|
1459
|
+
case 0:
|
|
1460
|
+
case 9:
|
|
1461
|
+
case 10:
|
|
1462
|
+
case 13:
|
|
1463
|
+
case 32:
|
|
1464
|
+
return 5;
|
|
1465
|
+
// ! + , / > @ ~ isolate token
|
|
1466
|
+
case 33:
|
|
1467
|
+
case 43:
|
|
1468
|
+
case 44:
|
|
1469
|
+
case 47:
|
|
1470
|
+
case 62:
|
|
1471
|
+
case 64:
|
|
1472
|
+
case 126:
|
|
1473
|
+
// ; { } breakpoint token
|
|
1474
|
+
case 59:
|
|
1475
|
+
case 123:
|
|
1476
|
+
case 125:
|
|
1477
|
+
return 4;
|
|
1478
|
+
// : accompanied token
|
|
1479
|
+
case 58:
|
|
1480
|
+
return 3;
|
|
1481
|
+
// " ' ( [ opening delimit token
|
|
1482
|
+
case 34:
|
|
1483
|
+
case 39:
|
|
1484
|
+
case 40:
|
|
1485
|
+
case 91:
|
|
1486
|
+
return 2;
|
|
1487
|
+
// ) ] closing delimit token
|
|
1488
|
+
case 41:
|
|
1489
|
+
case 93:
|
|
1490
|
+
return 1;
|
|
1491
|
+
}
|
|
1492
|
+
return 0;
|
|
1493
|
+
}
|
|
1494
|
+
|
|
1495
|
+
/**
|
|
1496
|
+
* @param {string} value
|
|
1497
|
+
* @return {any[]}
|
|
1498
|
+
*/
|
|
1499
|
+
function alloc(value) {
|
|
1500
|
+
return line = column = 1, length = strlen(characters = value), position = 0, [];
|
|
1501
|
+
}
|
|
1502
|
+
|
|
1503
|
+
/**
|
|
1504
|
+
* @param {any} value
|
|
1505
|
+
* @return {any}
|
|
1506
|
+
*/
|
|
1507
|
+
function dealloc(value) {
|
|
1508
|
+
return characters = '', value;
|
|
1509
|
+
}
|
|
1510
|
+
|
|
1511
|
+
/**
|
|
1512
|
+
* @param {number} type
|
|
1513
|
+
* @return {string}
|
|
1514
|
+
*/
|
|
1515
|
+
function delimit(type) {
|
|
1516
|
+
return trim(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)));
|
|
1517
|
+
}
|
|
1518
|
+
|
|
1519
|
+
/**
|
|
1520
|
+
* @param {number} type
|
|
1521
|
+
* @return {string}
|
|
1522
|
+
*/
|
|
1523
|
+
function whitespace(type) {
|
|
1524
|
+
while (character = peek()) if (character < 33) next();else break;
|
|
1525
|
+
return token(type) > 2 || token(character) > 3 ? '' : ' ';
|
|
1526
|
+
}
|
|
1527
|
+
|
|
1528
|
+
/**
|
|
1529
|
+
* @param {number} index
|
|
1530
|
+
* @param {number} count
|
|
1531
|
+
* @return {string}
|
|
1532
|
+
*/
|
|
1533
|
+
function escaping(index, count) {
|
|
1534
|
+
while (--count && next())
|
|
1535
|
+
// not 0-9 A-F a-f
|
|
1536
|
+
if (character < 48 || character > 102 || character > 57 && character < 65 || character > 70 && character < 97) break;
|
|
1537
|
+
return slice(index, caret() + (count < 6 && peek() == 32 && next() == 32));
|
|
1538
|
+
}
|
|
1539
|
+
|
|
1540
|
+
/**
|
|
1541
|
+
* @param {number} type
|
|
1542
|
+
* @return {number}
|
|
1543
|
+
*/
|
|
1544
|
+
function delimiter(type) {
|
|
1545
|
+
while (next()) switch (character) {
|
|
1546
|
+
// ] ) " '
|
|
1547
|
+
case type:
|
|
1548
|
+
return position;
|
|
1549
|
+
// " '
|
|
1550
|
+
case 34:
|
|
1551
|
+
case 39:
|
|
1552
|
+
if (type !== 34 && type !== 39) delimiter(character);
|
|
1553
|
+
break;
|
|
1554
|
+
// (
|
|
1555
|
+
case 40:
|
|
1556
|
+
if (type === 41) delimiter(type);
|
|
1557
|
+
break;
|
|
1558
|
+
// \
|
|
1559
|
+
case 92:
|
|
1560
|
+
next();
|
|
1561
|
+
break;
|
|
1562
|
+
}
|
|
1563
|
+
return position;
|
|
1564
|
+
}
|
|
1565
|
+
|
|
1566
|
+
/**
|
|
1567
|
+
* @param {number} type
|
|
1568
|
+
* @param {number} index
|
|
1569
|
+
* @return {number}
|
|
1570
|
+
*/
|
|
1571
|
+
function commenter(type, index) {
|
|
1572
|
+
while (next())
|
|
1573
|
+
// //
|
|
1574
|
+
if (type + character === 47 + 10) break;
|
|
1575
|
+
// /*
|
|
1576
|
+
else if (type + character === 42 + 42 && peek() === 47) break;
|
|
1577
|
+
return '/*' + slice(index, position - 1) + '*' + from(type === 47 ? type : next());
|
|
1578
|
+
}
|
|
1579
|
+
|
|
1580
|
+
/**
|
|
1581
|
+
* @param {number} index
|
|
1582
|
+
* @return {string}
|
|
1583
|
+
*/
|
|
1584
|
+
function identifier(index) {
|
|
1585
|
+
while (!token(peek())) next();
|
|
1586
|
+
return slice(index, position);
|
|
1587
|
+
}
|
|
1588
|
+
|
|
1589
|
+
/**
|
|
1590
|
+
* @param {string} value
|
|
1591
|
+
* @return {object[]}
|
|
1592
|
+
*/
|
|
1593
|
+
function compile(value) {
|
|
1594
|
+
return dealloc(parse('', null, null, null, [''], value = alloc(value), 0, [0], value));
|
|
1595
|
+
}
|
|
1596
|
+
|
|
1597
|
+
/**
|
|
1598
|
+
* @param {string} value
|
|
1599
|
+
* @param {object} root
|
|
1600
|
+
* @param {object?} parent
|
|
1601
|
+
* @param {string[]} rule
|
|
1602
|
+
* @param {string[]} rules
|
|
1603
|
+
* @param {string[]} rulesets
|
|
1604
|
+
* @param {number[]} pseudo
|
|
1605
|
+
* @param {number[]} points
|
|
1606
|
+
* @param {string[]} declarations
|
|
1607
|
+
* @return {object}
|
|
1608
|
+
*/
|
|
1609
|
+
function parse(value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {
|
|
1610
|
+
var index = 0;
|
|
1611
|
+
var offset = 0;
|
|
1612
|
+
var length = pseudo;
|
|
1613
|
+
var atrule = 0;
|
|
1614
|
+
var property = 0;
|
|
1615
|
+
var previous = 0;
|
|
1616
|
+
var variable = 1;
|
|
1617
|
+
var scanning = 1;
|
|
1618
|
+
var ampersand = 1;
|
|
1619
|
+
var character = 0;
|
|
1620
|
+
var type = '';
|
|
1621
|
+
var props = rules;
|
|
1622
|
+
var children = rulesets;
|
|
1623
|
+
var reference = rule;
|
|
1624
|
+
var characters = type;
|
|
1625
|
+
while (scanning) switch (previous = character, character = next()) {
|
|
1626
|
+
// (
|
|
1627
|
+
case 40:
|
|
1628
|
+
if (previous != 108 && charat(characters, length - 1) == 58) {
|
|
1629
|
+
if (indexof(characters += replace(delimit(character), '&', '&\f'), '&\f', abs(index ? points[index - 1] : 0)) != -1) ampersand = -1;
|
|
1630
|
+
break;
|
|
1631
|
+
}
|
|
1632
|
+
// " ' [
|
|
1633
|
+
case 34:
|
|
1634
|
+
case 39:
|
|
1635
|
+
case 91:
|
|
1636
|
+
characters += delimit(character);
|
|
1637
|
+
break;
|
|
1638
|
+
// \t \n \r \s
|
|
1639
|
+
case 9:
|
|
1640
|
+
case 10:
|
|
1641
|
+
case 13:
|
|
1642
|
+
case 32:
|
|
1643
|
+
characters += whitespace(previous);
|
|
1644
|
+
break;
|
|
1645
|
+
// \
|
|
1646
|
+
case 92:
|
|
1647
|
+
characters += escaping(caret() - 1, 7);
|
|
1648
|
+
continue;
|
|
1649
|
+
// /
|
|
1650
|
+
case 47:
|
|
1651
|
+
switch (peek()) {
|
|
1652
|
+
case 42:
|
|
1653
|
+
case 47:
|
|
1654
|
+
append(comment(commenter(next(), caret()), root, parent, declarations), declarations);
|
|
1655
|
+
break;
|
|
1656
|
+
default:
|
|
1657
|
+
characters += '/';
|
|
1658
|
+
}
|
|
1659
|
+
break;
|
|
1660
|
+
// {
|
|
1661
|
+
case 123 * variable:
|
|
1662
|
+
points[index++] = strlen(characters) * ampersand;
|
|
1663
|
+
// } ; \0
|
|
1664
|
+
case 125 * variable:
|
|
1665
|
+
case 59:
|
|
1666
|
+
case 0:
|
|
1667
|
+
switch (character) {
|
|
1668
|
+
// \0 }
|
|
1669
|
+
case 0:
|
|
1670
|
+
case 125:
|
|
1671
|
+
scanning = 0;
|
|
1672
|
+
// ;
|
|
1673
|
+
case 59 + offset:
|
|
1674
|
+
if (ampersand == -1) characters = replace(characters, /\f/g, '');
|
|
1675
|
+
if (property > 0 && strlen(characters) - length) append(property > 32 ? declaration(characters + ';', rule, parent, length - 1, declarations) : declaration(replace(characters, ' ', '') + ';', rule, parent, length - 2, declarations), declarations);
|
|
1676
|
+
break;
|
|
1677
|
+
// @ ;
|
|
1678
|
+
case 59:
|
|
1679
|
+
characters += ';';
|
|
1680
|
+
// { rule/at-rule
|
|
1681
|
+
default:
|
|
1682
|
+
append(reference = ruleset(characters, root, parent, index, offset, rules, points, type, props = [], children = [], length, rulesets), rulesets);
|
|
1683
|
+
if (character === 123) if (offset === 0) parse(characters, root, reference, reference, props, rulesets, length, points, children);else switch (atrule === 99 && charat(characters, 3) === 110 ? 100 : atrule) {
|
|
1684
|
+
// d l m s
|
|
1685
|
+
case 100:
|
|
1686
|
+
case 108:
|
|
1687
|
+
case 109:
|
|
1688
|
+
case 115:
|
|
1689
|
+
parse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length, children), children), rules, children, length, points, rule ? props : children);
|
|
1690
|
+
break;
|
|
1691
|
+
default:
|
|
1692
|
+
parse(characters, reference, reference, reference, [''], children, 0, points, children);
|
|
1693
|
+
}
|
|
1694
|
+
}
|
|
1695
|
+
index = offset = property = 0, variable = ampersand = 1, type = characters = '', length = pseudo;
|
|
1696
|
+
break;
|
|
1697
|
+
// :
|
|
1698
|
+
case 58:
|
|
1699
|
+
length = 1 + strlen(characters), property = previous;
|
|
1700
|
+
default:
|
|
1701
|
+
if (variable < 1) if (character == 123) --variable;else if (character == 125 && variable++ == 0 && prev() == 125) continue;
|
|
1702
|
+
switch (characters += from(character), character * variable) {
|
|
1703
|
+
// &
|
|
1704
|
+
case 38:
|
|
1705
|
+
ampersand = offset > 0 ? 1 : (characters += '\f', -1);
|
|
1706
|
+
break;
|
|
1707
|
+
// ,
|
|
1708
|
+
case 44:
|
|
1709
|
+
points[index++] = (strlen(characters) - 1) * ampersand, ampersand = 1;
|
|
1710
|
+
break;
|
|
1711
|
+
// @
|
|
1712
|
+
case 64:
|
|
1713
|
+
// -
|
|
1714
|
+
if (peek() === 45) characters += delimit(next());
|
|
1715
|
+
atrule = peek(), offset = length = strlen(type = characters += identifier(caret())), character++;
|
|
1716
|
+
break;
|
|
1717
|
+
// -
|
|
1718
|
+
case 45:
|
|
1719
|
+
if (previous === 45 && strlen(characters) == 2) variable = 0;
|
|
1720
|
+
}
|
|
1721
|
+
}
|
|
1722
|
+
return rulesets;
|
|
1723
|
+
}
|
|
1724
|
+
|
|
1725
|
+
/**
|
|
1726
|
+
* @param {string} value
|
|
1727
|
+
* @param {object} root
|
|
1728
|
+
* @param {object?} parent
|
|
1729
|
+
* @param {number} index
|
|
1730
|
+
* @param {number} offset
|
|
1731
|
+
* @param {string[]} rules
|
|
1732
|
+
* @param {number[]} points
|
|
1733
|
+
* @param {string} type
|
|
1734
|
+
* @param {string[]} props
|
|
1735
|
+
* @param {string[]} children
|
|
1736
|
+
* @param {number} length
|
|
1737
|
+
* @param {object[]} siblings
|
|
1738
|
+
* @return {object}
|
|
1739
|
+
*/
|
|
1740
|
+
function ruleset(value, root, parent, index, offset, rules, points, type, props, children, length, siblings) {
|
|
1741
|
+
var post = offset - 1;
|
|
1742
|
+
var rule = offset === 0 ? rules : [''];
|
|
1743
|
+
var size = sizeof(rule);
|
|
1744
|
+
for (var i = 0, j = 0, k = 0; i < index; ++i) for (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z = value; x < size; ++x) if (z = trim(j > 0 ? rule[x] + ' ' + y : replace(y, /&\f/g, rule[x]))) props[k++] = z;
|
|
1745
|
+
return node(value, root, parent, offset === 0 ? RULESET : type, props, children, length, siblings);
|
|
1746
|
+
}
|
|
1747
|
+
|
|
1748
|
+
/**
|
|
1749
|
+
* @param {number} value
|
|
1750
|
+
* @param {object} root
|
|
1751
|
+
* @param {object?} parent
|
|
1752
|
+
* @param {object[]} siblings
|
|
1753
|
+
* @return {object}
|
|
1754
|
+
*/
|
|
1755
|
+
function comment(value, root, parent, siblings) {
|
|
1756
|
+
return node(value, root, parent, COMMENT, from(char()), substr(value, 2, -2), 0, siblings);
|
|
1757
|
+
}
|
|
1758
|
+
|
|
1759
|
+
/**
|
|
1760
|
+
* @param {string} value
|
|
1761
|
+
* @param {object} root
|
|
1762
|
+
* @param {object?} parent
|
|
1763
|
+
* @param {number} length
|
|
1764
|
+
* @param {object[]} siblings
|
|
1765
|
+
* @return {object}
|
|
1766
|
+
*/
|
|
1767
|
+
function declaration(value, root, parent, length, siblings) {
|
|
1768
|
+
return node(value, root, parent, DECLARATION, substr(value, 0, length), substr(value, length + 1, -1), length, siblings);
|
|
1769
|
+
}
|
|
1770
|
+
|
|
1771
|
+
/**
|
|
1772
|
+
* @param {string} value
|
|
1773
|
+
* @param {number} length
|
|
1774
|
+
* @param {object[]} children
|
|
1775
|
+
* @return {string}
|
|
1776
|
+
*/
|
|
1777
|
+
function prefix(value, length, children) {
|
|
1778
|
+
switch (hash(value, length)) {
|
|
1779
|
+
// color-adjust
|
|
1780
|
+
case 5103:
|
|
1781
|
+
return WEBKIT + 'print-' + value + value;
|
|
1782
|
+
// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
|
|
1783
|
+
case 5737:
|
|
1784
|
+
case 4201:
|
|
1785
|
+
case 3177:
|
|
1786
|
+
case 3433:
|
|
1787
|
+
case 1641:
|
|
1788
|
+
case 4457:
|
|
1789
|
+
case 2921:
|
|
1790
|
+
// text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
|
|
1791
|
+
case 5572:
|
|
1792
|
+
case 6356:
|
|
1793
|
+
case 5844:
|
|
1794
|
+
case 3191:
|
|
1795
|
+
case 6645:
|
|
1796
|
+
case 3005:
|
|
1797
|
+
// mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
|
|
1798
|
+
case 6391:
|
|
1799
|
+
case 5879:
|
|
1800
|
+
case 5623:
|
|
1801
|
+
case 6135:
|
|
1802
|
+
case 4599:
|
|
1803
|
+
case 4855:
|
|
1804
|
+
// background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
|
|
1805
|
+
case 4215:
|
|
1806
|
+
case 6389:
|
|
1807
|
+
case 5109:
|
|
1808
|
+
case 5365:
|
|
1809
|
+
case 5621:
|
|
1810
|
+
case 3829:
|
|
1811
|
+
return WEBKIT + value + value;
|
|
1812
|
+
// tab-size
|
|
1813
|
+
case 4789:
|
|
1814
|
+
return MOZ + value + value;
|
|
1815
|
+
// appearance, user-select, transform, hyphens, text-size-adjust
|
|
1816
|
+
case 5349:
|
|
1817
|
+
case 4246:
|
|
1818
|
+
case 4810:
|
|
1819
|
+
case 6968:
|
|
1820
|
+
case 2756:
|
|
1821
|
+
return WEBKIT + value + MOZ + value + MS + value + value;
|
|
1822
|
+
// writing-mode
|
|
1823
|
+
case 5936:
|
|
1824
|
+
switch (charat(value, length + 11)) {
|
|
1825
|
+
// vertical-l(r)
|
|
1826
|
+
case 114:
|
|
1827
|
+
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb') + value;
|
|
1828
|
+
// vertical-r(l)
|
|
1829
|
+
case 108:
|
|
1830
|
+
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb-rl') + value;
|
|
1831
|
+
// horizontal(-)tb
|
|
1832
|
+
case 45:
|
|
1833
|
+
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'lr') + value;
|
|
1834
|
+
// default: fallthrough to below
|
|
1835
|
+
}
|
|
1836
|
+
// flex, flex-direction, scroll-snap-type, writing-mode
|
|
1837
|
+
case 6828:
|
|
1838
|
+
case 4268:
|
|
1839
|
+
case 2903:
|
|
1840
|
+
return WEBKIT + value + MS + value + value;
|
|
1841
|
+
// order
|
|
1842
|
+
case 6165:
|
|
1843
|
+
return WEBKIT + value + MS + 'flex-' + value + value;
|
|
1844
|
+
// align-items
|
|
1845
|
+
case 5187:
|
|
1846
|
+
return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + 'box-$1$2' + MS + 'flex-$1$2') + value;
|
|
1847
|
+
// align-self
|
|
1848
|
+
case 5443:
|
|
1849
|
+
return WEBKIT + value + MS + 'flex-item-' + replace(value, /flex-|-self/g, '') + (!match(value, /flex-|baseline/) ? MS + 'grid-row-' + replace(value, /flex-|-self/g, '') : '') + value;
|
|
1850
|
+
// align-content
|
|
1851
|
+
case 4675:
|
|
1852
|
+
return WEBKIT + value + MS + 'flex-line-pack' + replace(value, /align-content|flex-|-self/g, '') + value;
|
|
1853
|
+
// flex-shrink
|
|
1854
|
+
case 5548:
|
|
1855
|
+
return WEBKIT + value + MS + replace(value, 'shrink', 'negative') + value;
|
|
1856
|
+
// flex-basis
|
|
1857
|
+
case 5292:
|
|
1858
|
+
return WEBKIT + value + MS + replace(value, 'basis', 'preferred-size') + value;
|
|
1859
|
+
// flex-grow
|
|
1860
|
+
case 6060:
|
|
1861
|
+
return WEBKIT + 'box-' + replace(value, '-grow', '') + WEBKIT + value + MS + replace(value, 'grow', 'positive') + value;
|
|
1862
|
+
// transition
|
|
1863
|
+
case 4554:
|
|
1864
|
+
return WEBKIT + replace(value, /([^-])(transform)/g, '$1' + WEBKIT + '$2') + value;
|
|
1865
|
+
// cursor
|
|
1866
|
+
case 6187:
|
|
1867
|
+
return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + '$1'), /(image-set)/, WEBKIT + '$1'), value, '') + value;
|
|
1868
|
+
// background, background-image
|
|
1869
|
+
case 5495:
|
|
1870
|
+
case 3959:
|
|
1871
|
+
return replace(value, /(image-set\([^]*)/, WEBKIT + '$1' + '$`$1');
|
|
1872
|
+
// justify-content
|
|
1873
|
+
case 4968:
|
|
1874
|
+
return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + 'box-pack:$3' + MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + WEBKIT + value + value;
|
|
1875
|
+
// justify-self
|
|
1876
|
+
case 4200:
|
|
1877
|
+
if (!match(value, /flex-|baseline/)) return MS + 'grid-column-align' + substr(value, length) + value;
|
|
1878
|
+
break;
|
|
1879
|
+
// grid-template-(columns|rows)
|
|
1880
|
+
case 2592:
|
|
1881
|
+
case 3360:
|
|
1882
|
+
return MS + replace(value, 'template-', '') + value;
|
|
1883
|
+
// grid-(row|column)-start
|
|
1884
|
+
case 4384:
|
|
1885
|
+
case 3616:
|
|
1886
|
+
if (children && children.some(function (element, index) {
|
|
1887
|
+
return length = index, match(element.props, /grid-\w+-end/);
|
|
1888
|
+
})) {
|
|
1889
|
+
return ~indexof(value + (children = children[length].value), 'span', 0) ? value : MS + replace(value, '-start', '') + value + MS + 'grid-row-span:' + (~indexof(children, 'span', 0) ? match(children, /\d+/) : +match(children, /\d+/) - +match(value, /\d+/)) + ';';
|
|
1890
|
+
}
|
|
1891
|
+
return MS + replace(value, '-start', '') + value;
|
|
1892
|
+
// grid-(row|column)-end
|
|
1893
|
+
case 4896:
|
|
1894
|
+
case 4128:
|
|
1895
|
+
return children && children.some(function (element) {
|
|
1896
|
+
return match(element.props, /grid-\w+-start/);
|
|
1897
|
+
}) ? value : MS + replace(replace(value, '-end', '-span'), 'span ', '') + value;
|
|
1898
|
+
// (margin|padding)-inline-(start|end)
|
|
1899
|
+
case 4095:
|
|
1900
|
+
case 3583:
|
|
1901
|
+
case 4068:
|
|
1902
|
+
case 2532:
|
|
1903
|
+
return replace(value, /(.+)-inline(.+)/, WEBKIT + '$1$2') + value;
|
|
1904
|
+
// (min|max)?(width|height|inline-size|block-size)
|
|
1905
|
+
case 8116:
|
|
1906
|
+
case 7059:
|
|
1907
|
+
case 5753:
|
|
1908
|
+
case 5535:
|
|
1909
|
+
case 5445:
|
|
1910
|
+
case 5701:
|
|
1911
|
+
case 4933:
|
|
1912
|
+
case 4677:
|
|
1913
|
+
case 5533:
|
|
1914
|
+
case 5789:
|
|
1915
|
+
case 5021:
|
|
1916
|
+
case 4765:
|
|
1917
|
+
// stretch, max-content, min-content, fill-available
|
|
1918
|
+
if (strlen(value) - 1 - length > 6) switch (charat(value, length + 1)) {
|
|
1919
|
+
// (m)ax-content, (m)in-content
|
|
1920
|
+
case 109:
|
|
1921
|
+
// -
|
|
1922
|
+
if (charat(value, length + 4) !== 45) break;
|
|
1923
|
+
// (f)ill-available, (f)it-content
|
|
1924
|
+
case 102:
|
|
1925
|
+
return replace(value, /(.+:)(.+)-([^]+)/, '$1' + WEBKIT + '$2-$3' + '$1' + MOZ + (charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value;
|
|
1926
|
+
// (s)tretch
|
|
1927
|
+
case 115:
|
|
1928
|
+
return ~indexof(value, 'stretch', 0) ? prefix(replace(value, 'stretch', 'fill-available'), length, children) + value : value;
|
|
1929
|
+
}
|
|
1930
|
+
break;
|
|
1931
|
+
// grid-(column|row)
|
|
1932
|
+
case 5152:
|
|
1933
|
+
case 5920:
|
|
1934
|
+
return replace(value, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function (_, a, b, c, d, e, f) {
|
|
1935
|
+
return MS + a + ':' + b + f + (c ? MS + a + '-span:' + (d ? e : +e - +b) + f : '') + value;
|
|
1936
|
+
});
|
|
1937
|
+
// position: sticky
|
|
1938
|
+
case 4949:
|
|
1939
|
+
// stick(y)?
|
|
1940
|
+
if (charat(value, length + 6) === 121) return replace(value, ':', ':' + WEBKIT) + value;
|
|
1941
|
+
break;
|
|
1942
|
+
// display: (flex|inline-flex|grid|inline-grid)
|
|
1943
|
+
case 6444:
|
|
1944
|
+
switch (charat(value, charat(value, 14) === 45 ? 18 : 11)) {
|
|
1945
|
+
// (inline-)?fle(x)
|
|
1946
|
+
case 120:
|
|
1947
|
+
return replace(value, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, '$1' + WEBKIT + (charat(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + WEBKIT + '$2$3' + '$1' + MS + '$2box$3') + value;
|
|
1948
|
+
// (inline-)?gri(d)
|
|
1949
|
+
case 100:
|
|
1950
|
+
return replace(value, ':', ':' + MS) + value;
|
|
1951
|
+
}
|
|
1952
|
+
break;
|
|
1953
|
+
// scroll-margin, scroll-margin-(top|right|bottom|left)
|
|
1954
|
+
case 5719:
|
|
1955
|
+
case 2647:
|
|
1956
|
+
case 2135:
|
|
1957
|
+
case 3927:
|
|
1958
|
+
case 2391:
|
|
1959
|
+
return replace(value, 'scroll-', 'scroll-snap-') + value;
|
|
1960
|
+
}
|
|
1961
|
+
return value;
|
|
1962
|
+
}
|
|
1963
|
+
|
|
1964
|
+
/**
|
|
1965
|
+
* @param {object[]} children
|
|
1966
|
+
* @param {function} callback
|
|
1967
|
+
* @return {string}
|
|
1968
|
+
*/
|
|
1969
|
+
function serialize(children, callback) {
|
|
1970
|
+
var output = '';
|
|
1971
|
+
for (var i = 0; i < children.length; i++) output += callback(children[i], i, children, callback) || '';
|
|
1972
|
+
return output;
|
|
1973
|
+
}
|
|
1974
|
+
|
|
1975
|
+
/**
|
|
1976
|
+
* @param {object} element
|
|
1977
|
+
* @param {number} index
|
|
1978
|
+
* @param {object[]} children
|
|
1979
|
+
* @param {function} callback
|
|
1980
|
+
* @return {string}
|
|
1981
|
+
*/
|
|
1982
|
+
function stringify(element, index, children, callback) {
|
|
1983
|
+
switch (element.type) {
|
|
1984
|
+
case LAYER:
|
|
1985
|
+
if (element.children.length) break;
|
|
1986
|
+
case IMPORT:
|
|
1987
|
+
case DECLARATION:
|
|
1988
|
+
return element.return = element.return || element.value;
|
|
1989
|
+
case COMMENT:
|
|
1990
|
+
return '';
|
|
1991
|
+
case KEYFRAMES:
|
|
1992
|
+
return element.return = element.value + '{' + serialize(element.children, callback) + '}';
|
|
1993
|
+
case RULESET:
|
|
1994
|
+
if (!strlen(element.value = element.props.join(','))) return '';
|
|
1995
|
+
}
|
|
1996
|
+
return strlen(children = serialize(element.children, callback)) ? element.return = element.value + '{' + children + '}' : '';
|
|
1997
|
+
}
|
|
1998
|
+
|
|
1999
|
+
/**
|
|
2000
|
+
* @param {function[]} collection
|
|
2001
|
+
* @return {function}
|
|
2002
|
+
*/
|
|
2003
|
+
function middleware(collection) {
|
|
2004
|
+
var length = sizeof(collection);
|
|
2005
|
+
return function (element, index, children, callback) {
|
|
2006
|
+
var output = '';
|
|
2007
|
+
for (var i = 0; i < length; i++) output += collection[i](element, index, children, callback) || '';
|
|
2008
|
+
return output;
|
|
2009
|
+
};
|
|
2010
|
+
}
|
|
2011
|
+
|
|
2012
|
+
/**
|
|
2013
|
+
* @param {function} callback
|
|
2014
|
+
* @return {function}
|
|
2015
|
+
*/
|
|
2016
|
+
function rulesheet(callback) {
|
|
2017
|
+
return function (element) {
|
|
2018
|
+
if (!element.root) if (element = element.return) callback(element);
|
|
2019
|
+
};
|
|
2020
|
+
}
|
|
2021
|
+
|
|
2022
|
+
/**
|
|
2023
|
+
* @param {object} element
|
|
2024
|
+
* @param {number} index
|
|
2025
|
+
* @param {object[]} children
|
|
2026
|
+
* @param {function} callback
|
|
2027
|
+
*/
|
|
2028
|
+
function prefixer(element, index, children, callback) {
|
|
2029
|
+
if (element.length > -1) if (!element.return) switch (element.type) {
|
|
2030
|
+
case DECLARATION:
|
|
2031
|
+
element.return = prefix(element.value, element.length, children);
|
|
2032
|
+
return;
|
|
2033
|
+
case KEYFRAMES:
|
|
2034
|
+
return serialize([copy(element, {
|
|
2035
|
+
value: replace(element.value, '@', '@' + WEBKIT)
|
|
2036
|
+
})], callback);
|
|
2037
|
+
case RULESET:
|
|
2038
|
+
if (element.length) return combine(children = element.props, function (value) {
|
|
2039
|
+
switch (match(value, callback = /(::plac\w+|:read-\w+)/)) {
|
|
2040
|
+
// :read-(only|write)
|
|
2041
|
+
case ':read-only':
|
|
2042
|
+
case ':read-write':
|
|
2043
|
+
lift(copy(element, {
|
|
2044
|
+
props: [replace(value, /:(read-\w+)/, ':' + MOZ + '$1')]
|
|
2045
|
+
}));
|
|
2046
|
+
lift(copy(element, {
|
|
2047
|
+
props: [value]
|
|
2048
|
+
}));
|
|
2049
|
+
assign(element, {
|
|
2050
|
+
props: filter(children, callback)
|
|
2051
|
+
});
|
|
2052
|
+
break;
|
|
2053
|
+
// :placeholder
|
|
2054
|
+
case '::placeholder':
|
|
2055
|
+
lift(copy(element, {
|
|
2056
|
+
props: [replace(value, /:(plac\w+)/, ':' + WEBKIT + 'input-$1')]
|
|
2057
|
+
}));
|
|
2058
|
+
lift(copy(element, {
|
|
2059
|
+
props: [replace(value, /:(plac\w+)/, ':' + MOZ + '$1')]
|
|
2060
|
+
}));
|
|
2061
|
+
lift(copy(element, {
|
|
2062
|
+
props: [replace(value, /:(plac\w+)/, MS + 'input-$1')]
|
|
2063
|
+
}));
|
|
2064
|
+
lift(copy(element, {
|
|
2065
|
+
props: [value]
|
|
2066
|
+
}));
|
|
2067
|
+
assign(element, {
|
|
2068
|
+
props: filter(children, callback)
|
|
2069
|
+
});
|
|
2070
|
+
break;
|
|
2071
|
+
}
|
|
2072
|
+
return '';
|
|
2073
|
+
});
|
|
2074
|
+
}
|
|
2075
|
+
}
|
|
2076
|
+
|
|
2077
|
+
var unitlessKeys = {
|
|
2078
|
+
animationIterationCount: 1,
|
|
2079
|
+
aspectRatio: 1,
|
|
2080
|
+
borderImageOutset: 1,
|
|
2081
|
+
borderImageSlice: 1,
|
|
2082
|
+
borderImageWidth: 1,
|
|
2083
|
+
boxFlex: 1,
|
|
2084
|
+
boxFlexGroup: 1,
|
|
2085
|
+
boxOrdinalGroup: 1,
|
|
2086
|
+
columnCount: 1,
|
|
2087
|
+
columns: 1,
|
|
2088
|
+
flex: 1,
|
|
2089
|
+
flexGrow: 1,
|
|
2090
|
+
flexPositive: 1,
|
|
2091
|
+
flexShrink: 1,
|
|
2092
|
+
flexNegative: 1,
|
|
2093
|
+
flexOrder: 1,
|
|
2094
|
+
gridRow: 1,
|
|
2095
|
+
gridRowEnd: 1,
|
|
2096
|
+
gridRowSpan: 1,
|
|
2097
|
+
gridRowStart: 1,
|
|
2098
|
+
gridColumn: 1,
|
|
2099
|
+
gridColumnEnd: 1,
|
|
2100
|
+
gridColumnSpan: 1,
|
|
2101
|
+
gridColumnStart: 1,
|
|
2102
|
+
msGridRow: 1,
|
|
2103
|
+
msGridRowSpan: 1,
|
|
2104
|
+
msGridColumn: 1,
|
|
2105
|
+
msGridColumnSpan: 1,
|
|
2106
|
+
fontWeight: 1,
|
|
2107
|
+
lineHeight: 1,
|
|
2108
|
+
opacity: 1,
|
|
2109
|
+
order: 1,
|
|
2110
|
+
orphans: 1,
|
|
2111
|
+
tabSize: 1,
|
|
2112
|
+
widows: 1,
|
|
2113
|
+
zIndex: 1,
|
|
2114
|
+
zoom: 1,
|
|
2115
|
+
WebkitLineClamp: 1,
|
|
2116
|
+
// SVG-related properties
|
|
2117
|
+
fillOpacity: 1,
|
|
2118
|
+
floodOpacity: 1,
|
|
2119
|
+
stopOpacity: 1,
|
|
2120
|
+
strokeDasharray: 1,
|
|
2121
|
+
strokeDashoffset: 1,
|
|
2122
|
+
strokeMiterlimit: 1,
|
|
2123
|
+
strokeOpacity: 1,
|
|
2124
|
+
strokeWidth: 1
|
|
2125
|
+
};
|
|
2126
|
+
|
|
2127
|
+
var f = "undefined" != typeof process && void 0 !== process.env && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled",
|
|
2128
|
+
m = "active",
|
|
2129
|
+
y = "data-styled-version",
|
|
2130
|
+
v = "6.1.15",
|
|
2131
|
+
g = "/*!sc*/\n",
|
|
2132
|
+
S = "undefined" != typeof window && "HTMLElement" in window,
|
|
2133
|
+
w = Boolean("boolean" == typeof SC_DISABLE_SPEEDY ? SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env && void 0 !== process.env.REACT_APP_SC_DISABLE_SPEEDY && "" !== process.env.REACT_APP_SC_DISABLE_SPEEDY ? "false" !== process.env.REACT_APP_SC_DISABLE_SPEEDY && process.env.REACT_APP_SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env && void 0 !== process.env.SC_DISABLE_SPEEDY && "" !== process.env.SC_DISABLE_SPEEDY ? "false" !== process.env.SC_DISABLE_SPEEDY && process.env.SC_DISABLE_SPEEDY : "production" !== process.env.NODE_ENV),
|
|
2134
|
+
E = /invalid hook call/i,
|
|
2135
|
+
N = new Set(),
|
|
2136
|
+
P = function (t, n) {
|
|
2137
|
+
if ("production" !== process.env.NODE_ENV) {
|
|
2138
|
+
var r = n ? ' with the id of "'.concat(n, '"') : "",
|
|
2139
|
+
s = "The component ".concat(t).concat(r, " has been created dynamically.\n") + "You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",
|
|
2140
|
+
i = console.error;
|
|
2141
|
+
try {
|
|
2142
|
+
var a = !0;
|
|
2143
|
+
console.error = function (t) {
|
|
2144
|
+
for (var n = [], r = 1; r < arguments.length; r++) n[r - 1] = arguments[r];
|
|
2145
|
+
E.test(t) ? (a = !1, N.delete(s)) : i.apply(void 0, __spreadArray([t], n, !1));
|
|
2146
|
+
}, React.useRef(), a && !N.has(s) && (console.warn(s), N.add(s));
|
|
2147
|
+
} catch (e) {
|
|
2148
|
+
E.test(e.message) && N.delete(s);
|
|
2149
|
+
} finally {
|
|
2150
|
+
console.error = i;
|
|
2151
|
+
}
|
|
2152
|
+
}
|
|
2153
|
+
},
|
|
2154
|
+
_ = Object.freeze([]),
|
|
2155
|
+
C = Object.freeze({});
|
|
2156
|
+
function I(e, t, n) {
|
|
2157
|
+
return void 0 === n && (n = C), e.theme !== n.theme && e.theme || t || n.theme;
|
|
2158
|
+
}
|
|
2159
|
+
var A = new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]),
|
|
2160
|
+
O = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,
|
|
2161
|
+
D = /(^-|-$)/g;
|
|
2162
|
+
function R(e) {
|
|
2163
|
+
return e.replace(O, "-").replace(D, "");
|
|
2164
|
+
}
|
|
2165
|
+
var T = /(a)(d)/gi,
|
|
2166
|
+
k = 52,
|
|
2167
|
+
j = function (e) {
|
|
2168
|
+
return String.fromCharCode(e + (e > 25 ? 39 : 97));
|
|
2169
|
+
};
|
|
2170
|
+
function x(e) {
|
|
2171
|
+
var t,
|
|
2172
|
+
n = "";
|
|
2173
|
+
for (t = Math.abs(e); t > k; t = t / k | 0) n = j(t % k) + n;
|
|
2174
|
+
return (j(t % k) + n).replace(T, "$1-$2");
|
|
2175
|
+
}
|
|
2176
|
+
var V,
|
|
2177
|
+
F = 5381,
|
|
2178
|
+
M = function (e, t) {
|
|
2179
|
+
for (var n = t.length; n;) e = 33 * e ^ t.charCodeAt(--n);
|
|
2180
|
+
return e;
|
|
2181
|
+
},
|
|
2182
|
+
z = function (e) {
|
|
2183
|
+
return M(F, e);
|
|
2184
|
+
};
|
|
2185
|
+
function $(e) {
|
|
2186
|
+
return x(z(e) >>> 0);
|
|
2187
|
+
}
|
|
2188
|
+
function B(e) {
|
|
2189
|
+
return "production" !== process.env.NODE_ENV && "string" == typeof e && e || e.displayName || e.name || "Component";
|
|
2190
|
+
}
|
|
2191
|
+
function L(e) {
|
|
2192
|
+
return "string" == typeof e && ("production" === process.env.NODE_ENV || e.charAt(0) === e.charAt(0).toLowerCase());
|
|
2193
|
+
}
|
|
2194
|
+
var G = "function" == typeof Symbol && Symbol.for,
|
|
2195
|
+
Y = G ? Symbol.for("react.memo") : 60115,
|
|
2196
|
+
q = G ? Symbol.for("react.forward_ref") : 60112,
|
|
2197
|
+
W = {
|
|
2198
|
+
childContextTypes: !0,
|
|
2199
|
+
contextType: !0,
|
|
2200
|
+
contextTypes: !0,
|
|
2201
|
+
defaultProps: !0,
|
|
2202
|
+
displayName: !0,
|
|
2203
|
+
getDefaultProps: !0,
|
|
2204
|
+
getDerivedStateFromError: !0,
|
|
2205
|
+
getDerivedStateFromProps: !0,
|
|
2206
|
+
mixins: !0,
|
|
2207
|
+
propTypes: !0,
|
|
2208
|
+
type: !0
|
|
2209
|
+
},
|
|
2210
|
+
H = {
|
|
2211
|
+
name: !0,
|
|
2212
|
+
length: !0,
|
|
2213
|
+
prototype: !0,
|
|
2214
|
+
caller: !0,
|
|
2215
|
+
callee: !0,
|
|
2216
|
+
arguments: !0,
|
|
2217
|
+
arity: !0
|
|
2218
|
+
},
|
|
2219
|
+
U = {
|
|
2220
|
+
$$typeof: !0,
|
|
2221
|
+
compare: !0,
|
|
2222
|
+
defaultProps: !0,
|
|
2223
|
+
displayName: !0,
|
|
2224
|
+
propTypes: !0,
|
|
2225
|
+
type: !0
|
|
2226
|
+
},
|
|
2227
|
+
J = ((V = {})[q] = {
|
|
2228
|
+
$$typeof: !0,
|
|
2229
|
+
render: !0,
|
|
2230
|
+
defaultProps: !0,
|
|
2231
|
+
displayName: !0,
|
|
2232
|
+
propTypes: !0
|
|
2233
|
+
}, V[Y] = U, V);
|
|
2234
|
+
function X(e) {
|
|
2235
|
+
return ("type" in (t = e) && t.type.$$typeof) === Y ? U : "$$typeof" in e ? J[e.$$typeof] : W;
|
|
2236
|
+
var t;
|
|
2237
|
+
}
|
|
2238
|
+
var Z = Object.defineProperty,
|
|
2239
|
+
K = Object.getOwnPropertyNames,
|
|
2240
|
+
Q = Object.getOwnPropertySymbols,
|
|
2241
|
+
ee = Object.getOwnPropertyDescriptor,
|
|
2242
|
+
te = Object.getPrototypeOf,
|
|
2243
|
+
ne = Object.prototype;
|
|
2244
|
+
function re(e, t, n) {
|
|
2245
|
+
if ("string" != typeof t) {
|
|
2246
|
+
if (ne) {
|
|
2247
|
+
var r = te(t);
|
|
2248
|
+
r && r !== ne && re(e, r, n);
|
|
2249
|
+
}
|
|
2250
|
+
var o = K(t);
|
|
2251
|
+
Q && (o = o.concat(Q(t)));
|
|
2252
|
+
for (var s = X(e), i = X(t), a = 0; a < o.length; ++a) {
|
|
2253
|
+
var c = o[a];
|
|
2254
|
+
if (!(c in H || n && n[c] || i && c in i || s && c in s)) {
|
|
2255
|
+
var l = ee(t, c);
|
|
2256
|
+
try {
|
|
2257
|
+
Z(e, c, l);
|
|
2258
|
+
} catch (e) {}
|
|
2259
|
+
}
|
|
2260
|
+
}
|
|
2261
|
+
}
|
|
2262
|
+
return e;
|
|
2263
|
+
}
|
|
2264
|
+
function oe(e) {
|
|
2265
|
+
return "function" == typeof e;
|
|
2266
|
+
}
|
|
2267
|
+
function se(e) {
|
|
2268
|
+
return "object" == typeof e && "styledComponentId" in e;
|
|
2269
|
+
}
|
|
2270
|
+
function ie(e, t) {
|
|
2271
|
+
return e && t ? "".concat(e, " ").concat(t) : e || t || "";
|
|
2272
|
+
}
|
|
2273
|
+
function ae(e, t) {
|
|
2274
|
+
if (0 === e.length) return "";
|
|
2275
|
+
for (var n = e[0], r = 1; r < e.length; r++) n += t ? t + e[r] : e[r];
|
|
2276
|
+
return n;
|
|
2277
|
+
}
|
|
2278
|
+
function ce(e) {
|
|
2279
|
+
return null !== e && "object" == typeof e && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
|
|
2280
|
+
}
|
|
2281
|
+
function le(e, t, n) {
|
|
2282
|
+
if (void 0 === n && (n = !1), !n && !ce(e) && !Array.isArray(e)) return t;
|
|
2283
|
+
if (Array.isArray(t)) for (var r = 0; r < t.length; r++) e[r] = le(e[r], t[r]);else if (ce(t)) for (var r in t) e[r] = le(e[r], t[r]);
|
|
2284
|
+
return e;
|
|
2285
|
+
}
|
|
2286
|
+
function ue(e, t) {
|
|
2287
|
+
Object.defineProperty(e, "toString", {
|
|
2288
|
+
value: t
|
|
2289
|
+
});
|
|
2290
|
+
}
|
|
2291
|
+
var pe = "production" !== process.env.NODE_ENV ? {
|
|
2292
|
+
1: "Cannot create styled-component for component: %s.\n\n",
|
|
2293
|
+
2: "Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",
|
|
2294
|
+
3: "Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",
|
|
2295
|
+
4: "The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",
|
|
2296
|
+
5: "The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",
|
|
2297
|
+
6: "Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",
|
|
2298
|
+
7: 'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',
|
|
2299
|
+
8: 'ThemeProvider: Please make your "theme" prop an object.\n\n',
|
|
2300
|
+
9: "Missing document `<head>`\n\n",
|
|
2301
|
+
10: "Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",
|
|
2302
|
+
11: "_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",
|
|
2303
|
+
12: "It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",
|
|
2304
|
+
13: "%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",
|
|
2305
|
+
14: 'ThemeProvider: "theme" prop is required.\n\n',
|
|
2306
|
+
15: "A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",
|
|
2307
|
+
16: "Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",
|
|
2308
|
+
17: "CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n",
|
|
2309
|
+
18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"
|
|
2310
|
+
} : {};
|
|
2311
|
+
function de() {
|
|
2312
|
+
for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
|
|
2313
|
+
for (var n = e[0], r = [], o = 1, s = e.length; o < s; o += 1) r.push(e[o]);
|
|
2314
|
+
return r.forEach(function (e) {
|
|
2315
|
+
n = n.replace(/%[a-z]/, e);
|
|
2316
|
+
}), n;
|
|
2317
|
+
}
|
|
2318
|
+
function he(t) {
|
|
2319
|
+
for (var n = [], r = 1; r < arguments.length; r++) n[r - 1] = arguments[r];
|
|
2320
|
+
return "production" === process.env.NODE_ENV ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t, " for more information.").concat(n.length > 0 ? " Args: ".concat(n.join(", ")) : "")) : new Error(de.apply(void 0, __spreadArray([pe[t]], n, !1)).trim());
|
|
2321
|
+
}
|
|
2322
|
+
var fe = function () {
|
|
2323
|
+
function e(e) {
|
|
2324
|
+
this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = e;
|
|
2325
|
+
}
|
|
2326
|
+
return e.prototype.indexOfGroup = function (e) {
|
|
2327
|
+
for (var t = 0, n = 0; n < e; n++) t += this.groupSizes[n];
|
|
2328
|
+
return t;
|
|
2329
|
+
}, e.prototype.insertRules = function (e, t) {
|
|
2330
|
+
if (e >= this.groupSizes.length) {
|
|
2331
|
+
for (var n = this.groupSizes, r = n.length, o = r; e >= o;) if ((o <<= 1) < 0) throw he(16, "".concat(e));
|
|
2332
|
+
this.groupSizes = new Uint32Array(o), this.groupSizes.set(n), this.length = o;
|
|
2333
|
+
for (var s = r; s < o; s++) this.groupSizes[s] = 0;
|
|
2334
|
+
}
|
|
2335
|
+
for (var i = this.indexOfGroup(e + 1), a = (s = 0, t.length); s < a; s++) this.tag.insertRule(i, t[s]) && (this.groupSizes[e]++, i++);
|
|
2336
|
+
}, e.prototype.clearGroup = function (e) {
|
|
2337
|
+
if (e < this.length) {
|
|
2338
|
+
var t = this.groupSizes[e],
|
|
2339
|
+
n = this.indexOfGroup(e),
|
|
2340
|
+
r = n + t;
|
|
2341
|
+
this.groupSizes[e] = 0;
|
|
2342
|
+
for (var o = n; o < r; o++) this.tag.deleteRule(n);
|
|
2343
|
+
}
|
|
2344
|
+
}, e.prototype.getGroup = function (e) {
|
|
2345
|
+
var t = "";
|
|
2346
|
+
if (e >= this.length || 0 === this.groupSizes[e]) return t;
|
|
2347
|
+
for (var n = this.groupSizes[e], r = this.indexOfGroup(e), o = r + n, s = r; s < o; s++) t += "".concat(this.tag.getRule(s)).concat(g);
|
|
2348
|
+
return t;
|
|
2349
|
+
}, e;
|
|
2350
|
+
}(),
|
|
2351
|
+
me = 1 << 30,
|
|
2352
|
+
ye = new Map(),
|
|
2353
|
+
ve = new Map(),
|
|
2354
|
+
ge = 1,
|
|
2355
|
+
Se = function (e) {
|
|
2356
|
+
if (ye.has(e)) return ye.get(e);
|
|
2357
|
+
for (; ve.has(ge);) ge++;
|
|
2358
|
+
var t = ge++;
|
|
2359
|
+
if ("production" !== process.env.NODE_ENV && ((0 | t) < 0 || t > me)) throw he(16, "".concat(t));
|
|
2360
|
+
return ye.set(e, t), ve.set(t, e), t;
|
|
2361
|
+
},
|
|
2362
|
+
we = function (e, t) {
|
|
2363
|
+
ge = t + 1, ye.set(e, t), ve.set(t, e);
|
|
2364
|
+
},
|
|
2365
|
+
be = "style[".concat(f, "][").concat(y, '="').concat(v, '"]'),
|
|
2366
|
+
Ee = new RegExp("^".concat(f, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),
|
|
2367
|
+
Ne = function (e, t, n) {
|
|
2368
|
+
for (var r, o = n.split(","), s = 0, i = o.length; s < i; s++) (r = o[s]) && e.registerName(t, r);
|
|
2369
|
+
},
|
|
2370
|
+
Pe = function (e, t) {
|
|
2371
|
+
for (var n, r = (null !== (n = t.textContent) && void 0 !== n ? n : "").split(g), o = [], s = 0, i = r.length; s < i; s++) {
|
|
2372
|
+
var a = r[s].trim();
|
|
2373
|
+
if (a) {
|
|
2374
|
+
var c = a.match(Ee);
|
|
2375
|
+
if (c) {
|
|
2376
|
+
var l = 0 | parseInt(c[1], 10),
|
|
2377
|
+
u = c[2];
|
|
2378
|
+
0 !== l && (we(u, l), Ne(e, u, c[3]), e.getTag().insertRules(l, o)), o.length = 0;
|
|
2379
|
+
} else o.push(a);
|
|
2380
|
+
}
|
|
2381
|
+
}
|
|
2382
|
+
},
|
|
2383
|
+
_e = function (e) {
|
|
2384
|
+
for (var t = document.querySelectorAll(be), n = 0, r = t.length; n < r; n++) {
|
|
2385
|
+
var o = t[n];
|
|
2386
|
+
o && o.getAttribute(f) !== m && (Pe(e, o), o.parentNode && o.parentNode.removeChild(o));
|
|
2387
|
+
}
|
|
2388
|
+
};
|
|
2389
|
+
function Ce() {
|
|
2390
|
+
return "undefined" != typeof __webpack_nonce__ ? __webpack_nonce__ : null;
|
|
2391
|
+
}
|
|
2392
|
+
var Ie = function (e) {
|
|
2393
|
+
var t = document.head,
|
|
2394
|
+
n = e || t,
|
|
2395
|
+
r = document.createElement("style"),
|
|
2396
|
+
o = function (e) {
|
|
2397
|
+
var t = Array.from(e.querySelectorAll("style[".concat(f, "]")));
|
|
2398
|
+
return t[t.length - 1];
|
|
2399
|
+
}(n),
|
|
2400
|
+
s = void 0 !== o ? o.nextSibling : null;
|
|
2401
|
+
r.setAttribute(f, m), r.setAttribute(y, v);
|
|
2402
|
+
var i = Ce();
|
|
2403
|
+
return i && r.setAttribute("nonce", i), n.insertBefore(r, s), r;
|
|
2404
|
+
},
|
|
2405
|
+
Ae = function () {
|
|
2406
|
+
function e(e) {
|
|
2407
|
+
this.element = Ie(e), this.element.appendChild(document.createTextNode("")), this.sheet = function (e) {
|
|
2408
|
+
if (e.sheet) return e.sheet;
|
|
2409
|
+
for (var t = document.styleSheets, n = 0, r = t.length; n < r; n++) {
|
|
2410
|
+
var o = t[n];
|
|
2411
|
+
if (o.ownerNode === e) return o;
|
|
2412
|
+
}
|
|
2413
|
+
throw he(17);
|
|
2414
|
+
}(this.element), this.length = 0;
|
|
2415
|
+
}
|
|
2416
|
+
return e.prototype.insertRule = function (e, t) {
|
|
2417
|
+
try {
|
|
2418
|
+
return this.sheet.insertRule(t, e), this.length++, !0;
|
|
2419
|
+
} catch (e) {
|
|
2420
|
+
return !1;
|
|
2421
|
+
}
|
|
2422
|
+
}, e.prototype.deleteRule = function (e) {
|
|
2423
|
+
this.sheet.deleteRule(e), this.length--;
|
|
2424
|
+
}, e.prototype.getRule = function (e) {
|
|
2425
|
+
var t = this.sheet.cssRules[e];
|
|
2426
|
+
return t && t.cssText ? t.cssText : "";
|
|
2427
|
+
}, e;
|
|
2428
|
+
}(),
|
|
2429
|
+
Oe = function () {
|
|
2430
|
+
function e(e) {
|
|
2431
|
+
this.element = Ie(e), this.nodes = this.element.childNodes, this.length = 0;
|
|
2432
|
+
}
|
|
2433
|
+
return e.prototype.insertRule = function (e, t) {
|
|
2434
|
+
if (e <= this.length && e >= 0) {
|
|
2435
|
+
var n = document.createTextNode(t);
|
|
2436
|
+
return this.element.insertBefore(n, this.nodes[e] || null), this.length++, !0;
|
|
2437
|
+
}
|
|
2438
|
+
return !1;
|
|
2439
|
+
}, e.prototype.deleteRule = function (e) {
|
|
2440
|
+
this.element.removeChild(this.nodes[e]), this.length--;
|
|
2441
|
+
}, e.prototype.getRule = function (e) {
|
|
2442
|
+
return e < this.length ? this.nodes[e].textContent : "";
|
|
2443
|
+
}, e;
|
|
2444
|
+
}(),
|
|
2445
|
+
De = function () {
|
|
2446
|
+
function e(e) {
|
|
2447
|
+
this.rules = [], this.length = 0;
|
|
2448
|
+
}
|
|
2449
|
+
return e.prototype.insertRule = function (e, t) {
|
|
2450
|
+
return e <= this.length && (this.rules.splice(e, 0, t), this.length++, !0);
|
|
2451
|
+
}, e.prototype.deleteRule = function (e) {
|
|
2452
|
+
this.rules.splice(e, 1), this.length--;
|
|
2453
|
+
}, e.prototype.getRule = function (e) {
|
|
2454
|
+
return e < this.length ? this.rules[e] : "";
|
|
2455
|
+
}, e;
|
|
2456
|
+
}(),
|
|
2457
|
+
Re = S,
|
|
2458
|
+
Te = {
|
|
2459
|
+
isServer: !S,
|
|
2460
|
+
useCSSOMInjection: !w
|
|
2461
|
+
},
|
|
2462
|
+
ke = function () {
|
|
2463
|
+
function e(e, n, r) {
|
|
2464
|
+
void 0 === e && (e = C), void 0 === n && (n = {});
|
|
2465
|
+
var o = this;
|
|
2466
|
+
this.options = __assign(__assign({}, Te), e), this.gs = n, this.names = new Map(r), this.server = !!e.isServer, !this.server && S && Re && (Re = !1, _e(this)), ue(this, function () {
|
|
2467
|
+
return function (e) {
|
|
2468
|
+
for (var t = e.getTag(), n = t.length, r = "", o = function (n) {
|
|
2469
|
+
var o = function (e) {
|
|
2470
|
+
return ve.get(e);
|
|
2471
|
+
}(n);
|
|
2472
|
+
if (void 0 === o) return "continue";
|
|
2473
|
+
var s = e.names.get(o),
|
|
2474
|
+
i = t.getGroup(n);
|
|
2475
|
+
if (void 0 === s || !s.size || 0 === i.length) return "continue";
|
|
2476
|
+
var a = "".concat(f, ".g").concat(n, '[id="').concat(o, '"]'),
|
|
2477
|
+
c = "";
|
|
2478
|
+
void 0 !== s && s.forEach(function (e) {
|
|
2479
|
+
e.length > 0 && (c += "".concat(e, ","));
|
|
2480
|
+
}), r += "".concat(i).concat(a, '{content:"').concat(c, '"}').concat(g);
|
|
2481
|
+
}, s = 0; s < n; s++) o(s);
|
|
2482
|
+
return r;
|
|
2483
|
+
}(o);
|
|
2484
|
+
});
|
|
2485
|
+
}
|
|
2486
|
+
return e.registerId = function (e) {
|
|
2487
|
+
return Se(e);
|
|
2488
|
+
}, e.prototype.rehydrate = function () {
|
|
2489
|
+
!this.server && S && _e(this);
|
|
2490
|
+
}, e.prototype.reconstructWithOptions = function (n, r) {
|
|
2491
|
+
return void 0 === r && (r = !0), new e(__assign(__assign({}, this.options), n), this.gs, r && this.names || void 0);
|
|
2492
|
+
}, e.prototype.allocateGSInstance = function (e) {
|
|
2493
|
+
return this.gs[e] = (this.gs[e] || 0) + 1;
|
|
2494
|
+
}, e.prototype.getTag = function () {
|
|
2495
|
+
return this.tag || (this.tag = (e = function (e) {
|
|
2496
|
+
var t = e.useCSSOMInjection,
|
|
2497
|
+
n = e.target;
|
|
2498
|
+
return e.isServer ? new De(n) : t ? new Ae(n) : new Oe(n);
|
|
2499
|
+
}(this.options), new fe(e)));
|
|
2500
|
+
var e;
|
|
2501
|
+
}, e.prototype.hasNameForId = function (e, t) {
|
|
2502
|
+
return this.names.has(e) && this.names.get(e).has(t);
|
|
2503
|
+
}, e.prototype.registerName = function (e, t) {
|
|
2504
|
+
if (Se(e), this.names.has(e)) this.names.get(e).add(t);else {
|
|
2505
|
+
var n = new Set();
|
|
2506
|
+
n.add(t), this.names.set(e, n);
|
|
2507
|
+
}
|
|
2508
|
+
}, e.prototype.insertRules = function (e, t, n) {
|
|
2509
|
+
this.registerName(e, t), this.getTag().insertRules(Se(e), n);
|
|
2510
|
+
}, e.prototype.clearNames = function (e) {
|
|
2511
|
+
this.names.has(e) && this.names.get(e).clear();
|
|
2512
|
+
}, e.prototype.clearRules = function (e) {
|
|
2513
|
+
this.getTag().clearGroup(Se(e)), this.clearNames(e);
|
|
2514
|
+
}, e.prototype.clearTag = function () {
|
|
2515
|
+
this.tag = void 0;
|
|
2516
|
+
}, e;
|
|
2517
|
+
}(),
|
|
2518
|
+
je = /&/g,
|
|
2519
|
+
xe = /^\s*\/\/.*$/gm;
|
|
2520
|
+
function Ve(e, t) {
|
|
2521
|
+
return e.map(function (e) {
|
|
2522
|
+
return "rule" === e.type && (e.value = "".concat(t, " ").concat(e.value), e.value = e.value.replaceAll(",", ",".concat(t, " ")), e.props = e.props.map(function (e) {
|
|
2523
|
+
return "".concat(t, " ").concat(e);
|
|
2524
|
+
})), Array.isArray(e.children) && "@keyframes" !== e.type && (e.children = Ve(e.children, t)), e;
|
|
2525
|
+
});
|
|
2526
|
+
}
|
|
2527
|
+
function Fe(e) {
|
|
2528
|
+
var t,
|
|
2529
|
+
n,
|
|
2530
|
+
r,
|
|
2531
|
+
o = void 0 === e ? C : e,
|
|
2532
|
+
s = o.options,
|
|
2533
|
+
i = void 0 === s ? C : s,
|
|
2534
|
+
a = o.plugins,
|
|
2535
|
+
c = void 0 === a ? _ : a,
|
|
2536
|
+
l = function (e, r, o) {
|
|
2537
|
+
return o.startsWith(n) && o.endsWith(n) && o.replaceAll(n, "").length > 0 ? ".".concat(t) : e;
|
|
2538
|
+
},
|
|
2539
|
+
u = c.slice();
|
|
2540
|
+
u.push(function (e) {
|
|
2541
|
+
e.type === RULESET && e.value.includes("&") && (e.props[0] = e.props[0].replace(je, n).replace(r, l));
|
|
2542
|
+
}), i.prefix && u.push(prefixer), u.push(stringify);
|
|
2543
|
+
var p = function (e, o, s, a) {
|
|
2544
|
+
void 0 === o && (o = ""), void 0 === s && (s = ""), void 0 === a && (a = "&"), t = a, n = o, r = new RegExp("\\".concat(n, "\\b"), "g");
|
|
2545
|
+
var c = e.replace(xe, ""),
|
|
2546
|
+
l = compile(s || o ? "".concat(s, " ").concat(o, " { ").concat(c, " }") : c);
|
|
2547
|
+
i.namespace && (l = Ve(l, i.namespace));
|
|
2548
|
+
var p = [];
|
|
2549
|
+
return serialize(l, middleware(u.concat(rulesheet(function (e) {
|
|
2550
|
+
return p.push(e);
|
|
2551
|
+
})))), p;
|
|
2552
|
+
};
|
|
2553
|
+
return p.hash = c.length ? c.reduce(function (e, t) {
|
|
2554
|
+
return t.name || he(15), M(e, t.name);
|
|
2555
|
+
}, F).toString() : "", p;
|
|
2556
|
+
}
|
|
2557
|
+
var Me = new ke(),
|
|
2558
|
+
ze = Fe(),
|
|
2559
|
+
$e = /*#__PURE__*/React__default["default"].createContext({
|
|
2560
|
+
shouldForwardProp: void 0,
|
|
2561
|
+
styleSheet: Me,
|
|
2562
|
+
stylis: ze
|
|
2563
|
+
});
|
|
2564
|
+
$e.Consumer;
|
|
2565
|
+
function Ge() {
|
|
2566
|
+
return React.useContext($e);
|
|
2567
|
+
}
|
|
2568
|
+
var qe = function () {
|
|
2569
|
+
function e(e, t) {
|
|
2570
|
+
var n = this;
|
|
2571
|
+
this.inject = function (e, t) {
|
|
2572
|
+
void 0 === t && (t = ze);
|
|
2573
|
+
var r = n.name + t.hash;
|
|
2574
|
+
e.hasNameForId(n.id, r) || e.insertRules(n.id, r, t(n.rules, r, "@keyframes"));
|
|
2575
|
+
}, this.name = e, this.id = "sc-keyframes-".concat(e), this.rules = t, ue(this, function () {
|
|
2576
|
+
throw he(12, String(n.name));
|
|
2577
|
+
});
|
|
2578
|
+
}
|
|
2579
|
+
return e.prototype.getName = function (e) {
|
|
2580
|
+
return void 0 === e && (e = ze), this.name + e.hash;
|
|
2581
|
+
}, e;
|
|
2582
|
+
}(),
|
|
2583
|
+
We = function (e) {
|
|
2584
|
+
return e >= "A" && e <= "Z";
|
|
2585
|
+
};
|
|
2586
|
+
function He(e) {
|
|
2587
|
+
for (var t = "", n = 0; n < e.length; n++) {
|
|
2588
|
+
var r = e[n];
|
|
2589
|
+
if (1 === n && "-" === r && "-" === e[0]) return e;
|
|
2590
|
+
We(r) ? t += "-" + r.toLowerCase() : t += r;
|
|
2591
|
+
}
|
|
2592
|
+
return t.startsWith("ms-") ? "-" + t : t;
|
|
2593
|
+
}
|
|
2594
|
+
var Ue = function (e) {
|
|
2595
|
+
return null == e || !1 === e || "" === e;
|
|
2596
|
+
},
|
|
2597
|
+
Je = function (t) {
|
|
2598
|
+
var n,
|
|
2599
|
+
r,
|
|
2600
|
+
o = [];
|
|
2601
|
+
for (var s in t) {
|
|
2602
|
+
var i = t[s];
|
|
2603
|
+
t.hasOwnProperty(s) && !Ue(i) && (Array.isArray(i) && i.isCss || oe(i) ? o.push("".concat(He(s), ":"), i, ";") : ce(i) ? o.push.apply(o, __spreadArray(__spreadArray(["".concat(s, " {")], Je(i), !1), ["}"], !1)) : o.push("".concat(He(s), ": ").concat((n = s, null == (r = i) || "boolean" == typeof r || "" === r ? "" : "number" != typeof r || 0 === r || n in unitlessKeys || n.startsWith("--") ? String(r).trim() : "".concat(r, "px")), ";")));
|
|
2604
|
+
}
|
|
2605
|
+
return o;
|
|
2606
|
+
};
|
|
2607
|
+
function Xe(e, t, n, r) {
|
|
2608
|
+
if (Ue(e)) return [];
|
|
2609
|
+
if (se(e)) return [".".concat(e.styledComponentId)];
|
|
2610
|
+
if (oe(e)) {
|
|
2611
|
+
if (!oe(s = e) || s.prototype && s.prototype.isReactComponent || !t) return [e];
|
|
2612
|
+
var o = e(t);
|
|
2613
|
+
return "production" === process.env.NODE_ENV || "object" != typeof o || Array.isArray(o) || o instanceof qe || ce(o) || null === o || console.error("".concat(B(e), " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")), Xe(o, t, n, r);
|
|
2614
|
+
}
|
|
2615
|
+
var s;
|
|
2616
|
+
return e instanceof qe ? n ? (e.inject(n, r), [e.getName(r)]) : [e] : ce(e) ? Je(e) : Array.isArray(e) ? Array.prototype.concat.apply(_, e.map(function (e) {
|
|
2617
|
+
return Xe(e, t, n, r);
|
|
2618
|
+
})) : [e.toString()];
|
|
2619
|
+
}
|
|
2620
|
+
function Ze(e) {
|
|
2621
|
+
for (var t = 0; t < e.length; t += 1) {
|
|
2622
|
+
var n = e[t];
|
|
2623
|
+
if (oe(n) && !se(n)) return !1;
|
|
2624
|
+
}
|
|
2625
|
+
return !0;
|
|
2626
|
+
}
|
|
2627
|
+
var Ke = z(v),
|
|
2628
|
+
Qe = function () {
|
|
2629
|
+
function e(e, t, n) {
|
|
2630
|
+
this.rules = e, this.staticRulesId = "", this.isStatic = "production" === process.env.NODE_ENV && (void 0 === n || n.isStatic) && Ze(e), this.componentId = t, this.baseHash = M(Ke, t), this.baseStyle = n, ke.registerId(t);
|
|
2631
|
+
}
|
|
2632
|
+
return e.prototype.generateAndInjectStyles = function (e, t, n) {
|
|
2633
|
+
var r = this.baseStyle ? this.baseStyle.generateAndInjectStyles(e, t, n) : "";
|
|
2634
|
+
if (this.isStatic && !n.hash) {
|
|
2635
|
+
if (this.staticRulesId && t.hasNameForId(this.componentId, this.staticRulesId)) r = ie(r, this.staticRulesId);else {
|
|
2636
|
+
var o = ae(Xe(this.rules, e, t, n)),
|
|
2637
|
+
s = x(M(this.baseHash, o) >>> 0);
|
|
2638
|
+
if (!t.hasNameForId(this.componentId, s)) {
|
|
2639
|
+
var i = n(o, ".".concat(s), void 0, this.componentId);
|
|
2640
|
+
t.insertRules(this.componentId, s, i);
|
|
2641
|
+
}
|
|
2642
|
+
r = ie(r, s), this.staticRulesId = s;
|
|
2643
|
+
}
|
|
2644
|
+
} else {
|
|
2645
|
+
for (var a = M(this.baseHash, n.hash), c = "", l = 0; l < this.rules.length; l++) {
|
|
2646
|
+
var u = this.rules[l];
|
|
2647
|
+
if ("string" == typeof u) c += u, "production" !== process.env.NODE_ENV && (a = M(a, u));else if (u) {
|
|
2648
|
+
var p = ae(Xe(u, e, t, n));
|
|
2649
|
+
a = M(a, p + l), c += p;
|
|
2650
|
+
}
|
|
2651
|
+
}
|
|
2652
|
+
if (c) {
|
|
2653
|
+
var d = x(a >>> 0);
|
|
2654
|
+
t.hasNameForId(this.componentId, d) || t.insertRules(this.componentId, d, n(c, ".".concat(d), void 0, this.componentId)), r = ie(r, d);
|
|
2655
|
+
}
|
|
2656
|
+
}
|
|
2657
|
+
return r;
|
|
2658
|
+
}, e;
|
|
2659
|
+
}(),
|
|
2660
|
+
et = /*#__PURE__*/React__default["default"].createContext(void 0);
|
|
2661
|
+
et.Consumer;
|
|
2662
|
+
var ot = {},
|
|
2663
|
+
st = new Set();
|
|
2664
|
+
function it(e, o, s) {
|
|
2665
|
+
var i = se(e),
|
|
2666
|
+
a = e,
|
|
2667
|
+
c = !L(e),
|
|
2668
|
+
p = o.attrs,
|
|
2669
|
+
d = void 0 === p ? _ : p,
|
|
2670
|
+
h = o.componentId,
|
|
2671
|
+
f = void 0 === h ? function (e, t) {
|
|
2672
|
+
var n = "string" != typeof e ? "sc" : R(e);
|
|
2673
|
+
ot[n] = (ot[n] || 0) + 1;
|
|
2674
|
+
var r = "".concat(n, "-").concat($(v + n + ot[n]));
|
|
2675
|
+
return t ? "".concat(t, "-").concat(r) : r;
|
|
2676
|
+
}(o.displayName, o.parentComponentId) : h,
|
|
2677
|
+
m = o.displayName,
|
|
2678
|
+
y = void 0 === m ? function (e) {
|
|
2679
|
+
return L(e) ? "styled.".concat(e) : "Styled(".concat(B(e), ")");
|
|
2680
|
+
}(e) : m,
|
|
2681
|
+
g = o.displayName && o.componentId ? "".concat(R(o.displayName), "-").concat(o.componentId) : o.componentId || f,
|
|
2682
|
+
S = i && a.attrs ? a.attrs.concat(d).filter(Boolean) : d,
|
|
2683
|
+
w = o.shouldForwardProp;
|
|
2684
|
+
if (i && a.shouldForwardProp) {
|
|
2685
|
+
var b = a.shouldForwardProp;
|
|
2686
|
+
if (o.shouldForwardProp) {
|
|
2687
|
+
var E = o.shouldForwardProp;
|
|
2688
|
+
w = function (e, t) {
|
|
2689
|
+
return b(e, t) && E(e, t);
|
|
2690
|
+
};
|
|
2691
|
+
} else w = b;
|
|
2692
|
+
}
|
|
2693
|
+
var N = new Qe(s, g, i ? a.componentStyle : void 0);
|
|
2694
|
+
function O(e, o) {
|
|
2695
|
+
return function (e, o, s) {
|
|
2696
|
+
var i = e.attrs,
|
|
2697
|
+
a = e.componentStyle,
|
|
2698
|
+
c = e.defaultProps,
|
|
2699
|
+
p = e.foldedComponentIds,
|
|
2700
|
+
d = e.styledComponentId,
|
|
2701
|
+
h = e.target,
|
|
2702
|
+
f = React__default["default"].useContext(et),
|
|
2703
|
+
m = Ge(),
|
|
2704
|
+
y = e.shouldForwardProp || m.shouldForwardProp;
|
|
2705
|
+
"production" !== process.env.NODE_ENV && React.useDebugValue(d);
|
|
2706
|
+
var v = I(o, f, c) || C,
|
|
2707
|
+
g = function (e, n, r) {
|
|
2708
|
+
for (var o, s = __assign(__assign({}, n), {
|
|
2709
|
+
className: void 0,
|
|
2710
|
+
theme: r
|
|
2711
|
+
}), i = 0; i < e.length; i += 1) {
|
|
2712
|
+
var a = oe(o = e[i]) ? o(s) : o;
|
|
2713
|
+
for (var c in a) s[c] = "className" === c ? ie(s[c], a[c]) : "style" === c ? __assign(__assign({}, s[c]), a[c]) : a[c];
|
|
2714
|
+
}
|
|
2715
|
+
return n.className && (s.className = ie(s.className, n.className)), s;
|
|
2716
|
+
}(i, o, v),
|
|
2717
|
+
S = g.as || h,
|
|
2718
|
+
w = {};
|
|
2719
|
+
for (var b in g) void 0 === g[b] || "$" === b[0] || "as" === b || "theme" === b && g.theme === v || ("forwardedAs" === b ? w.as = g.forwardedAs : y && !y(b, S) || (w[b] = g[b], y || "development" !== process.env.NODE_ENV || isPropValid(b) || st.has(b) || !A.has(S) || (st.add(b), console.warn('styled-components: it looks like an unknown prop "'.concat(b, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
|
|
2720
|
+
var E = function (e, t) {
|
|
2721
|
+
var n = Ge(),
|
|
2722
|
+
r = e.generateAndInjectStyles(t, n.styleSheet, n.stylis);
|
|
2723
|
+
return "production" !== process.env.NODE_ENV && React.useDebugValue(r), r;
|
|
2724
|
+
}(a, g);
|
|
2725
|
+
"production" !== process.env.NODE_ENV && e.warnTooManyClasses && e.warnTooManyClasses(E);
|
|
2726
|
+
var N = ie(p, d);
|
|
2727
|
+
return E && (N += " " + E), g.className && (N += " " + g.className), w[L(S) && !A.has(S) ? "class" : "className"] = N, s && (w.ref = s), /*#__PURE__*/React.createElement(S, w);
|
|
2728
|
+
}(D, e, o);
|
|
2729
|
+
}
|
|
2730
|
+
O.displayName = y;
|
|
2731
|
+
var D = /*#__PURE__*/React__default["default"].forwardRef(O);
|
|
2732
|
+
return D.attrs = S, D.componentStyle = N, D.displayName = y, D.shouldForwardProp = w, D.foldedComponentIds = i ? ie(a.foldedComponentIds, a.styledComponentId) : "", D.styledComponentId = g, D.target = i ? a.target : e, Object.defineProperty(D, "defaultProps", {
|
|
2733
|
+
get: function () {
|
|
2734
|
+
return this._foldedDefaultProps;
|
|
2735
|
+
},
|
|
2736
|
+
set: function (e) {
|
|
2737
|
+
this._foldedDefaultProps = i ? function (e) {
|
|
2738
|
+
for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
|
|
2739
|
+
for (var r = 0, o = t; r < o.length; r++) le(e, o[r], !0);
|
|
2740
|
+
return e;
|
|
2741
|
+
}({}, a.defaultProps, e) : e;
|
|
2742
|
+
}
|
|
2743
|
+
}), "production" !== process.env.NODE_ENV && (P(y, g), D.warnTooManyClasses = function (e, t) {
|
|
2744
|
+
var n = {},
|
|
2745
|
+
r = !1;
|
|
2746
|
+
return function (o) {
|
|
2747
|
+
if (!r && (n[o] = !0, Object.keys(n).length >= 200)) {
|
|
2748
|
+
var s = t ? ' with the id of "'.concat(t, '"') : "";
|
|
2749
|
+
console.warn("Over ".concat(200, " classes were generated for component ").concat(e).concat(s, ".\n") + "Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"), r = !0, n = {};
|
|
2750
|
+
}
|
|
2751
|
+
};
|
|
2752
|
+
}(y, g)), ue(D, function () {
|
|
2753
|
+
return ".".concat(D.styledComponentId);
|
|
2754
|
+
}), c && re(D, e, {
|
|
2755
|
+
attrs: !0,
|
|
2756
|
+
componentStyle: !0,
|
|
2757
|
+
displayName: !0,
|
|
2758
|
+
foldedComponentIds: !0,
|
|
2759
|
+
shouldForwardProp: !0,
|
|
2760
|
+
styledComponentId: !0,
|
|
2761
|
+
target: !0
|
|
2762
|
+
}), D;
|
|
2763
|
+
}
|
|
2764
|
+
function at(e, t) {
|
|
2765
|
+
for (var n = [e[0]], r = 0, o = t.length; r < o; r += 1) n.push(t[r], e[r + 1]);
|
|
2766
|
+
return n;
|
|
2767
|
+
}
|
|
2768
|
+
var ct = function (e) {
|
|
2769
|
+
return Object.assign(e, {
|
|
2770
|
+
isCss: !0
|
|
2771
|
+
});
|
|
2772
|
+
};
|
|
2773
|
+
function lt(t) {
|
|
2774
|
+
for (var n = [], r = 1; r < arguments.length; r++) n[r - 1] = arguments[r];
|
|
2775
|
+
if (oe(t) || ce(t)) return ct(Xe(at(_, __spreadArray([t], n, !0))));
|
|
2776
|
+
var o = t;
|
|
2777
|
+
return 0 === n.length && 1 === o.length && "string" == typeof o[0] ? Xe(o) : ct(Xe(at(o, n)));
|
|
2778
|
+
}
|
|
2779
|
+
function ut(n, r, o) {
|
|
2780
|
+
if (void 0 === o && (o = C), !r) throw he(1, r);
|
|
2781
|
+
var s = function (t) {
|
|
2782
|
+
for (var s = [], i = 1; i < arguments.length; i++) s[i - 1] = arguments[i];
|
|
2783
|
+
return n(r, o, lt.apply(void 0, __spreadArray([t], s, !1)));
|
|
2784
|
+
};
|
|
2785
|
+
return s.attrs = function (e) {
|
|
2786
|
+
return ut(n, r, __assign(__assign({}, o), {
|
|
2787
|
+
attrs: Array.prototype.concat(o.attrs, e).filter(Boolean)
|
|
2788
|
+
}));
|
|
2789
|
+
}, s.withConfig = function (e) {
|
|
2790
|
+
return ut(n, r, __assign(__assign({}, o), e));
|
|
2791
|
+
}, s;
|
|
2792
|
+
}
|
|
2793
|
+
var pt = function (e) {
|
|
2794
|
+
return ut(it, e);
|
|
2795
|
+
},
|
|
2796
|
+
dt = pt;
|
|
2797
|
+
A.forEach(function (e) {
|
|
2798
|
+
dt[e] = pt(e);
|
|
2799
|
+
});
|
|
2800
|
+
"production" !== process.env.NODE_ENV && "undefined" != typeof navigator && "ReactNative" === navigator.product && console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native");
|
|
2801
|
+
var wt = "__sc-".concat(f, "__");
|
|
2802
|
+
"production" !== process.env.NODE_ENV && "test" !== process.env.NODE_ENV && "undefined" != typeof window && (window[wt] || (window[wt] = 0), 1 === window[wt] && console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."), window[wt] += 1);
|
|
2803
|
+
|
|
2804
|
+
const ButtonContainer = dt.div`
|
|
2805
|
+
//position: relative;
|
|
2806
|
+
display: flex;
|
|
2807
|
+
align-items: center;
|
|
2808
|
+
justify-content: center;
|
|
2809
|
+
align-content: center;
|
|
2810
|
+
width: ${props => props.width};
|
|
2811
|
+
height: ${props => props.height};
|
|
2812
|
+
`;
|
|
2813
|
+
const ButtonItem = dt.div`
|
|
2814
|
+
display: flex;
|
|
2815
|
+
align-items: center;
|
|
2816
|
+
justify-content: center;
|
|
2817
|
+
align-content: center;
|
|
2818
|
+
flex-wrap: nowrap;
|
|
2819
|
+
overflow: hidden;
|
|
2820
|
+
width: ${props => props.width};
|
|
2821
|
+
height: ${props => props.height};
|
|
2822
|
+
color: ${props => props.disabled ? props.disabled_text_color : props.text_color};
|
|
2823
|
+
border: ${props => `1px solid ${props.disabled ? props.disabled_border_color : props.border_color}`};
|
|
2824
|
+
border-radius: 12px;
|
|
2825
|
+
background-color: ${props => props.disabled ? props.disabled_background_color : props.background_color};
|
|
2826
|
+
box-sizing: border-box;
|
|
2827
|
+
gap: 8px;
|
|
2828
|
+
padding: ${props => props.padding};
|
|
2829
|
+
&:hover {
|
|
2830
|
+
background-color: ${props => props.disabled ? props.disabled_backgroundColor : props.hover_background_color};
|
|
2831
|
+
border-color: ${props => props.disabled ? props.disabled_border_color : props.hover_border_color};
|
|
2832
|
+
color: ${props => props.disabled ? props.disabled_text_color : props.hover_text_color};
|
|
2833
|
+
box-shadow: ${props => props.disabled ? '' : '5px 5px 10px 0px rgba(0, 0, 0, 0.2)'};
|
|
2834
|
+
cursor: ${props => !props.disabled ? 'pointer' : 'default'};
|
|
2835
|
+
}
|
|
2836
|
+
&.ButtonItem-clicked {
|
|
2837
|
+
background-color: ${props => props.background_color};
|
|
2838
|
+
cursor: pointer;
|
|
2839
|
+
box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.3);
|
|
2840
|
+
transition: background-color 0.3s, color 0.3s;
|
|
2841
|
+
}
|
|
2842
|
+
`;
|
|
2843
|
+
const Label = dt.label`
|
|
2844
|
+
font-family: "Poppins";
|
|
2845
|
+
font-size: 14px;
|
|
2846
|
+
font-weight: 400;
|
|
2847
|
+
line-height: 0;
|
|
2848
|
+
pointer-events: none;
|
|
2849
|
+
user-select: none;
|
|
2850
|
+
`;
|
|
2851
|
+
const IconWrapper = dt.div`
|
|
2852
|
+
display: flex;
|
|
2853
|
+
align-items: center;
|
|
2854
|
+
justify-content: center;
|
|
2855
|
+
align-content: center;
|
|
2856
|
+
`;
|
|
2857
|
+
const InputCommit = dt.input`
|
|
2858
|
+
font-family: "Poppins", sans-serif;
|
|
2859
|
+
border: ${props => `0px solid ${props.disabled ? props.disabled_border_color : props.hover_border_color}`};
|
|
2860
|
+
border-radius: 8px;
|
|
2861
|
+
font-weight: 400;
|
|
2862
|
+
font-size: 14px;
|
|
2863
|
+
width: ${props => props.width};
|
|
2864
|
+
height: ${props => props.height};
|
|
2865
|
+
color: ${props => props.disabled ? props.disabled_text_color : props.text_color};
|
|
2866
|
+
border: ${props => `1px solid ${props.disabled ? props.disabled_border_color : props.border_color}`};
|
|
2867
|
+
border-radius: 12px;
|
|
2868
|
+
background-color: ${props => props.disabled ? props.disabled_background_color : props.background_color};
|
|
2869
|
+
cursor: pointer;
|
|
2870
|
+
padding: ${props => props.padding};
|
|
2871
|
+
|
|
2872
|
+
&:hover {
|
|
2873
|
+
background-color: ${props => props.disabled ? props.disabled_backgroundColor : props.hover_background_color};
|
|
2874
|
+
border-color: ${props => props.disabled ? props.disabled_border_color : props.hover_border_color};
|
|
2875
|
+
color: ${props => props.disabled ? props.disabled_text_color : props.hover_text_color};
|
|
2876
|
+
box-shadow: ${props => props.disabled ? '' : '5px 5px 10px 0px rgba(0, 0, 0, 0.2)'};
|
|
2877
|
+
cursor: ${props => !props.disabled ? 'pointer' : 'default'};
|
|
2878
|
+
}
|
|
2879
|
+
&.InputCommit-clicked {
|
|
2880
|
+
background-color: ${props => props.background_color};
|
|
2881
|
+
cursor: pointer;
|
|
2882
|
+
box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.3);
|
|
2883
|
+
transition: background-color 0.3s, color 0.3s;
|
|
2884
|
+
}
|
|
2885
|
+
`;
|
|
2886
|
+
|
|
2887
|
+
const FilterIcon = _ref => {
|
|
2888
|
+
let {
|
|
2889
|
+
width = '17',
|
|
2890
|
+
height = '17',
|
|
2891
|
+
color = '#212121'
|
|
2892
|
+
} = _ref;
|
|
2893
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
2894
|
+
width: width,
|
|
2895
|
+
height: height,
|
|
2896
|
+
viewBox: "0 0 17 17",
|
|
2897
|
+
fill: "none",
|
|
2898
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
2899
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
2900
|
+
id: "Filter Active"
|
|
2901
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
2902
|
+
id: "icon",
|
|
2903
|
+
d: "M2.5 4.48438C2.5 3.94531 2.92188 3.5 3.46094 3.5H13.5156C14.0547 3.5 14.5 3.94531 14.5 4.48438C14.5 4.71875 14.4062 4.92969 14.2656 5.09375L10.375 9.89844V13.25C10.375 13.6719 10.0234 14 9.60156 14C9.4375 14 9.27344 13.9531 9.13281 13.8359L6.97656 12.125C6.74219 11.9375 6.625 11.6797 6.625 11.3984V9.89844L2.71094 5.09375C2.57031 4.92969 2.5 4.71875 2.5 4.48438ZM3.78906 4.625L7.60938 9.33594C7.70312 9.45312 7.75 9.57031 7.75 9.6875V11.3047L9.25 12.5V9.6875C9.25 9.57031 9.27344 9.45312 9.36719 9.33594L13.2109 4.625H3.78906Z",
|
|
2904
|
+
fill: color
|
|
2905
|
+
}), /*#__PURE__*/React__default["default"].createElement("circle", {
|
|
2906
|
+
id: "Ellipse 8",
|
|
2907
|
+
cx: "13.5",
|
|
2908
|
+
cy: "4.5",
|
|
2909
|
+
r: "3",
|
|
2910
|
+
fill: color
|
|
2911
|
+
})));
|
|
2912
|
+
};
|
|
2913
|
+
|
|
2914
|
+
const OptionsIcon = _ref => {
|
|
2915
|
+
let {
|
|
2916
|
+
width = '12',
|
|
2917
|
+
height = '12',
|
|
2918
|
+
color = '#212121'
|
|
2919
|
+
} = _ref;
|
|
2920
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
2921
|
+
width: width,
|
|
2922
|
+
height: height,
|
|
2923
|
+
viewBox: "0 0 12 12",
|
|
2924
|
+
fill: "none",
|
|
2925
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
2926
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
2927
|
+
d: "M0 9.75C0 9.44531 0.234375 9.1875 0.5625 9.1875H1.94531C2.17969 8.4375 2.90625 7.875 3.75 7.875C4.57031 7.875 5.29688 8.4375 5.53125 9.1875H11.4375C11.7422 9.1875 12 9.44531 12 9.75C12 10.0781 11.7422 10.3125 11.4375 10.3125H5.53125C5.29688 11.0859 4.57031 11.625 3.75 11.625C2.90625 11.625 2.17969 11.0859 1.94531 10.3125H0.5625C0.234375 10.3125 0 10.0781 0 9.75ZM3 9.75C3 10.1719 3.32812 10.5 3.75 10.5C4.14844 10.5 4.5 10.1719 4.5 9.75C4.5 9.35156 4.14844 9 3.75 9C3.32812 9 3 9.35156 3 9.75ZM7.5 6C7.5 6.42188 7.82812 6.75 8.25 6.75C8.64844 6.75 9 6.42188 9 6C9 5.60156 8.64844 5.25 8.25 5.25C7.82812 5.25 7.5 5.60156 7.5 6ZM8.25 4.125C9.07031 4.125 9.79688 4.6875 10.0312 5.4375H11.4375C11.7422 5.4375 12 5.69531 12 6C12 6.32812 11.7422 6.5625 11.4375 6.5625H10.0312C9.79688 7.33594 9.07031 7.875 8.25 7.875C7.40625 7.875 6.67969 7.33594 6.44531 6.5625H0.5625C0.234375 6.5625 0 6.32812 0 6C0 5.69531 0.234375 5.4375 0.5625 5.4375H6.44531C6.67969 4.6875 7.40625 4.125 8.25 4.125ZM4.5 3C4.89844 3 5.25 2.67188 5.25 2.25C5.25 1.85156 4.89844 1.5 4.5 1.5C4.07812 1.5 3.75 1.85156 3.75 2.25C3.75 2.67188 4.07812 3 4.5 3ZM6.28125 1.6875H11.4375C11.7422 1.6875 12 1.94531 12 2.25C12 2.57812 11.7422 2.8125 11.4375 2.8125H6.28125C6.04688 3.58594 5.32031 4.125 4.5 4.125C3.65625 4.125 2.92969 3.58594 2.69531 2.8125H0.5625C0.234375 2.8125 0 2.57812 0 2.25C0 1.94531 0.234375 1.6875 0.5625 1.6875H2.69531C2.92969 0.9375 3.65625 0.375 4.5 0.375C5.32031 0.375 6.04688 0.9375 6.28125 1.6875Z",
|
|
2928
|
+
fill: color
|
|
2929
|
+
}));
|
|
2930
|
+
};
|
|
2931
|
+
|
|
2932
|
+
const DownloadIcon = _ref => {
|
|
2933
|
+
let {
|
|
2934
|
+
width = '8',
|
|
2935
|
+
height = '9',
|
|
2936
|
+
color = '#212121'
|
|
2937
|
+
} = _ref;
|
|
2938
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
2939
|
+
width: width,
|
|
2940
|
+
height: height,
|
|
2941
|
+
viewBox: "0 0 20 20",
|
|
2942
|
+
fill: "none",
|
|
2943
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
2944
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
2945
|
+
d: "M9.57031 14.8438L3.94531 9.84375C3.67188 9.64844 3.67188 9.21875 3.90625 8.98438C4.10156 8.71094 4.53125 8.71094 4.76562 8.90625L9.375 13.0078V0.625C9.375 0.3125 9.64844 0 10 0C10.3125 0 10.625 0.3125 10.625 0.625V13.0078L15.1953 8.94531C15.4297 8.71094 15.8594 8.71094 16.0547 8.98438C16.2891 9.21875 16.2891 9.64844 16.0156 9.84375L10.3906 14.8438C10.2734 14.9609 10.1172 15 10 15C9.84375 15 9.6875 14.9609 9.57031 14.8438ZM17.5 12.5C18.8672 12.5 20 13.6328 20 15V17.5C20 18.9062 18.8672 20 17.5 20H2.5C1.09375 20 0 18.9062 0 17.5V15C0 13.6328 1.09375 12.5 2.5 12.5H4.375C4.6875 12.5 5 12.8125 5 13.125C5 13.4766 4.6875 13.75 4.375 13.75H2.5C1.79688 13.75 1.25 14.3359 1.25 15V17.5C1.25 18.2031 1.79688 18.75 2.5 18.75H17.5C18.1641 18.75 18.75 18.2031 18.75 17.5V15C18.75 14.3359 18.1641 13.75 17.5 13.75H15.625C15.2734 13.75 15 13.4766 15 13.125C15 12.8125 15.2734 12.5 15.625 12.5H17.5ZM17.1875 16.25C17.1875 16.7969 16.7578 17.1875 16.25 17.1875C15.7031 17.1875 15.3125 16.7969 15.3125 16.25C15.3125 15.7422 15.7031 15.3125 16.25 15.3125C16.7578 15.3125 17.1875 15.7422 17.1875 16.25Z",
|
|
2946
|
+
fill: color
|
|
2947
|
+
}));
|
|
2948
|
+
};
|
|
2949
|
+
|
|
2950
|
+
const DocumentIcon = _ref => {
|
|
2951
|
+
let {
|
|
2952
|
+
width = '19',
|
|
2953
|
+
height = '20',
|
|
2954
|
+
color = '#212121'
|
|
2955
|
+
} = _ref;
|
|
2956
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
2957
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2958
|
+
width: width,
|
|
2959
|
+
height: height,
|
|
2960
|
+
viewBox: "0 0 20 19",
|
|
2961
|
+
fill: "none"
|
|
2962
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
2963
|
+
d: "M10.5156 17.5H1.51563C0.963341 17.5 0.515625 17.0523 0.515625 16.5V1.5C0.515625 0.947715 0.96334 0.5 1.51563 0.5H13.5156C14.0679 0.5 14.5156 0.947715 14.5156 1.5V5.5",
|
|
2964
|
+
stroke: color,
|
|
2965
|
+
strokeLinecap: "round"
|
|
2966
|
+
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
2967
|
+
d: "M3.51562 5.5L9.51563 5.5",
|
|
2968
|
+
stroke: color,
|
|
2969
|
+
strokeLinecap: "round"
|
|
2970
|
+
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
2971
|
+
d: "M3.51562 8.5H6.51563",
|
|
2972
|
+
stroke: color,
|
|
2973
|
+
strokeLinecap: "round"
|
|
2974
|
+
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
2975
|
+
d: "M3.51562 11.5H5.51563",
|
|
2976
|
+
stroke: color,
|
|
2977
|
+
strokeLinecap: "round"
|
|
2978
|
+
}), /*#__PURE__*/React__default["default"].createElement("circle", {
|
|
2979
|
+
cx: "12.3866",
|
|
2980
|
+
cy: "11.371",
|
|
2981
|
+
r: "4.12098",
|
|
2982
|
+
fill: "transparent"
|
|
2983
|
+
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
2984
|
+
d: "M16.5068 11.3703C16.5068 9.91856 15.7107 8.56049 14.4464 7.81122C13.1585 7.08537 11.5898 7.08537 10.3254 7.81122C9.03754 8.56049 8.26489 9.91856 8.26489 11.3703C8.26489 12.8454 9.03754 14.2034 10.3254 14.9527C11.5898 15.6786 13.1585 15.6786 14.4464 14.9527C15.7107 14.2034 16.5068 12.8454 16.5068 11.3703ZM15.5469 15.0698C14.704 15.819 13.5801 16.2405 12.3859 16.2405C9.69315 16.2405 7.51562 14.0629 7.51562 11.3703C7.51562 8.701 9.69315 6.5 12.3859 6.5C15.0551 6.5 17.2561 8.701 17.2561 11.3703C17.2561 12.5878 16.8112 13.6883 16.0854 14.5547L19.3869 17.8561C19.5273 17.9966 19.5273 18.2542 19.3869 18.3947C19.2463 18.5351 18.9888 18.5351 18.8483 18.3947L15.5469 15.0698Z",
|
|
2985
|
+
fill: color
|
|
2986
|
+
}));
|
|
2987
|
+
};
|
|
2988
|
+
|
|
2989
|
+
const FlyIcon = _ref => {
|
|
2990
|
+
let {
|
|
2991
|
+
clicked,
|
|
2992
|
+
width = "8",
|
|
2993
|
+
height = "9",
|
|
2994
|
+
color = '#212121'
|
|
2995
|
+
} = _ref;
|
|
2996
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
2997
|
+
width: width,
|
|
2998
|
+
height: height,
|
|
2999
|
+
viewBox: "0 0 20 20",
|
|
3000
|
+
fill: "none",
|
|
3001
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
3002
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3003
|
+
d: "M19.4965 0.234375C19.8879 0.507812 20.0836 0.976562 19.9662 1.48438L17.4611 17.6953C17.422 18.0859 17.1871 18.4375 16.8349 18.5938C16.7174 18.6719 16.4826 18.75 16.2478 18.75C16.0912 18.75 15.9346 18.75 15.7389 18.6719L11.042 16.7188L7.67587 19.9219C7.63673 20 7.55844 20 7.48016 20C7.40188 20 7.28446 19.9609 7.20618 19.8047L4.77943 14.0625L0.747903 12.3828C0.317351 12.1875 0.00422266 11.7578 0.00422266 11.3281C-0.0349184 10.8594 0.199928 10.4297 0.630479 10.1562L18.1657 0.195312C18.3614 0.078125 18.5571 0 18.7919 0C19.0268 0 19.2616 0.078125 19.4965 0.234375ZM1.25674 11.25L4.81857 12.7734L16.1303 2.77344L1.25674 11.25ZM7.83243 18.0859L9.86777 16.1328L8.53697 15.5859C8.34127 15.5469 8.22384 15.3906 8.14556 15.1953C8.10642 15 8.14556 14.8047 8.26298 14.6484L14.8778 5.54688L5.91452 13.4766L7.83243 18.0859ZM16.2869 17.3438L18.5571 2.61719L9.75034 14.7266L16.2869 17.3438Z",
|
|
3004
|
+
fill: color
|
|
3005
|
+
}));
|
|
3006
|
+
};
|
|
3007
|
+
|
|
3008
|
+
const BellIcon = _ref => {
|
|
3009
|
+
let {
|
|
3010
|
+
width = '8',
|
|
3011
|
+
height = '9',
|
|
3012
|
+
color = '#212121'
|
|
3013
|
+
} = _ref;
|
|
3014
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
3015
|
+
width: width,
|
|
3016
|
+
height: height,
|
|
3017
|
+
viewBox: "0 0 18 21",
|
|
3018
|
+
fill: "none",
|
|
3019
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
3020
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3021
|
+
d: "M8.08569 1.125C8.08569 0.8125 8.39819 0.5 8.71069 0.5C9.06226 0.5 9.37476 0.8125 9.37476 1.125V1.78906C12.4998 2.10156 14.9998 4.75781 14.9998 8V9.17188C14.9998 10.8516 15.6638 12.4922 16.8748 13.7031L16.9919 13.8203C17.3044 14.1328 17.4998 14.5625 17.4998 15.0312C17.4998 16.0078 16.7185 16.75 15.7419 16.75H1.71851C0.741943 16.75 -0.000244141 16.0078 -0.000244141 15.0312C-0.000244141 14.5625 0.156006 14.1328 0.468506 13.8203L0.585693 13.7031C1.79663 12.4922 2.49976 10.8516 2.49976 9.17188V8C2.49976 4.75781 4.96069 2.10156 8.12476 1.78906L8.08569 1.125ZM8.71069 3C5.97632 3 3.71069 5.26562 3.71069 8V9.17188C3.71069 11.2031 2.92944 13.1562 1.48413 14.6016L1.36694 14.6797C1.28882 14.7969 1.21069 14.9141 1.21069 15.0312C1.21069 15.3047 1.44507 15.5 1.71851 15.5H15.7419C16.0154 15.5 16.2498 15.3047 16.2498 15.0312C16.2498 14.9141 16.1716 14.7969 16.0935 14.6797L15.9763 14.6016C14.531 13.1562 13.7498 11.2031 13.7498 9.17188V8C13.7498 5.26562 11.4841 3 8.71069 3ZM8.71069 19.25C9.25757 19.25 9.72632 18.9375 9.92163 18.4297C10.0388 18.1172 10.3904 17.9219 10.7029 18.0391C11.0154 18.1562 11.2107 18.5078 11.0935 18.8594C10.7419 19.8359 9.80444 20.5 8.71069 20.5C7.65601 20.5 6.71851 19.8359 6.36694 18.8594C6.24976 18.5078 6.44507 18.1562 6.75757 18.0391C7.07007 17.9219 7.42163 18.1172 7.53882 18.4297C7.73413 18.9375 8.20288 19.25 8.71069 19.25Z",
|
|
3022
|
+
fill: color
|
|
3023
|
+
}));
|
|
3024
|
+
};
|
|
3025
|
+
|
|
3026
|
+
const MaintenanceIcon = _ref => {
|
|
3027
|
+
let {
|
|
3028
|
+
clicked,
|
|
3029
|
+
width = "8",
|
|
3030
|
+
height = "9",
|
|
3031
|
+
color = '#212121'
|
|
3032
|
+
} = _ref;
|
|
3033
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
3034
|
+
width: width,
|
|
3035
|
+
height: height,
|
|
3036
|
+
viewBox: "0 0 20 21",
|
|
3037
|
+
fill: "none",
|
|
3038
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
3039
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3040
|
+
d: "M10.0701 20.5C7.88257 20.5 7.10132 20.0703 7.10132 19.1328V17.5703C6.47632 17.3359 5.92944 16.9844 5.42163 16.6328L4.09351 17.375C3.89819 17.4922 3.70288 17.5312 3.50757 17.5312C2.06226 17.5312 0.499756 13.9375 0.499756 13.3125C0.499756 12.8828 0.734131 12.4531 1.12476 12.2578L2.45288 11.4766C2.45288 11.1641 2.41382 10.8125 2.41382 10.5C2.41382 10.1484 2.45288 9.83594 2.49194 9.52344L1.16382 8.78125C0.773193 8.58594 0.538818 8.15625 0.538818 7.72656C0.538818 7.25781 2.02319 3.46875 3.50757 3.46875C3.74194 3.46875 3.93726 3.54688 4.13257 3.66406L5.46069 4.40625C5.96851 4.05469 6.51538 3.70312 7.10132 3.46875V1.90625C7.10132 0.695312 8.50757 0.5 10.1091 0.5C11.6326 0.5 13.0388 0.695312 13.0388 1.90625V3.46875C13.6248 3.70312 14.1716 4.01562 14.6794 4.40625L16.0076 3.66406C16.2029 3.54688 16.3982 3.50781 16.6326 3.50781C18.0388 3.50781 19.6013 7.10156 19.6013 7.72656C19.6013 8.15625 19.3669 8.58594 18.9763 8.78125L17.6482 9.5625C17.6873 9.875 17.7263 10.1875 17.7263 10.5C17.7263 10.8125 17.6873 11.1641 17.6482 11.4766L18.9763 12.2578C19.3669 12.4531 19.6013 12.8828 19.6013 13.3125C19.6013 13.7812 18.1169 17.5312 16.6326 17.5312C16.3982 17.5312 16.2029 17.4922 16.0076 17.375L14.6794 16.6328C14.1716 16.9844 13.6248 17.3359 13.0388 17.5703V19.1328C13.0779 20.0703 12.2966 20.5 10.0701 20.5ZM5.57788 15.1094C6.98413 16.3203 7.64819 16.4375 8.35132 16.7109V19.1328C8.93726 19.2109 9.48413 19.25 10.0701 19.25C10.656 19.25 11.2419 19.2109 11.8279 19.0938L11.7888 16.7109C12.4529 16.4766 13.1951 16.2812 14.5623 15.1094L16.6716 16.3203C17.4138 15.4609 17.9998 14.4453 18.3513 13.3125L16.3201 12.1406C16.3982 11.5547 16.4763 11.125 16.4763 10.5781C16.4763 10.1875 16.4373 9.67969 16.3201 8.89844L18.3904 7.72656C17.9998 6.63281 17.4138 5.61719 16.6326 4.71875L14.5623 5.92969C13.1951 4.71875 12.531 4.60156 11.7888 4.32812V1.90625C11.2419 1.82812 10.6951 1.78906 10.1091 1.78906C9.52319 1.78906 8.93726 1.82812 8.31226 1.94531L8.35132 4.32812C7.72632 4.5625 6.98413 4.71875 5.57788 5.92969L3.50757 4.71875C2.76538 5.61719 2.17944 6.63281 1.78882 7.76562L3.85913 8.89844C3.78101 9.48438 3.70288 9.91406 3.70288 10.4219C3.70288 10.8516 3.74194 11.3594 3.85913 12.1016L1.78882 13.3125C2.17944 14.3672 2.76538 15.3828 3.54663 16.2812L5.57788 15.1094ZM10.1091 14.25C8.03882 14.25 6.35913 12.5703 6.35913 10.5C6.35913 8.42969 8.03882 6.75 10.1091 6.75C12.1404 6.75 13.8591 8.42969 13.8591 10.5C13.8591 12.5703 12.1404 14.25 10.1091 14.25ZM10.1091 8C8.70288 8 7.60913 9.09375 7.60913 10.5C7.60913 11.8672 8.70288 13 10.1091 13C11.4763 13 12.6091 11.8672 12.6091 10.5C12.6091 9.09375 11.4763 8 10.1091 8Z",
|
|
3041
|
+
fill: color
|
|
3042
|
+
}));
|
|
3043
|
+
};
|
|
3044
|
+
|
|
3045
|
+
const ExitIcon = _ref => {
|
|
3046
|
+
let {
|
|
3047
|
+
clicked,
|
|
3048
|
+
width = '8',
|
|
3049
|
+
height = '9',
|
|
3050
|
+
color = '#212121'
|
|
3051
|
+
} = _ref;
|
|
3052
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
3053
|
+
width: width,
|
|
3054
|
+
height: height,
|
|
3055
|
+
viewBox: "0 0 20 21",
|
|
3056
|
+
fill: "none",
|
|
3057
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
3058
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3059
|
+
d: "M14.2263 2.91667C17.3097 4.54167 19.268 7.70833 19.268 11.1667C19.268 16.3333 15.0597 20.5 9.93465 20.5C4.76798 20.5 0.601318 16.3333 0.601318 11.1667C0.601318 7.70833 2.51798 4.54167 5.60132 2.91667C5.93465 2.75 6.35132 2.875 6.51798 3.20833C6.68465 3.5 6.55965 3.91667 6.22632 4.08333C3.55965 5.45833 1.93465 8.20833 1.93465 11.1667C1.93465 15.5833 5.51798 19.1667 9.93465 19.1667C14.3097 19.1667 17.9347 15.5833 17.9347 11.1667C17.9347 8.20833 16.268 5.45833 13.6013 4.08333C13.268 3.91667 13.143 3.5 13.3097 3.20833C13.4763 2.875 13.893 2.75 14.2263 2.91667ZM9.89298 12.5C9.55965 12.5 9.26798 12.2083 9.26798 11.8333V1.16667C9.26798 0.833333 9.60132 0.5 9.93465 0.5C10.268 0.5 10.6013 0.833333 10.6013 1.16667V11.8333C10.6013 12.2083 10.268 12.5 9.89298 12.5Z",
|
|
3060
|
+
fill: color
|
|
3061
|
+
}));
|
|
3062
|
+
};
|
|
3063
|
+
|
|
3064
|
+
const EyeIcon = _ref => {
|
|
3065
|
+
let {
|
|
3066
|
+
clicked,
|
|
3067
|
+
width = '8',
|
|
3068
|
+
height = '9',
|
|
3069
|
+
color = '#212121'
|
|
3070
|
+
} = _ref;
|
|
3071
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
3072
|
+
width: width,
|
|
3073
|
+
height: height,
|
|
3074
|
+
viewBox: "0 0 14 12",
|
|
3075
|
+
fill: "none",
|
|
3076
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
3077
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3078
|
+
d: "M13.9062 5.60156C13.9531 5.71875 14 5.88281 14 6C14 6.11719 13.9531 6.30469 13.9062 6.42188C12.6406 9.30469 10.1094 11.25 7.25 11.25C4.36719 11.25 1.83594 9.30469 0.570312 6.42188C0.523438 6.30469 0.5 6.11719 0.5 6C0.5 5.88281 0.523438 5.71875 0.570312 5.60156C1.83594 2.71875 4.36719 0.75 7.25 0.75C10.1094 0.75 12.6406 2.71875 13.9062 5.60156ZM7.25 10.125C9.57031 10.125 11.7031 8.55469 12.8516 6C11.7266 3.46875 9.57031 1.875 7.25 1.875C4.90625 1.875 2.77344 3.46875 1.625 6.02344C2.75 8.55469 4.90625 10.125 7.25 10.125ZM7.25 3C8.89062 3 10.25 4.35938 10.25 6.02344C10.25 7.66406 8.89062 9 7.25 9C5.58594 9 4.25 7.66406 4.25 6C4.25 4.35938 5.58594 3 7.25 3ZM7.25 7.875C8.28125 7.875 9.125 7.05469 9.125 6.02344C9.125 4.96875 8.28125 4.125 7.25 4.125C7.22656 4.125 7.20312 4.14844 7.17969 4.14844C7.22656 4.26562 7.25 4.38281 7.25 4.5C7.25 5.34375 6.57031 6 5.75 6C5.60938 6 5.49219 6 5.375 5.95312C5.375 5.97656 5.375 6 5.375 6C5.375 7.05469 6.19531 7.875 7.25 7.875Z",
|
|
3079
|
+
fill: color
|
|
3080
|
+
}));
|
|
3081
|
+
};
|
|
3082
|
+
|
|
3083
|
+
const ButtonArrowRight = _ref => {
|
|
3084
|
+
let {
|
|
3085
|
+
width = '16',
|
|
3086
|
+
height = '17'
|
|
3087
|
+
} = _ref;
|
|
3088
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
3089
|
+
width: width,
|
|
3090
|
+
height: height,
|
|
3091
|
+
viewBox: "0 0 16 17",
|
|
3092
|
+
fill: "none",
|
|
3093
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
3094
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3095
|
+
id: "icon",
|
|
3096
|
+
d: "M14.5 8.48438C14.5 6.17188 13.25 4.04688 11.25 2.85938C9.21875 1.70312 6.75 1.70312 4.75 2.85938C2.71875 4.04688 1.5 6.17188 1.5 8.48438C1.5 10.8282 2.71875 12.9532 4.75 14.1406C6.75 15.2969 9.21875 15.2969 11.25 14.1406C13.25 12.9532 14.5 10.8282 14.5 8.48438ZM0 8.48438C0 5.64062 1.5 3.01562 4 1.57812C6.46875 0.140625 9.5 0.140625 12 1.57812C14.4688 3.01562 16 5.64062 16 8.48438C16 11.3594 14.4688 13.9844 12 15.4219C9.5 16.8594 6.46875 16.8594 4 15.4219C1.5 13.9844 0 11.3594 0 8.48438ZM9.03125 11.7656C8.71875 12.0782 8.25 12.0782 7.96875 11.7656C7.65625 11.4844 7.65625 11.0156 7.96875 10.7032L9.4375 9.23438H4.75C4.3125 9.23438 4 8.92188 4 8.48438C4 8.07812 4.3125 7.73438 4.75 7.73438H9.4375L7.96875 6.26562C7.65625 5.98438 7.65625 5.51562 7.96875 5.23438C8.25 4.92188 8.71875 4.92188 9.03125 5.23438L11.7812 7.98438C12.0625 8.26562 12.0625 8.73438 11.7812 9.01562L9.03125 11.7656Z",
|
|
3097
|
+
fill: "white"
|
|
3098
|
+
})));
|
|
3099
|
+
};
|
|
3100
|
+
|
|
3101
|
+
const ReselectIcon = _ref => {
|
|
3102
|
+
let {
|
|
3103
|
+
width = '16',
|
|
3104
|
+
height = '16',
|
|
3105
|
+
color = '#212121'
|
|
3106
|
+
} = _ref;
|
|
3107
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
3108
|
+
width: width,
|
|
3109
|
+
height: height,
|
|
3110
|
+
viewBox: "0 0 16 16",
|
|
3111
|
+
fill: "none",
|
|
3112
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
3113
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
3114
|
+
d: "M4.21875 15.5312L1.21875 12.5312C0.90625 12.25 0.90625 11.7812 1.21875 11.4688L4.21875 8.5C4.5 8.1875 4.96875 8.1875 5.25 8.5C5.5625 8.78125 5.5625 9.25 5.25 9.53125L3.53125 11.25H14.25C14.6562 11.25 15 11.5938 15 12C15 12.4375 14.6562 12.75 14.25 12.75L3.53125 12.7812L5.25 14.5C5.5625 14.7812 5.5625 15.25 5.25 15.5312C4.96875 15.8438 4.5 15.8438 4.21875 15.5312ZM14.7812 4.53125L11.7812 7.53125C11.4688 7.84375 11 7.84375 10.7188 7.53125C10.4062 7.25 10.4062 6.78125 10.7188 6.46875L12.4375 4.75H1.75C1.3125 4.75 1 4.4375 1 4C1 3.59375 1.3125 3.25 1.75 3.25H12.4375L10.7188 1.53125C10.4062 1.25 10.4062 0.78125 10.7188 0.46875C11 0.1875 11.4688 0.1875 11.7812 0.46875L14.7812 3.5C15.0625 3.78125 15.0625 4.25 14.7812 4.53125Z",
|
|
3115
|
+
fill: color
|
|
3116
|
+
}));
|
|
3117
|
+
};
|
|
3118
|
+
|
|
3119
|
+
const Button = _ref => {
|
|
3120
|
+
let {
|
|
3121
|
+
text = '',
|
|
3122
|
+
type = 'primary',
|
|
3123
|
+
size = 'small',
|
|
3124
|
+
height = '',
|
|
3125
|
+
width = '',
|
|
3126
|
+
disabled = false,
|
|
3127
|
+
textColor = '',
|
|
3128
|
+
backgroundColor = '',
|
|
3129
|
+
borderColor = '',
|
|
3130
|
+
hoverTextColor = '',
|
|
3131
|
+
hoverBackgroundColor = '',
|
|
3132
|
+
hoverBorderColor = '',
|
|
3133
|
+
disabledTextColor = '',
|
|
3134
|
+
disabledBackgroundColor = '',
|
|
3135
|
+
disabledBorderColor = '',
|
|
3136
|
+
onClick,
|
|
3137
|
+
leftIcon = 'none',
|
|
3138
|
+
rightIcon = 'none',
|
|
3139
|
+
isSubmitButton = false
|
|
3140
|
+
} = _ref;
|
|
3141
|
+
const [clicked, setClicked] = React.useState(false);
|
|
3142
|
+
const [hover, setHover] = React.useState(false);
|
|
3143
|
+
const handleSubmitButtonOnClick = () => {
|
|
3144
|
+
setClicked(true);
|
|
3145
|
+
onClick(`SubmitButtonOnClick: ${text}`);
|
|
3146
|
+
setTimeout(() => {
|
|
3147
|
+
setClicked(false);
|
|
3148
|
+
}, 300);
|
|
3149
|
+
};
|
|
3150
|
+
const handleButtonClick = event => {
|
|
3151
|
+
setClicked(true);
|
|
3152
|
+
onClick(event);
|
|
3153
|
+
setTimeout(() => {
|
|
3154
|
+
setClicked(false);
|
|
3155
|
+
}, 300);
|
|
3156
|
+
};
|
|
3157
|
+
const getIcon = icon => {
|
|
3158
|
+
const iconHeight = '16px';
|
|
3159
|
+
const iconWidth = '16px';
|
|
3160
|
+
const newTextColor = textColor || (type === 'secondary' ? '#212121' : '#ffffff');
|
|
3161
|
+
const newHoverTextColor = hoverTextColor || (type === 'secondary' ? '#229E38' : '#ffffff');
|
|
3162
|
+
const newDisabledTextColor = disabledTextColor || '#B1B1B1';
|
|
3163
|
+
const newEnabledTextColor = hover ? newHoverTextColor : newTextColor;
|
|
3164
|
+
const color = disabled ? newDisabledTextColor : newEnabledTextColor;
|
|
3165
|
+
switch (icon.toLowerCase()) {
|
|
3166
|
+
case 'arrow':
|
|
3167
|
+
return /*#__PURE__*/React__default["default"].createElement(IconWrapper, {
|
|
3168
|
+
className: "ArrowRightIcon"
|
|
3169
|
+
}, /*#__PURE__*/React__default["default"].createElement(ButtonArrowRight, {
|
|
3170
|
+
height: iconHeight,
|
|
3171
|
+
width: iconWidth,
|
|
3172
|
+
color: color
|
|
3173
|
+
}));
|
|
3174
|
+
case 'filter':
|
|
3175
|
+
return /*#__PURE__*/React__default["default"].createElement(IconWrapper, {
|
|
3176
|
+
className: "FilterIcon"
|
|
3177
|
+
}, /*#__PURE__*/React__default["default"].createElement(FilterIcon, {
|
|
3178
|
+
height: "150px",
|
|
3179
|
+
width: iconWidth,
|
|
3180
|
+
color: color
|
|
3181
|
+
}));
|
|
3182
|
+
case 'options':
|
|
3183
|
+
return /*#__PURE__*/React__default["default"].createElement(IconWrapper, {
|
|
3184
|
+
className: "OptionsIcon"
|
|
3185
|
+
}, /*#__PURE__*/React__default["default"].createElement(OptionsIcon, {
|
|
3186
|
+
height: iconHeight,
|
|
3187
|
+
width: iconWidth,
|
|
3188
|
+
color: color
|
|
3189
|
+
}));
|
|
3190
|
+
case 'download':
|
|
3191
|
+
return /*#__PURE__*/React__default["default"].createElement(IconWrapper, {
|
|
3192
|
+
className: "DownloadIcon"
|
|
3193
|
+
}, /*#__PURE__*/React__default["default"].createElement(DownloadIcon, {
|
|
3194
|
+
height: iconHeight,
|
|
3195
|
+
width: iconWidth,
|
|
3196
|
+
color: color
|
|
3197
|
+
}));
|
|
3198
|
+
case 'document':
|
|
3199
|
+
return /*#__PURE__*/React__default["default"].createElement(IconWrapper, {
|
|
3200
|
+
className: "DocumentIcon"
|
|
3201
|
+
}, /*#__PURE__*/React__default["default"].createElement(DocumentIcon, {
|
|
3202
|
+
height: iconHeight,
|
|
3203
|
+
width: iconWidth,
|
|
3204
|
+
color: color
|
|
3205
|
+
}));
|
|
3206
|
+
case 'fly':
|
|
3207
|
+
return /*#__PURE__*/React__default["default"].createElement(IconWrapper, {
|
|
3208
|
+
className: "FlyIcon"
|
|
3209
|
+
}, /*#__PURE__*/React__default["default"].createElement(FlyIcon, {
|
|
3210
|
+
height: iconHeight,
|
|
3211
|
+
width: iconWidth,
|
|
3212
|
+
color: color
|
|
3213
|
+
}));
|
|
3214
|
+
case 'bell':
|
|
3215
|
+
return /*#__PURE__*/React__default["default"].createElement(IconWrapper, {
|
|
3216
|
+
className: "BellIcon"
|
|
3217
|
+
}, /*#__PURE__*/React__default["default"].createElement(BellIcon, {
|
|
3218
|
+
height: iconHeight,
|
|
3219
|
+
width: iconWidth,
|
|
3220
|
+
color: color
|
|
3221
|
+
}));
|
|
3222
|
+
case 'maintenance':
|
|
3223
|
+
return /*#__PURE__*/React__default["default"].createElement(IconWrapper, {
|
|
3224
|
+
className: "MaintenanceIcon"
|
|
3225
|
+
}, /*#__PURE__*/React__default["default"].createElement(MaintenanceIcon, {
|
|
3226
|
+
height: iconHeight,
|
|
3227
|
+
width: iconWidth,
|
|
3228
|
+
color: color
|
|
3229
|
+
}));
|
|
3230
|
+
case 'exit':
|
|
3231
|
+
return /*#__PURE__*/React__default["default"].createElement(IconWrapper, {
|
|
3232
|
+
className: "ExitIcon"
|
|
3233
|
+
}, /*#__PURE__*/React__default["default"].createElement(ExitIcon, {
|
|
3234
|
+
height: iconHeight,
|
|
3235
|
+
width: iconWidth,
|
|
3236
|
+
color: color
|
|
3237
|
+
}));
|
|
3238
|
+
case 'eye':
|
|
3239
|
+
return /*#__PURE__*/React__default["default"].createElement(IconWrapper, {
|
|
3240
|
+
className: "EyeIcon"
|
|
3241
|
+
}, /*#__PURE__*/React__default["default"].createElement(EyeIcon, {
|
|
3242
|
+
height: iconHeight,
|
|
3243
|
+
width: iconWidth,
|
|
3244
|
+
color: color
|
|
3245
|
+
}));
|
|
3246
|
+
case 'reselect':
|
|
3247
|
+
return /*#__PURE__*/React__default["default"].createElement(IconWrapper, {
|
|
3248
|
+
className: "ReselectIcon"
|
|
3249
|
+
}, /*#__PURE__*/React__default["default"].createElement(ReselectIcon, {
|
|
3250
|
+
height: iconHeight,
|
|
3251
|
+
width: iconWidth,
|
|
3252
|
+
color: color
|
|
3253
|
+
}));
|
|
3254
|
+
default:
|
|
3255
|
+
return '';
|
|
3256
|
+
}
|
|
3257
|
+
};
|
|
3258
|
+
const getLeftIcon = () => {
|
|
3259
|
+
if (!leftIcon || leftIcon === 'none') return '';
|
|
3260
|
+
return getIcon(leftIcon);
|
|
3261
|
+
};
|
|
3262
|
+
const getRightIcon = () => {
|
|
3263
|
+
if (!rightIcon || rightIcon === 'none') return '';
|
|
3264
|
+
return getIcon(rightIcon);
|
|
3265
|
+
};
|
|
3266
|
+
return /*#__PURE__*/React__default["default"].createElement(ButtonContainer, {
|
|
3267
|
+
className: "ButtonContainer",
|
|
3268
|
+
width: width || null,
|
|
3269
|
+
height: height || (size === 'small' ? '33px' : '45px')
|
|
3270
|
+
}, isSubmitButton ? /*#__PURE__*/React__default["default"].createElement(InputCommit, {
|
|
3271
|
+
className: clicked ? 'InputCommit-clicked' : 'InputCommit',
|
|
3272
|
+
value: text,
|
|
3273
|
+
type: "submit",
|
|
3274
|
+
width: width || null,
|
|
3275
|
+
height: height || (size === 'small' ? '33px' : '45px'),
|
|
3276
|
+
disabled: disabled,
|
|
3277
|
+
text_color: textColor || (type === 'secondary' ? '#212121' : '#ffffff'),
|
|
3278
|
+
background_color: backgroundColor || (type === 'secondary' ? '#ffffff' : '#229E38'),
|
|
3279
|
+
border_color: borderColor || (type === 'secondary' ? '#B1B1B1' : '#229E38'),
|
|
3280
|
+
hover_text_color: hoverTextColor || (type === 'secondary' ? '#229E38' : '#ffffff'),
|
|
3281
|
+
hover_background_color: hoverBackgroundColor || (type === 'secondary' ? '#E8F5EB' : '#92CF17'),
|
|
3282
|
+
hover_border_color: hoverBorderColor || (type === 'secondary' ? '#229E38' : '#92CF17'),
|
|
3283
|
+
disabled_text_color: disabledTextColor || '#B1B1B1',
|
|
3284
|
+
disabled_background_color: disabledBackgroundColor || (type === 'secondary' ? '#ffffff' : '#E3E4E5'),
|
|
3285
|
+
disabled_border_color: disabledBorderColor || '#E3E4E5',
|
|
3286
|
+
padding: size === 'small' ? '0 16px' : '0 20px',
|
|
3287
|
+
onClick: !disabled ? handleSubmitButtonOnClick : null
|
|
3288
|
+
}) : /*#__PURE__*/React__default["default"].createElement(ButtonItem, {
|
|
3289
|
+
className: clicked ? 'ButtonItem-clicked' : 'ButtonItem',
|
|
3290
|
+
onMouseEnter: () => setHover(true),
|
|
3291
|
+
onMouseLeave: () => setHover(false),
|
|
3292
|
+
onClick: event => !disabled ? handleButtonClick(event) : null,
|
|
3293
|
+
width: width || null,
|
|
3294
|
+
height: height || (size === 'small' ? '33px' : '45px'),
|
|
3295
|
+
disabled: disabled,
|
|
3296
|
+
text_color: textColor || (type === 'secondary' ? '#212121' : '#ffffff'),
|
|
3297
|
+
background_color: backgroundColor || (type === 'secondary' ? '#ffffff' : '#229E38'),
|
|
3298
|
+
border_color: borderColor || (type === 'secondary' ? '#B1B1B1' : '#229E38'),
|
|
3299
|
+
hover_text_color: hoverTextColor || (type === 'secondary' ? '#229E38' : '#ffffff'),
|
|
3300
|
+
hover_background_color: hoverBackgroundColor || (type === 'secondary' ? '#E8F5EB' : '#92CF17'),
|
|
3301
|
+
hover_border_color: hoverBorderColor || (type === 'secondary' ? '#229E38' : '#92CF17'),
|
|
3302
|
+
disabled_text_color: disabledTextColor || '#B1B1B1',
|
|
3303
|
+
disabled_background_color: disabledBackgroundColor || (type === 'secondary' ? '#ffffff' : '#E3E4E5'),
|
|
3304
|
+
disabled_border_color: disabledBorderColor || '#E3E4E5',
|
|
3305
|
+
padding: size === 'small' ? '0 16px' : '0 20px'
|
|
3306
|
+
}, getLeftIcon(), /*#__PURE__*/React__default["default"].createElement(Label, {
|
|
3307
|
+
className: "Label",
|
|
3308
|
+
disabled: disabled
|
|
3309
|
+
}, text), getRightIcon()));
|
|
3310
|
+
};
|
|
3311
|
+
|
|
3312
|
+
// Button.propTypes = {
|
|
3313
|
+
// text: PropTypes.string,
|
|
3314
|
+
// type: PropTypes.string,
|
|
3315
|
+
// size: PropTypes.string,
|
|
3316
|
+
// height: PropTypes.string,
|
|
3317
|
+
// width: PropTypes.string,
|
|
3318
|
+
// disabled: PropTypes.bool,
|
|
3319
|
+
// textColor: PropTypes.string,
|
|
3320
|
+
// backgroundColor: PropTypes.string,
|
|
3321
|
+
// borderColor: PropTypes.string,
|
|
3322
|
+
// hoverTextColor: PropTypes.string,
|
|
3323
|
+
// hoverBackgroundColor: PropTypes.string,
|
|
3324
|
+
// hoverBorderColor: PropTypes.string,
|
|
3325
|
+
// disabledTextColor: PropTypes.string,
|
|
3326
|
+
// disabledBackgroundColor: PropTypes.string,
|
|
3327
|
+
// disabledBorderColor: PropTypes.string,
|
|
3328
|
+
// onClick: PropTypes.func,
|
|
3329
|
+
// leftIcon: PropTypes.string,
|
|
3330
|
+
// rightIcon: PropTypes.string,
|
|
3331
|
+
// isSubmitButton: PropTypes.bool,
|
|
3332
|
+
// };
|
|
3333
|
+
|
|
3334
|
+
// Button.defaultProps = {
|
|
3335
|
+
// text: '',
|
|
3336
|
+
// type: 'primary',
|
|
3337
|
+
// size: 'small',
|
|
3338
|
+
// height: '',
|
|
3339
|
+
// width: '',
|
|
3340
|
+
// disabled: false,
|
|
3341
|
+
// textColor: '',
|
|
3342
|
+
// backgroundColor: '',
|
|
3343
|
+
// borderColor: '',
|
|
3344
|
+
// hoverTextColor: '',
|
|
3345
|
+
// hoverBackgroundColor: '',
|
|
3346
|
+
// hoverBorderColor: '',
|
|
3347
|
+
// disabledTextColor: '',
|
|
3348
|
+
// disabledBackgroundColor: '',
|
|
3349
|
+
// disabledBorderColor: '',
|
|
3350
|
+
// onClick: () => { },
|
|
3351
|
+
// leftIcon: 'none',
|
|
3352
|
+
// rightIcon: 'none',
|
|
3353
|
+
// isSubmitButton: false,
|
|
3354
|
+
// };
|
|
3355
|
+
|
|
3356
|
+
exports.Button = Button;
|
|
3357
|
+
//# sourceMappingURL=index.js.map
|