@cdx-ui/components 0.3.4 → 0.3.6
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/README.md +1 -1
- package/coverage.svg +1 -1
- package/docs/components/bar-chart/content.md +703 -0
- package/docs/components/content.md +9 -1
- package/docs/components/line-chart/content.md +567 -0
- package/docs/components/pie-chart/content.md +493 -0
- package/docs/components/progress-segmented/content.md +1 -1
- package/docs/components/select/content.md +144 -2
- package/docs/components/stepper/content.md +599 -0
- package/docs/components/system-alert/content.md +533 -0
- package/docs/foundations/expressions/icons/content.md +1 -1
- package/docs/foundations/styles/tokens/all-tokens/content.md +2 -1
- package/docs/llms.txt +10 -0
- package/docs/patterns/content.md +1 -0
- package/docs/patterns/dashboard/content.md +423 -19
- package/docs/patterns/insights/content.md +590 -0
- package/docs/resources/release-notes/0.3.4/content.md +27 -0
- package/docs/resources/release-notes/0.3.5/content.md +7 -0
- package/docs/resources/release-notes/content.md +2 -0
- package/lib/commonjs/components/BarChart/geometry.js +1130 -0
- package/lib/commonjs/components/BarChart/geometry.js.map +1 -0
- package/lib/commonjs/components/BarChart/index.js +942 -0
- package/lib/commonjs/components/BarChart/index.js.map +1 -0
- package/lib/commonjs/components/BarChart/styles.js +26 -0
- package/lib/commonjs/components/BarChart/styles.js.map +1 -0
- package/lib/commonjs/components/Button/index.js +2 -2
- package/lib/commonjs/components/Button/index.js.map +1 -1
- package/lib/commonjs/components/Chip/styles.js +3 -1
- package/lib/commonjs/components/Chip/styles.js.map +1 -1
- package/lib/commonjs/components/LineChart/geometry.js +698 -0
- package/lib/commonjs/components/LineChart/geometry.js.map +1 -0
- package/lib/commonjs/components/LineChart/index.js +747 -0
- package/lib/commonjs/components/LineChart/index.js.map +1 -0
- package/lib/commonjs/components/LineChart/styles.js +25 -0
- package/lib/commonjs/components/LineChart/styles.js.map +1 -0
- package/lib/commonjs/components/PieChart/geometry.js +216 -0
- package/lib/commonjs/components/PieChart/geometry.js.map +1 -0
- package/lib/commonjs/components/PieChart/index.js +476 -0
- package/lib/commonjs/components/PieChart/index.js.map +1 -0
- package/lib/commonjs/components/PieChart/styles.js +88 -0
- package/lib/commonjs/components/PieChart/styles.js.map +1 -0
- package/lib/commonjs/components/ProgressCircle/ProgressCircleRing.js +9 -31
- package/lib/commonjs/components/ProgressCircle/ProgressCircleRing.js.map +1 -1
- package/lib/commonjs/components/ProgressCircle/ProgressRing.js +52 -0
- package/lib/commonjs/components/ProgressCircle/ProgressRing.js.map +1 -0
- package/lib/commonjs/components/ScrollShadow/useScrollShadow.js +8 -7
- package/lib/commonjs/components/ScrollShadow/useScrollShadow.js.map +1 -1
- package/lib/commonjs/components/Stepper/index.js +369 -0
- package/lib/commonjs/components/Stepper/index.js.map +1 -0
- package/lib/commonjs/components/Stepper/styles.js +211 -0
- package/lib/commonjs/components/Stepper/styles.js.map +1 -0
- package/lib/commonjs/components/Stepper/useStepperLabelFit.js +22 -0
- package/lib/commonjs/components/Stepper/useStepperLabelFit.js.map +1 -0
- package/lib/commonjs/components/Stepper/useStepperLabelFit.web.js +52 -0
- package/lib/commonjs/components/Stepper/useStepperLabelFit.web.js.map +1 -0
- package/lib/commonjs/components/Stepper/useStepperRingColors.js +31 -0
- package/lib/commonjs/components/Stepper/useStepperRingColors.js.map +1 -0
- package/lib/commonjs/components/SystemAlert/animation.js +218 -0
- package/lib/commonjs/components/SystemAlert/animation.js.map +1 -0
- package/lib/commonjs/components/SystemAlert/index.js +525 -0
- package/lib/commonjs/components/SystemAlert/index.js.map +1 -0
- package/lib/commonjs/components/SystemAlert/styles.js +178 -0
- package/lib/commonjs/components/SystemAlert/styles.js.map +1 -0
- package/lib/commonjs/components/SystemAlert/useSystemAlertStatusBarStyle.js +53 -0
- package/lib/commonjs/components/SystemAlert/useSystemAlertStatusBarStyle.js.map +1 -0
- package/lib/commonjs/components/Tabs/index.js +4 -0
- package/lib/commonjs/components/Tabs/index.js.map +1 -1
- package/lib/commonjs/components/Tabs/styles.js +1 -1
- package/lib/commonjs/components/Tabs/styles.js.map +1 -1
- package/lib/commonjs/components/chart/ChartInspector.js +610 -0
- package/lib/commonjs/components/chart/ChartInspector.js.map +1 -0
- package/lib/commonjs/components/chart/format.js +93 -0
- package/lib/commonjs/components/chart/format.js.map +1 -0
- package/lib/commonjs/components/chart/index.js +2 -0
- package/lib/commonjs/components/chart/index.js.map +1 -0
- package/lib/commonjs/components/chart/motion.js +97 -0
- package/lib/commonjs/components/chart/motion.js.map +1 -0
- package/lib/commonjs/components/chart/palette.js +178 -0
- package/lib/commonjs/components/chart/palette.js.map +1 -0
- package/lib/commonjs/components/chart/size.js +34 -0
- package/lib/commonjs/components/chart/size.js.map +1 -0
- package/lib/commonjs/components/chart/ticks.js +59 -0
- package/lib/commonjs/components/chart/ticks.js.map +1 -0
- package/lib/commonjs/components/chart/types.js +6 -0
- package/lib/commonjs/components/chart/types.js.map +1 -0
- package/lib/commonjs/components/chart/useChartHostWidth.js +27 -0
- package/lib/commonjs/components/chart/useChartHostWidth.js.map +1 -0
- package/lib/commonjs/components/index.js +60 -0
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/figma/SystemAlert.Button.figma.js +28 -0
- package/lib/commonjs/figma/SystemAlert.Button.figma.js.map +1 -0
- package/lib/commonjs/figma/SystemAlert.Close.figma.js +22 -0
- package/lib/commonjs/figma/SystemAlert.Close.figma.js.map +1 -0
- package/lib/commonjs/figma/SystemAlert.Description.figma.js +20 -0
- package/lib/commonjs/figma/SystemAlert.Description.figma.js.map +1 -0
- package/lib/commonjs/figma/SystemAlert.IconButton.figma.js +31 -0
- package/lib/commonjs/figma/SystemAlert.IconButton.figma.js.map +1 -0
- package/lib/commonjs/figma/SystemAlert.figma.js +48 -0
- package/lib/commonjs/figma/SystemAlert.figma.js.map +1 -0
- package/lib/module/components/BarChart/geometry.js +1110 -0
- package/lib/module/components/BarChart/geometry.js.map +1 -0
- package/lib/module/components/BarChart/index.js +936 -0
- package/lib/module/components/BarChart/index.js.map +1 -0
- package/lib/module/components/BarChart/styles.js +22 -0
- package/lib/module/components/BarChart/styles.js.map +1 -0
- package/lib/module/components/Button/index.js +2 -2
- package/lib/module/components/Button/index.js.map +1 -1
- package/lib/module/components/Chip/styles.js +3 -1
- package/lib/module/components/Chip/styles.js.map +1 -1
- package/lib/module/components/LineChart/geometry.js +685 -0
- package/lib/module/components/LineChart/geometry.js.map +1 -0
- package/lib/module/components/LineChart/index.js +741 -0
- package/lib/module/components/LineChart/index.js.map +1 -0
- package/lib/module/components/LineChart/styles.js +21 -0
- package/lib/module/components/LineChart/styles.js.map +1 -0
- package/lib/module/components/PieChart/geometry.js +209 -0
- package/lib/module/components/PieChart/geometry.js.map +1 -0
- package/lib/module/components/PieChart/index.js +471 -0
- package/lib/module/components/PieChart/index.js.map +1 -0
- package/lib/module/components/PieChart/styles.js +84 -0
- package/lib/module/components/PieChart/styles.js.map +1 -0
- package/lib/module/components/ProgressCircle/ProgressCircleRing.js +10 -32
- package/lib/module/components/ProgressCircle/ProgressCircleRing.js.map +1 -1
- package/lib/module/components/ProgressCircle/ProgressRing.js +48 -0
- package/lib/module/components/ProgressCircle/ProgressRing.js.map +1 -0
- package/lib/module/components/ScrollShadow/useScrollShadow.js +8 -7
- package/lib/module/components/ScrollShadow/useScrollShadow.js.map +1 -1
- package/lib/module/components/Stepper/index.js +360 -0
- package/lib/module/components/Stepper/index.js.map +1 -0
- package/lib/module/components/Stepper/styles.js +206 -0
- package/lib/module/components/Stepper/styles.js.map +1 -0
- package/lib/module/components/Stepper/useStepperLabelFit.js +18 -0
- package/lib/module/components/Stepper/useStepperLabelFit.js.map +1 -0
- package/lib/module/components/Stepper/useStepperLabelFit.web.js +48 -0
- package/lib/module/components/Stepper/useStepperLabelFit.web.js.map +1 -0
- package/lib/module/components/Stepper/useStepperRingColors.js +28 -0
- package/lib/module/components/Stepper/useStepperRingColors.js.map +1 -0
- package/lib/module/components/SystemAlert/animation.js +213 -0
- package/lib/module/components/SystemAlert/animation.js.map +1 -0
- package/lib/module/components/SystemAlert/index.js +515 -0
- package/lib/module/components/SystemAlert/index.js.map +1 -0
- package/lib/module/components/SystemAlert/styles.js +174 -0
- package/lib/module/components/SystemAlert/styles.js.map +1 -0
- package/lib/module/components/SystemAlert/useSystemAlertStatusBarStyle.js +49 -0
- package/lib/module/components/SystemAlert/useSystemAlertStatusBarStyle.js.map +1 -0
- package/lib/module/components/Tabs/index.js +4 -0
- package/lib/module/components/Tabs/index.js.map +1 -1
- package/lib/module/components/Tabs/styles.js +1 -1
- package/lib/module/components/Tabs/styles.js.map +1 -1
- package/lib/module/components/chart/ChartInspector.js +600 -0
- package/lib/module/components/chart/ChartInspector.js.map +1 -0
- package/lib/module/components/chart/format.js +84 -0
- package/lib/module/components/chart/format.js.map +1 -0
- package/lib/module/components/chart/index.js +2 -0
- package/lib/module/components/chart/index.js.map +1 -0
- package/lib/module/components/chart/motion.js +89 -0
- package/lib/module/components/chart/motion.js.map +1 -0
- package/lib/module/components/chart/palette.js +168 -0
- package/lib/module/components/chart/palette.js.map +1 -0
- package/lib/module/components/chart/size.js +29 -0
- package/lib/module/components/chart/size.js.map +1 -0
- package/lib/module/components/chart/ticks.js +55 -0
- package/lib/module/components/chart/ticks.js.map +1 -0
- package/lib/module/components/chart/types.js +4 -0
- package/lib/module/components/chart/types.js.map +1 -0
- package/lib/module/components/chart/useChartHostWidth.js +23 -0
- package/lib/module/components/chart/useChartHostWidth.js.map +1 -0
- package/lib/module/components/index.js +5 -0
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/figma/SystemAlert.Button.figma.js +22 -0
- package/lib/module/figma/SystemAlert.Button.figma.js.map +1 -0
- package/lib/module/figma/SystemAlert.Close.figma.js +18 -0
- package/lib/module/figma/SystemAlert.Close.figma.js.map +1 -0
- package/lib/module/figma/SystemAlert.Description.figma.js +14 -0
- package/lib/module/figma/SystemAlert.Description.figma.js.map +1 -0
- package/lib/module/figma/SystemAlert.IconButton.figma.js +25 -0
- package/lib/module/figma/SystemAlert.IconButton.figma.js.map +1 -0
- package/lib/module/figma/SystemAlert.figma.js +42 -0
- package/lib/module/figma/SystemAlert.figma.js.map +1 -0
- package/lib/typescript/components/BarChart/geometry.d.ts +236 -0
- package/lib/typescript/components/BarChart/geometry.d.ts.map +1 -0
- package/lib/typescript/components/BarChart/index.d.ts +193 -0
- package/lib/typescript/components/BarChart/index.d.ts.map +1 -0
- package/lib/typescript/components/BarChart/styles.d.ts +32 -0
- package/lib/typescript/components/BarChart/styles.d.ts.map +1 -0
- package/lib/typescript/components/Chip/styles.d.ts.map +1 -1
- package/lib/typescript/components/LineChart/geometry.d.ts +248 -0
- package/lib/typescript/components/LineChart/geometry.d.ts.map +1 -0
- package/lib/typescript/components/LineChart/index.d.ts +105 -0
- package/lib/typescript/components/LineChart/index.d.ts.map +1 -0
- package/lib/typescript/components/LineChart/styles.d.ts +12 -0
- package/lib/typescript/components/LineChart/styles.d.ts.map +1 -0
- package/lib/typescript/components/PieChart/geometry.d.ts +43 -0
- package/lib/typescript/components/PieChart/geometry.d.ts.map +1 -0
- package/lib/typescript/components/PieChart/index.d.ts +147 -0
- package/lib/typescript/components/PieChart/index.d.ts.map +1 -0
- package/lib/typescript/components/PieChart/styles.d.ts +27 -0
- package/lib/typescript/components/PieChart/styles.d.ts.map +1 -0
- package/lib/typescript/components/ProgressCircle/ProgressCircleRing.d.ts.map +1 -1
- package/lib/typescript/components/ProgressCircle/ProgressRing.d.ts +17 -0
- package/lib/typescript/components/ProgressCircle/ProgressRing.d.ts.map +1 -0
- package/lib/typescript/components/ScrollShadow/useScrollShadow.d.ts.map +1 -1
- package/lib/typescript/components/Stepper/index.d.ts +68 -0
- package/lib/typescript/components/Stepper/index.d.ts.map +1 -0
- package/lib/typescript/components/Stepper/styles.d.ts +46 -0
- package/lib/typescript/components/Stepper/styles.d.ts.map +1 -0
- package/lib/typescript/components/Stepper/useStepperLabelFit.d.ts +15 -0
- package/lib/typescript/components/Stepper/useStepperLabelFit.d.ts.map +1 -0
- package/lib/typescript/components/Stepper/useStepperLabelFit.web.d.ts +10 -0
- package/lib/typescript/components/Stepper/useStepperLabelFit.web.d.ts.map +1 -0
- package/lib/typescript/components/Stepper/useStepperRingColors.d.ts +6 -0
- package/lib/typescript/components/Stepper/useStepperRingColors.d.ts.map +1 -0
- package/lib/typescript/components/SystemAlert/animation.d.ts +56 -0
- package/lib/typescript/components/SystemAlert/animation.d.ts.map +1 -0
- package/lib/typescript/components/SystemAlert/index.d.ts +110 -0
- package/lib/typescript/components/SystemAlert/index.d.ts.map +1 -0
- package/lib/typescript/components/SystemAlert/styles.d.ts +38 -0
- package/lib/typescript/components/SystemAlert/styles.d.ts.map +1 -0
- package/lib/typescript/components/SystemAlert/useSystemAlertStatusBarStyle.d.ts +14 -0
- package/lib/typescript/components/SystemAlert/useSystemAlertStatusBarStyle.d.ts.map +1 -0
- package/lib/typescript/components/Tabs/index.d.ts.map +1 -1
- package/lib/typescript/components/chart/ChartInspector.d.ts +101 -0
- package/lib/typescript/components/chart/ChartInspector.d.ts.map +1 -0
- package/lib/typescript/components/chart/format.d.ts +16 -0
- package/lib/typescript/components/chart/format.d.ts.map +1 -0
- package/lib/typescript/components/chart/index.d.ts +3 -0
- package/lib/typescript/components/chart/index.d.ts.map +1 -0
- package/lib/typescript/components/chart/motion.d.ts +27 -0
- package/lib/typescript/components/chart/motion.d.ts.map +1 -0
- package/lib/typescript/components/chart/palette.d.ts +44 -0
- package/lib/typescript/components/chart/palette.d.ts.map +1 -0
- package/lib/typescript/components/chart/size.d.ts +25 -0
- package/lib/typescript/components/chart/size.d.ts.map +1 -0
- package/lib/typescript/components/chart/ticks.d.ts +3 -0
- package/lib/typescript/components/chart/ticks.d.ts.map +1 -0
- package/lib/typescript/components/chart/types.d.ts +163 -0
- package/lib/typescript/components/chart/types.d.ts.map +1 -0
- package/lib/typescript/components/chart/useChartHostWidth.d.ts +9 -0
- package/lib/typescript/components/chart/useChartHostWidth.d.ts.map +1 -0
- package/lib/typescript/components/index.d.ts +5 -0
- package/lib/typescript/components/index.d.ts.map +1 -1
- package/lib/typescript/figma/SystemAlert.Button.figma.d.ts +11 -0
- package/lib/typescript/figma/SystemAlert.Button.figma.d.ts.map +1 -0
- package/lib/typescript/figma/SystemAlert.Close.figma.d.ts +11 -0
- package/lib/typescript/figma/SystemAlert.Close.figma.d.ts.map +1 -0
- package/lib/typescript/figma/SystemAlert.Description.figma.d.ts +8 -0
- package/lib/typescript/figma/SystemAlert.Description.figma.d.ts.map +1 -0
- package/lib/typescript/figma/SystemAlert.IconButton.figma.d.ts +11 -0
- package/lib/typescript/figma/SystemAlert.IconButton.figma.d.ts.map +1 -0
- package/lib/typescript/figma/SystemAlert.figma.d.ts +8 -0
- package/lib/typescript/figma/SystemAlert.figma.d.ts.map +1 -0
- package/package.json +5 -5
- package/src/components/BarChart/geometry.ts +1469 -0
- package/src/components/BarChart/index.tsx +1424 -0
- package/src/components/BarChart/styles.ts +31 -0
- package/src/components/Button/index.tsx +1 -1
- package/src/components/Chip/styles.ts +3 -1
- package/src/components/LineChart/geometry.ts +957 -0
- package/src/components/LineChart/index.tsx +1109 -0
- package/src/components/LineChart/styles.ts +26 -0
- package/src/components/PieChart/geometry.ts +295 -0
- package/src/components/PieChart/index.tsx +715 -0
- package/src/components/PieChart/styles.ts +101 -0
- package/src/components/ProgressCircle/ProgressCircleRing.tsx +10 -39
- package/src/components/ProgressCircle/ProgressRing.tsx +60 -0
- package/src/components/ScrollShadow/useScrollShadow.ts +12 -11
- package/src/components/Stepper/index.tsx +452 -0
- package/src/components/Stepper/styles.ts +234 -0
- package/src/components/Stepper/useStepperLabelFit.ts +21 -0
- package/src/components/Stepper/useStepperLabelFit.web.ts +53 -0
- package/src/components/Stepper/useStepperRingColors.ts +29 -0
- package/src/components/SystemAlert/animation.ts +252 -0
- package/src/components/SystemAlert/index.tsx +684 -0
- package/src/components/SystemAlert/styles.ts +212 -0
- package/src/components/SystemAlert/useSystemAlertStatusBarStyle.ts +57 -0
- package/src/components/Tabs/index.tsx +4 -0
- package/src/components/Tabs/styles.ts +1 -1
- package/src/components/chart/ChartInspector.tsx +726 -0
- package/src/components/chart/format.ts +95 -0
- package/src/components/chart/index.ts +24 -0
- package/src/components/chart/motion.ts +98 -0
- package/src/components/chart/palette.tsx +247 -0
- package/src/components/chart/size.ts +21 -0
- package/src/components/chart/ticks.ts +53 -0
- package/src/components/chart/types.ts +183 -0
- package/src/components/chart/useChartHostWidth.ts +26 -0
- package/src/components/index.ts +5 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export declare function useChartSimpleColor(): string;
|
|
2
|
+
/**
|
|
3
|
+
* A Forge color token by name: `simple-*` and `categorical-*` resolve
|
|
4
|
+
* `--color-chart-<name>`, severity names resolve `--color-surface-<name>-strong`.
|
|
5
|
+
* Overrides take a name, not a CSS color, so FI themes and dark mode recolor every chart.
|
|
6
|
+
*/
|
|
7
|
+
export type ChartColor = 'danger' | 'warning' | 'success' | 'info' | 'simple-primary' | 'simple-secondary' | 'simple-tertiary' | 'categorical-1' | 'categorical-2' | 'categorical-3' | 'categorical-4' | 'categorical-5' | 'categorical-6';
|
|
8
|
+
export type ChartColorPaints = Readonly<Record<ChartColor, string>>;
|
|
9
|
+
export declare function resolveChartColor(color: ChartColor | undefined, paints: ChartColorPaints): string | undefined;
|
|
10
|
+
export declare function useChartColorPaints(): ChartColorPaints;
|
|
11
|
+
export interface ChartChrome {
|
|
12
|
+
readonly grid: string;
|
|
13
|
+
readonly label: string;
|
|
14
|
+
readonly surface: string;
|
|
15
|
+
readonly fontFamily: string;
|
|
16
|
+
/** `text-xs` — axis ticks and category labels. */
|
|
17
|
+
readonly labelSize: number;
|
|
18
|
+
/** `text-2xs` — values, reference and marker captions. */
|
|
19
|
+
readonly captionSize: number;
|
|
20
|
+
}
|
|
21
|
+
export declare function useChartChrome(): ChartChrome;
|
|
22
|
+
/**
|
|
23
|
+
* Resolved `categorical-1`…`6` paints, in slot order. Pie slices and charts past
|
|
24
|
+
* three series cycle them.
|
|
25
|
+
*/
|
|
26
|
+
export declare function useChartPalette(): readonly string[];
|
|
27
|
+
/**
|
|
28
|
+
* `auto` keeps up to three series in the FI brand family and moves the whole chart to
|
|
29
|
+
* `categorical-1`…`6` past that, so one chart never mixes the two families.
|
|
30
|
+
* `categorical` always uses them.
|
|
31
|
+
*/
|
|
32
|
+
export type ChartPalette = 'auto' | 'categorical';
|
|
33
|
+
export type ChartSeriesKind = 'bar' | 'line';
|
|
34
|
+
/** Default color for a series. A series `color` still wins. */
|
|
35
|
+
export declare function chartSeriesColor(seriesIndex: number, seriesCount: number, palette: ChartPalette, kind: ChartSeriesKind): ChartColor;
|
|
36
|
+
export declare function useChartGradientId(prefix: string): string;
|
|
37
|
+
export declare function chartFillUrl(idPrefix: string, index: number): string;
|
|
38
|
+
export declare function ChartLinearFills({ idPrefix, colors, x2, y2, }: {
|
|
39
|
+
readonly idPrefix: string;
|
|
40
|
+
readonly colors: readonly string[];
|
|
41
|
+
readonly x2: string;
|
|
42
|
+
readonly y2: string;
|
|
43
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
//# sourceMappingURL=palette.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"palette.d.ts","sourceRoot":"","sources":["../../../../src/components/chart/palette.tsx"],"names":[],"mappings":"AAuBA,wBAAgB,mBAAmB,IAAI,MAAM,CAG5C;AAED;;;;GAIG;AACH,MAAM,MAAM,UAAU,GAClB,QAAQ,GACR,SAAS,GACT,SAAS,GACT,MAAM,GACN,gBAAgB,GAChB,kBAAkB,GAClB,iBAAiB,GACjB,eAAe,GACf,eAAe,GACf,eAAe,GACf,eAAe,GACf,eAAe,GACf,eAAe,CAAC;AAEpB,MAAM,MAAM,gBAAgB,GAAG,QAAQ,CAAC,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC,CAAC;AAIpE,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,UAAU,GAAG,SAAS,EAC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;CACrB,2CAkBA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ChartSize } from './types';
|
|
2
|
+
/** Plot boxes. Heights match the spacing scale (`size-40`…`size-64`). */
|
|
3
|
+
export declare const CHART_DIMENSIONS: {
|
|
4
|
+
readonly sm: {
|
|
5
|
+
readonly width: 256;
|
|
6
|
+
readonly height: 160;
|
|
7
|
+
};
|
|
8
|
+
readonly md: {
|
|
9
|
+
readonly width: 308;
|
|
10
|
+
readonly height: 192;
|
|
11
|
+
};
|
|
12
|
+
readonly lg: {
|
|
13
|
+
readonly width: 360;
|
|
14
|
+
readonly height: 224;
|
|
15
|
+
};
|
|
16
|
+
readonly xl: {
|
|
17
|
+
readonly width: 410;
|
|
18
|
+
readonly height: 256;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export declare function resolveChartBox(size: ChartSize | undefined, width?: number, height?: number): {
|
|
22
|
+
readonly width: number;
|
|
23
|
+
readonly height: number;
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=size.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"size.d.ts","sourceRoot":"","sources":["../../../../src/components/chart/size.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,yEAAyE;AACzE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;CAK8D,CAAC;AAE5F,wBAAgB,eAAe,CAC7B,IAAI,EAAE,SAAS,GAAG,SAAS,EAC3B,KAAK,CAAC,EAAE,MAAM,EACd,MAAM,CAAC,EAAE,MAAM,GACd;IAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAMrD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ticks.d.ts","sourceRoot":"","sources":["../../../../src/components/chart/ticks.ts"],"names":[],"mappings":"AAoCA,mFAAmF;AACnF,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CAe3E"}
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import type { ChartColor } from './palette';
|
|
2
|
+
/** Where a formatted value is shown. */
|
|
3
|
+
export type ChartValueLocation = 'tick' | 'tooltip' | 'label' | 'a11y';
|
|
4
|
+
export interface ChartValueFormatterContext {
|
|
5
|
+
location: ChartValueLocation;
|
|
6
|
+
/** Set when the value belongs to one series. Unset for axis ticks. */
|
|
7
|
+
seriesId?: string;
|
|
8
|
+
/** Row in `dataset` (or `data` for pie). Unset for axis ticks. */
|
|
9
|
+
dataIndex?: number;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Turns a value into display text. `null` is a missing value. The chart picks the
|
|
13
|
+
* formatter in order: series, then axis, then the locale default.
|
|
14
|
+
*/
|
|
15
|
+
export type ChartValueFormatter = (value: number | null, context: ChartValueFormatterContext) => string;
|
|
16
|
+
/** Fields every series shares, whatever its data source. */
|
|
17
|
+
export interface ChartSeriesCommon {
|
|
18
|
+
/** Stable id. `selectedItem.seriesId` and tooltip items refer to it. */
|
|
19
|
+
id: string;
|
|
20
|
+
/**
|
|
21
|
+
* Series name. Bar and line charts show it in the legend, tooltip, and screen reader text. A
|
|
22
|
+
* pie chart only prefixes tooltip values with it; slice labels name the legend and slices.
|
|
23
|
+
*/
|
|
24
|
+
label?: string;
|
|
25
|
+
/** Chart token name, not a CSS color. Omit to take the next color from the chart's `palette`. */
|
|
26
|
+
color?: ChartColor;
|
|
27
|
+
/**
|
|
28
|
+
* Formats this series' values for tooltips and screen reader text, plus bar value labels, line
|
|
29
|
+
* marker values, and a pie's legend value column. `context.location` says where. On charts
|
|
30
|
+
* with axes it wins over the value axis `valueFormatter`.
|
|
31
|
+
*/
|
|
32
|
+
valueFormatter?: ChartValueFormatter;
|
|
33
|
+
}
|
|
34
|
+
/** A series that reads one numeric column from `dataset`. */
|
|
35
|
+
export interface ChartSeriesBase<TRow> extends ChartSeriesCommon {
|
|
36
|
+
/** Numeric column in `dataset`. A key that is not on the row type is a compile error. */
|
|
37
|
+
dataKey: keyof TRow & string;
|
|
38
|
+
}
|
|
39
|
+
export type ChartScaleType = 'band' | 'linear';
|
|
40
|
+
export interface ChartAxis<TRow> {
|
|
41
|
+
/** Axis id, as in MUI X. */
|
|
42
|
+
id: string;
|
|
43
|
+
/** Column in `dataset` that holds this axis's values (category names on a band axis). */
|
|
44
|
+
dataKey?: keyof TRow & string;
|
|
45
|
+
/** Scale kind, as in MUI X. Accepted for parity; charts do not read it yet. */
|
|
46
|
+
scaleType?: ChartScaleType;
|
|
47
|
+
/** Lowest value on a value axis. Omit to fit the data. */
|
|
48
|
+
min?: number;
|
|
49
|
+
/** Highest value on a value axis. Omit to fit the data. */
|
|
50
|
+
max?: number;
|
|
51
|
+
/** Approximate tick count. The chart rounds to readable steps. */
|
|
52
|
+
tickNumber?: number;
|
|
53
|
+
/** Axis title, as in MUI X. Accepted for parity; not drawn yet. */
|
|
54
|
+
label?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Formats tick text on this axis (`location: 'tick'`). On a value axis it also formats series
|
|
57
|
+
* values when the series has no `valueFormatter`. On a line chart's x-axis it formats numeric
|
|
58
|
+
* categories, both the tick (`location: 'tick'`) and the tooltip title (`location: 'tooltip'`).
|
|
59
|
+
*/
|
|
60
|
+
valueFormatter?: ChartValueFormatter;
|
|
61
|
+
/**
|
|
62
|
+
* Side the axis labels draw on. `'none'` hides them. Each chart accepts the sides it can draw
|
|
63
|
+
* and falls back to its default side for the others.
|
|
64
|
+
*/
|
|
65
|
+
position?: ChartAxisPosition;
|
|
66
|
+
/**
|
|
67
|
+
* Which category labels to draw. A function keeps the label at `index` when it returns
|
|
68
|
+
* `true`. `'auto'` currently draws every label; it does not thin them yet.
|
|
69
|
+
* @default 'auto'
|
|
70
|
+
*/
|
|
71
|
+
tickLabelInterval?: 'auto' | ((value: unknown, index: number) => boolean);
|
|
72
|
+
}
|
|
73
|
+
export type ChartAxisPosition = 'top' | 'bottom' | 'left' | 'right' | 'none';
|
|
74
|
+
/** Grid lines across the plot. A chart draws the lines that run along its value axis. */
|
|
75
|
+
export interface ChartGrid {
|
|
76
|
+
/** Horizontal grid lines. */
|
|
77
|
+
horizontal?: boolean;
|
|
78
|
+
/** Vertical grid lines. */
|
|
79
|
+
vertical?: boolean;
|
|
80
|
+
}
|
|
81
|
+
/** One mark: a bar, a line point, or a pie slice. `null` clears the selection. */
|
|
82
|
+
export type ChartSelectedItem = {
|
|
83
|
+
seriesId: string;
|
|
84
|
+
dataIndex: number;
|
|
85
|
+
} | null;
|
|
86
|
+
export interface ChartTooltipProps {
|
|
87
|
+
/**
|
|
88
|
+
* `item` shows the mark under the pointer, `axis` every series at that category,
|
|
89
|
+
* `none` hides the tooltip.
|
|
90
|
+
*/
|
|
91
|
+
trigger?: 'item' | 'axis' | 'none';
|
|
92
|
+
}
|
|
93
|
+
/** A dashed guide line across the plot. */
|
|
94
|
+
export interface ChartReferenceLine {
|
|
95
|
+
/** Position on the value axis. */
|
|
96
|
+
value: number;
|
|
97
|
+
/** Caption drawn beside the line. Omit or pass `''` for no caption. */
|
|
98
|
+
label?: string;
|
|
99
|
+
}
|
|
100
|
+
export interface ChartTooltipItem {
|
|
101
|
+
seriesId: string;
|
|
102
|
+
label: string;
|
|
103
|
+
/** Resolved paint for the swatch. */
|
|
104
|
+
color: string;
|
|
105
|
+
formattedValue: string;
|
|
106
|
+
}
|
|
107
|
+
/** What the tooltip shows. Built from the chart's data, never from its drawing. */
|
|
108
|
+
export interface ChartTooltipContent {
|
|
109
|
+
title: string;
|
|
110
|
+
items: readonly ChartTooltipItem[];
|
|
111
|
+
}
|
|
112
|
+
export type ChartSize = 'sm' | 'md' | 'lg' | 'xl';
|
|
113
|
+
export interface ChartSizeProps {
|
|
114
|
+
/**
|
|
115
|
+
* Plot box. Named sizes set both width and height; `width` / `height` override one side.
|
|
116
|
+
* @default 'lg'
|
|
117
|
+
*/
|
|
118
|
+
size?: ChartSize;
|
|
119
|
+
/** Pixel width. Overrides the `size` width. */
|
|
120
|
+
width?: number;
|
|
121
|
+
/** Pixel height. Overrides the `size` height. */
|
|
122
|
+
height?: number;
|
|
123
|
+
}
|
|
124
|
+
/** A named value in a generated summary. `label` is empty for an unnamed series. */
|
|
125
|
+
export interface ChartSummaryValue {
|
|
126
|
+
label: string;
|
|
127
|
+
formattedValue: string;
|
|
128
|
+
}
|
|
129
|
+
/** One category in a generated summary. */
|
|
130
|
+
export interface ChartSummaryCategory {
|
|
131
|
+
label: string;
|
|
132
|
+
values: readonly ChartSummaryValue[];
|
|
133
|
+
}
|
|
134
|
+
export type ChartTrendDirection = 'up' | 'down' | 'none';
|
|
135
|
+
export interface ChartTrend {
|
|
136
|
+
direction: ChartTrendDirection;
|
|
137
|
+
/** Absolute change, already formatted. */
|
|
138
|
+
formattedDelta: string;
|
|
139
|
+
/** Name of the series compared against. Empty when it has none. */
|
|
140
|
+
comparisonLabel: string;
|
|
141
|
+
}
|
|
142
|
+
/** Every string a chart generates. Pass a partial `localeText` to override some of them. */
|
|
143
|
+
export interface ChartLocaleText {
|
|
144
|
+
/** Shown when there is nothing to plot. */
|
|
145
|
+
noData: string;
|
|
146
|
+
/** Tooltip and screen reader text for a category with no value. */
|
|
147
|
+
noValue: string;
|
|
148
|
+
/** Legend name for a series without a `label`. */
|
|
149
|
+
defaultSeriesLabel: string;
|
|
150
|
+
/** Waterfall step that raises the running total. */
|
|
151
|
+
waterfallIncrease: string;
|
|
152
|
+
/** Waterfall step that lowers the running total. */
|
|
153
|
+
waterfallDecrease: string;
|
|
154
|
+
/** Change against the comparison series, read after the value. */
|
|
155
|
+
trend: (trend: ChartTrend) => string;
|
|
156
|
+
/** Bar chart summary. Called with an empty list when there is no data. */
|
|
157
|
+
barChartSummary: (categories: readonly ChartSummaryCategory[]) => string;
|
|
158
|
+
/** Line chart summary of the latest category. `null` when there is no data. */
|
|
159
|
+
lineChartSummary: (latest: ChartSummaryCategory | null) => string;
|
|
160
|
+
/** Pie chart summary. `formattedValue` is the share. Empty list when there is no data. */
|
|
161
|
+
pieChartSummary: (slices: readonly ChartSummaryValue[]) => string;
|
|
162
|
+
}
|
|
163
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/chart/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAE5C,wCAAwC;AACxC,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;AAEvE,MAAM,WAAW,0BAA0B;IACzC,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,sEAAsE;IACtE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kEAAkE;IAClE,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG,CAChC,KAAK,EAAE,MAAM,GAAG,IAAI,EACpB,OAAO,EAAE,0BAA0B,KAChC,MAAM,CAAC;AAEZ,4DAA4D;AAC5D,MAAM,WAAW,iBAAiB;IAChC,wEAAwE;IACxE,EAAE,EAAE,MAAM,CAAC;IACX;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iGAAiG;IACjG,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB;;;;OAIG;IACH,cAAc,CAAC,EAAE,mBAAmB,CAAC;CACtC;AAED,6DAA6D;AAC7D,MAAM,WAAW,eAAe,CAAC,IAAI,CAAE,SAAQ,iBAAiB;IAC9D,yFAAyF;IACzF,OAAO,EAAE,MAAM,IAAI,GAAG,MAAM,CAAC;CAC9B;AAED,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,QAAQ,CAAC;AAE/C,MAA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E,MAAM,CAAC;IAC1B,oDAAoD;IACpD,iBAAiB,EAAE,MAAM,CAAC;IAC1B,kEAAkE;IAClE,KAAK,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,MAAM,CAAC;IACrC,0EAA0E;IAC1E,eAAe,EAAE,CAAC,UAAU,EAAE,SAAS,oBAAoB,EAAE,KAAK,MAAM,CAAC;IACzE,+EAA+E;IAC/E,gBAAgB,EAAE,CAAC,MAAM,EAAE,oBAAoB,GAAG,IAAI,KAAK,MAAM,CAAC;IAClE,0FAA0F;IAC1F,eAAe,EAAE,CAAC,MAAM,EAAE,SAAS,iBAAiB,EAAE,KAAK,MAAM,CAAC;CACnE"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { LayoutChangeEvent } from 'react-native';
|
|
2
|
+
/** Runs the chart's own handler first, then the consumer's. */
|
|
3
|
+
export declare function composeChartLayout(own: (event: LayoutChangeEvent) => void, consumer: ((event: LayoutChangeEvent) => void) | null | undefined): (event: LayoutChangeEvent) => void;
|
|
4
|
+
/**
|
|
5
|
+
* Measured width of the chart root (`0` before the first layout) and the `onLayout` to put on
|
|
6
|
+
* it. The consumer's `onLayout` still fires.
|
|
7
|
+
*/
|
|
8
|
+
export declare function useChartHostWidth(onLayout: ((event: LayoutChangeEvent) => void) | null | undefined): readonly [number, (event: LayoutChangeEvent) => void];
|
|
9
|
+
//# sourceMappingURL=useChartHostWidth.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useChartHostWidth.d.ts","sourceRoot":"","sources":["../../../../src/components/chart/useChartHostWidth.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAGtD,+DAA+D;AAC/D,wBAAgB,kBAAkB,CAChC,GAAG,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,EACvC,QAAQ,EAAE,CAAC,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,CAAC,GAAG,IAAI,GAAG,SAAS,GAChE,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,CAEpC;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,CAAC,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,CAAC,GAAG,IAAI,GAAG,SAAS,GAChE,SAAS,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,CAAC,CAOvD"}
|
|
@@ -46,6 +46,9 @@ export * from './Accordion';
|
|
|
46
46
|
export * from './Menu';
|
|
47
47
|
export * from './ProgressBar';
|
|
48
48
|
export * from './ProgressCircle';
|
|
49
|
+
export * from './PieChart';
|
|
50
|
+
export * from './BarChart';
|
|
51
|
+
export * from './LineChart';
|
|
49
52
|
export * from './Skeleton';
|
|
50
53
|
export * from './ProgressSegmented';
|
|
51
54
|
export * from './Radio';
|
|
@@ -53,9 +56,11 @@ export * from './ScopedTheme';
|
|
|
53
56
|
export * from './ScrollShadow';
|
|
54
57
|
export * from './Select';
|
|
55
58
|
export * from './Slider';
|
|
59
|
+
export * from './Stepper';
|
|
56
60
|
export * from './VirtualizedList';
|
|
57
61
|
export type { ReorderableListLabels, ReorderableListProps, ReorderableListRenderItemInfo, } from './ReorderableList/types';
|
|
58
62
|
export * from './Switch';
|
|
63
|
+
export * from './SystemAlert';
|
|
59
64
|
export * from './Tabs';
|
|
60
65
|
export * from './Table';
|
|
61
66
|
export * from './Textarea';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,OAAO,CAAC;AACtB,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACv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W,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACzC,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import figma from 'figma';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
id: string;
|
|
4
|
+
imports: string[];
|
|
5
|
+
example: figma.TemplateStringResult;
|
|
6
|
+
metadata: {
|
|
7
|
+
nestable: boolean;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
11
|
+
//# sourceMappingURL=SystemAlert.Button.figma.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SystemAlert.Button.figma.d.ts","sourceRoot":"","sources":["../../../src/figma/SystemAlert.Button.figma.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;;;;;;;;;AAU1B,wBAKE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SystemAlert.Close.figma.d.ts","sourceRoot":"","sources":["../../../src/figma/SystemAlert.Close.figma.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;;;;;;;;;AAI1B,wBAKE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SystemAlert.Description.figma.d.ts","sourceRoot":"","sources":["../../../src/figma/SystemAlert.Description.figma.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;;;;;;AAM1B,wBAIE"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import figma from 'figma';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
id: string;
|
|
4
|
+
imports: string[];
|
|
5
|
+
example: figma.TemplateStringResult;
|
|
6
|
+
metadata: {
|
|
7
|
+
nestable: boolean;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
11
|
+
//# sourceMappingURL=SystemAlert.IconButton.figma.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SystemAlert.IconButton.figma.d.ts","sourceRoot":"","sources":["../../../src/figma/SystemAlert.IconButton.figma.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;;;;;;;;;AAiB1B,wBAKE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SystemAlert.figma.d.ts","sourceRoot":"","sources":["../../../src/figma/SystemAlert.figma.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;;;;;;AAsC1B,wBAeE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cdx-ui/components",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.6",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -106,10 +106,10 @@
|
|
|
106
106
|
"@marceloterreiro/flash-calendar": "2.0.0",
|
|
107
107
|
"react-native-reanimated-carousel": "5.0.0-beta.5",
|
|
108
108
|
"uniwind": "1.10.0",
|
|
109
|
-
"@cdx-ui/formatters": "0.3.
|
|
110
|
-
"@cdx-ui/
|
|
111
|
-
"@cdx-ui/
|
|
112
|
-
"@cdx-ui/utils": "0.3.
|
|
109
|
+
"@cdx-ui/formatters": "0.3.6",
|
|
110
|
+
"@cdx-ui/icons": "0.3.6",
|
|
111
|
+
"@cdx-ui/primitives": "0.3.6",
|
|
112
|
+
"@cdx-ui/utils": "0.3.6"
|
|
113
113
|
},
|
|
114
114
|
"devDependencies": {
|
|
115
115
|
"@dnd-kit/core": "6.3.1",
|