/** * Sortable Styles — ty-sortable host (shadow) and the light-DOM rules its * items need before a gesture starts (touch-action is read at pointerdown). */ export declare const sortableStyles = "\n:host {\n display: block;\n position: relative;\n box-sizing: border-box;\n --ty-sortable-indicator-color: var(--ty-color-primary, #3b82f6);\n --ty-sortable-blocked-color: var(--ty-color-danger, #ef4444);\n --ty-sortable-indicator-size: 2px;\n --ty-sortable-source-opacity: 0.4;\n --ty-sortable-source-outline: none;\n --ty-sortable-ghost-scale: 1.02;\n --ty-sortable-ghost-rotate: 0deg;\n --ty-sortable-ghost-shadow: var(--ty-shadow-xl, 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1));\n --ty-sortable-duration: 200ms;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n@media (any-pointer: coarse) {\n :host {\n --ty-sortable-indicator-size: 3px;\n }\n}\n\n/* An empty list being dragged over has no gap to draw a line in. */\n:host(:state(over):state(empty)) {\n outline: 2px dashed var(--ty-sortable-indicator-color);\n outline-offset: -2px;\n}\n\n:host(:state(blocked)) {\n outline: 2px dashed var(--ty-sortable-blocked-color);\n outline-offset: -2px;\n cursor: not-allowed;\n}\n\n.live {\n position: absolute;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n overflow: hidden;\n clip: rect(0 0 0 0);\n white-space: nowrap;\n border: 0;\n}\n"; /** * Adopted into every root (document or shadow root) that contains a * ty-sortable. touch-action must be on the element before the finger lands: * the browser decides whether a gesture pans at pointerdown. */ export declare const sortableLightStyles = "\nty-sortable [data-handle] {\n touch-action: none;\n cursor: grab;\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n user-select: none;\n}\nty-sortable img,\nty-sortable a {\n -webkit-user-drag: none;\n}\n@media (any-pointer: coarse) {\n ty-sortable:not(:state(handles)) > * {\n touch-action: manipulation;\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n user-select: none;\n }\n}\nty-sortable input,\nty-sortable textarea,\nty-sortable [contenteditable] {\n -webkit-user-select: text;\n user-select: text;\n}\n/* The dragged copy. Its list's --ty-sortable-* properties are carried over\n to the layer it lives in. Page CSS can restyle it, e.g. with a surface:\n [data-ty-sortable-ghost] { background: var(--ty-surface-floating); } */\n[data-ty-sortable-ghost] {\n box-shadow: var(--ty-sortable-ghost-shadow, 0 10px 20px rgba(0, 0, 0, 0.15));\n opacity: 0.95;\n}\n"; /** * Adopted into the document on the first drag. While a mouse drags: the * grabbing hand everywhere, not-allowed over a list that refuses the item. */ export declare const sortableCursorStyles = "\nbody:has(> [data-ty-sortable-layer][data-cursor=\"grabbing\"]),\nbody:has(> [data-ty-sortable-layer][data-cursor=\"grabbing\"]) * {\n cursor: grabbing !important;\n}\nbody:has(> [data-ty-sortable-layer][data-cursor=\"blocked\"]),\nbody:has(> [data-ty-sortable-layer][data-cursor=\"blocked\"]) * {\n cursor: not-allowed !important;\n}\n";