@websolutespa/bom-mixer-ui 1.8.11 → 1.8.12

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @websolutespa/bom-mixer-ui
2
2
 
3
+ ## 1.8.12
4
+
5
+ ### Patch Changes
6
+
7
+ - Modified: Container
8
+ - Updated dependencies
9
+ - @websolutespa/bom-core@1.8.9
10
+
3
11
  ## 1.8.11
4
12
 
5
13
  ### Patch Changes
package/dist/cjs/index.js CHANGED
@@ -473,9 +473,9 @@ const CssObj = {
473
473
  /*
474
474
  "fontSizeAdjust": "font-size-adjust",
475
475
  "fontStretch": "font-stretch",
476
- "fontStyle": "font-style",
477
476
  "fontVariant": "font-variant",
478
477
  */
478
+ 'fontStyle': 'font-style',
479
479
  'fontWeight': 'font-weight',
480
480
  'gap': 'gap',
481
481
  'grid': 'grid',
@@ -2024,21 +2024,39 @@ const Code = styled__default.default.div`
2024
2024
  ${props => getCssResponsive(props)}
2025
2025
  `;
2026
2026
 
2027
- const ContainerBase = styled__default.default.div`
2027
+ const StyledContainer = styled__default.default.div`
2028
2028
  width: 100%;
2029
2029
  margin: 0 auto;
2030
2030
  ${props => getContainer(props)}
2031
2031
  ${props => getCssResponsive(props)}
2032
2032
  `;
2033
+ const ContainerBase = /*#__PURE__*/React.forwardRef((_a, ref) => {
2034
+ var {
2035
+ children,
2036
+ as = 'div',
2037
+ className
2038
+ } = _a,
2039
+ props = __rest(_a, ["children", "as", "className"]);
2040
+ return jsxRuntime.jsx(StyledContainer, Object.assign({
2041
+ ref: ref,
2042
+ as: as,
2043
+ className: bomCore.getClassNames('container', className)
2044
+ }, props, {
2045
+ children: children
2046
+ }));
2047
+ });
2048
+ ContainerBase.displayName = 'ContainerBase';
2033
2049
  const ContainerFluid = /*#__PURE__*/React.forwardRef((_a, ref) => {
2034
2050
  var {
2035
2051
  children,
2036
- as = 'div'
2052
+ as = 'div',
2053
+ className
2037
2054
  } = _a,
2038
- props = __rest(_a, ["children", "as"]);
2039
- return jsxRuntime.jsx(ContainerBase, Object.assign({
2055
+ props = __rest(_a, ["children", "as", "className"]);
2056
+ return jsxRuntime.jsx(StyledContainer, Object.assign({
2040
2057
  ref: ref,
2041
- as: as
2058
+ as: as,
2059
+ className: bomCore.getClassNames('container-fluid', className)
2042
2060
  }, props, {
2043
2061
  variant: "fluid",
2044
2062
  children: children
@@ -2921,17 +2939,23 @@ const DrawerBase = _a => {
2921
2939
  props = __rest(_a, ["name", "visible", "onClose", "placement", "className", "variant", "variants", "children"]);
2922
2940
  const [drawer, openDrawer, closeDrawer] = bomMixerHooks.useDrawer();
2923
2941
  const onClose = () => {
2942
+ console.log('onClose', name, drawer);
2924
2943
  if (outerOnClose) {
2925
2944
  outerOnClose();
2926
2945
  }
2927
- closeDrawer();
2946
+ if (drawer === name) {
2947
+ closeDrawer();
2948
+ }
2928
2949
  };
2929
- React.useEffect(() => {
2950
+ const open = typeof outerVisible === 'undefined' ? drawer === name : outerVisible;
2951
+ /*
2952
+ useEffect(() => {
2930
2953
  if (typeof outerVisible === 'undefined') {
2931
2954
  return;
2932
2955
  }
2933
2956
  outerVisible ? openDrawer(name) : closeDrawer();
2934
2957
  }, [closeDrawer, name, openDrawer, outerVisible]);
2958
+ */
2935
2959
  const classNames = bomCore.getClassNames('drawer', className, placement);
2936
2960
  const globalVariants = useVariants('drawer', drawerVariants);
2937
2961
  variants = variants || globalVariants;
@@ -2942,7 +2966,7 @@ const DrawerBase = _a => {
2942
2966
  variants
2943
2967
  },
2944
2968
  children: jsxRuntime.jsx(AriaKit__namespace.DialogProvider, {
2945
- open: drawer === name,
2969
+ open: open,
2946
2970
  children: jsxRuntime.jsx(DrawerBaseStyle, Object.assign({
2947
2971
  onClose: () => onClose(),
2948
2972
  className: classNames,
@@ -12739,6 +12763,7 @@ exports.Section = Section;
12739
12763
  exports.Select = Select;
12740
12764
  exports.SelectLegacy = SelectLegacy;
12741
12765
  exports.Skeleton = Skeleton;
12766
+ exports.StyledContainer = StyledContainer;
12742
12767
  exports.Svg = Svg;
12743
12768
  exports.SvgAnimation = SvgAnimation;
12744
12769
  exports.SwiperComponent = SwiperComponent;