@vaneui/ui 0.9.0-alpha.20260107081332.7a31978 → 0.9.0-alpha.20260107153112.7883b1f
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/badge.d.ts +3 -3
- package/dist/components/ui/badge.d.ts.map +1 -1
- package/dist/components/ui/button.d.ts +3 -3
- package/dist/components/ui/button.d.ts.map +1 -1
- package/dist/components/ui/card.d.ts +3 -3
- package/dist/components/ui/card.d.ts.map +1 -1
- package/dist/components/ui/chip.d.ts +3 -3
- package/dist/components/ui/chip.d.ts.map +1 -1
- package/dist/components/ui/code.d.ts +3 -3
- package/dist/components/ui/code.d.ts.map +1 -1
- package/dist/components/ui/col.d.ts +3 -3
- package/dist/components/ui/col.d.ts.map +1 -1
- package/dist/components/ui/container.d.ts +3 -3
- package/dist/components/ui/container.d.ts.map +1 -1
- package/dist/components/ui/grid.d.ts +7 -7
- package/dist/components/ui/grid.d.ts.map +1 -1
- package/dist/components/ui/input.d.ts +3 -3
- package/dist/components/ui/input.d.ts.map +1 -1
- package/dist/components/ui/props/keys.d.ts +33 -32
- package/dist/components/ui/props/keys.d.ts.map +1 -1
- package/dist/components/ui/props/propDescriptions.d.ts +1 -1
- package/dist/components/ui/props/propDescriptions.d.ts.map +1 -1
- package/dist/components/ui/props/props.d.ts +2 -0
- package/dist/components/ui/props/props.d.ts.map +1 -1
- package/dist/components/ui/props/responsiveProps.d.ts +8 -0
- package/dist/components/ui/props/responsiveProps.d.ts.map +1 -0
- package/dist/components/ui/props/transparentProps.d.ts +8 -0
- package/dist/components/ui/props/transparentProps.d.ts.map +1 -0
- package/dist/components/ui/row.d.ts +3 -3
- package/dist/components/ui/row.d.ts.map +1 -1
- package/dist/components/ui/section.d.ts +3 -3
- package/dist/components/ui/section.d.ts.map +1 -1
- package/dist/components/ui/stack.d.ts +3 -3
- package/dist/components/ui/stack.d.ts.map +1 -1
- package/dist/components/ui/theme/appearance/simpleConsumerTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/size/fontSizeTheme.d.ts +7 -5
- package/dist/components/ui/theme/size/fontSizeTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/size/gapTheme.d.ts +6 -4
- package/dist/components/ui/theme/size/gapTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/size/pxTheme.d.ts +6 -4
- package/dist/components/ui/theme/size/pxTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/size/pyTheme.d.ts +6 -4
- package/dist/components/ui/theme/size/pyTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/typographyTheme.d.ts +2 -1
- package/dist/components/ui/theme/typographyTheme.d.ts.map +1 -1
- package/dist/components/ui/typography.d.ts +7 -7
- package/dist/components/ui/typography.d.ts.map +1 -1
- package/dist/index.esm.js +98 -36
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +100 -35
- package/dist/index.js.map +1 -1
- package/dist/ui.css +37 -0
- package/dist/vars.css +4 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -53,6 +53,12 @@ const TYPOGRAPHY_STYLE = ['fontWeight', 'fontStyle', 'textDecoration', 'textTran
|
|
|
53
53
|
const LIST_STYLE = ['listStyle'];
|
|
54
54
|
/** Variant properties for filled/outline styling modes */
|
|
55
55
|
const VARIANT = ['variant'];
|
|
56
|
+
/** Transparent background property */
|
|
57
|
+
const TRANSPARENT = ['transparent'];
|
|
58
|
+
/** Responsive sizing property for breakpoint-specific sizing */
|
|
59
|
+
const RESPONSIVE = ['responsive'];
|
|
60
|
+
/** Common modifier properties available to all components */
|
|
61
|
+
const COMMON_MODIFIERS = [...TRANSPARENT, ...RESPONSIVE];
|
|
56
62
|
/** All available component property categories combined */
|
|
57
63
|
const COMPONENT_PROPS_CATEGORY = [
|
|
58
64
|
...VISUAL_CORE,
|
|
@@ -66,6 +72,8 @@ const COMPONENT_PROPS_CATEGORY = [
|
|
|
66
72
|
...VISUAL_DECORATION,
|
|
67
73
|
...SHAPE,
|
|
68
74
|
...VARIANT,
|
|
75
|
+
...TRANSPARENT,
|
|
76
|
+
...RESPONSIVE,
|
|
69
77
|
];
|
|
70
78
|
/**
|
|
71
79
|
* Describes category for which the appearance can be applied
|
|
@@ -133,11 +141,15 @@ const ComponentKeys = {
|
|
|
133
141
|
variant: ['filled', 'outline'],
|
|
134
142
|
/** Flex item wrapping behavior: wrap, no-wrap, or wrap-reverse */
|
|
135
143
|
wrap: ['flexWrap', 'flexNoWrap', 'flexWrapReverse'],
|
|
144
|
+
/** Transparent background: disables background color when true */
|
|
145
|
+
transparent: ['transparent'],
|
|
146
|
+
/** Responsive sizing: enables breakpoint-specific py/px/gap/fs when true */
|
|
147
|
+
responsive: ['responsive'],
|
|
136
148
|
};
|
|
137
149
|
/** All border side keys (excluding noBorder since it doesn't have a CSS class) */
|
|
138
150
|
const BORDER_KEYS = ['border', 'borderT', 'borderB', 'borderL', 'borderR', 'borderX', 'borderY'];
|
|
139
|
-
/** Common responsive breakpoint keys used across all themes */
|
|
140
|
-
const RESPONSIVE_BREAKPOINT_KEYS = ['desktop', 'tablet', 'mobile'];
|
|
151
|
+
/** Common responsive breakpoint keys used across all themes (includes 'base' for non-responsive mode) */
|
|
152
|
+
const RESPONSIVE_BREAKPOINT_KEYS = ['base', 'desktop', 'tablet', 'mobile'];
|
|
141
153
|
/** Composite categories built from core blocks */
|
|
142
154
|
/** Complete layout category including core and flex properties */
|
|
143
155
|
const LAYOUT_FULL = [...LAYOUT_CORE, ...LAYOUT_FLEX];
|
|
@@ -148,7 +160,7 @@ const VISUAL_LAYOUT = [...VISUAL_CORE, ...BORDER, ...VISUAL_DECORATION_LAYOUT, .
|
|
|
148
160
|
/** Complete typography category for text styling */
|
|
149
161
|
const TYPOGRAPHY_FULL = [...TYPOGRAPHY_STYLE];
|
|
150
162
|
/** Categories for interactive components like buttons, badges, chips */
|
|
151
|
-
const INTERACTIVE_CATEGORIES = [...LAYOUT_FULL, ...VISUAL_FULL, ...TYPOGRAPHY_STYLE, ...PADDING, ...VARIANT];
|
|
163
|
+
const INTERACTIVE_CATEGORIES = [...LAYOUT_FULL, ...VISUAL_FULL, ...TYPOGRAPHY_STYLE, ...PADDING, ...VARIANT, ...COMMON_MODIFIERS];
|
|
152
164
|
/** Button component categories */
|
|
153
165
|
const BUTTON_CATEGORIES = INTERACTIVE_CATEGORIES;
|
|
154
166
|
/** Badge component categories */
|
|
@@ -159,36 +171,36 @@ const CHIP_CATEGORIES = INTERACTIVE_CATEGORIES;
|
|
|
159
171
|
const CODE_CATEGORIES = INTERACTIVE_CATEGORIES;
|
|
160
172
|
/** Typography component categories */
|
|
161
173
|
/** Categories for typography components like Text, Title, Link */
|
|
162
|
-
const TYPOGRAPHY_CATEGORIES = [...TYPOGRAPHY_FULL, ...LAYOUT_CORE, ...VISUAL_CORE, ...VARIANT];
|
|
174
|
+
const TYPOGRAPHY_CATEGORIES = [...TYPOGRAPHY_FULL, ...LAYOUT_CORE, ...VISUAL_CORE, ...VARIANT, ...COMMON_MODIFIERS];
|
|
163
175
|
/** Categories for list components with typography and list-specific styling */
|
|
164
|
-
const LIST_CATEGORIES = [...TYPOGRAPHY_FULL, ...LIST_STYLE, ...LAYOUT_CORE, ...VISUAL_CORE, ...PADDING, ...VARIANT];
|
|
176
|
+
const LIST_CATEGORIES = [...TYPOGRAPHY_FULL, ...LIST_STYLE, ...LAYOUT_CORE, ...VISUAL_CORE, ...PADDING, ...VARIANT, ...COMMON_MODIFIERS];
|
|
165
177
|
/** Layout component categories */
|
|
166
178
|
/** Categories for grid layout components */
|
|
167
|
-
const GRID_CATEGORIES = [...LAYOUT_FULL, ...VISUAL_LAYOUT, ...VARIANT];
|
|
179
|
+
const GRID_CATEGORIES = [...LAYOUT_FULL, ...VISUAL_LAYOUT, ...VARIANT, ...COMMON_MODIFIERS];
|
|
168
180
|
/** Categories for container layout components */
|
|
169
|
-
const CONTAINER_CATEGORIES = [...LAYOUT_FULL, ...VISUAL_LAYOUT, ...VARIANT];
|
|
181
|
+
const CONTAINER_CATEGORIES = [...LAYOUT_FULL, ...VISUAL_LAYOUT, ...VARIANT, ...COMMON_MODIFIERS];
|
|
170
182
|
/** Categories for column layout components */
|
|
171
|
-
const COL_CATEGORIES = [...LAYOUT_FULL, ...VISUAL_LAYOUT, ...VARIANT];
|
|
183
|
+
const COL_CATEGORIES = [...LAYOUT_FULL, ...VISUAL_LAYOUT, ...VARIANT, ...COMMON_MODIFIERS];
|
|
172
184
|
/** Categories for row layout components with responsive breakpoints */
|
|
173
|
-
const ROW_CATEGORIES = [...LAYOUT_FULL, ...BREAKPOINT, ...VISUAL_LAYOUT, ...VARIANT];
|
|
185
|
+
const ROW_CATEGORIES = [...LAYOUT_FULL, ...BREAKPOINT, ...VISUAL_LAYOUT, ...VARIANT, ...COMMON_MODIFIERS];
|
|
174
186
|
/** Categories for stack layout components with responsive and padding support */
|
|
175
|
-
const STACK_CATEGORIES = [...LAYOUT_FULL, ...BREAKPOINT, ...PADDING, ...VISUAL_LAYOUT, ...VARIANT];
|
|
187
|
+
const STACK_CATEGORIES = [...LAYOUT_FULL, ...BREAKPOINT, ...PADDING, ...VISUAL_LAYOUT, ...VARIANT, ...COMMON_MODIFIERS];
|
|
176
188
|
/** Categories for card components with full typography and layout support */
|
|
177
|
-
const CARD_CATEGORIES = [...TYPOGRAPHY_FULL, ...LAYOUT_FULL, ...BREAKPOINT, ...VISUAL_LAYOUT, ...PADDING, ...VARIANT];
|
|
189
|
+
const CARD_CATEGORIES = [...TYPOGRAPHY_FULL, ...LAYOUT_FULL, ...BREAKPOINT, ...VISUAL_LAYOUT, ...PADDING, ...VARIANT, ...COMMON_MODIFIERS];
|
|
178
190
|
/** Categories for divider components with basic layout and visual properties */
|
|
179
|
-
const DIVIDER_CATEGORIES = [...LAYOUT_CORE, ...VISUAL_CORE, ...PADDING, ...VARIANT];
|
|
191
|
+
const DIVIDER_CATEGORIES = [...LAYOUT_CORE, ...VISUAL_CORE, ...PADDING, ...VARIANT, ...COMMON_MODIFIERS];
|
|
180
192
|
/** Categories for section layout components with full responsive support */
|
|
181
|
-
const SECTION_CATEGORIES = [...LAYOUT_FULL, ...VISUAL_LAYOUT, ...PADDING, ...BREAKPOINT, ...VARIANT];
|
|
193
|
+
const SECTION_CATEGORIES = [...LAYOUT_FULL, ...VISUAL_LAYOUT, ...PADDING, ...BREAKPOINT, ...VARIANT, ...COMMON_MODIFIERS];
|
|
182
194
|
/** Form component categories */
|
|
183
195
|
/** Categories for checkbox form components */
|
|
184
|
-
const CHECKBOX_CATEGORIES = [...LAYOUT_CORE, ...VISUAL_CORE, ...BORDER, ...VISUAL_DECORATION, ...SHAPE, ...VARIANT];
|
|
196
|
+
const CHECKBOX_CATEGORIES = [...LAYOUT_CORE, ...VISUAL_CORE, ...BORDER, ...VISUAL_DECORATION, ...SHAPE, ...VARIANT, ...COMMON_MODIFIERS];
|
|
185
197
|
/** Categories for label form components with typography support */
|
|
186
|
-
const LABEL_CATEGORIES = [...TYPOGRAPHY_FULL, ...LAYOUT_FULL, ...VISUAL_CORE, ...VARIANT];
|
|
198
|
+
const LABEL_CATEGORIES = [...TYPOGRAPHY_FULL, ...LAYOUT_FULL, ...VISUAL_CORE, ...VARIANT, ...COMMON_MODIFIERS];
|
|
187
199
|
/** Categories for input form components with interactive and form-specific properties */
|
|
188
200
|
const INPUT_CATEGORIES = [...INTERACTIVE_CATEGORIES];
|
|
189
201
|
/** Media component categories */
|
|
190
202
|
/** Categories for image media components */
|
|
191
|
-
const IMG_CATEGORIES = [...LAYOUT_CORE, ...VISUAL_CORE, ...BORDER, ...VISUAL_DECORATION, ...SHAPE, ...VARIANT];
|
|
203
|
+
const IMG_CATEGORIES = [...LAYOUT_CORE, ...VISUAL_CORE, ...BORDER, ...VISUAL_DECORATION, ...SHAPE, ...VARIANT, ...COMMON_MODIFIERS];
|
|
192
204
|
/** All available component names in the library */
|
|
193
205
|
const COMPONENT = ['button', 'badge', 'chip', 'code', 'card', 'divider', 'container', 'row', 'col', 'stack', 'section',
|
|
194
206
|
'grid2', 'grid3', 'grid4', 'grid5', 'grid6', 'pageTitle', 'sectionTitle', 'title', 'text', 'link', 'list', 'listItem', 'checkbox', 'label', 'img', 'input'];
|
|
@@ -227,7 +239,7 @@ const ComponentCategories = {
|
|
|
227
239
|
* Auto-generated prop descriptions from JSDoc comments.
|
|
228
240
|
* DO NOT EDIT MANUALLY - Run 'npm run props:generate' to regenerate.
|
|
229
241
|
*
|
|
230
|
-
* Generated on: 2026-01-
|
|
242
|
+
* Generated on: 2026-01-07T15:31:13.748Z
|
|
231
243
|
*/
|
|
232
244
|
const PropDescriptions = {
|
|
233
245
|
"appearance": {
|
|
@@ -614,6 +626,15 @@ const PropDescriptions = {
|
|
|
614
626
|
}
|
|
615
627
|
}
|
|
616
628
|
},
|
|
629
|
+
"responsive": {
|
|
630
|
+
"name": "Responsive",
|
|
631
|
+
"description": "Responsive prop for enabling breakpoint-specific sizing",
|
|
632
|
+
"props": {
|
|
633
|
+
"responsive": {
|
|
634
|
+
"description": "Enable responsive sizing - uses breakpoint-specific classes for font size, padding, and gap"
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
},
|
|
617
638
|
"reverse": {
|
|
618
639
|
"name": "Reverse",
|
|
619
640
|
"description": "Reverse props for reversing child order",
|
|
@@ -737,6 +758,15 @@ const PropDescriptions = {
|
|
|
737
758
|
}
|
|
738
759
|
}
|
|
739
760
|
},
|
|
761
|
+
"transparent": {
|
|
762
|
+
"name": "Transparent",
|
|
763
|
+
"description": "Transparent prop for disabling background color",
|
|
764
|
+
"props": {
|
|
765
|
+
"transparent": {
|
|
766
|
+
"description": "Disable background color - makes component background transparent"
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
},
|
|
740
770
|
"variant": {
|
|
741
771
|
"name": "Variant",
|
|
742
772
|
"description": "Variant props for controlling component style variations",
|
|
@@ -3897,12 +3927,14 @@ class ComponentTheme {
|
|
|
3897
3927
|
}
|
|
3898
3928
|
|
|
3899
3929
|
/**
|
|
3900
|
-
* Font size theme - applies text size using
|
|
3901
|
-
*
|
|
3930
|
+
* Font size theme - applies text size using CSS variables.
|
|
3931
|
+
* Uses breakpoint-specific variables when responsive=true, otherwise uses simple --fs variable.
|
|
3902
3932
|
*/
|
|
3903
3933
|
class FontSizeTheme extends BaseTheme {
|
|
3904
3934
|
constructor() {
|
|
3905
3935
|
super(...arguments);
|
|
3936
|
+
/** Base: apply font size using --fs (non-responsive) */
|
|
3937
|
+
this.base = "text-(length:--fs)";
|
|
3906
3938
|
/** Desktop: apply font size using --fs-desktop */
|
|
3907
3939
|
this.desktop = "text-(length:--fs-desktop)";
|
|
3908
3940
|
/** Tablet: apply font size using --fs-tablet */
|
|
@@ -3910,8 +3942,13 @@ class FontSizeTheme extends BaseTheme {
|
|
|
3910
3942
|
/** Mobile: apply font size using --fs-mobile */
|
|
3911
3943
|
this.mobile = "max-mobile:text-(length:--fs-mobile)";
|
|
3912
3944
|
}
|
|
3913
|
-
getClasses(
|
|
3914
|
-
|
|
3945
|
+
getClasses(extractedKeys) {
|
|
3946
|
+
// Use breakpoint-specific classes if responsive=true
|
|
3947
|
+
if ((extractedKeys === null || extractedKeys === void 0 ? void 0 : extractedKeys.responsive) === 'responsive') {
|
|
3948
|
+
return [this.desktop, this.tablet, this.mobile];
|
|
3949
|
+
}
|
|
3950
|
+
// Otherwise use simple --fs variable
|
|
3951
|
+
return [this.base];
|
|
3915
3952
|
}
|
|
3916
3953
|
}
|
|
3917
3954
|
|
|
@@ -3932,12 +3969,14 @@ class LineHeightTheme extends BaseTheme {
|
|
|
3932
3969
|
}
|
|
3933
3970
|
|
|
3934
3971
|
/**
|
|
3935
|
-
* Gap theme - applies gap using
|
|
3936
|
-
*
|
|
3972
|
+
* Gap theme - applies gap using CSS variables.
|
|
3973
|
+
* Uses breakpoint-specific variables when responsive=true, otherwise uses simple --gap variable.
|
|
3937
3974
|
*/
|
|
3938
3975
|
class GapTheme extends BaseTheme {
|
|
3939
3976
|
constructor() {
|
|
3940
3977
|
super(...arguments);
|
|
3978
|
+
/** Base: apply gap using --gap (non-responsive) */
|
|
3979
|
+
this.base = "gap-(--gap)";
|
|
3941
3980
|
/** Desktop: apply gap using --gap-desktop */
|
|
3942
3981
|
this.desktop = "gap-(--gap-desktop)";
|
|
3943
3982
|
/** Tablet: apply gap using --gap-tablet */
|
|
@@ -3947,7 +3986,12 @@ class GapTheme extends BaseTheme {
|
|
|
3947
3986
|
}
|
|
3948
3987
|
getClasses(extractedKeys) {
|
|
3949
3988
|
if ((extractedKeys === null || extractedKeys === void 0 ? void 0 : extractedKeys.gap) === 'gap') {
|
|
3950
|
-
|
|
3989
|
+
// Use breakpoint-specific classes if responsive=true
|
|
3990
|
+
if ((extractedKeys === null || extractedKeys === void 0 ? void 0 : extractedKeys.responsive) === 'responsive') {
|
|
3991
|
+
return [this.desktop, this.tablet, this.mobile];
|
|
3992
|
+
}
|
|
3993
|
+
// Otherwise use simple --gap variable
|
|
3994
|
+
return [this.base];
|
|
3951
3995
|
}
|
|
3952
3996
|
return [];
|
|
3953
3997
|
}
|
|
@@ -4065,12 +4109,14 @@ class FocusVisibleTheme extends BaseTheme {
|
|
|
4065
4109
|
}
|
|
4066
4110
|
|
|
4067
4111
|
/**
|
|
4068
|
-
* Horizontal padding theme - applies px using
|
|
4069
|
-
*
|
|
4112
|
+
* Horizontal padding theme - applies px using CSS variables.
|
|
4113
|
+
* Uses breakpoint-specific variables when responsive=true, otherwise uses simple --px variable.
|
|
4070
4114
|
*/
|
|
4071
4115
|
class PxTheme extends BaseTheme {
|
|
4072
4116
|
constructor() {
|
|
4073
4117
|
super(...arguments);
|
|
4118
|
+
/** Base: apply horizontal padding using --px (non-responsive) */
|
|
4119
|
+
this.base = "px-(--px)";
|
|
4074
4120
|
/** Desktop: apply horizontal padding using --px-desktop */
|
|
4075
4121
|
this.desktop = "px-(--px-desktop)";
|
|
4076
4122
|
/** Tablet: apply horizontal padding using --px-tablet */
|
|
@@ -4080,19 +4126,26 @@ class PxTheme extends BaseTheme {
|
|
|
4080
4126
|
}
|
|
4081
4127
|
getClasses(extractedKeys) {
|
|
4082
4128
|
if ((extractedKeys === null || extractedKeys === void 0 ? void 0 : extractedKeys.padding) === 'padding' || (extractedKeys === null || extractedKeys === void 0 ? void 0 : extractedKeys.padding) === undefined) {
|
|
4083
|
-
|
|
4129
|
+
// Use breakpoint-specific classes if responsive=true
|
|
4130
|
+
if ((extractedKeys === null || extractedKeys === void 0 ? void 0 : extractedKeys.responsive) === 'responsive') {
|
|
4131
|
+
return [this.desktop, this.tablet, this.mobile];
|
|
4132
|
+
}
|
|
4133
|
+
// Otherwise use simple --px variable
|
|
4134
|
+
return [this.base];
|
|
4084
4135
|
}
|
|
4085
4136
|
return [];
|
|
4086
4137
|
}
|
|
4087
4138
|
}
|
|
4088
4139
|
|
|
4089
4140
|
/**
|
|
4090
|
-
* Vertical padding theme - applies py using
|
|
4091
|
-
*
|
|
4141
|
+
* Vertical padding theme - applies py using CSS variables.
|
|
4142
|
+
* Uses breakpoint-specific variables when responsive=true, otherwise uses simple --py variable.
|
|
4092
4143
|
*/
|
|
4093
4144
|
class PyTheme extends BaseTheme {
|
|
4094
4145
|
constructor() {
|
|
4095
4146
|
super(...arguments);
|
|
4147
|
+
/** Base: apply vertical padding using --py (non-responsive) */
|
|
4148
|
+
this.base = "py-(--py)";
|
|
4096
4149
|
/** Desktop: apply vertical padding using --py-desktop */
|
|
4097
4150
|
this.desktop = "py-(--py-desktop)";
|
|
4098
4151
|
/** Tablet: apply vertical padding using --py-tablet */
|
|
@@ -4102,7 +4155,12 @@ class PyTheme extends BaseTheme {
|
|
|
4102
4155
|
}
|
|
4103
4156
|
getClasses(extractedKeys) {
|
|
4104
4157
|
if ((extractedKeys === null || extractedKeys === void 0 ? void 0 : extractedKeys.padding) === 'padding' || (extractedKeys === null || extractedKeys === void 0 ? void 0 : extractedKeys.padding) === undefined) {
|
|
4105
|
-
|
|
4158
|
+
// Use breakpoint-specific classes if responsive=true
|
|
4159
|
+
if ((extractedKeys === null || extractedKeys === void 0 ? void 0 : extractedKeys.responsive) === 'responsive') {
|
|
4160
|
+
return [this.desktop, this.tablet, this.mobile];
|
|
4161
|
+
}
|
|
4162
|
+
// Otherwise use simple --py variable
|
|
4163
|
+
return [this.base];
|
|
4106
4164
|
}
|
|
4107
4165
|
return [];
|
|
4108
4166
|
}
|
|
@@ -4151,6 +4209,10 @@ class SimpleConsumerTheme extends BaseTheme {
|
|
|
4151
4209
|
if (this.category === 'focusVisible' && (extractedKeys.focusVisible === 'noFocusVisible' || extractedKeys.focusVisible === undefined)) {
|
|
4152
4210
|
return [];
|
|
4153
4211
|
}
|
|
4212
|
+
// Handle transparent prop - don't output background classes if transparent is true
|
|
4213
|
+
if (this.category === 'bg' && extractedKeys.transparent === 'transparent') {
|
|
4214
|
+
return [];
|
|
4215
|
+
}
|
|
4154
4216
|
// Only output classes if an appearance is set (unless alwaysOutput is true)
|
|
4155
4217
|
if (!this.alwaysOutput && !(extractedKeys === null || extractedKeys === void 0 ? void 0 : extractedKeys.appearance)) {
|
|
4156
4218
|
return [];
|
|
@@ -4811,7 +4873,7 @@ class ListStyleTheme extends BaseTheme {
|
|
|
4811
4873
|
}
|
|
4812
4874
|
}
|
|
4813
4875
|
|
|
4814
|
-
const createTypographyComponentTheme = (tag, base = "text-balance", fontSizeTheme = new FontSizeTheme(), defaults = {}, lineHeightTheme = new LineHeightTheme()) => {
|
|
4876
|
+
const createTypographyComponentTheme = (tag, base = "text-balance", fontSizeTheme = new FontSizeTheme(), defaults = {}, lineHeightTheme = new LineHeightTheme(), categories = TYPOGRAPHY_CATEGORIES) => {
|
|
4815
4877
|
return new ComponentTheme(tag, base, {
|
|
4816
4878
|
size: {
|
|
4817
4879
|
text: fontSizeTheme,
|
|
@@ -4822,17 +4884,17 @@ const createTypographyComponentTheme = (tag, base = "text-balance", fontSizeThem
|
|
|
4822
4884
|
},
|
|
4823
4885
|
typography: defaultTypographyThemes,
|
|
4824
4886
|
layout: defaultLayoutsThemes,
|
|
4825
|
-
}, defaults,
|
|
4887
|
+
}, defaults, categories, (props) => {
|
|
4826
4888
|
// Determine tag based on href prop
|
|
4827
4889
|
return props.href ? "a" : tag;
|
|
4828
4890
|
});
|
|
4829
4891
|
};
|
|
4830
4892
|
// Page title specific theme - uses responsive font size
|
|
4831
|
-
const pageTitleTheme = createTypographyComponentTheme("h1", "vane-page-title text-balance tracking-tight w-fit", new FontSizeTheme(), mergeDefaults(themeDefaults.pageTitle, { semibold: true }), new LineHeightTheme());
|
|
4893
|
+
const pageTitleTheme = createTypographyComponentTheme("h1", "vane-page-title text-balance tracking-tight w-fit", new FontSizeTheme(), mergeDefaults(themeDefaults.pageTitle, { semibold: true }), new LineHeightTheme(), TYPOGRAPHY_CATEGORIES);
|
|
4832
4894
|
// Section title specific theme - uses responsive font size
|
|
4833
|
-
const sectionTitleTheme = createTypographyComponentTheme("h2", "vane-section-title text-balance w-fit", new FontSizeTheme(), mergeDefaults(themeDefaults.sectionTitle, { semibold: true }), new LineHeightTheme());
|
|
4895
|
+
const sectionTitleTheme = createTypographyComponentTheme("h2", "vane-section-title text-balance w-fit", new FontSizeTheme(), mergeDefaults(themeDefaults.sectionTitle, { semibold: true }), new LineHeightTheme(), TYPOGRAPHY_CATEGORIES);
|
|
4834
4896
|
// Title specific theme - uses responsive font size
|
|
4835
|
-
const titleTheme = createTypographyComponentTheme("h3", "vane-title text-balance w-fit", new FontSizeTheme(), mergeDefaults(themeDefaults.title, { semibold: true }), new LineHeightTheme());
|
|
4897
|
+
const titleTheme = createTypographyComponentTheme("h3", "vane-title text-balance w-fit", new FontSizeTheme(), mergeDefaults(themeDefaults.title, { semibold: true }), new LineHeightTheme(), TYPOGRAPHY_CATEGORIES);
|
|
4836
4898
|
// Text specific theme
|
|
4837
4899
|
const textTheme = createTypographyComponentTheme("p", "vane-text p-0 m-0 w-fit", new FontSizeTheme(), themeDefaults.text);
|
|
4838
4900
|
// Link specific theme - uses LinkVariantTheme for link-specific colors
|
|
@@ -6397,6 +6459,7 @@ exports.CHECKBOX_CATEGORIES = CHECKBOX_CATEGORIES;
|
|
|
6397
6459
|
exports.CHIP_CATEGORIES = CHIP_CATEGORIES;
|
|
6398
6460
|
exports.CODE_CATEGORIES = CODE_CATEGORIES;
|
|
6399
6461
|
exports.COL_CATEGORIES = COL_CATEGORIES;
|
|
6462
|
+
exports.COMMON_MODIFIERS = COMMON_MODIFIERS;
|
|
6400
6463
|
exports.COMPONENT = COMPONENT;
|
|
6401
6464
|
exports.COMPONENT_PROPS_CATEGORY = COMPONENT_PROPS_CATEGORY;
|
|
6402
6465
|
exports.CONTAINER_CATEGORIES = CONTAINER_CATEGORIES;
|
|
@@ -6439,6 +6502,7 @@ exports.ModeKeys = ModeKeys;
|
|
|
6439
6502
|
exports.PADDING = PADDING;
|
|
6440
6503
|
exports.PageTitle = PageTitle;
|
|
6441
6504
|
exports.PropDescriptions = PropDescriptions;
|
|
6505
|
+
exports.RESPONSIVE = RESPONSIVE;
|
|
6442
6506
|
exports.RESPONSIVE_BREAKPOINT_KEYS = RESPONSIVE_BREAKPOINT_KEYS;
|
|
6443
6507
|
exports.ROW_CATEGORIES = ROW_CATEGORIES;
|
|
6444
6508
|
exports.Row = Row;
|
|
@@ -6448,6 +6512,7 @@ exports.STACK_CATEGORIES = STACK_CATEGORIES;
|
|
|
6448
6512
|
exports.Section = Section;
|
|
6449
6513
|
exports.SectionTitle = SectionTitle;
|
|
6450
6514
|
exports.Stack = Stack;
|
|
6515
|
+
exports.TRANSPARENT = TRANSPARENT;
|
|
6451
6516
|
exports.TYPOGRAPHY_CATEGORIES = TYPOGRAPHY_CATEGORIES;
|
|
6452
6517
|
exports.TYPOGRAPHY_FULL = TYPOGRAPHY_FULL;
|
|
6453
6518
|
exports.TYPOGRAPHY_STYLE = TYPOGRAPHY_STYLE;
|