@ceed/ads 1.25.1-next.3 → 1.27.0

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 (62) hide show
  1. package/dist/chunks/rehype-accent-FZRUD7VI.js +39 -0
  2. package/dist/components/CurrencyInput/CurrencyInput.d.ts +1 -1
  3. package/dist/components/CurrencyInput/hooks/use-currency-setting.d.ts +2 -2
  4. package/dist/components/DataTable/components.d.ts +2 -1
  5. package/dist/components/DataTable/hooks.d.ts +1 -1
  6. package/dist/components/DataTable/styled.d.ts +3 -1
  7. package/dist/components/DataTable/types.d.ts +11 -0
  8. package/dist/components/DataTable/utils.d.ts +2 -2
  9. package/dist/components/ProfileMenu/ProfileMenu.d.ts +1 -1
  10. package/dist/components/data-display/Badge.md +71 -39
  11. package/dist/components/data-display/DataTable.md +177 -1
  12. package/dist/components/data-display/InfoSign.md +74 -98
  13. package/dist/components/data-display/Typography.md +363 -97
  14. package/dist/components/feedback/CircularProgress.md +257 -0
  15. package/dist/components/feedback/Dialog.md +76 -62
  16. package/dist/components/feedback/Modal.md +259 -44
  17. package/dist/components/feedback/Skeleton.md +280 -0
  18. package/dist/components/feedback/llms.txt +2 -0
  19. package/dist/components/inputs/Autocomplete.md +356 -107
  20. package/dist/components/inputs/ButtonGroup.md +115 -106
  21. package/dist/components/inputs/Calendar.md +98 -459
  22. package/dist/components/inputs/CurrencyInput.md +183 -5
  23. package/dist/components/inputs/DatePicker.md +108 -431
  24. package/dist/components/inputs/DateRangePicker.md +131 -492
  25. package/dist/components/inputs/FilterMenu.md +169 -19
  26. package/dist/components/inputs/FilterableCheckboxGroup.md +123 -23
  27. package/dist/components/inputs/FormControl.md +361 -0
  28. package/dist/components/inputs/IconButton.md +137 -88
  29. package/dist/components/inputs/Input.md +5 -0
  30. package/dist/components/inputs/MonthPicker.md +95 -422
  31. package/dist/components/inputs/MonthRangePicker.md +89 -466
  32. package/dist/components/inputs/PercentageInput.md +185 -16
  33. package/dist/components/inputs/RadioButton.md +163 -35
  34. package/dist/components/inputs/RadioList.md +241 -0
  35. package/dist/components/inputs/RadioTileGroup.md +150 -61
  36. package/dist/components/inputs/Select.md +222 -326
  37. package/dist/components/inputs/Slider.md +334 -0
  38. package/dist/components/inputs/Switch.md +136 -376
  39. package/dist/components/inputs/Textarea.md +213 -10
  40. package/dist/components/inputs/Uploader/Uploader.md +145 -66
  41. package/dist/components/inputs/llms.txt +3 -0
  42. package/dist/components/navigation/Breadcrumbs.md +80 -322
  43. package/dist/components/navigation/Dropdown.md +92 -221
  44. package/dist/components/navigation/IconMenuButton.md +40 -502
  45. package/dist/components/navigation/InsetDrawer.md +68 -738
  46. package/dist/components/navigation/Link.md +39 -298
  47. package/dist/components/navigation/Menu.md +92 -285
  48. package/dist/components/navigation/MenuButton.md +55 -448
  49. package/dist/components/navigation/Pagination.md +47 -338
  50. package/dist/components/navigation/ProfileMenu.md +45 -268
  51. package/dist/components/navigation/Stepper.md +160 -28
  52. package/dist/components/navigation/Tabs.md +57 -316
  53. package/dist/components/surfaces/Sheet.md +151 -334
  54. package/dist/guides/ThemeProvider.md +116 -0
  55. package/dist/guides/llms.txt +9 -0
  56. package/dist/index.browser.js +16 -18
  57. package/dist/index.browser.js.map +4 -4
  58. package/dist/index.cjs +381 -244
  59. package/dist/index.js +459 -378
  60. package/dist/llms.txt +8 -0
  61. package/framer/index.js +1 -166
  62. package/package.json +15 -16
@@ -2,7 +2,9 @@
2
2
 
3
3
  ## Introduction
4
4
 
5
- ButtonGroup 컴포넌트는 관련된 버튼들을 그룹화하여 하나의 통합된 인터페이스로 표시합니다. 버튼들을 논리적으로 묶어서 시각적 일관성을 제공하고, 공간을 효율적으로 사용할 있게 해줍니다. 툴바, 액션 버튼 세트, 토글 그룹 등에 주로 사용됩니다.
5
+ ButtonGroup is a layout component that visually and semantically groups related buttons into a single cohesive unit. It automatically handles border merging, spacing, and consistent styling across all child buttons, making it ideal for toolbars, action sets, and segmented controls.
6
+
7
+ By applying shared props like `color`, `variant`, `size`, and `orientation` at the group level, you ensure visual consistency without having to repeat props on every individual button. ButtonGroup is built on top of Joy UI's ButtonGroup and inherits all of its capabilities.
6
8
 
7
9
  ```tsx
8
10
  <ButtonGroup {...args}>
@@ -28,37 +30,17 @@ import { ButtonGroup, Button } from '@ceed/ads';
28
30
  function MyComponent() {
29
31
  return (
30
32
  <ButtonGroup>
31
- <Button>첫번째</Button>
32
- <Button>두번째</Button>
33
- <Button>세번째</Button>
33
+ <Button>First</Button>
34
+ <Button>Second</Button>
35
+ <Button>Third</Button>
34
36
  </ButtonGroup>
35
37
  );
36
38
  }
37
39
  ```
38
40
 
39
- ## Examples
40
-
41
- ### Basic Usage
41
+ ## Colors
42
42
 
43
- 기본적인 ButtonGroup 사용법입니다.
44
-
45
- ```tsx
46
- <div style={{
47
- display: 'flex',
48
- gap: '2rem',
49
- flexDirection: 'column'
50
- }}>
51
- <ButtonGroup>
52
- <Button>첫번째</Button>
53
- <Button>두번째</Button>
54
- <Button>세번째</Button>
55
- </ButtonGroup>
56
- </div>
57
- ```
58
-
59
- ### Colors
60
-
61
- 다양한 색상을 적용할 수 있습니다.
43
+ Apply a unified color theme to all buttons in the group using the `color` prop. Available colors are `primary`, `neutral`, `danger`, `success`, and `warning`.
62
44
 
63
45
  ```tsx
64
46
  <div style={{
@@ -98,9 +80,9 @@ function MyComponent() {
98
80
  </div>
99
81
  ```
100
82
 
101
- ### Variants
83
+ ## Variants
102
84
 
103
- 다양한 스타일 변형을 제공합니다.
85
+ ButtonGroup supports four visual variants: `solid`, `soft`, `outlined`, and `plain`. The variant prop propagates to all child buttons, ensuring a consistent look.
104
86
 
105
87
  ```tsx
106
88
  <div style={{
@@ -134,9 +116,9 @@ function MyComponent() {
134
116
  </div>
135
117
  ```
136
118
 
137
- ### Sizes
119
+ ## Sizes
138
120
 
139
- 크기를 조절할 있습니다.
121
+ Control the size of all buttons in the group with the `size` prop. Available sizes are `sm`, `md` (default), and `lg`.
140
122
 
141
123
  ```tsx
142
124
  <div style={{
@@ -165,9 +147,9 @@ function MyComponent() {
165
147
  </div>
166
148
  ```
167
149
 
168
- ### Orientations
150
+ ## Orientations
169
151
 
170
- 수평(horizontal) 또는 수직(vertical) 방향으로 배치할 있습니다.
152
+ Buttons can be arranged horizontally (default) or vertically. Use `orientation="vertical"` for stacked layouts such as side panels or narrow containers.
171
153
 
172
154
  ```tsx
173
155
  <div style={{
@@ -195,9 +177,9 @@ function MyComponent() {
195
177
  </div>
196
178
  ```
197
179
 
198
- ### With Icons
180
+ ## With Icons
199
181
 
200
- 아이콘과 함께 사용할 있습니다.
182
+ Combine text labels with icons using the `startDecorator` prop on individual buttons for a richer, more descriptive interface.
201
183
 
202
184
  ```tsx
203
185
  <div style={{
@@ -219,49 +201,9 @@ function MyComponent() {
219
201
  </div>
220
202
  ```
221
203
 
222
- ### Action Groups
223
-
224
- 실제 사용 사례별 액션 그룹들입니다.
225
-
226
- ```tsx
227
- <div style={{
228
- display: 'flex',
229
- gap: '2rem',
230
- flexDirection: 'column'
231
- }}>
232
- <div>
233
- <h4>File Actions</h4>
234
- <ButtonGroup variant="outlined">
235
- <Button onClick={() => alert('Save')}>저장</Button>
236
- <Button onClick={() => alert('Save As')}>다른 이름으로 저장</Button>
237
- <Button onClick={() => alert('Export')}>내보내기</Button>
238
- </ButtonGroup>
239
- </div>
240
-
241
- <div>
242
- <h4>Text Formatting</h4>
243
- <ButtonGroup size="sm" variant="soft">
244
- <Button>B</Button>
245
- <Button>I</Button>
246
- <Button>U</Button>
247
- <Button>S</Button>
248
- </ButtonGroup>
249
- </div>
250
-
251
- <div>
252
- <h4>View Options</h4>
253
- <ButtonGroup color="neutral" variant="outlined">
254
- <Button>목록</Button>
255
- <Button>격자</Button>
256
- <Button>타일</Button>
257
- </ButtonGroup>
258
- </div>
259
- </div>
260
- ```
261
-
262
- ### States
204
+ ## States
263
205
 
264
- 다양한 상태를 표현할 있습니다.
206
+ ButtonGroup supports disabled states at the group level (affecting all children) or on individual buttons for mixed-state scenarios.
265
207
 
266
208
  ```tsx
267
209
  <div style={{
@@ -298,9 +240,9 @@ function MyComponent() {
298
240
  </div>
299
241
  ```
300
242
 
301
- ### Toggle Group
243
+ ## Toggle Group
302
244
 
303
- 선택 상태를 토글할 있는 버튼 그룹입니다.
245
+ By dynamically switching the `variant` prop on individual buttons based on selection state, you can create a segmented toggle control for exclusive selection patterns.
304
246
 
305
247
  ```tsx
306
248
  <div>
@@ -325,58 +267,125 @@ function MyComponent() {
325
267
  ### Toolbar Actions
326
268
 
327
269
  ```tsx
270
+ import { ButtonGroup, Button } from '@ceed/ads';
271
+ import SaveIcon from '@mui/icons-material/Save';
272
+ import UndoIcon from '@mui/icons-material/Undo';
273
+ import RedoIcon from '@mui/icons-material/Redo';
274
+
328
275
  <ButtonGroup variant="outlined">
329
- <Button startDecorator={<SaveIcon />}>저장</Button>
330
- <Button startDecorator={<UndoIcon />}>실행 취소</Button>
331
- <Button startDecorator={<RedoIcon />}>다시 실행</Button>
276
+ <Button startDecorator={<SaveIcon />}>Save</Button>
277
+ <Button startDecorator={<UndoIcon />}>Undo</Button>
278
+ <Button startDecorator={<RedoIcon />}>Redo</Button>
332
279
  </ButtonGroup>
333
280
  ```
334
281
 
335
- ### Text Formatting
282
+ ### View Switcher
336
283
 
337
284
  ```tsx
338
- <ButtonGroup size="sm" variant="soft">
339
- <Button onClick={() => format('bold')}>B</Button>
340
- <Button onClick={() => format('italic')}>I</Button>
341
- <Button onClick={() => format('underline')}>U</Button>
285
+ const [view, setView] = useState('list');
286
+
287
+ <ButtonGroup variant="outlined" color="neutral">
288
+ <Button
289
+ variant={view === 'list' ? 'solid' : 'outlined'}
290
+ onClick={() => setView('list')}
291
+ >
292
+ List
293
+ </Button>
294
+ <Button
295
+ variant={view === 'grid' ? 'solid' : 'outlined'}
296
+ onClick={() => setView('grid')}
297
+ >
298
+ Grid
299
+ </Button>
300
+ <Button
301
+ variant={view === 'card' ? 'solid' : 'outlined'}
302
+ onClick={() => setView('card')}
303
+ >
304
+ Card
305
+ </Button>
342
306
  </ButtonGroup>
343
307
  ```
344
308
 
345
- ### View Controls
309
+ ### Pagination Controls
346
310
 
347
311
  ```tsx
348
- <ButtonGroup color="neutral">
349
- <Button onClick={() => setView('list')}>목록</Button>
350
- <Button onClick={() => setView('grid')}>격자</Button>
351
- <Button onClick={() => setView('card')}>카드</Button>
312
+ <ButtonGroup variant="outlined" size="sm">
313
+ <Button disabled={page === 1} onClick={() => setPage(page - 1)}>
314
+ Previous
315
+ </Button>
316
+ <Button disabled>{page}</Button>
317
+ <Button onClick={() => setPage(page + 1)}>
318
+ Next
319
+ </Button>
352
320
  </ButtonGroup>
353
321
  ```
354
322
 
355
- ### Pagination
323
+ ## Best Practices
324
+
325
+ 1. **Group only related actions together.** Each ButtonGroup should represent a logically connected set of operations.
356
326
 
357
327
  ```tsx
328
+ // ✅ Related file operations grouped together
358
329
  <ButtonGroup variant="outlined">
359
- <Button disabled={page === 1} onClick={() => setPage(page - 1)}>
360
- 이전
361
- </Button>
362
- <Button onClick={() => setPage(page + 1)}>
363
- 다음
364
- </Button>
330
+ <Button>Save</Button>
331
+ <Button>Save As</Button>
332
+ <Button>Export</Button>
333
+ </ButtonGroup>
334
+
335
+ // ❌ Unrelated actions mixed in one group
336
+ <ButtonGroup>
337
+ <Button>Save</Button>
338
+ <Button>Delete Account</Button>
339
+ <Button>Help</Button>
365
340
  </ButtonGroup>
366
341
  ```
367
342
 
368
- ## Best Practices
343
+ 2. **Keep the button count between 2 and 5.** Too many buttons reduce clarity and overwhelm users.
344
+
345
+ ```tsx
346
+ // ✅ Concise group
347
+ <ButtonGroup>
348
+ <Button>Bold</Button>
349
+ <Button>Italic</Button>
350
+ <Button>Underline</Button>
351
+ </ButtonGroup>
369
352
 
370
- 1. **관련성**: 논리적으로 관련된 버튼들만 그룹화하세요.
353
+ // Too many options in a single group
354
+ <ButtonGroup>
355
+ <Button>Bold</Button>
356
+ <Button>Italic</Button>
357
+ <Button>Underline</Button>
358
+ <Button>Strikethrough</Button>
359
+ <Button>Superscript</Button>
360
+ <Button>Subscript</Button>
361
+ <Button>Code</Button>
362
+ </ButtonGroup>
363
+ ```
371
364
 
372
- 2. **일관성**: 그룹 내의 모든 버튼은 동일한 variant, size, color를 사용하는 것이 좋습니다.
365
+ 3. **Use consistent variant and color across the group.** Avoid overriding individual button styles unless implementing toggle selection.
373
366
 
374
- 3. **적절한 개수**: 너무 많은 버튼을 한 그룹에 포함하지 마세요. 일반적으로 2-5개가 적당합니다.
367
+ ```tsx
368
+ // ✅ Consistent styling via group props
369
+ <ButtonGroup variant="outlined" color="neutral">
370
+ <Button>A</Button>
371
+ <Button>B</Button>
372
+ </ButtonGroup>
373
+
374
+ // ❌ Mixed styles with no semantic reason
375
+ <ButtonGroup>
376
+ <Button variant="solid">A</Button>
377
+ <Button variant="outlined">B</Button>
378
+ <Button variant="plain">C</Button>
379
+ </ButtonGroup>
380
+ ```
375
381
 
376
- 4. **명확한 레이블**: 버튼의 기능을 명확하게 있는 레이블을 사용하세요.
382
+ 4. **Clearly indicate the active state in toggle groups.** Use a distinct variant (e.g., `solid` vs `outlined`) so users can immediately see which option is selected.
377
383
 
378
- 5. **접근성**: 키보드 탐색이 가능하도록 하고, 스크린 리더를 위한 적절한 레이블을 제공하세요.
384
+ 5. **Consider vertical orientation for narrow layouts.** On mobile or in sidebars, `orientation="vertical"` prevents horizontal overflow and improves usability.
379
385
 
380
- 6. **상태 관리**: 토글 그룹으로 사용할 때는 현재 선택된 상태를 시각적으로 명확히 표시하세요.
386
+ ## Accessibility
381
387
 
382
- 7. **반응형 디자인**: 작은 화면에서는 vertical orientation을 고려하거나 적절한 줄바꿈을 제공하세요.
388
+ - **Keyboard navigation**: All buttons within the group are focusable and navigable using the `Tab` key. Each button is a standard focusable element that responds to `Enter` and `Space`.
389
+ - **ARIA grouping**: Wrap the ButtonGroup in a container with `role="group"` and an `aria-label` when the group represents a distinct set of controls (e.g., text formatting toolbar).
390
+ - **Disabled state**: When the entire group is disabled, all child buttons receive `aria-disabled="true"` automatically, preventing interaction and communicating the state to assistive technologies.
391
+ - **Toggle groups**: When using ButtonGroup as a toggle, consider adding `aria-pressed` to each button to communicate the selection state to screen readers.