@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.
Files changed (124) hide show
  1. package/README.md +85 -95
  2. package/dist/components/Accordions/Accordions.d.ts +1 -0
  3. package/dist/components/Alert/Alert.d.ts +5 -5
  4. package/dist/components/Autocomplete/Autocomplete.d.ts +2 -2
  5. package/dist/components/Avatar/Avatar.d.ts +7 -17
  6. package/dist/components/Box/Box.d.ts +1 -0
  7. package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +6 -5
  8. package/dist/components/Button/Button.d.ts +3 -2
  9. package/dist/components/Calendar/Calendar.d.ts +1 -0
  10. package/dist/components/Card/Card.d.ts +1 -0
  11. package/dist/components/Checkbox/Checkbox.d.ts +1 -0
  12. package/dist/components/Chip/Chip.d.ts +1 -0
  13. package/dist/components/Container/Container.d.ts +6 -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/Dropdown/Dropdown.d.ts +28 -1
  20. package/dist/components/FilterMenu/components/MonthRange.d.ts +11 -0
  21. package/dist/components/FilterMenu/types.d.ts +5 -1
  22. package/dist/components/FilterableCheckboxGroup/FilterableCheckboxGroup.d.ts +1 -1
  23. package/dist/components/FormControl/FormControl.d.ts +1 -0
  24. package/dist/components/FormHelperText/FormHelperText.d.ts +1 -0
  25. package/dist/components/FormLabel/FormLabel.d.ts +1 -0
  26. package/dist/components/Grid/Grid.d.ts +1 -0
  27. package/dist/components/IconButton/IconButton.d.ts +3 -2
  28. package/dist/components/IconMenuButton/IconMenuButton.d.ts +7 -6
  29. package/dist/components/InfoSign/InfoSign.d.ts +3 -2
  30. package/dist/components/Input/Input.d.ts +8 -22
  31. package/dist/components/InsetDrawer/InsetDrawer.d.ts +1 -0
  32. package/dist/components/Markdown/Markdown.d.ts +9 -24
  33. package/dist/components/Menu/Menu.d.ts +2 -1
  34. package/dist/components/MenuButton/MenuButton.d.ts +10 -8
  35. package/dist/components/Modal/Modal.d.ts +4 -2
  36. package/dist/components/NavigationGroup/NavigationGroup.d.ts +3 -2
  37. package/dist/components/NavigationItem/NavigationItem.d.ts +3 -2
  38. package/dist/components/Navigator/Navigator.d.ts +5 -4
  39. package/dist/components/Pagination/Pagination.d.ts +2 -2
  40. package/dist/components/ProfileMenu/ProfileMenu.d.ts +3 -3
  41. package/dist/components/Radio/Radio.d.ts +1 -0
  42. package/dist/components/RadioList/RadioList.d.ts +3 -2
  43. package/dist/components/Select/Select.d.ts +12 -10
  44. package/dist/components/Sheet/Sheet.d.ts +1 -0
  45. package/dist/components/Stack/Stack.d.ts +1 -0
  46. package/dist/components/Stepper/Stepper.d.ts +2 -1
  47. package/dist/components/Switch/Switch.d.ts +1 -0
  48. package/dist/components/Table/Table.d.ts +7 -5
  49. package/dist/components/Tabs/Tabs.d.ts +1 -0
  50. package/dist/components/Textarea/Textarea.d.ts +8 -20
  51. package/dist/components/ThemeProvider/ThemeProvider.d.ts +24 -2
  52. package/dist/components/Tooltip/Tooltip.d.ts +1 -0
  53. package/dist/components/Typography/Typography.d.ts +1 -0
  54. package/dist/components/Uploader/Uploader.d.ts +18 -17
  55. package/dist/components/data-display/Avatar.md +61 -73
  56. package/dist/components/data-display/Badge.md +198 -182
  57. package/dist/components/data-display/Chip.md +165 -143
  58. package/dist/components/data-display/DataTable.md +843 -338
  59. package/dist/components/data-display/InfoSign.md +1 -3
  60. package/dist/components/data-display/Markdown.md +93 -125
  61. package/dist/components/data-display/Table.md +1454 -1008
  62. package/dist/components/data-display/Tooltip.md +1 -1
  63. package/dist/components/data-display/Typography.md +101 -104
  64. package/dist/components/feedback/Alert.md +81 -87
  65. package/dist/components/feedback/CircularProgress.md +34 -38
  66. package/dist/components/feedback/Dialog.md +25 -17
  67. package/dist/components/feedback/Modal.md +297 -266
  68. package/dist/components/feedback/Skeleton.md +125 -89
  69. package/dist/components/index.d.ts +60 -1
  70. package/dist/components/inputs/Autocomplete.md +192 -96
  71. package/dist/components/inputs/Button.md +85 -85
  72. package/dist/components/inputs/ButtonGroup.md +197 -187
  73. package/dist/components/inputs/Calendar.md +25 -28
  74. package/dist/components/inputs/Checkbox.md +13 -31
  75. package/dist/components/inputs/CurrencyInput.md +6 -6
  76. package/dist/components/inputs/DatePicker.md +229 -110
  77. package/dist/components/inputs/DateRangePicker.md +248 -137
  78. package/dist/components/inputs/FilterMenu.md +138 -8
  79. package/dist/components/inputs/FilterableCheckboxGroup.md +116 -56
  80. package/dist/components/inputs/FormControl.md +76 -70
  81. package/dist/components/inputs/IconButton.md +231 -207
  82. package/dist/components/inputs/Input.md +133 -100
  83. package/dist/components/inputs/MonthPicker.md +186 -84
  84. package/dist/components/inputs/MonthRangePicker.md +73 -49
  85. package/dist/components/inputs/PercentageInput.md +17 -33
  86. package/dist/components/inputs/RadioButton.md +322 -258
  87. package/dist/components/inputs/RadioList.md +68 -52
  88. package/dist/components/inputs/RadioTileGroup.md +287 -170
  89. package/dist/components/inputs/SearchBar.md +82 -60
  90. package/dist/components/inputs/Select.md +108 -97
  91. package/dist/components/inputs/Slider.md +155 -104
  92. package/dist/components/inputs/Switch.md +194 -139
  93. package/dist/components/inputs/Textarea.md +17 -22
  94. package/dist/components/inputs/Uploader/Uploader.md +69 -40
  95. package/dist/components/layout/Box.md +841 -662
  96. package/dist/components/layout/Container.md +3 -11
  97. package/dist/components/layout/Grid.md +480 -394
  98. package/dist/components/layout/Stack.md +739 -566
  99. package/dist/components/navigation/Breadcrumbs.md +182 -116
  100. package/dist/components/navigation/Dropdown.md +732 -391
  101. package/dist/components/navigation/IconMenuButton.md +15 -7
  102. package/dist/components/navigation/InsetDrawer.md +550 -378
  103. package/dist/components/navigation/Link.md +104 -94
  104. package/dist/components/navigation/Menu.md +624 -503
  105. package/dist/components/navigation/MenuButton.md +19 -11
  106. package/dist/components/navigation/NavigationGroup.md +19 -50
  107. package/dist/components/navigation/NavigationItem.md +6 -6
  108. package/dist/components/navigation/Navigator.md +26 -28
  109. package/dist/components/navigation/Pagination.md +87 -76
  110. package/dist/components/navigation/ProfileMenu.md +67 -45
  111. package/dist/components/navigation/Stepper.md +2 -12
  112. package/dist/components/navigation/Tabs.md +210 -184
  113. package/dist/components/surfaces/Accordions.md +90 -173
  114. package/dist/components/surfaces/Card.md +1096 -711
  115. package/dist/components/surfaces/Divider.md +562 -412
  116. package/dist/components/surfaces/Sheet.md +700 -518
  117. package/dist/guides/ThemeProvider.md +65 -40
  118. package/dist/index.browser.js +5 -5
  119. package/dist/index.browser.js.map +4 -4
  120. package/dist/index.cjs +1906 -1690
  121. package/dist/index.d.ts +1 -1
  122. package/dist/index.js +1404 -1180
  123. package/framer/index.js +1 -1
  124. 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
- <Breadcrumbs {...args} size="sm" />
97
- <Breadcrumbs {...args} size="md" />
98
- <Breadcrumbs {...args} size="lg" />
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 style={{
108
- display: 'flex',
109
- flexDirection: 'column',
110
- gap: 16
111
- }}>
112
- <Breadcrumbs separator="/" crumbs={[{
113
- label: 'Home',
114
- type: 'link',
115
- linkHref: '/'
116
- }, {
117
- label: 'Category',
118
- type: 'link',
119
- linkHref: '/category'
120
- }, {
121
- label: 'Item',
122
- type: 'text'
123
- }]} collapsed={false} />
124
- <Breadcrumbs separator=">" crumbs={[{
125
- label: 'Home',
126
- type: 'link',
127
- linkHref: '/'
128
- }, {
129
- label: 'Category',
130
- type: 'link',
131
- linkHref: '/category'
132
- }, {
133
- label: 'Item',
134
- type: 'text'
135
- }]} collapsed={false} />
136
- <Breadcrumbs separator="-" crumbs={[{
137
- label: 'Home',
138
- type: 'link',
139
- linkHref: '/'
140
- }, {
141
- label: 'Category',
142
- type: 'link',
143
- linkHref: '/category'
144
- }, {
145
- label: 'Item',
146
- type: 'text'
147
- }]} collapsed={false} />
148
- </div>
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 style={{
157
- display: 'flex',
158
- flexDirection: 'column',
159
- gap: 16
160
- }}>
161
- <div>
162
- <span style={{
163
- fontSize: 12,
164
- color: '#666'
165
- }}>startCrumbCount: 1, endCrumbCount: 2</span>
166
- <Breadcrumbs crumbs={[{
167
- label: 'Home',
168
- type: 'link',
169
- linkHref: '/'
170
- }, {
171
- label: 'Products',
172
- type: 'link',
173
- linkHref: '/products'
174
- }, {
175
- label: 'Electronics',
176
- type: 'link',
177
- linkHref: '/electronics'
178
- }, {
179
- label: 'Computers',
180
- type: 'link',
181
- linkHref: '/computers'
182
- }, {
183
- label: 'Laptops',
184
- type: 'text'
185
- }]} collapsed={true} startCrumbCount={1} endCrumbCount={2} />
186
- </div>
187
- <div>
188
- <span style={{
189
- fontSize: 12,
190
- color: '#666'
191
- }}>startCrumbCount: 2, endCrumbCount: 1</span>
192
- <Breadcrumbs crumbs={[{
193
- label: 'Home',
194
- type: 'link',
195
- linkHref: '/'
196
- }, {
197
- label: 'Products',
198
- type: 'link',
199
- linkHref: '/products'
200
- }, {
201
- label: 'Electronics',
202
- type: 'link',
203
- linkHref: '/electronics'
204
- }, {
205
- label: 'Computers',
206
- type: 'link',
207
- linkHref: '/computers'
208
- }, {
209
- label: 'Laptops',
210
- type: 'text'
211
- }]} collapsed={true} startCrumbCount={2} endCrumbCount={1} />
212
- </div>
213
- </div>
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 {...args} crumbs={[{
274
- label: 'Home',
275
- type: 'link',
276
- linkHref: '/'
277
- }, {
278
- label: 'Settings',
279
- type: 'link',
280
- linkHref: '/settings'
281
- }, {
282
- label: 'Profile',
283
- type: 'text'
284
- }]} collapsed={false} />
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