var __rest = (this && this.__rest) || function (s, e) {
    var t = {};
    for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
        t[p] = s[p];
    if (s != null && typeof Object.getOwnPropertySymbols === "function")
        for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
            if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
                t[p[i]] = s[p[i]];
        }
    return t;
};
import React from 'react';
import { makeStyles } from '@material-ui/core';
import PropTypes from 'prop-types';
const useStyles = makeStyles((theme) => ({
    // Style for the time input box with transparent background  
    timeInput: {
        borderRadius: 2, // Rounded corners with a radius of 2px  
        height: 32,
        padding: theme.spacing(1), // Padding inside the input box, typically 8px if default theme spacing is used  
        margin: theme.spacing(1), // Margin outside the input box to create space around the element  
        fontSize: 14, // Font size of 14px for the text inside the input  
        border: '1px solid #ced4da', // Border of 1px solid grey, matching old Material-UI grey  
        backgroundColor: 'transparent',
        '&:focus': {
            borderColor: theme.palette.primary.main, // Border color changes to primary color when the input is focused  
            outline: 'none', // Removes the default browser outline on focus  
        },
    },
}));
export const UdpTimeSelector = (props) => {
    const classes = useStyles();
    const { id, label } = props, otherProps = __rest(props, ["id", "label"]);
    return (React.createElement("label", { htmlFor: id, className: classes.labelRoot }, label, React.createElement("input", Object.assign({ type: "time", id: id, udprecordid: "udpRecord-FluentTimePicker-" + id, className: classes.timeInput }, otherProps))));
};
UdpTimeSelector.propTypes = {
    /**
     * Label for the time input
     */
    label: PropTypes.string,
    /**
     * Id for the time input
     */
    id: PropTypes.string,
};
export default UdpTimeSelector;
//# sourceMappingURL=UdpTimeSelector.js.map