@codecademy/brand 3.29.0-alpha.9e88d7b76a.0 → 3.29.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.
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/MarketingBanner.d.ts +2 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/MarketingBanner.js +3 -3
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/NavPanels.d.ts +1 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/NavPanels.js +3 -2
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/consts.d.ts +0 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/consts.js +1 -2
- package/dist/AppHeader/AppHeaderElements/AppHeaderLinkSections/index.js +0 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderSection/AppHeaderSection.test.js +193 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderSection/MobileBackButton.d.ts +25 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderSection/MobileBackButton.js +13 -2
- package/dist/AppHeader/AppHeaderElements/AppHeaderSection/NavSection.d.ts +21 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderSection/NavSection.js +206 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderSection/elements.d.ts +1 -63
- package/dist/AppHeader/AppHeaderElements/AppHeaderSection/elements.js +16 -81
- package/dist/AppHeader/AppHeaderElements/AppHeaderSection/index.d.ts +10 -16
- package/dist/AppHeader/AppHeaderElements/AppHeaderSection/index.js +28 -89
- package/dist/DropdownButton/index.d.ts +1 -3
- package/dist/stories/Atoms/BetaSticker.stories.js +0 -1
- package/dist/stories/Molecules/AppBar.stories.d.ts +0 -1
- package/dist/stories/Molecules/AppBar.stories.js +1 -2
- package/dist/stories/Molecules/AppHeader/AppHeaderLink.stories.js +0 -2
- package/dist/stories/Molecules/AppHeader/AppHeaderLogo.stories.js +1 -2
- package/dist/stories/Molecules/Banner.stories.js +0 -3
- package/dist/stories/Molecules/CurriculumCard.stories.js +0 -7
- package/dist/stories/Molecules/EmptySection.stories.js +1 -2
- package/dist/stories/Molecules/EnhancedBanner.stories.js +1 -1
- package/dist/stories/Molecules/HubCard.stories.js +0 -1
- package/dist/stories/Molecules/NotificationList.stories.js +1 -2
- package/dist/stories/Molecules/Testimonial.stories.js +4 -8
- package/dist/stories/Organisms/GlobalFooter.stories.js +1 -2
- package/dist/stories/Organisms/GlobalHeader/About.stories.js +1 -2
- package/dist/stories/Organisms/GlobalHeader/Bootcamp.stories.js +1 -2
- package/dist/stories/Organisms/GlobalHeader/Enterprise.stories.js +1 -2
- package/dist/stories/Organisms/GlobalHeader/Simple.stories.js +1 -2
- package/dist/stories/Organisms/GlobalPage.stories.js +0 -2
- package/dist/stories/Organisms/LayoutMenu.stories.js +3 -6
- package/dist/stories/Organisms/LayoutMenuVariant.stories.js +2 -4
- package/dist/stories/Organisms/PageFeatures.stories.js +1 -9
- package/dist/stories/Organisms/PageHero.stories.js +10 -20
- package/dist/stories/Organisms/PagePrefooter.stories.js +4 -8
- package/dist/stories/Organisms/PageSingleFeature.stories.js +10 -20
- package/dist/stories/Organisms/PageVideoGallery.stories.js +5 -10
- package/dist/stories/Organisms/ScoreSummary.stories.js +4 -8
- package/dist/svg.d.ts +0 -1
- package/package.json +2 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderSection/NavTabs.d.ts +0 -20
- package/dist/AppHeader/AppHeaderElements/AppHeaderSection/NavTabs.js +0 -144
|
@@ -43,7 +43,6 @@ export const CurriculumCardEnrolled = {
|
|
|
43
43
|
render: args => /*#__PURE__*/_jsx(CurriculumCard, {
|
|
44
44
|
...args
|
|
45
45
|
}),
|
|
46
|
-
name: 'Curriculum Card Enrolled',
|
|
47
46
|
args: {
|
|
48
47
|
progressState: 'inProgress'
|
|
49
48
|
}
|
|
@@ -52,7 +51,6 @@ export const CurriculumCardInProgress = {
|
|
|
52
51
|
render: args => /*#__PURE__*/_jsx(CurriculumCard, {
|
|
53
52
|
...args
|
|
54
53
|
}),
|
|
55
|
-
name: 'Curriculum Card In Progress',
|
|
56
54
|
args: {
|
|
57
55
|
progressState: 'inProgress',
|
|
58
56
|
footerTextVariant: 'inProgress'
|
|
@@ -62,7 +60,6 @@ export const CurriculumCardCompleted = {
|
|
|
62
60
|
render: args => /*#__PURE__*/_jsx(CurriculumCard, {
|
|
63
61
|
...args
|
|
64
62
|
}),
|
|
65
|
-
name: 'Curriculum Card Completed',
|
|
66
63
|
args: {
|
|
67
64
|
progressState: 'completed'
|
|
68
65
|
}
|
|
@@ -71,7 +68,6 @@ export const CurriculumCardBeta = {
|
|
|
71
68
|
render: args => /*#__PURE__*/_jsx(CurriculumCard, {
|
|
72
69
|
...args
|
|
73
70
|
}),
|
|
74
|
-
name: 'Curriculum Card Beta',
|
|
75
71
|
args: {
|
|
76
72
|
beta: true
|
|
77
73
|
}
|
|
@@ -80,7 +76,6 @@ export const CurriculumCardAlternativeSubtitle = {
|
|
|
80
76
|
render: args => /*#__PURE__*/_jsx(CurriculumCard, {
|
|
81
77
|
...args
|
|
82
78
|
}),
|
|
83
|
-
name: 'Curriculum Card Alternative Subtitle',
|
|
84
79
|
args: {
|
|
85
80
|
showAltSubtitle: true,
|
|
86
81
|
scope: {
|
|
@@ -129,7 +124,6 @@ export const CareerPathVariant = {
|
|
|
129
124
|
})
|
|
130
125
|
})]
|
|
131
126
|
}),
|
|
132
|
-
name: 'Career Path Variant',
|
|
133
127
|
args: {
|
|
134
128
|
text: 'Career Path',
|
|
135
129
|
title: 'Front-End Engineer',
|
|
@@ -156,7 +150,6 @@ export const HorizontalCurriculumCard = {
|
|
|
156
150
|
})
|
|
157
151
|
})
|
|
158
152
|
}),
|
|
159
|
-
name: 'Horizontal Curriculum Card',
|
|
160
153
|
args: {
|
|
161
154
|
text: 'Career Path',
|
|
162
155
|
title: 'Front-End Engineer',
|
|
@@ -20,7 +20,6 @@ export const BackgroundRight = {
|
|
|
20
20
|
render: args => /*#__PURE__*/_jsx(HubCard, {
|
|
21
21
|
...args
|
|
22
22
|
}),
|
|
23
|
-
name: 'Background Right',
|
|
24
23
|
args: {
|
|
25
24
|
backgroundImage: 'https://static-assets.codecademy.com/assets/components/cards/explore-category-card/subject/data-science.svg',
|
|
26
25
|
backgroundPosition: 'right'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { action } from '
|
|
1
|
+
import { action } from 'storybook/actions';
|
|
2
2
|
import { NotificationList } from '../../index';
|
|
3
3
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
4
|
const notifications = [{
|
|
@@ -93,7 +93,6 @@ export const Empty = {
|
|
|
93
93
|
render: args => /*#__PURE__*/_jsx(NotificationList, {
|
|
94
94
|
...args
|
|
95
95
|
}),
|
|
96
|
-
name: 'Empty',
|
|
97
96
|
args: {
|
|
98
97
|
notifications: []
|
|
99
98
|
}
|
|
@@ -28,8 +28,7 @@ export const Default = {
|
|
|
28
28
|
export const LightMode = {
|
|
29
29
|
render: args => /*#__PURE__*/_jsx(Testimonial, {
|
|
30
30
|
...args
|
|
31
|
-
})
|
|
32
|
-
name: 'Light Mode'
|
|
31
|
+
})
|
|
33
32
|
};
|
|
34
33
|
export const DarkMode = {
|
|
35
34
|
render: args => /*#__PURE__*/_jsx(Background, {
|
|
@@ -43,21 +42,18 @@ export const DarkMode = {
|
|
|
43
42
|
...args
|
|
44
43
|
})
|
|
45
44
|
})
|
|
46
|
-
})
|
|
47
|
-
name: 'Dark Mode'
|
|
45
|
+
})
|
|
48
46
|
};
|
|
49
47
|
export const SmallLight = {
|
|
50
48
|
render: args => /*#__PURE__*/_jsx(Testimonial, {
|
|
51
49
|
orientation: "vertical",
|
|
52
50
|
...args
|
|
53
|
-
})
|
|
54
|
-
name: 'Small Light'
|
|
51
|
+
})
|
|
55
52
|
};
|
|
56
53
|
export const MediumDark = {
|
|
57
54
|
render: args => /*#__PURE__*/_jsx(Testimonial, {
|
|
58
55
|
...args,
|
|
59
56
|
orientation: "horizontal",
|
|
60
57
|
hidePhoto: true
|
|
61
|
-
})
|
|
62
|
-
name: 'Medium Dark'
|
|
58
|
+
})
|
|
63
59
|
};
|
|
@@ -55,8 +55,7 @@ export const WithSelectedItem = {
|
|
|
55
55
|
render: args => /*#__PURE__*/_jsx(LayoutMenu, {
|
|
56
56
|
...args,
|
|
57
57
|
selectedItem: "python"
|
|
58
|
-
})
|
|
59
|
-
name: 'With Selected Item'
|
|
58
|
+
})
|
|
60
59
|
};
|
|
61
60
|
export const WithAdditionalLinks = {
|
|
62
61
|
render: args => /*#__PURE__*/_jsxs(LayoutMenu, {
|
|
@@ -74,8 +73,7 @@ export const WithAdditionalLinks = {
|
|
|
74
73
|
children: "Where do I begin?"
|
|
75
74
|
})
|
|
76
75
|
})]
|
|
77
|
-
})
|
|
78
|
-
name: 'With Additional Links'
|
|
76
|
+
})
|
|
79
77
|
};
|
|
80
78
|
export const WithAdditionalLinksOnTopAndBottom = {
|
|
81
79
|
render: args => /*#__PURE__*/_jsx(LayoutMenu, {
|
|
@@ -237,6 +235,5 @@ export const WithSetMenuHeight = {
|
|
|
237
235
|
children: "Where do I begin?"
|
|
238
236
|
})
|
|
239
237
|
})]
|
|
240
|
-
})
|
|
241
|
-
name: 'With Set Menu Height'
|
|
238
|
+
})
|
|
242
239
|
};
|
|
@@ -62,8 +62,7 @@ export const WithAdditionalLinks = {
|
|
|
62
62
|
children: "Where do I begin?"
|
|
63
63
|
})
|
|
64
64
|
})
|
|
65
|
-
})
|
|
66
|
-
name: 'With Additional Links'
|
|
65
|
+
})
|
|
67
66
|
};
|
|
68
67
|
export const WithAdditionalLinksOnTopAndBottom = {
|
|
69
68
|
render: args => /*#__PURE__*/_jsx(LayoutMenuVariant.LayoutMenu, {
|
|
@@ -219,6 +218,5 @@ export const WithSetMenuHeight = {
|
|
|
219
218
|
children: "Where do I begin?"
|
|
220
219
|
})
|
|
221
220
|
})
|
|
222
|
-
})
|
|
223
|
-
name: 'With Set Menu Height'
|
|
221
|
+
})
|
|
224
222
|
};
|
|
@@ -48,14 +48,12 @@ export default meta;
|
|
|
48
48
|
export const FeaturedInfo = {
|
|
49
49
|
render: args => /*#__PURE__*/_jsx(PageFeatures, {
|
|
50
50
|
...args
|
|
51
|
-
})
|
|
52
|
-
name: 'Featured Info'
|
|
51
|
+
})
|
|
53
52
|
};
|
|
54
53
|
export const FeaturedImages = {
|
|
55
54
|
render: args => /*#__PURE__*/_jsx(PageFeatures, {
|
|
56
55
|
...args
|
|
57
56
|
}),
|
|
58
|
-
name: 'Featured Images',
|
|
59
57
|
args: {
|
|
60
58
|
featuresMedia: 'image'
|
|
61
59
|
}
|
|
@@ -64,7 +62,6 @@ export const FeaturedIcons = {
|
|
|
64
62
|
render: args => /*#__PURE__*/_jsx(PageFeatures, {
|
|
65
63
|
...args
|
|
66
64
|
}),
|
|
67
|
-
name: 'Featured Icons',
|
|
68
65
|
args: {
|
|
69
66
|
featuresMedia: 'icon'
|
|
70
67
|
}
|
|
@@ -73,7 +70,6 @@ export const FeaturedStats = {
|
|
|
73
70
|
render: args => /*#__PURE__*/_jsx(PageFeatures, {
|
|
74
71
|
...args
|
|
75
72
|
}),
|
|
76
|
-
name: 'Featured Stats',
|
|
77
73
|
args: {
|
|
78
74
|
featuresMedia: 'stat',
|
|
79
75
|
features: [{
|
|
@@ -95,7 +91,6 @@ export const FeaturesGrid = {
|
|
|
95
91
|
render: args => /*#__PURE__*/_jsx(PageFeatures, {
|
|
96
92
|
...args
|
|
97
93
|
}),
|
|
98
|
-
name: 'Features Grid',
|
|
99
94
|
args: {
|
|
100
95
|
maxCols: 3,
|
|
101
96
|
featuresMedia: 'icon'
|
|
@@ -105,7 +100,6 @@ export const WithoutDescription = {
|
|
|
105
100
|
render: args => /*#__PURE__*/_jsx(PageFeatures, {
|
|
106
101
|
...args
|
|
107
102
|
}),
|
|
108
|
-
name: 'Without Description',
|
|
109
103
|
args: {
|
|
110
104
|
featuresMedia: 'icon',
|
|
111
105
|
desc: undefined,
|
|
@@ -129,7 +123,6 @@ export const RegularButton = {
|
|
|
129
123
|
buttonType: 'fill'
|
|
130
124
|
}
|
|
131
125
|
}),
|
|
132
|
-
name: 'Regular Button',
|
|
133
126
|
args: {
|
|
134
127
|
featuresMedia: 'image'
|
|
135
128
|
}
|
|
@@ -142,7 +135,6 @@ export const DarkMode = {
|
|
|
142
135
|
...args
|
|
143
136
|
})
|
|
144
137
|
}),
|
|
145
|
-
name: 'Dark Mode',
|
|
146
138
|
args: {
|
|
147
139
|
featuresMedia: 'icon'
|
|
148
140
|
}
|
|
@@ -46,15 +46,13 @@ export const Video = {
|
|
|
46
46
|
autoplay: true
|
|
47
47
|
},
|
|
48
48
|
title: "What's it like to be a Software Engineer"
|
|
49
|
-
})
|
|
50
|
-
name: 'Video'
|
|
49
|
+
})
|
|
51
50
|
};
|
|
52
51
|
export const ShortText = {
|
|
53
52
|
render: args => /*#__PURE__*/_jsx(PageHero, {
|
|
54
53
|
...args,
|
|
55
54
|
textLength: "short"
|
|
56
|
-
})
|
|
57
|
-
name: 'Short Text'
|
|
55
|
+
})
|
|
58
56
|
};
|
|
59
57
|
export const RegularButton = {
|
|
60
58
|
render: args => /*#__PURE__*/_jsx(PageHero, {
|
|
@@ -63,22 +61,19 @@ export const RegularButton = {
|
|
|
63
61
|
...ctaArgs,
|
|
64
62
|
buttonType: 'fill'
|
|
65
63
|
}
|
|
66
|
-
})
|
|
67
|
-
name: 'Regular Button'
|
|
64
|
+
})
|
|
68
65
|
};
|
|
69
66
|
export const WithoutButton = {
|
|
70
67
|
render: args => /*#__PURE__*/_jsx(PageHero, {
|
|
71
68
|
...args,
|
|
72
69
|
cta: undefined
|
|
73
|
-
})
|
|
74
|
-
name: 'Without Button'
|
|
70
|
+
})
|
|
75
71
|
};
|
|
76
72
|
export const WithoutDescription = {
|
|
77
73
|
render: args => /*#__PURE__*/_jsx(PageHero, {
|
|
78
74
|
...args,
|
|
79
75
|
desc: undefined
|
|
80
|
-
})
|
|
81
|
-
name: 'Without Description'
|
|
76
|
+
})
|
|
82
77
|
};
|
|
83
78
|
export const Eyebrow = {
|
|
84
79
|
render: args => /*#__PURE__*/_jsx(PageHero, {
|
|
@@ -87,8 +82,7 @@ export const Eyebrow = {
|
|
|
87
82
|
text: 'Hello there'
|
|
88
83
|
},
|
|
89
84
|
textLength: "short"
|
|
90
|
-
})
|
|
91
|
-
name: 'Eyebrow'
|
|
85
|
+
})
|
|
92
86
|
};
|
|
93
87
|
export const AccentEyebrow = {
|
|
94
88
|
render: args => /*#__PURE__*/_jsx(PageHero, {
|
|
@@ -98,23 +92,20 @@ export const AccentEyebrow = {
|
|
|
98
92
|
accent: true
|
|
99
93
|
},
|
|
100
94
|
textLength: "short"
|
|
101
|
-
})
|
|
102
|
-
name: 'Accent Eyebrow'
|
|
95
|
+
})
|
|
103
96
|
};
|
|
104
97
|
export const ShowImageOnMobile = {
|
|
105
98
|
render: args => /*#__PURE__*/_jsx(PageHero, {
|
|
106
99
|
...args,
|
|
107
100
|
showImageOnMobile: true,
|
|
108
101
|
textLength: "short"
|
|
109
|
-
})
|
|
110
|
-
name: 'Show Image On Mobile'
|
|
102
|
+
})
|
|
111
103
|
};
|
|
112
104
|
export const WithoutMedia = {
|
|
113
105
|
render: args => /*#__PURE__*/_jsx(PageHero, {
|
|
114
106
|
...args,
|
|
115
107
|
media: undefined
|
|
116
|
-
})
|
|
117
|
-
name: 'Without Media'
|
|
108
|
+
})
|
|
118
109
|
};
|
|
119
110
|
export const DarkMode = {
|
|
120
111
|
render: args => /*#__PURE__*/_jsx(Background, {
|
|
@@ -126,8 +117,7 @@ export const DarkMode = {
|
|
|
126
117
|
text: 'Hello there'
|
|
127
118
|
}
|
|
128
119
|
})
|
|
129
|
-
})
|
|
130
|
-
name: 'Dark Mode'
|
|
120
|
+
})
|
|
131
121
|
};
|
|
132
122
|
export const PausableImage = {
|
|
133
123
|
render: args => /*#__PURE__*/_jsx(PageHero, {
|
|
@@ -33,22 +33,19 @@ export const RegularButton = {
|
|
|
33
33
|
...ctaArgs,
|
|
34
34
|
buttonType: 'fill'
|
|
35
35
|
}
|
|
36
|
-
})
|
|
37
|
-
name: 'Regular Button'
|
|
36
|
+
})
|
|
38
37
|
};
|
|
39
38
|
export const WithoutButton = {
|
|
40
39
|
render: args => /*#__PURE__*/_jsx(PagePrefooter, {
|
|
41
40
|
...args,
|
|
42
41
|
cta: undefined
|
|
43
|
-
})
|
|
44
|
-
name: 'Without Button'
|
|
42
|
+
})
|
|
45
43
|
};
|
|
46
44
|
export const WithoutDescription = {
|
|
47
45
|
render: args => /*#__PURE__*/_jsx(PagePrefooter, {
|
|
48
46
|
...args,
|
|
49
47
|
desc: undefined
|
|
50
|
-
})
|
|
51
|
-
name: 'Without Description'
|
|
48
|
+
})
|
|
52
49
|
};
|
|
53
50
|
export const DarkMode = {
|
|
54
51
|
render: args => /*#__PURE__*/_jsx(Background, {
|
|
@@ -57,6 +54,5 @@ export const DarkMode = {
|
|
|
57
54
|
children: /*#__PURE__*/_jsx(PagePrefooter, {
|
|
58
55
|
...args
|
|
59
56
|
})
|
|
60
|
-
})
|
|
61
|
-
name: 'Dark Mode'
|
|
57
|
+
})
|
|
62
58
|
};
|
|
@@ -28,8 +28,7 @@ export default meta;
|
|
|
28
28
|
export const SingleFeature = {
|
|
29
29
|
render: args => /*#__PURE__*/_jsx(PageSingleFeature, {
|
|
30
30
|
...args
|
|
31
|
-
})
|
|
32
|
-
name: 'Single Feature'
|
|
31
|
+
})
|
|
33
32
|
};
|
|
34
33
|
export const Video = {
|
|
35
34
|
render: args => /*#__PURE__*/_jsx(PageSingleFeature, {
|
|
@@ -42,8 +41,7 @@ export const Video = {
|
|
|
42
41
|
autoplay: true
|
|
43
42
|
},
|
|
44
43
|
title: "What's it like to be a Software Engineer"
|
|
45
|
-
})
|
|
46
|
-
name: 'Video'
|
|
44
|
+
})
|
|
47
45
|
};
|
|
48
46
|
export const AdjustTheMediaWidth = {
|
|
49
47
|
render: args => /*#__PURE__*/_jsx(PageSingleFeature, {
|
|
@@ -61,24 +59,21 @@ export const RegularButton = {
|
|
|
61
59
|
buttonType: 'fill'
|
|
62
60
|
},
|
|
63
61
|
mediaWidth: 4
|
|
64
|
-
})
|
|
65
|
-
name: 'Regular Button'
|
|
62
|
+
})
|
|
66
63
|
};
|
|
67
64
|
export const WithoutButton = {
|
|
68
65
|
render: args => /*#__PURE__*/_jsx(PageSingleFeature, {
|
|
69
66
|
...args,
|
|
70
67
|
cta: undefined,
|
|
71
68
|
mediaWidth: 3
|
|
72
|
-
})
|
|
73
|
-
name: 'Without Button'
|
|
69
|
+
})
|
|
74
70
|
};
|
|
75
71
|
export const WithoutDescription = {
|
|
76
72
|
render: args => /*#__PURE__*/_jsx(PageSingleFeature, {
|
|
77
73
|
...args,
|
|
78
74
|
desc: undefined,
|
|
79
75
|
mediaWidth: 4
|
|
80
|
-
})
|
|
81
|
-
name: 'Without Description'
|
|
76
|
+
})
|
|
82
77
|
};
|
|
83
78
|
export const Eyebrow = {
|
|
84
79
|
render: args => /*#__PURE__*/_jsx(PageSingleFeature, {
|
|
@@ -86,8 +81,7 @@ export const Eyebrow = {
|
|
|
86
81
|
eyebrow: {
|
|
87
82
|
text: 'Codecademy'
|
|
88
83
|
}
|
|
89
|
-
})
|
|
90
|
-
name: 'Eyebrow'
|
|
84
|
+
})
|
|
91
85
|
};
|
|
92
86
|
export const AccentEyebrow = {
|
|
93
87
|
render: args => /*#__PURE__*/_jsx(PageSingleFeature, {
|
|
@@ -96,8 +90,7 @@ export const AccentEyebrow = {
|
|
|
96
90
|
text: 'Codecademy',
|
|
97
91
|
accent: true
|
|
98
92
|
}
|
|
99
|
-
})
|
|
100
|
-
name: 'Accent Eyebrow'
|
|
93
|
+
})
|
|
101
94
|
};
|
|
102
95
|
export const HideImageOnMobile = {
|
|
103
96
|
render: args => /*#__PURE__*/_jsx(PageSingleFeature, {
|
|
@@ -111,8 +104,7 @@ export const WithoutMedia = {
|
|
|
111
104
|
render: args => /*#__PURE__*/_jsx(PageSingleFeature, {
|
|
112
105
|
...args,
|
|
113
106
|
media: undefined
|
|
114
|
-
})
|
|
115
|
-
name: 'Without Media'
|
|
107
|
+
})
|
|
116
108
|
};
|
|
117
109
|
export const DarkMode = {
|
|
118
110
|
render: args => /*#__PURE__*/_jsx(Background, {
|
|
@@ -124,8 +116,7 @@ export const DarkMode = {
|
|
|
124
116
|
text: 'Codecademy'
|
|
125
117
|
}
|
|
126
118
|
})
|
|
127
|
-
})
|
|
128
|
-
name: 'Dark Mode'
|
|
119
|
+
})
|
|
129
120
|
};
|
|
130
121
|
export const PausableImage = {
|
|
131
122
|
render: args => /*#__PURE__*/_jsx(PageSingleFeature, {
|
|
@@ -153,6 +144,5 @@ export const LinkableImage = {
|
|
|
153
144
|
eyebrow: {
|
|
154
145
|
text: 'Codecademy'
|
|
155
146
|
}
|
|
156
|
-
})
|
|
157
|
-
name: 'Linkable Image'
|
|
147
|
+
})
|
|
158
148
|
};
|
|
@@ -32,8 +32,7 @@ export default meta;
|
|
|
32
32
|
export const VideoGallery = {
|
|
33
33
|
render: args => /*#__PURE__*/_jsx(PageVideoGallery, {
|
|
34
34
|
...args
|
|
35
|
-
})
|
|
36
|
-
name: 'Video Gallery'
|
|
35
|
+
})
|
|
37
36
|
};
|
|
38
37
|
export const RegularButton = {
|
|
39
38
|
render: args => /*#__PURE__*/_jsx(PageVideoGallery, {
|
|
@@ -42,21 +41,18 @@ export const RegularButton = {
|
|
|
42
41
|
...ctaArgs,
|
|
43
42
|
buttonType: 'fill'
|
|
44
43
|
}
|
|
45
|
-
})
|
|
46
|
-
name: 'Regular Button'
|
|
44
|
+
})
|
|
47
45
|
};
|
|
48
46
|
export const WithoutDescription = {
|
|
49
47
|
render: args => /*#__PURE__*/_jsx(PageVideoGallery, {
|
|
50
48
|
...args,
|
|
51
49
|
desc: undefined
|
|
52
|
-
})
|
|
53
|
-
name: 'Without Description'
|
|
50
|
+
})
|
|
54
51
|
};
|
|
55
52
|
export const GalleryOnly = {
|
|
56
53
|
render: args => /*#__PURE__*/_jsx(PageVideoGallery, {
|
|
57
54
|
videos: args.videos
|
|
58
|
-
})
|
|
59
|
-
name: 'Gallery Only'
|
|
55
|
+
})
|
|
60
56
|
};
|
|
61
57
|
export const DarkMode = {
|
|
62
58
|
render: args => /*#__PURE__*/_jsx(Background, {
|
|
@@ -65,6 +61,5 @@ export const DarkMode = {
|
|
|
65
61
|
children: /*#__PURE__*/_jsx(PageVideoGallery, {
|
|
66
62
|
...args
|
|
67
63
|
})
|
|
68
|
-
})
|
|
69
|
-
name: 'Dark Mode'
|
|
64
|
+
})
|
|
70
65
|
};
|
|
@@ -79,8 +79,7 @@ export const RowLayout = {
|
|
|
79
79
|
slug: 'becp-22-going-off-platform-with-html-and-css',
|
|
80
80
|
title: 'Going off-platform with HTML and CSS'
|
|
81
81
|
}]
|
|
82
|
-
})
|
|
83
|
-
name: 'Row Layout'
|
|
82
|
+
})
|
|
84
83
|
};
|
|
85
84
|
export const ColumnLayout = {
|
|
86
85
|
render: args => /*#__PURE__*/_jsx(ScoreSummary, {
|
|
@@ -126,8 +125,7 @@ export const ColumnLayout = {
|
|
|
126
125
|
slug: 'wdcp-22-practice-javascript-syntax-arrays-loops-objects-iterators',
|
|
127
126
|
title: 'Practice JavaScript Syntax: Arrays, Loops, Objects, Iterators'
|
|
128
127
|
}]
|
|
129
|
-
})
|
|
130
|
-
name: 'Column Layout'
|
|
128
|
+
})
|
|
131
129
|
};
|
|
132
130
|
export const RowLayoutNoMaxWidth = {
|
|
133
131
|
render: args => /*#__PURE__*/_jsx(ScoreSummary, {
|
|
@@ -214,8 +212,7 @@ export const Description = {
|
|
|
214
212
|
slug: 'wdcp-22-practice-javascript-syntax-arrays-loops-objects-iterators',
|
|
215
213
|
title: 'Practice JavaScript Syntax: Arrays, Loops, Objects, Iterators'
|
|
216
214
|
}]
|
|
217
|
-
})
|
|
218
|
-
name: 'Description'
|
|
215
|
+
})
|
|
219
216
|
};
|
|
220
217
|
export const DescriptionInColumnLayout = {
|
|
221
218
|
render: args => /*#__PURE__*/_jsx(ScoreSummary, {
|
|
@@ -294,6 +291,5 @@ export const ColorfulIcons = {
|
|
|
294
291
|
},
|
|
295
292
|
trackSlug: undefined,
|
|
296
293
|
untestedSubContent: []
|
|
297
|
-
})
|
|
298
|
-
name: 'Colorful Icons'
|
|
294
|
+
})
|
|
299
295
|
};
|
package/dist/svg.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codecademy/brand",
|
|
3
3
|
"description": "Brand component library for Codecademy",
|
|
4
|
-
"version": "3.29.0
|
|
4
|
+
"version": "3.29.0",
|
|
5
5
|
"author": "Codecademy Engineering <dev@codecademy.com>",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@emotion/is-prop-valid": "^1.2.1",
|
|
8
8
|
"@splidejs/react-splide": "^0.7.12",
|
|
9
9
|
"@splidejs/splide": "4.1.3",
|
|
10
|
+
"@types/recurly__recurly-js": "4.22.0",
|
|
10
11
|
"classnames": "^2.3.2",
|
|
11
12
|
"date-fns": "^2.30.0",
|
|
12
13
|
"emojisplosion": "^2.6.1",
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import React, { PropsWithChildren } from 'react';
|
|
2
|
-
import { AppHeaderCatalogDropdownItem, AppHeaderResourcesDropdownItem } from '../../shared';
|
|
3
|
-
interface NavTabPanelProps extends PropsWithChildren {
|
|
4
|
-
isActiveTab: boolean;
|
|
5
|
-
index: number;
|
|
6
|
-
id: string;
|
|
7
|
-
}
|
|
8
|
-
declare const NavTabPanel: ({ children, isActiveTab, index, id, }: NavTabPanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
declare const NavTabList: React.ForwardRefExoticComponent<{
|
|
10
|
-
children: React.ReactNode;
|
|
11
|
-
type: string;
|
|
12
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
-
declare const NavTab: ({ item, onSelect, isActive, onKeyDown, index, }: {
|
|
14
|
-
item: AppHeaderCatalogDropdownItem | AppHeaderResourcesDropdownItem;
|
|
15
|
-
onSelect: (id: string, event?: React.MouseEvent, item?: AppHeaderCatalogDropdownItem | AppHeaderResourcesDropdownItem) => void;
|
|
16
|
-
isActive: boolean;
|
|
17
|
-
onKeyDown: (event: React.KeyboardEvent) => void;
|
|
18
|
-
index: number;
|
|
19
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
-
export { NavTabPanel, NavTabList, NavTab };
|