@ceed/ads 1.35.1 → 1.37.0-next.1
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/README.md +85 -95
- package/dist/components/Accordions/Accordions.d.ts +1 -0
- package/dist/components/Alert/Alert.d.ts +5 -5
- package/dist/components/Autocomplete/Autocomplete.d.ts +2 -2
- package/dist/components/Avatar/Avatar.d.ts +7 -17
- package/dist/components/Box/Box.d.ts +1 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +6 -5
- package/dist/components/Button/Button.d.ts +3 -2
- package/dist/components/Calendar/Calendar.d.ts +1 -0
- package/dist/components/Card/Card.d.ts +1 -0
- package/dist/components/Checkbox/Checkbox.d.ts +1 -0
- package/dist/components/Chip/Chip.d.ts +1 -0
- package/dist/components/Container/Container.d.ts +6 -1
- package/dist/components/DialogActions/DialogActions.d.ts +1 -0
- package/dist/components/DialogContent/DialogContent.d.ts +1 -0
- package/dist/components/DialogFrame/DialogFrame.d.ts +1 -1
- package/dist/components/DialogTitle/DialogTitle.d.ts +1 -0
- package/dist/components/Divider/Divider.d.ts +1 -0
- package/dist/components/Dropdown/Dropdown.d.ts +28 -1
- package/dist/components/FilterMenu/components/MonthRange.d.ts +11 -0
- package/dist/components/FilterMenu/types.d.ts +5 -1
- package/dist/components/FilterableCheckboxGroup/FilterableCheckboxGroup.d.ts +1 -1
- package/dist/components/FormControl/FormControl.d.ts +1 -0
- package/dist/components/FormHelperText/FormHelperText.d.ts +1 -0
- package/dist/components/FormLabel/FormLabel.d.ts +1 -0
- package/dist/components/Grid/Grid.d.ts +1 -0
- package/dist/components/IconButton/IconButton.d.ts +3 -2
- package/dist/components/IconMenuButton/IconMenuButton.d.ts +7 -6
- package/dist/components/InfoSign/InfoSign.d.ts +3 -2
- package/dist/components/Input/Input.d.ts +8 -22
- package/dist/components/InsetDrawer/InsetDrawer.d.ts +1 -0
- package/dist/components/Markdown/Markdown.d.ts +9 -24
- package/dist/components/Menu/Menu.d.ts +2 -1
- package/dist/components/MenuButton/MenuButton.d.ts +10 -8
- package/dist/components/Modal/Modal.d.ts +4 -2
- package/dist/components/NavigationGroup/NavigationGroup.d.ts +3 -2
- package/dist/components/NavigationItem/NavigationItem.d.ts +3 -2
- package/dist/components/Navigator/Navigator.d.ts +5 -4
- package/dist/components/Pagination/Pagination.d.ts +2 -2
- package/dist/components/ProfileMenu/ProfileMenu.d.ts +3 -3
- package/dist/components/Radio/Radio.d.ts +1 -0
- package/dist/components/RadioList/RadioList.d.ts +3 -2
- package/dist/components/Select/Select.d.ts +12 -10
- package/dist/components/Sheet/Sheet.d.ts +1 -0
- package/dist/components/Stack/Stack.d.ts +1 -0
- package/dist/components/Stepper/Stepper.d.ts +2 -1
- package/dist/components/Switch/Switch.d.ts +1 -0
- package/dist/components/Table/Table.d.ts +7 -5
- package/dist/components/Tabs/Tabs.d.ts +1 -0
- package/dist/components/Textarea/Textarea.d.ts +8 -20
- package/dist/components/ThemeProvider/ThemeProvider.d.ts +24 -2
- package/dist/components/Tooltip/Tooltip.d.ts +1 -0
- package/dist/components/Typography/Typography.d.ts +1 -0
- package/dist/components/Uploader/Uploader.d.ts +18 -17
- package/dist/components/data-display/Avatar.md +61 -73
- package/dist/components/data-display/Badge.md +198 -182
- package/dist/components/data-display/Chip.md +165 -143
- package/dist/components/data-display/DataTable.md +843 -338
- package/dist/components/data-display/InfoSign.md +1 -3
- package/dist/components/data-display/Markdown.md +93 -125
- package/dist/components/data-display/Table.md +1454 -1008
- package/dist/components/data-display/Tooltip.md +1 -1
- package/dist/components/data-display/Typography.md +101 -104
- package/dist/components/feedback/Alert.md +81 -87
- package/dist/components/feedback/CircularProgress.md +34 -38
- package/dist/components/feedback/Dialog.md +25 -17
- package/dist/components/feedback/Modal.md +297 -266
- package/dist/components/feedback/Skeleton.md +125 -89
- package/dist/components/index.d.ts +60 -1
- package/dist/components/inputs/Autocomplete.md +192 -96
- package/dist/components/inputs/Button.md +85 -85
- package/dist/components/inputs/ButtonGroup.md +197 -187
- package/dist/components/inputs/Calendar.md +25 -28
- package/dist/components/inputs/Checkbox.md +13 -31
- package/dist/components/inputs/CurrencyInput.md +6 -6
- package/dist/components/inputs/DatePicker.md +229 -110
- package/dist/components/inputs/DateRangePicker.md +248 -137
- package/dist/components/inputs/FilterMenu.md +138 -8
- package/dist/components/inputs/FilterableCheckboxGroup.md +116 -56
- package/dist/components/inputs/FormControl.md +76 -70
- package/dist/components/inputs/IconButton.md +231 -207
- package/dist/components/inputs/Input.md +133 -100
- package/dist/components/inputs/MonthPicker.md +186 -84
- package/dist/components/inputs/MonthRangePicker.md +73 -49
- package/dist/components/inputs/PercentageInput.md +17 -33
- package/dist/components/inputs/RadioButton.md +322 -258
- package/dist/components/inputs/RadioList.md +68 -52
- package/dist/components/inputs/RadioTileGroup.md +287 -170
- package/dist/components/inputs/SearchBar.md +82 -60
- package/dist/components/inputs/Select.md +108 -97
- package/dist/components/inputs/Slider.md +155 -104
- package/dist/components/inputs/Switch.md +194 -139
- package/dist/components/inputs/Textarea.md +17 -22
- package/dist/components/inputs/Uploader/Uploader.md +69 -40
- package/dist/components/layout/Box.md +841 -662
- package/dist/components/layout/Container.md +3 -11
- package/dist/components/layout/Grid.md +480 -394
- package/dist/components/layout/Stack.md +739 -566
- package/dist/components/navigation/Breadcrumbs.md +182 -116
- package/dist/components/navigation/Dropdown.md +732 -391
- package/dist/components/navigation/IconMenuButton.md +15 -7
- package/dist/components/navigation/InsetDrawer.md +550 -378
- package/dist/components/navigation/Link.md +104 -94
- package/dist/components/navigation/Menu.md +624 -503
- package/dist/components/navigation/MenuButton.md +19 -11
- package/dist/components/navigation/NavigationGroup.md +19 -50
- package/dist/components/navigation/NavigationItem.md +6 -6
- package/dist/components/navigation/Navigator.md +26 -28
- package/dist/components/navigation/Pagination.md +87 -76
- package/dist/components/navigation/ProfileMenu.md +67 -45
- package/dist/components/navigation/Stepper.md +2 -12
- package/dist/components/navigation/Tabs.md +210 -184
- package/dist/components/surfaces/Accordions.md +90 -173
- package/dist/components/surfaces/Card.md +1096 -711
- package/dist/components/surfaces/Divider.md +562 -412
- package/dist/components/surfaces/Sheet.md +700 -518
- package/dist/guides/ThemeProvider.md +65 -40
- package/dist/index.browser.js +5 -5
- package/dist/index.browser.js.map +4 -4
- package/dist/index.cjs +1906 -1690
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1404 -1180
- package/framer/index.js +1 -1
- package/package.json +34 -36
|
@@ -93,10 +93,10 @@ Breadcrumbs are available in three sizes -- `sm`, `md`, and `lg` -- allowing you
|
|
|
93
93
|
|
|
94
94
|
```tsx
|
|
95
95
|
<div>
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
</div>
|
|
96
|
+
<Breadcrumbs {...args} size="sm" />
|
|
97
|
+
<Breadcrumbs {...args} size="md" />
|
|
98
|
+
<Breadcrumbs {...args} size="lg" />
|
|
99
|
+
</div>
|
|
100
100
|
```
|
|
101
101
|
|
|
102
102
|
## Breadcrumbs Custom Separator
|
|
@@ -104,48 +104,74 @@ Breadcrumbs are available in three sizes -- `sm`, `md`, and `lg` -- allowing you
|
|
|
104
104
|
The separator character between items can be customized via the `separator` prop. Common choices include `/`, `>`, and `-`.
|
|
105
105
|
|
|
106
106
|
```tsx
|
|
107
|
-
<div
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
107
|
+
<div
|
|
108
|
+
style={{
|
|
109
|
+
display: "flex",
|
|
110
|
+
flexDirection: "column",
|
|
111
|
+
gap: 16
|
|
112
|
+
}}
|
|
113
|
+
>
|
|
114
|
+
<Breadcrumbs
|
|
115
|
+
separator="/"
|
|
116
|
+
crumbs={[
|
|
117
|
+
{
|
|
118
|
+
label: "Home",
|
|
119
|
+
type: "link",
|
|
120
|
+
linkHref: "/"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
label: "Category",
|
|
124
|
+
type: "link",
|
|
125
|
+
linkHref: "/category"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
label: "Item",
|
|
129
|
+
type: "text"
|
|
130
|
+
}
|
|
131
|
+
]}
|
|
132
|
+
collapsed={false}
|
|
133
|
+
/>
|
|
134
|
+
<Breadcrumbs
|
|
135
|
+
separator=">"
|
|
136
|
+
crumbs={[
|
|
137
|
+
{
|
|
138
|
+
label: "Home",
|
|
139
|
+
type: "link",
|
|
140
|
+
linkHref: "/"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
label: "Category",
|
|
144
|
+
type: "link",
|
|
145
|
+
linkHref: "/category"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
label: "Item",
|
|
149
|
+
type: "text"
|
|
150
|
+
}
|
|
151
|
+
]}
|
|
152
|
+
collapsed={false}
|
|
153
|
+
/>
|
|
154
|
+
<Breadcrumbs
|
|
155
|
+
separator="-"
|
|
156
|
+
crumbs={[
|
|
157
|
+
{
|
|
158
|
+
label: "Home",
|
|
159
|
+
type: "link",
|
|
160
|
+
linkHref: "/"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
label: "Category",
|
|
164
|
+
type: "link",
|
|
165
|
+
linkHref: "/category"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
label: "Item",
|
|
169
|
+
type: "text"
|
|
170
|
+
}
|
|
171
|
+
]}
|
|
172
|
+
collapsed={false}
|
|
173
|
+
/>
|
|
174
|
+
</div>
|
|
149
175
|
```
|
|
150
176
|
|
|
151
177
|
## Collapsed Breadcrumbs
|
|
@@ -153,64 +179,96 @@ The separator character between items can be customized via the `separator` prop
|
|
|
153
179
|
When paths are deep, the component automatically collapses middle items behind an ellipsis. You can control how many items appear at the start and end using `startCrumbCount` and `endCrumbCount`.
|
|
154
180
|
|
|
155
181
|
```tsx
|
|
156
|
-
<div
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
</
|
|
213
|
-
|
|
182
|
+
<div
|
|
183
|
+
style={{
|
|
184
|
+
display: "flex",
|
|
185
|
+
flexDirection: "column",
|
|
186
|
+
gap: 16
|
|
187
|
+
}}
|
|
188
|
+
>
|
|
189
|
+
<div>
|
|
190
|
+
<span
|
|
191
|
+
style={{
|
|
192
|
+
fontSize: 12,
|
|
193
|
+
color: "#666"
|
|
194
|
+
}}
|
|
195
|
+
>
|
|
196
|
+
startCrumbCount: 1, endCrumbCount: 2
|
|
197
|
+
</span>
|
|
198
|
+
<Breadcrumbs
|
|
199
|
+
crumbs={[
|
|
200
|
+
{
|
|
201
|
+
label: "Home",
|
|
202
|
+
type: "link",
|
|
203
|
+
linkHref: "/"
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
label: "Products",
|
|
207
|
+
type: "link",
|
|
208
|
+
linkHref: "/products"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
label: "Electronics",
|
|
212
|
+
type: "link",
|
|
213
|
+
linkHref: "/electronics"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
label: "Computers",
|
|
217
|
+
type: "link",
|
|
218
|
+
linkHref: "/computers"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
label: "Laptops",
|
|
222
|
+
type: "text"
|
|
223
|
+
}
|
|
224
|
+
]}
|
|
225
|
+
collapsed={true}
|
|
226
|
+
startCrumbCount={1}
|
|
227
|
+
endCrumbCount={2}
|
|
228
|
+
/>
|
|
229
|
+
</div>
|
|
230
|
+
<div>
|
|
231
|
+
<span
|
|
232
|
+
style={{
|
|
233
|
+
fontSize: 12,
|
|
234
|
+
color: "#666"
|
|
235
|
+
}}
|
|
236
|
+
>
|
|
237
|
+
startCrumbCount: 2, endCrumbCount: 1
|
|
238
|
+
</span>
|
|
239
|
+
<Breadcrumbs
|
|
240
|
+
crumbs={[
|
|
241
|
+
{
|
|
242
|
+
label: "Home",
|
|
243
|
+
type: "link",
|
|
244
|
+
linkHref: "/"
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
label: "Products",
|
|
248
|
+
type: "link",
|
|
249
|
+
linkHref: "/products"
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
label: "Electronics",
|
|
253
|
+
type: "link",
|
|
254
|
+
linkHref: "/electronics"
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
label: "Computers",
|
|
258
|
+
type: "link",
|
|
259
|
+
linkHref: "/computers"
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
label: "Laptops",
|
|
263
|
+
type: "text"
|
|
264
|
+
}
|
|
265
|
+
]}
|
|
266
|
+
collapsed={true}
|
|
267
|
+
startCrumbCount={2}
|
|
268
|
+
endCrumbCount={1}
|
|
269
|
+
/>
|
|
270
|
+
</div>
|
|
271
|
+
</div>
|
|
214
272
|
```
|
|
215
273
|
|
|
216
274
|
## Expanded Breadcrumbs
|
|
@@ -270,18 +328,26 @@ The component handles the edge case of a single breadcrumb item gracefully.
|
|
|
270
328
|
Breadcrumb items can include icons alongside their labels.
|
|
271
329
|
|
|
272
330
|
```tsx
|
|
273
|
-
<Breadcrumbs
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
331
|
+
<Breadcrumbs
|
|
332
|
+
{...args}
|
|
333
|
+
crumbs={[
|
|
334
|
+
{
|
|
335
|
+
label: "Home",
|
|
336
|
+
type: "link",
|
|
337
|
+
linkHref: "/"
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
label: "Settings",
|
|
341
|
+
type: "link",
|
|
342
|
+
linkHref: "/settings"
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
label: "Profile",
|
|
346
|
+
type: "text"
|
|
347
|
+
}
|
|
348
|
+
]}
|
|
349
|
+
collapsed={false}
|
|
350
|
+
/>
|
|
285
351
|
```
|
|
286
352
|
|
|
287
353
|
## Breadcrumbs in Admin Dashboard
|