@uxf/ui 11.120.0 → 11.122.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/button/button.stories.js +1 -0
- package/combobox/combobox.stories.js +8 -1
- package/flash-messages/flash-messages.stories.js +2 -1
- package/multi-select/multi-select.stories.js +9 -2
- package/package.json +1 -1
- package/radio-group/radio-group.stories.js +9 -2
- package/select/select.stories.js +9 -2
package/button/button.stories.js
CHANGED
|
@@ -110,6 +110,7 @@ function OnlyForE2ETests() {
|
|
|
110
110
|
react_1.default.createElement(button_1.Button, { onClick: () => setLastClicked("Vyřešené") },
|
|
111
111
|
react_1.default.createElement(icon_1.Icon, { name: "check" }),
|
|
112
112
|
"Vy\u0159e\u0161en\u00E9"),
|
|
113
|
+
react_1.default.createElement(button_1.Button, { onClick: () => setLastClicked("Odeslat formulář") }, "Odeslat formul\u00E1\u0159"),
|
|
113
114
|
lastClicked !== null && react_1.default.createElement("div", { "data-testid": "last-clicked" }, lastClicked)));
|
|
114
115
|
}
|
|
115
116
|
function LoadingButton() {
|
|
@@ -90,19 +90,26 @@ const STAV_OPTIONS = [
|
|
|
90
90
|
{ id: "nevyresene", label: "Nevyřešené" },
|
|
91
91
|
{ id: "vyresene", label: "Vyřešené" },
|
|
92
92
|
];
|
|
93
|
+
const STAV_PARTIAL_OPTIONS = [
|
|
94
|
+
{ id: "otevrene", label: "Otevřené (5)" },
|
|
95
|
+
{ id: "uzavrene", label: "Uzavřené (12)" },
|
|
96
|
+
];
|
|
93
97
|
function OnlyForE2ETests() {
|
|
94
98
|
const [fruit, setFruit] = (0, react_1.useState)(null);
|
|
95
99
|
const [country, setCountry] = (0, react_1.useState)(null);
|
|
96
100
|
const [color, setColor] = (0, react_1.useState)(null);
|
|
97
101
|
const [size, setSize] = (0, react_1.useState)(null);
|
|
98
102
|
const [stav, setStav] = (0, react_1.useState)(null);
|
|
103
|
+
const [stavPartial, setStavPartial] = (0, react_1.useState)(null);
|
|
99
104
|
return (react_1.default.createElement("div", { className: "space-y-4 p-4" },
|
|
100
105
|
react_1.default.createElement(index_1.Combobox, { isClearable: true, label: "Fruit", loadOptions: e2eLoadOptions(FRUITS), name: "fruit", onChange: setFruit, placeholder: "Select fruit...", value: fruit }),
|
|
101
106
|
react_1.default.createElement(index_1.Combobox, { isClearable: true, label: "Country", loadOptions: e2eLoadOptions(COUNTRIES), name: "country", onChange: setCountry, placeholder: "Select country...", value: country }),
|
|
102
107
|
react_1.default.createElement(index_1.Combobox, { isClearable: true, label: "Color", loadOptions: e2eLoadOptions(COLORS), name: "color", onChange: setColor, placeholder: "Select color...", value: color }),
|
|
103
108
|
react_1.default.createElement(index_1.Combobox, { isClearable: true, label: "Size", loadOptions: e2eLoadOptions(SIZES), name: "size", onChange: setSize, placeholder: "Select size...", value: size }),
|
|
104
109
|
react_1.default.createElement(index_1.Combobox, { isClearable: true, label: "Stav", loadOptions: e2eLoadOptions(STAV_OPTIONS), name: "stav", onChange: setStav, placeholder: "Vyberte stav...", value: stav }),
|
|
105
|
-
stav !== null && react_1.default.createElement("div", { "data-testid": "selected-stav" }, stav.id)
|
|
110
|
+
stav !== null && react_1.default.createElement("div", { "data-testid": "selected-stav" }, stav.id),
|
|
111
|
+
react_1.default.createElement(index_1.Combobox, { isClearable: true, label: "Stav (partial)", loadOptions: e2eLoadOptions(STAV_PARTIAL_OPTIONS), name: "stav-partial", onChange: setStavPartial, placeholder: "Vyberte stav...", value: stavPartial }),
|
|
112
|
+
stavPartial !== null && react_1.default.createElement("div", { "data-testid": "selected-stav-partial" }, stavPartial.id)));
|
|
106
113
|
}
|
|
107
114
|
function AsynchronousOptions() {
|
|
108
115
|
const [value, setValue] = (0, react_1.useState)(null);
|
|
@@ -54,5 +54,6 @@ function Default() {
|
|
|
54
54
|
function OnlyForE2ETests() {
|
|
55
55
|
return (react_1.default.createElement("div", { className: "inline-flex flex-col space-y-4" },
|
|
56
56
|
react_1.default.createElement(button_1.Button, { onClick: () => (0, flash_messages_service_1.flashMessage)({ autoDismiss: false, message: "Vyřešené", variant: "info" }) }, "Zobrazit Vy\u0159e\u0161en\u00E9"),
|
|
57
|
-
react_1.default.createElement(button_1.Button, { onClick: () => (0, flash_messages_service_1.flashMessage)({ autoDismiss: false, message: "Nevyřešené", variant: "info" }) }, "Zobrazit Nevy\u0159e\u0161en\u00E9")
|
|
57
|
+
react_1.default.createElement(button_1.Button, { onClick: () => (0, flash_messages_service_1.flashMessage)({ autoDismiss: false, message: "Nevyřešené", variant: "info" }) }, "Zobrazit Nevy\u0159e\u0161en\u00E9"),
|
|
58
|
+
react_1.default.createElement(button_1.Button, { onClick: () => (0, flash_messages_service_1.flashMessage)({ autoDismiss: false, message: "Vyřešené - úspěšně zpracováno", variant: "info" }) }, "Zobrazit Vy\u0159e\u0161en\u00E9 (partial)")));
|
|
58
59
|
}
|
|
@@ -72,9 +72,16 @@ const e2eOptions = [
|
|
|
72
72
|
{ id: "nevyresene", label: "Nevyřešené" },
|
|
73
73
|
{ id: "vyresene", label: "Vyřešené" },
|
|
74
74
|
];
|
|
75
|
+
const e2ePartialOptions = [
|
|
76
|
+
{ id: "otevrene", label: "Otevřené (5)" },
|
|
77
|
+
{ id: "uzavrene", label: "Uzavřené (12)" },
|
|
78
|
+
];
|
|
75
79
|
function OnlyForE2ETests() {
|
|
76
80
|
const [value, setValue] = (0, react_1.useState)(null);
|
|
77
|
-
|
|
81
|
+
const [partialValue, setPartialValue] = (0, react_1.useState)(null);
|
|
82
|
+
return (react_1.default.createElement("div", { className: "space-y-4 p-8" },
|
|
78
83
|
react_1.default.createElement(multi_select_1.MultiSelect, { label: "Stav", name: "stav", onChange: (v) => setValue(v), options: e2eOptions, placeholder: "Vyberte...", value: value }),
|
|
79
|
-
value !== null && react_1.default.createElement("div", { "data-testid": "selected-value" }, value.join(","))
|
|
84
|
+
value !== null && react_1.default.createElement("div", { "data-testid": "selected-value" }, value.join(",")),
|
|
85
|
+
react_1.default.createElement(multi_select_1.MultiSelect, { label: "Stav (partial)", name: "stav-partial", onChange: (v) => setPartialValue(v), options: e2ePartialOptions, placeholder: "Vyberte...", value: partialValue }),
|
|
86
|
+
partialValue !== null && react_1.default.createElement("div", { "data-testid": "selected-partial-value" }, partialValue.join(","))));
|
|
80
87
|
}
|
package/package.json
CHANGED
|
@@ -68,9 +68,16 @@ const e2eOptions = [
|
|
|
68
68
|
{ id: "nevyresene", label: "Nevyřešené" },
|
|
69
69
|
{ id: "vyresene", label: "Vyřešené" },
|
|
70
70
|
];
|
|
71
|
+
const e2ePartialOptions = [
|
|
72
|
+
{ id: "otevrene", label: "Otevřené (5)" },
|
|
73
|
+
{ id: "uzavrene", label: "Uzavřené (12)" },
|
|
74
|
+
];
|
|
71
75
|
function OnlyForE2ETests() {
|
|
72
76
|
const [value, setValue] = (0, react_1.useState)(null);
|
|
73
|
-
|
|
77
|
+
const [partialValue, setPartialValue] = (0, react_1.useState)(null);
|
|
78
|
+
return (react_1.default.createElement("div", { className: "space-y-4 p-8" },
|
|
74
79
|
react_1.default.createElement(index_1.RadioGroup, { id: "stav", label: "Stav", name: "stav", onChange: setValue, options: e2eOptions, value: value }),
|
|
75
|
-
value !== null && react_1.default.createElement("div", { "data-testid": "selected-value" }, value)
|
|
80
|
+
value !== null && react_1.default.createElement("div", { "data-testid": "selected-value" }, value),
|
|
81
|
+
react_1.default.createElement(index_1.RadioGroup, { id: "stav-partial", label: "Stav (partial)", name: "stav-partial", onChange: setPartialValue, options: e2ePartialOptions, value: partialValue }),
|
|
82
|
+
partialValue !== null && react_1.default.createElement("div", { "data-testid": "selected-partial-value" }, partialValue)));
|
|
76
83
|
}
|
package/select/select.stories.js
CHANGED
|
@@ -85,11 +85,18 @@ const e2eOptions = [
|
|
|
85
85
|
{ id: "nevyresene", label: "Nevyřešené" },
|
|
86
86
|
{ id: "vyresene", label: "Vyřešené" },
|
|
87
87
|
];
|
|
88
|
+
const e2ePartialOptions = [
|
|
89
|
+
{ id: "otevrene", label: "Otevřené (5)" },
|
|
90
|
+
{ id: "uzavrene", label: "Uzavřené (12)" },
|
|
91
|
+
];
|
|
88
92
|
function OnlyForE2ETests() {
|
|
89
93
|
const [value, setValue] = (0, react_1.useState)(null);
|
|
90
|
-
|
|
94
|
+
const [partialValue, setPartialValue] = (0, react_1.useState)(null);
|
|
95
|
+
return (react_1.default.createElement("div", { className: "space-y-4 p-8" },
|
|
91
96
|
react_1.default.createElement(index_1.Select, { label: "Stav", name: "stav", onChange: setValue, options: e2eOptions, placeholder: "Vyberte...", value: value }),
|
|
92
|
-
value !== null && react_1.default.createElement("div", { "data-testid": "selected-value" }, String(value))
|
|
97
|
+
value !== null && react_1.default.createElement("div", { "data-testid": "selected-value" }, String(value)),
|
|
98
|
+
react_1.default.createElement(index_1.Select, { label: "Stav (partial)", name: "stav-partial", onChange: setPartialValue, options: e2ePartialOptions, placeholder: "Vyberte...", value: partialValue }),
|
|
99
|
+
partialValue !== null && react_1.default.createElement("div", { "data-testid": "selected-partial-value" }, String(partialValue))));
|
|
93
100
|
}
|
|
94
101
|
function ComponentStructure() {
|
|
95
102
|
const [value, onChange] = (0, react_1.useState)(null);
|