@bridge-ui/vue 0.18.0 → 0.20.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/Autocomplete/composables/useAutocomplete.js +257 -265
- package/dist/Components/Calendar/composables/useCalendar.d.ts +1 -1
- package/dist/Components/Calendar/composables/useCalendar.js +192 -187
- package/dist/Components/CalendarMonth/composables/useCalendarMonth.d.ts +1 -1
- package/dist/Components/CalendarRange/composables/useCalendarRange.d.ts +1 -1
- package/dist/Components/CalendarRange/composables/useCalendarRange.js +243 -238
- 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/composables/useChartBar.js +4 -4
- 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/ChartFunnel/composables/useChartFunnel.js +10 -10
- 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/ChartLine/composables/useChartLine.js +1 -1
- 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 +39 -29
- package/dist/Components/ChartScatter/composables/useChartScatter.js +63 -58
- 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/DataTable/DataTableColumnsMenu.vue.d.ts +1 -2
- package/dist/Components/DataTable/composables/useDataTable.d.ts +8 -66
- package/dist/Components/DataTable/composables/useDataTable.js +267 -349
- package/dist/Components/DataTable/composables/useDataTableColumnsMenu.d.ts +1 -2
- 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/ListItem/composables/useListItem.js +29 -30
- package/dist/Components/Listbox/composables/useListboxNavigation.d.ts +0 -5
- package/dist/Components/Listbox/composables/useListboxNavigation.js +23 -50
- package/dist/Components/Listbox/index.d.ts +1 -1
- package/dist/Components/Listbox/index.js +5 -5
- package/dist/Components/ResizablePanel/composables/useResizablePanel.d.ts +1 -1
- package/dist/Components/RichTextEditor/composables/useRichTextEditor.js +31 -31
- package/dist/Components/Select/composables/useSelect.js +201 -211
- package/dist/Components/Slider/composables/useSlider.js +93 -122
- 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/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 +5 -1
- package/dist/index.js +175 -171
- 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/Components/RichTextEditor/tiptapEditor.d.ts +0 -111
- package/dist/Components/RichTextEditor/tiptapEditor.js +0 -121
- package/dist/Utils/Charts/echarts/bar.d.ts +0 -6
- package/dist/Utils/Charts/echarts/bar.js +0 -22
- package/dist/Utils/Charts/echarts/cartesian.d.ts +0 -15
- package/dist/Utils/Charts/echarts/cartesian.js +0 -255
- package/dist/Utils/Charts/echarts/funnel.d.ts +0 -15
- package/dist/Utils/Charts/echarts/funnel.js +0 -79
- package/dist/Utils/Charts/echarts/line.d.ts +0 -5
- package/dist/Utils/Charts/echarts/line.js +0 -19
- package/dist/Utils/Charts/echarts/part.d.ts +0 -19
- package/dist/Utils/Charts/echarts/part.js +0 -45
- package/dist/Utils/Charts/echarts/pie.d.ts +0 -14
- package/dist/Utils/Charts/echarts/pie.js +0 -75
- package/dist/Utils/Charts/echarts/plot.d.ts +0 -44
- package/dist/Utils/Charts/echarts/plot.js +0 -52
- package/dist/Utils/Charts/echarts/scatter.d.ts +0 -14
- package/dist/Utils/Charts/echarts/scatter.js +0 -152
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: bridge-ui-components
|
|
3
3
|
description: >-
|
|
4
|
-
Use Bridge UI Vue components — Button, ButtonGroup, Avatar, Card, Alert, Accordion, ActionFooter, Badge, Icon,
|
|
4
|
+
Use Bridge UI Vue components — Button, ButtonGroup, Avatar, Card, Alert, Accordion, ActionFooter, Badge, Icon, Text, Heading,
|
|
5
5
|
Link, List, Table, DataTable, Tabs, Spinner, Skeleton, EmptyState, Sidebar, Progress, Stepper, Carousel, Resizable, ChartLine, ChartBar, ChartScatter, ChartPie, ChartFunnel, Pagination, TextField, Select,
|
|
6
6
|
Autocomplete, DateField, DatePicker, DateRangeField, DateRangePicker,
|
|
7
7
|
TimeField, TimePicker, DateTimeField, DateTimePicker, ColorField, ColorPicker,
|
|
@@ -16,43 +16,44 @@ In templates, use kebab-case attrs (`start-icon`, `custom-props`, `error-message
|
|
|
16
16
|
|
|
17
17
|
## Start here
|
|
18
18
|
|
|
19
|
-
| Need
|
|
20
|
-
|
|
|
21
|
-
| Actions
|
|
22
|
-
| Surfaces / modal body
|
|
23
|
-
| Avatar
|
|
24
|
-
| Badge
|
|
25
|
-
| Alert
|
|
26
|
-
| Accordion
|
|
27
|
-
| Action footer
|
|
28
|
-
| Stepper
|
|
29
|
-
| Carousel
|
|
30
|
-
| Resizable panels
|
|
31
|
-
| Charts (line, area, sparkline, bar, scatter, pie, donut, funnel) | `.ai/docs/components/Chart.md`, then `ChartLine.md`, `ChartBar.md`, `ChartScatter.md`, `ChartPie.md`, `ChartFunnel.md` |
|
|
32
|
-
|
|
|
33
|
-
|
|
|
34
|
-
|
|
|
35
|
-
|
|
|
36
|
-
|
|
|
37
|
-
|
|
|
38
|
-
|
|
|
39
|
-
|
|
|
40
|
-
|
|
|
41
|
-
| Date
|
|
42
|
-
|
|
|
43
|
-
| Time
|
|
44
|
-
|
|
|
45
|
-
| Date-time
|
|
46
|
-
|
|
|
47
|
-
|
|
|
48
|
-
|
|
|
49
|
-
|
|
|
50
|
-
|
|
|
19
|
+
| Need | Doc |
|
|
20
|
+
| ---------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
|
|
21
|
+
| Actions | `.ai/docs/components/Button.md`, `ButtonGroup.md` |
|
|
22
|
+
| Surfaces / modal body | `.ai/docs/components/Card.md` |
|
|
23
|
+
| Avatar | `.ai/docs/components/Avatar.md` |
|
|
24
|
+
| Badge | `.ai/docs/components/Badge.md` |
|
|
25
|
+
| Alert | `.ai/docs/components/Alert.md` |
|
|
26
|
+
| Accordion | `.ai/docs/components/Accordion.md` |
|
|
27
|
+
| Action footer | `.ai/docs/components/ActionFooter.md` |
|
|
28
|
+
| Stepper | `.ai/docs/components/Stepper.md` |
|
|
29
|
+
| Carousel | `.ai/docs/components/Carousel.md` |
|
|
30
|
+
| Resizable panels | `.ai/docs/components/Resizable.md` |
|
|
31
|
+
| Charts (line, area, sparkline, bar, scatter, pie, donut, rose, funnel) | `.ai/docs/components/Chart.md`, then `ChartLine.md`, `ChartBar.md`, `ChartScatter.md`, `ChartPie.md`, `ChartFunnel.md` |
|
|
32
|
+
| Text / headings (tone, color, size) | `.ai/docs/components/Text.md`, `Heading.md` |
|
|
33
|
+
| Icon | `.ai/docs/components/Icon.md` |
|
|
34
|
+
| Lists | `.ai/docs/components/List.md` |
|
|
35
|
+
| Table | `.ai/docs/components/Table.md` |
|
|
36
|
+
| DataTable | `.ai/docs/components/DataTable.md` |
|
|
37
|
+
| Tabs | `.ai/docs/components/Tabs.md` |
|
|
38
|
+
| Text input | `.ai/docs/components/TextField.md` |
|
|
39
|
+
| Select / autocomplete | `.ai/docs/components/Select.md`, `Autocomplete.md` |
|
|
40
|
+
| Sidebar / app shell | `.ai/docs/components/Sidebar.md` |
|
|
41
|
+
| Date | `.ai/docs/components/DateField.md`, `DatePicker.md` |
|
|
42
|
+
| Date range | `.ai/docs/components/DateRangeField.md`, `DateRangePicker.md` |
|
|
43
|
+
| Time | `.ai/docs/components/TimeField.md`, `TimePicker.md` |
|
|
44
|
+
| Time range | `.ai/docs/components/TimeRangeField.md`, `TimeRangePicker.md` |
|
|
45
|
+
| Date-time | `.ai/docs/components/DateTimeField.md`, `DateTimePicker.md` |
|
|
46
|
+
| Date-time range | `.ai/docs/components/DateTimeRangeField.md`, `DateTimeRangePicker.md` |
|
|
47
|
+
| Color | `.ai/docs/components/ColorField.md`, `ColorPicker.md` |
|
|
48
|
+
| Spinner / skeleton / progress | `.ai/docs/components/Spinner.md`, `Skeleton.md`, `Progress.md` |
|
|
49
|
+
| Empty / no data | `.ai/docs/components/EmptyState.md` |
|
|
50
|
+
| Scroll fade / scrollbar | `.ai/docs/ScrollUtilities.md` |
|
|
51
|
+
| Index | `.ai/docs/README.md` |
|
|
51
52
|
|
|
52
53
|
## Hard rules
|
|
53
54
|
|
|
54
55
|
1. Import from `@bridge-ui/vue/Components/{Name}`.
|
|
55
|
-
2. Prefer Bridge tokens (`color`, `size`, `variant`, `density`) when they exist.
|
|
56
|
+
2. Prefer Bridge tokens (`color`, `size`, `variant`, `density`) when they exist. For text, use `Text` / `Heading` (`variant="muted"` for secondary text) instead of `text-dark-* dark:text-dark-*` pairs.
|
|
56
57
|
3. `:classes` / `:custom-props` / named slots follow each component doc.
|
|
57
58
|
4. Root HTML attributes stay on the component; use `custom-props` for **inner** parts.
|
|
58
59
|
5. Modal/Drawer content uses **`Card`** — there is no `ModalCard` export.
|
|
@@ -30,7 +30,7 @@ npx bridge-ui-vue-ai install
|
|
|
30
30
|
|
|
31
31
|
## Hard rules
|
|
32
32
|
|
|
33
|
-
1. Tailwind CSS **v4** + `@import "@bridge-ui/vue/theme.css"`.
|
|
33
|
+
1. Tailwind CSS **v4** + `@import "@bridge-ui/vue/theme.css"`. It also sets the base text color on `body` for light and dark themes.
|
|
34
34
|
2. Use `app.use(createBridgeUI({ ... }))` and/or `<BridgeUIProvider>`.
|
|
35
35
|
3. Mount `BridgeUIHosts` when using action hooks (`useDialogAction`, `useModalAction`, `useDrawerAction`, `useSnackbarAction`).
|
|
36
36
|
4. Semantic icon names, chrome strings, and date libs need `global.icons` / `global.i18n` / `global.dates` — install `@bridge-ui/adapters`, import factories from `@bridge-ui/adapters/vue/{date,icon,i18n}-*`, and install the matching optional peer.
|