@vmscloud/moz-ui-components-core 0.1.67 → 0.1.69

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 (94) hide show
  1. package/LICENSE-lucide.txt +43 -0
  2. package/MIGRATION.md +50 -0
  3. package/README.md +5 -0
  4. package/dist/components/button/button.core.d.ts +14 -1
  5. package/dist/components/button/circleLoader.d.ts +6 -0
  6. package/dist/components/button/index.d.ts +1 -1
  7. package/dist/components/callout/callout.core.d.ts +4 -0
  8. package/dist/components/callout/index.d.ts +2 -2
  9. package/dist/components/chip/chip.core.d.ts +4 -3
  10. package/dist/components/code-block/code-block.core.d.ts +39 -0
  11. package/dist/components/code-block/code-syntax.d.ts +24 -0
  12. package/dist/components/code-block/index.d.ts +13 -0
  13. package/dist/components/disclosure/disclosure.core.d.ts +37 -0
  14. package/dist/components/disclosure/index.d.ts +12 -0
  15. package/dist/components/gauge-display/gauge-display.core.d.ts +73 -0
  16. package/dist/components/gauge-display/index.d.ts +12 -0
  17. package/dist/components/icon/icon.core.d.ts +62 -0
  18. package/dist/components/icon/index.d.ts +10 -0
  19. package/dist/components/icon/lucide.generated.d.ts +869 -0
  20. package/dist/components/icon-button/icon-button.core.d.ts +50 -0
  21. package/dist/components/icon-button/index.d.ts +11 -0
  22. package/dist/components/input/index.d.ts +3 -2
  23. package/dist/components/input/input.core.d.ts +13 -0
  24. package/dist/components/link/index.d.ts +11 -0
  25. package/dist/components/link/link.core.d.ts +31 -0
  26. package/dist/components/metric-card/index.d.ts +11 -0
  27. package/dist/components/metric-card/metric-card.core.d.ts +36 -0
  28. package/dist/components/number-input/numberinput.core.d.ts +7 -0
  29. package/dist/components/popup/index.d.ts +1 -0
  30. package/dist/components/popup/popup.core.d.ts +14 -0
  31. package/dist/components/radio/radio.core.d.ts +2 -0
  32. package/dist/components/select/index.d.ts +1 -1
  33. package/dist/components/select/select.core.d.ts +8 -0
  34. package/dist/components/slider/slider.core.d.ts +1 -1
  35. package/dist/components/spinner/index.d.ts +10 -0
  36. package/dist/components/spinner/spinner.core.d.ts +33 -0
  37. package/dist/components/textarea/index.d.ts +1 -1
  38. package/dist/components/textarea/textarea.core.d.ts +21 -0
  39. package/dist/components/time-picker/index.d.ts +1 -1
  40. package/dist/components/time-picker/timepicker.core.d.ts +1 -1
  41. package/dist/components/tooltip/index.d.ts +1 -1
  42. package/dist/components/tooltip/tooltip.core.d.ts +19 -1
  43. package/dist/index.cjs +1109 -1002
  44. package/dist/index.cjs.map +1 -1
  45. package/dist/index.d.ts +8 -1
  46. package/dist/index.js +4807 -3823
  47. package/dist/index.js.map +1 -1
  48. package/dist/locale/types.d.ts +18 -0
  49. package/dist/styles/default/avatar.css +184 -1
  50. package/dist/styles/default/badge.css +195 -1
  51. package/dist/styles/default/breadcrumb.css +186 -3
  52. package/dist/styles/default/button.css +360 -1
  53. package/dist/styles/default/calendar.css +212 -1
  54. package/dist/styles/default/callout.css +262 -1
  55. package/dist/styles/default/checkbox.css +187 -1
  56. package/dist/styles/default/chip.css +235 -4
  57. package/dist/styles/default/codeblock.css +402 -0
  58. package/dist/styles/default/contextmenu.css +192 -9
  59. package/dist/styles/default/controller.css +185 -2
  60. package/dist/styles/default/dateinput.css +184 -1
  61. package/dist/styles/default/disclosure.css +360 -0
  62. package/dist/styles/default/emptystate.css +128 -0
  63. package/dist/styles/default/gaugedisplay.css +370 -0
  64. package/dist/styles/default/iconbutton.css +371 -0
  65. package/dist/styles/default/index.css +1525 -177
  66. package/dist/styles/default/input.css +223 -1
  67. package/dist/styles/default/label.css +184 -1
  68. package/dist/styles/default/link.css +332 -0
  69. package/dist/styles/default/metriccard.css +356 -0
  70. package/dist/styles/default/multiselect.css +213 -18
  71. package/dist/styles/default/notification.css +185 -2
  72. package/dist/styles/default/numberinput.css +219 -1
  73. package/dist/styles/default/popover.css +186 -3
  74. package/dist/styles/default/popup.css +269 -1
  75. package/dist/styles/default/radio.css +203 -1
  76. package/dist/styles/default/scrollarea.css +184 -1
  77. package/dist/styles/default/select.css +270 -21
  78. package/dist/styles/default/slider.css +285 -15
  79. package/dist/styles/default/spinner.css +348 -0
  80. package/dist/styles/default/splitpane.css +128 -0
  81. package/dist/styles/default/tab.css +192 -1
  82. package/dist/styles/default/tableselect.css +185 -2
  83. package/dist/styles/default/taginput.css +187 -4
  84. package/dist/styles/default/textarea.css +247 -3
  85. package/dist/styles/default/timepicker.css +209 -4
  86. package/dist/styles/default/toast.css +192 -2
  87. package/dist/styles/default/toggle.css +184 -1
  88. package/dist/styles/default/tooltip.css +198 -1
  89. package/dist/styles/default/treeselect.css +280 -12
  90. package/package.json +7 -2
  91. package/dist/components/password-input/index.d.ts +0 -7
  92. package/dist/components/password-input/passwordinput.core.d.ts +0 -35
  93. package/dist/styles/default/passwordinput.css +0 -9
  94. /package/dist/components/{password-input/icons.d.ts → input/passwordIcons.d.ts} +0 -0
@@ -0,0 +1,43 @@
1
+ ISC License
2
+
3
+ Copyright (c) 2026 Lucide Icons and Contributors
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted, provided that the above
7
+ copyright notice and this permission notice appear in all copies.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16
+
17
+ ---
18
+
19
+ The following Lucide icons are derived from the Feather project:
20
+
21
+ airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out
22
+
23
+ The MIT License (MIT) (for the icons listed above)
24
+
25
+ Copyright (c) 2013-present Cole Bemis
26
+
27
+ Permission is hereby granted, free of charge, to any person obtaining a copy
28
+ of this software and associated documentation files (the "Software"), to deal
29
+ in the Software without restriction, including without limitation the rights
30
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
31
+ copies of the Software, and to permit persons to whom the Software is
32
+ furnished to do so, subject to the following conditions:
33
+
34
+ The above copyright notice and this permission notice shall be included in all
35
+ copies or substantial portions of the Software.
36
+
37
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
38
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
39
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
40
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
41
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
42
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
43
+ SOFTWARE.
package/MIGRATION.md ADDED
@@ -0,0 +1,50 @@
1
+ # Select change 계약 이행 안내
2
+
3
+ > **Breaking change 준비 문서 — 게시·소비처 적용 완료 아님.** 최초 적용 릴리스의 정확 버전, 공급자/소비처 담당자, 공지일·적용 예정일은 **미정(확정 대기)**입니다. 현재 manifest 버전을 신규 계약 공개 버전으로 해석하지 마세요.
4
+
5
+ ## 대상과 변경
6
+
7
+ 대상은 `@vmscloud/moz-ui-components-core` 및 이를 사용하는 `@vmscloud/moz-ui-components-vue`, `@vmscloud/moz-ui-components-react`의 Select입니다. Select의 `change`를 TableSelect와 같은 `(value, originalItem|null)` 계약으로 사용합니다.
8
+
9
+ ```ts
10
+ // 이전: 둘째 인자를 테이블 키로 사용
11
+ (_, tableName) => { /* tableName === 'None' 등 업무 처리 */ }
12
+
13
+ // 신규: 첫째는 바인딩 값, 둘째는 원본 항목 또는 null
14
+ (tableName, item) => { /* tableName === 'None'; item은 null 가능 */ }
15
+
16
+ // 원본 항목을 쓰지 않으면
17
+ (tableName) => { /* 기존 업무 처리를 첫째 인자로 수행 */ }
18
+ ```
19
+
20
+ - 기본 키 바인딩: 첫째는 `keyProp` 값, 둘째는 `itemsSource`에서 그 키로 찾은 원본 항목 또는 `null`입니다.
21
+ - `useObjBinding=true`: 첫째는 모델 객체, 둘째는 그 키로 찾은 원본 항목 또는 `null`입니다. 둘째가 항상 문자열이거나 항상 객체라고 가정하지 마세요. Vue proxy 경계는 별도로 확인합니다.
22
+ - `0`/`false`는 유효 값입니다. `(first ?? second)` 같은 양쪽 계약 추측 shim을 사용하지 마세요.
23
+ - 모델 변경 감지 후 microtask에서 `change`가 발생하므로 클릭 전용 이벤트로 간주하지 마세요. `update:modelValue`와 이번 change 인자 이행은 별개입니다.
24
+
25
+ ## null/clear 주의
26
+
27
+ 모델의 null/undefined는 null로 정규화됩니다. 모델을 null로 비우고 변경이 감지되면 첫째는 null, 둘째는 null 키 조회 결과입니다. 일치 항목이 없으면 null이지만 **null 키 항목이 있으면 그 항목**이므로 `(null, null)`을 무조건 보장하지 않습니다. 미존재 키의 둘째 인자도 null 처리해야 합니다. 이는 모델 clear 경로 설명이며 별도 clear 버튼/API 지원을 뜻하지 않습니다.
28
+
29
+ `'None'`은 업무 옵션 문자열이지 null/clear가 아닙니다. mozart-cloud의 `ReportPropConfigMaster.vue`처럼 둘째 인자를 `'None'`과 비교하던 handler는 첫째 인자로 옮겨야 초기화가 누락되지 않습니다.
30
+
31
+ ## 원자적 적용과 롤백
32
+
33
+ 1. 릴리스 담당이 승인된 Core/Vue(React 사용 시 React 포함) 정확 버전, 실제 공개 artifact, source commit 및 Actions run을 확정합니다. Core 선게시와 wrapper 실제 의존 범위·해석 버전을 확인합니다. 이 문서에는 아직 존재하지 않는 릴리스 링크를 기재하지 않습니다.
34
+ 2. 소비처의 package manifest·lock과 영향받는 change handler를 **같은 변경·검증·배포 단위**로 적용합니다. handler 선변경 또는 package만 갱신하는 분리 배포는 금지합니다. named handler·동적 설정도 확인하되 model-only/native select는 무차별 변경하지 않습니다.
35
+ 3. 실제 신규 npm artifact로 `'None'` 초기화·일반 테이블 첫 컬럼 선택·비활성화, 키/객체 모드, 0/false, 미존재 키, null 키 예외, 모델 update/change 순서를 검증합니다. 타입 통과만으로 의미 호환성을 인증하지 않습니다.
36
+ 4. 문제 발생 시 **검증된 이전 패키지 조합(manifest·lock)과 이전 handler를 함께 복구**합니다. 적용/롤백 증거를 소비처 추적 문서에 기록합니다.
37
+
38
+ ## 전달 및 확정 대기
39
+
40
+ | 항목 | 상태 |
41
+ | --- | --- |
42
+ | 최초 적용 Core / Vue / React 버전 및 이전 조합 | 미정 — 릴리스 승인·artifact 확인 대기 |
43
+ | 공급자 릴리스 담당 / 소비처 유지보수 담당 | 미정 — 지정 대기 |
44
+ | 사전 공지일 / 수신 확인 / 적용 예정일 | 미정 — 직접 전달·확인 미수행 |
45
+ | source commit / Actions run / 공개 artifact 링크 | 미정 — 실제 게시 후 기록 |
46
+ | 소비처 적용·검증·롤백 결과 | 대기 — 이 준비 문서로 완료 판정하지 않음 |
47
+
48
+ 소비처 기록 위치: `mozart-cloud/.github/handoff/select-change-migration/README.md` (소비처 저장소 경로; 외부 링크는 게시 후 확정). 세 패키지의 MIGRATION.md는 동일 본문으로 관리합니다.
49
+
50
+ npm/pnpm update는 이 안내를 자동 팝업하지 않으며 Actions Summary도 수신을 보장하지 않습니다. 공급자 담당의 사전 전달과 소비처 수신·계획 확인, 게시 후 확정 버전/run 보완이 필요합니다. **현재 직접 통지·수신 확인은 미수행**입니다.
package/README.md ADDED
@@ -0,0 +1,5 @@
1
+ # @vmscloud/moz-ui-components-core
2
+
3
+ > **Breaking: Select change 계약 이행 준비** — 둘째 인자를 키로 사용하던 handler는 첫째 인자로 옮겨야 합니다.
4
+
5
+ [Select 이행 안내](./MIGRATION.md)를 먼저 확인하세요. 패키지·lock·handler는 함께 적용하고 함께 롤백합니다. 최초 적용 버전·담당자·일정은 미정(확정 대기)이며, 문서 준비는 게시 또는 소비처 적용 완료를 뜻하지 않습니다.
@@ -10,10 +10,12 @@ import { TemplateResult } from 'lit-html';
10
10
  * - width 가 :style(rem) 과 raw(var) 양쪽에 먹임.
11
11
  * - $attrs 패스스루(native click 버블 포함).
12
12
  */
13
- export type ButtonType = 'contained' | 'contained-large' | 'contained-small' | 'outline' | 'outline-small' | 'outline-icon' | 'ghost' | 'ghost-small' | 'ghost-xsmall' | 'contained-icon' | 'contained-icon-large' | 'contained-icon-small' | 'icon' | 'icon-active' | 'icon-accent' | 'text' | 'no-interaction' | 'default';
13
+ export type ButtonType = 'contained' | 'contained-critical' | 'contained-critical-weak' | 'contained-large' | 'contained-small' | 'outline' | 'outline-small' | 'outline-icon' | 'ghost' | 'ghost-small' | 'ghost-xsmall' | 'contained-icon' | 'contained-icon-large' | 'contained-icon-small' | 'icon' | 'icon-active' | 'icon-accent' | 'text' | 'no-interaction' | 'rail' | 'rail-home' | 'rail-profile' | 'default';
14
14
  /** Button 크기 어휘. 문서상 기본값은 medium 이지만 코드 defaults 에는 넣지 않는다(resolveButtonSize 참고). */
15
15
  export type ButtonSize = 'large' | 'medium' | 'small';
16
16
  export declare const BUTTON_SIZES: readonly ["large", "medium", "small"];
17
+ /** text Button 의 색 어휘. accent 는 기존 외형, neutral 은 중립 전경 + hover/active 행 바탕(VDP-020). */
18
+ export type ButtonTone = 'accent' | 'neutral';
17
19
  export type ButtonAction = 'Add' | 'Remove' | 'Edit' | 'Save' | 'Search' | 'Run' | 'Copy';
18
20
  export interface ButtonProps {
19
21
  action?: ButtonAction;
@@ -36,8 +38,19 @@ export interface ButtonProps {
36
38
  * 지정하지 않으면 type 별 기존 외형을 유지한다(`text` 는 13px 유지).
37
39
  */
38
40
  size?: ButtonSize;
41
+ /**
42
+ * `text` 전용 색. 생략·`'accent'` 는 기존 accent 외형, `'neutral'` 은 text-secondary 전경과
43
+ * hover/순간 active 의 muted-soft 바탕. text 외 type 과 알 수 없는 값은 무시한다(기존 외형).
44
+ */
45
+ tone?: ButtonTone;
39
46
  loading?: boolean;
40
47
  disabled?: boolean;
48
+ /**
49
+ * 지속 선택(토글) 상태. 소비자가 제어한다 — 코어는 click 만 emit 하고 스스로 바꾸지 않는다.
50
+ * boolean 이면 루트 button 의 `aria-pressed="true"|"false"` 로 출력되며 전달받은 raw `aria-pressed` 보다 우선한다.
51
+ * 생략하면 raw `aria-pressed` 를 그대로 두고, 최종값이 `"true"` 일 때만 선택 외형이 켜진다(`mixed` 는 외형 없음).
52
+ */
53
+ pressed?: boolean;
41
54
  /** 패스스루 (Vue $attrs / React className·style·rest) */
42
55
  class?: unknown;
43
56
  style?: unknown;
@@ -1,5 +1,11 @@
1
1
  import { TemplateResult } from 'lit-html';
2
2
 
3
+ /** Brand/Critical Solid: exact Figma 1966:388 / 1966:405 geometry and paint. */
4
+ export declare function brandSolidCircleLoader(): TemplateResult;
5
+ /** Side Toolbar rail (VDP-044): Brand Solid geometry and opacities in a fixed rail foreground role. */
6
+ export declare function railCircleLoader(fill: string): TemplateResult;
7
+ /** Critical Weak: Figma 1966:458, opaque pale track and danger progress. */
8
+ export declare function criticalWeakCircleLoader(): TemplateResult;
3
9
  /** CircleLoader.vue 의 lit-html 1:1 포팅 (내부 스피너). SVG path/색상 동일. */
4
10
  export interface CircleLoaderProps {
5
11
  circleClass?: string;
@@ -2,7 +2,7 @@ import { MozSpec } from '../../runtime/types';
2
2
  import { ButtonProps, ButtonEmits, ButtonApi } from './button.core';
3
3
 
4
4
  export { createButton, buttonTemplate, BUTTON_SIZES } from './button.core';
5
- export type { ButtonProps, ButtonEmits, ButtonApi, ButtonType, ButtonSize, ButtonAction, ButtonTemplateOptions } from './button.core';
5
+ export type { ButtonProps, ButtonEmits, ButtonApi, ButtonType, ButtonSize, ButtonTone, ButtonAction, ButtonTemplateOptions } from './button.core';
6
6
  export { circleLoader } from './circleLoader';
7
7
  export type { CircleLoaderProps } from './circleLoader';
8
8
  /**
@@ -18,7 +18,11 @@
18
18
  */
19
19
  export declare const CALLOUT_TONES: readonly ["info", "success", "warning", "danger", "neutral", "accent"];
20
20
  export type CalloutTone = (typeof CALLOUT_TONES)[number];
21
+ export declare const CALLOUT_MODES: readonly ["block", "inline", "banner"];
22
+ export type CalloutMode = (typeof CALLOUT_MODES)[number];
21
23
  export interface CalloutProps {
24
+ /** 표현. 기본/미지원 값은 block. inline/banner는 compact와 무관하게 한 줄 밀도를 쓴다. */
25
+ mode?: CalloutMode;
22
26
  /** 색 의미. 어휘 밖·미지정은 `info` */
23
27
  tone?: CalloutTone;
24
28
  /**
@@ -1,6 +1,6 @@
1
1
  import { MozSpec } from '../../runtime/types';
2
2
  import { CalloutProps, CalloutEmits } from './callout.core';
3
3
 
4
- export { createCallout, CALLOUT_TONES } from './callout.core';
5
- export type { CalloutProps, CalloutEmits, CalloutTone } from './callout.core';
4
+ export { createCallout, CALLOUT_TONES, CALLOUT_MODES } from './callout.core';
5
+ export type { CalloutProps, CalloutEmits, CalloutTone, CalloutMode } from './callout.core';
6
6
  export declare const CALLOUT_SPEC: MozSpec<CalloutProps, CalloutEmits, void>;
@@ -13,20 +13,21 @@
13
13
  *
14
14
  * 색 어휘는 Badge/Radio segment 와 같다 — `tone` 6종 → `data-tone`, `appearance`(비선택 룩)
15
15
  * outline|soft → `data-appearance`, 선택은 `.is-selected`. 어휘 밖 값은 기본값으로 정규화한다.
16
- * 기본 스타일에서 비제거형 `md` 높이는 28px, `sm` 및 제거 가능 칩은 24px이다.
16
+ * 기본 스타일에서 비제거형 높이는 sm 24px / md 28px / lg 32px, 제거형은 sm 24px / md·lg 32px이다.
17
+ * lg 는 Figma Large 1652:11056(사용자 결정 chip-large-api, 2026-11-03)이다.
17
18
  */
18
19
  export declare const CHIP_TONES: readonly ["accent", "neutral", "info", "success", "warning", "danger"];
19
20
  export type ChipTone = (typeof CHIP_TONES)[number];
20
21
  export declare const CHIP_APPEARANCES: readonly ["outline", "soft"];
21
22
  export type ChipAppearance = (typeof CHIP_APPEARANCES)[number];
22
- export declare const CHIP_SIZES: readonly ["sm", "md"];
23
+ export declare const CHIP_SIZES: readonly ["sm", "md", "lg"];
23
24
  export type ChipSize = (typeof CHIP_SIZES)[number];
24
25
  export interface ChipProps {
25
26
  /** 색 의미. 어휘 밖·미지정은 `accent` */
26
27
  tone?: ChipTone;
27
28
  /** 비선택 상태의 룩. 어휘 밖·미지정은 `outline` */
28
29
  appearance?: ChipAppearance;
29
- /** 크기 tier. 기본 스타일의 비제거형 높이는 sm 24px / md 28px, 제거형은 24px. 어휘 밖·미지정은 `md` */
30
+ /** 크기 tier. 기본 스타일의 비제거형 높이는 sm 24px / md 28px / lg 32px, 제거형은 sm 24px / md·lg 32px. 어휘 밖·미지정은 `md` */
30
31
  size?: ChipSize;
31
32
  /** 토글 칩의 선택 상태(제어형). removable 이면 무시 */
32
33
  selected?: boolean;
@@ -0,0 +1,39 @@
1
+ import { MozLocaleMessages } from '../../locale/types';
2
+
3
+ /**
4
+ * CodeBlock 코어 — 읽기 전용 코드 원문과 복사(ITSM-2026-004955, SW `CodeBlock`·`code-syntax` 기준).
5
+ *
6
+ * - 표시와 복사 텍스트는 `code` 원문 그대로다(공백·개행·마크업 모양 문자열 포함). 텍스트로만 그린다.
7
+ * - SQL·Python·JS/TS·JSON·Bash(별칭 포함)·diff/patch 는 구문 색 조각을 입힌다. 빈 값·미지원 언어·
8
+ * 20,000자 또는 500줄 초과·`plain` 은 원문 한 조각이다.
9
+ * - `plain`(아직 흘러 들어오는 초안)으로 그렸다가 `plain` 을 풀면 같은 `pre` 에서 색이 `--moz-dur-tint`(200ms)에
10
+ * 걸쳐 입혀진다. 처음부터 색으로 그린 블록은 전이가 없다. 모션 줄이기에서는 전이를 끈다(CSS).
11
+ * - `pre` 는 포커스 가능(tabindex 0)해서 긴 줄을 키보드로 가로 스크롤한다.
12
+ * - 복사 단추는 공용 IconButton(`copy`, sm)이며 접근 이름은 로케일 `CodeBlock.copy`(`{label} 복사`)다.
13
+ * `copy=false` 면 그리지 않는다. 쓰기 성공·거부를 `role="status"` 문구로 각각 알리고 `copy` 이벤트로 결과를 올린다.
14
+ */
15
+ export interface CodeBlockProps {
16
+ /** 코드 원문. 표시·복사 모두 이 문자열 그대로다. */
17
+ code?: string;
18
+ /** 언어 이름(sql·python·py·js·ts·json·bash·sh·diff·patch 등). 머리 줄에 표시하고 구문 색을 고른다. */
19
+ language?: string;
20
+ /** 머리 줄 이름(language 가 없을 때)이자 복사 단추 이름의 블록 이름. 생략하면 로케일 문구(코드). */
21
+ label?: string;
22
+ /** 단색 표시(흘러 들어오는 초안). 풀면 같은 pre 에서 색이 입혀진다. 기본 false. */
23
+ plain?: boolean;
24
+ /** 복사 단추 표시. 기본 true. false 면 단추를 두지 않는다(수락 전 초안). */
25
+ copy?: boolean;
26
+ /** 패스스루 — 루트 div 에 붙는다 */
27
+ class?: unknown;
28
+ style?: unknown;
29
+ [attr: string]: unknown;
30
+ }
31
+ export interface CodeBlockEmits {
32
+ /** 클립보드 쓰기 결과 — 성공 true, 거부·실패 false */
33
+ copy: [boolean];
34
+ }
35
+ type CodeBlockMessages = NonNullable<MozLocaleMessages['CodeBlock']>;
36
+ /** 로케일 문구 — 사전에 `CodeBlock` 이 없으면 한국어 기본값. */
37
+ export declare function codeBlockMessages(locale?: Partial<MozLocaleMessages> | null): CodeBlockMessages;
38
+ export declare const createCodeBlock: import('../..').CoreFactory<CodeBlockProps, CodeBlockEmits, void>;
39
+ export {};
@@ -0,0 +1,24 @@
1
+ /**
2
+ * 코드 블록 구문 색의 글자 나누기 (ITSM-2026-004955, SW `moz-sw/src/react/code-syntax.ts` 이관).
3
+ *
4
+ * 키워드·문자열·주석·숫자 네 가지와 diff 의 더한 줄·뺀 줄·구간 머리만 가른다. 모르는 언어는 나누지 않는다(색 없음).
5
+ * 코드 글 그대로를 쪼개므로 글자는 하나도 바뀌지 않는다(조각을 이으면 원문과 같다).
6
+ * 닫히지 않은 여러 줄 주석·문자열은 글 끝까지 한 조각이다(시간이 길이에 비례한다).
7
+ * 정규식 구분이라 문법을 정확히 읽지 못한다(중첩 템플릿·heredoc 등).
8
+ */
9
+ export type CodeTokenKind = 'kw' | 'str' | 'com' | 'num' | 'add' | 'del' | 'hunk';
10
+ export interface CodeToken {
11
+ text: string;
12
+ kind?: CodeTokenKind;
13
+ }
14
+ /** 구문 색을 입히는 언어 이름(별칭 포함, diff·patch 제외). */
15
+ export declare const CODE_LANGUAGES: readonly string[];
16
+ /**
17
+ * 색을 입히는 상한. 넘는 코드는 색 없이 원문 한 조각으로 둔다 — 수천 줄 코드에 토큰 span 수만 개를 한 번에 올리지 않는다.
18
+ */
19
+ export declare const CODE_SYNTAX_LIMIT: {
20
+ readonly chars: 20000;
21
+ readonly lines: 500;
22
+ };
23
+ /** 코드 글을 색 종류별 조각으로 나눈다. 조각을 이으면 원문과 정확히 같다. 모르는 언어·빈 글·상한 초과는 한 조각(색 없음)이다. */
24
+ export declare function tokenizeCode(code: string, name?: string): CodeToken[];
@@ -0,0 +1,13 @@
1
+ import { MozSpec } from '../../runtime/types';
2
+ import { CodeBlockProps, CodeBlockEmits } from './code-block.core';
3
+
4
+ export { createCodeBlock, codeBlockMessages } from './code-block.core';
5
+ export type { CodeBlockProps, CodeBlockEmits } from './code-block.core';
6
+ export { tokenizeCode, CODE_LANGUAGES, CODE_SYNTAX_LIMIT } from './code-syntax';
7
+ export type { CodeToken, CodeTokenKind } from './code-syntax';
8
+ /**
9
+ * CODE_BLOCK_SPEC — 코드 원문 표시·구문 색·복사. React·Vue 는 공용 브릿지 1줄로 찍는다
10
+ * (같은 Core 인스턴스가 `plain` 해제 전후 같은 `pre` 를 유지한다).
11
+ * (스타일: `styles/default/codeblock.css` + `button.css` + `iconbutton.css` + `tooltip.css`, 또는 기본 테마 배럴 `styles/default`)
12
+ */
13
+ export declare const CODE_BLOCK_SPEC: MozSpec<CodeBlockProps, CodeBlockEmits, void>;
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Disclosure 코어 — 머리 줄 하나로 본문을 펼치고 접는 단일 호출 조합(ITSM-2026-004955, SW `Disclosure` 기준).
3
+ *
4
+ * Collapsible 의 상태 규약(제어 `open`·비제어 `defaultOpen`, 다음 값 알림, `aria-expanded`/`aria-controls`,
5
+ * forceMount 패널의 `hidden`)에 SW 기본값·표제 구성을 얹는다. React·Vue 래퍼는 Collapsible·CollapsibleTrigger 와
6
+ * Button 을 조립하고, 이 코어는 프레임워크 없이 같은 DOM 을 그리는 Core 단독 경로다.
7
+ *
8
+ * DOM: `section.moz-disclosure > button.moz-button.moz-disclosure__summary[aria-expanded]` 와
9
+ * 직계 본문 `div.moz-disclosure__body`. 머리 줄 안에는 `.moz-disclosure__marker`(장식)·`.moz-disclosure__title`·
10
+ * `.moz-disclosure__meta` 가 순서대로 온다.
11
+ * - 기본 닫힘. 닫혀도 본문 DOM 은 남고(`hidden`) 입력한 값이 유지된다 — Collapsible 기본(언마운트)과 다르다.
12
+ * - 클릭·Enter·Space(실제 button) 한 번에 다음 상태를 `update:open` 으로 한 번 알린다. 제어형은 부모가 `open`
13
+ * 을 바꿀 때만 표시가 바뀐다.
14
+ */
15
+ export interface DisclosureProps {
16
+ /** 제어형 열림 상태. 주면 내부 상태 대신 이 값을 따른다. */
17
+ open?: boolean;
18
+ /** 비제어형 처음 열림 상태. 기본 false. */
19
+ defaultOpen?: boolean;
20
+ /** 머리 줄 제목(문자열). `title` slot 이 있으면 slot 이 우선한다. */
21
+ title?: string;
22
+ /** 머리 줄 끝의 짧은 보조 내용(개수·상태). `meta` slot 이 있으면 slot 이 우선한다. */
23
+ meta?: string;
24
+ /** 접힘 표시(▶/▼ 도형)를 그릴지. 기본 true. */
25
+ marker?: boolean;
26
+ /** 사용자 조작 비활성화(머리 줄 button disabled). */
27
+ disabled?: boolean;
28
+ /** 패스스루 — 루트 section 에 붙는다 */
29
+ class?: unknown;
30
+ style?: unknown;
31
+ [attr: string]: unknown;
32
+ }
33
+ export interface DisclosureEmits {
34
+ /** 머리 줄 조작으로 바뀔 다음 열림 상태(제어형·비제어형 모두) */
35
+ 'update:open': [boolean];
36
+ }
37
+ export declare const createDisclosure: import('../..').CoreFactory<DisclosureProps, DisclosureEmits, void>;
@@ -0,0 +1,12 @@
1
+ import { MozSpec } from '../../runtime/types';
2
+ import { DisclosureProps, DisclosureEmits } from './disclosure.core';
3
+
4
+ export { createDisclosure } from './disclosure.core';
5
+ export type { DisclosureProps, DisclosureEmits } from './disclosure.core';
6
+ /**
7
+ * DISCLOSURE_SPEC — Core 단독 소비자가 마운트하는 Disclosure 스펙(`title`·`meta`·`default` slot).
8
+ * React·Vue 는 같은 DOM 을 Collapsible·CollapsibleTrigger·Button 조립으로 그리는 전용 `Disclosure` 를 쓴다
9
+ * (제목·meta 노드와 본문이 소비자 트리 안에 남아 context 가 이어진다).
10
+ * (스타일: `styles/default/disclosure.css` + `button.css`, 또는 기본 테마 배럴 `styles/default`)
11
+ */
12
+ export declare const DISCLOSURE_SPEC: MozSpec<DisclosureProps, DisclosureEmits, void>;
@@ -0,0 +1,73 @@
1
+ /**
2
+ * GaugeDisplay 코어 — 소비자가 계산한 비율·경로·색으로 게이지를 그리는 표시 골격
3
+ * (ITSM-2026-004955, SW `GaugeDisplay` 기준). 차트 엔진을 쓰지 않는다.
4
+ *
5
+ * 비율·경곗값·등급·호 경로·숫자 형식은 소비자가 정해 입력으로 넘긴다. 이 코어는 그대로 그린다.
6
+ * DOM: `div.moz-gauge-display[data-gauge-shape][data-gauge-level] > label + div[data-gauge-body] + 하단`.
7
+ * - linear: 값 strong + 이름 있는 `<progress max=1>`(비율 0~1 로 자른다) + 범위 small.
8
+ * - semicircle·circle: `role="img"`·이름 있는 SVG. 트랙 경로 위에 비율이 0 보다 클 때만 채움 경로를 그린다.
9
+ * 가운데 값·단위, 선택 min/max 레이블. min 레이블이 없고 range 가 있으면 SVG 아래 범위 small.
10
+ * - `status`(조회 중·실패·대기 문구)가 있으면 본문은 `span[role=status]` 하나뿐이며 수치·게이지를 함께 그리지 않는다.
11
+ * - footer 는 상태와 무관하게 루트의 직계 자식으로 유지된다(소비자 `> small` 같은 배치 훅).
12
+ */
13
+ export type GaugeShape = 'linear' | 'semicircle' | 'circle';
14
+ export declare const GAUGE_SHAPES: readonly ["linear", "semicircle", "circle"];
15
+ export interface GaugeDisplayProps {
16
+ /** 제목. `title` slot 이 우선한다. */
17
+ title?: string;
18
+ /** 소비자가 형식화한 값 문자열(접근 이름·가운데 표시). */
19
+ value?: string;
20
+ /** 값 뒤 단위. */
21
+ unit?: string;
22
+ /** 범위 문구(예: `0 – 100`). `range` slot 이 우선한다. */
23
+ range?: string;
24
+ /** 원형 계열 왼쪽 아래 최솟값 레이블. 생략하면 그리지 않는다. */
25
+ minLabel?: string;
26
+ /** 원형 계열 오른쪽 아래 최댓값 레이블. 생략하면 그리지 않는다. */
27
+ maxLabel?: string;
28
+ /** 하단 문자열. `footer` slot 이 우선한다. */
29
+ footer?: string;
30
+ /** 조회 중·실패·대기 같은 상태 문구. 있으면 본문은 이 상태 하나만 그린다. `status` slot 이 우선한다. */
31
+ status?: string;
32
+ /** 모양. 기본 semicircle. */
33
+ shape?: GaugeShape;
34
+ /** 소비자 등급(`data-gauge-level`) — 스타일 훅이다. */
35
+ level?: string;
36
+ /** 채움 색(CSS 색·var()). 등급별 색은 소비자가 고른다. */
37
+ color?: string;
38
+ /** 채움 비율 0~1. 범위를 벗어나면 0·1 로 자른다. */
39
+ ratio?: number;
40
+ /** 원형 계열 트랙 경로 d(200×200 또는 200×128 좌표계). */
41
+ trackPath?: string;
42
+ /** 원형 계열 채움 경로 d. */
43
+ fillPath?: string;
44
+ /** 트랙 색. 기본 `var(--moz-color-border)`. */
45
+ trackColor?: string;
46
+ /** 패스스루 — 루트 div 에 붙는다 */
47
+ class?: unknown;
48
+ style?: unknown;
49
+ [attr: string]: unknown;
50
+ }
51
+ export interface GaugeDisplayEmits {
52
+ }
53
+ /** 0~1 로 자른 비율. 숫자가 아니면 0. */
54
+ export declare function gaugeRatio(ratio: unknown): number;
55
+ /** 알 수 없는 모양은 semicircle. */
56
+ export declare function gaugeShape(shape: unknown): GaugeShape;
57
+ /**
58
+ * 원형 계열 SVG 기하 — React·Vue 래퍼도 같은 값을 쓴다(SW 좌표 그대로).
59
+ * circle 은 200×200, semicircle 은 200×128 좌표계다.
60
+ */
61
+ export declare function gaugeGeometry(shape: GaugeShape): {
62
+ readonly viewBox: "0 0 200 200" | "0 0 200 128";
63
+ readonly valueY: 110 | 88;
64
+ readonly minX: 22 | 40;
65
+ readonly maxX: 160 | 178;
66
+ readonly labelY: 180 | 124;
67
+ readonly strokeWidth: 16;
68
+ };
69
+ /** 가운데 값 글자 크기(px) — 값·단위 길이에 맞춰 12~30 사이로 줄인다(SW 식). */
70
+ export declare function gaugeValueFontSize(value: string, unit?: unknown): number;
71
+ /** 원형 SVG 의 접근 이름 — `제목: 값단위`(문자열 제목·단위만). */
72
+ export declare function gaugeLabel(title: unknown, value: string, unit?: unknown): string;
73
+ export declare const createGaugeDisplay: import('../..').CoreFactory<GaugeDisplayProps, GaugeDisplayEmits, void>;
@@ -0,0 +1,12 @@
1
+ import { MozSpec } from '../../runtime/types';
2
+ import { GaugeDisplayProps, GaugeDisplayEmits } from './gauge-display.core';
3
+
4
+ export { createGaugeDisplay, gaugeRatio, gaugeShape, gaugeGeometry, gaugeValueFontSize, gaugeLabel, GAUGE_SHAPES, } from './gauge-display.core';
5
+ export type { GaugeDisplayProps, GaugeDisplayEmits, GaugeShape } from './gauge-display.core';
6
+ /**
7
+ * GAUGE_DISPLAY_SPEC — Core 단독 소비자가 마운트하는 GaugeDisplay 스펙(`title`·`range`·`status`·`footer` slot).
8
+ * React(노드 props)·Vue(이름 slot)는 같은 DOM·기하(`gaugeGeometry`)를 직접 그리는 전용 `GaugeDisplay` 를 쓴다 —
9
+ * 본문(`[data-gauge-body]`)·하단이 루트 직계 자식이어야 하는 소비자 배치 훅을 지키기 위해서다.
10
+ * (스타일: `styles/default/gaugedisplay.css`, 또는 기본 테마 배럴 `styles/default`)
11
+ */
12
+ export declare const GAUGE_DISPLAY_SPEC: MozSpec<GaugeDisplayProps, GaugeDisplayEmits, void>;
@@ -0,0 +1,62 @@
1
+ import { nothing, TemplateResult } from 'lit-html';
2
+ import { LUCIDE_ICONS, LUCIDE_VERSION, IconNode } from './lucide.generated';
3
+
4
+ /**
5
+ * 공용 아이콘 — Lucide 선 아이콘 88종(ITSM-2026-004955). 데이터는 `lucide.generated.ts` 하나가 정본이며
6
+ * Core(lit)·React·Vue 가 같은 도형·속성 순서를 그대로 그린다. 고지는 패키지 루트 `LICENSE-lucide.txt`.
7
+ *
8
+ * 모양은 24 격자 선 아이콘, 색은 `currentColor` 다. 기본 16px·획 1.5 이며 호출처가 바꾼다.
9
+ * `title` 이 없으면 장식(aria-hidden·포커스 제외), 있으면 `role="img"` 와 접근 이름을 가진다.
10
+ * 등록되지 않은 이름(빈 문자열·상속 키 포함)은 SVG 를 그리지 않는다.
11
+ */
12
+ export type { IconNode };
13
+ export type IconName = keyof typeof LUCIDE_ICONS;
14
+ export declare const ICONS: Readonly<Record<IconName, IconNode>>;
15
+ /** 공개 이름 전체(이름순). 문서·선택 UI 가 목록을 직접 만들지 않게 한다. */
16
+ export declare const ICON_NAMES: readonly IconName[];
17
+ export { LUCIDE_VERSION };
18
+ /** 기본 크기(px)·획. React·Vue 래퍼도 이 값을 쓴다. */
19
+ export declare const ICON_DEFAULT_SIZE = 16;
20
+ export declare const ICON_DEFAULT_STROKE_WIDTH = 1.5;
21
+ /** 아이콘 이름이 공용 목록에 있는지. 자체 키만 인정한다(`toString`·`__proto__` 같은 상속 키는 false). */
22
+ export declare function hasIcon(name: unknown): name is IconName;
23
+ /** 의미 있는 title 인지 — 공백만 있으면 장식으로 본다. */
24
+ export declare function iconTitle(title: unknown): string | undefined;
25
+ export interface IconSvgOptions {
26
+ /** 표시 크기(px). 기본 16. */
27
+ size?: number;
28
+ /** 선 굵기(24 격자 기준). 기본 1.5. */
29
+ strokeWidth?: number;
30
+ class?: string;
31
+ /** 루트 svg 인라인 스타일(문자열 또는 객체). */
32
+ style?: unknown;
33
+ /** 있으면 `role="img"`·접근 이름을 가진다. 없으면 장식(aria-hidden)이다. */
34
+ title?: string;
35
+ }
36
+ /**
37
+ * 루트 `<svg>` 속성 — 순서까지 Core·React·Vue 가 같게 그린다(React 는 같은 이름을 JSX 표기로 옮긴다).
38
+ * 접근 의미 속성은 title 유무로 갈린다.
39
+ */
40
+ export declare function iconRootAttributes({ size, strokeWidth, title }?: IconSvgOptions): Record<string, string>;
41
+ /**
42
+ * lit 템플릿용 `<svg>`. 등록되지 않은 이름은 `nothing` 이다.
43
+ * `rest` 는 루트 svg 로 패스스루할 추가 속성(data-* 등)이다.
44
+ */
45
+ export declare function iconSvg(name: IconName, options?: IconSvgOptions, rest?: Record<string, unknown>): TemplateResult | typeof nothing;
46
+ export interface IconProps {
47
+ /** 공용 아이콘 이름(kebab-case, 대소문자 구분). 목록에 없으면 아무것도 그리지 않는다. */
48
+ name: IconName;
49
+ /** 표시 크기(px). 기본 16. */
50
+ size?: number;
51
+ /** 선 굵기(24 격자 기준). 기본 1.5. */
52
+ strokeWidth?: number;
53
+ /** 있으면 `role="img"`·접근 이름을 가진다. 없으면 장식(aria-hidden·포커스 제외)이다. */
54
+ title?: string;
55
+ /** 패스스루 (Vue $attrs / React className·rest) */
56
+ class?: unknown;
57
+ style?: unknown;
58
+ [attr: string]: unknown;
59
+ }
60
+ export interface IconEmits {
61
+ }
62
+ export declare const createIcon: import('../..').CoreFactory<IconProps, IconEmits, void>;
@@ -0,0 +1,10 @@
1
+ import { MozSpec } from '../../runtime/types';
2
+ import { IconProps, IconEmits } from './icon.core';
3
+
4
+ export { createIcon, iconSvg, iconRootAttributes, iconTitle, hasIcon, ICONS, ICON_NAMES, ICON_DEFAULT_SIZE, ICON_DEFAULT_STROKE_WIDTH, LUCIDE_VERSION, } from './icon.core';
5
+ export type { IconProps, IconEmits, IconName, IconNode, IconSvgOptions } from './icon.core';
6
+ /**
7
+ * ICON_SPEC — Core 단독 소비자가 마운트하는 공용 아이콘 스펙.
8
+ * React·Vue 는 브릿지 호스트 없이 `<svg>` 를 직접 그리는 전용 `Icon` 을 쓴다(같은 ICONS·속성 순서).
9
+ */
10
+ export declare const ICON_SPEC: MozSpec<IconProps, IconEmits>;