@ballistix.digital/react-components 7.4.0 → 8.0.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.js CHANGED
@@ -1390,64 +1390,275 @@ 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, stylesOverrides = props.styles, _a = props.type, type = _a === void 0 ? 'normal' : _a;
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) 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
+ ]);
1473
+ return (0, $iA2ta$reactjsxruntime.jsxs)("div", {
1474
+ className: styles.foot,
1475
+ children: [
1476
+ hintElement,
1477
+ errorElement
1478
+ ]
1479
+ });
1480
+ };
1481
+ var $dfbd7d015eae4218$export$2e2bcd8739ae039 = $dfbd7d015eae4218$var$InputFooter;
1482
+
1483
+
1484
+
1485
+
1486
+
1487
+
1488
+
1489
+
1490
+
1491
+
1492
+
1493
+ var $65bb4d593718fcda$var$base = {
1494
+ header: {
1495
+ container: 'flex flex-col justify-end',
1496
+ labelWrapper: 'flex',
1497
+ label: '',
1498
+ required: '',
1499
+ optional: 'ml-auto text-xs text-gray-500',
1500
+ description: 'text-xs'
1501
+ }
1502
+ };
1503
+ var $65bb4d593718fcda$var$normal = {
1504
+ header: {
1505
+ container: 'mb-2',
1506
+ label: 'leading-6 text-sm',
1507
+ optional: 'leading-6'
1508
+ }
1509
+ };
1510
+ var $65bb4d593718fcda$var$inset = {
1511
+ header: {
1512
+ label: 'text-xs',
1513
+ optional: 'text-xs'
1514
+ }
1515
+ };
1516
+ var $65bb4d593718fcda$var$overlapping = {
1517
+ header: {
1518
+ container: 'flex flex-col justify-end',
1519
+ labelWrapper: 'absolute flex justify-between items-center left-0 -top-2 right-0 mx-2 z-10 w-full',
1520
+ label: 'inline-block bg-white px-1 text-xs font-medium text-gray-900',
1521
+ required: '',
1522
+ optional: 'text-xs mr-4 bg-white px-1',
1523
+ description: 'hidden'
1524
+ }
1525
+ };
1526
+ var $65bb4d593718fcda$var$pill = {
1527
+ header: {
1528
+ labelWrapper: 'mx-px block px-4 text-sm font-medium leading-6 text-gray-900 mb-1 pr-6',
1529
+ description: 'mx-px block px-4 text-sm font-medium leading-6 text-gray-900 mb-1 pr-6'
1530
+ }
1531
+ };
1532
+ var $65bb4d593718fcda$var$floored = {
1533
+ header: {
1534
+ label: 'block text-sm font-medium leading-6 text-gray-900'
1535
+ }
1536
+ };
1537
+ var $65bb4d593718fcda$var$styles = {
1538
+ base: $65bb4d593718fcda$var$base,
1539
+ normal: $65bb4d593718fcda$var$normal,
1540
+ inset: $65bb4d593718fcda$var$inset,
1541
+ overlapping: $65bb4d593718fcda$var$overlapping,
1542
+ pill: $65bb4d593718fcda$var$pill,
1543
+ floored: $65bb4d593718fcda$var$floored
1544
+ };
1545
+ var $65bb4d593718fcda$export$2e2bcd8739ae039 = $65bb4d593718fcda$var$styles;
1546
+
1547
+
1548
+ var $9314e0aa7f1e874e$var$InputHeader = function(props) {
1549
+ 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;
1550
+ var handleGenerateStyle = function() {
1551
+ var result = (0, $f0c671820c340322$export$e2d2075c69d9100d)((0, $65bb4d593718fcda$export$2e2bcd8739ae039).base);
1552
+ var keys = (0, $27f90b0cff19565d$export$be5d6ab3c5b84767)((0, $65bb4d593718fcda$export$2e2bcd8739ae039).base);
1553
+ keys.forEach(function(key) {
1554
+ (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)));
1555
+ });
1556
+ return result;
1557
+ };
1558
+ var styles = handleGenerateStyle();
1559
+ var requiredLabel = (0, $iA2ta$react.useMemo)(function() {
1560
+ if (required) return required({
1561
+ isRequired: isRequired
1562
+ });
1563
+ else if (!isRequired && typeof label === 'string' && !isOptionalLabelHidden) return (0, $iA2ta$reactjsxruntime.jsx)("span", {
1564
+ className: styles.header.optional,
1565
+ children: "Optional"
1566
+ });
1567
+ return null;
1568
+ }, [
1569
+ isOptionalLabelHidden,
1570
+ isRequired,
1571
+ label,
1572
+ required,
1573
+ styles.header.optional
1574
+ ]);
1575
+ var labelElement = (0, $iA2ta$react.useMemo)(function() {
1576
+ if (!label && (0, $iA2ta$lodash.isNull)(requiredLabel)) return null;
1577
+ return (0, $iA2ta$reactjsxruntime.jsxs)("div", {
1578
+ className: styles.header.labelWrapper,
1579
+ children: [
1580
+ (0, $iA2ta$reactjsxruntime.jsx)("label", {
1581
+ htmlFor: name,
1582
+ className: styles.header.label,
1583
+ children: label
1584
+ }),
1585
+ requiredLabel
1586
+ ]
1587
+ });
1588
+ }, [
1589
+ label,
1590
+ name,
1591
+ requiredLabel,
1592
+ styles.header.labelWrapper,
1593
+ styles.header.label
1594
+ ]);
1595
+ var descriptionElement = (0, $iA2ta$react.useMemo)(function() {
1596
+ if (!description) return null;
1597
+ return (0, $iA2ta$reactjsxruntime.jsx)("p", {
1598
+ className: styles.header.description,
1599
+ children: description
1600
+ });
1601
+ }, [
1602
+ description,
1603
+ styles.header.description
1604
+ ]);
1605
+ if ((0, $iA2ta$lodash.isNull)(labelElement) && (0, $iA2ta$lodash.isNull)(descriptionElement)) return null;
1606
+ return (0, $iA2ta$reactjsxruntime.jsxs)("div", {
1607
+ className: styles.header.container,
1608
+ children: [
1609
+ labelElement,
1610
+ descriptionElement
1611
+ ]
1612
+ });
1613
+ };
1614
+ var $9314e0aa7f1e874e$export$2e2bcd8739ae039 = $9314e0aa7f1e874e$var$InputHeader;
1615
+
1616
+
1617
+
1618
+
1619
+
1620
+
1621
+
1622
+
1623
+
1393
1624
  var $143cee146891bafc$var$base = {
1394
1625
  container: '',
1395
- head: 'flex justify-between',
1396
1626
  body: 'relative rounded-md',
1397
1627
  foot: '',
1398
- label: 'block font-medium text-gray-900',
1399
- hint: 'text-xs text-gray-500',
1400
1628
  leading: 'pointer-events-none absolute inset-y-0 left-0 flex items-center',
1401
1629
  input: 'block w-full',
1402
1630
  trailing: 'pointer-events-none absolute inset-y-0 right-0 flex items-center',
1403
- description: 'text-gray-400 text-xs mt-1',
1404
- error: 'text-red-500 text-xs ml-5 mt-1'
1631
+ error: 'ml-5'
1405
1632
  };
1406
1633
  var $143cee146891bafc$var$leading = {
1407
1634
  input: 'pl-10'
1408
1635
  };
1409
1636
  var $143cee146891bafc$var$trailing = {};
1410
1637
  var $143cee146891bafc$var$normal = {
1411
- label: 'leading-6 text-sm mb-2',
1412
- hint: 'leading-6',
1413
1638
  leading: 'pl-3',
1414
1639
  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'
1640
+ trailing: 'pr-3'
1417
1641
  };
1418
1642
  var $143cee146891bafc$var$inset = {
1419
1643
  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
- label: 'text-xs',
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'
1644
+ input: 'border-0 ring-0! p-0 text-gray-900 placeholder:text-gray-400 focus:ring-0 sm:text-sm pl-0'
1424
1645
  };
1425
1646
  var $143cee146891bafc$var$overlapping = {
1426
1647
  container: 'relative',
1427
- head: ' absolute flex justify-between items-center left-0 -top-2 right-0 mx-2 z-10 w-full',
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'
1648
+ 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
1649
  };
1433
1650
  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
1651
  foot: 'mx-px block px-4 text-sm font-medium leading-6 text-gray-900 mt-1 pr-6',
1436
1652
  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'
1653
+ trailing: 'pr-2'
1439
1654
  };
1440
1655
  var $143cee146891bafc$var$floored = {
1441
1656
  body: 'relative mt-2',
1442
- label: 'block text-sm font-medium leading-6 text-gray-900',
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'
1657
+ 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
1658
  };
1446
1659
  var $143cee146891bafc$var$invalid = {
1447
1660
  container: 'ring-red-500',
1448
- 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',
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'
1661
+ 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
1662
  };
1452
1663
  var $143cee146891bafc$var$disabled = {
1453
1664
  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 +1681,7 @@ var $143cee146891bafc$export$2e2bcd8739ae039 = $143cee146891bafc$var$styles;
1470
1681
  var $75cfef1d7ff66e89$var$InputGroupForm = function(props) {
1471
1682
  var _a;
1472
1683
  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;
1684
+ 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
1685
  var isValid = error === undefined;
1475
1686
  var maskRef = (0, $iA2ta$reactinputmask.useMask)({
1476
1687
  mask: mask === null || mask === void 0 ? void 0 : mask.mask,
@@ -1480,7 +1691,7 @@ var $75cfef1d7ff66e89$var$InputGroupForm = function(props) {
1480
1691
  var ref = mask ? maskRef : defaultRef;
1481
1692
  var handleGenerateStyle = function() {
1482
1693
  var result = (0, $f0c671820c340322$export$e2d2075c69d9100d)((0, $143cee146891bafc$export$2e2bcd8739ae039).base);
1483
- var keys = (0, $27f90b0cff19565d$export$be5d6ab3c5b84767)((0, $143cee146891bafc$export$2e2bcd8739ae039).base);
1694
+ 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
1695
  keys.forEach(function(key) {
1485
1696
  (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
1697
  });
@@ -1493,7 +1704,6 @@ var $75cfef1d7ff66e89$var$InputGroupForm = function(props) {
1493
1704
  });
1494
1705
  var isClearable = !trailing && isValid && onClear && value !== '' && value;
1495
1706
  var inputDataCy = "form-input-".concat(name);
1496
- var errorDataCy = "form-input-error-".concat(name);
1497
1707
  (0, $iA2ta$react.useEffect)(function() {
1498
1708
  if (ref.current && ref.current !== null && setRefOnLoad) setRefOnLoad(ref);
1499
1709
  }, [
@@ -1503,22 +1713,15 @@ var $75cfef1d7ff66e89$var$InputGroupForm = function(props) {
1503
1713
  return (0, $iA2ta$reactjsxruntime.jsxs)("div", {
1504
1714
  className: styles.container,
1505
1715
  children: [
1506
- (0, $iA2ta$reactjsxruntime.jsxs)("div", {
1507
- className: styles.head,
1508
- children: [
1509
- label && (0, $iA2ta$reactjsxruntime.jsx)("label", {
1510
- htmlFor: name,
1511
- className: styles.label,
1512
- children: label
1513
- }),
1514
- !required && !isRequired && typeof label === 'string' && (0, $iA2ta$reactjsxruntime.jsx)("span", {
1515
- className: styles.hint,
1516
- children: "Optional"
1517
- }),
1518
- required && required({
1519
- isRequired: isRequired
1520
- })
1521
- ]
1716
+ (0, $iA2ta$reactjsxruntime.jsx)((0, $9314e0aa7f1e874e$export$2e2bcd8739ae039), {
1717
+ name: name,
1718
+ label: label,
1719
+ required: required,
1720
+ isRequired: isRequired,
1721
+ isOptionalLabelHidden: isOptionalLabelHidden,
1722
+ styles: styles,
1723
+ type: type,
1724
+ description: description
1522
1725
  }),
1523
1726
  (0, $iA2ta$reactjsxruntime.jsxs)("div", {
1524
1727
  className: styles.body,
@@ -1597,19 +1800,13 @@ var $75cfef1d7ff66e89$var$InputGroupForm = function(props) {
1597
1800
  })
1598
1801
  ]
1599
1802
  }),
1600
- (0, $iA2ta$reactjsxruntime.jsxs)("div", {
1601
- className: styles.foot,
1602
- children: [
1603
- description && !(error && isTouched) && (0, $iA2ta$reactjsxruntime.jsx)("p", {
1604
- className: styles.description,
1605
- children: description
1606
- }),
1607
- error && isTouched && (0, $iA2ta$reactjsxruntime.jsx)("p", {
1608
- className: styles.error,
1609
- "data-cy": errorDataCy,
1610
- children: error
1611
- })
1612
- ]
1803
+ (0, $iA2ta$reactjsxruntime.jsx)((0, $dfbd7d015eae4218$export$2e2bcd8739ae039), {
1804
+ name: name,
1805
+ hint: hint,
1806
+ error: error,
1807
+ isTouched: isTouched,
1808
+ styles: styles,
1809
+ type: type
1613
1810
  })
1614
1811
  ]
1615
1812
  });
@@ -2055,13 +2252,11 @@ https://www.npmjs.com/package/react-tailwindcss-select
2055
2252
 
2056
2253
 
2057
2254
 
2255
+
2058
2256
  var $f32ee84b87891376$var$base = {
2059
2257
  container: '',
2060
- head: 'flex justify-between',
2061
2258
  body: 'relative rounded-md',
2062
2259
  foot: '',
2063
- label: 'block font-medium text-gray-900',
2064
- hint: 'text-xs text-gray-500',
2065
2260
  leading: 'pointer-events-none absolute inset-y-0 left-0 flex items-center',
2066
2261
  input: 'block w-full flex border',
2067
2262
  menuButton: '',
@@ -2088,8 +2283,6 @@ var $f32ee84b87891376$var$leading = {
2088
2283
  };
2089
2284
  var $f32ee84b87891376$var$trailing = {};
2090
2285
  var $f32ee84b87891376$var$normal = {
2091
- label: 'leading-6 text-sm mb-2',
2092
- hint: 'leading-6',
2093
2286
  leading: 'pl-3',
2094
2287
  input: 'rounded-md border-gray-200 shadow-xs focus:border-primary-500 focus:ring-primary-500 sm:text-sm placeholder-gray-300',
2095
2288
  trailing: '',
@@ -2097,21 +2290,15 @@ var $f32ee84b87891376$var$normal = {
2097
2290
  };
2098
2291
  var $f32ee84b87891376$var$inset = {
2099
2292
  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
2293
  input: 'border-0 ring-0! p-0 text-gray-900 placeholder:text-gray-400 focus:ring-0 sm:text-sm pl-0',
2103
2294
  description: 'hidden'
2104
2295
  };
2105
2296
  var $f32ee84b87891376$var$overlapping = {
2106
2297
  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
2298
  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
2299
  description: 'hidden'
2112
2300
  };
2113
2301
  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
2302
  foot: 'mx-px block px-4 text-sm font-medium leading-6 text-gray-900 mt-1 pr-6',
2116
2303
  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
2304
  trailing: 'pr-2',
@@ -2119,7 +2306,6 @@ var $f32ee84b87891376$var$pill = {
2119
2306
  };
2120
2307
  var $f32ee84b87891376$var$floored = {
2121
2308
  body: 'relative mt-2',
2122
- label: 'block text-sm font-medium leading-6 text-gray-900',
2123
2309
  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
2310
  description: 'text-xs mt-2'
2125
2311
  };
@@ -2149,9 +2335,9 @@ var $f32ee84b87891376$export$2e2bcd8739ae039 = $f32ee84b87891376$var$styles;
2149
2335
 
2150
2336
  var $f3fccf014e1f10d5$var$SelectMenuForm = function(props) {
2151
2337
  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 _j = (0, $iA2ta$react.useState)(true), isFocus = _j[0], setIsFocus = _j[1];
2154
- var _k = (0, $iA2ta$react.useState)(value !== null && value !== void 0 ? value : null), state = _k[0], setState = _k[1];
2338
+ 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;
2339
+ var _k = (0, $iA2ta$react.useState)(true), isFocus = _k[0], setIsFocus = _k[1];
2340
+ var _l = (0, $iA2ta$react.useState)(value !== null && value !== void 0 ? value : null), state = _l[0], setState = _l[1];
2155
2341
  var isValid = error === undefined;
2156
2342
  var selectDataCy = "form-select-".concat(name);
2157
2343
  var errorDataCy = "form-select-error-".concat(name);
@@ -2189,25 +2375,28 @@ var $f3fccf014e1f10d5$var$SelectMenuForm = function(props) {
2189
2375
  }, [
2190
2376
  value
2191
2377
  ]);
2378
+ var descriptionElement = (0, $iA2ta$react.useMemo)(function() {
2379
+ if (!description || error && isTouched) return null;
2380
+ return (0, $iA2ta$reactjsxruntime.jsx)("p", {
2381
+ className: styles.description,
2382
+ children: description
2383
+ });
2384
+ }, [
2385
+ description,
2386
+ error,
2387
+ isTouched,
2388
+ styles.description
2389
+ ]);
2192
2390
  return (0, $iA2ta$reactjsxruntime.jsxs)("div", {
2193
2391
  className: styles.container,
2194
2392
  children: [
2195
- (0, $iA2ta$reactjsxruntime.jsxs)("div", {
2196
- className: styles.head,
2197
- children: [
2198
- label && (0, $iA2ta$reactjsxruntime.jsx)("label", {
2199
- htmlFor: name,
2200
- className: styles.label,
2201
- children: label
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
- ]
2393
+ (0, $iA2ta$reactjsxruntime.jsx)((0, $9314e0aa7f1e874e$export$2e2bcd8739ae039), {
2394
+ name: name,
2395
+ label: label,
2396
+ required: required,
2397
+ isRequired: isRequired,
2398
+ isOptionalLabelHidden: isOptionalLabelHidden,
2399
+ styles: styles
2211
2400
  }),
2212
2401
  (0, $iA2ta$reactjsxruntime.jsxs)("div", {
2213
2402
  className: styles.container,
@@ -2263,10 +2452,7 @@ var $f3fccf014e1f10d5$var$SelectMenuForm = function(props) {
2263
2452
  !isSolo && (0, $iA2ta$reactjsxruntime.jsxs)("div", {
2264
2453
  className: styles.foot,
2265
2454
  children: [
2266
- description && !(error && isTouched) && (0, $iA2ta$reactjsxruntime.jsx)("p", {
2267
- className: styles.description,
2268
- children: description
2269
- }),
2455
+ descriptionElement,
2270
2456
  error && isTouched && (0, $iA2ta$reactjsxruntime.jsx)("p", {
2271
2457
  className: styles.error,
2272
2458
  "data-cy": errorDataCy,
@@ -5939,13 +6125,10 @@ var $831573d0f77f2d6b$export$2e2bcd8739ae039 = $831573d0f77f2d6b$var$CheckboxInp
5939
6125
 
5940
6126
 
5941
6127
 
6128
+
5942
6129
  var $7343b5b4243d5cba$var$base = {
5943
- label: 'block font-medium text-gray-900 leading-6 text-sm mb-2 mr-1',
5944
6130
  container: 'flex flex-col',
5945
- head: 'flex justify-between',
5946
- hint: 'text-xs text-gray-500',
5947
6131
  foot: 'flex flex-col',
5948
- description: 'text-gray-400 text-xs mt-1',
5949
6132
  switch: {
5950
6133
  container: 'flex flex-col',
5951
6134
  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 +6147,7 @@ var $7343b5b4243d5cba$var$base = {
5964
6147
  hidden: 'opacity-0 ease-out duration-100',
5965
6148
  shown: 'opacity-100 ease-in duration-200',
5966
6149
  icon: 'h-3 w-3'
5967
- },
5968
- error: 'text-red-500 text-xs ml-0 mt-2'
6150
+ }
5969
6151
  };
5970
6152
  var $7343b5b4243d5cba$var$md = {
5971
6153
  switch: {
@@ -5993,80 +6175,28 @@ var $7343b5b4243d5cba$export$2e2bcd8739ae039 = $7343b5b4243d5cba$var$styles;
5993
6175
 
5994
6176
 
5995
6177
  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;
6178
+ 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
6179
  var inputDataCy = "form-input-".concat(name);
5998
- var errorDataCy = "form-input-error-".concat(name);
5999
6180
  var handleGenerateStyle = function() {
6000
6181
  var result = (0, $f0c671820c340322$export$e2d2075c69d9100d)((0, $7343b5b4243d5cba$export$2e2bcd8739ae039).base);
6001
- var keys = (0, $27f90b0cff19565d$export$be5d6ab3c5b84767)((0, $7343b5b4243d5cba$export$2e2bcd8739ae039).base);
6182
+ 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
6183
  (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 === null || stylesOverrides === void 0 ? void 0 : stylesOverrides.base, key), (0, $iA2ta$lodash.get)(stylesOverrides === null || stylesOverrides === void 0 ? void 0 : stylesOverrides[size], key)));
6184
+ (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
6185
  });
6005
6186
  return result;
6006
6187
  };
6007
6188
  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
6189
  return (0, $iA2ta$reactjsxruntime.jsxs)("div", {
6059
6190
  className: styles.container,
6060
6191
  children: [
6061
- (0, $iA2ta$reactjsxruntime.jsxs)("div", {
6062
- className: styles.head,
6063
- children: [
6064
- labelComponent,
6065
- optionalLabelComponent,
6066
- required && required({
6067
- isRequired: isRequired
6068
- })
6069
- ]
6192
+ (0, $iA2ta$reactjsxruntime.jsx)((0, $9314e0aa7f1e874e$export$2e2bcd8739ae039), {
6193
+ name: name,
6194
+ label: label,
6195
+ description: description,
6196
+ required: required,
6197
+ isRequired: isRequired,
6198
+ isOptionalLabelHidden: isOptionalLabelHidden,
6199
+ styles: styles
6070
6200
  }),
6071
6201
  (0, $iA2ta$reactjsxruntime.jsx)("div", {
6072
6202
  className: styles.switch.container,
@@ -6108,7 +6238,13 @@ var $341e1fbf5ffaef7b$var$Switch = function(props) {
6108
6238
  ]
6109
6239
  })
6110
6240
  }),
6111
- footComponent
6241
+ (0, $iA2ta$reactjsxruntime.jsx)((0, $dfbd7d015eae4218$export$2e2bcd8739ae039), {
6242
+ name: name,
6243
+ error: error,
6244
+ isTouched: isTouched,
6245
+ hint: hint,
6246
+ styles: styles
6247
+ })
6112
6248
  ]
6113
6249
  });
6114
6250
  };
@@ -6337,6 +6473,83 @@ var $079d45c48b1515dd$export$2e2bcd8739ae039 = $079d45c48b1515dd$var$FileInputGr
6337
6473
 
6338
6474
 
6339
6475
 
6476
+ var $3698b0b0dc32c78c$var$base = {
6477
+ container: '',
6478
+ head: 'flex justify-between',
6479
+ body: 'relative rounded-md py-2',
6480
+ foot: '',
6481
+ label: 'block font-medium text-gray-900',
6482
+ hint: 'text-xs text-gray-500',
6483
+ leading: 'pointer-events-none absolute inset-y-0 left-0 flex items-center',
6484
+ input: 'block w-full',
6485
+ trailing: 'pointer-events-none absolute inset-y-0 right-0 flex items-center',
6486
+ description: 'text-gray-400 text-xs mt-1',
6487
+ error: 'text-red-500 text-xs mt-1'
6488
+ };
6489
+ var $3698b0b0dc32c78c$var$leading = {
6490
+ input: 'pl-10'
6491
+ };
6492
+ var $3698b0b0dc32c78c$var$trailing = {};
6493
+ var $3698b0b0dc32c78c$var$normal = {
6494
+ label: 'leading-6 text-sm mb-2',
6495
+ hint: 'leading-6',
6496
+ leading: 'pl-3',
6497
+ input: 'rounded-md border-gray-200 shadow-xs focus:border-primary-500 focus:ring-primary-500 sm:text-sm placeholder-gray-300',
6498
+ trailing: 'pr-3',
6499
+ description: 'mt-2 text-sm'
6500
+ };
6501
+ var $3698b0b0dc32c78c$var$inset = {
6502
+ 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',
6503
+ label: 'text-xs',
6504
+ hint: 'text-xs',
6505
+ input: 'border-0 ring-0! p-0 text-gray-900 placeholder:text-gray-400 focus:ring-0 sm:text-sm pl-0',
6506
+ description: 'hidden'
6507
+ };
6508
+ var $3698b0b0dc32c78c$var$overlapping = {
6509
+ container: 'relative',
6510
+ head: ' absolute flex justify-between items-center left-0 -top-2 right-0 mx-2 z-10 w-full',
6511
+ label: 'inline-block bg-white px-1 text-xs font-medium text-gray-900 ',
6512
+ hint: 'text-xs mr-4 bg-white px-1',
6513
+ 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',
6514
+ description: 'hidden'
6515
+ };
6516
+ var $3698b0b0dc32c78c$var$pill = {
6517
+ head: 'mx-px block px-4 text-sm font-medium leading-6 text-gray-900 mb-1 pr-6',
6518
+ foot: 'mx-px block px-4 text-sm font-medium leading-6 text-gray-900 mt-1 pr-6',
6519
+ 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',
6520
+ trailing: 'pr-2',
6521
+ description: 'text-xs'
6522
+ };
6523
+ var $3698b0b0dc32c78c$var$floored = {
6524
+ body: 'relative mt-2',
6525
+ label: 'block text-sm font-medium leading-6 text-gray-900',
6526
+ 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',
6527
+ description: 'text-xs mt-2'
6528
+ };
6529
+ var $3698b0b0dc32c78c$var$invalid = {
6530
+ container: 'ring-red-500',
6531
+ 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',
6532
+ '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',
6533
+ description: 'text-sm text-red-600'
6534
+ };
6535
+ var $3698b0b0dc32c78c$var$disabled = {
6536
+ 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'
6537
+ };
6538
+ var $3698b0b0dc32c78c$var$styles = {
6539
+ base: $3698b0b0dc32c78c$var$base,
6540
+ leading: $3698b0b0dc32c78c$var$leading,
6541
+ trailing: $3698b0b0dc32c78c$var$trailing,
6542
+ normal: $3698b0b0dc32c78c$var$normal,
6543
+ inset: $3698b0b0dc32c78c$var$inset,
6544
+ overlapping: $3698b0b0dc32c78c$var$overlapping,
6545
+ pill: $3698b0b0dc32c78c$var$pill,
6546
+ floored: $3698b0b0dc32c78c$var$floored,
6547
+ invalid: $3698b0b0dc32c78c$var$invalid,
6548
+ disabled: $3698b0b0dc32c78c$var$disabled
6549
+ };
6550
+ var $3698b0b0dc32c78c$export$2e2bcd8739ae039 = $3698b0b0dc32c78c$var$styles;
6551
+
6552
+
6340
6553
 
6341
6554
 
6342
6555
 
@@ -6647,83 +6860,6 @@ var $a14a274e5b9e799a$export$2e2bcd8739ae039 = $a14a274e5b9e799a$var$styles;
6647
6860
 
6648
6861
 
6649
6862
 
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
6863
  var $9f6cfd21b337aca9$var$OpeningsHourInputGroupForm = function(props) {
6728
6864
  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
6865
  var isValid = error === undefined;