@livenetworks/ashlar 2.1.7 → 2.1.8
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/components/ln-sortable/ln-sortable.schema.json +38 -36
- package/components/ln-sortable/ln-sortable.scss +25 -0
- package/package.json +1 -1
- package/theme/components/_sortable.scss +19 -0
- package/theme/components/_table.scss +1 -0
- package/theme/config/mixins/_chart.scss +1 -0
- package/theme/config/mixins/_dropdown.scss +1 -0
- package/theme/config/mixins/_modal.scss +1 -0
- package/theme/config/mixins/_picklist.scss +1 -0
- package/theme/config/mixins/_popover.scss +1 -0
- package/theme/config/mixins/_position.scss +1 -1
- package/theme/config/mixins/_sidebar.scss +1 -0
- package/theme/config/mixins/_stat-card.scss +1 -0
- package/theme/config/mixins/_timeline.scss +2 -0
- package/theme/config/mixins/_toast.scss +4 -2
- package/theme/ln-ashlar-core.scss +1 -0
- package/theme/ln-ashlar-theme.scss +1 -0
- package/web-types.json +1 -1
|
@@ -1,36 +1,38 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$comment": "This file is partly generated. The $comment, component, generator, and each attribute's direction, sources, type, values, fallback, and description keys are owned by the generator and synchronized from JS source code. All other keys are preserved and safe to hand-author. Regenerate with `npm run sync:ln-schemas`.",
|
|
3
|
-
"component": "ln-sortable",
|
|
4
|
-
"generator": "scripts/sync-ln-schemas.mjs",
|
|
5
|
-
"attributes": {
|
|
6
|
-
"data-ln-debug": {
|
|
7
|
-
"direction": null,
|
|
8
|
-
"sources": [
|
|
9
|
-
"ln-sortable-dev.scss"
|
|
10
|
-
]
|
|
11
|
-
},
|
|
12
|
-
"data-ln-sortable": {
|
|
13
|
-
"direction": "author",
|
|
14
|
-
"sources": [
|
|
15
|
-
"ln-sortable-dev.scss",
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$comment": "This file is partly generated. The $comment, component, generator, and each attribute's direction, sources, type, values, fallback, and description keys are owned by the generator and synchronized from JS source code. All other keys are preserved and safe to hand-author. Regenerate with `npm run sync:ln-schemas`.",
|
|
3
|
+
"component": "ln-sortable",
|
|
4
|
+
"generator": "scripts/sync-ln-schemas.mjs",
|
|
5
|
+
"attributes": {
|
|
6
|
+
"data-ln-debug": {
|
|
7
|
+
"direction": null,
|
|
8
|
+
"sources": [
|
|
9
|
+
"ln-sortable-dev.scss"
|
|
10
|
+
]
|
|
11
|
+
},
|
|
12
|
+
"data-ln-sortable": {
|
|
13
|
+
"direction": "author",
|
|
14
|
+
"sources": [
|
|
15
|
+
"ln-sortable-dev.scss",
|
|
16
|
+
"ln-sortable.scss",
|
|
17
|
+
"src/ln-sortable.js"
|
|
18
|
+
],
|
|
19
|
+
"type": "enum",
|
|
20
|
+
"values": [
|
|
21
|
+
"enabled",
|
|
22
|
+
"disabled"
|
|
23
|
+
],
|
|
24
|
+
"fallback": "enabled",
|
|
25
|
+
"description": "Enables drag-and-drop item reordering or disables when set to disabled"
|
|
26
|
+
},
|
|
27
|
+
"data-ln-sortable-handle": {
|
|
28
|
+
"direction": "author",
|
|
29
|
+
"sources": [
|
|
30
|
+
"ln-sortable-dev.scss",
|
|
31
|
+
"ln-sortable.scss",
|
|
32
|
+
"src/ln-sortable.js"
|
|
33
|
+
],
|
|
34
|
+
"type": "marker",
|
|
35
|
+
"description": "Designates an element as the drag handle for its parent sortable item"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// ==========================================================================
|
|
2
|
+
// ln-sortable — Functional State & Drag Rules
|
|
3
|
+
// ==========================================================================
|
|
4
|
+
|
|
5
|
+
[data-ln-sortable] {
|
|
6
|
+
&.ln-sortable--active {
|
|
7
|
+
user-select: none;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
> * {
|
|
11
|
+
&.ln-sortable--dragging {
|
|
12
|
+
will-change: transform, opacity;
|
|
13
|
+
opacity: 0.4;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
[data-ln-sortable-handle] {
|
|
19
|
+
touch-action: none;
|
|
20
|
+
cursor: grab;
|
|
21
|
+
|
|
22
|
+
&:active {
|
|
23
|
+
cursor: grabbing;
|
|
24
|
+
}
|
|
25
|
+
}
|
package/package.json
CHANGED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
@use '../config/mixins' as *;
|
|
2
|
+
|
|
3
|
+
[data-ln-sortable] {
|
|
4
|
+
list-style: none;
|
|
5
|
+
padding: 0;
|
|
6
|
+
margin: 0;
|
|
7
|
+
|
|
8
|
+
> * {
|
|
9
|
+
transition: box-shadow var(--transition-fast) var(--easing-standard), opacity var(--transition-fast) var(--easing-standard);
|
|
10
|
+
|
|
11
|
+
&.ln-sortable--drop-before {
|
|
12
|
+
box-shadow: inset 0 2px 0 0 var(--color-accent);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&.ln-sortable--drop-after {
|
|
16
|
+
box-shadow: inset 0 -2px 0 0 var(--color-accent);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
@mixin overflow-hidden { overflow: hidden; }
|
|
11
11
|
@mixin overflow-auto { overflow: auto; }
|
|
12
|
-
@mixin overflow-x-auto { overflow-x: auto; -webkit-overflow-scrolling: touch; }
|
|
12
|
+
@mixin overflow-x-auto { overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
|
|
13
13
|
|
|
14
14
|
// Sticky pin to the top of the nearest scroll container.
|
|
15
15
|
//
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
border-inline-start: var(--border-inline-start, var(--border-width) solid var(--color-border));
|
|
23
23
|
border-inline-end: var(--border-inline-end, var(--border-width) solid var(--color-border));
|
|
24
24
|
@include transition;
|
|
25
|
+
contain: layout style;
|
|
25
26
|
|
|
26
27
|
> [data-ln-stat-label] {
|
|
27
28
|
--color-fg: var(--fg-muted);
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
opacity: 1;
|
|
62
62
|
@include motion-safe {
|
|
63
63
|
transform: translateX(0);
|
|
64
|
-
transition:
|
|
64
|
+
transition: transform var(--transition-base) var(--easing-standard), opacity var(--transition-base) var(--easing-standard);
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
& + & {
|
|
@@ -73,6 +73,7 @@
|
|
|
73
73
|
@mixin toast-item-enter {
|
|
74
74
|
opacity: 0;
|
|
75
75
|
@include motion-safe {
|
|
76
|
+
will-change: transform, opacity;
|
|
76
77
|
transform: translateX(30px);
|
|
77
78
|
}
|
|
78
79
|
}
|
|
@@ -80,8 +81,9 @@
|
|
|
80
81
|
@mixin toast-item-out {
|
|
81
82
|
opacity: 0;
|
|
82
83
|
@include motion-safe {
|
|
84
|
+
will-change: transform, opacity;
|
|
83
85
|
transform: scale(0.95);
|
|
84
|
-
transition:
|
|
86
|
+
transition: transform var(--transition-fast), opacity var(--transition-fast);
|
|
85
87
|
}
|
|
86
88
|
}
|
|
87
89
|
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
@use '../components/ln-modal/ln-modal';
|
|
16
16
|
@use '../components/ln-popover/ln-popover';
|
|
17
17
|
@use '../components/ln-search/ln-search';
|
|
18
|
+
@use '../components/ln-sortable/ln-sortable';
|
|
18
19
|
@use '../components/ln-table/ln-table';
|
|
19
20
|
@use '../components/ln-tabs/ln-tabs';
|
|
20
21
|
@use '../components/ln-toast/ln-toast';
|