REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 2.17 KB
Close
//proc/thread-self/root/home/byroehnu/.trash/node_modules11/@adminjs/design-system/build/atoms/box/box.js
Text
Base64
import { space, color, layout, flexbox, border, position, variant, grid, shadow, borderRadius } from 'styled-system'; import { styled } from "../../../build/utils/styled.js"; import { cssClass } from "../../utils/css-class.js"; /** * @load ./box-props.doc.md * @memberof Box * @alias BoxProps * @property {string} [...] Other props from {@link SpaceProps}, {@link ColorProps}, * {@link LayoutProps}, {@link FlexboxProps}, * {@link PositionProps} and {@link BorderProps}. */ const variants = variant({ variants: { grey: { flexGrow: 1, bg: 'bg', py: 'xl', px: ['0', 'xl'], className: cssClass(['Box', 'Box_Grey']) }, container: { flexGrow: 1, bg: 'container', py: 'xl', px: ['0', 'xl'], className: cssClass(['Box', 'Box_Container']), borderRadius: 8 }, white: { px: ['default', 'xxl'], py: 'xxl', bg: 'white', className: cssClass(['Box', 'Box_White']) }, card: { p: 'xxl', bg: 'white', className: cssClass(['Box', 'Box_Card']), boxShadow: 'card' }, transparent: { px: ['default', 'xxl'], py: 'xxl', bg: 'transparent', className: cssClass(['Box', 'Box_Transparent']) } } }); /** * @load ./box.doc.md * @hideconstructor * @component * @subcategory Atoms * @section design-system * @see BoxProps * @see {@link https://storybook.adminjs.co/?path=/story/designsystem-atoms-box--simple-white-gray-wrapper StoryBook} */ const Box = styled.section` box-sizing: border-box; min-width: 0; ${({ flex }) => flex && typeof flex === 'boolean' ? 'display: flex;' : ''} font-family: ${({ theme }) => theme.font}; line-height: ${({ theme }) => theme.lineHeights.default}; font-size: ${({ theme }) => theme.fontSizes.default}; font-weight: normal; ${({ animate }) => animate ? 'transition: all 500ms;' : ''}; ${space}; ${color}; ${layout}; ${flexbox}; ${grid}; ${border}; ${borderRadius} ${shadow}; ${position}; ${variants}; `; Box.defaultProps = { className: cssClass('Box') }; Box.displayName = 'Box'; export { Box }; export default Box;
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 5
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
box-props.doc.md
324 B
lrw-r--r--
2026-02-28 00:31:38
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
box.doc.md
1.60 KB
lrw-r--r--
2026-02-28 00:31:38
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
box.js
2.17 KB
lrw-r--r--
2026-02-28 00:28:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
box.stories.js
1.27 KB
lrw-r--r--
2026-02-28 00:28:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.js
25 B
lrw-r--r--
2026-02-28 00:31:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).