@solexllc/usx-react 0.4.0 → 0.5.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.
Files changed (99) hide show
  1. package/dist/index.cjs +329 -274
  2. package/dist/index.js +329 -274
  3. package/package.json +5 -5
  4. package/src/components/attribution/config.json +5 -5
  5. package/src/components/banner/config.json +2 -2
  6. package/src/components/breadcrumb/Breadcrumb.tsx +5 -6
  7. package/src/components/breadcrumb/config.json +11 -1
  8. package/src/components/button/button.html +2 -2
  9. package/src/components/button-group/button-group.django.html +1 -1
  10. package/src/components/calendar-date/calendar-date.django.html +3 -3
  11. package/src/components/callout/Callout.tsx +53 -0
  12. package/src/components/callout/callout.django.html +5 -0
  13. package/src/components/callout/callout.html +76 -0
  14. package/src/components/callout/config.json +74 -0
  15. package/src/components/card/Card.tsx +18 -34
  16. package/src/components/card/card.django.html +12 -10
  17. package/src/components/card/config.json +15 -40
  18. package/src/components/card-group/card-group.django.html +1 -1
  19. package/src/components/carousel/Carousel.tsx +3 -2
  20. package/src/components/carousel/carousel.django.html +13 -2
  21. package/src/components/carousel/config.json +2 -2
  22. package/src/components/character-count/config.json +2 -2
  23. package/src/components/checkbox-group/CheckboxGroup.tsx +10 -20
  24. package/src/components/checkbox-group/checkbox-group.django.html +10 -4
  25. package/src/components/checkbox-group/config.json +10 -5
  26. package/src/components/clickable/clickable.html +21 -39
  27. package/src/components/clickable/config.json +2 -2
  28. package/src/components/collection/Collection.tsx +5 -5
  29. package/src/components/collection/collection.django.html +2 -4
  30. package/src/components/collection/config.json +7 -6
  31. package/src/components/combobox/config.json +4 -4
  32. package/src/components/date-picker/config.json +4 -4
  33. package/src/components/date-range-picker/config.json +7 -7
  34. package/src/components/error-message/config.json +2 -2
  35. package/src/components/eyebrow/Eyebrow.tsx +2 -1
  36. package/src/components/eyebrow/config.json +2 -2
  37. package/src/components/fieldset/config.json +5 -5
  38. package/src/components/file-input/FileInput.tsx +3 -2
  39. package/src/components/file-input/config.json +5 -5
  40. package/src/components/file-list/FileList.tsx +2 -1
  41. package/src/components/file-list/config.json +2 -2
  42. package/src/components/footer/Footer.tsx +5 -5
  43. package/src/components/form-group/config.json +2 -2
  44. package/src/components/hero/Hero.tsx +8 -14
  45. package/src/components/hero/config.json +36 -27
  46. package/src/components/hero/hero.django.html +2 -2
  47. package/src/components/hint/config.json +2 -2
  48. package/src/components/in-page-nav/config.json +11 -1
  49. package/src/components/indicator/config.json +2 -2
  50. package/src/components/input/config.json +2 -2
  51. package/src/components/label/config.json +2 -2
  52. package/src/components/language-selector/config.json +2 -2
  53. package/src/components/layout/Layout.tsx +1 -1
  54. package/src/components/legend/config.json +3 -3
  55. package/src/components/link/config.json +2 -2
  56. package/src/components/memorable-date/config.json +9 -9
  57. package/src/components/misc-banner/MiscBanner.tsx +2 -1
  58. package/src/components/misc-banner/config.json +2 -2
  59. package/src/components/modal/config.json +2 -2
  60. package/src/components/page/Page.tsx +2 -1
  61. package/src/components/page/config.json +7 -7
  62. package/src/components/page/page.django.html +1 -1
  63. package/src/components/pagination/Pagination.tsx +2 -1
  64. package/src/components/pagination/container/PaginationContainer.tsx +2 -1
  65. package/src/components/prose/config.json +5 -1
  66. package/src/components/quote/Quote.tsx +58 -0
  67. package/src/components/quote/config.json +51 -0
  68. package/src/components/quote/quote.django.html +15 -0
  69. package/src/components/quote/quote.html +66 -0
  70. package/src/components/radio-buttons/config.json +3 -3
  71. package/src/components/range-slider/RangeSlider.tsx +2 -1
  72. package/src/components/range-slider/config.json +4 -4
  73. package/src/components/required/config.json +2 -2
  74. package/src/components/section/Section.tsx +6 -2
  75. package/src/components/section/config.json +19 -6
  76. package/src/components/section/section.django.html +9 -2
  77. package/src/components/select/config.json +2 -2
  78. package/src/components/site-alert/SiteAlert.tsx +5 -6
  79. package/src/components/skipnav/config.json +2 -2
  80. package/src/components/summary-box/config.json +3 -3
  81. package/src/components/swap/Swap.tsx +4 -3
  82. package/src/components/swap/config.json +4 -4
  83. package/src/components/switch/config.json +2 -2
  84. package/src/components/table/config.json +13 -3
  85. package/src/components/tag/config.json +2 -2
  86. package/src/components/tag-group/config.json +2 -2
  87. package/src/components/text-area/config.json +2 -2
  88. package/src/components/time-picker/config.json +4 -4
  89. package/src/components/toggle/Toggle.tsx +69 -40
  90. package/src/components/toggle/config.json +42 -10
  91. package/src/components/toggle/toggle.django.html +25 -17
  92. package/src/components/toggle/toggle.html +319 -85
  93. package/src/components/tooltip/config.json +2 -2
  94. package/src/components/villain/Villain.tsx +2 -1
  95. package/src/index.js +2 -1
  96. package/src/components/block/Block.tsx +0 -78
  97. package/src/components/block/block.django.html +0 -26
  98. package/src/components/block/block.html +0 -162
  99. package/src/components/block/config.json +0 -88
@@ -1,162 +0,0 @@
1
- <h3 class="site-preview-heading">Standard Block</h3>
2
-
3
- <div class="usx-block">
4
- <p class="usx-block__content">
5
- Hi there.<br/>
6
- This is a block of content that is distinguished from
7
- the through a simple left border and padding. Use blocks to call attention to
8
- important information or to visually separate content on a page.
9
- </p>
10
- </div>
11
-
12
- <h3 class="site-preview-heading">Callout Block</h3>
13
-
14
- <div class="usx-block usx-block--callout">
15
- <p class="usx-block__content">
16
- Hi there.<br/>
17
- This is a block of content that is distinguished from
18
- the through a simple left border and padding. Use blocks to call attention to
19
- important information or to visually separate content on a page.
20
- </p>
21
- </div>
22
-
23
-
24
- <h3 class="site-preview-heading">Dedent</h3>
25
- <div class="usx-block usx-block--dedent">
26
- <p class="usx-block__content">
27
- This block dedents over the left to the edge of the viewport, while the content is still aligned with the rest of the page. Use this variation to create a stronger visual separation between content.
28
- </p>
29
- </div>
30
-
31
-
32
- <h3 class="site-preview-heading">Indent (sm)</h3>
33
- <div class="usx-block usx-block--indent-sm">
34
- <p class="usx-block__content">
35
- This block is indented from the left edge of the viewport, creating a visual separation from the surrounding content. Use this variation to highlight nested or secondary information.
36
- </p>
37
- </div>
38
-
39
-
40
- <h3 class="site-preview-heading">Indent (md)</h3>
41
- <div class="usx-block usx-block--indent-md">
42
- <p class="usx-block__content">
43
- This block is indented from the left edge of the viewport, creating a visual separation from the surrounding content. Use this variation to highlight nested or secondary information.
44
- </p>
45
- </div>
46
-
47
-
48
- <h3 class="site-preview-heading">Indent (lg)</h3>
49
- <div class="usx-block usx-block--indent-lg">
50
- <p class="usx-block__content">
51
- This block is indented from the left edge of the viewport, creating a visual separation from the surrounding content. Use this variation to highlight nested or secondary information.
52
- </p>
53
- </div>
54
-
55
-
56
- <h3 class="site-preview-heading">Indent (xl)</h3>
57
- <div class="usx-block usx-block--indent-xl">
58
- <p class="usx-block__content">
59
- This block is indented from the left edge of the viewport, creating a visual separation from the surrounding content. Use this variation to highlight nested or secondary information.
60
- </p>
61
- </div>
62
-
63
- <h3 class="site-preview-heading">Big Block</h3>
64
- <div class="usx-block usx-block--big">
65
- <p class="usx-block__content">
66
- This block has a thicker left border to create more visual emphasis. Use this variation to call attention to critical information or important warnings.
67
- </p>
68
- </div>
69
-
70
- <h3 class="site-preview-heading">Dedent + Big Block</h3>
71
- <div class="usx-block usx-block--dedent usx-block--big">
72
- <p class="usx-block__content maxw-tablet">
73
- This block combines the dedent and big block variations for maximum emphasis.<br/>
74
- Use this variation to call attention to critical information or important warnings that you want to ensure users see and read. The content is still aligned with the rest of the page, while the block itself
75
- </p>
76
- </div>
77
-
78
- <h2 class="site-preview-heading">Color Variations</h2>
79
-
80
- <h3 class="site-preview-heading">Primary</h3>
81
- <div class="usx-block">
82
- <p class="usx-block__content usx-border-primary">
83
- This block uses the primary color for its left border. Use this variation to highlight important information or actions.
84
- </p>
85
- </div>
86
-
87
- <h3 class="site-preview-heading">Error</h3>
88
- <div class="usx-block">
89
- <p class="usx-block__content usx-border-error">
90
- This block uses the error color for its left border. Use this variation to call attention to critical information or important warnings.
91
- </p>
92
- </div>
93
-
94
- <h3 class="site-preview-heading">Warning</h3>
95
- <div class="usx-block">
96
- <p class="usx-block__content usx-border-warning">
97
- This block uses the warning color for its left border. Use this variation to call attention to important information or potential issues.
98
- </p>
99
- </div>
100
-
101
- <h3 class="site-preview-heading">Success</h3>
102
- <div class="usx-block">
103
- <p class="usx-block__content usx-border-success">
104
- This block uses the success color for its left border. Use this variation to highlight positive information or successful actions.
105
- </p>
106
- </div>
107
-
108
- <h3 class="site-preview-heading">Info</h3>
109
- <div class="usx-block">
110
- <p class="usx-block__content usx-border-info">
111
- This block uses the info color for its left border. Use this variation to provide additional context or helpful information.
112
- </p>
113
- </div>
114
-
115
- <h2 class="site-preview-heading">Use Cases</h2>
116
-
117
- <h3 class="site-preview-heading">Address Block</h3>
118
- <div class="usx-block usx-block--indent-sm">
119
- <p class="usx-block__content usx-border-primary">
120
- Department of Veterans Affairs Claims Intake Center<br/>
121
- Attention: C-123 Claims<br/>
122
- PO Box 5088<br/>
123
- Janesville, WI 53547-5088
124
- </p>
125
- </div>
126
-
127
- <h3 class="site-preview-heading">Quote</h3>
128
- <div class="usx-block usx-block--big usx-block--indent-sm display-flex flex-row">
129
- <svg class="usa-icon usa-icon--size-4 usx-block__open-quote-icon" aria-hidden="true" role="img">
130
- <use href="./img/sprite.svg#format_quote"></use>
131
- </svg>
132
- <div class="usx-block__content usx-border-info maxw-tablet margin-0">
133
- <p class="font-serif-lg text-italic maxw-tablet margin-0">
134
- The time is always right to do what is right.
135
- </p>
136
- <div class="usx-block__attribution">
137
- <div class="usx-attribution">
138
- <span class="usx-attribution__content">
139
- <span class="usx-attribution__primary">George Washington</span>
140
- <span class="usx-attribution__secondary">First President of the United States</span>
141
- </span>
142
- </div>
143
- </div>
144
- </div>
145
- </div>
146
-
147
-
148
- <h3 class="site-preview-heading">Quote using Callout</h3>
149
-
150
- <div class="usx-block usx-block--callout usx-border-info">
151
- <p class="usx-block__content font-serif-lg maxw-tablet">
152
- ❝The time is always right to do what is right.❞
153
- </p>
154
- <div class="usx-block__attribution">
155
- <div class="usx-attribution">
156
- <span class="usx-attribution__content">
157
- <span class="usx-attribution__primary">George Washington</span>
158
- <span class="usx-attribution__secondary">First President of the United States</span>
159
- </span>
160
- </div>
161
- </div>
162
- </div>
@@ -1,88 +0,0 @@
1
- {
2
- "name": "block",
3
- "template": "block/block.django.html",
4
- "version": 1,
5
- "default": {
6
- "children": "This is a block of content."
7
- },
8
- "props": {
9
- "variant": {
10
- "type": "select",
11
- "options": [
12
- "callout"
13
- ],
14
- "description": "Visual variant. Omit for standard bordered block; 'callout' for top-border background style."
15
- },
16
- "indent": {
17
- "type": "select",
18
- "options": [
19
- "sm",
20
- "md",
21
- "lg",
22
- "xl"
23
- ],
24
- "description": "Left indent level applied to the block wrapper."
25
- },
26
- "dedent": {
27
- "type": "boolean",
28
- "description": "Pull the block left beyond the content edge.",
29
- "default": false
30
- },
31
- "big": {
32
- "type": "boolean",
33
- "description": "Increases border width for stronger emphasis.",
34
- "default": false
35
- },
36
- "quote": {
37
- "type": "boolean",
38
- "description": "Adds a quote icon and flex-row layout (non-callout only).",
39
- "default": false
40
- },
41
- "color": {
42
- "type": "string",
43
- "description": "Border color token name. Applied as usx-border-{color} on content (or block wrapper for callout)."
44
- },
45
- "contentClassName": {
46
- "type": "string",
47
- "description": "Additional classes for the inner content element."
48
- },
49
- "attribution": {
50
- "type": "object",
51
- "description": "Attribution component props object rendered by the block component.",
52
- "properties": {
53
- "avatar": {
54
- "type": "object",
55
- "description": "Avatar component props object."
56
- },
57
- "media": {
58
- "type": "string",
59
- "description": "HTML for the left media area."
60
- },
61
- "primary": {
62
- "type": "string",
63
- "description": "Primary text shown in the top-right cell."
64
- },
65
- "secondary": {
66
- "type": "string",
67
- "description": "Secondary text shown in the bottom-right cell."
68
- },
69
- "children": {
70
- "type": "string",
71
- "description": "Optional full custom markup, overrides media/primary/secondary."
72
- },
73
- "className": {
74
- "type": "string",
75
- "description": "Additional classes."
76
- }
77
- }
78
- },
79
- "children": {
80
- "type": "string",
81
- "description": "Main block content."
82
- },
83
- "className": {
84
- "type": "string",
85
- "description": "Additional classes for the block wrapper."
86
- }
87
- }
88
- }