@uxf/ui 11.114.0 → 11.115.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/package.json
CHANGED
|
@@ -32,20 +32,23 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
32
32
|
return result;
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
-
};
|
|
38
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
36
|
exports.Default = Default;
|
|
40
|
-
exports.
|
|
37
|
+
exports.OnlyForE2ETests = OnlyForE2ETests;
|
|
41
38
|
const copy_to_clipboard_1 = require("@uxf/core/utils/copy-to-clipboard");
|
|
42
39
|
const button_1 = require("@uxf/ui/button");
|
|
40
|
+
const combobox_1 = require("@uxf/ui/combobox");
|
|
43
41
|
const flash_messages_service_1 = require("@uxf/ui/flash-messages/flash-messages-service");
|
|
44
42
|
const icon_1 = require("@uxf/ui/icon");
|
|
45
43
|
const text_input_1 = require("@uxf/ui/text-input");
|
|
46
|
-
const component_structure_analyzer_1 = __importDefault(require("@uxf/ui/utils/component-structure-analyzer"));
|
|
47
44
|
const react_1 = __importStar(require("react"));
|
|
48
45
|
const action_1 = require("../utils/action");
|
|
46
|
+
const PHONE_OPTIONS = [
|
|
47
|
+
{ id: "CZ", label: "+420" },
|
|
48
|
+
{ id: "SK", label: "+421" },
|
|
49
|
+
{ id: "DE", label: "+49" },
|
|
50
|
+
{ id: "AT", label: "+43" },
|
|
51
|
+
];
|
|
49
52
|
function Default() {
|
|
50
53
|
const [value, setValue] = (0, react_1.useState)("");
|
|
51
54
|
const [timeValue, setTimeValue] = (0, react_1.useState)("");
|
|
@@ -69,8 +72,9 @@ function Default() {
|
|
|
69
72
|
react_1.default.createElement(text_input_1.TextInput, { label: "Copy to clipboard input", leftAddon: "I can be copied!", name: "copyToClipboard", onChange: onChange, placeholder: "Some beautiful placeholder...", rightAddon: react_1.default.createElement(button_1.Button, { className: "size-full rounded-l-none border-none", isDisabled: value === "", onClick: onCopy, variant: "secondary" },
|
|
70
73
|
react_1.default.createElement(icon_1.Icon, { className: "w-4", name: "copy" })), value: value })));
|
|
71
74
|
}
|
|
72
|
-
function
|
|
73
|
-
const [
|
|
74
|
-
|
|
75
|
-
|
|
75
|
+
function OnlyForE2ETests() {
|
|
76
|
+
const [phoneCountryCode, setPhoneCountryCode] = (0, react_1.useState)({ id: "CZ", label: "+420" });
|
|
77
|
+
const [phoneNumber, setPhoneNumber] = (0, react_1.useState)("");
|
|
78
|
+
return (react_1.default.createElement("div", { className: "space-y-2 p-20" },
|
|
79
|
+
react_1.default.createElement(text_input_1.TextInput, { label: "Text input with combobox", leftAddon: react_1.default.createElement(combobox_1.Combobox, { className: "w-24", hiddenLabel: true, label: "Phone country code", name: "phoneCountryCode", onChange: setPhoneCountryCode, options: PHONE_OPTIONS, value: phoneCountryCode }), name: "phoneNumber", onChange: setPhoneNumber, placeholder: "777777777", type: "tel", value: phoneNumber })));
|
|
76
80
|
}
|