@explorer-1/vue 0.0.1 → 0.0.3
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/explorer-1-vue.js +320 -588
- package/dist/src/utils/mixins.d.ts +1 -1
- package/package.json +4 -5
- package/src/components/CalendarButton/CalendarButton.vue +1 -1
- package/src/components/SearchResultsList/SearchResultsList.vue +1 -1
- package/src/docs/foundation/DynamicTokens.vue +10 -8
- package/src/docs/foundation/themes.docs.mdx +1 -1
- package/src/utils/mixins.ts +2 -2
package/package.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@explorer-1/vue",
|
|
3
|
+
"version": "0.0.3",
|
|
3
4
|
"private": false,
|
|
4
5
|
"publishConfig": {
|
|
5
6
|
"access": "public"
|
|
@@ -9,7 +10,6 @@
|
|
|
9
10
|
"type": "git",
|
|
10
11
|
"url": "https://github.com/nasa-jpl/explorer-1"
|
|
11
12
|
},
|
|
12
|
-
"version": "0.0.1",
|
|
13
13
|
"type": "module",
|
|
14
14
|
"prettier": "@explorer-1/prettier-config",
|
|
15
15
|
"dependencies": {
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
"autoprefixer": "^10.4.19",
|
|
36
36
|
"postcss": "^8.4.38",
|
|
37
37
|
"postcss-import": "^16.1.0",
|
|
38
|
-
"typescript": "^5.
|
|
38
|
+
"typescript": "^5.4.5",
|
|
39
39
|
"unplugin-vue-components": "^0.27.0",
|
|
40
|
-
"vite": "^5.
|
|
40
|
+
"vite": "^5.3.1",
|
|
41
41
|
"vite-plugin-dts": "^3.9.1",
|
|
42
42
|
"vue-tsc": "^2.0.6",
|
|
43
43
|
"@explorer-1/prettier-config": "1.0.0"
|
|
@@ -49,7 +49,6 @@
|
|
|
49
49
|
"lint:fix": "eslint ./src --fix",
|
|
50
50
|
"preview": "vite preview",
|
|
51
51
|
"prepare:fonts": "cp -R ./node_modules/@explorer-1/common/src/fonts/ ./src/assets/fonts/",
|
|
52
|
-
"prepare:public": "cp -R ./node_modules/@explorer-1/common/src/public/explorer-1/ ./public/explorer-1"
|
|
53
|
-
"prepare:public:edu": "cp -R ./node_modules/@explorer-1/common/src/public/explorer-1/ ./public/edu/explorer-1"
|
|
52
|
+
"prepare:public": "cp -R ./node_modules/@explorer-1/common/src/public/explorer-1/ ./public/explorer-1"
|
|
54
53
|
}
|
|
55
54
|
}
|
|
@@ -16,7 +16,7 @@ import { defineComponent } from 'vue'
|
|
|
16
16
|
import { ICalendar } from 'datebook'
|
|
17
17
|
import type { CalendarOptions } from 'datebook'
|
|
18
18
|
// @ts-ignore
|
|
19
|
-
import dayjs from '
|
|
19
|
+
import dayjs from 'dayjs'
|
|
20
20
|
import BaseButton from './../BaseButton/BaseButton.vue'
|
|
21
21
|
|
|
22
22
|
export default defineComponent({
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
import { defineComponent } from 'vue'
|
|
58
58
|
import type { ElasticSearchPage } from '../../interfaces'
|
|
59
59
|
// @ts-ignore
|
|
60
|
-
import dayjs from '
|
|
60
|
+
import dayjs from 'dayjs'
|
|
61
61
|
import SearchResultCard from './../SearchResultCard/SearchResultCard.vue'
|
|
62
62
|
import SearchResultGridItem from './../SearchResultGridItem/SearchResultGridItem.vue'
|
|
63
63
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<table class="table-autotext-sm">
|
|
2
|
+
<table class="DynamicTokensTable table-autotext-sm">
|
|
3
3
|
<thead>
|
|
4
4
|
<tr>
|
|
5
5
|
<th class="text-left w-1/2">Color</th>
|
|
@@ -95,12 +95,14 @@
|
|
|
95
95
|
</tbody>
|
|
96
96
|
</table>
|
|
97
97
|
</template>
|
|
98
|
-
<style
|
|
99
|
-
.
|
|
100
|
-
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
98
|
+
<style lang="scss">
|
|
99
|
+
.DynamicTokensTable {
|
|
100
|
+
.ThemeVariantDark & {
|
|
101
|
+
@apply text-white #{!important};
|
|
102
|
+
}
|
|
103
|
+
td,
|
|
104
|
+
th {
|
|
105
|
+
@apply px-2;
|
|
106
|
+
}
|
|
105
107
|
}
|
|
106
108
|
</style>
|
|
@@ -30,7 +30,7 @@ Changing the Theme and Variant to see how the dynamic tokens change.
|
|
|
30
30
|
|
|
31
31
|
For components that have light and dark themes, add theme rules to the end of your scss. The following is an example of a component whose background should be `bg-white` by default and in `ThemeVariantLight` but `bg-black` in `ThemeVariantDark`
|
|
32
32
|
|
|
33
|
-
```
|
|
33
|
+
```css
|
|
34
34
|
.MyComponent {
|
|
35
35
|
// set the default background color
|
|
36
36
|
@apply bg-white;
|
package/src/utils/mixins.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
// import Vue from 'vue'
|
|
2
2
|
// @ts-ignore
|
|
3
3
|
import dayjs from './dayjs'
|
|
4
|
-
import { useHeaderStore } from '
|
|
4
|
+
import { useHeaderStore } from '@explorer-1/vue/src/store/header'
|
|
5
5
|
import { useRoute } from 'vue-router'
|
|
6
6
|
import type {
|
|
7
7
|
BreadcrumbPathObject,
|
|
8
8
|
ImageObject,
|
|
9
9
|
ImageSrcObject,
|
|
10
10
|
RelatedLinkObject
|
|
11
|
-
} from '
|
|
11
|
+
} from '@explorer-1/vue/src/interfaces'
|
|
12
12
|
// srcSet data structure
|
|
13
13
|
export interface SrcSetDataValue {
|
|
14
14
|
url: string
|