Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Match Demos #6302

Merged
merged 52 commits into from
Apr 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
7f7f60a
Add filled prop autocomplete
gucal Apr 1, 2024
b46b55f
Add filled doc
gucal Apr 1, 2024
d70a74a
Remove Form doc
gucal Apr 1, 2024
39f84ff
Update invalid doc
gucal Apr 1, 2024
6153ef6
Update calendar props and demos
gucal Apr 2, 2024
0e1bd9d
Update floatlabel doc
gucal Apr 2, 2024
ed5978f
Cascade select update theme and prop
gucal Apr 2, 2024
d4377e7
Update d.ts
gucal Apr 2, 2024
5ff2a39
Update filled doc
gucal Apr 2, 2024
4dc2891
Update floatlabel and invalid doc
gucal Apr 2, 2024
5704c93
Update checkbox
gucal Apr 3, 2024
1694471
update checkbox docs
gucal Apr 3, 2024
916209c
Update chips
gucal Apr 3, 2024
234b766
Update docs
gucal Apr 3, 2024
e5d678c
Update colorpicker docs
gucal Apr 3, 2024
0f5fdd0
Update dropdown filled prop
gucal Apr 3, 2024
8aef235
Update dropdown docs
gucal Apr 3, 2024
bb6be00
Editor - Remove form docs
gucal Apr 3, 2024
c86dd05
Update dropdown.d.ts
gucal Apr 3, 2024
6077393
Update inputnumber
gucal Apr 3, 2024
9be6546
Update inputnumber docs
gucal Apr 3, 2024
169b1cf
Update inputmask
gucal Apr 3, 2024
4428674
Update docs - inputmask
gucal Apr 3, 2024
6ea5067
Update inputswitch
gucal Apr 3, 2024
f6a5c9b
Update inputtext
gucal Apr 3, 2024
ba73bdf
Update inputtext docs
gucal Apr 3, 2024
1d18512
Update textarea
gucal Apr 3, 2024
3d96d21
Update textarea docs
gucal Apr 3, 2024
1727c1e
remove form docs
gucal Apr 3, 2024
8507421
Update listbox docs
gucal Apr 3, 2024
3e36145
remove form docs - mention
gucal Apr 3, 2024
d3cf48b
Update multiselect
gucal Apr 3, 2024
71b30e0
Update docs - multiselect
gucal Apr 3, 2024
fced6b1
Update password
gucal Apr 3, 2024
0265299
Password update docs
gucal Apr 3, 2024
8353f5f
Update radiobutton
gucal Apr 3, 2024
ff904f5
Update radiobutton demo
gucal Apr 3, 2024
710d328
Update selectbutton demo
gucal Apr 3, 2024
c50da06
Add filterdoc - slider
gucal Apr 3, 2024
02f575b
TreeSelect - add variant
gucal Apr 3, 2024
e0b2de4
Update TreeSelect docs
gucal Apr 3, 2024
49a03a7
Update tristatecheckbox
gucal Apr 3, 2024
32feb05
update docs - tristatecheckbox
gucal Apr 3, 2024
95b9329
update togglebutton docs
gucal Apr 3, 2024
6f4339f
Update splitbutton
gucal Apr 3, 2024
39be6ea
Update steps doc
gucal Apr 3, 2024
138b9d5
Remove hook form & formik demos
gucal Apr 3, 2024
19a150c
Remove form packages
gucal Apr 3, 2024
c6506bb
Update APIDoc
gucal Apr 3, 2024
58c4c81
Merge pull request #1 from gucal/matching-demo
gucal Apr 3, 2024
dcf8db1
Remove pt doc
gucal Apr 3, 2024
f515af1
Merge pull request #2 from gucal/matching-demo
gucal Apr 3, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
144 changes: 0 additions & 144 deletions components/doc/accordion/pt/ptdoc.js

This file was deleted.

71 changes: 71 additions & 0 deletions components/doc/autocomplete/filleddoc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
import { DocSectionCode } from '@/components/doc/common/docsectioncode';
import { DocSectionText } from '@/components/doc/common/docsectiontext';
import { AutoComplete } from '@/components/lib/autocomplete/AutoComplete';
import { useState } from 'react';

export function FilledDoc(props) {
const [value, setValue] = useState('');
const [items, setItems] = useState([]);

const search = (event) => {
setItems([...Array(10).keys()].map((item) => event.query + '-' + item));
};

const code = {
basic: `
<AutoComplete value={value} suggestions={items} completeMethod={search} onChange={(e) => setValue(e.value)} variant="filled" />
`,
javascript: `
import React, { useState } from "react";
import { AutoComplete } from "primereact/autocomplete";

export default function FilledDemo() {
const [value, setValue] = useState('');
const [items, setItems] = useState([]);

const search = (event) => {
setItems([...Array(10).keys()].map(item => event.query + '-' + item));
}

return (
<div className="card flex justify-content-center">
<AutoComplete value={value} suggestions={items} completeMethod={search} onChange={(e) => setValue(e.value)} variant="filled" />
</div>
)
}
`,
typescript: `
import React, { useState } from "react";
import { AutoComplete, AutoCompleteCompleteEvent } from "primereact/autocomplete";

export default function FilledDemo() {
const [value, setValue] = useState<string>('');
const [items, setItems] = useState<string[]>([]);

const search = (event: AutoCompleteCompleteEvent) => {
setItems([...Array(10).keys()].map(item => event.query + '-' + item));
}

return (
<div className="card flex justify-content-center">
<AutoComplete value={value} suggestions={items} completeMethod={search} onChange={(e) => setValue(e.value)} variant="filled" />
</div>
)
}
`
};

return (
<>
<DocSectionText {...props}>
<p>
Specify the <i>variant</i> property as <i>filled</i> to display the component with a higher visual emphasis than the default <i>outlined</i> style.
</p>
</DocSectionText>
<div className="card flex justify-content-center">
<AutoComplete value={value} suggestions={items} completeMethod={search} onChange={(e) => setValue(e.value)} variant="filled" />
</div>
<DocSectionCode code={code} />
</>
);
}
Loading
Loading