@fox-dls/carousels 0.0.1 → 1.0.0

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.
Files changed (37) hide show
  1. package/.babelrc +12 -0
  2. package/.eslintrc.json +74 -0
  3. package/CHANGELOG.md +18 -0
  4. package/{index.d.ts → dist/index.d.ts} +1 -3
  5. package/dist/index.esm.js +516 -0
  6. package/dist/index.esm.js.map +1 -0
  7. package/dist/index.js +526 -0
  8. package/dist/index.js.map +1 -0
  9. package/{lib → dist/lib}/card/index.d.ts +0 -0
  10. package/dist/lib/card/styles/index.d.ts +1 -0
  11. package/{lib → dist/lib}/free/index.d.ts +0 -0
  12. package/dist/lib/free/styles/index.d.ts +1 -0
  13. package/{lib → dist/lib}/pagination/index.d.ts +0 -0
  14. package/dist/lib/pagination/styles/index.d.ts +6 -0
  15. package/dist/lib/pills/index.d.ts +2 -0
  16. package/dist/lib/pills/styles/index.d.ts +6 -0
  17. package/{lib → dist/lib}/styles/index.d.ts +1 -2
  18. package/package.json +110 -8
  19. package/src/index.ts +6 -0
  20. package/src/lib/card/index.tsx +122 -0
  21. package/src/lib/card/styles/index.tsx +4 -0
  22. package/src/lib/free/index.tsx +140 -0
  23. package/src/lib/free/styles/index.tsx +79 -0
  24. package/src/lib/pagination/index.tsx +133 -0
  25. package/src/lib/pagination/styles/index.tsx +79 -0
  26. package/src/lib/pills/index.tsx +207 -0
  27. package/src/lib/pills/styles/index.tsx +57 -0
  28. package/src/lib/styles/index.tsx +168 -0
  29. package/tsconfig.build.json +11 -0
  30. package/tsconfig.json +15 -0
  31. package/carousels.esm.js +0 -2135
  32. package/carousels.umd.js +0 -591
  33. package/lib/buttons/index.d.ts +0 -2
  34. package/lib/buttons/styles/index.d.ts +0 -8
  35. package/lib/card/styles/index.d.ts +0 -3
  36. package/lib/free/styles/index.d.ts +0 -3
  37. package/lib/pagination/styles/index.d.ts +0 -8
@@ -0,0 +1,133 @@
1
+ /* eslint-disable unused-imports/no-unused-vars */
2
+ import React, { useRef } from 'react';
3
+
4
+ import SwiperCore, { Navigation, Pagination } from 'swiper';
5
+ import { SwiperSlide } from 'swiper/react';
6
+
7
+ import { CarouselSwiper, CarouselPillSvg, CarouselPill } from './styles';
8
+
9
+ SwiperCore.use([Navigation, Pagination]);
10
+
11
+ export const PaginationCarousel: React.FC<any> = ({
12
+ children,
13
+ navigation,
14
+ title,
15
+ controls,
16
+ ...props
17
+ }) => {
18
+ const prevRef = useRef<HTMLDivElement>(null);
19
+ const nextRef = useRef<HTMLDivElement>(null);
20
+ return (
21
+ <>
22
+ <div
23
+ css={`
24
+ @keyframes fadein {
25
+ 0% {
26
+ opacity: 0;
27
+ }
28
+
29
+ 100% {
30
+ opacity: 1;
31
+ }
32
+ }
33
+ position: absolute !important;
34
+ top: 50% !important;
35
+ pointer-events: auto !important;
36
+ transform: translateY(-50%) !important;
37
+ left: 8px !important;
38
+ animation-duration: 0.3s !important;
39
+ animation-name: fadein !important;
40
+ z-index: 180 !important;
41
+ opacity: 0 !important;
42
+ :hover {
43
+ opacity: 1 !important;
44
+ }
45
+ `}
46
+ >
47
+ <CarouselPill ref={prevRef}>
48
+ <span
49
+ css={`
50
+ position: relative !important;
51
+ `}
52
+ >
53
+ <CarouselPillSvg
54
+ viewBox="0 0 16 16"
55
+ role="presentation"
56
+ aria-hidden="true"
57
+ focusable="false"
58
+ >
59
+ <path d="m10.8 16c-.4 0-.7-.1-.9-.4l-6.8-6.7c-.5-.5-.5-1.3 0-1.8l6.8-6.7c.5-.5 1.2-.5 1.7 0s .5 1.2 0 1.7l-5.8 5.9 5.8 5.9c.5.5.5 1.2 0 1.7-.2.3-.5.4-.8.4" />
60
+ </CarouselPillSvg>
61
+ </span>
62
+ </CarouselPill>
63
+ </div>
64
+ <div
65
+ css={`
66
+ @keyframes fadein {
67
+ 0% {
68
+ opacity: 0;
69
+ }
70
+
71
+ 100% {
72
+ opacity: 1;
73
+ }
74
+ }
75
+ position: absolute !important;
76
+ top: 50% !important;
77
+ pointer-events: auto !important;
78
+ transform: translateY(-50%) !important;
79
+ right: 8px !important;
80
+ animation-duration: 0.3s !important;
81
+ animation-name: fadein !important;
82
+ z-index: 180 !important;
83
+ opacity: 0 !important;
84
+ :hover {
85
+ opacity: 1 !important;
86
+ }
87
+ `}
88
+ >
89
+ <CarouselPill ref={nextRef}>
90
+ <span
91
+ css={`
92
+ position: relative !important;
93
+ `}
94
+ >
95
+ <CarouselPillSvg
96
+ viewBox="0 0 16 16"
97
+ role="presentation"
98
+ aria-hidden="true"
99
+ focusable="false"
100
+ >
101
+ <path d="m5.3 16c .3 0 .6-.1.8-.4l6.8-6.7c.5-.5.5-1.3 0-1.8l-6.8-6.7c-.5-.5-1.2-.5-1.7 0s-.5 1.2 0 1.7l5.8 5.9-5.8 5.9c-.5.5-.5 1.2 0 1.7.2.3.5.4.9.4" />
102
+ </CarouselPillSvg>
103
+ </span>
104
+ </CarouselPill>
105
+ </div>
106
+ <CarouselSwiper
107
+ {...props}
108
+ pagination={{
109
+ dynamicBullets: true
110
+ }}
111
+ onInit={swiper => {
112
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
113
+ // @ts-ignore
114
+ // eslint-disable-next-line no-param-reassign
115
+ swiper.params.navigation.prevEl = prevRef.current;
116
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
117
+ // @ts-ignore
118
+ // eslint-disable-next-line no-param-reassign
119
+ swiper.params.navigation.nextEl = nextRef.current;
120
+ swiper.navigation.init();
121
+ swiper.navigation.update();
122
+ // console.log("Swiper", swiper);
123
+ }}
124
+ >
125
+ {React.Children.map(children, child =>
126
+ React.cloneElement(<SwiperSlide>{child}</SwiperSlide>, {
127
+ ...props
128
+ })
129
+ )}
130
+ </CarouselSwiper>
131
+ </>
132
+ );
133
+ };
@@ -0,0 +1,79 @@
1
+ import ButtonUnstyled from '@mui/core/ButtonUnstyled';
2
+ import styled from 'styled-components';
3
+ import { Swiper } from 'swiper/react';
4
+
5
+ export const CarouselContainer = styled.div``;
6
+
7
+ export const CarouselSwiper = styled(Swiper)`
8
+ height: 100%;
9
+ .swiper-pagination {
10
+ .swiper-pagination-bullet-active {
11
+ background-color: #fff;
12
+ }
13
+ .swiper-pagination-bullet-active-next {
14
+ background-color: #ffffff;
15
+ }
16
+ .swiper-pagination-bullet {
17
+ background-color: #ffffff;
18
+ }
19
+ }
20
+ `;
21
+
22
+ export const CarouselPill = styled(ButtonUnstyled)`
23
+ :hover {
24
+ border-color: rgba(0, 0, 0, 0.08) !important;
25
+ background-color: #ffffff !important;
26
+ color: #000000 !important;
27
+ box-shadow: 0px 0px 0px 1px transparent, 0px 0px 0px 4px transparent,
28
+ 0px 6px 16px rgb(0 0 0 / 12%) !important;
29
+ -webkit-transform: scale(1.04) !important;
30
+ -ms-transform: scale(1.04) !important;
31
+ transform: scale(1.04) !important;
32
+ }
33
+
34
+ -webkit-box-pack: center !important;
35
+ -ms-flex-pack: center !important;
36
+ -webkit-box-align: center !important;
37
+ -ms-flex-align: center !important;
38
+ -webkit-appearance: none !important;
39
+ -moz-appearance: none !important;
40
+ appearance: none !important;
41
+ display: -webkit-inline-box !important;
42
+ display: -moz-inline-box !important;
43
+ display: -ms-inline-flexbox !important;
44
+ display: -webkit-inline-flex !important;
45
+ display: inline-flex !important;
46
+ border-radius: 50% !important;
47
+ border: 0px !important;
48
+ outline: none !important;
49
+ margin: 0px !important;
50
+ padding: 0px !important;
51
+ color: #222222 !important;
52
+ background-color: rgba(255, 255, 255, 0.9) !important;
53
+ cursor: pointer !important;
54
+ -ms-touch-action: manipulation !important;
55
+ touch-action: manipulation !important;
56
+ -webkit-align-items: center !important;
57
+ align-items: center !important;
58
+ -webkit-justify-content: center !important;
59
+ justify-content: center !important;
60
+ border-style: solid !important;
61
+ border-width: 1px !important;
62
+ background-clip: padding-box !important;
63
+ border-color: rgba(0, 0, 0, 0.08) !important;
64
+ box-shadow: 0px 0px 0px 1px transparent, 0px 0px 0px 4px transparent,
65
+ 0px 2px 4px rgb(0 0 0 / 18%) !important;
66
+ -webkit-transition: -webkit-transform 0.25s ease, transform 0.25s ease !important;
67
+ -moz-transition: transform 0.25s ease !important;
68
+ transition: -ms-transform 0.25s ease, -webkit-transform 0.25s ease,
69
+ transform 0.25s ease !important;
70
+ width: 32px !important;
71
+ height: 32px !important;
72
+ `;
73
+
74
+ export const CarouselPillSvg = styled.svg`
75
+ height: 10px;
76
+ width: 10px;
77
+ display: block;
78
+ fill: currentcolor;
79
+ `;
@@ -0,0 +1,207 @@
1
+ /* eslint-disable @typescript-eslint/no-shadow */
2
+ /* eslint-disable unused-imports/no-unused-vars */
3
+ import React, { useRef, useState } from 'react';
4
+
5
+ import { css } from 'styled-components';
6
+ import SwiperCore, { Navigation } from 'swiper';
7
+ import { SwiperSlide } from 'swiper/react';
8
+
9
+ import { CarouselSwiper, CarouselPillContainer, CarouselPill } from './styles';
10
+
11
+ SwiperCore.use([Navigation]);
12
+
13
+ export const PillsCarousel: React.FC<any> = ({
14
+ children,
15
+ navigation,
16
+ title,
17
+ controls,
18
+ arrows,
19
+ ...props
20
+ }) => {
21
+ const prevRef = useRef<any>(null);
22
+ const nextRef = useRef<any>(null);
23
+ const [swiperSlides, setSwiperSlides] = useState<any>({
24
+ progress: 0,
25
+ isBeginning: true,
26
+ isEnd: false
27
+ });
28
+ const [swiper, setSwiper] = useState<any>(null);
29
+ return (
30
+ <div
31
+ css={`
32
+ display: flex !important;
33
+ position: relative !important;
34
+ min-width: 0px !important;
35
+ `}
36
+ >
37
+ <div
38
+ css={`
39
+ position: absolute !important;
40
+ left: 0px !important;
41
+ z-index: 3 !important;
42
+ width: 65px !important;
43
+ background: linear-gradient(
44
+ to right,
45
+ rgb(255, 255, 255) 56.77%,
46
+ rgba(255, 255, 255, 0) 94.47%
47
+ ) !important;
48
+ ${swiperSlides.isBeginning &&
49
+ css`
50
+ display: none !important;
51
+ visibility: hidden !important;
52
+ `}
53
+ `}
54
+ >
55
+ {arrows && (
56
+ <CarouselPillContainer>
57
+ <CarouselPill
58
+ left={+true}
59
+ ref={prevRef}
60
+ aria-label="Previous"
61
+ type="button"
62
+ onClick={() => swiper.slidePrev()}
63
+ >
64
+ <span
65
+ css={`
66
+ position: relative !important;
67
+ `}
68
+ >
69
+ <svg
70
+ viewBox="0 0 32 32"
71
+ xmlns="http://www.w3.org/2000/svg"
72
+ aria-hidden="true"
73
+ role="presentation"
74
+ focusable="false"
75
+ css={`
76
+ display: block;
77
+ fill: none;
78
+ height: 12px;
79
+ width: 12px;
80
+ stroke: currentcolor;
81
+ stroke-width: 5.33333;
82
+ overflow: visible;
83
+ `}
84
+ >
85
+ <g fill="none">
86
+ <path d="m20 28-11.29289322-11.2928932c-.39052429-.3905243-.39052429-1.0236893 0-1.4142136l11.29289322-11.2928932" />
87
+ </g>
88
+ </svg>
89
+ </span>
90
+ </CarouselPill>
91
+ </CarouselPillContainer>
92
+ )}
93
+ </div>
94
+
95
+ <CarouselSwiper
96
+ {...props}
97
+ cssMode={false}
98
+ slidesPerView="auto"
99
+ onInit={(swiper: any) => {
100
+ setSwiper(swiper);
101
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
102
+ // @ts-ignore
103
+ // eslint-disable-next-line no-param-reassign
104
+ swiper.params.navigation.prevEl = prevRef.current;
105
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
106
+ // @ts-ignore
107
+ // eslint-disable-next-line no-param-reassign
108
+ swiper.params.navigation.nextEl = nextRef.current;
109
+ swiper.navigation.init();
110
+ swiper.navigation.update();
111
+ setSwiperSlides({
112
+ progress: swiper.progress,
113
+ isBeginning: swiper.isBeginning,
114
+ isEnd: swiper.isEnd
115
+ });
116
+ // console.log("Swiper", swiper);
117
+ }}
118
+ onSlideChange={swiper => {
119
+ // console.log("Swiper Change", swiper);
120
+
121
+ setSwiperSlides({
122
+ progress: swiper.progress,
123
+ isBeginning: swiper.isBeginning,
124
+ isEnd: swiper.isEnd
125
+ });
126
+ }}
127
+ >
128
+ {React.Children.map(children, child => (
129
+ <SwiperSlide>
130
+ <div
131
+ css={`
132
+ display: inline-block !important;
133
+ white-space: nowrap !important;
134
+ padding-right: 8px !important;
135
+ padding-top: 4px !important;
136
+ padding-bottom: 4px !important;
137
+ `}
138
+ >
139
+ {child}
140
+ </div>
141
+ </SwiperSlide>
142
+ ))}
143
+ </CarouselSwiper>
144
+
145
+ <div
146
+ css={`
147
+ -webkit-box-pack: end !important;
148
+ position: absolute !important;
149
+ right: 0px !important;
150
+ z-index: 3 !important;
151
+ width: 75px !important;
152
+ display: flex !important;
153
+ justify-content: flex-end !important;
154
+ background: linear-gradient(
155
+ to left,
156
+ rgb(255, 255, 255) 56.77%,
157
+ rgba(255, 255, 255, 0) 94.47%
158
+ ) !important;
159
+ ${swiperSlides.isEnd &&
160
+ css`
161
+ display: none !important;
162
+ visibility: hidden !important;
163
+ `}
164
+ `}
165
+ >
166
+ {arrows && (
167
+ <CarouselPillContainer>
168
+ <CarouselPill
169
+ right={+true}
170
+ aria-label="Next"
171
+ type="button"
172
+ ref={nextRef}
173
+ onClick={() => swiper.slideNext()}
174
+ >
175
+ <span
176
+ css={`
177
+ position: relative !important;
178
+ `}
179
+ >
180
+ <svg
181
+ viewBox="0 0 32 32"
182
+ xmlns="http://www.w3.org/2000/svg"
183
+ aria-hidden="true"
184
+ role="presentation"
185
+ focusable="false"
186
+ css={`
187
+ display: block;
188
+ fill: none;
189
+ height: 12px;
190
+ width: 12px;
191
+ stroke: currentcolor;
192
+ stroke-width: 5.33333;
193
+ overflow: visible;
194
+ `}
195
+ >
196
+ <g fill="none">
197
+ <path d="m12 4 11.2928932 11.2928932c.3905243.3905243.3905243 1.0236893 0 1.4142136l-11.2928932 11.2928932" />
198
+ </g>
199
+ </svg>
200
+ </span>
201
+ </CarouselPill>
202
+ </CarouselPillContainer>
203
+ )}
204
+ </div>
205
+ </div>
206
+ );
207
+ };
@@ -0,0 +1,57 @@
1
+ import ButtonUnstyled from '@mui/core/ButtonUnstyled';
2
+ import styled from 'styled-components';
3
+ import { Swiper } from 'swiper/react';
4
+
5
+ export const CarouselContainer = styled.div``;
6
+
7
+ export const CarouselSwiper = styled(Swiper)`
8
+ margin: 0px !important;
9
+ .swiper-wrapper {
10
+ .swiper-slide {
11
+ scroll-snap-align: start !important;
12
+ width: auto !important;
13
+ }
14
+ }
15
+ `;
16
+
17
+ export const CarouselPillContainer = styled.div`
18
+ display: inline-block !important;
19
+ padding-right: 8px !important;
20
+ padding-top: 4px !important;
21
+ padding-bottom: 4px !important;
22
+ `;
23
+
24
+ export const CarouselPill = styled(ButtonUnstyled)<any>`
25
+ -webkit-box-pack: center !important;
26
+ -webkit-box-align: center !important;
27
+ appearance: none !important;
28
+ display: inline-flex !important;
29
+ border-radius: 50% !important;
30
+ border: 1px solid rgb(221, 221, 221) !important;
31
+ outline: none !important;
32
+ margin: 0px !important;
33
+ padding: 0px !important;
34
+ color: rgb(34, 34, 34) !important;
35
+ cursor: pointer !important;
36
+ touch-action: manipulation !important;
37
+ position: relative !important;
38
+ background: transparent !important;
39
+ transition: -ms-transform 0.25s ease 0s, -webkit-transform 0.25s ease 0s,
40
+ transform 0.25s ease 0s !important;
41
+ align-items: center !important;
42
+ justify-content: center !important;
43
+ width: 36px !important;
44
+ height: 36px !important;
45
+ ::before {
46
+ content: '' !important;
47
+ display: block !important;
48
+ position: absolute !important;
49
+ top: 50% !important;
50
+ left: 50% !important;
51
+ transform: translate(-50%, -50%) !important;
52
+ width: 36px !important;
53
+ height: 36px !important;
54
+ border-radius: 50% !important;
55
+ border: 1px solid rgb(221, 221, 221) !important;
56
+ }
57
+ `;
@@ -0,0 +1,168 @@
1
+ import ButtonUnstyled from '@mui/core/ButtonUnstyled';
2
+ import styled from 'styled-components';
3
+
4
+ export const CarouselContainer = styled.div`
5
+ position: relative !important;
6
+ z-index: 0 !important;
7
+ `;
8
+
9
+ export const CarouselNavbar = styled.div`
10
+ -webkit-box-pack: justify !important;
11
+ -ms-flex-pack: justify !important;
12
+ -webkit-box-align: center !important;
13
+ -ms-flex-align: center !important;
14
+ color: #222222 !important;
15
+ display: -webkit-box !important;
16
+ display: -moz-box !important;
17
+ display: -ms-flexbox !important;
18
+ display: -webkit-flex !important;
19
+ display: flex !important;
20
+ -webkit-align-items: center !important;
21
+ align-items: center !important;
22
+ -webkit-justify-content: space-between !important;
23
+ justify-content: space-between !important;
24
+ margin-bottom: 16px !important;
25
+ `;
26
+
27
+ export const NavbarTitleContainer = styled.div`
28
+ margin-right: 24px !important;
29
+ width: auto !important;
30
+ `;
31
+
32
+ export const NavbarTitle = styled.div`
33
+ @media (min-width: 744px) {
34
+ font-size: 32px !important;
35
+ line-height: 36px !important;
36
+ font-weight: 800 !important;
37
+ text-align: left !important;
38
+ color: #222222 !important;
39
+ margin-bottom: 15px !important;
40
+ }
41
+ font-size: 22px !important;
42
+ line-height: 26px !important;
43
+ font-weight: 600 !important;
44
+ margin-bottom: 10px !important;
45
+ `;
46
+
47
+ export const NavbarControlsContainer = styled.div`
48
+ display: flex !important;
49
+ align-items: center !important;
50
+ margin-left: auto !important;
51
+ `;
52
+
53
+ export const NavbarControlsQuick = styled.a`
54
+ @media (max-width: 744px) {
55
+ display: none !important;
56
+ }
57
+ font-size: inherit !important;
58
+ font-family: inherit !important;
59
+ font-style: inherit !important;
60
+ font-variant: inherit !important;
61
+ line-height: inherit !important;
62
+ color: #222222 !important;
63
+ text-decoration: underline !important;
64
+ border-radius: 4px !important;
65
+ font-weight: 600 !important;
66
+ outline: none !important;
67
+ `;
68
+
69
+ export const NavbarControlsSpace = styled.span`
70
+ display: inline-block !important;
71
+ height: 32px !important;
72
+ width: 1px !important;
73
+ margin-right: 16px !important;
74
+ padding: 0px !important;
75
+ border: none !important;
76
+ `;
77
+
78
+ export const ArrowsContainer = styled.div`
79
+ -webkit-box-align: center !important;
80
+ color: rgb(34, 34, 34) !important;
81
+ display: flex !important;
82
+ align-items: center !important;
83
+ margin-left: auto !important;
84
+ `;
85
+
86
+ export const ArrowsFlex = styled.div`
87
+ display: -webkit-box !important;
88
+ display: -moz-box !important;
89
+ display: -ms-flexbox !important;
90
+ display: -webkit-flex !important;
91
+ display: flex !important;
92
+ `;
93
+
94
+ export const ArrowsButton = styled(ButtonUnstyled)<any>`
95
+ -webkit-box-pack: center !important;
96
+ -webkit-box-align: center !important;
97
+ appearance: none !important;
98
+ display: inline-flex !important;
99
+ border-radius: 50% !important;
100
+ border: none !important;
101
+ outline: none !important;
102
+ margin: 0px !important;
103
+ padding: 0px !important;
104
+ color: rgb(34, 34, 34) !important;
105
+ cursor: pointer !important;
106
+ touch-action: manipulation !important;
107
+ position: relative !important;
108
+ background: transparent !important;
109
+ transition: -ms-transform 0.25s ease 0s, -webkit-transform 0.25s ease 0s,
110
+ transform 0.25s ease 0s !important;
111
+ align-items: center !important;
112
+ justify-content: center !important;
113
+ width: 32px !important;
114
+ height: 32px !important;
115
+ :focus {
116
+ box-shadow: none !important;
117
+ }
118
+ ::before {
119
+ content: '' !important;
120
+ display: block !important;
121
+ position: absolute !important;
122
+ top: 50% !important;
123
+ left: 50% !important;
124
+ transform: translate(-50%, -50%) !important;
125
+ width: 32px !important;
126
+ height: 32px !important;
127
+ border-radius: 50% !important;
128
+ background: rgb(255, 255, 255) !important;
129
+ border: 1px solid rgb(221, 221, 221) !important;
130
+ }
131
+ :disabled {
132
+ opacity: 0.5 !important;
133
+ cursor: not-allowed !important;
134
+ color: rgb(221, 221, 221) !important;
135
+ transform: scale(1) !important;
136
+ }
137
+ :hover:not([disabled]) {
138
+ color: rgb(0, 0, 0) !important;
139
+ transform: scale(1.04) !important;
140
+ }
141
+ `;
142
+
143
+ export const ArrowsDivider = styled.span`
144
+ margin-left: 8px !important;
145
+ `;
146
+
147
+ export const ArrowsIconClip = styled.span`
148
+ border: 0px !important;
149
+ clip: rect(0 0 0 0) !important;
150
+ -webkit-clip-path: inset(100%) !important;
151
+ clip-path: inset(100%) !important;
152
+ height: 1px !important;
153
+ overflow: hidden !important;
154
+ padding: 0px !important;
155
+ position: absolute !important;
156
+ white-space: nowrap !important;
157
+ width: 1px !important;
158
+ `;
159
+
160
+ export const ArrowsSvg = styled.svg`
161
+ display: block;
162
+ fill: none;
163
+ height: 12px;
164
+ width: 12px;
165
+ stroke: currentcolor;
166
+ stroke-width: 4;
167
+ overflow: visible;
168
+ `;
@@ -0,0 +1,11 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "rootDir": "./src",
5
+ "target": "esnext",
6
+ "module": "esnext",
7
+ "jsx": "react-jsx",
8
+ "jsxFactory": "",
9
+ "jsxFragmentFactory": ""
10
+ }
11
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,15 @@
1
+ {
2
+ "extends": "../../tsconfig.base.json",
3
+ "compilerOptions": {
4
+ "baseUrl": "./src",
5
+ "target": "esnext",
6
+ "lib": ["dom", "dom.iterable", "esnext"],
7
+ "module": "esnext",
8
+ "jsx": "react-jsx",
9
+ "noEmit": false,
10
+ "composite": false,
11
+ "incremental": true,
12
+ "paths": {}
13
+ },
14
+ "exclude": ["dist"]
15
+ }