@vaneui/ui 0.9.0-alpha.20260109124513.4547e77 → 0.9.0-alpha.20260114165342.10a91f9

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
@@ -47,8 +47,12 @@ const VISUAL_DECORATION = ['shadow', 'ring', 'focusVisible'];
47
47
  const VISUAL_DECORATION_LAYOUT = ['shadow', 'ring'];
48
48
  /** Shape properties for border radius and corner rounding */
49
49
  const SHAPE = ['shape'];
50
+ /** Text alignment property for block-level elements */
51
+ const TEXT_ALIGN = ['textAlign'];
52
+ /** Core typography styling properties (excluding text alignment) */
53
+ const TYPOGRAPHY_STYLE_CORE = ['fontWeight', 'fontStyle', 'textDecoration', 'textTransform', 'fontFamily'];
50
54
  /** Typography styling properties for text appearance and formatting */
51
- const TYPOGRAPHY_STYLE = ['fontWeight', 'fontStyle', 'textDecoration', 'textTransform', 'fontFamily', 'textAlign'];
55
+ const TYPOGRAPHY_STYLE = [...TYPOGRAPHY_STYLE_CORE, ...TEXT_ALIGN];
52
56
  /** List-specific styling properties for bullet points and numbering */
53
57
  const LIST_STYLE = ['listStyle'];
54
58
  /** Variant properties for filled/outline styling modes */
@@ -180,11 +184,11 @@ const GRID_CATEGORIES = [...LAYOUT_FULL, ...VISUAL_LAYOUT, ...VARIANT, ...COMMON
180
184
  /** Categories for container layout components */
181
185
  const CONTAINER_CATEGORIES = [...LAYOUT_FULL, ...VISUAL_LAYOUT, ...VARIANT, ...COMMON_MODIFIERS];
182
186
  /** Categories for column layout components */
183
- const COL_CATEGORIES = [...LAYOUT_FULL, ...VISUAL_LAYOUT, ...VARIANT, ...COMMON_MODIFIERS];
187
+ const COL_CATEGORIES = [...LAYOUT_FULL, ...VISUAL_LAYOUT, ...VARIANT, ...COMMON_MODIFIERS, ...TEXT_ALIGN];
184
188
  /** Categories for row layout components with responsive breakpoints */
185
- const ROW_CATEGORIES = [...LAYOUT_FULL, ...BREAKPOINT, ...VISUAL_LAYOUT, ...VARIANT, ...COMMON_MODIFIERS];
189
+ const ROW_CATEGORIES = [...LAYOUT_FULL, ...BREAKPOINT, ...VISUAL_LAYOUT, ...VARIANT, ...COMMON_MODIFIERS, ...TEXT_ALIGN];
186
190
  /** Categories for stack layout components with responsive and padding support */
187
- const STACK_CATEGORIES = [...LAYOUT_FULL, ...BREAKPOINT, ...PADDING, ...VISUAL_LAYOUT, ...VARIANT, ...COMMON_MODIFIERS];
191
+ const STACK_CATEGORIES = [...LAYOUT_FULL, ...BREAKPOINT, ...PADDING, ...VISUAL_LAYOUT, ...VARIANT, ...COMMON_MODIFIERS, ...TEXT_ALIGN];
188
192
  /** Categories for card components with full typography and layout support */
189
193
  const CARD_CATEGORIES = [...TYPOGRAPHY_FULL, ...LAYOUT_FULL, ...BREAKPOINT, ...VISUAL_LAYOUT, ...PADDING, ...VARIANT, ...COMMON_MODIFIERS];
190
194
  /** Categories for divider components with basic layout and visual properties */
@@ -239,7 +243,7 @@ const ComponentCategories = {
239
243
  * Auto-generated prop descriptions from JSDoc comments.
240
244
  * DO NOT EDIT MANUALLY - Run 'npm run props:generate' to regenerate.
241
245
  *
242
- * Generated on: 2026-01-09T12:45:14.752Z
246
+ * Generated on: 2026-01-14T16:53:43.904Z
243
247
  */
244
248
  const PropDescriptions = {
245
249
  "appearance": {
@@ -4975,7 +4979,7 @@ const defaultCardTheme = new ComponentTheme("div", "vane-card", {
4975
4979
  ring: new SimpleConsumerTheme({ base: ringConsumerClass }, 'ring'),
4976
4980
  },
4977
4981
  typography: defaultTypographyThemes,
4978
- }, themeDefaults.card, CARD_CATEGORIES, undefined, 'layout');
4982
+ }, themeDefaults.card, CARD_CATEGORIES, (props) => props.href ? "a" : "div", 'layout');
4979
4983
 
4980
4984
  const defaultRowTheme = new ComponentTheme("div", "vane-row", {
4981
4985
  size: {
@@ -4996,7 +5000,10 @@ const defaultRowTheme = new ComponentTheme("div", "vane-row", {
4996
5000
  border: new SimpleConsumerTheme({ base: borderConsumerClass }, 'border'),
4997
5001
  ring: new SimpleConsumerTheme({ base: ringConsumerClass }, 'ring'),
4998
5002
  shadow: ShadowAppearanceTheme.createLayoutTheme(),
4999
- }
5003
+ },
5004
+ typography: {
5005
+ textAlign: new TextAlignTheme(),
5006
+ },
5000
5007
  }, themeDefaults.row, ROW_CATEGORIES, undefined, 'layout');
5001
5008
 
5002
5009
  const defaultDividerTheme = new ComponentTheme("div", "vane-divider h-(--bw) w-full", {
@@ -5089,7 +5096,10 @@ const defaultColTheme = new ComponentTheme("div", "vane-col", {
5089
5096
  border: new SimpleConsumerTheme({ base: borderConsumerClass }, 'border'),
5090
5097
  ring: new SimpleConsumerTheme({ base: ringConsumerClass }, 'ring'),
5091
5098
  shadow: ShadowAppearanceTheme.createLayoutTheme(),
5092
- }
5099
+ },
5100
+ typography: {
5101
+ textAlign: new TextAlignTheme(),
5102
+ },
5093
5103
  }, themeDefaults.col, COL_CATEGORIES, undefined, 'layout');
5094
5104
 
5095
5105
  const defaultStackTheme = new ComponentTheme("div", "vane-stack", {
@@ -5113,7 +5123,10 @@ const defaultStackTheme = new ComponentTheme("div", "vane-stack", {
5113
5123
  border: new SimpleConsumerTheme({ base: borderConsumerClass }, 'border'),
5114
5124
  ring: new SimpleConsumerTheme({ base: ringConsumerClass }, 'ring'),
5115
5125
  shadow: ShadowAppearanceTheme.createLayoutTheme(),
5116
- }
5126
+ },
5127
+ typography: {
5128
+ textAlign: new TextAlignTheme(),
5129
+ },
5117
5130
  }, themeDefaults.stack, STACK_CATEGORIES, undefined, 'layout');
5118
5131
 
5119
5132
  const defaultSectionTheme = new ComponentTheme("div", "vane-section w-full", {
@@ -6331,8 +6344,8 @@ Text.displayName = 'Text';
6331
6344
  /**
6332
6345
  * An anchor link component (a).
6333
6346
  *
6334
- * Renders a hyperlink with hover underline effect. Link uses a fixed link color
6335
- * and does not support appearance props. Use for navigation links and clickable text.
6347
+ * Renders a hyperlink with hover underline effect. Supports appearance props
6348
+ * for custom color styling. Use for navigation links and clickable text.
6336
6349
  *
6337
6350
  * @example
6338
6351
  * ```tsx
@@ -6506,10 +6519,12 @@ exports.STACK_CATEGORIES = STACK_CATEGORIES;
6506
6519
  exports.Section = Section;
6507
6520
  exports.SectionTitle = SectionTitle;
6508
6521
  exports.Stack = Stack;
6522
+ exports.TEXT_ALIGN = TEXT_ALIGN;
6509
6523
  exports.TRANSPARENT = TRANSPARENT;
6510
6524
  exports.TYPOGRAPHY_CATEGORIES = TYPOGRAPHY_CATEGORIES;
6511
6525
  exports.TYPOGRAPHY_FULL = TYPOGRAPHY_FULL;
6512
6526
  exports.TYPOGRAPHY_STYLE = TYPOGRAPHY_STYLE;
6527
+ exports.TYPOGRAPHY_STYLE_CORE = TYPOGRAPHY_STYLE_CORE;
6513
6528
  exports.Text = Text;
6514
6529
  exports.ThemeProvider = ThemeProvider;
6515
6530
  exports.Title = Title;