@vaneui/ui 0.3.1-alpha.20251001142553.9da86c7 → 0.3.1-alpha.20251002075149.f5b5fd6
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/components/ui/theme/size/lineHeightTheme.d.ts.map +1 -1
- package/dist/index.esm.js +45 -45
- package/dist/index.js +45 -45
- package/dist/ui.css +174 -30
- package/dist/vars.css +7 -8
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lineHeightTheme.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/theme/size/lineHeightTheme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD,qBAAa,eAAgB,SAAQ,SAAU,YAAW,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC;IAC/E,oEAAoE;IACpE,EAAE,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"lineHeightTheme.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/theme/size/lineHeightTheme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD,qBAAa,eAAgB,SAAQ,SAAU,YAAW,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC;IAC/E,oEAAoE;IACpE,EAAE,EAAE,MAAM,CAAkB;IAC5B,8DAA8D;IAC9D,EAAE,EAAE,MAAM,CAAkB;IAC5B,iEAAiE;IACjE,EAAE,EAAE,MAAM,CAAgB;IAC1B,8DAA8D;IAC9D,EAAE,EAAE,MAAM,CAAkB;IAC5B,oEAAoE;IACpE,EAAE,EAAE,MAAM,CAAgB;gBAEd,aAAa,CAAC,EAAE,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC;IAWnD,UAAU,CAAC,aAAa,EAAE,aAAa,GAAG,MAAM,EAAE;IAQlD,MAAM,CAAC,aAAa,IAAI,eAAe;IAKvC,MAAM,CAAC,qBAAqB,IAAI,eAAe;IAU/C,MAAM,CAAC,kBAAkB,IAAI,eAAe;IAU5C,MAAM,CAAC,cAAc,IAAI,eAAe;CASzC"}
|
package/dist/index.esm.js
CHANGED
|
@@ -3676,29 +3676,29 @@ class FontSizeTheme extends BaseTheme {
|
|
|
3676
3676
|
// Static factory methods for different text size ranges
|
|
3677
3677
|
static createForPageTitle() {
|
|
3678
3678
|
return new FontSizeTheme({
|
|
3679
|
-
xs: "[--fs-unit:15]", // text-3xl: 1.875rem = 15 * 0.125rem
|
|
3680
|
-
sm: "[--fs-unit:18]", // text-4xl: 2.25rem = 18 * 0.125rem
|
|
3681
|
-
md: "[--fs-unit:24]", // text-5xl: 3rem = 24 * 0.125rem
|
|
3682
|
-
lg: "[--fs-unit:30]", // text-6xl: 3.75rem = 30 * 0.125rem
|
|
3683
|
-
xl: "[--fs-unit:36]" // text-7xl: 4.5rem = 36 * 0.125rem
|
|
3679
|
+
xs: "[--fs-unit:15] max-laptop:[--fs-unit:12] max-tablet:[--fs-unit:9]", // text-3xl: 1.875rem = 15 * 0.125rem
|
|
3680
|
+
sm: "[--fs-unit:18] max-laptop:[--fs-unit:15] max-tablet:[--fs-unit:12]", // text-4xl: 2.25rem = 18 * 0.125rem
|
|
3681
|
+
md: "[--fs-unit:24] max-laptop:[--fs-unit:21] max-tablet:[--fs-unit:18]", // text-5xl: 3rem = 24 * 0.125rem
|
|
3682
|
+
lg: "[--fs-unit:30] max-laptop:[--fs-unit:27] max-tablet:[--fs-unit:24]", // text-6xl: 3.75rem = 30 * 0.125rem
|
|
3683
|
+
xl: "[--fs-unit:36] max-laptop:[--fs-unit:33] max-tablet:[--fs-unit:30]" // text-7xl: 4.5rem = 36 * 0.125rem
|
|
3684
3684
|
});
|
|
3685
3685
|
}
|
|
3686
3686
|
static createForSectionTitle() {
|
|
3687
3687
|
return new FontSizeTheme({
|
|
3688
|
-
xs: "[--fs-unit:12]", // text-2xl: 1.5rem = 12 * 0.125rem
|
|
3689
|
-
sm: "[--fs-unit:15]", // text-3xl: 1.875rem = 15 * 0.125rem
|
|
3690
|
-
md: "[--fs-unit:18]", // text-4xl: 2.25rem = 18 * 0.125rem
|
|
3691
|
-
lg: "[--fs-unit:24]", // text-5xl: 3rem = 24 * 0.125rem
|
|
3692
|
-
xl: "[--fs-unit:30]" // text-6xl: 3.75rem = 30 * 0.125rem
|
|
3688
|
+
xs: "[--fs-unit:12] max-laptop:[--fs-unit:10] max-tablet:[--fs-unit:8]", // text-2xl: 1.5rem = 12 * 0.125rem
|
|
3689
|
+
sm: "[--fs-unit:15] max-laptop:[--fs-unit:13] max-tablet:[--fs-unit:11]", // text-3xl: 1.875rem = 15 * 0.125rem
|
|
3690
|
+
md: "[--fs-unit:18] max-laptop:[--fs-unit:16] max-tablet:[--fs-unit:14]", // text-4xl: 2.25rem = 18 * 0.125rem
|
|
3691
|
+
lg: "[--fs-unit:24] max-laptop:[--fs-unit:22] max-tablet:[--fs-unit:20]", // text-5xl: 3rem = 24 * 0.125rem
|
|
3692
|
+
xl: "[--fs-unit:30] max-laptop:[--fs-unit:28] max-tablet:[--fs-unit:26]" // text-6xl: 3.75rem = 30 * 0.125rem
|
|
3693
3693
|
});
|
|
3694
3694
|
}
|
|
3695
3695
|
static createForTitle() {
|
|
3696
3696
|
return new FontSizeTheme({
|
|
3697
|
-
xs: "[--fs-unit:9]", // text-lg: 1.125rem = 9 * 0.125rem
|
|
3698
|
-
sm: "[--fs-unit:10]", // text-xl: 1.25rem = 10 * 0.125rem
|
|
3699
|
-
md: "[--fs-unit:12]", // text-2xl: 1.5rem = 12 * 0.125rem
|
|
3700
|
-
lg: "[--fs-unit:15]", // text-3xl: 1.875rem = 15 * 0.125rem
|
|
3701
|
-
xl: "[--fs-unit:18]" // text-4xl: 2.25rem = 18 * 0.125rem
|
|
3697
|
+
xs: "[--fs-unit:9] max-laptop:[--fs-unit:8] max-tablet:[--fs-unit:7]", // text-lg: 1.125rem = 9 * 0.125rem
|
|
3698
|
+
sm: "[--fs-unit:10] max-laptop:[--fs-unit:9] max-tablet:[--fs-unit:8]", // text-xl: 1.25rem = 10 * 0.125rem
|
|
3699
|
+
md: "[--fs-unit:12] max-laptop:[--fs-unit:11] max-tablet:[--fs-unit:10]", // text-2xl: 1.5rem = 12 * 0.125rem
|
|
3700
|
+
lg: "[--fs-unit:15] max-laptop:[--fs-unit:14] max-tablet:[--fs-unit:13]", // text-3xl: 1.875rem = 15 * 0.125rem
|
|
3701
|
+
xl: "[--fs-unit:18] max-laptop:[--fs-unit:17] max-tablet:[--fs-unit:16]" // text-4xl: 2.25rem = 18 * 0.125rem
|
|
3702
3702
|
});
|
|
3703
3703
|
}
|
|
3704
3704
|
}
|
|
@@ -3707,15 +3707,15 @@ class LineHeightTheme extends BaseTheme {
|
|
|
3707
3707
|
constructor(customMapping) {
|
|
3708
3708
|
super();
|
|
3709
3709
|
/** Extra-small line height - matches text-xs default line height */
|
|
3710
|
-
this.xs = "[--lh
|
|
3710
|
+
this.xs = "[--lh:1.333]"; // calc(1 / 0.75) ≈ 1.333
|
|
3711
3711
|
/** Small line height - matches text-sm default line height */
|
|
3712
|
-
this.sm = "[--lh
|
|
3712
|
+
this.sm = "[--lh:1.429]"; // calc(1.25 / 0.875) ≈ 1.429
|
|
3713
3713
|
/** Medium line height - matches text-base default line height */
|
|
3714
|
-
this.md = "[--lh
|
|
3714
|
+
this.md = "[--lh:1.5]"; // calc(1.5 / 1) = 1.5
|
|
3715
3715
|
/** Large line height - matches text-lg default line height */
|
|
3716
|
-
this.lg = "[--lh
|
|
3716
|
+
this.lg = "[--lh:1.556]"; // calc(1.75 / 1.125) ≈ 1.556
|
|
3717
3717
|
/** Extra-large line height - matches text-xl default line height */
|
|
3718
|
-
this.xl = "[--lh
|
|
3718
|
+
this.xl = "[--lh:1.4]"; // calc(1.75 / 1.25) = 1.4
|
|
3719
3719
|
if (customMapping) {
|
|
3720
3720
|
this.xs = customMapping.xs || this.xs;
|
|
3721
3721
|
this.sm = customMapping.sm || this.sm;
|
|
@@ -3737,29 +3737,29 @@ class LineHeightTheme extends BaseTheme {
|
|
|
3737
3737
|
// Static factory methods for different text size ranges
|
|
3738
3738
|
static createForSectionTitle() {
|
|
3739
3739
|
return new LineHeightTheme({
|
|
3740
|
-
xs: "[--lh
|
|
3741
|
-
sm: "[--lh
|
|
3742
|
-
md: "[--lh
|
|
3743
|
-
lg: "[--lh
|
|
3744
|
-
xl: "[--lh
|
|
3740
|
+
xs: "[--lh:1.333]", // text-2xl: calc(2 / 1.5) ≈ 1.333
|
|
3741
|
+
sm: "[--lh:1.2]", // text-3xl: calc(2.25 / 1.875) = 1.2
|
|
3742
|
+
md: "[--lh:1.111]", // text-4xl: calc(2.5 / 2.25) ≈ 1.111
|
|
3743
|
+
lg: "[--lh:1]", // text-5xl: 1
|
|
3744
|
+
xl: "[--lh:1]" // text-6xl+: 1
|
|
3745
3745
|
});
|
|
3746
3746
|
}
|
|
3747
3747
|
static createForPageTitle() {
|
|
3748
3748
|
return new LineHeightTheme({
|
|
3749
|
-
xs: "[--lh
|
|
3750
|
-
sm: "[--lh
|
|
3751
|
-
md: "[--lh
|
|
3752
|
-
lg: "[--lh
|
|
3753
|
-
xl: "[--lh
|
|
3749
|
+
xs: "[--lh:1.2]", // text-3xl: calc(2.25 / 1.875) = 1.2
|
|
3750
|
+
sm: "[--lh:1.111]", // text-4xl: calc(2.5 / 2.25) ≈ 1.111
|
|
3751
|
+
md: "[--lh:1]", // text-5xl: 1
|
|
3752
|
+
lg: "[--lh:1]", // text-6xl: 1
|
|
3753
|
+
xl: "[--lh:1]" // text-7xl: 1
|
|
3754
3754
|
});
|
|
3755
3755
|
}
|
|
3756
3756
|
static createForTitle() {
|
|
3757
3757
|
return new LineHeightTheme({
|
|
3758
|
-
xs: "[--lh
|
|
3759
|
-
sm: "[--lh
|
|
3760
|
-
md: "[--lh
|
|
3761
|
-
lg: "[--lh
|
|
3762
|
-
xl: "[--lh
|
|
3758
|
+
xs: "[--lh:1.556]", // text-lg: calc(1.75 / 1.125) ≈ 1.556
|
|
3759
|
+
sm: "[--lh:1.4]", // text-xl: calc(1.75 / 1.25) = 1.4
|
|
3760
|
+
md: "[--lh:1.333]", // text-2xl: calc(2 / 1.5) ≈ 1.333
|
|
3761
|
+
lg: "[--lh:1.2]", // text-3xl: calc(2.25 / 1.875) = 1.2
|
|
3762
|
+
xl: "[--lh:1.111]" // text-4xl: calc(2.5 / 2.25) ≈ 1.111
|
|
3763
3763
|
});
|
|
3764
3764
|
}
|
|
3765
3765
|
}
|
|
@@ -4878,11 +4878,11 @@ const defaultButtonTheme = new ComponentTheme("button", "w-fit h-fit cursor-poin
|
|
|
4878
4878
|
gap: new GapTheme(true),
|
|
4879
4879
|
text: new FontSizeTheme(),
|
|
4880
4880
|
lineHeight: new LineHeightTheme({
|
|
4881
|
-
xs: "[--lh
|
|
4882
|
-
sm: "[--lh
|
|
4883
|
-
md: "[--lh
|
|
4884
|
-
lg: "[--lh
|
|
4885
|
-
xl: "[--lh
|
|
4881
|
+
xs: "[--lh:1.3]",
|
|
4882
|
+
sm: "[--lh:1.3]",
|
|
4883
|
+
md: "[--lh:1.3]",
|
|
4884
|
+
lg: "[--lh:1.3]",
|
|
4885
|
+
xl: "[--lh:1.3]"
|
|
4886
4886
|
}),
|
|
4887
4887
|
},
|
|
4888
4888
|
appearance: {
|
|
@@ -5488,11 +5488,11 @@ const defaultCheckTheme = new ComponentTheme("span", "invisible col-start-1 row-
|
|
|
5488
5488
|
const defaultCheckboxWrapperTheme = new ComponentTheme("span", "", {
|
|
5489
5489
|
size: {
|
|
5490
5490
|
height: new SizeTheme({
|
|
5491
|
-
xs: 'h-
|
|
5492
|
-
sm: 'h-
|
|
5493
|
-
md: 'h-
|
|
5494
|
-
lg: 'h-
|
|
5495
|
-
xl: 'h-
|
|
5491
|
+
xs: 'h-[calc(var(--lh)*var(--fs))]',
|
|
5492
|
+
sm: 'h-[calc(var(--lh)*var(--fs))]',
|
|
5493
|
+
md: 'h-[calc(var(--lh)*var(--fs))]',
|
|
5494
|
+
lg: 'h-[calc(var(--lh)*var(--fs))]',
|
|
5495
|
+
xl: 'h-[calc(var(--lh)*var(--fs))]'
|
|
5496
5496
|
})
|
|
5497
5497
|
},
|
|
5498
5498
|
layout: {
|
package/dist/index.js
CHANGED
|
@@ -3678,29 +3678,29 @@ class FontSizeTheme extends BaseTheme {
|
|
|
3678
3678
|
// Static factory methods for different text size ranges
|
|
3679
3679
|
static createForPageTitle() {
|
|
3680
3680
|
return new FontSizeTheme({
|
|
3681
|
-
xs: "[--fs-unit:15]", // text-3xl: 1.875rem = 15 * 0.125rem
|
|
3682
|
-
sm: "[--fs-unit:18]", // text-4xl: 2.25rem = 18 * 0.125rem
|
|
3683
|
-
md: "[--fs-unit:24]", // text-5xl: 3rem = 24 * 0.125rem
|
|
3684
|
-
lg: "[--fs-unit:30]", // text-6xl: 3.75rem = 30 * 0.125rem
|
|
3685
|
-
xl: "[--fs-unit:36]" // text-7xl: 4.5rem = 36 * 0.125rem
|
|
3681
|
+
xs: "[--fs-unit:15] max-laptop:[--fs-unit:12] max-tablet:[--fs-unit:9]", // text-3xl: 1.875rem = 15 * 0.125rem
|
|
3682
|
+
sm: "[--fs-unit:18] max-laptop:[--fs-unit:15] max-tablet:[--fs-unit:12]", // text-4xl: 2.25rem = 18 * 0.125rem
|
|
3683
|
+
md: "[--fs-unit:24] max-laptop:[--fs-unit:21] max-tablet:[--fs-unit:18]", // text-5xl: 3rem = 24 * 0.125rem
|
|
3684
|
+
lg: "[--fs-unit:30] max-laptop:[--fs-unit:27] max-tablet:[--fs-unit:24]", // text-6xl: 3.75rem = 30 * 0.125rem
|
|
3685
|
+
xl: "[--fs-unit:36] max-laptop:[--fs-unit:33] max-tablet:[--fs-unit:30]" // text-7xl: 4.5rem = 36 * 0.125rem
|
|
3686
3686
|
});
|
|
3687
3687
|
}
|
|
3688
3688
|
static createForSectionTitle() {
|
|
3689
3689
|
return new FontSizeTheme({
|
|
3690
|
-
xs: "[--fs-unit:12]", // text-2xl: 1.5rem = 12 * 0.125rem
|
|
3691
|
-
sm: "[--fs-unit:15]", // text-3xl: 1.875rem = 15 * 0.125rem
|
|
3692
|
-
md: "[--fs-unit:18]", // text-4xl: 2.25rem = 18 * 0.125rem
|
|
3693
|
-
lg: "[--fs-unit:24]", // text-5xl: 3rem = 24 * 0.125rem
|
|
3694
|
-
xl: "[--fs-unit:30]" // text-6xl: 3.75rem = 30 * 0.125rem
|
|
3690
|
+
xs: "[--fs-unit:12] max-laptop:[--fs-unit:10] max-tablet:[--fs-unit:8]", // text-2xl: 1.5rem = 12 * 0.125rem
|
|
3691
|
+
sm: "[--fs-unit:15] max-laptop:[--fs-unit:13] max-tablet:[--fs-unit:11]", // text-3xl: 1.875rem = 15 * 0.125rem
|
|
3692
|
+
md: "[--fs-unit:18] max-laptop:[--fs-unit:16] max-tablet:[--fs-unit:14]", // text-4xl: 2.25rem = 18 * 0.125rem
|
|
3693
|
+
lg: "[--fs-unit:24] max-laptop:[--fs-unit:22] max-tablet:[--fs-unit:20]", // text-5xl: 3rem = 24 * 0.125rem
|
|
3694
|
+
xl: "[--fs-unit:30] max-laptop:[--fs-unit:28] max-tablet:[--fs-unit:26]" // text-6xl: 3.75rem = 30 * 0.125rem
|
|
3695
3695
|
});
|
|
3696
3696
|
}
|
|
3697
3697
|
static createForTitle() {
|
|
3698
3698
|
return new FontSizeTheme({
|
|
3699
|
-
xs: "[--fs-unit:9]", // text-lg: 1.125rem = 9 * 0.125rem
|
|
3700
|
-
sm: "[--fs-unit:10]", // text-xl: 1.25rem = 10 * 0.125rem
|
|
3701
|
-
md: "[--fs-unit:12]", // text-2xl: 1.5rem = 12 * 0.125rem
|
|
3702
|
-
lg: "[--fs-unit:15]", // text-3xl: 1.875rem = 15 * 0.125rem
|
|
3703
|
-
xl: "[--fs-unit:18]" // text-4xl: 2.25rem = 18 * 0.125rem
|
|
3699
|
+
xs: "[--fs-unit:9] max-laptop:[--fs-unit:8] max-tablet:[--fs-unit:7]", // text-lg: 1.125rem = 9 * 0.125rem
|
|
3700
|
+
sm: "[--fs-unit:10] max-laptop:[--fs-unit:9] max-tablet:[--fs-unit:8]", // text-xl: 1.25rem = 10 * 0.125rem
|
|
3701
|
+
md: "[--fs-unit:12] max-laptop:[--fs-unit:11] max-tablet:[--fs-unit:10]", // text-2xl: 1.5rem = 12 * 0.125rem
|
|
3702
|
+
lg: "[--fs-unit:15] max-laptop:[--fs-unit:14] max-tablet:[--fs-unit:13]", // text-3xl: 1.875rem = 15 * 0.125rem
|
|
3703
|
+
xl: "[--fs-unit:18] max-laptop:[--fs-unit:17] max-tablet:[--fs-unit:16]" // text-4xl: 2.25rem = 18 * 0.125rem
|
|
3704
3704
|
});
|
|
3705
3705
|
}
|
|
3706
3706
|
}
|
|
@@ -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
|
|
3712
|
+
this.xs = "[--lh:1.333]"; // calc(1 / 0.75) ≈ 1.333
|
|
3713
3713
|
/** Small line height - matches text-sm default line height */
|
|
3714
|
-
this.sm = "[--lh
|
|
3714
|
+
this.sm = "[--lh:1.429]"; // calc(1.25 / 0.875) ≈ 1.429
|
|
3715
3715
|
/** Medium line height - matches text-base default line height */
|
|
3716
|
-
this.md = "[--lh
|
|
3716
|
+
this.md = "[--lh:1.5]"; // calc(1.5 / 1) = 1.5
|
|
3717
3717
|
/** Large line height - matches text-lg default line height */
|
|
3718
|
-
this.lg = "[--lh
|
|
3718
|
+
this.lg = "[--lh:1.556]"; // calc(1.75 / 1.125) ≈ 1.556
|
|
3719
3719
|
/** Extra-large line height - matches text-xl default line height */
|
|
3720
|
-
this.xl = "[--lh
|
|
3720
|
+
this.xl = "[--lh:1.4]"; // 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;
|
|
@@ -3739,29 +3739,29 @@ class LineHeightTheme extends BaseTheme {
|
|
|
3739
3739
|
// Static factory methods for different text size ranges
|
|
3740
3740
|
static createForSectionTitle() {
|
|
3741
3741
|
return new LineHeightTheme({
|
|
3742
|
-
xs: "[--lh
|
|
3743
|
-
sm: "[--lh
|
|
3744
|
-
md: "[--lh
|
|
3745
|
-
lg: "[--lh
|
|
3746
|
-
xl: "[--lh
|
|
3742
|
+
xs: "[--lh:1.333]", // text-2xl: calc(2 / 1.5) ≈ 1.333
|
|
3743
|
+
sm: "[--lh:1.2]", // text-3xl: calc(2.25 / 1.875) = 1.2
|
|
3744
|
+
md: "[--lh:1.111]", // text-4xl: calc(2.5 / 2.25) ≈ 1.111
|
|
3745
|
+
lg: "[--lh:1]", // text-5xl: 1
|
|
3746
|
+
xl: "[--lh:1]" // text-6xl+: 1
|
|
3747
3747
|
});
|
|
3748
3748
|
}
|
|
3749
3749
|
static createForPageTitle() {
|
|
3750
3750
|
return new LineHeightTheme({
|
|
3751
|
-
xs: "[--lh
|
|
3752
|
-
sm: "[--lh
|
|
3753
|
-
md: "[--lh
|
|
3754
|
-
lg: "[--lh
|
|
3755
|
-
xl: "[--lh
|
|
3751
|
+
xs: "[--lh:1.2]", // text-3xl: calc(2.25 / 1.875) = 1.2
|
|
3752
|
+
sm: "[--lh:1.111]", // text-4xl: calc(2.5 / 2.25) ≈ 1.111
|
|
3753
|
+
md: "[--lh:1]", // text-5xl: 1
|
|
3754
|
+
lg: "[--lh:1]", // text-6xl: 1
|
|
3755
|
+
xl: "[--lh:1]" // text-7xl: 1
|
|
3756
3756
|
});
|
|
3757
3757
|
}
|
|
3758
3758
|
static createForTitle() {
|
|
3759
3759
|
return new LineHeightTheme({
|
|
3760
|
-
xs: "[--lh
|
|
3761
|
-
sm: "[--lh
|
|
3762
|
-
md: "[--lh
|
|
3763
|
-
lg: "[--lh
|
|
3764
|
-
xl: "[--lh
|
|
3760
|
+
xs: "[--lh:1.556]", // text-lg: calc(1.75 / 1.125) ≈ 1.556
|
|
3761
|
+
sm: "[--lh:1.4]", // text-xl: calc(1.75 / 1.25) = 1.4
|
|
3762
|
+
md: "[--lh:1.333]", // text-2xl: calc(2 / 1.5) ≈ 1.333
|
|
3763
|
+
lg: "[--lh:1.2]", // text-3xl: calc(2.25 / 1.875) = 1.2
|
|
3764
|
+
xl: "[--lh:1.111]" // text-4xl: calc(2.5 / 2.25) ≈ 1.111
|
|
3765
3765
|
});
|
|
3766
3766
|
}
|
|
3767
3767
|
}
|
|
@@ -4880,11 +4880,11 @@ const defaultButtonTheme = new ComponentTheme("button", "w-fit h-fit cursor-poin
|
|
|
4880
4880
|
gap: new GapTheme(true),
|
|
4881
4881
|
text: new FontSizeTheme(),
|
|
4882
4882
|
lineHeight: new LineHeightTheme({
|
|
4883
|
-
xs: "[--lh
|
|
4884
|
-
sm: "[--lh
|
|
4885
|
-
md: "[--lh
|
|
4886
|
-
lg: "[--lh
|
|
4887
|
-
xl: "[--lh
|
|
4883
|
+
xs: "[--lh:1.3]",
|
|
4884
|
+
sm: "[--lh:1.3]",
|
|
4885
|
+
md: "[--lh:1.3]",
|
|
4886
|
+
lg: "[--lh:1.3]",
|
|
4887
|
+
xl: "[--lh:1.3]"
|
|
4888
4888
|
}),
|
|
4889
4889
|
},
|
|
4890
4890
|
appearance: {
|
|
@@ -5490,11 +5490,11 @@ const defaultCheckTheme = new ComponentTheme("span", "invisible col-start-1 row-
|
|
|
5490
5490
|
const defaultCheckboxWrapperTheme = new ComponentTheme("span", "", {
|
|
5491
5491
|
size: {
|
|
5492
5492
|
height: new SizeTheme({
|
|
5493
|
-
xs: 'h-
|
|
5494
|
-
sm: 'h-
|
|
5495
|
-
md: 'h-
|
|
5496
|
-
lg: 'h-
|
|
5497
|
-
xl: 'h-
|
|
5493
|
+
xs: 'h-[calc(var(--lh)*var(--fs))]',
|
|
5494
|
+
sm: 'h-[calc(var(--lh)*var(--fs))]',
|
|
5495
|
+
md: 'h-[calc(var(--lh)*var(--fs))]',
|
|
5496
|
+
lg: 'h-[calc(var(--lh)*var(--fs))]',
|
|
5497
|
+
xl: 'h-[calc(var(--lh)*var(--fs))]'
|
|
5498
5498
|
})
|
|
5499
5499
|
},
|
|
5500
5500
|
layout: {
|
package/dist/ui.css
CHANGED
|
@@ -252,6 +252,12 @@
|
|
|
252
252
|
--br-base: var(--spacing);
|
|
253
253
|
--ui-br-base: calc(var(--spacing) * 0.5);
|
|
254
254
|
--fs-base: calc(var(--spacing) * 0.5);
|
|
255
|
+
--lh: 1;
|
|
256
|
+
--fs-unit: 8;
|
|
257
|
+
--gap-unit: 1;
|
|
258
|
+
--aspect-ratio: 1;
|
|
259
|
+
--py-unit: 1;
|
|
260
|
+
--br-unit: 1;
|
|
255
261
|
}
|
|
256
262
|
}
|
|
257
263
|
@layer base {
|
|
@@ -499,6 +505,9 @@
|
|
|
499
505
|
.table-cell {
|
|
500
506
|
display: table-cell;
|
|
501
507
|
}
|
|
508
|
+
.aspect-ratio {
|
|
509
|
+
aspect-ratio: var(--aspect-ratio);
|
|
510
|
+
}
|
|
502
511
|
.h-3 {
|
|
503
512
|
height: calc(var(--spacing) * 3);
|
|
504
513
|
}
|
|
@@ -514,11 +523,8 @@
|
|
|
514
523
|
.h-5 {
|
|
515
524
|
height: calc(var(--spacing) * 5);
|
|
516
525
|
}
|
|
517
|
-
.h
|
|
518
|
-
height: calc(var(--
|
|
519
|
-
}
|
|
520
|
-
.h-7 {
|
|
521
|
-
height: calc(var(--spacing) * 7);
|
|
526
|
+
.h-\[calc\(var\(--lh\)\*var\(--fs\)\)\] {
|
|
527
|
+
height: calc(var(--lh) * var(--fs));
|
|
522
528
|
}
|
|
523
529
|
.h-fit {
|
|
524
530
|
height: fit-content;
|
|
@@ -1644,32 +1650,32 @@
|
|
|
1644
1650
|
.\[--gap-unit\:6\] {
|
|
1645
1651
|
--gap-unit: 6;
|
|
1646
1652
|
}
|
|
1647
|
-
.\[--lh
|
|
1648
|
-
--lh
|
|
1653
|
+
.\[--lh\:1\.2\] {
|
|
1654
|
+
--lh: 1.2;
|
|
1649
1655
|
}
|
|
1650
|
-
.\[--lh
|
|
1651
|
-
--lh
|
|
1656
|
+
.\[--lh\:1\.3\] {
|
|
1657
|
+
--lh: 1.3;
|
|
1652
1658
|
}
|
|
1653
|
-
.\[--lh
|
|
1654
|
-
--lh
|
|
1659
|
+
.\[--lh\:1\.4\] {
|
|
1660
|
+
--lh: 1.4;
|
|
1655
1661
|
}
|
|
1656
|
-
.\[--lh
|
|
1657
|
-
--lh
|
|
1662
|
+
.\[--lh\:1\.5\] {
|
|
1663
|
+
--lh: 1.5;
|
|
1658
1664
|
}
|
|
1659
|
-
.\[--lh
|
|
1660
|
-
--lh
|
|
1665
|
+
.\[--lh\:1\.111\] {
|
|
1666
|
+
--lh: 1.111;
|
|
1661
1667
|
}
|
|
1662
|
-
.\[--lh
|
|
1663
|
-
--lh
|
|
1668
|
+
.\[--lh\:1\.333\] {
|
|
1669
|
+
--lh: 1.333;
|
|
1664
1670
|
}
|
|
1665
|
-
.\[--lh
|
|
1666
|
-
--lh
|
|
1671
|
+
.\[--lh\:1\.429\] {
|
|
1672
|
+
--lh: 1.429;
|
|
1667
1673
|
}
|
|
1668
|
-
.\[--lh
|
|
1669
|
-
--lh
|
|
1674
|
+
.\[--lh\:1\.556\] {
|
|
1675
|
+
--lh: 1.556;
|
|
1670
1676
|
}
|
|
1671
|
-
.\[--lh
|
|
1672
|
-
--lh
|
|
1677
|
+
.\[--lh\:1\] {
|
|
1678
|
+
--lh: 1;
|
|
1673
1679
|
}
|
|
1674
1680
|
.\[--py-unit\:0\.5\] {
|
|
1675
1681
|
--py-unit: 0.5;
|
|
@@ -2359,6 +2365,81 @@
|
|
|
2359
2365
|
flex-direction: column;
|
|
2360
2366
|
}
|
|
2361
2367
|
}
|
|
2368
|
+
.max-laptop\:\[--fs-unit\:8\] {
|
|
2369
|
+
@media (width < 64rem) {
|
|
2370
|
+
--fs-unit: 8;
|
|
2371
|
+
}
|
|
2372
|
+
}
|
|
2373
|
+
.max-laptop\:\[--fs-unit\:9\] {
|
|
2374
|
+
@media (width < 64rem) {
|
|
2375
|
+
--fs-unit: 9;
|
|
2376
|
+
}
|
|
2377
|
+
}
|
|
2378
|
+
.max-laptop\:\[--fs-unit\:10\] {
|
|
2379
|
+
@media (width < 64rem) {
|
|
2380
|
+
--fs-unit: 10;
|
|
2381
|
+
}
|
|
2382
|
+
}
|
|
2383
|
+
.max-laptop\:\[--fs-unit\:11\] {
|
|
2384
|
+
@media (width < 64rem) {
|
|
2385
|
+
--fs-unit: 11;
|
|
2386
|
+
}
|
|
2387
|
+
}
|
|
2388
|
+
.max-laptop\:\[--fs-unit\:12\] {
|
|
2389
|
+
@media (width < 64rem) {
|
|
2390
|
+
--fs-unit: 12;
|
|
2391
|
+
}
|
|
2392
|
+
}
|
|
2393
|
+
.max-laptop\:\[--fs-unit\:13\] {
|
|
2394
|
+
@media (width < 64rem) {
|
|
2395
|
+
--fs-unit: 13;
|
|
2396
|
+
}
|
|
2397
|
+
}
|
|
2398
|
+
.max-laptop\:\[--fs-unit\:14\] {
|
|
2399
|
+
@media (width < 64rem) {
|
|
2400
|
+
--fs-unit: 14;
|
|
2401
|
+
}
|
|
2402
|
+
}
|
|
2403
|
+
.max-laptop\:\[--fs-unit\:15\] {
|
|
2404
|
+
@media (width < 64rem) {
|
|
2405
|
+
--fs-unit: 15;
|
|
2406
|
+
}
|
|
2407
|
+
}
|
|
2408
|
+
.max-laptop\:\[--fs-unit\:16\] {
|
|
2409
|
+
@media (width < 64rem) {
|
|
2410
|
+
--fs-unit: 16;
|
|
2411
|
+
}
|
|
2412
|
+
}
|
|
2413
|
+
.max-laptop\:\[--fs-unit\:17\] {
|
|
2414
|
+
@media (width < 64rem) {
|
|
2415
|
+
--fs-unit: 17;
|
|
2416
|
+
}
|
|
2417
|
+
}
|
|
2418
|
+
.max-laptop\:\[--fs-unit\:21\] {
|
|
2419
|
+
@media (width < 64rem) {
|
|
2420
|
+
--fs-unit: 21;
|
|
2421
|
+
}
|
|
2422
|
+
}
|
|
2423
|
+
.max-laptop\:\[--fs-unit\:22\] {
|
|
2424
|
+
@media (width < 64rem) {
|
|
2425
|
+
--fs-unit: 22;
|
|
2426
|
+
}
|
|
2427
|
+
}
|
|
2428
|
+
.max-laptop\:\[--fs-unit\:27\] {
|
|
2429
|
+
@media (width < 64rem) {
|
|
2430
|
+
--fs-unit: 27;
|
|
2431
|
+
}
|
|
2432
|
+
}
|
|
2433
|
+
.max-laptop\:\[--fs-unit\:28\] {
|
|
2434
|
+
@media (width < 64rem) {
|
|
2435
|
+
--fs-unit: 28;
|
|
2436
|
+
}
|
|
2437
|
+
}
|
|
2438
|
+
.max-laptop\:\[--fs-unit\:33\] {
|
|
2439
|
+
@media (width < 64rem) {
|
|
2440
|
+
--fs-unit: 33;
|
|
2441
|
+
}
|
|
2442
|
+
}
|
|
2362
2443
|
.max-laptop\:\[--py-unit\:3\] {
|
|
2363
2444
|
@media (width < 64rem) {
|
|
2364
2445
|
--py-unit: 3;
|
|
@@ -2394,6 +2475,76 @@
|
|
|
2394
2475
|
flex-direction: column;
|
|
2395
2476
|
}
|
|
2396
2477
|
}
|
|
2478
|
+
.max-tablet\:\[--fs-unit\:7\] {
|
|
2479
|
+
@media (width < 48rem) {
|
|
2480
|
+
--fs-unit: 7;
|
|
2481
|
+
}
|
|
2482
|
+
}
|
|
2483
|
+
.max-tablet\:\[--fs-unit\:8\] {
|
|
2484
|
+
@media (width < 48rem) {
|
|
2485
|
+
--fs-unit: 8;
|
|
2486
|
+
}
|
|
2487
|
+
}
|
|
2488
|
+
.max-tablet\:\[--fs-unit\:9\] {
|
|
2489
|
+
@media (width < 48rem) {
|
|
2490
|
+
--fs-unit: 9;
|
|
2491
|
+
}
|
|
2492
|
+
}
|
|
2493
|
+
.max-tablet\:\[--fs-unit\:10\] {
|
|
2494
|
+
@media (width < 48rem) {
|
|
2495
|
+
--fs-unit: 10;
|
|
2496
|
+
}
|
|
2497
|
+
}
|
|
2498
|
+
.max-tablet\:\[--fs-unit\:11\] {
|
|
2499
|
+
@media (width < 48rem) {
|
|
2500
|
+
--fs-unit: 11;
|
|
2501
|
+
}
|
|
2502
|
+
}
|
|
2503
|
+
.max-tablet\:\[--fs-unit\:12\] {
|
|
2504
|
+
@media (width < 48rem) {
|
|
2505
|
+
--fs-unit: 12;
|
|
2506
|
+
}
|
|
2507
|
+
}
|
|
2508
|
+
.max-tablet\:\[--fs-unit\:13\] {
|
|
2509
|
+
@media (width < 48rem) {
|
|
2510
|
+
--fs-unit: 13;
|
|
2511
|
+
}
|
|
2512
|
+
}
|
|
2513
|
+
.max-tablet\:\[--fs-unit\:14\] {
|
|
2514
|
+
@media (width < 48rem) {
|
|
2515
|
+
--fs-unit: 14;
|
|
2516
|
+
}
|
|
2517
|
+
}
|
|
2518
|
+
.max-tablet\:\[--fs-unit\:16\] {
|
|
2519
|
+
@media (width < 48rem) {
|
|
2520
|
+
--fs-unit: 16;
|
|
2521
|
+
}
|
|
2522
|
+
}
|
|
2523
|
+
.max-tablet\:\[--fs-unit\:18\] {
|
|
2524
|
+
@media (width < 48rem) {
|
|
2525
|
+
--fs-unit: 18;
|
|
2526
|
+
}
|
|
2527
|
+
}
|
|
2528
|
+
.max-tablet\:\[--fs-unit\:20\] {
|
|
2529
|
+
@media (width < 48rem) {
|
|
2530
|
+
--fs-unit: 20;
|
|
2531
|
+
}
|
|
2532
|
+
}
|
|
2533
|
+
.max-tablet\:\[--fs-unit\:24\] {
|
|
2534
|
+
@media (width < 48rem) {
|
|
2535
|
+
--fs-unit: 24;
|
|
2536
|
+
}
|
|
2537
|
+
}
|
|
2538
|
+
.max-tablet\:\[--fs-unit\:26\] {
|
|
2539
|
+
@media (width < 48rem) {
|
|
2540
|
+
--fs-unit: 26;
|
|
2541
|
+
}
|
|
2542
|
+
}
|
|
2543
|
+
.max-tablet\:\[--fs-unit\:30\] {
|
|
2544
|
+
@media (width < 48rem) {
|
|
2545
|
+
--fs-unit: 30;
|
|
2546
|
+
}
|
|
2547
|
+
}
|
|
2397
2548
|
.max-tablet\:\[--py-unit\:2\] {
|
|
2398
2549
|
@media (width < 48rem) {
|
|
2399
2550
|
--py-unit: 2;
|
|
@@ -2453,21 +2604,14 @@
|
|
|
2453
2604
|
@layer theme {
|
|
2454
2605
|
@layer base {
|
|
2455
2606
|
:where(*) {
|
|
2456
|
-
--gap-unit: 1;
|
|
2457
2607
|
--gap: calc(var(--gap-unit) * var(--layout-spacing));
|
|
2458
2608
|
--ui-gap: calc(var(--gap-unit) * var(--ui-spacing));
|
|
2459
|
-
--aspect-ratio: 1;
|
|
2460
|
-
--py-unit: 1;
|
|
2461
2609
|
--px: calc(var(--aspect-ratio) * var(--py-unit) * var(--layout-spacing));
|
|
2462
2610
|
--ui-px: calc(var(--aspect-ratio) * var(--py-unit) * var(--ui-spacing));
|
|
2463
2611
|
--py: calc(var(--py-unit) * var(--layout-spacing));
|
|
2464
2612
|
--ui-py: calc(var(--py-unit) * var(--ui-spacing));
|
|
2465
|
-
--br-unit: 1;
|
|
2466
2613
|
--br: calc(var(--br-unit) * var(--br-base));
|
|
2467
2614
|
--ui-br: calc(var(--br-unit) * var(--ui-br-base));
|
|
2468
|
-
--lh-unit: 1.5;
|
|
2469
|
-
--lh: var(--lh-unit);
|
|
2470
|
-
--fs-unit: 8;
|
|
2471
2615
|
--fs: calc(var(--fs-unit) * var(--fs-base));
|
|
2472
2616
|
}
|
|
2473
2617
|
}
|
package/dist/vars.css
CHANGED
|
@@ -156,29 +156,28 @@
|
|
|
156
156
|
--breakpoint-tablet: 48rem;
|
|
157
157
|
--breakpoint-laptop: 64rem;
|
|
158
158
|
--breakpoint-desktop: 80rem;
|
|
159
|
+
|
|
160
|
+
--lh: 1;
|
|
161
|
+
--fs-unit: 8; /* Default to text-base (1rem = 8 * 0.125rem) */
|
|
162
|
+
--gap-unit: 1;
|
|
163
|
+
--aspect-ratio: 1;
|
|
164
|
+
--py-unit: 1;
|
|
165
|
+
--br-unit: 1;
|
|
159
166
|
}
|
|
160
167
|
|
|
161
168
|
@layer base {
|
|
162
169
|
:where(*) {
|
|
163
|
-
--gap-unit: 1;
|
|
164
170
|
--gap: calc(var(--gap-unit) * var(--layout-spacing));
|
|
165
171
|
--ui-gap: calc(var(--gap-unit) * var(--ui-spacing));
|
|
166
172
|
|
|
167
|
-
--aspect-ratio: 1;
|
|
168
|
-
--py-unit: 1;
|
|
169
173
|
--px: calc(var(--aspect-ratio) * var(--py-unit) * var(--layout-spacing));
|
|
170
174
|
--ui-px: calc(var(--aspect-ratio) * var(--py-unit) * var(--ui-spacing));
|
|
171
175
|
--py: calc(var(--py-unit) * var(--layout-spacing));
|
|
172
176
|
--ui-py: calc(var(--py-unit) * var(--ui-spacing));
|
|
173
177
|
|
|
174
|
-
--br-unit: 1;
|
|
175
178
|
--br: calc(var(--br-unit) * var(--br-base));
|
|
176
179
|
--ui-br: calc(var(--br-unit) * var(--ui-br-base));
|
|
177
180
|
|
|
178
|
-
--lh-unit: 1.5;
|
|
179
|
-
--lh: var(--lh-unit);
|
|
180
|
-
|
|
181
|
-
--fs-unit: 8; /* Default to text-base (1rem = 8 * 0.125rem) */
|
|
182
181
|
--fs: calc(var(--fs-unit) * var(--fs-base));
|
|
183
182
|
}
|
|
184
183
|
}
|
package/package.json
CHANGED