@smilodon/core 1.5.3 → 1.5.5
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 +11 -0
- package/dist/index.cjs +373 -73
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +373 -73
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/index.umd.js +373 -73
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.map +1 -1
- package/dist/types/src/components/enhanced-select.d.ts +14 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -131,6 +131,12 @@ See the [main documentation](https://github.com/navidrezadoost/smilodon#readme)
|
|
|
131
131
|
- **Full keyboard navigation**: Enter/Space, Arrows, Home/End, PageUp/Down, Escape
|
|
132
132
|
- **Multi-select modes**: wrap, horizontal, vertical, both (with drag-scroll)
|
|
133
133
|
|
|
134
|
+
### 🎨 CSS Framework Compatibility (`1.5.5`)
|
|
135
|
+
- **Scoped mirrored styles**: class-based framework styles used by custom renderers are mirrored only into the options subtree, not the whole shadow root.
|
|
136
|
+
- **Dark variant support**: `.dark`, `.dark-mode`, and theme-attribute variants propagate into custom-rendered option content.
|
|
137
|
+
- **Stable state hooks**: `classMap`, `data-sm-state`, and Smilodon state classes stay available on custom option roots for hover, active, selected, and disabled styling.
|
|
138
|
+
- **Accessible custom renderers**: nested interactive descendants are normalized by default so option renderers stay compatible with listbox semantics.
|
|
139
|
+
|
|
134
140
|
### 🔒 Enterprise Grade
|
|
135
141
|
- **SOC2 Compliant**: Audit-ready security controls
|
|
136
142
|
- **CSP Compatible**: No eval(), no inline scripts
|
|
@@ -674,6 +680,9 @@ enhanced-select.dark-mode {
|
|
|
674
680
|
|
|
675
681
|
/* Group headers (when using groupedItems or flat items with `group` property) */
|
|
676
682
|
--select-group-header-padding /* Padding inside header (8px 12px) */
|
|
683
|
+
--select-group-header-separator-margin-top /* Extra gap before later groups */
|
|
684
|
+
--select-group-header-separator-padding-top /* Adds separator spacing without changing header title padding */
|
|
685
|
+
--select-group-header-separator-border-top /* Divider above later groups */
|
|
677
686
|
--select-group-header-color /* Text color (#6b7280) */
|
|
678
687
|
--select-group-header-bg /* Background (#f3f4f6) */
|
|
679
688
|
--select-group-header-font-size
|
|
@@ -1044,6 +1053,8 @@ enhanced-select {
|
|
|
1044
1053
|
|
|
1045
1054
|
Framework compatibility guidance also lives in [../../docs/CSS-FRAMEWORK-COMPATIBILITY.md](../../docs/CSS-FRAMEWORK-COMPATIBILITY.md).
|
|
1046
1055
|
|
|
1056
|
+
When using Tailwind-style custom renderers, remember that `optionRenderer` may return the option root itself. In that case, put the utility classes and hover/active/selected styling on the returned root element instead of assuming there is a nested wrapper.
|
|
1057
|
+
|
|
1047
1058
|
**Example 4: Custom Brand Colors**
|
|
1048
1059
|
```css
|
|
1049
1060
|
enhanced-select {
|