@vaneui/ui 0.2.1-alpha.20250830120134.26927ee → 0.2.1-alpha.20250830140007.8b4cce3
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/img.d.ts +2 -0
- package/dist/components/ui/label.d.ts +2 -0
- package/dist/components/ui/props/keys.d.ts +11 -11
- package/dist/components/ui/theme/cardTheme.d.ts +5 -4
- package/dist/components/ui/theme/colTheme.d.ts +2 -1
- package/dist/components/ui/theme/containerTheme.d.ts +4 -4
- package/dist/components/ui/theme/gridTheme.d.ts +3 -1
- package/dist/components/ui/theme/labelTheme.d.ts +2 -1
- package/dist/components/ui/theme/rowTheme.d.ts +2 -1
- package/dist/components/ui/theme/stackTheme.d.ts +2 -1
- package/dist/components/ui/theme/typographyTheme.d.ts +3 -2
- package/dist/components/ui/typography.d.ts +2 -0
- package/dist/index.esm.js +36 -38
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +36 -38
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -74,22 +74,22 @@ const BADGE_CATEGORIES = INTERACTIVE_CATEGORIES;
|
|
|
74
74
|
const CHIP_CATEGORIES = INTERACTIVE_CATEGORIES;
|
|
75
75
|
const CODE_CATEGORIES = INTERACTIVE_CATEGORIES;
|
|
76
76
|
//typography:
|
|
77
|
-
const TYPOGRAPHY_CATEGORIES = [...TYPOGRAPHY_FULL, ...LAYOUT_CORE, ...VISUAL_CORE];
|
|
78
|
-
const LIST_CATEGORIES = [...TYPOGRAPHY_FULL, ...LIST_STYLE, ...LAYOUT_CORE, ...VISUAL_CORE, ...PADDING];
|
|
77
|
+
const TYPOGRAPHY_CATEGORIES = [...TYPOGRAPHY_FULL, ...LAYOUT_CORE, ...VISUAL_CORE, ...VARIANT];
|
|
78
|
+
const LIST_CATEGORIES = [...TYPOGRAPHY_FULL, ...LIST_STYLE, ...LAYOUT_CORE, ...VISUAL_CORE, ...PADDING, ...VARIANT];
|
|
79
79
|
//layout:
|
|
80
|
-
const GRID_CATEGORIES = [...LAYOUT_FULL, ...VISUAL_CORE];
|
|
81
|
-
const CONTAINER_CATEGORIES = [...LAYOUT_FULL, ...VISUAL_FULL];
|
|
82
|
-
const COL_CATEGORIES = [...LAYOUT_FULL, ...VISUAL_FULL];
|
|
83
|
-
const ROW_CATEGORIES = [...LAYOUT_FULL, ...BREAKPOINT, ...VISUAL_FULL];
|
|
84
|
-
const STACK_CATEGORIES = [...LAYOUT_FULL, ...BREAKPOINT, ...PADDING, ...VISUAL_FULL];
|
|
85
|
-
const CARD_CATEGORIES = [...TYPOGRAPHY_FULL, ...LAYOUT_FULL, ...BREAKPOINT, ...VISUAL_FULL, ...PADDING];
|
|
80
|
+
const GRID_CATEGORIES = [...LAYOUT_FULL, ...VISUAL_CORE, ...VARIANT];
|
|
81
|
+
const CONTAINER_CATEGORIES = [...LAYOUT_FULL, ...VISUAL_FULL, ...VARIANT];
|
|
82
|
+
const COL_CATEGORIES = [...LAYOUT_FULL, ...VISUAL_FULL, ...VARIANT];
|
|
83
|
+
const ROW_CATEGORIES = [...LAYOUT_FULL, ...BREAKPOINT, ...VISUAL_FULL, ...VARIANT];
|
|
84
|
+
const STACK_CATEGORIES = [...LAYOUT_FULL, ...BREAKPOINT, ...PADDING, ...VISUAL_FULL, ...VARIANT];
|
|
85
|
+
const CARD_CATEGORIES = [...TYPOGRAPHY_FULL, ...LAYOUT_FULL, ...BREAKPOINT, ...VISUAL_FULL, ...PADDING, ...VARIANT];
|
|
86
86
|
const DIVIDER_CATEGORIES = [...LAYOUT_CORE, ...VISUAL_CORE, ...PADDING];
|
|
87
|
-
const SECTION_CATEGORIES = [...LAYOUT_FULL, ...VISUAL_FULL, ...PADDING, ...BREAKPOINT];
|
|
87
|
+
const SECTION_CATEGORIES = [...LAYOUT_FULL, ...VISUAL_FULL, ...PADDING, ...BREAKPOINT, ...VARIANT];
|
|
88
88
|
// Form component categories
|
|
89
89
|
const CHECKBOX_CATEGORIES = [...LAYOUT_CORE, ...VISUAL_CORE, ...VISUAL_DECORATION, ...SHAPE, ...VARIANT];
|
|
90
|
-
const LABEL_CATEGORIES = [...TYPOGRAPHY_FULL, ...LAYOUT_FULL, ...VISUAL_CORE];
|
|
90
|
+
const LABEL_CATEGORIES = [...TYPOGRAPHY_FULL, ...LAYOUT_FULL, ...VISUAL_CORE, ...VARIANT];
|
|
91
91
|
// Media component categories
|
|
92
|
-
const IMG_CATEGORIES = [...LAYOUT_CORE, ...VISUAL_CORE, ...VISUAL_DECORATION, ...SHAPE];
|
|
92
|
+
const IMG_CATEGORIES = [...LAYOUT_CORE, ...VISUAL_CORE, ...VISUAL_DECORATION, ...SHAPE, ...VARIANT];
|
|
93
93
|
const COMPONENT = ['button', 'badge', 'chip', 'code', 'card', 'divider', 'container', 'row', 'col', 'stack', 'section',
|
|
94
94
|
'grid2', 'grid3', 'grid4', 'pageTitle', 'sectionTitle', 'title', 'text', 'link', 'list', 'listItem', 'checkbox', 'label', 'img'];
|
|
95
95
|
const ComponentCategories = {
|
|
@@ -4090,7 +4090,6 @@ const themeDefaults = {
|
|
|
4090
4090
|
md: true,
|
|
4091
4091
|
flex: true,
|
|
4092
4092
|
gap: true,
|
|
4093
|
-
default: true,
|
|
4094
4093
|
sans: true,
|
|
4095
4094
|
medium: true,
|
|
4096
4095
|
},
|
|
@@ -4109,27 +4108,23 @@ const themeDefaults = {
|
|
|
4109
4108
|
},
|
|
4110
4109
|
text: {
|
|
4111
4110
|
md: true,
|
|
4112
|
-
default: true,
|
|
4113
4111
|
sans: true,
|
|
4114
4112
|
textLeft: true,
|
|
4115
4113
|
},
|
|
4116
4114
|
title: {
|
|
4117
4115
|
md: true,
|
|
4118
|
-
default: true,
|
|
4119
4116
|
sans: true,
|
|
4120
4117
|
semibold: true,
|
|
4121
4118
|
textLeft: true,
|
|
4122
4119
|
},
|
|
4123
4120
|
pageTitle: {
|
|
4124
4121
|
md: true,
|
|
4125
|
-
default: true,
|
|
4126
4122
|
sans: true,
|
|
4127
4123
|
semibold: true,
|
|
4128
4124
|
textLeft: true,
|
|
4129
4125
|
},
|
|
4130
4126
|
sectionTitle: {
|
|
4131
4127
|
md: true,
|
|
4132
|
-
default: true,
|
|
4133
4128
|
sans: true,
|
|
4134
4129
|
semibold: true,
|
|
4135
4130
|
textLeft: true,
|
|
@@ -4144,7 +4139,6 @@ const themeDefaults = {
|
|
|
4144
4139
|
},
|
|
4145
4140
|
list: {
|
|
4146
4141
|
md: true,
|
|
4147
|
-
default: true,
|
|
4148
4142
|
sans: true,
|
|
4149
4143
|
normal: true,
|
|
4150
4144
|
padding: true,
|
|
@@ -4407,7 +4401,7 @@ const createTypographyComponentTheme = (tag, base = "text-balance", textSizeMap
|
|
|
4407
4401
|
text: new SizeTheme(textSizeMap),
|
|
4408
4402
|
},
|
|
4409
4403
|
appearance: {
|
|
4410
|
-
text:
|
|
4404
|
+
text: GenericVariantTheme.createUIElementTextTheme(),
|
|
4411
4405
|
},
|
|
4412
4406
|
typography: defaultTypographyTheme,
|
|
4413
4407
|
layout: defaultLayoutTheme,
|
|
@@ -4442,7 +4436,7 @@ const linkTheme = new ComponentTheme("a", "hover:underline w-fit cursor-pointer"
|
|
|
4442
4436
|
text: new SizeTheme(textSizeClasses, false),
|
|
4443
4437
|
},
|
|
4444
4438
|
appearance: {
|
|
4445
|
-
text:
|
|
4439
|
+
text: GenericVariantTheme.createUIElementTextTheme(),
|
|
4446
4440
|
},
|
|
4447
4441
|
typography: defaultTypographyTheme,
|
|
4448
4442
|
layout: defaultLayoutTheme,
|
|
@@ -4453,7 +4447,7 @@ const listItemTheme = new ComponentTheme("li", "", {
|
|
|
4453
4447
|
text: new SizeTheme(textSizeClasses, false),
|
|
4454
4448
|
},
|
|
4455
4449
|
appearance: {
|
|
4456
|
-
text:
|
|
4450
|
+
text: GenericVariantTheme.createUIElementTextTheme(),
|
|
4457
4451
|
},
|
|
4458
4452
|
typography: defaultTypographyTheme,
|
|
4459
4453
|
}, themeDefaults.listItem, TYPOGRAPHY_CATEGORIES);
|
|
@@ -4464,7 +4458,7 @@ const listTheme = new ComponentTheme("ul", "list-inside", {
|
|
|
4464
4458
|
paddingLeft: new PlTheme(),
|
|
4465
4459
|
},
|
|
4466
4460
|
appearance: {
|
|
4467
|
-
text:
|
|
4461
|
+
text: GenericVariantTheme.createUIElementTextTheme(),
|
|
4468
4462
|
},
|
|
4469
4463
|
typography: defaultTypographyTheme,
|
|
4470
4464
|
layout: defaultLayoutTheme,
|
|
@@ -4530,10 +4524,10 @@ const defaultCardTheme = new ComponentTheme("div", "", {
|
|
|
4530
4524
|
shadow: ShadowAppearanceTheme.createLayoutTheme(),
|
|
4531
4525
|
},
|
|
4532
4526
|
appearance: {
|
|
4533
|
-
background:
|
|
4534
|
-
text:
|
|
4535
|
-
border:
|
|
4536
|
-
ring:
|
|
4527
|
+
background: GenericVariantTheme.createSimpleBgAppearanceTheme(),
|
|
4528
|
+
text: GenericVariantTheme.createUIElementTextTheme(),
|
|
4529
|
+
border: GenericVariantTheme.createUIElementBorderTheme(),
|
|
4530
|
+
ring: GenericVariantTheme.createUIElementRingTheme(),
|
|
4537
4531
|
},
|
|
4538
4532
|
typography: defaultTypographyTheme,
|
|
4539
4533
|
}, themeDefaults.card, CARD_CATEGORIES, (props, defaults) => {
|
|
@@ -4554,7 +4548,8 @@ const defaultRowTheme = new ComponentTheme("div", "", {
|
|
|
4554
4548
|
radius: RadiusTheme.createLayoutTheme(),
|
|
4555
4549
|
},
|
|
4556
4550
|
appearance: {
|
|
4557
|
-
background:
|
|
4551
|
+
background: GenericVariantTheme.createSimpleBgAppearanceTheme(),
|
|
4552
|
+
text: GenericVariantTheme.createUIElementTextTheme(),
|
|
4558
4553
|
border: GenericVariantTheme.createUIElementBorderTheme(),
|
|
4559
4554
|
ring: GenericVariantTheme.createUIElementRingTheme(),
|
|
4560
4555
|
shadow: GenericVariantTheme.createLayoutShadowTheme(),
|
|
@@ -4596,10 +4591,10 @@ const defaultContainerTheme = new ComponentTheme("div", "flex-col mx-auto w-full
|
|
|
4596
4591
|
radius: RadiusTheme.createLayoutTheme(),
|
|
4597
4592
|
},
|
|
4598
4593
|
appearance: {
|
|
4599
|
-
background:
|
|
4600
|
-
text:
|
|
4601
|
-
border:
|
|
4602
|
-
ring:
|
|
4594
|
+
background: GenericVariantTheme.createSimpleBgAppearanceTheme(),
|
|
4595
|
+
text: GenericVariantTheme.createUIElementTextTheme(),
|
|
4596
|
+
border: GenericVariantTheme.createUIElementBorderTheme(),
|
|
4597
|
+
ring: GenericVariantTheme.createUIElementRingTheme(),
|
|
4603
4598
|
shadow: GenericVariantTheme.createLayoutShadowTheme(),
|
|
4604
4599
|
}
|
|
4605
4600
|
}, themeDefaults.container, CONTAINER_CATEGORIES, (props, defaults) => {
|
|
@@ -4619,7 +4614,8 @@ const defaultColTheme = new ComponentTheme("div", "", {
|
|
|
4619
4614
|
radius: RadiusTheme.createLayoutTheme(),
|
|
4620
4615
|
},
|
|
4621
4616
|
appearance: {
|
|
4622
|
-
background:
|
|
4617
|
+
background: GenericVariantTheme.createSimpleBgAppearanceTheme(),
|
|
4618
|
+
text: GenericVariantTheme.createUIElementTextTheme(),
|
|
4623
4619
|
border: GenericVariantTheme.createUIElementBorderTheme(),
|
|
4624
4620
|
ring: GenericVariantTheme.createUIElementRingTheme(),
|
|
4625
4621
|
shadow: GenericVariantTheme.createLayoutShadowTheme(),
|
|
@@ -4644,7 +4640,8 @@ const defaultStackTheme = new ComponentTheme("div", "", {
|
|
|
4644
4640
|
radius: RadiusTheme.createLayoutTheme(),
|
|
4645
4641
|
},
|
|
4646
4642
|
appearance: {
|
|
4647
|
-
background:
|
|
4643
|
+
background: GenericVariantTheme.createSimpleBgAppearanceTheme(),
|
|
4644
|
+
text: GenericVariantTheme.createUIElementTextTheme(),
|
|
4648
4645
|
border: GenericVariantTheme.createUIElementBorderTheme(),
|
|
4649
4646
|
ring: GenericVariantTheme.createUIElementRingTheme(),
|
|
4650
4647
|
shadow: GenericVariantTheme.createLayoutShadowTheme(),
|
|
@@ -4673,10 +4670,10 @@ const defaultSectionTheme = new ComponentTheme("div", "w-full flex-col", {
|
|
|
4673
4670
|
breakpoint: new BreakpointTheme(),
|
|
4674
4671
|
},
|
|
4675
4672
|
appearance: {
|
|
4676
|
-
background:
|
|
4677
|
-
text:
|
|
4678
|
-
border:
|
|
4679
|
-
ring:
|
|
4673
|
+
background: GenericVariantTheme.createSimpleBgAppearanceTheme(),
|
|
4674
|
+
text: GenericVariantTheme.createUIElementTextTheme(),
|
|
4675
|
+
border: GenericVariantTheme.createUIElementBorderTheme(),
|
|
4676
|
+
ring: GenericVariantTheme.createUIElementRingTheme(),
|
|
4680
4677
|
shadow: ShadowAppearanceTheme.createLayoutTheme(),
|
|
4681
4678
|
},
|
|
4682
4679
|
layout: {
|
|
@@ -4702,7 +4699,8 @@ const gridSubThemes = {
|
|
|
4702
4699
|
}),
|
|
4703
4700
|
},
|
|
4704
4701
|
appearance: {
|
|
4705
|
-
background:
|
|
4702
|
+
background: GenericVariantTheme.createSimpleBgAppearanceTheme(),
|
|
4703
|
+
text: GenericVariantTheme.createUIElementTextTheme(),
|
|
4706
4704
|
},
|
|
4707
4705
|
layout: {
|
|
4708
4706
|
...defaultLayoutTheme,
|
|
@@ -4782,7 +4780,7 @@ const defaultLabelTheme = new ComponentTheme("label", "has-[input]:cursor-pointe
|
|
|
4782
4780
|
gap: new GapTheme({ xs: 'gap-1.5', sm: 'gap-2', md: 'gap-2.5', lg: 'gap-3', xl: 'gap-3' }),
|
|
4783
4781
|
},
|
|
4784
4782
|
appearance: {
|
|
4785
|
-
text:
|
|
4783
|
+
text: GenericVariantTheme.createUIElementTextTheme(),
|
|
4786
4784
|
},
|
|
4787
4785
|
typography: defaultTypographyTheme,
|
|
4788
4786
|
layout: {
|