@aleph-alpha/ui-library 1.13.0 → 1.15.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 (137) hide show
  1. package/README.md +1 -1
  2. package/config.d.ts +18 -5
  3. package/config.js +95 -5
  4. package/dist/system/index.d.ts +1718 -236
  5. package/dist/system/lib.js +19726 -16529
  6. package/docs/public-docs/component-directory.md +13 -0
  7. package/docs/public-docs/contributing.md +11 -0
  8. package/docs/public-docs/external-links.md +16 -0
  9. package/docs/public-docs/foundations.md +25 -0
  10. package/docs/public-docs/getting-started-designers.md +17 -0
  11. package/docs/public-docs/index.md +5 -0
  12. package/docs/public-docs/quick-start.md +230 -0
  13. package/docs/public-docs/standards-guidelines.md +15 -0
  14. package/package.json +3 -2
  15. package/src/components/UiCalendar/UiCalendar.stories.ts +1 -4
  16. package/src/components/UiCalendar/types.ts +1 -1
  17. package/src/components/UiKbd/UiKbd.stories.ts +1 -1
  18. package/src/components/UiNavigationMenu/UiNavigationMenu.stories.ts +1196 -0
  19. package/src/components/UiNavigationMenu/UiNavigationMenu.vue +39 -0
  20. package/src/components/UiNavigationMenu/UiNavigationMenuContent.vue +25 -0
  21. package/src/components/UiNavigationMenu/UiNavigationMenuIndicator.vue +14 -0
  22. package/src/components/UiNavigationMenu/UiNavigationMenuItem.vue +16 -0
  23. package/src/components/UiNavigationMenu/UiNavigationMenuLink.vue +27 -0
  24. package/src/components/UiNavigationMenu/UiNavigationMenuList.vue +16 -0
  25. package/src/components/UiNavigationMenu/UiNavigationMenuTrigger.vue +16 -0
  26. package/src/components/UiNavigationMenu/__tests__/UiNavigationMenu.test.ts +428 -0
  27. package/src/components/UiNavigationMenu/index.ts +11 -0
  28. package/src/components/UiNavigationMenu/types.ts +185 -0
  29. package/src/components/UiRangeCalendar/UiRangeCalendar.stories.ts +2 -4
  30. package/src/components/UiRangeCalendar/types.ts +1 -1
  31. package/src/components/UiSheet/UiSheet.stories.ts +715 -0
  32. package/src/components/UiSheet/__tests__/UiSheet.test.ts +229 -0
  33. package/src/components/UiSheet/index.ts +12 -0
  34. package/src/components/UiSheet/types.ts +83 -0
  35. package/src/components/UiSidebar/UiSidebar.stories.ts +1188 -0
  36. package/src/components/UiSidebar/UiSidebar.vue +20 -0
  37. package/src/components/UiSidebar/UiSidebarGroupAction.vue +18 -0
  38. package/src/components/UiSidebar/UiSidebarGroupLabel.vue +18 -0
  39. package/src/components/UiSidebar/UiSidebarHeaderTrigger.vue +53 -0
  40. package/src/components/UiSidebar/UiSidebarInput.vue +14 -0
  41. package/src/components/UiSidebar/UiSidebarMenuAction.vue +19 -0
  42. package/src/components/UiSidebar/UiSidebarMenuButton.vue +27 -0
  43. package/src/components/UiSidebar/UiSidebarMenuSkeleton.vue +16 -0
  44. package/src/components/UiSidebar/UiSidebarMenuSubButton.vue +24 -0
  45. package/src/components/UiSidebar/UiSidebarProvider.vue +16 -0
  46. package/src/components/UiSidebar/UiSidebarSeparator.vue +13 -0
  47. package/src/components/UiSidebar/__tests__/UiSidebar.test.ts +221 -0
  48. package/src/components/UiSidebar/index.ts +34 -0
  49. package/src/components/UiSidebar/types.ts +165 -0
  50. package/src/components/UiStepper/UiStepper.stories.ts +425 -0
  51. package/src/components/UiStepper/UiStepper.vue +27 -0
  52. package/src/components/UiStepper/UiStepperDescription.vue +20 -0
  53. package/src/components/UiStepper/UiStepperIndicator.vue +13 -0
  54. package/src/components/UiStepper/UiStepperItem.vue +25 -0
  55. package/src/components/UiStepper/UiStepperSeparator.vue +17 -0
  56. package/src/components/UiStepper/UiStepperTitle.vue +19 -0
  57. package/src/components/UiStepper/UiStepperTrigger.vue +18 -0
  58. package/src/components/UiStepper/__tests__/UiStepper.test.ts +167 -0
  59. package/src/components/UiStepper/index.ts +9 -0
  60. package/src/components/UiStepper/types.ts +65 -0
  61. package/src/components/core/alert/index.ts +2 -2
  62. package/src/components/core/alert-dialog/AlertDialogContent.vue +1 -1
  63. package/src/components/core/calendar/Calendar.vue +1 -1
  64. package/src/components/core/card/Card.vue +1 -1
  65. package/src/components/core/drawer/DrawerContent.vue +1 -1
  66. package/src/components/core/dropdown-menu/DropdownMenuContent.vue +1 -1
  67. package/src/components/core/dropdown-menu/DropdownMenuSubContent.vue +1 -1
  68. package/src/components/core/input/Input.vue +1 -1
  69. package/src/components/core/native-select/NativeSelect.vue +1 -1
  70. package/src/components/core/native-select/NativeSelectOptGroup.vue +1 -1
  71. package/src/components/core/native-select/NativeSelectOption.vue +1 -1
  72. package/src/components/core/navigation-menu/NavigationMenu.vue +40 -0
  73. package/src/components/core/navigation-menu/NavigationMenuContent.vue +28 -0
  74. package/src/components/core/navigation-menu/NavigationMenuIndicator.vue +26 -0
  75. package/src/components/core/navigation-menu/NavigationMenuItem.vue +19 -0
  76. package/src/components/core/navigation-menu/NavigationMenuLink.vue +27 -0
  77. package/src/components/core/navigation-menu/NavigationMenuList.vue +21 -0
  78. package/src/components/core/navigation-menu/NavigationMenuTrigger.vue +27 -0
  79. package/src/components/core/navigation-menu/NavigationMenuViewport.vue +26 -0
  80. package/src/components/core/navigation-menu/index.ts +14 -0
  81. package/src/components/core/popover/PopoverContent.vue +1 -1
  82. package/src/components/core/range-calendar/RangeCalendar.vue +1 -1
  83. package/src/components/core/select/SelectContent.vue +1 -1
  84. package/src/components/core/select/SelectTrigger.vue +1 -1
  85. package/src/components/core/sheet/Sheet.vue +15 -0
  86. package/src/components/core/sheet/SheetClose.vue +12 -0
  87. package/src/components/core/sheet/SheetContent.vue +56 -0
  88. package/src/components/core/sheet/SheetDescription.vue +19 -0
  89. package/src/components/core/sheet/SheetFooter.vue +9 -0
  90. package/src/components/core/sheet/SheetHeader.vue +9 -0
  91. package/src/components/core/sheet/SheetOverlay.vue +24 -0
  92. package/src/components/core/sheet/SheetTitle.vue +19 -0
  93. package/src/components/core/sheet/SheetTrigger.vue +12 -0
  94. package/src/components/core/sheet/index.ts +8 -0
  95. package/src/components/core/sidebar/Sidebar.vue +105 -0
  96. package/src/components/core/sidebar/SidebarContent.vue +21 -0
  97. package/src/components/core/sidebar/SidebarFooter.vue +16 -0
  98. package/src/components/core/sidebar/SidebarGroup.vue +16 -0
  99. package/src/components/core/sidebar/SidebarGroupAction.vue +25 -0
  100. package/src/components/core/sidebar/SidebarGroupContent.vue +16 -0
  101. package/src/components/core/sidebar/SidebarGroupLabel.vue +23 -0
  102. package/src/components/core/sidebar/SidebarHeader.vue +16 -0
  103. package/src/components/core/sidebar/SidebarInput.vue +17 -0
  104. package/src/components/core/sidebar/SidebarInset.vue +21 -0
  105. package/src/components/core/sidebar/SidebarMenu.vue +16 -0
  106. package/src/components/core/sidebar/SidebarMenuAction.vue +33 -0
  107. package/src/components/core/sidebar/SidebarMenuBadge.vue +26 -0
  108. package/src/components/core/sidebar/SidebarMenuButton.vue +49 -0
  109. package/src/components/core/sidebar/SidebarMenuButtonChild.vue +36 -0
  110. package/src/components/core/sidebar/SidebarMenuItem.vue +16 -0
  111. package/src/components/core/sidebar/SidebarMenuSkeleton.vue +32 -0
  112. package/src/components/core/sidebar/SidebarMenuSub.vue +22 -0
  113. package/src/components/core/sidebar/SidebarMenuSubButton.vue +38 -0
  114. package/src/components/core/sidebar/SidebarMenuSubItem.vue +16 -0
  115. package/src/components/core/sidebar/SidebarProvider.vue +102 -0
  116. package/src/components/core/sidebar/SidebarRail.vue +33 -0
  117. package/src/components/core/sidebar/SidebarSeparator.vue +17 -0
  118. package/src/components/core/sidebar/SidebarTrigger.vue +25 -0
  119. package/src/components/core/sidebar/index.ts +58 -0
  120. package/src/components/core/sidebar/utils.ts +19 -0
  121. package/src/components/core/stepper/Stepper.vue +20 -0
  122. package/src/components/core/stepper/StepperDescription.vue +23 -0
  123. package/src/components/core/stepper/StepperIndicator.vue +34 -0
  124. package/src/components/core/stepper/StepperItem.vue +23 -0
  125. package/src/components/core/stepper/StepperSeparator.vue +29 -0
  126. package/src/components/core/stepper/StepperTitle.vue +24 -0
  127. package/src/components/core/stepper/StepperTrigger.vue +22 -0
  128. package/src/components/core/stepper/index.ts +7 -0
  129. package/src/components/core/tabs/TabsTrigger.vue +1 -1
  130. package/src/components/core/tags-input/TagsInput.vue +1 -1
  131. package/src/components/core/textarea/Textarea.vue +1 -1
  132. package/src/components/index.ts +4 -0
  133. package/src/patterns/UiDatePicker/UiDatePicker.stories.ts +1 -4
  134. package/src/patterns/UiDatePicker/types.ts +1 -1
  135. package/src/theme/Background.stories.ts +84 -35
  136. package/src/theme/Extended.stories.ts +4 -4
  137. package/tokens.json +145 -8
@@ -0,0 +1,13 @@
1
+ # Components
2
+
3
+ Explore the design system components: view variants, try them in isolation, and copy code for your app.
4
+
5
+ ---
6
+
7
+ ## Live playground (Storybook)
8
+
9
+ The easiest way to browse and try components and see detailed documentation on each component is Storybook. You can switch props, see states and sizes, see provided examples, etc.
10
+
11
+ **[Open Storybook →](https://dev.aleph-alpha.de/ui-library)**
12
+
13
+ More soon.
@@ -0,0 +1,11 @@
1
+ # Contributing
2
+
3
+ ---
4
+
5
+ ## Contribution Guidelines (Workflows & Diagrams)
6
+
7
+ Coming soon.
8
+
9
+ ## Support (Mattermost, FAQ, Office Hours)
10
+
11
+ Coming soon.
@@ -0,0 +1,16 @@
1
+ # External Links
2
+
3
+ Quick access to Design System resources.
4
+
5
+ ---
6
+
7
+ ## Coming soon
8
+
9
+ This page will provide:
10
+
11
+ | Resource | Description | Link |
12
+ |----------|-------------|------|
13
+ | 📘 **Storybook (Live Code)** | Live code and component playground | [Storybook](https://dev.aleph-alpha.de/ui-library) |
14
+ | 🎨 **Figma (Design System)** | Design system files | [Figma](https://www.figma.com/design/SrZQ19QVN1sQkuAMnMC746/AA26--WIP-?node-id=65-520&m=dev) |
15
+ | 🐙 **GitHub Repository** | Source code and issues | [GitHub](https://github.com/Aleph-Alpha/frontend-hub/tree/main/packages/ui-library) |
16
+
@@ -0,0 +1,25 @@
1
+ # Foundations
2
+
3
+ *Links to Storybook.*
4
+
5
+ ---
6
+
7
+ ## Color & Dark Mode
8
+
9
+ Coming soon.
10
+
11
+ ## Spacing & Grid
12
+
13
+ Coming soon.
14
+
15
+ ## Typography
16
+
17
+ Coming soon.
18
+
19
+ ## Elevation & Surfaces
20
+
21
+ Coming soon.
22
+
23
+ ## Iconography
24
+
25
+ Coming soon.
@@ -0,0 +1,17 @@
1
+ # Getting Started for Designers
2
+
3
+ ---
4
+
5
+ ## Figma Access & Library Links
6
+
7
+ Figma components and design files:
8
+
9
+ - **[AA Design System Components (Figma)](https://www.figma.com/design/SrZQ19QVN1sQkuAMnMC746/AA26--WIP-?node-id=580-9181&t=2HPn1uKWpFKHnrMR-1)** — component library and design system.
10
+
11
+ ## Using Design Tokens in Figma
12
+
13
+ Coming soon.
14
+
15
+ ## Link to Contribution Model
16
+
17
+ Coming soon.
@@ -0,0 +1,5 @@
1
+ # Overview
2
+
3
+ Coming soon.
4
+
5
+
@@ -0,0 +1,230 @@
1
+ # Quick Start
2
+
3
+ Get the UI library integrated into your project in under 5 minutes.
4
+
5
+ **Designers:** For Figma, design tokens, and the contribution model, see [Getting Started for Designers](getting-started-designers.md).
6
+
7
+ !!! note "Prerequisites"
8
+ - **Node.js** (>=20.19.0)
9
+ - **pnpm** or **npm**
10
+ - A **Vite + Vue 3** project
11
+ - **MCP (optional):** An editor that supports MCP (Cursor, VS Code, or Claude Code) if you want AI-assisted component discovery
12
+
13
+ ---
14
+
15
+ ## Installation
16
+
17
+ **1. Add the library and peer dependencies**
18
+
19
+ ```bash
20
+ pnpm add @aleph-alpha/ui-library
21
+ pnpm add -D unocss @unocss/preset-wind4 @unocss/reset unocss-preset-animations unocss-preset-shadcn
22
+ ```
23
+
24
+ <details>
25
+ <summary>Using npm?</summary>
26
+
27
+ ```bash
28
+ npm install @aleph-alpha/ui-library
29
+ npm install -D unocss @unocss/preset-wind4 @unocss/reset unocss-preset-animations unocss-preset-shadcn
30
+ ```
31
+ </details>
32
+
33
+ !!! warning "Use `@unocss/preset-wind4`, not `preset-wind3`"
34
+ The library requires **preset-wind4**. Using preset-wind3 will break hover states and colors because wind3 injects opacity variables (`/ var(--un-bg-opacity)`) that conflict with the library's oklch token values.
35
+
36
+ ---
37
+
38
+ ## Setup and configuration
39
+
40
+ ### 2. UnoCSS config
41
+
42
+ Create or update `uno.config.ts` in your project root:
43
+
44
+ ```typescript
45
+ // uno.config.ts
46
+ import { defineConfig } from 'unocss'
47
+ import {
48
+ getUiLibraryContentConfig,
49
+ presetUiLibraryThemeFromTokens,
50
+ presetUiLibraryUtils,
51
+ } from '@aleph-alpha/ui-library/config'
52
+ import presetWind from '@unocss/preset-wind4'
53
+ import presetAnimations from 'unocss-preset-animations'
54
+ import presetShadcn from 'unocss-preset-shadcn'
55
+
56
+ export default defineConfig({
57
+ ...getUiLibraryContentConfig(),
58
+ presets: [
59
+ presetWind(),
60
+ presetAnimations(),
61
+ presetShadcn({ color: 'neutral', darkSelector: 'html.dark' }),
62
+ // Must come AFTER presetShadcn — bundles token CSS vars, colors, and typography
63
+ presetUiLibraryThemeFromTokens(),
64
+ presetUiLibraryUtils(),
65
+ ],
66
+ })
67
+ ```
68
+
69
+ **What each part does:**
70
+
71
+ | Config | Purpose |
72
+ |--------|---------|
73
+ | `getUiLibraryContentConfig()` | Scans `node_modules/@aleph-alpha/ui-library` for class usage so UnoCSS generates the right utilities |
74
+ | `presetWind()` | Tailwind-compatible utility classes (must be **wind4**, not wind3) |
75
+ | `presetAnimations()` | CSS animation utilities for transitions |
76
+ | `presetShadcn()` | Base shadcn CSS variables and color utilities |
77
+ | `presetUiLibraryThemeFromTokens()` | Token preset — must come **after** `presetShadcn`. Bundles design token CSS variables (light/dark), token-based theme colors (`bg-background-surface-secondary`, etc.), semantic color overrides (`background`, `foreground`, `modal`, etc.), and typography classes (`heading-48-bold`, `body-14-normal`, `label-12-medium`, etc.) |
78
+ | `presetUiLibraryUtils()` | Utility rules required by library components — Tailwind v4 CSS variable syntax (`w-(--var)`, `h-(--var)`, etc.) not yet supported by preset-wind4 |
79
+
80
+ ### 3. Vite config
81
+
82
+ Ensure your `vite.config.ts` includes both the Vue plugin and the UnoCSS Vite plugin:
83
+
84
+ ```typescript
85
+ // vite.config.ts
86
+ import { defineConfig } from 'vite'
87
+ import vue from '@vitejs/plugin-vue'
88
+ import UnoCSS from 'unocss/vite'
89
+
90
+ export default defineConfig({
91
+ plugins: [vue(), UnoCSS()],
92
+ })
93
+ ```
94
+
95
+ ### 4. Global styles and app entry
96
+
97
+ In your main entry (e.g. `main.ts`), import the UnoCSS reset and the generated CSS. These imports must run before your app mounts so that component styles apply everywhere.
98
+
99
+ ```typescript
100
+ // main.ts
101
+ import '@unocss/reset/tailwind.css'
102
+ import 'virtual:uno.css'
103
+
104
+ import { createApp } from 'vue'
105
+ import App from './App.vue'
106
+
107
+ createApp(App).mount('#app')
108
+ ```
109
+
110
+ ---
111
+
112
+ ## Test it
113
+
114
+ Use a component to confirm everything works:
115
+
116
+ ```vue
117
+ <script setup lang="ts">
118
+ import { UiButton, UiBadge } from '@aleph-alpha/ui-library'
119
+ </script>
120
+
121
+ <template>
122
+ <div class="min-h-screen bg-background text-foreground p-8">
123
+ <UiButton>Click me</UiButton>
124
+ <UiBadge variant="secondary">New</UiBadge>
125
+ </div>
126
+ </template>
127
+ ```
128
+
129
+ Run your dev server (e.g. `pnpm dev`) and open the app. The button and badge should render with the correct styles and colors matching [Storybook](https://dev.aleph-alpha.de/ui-library).
130
+
131
+ **If colors look wrong or hover states don't work:**
132
+
133
+ - Verify you're using `@unocss/preset-wind4` (not wind3) — check your `package.json`
134
+ - Verify `presetUiLibraryThemeFromTokens()` comes **after** `presetShadcn()` in the presets array
135
+ - Clear the Vite cache: `rm -rf node_modules/.vite && pnpm dev`
136
+
137
+ ---
138
+
139
+ ## Dark mode
140
+
141
+ The library supports dark mode via the `html.dark` class. Toggle it on the document element:
142
+
143
+ ```typescript
144
+ // Toggle dark mode
145
+ document.documentElement.classList.toggle('dark')
146
+ ```
147
+
148
+ Both `presetShadcn` and `presetUiLibraryThemeFromTokens` default to `darkSelector: 'html.dark'`, so CSS variables switch correctly out of the box.
149
+
150
+ ---
151
+
152
+ ## Config exports reference
153
+
154
+ All config functions are exported from `@aleph-alpha/ui-library/config`:
155
+
156
+ | Export | Description |
157
+ |--------|-------------|
158
+ | `getUiLibraryContentConfig()` | UnoCSS content/pipeline config to scan library classes |
159
+ | `presetUiLibraryThemeFromTokens(options?)` | **Token preset.** Bundles token CSS variables, theme colors, semantic overrides, and typography classes. Options: `darkSelector` (default: `'html.dark'`), `includeAllTokens` (default: `true`), `extend`, `theme` |
160
+ | `presetUiLibraryUtils()` | Utility rules required by library components (`w-(--var)`, `h-(--var)`, etc.) |
161
+ | `presetUiLibraryTheme(theme, options?)` | Low-level preset with manually provided theme variables (for custom themes) |
162
+ | `getUiLibraryThemeFromTokens()` | Returns the raw theme object derived from `tokens.json` |
163
+ | `getUiLibraryTokenVars()` | Returns all token-based CSS variables for light and dark modes |
164
+ | `getUiLibraryTokenColors()` | Returns UnoCSS theme colors config for all token-based colors (included automatically by `presetUiLibraryThemeFromTokens`) |
165
+ | `getUiLibraryTypographyShortcuts()` | Returns typography class definitions as `[className, cssProperties]` tuples (included automatically by `presetUiLibraryThemeFromTokens`) |
166
+ | `defineThemeConfig(config)` | Type-safe helper for external theme config files |
167
+
168
+ ---
169
+
170
+ ## MCP Integration
171
+
172
+ Enable AI assistants (Cursor, Claude Code, etc.) to discover and use UI library components.
173
+
174
+ !!! warning "Run from your project directory"
175
+ Run the installer from the **project that uses the UI library** (your app root). It detects the root from the current working directory and writes `.mcp.json` or `.cursor/mcp.json` there. Running it from the wrong folder will use the wrong root or fail.
176
+
177
+ **1. Run the installer**
178
+
179
+ ```bash
180
+ npx @aleph-alpha/lib-mcp mcp-install
181
+ ```
182
+
183
+ **2. For Cursor**: add the Cursor-specific config:
184
+
185
+ ```bash
186
+ npx @aleph-alpha/lib-mcp mcp-install --cursor
187
+ ```
188
+
189
+ **3. Restart your editor** so it picks up the MCP server.
190
+
191
+ **Available tools:**
192
+
193
+ | Tool | Description |
194
+ |------|-------------|
195
+ | `list_components` | Browse all components, optionally filter by name/category/description |
196
+ | `get_component_docs` | Get full documentation for a component including props, examples, and usage |
197
+ | `get_setup_guide` | Get this setup guide (so AI assistants can configure projects correctly) |
198
+
199
+ ### Or add the server manually
200
+
201
+ If you prefer not to run the installer, add the MCP server yourself.
202
+
203
+ 1. **Where to put the config** (see your editor docs):
204
+
205
+ | Editor | Config location / docs |
206
+ |--------|------------------------|
207
+ | **Cursor** | [Using mcp.json](https://cursor.com/docs/context/mcp#using-mcpjson) — use `.cursor/mcp.json` in your project or `~/.cursor/mcp.json` globally |
208
+ | **VS Code** | [Add and manage MCP servers](https://code.visualstudio.com/docs/copilot/customization/mcp-servers#_configure-the-mcpjson-file) — use `.vscode/mcp.json` (workspace) or user config |
209
+ | **Claude Code** | [Add a local stdio server](https://code.claude.com/docs/en/mcp#option-3-add-a-local-stdio-server) — use `.mcp.json` in your project (project scope) |
210
+
211
+ 2. **Add this server** to your `mcpServers`:
212
+
213
+ ```json
214
+ {
215
+ "mcpServers": {
216
+ "ui-library": {
217
+ "command": "npx",
218
+ "args": ["-y", "@aleph-alpha/lib-mcp", "serve"]
219
+ }
220
+ }
221
+ }
222
+ ```
223
+
224
+ 3. **Restart your editor** so it picks up the MCP server.
225
+
226
+ ---
227
+
228
+ ## Contribute
229
+
230
+ To contribute to the UI library (guidelines, support, and how to get involved), see [Contributing](contributing.md).
@@ -0,0 +1,15 @@
1
+ # Standards & Guidelines
2
+
3
+ ---
4
+
5
+ ## Design Principles
6
+
7
+ Coming soon.
8
+
9
+ ## Dos and Don'ts (Visual Gallery)
10
+
11
+ Coming soon.
12
+
13
+ ## ♿ Accessibility (A11y) Standards
14
+
15
+ Coming soon.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aleph-alpha/ui-library",
3
- "version": "1.13.0",
3
+ "version": "1.15.0",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "main": "dist/system/lib.js",
@@ -22,7 +22,8 @@
22
22
  "config.js",
23
23
  "config.d.ts",
24
24
  "tailwind.preset.js",
25
- "tokens.json"
25
+ "tokens.json",
26
+ "docs/public-docs"
26
27
  ],
27
28
  "description": "Next-gen UI Library for Vue.js projects.",
28
29
  "author": "Aleph Alpha GmbH",
@@ -31,7 +31,7 @@ const meta: Meta<typeof UiCalendar> = {
31
31
  weekStartsOn: {
32
32
  control: 'select',
33
33
  options: [0, 1, 2, 3, 4, 5, 6],
34
- description: 'The day of the week to start on. 0 = Sunday, 1 = Monday, etc.',
34
+ description: 'The day of the week to start on. 0 is the locale default first day.',
35
35
  },
36
36
  numberOfMonths: {
37
37
  control: { type: 'number', min: 1, max: 3 },
@@ -392,7 +392,6 @@ const date = ref<DateValue>()
392
392
  <UiCalendar
393
393
  v-model="date"
394
394
  locale="de"
395
- :week-starts-on="1"
396
395
  weekday-format="short"
397
396
  class="rounded-md border shadow-sm"
398
397
  />
@@ -405,7 +404,6 @@ const date = ref<DateValue>()
405
404
  export const GermanLocale: Story = {
406
405
  args: {
407
406
  locale: 'de',
408
- weekStartsOn: 1,
409
407
  weekdayFormat: 'short',
410
408
  },
411
409
  render: (args) => ({
@@ -419,7 +417,6 @@ export const GermanLocale: Story = {
419
417
  v-model="date"
420
418
  :default-placeholder="placeholder"
421
419
  :locale="args.locale"
422
- :week-starts-on="args.weekStartsOn"
423
420
  :weekday-format="args.weekdayFormat"
424
421
  :disabled="args.disabled"
425
422
  class="rounded-md border shadow-sm"
@@ -105,7 +105,7 @@ export interface UiCalendarProps {
105
105
 
106
106
  /**
107
107
  * The day of the week to start on.
108
- * @default 0 (Sunday)
108
+ * @default 0
109
109
  */
110
110
  weekStartsOn?: UiCalendarWeekStartsOn;
111
111
 
@@ -332,7 +332,7 @@ export const Group: Story = {
332
332
  to open the command palette
333
333
  </p>
334
334
 
335
- <div class="mt-8 w-full max-w-md rounded-lg border bg-popover p-4 shadow-lg">
335
+ <div class="mt-8 w-full max-w-md rounded-lg border bg-background-surface-floating p-4 shadow-lg">
336
336
  <div class="flex items-center gap-2 border-b pb-3">
337
337
  <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="text-muted-foreground"><circle cx="11" cy="11" r="8"/><path d="m21 21-4.3-4.3"/></svg>
338
338
  <span class="flex-1 text-sm text-muted-foreground">Type a command or search...</span>