react-bootstrap-plugins 1.0.1 → 1.0.2
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
CHANGED
|
@@ -48,7 +48,7 @@ DatePicker requires a small CSS file for its popover calendar layout. Import it
|
|
|
48
48
|
import 'react-bootstrap-plugins/css/datepicker.css'
|
|
49
49
|
```
|
|
50
50
|
|
|
51
|
-
This resolves to
|
|
51
|
+
This resolves to `dist/css/datepicker.css` via the package's `exports` map. No additional configuration is needed for modern bundlers.
|
|
52
52
|
|
|
53
53
|
#### Troubleshooting CSS import issues
|
|
54
54
|
|
|
@@ -63,7 +63,7 @@ If your bundler reports **"Cannot find module"** or fails to resolve the CSS imp
|
|
|
63
63
|
- **For older webpack (v4)** — you may need to use the full path if your version doesn't support the `exports` field.
|
|
64
64
|
|
|
65
65
|
```js
|
|
66
|
-
import 'react-bootstrap-plugins/dist/css/datepicker
|
|
66
|
+
import 'react-bootstrap-plugins/dist/css/datepicker.css'
|
|
67
67
|
```
|
|
68
68
|
|
|
69
69
|
- **For Next.js** — add the package to `transpilePackages` in `next.config.mjs` if not already present.
|
|
@@ -448,7 +448,7 @@ src/
|
|
|
448
448
|
│ ├── Label.jsx Form label
|
|
449
449
|
│ └── *.d.ts TypeScript declarations
|
|
450
450
|
└── css/
|
|
451
|
-
└── datepicker
|
|
451
|
+
└── datepicker.css
|
|
452
452
|
```
|
|
453
453
|
|
|
454
454
|
---
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-bootstrap-plugins",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Production-grade Bootstrap 5 UI plugins for React — DatePicker, SearchSelect, Label, and more. Zero runtime dependencies beyond React.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"default": "./dist/Label.cjs"
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
|
-
"./css/datepicker.css": "./dist/css/datepicker
|
|
55
|
+
"./css/datepicker.css": "./dist/css/datepicker.css"
|
|
56
56
|
},
|
|
57
57
|
"sideEffects": [
|
|
58
58
|
"*.css",
|
|
File without changes
|
|
File without changes
|