nuxt-unified-ui 0.1.2 → 0.1.3

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/app/app.config.js CHANGED
@@ -2,48 +2,10 @@
2
2
 
3
3
  export default defineAppConfig({
4
4
  ui: {
5
-
6
- badge: {
7
- defaultVariants: {
8
- color: 'neutral',
9
- },
10
- },
11
-
12
- button: {
13
- defaultVariants: {
14
- color: 'neutral',
15
- },
16
- },
17
-
18
- calendar: {
19
- defaultVariants: {
20
- color: 'neutral',
21
- },
22
- },
23
-
24
5
  card: {
25
6
  slots: {
26
7
  body: 'p-3 sm:p-3',
27
8
  },
28
9
  },
29
-
30
- input: {
31
- defaultVariants: {
32
- color: 'neutral',
33
- },
34
- },
35
-
36
- select: {
37
- defaultVariants: {
38
- color: 'neutral',
39
- },
40
- },
41
-
42
- tabs: {
43
- defaultVariants: {
44
- color: 'neutral',
45
- },
46
- },
47
-
48
10
  },
49
11
  });
@@ -66,4 +66,4 @@ const filteredFields = computed(() => {
66
66
  />
67
67
  </div>
68
68
  </div>
69
- </template>
69
+ </template>
@@ -21,7 +21,7 @@ const props = defineProps({
21
21
  {
22
22
  label: 'Submit',
23
23
  value: true,
24
- }
24
+ },
25
25
  ],
26
26
  },
27
27
  endButtons: {
@@ -31,7 +31,7 @@ const props = defineProps({
31
31
  variant: 'ghost',
32
32
  label: 'Cancel',
33
33
  value: false,
34
- }
34
+ },
35
35
  ],
36
36
  },
37
37
  });
@@ -60,7 +60,7 @@ async function handleButtonClick(button) {
60
60
  <u-modal @update:open="!$event && emit('close')">
61
61
  <template #content>
62
62
  <u-card>
63
-
63
+
64
64
  <un-typography
65
65
  :icon="props.icon"
66
66
  :title="props.title"
@@ -12,10 +12,10 @@ const modelValue = defineModel();
12
12
 
13
13
 
14
14
  <template>
15
- <u-form-field v-bind="radPick(props.field, [ 'fieldLabel' ])">
15
+ <u-form-field v-bind="radPick(props.field, [ 'fieldLabel', 'hint' ])">
16
16
  <u-checkbox
17
17
  class="w-full"
18
- v-bind="radOmit(props.field, [ 'key', 'identifier', 'fieldLabel' ])"
18
+ v-bind="radOmit(props.field, [ 'key', 'identifier', 'fieldLabel', 'hint' ])"
19
19
  v-model="modelValue"
20
20
  />
21
21
  </u-form-field>
@@ -16,7 +16,7 @@ import { CalendarDate } from '@internationalized/date';
16
16
 
17
17
  const internalModel = computed({
18
18
  get: () => {
19
-
19
+
20
20
  if (!modelValue.value) {
21
21
  return null;
22
22
  }
@@ -48,10 +48,10 @@ const inputTitle = computed(() => {
48
48
  <template>
49
49
  <u-popover>
50
50
 
51
- <u-form-field v-bind="radPick(props.field, [ 'label' ])">
51
+ <u-form-field v-bind="radPick(props.field, [ 'label', 'hint' ])">
52
52
  <u-input
53
53
  class="w-full"
54
- v-bind="radOmit(props.field, [ 'key', 'identifier', 'label' ])"
54
+ v-bind="radOmit(props.field, [ 'key', 'identifier', 'label', 'hint' ])"
55
55
  readonly
56
56
  :model-value="inputTitle"
57
57
  />
@@ -12,10 +12,10 @@ const modelValue = defineModel();
12
12
 
13
13
 
14
14
  <template>
15
- <u-form-field v-bind="radPick(props.field, [ 'label' ])">
15
+ <u-form-field v-bind="radPick(props.field, [ 'label', 'hint' ])">
16
16
  <u-select
17
17
  class="w-full"
18
- v-bind="radOmit(props.field, [ 'key', 'identifier', 'label' ])"
18
+ v-bind="radOmit(props.field, [ 'key', 'identifier', 'label', 'hint' ])"
19
19
  v-model="modelValue"
20
20
  />
21
21
  </u-form-field>
@@ -12,10 +12,10 @@ const modelValue = defineModel();
12
12
 
13
13
 
14
14
  <template>
15
- <u-form-field v-bind="radPick(props.field, [ 'label' ])">
15
+ <u-form-field v-bind="radPick(props.field, [ 'label', 'hint' ])">
16
16
  <u-input
17
17
  class="w-full"
18
- v-bind="radOmit(props.field, [ 'key', 'identifier', 'label' ])"
18
+ v-bind="radOmit(props.field, [ 'key', 'identifier', 'label', 'hint' ])"
19
19
  v-model="modelValue"
20
20
  />
21
21
  </u-form-field>
@@ -12,10 +12,10 @@ const modelValue = defineModel();
12
12
 
13
13
 
14
14
  <template>
15
- <u-form-field v-bind="radPick(props.field, [ 'label' ])">
15
+ <u-form-field v-bind="radPick(props.field, [ 'label', 'hint' ])">
16
16
  <u-textarea
17
17
  class="w-full"
18
- v-bind="radOmit(props.field, [ 'key', 'identifier', 'label' ])"
18
+ v-bind="radOmit(props.field, [ 'key', 'identifier', 'label', 'hint' ])"
19
19
  v-model="modelValue"
20
20
  />
21
21
  </u-form-field>
@@ -31,6 +31,6 @@ export function parseDate(date: string, format: string, locale = 'en-US') {
31
31
  return parse(date, format, locale).valueOf();
32
32
  }
33
33
  catch {
34
- return 0;
34
+ return undefined;
35
35
  }
36
36
  }
package/modules/radash.ts CHANGED
@@ -1,10 +1,10 @@
1
- import { defineNuxtModule, addImports } from "@nuxt/kit";
2
- import * as radash from "radash";
1
+ import { defineNuxtModule, addImports } from '@nuxt/kit';
2
+ import * as radash from 'radash';
3
3
 
4
4
 
5
5
  export default defineNuxtModule({
6
6
  meta: {
7
- name: "nuxt-radash",
7
+ name: 'nuxt-radash',
8
8
  },
9
9
  setup() {
10
10
  for (const name of Object.keys(radash)) {
@@ -15,7 +15,7 @@ export default defineNuxtModule({
15
15
  addImports({
16
16
  name,
17
17
  as,
18
- from: "radash",
18
+ from: 'radash',
19
19
  });
20
20
 
21
21
  }
package/nuxt.config.js CHANGED
@@ -21,6 +21,11 @@ export default defineNuxtConfig({
21
21
 
22
22
  ui: {
23
23
  colorMode: false,
24
+ theme: {
25
+ defaultVariants: {
26
+ color: 'neutral',
27
+ },
28
+ },
24
29
  },
25
30
 
26
31
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nuxt-unified-ui",
3
3
  "type": "module",
4
- "version": "0.1.2",
4
+ "version": "0.1.3",
5
5
  "main": "./nuxt.config.js",
6
6
  "exports": {
7
7
  ".": "./nuxt.config.js",
@@ -15,9 +15,9 @@
15
15
  ],
16
16
  "dependencies": {
17
17
  "@formkit/tempo": "0.1.2",
18
- "@iconify-json/lucide": "1.2.73",
18
+ "@iconify-json/lucide": "1.2.74",
19
19
  "@nuxt/kit": "4.2.1",
20
- "@nuxt/ui": "4.1.0",
20
+ "@nuxt/ui": "4.2.1",
21
21
  "@vueuse/core": "14.0.0",
22
22
  "@vueuse/nuxt": "14.0.0",
23
23
  "radash": "12.1.1",