@oiij/chrome-tabs 0.0.19 → 0.0.20

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.
@@ -2,7 +2,6 @@ import { tabsItemCssName } from "./cssr.js";
2
2
  import LineMdLoadingTwotoneLoop_default from "./icons/LineMdLoadingTwotoneLoop.js";
3
3
  import RiCloseLine_default from "./icons/RiCloseLine.js";
4
4
  import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, h, normalizeClass, normalizeStyle, openBlock, resolveDynamicComponent, unref, withModifiers } from "vue";
5
-
6
5
  //#region src/ChromeTabItem.vue
7
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
8
7
  __name: "ChromeTabItem",
@@ -84,7 +83,5 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
84
83
  };
85
84
  }
86
85
  });
87
- var ChromeTabItem_default = _sfc_main;
88
-
89
86
  //#endregion
90
- export { ChromeTabItem_default as default };
87
+ export { _sfc_main as default };
@@ -1,16 +1,16 @@
1
1
  import { TabsItemProps } from "./index.js";
2
- import * as vue4 from "vue";
2
+ import * as vue from "vue";
3
3
 
4
4
  //#region src/ChromeTabItem.vue.d.ts
5
- declare const __VLS_export: vue4.DefineComponent<TabsItemProps, {}, {}, {}, {}, vue4.ComponentOptionsMixin, vue4.ComponentOptionsMixin, {} & {
5
+ declare const __VLS_export: vue.DefineComponent<TabsItemProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
6
6
  itemClick: (ev: MouseEvent) => any;
7
7
  itemContextmenu: (ev: MouseEvent) => any;
8
8
  itemClose: () => any;
9
- }, string, vue4.PublicProps, Readonly<TabsItemProps> & Readonly<{
9
+ }, string, vue.PublicProps, Readonly<TabsItemProps> & Readonly<{
10
10
  onItemClick?: ((ev: MouseEvent) => any) | undefined;
11
11
  onItemContextmenu?: ((ev: MouseEvent) => any) | undefined;
12
12
  onItemClose?: (() => any) | undefined;
13
- }>, {}, {}, {}, {}, string, vue4.ComponentProvideOptions, false, {}, any>;
13
+ }>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
14
14
  declare const _default: typeof __VLS_export;
15
15
  //#endregion
16
16
  export { _default };
@@ -1,12 +1,11 @@
1
1
  import { tabsCssName, tabsCssr, tabsItemCssName } from "./cssr.js";
2
- import ChromeTabItem_default from "./ChromeTabItem.js";
2
+ import _sfc_main$1 from "./ChromeTabItem.js";
3
3
  import RiAddLine_default from "./icons/RiAddLine.js";
4
4
  import RiArrowDropDownLine_default from "./icons/RiArrowDropDownLine.js";
5
5
  import { Fragment, TransitionGroup, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeProps, normalizeClass, normalizeStyle, openBlock, renderList, renderSlot, unref, useTemplateRef, watch, withCtx } from "vue";
6
6
  import { useStyle } from "@oiij/css-render";
7
7
  import { useScrollView } from "@oiij/use";
8
8
  import { colord } from "colord";
9
-
10
9
  //#region src/ChromeTabs.vue
11
10
  const _sfc_main = /* @__PURE__ */ defineComponent({
12
11
  __name: "ChromeTabs",
@@ -91,7 +90,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
91
90
  class: normalizeClass([`${unref(tabsCssName)}__scroll`])
92
91
  }, {
93
92
  default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, ({ key, ...item }, index) => {
94
- return openBlock(), createBlock(ChromeTabItem_default, mergeProps({
93
+ return openBlock(), createBlock(_sfc_main$1, mergeProps({
95
94
  key,
96
95
  loading: __props.loadingValue === key
97
96
  }, { ref_for: true }, item, {
@@ -125,7 +124,5 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
125
124
  };
126
125
  }
127
126
  });
128
- var ChromeTabs_default = _sfc_main;
129
-
130
127
  //#endregion
131
- export { ChromeTabs_default as default };
128
+ export { _sfc_main as default };
@@ -1,5 +1,5 @@
1
1
  import { TabItemKey, TabsProps } from "./index.js";
2
- import * as vue0 from "vue";
2
+ import * as vue from "vue";
3
3
 
4
4
  //#region src/ChromeTabs.vue.d.ts
5
5
  declare var __VLS_6: {}, __VLS_23: {};
@@ -8,19 +8,19 @@ type __VLS_Slots = {} & {
8
8
  } & {
9
9
  suffix?: (props: typeof __VLS_23) => any;
10
10
  };
11
- declare const __VLS_base: vue0.DefineComponent<TabsProps, {}, {}, {}, {}, vue0.ComponentOptionsMixin, vue0.ComponentOptionsMixin, {} & {
11
+ declare const __VLS_base: vue.DefineComponent<TabsProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
12
12
  click: (v: TabItemKey, index: number) => any;
13
13
  close: (v: TabItemKey, index: number) => any;
14
14
  contextmenu: (v: TabItemKey, index: number) => any;
15
15
  "update:value": (v?: TabItemKey | null | undefined) => any;
16
16
  add: () => any;
17
- }, string, vue0.PublicProps, Readonly<TabsProps> & Readonly<{
17
+ }, string, vue.PublicProps, Readonly<TabsProps> & Readonly<{
18
18
  onClick?: ((v: TabItemKey, index: number) => any) | undefined;
19
19
  onClose?: ((v: TabItemKey, index: number) => any) | undefined;
20
20
  onContextmenu?: ((v: TabItemKey, index: number) => any) | undefined;
21
21
  "onUpdate:value"?: ((v?: TabItemKey | null | undefined) => any) | undefined;
22
22
  onAdd?: (() => any) | undefined;
23
- }>, {}, {}, {}, {}, string, vue0.ComponentProvideOptions, false, {}, any>;
23
+ }>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
24
24
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
25
25
  declare const _default: typeof __VLS_export;
26
26
  type __VLS_WithSlots<T, S> = T & {
@@ -4,6 +4,5 @@ var export_helper_default = (sfc, props) => {
4
4
  for (const [key, val] of props) target[key] = val;
5
5
  return target;
6
6
  };
7
-
8
7
  //#endregion
9
- export { export_helper_default as default };
8
+ export { export_helper_default as default };
package/dist/cssr.js CHANGED
@@ -1,5 +1,4 @@
1
1
  import { useBem } from "@oiij/css-render";
2
-
3
2
  //#region src/cssr.ts
4
3
  const { cssr, plugin, namespace } = useBem();
5
4
  const { c, cB, cE, cM, cNotM } = {
@@ -147,6 +146,5 @@ function tabsCssr() {
147
146
  }, [cE("icon", { backgroundColor: "var(--active-background-color-dark)" }, [c("&:hover", { backgroundColor: "var(--primary-color-dark)" })])]), cB("chrome-tabs-item", {}, [cNotM("active", [c("&:hover", {}, [cE("content", { backgroundColor: "var(--primary-color-dark)" })])]), cE("background", {}, [cE("block", { backgroundColor: "var(--active-background-color-dark)" }), c("svg", { fill: "var(--active-background-color-dark)" })])])])
148
147
  ]);
149
148
  }
150
-
151
149
  //#endregion
152
- export { tabsCssName, tabsCssr, tabsItemCssName };
150
+ export { tabsCssName, tabsCssr, tabsItemCssName };
@@ -1,6 +1,5 @@
1
1
  import export_helper_default from "../_virtual/_/plugin-vue/export-helper.js";
2
- import { createCommentVNode, createElementBlock, createElementVNode, createStaticVNode, openBlock } from "vue";
3
-
2
+ import { createCommentVNode, createElementBlock, createStaticVNode, openBlock } from "vue";
4
3
  //#region src/icons/LineMdLoadingTwotoneLoop.vue
5
4
  const _sfc_main = { name: "LineMdLoadingTwotoneLoop" };
6
5
  const _hoisted_1 = {
@@ -13,6 +12,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
13
12
  return openBlock(), createElementBlock("svg", _hoisted_1, [createCommentVNode(" Icon from Material Line Icons by Vjacheslav Trushkin - https://github.com/cyberalien/line-md/blob/master/license.txt "), _cache[0] || (_cache[0] = createStaticVNode("<g fill=\"none\" stroke=\"#757575\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><path stroke-dasharray=\"16\" stroke-dashoffset=\"16\" d=\"M12 3c4.97 0 9 4.03 9 9\"><animate fill=\"freeze\" attributeName=\"stroke-dashoffset\" dur=\"0.3s\" values=\"16;0\"></animate><animateTransform attributeName=\"transform\" dur=\"1.5s\" repeatCount=\"indefinite\" type=\"rotate\" values=\"0 12 12;360 12 12\"></animateTransform></path><path stroke-dasharray=\"64\" stroke-dashoffset=\"64\" stroke-opacity=\".3\" d=\"M12 3c4.97 0 9 4.03 9 9c0 4.97 -4.03 9 -9 9c-4.97 0 -9 -4.03 -9 -9c0 -4.97 4.03 -9 9 -9Z\"><animate fill=\"freeze\" attributeName=\"stroke-dashoffset\" dur=\"1.2s\" values=\"64;0\"></animate></path></g>", 1))]);
14
13
  }
15
14
  var LineMdLoadingTwotoneLoop_default = /* @__PURE__ */ export_helper_default(_sfc_main, [["render", _sfc_render]]);
16
-
17
15
  //#endregion
18
- export { LineMdLoadingTwotoneLoop_default as default };
16
+ export { LineMdLoadingTwotoneLoop_default as default };
@@ -1,6 +1,5 @@
1
1
  import export_helper_default from "../_virtual/_/plugin-vue/export-helper.js";
2
2
  import { createCommentVNode, createElementBlock, createElementVNode, openBlock } from "vue";
3
-
4
3
  //#region src/icons/RiAddLine.vue
5
4
  const _sfc_main = { name: "RiAddLine" };
6
5
  const _hoisted_1 = {
@@ -16,6 +15,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
16
15
  }, null, -1))]);
17
16
  }
18
17
  var RiAddLine_default = /* @__PURE__ */ export_helper_default(_sfc_main, [["render", _sfc_render]]);
19
-
20
18
  //#endregion
21
- export { RiAddLine_default as default };
19
+ export { RiAddLine_default as default };
@@ -1,6 +1,5 @@
1
1
  import export_helper_default from "../_virtual/_/plugin-vue/export-helper.js";
2
2
  import { createCommentVNode, createElementBlock, createElementVNode, openBlock } from "vue";
3
-
4
3
  //#region src/icons/RiArrowDropDownLine.vue
5
4
  const _sfc_main = { name: "RiArrowDropDownLine" };
6
5
  const _hoisted_1 = {
@@ -16,6 +15,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
16
15
  }, null, -1))]);
17
16
  }
18
17
  var RiArrowDropDownLine_default = /* @__PURE__ */ export_helper_default(_sfc_main, [["render", _sfc_render]]);
19
-
20
18
  //#endregion
21
- export { RiArrowDropDownLine_default as default };
19
+ export { RiArrowDropDownLine_default as default };
@@ -1,6 +1,5 @@
1
1
  import export_helper_default from "../_virtual/_/plugin-vue/export-helper.js";
2
2
  import { createCommentVNode, createElementBlock, createElementVNode, openBlock } from "vue";
3
-
4
3
  //#region src/icons/RiCloseLine.vue
5
4
  const _sfc_main = { name: "RiCloseLine" };
6
5
  const _hoisted_1 = {
@@ -16,6 +15,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
16
15
  }, null, -1))]);
17
16
  }
18
17
  var RiCloseLine_default = /* @__PURE__ */ export_helper_default(_sfc_main, [["render", _sfc_render]]);
19
-
20
18
  //#endregion
21
- export { RiCloseLine_default as default };
19
+ export { RiCloseLine_default as default };
package/dist/index.js CHANGED
@@ -1,4 +1,3 @@
1
- import ChromeTabItem_default from "./ChromeTabItem.js";
2
- import ChromeTabs_default from "./ChromeTabs.js";
3
-
4
- export { ChromeTabItem_default as ChromeTabItem, ChromeTabs_default as ChromeTabs };
1
+ import _sfc_main from "./ChromeTabItem.js";
2
+ import _sfc_main$1 from "./ChromeTabs.js";
3
+ export { _sfc_main as ChromeTabItem, _sfc_main$1 as ChromeTabs };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@oiij/chrome-tabs",
3
3
  "type": "module",
4
- "version": "0.0.19",
4
+ "version": "0.0.20",
5
5
  "description": "A Vue Component Likes Chrome Tabs Style.",
6
6
  "author": "oiij",
7
7
  "license": "MIT",
@@ -27,15 +27,15 @@
27
27
  ],
28
28
  "peerDependencies": {
29
29
  "colord": "^2.9.3",
30
- "vue": "^3.5.27",
31
- "@oiij/css-render": "0.0.11",
32
- "@oiij/use": "0.0.48"
30
+ "vue": "^3.5.30",
31
+ "@oiij/css-render": "0.0.12",
32
+ "@oiij/use": "0.0.50"
33
33
  },
34
34
  "devDependencies": {
35
35
  "colord": "^2.9.3",
36
- "vue": "^3.5.27",
37
- "@oiij/css-render": "0.0.11",
38
- "@oiij/use": "0.0.48"
36
+ "vue": "^3.5.30",
37
+ "@oiij/css-render": "0.0.12",
38
+ "@oiij/use": "0.0.50"
39
39
  },
40
40
  "publishConfig": {
41
41
  "access": "public"