@carto/meridian-ds 3.1.1-alpha.7c9a0df.290 → 4.0.0
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/CHANGELOG.md +7 -2
- package/dist/{OpenDiagonallyRight-BPUv8cSL.cjs → Search-BsaXrSzs.cjs} +45 -17
- package/dist/{OpenDiagonallyRight-DuJMadZ8.js → Search-DXfTNnxj.js} +45 -17
- package/dist/{Search-Bx9LZ_VF.js → SwatchSquare-BDOWVMHN.js} +5 -13
- package/dist/{Search-DFMUrdFt.cjs → SwatchSquare-BydXPPhd.cjs} +5 -13
- package/dist/TablePaginationActions-WuqMxOyM.cjs +365 -0
- package/dist/{utils-BtGGNRrY.js → TablePaginationActions-XEVsnuDF.js} +166 -4
- package/dist/chart-constants-BPSHJ52D.js +12 -0
- package/dist/chart-constants-C9FrXEWV.cjs +11 -0
- package/dist/charts/index.cjs +151 -0
- package/dist/charts/index.js +151 -0
- package/dist/components/index.cjs +690 -113
- package/dist/components/index.js +631 -55
- package/dist/custom-icons/index.cjs +1549 -1289
- package/dist/custom-icons/index.js +1546 -1286
- package/dist/hooks/index.cjs +28 -0
- package/dist/hooks/index.js +28 -0
- package/dist/metadata.json +92 -1
- package/dist/palette-utils-DX1R_i9N.cjs +1138 -0
- package/dist/palette-utils-F7dMdI2q.js +1122 -0
- package/dist/theme/index.cjs +157 -152
- package/dist/theme/index.js +13 -8
- package/dist/types/charts/index.d.ts +6 -0
- package/dist/types/charts/index.d.ts.map +1 -0
- package/dist/types/components/DatePickers/DatePicker/DatePicker.metadata.d.ts.map +1 -1
- package/dist/types/components/DatePickers/DateRangeCalendar/DateRangeCalendar.d.ts +9 -0
- package/dist/types/components/DatePickers/DateRangeCalendar/DateRangeCalendar.d.ts.map +1 -0
- package/dist/types/components/DatePickers/DateRangeCalendar/DateRangeCalendar.metadata.d.ts +12 -0
- package/dist/types/components/DatePickers/DateRangeCalendar/DateRangeCalendar.metadata.d.ts.map +1 -0
- package/dist/types/components/DatePickers/DateRangeCalendar/DateRangeCalendar.stories.d.ts +134 -0
- package/dist/types/components/DatePickers/DateRangeCalendar/DateRangeCalendar.stories.d.ts.map +1 -0
- package/dist/types/components/DatePickers/DateRangeCalendar/DateRangeCalendar.test.d.ts +2 -0
- package/dist/types/components/DatePickers/DateRangeCalendar/DateRangeCalendar.test.d.ts.map +1 -0
- package/dist/types/components/DatePickers/DateRangePicker/DateRangePicker.metadata.d.ts.map +1 -1
- package/dist/types/components/DatePickers/DateTimePicker/DateTimePicker.metadata.d.ts.map +1 -1
- package/dist/types/components/DatePickers/PickersDay/PickersDay.d.ts +1 -1
- package/dist/types/components/DatePickers/PickersDay/PickersDay.d.ts.map +1 -1
- package/dist/types/components/DatePickers/TimePicker/TimePicker.metadata.d.ts.map +1 -1
- package/dist/types/components/DatePickers/index.d.ts +1 -0
- package/dist/types/components/DatePickers/index.d.ts.map +1 -1
- package/dist/types/components/DatePickers/types.d.ts +18 -1
- package/dist/types/components/DatePickers/types.d.ts.map +1 -1
- package/dist/types/hooks/index.d.ts +4 -0
- package/dist/types/hooks/index.d.ts.map +1 -0
- package/dist/types/hooks/useImperativeIntl.d.ts +6 -0
- package/dist/types/hooks/useImperativeIntl.d.ts.map +1 -1
- package/dist/types/theme/components/data-display.d.ts.map +1 -1
- package/dist/types/theme/components/stories/Tooltip.stories.d.ts +100 -6
- package/dist/types/theme/components/stories/Tooltip.stories.d.ts.map +1 -1
- package/dist/types/theme/index.d.ts +1 -0
- package/dist/types/theme/index.d.ts.map +1 -1
- package/dist/types/utils/formatter-utils.d.ts +12 -6
- package/dist/types/utils/formatter-utils.d.ts.map +1 -1
- package/dist/types/utils/legend-utils.d.ts +0 -12
- package/dist/types/utils/legend-utils.d.ts.map +1 -1
- package/dist/types/widgets/index.d.ts +0 -13
- package/dist/types/widgets/index.d.ts.map +1 -1
- package/dist/types/widgets/legend/LegendCategories.stories.d.ts +0 -68
- package/dist/types/widgets/legend/LegendCategories.stories.d.ts.map +1 -1
- package/dist/types/widgets/legend/legend-types/LegendCategories.d.ts.map +1 -1
- package/dist/{TablePaginationActions-Df-RJIBv.js → useImperativeIntl-BUw_LXAO.js} +2 -1304
- package/dist/{TablePaginationActions-Ba0wKQEf.cjs → useImperativeIntl-lvkv1UNL.cjs} +0 -1319
- package/dist/widgets/index.cjs +81 -6636
- package/dist/widgets/index.js +57 -6594
- package/package.json +11 -5
- package/dist/ListItem-CEg234fT.js +0 -472
- package/dist/ListItem-ajuL9fis.cjs +0 -488
- package/dist/SwatchSquare-B7D7xeJg.cjs +0 -296
- package/dist/SwatchSquare-DCUIqPy7.js +0 -297
- package/dist/types/utils/detect-touch-screen.d.ts +0 -2
- package/dist/types/utils/detect-touch-screen.d.ts.map +0 -1
- package/dist/types/utils/detect-touch-screen.test.d.ts +0 -2
- package/dist/types/utils/detect-touch-screen.test.d.ts.map +0 -1
- package/dist/types/widgets/BarWidgetUI/BarSkeleton.d.ts +0 -4
- package/dist/types/widgets/BarWidgetUI/BarSkeleton.d.ts.map +0 -1
- package/dist/types/widgets/BarWidgetUI/BarWidgetUI.d.ts +0 -33
- package/dist/types/widgets/BarWidgetUI/BarWidgetUI.d.ts.map +0 -1
- package/dist/types/widgets/BarWidgetUI/BarWidgetUI.stories.d.ts +0 -127
- package/dist/types/widgets/BarWidgetUI/BarWidgetUI.stories.d.ts.map +0 -1
- package/dist/types/widgets/BarWidgetUI/BarWidgetUI.test.d.ts +0 -2
- package/dist/types/widgets/BarWidgetUI/BarWidgetUI.test.d.ts.map +0 -1
- package/dist/types/widgets/BarWidgetUI/index.d.ts +0 -3
- package/dist/types/widgets/BarWidgetUI/index.d.ts.map +0 -1
- package/dist/types/widgets/BarWidgetUI/useProcessedProps.d.ts +0 -22
- package/dist/types/widgets/BarWidgetUI/useProcessedProps.d.ts.map +0 -1
- package/dist/types/widgets/CategoryWidgetUI/CategorySkeleton.d.ts +0 -3
- package/dist/types/widgets/CategoryWidgetUI/CategorySkeleton.d.ts.map +0 -1
- package/dist/types/widgets/CategoryWidgetUI/CategoryWidgetUI.d.ts +0 -36
- package/dist/types/widgets/CategoryWidgetUI/CategoryWidgetUI.d.ts.map +0 -1
- package/dist/types/widgets/CategoryWidgetUI/CategoryWidgetUI.stories.d.ts +0 -140
- package/dist/types/widgets/CategoryWidgetUI/CategoryWidgetUI.stories.d.ts.map +0 -1
- package/dist/types/widgets/CategoryWidgetUI/CategoryWidgetUI.styled.d.ts +0 -32
- package/dist/types/widgets/CategoryWidgetUI/CategoryWidgetUI.styled.d.ts.map +0 -1
- package/dist/types/widgets/CategoryWidgetUI/CategoryWidgetUI.test.d.ts +0 -2
- package/dist/types/widgets/CategoryWidgetUI/CategoryWidgetUI.test.d.ts.map +0 -1
- package/dist/types/widgets/CategoryWidgetUI/index.d.ts +0 -3
- package/dist/types/widgets/CategoryWidgetUI/index.d.ts.map +0 -1
- package/dist/types/widgets/ChartLegend.d.ts +0 -13
- package/dist/types/widgets/ChartLegend.d.ts.map +0 -1
- package/dist/types/widgets/FeatureSelectionWidgetUI/FeatureSelectionUIDropdown.d.ts +0 -18
- package/dist/types/widgets/FeatureSelectionWidgetUI/FeatureSelectionUIDropdown.d.ts.map +0 -1
- package/dist/types/widgets/FeatureSelectionWidgetUI/FeatureSelectionUIGeometryChips.d.ts +0 -17
- package/dist/types/widgets/FeatureSelectionWidgetUI/FeatureSelectionUIGeometryChips.d.ts.map +0 -1
- package/dist/types/widgets/FeatureSelectionWidgetUI/FeatureSelectionUIToggleButton.d.ts +0 -15
- package/dist/types/widgets/FeatureSelectionWidgetUI/FeatureSelectionUIToggleButton.d.ts.map +0 -1
- package/dist/types/widgets/FeatureSelectionWidgetUI/FeatureSelectionWidgetUI.d.ts +0 -27
- package/dist/types/widgets/FeatureSelectionWidgetUI/FeatureSelectionWidgetUI.d.ts.map +0 -1
- package/dist/types/widgets/FeatureSelectionWidgetUI/FeatureSelectionWidgetUI.stories.d.ts +0 -123
- package/dist/types/widgets/FeatureSelectionWidgetUI/FeatureSelectionWidgetUI.stories.d.ts.map +0 -1
- package/dist/types/widgets/FeatureSelectionWidgetUI/FeatureSelectionWidgetUI.test.d.ts +0 -1
- package/dist/types/widgets/FeatureSelectionWidgetUI/FeatureSelectionWidgetUI.test.d.ts.map +0 -1
- package/dist/types/widgets/FeatureSelectionWidgetUI/index.d.ts +0 -9
- package/dist/types/widgets/FeatureSelectionWidgetUI/index.d.ts.map +0 -1
- package/dist/types/widgets/FormulaWidgetUI/FormulaSkeleton.d.ts +0 -3
- package/dist/types/widgets/FormulaWidgetUI/FormulaSkeleton.d.ts.map +0 -1
- package/dist/types/widgets/FormulaWidgetUI/FormulaWidgetUI.d.ts +0 -16
- package/dist/types/widgets/FormulaWidgetUI/FormulaWidgetUI.d.ts.map +0 -1
- package/dist/types/widgets/FormulaWidgetUI/FormulaWidgetUI.stories.d.ts +0 -69
- package/dist/types/widgets/FormulaWidgetUI/FormulaWidgetUI.stories.d.ts.map +0 -1
- package/dist/types/widgets/FormulaWidgetUI/FormulaWidgetUI.test.d.ts +0 -2
- package/dist/types/widgets/FormulaWidgetUI/FormulaWidgetUI.test.d.ts.map +0 -1
- package/dist/types/widgets/FormulaWidgetUI/index.d.ts +0 -3
- package/dist/types/widgets/FormulaWidgetUI/index.d.ts.map +0 -1
- package/dist/types/widgets/HistogramWidgetUI/HistogramSkeleton.d.ts +0 -6
- package/dist/types/widgets/HistogramWidgetUI/HistogramSkeleton.d.ts.map +0 -1
- package/dist/types/widgets/HistogramWidgetUI/HistogramWidgetUI.d.ts +0 -27
- package/dist/types/widgets/HistogramWidgetUI/HistogramWidgetUI.d.ts.map +0 -1
- package/dist/types/widgets/HistogramWidgetUI/HistogramWidgetUI.stories.d.ts +0 -115
- package/dist/types/widgets/HistogramWidgetUI/HistogramWidgetUI.stories.d.ts.map +0 -1
- package/dist/types/widgets/HistogramWidgetUI/HistogramWidgetUI.test.d.ts +0 -2
- package/dist/types/widgets/HistogramWidgetUI/HistogramWidgetUI.test.d.ts.map +0 -1
- package/dist/types/widgets/HistogramWidgetUI/index.d.ts +0 -3
- package/dist/types/widgets/HistogramWidgetUI/index.d.ts.map +0 -1
- package/dist/types/widgets/HistogramWidgetUI/useHistogramInteractivity.d.ts +0 -20
- package/dist/types/widgets/HistogramWidgetUI/useHistogramInteractivity.d.ts.map +0 -1
- package/dist/types/widgets/NoDataAlert/NoDataAlert.d.ts +0 -6
- package/dist/types/widgets/NoDataAlert/NoDataAlert.d.ts.map +0 -1
- package/dist/types/widgets/NoDataAlert/NoDataAlert.stories.d.ts +0 -35
- package/dist/types/widgets/NoDataAlert/NoDataAlert.stories.d.ts.map +0 -1
- package/dist/types/widgets/NoDataAlert/index.d.ts +0 -3
- package/dist/types/widgets/NoDataAlert/index.d.ts.map +0 -1
- package/dist/types/widgets/PieWidgetUI/PieCentralText.d.ts +0 -11
- package/dist/types/widgets/PieWidgetUI/PieCentralText.d.ts.map +0 -1
- package/dist/types/widgets/PieWidgetUI/PieSkeleton.d.ts +0 -4
- package/dist/types/widgets/PieWidgetUI/PieSkeleton.d.ts.map +0 -1
- package/dist/types/widgets/PieWidgetUI/PieWidgetUI.d.ts +0 -36
- package/dist/types/widgets/PieWidgetUI/PieWidgetUI.d.ts.map +0 -1
- package/dist/types/widgets/PieWidgetUI/PieWidgetUI.stories.d.ts +0 -108
- package/dist/types/widgets/PieWidgetUI/PieWidgetUI.stories.d.ts.map +0 -1
- package/dist/types/widgets/PieWidgetUI/PieWidgetUI.test.d.ts +0 -2
- package/dist/types/widgets/PieWidgetUI/PieWidgetUI.test.d.ts.map +0 -1
- package/dist/types/widgets/PieWidgetUI/index.d.ts +0 -3
- package/dist/types/widgets/PieWidgetUI/index.d.ts.map +0 -1
- package/dist/types/widgets/PieWidgetUI/usePieCategories.d.ts +0 -16
- package/dist/types/widgets/PieWidgetUI/usePieCategories.d.ts.map +0 -1
- package/dist/types/widgets/RangeWidgetUI/RangeSkeleton.d.ts +0 -2
- package/dist/types/widgets/RangeWidgetUI/RangeSkeleton.d.ts.map +0 -1
- package/dist/types/widgets/RangeWidgetUI/RangeWidgetUI.d.ts +0 -16
- package/dist/types/widgets/RangeWidgetUI/RangeWidgetUI.d.ts.map +0 -1
- package/dist/types/widgets/RangeWidgetUI/RangeWidgetUI.stories.d.ts +0 -34
- package/dist/types/widgets/RangeWidgetUI/RangeWidgetUI.stories.d.ts.map +0 -1
- package/dist/types/widgets/RangeWidgetUI/RangeWidgetUI.test.d.ts +0 -2
- package/dist/types/widgets/RangeWidgetUI/RangeWidgetUI.test.d.ts.map +0 -1
- package/dist/types/widgets/RangeWidgetUI/index.d.ts +0 -3
- package/dist/types/widgets/RangeWidgetUI/index.d.ts.map +0 -1
- package/dist/types/widgets/ReactEcharts.d.ts +0 -11
- package/dist/types/widgets/ReactEcharts.d.ts.map +0 -1
- package/dist/types/widgets/ScatterPlotWidgetUI/ScatterPlotSkeleton.d.ts +0 -4
- package/dist/types/widgets/ScatterPlotWidgetUI/ScatterPlotSkeleton.d.ts.map +0 -1
- package/dist/types/widgets/ScatterPlotWidgetUI/ScatterPlotWidgetUI.d.ts +0 -16
- package/dist/types/widgets/ScatterPlotWidgetUI/ScatterPlotWidgetUI.d.ts.map +0 -1
- package/dist/types/widgets/ScatterPlotWidgetUI/ScatterPlotWidgetUI.stories.d.ts +0 -67
- package/dist/types/widgets/ScatterPlotWidgetUI/ScatterPlotWidgetUI.stories.d.ts.map +0 -1
- package/dist/types/widgets/ScatterPlotWidgetUI/ScatterPlotWidgetUI.test.d.ts +0 -2
- package/dist/types/widgets/ScatterPlotWidgetUI/ScatterPlotWidgetUI.test.d.ts.map +0 -1
- package/dist/types/widgets/ScatterPlotWidgetUI/index.d.ts +0 -3
- package/dist/types/widgets/ScatterPlotWidgetUI/index.d.ts.map +0 -1
- package/dist/types/widgets/TableWidgetUI/TableSkeleton.d.ts +0 -7
- package/dist/types/widgets/TableWidgetUI/TableSkeleton.d.ts.map +0 -1
- package/dist/types/widgets/TableWidgetUI/TableSkeletonRow.d.ts +0 -6
- package/dist/types/widgets/TableWidgetUI/TableSkeletonRow.d.ts.map +0 -1
- package/dist/types/widgets/TableWidgetUI/TableWidgetUI.d.ts +0 -33
- package/dist/types/widgets/TableWidgetUI/TableWidgetUI.d.ts.map +0 -1
- package/dist/types/widgets/TableWidgetUI/TableWidgetUI.stories.d.ts +0 -234
- package/dist/types/widgets/TableWidgetUI/TableWidgetUI.stories.d.ts.map +0 -1
- package/dist/types/widgets/TableWidgetUI/TableWidgetUI.test.d.ts +0 -2
- package/dist/types/widgets/TableWidgetUI/TableWidgetUI.test.d.ts.map +0 -1
- package/dist/types/widgets/TableWidgetUI/index.d.ts +0 -3
- package/dist/types/widgets/TableWidgetUI/index.d.ts.map +0 -1
- package/dist/types/widgets/TimeSeriesWidgetUI/TimeSeriesContext.d.ts +0 -21
- package/dist/types/widgets/TimeSeriesWidgetUI/TimeSeriesContext.d.ts.map +0 -1
- package/dist/types/widgets/TimeSeriesWidgetUI/TimeSeriesWidgetUI.d.ts +0 -4
- package/dist/types/widgets/TimeSeriesWidgetUI/TimeSeriesWidgetUI.d.ts.map +0 -1
- package/dist/types/widgets/TimeSeriesWidgetUI/TimeSeriesWidgetUI.stories.d.ts +0 -141
- package/dist/types/widgets/TimeSeriesWidgetUI/TimeSeriesWidgetUI.stories.d.ts.map +0 -1
- package/dist/types/widgets/TimeSeriesWidgetUI/TimeSeriesWidgetUI.test.d.ts +0 -2
- package/dist/types/widgets/TimeSeriesWidgetUI/TimeSeriesWidgetUI.test.d.ts.map +0 -1
- package/dist/types/widgets/TimeSeriesWidgetUI/components/TimeSeriesChart.d.ts +0 -13
- package/dist/types/widgets/TimeSeriesWidgetUI/components/TimeSeriesChart.d.ts.map +0 -1
- package/dist/types/widgets/TimeSeriesWidgetUI/components/TimeSeriesControls.d.ts +0 -3
- package/dist/types/widgets/TimeSeriesWidgetUI/components/TimeSeriesControls.d.ts.map +0 -1
- package/dist/types/widgets/TimeSeriesWidgetUI/components/TimeSeriesLayout.d.ts +0 -8
- package/dist/types/widgets/TimeSeriesWidgetUI/components/TimeSeriesLayout.d.ts.map +0 -1
- package/dist/types/widgets/TimeSeriesWidgetUI/components/TimeSeriesSkeleton.d.ts +0 -4
- package/dist/types/widgets/TimeSeriesWidgetUI/components/TimeSeriesSkeleton.d.ts.map +0 -1
- package/dist/types/widgets/TimeSeriesWidgetUI/index.d.ts +0 -9
- package/dist/types/widgets/TimeSeriesWidgetUI/index.d.ts.map +0 -1
- package/dist/types/widgets/TimeSeriesWidgetUI/types.d.ts +0 -6
- package/dist/types/widgets/TimeSeriesWidgetUI/types.d.ts.map +0 -1
- package/dist/types/widgets/TimeSeriesWidgetUI/utils/time-series-utils.d.ts +0 -107
- package/dist/types/widgets/TimeSeriesWidgetUI/utils/time-series-utils.d.ts.map +0 -1
- package/dist/types/widgets/TimeSeriesWidgetUI/utils/time-series-utils.test.d.ts +0 -2
- package/dist/types/widgets/TimeSeriesWidgetUI/utils/time-series-utils.test.d.ts.map +0 -1
- package/dist/types/widgets/TimeSeriesWidgetUI/utils/useTimeSeriesInteractivity.d.ts +0 -43
- package/dist/types/widgets/TimeSeriesWidgetUI/utils/useTimeSeriesInteractivity.d.ts.map +0 -1
- package/dist/types/widgets/WrapperWidgetUI/WrapperWidgetUI.d.ts +0 -42
- package/dist/types/widgets/WrapperWidgetUI/WrapperWidgetUI.d.ts.map +0 -1
- package/dist/types/widgets/WrapperWidgetUI/WrapperWidgetUI.stories.d.ts +0 -196
- package/dist/types/widgets/WrapperWidgetUI/WrapperWidgetUI.stories.d.ts.map +0 -1
- package/dist/types/widgets/WrapperWidgetUI/WrapperWidgetUI.test.d.ts +0 -2
- package/dist/types/widgets/WrapperWidgetUI/WrapperWidgetUI.test.d.ts.map +0 -1
- package/dist/types/widgets/WrapperWidgetUI/index.d.ts +0 -3
- package/dist/types/widgets/WrapperWidgetUI/index.d.ts.map +0 -1
- package/dist/types/widgets/comparative/AnimatedNumber/AnimatedNumber.d.ts +0 -9
- package/dist/types/widgets/comparative/AnimatedNumber/AnimatedNumber.d.ts.map +0 -1
- package/dist/types/widgets/comparative/AnimatedNumber/useAnimatedNumber.d.ts +0 -11
- package/dist/types/widgets/comparative/AnimatedNumber/useAnimatedNumber.d.ts.map +0 -1
- package/dist/types/widgets/comparative/ComparativeCategoryWidgetUI/ComparativeCategoryItem.d.ts +0 -17
- package/dist/types/widgets/comparative/ComparativeCategoryWidgetUI/ComparativeCategoryItem.d.ts.map +0 -1
- package/dist/types/widgets/comparative/ComparativeCategoryWidgetUI/ComparativeCategoryWidgetUI.d.ts +0 -23
- package/dist/types/widgets/comparative/ComparativeCategoryWidgetUI/ComparativeCategoryWidgetUI.d.ts.map +0 -1
- package/dist/types/widgets/comparative/ComparativeCategoryWidgetUI/ComparativeCategoryWidgetUI.stories.d.ts +0 -36
- package/dist/types/widgets/comparative/ComparativeCategoryWidgetUI/ComparativeCategoryWidgetUI.stories.d.ts.map +0 -1
- package/dist/types/widgets/comparative/ComparativeCategoryWidgetUI/ComparativeCategoryWidgetUI.styled.d.ts +0 -45
- package/dist/types/widgets/comparative/ComparativeCategoryWidgetUI/ComparativeCategoryWidgetUI.styled.d.ts.map +0 -1
- package/dist/types/widgets/comparative/ComparativeCategoryWidgetUI/ComparativeCategoryWidgetUI.test.d.ts +0 -2
- package/dist/types/widgets/comparative/ComparativeCategoryWidgetUI/ComparativeCategoryWidgetUI.test.d.ts.map +0 -1
- package/dist/types/widgets/comparative/ComparativeCategoryWidgetUI/transposeCategoryData.d.ts +0 -20
- package/dist/types/widgets/comparative/ComparativeCategoryWidgetUI/transposeCategoryData.d.ts.map +0 -1
- package/dist/types/widgets/comparative/ComparativeFormulaWidgetUI/ComparativeFormulaWidgetUI.d.ts +0 -21
- package/dist/types/widgets/comparative/ComparativeFormulaWidgetUI/ComparativeFormulaWidgetUI.d.ts.map +0 -1
- package/dist/types/widgets/comparative/ComparativeFormulaWidgetUI/ComparativeFormulaWidgetUI.stories.d.ts +0 -32
- package/dist/types/widgets/comparative/ComparativeFormulaWidgetUI/ComparativeFormulaWidgetUI.stories.d.ts.map +0 -1
- package/dist/types/widgets/comparative/ComparativeFormulaWidgetUI/ComparativeFormulaWidgetUI.test.d.ts +0 -2
- package/dist/types/widgets/comparative/ComparativeFormulaWidgetUI/ComparativeFormulaWidgetUI.test.d.ts.map +0 -1
- package/dist/types/widgets/comparative/ComparativeFormulaWidgetUI/FormulaLabel.d.ts +0 -5
- package/dist/types/widgets/comparative/ComparativeFormulaWidgetUI/FormulaLabel.d.ts.map +0 -1
- package/dist/types/widgets/comparative/ComparativeFormulaWidgetUI/FormulaValue.d.ts +0 -10
- package/dist/types/widgets/comparative/ComparativeFormulaWidgetUI/FormulaValue.d.ts.map +0 -1
- package/dist/types/widgets/comparative/ComparativePieWidgetUI/ComparativePieWidgetUI.d.ts +0 -22
- package/dist/types/widgets/comparative/ComparativePieWidgetUI/ComparativePieWidgetUI.d.ts.map +0 -1
- package/dist/types/widgets/comparative/ComparativePieWidgetUI/ComparativePieWidgetUI.stories.d.ts +0 -46
- package/dist/types/widgets/comparative/ComparativePieWidgetUI/ComparativePieWidgetUI.stories.d.ts.map +0 -1
- package/dist/types/widgets/comparative/ComparativePieWidgetUI/ComparativePieWidgetUI.test.d.ts +0 -2
- package/dist/types/widgets/comparative/ComparativePieWidgetUI/ComparativePieWidgetUI.test.d.ts.map +0 -1
- package/dist/types/widgets/comparative/index.d.ts +0 -7
- package/dist/types/widgets/comparative/index.d.ts.map +0 -1
- package/dist/types/widgets/echarts-setup.d.ts +0 -3
- package/dist/types/widgets/echarts-setup.d.ts.map +0 -1
- package/dist/utils-ztPfyopy.cjs +0 -203
package/CHANGELOG.md
CHANGED
|
@@ -2,8 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
## 4.0
|
|
6
|
+
|
|
7
|
+
### 4.0.0
|
|
8
|
+
|
|
9
|
+
- **BREAKING** feat(widgets): move all Builder chart/data widgets to their sole consumer (workspace-www) and remove echarts from Meridian. Removes `PieWidgetUI`, `TimeSeriesWidgetUI`, `CategoryWidgetUI`, `HistogramWidgetUI`, `BarWidgetUI`, `ScatterPlotWidgetUI`, `FormulaWidgetUI`, `RangeWidgetUI`, `TableWidgetUI`, `WrapperWidgetUI`, `FeatureSelectionWidgetUI`, `NoDataAlert`, `ChartLegend`, and the comparative widgets; only the `legend` widgets remain. Adds public `./charts` and `./hooks` subpaths for the shared chart infrastructure (skeleton primitives, chart constants, formatter/animation utils) and the hooks the extracted widgets depend on; `theme` now also exports `commonPalette`. Drops the `echarts`/`echarts-for-react` dependencies and the `ReactEcharts` wrapper. [#462](https://github.com/CartoDB/meridian-ds/pull/462)
|
|
10
|
+
- fix(tooltip): prevent the hover "wave" (cascading tooltips) when scrubbing across icon-button lists — tune `MuiTooltip` defaults (`enterNextDelay`, `leaveDelay`, `Fade` transition) [#458](https://github.com/CartoDB/meridian-ds/pull/458)
|
|
11
|
+
- feat(DateRangeCalendar): new component to select a date range in a single, always-visible calendar (no separate input fields), with a neutral hover preview of the pending range that turns into the selection color once committed — reuses `PickersDay` so styling stays token-driven [#465](https://github.com/CartoDB/meridian-ds/pull/465)
|
|
7
12
|
|
|
8
13
|
## 3.0
|
|
9
14
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
const jsxRuntime = require("react/jsx-runtime");
|
|
3
3
|
const React = require("react");
|
|
4
4
|
const material = require("@mui/material");
|
|
5
|
-
const Icon$
|
|
5
|
+
const Icon$3 = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
6
6
|
"path",
|
|
7
7
|
{
|
|
8
8
|
fill: "currentColor",
|
|
@@ -11,10 +11,10 @@ const Icon$2 = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.
|
|
|
11
11
|
clipRule: "evenodd"
|
|
12
12
|
}
|
|
13
13
|
) });
|
|
14
|
-
const BaseSvgIcon$
|
|
14
|
+
const BaseSvgIcon$3 = material.createSvgIcon(Icon$3(), "ArrowUp");
|
|
15
15
|
function ArrowUp({ width, height, sx, ...props }, ref) {
|
|
16
16
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
17
|
-
BaseSvgIcon$
|
|
17
|
+
BaseSvgIcon$3,
|
|
18
18
|
{
|
|
19
19
|
ref,
|
|
20
20
|
viewBox: "0 0 24 24",
|
|
@@ -27,9 +27,9 @@ function ArrowUp({ width, height, sx, ...props }, ref) {
|
|
|
27
27
|
}
|
|
28
28
|
);
|
|
29
29
|
}
|
|
30
|
-
const ForwardedComponent$
|
|
31
|
-
ForwardedComponent$
|
|
32
|
-
const Icon$
|
|
30
|
+
const ForwardedComponent$3 = React.forwardRef(ArrowUp);
|
|
31
|
+
ForwardedComponent$3.displayName = "ArrowUp";
|
|
32
|
+
const Icon$2 = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
33
33
|
"path",
|
|
34
34
|
{
|
|
35
35
|
fill: "currentColor",
|
|
@@ -38,10 +38,10 @@ const Icon$1 = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.
|
|
|
38
38
|
clipRule: "evenodd"
|
|
39
39
|
}
|
|
40
40
|
) });
|
|
41
|
-
const BaseSvgIcon$
|
|
41
|
+
const BaseSvgIcon$2 = material.createSvgIcon(Icon$2(), "CloseDiagonallyRight");
|
|
42
42
|
function CloseDiagonallyRight({ width, height, sx, ...props }, ref) {
|
|
43
43
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
44
|
-
BaseSvgIcon$
|
|
44
|
+
BaseSvgIcon$2,
|
|
45
45
|
{
|
|
46
46
|
ref,
|
|
47
47
|
viewBox: "0 0 24 24",
|
|
@@ -54,9 +54,9 @@ function CloseDiagonallyRight({ width, height, sx, ...props }, ref) {
|
|
|
54
54
|
}
|
|
55
55
|
);
|
|
56
56
|
}
|
|
57
|
-
const ForwardedComponent$
|
|
58
|
-
ForwardedComponent$
|
|
59
|
-
const Icon = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
57
|
+
const ForwardedComponent$2 = React.forwardRef(CloseDiagonallyRight);
|
|
58
|
+
ForwardedComponent$2.displayName = "CloseDiagonallyRight";
|
|
59
|
+
const Icon$1 = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
60
60
|
"path",
|
|
61
61
|
{
|
|
62
62
|
fill: "currentColor",
|
|
@@ -65,8 +65,35 @@ const Icon = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3
|
|
|
65
65
|
clipRule: "evenodd"
|
|
66
66
|
}
|
|
67
67
|
) });
|
|
68
|
-
const BaseSvgIcon = material.createSvgIcon(Icon(), "OpenDiagonallyRight");
|
|
68
|
+
const BaseSvgIcon$1 = material.createSvgIcon(Icon$1(), "OpenDiagonallyRight");
|
|
69
69
|
function OpenDiagonallyRight({ width, height, sx, ...props }, ref) {
|
|
70
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
71
|
+
BaseSvgIcon$1,
|
|
72
|
+
{
|
|
73
|
+
ref,
|
|
74
|
+
viewBox: "0 0 24 24",
|
|
75
|
+
sx: {
|
|
76
|
+
width,
|
|
77
|
+
height: height || width,
|
|
78
|
+
...sx
|
|
79
|
+
},
|
|
80
|
+
...props
|
|
81
|
+
}
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
const ForwardedComponent$1 = React.forwardRef(OpenDiagonallyRight);
|
|
85
|
+
ForwardedComponent$1.displayName = "OpenDiagonallyRight";
|
|
86
|
+
const Icon = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
87
|
+
"path",
|
|
88
|
+
{
|
|
89
|
+
fill: "currentColor",
|
|
90
|
+
fillRule: "evenodd",
|
|
91
|
+
d: "M11 4a7 7 0 0 1 5.386 11.472l3.089 3.089-1.414 1.414-3.161-3.161A7 7 0 1 1 11 4m0 2a5 5 0 1 0 0 10 5 5 0 0 0 0-10",
|
|
92
|
+
clipRule: "evenodd"
|
|
93
|
+
}
|
|
94
|
+
) });
|
|
95
|
+
const BaseSvgIcon = material.createSvgIcon(Icon(), "Search");
|
|
96
|
+
function Search({ width, height, sx, ...props }, ref) {
|
|
70
97
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
71
98
|
BaseSvgIcon,
|
|
72
99
|
{
|
|
@@ -81,8 +108,9 @@ function OpenDiagonallyRight({ width, height, sx, ...props }, ref) {
|
|
|
81
108
|
}
|
|
82
109
|
);
|
|
83
110
|
}
|
|
84
|
-
const ForwardedComponent = React.forwardRef(
|
|
85
|
-
ForwardedComponent.displayName = "
|
|
86
|
-
exports.ForwardedComponent = ForwardedComponent$
|
|
87
|
-
exports.ForwardedComponent$1 = ForwardedComponent;
|
|
88
|
-
exports.ForwardedComponent$2 = ForwardedComponent$
|
|
111
|
+
const ForwardedComponent = React.forwardRef(Search);
|
|
112
|
+
ForwardedComponent.displayName = "Search";
|
|
113
|
+
exports.ForwardedComponent = ForwardedComponent$3;
|
|
114
|
+
exports.ForwardedComponent$1 = ForwardedComponent$1;
|
|
115
|
+
exports.ForwardedComponent$2 = ForwardedComponent$2;
|
|
116
|
+
exports.ForwardedComponent$3 = ForwardedComponent;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
3
|
import { createSvgIcon } from "@mui/material";
|
|
4
|
-
const Icon$
|
|
4
|
+
const Icon$3 = () => /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ jsx(
|
|
5
5
|
"path",
|
|
6
6
|
{
|
|
7
7
|
fill: "currentColor",
|
|
@@ -10,10 +10,10 @@ const Icon$2 = () => /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000
|
|
|
10
10
|
clipRule: "evenodd"
|
|
11
11
|
}
|
|
12
12
|
) });
|
|
13
|
-
const BaseSvgIcon$
|
|
13
|
+
const BaseSvgIcon$3 = createSvgIcon(Icon$3(), "ArrowUp");
|
|
14
14
|
function ArrowUp({ width, height, sx, ...props }, ref) {
|
|
15
15
|
return /* @__PURE__ */ jsx(
|
|
16
|
-
BaseSvgIcon$
|
|
16
|
+
BaseSvgIcon$3,
|
|
17
17
|
{
|
|
18
18
|
ref,
|
|
19
19
|
viewBox: "0 0 24 24",
|
|
@@ -26,9 +26,9 @@ function ArrowUp({ width, height, sx, ...props }, ref) {
|
|
|
26
26
|
}
|
|
27
27
|
);
|
|
28
28
|
}
|
|
29
|
-
const ForwardedComponent$
|
|
30
|
-
ForwardedComponent$
|
|
31
|
-
const Icon$
|
|
29
|
+
const ForwardedComponent$3 = forwardRef(ArrowUp);
|
|
30
|
+
ForwardedComponent$3.displayName = "ArrowUp";
|
|
31
|
+
const Icon$2 = () => /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ jsx(
|
|
32
32
|
"path",
|
|
33
33
|
{
|
|
34
34
|
fill: "currentColor",
|
|
@@ -37,10 +37,10 @@ const Icon$1 = () => /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000
|
|
|
37
37
|
clipRule: "evenodd"
|
|
38
38
|
}
|
|
39
39
|
) });
|
|
40
|
-
const BaseSvgIcon$
|
|
40
|
+
const BaseSvgIcon$2 = createSvgIcon(Icon$2(), "CloseDiagonallyRight");
|
|
41
41
|
function CloseDiagonallyRight({ width, height, sx, ...props }, ref) {
|
|
42
42
|
return /* @__PURE__ */ jsx(
|
|
43
|
-
BaseSvgIcon$
|
|
43
|
+
BaseSvgIcon$2,
|
|
44
44
|
{
|
|
45
45
|
ref,
|
|
46
46
|
viewBox: "0 0 24 24",
|
|
@@ -53,9 +53,9 @@ function CloseDiagonallyRight({ width, height, sx, ...props }, ref) {
|
|
|
53
53
|
}
|
|
54
54
|
);
|
|
55
55
|
}
|
|
56
|
-
const ForwardedComponent$
|
|
57
|
-
ForwardedComponent$
|
|
58
|
-
const Icon = () => /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ jsx(
|
|
56
|
+
const ForwardedComponent$2 = forwardRef(CloseDiagonallyRight);
|
|
57
|
+
ForwardedComponent$2.displayName = "CloseDiagonallyRight";
|
|
58
|
+
const Icon$1 = () => /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ jsx(
|
|
59
59
|
"path",
|
|
60
60
|
{
|
|
61
61
|
fill: "currentColor",
|
|
@@ -64,8 +64,35 @@ const Icon = () => /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/s
|
|
|
64
64
|
clipRule: "evenodd"
|
|
65
65
|
}
|
|
66
66
|
) });
|
|
67
|
-
const BaseSvgIcon = createSvgIcon(Icon(), "OpenDiagonallyRight");
|
|
67
|
+
const BaseSvgIcon$1 = createSvgIcon(Icon$1(), "OpenDiagonallyRight");
|
|
68
68
|
function OpenDiagonallyRight({ width, height, sx, ...props }, ref) {
|
|
69
|
+
return /* @__PURE__ */ jsx(
|
|
70
|
+
BaseSvgIcon$1,
|
|
71
|
+
{
|
|
72
|
+
ref,
|
|
73
|
+
viewBox: "0 0 24 24",
|
|
74
|
+
sx: {
|
|
75
|
+
width,
|
|
76
|
+
height: height || width,
|
|
77
|
+
...sx
|
|
78
|
+
},
|
|
79
|
+
...props
|
|
80
|
+
}
|
|
81
|
+
);
|
|
82
|
+
}
|
|
83
|
+
const ForwardedComponent$1 = forwardRef(OpenDiagonallyRight);
|
|
84
|
+
ForwardedComponent$1.displayName = "OpenDiagonallyRight";
|
|
85
|
+
const Icon = () => /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ jsx(
|
|
86
|
+
"path",
|
|
87
|
+
{
|
|
88
|
+
fill: "currentColor",
|
|
89
|
+
fillRule: "evenodd",
|
|
90
|
+
d: "M11 4a7 7 0 0 1 5.386 11.472l3.089 3.089-1.414 1.414-3.161-3.161A7 7 0 1 1 11 4m0 2a5 5 0 1 0 0 10 5 5 0 0 0 0-10",
|
|
91
|
+
clipRule: "evenodd"
|
|
92
|
+
}
|
|
93
|
+
) });
|
|
94
|
+
const BaseSvgIcon = createSvgIcon(Icon(), "Search");
|
|
95
|
+
function Search({ width, height, sx, ...props }, ref) {
|
|
69
96
|
return /* @__PURE__ */ jsx(
|
|
70
97
|
BaseSvgIcon,
|
|
71
98
|
{
|
|
@@ -80,10 +107,11 @@ function OpenDiagonallyRight({ width, height, sx, ...props }, ref) {
|
|
|
80
107
|
}
|
|
81
108
|
);
|
|
82
109
|
}
|
|
83
|
-
const ForwardedComponent = forwardRef(
|
|
84
|
-
ForwardedComponent.displayName = "
|
|
110
|
+
const ForwardedComponent = forwardRef(Search);
|
|
111
|
+
ForwardedComponent.displayName = "Search";
|
|
85
112
|
export {
|
|
86
|
-
ForwardedComponent$
|
|
87
|
-
ForwardedComponent as a,
|
|
88
|
-
ForwardedComponent$
|
|
113
|
+
ForwardedComponent$3 as F,
|
|
114
|
+
ForwardedComponent$1 as a,
|
|
115
|
+
ForwardedComponent$2 as b,
|
|
116
|
+
ForwardedComponent as c
|
|
89
117
|
};
|
|
@@ -1,17 +1,9 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
3
|
import { createSvgIcon } from "@mui/material";
|
|
4
|
-
const Icon = () => /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ jsx(
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
fill: "currentColor",
|
|
8
|
-
fillRule: "evenodd",
|
|
9
|
-
d: "M11 4a7 7 0 0 1 5.386 11.472l3.089 3.089-1.414 1.414-3.161-3.161A7 7 0 1 1 11 4m0 2a5 5 0 1 0 0 10 5 5 0 0 0 0-10",
|
|
10
|
-
clipRule: "evenodd"
|
|
11
|
-
}
|
|
12
|
-
) });
|
|
13
|
-
const BaseSvgIcon = createSvgIcon(Icon(), "Search");
|
|
14
|
-
function Search({ width, height, sx, ...props }, ref) {
|
|
4
|
+
const Icon = () => /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ jsx("rect", { width: 16, height: 16, x: 4, y: 4, fill: "currentColor", rx: 2 }) });
|
|
5
|
+
const BaseSvgIcon = createSvgIcon(Icon(), "SwatchSquare");
|
|
6
|
+
function SwatchSquare({ width, height, sx, ...props }, ref) {
|
|
15
7
|
return /* @__PURE__ */ jsx(
|
|
16
8
|
BaseSvgIcon,
|
|
17
9
|
{
|
|
@@ -26,8 +18,8 @@ function Search({ width, height, sx, ...props }, ref) {
|
|
|
26
18
|
}
|
|
27
19
|
);
|
|
28
20
|
}
|
|
29
|
-
const ForwardedComponent = forwardRef(
|
|
30
|
-
ForwardedComponent.displayName = "
|
|
21
|
+
const ForwardedComponent = forwardRef(SwatchSquare);
|
|
22
|
+
ForwardedComponent.displayName = "SwatchSquare";
|
|
31
23
|
export {
|
|
32
24
|
ForwardedComponent as F
|
|
33
25
|
};
|
|
@@ -2,17 +2,9 @@
|
|
|
2
2
|
const jsxRuntime = require("react/jsx-runtime");
|
|
3
3
|
const React = require("react");
|
|
4
4
|
const material = require("@mui/material");
|
|
5
|
-
const Icon = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
fill: "currentColor",
|
|
9
|
-
fillRule: "evenodd",
|
|
10
|
-
d: "M11 4a7 7 0 0 1 5.386 11.472l3.089 3.089-1.414 1.414-3.161-3.161A7 7 0 1 1 11 4m0 2a5 5 0 1 0 0 10 5 5 0 0 0 0-10",
|
|
11
|
-
clipRule: "evenodd"
|
|
12
|
-
}
|
|
13
|
-
) });
|
|
14
|
-
const BaseSvgIcon = material.createSvgIcon(Icon(), "Search");
|
|
15
|
-
function Search({ width, height, sx, ...props }, ref) {
|
|
5
|
+
const Icon = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ jsxRuntime.jsx("rect", { width: 16, height: 16, x: 4, y: 4, fill: "currentColor", rx: 2 }) });
|
|
6
|
+
const BaseSvgIcon = material.createSvgIcon(Icon(), "SwatchSquare");
|
|
7
|
+
function SwatchSquare({ width, height, sx, ...props }, ref) {
|
|
16
8
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
17
9
|
BaseSvgIcon,
|
|
18
10
|
{
|
|
@@ -27,6 +19,6 @@ function Search({ width, height, sx, ...props }, ref) {
|
|
|
27
19
|
}
|
|
28
20
|
);
|
|
29
21
|
}
|
|
30
|
-
const ForwardedComponent = React.forwardRef(
|
|
31
|
-
ForwardedComponent.displayName = "
|
|
22
|
+
const ForwardedComponent = React.forwardRef(SwatchSquare);
|
|
23
|
+
ForwardedComponent.displayName = "SwatchSquare";
|
|
32
24
|
exports.ForwardedComponent = ForwardedComponent;
|
|
@@ -0,0 +1,365 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
3
|
+
const React = require("react");
|
|
4
|
+
const material = require("@mui/material");
|
|
5
|
+
const paletteUtils = require("./palette-utils-DX1R_i9N.cjs");
|
|
6
|
+
const iconsMaterial = require("@mui/icons-material");
|
|
7
|
+
const reactIntl = require("react-intl");
|
|
8
|
+
const useImperativeIntl = require("./useImperativeIntl-lvkv1UNL.cjs");
|
|
9
|
+
function useTranslationWithFallback(translationKey, customText, intlValues) {
|
|
10
|
+
const intl = reactIntl.useIntl();
|
|
11
|
+
const intlConfig = useImperativeIntl.useImperativeIntl(intl);
|
|
12
|
+
if (customText !== void 0 && customText !== null) {
|
|
13
|
+
return customText;
|
|
14
|
+
}
|
|
15
|
+
return intlConfig.formatMessage(
|
|
16
|
+
{ id: translationKey },
|
|
17
|
+
intlValues
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
const StyledMenuItem = material.styled(material.MenuItem, {
|
|
21
|
+
shouldForwardProp: (prop) => !["subtitle", "destructive", "extended", "fixed", "iconColor"].includes(
|
|
22
|
+
prop
|
|
23
|
+
)
|
|
24
|
+
})(
|
|
25
|
+
({
|
|
26
|
+
theme,
|
|
27
|
+
dense,
|
|
28
|
+
subtitle,
|
|
29
|
+
destructive,
|
|
30
|
+
extended,
|
|
31
|
+
fixed,
|
|
32
|
+
iconColor = "primary"
|
|
33
|
+
}) => ({
|
|
34
|
+
...subtitle && {
|
|
35
|
+
pointerEvents: "none",
|
|
36
|
+
columnGap: 0,
|
|
37
|
+
...theme.typography.caption,
|
|
38
|
+
fontWeight: 500,
|
|
39
|
+
color: `${theme.palette.text.secondary} !important`,
|
|
40
|
+
".MuiListItemText-root .MuiTypography-root": {
|
|
41
|
+
...theme.typography.caption,
|
|
42
|
+
fontWeight: 500,
|
|
43
|
+
color: theme.palette.text.secondary
|
|
44
|
+
},
|
|
45
|
+
"&.MuiMenuItem-root": {
|
|
46
|
+
minHeight: paletteUtils.MENU_ITEM_SIZE_DENSE,
|
|
47
|
+
paddingTop: 0,
|
|
48
|
+
paddingBottom: 0,
|
|
49
|
+
marginTop: theme.spacing(1),
|
|
50
|
+
"&:not(:first-of-type)": {
|
|
51
|
+
marginTop: theme.spacing(2),
|
|
52
|
+
"&::before": {
|
|
53
|
+
content: '""',
|
|
54
|
+
position: "absolute",
|
|
55
|
+
top: theme.spacing(-1),
|
|
56
|
+
left: 0,
|
|
57
|
+
right: 0,
|
|
58
|
+
height: 1,
|
|
59
|
+
backgroundColor: theme.palette.divider
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
...iconColor === "primary" && {
|
|
65
|
+
".MuiListItemIcon-root svg path": {
|
|
66
|
+
fill: theme.palette.text.primary
|
|
67
|
+
},
|
|
68
|
+
"&.Mui-selected .MuiListItemIcon-root svg path": {
|
|
69
|
+
fill: theme.palette.primary.main
|
|
70
|
+
},
|
|
71
|
+
'.MuiAutocomplete-listbox &[aria-selected="true"] svg path': {
|
|
72
|
+
fill: theme.palette.primary.main
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
...destructive && {
|
|
76
|
+
color: theme.palette.error.main,
|
|
77
|
+
".MuiTypography-root": {
|
|
78
|
+
color: theme.palette.error.main
|
|
79
|
+
},
|
|
80
|
+
"svg, & .MuiSvgIcon-root": {
|
|
81
|
+
color: theme.palette.error.main
|
|
82
|
+
},
|
|
83
|
+
".MuiListItemIcon-root svg path": {
|
|
84
|
+
fill: theme.palette.error.main
|
|
85
|
+
},
|
|
86
|
+
"&.Mui-selected .MuiListItemIcon-root svg path": {
|
|
87
|
+
fill: theme.palette.error.main
|
|
88
|
+
},
|
|
89
|
+
"&:hover": {
|
|
90
|
+
backgroundColor: theme.palette.error.relatedLight
|
|
91
|
+
},
|
|
92
|
+
"&.Mui-selected": {
|
|
93
|
+
color: theme.palette.error.main,
|
|
94
|
+
".MuiTypography-root": {
|
|
95
|
+
color: theme.palette.error.main
|
|
96
|
+
},
|
|
97
|
+
"svg, & .MuiSvgIcon-root": {
|
|
98
|
+
color: theme.palette.error.main
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"&.Mui-disabled": {
|
|
102
|
+
color: theme.palette.text.disabled,
|
|
103
|
+
".MuiTypography-root": {
|
|
104
|
+
color: theme.palette.text.disabled
|
|
105
|
+
},
|
|
106
|
+
svg: {
|
|
107
|
+
color: theme.palette.text.disabled
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
...extended && {
|
|
112
|
+
"&.MuiButtonBase-root.MuiMenuItem-root": {
|
|
113
|
+
minHeight: paletteUtils.MENU_ITEM_SIZE_EXTENDED
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
...fixed && {
|
|
117
|
+
"&.MuiMenuItem-root": {
|
|
118
|
+
position: "sticky",
|
|
119
|
+
top: 0,
|
|
120
|
+
left: 0,
|
|
121
|
+
bottom: 0,
|
|
122
|
+
right: 0,
|
|
123
|
+
zIndex: 2,
|
|
124
|
+
minHeight: paletteUtils.MENU_ITEM_SIZE_EXTENDED,
|
|
125
|
+
marginBottom: theme.spacing(1),
|
|
126
|
+
padding: theme.spacing(0.5, 0),
|
|
127
|
+
backgroundColor: `${theme.palette.background.paper} !important`,
|
|
128
|
+
borderBottom: `1px solid ${theme.palette.divider}`
|
|
129
|
+
},
|
|
130
|
+
"&.MuiMenuItem-gutters": {
|
|
131
|
+
padding: theme.spacing(0.5, 1.5)
|
|
132
|
+
},
|
|
133
|
+
".MuiAutocomplete-listbox &.MuiAutocomplete-option:first-of-type": {
|
|
134
|
+
minHeight: paletteUtils.MENU_ITEM_SIZE_EXTENDED,
|
|
135
|
+
marginTop: 0,
|
|
136
|
+
"&:hover": {
|
|
137
|
+
backgroundColor: theme.palette.background.paper
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
...!fixed && {
|
|
142
|
+
".MuiList-root &:first-of-type": {
|
|
143
|
+
marginTop: theme.spacing(1)
|
|
144
|
+
},
|
|
145
|
+
".MuiList-root &:last-of-type": {
|
|
146
|
+
marginBottom: theme.spacing(1)
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
...dense && {
|
|
150
|
+
"&.MuiButtonBase-root.MuiMenuItem-root": {
|
|
151
|
+
minHeight: paletteUtils.MENU_ITEM_SIZE_DENSE,
|
|
152
|
+
padding: theme.spacing(0.25, 0)
|
|
153
|
+
},
|
|
154
|
+
"&.MuiButtonBase-root.MuiMenuItem-gutters": {
|
|
155
|
+
padding: theme.spacing(0.25, 1.5)
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
})
|
|
159
|
+
);
|
|
160
|
+
function _MenuItem({
|
|
161
|
+
disabled,
|
|
162
|
+
subtitle,
|
|
163
|
+
destructive,
|
|
164
|
+
extended,
|
|
165
|
+
fixed,
|
|
166
|
+
iconColor = "primary",
|
|
167
|
+
dense,
|
|
168
|
+
disableGutters,
|
|
169
|
+
...props
|
|
170
|
+
}, ref) {
|
|
171
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
172
|
+
StyledMenuItem,
|
|
173
|
+
{
|
|
174
|
+
"data-name": "menu-item",
|
|
175
|
+
...props,
|
|
176
|
+
ref,
|
|
177
|
+
disabled: disabled || subtitle,
|
|
178
|
+
subtitle,
|
|
179
|
+
destructive,
|
|
180
|
+
extended,
|
|
181
|
+
dense,
|
|
182
|
+
fixed,
|
|
183
|
+
iconColor,
|
|
184
|
+
disableGutters,
|
|
185
|
+
"data-destructive": destructive,
|
|
186
|
+
"data-extended": extended,
|
|
187
|
+
"data-dense": dense,
|
|
188
|
+
"data-fixed": fixed,
|
|
189
|
+
"data-icon-color": iconColor,
|
|
190
|
+
"data-disable-gutters": disableGutters
|
|
191
|
+
}
|
|
192
|
+
);
|
|
193
|
+
}
|
|
194
|
+
const MenuItem = React.forwardRef(_MenuItem);
|
|
195
|
+
const Option = material.styled("div")(({ theme }) => ({
|
|
196
|
+
position: "relative",
|
|
197
|
+
display: "inline-flex",
|
|
198
|
+
// TODO: Remove this once we have a better way to handle the spacing between icon buttons:
|
|
199
|
+
// https://app.shortcut.com/cartoteam/story/471284/create-iconbuttongroup-component-to-properly-group-several-icons
|
|
200
|
+
"& + &, & + .optionIconButton": {
|
|
201
|
+
marginLeft: theme.spacing(0.5)
|
|
202
|
+
}
|
|
203
|
+
}));
|
|
204
|
+
const StyledIconButton = material.styled(material.IconButton, {
|
|
205
|
+
shouldForwardProp: (prop) => !["active"].includes(prop)
|
|
206
|
+
})(({ active, theme }) => ({
|
|
207
|
+
...active && {
|
|
208
|
+
color: theme.palette.primary.main,
|
|
209
|
+
backgroundColor: theme.palette.primary.background,
|
|
210
|
+
"& svg:not(.doNotFillIcon) path": {
|
|
211
|
+
fill: theme.palette.primary.main
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}));
|
|
215
|
+
function _IconButton({
|
|
216
|
+
tooltip,
|
|
217
|
+
tooltipPlacement = "top",
|
|
218
|
+
icon,
|
|
219
|
+
size = "medium",
|
|
220
|
+
variant = "icon",
|
|
221
|
+
color = "default",
|
|
222
|
+
sx,
|
|
223
|
+
className,
|
|
224
|
+
loading,
|
|
225
|
+
disabled,
|
|
226
|
+
active,
|
|
227
|
+
"aria-label": _ariaLabel,
|
|
228
|
+
...props
|
|
229
|
+
}, ref) {
|
|
230
|
+
const ariaLabel = _ariaLabel ?? (typeof tooltip === "string" ? tooltip : void 0);
|
|
231
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
232
|
+
material.Tooltip,
|
|
233
|
+
{
|
|
234
|
+
placement: tooltipPlacement,
|
|
235
|
+
title: tooltip ?? "",
|
|
236
|
+
describeChild: Boolean(ariaLabel),
|
|
237
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
238
|
+
Option,
|
|
239
|
+
{
|
|
240
|
+
className: `optionIconButton ${className ?? ""}`,
|
|
241
|
+
sx,
|
|
242
|
+
"data-testid": "icon-button",
|
|
243
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
244
|
+
StyledIconButton,
|
|
245
|
+
{
|
|
246
|
+
...props,
|
|
247
|
+
ref,
|
|
248
|
+
size,
|
|
249
|
+
variant,
|
|
250
|
+
color,
|
|
251
|
+
active,
|
|
252
|
+
disabled: disabled || loading,
|
|
253
|
+
role: "button",
|
|
254
|
+
"aria-label": ariaLabel,
|
|
255
|
+
children: loading ? /* @__PURE__ */ jsxRuntime.jsx(material.CircularProgress, { size: 18, color: "inherit" }) : icon
|
|
256
|
+
}
|
|
257
|
+
)
|
|
258
|
+
}
|
|
259
|
+
)
|
|
260
|
+
}
|
|
261
|
+
);
|
|
262
|
+
}
|
|
263
|
+
const IconButton = React.forwardRef(_IconButton);
|
|
264
|
+
function getPixelToRem(px) {
|
|
265
|
+
const fontBase = 16;
|
|
266
|
+
const rem = 1 / fontBase * px + "rem";
|
|
267
|
+
return rem;
|
|
268
|
+
}
|
|
269
|
+
function getThemeColor(colorPath, theme) {
|
|
270
|
+
const colorValue = colorPath.split(".").reduce(
|
|
271
|
+
(acc, part) => acc && typeof acc === "object" && part in acc ? acc[part] : void 0,
|
|
272
|
+
theme.palette
|
|
273
|
+
);
|
|
274
|
+
return typeof colorValue === "string" ? colorValue : void 0;
|
|
275
|
+
}
|
|
276
|
+
const ellipsisStyles = {
|
|
277
|
+
textOverflow: "ellipsis",
|
|
278
|
+
overflow: "hidden",
|
|
279
|
+
whiteSpace: "nowrap"
|
|
280
|
+
};
|
|
281
|
+
const SVG_SELECTOR = "&:not(:has(.MuiRadio-root)):not(:has(.MuiCheckbox-root)) svg";
|
|
282
|
+
const getIconSizeMap = () => ({
|
|
283
|
+
small: paletteUtils.ICON_SIZE_SMALL,
|
|
284
|
+
medium: paletteUtils.ICON_SIZE_MEDIUM,
|
|
285
|
+
large: paletteUtils.ICON_SIZE_LARGE
|
|
286
|
+
});
|
|
287
|
+
const Root = material.styled(material.Box)(({ theme }) => ({
|
|
288
|
+
display: "flex",
|
|
289
|
+
gap: theme.spacing(0.5),
|
|
290
|
+
marginLeft: theme.spacing(1)
|
|
291
|
+
}));
|
|
292
|
+
function _TablePaginationActions({
|
|
293
|
+
count,
|
|
294
|
+
page,
|
|
295
|
+
rowsPerPage = 10,
|
|
296
|
+
onPageChange,
|
|
297
|
+
lastPageTooltip,
|
|
298
|
+
prevPageText,
|
|
299
|
+
nextPageText,
|
|
300
|
+
noMorePagesText: noMorePagesTextProp,
|
|
301
|
+
"aria-label": ariaLabel,
|
|
302
|
+
"data-testid": dataTestId
|
|
303
|
+
}, ref) {
|
|
304
|
+
const handleBackButtonClick = (event) => {
|
|
305
|
+
onPageChange(event, page - 1);
|
|
306
|
+
};
|
|
307
|
+
const handleNextButtonClick = (event) => {
|
|
308
|
+
onPageChange(event, page + 1);
|
|
309
|
+
};
|
|
310
|
+
const isLastPage = page === Math.ceil(count / rowsPerPage) - 1;
|
|
311
|
+
const isFirstPage = page === 0;
|
|
312
|
+
const prevLabel = useTranslationWithFallback(
|
|
313
|
+
"c4r.form.pagination.prevPage",
|
|
314
|
+
prevPageText
|
|
315
|
+
);
|
|
316
|
+
const nextLabel = useTranslationWithFallback(
|
|
317
|
+
"c4r.form.pagination.nextPage",
|
|
318
|
+
nextPageText
|
|
319
|
+
);
|
|
320
|
+
const noMorePagesText = useTranslationWithFallback(
|
|
321
|
+
"c4r.form.pagination.noMorePages",
|
|
322
|
+
noMorePagesTextProp
|
|
323
|
+
);
|
|
324
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
325
|
+
Root,
|
|
326
|
+
{
|
|
327
|
+
ref,
|
|
328
|
+
"data-testid": dataTestId,
|
|
329
|
+
"aria-label": ariaLabel,
|
|
330
|
+
"data-name": "table-pagination-actions",
|
|
331
|
+
children: [
|
|
332
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
333
|
+
IconButton,
|
|
334
|
+
{
|
|
335
|
+
onClick: handleBackButtonClick,
|
|
336
|
+
disabled: page === 0,
|
|
337
|
+
"aria-label": prevLabel,
|
|
338
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(iconsMaterial.KeyboardArrowLeftOutlined, {}),
|
|
339
|
+
tooltip: isFirstPage ? noMorePagesText : prevLabel
|
|
340
|
+
}
|
|
341
|
+
),
|
|
342
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
343
|
+
IconButton,
|
|
344
|
+
{
|
|
345
|
+
onClick: handleNextButtonClick,
|
|
346
|
+
disabled: page >= Math.ceil(count / rowsPerPage) - 1,
|
|
347
|
+
"aria-label": nextLabel,
|
|
348
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(iconsMaterial.KeyboardArrowRightOutlined, {}),
|
|
349
|
+
tooltip: isLastPage ? lastPageTooltip ?? noMorePagesText : nextLabel
|
|
350
|
+
}
|
|
351
|
+
)
|
|
352
|
+
]
|
|
353
|
+
}
|
|
354
|
+
);
|
|
355
|
+
}
|
|
356
|
+
const TablePaginationActions = React.forwardRef(_TablePaginationActions);
|
|
357
|
+
exports.IconButton = IconButton;
|
|
358
|
+
exports.MenuItem = MenuItem;
|
|
359
|
+
exports.SVG_SELECTOR = SVG_SELECTOR;
|
|
360
|
+
exports.TablePaginationActions = TablePaginationActions;
|
|
361
|
+
exports.ellipsisStyles = ellipsisStyles;
|
|
362
|
+
exports.getIconSizeMap = getIconSizeMap;
|
|
363
|
+
exports.getPixelToRem = getPixelToRem;
|
|
364
|
+
exports.getThemeColor = getThemeColor;
|
|
365
|
+
exports.useTranslationWithFallback = useTranslationWithFallback;
|