@ysgroup/ui 0.1.62 → 0.1.63

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ysgroup/ui",
3
- "version": "0.1.62",
3
+ "version": "0.1.63",
4
4
  "type": "module",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -722,22 +722,22 @@ function goToday() {
722
722
  /* 底色:不支持相对颜色的浏览器用混色兜底 */
723
723
  --cal-open-bg: color-mix(
724
724
  in srgb,
725
- var(--ys-color-success) 6%,
725
+ var(--ys-color-success) 12%,
726
726
  var(--ys-color-bg-elevated)
727
727
  );
728
728
  --cal-open-hover: color-mix(
729
729
  in srgb,
730
- var(--ys-color-success) 10%,
730
+ var(--ys-color-success) 18%,
731
731
  var(--ys-color-bg-elevated)
732
732
  );
733
733
  --cal-holiday-bg: color-mix(
734
734
  in srgb,
735
- var(--ys-color-warning) 6%,
735
+ var(--ys-color-warning) 12%,
736
736
  var(--ys-color-bg-elevated)
737
737
  );
738
738
  --cal-holiday-hover: color-mix(
739
739
  in srgb,
740
- var(--ys-color-warning) 10%,
740
+ var(--ys-color-warning) 18%,
741
741
  var(--ys-color-bg-elevated)
742
742
  );
743
743
  display: flex;
@@ -745,19 +745,19 @@ function goToday() {
745
745
  gap: 8px;
746
746
  min-width: 0;
747
747
  }
748
- /* 支持相对颜色时,底色固定亮度和饱和度:柔和的浅绿和浅橙,不发灰也不刺眼 */
748
+ /* 支持相对颜色时,底色固定亮度和饱和度:和休息日(白底/深底)一眼分得开的绿和橙,饱和度仍克制、不刺眼 */
749
749
  @supports (color: oklch(from red l c h)) {
750
750
  .ys-calendar {
751
- --cal-open-bg: oklch(from var(--ys-color-success) 0.976 0.018 h);
752
- --cal-open-hover: oklch(from var(--ys-color-success) 0.952 0.03 h);
753
- --cal-holiday-bg: oklch(from var(--ys-color-warning) 0.975 0.02 h);
754
- --cal-holiday-hover: oklch(from var(--ys-color-warning) 0.952 0.032 h);
751
+ --cal-open-bg: oklch(from var(--ys-color-success) 0.952 0.05 h);
752
+ --cal-open-hover: oklch(from var(--ys-color-success) 0.926 0.068 h);
753
+ --cal-holiday-bg: oklch(from var(--ys-color-warning) 0.955 0.045 h);
754
+ --cal-holiday-hover: oklch(from var(--ys-color-warning) 0.93 0.062 h);
755
755
  }
756
756
  html[data-theme="dark"] .ys-calendar {
757
- --cal-open-bg: oklch(from var(--ys-color-success) 0.25 0.028 h);
758
- --cal-open-hover: oklch(from var(--ys-color-success) 0.29 0.04 h);
759
- --cal-holiday-bg: oklch(from var(--ys-color-warning) 0.25 0.028 h);
760
- --cal-holiday-hover: oklch(from var(--ys-color-warning) 0.29 0.04 h);
757
+ --cal-open-bg: oklch(from var(--ys-color-success) 0.31 0.07 h);
758
+ --cal-open-hover: oklch(from var(--ys-color-success) 0.35 0.085 h);
759
+ --cal-holiday-bg: oklch(from var(--ys-color-warning) 0.31 0.06 h);
760
+ --cal-holiday-hover: oklch(from var(--ys-color-warning) 0.35 0.075 h);
761
761
  }
762
762
  }
763
763
  .ys-calendar__head {
@@ -339,12 +339,12 @@ const dayEvents = computed(() =>
339
339
  );
340
340
  --open-bg: color-mix(
341
341
  in srgb,
342
- var(--ys-color-success) 8%,
342
+ var(--ys-color-success) 12%,
343
343
  var(--ys-color-bg-elevated)
344
344
  );
345
345
  --holiday-bg: color-mix(
346
346
  in srgb,
347
- var(--ys-color-warning) 8%,
347
+ var(--ys-color-warning) 12%,
348
348
  var(--ys-color-bg-elevated)
349
349
  );
350
350
  display: flex;
@@ -358,12 +358,12 @@ const dayEvents = computed(() =>
358
358
  /* 和月历同一套底色:固定亮度和饱和度,不发灰也不刺眼 */
359
359
  @supports (color: oklch(from red l c h)) {
360
360
  .ys-day-card {
361
- --open-bg: oklch(from var(--ys-color-success) 0.965 0.03 h);
362
- --holiday-bg: oklch(from var(--ys-color-warning) 0.965 0.032 h);
361
+ --open-bg: oklch(from var(--ys-color-success) 0.952 0.05 h);
362
+ --holiday-bg: oklch(from var(--ys-color-warning) 0.955 0.045 h);
363
363
  }
364
364
  html[data-theme="dark"] .ys-day-card {
365
- --open-bg: oklch(from var(--ys-color-success) 0.28 0.04 h);
366
- --holiday-bg: oklch(from var(--ys-color-warning) 0.28 0.04 h);
365
+ --open-bg: oklch(from var(--ys-color-success) 0.31 0.07 h);
366
+ --holiday-bg: oklch(from var(--ys-color-warning) 0.31 0.06 h);
367
367
  }
368
368
  }
369
369
  .ys-day-card.is-workday,