@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.
@@ -2,7 +2,7 @@ import { ChangeEvent } from 'react';
2
2
  type ItemBaseProps = {
3
3
  children?: React.ReactNode;
4
4
  align?: 'left' | 'center' | 'right';
5
- value?: string;
5
+ value?: string | React.ReactNode;
6
6
  fullWidth?: boolean;
7
7
  width?: string;
8
8
  };
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"};