@uxf/ui 11.113.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/avatar-file-input/avatar-file-input.stories.js +0 -2
- package/button/button.stories.js +0 -2
- package/button-group/button-group.stories.js +0 -1
- package/button-list/button-list.js +1 -1
- package/button-list/button-list.stories.js +0 -6
- package/date-picker/date-picker-content.js +0 -1
- package/date-range-picker/date-range-picker-content.js +0 -1
- package/dropdown/dropdown.js +0 -1
- package/file-input/file-input.stories.js +0 -1
- package/icon-button/icon-button.js +0 -1
- package/icon-button/icon-button.stories.js +0 -1
- package/input/input.js +1 -0
- package/list-item/list-item.js +0 -1
- package/list-item/list-item.stories.js +0 -1
- package/message/message.stories.js +0 -3
- package/multi-combobox/multi-combobox.stories.js +0 -2
- package/multi-select/multi-select.stories.js +0 -1
- package/package.json +11 -11
- package/select/select.stories.js +0 -1
- package/text-input/text-input.stories.d.ts +1 -1
- package/text-input/text-input.stories.js +13 -9
- package/text-link/text-link.js +0 -1
- package/text-link/text-link.stories.js +0 -1
- package/time-picker/time-picker-hour.js +0 -1
- package/time-picker/time-picker-minute.js +0 -1
|
@@ -42,13 +42,11 @@ function Default() {
|
|
|
42
42
|
const [value, setValue] = (0, react_1.useState)(null);
|
|
43
43
|
const onChange = (0, action_1.action)("onChange", (v) => {
|
|
44
44
|
return new Promise(() => {
|
|
45
|
-
// eslint-disable-next-line no-console
|
|
46
45
|
console.log("Changed:", v);
|
|
47
46
|
setValue(v);
|
|
48
47
|
});
|
|
49
48
|
});
|
|
50
49
|
const onUploadError = (err) => {
|
|
51
|
-
// eslint-disable-next-line no-console
|
|
52
50
|
console.log("Upload error", err);
|
|
53
51
|
};
|
|
54
52
|
return (react_1.default.createElement("div", { className: "space-y-4 p-20" },
|
package/button/button.stories.js
CHANGED
|
@@ -45,7 +45,6 @@ function Basic() {
|
|
|
45
45
|
const [isDisabled, setIsDisabled] = (0, react_1.useState)(false);
|
|
46
46
|
const [isLoading, setIsLoading] = (0, react_1.useState)(false);
|
|
47
47
|
const config = (0, storybook_config_1.useStorybookConfig)("Button");
|
|
48
|
-
// eslint-disable-next-line no-console
|
|
49
48
|
const onClick = console.log;
|
|
50
49
|
const gridColumnsCount = config.variants.length * config.sizes.length + 1;
|
|
51
50
|
const gridTemplateColumns = `repeat(${gridColumnsCount}, 180px)`;
|
|
@@ -73,7 +72,6 @@ function Basic() {
|
|
|
73
72
|
}
|
|
74
73
|
function Default() {
|
|
75
74
|
const config = (0, storybook_config_1.useStorybookConfig)("Button");
|
|
76
|
-
// eslint-disable-next-line no-console
|
|
77
75
|
const onClick = console.log;
|
|
78
76
|
return (react_1.default.createElement("div", { className: "space-y-2 p-20" }, config.variants.map((variant) => (react_1.default.createElement(react_1.Fragment, { key: variant }, config.colors.map((color) => (react_1.default.createElement(react_1.Fragment, { key: color }, config.sizes.map((size) => (react_1.default.createElement("div", { className: "space-y-2 pb-4", key: `${size}${color}${variant}` },
|
|
79
77
|
react_1.default.createElement("div", { className: "text-sm dark:text-gray-100" },
|
|
@@ -10,7 +10,6 @@ const icon_1 = require("../icon");
|
|
|
10
10
|
const tooltip_1 = require("../tooltip");
|
|
11
11
|
const index_1 = require("./index");
|
|
12
12
|
function Default() {
|
|
13
|
-
// eslint-disable-next-line no-console
|
|
14
13
|
const onClick = console.log;
|
|
15
14
|
const component = (react_1.default.createElement(react_1.default.Fragment, null,
|
|
16
15
|
react_1.default.createElement(index_1.ButtonGroup, null,
|
|
@@ -46,7 +46,7 @@ const button_1 = require("../button");
|
|
|
46
46
|
const use_dropdown_1 = require("../hooks/use-dropdown");
|
|
47
47
|
const icon_1 = require("../icon");
|
|
48
48
|
const MenuButton = (0, react_3.forwardRef)((props, ref) => {
|
|
49
|
-
// eslint-disable-next-line
|
|
49
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
50
50
|
const { as = "a", variant, color, isIconButton, isFullWidth, size, icon, label, className, ...restProps } = props;
|
|
51
51
|
const Component = as;
|
|
52
52
|
const anchorProps = (0, use_anchor_props_1.useAnchorProps)({
|
|
@@ -30,27 +30,21 @@ function Default() {
|
|
|
30
30
|
], variant: "secondary", visibleButtonsCount: 4 }),
|
|
31
31
|
react_1.default.createElement(index_1.ButtonList, { buttons: [
|
|
32
32
|
{ label: "IconButton", isIconButton: true, icon: "camera" },
|
|
33
|
-
// eslint-disable-next-line no-console
|
|
34
33
|
{ label: "First item", onClick: console.log },
|
|
35
34
|
{ label: "Second item", color: "positive" },
|
|
36
35
|
{ label: "Third item" },
|
|
37
|
-
// eslint-disable-next-line no-console
|
|
38
36
|
{ label: "Fourth item", onClick: console.log },
|
|
39
37
|
], visibleButtonsCount: 3 }),
|
|
40
38
|
react_1.default.createElement(index_1.ButtonList, { buttons: [
|
|
41
|
-
// eslint-disable-next-line no-console
|
|
42
39
|
{ icon: "check", label: "First item", onClick: console.log },
|
|
43
40
|
{ icon: "user", label: "Second item", color: "positive" },
|
|
44
41
|
{ icon: "cloud", label: "Third item" },
|
|
45
|
-
// eslint-disable-next-line no-console
|
|
46
42
|
{ icon: "xmarkLarge", label: "Fourth item", onClick: console.log },
|
|
47
43
|
], color: "negative", openButton: empty_object_1.EMPTY_OBJECT, size: "sm", variant: "secondary", visibleButtonsCount: 1 }),
|
|
48
44
|
react_1.default.createElement(index_1.ButtonList, { buttons: [
|
|
49
|
-
// eslint-disable-next-line no-console
|
|
50
45
|
{ icon: "check", label: "First item", onClick: console.log, color: "negative" },
|
|
51
46
|
{ icon: "user", label: "Second item", color: "positive", size: "default" },
|
|
52
47
|
{ icon: "cloud", label: "Third item" },
|
|
53
|
-
// eslint-disable-next-line no-console
|
|
54
48
|
{ icon: "xmarkLarge", label: "Fourth item", onClick: console.log },
|
|
55
49
|
], color: "positive", openButton: { variant: "secondary", color: "default" }, size: "sm", visibleButtonsCount: 3 })));
|
|
56
50
|
return (react_1.default.createElement("div", { className: "flex flex-col lg:flex-row" },
|
|
@@ -40,7 +40,6 @@ const date_picker_decade_1 = require("./date-picker-decade");
|
|
|
40
40
|
const date_picker_month_1 = require("./date-picker-month");
|
|
41
41
|
const date_picker_year_1 = require("./date-picker-year");
|
|
42
42
|
const DatePickerContent = (props) => {
|
|
43
|
-
// eslint-disable-next-line react/destructuring-assignment
|
|
44
43
|
const { goToDate, activeMonths } = (0, react_1.useContext)(date_picker_context_1.DatePickerContext);
|
|
45
44
|
const onMonthChange = props.onMonthChange;
|
|
46
45
|
const [viewMode, setViewMode] = (0, react_1.useState)("month");
|
|
@@ -40,7 +40,6 @@ const date_range_picker_decade_1 = require("./date-range-picker-decade");
|
|
|
40
40
|
const date_range_picker_month_1 = require("./date-range-picker-month");
|
|
41
41
|
const date_range_picker_year_1 = require("./date-range-picker-year");
|
|
42
42
|
const DateRangePickerContent = (props) => {
|
|
43
|
-
// eslint-disable-next-line react/destructuring-assignment
|
|
44
43
|
const { goToDate, activeMonths } = (0, react_1.useContext)(date_range_picker_context_1.DateRangePickerContext);
|
|
45
44
|
const [viewMode, setViewMode] = (0, react_1.useState)("month");
|
|
46
45
|
const onYearSelect = (0, react_1.useCallback)(() => setViewMode("decade"), [setViewMode]);
|
package/dropdown/dropdown.js
CHANGED
|
@@ -39,7 +39,6 @@ const use_anchor_props_1 = require("@uxf/core-react/clickable/use-anchor-props")
|
|
|
39
39
|
const cx_1 = require("@uxf/core/utils/cx");
|
|
40
40
|
const react_1 = __importStar(require("react"));
|
|
41
41
|
const Item = (0, react_1.forwardRef)((props, ref) => {
|
|
42
|
-
// eslint-disable-next-line react/destructuring-assignment
|
|
43
42
|
const { as = "a", children, className, ...restProps } = props;
|
|
44
43
|
const Component = as;
|
|
45
44
|
const anchorProps = (0, use_anchor_props_1.useAnchorProps)({
|
|
@@ -42,7 +42,6 @@ function Default() {
|
|
|
42
42
|
const [value, setValue] = (0, react_1.useState)(null);
|
|
43
43
|
const onChange = (0, action_1.action)("onChange", setValue);
|
|
44
44
|
const onUploadError = (err) => {
|
|
45
|
-
// eslint-disable-next-line no-console
|
|
46
45
|
console.log("Upload error", err);
|
|
47
46
|
};
|
|
48
47
|
return (react_1.default.createElement("div", { className: "max-w-screen-sm space-y-2 p-20" },
|
|
@@ -38,7 +38,6 @@ const button_1 = require("@uxf/ui/button");
|
|
|
38
38
|
const icon_1 = require("@uxf/ui/icon");
|
|
39
39
|
const react_1 = __importStar(require("react"));
|
|
40
40
|
exports.IconButton = (0, react_1.forwardRef)((props, ref) => {
|
|
41
|
-
// eslint-disable-next-line react/destructuring-assignment
|
|
42
41
|
const { className, iconName, iconSize, label, ...buttonProps } = props;
|
|
43
42
|
return (react_1.default.createElement(button_1.Button, { className: `uxf-icon-button ${className !== null && className !== void 0 ? className : ""}`, ref: ref, ...buttonProps },
|
|
44
43
|
react_1.default.createElement(icon_1.Icon, { "aria-label": label, name: iconName, size: iconSize })));
|
|
@@ -42,7 +42,6 @@ function Default() {
|
|
|
42
42
|
const [isDisabled, setIsDisabled] = (0, react_1.useState)(false);
|
|
43
43
|
const [isLoading, setIsLoading] = (0, react_1.useState)(false);
|
|
44
44
|
const config = (0, storybook_config_1.useStorybookConfig)("IconButton");
|
|
45
|
-
// eslint-disable-next-line no-console
|
|
46
45
|
const onClick = console.log;
|
|
47
46
|
const gridColumnsCount = config.variants.length * config.sizes.length + 1;
|
|
48
47
|
const gridTemplateColumns = `repeat(${gridColumnsCount}, 100px)`;
|
package/input/input.js
CHANGED
|
@@ -48,6 +48,7 @@ function getChildrenById(children, componentName) {
|
|
|
48
48
|
.filter(react_1.isValidElement)
|
|
49
49
|
.find((ch) => ch.type.displayName === componentName);
|
|
50
50
|
}
|
|
51
|
+
// eslint-disable-next-line complexity
|
|
51
52
|
exports.Input = (0, react_1.forwardRef)((props, ref) => {
|
|
52
53
|
var _a, _b;
|
|
53
54
|
const innerInputRef = (0, react_1.useRef)(null);
|
package/list-item/list-item.js
CHANGED
|
@@ -39,7 +39,6 @@ const cx_1 = require("@uxf/core/utils/cx");
|
|
|
39
39
|
const react_1 = __importStar(require("react"));
|
|
40
40
|
const icon_1 = require("../icon");
|
|
41
41
|
exports.ListItem = (0, react_1.forwardRef)((props, ref) => {
|
|
42
|
-
// eslint-disable-next-line react/destructuring-assignment
|
|
43
42
|
const { as = "a", className, children, endElement, endIcon, ...restProps } = props;
|
|
44
43
|
const Component = as;
|
|
45
44
|
const anchorProps = (0, use_anchor_props_1.useAnchorProps)({
|
|
@@ -8,7 +8,6 @@ const react_1 = __importDefault(require("react"));
|
|
|
8
8
|
const icon_1 = require("../icon");
|
|
9
9
|
const index_1 = require("./index");
|
|
10
10
|
function Default() {
|
|
11
|
-
// eslint-disable-next-line no-console
|
|
12
11
|
const onClick = console.log;
|
|
13
12
|
const storyListItem = (react_1.default.createElement("div", { className: "dark:text-white" },
|
|
14
13
|
react_1.default.createElement(index_1.ListItem, { endIcon: "chevronRight", onClick: onClick }, "Jm\u00E9no p\u0159\u00EDjmen\u00ED"),
|
|
@@ -15,7 +15,6 @@ const getConfirmForSize = (variant, colors) => {
|
|
|
15
15
|
cancelLabel: "Zrušit",
|
|
16
16
|
title: "Title",
|
|
17
17
|
description: "Description",
|
|
18
|
-
/* eslint-disable no-console */
|
|
19
18
|
onAccept: () => console.log("accepted"),
|
|
20
19
|
onCancel: () => console.log("canceled"),
|
|
21
20
|
color,
|
|
@@ -30,7 +29,6 @@ const getConfirmForSize = (variant, colors) => {
|
|
|
30
29
|
cancelLabel: "Rozumím",
|
|
31
30
|
title: "Title",
|
|
32
31
|
description: "Description",
|
|
33
|
-
/* eslint-disable no-console */
|
|
34
32
|
onCancel: () => console.log("canceled"),
|
|
35
33
|
color,
|
|
36
34
|
variant,
|
|
@@ -46,7 +44,6 @@ const getConfirmForSize = (variant, colors) => {
|
|
|
46
44
|
cancelLabel: "Zrušit",
|
|
47
45
|
title: "Title",
|
|
48
46
|
description: "Description",
|
|
49
|
-
/* eslint-disable no-console */
|
|
50
47
|
onAccept: () => console.log("accepted"),
|
|
51
48
|
onCancel: () => console.log("canceled"),
|
|
52
49
|
color,
|
|
@@ -55,7 +55,6 @@ const options = [
|
|
|
55
55
|
function Default() {
|
|
56
56
|
const [value, setValue] = (0, react_1.useState)(null);
|
|
57
57
|
const onChange = (0, action_1.action)("onChange", (v) => {
|
|
58
|
-
// eslint-disable-next-line no-console
|
|
59
58
|
console.log("Select values: ", v);
|
|
60
59
|
setValue(v);
|
|
61
60
|
});
|
|
@@ -72,7 +71,6 @@ function Default() {
|
|
|
72
71
|
function Async() {
|
|
73
72
|
const [value, setValue] = (0, react_1.useState)(null);
|
|
74
73
|
const onChange = (0, action_1.action)("onChange", (v) => {
|
|
75
|
-
// eslint-disable-next-line no-console
|
|
76
74
|
console.log("Select values: ", v);
|
|
77
75
|
setValue(v);
|
|
78
76
|
});
|
|
@@ -54,7 +54,6 @@ const options = [
|
|
|
54
54
|
function Default() {
|
|
55
55
|
const [value, setValue] = (0, react_1.useState)(null);
|
|
56
56
|
const onChange = (0, action_1.action)("onChange", (v) => {
|
|
57
|
-
// eslint-disable-next-line no-console
|
|
58
57
|
console.log("Select values: ", v);
|
|
59
58
|
setValue(v);
|
|
60
59
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uxf/ui",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.115.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"@floating-ui/react": "^0.27.17",
|
|
25
25
|
"@headlessui/react": "1.7.19",
|
|
26
|
-
"@uxf/core": "11.
|
|
27
|
-
"@uxf/core-react": "11.
|
|
28
|
-
"@uxf/datepicker": "11.
|
|
29
|
-
"@uxf/localize": "11.
|
|
30
|
-
"@uxf/styles": "11.
|
|
26
|
+
"@uxf/core": "11.114.0",
|
|
27
|
+
"@uxf/core-react": "11.114.0",
|
|
28
|
+
"@uxf/datepicker": "11.114.0",
|
|
29
|
+
"@uxf/localize": "11.114.0",
|
|
30
|
+
"@uxf/styles": "11.114.0",
|
|
31
31
|
"dayjs": "^1.11.19",
|
|
32
32
|
"react": ">= 18.2.0",
|
|
33
33
|
"react-dom": ">= 18.2.0",
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
"@types/node": "24",
|
|
40
40
|
"@types/react": "18.3.27",
|
|
41
41
|
"@types/react-dom": "18.3.7",
|
|
42
|
-
"@uxf/core": "11.
|
|
43
|
-
"@uxf/core-react": "11.
|
|
44
|
-
"@uxf/datepicker": "11.
|
|
45
|
-
"@uxf/localize": "11.
|
|
46
|
-
"@uxf/styles": "11.
|
|
42
|
+
"@uxf/core": "11.114.0",
|
|
43
|
+
"@uxf/core-react": "11.114.0",
|
|
44
|
+
"@uxf/datepicker": "11.114.0",
|
|
45
|
+
"@uxf/localize": "11.114.0",
|
|
46
|
+
"@uxf/styles": "11.114.0",
|
|
47
47
|
"dayjs": "^1.11.19",
|
|
48
48
|
"react-dropzone": "^14.4.0"
|
|
49
49
|
}
|
package/select/select.stories.js
CHANGED
|
@@ -57,7 +57,6 @@ const options = [
|
|
|
57
57
|
function Default() {
|
|
58
58
|
const [value, setValue] = (0, react_1.useState)(null);
|
|
59
59
|
const onChange = (0, action_1.action)("onChange", (v) => {
|
|
60
|
-
// eslint-disable-next-line no-console
|
|
61
60
|
console.log("Select value: ", v);
|
|
62
61
|
setValue(v);
|
|
63
62
|
});
|
|
@@ -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
|
}
|
package/text-link/text-link.js
CHANGED
|
@@ -39,7 +39,6 @@ const use_anchor_props_1 = require("@uxf/core-react/clickable/use-anchor-props")
|
|
|
39
39
|
const cx_1 = require("@uxf/core/utils/cx");
|
|
40
40
|
const react_1 = __importStar(require("react"));
|
|
41
41
|
exports.TextLink = (0, react_1.forwardRef)((props, ref) => {
|
|
42
|
-
// eslint-disable-next-line react/destructuring-assignment
|
|
43
42
|
const { as = "a", className, children, variant, ...restProps } = props;
|
|
44
43
|
const Component = as;
|
|
45
44
|
const anchorProps = (0, use_anchor_props_1.useAnchorProps)({
|
|
@@ -7,7 +7,6 @@ exports.Default = Default;
|
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const index_1 = require("./index");
|
|
9
9
|
function Default() {
|
|
10
|
-
// eslint-disable-next-line no-console
|
|
11
10
|
const onClick = console.log;
|
|
12
11
|
return (react_1.default.createElement("div", { className: "flex" },
|
|
13
12
|
react_1.default.createElement("div", { className: "flex gap-4 p-20" },
|
|
@@ -41,7 +41,6 @@ const use_hour_1 = require("@uxf/datepicker/hooks/use-hour");
|
|
|
41
41
|
const react_1 = __importStar(require("react"));
|
|
42
42
|
const TimePickerHour = (props) => {
|
|
43
43
|
const hourRef = (0, react_1.useRef)(null);
|
|
44
|
-
// eslint-disable-next-line react/destructuring-assignment
|
|
45
44
|
const { focusedHour, isHourFocused, isHourSelected, onHourSelect, onHourFocus, preventScroll } = (0, react_1.useContext)(time_picker_context_1.TimePickerContext);
|
|
46
45
|
const { onClick, onKeyDown, tabIndex, isSelected } = (0, use_hour_1.useHour)({
|
|
47
46
|
hour: props.hour,
|
|
@@ -41,7 +41,6 @@ const use_minute_1 = require("@uxf/datepicker/hooks/use-minute");
|
|
|
41
41
|
const react_1 = __importStar(require("react"));
|
|
42
42
|
const TimePickerMinute = (props) => {
|
|
43
43
|
const minuteRef = (0, react_1.useRef)(null);
|
|
44
|
-
// eslint-disable-next-line react/destructuring-assignment
|
|
45
44
|
const { focusedMinute, isMinuteFocused, isMinuteSelected, onMinuteSelect, onMinuteFocus, preventScroll } = (0, react_1.useContext)(time_picker_context_1.TimePickerContext);
|
|
46
45
|
const { isSelected, onClick, onKeyDown, tabIndex } = (0, use_minute_1.useMinute)({
|
|
47
46
|
minute: props.minute,
|