@ballistix.digital/react-components 7.3.1-rc-74.0 → 7.4.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,275 +1390,64 @@ 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
-
1624
1393
  var $143cee146891bafc$var$base = {
1625
1394
  container: '',
1395
+ head: 'flex justify-between',
1626
1396
  body: 'relative rounded-md',
1627
1397
  foot: '',
1398
+ label: 'block font-medium text-gray-900',
1399
+ hint: 'text-xs text-gray-500',
1628
1400
  leading: 'pointer-events-none absolute inset-y-0 left-0 flex items-center',
1629
1401
  input: 'block w-full',
1630
1402
  trailing: 'pointer-events-none absolute inset-y-0 right-0 flex items-center',
1631
- error: 'ml-5'
1403
+ description: 'text-gray-400 text-xs mt-1',
1404
+ error: 'text-red-500 text-xs ml-5 mt-1'
1632
1405
  };
1633
1406
  var $143cee146891bafc$var$leading = {
1634
1407
  input: 'pl-10'
1635
1408
  };
1636
1409
  var $143cee146891bafc$var$trailing = {};
1637
1410
  var $143cee146891bafc$var$normal = {
1411
+ label: 'leading-6 text-sm mb-2',
1412
+ hint: 'leading-6',
1638
1413
  leading: 'pl-3',
1639
1414
  input: 'rounded-md border-gray-200 shadow-xs focus:border-primary-500 focus:ring-primary-500 sm:text-sm placeholder-gray-300',
1640
- trailing: 'pr-3'
1415
+ trailing: 'pr-3',
1416
+ description: 'mt-2 text-sm'
1641
1417
  };
1642
1418
  var $143cee146891bafc$var$inset = {
1643
1419
  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',
1644
- input: 'border-0 ring-0! p-0 text-gray-900 placeholder:text-gray-400 focus:ring-0 sm:text-sm pl-0'
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'
1645
1424
  };
1646
1425
  var $143cee146891bafc$var$overlapping = {
1647
1426
  container: 'relative',
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'
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'
1649
1432
  };
1650
1433
  var $143cee146891bafc$var$pill = {
1434
+ head: 'mx-px block px-4 text-sm font-medium leading-6 text-gray-900 mb-1 pr-6',
1651
1435
  foot: 'mx-px block px-4 text-sm font-medium leading-6 text-gray-900 mt-1 pr-6',
1652
1436
  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',
1653
- trailing: 'pr-2'
1437
+ trailing: 'pr-2',
1438
+ description: 'text-xs'
1654
1439
  };
1655
1440
  var $143cee146891bafc$var$floored = {
1656
1441
  body: 'relative 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'
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'
1658
1445
  };
1659
1446
  var $143cee146891bafc$var$invalid = {
1660
1447
  container: 'ring-red-500',
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'
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'
1662
1451
  };
1663
1452
  var $143cee146891bafc$var$disabled = {
1664
1453
  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'
@@ -1681,7 +1470,7 @@ var $143cee146891bafc$export$2e2bcd8739ae039 = $143cee146891bafc$var$styles;
1681
1470
  var $75cfef1d7ff66e89$var$InputGroupForm = function(props) {
1682
1471
  var _a;
1683
1472
  var _b;
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;
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;
1685
1474
  var isValid = error === undefined;
1686
1475
  var maskRef = (0, $iA2ta$reactinputmask.useMask)({
1687
1476
  mask: mask === null || mask === void 0 ? void 0 : mask.mask,
@@ -1691,7 +1480,7 @@ var $75cfef1d7ff66e89$var$InputGroupForm = function(props) {
1691
1480
  var ref = mask ? maskRef : defaultRef;
1692
1481
  var handleGenerateStyle = function() {
1693
1482
  var result = (0, $f0c671820c340322$export$e2d2075c69d9100d)((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));
1483
+ var keys = (0, $27f90b0cff19565d$export$be5d6ab3c5b84767)((0, $143cee146891bafc$export$2e2bcd8739ae039).base);
1695
1484
  keys.forEach(function(key) {
1696
1485
  (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)));
1697
1486
  });
@@ -1704,6 +1493,7 @@ var $75cfef1d7ff66e89$var$InputGroupForm = function(props) {
1704
1493
  });
1705
1494
  var isClearable = !trailing && isValid && onClear && value !== '' && value;
1706
1495
  var inputDataCy = "form-input-".concat(name);
1496
+ var errorDataCy = "form-input-error-".concat(name);
1707
1497
  (0, $iA2ta$react.useEffect)(function() {
1708
1498
  if (ref.current && ref.current !== null && setRefOnLoad) setRefOnLoad(ref);
1709
1499
  }, [
@@ -1713,15 +1503,22 @@ var $75cfef1d7ff66e89$var$InputGroupForm = function(props) {
1713
1503
  return (0, $iA2ta$reactjsxruntime.jsxs)("div", {
1714
1504
  className: styles.container,
1715
1505
  children: [
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
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
+ ]
1725
1522
  }),
1726
1523
  (0, $iA2ta$reactjsxruntime.jsxs)("div", {
1727
1524
  className: styles.body,
@@ -1800,13 +1597,19 @@ var $75cfef1d7ff66e89$var$InputGroupForm = function(props) {
1800
1597
  })
1801
1598
  ]
1802
1599
  }),
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
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
+ ]
1810
1613
  })
1811
1614
  ]
1812
1615
  });
@@ -2252,11 +2055,13 @@ https://www.npmjs.com/package/react-tailwindcss-select
2252
2055
 
2253
2056
 
2254
2057
 
2255
-
2256
2058
  var $f32ee84b87891376$var$base = {
2257
2059
  container: '',
2060
+ head: 'flex justify-between',
2258
2061
  body: 'relative rounded-md',
2259
2062
  foot: '',
2063
+ label: 'block font-medium text-gray-900',
2064
+ hint: 'text-xs text-gray-500',
2260
2065
  leading: 'pointer-events-none absolute inset-y-0 left-0 flex items-center',
2261
2066
  input: 'block w-full flex border',
2262
2067
  menuButton: '',
@@ -2283,6 +2088,8 @@ var $f32ee84b87891376$var$leading = {
2283
2088
  };
2284
2089
  var $f32ee84b87891376$var$trailing = {};
2285
2090
  var $f32ee84b87891376$var$normal = {
2091
+ label: 'leading-6 text-sm mb-2',
2092
+ hint: 'leading-6',
2286
2093
  leading: 'pl-3',
2287
2094
  input: 'rounded-md border-gray-200 shadow-xs focus:border-primary-500 focus:ring-primary-500 sm:text-sm placeholder-gray-300',
2288
2095
  trailing: '',
@@ -2290,15 +2097,21 @@ var $f32ee84b87891376$var$normal = {
2290
2097
  };
2291
2098
  var $f32ee84b87891376$var$inset = {
2292
2099
  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',
2293
2102
  input: 'border-0 ring-0! p-0 text-gray-900 placeholder:text-gray-400 focus:ring-0 sm:text-sm pl-0',
2294
2103
  description: 'hidden'
2295
2104
  };
2296
2105
  var $f32ee84b87891376$var$overlapping = {
2297
2106
  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',
2298
2110
  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',
2299
2111
  description: 'hidden'
2300
2112
  };
2301
2113
  var $f32ee84b87891376$var$pill = {
2114
+ head: 'mx-px block px-4 text-sm font-medium leading-6 text-gray-900 mb-1 pr-6',
2302
2115
  foot: 'mx-px block px-4 text-sm font-medium leading-6 text-gray-900 mt-1 pr-6',
2303
2116
  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',
2304
2117
  trailing: 'pr-2',
@@ -2306,6 +2119,7 @@ var $f32ee84b87891376$var$pill = {
2306
2119
  };
2307
2120
  var $f32ee84b87891376$var$floored = {
2308
2121
  body: 'relative mt-2',
2122
+ label: 'block text-sm font-medium leading-6 text-gray-900',
2309
2123
  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',
2310
2124
  description: 'text-xs mt-2'
2311
2125
  };
@@ -2335,9 +2149,9 @@ var $f32ee84b87891376$export$2e2bcd8739ae039 = $f32ee84b87891376$var$styles;
2335
2149
 
2336
2150
  var $f3fccf014e1f10d5$var$SelectMenuForm = function(props) {
2337
2151
  var _a;
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];
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];
2341
2155
  var isValid = error === undefined;
2342
2156
  var selectDataCy = "form-select-".concat(name);
2343
2157
  var errorDataCy = "form-select-error-".concat(name);
@@ -2375,28 +2189,25 @@ var $f3fccf014e1f10d5$var$SelectMenuForm = function(props) {
2375
2189
  }, [
2376
2190
  value
2377
2191
  ]);
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
- ]);
2390
2192
  return (0, $iA2ta$reactjsxruntime.jsxs)("div", {
2391
2193
  className: styles.container,
2392
2194
  children: [
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
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
+ ]
2400
2211
  }),
2401
2212
  (0, $iA2ta$reactjsxruntime.jsxs)("div", {
2402
2213
  className: styles.container,
@@ -2452,7 +2263,10 @@ var $f3fccf014e1f10d5$var$SelectMenuForm = function(props) {
2452
2263
  !isSolo && (0, $iA2ta$reactjsxruntime.jsxs)("div", {
2453
2264
  className: styles.foot,
2454
2265
  children: [
2455
- descriptionElement,
2266
+ description && !(error && isTouched) && (0, $iA2ta$reactjsxruntime.jsx)("p", {
2267
+ className: styles.description,
2268
+ children: description
2269
+ }),
2456
2270
  error && isTouched && (0, $iA2ta$reactjsxruntime.jsx)("p", {
2457
2271
  className: styles.error,
2458
2272
  "data-cy": errorDataCy,
@@ -6125,10 +5939,13 @@ var $831573d0f77f2d6b$export$2e2bcd8739ae039 = $831573d0f77f2d6b$var$CheckboxInp
6125
5939
 
6126
5940
 
6127
5941
 
6128
-
6129
5942
  var $7343b5b4243d5cba$var$base = {
5943
+ label: 'block font-medium text-gray-900 leading-6 text-sm mb-2 mr-1',
6130
5944
  container: 'flex flex-col',
5945
+ head: 'flex justify-between',
5946
+ hint: 'text-xs text-gray-500',
6131
5947
  foot: 'flex flex-col',
5948
+ description: 'text-gray-400 text-xs mt-1',
6132
5949
  switch: {
6133
5950
  container: 'flex flex-col',
6134
5951
  base: 'relative inline-flex w-11 shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out',
@@ -6147,7 +5964,8 @@ var $7343b5b4243d5cba$var$base = {
6147
5964
  hidden: 'opacity-0 ease-out duration-100',
6148
5965
  shown: 'opacity-100 ease-in duration-200',
6149
5966
  icon: 'h-3 w-3'
6150
- }
5967
+ },
5968
+ error: 'text-red-500 text-xs ml-0 mt-2'
6151
5969
  };
6152
5970
  var $7343b5b4243d5cba$var$md = {
6153
5971
  switch: {
@@ -6175,28 +5993,80 @@ var $7343b5b4243d5cba$export$2e2bcd8739ae039 = $7343b5b4243d5cba$var$styles;
6175
5993
 
6176
5994
 
6177
5995
  var $341e1fbf5ffaef7b$var$Switch = function(props) {
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;
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;
6179
5997
  var inputDataCy = "form-input-".concat(name);
5998
+ var errorDataCy = "form-input-error-".concat(name);
6180
5999
  var handleGenerateStyle = function() {
6181
6000
  var result = (0, $f0c671820c340322$export$e2d2075c69d9100d)((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));
6001
+ var keys = (0, $27f90b0cff19565d$export$be5d6ab3c5b84767)((0, $7343b5b4243d5cba$export$2e2bcd8739ae039).base);
6183
6002
  (0, $iA2ta$lodash.forEach)(keys, function(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)));
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)));
6185
6004
  });
6186
6005
  return result;
6187
6006
  };
6188
6007
  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
+ ]);
6189
6058
  return (0, $iA2ta$reactjsxruntime.jsxs)("div", {
6190
6059
  className: styles.container,
6191
6060
  children: [
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
6061
+ (0, $iA2ta$reactjsxruntime.jsxs)("div", {
6062
+ className: styles.head,
6063
+ children: [
6064
+ labelComponent,
6065
+ optionalLabelComponent,
6066
+ required && required({
6067
+ isRequired: isRequired
6068
+ })
6069
+ ]
6200
6070
  }),
6201
6071
  (0, $iA2ta$reactjsxruntime.jsx)("div", {
6202
6072
  className: styles.switch.container,
@@ -6238,13 +6108,7 @@ var $341e1fbf5ffaef7b$var$Switch = function(props) {
6238
6108
  ]
6239
6109
  })
6240
6110
  }),
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
- })
6111
+ footComponent
6248
6112
  ]
6249
6113
  });
6250
6114
  };
@@ -6473,83 +6337,6 @@ var $079d45c48b1515dd$export$2e2bcd8739ae039 = $079d45c48b1515dd$var$FileInputGr
6473
6337
 
6474
6338
 
6475
6339
 
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
-
6553
6340
 
6554
6341
 
6555
6342
 
@@ -6860,6 +6647,83 @@ var $a14a274e5b9e799a$export$2e2bcd8739ae039 = $a14a274e5b9e799a$var$styles;
6860
6647
 
6861
6648
 
6862
6649
 
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
+
6863
6727
  var $9f6cfd21b337aca9$var$OpeningsHourInputGroupForm = function(props) {
6864
6728
  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;
6865
6729
  var isValid = error === undefined;