@helpdice/ui 2.5.8-beta.0 → 2.5.8
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/auto-complete/index.js +549 -491
- package/dist/avatar/index.js +82 -45
- package/dist/badge/index.js +69 -27
- package/dist/breadcrumbs/index.js +107 -56
- package/dist/button/button.icon.d.ts +3 -15
- package/dist/button/button.small.d.ts +3 -15
- package/dist/button/index.js +143 -155
- package/dist/button-dropdown/index.js +96 -83
- package/dist/button-group/index.js +61 -21
- package/dist/capacity/index.js +61 -22
- package/dist/card/index.js +147 -123
- package/dist/carousal/index.js +349 -328
- package/dist/checkbox/index.js +72 -67
- package/dist/circular-progress/CircularProgress.d.ts +17 -0
- package/dist/circular-progress/index.d.ts +3 -4
- package/dist/circular-progress/index.js +713 -336
- package/dist/circular-progress/useCircularProgress.d.ts +12 -0
- package/dist/code/index.js +70 -26
- package/dist/col/index.js +61 -24
- package/dist/collapse/index.js +102 -52
- package/dist/container/index.js +187 -188
- package/dist/copy-to-clipboard/index.js +158 -208
- package/dist/description/index.js +64 -23
- package/dist/display/index.js +64 -23
- package/dist/divider/index.js +62 -22
- package/dist/dot/index.js +63 -23
- package/dist/drawer/index.js +74 -61
- package/dist/fieldset/index.js +127 -63
- package/dist/form/index.js +15 -40
- package/dist/grid/index.js +74 -29
- package/dist/html-renderer/index.js +3 -2
- package/dist/image/index.js +163 -104
- package/dist/index.d.ts +2 -1
- package/dist/index.js +4173 -3745
- package/dist/input/index.js +466 -419
- package/dist/keyboard/index.js +73 -29
- package/dist/linear-progress/index.js +27 -24
- package/dist/link/index.js +78 -36
- package/dist/list/index.js +118 -63
- package/dist/loadable/index.js +76 -27
- package/dist/loading/index.js +70 -29
- package/dist/menu/index.js +53 -47
- package/dist/modal/index.js +225 -178
- package/dist/note/index.js +64 -23
- package/dist/notetip/index.js +54 -45
- package/dist/notetip/note-tip.d.ts +2 -0
- package/dist/page/index.js +102 -51
- package/dist/pagination/index.js +180 -123
- package/dist/placeholder/index.js +545 -534
- package/dist/popover/index.js +94 -81
- package/dist/progress/index.js +66 -27
- package/dist/radio/index.js +94 -48
- package/dist/rating/index.js +78 -38
- package/dist/row/index.js +62 -25
- package/dist/search-bar/index.js +172 -162
- package/dist/select/index.js +364 -327
- package/dist/slider/index.js +91 -47
- package/dist/snippet/index.js +39 -39
- package/dist/spacer/index.js +58 -19
- package/dist/spinner/index.js +69 -28
- package/dist/swipe/index.js +28 -13
- package/dist/table/index.js +2217 -1973
- package/dist/table/table-body.d.ts +4 -2
- package/dist/table/table-cell.d.ts +4 -2
- package/dist/table/table-types.d.ts +2 -0
- package/dist/table/table.d.ts +4 -1
- package/dist/tabs/index.js +61 -59
- package/dist/tag/index.js +16 -20
- package/dist/text/index.js +178 -180
- package/dist/textarea/index.js +220 -214
- package/dist/toggle/index.js +75 -33
- package/dist/tooltip/index.d.ts +1 -2
- package/dist/tooltip/index.js +59 -52
- package/dist/tooltip/tooltip-content.d.ts +1 -1
- package/dist/tooltip/tooltip.d.ts +2 -1
- package/dist/tree/index.js +176 -115
- package/dist/use-scale/index.js +50 -13
- package/dist/user/index.js +146 -96
- package/esm/button/button.icon.d.ts +3 -15
- package/esm/button/button.icon.js +22 -22
- package/esm/button/button.js +4 -4
- package/esm/button/button.small.d.ts +3 -15
- package/esm/button/button.small.js +20 -21
- package/esm/circular-progress/CircularProgress.d.ts +17 -0
- package/esm/circular-progress/CircularProgress.js +110 -0
- package/esm/circular-progress/index.d.ts +3 -4
- package/esm/circular-progress/index.js +3 -4
- package/esm/circular-progress/useCircularProgress.d.ts +12 -0
- package/esm/circular-progress/useCircularProgress.js +35 -0
- package/esm/index.d.ts +2 -1
- package/esm/index.js +1 -1
- package/esm/list/list-item.js +11 -11
- package/esm/notetip/note-tip.d.ts +2 -0
- package/esm/notetip/note-tip.js +8 -5
- package/esm/skeleton/index.js +9 -4
- package/esm/table/table-body.d.ts +4 -2
- package/esm/table/table-body.js +9 -4
- package/esm/table/table-cell.d.ts +4 -2
- package/esm/table/table-cell.js +19 -3
- package/esm/table/table-types.d.ts +2 -0
- package/esm/table/table.d.ts +4 -1
- package/esm/table/table.js +13 -6
- package/esm/tooltip/index.d.ts +1 -2
- package/esm/tooltip/tooltip-content.d.ts +1 -1
- package/esm/tooltip/tooltip-content.js +5 -5
- package/esm/tooltip/tooltip.d.ts +2 -1
- package/esm/tooltip/tooltip.js +6 -5
- package/package.json +3 -3
- package/dist/circular-progress/CircularProgressbar.d.ts +0 -10
- package/dist/circular-progress/CircularProgressbarWithChildren.d.ts +0 -7
- package/dist/circular-progress/Path.d.ts +0 -9
- package/dist/circular-progress/buildStyles.d.ts +0 -12
- package/dist/circular-progress/constants.d.ts +0 -5
- package/dist/circular-progress/types.d.ts +0 -50
- package/esm/circular-progress/CircularProgressbar.d.ts +0 -10
- package/esm/circular-progress/CircularProgressbar.js +0 -118
- package/esm/circular-progress/CircularProgressbarWithChildren.d.ts +0 -7
- package/esm/circular-progress/CircularProgressbarWithChildren.js +0 -32
- package/esm/circular-progress/Path.d.ts +0 -9
- package/esm/circular-progress/Path.js +0 -52
- package/esm/circular-progress/buildStyles.d.ts +0 -12
- package/esm/circular-progress/buildStyles.js +0 -45
- package/esm/circular-progress/constants.d.ts +0 -5
- package/esm/circular-progress/constants.js +0 -5
- package/esm/circular-progress/types.d.ts +0 -50
- package/esm/circular-progress/types.js +0 -1
package/dist/search-bar/index.js
CHANGED
|
@@ -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__*/
|
|
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
|
-
|
|
3396
|
-
|
|
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__*/
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
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__*/
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
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__*/
|
|
3479
|
-
|
|
3480
|
-
|
|
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__*/
|
|
3516
|
+
return /*#__PURE__*/jsxRuntime.jsx(StyledClearIcon, {
|
|
3513
3517
|
className: "clear-icon",
|
|
3514
|
-
onClick: handleClearSearchString
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
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__*/
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
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__*/
|
|
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
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
|
|
3856
|
-
|
|
3857
|
-
|
|
3858
|
-
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
|
|
3873
|
-
|
|
3874
|
-
|
|
3875
|
-
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
3882
|
-
|
|
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;
|