plataforma-fundacao-componentes 2.26.7 → 2.26.8
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/components/container/Container.d.ts +3 -1
- package/dist/index.css +5 -5
- package/dist/index.js +10 -4
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +10 -4
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -7121,9 +7121,10 @@ function useSystemInfo() {
|
|
|
7121
7121
|
};
|
|
7122
7122
|
}
|
|
7123
7123
|
|
|
7124
|
-
var _excluded$8 = ["position", "fluid", "verticalPadding", "hasMobileButton", "hasHeader", "hasAdvancedHeader", "className", "style"];
|
|
7124
|
+
var _excluded$8 = ["position", "fluid", "verticalPadding", "hasMobileButton", "hasHeader", "hasAdvancedHeader", "horizontalPadding", "className", "style", "insiderProps"];
|
|
7125
7125
|
var rootClassName$1U = 'component-container';
|
|
7126
7126
|
function Container(_ref) {
|
|
7127
|
+
var _insiderProps$classNa;
|
|
7127
7128
|
var position = _ref.position,
|
|
7128
7129
|
_ref$fluid = _ref.fluid,
|
|
7129
7130
|
fluid = _ref$fluid === void 0 ? false : _ref$fluid,
|
|
@@ -7135,21 +7136,26 @@ function Container(_ref) {
|
|
|
7135
7136
|
hasHeader = _ref$hasHeader === void 0 ? false : _ref$hasHeader,
|
|
7136
7137
|
_ref$hasAdvancedHeade = _ref.hasAdvancedHeader,
|
|
7137
7138
|
hasAdvancedHeader = _ref$hasAdvancedHeade === void 0 ? false : _ref$hasAdvancedHeade,
|
|
7139
|
+
_ref$horizontalPaddin = _ref.horizontalPadding,
|
|
7140
|
+
horizontalPadding = _ref$horizontalPaddin === void 0 ? true : _ref$horizontalPaddin,
|
|
7138
7141
|
_ref$className = _ref.className,
|
|
7139
7142
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
7140
7143
|
_ref$style = _ref.style,
|
|
7141
7144
|
style = _ref$style === void 0 ? {} : _ref$style,
|
|
7145
|
+
_ref$insiderProps = _ref.insiderProps,
|
|
7146
|
+
insiderProps = _ref$insiderProps === void 0 ? {} : _ref$insiderProps,
|
|
7142
7147
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
|
|
7143
7148
|
var mobile = useSystemInfo().isMobile;
|
|
7144
7149
|
var classNames = useMergedClassNames([rootClassName$1U, className, fluid ? 'fluid' : '', verticalPadding ? 'vertical-padding' : '', hasMobileButton ? 'has-mobile-button' : '', hasHeader ? 'has-header' : '', hasAdvancedHeader ? 'has-advanced-header' : '', mobile ? 'mobile' : '']);
|
|
7150
|
+
var insiderClassNames = useMergedClassNames([rootClassName$1U + "-insider", horizontalPadding ? 'horizontal-padding' : '', (_insiderProps$classNa = insiderProps.className) != null ? _insiderProps$classNa : '']);
|
|
7145
7151
|
return React.createElement("div", Object.assign({}, props, {
|
|
7146
7152
|
className: classNames,
|
|
7147
7153
|
style: _extends({
|
|
7148
7154
|
position: position
|
|
7149
7155
|
}, style)
|
|
7150
|
-
}), React.createElement("div", {
|
|
7151
|
-
className:
|
|
7152
|
-
}, props.children));
|
|
7156
|
+
}), React.createElement("div", Object.assign({}, insiderProps, {
|
|
7157
|
+
className: insiderClassNames
|
|
7158
|
+
}), props.children));
|
|
7153
7159
|
}
|
|
7154
7160
|
var Container$1 = memo(Container);
|
|
7155
7161
|
|