forstok-ui-lib 5.2.39 → 5.2.43

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "forstok-ui-lib",
3
- "version": "5.2.39",
3
+ "version": "5.2.43",
4
4
  "description": "Forstok UI Components Library",
5
5
  "path": "dist",
6
6
  "main": "dist/index.js",
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="utf-8"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
2
+ <svg width="auto" height="auto" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
3
+ <path d="M3 10H21M7 3V5M17 3V5M6.2 21H17.8C18.9201 21 19.4802 21 19.908 20.782C20.2843 20.5903 20.5903 20.2843 20.782 19.908C21 19.4802 21 18.9201 21 17.8V8.2C21 7.07989 21 6.51984 20.782 6.09202C20.5903 5.71569 20.2843 5.40973 19.908 5.21799C19.4802 5 18.9201 5 17.8 5H6.2C5.0799 5 4.51984 5 4.09202 5.21799C3.71569 5.40973 3.40973 5.71569 3.21799 6.09202C3 6.51984 3 7.07989 3 8.2V17.8C3 18.9201 3 19.4802 3.21799 19.908C3.40973 20.2843 3.71569 20.5903 4.09202 20.782C4.51984 21 5.07989 21 6.2 21Z" stroke="#000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
4
+ </svg>
@@ -2,6 +2,7 @@ import styled, { css } from 'styled-components';
2
2
  import IconDotted from '../../assets/images/icons/dotted.svg';
3
3
  import IconClose from '../../assets/images/icons/close.svg';
4
4
  import IconCloseWhite from '../../assets/images/icons/close-white.svg';
5
+ import IconCalendar from '../../assets/images/icons/calendar.svg';
5
6
 
6
7
  const IconStyles = css`
7
8
  display: inline-block;
@@ -176,6 +177,19 @@ const getButtonModifiedStyled = ({ $mode, $isIndicatorArrow, $isShown, $isLoadin
176
177
  }
177
178
  if ($iconLeft) {
178
179
  style += ` padding-left: 35px; `
180
+ if ($iconLeft === 'calendar') {
181
+ style += `
182
+ &:before {
183
+ content: url(${IconCalendar});
184
+ position: absolute;
185
+ left: 12px;
186
+ top: 50%;
187
+ margin-top: -8px;
188
+ width: 14px;
189
+ height: 16px;
190
+ }
191
+ `
192
+ }
179
193
  }
180
194
  if ($isIndicatorArrow) {
181
195
  style += `
@@ -0,0 +1,229 @@
1
+ .DateRangePicker {
2
+ display: inline-block;
3
+ margin-bottom: 10px;
4
+ padding: 0;
5
+ position: relative;
6
+ -webkit-user-select: none;
7
+ -moz-user-select: none;
8
+ -ms-user-select: none;
9
+ user-select: none; }
10
+ .DateRangePicker__Legend {
11
+ color: #52575e;
12
+ font-size: 14px;
13
+ line-height: 16px;
14
+ list-style-type: none;
15
+ margin: 20px 0;
16
+ padding: 0; }
17
+ .DateRangePicker__LegendItem {
18
+ display: inline-block;
19
+ margin: 0 20px; }
20
+ .DateRangePicker__LegendItemColor {
21
+ border-radius: 50%;
22
+ display: inline-block;
23
+ height: 14px;
24
+ margin-right: 6px;
25
+ vertical-align: text-bottom;
26
+ width: 14px;
27
+ border: 1px solid rgba(0, 0, 0, 0.25); }
28
+ .DateRangePicker__LegendItemColor--selection {
29
+ background-color: #ed5434; }
30
+ .DateRangePicker__PaginationArrow {
31
+ border: 0;
32
+ cursor: pointer;
33
+ display: block;
34
+ height: 35px;
35
+ outline: none;
36
+ overflow: hidden;
37
+ padding: 0;
38
+ position: absolute;
39
+ text-align: center;
40
+ top: 0;
41
+ white-space: nowrap;
42
+ width: 35px;
43
+ z-index: 1; }
44
+ .DateRangePicker__PaginationArrow--previous {
45
+ left: 20px; }
46
+ .DateRangePicker__PaginationArrow--next {
47
+ right: 20px; }
48
+ .DateRangePicker__PaginationArrow:hover {
49
+ background-color: #ccc; }
50
+ .DateRangePicker__PaginationArrowIcon {
51
+ border-bottom: 8px solid transparent;
52
+ border-top: 8px solid transparent;
53
+ height: 0;
54
+ position: absolute;
55
+ top: 10px;
56
+ width: 0; }
57
+ .DateRangePicker__PaginationArrowIcon--is-disabled {
58
+ opacity: .25; }
59
+ .DateRangePicker__PaginationArrowIcon--previous {
60
+ border-left: 8px solid transparent;
61
+ border-right: 8px solid #aaa;
62
+ right: 11px; }
63
+ .DateRangePicker__PaginationArrowIcon--next {
64
+ border-left: 8px solid #aaa;
65
+ border-right: 8px solid transparent;
66
+ left: 11px; }
67
+ .DateRangePicker__Month {
68
+ color: #333;
69
+ display: inline-block;
70
+ margin: 0 20px;
71
+ position: relative;
72
+ -webkit-user-select: none;
73
+ -moz-user-select: none;
74
+ -ms-user-select: none;
75
+ user-select: none;
76
+ width: 275px; }
77
+ .DateRangePicker__MonthHeader {
78
+ color: #000;
79
+ font-size: 14px;
80
+ font-weight: bold;
81
+ height: 35px;
82
+ line-height: 35px;
83
+ position: relative;
84
+ text-align: center; }
85
+ .DateRangePicker__MonthHeaderLabel {
86
+ display: inline-block;
87
+ position: relative; }
88
+ .DateRangePicker__MonthHeaderSelect {
89
+ background: #e4e4e4;
90
+ border: 0;
91
+ cursor: pointer;
92
+ display: inline-block;
93
+ height: 100%;
94
+ left: 0;
95
+ margin: 0;
96
+ opacity: 0;
97
+ position: absolute;
98
+ top: 0;
99
+ width: 100%;
100
+ z-index: 5; }
101
+ .DateRangePicker__MonthDates {
102
+ border-bottom: 1px solid #f4f5f6;
103
+ border-collapse: separate;
104
+ border-spacing: 0 1px;
105
+ margin: 0;
106
+ width: 100%; }
107
+ .DateRangePicker__WeekdayHeading, .DateRangePicker__Date {
108
+ font-size: 12px;
109
+ line-height: 1;
110
+ padding: 10px 0;
111
+ text-align: center;
112
+ width: 14.285714285714286%; }
113
+ .DateRangePicker__WeekdayHeading {
114
+ border-bottom: 1px solid #f4f5f6;
115
+ color: #000;
116
+ font-weight: bold; }
117
+ .DateRangePicker__WeekdayHeading abbr[title] {
118
+ border-bottom-width: 0;
119
+ color: #000;
120
+ cursor: pointer;
121
+ font-size: inherit;
122
+ text-decoration: none; }
123
+ .DateRangePicker__Date {
124
+ border: 0 solid #f4f5f6;
125
+ border-right-width: 1px;
126
+ cursor: pointer;
127
+ overflow: hidden;
128
+ position: relative; }
129
+ .DateRangePicker__Date:first-child {
130
+ border-left-width: 1px; }
131
+ .DateRangePicker__Date--weekend {
132
+ background-color: #f6f7f9; }
133
+ .DateRangePicker__Date--otherMonth {
134
+ opacity: .25; }
135
+ .DateRangePicker__Date--is-disabled {
136
+ color: #cdcdd1;
137
+ cursor: default; }
138
+ .DateRangePicker__Date--is-selected {
139
+ color: #fff; }
140
+ .DateRangePicker__Date--is-highlighted {
141
+ color: #333; }
142
+ .DateRangePicker__CalendarDatePeriod {
143
+ bottom: 0;
144
+ position: absolute;
145
+ top: 0; }
146
+ .DateRangePicker__CalendarDatePeriod--am {
147
+ left: 0;
148
+ right: 50%; }
149
+ .DateRangePicker__CalendarDatePeriod--pm {
150
+ left: 50%;
151
+ right: 0; }
152
+ .DateRangePicker__CalendarSelection {
153
+ background-color: #ed5434;
154
+ border: 1px solid #eb401d;
155
+ bottom: 5px;
156
+ left: 0;
157
+ position: absolute;
158
+ right: 0;
159
+ top: 5px; }
160
+ .DateRangePicker__CalendarSelection--inOtherMonth {
161
+ opacity: .5; }
162
+ .DateRangePicker__CalendarSelection--start {
163
+ border-bottom-left-radius: 5px;
164
+ border-right-width: 0;
165
+ border-top-left-radius: 5px;
166
+ left: 5px; }
167
+ .DateRangePicker__CalendarSelection--end {
168
+ border-bottom-right-radius: 5px;
169
+ border-left-width: 0;
170
+ border-top-right-radius: 5px;
171
+ right: 5px; }
172
+ .DateRangePicker__CalendarSelection--segment {
173
+ border-left-width: 0;
174
+ border-right-width: 0; }
175
+ .DateRangePicker__CalendarSelection--single {
176
+ border-radius: 5px;
177
+ left: 5px;
178
+ right: 5px; }
179
+ .DateRangePicker__CalendarSelection--is-pending {
180
+ background-color: rgba(237, 84, 52, 0.75);
181
+ border-width: 0; }
182
+ .DateRangePicker__CalendarHighlight {
183
+ background-color: rgba(255, 255, 255, 0.25);
184
+ border: 1px solid rgba(0, 0, 0, 0.25);
185
+ bottom: 5px;
186
+ left: 0;
187
+ position: absolute;
188
+ right: 0;
189
+ top: 5px; }
190
+ .DateRangePicker__CalendarHighlight--inOtherMonth {
191
+ opacity: .5; }
192
+ .DateRangePicker__CalendarHighlight--start {
193
+ border-bottom-left-radius: 5px;
194
+ border-right-width: 0;
195
+ border-top-left-radius: 5px;
196
+ left: 5px; }
197
+ .DateRangePicker__CalendarHighlight--end {
198
+ border-bottom-right-radius: 5px;
199
+ border-left-width: 0;
200
+ border-top-right-radius: 5px;
201
+ right: 5px; }
202
+ .DateRangePicker__CalendarHighlight--segment {
203
+ border-left-width: 0;
204
+ border-right-width: 0; }
205
+ .DateRangePicker__CalendarHighlight--single {
206
+ background-color: #fff;
207
+ border: 1px solid #eb401d;
208
+ border-radius: 5px;
209
+ left: 5px;
210
+ right: 5px; }
211
+ .DateRangePicker__HalfDateStates {
212
+ bottom: -50px;
213
+ left: -50px;
214
+ position: absolute;
215
+ right: -50px;
216
+ top: -50px;
217
+ transform: rotate(30deg); }
218
+ .DateRangePicker__FullDateStates {
219
+ bottom: 0;
220
+ left: 0;
221
+ position: absolute;
222
+ right: 0;
223
+ top: 0; }
224
+ .DateRangePicker__DateLabel {
225
+ display: block;
226
+ position: relative;
227
+ text-align: center;
228
+ width: 100%;
229
+ z-index: 1; }
@@ -9,7 +9,7 @@ import CheckboxComponent from '../checkbox';
9
9
  import ReactPortalComponent from '../portal';
10
10
  import TextComponent from '../text';
11
11
  import { dateRangeDays, dateRangeStatus } from '../../assets/javascripts/helper';
12
- import 'react-daterange-picker/dist/css/react-calendar.css';
12
+ import './daterange.css';
13
13
  import './styles.css';
14
14
  import { DateRangeContainer, DateRangeControl, DateRangeLabelContainer, DateRangeLabel, DateRangeIndicatorsContainer, DateRangeIndicatorsArrowIconSvg, DateRangeMenuContainer, DateRangeMenu, DateRangeSelection, SelectionDate, DateRangeAside, DateRangePortalContainer, DateRangeIconContainer } from './styles';
15
15
  import type { TMouseEvent, TState } from '../../typeds';