@nationaldesignstudio/react 0.0.14 → 0.0.16
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/tailwind.css +15 -1
- package/dist/tokens.css +45 -60
- package/package.json +5 -10
- package/src/App.css +0 -0
- package/src/App.tsx +7 -0
- package/src/assets/fonts/PPNeueMontreal-Variable.woff2 +0 -0
- package/src/assets/react.svg +1 -0
- package/src/components/atoms/accordion/accordion.stories.tsx +228 -0
- package/src/components/atoms/accordion/accordion.tsx +219 -0
- package/src/components/atoms/accordion/index.ts +6 -0
- package/src/components/atoms/button/__screenshots__/button.visual.test.tsx/button-charcoal-chromium-darwin.png +0 -0
- package/src/components/atoms/button/__screenshots__/button.visual.test.tsx/button-charcoal-chromium-linux.png +0 -0
- package/src/components/atoms/button/__screenshots__/button.visual.test.tsx/button-charcoal-outline-chromium-darwin.png +0 -0
- package/src/components/atoms/button/__screenshots__/button.visual.test.tsx/button-charcoal-outline-chromium-linux.png +0 -0
- package/src/components/atoms/button/__screenshots__/button.visual.test.tsx/button-charcoal-outline-quiet-chromium-darwin.png +0 -0
- package/src/components/atoms/button/__screenshots__/button.visual.test.tsx/button-charcoal-outline-quiet-chromium-linux.png +0 -0
- package/src/components/atoms/button/__screenshots__/button.visual.test.tsx/button-disabled-chromium-darwin.png +0 -0
- package/src/components/atoms/button/__screenshots__/button.visual.test.tsx/button-disabled-chromium-linux.png +0 -0
- package/src/components/atoms/button/__screenshots__/button.visual.test.tsx/button-ivory-chromium-darwin.png +0 -0
- package/src/components/atoms/button/__screenshots__/button.visual.test.tsx/button-ivory-chromium-linux.png +0 -0
- package/src/components/atoms/button/__screenshots__/button.visual.test.tsx/button-ivory-outline-chromium-darwin.png +0 -0
- package/src/components/atoms/button/__screenshots__/button.visual.test.tsx/button-ivory-outline-chromium-linux.png +0 -0
- package/src/components/atoms/button/__screenshots__/button.visual.test.tsx/button-ivory-outline-quiet-chromium-darwin.png +0 -0
- package/src/components/atoms/button/__screenshots__/button.visual.test.tsx/button-ivory-outline-quiet-chromium-linux.png +0 -0
- package/src/components/atoms/button/__screenshots__/button.visual.test.tsx/button-size-large-chromium-darwin.png +0 -0
- package/src/components/atoms/button/__screenshots__/button.visual.test.tsx/button-size-large-chromium-linux.png +0 -0
- package/src/components/atoms/button/__screenshots__/button.visual.test.tsx/button-size-medium-chromium-darwin.png +0 -0
- package/src/components/atoms/button/__screenshots__/button.visual.test.tsx/button-size-medium-chromium-linux.png +0 -0
- package/src/components/atoms/button/__screenshots__/button.visual.test.tsx/button-size-small-chromium-darwin.png +0 -0
- package/src/components/atoms/button/__screenshots__/button.visual.test.tsx/button-size-small-chromium-linux.png +0 -0
- package/src/components/atoms/button/button.stories.tsx +102 -0
- package/src/components/atoms/button/button.test.tsx +135 -0
- package/src/components/atoms/button/button.tsx +139 -0
- package/src/components/atoms/button/button.visual.test.tsx +102 -0
- package/src/components/atoms/button/icon-button.stories.tsx +166 -0
- package/src/components/atoms/button/icon-button.tsx +120 -0
- package/src/components/atoms/button/index.ts +6 -0
- package/src/components/atoms/ndstudio-footer/index.ts +1 -0
- package/src/components/atoms/ndstudio-footer/ndstudio-footer.tsx +55 -0
- package/src/components/atoms/pager-control/index.ts +5 -0
- package/src/components/atoms/pager-control/pager-control.stories.tsx +209 -0
- package/src/components/atoms/pager-control/pager-control.test.tsx +130 -0
- package/src/components/atoms/pager-control/pager-control.tsx +329 -0
- package/src/components/dev-tools/dev-toolbar/dev-toolbar.stories.tsx +82 -0
- package/src/components/dev-tools/dev-toolbar/dev-toolbar.tsx +196 -0
- package/src/components/dev-tools/dev-toolbar/index.ts +1 -0
- package/src/components/dev-tools/grid-overlay/grid-overlay.tsx +41 -0
- package/src/components/dev-tools/grid-overlay/index.ts +1 -0
- package/src/components/dev-tools/index.ts +2 -0
- package/src/components/organisms/card/__screenshots__/card.visual.test.tsx/card-default-vertical-chromium-darwin.png +0 -0
- package/src/components/organisms/card/__screenshots__/card.visual.test.tsx/card-default-vertical-chromium-linux.png +0 -0
- package/src/components/organisms/card/__screenshots__/card.visual.test.tsx/card-horizontal-chromium-darwin.png +0 -0
- package/src/components/organisms/card/__screenshots__/card.visual.test.tsx/card-horizontal-chromium-linux.png +0 -0
- package/src/components/organisms/card/__screenshots__/card.visual.test.tsx/card-minimal-chromium-darwin.png +0 -0
- package/src/components/organisms/card/__screenshots__/card.visual.test.tsx/card-minimal-chromium-linux.png +0 -0
- package/src/components/organisms/card/__screenshots__/card.visual.test.tsx/card-without-actions-chromium-darwin.png +0 -0
- package/src/components/organisms/card/__screenshots__/card.visual.test.tsx/card-without-actions-chromium-linux.png +0 -0
- package/src/components/organisms/card/__screenshots__/card.visual.test.tsx/card-without-eyebrow-chromium-darwin.png +0 -0
- package/src/components/organisms/card/__screenshots__/card.visual.test.tsx/card-without-eyebrow-chromium-linux.png +0 -0
- package/src/components/organisms/card/__screenshots__/card.visual.test.tsx/card-without-image-chromium-darwin.png +0 -0
- package/src/components/organisms/card/__screenshots__/card.visual.test.tsx/card-without-image-chromium-linux.png +0 -0
- package/src/components/organisms/card/card.stories.tsx +293 -0
- package/src/components/organisms/card/card.test.tsx +245 -0
- package/src/components/organisms/card/card.tsx +225 -0
- package/src/components/organisms/card/card.visual.test.tsx +197 -0
- package/src/components/organisms/card/index.ts +19 -0
- package/src/components/organisms/navbar/__screenshots__/navbar.visual.test.tsx/navbar-active-link-chromium-darwin.png +0 -0
- package/src/components/organisms/navbar/__screenshots__/navbar.visual.test.tsx/navbar-active-link-chromium-linux.png +0 -0
- package/src/components/organisms/navbar/__screenshots__/navbar.visual.test.tsx/navbar-brand-only-chromium-darwin.png +0 -0
- package/src/components/organisms/navbar/__screenshots__/navbar.visual.test.tsx/navbar-brand-only-chromium-linux.png +0 -0
- package/src/components/organisms/navbar/__screenshots__/navbar.visual.test.tsx/navbar-default-chromium-darwin.png +0 -0
- package/src/components/organisms/navbar/__screenshots__/navbar.visual.test.tsx/navbar-default-chromium-linux.png +0 -0
- package/src/components/organisms/navbar/index.ts +18 -0
- package/src/components/organisms/navbar/navbar.stories.tsx +313 -0
- package/src/components/organisms/navbar/navbar.test.tsx +190 -0
- package/src/components/organisms/navbar/navbar.tsx +323 -0
- package/src/components/organisms/navbar/navbar.visual.test.tsx +85 -0
- package/src/components/organisms/us-gov-banner/__screenshots__/us-gov-banner.visual.test.tsx/us-gov-banner-custom-icon-chromium-darwin.png +0 -0
- package/src/components/organisms/us-gov-banner/__screenshots__/us-gov-banner.visual.test.tsx/us-gov-banner-custom-icon-chromium-linux.png +0 -0
- package/src/components/organisms/us-gov-banner/__screenshots__/us-gov-banner.visual.test.tsx/us-gov-banner-custom-text-chromium-darwin.png +0 -0
- package/src/components/organisms/us-gov-banner/__screenshots__/us-gov-banner.visual.test.tsx/us-gov-banner-custom-text-chromium-linux.png +0 -0
- package/src/components/organisms/us-gov-banner/__screenshots__/us-gov-banner.visual.test.tsx/us-gov-banner-default-chromium-darwin.png +0 -0
- package/src/components/organisms/us-gov-banner/__screenshots__/us-gov-banner.visual.test.tsx/us-gov-banner-default-chromium-linux.png +0 -0
- package/src/components/organisms/us-gov-banner/index.ts +1 -0
- package/src/components/organisms/us-gov-banner/us-gov-banner.stories.tsx +35 -0
- package/src/components/organisms/us-gov-banner/us-gov-banner.test.tsx +107 -0
- package/src/components/organisms/us-gov-banner/us-gov-banner.tsx +73 -0
- package/src/components/organisms/us-gov-banner/us-gov-banner.visual.test.tsx +46 -0
- package/src/components/sections/banner/banner.stories.tsx +150 -0
- package/src/components/sections/banner/banner.test.tsx +185 -0
- package/src/components/sections/banner/banner.tsx +130 -0
- package/src/components/sections/banner/index.ts +2 -0
- package/src/components/sections/card-grid/card-grid.stories.tsx +351 -0
- package/src/components/sections/card-grid/card-grid.tsx +116 -0
- package/src/components/sections/card-grid/index.ts +1 -0
- package/src/components/sections/faq-section/faq-section.stories.tsx +453 -0
- package/src/components/sections/faq-section/faq-section.tsx +84 -0
- package/src/components/sections/faq-section/index.ts +2 -0
- package/src/components/sections/hero/__screenshots__/hero.visual.test.tsx/hero-a1-desktop-chromium-darwin.png +0 -0
- package/src/components/sections/hero/__screenshots__/hero.visual.test.tsx/hero-a1-desktop-chromium-linux.png +0 -0
- package/src/components/sections/hero/__screenshots__/hero.visual.test.tsx/hero-a1-mobile-chromium-darwin.png +0 -0
- package/src/components/sections/hero/__screenshots__/hero.visual.test.tsx/hero-a1-mobile-chromium-linux.png +0 -0
- package/src/components/sections/hero/__screenshots__/hero.visual.test.tsx/hero-a1-tablet-chromium-darwin.png +0 -0
- package/src/components/sections/hero/__screenshots__/hero.visual.test.tsx/hero-a1-tablet-chromium-linux.png +0 -0
- package/src/components/sections/hero/__screenshots__/hero.visual.test.tsx/hero-a2-desktop-chromium-darwin.png +0 -0
- package/src/components/sections/hero/__screenshots__/hero.visual.test.tsx/hero-a2-desktop-chromium-linux.png +0 -0
- package/src/components/sections/hero/__screenshots__/hero.visual.test.tsx/hero-a2-mobile-chromium-darwin.png +0 -0
- package/src/components/sections/hero/__screenshots__/hero.visual.test.tsx/hero-a2-mobile-chromium-linux.png +0 -0
- package/src/components/sections/hero/__screenshots__/hero.visual.test.tsx/hero-a2-tablet-chromium-darwin.png +0 -0
- package/src/components/sections/hero/__screenshots__/hero.visual.test.tsx/hero-a2-tablet-chromium-linux.png +0 -0
- package/src/components/sections/hero/__screenshots__/hero.visual.test.tsx/hero-a3-desktop-chromium-darwin.png +0 -0
- package/src/components/sections/hero/__screenshots__/hero.visual.test.tsx/hero-a3-desktop-chromium-linux.png +0 -0
- package/src/components/sections/hero/__screenshots__/hero.visual.test.tsx/hero-a3-mobile-chromium-darwin.png +0 -0
- package/src/components/sections/hero/__screenshots__/hero.visual.test.tsx/hero-a3-mobile-chromium-linux.png +0 -0
- package/src/components/sections/hero/__screenshots__/hero.visual.test.tsx/hero-a3-tablet-chromium-darwin.png +0 -0
- package/src/components/sections/hero/__screenshots__/hero.visual.test.tsx/hero-a3-tablet-chromium-linux.png +0 -0
- package/src/components/sections/hero/__screenshots__/hero.visual.test.tsx/hero-custom-class-chromium-darwin.png +0 -0
- package/src/components/sections/hero/__screenshots__/hero.visual.test.tsx/hero-custom-class-chromium-linux.png +0 -0
- package/src/components/sections/hero/__screenshots__/hero.visual.test.tsx/hero-default-chromium-linux.png +0 -0
- package/src/components/sections/hero/__screenshots__/hero.visual.test.tsx/hero-long-title-chromium-darwin.png +0 -0
- package/src/components/sections/hero/__screenshots__/hero.visual.test.tsx/hero-long-title-chromium-linux.png +0 -0
- package/src/components/sections/hero/hero.stories.tsx +274 -0
- package/src/components/sections/hero/hero.test.tsx +135 -0
- package/src/components/sections/hero/hero.tsx +453 -0
- package/src/components/sections/hero/hero.visual.test.tsx +140 -0
- package/src/components/sections/hero/index.ts +10 -0
- package/src/components/sections/prose/__screenshots__/prose.visual.test.tsx/prose-h3-heading-chromium-darwin.png +0 -0
- package/src/components/sections/prose/__screenshots__/prose.visual.test.tsx/prose-h3-heading-chromium-linux.png +0 -0
- package/src/components/sections/prose/__screenshots__/prose.visual.test.tsx/prose-multiple-paragraphs-chromium-darwin.png +0 -0
- package/src/components/sections/prose/__screenshots__/prose.visual.test.tsx/prose-multiple-paragraphs-chromium-linux.png +0 -0
- package/src/components/sections/prose/__screenshots__/prose.visual.test.tsx/prose-multiple-sections-chromium-darwin.png +0 -0
- package/src/components/sections/prose/__screenshots__/prose.visual.test.tsx/prose-multiple-sections-chromium-linux.png +0 -0
- package/src/components/sections/prose/__screenshots__/prose.visual.test.tsx/prose-single-section-chromium-darwin.png +0 -0
- package/src/components/sections/prose/__screenshots__/prose.visual.test.tsx/prose-single-section-chromium-linux.png +0 -0
- package/src/components/sections/prose/index.ts +6 -0
- package/src/components/sections/prose/prose.stories.tsx +144 -0
- package/src/components/sections/prose/prose.test.tsx +178 -0
- package/src/components/sections/prose/prose.tsx +88 -0
- package/src/components/sections/prose/prose.visual.test.tsx +105 -0
- package/src/components/sections/river/index.ts +1 -0
- package/src/components/sections/river/river.stories.tsx +237 -0
- package/src/components/sections/river/river.test.tsx +268 -0
- package/src/components/sections/river/river.tsx +173 -0
- package/src/components/sections/tout/index.ts +1 -0
- package/src/components/sections/tout/tout.stories.tsx +171 -0
- package/src/components/sections/tout/tout.test.tsx +242 -0
- package/src/components/sections/tout/tout.tsx +270 -0
- package/src/components/sections/two-column-section/index.ts +5 -0
- package/src/components/sections/two-column-section/two-column-section.stories.tsx +285 -0
- package/src/components/sections/two-column-section/two-column-section.tsx +162 -0
- package/src/hooks/index.ts +1 -0
- package/src/hooks/use-event-listener.ts +73 -0
- package/src/index.ts +155 -0
- package/src/lib/theme.ts +1000 -0
- package/src/lib/utils.ts +6 -0
- package/src/main.tsx +13 -0
- package/src/stories/GridSystem.stories.tsx +84 -0
- package/src/stories/Introduction.mdx +114 -0
- package/src/stories/ThemeProvider.stories.tsx +357 -0
- package/src/stories/TokenShowcase.stories.tsx +92 -0
- package/src/stories/TokenShowcase.tsx +1429 -0
- package/src/styles.css +11 -0
- package/src/theme/ThemeProvider.tsx +297 -0
- package/src/theme/hooks.ts +40 -0
- package/src/theme/index.ts +43 -0
- package/src/theme/utils.ts +104 -0
package/dist/tailwind.css
CHANGED
|
@@ -1,9 +1,23 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Tailwind CSS entry point for @nationaldesignstudio/react
|
|
3
|
-
* This file re-exports tokens.css for backwards compatibility.
|
|
4
3
|
*
|
|
5
4
|
* Usage in your app's CSS:
|
|
6
5
|
* @import "tailwindcss";
|
|
7
6
|
* @import "@nationaldesignstudio/react/tailwind.css";
|
|
8
7
|
*/
|
|
8
|
+
|
|
9
|
+
/* Scan component source files for Tailwind class usage */
|
|
10
|
+
@source "../src/components/**/*.tsx";
|
|
11
|
+
|
|
12
|
+
/* Import design tokens (@theme and @utility definitions) */
|
|
9
13
|
@import "./tokens.css";
|
|
14
|
+
|
|
15
|
+
/* Custom font */
|
|
16
|
+
@font-face {
|
|
17
|
+
font-family: "PP Neue Montreal";
|
|
18
|
+
src: url("./assets/fonts/PPNeueMontreal-Variable.woff2")
|
|
19
|
+
format("woff2-variations");
|
|
20
|
+
font-weight: 100 900;
|
|
21
|
+
font-style: normal;
|
|
22
|
+
font-display: swap;
|
|
23
|
+
}
|
package/dist/tokens.css
CHANGED
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Design Tokens for Tailwind CSS v4
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* @import "tailwindcss";
|
|
6
|
-
* @import "@nationaldesignstudio/react/tokens.css";
|
|
2
|
+
* Design Tokens for Tailwind CSS v4
|
|
3
|
+
* Auto-generated - DO NOT EDIT
|
|
4
|
+
* Generated from: @nds-design-system/tokens
|
|
7
5
|
*/
|
|
8
|
-
|
|
9
|
-
/* Scan component source files for Tailwind class usage */
|
|
10
|
-
@source "../src/components/**/*.tsx";
|
|
11
|
-
|
|
12
6
|
:root {
|
|
13
7
|
--breakpoint-lg: 90rem;
|
|
14
8
|
--breakpoint-md: 48rem;
|
|
@@ -2513,7 +2507,7 @@
|
|
|
2513
2507
|
font-weight: var(--font-weight-regular);
|
|
2514
2508
|
line-height: var(--leading-18);
|
|
2515
2509
|
letter-spacing: var(--tracking-18);
|
|
2516
|
-
|
|
2510
|
+
|
|
2517
2511
|
|
|
2518
2512
|
/* Tablet (md breakpoint+) */
|
|
2519
2513
|
@media (width >= 48rem) {
|
|
@@ -2541,7 +2535,7 @@
|
|
|
2541
2535
|
font-weight: var(--font-weight-regular);
|
|
2542
2536
|
line-height: var(--leading-16);
|
|
2543
2537
|
letter-spacing: var(--tracking-16);
|
|
2544
|
-
|
|
2538
|
+
|
|
2545
2539
|
|
|
2546
2540
|
/* Tablet (md breakpoint+) */
|
|
2547
2541
|
@media (width >= 48rem) {
|
|
@@ -2569,7 +2563,7 @@
|
|
|
2569
2563
|
font-weight: var(--font-weight-regular);
|
|
2570
2564
|
line-height: var(--leading-14);
|
|
2571
2565
|
letter-spacing: var(--tracking-14);
|
|
2572
|
-
|
|
2566
|
+
|
|
2573
2567
|
|
|
2574
2568
|
/* Tablet (md breakpoint+) */
|
|
2575
2569
|
@media (width >= 48rem) {
|
|
@@ -2597,7 +2591,7 @@
|
|
|
2597
2591
|
font-weight: var(--font-weight-medium);
|
|
2598
2592
|
line-height: var(--text-16);
|
|
2599
2593
|
letter-spacing: var(--tracking-button);
|
|
2600
|
-
|
|
2594
|
+
|
|
2601
2595
|
|
|
2602
2596
|
/* Tablet (md breakpoint+) */
|
|
2603
2597
|
@media (width >= 48rem) {
|
|
@@ -2625,7 +2619,7 @@
|
|
|
2625
2619
|
font-weight: var(--font-weight-medium);
|
|
2626
2620
|
line-height: var(--text-14);
|
|
2627
2621
|
letter-spacing: var(--tracking-button);
|
|
2628
|
-
|
|
2622
|
+
|
|
2629
2623
|
|
|
2630
2624
|
/* Tablet (md breakpoint+) */
|
|
2631
2625
|
@media (width >= 48rem) {
|
|
@@ -2653,7 +2647,7 @@
|
|
|
2653
2647
|
font-weight: var(--font-weight-medium);
|
|
2654
2648
|
line-height: var(--text-12);
|
|
2655
2649
|
letter-spacing: var(--tracking-button);
|
|
2656
|
-
|
|
2650
|
+
|
|
2657
2651
|
|
|
2658
2652
|
/* Tablet (md breakpoint+) */
|
|
2659
2653
|
@media (width >= 48rem) {
|
|
@@ -2681,7 +2675,7 @@
|
|
|
2681
2675
|
font-weight: var(--font-weight-regular);
|
|
2682
2676
|
line-height: var(--leading-14);
|
|
2683
2677
|
letter-spacing: var(--tracking-14);
|
|
2684
|
-
|
|
2678
|
+
|
|
2685
2679
|
|
|
2686
2680
|
/* Tablet (md breakpoint+) */
|
|
2687
2681
|
@media (width >= 48rem) {
|
|
@@ -2709,7 +2703,7 @@
|
|
|
2709
2703
|
font-weight: var(--font-weight-regular);
|
|
2710
2704
|
line-height: var(--leading-12);
|
|
2711
2705
|
letter-spacing: var(--tracking-12);
|
|
2712
|
-
|
|
2706
|
+
|
|
2713
2707
|
|
|
2714
2708
|
/* Tablet (md breakpoint+) */
|
|
2715
2709
|
@media (width >= 48rem) {
|
|
@@ -2737,7 +2731,7 @@
|
|
|
2737
2731
|
font-weight: var(--font-weight-medium);
|
|
2738
2732
|
line-height: var(--leading-88);
|
|
2739
2733
|
letter-spacing: var(--tracking-88);
|
|
2740
|
-
|
|
2734
|
+
|
|
2741
2735
|
|
|
2742
2736
|
/* Tablet (md breakpoint+) */
|
|
2743
2737
|
@media (width >= 48rem) {
|
|
@@ -2765,7 +2759,7 @@
|
|
|
2765
2759
|
font-weight: var(--font-weight-regular);
|
|
2766
2760
|
line-height: var(--leading-88);
|
|
2767
2761
|
letter-spacing: var(--tracking-88);
|
|
2768
|
-
|
|
2762
|
+
|
|
2769
2763
|
|
|
2770
2764
|
/* Tablet (md breakpoint+) */
|
|
2771
2765
|
@media (width >= 48rem) {
|
|
@@ -2793,7 +2787,7 @@
|
|
|
2793
2787
|
font-weight: var(--font-weight-semibold);
|
|
2794
2788
|
line-height: var(--leading-88);
|
|
2795
2789
|
letter-spacing: var(--tracking-88);
|
|
2796
|
-
|
|
2790
|
+
|
|
2797
2791
|
|
|
2798
2792
|
/* Tablet (md breakpoint+) */
|
|
2799
2793
|
@media (width >= 48rem) {
|
|
@@ -2821,7 +2815,7 @@
|
|
|
2821
2815
|
font-weight: var(--font-weight-medium);
|
|
2822
2816
|
line-height: var(--leading-64);
|
|
2823
2817
|
letter-spacing: var(--tracking-64);
|
|
2824
|
-
|
|
2818
|
+
|
|
2825
2819
|
|
|
2826
2820
|
/* Tablet (md breakpoint+) */
|
|
2827
2821
|
@media (width >= 48rem) {
|
|
@@ -2849,7 +2843,7 @@
|
|
|
2849
2843
|
font-weight: var(--font-weight-medium);
|
|
2850
2844
|
line-height: var(--leading-56);
|
|
2851
2845
|
letter-spacing: var(--tracking-56);
|
|
2852
|
-
|
|
2846
|
+
|
|
2853
2847
|
|
|
2854
2848
|
/* Tablet (md breakpoint+) */
|
|
2855
2849
|
@media (width >= 48rem) {
|
|
@@ -2877,7 +2871,7 @@
|
|
|
2877
2871
|
font-weight: var(--font-weight-medium);
|
|
2878
2872
|
line-height: var(--leading-48);
|
|
2879
2873
|
letter-spacing: var(--tracking-48);
|
|
2880
|
-
|
|
2874
|
+
|
|
2881
2875
|
|
|
2882
2876
|
/* Tablet (md breakpoint+) */
|
|
2883
2877
|
@media (width >= 48rem) {
|
|
@@ -2905,7 +2899,7 @@
|
|
|
2905
2899
|
font-weight: var(--font-weight-medium);
|
|
2906
2900
|
line-height: var(--leading-72);
|
|
2907
2901
|
letter-spacing: var(--tracking-72);
|
|
2908
|
-
|
|
2902
|
+
|
|
2909
2903
|
|
|
2910
2904
|
/* Tablet (md breakpoint+) */
|
|
2911
2905
|
@media (width >= 48rem) {
|
|
@@ -2933,7 +2927,7 @@
|
|
|
2933
2927
|
font-weight: var(--font-weight-regular);
|
|
2934
2928
|
line-height: var(--leading-72);
|
|
2935
2929
|
letter-spacing: var(--tracking-72);
|
|
2936
|
-
|
|
2930
|
+
|
|
2937
2931
|
|
|
2938
2932
|
/* Tablet (md breakpoint+) */
|
|
2939
2933
|
@media (width >= 48rem) {
|
|
@@ -2961,7 +2955,7 @@
|
|
|
2961
2955
|
font-weight: var(--font-weight-semibold);
|
|
2962
2956
|
line-height: var(--leading-72);
|
|
2963
2957
|
letter-spacing: var(--tracking-72);
|
|
2964
|
-
|
|
2958
|
+
|
|
2965
2959
|
|
|
2966
2960
|
/* Tablet (md breakpoint+) */
|
|
2967
2961
|
@media (width >= 48rem) {
|
|
@@ -2989,7 +2983,7 @@
|
|
|
2989
2983
|
font-weight: var(--font-weight-medium);
|
|
2990
2984
|
line-height: var(--leading-64);
|
|
2991
2985
|
letter-spacing: var(--tracking-64);
|
|
2992
|
-
|
|
2986
|
+
|
|
2993
2987
|
|
|
2994
2988
|
/* Tablet (md breakpoint+) */
|
|
2995
2989
|
@media (width >= 48rem) {
|
|
@@ -3017,7 +3011,7 @@
|
|
|
3017
3011
|
font-weight: var(--font-weight-regular);
|
|
3018
3012
|
line-height: var(--leading-64);
|
|
3019
3013
|
letter-spacing: var(--tracking-64);
|
|
3020
|
-
|
|
3014
|
+
|
|
3021
3015
|
|
|
3022
3016
|
/* Tablet (md breakpoint+) */
|
|
3023
3017
|
@media (width >= 48rem) {
|
|
@@ -3045,7 +3039,7 @@
|
|
|
3045
3039
|
font-weight: var(--font-weight-semibold);
|
|
3046
3040
|
line-height: var(--leading-64);
|
|
3047
3041
|
letter-spacing: var(--tracking-64);
|
|
3048
|
-
|
|
3042
|
+
|
|
3049
3043
|
|
|
3050
3044
|
/* Tablet (md breakpoint+) */
|
|
3051
3045
|
@media (width >= 48rem) {
|
|
@@ -3073,7 +3067,7 @@
|
|
|
3073
3067
|
font-weight: var(--font-weight-medium);
|
|
3074
3068
|
line-height: var(--leading-42);
|
|
3075
3069
|
letter-spacing: var(--tracking-42);
|
|
3076
|
-
|
|
3070
|
+
|
|
3077
3071
|
|
|
3078
3072
|
/* Tablet (md breakpoint+) */
|
|
3079
3073
|
@media (width >= 48rem) {
|
|
@@ -3101,7 +3095,7 @@
|
|
|
3101
3095
|
font-weight: var(--font-weight-regular);
|
|
3102
3096
|
line-height: var(--leading-42);
|
|
3103
3097
|
letter-spacing: var(--tracking-42);
|
|
3104
|
-
|
|
3098
|
+
|
|
3105
3099
|
|
|
3106
3100
|
/* Tablet (md breakpoint+) */
|
|
3107
3101
|
@media (width >= 48rem) {
|
|
@@ -3129,7 +3123,7 @@
|
|
|
3129
3123
|
font-weight: var(--font-weight-semibold);
|
|
3130
3124
|
line-height: var(--leading-42);
|
|
3131
3125
|
letter-spacing: var(--tracking-42);
|
|
3132
|
-
|
|
3126
|
+
|
|
3133
3127
|
|
|
3134
3128
|
/* Tablet (md breakpoint+) */
|
|
3135
3129
|
@media (width >= 48rem) {
|
|
@@ -3157,7 +3151,7 @@
|
|
|
3157
3151
|
font-weight: var(--font-weight-medium);
|
|
3158
3152
|
line-height: var(--leading-32);
|
|
3159
3153
|
letter-spacing: var(--tracking-32);
|
|
3160
|
-
|
|
3154
|
+
|
|
3161
3155
|
|
|
3162
3156
|
/* Tablet (md breakpoint+) */
|
|
3163
3157
|
@media (width >= 48rem) {
|
|
@@ -3185,7 +3179,7 @@
|
|
|
3185
3179
|
font-weight: var(--font-weight-medium);
|
|
3186
3180
|
line-height: var(--leading-72);
|
|
3187
3181
|
letter-spacing: var(--tracking-72);
|
|
3188
|
-
|
|
3182
|
+
|
|
3189
3183
|
|
|
3190
3184
|
/* Tablet (md breakpoint+) */
|
|
3191
3185
|
@media (width >= 48rem) {
|
|
@@ -3213,7 +3207,7 @@
|
|
|
3213
3207
|
font-weight: var(--font-weight-regular);
|
|
3214
3208
|
line-height: var(--leading-72);
|
|
3215
3209
|
letter-spacing: var(--tracking-72);
|
|
3216
|
-
|
|
3210
|
+
|
|
3217
3211
|
|
|
3218
3212
|
/* Tablet (md breakpoint+) */
|
|
3219
3213
|
@media (width >= 48rem) {
|
|
@@ -3241,7 +3235,7 @@
|
|
|
3241
3235
|
font-weight: var(--font-weight-semibold);
|
|
3242
3236
|
line-height: var(--leading-72);
|
|
3243
3237
|
letter-spacing: var(--tracking-72);
|
|
3244
|
-
|
|
3238
|
+
|
|
3245
3239
|
|
|
3246
3240
|
/* Tablet (md breakpoint+) */
|
|
3247
3241
|
@media (width >= 48rem) {
|
|
@@ -3269,7 +3263,7 @@
|
|
|
3269
3263
|
font-weight: var(--font-weight-medium);
|
|
3270
3264
|
line-height: var(--text-14);
|
|
3271
3265
|
letter-spacing: var(--tracking-14);
|
|
3272
|
-
|
|
3266
|
+
|
|
3273
3267
|
|
|
3274
3268
|
/* Tablet (md breakpoint+) */
|
|
3275
3269
|
@media (width >= 48rem) {
|
|
@@ -3297,7 +3291,7 @@
|
|
|
3297
3291
|
font-weight: var(--font-weight-medium);
|
|
3298
3292
|
line-height: var(--text-12);
|
|
3299
3293
|
letter-spacing: var(--tracking-12);
|
|
3300
|
-
|
|
3294
|
+
|
|
3301
3295
|
|
|
3302
3296
|
/* Tablet (md breakpoint+) */
|
|
3303
3297
|
@media (width >= 48rem) {
|
|
@@ -3325,7 +3319,7 @@
|
|
|
3325
3319
|
font-weight: var(--font-weight-medium);
|
|
3326
3320
|
line-height: var(--text-11);
|
|
3327
3321
|
letter-spacing: var(--tracking-11);
|
|
3328
|
-
|
|
3322
|
+
|
|
3329
3323
|
|
|
3330
3324
|
/* Tablet (md breakpoint+) */
|
|
3331
3325
|
@media (width >= 48rem) {
|
|
@@ -3353,7 +3347,7 @@
|
|
|
3353
3347
|
font-weight: var(--font-weight-medium);
|
|
3354
3348
|
line-height: var(--leading-16);
|
|
3355
3349
|
letter-spacing: var(--tracking-16);
|
|
3356
|
-
|
|
3350
|
+
|
|
3357
3351
|
|
|
3358
3352
|
/* Tablet (md breakpoint+) */
|
|
3359
3353
|
@media (width >= 48rem) {
|
|
@@ -3381,7 +3375,7 @@
|
|
|
3381
3375
|
font-weight: var(--font-weight-medium);
|
|
3382
3376
|
line-height: var(--leading-14);
|
|
3383
3377
|
letter-spacing: var(--tracking-14);
|
|
3384
|
-
|
|
3378
|
+
|
|
3385
3379
|
|
|
3386
3380
|
/* Tablet (md breakpoint+) */
|
|
3387
3381
|
@media (width >= 48rem) {
|
|
@@ -3409,7 +3403,7 @@
|
|
|
3409
3403
|
font-weight: var(--font-weight-medium);
|
|
3410
3404
|
line-height: var(--leading-12);
|
|
3411
3405
|
letter-spacing: var(--tracking-12);
|
|
3412
|
-
|
|
3406
|
+
|
|
3413
3407
|
|
|
3414
3408
|
/* Tablet (md breakpoint+) */
|
|
3415
3409
|
@media (width >= 48rem) {
|
|
@@ -3437,7 +3431,7 @@
|
|
|
3437
3431
|
font-weight: var(--font-weight-medium);
|
|
3438
3432
|
line-height: var(--leading-31);
|
|
3439
3433
|
letter-spacing: var(--tracking-28);
|
|
3440
|
-
|
|
3434
|
+
|
|
3441
3435
|
|
|
3442
3436
|
/* Tablet (md breakpoint+) */
|
|
3443
3437
|
@media (width >= 48rem) {
|
|
@@ -3465,7 +3459,7 @@
|
|
|
3465
3459
|
font-weight: var(--font-weight-semibold);
|
|
3466
3460
|
line-height: var(--leading-31);
|
|
3467
3461
|
letter-spacing: var(--tracking-28);
|
|
3468
|
-
|
|
3462
|
+
|
|
3469
3463
|
|
|
3470
3464
|
/* Tablet (md breakpoint+) */
|
|
3471
3465
|
@media (width >= 48rem) {
|
|
@@ -3493,7 +3487,7 @@
|
|
|
3493
3487
|
font-weight: var(--font-weight-medium);
|
|
3494
3488
|
line-height: var(--leading-28);
|
|
3495
3489
|
letter-spacing: var(--tracking-24);
|
|
3496
|
-
|
|
3490
|
+
|
|
3497
3491
|
|
|
3498
3492
|
/* Tablet (md breakpoint+) */
|
|
3499
3493
|
@media (width >= 48rem) {
|
|
@@ -3521,7 +3515,7 @@
|
|
|
3521
3515
|
font-weight: var(--font-weight-semibold);
|
|
3522
3516
|
line-height: var(--leading-28);
|
|
3523
3517
|
letter-spacing: var(--tracking-24);
|
|
3524
|
-
|
|
3518
|
+
|
|
3525
3519
|
|
|
3526
3520
|
/* Tablet (md breakpoint+) */
|
|
3527
3521
|
@media (width >= 48rem) {
|
|
@@ -3549,7 +3543,7 @@
|
|
|
3549
3543
|
font-weight: var(--font-weight-medium);
|
|
3550
3544
|
line-height: var(--leading-22);
|
|
3551
3545
|
letter-spacing: var(--tracking-18);
|
|
3552
|
-
|
|
3546
|
+
|
|
3553
3547
|
|
|
3554
3548
|
/* Tablet (md breakpoint+) */
|
|
3555
3549
|
@media (width >= 48rem) {
|
|
@@ -3577,7 +3571,7 @@
|
|
|
3577
3571
|
font-weight: var(--font-weight-semibold);
|
|
3578
3572
|
line-height: var(--leading-22);
|
|
3579
3573
|
letter-spacing: var(--tracking-18);
|
|
3580
|
-
|
|
3574
|
+
|
|
3581
3575
|
|
|
3582
3576
|
/* Tablet (md breakpoint+) */
|
|
3583
3577
|
@media (width >= 48rem) {
|
|
@@ -3605,7 +3599,7 @@
|
|
|
3605
3599
|
font-weight: var(--font-weight-medium);
|
|
3606
3600
|
line-height: var(--text-16);
|
|
3607
3601
|
letter-spacing: var(--tracking-16);
|
|
3608
|
-
|
|
3602
|
+
|
|
3609
3603
|
|
|
3610
3604
|
/* Tablet (md breakpoint+) */
|
|
3611
3605
|
@media (width >= 48rem) {
|
|
@@ -3633,7 +3627,7 @@
|
|
|
3633
3627
|
font-weight: var(--font-weight-medium);
|
|
3634
3628
|
line-height: var(--text-14);
|
|
3635
3629
|
letter-spacing: var(--tracking-14);
|
|
3636
|
-
|
|
3630
|
+
|
|
3637
3631
|
|
|
3638
3632
|
/* Tablet (md breakpoint+) */
|
|
3639
3633
|
@media (width >= 48rem) {
|
|
@@ -24164,13 +24158,4 @@
|
|
|
24164
24158
|
@utility stroke-y-surface-card {
|
|
24165
24159
|
border-top-width: var(--surface-card-stroke);
|
|
24166
24160
|
border-bottom-width: var(--surface-card-stroke);
|
|
24167
|
-
}
|
|
24168
|
-
/* Custom font */
|
|
24169
|
-
@font-face {
|
|
24170
|
-
font-family: "PP Neue Montreal";
|
|
24171
|
-
src: url("./assets/fonts/PPNeueMontreal-Variable.woff2")
|
|
24172
|
-
format("woff2-variations");
|
|
24173
|
-
font-weight: 100 900;
|
|
24174
|
-
font-style: normal;
|
|
24175
|
-
font-display: swap;
|
|
24176
|
-
}
|
|
24161
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nationaldesignstudio/react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.16",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"*.css"
|
|
@@ -13,17 +13,12 @@
|
|
|
13
13
|
"types": "./dist/index.d.ts",
|
|
14
14
|
"import": "./dist/index.js"
|
|
15
15
|
},
|
|
16
|
-
"./tokens.css":
|
|
17
|
-
|
|
18
|
-
"default": "./dist/tokens.css"
|
|
19
|
-
},
|
|
20
|
-
"./tailwind.css": {
|
|
21
|
-
"style": "./dist/tailwind.css",
|
|
22
|
-
"default": "./dist/tailwind.css"
|
|
23
|
-
}
|
|
16
|
+
"./tokens.css": "./dist/tokens.css",
|
|
17
|
+
"./tailwind.css": "./dist/tailwind.css"
|
|
24
18
|
},
|
|
25
19
|
"files": [
|
|
26
|
-
"dist"
|
|
20
|
+
"dist",
|
|
21
|
+
"src"
|
|
27
22
|
],
|
|
28
23
|
"scripts": {
|
|
29
24
|
"dev": "storybook dev -p 6006",
|
package/src/App.css
ADDED
|
File without changes
|
package/src/App.tsx
ADDED
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="35.93" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 228"><path fill="#00D8FF" d="M210.483 73.824a171.49 171.49 0 0 0-8.24-2.597c.465-1.9.893-3.777 1.273-5.621c6.238-30.281 2.16-54.676-11.769-62.708c-13.355-7.7-35.196.329-57.254 19.526a171.23 171.23 0 0 0-6.375 5.848a155.866 155.866 0 0 0-4.241-3.917C100.759 3.829 77.587-4.822 63.673 3.233C50.33 10.957 46.379 33.89 51.995 62.588a170.974 170.974 0 0 0 1.892 8.48c-3.28.932-6.445 1.924-9.474 2.98C17.309 83.498 0 98.307 0 113.668c0 15.865 18.582 31.778 46.812 41.427a145.52 145.52 0 0 0 6.921 2.165a167.467 167.467 0 0 0-2.01 9.138c-5.354 28.2-1.173 50.591 12.134 58.266c13.744 7.926 36.812-.22 59.273-19.855a145.567 145.567 0 0 0 5.342-4.923a168.064 168.064 0 0 0 6.92 6.314c21.758 18.722 43.246 26.282 56.54 18.586c13.731-7.949 18.194-32.003 12.4-61.268a145.016 145.016 0 0 0-1.535-6.842c1.62-.48 3.21-.974 4.76-1.488c29.348-9.723 48.443-25.443 48.443-41.52c0-15.417-17.868-30.326-45.517-39.844Zm-6.365 70.984c-1.4.463-2.836.91-4.3 1.345c-3.24-10.257-7.612-21.163-12.963-32.432c5.106-11 9.31-21.767 12.459-31.957c2.619.758 5.16 1.557 7.61 2.4c23.69 8.156 38.14 20.213 38.14 29.504c0 9.896-15.606 22.743-40.946 31.14Zm-10.514 20.834c2.562 12.94 2.927 24.64 1.23 33.787c-1.524 8.219-4.59 13.698-8.382 15.893c-8.067 4.67-25.32-1.4-43.927-17.412a156.726 156.726 0 0 1-6.437-5.87c7.214-7.889 14.423-17.06 21.459-27.246c12.376-1.098 24.068-2.894 34.671-5.345a134.17 134.17 0 0 1 1.386 6.193ZM87.276 214.515c-7.882 2.783-14.16 2.863-17.955.675c-8.075-4.657-11.432-22.636-6.853-46.752a156.923 156.923 0 0 1 1.869-8.499c10.486 2.32 22.093 3.988 34.498 4.994c7.084 9.967 14.501 19.128 21.976 27.15a134.668 134.668 0 0 1-4.877 4.492c-9.933 8.682-19.886 14.842-28.658 17.94ZM50.35 144.747c-12.483-4.267-22.792-9.812-29.858-15.863c-6.35-5.437-9.555-10.836-9.555-15.216c0-9.322 13.897-21.212 37.076-29.293c2.813-.98 5.757-1.905 8.812-2.773c3.204 10.42 7.406 21.315 12.477 32.332c-5.137 11.18-9.399 22.249-12.634 32.792a134.718 134.718 0 0 1-6.318-1.979Zm12.378-84.26c-4.811-24.587-1.616-43.134 6.425-47.789c8.564-4.958 27.502 2.111 47.463 19.835a144.318 144.318 0 0 1 3.841 3.545c-7.438 7.987-14.787 17.08-21.808 26.988c-12.04 1.116-23.565 2.908-34.161 5.309a160.342 160.342 0 0 1-1.76-7.887Zm110.427 27.268a347.8 347.8 0 0 0-7.785-12.803c8.168 1.033 15.994 2.404 23.343 4.08c-2.206 7.072-4.956 14.465-8.193 22.045a381.151 381.151 0 0 0-7.365-13.322Zm-45.032-43.861c5.044 5.465 10.096 11.566 15.065 18.186a322.04 322.04 0 0 0-30.257-.006c4.974-6.559 10.069-12.652 15.192-18.18ZM82.802 87.83a323.167 323.167 0 0 0-7.227 13.238c-3.184-7.553-5.909-14.98-8.134-22.152c7.304-1.634 15.093-2.97 23.209-3.984a321.524 321.524 0 0 0-7.848 12.897Zm8.081 65.352c-8.385-.936-16.291-2.203-23.593-3.793c2.26-7.3 5.045-14.885 8.298-22.6a321.187 321.187 0 0 0 7.257 13.246c2.594 4.48 5.28 8.868 8.038 13.147Zm37.542 31.03c-5.184-5.592-10.354-11.779-15.403-18.433c4.902.192 9.899.29 14.978.29c5.218 0 10.376-.117 15.453-.343c-4.985 6.774-10.018 12.97-15.028 18.486Zm52.198-57.817c3.422 7.8 6.306 15.345 8.596 22.52c-7.422 1.694-15.436 3.058-23.88 4.071a382.417 382.417 0 0 0 7.859-13.026a347.403 347.403 0 0 0 7.425-13.565Zm-16.898 8.101a358.557 358.557 0 0 1-12.281 19.815a329.4 329.4 0 0 1-23.444.823c-7.967 0-15.716-.248-23.178-.732a310.202 310.202 0 0 1-12.513-19.846h.001a307.41 307.41 0 0 1-10.923-20.627a310.278 310.278 0 0 1 10.89-20.637l-.001.001a307.318 307.318 0 0 1 12.413-19.761c7.613-.576 15.42-.876 23.31-.876H128c7.926 0 15.743.303 23.354.883a329.357 329.357 0 0 1 12.335 19.695a358.489 358.489 0 0 1 11.036 20.54a329.472 329.472 0 0 1-11 20.722Zm22.56-122.124c8.572 4.944 11.906 24.881 6.52 51.026c-.344 1.668-.73 3.367-1.15 5.09c-10.622-2.452-22.155-4.275-34.23-5.408c-7.034-10.017-14.323-19.124-21.64-27.008a160.789 160.789 0 0 1 5.888-5.4c18.9-16.447 36.564-22.941 44.612-18.3ZM128 90.808c12.625 0 22.86 10.235 22.86 22.86s-10.235 22.86-22.86 22.86s-22.86-10.235-22.86-22.86s10.235-22.86 22.86-22.86Z"></path></svg>
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
2
|
+
import { Accordion, AccordionItem } from ".";
|
|
3
|
+
|
|
4
|
+
const meta: Meta<typeof Accordion> = {
|
|
5
|
+
title: "Atoms/Accordion",
|
|
6
|
+
component: Accordion,
|
|
7
|
+
parameters: {
|
|
8
|
+
layout: "padded",
|
|
9
|
+
},
|
|
10
|
+
argTypes: {
|
|
11
|
+
allowMultiple: {
|
|
12
|
+
control: "boolean",
|
|
13
|
+
description: "Allow multiple items to be expanded at once",
|
|
14
|
+
},
|
|
15
|
+
defaultExpanded: {
|
|
16
|
+
control: "text",
|
|
17
|
+
description: "ID of item to expand by default",
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
decorators: [
|
|
21
|
+
(Story) => (
|
|
22
|
+
<div className="p-spacing-56 max-w-[746px]">
|
|
23
|
+
<Story />
|
|
24
|
+
</div>
|
|
25
|
+
),
|
|
26
|
+
],
|
|
27
|
+
} as Meta<typeof Accordion>;
|
|
28
|
+
|
|
29
|
+
export default meta;
|
|
30
|
+
type Story = StoryObj<typeof Accordion>;
|
|
31
|
+
|
|
32
|
+
// =============================================================================
|
|
33
|
+
// Default
|
|
34
|
+
// =============================================================================
|
|
35
|
+
|
|
36
|
+
export const Default: Story = {
|
|
37
|
+
render: (args) => (
|
|
38
|
+
<Accordion {...args}>
|
|
39
|
+
<AccordionItem
|
|
40
|
+
id="item-1"
|
|
41
|
+
title="What is the US Tech Force (Tech Force)?"
|
|
42
|
+
>
|
|
43
|
+
Tech Force will be an elite group of ~1,000 technology specialists hired
|
|
44
|
+
by agencies to accelerate artificial intelligence (AI) implementation
|
|
45
|
+
and solve the federal government's most critical technological
|
|
46
|
+
challenges.
|
|
47
|
+
</AccordionItem>
|
|
48
|
+
<AccordionItem
|
|
49
|
+
id="item-2"
|
|
50
|
+
title="What are the key steps in the recruiting process?"
|
|
51
|
+
>
|
|
52
|
+
The recruiting process includes an initial application, technical
|
|
53
|
+
assessment, interviews with agency leadership, and a background check.
|
|
54
|
+
Selected candidates will receive an offer within 4-6 weeks of completing
|
|
55
|
+
all steps.
|
|
56
|
+
</AccordionItem>
|
|
57
|
+
<AccordionItem id="item-3" title="What skills are required?">
|
|
58
|
+
We're looking for expertise in software engineering, artificial
|
|
59
|
+
intelligence, cybersecurity, data analytics, or technical project
|
|
60
|
+
management. Strong problem-solving abilities and a passion for public
|
|
61
|
+
service are essential.
|
|
62
|
+
</AccordionItem>
|
|
63
|
+
</Accordion>
|
|
64
|
+
),
|
|
65
|
+
};
|
|
66
|
+
Default.args = {
|
|
67
|
+
defaultExpanded: "item-1",
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
// =============================================================================
|
|
71
|
+
// With First Item Expanded
|
|
72
|
+
// =============================================================================
|
|
73
|
+
|
|
74
|
+
export const FirstItemExpanded: Story = {
|
|
75
|
+
render: () => (
|
|
76
|
+
<Accordion defaultExpanded="item-1">
|
|
77
|
+
<AccordionItem
|
|
78
|
+
id="item-1"
|
|
79
|
+
title="What is the US Tech Force (Tech Force)?"
|
|
80
|
+
>
|
|
81
|
+
Tech Force will be an elite group of ~1,000 technology specialists hired
|
|
82
|
+
by agencies to accelerate artificial intelligence (AI) implementation
|
|
83
|
+
and solve the federal government's most critical technological
|
|
84
|
+
challenges. Tech Force will primarily recruit early-career technologists
|
|
85
|
+
from traditional recruiting channels, along with experienced engineering
|
|
86
|
+
managers from private sector partners, to serve two-year employment
|
|
87
|
+
terms in the federal government.
|
|
88
|
+
</AccordionItem>
|
|
89
|
+
<AccordionItem
|
|
90
|
+
id="item-2"
|
|
91
|
+
title="What are the key steps in the recruiting process?"
|
|
92
|
+
>
|
|
93
|
+
The recruiting process includes an initial application, technical
|
|
94
|
+
assessment, interviews with agency leadership, and a background check.
|
|
95
|
+
</AccordionItem>
|
|
96
|
+
<AccordionItem id="item-3" title="What skills are required?">
|
|
97
|
+
We're looking for expertise in software engineering, AI, cybersecurity,
|
|
98
|
+
data analytics, or technical project management.
|
|
99
|
+
</AccordionItem>
|
|
100
|
+
</Accordion>
|
|
101
|
+
),
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
// =============================================================================
|
|
105
|
+
// Allow Multiple
|
|
106
|
+
// =============================================================================
|
|
107
|
+
|
|
108
|
+
export const AllowMultiple: Story = {
|
|
109
|
+
render: () => (
|
|
110
|
+
<Accordion allowMultiple defaultExpanded={["item-1", "item-2"]}>
|
|
111
|
+
<AccordionItem
|
|
112
|
+
id="item-1"
|
|
113
|
+
title="What is the US Tech Force (Tech Force)?"
|
|
114
|
+
>
|
|
115
|
+
Tech Force will be an elite group of ~1,000 technology specialists hired
|
|
116
|
+
by agencies to accelerate artificial intelligence (AI) implementation
|
|
117
|
+
and solve the federal government's most critical technological
|
|
118
|
+
challenges.
|
|
119
|
+
</AccordionItem>
|
|
120
|
+
<AccordionItem
|
|
121
|
+
id="item-2"
|
|
122
|
+
title="What are the key steps in the recruiting process?"
|
|
123
|
+
>
|
|
124
|
+
The recruiting process includes an initial application, technical
|
|
125
|
+
assessment, interviews with agency leadership, and a background check.
|
|
126
|
+
</AccordionItem>
|
|
127
|
+
<AccordionItem id="item-3" title="What skills are required?">
|
|
128
|
+
We're looking for expertise in software engineering, AI, cybersecurity,
|
|
129
|
+
data analytics, or technical project management.
|
|
130
|
+
</AccordionItem>
|
|
131
|
+
</Accordion>
|
|
132
|
+
),
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
// =============================================================================
|
|
136
|
+
// All Collapsed
|
|
137
|
+
// =============================================================================
|
|
138
|
+
|
|
139
|
+
export const AllCollapsed: Story = {
|
|
140
|
+
render: () => (
|
|
141
|
+
<Accordion>
|
|
142
|
+
<AccordionItem
|
|
143
|
+
id="item-1"
|
|
144
|
+
title="What is the US Tech Force (Tech Force)?"
|
|
145
|
+
>
|
|
146
|
+
Tech Force will be an elite group of ~1,000 technology specialists.
|
|
147
|
+
</AccordionItem>
|
|
148
|
+
<AccordionItem
|
|
149
|
+
id="item-2"
|
|
150
|
+
title="What are the key steps in the recruiting process?"
|
|
151
|
+
>
|
|
152
|
+
The recruiting process includes an initial application and interviews.
|
|
153
|
+
</AccordionItem>
|
|
154
|
+
<AccordionItem id="item-3" title="What skills are required?">
|
|
155
|
+
Software engineering, AI, cybersecurity, data analytics.
|
|
156
|
+
</AccordionItem>
|
|
157
|
+
</Accordion>
|
|
158
|
+
),
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
// =============================================================================
|
|
162
|
+
// FAQ Example (Full)
|
|
163
|
+
// =============================================================================
|
|
164
|
+
|
|
165
|
+
export const FAQExample: Story = {
|
|
166
|
+
render: () => (
|
|
167
|
+
<Accordion defaultExpanded="faq-1">
|
|
168
|
+
<AccordionItem id="faq-1" title="What is the US Tech Force (Tech Force)?">
|
|
169
|
+
Tech Force will be an elite group of ~1,000 technology specialists hired
|
|
170
|
+
by agencies to accelerate artificial intelligence (AI) implementation
|
|
171
|
+
and solve the federal government's most critical technological
|
|
172
|
+
challenges. Tech Force will primarily recruit early-career technologists
|
|
173
|
+
from traditional recruiting channels, along with experienced engineering
|
|
174
|
+
managers from private sector partners, to serve two-year employment
|
|
175
|
+
terms in the federal government. Tech Force will include centralized
|
|
176
|
+
organization and programming and serve as a recruiting platform
|
|
177
|
+
post-employment.
|
|
178
|
+
</AccordionItem>
|
|
179
|
+
<AccordionItem
|
|
180
|
+
id="faq-2"
|
|
181
|
+
title="What are the key steps in the recruiting process?"
|
|
182
|
+
>
|
|
183
|
+
The recruiting process includes an initial application, technical
|
|
184
|
+
assessment, interviews with agency leadership, and a background check.
|
|
185
|
+
Selected candidates will receive an offer within 4-6 weeks of completing
|
|
186
|
+
all steps.
|
|
187
|
+
</AccordionItem>
|
|
188
|
+
<AccordionItem id="faq-3" title="What skills are required?">
|
|
189
|
+
We're looking for expertise in software engineering, artificial
|
|
190
|
+
intelligence, cybersecurity, data analytics, or technical project
|
|
191
|
+
management. Strong problem-solving abilities and a passion for public
|
|
192
|
+
service are essential.
|
|
193
|
+
</AccordionItem>
|
|
194
|
+
<AccordionItem
|
|
195
|
+
id="faq-4"
|
|
196
|
+
title="Are specific educational credentials required to participate?"
|
|
197
|
+
>
|
|
198
|
+
While we value diverse educational backgrounds, candidates should
|
|
199
|
+
demonstrate strong technical skills through their work experience,
|
|
200
|
+
projects, or certifications. A traditional degree is not strictly
|
|
201
|
+
required.
|
|
202
|
+
</AccordionItem>
|
|
203
|
+
<AccordionItem
|
|
204
|
+
id="faq-5"
|
|
205
|
+
title="Is there a minimum experience level required to apply?"
|
|
206
|
+
>
|
|
207
|
+
We welcome applications from early-career technologists with 1-3 years
|
|
208
|
+
of experience as well as experienced professionals. What matters most is
|
|
209
|
+
your ability to contribute to critical government technology challenges.
|
|
210
|
+
</AccordionItem>
|
|
211
|
+
<AccordionItem id="faq-6" title="Is this a political appointment?">
|
|
212
|
+
No, Tech Force positions are not political appointments. Participants
|
|
213
|
+
are hired as federal employees based on their technical qualifications
|
|
214
|
+
and serve in non-partisan roles focused on technology implementation.
|
|
215
|
+
</AccordionItem>
|
|
216
|
+
<AccordionItem id="faq-7" title="When am I expected to start?">
|
|
217
|
+
Start dates vary by cohort. Most participants begin within 2-3 months of
|
|
218
|
+
receiving their offer, pending completion of background checks and
|
|
219
|
+
onboarding requirements.
|
|
220
|
+
</AccordionItem>
|
|
221
|
+
<AccordionItem id="faq-8" title="Where will the employment be located?">
|
|
222
|
+
Positions are primarily based in Washington, D.C., though some roles may
|
|
223
|
+
be available at agency locations across the country. Remote work options
|
|
224
|
+
vary by agency and role.
|
|
225
|
+
</AccordionItem>
|
|
226
|
+
</Accordion>
|
|
227
|
+
),
|
|
228
|
+
};
|