@gridui/modal 2.1.0 → 3.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 +28 -5
- package/dist/index.js +6 -3
- package/dist/index.js.map +2 -2
- package/dist/modal-actions/modal-actions.d.ts +4 -1
- package/dist/modal-panel/modal-panel.d.ts +11 -1
- package/dist/styled.js +4 -0
- package/dist/styles.css +584 -3
- package/dist/styles.local.css +226 -0
- package/docs/catalog.json +7 -6
- package/docs/reference/modal-action.md +8 -8
- package/docs/reference/modal-actions.md +8 -2
- package/docs/reference/modal-body.md +2 -2
- package/docs/reference/modal-close.md +2 -2
- package/docs/reference/modal-description.md +2 -2
- package/docs/reference/modal-footer-note.md +1 -1
- package/docs/reference/modal-footer.md +2 -2
- package/docs/reference/modal-header.md +2 -2
- package/docs/reference/modal-panel.md +10 -2
- package/docs/reference/modal-title.md +2 -2
- package/docs/reference/modal-trigger.md +2 -2
- package/docs/reference/modal.md +2 -2
- package/package.json +14 -9
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
|
|
2
|
+
@layer properties;
|
|
3
|
+
@layer theme, base, components, utilities;
|
|
4
|
+
@layer theme {
|
|
5
|
+
:root, :host {
|
|
6
|
+
--spacing: 0.25rem;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
@layer utilities {
|
|
10
|
+
.gridui-u-modal--fixed {
|
|
11
|
+
position: fixed;
|
|
12
|
+
}
|
|
13
|
+
.gridui-u-modal--relative {
|
|
14
|
+
position: relative;
|
|
15
|
+
}
|
|
16
|
+
.gridui-u-modal--inset-0 {
|
|
17
|
+
inset: 0px;
|
|
18
|
+
}
|
|
19
|
+
.gridui-u-modal--top-1\/2 {
|
|
20
|
+
top: calc(1 / 2 * 100%);
|
|
21
|
+
}
|
|
22
|
+
.gridui-u-modal--left-1\/2 {
|
|
23
|
+
left: calc(1 / 2 * 100%);
|
|
24
|
+
}
|
|
25
|
+
.gridui-u-modal--z-\(--gridui-z-content\) {
|
|
26
|
+
z-index: var(--gridui-z-content);
|
|
27
|
+
}
|
|
28
|
+
.gridui-u-modal--z-\(--gridui-z-dialog\) {
|
|
29
|
+
z-index: var(--gridui-z-dialog);
|
|
30
|
+
}
|
|
31
|
+
.gridui-u-modal--z-\(--gridui-z-dialog-backdrop\) {
|
|
32
|
+
z-index: var(--gridui-z-dialog-backdrop);
|
|
33
|
+
}
|
|
34
|
+
.gridui-u-modal--m-0 {
|
|
35
|
+
margin: 0px;
|
|
36
|
+
}
|
|
37
|
+
.gridui-u-modal--mt-gridui-8 {
|
|
38
|
+
margin-top: var(--gridui-space-8);
|
|
39
|
+
}
|
|
40
|
+
.gridui-u-modal--mb-0 {
|
|
41
|
+
margin-bottom: 0px;
|
|
42
|
+
}
|
|
43
|
+
.gridui-u-modal--flex {
|
|
44
|
+
display: flex;
|
|
45
|
+
}
|
|
46
|
+
.gridui-u-modal--grid {
|
|
47
|
+
display: grid;
|
|
48
|
+
}
|
|
49
|
+
.gridui-u-modal--max-h-\[40dvh\] {
|
|
50
|
+
max-height: 40dvh;
|
|
51
|
+
}
|
|
52
|
+
.gridui-u-modal--max-h-\[calc\(100dvh-32px\)\] {
|
|
53
|
+
max-height: calc(100dvh - 32px);
|
|
54
|
+
}
|
|
55
|
+
.gridui-u-modal--min-h-0 {
|
|
56
|
+
min-height: 0px;
|
|
57
|
+
}
|
|
58
|
+
.gridui-u-modal--min-h-11 {
|
|
59
|
+
min-height: calc(var(--spacing) * 11);
|
|
60
|
+
}
|
|
61
|
+
.gridui-u-modal--w-\[min\(calc\(100\%-32px\)\,var\(--gridui-modal-width\,37rem\)\)\] {
|
|
62
|
+
width: min(calc(100% - 32px), var(--gridui-modal-width,37rem));
|
|
63
|
+
}
|
|
64
|
+
.gridui-u-modal--w-gridui-64 {
|
|
65
|
+
width: var(--gridui-space-64);
|
|
66
|
+
}
|
|
67
|
+
.gridui-u-modal--min-w-0 {
|
|
68
|
+
min-width: 0px;
|
|
69
|
+
}
|
|
70
|
+
.gridui-u-modal--shrink-0 {
|
|
71
|
+
flex-shrink: 0;
|
|
72
|
+
}
|
|
73
|
+
.gridui-u-modal---translate-x-1\/2 {
|
|
74
|
+
--tw-translate-x: calc(calc(1 / 2 * 100%) * -1);
|
|
75
|
+
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
76
|
+
}
|
|
77
|
+
.gridui-u-modal---translate-y-1\/2 {
|
|
78
|
+
--tw-translate-y: calc(calc(1 / 2 * 100%) * -1);
|
|
79
|
+
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
80
|
+
}
|
|
81
|
+
.gridui-u-modal--grid-cols-\[minmax\(0\,1fr\)_auto\] {
|
|
82
|
+
grid-template-columns: minmax(0,1fr) auto;
|
|
83
|
+
}
|
|
84
|
+
.gridui-u-modal--flex-col {
|
|
85
|
+
flex-direction: column;
|
|
86
|
+
}
|
|
87
|
+
.gridui-u-modal--self-stretch {
|
|
88
|
+
align-self: stretch;
|
|
89
|
+
}
|
|
90
|
+
.gridui-u-modal--overflow-auto {
|
|
91
|
+
overflow: auto;
|
|
92
|
+
}
|
|
93
|
+
.gridui-u-modal--overflow-visible {
|
|
94
|
+
overflow: visible;
|
|
95
|
+
}
|
|
96
|
+
.gridui-u-modal--overflow-y-auto {
|
|
97
|
+
overflow-y: auto;
|
|
98
|
+
}
|
|
99
|
+
.gridui-u-modal--overscroll-contain {
|
|
100
|
+
overscroll-behavior: contain;
|
|
101
|
+
}
|
|
102
|
+
.gridui-u-modal--rounded-none {
|
|
103
|
+
border-radius: 0;
|
|
104
|
+
}
|
|
105
|
+
.gridui-u-modal--border-border {
|
|
106
|
+
border-color: var(--gridui-border);
|
|
107
|
+
}
|
|
108
|
+
.gridui-u-modal--p-0 {
|
|
109
|
+
padding: 0px;
|
|
110
|
+
}
|
|
111
|
+
.gridui-u-modal--p-gridui-24 {
|
|
112
|
+
padding: var(--gridui-space-24);
|
|
113
|
+
}
|
|
114
|
+
.gridui-u-modal--px-gridui-24 {
|
|
115
|
+
padding-inline: var(--gridui-space-24);
|
|
116
|
+
}
|
|
117
|
+
.gridui-u-modal--py-\(--gridui-modal-padding\) {
|
|
118
|
+
padding-block: var(--gridui-modal-padding);
|
|
119
|
+
}
|
|
120
|
+
.gridui-u-modal--type-heading {
|
|
121
|
+
font: var(--gridui-type-heading);
|
|
122
|
+
font-family: var(--gridui-font-body);
|
|
123
|
+
letter-spacing: normal;
|
|
124
|
+
text-wrap: balance;
|
|
125
|
+
}
|
|
126
|
+
.gridui-u-modal--type-body {
|
|
127
|
+
font: var(--gridui-type-body);
|
|
128
|
+
font-family: var(--gridui-font-body);
|
|
129
|
+
letter-spacing: normal;
|
|
130
|
+
}
|
|
131
|
+
.gridui-u-modal--type-supporting {
|
|
132
|
+
font: var(--gridui-type-supporting);
|
|
133
|
+
font-family: var(--gridui-font-body);
|
|
134
|
+
letter-spacing: normal;
|
|
135
|
+
}
|
|
136
|
+
.gridui-u-modal--wrap-anywhere {
|
|
137
|
+
overflow-wrap: anywhere;
|
|
138
|
+
}
|
|
139
|
+
.gridui-u-modal--text-muted {
|
|
140
|
+
color: var(--gridui-muted);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
@layer components {
|
|
144
|
+
.gridui-modal-section {
|
|
145
|
+
--gridui-modal-padding: var(--gridui-modal-space);
|
|
146
|
+
}
|
|
147
|
+
@media (min-width: 40rem) {
|
|
148
|
+
.gridui-modal-section {
|
|
149
|
+
--gridui-modal-padding: var(--gridui-modal-space-sm);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
@media (min-width: 48rem) {
|
|
153
|
+
.gridui-modal-section {
|
|
154
|
+
--gridui-modal-padding: var(--gridui-modal-space-md);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
@media (min-width: 64rem) {
|
|
158
|
+
.gridui-modal-section {
|
|
159
|
+
--gridui-modal-padding: var(--gridui-modal-space-lg);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
.gridui-modal-header {
|
|
163
|
+
border-block-end: 1px solid var(--gridui-border);
|
|
164
|
+
}
|
|
165
|
+
.gridui-button.gridui-modal-close {
|
|
166
|
+
border-width: 0;
|
|
167
|
+
border-inline-start-width: 1px;
|
|
168
|
+
}
|
|
169
|
+
.gridui-modal-actions.gridui-button-group {
|
|
170
|
+
--gridui-button-group-padding-block: var(--gridui-modal-padding);
|
|
171
|
+
flex: 1 1 16rem;
|
|
172
|
+
}
|
|
173
|
+
@media (min-width: 40rem) {
|
|
174
|
+
.gridui-modal-actions {
|
|
175
|
+
margin-inline-start: auto;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
.gridui-modal-footer {
|
|
179
|
+
display: flex;
|
|
180
|
+
flex-wrap: wrap;
|
|
181
|
+
align-items: stretch;
|
|
182
|
+
border-block-start: 1px solid var(--gridui-border);
|
|
183
|
+
}
|
|
184
|
+
.gridui-modal-footer > :not(.gridui-modal-actions) {
|
|
185
|
+
flex: 1 1 12rem;
|
|
186
|
+
align-self: center;
|
|
187
|
+
}
|
|
188
|
+
@media (min-width: 40rem) {
|
|
189
|
+
.gridui-modal-footer {
|
|
190
|
+
flex-wrap: nowrap;
|
|
191
|
+
}
|
|
192
|
+
.gridui-modal-footer > :not(.gridui-modal-actions) + .gridui-modal-actions {
|
|
193
|
+
border-inline-start: 1px solid var(--gridui-border);
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
@media (max-width: 39.999rem) {
|
|
197
|
+
.gridui-modal-footer > :not(.gridui-modal-actions) + .gridui-modal-actions {
|
|
198
|
+
flex-basis: 100%;
|
|
199
|
+
border-block-start: 1px solid var(--gridui-border);
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
@property --tw-translate-x {
|
|
204
|
+
syntax: "*";
|
|
205
|
+
inherits: false;
|
|
206
|
+
initial-value: 0;
|
|
207
|
+
}
|
|
208
|
+
@property --tw-translate-y {
|
|
209
|
+
syntax: "*";
|
|
210
|
+
inherits: false;
|
|
211
|
+
initial-value: 0;
|
|
212
|
+
}
|
|
213
|
+
@property --tw-translate-z {
|
|
214
|
+
syntax: "*";
|
|
215
|
+
inherits: false;
|
|
216
|
+
initial-value: 0;
|
|
217
|
+
}
|
|
218
|
+
@layer properties {
|
|
219
|
+
@supports ((-webkit-hyphens: none) and (not (margin-trim: block))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
|
|
220
|
+
*, ::before, ::after, ::backdrop {
|
|
221
|
+
--tw-translate-x: 0;
|
|
222
|
+
--tw-translate-y: 0;
|
|
223
|
+
--tw-translate-z: 0;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
}
|
package/docs/catalog.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"name": "@gridui/modal",
|
|
4
|
-
"version": "
|
|
5
|
-
"category": "
|
|
4
|
+
"version": "3.0.0",
|
|
5
|
+
"category": "overlays",
|
|
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.",
|
|
8
8
|
"documentation": [
|
|
@@ -164,10 +164,11 @@
|
|
|
164
164
|
"@gridui/overlay/styles.css",
|
|
165
165
|
"@gridui/modal/styles.css"
|
|
166
166
|
],
|
|
167
|
+
"styledImport": "@gridui/modal/styled",
|
|
167
168
|
"examples": [
|
|
168
|
-
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
169
|
-
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
170
|
-
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
171
|
-
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
169
|
+
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/modal/stories/composition.mdx",
|
|
170
|
+
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/modal/stories/forms-retention.mdx",
|
|
171
|
+
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/modal/stories/getting-started.mdx",
|
|
172
|
+
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/modal/stories/modal.stories.tsx"
|
|
172
173
|
]
|
|
173
174
|
}
|
|
@@ -11,9 +11,9 @@ import "@gridui/theme/styles.css";
|
|
|
11
11
|
import "@gridui/modal/styles.css";
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
14
|
+
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/modal/README.md) for shared behavior and stylesheet dependencies.
|
|
15
15
|
|
|
16
|
-
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
16
|
+
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/modal/stories/modal.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
|
|
17
17
|
|
|
18
18
|
## API
|
|
19
19
|
|
|
@@ -55,15 +55,15 @@ Called when the corresponding interaction occurs; inspect the arguments in Actio
|
|
|
55
55
|
|
|
56
56
|
Called when the corresponding interaction occurs; inspect the arguments in Actions.
|
|
57
57
|
|
|
58
|
-
###
|
|
58
|
+
### iconMotion
|
|
59
59
|
|
|
60
|
-
``"
|
|
60
|
+
``"none" | "outward" | null | undefined`` · Optional
|
|
61
61
|
|
|
62
|
-
|
|
62
|
+
### size
|
|
63
63
|
|
|
64
|
-
|
|
64
|
+
``ActionSize | undefined`` · Optional
|
|
65
65
|
|
|
66
|
-
|
|
66
|
+
Component size preset.
|
|
67
67
|
|
|
68
68
|
### variant
|
|
69
69
|
|
|
@@ -87,7 +87,7 @@ Layout within the containing region.
|
|
|
87
87
|
|
|
88
88
|
### startIconSize
|
|
89
89
|
|
|
90
|
-
``"
|
|
90
|
+
``"medium" | "large" | "extra-large" | undefined`` · Optional
|
|
91
91
|
|
|
92
92
|
### endIcon
|
|
93
93
|
|
|
@@ -11,9 +11,9 @@ import "@gridui/theme/styles.css";
|
|
|
11
11
|
import "@gridui/modal/styles.css";
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
14
|
+
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/modal/README.md) for shared behavior and stylesheet dependencies.
|
|
15
15
|
|
|
16
|
-
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
16
|
+
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/modal/stories/modal.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
|
|
17
17
|
|
|
18
18
|
## API
|
|
19
19
|
|
|
@@ -55,3 +55,9 @@ Called when the corresponding interaction occurs; inspect the arguments in Actio
|
|
|
55
55
|
|
|
56
56
|
Called when the corresponding interaction occurs; inspect the arguments in Actions.
|
|
57
57
|
|
|
58
|
+
### size
|
|
59
|
+
|
|
60
|
+
``ActionSize | undefined`` · Optional
|
|
61
|
+
|
|
62
|
+
Component size preset.
|
|
63
|
+
|
|
@@ -11,9 +11,9 @@ import "@gridui/theme/styles.css";
|
|
|
11
11
|
import "@gridui/modal/styles.css";
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
14
|
+
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/modal/README.md) for shared behavior and stylesheet dependencies.
|
|
15
15
|
|
|
16
|
-
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
16
|
+
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/modal/stories/modal.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
|
|
17
17
|
|
|
18
18
|
## API
|
|
19
19
|
|
|
@@ -11,9 +11,9 @@ import "@gridui/theme/styles.css";
|
|
|
11
11
|
import "@gridui/modal/styles.css";
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
14
|
+
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/modal/README.md) for shared behavior and stylesheet dependencies.
|
|
15
15
|
|
|
16
|
-
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
16
|
+
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/modal/stories/modal.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
|
|
17
17
|
|
|
18
18
|
## API
|
|
19
19
|
|
|
@@ -11,9 +11,9 @@ import "@gridui/theme/styles.css";
|
|
|
11
11
|
import "@gridui/modal/styles.css";
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
14
|
+
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/modal/README.md) for shared behavior and stylesheet dependencies.
|
|
15
15
|
|
|
16
|
-
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
16
|
+
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/modal/stories/modal.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
|
|
17
17
|
|
|
18
18
|
## API
|
|
19
19
|
|
|
@@ -11,7 +11,7 @@ import "@gridui/theme/styles.css";
|
|
|
11
11
|
import "@gridui/modal/styles.css";
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
14
|
+
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/modal/README.md) for shared behavior and stylesheet dependencies.
|
|
15
15
|
|
|
16
16
|
## API
|
|
17
17
|
|
|
@@ -11,9 +11,9 @@ import "@gridui/theme/styles.css";
|
|
|
11
11
|
import "@gridui/modal/styles.css";
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
14
|
+
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/modal/README.md) for shared behavior and stylesheet dependencies.
|
|
15
15
|
|
|
16
|
-
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
16
|
+
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/modal/stories/modal.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
|
|
17
17
|
|
|
18
18
|
## API
|
|
19
19
|
|
|
@@ -11,9 +11,9 @@ import "@gridui/theme/styles.css";
|
|
|
11
11
|
import "@gridui/modal/styles.css";
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
14
|
+
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/modal/README.md) for shared behavior and stylesheet dependencies.
|
|
15
15
|
|
|
16
|
-
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
16
|
+
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/modal/stories/modal.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
|
|
17
17
|
|
|
18
18
|
## API
|
|
19
19
|
|
|
@@ -11,9 +11,9 @@ import "@gridui/theme/styles.css";
|
|
|
11
11
|
import "@gridui/modal/styles.css";
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
14
|
+
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/modal/README.md) for shared behavior and stylesheet dependencies.
|
|
15
15
|
|
|
16
|
-
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
16
|
+
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/modal/stories/modal.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
|
|
17
17
|
|
|
18
18
|
## API
|
|
19
19
|
|
|
@@ -117,3 +117,11 @@ Can be prevented.
|
|
|
117
117
|
Event handler called when auto-focusing on close.
|
|
118
118
|
Can be prevented.
|
|
119
119
|
|
|
120
|
+
### width
|
|
121
|
+
|
|
122
|
+
``Property.Width<string | number> | undefined`` · Optional
|
|
123
|
+
|
|
124
|
+
### container
|
|
125
|
+
|
|
126
|
+
``Element | DocumentFragment | null | undefined`` · Optional
|
|
127
|
+
|
|
@@ -11,9 +11,9 @@ import "@gridui/theme/styles.css";
|
|
|
11
11
|
import "@gridui/modal/styles.css";
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
14
|
+
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/modal/README.md) for shared behavior and stylesheet dependencies.
|
|
15
15
|
|
|
16
|
-
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
16
|
+
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/modal/stories/modal.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
|
|
17
17
|
|
|
18
18
|
## API
|
|
19
19
|
|
|
@@ -11,9 +11,9 @@ import "@gridui/theme/styles.css";
|
|
|
11
11
|
import "@gridui/modal/styles.css";
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
14
|
+
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/modal/README.md) for shared behavior and stylesheet dependencies.
|
|
15
15
|
|
|
16
|
-
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
16
|
+
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/modal/stories/modal.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
|
|
17
17
|
|
|
18
18
|
## API
|
|
19
19
|
|
package/docs/reference/modal.md
CHANGED
|
@@ -11,9 +11,9 @@ import "@gridui/theme/styles.css";
|
|
|
11
11
|
import "@gridui/modal/styles.css";
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
14
|
+
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/modal/README.md) for shared behavior and stylesheet dependencies.
|
|
15
15
|
|
|
16
|
-
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
16
|
+
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/modal/stories/modal.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
|
|
17
17
|
|
|
18
18
|
## API
|
|
19
19
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gridui/modal",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "GridUI React modal",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -10,14 +10,19 @@
|
|
|
10
10
|
"docs"
|
|
11
11
|
],
|
|
12
12
|
"sideEffects": [
|
|
13
|
-
"**/*.css"
|
|
13
|
+
"**/*.css",
|
|
14
|
+
"./dist/styled.js"
|
|
14
15
|
],
|
|
15
16
|
"exports": {
|
|
16
17
|
".": {
|
|
17
18
|
"types": "./dist/index.d.ts",
|
|
18
19
|
"import": "./dist/index.js"
|
|
19
20
|
},
|
|
20
|
-
"./styles.css": "./dist/styles.css"
|
|
21
|
+
"./styles.css": "./dist/styles.css",
|
|
22
|
+
"./styled": {
|
|
23
|
+
"types": "./dist/index.d.ts",
|
|
24
|
+
"import": "./dist/styled.js"
|
|
25
|
+
}
|
|
21
26
|
},
|
|
22
27
|
"publishConfig": {
|
|
23
28
|
"access": "public"
|
|
@@ -27,13 +32,13 @@
|
|
|
27
32
|
"react-dom": "^19.2.0"
|
|
28
33
|
},
|
|
29
34
|
"dependencies": {
|
|
30
|
-
"@gridui/button": "^
|
|
31
|
-
"@gridui/
|
|
32
|
-
"@gridui/
|
|
33
|
-
"@gridui/
|
|
35
|
+
"@gridui/button": "^6.0.0",
|
|
36
|
+
"@gridui/motion": "^1.0.3",
|
|
37
|
+
"@gridui/overlay": "^2.5.0",
|
|
38
|
+
"@gridui/style-utils": "^4.1.0",
|
|
39
|
+
"@gridui/theme": "^5.0.0",
|
|
34
40
|
"@radix-ui/react-dialog": "1.3.1",
|
|
35
|
-
"lucide-react": "1.
|
|
36
|
-
"@gridui/motion": "^1.0.1"
|
|
41
|
+
"lucide-react": "1.73.0"
|
|
37
42
|
},
|
|
38
43
|
"devDependencies": {
|
|
39
44
|
"@gridui-internal/configuration": "0.0.0-internal",
|