@ceed/cds 1.22.3 → 1.22.5
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/components/data-display/InfoSign.md +74 -91
- package/dist/components/data-display/Typography.md +363 -63
- package/dist/components/feedback/CircularProgress.md +257 -0
- package/dist/components/feedback/Skeleton.md +280 -0
- package/dist/components/feedback/llms.txt +2 -0
- package/dist/components/inputs/ButtonGroup.md +115 -104
- package/dist/components/inputs/CurrencyInput.md +181 -8
- package/dist/components/inputs/DatePicker.md +108 -436
- package/dist/components/inputs/DateRangePicker.md +130 -496
- package/dist/components/inputs/FilterableCheckboxGroup.md +141 -20
- package/dist/components/inputs/FormControl.md +361 -0
- package/dist/components/inputs/IconButton.md +137 -88
- package/dist/components/inputs/Input.md +203 -77
- package/dist/components/inputs/MonthPicker.md +95 -427
- package/dist/components/inputs/MonthRangePicker.md +89 -471
- package/dist/components/inputs/PercentageInput.md +183 -19
- package/dist/components/inputs/RadioButton.md +163 -35
- package/dist/components/inputs/RadioList.md +241 -0
- package/dist/components/inputs/RadioTileGroup.md +146 -62
- package/dist/components/inputs/Select.md +219 -328
- package/dist/components/inputs/Slider.md +334 -0
- package/dist/components/inputs/Switch.md +143 -376
- package/dist/components/inputs/Textarea.md +209 -11
- package/dist/components/inputs/Uploader/Uploader.md +145 -66
- package/dist/components/inputs/llms.txt +3 -0
- package/dist/components/navigation/Breadcrumbs.md +57 -308
- package/dist/components/navigation/Drawer.md +180 -0
- package/dist/components/navigation/Dropdown.md +98 -215
- package/dist/components/navigation/IconMenuButton.md +40 -502
- package/dist/components/navigation/InsetDrawer.md +281 -650
- package/dist/components/navigation/Link.md +31 -348
- package/dist/components/navigation/Menu.md +92 -285
- package/dist/components/navigation/MenuButton.md +55 -448
- package/dist/components/navigation/Pagination.md +47 -338
- package/dist/components/navigation/Stepper.md +160 -28
- package/dist/components/navigation/Tabs.md +57 -316
- package/dist/components/surfaces/Accordions.md +49 -804
- package/dist/components/surfaces/Card.md +97 -157
- package/dist/components/surfaces/Divider.md +83 -234
- package/dist/components/surfaces/Sheet.md +152 -327
- package/dist/guides/ThemeProvider.md +89 -0
- package/dist/guides/llms.txt +9 -0
- package/dist/llms.txt +8 -0
- package/package.json +1 -1
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
## Introduction
|
|
4
4
|
|
|
5
|
-
InfoSign
|
|
5
|
+
InfoSign is a compact tooltip-trigger component that displays a small question-mark icon. When users hover over or focus on the icon, a tooltip appears with supplementary information. It is designed to provide contextual help without cluttering the interface -- ideal for explaining form fields, settings options, table column headers, and complex metrics.
|
|
6
|
+
|
|
7
|
+
The component accepts a `message` prop for the tooltip content and a `placement` prop to control where the tooltip appears relative to the icon. InfoSign keeps the main UI clean while ensuring that detailed guidance is always one interaction away.
|
|
6
8
|
|
|
7
9
|
```tsx
|
|
8
10
|
<InfoSign
|
|
@@ -22,21 +24,19 @@ import { InfoSign } from '@ceed/cds';
|
|
|
22
24
|
|
|
23
25
|
function MyComponent() {
|
|
24
26
|
return (
|
|
25
|
-
<
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
</
|
|
27
|
+
<label>
|
|
28
|
+
Complex Setting
|
|
29
|
+
<InfoSign
|
|
30
|
+
message="This setting affects overall system performance. Consult an administrator before making changes."
|
|
31
|
+
/>
|
|
32
|
+
</label>
|
|
31
33
|
);
|
|
32
34
|
}
|
|
33
35
|
```
|
|
34
36
|
|
|
35
|
-
##
|
|
36
|
-
|
|
37
|
-
### Basic Usage
|
|
37
|
+
## Basic
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
The default InfoSign displays a question-mark icon that reveals a tooltip on hover or focus.
|
|
40
40
|
|
|
41
41
|
```tsx
|
|
42
42
|
<InfoSign
|
|
@@ -50,104 +50,87 @@ function MyComponent() {
|
|
|
50
50
|
### Form Field Help
|
|
51
51
|
|
|
52
52
|
```tsx
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
비밀번호 복잡도
|
|
56
|
-
<InfoSign
|
|
57
|
-
message="비밀번호는 최소 8자 이상이며, 대문자, 소문자, 숫자, 특수문자를 포함해야 합니다."
|
|
58
|
-
placement="top"
|
|
59
|
-
/>
|
|
60
|
-
</FormLabel>
|
|
61
|
-
<Input type="password" />
|
|
62
|
-
</FormControl>
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
### Settings Explanation
|
|
53
|
+
import { InfoSign } from '@ceed/cds';
|
|
54
|
+
import { FormControl, FormLabel, Input } from '@ceed/cds';
|
|
66
55
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
</
|
|
56
|
+
function PasswordField() {
|
|
57
|
+
return (
|
|
58
|
+
<FormControl>
|
|
59
|
+
<FormLabel>
|
|
60
|
+
Password
|
|
61
|
+
<InfoSign
|
|
62
|
+
message="Must be at least 8 characters and include uppercase, lowercase, number, and special character."
|
|
63
|
+
placement="top"
|
|
64
|
+
/>
|
|
65
|
+
</FormLabel>
|
|
66
|
+
<Input type="password" />
|
|
67
|
+
</FormControl>
|
|
68
|
+
);
|
|
69
|
+
}
|
|
77
70
|
```
|
|
78
71
|
|
|
79
|
-
###
|
|
72
|
+
### Table Column Header
|
|
80
73
|
|
|
81
74
|
```tsx
|
|
82
|
-
|
|
83
|
-
<CardContent>
|
|
84
|
-
<Typography level="title-md">
|
|
85
|
-
처리량 지표
|
|
86
|
-
<InfoSign
|
|
87
|
-
message="처리량은 최근 24시간 동안의 평균 요청 수를 나타냅니다. 이 값이 높을수록 시스템이 더 많은 작업을 처리하고 있다는 의미입니다."
|
|
88
|
-
placement="bottom"
|
|
89
|
-
/>
|
|
90
|
-
</Typography>
|
|
91
|
-
<Typography level="h2">1,234 req/min</Typography>
|
|
92
|
-
</CardContent>
|
|
93
|
-
</Card>
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
### Table Header Help
|
|
75
|
+
import { InfoSign } from '@ceed/cds';
|
|
97
76
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
77
|
+
function TableHeader() {
|
|
78
|
+
return (
|
|
79
|
+
<thead>
|
|
80
|
+
<tr>
|
|
81
|
+
<th>
|
|
82
|
+
User ID
|
|
83
|
+
<InfoSign message="Auto-generated unique identifier assigned by the system." />
|
|
84
|
+
</th>
|
|
85
|
+
<th>
|
|
86
|
+
Last Activity
|
|
87
|
+
<InfoSign message="The most recent login or action timestamp for this user." />
|
|
88
|
+
</th>
|
|
89
|
+
<th>Status</th>
|
|
90
|
+
</tr>
|
|
91
|
+
</thead>
|
|
92
|
+
);
|
|
93
|
+
}
|
|
114
94
|
```
|
|
115
95
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
### placement
|
|
119
|
-
|
|
120
|
-
툴팁이 나타나는 위치를 설정할 수 있습니다.
|
|
96
|
+
### Dashboard Metric Explanation
|
|
121
97
|
|
|
122
98
|
```tsx
|
|
123
|
-
|
|
124
|
-
<InfoSign placement="bottom" message="아래쪽에 표시" />
|
|
125
|
-
<InfoSign placement="left" message="왼쪽에 표시" />
|
|
126
|
-
<InfoSign placement="right" message="오른쪽에 표시" />
|
|
127
|
-
```
|
|
128
|
-
|
|
129
|
-
### message
|
|
99
|
+
import { InfoSign, Typography, Stack } from '@ceed/cds';
|
|
130
100
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
<
|
|
101
|
+
function MetricCard() {
|
|
102
|
+
return (
|
|
103
|
+
<Stack spacing={1}>
|
|
104
|
+
<Typography level="title-md">
|
|
105
|
+
Throughput
|
|
106
|
+
<InfoSign
|
|
107
|
+
message="Average requests per minute over the last 24 hours. Higher values indicate greater system load."
|
|
108
|
+
placement="right"
|
|
109
|
+
/>
|
|
110
|
+
</Typography>
|
|
111
|
+
<Typography level="h2">1,234 req/min</Typography>
|
|
112
|
+
</Stack>
|
|
113
|
+
);
|
|
114
|
+
}
|
|
135
115
|
```
|
|
136
116
|
|
|
137
117
|
## Best Practices
|
|
138
118
|
|
|
139
|
-
1
|
|
119
|
+
- **Keep messages concise.** Tooltip messages should be 1-2 sentences that quickly answer "what does this mean?" Avoid paragraphs of text.
|
|
120
|
+
- ✔ "Maximum file size per upload. Files exceeding this limit will be rejected."
|
|
121
|
+
- ✘ A multi-paragraph explanation with examples and edge cases
|
|
140
122
|
|
|
141
|
-
|
|
123
|
+
- **Place InfoSign directly adjacent to the element it explains.** Position it immediately after a label or header text so users can easily associate the help icon with the relevant field.
|
|
142
124
|
|
|
143
|
-
|
|
125
|
+
- **Do not overuse InfoSign.** Adding a help icon to every single field creates visual noise and suggests the interface itself is too confusing. Reserve it for genuinely complex or ambiguous items.
|
|
144
126
|
|
|
145
|
-
|
|
127
|
+
- **Choose placement that avoids overlap.** Use `placement="top"` or `placement="right"` for fields near the bottom of a viewport, and `placement="bottom"` for elements near the top.
|
|
146
128
|
|
|
147
|
-
|
|
129
|
+
- **Use InfoSign for supplementary information only.** Critical instructions or warnings should be displayed inline (e.g., with FormHelperText or Alert), not hidden behind a tooltip.
|
|
148
130
|
|
|
149
|
-
|
|
150
|
-
- 스크린 리더가 메시지 내용을 읽을 수 있습니다
|
|
151
|
-
- ARIA 라벨이 자동으로 적용됩니다
|
|
131
|
+
## Accessibility
|
|
152
132
|
|
|
153
|
-
InfoSign
|
|
133
|
+
- InfoSign is keyboard-focusable, allowing users to trigger the tooltip using **Tab** navigation without requiring a mouse.
|
|
134
|
+
- The tooltip content is announced by screen readers when the InfoSign receives focus, thanks to built-in ARIA attributes.
|
|
135
|
+
- The question-mark icon serves as a universally recognized visual cue for "more information," making it intuitive for all users.
|
|
136
|
+
- Ensure that the `message` text provides the same information available through other channels -- do not make the tooltip the only way to learn critical information.
|