feat: expand live chat and work server tools

This commit is contained in:
2026-04-30 11:40:02 +09:00
parent 42ae640470
commit 2df0ba30cb
112 changed files with 15241 additions and 996 deletions

View File

@@ -0,0 +1,22 @@
.input-base-sample-preview {
display: block;
width: 100%;
height: 100%;
min-height: 0;
padding: 0;
}
.input-base-sample-preview__control.ant-input {
display: block;
width: 100%;
min-width: 0;
max-width: 100%;
height: 100% !important;
min-height: 100%;
min-height: 44px;
max-height: none;
margin: 0;
border-radius: 14px;
padding-inline: 14px;
box-shadow: none;
}

View File

@@ -1,6 +1,7 @@
import { useState } from 'react';
import type { SampleMeta } from '../../../../../widgets/core';
import { InputUI } from '../InputUI';
import './BaseSample.css';
export const sampleMeta: SampleMeta = {
id: 'input-base',
@@ -18,12 +19,15 @@ export function Sample() {
const [value, setValue] = useState('초기값');
return (
<InputUI
value={value}
placeholder="입력 후 Enter 또는 blur"
onChange={(event) => {
setValue(event.target.value);
}}
/>
<div className="input-base-sample-preview">
<InputUI
className="input-base-sample-preview__control"
value={value}
placeholder="입력 후 Enter 또는 blur"
onChange={(event) => {
setValue(event.target.value);
}}
/>
</div>
);
}

View File

@@ -38,7 +38,7 @@ export function Sample() {
}}
/>
<Text> : {committedValue}</Text>
<Text type="secondary"> : {commitCount}</Text>
<Text type="secondary">{`확정 횟수: ${commitCount}`}</Text>
</Flex>
</Card>
);

View File

@@ -12,6 +12,7 @@ export function SelectUI({
value,
defaultValue,
onChange,
formatLabel,
showSearch = true,
allowClear = true,
placeholder = '항목을 선택하세요',
@@ -21,10 +22,10 @@ export function SelectUI({
() =>
data.map((item) => ({
value: item.code,
label: item.value,
label: formatLabel ? formatLabel(item) : item.value,
item,
})),
[data],
[data, formatLabel],
);
const itemMap = useMemo(

View File

@@ -13,4 +13,5 @@ export type SelectUIProps = Omit<
value?: string;
defaultValue?: string;
onChange?: (code?: string, item?: SelectOptionItem) => void;
formatLabel?: (item: SelectOptionItem) => string;
};