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/dist/nuxt.cjs ADDED
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ const kit = require("@nuxt/kit");
3
+ const COMPONENTS = [
4
+ "Accordion",
5
+ "AlertDialog",
6
+ "Avatar",
7
+ "Button",
8
+ "Checkbox",
9
+ "Collapsible",
10
+ "Dialog",
11
+ "Drawer",
12
+ "Menu",
13
+ "Overlay",
14
+ "Popover",
15
+ "Progress",
16
+ "RadioGroup",
17
+ "Separator",
18
+ "Switch",
19
+ "Tabs",
20
+ "Toggle",
21
+ "Tooltip"
22
+ ];
23
+ const nuxt = kit.defineNuxtModule({
24
+ meta: {
25
+ name: "akaza-ui",
26
+ configKey: "akazaUi",
27
+ compatibility: {
28
+ nuxt: ">=3.0.0"
29
+ }
30
+ },
31
+ setup(_options, nuxt2) {
32
+ nuxt2.options.css.push("akaza-ui/dist/akaza-ui.css");
33
+ for (const name of COMPONENTS) {
34
+ kit.addComponent({
35
+ name,
36
+ export: name,
37
+ filePath: "akaza-ui"
38
+ });
39
+ }
40
+ }
41
+ });
42
+ module.exports = nuxt;
43
+ //# sourceMappingURL=nuxt.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nuxt.cjs","sources":["../src/nuxt.ts"],"sourcesContent":["import { addComponent, defineNuxtModule } from \"@nuxt/kit\";\n\nconst COMPONENTS = [\n \"Accordion\",\n \"AlertDialog\",\n \"Avatar\",\n \"Button\",\n \"Checkbox\",\n \"Collapsible\",\n \"Dialog\",\n \"Drawer\",\n \"Menu\",\n \"Overlay\",\n \"Popover\",\n \"Progress\",\n \"RadioGroup\",\n \"Separator\",\n \"Switch\",\n \"Tabs\",\n \"Toggle\",\n \"Tooltip\",\n];\n\nexport default defineNuxtModule({\n meta: {\n name: \"akaza-ui\",\n configKey: \"akazaUi\",\n compatibility: {\n nuxt: \">=3.0.0\",\n },\n },\n setup(_options, nuxt) {\n nuxt.options.css.push(\"akaza-ui/dist/akaza-ui.css\");\n\n for (const name of COMPONENTS) {\n addComponent({\n name,\n export: name,\n filePath: \"akaza-ui\",\n });\n }\n },\n});\n"],"names":["defineNuxtModule","nuxt","addComponent"],"mappings":";;AAEA,MAAM,aAAa;AAAA,EACjB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAEA,MAAA,OAAeA,qBAAiB;AAAA,EAC9B,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,WAAW;AAAA,IACX,eAAe;AAAA,MACb,MAAM;AAAA,IAAA;AAAA,EACR;AAAA,EAEF,MAAM,UAAUC,OAAM;AACpB,IAAAA,MAAK,QAAQ,IAAI,KAAK,4BAA4B;AAElD,eAAW,QAAQ,YAAY;AAC7BC,uBAAa;AAAA,QACX;AAAA,QACA,QAAQ;AAAA,QACR,UAAU;AAAA,MAAA,CACX;AAAA,IACH;AAAA,EACF;AACF,CAAC;;"}
package/dist/nuxt.js ADDED
@@ -0,0 +1,44 @@
1
+ import { defineNuxtModule, addComponent } from "@nuxt/kit";
2
+ const COMPONENTS = [
3
+ "Accordion",
4
+ "AlertDialog",
5
+ "Avatar",
6
+ "Button",
7
+ "Checkbox",
8
+ "Collapsible",
9
+ "Dialog",
10
+ "Drawer",
11
+ "Menu",
12
+ "Overlay",
13
+ "Popover",
14
+ "Progress",
15
+ "RadioGroup",
16
+ "Separator",
17
+ "Switch",
18
+ "Tabs",
19
+ "Toggle",
20
+ "Tooltip"
21
+ ];
22
+ const nuxt = defineNuxtModule({
23
+ meta: {
24
+ name: "akaza-ui",
25
+ configKey: "akazaUi",
26
+ compatibility: {
27
+ nuxt: ">=3.0.0"
28
+ }
29
+ },
30
+ setup(_options, nuxt2) {
31
+ nuxt2.options.css.push("akaza-ui/dist/akaza-ui.css");
32
+ for (const name of COMPONENTS) {
33
+ addComponent({
34
+ name,
35
+ export: name,
36
+ filePath: "akaza-ui"
37
+ });
38
+ }
39
+ }
40
+ });
41
+ export {
42
+ nuxt as default
43
+ };
44
+ //# sourceMappingURL=nuxt.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nuxt.js","sources":["../src/nuxt.ts"],"sourcesContent":["import { addComponent, defineNuxtModule } from \"@nuxt/kit\";\n\nconst COMPONENTS = [\n \"Accordion\",\n \"AlertDialog\",\n \"Avatar\",\n \"Button\",\n \"Checkbox\",\n \"Collapsible\",\n \"Dialog\",\n \"Drawer\",\n \"Menu\",\n \"Overlay\",\n \"Popover\",\n \"Progress\",\n \"RadioGroup\",\n \"Separator\",\n \"Switch\",\n \"Tabs\",\n \"Toggle\",\n \"Tooltip\",\n];\n\nexport default defineNuxtModule({\n meta: {\n name: \"akaza-ui\",\n configKey: \"akazaUi\",\n compatibility: {\n nuxt: \">=3.0.0\",\n },\n },\n setup(_options, nuxt) {\n nuxt.options.css.push(\"akaza-ui/dist/akaza-ui.css\");\n\n for (const name of COMPONENTS) {\n addComponent({\n name,\n export: name,\n filePath: \"akaza-ui\",\n });\n }\n },\n});\n"],"names":["nuxt"],"mappings":";AAEA,MAAM,aAAa;AAAA,EACjB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAEA,MAAA,OAAe,iBAAiB;AAAA,EAC9B,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,WAAW;AAAA,IACX,eAAe;AAAA,MACb,MAAM;AAAA,IAAA;AAAA,EACR;AAAA,EAEF,MAAM,UAAUA,OAAM;AACpB,IAAAA,MAAK,QAAQ,IAAI,KAAK,4BAA4B;AAElD,eAAW,QAAQ,YAAY;AAC7B,mBAAa;AAAA,QACX;AAAA,QACA,QAAQ;AAAA,QACR,UAAU;AAAA,MAAA,CACX;AAAA,IACH;AAAA,EACF;AACF,CAAC;"}
@@ -0,0 +1,51 @@
1
+ import { AccordionItem, AccordionProps } from '.';
2
+ import { AkazaChangeEventDetails } from '../../types';
3
+ type __VLS_Props = AccordionProps;
4
+ type __VLS_PublicProps = {
5
+ modelValue?: string | string[];
6
+ } & __VLS_Props;
7
+ declare function __VLS_template(): {
8
+ attrs: Partial<{}>;
9
+ slots: Partial<Record<string, (_: {
10
+ item: AccordionItem;
11
+ value: string;
12
+ isOpen: boolean;
13
+ }) => any>> & {
14
+ trigger?(_: {
15
+ item: AccordionItem;
16
+ value: string;
17
+ isOpen: boolean;
18
+ toggle: () => void;
19
+ }): any;
20
+ icon?(_: {
21
+ isOpen: boolean;
22
+ item: AccordionItem;
23
+ }): any;
24
+ content?(_: {
25
+ item: AccordionItem;
26
+ value: string;
27
+ isOpen: boolean;
28
+ }): any;
29
+ };
30
+ refs: {
31
+ rootRef: unknown;
32
+ };
33
+ rootEl: any;
34
+ };
35
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
36
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
37
+ "value-change": (value: string | string[], details: AkazaChangeEventDetails) => any;
38
+ "update:modelValue": (value: string | string[]) => any;
39
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
40
+ "onValue-change"?: (value: string | string[], details: AkazaChangeEventDetails) => any;
41
+ "onUpdate:modelValue"?: (value: string | string[]) => any;
42
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
43
+ rootRef: unknown;
44
+ }, any>;
45
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
46
+ export default _default;
47
+ type __VLS_WithTemplateSlots<T, S> = T & {
48
+ new (): {
49
+ $slots: S;
50
+ };
51
+ };
@@ -0,0 +1,37 @@
1
+ export { default as Accordion } from './Accordion.vue';
2
+ export interface AccordionItem {
3
+ label?: string;
4
+ value?: string;
5
+ content?: string;
6
+ disabled?: boolean;
7
+ /** Named slot to use for this item's body content. Falls back to the shared `content` slot. */
8
+ slot?: string;
9
+ [key: string]: any;
10
+ }
11
+ export interface AccordionUi {
12
+ item?: string;
13
+ trigger?: string;
14
+ icon?: string;
15
+ content?: string;
16
+ }
17
+ export interface AccordionProps {
18
+ items: AccordionItem[];
19
+ /** Property to use as the unique value. Falls back to item.value → item.label → String(item). */
20
+ valueKey?: string;
21
+ /** Property to use as the trigger label. Falls back to item.label → valueKey. */
22
+ labelKey?: string;
23
+ /** Property to use as the body text. Falls back to item.content. */
24
+ contentKey?: string;
25
+ /** Property to read for per-item disabled state. Defaults to "disabled". */
26
+ disabledKey?: string;
27
+ type?: "single" | "multiple";
28
+ /** Allow toggling open item closed again (single mode only). */
29
+ collapsible?: boolean;
30
+ /** Disable all items. */
31
+ disabled?: boolean;
32
+ orientation?: "vertical" | "horizontal";
33
+ /** When true, unmounts content from DOM when closed. Defaults to false (keeps mounted, hides via CSS). */
34
+ unmountOnHide?: boolean;
35
+ as?: string;
36
+ ui?: AccordionUi;
37
+ }
@@ -0,0 +1,60 @@
1
+ import { AlertDialogProps } from '.';
2
+ import { AkazaChangeEventDetails } from '../../types';
3
+ type __VLS_Props = AlertDialogProps;
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
+ }): any;
19
+ header?(_: {
20
+ close: typeof close;
21
+ titleId: string;
22
+ }): any;
23
+ title?(_: {}): any;
24
+ description?(_: {}): any;
25
+ body?(_: {
26
+ close: typeof close;
27
+ descriptionId: string;
28
+ }): any;
29
+ footer?(_: {
30
+ close: typeof close;
31
+ }): any;
32
+ };
33
+ refs: {
34
+ contentRef: unknown;
35
+ };
36
+ rootEl: any;
37
+ };
38
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
39
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {
40
+ open: typeof open;
41
+ close: typeof close;
42
+ toggle: typeof toggle;
43
+ titleId: string;
44
+ descriptionId: string;
45
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
46
+ "update:modelValue": (value: boolean) => any;
47
+ "open-change": (open: boolean, details: AkazaChangeEventDetails) => any;
48
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
49
+ "onUpdate:modelValue"?: (value: boolean) => any;
50
+ "onOpen-change"?: (open: boolean, details: AkazaChangeEventDetails) => any;
51
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
52
+ contentRef: unknown;
53
+ }, any>;
54
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
55
+ export default _default;
56
+ type __VLS_WithTemplateSlots<T, S> = T & {
57
+ new (): {
58
+ $slots: S;
59
+ };
60
+ };
@@ -0,0 +1,21 @@
1
+ export { default as AlertDialog } from './AlertDialog.vue';
2
+ export interface AlertDialogUi {
3
+ overlay?: string;
4
+ content?: string;
5
+ header?: string;
6
+ title?: string;
7
+ description?: string;
8
+ body?: string;
9
+ footer?: string;
10
+ }
11
+ export interface AlertDialogProps {
12
+ as?: string;
13
+ teleport?: string | false;
14
+ transition?: string | false;
15
+ duration?: number;
16
+ /** Convenience prop for the dialog title. Slot #title takes priority when provided. */
17
+ title?: string;
18
+ /** Convenience prop for the dialog description. Slot #description takes priority when provided. */
19
+ description?: string;
20
+ ui?: AlertDialogUi;
21
+ }
@@ -0,0 +1,25 @@
1
+ import { AvatarImageStatus, AvatarProps } from '.';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ image?(_: {
6
+ src: string | undefined;
7
+ alt: string;
8
+ status: AvatarImageStatus;
9
+ }): any;
10
+ fallback?(_: {
11
+ status: "error" | "idle" | "loading";
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<AvatarProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<AvatarProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
19
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
20
+ export default _default;
21
+ type __VLS_WithTemplateSlots<T, S> = T & {
22
+ new (): {
23
+ $slots: S;
24
+ };
25
+ };
@@ -0,0 +1,17 @@
1
+ export { default as Avatar } from './Avatar.vue';
2
+ export type AvatarImageStatus = "idle" | "loading" | "loaded" | "error";
3
+ export interface AvatarUi {
4
+ root?: string;
5
+ image?: string;
6
+ fallback?: string;
7
+ }
8
+ export interface AvatarProps {
9
+ as?: string;
10
+ src?: string;
11
+ alt?: string;
12
+ /** Fallback text (e.g. initials) shown when image is absent or fails. Slot #fallback takes priority. */
13
+ text?: string;
14
+ /** Delay in ms before the fallback is shown. Avoids a flash for users with fast connections. Defaults to 0. */
15
+ delayMs?: number;
16
+ ui?: AvatarUi;
17
+ }
@@ -0,0 +1,23 @@
1
+ import { ButtonProps } from '.';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ default?(_: {}): any;
6
+ loading?(_: {}): any;
7
+ };
8
+ refs: {};
9
+ rootEl: any;
10
+ };
11
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
+ declare const __VLS_component: import('vue').DefineComponent<ButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
13
+ click: (event: MouseEvent) => any;
14
+ }, string, import('vue').PublicProps, Readonly<ButtonProps> & Readonly<{
15
+ onClick?: (event: MouseEvent) => any;
16
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
17
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
18
+ export default _default;
19
+ type __VLS_WithTemplateSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };
@@ -0,0 +1,20 @@
1
+ import { Component } from 'vue';
2
+ export { default as Button } from './Button.vue';
3
+ export interface ButtonProps {
4
+ as?: string | Component;
5
+ /** Native button type. Only applied when as="button". Defaults to "button". */
6
+ type?: "button" | "submit" | "reset";
7
+ disabled?: boolean;
8
+ focusableWhenDisabled?: boolean;
9
+ loading?: boolean;
10
+ /**
11
+ * Automatically show a loading indicator while the click handler's Promise
12
+ * is pending. Requires `onClick` to be provided.
13
+ */
14
+ loadingAuto?: boolean;
15
+ /**
16
+ * Async-aware click handler. When `loadingAuto` is true and this returns a
17
+ * Promise, the button enters loading state until the Promise settles.
18
+ */
19
+ onClick?: (event: MouseEvent) => void | Promise<void>;
20
+ }
@@ -0,0 +1,33 @@
1
+ import { CheckboxProps, CheckboxValue } from '.';
2
+ import { AkazaChangeEventDetails } from '../../types';
3
+ type __VLS_Props = CheckboxProps;
4
+ type __VLS_PublicProps = {
5
+ modelValue?: CheckboxValue;
6
+ } & __VLS_Props;
7
+ declare function __VLS_template(): {
8
+ attrs: Partial<{}>;
9
+ slots: {
10
+ indicator?(_: {
11
+ checked: CheckboxValue;
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: CheckboxValue, details: AkazaChangeEventDetails) => any;
22
+ "update:modelValue": (value: CheckboxValue) => any;
23
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
24
+ "onValue-change"?: (value: CheckboxValue, details: AkazaChangeEventDetails) => any;
25
+ "onUpdate:modelValue"?: (value: CheckboxValue) => 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 Checkbox } from './Checkbox.vue';
2
+ export type CheckboxValue = boolean | "indeterminate";
3
+ export interface CheckboxUi {
4
+ /** Outer wrapper element. */
5
+ wrapper?: string;
6
+ /** The button element (the interactive checkbox). */
7
+ root?: string;
8
+ indicator?: string;
9
+ label?: string;
10
+ description?: string;
11
+ }
12
+ export interface CheckboxProps {
13
+ disabled?: boolean;
14
+ /** HTML id for the button element. Auto-generated when not provided. */
15
+ id?: string;
16
+ /** HTML name for form submission. Also renders a hidden native input. */
17
+ name?: string;
18
+ /** Marks the field as required for form validation. */
19
+ required?: boolean;
20
+ /** Value stored in the model when checked. Defaults to true. */
21
+ trueValue?: unknown;
22
+ /** Value stored in the model when unchecked. Defaults to false. */
23
+ falseValue?: unknown;
24
+ /** Convenience label text. Slot #label takes priority. */
25
+ label?: string;
26
+ /** Convenience description below the label. Slot #description takes priority. */
27
+ description?: string;
28
+ ui?: CheckboxUi;
29
+ }
@@ -0,0 +1,48 @@
1
+ import { CollapsibleProps } from '.';
2
+ import { AkazaChangeEventDetails } from '../../types';
3
+ type __VLS_Props = CollapsibleProps;
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
+ }): any;
19
+ icon?(_: {
20
+ isOpen: boolean;
21
+ }): any;
22
+ content?(_: {
23
+ isOpen: boolean;
24
+ close: typeof close;
25
+ }): any;
26
+ };
27
+ refs: {};
28
+ rootEl: any;
29
+ };
30
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
31
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {
32
+ open: typeof open;
33
+ close: typeof close;
34
+ toggle: typeof toggle;
35
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
36
+ "update:modelValue": (value: boolean) => any;
37
+ "open-change": (open: boolean, details: AkazaChangeEventDetails) => any;
38
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
39
+ "onUpdate:modelValue"?: (value: boolean) => any;
40
+ "onOpen-change"?: (open: boolean, details: AkazaChangeEventDetails) => any;
41
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
42
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
43
+ export default _default;
44
+ type __VLS_WithTemplateSlots<T, S> = T & {
45
+ new (): {
46
+ $slots: S;
47
+ };
48
+ };
@@ -0,0 +1,13 @@
1
+ export { default as Collapsible } from './Collapsible.vue';
2
+ export interface CollapsibleUi {
3
+ root?: string;
4
+ trigger?: string;
5
+ content?: string;
6
+ }
7
+ export interface CollapsibleProps {
8
+ as?: string;
9
+ disabled?: boolean;
10
+ /** When true, content is removed from the DOM when closed. Defaults to false (hidden via CSS). */
11
+ unmountOnHide?: boolean;
12
+ ui?: CollapsibleUi;
13
+ }
@@ -0,0 +1,61 @@
1
+ import { DialogProps } from '.';
2
+ import { AkazaChangeEventDetails } from '../../types';
3
+ type __VLS_Props = DialogProps;
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
+ }): any;
19
+ overlay?(_: {}): any;
20
+ header?(_: {
21
+ close: typeof close;
22
+ titleId: string;
23
+ }): any;
24
+ title?(_: {}): any;
25
+ description?(_: {}): any;
26
+ body?(_: {
27
+ close: typeof close;
28
+ descriptionId: string;
29
+ }): any;
30
+ footer?(_: {
31
+ close: typeof close;
32
+ }): any;
33
+ };
34
+ refs: {
35
+ contentRef: unknown;
36
+ };
37
+ rootEl: any;
38
+ };
39
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
40
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {
41
+ open: typeof open;
42
+ close: typeof close;
43
+ toggle: typeof toggle;
44
+ titleId: string;
45
+ descriptionId: string;
46
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
47
+ "update:modelValue": (value: boolean) => any;
48
+ "open-change": (open: boolean, details: AkazaChangeEventDetails) => any;
49
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
50
+ "onUpdate:modelValue"?: (value: boolean) => any;
51
+ "onOpen-change"?: (open: boolean, details: AkazaChangeEventDetails) => any;
52
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
53
+ contentRef: unknown;
54
+ }, any>;
55
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
56
+ export default _default;
57
+ type __VLS_WithTemplateSlots<T, S> = T & {
58
+ new (): {
59
+ $slots: S;
60
+ };
61
+ };
@@ -0,0 +1,21 @@
1
+ export { default as Dialog } from './Dialog.vue';
2
+ export interface DialogUi {
3
+ overlay?: string;
4
+ content?: string;
5
+ header?: string;
6
+ title?: string;
7
+ body?: string;
8
+ description?: string;
9
+ footer?: string;
10
+ }
11
+ export interface DialogProps {
12
+ as?: string;
13
+ title?: string;
14
+ description?: string;
15
+ closeOnBackdropClick?: boolean;
16
+ fullscreen?: boolean;
17
+ teleport?: string | false;
18
+ transition?: string | false;
19
+ duration?: number;
20
+ ui?: DialogUi;
21
+ }
@@ -0,0 +1,63 @@
1
+ import { DrawerProps } from '.';
2
+ import { AkazaChangeEventDetails } from '../../types';
3
+ type __VLS_Props = DrawerProps;
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
+ }): any;
19
+ handle?(_: {}): any;
20
+ header?(_: {
21
+ close: typeof close;
22
+ titleId: string;
23
+ }): any;
24
+ title?(_: {}): any;
25
+ description?(_: {}): any;
26
+ body?(_: {
27
+ close: typeof close;
28
+ descriptionId: string;
29
+ }): any;
30
+ footer?(_: {
31
+ close: typeof close;
32
+ }): any;
33
+ };
34
+ refs: {
35
+ overlayRef: HTMLDivElement;
36
+ contentRef: unknown;
37
+ };
38
+ rootEl: any;
39
+ };
40
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
41
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {
42
+ open: typeof open;
43
+ close: typeof close;
44
+ toggle: typeof toggle;
45
+ titleId: string;
46
+ descriptionId: string;
47
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
48
+ "update:modelValue": (value: boolean) => any;
49
+ "open-change": (open: boolean, details: AkazaChangeEventDetails) => any;
50
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
51
+ "onUpdate:modelValue"?: (value: boolean) => any;
52
+ "onOpen-change"?: (open: boolean, details: AkazaChangeEventDetails) => any;
53
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
54
+ overlayRef: HTMLDivElement;
55
+ contentRef: unknown;
56
+ }, any>;
57
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
58
+ export default _default;
59
+ type __VLS_WithTemplateSlots<T, S> = T & {
60
+ new (): {
61
+ $slots: S;
62
+ };
63
+ };
@@ -0,0 +1,23 @@
1
+ import { DrawerSide } from '../../composables/drawer';
2
+ export { default as Drawer } from './Drawer.vue';
3
+ export type { DrawerSide };
4
+ export interface DrawerUi {
5
+ overlay?: string;
6
+ content?: string;
7
+ header?: string;
8
+ title?: string;
9
+ body?: string;
10
+ description?: string;
11
+ footer?: string;
12
+ }
13
+ export interface DrawerProps {
14
+ as?: string;
15
+ title?: string;
16
+ description?: string;
17
+ side?: DrawerSide;
18
+ inset?: number | string;
19
+ closeOnBackdropClick?: boolean;
20
+ swipeToClose?: boolean;
21
+ teleport?: string | false;
22
+ ui?: DrawerUi;
23
+ }