@ciwergrp/nuxid 1.0.2-release → 1.0.4
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 +7 -7
- package/dist/module.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,14 +7,14 @@ Kiban bundles a handful of productivity helpers for Nuxt projects: icon defaults
|
|
|
7
7
|
Install and register the module:
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
pnpm add
|
|
10
|
+
pnpm add nuxid
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
```ts
|
|
14
14
|
// nuxt.config.ts
|
|
15
15
|
export default defineNuxtConfig({
|
|
16
|
-
modules: ['
|
|
17
|
-
|
|
16
|
+
modules: ['nuxid'],
|
|
17
|
+
nuxid: {
|
|
18
18
|
// lodash, validator, icon, and form are enabled by default
|
|
19
19
|
},
|
|
20
20
|
})
|
|
@@ -22,7 +22,7 @@ export default defineNuxtConfig({
|
|
|
22
22
|
|
|
23
23
|
## Features
|
|
24
24
|
|
|
25
|
-
- **Icon defaults** (`@nuxt/icon` dependency): component name `KIcon`, size `1.25em`, base class `align-middle inline-block text-current`, mode `svg`. Override via `
|
|
25
|
+
- **Icon defaults** (`@nuxt/icon` dependency): component name `KIcon`, size `1.25em`, base class `align-middle inline-block text-current`, mode `svg`. Override via `nuxid.icon`, or disable with `nuxid.icon = false`.
|
|
26
26
|
- **Lodash auto-imports**: imports from `lodash-es` with prefix `ki` (e.g. `kiDebounce`), skips prefix for names starting with `is`. Configure with:
|
|
27
27
|
- `enabled` (default `true`)
|
|
28
28
|
- `prefix` (`false | string`, default `'ki'`)
|
|
@@ -69,8 +69,8 @@ if (form.errors) {
|
|
|
69
69
|
|
|
70
70
|
```ts
|
|
71
71
|
export default defineNuxtConfig({
|
|
72
|
-
modules: ['
|
|
73
|
-
|
|
72
|
+
modules: ['nuxid'],
|
|
73
|
+
nuxid: {
|
|
74
74
|
icon: {
|
|
75
75
|
enabled: true,
|
|
76
76
|
componentName: 'KIcon',
|
|
@@ -101,7 +101,7 @@ export default defineNuxtConfig({
|
|
|
101
101
|
})
|
|
102
102
|
```
|
|
103
103
|
|
|
104
|
-
Disable any feature by setting it to `false` (e.g. `
|
|
104
|
+
Disable any feature by setting it to `false` (e.g. `nuxid: { lodash: false }`).
|
|
105
105
|
|
|
106
106
|
## Development
|
|
107
107
|
|
package/dist/module.json
CHANGED