@nationaldesignstudio/react 0.5.2 → 0.5.4

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 (161) hide show
  1. package/package.json +10 -2
  2. package/src/components/organisms/navbar/navbar.tsx +8 -8
  3. package/src/App.css +0 -0
  4. package/src/App.tsx +0 -7
  5. package/src/assets/fonts/PPNeueMontreal-Variable.woff2 +0 -0
  6. package/src/assets/react.svg +0 -1
  7. package/src/components/atoms/accordion/accordion.stories.tsx +0 -228
  8. package/src/components/atoms/accordion/accordion.test.tsx +0 -231
  9. package/src/components/atoms/accordion/index.ts +0 -6
  10. package/src/components/atoms/background/background.test.tsx +0 -213
  11. package/src/components/atoms/background/index.ts +0 -22
  12. package/src/components/atoms/button/__screenshots__/button.visual.test.tsx/button-charcoal-chromium-darwin.png +0 -0
  13. package/src/components/atoms/button/__screenshots__/button.visual.test.tsx/button-charcoal-chromium-linux.png +0 -0
  14. package/src/components/atoms/button/__screenshots__/button.visual.test.tsx/button-charcoal-outline-chromium-darwin.png +0 -0
  15. package/src/components/atoms/button/__screenshots__/button.visual.test.tsx/button-charcoal-outline-chromium-linux.png +0 -0
  16. package/src/components/atoms/button/__screenshots__/button.visual.test.tsx/button-charcoal-outline-quiet-chromium-darwin.png +0 -0
  17. package/src/components/atoms/button/__screenshots__/button.visual.test.tsx/button-charcoal-outline-quiet-chromium-linux.png +0 -0
  18. package/src/components/atoms/button/__screenshots__/button.visual.test.tsx/button-disabled-chromium-darwin.png +0 -0
  19. package/src/components/atoms/button/__screenshots__/button.visual.test.tsx/button-disabled-chromium-linux.png +0 -0
  20. package/src/components/atoms/button/__screenshots__/button.visual.test.tsx/button-ivory-chromium-darwin.png +0 -0
  21. package/src/components/atoms/button/__screenshots__/button.visual.test.tsx/button-ivory-chromium-linux.png +0 -0
  22. package/src/components/atoms/button/__screenshots__/button.visual.test.tsx/button-ivory-outline-chromium-darwin.png +0 -0
  23. package/src/components/atoms/button/__screenshots__/button.visual.test.tsx/button-ivory-outline-chromium-linux.png +0 -0
  24. package/src/components/atoms/button/__screenshots__/button.visual.test.tsx/button-ivory-outline-quiet-chromium-darwin.png +0 -0
  25. package/src/components/atoms/button/__screenshots__/button.visual.test.tsx/button-ivory-outline-quiet-chromium-linux.png +0 -0
  26. package/src/components/atoms/button/__screenshots__/button.visual.test.tsx/button-size-large-chromium-darwin.png +0 -0
  27. package/src/components/atoms/button/__screenshots__/button.visual.test.tsx/button-size-large-chromium-linux.png +0 -0
  28. package/src/components/atoms/button/__screenshots__/button.visual.test.tsx/button-size-medium-chromium-darwin.png +0 -0
  29. package/src/components/atoms/button/__screenshots__/button.visual.test.tsx/button-size-medium-chromium-linux.png +0 -0
  30. package/src/components/atoms/button/__screenshots__/button.visual.test.tsx/button-size-small-chromium-darwin.png +0 -0
  31. package/src/components/atoms/button/__screenshots__/button.visual.test.tsx/button-size-small-chromium-linux.png +0 -0
  32. package/src/components/atoms/button/button.stories.tsx +0 -289
  33. package/src/components/atoms/button/button.test.tsx +0 -419
  34. package/src/components/atoms/button/button.visual.test.tsx +0 -98
  35. package/src/components/atoms/button/icon-button.stories.tsx +0 -260
  36. package/src/components/atoms/button/icon-button.test.tsx +0 -186
  37. package/src/components/atoms/button/index.ts +0 -6
  38. package/src/components/atoms/input/index.ts +0 -17
  39. package/src/components/atoms/input/input-group.stories.tsx +0 -646
  40. package/src/components/atoms/input/input-group.test.tsx +0 -362
  41. package/src/components/atoms/input/input.stories.tsx +0 -228
  42. package/src/components/atoms/input/input.test.tsx +0 -167
  43. package/src/components/atoms/ndstudio-footer/index.ts +0 -1
  44. package/src/components/atoms/pager-control/index.ts +0 -5
  45. package/src/components/atoms/pager-control/pager-control.stories.tsx +0 -207
  46. package/src/components/atoms/pager-control/pager-control.test.tsx +0 -130
  47. package/src/components/atoms/popover/index.ts +0 -30
  48. package/src/components/atoms/popover/popover.stories.tsx +0 -531
  49. package/src/components/atoms/popover/popover.test.tsx +0 -486
  50. package/src/components/atoms/select/index.ts +0 -18
  51. package/src/components/atoms/select/select.stories.tsx +0 -455
  52. package/src/components/atoms/tooltip/index.ts +0 -24
  53. package/src/components/atoms/tooltip/tooltip.stories.tsx +0 -348
  54. package/src/components/atoms/tooltip/tooltip.test.tsx +0 -363
  55. package/src/components/dev-tools/dev-toolbar/dev-toolbar.stories.tsx +0 -73
  56. package/src/components/dev-tools/dev-toolbar/index.ts +0 -1
  57. package/src/components/dev-tools/grid-overlay/index.ts +0 -1
  58. package/src/components/dev-tools/index.ts +0 -2
  59. package/src/components/foundation/typography/typography.stories.tsx +0 -401
  60. package/src/components/organisms/card/__screenshots__/card.visual.test.tsx/card-default-vertical-chromium-darwin.png +0 -0
  61. package/src/components/organisms/card/__screenshots__/card.visual.test.tsx/card-default-vertical-chromium-linux.png +0 -0
  62. package/src/components/organisms/card/__screenshots__/card.visual.test.tsx/card-horizontal-chromium-darwin.png +0 -0
  63. package/src/components/organisms/card/__screenshots__/card.visual.test.tsx/card-horizontal-chromium-linux.png +0 -0
  64. package/src/components/organisms/card/__screenshots__/card.visual.test.tsx/card-minimal-chromium-darwin.png +0 -0
  65. package/src/components/organisms/card/__screenshots__/card.visual.test.tsx/card-minimal-chromium-linux.png +0 -0
  66. package/src/components/organisms/card/__screenshots__/card.visual.test.tsx/card-without-actions-chromium-darwin.png +0 -0
  67. package/src/components/organisms/card/__screenshots__/card.visual.test.tsx/card-without-actions-chromium-linux.png +0 -0
  68. package/src/components/organisms/card/__screenshots__/card.visual.test.tsx/card-without-eyebrow-chromium-darwin.png +0 -0
  69. package/src/components/organisms/card/__screenshots__/card.visual.test.tsx/card-without-eyebrow-chromium-linux.png +0 -0
  70. package/src/components/organisms/card/__screenshots__/card.visual.test.tsx/card-without-image-chromium-darwin.png +0 -0
  71. package/src/components/organisms/card/__screenshots__/card.visual.test.tsx/card-without-image-chromium-linux.png +0 -0
  72. package/src/components/organisms/card/card.stories.tsx +0 -293
  73. package/src/components/organisms/card/card.test.tsx +0 -247
  74. package/src/components/organisms/card/card.visual.test.tsx +0 -197
  75. package/src/components/organisms/card/index.ts +0 -26
  76. package/src/components/organisms/navbar/__screenshots__/navbar.visual.test.tsx/navbar-active-link-chromium-darwin.png +0 -0
  77. package/src/components/organisms/navbar/__screenshots__/navbar.visual.test.tsx/navbar-active-link-chromium-linux.png +0 -0
  78. package/src/components/organisms/navbar/__screenshots__/navbar.visual.test.tsx/navbar-brand-only-chromium-darwin.png +0 -0
  79. package/src/components/organisms/navbar/__screenshots__/navbar.visual.test.tsx/navbar-brand-only-chromium-linux.png +0 -0
  80. package/src/components/organisms/navbar/__screenshots__/navbar.visual.test.tsx/navbar-default-chromium-darwin.png +0 -0
  81. package/src/components/organisms/navbar/__screenshots__/navbar.visual.test.tsx/navbar-default-chromium-linux.png +0 -0
  82. package/src/components/organisms/navbar/index.ts +0 -18
  83. package/src/components/organisms/navbar/navbar.stories.tsx +0 -313
  84. package/src/components/organisms/navbar/navbar.test.tsx +0 -190
  85. package/src/components/organisms/navbar/navbar.visual.test.tsx +0 -85
  86. package/src/components/organisms/us-gov-banner/__screenshots__/us-gov-banner.visual.test.tsx/us-gov-banner-custom-icon-chromium-darwin.png +0 -0
  87. package/src/components/organisms/us-gov-banner/__screenshots__/us-gov-banner.visual.test.tsx/us-gov-banner-custom-icon-chromium-linux.png +0 -0
  88. package/src/components/organisms/us-gov-banner/__screenshots__/us-gov-banner.visual.test.tsx/us-gov-banner-custom-text-chromium-darwin.png +0 -0
  89. package/src/components/organisms/us-gov-banner/__screenshots__/us-gov-banner.visual.test.tsx/us-gov-banner-custom-text-chromium-linux.png +0 -0
  90. package/src/components/organisms/us-gov-banner/__screenshots__/us-gov-banner.visual.test.tsx/us-gov-banner-default-chromium-darwin.png +0 -0
  91. package/src/components/organisms/us-gov-banner/__screenshots__/us-gov-banner.visual.test.tsx/us-gov-banner-default-chromium-linux.png +0 -0
  92. package/src/components/organisms/us-gov-banner/index.ts +0 -5
  93. package/src/components/organisms/us-gov-banner/us-gov-banner.stories.tsx +0 -35
  94. package/src/components/organisms/us-gov-banner/us-gov-banner.test.tsx +0 -107
  95. package/src/components/organisms/us-gov-banner/us-gov-banner.visual.test.tsx +0 -46
  96. package/src/components/sections/banner/banner.stories.tsx +0 -150
  97. package/src/components/sections/banner/banner.test.tsx +0 -185
  98. package/src/components/sections/banner/index.ts +0 -2
  99. package/src/components/sections/card-grid/card-grid.stories.tsx +0 -351
  100. package/src/components/sections/card-grid/index.ts +0 -1
  101. package/src/components/sections/faq-section/faq-section.stories.tsx +0 -453
  102. package/src/components/sections/faq-section/index.ts +0 -2
  103. package/src/components/sections/hero/__screenshots__/hero.visual.test.tsx/hero-a1-desktop-chromium-darwin.png +0 -0
  104. package/src/components/sections/hero/__screenshots__/hero.visual.test.tsx/hero-a1-desktop-chromium-linux.png +0 -0
  105. package/src/components/sections/hero/__screenshots__/hero.visual.test.tsx/hero-a1-mobile-chromium-darwin.png +0 -0
  106. package/src/components/sections/hero/__screenshots__/hero.visual.test.tsx/hero-a1-mobile-chromium-linux.png +0 -0
  107. package/src/components/sections/hero/__screenshots__/hero.visual.test.tsx/hero-a1-tablet-chromium-darwin.png +0 -0
  108. package/src/components/sections/hero/__screenshots__/hero.visual.test.tsx/hero-a1-tablet-chromium-linux.png +0 -0
  109. package/src/components/sections/hero/__screenshots__/hero.visual.test.tsx/hero-a2-desktop-chromium-darwin.png +0 -0
  110. package/src/components/sections/hero/__screenshots__/hero.visual.test.tsx/hero-a2-desktop-chromium-linux.png +0 -0
  111. package/src/components/sections/hero/__screenshots__/hero.visual.test.tsx/hero-a2-mobile-chromium-darwin.png +0 -0
  112. package/src/components/sections/hero/__screenshots__/hero.visual.test.tsx/hero-a2-mobile-chromium-linux.png +0 -0
  113. package/src/components/sections/hero/__screenshots__/hero.visual.test.tsx/hero-a2-tablet-chromium-darwin.png +0 -0
  114. package/src/components/sections/hero/__screenshots__/hero.visual.test.tsx/hero-a2-tablet-chromium-linux.png +0 -0
  115. package/src/components/sections/hero/__screenshots__/hero.visual.test.tsx/hero-a3-desktop-chromium-darwin.png +0 -0
  116. package/src/components/sections/hero/__screenshots__/hero.visual.test.tsx/hero-a3-desktop-chromium-linux.png +0 -0
  117. package/src/components/sections/hero/__screenshots__/hero.visual.test.tsx/hero-a3-mobile-chromium-darwin.png +0 -0
  118. package/src/components/sections/hero/__screenshots__/hero.visual.test.tsx/hero-a3-mobile-chromium-linux.png +0 -0
  119. package/src/components/sections/hero/__screenshots__/hero.visual.test.tsx/hero-a3-tablet-chromium-darwin.png +0 -0
  120. package/src/components/sections/hero/__screenshots__/hero.visual.test.tsx/hero-a3-tablet-chromium-linux.png +0 -0
  121. package/src/components/sections/hero/__screenshots__/hero.visual.test.tsx/hero-custom-class-chromium-darwin.png +0 -0
  122. package/src/components/sections/hero/__screenshots__/hero.visual.test.tsx/hero-custom-class-chromium-linux.png +0 -0
  123. package/src/components/sections/hero/__screenshots__/hero.visual.test.tsx/hero-default-chromium-linux.png +0 -0
  124. package/src/components/sections/hero/__screenshots__/hero.visual.test.tsx/hero-long-title-chromium-darwin.png +0 -0
  125. package/src/components/sections/hero/__screenshots__/hero.visual.test.tsx/hero-long-title-chromium-linux.png +0 -0
  126. package/src/components/sections/hero/hero.stories.tsx +0 -397
  127. package/src/components/sections/hero/hero.test.tsx +0 -138
  128. package/src/components/sections/hero/hero.visual.test.tsx +0 -140
  129. package/src/components/sections/hero/index.ts +0 -23
  130. package/src/components/sections/prose/__screenshots__/prose.visual.test.tsx/prose-h3-heading-chromium-darwin.png +0 -0
  131. package/src/components/sections/prose/__screenshots__/prose.visual.test.tsx/prose-h3-heading-chromium-linux.png +0 -0
  132. package/src/components/sections/prose/__screenshots__/prose.visual.test.tsx/prose-multiple-paragraphs-chromium-darwin.png +0 -0
  133. package/src/components/sections/prose/__screenshots__/prose.visual.test.tsx/prose-multiple-paragraphs-chromium-linux.png +0 -0
  134. package/src/components/sections/prose/__screenshots__/prose.visual.test.tsx/prose-multiple-sections-chromium-darwin.png +0 -0
  135. package/src/components/sections/prose/__screenshots__/prose.visual.test.tsx/prose-multiple-sections-chromium-linux.png +0 -0
  136. package/src/components/sections/prose/__screenshots__/prose.visual.test.tsx/prose-single-section-chromium-darwin.png +0 -0
  137. package/src/components/sections/prose/__screenshots__/prose.visual.test.tsx/prose-single-section-chromium-linux.png +0 -0
  138. package/src/components/sections/prose/index.ts +0 -6
  139. package/src/components/sections/prose/prose.stories.tsx +0 -144
  140. package/src/components/sections/prose/prose.test.tsx +0 -178
  141. package/src/components/sections/prose/prose.visual.test.tsx +0 -105
  142. package/src/components/sections/quote-block/index.ts +0 -5
  143. package/src/components/sections/river/index.ts +0 -1
  144. package/src/components/sections/river/river.stories.tsx +0 -237
  145. package/src/components/sections/river/river.test.tsx +0 -268
  146. package/src/components/sections/tout/index.ts +0 -1
  147. package/src/components/sections/tout/tout.stories.tsx +0 -171
  148. package/src/components/sections/tout/tout.test.tsx +0 -242
  149. package/src/components/sections/two-column-section/index.ts +0 -5
  150. package/src/components/sections/two-column-section/two-column-section.stories.tsx +0 -285
  151. package/src/components/shared/index.ts +0 -5
  152. package/src/index.ts +0 -293
  153. package/src/main.tsx +0 -13
  154. package/src/stories/grid-system.stories.tsx +0 -309
  155. package/src/stories/introduction.mdx +0 -128
  156. package/src/stories/theme-provider.stories.tsx +0 -349
  157. package/src/stories/token-showcase.stories.tsx +0 -73
  158. package/src/stories/token-showcase.tsx +0 -777
  159. package/src/styles.css +0 -14
  160. package/src/tests/token-resolution.test.tsx +0 -298
  161. package/src/theme/theme-provider.test.tsx +0 -270
@@ -1,285 +0,0 @@
1
- import type { Meta, StoryObj } from "@storybook/react-vite";
2
- import { TwoColumnSection } from ".";
3
-
4
- const meta: Meta<typeof TwoColumnSection> = {
5
- title: "Sections/TwoColumnSection",
6
- component: TwoColumnSection,
7
- parameters: {
8
- layout: "fullscreen",
9
- },
10
- argTypes: {
11
- colorScheme: {
12
- control: "select",
13
- options: ["dark", "light"],
14
- description: "Color scheme",
15
- },
16
- title: {
17
- control: "text",
18
- description: "The title text",
19
- },
20
- lead: {
21
- control: "text",
22
- description: "Lead content (prominent)",
23
- },
24
- },
25
- } as Meta<typeof TwoColumnSection>;
26
-
27
- export default meta;
28
- type Story = StoryObj<typeof TwoColumnSection>;
29
-
30
- // =============================================================================
31
- // Playground
32
- // =============================================================================
33
-
34
- export const Playground: Story = {
35
- render: (args) => <TwoColumnSection {...args} />,
36
- };
37
- Playground.args = {
38
- colorScheme: "dark",
39
- title: "US Tech Force",
40
- lead: "The US Tech Force is recruiting an elite corps of engineers to build the next generation of government technology. Backed by the White House, Tech Force will tackle the most complex and large-scale civic and defense challenges of our era – from administering critical financial infrastructure at the Treasury Department to advancing cutting-edge programs at the Department of War – and everything in between.",
41
- children: (
42
- <>
43
- <p>
44
- Through a two-year program, participants will work in teams reporting
45
- directly to agency leadership. In collaboration with leading technology
46
- companies, participants will receive technical training, engage with
47
- industry leaders, and work closely with senior managers from companies
48
- partnering with the Tech Force.
49
- </p>
50
- <p>
51
- Upon completing the program, engineers can seek employment with the
52
- partnering private-sector companies for potential full-time roles –
53
- demonstrating the value of combining civil service with technical
54
- expertise.
55
- </p>
56
- <p>
57
- If you are highly skilled in the areas of software engineering,
58
- artificial intelligence, cybersecurity, data analytics, or technical
59
- project management and want to build the future of American government
60
- technology, join the Tech Force today.
61
- </p>
62
- </>
63
- ),
64
- };
65
-
66
- // =============================================================================
67
- // Variants
68
- // =============================================================================
69
-
70
- /**
71
- * Dark variant (default) - dark background with light text
72
- */
73
- export const DarkVariant: Story = {
74
- render: () => (
75
- <TwoColumnSection
76
- colorScheme="dark"
77
- title="US Tech Force"
78
- lead="The US Tech Force is recruiting an elite corps of engineers to build the next generation of government technology."
79
- >
80
- <p>
81
- Through a two-year program, participants will work in teams reporting
82
- directly to agency leadership.
83
- </p>
84
- <p>
85
- Upon completing the program, engineers can seek employment with the
86
- partnering private-sector companies for potential full-time roles.
87
- </p>
88
- </TwoColumnSection>
89
- ),
90
- };
91
-
92
- /**
93
- * Light variant - light background with dark text
94
- */
95
- export const LightVariant: Story = {
96
- render: () => (
97
- <TwoColumnSection
98
- colorScheme="light"
99
- title="US Tech Force"
100
- lead="The US Tech Force is recruiting an elite corps of engineers to build the next generation of government technology."
101
- >
102
- <p>
103
- Through a two-year program, participants will work in teams reporting
104
- directly to agency leadership.
105
- </p>
106
- <p>
107
- Upon completing the program, engineers can seek employment with the
108
- partnering private-sector companies for potential full-time roles.
109
- </p>
110
- </TwoColumnSection>
111
- ),
112
- };
113
-
114
- // =============================================================================
115
- // Responsive Variants
116
- // =============================================================================
117
-
118
- export const Desktop: Story = {
119
- render: () => (
120
- <TwoColumnSection
121
- colorScheme="dark"
122
- title="US Tech Force"
123
- lead="The US Tech Force is recruiting an elite corps of engineers to build the next generation of government technology. Backed by the White House, Tech Force will tackle the most complex and large-scale civic and defense challenges of our era."
124
- >
125
- <p>
126
- Through a two-year program, participants will work in teams reporting
127
- directly to agency leadership. In collaboration with leading technology
128
- companies, participants will receive technical training, engage with
129
- industry leaders, and work closely with senior managers from companies
130
- partnering with the Tech Force.
131
- </p>
132
- <p>
133
- Upon completing the program, engineers can seek employment with the
134
- partnering private-sector companies for potential full-time roles –
135
- demonstrating the value of combining civil service with technical
136
- expertise.
137
- </p>
138
- <p>
139
- If you are highly skilled in the areas of software engineering,
140
- artificial intelligence, cybersecurity, data analytics, or technical
141
- project management and want to build the future of American government
142
- technology, join the Tech Force today.
143
- </p>
144
- </TwoColumnSection>
145
- ),
146
- globals: {
147
- viewport: { value: "lg", isRotated: false },
148
- },
149
- };
150
-
151
- export const Tablet: Story = {
152
- render: () => (
153
- <TwoColumnSection
154
- colorScheme="dark"
155
- title="US Tech Force"
156
- lead="The US Tech Force is recruiting an elite corps of engineers to build the next generation of government technology. Backed by the White House, Tech Force will tackle the most complex and large-scale civic and defense challenges of our era."
157
- >
158
- <p>
159
- Through a two-year program, participants will work in teams reporting
160
- directly to agency leadership. In collaboration with leading technology
161
- companies, participants will receive technical training, engage with
162
- industry leaders, and work closely with senior managers from companies
163
- partnering with the Tech Force.
164
- </p>
165
- <p>
166
- Upon completing the program, engineers can seek employment with the
167
- partnering private-sector companies for potential full-time roles –
168
- demonstrating the value of combining civil service with technical
169
- expertise.
170
- </p>
171
- <p>
172
- If you are highly skilled in the areas of software engineering,
173
- artificial intelligence, cybersecurity, data analytics, or technical
174
- project management and want to build the future of American government
175
- technology, join the Tech Force today.
176
- </p>
177
- </TwoColumnSection>
178
- ),
179
- globals: {
180
- viewport: { value: "md", isRotated: false },
181
- },
182
- };
183
-
184
- export const Mobile: Story = {
185
- render: () => (
186
- <TwoColumnSection
187
- colorScheme="dark"
188
- title="US Tech Force"
189
- lead="The US Tech Force is recruiting an elite corps of engineers to build the next generation of government technology. Backed by the White House, Tech Force will tackle the most complex and large-scale civic and defense challenges of our era."
190
- >
191
- <p>
192
- Through a two-year program, participants will work in teams reporting
193
- directly to agency leadership. In collaboration with leading technology
194
- companies, participants will receive technical training, engage with
195
- industry leaders, and work closely with senior managers from companies
196
- partnering with the Tech Force.
197
- </p>
198
- <p>
199
- Upon completing the program, engineers can seek employment with the
200
- partnering private-sector companies for potential full-time roles –
201
- demonstrating the value of combining civil service with technical
202
- expertise.
203
- </p>
204
- <p>
205
- If you are highly skilled in the areas of software engineering,
206
- artificial intelligence, cybersecurity, data analytics, or technical
207
- project management and want to build the future of American government
208
- technology, join the Tech Force today.
209
- </p>
210
- </TwoColumnSection>
211
- ),
212
- globals: {
213
- viewport: { value: "sm", isRotated: false },
214
- },
215
- };
216
-
217
- // =============================================================================
218
- // Content Variations
219
- // =============================================================================
220
-
221
- /**
222
- * Without lead content - just title and body
223
- */
224
- export const WithoutLead: Story = {
225
- render: () => (
226
- <TwoColumnSection colorScheme="dark" title="About the Program">
227
- <p>
228
- Through a two-year program, participants will work in teams reporting
229
- directly to agency leadership. In collaboration with leading technology
230
- companies, participants will receive technical training, engage with
231
- industry leaders, and work closely with senior managers from companies
232
- partnering with the Tech Force.
233
- </p>
234
- <p>
235
- Upon completing the program, engineers can seek employment with the
236
- partnering private-sector companies for potential full-time roles.
237
- </p>
238
- </TwoColumnSection>
239
- ),
240
- };
241
-
242
- /**
243
- * With rich lead content (ReactNode)
244
- */
245
- export const RichLeadContent: Story = {
246
- render: () => (
247
- <TwoColumnSection
248
- colorScheme="dark"
249
- title="Our Mission"
250
- lead={
251
- <>
252
- <p>
253
- The US Tech Force is recruiting an elite corps of engineers to build
254
- the next generation of government technology.
255
- </p>
256
- <p>
257
- Backed by the White House, Tech Force will tackle the most complex
258
- and large-scale civic and defense challenges of our era.
259
- </p>
260
- </>
261
- }
262
- >
263
- <p>
264
- From administering critical financial infrastructure at the Treasury
265
- Department to advancing cutting-edge programs at the Department of War –
266
- and everything in between.
267
- </p>
268
- </TwoColumnSection>
269
- ),
270
- };
271
-
272
- /**
273
- * Short content example
274
- */
275
- export const ShortContent: Story = {
276
- render: () => (
277
- <TwoColumnSection
278
- colorScheme="dark"
279
- title="Join Us"
280
- lead="Build the future of American government technology."
281
- >
282
- <p>Applications are now open for qualified engineers.</p>
283
- </TwoColumnSection>
284
- ),
285
- };
@@ -1,5 +0,0 @@
1
- export {
2
- FloatingArrowSvg,
3
- type FloatingArrowSvgProps,
4
- floatingArrowVariants,
5
- } from "./floating-arrow";
package/src/index.ts DELETED
@@ -1,293 +0,0 @@
1
- /**
2
- * @nationaldesignstudio/react
3
- * Design system components for React applications
4
- */
5
-
6
- // =============================================================================
7
- // Atoms
8
- // =============================================================================
9
- export type {
10
- AccordionItemProps,
11
- AccordionProps,
12
- } from "./components/atoms/accordion";
13
- export { Accordion, AccordionItem } from "./components/atoms/accordion";
14
- export type {
15
- BackgroundGradientProps,
16
- BackgroundImageProps,
17
- BackgroundOverlayProps,
18
- BackgroundProps,
19
- BackgroundStreamProps,
20
- BackgroundVideoProps,
21
- } from "./components/atoms/background";
22
- export {
23
- Background,
24
- BackgroundGradient,
25
- BackgroundImage,
26
- BackgroundOverlay,
27
- BackgroundStream,
28
- BackgroundVideo,
29
- backgroundGradientVariants,
30
- backgroundImageVariants,
31
- backgroundOverlayVariants,
32
- backgroundStreamVariants,
33
- backgroundVariants,
34
- backgroundVideoVariants,
35
- } from "./components/atoms/background";
36
- export type { ButtonProps, IconButtonProps } from "./components/atoms/button";
37
- export {
38
- Button,
39
- buttonVariants,
40
- IconButton,
41
- iconButtonVariants,
42
- } from "./components/atoms/button";
43
- export type {
44
- InputGroupAddonProps,
45
- InputGroupButtonProps,
46
- InputGroupInputProps,
47
- InputGroupProps,
48
- InputGroupTextareaProps,
49
- InputGroupTextProps,
50
- InputProps,
51
- } from "./components/atoms/input";
52
- export {
53
- Input,
54
- InputGroup,
55
- InputGroupAddon,
56
- InputGroupButton,
57
- InputGroupInput,
58
- InputGroupText,
59
- InputGroupTextarea,
60
- inputGroupAddonVariants,
61
- inputGroupVariants,
62
- inputVariants,
63
- } from "./components/atoms/input";
64
- export type { NdstudioFooterProps } from "./components/atoms/ndstudio-footer";
65
- export { NdstudioFooter } from "./components/atoms/ndstudio-footer";
66
- export type { PagerControlProps } from "./components/atoms/pager-control";
67
- export {
68
- PagerControl,
69
- pagerControlVariants,
70
- } from "./components/atoms/pager-control";
71
- export type {
72
- PopoverArrowProps,
73
- PopoverBackdropProps,
74
- PopoverCloseProps,
75
- PopoverDescriptionProps,
76
- PopoverPopupProps,
77
- PopoverPortalProps,
78
- PopoverPositionerProps,
79
- PopoverProps,
80
- PopoverRootProps,
81
- PopoverTitleProps,
82
- PopoverTriggerProps,
83
- } from "./components/atoms/popover";
84
- export {
85
- Popover,
86
- PopoverArrow,
87
- PopoverBackdrop,
88
- PopoverClose,
89
- PopoverDescription,
90
- PopoverParts,
91
- PopoverPopup,
92
- PopoverPortal,
93
- PopoverPositioner,
94
- PopoverRoot,
95
- PopoverTitle,
96
- PopoverTrigger,
97
- popoverArrowVariants,
98
- popoverPopupVariants,
99
- } from "./components/atoms/popover";
100
- export type {
101
- SelectGroupLabelProps,
102
- SelectGroupProps,
103
- SelectOptionProps,
104
- SelectPopupProps,
105
- SelectProps,
106
- SelectTriggerProps,
107
- } from "./components/atoms/select";
108
- export {
109
- Select,
110
- SelectGroup,
111
- SelectGroupLabel,
112
- SelectOption,
113
- SelectPopup,
114
- SelectRoot,
115
- SelectTrigger,
116
- selectOptionVariants,
117
- selectPopupVariants,
118
- selectTriggerVariants,
119
- } from "./components/atoms/select";
120
- export type {
121
- TooltipArrowProps,
122
- TooltipPopupProps,
123
- TooltipPortalProps,
124
- TooltipPositionerProps,
125
- TooltipProps,
126
- TooltipProviderProps,
127
- TooltipRootProps,
128
- TooltipTriggerProps,
129
- } from "./components/atoms/tooltip";
130
- export {
131
- Tooltip,
132
- TooltipArrow,
133
- TooltipParts,
134
- TooltipPopup,
135
- TooltipPortal,
136
- TooltipPositioner,
137
- TooltipProvider,
138
- TooltipRoot,
139
- TooltipTrigger,
140
- tooltipArrowVariants,
141
- tooltipPopupVariants,
142
- } from "./components/atoms/tooltip";
143
- // =============================================================================
144
- // Dev Tools
145
- // =============================================================================
146
- export type { DevToolbarProps, GridOverlayProps } from "./components/dev-tools";
147
- export { DevToolbar, GridOverlay } from "./components/dev-tools";
148
- // =============================================================================
149
- // Organisms
150
- // =============================================================================
151
- export type {
152
- CardActionsProps,
153
- CardBodyProps,
154
- CardContentProps,
155
- CardDescriptionProps,
156
- CardEyebrowProps,
157
- CardImageProps,
158
- CardProps,
159
- CardTitleProps,
160
- } from "./components/organisms/card";
161
- export {
162
- Card,
163
- CardActions,
164
- CardBody,
165
- CardContent,
166
- CardDescription,
167
- CardEyebrow,
168
- CardImage,
169
- CardTitle,
170
- cardVariants,
171
- } from "./components/organisms/card";
172
- export type {
173
- NavbarActionsProps,
174
- NavbarBrandProps,
175
- NavbarLinkProps,
176
- NavbarLinksProps,
177
- NavbarMobileMenuButtonProps,
178
- NavbarMobileMenuLinkProps,
179
- NavbarMobileMenuProps,
180
- NavbarProps,
181
- } from "./components/organisms/navbar";
182
- export {
183
- Navbar,
184
- NavbarActions,
185
- NavbarBrand,
186
- NavbarLink,
187
- NavbarLinks,
188
- NavbarMobileMenu,
189
- NavbarMobileMenuButton,
190
- NavbarMobileMenuLink,
191
- } from "./components/organisms/navbar";
192
- export type { USGovBannerProps } from "./components/organisms/us-gov-banner";
193
- export { USGovBanner } from "./components/organisms/us-gov-banner";
194
- // =============================================================================
195
- // Sections
196
- // =============================================================================
197
- export type { BannerProps } from "./components/sections/banner";
198
- export { Banner, bannerVariants } from "./components/sections/banner";
199
- export type { CardGridProps } from "./components/sections/card-grid";
200
- export { CardGrid, cardGridVariants } from "./components/sections/card-grid";
201
- export type { FaqSectionProps } from "./components/sections/faq-section";
202
- export { FaqSection } from "./components/sections/faq-section";
203
- export type {
204
- HeroBackgroundImageProps,
205
- HeroBackgroundStreamProps,
206
- HeroBackgroundVideoProps,
207
- HeroContentProps,
208
- HeroGradientProps,
209
- HeroHeaderProps,
210
- HeroOverlayProps,
211
- HeroProps,
212
- } from "./components/sections/hero";
213
- export {
214
- DEFAULT_TITLE_TYPOGRAPHY,
215
- Hero,
216
- HeroBackground,
217
- HeroBackgroundImage,
218
- HeroBackgroundStream,
219
- HeroBackgroundVideo,
220
- HeroContent,
221
- HeroGradient,
222
- HeroHeader,
223
- HeroOverlay,
224
- heroContentVariants,
225
- heroHeaderVariants,
226
- heroVariants,
227
- } from "./components/sections/hero";
228
- export type {
229
- ProseProps,
230
- ProseSectionProps,
231
- } from "./components/sections/prose";
232
- export { Prose, ProseSection } from "./components/sections/prose";
233
- export type { QuoteBlockProps } from "./components/sections/quote-block";
234
- export {
235
- QuoteBlock,
236
- quoteBlockVariants,
237
- } from "./components/sections/quote-block";
238
- export type { RiverProps } from "./components/sections/river";
239
- export { River, riverVariants } from "./components/sections/river";
240
- export type { ToutProps } from "./components/sections/tout";
241
- export { Tout } from "./components/sections/tout";
242
- export type { TwoColumnSectionProps } from "./components/sections/two-column-section";
243
- export {
244
- TwoColumnSection,
245
- twoColumnSectionVariants,
246
- } from "./components/sections/two-column-section";
247
- // =============================================================================
248
- // Theme
249
- // =============================================================================
250
- export type {
251
- ButtonTheme,
252
- ColorToken,
253
- ComponentTheme,
254
- ComponentThemeColors,
255
- ComponentThemeSpatial,
256
- ComponentThemeSurface,
257
- FontSizeToken,
258
- RadiusToken,
259
- SpacingToken,
260
- } from "./lib/theme";
261
- export {
262
- buttonThemeToStyleVars,
263
- FONT_SIZES,
264
- fontSizeToClass,
265
- responsiveTypographyClass,
266
- themeToStyleVars,
267
- } from "./lib/theme";
268
-
269
- // =============================================================================
270
- // Utilities
271
- // =============================================================================
272
- export { cn } from "./lib/utils";
273
-
274
- // =============================================================================
275
- // Theme
276
- // =============================================================================
277
- export {
278
- applyTheme,
279
- createThemeStyle,
280
- filterCSSVars,
281
- getToken,
282
- mergeCSSVars,
283
- removeTheme,
284
- type ThemeContextValue,
285
- // Provider and hooks
286
- ThemeProvider,
287
- type ThemeProviderProps,
288
- // Utilities
289
- toCSSVars,
290
- useCSSVars,
291
- useTheme,
292
- useThemeTokens,
293
- } from "./theme";
package/src/main.tsx DELETED
@@ -1,13 +0,0 @@
1
- import { StrictMode } from "react";
2
- import { createRoot } from "react-dom/client";
3
- import "./styles.css";
4
- import App from "./App.tsx";
5
-
6
- const rootElement = document.getElementById("root");
7
- if (rootElement) {
8
- createRoot(rootElement).render(
9
- <StrictMode>
10
- <App />
11
- </StrictMode>,
12
- );
13
- }