@solar-taro/ui-sun 1.6.5 → 2.0.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.
Files changed (103) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/accordion/index.vue.d.ts +22 -16
  3. package/chip/index.vue.d.ts +15 -36
  4. package/circular-progress/index.vue.d.ts +4 -30
  5. package/fab/fab-group.vue.d.ts +9 -3
  6. package/fab/fab.vue.d.ts +9 -3
  7. package/fab/index.scss +11 -3
  8. package/icon/index.scss +4 -3
  9. package/icon/index.vue.d.ts +3 -22
  10. package/index.d.ts +2 -0
  11. package/index.js +24 -20
  12. package/index10.js +24 -33
  13. package/index11.js +33 -75
  14. package/index12.js +75 -19
  15. package/index13.js +19 -49
  16. package/index14.js +46 -141
  17. package/index15.js +142 -27
  18. package/index16.js +29 -21
  19. package/index17.js +18 -21
  20. package/index18.js +42 -11
  21. package/index19.js +21 -26
  22. package/index20.js +11 -118
  23. package/index21.js +33 -10
  24. package/index22.js +123 -10
  25. package/index23.js +12 -8
  26. package/index24.js +10 -2
  27. package/index25.js +10 -2
  28. package/index26.js +1 -1
  29. package/index27.js +1 -1
  30. package/index28.js +1 -1
  31. package/index29.js +7 -2
  32. package/index30.js +2 -7
  33. package/index31.js +1 -1
  34. package/index33.js +1 -1
  35. package/index34.js +1 -1
  36. package/index35.js +1 -1
  37. package/index36.js +1 -1
  38. package/index37.js +1 -1
  39. package/index38.js +1 -1
  40. package/index39.js +1 -1
  41. package/index40.js +1 -1
  42. package/index41.js +1 -1
  43. package/index42.js +1 -1
  44. package/index43.js +2 -526
  45. package/index44.js +2 -3
  46. package/index45.js +2 -66
  47. package/index46.js +2 -12
  48. package/index47.js +3 -25
  49. package/index48.js +65 -13
  50. package/index49.js +12 -5
  51. package/index50.js +25 -26
  52. package/index51.js +14 -2
  53. package/index52.js +4 -505
  54. package/index53.js +524 -77
  55. package/index54.js +24 -68
  56. package/index55.js +2 -69
  57. package/index56.js +331 -368
  58. package/index57.js +79 -2
  59. package/index58.js +70 -2
  60. package/index59.js +69 -2
  61. package/index60.js +542 -3
  62. package/index62.js +2 -4
  63. package/index63.js +2 -2
  64. package/index64.js +4 -2
  65. package/index66.js +4 -48
  66. package/index67.js +2 -82
  67. package/index69.js +2 -2
  68. package/index7.js +7 -9
  69. package/index70.js +2 -2
  70. package/index71.js +48 -2
  71. package/index72.js +84 -0
  72. package/index73.js +4 -0
  73. package/index74.js +4 -0
  74. package/index75.js +4 -0
  75. package/index8.js +29 -17
  76. package/index9.js +19 -25
  77. package/item/index.d.ts +1 -0
  78. package/item/index.scss +40 -0
  79. package/item/index.vue.d.ts +26 -0
  80. package/lazy-render/index.vue.d.ts +13 -29
  81. package/list-header/index.scss +1 -1
  82. package/list-header/index.vue.d.ts +9 -3
  83. package/navbar/index.vue.d.ts +10 -4
  84. package/package.json +2 -2
  85. package/plugin.d.ts +0 -1
  86. package/popover/index.vue.d.ts +24 -41
  87. package/qrcode/index.vue.d.ts +6 -31
  88. package/segment/injection.d.ts +0 -1
  89. package/segment/segment-btn.vue.d.ts +12 -16
  90. package/segment/segment.vue.d.ts +16 -20
  91. package/slider-captcha/index.vue.d.ts +7 -36
  92. package/spinner/index.scss +1 -0
  93. package/spinner/index.vue.d.ts +14 -33
  94. package/sudoku/sudoku-item.vue.d.ts +9 -3
  95. package/sudoku/sudoku.vue.d.ts +9 -3
  96. package/tabbar/index.d.ts +1 -0
  97. package/tabbar/index.scss +74 -0
  98. package/tabbar/index.vue.d.ts +38 -0
  99. package/table/_table.scss +1 -1
  100. package/table/table-cell.vue.d.ts +13 -24
  101. package/table/table-row.vue.d.ts +12 -17
  102. package/table/table.vue.d.ts +17 -43
  103. package/virtual-scroll/index.vue.d.ts +35 -74
package/index67.js CHANGED
@@ -1,84 +1,4 @@
1
- import { commonjsGlobal as B } from "./index50.js";
2
- import { __module as s } from "./index71.js";
3
- import { __require as K } from "./index52.js";
4
- var f;
5
- function y() {
6
- return f ? s.exports : (f = 1, function(u, z) {
7
- (function(n, i) {
8
- u.exports = i(K());
9
- })(B, function(n) {
10
- (function() {
11
- var i = n, l = i.lib, v = l.Base, _ = i.enc, m = _.Utf8, p = i.algo;
12
- p.HMAC = v.extend({
13
- /**
14
- * Initializes a newly created HMAC.
15
- *
16
- * @param {Hasher} hasher The hash algorithm to use.
17
- * @param {WordArray|string} key The secret key.
18
- *
19
- * @example
20
- *
21
- * var hmacHasher = CryptoJS.algo.HMAC.create(CryptoJS.algo.SHA256, key);
22
- */
23
- init: function(e, r) {
24
- e = this._hasher = new e.init(), typeof r == "string" && (r = m.parse(r));
25
- var t = e.blockSize, a = t * 4;
26
- r.sigBytes > a && (r = e.finalize(r)), r.clamp();
27
- for (var c = this._oKey = r.clone(), h = this._iKey = r.clone(), d = c.words, x = h.words, o = 0; o < t; o++)
28
- d[o] ^= 1549556828, x[o] ^= 909522486;
29
- c.sigBytes = h.sigBytes = a, this.reset();
30
- },
31
- /**
32
- * Resets this HMAC to its initial state.
33
- *
34
- * @example
35
- *
36
- * hmacHasher.reset();
37
- */
38
- reset: function() {
39
- var e = this._hasher;
40
- e.reset(), e.update(this._iKey);
41
- },
42
- /**
43
- * Updates this HMAC with a message.
44
- *
45
- * @param {WordArray|string} messageUpdate The message to append.
46
- *
47
- * @return {HMAC} This HMAC instance.
48
- *
49
- * @example
50
- *
51
- * hmacHasher.update('message');
52
- * hmacHasher.update(wordArray);
53
- */
54
- update: function(e) {
55
- return this._hasher.update(e), this;
56
- },
57
- /**
58
- * Finalizes the HMAC computation.
59
- * Note that the finalize operation is effectively a destructive, read-once operation.
60
- *
61
- * @param {WordArray|string} messageUpdate (Optional) A final message update.
62
- *
63
- * @return {WordArray} The HMAC.
64
- *
65
- * @example
66
- *
67
- * var hmac = hmacHasher.finalize();
68
- * var hmac = hmacHasher.finalize('message');
69
- * var hmac = hmacHasher.finalize(wordArray);
70
- */
71
- finalize: function(e) {
72
- var r = this._hasher, t = r.finalize(e);
73
- r.reset();
74
- var a = r.finalize(this._oKey.clone().concat(t));
75
- return a;
76
- }
77
- });
78
- })();
79
- });
80
- }(s), s.exports);
81
- }
1
+ var e = { exports: {} };
82
2
  export {
83
- y as __require
3
+ e as __module
84
4
  };
package/index69.js CHANGED
@@ -1,4 +1,4 @@
1
- const e = {};
1
+ var e = { exports: {} };
2
2
  export {
3
- e as default
3
+ e as __module
4
4
  };
package/index7.js CHANGED
@@ -1,18 +1,16 @@
1
- import { defineComponent as t, computed as c, renderSlot as l, normalizeClass as a, openBlock as r, createElementBlock as i } from "vue";
2
- const m = l, p = a, _ = r, u = i, k = /* @__PURE__ */ t({
1
+ import { defineComponent as c, computed as s, normalizeClass as t, openBlock as a, createElementBlock as l } from "vue";
2
+ const r = t, i = a, m = l, d = /* @__PURE__ */ c({
3
3
  __name: "index",
4
4
  props: {
5
5
  name: {}
6
6
  },
7
7
  setup(e) {
8
- const n = e, o = c(() => `ionicon-${n.name}`);
9
- return (s, d) => (_(), u("view", {
10
- class: p(["sun-icon ionicon", o.value])
11
- }, [
12
- m(s.$slots, "default")
13
- ], 2));
8
+ const n = e, o = s(() => `ionicon-${n.name}`);
9
+ return (p, _) => (i(), m("view", {
10
+ class: r(["sun-icon ionicon", o.value])
11
+ }, null, 2));
14
12
  }
15
13
  });
16
14
  export {
17
- k as default
15
+ d as default
18
16
  };
package/index70.js CHANGED
@@ -1,4 +1,4 @@
1
- var a = { exports: {} };
1
+ var e = { exports: {} };
2
2
  export {
3
- a as __module
3
+ e as __module
4
4
  };
package/index71.js CHANGED
@@ -1,4 +1,50 @@
1
- var a = { exports: {} };
1
+ import { commonjsGlobal as B } from "./index54.js";
2
+ import { __module as d } from "./index74.js";
3
+ import { __require as S } from "./index56.js";
4
+ var m;
5
+ function w() {
6
+ return m ? d.exports : (m = 1, function(p, g) {
7
+ (function(v, c) {
8
+ p.exports = c(S());
9
+ })(B, function(v) {
10
+ return function() {
11
+ var c = v, u = c.lib, b = u.WordArray, f = u.Hasher, A = c.algo, i = [], x = A.SHA1 = f.extend({
12
+ _doReset: function() {
13
+ this._hash = new b.init([
14
+ 1732584193,
15
+ 4023233417,
16
+ 2562383102,
17
+ 271733878,
18
+ 3285377520
19
+ ]);
20
+ },
21
+ _doProcessBlock: function(s, h) {
22
+ for (var r = this._hash.words, a = r[0], o = r[1], t = r[2], n = r[3], _ = r[4], e = 0; e < 80; e++) {
23
+ if (e < 16)
24
+ i[e] = s[h + e] | 0;
25
+ else {
26
+ var H = i[e - 3] ^ i[e - 8] ^ i[e - 14] ^ i[e - 16];
27
+ i[e] = H << 1 | H >>> 31;
28
+ }
29
+ var l = (a << 5 | a >>> 27) + _ + i[e];
30
+ e < 20 ? l += (o & t | ~o & n) + 1518500249 : e < 40 ? l += (o ^ t ^ n) + 1859775393 : e < 60 ? l += (o & t | o & n | t & n) - 1894007588 : l += (o ^ t ^ n) - 899497514, _ = n, n = t, t = o << 30 | o >>> 2, o = a, a = l;
31
+ }
32
+ r[0] = r[0] + a | 0, r[1] = r[1] + o | 0, r[2] = r[2] + t | 0, r[3] = r[3] + n | 0, r[4] = r[4] + _ | 0;
33
+ },
34
+ _doFinalize: function() {
35
+ var s = this._data, h = s.words, r = this._nDataBytes * 8, a = s.sigBytes * 8;
36
+ return h[a >>> 5] |= 128 << 24 - a % 32, h[(a + 64 >>> 9 << 4) + 14] = Math.floor(r / 4294967296), h[(a + 64 >>> 9 << 4) + 15] = r, s.sigBytes = h.length * 4, this._process(), this._hash;
37
+ },
38
+ clone: function() {
39
+ var s = f.clone.call(this);
40
+ return s._hash = this._hash.clone(), s;
41
+ }
42
+ });
43
+ c.SHA1 = f._createHelper(x), c.HmacSHA1 = f._createHmacHelper(x);
44
+ }(), v.SHA1;
45
+ });
46
+ }(d), d.exports);
47
+ }
2
48
  export {
3
- a as __module
49
+ w as __require
4
50
  };
package/index72.js ADDED
@@ -0,0 +1,84 @@
1
+ import { commonjsGlobal as B } from "./index54.js";
2
+ import { __module as s } from "./index75.js";
3
+ import { __require as K } from "./index56.js";
4
+ var f;
5
+ function y() {
6
+ return f ? s.exports : (f = 1, function(u, z) {
7
+ (function(n, i) {
8
+ u.exports = i(K());
9
+ })(B, function(n) {
10
+ (function() {
11
+ var i = n, l = i.lib, v = l.Base, _ = i.enc, m = _.Utf8, p = i.algo;
12
+ p.HMAC = v.extend({
13
+ /**
14
+ * Initializes a newly created HMAC.
15
+ *
16
+ * @param {Hasher} hasher The hash algorithm to use.
17
+ * @param {WordArray|string} key The secret key.
18
+ *
19
+ * @example
20
+ *
21
+ * var hmacHasher = CryptoJS.algo.HMAC.create(CryptoJS.algo.SHA256, key);
22
+ */
23
+ init: function(e, r) {
24
+ e = this._hasher = new e.init(), typeof r == "string" && (r = m.parse(r));
25
+ var t = e.blockSize, a = t * 4;
26
+ r.sigBytes > a && (r = e.finalize(r)), r.clamp();
27
+ for (var c = this._oKey = r.clone(), h = this._iKey = r.clone(), d = c.words, x = h.words, o = 0; o < t; o++)
28
+ d[o] ^= 1549556828, x[o] ^= 909522486;
29
+ c.sigBytes = h.sigBytes = a, this.reset();
30
+ },
31
+ /**
32
+ * Resets this HMAC to its initial state.
33
+ *
34
+ * @example
35
+ *
36
+ * hmacHasher.reset();
37
+ */
38
+ reset: function() {
39
+ var e = this._hasher;
40
+ e.reset(), e.update(this._iKey);
41
+ },
42
+ /**
43
+ * Updates this HMAC with a message.
44
+ *
45
+ * @param {WordArray|string} messageUpdate The message to append.
46
+ *
47
+ * @return {HMAC} This HMAC instance.
48
+ *
49
+ * @example
50
+ *
51
+ * hmacHasher.update('message');
52
+ * hmacHasher.update(wordArray);
53
+ */
54
+ update: function(e) {
55
+ return this._hasher.update(e), this;
56
+ },
57
+ /**
58
+ * Finalizes the HMAC computation.
59
+ * Note that the finalize operation is effectively a destructive, read-once operation.
60
+ *
61
+ * @param {WordArray|string} messageUpdate (Optional) A final message update.
62
+ *
63
+ * @return {WordArray} The HMAC.
64
+ *
65
+ * @example
66
+ *
67
+ * var hmac = hmacHasher.finalize();
68
+ * var hmac = hmacHasher.finalize('message');
69
+ * var hmac = hmacHasher.finalize(wordArray);
70
+ */
71
+ finalize: function(e) {
72
+ var r = this._hasher, t = r.finalize(e);
73
+ r.reset();
74
+ var a = r.finalize(this._oKey.clone().concat(t));
75
+ return a;
76
+ }
77
+ });
78
+ })();
79
+ });
80
+ }(s), s.exports);
81
+ }
82
+ export {
83
+ y as __require
84
+ };
package/index73.js ADDED
@@ -0,0 +1,4 @@
1
+ const e = {};
2
+ export {
3
+ e as default
4
+ };
package/index74.js ADDED
@@ -0,0 +1,4 @@
1
+ var a = { exports: {} };
2
+ export {
3
+ a as __module
4
+ };
package/index75.js ADDED
@@ -0,0 +1,4 @@
1
+ var a = { exports: {} };
2
+ export {
3
+ a as __module
4
+ };
package/index8.js CHANGED
@@ -1,24 +1,36 @@
1
- import { defineComponent as c, ref as d, onActivated as s, onDeactivated as i, renderSlot as l, createCommentVNode as f } from "vue";
2
- const m = l, u = f, v = /* @__PURE__ */ c({
1
+ import { defineComponent as r, computed as c, renderSlot as i, createElementVNode as m, unref as d, openBlock as u, createBlock as p, createCommentVNode as _, normalizeClass as f, createElementBlock as k } from "vue";
2
+ import B from "./index7.js";
3
+ const n = i, o = m, v = d, s = u, h = p, w = _, C = f, y = k, E = { class: "sun-item-inner" }, N = { class: "sun-item-content-wrapper" }, z = /* @__PURE__ */ r({
3
4
  __name: "index",
4
5
  props: {
5
- hook: { default: "activated" }
6
+ detail: { type: Boolean },
7
+ lines: { type: Boolean, default: !0 },
8
+ clickable: { type: Boolean }
6
9
  },
7
- setup(a) {
8
- const n = a, e = d(!1);
9
- let t;
10
- function o() {
11
- t = requestAnimationFrame(() => {
12
- e.value = !0;
13
- });
14
- }
15
- return n.hook === "created" && o(), s(() => {
16
- o();
17
- }), i(() => {
18
- e.value = !1, t && cancelAnimationFrame(t);
19
- }), (r, p) => e.value ? m(r.$slots, "default", { key: 0 }) : u("", !0);
10
+ setup(l) {
11
+ const t = l, a = c(() => ({
12
+ "sun-item-lines-none": !t.lines,
13
+ "sun-item-clickable": t.detail || t.clickable
14
+ }));
15
+ return (e, V) => (s(), y("view", {
16
+ class: C(["sun-item", a.value]),
17
+ "hover-class": "hover"
18
+ }, [
19
+ n(e.$slots, "start"),
20
+ o("view", E, [
21
+ o("view", N, [
22
+ n(e.$slots, "default")
23
+ ]),
24
+ n(e.$slots, "end"),
25
+ e.detail ? (s(), h(v(B), {
26
+ key: 0,
27
+ class: "sun-item-detail-icon",
28
+ name: "chevron-forward"
29
+ })) : w("", !0)
30
+ ])
31
+ ], 2));
20
32
  }
21
33
  });
22
34
  export {
23
- v as default
35
+ z as default
24
36
  };
package/index9.js CHANGED
@@ -1,30 +1,24 @@
1
- import { defineComponent as i, renderSlot as d, createElementVNode as s, openBlock as c, createElementBlock as l } from "vue";
2
- import { withPixel as t } from "@solar-kit/core";
3
- import { getNavbarRect as p } from "@solar-taro/core";
4
- const a = d, o = s, g = c, m = l, v = { class: "sun-navbar-inner" }, b = { class: "sun-navbar-center" }, k = /* @__PURE__ */ i({
1
+ import { defineComponent as c, ref as d, onActivated as s, onDeactivated as i, renderSlot as l, createCommentVNode as f } from "vue";
2
+ const m = l, u = f, v = /* @__PURE__ */ c({
5
3
  __name: "index",
6
- setup(_) {
7
- const e = p(), r = {
8
- "--navbar-height": t(e.height),
9
- "--navbar-content-height": t(e.buttonHeight),
10
- "--navbar-padding-top": t(e.paddingTop),
11
- "--navbar-padding-bottom": t(e.paddingBottom),
12
- "--navbar-padding-left": t(e.paddingLeft),
13
- "--navbar-padding-right": t(e.paddingRight)
14
- };
15
- return (n, h) => (g(), m("view", {
16
- class: "sun-navbar",
17
- style: r
18
- }, [
19
- o("view", v, [
20
- a(n.$slots, "default"),
21
- o("view", b, [
22
- a(n.$slots, "center")
23
- ])
24
- ])
25
- ]));
4
+ props: {
5
+ hook: { default: "activated" }
6
+ },
7
+ setup(a) {
8
+ const n = a, e = d(!1);
9
+ let t;
10
+ function o() {
11
+ t = requestAnimationFrame(() => {
12
+ e.value = !0;
13
+ });
14
+ }
15
+ return n.hook === "created" && o(), s(() => {
16
+ o();
17
+ }), i(() => {
18
+ e.value = !1, t && cancelAnimationFrame(t);
19
+ }), (r, p) => e.value ? m(r.$slots, "default", { key: 0 }) : u("", !0);
26
20
  }
27
21
  });
28
22
  export {
29
- k as default
23
+ v as default
30
24
  };
@@ -0,0 +1 @@
1
+ export { default as SunItem } from './index.vue';
@@ -0,0 +1,40 @@
1
+ .sun-item {
2
+ --background: var(--color-white);
3
+ --background-hover: #f8fafc;
4
+ --border-color: #e2e8f0;
5
+ --arrow-color: #cbd5e1;
6
+ display: flex;
7
+ align-items: center;
8
+ gap: 12px;
9
+ padding: 0 16px;
10
+ background: var(--background);
11
+ transition: background-color ease-in-out 0.25s;
12
+
13
+ &-lines-none > &-inner {
14
+ border-bottom: none;
15
+ }
16
+
17
+ &-clickable.hover {
18
+ background: var(--background-hover);
19
+ }
20
+
21
+ &-inner {
22
+ display: flex;
23
+ flex: auto;
24
+ align-items: center;
25
+ min-height: 44px;
26
+ border-bottom: 0.5px solid var(--border-color);
27
+ }
28
+
29
+ &-content-wrapper {
30
+ flex: auto;
31
+ padding: 12px 0;
32
+ }
33
+
34
+ &-detail-icon {
35
+ font-size: 18px;
36
+ margin-left: 12px;
37
+ margin-inline-end: -6px;
38
+ color: var(--arrow-color);
39
+ }
40
+ }
@@ -0,0 +1,26 @@
1
+ type __VLS_Props = {
2
+ detail?: boolean;
3
+ lines?: boolean;
4
+ clickable?: boolean;
5
+ };
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: {
9
+ start?(_: {}): any;
10
+ default?(_: {}): any;
11
+ end?(_: {}): any;
12
+ };
13
+ refs: {};
14
+ rootEl: SVGViewElement;
15
+ };
16
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
18
+ lines: boolean;
19
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, SVGViewElement>;
20
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
21
+ export default _default;
22
+ type __VLS_WithTemplateSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };
@@ -1,36 +1,20 @@
1
+ type __VLS_Props = {
2
+ hook?: 'activated' | 'created';
3
+ };
1
4
  declare function __VLS_template(): {
2
- default?(_: {}): any;
5
+ attrs: Partial<{}>;
6
+ slots: {
7
+ default?(_: {}): any;
8
+ };
9
+ refs: {};
10
+ rootEl: any;
3
11
  };
4
- declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
5
- hook?: "activated" | "created";
6
- }>, {
7
- hook: string;
8
- }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
9
- hook?: "activated" | "created";
10
- }>, {
11
- hook: string;
12
- }>>> & Readonly<{}>, {
12
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
13
14
  hook: "activated" | "created";
14
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
15
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
15
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
16
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
16
17
  export default _default;
17
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
18
- type __VLS_TypePropsToRuntimeProps<T> = {
19
- [K in keyof T]-?: {} extends Pick<T, K> ? {
20
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
21
- } : {
22
- type: import('vue').PropType<T[K]>;
23
- required: true;
24
- };
25
- };
26
- type __VLS_WithDefaults<P, D> = {
27
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
28
- default: D[K];
29
- }> : P[K];
30
- };
31
- type __VLS_Prettify<T> = {
32
- [K in keyof T]: T[K];
33
- } & {};
34
18
  type __VLS_WithTemplateSlots<T, S> = T & {
35
19
  new (): {
36
20
  $slots: S;
@@ -1,5 +1,5 @@
1
1
  .sun-list-header {
2
2
  font-weight: bold;
3
3
  font-size: 20px;
4
- padding: 22px 16px 10px;
4
+ padding: 26px 16px 6px;
5
5
  }
@@ -1,8 +1,14 @@
1
1
  declare function __VLS_template(): {
2
- default?(_: {}): any;
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ default?(_: {}): any;
5
+ };
6
+ refs: {};
7
+ rootEl: SVGViewElement;
3
8
  };
4
- declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
5
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, SVGViewElement>;
11
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
6
12
  export default _default;
7
13
  type __VLS_WithTemplateSlots<T, S> = T & {
8
14
  new (): {
@@ -1,9 +1,15 @@
1
1
  declare function __VLS_template(): {
2
- default?(_: {}): any;
3
- center?(_: {}): any;
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ default?(_: {}): any;
5
+ center?(_: {}): any;
6
+ };
7
+ refs: {};
8
+ rootEl: SVGViewElement;
4
9
  };
5
- declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
6
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, SVGViewElement>;
12
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
7
13
  export default _default;
8
14
  type __VLS_WithTemplateSlots<T, S> = T & {
9
15
  new (): {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solar-taro/ui-sun",
3
- "version": "1.6.5",
3
+ "version": "2.0.0",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "module": "./index.js",
@@ -10,7 +10,7 @@
10
10
  "access": "public"
11
11
  },
12
12
  "peerDependencies": {
13
- "vue": "^3.0.0"
13
+ "vue": "^3.5.0"
14
14
  },
15
15
  "devDependencies": {
16
16
  "@vitejs/plugin-vue": "^5.0.0",
package/plugin.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { Plugin } from 'vue';
2
-
3
2
  /**
4
3
  * solar sun ui vue plugin
5
4
  */
@@ -1,51 +1,34 @@
1
1
  type PlacementX = 'left' | 'right' | 'start' | 'end' | 'center';
2
2
  type PlacementY = 'top' | 'bottom' | 'start' | 'end' | 'center';
3
- declare function __VLS_template(): {
4
- default?(_: {}): any;
5
- content?(_: {}): any;
3
+ type __VLS_Props = {
4
+ placement: [PlacementX, PlacementY];
5
+ offset?: string;
6
+ background?: string;
7
+ color?: string;
6
8
  };
7
- declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
8
- show: import('vue').PropType<boolean>;
9
- color: {
10
- type: import('vue').PropType<string>;
11
- default: string;
12
- };
13
- placement: {
14
- type: import('vue').PropType<[PlacementX, PlacementY]>;
15
- required: true;
16
- };
17
- offset: {
18
- type: import('vue').PropType<string>;
19
- default: string;
20
- };
21
- background: {
22
- type: import('vue').PropType<string>;
23
- default: string;
24
- };
25
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
26
- show: import('vue').PropType<boolean>;
27
- color: {
28
- type: import('vue').PropType<string>;
29
- default: string;
30
- };
31
- placement: {
32
- type: import('vue').PropType<[PlacementX, PlacementY]>;
33
- required: true;
34
- };
35
- offset: {
36
- type: import('vue').PropType<string>;
37
- default: string;
38
- };
39
- background: {
40
- type: import('vue').PropType<string>;
41
- default: string;
9
+ type __VLS_PublicProps = {
10
+ 'show'?: boolean;
11
+ } & __VLS_Props;
12
+ declare function __VLS_template(): {
13
+ attrs: Partial<{}>;
14
+ slots: {
15
+ default?(_: {}): any;
16
+ content?(_: {}): any;
42
17
  };
43
- }>> & Readonly<{}>, {
18
+ refs: {};
19
+ rootEl: SVGViewElement;
20
+ };
21
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
22
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
23
+ "update:show": (value: boolean) => any;
24
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
25
+ "onUpdate:show"?: ((value: boolean) => any) | undefined;
26
+ }>, {
44
27
  color: string;
45
28
  offset: string;
46
29
  background: string;
47
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
48
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
30
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, SVGViewElement>;
31
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
49
32
  export default _default;
50
33
  type __VLS_WithTemplateSlots<T, S> = T & {
51
34
  new (): {