@uxf/ui 1.0.0-beta.44 → 1.0.0-beta.45
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/input/index.d.ts +2 -2
- package/input/index.js +2 -2
- package/input/input-left-addon.d.ts +3 -0
- package/input/input-left-addon.js +1 -0
- package/input/input-left-element.d.ts +3 -0
- package/input/input-left-element.js +1 -0
- package/input/input-right-addon.d.ts +4 -1
- package/input/input-right-addon.js +1 -0
- package/input/input-right-element.d.ts +3 -0
- package/input/input-right-element.js +1 -0
- package/label/label.d.ts +1 -0
- package/label/label.js +1 -1
- package/package.json +1 -1
package/input/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Input as RootInput } from "./input";
|
|
3
|
-
import LeftElement from "./input-left-element";
|
|
4
|
-
import RightElement from "./input-right-element";
|
|
5
3
|
import LeftAddon from "./input-left-addon";
|
|
4
|
+
import LeftElement from "./input-left-element";
|
|
6
5
|
import RightAddon from "./input-right-addon";
|
|
6
|
+
import RightElement from "./input-right-element";
|
|
7
7
|
export declare const Input: typeof RootInput & {
|
|
8
8
|
Element: import("react").ForwardRefExoticComponent<import("./input-element").InputElementProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
9
9
|
LeftElement: typeof LeftElement;
|
package/input/index.js
CHANGED
|
@@ -6,10 +6,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.Input = void 0;
|
|
7
7
|
const input_1 = require("./input");
|
|
8
8
|
const input_element_1 = __importDefault(require("./input-element"));
|
|
9
|
-
const input_left_element_1 = __importDefault(require("./input-left-element"));
|
|
10
|
-
const input_right_element_1 = __importDefault(require("./input-right-element"));
|
|
11
9
|
const input_left_addon_1 = __importDefault(require("./input-left-addon"));
|
|
10
|
+
const input_left_element_1 = __importDefault(require("./input-left-element"));
|
|
12
11
|
const input_right_addon_1 = __importDefault(require("./input-right-addon"));
|
|
12
|
+
const input_right_element_1 = __importDefault(require("./input-right-element"));
|
|
13
13
|
exports.Input = Object.assign(input_1.Input, {
|
|
14
14
|
Element: input_element_1.default,
|
|
15
15
|
LeftElement: input_left_element_1.default,
|
|
@@ -7,4 +7,5 @@ const react_1 = __importDefault(require("react"));
|
|
|
7
7
|
function InputLeftAddon(props) {
|
|
8
8
|
return react_1.default.createElement("div", { className: "uxf-input__left-addon" }, props.children);
|
|
9
9
|
}
|
|
10
|
+
InputLeftAddon.displayName = "InputLeftAddon";
|
|
10
11
|
exports.default = InputLeftAddon;
|
|
@@ -7,4 +7,5 @@ const react_1 = __importDefault(require("react"));
|
|
|
7
7
|
function InputLeftElement(props) {
|
|
8
8
|
return react_1.default.createElement("div", { className: "uxf-input__left-element" }, props.children);
|
|
9
9
|
}
|
|
10
|
+
InputLeftElement.displayName = "InputLeftElement";
|
|
10
11
|
exports.default = InputLeftElement;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
|
-
interface InputRightAddonProps {
|
|
2
|
+
export interface InputRightAddonProps {
|
|
3
3
|
children: ReactNode;
|
|
4
4
|
}
|
|
5
5
|
declare function InputRightAddon(props: InputRightAddonProps): JSX.Element;
|
|
6
|
+
declare namespace InputRightAddon {
|
|
7
|
+
var displayName: string;
|
|
8
|
+
}
|
|
6
9
|
export default InputRightAddon;
|
|
@@ -7,4 +7,5 @@ const react_1 = __importDefault(require("react"));
|
|
|
7
7
|
function InputRightAddon(props) {
|
|
8
8
|
return react_1.default.createElement("div", { className: "uxf-input__right-addon" }, props.children);
|
|
9
9
|
}
|
|
10
|
+
InputRightAddon.displayName = "InputRightAddon";
|
|
10
11
|
exports.default = InputRightAddon;
|
|
@@ -7,4 +7,5 @@ const react_1 = __importDefault(require("react"));
|
|
|
7
7
|
function InputRightElement(props) {
|
|
8
8
|
return react_1.default.createElement("div", { className: "uxf-input__right-element" }, props.children);
|
|
9
9
|
}
|
|
10
|
+
InputRightElement.displayName = "InputRightElement";
|
|
10
11
|
exports.default = InputRightElement;
|
package/label/label.d.ts
CHANGED
package/label/label.js
CHANGED
|
@@ -9,6 +9,6 @@ const react_1 = __importDefault(require("react"));
|
|
|
9
9
|
const forward_ref_1 = require("../utils/forward-ref");
|
|
10
10
|
function Label(props, ref) {
|
|
11
11
|
const className = (0, cx_1.cx)("uxf-label", props.isRequired && classes_1.CLASSES.IS_REQUIRED, props.className);
|
|
12
|
-
return (react_1.default.createElement("label", { className: className,
|
|
12
|
+
return (react_1.default.createElement("label", { className: className, form: props.form, htmlFor: props.htmlFor, id: props.id, onClick: props.onClick, ref: ref }, props.children));
|
|
13
13
|
}
|
|
14
14
|
exports.default = (0, forward_ref_1.forwardRef)("Label", Label);
|