@wallarm-org/design-system 4.16.1-rc-fix-escape-outside-layer-stack.1 → 4.16.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/dist/components/Dialog/DialogContent.js +68 -35
- package/dist/components/Drawer/DrawerContent.d.ts +6 -2
- package/dist/components/Drawer/DrawerContent.js +80 -67
- package/dist/components/Drawer/DrawerRoot.d.ts +4 -0
- package/dist/components/Drawer/DrawerRoot.js +28 -1
- package/dist/components/Drawer/index.d.ts +1 -0
- package/dist/components/Drawer/index.js +1 -0
- package/dist/components/Field/FieldDescription.js +27 -13
- package/dist/components/Field/FieldError.js +46 -26
- package/dist/components/Input/Input.js +59 -34
- package/dist/components/NumberInput/NumberInput.js +20 -18
- package/dist/components/PasswordInput/PasswordInput.js +72 -71
- package/dist/components/Select/useSelectSearch.d.ts +4 -0
- package/dist/components/Table/TableBody/TableBodyRowDndContext.js +84 -77
- package/dist/components/Table/TableContext/TableProvider.js +62 -59
- package/dist/components/Table/TableContext/types.d.ts +1 -0
- package/dist/components/Table/lib/createSelectionColumn.js +4 -6
- package/dist/components/Textarea/Textarea.js +74 -77
- package/dist/guidelines/patterns/filtering.md +2 -2
- package/dist/hooks/useControlled.js +24 -9
- package/dist/metadata/components.json +79 -16
- package/dist/metadata/guidelines.json +4 -4
- package/package.json +1 -1
|
@@ -1,50 +1,75 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { c } from "react/compiler-runtime";
|
|
3
3
|
import { useFieldContext } from "@ark-ui/react/field";
|
|
4
|
-
import { mergeProps } from "@ark-ui/react/utils";
|
|
5
4
|
import { cn } from "../../utils/cn.js";
|
|
6
5
|
import { inputVariants } from "./classes.js";
|
|
7
6
|
const Input = (t0)=>{
|
|
8
|
-
const $ = c(
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
const $ = c(20);
|
|
8
|
+
let className;
|
|
9
|
+
let disabled;
|
|
10
|
+
let error;
|
|
11
|
+
let props;
|
|
12
|
+
let ref;
|
|
13
|
+
let t1;
|
|
14
|
+
if ($[0] !== t0) {
|
|
15
|
+
({ className, error, size: t1, disabled, ref, ...props } = t0);
|
|
16
|
+
$[0] = t0;
|
|
17
|
+
$[1] = className;
|
|
18
|
+
$[2] = disabled;
|
|
19
|
+
$[3] = error;
|
|
20
|
+
$[4] = props;
|
|
21
|
+
$[5] = ref;
|
|
22
|
+
$[6] = t1;
|
|
23
|
+
} else {
|
|
24
|
+
className = $[1];
|
|
25
|
+
disabled = $[2];
|
|
26
|
+
error = $[3];
|
|
27
|
+
props = $[4];
|
|
28
|
+
ref = $[5];
|
|
29
|
+
t1 = $[6];
|
|
30
|
+
}
|
|
31
|
+
const size = void 0 === t1 ? "default" : t1;
|
|
13
32
|
const field = useFieldContext();
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
33
|
+
const invalid = error ?? field?.invalid ?? false;
|
|
34
|
+
const isDisabled = disabled ?? field?.disabled ?? false;
|
|
35
|
+
let t2;
|
|
36
|
+
if ($[7] !== field) {
|
|
37
|
+
t2 = field?.getInputProps();
|
|
38
|
+
$[7] = field;
|
|
39
|
+
$[8] = t2;
|
|
40
|
+
} else t2 = $[8];
|
|
41
|
+
let t3;
|
|
42
|
+
if ($[9] !== className || $[10] !== invalid || $[11] !== size) {
|
|
43
|
+
t3 = cn(inputVariants({
|
|
44
|
+
error: invalid,
|
|
19
45
|
size
|
|
20
46
|
}), className);
|
|
21
|
-
$[
|
|
22
|
-
$[
|
|
23
|
-
$[
|
|
24
|
-
$[
|
|
25
|
-
} else
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
...mergedProps,
|
|
47
|
+
$[9] = className;
|
|
48
|
+
$[10] = invalid;
|
|
49
|
+
$[11] = size;
|
|
50
|
+
$[12] = t3;
|
|
51
|
+
} else t3 = $[12];
|
|
52
|
+
let t4;
|
|
53
|
+
if ($[13] !== invalid || $[14] !== isDisabled || $[15] !== props || $[16] !== ref || $[17] !== t2 || $[18] !== t3) {
|
|
54
|
+
t4 = /*#__PURE__*/ jsx("input", {
|
|
55
|
+
...t2,
|
|
31
56
|
...props,
|
|
32
|
-
className:
|
|
33
|
-
disabled:
|
|
34
|
-
"aria-invalid":
|
|
35
|
-
"aria-disabled":
|
|
57
|
+
className: t3,
|
|
58
|
+
disabled: isDisabled,
|
|
59
|
+
"aria-invalid": invalid,
|
|
60
|
+
"aria-disabled": isDisabled,
|
|
36
61
|
ref: ref,
|
|
37
62
|
"data-slot": "input"
|
|
38
63
|
});
|
|
39
|
-
$[
|
|
40
|
-
$[
|
|
41
|
-
$[
|
|
42
|
-
$[
|
|
43
|
-
$[
|
|
44
|
-
$[
|
|
45
|
-
$[
|
|
46
|
-
} else
|
|
47
|
-
return
|
|
64
|
+
$[13] = invalid;
|
|
65
|
+
$[14] = isDisabled;
|
|
66
|
+
$[15] = props;
|
|
67
|
+
$[16] = ref;
|
|
68
|
+
$[17] = t2;
|
|
69
|
+
$[18] = t3;
|
|
70
|
+
$[19] = t4;
|
|
71
|
+
} else t4 = $[19];
|
|
72
|
+
return t4;
|
|
48
73
|
};
|
|
49
74
|
Input.displayName = "Input";
|
|
50
75
|
export { Input };
|
|
@@ -1,31 +1,33 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { c } from "react/compiler-runtime";
|
|
3
|
+
import { useFieldContext } from "@ark-ui/react/field";
|
|
3
4
|
import { NumberInput } from "@ark-ui/react/number-input";
|
|
4
5
|
import { ChevronDown, ChevronUp } from "../../icons/index.js";
|
|
5
6
|
import { cn } from "../../utils/cn.js";
|
|
6
7
|
import { numberInputControlVariants, numberInputFieldVariants, numberInputRootVariants, numberInputTriggerVariants } from "./classes.js";
|
|
7
8
|
const NumberInput_NumberInput = (t0)=>{
|
|
8
9
|
const $ = c(34);
|
|
10
|
+
let error;
|
|
9
11
|
let props;
|
|
10
12
|
let t1;
|
|
11
13
|
let t2;
|
|
12
|
-
let t3;
|
|
13
14
|
if ($[0] !== t0) {
|
|
14
|
-
({ error
|
|
15
|
+
({ error, size: t1, defaultValue: t2, ...props } = t0);
|
|
15
16
|
$[0] = t0;
|
|
16
|
-
$[1] =
|
|
17
|
-
$[2] =
|
|
18
|
-
$[3] =
|
|
19
|
-
$[4] =
|
|
17
|
+
$[1] = error;
|
|
18
|
+
$[2] = props;
|
|
19
|
+
$[3] = t1;
|
|
20
|
+
$[4] = t2;
|
|
20
21
|
} else {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
error = $[1];
|
|
23
|
+
props = $[2];
|
|
24
|
+
t1 = $[3];
|
|
25
|
+
t2 = $[4];
|
|
25
26
|
}
|
|
26
|
-
const
|
|
27
|
-
const
|
|
28
|
-
const
|
|
27
|
+
const size = void 0 === t1 ? "default" : t1;
|
|
28
|
+
const defaultValue = void 0 === t2 ? "0" : t2;
|
|
29
|
+
const field = useFieldContext();
|
|
30
|
+
const t3 = error ?? field?.invalid;
|
|
29
31
|
let t4;
|
|
30
32
|
if ($[5] !== size) {
|
|
31
33
|
t4 = numberInputRootVariants({
|
|
@@ -117,10 +119,10 @@ const NumberInput_NumberInput = (t0)=>{
|
|
|
117
119
|
$[26] = t14;
|
|
118
120
|
} else t14 = $[26];
|
|
119
121
|
let t15;
|
|
120
|
-
if ($[27] !== defaultValue || $[28] !==
|
|
122
|
+
if ($[27] !== defaultValue || $[28] !== props || $[29] !== t14 || $[30] !== t3 || $[31] !== t4 || $[32] !== t6) {
|
|
121
123
|
t15 = /*#__PURE__*/ jsxs(NumberInput.Root, {
|
|
122
124
|
...props,
|
|
123
|
-
invalid:
|
|
125
|
+
invalid: t3,
|
|
124
126
|
defaultValue: defaultValue,
|
|
125
127
|
className: t4,
|
|
126
128
|
children: [
|
|
@@ -129,9 +131,9 @@ const NumberInput_NumberInput = (t0)=>{
|
|
|
129
131
|
]
|
|
130
132
|
});
|
|
131
133
|
$[27] = defaultValue;
|
|
132
|
-
$[28] =
|
|
133
|
-
$[29] =
|
|
134
|
-
$[30] =
|
|
134
|
+
$[28] = props;
|
|
135
|
+
$[29] = t14;
|
|
136
|
+
$[30] = t3;
|
|
135
137
|
$[31] = t4;
|
|
136
138
|
$[32] = t6;
|
|
137
139
|
$[33] = t15;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { c } from "react/compiler-runtime";
|
|
3
3
|
import { useState } from "react";
|
|
4
|
+
import { useFieldContext } from "@ark-ui/react/field";
|
|
4
5
|
import { Eye, EyeOff } from "../../icons/index.js";
|
|
5
6
|
import { Input } from "../Input/index.js";
|
|
6
7
|
import { InputGroup } from "../InputGroup/InputGroup.js";
|
|
@@ -11,47 +12,47 @@ import { TooltipTrigger } from "../Tooltip/TooltipTrigger.js";
|
|
|
11
12
|
const PasswordInput = (t0)=>{
|
|
12
13
|
const $ = c(33);
|
|
13
14
|
let className;
|
|
15
|
+
let disabled;
|
|
16
|
+
let error;
|
|
14
17
|
let props;
|
|
15
18
|
let ref;
|
|
16
19
|
let t1;
|
|
17
|
-
let t2;
|
|
18
|
-
let t3;
|
|
19
20
|
let testId;
|
|
20
21
|
if ($[0] !== t0) {
|
|
21
|
-
({ disabled
|
|
22
|
+
({ disabled, size: t1, error, className, ref, "data-testid": testId, ...props } = t0);
|
|
22
23
|
$[0] = t0;
|
|
23
24
|
$[1] = className;
|
|
24
|
-
$[2] =
|
|
25
|
-
$[3] =
|
|
26
|
-
$[4] =
|
|
27
|
-
$[5] =
|
|
28
|
-
$[6] =
|
|
25
|
+
$[2] = disabled;
|
|
26
|
+
$[3] = error;
|
|
27
|
+
$[4] = props;
|
|
28
|
+
$[5] = ref;
|
|
29
|
+
$[6] = t1;
|
|
29
30
|
$[7] = testId;
|
|
30
31
|
} else {
|
|
31
32
|
className = $[1];
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
disabled = $[2];
|
|
34
|
+
error = $[3];
|
|
35
|
+
props = $[4];
|
|
36
|
+
ref = $[5];
|
|
37
|
+
t1 = $[6];
|
|
37
38
|
testId = $[7];
|
|
38
39
|
}
|
|
39
|
-
const
|
|
40
|
-
const size = void 0 === t2 ? "default" : t2;
|
|
41
|
-
const error = void 0 === t3 ? false : t3;
|
|
40
|
+
const size = void 0 === t1 ? "default" : t1;
|
|
42
41
|
const [visible, setVisible] = useState(false);
|
|
43
|
-
|
|
42
|
+
const field = useFieldContext();
|
|
43
|
+
const isDisabled = disabled ?? field?.disabled ?? false;
|
|
44
|
+
let t2;
|
|
44
45
|
if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
|
|
45
|
-
|
|
46
|
-
$[8] =
|
|
47
|
-
} else
|
|
48
|
-
const toggle =
|
|
49
|
-
const
|
|
50
|
-
let
|
|
51
|
-
if ($[9] !== disabled || $[10] !== error || $[11] !== props || $[12] !== ref || $[13] !== size || $[14] !==
|
|
52
|
-
|
|
46
|
+
t2 = ()=>setVisible(_temp);
|
|
47
|
+
$[8] = t2;
|
|
48
|
+
} else t2 = $[8];
|
|
49
|
+
const toggle = t2;
|
|
50
|
+
const t3 = visible ? "text" : "password";
|
|
51
|
+
let t4;
|
|
52
|
+
if ($[9] !== disabled || $[10] !== error || $[11] !== props || $[12] !== ref || $[13] !== size || $[14] !== t3) {
|
|
53
|
+
t4 = /*#__PURE__*/ jsx(Input, {
|
|
53
54
|
...props,
|
|
54
|
-
type:
|
|
55
|
+
type: t3,
|
|
55
56
|
disabled: disabled,
|
|
56
57
|
size: size,
|
|
57
58
|
error: error,
|
|
@@ -62,13 +63,13 @@ const PasswordInput = (t0)=>{
|
|
|
62
63
|
$[11] = props;
|
|
63
64
|
$[12] = ref;
|
|
64
65
|
$[13] = size;
|
|
65
|
-
$[14] =
|
|
66
|
-
$[15] =
|
|
67
|
-
} else
|
|
68
|
-
const
|
|
69
|
-
let
|
|
66
|
+
$[14] = t3;
|
|
67
|
+
$[15] = t4;
|
|
68
|
+
} else t4 = $[15];
|
|
69
|
+
const t5 = visible ? "Hide password" : "Show password";
|
|
70
|
+
let t6;
|
|
70
71
|
if ($[16] !== visible) {
|
|
71
|
-
|
|
72
|
+
t6 = visible ? /*#__PURE__*/ jsx(EyeOff, {
|
|
72
73
|
size: "md",
|
|
73
74
|
className: "text-icon-secondary"
|
|
74
75
|
}) : /*#__PURE__*/ jsx(Eye, {
|
|
@@ -76,71 +77,71 @@ const PasswordInput = (t0)=>{
|
|
|
76
77
|
className: "text-icon-secondary"
|
|
77
78
|
});
|
|
78
79
|
$[16] = visible;
|
|
79
|
-
$[17] =
|
|
80
|
-
} else
|
|
81
|
-
let
|
|
82
|
-
if ($[18] !==
|
|
83
|
-
|
|
80
|
+
$[17] = t6;
|
|
81
|
+
} else t6 = $[17];
|
|
82
|
+
let t7;
|
|
83
|
+
if ($[18] !== isDisabled || $[19] !== t5 || $[20] !== t6) {
|
|
84
|
+
t7 = /*#__PURE__*/ jsx(TooltipTrigger, {
|
|
84
85
|
asChild: true,
|
|
85
86
|
children: /*#__PURE__*/ jsx("button", {
|
|
86
87
|
type: "button",
|
|
87
88
|
tabIndex: -1,
|
|
88
|
-
disabled:
|
|
89
|
-
"aria-label":
|
|
89
|
+
disabled: isDisabled,
|
|
90
|
+
"aria-label": t5,
|
|
90
91
|
onClick: toggle,
|
|
91
92
|
className: "cursor-pointer disabled:cursor-not-allowed disabled:opacity-50 flex",
|
|
92
|
-
children:
|
|
93
|
+
children: t6
|
|
93
94
|
})
|
|
94
95
|
});
|
|
95
|
-
$[18] =
|
|
96
|
-
$[19] =
|
|
97
|
-
$[20] =
|
|
98
|
-
$[21] =
|
|
99
|
-
} else
|
|
100
|
-
const
|
|
101
|
-
let
|
|
102
|
-
if ($[22] !==
|
|
103
|
-
|
|
104
|
-
children:
|
|
96
|
+
$[18] = isDisabled;
|
|
97
|
+
$[19] = t5;
|
|
98
|
+
$[20] = t6;
|
|
99
|
+
$[21] = t7;
|
|
100
|
+
} else t7 = $[21];
|
|
101
|
+
const t8 = visible ? "Hide password" : "Show password";
|
|
102
|
+
let t9;
|
|
103
|
+
if ($[22] !== t8) {
|
|
104
|
+
t9 = /*#__PURE__*/ jsx(TooltipContent, {
|
|
105
|
+
children: t8
|
|
105
106
|
});
|
|
106
|
-
$[22] =
|
|
107
|
-
$[23] =
|
|
108
|
-
} else
|
|
109
|
-
let
|
|
110
|
-
if ($[24] !==
|
|
111
|
-
|
|
107
|
+
$[22] = t8;
|
|
108
|
+
$[23] = t9;
|
|
109
|
+
} else t9 = $[23];
|
|
110
|
+
let t10;
|
|
111
|
+
if ($[24] !== t7 || $[25] !== t9) {
|
|
112
|
+
t10 = /*#__PURE__*/ jsx(InputGroupAddon, {
|
|
112
113
|
align: "inline-end",
|
|
113
114
|
children: /*#__PURE__*/ jsxs(Tooltip, {
|
|
114
115
|
children: [
|
|
115
|
-
|
|
116
|
-
|
|
116
|
+
t7,
|
|
117
|
+
t9
|
|
117
118
|
]
|
|
118
119
|
})
|
|
119
120
|
});
|
|
120
|
-
$[24] =
|
|
121
|
+
$[24] = t7;
|
|
121
122
|
$[25] = t9;
|
|
122
|
-
$[26] =
|
|
123
|
-
} else
|
|
124
|
-
let
|
|
125
|
-
if ($[27] !== className || $[28] !== size || $[29] !==
|
|
126
|
-
|
|
123
|
+
$[26] = t10;
|
|
124
|
+
} else t10 = $[26];
|
|
125
|
+
let t11;
|
|
126
|
+
if ($[27] !== className || $[28] !== size || $[29] !== t10 || $[30] !== t4 || $[31] !== testId) {
|
|
127
|
+
t11 = /*#__PURE__*/ jsxs(InputGroup, {
|
|
127
128
|
size: size,
|
|
128
129
|
className: className,
|
|
129
130
|
"data-slot": "password-input",
|
|
130
131
|
"data-testid": testId,
|
|
131
132
|
children: [
|
|
132
|
-
|
|
133
|
-
|
|
133
|
+
t4,
|
|
134
|
+
t10
|
|
134
135
|
]
|
|
135
136
|
});
|
|
136
137
|
$[27] = className;
|
|
137
138
|
$[28] = size;
|
|
138
|
-
$[29] =
|
|
139
|
-
$[30] =
|
|
139
|
+
$[29] = t10;
|
|
140
|
+
$[30] = t4;
|
|
140
141
|
$[31] = testId;
|
|
141
|
-
$[32] =
|
|
142
|
-
} else
|
|
143
|
-
return
|
|
142
|
+
$[32] = t11;
|
|
143
|
+
} else t11 = $[32];
|
|
144
|
+
return t11;
|
|
144
145
|
};
|
|
145
146
|
PasswordInput.displayName = "PasswordInput";
|
|
146
147
|
function _temp(prev) {
|
|
@@ -11,6 +11,10 @@ export interface UseSelectSearchOptions<T extends CollectionItem> {
|
|
|
11
11
|
export interface UseSelectSearchResult<T extends CollectionItem> {
|
|
12
12
|
searchValue: string;
|
|
13
13
|
onSearchChange: (value: string) => void;
|
|
14
|
+
/**
|
|
15
|
+
* Pass this to `Select` as `collection` and render it, so keyboard navigation and
|
|
16
|
+
* typeahead skip hidden items. Selected values the search hides stay selected.
|
|
17
|
+
*/
|
|
14
18
|
filteredCollection: ListCollection<T>;
|
|
15
19
|
}
|
|
16
20
|
export declare const useSelectSearch: <T extends CollectionItem>(collection: ListCollection<T>, options?: UseSelectSearchOptions<T>) => UseSelectSearchResult<T>;
|
|
@@ -3,7 +3,7 @@ import { c as compiler_runtime_c } from "react/compiler-runtime";
|
|
|
3
3
|
import { createContext, useContext, useState } from "react";
|
|
4
4
|
import { createPortal } from "react-dom";
|
|
5
5
|
import { DndContext, DragOverlay, KeyboardSensor, PointerSensor, closestCenter, useSensor, useSensors } from "@dnd-kit/core";
|
|
6
|
-
import { SortableContext, verticalListSortingStrategy } from "@dnd-kit/sortable";
|
|
6
|
+
import { SortableContext, sortableKeyboardCoordinates, verticalListSortingStrategy } from "@dnd-kit/sortable";
|
|
7
7
|
import { useTableContext } from "../TableContext/index.js";
|
|
8
8
|
import { TableRowOverlay } from "./TableRowOverlay.js";
|
|
9
9
|
const ROW_DND_INDICATOR_DEFAULT = {
|
|
@@ -40,7 +40,7 @@ const TableBodyRowDndContext = (t0)=>{
|
|
|
40
40
|
return t1;
|
|
41
41
|
};
|
|
42
42
|
const TableBodyRowDndContextInner = (t0)=>{
|
|
43
|
-
const $ = compiler_runtime_c(
|
|
43
|
+
const $ = compiler_runtime_c(39);
|
|
44
44
|
const { children, onRowReorder } = t0;
|
|
45
45
|
const { table } = useTableContext();
|
|
46
46
|
let t1;
|
|
@@ -97,31 +97,38 @@ const TableBodyRowDndContextInner = (t0)=>{
|
|
|
97
97
|
};
|
|
98
98
|
$[11] = t6;
|
|
99
99
|
} else t6 = $[11];
|
|
100
|
-
const sensors = useSensors(useSensor(PointerSensor, t6), useSensor(KeyboardSensor));
|
|
101
100
|
let t7;
|
|
102
|
-
if ($[12]
|
|
103
|
-
t7 =
|
|
101
|
+
if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
|
|
102
|
+
t7 = {
|
|
103
|
+
coordinateGetter: sortableKeyboardCoordinates
|
|
104
|
+
};
|
|
105
|
+
$[12] = t7;
|
|
106
|
+
} else t7 = $[12];
|
|
107
|
+
const sensors = useSensors(useSensor(PointerSensor, t6), useSensor(KeyboardSensor, t7));
|
|
108
|
+
let t8;
|
|
109
|
+
if ($[13] !== rows) {
|
|
110
|
+
t8 = (event)=>{
|
|
104
111
|
const id = String(event.active.id);
|
|
105
112
|
const row = rows.find((r_1)=>r_1.id === id);
|
|
106
113
|
setActiveRow(row ?? null);
|
|
107
114
|
setActiveId(id);
|
|
108
115
|
setCursorGrabbing();
|
|
109
116
|
};
|
|
110
|
-
$[
|
|
111
|
-
$[13] = t7;
|
|
112
|
-
} else t7 = $[13];
|
|
113
|
-
const handleDragStart = t7;
|
|
114
|
-
let t8;
|
|
115
|
-
if ($[14] === Symbol.for("react.memo_cache_sentinel")) {
|
|
116
|
-
t8 = (event_0)=>{
|
|
117
|
-
setOverId(event_0.over ? String(event_0.over.id) : null);
|
|
118
|
-
};
|
|
117
|
+
$[13] = rows;
|
|
119
118
|
$[14] = t8;
|
|
120
119
|
} else t8 = $[14];
|
|
121
|
-
const
|
|
120
|
+
const handleDragStart = t8;
|
|
122
121
|
let t9;
|
|
123
|
-
if ($[15]
|
|
124
|
-
t9 = (
|
|
122
|
+
if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
|
|
123
|
+
t9 = (event_0)=>{
|
|
124
|
+
setOverId(event_0.over ? String(event_0.over.id) : null);
|
|
125
|
+
};
|
|
126
|
+
$[15] = t9;
|
|
127
|
+
} else t9 = $[15];
|
|
128
|
+
const handleDragOver = t9;
|
|
129
|
+
let t10;
|
|
130
|
+
if ($[16] !== onRowReorder || $[17] !== parentOf) {
|
|
131
|
+
t10 = (event_1)=>{
|
|
125
132
|
setActiveRow(null);
|
|
126
133
|
setActiveId(null);
|
|
127
134
|
setOverId(null);
|
|
@@ -134,98 +141,98 @@ const TableBodyRowDndContextInner = (t0)=>{
|
|
|
134
141
|
overRowId: String(over.id)
|
|
135
142
|
});
|
|
136
143
|
};
|
|
137
|
-
$[
|
|
138
|
-
$[
|
|
139
|
-
$[17] = t9;
|
|
140
|
-
} else t9 = $[17];
|
|
141
|
-
const handleDragEnd = t9;
|
|
142
|
-
let t10;
|
|
143
|
-
if ($[18] === Symbol.for("react.memo_cache_sentinel")) {
|
|
144
|
-
t10 = ()=>{
|
|
145
|
-
setActiveRow(null);
|
|
146
|
-
setActiveId(null);
|
|
147
|
-
setOverId(null);
|
|
148
|
-
resetCursor();
|
|
149
|
-
};
|
|
144
|
+
$[16] = onRowReorder;
|
|
145
|
+
$[17] = parentOf;
|
|
150
146
|
$[18] = t10;
|
|
151
147
|
} else t10 = $[18];
|
|
152
|
-
const
|
|
148
|
+
const handleDragEnd = t10;
|
|
153
149
|
let t11;
|
|
154
150
|
if ($[19] === Symbol.for("react.memo_cache_sentinel")) {
|
|
155
|
-
t11 = {
|
|
156
|
-
|
|
151
|
+
t11 = ()=>{
|
|
152
|
+
setActiveRow(null);
|
|
153
|
+
setActiveId(null);
|
|
154
|
+
setOverId(null);
|
|
155
|
+
resetCursor();
|
|
157
156
|
};
|
|
158
157
|
$[19] = t11;
|
|
159
158
|
} else t11 = $[19];
|
|
159
|
+
const handleDragCancel = t11;
|
|
160
160
|
let t12;
|
|
161
|
-
if ($[20]
|
|
162
|
-
t12 =
|
|
161
|
+
if ($[20] === Symbol.for("react.memo_cache_sentinel")) {
|
|
162
|
+
t12 = {
|
|
163
|
+
container: document.body
|
|
164
|
+
};
|
|
165
|
+
$[20] = t12;
|
|
166
|
+
} else t12 = $[20];
|
|
167
|
+
let t13;
|
|
168
|
+
if ($[21] !== children || $[22] !== rowIds) {
|
|
169
|
+
t13 = /*#__PURE__*/ jsx(SortableContext, {
|
|
163
170
|
items: rowIds,
|
|
164
171
|
strategy: verticalListSortingStrategy,
|
|
165
172
|
children: children
|
|
166
173
|
});
|
|
167
|
-
$[
|
|
168
|
-
$[
|
|
169
|
-
$[22] = t12;
|
|
170
|
-
} else t12 = $[22];
|
|
171
|
-
let t13;
|
|
172
|
-
if ($[23] === Symbol.for("react.memo_cache_sentinel")) {
|
|
173
|
-
t13 = {
|
|
174
|
-
cursor: "grabbing"
|
|
175
|
-
};
|
|
174
|
+
$[21] = children;
|
|
175
|
+
$[22] = rowIds;
|
|
176
176
|
$[23] = t13;
|
|
177
177
|
} else t13 = $[23];
|
|
178
178
|
let t14;
|
|
179
|
-
if ($[24]
|
|
180
|
-
t14 =
|
|
179
|
+
if ($[24] === Symbol.for("react.memo_cache_sentinel")) {
|
|
180
|
+
t14 = {
|
|
181
|
+
cursor: "grabbing"
|
|
182
|
+
};
|
|
183
|
+
$[24] = t14;
|
|
184
|
+
} else t14 = $[24];
|
|
185
|
+
let t15;
|
|
186
|
+
if ($[25] !== activeRow) {
|
|
187
|
+
t15 = activeRow ? /*#__PURE__*/ jsx(TableRowOverlay, {
|
|
181
188
|
row: activeRow
|
|
182
189
|
}) : null;
|
|
183
|
-
$[
|
|
184
|
-
$[
|
|
185
|
-
} else
|
|
186
|
-
let
|
|
187
|
-
if ($[
|
|
188
|
-
|
|
189
|
-
style:
|
|
190
|
-
children:
|
|
190
|
+
$[25] = activeRow;
|
|
191
|
+
$[26] = t15;
|
|
192
|
+
} else t15 = $[26];
|
|
193
|
+
let t16;
|
|
194
|
+
if ($[27] !== t15) {
|
|
195
|
+
t16 = /*#__PURE__*/ createPortal(/*#__PURE__*/ jsx(DragOverlay, {
|
|
196
|
+
style: t14,
|
|
197
|
+
children: t15
|
|
191
198
|
}), document.body);
|
|
192
|
-
$[26] = t14;
|
|
193
199
|
$[27] = t15;
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
200
|
+
$[28] = t16;
|
|
201
|
+
} else t16 = $[28];
|
|
202
|
+
let t17;
|
|
203
|
+
if ($[29] !== collisionDetection || $[30] !== handleDragEnd || $[31] !== handleDragStart || $[32] !== sensors || $[33] !== t13 || $[34] !== t16) {
|
|
204
|
+
t17 = /*#__PURE__*/ jsxs(DndContext, {
|
|
198
205
|
sensors: sensors,
|
|
199
206
|
collisionDetection: collisionDetection,
|
|
200
|
-
accessibility:
|
|
207
|
+
accessibility: t12,
|
|
201
208
|
onDragStart: handleDragStart,
|
|
202
209
|
onDragOver: handleDragOver,
|
|
203
210
|
onDragEnd: handleDragEnd,
|
|
204
211
|
onDragCancel: handleDragCancel,
|
|
205
212
|
children: [
|
|
206
|
-
|
|
207
|
-
|
|
213
|
+
t13,
|
|
214
|
+
t16
|
|
208
215
|
]
|
|
209
216
|
});
|
|
210
|
-
$[
|
|
211
|
-
$[
|
|
212
|
-
$[
|
|
213
|
-
$[
|
|
214
|
-
$[
|
|
215
|
-
$[33] = t15;
|
|
217
|
+
$[29] = collisionDetection;
|
|
218
|
+
$[30] = handleDragEnd;
|
|
219
|
+
$[31] = handleDragStart;
|
|
220
|
+
$[32] = sensors;
|
|
221
|
+
$[33] = t13;
|
|
216
222
|
$[34] = t16;
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
223
|
+
$[35] = t17;
|
|
224
|
+
} else t17 = $[35];
|
|
225
|
+
let t18;
|
|
226
|
+
if ($[36] !== indicatorState || $[37] !== t17) {
|
|
227
|
+
t18 = /*#__PURE__*/ jsx(RowDndIndicatorContext.Provider, {
|
|
221
228
|
value: indicatorState,
|
|
222
|
-
children:
|
|
229
|
+
children: t17
|
|
223
230
|
});
|
|
224
|
-
$[
|
|
225
|
-
$[36] = t16;
|
|
231
|
+
$[36] = indicatorState;
|
|
226
232
|
$[37] = t17;
|
|
227
|
-
|
|
228
|
-
|
|
233
|
+
$[38] = t18;
|
|
234
|
+
} else t18 = $[38];
|
|
235
|
+
return t18;
|
|
229
236
|
};
|
|
230
237
|
TableBodyRowDndContext.displayName = "TableBodyRowDndContext";
|
|
231
238
|
function _temp(r) {
|