@solexllc/usx-contracts 0.1.3 → 0.2.0

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.
@@ -37,7 +37,17 @@
37
37
  "className": {
38
38
  "type": "string",
39
39
  "default": "",
40
- "description": "Additional CSS classes to apply to the accordion. Use iconPosition to set the icon position for this accordion. For live global theming, set --usx-accordion-icon-position to 1.25rem auto (start) or auto 1.25rem (end)."
40
+ "description": "Additional CSS classes to apply to the accordion."
41
+ },
42
+ "headingClassName": {
43
+ "type": "string",
44
+ "default": "",
45
+ "description": "Additional CSS classes to apply to the accordion heading."
46
+ },
47
+ "contentClassName": {
48
+ "type": "string",
49
+ "default": "",
50
+ "description": "Additional CSS classes to apply to the accordion content."
41
51
  }
42
52
  }
43
53
  },
@@ -597,7 +607,13 @@
597
607
  "items": {
598
608
  "type": "object",
599
609
  "description": "Button item.",
600
- "component": "button"
610
+ "component": "button",
611
+ "properties": {
612
+ "itemClassName": {
613
+ "type": "string",
614
+ "description": "Additional CSS classes on the list item wrapping the button."
615
+ }
616
+ }
601
617
  }
602
618
  },
603
619
  "segmented": {
@@ -633,6 +649,10 @@
633
649
  "version": 1,
634
650
  "required": [],
635
651
  "props": {
652
+ "id": {
653
+ "type": "string",
654
+ "description": "Card element ID, also used as the prefix for carousel slide IDs."
655
+ },
636
656
  "title": {
637
657
  "type": "string",
638
658
  "description": "The title text displayed in the card header"
@@ -683,7 +703,7 @@
683
703
  },
684
704
  "images": {
685
705
  "type": "array",
686
- "description": "Array of image objects (currently uses first image)",
706
+ "description": "Array of image objects; multiple images render as a carousel",
687
707
  "items": {
688
708
  "type": "object",
689
709
  "description": "Card image.",
@@ -2495,6 +2515,10 @@
2495
2515
  "type": "string",
2496
2516
  "description": "Right sidebar content (grid variant only)"
2497
2517
  },
2518
+ "expandable": {
2519
+ "type": "boolean",
2520
+ "description": "Adds a toggle button that grows the layout to a wider max-width via the usx-expanded class."
2521
+ },
2498
2522
  "className": {
2499
2523
  "type": "string",
2500
2524
  "description": "Additional CSS classes"
@@ -3507,13 +3531,13 @@
3507
3531
  },
3508
3532
  "label": {
3509
3533
  "type": "string",
3510
- "default": "Loading...",
3511
- "description": "Screen-reader-only label text."
3534
+ "default": null,
3535
+ "description": "Visible label text displayed beside the spinner."
3512
3536
  },
3513
- "omitLabel": {
3514
- "type": "boolean",
3515
- "default": false,
3516
- "description": "Set to true to omit the sr-only label, e.g. when wrapped in a Tooltip."
3537
+ "screenReaderLabel": {
3538
+ "type": "string",
3539
+ "default": null,
3540
+ "description": "Optional screen-reader-only label text."
3517
3541
  },
3518
3542
  "className": {
3519
3543
  "type": "string",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solexllc/usx-contracts",
3
- "version": "0.1.3",
3
+ "version": "0.2.0",
4
4
  "description": "Generated CMS contract manifest for USX components.",
5
5
  "license": "MIT",
6
6
  "repository": {
package/src/contracts.js CHANGED
@@ -52,7 +52,17 @@ export const componentContracts = {
52
52
  "className": {
53
53
  "type": "string",
54
54
  "default": "",
55
- "description": "Additional CSS classes to apply to the accordion. Use iconPosition to set the icon position for this accordion. For live global theming, set --usx-accordion-icon-position to 1.25rem auto (start) or auto 1.25rem (end)."
55
+ "description": "Additional CSS classes to apply to the accordion."
56
+ },
57
+ "headingClassName": {
58
+ "type": "string",
59
+ "default": "",
60
+ "description": "Additional CSS classes to apply to the accordion heading."
61
+ },
62
+ "contentClassName": {
63
+ "type": "string",
64
+ "default": "",
65
+ "description": "Additional CSS classes to apply to the accordion content."
56
66
  }
57
67
  }
58
68
  },
@@ -612,7 +622,13 @@ export const componentContracts = {
612
622
  "items": {
613
623
  "type": "object",
614
624
  "description": "Button item.",
615
- "component": "button"
625
+ "component": "button",
626
+ "properties": {
627
+ "itemClassName": {
628
+ "type": "string",
629
+ "description": "Additional CSS classes on the list item wrapping the button."
630
+ }
631
+ }
616
632
  }
617
633
  },
618
634
  "segmented": {
@@ -648,6 +664,10 @@ export const componentContracts = {
648
664
  "version": 1,
649
665
  "required": [],
650
666
  "props": {
667
+ "id": {
668
+ "type": "string",
669
+ "description": "Card element ID, also used as the prefix for carousel slide IDs."
670
+ },
651
671
  "title": {
652
672
  "type": "string",
653
673
  "description": "The title text displayed in the card header"
@@ -698,7 +718,7 @@ export const componentContracts = {
698
718
  },
699
719
  "images": {
700
720
  "type": "array",
701
- "description": "Array of image objects (currently uses first image)",
721
+ "description": "Array of image objects; multiple images render as a carousel",
702
722
  "items": {
703
723
  "type": "object",
704
724
  "description": "Card image.",
@@ -2510,6 +2530,10 @@ export const componentContracts = {
2510
2530
  "type": "string",
2511
2531
  "description": "Right sidebar content (grid variant only)"
2512
2532
  },
2533
+ "expandable": {
2534
+ "type": "boolean",
2535
+ "description": "Adds a toggle button that grows the layout to a wider max-width via the usx-expanded class."
2536
+ },
2513
2537
  "className": {
2514
2538
  "type": "string",
2515
2539
  "description": "Additional CSS classes"
@@ -3522,13 +3546,13 @@ export const componentContracts = {
3522
3546
  },
3523
3547
  "label": {
3524
3548
  "type": "string",
3525
- "default": "Loading...",
3526
- "description": "Screen-reader-only label text."
3549
+ "default": null,
3550
+ "description": "Visible label text displayed beside the spinner."
3527
3551
  },
3528
- "omitLabel": {
3529
- "type": "boolean",
3530
- "default": false,
3531
- "description": "Set to true to omit the sr-only label, e.g. when wrapped in a Tooltip."
3552
+ "screenReaderLabel": {
3553
+ "type": "string",
3554
+ "default": null,
3555
+ "description": "Optional screen-reader-only label text."
3532
3556
  },
3533
3557
  "className": {
3534
3558
  "type": "string",