@myghf/ui 0.4.0 → 0.5.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 +32 -0
- package/dist/components/data-table/DataTable.vue.d.ts +3 -0
- package/dist/components/data-table/DataTable.vue.d.ts.map +1 -1
- package/dist/index.js +497 -476
- package/dist/index.js.map +1 -1
- package/dist/nuxt.d.ts +49 -2
- package/dist/nuxt.d.ts.map +1 -1
- package/dist/nuxt.js +82 -16
- package/dist/nuxt.js.map +1 -1
- package/package.json +5 -1
package/README.md
CHANGED
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
| --- | --- |
|
|
16
16
|
| [`vue`](https://vuejs.org) | `^3.5.0` (peer) |
|
|
17
17
|
| [`tailwindcss`](https://tailwindcss.com) | `^3.4.0` (peer) |
|
|
18
|
+
| [`@nuxtjs/tailwindcss`](https://tailwindcss.nuxtjs.org) | `^6.0.0` (optional peer, Nuxt only) |
|
|
18
19
|
|
|
19
20
|
## Installation
|
|
20
21
|
|
|
@@ -56,6 +57,37 @@ import { Button, Input } from '@myghf/ui'
|
|
|
56
57
|
</template>
|
|
57
58
|
```
|
|
58
59
|
|
|
60
|
+
## Nuxt
|
|
61
|
+
|
|
62
|
+
An optional module ships at `@myghf/ui/nuxt`:
|
|
63
|
+
|
|
64
|
+
```ts
|
|
65
|
+
// nuxt.config.ts
|
|
66
|
+
export default defineNuxtConfig({
|
|
67
|
+
modules: ['@nuxtjs/tailwindcss', '@myghf/ui/nuxt'],
|
|
68
|
+
})
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
It transpiles the library, loads the design tokens, and auto-imports the components,
|
|
72
|
+
composables, and utilities. When
|
|
73
|
+
[`@nuxtjs/tailwindcss`](https://tailwindcss.nuxtjs.org) is installed (an optional peer) it
|
|
74
|
+
also appends the `@myghf/ui/tailwind-preset` and the library content glob to your Tailwind
|
|
75
|
+
config; without it the module logs a warning and you add those two entries yourself, or set
|
|
76
|
+
`myghfUi: { tailwind: false }` to opt out. Install the Tailwind module explicitly if your app
|
|
77
|
+
does not already have it:
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
npm install -D @nuxtjs/tailwindcss
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
| Option | Type | Default |
|
|
84
|
+
| --- | --- | --- |
|
|
85
|
+
| `autoImports` | `boolean \| { components?: boolean; composables?: boolean }` | `true` |
|
|
86
|
+
| `prefix` | `string` (components only) | `''` |
|
|
87
|
+
| `tailwind` | `boolean` | `true` |
|
|
88
|
+
|
|
89
|
+
See the [Nuxt guide](https://ui.myfegypt.org/guide/nuxt) for details.
|
|
90
|
+
|
|
59
91
|
## Documentation
|
|
60
92
|
|
|
61
93
|
Full guides, live component examples, API reference, theming, and RTL notes live at
|
|
@@ -20,6 +20,9 @@ declare const _default: <T extends RowData>(__VLS_props: NonNullable<Awaited<typ
|
|
|
20
20
|
expanded?: Record<string, boolean>;
|
|
21
21
|
stopRowToggleOnInteractiveCells?: boolean;
|
|
22
22
|
maxHeight?: string;
|
|
23
|
+
loading?: boolean;
|
|
24
|
+
loadingRows?: number;
|
|
25
|
+
loadingLabel?: string;
|
|
23
26
|
} & Partial<{}>> & import('vue').PublicProps;
|
|
24
27
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
25
28
|
attrs: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTable.vue.d.ts","sourceRoot":"","sources":["../../../src/components/data-table/DataTable.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DataTable.vue.d.ts","sourceRoot":"","sources":["../../../src/components/data-table/DataTable.vue"],"names":[],"mappings":"AA8LA,OAAO,EAAwB,KAAK,SAAS,EAAE,KAAK,OAAO,EAAqB,MAAM,qBAAqB,CAAA;AAE3G,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;yBAWlC,CAAC,SAAS,OAAO,EACjC,aAAa,WAAW,CAAC,OAAO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