@phila/phila-ui-nav-link 0.0.4 → 0.0.5-beta.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,81 @@
1
- # Vue 3 + TypeScript + Vite
1
+ # NavLink Component
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
+ <!-- status-badge-start -->
4
4
 
5
- ## Recommended IDE Setup
5
+ ![Status: Stable](https://img.shields.io/badge/-Stable-brightgreen)
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
+ <!-- status-badge-end -->
8
8
 
9
- ## Type Support For `.vue` Imports in TS
9
+ A simple, customizable Vue 3. NavLink component built with TypeScript and Vite.
10
+ navigation links
10
11
 
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.
12
+ ## Features
12
13
 
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:
14
+ - 🎯 TypeScript support with full type definitions
14
15
 
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.
16
+ ## Installation
17
+
18
+ ```bash
19
+ npm install @phila/phila-ui-nav-link
20
+ # or
21
+ yarn add @phila/phila-ui-nav-link
22
+ # or
23
+ pnpm add @phila/phila-ui-nav-link
24
+ ```
25
+
26
+ ## Usage
27
+
28
+ ```vue
29
+ <script setup lang="ts">
30
+ import { NavLink } from "@phila/phila-ui-nav-link";
31
+ </script>
32
+ <template>...Add basic component template here...</template>
33
+ ```
34
+
35
+ ## Props
36
+
37
+ | Prop | Type | Default | Description |
38
+ | ---- | ---- | ------- | ----------- |
39
+
40
+ | ...Add props here...
41
+
42
+ ## Events
43
+
44
+ | Event | Payload | Description |
45
+ | ----- | ------- | ----------- |
46
+
47
+ | ...Add events here...
48
+
49
+ ## Examples
50
+
51
+ ...Add examples here...
52
+
53
+ ## Development
54
+
55
+ ### Install Dependencies
56
+
57
+ ```bash
58
+ pnpm install
59
+ ```
60
+
61
+ ### Run Demo
62
+
63
+ ```bash
64
+ pnpm dev
65
+ ```
66
+
67
+ ### Build Library
68
+
69
+ ```bash
70
+ pnpm build
71
+ ```
72
+
73
+ ### Type Check
74
+
75
+ ```bash
76
+ pnpm type-check
77
+ ```
78
+
79
+ ## License
80
+
81
+ MIT
@@ -1,12 +1,4 @@
1
- import { NavLinkProps } from './types';
2
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<NavLinkProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<NavLinkProps>>>, {}, {}>;
1
+ import { NavLinkProps } from './index';
2
+ declare const _default: import('vue').DefineComponent<NavLinkProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<NavLinkProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
3
3
  export default _default;
4
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
5
- type __VLS_TypePropsToRuntimeProps<T> = {
6
- [K in keyof T]-?: {} extends Pick<T, K> ? {
7
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
8
- } : {
9
- type: import('vue').PropType<T[K]>;
10
- required: true;
11
- };
12
- };
4
+ //# sourceMappingURL=NavLink.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NavLink.vue.d.ts","sourceRoot":"","sources":["../src/NavLink.vue"],"names":[],"mappings":"AA8DA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;;AAiF5C,wBASG"}
package/dist/index.css ADDED
@@ -0,0 +1 @@
1
+ .nav-link[data-v-a1f827ab]{display:inline-flex;height:5rem;padding:0 16px;align-items:center;gap:.5rem;flex-shrink:0;color:var(--Schemes-On-Inverse-Surface-Bright, #fff);font-family:var(--Label-Default-font-label-default-family, Montserrat);font-size:var(--Label-Default-font-label-default-size, 1rem);font-style:normal;font-weight:600;line-height:var(--Label-Default-font-label-default-lineheight, 1.5rem);background:#2176d2}.nav-link[data-v-a1f827ab]:hover{background:#96c9ff}
@@ -0,0 +1,5 @@
1
+ import { BaseProps } from '@phila/phila-ui-core';
2
+ export { default as NavLink } from './NavLink.vue';
3
+ export interface NavLinkProps extends BaseProps {
4
+ }
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,eAAe,CAAC;AAInD,MAAM,WAAW,YAAa,SAAQ,SAAS;CAE9C"}