@xleddyl/443-components-vue 0.16.103 → 0.16.104

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
@@ -782,7 +782,7 @@ const confirmDiscard = () => !dirty.value || confirm({ title: 'Discard changes?'
782
782
  - A docked drawer is not modal: no backdrop, no scroll lock, focus stays where it was when it opens, and Escape closes it only when the focus is inside it (and no menu or nested dialog is open). The leave guard is the same: closing it, its trail and a navigation ask before they drop a dirty form.
783
783
  - `useRouteRecord().openRecord(id)` asks the discard question when it replaces another open record (the user clicked another row with a dirty form). The default `beforeLeave` reads the topmost modal dialog, else the docked drawer. A discard accepted by a scope also answers the next question of the same scope in the same task, so a drawer that asks and then calls `openRecord()` asks once.
784
784
  - Toasts move to the left of the dock.
785
- - The body of every Drawer and Modal is a size container (`k-drawer`, `k-modal`), so put container queries on the content instead of viewport breakpoints: with Tailwind, `@sm:grid-cols-2` instead of `sm:grid-cols-2`. The header wraps its actions under the title when the panel is narrower than 40rem.
785
+ - The body of every Drawer and Modal and the content of the SettingsModal are size containers (`k-drawer`, `k-modal`, `k-settings`), so put container queries on the content instead of viewport breakpoints: with Tailwind, `@sm:grid-cols-2` instead of `sm:grid-cols-2`. The header wraps its actions under the title when the panel is narrower than 40rem.
786
786
 
787
787
  - `size="fullscreen"` on a Modal fills the viewport edge to edge (no radius, no outer padding, safe area insets inside the panel) and never turns into a bottom sheet.
788
788
  - Overlays reset the field context: controls inside a Modal, Drawer, CommandPalette, menu, Popover or HoverCard panel do not inherit the id, description or invalid state of a `FormField` that contains the trigger. Call `provideFieldBoundary()` in your own overlay components to do the same.
@@ -140,6 +140,10 @@
140
140
  width: auto;
141
141
  }
142
142
 
143
+ .k-modal-fit > .k-modal-panel > .k-modal-body {
144
+ container-type: normal;
145
+ }
146
+
143
147
  .k-modal-header,
144
148
  .k-drawer-header {
145
149
  display: flex;
@@ -145,6 +145,7 @@
145
145
  padding: 1.375rem 1.5rem 1.5rem;
146
146
  overflow-y: auto;
147
147
  overscroll-behavior: contain;
148
+ container: k-settings / inline-size;
148
149
  border-top: 1px solid transparent;
149
150
  transition: border-color var(--k-duration-lg) var(--k-ease);
150
151
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xleddyl/443-components-vue",
3
- "version": "0.16.103",
3
+ "version": "0.16.104",
4
4
  "description": "Compact, scoped dashboard components for Vue and Nuxt",
5
5
  "license": "MIT",
6
6
  "author": "Edoardo Alberti (https://github.com/xleddyl)",