@mottosports/motto-video-player 1.0.1-rc.73 → 1.0.1-rc.75
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 +28 -0
- package/dist/index.js +103 -1955
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +103 -1955
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -5
package/README.md
CHANGED
|
@@ -21,6 +21,34 @@ React video player component for the Motto platform, powered by Shaka Player wit
|
|
|
21
21
|
npm install @motto-ui-components/motto-video-player @tanstack/react-query
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
+
### Tailwind CSS Setup (Required)
|
|
25
|
+
|
|
26
|
+
This package uses Tailwind CSS utility classes. You must have Tailwind CSS configured in your project:
|
|
27
|
+
|
|
28
|
+
1. **Install Tailwind CSS** (if not already installed):
|
|
29
|
+
```bash
|
|
30
|
+
npm install -D tailwindcss
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
2. **Configure Tailwind to scan the package files**. Add this to your `tailwind.config.js`:
|
|
34
|
+
```js
|
|
35
|
+
module.exports = {
|
|
36
|
+
content: [
|
|
37
|
+
'./src/**/*.{js,jsx,ts,tsx}',
|
|
38
|
+
// Add this line to scan the motto-video-player package
|
|
39
|
+
'./node_modules/@mottosports/motto-video-player/dist/**/*.{js,mjs}'
|
|
40
|
+
],
|
|
41
|
+
// ... rest of your config
|
|
42
|
+
}
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
3. **Import Tailwind in your CSS**:
|
|
46
|
+
```css
|
|
47
|
+
@tailwind base;
|
|
48
|
+
@tailwind components;
|
|
49
|
+
@tailwind utilities;
|
|
50
|
+
```
|
|
51
|
+
|
|
24
52
|
## Quick Start
|
|
25
53
|
|
|
26
54
|
### Setup QueryClient (Required for Video wrapper)
|