hplx-react-elements-dev 1.0.95 → 1.0.97
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/esm/index.css +482 -0
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +92 -1
- package/dist/esm/types.d.ts +1 -1
- package/package.json +1 -1
package/dist/esm/index.css
CHANGED
|
@@ -1058,3 +1058,485 @@
|
|
|
1058
1058
|
color: #849095;
|
|
1059
1059
|
padding: 0.833em;
|
|
1060
1060
|
}
|
|
1061
|
+
|
|
1062
|
+
.rdrCalendarWrapper {
|
|
1063
|
+
display: flex;
|
|
1064
|
+
align-items: flex-start;
|
|
1065
|
+
padding: 0px;
|
|
1066
|
+
position: absolute;
|
|
1067
|
+
width: 328px;
|
|
1068
|
+
height: 396px !important;
|
|
1069
|
+
box-shadow: 0px 20px 24px -4px #ffffff14,
|
|
1070
|
+
0px 8px 8px -4px rgba(255, 255, 255, 0.03) !important;
|
|
1071
|
+
border-radius: 8px;
|
|
1072
|
+
background: #fcfcfd !important;
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
.rdrDateDisplayWrapper {
|
|
1076
|
+
background-color: rgb(24, 86, 193) !important;
|
|
1077
|
+
}
|
|
1078
|
+
|
|
1079
|
+
.rdrDateDisplay {
|
|
1080
|
+
margin: 0.833em;
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
.rdrDateDisplayItem {
|
|
1084
|
+
border-radius: 4px;
|
|
1085
|
+
background-color: rgb(255, 255, 255);
|
|
1086
|
+
box-shadow: 0 1px 2px 0 rgba(255, 255, 255, 0.21) !important;
|
|
1087
|
+
border: 1px solid transparent;
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1090
|
+
.rdrDateDisplayItem input {
|
|
1091
|
+
cursor: pointer;
|
|
1092
|
+
height: 2.5em;
|
|
1093
|
+
line-height: 2.5em;
|
|
1094
|
+
border: 0px;
|
|
1095
|
+
background: transparent;
|
|
1096
|
+
width: 100%;
|
|
1097
|
+
color: #849095;
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
.rdrDateDisplayItemActive {
|
|
1101
|
+
border-color: currentColor;
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1104
|
+
.rdrDateDisplayItemActive input {
|
|
1105
|
+
color: #7d888d;
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
.rdrMonthAndYearWrapper {
|
|
1109
|
+
align-items: center;
|
|
1110
|
+
margin: 28px 0 28px 0 !important;
|
|
1111
|
+
padding: 0px !important;
|
|
1112
|
+
width: 328px;
|
|
1113
|
+
height: 24px;
|
|
1114
|
+
font-family: "Inter";
|
|
1115
|
+
font-style: normal;
|
|
1116
|
+
font-weight: 500;
|
|
1117
|
+
font-size: 16px;
|
|
1118
|
+
line-height: 24px;
|
|
1119
|
+
text-align: center;
|
|
1120
|
+
color: #344054;
|
|
1121
|
+
flex: none;
|
|
1122
|
+
flex-grow: 0;
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1125
|
+
.rdrMonthAndYearPickers {
|
|
1126
|
+
font-weight: 600;
|
|
1127
|
+
}
|
|
1128
|
+
|
|
1129
|
+
.rdrMonthAndYearPickers select {
|
|
1130
|
+
appearance: none;
|
|
1131
|
+
-webkit-appearance: none;
|
|
1132
|
+
border: 0;
|
|
1133
|
+
background: transparent;
|
|
1134
|
+
padding: 16px 0px 10px 0px !important;
|
|
1135
|
+
border-radius: 4px;
|
|
1136
|
+
outline: 0;
|
|
1137
|
+
color: #3e484f;
|
|
1138
|
+
background-position: right 8px center !important;
|
|
1139
|
+
cursor: pointer;
|
|
1140
|
+
text-align: center;
|
|
1141
|
+
}
|
|
1142
|
+
|
|
1143
|
+
.rdrMonthAndYearPickers select:hover {
|
|
1144
|
+
background-color: rgba(255, 255, 255, 0.07) !important;
|
|
1145
|
+
}
|
|
1146
|
+
|
|
1147
|
+
.rdrMonthPicker {
|
|
1148
|
+
margin: 0 10px 0 0 !important;
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
.rdrYearPicker {
|
|
1152
|
+
margin: 0 0 0 0px !important;
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1155
|
+
.rdrNextPrevButton {
|
|
1156
|
+
display: block;
|
|
1157
|
+
width: 20px !important;
|
|
1158
|
+
height: 20px !important;
|
|
1159
|
+
margin: 0 34.37px 0 34.37px;
|
|
1160
|
+
padding: 0;
|
|
1161
|
+
border: 0;
|
|
1162
|
+
border-radius: 5px;
|
|
1163
|
+
background: #ffffff;
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1166
|
+
.rdrNextPrevButton:hover {
|
|
1167
|
+
background: #ffffff !important;
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1170
|
+
.rdrNextPrevButton i {
|
|
1171
|
+
display: block;
|
|
1172
|
+
width: 0 !important;
|
|
1173
|
+
height: 0 !important;
|
|
1174
|
+
padding: 0;
|
|
1175
|
+
text-align: center;
|
|
1176
|
+
border-style: solid;
|
|
1177
|
+
transform: translate(-3px, 0px);
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1180
|
+
.rdrPprevButton i {
|
|
1181
|
+
content: "" !important;
|
|
1182
|
+
width: 10px !important;
|
|
1183
|
+
height: 10px !important;
|
|
1184
|
+
border-top: solid 1px currentColor !important;
|
|
1185
|
+
border-right: solid 1px currentColor !important;
|
|
1186
|
+
transform: rotate(-135deg) !important;
|
|
1187
|
+
}
|
|
1188
|
+
|
|
1189
|
+
.rdrNextButton i {
|
|
1190
|
+
border-color: transparent transparent transparent transparent !important;
|
|
1191
|
+
content: "" !important;
|
|
1192
|
+
width: 10px !important;
|
|
1193
|
+
height: 10px !important;
|
|
1194
|
+
border-bottom: solid 1px currentColor !important;
|
|
1195
|
+
border-right: solid 1px currentColor !important;
|
|
1196
|
+
transform: rotate(-45deg) !important;
|
|
1197
|
+
}
|
|
1198
|
+
|
|
1199
|
+
.rdrWeekDays {
|
|
1200
|
+
padding: 0 0.833em;
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1203
|
+
.rdrMonth {
|
|
1204
|
+
padding: 0 0.833em 1.666em 0.833em;
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1207
|
+
.rdrMonth .rdrWeekDays {
|
|
1208
|
+
padding: 0;
|
|
1209
|
+
}
|
|
1210
|
+
|
|
1211
|
+
.rdrMonths.rdrMonthsVertical .rdrMonth:first-child .rdrMonthName {
|
|
1212
|
+
display: none;
|
|
1213
|
+
}
|
|
1214
|
+
|
|
1215
|
+
.rdrWeekDay {
|
|
1216
|
+
width: 24px !important;
|
|
1217
|
+
height: 20px !important;
|
|
1218
|
+
font-family: "Inter";
|
|
1219
|
+
font-style: normal;
|
|
1220
|
+
font-weight: 500;
|
|
1221
|
+
font-size: 14px;
|
|
1222
|
+
line-height: 20px !important;
|
|
1223
|
+
margin-top: 10px !important;
|
|
1224
|
+
margin-bottom: 10px !important;
|
|
1225
|
+
text-align: center;
|
|
1226
|
+
color: #344054 !important;
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1229
|
+
.rdrDay {
|
|
1230
|
+
background: transparent;
|
|
1231
|
+
width: 40px !important;
|
|
1232
|
+
height: 40px !important;
|
|
1233
|
+
-webkit-user-select: none;
|
|
1234
|
+
user-select: none;
|
|
1235
|
+
border: 0;
|
|
1236
|
+
text-align: center !important;
|
|
1237
|
+
color: #344054;
|
|
1238
|
+
padding: 22px !important;
|
|
1239
|
+
top: 0px !important;
|
|
1240
|
+
left: 0px !important ;
|
|
1241
|
+
right: 0px !important;
|
|
1242
|
+
bottom: 0px !important;
|
|
1243
|
+
font-family: "Inter";
|
|
1244
|
+
font-style: normal;
|
|
1245
|
+
font-weight: 400 !important;
|
|
1246
|
+
font-size: 14px !important;
|
|
1247
|
+
line-height: 20px !important;
|
|
1248
|
+
}
|
|
1249
|
+
|
|
1250
|
+
.rdrDay:focus {
|
|
1251
|
+
outline: 0;
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
.rdrDayNumber {
|
|
1255
|
+
margin: auto;
|
|
1256
|
+
outline: 0;
|
|
1257
|
+
font-weight: 300;
|
|
1258
|
+
width: 24px;
|
|
1259
|
+
height: 20px;
|
|
1260
|
+
position: absolute;
|
|
1261
|
+
left: 0;
|
|
1262
|
+
right: 0;
|
|
1263
|
+
top: 0;
|
|
1264
|
+
bottom: 0;
|
|
1265
|
+
top: 5px;
|
|
1266
|
+
bottom: 5px;
|
|
1267
|
+
display: flex;
|
|
1268
|
+
align-items: center;
|
|
1269
|
+
justify-content: center;
|
|
1270
|
+
}
|
|
1271
|
+
|
|
1272
|
+
.rdrDayToday .rdrDayNumber span {
|
|
1273
|
+
font-weight: 500 !important;
|
|
1274
|
+
}
|
|
1275
|
+
|
|
1276
|
+
.rdrDayToday .rdrDayNumber span:after {
|
|
1277
|
+
content: "";
|
|
1278
|
+
bottom: 4px !important;
|
|
1279
|
+
top: -10px !important;
|
|
1280
|
+
right: 4px !important;
|
|
1281
|
+
width: 40px !important;
|
|
1282
|
+
height: 40px !important;
|
|
1283
|
+
border-radius: 100% !important;
|
|
1284
|
+
background: rgba(66, 67, 69, 0.07) !important;
|
|
1285
|
+
z-index: 0;
|
|
1286
|
+
}
|
|
1287
|
+
|
|
1288
|
+
.rdrDayToday:not(.rdrDayPassive) .rdrInRange ~ .rdrDayNumber span:after,
|
|
1289
|
+
.rdrDayToday:not(.rdrDayPassive) .rdrStartEdge ~ .rdrDayNumber span:after,
|
|
1290
|
+
.rdrDayToday:not(.rdrDayPassive) .rdrEndEdge ~ .rdrDayNumber span:after,
|
|
1291
|
+
.rdrDayToday:not(.rdrDayPassive) .rdrSelected ~ .rdrDayNumber span:after {
|
|
1292
|
+
background: #fff;
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
.rdrDay:not(.rdrDayPassive) .rdrInRange ~ .rdrDayNumber span,
|
|
1296
|
+
.rdrDay:not(.rdrDayPassive) .rdrStartEdge ~ .rdrDayNumber span,
|
|
1297
|
+
.rdrDay:not(.rdrDayPassive) .rdrEndEdge ~ .rdrDayNumber span,
|
|
1298
|
+
.rdrDay:not(.rdrDayPassive) .rdrSelected ~ .rdrDayNumber span {
|
|
1299
|
+
color: rgba(255, 255, 255, 0.85);
|
|
1300
|
+
}
|
|
1301
|
+
|
|
1302
|
+
.rdrSelected,
|
|
1303
|
+
.rdrInRange,
|
|
1304
|
+
.rdrStartEdge,
|
|
1305
|
+
.rdrEndEdge {
|
|
1306
|
+
background: currentColor;
|
|
1307
|
+
position: absolute;
|
|
1308
|
+
top: 5px;
|
|
1309
|
+
left: 0;
|
|
1310
|
+
right: 0;
|
|
1311
|
+
bottom: 5px;
|
|
1312
|
+
}
|
|
1313
|
+
|
|
1314
|
+
.rdrSelected {
|
|
1315
|
+
width: 40px !important;
|
|
1316
|
+
height: 40px !important;
|
|
1317
|
+
top: 2px;
|
|
1318
|
+
left: 2px;
|
|
1319
|
+
background: #1570ef !important;
|
|
1320
|
+
border-radius: 100% !important;
|
|
1321
|
+
align-self: center !important;
|
|
1322
|
+
justify-self: center !important;
|
|
1323
|
+
flex: none;
|
|
1324
|
+
flex-grow: 0;
|
|
1325
|
+
}
|
|
1326
|
+
|
|
1327
|
+
.rdrInRange {
|
|
1328
|
+
}
|
|
1329
|
+
|
|
1330
|
+
.rdrStartEdge {
|
|
1331
|
+
border-top-left-radius: 1.042em;
|
|
1332
|
+
border-bottom-left-radius: 1.042em;
|
|
1333
|
+
left: 2px;
|
|
1334
|
+
}
|
|
1335
|
+
|
|
1336
|
+
.rdrEndEdge {
|
|
1337
|
+
border-top-right-radius: 1.042em;
|
|
1338
|
+
border-bottom-right-radius: 1.042em;
|
|
1339
|
+
right: 2px;
|
|
1340
|
+
}
|
|
1341
|
+
|
|
1342
|
+
.rdrSelected {
|
|
1343
|
+
border-radius: 1.042em;
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1346
|
+
.rdrDayStartOfMonth .rdrInRange,
|
|
1347
|
+
.rdrDayStartOfMonth .rdrEndEdge,
|
|
1348
|
+
.rdrDayStartOfWeek .rdrInRange,
|
|
1349
|
+
.rdrDayStartOfWeek .rdrEndEdge {
|
|
1350
|
+
border-top-left-radius: 1.042em;
|
|
1351
|
+
border-bottom-left-radius: 1.042em;
|
|
1352
|
+
left: 2px;
|
|
1353
|
+
}
|
|
1354
|
+
|
|
1355
|
+
.rdrDayEndOfMonth .rdrInRange,
|
|
1356
|
+
.rdrDayEndOfMonth .rdrStartEdge,
|
|
1357
|
+
.rdrDayEndOfWeek .rdrInRange,
|
|
1358
|
+
.rdrDayEndOfWeek .rdrStartEdge {
|
|
1359
|
+
border-top-right-radius: 1.042em;
|
|
1360
|
+
border-bottom-right-radius: 1.042em;
|
|
1361
|
+
right: 2px;
|
|
1362
|
+
}
|
|
1363
|
+
|
|
1364
|
+
.rdrDayStartOfMonth .rdrDayInPreview,
|
|
1365
|
+
.rdrDayStartOfMonth .rdrDayEndPreview,
|
|
1366
|
+
.rdrDayStartOfWeek .rdrDayInPreview,
|
|
1367
|
+
.rdrDayStartOfWeek .rdrDayEndPreview {
|
|
1368
|
+
border-top-left-radius: 1.333em;
|
|
1369
|
+
border-bottom-left-radius: 1.333em;
|
|
1370
|
+
border-left-width: 1px;
|
|
1371
|
+
left: 0px;
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1374
|
+
.rdrDayEndOfMonth .rdrDayInPreview,
|
|
1375
|
+
.rdrDayEndOfMonth .rdrDayStartPreview,
|
|
1376
|
+
.rdrDayEndOfWeek .rdrDayInPreview,
|
|
1377
|
+
.rdrDayEndOfWeek .rdrDayStartPreview {
|
|
1378
|
+
border-top-right-radius: 1.333em !important;
|
|
1379
|
+
border-bottom-right-radius: 1.333em !important;
|
|
1380
|
+
border-right-width: 1px !important;
|
|
1381
|
+
right: 0px;
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1384
|
+
.rdrDayStartPreview,
|
|
1385
|
+
.rdrDayInPreview,
|
|
1386
|
+
.rdrDayEndPreview {
|
|
1387
|
+
background: rgba(255, 255, 255, 0.09);
|
|
1388
|
+
position: absolute;
|
|
1389
|
+
top: 3px;
|
|
1390
|
+
left: 0px;
|
|
1391
|
+
right: 0px;
|
|
1392
|
+
bottom: 3px;
|
|
1393
|
+
pointer-events: none;
|
|
1394
|
+
border: 0px solid currentColor;
|
|
1395
|
+
z-index: -10;
|
|
1396
|
+
}
|
|
1397
|
+
|
|
1398
|
+
.rdrDayStartPreview {
|
|
1399
|
+
border-top-width: 1px !important;
|
|
1400
|
+
border-left-width: 1px !important;
|
|
1401
|
+
border-bottom-width: 1px !important;
|
|
1402
|
+
border-top-left-radius: 1.333em;
|
|
1403
|
+
border-bottom-left-radius: 1.333em !important;
|
|
1404
|
+
left: 0px !important;
|
|
1405
|
+
top: 0px !important;
|
|
1406
|
+
right: 0px !important;
|
|
1407
|
+
}
|
|
1408
|
+
|
|
1409
|
+
.rdrDayInPreview {
|
|
1410
|
+
border-top-width: 1px;
|
|
1411
|
+
border-bottom-width: 1px;
|
|
1412
|
+
}
|
|
1413
|
+
|
|
1414
|
+
.rdrDayEndPreview {
|
|
1415
|
+
border-top-width: 1px;
|
|
1416
|
+
border-right-width: 1px;
|
|
1417
|
+
border-bottom-width: 1px;
|
|
1418
|
+
border-top-right-radius: 1.333em;
|
|
1419
|
+
border-bottom-right-radius: 1.333em;
|
|
1420
|
+
right: 0px;
|
|
1421
|
+
}
|
|
1422
|
+
|
|
1423
|
+
.rdrDefinedRangesWrapper {
|
|
1424
|
+
font-size: 12px;
|
|
1425
|
+
width: 226px;
|
|
1426
|
+
border-right: solid 1px #eff2f7;
|
|
1427
|
+
background: #fff;
|
|
1428
|
+
}
|
|
1429
|
+
|
|
1430
|
+
.rdrDefinedRangesWrapper .rdrStaticRangeSelected {
|
|
1431
|
+
color: currentColor;
|
|
1432
|
+
font-weight: 600;
|
|
1433
|
+
}
|
|
1434
|
+
|
|
1435
|
+
.rdrStaticRange {
|
|
1436
|
+
border: 0;
|
|
1437
|
+
cursor: pointer;
|
|
1438
|
+
display: block;
|
|
1439
|
+
outline: 0;
|
|
1440
|
+
border-bottom: 1px solid #eff2f7;
|
|
1441
|
+
padding: 0;
|
|
1442
|
+
background: #fff;
|
|
1443
|
+
}
|
|
1444
|
+
|
|
1445
|
+
.rdrStaticRange:hover .rdrStaticRangeLabel,
|
|
1446
|
+
.rdrStaticRange:focus .rdrStaticRangeLabel {
|
|
1447
|
+
background: #eff2f7;
|
|
1448
|
+
}
|
|
1449
|
+
|
|
1450
|
+
.rdrStaticRangeLabel {
|
|
1451
|
+
display: block;
|
|
1452
|
+
outline: 0;
|
|
1453
|
+
line-height: 18px;
|
|
1454
|
+
padding: 10px 20px;
|
|
1455
|
+
text-align: left;
|
|
1456
|
+
}
|
|
1457
|
+
|
|
1458
|
+
.rdrInputRanges {
|
|
1459
|
+
padding: 10px 0;
|
|
1460
|
+
}
|
|
1461
|
+
|
|
1462
|
+
.rdrInputRange {
|
|
1463
|
+
align-items: center;
|
|
1464
|
+
padding: 5px 20px;
|
|
1465
|
+
}
|
|
1466
|
+
|
|
1467
|
+
.rdrInputRangeInput {
|
|
1468
|
+
width: 30px;
|
|
1469
|
+
height: 30px;
|
|
1470
|
+
line-height: 30px;
|
|
1471
|
+
border-radius: 4px;
|
|
1472
|
+
text-align: center;
|
|
1473
|
+
border: solid 1px rgb(222, 231, 235);
|
|
1474
|
+
margin-right: 10px;
|
|
1475
|
+
color: rgb(108, 118, 122);
|
|
1476
|
+
}
|
|
1477
|
+
|
|
1478
|
+
.rdrInputRangeInput:focus,
|
|
1479
|
+
.rdrInputRangeInput:hover {
|
|
1480
|
+
border-color: rgb(180, 191, 196);
|
|
1481
|
+
outline: 0;
|
|
1482
|
+
color: #333;
|
|
1483
|
+
}
|
|
1484
|
+
|
|
1485
|
+
.rdrCalendarWrapper:not(.rdrDateRangeWrapper)
|
|
1486
|
+
.rdrDayHovered
|
|
1487
|
+
.rdrDayNumber:after {
|
|
1488
|
+
content: "";
|
|
1489
|
+
width: 40px !important;
|
|
1490
|
+
height: 40px !important;
|
|
1491
|
+
border: 0px solid currentColor !important;
|
|
1492
|
+
border-radius: 100% !important;
|
|
1493
|
+
position: absolute !important;
|
|
1494
|
+
top: -10px !important;
|
|
1495
|
+
right: 0px !important;
|
|
1496
|
+
left: -7px !important;
|
|
1497
|
+
bottom: 0px !important;
|
|
1498
|
+
background: rgba(0, 145, 255, 0.1);
|
|
1499
|
+
}
|
|
1500
|
+
|
|
1501
|
+
.rdrDayPassive {
|
|
1502
|
+
pointer-events: all !important;
|
|
1503
|
+
}
|
|
1504
|
+
|
|
1505
|
+
.rdrDayPassive .rdrDayNumber span {
|
|
1506
|
+
color: #d5dce0;
|
|
1507
|
+
}
|
|
1508
|
+
|
|
1509
|
+
.rdrDayPassive .rdrInRange,
|
|
1510
|
+
.rdrDayPassive .rdrStartEdge,
|
|
1511
|
+
.rdrDayPassive .rdrEndEdge,
|
|
1512
|
+
.rdrDayPassive .rdrSelected,
|
|
1513
|
+
.rdrDayPassive .rdrDayStartPreview,
|
|
1514
|
+
.rdrDayPassive .rdrDayInPreview,
|
|
1515
|
+
.rdrDayPassive .rdrDayEndPreview {
|
|
1516
|
+
display: none;
|
|
1517
|
+
}
|
|
1518
|
+
|
|
1519
|
+
.rdrDayDisabled {
|
|
1520
|
+
background-color: rgb(255, 255, 255) !important;
|
|
1521
|
+
}
|
|
1522
|
+
|
|
1523
|
+
.rdrDayDisabled .rdrDayNumber span {
|
|
1524
|
+
color: #fda29b;
|
|
1525
|
+
}
|
|
1526
|
+
|
|
1527
|
+
.rdrDayDisabled .rdrInRange,
|
|
1528
|
+
.rdrDayDisabled .rdrStartEdge,
|
|
1529
|
+
.rdrDayDisabled .rdrEndEdge,
|
|
1530
|
+
.rdrDayDisabled .rdrSelected,
|
|
1531
|
+
.rdrDayDisabled .rdrDayStartPreview,
|
|
1532
|
+
.rdrDayDisabled .rdrDayInPreview,
|
|
1533
|
+
.rdrDayDisabled .rdrDayEndPreview {
|
|
1534
|
+
filter: grayscale(100%) opacity(60%);
|
|
1535
|
+
}
|
|
1536
|
+
|
|
1537
|
+
.rdrMonthName {
|
|
1538
|
+
text-align: left;
|
|
1539
|
+
font-weight: 600;
|
|
1540
|
+
color: #849095;
|
|
1541
|
+
padding: 0.833em;
|
|
1542
|
+
}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -28,3 +28,4 @@ export { default as DatePicker } from "./datePicker/DatePicker";
|
|
|
28
28
|
export { default as DoubleInput } from "./doubleInput/DoubleInput";
|
|
29
29
|
export { default as InputTag } from "./inputTag/InputTag";
|
|
30
30
|
export { default as InputTagDropdownItem } from "./inputTag/InputTagDropdownItem";
|
|
31
|
+
export { default as CalendarView } from "./calendarView/CalendarView";
|
package/dist/esm/index.js
CHANGED
|
@@ -18554,4 +18554,95 @@ var InputTag = function InputTag(_a) {
|
|
|
18554
18554
|
}));
|
|
18555
18555
|
};
|
|
18556
18556
|
|
|
18557
|
-
|
|
18557
|
+
var CalendarView = function CalendarView(_a) {
|
|
18558
|
+
var date1 = _a.date1,
|
|
18559
|
+
date2 = _a.date2,
|
|
18560
|
+
handleDate1 = _a.handleDate1,
|
|
18561
|
+
handleDate2 = _a.handleDate2,
|
|
18562
|
+
handleSelectCalenderView = _a.handleSelectCalenderView; // const [date1, setDate1] = useState(new Date());
|
|
18563
|
+
// const [date2, setDate2] = useState(new Date());
|
|
18564
|
+
|
|
18565
|
+
var _b = useState(true),
|
|
18566
|
+
autoFocus1 = _b[0],
|
|
18567
|
+
seAutoFocus1 = _b[1];
|
|
18568
|
+
|
|
18569
|
+
var _c = useState(false),
|
|
18570
|
+
autoFocus2 = _c[0],
|
|
18571
|
+
seAutoFocus2 = _c[1]; // const [showCalender1, setShowCalender1] = useState(true);
|
|
18572
|
+
// const [showCalender2, setShowCalender2] = useState(false);
|
|
18573
|
+
// const [showCalender2, setShowCalender2] = useState(false);
|
|
18574
|
+
|
|
18575
|
+
|
|
18576
|
+
var handleSelect1 = function handleSelect1(selectedValue) {
|
|
18577
|
+
seAutoFocus2(true);
|
|
18578
|
+
seAutoFocus1(false);
|
|
18579
|
+
handleDate1(selectedValue);
|
|
18580
|
+
};
|
|
18581
|
+
|
|
18582
|
+
var handleSelect2 = function handleSelect2(selectedValue) {
|
|
18583
|
+
seAutoFocus1(true);
|
|
18584
|
+
seAutoFocus2(false);
|
|
18585
|
+
handleDate2(selectedValue);
|
|
18586
|
+
};
|
|
18587
|
+
|
|
18588
|
+
return jsxRuntime.exports.jsxs("div", {
|
|
18589
|
+
children: [jsxRuntime.exports.jsxs("div", __assign({
|
|
18590
|
+
className: " hplxt-flex hplxt-flex-col hplxt-box-border hplxt-w-[330px] hplxt-h-[450px] hplxt-border-1 hplxt-border-Blue_gray-200 hplxt-rounded-t-md hplxt-bg-Blue_gray-25 hplxt-z-30"
|
|
18591
|
+
}, {
|
|
18592
|
+
children: [jsxRuntime.exports.jsxs("div", __assign({
|
|
18593
|
+
className: "hplxt-z-10 hplxt-flex hplxt-mt-1 hplxt-items-center hplxt-justify-center"
|
|
18594
|
+
}, {
|
|
18595
|
+
children: [jsxRuntime.exports.jsx(InputField, {
|
|
18596
|
+
className: "hplxt-text-Gray-400 ".concat(autoFocus1 ? "hplxt-border-Primary-700" : "", " hplxt-border-1 hplxt-rounded-md"),
|
|
18597
|
+
inputProps: {
|
|
18598
|
+
placeholder: "Start From",
|
|
18599
|
+
value: dayjs(date1).format("DD-MMM-YYYY"),
|
|
18600
|
+
autoFocus: autoFocus1
|
|
18601
|
+
},
|
|
18602
|
+
isborderRequired: false,
|
|
18603
|
+
width: "130px"
|
|
18604
|
+
}), jsxRuntime.exports.jsx("div", {
|
|
18605
|
+
className: "hplxt-border hplxt-w-3 hplxt-border-Blue_gray-200"
|
|
18606
|
+
}), jsxRuntime.exports.jsx(InputField, {
|
|
18607
|
+
className: "hplxt-text-Gray-400 ".concat(autoFocus2 ? "hplxt-border-Primary-700" : "", " hplxt-border-1 hplxt-rounded-md"),
|
|
18608
|
+
inputProps: {
|
|
18609
|
+
placeholder: "To Day",
|
|
18610
|
+
value: dayjs(date2).format("DD-MMM-YYYY"),
|
|
18611
|
+
autoFocus: autoFocus2
|
|
18612
|
+
},
|
|
18613
|
+
width: "130px"
|
|
18614
|
+
})]
|
|
18615
|
+
})), autoFocus1 && jsxRuntime.exports.jsx("div", __assign({
|
|
18616
|
+
className: "hplxt-flex"
|
|
18617
|
+
}, {
|
|
18618
|
+
children: jsxRuntime.exports.jsx(dist.Calendar, {
|
|
18619
|
+
date: dayjs(date1).isValid() ? date1 : new Date(),
|
|
18620
|
+
onChange: handleSelect1
|
|
18621
|
+
})
|
|
18622
|
+
})), autoFocus2 && jsxRuntime.exports.jsx("div", __assign({
|
|
18623
|
+
className: "hplxt-flex"
|
|
18624
|
+
}, {
|
|
18625
|
+
children: jsxRuntime.exports.jsx(dist.Calendar, {
|
|
18626
|
+
date: dayjs(date2).isValid() ? date2 : new Date(),
|
|
18627
|
+
onChange: handleSelect2
|
|
18628
|
+
})
|
|
18629
|
+
}))]
|
|
18630
|
+
})), jsxRuntime.exports.jsxs("div", __assign({
|
|
18631
|
+
className: "hplxt-flex hplxt-h-8 hplxt-bg-White hplxt-items-center hplxt-justify-end hplxt-order-last hplxt-border-b-1 hplxt-border-l-1 hplxt-border-r-1 hplxt-border-Blue_gray-200 hplxt-rounded-b-md -md hplxt-Blue_gray-400 "
|
|
18632
|
+
}, {
|
|
18633
|
+
children: [jsxRuntime.exports.jsx("i", {
|
|
18634
|
+
className: "hx_calendar hplxt-text-Primary-700 hplxt-cursor-pointer",
|
|
18635
|
+
onClick: handleSelectCalenderView
|
|
18636
|
+
}), jsxRuntime.exports.jsx(Typography, __assign({
|
|
18637
|
+
variant: "Regular",
|
|
18638
|
+
type: "Text sm",
|
|
18639
|
+
className: "hplxt-text-Primary-700 hplxt-mr-3 hplxt-cursor-pointer",
|
|
18640
|
+
onClick: handleSelectCalenderView
|
|
18641
|
+
}, {
|
|
18642
|
+
children: "Number View"
|
|
18643
|
+
}))]
|
|
18644
|
+
}))]
|
|
18645
|
+
});
|
|
18646
|
+
};
|
|
18647
|
+
|
|
18648
|
+
export { AddSuggestion, Avatar, Badge, BadgeGroup, Button, ButtonGroups, CalendarView, Card, Checkbox, CheckboxGroup, CheckboxGroupItem, CollapsibleCard, DatePicker, DoubleInput, DropdownField, DropdownItems as DropdownItem, InputField, InputFieldSplit, InputTag, InputTagDropdownItem, MessageToast, NestedDropdown, OtpField, ProgressBar, ProgressCircle, RadioBtn, Slider, TextAreaField, ToggleSwitch, Tooltip, Typography };
|
package/dist/esm/types.d.ts
CHANGED
|
@@ -65,7 +65,7 @@ export interface CalenderViewProps {
|
|
|
65
65
|
date2?: Date;
|
|
66
66
|
handleDate1: (val: Date) => void;
|
|
67
67
|
handleDate2: (val: Date) => void;
|
|
68
|
-
handleSelectCalenderView?: (
|
|
68
|
+
handleSelectCalenderView?: () => void;
|
|
69
69
|
}
|
|
70
70
|
export interface InputFieldSplitProps {
|
|
71
71
|
label?: string;
|