1
+ import React from "react" ;
2
+
3
+ export const renderTrack = ( { style, ...props } ) => {
4
+ const trackStyle = {
5
+ position : "absolute" ,
6
+ maxWidth : "100%" ,
7
+ width : 6 ,
8
+ transition : "opacity 200ms ease 0s" ,
9
+ opacity : 0 ,
10
+ bottom : 2 ,
11
+ top : 2 ,
12
+ borderRadius : 3 ,
13
+ right : 0 ,
14
+ } ;
15
+ return < div style = { { ...style , ...trackStyle } } { ...props } /> ;
16
+ } ;
17
+ export const renderTrackRTL = ( { style, ...props } ) => {
18
+ const trackStyle = {
19
+ position : "absolute" ,
20
+ width : 6 ,
21
+ transition : "opacity 200ms ease 0s" ,
22
+ opacity : 0 ,
23
+ bottom : 2 ,
24
+ top : 2 ,
25
+ borderRadius : 3 ,
26
+ right : "unset" ,
27
+ left : 0 ,
28
+ } ;
29
+ return < div style = { { ...style , ...trackStyle } } { ...props } /> ;
30
+ } ;
31
+ export const renderThumbDark = ( { style, ...props } ) => {
32
+ const thumbStyle = {
33
+ borderRadius : 15 ,
34
+ background : "rgba(222, 222, 222, .1)" ,
35
+ } ;
36
+ return < div style = { { ...style , ...thumbStyle } } { ...props } /> ;
37
+ } ;
38
+ export const renderThumbLight = ( { style, ...props } ) => {
39
+ const thumbStyle = {
40
+ borderRadius : 15 ,
41
+ background : "rgba(48, 48, 48, .1)" ,
42
+ } ;
43
+ return < div style = { { ...style , ...thumbStyle } } { ...props } /> ;
44
+ } ;
45
+ export const renderView = ( { style, ...props } ) => {
46
+ const viewStyle = {
47
+ marginRight : - 22 ,
48
+ } ;
49
+ return < div style = { { ...style , ...viewStyle } } { ...props } /> ;
50
+ } ;
51
+ export const renderViewRTL = ( { style, ...props } ) => {
52
+ const viewStyle = {
53
+ marginRight : "unset" ,
54
+ marginLeft : - 15 ,
55
+ } ;
56
+ return < div style = { { ...style , ...viewStyle } } { ...props } /> ;
57
+ } ;
58
+
59
+ export const kanbanRenderTrack = ( { style, ...props } ) => {
60
+ const trackStyle = {
61
+ width : 6 ,
62
+ transition : "opacity 200ms ease 0s" ,
63
+ opacity : 0 ,
64
+ bottom : 2 ,
65
+ top : 2 ,
66
+ borderRadius : 3 ,
67
+ right : 0 ,
68
+ } ;
69
+ return < div style = { { ...style , ...trackStyle } } { ...props } /> ;
70
+ } ;
71
+ export const kanbanRenderThumbDark = ( { style, ...props } ) => {
72
+ const thumbStyle = {
73
+ borderRadius : 15 ,
74
+ background : "rgba(222, 222, 222, .1)" ,
75
+ } ;
76
+ return < div style = { { ...style , ...thumbStyle } } { ...props } /> ;
77
+ } ;
78
+ export const kanbanRenderThumbLight = ( { style, ...props } ) => {
79
+ const thumbStyle = {
80
+ borderRadius : 15 ,
81
+ background : "rgba(48, 48, 48, .1)" ,
82
+ } ;
83
+ return < div style = { { ...style , ...thumbStyle } } { ...props } /> ;
84
+ } ;
85
+ export const kanbanRenderView = ( { style, ...props } ) => {
86
+ const viewStyle = {
87
+ position : "relative" ,
88
+ marginRight : - 15 ,
89
+ } ;
90
+ return < div style = { { ...style , ...viewStyle } } { ...props } /> ;
91
+ } ;
0 commit comments