@neatui/css 4.2.4 → 4.2.6

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/neatui.scss CHANGED
@@ -29,6 +29,8 @@
29
29
  @forward './core/scroll.scss';
30
30
  // 封面
31
31
  @forward './core/cover.scss';
32
+ // 媒资装入
33
+ @forward './core/fit.scss';
32
34
  // 交互
33
35
  @forward './core/ux.scss';
34
36
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@neatui/css",
3
- "version": "4.2.4",
4
- "description": "NeatUI constrained atomic design system — SCSS source for production themes, plus preview CSS with default light/dark",
3
+ "version": "4.2.6",
4
+ "description": "NeatUI constrained atomic design system \u2014 SCSS source for production themes, plus preview CSS with default light/dark",
5
5
  "main": "./neatui.scss",
6
6
  "sass": "./neatui.scss",
7
7
  "style": "./dist/neatui.preview.min.css",
@@ -434,8 +434,92 @@
434
434
  }
435
435
  ],
436
436
  "openEnded": true
437
+ },
438
+ "ui-fit": {
439
+ "intent": "媒资装入:object-fit 模式 + 可选九宫格锚点。",
440
+ "managed": true,
441
+ "valueGroups": [
442
+ "fit.modes",
443
+ "fit.anchors"
444
+ ]
437
445
  }
438
446
  },
447
+ "fit": {
448
+ "modes": [
449
+ {
450
+ "value": "cover",
451
+ "intent": "铺满,多出裁。",
452
+ "group": "mode"
453
+ },
454
+ {
455
+ "value": "contain",
456
+ "intent": "完整装入,可留白。",
457
+ "group": "mode"
458
+ },
459
+ {
460
+ "value": "fill",
461
+ "intent": "扯满,可变比。",
462
+ "group": "mode"
463
+ },
464
+ {
465
+ "value": "none",
466
+ "intent": "固有尺寸。",
467
+ "group": "mode"
468
+ },
469
+ {
470
+ "value": "down",
471
+ "intent": "只缩不放。",
472
+ "group": "mode"
473
+ }
474
+ ],
475
+ "anchors": [
476
+ {
477
+ "value": "lt",
478
+ "intent": "左上锚定。",
479
+ "group": "anchor"
480
+ },
481
+ {
482
+ "value": "lm",
483
+ "intent": "左中锚定。",
484
+ "group": "anchor"
485
+ },
486
+ {
487
+ "value": "lb",
488
+ "intent": "左下锚定。",
489
+ "group": "anchor"
490
+ },
491
+ {
492
+ "value": "ct",
493
+ "intent": "中上锚定。",
494
+ "group": "anchor"
495
+ },
496
+ {
497
+ "value": "cm",
498
+ "intent": "居中锚定。",
499
+ "group": "anchor"
500
+ },
501
+ {
502
+ "value": "cb",
503
+ "intent": "中下锚定。",
504
+ "group": "anchor"
505
+ },
506
+ {
507
+ "value": "rt",
508
+ "intent": "右上锚定。",
509
+ "group": "anchor"
510
+ },
511
+ {
512
+ "value": "rm",
513
+ "intent": "右中锚定。",
514
+ "group": "anchor"
515
+ },
516
+ {
517
+ "value": "rb",
518
+ "intent": "右下锚定。",
519
+ "group": "anchor"
520
+ }
521
+ ]
522
+ },
439
523
  "classPatterns": [
440
524
  {
441
525
  "id": "spacing-padding",