@doist/reactist 11.1.0 → 11.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/reactist.cjs.development.js +11 -9
- package/dist/reactist.cjs.development.js.map +1 -1
- package/dist/reactist.cjs.production.min.js +1 -1
- package/dist/reactist.cjs.production.min.js.map +1 -1
- package/es/new-components/base-button/base-button.js +4 -2
- package/es/new-components/base-button/base-button.js.map +1 -1
- package/es/new-components/box/box.js +2 -3
- package/es/new-components/box/box.js.map +1 -1
- package/es/new-components/modal/modal.js +5 -4
- package/es/new-components/modal/modal.js.map +1 -1
- package/es/new-components/text-area/text-area.js.map +1 -1
- package/lib/new-components/base-button/base-button.d.ts +4 -0
- package/lib/new-components/base-button/base-button.js +1 -1
- package/lib/new-components/base-button/base-button.js.map +1 -1
- package/lib/new-components/box/box.d.ts +3 -2
- package/lib/new-components/box/box.js +1 -1
- package/lib/new-components/box/box.js.map +1 -1
- package/lib/new-components/button/button.d.ts +2 -0
- package/lib/new-components/modal/modal.js +1 -1
- package/lib/new-components/modal/modal.js.map +1 -1
- package/lib/new-components/text-area/text-area.d.ts +3 -1
- package/lib/new-components/text-area/text-area.js.map +1 -1
- package/package.json +3 -3
|
@@ -228,8 +228,7 @@ var Box = /*#__PURE__*/polymorphicComponent(function Box(_ref, ref) {
|
|
|
228
228
|
borderRadius = _ref.borderRadius,
|
|
229
229
|
minWidth = _ref.minWidth,
|
|
230
230
|
maxWidth = _ref.maxWidth,
|
|
231
|
-
|
|
232
|
-
textAlign = _ref$textAlign === void 0 ? 'start' : _ref$textAlign,
|
|
231
|
+
textAlign = _ref.textAlign,
|
|
233
232
|
padding = _ref.padding,
|
|
234
233
|
paddingY = _ref.paddingY,
|
|
235
234
|
paddingX = _ref.paddingX,
|
|
@@ -258,7 +257,7 @@ var Box = /*#__PURE__*/polymorphicComponent(function Box(_ref, ref) {
|
|
|
258
257
|
var resolvedMarginLeft = (_ref9 = marginLeft !== null && marginLeft !== void 0 ? marginLeft : marginX) !== null && _ref9 !== void 0 ? _ref9 : margin;
|
|
259
258
|
var omitFlex = !display || typeof display === 'string' && display !== 'flex' && display !== 'inlineFlex';
|
|
260
259
|
return /*#__PURE__*/React.createElement(component, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
261
|
-
className: classNames(className, modules_54d944f2.box, display ? getClassNames(modules_54d944f2, 'display', display) : null, position !== 'static' ? getClassNames(modules_54d944f2, 'position', position) : null, minWidth != null ? getClassNames(modules_89b7671c, 'minWidth', String(minWidth)) : null, getClassNames(modules_89b7671c, 'maxWidth', maxWidth),
|
|
260
|
+
className: classNames(className, modules_54d944f2.box, display ? getClassNames(modules_54d944f2, 'display', display) : null, position !== 'static' ? getClassNames(modules_54d944f2, 'position', position) : null, minWidth != null ? getClassNames(modules_89b7671c, 'minWidth', String(minWidth)) : null, getClassNames(modules_89b7671c, 'maxWidth', maxWidth), getClassNames(modules_54d944f2, 'textAlign', textAlign), // padding
|
|
262
261
|
getClassNames(modules_b537a8ee, 'paddingTop', resolvedPaddingTop), getClassNames(modules_b537a8ee, 'paddingRight', resolvedPaddingRight), getClassNames(modules_b537a8ee, 'paddingBottom', resolvedPaddingBottom), getClassNames(modules_b537a8ee, 'paddingLeft', resolvedPaddingLeft), // margin
|
|
263
262
|
getClassNames(modules_131405ac, 'marginTop', resolvedMarginTop), getClassNames(modules_131405ac, 'marginRight', resolvedMarginRight), getClassNames(modules_131405ac, 'marginBottom', resolvedMarginBottom), getClassNames(modules_131405ac, 'marginLeft', resolvedMarginLeft), // flex props
|
|
264
263
|
omitFlex ? null : getClassNames(modules_54d944f2, 'flexDirection', flexDirection), omitFlex ? null : getClassNames(modules_54d944f2, 'flexWrap', flexWrap), omitFlex ? null : getClassNames(modules_54d944f2, 'alignItems', alignItems), omitFlex ? null : getClassNames(modules_54d944f2, 'justifyContent', justifyContent), flexShrink != null ? getClassNames(modules_54d944f2, 'flexShrink', String(flexShrink)) : null, flexGrow != null ? getClassNames(modules_54d944f2, 'flexGrow', String(flexGrow)) : null, // other props
|
|
@@ -600,7 +599,7 @@ function Spinner(_ref) {
|
|
|
600
599
|
|
|
601
600
|
var modules_b9569bce = {"label":"_1f20c88a","baseButton":"_623015f3","size-small":"_062de645","size-normal":"_55e2a6a9","size-large":"cab32a7c","disabled":"e71c191a","iconButton":"_368efc16","startIcon":"d35389c1","endIcon":"_900d41d8","variant-primary":"_7c95e162","variant-secondary":"_9cb889aa","variant-tertiary":"_611b5b28","variant-quaternary":"_80c2bb84","tone-destructive":"ee13c455"};
|
|
602
601
|
|
|
603
|
-
var _excluded$7 = ["as", "variant", "tone", "size", "disabled", "loading", "tooltip", "onClick", "exceptionallySetClassName", "children", "startIcon", "endIcon", "icon"];
|
|
602
|
+
var _excluded$7 = ["as", "variant", "tone", "size", "disabled", "loading", "tooltip", "tooltipGapSize", "onClick", "exceptionallySetClassName", "children", "startIcon", "endIcon", "icon"];
|
|
604
603
|
|
|
605
604
|
function preventDefault(event) {
|
|
606
605
|
event.preventDefault();
|
|
@@ -629,6 +628,7 @@ var BaseButton = /*#__PURE__*/polymorphicComponent(function BaseButton(_ref, ref
|
|
|
629
628
|
_ref$loading = _ref.loading,
|
|
630
629
|
loading = _ref$loading === void 0 ? false : _ref$loading,
|
|
631
630
|
tooltip = _ref.tooltip,
|
|
631
|
+
tooltipGapSize = _ref.tooltipGapSize,
|
|
632
632
|
onClick = _ref.onClick,
|
|
633
633
|
exceptionallySetClassName = _ref.exceptionallySetClassName,
|
|
634
634
|
children = _ref.children,
|
|
@@ -658,7 +658,8 @@ var BaseButton = /*#__PURE__*/polymorphicComponent(function BaseButton(_ref, ref
|
|
|
658
658
|
|
|
659
659
|
var tooltipContent = icon ? tooltip !== null && tooltip !== void 0 ? tooltip : props['aria-label'] : tooltip;
|
|
660
660
|
return tooltipContent ? /*#__PURE__*/React.createElement(Tooltip, {
|
|
661
|
-
content: tooltipContent
|
|
661
|
+
content: tooltipContent,
|
|
662
|
+
gapSize: tooltipGapSize
|
|
662
663
|
}, buttonElement) : buttonElement;
|
|
663
664
|
});
|
|
664
665
|
|
|
@@ -1796,13 +1797,14 @@ function ModalHeader(_ref2) {
|
|
|
1796
1797
|
alignY: "center"
|
|
1797
1798
|
}, /*#__PURE__*/React.createElement(Column, {
|
|
1798
1799
|
width: "auto"
|
|
1799
|
-
}, children), /*#__PURE__*/React.createElement(Column, {
|
|
1800
|
+
}, children), button === false || button === null ? null : /*#__PURE__*/React.createElement(Column, {
|
|
1800
1801
|
width: "content",
|
|
1801
|
-
exceptionallySetClassName: modules_8f59d13b.buttonContainer
|
|
1802
|
-
|
|
1802
|
+
exceptionallySetClassName: modules_8f59d13b.buttonContainer,
|
|
1803
|
+
"data-testid": "button-container"
|
|
1804
|
+
}, typeof button === 'boolean' ? /*#__PURE__*/React.createElement(ModalCloseButton, {
|
|
1803
1805
|
"aria-label": "Close modal",
|
|
1804
1806
|
autoFocus: false
|
|
1805
|
-
}) :
|
|
1807
|
+
}) : button))), withDivider ? /*#__PURE__*/React.createElement(Divider, null) : null);
|
|
1806
1808
|
}
|
|
1807
1809
|
/**
|
|
1808
1810
|
* Renders the body of a modal.
|