@bridge-ui/vue 0.18.0 → 0.19.0

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.
Files changed (69) hide show
  1. package/ai/skills/bridge-ui-components/SKILL.md +35 -34
  2. package/ai/skills/bridge-ui-setup/SKILL.md +1 -1
  3. package/dist/Components/ChartBar/ChartBar.vue_vue_type_script_setup_true_lang.js +5 -0
  4. package/dist/Components/ChartBar/chartBar.types.d.ts +11 -1
  5. package/dist/Components/ChartBar/index.d.ts +1 -1
  6. package/dist/Components/ChartBarSeries/ChartBarSeries.vue_vue_type_script_setup_true_lang.js +4 -1
  7. package/dist/Components/ChartBarSeries/chartBarSeries.types.d.ts +24 -2
  8. package/dist/Components/ChartBarSeries/composables/useChartBarSeries.js +3 -0
  9. package/dist/Components/ChartBarSeries/index.d.ts +1 -0
  10. package/dist/Components/ChartLine/ChartLine.vue_vue_type_script_setup_true_lang.js +1 -0
  11. package/dist/Components/ChartLine/chartLine.types.d.ts +7 -0
  12. package/dist/Components/ChartLineSeries/ChartLineSeries.vue_vue_type_script_setup_true_lang.js +3 -0
  13. package/dist/Components/ChartLineSeries/chartLineSeries.types.d.ts +23 -2
  14. package/dist/Components/ChartLineSeries/composables/useChartLineSeries.js +3 -0
  15. package/dist/Components/ChartLineSeries/index.d.ts +1 -0
  16. package/dist/Components/ChartPie/ChartPie.vue_vue_type_script_setup_true_lang.js +3 -0
  17. package/dist/Components/ChartPie/chartPie.types.d.ts +20 -1
  18. package/dist/Components/ChartPie/composables/useChartPie.d.ts +1 -1
  19. package/dist/Components/ChartPie/composables/useChartPie.js +35 -25
  20. package/dist/Components/ChartScatter/composables/useChartScatter.js +61 -56
  21. package/dist/Components/ChartScatterSeries/ChartScatterSeries.vue_vue_type_script_setup_true_lang.js +1 -0
  22. package/dist/Components/ChartScatterSeries/chartScatterSeries.types.d.ts +8 -1
  23. package/dist/Components/ChartScatterSeries/composables/useChartScatterSeries.js +2 -1
  24. package/dist/Components/ChartScatterSeries/index.d.ts +1 -0
  25. package/dist/Components/ChartTooltip/ChartTooltip.vue_vue_type_script_setup_true_lang.js +11 -7
  26. package/dist/Components/ChartTooltip/chartTooltip.types.d.ts +4 -0
  27. package/dist/Components/ChartTooltip/composables/useChartTooltip.d.ts +1 -0
  28. package/dist/Components/ChartTooltip/composables/useChartTooltip.js +4 -0
  29. package/dist/Components/Heading/Heading.js +5 -0
  30. package/dist/Components/Heading/Heading.vue.d.ts +11 -0
  31. package/dist/Components/Heading/Heading.vue_vue_type_script_setup_true_lang.js +29 -0
  32. package/dist/Components/Heading/composables/useHeading.d.ts +10 -0
  33. package/dist/Components/Heading/composables/useHeading.js +56 -0
  34. package/dist/Components/Heading/heading.types.d.ts +56 -0
  35. package/dist/Components/Heading/index.d.ts +3 -0
  36. package/dist/Components/Heading/index.js +3 -0
  37. package/dist/Components/Text/Text.js +5 -0
  38. package/dist/Components/Text/Text.vue.d.ts +11 -0
  39. package/dist/Components/Text/Text.vue_vue_type_script_setup_true_lang.js +33 -0
  40. package/dist/Components/Text/composables/useText.d.ts +9 -0
  41. package/dist/Components/Text/composables/useText.js +56 -0
  42. package/dist/Components/Text/index.d.ts +3 -0
  43. package/dist/Components/Text/index.js +3 -0
  44. package/dist/Components/Text/text.types.d.ts +76 -0
  45. package/dist/Utils/Charts/chart.types.d.ts +17 -0
  46. package/dist/Utils/Charts/chartInjectionKey.d.ts +2 -2
  47. package/dist/Utils/Charts/echarts/bar.js +11 -10
  48. package/dist/Utils/Charts/echarts/cartesian.d.ts +2 -2
  49. package/dist/Utils/Charts/echarts/cartesian.js +139 -104
  50. package/dist/Utils/Charts/echarts/line.js +9 -8
  51. package/dist/Utils/Charts/echarts/pie.js +3 -2
  52. package/dist/Utils/Charts/echarts/scatter.js +58 -49
  53. package/dist/Utils/Charts/index.d.ts +1 -1
  54. package/dist/Utils/Charts/useChartCartesian.d.ts +4 -2
  55. package/dist/Utils/Charts/useChartCartesian.js +90 -76
  56. package/dist/augments.d.ts +10 -0
  57. package/dist/index.d.ts +4 -0
  58. package/dist/index.js +90 -86
  59. package/docs/README.md +2 -0
  60. package/docs/components/BridgeUIProvider.md +1 -1
  61. package/docs/components/Card.md +15 -0
  62. package/docs/components/Chart.md +17 -10
  63. package/docs/components/ChartBar.md +70 -17
  64. package/docs/components/ChartLine.md +57 -16
  65. package/docs/components/ChartPie.md +33 -10
  66. package/docs/components/ChartScatter.md +25 -7
  67. package/docs/components/Heading.md +85 -0
  68. package/docs/components/Text.md +118 -0
  69. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -103,89 +103,93 @@ import { useFileUpload as rt } from "./Components/FileUpload/composables/useFile
103
103
  import { useFileUploadItem as it } from "./Components/FileUploadItem/composables/useFileUploadItem.js";
104
104
  import at from "./Components/FileUploadItem/FileUploadItem.js";
105
105
  import ot from "./Components/FileUpload/FileUpload.js";
106
- import { useLink as st } from "./Components/Link/composables/useLink.js";
107
- import ct from "./Components/Link/Link.js";
108
- import { useNumberField as lt } from "./Components/NumberField/composables/useNumberField.js";
109
- import ut from "./Components/NumberField/NumberField.js";
110
- import { useOtpField as dt } from "./Components/OtpField/composables/useOtpField.js";
111
- import ft from "./Components/OtpField/OtpField.js";
112
- import { usePagination as pt } from "./Components/Pagination/composables/usePagination.js";
113
- import mt from "./Components/Pagination/Pagination.js";
114
- import { usePasswordField as ht } from "./Components/PasswordField/composables/usePasswordField.js";
115
- import gt from "./Components/PasswordField/PasswordField.js";
116
- import { useRadio as _t } from "./Components/Radio/composables/useRadio.js";
117
- import vt from "./Components/Radio/Radio.js";
118
- import yt from "./Provider/BridgeUIProvider.js";
119
- import { createBridgeUI as bt } from "./Provider/createBridgeUI.js";
120
- import { useRating as xt } from "./Components/Rating/composables/useRating.js";
121
- import St from "./Components/Rating/Rating.js";
122
- import { RESIZABLE_INJECTION_KEY as Ct } from "./Components/Resizable/resizableInjectionKey.js";
123
- import { useResizable as wt } from "./Components/Resizable/composables/useResizable.js";
124
- import Tt from "./Components/Resizable/Resizable.js";
125
- import { useResizableHandle as Et } from "./Components/ResizableHandle/composables/useResizableHandle.js";
126
- import Dt from "./Components/ResizableHandle/ResizableHandle.js";
127
- import { useResizablePanel as Ot } from "./Components/ResizablePanel/composables/useResizablePanel.js";
128
- import kt from "./Components/ResizablePanel/ResizablePanel.js";
129
- import At from "./Components/Select/Select.js";
130
- import jt from "./Components/Select/SelectOption.js";
131
- import { useSidebar as Mt } from "./Components/Sidebar/composables/useSidebar.js";
132
- import { useSidebarInset as Nt } from "./Components/Sidebar/composables/useSidebarInset.js";
133
- import { useSidebarList as Pt } from "./Components/Sidebar/composables/useSidebarList.js";
134
- import { useSidebarListItem as Ft } from "./Components/Sidebar/composables/useSidebarListItem.js";
135
- import { useSidebarProvider as It } from "./Components/Sidebar/composables/useSidebarProvider.js";
136
- import { useSidebarShell as Lt } from "./Components/Sidebar/composables/useSidebarShell.js";
137
- import { useSidebarTrigger as Rt } from "./Components/Sidebar/composables/useSidebarTrigger.js";
138
- import zt from "./Components/Sidebar/Sidebar.js";
139
- import Bt from "./Components/Sidebar/SidebarInset.js";
140
- import Vt from "./Components/Sidebar/SidebarList.js";
141
- import { useTooltip as Ht } from "./Components/Tooltip/composables/useTooltip.js";
142
- import Ut from "./Components/Tooltip/Tooltip.js";
143
- import Wt from "./Components/Sidebar/SidebarListItem.js";
144
- import Gt from "./Components/Sidebar/SidebarProvider.js";
145
- import Kt from "./Components/Sidebar/SidebarTrigger.js";
146
- import { useSkeleton as qt } from "./Components/Skeleton/composables/useSkeleton.js";
147
- import Jt from "./Components/Skeleton/Skeleton.js";
148
- import { useSlider as Yt } from "./Components/Slider/composables/useSlider.js";
149
- import Xt from "./Components/Slider/Slider.js";
150
- import { useSnackbar as Zt } from "./Components/Snackbar/composables/useSnackbar.js";
151
- import Qt from "./Components/Snackbar/Snackbar.js";
152
- import { useSpinner as $t } from "./Components/Spinner/composables/useSpinner.js";
153
- import en from "./Components/Spinner/Spinner.js";
154
- import { useStep as tn } from "./Components/Step/composables/useStep.js";
155
- import nn from "./Components/Step/Step.js";
156
- import { useStepper as rn } from "./Components/Stepper/composables/useStepper.js";
157
- import an from "./Components/Stepper/Stepper.js";
158
- import { useSwitch as on } from "./Components/Switch/composables/useSwitch.js";
159
- import sn from "./Components/Switch/Switch.js";
160
- import { TABS_INJECTION_KEY as cn } from "./Components/Tabs/tabsInjectionKey.js";
161
- import { useTab as ln } from "./Components/Tab/composables/useTab.js";
162
- import un from "./Components/Tab/Tab.js";
163
- import { useTabItem as dn } from "./Components/TabItem/composables/useTabItem.js";
164
- import fn from "./Components/TabItem/TabItem.js";
165
- import { useTabList as pn } from "./Components/TabList/composables/useTabList.js";
166
- import mn from "./Components/TabList/TabList.js";
167
- import { useTabPanel as hn } from "./Components/TabPanel/composables/useTabPanel.js";
168
- import gn from "./Components/TabPanel/TabPanel.js";
169
- import { useTabs as _n } from "./Components/Tabs/composables/useTabs.js";
170
- import vn from "./Components/Tabs/Tabs.js";
171
- import { useTextarea as yn } from "./Components/Textarea/composables/useTextarea.js";
172
- import bn from "./Components/Textarea/Textarea.js";
173
- import { useTextField as xn } from "./Components/TextField/composables/useTextField.js";
174
- import Sn from "./Components/TextField/TextField.js";
175
- import { useTimeField as Cn } from "./Components/TimeField/composables/useTimeField.js";
176
- import { useTimePicker as wn } from "./Components/TimePicker/composables/useTimePicker.js";
177
- import Tn from "./Components/TimePicker/TimePicker.js";
178
- import En from "./Components/TimeField/TimeField.js";
179
- import { useTimeRangeField as Dn } from "./Components/TimeRangeField/composables/useTimeRangeField.js";
180
- import { useTimeRangePicker as On } from "./Components/TimeRangePicker/composables/useTimeRangePicker.js";
181
- import kn from "./Components/TimeRangePicker/TimeRangePicker.js";
182
- import An from "./Components/TimeRangeField/TimeRangeField.js";
183
- import { TOGGLE_GROUP_INJECTION_KEY as jn } from "./Components/ToggleGroup/toggleGroupInjectionKey.js";
184
- import { useToggleGroup as Mn } from "./Components/ToggleGroup/composables/useToggleGroup.js";
185
- import Nn from "./Components/ToggleGroup/ToggleGroup.js";
186
- import { useToggleItem as Pn } from "./Components/ToggleItem/composables/useToggleItem.js";
187
- import Fn from "./Components/ToggleItem/ToggleItem.js";
188
- import { SEMANTIC_ICON_NAMES as In, interpolateMessage as Ln, resolveMessage as Rn, selectPluralMessage as zn } from "@bridge-ui/core/Adapters";
189
- import { cn as Bn } from "@bridge-ui/core/Utils";
190
- import { BRIDGE_UI_DEFAULT_GLOBAL as Vn, mergeBridgeUIComponents as Hn, mergeBridgeUIGlobal as Un, resolveBridgeUIOptions as Wn } from "@bridge-ui/core/Config";
191
- export { c as ACCORDION_INJECTION_KEY, p as Accordion, g as AccordionItem, x as ActionFooter, C as Alert, Q as Autocomplete, $ as AutocompleteOption, ee as Avatar, Vn as BRIDGE_UI_DEFAULT_GLOBAL, v as BUTTON_GROUP_INJECTION_KEY, ne as Badge, re as BaseField, ce as Breadcrumb, se as BreadcrumbItem, yt as BridgeUIProvider, b as Button, ue as ButtonGroup, ve as Calendar, pe as CalendarDate, he as CalendarMonth, Se as CalendarRange, _e as CalendarYear, we as Card, Ee as Carousel, Oe as CarouselSlide, Me as Checkbox, M as Chip, Ie as ColorField, Fe as ColorPicker, Be as DateField, ze as DatePicker, We as DateRangeField, Ue as DateRangePicker, Xe as DateTimeField, Ye as DateTimePicker, et as DateTimeRangeField, $e as DateTimeRangePicker, xe as Divider, z as Drawer, nt as EmptyState, W as FieldOverlay, ot as FileUpload, at as FileUploadItem, Ae as FormControl, F as FormField, h as Icon, P as Label, ct as Link, K as List, q as ListItem, J as ListSection, Z as Listbox, V as Menu, U as Modal, ut as NumberField, ft as OtpField, mt as Pagination, gt as PasswordField, X as Progress, Ct as RESIZABLE_INJECTION_KEY, vt as Radio, St as Rating, Tt as Resizable, Dt as ResizableHandle, kt as ResizablePanel, In as SEMANTIC_ICON_NAMES, At as Select, jt as SelectOption, zt as Sidebar, Bt as SidebarInset, Vt as SidebarList, Wt as SidebarListItem, Gt as SidebarProvider, Kt as SidebarTrigger, Jt as Skeleton, Xt as Slider, Qt as Snackbar, en as Spinner, nn as Step, an as Stepper, sn as Switch, cn as TABS_INJECTION_KEY, jn as TOGGLE_GROUP_INJECTION_KEY, un as Tab, fn as TabItem, mn as TabList, gn as TabPanel, vn as Tabs, Sn as TextField, bn as Textarea, En as TimeField, Je as TimePanel, Tn as TimePicker, An as TimeRangeField, kn as TimeRangePicker, Nn as ToggleGroup, Fn as ToggleItem, Ut as Tooltip, Bn as cn, bt as createBridgeUI, T as findFirstEnabledOptionIndex, E as findLastEnabledOptionIndex, D as getListboxActiveDescendantId, O as getListboxOptionId, Ln as interpolateMessage, Hn as mergeBridgeUIComponents, Un as mergeBridgeUIGlobal, k as moveListboxHighlight, Wn as resolveBridgeUIOptions, Rn as resolveMessage, zn as selectPluralMessage, t as setDateAdapterForTests, r as setI18nAdapterForTests, o as setIconAdapterForTests, f as useAccordion, m as useAccordionItem, _ as useActionFooter, S as useAlert, te as useBadge, ie as useBaseField, ae as useBreadcrumb, oe as useBreadcrumbItem, l as useBreakpoint, e as useBridgeUI, u as useBridgeUIComponent, d as useBridgeUIMergedRegistryClasses, y as useButton, le as useButtonGroup, de as useCalendar, fe as useCalendarDate, me as useCalendarMonth, ye as useCalendarRange, ge as useCalendarYear, Ce as useCard, Te as useCarousel, De as useCarouselSlide, je as useCheckbox, j as useChip, Ne as useColorField, Pe as useColorPicker, n as useDateAdapter, Le as useDateField, Re as useDatePicker, Ve as useDateRangeField, He as useDateRangePicker, Ge as useDateTimeField, Ke as useDateTimePicker, Ze as useDateTimeRangeField, Qe as useDateTimeRangePicker, be as useDivider, R as useDrawer, tt as useEmptyState, L as useFieldOverlay, rt as useFileUpload, it as useFileUploadItem, ke as useFormControl, w as useFormField, i as useI18nAdapter, s as useIconAdapter, N as useLabel, st as useLink, G as useList, I as useListbox, A as useListboxNavigation, B as useMenu, H as useModal, lt as useNumberField, dt as useOtpField, pt as usePagination, ht as usePasswordField, Y as useProgress, _t as useRadio, xt as useRating, wt as useResizable, Et as useResizableHandle, Ot as useResizablePanel, a as useResolveMessage, Mt as useSidebar, Nt as useSidebarInset, Pt as useSidebarList, Ft as useSidebarListItem, It as useSidebarProvider, Lt as useSidebarShell, Rt as useSidebarTrigger, qt as useSkeleton, Yt as useSlider, Zt as useSnackbar, $t as useSpinner, tn as useStep, rn as useStepper, on as useSwitch, ln as useTab, dn as useTabItem, pn as useTabList, hn as useTabPanel, _n as useTabs, xn as useTextField, yn as useTextarea, Cn as useTimeField, qe as useTimePanel, wn as useTimePicker, Dn as useTimeRangeField, On as useTimeRangePicker, Mn as useToggleGroup, Pn as useToggleItem, Ht as useTooltip };
106
+ import { useHeading as st } from "./Components/Heading/composables/useHeading.js";
107
+ import ct from "./Components/Heading/Heading.js";
108
+ import { useLink as lt } from "./Components/Link/composables/useLink.js";
109
+ import ut from "./Components/Link/Link.js";
110
+ import { useNumberField as dt } from "./Components/NumberField/composables/useNumberField.js";
111
+ import ft from "./Components/NumberField/NumberField.js";
112
+ import { useOtpField as pt } from "./Components/OtpField/composables/useOtpField.js";
113
+ import mt from "./Components/OtpField/OtpField.js";
114
+ import { usePagination as ht } from "./Components/Pagination/composables/usePagination.js";
115
+ import gt from "./Components/Pagination/Pagination.js";
116
+ import { usePasswordField as _t } from "./Components/PasswordField/composables/usePasswordField.js";
117
+ import vt from "./Components/PasswordField/PasswordField.js";
118
+ import { useRadio as yt } from "./Components/Radio/composables/useRadio.js";
119
+ import bt from "./Components/Radio/Radio.js";
120
+ import xt from "./Provider/BridgeUIProvider.js";
121
+ import { createBridgeUI as St } from "./Provider/createBridgeUI.js";
122
+ import { useRating as Ct } from "./Components/Rating/composables/useRating.js";
123
+ import wt from "./Components/Rating/Rating.js";
124
+ import { RESIZABLE_INJECTION_KEY as Tt } from "./Components/Resizable/resizableInjectionKey.js";
125
+ import { useResizable as Et } from "./Components/Resizable/composables/useResizable.js";
126
+ import Dt from "./Components/Resizable/Resizable.js";
127
+ import { useResizableHandle as Ot } from "./Components/ResizableHandle/composables/useResizableHandle.js";
128
+ import kt from "./Components/ResizableHandle/ResizableHandle.js";
129
+ import { useResizablePanel as At } from "./Components/ResizablePanel/composables/useResizablePanel.js";
130
+ import jt from "./Components/ResizablePanel/ResizablePanel.js";
131
+ import Mt from "./Components/Select/Select.js";
132
+ import Nt from "./Components/Select/SelectOption.js";
133
+ import { useSidebar as Pt } from "./Components/Sidebar/composables/useSidebar.js";
134
+ import { useSidebarInset as Ft } from "./Components/Sidebar/composables/useSidebarInset.js";
135
+ import { useSidebarList as It } from "./Components/Sidebar/composables/useSidebarList.js";
136
+ import { useSidebarListItem as Lt } from "./Components/Sidebar/composables/useSidebarListItem.js";
137
+ import { useSidebarProvider as Rt } from "./Components/Sidebar/composables/useSidebarProvider.js";
138
+ import { useSidebarShell as zt } from "./Components/Sidebar/composables/useSidebarShell.js";
139
+ import { useSidebarTrigger as Bt } from "./Components/Sidebar/composables/useSidebarTrigger.js";
140
+ import Vt from "./Components/Sidebar/Sidebar.js";
141
+ import Ht from "./Components/Sidebar/SidebarInset.js";
142
+ import Ut from "./Components/Sidebar/SidebarList.js";
143
+ import { useTooltip as Wt } from "./Components/Tooltip/composables/useTooltip.js";
144
+ import Gt from "./Components/Tooltip/Tooltip.js";
145
+ import Kt from "./Components/Sidebar/SidebarListItem.js";
146
+ import qt from "./Components/Sidebar/SidebarProvider.js";
147
+ import Jt from "./Components/Sidebar/SidebarTrigger.js";
148
+ import { useSkeleton as Yt } from "./Components/Skeleton/composables/useSkeleton.js";
149
+ import Xt from "./Components/Skeleton/Skeleton.js";
150
+ import { useSlider as Zt } from "./Components/Slider/composables/useSlider.js";
151
+ import Qt from "./Components/Slider/Slider.js";
152
+ import { useSnackbar as $t } from "./Components/Snackbar/composables/useSnackbar.js";
153
+ import en from "./Components/Snackbar/Snackbar.js";
154
+ import { useSpinner as tn } from "./Components/Spinner/composables/useSpinner.js";
155
+ import nn from "./Components/Spinner/Spinner.js";
156
+ import { useStep as rn } from "./Components/Step/composables/useStep.js";
157
+ import an from "./Components/Step/Step.js";
158
+ import { useStepper as on } from "./Components/Stepper/composables/useStepper.js";
159
+ import sn from "./Components/Stepper/Stepper.js";
160
+ import { useSwitch as cn } from "./Components/Switch/composables/useSwitch.js";
161
+ import ln from "./Components/Switch/Switch.js";
162
+ import { TABS_INJECTION_KEY as un } from "./Components/Tabs/tabsInjectionKey.js";
163
+ import { useTab as dn } from "./Components/Tab/composables/useTab.js";
164
+ import fn from "./Components/Tab/Tab.js";
165
+ import { useTabItem as pn } from "./Components/TabItem/composables/useTabItem.js";
166
+ import mn from "./Components/TabItem/TabItem.js";
167
+ import { useTabList as hn } from "./Components/TabList/composables/useTabList.js";
168
+ import gn from "./Components/TabList/TabList.js";
169
+ import { useTabPanel as _n } from "./Components/TabPanel/composables/useTabPanel.js";
170
+ import vn from "./Components/TabPanel/TabPanel.js";
171
+ import { useTabs as yn } from "./Components/Tabs/composables/useTabs.js";
172
+ import bn from "./Components/Tabs/Tabs.js";
173
+ import { useText as xn } from "./Components/Text/composables/useText.js";
174
+ import Sn from "./Components/Text/Text.js";
175
+ import { useTextarea as Cn } from "./Components/Textarea/composables/useTextarea.js";
176
+ import wn from "./Components/Textarea/Textarea.js";
177
+ import { useTextField as Tn } from "./Components/TextField/composables/useTextField.js";
178
+ import En from "./Components/TextField/TextField.js";
179
+ import { useTimeField as Dn } from "./Components/TimeField/composables/useTimeField.js";
180
+ import { useTimePicker as On } from "./Components/TimePicker/composables/useTimePicker.js";
181
+ import kn from "./Components/TimePicker/TimePicker.js";
182
+ import An from "./Components/TimeField/TimeField.js";
183
+ import { useTimeRangeField as jn } from "./Components/TimeRangeField/composables/useTimeRangeField.js";
184
+ import { useTimeRangePicker as Mn } from "./Components/TimeRangePicker/composables/useTimeRangePicker.js";
185
+ import Nn from "./Components/TimeRangePicker/TimeRangePicker.js";
186
+ import Pn from "./Components/TimeRangeField/TimeRangeField.js";
187
+ import { TOGGLE_GROUP_INJECTION_KEY as Fn } from "./Components/ToggleGroup/toggleGroupInjectionKey.js";
188
+ import { useToggleGroup as In } from "./Components/ToggleGroup/composables/useToggleGroup.js";
189
+ import Ln from "./Components/ToggleGroup/ToggleGroup.js";
190
+ import { useToggleItem as Rn } from "./Components/ToggleItem/composables/useToggleItem.js";
191
+ import zn from "./Components/ToggleItem/ToggleItem.js";
192
+ import { SEMANTIC_ICON_NAMES as Bn, interpolateMessage as Vn, resolveMessage as Hn, selectPluralMessage as Un } from "@bridge-ui/core/Adapters";
193
+ import { cn as Wn } from "@bridge-ui/core/Utils";
194
+ import { BRIDGE_UI_DEFAULT_GLOBAL as Gn, mergeBridgeUIComponents as Kn, mergeBridgeUIGlobal as qn, resolveBridgeUIOptions as Jn } from "@bridge-ui/core/Config";
195
+ export { c as ACCORDION_INJECTION_KEY, p as Accordion, g as AccordionItem, x as ActionFooter, C as Alert, Q as Autocomplete, $ as AutocompleteOption, ee as Avatar, Gn as BRIDGE_UI_DEFAULT_GLOBAL, v as BUTTON_GROUP_INJECTION_KEY, ne as Badge, re as BaseField, ce as Breadcrumb, se as BreadcrumbItem, xt as BridgeUIProvider, b as Button, ue as ButtonGroup, ve as Calendar, pe as CalendarDate, he as CalendarMonth, Se as CalendarRange, _e as CalendarYear, we as Card, Ee as Carousel, Oe as CarouselSlide, Me as Checkbox, M as Chip, Ie as ColorField, Fe as ColorPicker, Be as DateField, ze as DatePicker, We as DateRangeField, Ue as DateRangePicker, Xe as DateTimeField, Ye as DateTimePicker, et as DateTimeRangeField, $e as DateTimeRangePicker, xe as Divider, z as Drawer, nt as EmptyState, W as FieldOverlay, ot as FileUpload, at as FileUploadItem, Ae as FormControl, F as FormField, ct as Heading, h as Icon, P as Label, ut as Link, K as List, q as ListItem, J as ListSection, Z as Listbox, V as Menu, U as Modal, ft as NumberField, mt as OtpField, gt as Pagination, vt as PasswordField, X as Progress, Tt as RESIZABLE_INJECTION_KEY, bt as Radio, wt as Rating, Dt as Resizable, kt as ResizableHandle, jt as ResizablePanel, Bn as SEMANTIC_ICON_NAMES, Mt as Select, Nt as SelectOption, Vt as Sidebar, Ht as SidebarInset, Ut as SidebarList, Kt as SidebarListItem, qt as SidebarProvider, Jt as SidebarTrigger, Xt as Skeleton, Qt as Slider, en as Snackbar, nn as Spinner, an as Step, sn as Stepper, ln as Switch, un as TABS_INJECTION_KEY, Fn as TOGGLE_GROUP_INJECTION_KEY, fn as Tab, mn as TabItem, gn as TabList, vn as TabPanel, bn as Tabs, Sn as Text, En as TextField, wn as Textarea, An as TimeField, Je as TimePanel, kn as TimePicker, Pn as TimeRangeField, Nn as TimeRangePicker, Ln as ToggleGroup, zn as ToggleItem, Gt as Tooltip, Wn as cn, St as createBridgeUI, T as findFirstEnabledOptionIndex, E as findLastEnabledOptionIndex, D as getListboxActiveDescendantId, O as getListboxOptionId, Vn as interpolateMessage, Kn as mergeBridgeUIComponents, qn as mergeBridgeUIGlobal, k as moveListboxHighlight, Jn as resolveBridgeUIOptions, Hn as resolveMessage, Un as selectPluralMessage, t as setDateAdapterForTests, r as setI18nAdapterForTests, o as setIconAdapterForTests, f as useAccordion, m as useAccordionItem, _ as useActionFooter, S as useAlert, te as useBadge, ie as useBaseField, ae as useBreadcrumb, oe as useBreadcrumbItem, l as useBreakpoint, e as useBridgeUI, u as useBridgeUIComponent, d as useBridgeUIMergedRegistryClasses, y as useButton, le as useButtonGroup, de as useCalendar, fe as useCalendarDate, me as useCalendarMonth, ye as useCalendarRange, ge as useCalendarYear, Ce as useCard, Te as useCarousel, De as useCarouselSlide, je as useCheckbox, j as useChip, Ne as useColorField, Pe as useColorPicker, n as useDateAdapter, Le as useDateField, Re as useDatePicker, Ve as useDateRangeField, He as useDateRangePicker, Ge as useDateTimeField, Ke as useDateTimePicker, Ze as useDateTimeRangeField, Qe as useDateTimeRangePicker, be as useDivider, R as useDrawer, tt as useEmptyState, L as useFieldOverlay, rt as useFileUpload, it as useFileUploadItem, ke as useFormControl, w as useFormField, st as useHeading, i as useI18nAdapter, s as useIconAdapter, N as useLabel, lt as useLink, G as useList, I as useListbox, A as useListboxNavigation, B as useMenu, H as useModal, dt as useNumberField, pt as useOtpField, ht as usePagination, _t as usePasswordField, Y as useProgress, yt as useRadio, Ct as useRating, Et as useResizable, Ot as useResizableHandle, At as useResizablePanel, a as useResolveMessage, Pt as useSidebar, Ft as useSidebarInset, It as useSidebarList, Lt as useSidebarListItem, Rt as useSidebarProvider, zt as useSidebarShell, Bt as useSidebarTrigger, Yt as useSkeleton, Zt as useSlider, $t as useSnackbar, tn as useSpinner, rn as useStep, on as useStepper, cn as useSwitch, dn as useTab, pn as useTabItem, hn as useTabList, _n as useTabPanel, yn as useTabs, xn as useText, Tn as useTextField, Cn as useTextarea, Dn as useTimeField, qe as useTimePanel, On as useTimePicker, jn as useTimeRangeField, Mn as useTimeRangePicker, In as useToggleGroup, Rn as useToggleItem, Wt as useTooltip };
package/docs/README.md CHANGED
@@ -46,6 +46,7 @@ Component reference for **Vue**. This folder ships with the npm package.
46
46
  - [FileUpload](./components/FileUpload.md)
47
47
  - [FormControl](./components/FormControl.md)
48
48
  - [FormField](./components/FormField.md)
49
+ - [Heading](./components/Heading.md)
49
50
  - [I18n](./components/I18n.md)
50
51
  - [Icon](./components/Icon.md)
51
52
  - [Label](./components/Label.md)
@@ -72,6 +73,7 @@ Component reference for **Vue**. This folder ships with the npm package.
72
73
  - [Switch](./components/Switch.md)
73
74
  - [Table](./components/Table.md)
74
75
  - [Tabs](./components/Tabs.md)
76
+ - [Text](./components/Text.md)
75
77
  - [Textarea](./components/Textarea.md)
76
78
  - [TextField](./components/TextField.md)
77
79
  - [TimeField](./components/TimeField.md)
@@ -150,7 +150,7 @@ app.use(
150
150
 
151
151
  ### Default color
152
152
 
153
- Set `global.defaultColor` to replace the library default `color` (`primary`, `dark`, or `secondary`) on every colorable component: Button, ButtonGroup, Badge, Alert, Avatar, Link, Tabs, ToggleGroup, Snackbar, Progress, Spinner, Stepper, Pagination, Accordion, Calendar, ActionFooter, form fields, and pickers. Divider and Tooltip keep their neutral defaults.
153
+ Set `global.defaultColor` to replace the library default `color` (`primary`, `dark`, or `secondary`) on every colorable component: Button, ButtonGroup, Badge, Alert, Avatar, Link, Tabs, ToggleGroup, Snackbar, Progress, Spinner, Stepper, Pagination, Accordion, Calendar, ActionFooter, form fields, and pickers. Divider, Tooltip, Text, and Heading keep their neutral defaults.
154
154
 
155
155
  Use `"black"` for a monochrome UI. To rebrand `primary`, change the palette in CSS instead.
156
156
 
@@ -34,6 +34,21 @@ import { Card } from "@bridge-ui/vue/Components/Card";
34
34
  </Card>
35
35
  ```
36
36
 
37
+ ### Text color
38
+
39
+ Card content and the title inherit the surrounding text color (the base color from `theme.css` on `body`). For secondary text, use `Text` with `variant="muted"`.
40
+
41
+ ```vue
42
+ <Card title="Balance">
43
+ <Text numeric size="2xl" weight="semibold">
44
+ $9,300.00
45
+ </Text>
46
+ <Text size="xs" variant="muted">
47
+ Compared to last month
48
+ </Text>
49
+ </Card>
50
+ ```
51
+
37
52
  ### Borderless
38
53
 
39
54
  ```vue
@@ -13,10 +13,10 @@ Charts for dashboards and reports. Pick the root for the shape of your data; eve
13
13
  Shared parts:
14
14
 
15
15
  | Part | Line | Bar | Scatter | Pie | Funnel |
16
- | -------------- | :--: | :-: | :-----: | :-: | :----: |
17
- | `ChartLegend` | ✅ | ✅ | ✅ | ✅ | ✅ |
18
- | `ChartTooltip` | ✅ | ✅ | ✅ | ✅ | ✅ |
19
- | `ChartAxis` | ✅ | ✅ | ✅ | — | — |
16
+ | -------------- | ---- | --- | ------- | --- | ------ |
17
+ | `ChartLegend` | ✅ | ✅ | ✅ | ✅ | ✅ |
18
+ | `ChartTooltip` | ✅ | ✅ | ✅ | ✅ | ✅ |
19
+ | `ChartAxis` | ✅ | ✅ | ✅ | — | — |
20
20
 
21
21
  ## Import
22
22
 
@@ -94,6 +94,13 @@ Series and slices take palette colors in order. Override the palette on the root
94
94
 
95
95
  Token keys (`primary`, `info`, `success`, `warning`, `error`, `secondary`, `dark`, `black`) follow light and dark mode automatically.
96
96
 
97
+ Colors can also follow the data:
98
+
99
+ - `color-ranges` on `ChartLineSeries`, `ChartBarSeries`, and `ChartScatterSeries` recolors points, bars, or stretches of a line by value ([ChartLine](./ChartLine.md#color-by-value), [ChartBar](./ChartBar.md#color-by-value), [ChartScatter](./ChartScatter.md#color-by-range)).
100
+ - `category-colors` on `ChartBar` gives each category its own color, and `tone="muted"` lightens a series ([ChartBar](./ChartBar.md#category-colors)).
101
+
102
+ Color is never the only cue: range labels show in the tooltip, the data table, and the keyboard announcements.
103
+
97
104
  ### Loading and empty
98
105
 
99
106
  While `loading` is true, the plot stays visible behind a translucent overlay with a spinner, and the root gets `aria-busy`. Use the `loading` slot to replace the spinner.
@@ -204,11 +211,11 @@ Slots: `default` (series, `ChartAxis`, `ChartLegend`, `ChartTooltip`), `empty`,
204
211
 
205
212
  ## Props (`ChartTooltip`)
206
213
 
207
- | Prop | Type | Default | Description |
208
- | ---------------- | --------------------------- | ------- | --------------------------------------------------------------- |
209
- | `format-value` | `(value, item) => string` | — | Value formatter. |
210
- | `format-percent` | `(percent, item) => string` | — | Share formatter (pie, funnel). |
211
- | `classes` | `ChartTooltipClasses` | — | `root`, `title`, `item`, `swatch`, `label`, `value`, `percent`. |
212
- | `custom-props` | `ChartTooltipCustomProps` | — | Extra props for `root`. |
214
+ | Prop | Type | Default | Description |
215
+ | ---------------- | --------------------------- | ------- | ----------------------------------------------------------------------- |
216
+ | `format-value` | `(value, item) => string` | — | Value formatter. |
217
+ | `format-percent` | `(percent, item) => string` | — | Share formatter (pie, funnel). |
218
+ | `classes` | `ChartTooltipClasses` | — | `root`, `title`, `item`, `swatch`, `label`, `value`, `percent`, `note`. |
219
+ | `custom-props` | `ChartTooltipCustomProps` | — | Extra props for `root`. |
213
220
 
214
221
  Slot: `content` (`{ index, title, color, items }`) replaces the title and rows.
@@ -65,6 +65,55 @@ The `ChartBar` `stack` applies to bars only: a line stays on its own values (a t
65
65
 
66
66
  `ChartBar` loads the ECharts line series too, so bar + line charts need no extra import.
67
67
 
68
+ ### Category colors
69
+
70
+ `category-colors` gives each category its own bar color. Every bar series in a category shares that color; `tone="muted"` tells a comparison series apart with a lighter shade of the same color.
71
+
72
+ ```vue
73
+ <script setup lang="ts">
74
+ const tagColors = {
75
+ housing: "primary",
76
+ groceries: "success",
77
+ transport: "warning",
78
+ delivery: "#8b5cf6",
79
+ };
80
+ </script>
81
+
82
+ <template>
83
+ <ChartBar :categories="tags" :category-colors="tagColors">
84
+ <ChartBarSeries name="October" :data="october" />
85
+ <ChartBarSeries tone="muted" :data="average" name="6-month average" />
86
+ <ChartLegend />
87
+ <ChartTooltip />
88
+ </ChartBar>
89
+ </template>
90
+ ```
91
+
92
+ `category-colors` takes a record keyed by category label, an array in category order, or `true` (the bare `category-colors` attribute) to use the palette in category order. Categories without a color take the palette entry at their index.
93
+
94
+ With category colors the legend shows each series in a neutral color (muted series in a lighter shade), and the tooltip shows the bar colors. `ChartLineSeries` inside keep their own color.
95
+
96
+ `tone="muted"` also works without `category-colors`: it lightens the series color (a previous period next to the current one). Muted shades mix toward the background behind the chart, so they follow light and dark mode.
97
+
98
+ ### Color by value
99
+
100
+ `color-ranges` recolors single bars by value. A value in `[min, max)` takes the range color; bars outside every range keep the series color. Range labels show in the tooltip, the data table, and the keyboard announcements.
101
+
102
+ ```vue
103
+ <ChartBar :categories="months">
104
+ <ChartBarSeries
105
+ name="Spent"
106
+ :data="spent"
107
+ :color-ranges="[
108
+ { max: 1000, color: 'success', label: 'On budget' },
109
+ { min: 1000, color: 'error', label: 'Over budget' },
110
+ ]"
111
+ />
112
+ </ChartBar>
113
+ ```
114
+
115
+ With `color-by="category"`, `min` and `max` are category indices (both included) instead of values. Ranges win over `category-colors`.
116
+
68
117
  ### Negative values
69
118
 
70
119
  Bars round the end that points away from zero.
@@ -113,25 +162,29 @@ Dates as `categories` place bars by time. See [ChartLine](./ChartLine.md#time-ax
113
162
 
114
163
  Shared root props (`height`, `palette`, `loading`, `summary`, …) are listed in [Chart](./Chart.md#props-every-root).
115
164
 
116
- | Prop | Type | Default | Description |
117
- | -------------- | ---------------------------- | ------------ | ----------------------------------------------- |
118
- | `categories` | `string[] \| Date[]` | required | Category labels, or dates for a time axis. |
119
- | `orientation` | `"vertical" \| "horizontal"` | `"vertical"` | `horizontal` puts categories on `y`. |
120
- | `stack` | `string` | — | Stack every bar series under this key. |
121
- | `labels` | `boolean` | `false` | Value labels on every series. |
122
- | `radius` | `number` | `4` | Corner radius (px) on the value end. |
123
- | `format-date` | `(date: Date) => string` | — | Date labels in the tooltip, table, and summary. |
124
- | `format-label` | `(value: number) => string` | — | Value labels and reference line labels. |
165
+ | Prop | Type | Default | Description |
166
+ | ----------------- | ----------------------------------------------------------------- | ------------ | ------------------------------------------------------------------------------------ |
167
+ | `categories` | `string[] \| Date[]` | required | Category labels, or dates for a time axis. |
168
+ | `category-colors` | `boolean \| ChartColorValue[] \| Record<string, ChartColorValue>` | — | Bar color per category (record by label, array by index, or `true` for the palette). |
169
+ | `orientation` | `"vertical" \| "horizontal"` | `"vertical"` | `horizontal` puts categories on `y`. |
170
+ | `stack` | `string` | — | Stack every bar series under this key. |
171
+ | `labels` | `boolean` | `false` | Value labels on every series. |
172
+ | `radius` | `number` | `4` | Corner radius (px) on the value end. |
173
+ | `format-date` | `(date: Date) => string` | — | Date labels in the tooltip, table, and summary. |
174
+ | `format-label` | `(value: number) => string` | — | Value labels and reference line labels. |
125
175
 
126
176
  ## Props (`ChartBarSeries`)
127
177
 
128
178
  Unset options fall back to the `ChartBar` props.
129
179
 
130
- | Prop | Type | Default | Description |
131
- | ----------- | ------------------------------------ | -------- | -------------------------------------------------------------------------------------- |
132
- | `name` | `string` | required | Legend, tooltip, and table name. |
133
- | `data` | `(number \| null)[]` | required | One value per category. |
134
- | `color` | `ChartColorValue` | palette | Token key or CSS color. |
135
- | `stack` | `string` | root | Stack key. |
136
- | `labels` | `boolean` | root | Value labels. |
137
- | `reference` | `ChartReference \| ChartReference[]` | — | `{ type: "average" \| "min" \| "max" }` or `{ value }`, each with an optional `label`. |
180
+ | Prop | Type | Default | Description |
181
+ | -------------- | ------------------------------------ | --------- | -------------------------------------------------------------------------------------- |
182
+ | `name` | `string` | required | Legend, tooltip, and table name. |
183
+ | `data` | `(number \| null)[]` | required | One value per category. |
184
+ | `color` | `ChartColorValue` | palette | Token key or CSS color. |
185
+ | `stack` | `string` | root | Stack key. |
186
+ | `labels` | `boolean` | root | Value labels. |
187
+ | `reference` | `ChartReference \| ChartReference[]` | — | `{ type: "average" \| "min" \| "max" }` or `{ value }`, each with an optional `label`. |
188
+ | `tone` | `"solid" \| "muted"` | `"solid"` | `muted` mixes the bar colors toward the background. |
189
+ | `color-ranges` | `ChartColorRangeOption[]` | — | `{ min?, max?, color, label? }`: bars with a value in `[min, max)` take `color`. |
190
+ | `color-by` | `"value" \| "category"` | `"value"` | `category` matches `color-ranges` against category indices (both ends included). |
@@ -42,13 +42,50 @@ const months = ["Jan", "Feb", "Mar", "Apr", "May", "Jun"];
42
42
  Series with the same `stack` key stack on top of each other.
43
43
 
44
44
  ```vue
45
- <ChartLine area stack="total" :categories="months">
46
- <ChartLineSeries name="Organic" :data="organic" />
47
- <ChartLineSeries name="Paid" :data="paid" />
45
+ <ChartLine area stack="total" :area-opacity="0.6" :categories="months">
46
+ <ChartLineSeries color="info" name="Organic" :data="organic" />
47
+ <ChartLineSeries name="Paid" :data="paid" color="warning" />
48
48
  <ChartLegend />
49
49
  </ChartLine>
50
50
  ```
51
51
 
52
+ `area-opacity` sets the fill opacity (`0.15` by default). Stacked bands read better with a stronger fill. Set it on the root for every series, or per series.
53
+
54
+ ### Color by value
55
+
56
+ `color-ranges` recolors the line (and its area) piece by piece. A value in `[min, max)` takes the range color; values outside every range keep the series color. Range labels show in the tooltip, the data table, and the keyboard announcements.
57
+
58
+ ```vue
59
+ <ChartLine :categories="days">
60
+ <ChartLineSeries
61
+ name="AQI"
62
+ :data="aqi"
63
+ :reference="[{ value: 50 }, { value: 100 }]"
64
+ :color-ranges="[
65
+ { max: 50, color: 'success', label: 'Good' },
66
+ { min: 50, max: 100, color: 'warning', label: 'Moderate' },
67
+ { min: 100, color: 'error', label: 'Unhealthy' },
68
+ ]"
69
+ />
70
+ <ChartTooltip />
71
+ </ChartLine>
72
+ ```
73
+
74
+ ### Highlight categories
75
+
76
+ With `color-by="category"`, `min` and `max` are category indices (zero-based, both included): the line changes color over that stretch of the axis. On a time axis the indices still point at the categories.
77
+
78
+ ```vue
79
+ <ChartLine area curve="smooth" :categories="months">
80
+ <ChartLineSeries
81
+ name="Visitors"
82
+ :data="visitors"
83
+ color-by="category"
84
+ :color-ranges="[{ min: 2, max: 4, color: 'warning', label: 'Campaign' }]"
85
+ />
86
+ </ChartLine>
87
+ ```
88
+
52
89
  ### Step, dashed, and points
53
90
 
54
91
  ```vue
@@ -123,6 +160,7 @@ Shared root props (`height`, `palette`, `loading`, `summary`, …) are listed in
123
160
  | -------------- | --------------------------------------- | ---------- | ----------------------------------------------- |
124
161
  | `categories` | `string[] \| Date[]` | required | Category labels, or dates for a time axis. |
125
162
  | `area` | `boolean` | `false` | Fill under every series. |
163
+ | `area-opacity` | `number` | `0.15` | Area fill opacity (`0`–`1`) for every series. |
126
164
  | `curve` | `"linear" \| "smooth"` | `"linear"` | Interpolation for every series. |
127
165
  | `step` | `false \| "start" \| "middle" \| "end"` | `false` | Step line for every series. |
128
166
  | `stack` | `string` | — | Stack every series under this key. |
@@ -136,16 +174,19 @@ Shared root props (`height`, `palette`, `loading`, `summary`, …) are listed in
136
174
 
137
175
  Unset options fall back to the `ChartLine` props.
138
176
 
139
- | Prop | Type | Default | Description |
140
- | ------------- | --------------------------------------- | -------- | -------------------------------------------------------------------------------------- |
141
- | `name` | `string` | required | Legend, tooltip, and table name. |
142
- | `data` | `(number \| null)[]` | required | One value per category; `null` leaves a gap. |
143
- | `color` | `ChartColorValue` | palette | Token key or CSS color. |
144
- | `area` | `boolean` | root | Fill under the line. |
145
- | `curve` | `"linear" \| "smooth"` | root | Interpolation. |
146
- | `step` | `false \| "start" \| "middle" \| "end"` | root | Step line. |
147
- | `stack` | `string` | root | Stack key. |
148
- | `dashed` | `boolean` | `false` | Dashed stroke. |
149
- | `labels` | `boolean` | root | Value labels. |
150
- | `show-points` | `boolean` | root | Point symbols. |
151
- | `reference` | `ChartReference \| ChartReference[]` | — | `{ type: "average" \| "min" \| "max" }` or `{ value }`, each with an optional `label`. |
177
+ | Prop | Type | Default | Description |
178
+ | -------------- | --------------------------------------- | --------- | ------------------------------------------------------------------------------------------- |
179
+ | `name` | `string` | required | Legend, tooltip, and table name. |
180
+ | `data` | `(number \| null)[]` | required | One value per category; `null` leaves a gap. |
181
+ | `color` | `ChartColorValue` | palette | Token key or CSS color. |
182
+ | `area` | `boolean` | root | Fill under the line. |
183
+ | `area-opacity` | `number` | root | Area fill opacity (`0`–`1`). |
184
+ | `curve` | `"linear" \| "smooth"` | root | Interpolation. |
185
+ | `step` | `false \| "start" \| "middle" \| "end"` | root | Step line. |
186
+ | `stack` | `string` | root | Stack key. |
187
+ | `dashed` | `boolean` | `false` | Dashed stroke. |
188
+ | `labels` | `boolean` | root | Value labels. |
189
+ | `show-points` | `boolean` | root | Point symbols. |
190
+ | `reference` | `ChartReference \| ChartReference[]` | — | `{ type: "average" \| "min" \| "max" }` or `{ value }`, each with an optional `label`. |
191
+ | `color-ranges` | `ChartColorRangeOption[]` | — | `{ min?, max?, color, label? }`: the line takes `color` where the value is in `[min, max)`. |
192
+ | `color-by` | `"value" \| "category"` | `"value"` | `category` matches `color-ranges` against category indices (both ends included). |
@@ -85,6 +85,26 @@ Both:
85
85
  />
86
86
  ```
87
87
 
88
+ ### Gaps and rounded corners
89
+
90
+ `pad-angle` sets the gap between slices (deg) and `corner-radius` rounds the slice corners (px). A pie is solid by default; a donut gets `:pad-angle="1"` and `:corner-radius="2"`.
91
+
92
+ ```vue
93
+ <ChartPie :data="tags" :pad-angle="3" variant="donut" :corner-radius="8" />
94
+ ```
95
+
96
+ ### Nightingale (rose)
97
+
98
+ `rose` draws each slice with a radius that shows its value. With `"radius"` the angle still shows the share; with `"area"` every slice gets the same angle and only the radius changes.
99
+
100
+ ```vue
101
+ <ChartPie :data="tags" rose="radius">
102
+ <ChartLegend show-percent />
103
+ </ChartPie>
104
+ ```
105
+
106
+ `rose` works with `variant="donut"`. The tooltip, legend, and data table still show each slice's share of the total.
107
+
88
108
  ### Group small slices
89
109
 
90
110
  `max-slices` keeps the largest slices and groups the rest into "Other".
@@ -101,15 +121,18 @@ Legend entries hide and show slices; shares are recomputed for the visible slice
101
121
 
102
122
  Shared root props (`height`, `palette`, `loading`, `summary`, …) are listed in [Chart](./Chart.md#props-every-root).
103
123
 
104
- | Prop | Type | Default | Description |
105
- | ---------------- | ------------------------------------------------------ | ----------- | ---------------------------------------------- |
106
- | `data` | `{ label, value, color? }[]` | required | Slices in order. |
107
- | `variant` | `"pie" \| "donut"` | `"pie"` | `donut` leaves a hole for the `center` slot. |
108
- | `thickness` | `number` | `0.3` | Donut ring thickness (fraction of the radius). |
109
- | `labels` | `boolean` | `false` | Slice labels on the plot. |
110
- | `label-position` | `"inside" \| "outside"` | `"outside"` | Where plot labels sit. |
111
- | `label-content` | `"label" \| "value" \| "percent" \| (slice) => string` | `"label"` | What plot labels show. |
112
- | `min-angle` | `number` | `2` | Minimum slice angle (deg). |
113
- | `max-slices` | `number` | — | Group the rest into "Other". |
124
+ | Prop | Type | Default | Description |
125
+ | ---------------- | ------------------------------------------------------ | --------------------- | ---------------------------------------------- |
126
+ | `data` | `{ label, value, color? }[]` | required | Slices in order. |
127
+ | `variant` | `"pie" \| "donut"` | `"pie"` | `donut` leaves a hole for the `center` slot. |
128
+ | `thickness` | `number` | `0.3` | Donut ring thickness (fraction of the radius). |
129
+ | `labels` | `boolean` | `false` | Slice labels on the plot. |
130
+ | `label-position` | `"inside" \| "outside"` | `"outside"` | Where plot labels sit. |
131
+ | `label-content` | `"label" \| "value" \| "percent" \| (slice) => string` | `"label"` | What plot labels show. |
132
+ | `min-angle` | `number` | `2` | Minimum slice angle (deg). |
133
+ | `pad-angle` | `number` | `0` (`1` for `donut`) | Gap between slices (deg). |
134
+ | `corner-radius` | `number` | `0` (`2` for `donut`) | Slice corner radius (px). |
135
+ | `rose` | `"radius" \| "area"` | — | Nightingale pie: slice radius shows the value. |
136
+ | `max-slices` | `number` | — | Group the rest into "Other". |
114
137
 
115
138
  Slots: `center` (inside the donut hole), `empty`, `loading`, `default`.