@ceed/ads 1.23.1 โ†’ 1.23.3

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.
@@ -148,6 +148,23 @@ function ArticlePage() {
148
148
  </Stack>
149
149
  ```
150
150
 
151
+ > ๐Ÿ’ก **Tip: Use built-in form props instead**
152
+ >
153
+ > Input, Select, Textarea, DatePicker ๋“ฑ Input ๊ณ„์—ด ์ปดํฌ๋„ŒํŠธ๋Š” `label`, `helperText` prop์„ ์ž์ฒด์ ์œผ๋กœ ์ง€์›ํ•ฉ๋‹ˆ๋‹ค.
154
+ > Form์„ ๊ตฌ์„ฑํ•  ๋•Œ๋Š” Typography๋กœ ์ง์ ‘ label/helperText๋ฅผ ๋งŒ๋“œ๋Š” ๊ฒƒ๋ณด๋‹ค ๊ฐ ์ปดํฌ๋„ŒํŠธ์˜ ๋‚ด์žฅ prop์„ ์‚ฌ์šฉํ•˜๋Š” ๊ฒƒ์ด ๊ถŒ์žฅ๋ฉ๋‹ˆ๋‹ค.
155
+ >
156
+ > ```tsx
157
+ > // โœ… Recommended: ์ปดํฌ๋„ŒํŠธ ๋‚ด์žฅ prop ์‚ฌ์šฉ
158
+ > <Input label="Username" helperText="Please enter your real name." />
159
+ >
160
+ > // โŒ Not recommended: Typography๋กœ ์ง์ ‘ ๊ตฌ์„ฑ
161
+ > <FormControl>
162
+ > <Typography level="title-sm" component="label">Username</Typography>
163
+ > <Input placeholder="Enter your name" />
164
+ > <Typography level="body-xs" color="neutral">Please enter your real name.</Typography>
165
+ > </FormControl>
166
+ > ```
167
+
151
168
  ### Status and Indicators
152
169
 
153
170
  ```tsx
@@ -98,12 +98,16 @@ DialogFrame can be used without a Modal wrapper for embedding dialog-style layou
98
98
 
99
99
  > โš ๏ธ **Important** โš ๏ธ
100
100
  >
101
- > When using DialogFrame without Modal, the parent container **must** provide explicit `width` and `height` values.
102
- > DialogFrame inherits its dimensions from `ModalDialog`, which normally receives sizing from the Modal overlay.
103
- > Without these constraints, the component will not render with correct dimensions.
101
+ > When using DialogFrame without Modal, the parent container **must** meet the following requirements:
102
+ >
103
+ > - `position: 'relative'` โ€” DialogFrame uses absolute positioning internally
104
+ > - Explicit `width` and `height` โ€” `height` must be an absolute value (e.g., `300`, `'400px'`), not a relative value like `%` or `auto`
105
+ >
106
+ > DialogFrame inherits its dimensions from `ModalDialog`, which normally receives sizing from the Modal overlay. Without these constraints, the component will not render with correct dimensions.
104
107
 
105
108
  ```tsx
106
109
  <Box sx={{
110
+ position: 'relative',
107
111
  width: 480,
108
112
  height: 300
109
113
  }}>
@@ -124,7 +128,7 @@ import { DialogFrame, Button, Box } from '@ceed/ads';
124
128
  // Standalone usage requires explicit container dimensions
125
129
  function EmbeddedDialog() {
126
130
  return (
127
- <Box sx={{ width: 480, height: 300 }}>
131
+ <Box sx={{ position: 'relative', width: 480, height: 300 }}>
128
132
  <DialogFrame
129
133
  title="Settings"
130
134
  actions={
@@ -442,12 +442,16 @@ ModalFrame can be used without a Modal wrapper for embedding dialog-style layout
442
442
 
443
443
  > โš ๏ธ **Important** โš ๏ธ
444
444
  >
445
- > When using ModalFrame without Modal, the parent container **must** provide explicit `width` and `height` values.
446
- > ModalFrame inherits its dimensions from `ModalDialog`, which normally receives sizing from the Modal overlay.
447
- > Without these constraints, the component will not render with correct dimensions.
445
+ > When using ModalFrame without Modal, the parent container **must** meet the following requirements:
446
+ >
447
+ > - `position: 'relative'` โ€” ModalFrame uses absolute positioning internally
448
+ > - Explicit `width` and `height` โ€” `height` must be an absolute value (e.g., `300`, `'400px'`), not a relative value like `%` or `auto`
449
+ >
450
+ > ModalFrame inherits its dimensions from `ModalDialog`, which normally receives sizing from the Modal overlay. Without these constraints, the component will not render with correct dimensions.
448
451
 
449
452
  ```tsx
450
453
  <Box sx={{
454
+ position: 'relative',
451
455
  width: 480,
452
456
  height: 300
453
457
  }}>
@@ -22,6 +22,11 @@ Autocomplete is an enhanced input component that provides real-time suggestions
22
22
  > - **Dropdown**: For action menus, not form value selection
23
23
  > - **Input**: For free-text entry without predefined options
24
24
 
25
+ > ๐Ÿ’ก **Use built-in form props**
26
+ >
27
+ > This component natively supports form elements such as `label` and `helperText` props.
28
+ > When building forms, use these built-in props instead of manually composing labels and helper text with Typography.
29
+
25
30
  ## Usage
26
31
 
27
32
  ```tsx
@@ -2,6 +2,11 @@
2
2
 
3
3
  ## Introduction
4
4
 
5
+ > ๐Ÿ’ก **Form ๊ตฌ์„ฑ ์‹œ ๋‚ด์žฅ prop ์‚ฌ์šฉ์„ ๊ถŒ์žฅํ•ฉ๋‹ˆ๋‹ค**
6
+ >
7
+ > ์ด ์ปดํฌ๋„ŒํŠธ๋Š” `label`, `helperText` ๋“ฑ์˜ Form ์š”์†Œ๋ฅผ ์ž์ฒด์ ์œผ๋กœ ์ง€์›ํ•ฉ๋‹ˆ๋‹ค.
8
+ > Form์„ ๊ตฌ์„ฑํ•  ๋•Œ Typography๋กœ ๋ณ„๋„์˜ label์ด๋‚˜ helperText๋ฅผ ๋งŒ๋“œ๋Š” ๋Œ€์‹ , ์ปดํฌ๋„ŒํŠธ์˜ ๋‚ด์žฅ prop์„ ์‚ฌ์šฉํ•˜์„ธ์š”.
9
+
5
10
  ```tsx
6
11
  <CurrencyInput
7
12
  name="currency-input"
@@ -37,6 +37,11 @@ DatePicker is a form input component that allows users to select a single date f
37
37
  > - **Date validation**: Invalid date strings can cause unexpected behavior
38
38
  > - **Timezone considerations**: Be aware of timezone issues when working with dates
39
39
 
40
+ > ๐Ÿ’ก **Use built-in form props**
41
+ >
42
+ > This component natively supports form elements such as `label` and `helperText` props.
43
+ > When building forms, use these built-in props instead of manually composing labels and helper text with Typography.
44
+
40
45
  ## Usage
41
46
 
42
47
  ```tsx
@@ -37,6 +37,11 @@ DateRangePicker is a form input component that allows users to select a date ran
37
37
  > - **Start/End validation**: Ensure start date is before end date
38
38
  > - **Range span**: Consider maximum range limits for performance and UX
39
39
 
40
+ > ๐Ÿ’ก **Use built-in form props**
41
+ >
42
+ > This component natively supports form elements such as `label` and `helperText` props.
43
+ > When building forms, use these built-in props instead of manually composing labels and helper text with Typography.
44
+
40
45
  ## Usage
41
46
 
42
47
  ```tsx
@@ -4,6 +4,11 @@
4
4
 
5
5
  FilterableCheckboxGroup ์ปดํฌ๋„ŒํŠธ๋Š” ๋Œ€๋Ÿ‰์˜ ์˜ต์…˜ ์ค‘์—์„œ ์—ฌ๋Ÿฌ ํ•ญ๋ชฉ์„ ์„ ํƒํ•  ์ˆ˜ ์žˆ๋Š” ๊ฒ€์ƒ‰ ๊ฐ€๋Šฅํ•œ ์ฒดํฌ๋ฐ•์Šค ๊ทธ๋ฃน์ž…๋‹ˆ๋‹ค. ๊ฒ€์ƒ‰ ํ•„ํ„ฐ๋ง๊ณผ ๊ฐ€์ƒ ์Šคํฌ๋กค๋ง์„ ํ†ตํ•ด ๋งŽ์€ ์ˆ˜์˜ ์˜ต์…˜์„ ํšจ์œจ์ ์œผ๋กœ ์ฒ˜๋ฆฌํ•  ์ˆ˜ ์žˆ์œผ๋ฉฐ, "Select all" ๊ธฐ๋Šฅ์œผ๋กœ ์ผ๊ด„ ์„ ํƒ์ด ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค. ํ•„ํ„ฐ๋ง, ๋‹ค์ค‘ ์„ ํƒ ํผ, ์„ค์ • ํ™”๋ฉด ๋“ฑ์—์„œ ์œ ์šฉํ•˜๊ฒŒ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
6
6
 
7
+ > ๐Ÿ’ก **Form ๊ตฌ์„ฑ ์‹œ ๋‚ด์žฅ prop ์‚ฌ์šฉ์„ ๊ถŒ์žฅํ•ฉ๋‹ˆ๋‹ค**
8
+ >
9
+ > ์ด ์ปดํฌ๋„ŒํŠธ๋Š” `label`, `helperText` ๋“ฑ์˜ Form ์š”์†Œ๋ฅผ ์ž์ฒด์ ์œผ๋กœ ์ง€์›ํ•ฉ๋‹ˆ๋‹ค.
10
+ > Form์„ ๊ตฌ์„ฑํ•  ๋•Œ Typography๋กœ ๋ณ„๋„์˜ label์ด๋‚˜ helperText๋ฅผ ๋งŒ๋“œ๋Š” ๋Œ€์‹ , ์ปดํฌ๋„ŒํŠธ์˜ ๋‚ด์žฅ prop์„ ์‚ฌ์šฉํ•˜์„ธ์š”.
11
+
7
12
  ```tsx
8
13
  <FilterableCheckboxGroup
9
14
  label="Select Fruits"
@@ -2,6 +2,11 @@
2
2
 
3
3
  Input ์ปดํฌ๋„ŒํŠธ๋Š” ์‚ฌ์šฉ์ž๋กœ๋ถ€ํ„ฐ ํ…์ŠคํŠธ ์ž…๋ ฅ์„ ๋ฐ›๊ธฐ ์œ„ํ•œ ๊ธฐ๋ณธ ์ปดํฌ๋„ŒํŠธ์ž…๋‹ˆ๋‹ค. ๋‹ค์–‘ํ•œ ์Šคํƒ€์ผ, ํฌ๊ธฐ ๋ฐ ๊ธฐ๋Šฅ์„ ์ง€์›ํ•ฉ๋‹ˆ๋‹ค.
4
4
 
5
+ > ๐Ÿ’ก **Form ๊ตฌ์„ฑ ์‹œ ๋‚ด์žฅ prop ์‚ฌ์šฉ์„ ๊ถŒ์žฅํ•ฉ๋‹ˆ๋‹ค**
6
+ >
7
+ > ์ด ์ปดํฌ๋„ŒํŠธ๋Š” `label`, `helperText` ๋“ฑ์˜ Form ์š”์†Œ๋ฅผ ์ž์ฒด์ ์œผ๋กœ ์ง€์›ํ•ฉ๋‹ˆ๋‹ค.
8
+ > Form์„ ๊ตฌ์„ฑํ•  ๋•Œ Typography๋กœ ๋ณ„๋„์˜ label์ด๋‚˜ helperText๋ฅผ ๋งŒ๋“œ๋Š” ๋Œ€์‹ , ์ปดํฌ๋„ŒํŠธ์˜ ๋‚ด์žฅ prop์„ ์‚ฌ์šฉํ•˜์„ธ์š”.
9
+
5
10
  ```tsx
6
11
  <Input />
7
12
  ```
@@ -34,6 +34,11 @@ MonthPicker is a form input component that allows users to select a specific mon
34
34
  > - **Format consistency**: Ensure your `value` prop matches the `format` prop
35
35
  > - **displayFormat options**: Supports special token `MMMM` for full month names
36
36
 
37
+ > ๐Ÿ’ก **Use built-in form props**
38
+ >
39
+ > This component natively supports form elements such as `label` and `helperText` props.
40
+ > When building forms, use these built-in props instead of manually composing labels and helper text with Typography.
41
+
37
42
  ## Usage
38
43
 
39
44
  ```tsx
@@ -34,6 +34,11 @@ MonthRangePicker is a form input component that allows users to select a range o
34
34
  > - **Format consistency**: Both months in the range must match the `format` prop
35
35
  > - **Month boundaries**: Consider inclusive vs exclusive range interpretations
36
36
 
37
+ > ๐Ÿ’ก **Use built-in form props**
38
+ >
39
+ > This component natively supports form elements such as `label` and `helperText` props.
40
+ > When building forms, use these built-in props instead of manually composing labels and helper text with Typography.
41
+
37
42
  ## Usage
38
43
 
39
44
  ```tsx
@@ -2,6 +2,11 @@
2
2
 
3
3
  ## Introduction
4
4
 
5
+ > ๐Ÿ’ก **Form ๊ตฌ์„ฑ ์‹œ ๋‚ด์žฅ prop ์‚ฌ์šฉ์„ ๊ถŒ์žฅํ•ฉ๋‹ˆ๋‹ค**
6
+ >
7
+ > ์ด ์ปดํฌ๋„ŒํŠธ๋Š” `label`, `helperText` ๋“ฑ์˜ Form ์š”์†Œ๋ฅผ ์ž์ฒด์ ์œผ๋กœ ์ง€์›ํ•ฉ๋‹ˆ๋‹ค.
8
+ > Form์„ ๊ตฌ์„ฑํ•  ๋•Œ Typography๋กœ ๋ณ„๋„์˜ label์ด๋‚˜ helperText๋ฅผ ๋งŒ๋“œ๋Š” ๋Œ€์‹ , ์ปดํฌ๋„ŒํŠธ์˜ ๋‚ด์žฅ prop์„ ์‚ฌ์šฉํ•˜์„ธ์š”.
9
+
5
10
  ```tsx
6
11
  <PercentageInput placeholder="Enter a percentage" />
7
12
  ```
@@ -2,6 +2,11 @@
2
2
 
3
3
  RadioTileGroup ์ปดํฌ๋„ŒํŠธ๋Š” ํƒ€์ผ ํ˜•ํƒœ์˜ ๋ผ๋””์˜ค ์˜ต์…˜์„ ํ‘œ์‹œํ•˜๋Š” ์ปดํฌ๋„ŒํŠธ์ž…๋‹ˆ๋‹ค. ๊ฐ ์˜ต์…˜์ด ํƒ€์ผ ํ˜•ํƒœ๋กœ ๋‚˜ํƒ€๋‚˜๋ฉฐ, ์‚ฌ์šฉ์ž๊ฐ€ ์„ ํƒํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
4
4
 
5
+ > ๐Ÿ’ก **Form ๊ตฌ์„ฑ ์‹œ ๋‚ด์žฅ prop ์‚ฌ์šฉ์„ ๊ถŒ์žฅํ•ฉ๋‹ˆ๋‹ค**
6
+ >
7
+ > ์ด ์ปดํฌ๋„ŒํŠธ๋Š” `label`, `helperText` ๋“ฑ์˜ Form ์š”์†Œ๋ฅผ ์ž์ฒด์ ์œผ๋กœ ์ง€์›ํ•ฉ๋‹ˆ๋‹ค.
8
+ > Form์„ ๊ตฌ์„ฑํ•  ๋•Œ Typography๋กœ ๋ณ„๋„์˜ label์ด๋‚˜ helperText๋ฅผ ๋งŒ๋“œ๋Š” ๋Œ€์‹ , ์ปดํฌ๋„ŒํŠธ์˜ ๋‚ด์žฅ prop์„ ์‚ฌ์šฉํ•˜์„ธ์š”.
9
+
5
10
  ```tsx
6
11
  <RadioTileGroup
7
12
  options={simpleOptions}
@@ -35,6 +35,11 @@ The Select component is a form input that allows users to choose one or multiple
35
35
  > - More than 20 options โ†’ Consider Autocomplete with search
36
36
  > - Actions/navigation โ†’ Use Dropdown with Menu
37
37
 
38
+ > ๐Ÿ’ก **Use built-in form props**
39
+ >
40
+ > This component natively supports form elements such as `label` and `helperText` props.
41
+ > When building forms, use these built-in props instead of manually composing labels and helper text with Typography.
42
+
38
43
  ## Usage
39
44
 
40
45
  ```tsx
@@ -2,6 +2,11 @@
2
2
 
3
3
  ## Introduction
4
4
 
5
+ > ๐Ÿ’ก **Use built-in form props**
6
+ >
7
+ > This component natively supports form elements such as `label` and `helperText` props.
8
+ > When building forms, use these built-in props instead of manually composing labels and helper text with Typography.
9
+
5
10
  ```tsx
6
11
  <Textarea name="Textarea" />
7
12
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ceed/ads",
3
- "version": "1.23.1",
3
+ "version": "1.23.3",
4
4
  "main": "dist/index.cjs",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",