@servantcdh/ez-planet-labeling 1.0.12 → 1.0.14

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.
Files changed (2) hide show
  1. package/dist/index.js +11 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -3589,7 +3589,7 @@ const LIB_AUTHOR = "최동호";
3589
3589
  const LIB_CONTACT = "servantcdh@naver.com";
3590
3590
  const __EZ_PLANET_META__ = Object.freeze({
3591
3591
  name: LIB_NAME,
3592
- version: "1.0.12",
3592
+ version: "1.0.14",
3593
3593
  author: LIB_AUTHOR,
3594
3594
  contact: LIB_CONTACT,
3595
3595
  license: "Proprietary — See LICENSE"
@@ -18280,6 +18280,7 @@ function WorkspaceFloatingToolbar({
18280
18280
  if (item.variant === "button") {
18281
18281
  const {
18282
18282
  iconType,
18283
+ renderIcon,
18283
18284
  title,
18284
18285
  tooltip,
18285
18286
  variant: _variant,
@@ -18296,7 +18297,7 @@ function WorkspaceFloatingToolbar({
18296
18297
  ...title ? { title } : { style: "transparent" },
18297
18298
  isSlim,
18298
18299
  ...btnProps,
18299
- children: iconType && /* @__PURE__ */ jsx(Icon, { iconType, size: isSlim ? "xxs" : "sm" })
18300
+ children: renderIcon ? renderIcon() : iconType ? /* @__PURE__ */ jsx(Icon, { iconType, size: isSlim ? "xxs" : "sm" }) : null
18300
18301
  },
18301
18302
  buttonKey
18302
18303
  );
@@ -18306,7 +18307,7 @@ function WorkspaceFloatingToolbar({
18306
18307
  if (subButtonItem.variant === "button") {
18307
18308
  const {
18308
18309
  iconType: iconType2,
18309
- renderIcon,
18310
+ renderIcon: renderIcon2,
18310
18311
  title: title2,
18311
18312
  tooltip: tooltip2,
18312
18313
  variant: _variant2,
@@ -18320,7 +18321,7 @@ function WorkspaceFloatingToolbar({
18320
18321
  size: "md",
18321
18322
  ...title2 ? { title: title2 } : { style: "transparent" },
18322
18323
  ...subBtnProps,
18323
- children: renderIcon ? renderIcon() : iconType2 ? /* @__PURE__ */ jsx(Icon, { iconType: iconType2, size: "sm" }) : null
18324
+ children: renderIcon2 ? renderIcon2() : iconType2 ? /* @__PURE__ */ jsx(Icon, { iconType: iconType2, size: "sm" }) : null
18324
18325
  },
18325
18326
  `${title2 ?? "button"}_${index2}`
18326
18327
  );
@@ -18346,6 +18347,7 @@ function WorkspaceFloatingToolbar({
18346
18347
  if (subButtonItem.variant === "radio") {
18347
18348
  const {
18348
18349
  iconType: iconType2,
18350
+ renderIcon: renderIcon2,
18349
18351
  title: title2,
18350
18352
  tooltip: tooltip2,
18351
18353
  variant: _variant2,
@@ -18378,7 +18380,7 @@ function WorkspaceFloatingToolbar({
18378
18380
  }
18379
18381
  }
18380
18382
  ),
18381
- iconType2 && /* @__PURE__ */ jsx("label", { htmlFor: id, children: /* @__PURE__ */ jsx(Icon, { iconType: iconType2, size: "sm" }) })
18383
+ renderIcon2 ? /* @__PURE__ */ jsx("label", { htmlFor: id, children: renderIcon2() }) : iconType2 ? /* @__PURE__ */ jsx("label", { htmlFor: id, children: /* @__PURE__ */ jsx(Icon, { iconType: iconType2, size: "sm" }) }) : null
18382
18384
  ]
18383
18385
  },
18384
18386
  `${id}_${index2}`
@@ -18400,6 +18402,7 @@ function WorkspaceFloatingToolbar({
18400
18402
  if (item.variant === "checkbox") {
18401
18403
  const {
18402
18404
  iconType,
18405
+ renderIcon: _renderIcon,
18403
18406
  title,
18404
18407
  variant: _variant,
18405
18408
  id,
@@ -18481,6 +18484,7 @@ function WorkspaceFloatingToolbar({
18481
18484
  if (item.variant === "radio") {
18482
18485
  const {
18483
18486
  iconType,
18487
+ renderIcon: itemRenderIcon,
18484
18488
  title,
18485
18489
  variant: _variant,
18486
18490
  id,
@@ -18512,7 +18516,7 @@ function WorkspaceFloatingToolbar({
18512
18516
  ...radioProps
18513
18517
  }
18514
18518
  ),
18515
- iconType && /* @__PURE__ */ jsx("label", { htmlFor: id, children: /* @__PURE__ */ jsx(Icon, { iconType, size: "sm" }) })
18519
+ itemRenderIcon ? /* @__PURE__ */ jsx("label", { htmlFor: id, children: itemRenderIcon() }) : iconType ? /* @__PURE__ */ jsx("label", { htmlFor: id, children: /* @__PURE__ */ jsx(Icon, { iconType, size: "sm" }) }) : null
18516
18520
  ]
18517
18521
  },
18518
18522
  `${id}_${index}`
@@ -18849,6 +18853,7 @@ const useImageLabelingUIMeta = ({
18849
18853
  lastSelectedType === "extension" && lastSelectedExtension ? {
18850
18854
  variant: "radio",
18851
18855
  iconType: lastSelectedExtension.iconType,
18856
+ renderIcon: lastSelectedExtension.renderIcon,
18852
18857
  name: "tool",
18853
18858
  title: formatShortcutTitle(
18854
18859
  lastSelectedExtension.name,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@servantcdh/ez-planet-labeling",
3
- "version": "1.0.12",
3
+ "version": "1.0.14",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",