@ledgerhq/lumen-ui-react 0.1.55 → 0.1.57
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/ai-rules/RULES.md +5 -4
- package/dist/lib/Components/core/Card/Card.d.ts.map +1 -1
- package/dist/lib/Components/core/Card/Card.js +29 -25
- package/dist/lib/Components/core/SearchInput/types.d.ts +2 -2
- package/dist/lib/Components/core/SearchInput/types.d.ts.map +1 -1
- package/dist/lib/Components/core/TextInput/types.d.ts +1 -2
- package/dist/lib/Components/core/TextInput/types.d.ts.map +1 -1
- package/dist/lib/Components/internal/BaseInput/BaseInput.d.ts +2 -16
- package/dist/lib/Components/internal/BaseInput/BaseInput.d.ts.map +1 -1
- package/dist/lib/Components/internal/BaseInput/BaseInput.js +141 -168
- package/dist/lib/Components/internal/BaseInput/BaseInputCounter.d.ts +8 -0
- package/dist/lib/Components/internal/BaseInput/BaseInputCounter.d.ts.map +1 -0
- package/dist/lib/Components/internal/BaseInput/BaseInputCounter.js +8 -0
- package/dist/lib/Components/internal/BaseInput/BaseInputHelperText.d.ts +8 -0
- package/dist/lib/Components/internal/BaseInput/BaseInputHelperText.d.ts.map +1 -0
- package/dist/lib/Components/internal/BaseInput/BaseInputHelperText.js +37 -0
- package/dist/lib/Components/internal/BaseInput/BaseInputLabel.d.ts +8 -0
- package/dist/lib/Components/internal/BaseInput/BaseInputLabel.d.ts.map +1 -0
- package/dist/lib/Components/internal/BaseInput/BaseInputLabel.js +48 -0
- package/dist/lib/Components/internal/BaseInput/BaseInputMultiline.d.ts +9 -0
- package/dist/lib/Components/internal/BaseInput/BaseInputMultiline.d.ts.map +1 -0
- package/dist/lib/Components/internal/BaseInput/BaseInputMultiline.js +88 -0
- package/dist/lib/Components/internal/BaseInput/BaseInputSingleLine.d.ts +8 -0
- package/dist/lib/Components/internal/BaseInput/BaseInputSingleLine.d.ts.map +1 -0
- package/dist/lib/Components/internal/BaseInput/BaseInputSingleLine.js +25 -0
- package/dist/lib/Components/internal/BaseInput/types.d.ts +72 -1
- package/dist/lib/Components/internal/BaseInput/types.d.ts.map +1 -1
- package/dist/lib/Components/internal/BaseInput/useAutosizeTextarea/index.d.ts +2 -0
- package/dist/lib/Components/internal/BaseInput/useAutosizeTextarea/index.d.ts.map +1 -0
- package/dist/lib/Components/internal/BaseInput/useAutosizeTextarea/useAutosizeTextarea.d.ts +20 -0
- package/dist/lib/Components/internal/BaseInput/useAutosizeTextarea/useAutosizeTextarea.d.ts.map +1 -0
- package/dist/lib/Components/internal/BaseInput/useAutosizeTextarea/useAutosizeTextarea.js +49 -0
- package/dist/lib/Components/internal/BaseInput/useBaseInputValue/useBaseInputValue.d.ts +26 -0
- package/dist/lib/Components/internal/BaseInput/useBaseInputValue/useBaseInputValue.d.ts.map +1 -0
- package/dist/lib/Components/internal/BaseInput/useBaseInputValue/useBaseInputValue.js +35 -0
- package/dist/lib/Components/visualization/Axis/XAxis/XAxis.d.ts +3 -0
- package/dist/lib/Components/visualization/Axis/XAxis/XAxis.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Axis/XAxis/XAxis.js +85 -0
- package/dist/lib/Components/visualization/Axis/XAxis/index.d.ts +3 -0
- package/dist/lib/Components/visualization/Axis/XAxis/index.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Axis/XAxis/types.d.ts +9 -0
- package/dist/lib/Components/visualization/Axis/XAxis/types.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Axis/YAxis/YAxis.d.ts +3 -0
- package/dist/lib/Components/visualization/Axis/YAxis/YAxis.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Axis/YAxis/YAxis.js +85 -0
- package/dist/lib/Components/visualization/Axis/YAxis/index.d.ts +3 -0
- package/dist/lib/Components/visualization/Axis/YAxis/index.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Axis/YAxis/types.d.ts +14 -0
- package/dist/lib/Components/visualization/Axis/YAxis/types.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Axis/index.d.ts +2 -0
- package/dist/lib/Components/visualization/Axis/index.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Axis/types.d.ts +80 -0
- package/dist/lib/Components/visualization/Axis/types.d.ts.map +1 -0
- package/dist/lib/Components/visualization/CartesianChart/CartesianChart.d.ts +3 -0
- package/dist/lib/Components/visualization/CartesianChart/CartesianChart.d.ts.map +1 -0
- package/dist/lib/Components/visualization/CartesianChart/CartesianChart.js +107 -0
- package/dist/lib/Components/visualization/CartesianChart/ChartEmptyLabel/ChartEmptyLabel.d.ts +11 -0
- package/dist/lib/Components/visualization/CartesianChart/ChartEmptyLabel/ChartEmptyLabel.d.ts.map +1 -0
- package/dist/lib/Components/visualization/CartesianChart/ChartEmptyLabel/ChartEmptyLabel.js +21 -0
- package/dist/lib/Components/visualization/CartesianChart/RevealAnimation/RevealAnimationProvider.d.ts +3 -0
- package/dist/lib/Components/visualization/CartesianChart/RevealAnimation/RevealAnimationProvider.d.ts.map +1 -0
- package/dist/lib/Components/visualization/CartesianChart/RevealAnimation/RevealAnimationProvider.js +41 -0
- package/dist/lib/Components/visualization/CartesianChart/RevealAnimation/context.d.ts +15 -0
- package/dist/lib/Components/visualization/CartesianChart/RevealAnimation/context.d.ts.map +1 -0
- package/dist/lib/Components/visualization/CartesianChart/RevealAnimation/context.js +10 -0
- package/dist/lib/Components/visualization/CartesianChart/RevealAnimation/index.d.ts +3 -0
- package/dist/lib/Components/visualization/CartesianChart/RevealAnimation/index.d.ts.map +1 -0
- package/dist/lib/Components/visualization/CartesianChart/RevealAnimation/types.d.ts +57 -0
- package/dist/lib/Components/visualization/CartesianChart/RevealAnimation/types.d.ts.map +1 -0
- package/dist/lib/Components/visualization/CartesianChart/RevealAnimation/utils.d.ts +35 -0
- package/dist/lib/Components/visualization/CartesianChart/RevealAnimation/utils.d.ts.map +1 -0
- package/dist/lib/Components/visualization/CartesianChart/RevealAnimation/utils.js +69 -0
- package/dist/lib/Components/visualization/CartesianChart/context/cartesianChartContext.d.ts +8 -0
- package/dist/lib/Components/visualization/CartesianChart/context/cartesianChartContext.d.ts.map +1 -0
- package/dist/lib/Components/visualization/CartesianChart/context/cartesianChartContext.js +9 -0
- package/dist/lib/Components/visualization/CartesianChart/context/index.d.ts +3 -0
- package/dist/lib/Components/visualization/CartesianChart/context/index.d.ts.map +1 -0
- package/dist/lib/Components/visualization/CartesianChart/context/useBuildChartContext.d.ts +25 -0
- package/dist/lib/Components/visualization/CartesianChart/context/useBuildChartContext.d.ts.map +1 -0
- package/dist/lib/Components/visualization/CartesianChart/context/useBuildChartContext.js +61 -0
- package/dist/lib/Components/visualization/CartesianChart/hooks/useShimmerAnimation.d.ts +18 -0
- package/dist/lib/Components/visualization/CartesianChart/hooks/useShimmerAnimation.d.ts.map +1 -0
- package/dist/lib/Components/visualization/CartesianChart/hooks/useShimmerAnimation.js +15 -0
- package/dist/lib/Components/visualization/CartesianChart/index.d.ts +4 -0
- package/dist/lib/Components/visualization/CartesianChart/index.d.ts.map +1 -0
- package/dist/lib/Components/visualization/CartesianChart/types.d.ts +127 -0
- package/dist/lib/Components/visualization/CartesianChart/types.d.ts.map +1 -0
- package/dist/lib/Components/visualization/CartesianChart/utils.d.ts +5 -0
- package/dist/lib/Components/visualization/CartesianChart/utils.d.ts.map +1 -0
- package/dist/lib/Components/visualization/CartesianChart/utils.js +24 -0
- package/dist/lib/Components/visualization/DonutChart/DonutChart.d.ts +3 -0
- package/dist/lib/Components/visualization/DonutChart/DonutChart.d.ts.map +1 -0
- package/dist/lib/Components/visualization/DonutChart/DonutChart.js +90 -0
- package/dist/lib/Components/visualization/DonutChart/DonutChartAnimatedCenter.d.ts +10 -0
- package/dist/lib/Components/visualization/DonutChart/DonutChartAnimatedCenter.d.ts.map +1 -0
- package/dist/lib/Components/visualization/DonutChart/DonutChartAnimatedCenter.js +61 -0
- package/dist/lib/Components/visualization/DonutChart/DonutChartCenter.d.ts +9 -0
- package/dist/lib/Components/visualization/DonutChart/DonutChartCenter.d.ts.map +1 -0
- package/dist/lib/Components/visualization/DonutChart/DonutChartCenter.js +20 -0
- package/dist/lib/Components/visualization/DonutChart/DonutChartDescription.d.ts +3 -0
- package/dist/lib/Components/visualization/DonutChart/DonutChartDescription.d.ts.map +1 -0
- package/dist/lib/Components/visualization/DonutChart/DonutChartDescription.js +49 -0
- package/dist/lib/Components/visualization/DonutChart/DonutChartTitle.d.ts +3 -0
- package/dist/lib/Components/visualization/DonutChart/DonutChartTitle.d.ts.map +1 -0
- package/dist/lib/Components/visualization/DonutChart/DonutChartTitle.js +55 -0
- package/dist/lib/Components/visualization/DonutChart/DonutRing.d.ts +12 -0
- package/dist/lib/Components/visualization/DonutChart/DonutRing.d.ts.map +1 -0
- package/dist/lib/Components/visualization/DonutChart/DonutRing.js +110 -0
- package/dist/lib/Components/visualization/DonutChart/RevealAnimation.d.ts +7 -0
- package/dist/lib/Components/visualization/DonutChart/RevealAnimation.d.ts.map +1 -0
- package/dist/lib/Components/visualization/DonutChart/RevealAnimation.js +28 -0
- package/dist/lib/Components/visualization/DonutChart/donutSizeContext.d.ts +18 -0
- package/dist/lib/Components/visualization/DonutChart/donutSizeContext.d.ts.map +1 -0
- package/dist/lib/Components/visualization/DonutChart/donutSizeContext.js +6 -0
- package/dist/lib/Components/visualization/DonutChart/hooks/useContrastSafeSeries.d.ts +12 -0
- package/dist/lib/Components/visualization/DonutChart/hooks/useContrastSafeSeries.d.ts.map +1 -0
- package/dist/lib/Components/visualization/DonutChart/hooks/useContrastSafeSeries.js +13 -0
- package/dist/lib/Components/visualization/DonutChart/hooks/useDonutLoadingAnimation.d.ts +8 -0
- package/dist/lib/Components/visualization/DonutChart/hooks/useDonutLoadingAnimation.d.ts.map +1 -0
- package/dist/lib/Components/visualization/DonutChart/hooks/useDonutLoadingAnimation.js +16 -0
- package/dist/lib/Components/visualization/DonutChart/index.d.ts +7 -0
- package/dist/lib/Components/visualization/DonutChart/index.d.ts.map +1 -0
- package/dist/lib/Components/visualization/DonutChart/types.d.ts +172 -0
- package/dist/lib/Components/visualization/DonutChart/types.d.ts.map +1 -0
- package/dist/lib/Components/visualization/DonutChart/useDonutSeries/index.d.ts +3 -0
- package/dist/lib/Components/visualization/DonutChart/useDonutSeries/index.d.ts.map +1 -0
- package/dist/lib/Components/visualization/DonutChart/useDonutSeries/useDonutSeries.d.ts +10 -0
- package/dist/lib/Components/visualization/DonutChart/useDonutSeries/useDonutSeries.d.ts.map +1 -0
- package/dist/lib/Components/visualization/DonutChart/useDonutSeries/useDonutSeries.js +16 -0
- package/dist/lib/Components/visualization/DonutChart/useDonutSeries/utils.d.ts +9 -0
- package/dist/lib/Components/visualization/DonutChart/useDonutSeries/utils.d.ts.map +1 -0
- package/dist/lib/Components/visualization/DonutChart/useDonutSeries/utils.js +46 -0
- package/dist/lib/Components/visualization/DonutChart/utils.d.ts +37 -0
- package/dist/lib/Components/visualization/DonutChart/utils.d.ts.map +1 -0
- package/dist/lib/Components/visualization/DonutChart/utils.js +83 -0
- package/dist/lib/Components/visualization/Legend/Legend.d.ts +3 -0
- package/dist/lib/Components/visualization/Legend/Legend.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Legend/Legend.js +23 -0
- package/dist/lib/Components/visualization/Legend/LegendItem.d.ts +7 -0
- package/dist/lib/Components/visualization/Legend/LegendItem.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Legend/LegendItem.js +19 -0
- package/dist/lib/Components/visualization/Legend/index.d.ts +3 -0
- package/dist/lib/Components/visualization/Legend/index.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Legend/types.d.ts +32 -0
- package/dist/lib/Components/visualization/Legend/types.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Line/Line.d.ts +3 -0
- package/dist/lib/Components/visualization/Line/Line.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Line/Line.js +82 -0
- package/dist/lib/Components/visualization/Line/index.d.ts +3 -0
- package/dist/lib/Components/visualization/Line/index.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Line/types.d.ts +45 -0
- package/dist/lib/Components/visualization/Line/types.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Line/utils.d.ts +28 -0
- package/dist/lib/Components/visualization/Line/utils.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Line/utils.js +34 -0
- package/dist/lib/Components/visualization/LineChart/LineChart.d.ts +3 -0
- package/dist/lib/Components/visualization/LineChart/LineChart.d.ts.map +1 -0
- package/dist/lib/Components/visualization/LineChart/LineChart.js +181 -0
- package/dist/lib/Components/visualization/LineChart/LineChartEmptyState/LineChartEmptyState.d.ts +9 -0
- package/dist/lib/Components/visualization/LineChart/LineChartEmptyState/LineChartEmptyState.d.ts.map +1 -0
- package/dist/lib/Components/visualization/LineChart/LineChartEmptyState/LineChartEmptyState.js +51 -0
- package/dist/lib/Components/visualization/LineChart/LineChartEmptyState/index.d.ts +3 -0
- package/dist/lib/Components/visualization/LineChart/LineChartEmptyState/index.d.ts.map +1 -0
- package/dist/lib/Components/visualization/LineChart/LineChartEmptyState/types.d.ts +3 -0
- package/dist/lib/Components/visualization/LineChart/LineChartEmptyState/types.d.ts.map +1 -0
- package/dist/lib/Components/visualization/LineChart/LineChartEmptyState/utils.d.ts +8 -0
- package/dist/lib/Components/visualization/LineChart/LineChartEmptyState/utils.d.ts.map +1 -0
- package/dist/lib/Components/visualization/LineChart/LineChartEmptyState/utils.js +8 -0
- package/dist/lib/Components/visualization/LineChart/index.d.ts +3 -0
- package/dist/lib/Components/visualization/LineChart/index.d.ts.map +1 -0
- package/dist/lib/Components/visualization/LineChart/types.d.ts +82 -0
- package/dist/lib/Components/visualization/LineChart/types.d.ts.map +1 -0
- package/dist/lib/Components/visualization/LineChart/utils.d.ts +56 -0
- package/dist/lib/Components/visualization/LineChart/utils.d.ts.map +1 -0
- package/dist/lib/Components/visualization/LineChart/utils.js +57 -0
- package/dist/lib/Components/visualization/Point/Point.d.ts +4 -0
- package/dist/lib/Components/visualization/Point/Point.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Point/Point.js +122 -0
- package/dist/lib/Components/visualization/Point/index.d.ts +3 -0
- package/dist/lib/Components/visualization/Point/index.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Point/pointContext/MagneticPointsProvider.d.ts +7 -0
- package/dist/lib/Components/visualization/Point/pointContext/MagneticPointsProvider.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Point/pointContext/MagneticPointsProvider.js +22 -0
- package/dist/lib/Components/visualization/Point/pointContext/index.d.ts +3 -0
- package/dist/lib/Components/visualization/Point/pointContext/index.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Point/pointContext/magneticPointsContext.d.ts +30 -0
- package/dist/lib/Components/visualization/Point/pointContext/magneticPointsContext.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Point/pointContext/magneticPointsContext.js +14 -0
- package/dist/lib/Components/visualization/Point/types.d.ts +110 -0
- package/dist/lib/Components/visualization/Point/types.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Point/usePointGeometry.d.ts +33 -0
- package/dist/lib/Components/visualization/Point/usePointGeometry.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Point/usePointGeometry.js +30 -0
- package/dist/lib/Components/visualization/Point/utils.d.ts +51 -0
- package/dist/lib/Components/visualization/Point/utils.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Point/utils.js +54 -0
- package/dist/lib/Components/visualization/ReferenceLine/ReferenceLine.d.ts +3 -0
- package/dist/lib/Components/visualization/ReferenceLine/ReferenceLine.d.ts.map +1 -0
- package/dist/lib/Components/visualization/ReferenceLine/ReferenceLine.js +42 -0
- package/dist/lib/Components/visualization/ReferenceLine/index.d.ts +3 -0
- package/dist/lib/Components/visualization/ReferenceLine/index.d.ts.map +1 -0
- package/dist/lib/Components/visualization/ReferenceLine/types.d.ts +74 -0
- package/dist/lib/Components/visualization/ReferenceLine/types.d.ts.map +1 -0
- package/dist/lib/Components/visualization/ReferenceLine/useReferenceLineGeometry.d.ts +21 -0
- package/dist/lib/Components/visualization/ReferenceLine/useReferenceLineGeometry.d.ts.map +1 -0
- package/dist/lib/Components/visualization/ReferenceLine/useReferenceLineGeometry.js +49 -0
- package/dist/lib/Components/visualization/ReferenceLine/utils.d.ts +50 -0
- package/dist/lib/Components/visualization/ReferenceLine/utils.d.ts.map +1 -0
- package/dist/lib/Components/visualization/ReferenceLine/utils.js +66 -0
- package/dist/lib/Components/visualization/Scrubber/DefaultScrubberTooltip/ChartTooltipItem.d.ts +9 -0
- package/dist/lib/Components/visualization/Scrubber/DefaultScrubberTooltip/ChartTooltipItem.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Scrubber/DefaultScrubberTooltip/ChartTooltipItem.js +50 -0
- package/dist/lib/Components/visualization/Scrubber/DefaultScrubberTooltip/DefaultScrubberTooltip.d.ts +12 -0
- package/dist/lib/Components/visualization/Scrubber/DefaultScrubberTooltip/DefaultScrubberTooltip.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Scrubber/DefaultScrubberTooltip/DefaultScrubberTooltip.js +82 -0
- package/dist/lib/Components/visualization/Scrubber/DefaultScrubberTooltip/utils.d.ts +58 -0
- package/dist/lib/Components/visualization/Scrubber/DefaultScrubberTooltip/utils.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Scrubber/DefaultScrubberTooltip/utils.js +80 -0
- package/dist/lib/Components/visualization/Scrubber/Scrubber.d.ts +29 -0
- package/dist/lib/Components/visualization/Scrubber/Scrubber.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Scrubber/Scrubber.js +114 -0
- package/dist/lib/Components/visualization/Scrubber/ScrubberProvider.d.ts +3 -0
- package/dist/lib/Components/visualization/Scrubber/ScrubberProvider.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Scrubber/ScrubberProvider.js +154 -0
- package/dist/lib/Components/visualization/Scrubber/context/index.d.ts +2 -0
- package/dist/lib/Components/visualization/Scrubber/context/index.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Scrubber/context/scrubberContext.d.ts +8 -0
- package/dist/lib/Components/visualization/Scrubber/context/scrubberContext.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Scrubber/context/scrubberContext.js +9 -0
- package/dist/lib/Components/visualization/Scrubber/index.d.ts +4 -0
- package/dist/lib/Components/visualization/Scrubber/index.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Scrubber/types.d.ts +130 -0
- package/dist/lib/Components/visualization/Scrubber/types.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Scrubber/useScrubberGeometry.d.ts +29 -0
- package/dist/lib/Components/visualization/Scrubber/useScrubberGeometry.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Scrubber/useScrubberGeometry.js +37 -0
- package/dist/lib/Components/visualization/Scrubber/utils.d.ts +79 -0
- package/dist/lib/Components/visualization/Scrubber/utils.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Scrubber/utils.js +104 -0
- package/dist/lib/Components/visualization/config.d.ts +162 -0
- package/dist/lib/Components/visualization/config.d.ts.map +1 -0
- package/dist/lib/Components/visualization/config.js +156 -0
- package/dist/lib/Components/visualization/index.d.ts +8 -0
- package/dist/lib/Components/visualization/index.d.ts.map +1 -0
- package/dist/lib/Components/visualization/index.js +27 -0
- package/dist/lib/Components/visualization/utils/domain/domain.d.ts +18 -0
- package/dist/lib/Components/visualization/utils/domain/domain.d.ts.map +1 -0
- package/dist/lib/Components/visualization/utils/domain/domain.js +35 -0
- package/dist/lib/Components/visualization/utils/index.d.ts +2 -0
- package/dist/lib/Components/visualization/utils/index.d.ts.map +1 -0
- package/dist/lib/Components/visualization/utils/numbers.d.ts +13 -0
- package/dist/lib/Components/visualization/utils/numbers.d.ts.map +1 -0
- package/dist/lib/Components/visualization/utils/numbers.js +5 -0
- package/dist/lib/Components/visualization/utils/scales/scales.d.ts +47 -0
- package/dist/lib/Components/visualization/utils/scales/scales.d.ts.map +1 -0
- package/dist/lib/Components/visualization/utils/scales/scales.js +32 -0
- package/dist/lib/Components/visualization/utils/ticks/ticks.d.ts +35 -0
- package/dist/lib/Components/visualization/utils/ticks/ticks.d.ts.map +1 -0
- package/dist/lib/Components/visualization/utils/ticks/ticks.js +23 -0
- package/dist/lib/Components/visualization/utils/types.d.ts +63 -0
- package/dist/lib/Components/visualization/utils/types.d.ts.map +1 -0
- package/dist/libs/design-core/dist/lib/colorContrast/colorContrast.js +15 -0
- package/dist/libs/design-core/dist/lib/colorContrast/hexToHsl.js +14 -0
- package/dist/libs/design-core/dist/lib/colorContrast/hslToHex.js +10 -0
- package/dist/libs/design-core/dist/lib/themes/js/primitives/primitive.colors.js +15 -0
- package/dist/libs/utils-shared/dist/index.js +115 -113
- package/dist/package.json +11 -3
- package/package.json +12 -4
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { jsxs as a, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { cva as l } from "class-variance-authority";
|
|
3
|
+
import { InformationFill as o } from "../../symbols/icons/InformationFill.js";
|
|
4
|
+
import { DeleteCircleFill as c } from "../../symbols/icons/DeleteCircleFill.js";
|
|
5
|
+
import { CheckmarkCircleFill as i } from "../../symbols/icons/CheckmarkCircleFill.js";
|
|
6
|
+
const m = l("flex items-center gap-2 body-3", {
|
|
7
|
+
variants: {
|
|
8
|
+
status: {
|
|
9
|
+
default: "text-muted",
|
|
10
|
+
error: "text-error",
|
|
11
|
+
success: "text-success"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
defaultVariants: {
|
|
15
|
+
status: "default"
|
|
16
|
+
}
|
|
17
|
+
}), u = ({
|
|
18
|
+
id: s,
|
|
19
|
+
helperText: t,
|
|
20
|
+
status: e
|
|
21
|
+
}) => /* @__PURE__ */ a(
|
|
22
|
+
"div",
|
|
23
|
+
{
|
|
24
|
+
id: s,
|
|
25
|
+
className: m({ status: e }),
|
|
26
|
+
role: e === "error" ? "alert" : void 0,
|
|
27
|
+
children: [
|
|
28
|
+
!e && /* @__PURE__ */ r(o, { size: 16, className: "text-muted" }),
|
|
29
|
+
e === "error" && /* @__PURE__ */ r(c, { size: 16, className: "text-error" }),
|
|
30
|
+
e === "success" && /* @__PURE__ */ r(i, { size: 16, className: "text-success" }),
|
|
31
|
+
/* @__PURE__ */ r("span", { className: "body-3", children: t })
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
export {
|
|
36
|
+
u as BaseInputHelperText
|
|
37
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BaseInputLabelProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Floating label rendered over the control inside `BaseInput`.
|
|
4
|
+
*
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export declare const BaseInputLabel: ({ htmlFor, status, floated, multiline, className, children, }: BaseInputLabelProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=BaseInputLabel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseInputLabel.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/internal/BaseInput/BaseInputLabel.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAiCnD;;;;GAIG;AACH,eAAO,MAAM,cAAc,GAAI,+DAO5B,mBAAmB,4CASrB,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { cn as e } from "../../../../libs/utils-shared/dist/index.js";
|
|
3
|
+
import { cva as p } from "class-variance-authority";
|
|
4
|
+
const c = e(
|
|
5
|
+
"pointer-events-none absolute top-6 left-16 origin-left body-4 text-muted transition-all duration-300",
|
|
6
|
+
"peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:scale-100 peer-placeholder-shown:body-2",
|
|
7
|
+
"group-has-disabled:text-disabled",
|
|
8
|
+
"peer-focus:top-6 peer-focus:translate-y-0 peer-focus:body-4",
|
|
9
|
+
"w-[calc(100%-var(--size-56))] truncate"
|
|
10
|
+
), d = p(c, {
|
|
11
|
+
variants: {
|
|
12
|
+
status: {
|
|
13
|
+
default: "",
|
|
14
|
+
error: "text-error",
|
|
15
|
+
success: ""
|
|
16
|
+
},
|
|
17
|
+
multiline: {
|
|
18
|
+
true: "peer-placeholder-shown:top-14 peer-placeholder-shown:translate-y-0",
|
|
19
|
+
false: ""
|
|
20
|
+
},
|
|
21
|
+
floated: {
|
|
22
|
+
true: "peer-placeholder-shown:top-6 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:body-4",
|
|
23
|
+
false: ""
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
defaultVariants: {
|
|
27
|
+
status: "default",
|
|
28
|
+
multiline: !1,
|
|
29
|
+
floated: !1
|
|
30
|
+
}
|
|
31
|
+
}), f = ({
|
|
32
|
+
htmlFor: t,
|
|
33
|
+
status: a,
|
|
34
|
+
floated: l,
|
|
35
|
+
multiline: r,
|
|
36
|
+
className: o,
|
|
37
|
+
children: s
|
|
38
|
+
}) => /* @__PURE__ */ n(
|
|
39
|
+
"label",
|
|
40
|
+
{
|
|
41
|
+
htmlFor: t,
|
|
42
|
+
className: e(d({ status: a, floated: l, multiline: r }), o),
|
|
43
|
+
children: s
|
|
44
|
+
}
|
|
45
|
+
);
|
|
46
|
+
export {
|
|
47
|
+
f as BaseInputLabel
|
|
48
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseInputMultilineProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* The auto-growing multi-line control rendered inside `BaseInput`, paired with the
|
|
4
|
+
* hidden clone it is measured against.
|
|
5
|
+
*
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
8
|
+
export declare const BaseInputMultiline: ({ ref, className, hasLabel, minLines, maxLines, scrollbarWidth, onChange, ...props }: BaseInputMultilineProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=BaseInputMultiline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseInputMultiline.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/internal/BaseInput/BaseInputMultiline.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAkEvD;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,GAAI,sFAShC,uBAAuB,4CAyCzB,CAAC"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { jsxs as m, Fragment as g, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { useMergedRef as b, cn as u } from "../../../../libs/utils-shared/dist/index.js";
|
|
3
|
+
import { cva as x } from "class-variance-authority";
|
|
4
|
+
import { useRef as v, useLayoutEffect as w } from "react";
|
|
5
|
+
import { useAutosizeTextarea as C } from "./useAutosizeTextarea/useAutosizeTextarea.js";
|
|
6
|
+
const c = x(
|
|
7
|
+
[
|
|
8
|
+
"w-full flex-1 resize-none bg-transparent body-1 wrap-break-word whitespace-pre-wrap text-base caret-active outline-hidden transition-colors",
|
|
9
|
+
"group-has-disabled:cursor-not-allowed group-has-disabled:text-disabled",
|
|
10
|
+
"placeholder:text-muted group-has-disabled:placeholder:text-disabled"
|
|
11
|
+
],
|
|
12
|
+
{
|
|
13
|
+
variants: {
|
|
14
|
+
hasLabel: {
|
|
15
|
+
true: "body-2",
|
|
16
|
+
false: ""
|
|
17
|
+
},
|
|
18
|
+
scrollbarWidth: {
|
|
19
|
+
auto: "scrollbar-custom pe-8",
|
|
20
|
+
none: "scrollbar-none"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
defaultVariants: {
|
|
24
|
+
hasLabel: !1,
|
|
25
|
+
scrollbarWidth: "auto"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
), R = (s, r) => {
|
|
29
|
+
const t = v(!1), o = (e) => {
|
|
30
|
+
const a = e.target, n = "isComposing" in e.nativeEvent && e.nativeEvent.isComposing === !0;
|
|
31
|
+
t.current = !n && a.value.endsWith(`
|
|
32
|
+
`) && a.selectionStart === a.value.length, r?.(e);
|
|
33
|
+
};
|
|
34
|
+
return w(() => {
|
|
35
|
+
if (!t.current) return;
|
|
36
|
+
t.current = !1;
|
|
37
|
+
const e = s.current;
|
|
38
|
+
!e || document.activeElement !== e || (e.scrollTop = e.scrollHeight);
|
|
39
|
+
}), o;
|
|
40
|
+
}, I = ({
|
|
41
|
+
ref: s,
|
|
42
|
+
className: r,
|
|
43
|
+
hasLabel: t = !1,
|
|
44
|
+
minLines: o = 1,
|
|
45
|
+
maxLines: e,
|
|
46
|
+
scrollbarWidth: a = "auto",
|
|
47
|
+
onChange: n,
|
|
48
|
+
...d
|
|
49
|
+
}) => {
|
|
50
|
+
const { textareaRef: l, shadowRef: f } = C({
|
|
51
|
+
minLines: o,
|
|
52
|
+
maxLines: e
|
|
53
|
+
}), p = b(s, l), h = R(l, n);
|
|
54
|
+
return /* @__PURE__ */ m(g, { children: [
|
|
55
|
+
/* @__PURE__ */ i(
|
|
56
|
+
"textarea",
|
|
57
|
+
{
|
|
58
|
+
ref: p,
|
|
59
|
+
rows: o,
|
|
60
|
+
className: u(
|
|
61
|
+
"peer",
|
|
62
|
+
c({ hasLabel: t, scrollbarWidth: a }),
|
|
63
|
+
t && "mt-16",
|
|
64
|
+
r
|
|
65
|
+
),
|
|
66
|
+
onChange: h,
|
|
67
|
+
...d
|
|
68
|
+
}
|
|
69
|
+
),
|
|
70
|
+
/* @__PURE__ */ i(
|
|
71
|
+
"textarea",
|
|
72
|
+
{
|
|
73
|
+
ref: f,
|
|
74
|
+
"aria-hidden": !0,
|
|
75
|
+
readOnly: !0,
|
|
76
|
+
tabIndex: -1,
|
|
77
|
+
className: u(
|
|
78
|
+
c({ hasLabel: t, scrollbarWidth: a }),
|
|
79
|
+
r,
|
|
80
|
+
"invisible absolute top-0 left-0 h-0 transform-gpu overflow-hidden py-0"
|
|
81
|
+
)
|
|
82
|
+
}
|
|
83
|
+
)
|
|
84
|
+
] });
|
|
85
|
+
};
|
|
86
|
+
export {
|
|
87
|
+
I as BaseInputMultiline
|
|
88
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BaseInputSingleLineProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* The single-line control rendered inside `BaseInput`.
|
|
4
|
+
*
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export declare const BaseInputSingleLine: ({ ref, className, hasLabel, ...props }: BaseInputSingleLineProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=BaseInputSingleLine.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseInputSingleLine.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/internal/BaseInput/BaseInputSingleLine.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAWxD;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,GAAI,wCAKjC,wBAAwB,4CAQ1B,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
2
|
+
import { cn as e } from "../../../../libs/utils-shared/dist/index.js";
|
|
3
|
+
const r = e(
|
|
4
|
+
"peer w-full flex-1 bg-muted body-1 text-base caret-active outline-hidden transition-colors",
|
|
5
|
+
"group-hover:bg-muted-hover group-disabled:bg-disabled",
|
|
6
|
+
"group-has-disabled:cursor-not-allowed group-has-disabled:bg-disabled group-has-disabled:text-disabled",
|
|
7
|
+
"placeholder:text-muted group-has-disabled:placeholder:text-disabled",
|
|
8
|
+
"[&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",
|
|
9
|
+
"truncate"
|
|
10
|
+
), l = ({
|
|
11
|
+
ref: t,
|
|
12
|
+
className: a,
|
|
13
|
+
hasLabel: o = !1,
|
|
14
|
+
...s
|
|
15
|
+
}) => /* @__PURE__ */ d(
|
|
16
|
+
"input",
|
|
17
|
+
{
|
|
18
|
+
ref: t,
|
|
19
|
+
className: e(r, o && "pt-12 body-2", a),
|
|
20
|
+
...s
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
export {
|
|
24
|
+
l as BaseInputSingleLine
|
|
25
|
+
};
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
import { ComponentPropsWithRef, ReactNode } from 'react';
|
|
1
|
+
import { ComponentPropsWithRef, InputHTMLAttributes, ReactNode, Ref } from 'react';
|
|
2
2
|
export type BaseInputStatus = 'error' | 'success';
|
|
3
|
+
export type BaseInputElement = HTMLInputElement | HTMLTextAreaElement;
|
|
4
|
+
/**
|
|
5
|
+
* Visibility of the scroll affordance once the field reaches `maxLines`.
|
|
6
|
+
*/
|
|
7
|
+
export type BaseInputScrollbarWidth = 'none' | 'auto';
|
|
3
8
|
export type BaseInputProps = {
|
|
4
9
|
/**
|
|
5
10
|
* The label text that floats above the input when focused or filled.
|
|
@@ -37,6 +42,7 @@ export type BaseInputProps = {
|
|
|
37
42
|
prefix?: ReactNode;
|
|
38
43
|
/**
|
|
39
44
|
* Optional function to extend the default clear behavior with custom logic
|
|
45
|
+
* Called after the field is emptied. Clearing always calls `onChange` first
|
|
40
46
|
*/
|
|
41
47
|
onClear?: () => void;
|
|
42
48
|
/**
|
|
@@ -60,7 +66,72 @@ export type BaseInputProps = {
|
|
|
60
66
|
* Additional class names to apply to the label element
|
|
61
67
|
*/
|
|
62
68
|
labelClassName?: string;
|
|
69
|
+
/**
|
|
70
|
+
* Renders a multi-line `textarea` that auto-grows between `minLines` and `maxLines`
|
|
71
|
+
* @default false
|
|
72
|
+
*/
|
|
73
|
+
multiline?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Minimum height of the field, in lines. Ignored unless `multiline` is set.
|
|
76
|
+
* @default 1
|
|
77
|
+
*/
|
|
78
|
+
minLines?: number;
|
|
79
|
+
/**
|
|
80
|
+
* Growth ceiling, in lines; past it the field scrolls internally. Unbounded when
|
|
81
|
+
* omitted. Ignored unless `multiline` is set.
|
|
82
|
+
*/
|
|
83
|
+
maxLines?: number;
|
|
84
|
+
/**
|
|
85
|
+
* Controls whether the Lumen thin scrollbar is visible once the field reaches
|
|
86
|
+
* `maxLines`. Ignored unless `multiline` is set.
|
|
87
|
+
* @default 'auto'
|
|
88
|
+
*/
|
|
89
|
+
scrollbarWidth?: BaseInputScrollbarWidth;
|
|
90
|
+
} & Omit<InputHTMLAttributes<BaseInputElement>, 'size' | 'prefix'> & {
|
|
91
|
+
ref?: Ref<BaseInputElement>;
|
|
92
|
+
};
|
|
93
|
+
export type BaseInputSingleLineProps = {
|
|
94
|
+
/**
|
|
95
|
+
* Whether a floating label sits above the value, reserving vertical space at
|
|
96
|
+
* the top of the input.
|
|
97
|
+
* @default false
|
|
98
|
+
*/
|
|
99
|
+
hasLabel?: boolean;
|
|
63
100
|
} & Omit<ComponentPropsWithRef<'input'>, 'size' | 'prefix'>;
|
|
101
|
+
export type BaseInputMultilineProps = {
|
|
102
|
+
/**
|
|
103
|
+
* Whether a floating label sits above the value, reserving vertical space at
|
|
104
|
+
* the top of the field.
|
|
105
|
+
* @default false
|
|
106
|
+
*/
|
|
107
|
+
hasLabel?: boolean;
|
|
108
|
+
} & Pick<BaseInputProps, 'minLines' | 'maxLines' | 'scrollbarWidth'> & Omit<ComponentPropsWithRef<'textarea'>, 'rows' | 'cols'>;
|
|
109
|
+
export type BaseInputLabelProps = {
|
|
110
|
+
/**
|
|
111
|
+
* Id of the input the label describes.
|
|
112
|
+
*/
|
|
113
|
+
htmlFor: string;
|
|
114
|
+
/**
|
|
115
|
+
* Keeps the label in its floated position even while the placeholder shows,
|
|
116
|
+
* used when a label and a placeholder are displayed together.
|
|
117
|
+
* @default false
|
|
118
|
+
*/
|
|
119
|
+
floated?: boolean;
|
|
120
|
+
/**
|
|
121
|
+
* Pins the resting position to the first line instead of centering it, for a
|
|
122
|
+
* field that can grow past a single line.
|
|
123
|
+
* @default false
|
|
124
|
+
*/
|
|
125
|
+
multiline?: boolean;
|
|
126
|
+
/**
|
|
127
|
+
* Additional class names to apply to the label element.
|
|
128
|
+
*/
|
|
129
|
+
className?: string;
|
|
130
|
+
/**
|
|
131
|
+
* The label copy.
|
|
132
|
+
*/
|
|
133
|
+
children: ReactNode;
|
|
134
|
+
} & Pick<BaseInputProps, 'status'>;
|
|
64
135
|
export type BaseInputHelperTextProps = {
|
|
65
136
|
/**
|
|
66
137
|
* The id linking the helper text to the input via `aria-describedby`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/internal/BaseInput/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/internal/BaseInput/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,mBAAmB,EACnB,SAAS,EACT,GAAG,EACJ,MAAM,OAAO,CAAC;AAEf,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,SAAS,CAAC;AAElD,MAAM,MAAM,gBAAgB,GAAG,gBAAgB,GAAG,mBAAmB,CAAC;AAEtE;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,MAAM,GAAG,MAAM,CAAC;AAEtD,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;OAGG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB;;;OAGG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,cAAc,CAAC,EAAE,uBAAuB,CAAC;CAC1C,GAAG,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC,GAAG;IACjE,GAAG,CAAC,EAAE,GAAG,CAAC,gBAAgB,CAAC,CAAC;CAC7B,CAAC;AAEJ,MAAM,MAAM,wBAAwB,GAAG;IACrC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,IAAI,CAAC,qBAAqB,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC,CAAC;AAE5D,MAAM,MAAM,uBAAuB,GAAG;IACpC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,IAAI,CAAC,cAAc,EAAE,UAAU,GAAG,UAAU,GAAG,gBAAgB,CAAC,GAClE,IAAI,CAAC,qBAAqB,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;AAE3D,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;CACrB,GAAG,IAAI,CAAC,cAAc,EAAE,QAAQ,CAAC,CAAC;AAEnC,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB,GAAG,IAAI,CAAC,cAAc,EAAE,QAAQ,CAAC,CAAC;AAEnC,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/Components/internal/BaseInput/useAutosizeTextarea/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
type UseAutosizeTextareaArgs = {
|
|
3
|
+
minLines: number;
|
|
4
|
+
maxLines: number | undefined;
|
|
5
|
+
};
|
|
6
|
+
type UseAutosizeTextareaReturn = {
|
|
7
|
+
textareaRef: RefObject<HTMLTextAreaElement | null>;
|
|
8
|
+
shadowRef: RefObject<HTMLTextAreaElement | null>;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Grows a `textarea` between `minLines` and `maxLines`, measuring on an off-screen
|
|
12
|
+
* clone so the visible field is never collapsed and re-grown.
|
|
13
|
+
*
|
|
14
|
+
* Ported from MUI's `TextareaAutosize` (MIT).
|
|
15
|
+
*
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
export declare const useAutosizeTextarea: ({ minLines, maxLines, }: UseAutosizeTextareaArgs) => UseAutosizeTextareaReturn;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=useAutosizeTextarea.d.ts.map
|
package/dist/lib/Components/internal/BaseInput/useAutosizeTextarea/useAutosizeTextarea.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAutosizeTextarea.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/Components/internal/BaseInput/useAutosizeTextarea/useAutosizeTextarea.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAiBvC,KAAK,uBAAuB,GAAG;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B,CAAC;AAEF,KAAK,yBAAyB,GAAG;IAC/B,WAAW,EAAE,SAAS,CAAC,mBAAmB,GAAG,IAAI,CAAC,CAAC;IACnD,SAAS,EAAE,SAAS,CAAC,mBAAmB,GAAG,IAAI,CAAC,CAAC;CAClD,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB,GAAI,yBAGjC,uBAAuB,KAAG,yBA8G5B,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { debounce as E } from "../../../../../libs/utils-shared/dist/index.js";
|
|
2
|
+
import { useRef as u, useCallback as g, useLayoutEffect as w } from "react";
|
|
3
|
+
const z = 166, p = "x", d = (o) => Number.parseInt(o, 10) || 0, O = ({
|
|
4
|
+
minLines: o,
|
|
5
|
+
maxLines: h
|
|
6
|
+
}) => {
|
|
7
|
+
const i = u(null), m = u(null), s = u(null), l = u(-1), c = g(() => {
|
|
8
|
+
const t = i.current, e = m.current;
|
|
9
|
+
if (!t || !e) return;
|
|
10
|
+
const r = window.getComputedStyle(t);
|
|
11
|
+
if (r.width === "0px") return;
|
|
12
|
+
e.style.width = r.width, e.value = t.value || p, e.value.endsWith(`
|
|
13
|
+
`) && (e.value += " ");
|
|
14
|
+
const b = e.scrollHeight;
|
|
15
|
+
e.value = p;
|
|
16
|
+
const f = e.scrollHeight;
|
|
17
|
+
let n = Math.max(o * f, b);
|
|
18
|
+
h && (n = Math.min(h * f, n)), n = Math.max(n, f);
|
|
19
|
+
const x = d(r.paddingTop) + d(r.paddingBottom), R = d(r.borderTopWidth) + d(r.borderBottomWidth), y = r.boxSizing === "border-box" ? x + R : 0;
|
|
20
|
+
return {
|
|
21
|
+
height: n + y,
|
|
22
|
+
// A pixel of tolerance absorbs subpixel rounding.
|
|
23
|
+
fits: Math.abs(n - b) <= 1
|
|
24
|
+
};
|
|
25
|
+
}, [o, h]), a = g(() => {
|
|
26
|
+
const t = i.current, e = c();
|
|
27
|
+
!t || !e || (s.current !== e.height && (s.current = e.height, t.style.height = `${e.height}px`), t.style.overflow = e.fits ? "hidden" : "");
|
|
28
|
+
}, [c]), v = g(() => {
|
|
29
|
+
const t = c();
|
|
30
|
+
return t !== void 0 && s.current !== null && s.current !== t.height;
|
|
31
|
+
}, [c]);
|
|
32
|
+
return w(a), w(() => {
|
|
33
|
+
const t = i.current;
|
|
34
|
+
if (!t) return;
|
|
35
|
+
const e = E(a, z);
|
|
36
|
+
window.addEventListener("resize", e);
|
|
37
|
+
let r;
|
|
38
|
+
return typeof ResizeObserver < "u" && (r = new ResizeObserver(() => {
|
|
39
|
+
v() && (r?.unobserve(t), cancelAnimationFrame(l.current), a(), l.current = requestAnimationFrame(() => {
|
|
40
|
+
r?.observe(t);
|
|
41
|
+
}));
|
|
42
|
+
}), r.observe(t)), () => {
|
|
43
|
+
e.cancel(), cancelAnimationFrame(l.current), window.removeEventListener("resize", e), r?.disconnect();
|
|
44
|
+
};
|
|
45
|
+
}, [a, v]), { textareaRef: i, shadowRef: m };
|
|
46
|
+
};
|
|
47
|
+
export {
|
|
48
|
+
O as useAutosizeTextarea
|
|
49
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ChangeEventHandler, RefCallback, RefObject } from 'react';
|
|
2
|
+
import { BaseInputElement, BaseInputProps } from '../types';
|
|
3
|
+
type UseBaseInputValueArgs = {
|
|
4
|
+
value: BaseInputProps['value'];
|
|
5
|
+
defaultValue: BaseInputProps['defaultValue'];
|
|
6
|
+
onChange: ChangeEventHandler<BaseInputElement> | undefined;
|
|
7
|
+
onClear: (() => void) | undefined;
|
|
8
|
+
ref: BaseInputProps['ref'];
|
|
9
|
+
};
|
|
10
|
+
type UseBaseInputValueReturn = {
|
|
11
|
+
inputRef: RefObject<BaseInputElement | null>;
|
|
12
|
+
composedRef: RefCallback<BaseInputElement>;
|
|
13
|
+
currentValue: string;
|
|
14
|
+
hasContent: boolean;
|
|
15
|
+
handleChange: ChangeEventHandler<BaseInputElement>;
|
|
16
|
+
handleClear: () => void;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Tracks the input value for `BaseInput` and implements the clear button, in both
|
|
20
|
+
* controlled and uncontrolled mode.
|
|
21
|
+
*
|
|
22
|
+
* @internal
|
|
23
|
+
*/
|
|
24
|
+
export declare const useBaseInputValue: ({ value, defaultValue, onChange, onClear, ref, }: UseBaseInputValueArgs) => UseBaseInputValueReturn;
|
|
25
|
+
export {};
|
|
26
|
+
//# sourceMappingURL=useBaseInputValue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useBaseInputValue.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/Components/internal/BaseInput/useBaseInputValue/useBaseInputValue.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,kBAAkB,EAClB,WAAW,EACX,SAAS,EACV,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAEjE,KAAK,qBAAqB,GAAG;IAC3B,KAAK,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC;IAC/B,YAAY,EAAE,cAAc,CAAC,cAAc,CAAC,CAAC;IAC7C,QAAQ,EAAE,kBAAkB,CAAC,gBAAgB,CAAC,GAAG,SAAS,CAAC;IAC3D,OAAO,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;IAClC,GAAG,EAAE,cAAc,CAAC,KAAK,CAAC,CAAC;CAC5B,CAAC;AAEF,KAAK,uBAAuB,GAAG;IAC7B,QAAQ,EAAE,SAAS,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAC;IAC7C,WAAW,EAAE,WAAW,CAAC,gBAAgB,CAAC,CAAC;IAC3C,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,OAAO,CAAC;IACpB,YAAY,EAAE,kBAAkB,CAAC,gBAAgB,CAAC,CAAC;IACnD,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,GAAI,kDAM/B,qBAAqB,KAAG,uBAkE1B,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { useMergedRef as g } from "../../../../../libs/utils-shared/dist/index.js";
|
|
2
|
+
import { useRef as v, useState as h } from "react";
|
|
3
|
+
const b = ({
|
|
4
|
+
value: o,
|
|
5
|
+
defaultValue: u,
|
|
6
|
+
onChange: c,
|
|
7
|
+
onClear: l,
|
|
8
|
+
ref: a
|
|
9
|
+
}) => {
|
|
10
|
+
const e = v(null), n = o !== void 0, [i, r] = h(
|
|
11
|
+
u?.toString() ?? ""
|
|
12
|
+
), p = (t) => {
|
|
13
|
+
n || r(t.target.value), c?.(t);
|
|
14
|
+
}, s = n ? o?.toString() ?? "" : i, d = s.length > 0, f = () => {
|
|
15
|
+
if (!e.current) return;
|
|
16
|
+
const t = e.current instanceof window.HTMLTextAreaElement ? window.HTMLTextAreaElement.prototype : window.HTMLInputElement.prototype;
|
|
17
|
+
Object.getOwnPropertyDescriptor(
|
|
18
|
+
t,
|
|
19
|
+
"value"
|
|
20
|
+
)?.set?.call(e.current, ""), n || r("");
|
|
21
|
+
const w = new Event("input", { bubbles: !0 });
|
|
22
|
+
e.current.dispatchEvent(w), e.current.focus(), l?.();
|
|
23
|
+
}, m = g(a, e);
|
|
24
|
+
return {
|
|
25
|
+
inputRef: e,
|
|
26
|
+
composedRef: m,
|
|
27
|
+
currentValue: s,
|
|
28
|
+
hasContent: d,
|
|
29
|
+
handleChange: p,
|
|
30
|
+
handleClear: f
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export {
|
|
34
|
+
b as useBaseInputValue
|
|
35
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { XAxisProps } from './types';
|
|
2
|
+
export declare function XAxis({ gridLineStyle, position, showGrid, showLine, showTickMark, showLabels, ticks: ticksProp, tickLabelFormatter, }: XAxisProps): import("react/jsx-runtime").JSX.Element | null;
|
|
3
|
+
//# sourceMappingURL=XAxis.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"XAxis.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/Components/visualization/Axis/XAxis/XAxis.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAI1C,wBAAgB,KAAK,CAAC,EACpB,aAAuB,EACvB,QAAmB,EACnB,QAAgB,EAChB,QAAgB,EAChB,YAAoB,EACpB,UAAiB,EACjB,KAAK,EAAE,SAAS,EAChB,kBAAkB,GACnB,EAAE,UAAU,kDAyFZ"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { jsxs as D, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as v } from "react";
|
|
3
|
+
import { chartConfig as z } from "../../config.js";
|
|
4
|
+
import { buildTicksData as M } from "../../utils/ticks/ticks.js";
|
|
5
|
+
import { useCartesianChartContext as W } from "../../CartesianChart/context/cartesianChartContext.js";
|
|
6
|
+
const { axis: e, color: m, strokeWidth: l, font: p } = z;
|
|
7
|
+
function Y({
|
|
8
|
+
gridLineStyle: g = "solid",
|
|
9
|
+
position: d = "bottom",
|
|
10
|
+
showGrid: u = !1,
|
|
11
|
+
showLine: k = !1,
|
|
12
|
+
showTickMark: C = !1,
|
|
13
|
+
showLabels: b = !0,
|
|
14
|
+
ticks: x,
|
|
15
|
+
tickLabelFormatter: h
|
|
16
|
+
}) {
|
|
17
|
+
const { getXScale: A, getXAxisConfig: S, drawingArea: t } = W(), a = A(), c = S(), n = v(
|
|
18
|
+
() => a ? M(a, c, x, h) : [],
|
|
19
|
+
[a, c, x, h]
|
|
20
|
+
);
|
|
21
|
+
if (!a || t.width <= 0)
|
|
22
|
+
return null;
|
|
23
|
+
const f = d === "top", o = f ? t.y : t.y + t.height, y = f ? -1 : 1, $ = o + y * (e.tickMarkSize + e.tickLabelOffset);
|
|
24
|
+
return /* @__PURE__ */ D("g", { "data-testid": "x-axis", children: [
|
|
25
|
+
u && n.map((i, s) => /* @__PURE__ */ r(
|
|
26
|
+
"line",
|
|
27
|
+
{
|
|
28
|
+
x1: i.position,
|
|
29
|
+
y1: t.y,
|
|
30
|
+
x2: i.position,
|
|
31
|
+
y2: t.y + t.height,
|
|
32
|
+
style: {
|
|
33
|
+
stroke: m.gridLine
|
|
34
|
+
},
|
|
35
|
+
strokeWidth: l.hairline,
|
|
36
|
+
strokeDasharray: g === "dashed" ? e.gridDashArray : void 0
|
|
37
|
+
},
|
|
38
|
+
`grid-${i.value}-${s}`
|
|
39
|
+
)),
|
|
40
|
+
k && /* @__PURE__ */ r(
|
|
41
|
+
"line",
|
|
42
|
+
{
|
|
43
|
+
x1: t.x,
|
|
44
|
+
y1: o,
|
|
45
|
+
x2: t.x + t.width,
|
|
46
|
+
y2: o,
|
|
47
|
+
style: { stroke: e.lineColor },
|
|
48
|
+
strokeWidth: l.hairline,
|
|
49
|
+
shapeRendering: "crispEdges",
|
|
50
|
+
strokeLinecap: "square"
|
|
51
|
+
}
|
|
52
|
+
),
|
|
53
|
+
C && n.map((i, s) => /* @__PURE__ */ r(
|
|
54
|
+
"line",
|
|
55
|
+
{
|
|
56
|
+
x1: i.position,
|
|
57
|
+
y1: o,
|
|
58
|
+
x2: i.position,
|
|
59
|
+
y2: o + y * e.tickMarkSize,
|
|
60
|
+
style: { stroke: e.lineColor },
|
|
61
|
+
strokeWidth: l.hairline
|
|
62
|
+
},
|
|
63
|
+
`tick-${i.value}-${s}`
|
|
64
|
+
)),
|
|
65
|
+
b && n.map((i, s) => /* @__PURE__ */ r(
|
|
66
|
+
"text",
|
|
67
|
+
{
|
|
68
|
+
x: i.position,
|
|
69
|
+
y: $,
|
|
70
|
+
textAnchor: "middle",
|
|
71
|
+
dominantBaseline: d === "top" ? "auto" : "hanging",
|
|
72
|
+
style: {
|
|
73
|
+
fill: m.textMuted,
|
|
74
|
+
fontSize: p.labelSize,
|
|
75
|
+
fontFamily: p.family
|
|
76
|
+
},
|
|
77
|
+
children: i.label
|
|
78
|
+
},
|
|
79
|
+
`label-${i.value}-${s}`
|
|
80
|
+
))
|
|
81
|
+
] });
|
|
82
|
+
}
|
|
83
|
+
export {
|
|
84
|
+
Y as XAxis
|
|
85
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/Components/visualization/Axis/XAxis/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/Components/visualization/Axis/XAxis/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,MAAM,MAAM,UAAU,GAAG,aAAa,GAAG;IACvC;;;OAGG;IACH,QAAQ,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;CAC7B,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { YAxisProps } from './types';
|
|
2
|
+
export declare function YAxis({ gridLineStyle, position, showGrid, showLine, showTickMark, showLabels, ticks: ticksProp, tickLabelFormatter, }: YAxisProps): import("react/jsx-runtime").JSX.Element | null;
|
|
3
|
+
//# sourceMappingURL=YAxis.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"YAxis.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/Components/visualization/Axis/YAxis/YAxis.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAI1C,wBAAgB,KAAK,CAAC,EACpB,aAAuB,EACvB,QAAkB,EAClB,QAAgB,EAChB,QAAgB,EAChB,YAAoB,EACpB,UAAiB,EACjB,KAAK,EAAE,SAAS,EAChB,kBAAkB,GACnB,EAAE,UAAU,kDAyFZ"}
|