prismify-ui 0.1.0-alpha.1

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 (169) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/CODE_OF_CONDUCT.md +79 -0
  3. package/LICENSE +21 -0
  4. package/README.md +38 -0
  5. package/dist/components/dashboard/PfDashboardGroup/index.vue.d.ts +42 -0
  6. package/dist/components/dashboard/PfDashboardNavbar/index.vue.d.ts +57 -0
  7. package/dist/components/dashboard/PfDashboardPanel/index.vue.d.ts +47 -0
  8. package/dist/components/dashboard/PfDashboardResizeHandle/index.vue.d.ts +28 -0
  9. package/dist/components/dashboard/PfDashboardSearch/index.vue.d.ts +99 -0
  10. package/dist/components/dashboard/PfDashboardSearchButton/index.vue.d.ts +71 -0
  11. package/dist/components/dashboard/PfDashboardSidebar/index.vue.d.ts +121 -0
  12. package/dist/components/dashboard/PfDashboardSidebarCollapse/index.vue.d.ts +65 -0
  13. package/dist/components/dashboard/PfDashboardSidebarToggle/index.vue.d.ts +65 -0
  14. package/dist/components/dashboard/PfDashboardToolbar/index.vue.d.ts +32 -0
  15. package/dist/components/dashboard/shared/injection.d.ts +30 -0
  16. package/dist/components/dashboard/shared/resize.d.ts +5 -0
  17. package/dist/components/dashboard/shared/storage.d.ts +10 -0
  18. package/dist/components/data/PfAccordion/index.vue.d.ts +167 -0
  19. package/dist/components/data/PfEmpty/index.vue.d.ts +83 -0
  20. package/dist/components/data/PfMarquee/index.vue.d.ts +97 -0
  21. package/dist/components/data/PfScrollArea/index.vue.d.ts +58 -0
  22. package/dist/components/data/PfTable/index.vue.d.ts +166 -0
  23. package/dist/components/data/PfTimeline/index.vue.d.ts +105 -0
  24. package/dist/components/data/PfTree/PfTreeBranch.vue.d.ts +78 -0
  25. package/dist/components/data/PfTree/PfTreeRow.vue.d.ts +107 -0
  26. package/dist/components/data/PfTree/index.vue.d.ts +222 -0
  27. package/dist/components/data/PfTree/treeContext.d.ts +19 -0
  28. package/dist/components/data/PfTree/treeItemDisplay.d.ts +5 -0
  29. package/dist/components/data/PfTree/treeTypes.d.ts +58 -0
  30. package/dist/components/data/PfUser/index.vue.d.ts +65 -0
  31. package/dist/components/editor/PfEditor/PfEditorImageUploadNode.vue.d.ts +3 -0
  32. package/dist/components/editor/PfEditor/imageUploadExtension.d.ts +10 -0
  33. package/dist/components/editor/PfEditor/index.vue.d.ts +47 -0
  34. package/dist/components/editor/PfEditorDragHandle/index.vue.d.ts +95 -0
  35. package/dist/components/editor/PfEditorEmojiMenu/index.vue.d.ts +43 -0
  36. package/dist/components/editor/PfEditorMentionMenu/index.vue.d.ts +53 -0
  37. package/dist/components/editor/PfEditorSuggestionMenu/index.vue.d.ts +49 -0
  38. package/dist/components/editor/PfEditorToolbar/index.vue.d.ts +67 -0
  39. package/dist/components/editor/utils/handlers.d.ts +7 -0
  40. package/dist/components/editor/utils/injection.d.ts +8 -0
  41. package/dist/components/editor/utils/mapEditorItems.d.ts +7 -0
  42. package/dist/components/editor/utils/types.d.ts +98 -0
  43. package/dist/components/editor/utils/useEditorMenu.d.ts +31 -0
  44. package/dist/components/element/PfAlert/index.vue.d.ts +98 -0
  45. package/dist/components/element/PfAvatar/index.vue.d.ts +43 -0
  46. package/dist/components/element/PfAvatarGroup/index.vue.d.ts +52 -0
  47. package/dist/components/element/PfAvatarGroup/injection.d.ts +6 -0
  48. package/dist/components/element/PfBadge/index.vue.d.ts +64 -0
  49. package/dist/components/element/PfBanner/index.vue.d.ts +67 -0
  50. package/dist/components/element/PfButton/index.vue.d.ts +108 -0
  51. package/dist/components/element/PfCard/index.vue.d.ts +34 -0
  52. package/dist/components/element/PfChip/index.vue.d.ts +49 -0
  53. package/dist/components/element/PfCollapsible/index.vue.d.ts +82 -0
  54. package/dist/components/element/PfContentSearchButton/index.vue.d.ts +75 -0
  55. package/dist/components/element/PfFieldGroup/index.vue.d.ts +48 -0
  56. package/dist/components/element/PfFieldGroup/injection.d.ts +6 -0
  57. package/dist/components/element/PfIcon/iconSizes.d.ts +3 -0
  58. package/dist/components/element/PfIcon/index.vue.d.ts +10 -0
  59. package/dist/components/element/PfIcon/paths.d.ts +14 -0
  60. package/dist/components/element/PfKbd/index.vue.d.ts +36 -0
  61. package/dist/components/element/PfProgress/index.vue.d.ts +69 -0
  62. package/dist/components/element/PfSeparator/index.vue.d.ts +58 -0
  63. package/dist/components/element/PfSkeleton/index.vue.d.ts +31 -0
  64. package/dist/components/form/PfCalendar/calendarGrid.d.ts +12 -0
  65. package/dist/components/form/PfCalendar/calendarSelection.d.ts +30 -0
  66. package/dist/components/form/PfCalendar/index.vue.d.ts +137 -0
  67. package/dist/components/form/PfCheckbox/index.vue.d.ts +84 -0
  68. package/dist/components/form/PfCheckboxGroup/index.vue.d.ts +82 -0
  69. package/dist/components/form/PfColorPicker/colorPicker.d.ts +46 -0
  70. package/dist/components/form/PfColorPicker/index.vue.d.ts +54 -0
  71. package/dist/components/form/PfFileUpload/index.vue.d.ts +258 -0
  72. package/dist/components/form/PfForm/index.vue.d.ts +75 -0
  73. package/dist/components/form/PfForm/injection.d.ts +32 -0
  74. package/dist/components/form/PfForm/validation.d.ts +9 -0
  75. package/dist/components/form/PfFormField/index.vue.d.ts +59 -0
  76. package/dist/components/form/PfInput/index.vue.d.ts +97 -0
  77. package/dist/components/form/PfInputDate/index.vue.d.ts +109 -0
  78. package/dist/components/form/PfInputDate/inputDateSegments.d.ts +36 -0
  79. package/dist/components/form/PfInputMenu/index.vue.d.ts +1410 -0
  80. package/dist/components/form/PfInputNumber/index.vue.d.ts +498 -0
  81. package/dist/components/form/PfInputTags/index.vue.d.ts +482 -0
  82. package/dist/components/form/PfInputTime/index.vue.d.ts +108 -0
  83. package/dist/components/form/PfInputTime/inputTimeSegments.d.ts +36 -0
  84. package/dist/components/form/PfPinInput/index.vue.d.ts +56 -0
  85. package/dist/components/form/PfRadio/index.vue.d.ts +76 -0
  86. package/dist/components/form/PfRadioGroup/index.vue.d.ts +74 -0
  87. package/dist/components/form/PfSelect/index.vue.d.ts +209 -0
  88. package/dist/components/form/PfSelectMenu/index.vue.d.ts +1034 -0
  89. package/dist/components/form/PfSlider/index.vue.d.ts +54 -0
  90. package/dist/components/form/PfSwitch/index.vue.d.ts +83 -0
  91. package/dist/components/form/PfTextarea/index.vue.d.ts +111 -0
  92. package/dist/components/form/groupItems.d.ts +36 -0
  93. package/dist/components/layout/PfApp/index.vue.d.ts +45 -0
  94. package/dist/components/layout/PfApp/injection.d.ts +43 -0
  95. package/dist/components/layout/PfContainer/index.vue.d.ts +27 -0
  96. package/dist/components/layout/PfError/index.vue.d.ts +113 -0
  97. package/dist/components/layout/PfFooter/index.vue.d.ts +38 -0
  98. package/dist/components/layout/PfHeader/index.vue.d.ts +132 -0
  99. package/dist/components/layout/PfMain/index.vue.d.ts +27 -0
  100. package/dist/components/navigation/PfBreadcrumb/index.vue.d.ts +156 -0
  101. package/dist/components/navigation/PfContentNavigation/index.vue.d.ts +196 -0
  102. package/dist/components/navigation/PfContentSurround/index.vue.d.ts +86 -0
  103. package/dist/components/navigation/PfContentToc/index.vue.d.ts +165 -0
  104. package/dist/components/navigation/PfFooterColumns/index.vue.d.ts +145 -0
  105. package/dist/components/navigation/PfLink/index.vue.d.ts +80 -0
  106. package/dist/components/navigation/PfNavigationMenu/index.vue.d.ts +187 -0
  107. package/dist/components/navigation/PfPagination/index.vue.d.ts +103 -0
  108. package/dist/components/navigation/PfStepper/index.vue.d.ts +107 -0
  109. package/dist/components/navigation/PfTabs/index.vue.d.ts +131 -0
  110. package/dist/components/overlay/PfContentSearch/index.vue.d.ts +181 -0
  111. package/dist/components/overlay/PfContextMenu/PfContextMenuItems.vue.d.ts +10 -0
  112. package/dist/components/overlay/PfContextMenu/index.vue.d.ts +57 -0
  113. package/dist/components/overlay/PfContextMenu/types.d.ts +40 -0
  114. package/dist/components/overlay/PfDrawer/index.vue.d.ts +106 -0
  115. package/dist/components/overlay/PfDropdownMenu/PfDropdownMenuItems.vue.d.ts +10 -0
  116. package/dist/components/overlay/PfDropdownMenu/index.vue.d.ts +74 -0
  117. package/dist/components/overlay/PfDropdownMenu/types.d.ts +58 -0
  118. package/dist/components/overlay/PfModal/index.vue.d.ts +138 -0
  119. package/dist/components/overlay/PfToast/index.vue.d.ts +128 -0
  120. package/dist/components/overlay/PfToaster/index.vue.d.ts +11 -0
  121. package/dist/components/overlay/PfTooltip/index.vue.d.ts +85 -0
  122. package/dist/composables/pfScrollAreaVirtual.d.ts +21 -0
  123. package/dist/composables/usePfApp.d.ts +7 -0
  124. package/dist/composables/usePfContentSearch.d.ts +11 -0
  125. package/dist/composables/usePfKbd.d.ts +14 -0
  126. package/dist/composables/usePfToast.d.ts +137 -0
  127. package/dist/composables/usePfVModelBound.d.ts +5 -0
  128. package/dist/index.d.ts +184 -0
  129. package/dist/prismify-ui.cjs +3 -0
  130. package/dist/prismify-ui.cjs.map +1 -0
  131. package/dist/prismify-ui.js +26967 -0
  132. package/dist/prismify-ui.js.map +1 -0
  133. package/dist/style.css +1 -0
  134. package/dist/utils/editor.d.ts +2 -0
  135. package/dist/utils/pfLinkQuery.d.ts +8 -0
  136. package/docs/README.md +17 -0
  137. package/docs/installation.md +120 -0
  138. package/docs/library-development.md +57 -0
  139. package/docs/theming.md +334 -0
  140. package/llms.txt +220 -0
  141. package/package.json +146 -0
  142. package/src/styles/_variables.scss +25 -0
  143. package/src/styles/index.scss +1 -0
  144. package/src/styles/mixins/_input-tag-pill.scss +72 -0
  145. package/src/styles/variables/_accordion.scss +15 -0
  146. package/src/styles/variables/_animation.scss +25 -0
  147. package/src/styles/variables/_breadcrumb.scss +11 -0
  148. package/src/styles/variables/_colors.scss +37 -0
  149. package/src/styles/variables/_contextMenu.scss +31 -0
  150. package/src/styles/variables/_dashboard.scss +8 -0
  151. package/src/styles/variables/_drawer.scss +34 -0
  152. package/src/styles/variables/_editor.scss +34 -0
  153. package/src/styles/variables/_effects.scss +6 -0
  154. package/src/styles/variables/_empty.scss +12 -0
  155. package/src/styles/variables/_fileUpload.scss +21 -0
  156. package/src/styles/variables/_footerColumns.scss +17 -0
  157. package/src/styles/variables/_layout.scss +294 -0
  158. package/src/styles/variables/_link.scss +8 -0
  159. package/src/styles/variables/_marquee.scss +6 -0
  160. package/src/styles/variables/_modal.scss +26 -0
  161. package/src/styles/variables/_navigationMenu.scss +46 -0
  162. package/src/styles/variables/_stepper.scss +15 -0
  163. package/src/styles/variables/_table.scss +29 -0
  164. package/src/styles/variables/_tabs.scss +18 -0
  165. package/src/styles/variables/_timeline.scss +11 -0
  166. package/src/styles/variables/_toast.scss +14 -0
  167. package/src/styles/variables/_tooltip.scss +16 -0
  168. package/src/styles/variables/_tree.scss +29 -0
  169. package/src/styles/variables/_typography.scss +19 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,21 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project are documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
+
7
+ ## [Unreleased]
8
+
9
+ ## [0.1.0-alpha.1] - 2026-04-09
10
+
11
+ ### Added
12
+
13
+ - Initial **alpha** publish of **prismify-ui**: Vue 3 component library for admin UIs, SCSS in SFCs, theming via **`--pf-*`** CSS variables (no Tailwind in the library), compatible with **Nuxt 4** and plain Vue 3.
14
+ - **`Pf*`** components across element, form, layout, data, navigation, overlay, dashboard, and editor categories; see **`src/index.ts`** and Storybook for the full list.
15
+ - Global styles and tokens: **`prismify-ui/style.css`** and optional **`prismify-ui/styles`** SCSS entry.
16
+ - **`prismifyPlugin`** for global registration; tree-shakeable named exports.
17
+ - Documentation in **`docs/`** (installation, theming, library development).
18
+ - **`llms.txt`** for AI-assisted development (also copied to **`dist/`** on build).
19
+ - Peer-based optional stacks: **`vue-router`**, **`@internationalized/date`**, **`@internationalized/number`**, **`@tanstack/vue-table`**, **`@tiptap/*`** for **`PfLink`**, **`PfCalendar`**, **`PfInputNumber`**, **`PfTable`**, **`PfEditor`**, etc.
20
+
21
+ After you publish git tags, you can add comparison links at the bottom of this file (see [Keep a Changelog](https://keepachangelog.com/en/1.1.0/)).
@@ -0,0 +1,79 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ - Demonstrating empathy and kindness toward other people
14
+ - Being respectful of differing opinions, viewpoints, and experiences
15
+ - Giving and gracefully accepting constructive feedback
16
+ - Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ - Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ - The use of sexualized language or imagery, and sexual attention or advances of any kind
22
+ - Trolling, insulting or derogatory comments, and personal or political attacks
23
+ - Public or private harassment
24
+ - Publishing others' private information, such as a physical or email address, without their explicit permission
25
+ - Other conduct which could reasonably be considered inappropriate in a professional setting
26
+
27
+ ## Enforcement Responsibilities
28
+
29
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
30
+
31
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
32
+
33
+ ## Scope
34
+
35
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
36
+
37
+ ## Enforcement
38
+
39
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement via [GitHub Issues](https://github.com/koirodev/prismify-ui/issues). Sensitive reports: contact maintainers privately if they list a channel in the repo or profile.
40
+
41
+ All complaints will be reviewed and investigated promptly and fairly.
42
+
43
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
44
+
45
+ ## Enforcement Guidelines
46
+
47
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
48
+
49
+ ### 1. Correction
50
+
51
+ Community Impact: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
52
+
53
+ Consequence: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
54
+
55
+ ### 2. Warning
56
+
57
+ Community Impact: A violation through a single incident or series of actions.
58
+
59
+ Consequence: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
60
+
61
+ ### 3. Temporary Ban
62
+
63
+ Community Impact: A serious violation of community standards, including sustained inappropriate behavior.
64
+
65
+ Consequence: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
66
+
67
+ ### 4. Permanent Ban
68
+
69
+ Community Impact: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
70
+
71
+ Consequence: A permanent ban from any sort of public interaction within the community.
72
+
73
+ ## Attribution
74
+
75
+ This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org/), version 2.1, available at [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html](https://www.contributor-covenant.org/version/2/1/code_of_conduct.html).
76
+
77
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
78
+
79
+ For answers to common questions about this code of conduct, see the FAQ at [https://www.contributor-covenant.org/faq](https://www.contributor-covenant.org/faq). Translations are available at [https://www.contributor-covenant.org/translations](https://www.contributor-covenant.org/translations).
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 prismify-ui contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,38 @@
1
+ # prismify-ui v0.1.0-alpha.1
2
+
3
+ [![Tests](https://github.com/koirodev/prismify-ui/actions/workflows/test.yml/badge.svg)](https://github.com/koirodev/prismify-ui/actions/workflows/test.yml) [![Build](https://github.com/koirodev/prismify-ui/actions/workflows/build.yml/badge.svg)](https://github.com/koirodev/prismify-ui/actions/workflows/build.yml)
4
+
5
+ Vue 3 components aimed at **admin UIs**. Built primarily for personal use, published on npm under **MIT**.
6
+
7
+ **Source:** [github.com/koirodev/prismify-ui](https://github.com/koirodev/prismify-ui)
8
+
9
+ Styles live in components as **SCSS**; theming uses **`--pf-*`** CSS variables. **No Tailwind**. Works with **Nuxt 4** and plain **Vue 3**.
10
+
11
+ ## What’s included
12
+
13
+ `Pf*` prefix: forms, data table, modals, menus, navigation, layout (`PfApp`, etc.), dashboard, rich-text editor. Token reference: **`docs/theming.md`**. Build: Vite → **`dist/`** (JS, types, **`style.css`**). Storybook and Vitest live in this repo.
14
+
15
+ **Docs:** [`docs/`](./docs/README.md) — [installation](./docs/installation.md) (peers, Vue/Vite, Nuxt, composables), [theming](./docs/theming.md), [library development](./docs/library-development.md). **Changelog:** [CHANGELOG.md](./CHANGELOG.md).
16
+
17
+ ## Dependencies
18
+
19
+ There are **no runtime `dependencies`** — nothing is pulled in transitively. Everything required at runtime is **`peerDependencies`**; install what you need in your app.
20
+
21
+ | Package | Used for |
22
+ | --- | --- |
23
+ | `vue` | All components |
24
+ | `vue-router` | `PfLink` |
25
+ | `@internationalized/date` | `PfCalendar` |
26
+ | `@internationalized/number` | `PfInputNumber` |
27
+ | `@tanstack/vue-table` | `PfTable` |
28
+ | `@tiptap/*` | `PfEditor` and related (full list in **`package.json` → `peerDependencies`**) |
29
+
30
+ Vite, TypeScript, ESLint, Storybook, and the rest are **devDependencies** for building the library only.
31
+
32
+ ## License
33
+
34
+ [MIT](LICENSE)
35
+
36
+ ## Code of conduct
37
+
38
+ [Contributor Covenant 2.1](CODE_OF_CONDUCT.md)
@@ -0,0 +1,42 @@
1
+ import { Component } from 'vue';
2
+ import { PfDashboardStorage } from '../shared/storage';
3
+ import { PfDashboardUnit } from '../shared/resize';
4
+ export interface PfDashboardGroupUi {
5
+ base?: string;
6
+ }
7
+ type __VLS_Props = {
8
+ as?: string | Component;
9
+ ui?: PfDashboardGroupUi;
10
+ storage?: PfDashboardStorage;
11
+ storageKey?: string;
12
+ persistent?: boolean;
13
+ unit?: PfDashboardUnit;
14
+ };
15
+ declare function __VLS_template(): {
16
+ attrs: Partial<{}>;
17
+ slots: {
18
+ default?(_: {}): any;
19
+ };
20
+ refs: {
21
+ groupRef: unknown;
22
+ };
23
+ rootEl: any;
24
+ };
25
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
26
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
27
+ as: string | Component;
28
+ ui: PfDashboardGroupUi;
29
+ storage: PfDashboardStorage;
30
+ unit: PfDashboardUnit;
31
+ storageKey: string;
32
+ persistent: boolean;
33
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
34
+ groupRef: unknown;
35
+ }, any>;
36
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
37
+ export default _default;
38
+ type __VLS_WithTemplateSlots<T, S> = T & {
39
+ new (): {
40
+ $slots: S;
41
+ };
42
+ };
@@ -0,0 +1,57 @@
1
+ import { Component } from 'vue';
2
+ import { PfIconName } from '../../element/PfIcon/paths';
3
+ export interface PfDashboardNavbarUi {
4
+ root?: string;
5
+ left?: string;
6
+ icon?: string;
7
+ title?: string;
8
+ center?: string;
9
+ right?: string;
10
+ toggle?: string;
11
+ }
12
+ type __VLS_Props = {
13
+ as?: string | Component;
14
+ icon?: PfIconName;
15
+ title?: string;
16
+ toggle?: boolean | Partial<{
17
+ color: 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'error' | 'neutral';
18
+ variant: 'solid' | 'outline' | 'soft' | 'subtle' | 'ghost' | 'link';
19
+ class: string;
20
+ }>;
21
+ toggleSide?: 'left' | 'right';
22
+ ui?: PfDashboardNavbarUi;
23
+ };
24
+ declare function __VLS_template(): {
25
+ attrs: Partial<{}>;
26
+ slots: {
27
+ toggle?(_: {}): any;
28
+ toggle?(_: {}): any;
29
+ leading?(_: {}): any;
30
+ title?(_: {}): any;
31
+ trailing?(_: {}): any;
32
+ default?(_: {}): any;
33
+ right?(_: {}): any;
34
+ };
35
+ refs: {};
36
+ rootEl: any;
37
+ };
38
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
39
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
40
+ title: string;
41
+ as: string | Component;
42
+ icon: PfIconName;
43
+ ui: PfDashboardNavbarUi;
44
+ toggle: boolean | Partial<{
45
+ color: "primary" | "secondary" | "success" | "info" | "warning" | "error" | "neutral";
46
+ variant: "solid" | "outline" | "soft" | "subtle" | "ghost" | "link";
47
+ class: string;
48
+ }>;
49
+ toggleSide: "left" | "right";
50
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
51
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
52
+ export default _default;
53
+ type __VLS_WithTemplateSlots<T, S> = T & {
54
+ new (): {
55
+ $slots: S;
56
+ };
57
+ };
@@ -0,0 +1,47 @@
1
+ export interface PfDashboardPanelUi {
2
+ root?: string;
3
+ body?: string;
4
+ handle?: string;
5
+ }
6
+ type __VLS_Props = {
7
+ ui?: PfDashboardPanelUi;
8
+ id?: string;
9
+ minSize?: number;
10
+ maxSize?: number;
11
+ defaultSize?: number;
12
+ resizable?: boolean;
13
+ };
14
+ declare function onHandleMouseDown(event: MouseEvent): void;
15
+ declare function onHandleTouchStart(event: TouchEvent): void;
16
+ declare function __VLS_template(): {
17
+ attrs: Partial<{}>;
18
+ slots: {
19
+ default?(_: {}): any;
20
+ header?(_: {}): any;
21
+ body?(_: {}): any;
22
+ footer?(_: {}): any;
23
+ 'resize-handle'?(_: {
24
+ onMouseDown: typeof onHandleMouseDown;
25
+ onTouchStart: typeof onHandleTouchStart;
26
+ onDoubleClick: () => undefined;
27
+ }): any;
28
+ };
29
+ refs: {};
30
+ rootEl: any;
31
+ };
32
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
33
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
34
+ ui: PfDashboardPanelUi;
35
+ id: string;
36
+ maxSize: number;
37
+ minSize: number;
38
+ defaultSize: number;
39
+ resizable: boolean;
40
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
41
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
42
+ export default _default;
43
+ type __VLS_WithTemplateSlots<T, S> = T & {
44
+ new (): {
45
+ $slots: S;
46
+ };
47
+ };
@@ -0,0 +1,28 @@
1
+ import { Component } from 'vue';
2
+ export interface PfDashboardResizeHandleUi {
3
+ base?: string;
4
+ }
5
+ type __VLS_Props = {
6
+ as?: string | Component;
7
+ ui?: PfDashboardResizeHandleUi;
8
+ };
9
+ declare function __VLS_template(): {
10
+ attrs: Partial<{}>;
11
+ slots: {
12
+ default?(_: {}): 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_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
19
+ as: string | Component;
20
+ ui: PfDashboardResizeHandleUi;
21
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
22
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
23
+ export default _default;
24
+ type __VLS_WithTemplateSlots<T, S> = T & {
25
+ new (): {
26
+ $slots: S;
27
+ };
28
+ };
@@ -0,0 +1,99 @@
1
+ import { PfIconName } from '../../element/PfIcon/paths';
2
+ export interface PfDashboardSearchItem {
3
+ id?: string;
4
+ label: string;
5
+ icon?: PfIconName;
6
+ description?: string;
7
+ kbds?: string[];
8
+ onSelect?: (() => void | Promise<void>) | undefined;
9
+ [key: string]: unknown;
10
+ }
11
+ export interface PfDashboardSearchGroup {
12
+ id?: string;
13
+ label?: string;
14
+ items: PfDashboardSearchItem[];
15
+ }
16
+ export interface PfDashboardSearchUi {
17
+ modal?: string;
18
+ input?: string;
19
+ }
20
+ type __VLS_Props = {
21
+ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
22
+ icon?: PfIconName;
23
+ placeholder?: string;
24
+ autofocus?: boolean;
25
+ loading?: boolean;
26
+ loadingIcon?: PfIconName;
27
+ close?: boolean | Record<string, unknown>;
28
+ closeIcon?: PfIconName;
29
+ shortcut?: string;
30
+ groups?: PfDashboardSearchGroup[];
31
+ fuse?: Record<string, unknown>;
32
+ colorMode?: boolean;
33
+ ui?: PfDashboardSearchUi;
34
+ title?: string;
35
+ transition?: boolean;
36
+ description?: string;
37
+ overlay?: boolean;
38
+ content?: Record<string, unknown>;
39
+ dismissible?: boolean;
40
+ fullscreen?: boolean;
41
+ modal?: boolean;
42
+ portal?: string | boolean | HTMLElement;
43
+ open?: boolean;
44
+ searchTerm?: string;
45
+ };
46
+ declare function __VLS_template(): {
47
+ attrs: Partial<{}>;
48
+ slots: {
49
+ empty?(_: {}): any;
50
+ };
51
+ refs: {
52
+ commandPaletteRef: HTMLDivElement;
53
+ };
54
+ rootEl: any;
55
+ };
56
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
57
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
58
+ commandPaletteRef: import('vue').Ref<HTMLDivElement | null, HTMLDivElement | null>;
59
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
60
+ "update:open": (value: boolean) => any;
61
+ "update:searchTerm": (value: string) => any;
62
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
63
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
64
+ "onUpdate:searchTerm"?: ((value: string) => any) | undefined;
65
+ }>, {
66
+ size: "xs" | "sm" | "md" | "lg" | "xl";
67
+ title: string;
68
+ icon: PfIconName;
69
+ loading: boolean;
70
+ loadingIcon: PfIconName;
71
+ description: string;
72
+ close: boolean | Record<string, unknown>;
73
+ closeIcon: PfIconName;
74
+ ui: PfDashboardSearchUi;
75
+ open: boolean;
76
+ transition: boolean;
77
+ placeholder: string;
78
+ content: Record<string, unknown>;
79
+ autofocus: boolean;
80
+ searchTerm: string;
81
+ portal: string | boolean | HTMLElement;
82
+ modal: boolean;
83
+ overlay: boolean;
84
+ groups: PfDashboardSearchGroup[];
85
+ fullscreen: boolean;
86
+ dismissible: boolean;
87
+ shortcut: string;
88
+ fuse: Record<string, unknown>;
89
+ colorMode: boolean;
90
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
91
+ commandPaletteRef: HTMLDivElement;
92
+ }, any>;
93
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
94
+ export default _default;
95
+ type __VLS_WithTemplateSlots<T, S> = T & {
96
+ new (): {
97
+ $slots: S;
98
+ };
99
+ };
@@ -0,0 +1,71 @@
1
+ import { PfButtonAvatarProps } from '../../element/PfButton/index.vue';
2
+ import { PfIconName } from '../../element/PfIcon/paths';
3
+ export interface PfDashboardSearchButtonUi {
4
+ base?: string;
5
+ label?: string;
6
+ trailing?: string;
7
+ }
8
+ type __VLS_Props = {
9
+ icon?: PfIconName;
10
+ label?: string;
11
+ color?: 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'error' | 'neutral';
12
+ variant?: 'solid' | 'outline' | 'soft' | 'subtle' | 'ghost' | 'link';
13
+ collapsed?: boolean;
14
+ tooltip?: boolean | Record<string, unknown>;
15
+ kbds?: string[];
16
+ ui?: PfDashboardSearchButtonUi;
17
+ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
18
+ square?: boolean;
19
+ block?: boolean;
20
+ loadingAuto?: boolean;
21
+ avatar?: PfButtonAvatarProps;
22
+ leading?: boolean;
23
+ leadingIcon?: PfIconName;
24
+ trailing?: boolean;
25
+ trailingIcon?: PfIconName;
26
+ loading?: boolean;
27
+ loadingIcon?: PfIconName;
28
+ disabled?: boolean;
29
+ type?: 'button' | 'submit' | 'reset';
30
+ };
31
+ declare function __VLS_template(): {
32
+ attrs: Partial<{}>;
33
+ slots: {
34
+ leading?(_: {}): any;
35
+ default?(_: {}): any;
36
+ trailing?(_: {}): any;
37
+ };
38
+ refs: {};
39
+ rootEl: any;
40
+ };
41
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
42
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
43
+ label: string;
44
+ square: boolean;
45
+ size: "xs" | "sm" | "md" | "lg" | "xl";
46
+ type: "button" | "submit" | "reset";
47
+ icon: PfIconName;
48
+ loading: boolean;
49
+ color: "primary" | "secondary" | "success" | "info" | "warning" | "error" | "neutral";
50
+ variant: "solid" | "outline" | "soft" | "subtle" | "ghost" | "link";
51
+ block: boolean;
52
+ leading: boolean;
53
+ leadingIcon: PfIconName;
54
+ trailing: boolean;
55
+ trailingIcon: PfIconName;
56
+ avatar: PfButtonAvatarProps;
57
+ disabled: boolean;
58
+ loadingIcon: PfIconName;
59
+ loadingAuto: boolean;
60
+ ui: PfDashboardSearchButtonUi;
61
+ collapsed: boolean;
62
+ tooltip: boolean | Record<string, unknown>;
63
+ kbds: string[];
64
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
65
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
66
+ export default _default;
67
+ type __VLS_WithTemplateSlots<T, S> = T & {
68
+ new (): {
69
+ $slots: S;
70
+ };
71
+ };
@@ -0,0 +1,121 @@
1
+ export type PfDashboardSidebarMode = 'drawer' | 'slideover' | 'modal';
2
+ export interface PfDashboardSidebarUi {
3
+ root?: string;
4
+ header?: string;
5
+ body?: string;
6
+ footer?: string;
7
+ toggle?: string;
8
+ handle?: string;
9
+ content?: string;
10
+ overlay?: string;
11
+ }
12
+ type __VLS_Props = {
13
+ mode?: PfDashboardSidebarMode;
14
+ menu?: Record<string, unknown>;
15
+ toggle?: boolean | Partial<{
16
+ color: 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'error' | 'neutral';
17
+ variant: 'solid' | 'outline' | 'soft' | 'subtle' | 'ghost' | 'link';
18
+ class: string;
19
+ }>;
20
+ toggleSide?: 'left' | 'right';
21
+ autoClose?: boolean;
22
+ ui?: PfDashboardSidebarUi;
23
+ id?: string;
24
+ side?: 'left' | 'right';
25
+ minSize?: number;
26
+ maxSize?: number;
27
+ defaultSize?: number;
28
+ resizable?: boolean;
29
+ collapsible?: boolean;
30
+ collapsedSize?: number;
31
+ open?: boolean;
32
+ collapsed?: boolean;
33
+ };
34
+ declare function onHandleMouseDown(event: MouseEvent): void;
35
+ declare function onHandleTouchStart(event: TouchEvent): void;
36
+ declare function onHandleDoubleClick(): void;
37
+ declare function __VLS_template(): {
38
+ attrs: Partial<{}>;
39
+ slots: {
40
+ content?(_: {
41
+ collapsed: boolean;
42
+ }): any;
43
+ content?(_: {
44
+ collapsed: boolean;
45
+ }): any;
46
+ content?(_: {
47
+ collapsed: boolean;
48
+ }): any;
49
+ header?(_: {
50
+ collapsed: boolean;
51
+ }): any;
52
+ header?(_: {
53
+ collapsed: boolean;
54
+ }): any;
55
+ header?(_: {
56
+ collapsed: boolean;
57
+ }): any;
58
+ default?(_: {
59
+ collapsed: boolean;
60
+ }): any;
61
+ default?(_: {
62
+ collapsed: boolean;
63
+ }): any;
64
+ default?(_: {
65
+ collapsed: boolean;
66
+ }): any;
67
+ footer?(_: {
68
+ collapsed: boolean;
69
+ }): any;
70
+ footer?(_: {
71
+ collapsed: boolean;
72
+ }): any;
73
+ footer?(_: {
74
+ collapsed: boolean;
75
+ }): any;
76
+ 'resize-handle'?(_: {
77
+ onMouseDown: typeof onHandleMouseDown;
78
+ onTouchStart: typeof onHandleTouchStart;
79
+ onDoubleClick: typeof onHandleDoubleClick;
80
+ }): any;
81
+ toggle?(_: {}): any;
82
+ };
83
+ refs: {};
84
+ rootEl: any;
85
+ };
86
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
87
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
88
+ "update:open": (value: boolean) => any;
89
+ "update:collapsed": (value: boolean) => any;
90
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
91
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
92
+ "onUpdate:collapsed"?: ((value: boolean) => any) | undefined;
93
+ }>, {
94
+ menu: Record<string, unknown>;
95
+ ui: PfDashboardSidebarUi;
96
+ open: boolean;
97
+ mode: PfDashboardSidebarMode;
98
+ toggle: boolean | Partial<{
99
+ color: "primary" | "secondary" | "success" | "info" | "warning" | "error" | "neutral";
100
+ variant: "solid" | "outline" | "soft" | "subtle" | "ghost" | "link";
101
+ class: string;
102
+ }>;
103
+ id: string;
104
+ collapsed: boolean;
105
+ maxSize: number;
106
+ toggleSide: "left" | "right";
107
+ autoClose: boolean;
108
+ collapsible: boolean;
109
+ minSize: number;
110
+ side: "left" | "right";
111
+ defaultSize: number;
112
+ resizable: boolean;
113
+ collapsedSize: number;
114
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
115
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
116
+ export default _default;
117
+ type __VLS_WithTemplateSlots<T, S> = T & {
118
+ new (): {
119
+ $slots: S;
120
+ };
121
+ };