paket-ui 0.1.0 → 0.1.2

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 (102) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/module.mjs +7 -0
  3. package/dist/runtime/assets/main.css +1 -1
  4. package/dist/runtime/components/app.d.vue.ts +13 -0
  5. package/dist/runtime/components/app.vue +10 -0
  6. package/dist/runtime/components/app.vue.d.ts +13 -0
  7. package/dist/runtime/components/badge/index.js +1 -1
  8. package/dist/runtime/components/breadcrumb/Breadcrumb.d.vue.ts +11 -0
  9. package/dist/runtime/components/breadcrumb/Breadcrumb.vue +35 -0
  10. package/dist/runtime/components/breadcrumb/Breadcrumb.vue.d.ts +11 -0
  11. package/dist/runtime/components/button/Button.d.vue.ts +5 -3
  12. package/dist/runtime/components/button/Button.vue +3 -1
  13. package/dist/runtime/components/button/Button.vue.d.ts +5 -3
  14. package/dist/runtime/components/button/variant.d.ts +7 -1
  15. package/dist/runtime/components/button/variant.js +8 -2
  16. package/dist/runtime/components/chat/Reply.d.vue.ts +1 -1
  17. package/dist/runtime/components/chat/Reply.vue +2 -2
  18. package/dist/runtime/components/chat/Reply.vue.d.ts +1 -1
  19. package/dist/runtime/components/chip/Chip.vue +1 -1
  20. package/dist/runtime/components/combobox/Combobox.d.vue.ts +1 -1
  21. package/dist/runtime/components/combobox/Combobox.vue.d.ts +1 -1
  22. package/dist/runtime/components/dialog/DialogConfirmationSingle.d.vue.ts +2 -2
  23. package/dist/runtime/components/dialog/DialogConfirmationSingle.vue.d.ts +2 -2
  24. package/dist/runtime/components/divider/Divider.vue +3 -3
  25. package/dist/runtime/components/editor/Editor.vue +1 -1
  26. package/dist/runtime/components/editor/EditorBar.vue +2 -2
  27. package/dist/runtime/components/file/AddFile.vue +1 -1
  28. package/dist/runtime/components/file/InputMultiple.vue +1 -1
  29. package/dist/runtime/components/file/ViewFile.vue +1 -1
  30. package/dist/runtime/components/input/InputField.d.vue.ts +2 -2
  31. package/dist/runtime/components/input/InputField.vue.d.ts +2 -2
  32. package/dist/runtime/components/input/InputFieldPassword.d.vue.ts +3 -3
  33. package/dist/runtime/components/input/InputFieldPassword.vue.d.ts +3 -3
  34. package/dist/runtime/components/input/InputFileDropable.vue +1 -1
  35. package/dist/runtime/components/input/InputOtp.vue +1 -1
  36. package/dist/runtime/components/loading/LoadingIndicator.vue +1 -1
  37. package/dist/runtime/components/navbar/Navbar.d.vue.ts +13 -0
  38. package/dist/runtime/components/navbar/Navbar.vue +56 -0
  39. package/dist/runtime/components/navbar/Navbar.vue.d.ts +13 -0
  40. package/dist/runtime/components/navbar/NavbarMenus.d.vue.ts +19 -0
  41. package/dist/runtime/components/navbar/NavbarMenus.vue +34 -0
  42. package/dist/runtime/components/navbar/NavbarMenus.vue.d.ts +19 -0
  43. package/dist/runtime/components/navbar/NavbarSearch.d.vue.ts +18 -0
  44. package/dist/runtime/components/navbar/NavbarSearch.vue +78 -0
  45. package/dist/runtime/components/navbar/NavbarSearch.vue.d.ts +18 -0
  46. package/dist/runtime/components/navbar/NavbarSearchInput.d.vue.ts +133 -0
  47. package/dist/runtime/components/navbar/NavbarSearchInput.vue +54 -0
  48. package/dist/runtime/components/navbar/NavbarSearchInput.vue.d.ts +133 -0
  49. package/dist/runtime/components/navbar/NavbarSearchResults.d.vue.ts +11 -0
  50. package/dist/runtime/components/navbar/NavbarSearchResults.vue +34 -0
  51. package/dist/runtime/components/navbar/NavbarSearchResults.vue.d.ts +11 -0
  52. package/dist/runtime/components/page/Dashboard.d.vue.ts +18 -0
  53. package/dist/runtime/components/page/Dashboard.vue +31 -0
  54. package/dist/runtime/components/page/Dashboard.vue.d.ts +18 -0
  55. package/dist/runtime/components/page/PageHeader.d.vue.ts +26 -0
  56. package/dist/runtime/components/page/PageHeader.vue +60 -0
  57. package/dist/runtime/components/page/PageHeader.vue.d.ts +26 -0
  58. package/dist/runtime/components/player/Video.vue +5 -1
  59. package/dist/runtime/components/radio/Courier.vue +2 -2
  60. package/dist/runtime/components/radio/RadioCourierBadge.vue +1 -1
  61. package/dist/runtime/components/range-picker/RangePicker.vue +1 -1
  62. package/dist/runtime/components/select/Select.vue +1 -1
  63. package/dist/runtime/components/select/SelectWithInput.vue +1 -1
  64. package/dist/runtime/components/sidebar/Sidebar.d.vue.ts +26 -0
  65. package/dist/runtime/components/sidebar/Sidebar.vue +68 -0
  66. package/dist/runtime/components/sidebar/Sidebar.vue.d.ts +26 -0
  67. package/dist/runtime/components/sidebar/SidebarChild.d.vue.ts +8 -0
  68. package/dist/runtime/components/sidebar/SidebarChild.vue +64 -0
  69. package/dist/runtime/components/sidebar/SidebarChild.vue.d.ts +8 -0
  70. package/dist/runtime/components/sidebar/SidebarCollapse.d.vue.ts +6 -0
  71. package/dist/runtime/components/sidebar/SidebarCollapse.vue +31 -0
  72. package/dist/runtime/components/sidebar/SidebarCollapse.vue.d.ts +6 -0
  73. package/dist/runtime/components/sidebar/SidebarMenu.d.vue.ts +16 -0
  74. package/dist/runtime/components/sidebar/SidebarMenu.vue +20 -0
  75. package/dist/runtime/components/sidebar/SidebarMenu.vue.d.ts +16 -0
  76. package/dist/runtime/components/sidebar/SidebarParent.d.vue.ts +7 -0
  77. package/dist/runtime/components/sidebar/SidebarParent.vue +182 -0
  78. package/dist/runtime/components/sidebar/SidebarParent.vue.d.ts +7 -0
  79. package/dist/runtime/components/toast/ToastCard.vue +1 -1
  80. package/dist/runtime/components/toast/ToastContainer.vue +1 -1
  81. package/dist/runtime/composables/useDevice.d.ts +4 -0
  82. package/dist/runtime/composables/useDevice.js +10 -0
  83. package/dist/runtime/composables/useSidebar.d.ts +8 -0
  84. package/dist/runtime/composables/useSidebar.js +30 -0
  85. package/dist/runtime/lib/utils.d.ts +3 -5
  86. package/dist/runtime/lib/utils.js +5 -15
  87. package/dist/runtime/plugin.d.ts +15 -0
  88. package/dist/runtime/plugin.js +84 -2
  89. package/dist/runtime/types/navigation.d.ts +20 -0
  90. package/dist/runtime/types/navigation.js +0 -0
  91. package/package.json +2 -2
  92. package/dist/runtime/components/icon/KAFavicon.d.vue.ts +0 -3
  93. package/dist/runtime/components/icon/KAFavicon.vue +0 -45
  94. package/dist/runtime/components/icon/KAFavicon.vue.d.ts +0 -3
  95. package/dist/runtime/components/icon/KALogo.d.vue.ts +0 -3
  96. package/dist/runtime/components/icon/KALogo.vue +0 -102
  97. package/dist/runtime/components/icon/KALogo.vue.d.ts +0 -3
  98. package/dist/runtime/components/icon/KALogoMono.d.vue.ts +0 -3
  99. package/dist/runtime/components/icon/KALogoMono.vue +0 -70
  100. package/dist/runtime/components/icon/KALogoMono.vue.d.ts +0 -3
  101. package/dist/runtime/plugins/toast.client.d.ts +0 -17
  102. package/dist/runtime/plugins/toast.client.js +0 -85
@@ -1,70 +0,0 @@
1
- <template>
2
- <svg viewBox="0 0 56 14" fill="none" xmlns="http://www.w3.org/2000/svg">
3
- <path
4
- d="M52.9564 5.02295C52.2921 5.02295 51.5812 5.16804 51.0319 5.44267C50.8713 5.52247 50.8081 5.72248 50.8879 5.88312L51.1459 6.40233C51.2433 6.5982 51.4786 6.68628 51.6755 6.59301C51.9843 6.44689 52.3553 6.36191 52.6984 6.36191C53.1834 6.36191 53.4964 6.50181 53.6497 6.7609C53.7534 6.93501 53.6155 7.15679 53.4124 7.15679H52.7626C51.2112 7.15679 50.5376 7.72885 50.5376 8.65223C50.5376 9.52069 51.2029 10.1943 52.403 10.1943C52.8922 10.1943 53.2777 10.0824 53.5534 9.86372C53.6332 9.80051 53.7845 9.82745 53.8498 9.90414C53.9524 10.0254 54.0912 10.1114 54.2508 10.1114H55.1638C55.3576 10.1114 55.5152 9.95388 55.5152 9.76009V7.33193C55.5152 5.74321 54.5825 5.02295 52.9575 5.02295H52.9564ZM52.8911 9.08646C52.4756 9.08646 52.2351 8.87401 52.2351 8.57865C52.2351 8.28329 52.4383 8.07084 53.002 8.07084H53.4083C53.6021 8.07084 53.7596 8.22837 53.7596 8.42216V8.44496C53.7596 8.48435 53.7534 8.52476 53.7378 8.56104C53.5876 8.91961 53.2601 9.08646 52.8911 9.08646Z"
5
- fill="currentColor"
6
- />
7
- <path
8
- d="M48.1143 11.9853C49.4066 11.9853 50.1548 11.2008 50.1548 9.98099V5.4563C50.1548 5.26251 49.9973 5.10498 49.8035 5.10498H48.7516C48.5578 5.10498 48.4003 5.26251 48.4003 5.4563V9.97166C48.4003 10.4245 48.1878 10.6277 47.8832 10.6277C47.8376 10.6277 47.793 10.6246 47.7484 10.6194C47.5256 10.5924 47.2665 10.6805 47.1919 10.8919L46.9929 11.4505C46.9359 11.6101 47.0012 11.7905 47.1619 11.8454C47.4365 11.9397 47.7733 11.9853 48.1132 11.9853H48.1143Z"
9
- fill="currentColor"
10
- />
11
- <path
12
- d="M45.1235 5.02295C44.4592 5.02295 43.7483 5.16804 43.199 5.44267C43.0384 5.52247 42.9751 5.72248 43.0539 5.88312L43.3109 6.40233C43.4083 6.5982 43.6436 6.68732 43.8415 6.59301C44.1504 6.44689 44.5214 6.36191 44.8644 6.36191C45.3494 6.36191 45.6624 6.50181 45.8158 6.7609C45.9194 6.93501 45.7816 7.15679 45.5784 7.15679H44.9286C43.3772 7.15679 42.7036 7.72885 42.7036 8.65223C42.7036 9.52069 43.3679 10.1943 44.569 10.1943C45.0582 10.1943 45.4437 10.0824 45.7194 9.86372C45.8054 9.79532 45.9733 9.8316 46.0282 9.92176C46.1039 10.0461 46.249 10.1114 46.394 10.1114H47.3299C47.5237 10.1114 47.6812 9.95388 47.6812 9.76009V7.33193C47.6812 5.74321 46.7485 5.02295 45.1235 5.02295ZM45.0582 9.08646C44.6426 9.08646 44.4022 8.87401 44.4022 8.57865C44.4022 8.28329 44.6053 8.07084 45.1691 8.07084H45.5753C45.7691 8.07084 45.9266 8.22837 45.9266 8.42216V8.44496C45.9266 8.48435 45.9204 8.52373 45.9049 8.56C45.7546 8.91857 45.4271 9.08646 45.0582 9.08646Z"
13
- fill="currentColor"
14
- />
15
- <path
16
- d="M40.2818 5.02295C39.7968 5.02295 39.3501 5.14938 38.9894 5.39914C38.8972 5.46236 38.7646 5.42712 38.7138 5.33903C38.6443 5.21675 38.4899 5.10586 38.349 5.10586H37.3738C37.18 5.10586 37.0225 5.26338 37.0225 5.45718V9.75905C37.0225 9.95285 37.18 10.1104 37.3738 10.1104H38.4257C38.6195 10.1104 38.777 9.95285 38.777 9.75905V7.69154C38.777 6.86039 39.2112 6.50907 39.774 6.50907C40.2818 6.50907 40.5958 6.81375 40.5958 7.53402V9.75905C40.5958 9.95285 40.7533 10.1104 40.9471 10.1104H41.999C42.1928 10.1104 42.3503 9.95285 42.3503 9.75905V7.24798C42.3503 5.69657 41.4549 5.02295 40.2818 5.02295Z"
17
- fill="currentColor"
18
- />
19
- <path
20
- d="M34.9402 5.10602H35.9921C36.1859 5.10602 36.3434 5.26354 36.3434 5.45734V9.75921C36.3434 9.95301 36.1859 10.1105 35.9921 10.1105H34.9402C34.7464 10.1105 34.5889 9.95301 34.5889 9.75921V5.4563C34.5889 5.26251 34.7464 5.10498 34.9402 5.10498V5.10602Z"
21
- fill="currentColor"
22
- />
23
- <path
24
- d="M31.9216 5.02295C31.3889 5.02295 30.9111 5.17944 30.538 5.4634C30.3474 5.60848 30.0479 5.60019 29.8644 5.44578C29.5224 5.15871 29.0737 5.02295 28.569 5.02295C28.114 5.02295 27.6974 5.14317 27.3565 5.38463C27.2684 5.44681 27.1409 5.41365 27.0922 5.32971C27.0072 5.18255 26.8373 5.10689 26.6673 5.10689H25.7522C25.5584 5.10689 25.4009 5.26442 25.4009 5.45821V9.76009C25.4009 9.95388 25.5584 10.1114 25.7522 10.1114H26.8041C26.9979 10.1114 27.1554 9.95388 27.1554 9.76009V7.62729C27.1554 6.8521 27.5244 6.51011 28.0415 6.51011C28.513 6.51011 28.7991 6.81479 28.7991 7.53505V9.76009C28.7991 9.95388 28.9566 10.1114 29.1504 10.1114H30.2023C30.3961 10.1114 30.5536 9.95388 30.5536 9.76009V7.62729C30.5536 6.8521 30.9225 6.51011 31.4314 6.51011C31.8926 6.51011 32.1889 6.81479 32.1889 7.53505V9.76009C32.1889 9.95388 32.3465 10.1114 32.5403 10.1114H33.5922C33.786 10.1114 33.9435 9.95388 33.9435 9.76009V7.24902C33.9435 5.69761 33.0844 5.02399 31.9216 5.02399V5.02295Z"
25
- fill="currentColor"
26
- />
27
- <path
28
- d="M23.3201 5.10596H24.372C24.5658 5.10596 24.7233 5.26348 24.7233 5.45728V9.75915C24.7233 9.95295 24.5658 10.1105 24.372 10.1105H23.3201C23.1263 10.1105 22.9688 9.95295 22.9688 9.75915V5.45728C22.9688 5.26348 23.1263 5.10596 23.3201 5.10596Z"
29
- fill="currentColor"
30
- />
31
- <path
32
- d="M21.3478 5.40131C21.2463 5.4749 21.0835 5.42826 21.039 5.32152C20.9799 5.18368 20.8307 5.10596 20.6814 5.10596H19.7073C19.5135 5.10596 19.356 5.26348 19.356 5.45728V9.75915C19.356 9.95295 19.5135 10.1105 19.7073 10.1105H20.7592C20.953 10.1105 21.1105 9.95295 21.1105 9.75915V7.81082C21.1105 6.92267 21.6121 6.5641 22.3375 6.57342C22.5417 6.57549 22.7075 6.40968 22.7075 6.20552V5.37333C22.7075 5.17643 22.5365 5.01994 22.3406 5.04274C21.951 5.08834 21.6162 5.20752 21.3478 5.40028V5.40131Z"
33
- fill="currentColor"
34
- />
35
- <path
36
- d="M17.2727 5.10602H18.3246C18.5184 5.10602 18.6759 5.26354 18.6759 5.45734V9.75921C18.6759 9.95301 18.5184 10.1105 18.3246 10.1105H17.2727C17.0789 10.1105 16.9214 9.95301 16.9214 9.75921V5.4563C16.9214 5.26251 17.0789 5.10498 17.2727 5.10498V5.10602Z"
37
- fill="currentColor"
38
- />
39
- <path
40
- d="M14.5936 9.97882C14.6599 10.0617 14.7615 10.1104 14.8682 10.1104H16.0994C16.3927 10.1104 16.5564 9.77259 16.3751 9.54148L14.7594 7.48848C14.6506 7.35065 14.661 7.15271 14.7832 7.02627L16.0693 5.70078C16.2849 5.47797 16.1274 5.10489 15.8175 5.10489H14.7128C14.6216 5.10489 14.5335 5.14116 14.4682 5.20437L13.3759 6.2687C13.1531 6.4853 12.7789 6.32777 12.7789 6.01687V3.6084C12.7789 3.4146 12.6214 3.25708 12.4276 3.25708H11.3757C11.1819 3.25708 11.0244 3.4146 11.0244 3.6084V9.75808C11.0244 9.95188 11.1819 10.1094 11.3757 10.1094H12.4276C12.6214 10.1094 12.7789 9.95188 12.7789 9.75808V9.02538C12.7789 8.93315 12.8152 8.84506 12.8795 8.77873L13.0183 8.63779C13.1655 8.48752 13.4111 8.49996 13.5427 8.66473L14.5936 9.97778V9.97882Z"
41
- fill="currentColor"
42
- />
43
- <path
44
- d="M17.7994 4.61174C18.3471 4.61174 18.7912 4.1677 18.7912 3.61996C18.7912 3.07221 18.3471 2.62817 17.7994 2.62817C17.2517 2.62817 16.8076 3.07221 16.8076 3.61996C16.8076 4.1677 17.2517 4.61174 17.7994 4.61174Z"
45
- fill="currentColor"
46
- />
47
- <path
48
- d="M23.8463 4.61174C24.394 4.61174 24.8381 4.1677 24.8381 3.61996C24.8381 3.07221 24.394 2.62817 23.8463 2.62817C23.2985 2.62817 22.8545 3.07221 22.8545 3.61996C22.8545 4.1677 23.2985 4.61174 23.8463 4.61174Z"
49
- fill="currentColor"
50
- />
51
- <path
52
- d="M35.4669 4.61174C36.0146 4.61174 36.4587 4.1677 36.4587 3.61996C36.4587 3.07221 36.0146 2.62817 35.4669 2.62817C34.9191 2.62817 34.4751 3.07221 34.4751 3.61996C34.4751 4.1677 34.9191 4.61174 35.4669 4.61174Z"
53
- fill="currentColor"
54
- />
55
- <path
56
- d="M49.1602 4.61174C49.708 4.61174 50.152 4.1677 50.152 3.61996C50.152 3.07221 49.708 2.62817 49.1602 2.62817C48.6125 2.62817 48.1685 3.07221 48.1685 3.61996C48.1685 4.1677 48.6125 4.61174 49.1602 4.61174Z"
57
- fill="currentColor"
58
- />
59
- <path
60
- d="M3.85108 5.50601C3.07279 4.73497 1.86959 4.69455 1.09129 5.46456C0.312997 6.2356 0.349269 7.53725 1.12757 8.30829L6.22743 13.3854C7.01712 14.175 8.23172 14.2134 9.01002 13.4423C9.78831 12.6713 9.78106 11.437 8.98618 10.6421L3.85108 5.50601Z"
61
- fill="currentColor"
62
- />
63
- <path
64
- fill-rule="evenodd"
65
- clip-rule="evenodd"
66
- d="M3.21162 1.41864C2.91212 1.48186 2.77843 1.85805 2.98259 2.08397L3.74327 2.84465L1.0923 5.46454C0.349235 6.2076 0.205183 7.38488 1.12857 8.30827L5.26566 12.434V6.91646L6.54866 5.64693L7.28032 6.37963C7.48552 6.60452 7.85964 6.52679 7.95395 6.23765L9.80382 0.515982C9.89813 0.227878 9.64215 -0.054008 9.34265 0.00920909L3.21162 1.41864Z"
67
- fill="currentColor"
68
- />
69
- </svg>
70
- </template>
@@ -1,3 +0,0 @@
1
- declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
- declare const _default: typeof __VLS_export;
3
- export default _default;
@@ -1,17 +0,0 @@
1
- import type { variantConfig } from '../components/toast/index.js';
2
- export interface ToastOptions {
3
- render?: string;
4
- title?: string;
5
- type?: keyof typeof variantConfig;
6
- icon?: string;
7
- link?: string;
8
- linkTitle?: string;
9
- imageSrc?: string;
10
- autoClose?: number;
11
- removeAble?: boolean;
12
- }
13
- export interface Toast extends ToastOptions {
14
- id: string;
15
- }
16
- declare const _default: any;
17
- export default _default;
@@ -1,85 +0,0 @@
1
- import { defineNuxtPlugin, ref } from ".nuxt/imports";
2
- export default defineNuxtPlugin(() => {
3
- const DEFAULT_AUTO_CLOSE = 3500;
4
- const toasts = ref([]);
5
- const defaultIcon = {
6
- light: "material-symbols:info",
7
- primary: "material-symbols:info",
8
- info: "material-symbols:info",
9
- success: "material-symbols:check-circle",
10
- warning: "material-symbols:warning-rounded",
11
- error: "material-symbols:dangerous"
12
- };
13
- const fire = (options) => {
14
- const toast = {
15
- ...options,
16
- id: (Math.random() + 1).toString(36).substring(10),
17
- icon: options.icon || defaultIcon[options.type ?? "info"],
18
- autoClose: options.autoClose ?? DEFAULT_AUTO_CLOSE,
19
- removeAble: options.removeAble ?? true
20
- };
21
- toasts.value.push(toast);
22
- if (toast.autoClose && toast.removeAble) {
23
- setTimeout(() => {
24
- removeToast(toast.id);
25
- }, toast.autoClose);
26
- }
27
- return toast;
28
- };
29
- const update = (toast, options) => {
30
- const findIndex = toasts.value.findIndex((item) => item.id === toast.id);
31
- if (findIndex < 0) return;
32
- const newPayload = {
33
- ...toast,
34
- ...options,
35
- removeAble: options.removeAble || true,
36
- icon: options.icon || defaultIcon[options.type ?? "info"]
37
- };
38
- toasts.value[findIndex] = newPayload;
39
- if (newPayload.removeAble) {
40
- setTimeout(() => {
41
- removeToast(toast.id);
42
- }, newPayload.autoClose ?? DEFAULT_AUTO_CLOSE);
43
- }
44
- };
45
- const removeToast = (id) => {
46
- const findIndex = toasts.value.findIndex((item) => item.id === id);
47
- if (findIndex < 0) return;
48
- toasts.value.splice(findIndex, 1);
49
- };
50
- const callback = {
51
- fire,
52
- update,
53
- success: (render, options, title) => {
54
- return fire({ ...options, render, type: "success", title });
55
- },
56
- error: (render, options, title) => {
57
- return fire({ ...options, render, type: "error", title });
58
- },
59
- warning: (render, options, title) => {
60
- return fire({ ...options, render, type: "warning", title });
61
- },
62
- info: (render, options, title) => {
63
- return fire({ ...options, render, type: "info", title });
64
- },
65
- light: (render, options, title) => {
66
- return fire({ ...options, render, type: "light", title });
67
- },
68
- loading: (message, title) => {
69
- return fire({
70
- render: message,
71
- type: "info",
72
- title,
73
- icon: "svg-spinners:ring-resize",
74
- removeAble: false,
75
- autoClose: void 0
76
- });
77
- }
78
- };
79
- return {
80
- provide: {
81
- toasts,
82
- toast: callback
83
- }
84
- };
85
- });