Skip to content

Commit b3cb563

Browse files
committed
chore: fix build errors
1 parent 4df9142 commit b3cb563

5 files changed

Lines changed: 32 additions & 28 deletions

File tree

apps/showcase/demo/styled/select/select-pt.tsx

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
/*import { Select } from '@primereact/ui/select';
2-
import * as React from 'react';
1+
'use client';
32
import { ChevronDown } from '@primeicons/react/chevron-down';
3+
import { Select } from '@primereact/ui/select';
4+
import * as React from 'react';
45

56
const cities = [
67
{ name: 'New York', code: 'NY' },
@@ -12,18 +13,25 @@ const cities = [
1213

1314
export default function SelectPTDemo() {
1415
return (
15-
<Select.Root id="city" options={cities} optionLabel="name" className="w-full md:w-56">
16-
<Select.Trigger placeholder="Select a City" />
17-
<Select.Dropdown>
18-
<ChevronDown />
19-
</Select.Dropdown>
16+
<div className="flex justify-center">
17+
<Select.Root id="city" options={cities} optionLabel="name" className="w-full md:w-56">
18+
<Select.Trigger>
19+
<Select.Value placeholder="Select a City" />
20+
<Select.Icon>
21+
<ChevronDown />
22+
</Select.Icon>
23+
</Select.Trigger>
2024

21-
<Select.Portal>
22-
<Select.List>
23-
<Select.Options style={{ maxHeight: '14rem' }} />
24-
</Select.List>
25-
</Select.Portal>
26-
</Select.Root>
25+
<Select.Portal>
26+
<Select.Positioner>
27+
<Select.Panel>
28+
<Select.List>
29+
<Select.Options style={{ maxHeight: '14rem' }} />
30+
</Select.List>
31+
</Select.Panel>
32+
</Select.Positioner>
33+
</Select.Portal>
34+
</Select.Root>
35+
</div>
2736
);
2837
}
29-
*/

apps/showcase/docs/general/guides/accessibility.mdx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
import { CheckCircle } from '@primeicons/react/check-circle'
2-
import { TimesCircle } from '@primeicons/react/times-circle'
3-
41
---
5-
62
title: Accessibility
73
description: PrimeReact has WCAG 2.1 AA level compliance, refer to the accessibility documentation of each component for detailed information.
8-
94
---
105

6+
import { CheckCircle } from '@primeicons/react/check-circle'
7+
import { TimesCircle } from '@primeicons/react/times-circle'
8+
119
## Introduction
1210

1311
According to the World Health Organization, 15% of the world population has a disability to some degree. As a result, accessibility features in any context such as a ramp for wheelchair users or a multimedia with captions are crucial to ensure content can be consumed by anyone.

apps/showcase/docs/general/icons/primeicons.mdx

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
1+
---
2+
title: Prime Icons
3+
description: PrimeIcons is the default icon library of PrimeReact with over 250 open source icons developed by PrimeTek. PrimeIcons library is optional as PrimeReact components can use any icon with templating.
4+
---
5+
16
import { Check } from '@primeicons/react/check'
27
import { Cog } from '@primeicons/react/cog'
38
import { Search } from '@primeicons/react/search'
49
import { Spinner } from '@primeicons/react/spinner'
510
import { Times } from '@primeicons/react/times'
611
import { User } from '@primeicons/react/user'
712

8-
---
9-
10-
title: Prime Icons
11-
description: PrimeIcons is the default icon library of PrimeReact with over 250 open source icons developed by PrimeTek. PrimeIcons library is optional as PrimeReact components can use any icon with templating.
12-
13-
---
14-
1513
## Download
1614

1715
PrimeIcons is available at npm, run the following command to download it to your project.

apps/showcase/shared/components/docs/doc-pt-viewer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export default function DocPtViewer({ components, className, name, __pathname__,
8383

8484
if (!type || !componentName) return;
8585

86-
const Demo = Store[type]?.[componentName]?.[name].component;
86+
const Demo = Store[type]?.[componentName]?.[name]?.component;
8787

8888
if (!Demo) {
8989
return (

packages/@primereact/core/src/utils/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export function isCssSupported(property: keyof CSSStyleDeclaration | string, val
2727
export function isCssSupported(condition: string): boolean;
2828

2929
export function isCssSupported(input: keyof CSSStyleDeclaration | string, value?: string): boolean {
30-
if (!CSS || !CSS.supports) {
30+
if (typeof CSS === 'undefined' || !CSS.supports) {
3131
return false;
3232
}
3333

0 commit comments

Comments
 (0)