sellmate-design-system-react 0.8.1 → 0.8.3

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.
@@ -6,7 +6,7 @@ export interface SKeyValueField {
6
6
  type?: SKeyValueFieldType;
7
7
  options?: Record<string, any>;
8
8
  required?: boolean;
9
- helpText?: string;
9
+ helpText?: string[];
10
10
  hideTh?: boolean;
11
11
  thRowSpan?: number;
12
12
  thColSpan?: number;
@@ -4780,8 +4780,9 @@ function ItemList({
4780
4780
  ]
4781
4781
  }
4782
4782
  ),
4783
- items.map((o) => {
4783
+ items.map((o, idx) => {
4784
4784
  const padLeft = o.depth === 1 ? 12 : o.depth === 2 ? 20 : 28;
4785
+ const rowKey = `${o.value}-${idx}`;
4785
4786
  if (o.isGroup) {
4786
4787
  const isDepth1 = o.depth === 1;
4787
4788
  return /* @__PURE__ */ jsx(
@@ -4798,7 +4799,7 @@ function ItemList({
4798
4799
  style: { paddingLeft: padLeft },
4799
4800
  children: o.label
4800
4801
  },
4801
- o.value
4802
+ rowKey
4802
4803
  );
4803
4804
  }
4804
4805
  const isSelected = selected.includes(o.value);
@@ -4855,7 +4856,7 @@ function ItemList({
4855
4856
  ) : /* @__PURE__ */ jsx("span", { className: "flex-1 truncate", children: o.label })
4856
4857
  ]
4857
4858
  },
4858
- o.value
4859
+ rowKey
4859
4860
  );
4860
4861
  })
4861
4862
  ] });
@@ -5047,7 +5048,7 @@ function SCheckbox({
5047
5048
  }
5048
5049
  ),
5049
5050
  label && // 고스트(500) 텍스트로 너비를 고정 → 두께 400↔500 전환 시 레이아웃이 밀리지 않음
5050
- /* @__PURE__ */ jsxs("span", { className: "grid text-[12px] leading-[20px]", style: { color: labelColor }, children: [
5051
+ /* @__PURE__ */ jsxs("span", { className: "grid text-nowrap text-[12px] leading-[20px]", style: { color: labelColor }, children: [
5051
5052
  /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "invisible font-medium", style: { gridArea: "1 / 1" }, children: label }),
5052
5053
  /* @__PURE__ */ jsx("span", { style: { gridArea: "1 / 1", fontWeight: isChecked ? 500 : 400 }, children: label })
5053
5054
  ] })
@@ -6395,14 +6396,14 @@ function SKeyValueTable({
6395
6396
  /* @__PURE__ */ jsx("span", { className: "text-[12px] font-bold leading-[20px] text-[color:var(--sys-color-fg-primary)]", children: f.label }),
6396
6397
  f.required && /* @__PURE__ */ jsx(SIcon, { name: "star", size: 12, color: "var(--sys-color-fg-accent)" })
6397
6398
  ] }),
6398
- f.helpText && /* @__PURE__ */ jsx(
6399
+ f.helpText && f.helpText.length > 0 && /* @__PURE__ */ jsx(
6399
6400
  STooltip,
6400
6401
  {
6401
6402
  trigger: "hover",
6402
6403
  icon: "helpOutline",
6403
6404
  iconSize: 16,
6404
6405
  color: "var(--sys-color-fg-success)",
6405
- message: [f.helpText]
6406
+ message: f.helpText
6406
6407
  }
6407
6408
  )
6408
6409
  ] })