-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'heroui-inc:canary' into adding_outside-top_recreation
- Loading branch information
Showing
169 changed files
with
4,098 additions
and
790 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@heroui/checkbox": patch | ||
--- | ||
|
||
inherit stroke in CheckboxIcon (#4802) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@heroui/table": patch | ||
--- | ||
|
||
Virtualization support added to Table component (#3697) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@heroui/button": patch | ||
--- | ||
|
||
export PressEvent for onPress event typing (#4818) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
"@heroui/autocomplete": patch | ||
"@heroui/listbox": patch | ||
"@heroui/select": patch | ||
--- | ||
|
||
Fix SelectItem, ListboxItem, and AutocompleteItem not to accept value props (#2283) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@heroui/listbox": patch | ||
--- | ||
|
||
pass missing press events to usePress (#4798) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
"@heroui/shared-icons": patch | ||
"@heroui/toast": patch | ||
"@heroui/theme": patch | ||
--- | ||
|
||
Introducing the toast component(#2560) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
apps/docs/content/components/table/virtualization-custom-max-table-height.raw.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import {Table, TableBody, TableCell, TableColumn, TableHeader, TableRow} from "@nextui-org/react"; | ||
|
||
function generateRows(count) { | ||
return Array.from({length: count}, (_, index) => ({ | ||
key: index.toString(), | ||
name: `Item ${index + 1}`, | ||
value: `Value ${index + 1}`, | ||
})); | ||
} | ||
|
||
export default function App() { | ||
const rows = generateRows(500); | ||
const columns = [ | ||
{key: "name", label: "Name"}, | ||
{key: "value", label: "Value"}, | ||
]; | ||
|
||
return ( | ||
<Table | ||
isVirtualized | ||
aria-label="Example of virtualized table with a large dataset" | ||
maxTableHeight={300} | ||
rowHeight={40} | ||
> | ||
<TableHeader columns={columns}> | ||
{(column) => <TableColumn key={column.key}>{column.label}</TableColumn>} | ||
</TableHeader> | ||
<TableBody items={rows}> | ||
{(item) => ( | ||
<TableRow key={item.key}> | ||
{(columnKey) => <TableCell>{item[columnKey]}</TableCell>} | ||
</TableRow> | ||
)} | ||
</TableBody> | ||
</Table> | ||
); | ||
} |
9 changes: 9 additions & 0 deletions
9
apps/docs/content/components/table/virtualization-custom-max-table-height.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import App from "./virtualization-custom-max-table-height.raw.jsx?raw"; | ||
|
||
const react = { | ||
"/App.jsx": App, | ||
}; | ||
|
||
export default { | ||
...react, | ||
}; |
37 changes: 37 additions & 0 deletions
37
apps/docs/content/components/table/virtualization-custom-row-height.raw.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import {Table, TableBody, TableCell, TableColumn, TableHeader, TableRow} from "@nextui-org/react"; | ||
|
||
function generateRows(count) { | ||
return Array.from({length: count}, (_, index) => ({ | ||
key: index.toString(), | ||
name: `Item ${index + 1}`, | ||
value: `Value ${index + 1}`, | ||
})); | ||
} | ||
|
||
export default function App() { | ||
const rows = generateRows(500); | ||
const columns = [ | ||
{key: "name", label: "Name"}, | ||
{key: "value", label: "Value"}, | ||
]; | ||
|
||
return ( | ||
<Table | ||
isVirtualized | ||
aria-label="Example of virtualized table with a large dataset" | ||
maxTableHeight={500} | ||
rowHeight={70} | ||
> | ||
<TableHeader columns={columns}> | ||
{(column) => <TableColumn key={column.key}>{column.label}</TableColumn>} | ||
</TableHeader> | ||
<TableBody items={rows}> | ||
{(item) => ( | ||
<TableRow key={item.key}> | ||
{(columnKey) => <TableCell>{item[columnKey]}</TableCell>} | ||
</TableRow> | ||
)} | ||
</TableBody> | ||
</Table> | ||
); | ||
} |
9 changes: 9 additions & 0 deletions
9
apps/docs/content/components/table/virtualization-custom-row-height.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import App from "./virtualization-custom-row-height.raw.jsx?raw"; | ||
|
||
const react = { | ||
"/App.jsx": App, | ||
}; | ||
|
||
export default { | ||
...react, | ||
}; |
37 changes: 37 additions & 0 deletions
37
apps/docs/content/components/table/virtualization-ten-thousand.raw.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import {Table, TableBody, TableCell, TableColumn, TableHeader, TableRow} from "@nextui-org/react"; | ||
|
||
function generateRows(count) { | ||
return Array.from({length: count}, (_, index) => ({ | ||
key: index.toString(), | ||
name: `Item ${index + 1}`, | ||
value: `Value ${index + 1}`, | ||
})); | ||
} | ||
|
||
export default function App() { | ||
const rows = generateRows(10000); | ||
const columns = [ | ||
{key: "name", label: "Name"}, | ||
{key: "value", label: "Value"}, | ||
]; | ||
|
||
return ( | ||
<Table | ||
isVirtualized | ||
aria-label="Example of virtualized table with a large dataset" | ||
maxTableHeight={500} | ||
rowHeight={40} | ||
> | ||
<TableHeader columns={columns}> | ||
{(column) => <TableColumn key={column.key}>{column.label}</TableColumn>} | ||
</TableHeader> | ||
<TableBody items={rows}> | ||
{(item) => ( | ||
<TableRow key={item.key}> | ||
{(columnKey) => <TableCell>{item[columnKey]}</TableCell>} | ||
</TableRow> | ||
)} | ||
</TableBody> | ||
</Table> | ||
); | ||
} |
9 changes: 9 additions & 0 deletions
9
apps/docs/content/components/table/virtualization-ten-thousand.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import App from "./virtualization-ten-thousand.raw.jsx?raw"; | ||
|
||
const react = { | ||
"/App.jsx": App, | ||
}; | ||
|
||
export default { | ||
...react, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import {Table, TableBody, TableCell, TableColumn, TableHeader, TableRow} from "@nextui-org/react"; | ||
|
||
function generateRows(count) { | ||
return Array.from({length: count}, (_, index) => ({ | ||
key: index.toString(), | ||
name: `Item ${index + 1}`, | ||
value: `Value ${index + 1}`, | ||
})); | ||
} | ||
|
||
export default function App() { | ||
const rows = generateRows(500); | ||
const columns = [ | ||
{key: "name", label: "Name"}, | ||
{key: "value", label: "Value"}, | ||
]; | ||
|
||
return ( | ||
<Table | ||
isVirtualized | ||
aria-label="Example of virtualized table with a large dataset" | ||
maxTableHeight={500} | ||
rowHeight={40} | ||
> | ||
<TableHeader columns={columns}> | ||
{(column) => <TableColumn key={column.key}>{column.label}</TableColumn>} | ||
</TableHeader> | ||
<TableBody items={rows}> | ||
{(item) => ( | ||
<TableRow key={item.key}> | ||
{(columnKey) => <TableCell>{item[columnKey]}</TableCell>} | ||
</TableRow> | ||
)} | ||
</TableBody> | ||
</Table> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import App from "./virtualization.raw.jsx?raw"; | ||
|
||
const react = { | ||
"/App.jsx": App, | ||
}; | ||
|
||
export default { | ||
...react, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import {addToast, Button} from "@heroui/react"; | ||
|
||
export default function App() { | ||
return ( | ||
<div className="flex flex-wrap gap-2"> | ||
{["default", "primary", "secondary", "success", "warning", "danger"].map((color) => ( | ||
<Button | ||
key={color} | ||
color={color} | ||
variant={"flat"} | ||
onPress={() => | ||
addToast({ | ||
title: "Toast title", | ||
description: "Toast displayed successfully", | ||
color: color, | ||
}) | ||
} | ||
> | ||
{color} | ||
</Button> | ||
))} | ||
</div> | ||
); | ||
} |
Oops, something went wrong.