Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ag.ds-next/box

Package Overview
Dependencies
Maintainers
3
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ag.ds-next/box - npm Package Compare versions

Comparing version 6.0.0 to 6.1.0

docs/code.mdx

16

CHANGELOG.md
# @ag.ds-next/box
## 6.1.0
### Minor Changes
- 46eea44f4: Add support for `columnGap` and `rowGap` props
### Patch Changes
- 0f76d269a: Update documentation
- 042fb9e8c: Added `@babel/runtime` as a package dependency.
- Updated dependencies [d43864f0e]
- Updated dependencies [27b6ef36b]
- Updated dependencies [b67fa1685]
- Updated dependencies [042fb9e8c]
- @ag.ds-next/core@3.0.1
## 6.0.0

@@ -4,0 +20,0 @@

495

dist/ag.ds-next-box.cjs.dev.js

@@ -5,10 +5,19 @@ 'use strict';

var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
var react = require('@emotion/react');
var core = require('@ag.ds-next/core');
var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
var jsxRuntime = require('@emotion/react/jsx-runtime');
function paletteStyles({
palette,
dark,
light
}) {
var _excluded$3 = ["palette", "dark", "light", "color", "background", "border", "borderWidth", "borderColor", "borderLeft", "borderLeftWidth", "borderRight", "borderRightWidth", "borderTop", "borderTopWidth", "borderBottom", "borderBottomWidth", "borderX", "borderY", "rounded", "display", "flexDirection", "flexWrap", "flexGrow", "flexShrink", "justifyContent", "alignItems", "gap", "columnGap", "rowGap", "width", "minWidth", "maxWidth", "height", "minHeight", "maxHeight", "paddingTop", "paddingBottom", "paddingRight", "paddingLeft", "paddingX", "paddingY", "padding", "fontWeight", "fontFamily", "fontSize", "focus", "link", "lineHeight"];
function ownKeys$3(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$3(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$3(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
function paletteStyles(_ref) {
var palette = _ref.palette,
dark = _ref.dark,
light = _ref.light;
if (palette) return core.boxPalettes[palette];

@@ -19,3 +28,3 @@ if (dark) return core.boxPalettes.dark;

const foregroundColorMap = {
var foregroundColorMap = {
text: core.boxPalette.foregroundText,

@@ -32,3 +41,3 @@ action: core.boxPalette.foregroundAction,

};
const backgroundColorMap = {
var backgroundColorMap = {
body: core.boxPalette.backgroundBody,

@@ -40,23 +49,29 @@ shade: core.boxPalette.backgroundShade,

function colorStyles({
color,
background
}) {
function colorStyles(_ref2) {
var color = _ref2.color,
background = _ref2.background;
return {
color: color ? core.mapResponsiveProp(color, t => foregroundColorMap[t]) : undefined,
backgroundColor: background ? core.mapResponsiveProp(background, t => backgroundColorMap[t]) : undefined
color: color ? core.mapResponsiveProp(color, function (t) {
return foregroundColorMap[t];
}) : undefined,
backgroundColor: background ? core.mapResponsiveProp(background, function (t) {
return backgroundColorMap[t];
}) : undefined
};
}
function typographyStyles({
fontWeight,
fontFamily,
fontSize: _fontSize,
lineHeight: _lineHeight = 'default'
}) {
const responsiveFontGrid = core.mapResponsiveProp(_fontSize, t => core.fontGrid(t, _lineHeight));
const {
fontSize,
lineHeight
} = responsiveFontGrid?.reduce((acc, entry, index) => {
function typographyStyles(_ref3) {
var _responsiveFontGrid$r;
var fontWeight = _ref3.fontWeight,
fontFamily = _ref3.fontFamily,
_fontSize = _ref3.fontSize,
_ref3$lineHeight = _ref3.lineHeight,
_lineHeight = _ref3$lineHeight === void 0 ? 'default' : _ref3$lineHeight;
var responsiveFontGrid = core.mapResponsiveProp(_fontSize, function (t) {
return core.fontGrid(t, _lineHeight);
});
var _ref4 = (_responsiveFontGrid$r = responsiveFontGrid === null || responsiveFontGrid === void 0 ? void 0 : responsiveFontGrid.reduce(function (acc, entry, index) {
acc.fontSize[index] = isEntry(entry) ? entry.fontSize : null;

@@ -68,11 +83,18 @@ acc.lineHeight[index] = isEntry(entry) ? entry.lineHeight : null;

lineHeight: []
}) ?? {
})) !== null && _responsiveFontGrid$r !== void 0 ? _responsiveFontGrid$r : {
fontSize: undefined,
lineHeight: undefined
};
},
fontSize = _ref4.fontSize,
lineHeight = _ref4.lineHeight;
return {
fontWeight: core.mapResponsiveProp(fontWeight, t => core.tokens.fontWeight[t]),
fontFamily: core.mapResponsiveProp(fontFamily, t => core.tokens.font[t]),
fontSize,
lineHeight,
fontWeight: core.mapResponsiveProp(fontWeight, function (t) {
return core.tokens.fontWeight[t];
}),
fontFamily: core.mapResponsiveProp(fontFamily, function (t) {
return core.tokens.font[t];
}),
fontSize: fontSize,
lineHeight: lineHeight,
'& ::selection': {

@@ -89,18 +111,19 @@ color: core.boxPalette.backgroundBody,

function layoutStyles({
display,
flexDirection,
flexWrap,
flexGrow,
flexShrink,
justifyContent,
alignItems,
gap,
width,
minWidth,
maxWidth,
height,
minHeight,
maxHeight
}) {
function layoutStyles(_ref5) {
var display = _ref5.display,
flexDirection = _ref5.flexDirection,
flexWrap = _ref5.flexWrap,
flexGrow = _ref5.flexGrow,
flexShrink = _ref5.flexShrink,
justifyContent = _ref5.justifyContent,
alignItems = _ref5.alignItems,
gap = _ref5.gap,
columnGap = _ref5.columnGap,
rowGap = _ref5.rowGap,
width = _ref5.width,
minWidth = _ref5.minWidth,
maxWidth = _ref5.maxWidth,
height = _ref5.height,
minHeight = _ref5.minHeight,
maxHeight = _ref5.maxHeight;
return {

@@ -115,2 +138,4 @@ display: core.mapResponsiveProp(display),

gap: core.mapResponsiveProp(gap, core.mapSpacing),
columnGap: core.mapResponsiveProp(columnGap, core.mapSpacing),
rowGap: core.mapResponsiveProp(rowGap, core.mapSpacing),
width: core.mapResponsiveProp(width),

@@ -125,3 +150,3 @@ minWidth: core.mapResponsiveProp(minWidth),

const borderColorMap = {
var borderColorMap = {
border: 'border',

@@ -131,25 +156,28 @@ muted: 'borderMuted'

function borderStyles({
border,
borderWidth = 'sm',
borderColor = 'border',
borderLeft,
borderLeftWidth,
borderRight,
borderRightWidth,
borderTop,
borderTopWidth,
borderBottom,
borderBottomWidth,
borderX,
borderY,
rounded
}) {
const anyBorder = border || borderLeft || borderRight || borderTop || borderBottom || borderX || borderY;
function borderStyles(_ref6) {
var _ref7, _ref8, _ref9, _ref10;
var border = _ref6.border,
_ref6$borderWidth = _ref6.borderWidth,
borderWidth = _ref6$borderWidth === void 0 ? 'sm' : _ref6$borderWidth,
_ref6$borderColor = _ref6.borderColor,
borderColor = _ref6$borderColor === void 0 ? 'border' : _ref6$borderColor,
borderLeft = _ref6.borderLeft,
borderLeftWidth = _ref6.borderLeftWidth,
borderRight = _ref6.borderRight,
borderRightWidth = _ref6.borderRightWidth,
borderTop = _ref6.borderTop,
borderTopWidth = _ref6.borderTopWidth,
borderBottom = _ref6.borderBottom,
borderBottomWidth = _ref6.borderBottomWidth,
borderX = _ref6.borderX,
borderY = _ref6.borderY,
rounded = _ref6.rounded;
var anyBorder = border || borderLeft || borderRight || borderTop || borderBottom || borderX || borderY;
return {
borderWidth: 0,
borderLeftWidth: border ?? borderX ?? borderLeft ? core.tokens.borderWidth[borderLeftWidth || borderWidth] : undefined,
borderRightWidth: border ?? borderX ?? borderRight ? core.tokens.borderWidth[borderRightWidth || borderWidth] : undefined,
borderTopWidth: border ?? borderY ?? borderTop ? core.tokens.borderWidth[borderTopWidth || borderWidth] : undefined,
borderBottomWidth: border ?? borderY ?? borderBottom ? core.tokens.borderWidth[borderBottomWidth || borderWidth] : undefined,
borderLeftWidth: ((_ref7 = border !== null && border !== void 0 ? border : borderX) !== null && _ref7 !== void 0 ? _ref7 : borderLeft) ? core.tokens.borderWidth[borderLeftWidth || borderWidth] : undefined,
borderRightWidth: ((_ref8 = border !== null && border !== void 0 ? border : borderX) !== null && _ref8 !== void 0 ? _ref8 : borderRight) ? core.tokens.borderWidth[borderRightWidth || borderWidth] : undefined,
borderTopWidth: ((_ref9 = border !== null && border !== void 0 ? border : borderY) !== null && _ref9 !== void 0 ? _ref9 : borderTop) ? core.tokens.borderWidth[borderTopWidth || borderWidth] : undefined,
borderBottomWidth: ((_ref10 = border !== null && border !== void 0 ? border : borderY) !== null && _ref10 !== void 0 ? _ref10 : borderBottom) ? core.tokens.borderWidth[borderBottomWidth || borderWidth] : undefined,
borderColor: anyBorder ? core.boxPalette[borderColorMap[borderColor]] : undefined,

@@ -162,20 +190,21 @@ borderStyle: anyBorder ? 'solid' : undefined,

// TODO: Explain how overlapping shorthands padding is applied.
function paddingStyles({
paddingTop,
paddingBottom,
paddingRight,
paddingLeft,
paddingX,
paddingY,
padding
}) {
function paddingStyles(_ref11) {
var _ref12, _ref13, _ref14, _ref15;
var paddingTop = _ref11.paddingTop,
paddingBottom = _ref11.paddingBottom,
paddingRight = _ref11.paddingRight,
paddingLeft = _ref11.paddingLeft,
paddingX = _ref11.paddingX,
paddingY = _ref11.paddingY,
padding = _ref11.padding;
return {
paddingTop: core.mapResponsiveProp(paddingTop ?? paddingY ?? padding, core.mapSpacing),
paddingBottom: core.mapResponsiveProp(paddingBottom ?? paddingY ?? padding, core.mapSpacing),
paddingRight: core.mapResponsiveProp(paddingRight ?? paddingX ?? padding, core.mapSpacing),
paddingLeft: core.mapResponsiveProp(paddingLeft ?? paddingX ?? padding, core.mapSpacing)
paddingTop: core.mapResponsiveProp((_ref12 = paddingTop !== null && paddingTop !== void 0 ? paddingTop : paddingY) !== null && _ref12 !== void 0 ? _ref12 : padding, core.mapSpacing),
paddingBottom: core.mapResponsiveProp((_ref13 = paddingBottom !== null && paddingBottom !== void 0 ? paddingBottom : paddingY) !== null && _ref13 !== void 0 ? _ref13 : padding, core.mapSpacing),
paddingRight: core.mapResponsiveProp((_ref14 = paddingRight !== null && paddingRight !== void 0 ? paddingRight : paddingX) !== null && _ref14 !== void 0 ? _ref14 : padding, core.mapSpacing),
paddingLeft: core.mapResponsiveProp((_ref15 = paddingLeft !== null && paddingLeft !== void 0 ? paddingLeft : paddingX) !== null && _ref15 !== void 0 ? _ref15 : padding, core.mapSpacing)
};
}
const linkStyles = { ...core.packs.underline,
var linkStyles = _objectSpread$3(_objectSpread$3({}, core.packs.underline), {}, {
color: core.boxPalette.foregroundAction,

@@ -193,4 +222,4 @@ cursor: 'pointer',

}
};
const focusStyles = {
});
var focusStyles = {
':focus': core.packs.outline,

@@ -201,55 +230,61 @@ '&::-moz-focus-inner': {

};
function boxStyles({
palette,
dark,
light,
color,
background,
border,
borderWidth,
borderColor,
borderLeft,
borderLeftWidth,
borderRight,
borderRightWidth,
borderTop,
borderTopWidth,
borderBottom,
borderBottomWidth,
borderX,
borderY,
rounded,
display,
flexDirection,
flexWrap,
flexGrow,
flexShrink,
justifyContent,
alignItems,
gap,
width,
minWidth,
maxWidth,
height,
minHeight,
maxHeight,
paddingTop,
paddingBottom,
paddingRight,
paddingLeft,
paddingX,
paddingY,
padding,
fontWeight,
fontFamily,
fontSize,
focus,
link,
lineHeight,
...restProps
}) {
return [/*#__PURE__*/react.css([paletteStyles({
palette,
dark,
light
function boxStyles(_ref16) {
var palette = _ref16.palette,
dark = _ref16.dark,
light = _ref16.light,
color = _ref16.color,
background = _ref16.background,
border = _ref16.border,
borderWidth = _ref16.borderWidth,
borderColor = _ref16.borderColor,
borderLeft = _ref16.borderLeft,
borderLeftWidth = _ref16.borderLeftWidth,
borderRight = _ref16.borderRight,
borderRightWidth = _ref16.borderRightWidth,
borderTop = _ref16.borderTop,
borderTopWidth = _ref16.borderTopWidth,
borderBottom = _ref16.borderBottom,
borderBottomWidth = _ref16.borderBottomWidth,
borderX = _ref16.borderX,
borderY = _ref16.borderY,
rounded = _ref16.rounded,
display = _ref16.display,
flexDirection = _ref16.flexDirection,
flexWrap = _ref16.flexWrap,
flexGrow = _ref16.flexGrow,
flexShrink = _ref16.flexShrink,
justifyContent = _ref16.justifyContent,
alignItems = _ref16.alignItems,
gap = _ref16.gap,
columnGap = _ref16.columnGap,
rowGap = _ref16.rowGap,
width = _ref16.width,
minWidth = _ref16.minWidth,
maxWidth = _ref16.maxWidth,
height = _ref16.height,
minHeight = _ref16.minHeight,
maxHeight = _ref16.maxHeight,
paddingTop = _ref16.paddingTop,
paddingBottom = _ref16.paddingBottom,
paddingRight = _ref16.paddingRight,
paddingLeft = _ref16.paddingLeft,
paddingX = _ref16.paddingX,
paddingY = _ref16.paddingY,
padding = _ref16.padding,
fontWeight = _ref16.fontWeight,
fontFamily = _ref16.fontFamily,
fontSize = _ref16.fontSize,
focus = _ref16.focus,
link = _ref16.link,
lineHeight = _ref16.lineHeight,
restProps = _objectWithoutProperties(_ref16, _excluded$3);
return [
/*#__PURE__*/
/*#__PURE__*/
react.css([paletteStyles({
palette: palette,
dark: dark,
light: light
}), // common resets

@@ -261,82 +296,69 @@ {

padding: 0
}, core.mq({ ...colorStyles({
background,
color
}),
...borderStyles({
border,
borderWidth,
borderColor,
borderLeft,
borderLeftWidth,
borderRight,
borderRightWidth,
borderTop,
borderTopWidth,
borderBottom,
borderBottomWidth,
borderX,
borderY,
rounded
}),
...layoutStyles({
display,
flexDirection,
flexWrap,
flexGrow,
flexShrink,
justifyContent,
alignItems,
gap,
width,
minWidth,
maxWidth,
height,
minHeight,
maxHeight
}),
...paddingStyles({
paddingTop,
paddingBottom,
paddingRight,
paddingLeft,
paddingX,
paddingY,
padding
}),
...typographyStyles({
fontWeight,
fontFamily,
fontSize,
lineHeight
}),
...(link ? linkStyles : undefined),
...(focus ? focusStyles : undefined)
})], process.env.NODE_ENV === "production" ? "" : ";label:boxStyles;", process.env.NODE_ENV === "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aHQsXG5cdFx0XHRcdFx0bWF4SGVpZ2h0LFxuXHRcdFx0XHR9KSxcblxuXHRcdFx0XHQuLi5wYWRkaW5nU3R5bGVzKHtcblx0XHRcdFx0XHRwYWRkaW5nVG9wLFxuXHRcdFx0XHRcdHBhZGRpbmdCb3R0b20sXG5cdFx0XHRcdFx0cGFkZGluZ1JpZ2h0LFxuXHRcdFx0XHRcdHBhZGRpbmdMZWZ0LFxuXHRcdFx0XHRcdHBhZGRpbmdYLFxuXHRcdFx0XHRcdHBhZGRpbmdZLFxuXHRcdFx0XHRcdHBhZGRpbmcsXG5cdFx0XHRcdH0pLFxuXG5cdFx0XHRcdC4uLnR5cG9ncmFwaHlTdHlsZXMoe1xuXHRcdFx0XHRcdGZvbnRXZWlnaHQsXG5cdFx0XHRcdFx0Zm9udEZhbWlseSxcblx0XHRcdFx0XHRmb250U2l6ZSxcblx0XHRcdFx0XHRsaW5lSGVpZ2h0LFxuXHRcdFx0XHR9KSxcblxuXHRcdFx0XHQuLi4obGluayA/IGxpbmtTdHlsZXMgOiB1bmRlZmluZWQpLFxuXHRcdFx0XHQuLi4oZm9jdXMgPyBmb2N1c1N0eWxlcyA6IHVuZGVmaW5lZCksXG5cdFx0XHR9KSxcblx0XHRdKSxcblx0XHRyZXN0UHJvcHMsXG5cdF07XG59XG4iXX0= */"), restProps];
}, core.mq(_objectSpread$3(_objectSpread$3(_objectSpread$3(_objectSpread$3(_objectSpread$3(_objectSpread$3(_objectSpread$3({}, colorStyles({
background: background,
color: color
})), borderStyles({
border: border,
borderWidth: borderWidth,
borderColor: borderColor,
borderLeft: borderLeft,
borderLeftWidth: borderLeftWidth,
borderRight: borderRight,
borderRightWidth: borderRightWidth,
borderTop: borderTop,
borderTopWidth: borderTopWidth,
borderBottom: borderBottom,
borderBottomWidth: borderBottomWidth,
borderX: borderX,
borderY: borderY,
rounded: rounded
})), layoutStyles({
display: display,
flexDirection: flexDirection,
flexWrap: flexWrap,
flexGrow: flexGrow,
flexShrink: flexShrink,
justifyContent: justifyContent,
alignItems: alignItems,
gap: gap,
columnGap: columnGap,
rowGap: rowGap,
width: width,
minWidth: minWidth,
maxWidth: maxWidth,
height: height,
minHeight: minHeight,
maxHeight: maxHeight
})), paddingStyles({
paddingTop: paddingTop,
paddingBottom: paddingBottom,
paddingRight: paddingRight,
paddingLeft: paddingLeft,
paddingX: paddingX,
paddingY: paddingY,
padding: padding
})), typographyStyles({
fontWeight: fontWeight,
fontFamily: fontFamily,
fontSize: fontSize,
lineHeight: lineHeight
})), link ? linkStyles : undefined), focus ? focusStyles : undefined))], process.env.NODE_ENV === "production" ? "" : ";label:boxStyles;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFpWkUiLCJmaWxlIjoic3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHtcblx0dG9rZW5zLFxuXHRCb3hQYWxldHRlLFxuXHRib3hQYWxldHRlcyxcblx0Ym94UGFsZXR0ZSxcblx0UmVzcG9uc2l2ZVByb3AsXG5cdG1hcFJlc3BvbnNpdmVQcm9wLFxuXHRtYXBTcGFjaW5nLFxuXHRtcSxcblx0Zm9udEdyaWQsXG5cdFNwYWNpbmcsXG5cdGdsb2JhbFBhbGV0dGUsXG5cdHBhY2tzLFxuXHRCb3JkZXJXaWR0aCxcblx0Rm9udFdlaWdodCxcblx0Rm9udFNpemUsXG5cdExpbmVIZWlnaHQsXG5cdEZvbnQsXG59IGZyb20gJ0BhZy5kcy1uZXh0L2NvcmUnO1xuXG50eXBlIFBhbGV0dGVQcm9wcyA9IFBhcnRpYWw8e1xuXHRwYWxldHRlOiBCb3hQYWxldHRlO1xuXHRkYXJrOiBib29sZWFuO1xuXHR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waHlTdHlsZXMoe1xuXHRcdFx0XHRcdGZvbnRXZWlnaHQsXG5cdFx0XHRcdFx0Zm9udEZhbWlseSxcblx0XHRcdFx0XHRmb250U2l6ZSxcblx0XHRcdFx0XHRsaW5lSGVpZ2h0LFxuXHRcdFx0XHR9KSxcblxuXHRcdFx0XHQuLi4obGluayA/IGxpbmtTdHlsZXMgOiB1bmRlZmluZWQpLFxuXHRcdFx0XHQuLi4oZm9jdXMgPyBmb2N1c1N0eWxlcyA6IHVuZGVmaW5lZCksXG5cdFx0XHR9KSxcblx0XHRdKSxcblx0XHRyZXN0UHJvcHMsXG5cdF07XG59XG4iXX0= */", process.env.NODE_ENV === "production" ? "" : ";label:boxStyles;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFpWkUiLCJmaWxlIjoic3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHtcblx0dG9rZW5zLFxuXHRCb3hQYWxldHRlLFxuXHRib3hQYWxldHRlcyxcblx0Ym94UGFsZXR0ZSxcblx0UmVzcG9uc2l2ZVByb3AsXG5cdG1hcFJlc3BvbnNpdmVQcm9wLFxuXHRtYXBTcGFjaW5nLFxuXHRtcSxcblx0Zm9udEdyaWQsXG5cdFNwYWNpbmcsXG5cdGdsb2JhbFBhbGV0dGUsXG5cdHBhY2tzLFxuXHRCb3JkZXJXaWR0aCxcblx0Rm9udFdlaWdodCxcblx0Rm9udFNpemUsXG5cdExpbmVIZWlnaHQsXG5cdEZvbnQsXG59IGZyb20gJ0BhZy5kcy1uZXh0L2NvcmUnO1xuXG50eXBlIFBhbGV0dGVQcm9wcyA9IFBhcnRpYWw8e1xuXHRwYWxldHRlOiBCb3hQY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dH0pLFxuXG5cdFx0XHRcdC4uLnR5cG9ncmFwaHlTdHlsZXMoe1xuXHRcdFx0XHRcdGZvbnRXZWlnaHQsXG5cdFx0XHRcdFx0Zm9udEZhbWlseSxcblx0XHRcdFx0XHRmb250U2l6ZSxcblx0XHRcdFx0XHRsaW5lSGVpZ2h0LFxuXHRcdFx0XHR9KSxcblxuXHRcdFx0XHQuLi4obGluayA/IGxpbmtTdHlsZXMgOiB1bmRlZmluZWQpLFxuXHRcdFx0XHQuLi4oZm9jdXMgPyBmb2N1c1N0eWxlcyA6IHVuZGVmaW5lZCksXG5cdFx0XHR9KSxcblx0XHRdKSxcblx0XHRyZXN0UHJvcHMsXG5cdF07XG59XG4iXX0= */"), restProps];
}
function _extends() {
_extends = Object.assign || function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
var _excluded$2 = ["as"];
for (var key in source) {
if (Object.prototype.hasOwnProperty.call(source, key)) {
target[key] = source[key];
}
}
}
function ownKeys$2(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
return target;
};
function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$2(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
var Box = core.forwardRefWithAs(function Box(_ref, ref) {
var _ref$as = _ref.as,
Tag = _ref$as === void 0 ? 'div' : _ref$as,
props = _objectWithoutProperties(_ref, _excluded$2);
return _extends.apply(this, arguments);
}
var _boxStyles = boxStyles(props),
_boxStyles2 = _slicedToArray(_boxStyles, 2),
styles = _boxStyles2[0],
attrs = _boxStyles2[1];
const Box = core.forwardRefWithAs(function Box({
as: Tag = 'div',
...props
}, ref) {
const [styles, attrs] = boxStyles(props);
return react.jsx(Tag, _extends({
return jsxRuntime.jsx(Tag, _objectSpread$2({
ref: ref,

@@ -347,13 +369,22 @@ css: styles

const Flex = core.forwardRefWithAs(function Flex({
inline = false,
flexDirection = 'row',
justifyContent = 'flex-start',
alignItems = 'stretch',
display,
...props
}, ref) {
return react.jsx(Box, _extends({
var _excluded$1 = ["inline", "flexDirection", "justifyContent", "alignItems", "display"];
function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
var Flex = core.forwardRefWithAs(function Flex(_ref, ref) {
var _ref$inline = _ref.inline,
inline = _ref$inline === void 0 ? false : _ref$inline,
_ref$flexDirection = _ref.flexDirection,
flexDirection = _ref$flexDirection === void 0 ? 'row' : _ref$flexDirection,
_ref$justifyContent = _ref.justifyContent,
justifyContent = _ref$justifyContent === void 0 ? 'flex-start' : _ref$justifyContent,
_ref$alignItems = _ref.alignItems,
alignItems = _ref$alignItems === void 0 ? 'stretch' : _ref$alignItems,
display = _ref.display,
props = _objectWithoutProperties(_ref, _excluded$1);
return jsxRuntime.jsx(Box, _objectSpread$1({
ref: ref,
display: display ?? (inline ? 'inline-flex' : 'flex'),
display: display !== null && display !== void 0 ? display : inline ? 'inline-flex' : 'flex',
flexDirection: flexDirection,

@@ -365,9 +396,17 @@ justifyContent: justifyContent,

const Stack = core.forwardRefWithAs(function Stack({
flexDirection = 'column',
justifyContent = 'flex-start',
alignItems = 'stretch',
...props
}, ref) {
return react.jsx(Box, _extends({
var _excluded = ["flexDirection", "justifyContent", "alignItems"];
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
var Stack = core.forwardRefWithAs(function Stack(_ref, ref) {
var _ref$flexDirection = _ref.flexDirection,
flexDirection = _ref$flexDirection === void 0 ? 'column' : _ref$flexDirection,
_ref$justifyContent = _ref.justifyContent,
justifyContent = _ref$justifyContent === void 0 ? 'flex-start' : _ref$justifyContent,
_ref$alignItems = _ref.alignItems,
alignItems = _ref$alignItems === void 0 ? 'stretch' : _ref$alignItems,
props = _objectWithoutProperties(_ref, _excluded);
return jsxRuntime.jsx(Box, _objectSpread({
ref: ref,

@@ -374,0 +413,0 @@ display: "flex",

@@ -5,10 +5,19 @@ 'use strict';

var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
var react = require('@emotion/react');
var core = require('@ag.ds-next/core');
var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
var jsxRuntime = require('@emotion/react/jsx-runtime');
function paletteStyles({
palette,
dark,
light
}) {
var _excluded$3 = ["palette", "dark", "light", "color", "background", "border", "borderWidth", "borderColor", "borderLeft", "borderLeftWidth", "borderRight", "borderRightWidth", "borderTop", "borderTopWidth", "borderBottom", "borderBottomWidth", "borderX", "borderY", "rounded", "display", "flexDirection", "flexWrap", "flexGrow", "flexShrink", "justifyContent", "alignItems", "gap", "columnGap", "rowGap", "width", "minWidth", "maxWidth", "height", "minHeight", "maxHeight", "paddingTop", "paddingBottom", "paddingRight", "paddingLeft", "paddingX", "paddingY", "padding", "fontWeight", "fontFamily", "fontSize", "focus", "link", "lineHeight"];
function ownKeys$3(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$3(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$3(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
function paletteStyles(_ref) {
var palette = _ref.palette,
dark = _ref.dark,
light = _ref.light;
if (palette) return core.boxPalettes[palette];

@@ -19,3 +28,3 @@ if (dark) return core.boxPalettes.dark;

const foregroundColorMap = {
var foregroundColorMap = {
text: core.boxPalette.foregroundText,

@@ -32,3 +41,3 @@ action: core.boxPalette.foregroundAction,

};
const backgroundColorMap = {
var backgroundColorMap = {
body: core.boxPalette.backgroundBody,

@@ -40,23 +49,29 @@ shade: core.boxPalette.backgroundShade,

function colorStyles({
color,
background
}) {
function colorStyles(_ref2) {
var color = _ref2.color,
background = _ref2.background;
return {
color: color ? core.mapResponsiveProp(color, t => foregroundColorMap[t]) : undefined,
backgroundColor: background ? core.mapResponsiveProp(background, t => backgroundColorMap[t]) : undefined
color: color ? core.mapResponsiveProp(color, function (t) {
return foregroundColorMap[t];
}) : undefined,
backgroundColor: background ? core.mapResponsiveProp(background, function (t) {
return backgroundColorMap[t];
}) : undefined
};
}
function typographyStyles({
fontWeight,
fontFamily,
fontSize: _fontSize,
lineHeight: _lineHeight = 'default'
}) {
const responsiveFontGrid = core.mapResponsiveProp(_fontSize, t => core.fontGrid(t, _lineHeight));
const {
fontSize,
lineHeight
} = responsiveFontGrid?.reduce((acc, entry, index) => {
function typographyStyles(_ref3) {
var _responsiveFontGrid$r;
var fontWeight = _ref3.fontWeight,
fontFamily = _ref3.fontFamily,
_fontSize = _ref3.fontSize,
_ref3$lineHeight = _ref3.lineHeight,
_lineHeight = _ref3$lineHeight === void 0 ? 'default' : _ref3$lineHeight;
var responsiveFontGrid = core.mapResponsiveProp(_fontSize, function (t) {
return core.fontGrid(t, _lineHeight);
});
var _ref4 = (_responsiveFontGrid$r = responsiveFontGrid === null || responsiveFontGrid === void 0 ? void 0 : responsiveFontGrid.reduce(function (acc, entry, index) {
acc.fontSize[index] = isEntry(entry) ? entry.fontSize : null;

@@ -68,11 +83,18 @@ acc.lineHeight[index] = isEntry(entry) ? entry.lineHeight : null;

lineHeight: []
}) ?? {
})) !== null && _responsiveFontGrid$r !== void 0 ? _responsiveFontGrid$r : {
fontSize: undefined,
lineHeight: undefined
};
},
fontSize = _ref4.fontSize,
lineHeight = _ref4.lineHeight;
return {
fontWeight: core.mapResponsiveProp(fontWeight, t => core.tokens.fontWeight[t]),
fontFamily: core.mapResponsiveProp(fontFamily, t => core.tokens.font[t]),
fontSize,
lineHeight,
fontWeight: core.mapResponsiveProp(fontWeight, function (t) {
return core.tokens.fontWeight[t];
}),
fontFamily: core.mapResponsiveProp(fontFamily, function (t) {
return core.tokens.font[t];
}),
fontSize: fontSize,
lineHeight: lineHeight,
'& ::selection': {

@@ -89,18 +111,19 @@ color: core.boxPalette.backgroundBody,

function layoutStyles({
display,
flexDirection,
flexWrap,
flexGrow,
flexShrink,
justifyContent,
alignItems,
gap,
width,
minWidth,
maxWidth,
height,
minHeight,
maxHeight
}) {
function layoutStyles(_ref5) {
var display = _ref5.display,
flexDirection = _ref5.flexDirection,
flexWrap = _ref5.flexWrap,
flexGrow = _ref5.flexGrow,
flexShrink = _ref5.flexShrink,
justifyContent = _ref5.justifyContent,
alignItems = _ref5.alignItems,
gap = _ref5.gap,
columnGap = _ref5.columnGap,
rowGap = _ref5.rowGap,
width = _ref5.width,
minWidth = _ref5.minWidth,
maxWidth = _ref5.maxWidth,
height = _ref5.height,
minHeight = _ref5.minHeight,
maxHeight = _ref5.maxHeight;
return {

@@ -115,2 +138,4 @@ display: core.mapResponsiveProp(display),

gap: core.mapResponsiveProp(gap, core.mapSpacing),
columnGap: core.mapResponsiveProp(columnGap, core.mapSpacing),
rowGap: core.mapResponsiveProp(rowGap, core.mapSpacing),
width: core.mapResponsiveProp(width),

@@ -125,3 +150,3 @@ minWidth: core.mapResponsiveProp(minWidth),

const borderColorMap = {
var borderColorMap = {
border: 'border',

@@ -131,25 +156,28 @@ muted: 'borderMuted'

function borderStyles({
border,
borderWidth = 'sm',
borderColor = 'border',
borderLeft,
borderLeftWidth,
borderRight,
borderRightWidth,
borderTop,
borderTopWidth,
borderBottom,
borderBottomWidth,
borderX,
borderY,
rounded
}) {
const anyBorder = border || borderLeft || borderRight || borderTop || borderBottom || borderX || borderY;
function borderStyles(_ref6) {
var _ref7, _ref8, _ref9, _ref10;
var border = _ref6.border,
_ref6$borderWidth = _ref6.borderWidth,
borderWidth = _ref6$borderWidth === void 0 ? 'sm' : _ref6$borderWidth,
_ref6$borderColor = _ref6.borderColor,
borderColor = _ref6$borderColor === void 0 ? 'border' : _ref6$borderColor,
borderLeft = _ref6.borderLeft,
borderLeftWidth = _ref6.borderLeftWidth,
borderRight = _ref6.borderRight,
borderRightWidth = _ref6.borderRightWidth,
borderTop = _ref6.borderTop,
borderTopWidth = _ref6.borderTopWidth,
borderBottom = _ref6.borderBottom,
borderBottomWidth = _ref6.borderBottomWidth,
borderX = _ref6.borderX,
borderY = _ref6.borderY,
rounded = _ref6.rounded;
var anyBorder = border || borderLeft || borderRight || borderTop || borderBottom || borderX || borderY;
return {
borderWidth: 0,
borderLeftWidth: border ?? borderX ?? borderLeft ? core.tokens.borderWidth[borderLeftWidth || borderWidth] : undefined,
borderRightWidth: border ?? borderX ?? borderRight ? core.tokens.borderWidth[borderRightWidth || borderWidth] : undefined,
borderTopWidth: border ?? borderY ?? borderTop ? core.tokens.borderWidth[borderTopWidth || borderWidth] : undefined,
borderBottomWidth: border ?? borderY ?? borderBottom ? core.tokens.borderWidth[borderBottomWidth || borderWidth] : undefined,
borderLeftWidth: ((_ref7 = border !== null && border !== void 0 ? border : borderX) !== null && _ref7 !== void 0 ? _ref7 : borderLeft) ? core.tokens.borderWidth[borderLeftWidth || borderWidth] : undefined,
borderRightWidth: ((_ref8 = border !== null && border !== void 0 ? border : borderX) !== null && _ref8 !== void 0 ? _ref8 : borderRight) ? core.tokens.borderWidth[borderRightWidth || borderWidth] : undefined,
borderTopWidth: ((_ref9 = border !== null && border !== void 0 ? border : borderY) !== null && _ref9 !== void 0 ? _ref9 : borderTop) ? core.tokens.borderWidth[borderTopWidth || borderWidth] : undefined,
borderBottomWidth: ((_ref10 = border !== null && border !== void 0 ? border : borderY) !== null && _ref10 !== void 0 ? _ref10 : borderBottom) ? core.tokens.borderWidth[borderBottomWidth || borderWidth] : undefined,
borderColor: anyBorder ? core.boxPalette[borderColorMap[borderColor]] : undefined,

@@ -162,20 +190,21 @@ borderStyle: anyBorder ? 'solid' : undefined,

// TODO: Explain how overlapping shorthands padding is applied.
function paddingStyles({
paddingTop,
paddingBottom,
paddingRight,
paddingLeft,
paddingX,
paddingY,
padding
}) {
function paddingStyles(_ref11) {
var _ref12, _ref13, _ref14, _ref15;
var paddingTop = _ref11.paddingTop,
paddingBottom = _ref11.paddingBottom,
paddingRight = _ref11.paddingRight,
paddingLeft = _ref11.paddingLeft,
paddingX = _ref11.paddingX,
paddingY = _ref11.paddingY,
padding = _ref11.padding;
return {
paddingTop: core.mapResponsiveProp(paddingTop ?? paddingY ?? padding, core.mapSpacing),
paddingBottom: core.mapResponsiveProp(paddingBottom ?? paddingY ?? padding, core.mapSpacing),
paddingRight: core.mapResponsiveProp(paddingRight ?? paddingX ?? padding, core.mapSpacing),
paddingLeft: core.mapResponsiveProp(paddingLeft ?? paddingX ?? padding, core.mapSpacing)
paddingTop: core.mapResponsiveProp((_ref12 = paddingTop !== null && paddingTop !== void 0 ? paddingTop : paddingY) !== null && _ref12 !== void 0 ? _ref12 : padding, core.mapSpacing),
paddingBottom: core.mapResponsiveProp((_ref13 = paddingBottom !== null && paddingBottom !== void 0 ? paddingBottom : paddingY) !== null && _ref13 !== void 0 ? _ref13 : padding, core.mapSpacing),
paddingRight: core.mapResponsiveProp((_ref14 = paddingRight !== null && paddingRight !== void 0 ? paddingRight : paddingX) !== null && _ref14 !== void 0 ? _ref14 : padding, core.mapSpacing),
paddingLeft: core.mapResponsiveProp((_ref15 = paddingLeft !== null && paddingLeft !== void 0 ? paddingLeft : paddingX) !== null && _ref15 !== void 0 ? _ref15 : padding, core.mapSpacing)
};
}
const linkStyles = { ...core.packs.underline,
var linkStyles = _objectSpread$3(_objectSpread$3({}, core.packs.underline), {}, {
color: core.boxPalette.foregroundAction,

@@ -193,4 +222,4 @@ cursor: 'pointer',

}
};
const focusStyles = {
});
var focusStyles = {
':focus': core.packs.outline,

@@ -201,55 +230,61 @@ '&::-moz-focus-inner': {

};
function boxStyles({
palette,
dark,
light,
color,
background,
border,
borderWidth,
borderColor,
borderLeft,
borderLeftWidth,
borderRight,
borderRightWidth,
borderTop,
borderTopWidth,
borderBottom,
borderBottomWidth,
borderX,
borderY,
rounded,
display,
flexDirection,
flexWrap,
flexGrow,
flexShrink,
justifyContent,
alignItems,
gap,
width,
minWidth,
maxWidth,
height,
minHeight,
maxHeight,
paddingTop,
paddingBottom,
paddingRight,
paddingLeft,
paddingX,
paddingY,
padding,
fontWeight,
fontFamily,
fontSize,
focus,
link,
lineHeight,
...restProps
}) {
return [/*#__PURE__*/react.css([paletteStyles({
palette,
dark,
light
function boxStyles(_ref16) {
var palette = _ref16.palette,
dark = _ref16.dark,
light = _ref16.light,
color = _ref16.color,
background = _ref16.background,
border = _ref16.border,
borderWidth = _ref16.borderWidth,
borderColor = _ref16.borderColor,
borderLeft = _ref16.borderLeft,
borderLeftWidth = _ref16.borderLeftWidth,
borderRight = _ref16.borderRight,
borderRightWidth = _ref16.borderRightWidth,
borderTop = _ref16.borderTop,
borderTopWidth = _ref16.borderTopWidth,
borderBottom = _ref16.borderBottom,
borderBottomWidth = _ref16.borderBottomWidth,
borderX = _ref16.borderX,
borderY = _ref16.borderY,
rounded = _ref16.rounded,
display = _ref16.display,
flexDirection = _ref16.flexDirection,
flexWrap = _ref16.flexWrap,
flexGrow = _ref16.flexGrow,
flexShrink = _ref16.flexShrink,
justifyContent = _ref16.justifyContent,
alignItems = _ref16.alignItems,
gap = _ref16.gap,
columnGap = _ref16.columnGap,
rowGap = _ref16.rowGap,
width = _ref16.width,
minWidth = _ref16.minWidth,
maxWidth = _ref16.maxWidth,
height = _ref16.height,
minHeight = _ref16.minHeight,
maxHeight = _ref16.maxHeight,
paddingTop = _ref16.paddingTop,
paddingBottom = _ref16.paddingBottom,
paddingRight = _ref16.paddingRight,
paddingLeft = _ref16.paddingLeft,
paddingX = _ref16.paddingX,
paddingY = _ref16.paddingY,
padding = _ref16.padding,
fontWeight = _ref16.fontWeight,
fontFamily = _ref16.fontFamily,
fontSize = _ref16.fontSize,
focus = _ref16.focus,
link = _ref16.link,
lineHeight = _ref16.lineHeight,
restProps = _objectWithoutProperties(_ref16, _excluded$3);
return [
/*#__PURE__*/
/*#__PURE__*/
react.css([paletteStyles({
palette: palette,
dark: dark,
light: light
}), // common resets

@@ -261,82 +296,69 @@ {

padding: 0
}, core.mq({ ...colorStyles({
background,
color
}),
...borderStyles({
border,
borderWidth,
borderColor,
borderLeft,
borderLeftWidth,
borderRight,
borderRightWidth,
borderTop,
borderTopWidth,
borderBottom,
borderBottomWidth,
borderX,
borderY,
rounded
}),
...layoutStyles({
display,
flexDirection,
flexWrap,
flexGrow,
flexShrink,
justifyContent,
alignItems,
gap,
width,
minWidth,
maxWidth,
height,
minHeight,
maxHeight
}),
...paddingStyles({
paddingTop,
paddingBottom,
paddingRight,
paddingLeft,
paddingX,
paddingY,
padding
}),
...typographyStyles({
fontWeight,
fontFamily,
fontSize,
lineHeight
}),
...(link ? linkStyles : undefined),
...(focus ? focusStyles : undefined)
})], "" , "" ), restProps];
}, core.mq(_objectSpread$3(_objectSpread$3(_objectSpread$3(_objectSpread$3(_objectSpread$3(_objectSpread$3(_objectSpread$3({}, colorStyles({
background: background,
color: color
})), borderStyles({
border: border,
borderWidth: borderWidth,
borderColor: borderColor,
borderLeft: borderLeft,
borderLeftWidth: borderLeftWidth,
borderRight: borderRight,
borderRightWidth: borderRightWidth,
borderTop: borderTop,
borderTopWidth: borderTopWidth,
borderBottom: borderBottom,
borderBottomWidth: borderBottomWidth,
borderX: borderX,
borderY: borderY,
rounded: rounded
})), layoutStyles({
display: display,
flexDirection: flexDirection,
flexWrap: flexWrap,
flexGrow: flexGrow,
flexShrink: flexShrink,
justifyContent: justifyContent,
alignItems: alignItems,
gap: gap,
columnGap: columnGap,
rowGap: rowGap,
width: width,
minWidth: minWidth,
maxWidth: maxWidth,
height: height,
minHeight: minHeight,
maxHeight: maxHeight
})), paddingStyles({
paddingTop: paddingTop,
paddingBottom: paddingBottom,
paddingRight: paddingRight,
paddingLeft: paddingLeft,
paddingX: paddingX,
paddingY: paddingY,
padding: padding
})), typographyStyles({
fontWeight: fontWeight,
fontFamily: fontFamily,
fontSize: fontSize,
lineHeight: lineHeight
})), link ? linkStyles : undefined), focus ? focusStyles : undefined))], "" , "" , "" , "" ), restProps];
}
function _extends() {
_extends = Object.assign || function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
var _excluded$2 = ["as"];
for (var key in source) {
if (Object.prototype.hasOwnProperty.call(source, key)) {
target[key] = source[key];
}
}
}
function ownKeys$2(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
return target;
};
function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$2(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
var Box = core.forwardRefWithAs(function Box(_ref, ref) {
var _ref$as = _ref.as,
Tag = _ref$as === void 0 ? 'div' : _ref$as,
props = _objectWithoutProperties(_ref, _excluded$2);
return _extends.apply(this, arguments);
}
var _boxStyles = boxStyles(props),
_boxStyles2 = _slicedToArray(_boxStyles, 2),
styles = _boxStyles2[0],
attrs = _boxStyles2[1];
const Box = core.forwardRefWithAs(function Box({
as: Tag = 'div',
...props
}, ref) {
const [styles, attrs] = boxStyles(props);
return react.jsx(Tag, _extends({
return jsxRuntime.jsx(Tag, _objectSpread$2({
ref: ref,

@@ -347,13 +369,22 @@ css: styles

const Flex = core.forwardRefWithAs(function Flex({
inline = false,
flexDirection = 'row',
justifyContent = 'flex-start',
alignItems = 'stretch',
display,
...props
}, ref) {
return react.jsx(Box, _extends({
var _excluded$1 = ["inline", "flexDirection", "justifyContent", "alignItems", "display"];
function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
var Flex = core.forwardRefWithAs(function Flex(_ref, ref) {
var _ref$inline = _ref.inline,
inline = _ref$inline === void 0 ? false : _ref$inline,
_ref$flexDirection = _ref.flexDirection,
flexDirection = _ref$flexDirection === void 0 ? 'row' : _ref$flexDirection,
_ref$justifyContent = _ref.justifyContent,
justifyContent = _ref$justifyContent === void 0 ? 'flex-start' : _ref$justifyContent,
_ref$alignItems = _ref.alignItems,
alignItems = _ref$alignItems === void 0 ? 'stretch' : _ref$alignItems,
display = _ref.display,
props = _objectWithoutProperties(_ref, _excluded$1);
return jsxRuntime.jsx(Box, _objectSpread$1({
ref: ref,
display: display ?? (inline ? 'inline-flex' : 'flex'),
display: display !== null && display !== void 0 ? display : inline ? 'inline-flex' : 'flex',
flexDirection: flexDirection,

@@ -365,9 +396,17 @@ justifyContent: justifyContent,

const Stack = core.forwardRefWithAs(function Stack({
flexDirection = 'column',
justifyContent = 'flex-start',
alignItems = 'stretch',
...props
}, ref) {
return react.jsx(Box, _extends({
var _excluded = ["flexDirection", "justifyContent", "alignItems"];
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
var Stack = core.forwardRefWithAs(function Stack(_ref, ref) {
var _ref$flexDirection = _ref.flexDirection,
flexDirection = _ref$flexDirection === void 0 ? 'column' : _ref$flexDirection,
_ref$justifyContent = _ref.justifyContent,
justifyContent = _ref$justifyContent === void 0 ? 'flex-start' : _ref$justifyContent,
_ref$alignItems = _ref.alignItems,
alignItems = _ref$alignItems === void 0 ? 'stretch' : _ref$alignItems,
props = _objectWithoutProperties(_ref, _excluded);
return jsxRuntime.jsx(Box, _objectSpread({
ref: ref,

@@ -374,0 +413,0 @@ display: "flex",

@@ -1,9 +0,18 @@

import { css, jsx } from '@emotion/react';
import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
import { css } from '@emotion/react';
import { boxPalette, globalPalette, packs, mq, mapResponsiveProp, tokens, mapSpacing, boxPalettes, fontGrid, forwardRefWithAs } from '@ag.ds-next/core';
import _slicedToArray from '@babel/runtime/helpers/esm/slicedToArray';
import { jsx } from '@emotion/react/jsx-runtime';
function paletteStyles({
palette,
dark,
light
}) {
var _excluded$3 = ["palette", "dark", "light", "color", "background", "border", "borderWidth", "borderColor", "borderLeft", "borderLeftWidth", "borderRight", "borderRightWidth", "borderTop", "borderTopWidth", "borderBottom", "borderBottomWidth", "borderX", "borderY", "rounded", "display", "flexDirection", "flexWrap", "flexGrow", "flexShrink", "justifyContent", "alignItems", "gap", "columnGap", "rowGap", "width", "minWidth", "maxWidth", "height", "minHeight", "maxHeight", "paddingTop", "paddingBottom", "paddingRight", "paddingLeft", "paddingX", "paddingY", "padding", "fontWeight", "fontFamily", "fontSize", "focus", "link", "lineHeight"];
function ownKeys$3(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$3(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$3(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
function paletteStyles(_ref) {
var palette = _ref.palette,
dark = _ref.dark,
light = _ref.light;
if (palette) return boxPalettes[palette];

@@ -14,3 +23,3 @@ if (dark) return boxPalettes.dark;

const foregroundColorMap = {
var foregroundColorMap = {
text: boxPalette.foregroundText,

@@ -27,3 +36,3 @@ action: boxPalette.foregroundAction,

};
const backgroundColorMap = {
var backgroundColorMap = {
body: boxPalette.backgroundBody,

@@ -35,23 +44,29 @@ shade: boxPalette.backgroundShade,

function colorStyles({
color,
background
}) {
function colorStyles(_ref2) {
var color = _ref2.color,
background = _ref2.background;
return {
color: color ? mapResponsiveProp(color, t => foregroundColorMap[t]) : undefined,
backgroundColor: background ? mapResponsiveProp(background, t => backgroundColorMap[t]) : undefined
color: color ? mapResponsiveProp(color, function (t) {
return foregroundColorMap[t];
}) : undefined,
backgroundColor: background ? mapResponsiveProp(background, function (t) {
return backgroundColorMap[t];
}) : undefined
};
}
function typographyStyles({
fontWeight,
fontFamily,
fontSize: _fontSize,
lineHeight: _lineHeight = 'default'
}) {
const responsiveFontGrid = mapResponsiveProp(_fontSize, t => fontGrid(t, _lineHeight));
const {
fontSize,
lineHeight
} = responsiveFontGrid?.reduce((acc, entry, index) => {
function typographyStyles(_ref3) {
var _responsiveFontGrid$r;
var fontWeight = _ref3.fontWeight,
fontFamily = _ref3.fontFamily,
_fontSize = _ref3.fontSize,
_ref3$lineHeight = _ref3.lineHeight,
_lineHeight = _ref3$lineHeight === void 0 ? 'default' : _ref3$lineHeight;
var responsiveFontGrid = mapResponsiveProp(_fontSize, function (t) {
return fontGrid(t, _lineHeight);
});
var _ref4 = (_responsiveFontGrid$r = responsiveFontGrid === null || responsiveFontGrid === void 0 ? void 0 : responsiveFontGrid.reduce(function (acc, entry, index) {
acc.fontSize[index] = isEntry(entry) ? entry.fontSize : null;

@@ -63,11 +78,18 @@ acc.lineHeight[index] = isEntry(entry) ? entry.lineHeight : null;

lineHeight: []
}) ?? {
})) !== null && _responsiveFontGrid$r !== void 0 ? _responsiveFontGrid$r : {
fontSize: undefined,
lineHeight: undefined
};
},
fontSize = _ref4.fontSize,
lineHeight = _ref4.lineHeight;
return {
fontWeight: mapResponsiveProp(fontWeight, t => tokens.fontWeight[t]),
fontFamily: mapResponsiveProp(fontFamily, t => tokens.font[t]),
fontSize,
lineHeight,
fontWeight: mapResponsiveProp(fontWeight, function (t) {
return tokens.fontWeight[t];
}),
fontFamily: mapResponsiveProp(fontFamily, function (t) {
return tokens.font[t];
}),
fontSize: fontSize,
lineHeight: lineHeight,
'& ::selection': {

@@ -84,18 +106,19 @@ color: boxPalette.backgroundBody,

function layoutStyles({
display,
flexDirection,
flexWrap,
flexGrow,
flexShrink,
justifyContent,
alignItems,
gap,
width,
minWidth,
maxWidth,
height,
minHeight,
maxHeight
}) {
function layoutStyles(_ref5) {
var display = _ref5.display,
flexDirection = _ref5.flexDirection,
flexWrap = _ref5.flexWrap,
flexGrow = _ref5.flexGrow,
flexShrink = _ref5.flexShrink,
justifyContent = _ref5.justifyContent,
alignItems = _ref5.alignItems,
gap = _ref5.gap,
columnGap = _ref5.columnGap,
rowGap = _ref5.rowGap,
width = _ref5.width,
minWidth = _ref5.minWidth,
maxWidth = _ref5.maxWidth,
height = _ref5.height,
minHeight = _ref5.minHeight,
maxHeight = _ref5.maxHeight;
return {

@@ -110,2 +133,4 @@ display: mapResponsiveProp(display),

gap: mapResponsiveProp(gap, mapSpacing),
columnGap: mapResponsiveProp(columnGap, mapSpacing),
rowGap: mapResponsiveProp(rowGap, mapSpacing),
width: mapResponsiveProp(width),

@@ -120,3 +145,3 @@ minWidth: mapResponsiveProp(minWidth),

const borderColorMap = {
var borderColorMap = {
border: 'border',

@@ -126,25 +151,28 @@ muted: 'borderMuted'

function borderStyles({
border,
borderWidth = 'sm',
borderColor = 'border',
borderLeft,
borderLeftWidth,
borderRight,
borderRightWidth,
borderTop,
borderTopWidth,
borderBottom,
borderBottomWidth,
borderX,
borderY,
rounded
}) {
const anyBorder = border || borderLeft || borderRight || borderTop || borderBottom || borderX || borderY;
function borderStyles(_ref6) {
var _ref7, _ref8, _ref9, _ref10;
var border = _ref6.border,
_ref6$borderWidth = _ref6.borderWidth,
borderWidth = _ref6$borderWidth === void 0 ? 'sm' : _ref6$borderWidth,
_ref6$borderColor = _ref6.borderColor,
borderColor = _ref6$borderColor === void 0 ? 'border' : _ref6$borderColor,
borderLeft = _ref6.borderLeft,
borderLeftWidth = _ref6.borderLeftWidth,
borderRight = _ref6.borderRight,
borderRightWidth = _ref6.borderRightWidth,
borderTop = _ref6.borderTop,
borderTopWidth = _ref6.borderTopWidth,
borderBottom = _ref6.borderBottom,
borderBottomWidth = _ref6.borderBottomWidth,
borderX = _ref6.borderX,
borderY = _ref6.borderY,
rounded = _ref6.rounded;
var anyBorder = border || borderLeft || borderRight || borderTop || borderBottom || borderX || borderY;
return {
borderWidth: 0,
borderLeftWidth: border ?? borderX ?? borderLeft ? tokens.borderWidth[borderLeftWidth || borderWidth] : undefined,
borderRightWidth: border ?? borderX ?? borderRight ? tokens.borderWidth[borderRightWidth || borderWidth] : undefined,
borderTopWidth: border ?? borderY ?? borderTop ? tokens.borderWidth[borderTopWidth || borderWidth] : undefined,
borderBottomWidth: border ?? borderY ?? borderBottom ? tokens.borderWidth[borderBottomWidth || borderWidth] : undefined,
borderLeftWidth: ((_ref7 = border !== null && border !== void 0 ? border : borderX) !== null && _ref7 !== void 0 ? _ref7 : borderLeft) ? tokens.borderWidth[borderLeftWidth || borderWidth] : undefined,
borderRightWidth: ((_ref8 = border !== null && border !== void 0 ? border : borderX) !== null && _ref8 !== void 0 ? _ref8 : borderRight) ? tokens.borderWidth[borderRightWidth || borderWidth] : undefined,
borderTopWidth: ((_ref9 = border !== null && border !== void 0 ? border : borderY) !== null && _ref9 !== void 0 ? _ref9 : borderTop) ? tokens.borderWidth[borderTopWidth || borderWidth] : undefined,
borderBottomWidth: ((_ref10 = border !== null && border !== void 0 ? border : borderY) !== null && _ref10 !== void 0 ? _ref10 : borderBottom) ? tokens.borderWidth[borderBottomWidth || borderWidth] : undefined,
borderColor: anyBorder ? boxPalette[borderColorMap[borderColor]] : undefined,

@@ -157,20 +185,21 @@ borderStyle: anyBorder ? 'solid' : undefined,

// TODO: Explain how overlapping shorthands padding is applied.
function paddingStyles({
paddingTop,
paddingBottom,
paddingRight,
paddingLeft,
paddingX,
paddingY,
padding
}) {
function paddingStyles(_ref11) {
var _ref12, _ref13, _ref14, _ref15;
var paddingTop = _ref11.paddingTop,
paddingBottom = _ref11.paddingBottom,
paddingRight = _ref11.paddingRight,
paddingLeft = _ref11.paddingLeft,
paddingX = _ref11.paddingX,
paddingY = _ref11.paddingY,
padding = _ref11.padding;
return {
paddingTop: mapResponsiveProp(paddingTop ?? paddingY ?? padding, mapSpacing),
paddingBottom: mapResponsiveProp(paddingBottom ?? paddingY ?? padding, mapSpacing),
paddingRight: mapResponsiveProp(paddingRight ?? paddingX ?? padding, mapSpacing),
paddingLeft: mapResponsiveProp(paddingLeft ?? paddingX ?? padding, mapSpacing)
paddingTop: mapResponsiveProp((_ref12 = paddingTop !== null && paddingTop !== void 0 ? paddingTop : paddingY) !== null && _ref12 !== void 0 ? _ref12 : padding, mapSpacing),
paddingBottom: mapResponsiveProp((_ref13 = paddingBottom !== null && paddingBottom !== void 0 ? paddingBottom : paddingY) !== null && _ref13 !== void 0 ? _ref13 : padding, mapSpacing),
paddingRight: mapResponsiveProp((_ref14 = paddingRight !== null && paddingRight !== void 0 ? paddingRight : paddingX) !== null && _ref14 !== void 0 ? _ref14 : padding, mapSpacing),
paddingLeft: mapResponsiveProp((_ref15 = paddingLeft !== null && paddingLeft !== void 0 ? paddingLeft : paddingX) !== null && _ref15 !== void 0 ? _ref15 : padding, mapSpacing)
};
}
const linkStyles = { ...packs.underline,
var linkStyles = _objectSpread$3(_objectSpread$3({}, packs.underline), {}, {
color: boxPalette.foregroundAction,

@@ -188,4 +217,4 @@ cursor: 'pointer',

}
};
const focusStyles = {
});
var focusStyles = {
':focus': packs.outline,

@@ -196,55 +225,61 @@ '&::-moz-focus-inner': {

};
function boxStyles({
palette,
dark,
light,
color,
background,
border,
borderWidth,
borderColor,
borderLeft,
borderLeftWidth,
borderRight,
borderRightWidth,
borderTop,
borderTopWidth,
borderBottom,
borderBottomWidth,
borderX,
borderY,
rounded,
display,
flexDirection,
flexWrap,
flexGrow,
flexShrink,
justifyContent,
alignItems,
gap,
width,
minWidth,
maxWidth,
height,
minHeight,
maxHeight,
paddingTop,
paddingBottom,
paddingRight,
paddingLeft,
paddingX,
paddingY,
padding,
fontWeight,
fontFamily,
fontSize,
focus,
link,
lineHeight,
...restProps
}) {
return [/*#__PURE__*/css([paletteStyles({
palette,
dark,
light
function boxStyles(_ref16) {
var palette = _ref16.palette,
dark = _ref16.dark,
light = _ref16.light,
color = _ref16.color,
background = _ref16.background,
border = _ref16.border,
borderWidth = _ref16.borderWidth,
borderColor = _ref16.borderColor,
borderLeft = _ref16.borderLeft,
borderLeftWidth = _ref16.borderLeftWidth,
borderRight = _ref16.borderRight,
borderRightWidth = _ref16.borderRightWidth,
borderTop = _ref16.borderTop,
borderTopWidth = _ref16.borderTopWidth,
borderBottom = _ref16.borderBottom,
borderBottomWidth = _ref16.borderBottomWidth,
borderX = _ref16.borderX,
borderY = _ref16.borderY,
rounded = _ref16.rounded,
display = _ref16.display,
flexDirection = _ref16.flexDirection,
flexWrap = _ref16.flexWrap,
flexGrow = _ref16.flexGrow,
flexShrink = _ref16.flexShrink,
justifyContent = _ref16.justifyContent,
alignItems = _ref16.alignItems,
gap = _ref16.gap,
columnGap = _ref16.columnGap,
rowGap = _ref16.rowGap,
width = _ref16.width,
minWidth = _ref16.minWidth,
maxWidth = _ref16.maxWidth,
height = _ref16.height,
minHeight = _ref16.minHeight,
maxHeight = _ref16.maxHeight,
paddingTop = _ref16.paddingTop,
paddingBottom = _ref16.paddingBottom,
paddingRight = _ref16.paddingRight,
paddingLeft = _ref16.paddingLeft,
paddingX = _ref16.paddingX,
paddingY = _ref16.paddingY,
padding = _ref16.padding,
fontWeight = _ref16.fontWeight,
fontFamily = _ref16.fontFamily,
fontSize = _ref16.fontSize,
focus = _ref16.focus,
link = _ref16.link,
lineHeight = _ref16.lineHeight,
restProps = _objectWithoutProperties(_ref16, _excluded$3);
return [
/*#__PURE__*/
/*#__PURE__*/
css([paletteStyles({
palette: palette,
dark: dark,
light: light
}), // common resets

@@ -256,82 +291,69 @@ {

padding: 0
}, mq({ ...colorStyles({
background,
color
}),
...borderStyles({
border,
borderWidth,
borderColor,
borderLeft,
borderLeftWidth,
borderRight,
borderRightWidth,
borderTop,
borderTopWidth,
borderBottom,
borderBottomWidth,
borderX,
borderY,
rounded
}),
...layoutStyles({
display,
flexDirection,
flexWrap,
flexGrow,
flexShrink,
justifyContent,
alignItems,
gap,
width,
minWidth,
maxWidth,
height,
minHeight,
maxHeight
}),
...paddingStyles({
paddingTop,
paddingBottom,
paddingRight,
paddingLeft,
paddingX,
paddingY,
padding
}),
...typographyStyles({
fontWeight,
fontFamily,
fontSize,
lineHeight
}),
...(link ? linkStyles : undefined),
...(focus ? focusStyles : undefined)
})], process.env.NODE_ENV === "production" ? "" : ";label:boxStyles;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,ey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RcdFx0XHR9KSxcblxuXHRcdFx0XHQuLi5wYWRkaW5nU3R5bGVzKHtcblx0XHRcdFx0XHRwYWRkaW5nVG9wLFxuXHRcdFx0XHRcdHBhZGRpbmdCb3R0b20sXG5cdFx0XHRcdFx0cGFkZGluZ1JpZ2h0LFxuXHRcdFx0XHRcdHBhZGRpbmdMZWZ0LFxuXHRcdFx0XHRcdHBhZGRpbmdYLFxuXHRcdFx0XHRcdHBhZGRpbmdZLFxuXHRcdFx0XHRcdHBhZGRpbmcsXG5cdFx0XHRcdH0pLFxuXG5cdFx0XHRcdC4uLnR5cG9ncmFwaHlTdHlsZXMoe1xuXHRcdFx0XHRcdGZvbnRXZWlnaHQsXG5cdFx0XHRcdFx0Zm9udEZhbWlseSxcblx0XHRcdFx0XHRmb250U2l6ZSxcblx0XHRcdFx0XHRsaW5lSGVpZ2h0LFxuXHRcdFx0XHR9KSxcblxuXHRcdFx0XHQuLi4obGluayA/IGxpbmtTdHlsZXMgOiB1bmRlZmluZWQpLFxuXHRcdFx0XHQuLi4oZm9jdXMgPyBmb2N1c1N0eWxlcyA6IHVuZGVmaW5lZCksXG5cdFx0XHR9KSxcblx0XHRdKSxcblx0XHRyZXN0UHJvcHMsXG5cdF07XG59XG4iXX0= */"), restProps];
}, mq(_objectSpread$3(_objectSpread$3(_objectSpread$3(_objectSpread$3(_objectSpread$3(_objectSpread$3(_objectSpread$3({}, colorStyles({
background: background,
color: color
})), borderStyles({
border: border,
borderWidth: borderWidth,
borderColor: borderColor,
borderLeft: borderLeft,
borderLeftWidth: borderLeftWidth,
borderRight: borderRight,
borderRightWidth: borderRightWidth,
borderTop: borderTop,
borderTopWidth: borderTopWidth,
borderBottom: borderBottom,
borderBottomWidth: borderBottomWidth,
borderX: borderX,
borderY: borderY,
rounded: rounded
})), layoutStyles({
display: display,
flexDirection: flexDirection,
flexWrap: flexWrap,
flexGrow: flexGrow,
flexShrink: flexShrink,
justifyContent: justifyContent,
alignItems: alignItems,
gap: gap,
columnGap: columnGap,
rowGap: rowGap,
width: width,
minWidth: minWidth,
maxWidth: maxWidth,
height: height,
minHeight: minHeight,
maxHeight: maxHeight
})), paddingStyles({
paddingTop: paddingTop,
paddingBottom: paddingBottom,
paddingRight: paddingRight,
paddingLeft: paddingLeft,
paddingX: paddingX,
paddingY: paddingY,
padding: padding
})), typographyStyles({
fontWeight: fontWeight,
fontFamily: fontFamily,
fontSize: fontSize,
lineHeight: lineHeight
})), link ? linkStyles : undefined), focus ? focusStyles : undefined))], process.env.NODE_ENV === "production" ? "" : ";label:boxStyles;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFpWkUiLCJmaWxlIjoic3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHtcblx0dG9rZW5zLFxuXHRCb3hQYWxldHRlLFxuXHRib3hQYWxldHRlcyxcblx0Ym94UGFsZXR0ZSxcblx0UmVzcG9uc2l2ZVByb3AsXG5cdG1hcFJlc3BvbnNpdmVQcm9wLFxuXHRtYXBTcGFjaW5nLFxuXHRtcSxcblx0Zm9udEdyaWQsXG5cdFNwYWNpbmcsXG5cdGdsb2JhbFBhbGV0dGUsXG5cdHBhY2tzLFxuXHRCb3JkZXJXaWR0aCxcblx0Rm9udFdlaWdodCxcblx0Rm9udFNpemUsXG5cdExpbmVIZWlnaHQsXG5cdEZvbnQsXG59IGZyb20gJ0BhZy5kcy1uZXh0L2NvcmUnO1xuXG50eXBlIFBhbGV0dGVQcm9wcyA9IFBhcnRpYWw8e1xuXHRwYWxldHRlOiBCb3hQYWxldHRlO1xuXHRkYXJrOiBib29sZWFuO1xuXHRsaWdodDogYm9vbGVhbjtcbn0+O1xuXG5mdW5jdGlvbi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aHQsXG5cdFx0XHRcdFx0Zm9udEZhbWlseSxcblx0XHRcdFx0XHRmb250U2l6ZSxcblx0XHRcdFx0XHRsaW5lSGVpZ2h0LFxuXHRcdFx0XHR9KSxcblxuXHRcdFx0XHQuLi4obGluayA/IGxpbmtTdHlsZXMgOiB1bmRlZmluZWQpLFxuXHRcdFx0XHQuLi4oZm9jdXMgPyBmb2N1c1N0eWxlcyA6IHVuZGVmaW5lZCksXG5cdFx0XHR9KSxcblx0XHRdKSxcblx0XHRyZXN0UHJvcHMsXG5cdF07XG59XG4iXX0= */", process.env.NODE_ENV === "production" ? "" : ";label:boxStyles;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFpWkUiLCJmaWxlIjoic3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHtcblx0dG9rZW5zLFxuXHRCb3hQYWxldHRlLFxuXHRib3hQYWxldHRlcyxcblx0Ym94UGFsZXR0ZSxcblx0UmVzcG9uc2l2ZVByb3AsXG5cdG1hcFJlc3BvbnNpdmVQcm9wLFxuXHRtYXBTcGFjaW5nLFxuXHRtcSxcblx0Zm9udEdyaWQsXG5cdFNwYWNpbmcsXG5cdGdsb2JhbFBhbGV0dGUsXG5cdHBhY2tzLFxuXHRCb3JkZXJXaWR0aCxcblx0Rm9udFdlaWdodCxcblx0Rm9udFNpemUsXG5cdExpbmVIZWlnaHQsXG5cdEZvbnQsXG59IGZyb20gJ0BhZy5kcy1uZXh0L2NvcmUnO1xuXG50eXBlIFBhbGV0dGVQcm9wcyA9IFBhcnRpYWw8e1xuXHRwYWxldHRlOiBCb3hQYWxldHRlO1xuXHRkYXJrOiBib29sZWFuO1xuXHRsaWdodD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HlsZXMoe1xuXHRcdFx0XHRcdGZvbnRXZWlnaHQsXG5cdFx0XHRcdFx0Zm9udEZhbWlseSxcblx0XHRcdFx0XHRmb250U2l6ZSxcblx0XHRcdFx0XHRsaW5lSGVpZ2h0LFxuXHRcdFx0XHR9KSxcblxuXHRcdFx0XHQuLi4obGluayA/IGxpbmtTdHlsZXMgOiB1bmRlZmluZWQpLFxuXHRcdFx0XHQuLi4oZm9jdXMgPyBmb2N1c1N0eWxlcyA6IHVuZGVmaW5lZCksXG5cdFx0XHR9KSxcblx0XHRdKSxcblx0XHRyZXN0UHJvcHMsXG5cdF07XG59XG4iXX0= */"), restProps];
}
function _extends() {
_extends = Object.assign || function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
var _excluded$2 = ["as"];
for (var key in source) {
if (Object.prototype.hasOwnProperty.call(source, key)) {
target[key] = source[key];
}
}
}
function ownKeys$2(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
return target;
};
function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$2(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
var Box = forwardRefWithAs(function Box(_ref, ref) {
var _ref$as = _ref.as,
Tag = _ref$as === void 0 ? 'div' : _ref$as,
props = _objectWithoutProperties(_ref, _excluded$2);
return _extends.apply(this, arguments);
}
var _boxStyles = boxStyles(props),
_boxStyles2 = _slicedToArray(_boxStyles, 2),
styles = _boxStyles2[0],
attrs = _boxStyles2[1];
const Box = forwardRefWithAs(function Box({
as: Tag = 'div',
...props
}, ref) {
const [styles, attrs] = boxStyles(props);
return jsx(Tag, _extends({
return jsx(Tag, _objectSpread$2({
ref: ref,

@@ -342,13 +364,22 @@ css: styles

const Flex = forwardRefWithAs(function Flex({
inline = false,
flexDirection = 'row',
justifyContent = 'flex-start',
alignItems = 'stretch',
display,
...props
}, ref) {
return jsx(Box, _extends({
var _excluded$1 = ["inline", "flexDirection", "justifyContent", "alignItems", "display"];
function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
var Flex = forwardRefWithAs(function Flex(_ref, ref) {
var _ref$inline = _ref.inline,
inline = _ref$inline === void 0 ? false : _ref$inline,
_ref$flexDirection = _ref.flexDirection,
flexDirection = _ref$flexDirection === void 0 ? 'row' : _ref$flexDirection,
_ref$justifyContent = _ref.justifyContent,
justifyContent = _ref$justifyContent === void 0 ? 'flex-start' : _ref$justifyContent,
_ref$alignItems = _ref.alignItems,
alignItems = _ref$alignItems === void 0 ? 'stretch' : _ref$alignItems,
display = _ref.display,
props = _objectWithoutProperties(_ref, _excluded$1);
return jsx(Box, _objectSpread$1({
ref: ref,
display: display ?? (inline ? 'inline-flex' : 'flex'),
display: display !== null && display !== void 0 ? display : inline ? 'inline-flex' : 'flex',
flexDirection: flexDirection,

@@ -360,9 +391,17 @@ justifyContent: justifyContent,

const Stack = forwardRefWithAs(function Stack({
flexDirection = 'column',
justifyContent = 'flex-start',
alignItems = 'stretch',
...props
}, ref) {
return jsx(Box, _extends({
var _excluded = ["flexDirection", "justifyContent", "alignItems"];
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
var Stack = forwardRefWithAs(function Stack(_ref, ref) {
var _ref$flexDirection = _ref.flexDirection,
flexDirection = _ref$flexDirection === void 0 ? 'column' : _ref$flexDirection,
_ref$justifyContent = _ref.justifyContent,
justifyContent = _ref$justifyContent === void 0 ? 'flex-start' : _ref$justifyContent,
_ref$alignItems = _ref.alignItems,
alignItems = _ref$alignItems === void 0 ? 'stretch' : _ref$alignItems,
props = _objectWithoutProperties(_ref, _excluded);
return jsx(Box, _objectSpread({
ref: ref,

@@ -369,0 +408,0 @@ display: "flex",

@@ -44,2 +44,4 @@ import { BoxPalette, ResponsiveProp, Spacing, BorderWidth, FontWeight, FontSize, LineHeight, Font } from '@ag.ds-next/core';

gap: ResponsiveProp<Spacing>;
columnGap: ResponsiveProp<Spacing>;
rowGap: ResponsiveProp<Spacing>;
width: ResponsiveProp<number | string>;

@@ -115,3 +117,3 @@ minWidth: ResponsiveProp<number | string>;

export declare type BoxProps = PaletteProps & ColorProps & BorderProps & FocusProps & TypographyProps & LayoutProps & LinkProps & PaddingProps;
export declare function boxStyles({ palette, dark, light, color, background, border, borderWidth, borderColor, borderLeft, borderLeftWidth, borderRight, borderRightWidth, borderTop, borderTopWidth, borderBottom, borderBottomWidth, borderX, borderY, rounded, display, flexDirection, flexWrap, flexGrow, flexShrink, justifyContent, alignItems, gap, width, minWidth, maxWidth, height, minHeight, maxHeight, paddingTop, paddingBottom, paddingRight, paddingLeft, paddingX, paddingY, padding, fontWeight, fontFamily, fontSize, focus, link, lineHeight, ...restProps }: BoxProps): {}[];
export declare function boxStyles({ palette, dark, light, color, background, border, borderWidth, borderColor, borderLeft, borderLeftWidth, borderRight, borderRightWidth, borderTop, borderTopWidth, borderBottom, borderBottomWidth, borderX, borderY, rounded, display, flexDirection, flexWrap, flexGrow, flexShrink, justifyContent, alignItems, gap, columnGap, rowGap, width, minWidth, maxWidth, height, minHeight, maxHeight, paddingTop, paddingBottom, paddingRight, paddingLeft, paddingX, paddingY, padding, fontWeight, fontFamily, fontSize, focus, link, lineHeight, ...restProps }: BoxProps): {}[];
export {};
{
"name": "@ag.ds-next/box",
"version": "6.0.0",
"version": "6.1.0",
"main": "dist/ag.ds-next-box.cjs.js",
"module": "dist/ag.ds-next-box.esm.js",
"license": "MIT",
"dependencies": {
"@babel/runtime": "^7.4.5"
},
"peerDependencies": {
"@ag.ds-next/core": "3.0.0",
"@ag.ds-next/core": "3.0.1",
"@emotion/react": "^11.7.0"

@@ -10,0 +13,0 @@ },

@@ -1,48 +0,3 @@

---
title: Box
description: A set of primitive layout components
group: Foundations
storybookPath: /story/foundations-box--light-box
---
## @ag.ds-next/box
This package includes the components `<Box />`, `<Flex />` and `<Stack />`.
## Box
```jsx live
<Box
palette="dark"
background="body"
color="text"
fontFamily="body"
border
padding={{ xs: 1, xl: 4 }}
rounded
>
A Box example
</Box>
```
## Flex
Same principles as `Box`, but extended with CSS Flexbox properties.
```jsx live
<Flex gap={1} justifyContent="space-between" alignItems="flex-start">
<Box background="shade" padding={1} />
<Box background="shade" height="64px" padding={1} />
<Box background="shade" padding={1} />
</Flex>
```
## Stack
Use to distribute items vertically with even spacing.
```jsx live
<Stack gap={1}>
<Box background="shade" padding={1} />
<Box background="shade" padding={1} />
<Box background="shade" padding={1} />
</Stack>
```
Documentation for this package can be found here: https://steelthreads.github.io/agds-next/packages/foundations/box

@@ -152,2 +152,4 @@ import { css } from '@emotion/react';

gap: ResponsiveProp<Spacing>;
columnGap: ResponsiveProp<Spacing>;
rowGap: ResponsiveProp<Spacing>;
width: ResponsiveProp<number | string>;

@@ -170,2 +172,4 @@ minWidth: ResponsiveProp<number | string>;

gap,
columnGap,
rowGap,
width,

@@ -187,2 +191,4 @@ minWidth,

gap: mapResponsiveProp(gap, mapSpacing),
columnGap: mapResponsiveProp(columnGap, mapSpacing),
rowGap: mapResponsiveProp(rowGap, mapSpacing),
width: mapResponsiveProp(width),

@@ -375,2 +381,4 @@ minWidth: mapResponsiveProp(minWidth),

gap,
columnGap,
rowGap,
width,

@@ -438,2 +446,4 @@ minWidth,

gap,
columnGap,
rowGap,
width,

@@ -440,0 +450,0 @@ minWidth,

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc