@cdx-ui/components 0.3.5 → 0.3.7
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 +10 -1
- package/docs/components/country-flag/content.md +232 -0
- package/docs/components/data-grid/content.md +3 -1
- package/docs/components/icon/content.md +1 -1
- package/docs/components/input/content.md +1 -0
- package/docs/components/line-chart/content.md +567 -0
- package/docs/components/pie-chart/content.md +493 -0
- package/docs/components/progress-bar/content.md +164 -3
- package/docs/components/progress-segmented/content.md +1 -1
- package/docs/components/select/content.md +1 -0
- package/docs/components/stepper/content.md +599 -0
- package/docs/components/system-alert/content.md +533 -0
- package/docs/foundations/expressions/icons/content.md +2 -1
- package/docs/foundations/styles/tokens/all-tokens/content.md +2 -1
- package/docs/getting-started/developers/content.md +1 -1
- package/docs/llms.txt +12 -0
- package/docs/patterns/content.md +1 -0
- package/docs/patterns/dashboard/content.md +423 -19
- package/docs/patterns/insights/content.md +659 -0
- package/docs/resources/content.md +1 -0
- package/docs/resources/release-notes/0.3.5/content.md +7 -0
- package/docs/resources/release-notes/0.3.6/content.md +29 -0
- package/docs/resources/release-notes/content.md +2 -0
- package/docs/resources/skills/content.md +66 -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 +935 -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/CountryFlag/index.js +56 -0
- package/lib/commonjs/components/CountryFlag/index.js.map +1 -0
- package/lib/commonjs/components/Input/index.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 +744 -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/ProgressBar/index.js +44 -12
- package/lib/commonjs/components/ProgressBar/index.js.map +1 -1
- package/lib/commonjs/components/ProgressBar/styles.js +31 -2
- package/lib/commonjs/components/ProgressBar/styles.js.map +1 -1
- 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/Select/index.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/hiddenSvgProps.js +23 -0
- package/lib/commonjs/components/chart/hiddenSvgProps.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 +72 -0
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/figma/Accordion.figma.js +2 -2
- package/lib/commonjs/figma/Accordion.figma.js.map +1 -1
- package/lib/commonjs/figma/Alert.figma.js +7 -7
- package/lib/commonjs/figma/Alert.figma.js.map +1 -1
- package/lib/commonjs/figma/Badge.Indicator.figma.js +6 -5
- package/lib/commonjs/figma/Badge.Indicator.figma.js.map +1 -1
- package/lib/commonjs/figma/Badge.figma.js +22 -22
- package/lib/commonjs/figma/Badge.figma.js.map +1 -1
- package/lib/commonjs/figma/Button.figma.js +5 -2
- package/lib/commonjs/figma/Button.figma.js.map +1 -1
- package/lib/commonjs/figma/CLAUDE.md +1 -0
- package/lib/commonjs/figma/Card.Header.figma.js +8 -4
- package/lib/commonjs/figma/Card.Header.figma.js.map +1 -1
- package/lib/commonjs/figma/Card.figma.js +2 -1
- package/lib/commonjs/figma/Card.figma.js.map +1 -1
- package/lib/commonjs/figma/Chip.figma.js +2 -2
- package/lib/commonjs/figma/Chip.figma.js.map +1 -1
- package/lib/commonjs/figma/CurrencyInput.figma.js +1 -1
- package/lib/commonjs/figma/CurrencyInput.figma.js.map +1 -1
- package/lib/commonjs/figma/Dialog.figma.js +5 -2
- package/lib/commonjs/figma/Dialog.figma.js.map +1 -1
- package/lib/commonjs/figma/Divider.figma.js +1 -1
- package/lib/commonjs/figma/Divider.figma.js.map +1 -1
- package/lib/commonjs/figma/Drawer.figma.js +3 -3
- package/lib/commonjs/figma/Drawer.figma.js.map +1 -1
- package/lib/commonjs/figma/IconButton.figma.js +10 -4
- package/lib/commonjs/figma/IconButton.figma.js.map +1 -1
- package/lib/commonjs/figma/Input.figma.js +2 -1
- package/lib/commonjs/figma/Input.figma.js.map +1 -1
- package/lib/commonjs/figma/Insight.figma.js +3 -3
- package/lib/commonjs/figma/Insight.figma.js.map +1 -1
- package/lib/commonjs/figma/ProgressBar.figma.js +11 -2
- package/lib/commonjs/figma/ProgressBar.figma.js.map +1 -1
- package/lib/commonjs/figma/ProgressSegmented.figma.js +9 -1
- package/lib/commonjs/figma/ProgressSegmented.figma.js.map +1 -1
- package/lib/commonjs/figma/Select.figma.js +2 -1
- package/lib/commonjs/figma/Select.figma.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 +47 -0
- package/lib/commonjs/figma/SystemAlert.figma.js.map +1 -0
- package/lib/commonjs/styles.css +0 -1
- 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 +929 -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/CountryFlag/index.js +52 -0
- package/lib/module/components/CountryFlag/index.js.map +1 -0
- package/lib/module/components/Input/index.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 +738 -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/ProgressBar/index.js +47 -15
- package/lib/module/components/ProgressBar/index.js.map +1 -1
- package/lib/module/components/ProgressBar/styles.js +31 -2
- package/lib/module/components/ProgressBar/styles.js.map +1 -1
- 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/Select/index.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/hiddenSvgProps.js +20 -0
- package/lib/module/components/chart/hiddenSvgProps.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 +6 -0
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/figma/Accordion.figma.js +2 -2
- package/lib/module/figma/Accordion.figma.js.map +1 -1
- package/lib/module/figma/Alert.figma.js +7 -7
- package/lib/module/figma/Alert.figma.js.map +1 -1
- package/lib/module/figma/Badge.Indicator.figma.js +6 -5
- package/lib/module/figma/Badge.Indicator.figma.js.map +1 -1
- package/lib/module/figma/Badge.figma.js +22 -22
- package/lib/module/figma/Badge.figma.js.map +1 -1
- package/lib/module/figma/Button.figma.js +5 -2
- package/lib/module/figma/Button.figma.js.map +1 -1
- package/lib/module/figma/CLAUDE.md +1 -0
- package/lib/module/figma/Card.Header.figma.js +8 -4
- package/lib/module/figma/Card.Header.figma.js.map +1 -1
- package/lib/module/figma/Card.figma.js +2 -1
- package/lib/module/figma/Card.figma.js.map +1 -1
- package/lib/module/figma/Chip.figma.js +2 -2
- package/lib/module/figma/Chip.figma.js.map +1 -1
- package/lib/module/figma/CurrencyInput.figma.js +1 -1
- package/lib/module/figma/CurrencyInput.figma.js.map +1 -1
- package/lib/module/figma/Dialog.figma.js +5 -2
- package/lib/module/figma/Dialog.figma.js.map +1 -1
- package/lib/module/figma/Divider.figma.js +1 -1
- package/lib/module/figma/Divider.figma.js.map +1 -1
- package/lib/module/figma/Drawer.figma.js +3 -3
- package/lib/module/figma/Drawer.figma.js.map +1 -1
- package/lib/module/figma/IconButton.figma.js +10 -4
- package/lib/module/figma/IconButton.figma.js.map +1 -1
- package/lib/module/figma/Input.figma.js +2 -1
- package/lib/module/figma/Input.figma.js.map +1 -1
- package/lib/module/figma/Insight.figma.js +3 -3
- package/lib/module/figma/Insight.figma.js.map +1 -1
- package/lib/module/figma/ProgressBar.figma.js +12 -2
- package/lib/module/figma/ProgressBar.figma.js.map +1 -1
- package/lib/module/figma/ProgressSegmented.figma.js +9 -1
- package/lib/module/figma/ProgressSegmented.figma.js.map +1 -1
- package/lib/module/figma/Select.figma.js +2 -1
- package/lib/module/figma/Select.figma.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 +41 -0
- package/lib/module/figma/SystemAlert.figma.js.map +1 -0
- package/lib/module/styles.css +0 -1
- 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/CountryFlag/index.d.ts +35 -0
- package/lib/typescript/components/CountryFlag/index.d.ts.map +1 -0
- package/lib/typescript/components/Input/index.d.ts +2 -0
- package/lib/typescript/components/Input/index.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/ProgressBar/index.d.ts +16 -1
- package/lib/typescript/components/ProgressBar/index.d.ts.map +1 -1
- package/lib/typescript/components/ProgressBar/styles.d.ts +7 -2
- package/lib/typescript/components/ProgressBar/styles.d.ts.map +1 -1
- 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/Select/index.d.ts +2 -0
- package/lib/typescript/components/Select/index.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/hiddenSvgProps.d.ts +17 -0
- package/lib/typescript/components/chart/hiddenSvgProps.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 +6 -0
- package/lib/typescript/components/index.d.ts.map +1 -1
- package/lib/typescript/figma/Alert.figma.d.ts.map +1 -1
- package/lib/typescript/figma/Badge.Indicator.figma.d.ts.map +1 -1
- package/lib/typescript/figma/Badge.figma.d.ts.map +1 -1
- package/lib/typescript/figma/Button.figma.d.ts.map +1 -1
- package/lib/typescript/figma/Card.Header.figma.d.ts.map +1 -1
- package/lib/typescript/figma/Card.figma.d.ts.map +1 -1
- package/lib/typescript/figma/Dialog.figma.d.ts.map +1 -1
- package/lib/typescript/figma/IconButton.figma.d.ts.map +1 -1
- package/lib/typescript/figma/Input.figma.d.ts.map +1 -1
- package/lib/typescript/figma/ProgressBar.figma.d.ts.map +1 -1
- package/lib/typescript/figma/ProgressSegmented.figma.d.ts.map +1 -1
- package/lib/typescript/figma/Select.figma.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 +1417 -0
- package/src/components/BarChart/styles.ts +31 -0
- package/src/components/Button/index.tsx +1 -1
- package/src/components/CountryFlag/index.tsx +53 -0
- package/src/components/Input/index.tsx +2 -0
- package/src/components/LineChart/geometry.ts +957 -0
- package/src/components/LineChart/index.tsx +1106 -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/ProgressBar/index.tsx +66 -14
- package/src/components/ProgressBar/styles.ts +35 -4
- 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/Select/index.tsx +2 -0
- 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/hiddenSvgProps.ts +15 -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 +6 -0
- package/src/styles.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"animation.d.ts","sourceRoot":"","sources":["../../../../src/components/SystemAlert/animation.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6D,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAClG,OAAO,EAAiC,KAAK,IAAI,E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ED;;;;;;;;;GASG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,MAAM,EACN,SAAS,EACT,eAAe,GAChB,EAAE,6BAA6B,GAAG,mBAAmB,CA4JrD;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,CAAC,EACzC,IAAI,EACJ,aAAa,EACb,SAAS,GACV,EAAE,IAAI,CAAC,mBAAmB,EAAE,MAAM,GAAG,eAAe,GAAG,WAAW,CAAC,GAAG,UAAU,CAC/E,OAAO,gBAAgB,CACxB,CAaA"}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { Text, View, type TextProps, type ViewProps } from 'react-native';
|
|
3
|
+
import type { ForgeIcon } from '@cdx-ui/icons';
|
|
4
|
+
import type { AnimationRootDisableAll } from '../../animation';
|
|
5
|
+
import { type ButtonProps } from '../Button';
|
|
6
|
+
import { type IconProps } from '../Icon';
|
|
7
|
+
import { type IconButtonProps } from '../IconButton';
|
|
8
|
+
import { type SystemAlertColor, type SystemAlertVariantProps } from './styles';
|
|
9
|
+
export interface SystemAlertProps extends ViewProps, SystemAlertVariantProps {
|
|
10
|
+
/**
|
|
11
|
+
* Replace the root element with the consumer's child element via `Slot`.
|
|
12
|
+
* When `true`, children render as-is: no body row and no close button.
|
|
13
|
+
* The `color` context is still provided so sub-components receive the correct styles.
|
|
14
|
+
*/
|
|
15
|
+
asChild?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Colour treatment. Drives the surface, the default icon, and live-region urgency:
|
|
18
|
+
* `danger` and `warning` announce assertively, the rest politely.
|
|
19
|
+
* @default 'info'
|
|
20
|
+
*/
|
|
21
|
+
color?: SystemAlertColor;
|
|
22
|
+
/**
|
|
23
|
+
* Pad the top of the root by the top safe-area inset so the surface paints behind
|
|
24
|
+
* the status bar and the content row starts below it. Set `false` for a banner that
|
|
25
|
+
* does not sit at the top edge of the screen. The inset is zero on web and without a
|
|
26
|
+
* safe-area provider.
|
|
27
|
+
* @default true
|
|
28
|
+
*/
|
|
29
|
+
hasSafeAreaInset?: boolean;
|
|
30
|
+
/** Renders a dismiss button as the last control in the row. */
|
|
31
|
+
onClose?: () => void;
|
|
32
|
+
/**
|
|
33
|
+
* Accessible name for the dismiss button.
|
|
34
|
+
* @default 'Dismiss alert'
|
|
35
|
+
*/
|
|
36
|
+
closeAccessibilityLabel?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Controlled presence. Omit it for a banner that shows while mounted, with no motion.
|
|
39
|
+
* When set, SystemAlert stays mounted and owns presence: `false` → `true` slides the
|
|
40
|
+
* banner down from the top edge and pushes the content below it, and `true` → `false`
|
|
41
|
+
* reverses that, then removes the surface. `true` on first render shows the banner in
|
|
42
|
+
* place without motion. While closed with `hasSafeAreaInset`, a transparent strip the
|
|
43
|
+
* height of the top inset stays reserved, so the header below never applies the inset.
|
|
44
|
+
* Pick one mode per mount: switching between omitted and set is not supported.
|
|
45
|
+
*/
|
|
46
|
+
isOpen?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Pass `'disable-all'` to open and close in one frame, without motion. Has no effect
|
|
49
|
+
* without `isOpen`.
|
|
50
|
+
*/
|
|
51
|
+
animation?: AnimationRootDisableAll;
|
|
52
|
+
className?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Rendered in order inside the content row, typically `SystemAlert.Icon`,
|
|
55
|
+
* `SystemAlert.Description`, and `SystemAlert.Actions`.
|
|
56
|
+
*/
|
|
57
|
+
children?: ReactNode;
|
|
58
|
+
}
|
|
59
|
+
declare const SystemAlertRoot: import("react").ForwardRefExoticComponent<SystemAlertProps & import("react").RefAttributes<View>>;
|
|
60
|
+
export interface SystemAlertIconProps extends Omit<IconProps, 'as' | 'color'> {
|
|
61
|
+
asChild?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Override the default icon for the current `color` (`EmergencyHome`, `Warning`,
|
|
64
|
+
* `CheckCircle`, `Info`, or `Error` for `brand`). Not required when `asChild` is set.
|
|
65
|
+
*/
|
|
66
|
+
as?: ForgeIcon;
|
|
67
|
+
}
|
|
68
|
+
declare const SystemAlertIcon: import("react").ForwardRefExoticComponent<SystemAlertIconProps & import("react").RefAttributes<View>>;
|
|
69
|
+
export interface SystemAlertDescriptionProps extends TextProps {
|
|
70
|
+
asChild?: boolean;
|
|
71
|
+
className?: string;
|
|
72
|
+
/**
|
|
73
|
+
* Message text. Wraps by default; pass `numberOfLines` to clamp it. With `isOpen` on the
|
|
74
|
+
* root, its plain text is what iOS announces when the banner opens, so it must be passed
|
|
75
|
+
* as children rather than resolved inside a child component.
|
|
76
|
+
*/
|
|
77
|
+
children?: ReactNode;
|
|
78
|
+
}
|
|
79
|
+
declare const SystemAlertDescription: import("react").ForwardRefExoticComponent<SystemAlertDescriptionProps & import("react").RefAttributes<Text>>;
|
|
80
|
+
export interface SystemAlertActionsProps extends ViewProps {
|
|
81
|
+
asChild?: boolean;
|
|
82
|
+
className?: string;
|
|
83
|
+
/** Typically `SystemAlert.Action` and `SystemAlert.IconAction`. */
|
|
84
|
+
children?: ReactNode;
|
|
85
|
+
}
|
|
86
|
+
declare const SystemAlertActions: import("react").ForwardRefExoticComponent<SystemAlertActionsProps & import("react").RefAttributes<View>>;
|
|
87
|
+
export interface SystemAlertActionProps extends Omit<ButtonProps, 'variant' | 'color' | 'size' | 'fullWidth' | 'asChild'> {
|
|
88
|
+
className?: string;
|
|
89
|
+
/** Label text, rendered inside `Button.Label`. */
|
|
90
|
+
children?: ReactNode;
|
|
91
|
+
}
|
|
92
|
+
declare const SystemAlertAction: import("react").ForwardRefExoticComponent<SystemAlertActionProps & import("react").RefAttributes<View>>;
|
|
93
|
+
export interface SystemAlertIconActionProps extends Omit<IconButtonProps, 'variant' | 'color' | 'size' | 'accessibilityLabel'> {
|
|
94
|
+
/** Forge icon component to render. */
|
|
95
|
+
as: ForgeIcon;
|
|
96
|
+
/** Accessible name. Required: the control has no visible text. */
|
|
97
|
+
accessibilityLabel: string;
|
|
98
|
+
}
|
|
99
|
+
declare const SystemAlertIconAction: import("react").ForwardRefExoticComponent<SystemAlertIconActionProps & import("react").RefAttributes<View>>;
|
|
100
|
+
type SystemAlertCompoundComponent = typeof SystemAlertRoot & {
|
|
101
|
+
Icon: typeof SystemAlertIcon;
|
|
102
|
+
Description: typeof SystemAlertDescription;
|
|
103
|
+
Actions: typeof SystemAlertActions;
|
|
104
|
+
Action: typeof SystemAlertAction;
|
|
105
|
+
IconAction: typeof SystemAlertIconAction;
|
|
106
|
+
};
|
|
107
|
+
export declare const SystemAlert: SystemAlertCompoundComponent;
|
|
108
|
+
export type { SystemAlertColor, SystemAlertVariantProps };
|
|
109
|
+
export { useSystemAlertStatusBarStyle, type SystemAlertStatusBarStyle, } from './useSystemAlertStatusBarStyle';
|
|
110
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/SystemAlert/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAWL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAGL,IAAI,EACJ,IAAI,EAEJ,KAAK,SAAS,EACd,KAAK,SAAS,EAEf,MAAM,cAAc,CAAC;AAItB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAkB/C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,WAAW,CAAC;AACrD,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AAMjE,OAAO,EAeL,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,EAC7B,MAAM,UAAU,CAAC;AAwOlB,MAAM,WAAW,gBAAiB,SAAQ,SAAS,EAAE,uBAAuB;IAC1E;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;O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;IACnB,kDAAkD;IAClD,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,QAAA,MAAM,iBAAiB,yGAmBtB,CAAC;AAQF,MAAM,WAAW,0BAA2B,SAAQ,IAAI,CACtD,eAAe,EACf,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,oBAAoB,CACpD;IACC,sCAAsC;IACtC,EAAE,EAAE,SAAS,CAAC;IACd,kEAAkE;IAClE,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAED,QAAA,MAAM,qBAAqB,6GAgB1B,CAAC;AAQF,KAAK,4BAA4B,GAAG,OAAO,eAAe,GAAG;IAC3D,IAAI,EAAE,OAAO,eAAe,CAAC;IAC7B,WAAW,EAAE,OAAO,sBAAsB,CAAC;IAC3C,OAAO,EAAE,OAAO,kBAAkB,CAAC;IACnC,MAAM,EAAE,OAAO,iBAAiB,CAAC;IACjC,UAAU,EAAE,OAAO,qBAAqB,CAAC;CAC1C,CAAC;AAEF,eAAO,MAAM,WAAW,EAMlB,4BAA4B,CAAC;AAEnC,YAAY,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,CAAC;AAC1D,OAAO,EACL,4BAA4B,EAC5B,KAAK,yBAAyB,GAC/B,MAAM,gCAAgC,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { type VariantProps } from '@cdx-ui/utils';
|
|
2
|
+
export type SystemAlertColor = 'danger' | 'warning' | 'success' | 'info' | 'brand';
|
|
3
|
+
export declare const systemAlertRootVariants: (props?: ({
|
|
4
|
+
color?: "danger" | "warning" | "success" | "info" | "brand" | null | undefined;
|
|
5
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
|
+
export declare const systemAlertPresenceVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
7
|
+
export declare const systemAlertPresenceClipVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
8
|
+
export declare const systemAlertPresenceSurfaceVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
9
|
+
export declare const systemAlertBodyVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
10
|
+
export declare const systemAlertIconVariants: (props?: ({
|
|
11
|
+
color?: SystemAlertColor | null | undefined;
|
|
12
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
13
|
+
export declare const systemAlertDescriptionVariants: (props?: ({
|
|
14
|
+
color?: SystemAlertColor | null | undefined;
|
|
15
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
16
|
+
export declare const systemAlertActionsVariants: (props?: ({
|
|
17
|
+
hasClose?: boolean | null | undefined;
|
|
18
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
19
|
+
export declare const systemAlertActionVariants: (props?: ({
|
|
20
|
+
color?: SystemAlertColor | null | undefined;
|
|
21
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
22
|
+
export declare const systemAlertActionLabelVariants: (props?: ({
|
|
23
|
+
color?: SystemAlertColor | null | undefined;
|
|
24
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
25
|
+
export declare const systemAlertIconActionVariants: (props?: ({
|
|
26
|
+
color?: SystemAlertColor | null | undefined;
|
|
27
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
28
|
+
export declare const systemAlertIconActionIconVariants: (props?: ({
|
|
29
|
+
color?: SystemAlertColor | null | undefined;
|
|
30
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
31
|
+
export declare const systemAlertCloseVariants: (props?: ({
|
|
32
|
+
color?: SystemAlertColor | null | undefined;
|
|
33
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
34
|
+
export declare const systemAlertCloseIconVariants: (props?: ({
|
|
35
|
+
color?: SystemAlertColor | null | undefined;
|
|
36
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
37
|
+
export type SystemAlertVariantProps = VariantProps<typeof systemAlertRootVariants>;
|
|
38
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/SystemAlert/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAEvD,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;AAyDnF,eAAO,MAAM,uBAAuB;;8EAalC,CAAC;AAkBH,eAAO,MAAM,2BAA2B,oFAGtC,CAAC;AAEH,eAAO,MAAM,+BAA+B,oFAG1C,CAAC;AAIH,eAAO,MAAM,kCAAkC,oFAAoB,CAAC;AAIpE,eAAO,MAAM,uBAAuB,oFAAmD,CAAC;AAKxF,eAAO,MAAM,uBAAuB;;8EAOlC,CAAC;AAIH,eAAO,MAAM,8BAA8B;;8EAOzC,CAAC;AAMH,eAAO,MAAM,0BAA0B;;8EAUrC,CAAC;AAIH,eAAO,MAAM,yBAAyB;;8EAOpC,CAAC;AAEH,eAAO,MAAM,8BAA8B;;8EAOzC,CAAC;AAIH,eAAO,MAAM,6BAA6B;;8EAOxC,CAAC;AAEH,eAAO,MAAM,iCAAiC;;8EAO5C,CAAC;AAKH,eAAO,MAAM,wBAAwB;;8EAOnC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;8EAOvC,CAAC;AAIH,MAAM,MAAM,uBAAuB,GAAG,YAAY,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { SystemAlertColor } from './styles';
|
|
2
|
+
export type SystemAlertStatusBarStyle = 'light' | 'dark';
|
|
3
|
+
/**
|
|
4
|
+
* The status-bar glyph style that matches a SystemAlert's text on its strong surface, for a
|
|
5
|
+
* banner that paints behind the status bar. Read from the active theme's
|
|
6
|
+
* `content-{color}-on-strong` token, so it follows FI themes and light and dark mode.
|
|
7
|
+
*
|
|
8
|
+
* SystemAlert never sets the status bar. Pass the result to whatever owns it in your app,
|
|
9
|
+
* such as `expo-status-bar`'s `style`, React Native `StatusBar`'s `barStyle`
|
|
10
|
+
* (`'light-content'` / `'dark-content'`), or your navigator's status-bar option, and apply it
|
|
11
|
+
* only while the banner is open and its screen is focused.
|
|
12
|
+
*/
|
|
13
|
+
export declare function useSystemAlertStatusBarStyle(color: SystemAlertColor): SystemAlertStatusBarStyle;
|
|
14
|
+
//# sourceMappingURL=useSystemAlertStatusBarStyle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSystemAlertStatusBarStyle.d.ts","sourceRoot":"","sources":["../../../../src/components/SystemAlert/useSystemAlertStatusBarStyle.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD,MAAM,MAAM,yBAAyB,GAAG,OAAO,GAAG,MAAM,CAAC;AAsCzD;;;;;;;;;GASG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,gBAAgB,GAAG,yBAAyB,CAK/F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Tabs/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EASL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAKL,IAAI,EACJ,IAAI,EAEJ,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAGtB,OAAO,EAUL,KAAK,cAAc,EACnB,KAAK,SAAS,EACd,KAAK,cAAc,EACnB,KAAK,UAAU,EAChB,MAAM,oBAAoB,CAAC;AAI5B,OAAO,EAmBL,KAAK,WAAW,EACjB,MAAM,UAAU,CAAC;AAElB,YAAY,EAAE,WAAW,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Tabs/index.tsx"],"names":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;IACpD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,QAAA,MAAM,SAAS,iGAiBd,CAAC;AAQF,KAAK,qBAAqB,GAAG,OAAO,QAAQ,GAAG;IAC7C,IAAI,EAAE,OAAO,QAAQ,CAAC;IACtB,GAAG,EAAE,OAAO,OAAO,CAAC;IACpB,QAAQ,EAAE,OAAO,YAAY,CAAC;IAC9B,KAAK,EAAE,OAAO,SAAS,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,IAAI,EAKX,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import type { ChartTooltipContent, ChartTooltipItem } from './types';
|
|
2
|
+
export interface ChartInspectorTarget {
|
|
3
|
+
readonly key: string;
|
|
4
|
+
/** Hit box in overlay coordinates. */
|
|
5
|
+
readonly left: number;
|
|
6
|
+
readonly top: number;
|
|
7
|
+
readonly width: number;
|
|
8
|
+
readonly height: number;
|
|
9
|
+
/** Point the tooltip sits beside. */
|
|
10
|
+
readonly anchorX: number;
|
|
11
|
+
readonly anchorY: number;
|
|
12
|
+
/** Half-width of the mark at the anchor, so the tooltip clears it. */
|
|
13
|
+
readonly anchorRadius?: number;
|
|
14
|
+
readonly tooltip: ChartTooltipContent;
|
|
15
|
+
readonly accessibilityLabel: string;
|
|
16
|
+
readonly selected: boolean;
|
|
17
|
+
/** Keyboard focus ring. Defaults to the hit box. */
|
|
18
|
+
readonly outline?: {
|
|
19
|
+
readonly left: number;
|
|
20
|
+
readonly top: number;
|
|
21
|
+
readonly width: number;
|
|
22
|
+
readonly height: number;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
/** WCAG 2.5.8 (AA) is 24px; 44px matches Apple HIG / WCAG 2.5.5 for touch. */
|
|
26
|
+
export declare const MIN_POINTER_TARGET_PX = 44;
|
|
27
|
+
/** Hold before scrubbing a scrollable plot, so a flick can still scroll (Apple Health). */
|
|
28
|
+
export declare const CHART_SCRUB_HOLD_MS = 250;
|
|
29
|
+
export declare function expandHitBox(left: number, top: number, width: number, height: number, minSize?: number): {
|
|
30
|
+
left: number;
|
|
31
|
+
top: number;
|
|
32
|
+
width: number;
|
|
33
|
+
height: number;
|
|
34
|
+
};
|
|
35
|
+
export declare function chartValueText(item: ChartTooltipItem): string;
|
|
36
|
+
interface ChartTooltipSize {
|
|
37
|
+
readonly width: number;
|
|
38
|
+
readonly height: number;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Top-left of a tooltip in frame coordinates. Beside the anchor on the roomier side when it
|
|
42
|
+
* fits, otherwise above or below it; always clamped inside the frame so a clipping ancestor
|
|
43
|
+
* (a `Card`, a `ScrollView`) cannot cut it off.
|
|
44
|
+
*/
|
|
45
|
+
export declare function placeChartTooltip(anchor: {
|
|
46
|
+
readonly x: number;
|
|
47
|
+
readonly y: number;
|
|
48
|
+
readonly radius?: number;
|
|
49
|
+
}, tip: ChartTooltipSize, frame: ChartTooltipSize): {
|
|
50
|
+
left: number;
|
|
51
|
+
top: number;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Chart tooltip, measured and clamped inside `width` × `height`. Mount it in the chart's
|
|
55
|
+
* outer plot frame, never inside the plot `ScrollView`, which clips its content.
|
|
56
|
+
*/
|
|
57
|
+
export declare function ChartTooltipLayer({ content, noValueText, slot, anchorX, anchorY, anchorRadius, width, height, }: {
|
|
58
|
+
content: ChartTooltipContent;
|
|
59
|
+
noValueText: string;
|
|
60
|
+
slot: string;
|
|
61
|
+
/** Anchor in frame coordinates. */
|
|
62
|
+
anchorX: number;
|
|
63
|
+
anchorY: number;
|
|
64
|
+
anchorRadius?: number;
|
|
65
|
+
width: number;
|
|
66
|
+
height: number;
|
|
67
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
68
|
+
/**
|
|
69
|
+
* Host-element hit targets over an SVG plot. SVG nodes are poor focus and hover targets under
|
|
70
|
+
* React Native Web, so each target is a `Pressable` with roving focus: one tab stop per chart.
|
|
71
|
+
* Web: native `mousemove` (RN Web `Pressable` has no hover). Native: press-and-drag on the
|
|
72
|
+
* overlay; the tooltip tracks the finger and clears on lift. When the plot itself scrolls,
|
|
73
|
+
* scrubbing waits for a short hold so a flick can still pan. Keyboard and VoiceOver still use
|
|
74
|
+
* the buttons (Escape / two-finger Z).
|
|
75
|
+
*/
|
|
76
|
+
export declare function ChartInspector({ targets, summary, selectable, activeIndex, selectedIndex, slot, holdToScrub, onActivate, onDeactivate, onDismiss, onSelectIndex, hitTest, neighborIndex, onScrubLockChange, }: {
|
|
77
|
+
targets: readonly ChartInspectorTarget[];
|
|
78
|
+
summary: string;
|
|
79
|
+
selectable: boolean;
|
|
80
|
+
activeIndex: number | null;
|
|
81
|
+
selectedIndex: number | null;
|
|
82
|
+
slot: string;
|
|
83
|
+
/** Wait for a hold before capturing the pan, so a scrollable plot can still flick-scroll. */
|
|
84
|
+
holdToScrub?: boolean;
|
|
85
|
+
onActivate: (index: number) => void;
|
|
86
|
+
/** Called with the target that lost hover or focus. Ignore it if another target is already active. */
|
|
87
|
+
onDeactivate: (index: number) => void;
|
|
88
|
+
onDismiss: () => void;
|
|
89
|
+
onSelectIndex: (index: number) => void;
|
|
90
|
+
/** When set, pointer hits use this instead of the rectangular target boxes (line charts). */
|
|
91
|
+
hitTest?: (x: number, y: number) => number | null;
|
|
92
|
+
/** Override linear arrow-key movement (grouped / stacked bar charts). */
|
|
93
|
+
neighborIndex?: (index: number, key: string) => number | null;
|
|
94
|
+
/**
|
|
95
|
+
* Fires when a hold locks the finger to scrubbing (`true`) and when it lifts (`false`).
|
|
96
|
+
* The parent must disable its `ScrollView` while locked, or the native pan steals the drag.
|
|
97
|
+
*/
|
|
98
|
+
onScrubLockChange?: (locked: boolean) => void;
|
|
99
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
100
|
+
export {};
|
|
101
|
+
//# sourceMappingURL=ChartInspector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|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EACP,aAAa,EACb,iBAAiB,GAClB,EAAE;IACD,OAAO,EAAE,SAAS,oBAAoB,EAAE,CAAC;IACzC,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,6FAA6F;IAC7F,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,sGAAsG;IACtG,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,6FAA6F;IAC7F,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,KAAK,MAAM,GAAG,IAAI,CAAC;IAClD,yEAAyE;IACzE,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,MAAM,GAAG,IAAI,CAAC;IAC9D;;;OAGG;IACH,iBAAiB,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;CAC/C,2CAsaA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ChartLocaleText, ChartValueFormatter } from './types';
|
|
2
|
+
interface HasValueFormatter {
|
|
3
|
+
readonly valueFormatter?: ChartValueFormatter;
|
|
4
|
+
}
|
|
5
|
+
export declare const defaultChartLocaleText: ChartLocaleText;
|
|
6
|
+
/** Consumer strings over the English defaults. `undefined` entries keep the default. */
|
|
7
|
+
export declare function resolveChartLocaleText(localeText?: Partial<ChartLocaleText>): ChartLocaleText;
|
|
8
|
+
/** Up to two fraction digits, without trailing zeros: `3`, `2.5`, `1,234.56`. */
|
|
9
|
+
export declare function formatChartNumber(value: number | null, locale?: string): string;
|
|
10
|
+
/** A 0–1 share as a whole percent for `locale`: `0.46` → `46%`. */
|
|
11
|
+
export declare function formatChartPercent(share: number, locale?: string): string;
|
|
12
|
+
export declare function defaultChartValueFormatter(locale?: string): ChartValueFormatter;
|
|
13
|
+
/** Series formatter, then axis formatter, then the `locale` default. */
|
|
14
|
+
export declare function resolveValueFormatter(series: HasValueFormatter | null | undefined, axis: HasValueFormatter | null | undefined, locale?: string): ChartValueFormatter;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=format.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../../../src/components/chart/format.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,eAAe,EAIf,mBAAmB,EACpB,MAAM,SAAS,CAAC;AAEjB,UAAU,iBAAiB;IACzB,QAAQ,CAAC,cAAc,CAAC,EAAE,mBAAmB,CAAC;CAC/C;AAUD,eAAO,MAAM,sBAAsB,EAAE,eAoBpC,CAAC;AAEF,wFAAwF;AACxF,wBAAgB,sBAAsB,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,GAAG,eAAe,CAQ7F;AAED,iFAAiF;AACjF,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAO/E;AAID,mEAAmE;AACnE,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAczE;AAED,wBAAgB,0BAA0B,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,mBAAmB,CAE/E;AAED,wEAAwE;AACxE,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,iBAAiB,GAAG,IAAI,GAAG,SAAS,EAC5C,IAAI,EAAE,iBAAiB,GAAG,IAAI,GAAG,SAAS,EAC1C,MAAM,CAAC,EAAE,MAAM,GACd,mBAAmB,CAErB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hides a decorative `Svg` from assistive technology. On web, react-native-svg renders a raw
|
|
3
|
+
* `<svg>` without react-native-web's prop filtering, so RN-only accessibility props would reach
|
|
4
|
+
* the DOM as unknown attributes and log React warnings.
|
|
5
|
+
*/
|
|
6
|
+
export declare const HIDDEN_SVG_PROPS: {
|
|
7
|
+
readonly 'aria-hidden': true;
|
|
8
|
+
readonly accessible?: undefined;
|
|
9
|
+
readonly accessibilityElementsHidden?: undefined;
|
|
10
|
+
readonly importantForAccessibility?: undefined;
|
|
11
|
+
} | {
|
|
12
|
+
readonly accessible: false;
|
|
13
|
+
readonly accessibilityElementsHidden: true;
|
|
14
|
+
readonly importantForAccessibility: "no-hide-descendants";
|
|
15
|
+
readonly 'aria-hidden'?: undefined;
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=hiddenSvgProps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hiddenSvgProps.d.ts","sourceRoot":"","sources":["../../../../src/components/chart/hiddenSvgProps.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;CAOlB,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export type { ChartAxis, ChartAxisPosition, ChartGrid, ChartLocaleText, ChartReferenceLine, ChartScaleType, ChartSelectedItem, ChartSeriesBase, ChartSeriesCommon, ChartSize, ChartSizeProps, ChartSummaryCategory, ChartSummaryValue, ChartTooltipContent, ChartTooltipItem, ChartTooltipProps, ChartTrend, ChartTrendDirection, ChartValueFormatter, ChartValueFormatterContext, ChartValueLocation, } from './types';
|
|
2
|
+
export type { ChartColor, ChartPalette } from './palette';
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/chart/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,SAAS,EACT,iBAAiB,EACjB,SAAS,EACT,eAAe,EACf,kBAAkB,EAClB,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,SAAS,EACT,cAAc,EACd,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,UAAU,EACV,mBAAmB,EACnB,mBAAmB,EACnB,0BAA0B,EAC1B,kBAAkB,GACnB,MAAM,SAAS,CAAC;AACjB,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type SharedValue } from 'react-native-reanimated';
|
|
2
|
+
import { type AnimationRootDisableAll } from '../../animation';
|
|
3
|
+
export declare const CHART_MOTION_DURATION = 600;
|
|
4
|
+
export interface ChartMorph {
|
|
5
|
+
readonly from: SharedValue<number[]>;
|
|
6
|
+
readonly to: SharedValue<number[]>;
|
|
7
|
+
readonly progress: SharedValue<number>;
|
|
8
|
+
}
|
|
9
|
+
/** Off for `'disable-all'`, an ancestor or global `disable-all`, and Reduce Motion. */
|
|
10
|
+
export declare function useChartMotionEnabled(animation: AnimationRootDisableAll | undefined): boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Non-finite entries mark gaps: they snap to the target instead of tweening.
|
|
13
|
+
* Vectors of different lengths cannot be paired, so the target wins outright.
|
|
14
|
+
*/
|
|
15
|
+
export declare function lerpVector(from: readonly number[], to: readonly number[], t: number): number[];
|
|
16
|
+
/**
|
|
17
|
+
* Tweens a numeric geometry vector on the UI thread. Mounts at `initial` and runs to
|
|
18
|
+
* `target`; later targets start from wherever the previous tween currently is. When the
|
|
19
|
+
* vector changes length (points or slices added/removed) the entry replays from `initial`.
|
|
20
|
+
*/
|
|
21
|
+
export declare function useChartMorph(target: readonly number[], initial: readonly number[], enabled: boolean): ChartMorph;
|
|
22
|
+
/**
|
|
23
|
+
* 0 → 1 on mount and whenever `replayKey` changes. Labels sit on animated geometry, so they
|
|
24
|
+
* stay hidden until the morph is mostly done, then fade in at the final position.
|
|
25
|
+
*/
|
|
26
|
+
export declare function useChartEntrance(enabled: boolean, replayKey?: string): SharedValue<number>;
|
|
27
|
+
//# sourceMappingURL=motion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"motion.d.ts","sourceRoot":"","sources":["../../../../src/components/chart/motion.ts"],"names":[],"mappings":"AACA,OAAO,EAKL,KAAK,WAAW,EACjB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAqC,KAAK,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAElG,eAAO,MAAM,qBAAqB,MAAM,CAAC;AAGzC,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC,MAAM,EAAE,CAAC,CAAC;IACrC,QAAQ,CAAC,EAAE,EAAE,WAAW,CAAC,MAAM,EAAE,CAAC,CAAC;IACnC,QAAQ,CAAC,QAAQ,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CACxC;AAED,uFAAuF;AACvF,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,uBAAuB,GAAG,SAAS,GAAG,OAAO,CAI7F;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,EAAE,EAAE,EAAE,SAAS,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAU9F;AAMD;;;;GAIG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,SAAS,MAAM,EAAE,EACzB,OAAO,EAAE,SAAS,MAAM,EAAE,EAC1B,OAAO,EAAE,OAAO,GACf,UAAU,CAuBZ;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,OAAO,EAAE,SAAS,SAAK,GAAG,WAAW,CAAC,MAAM,CAAC,CAatF"}
|
|
@@ -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,EAC7B,MAAM,EAAE,gBAAgB,GACvB,MAAM,GAAG,SAAS,CAWpB;AAED,wBAAgB,mBAAmB,IAAI,gBAAgB,CAoCtD;AAiBD,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,kDAAkD;IAClD,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,0DAA0D;IAC1D,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B;AAED,wBAAgB,cAAc,IAAI,WAAW,CAe5C;AAED;;;GAGG;AACH,wBAAgB,eAAe,IAAI,SAAS,MAAM,EAAE,CAgBnD;AAED;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,aAAa,CAAC;AAElD,MAAM,MAAM,eAAe,GAAG,KAAK,GAAG,MAAM,CAAC;AAoB7C,+DAA+D;AAC/D,wBAAgB,gBAAgB,CAC9B,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,YAAY,EACrB,IAAI,EAAE,eAAe,GACpB,UAAU,CAIZ;AAED,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEzD;AAED,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAEpE;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,QAAQ,EACR,MAAM,EACN,EAAE,EACF,EAAE,GACH,EAAE;IACD,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;IACnC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;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"}
|