@bento/listbox 0.2.1 → 0.2.2
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 +0 -4
- package/dist/index.cjs +713 -349
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +156 -151
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +269 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +715 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +28 -20
- package/src/header.tsx +19 -20
- package/src/listbox-item.tsx +9 -8
- package/src/listbox-section.tsx +9 -4
- package/src/listbox.tsx +15 -13
- package/src/utils.ts +1 -1
- package/dist/index.d.ts +0 -264
- package/dist/index.js +0 -367
- package/dist/index.js.map +0 -1
package/README.md
CHANGED
|
@@ -26,7 +26,6 @@ The following properties are available on the `ListBox` component:
|
|
|
26
26
|
|
|
27
27
|
```tsx
|
|
28
28
|
/* v8 ignore next */
|
|
29
|
-
import React from 'react';
|
|
30
29
|
import { ListBox, ListBoxItem } from '@bento/listbox';
|
|
31
30
|
import style from './listbox.module.css';
|
|
32
31
|
|
|
@@ -56,7 +55,6 @@ The `<Header>` component accepts standard DOM props and a `slot` prop for Bento
|
|
|
56
55
|
|
|
57
56
|
```tsx
|
|
58
57
|
/* v8 ignore next */
|
|
59
|
-
import React from 'react';
|
|
60
58
|
import { ListBox, ListBoxItem, ListBoxSection, Header } from '@bento/listbox';
|
|
61
59
|
import style from './listbox.module.css';
|
|
62
60
|
|
|
@@ -94,7 +92,6 @@ When you provide an `items` prop, the `children` function receives **individual
|
|
|
94
92
|
|
|
95
93
|
```tsx
|
|
96
94
|
/* v8 ignore next */
|
|
97
|
-
import React from 'react';
|
|
98
95
|
import { ListBox, ListBoxItem } from '@bento/listbox';
|
|
99
96
|
import style from './listbox.module.css';
|
|
100
97
|
|
|
@@ -143,7 +140,6 @@ You can also render nested data inside a section using the exported `Collection`
|
|
|
143
140
|
|
|
144
141
|
```tsx
|
|
145
142
|
/* v8 ignore next */
|
|
146
|
-
import React from 'react';
|
|
147
143
|
import { ListBox, ListBoxItem } from '@bento/listbox';
|
|
148
144
|
import style from './listbox.module.css';
|
|
149
145
|
|