@cyca/react-timeline-editor 0.2.3-alpha.5 → 0.2.3-alpha.7
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/README.md +1 -1
- package/dist/index.d.ts +5 -12
- package/dist/react-timeline-editor.cjs +4 -4
- package/dist/react-timeline-editor.js +2776 -2857
- package/dist/styles.css +1 -1
- package/package.json +5 -3
package/dist/styles.css
CHANGED
|
@@ -1 +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:#
|
|
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 [data-slot=scroll-area]{position:relative}.timeline-editor [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}.timeline-editor [data-slot=scroll-area-viewport]>div{position:relative;height:100%}.timeline-editor [data-slot=scroll-area-viewport]:focus-visible{outline-width:1px;outline-style:solid;outline-color:#3b3b3b;box-shadow:0 0 0 3px #3b3b3b80}.timeline-editor [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}.timeline-editor [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}.timeline-editor [data-slot=scroll-area-scrollbar][data-orientation=vertical]:hover{width:1rem}.timeline-editor [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}.timeline-editor [data-slot=scroll-area-scrollbar][data-orientation=horizontal]:hover{height:1rem}.timeline-editor [data-slot=scroll-area-thumb]{position:relative;flex:1 1 0%;border-radius:9999px;background-color:#3b3b3b}.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{cursor:crosshair;z-index:3;background-color:#0c0c0ccc;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}}
|
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.7",
|
|
4
4
|
"author": "cyca",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -25,7 +25,9 @@
|
|
|
25
25
|
"lint:fix": "eslint . --ext .ts,.tsx --fix",
|
|
26
26
|
"lint:package": "npx --yes @arethetypeswrong/cli -P",
|
|
27
27
|
"typecheck": "tsc --noEmit",
|
|
28
|
-
"build-storybook": "storybook build"
|
|
28
|
+
"build-storybook": "storybook build",
|
|
29
|
+
"publish": "npm run build && npm publish --access public",
|
|
30
|
+
"publish:alpha": "npm run build && npm publish --access public --tag alpha"
|
|
29
31
|
},
|
|
30
32
|
"files": [
|
|
31
33
|
"dist"
|
|
@@ -50,7 +52,7 @@
|
|
|
50
52
|
"dependencies": {
|
|
51
53
|
"@cyca/log": "^0.1.1",
|
|
52
54
|
"@tanstack/react-virtual": "^3.13.12",
|
|
53
|
-
"@use-gesture/
|
|
55
|
+
"@use-gesture/react": "^10.3.1",
|
|
54
56
|
"framework-utils": "^1.1.0",
|
|
55
57
|
"motion": "^12.23.24",
|
|
56
58
|
"radix-ui": "^1.4.3"
|