@opentinyvue/vue-carousel 2.21.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/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022 - present TinyVue Authors.
4
+ Copyright (c) 2022 - present Huawei Cloud Computing Technologies Co., Ltd.
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE.
package/index.d.ts ADDED
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Copyright (c) 2022 - present TinyVue Authors.
3
+ * Copyright (c) 2022 - present Huawei Cloud Computing Technologies Co., Ltd.
4
+ *
5
+ * Use of this source code is governed by an MIT-style license.
6
+ *
7
+ * THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
8
+ * BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
9
+ * A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
10
+ *
11
+ */
12
+ import Carousel from './src/index';
13
+ export default Carousel;
package/lib/index.js ADDED
@@ -0,0 +1,109 @@
1
+ function _extends() {
2
+ return _extends = Object.assign ? Object.assign.bind() : function(n) {
3
+ for (var e = 1; e < arguments.length; e++) {
4
+ var t = arguments[e];
5
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
6
+ }
7
+ return n;
8
+ }, _extends.apply(null, arguments);
9
+ }
10
+ import { defineComponent, $prefix, $props, $setup } from "@opentinyvue/vue-common";
11
+ import PcTemplate from "./pc.js";
12
+ import MobileFirstTemplate from "./mobile-first.js";
13
+ import "@opentinyvue/vue-theme/carousel/index.css";
14
+ var template = function template2(mode) {
15
+ var _process$env;
16
+ var tinyMode = typeof process === "object" ? (_process$env = process.env) == null ? void 0 : _process$env.TINY_MODE : null;
17
+ if ("pc" === (tinyMode || mode)) {
18
+ return PcTemplate;
19
+ }
20
+ if ("mobile-first" === (tinyMode || mode)) {
21
+ return MobileFirstTemplate;
22
+ }
23
+ return PcTemplate;
24
+ };
25
+ var $constants = {
26
+ CHILD_NAME: $prefix + "CarouselItem"
27
+ };
28
+ var Carousel = defineComponent({
29
+ name: $prefix + "Carousel",
30
+ componentName: "Carousel",
31
+ props: _extends({}, $props, {
32
+ _constants: {
33
+ type: Object,
34
+ default: function _default() {
35
+ return $constants;
36
+ }
37
+ },
38
+ initialIndex: {
39
+ type: Number,
40
+ default: 0
41
+ },
42
+ height: String,
43
+ trigger: {
44
+ type: String,
45
+ default: "hover"
46
+ },
47
+ autoplay: {
48
+ type: Boolean,
49
+ default: false
50
+ },
51
+ interval: {
52
+ type: Number,
53
+ default: 3e3
54
+ },
55
+ loop: {
56
+ type: Boolean,
57
+ default: true
58
+ },
59
+ disabled: {
60
+ type: Boolean,
61
+ default: false
62
+ },
63
+ indicatorPosition: String,
64
+ arrow: {
65
+ type: String,
66
+ default: "hover"
67
+ },
68
+ type: {
69
+ type: String,
70
+ default: "horizontal",
71
+ validator: function validator(value) {
72
+ return Boolean(!value || ~["card", "vertical", "horizontal"].indexOf(value));
73
+ }
74
+ },
75
+ showTitle: {
76
+ type: Boolean,
77
+ default: false
78
+ },
79
+ aspectRatio: {
80
+ type: String,
81
+ default: "16:2"
82
+ },
83
+ indicatorStyle: {
84
+ type: String,
85
+ default: "light",
86
+ validator: function validator2(value) {
87
+ return Boolean(!value || ~["light", "dark"].indexOf(value));
88
+ }
89
+ },
90
+ swipeable: Boolean,
91
+ lite: Boolean,
92
+ beforeSwipe: Function
93
+ }),
94
+ setup: function setup(props, context) {
95
+ return $setup({
96
+ props,
97
+ context,
98
+ template
99
+ });
100
+ }
101
+ });
102
+ var version = "2.21.0";
103
+ Carousel.install = function(Vue) {
104
+ Vue.component(Carousel.name, Carousel);
105
+ };
106
+ Carousel.version = version;
107
+ export {
108
+ Carousel as default
109
+ };
@@ -0,0 +1,179 @@
1
+ import { renderless, api } from '@opentinyvue/vue-renderless/carousel/vue';
2
+ import { defineComponent, props, setup } from '@opentinyvue/vue-common';
3
+ import { IconChevronLeft, IconChevronRight, IconChevronUp, IconChevronDown } from '@opentinyvue/vue-icon';
4
+
5
+ function normalizeComponent(scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
6
+ var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
7
+ if (render) {
8
+ options.render = render;
9
+ options.staticRenderFns = staticRenderFns;
10
+ options._compiled = true;
11
+ }
12
+ var hook;
13
+ if (injectStyles) {
14
+ hook = injectStyles;
15
+ }
16
+ if (hook) {
17
+ if (options.functional) {
18
+ options._injectStyles = hook;
19
+ var originalRender = options.render;
20
+ options.render = function renderWithStyleInjection(h, context) {
21
+ hook.call(context);
22
+ return originalRender(h, context);
23
+ };
24
+ } else {
25
+ var existing = options.beforeCreate;
26
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
27
+ }
28
+ }
29
+ return {
30
+ exports: scriptExports,
31
+ options
32
+ };
33
+ }
34
+
35
+ var __vue2_script = defineComponent({
36
+ emits: ["change", "complete"],
37
+ props: [].concat(props, ["initialIndex", "height", "trigger", "autoplay", "interval", "indicatorPosition", "indicatorStyle", "arrow", "type", "showTitle", "loop", "aspectRatio", "swipeable", "lite", "beforeSwipe"]),
38
+ setup: function setup$1(props2, context) {
39
+ return setup({
40
+ props: props2,
41
+ context,
42
+ renderless,
43
+ api
44
+ });
45
+ },
46
+ components: {
47
+ IconChevronLeft: IconChevronLeft(),
48
+ IconChevronRight: IconChevronRight(),
49
+ IconChevronUp: IconChevronUp(),
50
+ IconChevronDown: IconChevronDown()
51
+ }
52
+ });
53
+ var render = function render2() {
54
+ var _vm = this;
55
+ var _h = _vm.$createElement;
56
+ var _c = _vm._self._c || _h;
57
+ return _c("div", {
58
+ staticClass: "relative overflow-hidden rounded",
59
+ attrs: {
60
+ "data-tag": "tiny-carousel"
61
+ },
62
+ on: {
63
+ "mouseenter": function mouseenter($event) {
64
+ $event.stopPropagation();
65
+ return _vm.handleMouseEnter.apply(null, arguments);
66
+ },
67
+ "mouseleave": function mouseleave($event) {
68
+ $event.stopPropagation();
69
+ return _vm.handleMouseLeave.apply(null, arguments);
70
+ }
71
+ }
72
+ }, [_c("div", {
73
+ ref: "carousel",
74
+ staticClass: "relative overflow-hidden rounded",
75
+ style: _vm.state.style,
76
+ attrs: {
77
+ "data-tag": "tiny-carousel-block"
78
+ },
79
+ on: {
80
+ "touchstart": _vm.touchstart,
81
+ "touchmove": _vm.touchmove,
82
+ "touchend": _vm.touchend
83
+ }
84
+ }, [_vm.state.hasButtons ? _c("button", {
85
+ directives: [{
86
+ name: "show",
87
+ rawName: "v-show",
88
+ value: (_vm.arrow === "always" || _vm.state.hover) && (_vm.loop || _vm.state.activeIndex > 0),
89
+ expression: "(arrow === 'always' || state.hover) && (loop || state.activeIndex > 0)"
90
+ }],
91
+ staticClass: "absolute group border-none outline-0 p-0 m-0 h-8 w-8 cursor-pointer z-[3] rounded-full bg-color-bg-3 active:bg-color-bg-7 text-color-text-inverse text-center text-xs flex items-center justify-center hover:bg-color-bg-7",
92
+ class: [_vm.type === "vertical" ? "top-4 left-1/2" : "left-4 top-1/2 -translate-y-4"],
93
+ attrs: {
94
+ "type": "button"
95
+ },
96
+ on: {
97
+ "mouseenter": function mouseenter($event) {
98
+ return _vm.handleButtonEnter("left");
99
+ },
100
+ "mouseleave": _vm.handleButtonLeave,
101
+ "click": function click($event) {
102
+ $event.stopPropagation();
103
+ return _vm.throttledArrowClick(_vm.state.activeIndex - 1);
104
+ }
105
+ }
106
+ }, [_c(_vm.type === "vertical" ? "icon-chevron-up" : "icon-chevron-left", {
107
+ tag: "component",
108
+ staticClass: "w-4.5 h-4.5 opacity-50 fill-color-icon-primary group-active:fill-color-bg-2 group-hover:fill-color-bg-1"
109
+ })], 1) : _vm._e(), _vm.state.hasButtons ? _c("button", {
110
+ directives: [{
111
+ name: "show",
112
+ rawName: "v-show",
113
+ value: (_vm.arrow === "always" || _vm.state.hover) && (_vm.loop || _vm.state.activeIndex < _vm.state.items.length - 1),
114
+ expression: "(arrow === 'always' || state.hover) && (loop || state.activeIndex < state.items.length - 1)"
115
+ }],
116
+ staticClass: "absolute group border-none outline-0 p-0 m-0 h-8 w-8 cursor-pointer z-[3] rounded-full bg-color-bg-3 active:bg-color-bg-7 text-color-text-inverse text-center text-xs flex items-center justify-center hover:bg-color-bg-7",
117
+ class: [_vm.type === "vertical" ? "top-auto left-1/2 bottom-4" : "right-4 top-1/2 -translate-y-4"],
118
+ attrs: {
119
+ "type": "button"
120
+ },
121
+ on: {
122
+ "mouseenter": function mouseenter($event) {
123
+ return _vm.handleButtonEnter("right");
124
+ },
125
+ "mouseleave": _vm.handleButtonLeave,
126
+ "click": function click($event) {
127
+ $event.stopPropagation();
128
+ return _vm.throttledArrowClick(_vm.state.activeIndex + 1);
129
+ }
130
+ }
131
+ }, [_c(_vm.type === "vertical" ? "icon-chevron-down" : "icon-chevron-right", {
132
+ tag: "component",
133
+ staticClass: "w-4.5 h-4.5 opacity-50 fill-color-icon-primary group-active:fill-color-bg-2 group-hover:fill-color-bg-1"
134
+ })], 1) : _vm._e(), _vm._t("default")], 2), _vm.state.hasIndicators ? _c("ul", {
135
+ class: ["list-none m-0 py-0 px-1 z-[2] flex justify-center items-center", _vm.type === "vertical" && _vm.indicatorPosition !== "outside" ? "flex-col left-4 bottom-0 transform-none w-1 h-full py-1 px-0" : "w-full h-1 left-0 bottom-4", _vm.indicatorPosition === "outside" ? "static mt-2" : "absolute", _vm.state.hasLabel ? "left-0 right-0 text-center transform-none" : "", _vm.showTitle ? "left-auto right-3 bottom-1 transform-none bg-transparent" : ""],
136
+ attrs: {
137
+ "data-tag": "tiny-carousel-body"
138
+ }
139
+ }, _vm._l(_vm.state.items, function(item, index) {
140
+ return _c("li", {
141
+ key: index,
142
+ class: ["group cursor-pointer", _vm.type === "vertical" ? "block h-auto mb-1.5 mx-0 p-0 first:pl-0 last:pr-0" : "inline-block h-1 p-0 my-0 mr-1.5", _vm.state.hasLabel ? "py-1.5 px-1" : ""],
143
+ attrs: {
144
+ "data-tag": "tiny-carousel-list"
145
+ },
146
+ on: {
147
+ "mouseenter": function mouseenter($event) {
148
+ return _vm.throttledIndicatorHover(index);
149
+ },
150
+ "click": function click($event) {
151
+ $event.stopPropagation();
152
+ return _vm.handleIndicatorClick(index);
153
+ }
154
+ }
155
+ }, [_c("button", {
156
+ class: _vm.m(["block border-none outline-0 p-0 m-0 cursor-pointer rounded-sm", _vm.indicatorPosition === "outside" || _vm.indicatorStyle === "light" ? "bg-color-bg-3 hover:bg-color-brand" : "bg-color-bg-6 hover:bg-color-bg-5", _vm.state.hasLabel ? "py-0.5 px-4.5 text-xs" : "", _vm.type === "vertical" ? "h-1 w-1" : "w-1 h-1", index === _vm.state.activeIndex ? _vm.type === "vertical" ? "h-4 w-1" : "w-4 h-1" : "", index === _vm.state.activeIndex ? _vm.indicatorPosition === "outside" || _vm.indicatorStyle === "light" ? "bg-color-brand" : "bg-color-bg-1" : ""]),
157
+ attrs: {
158
+ "type": "button"
159
+ }
160
+ }, [_vm.state.hasLabel ? _c("span", {
161
+ attrs: {
162
+ "data-tag": "tiny-carousel-label"
163
+ }
164
+ }, [_vm._v(_vm._s(item.label))]) : _vm._e()])]);
165
+ }), 0) : _vm._e()]);
166
+ };
167
+ var staticRenderFns = [];
168
+ var __cssModules = {};
169
+ var __component__ = /* @__PURE__ */ normalizeComponent(__vue2_script, render, staticRenderFns, false, __vue2_injectStyles);
170
+ function __vue2_injectStyles(context) {
171
+ for (var o in __cssModules) {
172
+ this[o] = __cssModules[o];
173
+ }
174
+ }
175
+ var mobileFirst = /* @__PURE__ */ function() {
176
+ return __component__.exports;
177
+ }();
178
+
179
+ export { mobileFirst as default };
package/lib/pc.js ADDED
@@ -0,0 +1,180 @@
1
+ import { renderless, api } from '@opentinyvue/vue-renderless/carousel/vue';
2
+ import { defineComponent, props, setup } from '@opentinyvue/vue-common';
3
+ import { iconChevronLeft, iconChevronRight, iconChevronUp, iconChevronDown } from '@opentinyvue/vue-icon';
4
+ import '@opentinyvue/vue-theme/carousel/index.css';
5
+
6
+ function normalizeComponent(scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
7
+ var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
8
+ if (render) {
9
+ options.render = render;
10
+ options.staticRenderFns = staticRenderFns;
11
+ options._compiled = true;
12
+ }
13
+ var hook;
14
+ if (injectStyles) {
15
+ hook = injectStyles;
16
+ }
17
+ if (hook) {
18
+ if (options.functional) {
19
+ options._injectStyles = hook;
20
+ var originalRender = options.render;
21
+ options.render = function renderWithStyleInjection(h, context) {
22
+ hook.call(context);
23
+ return originalRender(h, context);
24
+ };
25
+ } else {
26
+ var existing = options.beforeCreate;
27
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
28
+ }
29
+ }
30
+ return {
31
+ exports: scriptExports,
32
+ options
33
+ };
34
+ }
35
+
36
+ var __vue2_script = defineComponent({
37
+ emits: ["change", "complete"],
38
+ props: [].concat(props, ["initialIndex", "height", "trigger", "autoplay", "interval", "indicatorPosition", "arrow", "type", "showTitle", "loop", "disabled", "swipeable", "lite", "beforeSwipe"]),
39
+ setup: function setup$1(props2, context) {
40
+ return setup({
41
+ props: props2,
42
+ context,
43
+ renderless,
44
+ api
45
+ });
46
+ },
47
+ components: {
48
+ IconChevronLeft: iconChevronLeft(),
49
+ IconChevronRight: iconChevronRight(),
50
+ IconChevronUp: iconChevronUp(),
51
+ IconChevronDown: iconChevronDown()
52
+ }
53
+ });
54
+ var render = function render2() {
55
+ var _vm = this;
56
+ var _h = _vm.$createElement;
57
+ var _c = _vm._self._c || _h;
58
+ return _c("div", {
59
+ staticClass: "tiny-carousel",
60
+ class: {
61
+ "tiny-carousel--card": _vm.type === "card"
62
+ },
63
+ on: {
64
+ "mouseenter": function mouseenter($event) {
65
+ $event.stopPropagation();
66
+ return _vm.handleMouseEnter.apply(null, arguments);
67
+ },
68
+ "mouseleave": function mouseleave($event) {
69
+ $event.stopPropagation();
70
+ return _vm.handleMouseLeave.apply(null, arguments);
71
+ }
72
+ }
73
+ }, [_c("div", {
74
+ staticClass: "tiny-carousel__container",
75
+ style: {
76
+ height: _vm.height
77
+ }
78
+ }, [_c("transition", {
79
+ attrs: {
80
+ "name": _vm.type === "vertical" ? "tiny-transition-carousel-arrow-top" : "tiny-transition-carousel-arrow-left"
81
+ }
82
+ }, [_vm.state.hasButtons ? _c("button", {
83
+ directives: [{
84
+ name: "show",
85
+ rawName: "v-show",
86
+ value: (_vm.arrow === "always" || _vm.state.hover) && (_vm.loop || _vm.state.activeIndex > 0),
87
+ expression: "(arrow === 'always' || state.hover) && (loop || state.activeIndex > 0)"
88
+ }],
89
+ class: ["tiny-carousel__arrow", _vm.type === "vertical" ? "tiny-carousel__arrow-top" : "tiny-carousel__arrow-left", _vm.disabled && _vm.state.activeIndex === 0 ? "tiny-carousel__arrow-disabled" : ""],
90
+ attrs: {
91
+ "type": "button",
92
+ "disabled": _vm.loop && _vm.disabled && _vm.state.activeIndex === 0
93
+ },
94
+ on: {
95
+ "mouseenter": function mouseenter($event) {
96
+ return _vm.handleButtonEnter("left");
97
+ },
98
+ "mouseleave": _vm.handleButtonLeave,
99
+ "click": function click($event) {
100
+ $event.stopPropagation();
101
+ return _vm.throttledArrowClick(_vm.state.activeIndex - 1);
102
+ }
103
+ }
104
+ }, [_c(_vm.type === "vertical" ? "icon-chevron-up" : "icon-chevron-left", {
105
+ tag: "component",
106
+ staticClass: "tiny-svg-size"
107
+ })], 1) : _vm._e()]), _c("transition", {
108
+ attrs: {
109
+ "name": _vm.type === "vertical" ? "tiny-transition-carousel-arrow-bottom" : "tiny-transition-carousel-arrow-right"
110
+ }
111
+ }, [_vm.state.hasButtons ? _c("button", {
112
+ directives: [{
113
+ name: "show",
114
+ rawName: "v-show",
115
+ value: (_vm.arrow === "always" || _vm.state.hover) && (_vm.loop || _vm.state.activeIndex < _vm.state.items.length - 1),
116
+ expression: "(arrow === 'always' || state.hover) && (loop || state.activeIndex < state.items.length - 1)"
117
+ }],
118
+ class: ["tiny-carousel__arrow", _vm.type === "vertical" ? "tiny-carousel__arrow-bottom" : "tiny-carousel__arrow-right", _vm.disabled && _vm.state.activeIndex === _vm.state.items.length - 1 ? "tiny-carousel__arrow-disabled" : ""],
119
+ attrs: {
120
+ "type": "button",
121
+ "disabled": _vm.loop && _vm.disabled && _vm.state.activeIndex === _vm.state.items.length - 1
122
+ },
123
+ on: {
124
+ "mouseenter": function mouseenter($event) {
125
+ return _vm.handleButtonEnter("right");
126
+ },
127
+ "mouseleave": _vm.handleButtonLeave,
128
+ "click": function click($event) {
129
+ $event.stopPropagation();
130
+ return _vm.throttledArrowClick(_vm.state.activeIndex + 1);
131
+ }
132
+ }
133
+ }, [_c(_vm.type === "vertical" ? "icon-chevron-down" : "icon-chevron-right", {
134
+ tag: "component",
135
+ staticClass: "tiny-svg-size"
136
+ })], 1) : _vm._e()]), _vm._t("default")], 2), _vm.state.hasIndicators ? _c("ul", {
137
+ staticClass: "tiny-carousel__indicators",
138
+ class: {
139
+ "tiny-carousel__indicators-labels": _vm.state.hasLabel,
140
+ "tiny-carousel__indicators-title": _vm.showTitle,
141
+ "tiny-carousel__indicators-vertical": _vm.type === "vertical",
142
+ "tiny-carousel__indicators-outside": _vm.indicatorPosition === "outside" || _vm.type === "card"
143
+ }
144
+ }, _vm._l(_vm.state.items, function(item, index) {
145
+ return _c("li", {
146
+ key: index,
147
+ staticClass: "tiny-carousel__indicator",
148
+ class: {
149
+ "is-active": index === _vm.state.activeIndex
150
+ },
151
+ on: {
152
+ "mouseenter": function mouseenter($event) {
153
+ return _vm.throttledIndicatorHover(index);
154
+ },
155
+ "click": function click($event) {
156
+ $event.stopPropagation();
157
+ return _vm.handleIndicatorClick(index);
158
+ }
159
+ }
160
+ }, [_c("button", {
161
+ staticClass: "tiny-carousel__button",
162
+ attrs: {
163
+ "type": "button"
164
+ }
165
+ }, [_vm.state.hasLabel ? _c("span", [_vm._v(_vm._s(item.label))]) : _vm._e()])]);
166
+ }), 0) : _vm._e()]);
167
+ };
168
+ var staticRenderFns = [];
169
+ var __cssModules = {};
170
+ var __component__ = /* @__PURE__ */ normalizeComponent(__vue2_script, render, staticRenderFns, false, __vue2_injectStyles);
171
+ function __vue2_injectStyles(context) {
172
+ for (var o in __cssModules) {
173
+ this[o] = __cssModules[o];
174
+ }
175
+ }
176
+ var pc = /* @__PURE__ */ function() {
177
+ return __component__.exports;
178
+ }();
179
+
180
+ export { pc as default };
package/package.json ADDED
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "@opentinyvue/vue-carousel",
3
+ "version": "2.21.0",
4
+ "description": "",
5
+ "main": "./lib/index.js",
6
+ "module": "./lib/index.js",
7
+ "sideEffects": false,
8
+ "type": "module",
9
+ "dependencies": {
10
+ "@opentinyvue/vue-common": "~2.21.0",
11
+ "@opentinyvue/vue-icon": "~2.21.0",
12
+ "@opentinyvue/vue-renderless": "~3.21.0",
13
+ "@opentinyvue/vue-theme": "~3.21.0"
14
+ },
15
+ "license": "MIT",
16
+ "types": "index.d.ts",
17
+ "scripts": {
18
+ "build": "pnpm -w build:ui $npm_package_name",
19
+ "//postversion": "pnpm build"
20
+ }
21
+ }
package/src/index.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ declare const _default: any;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: any;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: any;
2
+ export default _default;