@steedos-widgets/sortable 1.3.3 → 1.3.4-beta.10
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/assets-dev.json +25 -0
- package/dist/assets.json +25 -0
- package/dist/components/MultipleContainers.d.ts +7 -0
- package/dist/components/components/Container/Container.d.ts +19 -0
- package/dist/components/components/Container/index.d.ts +2 -0
- package/dist/components/components/Grid/Grid.d.ts +7 -0
- package/dist/components/components/Grid/index.d.ts +1 -0
- package/dist/components/components/GridContainer/GridContainer.d.ts +6 -0
- package/dist/components/components/GridContainer/index.d.ts +1 -0
- package/dist/components/components/Item/Item.d.ts +38 -0
- package/dist/components/components/Item/components/Action/Action.d.ts +9 -0
- package/dist/components/components/Item/components/Action/index.d.ts +2 -0
- package/dist/components/components/Item/components/Handle/Handle.d.ts +3 -0
- package/dist/components/components/Item/components/Handle/index.d.ts +1 -0
- package/dist/components/components/Item/components/Remove/Remove.d.ts +3 -0
- package/dist/components/components/Item/components/Remove/index.d.ts +1 -0
- package/dist/components/components/Item/components/index.d.ts +3 -0
- package/dist/components/components/Item/index.d.ts +2 -0
- package/dist/components/components/index.d.ts +5 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/multipleContainersKeyboardCoordinates.d.ts +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/meta.d.ts +9 -0
- package/dist/meta.js +227 -0
- package/dist/metas/MultipleContainers.d.ts +2 -0
- package/dist/sortable.cjs.css +332 -0
- package/dist/sortable.cjs.js +65574 -0
- package/dist/sortable.cjs.js.map +1 -0
- package/dist/sortable.esm.css +332 -0
- package/dist/sortable.esm.js +65570 -0
- package/dist/sortable.esm.js.map +1 -0
- package/dist/sortable.umd.css +332 -0
- package/dist/sortable.umd.js +31878 -0
- package/dist/utilities/createRange.d.ts +1 -0
- package/dist/utilities/index.d.ts +1 -0
- package/package.json +4 -4
- package/src/components/MultipleContainers.tsx +63 -27
- package/src/components/components/Container/Container.module.css +19 -16
- package/src/components/components/Container/Container.tsx +7 -1
- package/src/components/components/Grid/Grid.module.css +1 -1
- package/src/components/components/Item/Item.module.css +21 -19
- package/src/components/components/Item/Item.tsx +4 -1
- package/src/metas/MultipleContainers.tsx +52 -5
|
@@ -0,0 +1,332 @@
|
|
|
1
|
+
.Action-module_Action__Vv6gh {
|
|
2
|
+
display: flex;
|
|
3
|
+
width: 12px;
|
|
4
|
+
padding: 10px;
|
|
5
|
+
align-items: center;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
flex: 0 0 auto;
|
|
8
|
+
touch-action: none;
|
|
9
|
+
cursor: var(--cursor, pointer);
|
|
10
|
+
border-radius: 5px;
|
|
11
|
+
border: none;
|
|
12
|
+
outline: none;
|
|
13
|
+
appearance: none;
|
|
14
|
+
background-color: transparent;
|
|
15
|
+
-webkit-tap-highlight-color: transparent;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@media (hover: hover) {
|
|
19
|
+
.Action-module_Action__Vv6gh:hover {
|
|
20
|
+
background-color: var(--action-background, rgba(0, 0, 0, 0.05));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.Action-module_Action__Vv6gh:hover svg {
|
|
24
|
+
fill: #6f7b88;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.Action-module_Action__Vv6gh svg {
|
|
29
|
+
flex: 0 0 auto;
|
|
30
|
+
margin: auto;
|
|
31
|
+
height: 100%;
|
|
32
|
+
overflow: visible;
|
|
33
|
+
fill: #919eab;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.Action-module_Action__Vv6gh:active {
|
|
37
|
+
background-color: var(--background, rgba(0, 0, 0, 0.05));
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.Action-module_Action__Vv6gh:active svg {
|
|
41
|
+
fill: var(--fill, #788491);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.Action-module_Action__Vv6gh:focus-visible {
|
|
45
|
+
outline: none;
|
|
46
|
+
box-shadow: 0 0 0 2px rgba(255, 255, 255, 0),
|
|
47
|
+
0 0px 0px 2px #4c9ffe;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@keyframes Item-module_pop__W5uSR {
|
|
51
|
+
0% {
|
|
52
|
+
transform: scale(1);
|
|
53
|
+
box-shadow: var(--box-shadow);
|
|
54
|
+
}
|
|
55
|
+
100% {
|
|
56
|
+
transform: scale(var(--scale));
|
|
57
|
+
box-shadow: var(--box-shadow-picked-up);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
@keyframes Item-module_fadeIn__AMWY6 {
|
|
62
|
+
0% {
|
|
63
|
+
opacity: 0;
|
|
64
|
+
}
|
|
65
|
+
100% {
|
|
66
|
+
opacity: 1;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.Item-module_Wrapper__5kf5R {
|
|
71
|
+
display: flex;
|
|
72
|
+
box-sizing: border-box;
|
|
73
|
+
transform: translate3d(var(--translate-x, 0), var(--translate-y, 0), 0)
|
|
74
|
+
scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1));
|
|
75
|
+
transform-origin: 0 0;
|
|
76
|
+
touch-action: manipulation;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.Item-module_Wrapper__5kf5R.Item-module_fadeIn__AMWY6 {
|
|
80
|
+
animation: Item-module_fadeIn__AMWY6 500ms ease;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.Item-module_Wrapper__5kf5R.Item-module_dragOverlay__VF1lT {
|
|
84
|
+
--scale: 1.05;
|
|
85
|
+
--box-shadow: 0 0 0 calc(1px / var(--scale-x, 1)) rgba(63, 63, 68, 0.05), 0 1px calc(3px / var(--scale-x, 1)) 0 rgba(34, 33, 81, 0.15);
|
|
86
|
+
--box-shadow-picked-up: 0 0 0 calc(1px / var(--scale-x, 1)) rgba(63, 63, 68, 0.05),
|
|
87
|
+
-1px 0 15px 0 rgba(34, 33, 81, 0.01),
|
|
88
|
+
0px 15px 15px 0 rgba(34, 33, 81, 0.25);
|
|
89
|
+
z-index: 999;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.Item-module_Item__QyyJd {
|
|
93
|
+
position: relative;
|
|
94
|
+
display: flex;
|
|
95
|
+
flex-grow: 1;
|
|
96
|
+
align-items: center;
|
|
97
|
+
/* padding: 8px 10px; */
|
|
98
|
+
/* background-color: $background-color; */
|
|
99
|
+
/* box-shadow: $box-shadow; */
|
|
100
|
+
/* outline: none; */
|
|
101
|
+
/* border-radius: calc(4px / var(--scale-x, 1)); */
|
|
102
|
+
/* box-sizing: border-box; */
|
|
103
|
+
list-style: none;
|
|
104
|
+
transform-origin: 50% 50%;
|
|
105
|
+
|
|
106
|
+
-webkit-tap-highlight-color: transparent;
|
|
107
|
+
|
|
108
|
+
/* color: $text-color; */
|
|
109
|
+
/* font-weight: $font-weight; */
|
|
110
|
+
/* font-size: 1rem; */
|
|
111
|
+
/* white-space: nowrap; */
|
|
112
|
+
|
|
113
|
+
transform: scale(var(--scale, 1));
|
|
114
|
+
transition: box-shadow 200ms cubic-bezier(0.18, 0.67, 0.6, 1.22);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.Item-module_Item__QyyJd:focus-visible {
|
|
118
|
+
box-shadow: 0 0px 4px 1px #4c9ffe, 0 0 0 calc(1px / var(--scale-x, 1)) rgba(63, 63, 68, 0.05), 0 1px calc(3px / var(--scale-x, 1)) 0 rgba(34, 33, 81, 0.15);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.Item-module_Item__QyyJd:not(.Item-module_withHandle__wK7tT) {
|
|
122
|
+
touch-action: manipulation;
|
|
123
|
+
cursor: grab;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.Item-module_Item__QyyJd.Item-module_dragging__AZaJo:not(.Item-module_dragOverlay__VF1lT) {
|
|
127
|
+
opacity: var(--dragging-opacity, 0.5);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/* z-index: -1; */
|
|
131
|
+
|
|
132
|
+
.Item-module_Item__QyyJd.Item-module_dragging__AZaJo:not(.Item-module_dragOverlay__VF1lT):focus {
|
|
133
|
+
box-shadow: 0 0 0 calc(1px / var(--scale-x, 1)) rgba(63, 63, 68, 0.05), 0 1px calc(3px / var(--scale-x, 1)) 0 rgba(34, 33, 81, 0.15);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.Item-module_Item__QyyJd.Item-module_disabled__Zkgqd {
|
|
137
|
+
color: #999;
|
|
138
|
+
background-color: #f1f1f1;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.Item-module_Item__QyyJd.Item-module_disabled__Zkgqd:focus {
|
|
142
|
+
box-shadow: 0 0px 4px 1px rgba(0, 0, 0, 0.1), 0 0 0 calc(1px / var(--scale-x, 1)) rgba(63, 63, 68, 0.05), 0 1px calc(3px / var(--scale-x, 1)) 0 rgba(34, 33, 81, 0.15);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.Item-module_Item__QyyJd.Item-module_disabled__Zkgqd {
|
|
146
|
+
cursor: not-allowed;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.Item-module_Item__QyyJd.Item-module_dragOverlay__VF1lT {
|
|
150
|
+
cursor: inherit;
|
|
151
|
+
/* box-shadow: 0 0px 6px 2px $focused-outline-color; */
|
|
152
|
+
animation: Item-module_pop__W5uSR 200ms cubic-bezier(0.18, 0.67, 0.6, 1.22);
|
|
153
|
+
transform: scale(var(--scale));
|
|
154
|
+
box-shadow: var(--box-shadow-picked-up);
|
|
155
|
+
opacity: 1;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/* &.color:before {
|
|
159
|
+
content: '';
|
|
160
|
+
position: absolute;
|
|
161
|
+
top: 50%;
|
|
162
|
+
transform: translateY(-50%);
|
|
163
|
+
left: 0;
|
|
164
|
+
height: 100%;
|
|
165
|
+
width: 3px;
|
|
166
|
+
display: block;
|
|
167
|
+
border-top-left-radius: 3px;
|
|
168
|
+
border-bottom-left-radius: 3px;
|
|
169
|
+
background-color: var(--color);
|
|
170
|
+
} */
|
|
171
|
+
|
|
172
|
+
.Item-module_Item__QyyJd:hover .Item-module_Remove__PoTm0 {
|
|
173
|
+
visibility: visible;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.Item-module_Remove__PoTm0 {
|
|
177
|
+
visibility: hidden;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.Item-module_Actions__7--uM {
|
|
181
|
+
/* display: flex;
|
|
182
|
+
align-self: flex-start; */
|
|
183
|
+
/* margin-top: -12px; */
|
|
184
|
+
/* margin-left: auto; */
|
|
185
|
+
/* margin-bottom: -15px;
|
|
186
|
+
margin-right: -10px; */
|
|
187
|
+
position:absolute;
|
|
188
|
+
right: 6px;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.Grid-module_Grid__FL834 {
|
|
192
|
+
position: fixed;
|
|
193
|
+
top: 0;
|
|
194
|
+
left: 0;
|
|
195
|
+
width: 100%;
|
|
196
|
+
height: 100%;
|
|
197
|
+
background-image: repeating-linear-gradient(
|
|
198
|
+
0deg,
|
|
199
|
+
transparent,
|
|
200
|
+
transparent calc(var(--grid-size) - 1px),
|
|
201
|
+
#ddd calc(var(--grid-size) - 1px),
|
|
202
|
+
#ddd var(--grid-size)
|
|
203
|
+
),
|
|
204
|
+
repeating-linear-gradient(
|
|
205
|
+
-90deg,
|
|
206
|
+
transparent,
|
|
207
|
+
transparent calc(var(--grid-size) - 1px),
|
|
208
|
+
#ddd calc(var(--grid-size) - 1px),
|
|
209
|
+
#ddd var(--grid-size)
|
|
210
|
+
);
|
|
211
|
+
background-size: var(--grid-size) var(--grid-size);
|
|
212
|
+
/* z-index: -1; */
|
|
213
|
+
pointer-events: none;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.Grid-module_RangeSlider__tJQV- {
|
|
217
|
+
position: fixed;
|
|
218
|
+
right: 20px;
|
|
219
|
+
bottom: 20px;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.GridContainer-module_GridContainer__H09uO {
|
|
223
|
+
max-width: 800px;
|
|
224
|
+
display: grid;
|
|
225
|
+
grid-template-columns: repeat(var(--col-count), 1fr);
|
|
226
|
+
grid-gap: 10px;
|
|
227
|
+
padding: 20px;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
@media (max-width: 850px) {.GridContainer-module_GridContainer__H09uO {
|
|
231
|
+
grid-template-columns: repeat(calc(var(--col-count) - 1), 1fr)
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
@media (max-width: 650px) {.GridContainer-module_GridContainer__H09uO {
|
|
236
|
+
grid-template-columns: repeat(calc(var(--col-count) - 2), 1fr)
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.Container-module_Container__jf9i2 {
|
|
241
|
+
display: flex;
|
|
242
|
+
flex-direction: column;
|
|
243
|
+
grid-auto-rows: max-content;
|
|
244
|
+
/* overflow: hidden; */
|
|
245
|
+
box-sizing: border-box;
|
|
246
|
+
appearance: none;
|
|
247
|
+
outline: none;
|
|
248
|
+
min-width: 350px;
|
|
249
|
+
/* margin: 10px; */
|
|
250
|
+
/* border-radius: 5px; */
|
|
251
|
+
min-height: 100px;
|
|
252
|
+
transition: background-color 350ms ease;
|
|
253
|
+
}
|
|
254
|
+
/* background-color: rgba(246, 246, 246, 1);
|
|
255
|
+
border: 1px solid rgba(0, 0, 0, 0.05);
|
|
256
|
+
font-size: 1em; */
|
|
257
|
+
.Container-module_Container__jf9i2 ul {
|
|
258
|
+
display: grid;
|
|
259
|
+
grid-gap: 10px;
|
|
260
|
+
grid-template-columns: repeat(var(--columns, 1), 1fr);
|
|
261
|
+
list-style: none;
|
|
262
|
+
padding: 10px 0;
|
|
263
|
+
margin: 0;
|
|
264
|
+
}
|
|
265
|
+
.Container-module_Container__jf9i2.Container-module_scrollable__qSAWm ul {
|
|
266
|
+
overflow-y: auto;
|
|
267
|
+
}
|
|
268
|
+
.Container-module_Container__jf9i2.Container-module_placeholder__0BJ8I {
|
|
269
|
+
justify-content: center;
|
|
270
|
+
align-items: center;
|
|
271
|
+
cursor: pointer;
|
|
272
|
+
color: rgba(0, 0, 0, 0.5);
|
|
273
|
+
background-color: transparent;
|
|
274
|
+
border-style: dashed;
|
|
275
|
+
border-color: rgba(0, 0, 0, 0.08);
|
|
276
|
+
}
|
|
277
|
+
.Container-module_Container__jf9i2.Container-module_placeholder__0BJ8I:hover {
|
|
278
|
+
border-color: rgba(0, 0, 0, 0.15);
|
|
279
|
+
}
|
|
280
|
+
.Container-module_Container__jf9i2.Container-module_hover__-4EcB {
|
|
281
|
+
background-color: rgb(235, 235, 235, 1);
|
|
282
|
+
}
|
|
283
|
+
.Container-module_Container__jf9i2.Container-module_unstyled__aYi6X {
|
|
284
|
+
overflow: visible;
|
|
285
|
+
/* background-color: transparent !important;
|
|
286
|
+
border: none !important; */
|
|
287
|
+
}
|
|
288
|
+
.Container-module_Container__jf9i2.Container-module_horizontal__gnBWZ {
|
|
289
|
+
width: 100%;
|
|
290
|
+
}
|
|
291
|
+
.Container-module_Container__jf9i2.Container-module_horizontal__gnBWZ ul {
|
|
292
|
+
grid-auto-flow: column;
|
|
293
|
+
}
|
|
294
|
+
.Container-module_Container__jf9i2.Container-module_shadow__1UsB3 {
|
|
295
|
+
/* box-shadow: 0 1px 10px 0 rgba(34, 33, 81, 0.1); */
|
|
296
|
+
}
|
|
297
|
+
.Container-module_Container__jf9i2:focus-visible {
|
|
298
|
+
border-color: transparent;
|
|
299
|
+
box-shadow: 0 0 0 2px rgba(255, 255, 255, 0), 0 0px 0px 2px #4c9ffe;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.Container-module_Header__dzbqd {
|
|
303
|
+
display: flex;
|
|
304
|
+
/* padding: 5px 20px;
|
|
305
|
+
padding-right: 8px; */
|
|
306
|
+
align-items: center;
|
|
307
|
+
justify-content: space-between;
|
|
308
|
+
position: relative;
|
|
309
|
+
/* background-color: #fff; */
|
|
310
|
+
/* border-top-left-radius: 5px;
|
|
311
|
+
border-top-right-radius: 5px; */
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
/* border-bottom: 1px solid rgba(0, 0, 0, 0.08); */
|
|
315
|
+
|
|
316
|
+
.Container-module_Header__dzbqd:hover .Container-module_Actions__peIDq > * {
|
|
317
|
+
opacity: 1 !important;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.Container-module_Actions__peIDq {
|
|
321
|
+
display: flex;
|
|
322
|
+
position: absolute;
|
|
323
|
+
right: 6px;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
.Container-module_Actions__peIDq > *:first-child:not(:last-child) {
|
|
327
|
+
opacity: 0;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.Container-module_Actions__peIDq > *:first-child:not(:last-child):focus-visible {
|
|
331
|
+
opacity: 1;
|
|
332
|
+
}
|