@gridui/resizable 1.0.5 → 1.1.1
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 +10 -0
- package/dist/styled.js +3 -0
- package/dist/styles.css +197 -0
- package/dist/styles.local.css +48 -0
- package/docs/catalog.json +2 -1
- package/package.json +13 -8
package/README.md
CHANGED
|
@@ -26,6 +26,16 @@ Use `size`/`onSizeChange` for controlled state, or `defaultSize` for local state
|
|
|
26
26
|
|
|
27
27
|
The separator has a required `label`, a range, and relationships to both regions. Use the orientation's arrow keys to resize, Shift+Arrow for ten steps, or Home/End for the bounds. Horizontal arrows and drag movement respect inherited RTL; vertical movement does not reverse. Pointer capture continues the drag outside the handle. Escape, pointer cancellation, window blur, or an orientation change requests restoration of the pre-drag size. During a drag, Escape is consumed before an enclosing dialog can dismiss; the next Escape retains the dialog's normal behavior. Touch handles use a larger target. The separator does not submit or reset form state.
|
|
28
28
|
|
|
29
|
+
## Styles
|
|
30
|
+
|
|
31
|
+
Load Theme once. Use `@gridui/resizable/styled` for automatic component CSS in
|
|
32
|
+
CSS-aware bundlers, or keep the CSS-free root import and load `@gridui/resizable/styles.css`.
|
|
33
|
+
Both entries expose the same root API. The standalone stylesheet includes component
|
|
34
|
+
dependency styles; Theme/reset remain separate. See the
|
|
35
|
+
[integration guide](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/docs/usage/integration.md)
|
|
36
|
+
for static HTML loading, SSR limits, and avoiding duplicate CSS.
|
|
37
|
+
|
|
38
|
+
|
|
29
39
|
See [release history](https://github.com/sudo-ui/GridUI-React-Monorepo/tree/main/packages-layout/resizable/.changeset/history).
|
|
30
40
|
|
|
31
41
|
[Component reference](docs/reference/README.md) contains focused API pages for each public component.
|
package/dist/styled.js
ADDED
package/dist/styles.css
CHANGED
|
@@ -1,3 +1,200 @@
|
|
|
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-overlay--z-\(--gridui-z-popover\) {
|
|
6
|
+
z-index: var(--gridui-z-popover);
|
|
7
|
+
}
|
|
8
|
+
.gridui-u-overlay--flex {
|
|
9
|
+
display: flex;
|
|
10
|
+
}
|
|
11
|
+
.gridui-u-overlay--inline-flex {
|
|
12
|
+
display: inline-flex;
|
|
13
|
+
}
|
|
14
|
+
.gridui-u-overlay--size-gridui-16 {
|
|
15
|
+
width: var(--gridui-space-16);
|
|
16
|
+
height: var(--gridui-space-16);
|
|
17
|
+
}
|
|
18
|
+
.gridui-u-overlay--min-w-0 {
|
|
19
|
+
min-width: 0px;
|
|
20
|
+
}
|
|
21
|
+
.gridui-u-overlay--shrink-0 {
|
|
22
|
+
flex-shrink: 0;
|
|
23
|
+
}
|
|
24
|
+
.gridui-u-overlay--cursor-pointer {
|
|
25
|
+
cursor: pointer;
|
|
26
|
+
}
|
|
27
|
+
.gridui-u-overlay--items-center {
|
|
28
|
+
align-items: center;
|
|
29
|
+
}
|
|
30
|
+
.gridui-u-overlay--justify-center {
|
|
31
|
+
justify-content: center;
|
|
32
|
+
}
|
|
33
|
+
.gridui-u-overlay--gap-gridui-8 {
|
|
34
|
+
gap: var(--gridui-space-8);
|
|
35
|
+
}
|
|
36
|
+
.gridui-u-overlay--rounded-control {
|
|
37
|
+
border-radius: var(--gridui-control-radius);
|
|
38
|
+
}
|
|
39
|
+
.gridui-u-overlay--border {
|
|
40
|
+
border-style: var(--tw-border-style);
|
|
41
|
+
border-width: 1px;
|
|
42
|
+
}
|
|
43
|
+
.gridui-u-overlay--border-solid {
|
|
44
|
+
--tw-border-style: solid;
|
|
45
|
+
border-style: solid;
|
|
46
|
+
}
|
|
47
|
+
.gridui-u-overlay--border-border {
|
|
48
|
+
border-color: var(--gridui-border);
|
|
49
|
+
}
|
|
50
|
+
.gridui-u-overlay--bg-background {
|
|
51
|
+
background-color: var(--gridui-background);
|
|
52
|
+
}
|
|
53
|
+
.gridui-u-overlay--p-0 {
|
|
54
|
+
padding: 0px;
|
|
55
|
+
}
|
|
56
|
+
.gridui-u-overlay--px-gridui-8 {
|
|
57
|
+
padding-inline: var(--gridui-space-8);
|
|
58
|
+
}
|
|
59
|
+
.gridui-u-overlay--type-data {
|
|
60
|
+
font: var(--gridui-type-data);
|
|
61
|
+
font-family: var(--gridui-font-body);
|
|
62
|
+
letter-spacing: normal;
|
|
63
|
+
font-variant-numeric: tabular-nums;
|
|
64
|
+
}
|
|
65
|
+
.gridui-u-overlay--type-caption {
|
|
66
|
+
font: var(--gridui-type-caption);
|
|
67
|
+
font-family: var(--gridui-font-body);
|
|
68
|
+
letter-spacing: normal;
|
|
69
|
+
}
|
|
70
|
+
.gridui-u-overlay--wrap-anywhere {
|
|
71
|
+
overflow-wrap: anywhere;
|
|
72
|
+
}
|
|
73
|
+
.gridui-u-overlay--whitespace-normal {
|
|
74
|
+
white-space: normal;
|
|
75
|
+
}
|
|
76
|
+
.gridui-u-overlay--text-foreground {
|
|
77
|
+
color: var(--gridui-foreground);
|
|
78
|
+
}
|
|
79
|
+
.gridui-u-overlay--text-inherit {
|
|
80
|
+
color: inherit;
|
|
81
|
+
}
|
|
82
|
+
.gridui-u-overlay--text-muted {
|
|
83
|
+
color: var(--gridui-muted);
|
|
84
|
+
}
|
|
85
|
+
.gridui-u-overlay--no-underline {
|
|
86
|
+
text-decoration-line: none;
|
|
87
|
+
}
|
|
88
|
+
.gridui-u-overlay--aria-selected\:bg-selection-background[aria-selected="true"] {
|
|
89
|
+
background-color: var(--gridui-selection-background);
|
|
90
|
+
}
|
|
91
|
+
.gridui-u-overlay--aria-\[current\=page\]\:bg-selection-background[aria-current="page"] {
|
|
92
|
+
background-color: var(--gridui-selection-background);
|
|
93
|
+
}
|
|
94
|
+
.gridui-u-overlay--data-disabled\:pointer-events-none[data-disabled] {
|
|
95
|
+
pointer-events: none;
|
|
96
|
+
}
|
|
97
|
+
.gridui-u-overlay--data-disabled\:opacity-50[data-disabled] {
|
|
98
|
+
opacity: 50%;
|
|
99
|
+
}
|
|
100
|
+
.gridui-u-overlay--data-\[state\=checked\]\:bg-selection-background[data-state="checked"] {
|
|
101
|
+
background-color: var(--gridui-selection-background);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
@layer components {
|
|
105
|
+
.gridui-overlay-surface {
|
|
106
|
+
--gridui-surface-offset-x: 0px;
|
|
107
|
+
--gridui-surface-offset-y: 0px;
|
|
108
|
+
--gridui-overlay-enter-duration: var(--gridui-motion-duration-normal);
|
|
109
|
+
--gridui-overlay-fill-mode: both;
|
|
110
|
+
transform-origin: var(--gridui-overlay-origin, center);
|
|
111
|
+
}
|
|
112
|
+
.gridui-overlay-dialog {
|
|
113
|
+
--gridui-overlay-fill-mode: none;
|
|
114
|
+
transform-origin: center;
|
|
115
|
+
}
|
|
116
|
+
.gridui-overlay-tooltip {
|
|
117
|
+
--gridui-overlay-enter-duration: var(--gridui-motion-duration-quick);
|
|
118
|
+
}
|
|
119
|
+
.gridui-overlay-floating[data-side="bottom"] {
|
|
120
|
+
--gridui-surface-offset-y: calc(-1 * var(--gridui-motion-distance));
|
|
121
|
+
}
|
|
122
|
+
.gridui-overlay-floating[data-side="top"] {
|
|
123
|
+
--gridui-surface-offset-y: var(--gridui-motion-distance);
|
|
124
|
+
}
|
|
125
|
+
.gridui-overlay-floating[data-side="left"] {
|
|
126
|
+
--gridui-surface-offset-x: var(--gridui-motion-distance);
|
|
127
|
+
}
|
|
128
|
+
.gridui-overlay-floating[data-side="right"] {
|
|
129
|
+
--gridui-surface-offset-x: calc(-1 * var(--gridui-motion-distance));
|
|
130
|
+
}
|
|
131
|
+
.gridui-overlay-surface[data-state="closed"] {
|
|
132
|
+
pointer-events: none;
|
|
133
|
+
}
|
|
134
|
+
.gridui-overlay-surface:not([data-side="none"]):is([data-state="open"], [data-state="delayed-open"], [data-state="instant-open"]) {
|
|
135
|
+
animation: var(--gridui-motion-animation, gridui-surface-enter calc(var(--gridui-overlay-enter-duration) * var(--gridui-motion-factor, 1)) var(--gridui-motion-ease-out) var(--gridui-overlay-fill-mode));
|
|
136
|
+
}
|
|
137
|
+
.gridui-overlay-surface:not([data-side="none"])[data-state="closed"] {
|
|
138
|
+
animation: var(--gridui-motion-animation, gridui-surface-exit calc(var(--gridui-motion-duration-quick) * var(--gridui-motion-factor, 1)) var(--gridui-motion-ease-in) var(--gridui-overlay-fill-mode));
|
|
139
|
+
}
|
|
140
|
+
.gridui-overlay-backdrop {
|
|
141
|
+
background: var(--gridui-backdrop);
|
|
142
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
143
|
+
background: color-mix(in srgb, var(--gridui-backdrop) var(--gridui-backdrop-opacity), transparent);
|
|
144
|
+
}
|
|
145
|
+
--gridui-overlay-enter-duration: var(--gridui-motion-duration-normal);
|
|
146
|
+
--gridui-overlay-exit-duration: var(--gridui-motion-duration-quick);
|
|
147
|
+
--gridui-overlay-fill-mode: none;
|
|
148
|
+
}
|
|
149
|
+
.gridui-overlay-backdrop-deliberate {
|
|
150
|
+
--gridui-overlay-enter-duration: var(--gridui-motion-duration-deliberate);
|
|
151
|
+
--gridui-overlay-exit-duration: var(--gridui-motion-duration-normal);
|
|
152
|
+
--gridui-overlay-fill-mode: both;
|
|
153
|
+
}
|
|
154
|
+
.gridui-overlay-backdrop[data-state="open"] {
|
|
155
|
+
animation: var(--gridui-motion-animation, gridui-fade-enter calc(var(--gridui-overlay-enter-duration) * var(--gridui-motion-factor, 1)) var(--gridui-motion-ease-out) var(--gridui-overlay-fill-mode));
|
|
156
|
+
}
|
|
157
|
+
.gridui-overlay-backdrop[data-state="closed"] {
|
|
158
|
+
animation: var(--gridui-motion-animation, gridui-fade-exit calc(var(--gridui-overlay-exit-duration) * var(--gridui-motion-factor, 1)) var(--gridui-motion-ease-in) var(--gridui-overlay-fill-mode));
|
|
159
|
+
}
|
|
160
|
+
@media (prefers-reduced-motion: reduce) {
|
|
161
|
+
.gridui-overlay-surface:not([data-side="none"])[data-state], .gridui-overlay-backdrop[data-state] {
|
|
162
|
+
animation: none;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
.gridui-overlay-list {
|
|
166
|
+
--gridui-overlay-row-min: var(--gridui-control-min-height-medium);
|
|
167
|
+
--gridui-overlay-row-padding: var(--gridui-space-8);
|
|
168
|
+
}
|
|
169
|
+
.gridui-overlay-density-compact {
|
|
170
|
+
--gridui-overlay-row-min: var(--gridui-control-min-height-small);
|
|
171
|
+
--gridui-overlay-row-padding: var(--gridui-space-4);
|
|
172
|
+
}
|
|
173
|
+
.gridui-overlay-density-comfortable {
|
|
174
|
+
--gridui-overlay-row-min: var(--gridui-control-min-height-medium);
|
|
175
|
+
--gridui-overlay-row-padding: var(--gridui-space-8);
|
|
176
|
+
}
|
|
177
|
+
.gridui-overlay-list-item {
|
|
178
|
+
min-block-size: max(var(--gridui-overlay-row-min, var(--gridui-control-min-height-medium)), var(--gridui-target-min-size));
|
|
179
|
+
padding-block: var(--gridui-overlay-row-padding, var(--gridui-space-8));
|
|
180
|
+
}
|
|
181
|
+
.gridui-overlay-list-label {
|
|
182
|
+
padding-block: var(--gridui-overlay-row-padding, var(--gridui-space-8));
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
@property --tw-border-style {
|
|
186
|
+
syntax: "*";
|
|
187
|
+
inherits: false;
|
|
188
|
+
initial-value: solid;
|
|
189
|
+
}
|
|
190
|
+
@layer properties {
|
|
191
|
+
@supports ((-webkit-hyphens: none) and (not (margin-trim: block))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
|
|
192
|
+
*, ::before, ::after, ::backdrop {
|
|
193
|
+
--tw-border-style: solid;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
1
198
|
/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
|
|
2
199
|
@layer theme, base, components, utilities;
|
|
3
200
|
@layer utilities;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
|
|
2
|
+
@layer theme, base, components, utilities;
|
|
3
|
+
@layer utilities;
|
|
4
|
+
@layer components {
|
|
5
|
+
.gridui-resizable {
|
|
6
|
+
display: grid;
|
|
7
|
+
min-inline-size: 0;
|
|
8
|
+
min-block-size: 0;
|
|
9
|
+
isolation: isolate;
|
|
10
|
+
}
|
|
11
|
+
.gridui-resizable-panel {
|
|
12
|
+
min-inline-size: 0;
|
|
13
|
+
min-block-size: 0;
|
|
14
|
+
overflow: auto;
|
|
15
|
+
}
|
|
16
|
+
.gridui-resizable-handle {
|
|
17
|
+
position: relative;
|
|
18
|
+
touch-action: none;
|
|
19
|
+
user-select: none;
|
|
20
|
+
cursor: col-resize;
|
|
21
|
+
outline-offset: calc(-1 * var(--gridui-focus-width));
|
|
22
|
+
}
|
|
23
|
+
.gridui-resizable-handle::before {
|
|
24
|
+
position: absolute;
|
|
25
|
+
inset-block: 0;
|
|
26
|
+
inset-inline-start: 50%;
|
|
27
|
+
border-inline-start: 1px solid var(--gridui-border);
|
|
28
|
+
content: "";
|
|
29
|
+
}
|
|
30
|
+
.gridui-resizable[data-orientation="vertical"] > .gridui-resizable-handle {
|
|
31
|
+
cursor: row-resize;
|
|
32
|
+
}
|
|
33
|
+
.gridui-resizable[data-orientation="vertical"] > .gridui-resizable-handle::before {
|
|
34
|
+
inset-inline: 0;
|
|
35
|
+
inset-block-start: 50%;
|
|
36
|
+
border-block-start: 1px solid var(--gridui-border);
|
|
37
|
+
border-inline-start: 0;
|
|
38
|
+
}
|
|
39
|
+
.gridui-resizable-handle[aria-disabled="true"] {
|
|
40
|
+
cursor: default;
|
|
41
|
+
touch-action: auto;
|
|
42
|
+
}
|
|
43
|
+
@media (pointer: coarse) {
|
|
44
|
+
.gridui-resizable {
|
|
45
|
+
--gridui-resizable-handle-size: 24px;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
package/docs/catalog.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"name": "@gridui/resizable",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.1.1",
|
|
5
5
|
"category": "layout",
|
|
6
6
|
"description": "GridUI React resizable",
|
|
7
7
|
"usage": "Two independently scrolling regions separated by a keyboard and pointer resizer. Resizable owns its separator; surrounding Grid regions continue to own outer seams.",
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
"@gridui/overlay/styles.css",
|
|
28
28
|
"@gridui/resizable/styles.css"
|
|
29
29
|
],
|
|
30
|
+
"styledImport": "@gridui/resizable/styled",
|
|
30
31
|
"examples": [
|
|
31
32
|
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-layout/resizable/stories/getting-started.mdx",
|
|
32
33
|
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-layout/resizable/stories/regions.mdx",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gridui/resizable",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "GridUI React resizable",
|
|
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,11 +32,11 @@
|
|
|
27
32
|
"react-dom": "^19.2.0"
|
|
28
33
|
},
|
|
29
34
|
"dependencies": {
|
|
30
|
-
"@gridui/interaction": "^1.
|
|
31
|
-
"@gridui/overlay": "^2.
|
|
32
|
-
"@gridui/react-utils": "^1.
|
|
33
|
-
"@gridui/style-utils": "^4.
|
|
34
|
-
"@gridui/theme": "^
|
|
35
|
+
"@gridui/interaction": "^1.3.0",
|
|
36
|
+
"@gridui/overlay": "^2.5.0",
|
|
37
|
+
"@gridui/react-utils": "^1.1.0",
|
|
38
|
+
"@gridui/style-utils": "^4.1.0",
|
|
39
|
+
"@gridui/theme": "^5.0.0"
|
|
35
40
|
},
|
|
36
41
|
"devDependencies": {
|
|
37
42
|
"@gridui-internal/configuration": "0.0.0-internal",
|