@ceed/cds 1.34.1 → 1.36.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 (118) hide show
  1. package/dist/components/Accordions/Accordions.d.ts +1 -0
  2. package/dist/components/Alert/Alert.d.ts +5 -5
  3. package/dist/components/Autocomplete/Autocomplete.d.ts +2 -2
  4. package/dist/components/Avatar/Avatar.d.ts +7 -17
  5. package/dist/components/Box/Box.d.ts +1 -0
  6. package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +6 -5
  7. package/dist/components/Button/Button.d.ts +3 -2
  8. package/dist/components/Calendar/Calendar.d.ts +1 -0
  9. package/dist/components/Card/Card.d.ts +1 -0
  10. package/dist/components/Checkbox/Checkbox.d.ts +1 -0
  11. package/dist/components/Chip/Chip.d.ts +1 -0
  12. package/dist/components/Container/Container.d.ts +6 -1
  13. package/dist/components/CurrencyInput/CurrencyInput.d.ts +1 -1
  14. package/dist/components/DialogActions/DialogActions.d.ts +1 -0
  15. package/dist/components/DialogContent/DialogContent.d.ts +1 -0
  16. package/dist/components/DialogFrame/DialogFrame.d.ts +1 -1
  17. package/dist/components/DialogTitle/DialogTitle.d.ts +1 -0
  18. package/dist/components/Divider/Divider.d.ts +1 -0
  19. package/dist/components/Drawer/Drawer.d.ts +1 -0
  20. package/dist/components/Dropdown/Dropdown.d.ts +28 -1
  21. package/dist/components/FormControl/FormControl.d.ts +1 -0
  22. package/dist/components/FormHelperText/FormHelperText.d.ts +1 -0
  23. package/dist/components/FormLabel/FormLabel.d.ts +1 -0
  24. package/dist/components/Grid/Grid.d.ts +1 -0
  25. package/dist/components/IconButton/IconButton.d.ts +3 -2
  26. package/dist/components/IconMenuButton/IconMenuButton.d.ts +7 -6
  27. package/dist/components/InfoSign/InfoSign.d.ts +3 -2
  28. package/dist/components/Input/Input.d.ts +8 -22
  29. package/dist/components/InsetDrawer/InsetDrawer.d.ts +1 -0
  30. package/dist/components/Markdown/Markdown.d.ts +9 -24
  31. package/dist/components/Menu/Menu.d.ts +2 -1
  32. package/dist/components/MenuButton/MenuButton.d.ts +10 -8
  33. package/dist/components/Modal/Modal.d.ts +4 -2
  34. package/dist/components/NavigationGroup/NavigationGroup.d.ts +3 -2
  35. package/dist/components/NavigationItem/NavigationItem.d.ts +3 -2
  36. package/dist/components/Navigator/Navigator.d.ts +5 -4
  37. package/dist/components/Pagination/Pagination.d.ts +1 -1
  38. package/dist/components/Radio/Radio.d.ts +1 -0
  39. package/dist/components/RadioList/RadioList.d.ts +3 -2
  40. package/dist/components/Select/Select.d.ts +20 -10
  41. package/dist/components/Sheet/Sheet.d.ts +1 -0
  42. package/dist/components/Stack/Stack.d.ts +1 -0
  43. package/dist/components/Stepper/Stepper.d.ts +2 -1
  44. package/dist/components/Switch/Switch.d.ts +1 -0
  45. package/dist/components/Table/Table.d.ts +7 -5
  46. package/dist/components/Tabs/Tabs.d.ts +1 -0
  47. package/dist/components/Textarea/Textarea.d.ts +8 -20
  48. package/dist/components/Tooltip/Tooltip.d.ts +1 -0
  49. package/dist/components/Typography/Typography.d.ts +1 -0
  50. package/dist/components/Uploader/Uploader.d.ts +18 -17
  51. package/dist/components/data-display/Avatar.md +60 -72
  52. package/dist/components/data-display/Badge.md +197 -181
  53. package/dist/components/data-display/Chip.md +164 -142
  54. package/dist/components/data-display/DataTable.md +843 -338
  55. package/dist/components/data-display/InfoSign.md +1 -3
  56. package/dist/components/data-display/Markdown.md +93 -125
  57. package/dist/components/data-display/Table.md +1453 -1007
  58. package/dist/components/data-display/Typography.md +113 -116
  59. package/dist/components/feedback/Alert.md +80 -86
  60. package/dist/components/feedback/CircularProgress.md +32 -36
  61. package/dist/components/feedback/Dialog.md +25 -17
  62. package/dist/components/feedback/Modal.md +296 -264
  63. package/dist/components/feedback/Skeleton.md +125 -89
  64. package/dist/components/index.d.ts +62 -2
  65. package/dist/components/inputs/Autocomplete.md +191 -95
  66. package/dist/components/inputs/Button.md +83 -83
  67. package/dist/components/inputs/ButtonGroup.md +195 -185
  68. package/dist/components/inputs/Calendar.md +25 -28
  69. package/dist/components/inputs/Checkbox.md +11 -29
  70. package/dist/components/inputs/CurrencyInput.md +4 -4
  71. package/dist/components/inputs/DatePicker.md +229 -110
  72. package/dist/components/inputs/DateRangePicker.md +248 -137
  73. package/dist/components/inputs/FilterableCheckboxGroup.md +115 -55
  74. package/dist/components/inputs/FormControl.md +75 -69
  75. package/dist/components/inputs/IconButton.md +229 -205
  76. package/dist/components/inputs/Input.md +131 -98
  77. package/dist/components/inputs/MonthPicker.md +186 -84
  78. package/dist/components/inputs/MonthRangePicker.md +73 -49
  79. package/dist/components/inputs/PercentageInput.md +15 -31
  80. package/dist/components/inputs/RadioButton.md +320 -256
  81. package/dist/components/inputs/RadioList.md +66 -50
  82. package/dist/components/inputs/RadioTileGroup.md +287 -170
  83. package/dist/components/inputs/SearchBar.md +82 -60
  84. package/dist/components/inputs/Select.md +184 -120
  85. package/dist/components/inputs/Slider.md +153 -102
  86. package/dist/components/inputs/Switch.md +193 -138
  87. package/dist/components/inputs/Textarea.md +15 -20
  88. package/dist/components/inputs/Uploader/Uploader.md +68 -39
  89. package/dist/components/layout/Box.md +841 -662
  90. package/dist/components/layout/Container.md +3 -11
  91. package/dist/components/layout/Grid.md +480 -394
  92. package/dist/components/layout/Stack.md +739 -566
  93. package/dist/components/navigation/Breadcrumbs.md +4 -4
  94. package/dist/components/navigation/Drawer.md +34 -25
  95. package/dist/components/navigation/Dropdown.md +745 -408
  96. package/dist/components/navigation/IconMenuButton.md +14 -6
  97. package/dist/components/navigation/InsetDrawer.md +8 -13
  98. package/dist/components/navigation/Link.md +1 -2
  99. package/dist/components/navigation/Menu.md +623 -502
  100. package/dist/components/navigation/MenuButton.md +18 -10
  101. package/dist/components/navigation/NavigationGroup.md +19 -50
  102. package/dist/components/navigation/NavigationItem.md +6 -6
  103. package/dist/components/navigation/Navigator.md +26 -28
  104. package/dist/components/navigation/Pagination.md +86 -75
  105. package/dist/components/navigation/Stepper.md +2 -12
  106. package/dist/components/navigation/Tabs.md +48 -36
  107. package/dist/components/surfaces/Accordions.md +89 -172
  108. package/dist/components/surfaces/Card.md +1094 -709
  109. package/dist/components/surfaces/Divider.md +562 -412
  110. package/dist/components/surfaces/Sheet.md +700 -518
  111. package/dist/guides/ThemeProvider.md +8 -8
  112. package/dist/index.browser.js +4 -4
  113. package/dist/index.browser.js.map +4 -4
  114. package/dist/index.cjs +1074 -1033
  115. package/dist/index.d.ts +2 -1
  116. package/dist/index.js +720 -671
  117. package/framer/index.js +1 -1
  118. package/package.json +32 -35
@@ -28,10 +28,7 @@ function MyComponent() {
28
28
  <Chip clickable onClick={() => console.log('clicked')}>
29
29
  Clickable Chip
30
30
  </Chip>
31
- <Chip
32
- endDecorator={<CloseIcon />}
33
- onClick={() => console.log('delete')}
34
- >
31
+ <Chip endDecorator={<CloseIcon />} onClick={() => console.log('delete')}>
35
32
  Deletable Chip
36
33
  </Chip>
37
34
  </div>
@@ -46,15 +43,17 @@ function MyComponent() {
46
43
  Basic Chip usage.
47
44
 
48
45
  ```tsx
49
- <div style={{
50
- display: 'flex',
51
- gap: '1rem',
52
- flexWrap: 'wrap'
53
- }}>
54
- <Chip>Basic Chip</Chip>
55
- <Chip disabled>Disabled</Chip>
56
- <Chip onClick={() => alert('Clicked!')}>Clickable</Chip>
57
- </div>
46
+ <div
47
+ style={{
48
+ display: "flex",
49
+ gap: "1rem",
50
+ flexWrap: "wrap"
51
+ }}
52
+ >
53
+ <Chip>Basic Chip</Chip>
54
+ <Chip disabled>Disabled</Chip>
55
+ <Chip onClick={() => alert("Clicked!")}>Clickable</Chip>
56
+ </div>
58
57
  ```
59
58
 
60
59
  ### Colors
@@ -62,17 +61,19 @@ Basic Chip usage.
62
61
  You can apply various colors.
63
62
 
64
63
  ```tsx
65
- <div style={{
66
- display: 'flex',
67
- gap: '1rem',
68
- flexWrap: 'wrap'
69
- }}>
70
- <Chip color="primary">Primary</Chip>
71
- <Chip color="neutral">Neutral</Chip>
72
- <Chip color="danger">Danger</Chip>
73
- <Chip color="success">Success</Chip>
74
- <Chip color="warning">Warning</Chip>
75
- </div>
64
+ <div
65
+ style={{
66
+ display: "flex",
67
+ gap: "1rem",
68
+ flexWrap: "wrap"
69
+ }}
70
+ >
71
+ <Chip color="primary">Primary</Chip>
72
+ <Chip color="neutral">Neutral</Chip>
73
+ <Chip color="danger">Danger</Chip>
74
+ <Chip color="success">Success</Chip>
75
+ <Chip color="warning">Warning</Chip>
76
+ </div>
76
77
  ```
77
78
 
78
79
  ### Variants
@@ -80,16 +81,18 @@ You can apply various colors.
80
81
  Provides a variety of style variants.
81
82
 
82
83
  ```tsx
83
- <div style={{
84
- display: 'flex',
85
- gap: '1rem',
86
- flexWrap: 'wrap'
87
- }}>
88
- <Chip variant="solid">Solid</Chip>
89
- <Chip variant="soft">Soft</Chip>
90
- <Chip variant="outlined">Outlined</Chip>
91
- <Chip variant="plain">Plain</Chip>
92
- </div>
84
+ <div
85
+ style={{
86
+ display: "flex",
87
+ gap: "1rem",
88
+ flexWrap: "wrap"
89
+ }}
90
+ >
91
+ <Chip variant="solid">Solid</Chip>
92
+ <Chip variant="soft">Soft</Chip>
93
+ <Chip variant="outlined">Outlined</Chip>
94
+ <Chip variant="plain">Plain</Chip>
95
+ </div>
93
96
  ```
94
97
 
95
98
  ### Sizes
@@ -97,16 +100,18 @@ Provides a variety of style variants.
97
100
  You can adjust the size.
98
101
 
99
102
  ```tsx
100
- <div style={{
101
- display: 'flex',
102
- gap: '1rem',
103
- alignItems: 'center',
104
- flexWrap: 'wrap'
105
- }}>
106
- <Chip size="sm">Small</Chip>
107
- <Chip size="md">Medium</Chip>
108
- <Chip size="lg">Large</Chip>
109
- </div>
103
+ <div
104
+ style={{
105
+ display: "flex",
106
+ gap: "1rem",
107
+ alignItems: "center",
108
+ flexWrap: "wrap"
109
+ }}
110
+ >
111
+ <Chip size="sm">Small</Chip>
112
+ <Chip size="md">Medium</Chip>
113
+ <Chip size="lg">Large</Chip>
114
+ </div>
110
115
  ```
111
116
 
112
117
  ### With Icons
@@ -114,17 +119,19 @@ You can adjust the size.
114
119
  Can be used with icons.
115
120
 
116
121
  ```tsx
117
- <div style={{
118
- display: 'flex',
119
- gap: '1rem',
120
- flexWrap: 'wrap'
121
- }}>
122
- <Chip startDecorator={<Add />}>Add Item</Chip>
123
- <Chip endDecorator={<Close />}>Remove</Chip>
124
- <Chip startDecorator={<Done />} color="success">
125
- Completed
126
- </Chip>
127
- </div>
122
+ <div
123
+ style={{
124
+ display: "flex",
125
+ gap: "1rem",
126
+ flexWrap: "wrap"
127
+ }}
128
+ >
129
+ <Chip startDecorator={<Add />}>Add Item</Chip>
130
+ <Chip endDecorator={<Close />}>Remove</Chip>
131
+ <Chip startDecorator={<Done />} color="success">
132
+ Completed
133
+ </Chip>
134
+ </div>
128
135
  ```
129
136
 
130
137
  ### With Avatar
@@ -132,14 +139,18 @@ Can be used with icons.
132
139
  Can be used with an avatar to represent a user.
133
140
 
134
141
  ```tsx
135
- <div style={{
136
- display: 'flex',
137
- gap: '1rem',
138
- flexWrap: 'wrap'
139
- }}>
140
- <Chip startDecorator={<Avatar size="sm" src="https://i.pravatar.cc/40?img=1" />}>John Doe</Chip>
141
- <Chip startDecorator={<Avatar size="sm" src="https://i.pravatar.cc/40?img=2" />}>Jane Smith</Chip>
142
- </div>
142
+ <div
143
+ style={{
144
+ display: "flex",
145
+ gap: "1rem",
146
+ flexWrap: "wrap"
147
+ }}
148
+ >
149
+ <Chip startDecorator={<Avatar size="sm" src="https://i.pravatar.cc/40?img=1" />}>John Doe</Chip>
150
+ <Chip startDecorator={<Avatar size="sm" src="https://i.pravatar.cc/40?img=2" />}>
151
+ Jane Smith
152
+ </Chip>
153
+ </div>
143
154
  ```
144
155
 
145
156
  ### Deletable
@@ -147,15 +158,24 @@ Can be used with an avatar to represent a user.
147
158
  A Chip with delete functionality. Clicking it removes it from the list.
148
159
 
149
160
  ```tsx
150
- <div style={{
151
- display: 'flex',
152
- gap: '1rem',
153
- flexWrap: 'wrap'
154
- }}>
155
- {chips.map(chip => <Chip key={chip} endDecorator={<Close />} onClick={() => handleDelete(chip)} variant="outlined">
156
- {chip}
157
- </Chip>)}
158
- </div>
161
+ <div
162
+ style={{
163
+ display: "flex",
164
+ gap: "1rem",
165
+ flexWrap: "wrap"
166
+ }}
167
+ >
168
+ {chips.map((chip) => (
169
+ <Chip
170
+ key={chip}
171
+ endDecorator={<Close />}
172
+ onClick={() => handleDelete(chip)}
173
+ variant="outlined"
174
+ >
175
+ {chip}
176
+ </Chip>
177
+ ))}
178
+ </div>
159
179
  ```
160
180
 
161
181
  ### Clickable
@@ -163,19 +183,21 @@ A Chip with delete functionality. Clicking it removes it from the list.
163
183
  A clickable Chip that can be used as a filter or tab.
164
184
 
165
185
  ```tsx
166
- <div style={{
167
- display: 'flex',
168
- gap: '1rem',
169
- flexWrap: 'wrap'
170
- }}>
171
- <Chip onClick={() => alert('Filter: All')}>All</Chip>
172
- <Chip onClick={() => alert('Filter: Active')} color="success">
173
- Active
174
- </Chip>
175
- <Chip onClick={() => alert('Filter: Completed')} color="neutral">
176
- Completed
177
- </Chip>
178
- </div>
186
+ <div
187
+ style={{
188
+ display: "flex",
189
+ gap: "1rem",
190
+ flexWrap: "wrap"
191
+ }}
192
+ >
193
+ <Chip onClick={() => alert("Filter: All")}>All</Chip>
194
+ <Chip onClick={() => alert("Filter: Active")} color="success">
195
+ Active
196
+ </Chip>
197
+ <Chip onClick={() => alert("Filter: Completed")} color="neutral">
198
+ Completed
199
+ </Chip>
200
+ </div>
179
201
  ```
180
202
 
181
203
  ### Clickable Actions
@@ -183,19 +205,21 @@ A clickable Chip that can be used as a filter or tab.
183
205
  Can trigger various actions when clicked.
184
206
 
185
207
  ```tsx
186
- <div style={{
187
- display: 'flex',
188
- gap: '1rem',
189
- flexWrap: 'wrap'
190
- }}>
191
- <Chip onClick={() => window.open('#', '_blank')}>Home</Chip>
192
- <Chip onClick={() => window.open('#', '_blank')} variant="outlined">
193
- About
194
- </Chip>
195
- <Chip onClick={() => window.open('#', '_blank')} variant="soft">
196
- Contact
197
- </Chip>
198
- </div>
208
+ <div
209
+ style={{
210
+ display: "flex",
211
+ gap: "1rem",
212
+ flexWrap: "wrap"
213
+ }}
214
+ >
215
+ <Chip onClick={() => window.open("#", "_blank")}>Home</Chip>
216
+ <Chip onClick={() => window.open("#", "_blank")} variant="outlined">
217
+ About
218
+ </Chip>
219
+ <Chip onClick={() => window.open("#", "_blank")} variant="soft">
220
+ Contact
221
+ </Chip>
222
+ </div>
199
223
  ```
200
224
 
201
225
  ### States
@@ -203,40 +227,46 @@ Can trigger various actions when clicked.
203
227
  Can represent various states.
204
228
 
205
229
  ```tsx
206
- <div style={{
207
- display: 'flex',
208
- gap: '1rem',
209
- flexWrap: 'wrap'
210
- }}>
211
- <div>
212
- <h4>Normal</h4>
213
- <div style={{
214
- display: 'flex',
215
- gap: '0.5rem',
216
- flexWrap: 'wrap'
217
- }}>
218
- <Chip>Default</Chip>
219
- <Chip onClick={() => {}}>Clickable</Chip>
220
- <Chip endDecorator={<Close />}>Deletable</Chip>
221
- </div>
222
- </div>
223
- <div>
224
- <h4>Disabled</h4>
225
- <div style={{
226
- display: 'flex',
227
- gap: '0.5rem',
228
- flexWrap: 'wrap'
229
- }}>
230
- <Chip disabled>Default</Chip>
231
- <Chip disabled onClick={() => {}}>
232
- Clickable
233
- </Chip>
234
- <Chip disabled endDecorator={<Close />}>
235
- Deletable
236
- </Chip>
237
- </div>
238
- </div>
239
- </div>
230
+ <div
231
+ style={{
232
+ display: "flex",
233
+ gap: "1rem",
234
+ flexWrap: "wrap"
235
+ }}
236
+ >
237
+ <div>
238
+ <h4>Normal</h4>
239
+ <div
240
+ style={{
241
+ display: "flex",
242
+ gap: "0.5rem",
243
+ flexWrap: "wrap"
244
+ }}
245
+ >
246
+ <Chip>Default</Chip>
247
+ <Chip onClick={() => {}}>Clickable</Chip>
248
+ <Chip endDecorator={<Close />}>Deletable</Chip>
249
+ </div>
250
+ </div>
251
+ <div>
252
+ <h4>Disabled</h4>
253
+ <div
254
+ style={{
255
+ display: "flex",
256
+ gap: "0.5rem",
257
+ flexWrap: "wrap"
258
+ }}
259
+ >
260
+ <Chip disabled>Default</Chip>
261
+ <Chip disabled onClick={() => {}}>
262
+ Clickable
263
+ </Chip>
264
+ <Chip disabled endDecorator={<Close />}>
265
+ Deletable
266
+ </Chip>
267
+ </div>
268
+ </div>
269
+ </div>
240
270
  ```
241
271
 
242
272
  ## Common Use Cases
@@ -265,11 +295,7 @@ Can represent various states.
265
295
  ### Filter Controls
266
296
 
267
297
  ```tsx
268
- <Chip
269
- clickable
270
- variant={isActive ? 'solid' : 'outlined'}
271
- onClick={() => setFilter('all')}
272
- >
298
+ <Chip clickable variant={isActive ? 'solid' : 'outlined'} onClick={() => setFilter('all')}>
273
299
  All Items
274
300
  </Chip>
275
301
  ```
@@ -277,11 +303,7 @@ Can represent various states.
277
303
  ### Contact Pills
278
304
 
279
305
  ```tsx
280
- <Chip
281
- startDecorator={<Avatar size="sm" />}
282
- endDecorator={<CloseIcon />}
283
- onDelete={() => removeContact(id)}
284
- >
306
+ <Chip startDecorator={<Avatar size="sm" />} endDecorator={<CloseIcon />} onDelete={() => removeContact(id)}>
285
307
  John Doe
286
308
  </Chip>
287
309
  ```