mood-ui 0.5.2 → 0.7.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/README.md +15 -15
- package/dist/mood-ui.cjs +3 -3
- package/dist/mood-ui.cjs.map +1 -1
- package/dist/mood-ui.css +1 -1
- package/dist/mood-ui.mjs +3697 -3055
- package/dist/mood-ui.mjs.map +1 -1
- package/dist/types/components/data-display/Accordion.vue.d.ts +3 -3
- package/dist/types/components/data-display/Timeline.vue.d.ts +5 -5
- package/dist/types/components/data-display/calendar/AgendaView.vue.d.ts +24 -12
- package/dist/types/components/data-display/calendar/CalendarEventTooltip.vue.d.ts +2 -2
- package/dist/types/components/data-display/calendar/DayView.vue.d.ts +23 -11
- package/dist/types/components/data-display/calendar/MonthView.vue.d.ts +32 -11
- package/dist/types/components/data-display/calendar/Scheduler.vue.d.ts +26 -14
- package/dist/types/components/data-display/calendar/WeekView.vue.d.ts +23 -11
- package/dist/types/components/data-display/table/Table.vue.d.ts +20 -5
- package/dist/types/components/data-display/table/TableColumn.vue.d.ts +1 -1
- package/dist/types/components/feedback/Drawer.vue.d.ts +2 -1
- package/dist/types/components/feedback/Modal.vue.d.ts +2 -1
- package/dist/types/components/feedback/Tooltip.vue.d.ts +1 -1
- package/dist/types/components/forms/ColorModeSwitch.vue.d.ts +31 -0
- package/dist/types/components/forms/ColorPicker.vue.d.ts +8 -2
- package/dist/types/components/forms/FormField.vue.d.ts +4 -4
- package/dist/types/components/forms/TagInput.vue.d.ts +2 -0
- package/dist/types/components/layout/AppShell.vue.d.ts +35 -31
- package/dist/types/components/layout/Canvas.vue.d.ts +1 -1
- package/dist/types/components/layout/Container.vue.d.ts +1 -1
- package/dist/types/components/layout/Sidebar.vue.d.ts +5 -5
- package/dist/types/components/layout/SidebarRow.vue.d.ts +3 -1
- package/dist/types/components/navigation/DropdownMenu.vue.d.ts +2 -2
- package/dist/types/components/navigation/Tabs.vue.d.ts +5 -5
- package/dist/types/composables/useField.d.ts +2 -0
- package/dist/types/composables/usePopover.d.ts +3 -0
- package/dist/types/index.d.ts +17 -0
- package/dist/types/interfaces/forms/Button.interface.d.ts +4 -0
- package/dist/types/interfaces/forms/ColorModeSwitch.interface.d.ts +19 -0
- package/dist/types/interfaces/forms/ColorPicker.interface.d.ts +9 -3
- package/dist/types/interfaces/forms/TagInput.interface.d.ts +18 -2
- package/package.json +20 -3
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
**81+ accessible components** · reactive theming · dark mode · i18n (ES + EN) · built with Vue 3, TypeScript & Tailwind v4.
|
|
14
14
|
|
|
15
|
-
[**→ Live docs & playground**](https://
|
|
15
|
+
[**→ Live docs & playground**](https://mood-ui.com) · [npm](https://www.npmjs.com/package/mood-ui) · [Changelog](https://github.com/alansinbailarin/mood-ui/releases)
|
|
16
16
|
|
|
17
17
|
</div>
|
|
18
18
|
|
|
@@ -48,21 +48,21 @@ Import the stylesheet once at your app entry:
|
|
|
48
48
|
|
|
49
49
|
```ts
|
|
50
50
|
// main.ts
|
|
51
|
-
import { createApp } from
|
|
52
|
-
import App from
|
|
53
|
-
import
|
|
51
|
+
import { createApp } from "vue";
|
|
52
|
+
import App from "./App.vue";
|
|
53
|
+
import "mood-ui/style.css";
|
|
54
54
|
|
|
55
|
-
createApp(App).mount(
|
|
55
|
+
createApp(App).mount("#app");
|
|
56
56
|
```
|
|
57
57
|
|
|
58
58
|
Wrap your app in `<ModoProvider>` to expose all design tokens to every component:
|
|
59
59
|
|
|
60
60
|
```vue
|
|
61
61
|
<script setup lang="ts">
|
|
62
|
-
import { ref } from
|
|
63
|
-
import { ModoProvider, Button, paletteFromHex } from
|
|
62
|
+
import { ref } from "vue";
|
|
63
|
+
import { ModoProvider, Button, paletteFromHex } from "mood-ui";
|
|
64
64
|
|
|
65
|
-
const primary = ref(
|
|
65
|
+
const primary = ref("#6366f1");
|
|
66
66
|
</script>
|
|
67
67
|
|
|
68
68
|
<template>
|
|
@@ -130,13 +130,13 @@ Full feature list: resource rows · drag & drop events · resize events · cross
|
|
|
130
130
|
|
|
131
131
|
## All components
|
|
132
132
|
|
|
133
|
-
| Category
|
|
134
|
-
|
|
135
|
-
| **Forms**
|
|
136
|
-
| **Feedback**
|
|
137
|
-
| **Layout**
|
|
138
|
-
| **Navigation**
|
|
139
|
-
| **Data display** | `Card` `Typography` `Avatar` `AvatarGroup` `Table` `TableColumn` `TablePagination` `Calendar` `MonthView` `WeekView` `DayView` `AgendaView` `Scheduler` `DateRangePicker` `DateTimePicker`
|
|
133
|
+
| Category | Components |
|
|
134
|
+
| ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
135
|
+
| **Forms** | `Button` `ButtonGroup` `FormField` `Input` `Textarea` `PasswordInput` `NumberInput` `SearchInput` `Select` `MultiSelect` `Combobox` `Checkbox` `Radio` `RadioGroup` `Switch` `Slider` `RangeSlider` `FileInput` `DateField` `DateRangeField` `DateTimeField` |
|
|
136
|
+
| **Feedback** | `Badge` `Banner` `Chip` `Drawer` `Loader` `Modal` `Skeleton` `Tooltip` `Toast` `ToastContainer` `ConfirmDialog` `EmptyState` `ProgressBar` |
|
|
137
|
+
| **Layout** | `AppShell` `Canvas` `Container` `Divider` `Stack` `HStack` `VStack` `PageHeader` `PopoverPanel` `Sidebar` `SidebarRow` `Topbar` |
|
|
138
|
+
| **Navigation** | `Tabs` `Breadcrumbs` `DropdownMenu` `Pagination` |
|
|
139
|
+
| **Data display** | `Card` `Typography` `Avatar` `AvatarGroup` `Table` `TableColumn` `TablePagination` `Calendar` `MonthView` `WeekView` `DayView` `AgendaView` `Scheduler` `DateRangePicker` `DateTimePicker` |
|
|
140
140
|
|
|
141
141
|
## Composables
|
|
142
142
|
|