lovelymaid 1.0.8 → 1.1.0

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.
Files changed (2) hide show
  1. package/README.md +38 -0
  2. package/package.json +9 -1
package/README.md ADDED
@@ -0,0 +1,38 @@
1
+ # Usage
2
+
3
+ ## Step 1: Import CSS in your entry file
4
+
5
+ Add the following import statement **at the very beginning** of your main entry file (usually `main.js` or `main.ts`):
6
+
7
+ ```javascript
8
+ import 'lovelymaid/dist/lovelymaid.css'
9
+ ```
10
+
11
+ **Important:** Make sure this import comes **before any other style imports** in your project. This allows your custom styles to override the component library's default styles.
12
+
13
+ Example `main.js`:
14
+ ```javascript
15
+ // main.js or main.ts
16
+ import 'lovelymaid/dist/lovelymaid.css' // ← MUST be first!
17
+ import './your-own-styles.css'
18
+ import { createApp } from 'vue'
19
+ import App from './App.vue'
20
+
21
+ createApp(App).mount('#app')
22
+ ```
23
+
24
+ ## Step 2: Use components in any Vue component
25
+
26
+ Import and use LovelyMaid components directly in your Vue components:
27
+
28
+ ```vue
29
+ <script setup>
30
+ import { SideBar } from 'lovelymaid'
31
+ </script>
32
+
33
+ <template>
34
+ <SideBar :visible="true">
35
+ Sidebar Content
36
+ </SideBar>
37
+ </template>
38
+ ```
package/package.json CHANGED
@@ -1,7 +1,14 @@
1
1
  {
2
2
  "name": "lovelymaid",
3
- "version": "1.0.8",
3
+ "version": "1.1.0",
4
4
  "description": "A library of components based on vue3 that mimics the style of iOS 26",
5
+ "license": "MIT",
6
+ "keywords": [
7
+ "vue3",
8
+ "components",
9
+ "ios26",
10
+ "lovelymaid"
11
+ ],
5
12
  "main": "dist/lovelymaid.umd.js",
6
13
  "module": "dist/lovelymaid.es.js",
7
14
  "types": "dist/index.d.ts",
@@ -16,6 +23,7 @@
16
23
  "preview": "vite preview"
17
24
  },
18
25
  "dependencies": {
26
+ "typescript": "^5.9.3",
19
27
  "vue": "^3.5.22"
20
28
  },
21
29
  "devDependencies": {