@vaneui/ui 0.3.1-alpha.20250916140129.7475230 → 0.3.1-alpha.20250917170051.b819c80

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
@@ -3686,6 +3686,34 @@ const layoutGapClasses = {
3686
3686
  lg: "gap-(--layout-gap-lg)",
3687
3687
  xl: "gap-(--layout-gap-xl)",
3688
3688
  };
3689
+ const layoutPaddingXClasses = {
3690
+ xs: "px-(--layout-px-xs)",
3691
+ sm: "px-(--layout-px-sm)",
3692
+ md: "px-(--layout-px-md)",
3693
+ lg: "px-(--layout-px-lg)",
3694
+ xl: "px-(--layout-px-xl)",
3695
+ };
3696
+ const layoutPaddingYClasses = {
3697
+ xs: "py-(--layout-py-xs)",
3698
+ sm: "py-(--layout-py-sm)",
3699
+ md: "py-(--layout-py-md)",
3700
+ lg: "py-(--layout-py-lg)",
3701
+ xl: "py-(--layout-py-xl)",
3702
+ };
3703
+ const sectionPaddingXClasses = {
3704
+ xs: "px-(--section-px-xs)",
3705
+ sm: "px-(--section-px-sm)",
3706
+ md: "px-(--section-px-md)",
3707
+ lg: "px-(--section-px-lg)",
3708
+ xl: "px-(--section-px-xl)",
3709
+ };
3710
+ const sectionPaddingYClasses = {
3711
+ xs: "py-(--section-py-xs)",
3712
+ sm: "py-(--section-py-sm)",
3713
+ md: "py-(--section-py-md)",
3714
+ lg: "py-(--section-py-lg)",
3715
+ xl: "py-(--section-py-xl)",
3716
+ };
3689
3717
 
3690
3718
  class GapTheme extends BaseTheme {
3691
3719
  constructor(sizeMap) {
@@ -3881,9 +3909,7 @@ class PxTheme extends PaddingTheme {
3881
3909
  // Override with PxTheme's default classes if no custom sizeMap provided
3882
3910
  if (!sizeMap) {
3883
3911
  ComponentKeys.size.forEach((key) => {
3884
- this[key] = {
3885
- xs: "px-2", sm: "px-4", md: "px-6", lg: "px-8", xl: "px-10"
3886
- }[key];
3912
+ this[key] = layoutPaddingXClasses[key];
3887
3913
  });
3888
3914
  }
3889
3915
  }
@@ -3896,9 +3922,7 @@ class PyTheme extends PaddingTheme {
3896
3922
  // Override with PyTheme's default classes if no custom sizeMap provided
3897
3923
  if (!sizeMap) {
3898
3924
  ComponentKeys.size.forEach((key) => {
3899
- this[key] = {
3900
- xs: "py-2", sm: "py-4", md: "py-6", lg: "py-8", xl: "py-10"
3901
- }[key];
3925
+ this[key] = layoutPaddingYClasses[key];
3902
3926
  });
3903
3927
  }
3904
3928
  }
@@ -4741,9 +4765,7 @@ const themeDefaults = {
4741
4765
 
4742
4766
  const defaultButtonTheme = new ComponentTheme("button", "w-fit h-fit cursor-pointer transition-all duration-200 whitespace-nowrap", {
4743
4767
  size: {
4744
- px: new PxTheme({
4745
- xs: 'px-2', sm: 'px-3', md: 'px-4', lg: 'px-5', xl: 'px-6',
4746
- }),
4768
+ px: new PxTheme({ xs: 'px-2', sm: 'px-3', md: 'px-4', lg: 'px-5', xl: 'px-6', }),
4747
4769
  py: new PyTheme({ xs: 'py-1', sm: 'py-1.5', md: 'py-2', lg: 'py-2.5', xl: 'py-3' }),
4748
4770
  gap: new GapTheme({ xs: 'gap-1', sm: 'gap-1.5', md: 'gap-2', lg: 'gap-2.5', xl: 'gap-3' }),
4749
4771
  text: new SizeTheme({ xs: 'text-xs', sm: 'text-sm', md: 'text-base', lg: 'text-lg', xl: 'text-xl' }),
@@ -5063,27 +5085,9 @@ class BreakpointTheme extends BaseTheme {
5063
5085
 
5064
5086
  const defaultCardTheme = new ComponentTheme("div", "", {
5065
5087
  size: {
5066
- px: new PxTheme({
5067
- xs: "px-4",
5068
- sm: "px-5 max-lg:px-4",
5069
- md: "px-6 max-lg:px-5",
5070
- lg: "px-7 max-lg:px-6 max-md:px-5",
5071
- xl: "px-8 max-lg:px-7 max-md:px-6"
5072
- }),
5073
- py: new PyTheme({
5074
- xs: "py-4",
5075
- sm: "py-5 max-lg:py-4",
5076
- md: "py-6 max-lg:py-5",
5077
- lg: "py-7 max-lg:py-6 max-md:py-5",
5078
- xl: "py-8 max-lg:py-7 max-md:py-6"
5079
- }),
5080
- gap: new GapTheme({
5081
- xs: "gap-2",
5082
- sm: "gap-3 max-lg:gap-2",
5083
- md: "gap-4 max-lg:gap-3",
5084
- lg: "gap-5 max-lg:gap-4 max-md:gap-3",
5085
- xl: "gap-6 max-lg:gap-5 max-md:gap-4"
5086
- }),
5088
+ px: new PxTheme(),
5089
+ py: new PyTheme(),
5090
+ gap: new GapTheme(),
5087
5091
  },
5088
5092
  layout: {
5089
5093
  ...defaultLayoutsThemes,
@@ -5183,8 +5187,8 @@ const defaultColTheme = new ComponentTheme("div", "", {
5183
5187
 
5184
5188
  const defaultStackTheme = new ComponentTheme("div", "", {
5185
5189
  size: {
5186
- px: new PxTheme({ xs: 'px-2', sm: 'px-3', md: 'px-4', lg: 'px-5', xl: 'px-6' }),
5187
- py: new PyTheme({ xs: 'py-2', sm: 'py-3', md: 'py-4', lg: 'py-5', xl: 'py-6' }),
5190
+ px: new PxTheme(),
5191
+ py: new PyTheme(),
5188
5192
  gap: new GapTheme(),
5189
5193
  breakpoint: new BreakpointTheme(),
5190
5194
  },
@@ -5207,21 +5211,9 @@ const defaultStackTheme = new ComponentTheme("div", "", {
5207
5211
 
5208
5212
  const defaultSectionTheme = new ComponentTheme("div", "w-full flex-col", {
5209
5213
  size: {
5210
- px: new PxTheme({
5211
- xs: 'px-5 max-lg:px-4 max-md:px-3',
5212
- sm: 'px-6 max-lg:px-5 max-md:px-4',
5213
- md: 'px-7 max-lg:px-6 max-md:px-5',
5214
- lg: 'px-8 max-lg:px-7 max-md:px-6',
5215
- xl: 'px-9 max-lg:px-8 max-md:px-7',
5216
- }),
5217
- py: new PyTheme({
5218
- xs: 'py-4 max-md:py-3',
5219
- sm: 'py-8 max-md:py-6',
5220
- md: 'py-12 max-md:py-6',
5221
- lg: 'py-16 max-lg:py-14 max-md:py-12',
5222
- xl: 'py-20 max-lg:py-16 max-md:py-12',
5223
- }),
5224
- gap: new GapTheme({ xs: 'gap-4', sm: 'gap-6', md: 'gap-8', lg: 'gap-12', xl: 'gap-16' }),
5214
+ px: new PxTheme(sectionPaddingXClasses),
5215
+ py: new PyTheme(sectionPaddingYClasses),
5216
+ gap: new GapTheme(),
5225
5217
  breakpoint: new BreakpointTheme(),
5226
5218
  },
5227
5219
  appearance: {