@dxos/react-ui-dnd 0.8.4-main.d05673bc65 → 0.8.4-main.d9fc60f731
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/LICENSE +102 -5
- package/dist/lib/browser/index.mjs +2 -2
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/node-esm/index.mjs +2 -2
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/types/src/components/ResizeHandle.d.ts.map +1 -1
- package/dist/types/src/util/sizeStyle.d.ts +1 -1
- package/dist/types/src/util/sizeStyle.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +7 -10
- package/src/components/ResizeHandle.tsx +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/react-ui-dnd",
|
|
3
|
-
"version": "0.8.4-main.
|
|
3
|
+
"version": "0.8.4-main.d9fc60f731",
|
|
4
4
|
"description": "Drag and drop components.",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"type": "git",
|
|
9
9
|
"url": "https://github.com/dxos/dxos"
|
|
10
10
|
},
|
|
11
|
-
"license": "
|
|
11
|
+
"license": "FSL-1.1-Apache-2.0",
|
|
12
12
|
"author": "DXOS.org",
|
|
13
13
|
"sideEffects": false,
|
|
14
14
|
"type": "module",
|
|
@@ -21,9 +21,6 @@
|
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
"types": "dist/types/src/index.d.ts",
|
|
24
|
-
"typesVersions": {
|
|
25
|
-
"*": {}
|
|
26
|
-
},
|
|
27
24
|
"files": [
|
|
28
25
|
"dist",
|
|
29
26
|
"src"
|
|
@@ -37,15 +34,15 @@
|
|
|
37
34
|
"@types/react-dom": "~19.2.3",
|
|
38
35
|
"react": "~19.2.3",
|
|
39
36
|
"react-dom": "~19.2.3",
|
|
40
|
-
"vite": "^
|
|
41
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
42
|
-
"@dxos/ui-theme": "0.8.4-main.
|
|
37
|
+
"vite": "^8.0.14",
|
|
38
|
+
"@dxos/react-ui": "0.8.4-main.d9fc60f731",
|
|
39
|
+
"@dxos/ui-theme": "0.8.4-main.d9fc60f731"
|
|
43
40
|
},
|
|
44
41
|
"peerDependencies": {
|
|
45
42
|
"react": "~19.2.3",
|
|
46
43
|
"react-dom": "~19.2.3",
|
|
47
|
-
"@dxos/ui
|
|
48
|
-
"@dxos/
|
|
44
|
+
"@dxos/react-ui": "0.8.4-main.d9fc60f731",
|
|
45
|
+
"@dxos/ui-theme": "0.8.4-main.d9fc60f731"
|
|
49
46
|
},
|
|
50
47
|
"publishConfig": {
|
|
51
48
|
"access": "public"
|
|
@@ -34,7 +34,7 @@ const getNextSize = (
|
|
|
34
34
|
Math.max(
|
|
35
35
|
minSize,
|
|
36
36
|
startSize +
|
|
37
|
-
((location.current.input[client] - location.initial.input[client]) / REM) * (side.endsWith('
|
|
37
|
+
((location.current.input[client] - location.initial.input[client]) / REM) * (side.endsWith('start') ? -1 : 1),
|
|
38
38
|
),
|
|
39
39
|
);
|
|
40
40
|
};
|
|
@@ -136,8 +136,8 @@ export const ResizeHandle = ({
|
|
|
136
136
|
'group absolute flex focus-visible:outline-hidden',
|
|
137
137
|
surfaceZIndex({ elevation, level: 'tooltip' }),
|
|
138
138
|
orientation === 'horizontal'
|
|
139
|
-
? 'cursor-col-resize w-4 inset-y-0 data-[side=
|
|
140
|
-
: 'cursor-row-resize h-4 inset-x-0 data-[side=
|
|
139
|
+
? 'cursor-col-resize w-4 inset-y-0 data-[side=inline-end]:end-0 data-[side=inline-end]:before:end-0 data-[side=inline-start]:start-0 data-[side=inline-start]:before:start-0 border-b-0! before:inset-y-0 before:w-1'
|
|
140
|
+
: 'cursor-row-resize h-4 inset-x-0 data-[side=block-end]:bottom-0 data-[side=block-end]:before:bottom-0 data-[side=block-start]:top-0 data-[side=block-start]:before:top-0 border-x-0! before:inset-x-0 before:h-1',
|
|
141
141
|
orientation === 'horizontal'
|
|
142
142
|
? iconPosition === 'end'
|
|
143
143
|
? 'align-end'
|
|
@@ -150,7 +150,7 @@ export const ResizeHandle = ({
|
|
|
150
150
|
? 'justify-center'
|
|
151
151
|
: 'justify-start',
|
|
152
152
|
'before:transition-opacity before:duration-100 before:ease-in-out before:opacity-0 hover:before:opacity-100 focus-visible:before:opacity-100 active:before:opacity-100',
|
|
153
|
-
'before:absolute before:block before:bg-
|
|
153
|
+
'before:absolute before:block before:bg-focus-ring-subtle',
|
|
154
154
|
classNames,
|
|
155
155
|
)}
|
|
156
156
|
/>
|