@ballistix.digital/react-components 7.4.0 → 7.4.1-rc-76.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.
- package/dist/index.d.ts +113 -144
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +411 -317
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +410 -316
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1390,64 +1390,277 @@ var $ccdca29d489f3200$export$2e2bcd8739ae039 = $ccdca29d489f3200$var$ProgressTra
|
|
|
1390
1390
|
|
|
1391
1391
|
|
|
1392
1392
|
|
|
1393
|
+
|
|
1394
|
+
|
|
1395
|
+
var $3369f7d596d23d58$var$base = {
|
|
1396
|
+
hint: 'text-gray-400 text-xs mt-1',
|
|
1397
|
+
error: 'text-red-500 text-xs ml-5 mt-1'
|
|
1398
|
+
};
|
|
1399
|
+
var $3369f7d596d23d58$var$leading = {};
|
|
1400
|
+
var $3369f7d596d23d58$var$trailing = {};
|
|
1401
|
+
var $3369f7d596d23d58$var$normal = {
|
|
1402
|
+
hint: 'mt-2 text-sm'
|
|
1403
|
+
};
|
|
1404
|
+
var $3369f7d596d23d58$var$inset = {
|
|
1405
|
+
hint: 'hidden'
|
|
1406
|
+
};
|
|
1407
|
+
var $3369f7d596d23d58$var$overlapping = {
|
|
1408
|
+
hint: 'hidden'
|
|
1409
|
+
};
|
|
1410
|
+
var $3369f7d596d23d58$var$pill = {
|
|
1411
|
+
hint: 'text-xs'
|
|
1412
|
+
};
|
|
1413
|
+
var $3369f7d596d23d58$var$floored = {
|
|
1414
|
+
hint: 'text-xs mt-2'
|
|
1415
|
+
};
|
|
1416
|
+
var $3369f7d596d23d58$var$invalid = {
|
|
1417
|
+
hint: 'text-sm text-red-600'
|
|
1418
|
+
};
|
|
1419
|
+
var $3369f7d596d23d58$var$disabled = {
|
|
1420
|
+
hint: 'text-gray-500'
|
|
1421
|
+
};
|
|
1422
|
+
var $3369f7d596d23d58$var$styles = {
|
|
1423
|
+
base: $3369f7d596d23d58$var$base,
|
|
1424
|
+
leading: $3369f7d596d23d58$var$leading,
|
|
1425
|
+
trailing: $3369f7d596d23d58$var$trailing,
|
|
1426
|
+
normal: $3369f7d596d23d58$var$normal,
|
|
1427
|
+
inset: $3369f7d596d23d58$var$inset,
|
|
1428
|
+
overlapping: $3369f7d596d23d58$var$overlapping,
|
|
1429
|
+
pill: $3369f7d596d23d58$var$pill,
|
|
1430
|
+
floored: $3369f7d596d23d58$var$floored,
|
|
1431
|
+
invalid: $3369f7d596d23d58$var$invalid,
|
|
1432
|
+
disabled: $3369f7d596d23d58$var$disabled
|
|
1433
|
+
};
|
|
1434
|
+
var $3369f7d596d23d58$export$2e2bcd8739ae039 = $3369f7d596d23d58$var$styles;
|
|
1435
|
+
|
|
1436
|
+
|
|
1437
|
+
var $dfbd7d015eae4218$var$InputFooter = function(props) {
|
|
1438
|
+
var name = props.name, hint = props.hint, error = props.error, isTouched = props.isTouched, _a = props.isHidden, isHidden = _a === void 0 ? false : _a, stylesOverrides = props.styles, _b = props.type, type = _b === void 0 ? 'normal' : _b;
|
|
1439
|
+
var errorDataCy = "form-input-error-".concat(name);
|
|
1440
|
+
var handleGenerateStyle = function() {
|
|
1441
|
+
var result = (0, $f0c671820c340322$export$e2d2075c69d9100d)((0, $3369f7d596d23d58$export$2e2bcd8739ae039).base);
|
|
1442
|
+
var keys = (0, $27f90b0cff19565d$export$be5d6ab3c5b84767)((0, $3369f7d596d23d58$export$2e2bcd8739ae039).base);
|
|
1443
|
+
keys.forEach(function(key) {
|
|
1444
|
+
(0, $iA2ta$lodash.set)(result, key, (0, $622cd2936b18c771$export$4370d69198e9314a)((0, $iA2ta$lodash.get)((0, $3369f7d596d23d58$export$2e2bcd8739ae039).base, key), (0, $iA2ta$lodash.get)((0, $3369f7d596d23d58$export$2e2bcd8739ae039)[type], key), (0, $iA2ta$lodash.get)(stylesOverrides, key)));
|
|
1445
|
+
});
|
|
1446
|
+
return result;
|
|
1447
|
+
};
|
|
1448
|
+
var styles = handleGenerateStyle();
|
|
1449
|
+
var hintElement = (0, $iA2ta$react.useMemo)(function() {
|
|
1450
|
+
if (!hint || error && isTouched) return null;
|
|
1451
|
+
return (0, $iA2ta$reactjsxruntime.jsx)("p", {
|
|
1452
|
+
className: styles.hint,
|
|
1453
|
+
children: hint
|
|
1454
|
+
});
|
|
1455
|
+
}, [
|
|
1456
|
+
hint,
|
|
1457
|
+
styles.hint,
|
|
1458
|
+
error,
|
|
1459
|
+
isTouched
|
|
1460
|
+
]);
|
|
1461
|
+
var errorElement = (0, $iA2ta$react.useMemo)(function() {
|
|
1462
|
+
if (!error || !isTouched) return null;
|
|
1463
|
+
return (0, $iA2ta$reactjsxruntime.jsx)("p", {
|
|
1464
|
+
className: styles.error,
|
|
1465
|
+
"data-cy": errorDataCy,
|
|
1466
|
+
children: error
|
|
1467
|
+
});
|
|
1468
|
+
}, [
|
|
1469
|
+
error,
|
|
1470
|
+
styles.error,
|
|
1471
|
+
errorDataCy,
|
|
1472
|
+
isTouched
|
|
1473
|
+
]);
|
|
1474
|
+
if (isHidden && (0, $iA2ta$lodash.isNil)(errorElement) && (0, $iA2ta$lodash.isNil)(hintElement)) return null;
|
|
1475
|
+
return (0, $iA2ta$reactjsxruntime.jsxs)("div", {
|
|
1476
|
+
className: styles.foot,
|
|
1477
|
+
children: [
|
|
1478
|
+
hintElement,
|
|
1479
|
+
errorElement
|
|
1480
|
+
]
|
|
1481
|
+
});
|
|
1482
|
+
};
|
|
1483
|
+
var $dfbd7d015eae4218$export$2e2bcd8739ae039 = $dfbd7d015eae4218$var$InputFooter;
|
|
1484
|
+
|
|
1485
|
+
|
|
1486
|
+
|
|
1487
|
+
|
|
1488
|
+
|
|
1489
|
+
|
|
1490
|
+
|
|
1491
|
+
|
|
1492
|
+
|
|
1493
|
+
|
|
1494
|
+
|
|
1495
|
+
var $65bb4d593718fcda$var$base = {
|
|
1496
|
+
header: {
|
|
1497
|
+
container: 'flex flex-col justify-end',
|
|
1498
|
+
labelWrapper: 'flex',
|
|
1499
|
+
label: '',
|
|
1500
|
+
required: '',
|
|
1501
|
+
optional: 'ml-auto text-xs text-gray-500',
|
|
1502
|
+
description: 'text-xs font-light'
|
|
1503
|
+
}
|
|
1504
|
+
};
|
|
1505
|
+
var $65bb4d593718fcda$var$normal = {
|
|
1506
|
+
header: {
|
|
1507
|
+
container: 'mb-2',
|
|
1508
|
+
label: 'leading-6 text-sm',
|
|
1509
|
+
optional: 'leading-6'
|
|
1510
|
+
}
|
|
1511
|
+
};
|
|
1512
|
+
var $65bb4d593718fcda$var$inset = {
|
|
1513
|
+
header: {
|
|
1514
|
+
label: 'text-xs',
|
|
1515
|
+
optional: 'text-xs'
|
|
1516
|
+
}
|
|
1517
|
+
};
|
|
1518
|
+
var $65bb4d593718fcda$var$overlapping = {
|
|
1519
|
+
header: {
|
|
1520
|
+
container: 'flex flex-col justify-end',
|
|
1521
|
+
labelWrapper: 'absolute flex justify-between items-center left-0 -top-2 right-0 mx-2 z-10 w-full',
|
|
1522
|
+
label: 'inline-block bg-white px-1 text-xs font-medium text-gray-900',
|
|
1523
|
+
required: '',
|
|
1524
|
+
optional: 'text-xs mr-4 bg-white px-1',
|
|
1525
|
+
description: 'hidden'
|
|
1526
|
+
}
|
|
1527
|
+
};
|
|
1528
|
+
var $65bb4d593718fcda$var$pill = {
|
|
1529
|
+
header: {
|
|
1530
|
+
labelWrapper: 'mx-px block px-4 text-sm font-medium leading-6 text-gray-900 mb-1 pr-6',
|
|
1531
|
+
description: 'mx-px block px-4 text-sm font-medium leading-6 text-gray-900 mb-1 pr-6'
|
|
1532
|
+
}
|
|
1533
|
+
};
|
|
1534
|
+
var $65bb4d593718fcda$var$floored = {
|
|
1535
|
+
header: {
|
|
1536
|
+
label: 'block text-sm font-medium leading-6 text-gray-900'
|
|
1537
|
+
}
|
|
1538
|
+
};
|
|
1539
|
+
var $65bb4d593718fcda$var$styles = {
|
|
1540
|
+
base: $65bb4d593718fcda$var$base,
|
|
1541
|
+
normal: $65bb4d593718fcda$var$normal,
|
|
1542
|
+
inset: $65bb4d593718fcda$var$inset,
|
|
1543
|
+
overlapping: $65bb4d593718fcda$var$overlapping,
|
|
1544
|
+
pill: $65bb4d593718fcda$var$pill,
|
|
1545
|
+
floored: $65bb4d593718fcda$var$floored
|
|
1546
|
+
};
|
|
1547
|
+
var $65bb4d593718fcda$export$2e2bcd8739ae039 = $65bb4d593718fcda$var$styles;
|
|
1548
|
+
|
|
1549
|
+
|
|
1550
|
+
var $9314e0aa7f1e874e$var$InputHeader = function(props) {
|
|
1551
|
+
var name = props.name, label = props.label, description = props.description, required = props.required, _a = props.isRequired, isRequired = _a === void 0 ? false : _a, isOptionalLabelHidden = props.isOptionalLabelHidden, stylesOverrides = props.styles, _b = props.type, type = _b === void 0 ? 'normal' : _b;
|
|
1552
|
+
var handleGenerateStyle = function() {
|
|
1553
|
+
var result = (0, $f0c671820c340322$export$e2d2075c69d9100d)((0, $65bb4d593718fcda$export$2e2bcd8739ae039).base);
|
|
1554
|
+
var keys = (0, $27f90b0cff19565d$export$be5d6ab3c5b84767)((0, $65bb4d593718fcda$export$2e2bcd8739ae039).base);
|
|
1555
|
+
keys.forEach(function(key) {
|
|
1556
|
+
(0, $iA2ta$lodash.set)(result, key, (0, $622cd2936b18c771$export$4370d69198e9314a)((0, $iA2ta$lodash.get)((0, $65bb4d593718fcda$export$2e2bcd8739ae039).base, key), (0, $iA2ta$lodash.get)((0, $65bb4d593718fcda$export$2e2bcd8739ae039)[type], key), (0, $iA2ta$lodash.get)(stylesOverrides, key)));
|
|
1557
|
+
});
|
|
1558
|
+
return result;
|
|
1559
|
+
};
|
|
1560
|
+
var styles = handleGenerateStyle();
|
|
1561
|
+
var requiredLabel = (0, $iA2ta$react.useMemo)(function() {
|
|
1562
|
+
if (required) return required({
|
|
1563
|
+
isRequired: isRequired
|
|
1564
|
+
});
|
|
1565
|
+
else if (!isRequired && typeof label === 'string' && !isOptionalLabelHidden) return (0, $iA2ta$reactjsxruntime.jsx)("span", {
|
|
1566
|
+
className: styles.header.optional,
|
|
1567
|
+
children: "Optional"
|
|
1568
|
+
});
|
|
1569
|
+
return null;
|
|
1570
|
+
}, [
|
|
1571
|
+
isOptionalLabelHidden,
|
|
1572
|
+
isRequired,
|
|
1573
|
+
label,
|
|
1574
|
+
required,
|
|
1575
|
+
styles.header.optional
|
|
1576
|
+
]);
|
|
1577
|
+
var labelElement = (0, $iA2ta$react.useMemo)(function() {
|
|
1578
|
+
if (!label && (0, $iA2ta$lodash.isNil)(requiredLabel)) return null;
|
|
1579
|
+
return (0, $iA2ta$reactjsxruntime.jsxs)("div", {
|
|
1580
|
+
className: styles.header.labelWrapper,
|
|
1581
|
+
children: [
|
|
1582
|
+
(0, $iA2ta$reactjsxruntime.jsx)("label", {
|
|
1583
|
+
htmlFor: name,
|
|
1584
|
+
className: styles.header.label,
|
|
1585
|
+
children: label
|
|
1586
|
+
}),
|
|
1587
|
+
requiredLabel
|
|
1588
|
+
]
|
|
1589
|
+
});
|
|
1590
|
+
}, [
|
|
1591
|
+
label,
|
|
1592
|
+
name,
|
|
1593
|
+
requiredLabel,
|
|
1594
|
+
styles.header.labelWrapper,
|
|
1595
|
+
styles.header.label
|
|
1596
|
+
]);
|
|
1597
|
+
var descriptionElement = (0, $iA2ta$react.useMemo)(function() {
|
|
1598
|
+
if (!description) return null;
|
|
1599
|
+
return (0, $iA2ta$reactjsxruntime.jsx)("p", {
|
|
1600
|
+
className: styles.header.description,
|
|
1601
|
+
children: description
|
|
1602
|
+
});
|
|
1603
|
+
}, [
|
|
1604
|
+
description,
|
|
1605
|
+
styles.header.description
|
|
1606
|
+
]);
|
|
1607
|
+
if ((0, $iA2ta$lodash.isNil)(labelElement) && (0, $iA2ta$lodash.isNil)(descriptionElement)) return null;
|
|
1608
|
+
return (0, $iA2ta$reactjsxruntime.jsxs)("div", {
|
|
1609
|
+
className: styles.header.container,
|
|
1610
|
+
children: [
|
|
1611
|
+
labelElement,
|
|
1612
|
+
descriptionElement
|
|
1613
|
+
]
|
|
1614
|
+
});
|
|
1615
|
+
};
|
|
1616
|
+
var $9314e0aa7f1e874e$export$2e2bcd8739ae039 = $9314e0aa7f1e874e$var$InputHeader;
|
|
1617
|
+
|
|
1618
|
+
|
|
1619
|
+
|
|
1620
|
+
|
|
1621
|
+
|
|
1622
|
+
|
|
1623
|
+
|
|
1624
|
+
|
|
1625
|
+
|
|
1393
1626
|
var $143cee146891bafc$var$base = {
|
|
1394
1627
|
container: '',
|
|
1395
|
-
head: 'flex justify-between',
|
|
1396
1628
|
body: 'relative rounded-md',
|
|
1397
1629
|
foot: '',
|
|
1398
|
-
label: 'block font-medium text-gray-900',
|
|
1399
|
-
hint: 'text-xs text-gray-500',
|
|
1400
1630
|
leading: 'pointer-events-none absolute inset-y-0 left-0 flex items-center',
|
|
1401
1631
|
input: 'block w-full',
|
|
1402
1632
|
trailing: 'pointer-events-none absolute inset-y-0 right-0 flex items-center',
|
|
1403
|
-
|
|
1404
|
-
error: 'text-red-500 text-xs ml-5 mt-1'
|
|
1633
|
+
error: 'ml-5'
|
|
1405
1634
|
};
|
|
1406
1635
|
var $143cee146891bafc$var$leading = {
|
|
1407
1636
|
input: 'pl-10'
|
|
1408
1637
|
};
|
|
1409
1638
|
var $143cee146891bafc$var$trailing = {};
|
|
1410
1639
|
var $143cee146891bafc$var$normal = {
|
|
1411
|
-
label: 'leading-6 text-sm mb-2',
|
|
1412
|
-
hint: 'leading-6',
|
|
1413
1640
|
leading: 'pl-3',
|
|
1414
1641
|
input: 'rounded-md border-gray-200 shadow-xs focus:border-primary-500 focus:ring-primary-500 sm:text-sm placeholder-gray-300',
|
|
1415
|
-
trailing: 'pr-3'
|
|
1416
|
-
description: 'mt-2 text-sm'
|
|
1642
|
+
trailing: 'pr-3'
|
|
1417
1643
|
};
|
|
1418
1644
|
var $143cee146891bafc$var$inset = {
|
|
1419
1645
|
container: 'rounded-md px-3 pt-2.5 pb-1.5 shadow-xs ring-1 ring-inset ring-gray-300 focus-within:ring-2 focus-within:ring-primary-600',
|
|
1420
|
-
|
|
1421
|
-
hint: 'text-xs',
|
|
1422
|
-
input: 'border-0 ring-0! p-0 text-gray-900 placeholder:text-gray-400 focus:ring-0 sm:text-sm pl-0',
|
|
1423
|
-
description: 'hidden'
|
|
1646
|
+
input: 'border-0 ring-0! p-0 text-gray-900 placeholder:text-gray-400 focus:ring-0 sm:text-sm pl-0'
|
|
1424
1647
|
};
|
|
1425
1648
|
var $143cee146891bafc$var$overlapping = {
|
|
1426
1649
|
container: 'relative',
|
|
1427
|
-
|
|
1428
|
-
label: 'inline-block bg-white px-1 text-xs font-medium text-gray-900 ',
|
|
1429
|
-
hint: 'text-xs mr-4 bg-white px-1',
|
|
1430
|
-
input: 'block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-xs ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-primary-600 sm:text-sm sm:leading-6',
|
|
1431
|
-
description: 'hidden'
|
|
1650
|
+
input: 'block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-xs ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-primary-600 sm:text-sm sm:leading-6'
|
|
1432
1651
|
};
|
|
1433
1652
|
var $143cee146891bafc$var$pill = {
|
|
1434
|
-
head: 'mx-px block px-4 text-sm font-medium leading-6 text-gray-900 mb-1 pr-6',
|
|
1435
1653
|
foot: 'mx-px block px-4 text-sm font-medium leading-6 text-gray-900 mt-1 pr-6',
|
|
1436
1654
|
input: 'block w-full rounded-full border-0 px-4 py-1.5 text-gray-900 shadow-xs ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-primary-600 sm:text-sm sm:leading-6',
|
|
1437
|
-
trailing: 'pr-2'
|
|
1438
|
-
description: 'text-xs'
|
|
1655
|
+
trailing: 'pr-2'
|
|
1439
1656
|
};
|
|
1440
1657
|
var $143cee146891bafc$var$floored = {
|
|
1441
1658
|
body: 'relative mt-2',
|
|
1442
|
-
|
|
1443
|
-
input: 'peer block w-full border-0 bg-gray-50 py-1.5 text-gray-900 focus:ring-0 sm:text-sm sm:leading-6 ring-0',
|
|
1444
|
-
description: 'text-xs mt-2'
|
|
1659
|
+
input: 'peer block w-full border-0 bg-gray-50 py-1.5 text-gray-900 focus:ring-0 sm:text-sm sm:leading-6 ring-0'
|
|
1445
1660
|
};
|
|
1446
1661
|
var $143cee146891bafc$var$invalid = {
|
|
1447
1662
|
container: 'ring-red-500',
|
|
1448
|
-
input:
|
|
1449
|
-
'block w-full border border-transparent text-red-900 ring-1 ring-inset ring-red-300 placeholder:text-red-300 focus:ring-2 focus:ring-inset focus:ring-red-500 pr-10',
|
|
1450
|
-
description: 'text-sm text-red-600'
|
|
1663
|
+
input: 'block w-full border border-transparent text-red-900 ring-1 ring-inset ring-red-300 placeholder:text-red-300 focus:ring-2 focus:ring-inset focus:ring-red-500 pr-10'
|
|
1451
1664
|
};
|
|
1452
1665
|
var $143cee146891bafc$var$disabled = {
|
|
1453
1666
|
input: 'block w-full rounded-md border-0 text-gray-900 shadow-xs ring-1 ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-primary-600 disabled:cursor-not-allowed disabled:bg-gray-50 disabled:text-gray-500 disabled:ring-gray-200'
|
|
@@ -1470,7 +1683,7 @@ var $143cee146891bafc$export$2e2bcd8739ae039 = $143cee146891bafc$var$styles;
|
|
|
1470
1683
|
var $75cfef1d7ff66e89$var$InputGroupForm = function(props) {
|
|
1471
1684
|
var _a;
|
|
1472
1685
|
var _b;
|
|
1473
|
-
var name = props.name, _c = props.htmlType, htmlType = _c === void 0 ? 'text' : _c, label = props.label, description = props.description, placeholder = props.placeholder, leading = props.leading, trailing = props.trailing, required = props.required, value = props.value, mask = props.mask, min = props.min, max = props.max, maxLength = props.maxLength, rows = props.rows, error = props.error, _d = props.type, type = _d === void 0 ? 'normal' : _d, isDisabled = props.isDisabled, _e = props.isRequired, isRequired = _e === void 0 ? false : _e, _f = props.isTouched, isTouched = _f === void 0 ? false : _f, _g = props.isSolo, isSolo = _g === void 0 ? false : _g, onChange = props.onChange, onClear = props.onClear, onBlur = props.onBlur, onClick = props.onClick, onKeyDown = props.onKeyDown, setRefOnLoad = props.setRefOnLoad, stylesOverrides = props.styles;
|
|
1686
|
+
var name = props.name, _c = props.htmlType, htmlType = _c === void 0 ? 'text' : _c, label = props.label, hint = props.hint, description = props.description, placeholder = props.placeholder, leading = props.leading, trailing = props.trailing, required = props.required, value = props.value, mask = props.mask, min = props.min, max = props.max, maxLength = props.maxLength, rows = props.rows, error = props.error, _d = props.type, type = _d === void 0 ? 'normal' : _d, isDisabled = props.isDisabled, _e = props.isRequired, isRequired = _e === void 0 ? false : _e, _f = props.isTouched, isTouched = _f === void 0 ? false : _f, _g = props.isSolo, isSolo = _g === void 0 ? false : _g, _h = props.isOptionalLabelHidden, isOptionalLabelHidden = _h === void 0 ? false : _h, onChange = props.onChange, onClear = props.onClear, onBlur = props.onBlur, onClick = props.onClick, onKeyDown = props.onKeyDown, setRefOnLoad = props.setRefOnLoad, stylesOverrides = props.styles;
|
|
1474
1687
|
var isValid = error === undefined;
|
|
1475
1688
|
var maskRef = (0, $iA2ta$reactinputmask.useMask)({
|
|
1476
1689
|
mask: mask === null || mask === void 0 ? void 0 : mask.mask,
|
|
@@ -1480,7 +1693,7 @@ var $75cfef1d7ff66e89$var$InputGroupForm = function(props) {
|
|
|
1480
1693
|
var ref = mask ? maskRef : defaultRef;
|
|
1481
1694
|
var handleGenerateStyle = function() {
|
|
1482
1695
|
var result = (0, $f0c671820c340322$export$e2d2075c69d9100d)((0, $143cee146891bafc$export$2e2bcd8739ae039).base);
|
|
1483
|
-
var keys = (0, $27f90b0cff19565d$export$be5d6ab3c5b84767)((0, $143cee146891bafc$export$2e2bcd8739ae039).base);
|
|
1696
|
+
var keys = (0, $iA2ta$lodash.concat)((0, $27f90b0cff19565d$export$be5d6ab3c5b84767)((0, $143cee146891bafc$export$2e2bcd8739ae039).base), (0, $27f90b0cff19565d$export$be5d6ab3c5b84767)((0, $3369f7d596d23d58$export$2e2bcd8739ae039).base), (0, $27f90b0cff19565d$export$be5d6ab3c5b84767)((0, $65bb4d593718fcda$export$2e2bcd8739ae039).base));
|
|
1484
1697
|
keys.forEach(function(key) {
|
|
1485
1698
|
(0, $iA2ta$lodash.set)(result, key, (0, $622cd2936b18c771$export$4370d69198e9314a)((0, $iA2ta$lodash.get)((0, $143cee146891bafc$export$2e2bcd8739ae039).base, key), leading !== undefined && (0, $iA2ta$lodash.get)((0, $143cee146891bafc$export$2e2bcd8739ae039).leading, key), trailing !== undefined && (0, $iA2ta$lodash.get)((0, $143cee146891bafc$export$2e2bcd8739ae039).trailing, key), type && (0, $iA2ta$lodash.get)((0, $143cee146891bafc$export$2e2bcd8739ae039)[type], key), isTouched === true && !isValid && (0, $iA2ta$lodash.get)((0, $143cee146891bafc$export$2e2bcd8739ae039).invalid, key), isDisabled && (0, $iA2ta$lodash.get)((0, $143cee146891bafc$export$2e2bcd8739ae039).disabled, key), (0, $iA2ta$lodash.get)(stylesOverrides, key)));
|
|
1486
1699
|
});
|
|
@@ -1493,7 +1706,6 @@ var $75cfef1d7ff66e89$var$InputGroupForm = function(props) {
|
|
|
1493
1706
|
});
|
|
1494
1707
|
var isClearable = !trailing && isValid && onClear && value !== '' && value;
|
|
1495
1708
|
var inputDataCy = "form-input-".concat(name);
|
|
1496
|
-
var errorDataCy = "form-input-error-".concat(name);
|
|
1497
1709
|
(0, $iA2ta$react.useEffect)(function() {
|
|
1498
1710
|
if (ref.current && ref.current !== null && setRefOnLoad) setRefOnLoad(ref);
|
|
1499
1711
|
}, [
|
|
@@ -1503,22 +1715,15 @@ var $75cfef1d7ff66e89$var$InputGroupForm = function(props) {
|
|
|
1503
1715
|
return (0, $iA2ta$reactjsxruntime.jsxs)("div", {
|
|
1504
1716
|
className: styles.container,
|
|
1505
1717
|
children: [
|
|
1506
|
-
(0, $iA2ta$reactjsxruntime.
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
className: styles.hint,
|
|
1516
|
-
children: "Optional"
|
|
1517
|
-
}),
|
|
1518
|
-
required && required({
|
|
1519
|
-
isRequired: isRequired
|
|
1520
|
-
})
|
|
1521
|
-
]
|
|
1718
|
+
(0, $iA2ta$reactjsxruntime.jsx)((0, $9314e0aa7f1e874e$export$2e2bcd8739ae039), {
|
|
1719
|
+
name: name,
|
|
1720
|
+
label: label,
|
|
1721
|
+
required: required,
|
|
1722
|
+
isRequired: isRequired,
|
|
1723
|
+
isOptionalLabelHidden: isOptionalLabelHidden,
|
|
1724
|
+
styles: styles,
|
|
1725
|
+
type: type,
|
|
1726
|
+
description: description
|
|
1522
1727
|
}),
|
|
1523
1728
|
(0, $iA2ta$reactjsxruntime.jsxs)("div", {
|
|
1524
1729
|
className: styles.body,
|
|
@@ -1597,19 +1802,13 @@ var $75cfef1d7ff66e89$var$InputGroupForm = function(props) {
|
|
|
1597
1802
|
})
|
|
1598
1803
|
]
|
|
1599
1804
|
}),
|
|
1600
|
-
(0, $iA2ta$reactjsxruntime.
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
error && isTouched && (0, $iA2ta$reactjsxruntime.jsx)("p", {
|
|
1608
|
-
className: styles.error,
|
|
1609
|
-
"data-cy": errorDataCy,
|
|
1610
|
-
children: error
|
|
1611
|
-
})
|
|
1612
|
-
]
|
|
1805
|
+
(0, $iA2ta$reactjsxruntime.jsx)((0, $dfbd7d015eae4218$export$2e2bcd8739ae039), {
|
|
1806
|
+
name: name,
|
|
1807
|
+
hint: hint,
|
|
1808
|
+
error: error,
|
|
1809
|
+
isTouched: isTouched,
|
|
1810
|
+
styles: styles,
|
|
1811
|
+
type: type
|
|
1613
1812
|
})
|
|
1614
1813
|
]
|
|
1615
1814
|
});
|
|
@@ -2055,13 +2254,11 @@ https://www.npmjs.com/package/react-tailwindcss-select
|
|
|
2055
2254
|
|
|
2056
2255
|
|
|
2057
2256
|
|
|
2257
|
+
|
|
2058
2258
|
var $f32ee84b87891376$var$base = {
|
|
2059
2259
|
container: '',
|
|
2060
|
-
head: 'flex justify-between',
|
|
2061
2260
|
body: 'relative rounded-md',
|
|
2062
2261
|
foot: '',
|
|
2063
|
-
label: 'block font-medium text-gray-900',
|
|
2064
|
-
hint: 'text-xs text-gray-500',
|
|
2065
2262
|
leading: 'pointer-events-none absolute inset-y-0 left-0 flex items-center',
|
|
2066
2263
|
input: 'block w-full flex border',
|
|
2067
2264
|
menuButton: '',
|
|
@@ -2088,8 +2285,6 @@ var $f32ee84b87891376$var$leading = {
|
|
|
2088
2285
|
};
|
|
2089
2286
|
var $f32ee84b87891376$var$trailing = {};
|
|
2090
2287
|
var $f32ee84b87891376$var$normal = {
|
|
2091
|
-
label: 'leading-6 text-sm mb-2',
|
|
2092
|
-
hint: 'leading-6',
|
|
2093
2288
|
leading: 'pl-3',
|
|
2094
2289
|
input: 'rounded-md border-gray-200 shadow-xs focus:border-primary-500 focus:ring-primary-500 sm:text-sm placeholder-gray-300',
|
|
2095
2290
|
trailing: '',
|
|
@@ -2097,21 +2292,15 @@ var $f32ee84b87891376$var$normal = {
|
|
|
2097
2292
|
};
|
|
2098
2293
|
var $f32ee84b87891376$var$inset = {
|
|
2099
2294
|
container: 'rounded-md px-3 pt-2.5 pb-1.5 shadow-xs ring-1 ring-inset ring-gray-300 focus-within:ring-2 focus-within:ring-primary-600',
|
|
2100
|
-
label: 'text-xs',
|
|
2101
|
-
hint: 'text-xs',
|
|
2102
2295
|
input: 'border-0 ring-0! p-0 text-gray-900 placeholder:text-gray-400 focus:ring-0 sm:text-sm pl-0',
|
|
2103
2296
|
description: 'hidden'
|
|
2104
2297
|
};
|
|
2105
2298
|
var $f32ee84b87891376$var$overlapping = {
|
|
2106
2299
|
container: 'relative',
|
|
2107
|
-
head: ' absolute flex justify-between items-center left-0 -top-2 right-0 mx-2 z-10 w-full',
|
|
2108
|
-
label: 'inline-block bg-white px-1 text-xs font-medium text-gray-900 ',
|
|
2109
|
-
hint: 'text-xs mr-4 bg-white px-1',
|
|
2110
2300
|
input: 'block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-xs ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-primary-600 sm:text-sm sm:leading-6',
|
|
2111
2301
|
description: 'hidden'
|
|
2112
2302
|
};
|
|
2113
2303
|
var $f32ee84b87891376$var$pill = {
|
|
2114
|
-
head: 'mx-px block px-4 text-sm font-medium leading-6 text-gray-900 mb-1 pr-6',
|
|
2115
2304
|
foot: 'mx-px block px-4 text-sm font-medium leading-6 text-gray-900 mt-1 pr-6',
|
|
2116
2305
|
input: 'block w-full rounded-full border-0 px-4 py-1.5 text-gray-900 shadow-xs ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-primary-600 sm:text-sm sm:leading-6',
|
|
2117
2306
|
trailing: 'pr-2',
|
|
@@ -2119,7 +2308,6 @@ var $f32ee84b87891376$var$pill = {
|
|
|
2119
2308
|
};
|
|
2120
2309
|
var $f32ee84b87891376$var$floored = {
|
|
2121
2310
|
body: 'relative mt-2',
|
|
2122
|
-
label: 'block text-sm font-medium leading-6 text-gray-900',
|
|
2123
2311
|
input: 'peer block w-full border-0 bg-gray-50 py-1.5 text-gray-900 focus:ring-0 sm:text-sm sm:leading-6 ring-0',
|
|
2124
2312
|
description: 'text-xs mt-2'
|
|
2125
2313
|
};
|
|
@@ -2149,9 +2337,9 @@ var $f32ee84b87891376$export$2e2bcd8739ae039 = $f32ee84b87891376$var$styles;
|
|
|
2149
2337
|
|
|
2150
2338
|
var $f3fccf014e1f10d5$var$SelectMenuForm = function(props) {
|
|
2151
2339
|
var _a;
|
|
2152
|
-
var _b = props.name, name = _b === void 0 ? 'select-menu-form' : _b, label = props.label, description = props.description, placeholder = props.placeholder, options = props.options, required = props.required, value = props.value, error = props.error, _c = props.isRequired, isRequired = _c === void 0 ? false : _c, isLoading = props.isLoading, _d = props.isTouched, isTouched = _d === void 0 ? false : _d, isDisabled = props.isDisabled, _e = props.isClearable, isClearable = _e === void 0 ? true : _e, _f = props.isMultiple, isMultiple = _f === void 0 ? false : _f, _g = props.isSearchable, isSearchable = _g === void 0 ? true : _g, _h = props.isSolo, isSolo = _h === void 0 ? false : _h, onChange = props.onChange, onSearchInputChange = props.onSearchInputChange, onClear = props.onClear, onBlur = props.onBlur, stylesOverrides = props.styles;
|
|
2153
|
-
var
|
|
2154
|
-
var
|
|
2340
|
+
var _b = props.name, name = _b === void 0 ? 'select-menu-form' : _b, label = props.label, description = props.description, placeholder = props.placeholder, options = props.options, required = props.required, value = props.value, error = props.error, _c = props.isRequired, isRequired = _c === void 0 ? false : _c, isLoading = props.isLoading, _d = props.isTouched, isTouched = _d === void 0 ? false : _d, isDisabled = props.isDisabled, _e = props.isClearable, isClearable = _e === void 0 ? true : _e, _f = props.isMultiple, isMultiple = _f === void 0 ? false : _f, _g = props.isSearchable, isSearchable = _g === void 0 ? true : _g, _h = props.isSolo, isSolo = _h === void 0 ? false : _h, _j = props.isOptionalLabelHidden, isOptionalLabelHidden = _j === void 0 ? false : _j, onChange = props.onChange, onSearchInputChange = props.onSearchInputChange, onClear = props.onClear, onBlur = props.onBlur, stylesOverrides = props.styles;
|
|
2341
|
+
var _k = (0, $iA2ta$react.useState)(true), isFocus = _k[0], setIsFocus = _k[1];
|
|
2342
|
+
var _l = (0, $iA2ta$react.useState)(value !== null && value !== void 0 ? value : null), state = _l[0], setState = _l[1];
|
|
2155
2343
|
var isValid = error === undefined;
|
|
2156
2344
|
var selectDataCy = "form-select-".concat(name);
|
|
2157
2345
|
var errorDataCy = "form-select-error-".concat(name);
|
|
@@ -2189,25 +2377,28 @@ var $f3fccf014e1f10d5$var$SelectMenuForm = function(props) {
|
|
|
2189
2377
|
}, [
|
|
2190
2378
|
value
|
|
2191
2379
|
]);
|
|
2380
|
+
var descriptionElement = (0, $iA2ta$react.useMemo)(function() {
|
|
2381
|
+
if (!description || error && isTouched) return null;
|
|
2382
|
+
return (0, $iA2ta$reactjsxruntime.jsx)("p", {
|
|
2383
|
+
className: styles.description,
|
|
2384
|
+
children: description
|
|
2385
|
+
});
|
|
2386
|
+
}, [
|
|
2387
|
+
description,
|
|
2388
|
+
error,
|
|
2389
|
+
isTouched,
|
|
2390
|
+
styles.description
|
|
2391
|
+
]);
|
|
2192
2392
|
return (0, $iA2ta$reactjsxruntime.jsxs)("div", {
|
|
2193
2393
|
className: styles.container,
|
|
2194
2394
|
children: [
|
|
2195
|
-
(0, $iA2ta$reactjsxruntime.
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
}),
|
|
2203
|
-
!required && !isRequired && typeof label === 'string' && (0, $iA2ta$reactjsxruntime.jsx)("span", {
|
|
2204
|
-
className: styles.hint,
|
|
2205
|
-
children: "Optional"
|
|
2206
|
-
}),
|
|
2207
|
-
required && required({
|
|
2208
|
-
isRequired: isRequired
|
|
2209
|
-
})
|
|
2210
|
-
]
|
|
2395
|
+
(0, $iA2ta$reactjsxruntime.jsx)((0, $9314e0aa7f1e874e$export$2e2bcd8739ae039), {
|
|
2396
|
+
name: name,
|
|
2397
|
+
label: label,
|
|
2398
|
+
required: required,
|
|
2399
|
+
isRequired: isRequired,
|
|
2400
|
+
isOptionalLabelHidden: isOptionalLabelHidden,
|
|
2401
|
+
styles: styles
|
|
2211
2402
|
}),
|
|
2212
2403
|
(0, $iA2ta$reactjsxruntime.jsxs)("div", {
|
|
2213
2404
|
className: styles.container,
|
|
@@ -2263,10 +2454,7 @@ var $f3fccf014e1f10d5$var$SelectMenuForm = function(props) {
|
|
|
2263
2454
|
!isSolo && (0, $iA2ta$reactjsxruntime.jsxs)("div", {
|
|
2264
2455
|
className: styles.foot,
|
|
2265
2456
|
children: [
|
|
2266
|
-
|
|
2267
|
-
className: styles.description,
|
|
2268
|
-
children: description
|
|
2269
|
-
}),
|
|
2457
|
+
descriptionElement,
|
|
2270
2458
|
error && isTouched && (0, $iA2ta$reactjsxruntime.jsx)("p", {
|
|
2271
2459
|
className: styles.error,
|
|
2272
2460
|
"data-cy": errorDataCy,
|
|
@@ -5412,63 +5600,33 @@ var $dbcba7ef8eeead3b$export$8649d02bd537ff66 = function(dates) {
|
|
|
5412
5600
|
https://github.com/onesine/react-tailwindcss-datepicker
|
|
5413
5601
|
*/ var $0255f3e4133715cf$var$base = {
|
|
5414
5602
|
container: '',
|
|
5415
|
-
head: 'flex justify-between',
|
|
5416
|
-
body: 'relative rounded-md',
|
|
5417
|
-
foot: '',
|
|
5418
|
-
label: 'block font-medium text-gray-900',
|
|
5419
|
-
hint: 'text-xs text-gray-500',
|
|
5420
|
-
leading: 'pointer-events-none absolute inset-y-0 left-0 flex items-center',
|
|
5421
5603
|
inputWrapper: '',
|
|
5422
|
-
input: 'w-full inline-flex'
|
|
5423
|
-
trailing: 'pointer-events-none absolute inset-y-0 right-0 flex items-center',
|
|
5424
|
-
description: 'text-gray-400 text-xs mt-1',
|
|
5425
|
-
error: 'text-red-500 text-xs ml-5 mt-1'
|
|
5604
|
+
input: 'w-full inline-flex'
|
|
5426
5605
|
};
|
|
5427
5606
|
var $0255f3e4133715cf$var$leading = {
|
|
5428
5607
|
input: 'pl-10'
|
|
5429
5608
|
};
|
|
5430
5609
|
var $0255f3e4133715cf$var$trailing = {};
|
|
5431
5610
|
var $0255f3e4133715cf$var$normal = {
|
|
5432
|
-
|
|
5433
|
-
hint: 'leading-6',
|
|
5434
|
-
leading: 'pl-3',
|
|
5435
|
-
input: 'rounded-md border-gray-200 shadow-xs focus:border-primary-500 focus:ring-primary-500 sm:text-sm placeholder-gray-300',
|
|
5436
|
-
trailing: 'pr-3',
|
|
5437
|
-
description: 'mt-2 text-sm'
|
|
5611
|
+
input: 'rounded-md border-gray-200 shadow-xs focus:border-primary-500 focus:ring-primary-500 sm:text-sm placeholder-gray-300'
|
|
5438
5612
|
};
|
|
5439
5613
|
var $0255f3e4133715cf$var$inset = {
|
|
5440
5614
|
container: 'rounded-md px-3 pt-2.5 pb-1.5 shadow-xs ring-1 ring-inset ring-gray-300 focus-within:ring-2 focus-within:ring-primary-600',
|
|
5441
|
-
|
|
5442
|
-
hint: 'text-xs',
|
|
5443
|
-
input: 'border-0 ring-0! p-0 text-gray-900 placeholder:text-gray-400 focus:ring-0 sm:text-sm pl-0',
|
|
5444
|
-
description: 'hidden'
|
|
5615
|
+
input: 'border-0 ring-0! p-0 text-gray-900 placeholder:text-gray-400 focus:ring-0 sm:text-sm pl-0'
|
|
5445
5616
|
};
|
|
5446
5617
|
var $0255f3e4133715cf$var$overlapping = {
|
|
5447
5618
|
container: 'relative',
|
|
5448
|
-
|
|
5449
|
-
label: 'inline-block bg-white px-1 text-xs font-medium text-gray-900 ',
|
|
5450
|
-
hint: 'text-xs mr-4 bg-white px-1',
|
|
5451
|
-
input: 'block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-xs ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-primary-600 sm:text-sm sm:leading-6',
|
|
5452
|
-
description: 'hidden'
|
|
5619
|
+
input: 'block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-xs ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-primary-600 sm:text-sm sm:leading-6'
|
|
5453
5620
|
};
|
|
5454
5621
|
var $0255f3e4133715cf$var$pill = {
|
|
5455
|
-
|
|
5456
|
-
foot: 'mx-px block px-4 text-sm font-medium leading-6 text-gray-900 mt-1 pr-6',
|
|
5457
|
-
input: 'block w-full rounded-full border-0 px-4 py-1.5 text-gray-900 shadow-xs ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-primary-600 sm:text-sm sm:leading-6',
|
|
5458
|
-
trailing: 'pr-2',
|
|
5459
|
-
description: 'text-xs'
|
|
5622
|
+
input: 'block w-full rounded-full border-0 px-4 py-1.5 text-gray-900 shadow-xs ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-primary-600 sm:text-sm sm:leading-6'
|
|
5460
5623
|
};
|
|
5461
5624
|
var $0255f3e4133715cf$var$floored = {
|
|
5462
|
-
|
|
5463
|
-
label: 'block text-sm font-medium leading-6 text-gray-900',
|
|
5464
|
-
input: 'peer block w-full border-0 bg-gray-50 py-1.5 text-gray-900 focus:ring-0 sm:text-sm sm:leading-6 ring-0',
|
|
5465
|
-
description: 'text-xs mt-2'
|
|
5625
|
+
input: 'peer block w-full border-0 bg-gray-50 py-1.5 text-gray-900 focus:ring-0 sm:text-sm sm:leading-6 ring-0'
|
|
5466
5626
|
};
|
|
5467
5627
|
var $0255f3e4133715cf$var$invalid = {
|
|
5468
5628
|
container: 'ring-red-500!',
|
|
5469
|
-
input:
|
|
5470
|
-
'block w-full border border-transparent text-red-900 ring-1 ring-inset ring-red-300 placeholder:text-red-300 focus:ring-2 focus:ring-inset focus:ring-red-500 pr-10',
|
|
5471
|
-
description: 'text-sm text-red-600'
|
|
5629
|
+
input: 'block w-full border border-transparent text-red-900 ring-1 ring-inset ring-red-300 placeholder:text-red-300 focus:ring-2 focus:ring-inset focus:ring-red-500 pr-10'
|
|
5472
5630
|
};
|
|
5473
5631
|
var $0255f3e4133715cf$var$disabled = {
|
|
5474
5632
|
input: 'block w-full rounded-md border-0 text-gray-900 shadow-xs ring-1 ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-primary-600 disabled:cursor-not-allowed disabled:bg-gray-50 disabled:text-gray-500 disabled:ring-gray-200'
|
|
@@ -5497,21 +5655,22 @@ var $0255f3e4133715cf$export$2e2bcd8739ae039 = $0255f3e4133715cf$var$styles;
|
|
|
5497
5655
|
|
|
5498
5656
|
|
|
5499
5657
|
|
|
5658
|
+
|
|
5659
|
+
|
|
5500
5660
|
var $7d3977a96c400c32$var$DateRangeMenu = function(props) {
|
|
5501
|
-
var _a
|
|
5502
|
-
var _b = props.name, name = _b === void 0 ? 'date-menu-form' : _b, _c = props.size, size = _c === void 0 ? 'compact' : _c, label = props.label, _d = props.i18n, i18n = _d === void 0 ? 'en' : _d, description = props.description, placeholder = props.placeholder, separator = props.separator, startFrom = props.startFrom, _e = props.displayFormat, displayFormat = _e === void 0 ? 'DD.MM.YYYY' : _e, _f = props.direction, direction = _f === void 0 ? 'down' : _f, minDate = props.minDate, maxDate = props.maxDate, _g = props.startWeekOn, startWeekOn = _g === void 0 ? 'mon' : _g, _h = props.icon, icon = _h === void 0 ? function(isEmpty) {
|
|
5661
|
+
var _a = props.name, name = _a === void 0 ? 'date-menu-form' : _a, _b = props.size, size = _b === void 0 ? 'compact' : _b, label = props.label, _c = props.i18n, i18n = _c === void 0 ? 'en' : _c, description = props.description, hint = props.hint, placeholder = props.placeholder, separator = props.separator, startFrom = props.startFrom, _d = props.displayFormat, displayFormat = _d === void 0 ? 'DD.MM.YYYY' : _d, _e = props.direction, direction = _e === void 0 ? 'down' : _e, minDate = props.minDate, maxDate = props.maxDate, _f = props.startWeekOn, startWeekOn = _f === void 0 ? 'mon' : _f, _g = props.icon, icon = _g === void 0 ? function(isEmpty) {
|
|
5503
5662
|
return isEmpty ? (0, $iA2ta$reactjsxruntime.jsx)((0, $2125901b4a9afff9$export$2e2bcd8739ae039), {
|
|
5504
5663
|
accessor: "calendar"
|
|
5505
5664
|
}) : (0, $iA2ta$reactjsxruntime.jsx)((0, $2125901b4a9afff9$export$2e2bcd8739ae039), {
|
|
5506
5665
|
accessor: "xmark",
|
|
5507
5666
|
className: "text-black"
|
|
5508
5667
|
});
|
|
5509
|
-
} :
|
|
5668
|
+
} : _g, required = props.required, defaultValue = props.value, error = props.error, _h = props.type, type = _h === void 0 ? 'normal' : _h, _j = props.isRequired, isRequired = _j === void 0 ? false : _j, _k = props.isTouched, isTouched = _k === void 0 ? false : _k, isDisabled = props.isDisabled, _l = props.isSolo, isSolo = _l === void 0 ? false : _l, _m = props.isRanged, isRanged = _m === void 0 ? true : _m, onChange = props.onChange, onClear = props.onClear, onBlur = props.onBlur, onClick = props.onClick, stylesOverrides = props.styles;
|
|
5510
5669
|
var isValid = error === undefined;
|
|
5511
|
-
var
|
|
5670
|
+
var _o = (0, $iA2ta$react.useState)(defaultValue !== null && defaultValue !== void 0 ? defaultValue : {
|
|
5512
5671
|
startDate: null,
|
|
5513
5672
|
endDate: null
|
|
5514
|
-
}), state =
|
|
5673
|
+
}), state = _o[0], setState = _o[1];
|
|
5515
5674
|
var $datepickerInputRef = (0, $iA2ta$react.useRef)(null);
|
|
5516
5675
|
var handleValueChange = (0, $iA2ta$react.useCallback)(function(newValue) {
|
|
5517
5676
|
setState(newValue);
|
|
@@ -5528,15 +5687,14 @@ var $7d3977a96c400c32$var$DateRangeMenu = function(props) {
|
|
|
5528
5687
|
]);
|
|
5529
5688
|
var handleGenerateStyle = function() {
|
|
5530
5689
|
var result = (0, $f0c671820c340322$export$e2d2075c69d9100d)((0, $0255f3e4133715cf$export$2e2bcd8739ae039).base);
|
|
5531
|
-
var keys = (0, $27f90b0cff19565d$export$be5d6ab3c5b84767)((0, $0255f3e4133715cf$export$2e2bcd8739ae039).base);
|
|
5690
|
+
var keys = (0, $iA2ta$lodash.concat)((0, $27f90b0cff19565d$export$be5d6ab3c5b84767)((0, $0255f3e4133715cf$export$2e2bcd8739ae039).base), (0, $27f90b0cff19565d$export$be5d6ab3c5b84767)((0, $3369f7d596d23d58$export$2e2bcd8739ae039).base), (0, $27f90b0cff19565d$export$be5d6ab3c5b84767)((0, $65bb4d593718fcda$export$2e2bcd8739ae039).base));
|
|
5532
5691
|
keys.forEach(function(key) {
|
|
5533
5692
|
(0, $iA2ta$lodash.set)(result, key, (0, $622cd2936b18c771$export$4370d69198e9314a)((0, $iA2ta$lodash.get)((0, $0255f3e4133715cf$export$2e2bcd8739ae039).base, key), type && (0, $iA2ta$lodash.get)((0, $0255f3e4133715cf$export$2e2bcd8739ae039)[type], key), isTouched === true && !isValid && (0, $iA2ta$lodash.get)((0, $0255f3e4133715cf$export$2e2bcd8739ae039).invalid, key), isDisabled && (0, $iA2ta$lodash.get)((0, $0255f3e4133715cf$export$2e2bcd8739ae039).disabled, key), (0, $iA2ta$lodash.get)(stylesOverrides, key)));
|
|
5534
5693
|
});
|
|
5535
5694
|
return result;
|
|
5536
5695
|
};
|
|
5537
5696
|
var styles = handleGenerateStyle();
|
|
5538
|
-
var inputDataCy = "form-
|
|
5539
|
-
var errorDataCy = "form-date-error-".concat(name);
|
|
5697
|
+
var inputDataCy = "form-input-".concat(name);
|
|
5540
5698
|
// listen to value changes.
|
|
5541
5699
|
(0, $iA2ta$react.useEffect)(function() {
|
|
5542
5700
|
setState(defaultValue !== null && defaultValue !== void 0 ? defaultValue : {
|
|
@@ -5582,22 +5740,14 @@ var $7d3977a96c400c32$var$DateRangeMenu = function(props) {
|
|
|
5582
5740
|
return (0, $iA2ta$reactjsxruntime.jsxs)("div", {
|
|
5583
5741
|
className: styles.container,
|
|
5584
5742
|
children: [
|
|
5585
|
-
(0, $iA2ta$reactjsxruntime.
|
|
5586
|
-
|
|
5587
|
-
|
|
5588
|
-
|
|
5589
|
-
|
|
5590
|
-
|
|
5591
|
-
|
|
5592
|
-
|
|
5593
|
-
!required && !isRequired && typeof label === 'string' && (0, $iA2ta$reactjsxruntime.jsx)("span", {
|
|
5594
|
-
className: styles.hint,
|
|
5595
|
-
children: "Optional"
|
|
5596
|
-
}),
|
|
5597
|
-
required && required({
|
|
5598
|
-
isRequired: isRequired
|
|
5599
|
-
})
|
|
5600
|
-
]
|
|
5743
|
+
(0, $iA2ta$reactjsxruntime.jsx)((0, $9314e0aa7f1e874e$export$2e2bcd8739ae039), {
|
|
5744
|
+
name: name,
|
|
5745
|
+
type: type,
|
|
5746
|
+
label: label,
|
|
5747
|
+
description: description,
|
|
5748
|
+
required: required,
|
|
5749
|
+
isRequired: isRequired,
|
|
5750
|
+
styles: styles
|
|
5601
5751
|
}),
|
|
5602
5752
|
(0, $iA2ta$reactjsxruntime.jsxs)("div", {
|
|
5603
5753
|
className: styles.inputWrapper,
|
|
@@ -5628,19 +5778,13 @@ var $7d3977a96c400c32$var$DateRangeMenu = function(props) {
|
|
|
5628
5778
|
inputClassName: styles.input,
|
|
5629
5779
|
startWeekOn: startWeekOn
|
|
5630
5780
|
}),
|
|
5631
|
-
|
|
5632
|
-
|
|
5633
|
-
|
|
5634
|
-
|
|
5635
|
-
|
|
5636
|
-
|
|
5637
|
-
|
|
5638
|
-
error && isTouched && (0, $iA2ta$reactjsxruntime.jsx)("p", {
|
|
5639
|
-
className: styles.error,
|
|
5640
|
-
"data-cy": errorDataCy,
|
|
5641
|
-
children: typeof error === 'string' ? error : (_a = error === null || error === void 0 ? void 0 : error.startDate) !== null && _a !== void 0 ? _a : error === null || error === void 0 ? void 0 : error.endDate
|
|
5642
|
-
})
|
|
5643
|
-
]
|
|
5781
|
+
(0, $iA2ta$reactjsxruntime.jsx)((0, $dfbd7d015eae4218$export$2e2bcd8739ae039), {
|
|
5782
|
+
isHidden: isSolo,
|
|
5783
|
+
name: name,
|
|
5784
|
+
error: error,
|
|
5785
|
+
isTouched: isTouched,
|
|
5786
|
+
hint: hint,
|
|
5787
|
+
styles: styles
|
|
5644
5788
|
})
|
|
5645
5789
|
]
|
|
5646
5790
|
})
|
|
@@ -5939,13 +6083,10 @@ var $831573d0f77f2d6b$export$2e2bcd8739ae039 = $831573d0f77f2d6b$var$CheckboxInp
|
|
|
5939
6083
|
|
|
5940
6084
|
|
|
5941
6085
|
|
|
6086
|
+
|
|
5942
6087
|
var $7343b5b4243d5cba$var$base = {
|
|
5943
|
-
label: 'block font-medium text-gray-900 leading-6 text-sm mb-2 mr-1',
|
|
5944
6088
|
container: 'flex flex-col',
|
|
5945
|
-
head: 'flex justify-between',
|
|
5946
|
-
hint: 'text-xs text-gray-500',
|
|
5947
6089
|
foot: 'flex flex-col',
|
|
5948
|
-
description: 'text-gray-400 text-xs mt-1',
|
|
5949
6090
|
switch: {
|
|
5950
6091
|
container: 'flex flex-col',
|
|
5951
6092
|
base: 'relative inline-flex w-11 shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out',
|
|
@@ -5964,8 +6105,7 @@ var $7343b5b4243d5cba$var$base = {
|
|
|
5964
6105
|
hidden: 'opacity-0 ease-out duration-100',
|
|
5965
6106
|
shown: 'opacity-100 ease-in duration-200',
|
|
5966
6107
|
icon: 'h-3 w-3'
|
|
5967
|
-
}
|
|
5968
|
-
error: 'text-red-500 text-xs ml-0 mt-2'
|
|
6108
|
+
}
|
|
5969
6109
|
};
|
|
5970
6110
|
var $7343b5b4243d5cba$var$md = {
|
|
5971
6111
|
switch: {
|
|
@@ -5993,80 +6133,28 @@ var $7343b5b4243d5cba$export$2e2bcd8739ae039 = $7343b5b4243d5cba$var$styles;
|
|
|
5993
6133
|
|
|
5994
6134
|
|
|
5995
6135
|
var $341e1fbf5ffaef7b$var$Switch = function(props) {
|
|
5996
|
-
var name = props.name, label = props.label, description = props.description, isDisabled = props.isDisabled, _a = props.isRequired, isRequired = _a === void 0 ? false : _a, required = props.required, _b = props.isTouched, isTouched = _b === void 0 ? false : _b, error = props.error, value = props.value, stylesOverrides = props.styles, _c = props.size, size = _c === void 0 ? 'md' : _c, _d = props.isOptionalLabelHidden, isOptionalLabelHidden = _d === void 0 ? false : _d, onChange = props.onChange, iconAccessorChecked = props.iconAccessorChecked, iconAccessorUnchecked = props.iconAccessorUnchecked;
|
|
6136
|
+
var name = props.name, label = props.label, description = props.description, hint = props.hint, isDisabled = props.isDisabled, _a = props.isRequired, isRequired = _a === void 0 ? false : _a, required = props.required, _b = props.isTouched, isTouched = _b === void 0 ? false : _b, error = props.error, value = props.value, stylesOverrides = props.styles, _c = props.size, size = _c === void 0 ? 'md' : _c, _d = props.isOptionalLabelHidden, isOptionalLabelHidden = _d === void 0 ? false : _d, onChange = props.onChange, iconAccessorChecked = props.iconAccessorChecked, iconAccessorUnchecked = props.iconAccessorUnchecked;
|
|
5997
6137
|
var inputDataCy = "form-input-".concat(name);
|
|
5998
|
-
var errorDataCy = "form-input-error-".concat(name);
|
|
5999
6138
|
var handleGenerateStyle = function() {
|
|
6000
6139
|
var result = (0, $f0c671820c340322$export$e2d2075c69d9100d)((0, $7343b5b4243d5cba$export$2e2bcd8739ae039).base);
|
|
6001
|
-
var keys = (0, $27f90b0cff19565d$export$be5d6ab3c5b84767)((0, $7343b5b4243d5cba$export$2e2bcd8739ae039).base);
|
|
6140
|
+
var keys = (0, $iA2ta$lodash.concat)((0, $27f90b0cff19565d$export$be5d6ab3c5b84767)((0, $7343b5b4243d5cba$export$2e2bcd8739ae039).base), (0, $27f90b0cff19565d$export$be5d6ab3c5b84767)((0, $3369f7d596d23d58$export$2e2bcd8739ae039).base), (0, $27f90b0cff19565d$export$be5d6ab3c5b84767)((0, $65bb4d593718fcda$export$2e2bcd8739ae039).base));
|
|
6002
6141
|
(0, $iA2ta$lodash.forEach)(keys, function(key) {
|
|
6003
|
-
(0, $iA2ta$lodash.set)(result, key, (0, $622cd2936b18c771$export$4370d69198e9314a)((0, $iA2ta$lodash.get)((0, $7343b5b4243d5cba$export$2e2bcd8739ae039).base, key), (0, $iA2ta$lodash.get)((0, $7343b5b4243d5cba$export$2e2bcd8739ae039)[size], key), (0, $iA2ta$lodash.get)(stylesOverrides
|
|
6142
|
+
(0, $iA2ta$lodash.set)(result, key, (0, $622cd2936b18c771$export$4370d69198e9314a)((0, $iA2ta$lodash.get)((0, $7343b5b4243d5cba$export$2e2bcd8739ae039).base, key), (0, $iA2ta$lodash.get)((0, $7343b5b4243d5cba$export$2e2bcd8739ae039)[size], key), (0, $iA2ta$lodash.get)(stylesOverrides, key)));
|
|
6004
6143
|
});
|
|
6005
6144
|
return result;
|
|
6006
6145
|
};
|
|
6007
6146
|
var styles = handleGenerateStyle();
|
|
6008
|
-
var labelComponent = (0, $iA2ta$react.useMemo)(function() {
|
|
6009
|
-
if (!label) return null;
|
|
6010
|
-
return (0, $iA2ta$reactjsxruntime.jsx)("label", {
|
|
6011
|
-
htmlFor: name,
|
|
6012
|
-
className: styles.label,
|
|
6013
|
-
children: label
|
|
6014
|
-
});
|
|
6015
|
-
}, [
|
|
6016
|
-
label,
|
|
6017
|
-
name,
|
|
6018
|
-
styles.label
|
|
6019
|
-
]);
|
|
6020
|
-
var optionalLabelComponent = (0, $iA2ta$react.useMemo)(function() {
|
|
6021
|
-
if (required || isRequired || typeof label !== 'string' || isOptionalLabelHidden) return null;
|
|
6022
|
-
return (0, $iA2ta$reactjsxruntime.jsx)("span", {
|
|
6023
|
-
className: styles.hint,
|
|
6024
|
-
children: "Optional"
|
|
6025
|
-
});
|
|
6026
|
-
}, [
|
|
6027
|
-
isOptionalLabelHidden,
|
|
6028
|
-
isRequired,
|
|
6029
|
-
label,
|
|
6030
|
-
required,
|
|
6031
|
-
styles.hint
|
|
6032
|
-
]);
|
|
6033
|
-
var footComponent = (0, $iA2ta$react.useMemo)(function() {
|
|
6034
|
-
if (!description && !error) return null;
|
|
6035
|
-
return (0, $iA2ta$reactjsxruntime.jsxs)("div", {
|
|
6036
|
-
className: styles.foot,
|
|
6037
|
-
children: [
|
|
6038
|
-
description && !(error && isTouched) && (0, $iA2ta$reactjsxruntime.jsx)("p", {
|
|
6039
|
-
className: styles.description,
|
|
6040
|
-
children: description
|
|
6041
|
-
}),
|
|
6042
|
-
error && isTouched && (0, $iA2ta$reactjsxruntime.jsx)("p", {
|
|
6043
|
-
className: styles.error,
|
|
6044
|
-
"data-cy": errorDataCy,
|
|
6045
|
-
children: error
|
|
6046
|
-
})
|
|
6047
|
-
]
|
|
6048
|
-
});
|
|
6049
|
-
}, [
|
|
6050
|
-
description,
|
|
6051
|
-
error,
|
|
6052
|
-
errorDataCy,
|
|
6053
|
-
isTouched,
|
|
6054
|
-
styles.description,
|
|
6055
|
-
styles.error,
|
|
6056
|
-
styles.foot
|
|
6057
|
-
]);
|
|
6058
6147
|
return (0, $iA2ta$reactjsxruntime.jsxs)("div", {
|
|
6059
6148
|
className: styles.container,
|
|
6060
6149
|
children: [
|
|
6061
|
-
(0, $iA2ta$reactjsxruntime.
|
|
6062
|
-
|
|
6063
|
-
|
|
6064
|
-
|
|
6065
|
-
|
|
6066
|
-
|
|
6067
|
-
|
|
6068
|
-
|
|
6069
|
-
]
|
|
6150
|
+
(0, $iA2ta$reactjsxruntime.jsx)((0, $9314e0aa7f1e874e$export$2e2bcd8739ae039), {
|
|
6151
|
+
name: name,
|
|
6152
|
+
label: label,
|
|
6153
|
+
description: description,
|
|
6154
|
+
required: required,
|
|
6155
|
+
isRequired: isRequired,
|
|
6156
|
+
isOptionalLabelHidden: isOptionalLabelHidden,
|
|
6157
|
+
styles: styles
|
|
6070
6158
|
}),
|
|
6071
6159
|
(0, $iA2ta$reactjsxruntime.jsx)("div", {
|
|
6072
6160
|
className: styles.switch.container,
|
|
@@ -6108,7 +6196,13 @@ var $341e1fbf5ffaef7b$var$Switch = function(props) {
|
|
|
6108
6196
|
]
|
|
6109
6197
|
})
|
|
6110
6198
|
}),
|
|
6111
|
-
|
|
6199
|
+
(0, $iA2ta$reactjsxruntime.jsx)((0, $dfbd7d015eae4218$export$2e2bcd8739ae039), {
|
|
6200
|
+
name: name,
|
|
6201
|
+
error: error,
|
|
6202
|
+
isTouched: isTouched,
|
|
6203
|
+
hint: hint,
|
|
6204
|
+
styles: styles
|
|
6205
|
+
})
|
|
6112
6206
|
]
|
|
6113
6207
|
});
|
|
6114
6208
|
};
|
|
@@ -6125,7 +6219,7 @@ var $341e1fbf5ffaef7b$export$2e2bcd8739ae039 = $341e1fbf5ffaef7b$var$Switch;
|
|
|
6125
6219
|
var $8d406a8542925512$var$base = {
|
|
6126
6220
|
container: '',
|
|
6127
6221
|
head: 'flex justify-between',
|
|
6128
|
-
body: 'relative rounded-md
|
|
6222
|
+
body: 'relative rounded-md my-2 cursor-pointer',
|
|
6129
6223
|
foot: '',
|
|
6130
6224
|
label: 'block font-medium text-gray-900',
|
|
6131
6225
|
hint: 'text-xs text-gray-500',
|
|
@@ -6337,6 +6431,83 @@ var $079d45c48b1515dd$export$2e2bcd8739ae039 = $079d45c48b1515dd$var$FileInputGr
|
|
|
6337
6431
|
|
|
6338
6432
|
|
|
6339
6433
|
|
|
6434
|
+
var $3698b0b0dc32c78c$var$base = {
|
|
6435
|
+
container: '',
|
|
6436
|
+
head: 'flex justify-between',
|
|
6437
|
+
body: 'relative rounded-md py-2',
|
|
6438
|
+
foot: '',
|
|
6439
|
+
label: 'block font-medium text-gray-900',
|
|
6440
|
+
hint: 'text-xs text-gray-500',
|
|
6441
|
+
leading: 'pointer-events-none absolute inset-y-0 left-0 flex items-center',
|
|
6442
|
+
input: 'block w-full',
|
|
6443
|
+
trailing: 'pointer-events-none absolute inset-y-0 right-0 flex items-center',
|
|
6444
|
+
description: 'text-gray-400 text-xs mt-1',
|
|
6445
|
+
error: 'text-red-500 text-xs mt-1'
|
|
6446
|
+
};
|
|
6447
|
+
var $3698b0b0dc32c78c$var$leading = {
|
|
6448
|
+
input: 'pl-10'
|
|
6449
|
+
};
|
|
6450
|
+
var $3698b0b0dc32c78c$var$trailing = {};
|
|
6451
|
+
var $3698b0b0dc32c78c$var$normal = {
|
|
6452
|
+
label: 'leading-6 text-sm mb-2',
|
|
6453
|
+
hint: 'leading-6',
|
|
6454
|
+
leading: 'pl-3',
|
|
6455
|
+
input: 'rounded-md border-gray-200 shadow-xs focus:border-primary-500 focus:ring-primary-500 sm:text-sm placeholder-gray-300',
|
|
6456
|
+
trailing: 'pr-3',
|
|
6457
|
+
description: 'mt-2 text-sm'
|
|
6458
|
+
};
|
|
6459
|
+
var $3698b0b0dc32c78c$var$inset = {
|
|
6460
|
+
container: 'rounded-md px-3 pt-2.5 pb-1.5 shadow-xs ring-1 ring-inset ring-gray-300 focus-within:ring-2 focus-within:ring-primary-600',
|
|
6461
|
+
label: 'text-xs',
|
|
6462
|
+
hint: 'text-xs',
|
|
6463
|
+
input: 'border-0 ring-0! p-0 text-gray-900 placeholder:text-gray-400 focus:ring-0 sm:text-sm pl-0',
|
|
6464
|
+
description: 'hidden'
|
|
6465
|
+
};
|
|
6466
|
+
var $3698b0b0dc32c78c$var$overlapping = {
|
|
6467
|
+
container: 'relative',
|
|
6468
|
+
head: ' absolute flex justify-between items-center left-0 -top-2 right-0 mx-2 z-10 w-full',
|
|
6469
|
+
label: 'inline-block bg-white px-1 text-xs font-medium text-gray-900 ',
|
|
6470
|
+
hint: 'text-xs mr-4 bg-white px-1',
|
|
6471
|
+
input: 'block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-xs ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-primary-600 sm:text-sm sm:leading-6',
|
|
6472
|
+
description: 'hidden'
|
|
6473
|
+
};
|
|
6474
|
+
var $3698b0b0dc32c78c$var$pill = {
|
|
6475
|
+
head: 'mx-px block px-4 text-sm font-medium leading-6 text-gray-900 mb-1 pr-6',
|
|
6476
|
+
foot: 'mx-px block px-4 text-sm font-medium leading-6 text-gray-900 mt-1 pr-6',
|
|
6477
|
+
input: 'block w-full rounded-full border-0 px-4 py-1.5 text-gray-900 shadow-xs ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-primary-600 sm:text-sm sm:leading-6',
|
|
6478
|
+
trailing: 'pr-2',
|
|
6479
|
+
description: 'text-xs'
|
|
6480
|
+
};
|
|
6481
|
+
var $3698b0b0dc32c78c$var$floored = {
|
|
6482
|
+
body: 'relative mt-2',
|
|
6483
|
+
label: 'block text-sm font-medium leading-6 text-gray-900',
|
|
6484
|
+
input: 'peer block w-full border-0 bg-gray-50 py-1.5 text-gray-900 focus:ring-0 sm:text-sm sm:leading-6 ring-0',
|
|
6485
|
+
description: 'text-xs mt-2'
|
|
6486
|
+
};
|
|
6487
|
+
var $3698b0b0dc32c78c$var$invalid = {
|
|
6488
|
+
container: 'ring-red-500',
|
|
6489
|
+
input: // 'block w-full border border-transparent text-red-900 ring-1 ring-inset ring-red-300 placeholder:text-red-300 focus:ring-2 focus:ring-inset focus:ring-red-500 sm:leading-6 pr-10',
|
|
6490
|
+
'block w-full border border-transparent text-red-900 ring-1 ring-inset ring-red-300 placeholder:text-red-300 focus:ring-2 focus:ring-inset focus:ring-red-500 pr-10',
|
|
6491
|
+
description: 'text-sm text-red-600'
|
|
6492
|
+
};
|
|
6493
|
+
var $3698b0b0dc32c78c$var$disabled = {
|
|
6494
|
+
input: 'block w-full rounded-md border-0 text-gray-900 shadow-xs ring-1 ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-primary-600 disabled:cursor-not-allowed disabled:bg-gray-50 disabled:text-gray-500 disabled:ring-gray-200'
|
|
6495
|
+
};
|
|
6496
|
+
var $3698b0b0dc32c78c$var$styles = {
|
|
6497
|
+
base: $3698b0b0dc32c78c$var$base,
|
|
6498
|
+
leading: $3698b0b0dc32c78c$var$leading,
|
|
6499
|
+
trailing: $3698b0b0dc32c78c$var$trailing,
|
|
6500
|
+
normal: $3698b0b0dc32c78c$var$normal,
|
|
6501
|
+
inset: $3698b0b0dc32c78c$var$inset,
|
|
6502
|
+
overlapping: $3698b0b0dc32c78c$var$overlapping,
|
|
6503
|
+
pill: $3698b0b0dc32c78c$var$pill,
|
|
6504
|
+
floored: $3698b0b0dc32c78c$var$floored,
|
|
6505
|
+
invalid: $3698b0b0dc32c78c$var$invalid,
|
|
6506
|
+
disabled: $3698b0b0dc32c78c$var$disabled
|
|
6507
|
+
};
|
|
6508
|
+
var $3698b0b0dc32c78c$export$2e2bcd8739ae039 = $3698b0b0dc32c78c$var$styles;
|
|
6509
|
+
|
|
6510
|
+
|
|
6340
6511
|
|
|
6341
6512
|
|
|
6342
6513
|
|
|
@@ -6647,83 +6818,6 @@ var $a14a274e5b9e799a$export$2e2bcd8739ae039 = $a14a274e5b9e799a$var$styles;
|
|
|
6647
6818
|
|
|
6648
6819
|
|
|
6649
6820
|
|
|
6650
|
-
var $3698b0b0dc32c78c$var$base = {
|
|
6651
|
-
container: '',
|
|
6652
|
-
head: 'flex justify-between',
|
|
6653
|
-
body: 'relative rounded-md py-2',
|
|
6654
|
-
foot: '',
|
|
6655
|
-
label: 'block font-medium text-gray-900',
|
|
6656
|
-
hint: 'text-xs text-gray-500',
|
|
6657
|
-
leading: 'pointer-events-none absolute inset-y-0 left-0 flex items-center',
|
|
6658
|
-
input: 'block w-full',
|
|
6659
|
-
trailing: 'pointer-events-none absolute inset-y-0 right-0 flex items-center',
|
|
6660
|
-
description: 'text-gray-400 text-xs mt-1',
|
|
6661
|
-
error: 'text-red-500 text-xs mt-1'
|
|
6662
|
-
};
|
|
6663
|
-
var $3698b0b0dc32c78c$var$leading = {
|
|
6664
|
-
input: 'pl-10'
|
|
6665
|
-
};
|
|
6666
|
-
var $3698b0b0dc32c78c$var$trailing = {};
|
|
6667
|
-
var $3698b0b0dc32c78c$var$normal = {
|
|
6668
|
-
label: 'leading-6 text-sm mb-2',
|
|
6669
|
-
hint: 'leading-6',
|
|
6670
|
-
leading: 'pl-3',
|
|
6671
|
-
input: 'rounded-md border-gray-200 shadow-xs focus:border-primary-500 focus:ring-primary-500 sm:text-sm placeholder-gray-300',
|
|
6672
|
-
trailing: 'pr-3',
|
|
6673
|
-
description: 'mt-2 text-sm'
|
|
6674
|
-
};
|
|
6675
|
-
var $3698b0b0dc32c78c$var$inset = {
|
|
6676
|
-
container: 'rounded-md px-3 pt-2.5 pb-1.5 shadow-xs ring-1 ring-inset ring-gray-300 focus-within:ring-2 focus-within:ring-primary-600',
|
|
6677
|
-
label: 'text-xs',
|
|
6678
|
-
hint: 'text-xs',
|
|
6679
|
-
input: 'border-0 ring-0! p-0 text-gray-900 placeholder:text-gray-400 focus:ring-0 sm:text-sm pl-0',
|
|
6680
|
-
description: 'hidden'
|
|
6681
|
-
};
|
|
6682
|
-
var $3698b0b0dc32c78c$var$overlapping = {
|
|
6683
|
-
container: 'relative',
|
|
6684
|
-
head: ' absolute flex justify-between items-center left-0 -top-2 right-0 mx-2 z-10 w-full',
|
|
6685
|
-
label: 'inline-block bg-white px-1 text-xs font-medium text-gray-900 ',
|
|
6686
|
-
hint: 'text-xs mr-4 bg-white px-1',
|
|
6687
|
-
input: 'block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-xs ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-primary-600 sm:text-sm sm:leading-6',
|
|
6688
|
-
description: 'hidden'
|
|
6689
|
-
};
|
|
6690
|
-
var $3698b0b0dc32c78c$var$pill = {
|
|
6691
|
-
head: 'mx-px block px-4 text-sm font-medium leading-6 text-gray-900 mb-1 pr-6',
|
|
6692
|
-
foot: 'mx-px block px-4 text-sm font-medium leading-6 text-gray-900 mt-1 pr-6',
|
|
6693
|
-
input: 'block w-full rounded-full border-0 px-4 py-1.5 text-gray-900 shadow-xs ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-primary-600 sm:text-sm sm:leading-6',
|
|
6694
|
-
trailing: 'pr-2',
|
|
6695
|
-
description: 'text-xs'
|
|
6696
|
-
};
|
|
6697
|
-
var $3698b0b0dc32c78c$var$floored = {
|
|
6698
|
-
body: 'relative mt-2',
|
|
6699
|
-
label: 'block text-sm font-medium leading-6 text-gray-900',
|
|
6700
|
-
input: 'peer block w-full border-0 bg-gray-50 py-1.5 text-gray-900 focus:ring-0 sm:text-sm sm:leading-6 ring-0',
|
|
6701
|
-
description: 'text-xs mt-2'
|
|
6702
|
-
};
|
|
6703
|
-
var $3698b0b0dc32c78c$var$invalid = {
|
|
6704
|
-
container: 'ring-red-500',
|
|
6705
|
-
input: // 'block w-full border border-transparent text-red-900 ring-1 ring-inset ring-red-300 placeholder:text-red-300 focus:ring-2 focus:ring-inset focus:ring-red-500 sm:leading-6 pr-10',
|
|
6706
|
-
'block w-full border border-transparent text-red-900 ring-1 ring-inset ring-red-300 placeholder:text-red-300 focus:ring-2 focus:ring-inset focus:ring-red-500 pr-10',
|
|
6707
|
-
description: 'text-sm text-red-600'
|
|
6708
|
-
};
|
|
6709
|
-
var $3698b0b0dc32c78c$var$disabled = {
|
|
6710
|
-
input: 'block w-full rounded-md border-0 text-gray-900 shadow-xs ring-1 ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-primary-600 disabled:cursor-not-allowed disabled:bg-gray-50 disabled:text-gray-500 disabled:ring-gray-200'
|
|
6711
|
-
};
|
|
6712
|
-
var $3698b0b0dc32c78c$var$styles = {
|
|
6713
|
-
base: $3698b0b0dc32c78c$var$base,
|
|
6714
|
-
leading: $3698b0b0dc32c78c$var$leading,
|
|
6715
|
-
trailing: $3698b0b0dc32c78c$var$trailing,
|
|
6716
|
-
normal: $3698b0b0dc32c78c$var$normal,
|
|
6717
|
-
inset: $3698b0b0dc32c78c$var$inset,
|
|
6718
|
-
overlapping: $3698b0b0dc32c78c$var$overlapping,
|
|
6719
|
-
pill: $3698b0b0dc32c78c$var$pill,
|
|
6720
|
-
floored: $3698b0b0dc32c78c$var$floored,
|
|
6721
|
-
invalid: $3698b0b0dc32c78c$var$invalid,
|
|
6722
|
-
disabled: $3698b0b0dc32c78c$var$disabled
|
|
6723
|
-
};
|
|
6724
|
-
var $3698b0b0dc32c78c$export$2e2bcd8739ae039 = $3698b0b0dc32c78c$var$styles;
|
|
6725
|
-
|
|
6726
|
-
|
|
6727
6821
|
var $9f6cfd21b337aca9$var$OpeningsHourInputGroupForm = function(props) {
|
|
6728
6822
|
var form = props.form, _a = props.name, name = _a === void 0 ? 'opening-hours-input' : _a, label = props.label, description = props.description, required = props.required, value = props.value, error = props.error, lang = props.lang, isDisabled = props.isDisabled, _b = props.isRequired, isRequired = _b === void 0 ? false : _b, _c = props.isTouched, isTouched = _c === void 0 ? false : _c, onChange = props.onChange, stylesOverrides = props.styles, handleDelete = props.handleDelete;
|
|
6729
6823
|
var isValid = error === undefined;
|