x-runtime-lib 0.6.14 → 0.6.15

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.
@@ -1,6 +1,6 @@
1
- import { CSSProperties } from 'vue';
1
+ import { CSSProperties, Ref } from 'vue';
2
2
  import { BaseProps } from '../../../../../types';
3
- export declare function useBorderV1(props: BaseProps): {
3
+ export declare function useBorderV1(dark: Ref<boolean>, props: BaseProps): {
4
4
  borderStyle: import("vue").ComputedRef<any>;
5
5
  borderWidth: import("vue").ComputedRef<any>;
6
6
  borderColor: import("vue").ComputedRef<any>;
package/dist/index.js CHANGED
@@ -605,33 +605,33 @@ function Bi(n) {
605
605
  }
606
606
  return { show: a, position: c, type: h, data: v, applyYAxis: E };
607
607
  }
608
- function Ll(n) {
609
- const a = R(() => {
610
- var r;
611
- return (r = n.node.border) == null ? void 0 : r.style;
612
- }), c = R(() => {
613
- var r;
614
- return (r = n.node.border) == null ? void 0 : r.width;
608
+ function Ll(n, a) {
609
+ const c = R(() => {
610
+ var t;
611
+ return (t = a.node.border) == null ? void 0 : t.style;
615
612
  }), h = R(() => {
616
- var r;
617
- return (r = n.node.border) == null ? void 0 : r.color;
613
+ var t;
614
+ return (t = a.node.border) == null ? void 0 : t.width;
618
615
  }), v = R(() => {
619
- var r, t;
620
- return (t = (r = n.node.border) == null ? void 0 : r.roundRadius) == null ? void 0 : t.tl;
616
+ var t, e, i, s;
617
+ return n.value ? (e = (t = a.node.border) == null ? void 0 : t.color) == null ? void 0 : e.dark : (s = (i = a.node.border) == null ? void 0 : i.color) == null ? void 0 : s.light;
621
618
  }), E = R(() => {
622
- var r, t;
623
- return (t = (r = n.node.border) == null ? void 0 : r.roundRadius) == null ? void 0 : t.tr;
619
+ var t, e;
620
+ return (e = (t = a.node.border) == null ? void 0 : t.roundRadius) == null ? void 0 : e.tl;
624
621
  }), m = R(() => {
625
- var r, t;
626
- return (t = (r = n.node.border) == null ? void 0 : r.roundRadius) == null ? void 0 : t.bl;
622
+ var t, e;
623
+ return (e = (t = a.node.border) == null ? void 0 : t.roundRadius) == null ? void 0 : e.tr;
627
624
  }), T = R(() => {
628
- var r, t;
629
- return (t = (r = n.node.border) == null ? void 0 : r.roundRadius) == null ? void 0 : t.br;
625
+ var t, e;
626
+ return (e = (t = a.node.border) == null ? void 0 : t.roundRadius) == null ? void 0 : e.bl;
627
+ }), S = R(() => {
628
+ var t, e;
629
+ return (e = (t = a.node.border) == null ? void 0 : t.roundRadius) == null ? void 0 : e.br;
630
630
  });
631
- function S(r) {
632
- a.value && (r.borderStyle = a.value), c.value && (r.borderWidth = c.value), h.value && (r.borderColor = h.value), v.value && (r.borderTopLeftRadius = v.value), E.value && (r.borderTopRightRadius = E.value), m.value && (r.borderBottomLeftRadius = m.value), T.value && (r.borderBottomRightRadius = T.value);
631
+ function r(t) {
632
+ c.value && (t.borderStyle = c.value), h.value && (t.borderWidth = h.value), v.value && (t.borderColor = v.value), E.value && (t.borderTopLeftRadius = E.value), m.value && (t.borderTopRightRadius = m.value), T.value && (t.borderBottomLeftRadius = T.value), S.value && (t.borderBottomRightRadius = S.value);
633
633
  }
634
- return { borderStyle: a, borderWidth: c, borderColor: h, applyBorder: S };
634
+ return { borderStyle: c, borderWidth: h, borderColor: v, applyBorder: r };
635
635
  }
636
636
  function Dl(n) {
637
637
  const a = R(() => {
@@ -5610,7 +5610,7 @@ const xf = /* @__PURE__ */ Ft(_f, [["render", Ef]]), Rf = { key: 0 }, Sf = /* @_
5610
5610
  outer: { type: Boolean }
5611
5611
  },
5612
5612
  setup(n) {
5613
- const a = n, c = se(), h = Dt(), v = ve(), E = ut(), m = lt(), { applySize: T } = Mt(c, h, a), { applyMargin: S } = Dl(a), { applyPadding: r } = Ml(a), { applyBorder: t } = Ll(a), e = R(() => {
5613
+ const a = n, c = se(), h = Dt(), v = ve(), E = ut(), m = lt(), { applySize: T } = Mt(c, h, a), { applyMargin: S } = Dl(a), { applyPadding: r } = Ml(a), { applyBorder: t } = Ll(v, a), e = R(() => {
5614
5614
  var s, u, l, o;
5615
5615
  return v.value ? (u = (s = a.node.settings) == null ? void 0 : s.backgroundColor) == null ? void 0 : u.dark : (o = (l = a.node.settings) == null ? void 0 : l.backgroundColor) == null ? void 0 : o.light;
5616
5616
  }), i = R(() => {
@@ -6083,8 +6083,20 @@ const Uf = /* @__PURE__ */ Ft(Mf, [["render", Ff]]), jf = { key: 0 }, $f = /* @_
6083
6083
  {
6084
6084
  key: "color",
6085
6085
  name: "x-runtime-lib.color",
6086
- ui: "colorPicker",
6087
- default: "#00000000"
6086
+ children: [
6087
+ {
6088
+ key: "light",
6089
+ name: "x-runtime-lib.light",
6090
+ ui: "colorPicker",
6091
+ default: "#00000000"
6092
+ },
6093
+ {
6094
+ key: "dark",
6095
+ name: "x-runtime-lib.dark",
6096
+ ui: "colorPicker",
6097
+ default: "#00000000"
6098
+ }
6099
+ ]
6088
6100
  },
6089
6101
  {
6090
6102
  key: "roundRadius",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-runtime-lib",
3
3
  "private": false,
4
- "version": "0.6.14",
4
+ "version": "0.6.15",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",