@rainbow-oh/yee-c 0.6.3 → 0.6.4

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.
@@ -63,7 +63,7 @@
63
63
  border-color: var(--yee-checkbox-border-color);
64
64
  }
65
65
 
66
- &&-checked {
66
+ &@{pls}-checked {
67
67
  @{pls}-inner {
68
68
  --ye-checkbox-checked-border-color: var(
69
69
  --yee-checkbox-disabled-checked-border-color
@@ -38,7 +38,7 @@
38
38
  position: relative;
39
39
  background-color: var(--yee-table-thead-bg-color);
40
40
 
41
- &:not(:last-child):not(@{pls}-expand-col) {
41
+ &:not(:empty):not(:last-child):not(@{pls}-expand-col) {
42
42
  &::before {
43
43
  position: absolute;
44
44
  content: '';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * @rainbow-oh/yee-c CSS Variables
3
3
  * Auto-generated, do not edit manually
4
- * Generated on 2026-07-14T08:05:12.055Z
4
+ * Generated on 2026-07-20T03:12:00.311Z
5
5
  */
6
6
 
7
7
  /* ========== color.blue.css ========== */
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * @rainbow-oh/yee-c CSS Variables
3
3
  * Auto-generated, do not edit manually
4
- * Generated on 2026-07-14T08:05:12.055Z
4
+ * Generated on 2026-07-20T03:12:00.311Z
5
5
  */
6
6
 
7
7
  /* ========== color.css ========== */
@@ -1 +1 @@
1
- export default function isEqual(a: unknown, b: unknown): boolean;
1
+ export default function isEqual(a: unknown, b: unknown, seen?: Map<object, Set<object>>): boolean;
@@ -22,7 +22,7 @@ __export(isEqual_exports, {
22
22
  default: () => isEqual
23
23
  });
24
24
  module.exports = __toCommonJS(isEqual_exports);
25
- function isEqual(a, b) {
25
+ function isEqual(a, b, seen) {
26
26
  if (a === b)
27
27
  return true;
28
28
  if (a === null || b === null)
@@ -35,16 +35,31 @@ function isEqual(a, b) {
35
35
  if (a instanceof RegExp && b instanceof RegExp) {
36
36
  return a.source === b.source && a.flags === b.flags;
37
37
  }
38
- if (Array.isArray(a) && Array.isArray(b)) {
39
- if (a.length !== b.length)
40
- return false;
41
- for (let i = 0; i < a.length; i++) {
42
- if (!isEqual(a[i], b[i]))
43
- return false;
44
- }
45
- return true;
38
+ if (typeof a === "function" && typeof b === "function") {
39
+ return a.toString() === b.toString();
46
40
  }
47
41
  if (typeof a === "object" && typeof b === "object") {
42
+ if (!seen) {
43
+ seen = /* @__PURE__ */ new Map();
44
+ }
45
+ const seenForA = seen.get(a);
46
+ if (seenForA && seenForA.has(b)) {
47
+ return true;
48
+ }
49
+ if (!seenForA) {
50
+ seen.set(a, /* @__PURE__ */ new Set([b]));
51
+ } else {
52
+ seenForA.add(b);
53
+ }
54
+ if (Array.isArray(a) && Array.isArray(b)) {
55
+ if (a.length !== b.length)
56
+ return false;
57
+ for (let i = 0; i < a.length; i++) {
58
+ if (!isEqual(a[i], b[i], seen))
59
+ return false;
60
+ }
61
+ return true;
62
+ }
48
63
  const keysA = Object.keys(a);
49
64
  const keysB = Object.keys(b);
50
65
  if (keysA.length !== keysB.length)
@@ -52,14 +67,12 @@ function isEqual(a, b) {
52
67
  for (let key of keysA) {
53
68
  if (!keysB.includes(key) || !isEqual(
54
69
  a[key],
55
- b[key]
70
+ b[key],
71
+ seen
56
72
  ))
57
73
  return false;
58
74
  }
59
75
  return true;
60
76
  }
61
- if (typeof a === "function" && typeof b === "function") {
62
- return a.toString() === b.toString();
63
- }
64
77
  return false;
65
78
  }
@@ -3,4 +3,4 @@ declare global {
3
3
  __yee_c_version__: string;
4
4
  }
5
5
  }
6
- export declare const version = "0.6.3";
6
+ export declare const version = "0.6.4";
@@ -22,7 +22,7 @@ __export(version_exports, {
22
22
  version: () => version
23
23
  });
24
24
  module.exports = __toCommonJS(version_exports);
25
- var version = "0.6.3";
25
+ var version = "0.6.4";
26
26
  if (typeof window !== "undefined") {
27
27
  window.__yee_c_version__ = version;
28
28
  }
@@ -63,7 +63,7 @@
63
63
  border-color: var(--yee-checkbox-border-color);
64
64
  }
65
65
 
66
- &&-checked {
66
+ &@{pls}-checked {
67
67
  @{pls}-inner {
68
68
  --ye-checkbox-checked-border-color: var(
69
69
  --yee-checkbox-disabled-checked-border-color
@@ -38,7 +38,7 @@
38
38
  position: relative;
39
39
  background-color: var(--yee-table-thead-bg-color);
40
40
 
41
- &:not(:last-child):not(@{pls}-expand-col) {
41
+ &:not(:empty):not(:last-child):not(@{pls}-expand-col) {
42
42
  &::before {
43
43
  position: absolute;
44
44
  content: '';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * @rainbow-oh/yee-c CSS Variables
3
3
  * Auto-generated, do not edit manually
4
- * Generated on 2026-07-14T08:05:12.055Z
4
+ * Generated on 2026-07-20T03:12:00.311Z
5
5
  */
6
6
 
7
7
  /* ========== color.blue.css ========== */
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * @rainbow-oh/yee-c CSS Variables
3
3
  * Auto-generated, do not edit manually
4
- * Generated on 2026-07-14T08:05:12.055Z
4
+ * Generated on 2026-07-20T03:12:00.311Z
5
5
  */
6
6
 
7
7
  /* ========== color.css ========== */
@@ -1 +1 @@
1
- export default function isEqual(a: unknown, b: unknown): boolean;
1
+ export default function isEqual(a: unknown, b: unknown, seen?: Map<object, Set<object>>): boolean;
@@ -1,5 +1,5 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- export default function isEqual(a, b) {
2
+ export default function isEqual(a, b, seen) {
3
3
  // Compare reference types
4
4
  if (a === b) return true;
5
5
 
@@ -19,32 +19,50 @@ export default function isEqual(a, b) {
19
19
  return a.source === b.source && a.flags === b.flags;
20
20
  }
21
21
 
22
- // Compare arrays
23
- if (Array.isArray(a) && Array.isArray(b)) {
24
- if (a.length !== b.length) return false;
25
- for (var i = 0; i < a.length; i++) {
26
- if (!isEqual(a[i], b[i])) return false;
27
- }
28
- return true;
22
+ // Compare functions
23
+ if (typeof a === 'function' && typeof b === 'function') {
24
+ return a.toString() === b.toString();
29
25
  }
30
26
 
31
- // Compare objects
27
+ // For objects and arrays, detect circular references
32
28
  if (_typeof(a) === 'object' && _typeof(b) === 'object') {
29
+ if (!seen) {
30
+ seen = new Map();
31
+ }
32
+
33
+ // If we've already started comparing this pair, assume equal to break the cycle
34
+ var seenForA = seen.get(a);
35
+ if (seenForA && seenForA.has(b)) {
36
+ return true;
37
+ }
38
+
39
+ // Mark this pair as being compared
40
+ if (!seenForA) {
41
+ seen.set(a, new Set([b]));
42
+ } else {
43
+ seenForA.add(b);
44
+ }
45
+
46
+ // Compare arrays
47
+ if (Array.isArray(a) && Array.isArray(b)) {
48
+ if (a.length !== b.length) return false;
49
+ for (var i = 0; i < a.length; i++) {
50
+ if (!isEqual(a[i], b[i], seen)) return false;
51
+ }
52
+ return true;
53
+ }
54
+
55
+ // Compare objects
33
56
  var keysA = Object.keys(a);
34
57
  var keysB = Object.keys(b);
35
58
  if (keysA.length !== keysB.length) return false;
36
59
  for (var _i = 0, _keysA = keysA; _i < _keysA.length; _i++) {
37
60
  var key = _keysA[_i];
38
- if (!keysB.includes(key) || !isEqual(a[key], b[key])) return false;
61
+ if (!keysB.includes(key) || !isEqual(a[key], b[key], seen)) return false;
39
62
  }
40
63
  return true;
41
64
  }
42
65
 
43
- // Compare functions
44
- if (typeof a === 'function' && typeof b === 'function') {
45
- return a.toString() === b.toString();
46
- }
47
-
48
66
  // Other cases
49
67
  return false;
50
68
  }
@@ -3,4 +3,4 @@ declare global {
3
3
  __yee_c_version__: string;
4
4
  }
5
5
  }
6
- export declare const version = "0.6.3";
6
+ export declare const version = "0.6.4";
@@ -1,4 +1,4 @@
1
- export var version = "0.6.3";
1
+ export var version = "0.6.4";
2
2
  if (typeof window !== 'undefined') {
3
3
  window.__yee_c_version__ = version;
4
4
  }