@gem-sdk/core 1.14.0-dev.287 → 1.14.0-dev.296

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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var jsxRuntime=require("react/jsx-runtime"),react=require("react"),composeAdvanceStyle=require("../helpers/compose-advance-style.js"),constant=require("./constant.js"),RenderCustomCode=require("./RenderCustomCode.js");const ComponentWrapper=({children:e,...t})=>{if("section"===t.type)return null;let s=composeAdvanceStyle.composeAdvanceStyle(t.advanced,t.tag),n=t.advanced;return constant.disableWrap.includes(t.tag)&&react.isValidElement(e)?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(RenderCustomCode.default,{uid:t.uid,advanced:n}),jsxRuntime.jsx(e.type,{...e.props,style:s,advanced:n}),";"]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(RenderCustomCode.default,{uid:t.uid,advanced:n}),jsxRuntime.jsx("div",{style:s,className:`${t.uid}`,children:e})]})};exports.default=ComponentWrapper;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var jsxRuntime=require("react/jsx-runtime"),react=require("react"),composeAdvanceStyle=require("../helpers/compose-advance-style.js"),constant=require("./constant.js"),RenderCustomCode=require("./RenderCustomCode.js");const ComponentWrapper=({children:e,...t})=>{if("section"===t.type)return null;let s=composeAdvanceStyle.composeAdvanceStyle(t.advanced,t.tag),n=t.advanced;return constant.disableWrap.includes(t.tag)&&react.isValidElement(e)?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(RenderCustomCode.default,{uid:t.uid,advanced:n}),jsxRuntime.jsx(e.type,{...e.props,style:s,advanced:n})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(RenderCustomCode.default,{uid:t.uid,advanced:n}),jsxRuntime.jsx("div",{style:s,className:`${t.uid}`,children:e})]})};exports.default=ComponentWrapper;
@@ -1 +1 @@
1
- import{jsxs as e,Fragment as r,jsx as t}from"react/jsx-runtime";import{isValidElement as d}from"react";import{composeAdvanceStyle as o}from"../helpers/compose-advance-style.js";import{disableWrap as a}from"./constant.js";import n from"./RenderCustomCode.js";let ComponentWrapper=({children:i,...p})=>{if("section"===p.type)return null;let m=o(p.advanced,p.tag),s=p.advanced;return a.includes(p.tag)&&d(i)?e(r,{children:[t(n,{uid:p.uid,advanced:s}),t(i.type,{...i.props,style:m,advanced:s}),";"]}):e(r,{children:[t(n,{uid:p.uid,advanced:s}),t("div",{style:m,className:`${p.uid}`,children:i})]})};export{ComponentWrapper as default};
1
+ import{jsxs as e,Fragment as r,jsx as t}from"react/jsx-runtime";import{isValidElement as d}from"react";import{composeAdvanceStyle as o}from"../helpers/compose-advance-style.js";import{disableWrap as a}from"./constant.js";import n from"./RenderCustomCode.js";let ComponentWrapper=({children:i,...p})=>{if("section"===p.type)return null;let m=o(p.advanced,p.tag),s=p.advanced;return a.includes(p.tag)&&d(i)?e(r,{children:[t(n,{uid:p.uid,advanced:s}),t(i.type,{...i.props,style:m,advanced:s})]}):e(r,{children:[t(n,{uid:p.uid,advanced:s}),t("div",{style:m,className:`${p.uid}`,children:i})]})};export{ComponentWrapper as default};
@@ -899,10 +899,16 @@ type GridArrange<T> = SharedControlType<T> & {
899
899
 
900
900
  type SettingID = 'shape' | 'width' | 'height' | 'gap' | 'padding';
901
901
  type OptionKeyword = 'default' | 'auto' | 'full' | 'equal' | 'small' | 'medium' | 'large';
902
+ type PaddingOptions = 'small' | 'medium' | 'large' | 'custom';
903
+ type PaddingConfig = Partial<Record<PaddingOptions, {
904
+ vertical: string;
905
+ horizontal: string;
906
+ }>>;
902
907
  type SettingConfig = {
903
908
  sizeConfig?: Partial<Record<'small' | 'medium' | 'large', string>>;
904
909
  hiddenOptions?: OptionKeyword[];
905
910
  hiddenAllOptions?: boolean;
911
+ paddingConfig?: PaddingConfig;
906
912
  };
907
913
  type SizeSetting$1<T> = SharedControlType<T> & {
908
914
  type: 'size-setting';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/core",
3
- "version": "1.14.0-dev.287",
3
+ "version": "1.14.0-dev.296",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",