@helpdice/ui 2.5.8-beta.0 → 2.5.9

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.
Files changed (126) hide show
  1. package/dist/auto-complete/index.js +549 -491
  2. package/dist/avatar/index.js +82 -45
  3. package/dist/badge/index.js +69 -27
  4. package/dist/breadcrumbs/index.js +107 -56
  5. package/dist/button/button.icon.d.ts +3 -15
  6. package/dist/button/button.small.d.ts +3 -15
  7. package/dist/button/index.js +143 -155
  8. package/dist/button-dropdown/index.js +96 -83
  9. package/dist/button-group/index.js +61 -21
  10. package/dist/capacity/index.js +61 -22
  11. package/dist/card/index.js +147 -123
  12. package/dist/carousal/index.js +349 -328
  13. package/dist/checkbox/index.js +72 -67
  14. package/dist/circular-progress/CircularProgress.d.ts +17 -0
  15. package/dist/circular-progress/index.d.ts +3 -4
  16. package/dist/circular-progress/index.js +713 -336
  17. package/dist/circular-progress/useCircularProgress.d.ts +12 -0
  18. package/dist/code/index.js +70 -26
  19. package/dist/col/index.js +61 -24
  20. package/dist/collapse/index.js +102 -52
  21. package/dist/container/index.js +187 -188
  22. package/dist/copy-to-clipboard/index.js +158 -208
  23. package/dist/description/index.js +64 -23
  24. package/dist/display/index.js +64 -23
  25. package/dist/divider/index.js +62 -22
  26. package/dist/dot/index.js +63 -23
  27. package/dist/drawer/index.js +74 -61
  28. package/dist/fieldset/index.js +127 -63
  29. package/dist/form/index.js +15 -40
  30. package/dist/grid/index.js +74 -29
  31. package/dist/html-renderer/index.js +3 -2
  32. package/dist/image/index.js +163 -104
  33. package/dist/index.d.ts +2 -1
  34. package/dist/index.js +4172 -3745
  35. package/dist/input/index.js +466 -419
  36. package/dist/keyboard/index.js +73 -29
  37. package/dist/linear-progress/index.js +27 -24
  38. package/dist/link/index.js +78 -36
  39. package/dist/list/index.js +118 -63
  40. package/dist/loadable/index.js +76 -27
  41. package/dist/loading/index.js +70 -29
  42. package/dist/menu/index.js +53 -47
  43. package/dist/modal/index.js +225 -178
  44. package/dist/note/index.js +64 -23
  45. package/dist/notetip/index.js +54 -45
  46. package/dist/notetip/note-tip.d.ts +2 -0
  47. package/dist/page/index.js +102 -51
  48. package/dist/pagination/index.js +180 -123
  49. package/dist/placeholder/index.js +545 -534
  50. package/dist/popover/index.js +94 -81
  51. package/dist/progress/index.js +66 -27
  52. package/dist/radio/index.js +94 -48
  53. package/dist/rating/index.js +78 -38
  54. package/dist/row/index.js +62 -25
  55. package/dist/search-bar/index.js +172 -162
  56. package/dist/select/index.js +364 -327
  57. package/dist/slider/index.js +91 -47
  58. package/dist/snippet/index.js +39 -39
  59. package/dist/spacer/index.js +58 -19
  60. package/dist/spinner/index.js +69 -28
  61. package/dist/swipe/index.js +28 -13
  62. package/dist/table/index.js +2216 -1973
  63. package/dist/table/table-body.d.ts +4 -2
  64. package/dist/table/table-cell.d.ts +4 -2
  65. package/dist/table/table-types.d.ts +2 -0
  66. package/dist/table/table.d.ts +4 -1
  67. package/dist/tabs/index.js +61 -59
  68. package/dist/tag/index.js +16 -20
  69. package/dist/text/index.js +178 -180
  70. package/dist/textarea/index.js +220 -214
  71. package/dist/toggle/index.js +75 -33
  72. package/dist/tooltip/index.d.ts +1 -2
  73. package/dist/tooltip/index.js +59 -52
  74. package/dist/tooltip/tooltip-content.d.ts +1 -1
  75. package/dist/tooltip/tooltip.d.ts +2 -1
  76. package/dist/tree/index.js +176 -115
  77. package/dist/use-scale/index.js +50 -13
  78. package/dist/user/index.js +146 -96
  79. package/esm/button/button.icon.d.ts +3 -15
  80. package/esm/button/button.icon.js +22 -22
  81. package/esm/button/button.js +4 -4
  82. package/esm/button/button.small.d.ts +3 -15
  83. package/esm/button/button.small.js +20 -21
  84. package/esm/circular-progress/CircularProgress.d.ts +17 -0
  85. package/esm/circular-progress/CircularProgress.js +110 -0
  86. package/esm/circular-progress/index.d.ts +3 -4
  87. package/esm/circular-progress/index.js +3 -4
  88. package/esm/circular-progress/useCircularProgress.d.ts +12 -0
  89. package/esm/circular-progress/useCircularProgress.js +35 -0
  90. package/esm/index.d.ts +2 -1
  91. package/esm/index.js +1 -1
  92. package/esm/list/list-item.js +11 -11
  93. package/esm/notetip/note-tip.d.ts +2 -0
  94. package/esm/notetip/note-tip.js +8 -5
  95. package/esm/skeleton/index.js +9 -4
  96. package/esm/table/table-body.d.ts +4 -2
  97. package/esm/table/table-body.js +9 -4
  98. package/esm/table/table-cell.d.ts +4 -2
  99. package/esm/table/table-cell.js +19 -3
  100. package/esm/table/table-types.d.ts +2 -0
  101. package/esm/table/table.d.ts +4 -1
  102. package/esm/table/table.js +13 -6
  103. package/esm/tooltip/index.d.ts +1 -2
  104. package/esm/tooltip/tooltip-content.d.ts +1 -1
  105. package/esm/tooltip/tooltip-content.js +5 -5
  106. package/esm/tooltip/tooltip.d.ts +2 -1
  107. package/esm/tooltip/tooltip.js +6 -5
  108. package/package.json +3 -3
  109. package/dist/circular-progress/CircularProgressbar.d.ts +0 -10
  110. package/dist/circular-progress/CircularProgressbarWithChildren.d.ts +0 -7
  111. package/dist/circular-progress/Path.d.ts +0 -9
  112. package/dist/circular-progress/buildStyles.d.ts +0 -12
  113. package/dist/circular-progress/constants.d.ts +0 -5
  114. package/dist/circular-progress/types.d.ts +0 -50
  115. package/esm/circular-progress/CircularProgressbar.d.ts +0 -10
  116. package/esm/circular-progress/CircularProgressbar.js +0 -118
  117. package/esm/circular-progress/CircularProgressbarWithChildren.d.ts +0 -7
  118. package/esm/circular-progress/CircularProgressbarWithChildren.js +0 -32
  119. package/esm/circular-progress/Path.d.ts +0 -9
  120. package/esm/circular-progress/Path.js +0 -52
  121. package/esm/circular-progress/buildStyles.d.ts +0 -12
  122. package/esm/circular-progress/buildStyles.js +0 -45
  123. package/esm/circular-progress/constants.d.ts +0 -5
  124. package/esm/circular-progress/constants.js +0 -5
  125. package/esm/circular-progress/types.d.ts +0 -50
  126. package/esm/circular-progress/types.js +0 -1
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var o = require('react');
6
+ var jsxRuntime = require('react/jsx-runtime');
6
7
 
7
8
  function _arrayLikeToArray(r, a) {
8
9
  (null == a || a > r.length) && (a = r.length);
@@ -20,15 +21,6 @@ function _defineProperty(e, r, t) {
20
21
  writable: true
21
22
  }) : e[r] = t, e;
22
23
  }
23
- function _extends() {
24
- return _extends = Object.assign ? Object.assign.bind() : function (n) {
25
- for (var e = 1; e < arguments.length; e++) {
26
- var t = arguments[e];
27
- for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
28
- }
29
- return n;
30
- }, _extends.apply(null, arguments);
31
- }
32
24
  function _iterableToArrayLimit(r, l) {
33
25
  var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
34
26
  if (null != t) {
@@ -3385,16 +3377,17 @@ var SearchIcon = function SearchIcon(_ref) {
3385
3377
  if (!showIcon) {
3386
3378
  return null;
3387
3379
  }
3388
- return /*#__PURE__*/React.createElement(StyledSearchIcon, {
3380
+ return /*#__PURE__*/jsxRuntime.jsx(StyledSearchIcon, {
3389
3381
  className: "search-icon",
3390
3382
  width: 20,
3391
3383
  height: 20,
3392
3384
  focusable: "false",
3393
3385
  xmlns: "http://www.w3.org/2000/svg",
3394
- viewBox: "0 0 24 24"
3395
- }, /*#__PURE__*/React.createElement("path", {
3396
- d: "M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"
3397
- }));
3386
+ viewBox: "0 0 24 24",
3387
+ children: /*#__PURE__*/jsxRuntime.jsx("path", {
3388
+ d: "M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"
3389
+ })
3390
+ });
3398
3391
  };
3399
3392
  var StyledSearchIcon = dt.svg(_templateObject$3 || (_templateObject$3 = _taggedTemplateLiteral(["\n flex-shrink: 0;\n margin: ", ";\n fill: ", ";\n"])), function (props) {
3400
3393
  return props.theme.searchIconMargin;
@@ -3435,49 +3428,60 @@ function Results(_ref) {
3435
3428
  }
3436
3429
  };
3437
3430
  if (showNoResultsFlag) {
3438
- return /*#__PURE__*/React.createElement(ResultsWrapper, null, /*#__PURE__*/React.createElement("li", {
3439
- "data-test": "no-results-message"
3440
- }, /*#__PURE__*/React.createElement(SearchIcon, {
3441
- showIcon: showIcon
3442
- }), /*#__PURE__*/React.createElement("div", {
3443
- className: "ellipsis"
3444
- }, showNoResultsText)));
3431
+ return /*#__PURE__*/jsxRuntime.jsx(ResultsWrapper, {
3432
+ children: /*#__PURE__*/jsxRuntime.jsxs("li", {
3433
+ "data-test": "no-results-message",
3434
+ children: [/*#__PURE__*/jsxRuntime.jsx(SearchIcon, {
3435
+ showIcon: showIcon
3436
+ }), /*#__PURE__*/jsxRuntime.jsx("div", {
3437
+ className: "ellipsis",
3438
+ children: showNoResultsText
3439
+ })]
3440
+ })
3441
+ });
3445
3442
  }
3446
3443
  if ((results === null || results === void 0 ? void 0 : results.length) <= 0 && !showNoResultsFlag) {
3447
3444
  return null;
3448
3445
  }
3449
- return /*#__PURE__*/React.createElement(ResultsWrapper, null, results.slice(0, maxResults).map(function (result, index) {
3450
- return /*#__PURE__*/React.createElement("li", {
3451
- className: highlightedItem === index ? 'selected' : '',
3452
- onMouseEnter: function onMouseEnter() {
3453
- return setHighlightedItem({
3454
- index: index
3455
- });
3456
- },
3457
- "data-test": "result",
3458
- key: "rsa-result-".concat(result.id),
3459
- onMouseDown: function onMouseDown(event) {
3460
- return handleMouseDown({
3461
- event: event,
3462
- result: result
3463
- });
3464
- },
3465
- onClick: function onClick() {
3466
- return handleClick(result);
3467
- }
3468
- }, /*#__PURE__*/React.createElement(SearchIcon, {
3469
- showIcon: showIcon
3470
- }), /*#__PURE__*/React.createElement("div", {
3471
- className: "ellipsis",
3472
- title: result[resultStringKeyName]
3473
- }, formatResultWithKey(result)));
3474
- }));
3446
+ return /*#__PURE__*/jsxRuntime.jsx(ResultsWrapper, {
3447
+ children: results.slice(0, maxResults).map(function (result, index) {
3448
+ return /*#__PURE__*/jsxRuntime.jsxs("li", {
3449
+ className: highlightedItem === index ? 'selected' : '',
3450
+ onMouseEnter: function onMouseEnter() {
3451
+ return setHighlightedItem({
3452
+ index: index
3453
+ });
3454
+ },
3455
+ "data-test": "result",
3456
+ onMouseDown: function onMouseDown(event) {
3457
+ return handleMouseDown({
3458
+ event: event,
3459
+ result: result
3460
+ });
3461
+ },
3462
+ onClick: function onClick() {
3463
+ return handleClick(result);
3464
+ },
3465
+ children: [/*#__PURE__*/jsxRuntime.jsx(SearchIcon, {
3466
+ showIcon: showIcon
3467
+ }), /*#__PURE__*/jsxRuntime.jsx("div", {
3468
+ className: "ellipsis",
3469
+ title: result[resultStringKeyName],
3470
+ children: formatResultWithKey(result)
3471
+ })]
3472
+ }, "rsa-result-".concat(result.id));
3473
+ })
3474
+ });
3475
3475
  }
3476
3476
  var ResultsWrapper = function ResultsWrapper(_ref3) {
3477
3477
  var children = _ref3.children;
3478
- return /*#__PURE__*/React.createElement(StyledResults, null, /*#__PURE__*/React.createElement("div", {
3479
- className: "line"
3480
- }), /*#__PURE__*/React.createElement("ul", null, children));
3478
+ return /*#__PURE__*/jsxRuntime.jsxs(StyledResults, {
3479
+ children: [/*#__PURE__*/jsxRuntime.jsx("div", {
3480
+ className: "line"
3481
+ }), /*#__PURE__*/jsxRuntime.jsx("ul", {
3482
+ children: children
3483
+ })]
3484
+ });
3481
3485
  };
3482
3486
  var StyledResults = dt.div(_templateObject$2 || (_templateObject$2 = _taggedTemplateLiteral(["\n > div.line {\n border-top-color: ", ";\n border-top-style: solid;\n border-top-width: 1px;\n\n margin-bottom: 0px;\n margin-left: 14px;\n margin-right: 20px;\n margin-top: 0px;\n\n padding-bottom: 4px;\n }\n\n > ul {\n list-style-type: none;\n margin: 0;\n padding: 0px 0 16px 0;\n max-height: ", ";\n\n > li {\n display: flex;\n align-items: center;\n padding: 4px 0 4px 0;\n\n > div {\n margin-left: 13px;\n }\n }\n }\n\n .ellipsis {\n text-align: left;\n width: 100%;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n .selected {\n background-color: ", ";\n }\n"])), function (props) {
3483
3487
  return props.theme.lineColor;
@@ -3509,18 +3513,20 @@ var ClearIcon = function ClearIcon(_ref) {
3509
3513
  if (!searchString || (searchString === null || searchString === void 0 ? void 0 : searchString.length) <= 0) {
3510
3514
  return null;
3511
3515
  }
3512
- return /*#__PURE__*/React.createElement(StyledClearIcon, {
3516
+ return /*#__PURE__*/jsxRuntime.jsx(StyledClearIcon, {
3513
3517
  className: "clear-icon",
3514
- onClick: handleClearSearchString
3515
- }, /*#__PURE__*/React.createElement("svg", {
3516
- width: 20,
3517
- height: 20,
3518
- focusable: "false",
3519
- xmlns: "http://www.w3.org/2000/svg",
3520
- viewBox: "0 0 24 24"
3521
- }, /*#__PURE__*/React.createElement("path", {
3522
- d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.58 12 5 17.58 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
3523
- })));
3518
+ onClick: handleClearSearchString,
3519
+ children: /*#__PURE__*/jsxRuntime.jsx("svg", {
3520
+ width: 20,
3521
+ height: 20,
3522
+ focusable: "false",
3523
+ xmlns: "http://www.w3.org/2000/svg",
3524
+ viewBox: "0 0 24 24",
3525
+ children: /*#__PURE__*/jsxRuntime.jsx("path", {
3526
+ d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.58 12 5 17.58 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
3527
+ })
3528
+ })
3529
+ });
3524
3530
  };
3525
3531
  var StyledClearIcon = dt.div(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteral(["\n margin: ", ";\n\n &:hover {\n cursor: pointer;\n }\n\n > svg {\n fill: ", ";\n }\n"])), function (props) {
3526
3532
  return props.theme.clearIconMargin;
@@ -3556,33 +3562,35 @@ function SearchInput(_ref) {
3556
3562
  var maxLengthProperty = maxLength ? {
3557
3563
  maxLength: maxLength
3558
3564
  } : {};
3559
- return /*#__PURE__*/React.createElement(StyledSearchInput, null, /*#__PURE__*/React.createElement(SearchIcon, {
3560
- showIcon: showIcon
3561
- }), /*#__PURE__*/React.createElement("input", _extends({
3562
- type: "text",
3563
- ref: ref,
3564
- spellCheck: false,
3565
- value: searchString,
3566
- onChange: setSearchString,
3567
- onFocus: handleOnFocus,
3568
- placeholder: placeholder,
3569
- autoFocus: autoFocus,
3570
- onBlur: function onBlur() {
3571
- return eraseResults();
3572
- },
3573
- onKeyDown: function onKeyDown(event) {
3574
- return setHighlightedItem({
3575
- event: event
3576
- });
3577
- },
3578
- "data-test": "search-input"
3579
- }, maxLengthProperty)), /*#__PURE__*/React.createElement(ClearIcon, {
3580
- showClear: showClear,
3581
- setSearchString: setSearchString,
3582
- searchString: searchString,
3583
- onClear: onClear,
3584
- setFocus: setFocus
3585
- }));
3565
+ return /*#__PURE__*/jsxRuntime.jsxs(StyledSearchInput, {
3566
+ children: [/*#__PURE__*/jsxRuntime.jsx(SearchIcon, {
3567
+ showIcon: showIcon
3568
+ }), /*#__PURE__*/jsxRuntime.jsx("input", _objectSpread2({
3569
+ type: "text",
3570
+ ref: ref,
3571
+ spellCheck: false,
3572
+ value: searchString,
3573
+ onChange: setSearchString,
3574
+ onFocus: handleOnFocus,
3575
+ placeholder: placeholder,
3576
+ autoFocus: autoFocus,
3577
+ onBlur: function onBlur() {
3578
+ return eraseResults();
3579
+ },
3580
+ onKeyDown: function onKeyDown(event) {
3581
+ return setHighlightedItem({
3582
+ event: event
3583
+ });
3584
+ },
3585
+ "data-test": "search-input"
3586
+ }, maxLengthProperty)), /*#__PURE__*/jsxRuntime.jsx(ClearIcon, {
3587
+ showClear: showClear,
3588
+ setSearchString: setSearchString,
3589
+ searchString: searchString,
3590
+ onClear: onClear,
3591
+ setFocus: setFocus
3592
+ })]
3593
+ });
3586
3594
  }
3587
3595
  var StyledSearchInput = dt.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n min-height: ", ";\n width: 100%;\n\n display: flex;\n align-items: center;\n\n > input {\n width: 100%;\n\n padding: 0 0 0 13px;\n\n border: none;\n outline: none;\n\n background-color: rgba(0, 0, 0, 0);\n font-size: inherit;\n font-family: inherit;\n\n color: ", ";\n\n ::placeholder {\n color: ", ";\n opacity: 1;\n\n :-ms-input-placeholder {\n color: ", ";\n }\n\n ::-ms-input-placeholder {\n color: ", ";\n }\n }\n }\n"])), function (props) {
3588
3596
  return props.theme.height;
@@ -3785,7 +3793,7 @@ function ReactSearchAutocomplete(_ref) {
3785
3793
  }
3786
3794
  }
3787
3795
  };
3788
- return /*#__PURE__*/o.createElement("div", {
3796
+ return /*#__PURE__*/jsxRuntime.jsxs("div", {
3789
3797
  className: _JSXStyle.dynamic([["3512916558", [function (props) {
3790
3798
  return parseInt(props.theme.height) + 2 + 'px';
3791
3799
  }, function (props) {
@@ -3808,79 +3816,81 @@ function ReactSearchAutocomplete(_ref) {
3808
3816
  return props.theme.boxShadow;
3809
3817
  }, function (props) {
3810
3818
  return props.theme.boxShadow;
3811
- }]]]) + " " + "search-bar-wrapper"
3812
- }, /*#__PURE__*/o.createElement(SearchInput, {
3813
- searchString: searchString,
3814
- setSearchString: handleSetSearchString,
3815
- eraseResults: eraseResults,
3816
- autoFocus: autoFocus,
3817
- onFocus: handleOnFocus,
3818
- onClear: onClear,
3819
- placeholder: placeholder,
3820
- showIcon: showIcon,
3821
- showClear: showClear,
3822
- setHighlightedItem: handleSetHighlightedItem,
3823
- maxLength: maxLength
3824
- }), /*#__PURE__*/o.createElement(Results, {
3825
- results: results,
3826
- onClick: handleOnClick,
3827
- setSearchString: setSearchString,
3828
- showIcon: showIcon,
3829
- maxResults: maxResults,
3830
- resultStringKeyName: resultStringKeyName,
3831
- formatResult: formatResult,
3832
- highlightedItem: highlightedItem,
3833
- setHighlightedItem: handleSetHighlightedItem,
3834
- showNoResultsFlag: showNoResultsFlag,
3835
- showNoResultsText: showNoResultsText
3836
- }), /*#__PURE__*/o.createElement(_JSXStyle, {
3837
- id: "3512916558",
3838
- dynamic: [function (props) {
3839
- return parseInt(props.theme.height) + 2 + 'px';
3840
- }, function (props) {
3841
- return props.theme.border;
3842
- }, function (props) {
3843
- return props.theme.borderRadius;
3844
- }, function (props) {
3845
- return props.theme.backgroundColor;
3846
- }, function (props) {
3847
- return props.theme.color;
3848
- }, function (props) {
3849
- return props.theme.fontSize;
3850
- }, function (props) {
3851
- return props.theme.fontFamily;
3852
- }, function (props) {
3853
- return props.theme.zIndex;
3854
- }, function (props) {
3855
- return props.theme.boxShadow;
3856
- }, function (props) {
3857
- return props.theme.boxShadow;
3858
- }, function (props) {
3859
- return props.theme.boxShadow;
3860
- }]
3861
- }, ".__jsx-style-dynamic-selector{position:relative;height:".concat(function (props) {
3862
- return parseInt(props.theme.height) + 2 + 'px';
3863
- }, ";}.search-bar-wrapper.__jsx-style-dynamic-selector{position:absolute;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;width:100%;border:").concat(function (props) {
3864
- return props.theme.border;
3865
- }, ";border-radius:").concat(function (props) {
3866
- return props.theme.borderRadius;
3867
- }, ";background-color:").concat(function (props) {
3868
- return props.theme.backgroundColor;
3869
- }, ";color:").concat(function (props) {
3870
- return props.theme.color;
3871
- }, ";font-size:").concat(function (props) {
3872
- return props.theme.fontSize;
3873
- }, ";font-family:").concat(function (props) {
3874
- return props.theme.fontFamily;
3875
- }, ";z-index:").concat(function (props) {
3876
- return props.theme.zIndex;
3877
- }, ";}.search-bar-wrapper.__jsx-style-dynamic-selector:hover{box-shadow:").concat(function (props) {
3878
- return props.theme.boxShadow;
3879
- }, ";}.search-bar-wrapper.__jsx-style-dynamic-selector:active{box-shadow:").concat(function (props) {
3880
- return props.theme.boxShadow;
3881
- }, ";}.search-bar-wrapper.__jsx-style-dynamic-selector:focus-within{box-shadow:").concat(function (props) {
3882
- return props.theme.boxShadow;
3883
- }, ";}")));
3819
+ }]]]) + " " + "search-bar-wrapper",
3820
+ children: [/*#__PURE__*/jsxRuntime.jsx(SearchInput, {
3821
+ searchString: searchString,
3822
+ setSearchString: handleSetSearchString,
3823
+ eraseResults: eraseResults,
3824
+ autoFocus: autoFocus,
3825
+ onFocus: handleOnFocus,
3826
+ onClear: onClear,
3827
+ placeholder: placeholder,
3828
+ showIcon: showIcon,
3829
+ showClear: showClear,
3830
+ setHighlightedItem: handleSetHighlightedItem,
3831
+ maxLength: maxLength
3832
+ }), /*#__PURE__*/jsxRuntime.jsx(Results, {
3833
+ results: results,
3834
+ onClick: handleOnClick,
3835
+ setSearchString: setSearchString,
3836
+ showIcon: showIcon,
3837
+ maxResults: maxResults,
3838
+ resultStringKeyName: resultStringKeyName,
3839
+ formatResult: formatResult,
3840
+ highlightedItem: highlightedItem,
3841
+ setHighlightedItem: handleSetHighlightedItem,
3842
+ showNoResultsFlag: showNoResultsFlag,
3843
+ showNoResultsText: showNoResultsText
3844
+ }), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
3845
+ id: "3512916558",
3846
+ dynamic: [function (props) {
3847
+ return parseInt(props.theme.height) + 2 + 'px';
3848
+ }, function (props) {
3849
+ return props.theme.border;
3850
+ }, function (props) {
3851
+ return props.theme.borderRadius;
3852
+ }, function (props) {
3853
+ return props.theme.backgroundColor;
3854
+ }, function (props) {
3855
+ return props.theme.color;
3856
+ }, function (props) {
3857
+ return props.theme.fontSize;
3858
+ }, function (props) {
3859
+ return props.theme.fontFamily;
3860
+ }, function (props) {
3861
+ return props.theme.zIndex;
3862
+ }, function (props) {
3863
+ return props.theme.boxShadow;
3864
+ }, function (props) {
3865
+ return props.theme.boxShadow;
3866
+ }, function (props) {
3867
+ return props.theme.boxShadow;
3868
+ }],
3869
+ children: ".__jsx-style-dynamic-selector{position:relative;height:".concat(function (props) {
3870
+ return parseInt(props.theme.height) + 2 + 'px';
3871
+ }, ";}.search-bar-wrapper.__jsx-style-dynamic-selector{position:absolute;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;width:100%;border:").concat(function (props) {
3872
+ return props.theme.border;
3873
+ }, ";border-radius:").concat(function (props) {
3874
+ return props.theme.borderRadius;
3875
+ }, ";background-color:").concat(function (props) {
3876
+ return props.theme.backgroundColor;
3877
+ }, ";color:").concat(function (props) {
3878
+ return props.theme.color;
3879
+ }, ";font-size:").concat(function (props) {
3880
+ return props.theme.fontSize;
3881
+ }, ";font-family:").concat(function (props) {
3882
+ return props.theme.fontFamily;
3883
+ }, ";z-index:").concat(function (props) {
3884
+ return props.theme.zIndex;
3885
+ }, ";}.search-bar-wrapper.__jsx-style-dynamic-selector:hover{box-shadow:").concat(function (props) {
3886
+ return props.theme.boxShadow;
3887
+ }, ";}.search-bar-wrapper.__jsx-style-dynamic-selector:active{box-shadow:").concat(function (props) {
3888
+ return props.theme.boxShadow;
3889
+ }, ";}.search-bar-wrapper.__jsx-style-dynamic-selector:focus-within{box-shadow:").concat(function (props) {
3890
+ return props.theme.boxShadow;
3891
+ }, ";}")
3892
+ })]
3893
+ });
3884
3894
  }
3885
3895
 
3886
3896
  exports.default = ReactSearchAutocomplete;