@vaneui/md 0.3.1-alpha.20260104125946.4a6b7b2 → 0.3.1-alpha.20260104201635.7d81a8e
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.esm.js +27 -5
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +27 -5
- package/dist/index.js.map +1 -1
- package/dist/styles/index.css +42 -0
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -8581,7 +8581,7 @@ const VARIANT = ['variant'];
|
|
|
8581
8581
|
/** Component property keys mapping categories to their available values */
|
|
8582
8582
|
const ComponentKeys = {
|
|
8583
8583
|
/** Color appearance options */
|
|
8584
|
-
appearance: ['primary', 'brand', 'accent', 'secondary', 'tertiary', 'success', 'danger', 'warning', 'info'],
|
|
8584
|
+
appearance: ['primary', 'brand', 'accent', 'secondary', 'tertiary', 'success', 'danger', 'warning', 'info', 'link'],
|
|
8585
8585
|
/** Border visibility: includes all border variations and noBorder (border, borderT, borderB, etc., noBorder) */
|
|
8586
8586
|
border: ['border', 'borderT', 'borderB', 'borderL', 'borderR', 'borderX', 'borderY', 'noBorder'],
|
|
8587
8587
|
/** Column breakpoints for responsive grid layouts */
|
|
@@ -12078,6 +12078,7 @@ class SimpleConsumerTheme extends BaseTheme {
|
|
|
12078
12078
|
this.active = config.active || '';
|
|
12079
12079
|
this.focusVisible = config.focusVisible || '';
|
|
12080
12080
|
this.category = category;
|
|
12081
|
+
this.alwaysOutput = config.alwaysOutput || false;
|
|
12081
12082
|
}
|
|
12082
12083
|
getClasses(extractedKeys) {
|
|
12083
12084
|
// Handle conditional categories - only output if the feature is enabled
|
|
@@ -12099,8 +12100,8 @@ class SimpleConsumerTheme extends BaseTheme {
|
|
|
12099
12100
|
if (this.category === 'focusVisible' && (extractedKeys.focusVisible === 'noFocusVisible' || extractedKeys.focusVisible === undefined)) {
|
|
12100
12101
|
return [];
|
|
12101
12102
|
}
|
|
12102
|
-
// Only output classes if an appearance or transparent is set
|
|
12103
|
-
if (!(extractedKeys === null || extractedKeys === void 0 ? void 0 : extractedKeys.appearance) && !(extractedKeys === null || extractedKeys === void 0 ? void 0 : extractedKeys.transparent)) {
|
|
12103
|
+
// Only output classes if an appearance or transparent is set (unless alwaysOutput is true)
|
|
12104
|
+
if (!this.alwaysOutput && !(extractedKeys === null || extractedKeys === void 0 ? void 0 : extractedKeys.appearance) && !(extractedKeys === null || extractedKeys === void 0 ? void 0 : extractedKeys.transparent)) {
|
|
12104
12105
|
return [];
|
|
12105
12106
|
}
|
|
12106
12107
|
const classes = [];
|
|
@@ -12266,6 +12267,8 @@ const themeDefaults = {
|
|
|
12266
12267
|
itemsCenter: true,
|
|
12267
12268
|
gap: true,
|
|
12268
12269
|
outline: true,
|
|
12270
|
+
primary: true,
|
|
12271
|
+
sharp: true,
|
|
12269
12272
|
},
|
|
12270
12273
|
section: {
|
|
12271
12274
|
md: true,
|
|
@@ -12280,6 +12283,7 @@ const themeDefaults = {
|
|
|
12280
12283
|
noRing: true,
|
|
12281
12284
|
noShadow: true,
|
|
12282
12285
|
responsive: true,
|
|
12286
|
+
sharp: true,
|
|
12283
12287
|
},
|
|
12284
12288
|
stack: {
|
|
12285
12289
|
md: true,
|
|
@@ -12291,6 +12295,8 @@ const themeDefaults = {
|
|
|
12291
12295
|
noBorder: true,
|
|
12292
12296
|
noRing: true,
|
|
12293
12297
|
outline: true,
|
|
12298
|
+
primary: true,
|
|
12299
|
+
sharp: true,
|
|
12294
12300
|
},
|
|
12295
12301
|
row: {
|
|
12296
12302
|
row: true,
|
|
@@ -12301,6 +12307,8 @@ const themeDefaults = {
|
|
|
12301
12307
|
noBorder: true,
|
|
12302
12308
|
noRing: true,
|
|
12303
12309
|
outline: true,
|
|
12310
|
+
primary: true,
|
|
12311
|
+
sharp: true,
|
|
12304
12312
|
},
|
|
12305
12313
|
col: {
|
|
12306
12314
|
column: true,
|
|
@@ -12310,6 +12318,8 @@ const themeDefaults = {
|
|
|
12310
12318
|
noBorder: true,
|
|
12311
12319
|
noRing: true,
|
|
12312
12320
|
outline: true,
|
|
12321
|
+
primary: true,
|
|
12322
|
+
sharp: true,
|
|
12313
12323
|
},
|
|
12314
12324
|
grid2: {
|
|
12315
12325
|
md: true,
|
|
@@ -12317,6 +12327,7 @@ const themeDefaults = {
|
|
|
12317
12327
|
gap: true,
|
|
12318
12328
|
sharp: true,
|
|
12319
12329
|
outline: true,
|
|
12330
|
+
primary: true,
|
|
12320
12331
|
},
|
|
12321
12332
|
grid3: {
|
|
12322
12333
|
md: true,
|
|
@@ -12324,6 +12335,7 @@ const themeDefaults = {
|
|
|
12324
12335
|
gap: true,
|
|
12325
12336
|
sharp: true,
|
|
12326
12337
|
outline: true,
|
|
12338
|
+
primary: true,
|
|
12327
12339
|
},
|
|
12328
12340
|
grid4: {
|
|
12329
12341
|
md: true,
|
|
@@ -12331,6 +12343,7 @@ const themeDefaults = {
|
|
|
12331
12343
|
gap: true,
|
|
12332
12344
|
sharp: true,
|
|
12333
12345
|
outline: true,
|
|
12346
|
+
primary: true,
|
|
12334
12347
|
},
|
|
12335
12348
|
grid5: {
|
|
12336
12349
|
md: true,
|
|
@@ -12338,6 +12351,7 @@ const themeDefaults = {
|
|
|
12338
12351
|
gap: true,
|
|
12339
12352
|
sharp: true,
|
|
12340
12353
|
outline: true,
|
|
12354
|
+
primary: true,
|
|
12341
12355
|
},
|
|
12342
12356
|
grid6: {
|
|
12343
12357
|
md: true,
|
|
@@ -12345,6 +12359,7 @@ const themeDefaults = {
|
|
|
12345
12359
|
gap: true,
|
|
12346
12360
|
sharp: true,
|
|
12347
12361
|
outline: true,
|
|
12362
|
+
primary: true,
|
|
12348
12363
|
},
|
|
12349
12364
|
divider: {
|
|
12350
12365
|
md: true,
|
|
@@ -12359,6 +12374,7 @@ const themeDefaults = {
|
|
|
12359
12374
|
sans: true,
|
|
12360
12375
|
medium: true,
|
|
12361
12376
|
outline: true,
|
|
12377
|
+
primary: true,
|
|
12362
12378
|
},
|
|
12363
12379
|
img: {
|
|
12364
12380
|
md: true,
|
|
@@ -12380,6 +12396,7 @@ const themeDefaults = {
|
|
|
12380
12396
|
sans: true,
|
|
12381
12397
|
textLeft: true,
|
|
12382
12398
|
outline: true,
|
|
12399
|
+
primary: true,
|
|
12383
12400
|
},
|
|
12384
12401
|
title: {
|
|
12385
12402
|
md: true,
|
|
@@ -12388,6 +12405,7 @@ const themeDefaults = {
|
|
|
12388
12405
|
textLeft: true,
|
|
12389
12406
|
responsive: true,
|
|
12390
12407
|
outline: true,
|
|
12408
|
+
primary: true,
|
|
12391
12409
|
},
|
|
12392
12410
|
pageTitle: {
|
|
12393
12411
|
md: true,
|
|
@@ -12396,6 +12414,7 @@ const themeDefaults = {
|
|
|
12396
12414
|
textLeft: true,
|
|
12397
12415
|
responsive: true,
|
|
12398
12416
|
outline: true,
|
|
12417
|
+
primary: true,
|
|
12399
12418
|
},
|
|
12400
12419
|
sectionTitle: {
|
|
12401
12420
|
md: true,
|
|
@@ -12404,17 +12423,19 @@ const themeDefaults = {
|
|
|
12404
12423
|
textLeft: true,
|
|
12405
12424
|
responsive: true,
|
|
12406
12425
|
outline: true,
|
|
12426
|
+
primary: true,
|
|
12407
12427
|
},
|
|
12408
12428
|
link: {
|
|
12409
12429
|
md: true,
|
|
12410
12430
|
underline: true,
|
|
12411
12431
|
sans: true,
|
|
12412
12432
|
outline: true,
|
|
12433
|
+
link: true,
|
|
12413
12434
|
},
|
|
12414
12435
|
listItem: {
|
|
12436
|
+
outline: true,
|
|
12415
12437
|
md: true,
|
|
12416
12438
|
sans: true,
|
|
12417
|
-
outline: true,
|
|
12418
12439
|
},
|
|
12419
12440
|
list: {
|
|
12420
12441
|
md: true,
|
|
@@ -12423,6 +12444,7 @@ const themeDefaults = {
|
|
|
12423
12444
|
padding: true,
|
|
12424
12445
|
disc: true,
|
|
12425
12446
|
outline: true,
|
|
12447
|
+
primary: true,
|
|
12426
12448
|
},
|
|
12427
12449
|
checkbox: {
|
|
12428
12450
|
input: {
|
|
@@ -12741,7 +12763,7 @@ const listItemTheme = new ComponentTheme("li", "vane-list-item", {
|
|
|
12741
12763
|
lineHeight: new LineHeightTheme(),
|
|
12742
12764
|
},
|
|
12743
12765
|
appearance: {
|
|
12744
|
-
text: new SimpleConsumerTheme({ base: textConsumerClass }, 'text'),
|
|
12766
|
+
text: new SimpleConsumerTheme({ base: textConsumerClass, alwaysOutput: true }, 'text'),
|
|
12745
12767
|
},
|
|
12746
12768
|
typography: defaultTypographyThemes,
|
|
12747
12769
|
layout: defaultLayoutsThemes,
|