@phila/phila-ui-breadcrumbs 0.0.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.
package/README.md ADDED
@@ -0,0 +1,75 @@
1
+ # Breadcrumbs Component
2
+
3
+ A simple, customizable Vue 3. Breadcrumbs component built with TypeScript and Vite.
4
+ A breadcrumb component for Phila UI
5
+
6
+ ## Features
7
+
8
+ - 🎯 TypeScript support with full type definitions
9
+
10
+ ## Installation
11
+
12
+ ```bash
13
+ npm install @phila/phila-ui-breadcrumbs
14
+ # or
15
+ yarn add @phila/phila-ui-breadcrumbs
16
+ # or
17
+ pnpm add @phila/phila-ui-breadcrumbs
18
+ ```
19
+
20
+ ## Usage
21
+
22
+ ```vue
23
+ <script setup lang="ts">
24
+ import { Breadcrumbs } from "@phila/phila-ui-breadcrumbs";
25
+ </script>
26
+ <template>...Add basic component template here...</template>
27
+ ```
28
+
29
+ ## Props
30
+
31
+ | Prop | Type | Default | Description |
32
+ | ---- | ---- | ------- | ----------- |
33
+
34
+ | ...Add props here...
35
+
36
+ ## Events
37
+
38
+ | Event | Payload | Description |
39
+ | ----- | ------- | ----------- |
40
+
41
+ | ...Add events here...
42
+
43
+ ## Examples
44
+
45
+ ...Add examples here...
46
+
47
+ ## Development
48
+
49
+ ### Install Dependencies
50
+
51
+ ```bash
52
+ pnpm install
53
+ ```
54
+
55
+ ### Run Demo
56
+
57
+ ```bash
58
+ pnpm dev
59
+ ```
60
+
61
+ ### Build Library
62
+
63
+ ```bash
64
+ pnpm build
65
+ ```
66
+
67
+ ### Type Check
68
+
69
+ ```bash
70
+ pnpm type-check
71
+ ```
72
+
73
+ ## License
74
+
75
+ MIT
@@ -0,0 +1,4 @@
1
+ import { BreadcrumbsProps } from './index';
2
+ declare const _default: import('vue').DefineComponent<BreadcrumbsProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BreadcrumbsProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
3
+ export default _default;
4
+ //# sourceMappingURL=Breadcrumbs.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Breadcrumbs.vue.d.ts","sourceRoot":"","sources":["../src/Breadcrumbs.vue"],"names":[],"mappings":"AAGA;AAgCA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;;AA+DhD,wBASG"}
package/dist/index.css ADDED
File without changes
@@ -0,0 +1,5 @@
1
+ import { BaseProps } from '@phila/phila-ui-core';
2
+ export { default as Breadcrumbs } from './Breadcrumbs.vue';
3
+ export interface BreadcrumbsProps 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,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAI3D,MAAM,WAAW,gBAAiB,SAAQ,SAAS;CAElD"}
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./index.css');const e=require("vue"),a=require("@phila/phila-ui-core"),n=e.defineComponent({__name:"Breadcrumbs",props:{className:{}},setup(s,{emit:c}){const r=s,t=e.computed(()=>a.cn("default-class",r.className));return(o,m)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(t.value)}," Hello world! I am Breadcrumbs ",2))}}),l=(s,c)=>{const r=s.__vccOpts||s;for(const[t,o]of c)r[t]=o;return r},u=l(n,[["__scopeId","data-v-eb21bb54"]]);exports.Breadcrumbs=u;
package/dist/index.mjs ADDED
@@ -0,0 +1,22 @@
1
+ import { defineComponent as r, computed as a, createElementBlock as n, openBlock as m, normalizeClass as l } from "vue";
2
+ import { cn as p } from "@phila/phila-ui-core";
3
+ import './index.css';const _ = /* @__PURE__ */ r({
4
+ __name: "Breadcrumbs",
5
+ props: {
6
+ className: {}
7
+ },
8
+ setup(e, { emit: c }) {
9
+ const s = e, t = a(() => p("default-class", s.className));
10
+ return (o, d) => (m(), n("span", {
11
+ class: l(t.value)
12
+ }, " Hello world! I am Breadcrumbs ", 2));
13
+ }
14
+ }), u = (e, c) => {
15
+ const s = e.__vccOpts || e;
16
+ for (const [t, o] of c)
17
+ s[t] = o;
18
+ return s;
19
+ }, b = /* @__PURE__ */ u(_, [["__scopeId", "data-v-eb21bb54"]]);
20
+ export {
21
+ b as Breadcrumbs
22
+ };
package/package.json ADDED
@@ -0,0 +1,52 @@
1
+ {
2
+ "name": "@phila/phila-ui-breadcrumbs",
3
+ "version": "0.0.1",
4
+ "type": "module",
5
+ "description": "A breadcrumb component for Phila UI",
6
+ "main": "./dist/index.js",
7
+ "module": "./dist/index.mjs",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.mjs",
13
+ "require": "./dist/index.js"
14
+ }
15
+ },
16
+ "files": [
17
+ "dist"
18
+ ],
19
+ "keywords": [
20
+ "ui",
21
+ "breadcrumbs",
22
+ "vue",
23
+ "component"
24
+ ],
25
+ "author": "",
26
+ "license": "MIT",
27
+ "peerDependencies": {
28
+ "vue": "^3.0.0"
29
+ },
30
+ "dependencies": {
31
+ "@phila/phila-ui-core": "2.1.0"
32
+ },
33
+ "devDependencies": {
34
+ "@types/node": "^24.0.0",
35
+ "@vitejs/plugin-vue": "^6.0.1",
36
+ "eslint": "^9.0.0",
37
+ "typescript": "^5.8.3",
38
+ "vite": "^7.0.6",
39
+ "vite-plugin-dts": "^4.5.4",
40
+ "vite-plugin-lib-inject-css": "^2.2.2"
41
+ },
42
+ "scripts": {
43
+ "build": "vite build",
44
+ "dev": "vite build --watch",
45
+ "lint": "eslint src --ext .ts,.tsx,.vue",
46
+ "lint:fix": "eslint src --ext .ts,.tsx,.vue --fix",
47
+ "type-check": "tsc --noEmit",
48
+ "clean": "rm -rf dist",
49
+ "format": "prettier --write .",
50
+ "format:check": "prettier --check ."
51
+ }
52
+ }