sellmate-design-system-react 9.0.0-beta.68 → 9.0.0-beta.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.
- package/AGENTS.md +1 -1
- package/dist/components/SContextAlert/README.md +3 -2
- package/dist/components/SContextAlert/SContextAlert.d.ts +15 -2
- package/dist/components/SContextAlert/contextAlert.config.d.ts +0 -7
- package/dist/components/SContextAlert/index.d.ts +1 -1
- package/dist/index.cjs +3 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -12
- package/dist/index.js.map +1 -1
- package/dist/llms-full.txt +4 -3
- package/dist/llms.txt +1 -1
- package/package.json +1 -1
package/AGENTS.md
CHANGED
|
@@ -706,7 +706,7 @@ Tailwind 유틸리티는 **토큰 스케일에 있는 값만** 사용한다.
|
|
|
706
706
|
- **`SContextAlert` 는 대상 옆에 둔다.** 페이지 맨 위에 놓고 "아래 어딘가의 이야기"를 하면 그건 `SCallout` 이 할 일이다.
|
|
707
707
|
- **`action` 에는 `SButton size="xs"` 를 넣는다.** 그 높이가 곧 상자의 콘텐츠 높이라, 더 큰 버튼을 넣으면 상자가 세로로 늘어나 한 줄 알림의 리듬이 깨진다. 버튼이 둘 이상 필요하면 한 줄로 끝날 이야기가 아니다 — 모달(§3-3)을 본다.
|
|
708
708
|
- **`messages` 는 줄을 나누는 용도지 문장을 자르는 용도가 아니다.** 한 문장이 길어 넘치는 것은 그냥 두면 줄바꿈된다. 서로 다른 사실일 때만 배열로 나눈다.
|
|
709
|
-
- **아이콘은
|
|
709
|
+
- **아이콘은 기본적으로 없다.** `icon` 을 주지 않으면 아이콘 칸 자체가 없고, 알림의 성격은 면 색이 말한다. 붙이기로 했다면 인텐트 6종 모두 같은 글리프(`notificationOutline`) 하나를 쓴다 — 인텐트마다 아이콘을 바꾸면 면의 색과 아이콘의 뜻이 따로 논다. 색도 같다: `iconColor` 는 아이콘이 성격까지 말해야 하는 자리에서만 쓰고, 면 색에 맞춰 인텐트마다 바꾸지 않는다.
|
|
710
710
|
|
|
711
711
|
### 3-3. 플로팅/오버레이류
|
|
712
712
|
|
|
@@ -8,9 +8,10 @@
|
|
|
8
8
|
|
|
9
9
|
| Prop | Type | Default | Description |
|
|
10
10
|
|------|------|---------|-------------|
|
|
11
|
-
| `intent?` | `SContextAlertIntent` | `'default'` | 알림의 성격 — 면과 테두리
|
|
11
|
+
| `intent?` | `SContextAlertIntent` | `'default'` | 알림의 성격 — 면과 테두리 색만 바뀐다. 본문색과 아이콘 기본색은 인텐트와 무관하게 하나다. `default` 안내 · `danger` 오류 · `warning` 주의 · `success` 완료 · `accent` 강조 · `discovery` 새 기능 |
|
|
12
12
|
| `messages?` | `string[]` | `[]` | 본문. 각 문자열이 한 줄이 되고, 인라인 HTML(`<b>` · `<a>` 등)을 허용한다 — `sanitizeInlineHtml` 로 살균한 뒤 렌더하므로 스크립트·위험 스킴은 제거된다. |
|
|
13
|
-
| `icon?` | `SIconName` |
|
|
13
|
+
| `icon?` | `SIconName` | — | 왼쪽 아이콘. **주지 않으면 아이콘 칸 자체가 없다** — 넣을 때만 넣는다. 넣는다면 인텐트와 무관하게 원 안 느낌표(`notificationOutline`) 하나를 쓴다. 인텐트마다 다른 글리프를 고르면 면의 색과 아이콘의 뜻이 따로 논다. |
|
|
14
|
+
| `iconColor?` | `SColor` | — | 아이콘 색. 팔레트 키(`grey_65`, `red_95` …) 또는 임의 CSS 색상. 주지 않으면 본문보다 한 단계 옅은 기본색이 된다 — 인텐트와 무관하게 하나다. 면 색과 짝을 맞추려 인텐트마다 다른 색을 넣는 것은 시안의 규칙이 아니다. |
|
|
14
15
|
| `action?` | `ReactNode` | — | 오른쪽에 붙는 후속 동작. **`SButton size="xs"` 를 넣는다** — 그 높이(24px)가 곧 이 상자의 콘텐츠 높이라 시안의 40px 가 그대로 나온다. 더 큰 버튼을 넣으면 상자가 그만큼 세로로 늘어난다. |
|
|
15
16
|
| `className?` | `string` | — | |
|
|
16
17
|
| `style?` | `CSSProperties` | — | |
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { type CSSProperties, type ReactNode } from 'react';
|
|
2
|
+
import { type SColor } from '../../lib/color';
|
|
2
3
|
import { type SIconName } from '../SIcon';
|
|
3
4
|
import { type SContextAlertIntent } from './contextAlert.config';
|
|
4
5
|
export interface SContextAlertProps {
|
|
5
6
|
/**
|
|
6
|
-
* 알림의 성격 — 면과 테두리
|
|
7
|
+
* 알림의 성격 — 면과 테두리 색만 바뀐다. 본문색과 아이콘 기본색은 인텐트와 무관하게 하나다.
|
|
7
8
|
*
|
|
8
9
|
* `default` 안내 · `danger` 오류 · `warning` 주의 · `success` 완료 · `accent` 강조 · `discovery` 새 기능
|
|
9
10
|
*/
|
|
@@ -13,8 +14,20 @@ export interface SContextAlertProps {
|
|
|
13
14
|
* `sanitizeInlineHtml` 로 살균한 뒤 렌더하므로 스크립트·위험 스킴은 제거된다.
|
|
14
15
|
*/
|
|
15
16
|
messages?: string[];
|
|
16
|
-
/**
|
|
17
|
+
/**
|
|
18
|
+
* 왼쪽 아이콘. **주지 않으면 아이콘 칸 자체가 없다** — 넣을 때만 넣는다.
|
|
19
|
+
*
|
|
20
|
+
* 넣는다면 인텐트와 무관하게 원 안 느낌표(`notificationOutline`) 하나를 쓴다. 인텐트마다
|
|
21
|
+
* 다른 글리프를 고르면 면의 색과 아이콘의 뜻이 따로 논다.
|
|
22
|
+
*/
|
|
17
23
|
icon?: SIconName;
|
|
24
|
+
/**
|
|
25
|
+
* 아이콘 색. 팔레트 키(`grey_65`, `red_95` …) 또는 임의 CSS 색상.
|
|
26
|
+
*
|
|
27
|
+
* 주지 않으면 본문보다 한 단계 옅은 기본색이 된다 — 인텐트와 무관하게 하나다. 면 색과 짝을
|
|
28
|
+
* 맞추려 인텐트마다 다른 색을 넣는 것은 시안의 규칙이 아니다.
|
|
29
|
+
*/
|
|
30
|
+
iconColor?: SColor;
|
|
18
31
|
/**
|
|
19
32
|
* 오른쪽에 붙는 후속 동작.
|
|
20
33
|
*
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { SIconName } from '../SIcon';
|
|
2
1
|
export declare const CONTEXT_ALERT_INTENTS: readonly ["default", "danger", "warning", "success", "accent", "discovery"];
|
|
3
2
|
export type SContextAlertIntent = (typeof CONTEXT_ALERT_INTENTS)[number];
|
|
4
3
|
/**
|
|
@@ -13,12 +12,6 @@ export declare const CONTEXT_ALERT_SURFACE: Record<SContextAlertIntent, {
|
|
|
13
12
|
bg: string;
|
|
14
13
|
border: string;
|
|
15
14
|
}>;
|
|
16
|
-
/**
|
|
17
|
-
* 기본 아이콘 — 원 안 느낌표.
|
|
18
|
-
*
|
|
19
|
-
* 시안은 인텐트 6종 모두 같은 글리프를 쓴다. 인텐트마다 아이콘을 바꾸는 매핑은 없다.
|
|
20
|
-
*/
|
|
21
|
-
export declare const CONTEXT_ALERT_DEFAULT_ICON: SIconName;
|
|
22
15
|
/**
|
|
23
16
|
* 아이콘 색 — 본문(`--cmp-contextAlert-content`)보다 한 단계 옅다.
|
|
24
17
|
*
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { SContextAlert, type SContextAlertProps } from './SContextAlert';
|
|
2
|
-
export { CONTEXT_ALERT_INTENTS, CONTEXT_ALERT_SURFACE,
|
|
2
|
+
export { CONTEXT_ALERT_INTENTS, CONTEXT_ALERT_SURFACE, CONTEXT_ALERT_ICON_COLOR, type SContextAlertIntent, } from './contextAlert.config';
|
package/dist/index.cjs
CHANGED
|
@@ -8288,16 +8288,8 @@ var CONTEXT_ALERT_SURFACE = {
|
|
|
8288
8288
|
border: "var(--cmp-contextAlert-discovery-border)"
|
|
8289
8289
|
}
|
|
8290
8290
|
};
|
|
8291
|
-
var CONTEXT_ALERT_DEFAULT_ICON = "notificationOutline";
|
|
8292
8291
|
var CONTEXT_ALERT_ICON_COLOR = "var(--sys-color-fg-tertiary)";
|
|
8293
|
-
var SContextAlert = /* @__PURE__ */ react.forwardRef(function SContextAlert2({
|
|
8294
|
-
intent = "default",
|
|
8295
|
-
messages = [],
|
|
8296
|
-
icon = CONTEXT_ALERT_DEFAULT_ICON,
|
|
8297
|
-
action: action2,
|
|
8298
|
-
className,
|
|
8299
|
-
style
|
|
8300
|
-
}, ref) {
|
|
8292
|
+
var SContextAlert = /* @__PURE__ */ react.forwardRef(function SContextAlert2({ intent = "default", messages = [], icon, iconColor, action: action2, className, style }, ref) {
|
|
8301
8293
|
const surface = CONTEXT_ALERT_SURFACE[intent];
|
|
8302
8294
|
const vars = {
|
|
8303
8295
|
"--ca-bg": surface.bg,
|
|
@@ -8317,12 +8309,12 @@ var SContextAlert = /* @__PURE__ */ react.forwardRef(function SContextAlert2({
|
|
|
8317
8309
|
),
|
|
8318
8310
|
style: { ...vars, ...style },
|
|
8319
8311
|
children: [
|
|
8320
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8312
|
+
icon && /* @__PURE__ */ jsxRuntime.jsx(
|
|
8321
8313
|
SIcon,
|
|
8322
8314
|
{
|
|
8323
8315
|
name: icon,
|
|
8324
8316
|
size: "var(--cmp-contextAlert-icon)",
|
|
8325
|
-
color: CONTEXT_ALERT_ICON_COLOR,
|
|
8317
|
+
color: iconColor || CONTEXT_ALERT_ICON_COLOR,
|
|
8326
8318
|
className: "shrink-0"
|
|
8327
8319
|
}
|
|
8328
8320
|
),
|
|
@@ -27577,7 +27569,6 @@ exports.CHAT_MESSAGE_READ_STATUSES = CHAT_MESSAGE_READ_STATUSES;
|
|
|
27577
27569
|
exports.CHAT_MESSAGE_VARIANTS = CHAT_MESSAGE_VARIANTS;
|
|
27578
27570
|
exports.CHIP_COLORS = CHIP_COLORS;
|
|
27579
27571
|
exports.COLOR_KEYS = COLOR_KEYS;
|
|
27580
|
-
exports.CONTEXT_ALERT_DEFAULT_ICON = CONTEXT_ALERT_DEFAULT_ICON;
|
|
27581
27572
|
exports.CONTEXT_ALERT_ICON_COLOR = CONTEXT_ALERT_ICON_COLOR;
|
|
27582
27573
|
exports.CONTEXT_ALERT_INTENTS = CONTEXT_ALERT_INTENTS;
|
|
27583
27574
|
exports.CONTEXT_ALERT_SURFACE = CONTEXT_ALERT_SURFACE;
|