@fastkit/vui 0.7.25 → 0.7.30

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/dist/vui.cjs.js CHANGED
@@ -1303,7 +1303,8 @@ function createNavigationItemProps() {
1303
1303
  type: Number,
1304
1304
  default: 0
1305
1305
  },
1306
- nested: Boolean // key: {
1306
+ nested: Boolean,
1307
+ color: String // key: {
1307
1308
  // type: [String, Number],
1308
1309
  // required: true,
1309
1310
  // },
@@ -1492,7 +1493,10 @@ const VNavigationItem = vue.defineComponent({
1492
1493
  }), _children && vue.createVNode(vueUtils.VExpandTransition, null, {
1493
1494
  default: () => [vue.withDirectives(vue.createVNode("div", {
1494
1495
  "class": "v-navigation-item__expand"
1495
- }, [_children.map(child => renderNavigationItemInput(child, {
1496
+ }, [_children.map(child => renderNavigationItemInput({
1497
+ color: props.color,
1498
+ ...child
1499
+ }, {
1496
1500
  startIconEmptySpace: _props.value.startIconEmptySpace,
1497
1501
  depth: props.nested ? props.depth + 1 : props.depth // onClick,
1498
1502
  // onChangeActive,
@@ -1303,7 +1303,8 @@ function createNavigationItemProps() {
1303
1303
  type: Number,
1304
1304
  default: 0
1305
1305
  },
1306
- nested: Boolean // key: {
1306
+ nested: Boolean,
1307
+ color: String // key: {
1307
1308
  // type: [String, Number],
1308
1309
  // required: true,
1309
1310
  // },
@@ -1492,7 +1493,10 @@ const VNavigationItem = vue.defineComponent({
1492
1493
  }), _children && vue.createVNode(vueUtils.VExpandTransition, null, {
1493
1494
  default: () => [vue.withDirectives(vue.createVNode("div", {
1494
1495
  "class": "v-navigation-item__expand"
1495
- }, [_children.map(child => renderNavigationItemInput(child, {
1496
+ }, [_children.map(child => renderNavigationItemInput({
1497
+ color: props.color,
1498
+ ...child
1499
+ }, {
1496
1500
  startIconEmptySpace: _props.value.startIconEmptySpace,
1497
1501
  depth: props.nested ? props.depth + 1 : props.depth // onClick,
1498
1502
  // onChangeActive,
package/dist/vui.d.ts CHANGED
@@ -403,6 +403,7 @@ export declare function createNavigationItemProps(): {
403
403
  default: number;
404
404
  };
405
405
  nested: BooleanConstructor;
406
+ color: PropType<ScopeName>;
406
407
  startIcon: PropType<RawIconProp>;
407
408
  endIcon: PropType<RawIconProp>;
408
409
  linkFallbackTag: {
@@ -410,7 +411,6 @@ export declare function createNavigationItemProps(): {
410
411
  default: string;
411
412
  };
412
413
  startIconEmptySpace: BooleanConstructor;
413
- color: PropType<ScopeName>;
414
414
  exactMatch: BooleanConstructor;
415
415
  tag: PropType<string>;
416
416
  class: PropType<any>;
@@ -6608,6 +6608,7 @@ export declare const VNavigationItem: DefineComponent<{
6608
6608
  default: number;
6609
6609
  };
6610
6610
  nested: BooleanConstructor;
6611
+ color: PropType<ScopeName>;
6611
6612
  startIcon: PropType<RawIconProp>;
6612
6613
  endIcon: PropType<RawIconProp>;
6613
6614
  linkFallbackTag: {
@@ -6615,7 +6616,6 @@ export declare const VNavigationItem: DefineComponent<{
6615
6616
  default: string;
6616
6617
  };
6617
6618
  startIconEmptySpace: BooleanConstructor;
6618
- color: PropType<ScopeName>;
6619
6619
  exactMatch: BooleanConstructor;
6620
6620
  tag: PropType<string>;
6621
6621
  class: PropType<any>;
@@ -6649,11 +6649,11 @@ export declare const VNavigationItem: DefineComponent<{
6649
6649
  match?: unknown;
6650
6650
  depth?: unknown;
6651
6651
  nested?: unknown;
6652
+ color?: unknown;
6652
6653
  startIcon?: unknown;
6653
6654
  endIcon?: unknown;
6654
6655
  linkFallbackTag?: unknown;
6655
6656
  startIconEmptySpace?: unknown;
6656
- color?: unknown;
6657
6657
  exactMatch?: unknown;
6658
6658
  tag?: unknown;
6659
6659
  class?: unknown;
package/dist/vui.mjs CHANGED
@@ -1298,7 +1298,8 @@ function createNavigationItemProps() {
1298
1298
  type: Number,
1299
1299
  default: 0
1300
1300
  },
1301
- nested: Boolean // key: {
1301
+ nested: Boolean,
1302
+ color: String // key: {
1302
1303
  // type: [String, Number],
1303
1304
  // required: true,
1304
1305
  // },
@@ -1487,7 +1488,10 @@ const VNavigationItem = defineComponent({
1487
1488
  }), _children && createVNode(VExpandTransition, null, {
1488
1489
  default: () => [withDirectives(createVNode("div", {
1489
1490
  "class": "v-navigation-item__expand"
1490
- }, [_children.map(child => renderNavigationItemInput(child, {
1491
+ }, [_children.map(child => renderNavigationItemInput({
1492
+ color: props.color,
1493
+ ...child
1494
+ }, {
1491
1495
  startIconEmptySpace: _props.value.startIconEmptySpace,
1492
1496
  depth: props.nested ? props.depth + 1 : props.depth // onClick,
1493
1497
  // onChangeActive,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fastkit/vui",
3
- "version": "0.7.25",
3
+ "version": "0.7.30",
4
4
  "description": "@fastkit/vui",
5
5
  "buildOptions": {
6
6
  "name": "Vui",
@@ -32,11 +32,11 @@
32
32
  "vue": "^3.2.26"
33
33
  },
34
34
  "dependencies": {
35
- "@fastkit/color-scheme": "0.7.25",
36
- "@fastkit/icon-font": "0.7.25",
37
- "@fastkit/tiny-logger": "0.7.25",
38
- "@fastkit/vite-kit": "0.7.25",
39
- "@fastkit/vue-kit": "0.7.25",
35
+ "@fastkit/color-scheme": "0.7.30",
36
+ "@fastkit/icon-font": "0.7.30",
37
+ "@fastkit/tiny-logger": "0.7.30",
38
+ "@fastkit/vite-kit": "0.7.30",
39
+ "@fastkit/vue-kit": "0.7.30",
40
40
  "@tiptap/extension-link": "^2.0.0-beta.35",
41
41
  "@tiptap/extension-underline": "^2.0.0-beta.22",
42
42
  "@tiptap/starter-kit": "^2.0.0-beta.168",
@@ -17,6 +17,7 @@ import {
17
17
  } from '@fastkit/vue-utils';
18
18
  import { useVui } from '../../injections';
19
19
  import { useRoute } from 'vue-router';
20
+ import { ScopeName } from '@fastkit/color-scheme';
20
21
 
21
22
  export function createNavigationItemProps() {
22
23
  return {
@@ -27,6 +28,7 @@ export function createNavigationItemProps() {
27
28
  default: 0,
28
29
  },
29
30
  nested: Boolean,
31
+ color: String as PropType<ScopeName>,
30
32
  // key: {
31
33
  // type: [String, Number],
32
34
  // required: true,
@@ -243,12 +245,18 @@ export const VNavigationItem = defineComponent({
243
245
  <VExpandTransition>
244
246
  <div class="v-navigation-item__expand" v-show={opened.value}>
245
247
  {_children.map((child) =>
246
- renderNavigationItemInput(child, {
247
- startIconEmptySpace: _props.value.startIconEmptySpace,
248
- depth: props.nested ? props.depth + 1 : props.depth,
249
- // onClick,
250
- // onChangeActive,
251
- }),
248
+ renderNavigationItemInput(
249
+ {
250
+ color: props.color,
251
+ ...child,
252
+ },
253
+ {
254
+ startIconEmptySpace: _props.value.startIconEmptySpace,
255
+ depth: props.nested ? props.depth + 1 : props.depth,
256
+ // onClick,
257
+ // onChangeActive,
258
+ },
259
+ ),
252
260
  )}
253
261
  </div>
254
262
  </VExpandTransition>