@gridui/modal 1.1.8 → 2.0.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/README.md +2 -2
- package/dist/styles.css +5 -0
- package/docs/catalog.json +3 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -49,7 +49,7 @@ close cell. Include `ModalTitle` and optional `ModalDescription`; set
|
|
|
49
49
|
`aria-describedby={undefined}` on the panel when omitting a description.
|
|
50
50
|
Header and footer independently accept `paddingBlock`, defaulting to 24.
|
|
51
51
|
Values use the spacing scale (0, 4, 8, 16, 24, 32, 48, 64), or
|
|
52
|
-
`{ base: 16,
|
|
52
|
+
`{ base: 16, sm: 24, lg: 32 }` at the shared 40rem, 48rem, and 64rem breakpoints.
|
|
53
53
|
Spacing is internal padding, with a minimum 2.75rem action target.
|
|
54
54
|
|
|
55
55
|
`ModalFooterNote` is optional. `ModalActions` contains `ModalAction` buttons
|
|
@@ -62,7 +62,7 @@ consumers decide when an asynchronous primary action has succeeded.
|
|
|
62
62
|
<Modal>
|
|
63
63
|
<ModalTrigger asChild><Button>Display settings</Button></ModalTrigger>
|
|
64
64
|
<ModalPanel>
|
|
65
|
-
<ModalHeader closeLabel="Close" paddingBlock={{ base: 16,
|
|
65
|
+
<ModalHeader closeLabel="Close" paddingBlock={{ base: 16, sm: 24 }}>
|
|
66
66
|
<ModalTitle>Display settings</ModalTitle>
|
|
67
67
|
<ModalDescription>Adjust the current view.</ModalDescription>
|
|
68
68
|
</ModalHeader>
|
package/dist/styles.css
CHANGED
|
@@ -151,6 +151,11 @@
|
|
|
151
151
|
--gridui-modal-padding: var(--gridui-modal-space);
|
|
152
152
|
}
|
|
153
153
|
@media (min-width: 40rem) {
|
|
154
|
+
.gridui-modal-section {
|
|
155
|
+
--gridui-modal-padding: var(--gridui-modal-space-sm);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
@media (min-width: 48rem) {
|
|
154
159
|
.gridui-modal-section {
|
|
155
160
|
--gridui-modal-padding: var(--gridui-modal-space-md);
|
|
156
161
|
}
|
package/docs/catalog.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"name": "@gridui/modal",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "2.0.0",
|
|
5
5
|
"category": "core",
|
|
6
6
|
"description": "GridUI React modal",
|
|
7
7
|
"usage": "The centered modal shares Radix Dialog's focus and dismissal behavior with Drawer. Its header owns a title cell and a full-height close cell; its footer owns an optional note and edge-aligned action cells. Header and footer accept independent responsive `paddingBlock` values. The body owns content scrolling and defaults to `tabIndex={0}` so text-only content can be scrolled with the keyboard inside the focus scope. Supply a name when using a region role; native `tabIndex` overrides remain available. Small viewports stack footer actions below the note. See the composition example and API.",
|
|
@@ -165,6 +165,8 @@
|
|
|
165
165
|
"@gridui/modal/styles.css"
|
|
166
166
|
],
|
|
167
167
|
"examples": [
|
|
168
|
+
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/modal/stories/composition.mdx",
|
|
169
|
+
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/modal/stories/forms-retention.mdx",
|
|
168
170
|
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/modal/stories/modal.stories.tsx"
|
|
169
171
|
]
|
|
170
172
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gridui/modal",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "GridUI React modal",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
"react-dom": "^19.2.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@gridui/button": "^4.
|
|
30
|
+
"@gridui/button": "^4.1.0",
|
|
31
31
|
"@gridui/overlay": "^2.0.0",
|
|
32
|
-
"@gridui/style-utils": "^
|
|
32
|
+
"@gridui/style-utils": "^4.0.0",
|
|
33
33
|
"@gridui/theme": "^2.5.3",
|
|
34
34
|
"@radix-ui/react-dialog": "1.3.1",
|
|
35
35
|
"lucide-react": "1.70.0"
|