pgo-uiux2 1.0.21 → 1.0.22

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
@@ -2,6 +2,57 @@
2
2
 
3
3
  This template should help get you started developing with Vue 3 in Vite.
4
4
 
5
+ ## Installation (as a package)
6
+
7
+ Install the package in your Vue 3 project:
8
+
9
+ ```sh
10
+ npm install pgo-uiux2
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ 1. **Import the library and styles in your main.js/main.ts:**
16
+
17
+ ```js
18
+ import { createApp } from 'vue'
19
+ import App from './App.vue'
20
+ import 'pgo-uiux2/style.css' // Import the UI library styles
21
+ import { ComponentRenderer, ListView } from 'pgo-uiux2' // Import components you need
22
+
23
+ const app = createApp(App)
24
+ // Register components globally if desired
25
+ app.component('ComponentRenderer', ComponentRenderer)
26
+ app.component('ListView', ListView)
27
+ app.mount('#app')
28
+ ```
29
+
30
+ 2. **Add routes in your router:**
31
+
32
+ ```js
33
+ import { ComponentRenderer, ListView } from 'pgo-uiux2'
34
+
35
+ const routes = [
36
+ { path: '/custom-renderer', component: ComponentRenderer },
37
+ { path: '/list-view', component: ListView }
38
+ // ...other routes
39
+ ]
40
+ ```
41
+
42
+ 3. **Tailwind CSS Setup**
43
+
44
+ Make sure your `tailwind.config.js` includes the package for class scanning:
45
+
46
+ ```js
47
+ content: [
48
+ './index.html',
49
+ './src/**/*.{vue,js,ts,jsx,tsx}',
50
+ './node_modules/pgo-uiux2/**/*.{js,ts,vue}'
51
+ ]
52
+ ```
53
+
54
+ ---
55
+
5
56
  ## Recommended IDE Setup
6
57
 
7
58
  [VS Code](https://code.visualstudio.com/) + [Vue (Official)](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur).
@@ -41,9 +92,8 @@ npm run dev
41
92
  </NavDrawerItem>
42
93
  ```
43
94
 
44
-
45
95
  ### Compile and Minify for Production
46
96
 
47
97
  ```sh
48
98
  npm run build
49
- ```
99
+ ```
@@ -1,5 +1,5 @@
1
1
  import { computed as c, createElementBlock as y, openBlock as d, createElementVNode as k, normalizeClass as j, Fragment as x, renderList as $, createBlock as z, createSlots as B, withCtx as i, renderSlot as u, mergeProps as f } from "vue";
2
- import { _ as K, C as L } from "./index-A4jwOW7Z.js";
2
+ import { _ as K, C as L } from "./index-Bsrl9WA-.js";
3
3
  const w = { class: "flex items-center" }, I = ["aria-label"], V = {
4
4
  __name: "ChipGroup",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { inject as S, ref as y, computed as D, watch as B, nextTick as Z, withDirectives as C, createElementBlock as M, openBlock as N, normalizeClass as v, createVNode as x, mergeProps as Y, toHandlers as G, withCtx as w, createElementVNode as T, withModifiers as J, vModelText as K, Transition as Q, createCommentVNode as X, normalizeStyle as _, unref as A } from "vue";
2
- import { _ as ee, a as te, Z as ae, v as le } from "./index-A4jwOW7Z.js";
2
+ import { _ as ee, a as te, Z as ae, v as le } from "./index-Bsrl9WA-.js";
3
3
  const ne = {
4
4
  class: /* @__PURE__ */ v(["flex-1", "flex", "items-center", "gap-2", "justify-between", "w-full", "h-full"])
5
5
  }, re = ["placeholder", "disabled", "onBlur"], ie = {
@@ -1,5 +1,5 @@
1
1
  import { inject as f, computed as d, ref as c, onBeforeUnmount as T, createElementBlock as q, openBlock as A, normalizeClass as N, createVNode as R, createSlots as D, withCtx as g, createElementVNode as o, mergeProps as E, toHandlers as F, withKeys as L } from "vue";
2
- import { _ as j, a as H } from "./index-A4jwOW7Z.js";
2
+ import { _ as j, a as H } from "./index-Bsrl9WA-.js";
3
3
  const K = ["value", "placeholder"], $ = {
4
4
  __name: "InputSearch",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { inject as c, computed as d, ref as i, createElementBlock as F, openBlock as M, normalizeClass as q, createVNode as A, createSlots as I, withCtx as f, createElementVNode as o, mergeProps as R, toHandlers as D, withKeys as E } from "vue";
2
- import { _ as L, a as N } from "./index-A4jwOW7Z.js";
2
+ import { _ as L, a as N } from "./index-Bsrl9WA-.js";
3
3
  const T = ["value", "placeholder"], j = {
4
4
  __name: "TextField",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { inject as c, computed as o, ref as i, createElementBlock as A, openBlock as I, normalizeClass as M, createVNode as R, mergeProps as f, createSlots as D, withCtx as p, createElementVNode as u, toHandlers as E, withKeys as F } from "vue";
2
- import { _ as L, a as T } from "./index-A4jwOW7Z.js";
2
+ import { _ as L, a as T } from "./index-Bsrl9WA-.js";
3
3
  const $ = ["value", "placeholder", "rows", "maxlength"], j = {
4
4
  __name: "Textarea",
5
5
  props: {