@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
|
@@ -10,7 +10,11 @@ const segmentsCount = instance.getEnum('segments', {
|
|
|
10
10
|
'3': 3,
|
|
11
11
|
'4': 4,
|
|
12
12
|
'5': 5,
|
|
13
|
-
'6': 6
|
|
13
|
+
'6': 6,
|
|
14
|
+
'7': 7,
|
|
15
|
+
'8': 8,
|
|
16
|
+
'9': 9,
|
|
17
|
+
'10': 10
|
|
14
18
|
});
|
|
15
19
|
|
|
16
20
|
// Figma `step=complete` maps to `isStepComplete` on the last step (all segments filled).
|
|
@@ -21,6 +25,10 @@ const stepRaw = instance.getEnum('step', {
|
|
|
21
25
|
'4': '4',
|
|
22
26
|
'5': '5',
|
|
23
27
|
'6': '6',
|
|
28
|
+
'7': '7',
|
|
29
|
+
'8': '8',
|
|
30
|
+
'9': '9',
|
|
31
|
+
'10': '10',
|
|
24
32
|
complete: 'complete'
|
|
25
33
|
});
|
|
26
34
|
const isStepComplete = stepRaw === 'complete';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["figma","instance","selectedInstance","segmentsCount","getEnum","stepRaw","complete","isStepComplete","step","Number","id","imports","example","code"],"sourceRoot":"../../../src","sources":["figma/ProgressSegmented.figma.ts"],"mappings":";;AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AAEzB,MAAMC,QAAQ,GAAGD,KAAK,CAACE,gBAAgB;AAEvC,MAAMC,aAAa,GAAGF,QAAQ,CAACG,OAAO,CAAC,UAAU,EAAE;EACjD,GAAG,EAAE,CAAC;EACN,GAAG,EAAE,CAAC;EACN,GAAG,EAAE,CAAC;EACN,GAAG,EAAE,CAAC;EACN,GAAG,EAAE;
|
|
1
|
+
{"version":3,"names":["figma","instance","selectedInstance","segmentsCount","getEnum","stepRaw","complete","isStepComplete","step","Number","id","imports","example","code"],"sourceRoot":"../../../src","sources":["figma/ProgressSegmented.figma.ts"],"mappings":";;AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AAEzB,MAAMC,QAAQ,GAAGD,KAAK,CAACE,gBAAgB;AAEvC,MAAMC,aAAa,GAAGF,QAAQ,CAACG,OAAO,CAAC,UAAU,EAAE;EACjD,GAAG,EAAE,CAAC;EACN,GAAG,EAAE,CAAC;EACN,GAAG,EAAE,CAAC;EACN,GAAG,EAAE,CAAC;EACN,GAAG,EAAE,CAAC;EACN,GAAG,EAAE,CAAC;EACN,GAAG,EAAE,CAAC;EACN,GAAG,EAAE,CAAC;EACN,IAAI,EAAE;AACR,CAAC,CAAC;;AAEF;AACA,MAAMC,OAAO,GAAGJ,QAAQ,CAACG,OAAO,CAAC,MAAM,EAAE;EACvC,GAAG,EAAE,GAAG;EACR,GAAG,EAAE,GAAG;EACR,GAAG,EAAE,GAAG;EACR,GAAG,EAAE,GAAG;EACR,GAAG,EAAE,GAAG;EACR,GAAG,EAAE,GAAG;EACR,GAAG,EAAE,GAAG;EACR,GAAG,EAAE,GAAG;EACR,GAAG,EAAE,GAAG;EACR,IAAI,EAAE,IAAI;EACVE,QAAQ,EAAE;AACZ,CAAC,CAAC;AAEF,MAAMC,cAAc,GAAGF,OAAO,KAAK,UAAU;AAC7C,MAAMG,IAAI,GAAGD,cAAc,GAAGJ,aAAa,GAAGM,MAAM,CAACJ,OAAO,CAAC;AAE7D,eAAe;EACbK,EAAE,EAAE,oBAAoB;EACxBC,OAAO,EAAE,CAAC,wDAAwD,CAAC;EACnEC,OAAO,EAAEZ,KAAK,CAACa,IAAI,gCAAgCV,aAAa,WAAWK,IAAI,IAC7ED,cAAc,GAAGP,KAAK,CAACa,IAAI,iBAAiB,GAAGb,KAAK,CAACa,IAAI,EAAE;AAE/D,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["figma","instance","selectedInstance","variant","getEnum","outlined","size","default","isInvalid","true","false","undefined","isDisabled","isInvalidProp","helpers","react","renderProp","isDisabledProp","showValue","showPlaceholder","valueText","findText","traverseInstances","textContent","placeholder","getString","valueProp","id","imports","example","code"],"sourceRoot":"../../../src","sources":["figma/Select.figma.ts"],"mappings":";;AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AAEzB,MAAMC,QAAQ,GAAGD,KAAK,CAACE,gBAAgB;AAEvC,MAAMC,OAAO,GAAGF,QAAQ,CAACG,OAAO,CAAC,SAAS,EAAE;EAC1CC,QAAQ,EAAE;AACZ,CAAC,CAAC;AACF,MAAMC,IAAI,GAAGL,QAAQ,CAACG,OAAO,CAAC,MAAM,EAAE;EACpCG,OAAO,EAAE;
|
|
1
|
+
{"version":3,"names":["figma","instance","selectedInstance","variant","getEnum","outlined","size","default","small","isInvalid","true","false","undefined","isDisabled","isInvalidProp","helpers","react","renderProp","isDisabledProp","showValue","showPlaceholder","valueText","findText","traverseInstances","textContent","placeholder","getString","valueProp","id","imports","example","code"],"sourceRoot":"../../../src","sources":["figma/Select.figma.ts"],"mappings":";;AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AAEzB,MAAMC,QAAQ,GAAGD,KAAK,CAACE,gBAAgB;AAEvC,MAAMC,OAAO,GAAGF,QAAQ,CAACG,OAAO,CAAC,SAAS,EAAE;EAC1CC,QAAQ,EAAE;AACZ,CAAC,CAAC;AACF,MAAMC,IAAI,GAAGL,QAAQ,CAACG,OAAO,CAAC,MAAM,EAAE;EACpCG,OAAO,EAAE,SAAS;EAClBC,KAAK,EAAE;AACT,CAAC,CAAC;AAEF,MAAMC,SAAS,GAAGR,QAAQ,CAACG,OAAO,CAAC,WAAW,EAAE;EAC9CM,IAAI,EAAE,IAAI;EACVC,KAAK,EAAEC;AACT,CAAC,CAAC;AACF,MAAMC,UAAU,GAAGZ,QAAQ,CAACG,OAAO,CAAC,YAAY,EAAE;EAChDM,IAAI,EAAE,IAAI;EACVC,KAAK,EAAEC;AACT,CAAC,CAAC;AAEF,MAAME,aAAa,GAAGd,KAAK,CAACe,OAAO,CAACC,KAAK,CAACC,UAAU,CAAC,WAAW,EAAER,SAAS,CAAC;AAC5E,MAAMS,cAAc,GAAGlB,KAAK,CAACe,OAAO,CAACC,KAAK,CAACC,UAAU,CAAC,YAAY,EAAEJ,UAAU,CAAC;AAE/E,MAAMM,SAAS,GAAGlB,QAAQ,CAACG,OAAO,CAAC,aAAa,EAAE;EAChDM,IAAI,EAAE,IAAI;EACVC,KAAK,EAAEC;AACT,CAAC,CAAC;AACF,MAAMQ,eAAe,GAAGnB,QAAQ,CAACG,OAAO,CAAC,mBAAmB,EAAE;EAC5DM,IAAI,EAAE,IAAI;EACVC,KAAK,EAAEC;AACT,CAAC,CAAC;AAEF,MAAMS,SAAS,GACbpB,QAAQ,CAACqB,QAAQ,CAAC,SAAS,EAAE;EAC3BC,iBAAiB,EAAE;AACrB,CAAC,CAAC,CACFC,WAAW;AACb,MAAMC,WAAW,GAAGxB,QAAQ,CAACyB,SAAS,CAAC,aAAa,CAAC;AAErD,MAAMC,SAAS,GAAG3B,KAAK,CAACe,OAAO,CAACC,KAAK,CAACC,UAAU,CAAC,OAAO,EAAEE,SAAS,GAAG,OAAO,GAAGP,SAAS,CAAC;AAE1F,eAAe;EACbgB,EAAE,EAAE,QAAQ;EACZC,OAAO,EAAE,CAAC,6CAA6C,CAAC;EACxDC,OAAO,EAAE9B,KAAK,CAAC+B,IAAI;AACrB,mBAAmB5B,OAAO,WAAWG,IAAI,uCAAuCe,SAAS,QAAQM,SAAS,GAAGb,aAAa,GAAGI,cAAc;AAC3I;AACA,MAAME,eAAe,GAAGpB,KAAK,CAAC+B,IAAI,8BAA8BN,WAAW,MAAM,GAAGzB,KAAK,CAAC+B,IAAI,kBAAkB;AAChH;AACA;AACA,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
// url=https://www.figma.com/design/0lEVMVlLj8ZS4fgItr3pmd/%E2%AD%90-Forge-DS--Components?node-id=8228-5914
|
|
4
|
+
// source=packages/components/src/components/SystemAlert/index.tsx
|
|
5
|
+
// component=SystemAlert.Action
|
|
6
|
+
import figma from 'figma';
|
|
7
|
+
const instance = figma.selectedInstance;
|
|
8
|
+
|
|
9
|
+
// SystemAlert.Action fixes the ghost small variant and restyles it for the strong surface, so only
|
|
10
|
+
// the label carries over. Delegating to the nested Button template would emit `color=""`.
|
|
11
|
+
const label = instance.findText('Button.Label', {
|
|
12
|
+
traverseInstances: true
|
|
13
|
+
}).textContent;
|
|
14
|
+
export default {
|
|
15
|
+
id: 'system-alert-button',
|
|
16
|
+
imports: ["import { SystemAlert } from '@cdx-ui/components'"],
|
|
17
|
+
example: figma.code`<SystemAlert.Action onPress={() => {}}>${label}</SystemAlert.Action>`,
|
|
18
|
+
metadata: {
|
|
19
|
+
nestable: true
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=SystemAlert.Button.figma.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["figma","instance","selectedInstance","label","findText","traverseInstances","textContent","id","imports","example","code","metadata","nestable"],"sourceRoot":"../../../src","sources":["figma/SystemAlert.Button.figma.ts"],"mappings":";;AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AAEzB,MAAMC,QAAQ,GAAGD,KAAK,CAACE,gBAAgB;;AAEvC;AACA;AACA,MAAMC,KAAK,GACTF,QAAQ,CAACG,QAAQ,CAAC,cAAc,EAAE;EAAEC,iBAAiB,EAAE;AAAK,CAAC,CAAC,CAC9DC,WAAW;AAEb,eAAe;EACbC,EAAE,EAAE,qBAAqB;EACzBC,OAAO,EAAE,CAAC,kDAAkD,CAAC;EAC7DC,OAAO,EAAET,KAAK,CAACU,IAAI,0CAA0CP,KAAK,uBAAuB;EACzFQ,QAAQ,EAAE;IAAEC,QAAQ,EAAE;EAAK;AAC7B,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
// url=https://www.figma.com/design/0lEVMVlLj8ZS4fgItr3pmd/%E2%AD%90-Forge-DS--Components?node-id=8228-5907
|
|
4
|
+
// source=packages/components/src/components/SystemAlert/index.tsx
|
|
5
|
+
// component=SystemAlert.Close
|
|
6
|
+
import figma from 'figma';
|
|
7
|
+
|
|
8
|
+
// The dismiss button is not a sub-component: SystemAlert renders it when `onClose` is set, so the
|
|
9
|
+
// parent SystemAlert template lifts this instance into a root prop.
|
|
10
|
+
export default {
|
|
11
|
+
id: 'system-alert-close',
|
|
12
|
+
imports: ["import { SystemAlert } from '@cdx-ui/components'"],
|
|
13
|
+
example: figma.code`onClose={() => {}}`,
|
|
14
|
+
metadata: {
|
|
15
|
+
nestable: true
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=SystemAlert.Close.figma.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["figma","id","imports","example","code","metadata","nestable"],"sourceRoot":"../../../src","sources":["figma/SystemAlert.Close.figma.ts"],"mappings":";;AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;;AAEzB;AACA;AACA,eAAe;EACbC,EAAE,EAAE,oBAAoB;EACxBC,OAAO,EAAE,CAAC,kDAAkD,CAAC;EAC7DC,OAAO,EAAEH,KAAK,CAACI,IAAI,oBAAoB;EACvCC,QAAQ,EAAE;IAAEC,QAAQ,EAAE;EAAK;AAC7B,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
// url=https://www.figma.com/design/0lEVMVlLj8ZS4fgItr3pmd/%E2%AD%90-Forge-DS--Components?node-id=8228-5879
|
|
4
|
+
// source=packages/components/src/components/SystemAlert/index.tsx
|
|
5
|
+
// component=SystemAlert.Description
|
|
6
|
+
import figma from 'figma';
|
|
7
|
+
const instance = figma.selectedInstance;
|
|
8
|
+
const description = instance.findText('{description}').textContent;
|
|
9
|
+
export default {
|
|
10
|
+
id: 'system-alert-description',
|
|
11
|
+
imports: ["import { SystemAlert } from '@cdx-ui/components'"],
|
|
12
|
+
example: figma.code`<SystemAlert.Description>${description}</SystemAlert.Description>`
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=SystemAlert.Description.figma.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["figma","instance","selectedInstance","description","findText","textContent","id","imports","example","code"],"sourceRoot":"../../../src","sources":["figma/SystemAlert.Description.figma.ts"],"mappings":";;AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AAEzB,MAAMC,QAAQ,GAAGD,KAAK,CAACE,gBAAgB;AAEvC,MAAMC,WAAW,GAAIF,QAAQ,CAACG,QAAQ,CAAC,eAAe,CAAC,CAAgCC,WAAW;AAElG,eAAe;EACbC,EAAE,EAAE,0BAA0B;EAC9BC,OAAO,EAAE,CAAC,kDAAkD,CAAC;EAC7DC,OAAO,EAAER,KAAK,CAACS,IAAI,4BAA4BN,WAAW;AAC5D,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
// url=https://www.figma.com/design/0lEVMVlLj8ZS4fgItr3pmd/%E2%AD%90-Forge-DS--Components?node-id=8228-5930
|
|
4
|
+
// source=packages/components/src/components/SystemAlert/index.tsx
|
|
5
|
+
// component=SystemAlert.IconAction
|
|
6
|
+
import figma from 'figma';
|
|
7
|
+
const instance = figma.selectedInstance;
|
|
8
|
+
|
|
9
|
+
// Only the icon carries over from the nested IconButton: SystemAlert.IconAction fixes the ghost
|
|
10
|
+
// small variant and restyles it for the strong surface, and the IconButton template would emit
|
|
11
|
+
// `color=""`.
|
|
12
|
+
const iconButton = instance.findInstance('IconButton');
|
|
13
|
+
const iconResult = iconButton.type === 'INSTANCE' ? iconButton.getInstanceSwap('icon')?.executeTemplate() : undefined;
|
|
14
|
+
const iconName = iconResult?.metadata?.props?.componentName;
|
|
15
|
+
const iconSnippet = iconName ?? iconResult?.example;
|
|
16
|
+
const iconImports = iconName ? [`import { ${iconName} } from '@cdx-ui/icons'`] : [];
|
|
17
|
+
export default {
|
|
18
|
+
id: 'system-alert-icon-button',
|
|
19
|
+
imports: ["import { SystemAlert } from '@cdx-ui/components'", ...iconImports],
|
|
20
|
+
example: figma.code`<SystemAlert.IconAction as={${iconSnippet}} accessibilityLabel="Action" onPress={() => {}} />`,
|
|
21
|
+
metadata: {
|
|
22
|
+
nestable: true
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=SystemAlert.IconButton.figma.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["figma","instance","selectedInstance","iconButton","findInstance","iconResult","type","getInstanceSwap","executeTemplate","undefined","iconName","metadata","props","componentName","iconSnippet","example","iconImports","id","imports","code","nestable"],"sourceRoot":"../../../src","sources":["figma/SystemAlert.IconButton.figma.ts"],"mappings":";;AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AAEzB,MAAMC,QAAQ,GAAGD,KAAK,CAACE,gBAAgB;;AAEvC;AACA;AACA;AACA,MAAMC,UAAU,GAAGF,QAAQ,CAACG,YAAY,CAAC,YAAY,CAAC;AACtD,MAAMC,UAAU,GACdF,UAAU,CAACG,IAAI,KAAK,UAAU,GAC1BH,UAAU,CAACI,eAAe,CAAC,MAAM,CAAC,EAAEC,eAAe,CAAC,CAAC,GACrDC,SAAS;AACf,MAAMC,QAAQ,GAAGL,UAAU,EAAEM,QAAQ,EAAEC,KAAK,EAAEC,aAAmC;AACjF,MAAMC,WAAW,GAAGJ,QAAQ,IAAIL,UAAU,EAAEU,OAAO;AAEnD,MAAMC,WAAW,GAAGN,QAAQ,GAAG,CAAC,YAAYA,QAAQ,yBAAyB,CAAC,GAAG,EAAE;AAEnF,eAAe;EACbO,EAAE,EAAE,0BAA0B;EAC9BC,OAAO,EAAE,CAAC,kDAAkD,EAAE,GAAGF,WAAW,CAAC;EAC7ED,OAAO,EAAEf,KAAK,CAACmB,IAAI,+BAA+BL,WAAW,qDAAqD;EAClHH,QAAQ,EAAE;IAAES,QAAQ,EAAE;EAAK;AAC7B,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
// url=https://www.figma.com/design/0lEVMVlLj8ZS4fgItr3pmd/%E2%AD%90-Forge-DS--Components?node-id=8228-5936
|
|
4
|
+
// source=packages/components/src/components/SystemAlert/index.tsx
|
|
5
|
+
// component=SystemAlert
|
|
6
|
+
import figma from 'figma';
|
|
7
|
+
const instance = figma.selectedInstance;
|
|
8
|
+
|
|
9
|
+
// Figma `color` maps 1:1 to the code `color` prop. `Viewport` is excluded: Narrow and Wide differ only by frame width and the
|
|
10
|
+
// drawn status bar, which `hasSafeAreaInset` (default `true`) covers at runtime.
|
|
11
|
+
const color = instance.getEnum('color', {
|
|
12
|
+
danger: 'danger',
|
|
13
|
+
warning: 'warning',
|
|
14
|
+
success: 'success',
|
|
15
|
+
info: undefined,
|
|
16
|
+
brand: 'brand'
|
|
17
|
+
});
|
|
18
|
+
const colorProp = figma.helpers.react.renderProp('color', color);
|
|
19
|
+
const descriptionInstance = instance.findInstance('SystemAlert.Description');
|
|
20
|
+
const descriptionSnippet = descriptionInstance.type === 'INSTANCE' ? descriptionInstance.executeTemplate().example : null;
|
|
21
|
+
const showTrailingSlot = instance.getBoolean('Show TrailingSlot?');
|
|
22
|
+
const trailingIds = ['system-alert-button', 'system-alert-icon-button', 'system-alert-close'];
|
|
23
|
+
const trailingInstances = showTrailingSlot ? instance.findConnectedInstances(node => trailingIds.includes(node.codeConnectId() ?? '')).filter(node => node.type === 'INSTANCE') : [];
|
|
24
|
+
|
|
25
|
+
// SystemAlert.Close is the root's `onClose`, not a child of SystemAlert.Actions.
|
|
26
|
+
const hasClose = trailingInstances.some(node => node.codeConnectId() === 'system-alert-close');
|
|
27
|
+
const onCloseProp = hasClose ? figma.helpers.react.renderProp('onClose', figma.helpers.react.function('() => {}')) : '';
|
|
28
|
+
const actionSnippets = trailingInstances.filter(node => node.codeConnectId() !== 'system-alert-close').flatMap(node => node.executeTemplate().example);
|
|
29
|
+
export default {
|
|
30
|
+
id: 'system-alert',
|
|
31
|
+
imports: ["import { SystemAlert } from '@cdx-ui/components'"],
|
|
32
|
+
example: figma.code`
|
|
33
|
+
<SystemAlert${colorProp}${onCloseProp}>
|
|
34
|
+
<SystemAlert.Icon />
|
|
35
|
+
${descriptionSnippet}
|
|
36
|
+
${actionSnippets.length > 0 ? figma.code`<SystemAlert.Actions>
|
|
37
|
+
${actionSnippets}
|
|
38
|
+
</SystemAlert.Actions>` : null}
|
|
39
|
+
</SystemAlert>`
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=SystemAlert.figma.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["figma","instance","selectedInstance","color","getEnum","danger","warning","success","info","undefined","brand","colorProp","helpers","react","renderProp","descriptionInstance","findInstance","descriptionSnippet","type","executeTemplate","example","showTrailingSlot","getBoolean","trailingIds","trailingInstances","findConnectedInstances","node","includes","codeConnectId","filter","hasClose","some","onCloseProp","function","actionSnippets","flatMap","id","imports","code","length"],"sourceRoot":"../../../src","sources":["figma/SystemAlert.figma.ts"],"mappings":";;AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AAEzB,MAAMC,QAAQ,GAAGD,KAAK,CAACE,gBAAgB;;AAEvC;AACA;AACA,MAAMC,KAAK,GAAGF,QAAQ,CAACG,OAAO,CAAC,OAAO,EAAE;EACtCC,MAAM,EAAE,QAAQ;EAChBC,OAAO,EAAE,SAAS;EAClBC,OAAO,EAAE,SAAS;EAClBC,IAAI,EAAEC,SAAS;EACfC,KAAK,EAAE;AACT,CAAC,CAAC;AACF,MAAMC,SAAS,GAAGX,KAAK,CAACY,OAAO,CAACC,KAAK,CAACC,UAAU,CAAC,OAAO,EAAEX,KAAK,CAAC;AAEhE,MAAMY,mBAAmB,GAAGd,QAAQ,CAACe,YAAY,CAAC,yBAAyB,CAAC;AAC5E,MAAMC,kBAAkB,GACtBF,mBAAmB,CAACG,IAAI,KAAK,UAAU,GAAGH,mBAAmB,CAACI,eAAe,CAAC,CAAC,CAACC,OAAO,GAAG,IAAI;AAEhG,MAAMC,gBAAgB,GAAGpB,QAAQ,CAACqB,UAAU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@@
|
|
|
1
|
+
export type BarChartOrientation = 'vertical' | 'horizontal';
|
|
2
|
+
/**
|
|
3
|
+
* Where category names sit around the plot. `top` / `bottom` apply to vertical
|
|
4
|
+
* bars; `left` / `right` apply to horizontal bars. Other combinations fall back
|
|
5
|
+
* to `bottom` or `left`. `none` draws no category names.
|
|
6
|
+
*/
|
|
7
|
+
export type BarChartCategoryLabelPosition = 'top' | 'bottom' | 'left' | 'right' | 'none';
|
|
8
|
+
/**
|
|
9
|
+
* How a stack group piles its series. `diverging` stacks positive values up and negative values
|
|
10
|
+
* down from zero. `none` adds every value to one running total. `expand` scales each category to
|
|
11
|
+
* the same length, so segments show their share.
|
|
12
|
+
*/
|
|
13
|
+
export type BarStackOffset = 'diverging' | 'none' | 'expand';
|
|
14
|
+
/** How the chart draws its series: side by side or stacked, a comparison overlay, or a waterfall. */
|
|
15
|
+
export type BarChartKind = 'bars' | 'overlay' | 'waterfall';
|
|
16
|
+
export type BarWaterfallRole = 'total' | 'increase' | 'decrease';
|
|
17
|
+
/** A series resolved for layout. `id` is the public series id. */
|
|
18
|
+
export interface BarGeometrySeries {
|
|
19
|
+
readonly id: string;
|
|
20
|
+
readonly dataKey: string;
|
|
21
|
+
readonly label: string;
|
|
22
|
+
/** Stack group id. Series with the same id share one bar per category. */
|
|
23
|
+
readonly stack?: string;
|
|
24
|
+
readonly stackOffset?: BarStackOffset;
|
|
25
|
+
}
|
|
26
|
+
export interface BarChartReferenceLine {
|
|
27
|
+
readonly value: number;
|
|
28
|
+
readonly label?: string;
|
|
29
|
+
}
|
|
30
|
+
export interface BarValueAxisConfig {
|
|
31
|
+
readonly min?: number;
|
|
32
|
+
readonly max?: number;
|
|
33
|
+
readonly tickNumber?: number;
|
|
34
|
+
}
|
|
35
|
+
export interface BarRect {
|
|
36
|
+
/** Row in the dataset. */
|
|
37
|
+
readonly index: number;
|
|
38
|
+
readonly seriesId: string;
|
|
39
|
+
/** Position in the resolved series list (or the category, for waterfall). Picks the fill. */
|
|
40
|
+
readonly seriesIndex: number;
|
|
41
|
+
readonly label: string;
|
|
42
|
+
readonly seriesLabel: string;
|
|
43
|
+
readonly value: number;
|
|
44
|
+
readonly plotValue: number;
|
|
45
|
+
readonly x: number;
|
|
46
|
+
readonly y: number;
|
|
47
|
+
readonly width: number;
|
|
48
|
+
readonly height: number;
|
|
49
|
+
/** Round the end away from the baseline (the outer cap). */
|
|
50
|
+
readonly rounded: boolean;
|
|
51
|
+
/** Round every corner (floating waterfall steps and inner stacked segments with a gap). */
|
|
52
|
+
readonly roundAll?: boolean;
|
|
53
|
+
/** Set on stacked segments. */
|
|
54
|
+
readonly stackId?: string;
|
|
55
|
+
/** Set on `expand` segments: `plotValue` is a 0–100 share. */
|
|
56
|
+
readonly expand?: boolean;
|
|
57
|
+
/** Set on waterfall bars. */
|
|
58
|
+
readonly waterfallRole?: BarWaterfallRole;
|
|
59
|
+
}
|
|
60
|
+
export interface BarLabelAnchor {
|
|
61
|
+
readonly label: string;
|
|
62
|
+
readonly x: number;
|
|
63
|
+
readonly y: number;
|
|
64
|
+
readonly textAnchor: 'start' | 'middle' | 'end';
|
|
65
|
+
}
|
|
66
|
+
export interface BarValueTick {
|
|
67
|
+
readonly value: number;
|
|
68
|
+
readonly x: number;
|
|
69
|
+
readonly y: number;
|
|
70
|
+
readonly text: string;
|
|
71
|
+
}
|
|
72
|
+
export interface BarGridLine {
|
|
73
|
+
readonly x1: number;
|
|
74
|
+
readonly y1: number;
|
|
75
|
+
readonly x2: number;
|
|
76
|
+
readonly y2: number;
|
|
77
|
+
}
|
|
78
|
+
export interface BarReferenceLineLayout extends BarGridLine {
|
|
79
|
+
readonly label?: string;
|
|
80
|
+
}
|
|
81
|
+
export interface BarChartLayout {
|
|
82
|
+
readonly bars: BarRect[];
|
|
83
|
+
readonly categoryLabels: BarLabelAnchor[];
|
|
84
|
+
readonly valueTicks: BarValueTick[];
|
|
85
|
+
readonly gridLines: BarGridLine[];
|
|
86
|
+
readonly referenceLines: readonly BarReferenceLineLayout[];
|
|
87
|
+
/** Dashed bridges from one waterfall step to the next, at the running total. */
|
|
88
|
+
readonly connectors: readonly BarGridLine[];
|
|
89
|
+
/** Value-axis coordinate of zero (y when vertical, x when horizontal). Bars grow from here. */
|
|
90
|
+
readonly baseline: number;
|
|
91
|
+
readonly plot: {
|
|
92
|
+
readonly x: number;
|
|
93
|
+
readonly y: number;
|
|
94
|
+
readonly width: number;
|
|
95
|
+
readonly height: number;
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
/** Share of each category slot left empty around the bars. MUI X `categoryGapRatio`. */
|
|
99
|
+
export declare const CATEGORY_GAP_RATIO = 0.36;
|
|
100
|
+
/** Gap between bars in one category, as a share of one bar's thickness. MUI X `barGapRatio`. */
|
|
101
|
+
export declare const BAR_GAP_RATIO = 0.5;
|
|
102
|
+
/** Primary bar share of the overlay slot. Comparison series are thinner and peek out. */
|
|
103
|
+
export declare const OVERLAY_PRIMARY_RATIO = 0.7;
|
|
104
|
+
export declare const OVERLAY_COMPARE_RATIO = 0.16;
|
|
105
|
+
export declare const OVERLAY_SPACING_RATIO = 0.08;
|
|
106
|
+
/** Pixel gap between stacked segments. `0` joins them with only the outer cap rounded. */
|
|
107
|
+
export declare const DEFAULT_STACK_GAP = 3;
|
|
108
|
+
export declare const DEFAULT_TICK_COUNT = 4;
|
|
109
|
+
/** Minimum pixels per category when scrolling. Keeps labels and bars readable. */
|
|
110
|
+
export declare const MIN_CATEGORY_BAND = 48;
|
|
111
|
+
export interface BarChartGutters {
|
|
112
|
+
readonly paddingLeft: number;
|
|
113
|
+
readonly paddingRight: number;
|
|
114
|
+
readonly paddingTop: number;
|
|
115
|
+
readonly paddingBottom: number;
|
|
116
|
+
}
|
|
117
|
+
/** Reads a finite number from `row[key]`. Anything else is a missing value. */
|
|
118
|
+
export declare function readBarValue(row: object, key: string): number | null;
|
|
119
|
+
interface BarGroupMember {
|
|
120
|
+
readonly item: BarGeometrySeries;
|
|
121
|
+
readonly seriesIndex: number;
|
|
122
|
+
}
|
|
123
|
+
export interface BarGroup {
|
|
124
|
+
/** `undefined` for a series drawn on its own (not stacked). */
|
|
125
|
+
readonly stackId: string | undefined;
|
|
126
|
+
readonly offset: BarStackOffset | null;
|
|
127
|
+
readonly members: readonly BarGroupMember[];
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* One slot per stack group, in first-appearance order. A series without `stack` gets its own
|
|
131
|
+
* slot. The first `stackOffset` set in a group applies to the whole group.
|
|
132
|
+
*/
|
|
133
|
+
export declare function resolveBarGroups(series: readonly BarGeometrySeries[]): readonly BarGroup[];
|
|
134
|
+
/**
|
|
135
|
+
* Value-axis domain and ticks. `min` / `max` pin the domain exactly; otherwise it rounds out to
|
|
136
|
+
* readable ticks. On an `expand` axis, `min` / `max` are 0–1 shares.
|
|
137
|
+
*/
|
|
138
|
+
export declare function resolveBarValueScale(values: readonly number[], axis: BarValueAxisConfig | undefined, expand: boolean): {
|
|
139
|
+
readonly min: number;
|
|
140
|
+
readonly max: number;
|
|
141
|
+
readonly ticks: readonly number[];
|
|
142
|
+
};
|
|
143
|
+
/** Default tick formatter when the chart passes no `formatTick`. */
|
|
144
|
+
export declare function formatBarValue(value: number): string;
|
|
145
|
+
export declare function resolveCategoryLabelPosition(orientation: BarChartOrientation, position: BarChartCategoryLabelPosition | undefined): BarChartCategoryLabelPosition;
|
|
146
|
+
export declare function resolveBarChartGutters({ categories, hasNegative, orientation, barLabel, categoryLabelPosition, showTicks, overlay, }: {
|
|
147
|
+
readonly categories: readonly string[];
|
|
148
|
+
readonly hasNegative: boolean;
|
|
149
|
+
readonly orientation: BarChartOrientation;
|
|
150
|
+
readonly barLabel: boolean;
|
|
151
|
+
readonly categoryLabelPosition?: BarChartCategoryLabelPosition;
|
|
152
|
+
readonly showTicks?: boolean;
|
|
153
|
+
readonly overlay?: boolean;
|
|
154
|
+
}): BarChartGutters;
|
|
155
|
+
/**
|
|
156
|
+
* Gutters from rows with a string `label` field. `LineChart` lays out with the same gutters.
|
|
157
|
+
*/
|
|
158
|
+
export declare function barChartGutters(data: readonly object[], orientation: BarChartOrientation, barLabel: boolean, categoryLabelPosition?: BarChartCategoryLabelPosition, showTicks?: boolean, overlay?: boolean): BarChartGutters;
|
|
159
|
+
/**
|
|
160
|
+
* Viewport is the visible box (screen or parent). Content grows when there are
|
|
161
|
+
* too many categories to keep a readable band (`scrollable` / `visiblePoints`).
|
|
162
|
+
*/
|
|
163
|
+
export declare function resolveBarChartContentSize({ viewportWidth, viewportHeight, categoryCount, orientation, gutters, scrollable, visiblePoints, }: {
|
|
164
|
+
readonly viewportWidth: number;
|
|
165
|
+
readonly viewportHeight: number;
|
|
166
|
+
readonly categoryCount: number;
|
|
167
|
+
readonly orientation: BarChartOrientation;
|
|
168
|
+
readonly gutters: BarChartGutters;
|
|
169
|
+
readonly scrollable: boolean;
|
|
170
|
+
readonly visiblePoints?: number;
|
|
171
|
+
}): {
|
|
172
|
+
readonly width: number;
|
|
173
|
+
readonly height: number;
|
|
174
|
+
};
|
|
175
|
+
export type BarShape = Pick<BarRect, 'x' | 'y' | 'width' | 'height' | 'rounded' | 'value' | 'roundAll'>;
|
|
176
|
+
export declare function barPath(bar: BarShape, orientation: BarChartOrientation, radius: number): string;
|
|
177
|
+
/** True when every stack group uses `expand`, so the value axis is a 0–1 share axis. */
|
|
178
|
+
export declare function isExpandAxis(kind: BarChartKind, groups: readonly BarGroup[]): boolean;
|
|
179
|
+
export declare function layoutBarChart({ dataset, categories, series, kind, waterfallTotalKey, width, height, orientation, barLabel, categoryLabelPosition, showTicks, referenceLines, valueAxis, formatTick, stackGap, categoryGapRatio, barGapRatio, showCategoryLabel, }: {
|
|
180
|
+
readonly dataset: readonly object[];
|
|
181
|
+
/** One name per row, from the category axis. Defaults to the row index. */
|
|
182
|
+
readonly categories?: readonly string[];
|
|
183
|
+
readonly series: readonly BarGeometrySeries[];
|
|
184
|
+
readonly kind?: BarChartKind;
|
|
185
|
+
/** Waterfall: row key whose `true` value marks a total bar. */
|
|
186
|
+
readonly waterfallTotalKey?: string;
|
|
187
|
+
readonly width: number;
|
|
188
|
+
readonly height: number;
|
|
189
|
+
readonly orientation: BarChartOrientation;
|
|
190
|
+
readonly barLabel: boolean;
|
|
191
|
+
readonly categoryLabelPosition?: BarChartCategoryLabelPosition;
|
|
192
|
+
readonly showTicks?: boolean;
|
|
193
|
+
readonly referenceLines?: readonly BarChartReferenceLine[];
|
|
194
|
+
readonly valueAxis?: BarValueAxisConfig;
|
|
195
|
+
/** Tick text. Receives a 0–1 share on an `expand` axis. */
|
|
196
|
+
readonly formatTick?: (value: number) => string;
|
|
197
|
+
readonly stackGap?: number;
|
|
198
|
+
readonly categoryGapRatio?: number;
|
|
199
|
+
readonly barGapRatio?: number;
|
|
200
|
+
/** Keeps the category name at `index` when it returns `true`. Others draw no text. */
|
|
201
|
+
readonly showCategoryLabel?: (index: number) => boolean;
|
|
202
|
+
}): BarChartLayout;
|
|
203
|
+
export declare function overlayDelta(bars: readonly BarRect[], index: number): number | null;
|
|
204
|
+
/** Waterfall steps read as signed changes; totals read as the running total. */
|
|
205
|
+
export declare function formatWaterfallBarValue(bar: Pick<BarRect, 'value' | 'waterfallRole'>, formatValue: (value: number) => string): string;
|
|
206
|
+
export declare function waterfallValueAnchor(bar: BarRect, orientation: BarChartOrientation): {
|
|
207
|
+
readonly x: number;
|
|
208
|
+
readonly y: number;
|
|
209
|
+
readonly textAnchor: 'start' | 'middle' | 'end';
|
|
210
|
+
};
|
|
211
|
+
export declare function barValueAnchor(bar: BarRect, orientation: BarChartOrientation): {
|
|
212
|
+
readonly x: number;
|
|
213
|
+
readonly y: number;
|
|
214
|
+
readonly textAnchor: 'start' | 'middle' | 'end';
|
|
215
|
+
};
|
|
216
|
+
export interface BarStackTotalAnchor {
|
|
217
|
+
readonly key: string;
|
|
218
|
+
readonly index: number;
|
|
219
|
+
readonly x: number;
|
|
220
|
+
readonly y: number;
|
|
221
|
+
readonly textAnchor: 'start' | 'middle' | 'end';
|
|
222
|
+
/** Sum of the stack's plotted values (a 0–100 share total when `expand`). */
|
|
223
|
+
readonly total: number;
|
|
224
|
+
readonly expand: boolean;
|
|
225
|
+
/** Series of the outer segment. Its formatter labels the total. */
|
|
226
|
+
readonly seriesId: string;
|
|
227
|
+
}
|
|
228
|
+
/** One total label per stack in each category. */
|
|
229
|
+
export declare function stackedTotalAnchors(bars: readonly BarRect[], orientation: BarChartOrientation): readonly BarStackTotalAnchor[];
|
|
230
|
+
/**
|
|
231
|
+
* Next bar for keyboard movement. Along the category axis keeps the same series; along the
|
|
232
|
+
* value axis steps series inside the category. Home / End jump the category axis.
|
|
233
|
+
*/
|
|
234
|
+
export declare function barKeyboardNeighbor(bars: readonly Pick<BarRect, 'index' | 'seriesIndex'>[], from: number, key: string, orientation: BarChartOrientation): number | null;
|
|
235
|
+
export {};
|
|
236
|
+
//# sourceMappingURL=geometry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"geometry.d.ts","sourceRoot":"","sources":["../../../../src/components/BarChart/geometry.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,mBAAmB,GAAG,UAAU,GAAG,YAAY,CAAC;AAC5D;;;;GAIG;AACH,MAAM,MAAM,6BAA6B,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;AAEzF;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG,WAAW,GAAG,MAAM,GAAG,QAAQ,CAAC;AAE7D,qGAAqG;AACrG,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,SAAS,GAAG,WAAW,CAAC;AAE5D,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,UAAU,GAAG,UAAU,CAAC;AAEjE,kEAAkE;AAClE,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,KAAK,E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