@vaneui/ui 0.3.1-alpha.20251002111935.e184ae6 → 0.3.1-alpha.20251110140105.0a5a63e

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
@@ -4948,26 +4948,30 @@ const defaultBadgeTheme = new ComponentTheme("span", "w-fit h-fit transition-all
4948
4948
  return props.href ? "a" : "span";
4949
4949
  });
4950
4950
 
4951
- const chipAspectRatioClasses = {
4952
- xs: "[--aspect-ratio:2]",
4953
- sm: "[--aspect-ratio:2]",
4954
- md: "[--aspect-ratio:2]",
4955
- lg: "[--aspect-ratio:2]",
4956
- xl: "[--aspect-ratio:2]",
4957
- };
4958
- const chipPyClasses = {
4959
- xs: "[--py-unit:0.5]",
4960
- sm: "[--py-unit:1]",
4961
- md: "[--py-unit:1.5]",
4962
- lg: "[--py-unit:2]",
4963
- xl: "[--py-unit:2.5]",
4964
- };
4965
4951
  const defaultChipTheme = new ComponentTheme("span", "w-fit h-fit transition-all duration-200 whitespace-nowrap", {
4966
4952
  size: {
4967
- px: new PxTheme(chipAspectRatioClasses, true),
4968
- py: new PyTheme(chipPyClasses, true),
4953
+ px: new PxTheme({
4954
+ xs: "[--aspect-ratio:2]",
4955
+ sm: "[--aspect-ratio:2]",
4956
+ md: "[--aspect-ratio:2]",
4957
+ lg: "[--aspect-ratio:2]",
4958
+ xl: "[--aspect-ratio:2]",
4959
+ }, true),
4960
+ py: new PyTheme({
4961
+ xs: "[--py-unit:0.5]",
4962
+ sm: "[--py-unit:1]",
4963
+ md: "[--py-unit:1.5]",
4964
+ lg: "[--py-unit:2]",
4965
+ xl: "[--py-unit:2.5]",
4966
+ }, true),
4969
4967
  text: new FontSizeTheme(),
4970
- lineHeight: LineHeightTheme.createDefault(),
4968
+ lineHeight: new LineHeightTheme({
4969
+ xs: "[--lh:1.2]",
4970
+ sm: "[--lh:1.2]",
4971
+ md: "[--lh:1.2]",
4972
+ lg: "[--lh:1.2]",
4973
+ xl: "[--lh:1.2]"
4974
+ }),
4971
4975
  gap: new GapTheme(true)
4972
4976
  },
4973
4977
  appearance: {
@@ -4992,26 +4996,30 @@ const defaultChipTheme = new ComponentTheme("span", "w-fit h-fit transition-all
4992
4996
  return props.href ? "a" : "span";
4993
4997
  });
4994
4998
 
4995
- const codeAspectRatioClasses = {
4996
- xs: "[--aspect-ratio:1.5]",
4997
- sm: "[--aspect-ratio:1.5]",
4998
- md: "[--aspect-ratio:1.5]",
4999
- lg: "[--aspect-ratio:1.5]",
5000
- xl: "[--aspect-ratio:1.5]",
5001
- };
5002
- const codePyClasses = {
5003
- xs: "[--py-unit:0.5]",
5004
- sm: "[--py-unit:0.5]",
5005
- md: "[--py-unit:1]",
5006
- lg: "[--py-unit:1]",
5007
- xl: "[--py-unit:1]",
5008
- };
5009
4999
  const defaultCodeTheme = new ComponentTheme("code", "", {
5010
5000
  size: {
5011
- px: new PxTheme(codeAspectRatioClasses, true),
5012
- py: new PyTheme(codePyClasses, true),
5001
+ px: new PxTheme({
5002
+ xs: "[--aspect-ratio:1.5]",
5003
+ sm: "[--aspect-ratio:1.5]",
5004
+ md: "[--aspect-ratio:1.5]",
5005
+ lg: "[--aspect-ratio:1.5]",
5006
+ xl: "[--aspect-ratio:1.5]",
5007
+ }, true),
5008
+ py: new PyTheme({
5009
+ xs: "[--py-unit:1]",
5010
+ sm: "[--py-unit:1.5]",
5011
+ md: "[--py-unit:1.5]",
5012
+ lg: "[--py-unit:2]",
5013
+ xl: "[--py-unit:2]",
5014
+ }, true),
5013
5015
  text: new FontSizeTheme(),
5014
- lineHeight: LineHeightTheme.createDefault(),
5016
+ lineHeight: new LineHeightTheme({
5017
+ xs: "[--lh:1.2]",
5018
+ sm: "[--lh:1.2]",
5019
+ md: "[--lh:1.2]",
5020
+ lg: "[--lh:1.2]",
5021
+ xl: "[--lh:1.2]"
5022
+ }),
5015
5023
  gap: new GapTheme(true)
5016
5024
  },
5017
5025
  appearance: {
@@ -5448,14 +5456,14 @@ const defaultGrid5Theme = new ComponentTheme("div", "grid-cols-1 sm:grid-cols-2
5448
5456
  const defaultGrid6Theme = new ComponentTheme("div", "grid-cols-1 sm:grid-cols-2 md:grid-cols-4 lg:grid-cols-6", gridSubThemes, themeDefaults.grid6, GRID_CATEGORIES);
5449
5457
 
5450
5458
  var _a, _b, _c;
5451
- const defaultCheckboxTheme = new ComponentTheme("input", "peer col-start-1 row-start-1 cursor-pointer appearance-none ring-transparent", {
5459
+ const defaultCheckboxTheme = new ComponentTheme("input", "peer col-start-1 row-start-1 cursor-pointer appearance-none ring-transparent size-(--ui-size)", {
5452
5460
  size: {
5453
5461
  size: new SizeTheme({
5454
- xs: 'size-(--ui-size) [--size-unit:3]',
5455
- sm: 'size-(--ui-size) [--size-unit:3.5]',
5456
- md: 'size-(--ui-size) [--size-unit:4]',
5457
- lg: 'size-(--ui-size) [--size-unit:4.5]',
5458
- xl: 'size-(--ui-size) [--size-unit:5]'
5462
+ xs: '[--size-unit:3]',
5463
+ sm: '[--size-unit:3.5]',
5464
+ md: '[--size-unit:4]',
5465
+ lg: '[--size-unit:4.5]',
5466
+ xl: '[--size-unit:5]'
5459
5467
  }),
5460
5468
  text: new FontSizeTheme()
5461
5469
  },