@gridui/drawer 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 +29 -6
- package/dist/drawer-panel/drawer-panel.d.ts +6 -0
- package/dist/drawer-surface/drawer-surface.d.ts +1 -1
- package/dist/index.js +9 -6
- package/dist/index.js.map +2 -2
- package/dist/shared/drawer-panel-options.d.ts +3 -0
- package/dist/styled.js +4 -0
- package/dist/styles.css +584 -3
- package/dist/styles.local.css +202 -0
- package/docs/catalog.json +7 -6
- package/docs/reference/drawer-body.md +2 -2
- package/docs/reference/drawer-close-button.md +8 -10
- package/docs/reference/drawer-close.md +2 -2
- package/docs/reference/drawer-description.md +2 -2
- package/docs/reference/drawer-footer.md +2 -2
- package/docs/reference/drawer-header.md +2 -2
- package/docs/reference/drawer-panel.md +10 -2
- package/docs/reference/drawer-surface.md +6 -2
- package/docs/reference/drawer-title.md +2 -2
- package/docs/reference/drawer-trigger.md +2 -2
- package/docs/reference/drawer.md +2 -2
- package/package.json +14 -9
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
|
|
2
|
+
@layer properties;
|
|
3
|
+
@layer theme, base, components, utilities;
|
|
4
|
+
@layer utilities {
|
|
5
|
+
.gridui-u-drawer--fixed {
|
|
6
|
+
position: fixed;
|
|
7
|
+
}
|
|
8
|
+
.gridui-u-drawer--inset-0 {
|
|
9
|
+
inset: 0px;
|
|
10
|
+
}
|
|
11
|
+
.gridui-u-drawer--inset-y-0 {
|
|
12
|
+
inset-block: 0px;
|
|
13
|
+
}
|
|
14
|
+
.gridui-u-drawer--z-\(--gridui-z-drawer\) {
|
|
15
|
+
z-index: var(--gridui-z-drawer);
|
|
16
|
+
}
|
|
17
|
+
.gridui-u-drawer--z-\(--gridui-z-drawer-backdrop\) {
|
|
18
|
+
z-index: var(--gridui-z-drawer-backdrop);
|
|
19
|
+
}
|
|
20
|
+
.gridui-u-drawer--m-0 {
|
|
21
|
+
margin: 0px;
|
|
22
|
+
}
|
|
23
|
+
.gridui-u-drawer--box-border {
|
|
24
|
+
box-sizing: border-box;
|
|
25
|
+
}
|
|
26
|
+
.gridui-u-drawer--flex {
|
|
27
|
+
display: flex;
|
|
28
|
+
}
|
|
29
|
+
.gridui-u-drawer--h-dvh {
|
|
30
|
+
height: 100dvh;
|
|
31
|
+
}
|
|
32
|
+
.gridui-u-drawer--max-h-\[50dvh\] {
|
|
33
|
+
max-height: 50dvh;
|
|
34
|
+
}
|
|
35
|
+
.gridui-u-drawer--min-h-0 {
|
|
36
|
+
min-height: 0px;
|
|
37
|
+
}
|
|
38
|
+
.gridui-u-drawer--w-\[min\(100\%\,var\(--gridui-drawer-width\,24rem\)\)\] {
|
|
39
|
+
width: min(100%, var(--gridui-drawer-width,24rem));
|
|
40
|
+
}
|
|
41
|
+
.gridui-u-drawer--max-w-full {
|
|
42
|
+
max-width: 100%;
|
|
43
|
+
}
|
|
44
|
+
.gridui-u-drawer--flex-1 {
|
|
45
|
+
flex: 1;
|
|
46
|
+
}
|
|
47
|
+
.gridui-u-drawer--shrink-0 {
|
|
48
|
+
flex-shrink: 0;
|
|
49
|
+
}
|
|
50
|
+
.gridui-u-drawer--flex-col {
|
|
51
|
+
flex-direction: column;
|
|
52
|
+
}
|
|
53
|
+
.gridui-u-drawer--items-center {
|
|
54
|
+
align-items: center;
|
|
55
|
+
}
|
|
56
|
+
.gridui-u-drawer--justify-between {
|
|
57
|
+
justify-content: space-between;
|
|
58
|
+
}
|
|
59
|
+
.gridui-u-drawer--gap-gridui-16 {
|
|
60
|
+
gap: var(--gridui-space-16);
|
|
61
|
+
}
|
|
62
|
+
.gridui-u-drawer--overflow-y-auto {
|
|
63
|
+
overflow-y: auto;
|
|
64
|
+
}
|
|
65
|
+
.gridui-u-drawer--overscroll-contain {
|
|
66
|
+
overscroll-behavior: contain;
|
|
67
|
+
}
|
|
68
|
+
.gridui-u-drawer--border {
|
|
69
|
+
border-style: var(--tw-border-style);
|
|
70
|
+
border-width: 1px;
|
|
71
|
+
}
|
|
72
|
+
.gridui-u-drawer--border-y-0 {
|
|
73
|
+
border-block-style: var(--tw-border-style);
|
|
74
|
+
border-block-width: 0px;
|
|
75
|
+
}
|
|
76
|
+
.gridui-u-drawer--border-t {
|
|
77
|
+
border-top-style: var(--tw-border-style);
|
|
78
|
+
border-top-width: 1px;
|
|
79
|
+
}
|
|
80
|
+
.gridui-u-drawer--border-b {
|
|
81
|
+
border-bottom-style: var(--tw-border-style);
|
|
82
|
+
border-bottom-width: 1px;
|
|
83
|
+
}
|
|
84
|
+
.gridui-u-drawer--border-solid {
|
|
85
|
+
--tw-border-style: solid;
|
|
86
|
+
border-style: solid;
|
|
87
|
+
}
|
|
88
|
+
.gridui-u-drawer--border-border {
|
|
89
|
+
border-color: var(--gridui-border);
|
|
90
|
+
}
|
|
91
|
+
.gridui-u-drawer--bg-background {
|
|
92
|
+
background-color: var(--gridui-background);
|
|
93
|
+
}
|
|
94
|
+
.gridui-u-drawer--p-gridui-24 {
|
|
95
|
+
padding: var(--gridui-space-24);
|
|
96
|
+
}
|
|
97
|
+
.gridui-u-drawer--pt-\[max\(var\(--gridui-space-24\)\,env\(safe-area-inset-top\)\)\] {
|
|
98
|
+
padding-top: max(var(--gridui-space-24), env(safe-area-inset-top));
|
|
99
|
+
}
|
|
100
|
+
.gridui-u-drawer--pb-\[env\(safe-area-inset-bottom\)\] {
|
|
101
|
+
padding-bottom: env(safe-area-inset-bottom);
|
|
102
|
+
}
|
|
103
|
+
.gridui-u-drawer--type-subheading {
|
|
104
|
+
font: var(--gridui-type-subheading);
|
|
105
|
+
font-family: var(--gridui-font-body);
|
|
106
|
+
letter-spacing: normal;
|
|
107
|
+
text-wrap: balance;
|
|
108
|
+
}
|
|
109
|
+
.gridui-u-drawer--type-supporting {
|
|
110
|
+
font: var(--gridui-type-supporting);
|
|
111
|
+
font-family: var(--gridui-font-body);
|
|
112
|
+
letter-spacing: normal;
|
|
113
|
+
}
|
|
114
|
+
.gridui-u-drawer--text-foreground {
|
|
115
|
+
color: var(--gridui-foreground);
|
|
116
|
+
}
|
|
117
|
+
.gridui-u-drawer--text-muted {
|
|
118
|
+
color: var(--gridui-muted);
|
|
119
|
+
}
|
|
120
|
+
.gridui-u-drawer--data-\[side\=\'end\'\]\:inset-e-0[data-side='end'] {
|
|
121
|
+
inset-inline-end: 0px;
|
|
122
|
+
}
|
|
123
|
+
.gridui-u-drawer--data-\[side\=\'end\'\]\:\[border-inline-end\:0\][data-side='end'] {
|
|
124
|
+
border-inline-end: 0;
|
|
125
|
+
}
|
|
126
|
+
.gridui-u-drawer--data-\[side\=\'left\'\]\:left-0[data-side='left'] {
|
|
127
|
+
left: 0px;
|
|
128
|
+
}
|
|
129
|
+
.gridui-u-drawer--data-\[side\=\'left\'\]\:border-l-0[data-side='left'] {
|
|
130
|
+
border-left-style: var(--tw-border-style);
|
|
131
|
+
border-left-width: 0px;
|
|
132
|
+
}
|
|
133
|
+
.gridui-u-drawer--data-\[side\=\'right\'\]\:right-0[data-side='right'] {
|
|
134
|
+
right: 0px;
|
|
135
|
+
}
|
|
136
|
+
.gridui-u-drawer--data-\[side\=\'right\'\]\:border-r-0[data-side='right'] {
|
|
137
|
+
border-right-style: var(--tw-border-style);
|
|
138
|
+
border-right-width: 0px;
|
|
139
|
+
}
|
|
140
|
+
.gridui-u-drawer--data-\[side\=\'start\'\]\:inset-s-0[data-side='start'] {
|
|
141
|
+
inset-inline-start: 0px;
|
|
142
|
+
}
|
|
143
|
+
.gridui-u-drawer--data-\[side\=\'start\'\]\:\[border-inline-start\:0\][data-side='start'] {
|
|
144
|
+
border-inline-start: 0;
|
|
145
|
+
}
|
|
146
|
+
.gridui-u-drawer--data-\[state\=\'closed\'\]\:pointer-events-none[data-state='closed'] {
|
|
147
|
+
pointer-events: none;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
@layer components {
|
|
151
|
+
.gridui-drawer-panel {
|
|
152
|
+
--gridui-drawer-offset: 100%;
|
|
153
|
+
}
|
|
154
|
+
.gridui-drawer-panel[data-side="left"], .gridui-drawer-panel[data-side="start"] {
|
|
155
|
+
--gridui-drawer-offset: -100%;
|
|
156
|
+
}
|
|
157
|
+
.gridui-drawer-panel[data-side="end"]:dir(rtl) {
|
|
158
|
+
--gridui-drawer-offset: -100%;
|
|
159
|
+
}
|
|
160
|
+
.gridui-drawer-panel[data-side="start"]:dir(rtl) {
|
|
161
|
+
--gridui-drawer-offset: 100%;
|
|
162
|
+
}
|
|
163
|
+
.gridui-drawer-panel[data-state="open"] {
|
|
164
|
+
animation: var(--gridui-motion-animation, gridui-drawer-enter calc(var(--gridui-motion-duration-deliberate) * var(--gridui-motion-factor, 1)) var(--gridui-motion-ease-out) both);
|
|
165
|
+
}
|
|
166
|
+
.gridui-drawer-panel[data-state="closed"] {
|
|
167
|
+
animation: var(--gridui-motion-animation, gridui-drawer-exit calc(var(--gridui-motion-duration-normal) * var(--gridui-motion-factor, 1)) var(--gridui-motion-ease-in) both);
|
|
168
|
+
}
|
|
169
|
+
@keyframes gridui-drawer-enter {
|
|
170
|
+
from {
|
|
171
|
+
transform: translateX(var(--gridui-drawer-offset));
|
|
172
|
+
}
|
|
173
|
+
to {
|
|
174
|
+
transform: translateX(0);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
@keyframes gridui-drawer-exit {
|
|
178
|
+
from {
|
|
179
|
+
transform: translateX(0);
|
|
180
|
+
}
|
|
181
|
+
to {
|
|
182
|
+
transform: translateX(var(--gridui-drawer-offset));
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
@media (prefers-reduced-motion: reduce) {
|
|
186
|
+
.gridui-drawer-panel[data-state] {
|
|
187
|
+
animation: none;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
@property --tw-border-style {
|
|
192
|
+
syntax: "*";
|
|
193
|
+
inherits: false;
|
|
194
|
+
initial-value: solid;
|
|
195
|
+
}
|
|
196
|
+
@layer properties {
|
|
197
|
+
@supports ((-webkit-hyphens: none) and (not (margin-trim: block))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
|
|
198
|
+
*, ::before, ::after, ::backdrop {
|
|
199
|
+
--tw-border-style: solid;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
package/docs/catalog.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"name": "@gridui/drawer",
|
|
4
|
-
"version": "
|
|
5
|
-
"category": "
|
|
4
|
+
"version": "3.0.0",
|
|
5
|
+
"category": "overlays",
|
|
6
6
|
"description": "GridUI React drawer",
|
|
7
7
|
"usage": "`DrawerPanel` portals its backdrop and surface to the document by default. Set `portal={false}` to keep an ordinary modal panel in its owner's DOM scope. `side=\"start\" | \"end\"` follows writing direction; `\"left\" | \"right\"` fixes the physical placement and entry direction, including in RTL.",
|
|
8
8
|
"documentation": [
|
|
@@ -138,10 +138,11 @@
|
|
|
138
138
|
"@gridui/overlay/styles.css",
|
|
139
139
|
"@gridui/drawer/styles.css"
|
|
140
140
|
],
|
|
141
|
+
"styledImport": "@gridui/drawer/styled",
|
|
141
142
|
"examples": [
|
|
142
|
-
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
143
|
-
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
144
|
-
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
145
|
-
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
143
|
+
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/drawer/stories/getting-started.mdx",
|
|
144
|
+
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/drawer/stories/inline-modal.mdx",
|
|
145
|
+
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/drawer/stories/side-panels.mdx",
|
|
146
|
+
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/drawer/stories/drawer.stories.tsx"
|
|
146
147
|
]
|
|
147
148
|
}
|
|
@@ -11,9 +11,9 @@ import "@gridui/theme/styles.css";
|
|
|
11
11
|
import "@gridui/drawer/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/drawer/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/drawer/stories/drawer.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/drawer/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/drawer/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/drawer/stories/drawer.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,17 +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
|
-
###
|
|
59
|
-
|
|
60
|
-
``"small" | "standard" | "large" | "extra-large" | null | undefined`` · Optional
|
|
58
|
+
### iconMotion
|
|
61
59
|
|
|
62
|
-
|
|
60
|
+
``"none" | "outward" | null | undefined`` · Optional
|
|
63
61
|
|
|
64
|
-
|
|
62
|
+
### size
|
|
65
63
|
|
|
66
|
-
|
|
64
|
+
``ActionSize | undefined`` · Optional
|
|
67
65
|
|
|
68
|
-
|
|
66
|
+
Component size preset.
|
|
69
67
|
|
|
70
68
|
### variant
|
|
71
69
|
|
|
@@ -89,7 +87,7 @@ Layout within the containing region.
|
|
|
89
87
|
|
|
90
88
|
### startIconSize
|
|
91
89
|
|
|
92
|
-
``"
|
|
90
|
+
``"medium" | "large" | "extra-large" | undefined`` · Optional
|
|
93
91
|
|
|
94
92
|
### endIcon
|
|
95
93
|
|
|
@@ -11,9 +11,9 @@ import "@gridui/theme/styles.css";
|
|
|
11
11
|
import "@gridui/drawer/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/drawer/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/drawer/stories/drawer.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/drawer/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/drawer/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/drawer/stories/drawer.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/drawer/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/drawer/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/drawer/stories/drawer.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/drawer/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/drawer/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/drawer/stories/drawer.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/drawer/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/drawer/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/drawer/stories/drawer.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,6 +117,10 @@ 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
|
+
|
|
120
124
|
### side
|
|
121
125
|
|
|
122
126
|
``"end" | "right" | "left" | "start" | undefined`` · Optional
|
|
@@ -129,3 +133,7 @@ Default: ``"end"``
|
|
|
129
133
|
|
|
130
134
|
Default: ``true``
|
|
131
135
|
|
|
136
|
+
### container
|
|
137
|
+
|
|
138
|
+
``Element | DocumentFragment | null | undefined`` · Optional
|
|
139
|
+
|
|
@@ -11,9 +11,9 @@ import "@gridui/theme/styles.css";
|
|
|
11
11
|
import "@gridui/drawer/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/drawer/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/drawer/stories/drawer.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
|
|
|
@@ -112,6 +112,10 @@ Can be prevented.
|
|
|
112
112
|
Event handler called when auto-focusing on close.
|
|
113
113
|
Can be prevented.
|
|
114
114
|
|
|
115
|
+
### width
|
|
116
|
+
|
|
117
|
+
``Property.Width<string | number> | undefined`` · Optional
|
|
118
|
+
|
|
115
119
|
### side
|
|
116
120
|
|
|
117
121
|
``"end" | "right" | "left" | "start" | undefined`` · Optional
|
|
@@ -11,9 +11,9 @@ import "@gridui/theme/styles.css";
|
|
|
11
11
|
import "@gridui/drawer/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/drawer/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/drawer/stories/drawer.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/drawer/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/drawer/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/drawer/stories/drawer.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/drawer.md
CHANGED
|
@@ -11,9 +11,9 @@ import "@gridui/theme/styles.css";
|
|
|
11
11
|
import "@gridui/drawer/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/drawer/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/drawer/stories/drawer.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/drawer",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "GridUI React drawer",
|
|
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,15 +32,15 @@
|
|
|
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
41
|
"@radix-ui/react-slot": "1.5.0",
|
|
36
42
|
"class-variance-authority": "0.7.1",
|
|
37
|
-
"lucide-react": "1.
|
|
38
|
-
"@gridui/motion": "^1.0.1"
|
|
43
|
+
"lucide-react": "1.73.0"
|
|
39
44
|
},
|
|
40
45
|
"devDependencies": {
|
|
41
46
|
"@gridui-internal/configuration": "0.0.0-internal",
|