@asdp/ferryui 0.1.0 → 0.1.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/README.md +27 -0
- package/dist/assets/images/banner/promo-akhir-tahun.png +0 -0
- package/dist/assets/images/banner/promo-indomaret.png +0 -0
- package/dist/assets/images/banner/promo-shopee.png +0 -0
- package/dist/assets/images/banner/usemanifest-banner.svg +9 -0
- package/dist/assets/images/illustrations/mobile-pay.svg +218 -0
- package/dist/assets/images/illustrations/pay.svg +294 -0
- package/dist/assets/images/illustrations/radius.svg +68 -0
- package/dist/assets/images/illustrations/sessionexp.svg +486 -0
- package/dist/assets/logo/asdp-default.svg +184 -0
- package/dist/index.d.mts +516 -14
- package/dist/index.d.ts +516 -14
- package/dist/index.js +3004 -31
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2988 -32
- package/dist/index.mjs.map +1 -1
- package/package.json +73 -50
package/README.md
CHANGED
|
@@ -95,6 +95,33 @@ function App() {
|
|
|
95
95
|
}
|
|
96
96
|
```
|
|
97
97
|
|
|
98
|
+
#### Using Assets
|
|
99
|
+
|
|
100
|
+
The `ModalRadius` component uses an illustration image by default. The asset is included in the published package. You have two options:
|
|
101
|
+
|
|
102
|
+
**Option 1: Copy assets to your public directory (Recommended)**
|
|
103
|
+
|
|
104
|
+
```bash
|
|
105
|
+
# Copy assets from the package to your public directory
|
|
106
|
+
cp -r node_modules/@asdp/ferryui/dist/assets public/
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
Or on Windows:
|
|
110
|
+
|
|
111
|
+
```powershell
|
|
112
|
+
Copy-Item -Recurse node_modules/@asdp/ferryui/dist/assets -Destination public/
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
**Option 2: Provide custom image**
|
|
116
|
+
|
|
117
|
+
```tsx
|
|
118
|
+
<ModalRadius
|
|
119
|
+
open={isOpen}
|
|
120
|
+
onClose={() => setIsOpen(false)}
|
|
121
|
+
imageSrc="https://your-cdn.com/custom-image.svg"
|
|
122
|
+
/>
|
|
123
|
+
```
|
|
124
|
+
|
|
98
125
|
## Menggunakan Package di Project Lain
|
|
99
126
|
|
|
100
127
|
### 1. Setup .npmrc
|
|
Binary file
|
|
Binary file
|
|
Binary file
|