@ai-matrx/design-system 0.11.5 → 0.12.0
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/CHANGELOG.md +81 -0
- package/dist/index.cjs +198 -57
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +43 -1
- package/dist/index.d.ts +43 -1
- package/dist/index.js +198 -57
- package/dist/index.js.map +1 -1
- package/dist/styles.css +13 -19
- package/package.json +1 -1
package/dist/styles.css
CHANGED
|
@@ -782,25 +782,6 @@
|
|
|
782
782
|
var(--matrx-glass-border-color);
|
|
783
783
|
}
|
|
784
784
|
|
|
785
|
-
/* -----------------------------------------------------------------------
|
|
786
|
-
--dialog-pad-bottom on the mobile sheet — the home-indicator clearance.
|
|
787
|
-
|
|
788
|
-
The dialog card's bottom padding belongs to its sticky footer (see THE
|
|
789
|
-
FOOTER RESERVATION below), so the safe area the sheet used to buy with
|
|
790
|
-
`pb-safe` has to arrive as the FOOTER's bottom pad instead. Same max()
|
|
791
|
-
floor. Unlayered like the rest of this section, though a custom property is
|
|
792
|
-
not something preflight touches — it is here so the whole contract reads in
|
|
793
|
-
one place.
|
|
794
|
-
|
|
795
|
-
The footer's own geometry is deliberately NOT a rule: it stays Tailwind
|
|
796
|
-
utilities on the element, so a caller's `className` still overrides it
|
|
797
|
-
through tailwind-merge exactly as it always has (matrx-frontend has ~10
|
|
798
|
-
footers that pass their own padding). Only the card half — which no caller
|
|
799
|
-
addresses — is CSS.
|
|
800
|
-
----------------------------------------------------------------------- */
|
|
801
|
-
.matrx-mobile-sheet {
|
|
802
|
-
--dialog-pad-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
|
|
803
|
-
}
|
|
804
785
|
|
|
805
786
|
/* ────────────────────────────────────────────────────────────────────────
|
|
806
787
|
.matrx-dialog-card — THE FOOTER RESERVATION.
|
|
@@ -845,6 +826,19 @@
|
|
|
845
826
|
padding-bottom: 0;
|
|
846
827
|
}
|
|
847
828
|
|
|
829
|
+
/* The mobile sheet's bottom edge IS the phone's bottom edge. Its card used to
|
|
830
|
+
buy the home-indicator clearance with `pb-safe`; the reservation above hands
|
|
831
|
+
that padding to the footer, so the floor has to be restated HERE or the
|
|
832
|
+
actions land under the indicator. `max()` so the sheet's own `--dialog-pad`
|
|
833
|
+
(1rem) still applies on a device with no inset.
|
|
834
|
+
|
|
835
|
+
This is the ONE place a shipped rule overrides a caller's footer padding, and
|
|
836
|
+
it is a safety floor rather than taste — exactly what `.pb-safe` was doing on
|
|
837
|
+
this element's parent before. */
|
|
838
|
+
.matrx-mobile-sheet > [data-slot="dialog-footer"] {
|
|
839
|
+
padding-bottom: max(var(--dialog-pad, 0px), env(safe-area-inset-bottom, 0px));
|
|
840
|
+
}
|
|
841
|
+
|
|
848
842
|
/* ────────────────────────────────────────────────────────────────────────
|
|
849
843
|
.matrx-mobile-sheet — ONE mobile density for any desktop panel hosted in a
|
|
850
844
|
bottom sheet (TabbedBottomSheet sets it; see that file's header).
|
package/package.json
CHANGED