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
@@ -0,0 +1,102 @@
1
+ import { MenuItem, MenuProps } from '.';
2
+ import { AkazaChangeEventDetails } from '../../types';
3
+ type __VLS_Props = MenuProps;
4
+ declare function open(reason?: string, event?: Event): void;
5
+ declare function close(reason?: string, event?: Event): void;
6
+ declare function toggle(reason?: string, event?: Event): void;
7
+ type __VLS_PublicProps = {
8
+ modelValue?: boolean;
9
+ } & __VLS_Props;
10
+ declare function __VLS_template(): {
11
+ attrs: Partial<{}>;
12
+ slots: {
13
+ trigger?(_: {
14
+ isOpen: boolean;
15
+ open: typeof open;
16
+ close: typeof close;
17
+ toggle: typeof toggle;
18
+ triggerProps: {
19
+ "aria-haspopup": "menu";
20
+ "aria-expanded": boolean;
21
+ "aria-controls": string | undefined;
22
+ };
23
+ }): any;
24
+ };
25
+ refs: {
26
+ rootRef: HTMLDivElement;
27
+ panelRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
28
+ items: MenuItem[][];
29
+ }> & Readonly<{}>, {
30
+ panelRef: Readonly<import('vue').ShallowRef<HTMLElement | null>>;
31
+ getItems: (container?: HTMLElement | null) => HTMLElement[];
32
+ highlightItem: (el: HTMLElement) => void;
33
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
34
+ panelRef: HTMLDivElement;
35
+ }, HTMLDivElement, import('vue').ComponentProvideOptions, {
36
+ P: {};
37
+ B: {};
38
+ D: {};
39
+ C: {};
40
+ M: {};
41
+ Defaults: {};
42
+ }, Readonly<{
43
+ items: MenuItem[][];
44
+ }> & Readonly<{}>, {
45
+ panelRef: Readonly<import('vue').ShallowRef<HTMLElement | null>>;
46
+ getItems: (container?: HTMLElement | null) => HTMLElement[];
47
+ highlightItem: (el: HTMLElement) => void;
48
+ }, {}, {}, {}, {}> | null;
49
+ };
50
+ rootEl: HTMLDivElement;
51
+ };
52
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
53
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {
54
+ open: typeof open;
55
+ close: typeof close;
56
+ toggle: typeof toggle;
57
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
58
+ "update:modelValue": (value: boolean) => any;
59
+ select: (item: MenuItem, details: AkazaChangeEventDetails) => any;
60
+ "open-change": (open: boolean, details: AkazaChangeEventDetails) => any;
61
+ "check-change": (item: MenuItem, checked: boolean, details: AkazaChangeEventDetails) => any;
62
+ "radio-change": (group: string, value: string, details: AkazaChangeEventDetails) => any;
63
+ "update:radioValues": (values: Record<string, string>) => any;
64
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
65
+ "onUpdate:modelValue"?: (value: boolean) => any;
66
+ onSelect?: (item: MenuItem, details: AkazaChangeEventDetails) => any;
67
+ "onOpen-change"?: (open: boolean, details: AkazaChangeEventDetails) => any;
68
+ "onCheck-change"?: (item: MenuItem, checked: boolean, details: AkazaChangeEventDetails) => any;
69
+ "onRadio-change"?: (group: string, value: string, details: AkazaChangeEventDetails) => any;
70
+ "onUpdate:radioValues"?: (values: Record<string, string>) => any;
71
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
72
+ rootRef: HTMLDivElement;
73
+ panelRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
74
+ items: MenuItem[][];
75
+ }> & Readonly<{}>, {
76
+ panelRef: Readonly<import('vue').ShallowRef<HTMLElement | null>>;
77
+ getItems: (container?: HTMLElement | null) => HTMLElement[];
78
+ highlightItem: (el: HTMLElement) => void;
79
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
80
+ panelRef: HTMLDivElement;
81
+ }, HTMLDivElement, import('vue').ComponentProvideOptions, {
82
+ P: {};
83
+ B: {};
84
+ D: {};
85
+ C: {};
86
+ M: {};
87
+ Defaults: {};
88
+ }, Readonly<{
89
+ items: MenuItem[][];
90
+ }> & Readonly<{}>, {
91
+ panelRef: Readonly<import('vue').ShallowRef<HTMLElement | null>>;
92
+ getItems: (container?: HTMLElement | null) => HTMLElement[];
93
+ highlightItem: (el: HTMLElement) => void;
94
+ }, {}, {}, {}, {}> | null;
95
+ }, HTMLDivElement>;
96
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
97
+ export default _default;
98
+ type __VLS_WithTemplateSlots<T, S> = T & {
99
+ new (): {
100
+ $slots: S;
101
+ };
102
+ };
@@ -0,0 +1,14 @@
1
+ import { MenuItem } from '.';
2
+ type __VLS_Props = {
3
+ items: MenuItem[][];
4
+ };
5
+ declare function getItems(container?: HTMLElement | null): HTMLElement[];
6
+ declare function highlightItem(el: HTMLElement): void;
7
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {
8
+ panelRef: Readonly<import('vue').ShallowRef<HTMLElement | null>>;
9
+ getItems: typeof getItems;
10
+ highlightItem: typeof highlightItem;
11
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
12
+ panelRef: HTMLDivElement;
13
+ }, HTMLDivElement>;
14
+ export default _default;
@@ -0,0 +1,17 @@
1
+ import { InjectionKey, Slots } from 'vue';
2
+ import { MenuItem, MenuUi } from '.';
3
+ export interface MenuContext {
4
+ ui: MenuUi | undefined;
5
+ radioValues: Record<string, string> | undefined;
6
+ closeMenu: (reason: string, event?: Event) => void;
7
+ onItemSelect: (item: MenuItem, event: Event) => void;
8
+ onCheckboxSelect: (item: MenuItem, event: Event) => void;
9
+ onRadioSelect: (item: MenuItem, event: Event) => void;
10
+ isRadioChecked: (item: MenuItem) => boolean;
11
+ getItemValue: (item: MenuItem) => string;
12
+ normalizeItems: (raw?: MenuItem[] | MenuItem[][]) => MenuItem[][];
13
+ closeOnSelect: boolean;
14
+ /** Root Menu's slots — forwarded so recursive panels can render custom item templates. */
15
+ rootSlots: Slots;
16
+ }
17
+ export declare const MENU_CONTEXT_KEY: InjectionKey<MenuContext>;
@@ -0,0 +1,54 @@
1
+ import { Component } from 'vue';
2
+ export { default as Menu } from './Menu.vue';
3
+ export interface MenuItem {
4
+ /** Display label */
5
+ label?: string;
6
+ /** Unique value identifier. Falls back to label if omitted. */
7
+ value?: string;
8
+ /** Item type. Defaults to 'item'. */
9
+ type?: "item" | "checkbox" | "radio" | "separator" | "label";
10
+ /** Whether the item is disabled */
11
+ disabled?: boolean;
12
+ /** For checkbox items: current checked state */
13
+ checked?: boolean;
14
+ /** For checkbox items: called when the user toggles */
15
+ onUpdateChecked?: (checked: boolean) => void;
16
+ /** For radio items: group name (items sharing a group are mutually exclusive) */
17
+ radioGroup?: string;
18
+ /** Sub-menu items. Accepts flat array or grouped (array of arrays). */
19
+ children?: MenuItem[] | MenuItem[][];
20
+ /** Named slot key for per-item rendering override */
21
+ slot?: string;
22
+ /** Per-item select callback (action items only) */
23
+ onSelect?: () => void;
24
+ /** Allow extra properties */
25
+ [key: string]: unknown;
26
+ }
27
+ export interface MenuUi {
28
+ content?: string;
29
+ item?: string;
30
+ separator?: string;
31
+ label?: string;
32
+ group?: string;
33
+ submenuContent?: string;
34
+ }
35
+ export interface MenuProps {
36
+ /** Root element tag */
37
+ as?: string | Component;
38
+ /** Menu items — flat array or grouped (array of arrays with auto-separators) */
39
+ items?: MenuItem[] | MenuItem[][];
40
+ /** Which side of the trigger to open the menu. @default 'bottom' */
41
+ side?: "top" | "bottom" | "left" | "right";
42
+ /** Alignment along the trigger edge. @default 'start' */
43
+ align?: "start" | "center" | "end";
44
+ /** Gap between trigger and menu in px. @default 4 */
45
+ sideOffset?: number;
46
+ /** Close the menu when an action item is selected. @default true */
47
+ closeOnSelect?: boolean;
48
+ /** Radio group state — keyed by radioGroup name. */
49
+ radioValues?: Record<string, string>;
50
+ /** Teleport target. Set false to disable. @default false */
51
+ teleport?: string | false;
52
+ /** UI class overrides */
53
+ ui?: MenuUi;
54
+ }
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as OverlayProvider } from './OverlayProvider.vue';
@@ -0,0 +1,55 @@
1
+ import { PopoverProps } from '.';
2
+ import { AkazaChangeEventDetails } from '../../types';
3
+ type __VLS_Props = PopoverProps;
4
+ declare function open(reason?: string, event?: Event): void;
5
+ declare function close(reason?: string, event?: Event): void;
6
+ declare function toggle(reason?: string, event?: Event): void;
7
+ type __VLS_PublicProps = {
8
+ modelValue?: boolean;
9
+ } & __VLS_Props;
10
+ declare function __VLS_template(): {
11
+ attrs: Partial<{}>;
12
+ slots: {
13
+ trigger?(_: {
14
+ isOpen: boolean;
15
+ open: typeof open;
16
+ close: typeof close;
17
+ toggle: typeof toggle;
18
+ triggerProps: {
19
+ "aria-haspopup": "dialog";
20
+ "aria-expanded": boolean;
21
+ "aria-controls": string | undefined;
22
+ };
23
+ }): any;
24
+ content?(_: {
25
+ close: typeof close;
26
+ }): any;
27
+ };
28
+ refs: {
29
+ rootRef: HTMLDivElement;
30
+ contentRef: HTMLDivElement;
31
+ };
32
+ rootEl: HTMLDivElement;
33
+ };
34
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
35
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {
36
+ open: typeof open;
37
+ close: typeof close;
38
+ toggle: typeof toggle;
39
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
40
+ "update:modelValue": (value: boolean) => any;
41
+ "open-change": (open: boolean, details: AkazaChangeEventDetails) => any;
42
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
43
+ "onUpdate:modelValue"?: (value: boolean) => any;
44
+ "onOpen-change"?: (open: boolean, details: AkazaChangeEventDetails) => any;
45
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
46
+ rootRef: HTMLDivElement;
47
+ contentRef: HTMLDivElement;
48
+ }, HTMLDivElement>;
49
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
50
+ export default _default;
51
+ type __VLS_WithTemplateSlots<T, S> = T & {
52
+ new (): {
53
+ $slots: S;
54
+ };
55
+ };
@@ -0,0 +1,14 @@
1
+ export { default as Popover } from './Popover.vue';
2
+ export type PopoverSide = "top" | "bottom" | "left" | "right";
3
+ export type PopoverAlign = "start" | "center" | "end";
4
+ export interface PopoverUi {
5
+ content?: string;
6
+ }
7
+ export interface PopoverProps {
8
+ side?: PopoverSide;
9
+ align?: PopoverAlign;
10
+ sideOffset?: number;
11
+ teleport?: string | false;
12
+ transition?: string | false;
13
+ ui?: PopoverUi;
14
+ }
@@ -0,0 +1,32 @@
1
+ import { ProgressProps } from '.';
2
+ type __VLS_Props = ProgressProps;
3
+ type __VLS_PublicProps = {
4
+ modelValue?: number | null;
5
+ } & __VLS_Props;
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: {
9
+ indicator?(_: {
10
+ value: number | null;
11
+ percentage: number | null;
12
+ max: number;
13
+ min: number;
14
+ state: string;
15
+ }): any;
16
+ };
17
+ refs: {};
18
+ rootEl: HTMLDivElement;
19
+ };
20
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
21
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
22
+ "update:modelValue": (value: number | null) => any;
23
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
24
+ "onUpdate:modelValue"?: (value: number | null) => any;
25
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
26
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
27
+ export default _default;
28
+ type __VLS_WithTemplateSlots<T, S> = T & {
29
+ new (): {
30
+ $slots: S;
31
+ };
32
+ };
@@ -0,0 +1,14 @@
1
+ export { default as Progress } from './Progress.vue';
2
+ export type ProgressOrientation = "horizontal" | "vertical";
3
+ export interface ProgressUi {
4
+ root?: string;
5
+ indicator?: string;
6
+ }
7
+ export interface ProgressProps {
8
+ min?: number;
9
+ max?: number;
10
+ orientation?: ProgressOrientation;
11
+ ariaLabel?: string;
12
+ getValueLabel?: (value: number | null, max: number) => string | undefined;
13
+ ui?: ProgressUi;
14
+ }
@@ -0,0 +1,37 @@
1
+ import { RadioGroupProps } from '.';
2
+ type __VLS_Props = RadioGroupProps;
3
+ type __VLS_PublicProps = {
4
+ modelValue?: string;
5
+ } & __VLS_Props;
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: {
9
+ legend?(_: {
10
+ legend: string | undefined;
11
+ }): any;
12
+ item?(_: {
13
+ option: any;
14
+ value: string;
15
+ label: string | undefined;
16
+ description: string | undefined;
17
+ isChecked: boolean;
18
+ isDisabled: boolean;
19
+ select: () => void;
20
+ }): any;
21
+ };
22
+ refs: {};
23
+ rootEl: any;
24
+ };
25
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
26
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
27
+ "update:modelValue": (value: string) => any;
28
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
29
+ "onUpdate:modelValue"?: (value: string) => any;
30
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
31
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
32
+ export default _default;
33
+ type __VLS_WithTemplateSlots<T, S> = T & {
34
+ new (): {
35
+ $slots: S;
36
+ };
37
+ };
@@ -0,0 +1,30 @@
1
+ export { default as RadioGroup } from './RadioGroup.vue';
2
+ export interface RadioGroupUi {
3
+ item?: string;
4
+ legend?: string;
5
+ }
6
+ export interface RadioGroupProps {
7
+ options: any[];
8
+ /** Property to use as value when options are objects. Falls back to option.value → option.id → String(option). */
9
+ valueKey?: string;
10
+ /** Property to use as label when options are objects. Default: "label". */
11
+ labelKey?: string;
12
+ /** Property to use as description when options are objects. Default: "description". */
13
+ descriptionKey?: string;
14
+ disabled?: boolean;
15
+ orientation?: "horizontal" | "vertical";
16
+ as?: string;
17
+ /** Legend text rendered above the group. Also used as aria-label fallback. */
18
+ legend?: string;
19
+ /** Whether arrow key navigation wraps from last to first item and vice versa. Default: true. */
20
+ loop?: boolean;
21
+ /** Name submitted with the owning form. */
22
+ name?: string;
23
+ /** Marks the field as required for form submission. */
24
+ required?: boolean;
25
+ ariaLabel?: string;
26
+ ariaLabelledby?: string;
27
+ /** Return true to disable a specific option. Falls back to option.disabled. */
28
+ getItemDisabled?: (option: any) => boolean;
29
+ ui?: RadioGroupUi;
30
+ }
@@ -0,0 +1,3 @@
1
+ import { SeparatorProps } from '.';
2
+ declare const _default: import('vue').DefineComponent<SeparatorProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SeparatorProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
3
+ export default _default;
@@ -0,0 +1,6 @@
1
+ export { default as Separator } from './Separator.vue';
2
+ export interface SeparatorProps {
3
+ as?: string;
4
+ orientation?: "horizontal" | "vertical";
5
+ decorative?: boolean;
6
+ }
@@ -0,0 +1,33 @@
1
+ import { SwitchProps, SwitchValue } from '.';
2
+ import { AkazaChangeEventDetails } from '../../types';
3
+ type __VLS_Props = SwitchProps;
4
+ type __VLS_PublicProps = {
5
+ modelValue?: SwitchValue;
6
+ } & __VLS_Props;
7
+ declare function __VLS_template(): {
8
+ attrs: Partial<{}>;
9
+ slots: {
10
+ thumb?(_: {
11
+ checked: boolean;
12
+ }): any;
13
+ label?(_: {}): any;
14
+ description?(_: {}): any;
15
+ };
16
+ refs: {};
17
+ rootEl: HTMLSpanElement;
18
+ };
19
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
20
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
21
+ "value-change": (value: SwitchValue, details: AkazaChangeEventDetails) => any;
22
+ "update:modelValue": (value: SwitchValue) => any;
23
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
24
+ "onValue-change"?: (value: SwitchValue, details: AkazaChangeEventDetails) => any;
25
+ "onUpdate:modelValue"?: (value: SwitchValue) => any;
26
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
27
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
28
+ export default _default;
29
+ type __VLS_WithTemplateSlots<T, S> = T & {
30
+ new (): {
31
+ $slots: S;
32
+ };
33
+ };
@@ -0,0 +1,29 @@
1
+ export { default as Switch } from './Switch.vue';
2
+ export type SwitchValue = boolean | string | number;
3
+ export interface SwitchUi {
4
+ wrapper?: string;
5
+ root?: string;
6
+ thumb?: string;
7
+ label?: string;
8
+ description?: string;
9
+ }
10
+ export interface SwitchProps {
11
+ disabled?: boolean;
12
+ /** Custom id for the switch button. Auto-generated if omitted. */
13
+ id?: string;
14
+ /** Name submitted with the owning form. */
15
+ name?: string;
16
+ /** Marks the field as required for form submission. */
17
+ required?: boolean;
18
+ /** Value the model holds when checked. Default: true. */
19
+ trueValue?: SwitchValue;
20
+ /** Value the model holds when unchecked. Default: false. */
21
+ falseValue?: SwitchValue;
22
+ /** Label text rendered beside the switch. Also used as aria-labelledby target. */
23
+ label?: string;
24
+ /** Description text rendered below the label. */
25
+ description?: string;
26
+ /** aria-label for icon-only switches with no label prop or slot. */
27
+ ariaLabel?: string;
28
+ ui?: SwitchUi;
29
+ }
@@ -0,0 +1,37 @@
1
+ import { TabsItem, TabsProps } from '.';
2
+ type __VLS_Props = TabsProps;
3
+ type __VLS_PublicProps = {
4
+ modelValue?: string;
5
+ } & __VLS_Props;
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: Partial<Record<`panel-${string}`, (_: {
9
+ item: TabsItem;
10
+ isActive: boolean;
11
+ }) => any>> & {
12
+ tab?(_: {
13
+ item: TabsItem;
14
+ isActive: boolean;
15
+ select: () => void;
16
+ }): any;
17
+ };
18
+ refs: {
19
+ listRef: HTMLDivElement;
20
+ };
21
+ rootEl: HTMLDivElement;
22
+ };
23
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
24
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
25
+ "update:modelValue": (value: string) => any;
26
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
27
+ "onUpdate:modelValue"?: (value: string) => any;
28
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
29
+ listRef: HTMLDivElement;
30
+ }, HTMLDivElement>;
31
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
32
+ export default _default;
33
+ type __VLS_WithTemplateSlots<T, S> = T & {
34
+ new (): {
35
+ $slots: S;
36
+ };
37
+ };
@@ -0,0 +1,28 @@
1
+ export { default as Tabs } from './Tabs.vue';
2
+ export interface TabsItem {
3
+ value: string;
4
+ label?: string;
5
+ disabled?: boolean;
6
+ [key: string]: any;
7
+ }
8
+ export interface TabsUi {
9
+ root?: string;
10
+ list?: string;
11
+ tab?: string;
12
+ indicator?: string;
13
+ panels?: string;
14
+ panel?: string;
15
+ }
16
+ export interface TabsProps {
17
+ items: TabsItem[];
18
+ orientation?: "horizontal" | "vertical";
19
+ /** "automatic": arrow keys move focus and activate. "manual": arrow keys move focus only, Space/Enter activates. Default: "automatic". */
20
+ activationMode?: "automatic" | "manual";
21
+ /** When true, inactive panels are removed from the DOM (v-if). Default: false (v-show). */
22
+ unmountOnHide?: boolean;
23
+ /** aria-label for the tab list. */
24
+ ariaLabel?: string;
25
+ /** Property to use as label when items are objects. Default: "label". */
26
+ labelKey?: string;
27
+ ui?: TabsUi;
28
+ }
@@ -0,0 +1,29 @@
1
+ import { ToggleProps } from '.';
2
+ type __VLS_Props = ToggleProps;
3
+ type __VLS_PublicProps = {
4
+ modelValue?: boolean;
5
+ } & __VLS_Props;
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: {
9
+ default?(_: {
10
+ pressed: boolean;
11
+ state: string;
12
+ }): any;
13
+ };
14
+ refs: {};
15
+ rootEl: any;
16
+ };
17
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
18
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
19
+ "update:modelValue": (value: boolean) => any;
20
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
21
+ "onUpdate:modelValue"?: (value: boolean) => any;
22
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
23
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
24
+ export default _default;
25
+ type __VLS_WithTemplateSlots<T, S> = T & {
26
+ new (): {
27
+ $slots: S;
28
+ };
29
+ };
@@ -0,0 +1,11 @@
1
+ export { default as Toggle } from './Toggle.vue';
2
+ export interface ToggleUi {
3
+ root?: string;
4
+ }
5
+ export interface ToggleProps {
6
+ as?: string;
7
+ disabled?: boolean;
8
+ value?: string;
9
+ ariaLabel?: string;
10
+ ui?: ToggleUi;
11
+ }
@@ -0,0 +1,38 @@
1
+ import { TooltipProps } from '.';
2
+ type __VLS_Props = TooltipProps;
3
+ declare function close(): void;
4
+ type __VLS_PublicProps = {
5
+ modelValue?: boolean;
6
+ } & __VLS_Props;
7
+ declare function __VLS_template(): {
8
+ attrs: Partial<{}>;
9
+ slots: {
10
+ trigger?(_: {
11
+ isOpen: boolean;
12
+ }): any;
13
+ content?(_: {
14
+ close: typeof close;
15
+ }): any;
16
+ };
17
+ refs: {
18
+ triggerRef: HTMLSpanElement;
19
+ contentRef: HTMLDivElement;
20
+ };
21
+ rootEl: HTMLSpanElement;
22
+ };
23
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
24
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
25
+ "update:modelValue": (value: boolean) => any;
26
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
27
+ "onUpdate:modelValue"?: (value: boolean) => any;
28
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
29
+ triggerRef: HTMLSpanElement;
30
+ contentRef: HTMLDivElement;
31
+ }, HTMLSpanElement>;
32
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
33
+ export default _default;
34
+ type __VLS_WithTemplateSlots<T, S> = T & {
35
+ new (): {
36
+ $slots: S;
37
+ };
38
+ };
@@ -0,0 +1,17 @@
1
+ export { default as Tooltip } from './Tooltip.vue';
2
+ export type TooltipDirection = "top" | "bottom" | "left" | "right";
3
+ export interface TooltipUi {
4
+ root?: string;
5
+ trigger?: string;
6
+ content?: string;
7
+ }
8
+ export interface TooltipProps {
9
+ direction?: TooltipDirection;
10
+ delayDuration?: number;
11
+ closeDelay?: number;
12
+ disabled?: boolean;
13
+ arrow?: boolean;
14
+ teleport?: string | false;
15
+ transition?: string | false;
16
+ ui?: TooltipUi;
17
+ }
@@ -0,0 +1,2 @@
1
+ export { useAlertDialog } from './useAlertDialog';
2
+ export type { UseAlertDialogReturn } from './useAlertDialog';
@@ -0,0 +1,8 @@
1
+ import { Ref } from 'vue';
2
+ export interface UseAlertDialogReturn {
3
+ isOpen: Ref<boolean>;
4
+ open: () => void;
5
+ close: () => void;
6
+ toggle: () => void;
7
+ }
8
+ export declare function useAlertDialog(modelRef?: Ref<boolean>): UseAlertDialogReturn;
@@ -0,0 +1,2 @@
1
+ export { useDialog } from './useDialog';
2
+ export type { UseDialogReturn } from './useDialog';
@@ -0,0 +1,8 @@
1
+ import { Ref } from 'vue';
2
+ export interface UseDialogReturn {
3
+ isOpen: Ref<boolean>;
4
+ open: () => void;
5
+ close: () => void;
6
+ toggle: () => void;
7
+ }
8
+ export declare function useDialog(modelRef?: Ref<boolean>): UseDialogReturn;