@finqu/cool 1.3.0 → 2.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 +23 -9
- package/dist/css/cool.css +13391 -7742
- package/dist/css/cool.css.map +1 -1
- package/dist/css/cool.min.css +2 -93
- package/dist/css/cool.min.css.map +1 -1
- package/dist/js/cool.bundle.js +16051 -17050
- package/dist/js/cool.bundle.js.map +1 -1
- package/dist/js/cool.bundle.min.js +11 -18
- package/dist/js/cool.bundle.min.js.map +1 -1
- package/dist/js/cool.esm.js +3469 -4468
- package/dist/js/cool.esm.js.map +1 -1
- package/dist/js/cool.esm.min.js +2 -8
- package/dist/js/cool.esm.min.js.map +1 -1
- package/dist/js/cool.js +5083 -6089
- package/dist/js/cool.js.map +1 -1
- package/dist/js/cool.min.js +2 -8
- package/dist/js/cool.min.js.map +1 -1
- package/package.json +48 -16
- package/scss/LISENCE +15 -0
- package/scss/_badge.scss +134 -0
- package/scss/_button-group.scss +80 -0
- package/scss/_buttons.scss +304 -0
- package/scss/_dark.scss +637 -0
- package/scss/_dialog.scss +351 -0
- package/scss/_dropdown.scss +165 -0
- package/scss/_forms.scss +613 -0
- package/scss/_frame.scss +948 -0
- package/scss/_grid.scss +215 -0
- package/scss/_input-group.scss +326 -0
- package/scss/_list-group.scss +127 -0
- package/scss/_media.scss +439 -0
- package/scss/_navbar.scss +122 -0
- package/scss/_notification.scss +115 -0
- package/scss/_pagination.scss +82 -0
- package/scss/_popover.scss +61 -0
- package/scss/_reboot.scss +306 -0
- package/scss/_root.scss +848 -0
- package/scss/_section.scss +735 -0
- package/scss/_select.scss +559 -0
- package/scss/_tables.scss +611 -0
- package/scss/_tabs.scss +50 -0
- package/scss/_toast.scss +277 -0
- package/scss/_tooltip.scss +130 -0
- package/scss/_typography.scss +166 -0
- package/scss/_variables.scss +1229 -0
- package/scss/cool.scss +69 -0
- package/scss/utilities/_align.scss +51 -0
- package/scss/utilities/_animation.scss +165 -0
- package/scss/utilities/_background.scss +72 -0
- package/scss/utilities/_borders.scss +205 -0
- package/scss/utilities/_collapse.scss +28 -0
- package/scss/utilities/_cursor.scss +160 -0
- package/scss/utilities/_display.scss +116 -0
- package/scss/utilities/_embed.scss +89 -0
- package/scss/utilities/_fill.scss +79 -0
- package/scss/utilities/_filters.scss +233 -0
- package/scss/utilities/_flex.scss +216 -0
- package/scss/utilities/_grid.scss +136 -0
- package/scss/utilities/_opacity.scss +131 -0
- package/scss/utilities/_overflow.scss +242 -0
- package/scss/utilities/_perfect-scrollbar.scss +147 -0
- package/scss/utilities/_pointer-events.scss +125 -0
- package/scss/utilities/_position.scss +130 -0
- package/scss/utilities/_screen-readers.scss +95 -0
- package/scss/utilities/_shadows.scss +195 -0
- package/scss/utilities/_sizing.scss +288 -0
- package/scss/utilities/_spacing.scss +168 -0
- package/scss/utilities/_stroke.scss +124 -0
- package/scss/utilities/_text.scss +420 -0
- package/scss/utilities/_transform.scss +232 -0
- package/scss/utilities/_transitions.scss +147 -0
- package/scss/utilities/_user-select.scss +93 -0
- package/scss/utilities/_visibility.scss +66 -0
- package/scss/utilities/_z-index.scss +169 -0
package/README.md
CHANGED
|
@@ -25,14 +25,14 @@ When you install `@finqu/cool`, you get the `dist/` folder:
|
|
|
25
25
|
|
|
26
26
|
| File | Description |
|
|
27
27
|
|------|-------------|
|
|
28
|
-
| `dist/js/cool.bundle.js` | UMD bundle
|
|
28
|
+
| `dist/js/cool.bundle.js` | UMD bundle — includes jQuery + PerfectScrollbar for legacy convenience |
|
|
29
29
|
| `dist/js/cool.bundle.min.js` | Minified UMD bundle |
|
|
30
|
-
| `dist/js/cool.esm.js` | ES module build (
|
|
30
|
+
| `dist/js/cool.esm.js` | ES module build (no dependencies bundled) |
|
|
31
31
|
| `dist/js/cool.esm.min.js` | Minified ES module build |
|
|
32
|
-
| `dist/js/cool.js` | UMD standalone build (
|
|
32
|
+
| `dist/js/cool.js` | UMD standalone build (no dependencies bundled) |
|
|
33
33
|
| `dist/js/cool.min.js` | Minified UMD standalone |
|
|
34
34
|
|
|
35
|
-
**Bundle vs Standalone:** The `.bundle.js` files include jQuery and PerfectScrollbar for legacy
|
|
35
|
+
**Bundle vs Standalone:** The `.bundle.js` files include jQuery and PerfectScrollbar for legacy convenience. The standalone `.js` and `.esm.js` files do not include them — both are **optional** and can be provided externally if needed.
|
|
36
36
|
|
|
37
37
|
---
|
|
38
38
|
|
|
@@ -69,7 +69,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
|
|
69
69
|
});
|
|
70
70
|
```
|
|
71
71
|
|
|
72
|
-
> The ESM
|
|
72
|
+
> The ESM and standalone builds work without jQuery or PerfectScrollbar. Both are **optional** — add jQuery only if you need the legacy `$.data()` plugin wrapper, and PerfectScrollbar only if you want custom scrollbars (otherwise native scrolling is used). The bundle build (`cool.bundle.js`) includes both for convenience.
|
|
73
73
|
|
|
74
74
|
### Without a bundler (script tags)
|
|
75
75
|
|
|
@@ -666,10 +666,24 @@ Defined in `.browserslistrc`:
|
|
|
666
666
|
Cool UI's JavaScript is written in native ECMAScript. jQuery is used only as a
|
|
667
667
|
legacy compatibility layer for the plugin wrapper pattern.
|
|
668
668
|
|
|
669
|
-
| Dependency | Purpose | Included in bundle | Required
|
|
670
|
-
|
|
671
|
-
| [jQuery](https://jquery.com/) ^3.7.1 | Legacy plugin wrapper | ✅ `cool.bundle.js` |
|
|
672
|
-
| [PerfectScrollbar](https://github.com/mdbootstrap/perfect-scrollbar) ^1.5.6 | Custom scrollbars | ✅ `cool.bundle.js` |
|
|
669
|
+
| Dependency | Purpose | Included in bundle | Required? |
|
|
670
|
+
|------------|---------|-------------------|----------|
|
|
671
|
+
| [jQuery](https://jquery.com/) ^3.7.1 | Legacy `$.data()` plugin wrapper | ✅ `cool.bundle.js` | **Optional** — only needed for the legacy jQuery wrapper |
|
|
672
|
+
| [PerfectScrollbar](https://github.com/mdbootstrap/perfect-scrollbar) ^1.5.6 | Custom scrollbars in sidebar/select | ✅ `cool.bundle.js` | **Optional** — falls back to native scrolling |
|
|
673
|
+
|
|
674
|
+
---
|
|
675
|
+
|
|
676
|
+
## Contributing
|
|
677
|
+
|
|
678
|
+
We welcome contributions! Please read our [Contributing Guide](docs/contributing.md) to learn about:
|
|
679
|
+
|
|
680
|
+
- Development workflow and setup
|
|
681
|
+
- Coding standards and conventions
|
|
682
|
+
- Building and testing the project
|
|
683
|
+
- Submitting pull requests
|
|
684
|
+
- Reporting bugs and requesting features
|
|
685
|
+
|
|
686
|
+
For questions or discussions, please [open an issue](https://github.com/finqu/cool/issues) on GitHub.
|
|
673
687
|
|
|
674
688
|
---
|
|
675
689
|
|