@levi-gemcommerce/analytics 3.0.1-dev.3 → 3.0.1-dev.5
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/esm/components/OrderAnalytic/types/order.d.ts +1 -1
- package/package.json +38 -15
- package/src/api/graphql/fragments/pathAnalytic.generated.ts +0 -26
- package/src/assets/img/all-sessions.png +0 -0
- package/src/assets/img/analytic-empty.png +0 -0
- package/src/assets/img/first-session.png +0 -0
- package/src/assets/img/page-only.png +0 -0
- package/src/assets/svg/gemx-skeleton.svg +0 -12
- package/src/assets/svg/product.svg +0 -18
- package/src/components/AnalyticMode/AnalyticModeSelector.tsx +0 -50
- package/src/components/AnalyticMode/index.ts +0 -2
- package/src/components/CardPathAnalysis/CardJourneyAnalysis.tsx +0 -33
- package/src/components/CardPathAnalysis/assets/img/analytic-gemx.png +0 -0
- package/src/components/CardPathAnalysis/assets/styles/PathAnalysis.scss +0 -60
- package/src/components/CardPathAnalysis/components/CardPathAnalysis/CardAnalyticEmpty.tsx +0 -45
- package/src/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysis.tsx +0 -53
- package/src/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysisContent.tsx +0 -65
- package/src/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysisEmpty.tsx +0 -29
- package/src/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysisSkeleton.tsx +0 -12
- package/src/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysisWrapper.tsx +0 -43
- package/src/components/CardPathAnalysis/components/CardPathAnalysis/index.ts +0 -1
- package/src/components/CardPathAnalysis/components/PathAnalysisChart.tsx +0 -55
- package/src/components/CardPathAnalysis/components/index.ts +0 -1
- package/src/components/CardPathAnalysis/configs/index.ts +0 -2
- package/src/components/CardPathAnalysis/constants/index.ts +0 -1
- package/src/components/CardPathAnalysis/constants/path-analysis.ts +0 -162
- package/src/components/CardPathAnalysis/contexts/PathAnalysisConfigProvider.tsx +0 -66
- package/src/components/CardPathAnalysis/contexts/PathAnalysisProvider.tsx +0 -130
- package/src/components/CardPathAnalysis/contexts/index.ts +0 -2
- package/src/components/CardPathAnalysis/helpers/index.ts +0 -2
- package/src/components/CardPathAnalysis/helpers/metricHelpers.ts +0 -13
- package/src/components/CardPathAnalysis/helpers/pathAnalysis.ts +0 -96
- package/src/components/CardPathAnalysis/helpers/pathAnalysisChart.ts +0 -128
- package/src/components/CardPathAnalysis/helpers/treeUtils.ts +0 -38
- package/src/components/CardPathAnalysis/hooks/usePathAnalysisChart.tsx +0 -292
- package/src/components/CardPathAnalysis/hooks/usePathAnalysisFunnel.ts +0 -206
- package/src/components/CardPathAnalysis/hooks/usePathAnalyticsMerger.ts +0 -43
- package/src/components/CardPathAnalysis/index.ts +0 -5
- package/src/components/CardPathAnalysis/stores/funnel-chart.ts +0 -30
- package/src/components/CardPathAnalysis/stores/index.ts +0 -3
- package/src/components/CardPathAnalysis/stores/path-analysis-campaign.ts +0 -16
- package/src/components/CardPathAnalysis/stores/path-analysis.ts +0 -11
- package/src/components/CardPathAnalysis/types/index.ts +0 -1
- package/src/components/CardPathAnalysis/types/path-analysis.ts +0 -10
- package/src/components/CurrencySelector/CurrencySelector.tsx +0 -127
- package/src/components/CurrencySelector/index.ts +0 -2
- package/src/components/GModalOrderJourney/GModalOrderJourney.tsx +0 -131
- package/src/components/GModalOrderJourney/components/OrderJourneySkeleton.tsx +0 -93
- package/src/components/GModalOrderJourney/components/index.ts +0 -1
- package/src/components/GModalOrderJourney/context/OrderJourneyContext.tsx +0 -17
- package/src/components/GModalOrderJourney/context/index.ts +0 -1
- package/src/components/GModalOrderJourney/hooks/index.ts +0 -1
- package/src/components/GModalOrderJourney/hooks/useGModalOrderJourney.ts +0 -25
- package/src/components/GModalOrderJourney/index.ts +0 -5
- package/src/components/GModalOrderJourney/types/index.ts +0 -4
- package/src/components/GModalOrderJourney/utils/index.ts +0 -75
- package/src/components/GSelectableMetricChartCard/GSelectableMetricChartCard.tsx +0 -83
- package/src/components/GSelectableMetricChartCard/MetricChartTab.tsx +0 -56
- package/src/components/GSelectableMetricChartCard/index.ts +0 -2
- package/src/components/GTimePicker/GTimePicker.tsx +0 -31
- package/src/components/GTimePicker/components/BaseTimePicker.tsx +0 -249
- package/src/components/GTimePicker/components/CompareTimePicker.tsx +0 -41
- package/src/components/GTimePicker/components/DateTimeFilterAddition.tsx +0 -84
- package/src/components/GTimePicker/components/DateTimeFilterInputs.tsx +0 -124
- package/src/components/GTimePicker/components/DateTimeFilters.tsx +0 -86
- package/src/components/GTimePicker/components/MainTimePicker.tsx +0 -47
- package/src/components/GTimePicker/components/index.ts +0 -2
- package/src/components/GTimePicker/constants/compareDateTimePicker.ts +0 -68
- package/src/components/GTimePicker/constants/datePicker.ts +0 -14
- package/src/components/GTimePicker/constants/index.ts +0 -2
- package/src/components/GTimePicker/constants/mainDataTimePicker.ts +0 -88
- package/src/components/GTimePicker/contexts/DateTimePickerProvider.tsx +0 -125
- package/src/components/GTimePicker/contexts/index.ts +0 -1
- package/src/components/GTimePicker/helpers/date-range-info.ts +0 -84
- package/src/components/GTimePicker/helpers/index.ts +0 -4
- package/src/components/GTimePicker/helpers/parse-date.ts +0 -127
- package/src/components/GTimePicker/helpers/time-picker.ts +0 -123
- package/src/components/GTimePicker/helpers/version.ts +0 -36
- package/src/components/GTimePicker/hooks/index.ts +0 -3
- package/src/components/GTimePicker/hooks/useCompareDateTimePicker.tsx +0 -79
- package/src/components/GTimePicker/hooks/useDateTimeFilter.ts +0 -83
- package/src/components/GTimePicker/hooks/useDateTimePicker.tsx +0 -99
- package/src/components/GTimePicker/hooks/useVersionDateTimeFilters.ts +0 -30
- package/src/components/GTimePicker/index.ts +0 -7
- package/src/components/GTimePicker/types/index.ts +0 -43
- package/src/components/MetricDonutChartCard/MetricDonutChartCard.tsx +0 -121
- package/src/components/MetricDonutChartCard/index.ts +0 -2
- package/src/components/MetricDonutChartCard/utils/donut-chart.ts +0 -75
- package/src/components/MetricDonutChartCard/utils/index.ts +0 -1
- package/src/components/OrderAnalytic/OrderListingLatestTable.tsx +0 -111
- package/src/components/OrderAnalytic/components/OrderListing/OrderListingSkeleton/OrderListingTableSkeleton.tsx +0 -40
- package/src/components/OrderAnalytic/components/OrderListing/OrderListingSkeleton/SkeletonCellContent.tsx +0 -77
- package/src/components/OrderAnalytic/components/OrderListing/OrderListingSkeleton/SkeletonHeader.tsx +0 -35
- package/src/components/OrderAnalytic/components/OrderListing/OrderListingSkeleton/SkeletonRow.tsx +0 -35
- package/src/components/OrderAnalytic/components/OrderListing/OrderListingSkeleton/SkeletonSummaryRow.tsx +0 -36
- package/src/components/OrderAnalytic/components/OrderListing/OrderListingSkeleton/constants.ts +0 -11
- package/src/components/OrderAnalytic/components/OrderListing/OrderListingSkeleton/index.ts +0 -1
- package/src/components/OrderAnalytic/components/OrderListing/OrderListingTable.tsx +0 -159
- package/src/components/OrderAnalytic/components/OrderListing/OrderListingTableEmpty.tsx +0 -29
- package/src/components/OrderAnalytic/components/OrderListing/index.ts +0 -2
- package/src/components/OrderAnalytic/components/index.ts +0 -1
- package/src/components/OrderAnalytic/constants/index.ts +0 -2
- package/src/components/OrderAnalytic/constants/order-columns.ts +0 -51
- package/src/components/OrderAnalytic/constants/order-listing.ts +0 -199
- package/src/components/OrderAnalytic/helpers/index.ts +0 -1
- package/src/components/OrderAnalytic/helpers/order-listing.ts +0 -48
- package/src/components/OrderAnalytic/hooks/index.ts +0 -1
- package/src/components/OrderAnalytic/hooks/useOrderListingData.ts +0 -55
- package/src/components/OrderAnalytic/index.ts +0 -5
- package/src/components/OrderAnalytic/stores/index.ts +0 -2
- package/src/components/OrderAnalytic/stores/order-columns-selector.ts +0 -24
- package/src/components/OrderAnalytic/stores/order-control.ts +0 -15
- package/src/components/OrderAnalytic/types/index.ts +0 -3
- package/src/components/OrderAnalytic/types/order.ts +0 -89
- package/src/components/OrderAnalytic/types/orderListing.ts +0 -4
- package/src/components/OrderAnalytic/types/report.ts +0 -14
- package/src/components/SingleMetricChartCard/SingleMetricChartCard.tsx +0 -56
- package/src/components/SingleMetricChartCard/index.tsx +0 -2
- package/src/components/common/chart/GChartSkeleton.tsx +0 -5
- package/src/components/common/chart/MetricChart.tsx +0 -62
- package/src/components/common/chart/MetricChartEmpty.tsx +0 -35
- package/src/components/common/chart/MetricChartTooltip.tsx +0 -74
- package/src/components/common/chart/MetricDonutChartSkeleton.tsx +0 -14
- package/src/components/common/chart/MetricInfoBlock.tsx +0 -66
- package/src/components/common/chart/MetricInfoSkeleton.tsx +0 -25
- package/src/components/common/chart/MetricValueSummary.tsx +0 -23
- package/src/components/common/chart/index.ts +0 -8
- package/src/components/common/icons/DownIcon8px.tsx +0 -14
- package/src/components/common/icons/UpIcon8px.tsx +0 -14
- package/src/components/common/icons/index.ts +0 -2
- package/src/components/common/percent/MetricPercentage.tsx +0 -42
- package/src/components/common/percent/index.ts +0 -1
- package/src/components/index.ts +0 -9
- package/src/constants/analytic-metric-tooltip.tsx +0 -164
- package/src/constants/breakdown-targets.ts +0 -25
- package/src/constants/campaign.ts +0 -4
- package/src/constants/chart.ts +0 -17
- package/src/constants/currency.ts +0 -3
- package/src/constants/index.ts +0 -6
- package/src/constants/thumbnail.ts +0 -3
- package/src/core/gemxql/api/index.ts +0 -2
- package/src/core/gemxql/api/useCustomGemXQlQuery.ts +0 -35
- package/src/core/gemxql/api/useGemxQlNamedQuery.ts +0 -34
- package/src/core/gemxql/builder/build-gemxql-query.ts +0 -81
- package/src/core/gemxql/builder/clauses/condition-query.ts +0 -74
- package/src/core/gemxql/builder/clauses/from-query.ts +0 -18
- package/src/core/gemxql/builder/clauses/group-query.ts +0 -43
- package/src/core/gemxql/builder/clauses/index.ts +0 -11
- package/src/core/gemxql/builder/clauses/limit-query.ts +0 -15
- package/src/core/gemxql/builder/clauses/mode-query.ts +0 -14
- package/src/core/gemxql/builder/clauses/offset-query.ts +0 -15
- package/src/core/gemxql/builder/clauses/order-by-query.ts +0 -37
- package/src/core/gemxql/builder/clauses/show-query.ts +0 -18
- package/src/core/gemxql/builder/clauses/time-query.ts +0 -67
- package/src/core/gemxql/builder/clauses/time-series-query.ts +0 -15
- package/src/core/gemxql/builder/clauses/timezone-query.ts +0 -17
- package/src/core/gemxql/builder/configs/date-formats.ts +0 -1
- package/src/core/gemxql/builder/configs/index.ts +0 -3
- package/src/core/gemxql/builder/configs/keywords.ts +0 -16
- package/src/core/gemxql/builder/configs/query-defaults.ts +0 -1
- package/src/core/gemxql/builder/filters/build-extra-conditions.ts +0 -69
- package/src/core/gemxql/builder/filters/build-filter-conditions.ts +0 -161
- package/src/core/gemxql/builder/filters/index.ts +0 -2
- package/src/core/gemxql/builder/helpers/date-query-helpers.ts +0 -41
- package/src/core/gemxql/builder/helpers/index.ts +0 -1
- package/src/core/gemxql/builder/helpers/is-valid-query-input.ts +0 -8
- package/src/core/gemxql/builder/index.ts +0 -6
- package/src/core/gemxql/builder/parse-gemxql-query.ts +0 -43
- package/src/core/gemxql/constants/analytic-data.ts +0 -2
- package/src/core/gemxql/constants/column-keys.ts +0 -4
- package/src/core/gemxql/constants/index.ts +0 -4
- package/src/core/gemxql/constants/operators.ts +0 -2
- package/src/core/gemxql/constants/row-reader-mode.ts +0 -9
- package/src/core/gemxql/graphql/fragments/gemxql.generated.ts +0 -80
- package/src/core/gemxql/graphql/fragments/gemxql.gql +0 -18
- package/src/core/gemxql/graphql/index.ts +0 -2
- package/src/core/gemxql/graphql/queries/gemxql.generated.ts +0 -26
- package/src/core/gemxql/graphql/queries/gemxql.gql +0 -5
- package/src/core/gemxql/helpers/columnKeys.ts +0 -8
- package/src/core/gemxql/helpers/extractQueryData.ts +0 -18
- package/src/core/gemxql/helpers/formatAnalyticData.ts +0 -92
- package/src/core/gemxql/helpers/formatAnalyticDate.ts +0 -29
- package/src/core/gemxql/helpers/getTimeDimension.ts +0 -11
- package/src/core/gemxql/helpers/hasMetricData.ts +0 -6
- package/src/core/gemxql/helpers/index.ts +0 -8
- package/src/core/gemxql/helpers/parseJsonFields.ts +0 -36
- package/src/core/gemxql/helpers/readNumeric.ts +0 -25
- package/src/core/gemxql/hooks/index.ts +0 -2
- package/src/core/gemxql/hooks/useAnalyticData.ts +0 -67
- package/src/core/gemxql/hooks/useGemXQlPagination.ts +0 -79
- package/src/core/gemxql/index.ts +0 -8
- package/src/core/gemxql/types/analytic-data.ts +0 -26
- package/src/core/gemxql/types/analytic-source.ts +0 -4
- package/src/core/gemxql/types/extra-condition.ts +0 -40
- package/src/core/gemxql/types/field-filters.ts +0 -18
- package/src/core/gemxql/types/field-operators.ts +0 -8
- package/src/core/gemxql/types/filter-types.ts +0 -33
- package/src/core/gemxql/types/group-with-clause.ts +0 -12
- package/src/core/gemxql/types/index.ts +0 -11
- package/src/core/gemxql/types/order-by.ts +0 -13
- package/src/core/gemxql/types/page-fields.ts +0 -25
- package/src/core/gemxql/types/row-reader-mode.ts +0 -6
- package/src/core/gemxql/types/time-dimension.ts +0 -8
- package/src/global.d.ts +0 -38
- package/src/hooks/index.ts +0 -7
- package/src/hooks/publish/index.ts +0 -2
- package/src/hooks/publish/useStickyDetectById.ts +0 -39
- package/src/hooks/publish/useStickyFilterBoxProps.ts +0 -26
- package/src/hooks/publish/useWindowSize.ts +0 -54
- package/src/hooks/useEnhancedEffect.ts +0 -3
- package/src/hooks/useFetchCurrencyRates.ts +0 -48
- package/src/hooks/useFormatLineChartData.ts +0 -28
- package/src/hooks/usePopoverResizeObserver.ts +0 -43
- package/src/hooks/usePreventBodyScroll.ts +0 -15
- package/src/hooks/useSearchParams.ts +0 -7
- package/src/hooks/useToggle.ts +0 -23
- package/src/index.ts +0 -10
- package/src/modules/analytics/constants/index.ts +0 -124
- package/src/modules/analytics/index.ts +0 -3
- package/src/modules/analytics/types/index.ts +0 -43
- package/src/modules/analytics/utils/formatMetric.ts +0 -42
- package/src/modules/analytics/utils/getPAMetricValue.ts +0 -11
- package/src/modules/analytics/utils/index.ts +0 -3
- package/src/modules/analytics/utils/metric.ts +0 -172
- package/src/providers/ConvertMoneyProvider.tsx +0 -68
- package/src/providers/MetricChartProvider.tsx +0 -50
- package/src/providers/TimezoneProvider.tsx +0 -31
- package/src/providers/index.ts +0 -5
- package/src/shared/charts/components/ComboChart.tsx +0 -108
- package/src/shared/charts/components/GBarChart.tsx +0 -96
- package/src/shared/charts/components/GComboChart.tsx +0 -15
- package/src/shared/charts/components/GDonutChart.tsx +0 -25
- package/src/shared/charts/components/GFunnelChart/GFunnelChart.tsx +0 -34
- package/src/shared/charts/components/GFunnelChart/components/FunnelChartAction.tsx +0 -67
- package/src/shared/charts/components/GFunnelChart/components/FunnelChartActionIcon.tsx +0 -60
- package/src/shared/charts/components/GFunnelChart/components/FunnelChartActionWrapper.tsx +0 -100
- package/src/shared/charts/components/GFunnelChart/components/FunnelSelection/FunnelSelectionContent.tsx +0 -92
- package/src/shared/charts/components/GFunnelChart/components/FunnelSelection/FunnelSelectionHeader.tsx +0 -54
- package/src/shared/charts/components/GFunnelChart/components/FunnelSelection/FunnelSelectionItem.tsx +0 -51
- package/src/shared/charts/components/GFunnelChart/components/FunnelSelection/FunnelSelectionPopover.tsx +0 -95
- package/src/shared/charts/components/GFunnelChart/components/FunnelSelection/index.ts +0 -1
- package/src/shared/charts/components/GFunnelChart/components/FunnelSelection/type.ts +0 -7
- package/src/shared/charts/components/GFunnelChart/components/types.ts +0 -24
- package/src/shared/charts/components/GFunnelChart/index.ts +0 -4
- package/src/shared/charts/components/GFunnelChart/types.ts +0 -11
- package/src/shared/charts/components/GPolarisViz/components/Arc/Arc.module.scss +0 -7
- package/src/shared/charts/components/GPolarisViz/components/Arc/Arc.tsx +0 -135
- package/src/shared/charts/components/GPolarisViz/components/Arc/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/ChartContainer/ChartContainer.module.scss +0 -39
- package/src/shared/charts/components/GPolarisViz/components/ChartContainer/ChartContainer.tsx +0 -150
- package/src/shared/charts/components/GPolarisViz/components/ChartContainer/hooks/useContainerBounds.ts +0 -113
- package/src/shared/charts/components/GPolarisViz/components/ChartContainer/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/ChartElements/ChartDiv.tsx +0 -18
- package/src/shared/charts/components/GPolarisViz/components/ChartElements/ChartElements.module.scss +0 -21
- package/src/shared/charts/components/GPolarisViz/components/ChartElements/ChartSVG.tsx +0 -40
- package/src/shared/charts/components/GPolarisViz/components/ChartElements/index.ts +0 -7
- package/src/shared/charts/components/GPolarisViz/components/ChartErrorBoundary/ChartErrorBoundary.tsx +0 -56
- package/src/shared/charts/components/GPolarisViz/components/ChartErrorBoundary/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/ChartErrorBoundary/utilities/checkForMismatchedData.ts +0 -34
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/ChartSkeleton.module.scss +0 -6
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/ChartSkeleton.tsx +0 -96
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/DonutSkeleton/DonutSkeleton.module.scss +0 -41
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/DonutSkeleton/DonutSkeleton.tsx +0 -193
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/DonutSkeleton/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/ErrorText/ErrorText.tsx +0 -40
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/ErrorText/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/FunnelSkeleton/FunnelSkeleton.tsx +0 -69
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/FunnelSkeleton/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/GridSkeleton/GridSkeleton.tsx +0 -155
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/GridSkeleton/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/Shimmer/Shimmer.module.scss +0 -33
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/Shimmer/Shimmer.tsx +0 -34
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/Shimmer/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/SimpleBarSkeleton/SimpleBarSkeleton.module.scss +0 -15
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/SimpleBarSkeleton/SimpleBarSkeleton.tsx +0 -53
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/SimpleBarSkeleton/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/SimpleNormalizedSkeleton/SimpleNormalizedSkeleton.module.scss +0 -35
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/SimpleNormalizedSkeleton/SimpleNormalizedSkeleton.tsx +0 -75
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/SimpleNormalizedSkeleton/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/SparkSkeleton/SparkSkeleton.tsx +0 -27
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/SparkSkeleton/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/index.ts +0 -8
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/index.ts +0 -9
- package/src/shared/charts/components/GPolarisViz/components/ConicGradientWithStops/ConicGradientWithStops.tsx +0 -27
- package/src/shared/charts/components/GPolarisViz/components/ConicGradientWithStops/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/DefaultPreview/DefaultPreview.module.scss +0 -8
- package/src/shared/charts/components/GPolarisViz/components/DefaultPreview/DefaultPreview.tsx +0 -25
- package/src/shared/charts/components/GPolarisViz/components/DefaultPreview/index.ts +0 -2
- package/src/shared/charts/components/GPolarisViz/components/FunnelChart/Chart.tsx +0 -209
- package/src/shared/charts/components/GPolarisViz/components/FunnelChart/FunnelChart.tsx +0 -72
- package/src/shared/charts/components/GPolarisViz/components/FunnelChart/components/FunnelChartXAxisArrows.tsx +0 -52
- package/src/shared/charts/components/GPolarisViz/components/FunnelChart/components/FunnelChartXAxisLabels.tsx +0 -66
- package/src/shared/charts/components/GPolarisViz/components/FunnelChart/components/FunnelSegment.tsx +0 -121
- package/src/shared/charts/components/GPolarisViz/components/FunnelChart/components/Label.module.scss +0 -23
- package/src/shared/charts/components/GPolarisViz/components/FunnelChart/components/Label.tsx +0 -67
- package/src/shared/charts/components/GPolarisViz/components/FunnelChart/components/index.ts +0 -4
- package/src/shared/charts/components/GPolarisViz/components/FunnelChart/index.ts +0 -2
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/Chart.tsx +0 -259
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/FunnelChartNext.tsx +0 -104
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/FunnelChartLabels/FunnelChartLabels.tsx +0 -387
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/FunnelChartLabels/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/FunnelTooltip/FunnelTooltip.scss +0 -8
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/FunnelTooltip/FunnelTooltip.tsx +0 -37
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/FunnelTooltip/index.ts +0 -3
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/ScaleIcon.tsx +0 -20
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/ScaleIconTooltip.tsx +0 -31
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/Tooltip/CustomTooltip.tsx +0 -68
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/Tooltip/Tooltip.scss +0 -52
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/Tooltip/Tooltip.tsx +0 -149
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/Tooltip/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/TooltipOverlay.tsx +0 -117
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/TooltipWithPortal.tsx +0 -12
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/index.ts +0 -8
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/constants.ts +0 -28
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/hooks/useTooltipInteraction.ts +0 -59
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/hooks/useTooltipPlacement.ts +0 -113
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/index.ts +0 -6
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/types.ts +0 -13
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/utilities/calculate-dropoff.ts +0 -4
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/utilities/useBuildFunnelTrends.ts +0 -108
- package/src/shared/charts/components/GPolarisViz/components/HorizontalGridLines/HorizontalGridLines.tsx +0 -27
- package/src/shared/charts/components/GPolarisViz/components/HorizontalGridLines/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/Labels/SingleTextLine.tsx +0 -64
- package/src/shared/charts/components/GPolarisViz/components/Labels/hooks/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/Labels/hooks/useLabels.tsx +0 -131
- package/src/shared/charts/components/GPolarisViz/components/Labels/index.ts +0 -3
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/endLineTruncate.ts +0 -23
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/endWordTruncate.ts +0 -34
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/estimateTextHeight.ts +0 -31
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/formatAndAddEllipsis.ts +0 -12
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/getDiagonalLabels.ts +0 -70
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/getHorizontalLabels.ts +0 -90
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/getVerticalLabels.ts +0 -58
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/getWidestLabel.ts +0 -15
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/shouldSkipLabel.ts +0 -11
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/tests/endWordTruncate.test.ts +0 -16
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/tests/estimateTextHeight.test.ts +0 -19
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/tests/formatAndAddEllipsis.test.ts +0 -9
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/tests/truncateLastLine.test.ts +0 -22
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/tests/truncateSingleLine.test.ts +0 -15
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/truncateLabels.ts +0 -75
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/truncateLastLine.ts +0 -61
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/truncateSingleLine.ts +0 -39
- package/src/shared/charts/components/GPolarisViz/components/LinePreview/LinePreview.module.scss +0 -8
- package/src/shared/charts/components/GPolarisViz/components/LinePreview/LinePreview.tsx +0 -105
- package/src/shared/charts/components/GPolarisViz/components/LinePreview/constants.ts +0 -3
- package/src/shared/charts/components/GPolarisViz/components/LinePreview/index.ts +0 -2
- package/src/shared/charts/components/GPolarisViz/components/SwallowErrors/SwallowErrors.tsx +0 -32
- package/src/shared/charts/components/GPolarisViz/components/SwallowErrors/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/TextLine/TextLine.tsx +0 -88
- package/src/shared/charts/components/GPolarisViz/components/TextLine/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/TooltipContent.tsx +0 -109
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipContentContainer/TooltipContentContainer.module.scss +0 -10
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipContentContainer/TooltipContentContainer.tsx +0 -67
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipContentContainer/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipRow/TooltipRow.module.scss +0 -26
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipRow/TooltipRow.tsx +0 -57
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipRow/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipSeries/TooltipSeries.module.scss +0 -4
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipSeries/TooltipSeries.tsx +0 -26
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipSeries/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipSeriesName/TooltipSeriesName.module.scss +0 -4
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipSeriesName/TooltipSeriesName.tsx +0 -20
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipSeriesName/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipTitle/TooltipTitle.module.scss +0 -7
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipTitle/TooltipTitle.tsx +0 -15
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipTitle/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/index.ts +0 -5
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/constants.ts +0 -2
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/hooks/useGetLongestLabelFromData.ts +0 -56
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/index.ts +0 -4
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/utilities/get-tooltip-template-content-column-count.ts +0 -10
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/utilities/tests/get-tooltip-template-content-column-count.test.ts +0 -48
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/TooltipWrapper.tsx +0 -338
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/components/TooltipAnimatedContainer.module.scss +0 -6
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/components/TooltipAnimatedContainer.tsx +0 -139
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/constants.ts +0 -18
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/index.ts +0 -5
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/types.ts +0 -62
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities/eventPoint.ts +0 -84
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities/getAlteredHorizontalBarPosition.ts +0 -110
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities/getAlteredLineChartPosition.ts +0 -115
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities/getAlteredVerticalBarPosition.ts +0 -105
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities/getDonutChartTooltipPosition.ts +0 -64
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities/getHorizontalBarChartTooltipPosition.ts +0 -79
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities/getLineChartTooltipPosition.ts +0 -68
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities/getVerticalBarChartTooltipPosition.ts +0 -123
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities/shouldBlockTooltipEvents.ts +0 -6
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities.ts +0 -162
- package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/TrendIndicator.tsx +0 -72
- package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/components/Arrows/ArrowDown.tsx +0 -12
- package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/components/Arrows/ArrowUp.tsx +0 -12
- package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/components/Arrows/index.ts +0 -2
- package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/components/Svg/Svg.scss +0 -7
- package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/components/Svg/Svg.tsx +0 -27
- package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/components/Svg/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/components/index.ts +0 -2
- package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/constants.ts +0 -12
- package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/index.ts +0 -6
- package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/utilities/estimateTrendIndicatorWidth.ts +0 -9
- package/src/shared/charts/components/GPolarisViz/components/VerticalBarChart/utilities/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/VerticalBarChart/utilities/sortBarChartData.ts +0 -20
- package/src/shared/charts/components/GPolarisViz/components/VerticalGridLines/VerticalGridLines.tsx +0 -32
- package/src/shared/charts/components/GPolarisViz/components/VerticalGridLines/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/index.ts +0 -6
- package/src/shared/charts/components/GPolarisViz/constants.ts +0 -72
- package/src/shared/charts/components/GPolarisViz/data/character-width-offsets.json +0 -65
- package/src/shared/charts/components/GPolarisViz/data/character-widths.json +0 -1
- package/src/shared/charts/components/GPolarisViz/hooks/index.ts +0 -5
- package/src/shared/charts/components/GPolarisViz/hooks/useBarSpringConfig.ts +0 -21
- package/src/shared/charts/components/GPolarisViz/hooks/useBrowserCheck.ts +0 -13
- package/src/shared/charts/components/GPolarisViz/hooks/useCallbackRef.tsx +0 -39
- package/src/shared/charts/components/GPolarisViz/hooks/useDataForHorizontalChart.ts +0 -69
- package/src/shared/charts/components/GPolarisViz/hooks/useDebouncedCallback.ts +0 -197
- package/src/shared/charts/components/GPolarisViz/hooks/useFormattedLabels.ts +0 -31
- package/src/shared/charts/components/GPolarisViz/hooks/useFunnelBarScaling.ts +0 -53
- package/src/shared/charts/components/GPolarisViz/hooks/useHorizontalBarSizes.ts +0 -70
- package/src/shared/charts/components/GPolarisViz/hooks/useHorizontalStackedValues.ts +0 -34
- package/src/shared/charts/components/GPolarisViz/hooks/useHorizontalTicksAndScale.ts +0 -67
- package/src/shared/charts/components/GPolarisViz/hooks/useHorizontalXScale.ts +0 -48
- package/src/shared/charts/components/GPolarisViz/hooks/useIndexForLabels.ts +0 -16
- package/src/shared/charts/components/GPolarisViz/hooks/usePrefersReducedMotion.ts +0 -6
- package/src/shared/charts/components/GPolarisViz/hooks/usePrintResizing.ts +0 -94
- package/src/shared/charts/components/GPolarisViz/hooks/useReducedLabelIndexes.ts +0 -21
- package/src/shared/charts/components/GPolarisViz/hooks/useResizeObserver.ts +0 -39
- package/src/shared/charts/components/GPolarisViz/hooks/useRootContainer.ts +0 -20
- package/src/shared/charts/components/GPolarisViz/hooks/useWatchColorVisionEvents.tsx +0 -35
- package/src/shared/charts/components/GPolarisViz/index.ts +0 -10
- package/src/shared/charts/components/GPolarisViz/shared/Bar/Bar.tsx +0 -89
- package/src/shared/charts/components/GPolarisViz/shared/Bar/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/shared/FunnelChartConnector/FunnelChartConnector.tsx +0 -46
- package/src/shared/charts/components/GPolarisViz/shared/FunnelChartConnector/FunnelChartConnectorGradient.tsx +0 -21
- package/src/shared/charts/components/GPolarisViz/shared/FunnelChartConnector/constants.ts +0 -11
- package/src/shared/charts/components/GPolarisViz/shared/FunnelChartConnector/index.ts +0 -3
- package/src/shared/charts/components/GPolarisViz/shared/FunnelChartSegment/FunnelChartSegment.tsx +0 -100
- package/src/shared/charts/components/GPolarisViz/shared/FunnelChartSegment/components/AnimatedSegment.tsx +0 -50
- package/src/shared/charts/components/GPolarisViz/shared/FunnelChartSegment/components/InteractiveOverlay.tsx +0 -34
- package/src/shared/charts/components/GPolarisViz/shared/FunnelChartSegment/components/ScaledSegment.tsx +0 -218
- package/src/shared/charts/components/GPolarisViz/shared/FunnelChartSegment/constants.ts +0 -4
- package/src/shared/charts/components/GPolarisViz/shared/FunnelChartSegment/index.ts +0 -2
- package/src/shared/charts/components/GPolarisViz/shared/SeriesIcon/SeriesIcon.tsx +0 -22
- package/src/shared/charts/components/GPolarisViz/shared/SeriesIcon/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/shared/ZeroValueLine/ZeroValueLine.tsx +0 -45
- package/src/shared/charts/components/GPolarisViz/shared/ZeroValueLine/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/shared/index.ts +0 -3
- package/src/shared/charts/components/GPolarisViz/styles/_common.scss +0 -15
- package/src/shared/charts/components/GPolarisViz/styles/shared/_accessibility.scss +0 -41
- package/src/shared/charts/components/GPolarisViz/styles/shared/_chart-container.scss +0 -8
- package/src/shared/charts/components/GPolarisViz/styles/shared/_variables.scss +0 -322
- package/src/shared/charts/components/GPolarisViz/types.ts +0 -261
- package/src/shared/charts/components/GPolarisViz/utilities/base.ts +0 -13
- package/src/shared/charts/components/GPolarisViz/utilities/classnames.ts +0 -3
- package/src/shared/charts/components/GPolarisViz/utilities/createCssConicGradient.ts +0 -12
- package/src/shared/charts/components/GPolarisViz/utilities/createCssGradient.ts +0 -7
- package/src/shared/charts/components/GPolarisViz/utilities/estimateStringWidthWithOffset.ts +0 -15
- package/src/shared/charts/components/GPolarisViz/utilities/getAxisOptions.ts +0 -26
- package/src/shared/charts/components/GPolarisViz/utilities/getCSSBackgroundFromColor.ts +0 -8
- package/src/shared/charts/components/GPolarisViz/utilities/getChartId.ts +0 -3
- package/src/shared/charts/components/GPolarisViz/utilities/getFontSize.ts +0 -7
- package/src/shared/charts/components/GPolarisViz/utilities/getStackedMinMax.ts +0 -43
- package/src/shared/charts/components/GPolarisViz/utilities/getStackedValues.ts +0 -35
- package/src/shared/charts/components/GPolarisViz/utilities/getStackedValuesFromDataSeries.tsx +0 -30
- package/src/shared/charts/components/GPolarisViz/utilities/getTrendIndicatorData.ts +0 -22
- package/src/shared/charts/components/GPolarisViz/utilities/hasHiddenComparisonSeries.ts +0 -26
- package/src/shared/charts/components/GPolarisViz/utilities/index.ts +0 -6
- package/src/shared/charts/components/GSimpleBarChart.tsx +0 -32
- package/src/shared/charts/components/index.ts +0 -7
- package/src/shared/charts/constants/chart.ts +0 -14
- package/src/shared/charts/constants/index.ts +0 -1
- package/src/shared/charts/contexts/GChartProvider.tsx +0 -48
- package/src/shared/charts/contexts/index.ts +0 -1
- package/src/shared/charts/index.ts +0 -4
- package/src/shared/charts/types/chart.ts +0 -36
- package/src/shared/charts/types/index.ts +0 -1
- package/src/shared/components/GActivatorPopover/GActivatorPopover.tsx +0 -107
- package/src/shared/components/GActivatorPopover/index.ts +0 -1
- package/src/shared/components/GBlockCenter/GBlockCenter.scss +0 -19
- package/src/shared/components/GBlockCenter/GBlockCenter.tsx +0 -72
- package/src/shared/components/GBlockCenter/index.ts +0 -1
- package/src/shared/components/GBox/GBox.scss +0 -25
- package/src/shared/components/GBox/GBox.tsx +0 -15
- package/src/shared/components/GBox/index.ts +0 -1
- package/src/shared/components/GBoxCard/GBoxCard.tsx +0 -27
- package/src/shared/components/GBoxCard/index.ts +0 -1
- package/src/shared/components/GButton/GButton.scss +0 -41
- package/src/shared/components/GButton/GButton.tsx +0 -73
- package/src/shared/components/GButton/index.ts +0 -1
- package/src/shared/components/GCheckbox/GCheckbox.tsx +0 -176
- package/src/shared/components/GCheckbox/index.ts +0 -1
- package/src/shared/components/GChoice/ChoiceHelpText.tsx +0 -25
- package/src/shared/components/GChoice/GChoice.scss +0 -14
- package/src/shared/components/GChoice/GChoice.tsx +0 -165
- package/src/shared/components/GChoice/index.ts +0 -2
- package/src/shared/components/GClickable/GClickable.tsx +0 -43
- package/src/shared/components/GClickable/index.ts +0 -1
- package/src/shared/components/GDiv/GDiv.tsx +0 -27
- package/src/shared/components/GDiv/index.ts +0 -1
- package/src/shared/components/GDotInline/GDotInline.tsx +0 -20
- package/src/shared/components/GDotInline/index.ts +0 -1
- package/src/shared/components/GFeatureLocked/GFeatureLocked.tsx +0 -85
- package/src/shared/components/GFeatureLocked/assets/images/empty-analytics.png +0 -0
- package/src/shared/components/GFeatureLocked/assets/images/empty-campaign-group-template-illustration.png +0 -0
- package/src/shared/components/GFeatureLocked/assets/images/empty-campaign-group-template.png +0 -0
- package/src/shared/components/GFeatureLocked/assets/images/empty-page-listing-illustration.png +0 -0
- package/src/shared/components/GFeatureLocked/assets/images/empty-page-listing.png +0 -0
- package/src/shared/components/GFeatureLocked/constants.ts +0 -33
- package/src/shared/components/GFeatureLocked/index.ts +0 -2
- package/src/shared/components/GFeatureLocked/types.ts +0 -16
- package/src/shared/components/GI18NText/GI18NText.tsx +0 -37
- package/src/shared/components/GI18NText/index.ts +0 -2
- package/src/shared/components/GI18NText/types.ts +0 -7
- package/src/shared/components/GInlineCenter/GInlineCenter.scss +0 -17
- package/src/shared/components/GInlineCenter/GInlineCenter.tsx +0 -39
- package/src/shared/components/GInlineCenter/index.ts +0 -1
- package/src/shared/components/GMockDataTooltip/GMockDataTooltip.tsx +0 -30
- package/src/shared/components/GMockDataTooltip/index.ts +0 -1
- package/src/shared/components/GModal/GModal.tsx +0 -49
- package/src/shared/components/GModal/index.ts +0 -1
- package/src/shared/components/GOptionList/GOptionList.tsx +0 -63
- package/src/shared/components/GOptionList/index.ts +0 -1
- package/src/shared/components/GPagination/GPagination.tsx +0 -44
- package/src/shared/components/GPagination/hooks/useGPagination.ts +0 -42
- package/src/shared/components/GPagination/index.ts +0 -2
- package/src/shared/components/GSelector/GSelector.tsx +0 -198
- package/src/shared/components/GSelector/index.ts +0 -1
- package/src/shared/components/GSkeletonDisplayText/GSkeletonDisplayText.tsx +0 -14
- package/src/shared/components/GSkeletonDisplayText/index.ts +0 -1
- package/src/shared/components/GSpinner/GSpinner.tsx +0 -16
- package/src/shared/components/GSpinner/index.ts +0 -1
- package/src/shared/components/GTextLink/GTextLink.tsx +0 -26
- package/src/shared/components/GTextLink/index.ts +0 -1
- package/src/shared/components/GTextTooltip/GTextTooltip.tsx +0 -18
- package/src/shared/components/GTextTooltip/index.ts +0 -1
- package/src/shared/components/GTextTruncated/GTextTruncated.tsx +0 -80
- package/src/shared/components/GTextTruncated/index.ts +0 -1
- package/src/shared/components/GThumbnail/GThumbnail.scss +0 -5
- package/src/shared/components/GThumbnail/GThumbnail.tsx +0 -69
- package/src/shared/components/GThumbnail/index.ts +0 -1
- package/src/shared/components/GTooltip/GTooltip.tsx +0 -34
- package/src/shared/components/GTooltip/components/GTooltipCard.tsx +0 -164
- package/src/shared/components/GTooltip/index.ts +0 -3
- package/src/shared/components/GTooltipCard/GTooltipCard.tsx +0 -161
- package/src/shared/components/GTooltipCard/index.ts +0 -7
- package/src/shared/components/GVariantBadge/GVariant.tsx +0 -55
- package/src/shared/components/GVariantBadge/GVariantBadge.scss +0 -10
- package/src/shared/components/GVariantBadge/GVariantBadge.tsx +0 -82
- package/src/shared/components/GVariantBadge/index.ts +0 -4
- package/src/shared/components/GVariantBadge/types.ts +0 -20
- package/src/shared/components/GViewBySelector/GViewBySelector.tsx +0 -114
- package/src/shared/components/GViewBySelector/index.ts +0 -1
- package/src/shared/components/index.ts +0 -26
- package/src/shared/index.ts +0 -1
- package/src/shared/journey/common/JourneyContainer/components/JourneyContainer.tsx +0 -140
- package/src/shared/journey/common/JourneyContainer/components/JourneyTimeline.tsx +0 -18
- package/src/shared/journey/common/JourneyContainer/components/index.ts +0 -2
- package/src/shared/journey/common/JourneyContainer/index.ts +0 -1
- package/src/shared/journey/common/index.ts +0 -1
- package/src/shared/journey/index.ts +0 -2
- package/src/shared/journey/ui/JourneyEvents/components/AcceptedPostPurchaseOffer/AcceptedPostPurchaseOffer.tsx +0 -24
- package/src/shared/journey/ui/JourneyEvents/components/AcceptedPostPurchaseOffer/index.ts +0 -1
- package/src/shared/journey/ui/JourneyEvents/components/CheckoutCompleted/CheckoutCompleted.tsx +0 -64
- package/src/shared/journey/ui/JourneyEvents/components/CheckoutCompleted/index.ts +0 -1
- package/src/shared/journey/ui/JourneyEvents/components/CheckoutItems.tsx +0 -27
- package/src/shared/journey/ui/JourneyEvents/components/CheckoutStarted/CheckoutStarted.tsx +0 -25
- package/src/shared/journey/ui/JourneyEvents/components/CheckoutStarted/CheckoutStartedDetail.tsx +0 -79
- package/src/shared/journey/ui/JourneyEvents/components/CheckoutStarted/index.ts +0 -2
- package/src/shared/journey/ui/JourneyEvents/components/PageViewed/PageViewed.tsx +0 -116
- package/src/shared/journey/ui/JourneyEvents/components/PageViewed/index.ts +0 -1
- package/src/shared/journey/ui/JourneyEvents/components/ProductAddedToCart/ProductAddedToCart.tsx +0 -24
- package/src/shared/journey/ui/JourneyEvents/components/ProductAddedToCart/index.ts +0 -1
- package/src/shared/journey/ui/JourneyEvents/components/ProductQuantity/ProductQuantity.tsx +0 -33
- package/src/shared/journey/ui/JourneyEvents/components/ProductQuantity/index.ts +0 -1
- package/src/shared/journey/ui/JourneyEvents/components/ProductRemovedFromCart/ProductRemovedFromCart.tsx +0 -24
- package/src/shared/journey/ui/JourneyEvents/components/ProductRemovedFromCart/index.ts +0 -1
- package/src/shared/journey/ui/JourneyEvents/components/index.ts +0 -6
- package/src/shared/journey/ui/JourneyEvents/constants/event.ts +0 -38
- package/src/shared/journey/ui/JourneyEvents/constants/index.ts +0 -1
- package/src/shared/journey/ui/JourneyEvents/index.ts +0 -2
- package/src/shared/journey/ui/JourneyEvents/types.ts +0 -2
- package/src/shared/journey/ui/JourneyGroup/JourneyGroup.tsx +0 -41
- package/src/shared/journey/ui/JourneyGroup/index.ts +0 -1
- package/src/shared/journey/ui/JourneyItem/components/EventMarkerIcon.tsx +0 -28
- package/src/shared/journey/ui/JourneyItem/components/JourneyDetail.tsx +0 -24
- package/src/shared/journey/ui/JourneyItem/components/JourneyItem.tsx +0 -27
- package/src/shared/journey/ui/JourneyItem/components/JourneyTime.tsx +0 -33
- package/src/shared/journey/ui/JourneyItem/components/QuantityWrapper.tsx +0 -17
- package/src/shared/journey/ui/JourneyItem/components/index.ts +0 -3
- package/src/shared/journey/ui/JourneyItem/index.ts +0 -2
- package/src/shared/journey/ui/JourneyItem/types/events.ts +0 -33
- package/src/shared/journey/ui/JourneyItem/types/index.ts +0 -1
- package/src/shared/journey/ui/JourneyTitle/components/GemxIdBadge.tsx +0 -38
- package/src/shared/journey/ui/JourneyTitle/components/JourneyDateBadge.tsx +0 -18
- package/src/shared/journey/ui/JourneyTitle/components/JourneyIdBadge.tsx +0 -65
- package/src/shared/journey/ui/JourneyTitle/components/JourneyLoadMore.tsx +0 -43
- package/src/shared/journey/ui/JourneyTitle/components/JourneyTitle.tsx +0 -42
- package/src/shared/journey/ui/JourneyTitle/components/index.ts +0 -2
- package/src/shared/journey/ui/JourneyTitle/constants/idBadge.ts +0 -1
- package/src/shared/journey/ui/JourneyTitle/constants/index.ts +0 -1
- package/src/shared/journey/ui/JourneyTitle/index.ts +0 -1
- package/src/shared/journey/ui/index.ts +0 -3
- package/src/shared/journey/ui/type.ts +0 -2
- package/src/shared/reports/common/Visualization/constants/columns.ts +0 -6
- package/src/shared/reports/common/Visualization/constants/index.ts +0 -2
- package/src/shared/reports/common/Visualization/constants/version.ts +0 -8
- package/src/shared/reports/common/Visualization/index.ts +0 -2
- package/src/shared/reports/common/Visualization/types/chart.ts +0 -5
- package/src/shared/reports/common/Visualization/types/index.ts +0 -3
- package/src/shared/reports/common/Visualization/types/report-metric.ts +0 -21
- package/src/shared/reports/common/Visualization/types/report.ts +0 -42
- package/src/shared/reports/common/Visualization/utils/index.ts +0 -2
- package/src/shared/reports/common/Visualization/utils/version.ts +0 -9
- package/src/shared/reports/common/Visualization/utils/visualization.ts +0 -58
- package/src/shared/reports/common/index.ts +0 -1
- package/src/shared/reports/ui/ReportTable/ReportTable.tsx +0 -194
- package/src/shared/reports/ui/ReportTable/ReportTableSkeleton.tsx +0 -73
- package/src/shared/reports/ui/ReportTable/assets/styles/ReportTable.scss +0 -288
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/CampaignsCell/CampaignsCell.tsx +0 -102
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/CampaignsCell/CampaignsCellVersion.tsx +0 -11
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/CampaignsCell/index.ts +0 -1
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/Cell.tsx +0 -93
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/CellRenderers.tsx +0 -72
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/DateCell.tsx +0 -9
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/DefaultCell.tsx +0 -32
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/GemxIdCell.tsx +0 -18
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/ItemsCell/CheckoutStartedDetail.tsx +0 -79
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/ItemsCell/ItemsCell.tsx +0 -56
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/ItemsCell/index.ts +0 -1
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/NoneCell.tsx +0 -11
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/OrderCell/LoadingData.tsx +0 -10
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/OrderCell/NoData.tsx +0 -13
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/OrderCell/OrderCell.tsx +0 -78
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/OrderCell/OrderCellBase.tsx +0 -55
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/OrderCell/OrderCellContainer.tsx +0 -43
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/OrderCell/OrderItem.tsx +0 -79
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/OrderCell/index.ts +0 -2
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/OrderIdCell.tsx +0 -70
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/PreviousCell.tsx +0 -17
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/TotalCell.tsx +0 -14
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/VersionCell.tsx +0 -31
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/WrapperCell.tsx +0 -31
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/index.ts +0 -1
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/type.ts +0 -18
- package/src/shared/reports/ui/ReportTable/components/Body/Row.tsx +0 -85
- package/src/shared/reports/ui/ReportTable/components/Body/index.ts +0 -2
- package/src/shared/reports/ui/ReportTable/components/Footer/Pagination.tsx +0 -76
- package/src/shared/reports/ui/ReportTable/components/Footer/ScrollBar.tsx +0 -19
- package/src/shared/reports/ui/ReportTable/components/Footer/WrapperFooter.tsx +0 -39
- package/src/shared/reports/ui/ReportTable/components/Footer/index.ts +0 -1
- package/src/shared/reports/ui/ReportTable/components/Header/Header.tsx +0 -68
- package/src/shared/reports/ui/ReportTable/components/Header/SortableHeader.tsx +0 -49
- package/src/shared/reports/ui/ReportTable/components/Header/SortableHeaderWithTooltip.tsx +0 -60
- package/src/shared/reports/ui/ReportTable/components/Header/SummaryCell.tsx +0 -26
- package/src/shared/reports/ui/ReportTable/components/Header/SummaryRow.tsx +0 -69
- package/src/shared/reports/ui/ReportTable/components/Header/WrapperHeader.tsx +0 -54
- package/src/shared/reports/ui/ReportTable/components/Header/index.ts +0 -1
- package/src/shared/reports/ui/ReportTable/components/index.ts +0 -2
- package/src/shared/reports/ui/ReportTable/constants/index.ts +0 -2
- package/src/shared/reports/ui/ReportTable/constants/order.ts +0 -30
- package/src/shared/reports/ui/ReportTable/constants/table.ts +0 -17
- package/src/shared/reports/ui/ReportTable/context/ReportTableActionsContext.tsx +0 -28
- package/src/shared/reports/ui/ReportTable/helpers/format.ts +0 -29
- package/src/shared/reports/ui/ReportTable/helpers/index.ts +0 -2
- package/src/shared/reports/ui/ReportTable/helpers/report.ts +0 -7
- package/src/shared/reports/ui/ReportTable/hooks/index.ts +0 -3
- package/src/shared/reports/ui/ReportTable/hooks/useReportTable.ts +0 -172
- package/src/shared/reports/ui/ReportTable/hooks/useReportTableCell.tsx +0 -28
- package/src/shared/reports/ui/ReportTable/hooks/useSyncedScroll.ts +0 -81
- package/src/shared/reports/ui/ReportTable/index.ts +0 -4
- package/src/shared/reports/ui/ReportTable/types/dimension.ts +0 -8
- package/src/shared/reports/ui/ReportTable/types/index.ts +0 -43
- package/src/shared/reports/ui/ReportTable/types/order.ts +0 -15
- package/src/shared/reports/ui/ReportTable/types/report-columns.ts +0 -11
- package/src/shared/reports/ui/ReportTable/utils/format.ts +0 -100
- package/src/shared/reports/ui/ReportTable/utils/index.ts +0 -2
- package/src/shared/reports/ui/ReportTable/utils/order.ts +0 -8
- package/src/shared/reports/ui/ReportTable/utils/table.ts +0 -19
- package/src/shared/reports/ui/ReportTable/utils/visualization.ts +0 -56
- package/src/shared/reports/ui/index.ts +0 -0
- package/src/stores/currencyRatesStore.ts +0 -13
- package/src/stores/index.ts +0 -2
- package/src/styles/index.scss +0 -9
- package/src/types/analytic-mode.ts +0 -5
- package/src/types/breakdown-items.ts +0 -21
- package/src/types/campaign.ts +0 -13
- package/src/types/chart.ts +0 -42
- package/src/types/currency.ts +0 -329
- package/src/types/index.ts +0 -8
- package/src/types/metric.ts +0 -81
- package/src/types/pricing.ts +0 -38
- package/src/types/report-columns.ts +0 -1
- package/src/types/template.ts +0 -19
- package/src/utils/analytics.ts +0 -75
- package/src/utils/array.ts +0 -13
- package/src/utils/cls.ts +0 -18
- package/src/utils/currency.ts +0 -42
- package/src/utils/date-time.ts +0 -7
- package/src/utils/dayjs.ts +0 -52
- package/src/utils/deep-copy.ts +0 -4
- package/src/utils/index.ts +0 -12
- package/src/utils/is-browser.ts +0 -3
- package/src/utils/number.ts +0 -19
- package/src/utils/percentage.ts +0 -40
- package/src/utils/sort.ts +0 -87
- package/src/utils/string.ts +0 -20
- package/src/utils/template-type.ts +0 -30
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import type { DataPoint, DataSeries } from '@shopify/polaris-viz';
|
|
2
|
-
import type { GTooltipCardData } from '@/shared/components';
|
|
3
|
-
import type { IconSource } from '@shopify/polaris';
|
|
4
|
-
|
|
5
|
-
export type MetricBarChart = { isOrigin: boolean; data: DataPoint };
|
|
6
|
-
|
|
7
|
-
export interface IPointSecondaryAction {
|
|
8
|
-
icon?: IconSource;
|
|
9
|
-
isDeleted?: boolean;
|
|
10
|
-
onAction?: () => void;
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
loading?: boolean;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export interface GDataPointTooltip {
|
|
16
|
-
key: string;
|
|
17
|
-
value: string;
|
|
18
|
-
}
|
|
19
|
-
export interface GDataPointTooltipPrimaryAction {
|
|
20
|
-
content: string;
|
|
21
|
-
onClick: (item?: GDataPoint) => void;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export interface GDataPoint extends DataPoint {
|
|
25
|
-
id?: string;
|
|
26
|
-
parentID?: string;
|
|
27
|
-
secondaryActions?: IPointSecondaryAction[];
|
|
28
|
-
chartTooltip?: GDataPointTooltip[];
|
|
29
|
-
chartTooltipPrimaryAction?: GDataPointTooltipPrimaryAction;
|
|
30
|
-
labelTooltip?: GTooltipCardData;
|
|
31
|
-
title?: string;
|
|
32
|
-
}
|
|
33
|
-
export interface GDataSeries extends DataSeries {
|
|
34
|
-
data: GDataPoint[];
|
|
35
|
-
isEmptyData?: boolean;
|
|
36
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './chart';
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import type { BoxProps, IconSource, TextProps } from '@shopify/polaris';
|
|
2
|
-
|
|
3
|
-
import { Box, InlineGrid, Icon, Text, InlineStack } from '@shopify/polaris';
|
|
4
|
-
import { ChevronDownIcon, ChevronUpIcon } from '@shopify/polaris-icons';
|
|
5
|
-
import { useCallback, useMemo } from 'react';
|
|
6
|
-
import { GClickable } from '../GClickable';
|
|
7
|
-
import { cls } from '@/utils';
|
|
8
|
-
|
|
9
|
-
interface GActivatorPopoverProps {
|
|
10
|
-
onClick: () => void;
|
|
11
|
-
active: boolean;
|
|
12
|
-
content: string;
|
|
13
|
-
/**
|
|
14
|
-
* @param tone
|
|
15
|
-
* - @default: `base` when inactive, `subdued` when active
|
|
16
|
-
* - Overrides both states when provided
|
|
17
|
-
* @param variant
|
|
18
|
-
* - @default: `bodyMd`
|
|
19
|
-
*/
|
|
20
|
-
textProps?: Pick<TextProps, 'tone' | 'variant' | 'truncate'>;
|
|
21
|
-
/**
|
|
22
|
-
* @param disabled
|
|
23
|
-
* - @default: `false`
|
|
24
|
-
*/
|
|
25
|
-
boxProps?: BoxProps;
|
|
26
|
-
icon?: IconSource;
|
|
27
|
-
disabled?: boolean;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export const GActivatorPopover = ({
|
|
31
|
-
onClick,
|
|
32
|
-
active,
|
|
33
|
-
content,
|
|
34
|
-
textProps,
|
|
35
|
-
boxProps: customBoxProps,
|
|
36
|
-
disabled,
|
|
37
|
-
icon: customIcon,
|
|
38
|
-
}: GActivatorPopoverProps) => {
|
|
39
|
-
const boxProps = useMemo<BoxProps>(() => {
|
|
40
|
-
if (disabled) {
|
|
41
|
-
return {
|
|
42
|
-
borderColor: 'border-disabled',
|
|
43
|
-
background: 'bg-surface-disabled',
|
|
44
|
-
...customBoxProps,
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
return {
|
|
49
|
-
shadow: active ? 'button-inset' : 'button',
|
|
50
|
-
background: active ? 'bg-fill-active' : 'bg-fill',
|
|
51
|
-
...customBoxProps,
|
|
52
|
-
};
|
|
53
|
-
}, [active, disabled, customBoxProps]);
|
|
54
|
-
|
|
55
|
-
const toneClass = useMemo<string>(() => {
|
|
56
|
-
if (disabled) {
|
|
57
|
-
return 'text-[var(--p-color-text-disabled)]';
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
return active ? 'text-[var(--p-color-text-subdued)]' : 'text-[var(--p-color-text)]';
|
|
61
|
-
}, [active, disabled]);
|
|
62
|
-
|
|
63
|
-
const textComponent = useMemo(() => {
|
|
64
|
-
return (
|
|
65
|
-
<Text
|
|
66
|
-
as="span"
|
|
67
|
-
variant="bodyMd"
|
|
68
|
-
fontWeight="medium"
|
|
69
|
-
tone={disabled ? 'inherit' : textProps?.tone}
|
|
70
|
-
truncate
|
|
71
|
-
{...(textProps?.variant && { variant: textProps.variant })}
|
|
72
|
-
>
|
|
73
|
-
{content}
|
|
74
|
-
</Text>
|
|
75
|
-
);
|
|
76
|
-
}, [content, textProps, disabled]);
|
|
77
|
-
|
|
78
|
-
const handleClick = useCallback(() => {
|
|
79
|
-
if (disabled) return;
|
|
80
|
-
|
|
81
|
-
onClick();
|
|
82
|
-
}, [disabled, onClick]);
|
|
83
|
-
|
|
84
|
-
return (
|
|
85
|
-
<GClickable cursor={disabled ? 'default' : 'pointer'} onClick={handleClick}>
|
|
86
|
-
<div className={cls(toneClass)}>
|
|
87
|
-
<Box padding="150" paddingInline="300" paddingInlineEnd="150" borderRadius="200" {...boxProps}>
|
|
88
|
-
{customIcon && (
|
|
89
|
-
<InlineStack gap="200" align="center" wrap={false}>
|
|
90
|
-
<Box>
|
|
91
|
-
<Icon source={customIcon} />
|
|
92
|
-
</Box>
|
|
93
|
-
{textComponent}
|
|
94
|
-
</InlineStack>
|
|
95
|
-
)}
|
|
96
|
-
|
|
97
|
-
{!customIcon && (
|
|
98
|
-
<InlineGrid columns="1fr 20px" gap="200" alignItems="center">
|
|
99
|
-
{textComponent}
|
|
100
|
-
<Icon source={active ? ChevronUpIcon : ChevronDownIcon} />
|
|
101
|
-
</InlineGrid>
|
|
102
|
-
)}
|
|
103
|
-
</Box>
|
|
104
|
-
</div>
|
|
105
|
-
</GClickable>
|
|
106
|
-
);
|
|
107
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './GActivatorPopover';
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
.Polaris-GBlockCenter {
|
|
2
|
-
--gp-block-center-height: auto;
|
|
3
|
-
--gp-block-center-align: center;
|
|
4
|
-
--gp-block-center-inline-align: center;
|
|
5
|
-
--gp-block-center-overflow-x: unset;
|
|
6
|
-
--gp-block-center-overflow-y: unset;
|
|
7
|
-
--gp-block-center-display: block;
|
|
8
|
-
|
|
9
|
-
overflow-x: var(--gp-block-center-overflow-x);
|
|
10
|
-
overflow-y: var(--gp-block-center-overflow-y);
|
|
11
|
-
|
|
12
|
-
display: var(--gp-block-center-display);
|
|
13
|
-
> .Polaris-Box {
|
|
14
|
-
display: flex;
|
|
15
|
-
align-items: var(--gp-block-center-align);
|
|
16
|
-
justify-content: var(--gp-block-center-inline-align);
|
|
17
|
-
height: var(--gp-block-center-height);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { useMemo, type CSSProperties } from 'react';
|
|
2
|
-
|
|
3
|
-
import type { BoxProps } from '@shopify/polaris';
|
|
4
|
-
import './GBlockCenter.scss';
|
|
5
|
-
|
|
6
|
-
import { Box } from '@shopify/polaris';
|
|
7
|
-
|
|
8
|
-
export type SpaceScale =
|
|
9
|
-
| '0'
|
|
10
|
-
| '025'
|
|
11
|
-
| '050'
|
|
12
|
-
| '100'
|
|
13
|
-
| '150'
|
|
14
|
-
| '200'
|
|
15
|
-
| '300'
|
|
16
|
-
| '400'
|
|
17
|
-
| '500'
|
|
18
|
-
| '600'
|
|
19
|
-
| '800'
|
|
20
|
-
| '1000'
|
|
21
|
-
| '1200'
|
|
22
|
-
| '1600'
|
|
23
|
-
| '2000'
|
|
24
|
-
| '2400'
|
|
25
|
-
| '2800'
|
|
26
|
-
| '3200';
|
|
27
|
-
|
|
28
|
-
export interface GBlockCenterProps
|
|
29
|
-
extends Omit<BoxProps, 'insetInlineStart' | 'insetInlineEnd' | 'insetBlockStart' | 'insetBlockEnd'> {
|
|
30
|
-
height?: string;
|
|
31
|
-
align?: 'center' | 'start' | 'end';
|
|
32
|
-
inlineAlign?: 'center' | 'start' | 'end';
|
|
33
|
-
display?: CSSProperties['display'];
|
|
34
|
-
insetInlineStart?: SpaceScale;
|
|
35
|
-
insetInlineEnd?: SpaceScale;
|
|
36
|
-
insetBlockStart?: SpaceScale;
|
|
37
|
-
insetBlockEnd?: SpaceScale;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export const GBlockCenter = ({ height, align, inlineAlign, display, ...props }: GBlockCenterProps) => {
|
|
41
|
-
const stickyStyle = useMemo<CSSProperties>(() => {
|
|
42
|
-
if (props.position !== 'sticky') return {};
|
|
43
|
-
|
|
44
|
-
const style: CSSProperties = {
|
|
45
|
-
position: 'sticky',
|
|
46
|
-
};
|
|
47
|
-
if (props.insetInlineStart) style.insetInlineStart = Number(props.insetInlineStart) * 4;
|
|
48
|
-
if (props.insetInlineEnd) style.insetInlineEnd = Number(props.insetInlineEnd) * 4;
|
|
49
|
-
if (props.insetBlockStart) style.insetBlockStart = Number(props.insetBlockStart) * 4;
|
|
50
|
-
if (props.insetBlockEnd) style.insetBlockEnd = Number(props.insetBlockEnd) * 4;
|
|
51
|
-
return style;
|
|
52
|
-
}, [props.position, props.insetInlineStart, props.insetInlineEnd, props.insetBlockStart, props.insetBlockEnd]);
|
|
53
|
-
|
|
54
|
-
return (
|
|
55
|
-
<div
|
|
56
|
-
className="Polaris-GBlockCenter"
|
|
57
|
-
style={
|
|
58
|
-
{
|
|
59
|
-
...stickyStyle,
|
|
60
|
-
'--gp-block-center-height': height,
|
|
61
|
-
'--gp-block-center-display': display,
|
|
62
|
-
'--gp-block-center-align': align,
|
|
63
|
-
'--gp-block-center-inline-align': inlineAlign,
|
|
64
|
-
'--gp-block-center-overflow-x': props.overflowX,
|
|
65
|
-
'--gp-block-center-overflow-y': props.overflowY,
|
|
66
|
-
} as CSSProperties
|
|
67
|
-
}
|
|
68
|
-
>
|
|
69
|
-
<Box {...props} />
|
|
70
|
-
</div>
|
|
71
|
-
);
|
|
72
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './GBlockCenter';
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
.Polaris-Box {
|
|
2
|
-
&[aria-label='shadow-outset-200'] {
|
|
3
|
-
box-shadow:
|
|
4
|
-
0 4px 6px -2px #1a1a1a33,
|
|
5
|
-
0 -1px #0000002b inset,
|
|
6
|
-
0px 0 #00000021 inset,
|
|
7
|
-
0px 0 #00000021 inset;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
&[aria-label='shadow-drop-outset-100'] {
|
|
11
|
-
box-shadow: 0px 0px 6px 1px #1a1a1a33;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
&[aria-label='shadow-top-100'] {
|
|
15
|
-
box-shadow: 0 -2px 4px -1px #1a1a1a14;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
&[aria-label='shadow-bottom-100'] {
|
|
19
|
-
box-shadow: 0 2px 4px -1px #1a1a1a24;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
&[aria-description='height-full'] {
|
|
23
|
-
height: 100%;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { BoxProps } from '@shopify/polaris';
|
|
2
|
-
|
|
3
|
-
import { Box } from '@shopify/polaris';
|
|
4
|
-
|
|
5
|
-
type AriaShadowType = 'shadow-outset-200' | 'shadow-drop-outset-100' | 'shadow-top-100' | 'shadow-bottom-100';
|
|
6
|
-
type AriaHeightType = 'height-full';
|
|
7
|
-
|
|
8
|
-
export interface GBoxProps extends BoxProps {
|
|
9
|
-
ariaShadow?: AriaShadowType;
|
|
10
|
-
ariaHeight?: AriaHeightType;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export const GBox = (props: GBoxProps) => {
|
|
14
|
-
return <Box {...props} aria-label={props.ariaShadow} aria-description={props.ariaHeight} />;
|
|
15
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './GBox';
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { BoxProps } from '@shopify/polaris';
|
|
2
|
-
|
|
3
|
-
import { Box } from '@shopify/polaris';
|
|
4
|
-
|
|
5
|
-
interface GBoxCardProps extends BoxProps {
|
|
6
|
-
children: React.ReactNode;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export const G_BOX_CARD_DEFAULT_PROPS: Pick<
|
|
10
|
-
BoxProps,
|
|
11
|
-
'padding' | 'background' | 'borderRadius' | 'shadow' | 'outlineWidth' | 'outlineColor'
|
|
12
|
-
> = {
|
|
13
|
-
padding: '400',
|
|
14
|
-
background: 'bg-fill',
|
|
15
|
-
borderRadius: '300',
|
|
16
|
-
shadow: '200',
|
|
17
|
-
outlineWidth: '0165',
|
|
18
|
-
outlineColor: 'border-secondary',
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export const GBoxCard = ({ children, ...props }: GBoxCardProps) => {
|
|
22
|
-
return (
|
|
23
|
-
<Box {...G_BOX_CARD_DEFAULT_PROPS} {...props}>
|
|
24
|
-
{children}
|
|
25
|
-
</Box>
|
|
26
|
-
);
|
|
27
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './GBoxCard';
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
.Polaris-GButton {
|
|
2
|
-
&--fullWidth {
|
|
3
|
-
width: 100%;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
&--icon-right {
|
|
7
|
-
.Polaris-Button {
|
|
8
|
-
flex-direction: row-reverse;
|
|
9
|
-
padding-left: 12px;
|
|
10
|
-
padding-right: 4px;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
&--neutral {
|
|
15
|
-
.Polaris-Button {
|
|
16
|
-
background-color: #d4d4d4 !important;
|
|
17
|
-
box-shadow: none !important;
|
|
18
|
-
|
|
19
|
-
&:hover {
|
|
20
|
-
background-color: #c4c4c4 !important;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
&:active {
|
|
24
|
-
background-color: #b4b4b4 !important;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
&--dark {
|
|
30
|
-
display: flex;
|
|
31
|
-
.Polaris-Button--variantTertiary {
|
|
32
|
-
--pc-button-icon-fill: var(--p-color-text-inverse) !important;
|
|
33
|
-
--pc-button-icon-fill_hover: var(--p-color-text-inverse-secondary) !important;
|
|
34
|
-
--pc-button-icon-fill_active: var(--p-color-text-inverse-secondary) !important;
|
|
35
|
-
--pc-button-icon-fill_disabled: var(--p-color-text-inverse-secondary) !important;
|
|
36
|
-
|
|
37
|
-
color: var(--p-color-text-inverse) !important;
|
|
38
|
-
background-color: var(--p-color-bg-surface-inverse) !important;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import type { ButtonProps, LinkProps } from '@shopify/polaris';
|
|
2
|
-
import type { GTooltipProps } from '../GTooltip';
|
|
3
|
-
|
|
4
|
-
import { Button, Box } from '@shopify/polaris';
|
|
5
|
-
|
|
6
|
-
import { GTooltip } from '../GTooltip';
|
|
7
|
-
import { cls } from '@/utils';
|
|
8
|
-
|
|
9
|
-
import './GButton.scss';
|
|
10
|
-
|
|
11
|
-
export interface GButtonProps extends Omit<ButtonProps, 'variant'> {
|
|
12
|
-
linkAction?: LinkProps;
|
|
13
|
-
activatorWrapper?: 'div' | 'span';
|
|
14
|
-
iconRight?: boolean;
|
|
15
|
-
stopPropagation?: boolean;
|
|
16
|
-
tooltip?: GTooltipProps;
|
|
17
|
-
themeTone?: 'dark' | 'light';
|
|
18
|
-
/**
|
|
19
|
-
* Adds padding="100" wrapper to compensate for tertiary variant's -4px margin.
|
|
20
|
-
* Also applies display="flex" automatically.
|
|
21
|
-
* Use this when placing tertiary buttons in tight layouts.
|
|
22
|
-
*/
|
|
23
|
-
inset?: boolean;
|
|
24
|
-
variant?: ButtonProps['variant'] | 'neutral';
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export const GButton: React.FC<GButtonProps> = ({
|
|
28
|
-
activatorWrapper,
|
|
29
|
-
children,
|
|
30
|
-
iconRight,
|
|
31
|
-
inset,
|
|
32
|
-
stopPropagation = true,
|
|
33
|
-
onClick,
|
|
34
|
-
themeTone = 'light',
|
|
35
|
-
variant,
|
|
36
|
-
...props
|
|
37
|
-
}) => {
|
|
38
|
-
const Wrapper = activatorWrapper || 'div';
|
|
39
|
-
const isNeutral = variant === 'neutral';
|
|
40
|
-
const polarisVariant = isNeutral ? undefined : variant;
|
|
41
|
-
|
|
42
|
-
const handleClick = (e: React.MouseEvent) => {
|
|
43
|
-
stopPropagation && e.stopPropagation();
|
|
44
|
-
if (props.disabled) return;
|
|
45
|
-
onClick?.();
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
const button = (
|
|
49
|
-
<GTooltip activatorWrapper="tooltip-content" {...props.tooltip}>
|
|
50
|
-
<Wrapper
|
|
51
|
-
className={cls('Polaris-GButton', {
|
|
52
|
-
'Polaris-GButton--icon-right': iconRight,
|
|
53
|
-
'Polaris-GButton--dark': themeTone === 'dark',
|
|
54
|
-
'Polaris-GButton--neutral': isNeutral,
|
|
55
|
-
'cursor-default': props.disabled,
|
|
56
|
-
'Polaris-GButton--fullWidth': props.fullWidth,
|
|
57
|
-
flex: inset,
|
|
58
|
-
})}
|
|
59
|
-
onClick={handleClick}
|
|
60
|
-
>
|
|
61
|
-
<Button variant={polarisVariant} {...props}>
|
|
62
|
-
{children}
|
|
63
|
-
</Button>
|
|
64
|
-
</Wrapper>
|
|
65
|
-
</GTooltip>
|
|
66
|
-
);
|
|
67
|
-
|
|
68
|
-
if (inset) {
|
|
69
|
-
return <Box padding="100">{button}</Box>;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
return button;
|
|
73
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './GButton';
|
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
import type { CheckboxProps, RadioButtonProps } from '@shopify/polaris';
|
|
2
|
-
import type { GTooltipProps } from '@/shared';
|
|
3
|
-
|
|
4
|
-
import { BlockStack, Box, Checkbox, InlineStack, RadioButton, Text } from '@shopify/polaris';
|
|
5
|
-
import { ChoiceHelpText, GTooltip } from '@/shared';
|
|
6
|
-
import { useEffect, useState } from 'react';
|
|
7
|
-
import { cls } from '@/utils';
|
|
8
|
-
|
|
9
|
-
// Base interface for common properties
|
|
10
|
-
interface GCheckboxOptionBase {
|
|
11
|
-
value: string;
|
|
12
|
-
label: string;
|
|
13
|
-
selected: boolean;
|
|
14
|
-
tooltip?: GTooltipProps;
|
|
15
|
-
description?: string;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export interface GCheckboxSingleOption
|
|
19
|
-
extends GCheckboxOptionBase,
|
|
20
|
-
Omit<CheckboxProps, 'value' | 'onChange' | 'label'> {}
|
|
21
|
-
export interface GCheckboxMultipleOption
|
|
22
|
-
extends GCheckboxOptionBase,
|
|
23
|
-
Omit<RadioButtonProps, 'value' | 'onChange' | 'label'> {}
|
|
24
|
-
interface GCheckboxSingleProps {
|
|
25
|
-
multiple?: false;
|
|
26
|
-
options: GCheckboxSingleOption[];
|
|
27
|
-
onChange: (value: string) => void;
|
|
28
|
-
id?: string;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
interface GCheckboxMultipleProps {
|
|
32
|
-
multiple: true;
|
|
33
|
-
/**
|
|
34
|
-
* @default false
|
|
35
|
-
*/
|
|
36
|
-
emptySelected?: boolean;
|
|
37
|
-
selected?: string[];
|
|
38
|
-
options: GCheckboxMultipleOption[];
|
|
39
|
-
onChange: (values: string[]) => void;
|
|
40
|
-
onChangeSingleValue?: (value: string) => void;
|
|
41
|
-
id?: string;
|
|
42
|
-
itemHovered?: string;
|
|
43
|
-
onHover?: (value?: string) => void;
|
|
44
|
-
dependentDisabledValues?: Set<string>;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
type GCheckboxProps = GCheckboxSingleProps | GCheckboxMultipleProps;
|
|
48
|
-
|
|
49
|
-
export const GCheckbox = ({ ...props }: GCheckboxProps) => {
|
|
50
|
-
return props.multiple ? <GCheckboxMultiple {...props} /> : <GCheckboxSingle {...props} />;
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
export const GCheckboxMultiple = ({
|
|
54
|
-
options,
|
|
55
|
-
onChange,
|
|
56
|
-
onChangeSingleValue,
|
|
57
|
-
emptySelected,
|
|
58
|
-
selected,
|
|
59
|
-
onHover,
|
|
60
|
-
itemHovered,
|
|
61
|
-
dependentDisabledValues,
|
|
62
|
-
}: GCheckboxMultipleProps) => {
|
|
63
|
-
const [settingOptions, setSettingOptions] = useState<string[]>([]);
|
|
64
|
-
|
|
65
|
-
const handleChange = (value: string) => {
|
|
66
|
-
if (onChangeSingleValue) {
|
|
67
|
-
onChangeSingleValue(value);
|
|
68
|
-
}
|
|
69
|
-
const updatedOptions = settingOptions.includes(value)
|
|
70
|
-
? settingOptions.filter((item) => item !== value)
|
|
71
|
-
: [...settingOptions, value];
|
|
72
|
-
|
|
73
|
-
setSettingOptions(updatedOptions);
|
|
74
|
-
onChange(updatedOptions);
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
const handleHover = (value?: string) => {
|
|
78
|
-
if (!onHover) return;
|
|
79
|
-
|
|
80
|
-
onHover(value);
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
useEffect(() => {
|
|
84
|
-
setSettingOptions(() => {
|
|
85
|
-
if (selected) {
|
|
86
|
-
return options.filter((item) => selected.includes(item.value)).map((item) => item.value);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
return [];
|
|
90
|
-
});
|
|
91
|
-
}, [selected, options]);
|
|
92
|
-
|
|
93
|
-
return (
|
|
94
|
-
<BlockStack>
|
|
95
|
-
{options.map((item) => {
|
|
96
|
-
const hasForceUnchecked = dependentDisabledValues?.has(item.value);
|
|
97
|
-
const isOnlyOneSelected = !!emptySelected && settingOptions.length === 1;
|
|
98
|
-
|
|
99
|
-
const handleCheckboxClick = () => {
|
|
100
|
-
if (isOnlyOneSelected) return;
|
|
101
|
-
|
|
102
|
-
handleChange(item.value);
|
|
103
|
-
};
|
|
104
|
-
|
|
105
|
-
return (
|
|
106
|
-
<div
|
|
107
|
-
key={item.value}
|
|
108
|
-
className={cls('flex w-full items-center justify-between', {
|
|
109
|
-
'cursor-not-allowed': isOnlyOneSelected,
|
|
110
|
-
'cursor-pointer': !isOnlyOneSelected,
|
|
111
|
-
'bg-surface-hover rounded-lg': itemHovered === item.value,
|
|
112
|
-
})}
|
|
113
|
-
onClick={() => {
|
|
114
|
-
if (isOnlyOneSelected || item.disabled) return;
|
|
115
|
-
|
|
116
|
-
handleCheckboxClick();
|
|
117
|
-
}}
|
|
118
|
-
onMouseEnter={() => handleHover(item.value)}
|
|
119
|
-
onMouseLeave={() => handleHover(undefined)}
|
|
120
|
-
>
|
|
121
|
-
{isOnlyOneSelected ? (
|
|
122
|
-
<GTooltip isEnabled={item.tooltip?.isEnabled} {...item.tooltip}>
|
|
123
|
-
<Box paddingBlock="150" paddingInline="200" width="100%">
|
|
124
|
-
<InlineStack blockAlign="center" gap="150">
|
|
125
|
-
<Checkbox label={item.label} labelHidden checked={item.selected} disabled />
|
|
126
|
-
<Text as="p" variant="bodyMd" tone="subdued">
|
|
127
|
-
{item.label}
|
|
128
|
-
</Text>
|
|
129
|
-
</InlineStack>
|
|
130
|
-
</Box>
|
|
131
|
-
</GTooltip>
|
|
132
|
-
) : (
|
|
133
|
-
<Box paddingBlock="150" paddingInline="200" minWidth="0">
|
|
134
|
-
<InlineStack blockAlign="center" gap="150" wrap={false}>
|
|
135
|
-
<Checkbox
|
|
136
|
-
label={item.label}
|
|
137
|
-
labelHidden
|
|
138
|
-
checked={hasForceUnchecked ? false : settingOptions.includes(item.value)}
|
|
139
|
-
onChange={handleCheckboxClick}
|
|
140
|
-
disabled={item.disabled}
|
|
141
|
-
/>
|
|
142
|
-
<Box minWidth="0">
|
|
143
|
-
<Text as="p" variant="bodyMd" truncate tone={hasForceUnchecked ? 'disabled' : 'inherit'}>
|
|
144
|
-
{item.label}
|
|
145
|
-
</Text>
|
|
146
|
-
{item.description && (
|
|
147
|
-
<Text as="p" variant="bodySm" tone="disabled" truncate>
|
|
148
|
-
{item.description}
|
|
149
|
-
</Text>
|
|
150
|
-
)}
|
|
151
|
-
</Box>
|
|
152
|
-
</InlineStack>
|
|
153
|
-
</Box>
|
|
154
|
-
)}
|
|
155
|
-
</div>
|
|
156
|
-
);
|
|
157
|
-
})}
|
|
158
|
-
</BlockStack>
|
|
159
|
-
);
|
|
160
|
-
};
|
|
161
|
-
|
|
162
|
-
export const GCheckboxSingle = ({ options, onChange }: GCheckboxSingleProps) => {
|
|
163
|
-
return (
|
|
164
|
-
<BlockStack gap="300">
|
|
165
|
-
{options.map((item) => (
|
|
166
|
-
<RadioButton
|
|
167
|
-
key={item.value}
|
|
168
|
-
label={item.label}
|
|
169
|
-
checked={item.selected}
|
|
170
|
-
onChange={() => onChange(item.value)}
|
|
171
|
-
helpText={item.helpText ? <ChoiceHelpText item={item} /> : undefined}
|
|
172
|
-
/>
|
|
173
|
-
))}
|
|
174
|
-
</BlockStack>
|
|
175
|
-
);
|
|
176
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './GCheckbox';
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { GChoiceProps } from './GChoice';
|
|
2
|
-
|
|
3
|
-
import { Link, Text } from '@shopify/polaris';
|
|
4
|
-
|
|
5
|
-
export const ChoiceHelpText = ({ item }: { item: GChoiceProps['item'] }) => {
|
|
6
|
-
return (
|
|
7
|
-
<Text as="p" variant="bodyMd">
|
|
8
|
-
{item.description}
|
|
9
|
-
{item.inlineAction && (
|
|
10
|
-
<Link
|
|
11
|
-
monochrome={true}
|
|
12
|
-
onClick={() => {
|
|
13
|
-
if (item.inlineAction?.onAction) {
|
|
14
|
-
item.inlineAction?.onAction();
|
|
15
|
-
} else {
|
|
16
|
-
window.open(item.inlineAction?.url, item.inlineAction?.target ?? '_blank');
|
|
17
|
-
}
|
|
18
|
-
}}
|
|
19
|
-
>
|
|
20
|
-
{item.inlineAction?.content}
|
|
21
|
-
</Link>
|
|
22
|
-
)}
|
|
23
|
-
</Text>
|
|
24
|
-
);
|
|
25
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
.Polaris-Choice {
|
|
2
|
-
padding-top: 0;
|
|
3
|
-
padding-bottom: 0;
|
|
4
|
-
}
|
|
5
|
-
.Polaris-Choice__Descriptions .Polaris-Choice__HelpText {
|
|
6
|
-
margin-bottom: 0 !important;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.GChoice-ChoiceBox {
|
|
10
|
-
cursor: pointer;
|
|
11
|
-
}
|
|
12
|
-
.GChoice-ChoiceBox:hover {
|
|
13
|
-
background-color: var('--p-color-bg-fill-tertiary');
|
|
14
|
-
}
|