vuiii 1.0.0-beta.7 → 1.0.0-beta.70

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 (119) hide show
  1. package/README.md +11 -10
  2. package/dist/arrow-narrow-down-ki8P0y5z.js +23 -0
  3. package/dist/arrow-narrow-left-Wgy0qoPB.js +23 -0
  4. package/dist/arrow-narrow-right-5V1guLFO.js +23 -0
  5. package/dist/arrow-narrow-up-Q1iPBhGB.js +23 -0
  6. package/dist/arrow-up-tray-mirG-3ug.js +22 -0
  7. package/dist/caret-sort-BY6i3v7u.js +22 -0
  8. package/dist/check-wmkB-ThF.js +23 -0
  9. package/dist/chevron-down-nuhEYGeY.js +23 -0
  10. package/dist/chevron-left-5gfMekdI.js +23 -0
  11. package/dist/chevron-right-biTtM4FJ.js +23 -0
  12. package/dist/chevron-up-iqhIysA-.js +23 -0
  13. package/dist/components/Breadcrumbs.vue.d.ts +17 -68
  14. package/dist/components/Button.vue.d.ts +50 -89
  15. package/dist/components/ButtonGroup.vue.d.ts +9 -0
  16. package/dist/components/Checkbox.vue.d.ts +66 -21
  17. package/dist/components/CheckboxGroup.vue.d.ts +61 -46
  18. package/dist/components/Dropdown.vue.d.ts +126 -0
  19. package/dist/components/DropdownMenu.vue.d.ts +172 -0
  20. package/dist/components/FormFields.vue.d.ts +75 -50
  21. package/dist/components/FormGroup.vue.d.ts +26 -73
  22. package/dist/components/Icon.vue.d.ts +8 -52
  23. package/dist/components/IconButton.vue.d.ts +20 -0
  24. package/dist/components/Input.vue.d.ts +66 -107
  25. package/dist/components/RadioButtonGroup.vue.d.ts +63 -0
  26. package/dist/components/RadioGroup.vue.d.ts +94 -0
  27. package/dist/components/Select.vue.d.ts +104 -135
  28. package/dist/components/Table.vue.d.ts +212 -70
  29. package/dist/components/Textarea.vue.d.ts +37 -77
  30. package/dist/components/Typography.vue.d.ts +24 -0
  31. package/dist/components/dialogStack/DialogLayout.vue.d.ts +64 -0
  32. package/dist/components/dialogStack/DialogStack.vue.d.ts +2 -0
  33. package/dist/components/snackbar/SnackbarStack.vue.d.ts +1 -19
  34. package/dist/components/transitions/FadeTransition.vue.d.ts +36 -0
  35. package/dist/composables/useAttrsWithoutClass.d.ts +3 -0
  36. package/dist/composables/useCursor.d.ts +11 -0
  37. package/dist/composables/useFilteredProps.d.ts +3 -0
  38. package/dist/composables/useLoadData.d.ts +38 -0
  39. package/dist/composables/useLoadPaginatedData.d.ts +16 -0
  40. package/dist/composables/useOnClickOutside.d.ts +2 -0
  41. package/dist/composables/useOnFocusOutside.d.ts +2 -0
  42. package/dist/composables/useOnKeyPress.d.ts +1 -0
  43. package/dist/composables/usePopper.d.ts +5 -0
  44. package/dist/composables/useRouteQuery.d.ts +20 -0
  45. package/dist/composables/useSubmitAction.d.ts +46 -0
  46. package/dist/composables/useValidation.d.ts +10 -0
  47. package/dist/dialogStack.d.ts +313 -0
  48. package/dist/exclamation-6Nez0eHx.js +23 -0
  49. package/dist/icons/arrow-narrow-down.vue.d.ts +1 -1
  50. package/dist/icons/arrow-narrow-left.vue.d.ts +1 -1
  51. package/dist/icons/arrow-narrow-right.vue.d.ts +1 -1
  52. package/dist/icons/arrow-narrow-up.vue.d.ts +1 -1
  53. package/dist/icons/arrow-up-tray.vue.d.ts +2 -0
  54. package/dist/icons/caret-sort.vue.d.ts +2 -0
  55. package/dist/icons/check.vue.d.ts +1 -1
  56. package/dist/icons/chevron-down.vue.d.ts +2 -0
  57. package/dist/icons/chevron-left.vue.d.ts +1 -1
  58. package/dist/icons/chevron-right.vue.d.ts +1 -1
  59. package/dist/icons/chevron-up.vue.d.ts +2 -0
  60. package/dist/icons/exclamation.vue.d.ts +1 -1
  61. package/dist/icons/mail.vue.d.ts +2 -0
  62. package/dist/icons/minus.vue.d.ts +1 -1
  63. package/dist/icons/pencil.vue.d.ts +2 -0
  64. package/dist/icons/plus.vue.d.ts +1 -1
  65. package/dist/icons/search.vue.d.ts +1 -1
  66. package/dist/icons/spinner.vue.d.ts +1 -1
  67. package/dist/icons/trash.vue.d.ts +1 -1
  68. package/dist/icons/triangle-down.vue.d.ts +2 -0
  69. package/dist/icons/triangle-left.vue.d.ts +2 -0
  70. package/dist/icons/triangle-right.vue.d.ts +2 -0
  71. package/dist/icons/triangle-up.vue.d.ts +2 -0
  72. package/dist/icons/x.vue.d.ts +1 -1
  73. package/dist/index-zdldEVCf.js +2501 -0
  74. package/dist/index.d.ts +26 -13
  75. package/dist/mail-esQOWGuL.js +23 -0
  76. package/dist/minus-19kTle-x.js +23 -0
  77. package/dist/pencil-zKuX6DzM.js +23 -0
  78. package/dist/plus-M5zC0dfm.js +23 -0
  79. package/dist/search-Xz0TK11F.js +23 -0
  80. package/dist/snackbar.d.ts +8 -9
  81. package/dist/spinner-daPsAniJ.js +24 -0
  82. package/dist/stories/assets/iconSizes.d.ts +2 -0
  83. package/dist/stories/assets/icons.d.ts +1 -0
  84. package/dist/stories/assets/inputSizes.d.ts +2 -0
  85. package/dist/stories/assets/options.d.ts +12 -0
  86. package/dist/stories/assets/tableItems.d.ts +8 -0
  87. package/dist/stories/helpers/components/DumpValue.vue.d.ts +17 -0
  88. package/dist/style.css +1 -1
  89. package/dist/trash-h7ogIefW.js +23 -0
  90. package/dist/triangle-down--lYIaNoq.js +20 -0
  91. package/dist/triangle-left-7zGTY-CH.js +20 -0
  92. package/dist/triangle-right-Scyivk0x.js +20 -0
  93. package/dist/triangle-up-fiVBa8Yl.js +20 -0
  94. package/dist/types.d.ts +85 -15
  95. package/dist/utils/createTypeParser.d.ts +2 -0
  96. package/dist/utils/iconsResolver.d.ts +3 -3
  97. package/dist/utils/normalizeOptions.d.ts +21 -3
  98. package/dist/utils/transformInputAttrs.d.ts +3 -3
  99. package/dist/vuiii.js +42 -0
  100. package/dist/x-fnwtwzH6.js +24 -0
  101. package/package.json +52 -37
  102. package/dist/components/Form.vue.d.ts +0 -87
  103. package/dist/components/Radio.vue.d.ts +0 -94
  104. package/dist/components/modal/ModalLayout.vue.d.ts +0 -39
  105. package/dist/components/modal/ModalLayoutDialog.vue.d.ts +0 -36
  106. package/dist/components/modal/ModalStack.vue.d.ts +0 -28
  107. package/dist/hooks/useLoadData.d.ts +0 -21
  108. package/dist/hooks/useOnClickOutside.d.ts +0 -2
  109. package/dist/hooks/useOnKeyPress.d.ts +0 -1
  110. package/dist/hooks/useRouteQuery.d.ts +0 -17
  111. package/dist/hooks/useSubmitAction.d.ts +0 -33
  112. package/dist/icons/check-circle.vue.d.ts +0 -2
  113. package/dist/icons/exclamation-circle.vue.d.ts +0 -2
  114. package/dist/modal.d.ts +0 -69
  115. package/dist/stories/Button.stories.d.ts +0 -449
  116. package/dist/stories/Icon.stories.d.ts +0 -128
  117. package/dist/utils/resolveGlobImport.d.ts +0 -3
  118. package/dist/vuiii.mjs +0 -1550
  119. package/dist/vuiii.umd.js +0 -1
package/README.md CHANGED
@@ -1,16 +1,17 @@
1
- # Vue 3 + TypeScript + Vite
1
+ # VUIII
2
2
 
3
- This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
3
+ A stupid simple components and utils library for rapid development of the UI in your project.
4
4
 
5
- ## Recommended IDE Setup
5
+ ## Instalation
6
6
 
7
- - [VS Code](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar)
7
+ ```sh
8
+ npm install vuiii
9
+ ```
8
10
 
9
- ## Type Support For `.vue` Imports in TS
11
+ ## Storybook
10
12
 
11
- Since TypeScript cannot handle type information for `.vue` imports, they are shimmed to be a generic Vue component type by default. In most cases this is fine if you don't really care about component prop types outside of templates. However, if you wish to get actual prop types in `.vue` imports (for example to get props validation when using manual `h(...)` calls), you can enable Volar's Take Over mode by following these steps:
13
+ Run showcase of all provided components in storybook
12
14
 
13
- 1. Run `Extensions: Show Built-in Extensions` from VS Code's command palette, look for `TypeScript and JavaScript Language Features`, then right click and select `Disable (Workspace)`. By default, Take Over mode will enable itself if the default TypeScript extension is disabled.
14
- 2. Reload the VS Code window by running `Developer: Reload Window` from the command palette.
15
-
16
- You can learn more about Take Over mode [here](https://github.com/johnsoncodehk/volar/discussions/471).
15
+ ```sh
16
+ npm run storybook
17
+ ```
@@ -0,0 +1,23 @@
1
+ import { openBlock as o, createElementBlock as e, createElementVNode as t } from "vue";
2
+ import { _ as r } from "./index-zdldEVCf.js";
3
+ import "vue-router";
4
+ const n = {}, s = {
5
+ xmlns: "http://www.w3.org/2000/svg",
6
+ fill: "none",
7
+ viewBox: "0 0 24 24",
8
+ stroke: "currentColor",
9
+ "stroke-width": "2"
10
+ }, c = /* @__PURE__ */ t("path", {
11
+ "stroke-linecap": "round",
12
+ "stroke-linejoin": "round",
13
+ d: "M16 17l-4 4m0 0l-4-4m4 4V3"
14
+ }, null, -1), l = [
15
+ c
16
+ ];
17
+ function _(i, a) {
18
+ return o(), e("svg", s, l);
19
+ }
20
+ const w = /* @__PURE__ */ r(n, [["render", _]]);
21
+ export {
22
+ w as default
23
+ };
@@ -0,0 +1,23 @@
1
+ import { openBlock as o, createElementBlock as e, createElementVNode as t } from "vue";
2
+ import { _ as r } from "./index-zdldEVCf.js";
3
+ import "vue-router";
4
+ const n = {}, s = {
5
+ xmlns: "http://www.w3.org/2000/svg",
6
+ fill: "none",
7
+ viewBox: "0 0 24 24",
8
+ stroke: "currentColor",
9
+ "stroke-width": "2"
10
+ }, c = /* @__PURE__ */ t("path", {
11
+ "stroke-linecap": "round",
12
+ "stroke-linejoin": "round",
13
+ d: "M7 16l-4-4m0 0l4-4m-4 4h18"
14
+ }, null, -1), l = [
15
+ c
16
+ ];
17
+ function _(i, a) {
18
+ return o(), e("svg", s, l);
19
+ }
20
+ const p = /* @__PURE__ */ r(n, [["render", _]]);
21
+ export {
22
+ p as default
23
+ };
@@ -0,0 +1,23 @@
1
+ import { openBlock as o, createElementBlock as e, createElementVNode as t } from "vue";
2
+ import { _ as r } from "./index-zdldEVCf.js";
3
+ import "vue-router";
4
+ const n = {}, s = {
5
+ xmlns: "http://www.w3.org/2000/svg",
6
+ fill: "none",
7
+ viewBox: "0 0 24 24",
8
+ stroke: "currentColor",
9
+ "stroke-width": "2"
10
+ }, c = /* @__PURE__ */ t("path", {
11
+ "stroke-linecap": "round",
12
+ "stroke-linejoin": "round",
13
+ d: "M17 8l4 4m0 0l-4 4m4-4H3"
14
+ }, null, -1), i = [
15
+ c
16
+ ];
17
+ function l(_, a) {
18
+ return o(), e("svg", s, i);
19
+ }
20
+ const f = /* @__PURE__ */ r(n, [["render", l]]);
21
+ export {
22
+ f as default
23
+ };
@@ -0,0 +1,23 @@
1
+ import { openBlock as o, createElementBlock as e, createElementVNode as t } from "vue";
2
+ import { _ as r } from "./index-zdldEVCf.js";
3
+ import "vue-router";
4
+ const n = {}, s = {
5
+ xmlns: "http://www.w3.org/2000/svg",
6
+ fill: "none",
7
+ viewBox: "0 0 24 24",
8
+ stroke: "currentColor",
9
+ "stroke-width": "2"
10
+ }, c = /* @__PURE__ */ t("path", {
11
+ "stroke-linecap": "round",
12
+ "stroke-linejoin": "round",
13
+ d: "M8 7l4-4m0 0l4 4m-4-4v18"
14
+ }, null, -1), l = [
15
+ c
16
+ ];
17
+ function _(i, a) {
18
+ return o(), e("svg", s, l);
19
+ }
20
+ const f = /* @__PURE__ */ r(n, [["render", _]]);
21
+ export {
22
+ f as default
23
+ };
@@ -0,0 +1,22 @@
1
+ import { openBlock as o, createElementBlock as e, createElementVNode as t } from "vue";
2
+ import { _ as r } from "./index-zdldEVCf.js";
3
+ import "vue-router";
4
+ const n = {}, s = {
5
+ fill: "none",
6
+ stroke: "currentColor",
7
+ viewBox: "0 0 24 24",
8
+ xmlns: "http://www.w3.org/2000/svg"
9
+ }, c = /* @__PURE__ */ t("path", {
10
+ "stroke-linecap": "round",
11
+ "stroke-linejoin": "round",
12
+ d: "M3 16.5v2.25A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75V16.5m-13.5-9L12 3m0 0l4.5 4.5M12 3v13.5"
13
+ }, null, -1), _ = [
14
+ c
15
+ ];
16
+ function l(i, a) {
17
+ return o(), e("svg", s, _);
18
+ }
19
+ const f = /* @__PURE__ */ r(n, [["render", l]]);
20
+ export {
21
+ f as default
22
+ };
@@ -0,0 +1,22 @@
1
+ import { openBlock as e, createElementBlock as o, createElementVNode as t } from "vue";
2
+ import { _ as r } from "./index-zdldEVCf.js";
3
+ import "vue-router";
4
+ const n = {}, c = {
5
+ viewBox: "0 0 15 15",
6
+ fill: "none",
7
+ xmlns: "http://www.w3.org/2000/svg"
8
+ }, l = /* @__PURE__ */ t("path", {
9
+ d: "M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",
10
+ fill: "currentColor",
11
+ "fill-rule": "evenodd",
12
+ "clip-rule": "evenodd"
13
+ }, null, -1), s = [
14
+ l
15
+ ];
16
+ function _(i, d) {
17
+ return e(), o("svg", c, s);
18
+ }
19
+ const m = /* @__PURE__ */ r(n, [["render", _]]);
20
+ export {
21
+ m as default
22
+ };
@@ -0,0 +1,23 @@
1
+ import { openBlock as e, createElementBlock as o, createElementVNode as t } from "vue";
2
+ import { _ as r } from "./index-zdldEVCf.js";
3
+ import "vue-router";
4
+ const n = {}, c = {
5
+ xmlns: "http://www.w3.org/2000/svg",
6
+ fill: "none",
7
+ viewBox: "0 0 24 24",
8
+ stroke: "currentColor",
9
+ "stroke-width": "2"
10
+ }, s = /* @__PURE__ */ t("path", {
11
+ "stroke-linecap": "round",
12
+ "stroke-linejoin": "round",
13
+ d: "M5 13l4 4L19 7"
14
+ }, null, -1), _ = [
15
+ s
16
+ ];
17
+ function i(l, d) {
18
+ return e(), o("svg", c, _);
19
+ }
20
+ const f = /* @__PURE__ */ r(n, [["render", i]]);
21
+ export {
22
+ f as default
23
+ };
@@ -0,0 +1,23 @@
1
+ import { openBlock as o, createElementBlock as e, createElementVNode as t } from "vue";
2
+ import { _ as n } from "./index-zdldEVCf.js";
3
+ import "vue-router";
4
+ const r = {}, s = {
5
+ xmlns: "http://www.w3.org/2000/svg",
6
+ fill: "none",
7
+ viewBox: "0 0 24 24",
8
+ stroke: "currentColor",
9
+ "stroke-width": "2"
10
+ }, c = /* @__PURE__ */ t("path", {
11
+ "stroke-linecap": "round",
12
+ "stroke-linejoin": "round",
13
+ d: "M19.5 8.25l-7.5 7.5-7.5-7.5"
14
+ }, null, -1), _ = [
15
+ c
16
+ ];
17
+ function i(l, d) {
18
+ return o(), e("svg", s, _);
19
+ }
20
+ const f = /* @__PURE__ */ n(r, [["render", i]]);
21
+ export {
22
+ f as default
23
+ };
@@ -0,0 +1,23 @@
1
+ import { openBlock as e, createElementBlock as o, createElementVNode as t } from "vue";
2
+ import { _ as r } from "./index-zdldEVCf.js";
3
+ import "vue-router";
4
+ const n = {}, s = {
5
+ xmlns: "http://www.w3.org/2000/svg",
6
+ fill: "none",
7
+ viewBox: "0 0 24 24",
8
+ stroke: "currentColor",
9
+ "stroke-width": "2"
10
+ }, c = /* @__PURE__ */ t("path", {
11
+ "stroke-linecap": "round",
12
+ "stroke-linejoin": "round",
13
+ d: "M15 19l-7-7 7-7"
14
+ }, null, -1), _ = [
15
+ c
16
+ ];
17
+ function i(l, d) {
18
+ return e(), o("svg", s, _);
19
+ }
20
+ const p = /* @__PURE__ */ r(n, [["render", i]]);
21
+ export {
22
+ p as default
23
+ };
@@ -0,0 +1,23 @@
1
+ import { openBlock as o, createElementBlock as e, createElementVNode as t } from "vue";
2
+ import { _ as r } from "./index-zdldEVCf.js";
3
+ import "vue-router";
4
+ const n = {}, s = {
5
+ xmlns: "http://www.w3.org/2000/svg",
6
+ fill: "none",
7
+ viewBox: "0 0 24 24",
8
+ stroke: "currentColor",
9
+ "stroke-width": "2"
10
+ }, c = /* @__PURE__ */ t("path", {
11
+ "stroke-linecap": "round",
12
+ "stroke-linejoin": "round",
13
+ d: "M9 5l7 7-7 7"
14
+ }, null, -1), i = [
15
+ c
16
+ ];
17
+ function _(l, d) {
18
+ return o(), e("svg", s, i);
19
+ }
20
+ const p = /* @__PURE__ */ r(n, [["render", _]]);
21
+ export {
22
+ p as default
23
+ };
@@ -0,0 +1,23 @@
1
+ import { openBlock as o, createElementBlock as e, createElementVNode as t } from "vue";
2
+ import { _ as r } from "./index-zdldEVCf.js";
3
+ import "vue-router";
4
+ const n = {}, s = {
5
+ xmlns: "http://www.w3.org/2000/svg",
6
+ fill: "none",
7
+ viewBox: "0 0 24 24",
8
+ stroke: "currentColor",
9
+ "stroke-width": "2"
10
+ }, c = /* @__PURE__ */ t("path", {
11
+ "stroke-linecap": "round",
12
+ "stroke-linejoin": "round",
13
+ d: "M4.5 15.75l7.5-7.5 7.5 7.5"
14
+ }, null, -1), _ = [
15
+ c
16
+ ];
17
+ function i(l, d) {
18
+ return o(), e("svg", s, _);
19
+ }
20
+ const f = /* @__PURE__ */ r(n, [["render", i]]);
21
+ export {
22
+ f as default
23
+ };
@@ -1,72 +1,18 @@
1
- import { BreadcrumbItems } from '@/types';
2
- declare const _default: {
3
- new (...args: any[]): {
4
- $: import("vue").ComponentInternalInstance;
5
- $data: {};
6
- $props: Partial<{
7
- breadcrumbs: BreadcrumbItems;
8
- }> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
9
- breadcrumbs: BreadcrumbItems;
10
- }>, {
11
- breadcrumbs: () => {};
12
- }>>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "breadcrumbs">;
13
- $attrs: {
14
- [x: string]: unknown;
15
- };
16
- $refs: {
17
- [x: string]: unknown;
18
- };
19
- $slots: Readonly<{
20
- [name: string]: import("vue").Slot | undefined;
21
- }>;
22
- $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
23
- $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
24
- $emit: (event: string, ...args: any[]) => void;
25
- $el: any;
26
- $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
27
- breadcrumbs: BreadcrumbItems;
28
- }>, {
29
- breadcrumbs: () => {};
30
- }>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
31
- breadcrumbs: BreadcrumbItems;
32
- }, {}, string> & {
33
- beforeCreate?: ((() => void) | (() => void)[]) | undefined;
34
- created?: ((() => void) | (() => void)[]) | undefined;
35
- beforeMount?: ((() => void) | (() => void)[]) | undefined;
36
- mounted?: ((() => void) | (() => void)[]) | undefined;
37
- beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
38
- updated?: ((() => void) | (() => void)[]) | undefined;
39
- activated?: ((() => void) | (() => void)[]) | undefined;
40
- deactivated?: ((() => void) | (() => void)[]) | undefined;
41
- beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
42
- beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
43
- destroyed?: ((() => void) | (() => void)[]) | undefined;
44
- unmounted?: ((() => void) | (() => void)[]) | undefined;
45
- renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
46
- renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
47
- errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
48
- };
49
- $forceUpdate: () => void;
50
- $nextTick: typeof import("vue").nextTick;
51
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
52
- } & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
53
- breadcrumbs: BreadcrumbItems;
54
- }>, {
55
- breadcrumbs: () => {};
56
- }>>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
57
- __isFragment?: undefined;
58
- __isTeleport?: undefined;
59
- __isSuspense?: undefined;
60
- } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
1
+ import type { BreadcrumbItems } from '@/types';
2
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
61
3
  breadcrumbs: BreadcrumbItems;
62
4
  }>, {
63
- breadcrumbs: () => {};
64
- }>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
5
+ breadcrumbs: () => never[];
6
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
65
7
  breadcrumbs: BreadcrumbItems;
66
- }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
8
+ }>, {
9
+ breadcrumbs: () => never[];
10
+ }>>>, {
11
+ breadcrumbs: BreadcrumbItems;
12
+ }, {}>;
67
13
  export default _default;
68
- declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
69
- declare type __VLS_TypePropsToRuntimeProps<T> = {
14
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
15
+ type __VLS_TypePropsToRuntimeProps<T> = {
70
16
  [K in keyof T]-?: {} extends Pick<T, K> ? {
71
17
  type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
72
18
  } : {
@@ -74,8 +20,11 @@ declare type __VLS_TypePropsToRuntimeProps<T> = {
74
20
  required: true;
75
21
  };
76
22
  };
77
- declare type __VLS_WithDefaults<P, D> = {
78
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
23
+ type __VLS_WithDefaults<P, D> = {
24
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
79
25
  default: D[K];
80
- } : P[K];
26
+ }> : P[K];
81
27
  };
28
+ type __VLS_Prettify<T> = {
29
+ [K in keyof T]: T[K];
30
+ } & {};
@@ -1,93 +1,41 @@
1
- import '../assets/css/button.css';
2
- import { ButtonVariant } from '../types';
3
- declare const _default: {
4
- new (...args: any[]): {
5
- $: import("vue").ComponentInternalInstance;
6
- $data: {};
7
- $props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
8
- size?: import("../types").InputSize | undefined;
9
- variant?: ButtonVariant | undefined;
10
- prefixIcon?: string | undefined;
11
- suffixIcon?: string | undefined;
12
- label?: string | undefined;
13
- block?: boolean | undefined;
14
- loading?: boolean | undefined;
15
- active?: boolean | undefined;
16
- }>>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
17
- $attrs: {
18
- [x: string]: unknown;
19
- };
20
- $refs: {
21
- [x: string]: unknown;
22
- };
23
- $slots: Readonly<{
24
- [name: string]: import("vue").Slot | undefined;
25
- }>;
26
- $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
27
- $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
28
- $emit: (event: string, ...args: any[]) => void;
29
- $el: any;
30
- $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
31
- size?: import("../types").InputSize | undefined;
32
- variant?: ButtonVariant | undefined;
33
- prefixIcon?: string | undefined;
34
- suffixIcon?: string | undefined;
35
- label?: string | undefined;
36
- block?: boolean | undefined;
37
- loading?: boolean | undefined;
38
- active?: boolean | undefined;
39
- }>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & {
40
- beforeCreate?: ((() => void) | (() => void)[]) | undefined;
41
- created?: ((() => void) | (() => void)[]) | undefined;
42
- beforeMount?: ((() => void) | (() => void)[]) | undefined;
43
- mounted?: ((() => void) | (() => void)[]) | undefined;
44
- beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
45
- updated?: ((() => void) | (() => void)[]) | undefined;
46
- activated?: ((() => void) | (() => void)[]) | undefined;
47
- deactivated?: ((() => void) | (() => void)[]) | undefined;
48
- beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
49
- beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
50
- destroyed?: ((() => void) | (() => void)[]) | undefined;
51
- unmounted?: ((() => void) | (() => void)[]) | undefined;
52
- renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
53
- renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
54
- errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
55
- };
56
- $forceUpdate: () => void;
57
- $nextTick: typeof import("vue").nextTick;
58
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
59
- } & Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
60
- size?: import("../types").InputSize | undefined;
61
- variant?: ButtonVariant | undefined;
62
- prefixIcon?: string | undefined;
63
- suffixIcon?: string | undefined;
64
- label?: string | undefined;
65
- block?: boolean | undefined;
66
- loading?: boolean | undefined;
67
- active?: boolean | undefined;
68
- }>>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
69
- __isFragment?: undefined;
70
- __isTeleport?: undefined;
71
- __isSuspense?: undefined;
72
- } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
73
- size?: import("../types").InputSize | undefined;
74
- variant?: ButtonVariant | undefined;
75
- prefixIcon?: string | undefined;
76
- suffixIcon?: string | undefined;
77
- label?: string | undefined;
78
- block?: boolean | undefined;
79
- loading?: boolean | undefined;
80
- active?: boolean | undefined;
81
- }>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
82
- $slots: {
83
- prefix: (_: {}) => any;
84
- default: (_: {}) => any;
85
- suffix: (_: {}) => any;
86
- };
87
- });
1
+ import '@/assets/css/button.css';
2
+ import type { RouteLocationRaw } from 'vue-router';
3
+ import type { ButtonVariant, InputSize } from '@/types';
4
+ export interface NativeButtonProps {
5
+ disabled?: boolean;
6
+ type?: 'button' | 'submit' | 'reset';
7
+ }
8
+ export interface ButtonProps extends NativeButtonProps {
9
+ size?: InputSize;
10
+ variant?: ButtonVariant;
11
+ prefixIcon?: string;
12
+ suffixIcon?: string;
13
+ label?: string;
14
+ block?: boolean;
15
+ loading?: boolean;
16
+ outlined?: boolean;
17
+ pill?: boolean;
18
+ to?: RouteLocationRaw;
19
+ href?: string;
20
+ }
21
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ButtonProps>, {
22
+ type: string;
23
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ButtonProps>, {
24
+ type: string;
25
+ }>>>, {
26
+ type: "button" | "submit" | "reset";
27
+ }, {}>, Readonly<{
28
+ prefix?: void | undefined;
29
+ default?: void | undefined;
30
+ suffix?: void | undefined;
31
+ }> & {
32
+ prefix?: void | undefined;
33
+ default?: void | undefined;
34
+ suffix?: void | undefined;
35
+ }>;
88
36
  export default _default;
89
- declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
90
- declare type __VLS_TypePropsToRuntimeProps<T> = {
37
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
38
+ type __VLS_TypePropsToRuntimeProps<T> = {
91
39
  [K in keyof T]-?: {} extends Pick<T, K> ? {
92
40
  type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
93
41
  } : {
@@ -95,3 +43,16 @@ declare type __VLS_TypePropsToRuntimeProps<T> = {
95
43
  required: true;
96
44
  };
97
45
  };
46
+ type __VLS_WithDefaults<P, D> = {
47
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
48
+ default: D[K];
49
+ }> : P[K];
50
+ };
51
+ type __VLS_Prettify<T> = {
52
+ [K in keyof T]: T[K];
53
+ } & {};
54
+ type __VLS_WithTemplateSlots<T, S> = T & {
55
+ new (): {
56
+ $slots: S;
57
+ };
58
+ };
@@ -0,0 +1,9 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>, {
2
+ default?(_: {}): any;
3
+ }>;
4
+ export default _default;
5
+ type __VLS_WithTemplateSlots<T, S> = T & {
6
+ new (): {
7
+ $slots: S;
8
+ };
9
+ };
@@ -1,28 +1,73 @@
1
- import '../assets/css/input.css';
2
- declare const _default: import("vue").DefineComponent<{
3
- modelValue: BooleanConstructor;
4
- required: BooleanConstructor;
5
- switch: BooleanConstructor;
6
- caption: {
7
- type: StringConstructor;
1
+ import '@/assets/css/input.css';
2
+ import type { InputSize, ValueParser } from '@/types';
3
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
4
+ modelValue: import('vue').PropType<any>;
5
+ size: {
6
+ type: import("vue").PropType<InputSize>;
8
7
  default: string;
9
8
  };
10
- }, unknown, unknown, {}, {}, import("vue").DefineComponent<{}, {}, {}, {
11
- normalizedAttrs(): any;
12
- }, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
13
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
14
- }, {}>, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
15
- modelValue: BooleanConstructor;
16
- required: BooleanConstructor;
17
- switch: BooleanConstructor;
18
- caption: {
19
- type: StringConstructor;
9
+ required: {
10
+ type: import("vue").PropType<boolean>;
11
+ };
12
+ label: {
13
+ type: import("vue").PropType<string>;
14
+ };
15
+ switch: {
16
+ type: import("vue").PropType<boolean>;
17
+ };
18
+ disabled: {
19
+ type: import("vue").PropType<boolean>;
20
+ };
21
+ description: {
22
+ type: import("vue").PropType<string>;
23
+ };
24
+ valueParser: {
25
+ type: import("vue").PropType<ValueParser<boolean>>;
26
+ };
27
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
28
+ modelValue: import('vue').PropType<any>;
29
+ size: {
30
+ type: import("vue").PropType<InputSize>;
20
31
  default: string;
21
32
  };
33
+ required: {
34
+ type: import("vue").PropType<boolean>;
35
+ };
36
+ label: {
37
+ type: import("vue").PropType<string>;
38
+ };
39
+ switch: {
40
+ type: import("vue").PropType<boolean>;
41
+ };
42
+ disabled: {
43
+ type: import("vue").PropType<boolean>;
44
+ };
45
+ description: {
46
+ type: import("vue").PropType<string>;
47
+ };
48
+ valueParser: {
49
+ type: import("vue").PropType<ValueParser<boolean>>;
50
+ };
22
51
  }>>, {
23
- caption: string;
24
- switch: boolean;
25
- required: boolean;
26
- modelValue: boolean;
52
+ size: InputSize;
53
+ }, {}>, Readonly<{
54
+ default?: void | undefined;
55
+ symbol?: ((props: {
56
+ checked: boolean;
57
+ disabled: boolean;
58
+ size: InputSize;
59
+ }) => any) | undefined;
60
+ }> & {
61
+ default?: void | undefined;
62
+ symbol?: ((props: {
63
+ checked: boolean;
64
+ disabled: boolean;
65
+ size: InputSize;
66
+ }) => any) | undefined;
27
67
  }>;
28
68
  export default _default;
69
+ type __VLS_WithTemplateSlots<T, S> = T & {
70
+ new (): {
71
+ $slots: S;
72
+ };
73
+ };