@servantcdh/ez-planet-labeling 1.0.10 → 1.0.12

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/index.d.ts CHANGED
@@ -355,7 +355,9 @@ declare interface FilterState {
355
355
 
356
356
  export declare const getCanvasInstance: () => any;
357
357
 
358
- declare type IconName = (typeof iconSets)[number]["type"];
358
+ export declare function Icon({ iconType, size, className, style, fill }: IconType): JSX_2.Element;
359
+
360
+ export declare type IconName = (typeof iconSets)[number]["type"];
359
361
 
360
362
  declare const iconSets: readonly [{
361
363
  readonly type: "icon-home";
@@ -1015,6 +1017,13 @@ declare const iconSets: readonly [{
1015
1017
  readonly d: readonly ["M15 2.25029C15.4142 2.25029 15.75 2.58608 15.75 3.00029V11.0003C15.7498 11.9667 14.9664 12.7503 14 12.7503H9.11328L11.4727 14.6673C11.794 14.9284 11.8428 15.4005 11.582 15.722C11.3209 16.0434 10.8488 16.0924 10.5273 15.8313L7.00488 12.969C6.38951 12.4688 6.38937 11.5298 7.00488 11.0296L10.5273 8.16728C10.8487 7.90654 11.3209 7.95556 11.582 8.27666C11.843 8.59804 11.7938 9.07014 11.4727 9.33135L9.11133 11.2503H14C14.138 11.2503 14.2498 11.1382 14.25 11.0003V3.00029C14.25 2.58608 14.5858 2.25029 15 2.25029Z", "M4.41797 0.277637C4.67913 -0.0437912 5.15118 -0.092804 5.47266 0.168262L8.99512 3.03057C9.61068 3.5308 9.6107 4.46979 8.99512 4.97002L5.47266 7.83232C5.1512 8.09331 4.67911 8.04432 4.41797 7.72295C4.15692 7.4015 4.20599 6.92943 4.52734 6.66826L6.8877 4.75029H2C1.86193 4.75029 1.75 4.86222 1.75 5.00029V13.0003C1.74984 13.4144 1.41412 13.7503 1 13.7503C0.585884 13.7503 0.250159 13.4144 0.25 13.0003V5.00029C0.25 4.03379 1.0335 3.25029 2 3.25029H6.8877L4.52734 1.33232C4.20594 1.07119 4.15698 0.599109 4.41797 0.277637Z"];
1016
1018
  }];
1017
1019
 
1020
+ declare interface IconType extends UIType<"xxs" | "xs" | "sm" | "md" | "lg"> {
1021
+ iconType: IconName;
1022
+ className?: string;
1023
+ style?: string;
1024
+ fill?: string;
1025
+ }
1026
+
1018
1027
  /** Idle mutation state (not pending, no error). */
1019
1028
  export declare const IDLE_MUTATION: MutationState;
1020
1029
 
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.10",
3592
+ version: "1.0.12",
3593
3593
  author: LIB_AUTHOR,
3594
3594
  contact: LIB_CONTACT,
3595
3595
  license: "Proprietary — See LICENSE"
@@ -18306,6 +18306,7 @@ function WorkspaceFloatingToolbar({
18306
18306
  if (subButtonItem.variant === "button") {
18307
18307
  const {
18308
18308
  iconType: iconType2,
18309
+ renderIcon,
18309
18310
  title: title2,
18310
18311
  tooltip: tooltip2,
18311
18312
  variant: _variant2,
@@ -18319,7 +18320,7 @@ function WorkspaceFloatingToolbar({
18319
18320
  size: "md",
18320
18321
  ...title2 ? { title: title2 } : { style: "transparent" },
18321
18322
  ...subBtnProps,
18322
- children: iconType2 && /* @__PURE__ */ jsx(Icon, { iconType: iconType2, size: "sm" })
18323
+ children: renderIcon ? renderIcon() : iconType2 ? /* @__PURE__ */ jsx(Icon, { iconType: iconType2, size: "sm" }) : null
18323
18324
  },
18324
18325
  `${title2 ?? "button"}_${index2}`
18325
18326
  );
@@ -18435,6 +18436,7 @@ function WorkspaceFloatingToolbar({
18435
18436
  if (subButtonItem.variant === "button") {
18436
18437
  const {
18437
18438
  iconType: iconType2,
18439
+ renderIcon,
18438
18440
  title: title2,
18439
18441
  variant: _variant2,
18440
18442
  subButtonItems: _subButtons,
@@ -18447,7 +18449,7 @@ function WorkspaceFloatingToolbar({
18447
18449
  tooltip: title2,
18448
18450
  ...title2 ? { title: title2 } : { style: "transparent" },
18449
18451
  ...subBtnProps,
18450
- children: iconType2 && /* @__PURE__ */ jsx(Icon, { iconType: iconType2, size: "sm" })
18452
+ children: renderIcon ? renderIcon() : iconType2 ? /* @__PURE__ */ jsx(Icon, { iconType: iconType2, size: "sm" }) : null
18451
18453
  },
18452
18454
  `${title2 ?? "button"}_${index2}`
18453
18455
  );
@@ -26386,6 +26388,7 @@ function LabelingProviders({
26386
26388
  }
26387
26389
  export {
26388
26390
  IDLE_MUTATION,
26391
+ Icon,
26389
26392
  LabelingProviders,
26390
26393
  LabelingWorkspace,
26391
26394
  TOOL_INFO_SEGMENT_ANYTHING,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@servantcdh/ez-planet-labeling",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",