@ap-gen/ui 1.0.4 → 1.0.5
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/table/item.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/esm/index.mjs +1 -1
- package/esm/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2612,7 +2612,7 @@ function HeadRow({align="left",onChange,value,editable,sortable,sortDirection="n
|
|
|
2612
2612
|
justify-content: ${({align})=>align==="right"?"flex-end":align==="center"?"center":"flex-start"};
|
|
2613
2613
|
`;
|
|
2614
2614
|
|
|
2615
|
-
function Item$1({children,align="left",onChange,value,editable,fullWidth,width}){const[isFocused,setIsFocused]=React.useState(false);return /*#__PURE__*/jsxRuntime.jsxs(Container$7,{width:width,fullWidth:fullWidth,isFocused:isFocused,align:align,children:[editable&&onChange&&/*#__PURE__*/jsxRuntime.jsx(Input,{variant:"TableM",color:"color.foreground.neutral.primary",as:editable?"input":"div",onChange:debounce(onChange,1e3),defaultValue:value,onBlur:e=>{setIsFocused(false);},onFocus:()=>setIsFocused(true)}),!editable&&value&&/*#__PURE__*/jsxRuntime.jsx(Text,{variant:"TableM",color:"color.foreground.neutral.primary",children:value}),children&&children]})}const Container$7=styled__default["default"].div`
|
|
2615
|
+
function Item$1({children,align="left",onChange,value,editable,fullWidth,width}){const[isFocused,setIsFocused]=React.useState(false);return /*#__PURE__*/jsxRuntime.jsxs(Container$7,{width:width,fullWidth:fullWidth,isFocused:isFocused,align:align,children:[editable&&onChange&&/*#__PURE__*/jsxRuntime.jsx(Input,{variant:"TableM",color:"color.foreground.neutral.primary",as:editable?"input":"div",onChange:debounce(onChange,1e3),defaultValue:typeof value==="string"?value:undefined,onBlur:e=>{setIsFocused(false);},onFocus:()=>setIsFocused(true)}),!editable&&value&&/*#__PURE__*/jsxRuntime.jsx(Text,{variant:"TableM",color:"color.foreground.neutral.primary",children:value}),children&&children]})}const Container$7=styled__default["default"].div`
|
|
2616
2616
|
box-sizing: border-box;
|
|
2617
2617
|
display: flex;
|
|
2618
2618
|
width: ${({width,fullWidth})=>width||fullWidth?"100%":"auto"};
|