@dlbcodes/ui 0.8.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/LICENSE +21 -0
- package/README.md +70 -0
- package/dist/index.js +3252 -0
- package/dist/lib/components/form/Checkbox.test.d.ts +1 -0
- package/dist/lib/components/form/Checkbox.vue.d.ts +24 -0
- package/dist/lib/components/form/Input.test.d.ts +1 -0
- package/dist/lib/components/form/Input.vue.d.ts +49 -0
- package/dist/lib/components/form/Switch.test.d.ts +1 -0
- package/dist/lib/components/form/Switch.vue.d.ts +17 -0
- package/dist/lib/components/form/Textarea.test.d.ts +1 -0
- package/dist/lib/components/form/Textarea.vue.d.ts +52 -0
- package/dist/lib/components/form/_shared/SearchInput.vue.d.ts +15 -0
- package/dist/lib/components/form/combobox/Combobox.test.d.ts +1 -0
- package/dist/lib/components/form/combobox/Combobox.vue.d.ts +31 -0
- package/dist/lib/components/form/combobox/ComboboxContent.vue.d.ts +24 -0
- package/dist/lib/components/form/combobox/ComboboxEmpty.vue.d.ts +17 -0
- package/dist/lib/components/form/combobox/ComboboxInput.vue.d.ts +13 -0
- package/dist/lib/components/form/combobox/ComboboxItem.vue.d.ts +29 -0
- package/dist/lib/components/form/combobox/context.d.ts +18 -0
- package/dist/lib/components/form/combobox/index.d.ts +5 -0
- package/dist/lib/components/form/dropdown/Dropdown.test.d.ts +1 -0
- package/dist/lib/components/form/dropdown/Dropdown.vue.d.ts +27 -0
- package/dist/lib/components/form/dropdown/DropdownContent.vue.d.ts +25 -0
- package/dist/lib/components/form/dropdown/DropdownItem.vue.d.ts +28 -0
- package/dist/lib/components/form/dropdown/DropdownTrigger.vue.d.ts +24 -0
- package/dist/lib/components/form/dropdown/index.d.ts +4 -0
- package/dist/lib/components/form/field/Field.test.d.ts +1 -0
- package/dist/lib/components/form/field/Field.vue.d.ts +31 -0
- package/dist/lib/components/form/field/FieldContent.vue.d.ts +21 -0
- package/dist/lib/components/form/field/FieldDescription.vue.d.ts +21 -0
- package/dist/lib/components/form/field/FieldError.vue.d.ts +21 -0
- package/dist/lib/components/form/field/FieldLabel.vue.d.ts +22 -0
- package/dist/lib/components/form/field/index.d.ts +5 -0
- package/dist/lib/components/form/multiselect/MultiSelect.test.d.ts +1 -0
- package/dist/lib/components/form/multiselect/MultiSelect.vue.d.ts +51 -0
- package/dist/lib/components/form/multiselect/MultiSelectContent.vue.d.ts +25 -0
- package/dist/lib/components/form/multiselect/MultiSelectItem.vue.d.ts +24 -0
- package/dist/lib/components/form/multiselect/MultiSelectSearch.vue.d.ts +7 -0
- package/dist/lib/components/form/multiselect/MultiSelectTrigger.vue.d.ts +29 -0
- package/dist/lib/components/form/multiselect/context.d.ts +13 -0
- package/dist/lib/components/form/multiselect/index.d.ts +5 -0
- package/dist/lib/components/form/multiselect/use-context.d.ts +2 -0
- package/dist/lib/components/form/select/Select.test.d.ts +1 -0
- package/dist/lib/components/form/select/Select.vue.d.ts +33 -0
- package/dist/lib/components/form/select/SelectContent.vue.d.ts +28 -0
- package/dist/lib/components/form/select/SelectItem.vue.d.ts +34 -0
- package/dist/lib/components/form/select/SelectSearch.vue.d.ts +7 -0
- package/dist/lib/components/form/select/SelectTrigger.vue.d.ts +31 -0
- package/dist/lib/components/form/select/context.d.ts +32 -0
- package/dist/lib/components/form/select/index.d.ts +6 -0
- package/dist/lib/components/overlays/modal/Modal.test.d.ts +1 -0
- package/dist/lib/components/overlays/modal/Modal.vue.d.ts +49 -0
- package/dist/lib/components/overlays/modal/ModalClose.vue.d.ts +21 -0
- package/dist/lib/components/overlays/modal/ModalContent.vue.d.ts +21 -0
- package/dist/lib/components/overlays/modal/ModalDescription.vue.d.ts +21 -0
- package/dist/lib/components/overlays/modal/ModalFooter.vue.d.ts +21 -0
- package/dist/lib/components/overlays/modal/ModalHeader.vue.d.ts +21 -0
- package/dist/lib/components/overlays/modal/ModalTitle.vue.d.ts +21 -0
- package/dist/lib/components/overlays/modal/index.d.ts +7 -0
- package/dist/lib/components/overlays/modal/modal-context.d.ts +17 -0
- package/dist/lib/components/overlays/popover/Popover.test.d.ts +1 -0
- package/dist/lib/components/overlays/popover/Popover.vue.d.ts +27 -0
- package/dist/lib/components/overlays/popover/PopoverContent.vue.d.ts +27 -0
- package/dist/lib/components/overlays/popover/PopoverTrigger.vue.d.ts +24 -0
- package/dist/lib/components/overlays/popover/index.d.ts +3 -0
- package/dist/lib/components/primitives/Avatar.test.d.ts +1 -0
- package/dist/lib/components/primitives/Avatar.vue.d.ts +14 -0
- package/dist/lib/components/primitives/Badge.test.d.ts +1 -0
- package/dist/lib/components/primitives/Badge.vue.d.ts +25 -0
- package/dist/lib/components/primitives/Button.test.d.ts +1 -0
- package/dist/lib/components/primitives/Button.vue.d.ts +37 -0
- package/dist/lib/components/primitives/Kbd.test.d.ts +1 -0
- package/dist/lib/components/primitives/Kbd.vue.d.ts +21 -0
- package/dist/lib/components/primitives/KbdGroup.test.d.ts +1 -0
- package/dist/lib/components/primitives/KbdGroup.vue.d.ts +27 -0
- package/dist/lib/components/primitives/Label.test.d.ts +1 -0
- package/dist/lib/components/primitives/Label.vue.d.ts +23 -0
- package/dist/lib/components/primitives/Progress.test.d.ts +1 -0
- package/dist/lib/components/primitives/Progress.vue.d.ts +13 -0
- package/dist/lib/components/primitives/Separator.test.d.ts +1 -0
- package/dist/lib/components/primitives/Separator.vue.d.ts +12 -0
- package/dist/lib/components/primitives/Skeleton.test.d.ts +1 -0
- package/dist/lib/components/primitives/Skeleton.vue.d.ts +6 -0
- package/dist/lib/components/primitives/Spinner.test.d.ts +1 -0
- package/dist/lib/components/primitives/Spinner.vue.d.ts +9 -0
- package/dist/lib/components/primitives/alert/Alert.test.d.ts +1 -0
- package/dist/lib/components/primitives/alert/Alert.vue.d.ts +27 -0
- package/dist/lib/components/primitives/alert/AlertDescription.vue.d.ts +21 -0
- package/dist/lib/components/primitives/alert/AlertTitle.vue.d.ts +21 -0
- package/dist/lib/components/primitives/alert/index.d.ts +3 -0
- package/dist/lib/components/primitives/disclosure/Disclosure.test.d.ts +1 -0
- package/dist/lib/components/primitives/disclosure/Disclosure.vue.d.ts +27 -0
- package/dist/lib/components/primitives/disclosure/DisclosureContent.vue.d.ts +21 -0
- package/dist/lib/components/primitives/disclosure/DisclosureTrigger.vue.d.ts +23 -0
- package/dist/lib/components/primitives/disclosure/index.d.ts +3 -0
- package/dist/lib/components/primitives/empty/Empty.test.d.ts +1 -0
- package/dist/lib/components/primitives/empty/Empty.vue.d.ts +21 -0
- package/dist/lib/components/primitives/empty/EmptyContent.vue.d.ts +21 -0
- package/dist/lib/components/primitives/empty/EmptyDescription.vue.d.ts +21 -0
- package/dist/lib/components/primitives/empty/EmptyHeader.vue.d.ts +21 -0
- package/dist/lib/components/primitives/empty/EmptyMedia.vue.d.ts +25 -0
- package/dist/lib/components/primitives/empty/EmptyTitle.vue.d.ts +21 -0
- package/dist/lib/components/primitives/empty/index.d.ts +6 -0
- package/dist/lib/components/primitives/index.d.ts +16 -0
- package/dist/lib/components/primitives/panel/Panel.test.d.ts +1 -0
- package/dist/lib/components/primitives/panel/Panel.vue.d.ts +21 -0
- package/dist/lib/components/primitives/panel/PanelContent.vue.d.ts +21 -0
- package/dist/lib/components/primitives/panel/PanelFooter.vue.d.ts +21 -0
- package/dist/lib/components/primitives/panel/PanelHeader.vue.d.ts +21 -0
- package/dist/lib/components/primitives/panel/index.d.ts +4 -0
- package/dist/lib/components/primitives/sidebar/Sidebar.test.d.ts +1 -0
- package/dist/lib/components/primitives/sidebar/Sidebar.vue.d.ts +22 -0
- package/dist/lib/components/primitives/sidebar/SidebarContent.vue.d.ts +21 -0
- package/dist/lib/components/primitives/sidebar/SidebarFooter.vue.d.ts +21 -0
- package/dist/lib/components/primitives/sidebar/SidebarGroup.vue.d.ts +23 -0
- package/dist/lib/components/primitives/sidebar/SidebarHeader.vue.d.ts +21 -0
- package/dist/lib/components/primitives/sidebar/SidebarItem.vue.d.ts +34 -0
- package/dist/lib/components/primitives/sidebar/SidebarProvider.vue.d.ts +17 -0
- package/dist/lib/components/primitives/sidebar/SidebarTrigger.vue.d.ts +6 -0
- package/dist/lib/components/primitives/sidebar/context.d.ts +12 -0
- package/dist/lib/components/primitives/sidebar/index.d.ts +9 -0
- package/dist/lib/components/primitives/tabs/Tabs.test.d.ts +1 -0
- package/dist/lib/components/primitives/tabs/Tabs.vue.d.ts +34 -0
- package/dist/lib/components/primitives/tabs/TabsContent.vue.d.ts +21 -0
- package/dist/lib/components/primitives/tabs/TabsList.vue.d.ts +21 -0
- package/dist/lib/components/primitives/tabs/TabsPanels.vue.d.ts +21 -0
- package/dist/lib/components/primitives/tabs/TabsTrigger.vue.d.ts +24 -0
- package/dist/lib/components/primitives/tabs/index.d.ts +5 -0
- package/dist/lib/core/field-context.d.ts +24 -0
- package/dist/lib/core/placement.d.ts +1 -0
- package/dist/lib/core/transitions.d.ts +8 -0
- package/dist/lib/index.d.ts +19 -0
- package/dist/lib/styles/tokens.css +125 -0
- package/dist/lib/utils/cn.d.ts +2 -0
- package/dist/lib/variants/alert.d.ts +5 -0
- package/dist/lib/variants/avatar.d.ts +5 -0
- package/dist/lib/variants/badge.d.ts +5 -0
- package/dist/lib/variants/button.d.ts +6 -0
- package/dist/lib/variants/empty.d.ts +5 -0
- package/dist/lib/variants/input.d.ts +7 -0
- package/dist/lib/variants/menu-item.d.ts +5 -0
- package/dist/lib/variants/modal.d.ts +5 -0
- package/dist/lib/variants/popover.d.ts +5 -0
- package/dist/lib/variants/separator.d.ts +5 -0
- package/dist/lib/variants/sidebar.d.ts +5 -0
- package/dist/lib/variants/tabs.d.ts +6 -0
- package/package.json +68 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Daniel L.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# @dlbcodes/ui
|
|
2
|
+
|
|
3
|
+
A personal, reusable component library for Vue 3 — tokenized, accessible, and built to be composed.
|
|
4
|
+
|
|
5
|
+
## Goal
|
|
6
|
+
|
|
7
|
+
A standalone design system to drop into any Vue project: a small set of well-made,
|
|
8
|
+
consistent components instead of rebuilding buttons, inputs, and modals from scratch
|
|
9
|
+
every time. The philosophy is shadcn-inspired — compound components you compose
|
|
10
|
+
(`Field` + `Label` + `Input`, `Modal` + `ModalHeader` + `ModalContent`) rather than
|
|
11
|
+
monolithic components with dozens of props.
|
|
12
|
+
|
|
13
|
+
## Built with
|
|
14
|
+
|
|
15
|
+
- **Vue 3** + **TypeScript**
|
|
16
|
+
- **Vite** (library build)
|
|
17
|
+
- **Tailwind CSS v4** with semantic design tokens
|
|
18
|
+
- **Headless UI** + **Float** for accessible overlays
|
|
19
|
+
- **Vitest** for component tests
|
|
20
|
+
|
|
21
|
+
## Installation
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
npm install @dlbcodes/ui
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Peer dependencies:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
npm install vue vue-router
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Setup (Tailwind v4)
|
|
34
|
+
|
|
35
|
+
In your main CSS, import the tokens and point Tailwind at the package so it scans
|
|
36
|
+
the component classes:
|
|
37
|
+
|
|
38
|
+
```css
|
|
39
|
+
@import "tailwindcss";
|
|
40
|
+
@import "@dlbcodes/ui/tokens.css";
|
|
41
|
+
@source "../node_modules/@dlbcodes/ui/dist";
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Usage
|
|
45
|
+
|
|
46
|
+
```vue
|
|
47
|
+
<script setup lang="ts">
|
|
48
|
+
import { Button } from "@dlbcodes/ui";
|
|
49
|
+
</script>
|
|
50
|
+
|
|
51
|
+
<template>
|
|
52
|
+
<Button variant="primary">Click me</Button>
|
|
53
|
+
</template>
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Principles
|
|
57
|
+
|
|
58
|
+
- **Tokenized** — colors, spacing, and surfaces come from semantic design tokens,
|
|
59
|
+
not hardcoded values, so the whole system is themeable from one place.
|
|
60
|
+
- **Accessible** — ARIA wiring, focus management, and labels are built in, judged
|
|
61
|
+
per component.
|
|
62
|
+
- **Composable** — small parts that combine, over large components with many props.
|
|
63
|
+
|
|
64
|
+
## Documentation
|
|
65
|
+
|
|
66
|
+
Full component docs and live examples: [ui.dlbcodes.com](https://ui.dlbcodes.com)
|
|
67
|
+
|
|
68
|
+
## License
|
|
69
|
+
|
|
70
|
+
MIT © Daniel Lobo
|