@use-ui/bootstrap3
Advanced tools
Comparing version 1.0.10 to 1.0.11
/// <reference types="react" /> | ||
import { Topic } from "push-rpc"; | ||
import { FormGroupProps } from "./FormGroup"; | ||
import { Constraint, Field } from "@use-ui/hooks"; | ||
import { RemoteTopic } from "push-rpc/dist/rpc"; | ||
interface Option { | ||
@@ -11,3 +11,3 @@ value: string; | ||
field: Field; | ||
topic?: Topic<D[], P>; | ||
topic?: RemoteTopic<D[], P>; | ||
params?: P; | ||
@@ -14,0 +14,0 @@ map?: (D: any) => Option; |
@@ -78,3 +78,3 @@ "use strict"; | ||
var _f = react_1.useState(""), inputValue = _f[0], setInputValue = _f[1]; | ||
function loadOptions(inputValue) { | ||
function loadOptions(search) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
@@ -91,3 +91,3 @@ var options, items; | ||
_a.trys.push([1, , 3, 4]); | ||
return [4 /*yield*/, topic.get(params)]; | ||
return [4 /*yield*/, topic.get(__assign(__assign({}, params), { search: search }))]; | ||
case 2: | ||
@@ -94,0 +94,0 @@ items = _a.sent(); |
import * as React from "react"; | ||
export declare function highlight(s: string, term: string): React.ReactFragment; | ||
export declare function highlight(s: string, term: string, exact?: boolean): React.ReactFragment; | ||
export declare function getChildrenText(children: any): string; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var React = require("react"); | ||
function highlight(s, term) { | ||
function highlight(s, term, exact) { | ||
if (exact === void 0) { exact = false; } | ||
if (s && term) { | ||
s = "" + s; | ||
if (exact) { | ||
return s == term ? React.createElement("span", { className: "hlt" }, "s") : s; | ||
} | ||
var parts = s.split(new RegExp(term, "i")); | ||
@@ -8,0 +12,0 @@ if (parts.length == 1) |
{ | ||
"name": "@use-ui/bootstrap3", | ||
"version": "1.0.10", | ||
"version": "1.0.11", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
69258
1191