@leechanyong/ispark-ui 0.5.6 → 0.5.7

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
@@ -21,7 +21,7 @@ click: (event: MouseEvent) => any;
21
21
  }, string, PublicProps, Readonly<Props> & Readonly<{
22
22
  onClick?: ((event: MouseEvent) => any) | undefined;
23
23
  }>, {
24
- variant: "primary" | "primary-dark" | "primary-line" | "secondary" | "line-secondary" | "outline" | "ghost" | "dark" | "danger" | "success" | "warning" | "info";
24
+ variant: "primary" | "secondary" | "outline" | "ghost" | "danger";
25
25
  size: Size;
26
26
  shape: Shape;
27
27
  as: "button" | "a";
@@ -78,11 +78,14 @@ overlay: boolean;
78
78
  position: "right" | "left";
79
79
  open: boolean;
80
80
  width: string;
81
+ showFullscreen: boolean;
81
82
  closeOnOverlayClick: boolean;
82
83
  closeOnEscape: boolean;
83
84
  maxWidth: string;
84
85
  minWidth: string;
85
86
  resizable: boolean;
87
+ showResize: boolean;
88
+ confirmBeforeClose: boolean;
86
89
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
87
90
  drawerRef: HTMLElement;
88
91
  }, any>;
@@ -126,6 +129,7 @@ numberOnly: boolean;
126
129
  allowDecimal: boolean;
127
130
  allowNegative: boolean;
128
131
  decimals: number;
132
+ useComma: boolean;
129
133
  clearable: boolean;
130
134
  showPasswordToggle: boolean;
131
135
  searchAriaLabel: string;
@@ -218,6 +222,17 @@ declare type __VLS_PrettifyLocal<T> = {
218
222
  [K in keyof T]: T[K];
219
223
  } & {};
220
224
 
225
+ declare type __VLS_Props = {
226
+ /** Lucide 아이콘 이름 (kebab-case) */
227
+ name: string;
228
+ /** 토큰('xs'|'sm'|'md'|'lg') 또는 숫자(px) */
229
+ size?: string | number;
230
+ /** 색상 프리셋 */
231
+ color?: IconColor;
232
+ /** Lucide 선 두께 (1~3) */
233
+ strokeWidth?: number;
234
+ };
235
+
221
236
  declare function __VLS_template(): {
222
237
  attrs: Partial<{}>;
223
238
  slots: {
@@ -506,6 +521,16 @@ export declare interface DropdownMenuItemDef {
506
521
  disabled?: boolean;
507
522
  }
508
523
 
524
+ /** 파일 아이템 인터페이스 */
525
+ export declare interface FileItem {
526
+ id: number;
527
+ filename: string;
528
+ path: string;
529
+ mimetype: string;
530
+ }
531
+
532
+ export declare type IconColor = 'primary' | 'danger' | 'white' | 'black' | 'muted';
533
+
509
534
  export declare const INPUT_SIZES: readonly ["sm", "md", "lg", "auth"];
510
535
 
511
536
  export declare type InputSize = (typeof INPUT_SIZES)[number];
@@ -545,7 +570,7 @@ declare interface Props {
545
570
  /**
546
571
  * 시멘틱 variant — primary(강조) / secondary(보조) / ghost(트리거) / danger(파괴)
547
572
  */
548
- variant?: 'primary' | 'primary-dark' | 'primary-line' | 'secondary' | 'line-secondary' | 'outline' | 'ghost' | 'dark' | 'danger' | 'success' | 'warning' | 'info';
573
+ variant?: 'primary' | 'secondary' | 'outline' | 'ghost' | 'danger';
549
574
  /**
550
575
  * 사이즈 — xs(24px) / sm(28px) / md(32px·기본) / lg(40px)
551
576
  */
@@ -648,6 +673,8 @@ declare interface Props_12 {
648
673
  id?: string;
649
674
  /** maxLength 지정 시 우하단 'n / max' 카운터 표시. 기본 false */
650
675
  showCounter?: boolean;
676
+ /** 우상단 전체보기 버튼 표시. 기본 true */
677
+ expandable?: boolean;
651
678
  }
652
679
 
653
680
  declare interface Props_13 {
@@ -845,6 +872,12 @@ declare interface Props_2 {
845
872
  * 입력 즉시 초과 자릿수 제거. 예: `decimals=2` → "0.123" 입력 시 "0.12"로 자동 보정.
846
873
  */
847
874
  decimals?: number;
875
+ /**
876
+ * 천 단위 콤마 — `numberOnly=true`일 때 자동 적용.
877
+ * 입력/표시 시 "1,234,567" 형태로 포맷. emit 값은 숫자(콤마 제거).
878
+ * 기본값: `numberOnly=true`이면 자동 true.
879
+ */
880
+ useComma?: boolean;
848
881
  /**
849
882
  * 입력값 삭제 버튼 — 값이 비어있지 않고 disabled/readonly 아닐 때 우측 X 표시.
850
883
  * 클릭 시 값 비움 + input re-focus + `clear` 이벤트 발생.
@@ -870,6 +903,40 @@ declare interface Props_20 {
870
903
  closeOnOverlayClick?: boolean;
871
904
  closeOnEscape?: boolean;
872
905
  resizable?: boolean;
906
+ /** 1/2 프리셋 크기 버튼 표시 */
907
+ showResize?: boolean;
908
+ /** 전체화면 버튼 표시 */
909
+ showFullscreen?: boolean;
910
+ /** localStorage 저장 키 — 미지정 시 title 자동 사용 */
911
+ persistKey?: string;
912
+ /** 닫기 전 변경사항 확인 모달 표시 여부 (기본: true) */
913
+ confirmBeforeClose?: boolean;
914
+ }
915
+
916
+ declare interface Props_21 {
917
+ /** 파일 목록 */
918
+ files: FileItem[];
919
+ /** 파일 URL 생성 함수 */
920
+ getUrl: (path: string) => string;
921
+ /** 삭제 버튼 표시 여부 */
922
+ deletable?: boolean;
923
+ }
924
+
925
+ declare interface Props_22 {
926
+ /** 업로드 중 상태 */
927
+ loading?: boolean;
928
+ /** 허용 파일 형식 (예: 'image/*', '.pdf,.doc') */
929
+ accept?: string;
930
+ /** 버튼 라벨 */
931
+ label?: string;
932
+ /** 비활성화 */
933
+ disabled?: boolean;
934
+ }
935
+
936
+ declare interface Props_23 {
937
+ modelValue?: string;
938
+ editable?: boolean;
939
+ placeholder?: string;
873
940
  }
874
941
 
875
942
  declare interface Props_3 {
@@ -1000,6 +1067,8 @@ export declare interface TableColumn {
1000
1067
  filterable?: boolean;
1001
1068
  /** 필터 옵션 목록 — 첫 번째 항목(value='')을 '전체'로 사용 */
1002
1069
  filterOptions?: TableFilterOption[];
1070
+ /** 뷰포트가 이 px 이하일 때 칼럼 숨김 */
1071
+ hideBelow?: number;
1003
1072
  }
1004
1073
 
1005
1074
  export declare interface TableFilterOption {
@@ -1079,6 +1148,30 @@ export declare const UiDropdownMenu: __VLS_WithTemplateSlots_10<typeof __VLS_com
1079
1148
 
1080
1149
  export declare const UiEmpty: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
1081
1150
 
1151
+ export declare const UiFileList: DefineComponent<Props_21, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1152
+ delete: (file: FileItem) => any;
1153
+ }, string, PublicProps, Readonly<Props_21> & Readonly<{
1154
+ onDelete?: ((file: FileItem) => any) | undefined;
1155
+ }>, {
1156
+ deletable: boolean;
1157
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1158
+
1159
+ export declare const UiFileUpload: DefineComponent<Props_22, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1160
+ upload: (file: File) => any;
1161
+ }, string, PublicProps, Readonly<Props_22> & Readonly<{
1162
+ onUpload?: ((file: File) => any) | undefined;
1163
+ }>, {
1164
+ disabled: boolean;
1165
+ loading: boolean;
1166
+ label: string;
1167
+ accept: string;
1168
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLLabelElement>;
1169
+
1170
+ export declare const UiIcon: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
1171
+ size: string | number;
1172
+ strokeWidth: number;
1173
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1174
+
1082
1175
  export declare const UiInput: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
1083
1176
 
1084
1177
  export declare const UiLoading: DefineComponent<Props_8, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_8> & Readonly<{}>, {
@@ -1086,6 +1179,18 @@ text: string;
1086
1179
  overlay: boolean;
1087
1180
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1088
1181
 
1182
+ export declare const UiMarkdownEditor: DefineComponent<Props_23, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1183
+ "update:modelValue": (value: string) => any;
1184
+ }, string, PublicProps, Readonly<Props_23> & Readonly<{
1185
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
1186
+ }>, {
1187
+ modelValue: string;
1188
+ placeholder: string;
1189
+ editable: boolean;
1190
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
1191
+ sourceRef: HTMLTextAreaElement;
1192
+ }, HTMLDivElement>;
1193
+
1089
1194
  export declare const UiModal: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
1090
1195
 
1091
1196
  export declare const UiPagination: DefineComponent<Props_14, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
@@ -1188,6 +1293,8 @@ declare interface UiTableProps<TRow extends Record<string, unknown> = Record<str
1188
1293
  */
1189
1294
  selectedRowKey?: string;
1190
1295
  selectedRowValue?: unknown;
1296
+ /** 컬럼 세로 구분선 표시 여부 (기본: true) */
1297
+ bordered?: boolean;
1191
1298
  }
1192
1299
 
1193
1300
  export declare const UiTextarea: DefineComponent<Props_12, {
@@ -1219,8 +1326,10 @@ maxRows: number;
1219
1326
  radius: "sm" | "base" | "lg";
1220
1327
  spellcheck: boolean;
1221
1328
  showCounter: boolean;
1329
+ expandable: boolean;
1222
1330
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
1223
1331
  textareaRef: HTMLTextAreaElement;
1332
+ expandTextareaRef: HTMLTextAreaElement;
1224
1333
  }, HTMLDivElement>;
1225
1334
 
1226
1335
  export declare const UiToast: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;