@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.
- package/ai/skills/bridge-ui-components/SKILL.md +35 -34
- package/ai/skills/bridge-ui-setup/SKILL.md +1 -1
- package/dist/Components/ChartBar/ChartBar.vue_vue_type_script_setup_true_lang.js +5 -0
- package/dist/Components/ChartBar/chartBar.types.d.ts +11 -1
- package/dist/Components/ChartBar/index.d.ts +1 -1
- package/dist/Components/ChartBarSeries/ChartBarSeries.vue_vue_type_script_setup_true_lang.js +4 -1
- package/dist/Components/ChartBarSeries/chartBarSeries.types.d.ts +24 -2
- package/dist/Components/ChartBarSeries/composables/useChartBarSeries.js +3 -0
- package/dist/Components/ChartBarSeries/index.d.ts +1 -0
- package/dist/Components/ChartLine/ChartLine.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/Components/ChartLine/chartLine.types.d.ts +7 -0
- package/dist/Components/ChartLineSeries/ChartLineSeries.vue_vue_type_script_setup_true_lang.js +3 -0
- package/dist/Components/ChartLineSeries/chartLineSeries.types.d.ts +23 -2
- package/dist/Components/ChartLineSeries/composables/useChartLineSeries.js +3 -0
- package/dist/Components/ChartLineSeries/index.d.ts +1 -0
- package/dist/Components/ChartPie/ChartPie.vue_vue_type_script_setup_true_lang.js +3 -0
- package/dist/Components/ChartPie/chartPie.types.d.ts +20 -1
- package/dist/Components/ChartPie/composables/useChartPie.d.ts +1 -1
- package/dist/Components/ChartPie/composables/useChartPie.js +35 -25
- package/dist/Components/ChartScatter/composables/useChartScatter.js +61 -56
- package/dist/Components/ChartScatterSeries/ChartScatterSeries.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/Components/ChartScatterSeries/chartScatterSeries.types.d.ts +8 -1
- package/dist/Components/ChartScatterSeries/composables/useChartScatterSeries.js +2 -1
- package/dist/Components/ChartScatterSeries/index.d.ts +1 -0
- package/dist/Components/ChartTooltip/ChartTooltip.vue_vue_type_script_setup_true_lang.js +11 -7
- package/dist/Components/ChartTooltip/chartTooltip.types.d.ts +4 -0
- package/dist/Components/ChartTooltip/composables/useChartTooltip.d.ts +1 -0
- package/dist/Components/ChartTooltip/composables/useChartTooltip.js +4 -0
- package/dist/Components/Heading/Heading.js +5 -0
- package/dist/Components/Heading/Heading.vue.d.ts +11 -0
- package/dist/Components/Heading/Heading.vue_vue_type_script_setup_true_lang.js +29 -0
- package/dist/Components/Heading/composables/useHeading.d.ts +10 -0
- package/dist/Components/Heading/composables/useHeading.js +56 -0
- package/dist/Components/Heading/heading.types.d.ts +56 -0
- package/dist/Components/Heading/index.d.ts +3 -0
- package/dist/Components/Heading/index.js +3 -0
- package/dist/Components/Text/Text.js +5 -0
- package/dist/Components/Text/Text.vue.d.ts +11 -0
- package/dist/Components/Text/Text.vue_vue_type_script_setup_true_lang.js +33 -0
- package/dist/Components/Text/composables/useText.d.ts +9 -0
- package/dist/Components/Text/composables/useText.js +56 -0
- package/dist/Components/Text/index.d.ts +3 -0
- package/dist/Components/Text/index.js +3 -0
- package/dist/Components/Text/text.types.d.ts +76 -0
- package/dist/Utils/Charts/chart.types.d.ts +17 -0
- package/dist/Utils/Charts/chartInjectionKey.d.ts +2 -2
- package/dist/Utils/Charts/echarts/bar.js +11 -10
- package/dist/Utils/Charts/echarts/cartesian.d.ts +2 -2
- package/dist/Utils/Charts/echarts/cartesian.js +139 -104
- package/dist/Utils/Charts/echarts/line.js +9 -8
- package/dist/Utils/Charts/echarts/pie.js +3 -2
- package/dist/Utils/Charts/echarts/scatter.js +58 -49
- package/dist/Utils/Charts/index.d.ts +1 -1
- package/dist/Utils/Charts/useChartCartesian.d.ts +4 -2
- package/dist/Utils/Charts/useChartCartesian.js +90 -76
- package/dist/augments.d.ts +10 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +90 -86
- package/docs/README.md +2 -0
- package/docs/components/BridgeUIProvider.md +1 -1
- package/docs/components/Card.md +15 -0
- package/docs/components/Chart.md +17 -10
- package/docs/components/ChartBar.md +70 -17
- package/docs/components/ChartLine.md +57 -16
- package/docs/components/ChartPie.md +33 -10
- package/docs/components/ChartScatter.md +25 -7
- package/docs/components/Heading.md +85 -0
- package/docs/components/Text.md +118 -0
- 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 {
|
|
107
|
-
import ct from "./Components/
|
|
108
|
-
import {
|
|
109
|
-
import ut from "./Components/
|
|
110
|
-
import {
|
|
111
|
-
import ft from "./Components/
|
|
112
|
-
import {
|
|
113
|
-
import mt from "./Components/
|
|
114
|
-
import {
|
|
115
|
-
import gt from "./Components/
|
|
116
|
-
import {
|
|
117
|
-
import vt from "./Components/
|
|
118
|
-
import yt from "./
|
|
119
|
-
import
|
|
120
|
-
import
|
|
121
|
-
import St from "./
|
|
122
|
-
import {
|
|
123
|
-
import
|
|
124
|
-
import Tt from "./Components/Resizable/
|
|
125
|
-
import {
|
|
126
|
-
import Dt from "./Components/
|
|
127
|
-
import {
|
|
128
|
-
import kt from "./Components/
|
|
129
|
-
import At from "./Components/
|
|
130
|
-
import jt from "./Components/
|
|
131
|
-
import
|
|
132
|
-
import
|
|
133
|
-
import {
|
|
134
|
-
import {
|
|
135
|
-
import {
|
|
136
|
-
import {
|
|
137
|
-
import {
|
|
138
|
-
import zt from "./Components/Sidebar/
|
|
139
|
-
import Bt from "./Components/Sidebar/
|
|
140
|
-
import Vt from "./Components/Sidebar/
|
|
141
|
-
import
|
|
142
|
-
import Ut from "./Components/
|
|
143
|
-
import Wt from "./Components/
|
|
144
|
-
import Gt from "./Components/
|
|
145
|
-
import Kt from "./Components/Sidebar/
|
|
146
|
-
import
|
|
147
|
-
import Jt from "./Components/
|
|
148
|
-
import {
|
|
149
|
-
import Xt from "./Components/
|
|
150
|
-
import {
|
|
151
|
-
import Qt from "./Components/
|
|
152
|
-
import {
|
|
153
|
-
import en from "./Components/
|
|
154
|
-
import {
|
|
155
|
-
import nn from "./Components/
|
|
156
|
-
import {
|
|
157
|
-
import an from "./Components/
|
|
158
|
-
import {
|
|
159
|
-
import sn from "./Components/
|
|
160
|
-
import {
|
|
161
|
-
import
|
|
162
|
-
import un from "./Components/
|
|
163
|
-
import {
|
|
164
|
-
import fn from "./Components/
|
|
165
|
-
import {
|
|
166
|
-
import mn from "./Components/
|
|
167
|
-
import {
|
|
168
|
-
import gn from "./Components/
|
|
169
|
-
import {
|
|
170
|
-
import vn from "./Components/
|
|
171
|
-
import {
|
|
172
|
-
import bn from "./Components/
|
|
173
|
-
import {
|
|
174
|
-
import Sn from "./Components/
|
|
175
|
-
import {
|
|
176
|
-
import
|
|
177
|
-
import Tn from "./Components/
|
|
178
|
-
import En from "./Components/
|
|
179
|
-
import {
|
|
180
|
-
import {
|
|
181
|
-
import kn from "./Components/
|
|
182
|
-
import An from "./Components/
|
|
183
|
-
import {
|
|
184
|
-
import {
|
|
185
|
-
import Nn from "./Components/
|
|
186
|
-
import
|
|
187
|
-
import Fn from "./Components/
|
|
188
|
-
import {
|
|
189
|
-
import
|
|
190
|
-
import {
|
|
191
|
-
|
|
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
|
|
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
|
|
package/docs/components/Card.md
CHANGED
|
@@ -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
|
package/docs/components/Chart.md
CHANGED
|
@@ -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
|
|
117
|
-
|
|
|
118
|
-
| `categories`
|
|
119
|
-
| `
|
|
120
|
-
| `
|
|
121
|
-
| `
|
|
122
|
-
| `
|
|
123
|
-
| `
|
|
124
|
-
| `format-
|
|
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
|
|
131
|
-
|
|
|
132
|
-
| `name`
|
|
133
|
-
| `data`
|
|
134
|
-
| `color`
|
|
135
|
-
| `stack`
|
|
136
|
-
| `labels`
|
|
137
|
-
| `reference`
|
|
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
|
|
140
|
-
|
|
|
141
|
-
| `name`
|
|
142
|
-
| `data`
|
|
143
|
-
| `color`
|
|
144
|
-
| `area`
|
|
145
|
-
| `
|
|
146
|
-
| `
|
|
147
|
-
| `
|
|
148
|
-
| `
|
|
149
|
-
| `
|
|
150
|
-
| `
|
|
151
|
-
| `
|
|
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
|
|
105
|
-
| ---------------- | ------------------------------------------------------ |
|
|
106
|
-
| `data` | `{ label, value, color? }[]` | required
|
|
107
|
-
| `variant` | `"pie" \| "donut"` | `"pie"`
|
|
108
|
-
| `thickness` | `number` | `0.3`
|
|
109
|
-
| `labels` | `boolean` | `false`
|
|
110
|
-
| `label-position` | `"inside" \| "outside"` | `"outside"`
|
|
111
|
-
| `label-content` | `"label" \| "value" \| "percent" \| (slice) => string` | `"label"`
|
|
112
|
-
| `min-angle` | `number` | `2`
|
|
113
|
-
| `
|
|
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`.
|