@vaneui/ui 0.3.1-alpha.20251115130358.c59f986 → 0.3.1-alpha.20251125131654.1cfafe5

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/dist/index.js CHANGED
@@ -3709,15 +3709,15 @@ class LineHeightTheme extends BaseTheme {
3709
3709
  constructor(customMapping) {
3710
3710
  super();
3711
3711
  /** Extra-small line height - matches text-xs default line height */
3712
- this.xs = "[--lh:1.333]"; // calc(1 / 0.75) ≈ 1.333
3712
+ this.xs = "[--lh:1.4]"; // calc(1 / 0.75) ≈ 1.333
3713
3713
  /** Small line height - matches text-sm default line height */
3714
- this.sm = "[--lh:1.429]"; // calc(1.25 / 0.875) ≈ 1.429
3714
+ this.sm = "[--lh:1.6]"; // calc(1.25 / 0.875) ≈ 1.429
3715
3715
  /** Medium line height - matches text-base default line height */
3716
- this.md = "[--lh:1.5]"; // calc(1.5 / 1) = 1.5
3716
+ this.md = "[--lh:1.6]"; // calc(1.5 / 1) = 1.5
3717
3717
  /** Large line height - matches text-lg default line height */
3718
- this.lg = "[--lh:1.556]"; // calc(1.75 / 1.125) ≈ 1.556
3718
+ this.lg = "[--lh:1.6]"; // calc(1.75 / 1.125) ≈ 1.556
3719
3719
  /** Extra-large line height - matches text-xl default line height */
3720
- this.xl = "[--lh:1.4]"; // calc(1.75 / 1.25) = 1.4
3720
+ this.xl = "[--lh:1.6]"; // calc(1.75 / 1.25) = 1.4
3721
3721
  if (customMapping) {
3722
3722
  this.xs = customMapping.xs || this.xs;
3723
3723
  this.sm = customMapping.sm || this.sm;
@@ -3814,15 +3814,6 @@ class RadiusTheme extends BaseTheme {
3814
3814
  this.rounded = roundedClasses;
3815
3815
  this.isUIComponent = isUIComponent;
3816
3816
  }
3817
- static createCheckboxTheme() {
3818
- return new RadiusTheme({
3819
- xs: '[--br-unit:1]',
3820
- sm: '[--br-unit:1.5]',
3821
- md: '[--br-unit:2]',
3822
- lg: '[--br-unit:2.5]',
3823
- xl: '[--br-unit:3]'
3824
- }, true);
3825
- }
3826
3817
  static createUITheme() {
3827
3818
  return new RadiusTheme({
3828
3819
  xs: '[--br-unit:2]',
@@ -5004,20 +4995,26 @@ const defaultChipTheme = new ComponentTheme("span", "w-fit h-fit transition-all
5004
4995
  const defaultCodeTheme = new ComponentTheme("code", "", {
5005
4996
  size: {
5006
4997
  px: new PxTheme({
5007
- xs: "[--aspect-ratio:1.5]",
5008
- sm: "[--aspect-ratio:1.5]",
5009
- md: "[--aspect-ratio:1.5]",
5010
- lg: "[--aspect-ratio:1.5]",
5011
- xl: "[--aspect-ratio:1.5]",
4998
+ xs: "[--aspect-ratio:1.8]",
4999
+ sm: "[--aspect-ratio:1.8]",
5000
+ md: "[--aspect-ratio:1.8]",
5001
+ lg: "[--aspect-ratio:1.8]",
5002
+ xl: "[--aspect-ratio:1.8]",
5012
5003
  }, true),
5013
5004
  py: new PyTheme({
5014
- xs: "[--py-unit:0.6]",
5015
- sm: "[--py-unit:0.8]",
5016
- md: "[--py-unit:1]",
5017
- lg: "[--py-unit:1.2]",
5018
- xl: "[--py-unit:1.4]",
5005
+ xs: "[--py-unit:0.4]",
5006
+ sm: "[--py-unit:0.6]",
5007
+ md: "[--py-unit:0.8]",
5008
+ lg: "[--py-unit:1]",
5009
+ xl: "[--py-unit:1.2]",
5019
5010
  }, true),
5020
- text: new FontSizeTheme(),
5011
+ text: new FontSizeTheme({
5012
+ xs: "[--fs-unit:5]",
5013
+ sm: "[--fs-unit:6]",
5014
+ md: "[--fs-unit:7]",
5015
+ lg: "[--fs-unit:8]",
5016
+ xl: "[--fs-unit:9]",
5017
+ }),
5021
5018
  lineHeight: new LineHeightTheme({
5022
5019
  xs: "[--lh:1]",
5023
5020
  sm: "[--lh:1]",
@@ -5037,7 +5034,13 @@ const defaultCodeTheme = new ComponentTheme("code", "", {
5037
5034
  },
5038
5035
  layout: {
5039
5036
  ...defaultLayoutsThemes,
5040
- radius: RadiusTheme.createUITheme(),
5037
+ radius: new RadiusTheme({
5038
+ xs: '[--br-unit:1]',
5039
+ sm: '[--br-unit:2]',
5040
+ md: '[--br-unit:3]',
5041
+ lg: '[--br-unit:4]',
5042
+ xl: '[--br-unit:5]'
5043
+ }, true),
5041
5044
  border: new BorderTheme(),
5042
5045
  ring: new RingTheme(),
5043
5046
  focusVisible: new FocusVisibleTheme(),
@@ -5489,7 +5492,13 @@ const defaultCheckboxTheme = new ComponentTheme("input", "peer col-start-1 row-s
5489
5492
  border: new BorderTheme(),
5490
5493
  ring: new RingTheme(),
5491
5494
  focusVisible: new FocusVisibleTheme(),
5492
- radius: RadiusTheme.createCheckboxTheme(),
5495
+ radius: new RadiusTheme({
5496
+ xs: '[--br-unit:1]',
5497
+ sm: '[--br-unit:1.5]',
5498
+ md: '[--br-unit:2]',
5499
+ lg: '[--br-unit:2.5]',
5500
+ xl: '[--br-unit:3]'
5501
+ }, true),
5493
5502
  },
5494
5503
  appearance: {
5495
5504
  accent: GenericVariantTheme.createAccentColorAppearanceTheme(),