@levino/shipyard-base 0.1.0 → 0.1.2
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/lib/components/LocalNavigation.astro +1 -9
- package/lib/components/types.js +1 -2
- package/lib/globals.css +3 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -3
- package/lib/layouts/Page.astro +1 -1
- package/lib/schemas/config.js +1 -2
- package/lib/tools/cn.js +3 -10
- package/lib/types.js +2 -5
- package/package.json +7 -2
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
import SidebarElement from './SidebarElement.astro';
|
|
3
|
-
|
|
4
|
-
export type Entry = Record<
|
|
5
|
-
string,
|
|
6
|
-
{
|
|
7
|
-
label?: string;
|
|
8
|
-
href?: string;
|
|
9
|
-
subEntry?: Entry;
|
|
10
|
-
}
|
|
11
|
-
>;
|
|
3
|
+
import { Entry } from './types';
|
|
12
4
|
|
|
13
5
|
interface SidebarProps {
|
|
14
6
|
entry: Entry;
|
package/lib/components/types.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
package/lib/globals.css
ADDED
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
1
|
const shipyardConfigId = 'virtual:shipyard/config';
|
|
4
2
|
const resolveId = {
|
|
5
3
|
[shipyardConfigId]: `${shipyardConfigId}`,
|
|
@@ -7,7 +5,7 @@ const resolveId = {
|
|
|
7
5
|
const load = (config) => ({
|
|
8
6
|
[shipyardConfigId]: `export default ${JSON.stringify(config)}`,
|
|
9
7
|
});
|
|
10
|
-
|
|
8
|
+
export default (config) => ({
|
|
11
9
|
name: 'shipyard',
|
|
12
10
|
hooks: {
|
|
13
11
|
'astro:config:setup': ({ updateConfig }) => {
|
package/lib/layouts/Page.astro
CHANGED
|
@@ -3,7 +3,7 @@ import Footer from './Footer.astro'
|
|
|
3
3
|
import '../globals.css'
|
|
4
4
|
import config from 'virtual:shipyard/config'
|
|
5
5
|
import GlobalDesktopNavigation from '../components/GlobalDesktopNavigation.astro'
|
|
6
|
-
import type { NavigationTree, NavigationEntry } from '
|
|
6
|
+
import type { NavigationTree, NavigationEntry } from '../schemas/config'
|
|
7
7
|
import { mapObjIndexed } from 'ramda'
|
|
8
8
|
import SidebarNavigation from '../components/SidebarNavigation.astro'
|
|
9
9
|
|
package/lib/schemas/config.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
package/lib/tools/cn.js
CHANGED
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.cn = void 0;
|
|
7
|
-
const clsx_1 = __importDefault(require("clsx"));
|
|
8
|
-
const tailwind_merge_1 = require("tailwind-merge");
|
|
9
|
-
const cn = (...classes) => (0, tailwind_merge_1.twMerge)((0, clsx_1.default)(...classes));
|
|
10
|
-
exports.cn = cn;
|
|
1
|
+
import clsx from 'clsx';
|
|
2
|
+
import { twMerge } from 'tailwind-merge';
|
|
3
|
+
export const cn = (...classes) => twMerge(clsx(...classes));
|
package/lib/types.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MONTHS_DE = exports.MONTHS_EN = void 0;
|
|
4
|
-
exports.MONTHS_EN = [
|
|
1
|
+
export const MONTHS_EN = [
|
|
5
2
|
'january',
|
|
6
3
|
'february',
|
|
7
4
|
'march',
|
|
@@ -15,7 +12,7 @@ exports.MONTHS_EN = [
|
|
|
15
12
|
'november',
|
|
16
13
|
'december',
|
|
17
14
|
];
|
|
18
|
-
|
|
15
|
+
export const MONTHS_DE = [
|
|
19
16
|
'Januar',
|
|
20
17
|
'Februar',
|
|
21
18
|
'März',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@levino/shipyard-base",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"peerDependencies": {
|
|
@@ -10,11 +10,16 @@
|
|
|
10
10
|
"@tailwindcss/typography": "^0.5.10"
|
|
11
11
|
},
|
|
12
12
|
"scripts": {
|
|
13
|
-
"build": "tsc -p tsconfig.build.json && rsync -avm --include='*/' --include='*.astro' --exclude='*' ./src/ ./lib/"
|
|
13
|
+
"build": "tsc -p tsconfig.build.json && rsync -avm --include='*/' --include='*.astro' --include='*.css' --exclude='*' ./src/ ./lib/",
|
|
14
|
+
"prepublishOnly": "npm run build"
|
|
14
15
|
},
|
|
15
16
|
"files": [
|
|
16
17
|
"lib"
|
|
17
18
|
],
|
|
19
|
+
"exports": {
|
|
20
|
+
".": "./lib/index.js",
|
|
21
|
+
"./*": "./lib/*"
|
|
22
|
+
},
|
|
18
23
|
"devDependencies": {
|
|
19
24
|
"@tailwindcss/typography": "^0.5.10",
|
|
20
25
|
"@types/ramda": "^0.29.9",
|