@explorer-1/vue 0.2.21 → 0.2.23
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/components.d.ts +2 -0
- package/dist/explorer-1-vue.js +8119 -7836
- package/dist/explorer-1-vue.umd.cjs +14 -14
- package/dist/src/components/BaseAccordionItem/BaseAccordionItem.vue.d.ts +54 -0
- package/dist/src/components/BaseButton/BaseButton.stories.d.ts +0 -13
- package/dist/src/components/BaseButton/BaseButton.vue.d.ts +0 -14
- package/dist/src/components/BaseImageCaption/BaseImageCaption.vue.d.ts +18 -0
- package/dist/src/components/BaseModal/BaseModal.stories.d.ts +0 -26
- package/dist/src/components/BaseSwimlane/BaseSwimlane.vue.d.ts +2 -2
- package/dist/src/components/BaseTimer/BaseTimer.vue.d.ts +2 -2
- package/dist/src/components/BlockAccordion/BlockAccordion.stories.d.ts +25 -40
- package/dist/src/components/BlockAccordion/BlockAccordion.vue.d.ts +51 -0
- package/dist/src/components/BlockGist/BlockGist.stories.d.ts +19 -0
- package/dist/src/components/BlockGist/BlockGist.vue.d.ts +19 -0
- package/dist/src/components/BlockGist/GitHub404.vue.d.ts +2 -0
- package/dist/src/components/BlockLinkCard/BlockLinkCard.stories.d.ts +71 -15
- package/dist/src/components/BlockLinkCard/BlockLinkCard.vue.d.ts +10 -2
- package/dist/src/components/BlockStreamfield/BlockStreamfield.stories.d.ts +127 -27
- package/dist/src/components/BlockTeaser/BlockTeaser.vue.d.ts +3 -2
- package/dist/src/components/CalendarButton/CalendarButton.vue.d.ts +12 -2
- package/dist/src/components/LayoutHelper/LayoutHelper.vue.d.ts +1 -1
- package/dist/src/components/MetaPanel/MetaPanel.stories.d.ts +6 -2
- package/dist/src/components/MetadataEvent/MetadataEvent.vue.d.ts +8 -0
- package/dist/src/components/MixinFancybox/MixinFancybox.vue.d.ts +1 -1
- package/dist/src/components/NavDesktop/NavDesktop.stories.d.ts +49 -0
- package/dist/src/components/NavDropdownToggle/NavDropdownToggle.vue.d.ts +1 -1
- package/dist/src/docs/foundation/grid_layouthelpers.stories.d.ts +4 -4
- package/dist/src/interfaces.d.ts +4 -0
- package/dist/src/templates/PageContent/PageContent.vue.d.ts +1 -0
- package/dist/src/templates/edu/PageContentEdu.stories.d.ts +179 -2
- package/dist/src/templates/edu/PageEduEventDetail/PageEduEventDetail.stories.d.ts +37 -18
- package/dist/src/templates/edu/PageEduExplainerArticle/PageEduExplainerArticle.stories.d.ts +3 -1
- package/dist/src/templates/edu/PageEduLesson/PageEduLesson.stories.d.ts +28 -46
- package/dist/src/templates/edu/PageEduNewsDetail/PageEduNewsDetail.stories.d.ts +378 -81
- package/dist/src/templates/www/PageAsteroidWatchIndex/PageAsteroidWatchIndex.stories.d.ts +126 -27
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/BaseAccordionItem/BaseAccordionItem.vue +8 -11
- package/src/components/BaseImageCaption/BaseImageCaption.vue +16 -0
- package/src/components/BlockAccordion/BlockAccordion.stories.js +64 -19
- package/src/components/BlockAccordion/BlockAccordion.vue +99 -18
- package/src/components/BlockCardGrid/BlockCardGrid.vue +1 -1
- package/src/components/BlockGist/BlockGist.stories.js +2 -3
- package/src/components/BlockGist/BlockGist.vue +11 -38
- package/src/components/BlockStreamfield/BlockStreamfield.stories.js +9 -0
- package/src/components/BlockStreamfield/BlockStreamfield.vue +17 -5
- package/src/components/BlockTeaser/BlockTeaser.vue +20 -17
- package/src/components/NavDesktop/NavDesktop.stories.js +2 -6
- package/src/components/NavHeading/NavHeading.vue +1 -1
- package/src/components/NavJumpMenu/NavJumpMenu.vue +14 -2
- package/src/components/NavLinkList/NavLinkList.stories.js +1 -1
- package/src/components/NavSecondary/NavSecondaryDropdown.vue +4 -5
- package/src/components/NavSecondary/NavSecondaryLink.vue +6 -4
- package/src/components/TheFooter/TheFooter.vue +1 -1
- package/src/templates/edu/PageEduExplainerArticle/PageEduExplainerArticle.stories.js +3 -1
- package/src/templates/edu/PageEduExplainerArticle/PageEduExplainerArticle.vue +9 -7
- package/src/templates/edu/PageEduLesson/PageEduLesson.vue +1 -0
- package/src/templates/edu/PageEduNewsDetail/PageEduNewsDetail.vue +1 -0
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<NavDropdownToggle
|
|
10
10
|
:aria-expanded="dropdownVisible ? true : false"
|
|
11
11
|
:path="item.path"
|
|
12
|
-
class="
|
|
12
|
+
class="-t-2 border-transparent block px-3 py-2"
|
|
13
13
|
:class="dropdownToggleClasses(index)"
|
|
14
14
|
:invert="invert"
|
|
15
15
|
@toggle-clicked="toggleDropdown()"
|
|
@@ -69,7 +69,6 @@ export default defineComponent({
|
|
|
69
69
|
type: Object,
|
|
70
70
|
required: true
|
|
71
71
|
},
|
|
72
|
-
|
|
73
72
|
invert: {
|
|
74
73
|
type: Boolean,
|
|
75
74
|
required: false,
|
|
@@ -121,13 +120,13 @@ export default defineComponent({
|
|
|
121
120
|
dropdownToggleClasses(index: number) {
|
|
122
121
|
return this.invert
|
|
123
122
|
? {
|
|
124
|
-
'mr-auto text-white font-
|
|
125
|
-
'text-white': index !== 0,
|
|
123
|
+
'mr-auto text-white font-bold secondary-root': index === 0,
|
|
124
|
+
'text-white font-semibold !pt-[.6rem]': index !== 0,
|
|
126
125
|
'-open': this.dropdownVisible
|
|
127
126
|
}
|
|
128
127
|
: {
|
|
129
128
|
'mr-auto text-primary font-semibold secondary-root': index === 0,
|
|
130
|
-
'text-gray-dark': index !== 0,
|
|
129
|
+
'text-gray-dark font-medium !pt-[.6rem]': index !== 0,
|
|
131
130
|
'-open': this.dropdownVisible
|
|
132
131
|
}
|
|
133
132
|
},
|
|
@@ -50,11 +50,13 @@ export default defineComponent({
|
|
|
50
50
|
return false
|
|
51
51
|
},
|
|
52
52
|
baseLinkClasses(index: number | undefined) {
|
|
53
|
-
let rootClasses = 'mr-auto
|
|
53
|
+
let rootClasses = 'mr-auto secondary-root'
|
|
54
54
|
rootClasses = this.invert
|
|
55
|
-
? `${rootClasses} text-white -invert`
|
|
56
|
-
: `${rootClasses} text-primary`
|
|
57
|
-
const regularClasses = this.invert
|
|
55
|
+
? `${rootClasses} text-white font-bold -invert`
|
|
56
|
+
: `${rootClasses} text-primary font-semibold`
|
|
57
|
+
const regularClasses = this.invert
|
|
58
|
+
? 'text-white -invert font-semibold'
|
|
59
|
+
: 'text-gray-dark font-medium'
|
|
58
60
|
return index === 0 ? rootClasses : regularClasses
|
|
59
61
|
},
|
|
60
62
|
spanClasses(index: number | undefined) {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
<BaseLink
|
|
33
33
|
variant="none"
|
|
34
34
|
href="https://www.nasa.gov/learning-resources/"
|
|
35
|
-
class="text-subtitle text-blue edu:text-white mb-3"
|
|
35
|
+
class="text-subtitle text-blue edu:text-white sm:mb-3 xl:col-span-2 md:col-span-3 col-span-4 mb-8"
|
|
36
36
|
link-class="flex flex-wrap-none overflow-visible whitespace-nowrap items-center"
|
|
37
37
|
external-target-blank
|
|
38
38
|
>
|
|
@@ -13,6 +13,7 @@ import PageEduExplainerArticle from './PageEduExplainerArticle.vue'
|
|
|
13
13
|
export default {
|
|
14
14
|
title: 'Templates/EDU/PageEduExplainerArticle',
|
|
15
15
|
component: PageEduExplainerArticle,
|
|
16
|
+
tags: ['!autodocs'],
|
|
16
17
|
decorators: [
|
|
17
18
|
() => ({
|
|
18
19
|
template: `<div id="storyDecorator" class="disable-nav-offset"><story/></div>`
|
|
@@ -28,6 +29,7 @@ export default {
|
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
export const BaseStory = {
|
|
32
|
+
name: 'PageEduExplainerArticle',
|
|
31
33
|
args: {
|
|
32
34
|
data: {
|
|
33
35
|
__typename: 'EDUExplainerArticlePage',
|
|
@@ -50,7 +52,7 @@ export const BaseStory = {
|
|
|
50
52
|
showJumpMenu: true,
|
|
51
53
|
...BlockStreamfieldTruncatedData,
|
|
52
54
|
publicationDate: '2024-07-09',
|
|
53
|
-
|
|
55
|
+
topper: 'Topper of resource article',
|
|
54
56
|
getTopicsForDisplay: [
|
|
55
57
|
{
|
|
56
58
|
__typename: 'TopicPage',
|
|
@@ -5,6 +5,7 @@ import BaseImagePlaceholder from './../../../components/BaseImagePlaceholder/Bas
|
|
|
5
5
|
import BlockImageCarousel from './../../../components/BlockImageCarousel/BlockImageCarousel.vue'
|
|
6
6
|
import BlockImageComparison from './../../../components/BlockImageComparison/BlockImageComparison.vue'
|
|
7
7
|
import BlockLinkCarousel from './../../../components/BlockLinkCarousel/BlockLinkCarousel.vue'
|
|
8
|
+
import BlockText from './../../../components/BlockText/BlockText.vue'
|
|
8
9
|
import BlockVideo from './../../../components/BlockVideo/BlockVideo.vue'
|
|
9
10
|
import LayoutHelper from './../../../components/LayoutHelper/LayoutHelper.vue'
|
|
10
11
|
import DetailHeadline from './../../../components/DetailHeadline/DetailHeadline.vue'
|
|
@@ -30,6 +31,7 @@ export default defineComponent({
|
|
|
30
31
|
BlockImageComparison,
|
|
31
32
|
BlockLinkCarousel,
|
|
32
33
|
BlockRelatedLinks,
|
|
34
|
+
BlockText,
|
|
33
35
|
BlockVideo,
|
|
34
36
|
NavJumpMenu
|
|
35
37
|
},
|
|
@@ -129,6 +131,7 @@ export default defineComponent({
|
|
|
129
131
|
:title="data.title"
|
|
130
132
|
:blocks="data.body"
|
|
131
133
|
:enabled="data.showJumpMenu"
|
|
134
|
+
dropdown-text="In this article"
|
|
132
135
|
/>
|
|
133
136
|
<!-- inline hero content -->
|
|
134
137
|
<LayoutHelper
|
|
@@ -170,17 +173,16 @@ export default defineComponent({
|
|
|
170
173
|
/>
|
|
171
174
|
</LayoutHelper>
|
|
172
175
|
|
|
173
|
-
<!-- summary and topper -->
|
|
174
176
|
<LayoutHelper
|
|
177
|
+
v-if="data.topper"
|
|
175
178
|
indent="col-3"
|
|
176
179
|
class="lg:mb-8 mb-5"
|
|
177
180
|
>
|
|
178
|
-
<
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
</p>
|
|
181
|
+
<BlockText
|
|
182
|
+
v-if="data.topper"
|
|
183
|
+
class="lg:mb-8 mb-5 px-4 lg:px-0"
|
|
184
|
+
:text="data.topper"
|
|
185
|
+
/>
|
|
184
186
|
</LayoutHelper>
|
|
185
187
|
|
|
186
188
|
<!-- streamfield blocks -->
|