@tanishraj/ui-kit 2.1.1 → 2.2.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.
- package/dist/index.cjs.js +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +79 -1
- package/dist/index.es.js +53 -48
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
- package/readme.md +10 -0
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -73,6 +73,7 @@ import {
|
|
|
73
73
|
CheckboxGroup,
|
|
74
74
|
Chip,
|
|
75
75
|
Divider,
|
|
76
|
+
Dropdown,
|
|
76
77
|
Drawer,
|
|
77
78
|
Link,
|
|
78
79
|
OrganizationChart,
|
|
@@ -107,6 +108,7 @@ import {
|
|
|
107
108
|
Button,
|
|
108
109
|
Chip,
|
|
109
110
|
Divider,
|
|
111
|
+
Dropdown,
|
|
110
112
|
Drawer,
|
|
111
113
|
Link,
|
|
112
114
|
Popover,
|
|
@@ -126,6 +128,7 @@ export default function Demo() {
|
|
|
126
128
|
<Chip icon={Plus} variant='success'>
|
|
127
129
|
Active
|
|
128
130
|
</Chip>
|
|
131
|
+
<Dropdown variant='primary'>Dropdown</Dropdown>
|
|
129
132
|
<Button onClick={() => setDrawerOpen(true)}>Open Drawer</Button>
|
|
130
133
|
<Popover
|
|
131
134
|
title='Title'
|
|
@@ -212,6 +215,7 @@ import {
|
|
|
212
215
|
CheckboxGroup,
|
|
213
216
|
Chip,
|
|
214
217
|
Divider,
|
|
218
|
+
Dropdown,
|
|
215
219
|
Drawer,
|
|
216
220
|
Link,
|
|
217
221
|
Popover,
|
|
@@ -261,6 +265,10 @@ export function ComponentExamples() {
|
|
|
261
265
|
</Button>
|
|
262
266
|
</Divider>
|
|
263
267
|
|
|
268
|
+
<Dropdown appearance='outline' variant='primary'>
|
|
269
|
+
Dropdown
|
|
270
|
+
</Dropdown>
|
|
271
|
+
|
|
264
272
|
<Popover
|
|
265
273
|
placement='bottom'
|
|
266
274
|
title='Title'
|
|
@@ -289,6 +297,7 @@ export function ComponentExamples() {
|
|
|
289
297
|
- `Checkbox` and `CheckboxGroup` support `shape="square" | "circle"`, with `square` as the default.
|
|
290
298
|
- `Chip` supports `variant`, `appearance="filled" | "outline"`, `shape`, `size`, `inverted`, optional `icon`, and removable chips via `onClose`.
|
|
291
299
|
- `Divider` supports `orientation="horizontal" | "vertical"` and optional centered content through `children`.
|
|
300
|
+
- `Dropdown` opens a Floating UI menu-style popover list. It shares Button `variant`, `appearance`, `size`, `loading`, `disabled`, `inverted`, and `fullWidth` props, with default chevron, optional icon-only mode, `items`, `selectedValue`, `onItemSelect`, custom `trigger` / `menuContent`, `triggerAction="click" | "hover"`, `menuPlacement`, `menuOffset`, optional arrow, and Portal targeting. `DropdownList` and `DropdownItem` are exported for lower-level composition.
|
|
292
301
|
- `Drawer` is controlled with `open` and `onClose`, supports `placement="right" | "left" | "top" | "bottom"`, `size="sm" | "md" | "lg" | "full"`, overlay close, Escape close, footer actions, Portal targeting, and placement-aware slide animations.
|
|
293
302
|
- `Portal` renders to `document.body` by default and can target a custom container via `container`, `containerRef`, or `containerId`.
|
|
294
303
|
- `Link` supports `variant`, `size`, `underline="none" | "hover" | "always"`, `inverted`, `disabled`, `truncate`, optional leading/trailing icons, and `external` links.
|
|
@@ -415,6 +424,7 @@ src/
|
|
|
415
424
|
| CheckboxGroup | `src/components/CheckboxGroup` | [CheckboxGroup](https://tanishraj.github.io/ui-kit/?path=/story/components-checkboxgroup--playground) | Stable |
|
|
416
425
|
| Chip | `src/components/Chip` | [Chip](https://tanishraj.github.io/ui-kit/?path=/story/components-chip--playground) | Stable |
|
|
417
426
|
| Divider | `src/components/Divider` | [Divider](https://tanishraj.github.io/ui-kit/?path=/story/components-divider--playground) | Stable |
|
|
427
|
+
| Dropdown | `src/components/Dropdown` | [Dropdown](https://tanishraj.github.io/ui-kit/?path=/story/components-dropdown--playground) | Stable |
|
|
418
428
|
| Drawer | `src/components/Drawer` | [Drawer](https://tanishraj.github.io/ui-kit/?path=/story/components-drawer--playground) | Stable |
|
|
419
429
|
| Link | `src/components/Link` | [Link](https://tanishraj.github.io/ui-kit/?path=/story/components-link--playground) | Stable |
|
|
420
430
|
| OrganizationChart | `src/components/OrganizationChart` | [OrganizationChart](https://tanishraj.github.io/ui-kit/?path=/story/components-organizationchart--playground) | Stable |
|