@fluixi-ui/skin-material 0.2.0 → 0.2.1-alpha.1

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.
Files changed (2) hide show
  1. package/material.css +32 -0
  2. package/package.json +1 -1
package/material.css CHANGED
@@ -180,6 +180,38 @@
180
180
  border-radius: 4px;
181
181
  }
182
182
 
183
+ /* ---- Drawer (M3 side sheet): round the trailing (interior) edge only, keep
184
+ the screen-edge corners flush; M3 elevation instead of the heavy default. -- */
185
+ [data-ui='material'] :where([data-drawer-content]) {
186
+ box-shadow: var(--flx-ui-shadow-lg);
187
+ }
188
+ [data-ui='material'] :where([data-drawer-content][data-side='left']) {
189
+ border-radius: 0 16px 16px 0;
190
+ }
191
+ [data-ui='material'] :where([data-drawer-content][data-side='right']) {
192
+ border-radius: 16px 0 0 16px;
193
+ }
194
+ [data-ui='material'] :where([data-drawer-content][data-side='top']) {
195
+ border-radius: 0 0 16px 16px;
196
+ }
197
+ [data-ui='material'] :where([data-drawer-content][data-side='bottom']) {
198
+ border-radius: 16px 16px 0 0;
199
+ }
200
+
201
+ /* ---- Bottom sheet (M3): 28dp top corners, M3 elevation, and the standard
202
+ 32×4dp on-surface-variant drag handle. --------------------------------- */
203
+ [data-ui='material'] :where([data-bottom-sheet-content]) {
204
+ border-radius: 28px 28px 0 0;
205
+ box-shadow: var(--flx-ui-shadow-lg);
206
+ }
207
+ [data-ui='material'] :where([data-bottom-sheet-handle])::before {
208
+ width: 32px;
209
+ height: 4px;
210
+ border-radius: 9999px;
211
+ background: var(--flx-ui-color-fg-muted);
212
+ opacity: 0.4;
213
+ }
214
+
183
215
  /* ---- Click-origin ripple (installed by the ripple primitive) ------------- */
184
216
  [data-ui='material'] :where([data-variant], [role='menuitem'], [role='option'], [role='tab']) {
185
217
  position: relative;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluixi-ui/skin-material",
3
- "version": "0.2.0",
3
+ "version": "0.2.1-alpha.1",
4
4
  "description": "Material Design skin for Fluixi UI — activate with data-ui=\"material\"",
5
5
  "license": "MIT",
6
6
  "private": false,