@jasmine-ui/vue 0.6.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 (177) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +77 -0
  3. package/dist/components/accordion/accordion.composable.d.ts +85 -0
  4. package/dist/components/accordion/accordion.d.ts +112 -0
  5. package/dist/components/accordion/accordion.props.d.ts +44 -0
  6. package/dist/components/accordion/accordion.style.d.ts +202 -0
  7. package/dist/components/accordion/index.d.ts +1 -0
  8. package/dist/components/alert/alert.composable.d.ts +87 -0
  9. package/dist/components/alert/alert.d.ts +89 -0
  10. package/dist/components/alert/alert.props.d.ts +30 -0
  11. package/dist/components/alert/alert.style.d.ts +154 -0
  12. package/dist/components/alert/index.d.ts +1 -0
  13. package/dist/components/avatar/avatar.composable.d.ts +79 -0
  14. package/dist/components/avatar/avatar.d.ts +111 -0
  15. package/dist/components/avatar/avatar.props.d.ts +50 -0
  16. package/dist/components/avatar/avatar.style.d.ts +158 -0
  17. package/dist/components/avatar/index.d.ts +1 -0
  18. package/dist/components/badge/badge.composable.d.ts +58 -0
  19. package/dist/components/badge/badge.d.ts +85 -0
  20. package/dist/components/badge/badge.props.d.ts +35 -0
  21. package/dist/components/badge/badge.style.d.ts +146 -0
  22. package/dist/components/badge/index.d.ts +1 -0
  23. package/dist/components/button/button.composable.d.ts +14 -0
  24. package/dist/components/button/button.d.ts +96 -0
  25. package/dist/components/button/button.props.d.ts +36 -0
  26. package/dist/components/button/button.style.d.ts +88 -0
  27. package/dist/components/button/index.d.ts +1 -0
  28. package/dist/components/checkbox/checkbox.composable.d.ts +56 -0
  29. package/dist/components/checkbox/checkbox.d.ts +54 -0
  30. package/dist/components/checkbox/checkbox.props.d.ts +22 -0
  31. package/dist/components/checkbox/checkbox.style.d.ts +106 -0
  32. package/dist/components/checkbox/index.d.ts +1 -0
  33. package/dist/components/chip/chip.composable.d.ts +51 -0
  34. package/dist/components/chip/chip.d.ts +96 -0
  35. package/dist/components/chip/chip.props.d.ts +35 -0
  36. package/dist/components/chip/chip.style.d.ts +184 -0
  37. package/dist/components/chip/index.d.ts +1 -0
  38. package/dist/components/code-block/code-block.composable.d.ts +16 -0
  39. package/dist/components/code-block/code-block.d.ts +105 -0
  40. package/dist/components/code-block/code-block.props.d.ts +51 -0
  41. package/dist/components/code-block/code-block.style.d.ts +113 -0
  42. package/dist/components/code-block/index.d.ts +1 -0
  43. package/dist/components/combobox/combobox.composable.d.ts +136 -0
  44. package/dist/components/combobox/combobox.d.ts +127 -0
  45. package/dist/components/combobox/combobox.props.d.ts +52 -0
  46. package/dist/components/combobox/combobox.style.d.ts +202 -0
  47. package/dist/components/combobox/index.d.ts +1 -0
  48. package/dist/components/divider/divider.composable.d.ts +13 -0
  49. package/dist/components/divider/divider.d.ts +47 -0
  50. package/dist/components/divider/divider.props.d.ts +15 -0
  51. package/dist/components/divider/divider.style.d.ts +43 -0
  52. package/dist/components/divider/index.d.ts +1 -0
  53. package/dist/components/drawer/drawer.composable.d.ts +82 -0
  54. package/dist/components/drawer/drawer.d.ts +256 -0
  55. package/dist/components/drawer/drawer.props.d.ts +34 -0
  56. package/dist/components/drawer/drawer.style.d.ts +97 -0
  57. package/dist/components/drawer/index.d.ts +1 -0
  58. package/dist/components/dropdown/dropdown.d.ts +102 -0
  59. package/dist/components/dropdown/dropdown.props.d.ts +36 -0
  60. package/dist/components/dropdown/index.d.ts +1 -0
  61. package/dist/components/input/index.d.ts +1 -0
  62. package/dist/components/input/input.composable.d.ts +164 -0
  63. package/dist/components/input/input.d.ts +213 -0
  64. package/dist/components/input/input.props.d.ts +83 -0
  65. package/dist/components/input/input.style.d.ts +187 -0
  66. package/dist/components/kbd/index.d.ts +1 -0
  67. package/dist/components/kbd/kbd.composable.d.ts +40 -0
  68. package/dist/components/kbd/kbd.d.ts +46 -0
  69. package/dist/components/kbd/kbd.props.d.ts +20 -0
  70. package/dist/components/kbd/kbd.style.d.ts +59 -0
  71. package/dist/components/list/index.d.ts +3 -0
  72. package/dist/components/list/list.composable.d.ts +40 -0
  73. package/dist/components/list/list.d.ts +148 -0
  74. package/dist/components/list/list.props.d.ts +40 -0
  75. package/dist/components/list/list.style.d.ts +52 -0
  76. package/dist/components/list-item/index.d.ts +1 -0
  77. package/dist/components/list-item/list-item.composable.d.ts +91 -0
  78. package/dist/components/list-item/list-item.d.ts +115 -0
  79. package/dist/components/list-item/list-item.props.d.ts +43 -0
  80. package/dist/components/list-item/list-item.style.d.ts +139 -0
  81. package/dist/components/modal/index.d.ts +1 -0
  82. package/dist/components/modal/modal.composable.d.ts +114 -0
  83. package/dist/components/modal/modal.d.ts +274 -0
  84. package/dist/components/modal/modal.props.d.ts +44 -0
  85. package/dist/components/modal/modal.style.d.ts +190 -0
  86. package/dist/components/pagination/index.d.ts +1 -0
  87. package/dist/components/pagination/pagination.composable.d.ts +87 -0
  88. package/dist/components/pagination/pagination.d.ts +150 -0
  89. package/dist/components/pagination/pagination.props.d.ts +42 -0
  90. package/dist/components/pagination/pagination.style.d.ts +196 -0
  91. package/dist/components/popover/index.d.ts +1 -0
  92. package/dist/components/popover/popover.composable.d.ts +42 -0
  93. package/dist/components/popover/popover.d.ts +142 -0
  94. package/dist/components/popover/popover.props.d.ts +51 -0
  95. package/dist/components/popover/popover.style.d.ts +28 -0
  96. package/dist/components/popover-list/index.d.ts +1 -0
  97. package/dist/components/popover-list/popover-list.d.ts +158 -0
  98. package/dist/components/popover-list/popover-list.props.d.ts +73 -0
  99. package/dist/components/radio-group/index.d.ts +2 -0
  100. package/dist/components/radio-group/radio-group.composable.d.ts +13 -0
  101. package/dist/components/radio-group/radio-group.d.ts +80 -0
  102. package/dist/components/radio-group/radio-group.props.d.ts +28 -0
  103. package/dist/components/radio-group/radio-group.style.d.ts +16 -0
  104. package/dist/components/radio-group/radio.composable.d.ts +45 -0
  105. package/dist/components/radio-group/radio.d.ts +64 -0
  106. package/dist/components/radio-group/radio.props.d.ts +23 -0
  107. package/dist/components/radio-group/radio.style.d.ts +103 -0
  108. package/dist/components/select/index.d.ts +1 -0
  109. package/dist/components/select/select.composable.d.ts +115 -0
  110. package/dist/components/select/select.d.ts +123 -0
  111. package/dist/components/select/select.props.d.ts +52 -0
  112. package/dist/components/select/select.style.d.ts +199 -0
  113. package/dist/components/spinner/index.d.ts +1 -0
  114. package/dist/components/spinner/spinner.composable.d.ts +29 -0
  115. package/dist/components/spinner/spinner.d.ts +23 -0
  116. package/dist/components/spinner/spinner.props.d.ts +12 -0
  117. package/dist/components/spinner/spinner.style.d.ts +97 -0
  118. package/dist/components/switch/index.d.ts +1 -0
  119. package/dist/components/switch/switch.composable.d.ts +76 -0
  120. package/dist/components/switch/switch.d.ts +100 -0
  121. package/dist/components/switch/switch.props.d.ts +37 -0
  122. package/dist/components/switch/switch.style.d.ts +196 -0
  123. package/dist/components/table/index.d.ts +1 -0
  124. package/dist/components/table/table.composable.d.ts +162 -0
  125. package/dist/components/table/table.d.ts +162 -0
  126. package/dist/components/table/table.props.d.ts +56 -0
  127. package/dist/components/table/table.style.d.ts +193 -0
  128. package/dist/components/tabs/index.d.ts +1 -0
  129. package/dist/components/tabs/tabs.composable.d.ts +93 -0
  130. package/dist/components/tabs/tabs.d.ts +121 -0
  131. package/dist/components/tabs/tabs.props.d.ts +48 -0
  132. package/dist/components/tabs/tabs.style.d.ts +253 -0
  133. package/dist/components/text/index.d.ts +1 -0
  134. package/dist/components/text/text.composable.d.ts +12 -0
  135. package/dist/components/text/text.d.ts +56 -0
  136. package/dist/components/text/text.props.d.ts +19 -0
  137. package/dist/components/text/text.style.d.ts +83 -0
  138. package/dist/components/textarea/index.d.ts +1 -0
  139. package/dist/components/textarea/textarea.composable.d.ts +149 -0
  140. package/dist/components/textarea/textarea.d.ts +250 -0
  141. package/dist/components/textarea/textarea.props.d.ts +99 -0
  142. package/dist/components/textarea/textarea.style.d.ts +184 -0
  143. package/dist/components/toast/index.d.ts +2 -0
  144. package/dist/components/toast/toast-provider.d.ts +47 -0
  145. package/dist/components/toast/toast.composable.d.ts +16 -0
  146. package/dist/components/toast/toast.props.d.ts +14 -0
  147. package/dist/components/toast/toast.provider.d.ts +48 -0
  148. package/dist/components/toast/toast.style.d.ts +76 -0
  149. package/dist/components/tooltip/index.d.ts +1 -0
  150. package/dist/components/tooltip/tooltip.composable.d.ts +85 -0
  151. package/dist/components/tooltip/tooltip.d.ts +119 -0
  152. package/dist/components/tooltip/tooltip.props.d.ts +53 -0
  153. package/dist/components/tooltip/tooltip.style.d.ts +32 -0
  154. package/dist/composables/dismiss-shake.composable.d.ts +13 -0
  155. package/dist/css-BRq03xhW.js +3 -0
  156. package/dist/css-BT3ulMUY.js +2 -0
  157. package/dist/html-CJhGHSsv.js +2 -0
  158. package/dist/html-DM_Fd1As.js +10 -0
  159. package/dist/index.d.ts +29 -0
  160. package/dist/jasmine-ui.css +3 -0
  161. package/dist/jasmine-ui.js +11858 -0
  162. package/dist/javascript-CkfBz3il.js +3 -0
  163. package/dist/javascript-CwUFKmKO.js +2 -0
  164. package/dist/json-BPXqV38U.js +3 -0
  165. package/dist/json-DHmMgjNi.js +2 -0
  166. package/dist/jsonc-DVpPCz25.js +3 -0
  167. package/dist/jsx-CHO6wZNT.js +3 -0
  168. package/dist/main.d.ts +1 -0
  169. package/dist/rust-qf9jV5qU.js +3 -0
  170. package/dist/styles/shiki-theme.d.ts +11 -0
  171. package/dist/types/common.d.ts +89 -0
  172. package/dist/types/shared-props.d.ts +142 -0
  173. package/dist/typescript-Cil9iWXl.js +3 -0
  174. package/dist/typescript-CoNvJdtl.js +2 -0
  175. package/dist/utils/shiki.d.ts +12 -0
  176. package/dist/vue-Bgv7yiBd.js +21 -0
  177. package/package.json +133 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 HSOUMI Technology
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,77 @@
1
+ # Jasmine UI
2
+
3
+ An accessible Vue 3 component library built on [Reka UI](https://reka-ui.com) headless primitives. Styled with [Tailwind CSS](https://tailwindcss.com). Customizable through design tokens. Type-safe from end to end.
4
+
5
+ [Documentation](https://jasmineui.com) | [GitHub](https://github.com/hsoumi-technology/jasmine-ui)
6
+
7
+ ## Installation
8
+
9
+ ```bash
10
+ bun add @jasmine-ui/vue
11
+ ```
12
+
13
+ ```bash
14
+ npm install @jasmine-ui/vue
15
+ ```
16
+
17
+ ## Setup
18
+
19
+ Import the stylesheet in your app entry:
20
+
21
+ ```typescript
22
+ import '@jasmine-ui/vue/style.css';
23
+ ```
24
+
25
+ Then use components:
26
+
27
+ ```vue
28
+ <script setup>
29
+ import { Button, Input, Table } from '@jasmine-ui/vue';
30
+ </script>
31
+
32
+ <template>
33
+ <Button color="primary">Click me</Button>
34
+ </template>
35
+ ```
36
+
37
+ ## Components
38
+
39
+ 29 production-ready components across 5 categories:
40
+
41
+ | Category | Components |
42
+ |----------|-----------|
43
+ | **General** | Button, Spinner, Divider, Text |
44
+ | **Data Entry** | Input, Textarea, Checkbox, Radio Group, Switch, Select, Combobox |
45
+ | **Data Display** | Accordion, Avatar, Badge, Chip, List, Code Block, Kbd, Tabs, Pagination, Table |
46
+ | **Feedback** | Alert, Toast |
47
+ | **Overlay** | Dropdown, Modal, Drawer, Popover, Tooltip |
48
+
49
+ ## Features
50
+
51
+ - **Accessible** — Built on Reka UI with full ARIA support and keyboard navigation
52
+ - **Dark mode** — First-class dark mode via CSS custom properties
53
+ - **Design tokens** — Fully customizable through `--j-*` CSS variables, no build step required
54
+ - **TypeScript** — Complete type safety with exported types for every component
55
+ - **Standard Schema** — Form validation via Standard Schema v1 (Zod, Valibot, ArkType)
56
+ - **Tailwind CSS** — Styled with Tailwind CSS v4 + Tailwind Variants
57
+
58
+ ## Requirements
59
+
60
+ - Vue 3.5+ or Vue 4.0+
61
+ - Tailwind CSS 4
62
+
63
+ ## Development
64
+
65
+ ```bash
66
+ bun install # Install dependencies
67
+ bun run docs:dev # Documentation site
68
+ bun run storybook:dev # Storybook
69
+ bun run test:unit # Unit tests
70
+ bun run biome:check # Lint & format
71
+ bun run type:check # Type check
72
+ bun run build # Build library
73
+ ```
74
+
75
+ ## License
76
+
77
+ [MIT](./LICENSE)
@@ -0,0 +1,85 @@
1
+ import { ExtractPropTypes } from 'vue';
2
+ import { accordionProps } from './accordion.props';
3
+ type AccordionProps = ExtractPropTypes<typeof accordionProps>;
4
+ /**
5
+ * Composable that handles Accordion component logic.
6
+ * Generates TV classes from variant props.
7
+ */
8
+ export declare const useAccordion: (props: AccordionProps) => {
9
+ classes: import('vue').ComputedRef<{
10
+ base: (slotProps?: ({
11
+ variant?: "default" | "bordered" | "splitted" | undefined;
12
+ color?: "default" | "primary" | "danger" | "success" | "warning" | undefined;
13
+ size?: "md" | "sm" | "lg" | undefined;
14
+ radius?: "md" | "sm" | "lg" | "none" | "full" | undefined;
15
+ } & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | undefined) => string;
16
+ item: (slotProps?: ({
17
+ variant?: "default" | "bordered" | "splitted" | undefined;
18
+ color?: "default" | "primary" | "danger" | "success" | "warning" | undefined;
19
+ size?: "md" | "sm" | "lg" | undefined;
20
+ radius?: "md" | "sm" | "lg" | "none" | "full" | undefined;
21
+ } & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | undefined) => string;
22
+ header: (slotProps?: ({
23
+ variant?: "default" | "bordered" | "splitted" | undefined;
24
+ color?: "default" | "primary" | "danger" | "success" | "warning" | undefined;
25
+ size?: "md" | "sm" | "lg" | undefined;
26
+ radius?: "md" | "sm" | "lg" | "none" | "full" | undefined;
27
+ } & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | undefined) => string;
28
+ trigger: (slotProps?: ({
29
+ variant?: "default" | "bordered" | "splitted" | undefined;
30
+ color?: "default" | "primary" | "danger" | "success" | "warning" | undefined;
31
+ size?: "md" | "sm" | "lg" | undefined;
32
+ radius?: "md" | "sm" | "lg" | "none" | "full" | undefined;
33
+ } & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | undefined) => string;
34
+ chevron: (slotProps?: ({
35
+ variant?: "default" | "bordered" | "splitted" | undefined;
36
+ color?: "default" | "primary" | "danger" | "success" | "warning" | undefined;
37
+ size?: "md" | "sm" | "lg" | undefined;
38
+ radius?: "md" | "sm" | "lg" | "none" | "full" | undefined;
39
+ } & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | undefined) => string;
40
+ content: (slotProps?: ({
41
+ variant?: "default" | "bordered" | "splitted" | undefined;
42
+ color?: "default" | "primary" | "danger" | "success" | "warning" | undefined;
43
+ size?: "md" | "sm" | "lg" | undefined;
44
+ radius?: "md" | "sm" | "lg" | "none" | "full" | undefined;
45
+ } & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | undefined) => string;
46
+ } & {
47
+ base: (slotProps?: ({
48
+ variant?: "default" | "bordered" | "splitted" | undefined;
49
+ color?: "default" | "primary" | "danger" | "success" | "warning" | undefined;
50
+ size?: "md" | "sm" | "lg" | undefined;
51
+ radius?: "md" | "sm" | "lg" | "none" | "full" | undefined;
52
+ } & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | undefined) => string;
53
+ item: (slotProps?: ({
54
+ variant?: "default" | "bordered" | "splitted" | undefined;
55
+ color?: "default" | "primary" | "danger" | "success" | "warning" | undefined;
56
+ size?: "md" | "sm" | "lg" | undefined;
57
+ radius?: "md" | "sm" | "lg" | "none" | "full" | undefined;
58
+ } & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | undefined) => string;
59
+ header: (slotProps?: ({
60
+ variant?: "default" | "bordered" | "splitted" | undefined;
61
+ color?: "default" | "primary" | "danger" | "success" | "warning" | undefined;
62
+ size?: "md" | "sm" | "lg" | undefined;
63
+ radius?: "md" | "sm" | "lg" | "none" | "full" | undefined;
64
+ } & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | undefined) => string;
65
+ trigger: (slotProps?: ({
66
+ variant?: "default" | "bordered" | "splitted" | undefined;
67
+ color?: "default" | "primary" | "danger" | "success" | "warning" | undefined;
68
+ size?: "md" | "sm" | "lg" | undefined;
69
+ radius?: "md" | "sm" | "lg" | "none" | "full" | undefined;
70
+ } & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | undefined) => string;
71
+ chevron: (slotProps?: ({
72
+ variant?: "default" | "bordered" | "splitted" | undefined;
73
+ color?: "default" | "primary" | "danger" | "success" | "warning" | undefined;
74
+ size?: "md" | "sm" | "lg" | undefined;
75
+ radius?: "md" | "sm" | "lg" | "none" | "full" | undefined;
76
+ } & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | undefined) => string;
77
+ content: (slotProps?: ({
78
+ variant?: "default" | "bordered" | "splitted" | undefined;
79
+ color?: "default" | "primary" | "danger" | "success" | "warning" | undefined;
80
+ size?: "md" | "sm" | "lg" | undefined;
81
+ radius?: "md" | "sm" | "lg" | "none" | "full" | undefined;
82
+ } & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | undefined) => string;
83
+ } & {}>;
84
+ };
85
+ export {};
@@ -0,0 +1,112 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: Partial<Record<string, (_: {}) => any>>;
4
+ refs: {};
5
+ rootEl: any;
6
+ };
7
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
8
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
9
+ items: {
10
+ type: import('vue').PropType<import('../..').AccordionItem[]>;
11
+ default: () => never[];
12
+ };
13
+ modelValue: {
14
+ type: import('vue').PropType<string | string[] | undefined>;
15
+ default: undefined;
16
+ };
17
+ defaultValue: {
18
+ type: import('vue').PropType<string | string[] | undefined>;
19
+ default: undefined;
20
+ };
21
+ type: {
22
+ type: import('vue').PropType<"single" | "multiple">;
23
+ default: "single";
24
+ };
25
+ collapsible: {
26
+ type: BooleanConstructor;
27
+ default: boolean;
28
+ };
29
+ variant: {
30
+ type: import('vue').PropType<import('../..').AccordionVariant>;
31
+ default: "default";
32
+ };
33
+ color: {
34
+ default: "default";
35
+ type: import('vue').PropType<import('../..').Color>;
36
+ };
37
+ size: {
38
+ type: import('vue').PropType<import('../..').Size>;
39
+ default: "md";
40
+ };
41
+ radius: {
42
+ type: import('vue').PropType<import('../..').Radius>;
43
+ default: "md";
44
+ };
45
+ isDisabled: {
46
+ type: BooleanConstructor;
47
+ default: boolean;
48
+ };
49
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
50
+ "update:modelValue": (value: string | string[]) => any;
51
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
52
+ items: {
53
+ type: import('vue').PropType<import('../..').AccordionItem[]>;
54
+ default: () => never[];
55
+ };
56
+ modelValue: {
57
+ type: import('vue').PropType<string | string[] | undefined>;
58
+ default: undefined;
59
+ };
60
+ defaultValue: {
61
+ type: import('vue').PropType<string | string[] | undefined>;
62
+ default: undefined;
63
+ };
64
+ type: {
65
+ type: import('vue').PropType<"single" | "multiple">;
66
+ default: "single";
67
+ };
68
+ collapsible: {
69
+ type: BooleanConstructor;
70
+ default: boolean;
71
+ };
72
+ variant: {
73
+ type: import('vue').PropType<import('../..').AccordionVariant>;
74
+ default: "default";
75
+ };
76
+ color: {
77
+ default: "default";
78
+ type: import('vue').PropType<import('../..').Color>;
79
+ };
80
+ size: {
81
+ type: import('vue').PropType<import('../..').Size>;
82
+ default: "md";
83
+ };
84
+ radius: {
85
+ type: import('vue').PropType<import('../..').Radius>;
86
+ default: "md";
87
+ };
88
+ isDisabled: {
89
+ type: BooleanConstructor;
90
+ default: boolean;
91
+ };
92
+ }>> & Readonly<{
93
+ "onUpdate:modelValue"?: ((value: string | string[]) => any) | undefined;
94
+ }>, {
95
+ variant: import('../..').AccordionVariant;
96
+ color: import('../..').Color;
97
+ size: import('../..').Size;
98
+ radius: import('../..').Radius;
99
+ items: import('../..').AccordionItem[];
100
+ modelValue: string | string[] | undefined;
101
+ defaultValue: string | string[] | undefined;
102
+ type: "single" | "multiple";
103
+ collapsible: boolean;
104
+ isDisabled: boolean;
105
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
106
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
107
+ export default _default;
108
+ type __VLS_WithTemplateSlots<T, S> = T & {
109
+ new (): {
110
+ $slots: S;
111
+ };
112
+ };
@@ -0,0 +1,44 @@
1
+ import { PropType } from 'vue';
2
+ import { AccordionItem } from '../../types/common';
3
+ export declare const accordionProps: {
4
+ items: {
5
+ type: PropType<AccordionItem[]>;
6
+ default: () => never[];
7
+ };
8
+ modelValue: {
9
+ type: PropType<string | string[] | undefined>;
10
+ default: undefined;
11
+ };
12
+ defaultValue: {
13
+ type: PropType<string | string[] | undefined>;
14
+ default: undefined;
15
+ };
16
+ type: {
17
+ type: PropType<"single" | "multiple">;
18
+ default: "single";
19
+ };
20
+ collapsible: {
21
+ type: BooleanConstructor;
22
+ default: boolean;
23
+ };
24
+ variant: {
25
+ type: PropType<import('../../types/common').AccordionVariant>;
26
+ default: "default";
27
+ };
28
+ color: {
29
+ default: "default";
30
+ type: PropType<import('../../types/common').Color>;
31
+ };
32
+ size: {
33
+ type: PropType<import('../../types/common').Size>;
34
+ default: "md";
35
+ };
36
+ radius: {
37
+ type: PropType<import('../../types/common').Radius>;
38
+ default: "md";
39
+ };
40
+ isDisabled: {
41
+ type: BooleanConstructor;
42
+ default: boolean;
43
+ };
44
+ };
@@ -0,0 +1,202 @@
1
+ export declare const accordionVariants: import('tailwind-variants').TVReturnType<{
2
+ variant: {
3
+ default: {
4
+ base: string;
5
+ };
6
+ bordered: {
7
+ base: string;
8
+ };
9
+ splitted: {
10
+ base: string;
11
+ };
12
+ };
13
+ color: {
14
+ default: {
15
+ base: string;
16
+ };
17
+ primary: {
18
+ base: string;
19
+ };
20
+ danger: {
21
+ base: string;
22
+ };
23
+ success: {
24
+ base: string;
25
+ };
26
+ warning: {
27
+ base: string;
28
+ };
29
+ };
30
+ size: {
31
+ sm: {
32
+ trigger: string;
33
+ content: string;
34
+ };
35
+ md: {
36
+ trigger: string;
37
+ content: string;
38
+ };
39
+ lg: {
40
+ trigger: string;
41
+ content: string;
42
+ };
43
+ };
44
+ radius: {
45
+ none: {
46
+ base: string;
47
+ };
48
+ sm: {
49
+ base: string;
50
+ };
51
+ md: {
52
+ base: string;
53
+ };
54
+ lg: {
55
+ base: string;
56
+ };
57
+ full: {
58
+ base: string;
59
+ };
60
+ };
61
+ }, {
62
+ base: string;
63
+ item: string;
64
+ header: string;
65
+ trigger: string;
66
+ chevron: string;
67
+ content: string;
68
+ }, undefined, {
69
+ variant: {
70
+ default: {
71
+ base: string;
72
+ };
73
+ bordered: {
74
+ base: string;
75
+ };
76
+ splitted: {
77
+ base: string;
78
+ };
79
+ };
80
+ color: {
81
+ default: {
82
+ base: string;
83
+ };
84
+ primary: {
85
+ base: string;
86
+ };
87
+ danger: {
88
+ base: string;
89
+ };
90
+ success: {
91
+ base: string;
92
+ };
93
+ warning: {
94
+ base: string;
95
+ };
96
+ };
97
+ size: {
98
+ sm: {
99
+ trigger: string;
100
+ content: string;
101
+ };
102
+ md: {
103
+ trigger: string;
104
+ content: string;
105
+ };
106
+ lg: {
107
+ trigger: string;
108
+ content: string;
109
+ };
110
+ };
111
+ radius: {
112
+ none: {
113
+ base: string;
114
+ };
115
+ sm: {
116
+ base: string;
117
+ };
118
+ md: {
119
+ base: string;
120
+ };
121
+ lg: {
122
+ base: string;
123
+ };
124
+ full: {
125
+ base: string;
126
+ };
127
+ };
128
+ }, {
129
+ base: string;
130
+ item: string;
131
+ header: string;
132
+ trigger: string;
133
+ chevron: string;
134
+ content: string;
135
+ }, import('tailwind-variants').TVReturnType<{
136
+ variant: {
137
+ default: {
138
+ base: string;
139
+ };
140
+ bordered: {
141
+ base: string;
142
+ };
143
+ splitted: {
144
+ base: string;
145
+ };
146
+ };
147
+ color: {
148
+ default: {
149
+ base: string;
150
+ };
151
+ primary: {
152
+ base: string;
153
+ };
154
+ danger: {
155
+ base: string;
156
+ };
157
+ success: {
158
+ base: string;
159
+ };
160
+ warning: {
161
+ base: string;
162
+ };
163
+ };
164
+ size: {
165
+ sm: {
166
+ trigger: string;
167
+ content: string;
168
+ };
169
+ md: {
170
+ trigger: string;
171
+ content: string;
172
+ };
173
+ lg: {
174
+ trigger: string;
175
+ content: string;
176
+ };
177
+ };
178
+ radius: {
179
+ none: {
180
+ base: string;
181
+ };
182
+ sm: {
183
+ base: string;
184
+ };
185
+ md: {
186
+ base: string;
187
+ };
188
+ lg: {
189
+ base: string;
190
+ };
191
+ full: {
192
+ base: string;
193
+ };
194
+ };
195
+ }, {
196
+ base: string;
197
+ item: string;
198
+ header: string;
199
+ trigger: string;
200
+ chevron: string;
201
+ content: string;
202
+ }, undefined, unknown, unknown, undefined>>;
@@ -0,0 +1 @@
1
+ export { default as Accordion } from './accordion';
@@ -0,0 +1,87 @@
1
+ import { ExtractPropTypes } from 'vue';
2
+ import { alertProps } from './alert.props';
3
+ type AlertProps = ExtractPropTypes<typeof alertProps>;
4
+ type AlertEmitFn = (event: 'close') => void;
5
+ type SemanticIconName = 'info' | 'warning' | 'danger' | 'success';
6
+ /**
7
+ * Composable that handles Alert component logic.
8
+ * Returns computed class bindings, semantic icon name, and close handler.
9
+ */
10
+ export declare const useAlert: (props: AlertProps, emit: AlertEmitFn) => {
11
+ classes: import('vue').ComputedRef<{
12
+ base: (slotProps?: ({
13
+ variant?: "solid" | "outline" | undefined;
14
+ color?: "default" | "primary" | "danger" | "success" | "warning" | undefined;
15
+ radius?: "md" | "sm" | "lg" | "none" | "full" | undefined;
16
+ } & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | undefined) => string;
17
+ icon: (slotProps?: ({
18
+ variant?: "solid" | "outline" | undefined;
19
+ color?: "default" | "primary" | "danger" | "success" | "warning" | undefined;
20
+ radius?: "md" | "sm" | "lg" | "none" | "full" | undefined;
21
+ } & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | undefined) => string;
22
+ content: (slotProps?: ({
23
+ variant?: "solid" | "outline" | undefined;
24
+ color?: "default" | "primary" | "danger" | "success" | "warning" | undefined;
25
+ radius?: "md" | "sm" | "lg" | "none" | "full" | undefined;
26
+ } & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | undefined) => string;
27
+ title: (slotProps?: ({
28
+ variant?: "solid" | "outline" | undefined;
29
+ color?: "default" | "primary" | "danger" | "success" | "warning" | undefined;
30
+ radius?: "md" | "sm" | "lg" | "none" | "full" | undefined;
31
+ } & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | undefined) => string;
32
+ description: (slotProps?: ({
33
+ variant?: "solid" | "outline" | undefined;
34
+ color?: "default" | "primary" | "danger" | "success" | "warning" | undefined;
35
+ radius?: "md" | "sm" | "lg" | "none" | "full" | undefined;
36
+ } & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | undefined) => string;
37
+ action: (slotProps?: ({
38
+ variant?: "solid" | "outline" | undefined;
39
+ color?: "default" | "primary" | "danger" | "success" | "warning" | undefined;
40
+ radius?: "md" | "sm" | "lg" | "none" | "full" | undefined;
41
+ } & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | undefined) => string;
42
+ close: (slotProps?: ({
43
+ variant?: "solid" | "outline" | undefined;
44
+ color?: "default" | "primary" | "danger" | "success" | "warning" | undefined;
45
+ radius?: "md" | "sm" | "lg" | "none" | "full" | undefined;
46
+ } & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | undefined) => string;
47
+ } & {
48
+ base: (slotProps?: ({
49
+ variant?: "solid" | "outline" | undefined;
50
+ color?: "default" | "primary" | "danger" | "success" | "warning" | undefined;
51
+ radius?: "md" | "sm" | "lg" | "none" | "full" | undefined;
52
+ } & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | undefined) => string;
53
+ icon: (slotProps?: ({
54
+ variant?: "solid" | "outline" | undefined;
55
+ color?: "default" | "primary" | "danger" | "success" | "warning" | undefined;
56
+ radius?: "md" | "sm" | "lg" | "none" | "full" | undefined;
57
+ } & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | undefined) => string;
58
+ content: (slotProps?: ({
59
+ variant?: "solid" | "outline" | undefined;
60
+ color?: "default" | "primary" | "danger" | "success" | "warning" | undefined;
61
+ radius?: "md" | "sm" | "lg" | "none" | "full" | undefined;
62
+ } & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | undefined) => string;
63
+ title: (slotProps?: ({
64
+ variant?: "solid" | "outline" | undefined;
65
+ color?: "default" | "primary" | "danger" | "success" | "warning" | undefined;
66
+ radius?: "md" | "sm" | "lg" | "none" | "full" | undefined;
67
+ } & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | undefined) => string;
68
+ description: (slotProps?: ({
69
+ variant?: "solid" | "outline" | undefined;
70
+ color?: "default" | "primary" | "danger" | "success" | "warning" | undefined;
71
+ radius?: "md" | "sm" | "lg" | "none" | "full" | undefined;
72
+ } & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | undefined) => string;
73
+ action: (slotProps?: ({
74
+ variant?: "solid" | "outline" | undefined;
75
+ color?: "default" | "primary" | "danger" | "success" | "warning" | undefined;
76
+ radius?: "md" | "sm" | "lg" | "none" | "full" | undefined;
77
+ } & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | undefined) => string;
78
+ close: (slotProps?: ({
79
+ variant?: "solid" | "outline" | undefined;
80
+ color?: "default" | "primary" | "danger" | "success" | "warning" | undefined;
81
+ radius?: "md" | "sm" | "lg" | "none" | "full" | undefined;
82
+ } & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | undefined) => string;
83
+ } & {}>;
84
+ semanticIcon: import('vue').ComputedRef<SemanticIconName>;
85
+ handleClose: () => void;
86
+ };
87
+ export {};