@solar-taro/ui-sun 1.0.1 → 1.0.2

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/CHANGELOG.md ADDED
@@ -0,0 +1,3 @@
1
+ ## 1.0.1 (2025-01-22)
2
+
3
+ This was a version bump only for ui-sun to align it with other projects, there were no code changes.
package/chip/index.scss CHANGED
@@ -38,7 +38,7 @@
38
38
  border: 1px solid rgba(var(--color-rgb), 1);
39
39
  }
40
40
 
41
- &-light {
41
+ &-translucent {
42
42
  --color: rgba(var(--color-rgb), 1);
43
43
  --background: rgba(var(--color-rgb, 0, 0, 0), 0.12);
44
44
  }
@@ -2,21 +2,21 @@ declare function __VLS_template(): {
2
2
  default?(_: {}): any;
3
3
  };
4
4
  declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
5
- type?: "solid" | "light" | "outline";
5
+ type?: "solid" | "translucent" | "outline";
6
6
  size?: "small" | "default" | "large";
7
7
  color: "primary" | "success" | "danger" | "warning" | "info" | "dark" | "light" | "secondary";
8
8
  }>, {
9
9
  type: string;
10
10
  size: string;
11
11
  }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
12
- type?: "solid" | "light" | "outline";
12
+ type?: "solid" | "translucent" | "outline";
13
13
  size?: "small" | "default" | "large";
14
14
  color: "primary" | "success" | "danger" | "warning" | "info" | "dark" | "light" | "secondary";
15
15
  }>, {
16
16
  type: string;
17
17
  size: string;
18
18
  }>>> & Readonly<{}>, {
19
- type: "solid" | "light" | "outline";
19
+ type: "solid" | "translucent" | "outline";
20
20
  size: "small" | "default" | "large";
21
21
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
22
22
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
package/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as m, mergeModels as oe, useModel as re, renderSlot as c, createElementVNode as S, normalizeClass as E, openBlock as i, createElementBlock as d, computed as u, mergeProps as _, ref as x, onActivated as le, onDeactivated as ae, createCommentVNode as q, withModifiers as ue, normalizeStyle as G, inject as O, getCurrentInstance as Q, onUnmounted as ce, unref as U, shallowRef as ie, shallowReactive as de, provide as W, watch as pe, onMounted as J, renderList as Z, Fragment as ee } from "vue";
2
- import { withPixel as b } from "@solar-kit/core";
2
+ import { withPixel as g } from "@solar-kit/core";
3
3
  import { getNavbarRect as me, rpxToPx as ve, vibrator as fe } from "@solar-taro/core";
4
4
  import { createSelectorQuery as $e } from "@tarojs/taro";
5
- const Y = c, P = S, _e = E, he = i, ge = d, be = { class: "sun-accordion-content" }, ye = { class: "sun-accordion-content-inner" }, jt = /* @__PURE__ */ m({
5
+ const Y = c, P = S, _e = E, he = i, be = d, ge = { class: "sun-accordion-content" }, ye = { class: "sun-accordion-content-inner" }, jt = /* @__PURE__ */ m({
6
6
  __name: "index",
7
7
  props: /* @__PURE__ */ oe({
8
8
  disabled: { type: Boolean }
@@ -16,7 +16,7 @@ const Y = c, P = S, _e = E, he = i, ge = d, be = { class: "sun-accordion-content
16
16
  function t() {
17
17
  e.disabled || (s.value = !s.value);
18
18
  }
19
- return (o, r) => (he(), ge("view", {
19
+ return (o, r) => (he(), be("view", {
20
20
  class: _e(["sun-accordion", { "sun-accordion-expanded": s.value }])
21
21
  }, [
22
22
  P("view", {
@@ -25,7 +25,7 @@ const Y = c, P = S, _e = E, he = i, ge = d, be = { class: "sun-accordion-content
25
25
  }, [
26
26
  Y(o.$slots, "default")
27
27
  ], 32),
28
- P("view", be, [
28
+ P("view", ge, [
29
29
  P("view", ye, [
30
30
  Y(o.$slots, "content", { toggle: t })
31
31
  ])
@@ -35,7 +35,7 @@ const Y = c, P = S, _e = E, he = i, ge = d, be = { class: "sun-accordion-content
35
35
  }), Se = c, ke = E, we = i, Be = d, qt = /* @__PURE__ */ m({
36
36
  __name: "index",
37
37
  props: {
38
- type: { default: "light" },
38
+ type: { default: "translucent" },
39
39
  size: { default: "default" },
40
40
  color: {}
41
41
  },
@@ -102,12 +102,12 @@ const Qt = /* @__PURE__ */ te(Ve, [["render", Re]]), Fe = c, Le = q, Ut = /* @__
102
102
  __name: "index",
103
103
  setup(n) {
104
104
  const e = me(), s = {
105
- "--navbar-height": b(e.height),
106
- "--navbar-content-height": b(e.buttonHeight),
107
- "--navbar-padding-top": b(e.paddingTop),
108
- "--navbar-padding-bottom": b(e.paddingBottom),
109
- "--navbar-padding-left": b(e.paddingLeft),
110
- "--navbar-padding-right": b(e.paddingRight)
105
+ "--navbar-height": g(e.height),
106
+ "--navbar-content-height": g(e.buttonHeight),
107
+ "--navbar-padding-top": g(e.paddingTop),
108
+ "--navbar-padding-bottom": g(e.paddingBottom),
109
+ "--navbar-padding-left": g(e.paddingLeft),
110
+ "--navbar-padding-right": g(e.paddingRight)
111
111
  };
112
112
  return (t, o) => (Me(), Ae("view", {
113
113
  class: "sun-navbar",
@@ -283,7 +283,7 @@ function _t(n, e) {
283
283
  mt(n.$slots, "default")
284
284
  ], 16);
285
285
  }
286
- const sn = /* @__PURE__ */ te(pt, [["render", _t]]), ht = c, gt = _, bt = i, yt = d, on = /* @__PURE__ */ m({
286
+ const sn = /* @__PURE__ */ te(pt, [["render", _t]]), ht = c, bt = _, gt = i, yt = d, on = /* @__PURE__ */ m({
287
287
  __name: "sudoku",
288
288
  props: {
289
289
  size: String,
@@ -298,7 +298,7 @@ const sn = /* @__PURE__ */ te(pt, [["render", _t]]), ht = c, gt = _, bt = i, yt
298
298
  "sun-sudoku-md": e.count === 2 || e.count === 4,
299
299
  "sun-sudoku-lg": e.count === 3 || e.count > 4
300
300
  }));
301
- return (t, o) => (bt(), yt("view", gt(t.$attrs, {
301
+ return (t, o) => (gt(), yt("view", bt(t.$attrs, {
302
302
  class: ["sun-sudoku", s.value],
303
303
  style: { "--sudoku-width": n.size }
304
304
  }), [
@@ -395,10 +395,10 @@ const un = /* @__PURE__ */ m({
395
395
  transform: `translate${f.value ? "Y" : "X"}(${y.value}px)`,
396
396
  "white-space": f.value ? "normal" : "nowrap"
397
397
  })), h = u(() => typeof t.itemSize == "number" ? t.itemSize : t.itemSize.endsWith("rpx") ? ve(parseFloat(t.itemSize)) : parseFloat(t.itemSize)), a = u(() => h.value * t.items.length), $ = u(() => ({
398
- [f.value ? "height" : "width"]: b(a.value + t.bottomSpace)
398
+ [f.value ? "height" : "width"]: g(a.value + t.bottomSpace)
399
399
  })), z = u(() => ({
400
400
  display: f.value ? "block" : "inline-block",
401
- [f.value ? "height" : "width"]: b(h.value)
401
+ [f.value ? "height" : "width"]: g(h.value)
402
402
  })), k = u(
403
403
  () => t.items.slice(
404
404
  Math.max(l.value - r.value, 0),
@@ -416,7 +416,7 @@ const un = /* @__PURE__ */ m({
416
416
  $e().select(`#${t.id}`).boundingClientRect((v) => {
417
417
  if (!v)
418
418
  return B();
419
- const { height: p, width: g } = v, C = f.value ? p : g;
419
+ const { height: p, width: b } = v, C = f.value ? p : b;
420
420
  r.value = Math.ceil(C / h.value);
421
421
  }).exec();
422
422
  });
@@ -434,25 +434,25 @@ const un = /* @__PURE__ */ m({
434
434
  enhanced: !0,
435
435
  "enable-passive": !0,
436
436
  "lower-threshold": 300,
437
- onScrollPassive: p[0] || (p[0] = (g) => w(g)),
438
- onRefresherrefresh: p[1] || (p[1] = (g) => {
437
+ onScrollPassive: p[0] || (p[0] = (b) => w(b)),
438
+ onRefresherrefresh: p[1] || (p[1] = (b) => {
439
439
  At(fe).short("light"), s("refresh");
440
440
  }),
441
- onScrolltolower: p[2] || (p[2] = (g) => s("lower"))
441
+ onScrolltolower: p[2] || (p[2] = (b) => s("lower"))
442
442
  }), [
443
443
  j("view", {
444
444
  class: "sun-virtual-scroll-content-container",
445
445
  style: M(V.value)
446
446
  }, [
447
- (F(!0), L(Lt, null, Ft(k.value, (g, C) => {
447
+ (F(!0), L(Lt, null, Ft(k.value, (b, C) => {
448
448
  var A;
449
449
  return F(), L("view", {
450
- key: (A = g[v.itemKey]) != null ? A : C,
450
+ key: (A = b[v.itemKey]) != null ? A : C,
451
451
  class: "sun-virtual-scroll-item",
452
452
  style: M(z.value)
453
453
  }, [
454
454
  Mt(v.$slots, "default", {
455
- item: g,
455
+ item: b,
456
456
  index: C
457
457
  })
458
458
  ], 4);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solar-taro/ui-sun",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "typings": "./index.d.ts",