kahuna-base-react-components 1.2.12 → 1.3.2
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/components/KSelectRangeDate/KSelectRangeDate.d.ts +26 -0
- package/dist/components/KSelectRangeDate/index.d.ts +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.esm.js +2 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/languages/index.d.ts +10 -0
- package/dist/types.d.ts +25 -2
- package/package.json +1 -1
- package/src/components/KSelectRangeDate/KSelectRangeDate.stories.tsx +118 -0
- package/src/components/KSelectRangeDate/KSelectRangeDate.tsx +462 -0
- package/src/components/KSelectRangeDate/KSelectRangeDateCustom.css +351 -0
- package/src/components/KSelectRangeDate/index.ts +1 -0
- package/src/index.ts +3 -1
- package/src/languages/en.json +5 -0
- package/src/languages/tr.json +5 -0
|
@@ -0,0 +1,351 @@
|
|
|
1
|
+
.left-calendar {
|
|
2
|
+
border-top-right-radius: 0 !important;
|
|
3
|
+
border-right: none !important;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.react-calendar.kselect-range {
|
|
7
|
+
width: 350px;
|
|
8
|
+
max-width: 100%;
|
|
9
|
+
background: white;
|
|
10
|
+
/*border: 1px solid #E7E7E7;*/
|
|
11
|
+
border: 1px solid #F3F3F3;
|
|
12
|
+
font-family: Inter !important;
|
|
13
|
+
line-height: 1.125em;
|
|
14
|
+
border-top-right-radius: 16px;
|
|
15
|
+
border-top-left-radius: 0px;
|
|
16
|
+
padding: 20px;
|
|
17
|
+
font-size: 14px;
|
|
18
|
+
color: #1F1F1F;
|
|
19
|
+
font-weight: 500;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.kselect-range .react-calendar--doubleView {
|
|
23
|
+
width: 700px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.kselect-range .react-calendar--doubleView .react-calendar__viewContainer {
|
|
27
|
+
display: flex;
|
|
28
|
+
margin: -0.5em;
|
|
29
|
+
border-radius: 16px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.kselect-range .react-calendar--doubleView .react-calendar__viewContainer>* {
|
|
33
|
+
width: 50%;
|
|
34
|
+
margin: 0.5em;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.react-calendar *,
|
|
38
|
+
.react-calendar *:before,
|
|
39
|
+
.react-calendar *:after {
|
|
40
|
+
-moz-box-sizing: border-box;
|
|
41
|
+
-webkit-box-sizing: border-box;
|
|
42
|
+
box-sizing: border-box;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.kselect-range .react-calendar button {
|
|
46
|
+
margin: 0;
|
|
47
|
+
border: 0;
|
|
48
|
+
outline: none;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.kselect-range .react-calendar button:enabled:hover {
|
|
52
|
+
cursor: pointer;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.kselect-range .react-calendar__navigation {
|
|
56
|
+
display: flex;
|
|
57
|
+
height: 36px;
|
|
58
|
+
align-items: center;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.kselect-range .react-calendar__navigation button {
|
|
62
|
+
width: 44px;
|
|
63
|
+
color: #111;
|
|
64
|
+
font-weight: 500;
|
|
65
|
+
line-height: 24px;
|
|
66
|
+
letter-spacing: -0.176px;
|
|
67
|
+
background: none;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.kselect-range .react-calendar__navigation button:disabled {
|
|
71
|
+
background-color: #FFF;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.kselect-range .react-calendar__navigation button:enabled:hover,
|
|
75
|
+
.kselect-range .react-calendar__navigation button:enabled:focus {
|
|
76
|
+
background-color: #F0F0F0;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.kselect-range .react-calendar__month-view__weekdays {
|
|
80
|
+
text-align: center;
|
|
81
|
+
text-transform: uppercase;
|
|
82
|
+
font: inherit;
|
|
83
|
+
font-size: 0.75em;
|
|
84
|
+
font-weight: bold;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.kselect-range .react-calendar__month-view__weekdays__weekday {
|
|
88
|
+
font-family: Inter;
|
|
89
|
+
font-size: 14px;
|
|
90
|
+
font-style: normal;
|
|
91
|
+
font-weight: 500;
|
|
92
|
+
line-height: 20px;
|
|
93
|
+
letter-spacing: -0.084px;
|
|
94
|
+
width: 40px;
|
|
95
|
+
height: 40px;
|
|
96
|
+
display: flex;
|
|
97
|
+
align-items: center;
|
|
98
|
+
justify-content: center;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.kselect-range .react-calendar__month-view__weekNumbers .react-calendar__tile {
|
|
102
|
+
display: flex;
|
|
103
|
+
align-items: center;
|
|
104
|
+
justify-content: center;
|
|
105
|
+
font: inherit;
|
|
106
|
+
font-size: 0.75em;
|
|
107
|
+
font-weight: bold;
|
|
108
|
+
position: relative;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.kselect-range .react-calendar__month-view__days {
|
|
112
|
+
justify-content: space-between;
|
|
113
|
+
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.kselect-range .react-calendar__month-view__days__day {
|
|
117
|
+
flex-basis: auto !important;
|
|
118
|
+
border-radius: 20px;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.kselect-range .react-calendar__month-view__days__day--weekend {
|
|
122
|
+
font-size: 14px;
|
|
123
|
+
font-style: normal;
|
|
124
|
+
font-weight: 500;
|
|
125
|
+
line-height: 20px;
|
|
126
|
+
/* 142.857% */
|
|
127
|
+
letter-spacing: -0.084px;
|
|
128
|
+
color: #1F1F1F;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.kselect-range .react-calendar__month-view__days__day--neighboringMonth,
|
|
132
|
+
.kselect-range .react-calendar__decade-view__years__year--neighboringDecade,
|
|
133
|
+
.kselect-range .react-calendar__century-view__decades__decade--neighboringCentury {
|
|
134
|
+
color: #D6D6D6;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.kselect-range .react-calendar__year-view .react-calendar__tile,
|
|
138
|
+
.kselect-range .react-calendar__decade-view .react-calendar__tile,
|
|
139
|
+
.kselect-range .react-calendar__century-view .react-calendar__tile {
|
|
140
|
+
padding: 0;
|
|
141
|
+
/*old value : 2em 0.5em*/
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.kselect-range .react-calendar__navigation__arrow {
|
|
145
|
+
display: flex;
|
|
146
|
+
align-items: center;
|
|
147
|
+
justify-content: center;
|
|
148
|
+
width: 24px !important;
|
|
149
|
+
height: 24px;
|
|
150
|
+
border-radius: 12px;
|
|
151
|
+
;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.kselect-range .react-calendar__tile {
|
|
155
|
+
height: 40px;
|
|
156
|
+
width: 40px !important;
|
|
157
|
+
background: none;
|
|
158
|
+
text-align: center;
|
|
159
|
+
font: inherit;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.kselect-range .react-calendar__tile:disabled {
|
|
163
|
+
background-color: #f0f0f0;
|
|
164
|
+
color: #ababab;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.kselect-range .react-calendar__month-view__days__day--neighboringMonth:disabled,
|
|
168
|
+
.kselect-range .react-calendar__decade-view__years__year--neighboringDecade:disabled,
|
|
169
|
+
.kselect-range .react-calendar__century-view__decades__decade--neighboringCentury:disabled {
|
|
170
|
+
color: #cdcdcd;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.kselect-range .react-calendar__tile:enabled:hover,
|
|
174
|
+
.kselect-range .react-calendar__tile:enabled:focus {
|
|
175
|
+
background-color: #F0F0F0;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.kselect-range .react-calendar__tile--now {
|
|
179
|
+
background: #F2FE67
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.kselect-range .react-calendar__tile--now:enabled:hover,
|
|
183
|
+
.kselect-range.react-calendar__tile--now:enabled:focus {
|
|
184
|
+
background: #FFFFA9;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.kselect-range .react-calendar__tile--hasActive {
|
|
188
|
+
background: #111111;
|
|
189
|
+
/*76baff*/
|
|
190
|
+
color: #FFFFFF;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.kselect-range .react-calendar__tile--hasActive:enabled:hover,
|
|
194
|
+
.kselect-range .react-calendar__tile--hasActive:enabled:focus {
|
|
195
|
+
background: #111111;
|
|
196
|
+
/*old value: #a9d4ff*/
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.kselect-range .react-calendar__tile--active {
|
|
200
|
+
background-color: #111;
|
|
201
|
+
color: white;
|
|
202
|
+
border-radius: 0px;
|
|
203
|
+
height: 40px;
|
|
204
|
+
width: 40px !important;
|
|
205
|
+
}
|
|
206
|
+
.react-calendar__tile--hover.react-calendar__tile--active {
|
|
207
|
+
background-color: #111 !important;
|
|
208
|
+
}
|
|
209
|
+
.kselect-range .react-calendar__tile--active:enabled:focus {
|
|
210
|
+
background: #111111;
|
|
211
|
+
/*old value: 1087ff*/
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.kselect-range .react-calendar--selectRange .react-calendar__tile--hover {
|
|
215
|
+
background-color: #F0F0F0;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.kselect-range .react-calendar__month-view__weekdays__weekday {
|
|
219
|
+
text-decoration: none !important;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.kselect-range .react-calendar__month-view__weekdays__weekday--weekend {
|
|
223
|
+
text-decoration: none;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
abbr:where([title]) {
|
|
227
|
+
text-decoration: none !important;
|
|
228
|
+
color: #3D3D3D;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.kselect-range .react-calendar__navigation__label__labelText {
|
|
232
|
+
color: #111;
|
|
233
|
+
font-size: 16px;
|
|
234
|
+
font-weight: 500 !important;
|
|
235
|
+
line-height: 24px;
|
|
236
|
+
letter-spacing: -0.176px;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.kselect-range .react-calendar__year-view__months {
|
|
240
|
+
row-gap: 8px;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.kselect-range .react-calendar__year-view__months__month {
|
|
244
|
+
padding: 0px !important;
|
|
245
|
+
position: relative;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.kselect-range .active-month-first-month {
|
|
249
|
+
background-color: #F0F0F0 !important;
|
|
250
|
+
border-top-left-radius: 999px !important;
|
|
251
|
+
border-bottom-left-radius: 999px !important;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.active-month-first-month .tile-content-external-div {
|
|
255
|
+
background-color: #111;
|
|
256
|
+
border-radius: 999px !important;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.kselect-range .active-month-last-month {
|
|
260
|
+
background-color: #F0F0F0 !important;
|
|
261
|
+
border-top-right-radius: 999px !important;
|
|
262
|
+
border-bottom-right-radius: 999px !important;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
.active-month-last-month .tile-content-external-div {
|
|
266
|
+
background-color: #111;
|
|
267
|
+
border-radius: 999px !important;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.kselect-range .active-month-range-month-left {
|
|
271
|
+
background: linear-gradient(90deg, #FFF 0%, #F0F0F0 30.28%, #F0F0F0 100%);
|
|
272
|
+
color: #1F1F1F;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.kselect-range .active-month-range-month-middle {
|
|
276
|
+
background-color: #F0F0F0 !important;
|
|
277
|
+
color: #1F1F1F;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.kselect-range .active-month-range-month-right {
|
|
281
|
+
background: linear-gradient(90deg, #F0F0F0 0%, #F0F0F0 69.72%, #FFF 100%);
|
|
282
|
+
color: #1F1F1F;
|
|
283
|
+
}
|
|
284
|
+
.range-bottom-center {
|
|
285
|
+
top: 100%;
|
|
286
|
+
margin-top: 10px;
|
|
287
|
+
left:50%;
|
|
288
|
+
transform: translateX(-50%);
|
|
289
|
+
}
|
|
290
|
+
.range-bottom-left {
|
|
291
|
+
top: 100%;
|
|
292
|
+
margin-top: 10px;
|
|
293
|
+
left:0%;
|
|
294
|
+
transform: translateX(-100%);
|
|
295
|
+
}
|
|
296
|
+
.range-bottom-right {
|
|
297
|
+
top: 100%;
|
|
298
|
+
margin-top: 10px;
|
|
299
|
+
left:100%;
|
|
300
|
+
}
|
|
301
|
+
.range-top-center {
|
|
302
|
+
bottom: 100%;
|
|
303
|
+
margin-bottom: 10px;
|
|
304
|
+
left:50%;
|
|
305
|
+
transform: translateX(-50%);
|
|
306
|
+
}
|
|
307
|
+
.range-top-left {
|
|
308
|
+
bottom: 100%;
|
|
309
|
+
margin-bottom: 10px;
|
|
310
|
+
left:0%;
|
|
311
|
+
transform: translateX(-100%);
|
|
312
|
+
}
|
|
313
|
+
.range-top-right {
|
|
314
|
+
bottom: 100%;
|
|
315
|
+
margin-bottom: 10px;
|
|
316
|
+
left:100%;
|
|
317
|
+
}
|
|
318
|
+
.range-left-center {
|
|
319
|
+
top: 50%;
|
|
320
|
+
right: 100%;
|
|
321
|
+
transform: translateY(-50%);
|
|
322
|
+
margin-right: 10px;
|
|
323
|
+
}
|
|
324
|
+
.range-left-top {
|
|
325
|
+
top: 0%;
|
|
326
|
+
right: 100%;
|
|
327
|
+
transform: translateY(-100%);
|
|
328
|
+
margin-right: 10px;
|
|
329
|
+
}
|
|
330
|
+
.range-left-bottom {
|
|
331
|
+
top: 100%;
|
|
332
|
+
right: 100%;
|
|
333
|
+
margin-right: 10px;
|
|
334
|
+
}
|
|
335
|
+
.range-right-center {
|
|
336
|
+
top: 50%;
|
|
337
|
+
left: 100%;
|
|
338
|
+
transform: translateY(-50%);
|
|
339
|
+
margin-left: 10px;
|
|
340
|
+
}
|
|
341
|
+
.range-right-top {
|
|
342
|
+
top: 0%;
|
|
343
|
+
left: 100%;
|
|
344
|
+
transform: translateY(-100%);
|
|
345
|
+
margin-left: 10px;
|
|
346
|
+
}
|
|
347
|
+
.range-right-bottom {
|
|
348
|
+
top: 100%;
|
|
349
|
+
left: 100%;
|
|
350
|
+
margin-left: 10px;
|
|
351
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {default} from './KSelectRangeDate';
|
package/src/index.ts
CHANGED
|
@@ -11,6 +11,7 @@ import KTooltip from "./components/KTooltip"
|
|
|
11
11
|
import KSliderLabel from "./components/KSliderLabel"
|
|
12
12
|
import KCodeInput from "./components/KCodeInput"
|
|
13
13
|
import KSelectRange from "./components/KSelectRange"
|
|
14
|
+
import KSelectRangeDate from "./components/KSelectRangeDate"
|
|
14
15
|
|
|
15
16
|
export {
|
|
16
17
|
KButton,
|
|
@@ -25,5 +26,6 @@ export {
|
|
|
25
26
|
KTooltip,
|
|
26
27
|
KSliderLabel,
|
|
27
28
|
KCodeInput,
|
|
28
|
-
KSelectRange
|
|
29
|
+
KSelectRange,
|
|
30
|
+
KSelectRangeDate
|
|
29
31
|
}
|
package/src/languages/en.json
CHANGED
|
@@ -18,6 +18,11 @@
|
|
|
18
18
|
"range": "Range"
|
|
19
19
|
},
|
|
20
20
|
"button_text": {
|
|
21
|
+
"yesterday": "Yesterday",
|
|
22
|
+
"last_three_days": "Last 3 days",
|
|
23
|
+
"last_week": "Last week",
|
|
24
|
+
"last_two_week": "Last 2 week",
|
|
25
|
+
"last_month": "Last Month",
|
|
21
26
|
"last_three_months": "Last 3 months",
|
|
22
27
|
"last_six_months": "Last 6 months",
|
|
23
28
|
"last_twelve_months": "Last 12 months",
|
package/src/languages/tr.json
CHANGED
|
@@ -18,6 +18,11 @@
|
|
|
18
18
|
"range": "Tarih Aralığı"
|
|
19
19
|
},
|
|
20
20
|
"button_text": {
|
|
21
|
+
"yesterday": "Dün",
|
|
22
|
+
"last_three_days": "Son 3 gün",
|
|
23
|
+
"last_week": "Son hafta",
|
|
24
|
+
"last_two_week": "Son 2 hafta",
|
|
25
|
+
"last_month": "Son ay",
|
|
21
26
|
"last_three_months": "Son 3 ay",
|
|
22
27
|
"last_six_months": "Son 6 ay",
|
|
23
28
|
"last_twelve_months": "Son 12 ay",
|