Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
ea2a25e
Started implementing virtualization in Select component
Jun 9, 2025
83a9633
Merge branch 'master' of github.com:dxc-technology/halstack-react int…
Jul 9, 2025
4da8241
Added fix for grouped values
Jul 10, 2025
24d702e
Improved accessibility
Jul 11, 2025
8ead7d5
Minor restructuring for typing
Jul 11, 2025
3810af7
Minor restructuring for typing
Jul 11, 2025
3b06b37
Improved accessibility for radix popovers
Jul 16, 2025
93ee318
Merge branch 'master' into Mil4n0r/virtualization_select
Mil4n0r Jul 16, 2025
2dcda8e
Fixed accessibility problems and updated API and doc
Jul 17, 2025
30296fa
Merge branch 'Mil4n0r/virtualization_select' of github.com:dxc-techno…
Jul 17, 2025
9230d2b
Merge branch 'master' into Mil4n0r/virtualization_select
Mil4n0r Jul 17, 2025
bcb75bd
Merge branch 'master' of github.com:dxc-technology/halstack-react int…
Mil4n0r Sep 3, 2025
fca72d5
Merge branch 'Mil4n0r/virtualization_select' of github.com:dxc-techno…
Mil4n0r Sep 3, 2025
6657c0c
Moved react-virtuoso dependency
Mil4n0r Sep 11, 2025
3f03249
Fixed height prop name
Mil4n0r Sep 25, 2025
ff669a8
Minor fix for height styled div
Mil4n0r Sep 25, 2025
e62ce2a
Merge branch 'master' into Mil4n0r/virtualization_select
Mil4n0r Sep 25, 2025
22799e7
Virtualized test updated
Jialecl Sep 25, 2025
18237bb
Reordered props alphabetically
Mil4n0r Sep 25, 2025
37c1418
Merge branch 'Mil4n0r/virtualization_select' of github.com:dxc-techno…
Mil4n0r Sep 25, 2025
2be142f
date value added to storybook
Jialecl Sep 26, 2025
184691d
Merge branch 'Mil4n0r/virtualization_select' of https://github.com/dx…
Jialecl Sep 26, 2025
b9a32d6
prop corrected in documentation
Jialecl Sep 26, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions apps/website/screens/components/select/code/SelectCodePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import groups from "./examples/groupedOptions";
import icons from "./examples/icons";
import Code, { TableCode, ExtendedTableCode } from "@/common/Code";
import StatusBadge from "@/common/StatusBadge";
import virtualized from "./examples/virtualized";

const optionsType = `{
label: string;
Expand Down Expand Up @@ -295,6 +296,24 @@ const sections = [
</td>
<td>-</td>
</tr>
<tr>
<td>
<DxcFlex direction="column" gap="var(--spacing-gap-xs)" alignItems="baseline">
<StatusBadge status="new" />
virtualizedHeight
</DxcFlex>
</td>
<td>
<TableCode>string</TableCode>
</td>
<td>
A fixed height must be set to enable virtualization. If no height is provided, the select will
automatically adjust to the height of its content, and virtualization will not be applied.
</td>
<td>
<td>-</td>
</td>
</tr>
</tbody>
</DxcTable>
),
Expand All @@ -310,6 +329,10 @@ const sections = [
title: "Uncontrolled",
content: <Example example={uncontrolled} defaultIsVisible />,
},
{
title: "Virtualized",
content: <Example example={virtualized} defaultIsVisible />,
},
{
title: "Error handling",
content: <Example example={errorHandling} defaultIsVisible />,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import { DxcSelect, DxcInset } from "@dxc-technology/halstack-react";

const code = `() => {
const options = [
...Array.from({ length: 10000 }, (_, i) => ({
label: \`Option \${String(i + 1).padStart(2, "0")}\`,
value: \`\${i + 1}\`,
})),
];

return (
<DxcInset space="var(--spacing-padding-xl)">
<DxcSelect
label="Select a virtualized value"
options={options}
virtualizedHeight="300px"
/>
</DxcInset>
);
}`;

const scope = {
DxcSelect,
DxcInset,
};

export default { code, scope };
Loading