@lidofinance/lido-app-ui 1.0.0-alpha.2 → 1.0.0-alpha.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 ADDED
@@ -0,0 +1,30 @@
1
+ # @lidofinance/lido-app-ui
2
+
3
+ Components for Lido app/widget products. Currently small and growing. The other current replacement for the deprecated [`@lidofinance/lido-ui`](https://www.npmjs.com/package/@lidofinance/lido-ui).
4
+
5
+ Storybook: [ui.lido.fi/lido-app-ui](https://ui.lido.fi/lido-app-ui/)
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ yarn add @lidofinance/lido-app-ui
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ ```tsx
16
+ import { ThemeProvider } from '@lidofinance/lido-app-ui'
17
+ import '@lidofinance/lido-app-ui/index.css'
18
+
19
+ function App({ Component }) {
20
+ return (
21
+ <ThemeProvider>
22
+ <Component />
23
+ </ThemeProvider>
24
+ )
25
+ }
26
+ ```
27
+
28
+ ## More
29
+
30
+ This package is part of the [`lidofinance/ui`](https://github.com/lidofinance/ui) monorepo — see the [repo README](https://github.com/lidofinance/ui#readme) for the full package overview, theming, CSS variable customization, and contribution guide.
package/dist/README.md ADDED
@@ -0,0 +1,30 @@
1
+ # @lidofinance/lido-app-ui
2
+
3
+ Components for Lido app/widget products. Currently small and growing. The other current replacement for the deprecated [`@lidofinance/lido-ui`](https://www.npmjs.com/package/@lidofinance/lido-ui).
4
+
5
+ Storybook: [ui.lido.fi/lido-app-ui](https://ui.lido.fi/lido-app-ui/)
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ yarn add @lidofinance/lido-app-ui
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ ```tsx
16
+ import { ThemeProvider } from '@lidofinance/lido-app-ui'
17
+ import '@lidofinance/lido-app-ui/index.css'
18
+
19
+ function App({ Component }) {
20
+ return (
21
+ <ThemeProvider>
22
+ <Component />
23
+ </ThemeProvider>
24
+ )
25
+ }
26
+ ```
27
+
28
+ ## More
29
+
30
+ This package is part of the [`lidofinance/ui`](https://github.com/lidofinance/ui) monorepo — see the [repo README](https://github.com/lidofinance/ui#readme) for the full package overview, theming, CSS variable customization, and contribution guide.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lidofinance/lido-app-ui",
3
- "version": "1.0.0-alpha.2",
3
+ "version": "1.0.0-alpha.4",
4
4
  "homepage": "https://github.com/lidofinance/ui",
5
5
  "repository": {
6
6
  "type": "git",
@@ -18,13 +18,17 @@
18
18
  "import": "./dist/esm/index.mjs",
19
19
  "require": "./dist/cjs/index.js"
20
20
  },
21
- "./index.css": "./dist/index.css"
21
+ "./index.css": {
22
+ "import": "./dist/esm/index.css",
23
+ "require": "./dist/cjs/index.css"
24
+ },
25
+ "./styles/*": "./dist/styles/*"
22
26
  },
23
27
  "files": [
24
28
  "dist"
25
29
  ],
26
30
  "scripts": {
27
- "build": "rm -rf dist && rollup -c && tsc --project tsconfig.production.json && cp dist/esm/index.css dist/index.css",
31
+ "build": "rm -rf dist && rollup -c && tsc --project tsconfig.production.json && cp dist/esm/index.css dist/index.css && cp README.md dist/README.md",
28
32
  "dev": "storybook dev -p 5557",
29
33
  "build-storybook": "storybook build --output-dir storybook-static",
30
34
  "test": "vitest run --passWithNoTests",
@@ -38,7 +42,7 @@
38
42
  "react-dom": "^18"
39
43
  },
40
44
  "dependencies": {
41
- "@lidofinance/lido-shared-ui": "^1.0.0-alpha.2",
45
+ "@lidofinance/lido-shared-ui": "^1.0.0-alpha.3",
42
46
  "classnames": "2.5.1"
43
47
  },
44
48
  "devDependencies": {
@@ -55,7 +59,7 @@
55
59
  "@storybook/react-webpack5": "8.6.12",
56
60
  "@storybook/test": "8.6.12",
57
61
  "@types/react": "18.2.24",
58
- "@types/react-dom": "18.2.24",
62
+ "@types/react-dom": "18.2.9",
59
63
  "@vitejs/plugin-react": "^4.0.0",
60
64
  "jsdom": "^25.0.0",
61
65
  "react": "18.2.0",