@cyca/react-timeline-editor 0.2.3-alpha.0 → 0.2.3-alpha.2
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/react-timeline-editor.cjs +4 -4
- package/dist/react-timeline-editor.js +2837 -2089
- package/dist/styles.css +1 -0
- package/package.json +4 -3
- package/dist/react-timeline-editor.css +0 -1
package/dist/styles.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer base,components;@layer components{.timeline-editor{min-height:2rem;position:relative;font-size:.75rem;line-height:1rem;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";background-color:#0c0c0c;overflow:hidden;transition:all .3s ease-in-out}.timeline-editor-edit-area{margin-top:.625rem;min-height:calc(100% - 42px);background-repeat:no-repeat,repeat;background-image:linear-gradient(transparent,transparent),linear-gradient(90deg,oklch(100% 0 0 / .08) 1px,transparent 0)}.timeline-editor-edit-row{display:flex;flex-direction:row}.timeline-editor-action{position:absolute;left:0;top:0;background-color:#3b3b3b}.timeline-editor-action-left-stretch,.timeline-editor-action-right-stretch{position:absolute;width:.625rem;height:100%;top:0;cursor:ew-resize}.timeline-editor-action-left-stretch:after,.timeline-editor-action-right-stretch:after{position:absolute;width:.25rem;background:#737373;top:20%;bottom:20%;border-radius:1rem}.timeline-editor-action-left-stretch{left:0}.timeline-editor-action-left-stretch:hover:after{opacity:1}.timeline-editor-action-left-stretch:after{content:"";opacity:1;transition:opacity .1s ease-in-out;left:.2rem}.timeline-editor-action-right-stretch{right:0}.timeline-editor-action-right-stretch:hover:after{opacity:1}.timeline-editor-action-right-stretch:after{content:"";opacity:1;right:.2rem;transition:opacity .1s ease-in-out}.timeline-editor-time-area{z-index:3;background-color:#0c0c0c;position:sticky;top:0;height:2rem;text-align:center;font-weight:700;font-size:1.125rem;line-height:1.75rem;overflow:clip}.timeline-editor-time-unit{box-sizing:content-box;position:absolute;left:0;border-right-width:1px;border-right-style:solid;border-right-color:#3b3b3b;bottom:0;top:auto;pointer-events:none}.timeline-editor-time-unit-big{height:.5rem}.timeline-editor-time-unit-small{height:.25rem}.timeline-editor-time-unit-scale{position:absolute;top:0;right:0;transform:translate(50%) translateY(-100%);pointer-events:none;color:#737373;font-size:.75rem;line-height:1rem;font-weight:300}.timeline-editor-cursor{cursor:ew-resize;position:absolute;box-sizing:border-box;transform:translate(-50%) scaleX(.5);top:2rem;min-height:calc(100% - 32px);z-index:2}.timeline-editor-cursor-top{position:sticky;transform:translate(0) translateY(0) scaleX(2);color:#0092fb;color:oklch(65.1% .197 250.3);top:2rem}.timeline-editor-cursor-area{box-sizing:content-box;border-left-width:1px;border-left-style:solid;border-left-color:#0092fb;border-left-color:oklch(65.1% .197 250.3);border-right-width:1px;border-right-style:solid;border-right-color:#0092fb;border-right-color:oklch(65.1% .197 250.3);width:0px;height:calc(100% - 2px);cursor:ew-resize;position:absolute;top:1px;left:-1px;transform:translate(200%)}.timeline-editor-drag-line-container{position:absolute;height:100%;left:0;top:0}.timeline-editor-drag-line{width:0;position:absolute;height:99%;border-left-color:#647485;border-left-width:1px;border-left-style:dashed;top:0}[data-slot=scroll-area]{position:relative}[data-slot=scroll-area-viewport]{width:100%;height:100%;border-radius:inherit;outline:none;transition-property:color,box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}[data-slot=scroll-area-viewport]>div{position:relative;height:100%}[data-slot=scroll-area-viewport]:focus-visible{outline-width:1px;outline-style:solid;outline-color:#3b3b3b;box-shadow:0 0 0 3px #3b3b3b80}[data-slot=scroll-area-scrollbar]{display:flex;touch-action:none;padding:1px;transition-property:color;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;-webkit-user-select:none;user-select:none}[data-slot=scroll-area-scrollbar][data-orientation=vertical]{height:100%;width:.625rem;border-left-width:1px;border-left-style:solid;border-left-color:transparent;transition:width .15s ease-in-out}[data-slot=scroll-area-scrollbar][data-orientation=vertical]:hover{width:1rem}[data-slot=scroll-area-scrollbar][data-orientation=horizontal]{height:.625rem;flex-direction:column;border-top-width:1px;border-top-style:solid;border-top-color:transparent;transition:height .15s ease-in-out}[data-slot=scroll-area-scrollbar][data-orientation=horizontal]:hover{height:1rem}[data-slot=scroll-area-thumb]{position:relative;flex:1 1 0%;border-radius:9999px;background-color:#3b3b3b}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cyca/react-timeline-editor",
|
|
3
|
-
"version": "0.2.3-alpha.
|
|
3
|
+
"version": "0.2.3-alpha.2",
|
|
4
4
|
"author": "cyca",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"import": "./dist/react-timeline-editor.js",
|
|
41
41
|
"require": "./dist/react-timeline-editor.cjs"
|
|
42
42
|
},
|
|
43
|
-
"./
|
|
43
|
+
"./styles.css": "./dist/styles.css",
|
|
44
44
|
"./package.json": "./package.json"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
@@ -52,7 +52,8 @@
|
|
|
52
52
|
"@tanstack/react-virtual": "^3.13.12",
|
|
53
53
|
"@use-gesture/vanilla": "^10.3.1",
|
|
54
54
|
"framework-utils": "^1.1.0",
|
|
55
|
-
"motion": "^12.23.24"
|
|
55
|
+
"motion": "^12.23.24",
|
|
56
|
+
"radix-ui": "^1.4.3"
|
|
56
57
|
},
|
|
57
58
|
"devDependencies": {
|
|
58
59
|
"@eslint/js": "^9.36.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@layer base,components;@layer components{.timeline-editor{min-height:2rem;position:relative;font-size:.75rem;line-height:1rem;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";background-color:#0a0a0a;display:flex;flex-direction:column;overflow:auto}.timeline-editor-edit-area{flex:1 1 0%;margin-top:.625rem;background-repeat:no-repeat,repeat;background-image:linear-gradient(transparent,transparent),linear-gradient(90deg,rgba(255,255,255,.08) 1px,transparent 0)}.timeline-editor-edit-row{display:flex;flex-direction:row}.timeline-editor-action{position:absolute;left:0;top:0;background-color:#404040}.timeline-editor-action-left-stretch,.timeline-editor-action-right-stretch{position:absolute;width:.625rem;border-radius:.25rem;height:100%;overflow:hidden;top:0}.timeline-editor-action-left-stretch:after,.timeline-editor-action-right-stretch:after{position:absolute;border-radius:.25rem;margin:auto;border-top-width:7rem;border-top-color:transparent;border-bottom-width:7rem;border-bottom-color:transparent;border-style:solid;top:0;bottom:0}.timeline-editor-action-left-stretch{left:0}.timeline-editor-action-left-stretch:after{content:"";border-left-color:#ffffff1a;border-right-color:transparent;border-left-width:7px;border-right-width:7px;border-style:solid;left:0}.timeline-editor-action-right-stretch{right:0}.timeline-editor-action-right-stretch:after{content:"";border-left-color:transparent;border-right-color:#ffffff1a;border-left-width:7px;border-right-width:7px;border-style:solid;right:0}.time-editor-time-area{z-index:1;background-color:#0a0a0a;position:sticky;top:0;height:2rem;text-align:center;font-weight:700;font-size:1.125rem;line-height:1.75rem;overflow:clip}.time-editor-time-unit{box-sizing:content-box;position:absolute;left:0;border-right-width:1px;border-right-style:solid;border-right-color:#404040;bottom:0;top:auto;pointer-events:none}.time-editor-time-unit-big{height:.5rem}.time-editor-time-unit-small{height:.25rem}.time-editor-time-unit-scale{position:absolute;top:0;right:0;transform:translate(50%) translateY(-100%);pointer-events:none;color:#737373;font-size:.75rem;line-height:1rem;font-weight:300}.timeline-editor-cursor{cursor:ew-resize;position:absolute;height:calc(100% - 32px);box-sizing:border-box;transform:translate(-25%) scaleX(.5);border-left-width:1px;border-left-style:solid;border-left-color:#3b82f6;border-right-width:1px;border-right-style:solid;border-right-color:#3b82f6;top:2rem}.timeline-editor-cursor-top{position:absolute;transform:translate(-50%) translateY(0) scaleX(2);margin:auto;left:50%;top:0}.timeline-editor-cursor-area{width:1rem;height:100%;cursor:ew-resize;position:absolute;transform:translate(-50%);left:50%;top:0}.timeline-editor-drag-line-container{position:absolute;height:100%;left:0;top:0}.timeline-editor-drag-line{width:0;position:absolute;height:99%;border-left-color:#64748b;border-left-width:1px;border-left-style:dashed;top:0}}
|