monoscribe 0.1.0-beta.3 → 0.1.0-beta.4
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/README.md +2 -2
- package/package.json +1 -1
- package/tsconfig.json +5 -2
- package/vite.config.ts +11 -9
- package/dist/stories/Heading.stories.d.ts +0 -12
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<picture>
|
|
2
|
-
<source srcset="
|
|
3
|
-
<img src="
|
|
2
|
+
<source srcset="https://raw.githubusercontent.com/yunusgogce/monoscribe/main/assets/logo-white.png" media="(prefers-color-scheme: dark)" />
|
|
3
|
+
<img src="https://raw.githubusercontent.com/yunusgogce/monoscribe/main/assets/logo-black.png" alt="Monoscribe Logo" />
|
|
4
4
|
</picture>
|
|
5
5
|
|
|
6
6
|
**Monoscribe** is a lightweight and customizable typography component library for React, designed to simplify text styling with a focus on monospace fonts. It provides pre-styled components that ensure consistency while allowing flexibility in font selection and customization. With built-in accessibility and animations, Monoscribe enables developers to implement high-quality typography without additional complexity.
|
package/package.json
CHANGED
package/tsconfig.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
3
|
"declaration": true,
|
|
4
|
-
"declarationDir": "./dist",
|
|
4
|
+
"declarationDir": "./dist",
|
|
5
5
|
"outDir": "./dist",
|
|
6
6
|
"moduleResolution": "node",
|
|
7
7
|
"module": "ESNext",
|
|
@@ -10,5 +10,8 @@
|
|
|
10
10
|
"skipLibCheck": true
|
|
11
11
|
},
|
|
12
12
|
"include": ["src"],
|
|
13
|
-
"exclude": [
|
|
13
|
+
"exclude": [
|
|
14
|
+
"node_modules",
|
|
15
|
+
"src/stories"
|
|
16
|
+
]
|
|
14
17
|
}
|
package/vite.config.ts
CHANGED
|
@@ -2,28 +2,30 @@ import { defineConfig } from "vite";
|
|
|
2
2
|
import react from "@vitejs/plugin-react";
|
|
3
3
|
import dts from "vite-plugin-dts";
|
|
4
4
|
|
|
5
|
-
// https://vite.dev/config/
|
|
6
5
|
export default defineConfig({
|
|
7
6
|
plugins: [
|
|
8
7
|
react(),
|
|
9
8
|
dts({
|
|
10
|
-
insertTypesEntry: true,
|
|
9
|
+
insertTypesEntry: true,
|
|
10
|
+
exclude: ["src/stories/**"],
|
|
11
11
|
}),
|
|
12
12
|
],
|
|
13
13
|
build: {
|
|
14
14
|
lib: {
|
|
15
|
-
entry: "./src/index.ts",
|
|
16
|
-
name: "Monoscribe",
|
|
17
|
-
fileName: (format) => `monoscribe.${format}.js`,
|
|
18
|
-
formats: ["es", "cjs"],
|
|
15
|
+
entry: "./src/index.ts",
|
|
16
|
+
name: "Monoscribe",
|
|
17
|
+
fileName: (format) => `monoscribe.${format}.js`,
|
|
18
|
+
formats: ["es", "cjs"],
|
|
19
19
|
},
|
|
20
20
|
rollupOptions: {
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
external: ["react", "react-dom"],
|
|
22
|
+
input: {
|
|
23
|
+
main: "src/index.ts",
|
|
24
|
+
},
|
|
23
25
|
output: {
|
|
24
26
|
globals: {
|
|
25
27
|
react: "React",
|
|
26
|
-
"react-dom": "ReactDOM",
|
|
28
|
+
"react-dom": "ReactDOM",
|
|
27
29
|
},
|
|
28
30
|
},
|
|
29
31
|
},
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { StoryObj } from '@storybook/react';
|
|
2
|
-
declare const meta: {
|
|
3
|
-
title: string;
|
|
4
|
-
component: ({ level, size, ...props }: import('../components/Heading').HeadingProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
parameters: {
|
|
6
|
-
layout: string;
|
|
7
|
-
};
|
|
8
|
-
tags: string[];
|
|
9
|
-
};
|
|
10
|
-
export default meta;
|
|
11
|
-
type Story = StoryObj<typeof meta>;
|
|
12
|
-
export declare const H1: Story;
|