akaza-ui 0.0.1-alpha

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 (69) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +115 -0
  3. package/dist/akaza-ui.cjs +3292 -0
  4. package/dist/akaza-ui.cjs.map +1 -0
  5. package/dist/akaza-ui.css +384 -0
  6. package/dist/akaza-ui.js +3292 -0
  7. package/dist/akaza-ui.js.map +1 -0
  8. package/dist/nuxt.cjs +43 -0
  9. package/dist/nuxt.cjs.map +1 -0
  10. package/dist/nuxt.js +44 -0
  11. package/dist/nuxt.js.map +1 -0
  12. package/dist/types/components/accordion/Accordion.vue.d.ts +51 -0
  13. package/dist/types/components/accordion/index.d.ts +37 -0
  14. package/dist/types/components/alert-dialog/AlertDialog.vue.d.ts +60 -0
  15. package/dist/types/components/alert-dialog/index.d.ts +21 -0
  16. package/dist/types/components/avatar/Avatar.vue.d.ts +25 -0
  17. package/dist/types/components/avatar/index.d.ts +17 -0
  18. package/dist/types/components/button/Button.vue.d.ts +23 -0
  19. package/dist/types/components/button/index.d.ts +20 -0
  20. package/dist/types/components/checkbox/Checkbox.vue.d.ts +33 -0
  21. package/dist/types/components/checkbox/index.d.ts +29 -0
  22. package/dist/types/components/collapsible/Collapsible.vue.d.ts +48 -0
  23. package/dist/types/components/collapsible/index.d.ts +13 -0
  24. package/dist/types/components/dialog/Dialog.vue.d.ts +61 -0
  25. package/dist/types/components/dialog/index.d.ts +21 -0
  26. package/dist/types/components/drawer/Drawer.vue.d.ts +63 -0
  27. package/dist/types/components/drawer/index.d.ts +23 -0
  28. package/dist/types/components/menu/Menu.vue.d.ts +102 -0
  29. package/dist/types/components/menu/MenuPanel.vue.d.ts +14 -0
  30. package/dist/types/components/menu/context.d.ts +17 -0
  31. package/dist/types/components/menu/index.d.ts +54 -0
  32. package/dist/types/components/overlay/OverlayProvider.vue.d.ts +2 -0
  33. package/dist/types/components/overlay/index.d.ts +1 -0
  34. package/dist/types/components/popover/Popover.vue.d.ts +55 -0
  35. package/dist/types/components/popover/index.d.ts +14 -0
  36. package/dist/types/components/progress/Progress.vue.d.ts +32 -0
  37. package/dist/types/components/progress/index.d.ts +14 -0
  38. package/dist/types/components/radio-group/RadioGroup.vue.d.ts +37 -0
  39. package/dist/types/components/radio-group/index.d.ts +30 -0
  40. package/dist/types/components/separator/Separator.vue.d.ts +3 -0
  41. package/dist/types/components/separator/index.d.ts +6 -0
  42. package/dist/types/components/switch/Switch.vue.d.ts +33 -0
  43. package/dist/types/components/switch/index.d.ts +29 -0
  44. package/dist/types/components/tabs/Tabs.vue.d.ts +37 -0
  45. package/dist/types/components/tabs/index.d.ts +28 -0
  46. package/dist/types/components/toggle/Toggle.vue.d.ts +29 -0
  47. package/dist/types/components/toggle/index.d.ts +11 -0
  48. package/dist/types/components/tooltip/Tooltip.vue.d.ts +38 -0
  49. package/dist/types/components/tooltip/index.d.ts +17 -0
  50. package/dist/types/composables/alert-dialog/index.d.ts +2 -0
  51. package/dist/types/composables/alert-dialog/useAlertDialog.d.ts +8 -0
  52. package/dist/types/composables/dialog/index.d.ts +2 -0
  53. package/dist/types/composables/dialog/useDialog.d.ts +8 -0
  54. package/dist/types/composables/drawer/index.d.ts +2 -0
  55. package/dist/types/composables/drawer/useDrawer.d.ts +9 -0
  56. package/dist/types/composables/menu/index.d.ts +2 -0
  57. package/dist/types/composables/menu/useMenu.d.ts +8 -0
  58. package/dist/types/composables/overlay/index.d.ts +2 -0
  59. package/dist/types/composables/overlay/useOverlay.d.ts +46 -0
  60. package/dist/types/composables/popover/index.d.ts +2 -0
  61. package/dist/types/composables/popover/usePopover.d.ts +8 -0
  62. package/dist/types/composables/tooltip/index.d.ts +2 -0
  63. package/dist/types/composables/tooltip/useTooltip.d.ts +12 -0
  64. package/dist/types/index.d.ts +20 -0
  65. package/dist/types/types.d.ts +17 -0
  66. package/dist/types/utils/dismissableLayer.d.ts +4 -0
  67. package/dist/types/utils/focusScope.d.ts +10 -0
  68. package/dist/types/utils/focusable.d.ts +1 -0
  69. package/package.json +92 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026
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,115 @@
1
+ # Akaza UI
2
+
3
+ Vue-native headless UI primitives — accessible, unstyled, composable.
4
+
5
+ > **Status:** Early development. API is not stable.
6
+
7
+ ## Philosophy
8
+
9
+ Built for Vue 3, not adapted from React. Every primitive uses `v-model`, named scoped slots, and `useX` composables as first-class APIs — no sub-component trees, no `asChild`.
10
+
11
+ - **Slot-based** — `#trigger`, `#header`, `#body`, `#footer` slots keep templates flat
12
+ - **`ui` prop** — inject CSS classes per structural part (`ui.overlay`, `ui.content`, …)
13
+ - **Accessible** — WAI-ARIA roles, keyboard navigation, focus management
14
+ - **Unstyled** — `data-akaza-*` attributes and semantic class hooks; no style opinion
15
+
16
+ ## Requirements
17
+
18
+ - Vue `>=3.5.0`
19
+
20
+ ## Installation
21
+
22
+ ```sh
23
+ pnpm add akaza-ui
24
+ # or
25
+ npm install akaza-ui
26
+ ```
27
+
28
+ ## Setup
29
+
30
+ ### Vue
31
+
32
+ Import component styles once in your app entry point:
33
+
34
+ ```ts
35
+ // main.ts
36
+ import 'akaza-ui/dist/akaza-ui.css'
37
+ ```
38
+
39
+ **If you use Tailwind CSS**, declare the `akaza-reset` layer before Tailwind to allow utility classes to override component base styles:
40
+
41
+ ```css
42
+ /* main.css */
43
+ @layer akaza-reset;
44
+ @import "tailwindcss";
45
+ ```
46
+
47
+ ### Nuxt
48
+
49
+ Add the Nuxt module — it auto-registers all components and injects CSS:
50
+
51
+ ```ts
52
+ // nuxt.config.ts
53
+ export default defineNuxtConfig({
54
+ modules: ['akaza-ui/nuxt'],
55
+ })
56
+ ```
57
+
58
+ No manual CSS import or component registration needed.
59
+
60
+ ## Components
61
+
62
+ `Button` · `Toggle` · `Switch` · `Checkbox` · `RadioGroup` · `Progress` · `Avatar` · `Separator` · `Collapsible` · `Accordion` · `Tooltip` · `Popover` · `Dialog` · `AlertDialog` · `Drawer` · `Menu` · `Tabs`
63
+
64
+ ## Usage
65
+
66
+ ```vue
67
+ <script setup lang="ts">
68
+ import { Dialog } from "akaza-ui";
69
+ </script>
70
+
71
+ <template>
72
+ <Dialog
73
+ :ui="{
74
+ overlay: 'fixed inset-0 bg-black/50',
75
+ content: 'fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 bg-white rounded-xl shadow-xl w-full max-w-md',
76
+ header: 'flex items-center justify-between p-6 border-b',
77
+ body: 'p-6',
78
+ footer: 'flex justify-end gap-2 p-6 border-t',
79
+ }"
80
+ >
81
+ <template #trigger="{ toggle }">
82
+ <button @click="toggle">Open</button>
83
+ </template>
84
+
85
+ <template #header="{ close, titleId }">
86
+ <h2 :id="titleId">Dialog Title</h2>
87
+ <button @click="close">✕</button>
88
+ </template>
89
+
90
+ <template #body="{ descriptionId }">
91
+ <p :id="descriptionId">Dialog description.</p>
92
+ </template>
93
+
94
+ <template #footer="{ close }">
95
+ <button @click="close">Cancel</button>
96
+ <button @click="close">Confirm</button>
97
+ </template>
98
+ </Dialog>
99
+ </template>
100
+ ```
101
+
102
+ ## Styling
103
+
104
+ Style via the `ui` prop or target semantic classes and data attributes:
105
+
106
+ ```css
107
+ .akaza-dialog-overlay { … }
108
+ .akaza-dialog-content { … }
109
+ [data-akaza-state="open"] { … }
110
+ [data-akaza-side="bottom"] { … }
111
+ ```
112
+
113
+ ## License
114
+
115
+ MIT