forstok-ui-lib 5.7.3 → 5.7.6
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/index.js +113 -113
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +176 -176
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -1
- package/rollup.config.js +15 -9
- package/src/assets/stylesheets/shares.styles.ts +2 -6
- package/src/components/date/daterangepicker.css +0 -4
- package/src/components/date/index.tsx +0 -1
- package/src/components/date/react.datepicker.css +3 -31
- package/src/components/date/styles.css +0 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "forstok-ui-lib",
|
|
3
|
-
"version": "5.7.
|
|
3
|
+
"version": "5.7.6",
|
|
4
4
|
"description": "Forstok UI Components Library",
|
|
5
5
|
"path": "dist",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
"react-router-dom": "^7.1.1",
|
|
53
53
|
"react-select": "^5.10.0",
|
|
54
54
|
"rollup-plugin-dts": "^6.1.1",
|
|
55
|
+
"rollup-plugin-import-css": "^3.5.8",
|
|
55
56
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
56
57
|
"rollup-plugin-postcss": "^4.0.2",
|
|
57
58
|
"rollup-plugin-typescript2": "^0.36.0",
|
package/rollup.config.js
CHANGED
|
@@ -2,12 +2,13 @@ import PeerDepsExternalPlugin from 'rollup-plugin-peer-deps-external'
|
|
|
2
2
|
import resolve from '@rollup/plugin-node-resolve';
|
|
3
3
|
import commonjs from '@rollup/plugin-commonjs';
|
|
4
4
|
import terser from '@rollup/plugin-terser';
|
|
5
|
-
import postcss from 'rollup-plugin-postcss';
|
|
5
|
+
// import postcss from 'rollup-plugin-postcss';
|
|
6
6
|
import dts from 'rollup-plugin-dts';
|
|
7
7
|
import typescript from '@rollup/plugin-typescript';
|
|
8
8
|
import url from '@rollup/plugin-url';
|
|
9
9
|
import svgr from '@svgr/rollup';
|
|
10
10
|
import image from '@rollup/plugin-image';
|
|
11
|
+
import css from 'rollup-plugin-import-css';
|
|
11
12
|
|
|
12
13
|
const createStyledComponentsTransformer = require('typescript-plugin-styled-components').default;
|
|
13
14
|
const packageJson = require('./package.json');
|
|
@@ -50,15 +51,20 @@ export default [
|
|
|
50
51
|
],
|
|
51
52
|
}),
|
|
52
53
|
terser(),
|
|
53
|
-
postcss({
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
54
|
+
// postcss({
|
|
55
|
+
// config: {
|
|
56
|
+
// path: './postcss.config.js'
|
|
57
|
+
// },
|
|
58
|
+
// inject: true,
|
|
59
|
+
// minimize: true,
|
|
60
|
+
// sourceMap: true,
|
|
61
|
+
// modules: true,
|
|
62
|
+
// extract: true
|
|
63
|
+
// }),
|
|
64
|
+
css({
|
|
65
|
+
minify: true,
|
|
60
66
|
modules: true,
|
|
61
|
-
|
|
67
|
+
inject: true,
|
|
62
68
|
}),
|
|
63
69
|
url(),
|
|
64
70
|
svgr({ icon: true }),
|
|
@@ -2083,6 +2083,7 @@ export const FigureWraper = styled.figure<{ $size?: string, $mode?: string }>`
|
|
|
2083
2083
|
}}
|
|
2084
2084
|
`
|
|
2085
2085
|
export const PanelBody = styled.section`
|
|
2086
|
+
height: 100%;
|
|
2086
2087
|
${PanelContainer} {
|
|
2087
2088
|
overflow-y: auto;
|
|
2088
2089
|
}
|
|
@@ -2271,7 +2272,6 @@ export const TabsItem = styled.div<{ $activated?: boolean }>`
|
|
|
2271
2272
|
position: relative;
|
|
2272
2273
|
padding: 9px;
|
|
2273
2274
|
color: ${({ $activated }:{ $activated?: boolean }) => $activated ? 'var(--sec-clr-lnk__hvr)' : 'var(--pri-clr-lnk)'};
|
|
2274
|
-
|
|
2275
2275
|
&::after {
|
|
2276
2276
|
content: '';
|
|
2277
2277
|
position: absolute;
|
|
@@ -2816,7 +2816,6 @@ export const DropdownAction = styled.div`
|
|
|
2816
2816
|
grid-gap: 8px;
|
|
2817
2817
|
border-top: 1px solid var(--sec-clr-ln);
|
|
2818
2818
|
`
|
|
2819
|
-
|
|
2820
2819
|
export const FilterList = styled.ul`
|
|
2821
2820
|
${clearList}
|
|
2822
2821
|
`
|
|
@@ -3064,7 +3063,6 @@ export const CreateHeaderWrapper = styled.article<{ $mode?: string }>`
|
|
|
3064
3063
|
}
|
|
3065
3064
|
${getCreateHeaderWrapperModFunc}
|
|
3066
3065
|
`
|
|
3067
|
-
|
|
3068
3066
|
export const CreateToolWrapper = styled.article<{ $mode?: string, $type?: string }>`
|
|
3069
3067
|
padding: 20px 15px;
|
|
3070
3068
|
margin: .5em 0;
|
|
@@ -3193,7 +3191,6 @@ export const CreateToolWrapper = styled.article<{ $mode?: string, $type?: string
|
|
|
3193
3191
|
}
|
|
3194
3192
|
}}
|
|
3195
3193
|
`
|
|
3196
|
-
|
|
3197
3194
|
export const SearchDropdownContainer = styled.section`
|
|
3198
3195
|
position: relative;
|
|
3199
3196
|
`
|
|
@@ -3255,7 +3252,6 @@ export const PopupCard = styled.section<{ $mode?: string }>`
|
|
|
3255
3252
|
}
|
|
3256
3253
|
${getPopupCardModFunc}
|
|
3257
3254
|
`
|
|
3258
|
-
|
|
3259
3255
|
export const PopupExportCardWrapper = styled.article`
|
|
3260
3256
|
display: grid;
|
|
3261
3257
|
grid-auto-flow: row;
|
|
@@ -3263,4 +3259,4 @@ export const PopupExportCardWrapper = styled.article`
|
|
|
3263
3259
|
@media only screen and (min-width: 768px) {
|
|
3264
3260
|
grid-template-columns: 1fr 1fr;
|
|
3265
3261
|
}
|
|
3266
|
-
`
|
|
3262
|
+
`
|
|
@@ -71,16 +71,12 @@
|
|
|
71
71
|
.react-calendar__tile--now.react-calendar__tile--rangeStart.react-calendar__tile--rangeEnd.react-calendar__tile--active {
|
|
72
72
|
border-radius: 10px !important;
|
|
73
73
|
}
|
|
74
|
-
|
|
75
|
-
|
|
76
74
|
.react-calendar__tile--rangeStart, .react-calendar__tile--hoverStart {
|
|
77
75
|
border-radius: 10px 0px 0 10px !important;
|
|
78
76
|
}
|
|
79
77
|
.react-calendar__tile--rangeEnd, .react-calendar__tile--hoverEnd {
|
|
80
78
|
border-radius: 0 10px 10px 0 !important;
|
|
81
79
|
}
|
|
82
|
-
|
|
83
|
-
|
|
84
80
|
.react-calendar__month-view__days {
|
|
85
81
|
gap: 1px 0;
|
|
86
82
|
}
|
|
@@ -2,7 +2,6 @@ import { forwardRef, useState, useEffect } from 'react';
|
|
|
2
2
|
import DatePicker from 'react-datepicker';
|
|
3
3
|
import moment from 'moment';
|
|
4
4
|
import './react.datepicker.css';
|
|
5
|
-
import './styles.css';
|
|
6
5
|
import { DateContainer, DateIndicatorContainer } from './styles';
|
|
7
6
|
import type { TState } from '../../typeds/base.typed'
|
|
8
7
|
|
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
padding: 0;
|
|
18
18
|
border: 0;
|
|
19
19
|
}
|
|
20
|
-
|
|
21
20
|
.react-datepicker {
|
|
22
21
|
font-family: "Helvetica Neue", helvetica, arial, sans-serif;
|
|
23
22
|
font-size: 0.8rem;
|
|
@@ -29,7 +28,6 @@
|
|
|
29
28
|
position: relative;
|
|
30
29
|
line-height: initial;
|
|
31
30
|
}
|
|
32
|
-
|
|
33
31
|
.react-datepicker--time-only .react-datepicker__time-container {
|
|
34
32
|
border-left: 0;
|
|
35
33
|
}
|
|
@@ -38,7 +36,6 @@
|
|
|
38
36
|
border-bottom-left-radius: 0.3rem;
|
|
39
37
|
border-bottom-right-radius: 0.3rem;
|
|
40
38
|
}
|
|
41
|
-
|
|
42
39
|
.react-datepicker-popper {
|
|
43
40
|
z-index: 1;
|
|
44
41
|
line-height: 0;
|
|
@@ -54,7 +51,6 @@
|
|
|
54
51
|
fill: #fff;
|
|
55
52
|
color: #fff;
|
|
56
53
|
}
|
|
57
|
-
|
|
58
54
|
.react-datepicker__header {
|
|
59
55
|
text-align: center;
|
|
60
56
|
background-color: #f0f0f0;
|
|
@@ -74,7 +70,6 @@
|
|
|
74
70
|
.react-datepicker__header:not(.react-datepicker__header--has-time-select) {
|
|
75
71
|
border-top-right-radius: 0.3rem;
|
|
76
72
|
}
|
|
77
|
-
|
|
78
73
|
.react-datepicker__year-dropdown-container--select,
|
|
79
74
|
.react-datepicker__month-dropdown-container--select,
|
|
80
75
|
.react-datepicker__month-year-dropdown-container--select,
|
|
@@ -84,7 +79,6 @@
|
|
|
84
79
|
display: inline-block;
|
|
85
80
|
margin: 0 15px;
|
|
86
81
|
}
|
|
87
|
-
|
|
88
82
|
.react-datepicker__current-month,
|
|
89
83
|
.react-datepicker-time__header,
|
|
90
84
|
.react-datepicker-year-header {
|
|
@@ -93,18 +87,15 @@
|
|
|
93
87
|
font-weight: bold;
|
|
94
88
|
font-size: 0.944rem;
|
|
95
89
|
}
|
|
96
|
-
|
|
97
90
|
h2.react-datepicker__current-month {
|
|
98
91
|
padding: 0;
|
|
99
92
|
margin: 0;
|
|
100
93
|
}
|
|
101
|
-
|
|
102
94
|
.react-datepicker-time__header {
|
|
103
95
|
text-overflow: ellipsis;
|
|
104
96
|
white-space: nowrap;
|
|
105
97
|
overflow: hidden;
|
|
106
98
|
}
|
|
107
|
-
|
|
108
99
|
.react-datepicker__navigation {
|
|
109
100
|
align-items: center;
|
|
110
101
|
background: none;
|
|
@@ -147,7 +138,6 @@ h2.react-datepicker__current-month {
|
|
|
147
138
|
.react-datepicker__navigation:hover *::before {
|
|
148
139
|
border-color: rgb(165.75, 165.75, 165.75);
|
|
149
140
|
}
|
|
150
|
-
|
|
151
141
|
.react-datepicker__navigation-icon {
|
|
152
142
|
position: relative;
|
|
153
143
|
top: -1px;
|
|
@@ -168,11 +158,9 @@ h2.react-datepicker__current-month {
|
|
|
168
158
|
transform: rotate(225deg);
|
|
169
159
|
right: -7px;
|
|
170
160
|
}
|
|
171
|
-
|
|
172
161
|
.react-datepicker__month-container {
|
|
173
162
|
float: left;
|
|
174
163
|
}
|
|
175
|
-
|
|
176
164
|
.react-datepicker__year {
|
|
177
165
|
margin: 0.4rem;
|
|
178
166
|
text-align: center;
|
|
@@ -187,7 +175,6 @@ h2.react-datepicker__current-month {
|
|
|
187
175
|
width: 4rem;
|
|
188
176
|
margin: 2px;
|
|
189
177
|
}
|
|
190
|
-
|
|
191
178
|
.react-datepicker__month {
|
|
192
179
|
margin: 0.4rem;
|
|
193
180
|
text-align: center;
|
|
@@ -198,7 +185,6 @@ h2.react-datepicker__current-month {
|
|
|
198
185
|
width: 4rem;
|
|
199
186
|
margin: 2px;
|
|
200
187
|
}
|
|
201
|
-
|
|
202
188
|
.react-datepicker__input-time-container {
|
|
203
189
|
clear: both;
|
|
204
190
|
width: 100%;
|
|
@@ -232,7 +218,6 @@ h2.react-datepicker__current-month {
|
|
|
232
218
|
margin-left: 5px;
|
|
233
219
|
display: inline-block;
|
|
234
220
|
}
|
|
235
|
-
|
|
236
221
|
.react-datepicker__time-container {
|
|
237
222
|
float: right;
|
|
238
223
|
border-left: 1px solid #aeaeae;
|
|
@@ -292,7 +277,6 @@ h2.react-datepicker__current-month {
|
|
|
292
277
|
cursor: default;
|
|
293
278
|
background-color: transparent;
|
|
294
279
|
}
|
|
295
|
-
|
|
296
280
|
.react-datepicker__week-number {
|
|
297
281
|
color: #ccc;
|
|
298
282
|
display: inline-block;
|
|
@@ -316,16 +300,13 @@ h2.react-datepicker__current-month {
|
|
|
316
300
|
.react-datepicker__week-number--selected:hover {
|
|
317
301
|
background-color: rgb(28.75, 93.2196969697, 143.75);
|
|
318
302
|
}
|
|
319
|
-
|
|
320
303
|
.react-datepicker__day-names {
|
|
321
304
|
white-space: nowrap;
|
|
322
305
|
margin-bottom: -8px;
|
|
323
306
|
}
|
|
324
|
-
|
|
325
307
|
.react-datepicker__week {
|
|
326
308
|
white-space: nowrap;
|
|
327
309
|
}
|
|
328
|
-
|
|
329
310
|
.react-datepicker__day-name,
|
|
330
311
|
.react-datepicker__day,
|
|
331
312
|
.react-datepicker__time-name {
|
|
@@ -336,7 +317,6 @@ h2.react-datepicker__current-month {
|
|
|
336
317
|
text-align: center;
|
|
337
318
|
margin: 0.166rem;
|
|
338
319
|
}
|
|
339
|
-
|
|
340
320
|
.react-datepicker__day,
|
|
341
321
|
.react-datepicker__month-text,
|
|
342
322
|
.react-datepicker__quarter-text,
|
|
@@ -537,7 +517,6 @@ h2.react-datepicker__current-month {
|
|
|
537
517
|
opacity: 0;
|
|
538
518
|
transition: visibility 0s, opacity 0.3s ease-in-out;
|
|
539
519
|
}
|
|
540
|
-
|
|
541
520
|
.react-datepicker__input-container {
|
|
542
521
|
position: relative;
|
|
543
522
|
display: inline-block;
|
|
@@ -548,11 +527,9 @@ h2.react-datepicker__current-month {
|
|
|
548
527
|
padding: 0.5rem;
|
|
549
528
|
box-sizing: content-box;
|
|
550
529
|
}
|
|
551
|
-
|
|
552
530
|
.react-datepicker__view-calendar-icon input {
|
|
553
531
|
padding: 6px 10px 5px 25px;
|
|
554
532
|
}
|
|
555
|
-
|
|
556
533
|
.react-datepicker__year-read-view,
|
|
557
534
|
.react-datepicker__month-read-view,
|
|
558
535
|
.react-datepicker__month-year-read-view {
|
|
@@ -580,7 +557,6 @@ h2.react-datepicker__current-month {
|
|
|
580
557
|
right: -16px;
|
|
581
558
|
top: 0;
|
|
582
559
|
}
|
|
583
|
-
|
|
584
560
|
.react-datepicker__year-dropdown,
|
|
585
561
|
.react-datepicker__month-dropdown,
|
|
586
562
|
.react-datepicker__month-year-dropdown {
|
|
@@ -605,7 +581,6 @@ h2.react-datepicker__current-month {
|
|
|
605
581
|
height: 150px;
|
|
606
582
|
overflow-y: scroll;
|
|
607
583
|
}
|
|
608
|
-
|
|
609
584
|
.react-datepicker__year-option,
|
|
610
585
|
.react-datepicker__month-option,
|
|
611
586
|
.react-datepicker__month-year-option {
|
|
@@ -652,7 +627,6 @@ h2.react-datepicker__current-month {
|
|
|
652
627
|
position: absolute;
|
|
653
628
|
left: 15px;
|
|
654
629
|
}
|
|
655
|
-
|
|
656
630
|
.react-datepicker__close-icon {
|
|
657
631
|
cursor: pointer;
|
|
658
632
|
background-color: transparent;
|
|
@@ -688,7 +662,6 @@ h2.react-datepicker__current-month {
|
|
|
688
662
|
cursor: default;
|
|
689
663
|
background-color: #ccc;
|
|
690
664
|
}
|
|
691
|
-
|
|
692
665
|
.react-datepicker__today-button {
|
|
693
666
|
background: #f0f0f0;
|
|
694
667
|
border-top: 1px solid #aeaeae;
|
|
@@ -698,7 +671,6 @@ h2.react-datepicker__current-month {
|
|
|
698
671
|
padding: 5px 0;
|
|
699
672
|
clear: left;
|
|
700
673
|
}
|
|
701
|
-
|
|
702
674
|
.react-datepicker__portal {
|
|
703
675
|
position: fixed;
|
|
704
676
|
width: 100vw;
|
|
@@ -729,7 +701,6 @@ h2.react-datepicker__current-month {
|
|
|
729
701
|
.react-datepicker__portal .react-datepicker-time__header {
|
|
730
702
|
font-size: 1.44rem;
|
|
731
703
|
}
|
|
732
|
-
|
|
733
704
|
.react-datepicker__children-container {
|
|
734
705
|
width: 13.8rem;
|
|
735
706
|
margin: 0.4rem;
|
|
@@ -737,7 +708,6 @@ h2.react-datepicker__current-month {
|
|
|
737
708
|
padding-left: 0.2rem;
|
|
738
709
|
height: auto;
|
|
739
710
|
}
|
|
740
|
-
|
|
741
711
|
.react-datepicker__aria-live {
|
|
742
712
|
position: absolute;
|
|
743
713
|
clip-path: circle(0);
|
|
@@ -749,9 +719,11 @@ h2.react-datepicker__current-month {
|
|
|
749
719
|
width: 1px;
|
|
750
720
|
white-space: nowrap;
|
|
751
721
|
}
|
|
752
|
-
|
|
753
722
|
.react-datepicker__calendar-icon {
|
|
754
723
|
width: 1em;
|
|
755
724
|
height: 1em;
|
|
756
725
|
vertical-align: -0.125em;
|
|
757
726
|
}
|
|
727
|
+
#popup-portal .react-datepicker-popper {
|
|
728
|
+
z-index: 1000;
|
|
729
|
+
}
|