Spaces:
Sleeping
Sleeping
Download frontend/node_modules/@mui/system/esm/createBox.js from sepidnes/pythonic-rag-FastAPIReact: direct link, hf CLI and curl.
- Browser
- Download file 1.38 kB
-
https://huggingface.co/spaces/sepidnes/pythonic-rag-FastAPIReact/resolve/56fda741e84da791ee2e6198479f1d5630989f6c/frontend/node_modules/%40mui/system/esm/createBox.js
- Command line
-
hf download hf://spaces/sepidnes/pythonic-rag-FastAPIReact@56fda741e84da791ee2e6198479f1d5630989f6c/frontend/node_modules/@mui/system/esm/createBox.js
-
curl -L -o createBox.js https://huggingface.co/spaces/sepidnes/pythonic-rag-FastAPIReact/resolve/56fda741e84da791ee2e6198479f1d5630989f6c/frontend/node_modules/%40mui/system/esm/createBox.js
1.38 kB
| 'use client'; | |
| import _extends from "@babel/runtime/helpers/esm/extends"; | |
| import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; | |
| const _excluded = ["className", "component"]; | |
| import * as React from 'react'; | |
| import clsx from 'clsx'; | |
| import styled from '@mui/styled-engine'; | |
| import styleFunctionSx, { extendSxProp } from './styleFunctionSx'; | |
| import useTheme from './useTheme'; | |
| import { jsx as _jsx } from "react/jsx-runtime"; | |
| export default function createBox(options = {}) { | |
| const { | |
| themeId, | |
| defaultTheme, | |
| defaultClassName = 'MuiBox-root', | |
| generateClassName | |
| } = options; | |
| const BoxRoot = styled('div', { | |
| shouldForwardProp: prop => prop !== 'theme' && prop !== 'sx' && prop !== 'as' | |
| })(styleFunctionSx); | |
| const Box = /*#__PURE__*/React.forwardRef(function Box(inProps, ref) { | |
| const theme = useTheme(defaultTheme); | |
| const _extendSxProp = extendSxProp(inProps), | |
| { | |
| className, | |
| component = 'div' | |
| } = _extendSxProp, | |
| other = _objectWithoutPropertiesLoose(_extendSxProp, _excluded); | |
| return /*#__PURE__*/_jsx(BoxRoot, _extends({ | |
| as: component, | |
| ref: ref, | |
| className: clsx(className, generateClassName ? generateClassName(defaultClassName) : defaultClassName), | |
| theme: themeId ? theme[themeId] || theme : theme | |
| }, other)); | |
| }); | |
| return Box; | |
| } |