@wastedondestiny/destiny-library 1.5.4 → 1.6.0

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.
package/README.md CHANGED
@@ -1,18 +1,64 @@
1
- # Vue 3 + TypeScript + Vite
1
+ # @wastedondestiny/destiny-library
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 Vue 3 component library and utilities for Destiny-related projects.
4
4
 
5
- ## Recommended IDE Setup
5
+ ## Installation
6
6
 
7
- - [VS Code](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).
7
+ ```bash
8
+ npm install @wastedondestiny/destiny-library
9
+ ```
8
10
 
9
- ## Type Support For `.vue` Imports in TS
11
+ ## Components
10
12
 
11
- TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types.
13
+ ### UI Components
14
+ - **Collapsible** - Expandable/collapsible content container
15
+ - **DialogWindow** - Modal dialog component
16
+ - **Dropdown** - Dropdown menu component
17
+ - **ErrorToast** - Toast notification for error messages
18
+ - **FallbackImage** - Image component with fallback support
19
+ - **MarkdownContent** - Render markdown content with syntax highlighting
20
+ - **PlatformIcon** - Display platform-specific icons
21
+ - **Popup** - Popup/overlay component
22
+ - **ProjectMenu** - Project navigation menu
23
+ - **TheFooter** - Footer component
24
+ - **TheTooltip** - Tooltip component with vue-tippy integration
12
25
 
13
- If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a [Take Over Mode](https://github.com/johnsoncodehk/volar/discussions/471#discussioncomment-1361669) that is more performant. You can enable it by the following steps:
26
+ ## Composables
14
27
 
15
- 1. Disable the built-in TypeScript Extension
16
- 1. Run `Extensions: Show Built-in Extensions` from VSCode's command palette
17
- 2. Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)`
18
- 2. Reload the VSCode window by running `Developer: Reload Window` from the command palette.
28
+ ### Utilities
29
+ - **clickOutside** - Detect clicks outside an element
30
+ - **konami** - Konami code detection
31
+ - **mediaQuery** - Responsive media query helper
32
+ - **google** - Google integration utilities
33
+ - **playwire** - Playwire ad integration
34
+
35
+ ## Usage
36
+
37
+ ```javascript
38
+ import { Collapsible, DialogWindow, ErrorToast } from '@wastedondestiny/destiny-library'
39
+ import { useClickOutside, useKonami, useMediaQuery } from '@wastedondestiny/destiny-library'
40
+ ```
41
+
42
+ ## Development
43
+
44
+ ```bash
45
+ # Install dependencies
46
+ npm install
47
+
48
+ # Start dev server
49
+ npm run dev
50
+
51
+ # Build library
52
+ npm run build
53
+
54
+ # Run tests
55
+ npm test
56
+ ```
57
+
58
+ ## Peer Dependencies
59
+
60
+ - Vue ^3.2.47
61
+
62
+ ## License
63
+
64
+ MIT
@@ -0,0 +1,10 @@
1
+ import { type Dialog } from '../types';
2
+ type __VLS_Props = {
3
+ dialog: Dialog;
4
+ };
5
+ declare const _default: import("vue").DefineComponent<__VLS_Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
+ close: (...args: any[]) => void;
7
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
8
+ onClose?: ((...args: any[]) => any) | undefined;
9
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
+ export default _default;
@@ -0,0 +1,9 @@
1
+ type __VLS_Props = {
2
+ src: string;
3
+ fallbackSrc: string;
4
+ alt?: string;
5
+ };
6
+ declare const _default: import("vue").DefineComponent<__VLS_Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
7
+ alt: string;
8
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
+ export default _default;
@@ -0,0 +1,5 @@
1
+ interface Props {
2
+ url: string;
3
+ }
4
+ declare const _default: import("vue").DefineComponent<Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
5
+ export default _default;