UNPKG

@worktif/purei

Version:

Work TIF Material UI Theme Provider and Customization Suite for React applications with dark mode support and dynamic color schemes

42 lines 1.64 kB
"use strict"; /* * Work TIF, Raman Marozau. * All rights reserved. * Copyright(c), 2025-present. * * Business Source License 1.1 * * Copyright (C) 2025 Raman Marozau, raman@worktif.com * Use of this software is governed by the Business Source License included in the LICENSE file and at www.mariadb.com/bsl11. * * Change Date: Never * On the date above, in accordance with the Business Source License, use of this software will be governed by the open source license specified in the LICENSE file. * Additional Use Grant: Free for personal and non-commercial research use only. * * * SPDX-License-Identifier: BUSL-1.1 */ Object.defineProperty(exports, "__esModule", { value: true }); exports.SnackbarTip = void 0; const material_1 = require("@mui/material"); /** * SnackbarTip is a styled component based on the Material-UI Snackbar component. * It customizes the appearance of the Snackbar by overriding the default styles. * * Custom Styles: * - Removes horizontal padding by setting both `paddingLeft` and `paddingRight` to `0px !important`. * - Modifies styles for the `.MuiPaper-root` class inside the Snackbar: * - Sets the width to `100% !important`. * - Ensures a minimum width of `100px !important`. * * This component can be used in place of a standard Snackbar where the specified styling is required. */ exports.SnackbarTip = (0, material_1.styled)(material_1.Snackbar)(() => ({ paddingLeft: "0px !important", paddingRight: "0px !important", "& .MuiPaper-root": { width: "100% !important", minWidth: "100px !important", }, })); //# sourceMappingURL=index.js.map