@phila/phila-ui-date-field 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
+ # DateField Component
2
+
3
+ A simple, customizable Vue 3. DateField component built with TypeScript and Vite.
4
+ A date input component.
5
+
6
+ ## Features
7
+
8
+ - 🎯 TypeScript support with full type definitions
9
+
10
+ ## Installation
11
+
12
+ ```bash
13
+ npm install @phila/phila-ui-date-field
14
+ # or
15
+ yarn add @phila/phila-ui-date-field
16
+ # or
17
+ pnpm add @phila/phila-ui-date-field
18
+ ```
19
+
20
+ ## Usage
21
+
22
+ ```vue
23
+ <script setup lang="ts">
24
+ import { DateField } from "@phila/phila-ui-date-field";
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 { DateFieldProps } from './index';
2
+ declare const _default: import('vue').DefineComponent<DateFieldProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<DateFieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
3
+ export default _default;
4
+ //# sourceMappingURL=DateField.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DateField.vue.d.ts","sourceRoot":"","sources":["../src/DateField.vue"],"names":[],"mappings":"AAGA;AAgCA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;;AA+D9C,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 DateField } from './DateField.vue';
3
+ export interface DateFieldProps 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,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAIvD,MAAM,WAAW,cAAe,SAAQ,SAAS;CAEhD"}
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"),n=require("@phila/phila-ui-core"),r=e.defineComponent({__name:"DateField",props:{className:{}},setup(t,{emit:o}){const s=t,c=e.computed(()=>n.cn("default-class",s.className));return(a,p)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(c.value)}," Hello world! I am DateField ",2))}}),l=(t,o)=>{const s=t.__vccOpts||t;for(const[c,a]of o)s[c]=a;return s},i=l(r,[["__scopeId","data-v-75c4084b"]]);exports.DateField=i;
package/dist/index.mjs ADDED
@@ -0,0 +1,22 @@
1
+ import { defineComponent as a, computed as n, createElementBlock as r, openBlock as l, normalizeClass as m } from "vue";
2
+ import { cn as p } from "@phila/phila-ui-core";
3
+ import './index.css';const _ = /* @__PURE__ */ a({
4
+ __name: "DateField",
5
+ props: {
6
+ className: {}
7
+ },
8
+ setup(e, { emit: s }) {
9
+ const t = e, o = n(() => p("default-class", t.className));
10
+ return (c, d) => (l(), r("span", {
11
+ class: m(o.value)
12
+ }, " Hello world! I am DateField ", 2));
13
+ }
14
+ }), i = (e, s) => {
15
+ const t = e.__vccOpts || e;
16
+ for (const [o, c] of s)
17
+ t[o] = c;
18
+ return t;
19
+ }, v = /* @__PURE__ */ i(_, [["__scopeId", "data-v-75c4084b"]]);
20
+ export {
21
+ v as DateField
22
+ };
package/package.json ADDED
@@ -0,0 +1,52 @@
1
+ {
2
+ "name": "@phila/phila-ui-date-field",
3
+ "version": "0.0.1",
4
+ "type": "module",
5
+ "description": "A date input component.",
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
+ "date-field",
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
+ }